1 line
2.0 MiB
1 line
2.0 MiB
webpackJsonp([3],{"+0Ji":function(t,e,n){"use strict";var r=n("bKpL"),i=n("l/Fw");r.Observable.prototype.sample=i.sample},"+BWq":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+"),o=n("TpsG");e.first=function(t,e,n){return function(r){return r.lift(new s(t,e,n,r))}};var s=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),a=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.index=0,this.hasCompleted=!1,this._emitted=!1}return r(e,t),e.prototype._next=function(t){var e=this.index++;this.predicate?this._tryPredicate(t,e):this._emit(t,e)},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}n&&this._emit(t,e)},e.prototype._emit=function(t,e){this.resultSelector?this._tryResultSelector(t,e):this._emitFinal(t)},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this._emitFinal(n)},e.prototype._emitFinal=function(t){var e=this.destination;this._emitted||(this._emitted=!0,e.next(t),e.complete(),this.hasCompleted=!0)},e.prototype._complete=function(){var t=this.destination;this.hasCompleted||"undefined"==typeof this.defaultValue?this.hasCompleted||t.error(new o.EmptyError):(t.next(this.defaultValue),t.complete())},e}(i.Subscriber)},"+DIC":function(t,e,n){"use strict";var r=n("AP4T"),i=n("TS1d");r.Observable.prototype.mergeMap=i.a,r.Observable.prototype.flatMap=i.a},"+FJ1":function(t,e,n){"use strict";var r=n("mjx3");e.concatMap=function(t,e){return r.mergeMap(t,e,1)}},"+Ve+":function(t,e,n){"use strict";var r=n("bKpL"),i=n("I3ay");r.Observable.prototype.concatAll=i.concatAll},"+c7d":function(t,e,n){"use strict";var r=n("H4tt");e.combineLatest=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r.combineLatest.apply(void 0,t)(this)}},"+vKo":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("yW9Z"),o=n("ktfo");e.buffer=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.closingNotifier))},t}(),a=function(t){function e(e,n){t.call(this,e),this.buffer=[],this.add(o.subscribeToResult(this,n))}return r(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.buffer;this.buffer=[],this.destination.next(o)},e}(i.OuterSubscriber)},"+zVg":function(t,e,n){"use strict";var r=n("wZOE");e.of=r.ArrayObservable.of},"/9bB":function(t,e,n){"use strict";var r=n("L0Qg");e.materialize=function(){return r.materialize()(this)}},"/amm":function(t,e,n){"use strict";var r=n("bKpL"),i=n("60yU");r.Observable.prototype.repeatWhen=i.repeatWhen},"/h+r":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("IhB/"),o=n("6jp4"),s=n("yW9Z"),a=n("ktfo");e.timeoutWith=function(t,e,n){return void 0===n&&(n=i.async),function(r){var i=o.isDate(t),s=i?+t-n.now():Math.abs(t);return r.lift(new c(s,i,e,n))}};var c=function(){function t(t,e,n,r){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),u=function(t){function e(e,n,r,i,o){t.call(this,e),this.absoluteTimeout=n,this.waitFor=r,this.withObservable=i,this.scheduler=o,this.action=null,this.scheduleTimeout()}return r(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(a.subscribeToResult(t,e))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},e}(s.OuterSubscriber)},"/zHi":function(t,e,n){"use strict";var r=n("bKpL"),i=n("+zVg");r.Observable.of=i.of},"0I3B":function(t,e,n){"use strict";var r=n("SBOU");e.zipProto=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r.zip.apply(void 0,t)(this)}},"0L2s":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){var e=t.call(this,"Timeout has occurred");this.name=e.name="TimeoutError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);e.TimeoutError=i},"0dhf":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+");e.find=function(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new o(t,n,!1,e))}};var o=function(){function t(t,e,n,r){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=r}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}();e.FindValueOperator=o;var s=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.source=r,this.yieldIndex=i,this.thisArg=o,this.index=0}return r(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){var e=this.predicate,n=this.thisArg,r=this.index++;try{e.call(n||this,t,r,this.source)&&this.notifyComplete(this.yieldIndex?r:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(i.Subscriber);e.FindValueSubscriber=s},"0imh":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("rlar"),o=n("yR50"),s=n("xFbG"),a=n("GDiU"),c=n("Lhvy"),u=n("g0Kb"),l=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY),t.call(this),this.scheduler=r,this._events=[],this._bufferSize=e<1?1:e,this._windowTime=n<1?1:n}return r(e,t),e.prototype.next=function(e){var n=this._getNow();this._events.push(new p(n,e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._trimBufferThenGetEvents(),r=this.scheduler;if(this.closed)throw new c.ObjectUnsubscribedError;this.hasError?e=s.Subscription.EMPTY:this.isStopped?e=s.Subscription.EMPTY:(this.observers.push(t),e=new u.SubjectSubscription(this,t)),r&&t.add(t=new a.ObserveOnSubscriber(t,r));for(var i=n.length,o=0;o<i&&!t.closed;o++)t.next(n[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||o.queue).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(t-r[o].time<n);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(i.Subject);e.ReplaySubject=l;var p=function(){return function(t,e){this.time=t,this.value=e}}()},"0lA3":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("yW9Z"),o=n("ktfo");e.switchMapTo=function(t,e){return function(n){return n.lift(new s(t,e))}};var s=function(){function t(t,e){this.observable=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.observable,this.resultSelector))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.inner=n,this.resultSelector=r,this.index=0}return r(e,t),e.prototype._next=function(t){var e=this.innerSubscription;e&&e.unsubscribe(),this.add(this.innerSubscription=o.subscribeToResult(this,this.inner,t,this.index++))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.resultSelector,s=this.destination;o?this.tryResultSelector(t,e,n,r):s.next(e)},e.prototype.tryResultSelector=function(t,e,n,r){var i,o=this.resultSelector,s=this.destination;try{i=o(t,e,n,r)}catch(t){return void s.error(t)}s.next(i)},e}(i.OuterSubscriber)},"0mJJ":function(t,e,n){"use strict";var r=n("+FJ1");e.concatMapTo=function(t,e){return r.concatMap(function(){return t},e)}},"0nG5":function(t,e,n){"use strict";var r=n("y3SI");e.min=function(t){return r.min(t)(this)}},"0nO6":function(t,e,n){"use strict";function r(t){return null==t||0===t.length}function i(t){return null!=t}function o(t){var e=Object(P["\u0275isPromise"])(t)?Object(V.a)(t):t;if(!Object(P["\u0275isObservable"])(e))throw new Error("Expected validator to return Promise or Observable.");return e}function s(t){var e=t.reduce(function(t,e){return null!=e?Object(j.a)({},t,e):t},{});return 0===Object.keys(e).length?null:e}function a(t){return t.validate?function(e){return t.validate(e)}:t}function c(t){return t.validate?function(e){return t.validate(e)}:t}function u(){throw new Error("unimplemented")}function l(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function p(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function h(t,e){return e.path.concat([t])}function d(t,e){t||v(e,"Cannot find control with"),e.valueAccessor||v(e,"No value accessor for form control with"),t.validator=Y.compose([t.validator,e.validator]),t.asyncValidator=Y.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&f(t,e)})}(t,e),function(t,e){t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&f(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function f(t,e){e.viewToModelUpdate(t._pendingValue),t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),t._pendingChange=!1}function y(t,e){null==t&&v(e,"Cannot find control with"),t.validator=Y.compose([t.validator,e.validator]),t.asyncValidator=Y.composeAsync([t.asyncValidator,e.asyncValidator])}function g(t){return v(t,"There is no FormControl instance attached to form control element with")}function v(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function m(t){return null!=t?Y.compose(t.map(a)):null}function b(t){return null!=t?Y.composeAsync(t.map(c)):null}function _(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object(P["\u0275looseIdentical"])(e,n.currentValue)}function x(t,e){t._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function w(t,e){if(!e)return null;var n=void 0,r=void 0,i=void 0;return e.forEach(function(e){e.constructor===J?n=e:!function(t){return ft.some(function(e){return t.constructor===e})}(e)?(i&&v(t,"More than one custom value accessor matches form control with"),i=e):(r&&v(t,"More than one built-in value accessor matches form control with"),r=e)}),i||(r||(n||(v(t,"No valid value accessor for form control with"),null)))}function O(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function S(t){var e=E(t)?t.validators:t;return Array.isArray(e)?m(e):e||null}function C(t,e){var n=E(e)?e.asyncValidators:t;return Array.isArray(n)?b(n):n||null}function E(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function T(t){return!(t instanceof qt||t instanceof Wt||t instanceof Kt)}var j=n("6Xbx"),P=n("LMZF"),A=n("AP4T"),I=n("Ecq+"),k=n("1j/l"),R=n("qgI0"),M=n("lI6h"),D=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},N=function(t){function e(e,n){t.call(this),this.sources=e,this.resultSelector=n}return D(e,t),e.create=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];if(null===t||0===arguments.length)return new I.a;var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&Object(k.a)(t[0])&&(t=t[0]),0===t.length?new I.a:new e(t,r)},e.prototype._subscribe=function(t){return new L(t,this.sources,this.resultSelector)},e}(A.Observable),L=function(t){function e(e,n,r){t.call(this,e),this.sources=n,this.resultSelector=r,this.completed=0,this.haveValues=0;var i=n.length;this.total=i,this.values=new Array(i);for(var o=0;o<i;o++){var s=n[o],a=Object(R.a)(this,s,null,o);a&&(a.outerIndex=o,this.add(a))}}return D(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e,i._hasValue||(i._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this.haveValues,r=this.resultSelector,i=this.values,o=i.length;if(t._hasValue){if(this.completed++,this.completed===o){if(n===o){var s=r?r.apply(this,i):i;e.next(s)}e.complete()}}else e.complete()},e}(M.a),F=N.create,V=n("CASk"),B=n("dmC+"),H=n("RyBE");n.d(e,"c",function(){return K}),n.d(e,"a",function(){return ue}),n.d(e,"e",function(){return Y}),n.d(e,"b",function(){return fe}),n.d(e,"d",function(){return ye});var z=function(){function t(){}return Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return!!this.control&&this.control.hasError(t,e)},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t}(),U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(j.b)(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(z),W=new P.InjectionToken("NgValidators"),G=new P.InjectionToken("NgAsyncValidators"),q=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,Y=function(){function t(){}return t.min=function(t){return function(e){if(r(e.value)||r(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}},t.max=function(t){return function(e){if(r(e.value)||r(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return r(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return q.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(r(e.value))return null;var n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}},t.maxLength=function(t){return function(e){var n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){if(!e)return t.nullValidator;var n,i;return"string"==typeof e?(i="^"+e+"$",n=new RegExp(i)):(i=e.toString(),n=e),function(t){if(r(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:i,actualValue:e}}}},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(i);return 0==e.length?null:function(t){return s(function(t,e){return e.map(function(e){return e(t)})}(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(i);return 0==e.length?null:function(t){var n=function(t,e){return e.map(function(e){return e(t)})}(t,e).map(o);return B.a.call(F(n),s)}},t}(),K=new P.InjectionToken("NgValueAccessor"),X={provide:K,useExisting:Object(P.forwardRef)(function(){return $}),multi:!0},$=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.decorators=[{type:P.Directive,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[X]}]}],t.ctorParameters=function(){return[{type:P.Renderer2},{type:P.ElementRef}]},t}(),Q={provide:K,useExisting:Object(P.forwardRef)(function(){return J}),multi:!0},Z=new P.InjectionToken("CompositionEventMode"),J=function(){function t(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){var t=Object(H["\u0275getDOM"])()?Object(H["\u0275getDOM"])().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t.decorators=[{type:P.Directive,args:[{selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)"},providers:[Q]}]}],t.ctorParameters=function(){return[{type:P.Renderer2},{type:P.ElementRef},{type:void 0,decorators:[{type:P.Optional},{type:P.Inject,args:[Z]}]}]},t}(),tt={provide:K,useExisting:Object(P.forwardRef)(function(){return et}),multi:!0},et=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.decorators=[{type:P.Directive,args:[{selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[tt]}]}],t.ctorParameters=function(){return[{type:P.Renderer2},{type:P.ElementRef}]},t}(),nt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return Object(j.b)(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return u()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return u()},enumerable:!0,configurable:!0}),e}(z),rt={provide:K,useExisting:Object(P.forwardRef)(function(){return ot}),multi:!0},it=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&(t[0]._parent===e._control._parent&&t[1].name===e.name)},t.decorators=[{type:P.Injectable}],t.ctorParameters=function(){return[]},t}(),ot=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(nt),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')},t.decorators=[{type:P.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[rt]}]}],t.ctorParameters=function(){return[{type:P.Renderer2},{type:P.ElementRef},{type:it},{type:P.Injector}]},t.propDecorators={name:[{type:P.Input}],formControlName:[{type:P.Input}],value:[{type:P.Input}]},t}(),st={provide:K,useExisting:Object(P.forwardRef)(function(){return at}),multi:!0},at=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.decorators=[{type:P.Directive,args:[{selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[st]}]}],t.ctorParameters=function(){return[{type:P.Renderer2},{type:P.ElementRef}]},t}(),ct={provide:K,useExisting:Object(P.forwardRef)(function(){return ut}),multi:!0},ut=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=P["\u0275looseIdentical"]}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=l(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e<n.length;e++){var r=n[e];if(this._compareWith(this._optionMap.get(r),t))return r}return null},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t.decorators=[{type:P.Directive,args:[{selector:"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[ct]}]}],t.ctorParameters=function(){return[{type:P.Renderer2},{type:P.ElementRef}]},t.propDecorators={compareWith:[{type:P.Input}]},t}(),lt=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(l(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t.decorators=[{type:P.Directive,args:[{selector:"option"}]}],t.ctorParameters=function(){return[{type:P.ElementRef},{type:P.Renderer2},{type:ut,decorators:[{type:P.Optional},{type:P.Host}]}]},t.propDecorators={ngValue:[{type:P.Input,args:["ngValue"]}],value:[{type:P.Input,args:["value"]}]},t}(),pt={provide:K,useExisting:Object(P.forwardRef)(function(){return ht}),multi:!0},ht=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=P["\u0275looseIdentical"]}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e=this;this.value=t;var n;if(Array.isArray(t)){var r=t.map(function(t){return e._getOptionId(t)});n=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else n=function(t,e){t._setSelected(!1)};this._optionMap.forEach(n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o<i.length;o++){var s=i.item(o),a=e._getOptionValue(s.value);r.push(a)}else for(i=n.options,o=0;o<i.length;o++){if((s=i.item(o)).selected){a=e._getOptionValue(s.value);r.push(a)}}e.value=r,t(r)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(t){var e=(this._idCounter++).toString();return this._optionMap.set(e,t),e},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e<n.length;e++){var r=n[e];if(this._compareWith(this._optionMap.get(r)._value,t))return r}return null},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t},t.decorators=[{type:P.Directive,args:[{selector:"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]",host:{"(change)":"onChange($event.target)","(blur)":"onTouched()"},providers:[pt]}]}],t.ctorParameters=function(){return[{type:P.Renderer2},{type:P.ElementRef}]},t.propDecorators={compareWith:[{type:P.Input}]},t}(),dt=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._value=t,this._setElementValue(p(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._select?(this._value=t,this._setElementValue(p(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)},t.prototype._setSelected=function(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t.decorators=[{type:P.Directive,args:[{selector:"option"}]}],t.ctorParameters=function(){return[{type:P.ElementRef},{type:P.Renderer2},{type:ht,decorators:[{type:P.Optional},{type:P.Host}]}]},t.propDecorators={ngValue:[{type:P.Input,args:["ngValue"]}],value:[{type:P.Input,args:["value"]}]},t}(),ft=[$,at,et,ut,ht,ot],yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(j.b)(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return h(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return m(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return b(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(U),gt=function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}(),vt={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},mt=function(t){function e(e){return t.call(this,e)||this}return Object(j.b)(e,t),e.decorators=[{type:P.Directive,args:[{selector:"[formControlName],[ngModel],[formControl]",host:vt}]}],e.ctorParameters=function(){return[{type:nt,decorators:[{type:P.Self}]}]},e}(gt),bt=function(t){function e(e){return t.call(this,e)||this}return Object(j.b)(e,t),e.decorators=[{type:P.Directive,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:vt}]}],e.ctorParameters=function(){return[{type:U,decorators:[{type:P.Self}]}]},e}(gt),_t="PENDING",xt="DISABLED",wt=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.status==_t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.status===xt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.status!==xt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=S(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=C(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){void 0===t&&(t={}),this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype.markAsPending=function(t){void 0===t&&(t={}),this.status=_t,this._parent&&!t.onlySelf&&this._parent.markAsPending(t)},t.prototype.disable=function(t){void 0===t&&(t={}),this.status=xt,this.errors=null,this._forEachChild(function(t){t.disable({onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(!!t.onlySelf),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){void 0===t&&(t={}),this.status="VALID",this._forEachChild(function(t){t.enable({onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(!!t.onlySelf),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t&&(this._parent.updateValueAndValidity(),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.updateValueAndValidity=function(t){void 0===t&&(t={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&this.status!==_t||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)},t.prototype._updateTreeValidity=function(t){void 0===t&&(t={emitEvent:!0}),this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})},t.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?xt:"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this.status=_t;var n=o(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return e.setErrors(n,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){void 0===e&&(e={}),this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(t){return function(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(n)),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof St?t.controls[e]||null:t instanceof Ct?t.at(e)||null:null},t))}(this,t,".")},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this.valueChanges=new P.EventEmitter,this.statusChanges=new P.EventEmitter},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?xt:this.errors?"INVALID":this._anyControlsHaveStatus(_t)?_t:this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls(function(e){return e.status===t})},t.prototype._anyControlsDirty=function(){return this._anyControls(function(t){return t.dirty})},t.prototype._anyControlsTouched=function(){return this._anyControls(function(t){return t.touched})},t.prototype._updatePristine=function(t){void 0===t&&(t={}),this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype._updateTouched=function(t){void 0===t&&(t={}),this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t.prototype._setUpdateStrategy=function(t){E(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t}(),Ot=function(t){function e(e,n,r){void 0===e&&(e=null);var i=t.call(this,S(n),C(r,n))||this;return i._onChange=[],i._applyFormState(e),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return Object(j.b)(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(function(t){return t(n.value,!1!==e.emitViewToModelChange)}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange))&&(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0)},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t},e}(wt),St=function(t){function e(e,n,r){var i=t.call(this,S(n),C(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(j.b)(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof Ot?e.value:e.getRawValue(),t})},e.prototype._syncPendingControls=function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: "+t+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach(function(n){return t(e.controls[n],n)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})},e.prototype._updateValue=function(){this.value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild(function(r,i){n=n||e.contains(i)&&t(r)}),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e})},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild(function(t,r){n=e(n,t,r)}),n},e.prototype._allControlsDisabled=function(){for(var t=0,e=Object.keys(this.controls);t<e.length;t++){var n=e[t];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(wt),Ct=function(t){function e(e,n,r){var i=t.call(this,S(n),C(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(j.b)(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof Ot?t.value:t.getRawValue()})},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){for(var t=0,e=this.controls;t<e.length;t++){if(e[t].enabled)return!1}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(wt),Et={provide:U,useExisting:Object(P.forwardRef)(function(){return jt})},Tt=Promise.resolve(null),jt=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new P.EventEmitter,r.form=new St({},m(e),b(n)),r}return Object(j.b)(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;Tt.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),d(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;Tt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),O(e._directives,t)})},e.prototype.addFormGroup=function(t){var e=this;Tt.then(function(){var n=e._findContainer(t.path),r=new St({});y(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;Tt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;Tt.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,x(this.form,this._directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e.decorators=[{type:P.Directive,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[Et],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],e.ctorParameters=function(){return[{type:Array,decorators:[{type:P.Optional},{type:P.Self},{type:P.Inject,args:[W]}]},{type:Array,decorators:[{type:P.Optional},{type:P.Self},{type:P.Inject,args:[G]}]}]},e.propDecorators={options:[{type:P.Input,args:["ngFormOptions"]}]},e}(U),Pt='\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',At='\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',It='\n <div [formGroup]="myGroup">\n <div formArrayName="cities">\n <div *ngFor="let city of cityArray.controls; index as i">\n <input [formControlName]="i">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',kt='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',Rt='\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n ',Mt=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+Pt+"\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 "+Rt)},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+At+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+kt)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+At+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+kt)},t}(),Dt={provide:U,useExisting:Object(P.forwardRef)(function(){return Nt})},Nt=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return Object(j.b)(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof jt||Mt.modelGroupParentException()},e.decorators=[{type:P.Directive,args:[{selector:"[ngModelGroup]",providers:[Dt],exportAs:"ngModelGroup"}]}],e.ctorParameters=function(){return[{type:U,decorators:[{type:P.Host},{type:P.SkipSelf}]},{type:Array,decorators:[{type:P.Optional},{type:P.Self},{type:P.Inject,args:[W]}]},{type:Array,decorators:[{type:P.Optional},{type:P.Self},{type:P.Inject,args:[G]}]}]},e.propDecorators={name:[{type:P.Input,args:["ngModelGroup"]}]},e}(yt),Lt={provide:nt,useExisting:Object(P.forwardRef)(function(){return Vt})},Ft=Promise.resolve(null),Vt=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.control=new Ot,o._registered=!1,o.update=new P.EventEmitter,o._parent=e,o._rawValidators=n||[],o._rawAsyncValidators=r||[],o.valueAccessor=w(o,i),o}return Object(j.b)(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),_(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?h(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return m(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return b(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){d(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof Nt)&&this._parent instanceof yt?Mt.formGroupNameException():this._parent instanceof Nt||this._parent instanceof jt||Mt.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Mt.missingNameException()},e.prototype._updateValue=function(t){var e=this;Ft.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;Ft.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},e.decorators=[{type:P.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Lt],exportAs:"ngModel"}]}],e.ctorParameters=function(){return[{type:U,decorators:[{type:P.Optional},{type:P.Host}]},{type:Array,decorators:[{type:P.Optional},{type:P.Self},{type:P.Inject,args:[W]}]},{type:Array,decorators:[{type:P.Optional},{type:P.Self},{type:P.Inject,args:[G]}]},{type:Array,decorators:[{type:P.Optional},{type:P.Self},{type:P.Inject,args:[K]}]}]},e.propDecorators={name:[{type:P.Input}],isDisabled:[{type:P.Input,args:["disabled"]}],model:[{type:P.Input,args:["ngModel"]}],options:[{type:P.Input,args:["ngModelOptions"]}],update:[{type:P.Output,args:["ngModelChange"]}]},e}(nt),Bt=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+Pt)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+At+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+kt)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+Pt)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+At)},t.arrayParentException=function(){throw new Error("formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+It)},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t}(),Ht={provide:nt,useExisting:Object(P.forwardRef)(function(){return zt})},zt=function(t){function e(e,n,r){var i=t.call(this)||this;return i.update=new P.EventEmitter,i._rawValidators=e||[],i._rawAsyncValidators=n||[],i.valueAccessor=w(i,r),i}return Object(j.b)(e,t),Object.defineProperty(e.prototype,"isDisabled",{set:function(t){Bt.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(d(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),_(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return m(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return b(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},e.decorators=[{type:P.Directive,args:[{selector:"[formControl]",providers:[Ht],exportAs:"ngForm"}]}],e.ctorParameters=function(){return[{type:Array,decorators:[{type:P.Optional},{type:P.Self},{type:P.Inject,args:[W]}]},{type:Array,decorators:[{type:P.Optional},{type:P.Self},{type:P.Inject,args:[G]}]},{type:Array,decorators:[{type:P.Optional},{type:P.Self},{type:P.Inject,args:[K]}]}]},e.propDecorators={form:[{type:P.Input,args:["formControl"]}],model:[{type:P.Input,args:["ngModel"]}],update:[{type:P.Output,args:["ngModelChange"]}],isDisabled:[{type:P.Input,args:["disabled"]}]},e}(nt),Ut={provide:U,useExisting:Object(P.forwardRef)(function(){return Wt})},Wt=function(t){function e(e,n){var r=t.call(this)||this;return r._validators=e,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new P.EventEmitter,r}return Object(j.b)(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return d(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){O(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);y(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);y(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this.submitted=!0,x(this.form,this.directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e.control!==n&&(!function(t,e){e.valueAccessor.registerOnChange(function(){return g(e)}),e.valueAccessor.registerOnTouched(function(){return g(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(e.control,e),n&&d(n,e),e.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=m(this._validators);this.form.validator=Y.compose([this.form.validator,t]);var e=b(this._asyncValidators);this.form.asyncValidator=Y.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||Bt.missingFormException()},e.decorators=[{type:P.Directive,args:[{selector:"[formGroup]",providers:[Ut],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],e.ctorParameters=function(){return[{type:Array,decorators:[{type:P.Optional},{type:P.Self},{type:P.Inject,args:[W]}]},{type:Array,decorators:[{type:P.Optional},{type:P.Self},{type:P.Inject,args:[G]}]}]},e.propDecorators={form:[{type:P.Input,args:["formGroup"]}],ngSubmit:[{type:P.Output}]},e}(U),Gt={provide:U,useExisting:Object(P.forwardRef)(function(){return qt})},qt=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return Object(j.b)(e,t),e.prototype._checkParentType=function(){T(this._parent)&&Bt.groupParentException()},e.decorators=[{type:P.Directive,args:[{selector:"[formGroupName]",providers:[Gt]}]}],e.ctorParameters=function(){return[{type:U,decorators:[{type:P.Optional},{type:P.Host},{type:P.SkipSelf}]},{type:Array,decorators:[{type:P.Optional},{type:P.Self},{type:P.Inject,args:[W]}]},{type:Array,decorators:[{type:P.Optional},{type:P.Self},{type:P.Inject,args:[G]}]}]},e.propDecorators={name:[{type:P.Input,args:["formGroupName"]}]},e}(yt),Yt={provide:U,useExisting:Object(P.forwardRef)(function(){return Kt})},Kt=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return Object(j.b)(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return h(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return m(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return b(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){T(this._parent)&&Bt.arrayParentException()},e.decorators=[{type:P.Directive,args:[{selector:"[formArrayName]",providers:[Yt]}]}],e.ctorParameters=function(){return[{type:U,decorators:[{type:P.Optional},{type:P.Host},{type:P.SkipSelf}]},{type:Array,decorators:[{type:P.Optional},{type:P.Self},{type:P.Inject,args:[W]}]},{type:Array,decorators:[{type:P.Optional},{type:P.Self},{type:P.Inject,args:[G]}]}]},e.propDecorators={name:[{type:P.Input,args:["formArrayName"]}]},e}(U),Xt={provide:nt,useExisting:Object(P.forwardRef)(function(){return $t})},$t=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o._added=!1,o.update=new P.EventEmitter,o._parent=e,o._rawValidators=n||[],o._rawAsyncValidators=r||[],o.valueAccessor=w(o,i),o}return Object(j.b)(e,t),Object.defineProperty(e.prototype,"isDisabled",{set:function(t){Bt.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),_(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(e.prototype,"path",{get:function(){return h(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return m(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return b(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){!(this._parent instanceof qt)&&this._parent instanceof yt?Bt.ngModelGroupException():this._parent instanceof qt||this._parent instanceof Wt||this._parent instanceof Kt||Bt.controlParentException()},e.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},e.decorators=[{type:P.Directive,args:[{selector:"[formControlName]",providers:[Xt]}]}],e.ctorParameters=function(){return[{type:U,decorators:[{type:P.Optional},{type:P.Host},{type:P.SkipSelf}]},{type:Array,decorators:[{type:P.Optional},{type:P.Self},{type:P.Inject,args:[W]}]},{type:Array,decorators:[{type:P.Optional},{type:P.Self},{type:P.Inject,args:[G]}]},{type:Array,decorators:[{type:P.Optional},{type:P.Self},{type:P.Inject,args:[K]}]}]},e.propDecorators={name:[{type:P.Input,args:["formControlName"]}],model:[{type:P.Input,args:["ngModel"]}],update:[{type:P.Output,args:["ngModelChange"]}],isDisabled:[{type:P.Input,args:["disabled"]}]},e}(nt),Qt={provide:W,useExisting:Object(P.forwardRef)(function(){return Jt}),multi:!0},Zt={provide:W,useExisting:Object(P.forwardRef)(function(){return te}),multi:!0},Jt=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?Y.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.decorators=[{type:P.Directive,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[Qt],host:{"[attr.required]":'required ? "" : null'}}]}],t.ctorParameters=function(){return[]},t.propDecorators={required:[{type:P.Input}]},t}(),te=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(j.b)(e,t),e.prototype.validate=function(t){return this.required?Y.requiredTrue(t):null},e.decorators=[{type:P.Directive,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[Zt],host:{"[attr.required]":'required ? "" : null'}}]}],e.ctorParameters=function(){return[]},e}(Jt),ee={provide:W,useExisting:Object(P.forwardRef)(function(){return ne}),multi:!0},ne=function(){function t(){}return Object.defineProperty(t.prototype,"email",{set:function(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this._enabled?Y.email(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.decorators=[{type:P.Directive,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[ee]}]}],t.ctorParameters=function(){return[]},t.propDecorators={email:[{type:P.Input}]},t}(),re={provide:W,useExisting:Object(P.forwardRef)(function(){return ie}),multi:!0},ie=function(){function t(){}return t.prototype.ngOnChanges=function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null==this.minlength?null:this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=Y.minLength(parseInt(this.minlength,10))},t.decorators=[{type:P.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[re],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={minlength:[{type:P.Input}]},t}(),oe={provide:W,useExisting:Object(P.forwardRef)(function(){return se}),multi:!0},se=function(){function t(){}return t.prototype.ngOnChanges=function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null!=this.maxlength?this._validator(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=Y.maxLength(parseInt(this.maxlength,10))},t.decorators=[{type:P.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[oe],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={maxlength:[{type:P.Input}]},t}(),ae={provide:W,useExisting:Object(P.forwardRef)(function(){return ce}),multi:!0},ce=function(){function t(){}return t.prototype.ngOnChanges=function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=Y.pattern(this.pattern)},t.decorators=[{type:P.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[ae],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={pattern:[{type:P.Input}]},t}(),ue=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),r=null!=e?e.validator:null,i=null!=e?e.asyncValidator:null;return new St(n,r,i)},t.prototype.control=function(t,e,n){return new Ot(t,e,n)},t.prototype.array=function(t,e,n){var r=this,i=t.map(function(t){return r._createControl(t)});return new Ct(i,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach(function(r){n[r]=e._createControl(t[r])}),n},t.prototype._createControl=function(t){if(t instanceof Ot||t instanceof St||t instanceof Ct)return t;if(Array.isArray(t)){var e=t[0],n=t.length>1?t[1]:null,r=t.length>2?t[2]:null;return this.control(e,n,r)}return this.control(t)},t.decorators=[{type:P.Injectable}],t.ctorParameters=function(){return[]},t}(),le=(new P.Version("5.1.0"),[function(){function t(){}return t.decorators=[{type:P.Directive,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}],t.ctorParameters=function(){return[]},t}(),lt,dt,J,et,at,$,ut,ht,ot,mt,bt,Jt,ie,se,ce,te,ne]),pe=[Vt,Nt,jt],he=[zt,Wt,$t,qt,Kt],de=function(){function t(){}return t.decorators=[{type:P.NgModule,args:[{declarations:le,exports:le}]}],t.ctorParameters=function(){return[]},t}(),fe=function(){function t(){}return t.decorators=[{type:P.NgModule,args:[{declarations:pe,providers:[it],exports:[de,pe]}]}],t.ctorParameters=function(){return[]},t}(),ye=function(){function t(){}return t.decorators=[{type:P.NgModule,args:[{declarations:[he],providers:[ue,it],exports:[de,he]}]}],t.ctorParameters=function(){return[]},t}()},"1VPd":function(t,e,n){"use strict";var r=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=Date.now?Date.now:function(){return+new Date},t}();e.Scheduler=r},"1ZKk":function(t,e,n){"use strict";function r(t,e,n,i){function o(e){return t(e=new Date(+e)),e}return o.floor=o,o.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},o.round=function(t){var e=o(t),n=o.ceil(t);return t-e<n-t?e:n},o.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},o.range=function(n,r,i){var s,a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;do{a.push(s=new Date(+n)),e(n,i),t(n)}while(s<n&&n<r);return a},o.filter=function(n){return r(function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(o.count=function(e,r){return s.setTime(+e),a.setTime(+r),t(s),t(a),Math.floor(n(s,a))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(i?function(e){return i(e)%t==0}:function(e){return o.count(0,e)%t==0}):o:null}),o}function i(t){return r(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*p)/h})}function o(t){return r(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/h})}var s=new Date,a=new Date,c=r(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});c.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):c:null};var u=c,l=c.range,p=6e4,h=6048e5,d=r(function(t){t.setTime(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),f=d,y=d.range,g=r(function(t){t.setTime(Math.floor(t/p)*p)},function(t,e){t.setTime(+t+e*p)},function(t,e){return(e-t)/p},function(t){return t.getMinutes()}),v=g,m=g.range,b=r(function(t){var e=t.getTimezoneOffset()*p%36e5;e<0&&(e+=36e5),t.setTime(36e5*Math.floor((+t-e)/36e5)+e)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()}),_=b,x=b.range,w=r(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*p)/864e5},function(t){return t.getDate()-1}),O=w,S=w.range,C=i(0),E=i(1),T=i(2),j=i(3),P=i(4),A=i(5),I=i(6),k=C.range,R=E.range,M=T.range,D=j.range,N=P.range,L=A.range,F=I.range,V=r(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),B=V,H=V.range,z=r(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});z.every=function(t){return isFinite(t=Math.floor(t))&&t>0?r(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var U=z,W=z.range,G=r(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*p)},function(t,e){return(e-t)/p},function(t){return t.getUTCMinutes()}),q=G,Y=G.range,K=r(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getUTCHours()}),X=K,$=K.range,Q=r(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1}),Z=Q,J=Q.range,tt=o(0),et=o(1),nt=o(2),rt=o(3),it=o(4),ot=o(5),st=o(6),at=tt.range,ct=et.range,ut=nt.range,lt=rt.range,pt=it.range,ht=ot.range,dt=st.range,ft=r(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),yt=ft,gt=ft.range,vt=r(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});vt.every=function(t){return isFinite(t=Math.floor(t))&&t>0?r(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var mt=vt,bt=vt.range;n.d(e,!1,function(){return r}),n.d(e,"c",function(){return u}),n.d(e,!1,function(){return l}),n.d(e,"n",function(){return u}),n.d(e,!1,function(){return l}),n.d(e,"g",function(){return f}),n.d(e,!1,function(){return y}),n.d(e,"r",function(){return f}),n.d(e,!1,function(){return y}),n.d(e,"d",function(){return v}),n.d(e,!1,function(){return m}),n.d(e,"b",function(){return _}),n.d(e,!1,function(){return x}),n.d(e,"a",function(){return O}),n.d(e,!1,function(){return S}),n.d(e,"j",function(){return C}),n.d(e,!1,function(){return k}),n.d(e,"h",function(){return C}),n.d(e,!1,function(){return k}),n.d(e,"e",function(){return E}),n.d(e,!1,function(){return R}),n.d(e,!1,function(){return T}),n.d(e,!1,function(){return M}),n.d(e,!1,function(){return j}),n.d(e,!1,function(){return D}),n.d(e,"i",function(){return P}),n.d(e,!1,function(){return N}),n.d(e,!1,function(){return A}),n.d(e,!1,function(){return L}),n.d(e,!1,function(){return I}),n.d(e,!1,function(){return F}),n.d(e,"f",function(){return B}),n.d(e,!1,function(){return H}),n.d(e,"k",function(){return U}),n.d(e,!1,function(){return W}),n.d(e,"o",function(){return q}),n.d(e,!1,function(){return Y}),n.d(e,"m",function(){return X}),n.d(e,!1,function(){return $}),n.d(e,"l",function(){return Z}),n.d(e,!1,function(){return J}),n.d(e,"u",function(){return tt}),n.d(e,!1,function(){return at}),n.d(e,"s",function(){return tt}),n.d(e,!1,function(){return at}),n.d(e,"p",function(){return et}),n.d(e,!1,function(){return ct}),n.d(e,!1,function(){return nt}),n.d(e,!1,function(){return ut}),n.d(e,!1,function(){return rt}),n.d(e,!1,function(){return lt}),n.d(e,"t",function(){return it}),n.d(e,!1,function(){return pt}),n.d(e,!1,function(){return ot}),n.d(e,!1,function(){return ht}),n.d(e,!1,function(){return st}),n.d(e,!1,function(){return dt}),n.d(e,"q",function(){return yt}),n.d(e,!1,function(){return gt}),n.d(e,"v",function(){return mt}),n.d(e,!1,function(){return bt})},"1eQ7":function(t,e,n){"use strict";var r=n("+BWq");e.first=function(t,e,n){return r.first(t,e,n)(this)}},"1j/l":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Array.isArray||function(t){return t&&"number"==typeof t.length}},"1kAr":function(t,e,n){"use strict";var r=n("6d3x");e.mapTo=function(t){return r.mapTo(t)(this)}},"1pbG":function(t,e,n){"use strict";var r=n("bKpL"),i=n("NkQZ");r.Observable.prototype.switchMapTo=i.switchMapTo},"23I1":function(t,e,n){"use strict";var r=n("MzWM");e.defer=r.DeferObservable.create},"2B7B":function(t,e,n){"use strict";function r(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var i=Object.getOwnPropertyNames(r.prototype),o=0;o<i.length;++o){var s=i[o];if("entries"!==s&&"size"!==s&&r.prototype[s]===r.prototype.entries)return s}return"@@iterator"}var i=n("zijX");e.symbolIteratorPonyfill=r,e.iterator=r(i.root),e.$$iterator=e.iterator},"2Rhf":function(t,e,n){"use strict";var r=n("UHtL");e.skipUntil=function(t){return r.skipUntil(t)(this)}},"2Sjb":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+"),o=n("RdI5"),s=n("XRvs");e.distinctUntilChanged=function(t,e){return function(n){return n.lift(new a(t,e))}};var a=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.compare,this.keySelector))},t}(),c=function(t){function e(e,n,r){t.call(this,e),this.keySelector=r,this.hasKey=!1,"function"==typeof n&&(this.compare=n)}return r(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e=t;if(this.keySelector&&(e=o.tryCatch(this.keySelector)(t))===s.errorObject)return this.destination.error(s.errorObject.e);var n=!1;if(this.hasKey){if((n=o.tryCatch(this.compare)(this.key,e))===s.errorObject)return this.destination.error(s.errorObject.e)}else this.hasKey=!0;!1===Boolean(n)&&(this.key=e,this.destination.next(t))},e}(i.Subscriber)},"2UX5":function(t,e,n){"use strict";var r=n("IhB/"),i=n("qbt9");e.timeout=function(t,e){return void 0===e&&(e=r.async),i.timeout(t,e)(this)}},"2kLc":function(t,e,n){"use strict";e.a=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=Number.POSITIVE_INFINITY,a=null,c=t[t.length-1];return Object(o.a)(c)?(a=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof c&&(n=t.pop()),null===a&&1===t.length&&t[0]instanceof r.Observable?t[0]:Object(s.a)(n)(new i.a(t,a))};var r=n("AP4T"),i=n("Oryw"),o=n("3iOE"),s=n("bywS")},"2l91":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("yW9Z"),o=n("ktfo");e.debounce=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.durationSelector))},t}(),a=function(t){function e(e,n){t.call(this,e),this.durationSelector=n,this.hasValue=!1,this.durationSubscription=null}return r(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=o.subscribeToResult(this,e)).closed||this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(i.OuterSubscriber)},"3N4h":function(t,e,n){"use strict";var r=n("7tal");e.window=function(t){return r.window(t)(this)}},"3iOE":function(t,e,n){"use strict";e.a=function(t){return t&&"function"==typeof t.schedule}},"3lsR":function(t,e,n){"use strict";var r=n("bKpL"),i=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return r.Observable.of(this.value);case"E":return r.Observable.throw(this.error);case"C":return r.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return"undefined"!=typeof e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();e.Notification=i},"422b":function(t,e,n){"use strict";var r=n("Hd11");e.filter=function(t,e){return r.filter(t,e)(this)}},"4HZJ":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+");e.tap=function(t,e,n){return function(r){return r.lift(new o(t,e,n))}};var o=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.nextOrObserver,this.error,this.complete))},t}(),s=function(t){function e(e,n,r,o){t.call(this,e);var s=new i.Subscriber(n,r,o);s.syncErrorThrowable=!0,this.add(s),this.safeSubscriber=s}return r(e,t),e.prototype._next=function(t){var e=this.safeSubscriber;e.next(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.next(t)},e.prototype._error=function(t){var e=this.safeSubscriber;e.error(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.error(t)},e.prototype._complete=function(){var t=this.safeSubscriber;t.complete(),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.complete()},e}(i.Subscriber)},"4JlW":function(t,e,n){"use strict";var r=n("bKpL"),i=n("QgC4");r.Observable.webSocket=i.webSocket},"56vs":function(t,e,n){"use strict";var r=n("aL6N");e.skipWhile=function(t){return r.skipWhile(t)(this)}},"5NGA":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+");e.bufferCount=function(t,e){return void 0===e&&(e=null),function(n){return n.lift(new o(t,e))}};var o=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?a:s}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),s=function(t){function e(e,n){t.call(this,e),this.bufferSize=n,this.buffer=[]}return r(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(i.Subscriber),a=function(t){function e(e,n,r){t.call(this,e),this.bufferSize=n,this.startBufferEvery=r,this.buffers=[],this.count=0}return r(e,t),e.prototype._next=function(t){var e=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var o=r.length;o--;){var s=r[o];s.push(t),s.length===e&&(r.splice(o,1),this.destination.next(s))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var r=e.shift();r.length>0&&n.next(r)}t.prototype._complete.call(this)},e}(i.Subscriber)},"5p6H":function(t,e,n){"use strict";var r=n("bKpL"),i=n("TIdC");r.Observable.prototype.mergeAll=i.mergeAll},"5r3W":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+");e.retry=function(t){return void 0===t&&(t=-1),function(e){return e.lift(new o(t,e))}};var o=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.count,this.source))},t}(),s=function(t){function e(e,n,r){t.call(this,e),this.count=n,this.source=r}return r(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return t.prototype.error.call(this,e);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(i.Subscriber)},"5uCp":function(t,e,n){"use strict";var r=n("bKpL"),i=n("Lqs2");r.Observable.prototype.take=i.take},"5v8a":function(t,e,n){"use strict";var r=n("bKpL"),i=n("lx+J");r.Observable.prototype.map=i.map},"5x23":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+");e.takeWhile=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate))},t}(),s=function(t){function e(e,n){t.call(this,e),this.predicate=n,this.index=0}return r(e,t),e.prototype._next=function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(t){return void n.error(t)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var n=this.destination;Boolean(e)?n.next(t):n.complete()},e}(i.Subscriber)},"60lp":function(t,e,n){"use strict";function r(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("IhB/");e.sampleTime=function(t,e){return void 0===e&&(e=s.async),function(n){return n.lift(new a(t,e))}};var a=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.period,this.scheduler))},t}(),c=function(t){function e(e,n,i){t.call(this,e),this.period=n,this.scheduler=i,this.hasValue=!1,this.add(i.schedule(r,n,{subscriber:this,period:n}))}return i(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(o.Subscriber)},"60yU":function(t,e,n){"use strict";var r=n("g9kf");e.repeatWhen=function(t){return r.repeatWhen(t)(this)}},"67Ck":function(t,e,n){"use strict";var r=n("bKpL"),i=n("56vs");r.Observable.prototype.skipWhile=i.skipWhile},"6DBm":function(t,e,n){"use strict";var r=n("bKpL"),i=n("+c7d");r.Observable.prototype.combineLatest=i.combineLatest},"6JjX":function(t,e,n){"use strict";var r=n("rhfi");e._switch=function(){return r.switchAll()(this)}},"6NKQ":function(t,e,n){"use strict";var r=n("bKpL"),i=n("kkQ5");r.Observable.prototype.scan=i.scan},"6P86":function(t,e,n){"use strict";var r=n("MicL"),i=n("NSJx"),o=n("wZOE"),s=n("H4tt");e.combineLatest=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=null,a=null;return r.isScheduler(t[t.length-1])&&(a=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&i.isArray(t[0])&&(t=t[0]),new o.ArrayObservable(t,a).lift(new s.CombineLatestOperator(n))}},"6QEA":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("xFbG"),o=n("ktfo"),s=n("yW9Z");e.bufferToggle=function(t,e){return function(n){return n.lift(new a(t,e))}};var a=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.openings,this.closingSelector))},t}(),c=function(t){function e(e,n,r){t.call(this,e),this.openings=n,this.closingSelector=r,this.contexts=[],this.add(o.subscribeToResult(this,n))}return r(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,r=0;r<n;r++)e[r].buffer.push(t)},e.prototype._error=function(e){for(var n=this.contexts;n.length>0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.buffer,r=t.subscription;this.destination.next(n),e.splice(e.indexOf(t),1),this.remove(r),r.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new i.Subscription,r={buffer:[],subscription:n};e.push(r);var s=o.subscribeToResult(this,t,r);!s||s.closed?this.closeBuffer(r):(s.context=r,this.add(s),n.add(s))},e}(s.OuterSubscriber)},"6S6c":function(t,e,n){"use strict";var r=n("E9/g"),i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,n,r){t.call(this,e),this.predicate=n,this.thisArg=r,this.count=0}return i(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(r.a);e.a=function(t,e){return function(t,e){return function(n){return n.lift(new o(t,e))}}(t,e)(this)}},"6Xbx":function(t,e,n){"use strict";e.b=function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},n.d(e,"a",function(){return i});var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t}},"6d3x":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+");e.mapTo=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.value))},t}(),s=function(t){function e(e,n){t.call(this,e),this.value=n}return r(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(i.Subscriber)},"6jp4":function(t,e,n){"use strict";e.isDate=function(t){return t instanceof Date&&!isNaN(+t)}},"6nek":function(t,e,n){"use strict";var r=n("q+5A");e.interval=r.IntervalObservable.create},"7JOC":function(t,e,n){"use strict";var r=n("OWbQ");e.from=r.FromObservable.create},"7Obz":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(n("I2Y9").AsyncScheduler);e.AnimationFrameScheduler=i},"7PW3":function(t,e,n){"use strict";var r=n("T5Q1");e.using=r.UsingObservable.create},"7dLC":function(t,e,n){"use strict";var r=n("XWpj"),i=n("YofN");e.raceStatic=i.race,e.race=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r.race.apply(void 0,t)(this)}},"7kbP":function(t,e,n){"use strict";var r=n("MicL"),i=n("+zVg"),o=n("7JOC"),s=n("NiCh");e.concat=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 1===t.length||2===t.length&&r.isScheduler(t[1])?o.from(t[0]):s.concatAll()(i.of.apply(void 0,t))}},"7rqg":function(t,e,n){"use strict";var r=n("bKpL"),i=n("TQn8");r.Observable.prototype.concatMap=i.concatMap},"7tal":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("rlar"),o=n("yW9Z"),s=n("ktfo");e.window=function(t){return function(e){return e.lift(new a(t))}};var a=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var n=new c(t),r=e.subscribe(n);return r.closed||n.add(s.subscribeToResult(n,this.windowBoundaries)),r},t}(),c=function(t){function e(e){t.call(this,e),this.window=new i.Subject,e.next(this.window)}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.openWindow()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,n=this.window=new i.Subject;e.next(n)},e}(o.OuterSubscriber)},"7u+W":function(t,e,n){"use strict";var r=n("bKpL"),i=n("QU9E");r.Observable.fromPromise=i.fromPromise},"7xz3":function(t,e,n){"use strict";var r=n("H4tt");e.combineAll=function(t){return function(e){return e.lift(new r.CombineLatestOperator(t))}}},"82j9":function(t,e){},"86mp":function(t,e,n){"use strict";var r=n("bKpL"),i=n("s6AU");r.Observable.prototype.takeWhile=i.takeWhile},"89am":function(t,e,n){"use strict";var r=n("bKpL"),i=n("vokw");r.Observable.prototype.expand=i.expand},"8Ben":function(t,e,n){"use strict";e.letProto=function(t){return t(this)}},"8H5Y":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+"),o=n("xFbG"),s=n("bKpL"),a=n("rlar"),c=n("R61s"),u=n("etpI");e.groupBy=function(t,e,n,r){return function(i){return i.lift(new l(t,e,n,r))}};var l=function(){function t(t,e,n,r){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=r}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),p=function(t){function e(e,n,r,i,o){t.call(this,e),this.keySelector=n,this.elementSelector=r,this.durationSelector=i,this.subjectSelector=o,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}return r(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups="string"==typeof e?new u.FastMap:new c.Map);var r,i=n.get(e);if(this.elementSelector)try{r=this.elementSelector(t)}catch(t){this.error(t)}else r=t;if(!i){i=this.subjectSelector?this.subjectSelector():new a.Subject,n.set(e,i);var o=new d(e,i,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new d(e,i))}catch(t){return void this.error(t)}this.add(s.subscribe(new h(e,i,this)))}}i.closed||i.next(r)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach(function(e,n){e.error(t)}),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(t,e){t.complete()}),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(i.Subscriber),h=function(t){function e(e,n,r){t.call(this,n),this.key=e,this.group=n,this.parent=r}return r(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(i.Subscriber),d=function(t){function e(e,n,r){t.call(this),this.key=e,this.groupSubject=n,this.refCountSubscription=r}return r(e,t),e.prototype._subscribe=function(t){var e=new o.Subscription,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&e.add(new f(n)),e.add(r.subscribe(t)),e},e}(s.Observable);e.GroupedObservable=d;var f=function(t){function e(e){t.call(this),this.parent=e,e.count++}return r(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(o.Subscription)},"8Jh8":function(t,e,n){"use strict";var r=n("y3aq");e.takeUntil=function(t){return r.takeUntil(t)(this)}},"8Ut3":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("AP4T"),i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e,n){t.call(this),this.value=e,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return i(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.done,n=t.value,r=t.subscriber;e?r.complete():(r.next(n),r.closed||(t.done=!0,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.value,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{done:!1,value:n,subscriber:t});t.next(n),t.closed||t.complete()},e}(r.Observable)},"8efI":function(t,e,n){"use strict";var r=n("y+rW");e.distinct=function(t,e){return r.distinct(t,e)(this)}},"8ofh":function(t,e,n){"use strict";function r(){try{return i.apply(this,arguments)}catch(t){return o.a.e=t,o.a}}e.a=function(t){return i=t,r};var i,o=n("NePw")},"8pdA":function(t,e,n){"use strict";var r=n("IhB/"),i=n("MicL"),o=n("duFl");e.bufferTime=function(t){var e=arguments.length,n=r.async;i.isScheduler(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var s=null;e>=2&&(s=arguments[1]);var a=Number.POSITIVE_INFINITY;return e>=3&&(a=arguments[2]),o.bufferTime(t,s,a,n)(this)}},"8rcZ":function(t,e,n){"use strict";var r=n("mjx3"),i=n("Yuqz");e.mergeAll=function(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),r.mergeMap(i.identity,null,t)}},"9BYh":function(t,e,n){"use strict";function r(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,o,s,a,c,u,l,p,h,d=t._root,f={data:r},y=t._x0,g=t._y0,v=t._x1,m=t._y1;if(!d)return t._root=f,t;for(;d.length;)if((u=e>=(o=(y+v)/2))?y=o:v=o,(l=n>=(s=(g+m)/2))?g=s:m=s,i=d,!(d=d[p=l<<1|u]))return i[p]=f,t;if(a=+t._x.call(null,d.data),c=+t._y.call(null,d.data),e===a&&n===c)return f.next=d,i?i[p]=f:t._root=f,t;do{i=i?i[p]=new Array(4):t._root=new Array(4),(u=e>=(o=(y+v)/2))?y=o:v=o,(l=n>=(s=(g+m)/2))?g=s:m=s}while((p=l<<1|u)==(h=(c>=s)<<1|a>=o));return i[h]=d,i[p]=f,t}function i(t){return t[0]}function o(t){return t[1]}function s(t,e,n){var r=new a(null==e?i:e,null==n?o:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function a(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function c(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}function u(t){return t.x+t.vx}function l(t){return t.y+t.vy}function p(t){return t.index}function h(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function d(t){return t.x}function f(t){return t.y}Object.defineProperty(e,"__esModule",{value:!0});var y=function(t,e){function n(){var n,i,o=r.length,s=0,a=0;for(n=0;n<o;++n)s+=(i=r[n]).x,a+=i.y;for(s=s/o-t,a=a/o-e,n=0;n<o;++n)(i=r[n]).x-=s,i.y-=a}var r;return null==t&&(t=0),null==e&&(e=0),n.initialize=function(t){r=t},n.x=function(e){return arguments.length?(t=+e,n):t},n.y=function(t){return arguments.length?(e=+t,n):e},n},g=function(t){return function(){return t}},v=function(){return 1e-6*(Math.random()-.5)},m=function(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i},b=s.prototype=a.prototype;b.copy=function(){var t,e,n=new a(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=c(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=c(e));return n},b.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return r(this.cover(e,n),e,n,t)},b.addAll=function(t){var e,n,i,o,s=t.length,a=new Array(s),c=new Array(s),u=1/0,l=1/0,p=-1/0,h=-1/0;for(n=0;n<s;++n)isNaN(i=+this._x.call(null,e=t[n]))||isNaN(o=+this._y.call(null,e))||(a[n]=i,c[n]=o,i<u&&(u=i),i>p&&(p=i),o<l&&(l=o),o>h&&(h=o));for(p<u&&(u=this._x0,p=this._x1),h<l&&(l=this._y0,h=this._y1),this.cover(u,l).cover(p,h),n=0;n<s;++n)r(this,a[n],c[n],t[n]);return this},b.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,o=(r=Math.floor(e))+1;else{if(!(n>t||t>i||r>e||e>o))return this;var s,a,c=i-n,u=this._root;switch(a=(e<(r+o)/2)<<1|t<(n+i)/2){case 0:do{s=new Array(4),s[a]=u,u=s}while(c*=2,i=n+c,o=r+c,t>i||e>o);break;case 1:do{s=new Array(4),s[a]=u,u=s}while(c*=2,n=i-c,o=r+c,n>t||e>o);break;case 2:do{s=new Array(4),s[a]=u,u=s}while(c*=2,i=n+c,r=o-c,t>i||r>e);break;case 3:do{s=new Array(4),s[a]=u,u=s}while(c*=2,n=i-c,r=o-c,n>t||r>e)}this._root&&this._root.length&&(this._root=u)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},b.data=function(){var t=[];return this.visit(function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)}),t},b.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},b.find=function(t,e,n){var r,i,o,s,a,c,u,l=this._x0,p=this._y0,h=this._x1,d=this._y1,f=[],y=this._root;for(y&&f.push(new m(y,l,p,h,d)),null==n?n=1/0:(l=t-n,p=e-n,h=t+n,d=e+n,n*=n);c=f.pop();)if(!(!(y=c.node)||(i=c.x0)>h||(o=c.y0)>d||(s=c.x1)<l||(a=c.y1)<p))if(y.length){var g=(i+s)/2,v=(o+a)/2;f.push(new m(y[3],g,v,s,a),new m(y[2],i,v,g,a),new m(y[1],g,o,s,v),new m(y[0],i,o,g,v)),(u=(e>=v)<<1|t>=g)&&(c=f[f.length-1],f[f.length-1]=f[f.length-1-u],f[f.length-1-u]=c)}else{var b=t-+this._x.call(null,y.data),_=e-+this._y.call(null,y.data),x=b*b+_*_;if(x<n){var w=Math.sqrt(n=x);l=t-w,p=e-w,h=t+w,d=e+w,r=y.data}}return r},b.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(s=+this._y.call(null,t)))return this;var e,n,r,i,o,s,a,c,u,l,p,h,d=this._root,f=this._x0,y=this._y0,g=this._x1,v=this._y1;if(!d)return this;if(d.length)for(;;){if((u=o>=(a=(f+g)/2))?f=a:g=a,(l=s>=(c=(y+v)/2))?y=c:v=c,e=d,!(d=d[p=l<<1|u]))return this;if(!d.length)break;(e[p+1&3]||e[p+2&3]||e[p+3&3])&&(n=e,h=p)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[p]=i:delete e[p],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[h]=d:this._root=d),this):(this._root=i,this)},b.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},b.root=function(){return this._root},b.size=function(){var t=0;return this.visit(function(e){if(!e.length)do{++t}while(e=e.next)}),t},b.visit=function(t){var e,n,r,i,o,s,a=[],c=this._root;for(c&&a.push(new m(c,this._x0,this._y0,this._x1,this._y1));e=a.pop();)if(!t(c=e.node,r=e.x0,i=e.y0,o=e.x1,s=e.y1)&&c.length){var u=(r+o)/2,l=(i+s)/2;(n=c[3])&&a.push(new m(n,u,l,o,s)),(n=c[2])&&a.push(new m(n,r,l,u,s)),(n=c[1])&&a.push(new m(n,u,i,o,l)),(n=c[0])&&a.push(new m(n,r,i,u,l))}return this},b.visitAfter=function(t){var e,n=[],r=[];for(this._root&&n.push(new m(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var i=e.node;if(i.length){var o,s=e.x0,a=e.y0,c=e.x1,u=e.y1,l=(s+c)/2,p=(a+u)/2;(o=i[0])&&n.push(new m(o,s,a,l,p)),(o=i[1])&&n.push(new m(o,l,a,c,p)),(o=i[2])&&n.push(new m(o,s,p,l,u)),(o=i[3])&&n.push(new m(o,l,p,c,u))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},b.x=function(t){return arguments.length?(this._x=t,this):this._x},b.y=function(t){return arguments.length?(this._y=t,this):this._y};var _=function(t){function e(){function t(t,e,n,r,i){var o=t.data,s=t.r,c=f+s;if(!o)return e>h+c||r<h-c||n>d+c||i<d-c;if(o.index>p.index){var u=h-o.x-o.vx,l=d-o.y-o.vy,g=u*u+l*l;g<c*c&&(0===u&&(u=v(),g+=u*u),0===l&&(l=v(),g+=l*l),g=(c-(g=Math.sqrt(g)))/g*a,p.vx+=(u*=g)*(c=(s*=s)/(y+s)),p.vy+=(l*=g)*c,o.vx-=u*(c=1-c),o.vy-=l*c)}}for(var e,r,p,h,d,f,y,g=i.length,m=0;m<c;++m)for(r=s(i,u,l).visitAfter(n),e=0;e<g;++e)p=i[e],f=o[p.index],y=f*f,h=p.x+p.vx,d=p.y+p.vy,r.visit(t)}function n(t){if(t.data)return t.r=o[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function r(){if(i){var e,n,r=i.length;for(o=new Array(r),e=0;e<r;++e)n=i[e],o[n.index]=+t(n,e,i)}}var i,o,a=1,c=1;return"function"!=typeof t&&(t=g(null==t?1:+t)),e.initialize=function(t){i=t,r()},e.iterations=function(t){return arguments.length?(c=+t,e):c},e.strength=function(t){return arguments.length?(a=+t,e):a},e.radius=function(n){return arguments.length?(t="function"==typeof n?n:g(+n),r(),e):t},e},x=n("X6cg"),w=function(t){function e(e){for(var n=0,r=t.length;n<y;++n)for(var i,a,c,l,p,h,d,f=0;f<r;++f)a=(i=t[f]).source,l=(c=i.target).x+c.vx-a.x-a.vx||v(),p=c.y+c.vy-a.y-a.vy||v(),l*=h=((h=Math.sqrt(l*l+p*p))-s[f])/h*e*o[f],p*=h,c.vx-=l*(d=u[f]),c.vy-=p*d,a.vx+=l*(d=1-d),a.vy+=p*d}function n(){if(a){var e,n,p=a.length,d=t.length,f=Object(x.a)(a,l);for(e=0,c=new Array(p);e<d;++e)(n=t[e]).index=e,"object"!=typeof n.source&&(n.source=h(f,n.source)),"object"!=typeof n.target&&(n.target=h(f,n.target)),c[n.source.index]=(c[n.source.index]||0)+1,c[n.target.index]=(c[n.target.index]||0)+1;for(e=0,u=new Array(d);e<d;++e)n=t[e],u[e]=c[n.source.index]/(c[n.source.index]+c[n.target.index]);o=new Array(d),r(),s=new Array(d),i()}}function r(){if(a)for(var e=0,n=t.length;e<n;++e)o[e]=+d(t[e],e,t)}function i(){if(a)for(var e=0,n=t.length;e<n;++e)s[e]=+f(t[e],e,t)}var o,s,a,c,u,l=p,d=function(t){return 1/Math.min(c[t.source.index],c[t.target.index])},f=g(30),y=1;return null==t&&(t=[]),e.initialize=function(t){a=t,n()},e.links=function(r){return arguments.length?(t=r,n(),e):t},e.id=function(t){return arguments.length?(l=t,e):l},e.iterations=function(t){return arguments.length?(y=+t,e):y},e.strength=function(t){return arguments.length?(d="function"==typeof t?t:g(+t),r(),e):d},e.distance=function(t){return arguments.length?(f="function"==typeof t?t:g(+t),i(),e):f},e},O=n("v2el"),S=n("JVwL"),C=10,E=Math.PI*(3-Math.sqrt(5)),T=function(t){function e(){n(),d.call("tick",o),s<a&&(h.stop(),d.call("end",o))}function n(){var e,n,r=t.length;for(s+=(u-s)*c,p.each(function(t){t(s)}),e=0;e<r;++e)null==(n=t[e]).fx?n.x+=n.vx*=l:(n.x=n.fx,n.vx=0),null==n.fy?n.y+=n.vy*=l:(n.y=n.fy,n.vy=0)}function r(){for(var e,n=0,r=t.length;n<r;++n){if(e=t[n],e.index=n,isNaN(e.x)||isNaN(e.y)){var i=C*Math.sqrt(n),o=n*E;e.x=i*Math.cos(o),e.y=i*Math.sin(o)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function i(e){return e.initialize&&e.initialize(t),e}var o,s=1,a=.001,c=1-Math.pow(a,1/300),u=0,l=.6,p=Object(x.a)(),h=Object(S.c)(e),d=Object(O.a)("tick","end");return null==t&&(t=[]),r(),o={tick:n,restart:function(){return h.restart(e),o},stop:function(){return h.stop(),o},nodes:function(e){return arguments.length?(t=e,r(),p.each(i),o):t},alpha:function(t){return arguments.length?(s=+t,o):s},alphaMin:function(t){return arguments.length?(a=+t,o):a},alphaDecay:function(t){return arguments.length?(c=+t,o):+c},alphaTarget:function(t){return arguments.length?(u=+t,o):u},velocityDecay:function(t){return arguments.length?(l=1-t,o):1-l},force:function(t,e){return arguments.length>1?(null==e?p.remove(t):p.set(t,i(e)),o):p.get(t)},find:function(e,n,r){var i,o,s,a,c,u=0,l=t.length;for(null==r?r=1/0:r*=r,u=0;u<l;++u)(s=(i=e-(a=t[u]).x)*i+(o=n-a.y)*o)<r&&(c=a,r=s);return c},on:function(t,e){return arguments.length>1?(d.on(t,e),o):d.on(t)}}},j=function(){function t(t){var e,c=i.length,u=s(i,d,f).visitAfter(n);for(a=t,e=0;e<c;++e)o=i[e],u.visit(r)}function e(){if(i){var t,e,n=i.length;for(c=new Array(n),t=0;t<n;++t)e=i[t],c[e.index]=+u(e,t,i)}}function n(t){var e,n,r,i,o,s=0,a=0;if(t.length){for(r=i=o=0;o<4;++o)(e=t[o])&&(n=Math.abs(e.value))&&(s+=e.value,a+=n,r+=n*e.x,i+=n*e.y);t.x=r/a,t.y=i/a}else{(e=t).x=e.data.x,e.y=e.data.y;do{s+=c[e.data.index]}while(e=e.next)}t.value=s}function r(t,e,n,r){if(!t.value)return!0;var i=t.x-o.x,s=t.y-o.y,u=r-e,d=i*i+s*s;if(u*u/h<d)return d<p&&(0===i&&(i=v(),d+=i*i),0===s&&(s=v(),d+=s*s),d<l&&(d=Math.sqrt(l*d)),o.vx+=i*t.value*a/d,o.vy+=s*t.value*a/d),!0;if(!(t.length||d>=p)){(t.data!==o||t.next)&&(0===i&&(i=v(),d+=i*i),0===s&&(s=v(),d+=s*s),d<l&&(d=Math.sqrt(l*d)));do{t.data!==o&&(u=c[t.data.index]*a/d,o.vx+=i*u,o.vy+=s*u)}while(t=t.next)}}var i,o,a,c,u=g(-30),l=1,p=1/0,h=.81;return t.initialize=function(t){i=t,e()},t.strength=function(n){return arguments.length?(u="function"==typeof n?n:g(+n),e(),t):u},t.distanceMin=function(e){return arguments.length?(l=e*e,t):Math.sqrt(l)},t.distanceMax=function(e){return arguments.length?(p=e*e,t):Math.sqrt(p)},t.theta=function(e){return arguments.length?(h=e*e,t):Math.sqrt(h)},t},P=function(t,e,n){function r(t){for(var r=0,i=o.length;r<i;++r){var c=o[r],u=c.x-e||1e-6,l=c.y-n||1e-6,p=Math.sqrt(u*u+l*l),h=(a[r]-p)*s[r]*t/p;c.vx+=u*h,c.vy+=l*h}}function i(){if(o){var e,n=o.length;for(s=new Array(n),a=new Array(n),e=0;e<n;++e)a[e]=+t(o[e],e,o),s[e]=isNaN(a[e])?0:+c(o[e],e,o)}}var o,s,a,c=g(.1);return"function"!=typeof t&&(t=g(+t)),null==e&&(e=0),null==n&&(n=0),r.initialize=function(t){o=t,i()},r.strength=function(t){return arguments.length?(c="function"==typeof t?t:g(+t),i(),r):c},r.radius=function(e){return arguments.length?(t="function"==typeof e?e:g(+e),i(),r):t},r.x=function(t){return arguments.length?(e=+t,r):e},r.y=function(t){return arguments.length?(n=+t,r):n},r},A=function(t){function e(t){for(var e,n=0,s=r.length;n<s;++n)(e=r[n]).vx+=(o[n]-e.x)*i[n]*t}function n(){if(r){var e,n=r.length;for(i=new Array(n),o=new Array(n),e=0;e<n;++e)i[e]=isNaN(o[e]=+t(r[e],e,r))?0:+s(r[e],e,r)}}var r,i,o,s=g(.1);return"function"!=typeof t&&(t=g(null==t?0:+t)),e.initialize=function(t){r=t,n()},e.strength=function(t){return arguments.length?(s="function"==typeof t?t:g(+t),n(),e):s},e.x=function(r){return arguments.length?(t="function"==typeof r?r:g(+r),n(),e):t},e},I=function(t){function e(t){for(var e,n=0,s=r.length;n<s;++n)(e=r[n]).vy+=(o[n]-e.y)*i[n]*t}function n(){if(r){var e,n=r.length;for(i=new Array(n),o=new Array(n),e=0;e<n;++e)i[e]=isNaN(o[e]=+t(r[e],e,r))?0:+s(r[e],e,r)}}var r,i,o,s=g(.1);return"function"!=typeof t&&(t=g(null==t?0:+t)),e.initialize=function(t){r=t,n()},e.strength=function(t){return arguments.length?(s="function"==typeof t?t:g(+t),n(),e):s},e.y=function(r){return arguments.length?(t="function"==typeof r?r:g(+r),n(),e):t},e};n.d(e,"forceCenter",function(){return y}),n.d(e,"forceCollide",function(){return _}),n.d(e,"forceLink",function(){return w}),n.d(e,"forceManyBody",function(){return j}),n.d(e,"forceRadial",function(){return P}),n.d(e,"forceSimulation",function(){return T}),n.d(e,"forceX",function(){return A}),n.d(e,"forceY",function(){return I})},"9FjR":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+");e.pairwise=function(){return function(t){return t.lift(new o)}};var o=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(e){t.call(this,e),this.hasPrev=!1}return r(e,t),e.prototype._next=function(t){this.hasPrev?this.destination.next([this.prev,t]):this.hasPrev=!0,this.prev=t},e}(i.Subscriber)},"9iV4":function(t,e,n){"use strict";function r(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function i(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function o(t){return"undefined"!=typeof Blob&&t instanceof Blob}function s(t){return"undefined"!=typeof FormData&&t instanceof FormData}function a(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}function c(t,e){return void 0===e&&(e=[]),e?e.reduceRight(function(t,e){return new A(t,e)},t):t}function u(){return"object"==typeof window?window:{}}n.d(e,"a",function(){return P}),n.d(e,"c",function(){return _}),n.d(e,"b",function(){return Y}),n.d(e,"d",function(){return w});var l=n("LMZF"),p=n("GZB0"),h=n("eL9U"),d=n("6S6c"),f=n("dmC+"),y=n("6Xbx"),g=n("Un6q"),v=n("AP4T"),m=function(){return function(){}}(),b=function(){return function(){}}(),_=function(){function t(t){var e=this;this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){e.headers=new Map,t.split("\n").forEach(function(t){var n=t.indexOf(":");if(n>0){var r=t.slice(0,n),i=r.toLowerCase(),o=t.slice(n+1).trim();e.maybeSetNormalizedName(r,i),e.headers.has(i)?e.headers.get(i).push(o):e.headers.set(i,[o])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(i,r),e.maybeSetNormalizedName(n,i))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,n),this.headers.set(e,r);break;case"d":var i=t.value;if(i){var o=this.headers.get(e);if(!o)return;0===(o=o.filter(function(t){return-1===i.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),x=function(){function t(){}return t.prototype.encodeKey=function(t){return r(t)},t.prototype.encodeValue=function(t){return r(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}(),w=function(){function t(t){void 0===t&&(t={});var e=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new x,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){var n=new Map;t.length>0&&t.split("&").forEach(function(t){var r=t.indexOf("="),i=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],o=i[0],s=i[1],a=n.get(o)||[];a.push(s),n.set(o,a)});return n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(n){var r=t.fromObject[n];e.map.set(n,Array.isArray(r)?r:[r])})):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],i=r.indexOf(e.value);-1!==i&&r.splice(i,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=null)},t}(),O=function(){function t(t,e,n,r){this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();var i;if(function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new _),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{var s=e.indexOf("?"),a=-1===s?"?":s<e.length-1?"&":"";this.urlWithParams=e+a+o}}else this.params=new w,this.urlWithParams=e}return t.prototype.serializeBody=function(){return null===this.body?null:i(this.body)||o(this.body)||s(this.body)||"string"==typeof this.body?this.body:this.body instanceof w?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()},t.prototype.detectContentTypeHeader=function(){return null===this.body?null:s(this.body)?null:o(this.body)?this.body.type||null:i(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof w?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null},t.prototype.clone=function(e){void 0===e&&(e={});var n=e.method||this.method,r=e.url||this.url,i=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,s=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,a=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,c=e.headers||this.headers,u=e.params||this.params;return void 0!==e.setHeaders&&(c=Object.keys(e.setHeaders).reduce(function(t,n){return t.set(n,e.setHeaders[n])},c)),e.setParams&&(u=Object.keys(e.setParams).reduce(function(t,n){return t.set(n,e.setParams[n])},u)),new t(n,r,o,{params:u,headers:c,reportProgress:a,responseType:i,withCredentials:s})},t}(),S={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};S[S.Sent]="Sent",S[S.UploadProgress]="UploadProgress",S[S.ResponseHeader]="ResponseHeader",S[S.DownloadProgress]="DownloadProgress",S[S.Response]="Response",S[S.User]="User";var C=function(){return function(t,e,n){void 0===e&&(e=200),void 0===n&&(n="OK"),this.headers=t.headers||new _,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}(),E=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=S.ResponseHeader,n}return Object(y.b)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(C),T=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=S.Response,n.body=void 0!==e.body?e.body:null,n}return Object(y.b)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(C),j=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.status>=200&&n.status<300?n.message="Http failure during parsing for "+(e.url||"(unknown url)"):n.message="Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return Object(y.b)(e,t),e}(C),P=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r=this;void 0===n&&(n={});var i;if(t instanceof O)i=t;else{var o=void 0;o=n.headers instanceof _?n.headers:new _(n.headers);var s=void 0;n.params&&(s=n.params instanceof w?n.params:new w({fromObject:n.params})),i=new O(t,e,void 0!==n.body?n.body:null,{headers:o,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var a=h.a.call(Object(p.a)(i),function(t){return r.handler.handle(t)});if(t instanceof O||"events"===n.observe)return a;var c=d.a.call(a,function(t){return t instanceof T});switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return f.a.call(c,function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body});case"blob":return f.a.call(c,function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body});case"text":return f.a.call(c,function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body});case"json":default:return f.a.call(c,function(t){return t.body})}case"response":return c;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new w).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,a(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,a(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,a(n,e))},t.decorators=[{type:l.Injectable}],t.ctorParameters=function(){return[{type:m}]},t}(),A=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),I=new l.InjectionToken("HTTP_INTERCEPTORS"),k=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t.decorators=[{type:l.Injectable}],t.ctorParameters=function(){return[]},t}(),R=0,M=function(){return function(){}}(),D=function(){function t(t,e){this.callbackMap=t,this.document=e}return t.prototype.nextCallback=function(){return"ng_jsonp_callback_"+R++},t.prototype.handle=function(t){var e=this;if("JSONP"!==t.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==t.responseType)throw new Error("JSONP requests must use Json response type.");return new v.Observable(function(n){var r=e.nextCallback(),i=t.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,"="+r+"$1"),o=e.document.createElement("script");o.src=i;var s=null,a=!1,c=!1;e.callbackMap[r]=function(t){delete e.callbackMap[r],c||(s=t,a=!0)};var u=function(){o.parentNode&&o.parentNode.removeChild(o),delete e.callbackMap[r]},l=function(t){c||(u(),a?(n.next(new T({body:s,status:200,statusText:"OK",url:i})),n.complete()):n.error(new j({url:i,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")})))},p=function(t){c||(u(),n.error(new j({error:t,status:0,statusText:"JSONP Error",url:i})))};return o.addEventListener("load",l),o.addEventListener("error",p),e.document.body.appendChild(o),n.next({type:S.Sent}),function(){c=!0,o.removeEventListener("load",l),o.removeEventListener("error",p),u()}})},t.decorators=[{type:l.Injectable}],t.ctorParameters=function(){return[{type:M},{type:void 0,decorators:[{type:l.Inject,args:[g.DOCUMENT]}]}]},t}(),N=function(){function t(t){this.jsonp=t}return t.prototype.intercept=function(t,e){return"JSONP"===t.method?this.jsonp.handle(t):e.handle(t)},t.decorators=[{type:l.Injectable}],t.ctorParameters=function(){return[{type:D}]},t}(),L=/^\)\]\}',?\n/,F=function(){return function(){}}(),V=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t.decorators=[{type:l.Injectable}],t.ctorParameters=function(){return[]},t}(),B=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new v.Observable(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var i=t.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(t.responseType){var o=t.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var s=t.serializeBody(),a=null,c=function(){if(null!==a)return a;var e=1223===r.status?204:r.status,n=r.statusText||"OK",i=new _(r.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return a=new E({headers:i,status:e,statusText:n,url:o})},u=function(){var e=c(),i=e.headers,o=e.status,s=e.statusText,a=e.url,u=null;204!==o&&(u="undefined"==typeof r.response?r.responseText:r.response),0===o&&(o=u?200:0);var l=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof u){var p=u;u=u.replace(L,"");try{u=""!==u?JSON.parse(u):null}catch(t){u=p,l&&(l=!1,u={error:t,text:u})}}l?(n.next(new T({body:u,headers:i,status:o,statusText:s,url:a||void 0})),n.complete()):n.error(new j({error:u,headers:i,status:o,statusText:s,url:a||void 0}))},l=function(t){var e=new j({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(e)},p=!1,h=function(e){p||(n.next(c()),p=!0);var i={type:S.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(i.total=e.total),"text"===t.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},d=function(t){var e={type:S.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",u),r.addEventListener("error",l),t.reportProgress&&(r.addEventListener("progress",h),null!==s&&r.upload&&r.upload.addEventListener("progress",d)),r.send(s),n.next({type:S.Sent}),function(){r.removeEventListener("error",l),r.removeEventListener("load",u),t.reportProgress&&(r.removeEventListener("progress",h),null!==s&&r.upload&&r.upload.removeEventListener("progress",d)),r.abort()}})},t.decorators=[{type:l.Injectable}],t.ctorParameters=function(){return[{type:F}]},t}(),H=new l.InjectionToken("XSRF_COOKIE_NAME"),z=new l.InjectionToken("XSRF_HEADER_NAME"),U=function(){return function(){}}(),W=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(g["\u0275parseCookieValue"])(t,this.cookieName),this.lastCookieString=t),this.lastToken},t.decorators=[{type:l.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:l.Inject,args:[g.DOCUMENT]}]},{type:void 0,decorators:[{type:l.Inject,args:[l.PLATFORM_ID]}]},{type:void 0,decorators:[{type:l.Inject,args:[H]}]}]},t}(),G=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},t.decorators=[{type:l.Injectable}],t.ctorParameters=function(){return[{type:U},{type:void 0,decorators:[{type:l.Inject,args:[z]}]}]},t}(),q=function(){function t(){}return t.disable=function(){return{ngModule:t,providers:[{provide:G,useClass:k}]}},t.withOptions=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[e.cookieName?{provide:H,useValue:e.cookieName}:[],e.headerName?{provide:z,useValue:e.headerName}:[]]}},t.decorators=[{type:l.NgModule,args:[{providers:[G,{provide:I,useExisting:G,multi:!0},{provide:U,useClass:W},{provide:H,useValue:"XSRF-TOKEN"},{provide:z,useValue:"X-XSRF-TOKEN"}]}]}],t.ctorParameters=function(){return[]},t}(),Y=function(){function t(){}return t.decorators=[{type:l.NgModule,args:[{imports:[q.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})],providers:[P,{provide:m,useFactory:c,deps:[b,[new l.Optional,new l.Inject(I)]]},B,{provide:b,useExisting:B},V,{provide:F,useExisting:V}]}]}],t.ctorParameters=function(){return[]},t}();!function(){function t(){}t.decorators=[{type:l.NgModule,args:[{providers:[D,{provide:M,useFactory:u},{provide:I,useClass:N,multi:!0}]}]}],t.ctorParameters=function(){return[]}}()},"9jMf":function(t,e,n){"use strict";var r=n("bKpL"),i=n("Ohh6");r.Observable.prototype.startWith=i.startWith},"9lCb":function(t,e,n){"use strict";var r=n("bKpL"),i=n("GB+a");r.Observable.prototype.sequenceEqual=i.sequenceEqual},"9mSN":function(t,e,n){"use strict";var r=n("bKpL"),i=n("WAO4");r.Observable.prototype.timeoutWith=i.timeoutWith},"9mYp":function(t,e,n){"use strict";var r=n("r6G9");e.onErrorResumeNext=r.onErrorResumeNextStatic},"9tb5":function(t,e,n){"use strict";var r=n("NzSV");e.exhaustMap=function(t,e){return r.exhaustMap(t,e)(this)}},"9wNb":function(t,e,n){"use strict";var r=n("bKpL"),i=n("8efI");r.Observable.prototype.distinct=i.distinct},A1r7:function(t,e,n){"use strict";var r=n("bKpL"),i=n("buGu");r.Observable.prototype.defaultIfEmpty=i.defaultIfEmpty},ACG2:function(t,e,n){"use strict";var r=n("bKpL"),i=n("6nek");r.Observable.interval=i.interval},AHF9:function(t,e,n){"use strict";var r=n("GDiU");e.observeOn=function(t,e){return void 0===e&&(e=0),r.observeOn(t,e)(this)}},AP4T:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("xIGM"),i=n("E9/g"),o=n("V7AE"),s=n("grVA"),a=n("mz3w"),c=n("ExCY");n.d(e,"Observable",function(){return u});var u=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,a=function(t,e,n){if(t){if(t instanceof i.a)return t;if(t[o.a])return t[o.a]()}return t||e||n?new i.a(t,e,n):new i.a(s.a)}(t,e,n);if(r?r.call(a,this.source):a.add(this.source?this._subscribe(a):this._trySubscribe(a)),a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var n=this;if(e||(r.a.Rx&&r.a.Rx.config&&r.a.Rx.config.Promise?e=r.a.Rx.config.Promise:r.a.Promise&&(e=r.a.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var i;i=n.subscribe(function(e){if(i)try{t(e)}catch(t){r(t),i.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[a.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 0===t.length?this:Object(c.b)(t)(this)},t.prototype.toPromise=function(t){var e=this;if(t||(r.a.Rx&&r.a.Rx.config&&r.a.Rx.config.Promise?t=r.a.Rx.config.Promise:r.a.Promise&&(t=r.a.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}()},ASfG:function(t,e,n){"use strict";var r=n("gvep"),i=n("P02W");e.publishBehavior=function(t){return function(e){return i.multicast(new r.BehaviorSubject(t))(e)}}},Af4u:function(t,e,n){"use strict";var r=n("bKpL"),i=n("YofN");r.Observable.race=i.race},AzAY:function(t,e,n){"use strict";var r=n("z8/z");e.publishReplay=function(t,e,n,i){return r.publishReplay(t,e,n,i)(this)}},"B/As":function(t,e,n){"use strict";var r=n("bKpL"),i=n("ltng");r.Observable.range=i.range},B1iP:function(t,e,n){"use strict";e.a=function(t){return"function"==typeof t}},BBvl:function(t,e,n){"use strict";var r=n("bKpL"),i=n("/9bB");r.Observable.prototype.materialize=i.materialize},BJqU:function(t,e,n){"use strict";var r=n("IhB/"),i=n("DrEP"),o=n("Rol4");e.throttleTime=function(t,e,n){return void 0===e&&(e=r.async),void 0===n&&(n=i.defaultThrottleConfig),o.throttleTime(t,e,n)(this)}},BbOI:function(t,e,n){"use strict";var r=n("f7+7");e.bindNodeCallback=r.BoundNodeCallbackObservable.create},BdLl:function(t,e,n){"use strict";var r=n("bKpL"),i=n("vioa");r.Observable.timer=i.timer},C4ew:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+");e.isEmpty=function(){return function(t){return t.lift(new o)}};var o=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(e){t.call(this,e)}return r(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(i.Subscriber)},CASk:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=n("KRwF").a.create},CE6k:function(t,e,n){"use strict";var r=n("HwxE");e.share=function(){return r.share()(this)}},"CH/r":function(t,e,n){"use strict";var r=n("IhB/"),i=n("Hr+Y");e.debounceTime=function(t,e){return void 0===e&&(e=r.async),i.debounceTime(t,e)(this)}},CQyF:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e,n){t.call(this),this.error=e,this.scheduler=n}return r(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.error;t.subscriber.error(e)},e.prototype._subscribe=function(t){var n=this.error,r=this.scheduler;if(t.syncErrorThrowable=!0,r)return r.schedule(e.dispatch,0,{error:n,subscriber:t});t.error(n)},e}(n("bKpL").Observable);e.ErrorObservable=i},CXR1:function(t,e,n){"use strict";var r=n("bKpL"),i=n("tpuU");r.Observable.prototype.zipAll=i.zipAll},Cipy:function(t,e,n){"use strict";var r=n("Wxra");e.shareReplay=function(t,e,n){return r.shareReplay(t,e,n)(this)}},D62v:function(t,e,n){"use strict";var r=n("lI6h"),i=n("qgI0"),o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.selector,this.caught))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.selector=n,this.caught=r}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(Object(i.a)(this,n))}},e}(r.a);e.a=function(t){return function(t){return function(e){var n=new s(t),r=e.lift(n);return n.caught=r}}(t)(this)}},D84Q:function(t,e,n){"use strict";var r=n("bKpL"),i=n("NUku");r.Observable.prototype.buffer=i.buffer},DP67:function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}var i=n("zijX");e.getSymbolObservable=r,e.observable=r(i.root),e.$$observable=e.observable},De29:function(t,e,n){"use strict";var r=n("bKpL"),i=n("NgMz");r.Observable.prototype.findIndex=i.findIndex},Dqrr:function(t,e,n){"use strict";var r=n("rlar");e.Subject=r.Subject,e.AnonymousSubject=r.AnonymousSubject;var i=n("bKpL");e.Observable=i.Observable,n("amjc"),n("p3u8"),n("vJ3t"),n("JSgX"),n("VsKd"),n("hbO+"),n("GPwi"),n("XL2q"),n("Xtvq"),n("ZXBV"),n("7u+W"),n("d3kC"),n("okgN"),n("ACG2"),n("JNTq"),n("Af4u"),n("dyFf"),n("/zHi"),n("bprQ"),n("mjW1"),n("B/As"),n("W5L8"),n("S7im"),n("BdLl"),n("tcot"),n("o/OZ"),n("4JlW"),n("D84Q"),n("i4mq"),n("t8nJ"),n("LTTx"),n("UVHa"),n("xpf9"),n("rp90"),n("6DBm"),n("R0J0"),n("+Ve+"),n("7rqg"),n("oOL0"),n("vKg+"),n("E2ib"),n("p3bn"),n("azLz"),n("A1r7"),n("l3Q+"),n("TnjP"),n("9wNb"),n("MBEm"),n("mDYJ"),n("eqpX"),n("ptvE"),n("h+is"),n("89am"),n("afTc"),n("gbhw"),n("zc4d"),n("MaQZ"),n("De29"),n("ZQKz"),n("zZnE"),n("IpZT"),n("StS+"),n("pkLr"),n("qNQE"),n("dy5W"),n("ykQW"),n("r+/7"),n("5v8a"),n("iwys"),n("BBvl"),n("ScG9"),n("ub06"),n("5p6H"),n("RpuY"),n("srZQ"),n("SKRq"),n("pHO4"),n("PatI"),n("XR71"),n("NOvV"),n("Uvlg"),n("Lssd"),n("Ozq5"),n("VML3"),n("LClL"),n("HUu4"),n("vtHn"),n("dgXD"),n("Plqt"),n("UD+B"),n("/amm"),n("v6xs"),n("svCP"),n("+0Ji"),n("VXtB"),n("6NKQ"),n("9lCb"),n("qm+V"),n("g3vg"),n("z69B"),n("vfw3"),n("zdWg"),n("j8RC"),n("67Ck"),n("9jMf"),n("kIyd"),n("mvrJ"),n("Pic8"),n("1pbG"),n("5uCp"),n("bN7U"),n("q07K"),n("86mp"),n("OGSH"),n("YFUQ"),n("UbPm"),n("uGEk"),n("9mSN"),n("vNV3"),n("IUpl"),n("82j9"),n("Z2Sm"),n("eumZ"),n("RNRn"),n("sSYo"),n("kAWK"),n("asHm"),n("ItUe"),n("CXR1");var o=n("xFbG");e.Subscription=o.Subscription;var s=n("T14+");e.Subscriber=s.Subscriber;var a=n("l6Wf");e.AsyncSubject=a.AsyncSubject;var c=n("0imh");e.ReplaySubject=c.ReplaySubject;var u=n("gvep");e.BehaviorSubject=u.BehaviorSubject;var l=n("xKl2");e.ConnectableObservable=l.ConnectableObservable;var p=n("3lsR");e.Notification=p.Notification;var h=n("TpsG");e.EmptyError=h.EmptyError;var d=n("uT+d");e.ArgumentOutOfRangeError=d.ArgumentOutOfRangeError;var f=n("Lhvy");e.ObjectUnsubscribedError=f.ObjectUnsubscribedError;var y=n("0L2s");e.TimeoutError=y.TimeoutError;var g=n("Emqh");e.UnsubscriptionError=g.UnsubscriptionError;var v=n("H9QY");e.TimeInterval=v.TimeInterval;var m=n("xK8X");e.Timestamp=m.Timestamp;var b=n("MIR9");e.TestScheduler=b.TestScheduler;var _=n("I64N");e.VirtualTimeScheduler=_.VirtualTimeScheduler;var x=n("HPkd");e.AjaxResponse=x.AjaxResponse,e.AjaxError=x.AjaxError,e.AjaxTimeoutError=x.AjaxTimeoutError;var w=n("vxPf");e.pipe=w.pipe;var O=n("wEhC"),S=n("IhB/"),C=n("yR50"),E=n("ruZE"),T=n("dkwD"),j=n("2B7B"),P=n("DP67"),A=n("cAzY");e.operators=A;var I={asap:O.asap,queue:C.queue,animationFrame:E.animationFrame,async:S.async};e.Scheduler=I;var k={rxSubscriber:T.rxSubscriber,observable:P.observable,iterator:j.iterator};e.Symbol=k},DrEP:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("yW9Z"),o=n("ktfo");e.defaultThrottleConfig={leading:!0,trailing:!1},e.throttle=function(t,n){return void 0===n&&(n=e.defaultThrottleConfig),function(e){return e.lift(new s(t,n.leading,n.trailing))}};var s=function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.durationSelector,this.leading,this.trailing))},t}(),a=function(t){function e(e,n,r,i){t.call(this,e),this.destination=e,this.durationSelector=n,this._leading=r,this._trailing=i,this._hasTrailingValue=!1}return r(e,t),e.prototype._next=function(t){if(this.throttled)this._trailing&&(this._hasTrailingValue=!0,this._trailingValue=t);else{var e=this.tryDurationSelector(t);e&&this.add(this.throttled=o.subscribeToResult(this,e)),this._leading&&(this.destination.next(t),this._trailing&&(this._hasTrailingValue=!0,this._trailingValue=t))}},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype._unsubscribe=function(){var t=this.throttled;this._trailingValue,this._hasTrailingValue,this._trailing;this._trailingValue=null,this._hasTrailingValue=!1,t&&(this.remove(t),this.throttled=null,t.unsubscribe())},e.prototype._sendTrailing=function(){var t=this.destination,e=this.throttled,n=this._trailing,r=this._trailingValue,i=this._hasTrailingValue;e&&n&&i&&(t.next(r),this._trailingValue=null,this._hasTrailingValue=!1)},e.prototype.notifyNext=function(t,e,n,r,i){this._sendTrailing(),this._unsubscribe()},e.prototype.notifyComplete=function(){this._sendTrailing(),this._unsubscribe()},e}(i.OuterSubscriber)},E2ib:function(t,e,n){"use strict";var r=n("bKpL"),i=n("SJ56");r.Observable.prototype.dematerialize=i.dematerialize},"E9/g":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("B1iP"),i=n("qLnt"),o=n("grVA"),s=n("V7AE"),a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},c=function(t){function e(n,r,i){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=o.a;break;case 1:if(!n){this.destination=o.a;break}if("object"==typeof n){n instanceof e?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,n,r,i)}}return a(e,t),e.prototype[s.a]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(i.a),u=function(t){function e(e,n,i,s){t.call(this),this._parentSubscriber=e;var a,c=this;Object(r.a)(n)?a=n:n&&(a=n.next,i=n.error,s=n.complete,n!==o.a&&(c=Object.create(n),Object(r.a)(c.unsubscribe)&&this.add(c.unsubscribe.bind(c)),c.unsubscribe=this.unsubscribe.bind(this))),this._context=c,this._next=a,this._error=i,this._complete=s}return a(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(c)},EOAD:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+"),o=n("IhB/");e.timeInterval=function(t){return void 0===t&&(t=o.async),function(e){return e.lift(new a(t))}};var s=function(){return function(t,e){this.value=t,this.interval=e}}();e.TimeInterval=s;var a=function(){function t(t){this.scheduler=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.scheduler))},t}(),c=function(t){function e(e,n){t.call(this,e),this.scheduler=n,this.lastTime=0,this.lastTime=n.now()}return r(e,t),e.prototype._next=function(t){var e=this.scheduler.now(),n=e-this.lastTime;this.lastTime=e,this.destination.next(new s(t,n))},e}(i.Subscriber)},EUVd:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("IhB/"),o=n("6jp4"),s=n("T14+"),a=n("3lsR");e.delay=function(t,e){void 0===e&&(e=i.async);var n=o.isDate(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new c(n,e))}};var c=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.delay,this.scheduler))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.delay=n,this.scheduler=r,this.queue=[],this.active=!1,this.errored=!1}return r(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new l(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(a.Notification.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t)},e.prototype._complete=function(){this.scheduleNotification(a.Notification.createComplete())},e}(s.Subscriber),l=function(){return function(t,e){this.time=t,this.notification=e}}()},"Ecq+":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("AP4T"),i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e){t.call(this),this.scheduler=e}return i(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(r.Observable)},EmkH:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+"),o=n("uT+d");e.skipLast=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new o.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new i.Subscriber(t)):e.subscribe(new a(t,this._skipCount))},t}(),a=function(t){function e(e,n){t.call(this,e),this._skipCount=n,this._count=0,this._ring=new Array(n)}return r(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n<e)this._ring[n]=t;else{var r=n%e,i=this._ring,o=i[r];i[r]=t,this.destination.next(o)}},e}(i.Subscriber)},Emqh:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e){t.call(this),this.errors=e;var n=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return r(e,t),e}(Error);e.UnsubscriptionError=i},EsGe:function(t,e,n){"use strict";var r=n("NSJx");e.isNumeric=function(t){return!r.isArray(t)&&t-parseFloat(t)+1>=0}},ExCY:function(t,e,n){"use strict";function r(){}function i(t){return t?1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}:r}e.a=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return i(t)},e.b=i},"F/7+":function(t,e,n){"use strict";var r=n("SBOU");e.zip=r.zipStatic},F9px:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+");e.refCount=function(){return function(t){return t.lift(new o(t))}};var o=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new s(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),s=function(t){function e(e,n){t.call(this,e),this.connectable=n}return r(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(i.Subscriber)},FTnw:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+"),o=n("xFbG");e.finalize=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.callback))},t}(),a=function(t){function e(e,n){t.call(this,e),this.add(new o.Subscription(n))}return r(e,t),e}(i.Subscriber)},Fhmd:function(t,e,n){"use strict";var r=n("jUlM");e.forkJoin=r.ForkJoinObservable.create},Fi2k:function(t,e,n){"use strict";var r=n("bLt9");e.windowToggle=function(t,e){return r.windowToggle(t,e)(this)}},Fpv1:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n}return r(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(n("Io40").AsyncAction);e.QueueAction=i},Fq81:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("fclq"),o=n("bKpL"),s=n("xFbG"),a=function(t){function e(e,n,r){t.call(this),this.addHandler=e,this.removeHandler=n,this.selector=r}return r(e,t),e.create=function(t,n,r){return new e(t,n,r)},e.prototype._subscribe=function(t){var e=this,n=this.removeHandler,r=this.selector?function(){for(var n=[],r=0;r<arguments.length;r++)n[r-0]=arguments[r];e._callSelector(t,n)}:function(e){t.next(e)},o=this._callAddHandler(r,t);i.isFunction(n)&&t.add(new s.Subscription(function(){n(r,o)}))},e.prototype._callSelector=function(t,e){try{var n=this.selector.apply(this,e);t.next(n)}catch(e){t.error(e)}},e.prototype._callAddHandler=function(t,e){try{return this.addHandler(t)||null}catch(t){e.error(t)}},e}(o.Observable);e.FromEventPatternObservable=a},"GB+a":function(t,e,n){"use strict";var r=n("xJeO");e.sequenceEqual=function(t,e){return r.sequenceEqual(t,e)(this)}},GDiU:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+"),o=n("3lsR");e.observeOn=function(t,e){return void 0===e&&(e=0),function(n){return n.lift(new s(t,e))}};var s=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.scheduler,this.delay))},t}();e.ObserveOnOperator=s;var a=function(t){function e(e,n,r){void 0===r&&(r=0),t.call(this,e),this.scheduler=n,this.delay=r}return r(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new c(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(o.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(o.Notification.createError(t))},e.prototype._complete=function(){this.scheduleMessage(o.Notification.createComplete())},e}(i.Subscriber);e.ObserveOnSubscriber=a;var c=function(){return function(t,e){this.notification=t,this.destination=e}}();e.ObserveOnMessage=c},GPwi:function(t,e,n){"use strict";var r=n("bKpL"),i=n("Fhmd");r.Observable.forkJoin=i.forkJoin},GQSG:function(t,e,n){"use strict";var r=n("AP4T"),i=n("dmC+");r.Observable.prototype.map=i.a},GTdq:function(t,e,n){"use strict";var r=n("IhB/"),i=n("tAjV"),o=n("vioa");e.auditTime=function(t,e){return void 0===e&&(e=r.async),i.audit(function(){return o.timer(t,e)})}},GZB0:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=n("Oryw").a.of},GeBq:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+"),o=n("rlar");e.windowCount=function(t,e){return void 0===e&&(e=0),function(n){return n.lift(new s(t,e))}};var s=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.windowSize,this.startWindowEvery))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.destination=e,this.windowSize=n,this.startWindowEvery=r,this.windows=[new o.Subject],this.count=0,e.next(this.windows[0])}return r(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,s=i.length,a=0;a<s&&!this.closed;a++)i[a].next(t);var c=this.count-r+1;if(c>=0&&c%e==0&&!this.closed&&i.shift().complete(),++this.count%e==0&&!this.closed){var u=new o.Subject;i.push(u),n.next(u)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(i.Subscriber)},GiTH:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+");e.every=function(t,e){return function(n){return n.lift(new o(t,e,n))}};var o=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg,this.source))},t}(),s=function(t){function e(e,n,r,i){t.call(this,e),this.predicate=n,this.thisArg=r,this.source=i,this.index=0,this.thisArg=r||this}return r(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(i.Subscriber)},GoZW:function(t,e,n){"use strict";var r=n("wcuQ");e.pluck=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r.pluck.apply(void 0,t)(this)}},H1KZ:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+");e.scan=function(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new o(t,e,n))}};var o=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))},t}(),s=function(t){function e(e,n,r,i){t.call(this,e),this.accumulator=n,this._seed=r,this.hasSeed=i,this.index=0}return r(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(i.Subscriber)},H4tt:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("wZOE"),o=n("NSJx"),s=n("yW9Z"),a=n("ktfo"),c={};e.combineLatest=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=null;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&o.isArray(t[0])&&(t=t[0].slice()),function(e){return e.lift.call(new i.ArrayObservable([e].concat(t)),new u(n))}};var u=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project))},t}();e.CombineLatestOperator=u;var l=function(t){function e(e,n){t.call(this,e),this.project=n,this.active=0,this.values=[],this.observables=[]}return r(e,t),e.prototype._next=function(t){this.values.push(c),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(a.subscribeToResult(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.values,s=o[n],a=this.toRespond?s===c?--this.toRespond:this.toRespond:0;o[n]=e,0===a&&(this.project?this._tryProject(o):this.destination.next(o.slice()))},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(s.OuterSubscriber);e.CombineLatestSubscriber=l},H6Sg:function(t,e,n){"use strict";e.isObject=function(t){return null!=t&&"object"==typeof t}},H9QY:function(t,e,n){"use strict";var r=n("IhB/"),i=n("EOAD");e.TimeInterval=i.TimeInterval,e.timeInterval=function(t){return void 0===t&&(t=r.async),i.timeInterval(t)(this)}},HBVP:function(t,e,n){"use strict";var r=n("2Sjb");e.distinctUntilKeyChanged=function(t,e){return r.distinctUntilChanged(function(n,r){return e?e(n[t],r[t]):n[t]===r[t]})}},HHMl:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){t.apply(this,arguments)}return r(e,t),e}(n("I2Y9").AsyncScheduler);e.QueueScheduler=i},HPkd:function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=null),new m({method:"GET",url:t,headers:e})}function i(t,e,n){return new m({method:"POST",url:t,body:e,headers:n})}function o(t,e){return new m({method:"DELETE",url:t,headers:e})}function s(t,e,n){return new m({method:"PUT",url:t,body:e,headers:n})}function a(t,e,n){return new m({method:"PATCH",url:t,body:e,headers:n})}function c(t,e){return v(new m({method:"GET",url:t,responseType:"json",headers:e}))}function u(t,e){switch(t){case"json":return"response"in e?e.responseType?e.response:JSON.parse(e.response||e.responseText||"null"):JSON.parse(e.responseText||"null");case"xml":return e.responseXML;case"text":default:return"response"in e?e.response:e.responseText}}var l=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},p=n("zijX"),h=n("RdI5"),d=n("XRvs"),f=n("bKpL"),y=n("T14+"),g=n("L8VJ");e.ajaxGet=r,e.ajaxPost=i,e.ajaxDelete=o,e.ajaxPut=s,e.ajaxPatch=a;var v=g.map(function(t,e){return t.response});e.ajaxGetJSON=c;var m=function(t){function e(e){t.call(this);var n={async:!0,createXHR:function(){return this.crossDomain?(function(){if(p.root.XMLHttpRequest)return new p.root.XMLHttpRequest;if(p.root.XDomainRequest)return new p.root.XDomainRequest;throw new Error("CORS is not supported by your browser")}).call(this):function(){if(p.root.XMLHttpRequest)return new p.root.XMLHttpRequest;var t=void 0;try{for(var e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],n=0;n<3;n++)try{if(t=e[n],new p.root.ActiveXObject(t))break}catch(t){}return new p.root.ActiveXObject(t)}catch(t){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!1,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof e)n.url=e;else for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);this.request=n}return l(e,t),e.prototype._subscribe=function(t){return new b(t,this.request)},e.create=function(){var t=function(t){return new e(t)};return t.get=r,t.post=i,t.delete=o,t.put=s,t.patch=a,t.getJSON=c,t}(),e}(f.Observable);e.AjaxObservable=m;var b=function(t){function e(e,n){t.call(this,e),this.request=n,this.done=!1;var r=n.headers=n.headers||{};n.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),"Content-Type"in r||p.root.FormData&&n.body instanceof p.root.FormData||"undefined"==typeof n.body||(r["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),n.body=this.serializeBody(n.body,n.headers["Content-Type"]),this.send()}return l(e,t),e.prototype.next=function(t){this.done=!0;var e=this.xhr,n=this.request,r=this.destination,i=new _(t,e,n);r.next(i)},e.prototype.send=function(){var t=this.request,e=this.request,n=e.user,r=e.method,i=e.url,o=e.async,s=e.password,a=e.headers,c=e.body,u=t.createXHR,l=h.tryCatch(u).call(t);if(l===d.errorObject)this.error(d.errorObject.e);else{this.xhr=l,this.setupEvents(l,t);if((n?h.tryCatch(l.open).call(l,r,i,o,n,s):h.tryCatch(l.open).call(l,r,i,o))===d.errorObject)return this.error(d.errorObject.e),null;if(o&&(l.timeout=t.timeout,l.responseType=t.responseType),"withCredentials"in l&&(l.withCredentials=!!t.withCredentials),this.setHeaders(l,a),(c?h.tryCatch(l.send).call(l,c):h.tryCatch(l.send).call(l))===d.errorObject)return this.error(d.errorObject.e),null}return l},e.prototype.serializeBody=function(t,e){if(!t||"string"==typeof t)return t;if(p.root.FormData&&t instanceof p.root.FormData)return t;if(e){var n=e.indexOf(";");-1!==n&&(e=e.substring(0,n))}switch(e){case"application/x-www-form-urlencoded":return Object.keys(t).map(function(e){return encodeURI(e)+"="+encodeURI(t[e])}).join("&");case"application/json":return JSON.stringify(t);default:return t}},e.prototype.setHeaders=function(t,e){for(var n in e)e.hasOwnProperty(n)&&t.setRequestHeader(n,e[n])},e.prototype.setupEvents=function(t,e){function n(t){var e=n.subscriber,r=n.progressSubscriber,i=n.request;r&&r.error(t),e.error(new w(this,i))}function r(t){var e=r.subscriber,n=r.progressSubscriber,i=r.request;if(4===this.readyState){var o=1223===this.status?204:this.status,s="text"===this.responseType?this.response||this.responseText:this.response;0===o&&(o=s?200:0),200<=o&&o<300?(n&&n.complete(),e.next(t),e.complete()):(n&&n.error(t),e.error(new x("ajax error "+o,this,i)))}}var i=e.progressSubscriber;if(t.ontimeout=n,n.request=e,n.subscriber=this,n.progressSubscriber=i,t.upload&&"withCredentials"in t){if(i){var o;o=function(t){o.progressSubscriber.next(t)},p.root.XDomainRequest?t.onprogress=o:t.upload.onprogress=o,o.progressSubscriber=i}var s;s=function(t){var e=s,n=e.progressSubscriber,r=e.subscriber,i=e.request;n&&n.error(t),r.error(new x("ajax error",this,i))},t.onerror=s,s.request=e,s.subscriber=this,s.progressSubscriber=i}t.onreadystatechange=r,r.subscriber=this,r.progressSubscriber=i,r.request=e},e.prototype.unsubscribe=function(){var e=this.done,n=this.xhr;!e&&n&&4!==n.readyState&&"function"==typeof n.abort&&n.abort(),t.prototype.unsubscribe.call(this)},e}(y.Subscriber);e.AjaxSubscriber=b;var _=function(){return function(t,e,n){this.originalEvent=t,this.xhr=e,this.request=n,this.status=e.status,this.responseType=e.responseType||n.responseType,this.response=u(this.responseType,e)}}();e.AjaxResponse=_;var x=function(t){function e(e,n,r){t.call(this,e),this.message=e,this.xhr=n,this.request=r,this.status=n.status,this.responseType=n.responseType||r.responseType,this.response=u(this.responseType,n)}return l(e,t),e}(Error);e.AjaxError=x;var w=function(t){function e(e,n){t.call(this,"ajax timeout",e,n)}return l(e,t),e}(x);e.AjaxTimeoutError=w},HT7u:function(t,e,n){"use strict";var r=n("AP4T"),i=n("D62v");r.Observable.prototype.catch=i.a,r.Observable.prototype._catch=i.a},HTfL:function(t,e,n){"use strict";var r=n("CQyF");e._throw=r.ErrorObservable.create},HUu4:function(t,e,n){"use strict";var r=n("bKpL"),i=n("AzAY");r.Observable.prototype.publishReplay=i.publishReplay},Hd11:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+");e.filter=function(t,e){return function(n){return n.lift(new o(t,e))}};var o=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,n,r){t.call(this,e),this.predicate=n,this.thisArg=r,this.count=0}return r(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.Subscriber)},Hg2u:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+"),o=n("fcnB");e.repeat=function(t){return void 0===t&&(t=-1),function(e){return 0===t?new o.EmptyObservable:t<0?e.lift(new s(-1,e)):e.lift(new s(t-1,e))}};var s=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.count,this.source))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.count=n,this.source=r}return r(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this.source,n=this.count;if(0===n)return t.prototype.complete.call(this);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(i.Subscriber)},"Hr+Y":function(t,e,n){"use strict";function r(t){t.debouncedNext()}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("IhB/");e.debounceTime=function(t,e){return void 0===e&&(e=s.async),function(n){return n.lift(new a(t,e))}};var a=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.dueTime,this.scheduler))},t}(),c=function(t){function e(e,n,r){t.call(this,e),this.dueTime=n,this.scheduler=r,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return i(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(r,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(o.Subscriber)},HwxE:function(t,e,n){"use strict";function r(){return new s.Subject}var i=n("P02W"),o=n("F9px"),s=n("rlar");e.share=function(){return function(t){return o.refCount()(i.multicast(r)(t))}}},HyAm:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(n("I2Y9").AsyncScheduler);e.AsapScheduler=i},I2Y9:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){t.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return r(e,t),e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(n("1VPd").Scheduler);e.AsyncScheduler=i},I3ay:function(t,e,n){"use strict";var r=n("NiCh");e.concatAll=function(){return r.concatAll()(this)}},I64N:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("Io40"),o=function(t){function e(e,n){var r=this;void 0===e&&(e=s),void 0===n&&(n=Number.POSITIVE_INFINITY),t.call(this,e,function(){return r.frame}),this.maxFrames=n,this.frame=0,this.index=-1}return r(e,t),e.prototype.flush=function(){for(var t,e,n=this.actions,r=this.maxFrames;(e=n.shift())&&(this.frame=e.delay)<=r&&!(t=e.execute(e.state,e.delay)););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(n("I2Y9").AsyncScheduler);e.VirtualTimeScheduler=o;var s=function(t){function e(e,n,r){void 0===r&&(r=e.index+=1),t.call(this,e,n),this.scheduler=e,this.work=n,this.index=r,this.active=!0,this.index=e.index=r}return r(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(n,r)},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){void 0===n&&(n=0)},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(i.AsyncAction);e.VirtualAction=s},IOeT:function(t,e,n){"use strict";var r=n("7xz3");e.combineAll=function(t){return r.combineAll(t)(this)}},IUpl:function(t,e,n){"use strict";var r=n("bKpL"),i=n("Y+l6");r.Observable.prototype.toArray=i.toArray},IfwN:function(t,e,n){"use strict";var r=n("0dhf");e.findIndex=function(t,e){return function(n){return n.lift(new r.FindValueOperator(t,n,!0,e))}}},"IhB/":function(t,e,n){"use strict";var r=n("Io40"),i=n("I2Y9");e.async=new i.AsyncScheduler(r.AsyncAction)},IkMW:function(t,e,n){"use strict";var r=n("SBOU");e.zipAll=function(t){return function(e){return e.lift(new r.ZipOperator(t))}}},Io40:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("zijX"),o=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n,this.pending=!1}return r(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t,this.pending=!0;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),i.root.setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;i.root.clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(n("XNum").Action);e.AsyncAction=o},IpZT:function(t,e,n){"use strict";var r=n("bKpL"),i=n("ZQVD");r.Observable.prototype.ignoreElements=i.ignoreElements},IqVs:function(t,e,n){"use strict";var r=n("zijX"),i=function(){return function(t){t.requestAnimationFrame?(this.cancelAnimationFrame=t.cancelAnimationFrame.bind(t),this.requestAnimationFrame=t.requestAnimationFrame.bind(t)):t.mozRequestAnimationFrame?(this.cancelAnimationFrame=t.mozCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.mozRequestAnimationFrame.bind(t)):t.webkitRequestAnimationFrame?(this.cancelAnimationFrame=t.webkitCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.webkitRequestAnimationFrame.bind(t)):t.msRequestAnimationFrame?(this.cancelAnimationFrame=t.msCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.msRequestAnimationFrame.bind(t)):t.oRequestAnimationFrame?(this.cancelAnimationFrame=t.oCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.oRequestAnimationFrame.bind(t)):(this.cancelAnimationFrame=t.clearTimeout.bind(t),this.requestAnimationFrame=function(e){return t.setTimeout(e,1e3/60)})}}();e.RequestAnimationFrameDefinition=i,e.AnimationFrame=new i(r.root)},ItUe:function(t,e,n){"use strict";var r=n("bKpL"),i=n("0I3B");r.Observable.prototype.zip=i.zipProto},JCyH:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("qIlB"),o=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n}return r(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=i.Immediate.setImmediate(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(i.Immediate.clearImmediate(n),e.scheduled=void 0)},e}(n("Io40").AsyncAction);e.AsapAction=o},JNTq:function(t,e,n){"use strict";var r=n("bKpL"),i=n("LEug");r.Observable.merge=i.merge},JSgX:function(t,e,n){"use strict";var r=n("bKpL"),i=n("7kbP");r.Observable.concat=i.concat},JVwL:function(t,e,n){"use strict";function r(){return m||(x(i),m=_.now()+b)}function i(){m=0}function o(){this._call=this._time=this._next=null}function s(t,e,n){var r=new o;return r.restart(t,e,n),r}function a(){r(),++d;for(var t,e=p;e;)(t=m-e._time)>=0&&e._call.call(null,t),e=e._next;--d}function c(){m=(v=_.now())+b,d=f=0;try{a()}finally{d=0,function(){var t,e,n=p,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:p=e);h=t,l(r)}(),m=0}}function u(){var t=_.now(),e=t-v;e>g&&(b-=e,v=t)}function l(t){if(!d){f&&(f=clearTimeout(f));t-m>24?(t<1/0&&(f=setTimeout(c,t-_.now()-b)),y&&(y=clearInterval(y))):(y||(v=_.now(),y=setInterval(u,g)),d=1,x(c))}}var p,h,d=0,f=0,y=0,g=1e3,v=0,m=0,b=0,_="object"==typeof performance&&performance.now?performance:Date,x="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};o.prototype=s.prototype={constructor:o,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?r():+n)+(null==e?0:+e),this._next||h===this||(h?h._next=this:p=this,h=this),this._call=t,this._time=n,l()},stop:function(){this._call&&(this._call=null,this._time=1/0,l())}};var w=function(t,e,n){var r=new o;return e=null==e?0:+e,r.restart(function(n){r.stop(),t(n+e)},e,n),r},O=function(t,e,n){var i=new o,s=e;return null==e?(i.restart(t,e,n),i):(e=+e,n=null==n?r():+n,i.restart(function r(o){o+=s,i.restart(r,s+=e,n),t(o)},e,n),i)};n.d(e,"a",function(){return r}),n.d(e,"c",function(){return s}),n.d(e,!1,function(){return a}),n.d(e,"b",function(){return w}),n.d(e,!1,function(){return O})},JwCl:function(t,e,n){"use strict";var r=n("H1KZ"),i=n("XvrG"),o=n("PbxL"),s=n("vxPf");e.reduce=function(t,e){return arguments.length>=2?function(n){return s.pipe(r.scan(t,e),i.takeLast(1),o.defaultIfEmpty(e))(n)}:function(e){return s.pipe(r.scan(function(e,n,r){return t(e,n,r+1)}),i.takeLast(1))(e)}}},K5Xx:function(t,e,n){"use strict";var r=n("zBM/");e.publish=function(t){return r.publish(t)(this)}},KRwF:function(t,e,n){"use strict";function r(t){var e=t.value,n=t.subscriber;n.closed||(n.next(e),n.complete())}function i(t){var e=t.err,n=t.subscriber;n.closed||n.error(e)}n.d(e,"a",function(){return c});var o=n("xIGM"),s=n("AP4T"),a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},c=function(t){function e(e,n){t.call(this),this.promise=e,this.scheduler=n}return a(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=this.promise,s=this.scheduler;if(null==s)this._isScalar?t.closed||(t.next(this.value),t.complete()):n.then(function(n){e.value=n,e._isScalar=!0,t.closed||(t.next(n),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){o.a.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return s.schedule(r,0,{value:this.value,subscriber:t})}else n.then(function(n){e.value=n,e._isScalar=!0,t.closed||t.add(s.schedule(r,0,{value:n,subscriber:t}))},function(e){t.closed||t.add(s.schedule(i,0,{err:e,subscriber:t}))}).then(null,function(t){o.a.setTimeout(function(){throw t})})},e}(s.Observable)},"Kt+M":function(t,e,n){"use strict";var r=n("vNxK"),i=n("7kbP");e.concatStatic=i.concat,e.concat=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r.concat.apply(void 0,t)(this)}},Kuy3:function(t,e,n){"use strict";var r=n("qHrI");e.subscribeOn=function(t,e){return void 0===e&&(e=0),r.subscribeOn(t,e)(this)}},L0Qg:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+"),o=n("3lsR");e.materialize=function(){return function(t){return t.lift(new s)}};var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new a(t))},t}(),a=function(t){function e(e){t.call(this,e)}return r(e,t),e.prototype._next=function(t){this.destination.next(o.Notification.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(o.Notification.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(o.Notification.createComplete()),t.complete()},e}(i.Subscriber)},L8VJ:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+");e.map=function(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(t,e))}};var o=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}();e.MapOperator=o;var s=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.count=0,this.thisArg=r||this}return r(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.Subscriber)},LBqD:function(t,e,n){"use strict";var r=n("9FjR");e.pairwise=function(){return r.pairwise()(this)}},LClL:function(t,e,n){"use strict";var r=n("bKpL"),i=n("saEi");r.Observable.prototype.publishBehavior=i.publishBehavior},LEug:function(t,e,n){"use strict";var r=n("bKpL"),i=n("wZOE"),o=n("MicL"),s=n("8rcZ");e.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=Number.POSITIVE_INFINITY,a=null,c=t[t.length-1];return o.isScheduler(c)?(a=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof c&&(n=t.pop()),null===a&&1===t.length&&t[0]instanceof r.Observable?t[0]:s.mergeAll(n)(new i.ArrayObservable(t,a))}},LMZF:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(function(t){function r(t,e,n,r){function o(t){if(this instanceof o)return s.call(this,t),this;var e=new o(t),n=function(t){return(t.hasOwnProperty(Ar)?t[Ar]:Object.defineProperty(t,Ar,{value:[]})[Ar]).push(e),t};return r&&r(n),n}var s=i(e);return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o}function i(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(t){var r=t.apply(void 0,e);for(var i in r)this[i]=r[i]}}}function o(t,e,n){function r(){function t(t,e,n){for(var r=t.hasOwnProperty(Ir)?t[Ir]:Object.defineProperty(t,Ir,{value:[]})[Ir];r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(i),t}for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof r)return o.apply(this,e),this;var i=new((s=r).bind.apply(s,[void 0].concat(e)));return t.annotation=i,t;var s}var o=i(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r}function s(t,e,n){function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof r)return o.apply(this,t),this;var n=new((i=r).bind.apply(i,[void 0].concat(t)));return function(t,e){var r=t.constructor,i=r.hasOwnProperty(kr)?r[kr]:Object.defineProperty(r,kr,{value:{}})[kr];i[e]=i.hasOwnProperty(e)&&i[e]||[],i[e].unshift(n)};var i}var o=i(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r}function a(t){return null==t||t===Br.Default}function c(){if(!di){var t=hi.Symbol;if(t&&t.iterator)di=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(di=r)}}return di}function u(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function l(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function p(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(p).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function h(t){return t.__forward_ref__=h,t.toString=function(){return p(this())},t}function d(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===h?t():t}function f(t){var e=function(t){var e=bi,n=t.deps;if(n&&n.length){e=[];for(var r=0;r<n.length;r++){var i=6,o=d(n[r]);if(o instanceof Array)for(var s=0,a=o;s<a.length;s++){var c=a[s];c instanceof oi||c==oi?i|=1:c instanceof ci||c==ci?i&=-3:c instanceof ai||c==ai?i&=-5:o=c instanceof ii?c.token:d(c)}e.push({token:o,options:i})}}else if(t.useExisting){var o=d(t.useExisting);e=[{token:o,options:6}]}else if(!(n||Si in t))throw b("'deps' required",t);return e}(t),n=mi,r=bi,i=!1,o=d(t.provide);if(Si in t)r=t.useValue;else if(t.useFactory)n=t.useFactory;else if(t.useExisting);else if(t.useClass)i=!0,n=d(t.useClass);else{if("function"!=typeof o)throw b("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",t);i=!0,n=o}return{deps:e,fn:n,useNew:i,value:r}}function y(t){return b("Cannot mix multi providers and regular providers",t)}function g(t,e){if(e)if((e=d(e))instanceof Array)for(var n=0;n<e.length;n++)g(t,e[n]);else{if("function"==typeof e)throw b("Function/Class not supported",e);if(!e||"object"!=typeof e||!e.provide)throw b("Unexpected provider",e);var r=d(e.provide),i=f(e);if(!0===e.multi){var o=t.get(r);if(o){if(o.fn!==xi)throw y(r)}else t.set(r,o={token:e.provide,deps:[],useNew:!1,fn:xi,value:bi});r=e,o.deps.push({token:r,options:6})}var s=t.get(r);if(s&&s.fn==xi)throw y(r);t.set(r,i)}}function v(t,e,n,r,i){try{return function(t,e,n,r,i){var o;if(e){if((o=e.value)==_i)throw Error(ji+"Circular dependency");if(o===bi){e.value=_i;var s=void 0,a=e.useNew,c=e.fn,u=e.deps,l=bi;if(u.length){l=[];for(var p=0;p<u.length;p++){var h=u[p],d=h.options,f=2&d?n.get(h.token):void 0;l.push(v(h.token,f,n,f||4&d?r:Ei,1&d?null:vi.THROW_IF_NOT_FOUND))}}e.value=o=a?new((y=c).bind.apply(y,[void 0].concat(l))):c.apply(s,l)}}else o=r.get(t,i);return o;var y}(t,e,n,r,i)}catch(n){n instanceof Error||(n=new Error(n));throw(n[Ci]=n[Ci]||[]).unshift(t),e&&e.value==_i&&(e.value=bi),n}}function m(t,e){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==ji?t.substr(2):t;var n=p(e);if(e instanceof Array)n=e.map(p).join(" -> ");else if("object"==typeof e){var r=[];for(var i in e)if(e.hasOwnProperty(i)){var o=e[i];r.push(i+":"+("string"==typeof o?JSON.stringify(o):p(o)))}n="{"+r.join(", ")+"}"}return"StaticInjectorError["+n+"]: "+t.replace(Ti,"\n ")}function b(t,e){return new Error(m(t,e))}function _(t){return t[Ai]}function x(t){return t[Ii]}function w(t){if(t.length>1){return" ("+function(t){for(var e=[],n=0;n<t.length;++n){if(e.indexOf(t[n])>-1)return e.push(t[n]),e;e.push(t[n])}return e}(t.slice().reverse()).map(function(t){return p(t.token)}).join(" -> ")+")"}return""}function O(t,e,n,r){var i=[e],o=n(i),s=r?function(t,e){var n=t+" caused by: "+(e instanceof Error?e.message:e),r=Error(n);return r[Ii]=e,r}(o,r):Error(o);return s.addKey=S,s.keys=i,s.injectors=[t],s.constructResolvingMessage=n,s[Ii]=r,s}function S(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function C(t,e){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];o&&0!=o.length?n.push(o.map(p).join(" ")):n.push("?")}return Error("Cannot resolve all parameters for '"+p(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+p(t)+"' is decorated with Injectable.")}function E(t,e){return Error("Cannot mix multi providers and regular providers, got: "+t+" "+e)}function T(t){return"function"==typeof t}function j(t){return t?t.map(function(t){var e=t.type.annotationCls,n=t.args?t.args:[];return new(e.bind.apply(e,[void 0].concat(n)))}):[]}function P(t){var e=Object.getPrototypeOf(t.prototype);return(e?e.constructor:null)||Object}function A(t){var e,n;if(t.useClass){var r=d(t.useClass);e=Vi.factory(r),n=M(r)}else t.useExisting?(e=function(t){return t},n=[Bi.fromKey(Mi.get(t.useExisting))]):t.useFactory?(e=t.useFactory,n=function(t,e){if(e){var n=e.map(function(t){return[t]});return e.map(function(e){return D(t,e,n)})}return M(t)}(t.useFactory,t.deps)):(e=function(){return t.useValue},n=Hi);return new Ui(e,n)}function I(t){return new zi(Mi.get(t.provide),[A(t)],t.multi||!1)}function k(t){var e=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e.get(r.key.id);if(i){if(r.multiProvider!==i.multiProvider)throw E(i,r);if(r.multiProvider)for(var o=0;o<r.resolvedFactories.length;o++)i.resolvedFactories.push(r.resolvedFactories[o]);else e.set(r.key.id,r)}else{var s=void 0;s=r.multiProvider?new zi(r.key,r.resolvedFactories.slice(),r.multiProvider):r,e.set(r.key.id,s)}}return e}(R(t,[]).map(I),new Map);return Array.from(e.values())}function R(t,e){return t.forEach(function(t){if(t instanceof Ni)e.push({provide:t,useClass:t});else if(t&&"object"==typeof t&&void 0!==t.provide)e.push(t);else{if(!(t instanceof Array))throw function(t){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t)}(t);R(t,e)}}),e}function M(t){var e=Vi.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw C(t,e);return e.map(function(n){return D(t,n,e)})}function D(t,e,n){var r=null,i=!1;if(!Array.isArray(e))return N(e instanceof ii?e.token:e,i,null);for(var o=null,s=0;s<e.length;++s){var a=e[s];a instanceof Ni?r=a:a instanceof ii?r=a.token:a instanceof oi?i=!0:a instanceof ai||a instanceof ci?o=a:a instanceof Pr&&(r=a)}if(null!=(r=d(r)))return N(r,i,o);throw C(t,n)}function N(t,e,n){return new Bi(Mi.get(t),e,n)}function L(t){return!!t&&"function"==typeof t.then}function F(t){return!!t&&"function"==typeof t.subscribe}function V(){return""+B()+B()+B()}function B(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function H(){throw new Error("Runtime compiler is not loaded")}function z(t){var e=Error("No component factory found for "+p(t)+". Did you add it to @NgModule.entryComponents?");return e[co]=t,e}function U(){var t=hi.wtf;return!(!t||!(Jr=t.trace))&&(ti=Jr.events,!0)}function W(t,e){return void 0===e&&(e=null),ti.createScope(t,e)}function G(t,e){return Jr.leaveScope(t,e),e}function q(t,e){return Jr.beginTimeRange(t,e)}function Y(t){Jr.endTimeRange(t)}function K(t,e){return null}function X(){}function $(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(function(){return t.onStable.emit(null)})}finally{t.isStable=!0}}}function Q(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Z(t){t._nesting--,$(t)}function J(t){To=t}function tt(){if(Po)throw new Error("Cannot enable prod mode after platform setup.");jo=!1}function et(){return Po=!0,jo}function nt(t){if(ei&&!ei.destroyed&&!ei.injector.get(Ao,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ei=t.get(ko);var e=t.get(Qi,null);return e&&e.forEach(function(t){return t()}),ei}function rt(t,e,n){void 0===n&&(n=[]);var r=new Pr("Platform: "+e);return function(e){void 0===e&&(e=[]);var i=st();return i&&!i.injector.get(Ao,!1)||(t?t(n.concat(e).concat({provide:r,useValue:!0})):nt(vi.create(n.concat(e).concat({provide:r,useValue:!0})))),it(r)}}function it(t){var e=st();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}function ot(){ei&&!ei.destroyed&&ei.destroy()}function st(){return ei&&!ei.destroyed?ei:null}function at(t,e){return t=Array.isArray(e)?e.reduce(at,t):Object(Sr.a)({},t,e)}function ct(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function ut(t,e){var n=Uo.get(t);if(n)throw new Error("Duplicate module registered for "+t+" - "+n.moduleType.name+" vs "+e.moduleType.name);Uo.set(t,e)}function lt(t){var e=Uo.get(t);if(!e)throw new Error("No module with ID "+t+" loaded");return e}function pt(t){return t.reduce(function(t,e){var n=Array.isArray(e)?pt(e):e;return t.concat(n)},[])}function ht(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}function dt(t){return t.map(function(t){return t.nativeElement})}function ft(t,e,n){t.childNodes.forEach(function(t){t instanceof es&&(e(t)&&n.push(t),ft(t,e,n))})}function yt(t,e,n){t instanceof es&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof es&&yt(t,e,n)})}function gt(t){return ns.get(t)||null}function vt(t){ns.set(t.nativeNode,t)}function mt(t,e){var n=bt(t),r=bt(e);if(n&&r)return function(t,e,n){var r=t[c()](),i=e[c()]();for(;;){var o=r.next(),s=i.next();if(o.done&&s.done)return!0;if(o.done||s.done)return!1;if(!n(o.value,s.value))return!1}}(t,e,mt);return!(n||!(t&&("object"==typeof t||"function"==typeof t))||r||!(e&&("object"==typeof e||"function"==typeof e)))||l(t,e)}function bt(t){return!!_t(t)&&(Array.isArray(t)||!(t instanceof Map)&&c()in t)}function _t(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function xt(t,e,n){var r=t.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+e+i}function wt(){return bs}function Ot(){return _s}function St(t){return t||"en-US"}function Ct(t,e,n){var r=t.state,i=1792&r;return i===e?(t.state=-1793&r|n,t.initIndex=-1,!0):i===n}function Et(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function Tt(t,e){return t.nodes[e]}function jt(t,e){return t.nodes[e]}function Pt(t,e){return t.nodes[e]}function At(t,e){return t.nodes[e]}function It(t,e){return t.nodes[e]}function kt(t,e,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(t,e){var n=new Error(t);return Rt(n,e),n}(i,t)}function Rt(t,e){t[Ai]=e,t[ki]=e.logError.bind(e)}function Mt(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}function Dt(t){var e=ks.get(t);return e||(e=p(t)+"_"+ks.size,ks.set(t,e)),e}function Nt(t,e,n,r){if(r instanceof rs){r=r.wrapped;var i=t.def.nodes[e].bindingIndex+n,o=t.oldValues[i];o instanceof rs&&(o=o.wrapped),t.oldValues[i]=new rs(o)}return r}function Lt(t){return{id:Rs,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}function Ft(t,e,n,r){var i=t.oldValues;return!(!(2&t.state)&&l(i[e.bindingIndex+n],r))}function Vt(t,e,n,r){return!!Ft(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function Bt(t,e,n,r){var i=t.oldValues[e.bindingIndex+n];if(1&t.state||!mt(i,r))throw kt(As.createDebugContext(t,e.nodeIndex),i,r,0!=(1&t.state))}function Ht(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function zt(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function Ut(t,e,n,r){try{return Ht(33554432&t.def.nodes[e].flags?jt(t,e).componentView:t),As.handleEvent(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}function Wt(t){if(t.parent){return jt(t.parent,t.parentNodeDef.nodeIndex)}return null}function Gt(t){return t.parent?t.parentNodeDef.parent:null}function qt(t,e){switch(201347067&e.flags){case 1:return jt(t,e.nodeIndex).renderElement;case 2:return Tt(t,e.nodeIndex).renderText}}function Yt(t,e){return t?t+":"+e:e}function Kt(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function Xt(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function $t(t){return 1<<t%32}function Qt(t){var e={},n=0,r={};return t&&t.forEach(function(t){var i=t[0],o=t[1];"number"==typeof i?(e[i]=o,n|=$t(i)):r[i]=o}),{matchedQueries:e,references:r,matchedQueryIds:n}}function Zt(t){return t.map(function(t){var e,n;return Array.isArray(t)?(n=t[0],e=t[1]):(n=0,e=t),{flags:n,token:e,tokenKey:Dt(e)}})}function Jt(t,e,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Zr.Native?jt(t,n.renderParent.nodeIndex).renderElement:void 0:e}function te(t){var e=Ns.get(t);return e||((e=t(function(){return Is})).factory=t,Ns.set(t,e)),e}function ee(t,e,n,r,i){3===e&&(n=t.renderer.parentNode(qt(t,t.def.lastRenderRootNode))),ne(t,e,0,t.def.nodes.length-1,n,r,i)}function ne(t,e,n,r,i,o,s){for(var a=n;a<=r;a++){var c=t.def.nodes[a];11&c.flags&&ie(t,c,e,i,o,s),a+=c.childCount}}function re(t,e,n,r,i,o){for(var s=t;s&&!Kt(s);)s=s.parent;for(var a=s.parent,c=Gt(s),u=c.nodeIndex+1,l=c.nodeIndex+c.childCount,p=u;p<=l;p++){var h=a.def.nodes[p];h.ngContentIndex===e&&ie(a,h,n,r,i,o),p+=h.childCount}if(!a.parent){var d=t.root.projectableNodes[e];if(d)for(p=0;p<d.length;p++)oe(t,d[p],n,r,i,o)}}function ie(t,e,n,r,i,o){if(8&e.flags)re(t,e.ngContent.index,n,r,i,o);else{var s=qt(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags){if(16&e.bindingFlags&&oe(t,s,n,r,i,o),32&e.bindingFlags){oe(jt(t,e.nodeIndex).componentView,s,n,r,i,o)}}else oe(t,s,n,r,i,o);if(16777216&e.flags)for(var a=jt(t,e.nodeIndex).viewContainer._embeddedViews,c=0;c<a.length;c++)ee(a[c],n,r,i,o);1&e.flags&&!e.element.name&&ne(t,n,e.nodeIndex+1,e.nodeIndex+e.childCount,r,i,o)}}function oe(t,e,n,r,i,o){var s=t.renderer;switch(n){case 1:s.appendChild(r,e);break;case 2:s.insertBefore(r,e,i);break;case 3:s.removeChild(r,e);break;case 0:o.push(e)}}function se(t){if(":"===t[0]){var e=t.match(Ls);return[e[1],e[2]]}return["",t]}function ae(t){for(var e=0,n=0;n<t.length;n++)e|=t[n].flags;return e}function ce(t,e){for(var n="",r=0;r<2*t;r+=2)n=n+e[r]+le(e[r+1]);return n+e[2*t]}function ue(t,e,n,r,i,o,s,a,c,u,l,p,h,d,f,y,g,v,m,b){switch(t){case 1:return e+le(n)+r;case 2:return e+le(n)+r+le(i)+o;case 3:return e+le(n)+r+le(i)+o+le(s)+a;case 4:return e+le(n)+r+le(i)+o+le(s)+a+le(c)+u;case 5:return e+le(n)+r+le(i)+o+le(s)+a+le(c)+u+le(l)+p;case 6:return e+le(n)+r+le(i)+o+le(s)+a+le(c)+u+le(l)+p+le(h)+d;case 7:return e+le(n)+r+le(i)+o+le(s)+a+le(c)+u+le(l)+p+le(h)+d+le(f)+y;case 8:return e+le(n)+r+le(i)+o+le(s)+a+le(c)+u+le(l)+p+le(h)+d+le(f)+y+le(g)+v;case 9:return e+le(n)+r+le(i)+o+le(s)+a+le(c)+u+le(l)+p+le(h)+d+le(f)+y+le(g)+v+le(m)+b;default:throw new Error("Does not support more than 9 expressions")}}function le(t){return null!=t?t.toString():""}function pe(t,e,n,r,i,o){t|=1;var s=Qt(e),a=s.matchedQueries,c=s.references;return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a,matchedQueryIds:s.matchedQueryIds,references:c,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?te(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||Is},provider:null,text:null,query:null,ngContent:null}}function he(t,e,n,r,i,o,s,a,c,u,l,p){void 0===s&&(s=[]),u||(u=Is);var h=Qt(n),d=h.matchedQueries,f=h.references,y=h.matchedQueryIds,g=null,v=null;o&&(g=(M=se(o))[0],v=M[1]),a=a||[];for(var m=new Array(a.length),b=0;b<a.length;b++){var _=a[b],x=_[0],w=_[1],O=_[2],S=se(w),C=S[0],E=S[1],T=void 0,j=void 0;switch(15&x){case 4:j=O;break;case 1:case 8:T=O}m[b]={flags:x,ns:C,name:E,nonMinifiedName:E,securityContext:T,suffix:j}}c=c||[];var P=new Array(c.length);for(b=0;b<c.length;b++){var A=c[b],I=A[0],k=A[1];P[b]={type:0,target:I,eventName:k,propName:null}}var R=(s=s||[]).map(function(t){var e=t[0],n=t[1],r=se(e);return[r[0],r[1],n]});return p=function(t){if(t&&t.id===Rs){var e=null!=t.encapsulation&&t.encapsulation!==Zr.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+Ds++:Ms}return t&&t.id===Ms&&(t=null),t||null}(p),l&&(e|=33554432),e|=1,{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:y,references:f,ngContentIndex:r,childCount:i,bindings:m,bindingFlags:ae(m),outputs:P,element:{ns:g,name:v,attrs:R,template:null,componentProvider:null,componentView:l||null,componentRendererType:p,publicProviders:null,allProviders:null,handleEvent:u||Is},provider:null,text:null,query:null,ngContent:null};var M}function de(t,e,n){var r,i=n.element,o=t.root.selectorOrNode,s=t.renderer;if(t.parent||!o){r=i.name?s.createElement(i.name,i.ns):s.createComment("");var a=Jt(t,e,n);a&&s.appendChild(a,r)}else r=s.selectRootElement(o);if(i.attrs)for(var c=0;c<i.attrs.length;c++){var u=i.attrs[c],l=u[0],p=u[1],h=u[2];s.setAttribute(r,p,h,l)}return r}function fe(t,e,n,r){for(var i=0;i<n.outputs.length;i++){var o=n.outputs[i],s=function(t,e,n){return function(r){return Ut(t,e,n,r)}}(t,n.nodeIndex,Yt(o.target,o.eventName)),a=o.target,c=t;"component"===o.target&&(a=null,c=e);var u=c.renderer.listen(a||r,o.eventName,s);t.disposables[n.outputIndex+i]=u}}function ye(t,e,n,r){if(!Vt(t,e,n,r))return!1;var i=e.bindings[n],o=jt(t,e.nodeIndex),s=o.renderElement,a=i.name;switch(15&i.flags){case 1:!function(t,e,n,r,i,o){var s=e.securityContext,a=s?t.root.sanitizer.sanitize(s,o):o;a=null!=a?a.toString():null;var c=t.renderer;null!=o?c.setAttribute(n,i,a,r):c.removeAttribute(n,i,r)}(t,i,s,i.ns,a,r);break;case 2:!function(t,e,n,r){var i=t.renderer;r?i.addClass(e,n):i.removeClass(e,n)}(t,s,a,r);break;case 4:!function(t,e,n,r,i){var o=t.root.sanitizer.sanitize(Ts.STYLE,i);if(null!=o){o=o.toString();var s=e.suffix;null!=s&&(o+=s)}else o=null;var a=t.renderer;null!=o?a.setStyle(n,r,o):a.removeStyle(n,r)}(t,i,s,a,r);break;case 8:!function(t,e,n,r,i){var o=e.securityContext,s=o?t.root.sanitizer.sanitize(o,i):i;t.renderer.setProperty(n,r,s)}(33554432&e.flags&&32&i.flags?o.componentView:t,i,s,a,r)}return!0}function ge(t,e,n,r){n=d(n);return{index:-1,deps:Zt(r),flags:t,token:e,value:n}}function ve(t){for(var e={},n=0;n<t.length;n++){var r=t[n];r.index=n,e[Dt(r.token)]=r}return{factory:null,providersByKey:e,providers:t}}function me(t,e,n){if(void 0===n&&(n=vi.THROW_IF_NOT_FOUND),8&e.flags)return e.token;if(2&e.flags&&(n=null),1&e.flags)return t._parent.get(e.token,n);var r=e.tokenKey;switch(r){case Hs:case zs:return t}var i=t._def.providersByKey[r];if(i){var o=t._providers[i.index];return void 0===o&&(o=t._providers[i.index]=be(t,i)),o===Bs?void 0:o}return t._parent.get(e.token,n)}function be(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(me(t,n[0]));case 2:return new e(me(t,n[0]),me(t,n[1]));case 3:return new e(me(t,n[0]),me(t,n[1]),me(t,n[2]));default:for(var i=new Array(r),o=0;o<r;o++)i[o]=me(t,n[o]);return new(e.bind.apply(e,[void 0].concat(i)))}}(t,e.value,e.deps);break;case 1024:n=function(t,e,n){var r=n.length;switch(r){case 0:return e();case 1:return e(me(t,n[0]));case 2:return e(me(t,n[0]),me(t,n[1]));case 3:return e(me(t,n[0]),me(t,n[1]),me(t,n[2]));default:for(var i=Array(r),o=0;o<r;o++)i[o]=me(t,n[o]);return e.apply(void 0,i)}}(t,e.value,e.deps);break;case 2048:n=me(t,e.deps[0]);break;case 256:n=e.value}return void 0===n?Bs:n}function _e(t,e,n,r){var i=e.viewContainer._embeddedViews;null!==n&&void 0!==n||(n=i.length),r.viewContainerParent=t,Se(i,n,r),function(t,e){var n=Wt(e);if(!n||n===t||16&e.state)return;e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]);r.push(e),function(t,e){if(4&e.flags)return;t.nodeFlags|=4,e.flags|=4;var n=e.parent;for(;n;)n.childFlags|=4,n=n.parent}(e.parent.def,e.parentNodeDef)}(e,r),As.dirtyParentQueries(r);we(e,n>0?i[n-1]:null,r)}function xe(t,e){var n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,Ce(n,e),As.dirtyParentQueries(r),Oe(r),r}function we(t,e,n){var r=e?qt(e,e.def.lastRenderRootNode):t.renderElement;ee(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Oe(t){ee(t,3,null,null,void 0)}function Se(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Ce(t,e){e>=t.length-1?t.pop():t.splice(e,1)}function Ee(t,e,n,r,i,o){return new Ws(t,e,n,r,i,o)}function Te(t){return t.viewDefFactory}function je(t,e,n){return new qs(t,e,n)}function Pe(t){return new Ys(t)}function Ae(t,e){return new Ks(t,e)}function Ie(t,e){return new Xs(t,e)}function ke(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=jt(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Tt(t,n.nodeIndex).renderText;if(20240&n.flags)return Pt(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function Re(t){return new $s(t.renderer)}function Me(t,e,n,r){return new Qs(t,e,n,r)}function De(t,e,n,r,i,o,s,a){var c=[];if(s)for(var u in s){var l=s[u],p=l[0],h=l[1];c[p]={flags:8,name:u,nonMinifiedName:h,ns:null,securityContext:null,suffix:null}}var d=[];if(a)for(var f in a)d.push({type:1,propName:f,target:null,eventName:a[f]});return e|=16384,Fe(t,e,n,r,i,i,o,c,d)}function Ne(t,e,n){return t|=16,Fe(-1,t,null,0,e,e,n)}function Le(t,e,n,r,i){return Fe(-1,t,e,0,n,r,i)}function Fe(t,e,n,r,i,o,s,a,c){var u=Qt(n),l=u.matchedQueries,p=u.references,h=u.matchedQueryIds;c||(c=[]),a||(a=[]),o=d(o);var f=Zt(s);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:l,matchedQueryIds:h,references:p,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:ae(a),outputs:c,element:null,provider:{token:i,value:o,deps:f},text:null,query:null,ngContent:null}}function Ve(t,e){return ze(t,e)}function Be(t,e){for(var n=t;n.parent&&!Kt(n);)n=n.parent;return Ue(n.parent,Gt(n),!0,e.provider.value,e.provider.deps)}function He(t,e){var n=(32768&e.flags)>0,r=Ue(t,e.parent,n,e.provider.value,e.provider.deps);if(e.outputs.length)for(var i=0;i<e.outputs.length;i++){var o=e.outputs[i],s=r[o.propName].subscribe(function(t,e,n){return function(r){return Ut(t,e,n,r)}}(t,e.parent.nodeIndex,o.eventName));t.disposables[e.outputIndex+i]=s.unsubscribe.bind(s)}return r}function ze(t,e){var n=(8192&e.flags)>0,r=e.provider;switch(201347067&e.flags){case 512:return Ue(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(We(t,e,n,i[0]));case 2:return r(We(t,e,n,i[0]),We(t,e,n,i[1]));case 3:return r(We(t,e,n,i[0]),We(t,e,n,i[1]),We(t,e,n,i[2]));default:for(var s=Array(o),a=0;a<o;a++)s[a]=We(t,e,n,i[a]);return r.apply(void 0,s)}}(t,e.parent,n,r.value,r.deps);case 2048:return We(t,e.parent,n,r.deps[0]);case 256:return r.value}}function Ue(t,e,n,r,i){var o=i.length;switch(o){case 0:return new r;case 1:return new r(We(t,e,n,i[0]));case 2:return new r(We(t,e,n,i[0]),We(t,e,n,i[1]));case 3:return new r(We(t,e,n,i[0]),We(t,e,n,i[1]),We(t,e,n,i[2]));default:for(var s=new Array(o),a=0;a<o;a++)s[a]=We(t,e,n,i[a]);return new(r.bind.apply(r,[void 0].concat(s)))}}function We(t,e,n,r,i){if(void 0===i&&(i=vi.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var o=t;2&r.flags&&(i=null);var s=r.tokenKey;for(s===ra&&(n=!(!e||!e.element.componentView)),e&&1&r.flags&&(n=!1,e=e.parent);t;){if(e)switch(s){case Zs:return Re(Ge(t,e,n));case Js:return Ge(t,e,n).renderer;case ta:return new Ho(jt(t,e.nodeIndex).renderElement);case ea:return jt(t,e.nodeIndex).viewContainer;case na:if(e.element.template)return jt(t,e.nodeIndex).template;break;case ra:return Pe(Ge(t,e,n));case ia:return Ie(t,e);default:var a=(n?e.element.allProviders:e.element.publicProviders)[s];if(a){var c=Pt(t,a.nodeIndex);return c||(c={instance:ze(t,a)},t.nodes[a.nodeIndex]=c),c.instance}}n=Kt(t),e=Gt(t),t=t.parent}var u=o.root.injector.get(r.token,oa);return u!==oa||i===oa?u:o.root.ngModule.injector.get(r.token,i)}function Ge(t,e,n){var r;if(n)r=jt(t,e.nodeIndex).componentView;else for(r=t;r.parent&&!Kt(r);)r=r.parent;return r}function qe(t,e,n,r,i,o){if(32768&n.flags){var s=jt(t,n.parent.nodeIndex).componentView;2&s.def.flags&&(s.state|=8)}var a=n.bindings[r].name;if(e.instance[a]=i,524288&n.flags){o=o||{};var c=t.oldValues[n.bindingIndex+r];c instanceof rs&&(c=c.wrapped);o[n.bindings[r].nonMinifiedName]=new os(c,i,0!=(2&t.state))}return t.oldValues[n.bindingIndex+r]=i,o}function Ye(t,e){if(t.def.nodeFlags&e)for(var n=t.def.nodes,r=0,i=0;i<n.length;i++){var o=n[i],s=o.parent;for(!s&&o.flags&e&&Ke(t,i,o.flags&e,r++),0==(o.childFlags&e)&&(i+=o.childCount);s&&1&s.flags&&i===s.nodeIndex+s.childCount;)s.directChildFlags&e&&(r=function(t,e,n,r){for(var i=e.nodeIndex+1;i<=e.nodeIndex+e.childCount;i++){var o=t.def.nodes[i];o.flags&n&&Ke(t,i,o.flags&n,r++),i+=o.childCount}return r}(t,s,e,r)),s=s.parent}}function Ke(t,e,n,r){var i=Pt(t,e);if(i){var o=i.instance;o&&(As.setCurrentNode(t,e),1048576&n&&Et(t,512,r)&&o.ngAfterContentInit(),2097152&n&&o.ngAfterContentChecked(),4194304&n&&Et(t,768,r)&&o.ngAfterViewInit(),8388608&n&&o.ngAfterViewChecked(),131072&n&&o.ngOnDestroy())}}function Xe(t,e,n){var r=[];for(var i in n){var o=n[i];r.push({propName:i,bindingType:o})}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:e,filterId:$t(e),bindings:r},ngContent:null}}function $e(){return new Wo}function Qe(t){for(var e=t.def.nodeMatchedQueries;t.parent&&Xt(t);){var n=t.parentNodeDef;t=t.parent;for(var r=n.nodeIndex+n.childCount,i=0;i<=r;i++){67108864&(o=t.def.nodes[i]).flags&&536870912&o.flags&&(o.query.filterId&e)===o.query.filterId&&It(t,i).setDirty(),!(1&o.flags&&i+o.childCount<n.nodeIndex)&&67108864&o.childFlags&&536870912&o.childFlags||(i+=o.childCount)}}if(134217728&t.def.nodeFlags)for(i=0;i<t.def.nodes.length;i++){var o;134217728&(o=t.def.nodes[i]).flags&&536870912&o.flags&&It(t,i).setDirty(),i+=o.childCount}}function Ze(t,e){var n=It(t,e.nodeIndex);if(n.dirty){var r,i=void 0;if(67108864&e.flags){var o=e.parent.parent;i=Je(t,o.nodeIndex,o.nodeIndex+o.childCount,e.query,[]),r=Pt(t,e.parent.nodeIndex).instance}else 134217728&e.flags&&(i=Je(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(i);for(var s=e.query.bindings,a=!1,c=0;c<s.length;c++){var u=s[c],l=void 0;switch(u.bindingType){case 0:l=n.first;break;case 1:l=n,a=!0}r[u.propName]=l}a&&n.notifyOnChanges()}}function Je(t,e,n,r,i){for(var o=e;o<=n;o++){var s=t.def.nodes[o],a=s.matchedQueries[r.id];if(null!=a&&i.push(tn(t,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var c=jt(t,o);if((s.childMatchedQueries&r.filterId)===r.filterId&&(Je(t,o+1,o+s.childCount,r,i),o+=s.childCount),16777216&s.flags)for(var u=c.viewContainer._embeddedViews,l=0;l<u.length;l++){var p=u[l],h=Wt(p);h&&h===c&&Je(p,0,p.def.nodes.length-1,r,i)}var d=c.template._projectedViews;if(d)for(l=0;l<d.length;l++){var f=d[l];Je(f,0,f.def.nodes.length-1,r,i)}}(s.childMatchedQueries&r.filterId)!==r.filterId&&(o+=s.childCount)}return i}function tn(t,e,n){if(null!=n)switch(n){case 1:return jt(t,e.nodeIndex).renderElement;case 0:return new Ho(jt(t,e.nodeIndex).renderElement);case 2:return jt(t,e.nodeIndex).template;case 3:return jt(t,e.nodeIndex).viewContainer;case 4:return Pt(t,e.nodeIndex).instance}}function en(t,e){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:e}}}function nn(t,e,n){var r=Jt(t,e,n);if(r){re(t,n.ngContent.index,1,r,null,void 0)}}function rn(t,e){return an(128,t,new Array(e+1))}function on(t,e){return an(32,t,new Array(e))}function sn(t,e){for(var n=Object.keys(e),r=n.length,i=new Array(r),o=0;o<r;o++){var s=n[o];i[e[s]]=s}return an(64,t,i)}function an(t,e,n){for(var r=new Array(n.length),i=0;i<n.length;i++){var o=n[i];r[i]={flags:8,name:o,ns:null,nonMinifiedName:o,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:ae(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function cn(t,e,n){for(var r=new Array(n.length-1),i=1;i<n.length;i++)r[i-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[i]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function un(t,e,n){var r,i=t.renderer;r=i.createText(n.text.prefix);var o=Jt(t,e,n);return o&&i.appendChild(o,r),{renderText:r}}function ln(t,e){return(null!=t?t.toString():"")+e.suffix}function pn(t,e,n,r){for(var i=0,o=0,s=0,a=0,c=0,u=null,l=null,p=!1,h=!1,d=null,f=0;f<e.length;f++){var y=e[f];if(y.nodeIndex=f,y.parent=u,y.bindingIndex=i,y.outputIndex=o,y.renderParent=l,s|=y.flags,c|=y.matchedQueryIds,y.element){var g=y.element;g.publicProviders=u?u.element.publicProviders:Object.create(null),g.allProviders=g.publicProviders,p=!1,h=!1,y.element.template&&(c|=y.element.template.nodeMatchedQueries)}if(function(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags){var i=t?t.flags:0;if(0==(1&i))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!")}if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var o=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=o&&e.nodeIndex+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}(u,y,e.length),i+=y.bindings.length,o+=y.outputs.length,!l&&3&y.flags&&(d=y),20224&y.flags){p||(p=!0,u.element.publicProviders=Object.create(u.element.publicProviders),u.element.allProviders=u.element.publicProviders);var v=0!=(8192&y.flags),m=0!=(32768&y.flags);!v||m?u.element.publicProviders[Dt(y.provider.token)]=y:(h||(h=!0,u.element.allProviders=Object.create(u.element.publicProviders)),u.element.allProviders[Dt(y.provider.token)]=y),m&&(u.element.componentProvider=y)}if(u?(u.childFlags|=y.flags,u.directChildFlags|=y.flags,u.childMatchedQueries|=y.matchedQueryIds,y.element&&y.element.template&&(u.childMatchedQueries|=y.element.template.nodeMatchedQueries)):a|=y.flags,y.childCount>0)u=y,hn(y)||(l=y);else for(;u&&f===u.nodeIndex+u.childCount;){var b=u.parent;b&&(b.childFlags|=u.childFlags,b.childMatchedQueries|=u.childMatchedQueries),l=(u=b)&&hn(u)?u.renderParent:u}}return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:c,flags:t,nodes:e,updateDirectives:n||Is,updateRenderer:r||Is,handleEvent:function(t,n,r,i){return e[n].element.handleEvent(t,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:d}}function hn(t){return 0!=(1&t.flags)&&null===t.element.name}function dn(t,e,n,r){var i=gn(t.root,t.renderer,t,e,n);return vn(i,t.component,r),mn(i),i}function fn(t,e,n){var r=gn(t,t.renderer,null,null,e);return vn(r,n,n),mn(r),r}function yn(t,e,n,r){var i,o=e.element.componentRendererType;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,gn(t.root,i,t,e.element.componentProvider,n)}function gn(t,e,n,r,i){var o=new Array(i.nodes.length),s=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:s,initIndex:-1}}function vn(t,e,n){t.component=e,t.context=n}function mn(t){var e;if(Kt(t)){var n=t.parentNodeDef;e=jt(t.parent,n.parent.nodeIndex).renderElement}for(var r=t.def,i=t.nodes,o=0;o<r.nodes.length;o++){var s=r.nodes[o];As.setCurrentNode(t,o);var a=void 0;switch(201347067&s.flags){case 1:var c=de(t,e,s),u=void 0;if(33554432&s.flags){var l=te(s.element.componentView);u=As.createComponentView(t,s,l,c)}fe(t,u,s,c),a={renderElement:c,componentView:u,viewContainer:null,template:s.element.template?Ae(t,s):void 0},16777216&s.flags&&(a.viewContainer=je(t,s,a));break;case 2:a=un(t,e,s);break;case 512:case 1024:case 2048:case 256:if(!((a=i[o])||4096&s.flags)){a={instance:Ve(t,s)}}break;case 16:a={instance:Be(t,s)};break;case 16384:if(!(a=i[o])){a={instance:He(t,s)}}if(32768&s.flags){vn(jt(t,s.parent.nodeIndex).componentView,a.instance,a.instance)}break;case 32:case 64:case 128:a={value:void 0};break;case 67108864:case 134217728:a=$e();break;case 8:nn(t,e,s),a=void 0}i[o]=a}En(t,sa.CreateViewNodes),An(t,201326592,268435456,0)}function bn(t){wn(t),As.updateDirectives(t,1),Tn(t,sa.CheckNoChanges),As.updateRenderer(t,1),En(t,sa.CheckNoChanges),t.state&=-97}function _n(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,Ct(t,0,256),wn(t),As.updateDirectives(t,0),Tn(t,sa.CheckAndUpdate),An(t,67108864,536870912,0);var e=Ct(t,256,512);Ye(t,2097152|(e?1048576:0)),As.updateRenderer(t,0),En(t,sa.CheckAndUpdate),An(t,134217728,536870912,0),Ye(t,8388608|((e=Ct(t,512,768))?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97,Ct(t,768,1024)}function xn(t,e,n,r,i,o,s,a,c,u,l,p,h){return 0===n?function(t,e,n,r,i,o,s,a,c,u,l,p){switch(201347067&e.flags){case 1:return function(t,e,n,r,i,o,s,a,c,u,l,p){var h=e.bindings.length,d=!1;return h>0&&ye(t,e,0,n)&&(d=!0),h>1&&ye(t,e,1,r)&&(d=!0),h>2&&ye(t,e,2,i)&&(d=!0),h>3&&ye(t,e,3,o)&&(d=!0),h>4&&ye(t,e,4,s)&&(d=!0),h>5&&ye(t,e,5,a)&&(d=!0),h>6&&ye(t,e,6,c)&&(d=!0),h>7&&ye(t,e,7,u)&&(d=!0),h>8&&ye(t,e,8,l)&&(d=!0),h>9&&ye(t,e,9,p)&&(d=!0),d}(t,e,n,r,i,o,s,a,c,u,l,p);case 2:return function(t,e,n,r,i,o,s,a,c,u,l,p){var h=!1,d=e.bindings,f=d.length;if(f>0&&Vt(t,e,0,n)&&(h=!0),f>1&&Vt(t,e,1,r)&&(h=!0),f>2&&Vt(t,e,2,i)&&(h=!0),f>3&&Vt(t,e,3,o)&&(h=!0),f>4&&Vt(t,e,4,s)&&(h=!0),f>5&&Vt(t,e,5,a)&&(h=!0),f>6&&Vt(t,e,6,c)&&(h=!0),f>7&&Vt(t,e,7,u)&&(h=!0),f>8&&Vt(t,e,8,l)&&(h=!0),f>9&&Vt(t,e,9,p)&&(h=!0),h){var y=e.text.prefix;f>0&&(y+=ln(n,d[0])),f>1&&(y+=ln(r,d[1])),f>2&&(y+=ln(i,d[2])),f>3&&(y+=ln(o,d[3])),f>4&&(y+=ln(s,d[4])),f>5&&(y+=ln(a,d[5])),f>6&&(y+=ln(c,d[6])),f>7&&(y+=ln(u,d[7])),f>8&&(y+=ln(l,d[8])),f>9&&(y+=ln(p,d[9]));var g=Tt(t,e.nodeIndex).renderText;t.renderer.setValue(g,y)}return h}(t,e,n,r,i,o,s,a,c,u,l,p);case 16384:return function(t,e,n,r,i,o,s,a,c,u,l,p){var h=Pt(t,e.nodeIndex),d=h.instance,f=!1,y=void 0,g=e.bindings.length;return g>0&&Ft(t,e,0,n)&&(f=!0,y=qe(t,h,e,0,n,y)),g>1&&Ft(t,e,1,r)&&(f=!0,y=qe(t,h,e,1,r,y)),g>2&&Ft(t,e,2,i)&&(f=!0,y=qe(t,h,e,2,i,y)),g>3&&Ft(t,e,3,o)&&(f=!0,y=qe(t,h,e,3,o,y)),g>4&&Ft(t,e,4,s)&&(f=!0,y=qe(t,h,e,4,s,y)),g>5&&Ft(t,e,5,a)&&(f=!0,y=qe(t,h,e,5,a,y)),g>6&&Ft(t,e,6,c)&&(f=!0,y=qe(t,h,e,6,c,y)),g>7&&Ft(t,e,7,u)&&(f=!0,y=qe(t,h,e,7,u,y)),g>8&&Ft(t,e,8,l)&&(f=!0,y=qe(t,h,e,8,l,y)),g>9&&Ft(t,e,9,p)&&(f=!0,y=qe(t,h,e,9,p,y)),y&&d.ngOnChanges(y),65536&e.flags&&Et(t,256,e.nodeIndex)&&d.ngOnInit(),262144&e.flags&&d.ngDoCheck(),f}(t,e,n,r,i,o,s,a,c,u,l,p);case 32:case 64:case 128:return function(t,e,n,r,i,o,s,a,c,u,l,p){var h=e.bindings,d=!1,f=h.length;if(f>0&&Vt(t,e,0,n)&&(d=!0),f>1&&Vt(t,e,1,r)&&(d=!0),f>2&&Vt(t,e,2,i)&&(d=!0),f>3&&Vt(t,e,3,o)&&(d=!0),f>4&&Vt(t,e,4,s)&&(d=!0),f>5&&Vt(t,e,5,a)&&(d=!0),f>6&&Vt(t,e,6,c)&&(d=!0),f>7&&Vt(t,e,7,u)&&(d=!0),f>8&&Vt(t,e,8,l)&&(d=!0),f>9&&Vt(t,e,9,p)&&(d=!0),d){var y=At(t,e.nodeIndex),g=void 0;switch(201347067&e.flags){case 32:g=new Array(h.length),f>0&&(g[0]=n),f>1&&(g[1]=r),f>2&&(g[2]=i),f>3&&(g[3]=o),f>4&&(g[4]=s),f>5&&(g[5]=a),f>6&&(g[6]=c),f>7&&(g[7]=u),f>8&&(g[8]=l),f>9&&(g[9]=p);break;case 64:g={},f>0&&(g[h[0].name]=n),f>1&&(g[h[1].name]=r),f>2&&(g[h[2].name]=i),f>3&&(g[h[3].name]=o),f>4&&(g[h[4].name]=s),f>5&&(g[h[5].name]=a),f>6&&(g[h[6].name]=c),f>7&&(g[h[7].name]=u),f>8&&(g[h[8].name]=l),f>9&&(g[h[9].name]=p);break;case 128:var v=n;switch(f){case 1:g=v.transform(n);break;case 2:g=v.transform(r);break;case 3:g=v.transform(r,i);break;case 4:g=v.transform(r,i,o);break;case 5:g=v.transform(r,i,o,s);break;case 6:g=v.transform(r,i,o,s,a);break;case 7:g=v.transform(r,i,o,s,a,c);break;case 8:g=v.transform(r,i,o,s,a,c,u);break;case 9:g=v.transform(r,i,o,s,a,c,u,l);break;case 10:g=v.transform(r,i,o,s,a,c,u,l,p)}}y.value=g}return d}(t,e,n,r,i,o,s,a,c,u,l,p);default:throw"unreachable"}}(t,e,r,i,o,s,a,c,u,l,p,h):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,i=0;i<n.length;i++)ye(t,e,i,n[i])&&(r=!0);return r}(t,e,n);case 2:return function(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)Vt(t,e,o,n[o])&&(i=!0);if(i){var s="";for(o=0;o<n.length;o++)s+=ln(n[o],r[o]);s=e.text.prefix+s;var a=Tt(t,e.nodeIndex).renderText;t.renderer.setValue(a,s)}return i}(t,e,n);case 16384:return function(t,e,n){for(var r=Pt(t,e.nodeIndex),i=r.instance,o=!1,s=void 0,a=0;a<n.length;a++)Ft(t,e,a,n[a])&&(o=!0,s=qe(t,r,e,a,n[a],s));return s&&i.ngOnChanges(s),65536&e.flags&&Et(t,256,e.nodeIndex)&&i.ngOnInit(),262144&e.flags&&i.ngDoCheck(),o}(t,e,n);case 32:case 64:case 128:return function(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)Vt(t,e,o,n[o])&&(i=!0);if(i){var s=At(t,e.nodeIndex),a=void 0;switch(201347067&e.flags){case 32:a=n;break;case 64:for(a={},o=0;o<n.length;o++)a[r[o].name]=n[o];break;case 128:var c=n[0],u=n.slice(1);a=c.transform.apply(c,u)}s.value=a}return i}(t,e,n);default:throw"unreachable"}}(t,e,r)}function wn(t){var e=t.def;if(4&e.nodeFlags)for(var n=0;n<e.nodes.length;n++){var r=e.nodes[n];if(4&r.flags){var i=jt(t,n).template._projectedViews;if(i)for(var o=0;o<i.length;o++){var s=i[o];s.state|=32,zt(s,t)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function On(t,e,n,r,i,o,s,a,c,u,l,p,h){return 0===n?function(t,e,n,r,i,o,s,a,c,u,l,p){var h=e.bindings.length;h>0&&Bt(t,e,0,n);h>1&&Bt(t,e,1,r);h>2&&Bt(t,e,2,i);h>3&&Bt(t,e,3,o);h>4&&Bt(t,e,4,s);h>5&&Bt(t,e,5,a);h>6&&Bt(t,e,6,c);h>7&&Bt(t,e,7,u);h>8&&Bt(t,e,8,l);h>9&&Bt(t,e,9,p)}(t,e,r,i,o,s,a,c,u,l,p,h):function(t,e,n){for(var r=0;r<n.length;r++)Bt(t,e,r,n[r])}(t,e,r),!1}function Sn(t,e){if(It(t,e.nodeIndex).dirty)throw kt(As.createDebugContext(t,e.nodeIndex),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!=(1&t.state))}function Cn(t){if(!(128&t.state)){if(Tn(t,sa.Destroy),En(t,sa.Destroy),Ye(t,131072),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();!function(t){if(16&t.state){var e=Wt(t);if(e){var n=e.template._projectedViews;n&&(Ce(n,n.indexOf(t)),As.dirtyParentQueries(t))}}}(t),t.renderer.destroyNode&&function(t){for(var e=t.def.nodes.length,n=0;n<e;n++){var r=t.def.nodes[n];1&r.flags?t.renderer.destroyNode(jt(t,n).renderElement):2&r.flags?t.renderer.destroyNode(Tt(t,n).renderText):(67108864&r.flags||134217728&r.flags)&&It(t,n).destroy()}}(t),Kt(t)&&t.renderer.destroy(),t.state|=128}}function En(t,e){var n=t.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];33554432&i.flags?jn(jt(t,r).componentView,e):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function Tn(t,e){var n=t.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];if(16777216&i.flags)for(var o=jt(t,r).viewContainer._embeddedViews,s=0;s<o.length;s++)jn(o[s],e);else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function jn(t,e){var n=t.state;switch(e){case sa.CheckNoChanges:0==(128&n)&&(12==(12&n)?bn(t):64&n&&Pn(t,sa.CheckNoChangesProjectedViews));break;case sa.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?bn(t):64&n&&Pn(t,e));break;case sa.CheckAndUpdate:0==(128&n)&&(12==(12&n)?_n(t):64&n&&Pn(t,sa.CheckAndUpdateProjectedViews));break;case sa.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?_n(t):64&n&&Pn(t,e));break;case sa.Destroy:Cn(t);break;case sa.CreateViewNodes:mn(t)}}function Pn(t,e){Tn(t,e),En(t,e)}function An(t,e,n,r){if(t.def.nodeFlags&e&&t.def.nodeFlags&n)for(var i=t.def.nodes.length,o=0;o<i;o++){var s=t.def.nodes[o];if(s.flags&e&&s.flags&n)switch(As.setCurrentNode(t,s.nodeIndex),r){case 0:Ze(t,s);break;case 1:Sn(t,s)}s.childFlags&e&&s.childFlags&n||(o+=s.childCount)}}function In(){if(!aa){aa=!0;var t=et()?{setCurrentNode:Yn,createRootView:Rn,createEmbeddedView:Dn,createComponentView:Nn,createNgModuleRef:Ln,overrideProvider:Fn,overrideComponentView:Vn,clearOverrides:Bn,checkAndUpdateView:Wn,checkNoChangesView:Gn,destroyView:qn,createDebugContext:function(t,e){return new ya(t,e)},handleEvent:Kn,updateDirectives:Xn,updateRenderer:$n}:{setCurrentNode:function(){},createRootView:kn,createEmbeddedView:dn,createComponentView:yn,createNgModuleRef:Me,overrideProvider:Is,overrideComponentView:Is,clearOverrides:Is,checkAndUpdateView:_n,checkNoChangesView:bn,destroyView:Cn,createDebugContext:function(t,e){return new ya(t,e)},handleEvent:function(t,e,n,r){return t.def.handleEvent(t,e,n,r)},updateDirectives:function(t,e){return t.def.updateDirectives(0===e?zn:Un,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?zn:Un,t)}};As.setCurrentNode=t.setCurrentNode,As.createRootView=t.createRootView,As.createEmbeddedView=t.createEmbeddedView,As.createComponentView=t.createComponentView,As.createNgModuleRef=t.createNgModuleRef,As.overrideProvider=t.overrideProvider,As.overrideComponentView=t.overrideComponentView,As.clearOverrides=t.clearOverrides,As.checkAndUpdateView=t.checkAndUpdateView,As.checkNoChangesView=t.checkNoChangesView,As.destroyView=t.destroyView,As.resolveDep=We,As.createDebugContext=t.createDebugContext,As.handleEvent=t.handleEvent,As.updateDirectives=t.updateDirectives,As.updateRenderer=t.updateRenderer,As.dirtyParentQueries=Qe}}function kn(t,e,n,r,i,o){return fn(Mn(t,i,i.injector.get(Fo),e,n),r,o)}function Rn(t,e,n,r,i,o){var s=i.injector.get(Fo),a=Mn(t,i,new ga(s),e,n),c=Hn(r);return nr(la.create,fn,null,[a,c,o])}function Mn(t,e,n,r,i){var o=e.injector.get(js),s=e.injector.get(Ri);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:i,sanitizer:o,rendererFactory:n,renderer:n.createRenderer(null,null),errorHandler:s}}function Dn(t,e,n,r){var i=Hn(n);return nr(la.create,dn,null,[t,e,i,r])}function Nn(t,e,n,r){var i=ua.get(e.element.componentProvider.provider.token);return n=i||Hn(n),nr(la.create,yn,null,[t,e,n,r])}function Ln(t,e,n,r){return Me(t,e,n,function(t){var e=function(t){var e=!1,n=!1;if(0===ca.size)return{hasOverrides:e,hasDeprecatedOverrides:n};return t.providers.forEach(function(t){var r=ca.get(t.token);3840&t.flags&&r&&(e=!0,n=n||r.deprecatedBehavior)}),{hasOverrides:e,hasDeprecatedOverrides:n}}(t),n=e.hasOverrides,r=e.hasDeprecatedOverrides;if(!n)return t;return t=t.factory(function(){return Is}),function(t){for(var e=0;e<t.providers.length;e++){var n=t.providers[e];r&&(n.flags|=4096);var i=ca.get(n.token);i&&(n.flags=-3841&n.flags|i.flags,n.deps=Zt(i.deps),n.value=i.value)}}(t),t}(r))}function Fn(t){ca.set(t.token,t)}function Vn(t,e){var n=te(te(Te(e)).nodes[0].element.componentView);ua.set(t,n)}function Bn(){ca.clear(),ua.clear()}function Hn(t){if(0===ca.size)return t;var e=function(t){for(var e=[],n=null,r=0;r<t.nodes.length;r++){var i=t.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&ca.has(i.provider.token)&&(e.push(n.nodeIndex),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(function(){return Is});for(var n=0;n<e.length;n++)!function(t,e){for(var n=e+1;n<t.nodes.length;n++){var r=t.nodes[n];if(1&r.flags)return;if(3840&r.flags){var i=r.provider,o=ca.get(i.token);o&&(r.flags=-3841&r.flags|o.flags,i.deps=Zt(o.deps),i.value=o.value)}}}(t,e[n]);return t}function zn(t,e,n,r,i,o,s,a,c,u,l,p,h){var d=t.def.nodes[e];return xn(t,d,n,r,i,o,s,a,c,u,l,p,h),224&d.flags?At(t,e).value:void 0}function Un(t,e,n,r,i,o,s,a,c,u,l,p,h){var d=t.def.nodes[e];return On(t,d,n,r,i,o,s,a,c,u,l,p,h),224&d.flags?At(t,e).value:void 0}function Wn(t){return nr(la.detectChanges,_n,null,[t])}function Gn(t){return nr(la.checkNoChanges,bn,null,[t])}function qn(t){return nr(la.destroy,Cn,null,[t])}function Yn(t,e){ha=t,da=e}function Kn(t,e,n,r){return Yn(t,e),nr(la.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function Xn(t,e){if(128&t.state)throw Mt(la[pa]);return Yn(t,Jn(t,0)),t.def.updateDirectives(function(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=t.def.nodes[n];return 0===e?Qn(t,s,r,i):Zn(t,s,r,i),16384&s.flags&&Yn(t,Jn(t,n)),224&s.flags?At(t,s.nodeIndex).value:void 0},t)}function $n(t,e){if(128&t.state)throw Mt(la[pa]);return Yn(t,tr(t,0)),t.def.updateRenderer(function(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=t.def.nodes[n];return 0===e?Qn(t,s,r,i):Zn(t,s,r,i),3&s.flags&&Yn(t,tr(t,n)),224&s.flags?At(t,s.nodeIndex).value:void 0},t)}function Qn(t,e,n,r){if(xn.apply(void 0,[t,e,n].concat(r))){var i=1===n?r[0]:r;if(16384&e.flags){for(var o={},s=0;s<e.bindings.length;s++){var a=e.bindings[s],c=i[s];8&a.flags&&(o[function(t){return"ng-reflect-"+(t=function(t){return t.replace(fa,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()})}(t.replace(/[$@]/g,"_")))}(a.nonMinifiedName)]=function(t){try{return null!=t?t.toString().slice(0,30):t}catch(t){return"[ERROR] Exception while trying to serialize the value"}}(c))}var u=e.parent,l=jt(t,u.nodeIndex).renderElement;if(u.element.name)for(var p in o){null!=(c=o[p])?t.renderer.setAttribute(l,p,c):t.renderer.removeAttribute(l,p)}else t.renderer.setValue(l,"bindings="+JSON.stringify(o,null,2))}}}function Zn(t,e,n,r){On.apply(void 0,[t,e,n].concat(r))}function Jn(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function tr(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}function er(t,e,n){for(var r in e.references)n[r]=tn(t,e,e.references[r])}function nr(t,e,n,r){var i=pa,o=ha,s=da;try{pa=t;var a=e.apply(n,r);return ha=o,da=s,pa=i,a}catch(t){if(function(t){return!!_(t)}(t)||!ha)throw t;throw function(t,e){return t instanceof Error||(t=new Error(t.toString())),Rt(t,e),t}(t,rr())}}function rr(){return ha?new ya(ha,da):null}function ir(t){return In(),As.overrideProvider(t)}function or(t,e){return In(),As.overrideComponentView(t,e)}function sr(){return In(),As.clearOverrides()}function ar(t,e,n){return new ma(t,e,n)}function cr(t,e){return{type:7,name:t,definitions:e,options:{}}}function ur(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function lr(t,e){return void 0===e&&(e=null),{type:3,steps:t,options:e}}function pr(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function hr(t){return{type:6,styles:t,offset:null}}function dr(t,e,n){return{type:0,name:t,styles:e,options:n}}function fr(t){return{type:5,steps:t}}function yr(t,e,n){return void 0===n&&(n=null),{type:1,expr:t,animation:e,options:n}}function gr(t,e){return cr(t,e)}function vr(t,e){return ur(t,e)}function mr(t){return lr(t)}function br(t){return pr(t)}function _r(t){return hr(t)}function xr(t,e){return dr(t,e)}function wr(t){return fr(t)}function Or(t,e){return yr(t,e)}n.d(e,"createPlatform",function(){return nt}),n.d(e,"assertPlatform",function(){return it}),n.d(e,"destroyPlatform",function(){return ot}),n.d(e,"getPlatform",function(){return st}),n.d(e,"PlatformRef",function(){return ko}),n.d(e,"ApplicationRef",function(){return Ro}),n.d(e,"enableProdMode",function(){return tt}),n.d(e,"isDevMode",function(){return et}),n.d(e,"createPlatformFactory",function(){return rt}),n.d(e,"NgProbeToken",function(){return Io}),n.d(e,"APP_ID",function(){return Xi}),n.d(e,"PACKAGE_ROOT_URL",function(){return to}),n.d(e,"PLATFORM_INITIALIZER",function(){return Qi}),n.d(e,"PLATFORM_ID",function(){return Zi}),n.d(e,"APP_BOOTSTRAP_LISTENER",function(){return Ji}),n.d(e,"APP_INITIALIZER",function(){return Yi}),n.d(e,"ApplicationInitStatus",function(){return Ki}),n.d(e,"DebugElement",function(){return es}),n.d(e,"DebugNode",function(){return ts}),n.d(e,"asNativeElements",function(){return dt}),n.d(e,"getDebugNode",function(){return gt}),n.d(e,"Testability",function(){return Co}),n.d(e,"TestabilityRegistry",function(){return Eo}),n.d(e,"setTestabilityGetter",function(){return J}),n.d(e,"TRANSLATIONS",function(){return Os}),n.d(e,"TRANSLATIONS_FORMAT",function(){return Ss}),n.d(e,"LOCALE_ID",function(){return ws}),n.d(e,"MissingTranslationStrategy",function(){return Cs}),n.d(e,"ApplicationModule",function(){return Es}),n.d(e,"wtfCreateScope",function(){return vo}),n.d(e,"wtfLeave",function(){return mo}),n.d(e,"wtfStartTimeRange",function(){return bo}),n.d(e,"wtfEndTimeRange",function(){return _o}),n.d(e,"Type",function(){return Ni}),n.d(e,"EventEmitter",function(){return xo}),n.d(e,"ErrorHandler",function(){return Ri}),n.d(e,"Sanitizer",function(){return js}),n.d(e,"SecurityContext",function(){return Ts}),n.d(e,"ANALYZE_FOR_ENTRY_COMPONENTS",function(){return Rr}),n.d(e,"Attribute",function(){return Mr}),n.d(e,"ContentChild",function(){return Lr}),n.d(e,"ContentChildren",function(){return Nr}),n.d(e,"Query",function(){return Dr}),n.d(e,"ViewChild",function(){return Vr}),n.d(e,"ViewChildren",function(){return Fr}),n.d(e,"Component",function(){return Ur}),n.d(e,"Directive",function(){return zr}),n.d(e,"HostBinding",function(){return Yr}),n.d(e,"HostListener",function(){return Kr}),n.d(e,"Input",function(){return Gr}),n.d(e,"Output",function(){return qr}),n.d(e,"Pipe",function(){return Wr}),n.d(e,"CUSTOM_ELEMENTS_SCHEMA",function(){return Xr}),n.d(e,"NO_ERRORS_SCHEMA",function(){return $r}),n.d(e,"NgModule",function(){return Qr}),n.d(e,"ViewEncapsulation",function(){return Zr}),n.d(e,"Version",function(){return ni}),n.d(e,"VERSION",function(){return ri}),n.d(e,"forwardRef",function(){return h}),n.d(e,"resolveForwardRef",function(){return d}),n.d(e,"Injector",function(){return vi}),n.d(e,"ReflectiveInjector",function(){return Gi}),n.d(e,"ResolvedReflectiveFactory",function(){return Ui}),n.d(e,"ReflectiveKey",function(){return Mi}),n.d(e,"InjectionToken",function(){return Pr}),n.d(e,"Inject",function(){return ii}),n.d(e,"Optional",function(){return oi}),n.d(e,"Injectable",function(){return si}),n.d(e,"Self",function(){return ai}),n.d(e,"SkipSelf",function(){return ci}),n.d(e,"Host",function(){return ui}),n.d(e,"NgZone",function(){return wo}),n.d(e,"RenderComponentType",function(){return Mo}),n.d(e,"Renderer",function(){return No}),n.d(e,"Renderer2",function(){return Bo}),n.d(e,"RendererFactory2",function(){return Fo}),n.d(e,"RendererStyleFlags2",function(){return Vo}),n.d(e,"RootRenderer",function(){return Lo}),n.d(e,"COMPILER_OPTIONS",function(){return io}),n.d(e,"Compiler",function(){return ro}),n.d(e,"CompilerFactory",function(){return oo}),n.d(e,"ModuleWithComponentFactories",function(){return no}),n.d(e,"ComponentFactory",function(){return ao}),n.d(e,"ComponentRef",function(){return so}),n.d(e,"ComponentFactoryResolver",function(){return lo}),n.d(e,"ElementRef",function(){return Ho}),n.d(e,"NgModuleFactory",function(){return yo}),n.d(e,"NgModuleRef",function(){return fo}),n.d(e,"NgModuleFactoryLoader",function(){return zo}),n.d(e,"getModuleFactory",function(){return lt}),n.d(e,"QueryList",function(){return Wo}),n.d(e,"SystemJsNgModuleLoader",function(){return Yo}),n.d(e,"SystemJsNgModuleLoaderConfig",function(){return Go}),n.d(e,"TemplateRef",function(){return Ko}),n.d(e,"ViewContainerRef",function(){return Xo}),n.d(e,"EmbeddedViewRef",function(){return Zo}),n.d(e,"ViewRef",function(){return Qo}),n.d(e,"ChangeDetectionStrategy",function(){return Br}),n.d(e,"ChangeDetectorRef",function(){return $o}),n.d(e,"DefaultIterableDiffer",function(){return cs}),n.d(e,"IterableDiffers",function(){return ys}),n.d(e,"KeyValueDiffers",function(){return gs}),n.d(e,"SimpleChange",function(){return os}),n.d(e,"WrappedValue",function(){return rs}),n.d(e,"platformCore",function(){return xs}),n.d(e,"\u0275ALLOW_MULTIPLE_PLATFORMS",function(){return Ao}),n.d(e,"\u0275APP_ID_RANDOM_PROVIDER",function(){return $i}),n.d(e,"\u0275ValueUnwrapper",function(){return is}),n.d(e,"\u0275devModeEqual",function(){return mt}),n.d(e,"\u0275isListLikeIterable",function(){return bt}),n.d(e,"\u0275ChangeDetectorStatus",function(){return Hr}),n.d(e,"\u0275isDefaultChangeDetectionStrategy",function(){return a}),n.d(e,"\u0275Console",function(){return eo}),n.d(e,"\u0275ComponentFactory",function(){return ao}),n.d(e,"\u0275CodegenComponentFactoryResolver",function(){return po}),n.d(e,"\u0275ReflectionCapabilities",function(){return Fi}),n.d(e,"\u0275RenderDebugInfo",function(){return Do}),n.d(e,"\u0275global",function(){return hi}),n.d(e,"\u0275looseIdentical",function(){return l}),n.d(e,"\u0275stringify",function(){return p}),n.d(e,"\u0275makeDecorator",function(){return r}),n.d(e,"\u0275isObservable",function(){return F}),n.d(e,"\u0275isPromise",function(){return L}),n.d(e,"\u0275clearOverrides",function(){return sr}),n.d(e,"\u0275overrideComponentView",function(){return or}),n.d(e,"\u0275overrideProvider",function(){return ir}),n.d(e,"\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR",function(){return oa}),n.d(e,"\u0275registerModuleFactory",function(){return ut}),n.d(e,"\u0275EMPTY_ARRAY",function(){return Fs}),n.d(e,"\u0275EMPTY_MAP",function(){return Vs}),n.d(e,"\u0275and",function(){return pe}),n.d(e,"\u0275ccf",function(){return Ee}),n.d(e,"\u0275cmf",function(){return ar}),n.d(e,"\u0275crt",function(){return Lt}),n.d(e,"\u0275did",function(){return De}),n.d(e,"\u0275eld",function(){return he}),n.d(e,"\u0275elementEventFullName",function(){return Yt}),n.d(e,"\u0275getComponentViewDefinitionFactory",function(){return Te}),n.d(e,"\u0275inlineInterpolate",function(){return ue}),n.d(e,"\u0275interpolate",function(){return ce}),n.d(e,"\u0275mod",function(){return ve}),n.d(e,"\u0275mpd",function(){return ge}),n.d(e,"\u0275ncd",function(){return en}),n.d(e,"\u0275nov",function(){return ke}),n.d(e,"\u0275pid",function(){return Ne}),n.d(e,"\u0275prd",function(){return Le}),n.d(e,"\u0275pad",function(){return on}),n.d(e,"\u0275pod",function(){return sn}),n.d(e,"\u0275ppd",function(){return rn}),n.d(e,"\u0275qud",function(){return Xe}),n.d(e,"\u0275ted",function(){return cn}),n.d(e,"\u0275unv",function(){return Nt}),n.d(e,"\u0275vid",function(){return pn}),n.d(e,"AUTO_STYLE",function(){return ba}),n.d(e,"trigger",function(){return gr}),n.d(e,"animate",function(){return vr}),n.d(e,"group",function(){return mr}),n.d(e,"sequence",function(){return br}),n.d(e,"style",function(){return _r}),n.d(e,"state",function(){return xr}),n.d(e,"keyframes",function(){return wr}),n.d(e,"transition",function(){return Or}),n.d(e,"\u0275x",function(){return ur}),n.d(e,"\u0275y",function(){return lr}),n.d(e,"\u0275bc",function(){return fr}),n.d(e,"\u0275z",function(){return pr}),n.d(e,"\u0275bb",function(){return dr}),n.d(e,"\u0275ba",function(){return hr}),n.d(e,"\u0275bd",function(){return yr}),n.d(e,"\u0275w",function(){return cr}),n.d(e,"\u0275k",function(){return wt}),n.d(e,"\u0275l",function(){return Ot}),n.d(e,"\u0275m",function(){return St}),n.d(e,"\u0275f",function(){return V}),n.d(e,"\u0275g",function(){return bs}),n.d(e,"\u0275h",function(){return _s}),n.d(e,"\u0275i",function(){return ss}),n.d(e,"\u0275j",function(){return hs}),n.d(e,"\u0275b",function(){return Pi}),n.d(e,"\u0275c",function(){return qi}),n.d(e,"\u0275d",function(){return Bi}),n.d(e,"\u0275e",function(){return k}),n.d(e,"\u0275n",function(){return go}),n.d(e,"\u0275p",function(){return W}),n.d(e,"\u0275o",function(){return U}),n.d(e,"\u0275s",function(){return Y}),n.d(e,"\u0275q",function(){return G}),n.d(e,"\u0275r",function(){return q}),n.d(e,"\u0275a",function(){return o}),n.d(e,"\u0275t",function(){return Fe}),n.d(e,"\u0275u",function(){return Ps});var Sr=n("6Xbx"),Cr=n("AP4T"),Er=n("2kLc"),Tr=n("URbD"),jr=n("TO51"),Pr=function(){function t(t){this._desc=t,this.ngMetadataName="InjectionToken"}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),Ar="__annotations__",Ir="__paramaters__",kr="__prop__metadata__",Rr=new Pr("AnalyzeForEntryComponents"),Mr=o("Attribute",function(t){return{attributeName:t}}),Dr=function(){return function(){}}(),Nr=s("ContentChildren",function(t,e){return void 0===e&&(e={}),Object(Sr.a)({selector:t,first:!1,isViewQuery:!1,descendants:!1},e)},Dr),Lr=s("ContentChild",function(t,e){return void 0===e&&(e={}),Object(Sr.a)({selector:t,first:!0,isViewQuery:!1,descendants:!0},e)},Dr),Fr=s("ViewChildren",function(t,e){return void 0===e&&(e={}),Object(Sr.a)({selector:t,first:!1,isViewQuery:!0,descendants:!0},e)},Dr),Vr=s("ViewChild",function(t,e){return Object(Sr.a)({selector:t,first:!0,isViewQuery:!0,descendants:!0},e)},Dr),Br={OnPush:0,Default:1};Br[Br.OnPush]="OnPush",Br[Br.Default]="Default";var Hr={CheckOnce:0,Checked:1,CheckAlways:2,Detached:3,Errored:4,Destroyed:5};Hr[Hr.CheckOnce]="CheckOnce",Hr[Hr.Checked]="Checked",Hr[Hr.CheckAlways]="CheckAlways",Hr[Hr.Detached]="Detached",Hr[Hr.Errored]="Errored",Hr[Hr.Destroyed]="Destroyed";var zr=r("Directive",function(t){return void 0===t&&(t={}),t}),Ur=r("Component",function(t){return void 0===t&&(t={}),Object(Sr.a)({changeDetection:Br.Default},t)},zr),Wr=r("Pipe",function(t){return Object(Sr.a)({pure:!0},t)}),Gr=s("Input",function(t){return{bindingPropertyName:t}}),qr=s("Output",function(t){return{bindingPropertyName:t}}),Yr=s("HostBinding",function(t){return{hostPropertyName:t}}),Kr=s("HostListener",function(t,e){return{eventName:t,args:e}}),Xr={name:"custom-elements"},$r={name:"no-errors-schema"},Qr=r("NgModule",function(t){return t}),Zr={Emulated:0,Native:1,None:2};Zr[Zr.Emulated]="Emulated",Zr[Zr.Native]="Native",Zr[Zr.None]="None";var Jr,ti,ei,ni=function(){return function(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}(),ri=new ni("5.1.0"),ii=o("Inject",function(t){return{token:t}}),oi=o("Optional"),si=r("Injectable"),ai=o("Self"),ci=o("SkipSelf"),ui=o("Host"),li="undefined"!=typeof window&&window,pi="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,hi=li||"undefined"!=typeof t&&t||pi,di=null,fi=new Object,yi=fi,gi=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=fi),e===fi)throw new Error("NullInjectorError: No provider for "+p(t)+"!");return e},t}(),vi=function(){function t(){}return t.create=function(t,e){return new Pi(t,e)},t.THROW_IF_NOT_FOUND=fi,t.NULL=new gi,t}(),mi=function(t){return t},bi=[],_i=mi,xi=function(){return Array.prototype.slice.call(arguments)},wi={},Oi=wi,Si=function(t){for(var e in t)if(t[e]===wi)return e;throw Error("!prop")}({provide:String,useValue:Oi}),Ci="ngTempTokenPath",Ei=vi.NULL,Ti=/\n/gm,ji="\u0275",Pi=function(){function t(t,e){void 0===e&&(e=Ei),this.parent=e;var n=this._records=new Map;n.set(vi,{token:vi,fn:mi,deps:bi,value:this,useNew:!1}),g(n,t)}return t.prototype.get=function(t,e){var n=this._records.get(t);try{return v(t,n,this._records,this.parent,e)}catch(t){var r=t[Ci];throw t.message=m("\n"+t.message,r),t.ngTokenPath=r,t[Ci]=null,t}},t.prototype.toString=function(){var t=[];return this._records.forEach(function(e,n){return t.push(p(n))}),"StaticInjector["+t.join(", ")+"]"},t}(),Ai="ngDebugContext",Ii="ngOriginalError",ki="ngErrorLogger",Ri=function(){function t(){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t[ki]||function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,e)}}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)},t.prototype._findContext=function(t){return t?_(t)?_(t):this._findContext(x(t)):null},t.prototype._findOriginalError=function(t){for(var e=x(t);e&&x(e);)e=x(e);return e},t}(),Mi=function(){function t(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!");this.displayName=p(this.token)}return t.get=function(t){return Di.get(d(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return Di.numberOfKeys},enumerable:!0,configurable:!0}),t}(),Di=new(function(){function t(){this._allKeys=new Map}return t.prototype.get=function(t){if(t instanceof Mi)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var e=new Mi(t,Mi.numberOfKeys);return this._allKeys.set(t,e),e},Object.defineProperty(t.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),t}()),Ni=Function,Li=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,Fi=function(){function t(t){this._reflect=t||hi.Reflect}return t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,[void 0].concat(e)))}},t.prototype._zipTypesAndAnnotations=function(t,e){var n;n="undefined"==typeof t?new Array(e.length):new Array(t.length);for(var r=0;r<n.length;r++)"undefined"==typeof t?n[r]=[]:t[r]!=Object?n[r]=[t[r]]:n[r]=[],e&&null!=e[r]&&(n[r]=n[r].concat(e[r]));return n},t.prototype._ownParameters=function(t,e){if(Li.exec(t.toString()))return null;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;var n=t.ctorParameters;if(n&&n!==e.ctorParameters){var r="function"==typeof n?n():n,i=r.map(function(t){return t&&t.type}),o=r.map(function(t){return t&&j(t.decorators)});return this._zipTypesAndAnnotations(i,o)}var s=t.hasOwnProperty(Ir)&&t[Ir],a=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return a||s?this._zipTypesAndAnnotations(a,s):new Array(t.length).fill(void 0)},t.prototype.parameters=function(t){if(!T(t))return[];var e=P(t),n=this._ownParameters(t,e);return n||e===Object||(n=this.parameters(e)),n||[]},t.prototype._ownAnnotations=function(t,e){if(t.annotations&&t.annotations!==e.annotations){var n=t.annotations;return"function"==typeof n&&n.annotations&&(n=n.annotations),n}return t.decorators&&t.decorators!==e.decorators?j(t.decorators):t.hasOwnProperty(Ar)?t[Ar]:null},t.prototype.annotations=function(t){if(!T(t))return[];var e=P(t),n=this._ownAnnotations(t,e)||[];return(e!==Object?this.annotations(e):[]).concat(n)},t.prototype._ownPropMetadata=function(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){var n=t.propMetadata;return"function"==typeof n&&n.propMetadata&&(n=n.propMetadata),n}if(t.propDecorators&&t.propDecorators!==e.propDecorators){var r=t.propDecorators,i={};return Object.keys(r).forEach(function(t){i[t]=j(r[t])}),i}return t.hasOwnProperty(kr)?t[kr]:null},t.prototype.propMetadata=function(t){if(!T(t))return{};var e=P(t),n={};if(e!==Object){var r=this.propMetadata(e);Object.keys(r).forEach(function(t){n[t]=r[t]})}var i=this._ownPropMetadata(t,e);return i&&Object.keys(i).forEach(function(t){var e=[];n.hasOwnProperty(t)&&e.push.apply(e,n[t]),e.push.apply(e,i[t]),n[t]=e}),n},t.prototype.hasLifecycleHook=function(t,e){return t instanceof Ni&&e in t.prototype},t.prototype.getter=function(t){return new Function("o","return o."+t+";")},t.prototype.setter=function(t){return new Function("o","v","return o."+t+" = v;")},t.prototype.method=function(t){var e="if (!o."+t+") throw new Error('\""+t+"\" is undefined');\n return o."+t+".apply(o, args);";return new Function("o","args",e)},t.prototype.importUri=function(t){return"object"==typeof t&&t.filePath?t.filePath:"./"+p(t)},t.prototype.resourceUri=function(t){return"./"+p(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return r},t.prototype.resolveEnum=function(t,e){return t[e]},t}(),Vi=new(function(){function t(t){this.reflectionCapabilities=t}return t.prototype.updateCapabilities=function(t){this.reflectionCapabilities=t},t.prototype.factory=function(t){return this.reflectionCapabilities.factory(t)},t.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},t.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},t.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},t.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},t.prototype.getter=function(t){return this.reflectionCapabilities.getter(t)},t.prototype.setter=function(t){return this.reflectionCapabilities.setter(t)},t.prototype.method=function(t){return this.reflectionCapabilities.method(t)},t.prototype.importUri=function(t){return this.reflectionCapabilities.importUri(t)},t.prototype.resourceUri=function(t){return this.reflectionCapabilities.resourceUri(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return this.reflectionCapabilities.resolveIdentifier(t,e,n,r)},t.prototype.resolveEnum=function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)},t}())(new Fi),Bi=function(){function t(t,e,n){this.key=t,this.optional=e,this.visibility=n}return t.fromKey=function(e){return new t(e,!1,null)},t}(),Hi=[],zi=function(){function t(t,e,n){this.key=t,this.resolvedFactories=e,this.multiProvider=n}return Object.defineProperty(t.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0}),t}(),Ui=function(){return function(t,e){this.factory=t,this.dependencies=e}}(),Wi=new Object,Gi=function(){function t(){}return t.resolve=function(t){return k(t)},t.resolveAndCreate=function(e,n){var r=t.resolve(e);return t.fromResolvedProviders(r,n)},t.fromResolvedProviders=function(t,e){return new qi(t,e)},t}(),qi=function(){function t(t,e){this._constructionCounter=0,this._providers=t,this.parent=e||null;var n=t.length;this.keyIds=new Array(n),this.objs=new Array(n);for(var r=0;r<n;r++)this.keyIds[r]=t[r].key.id,this.objs[r]=Wi}return t.prototype.get=function(t,e){return void 0===e&&(e=yi),this._getByKey(Mi.get(t),null,e)},t.prototype.resolveAndCreateChild=function(t){var e=Gi.resolve(t);return this.createChildFromResolved(e)},t.prototype.createChildFromResolved=function(e){var n=new t(e);return n.parent=this,n},t.prototype.resolveAndInstantiate=function(t){return this.instantiateResolved(Gi.resolve([t])[0])},t.prototype.instantiateResolved=function(t){return this._instantiateProvider(t)},t.prototype.getProviderAtIndex=function(t){if(t<0||t>=this._providers.length)throw function(t){return Error("Index "+t+" is out-of-bounds.")}(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function(t,e){return O(t,e,function(t){return"Cannot instantiate cyclic dependency!"+w(t)})}(this,t.key);return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),n=0;n<t.resolvedFactories.length;++n)e[n]=this._instantiate(t,t.resolvedFactories[n]);return e}return this._instantiate(t,t.resolvedFactories[0])},t.prototype._instantiate=function(t,e){var n,r=this,i=e.factory;try{n=e.dependencies.map(function(t){return r._getByReflectiveDependency(t)})}catch(e){throw e.addKey&&e.addKey(this,t.key),e}var o;try{o=i.apply(void 0,n)}catch(e){throw function(t,e,n,r){return O(t,r,function(t){var n=p(t[0].token);return e.message+": Error during instantiation of "+n+"!"+w(t)+"."},e)}(this,e,e.stack,t.key)}return o},t.prototype._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:yi)},t.prototype._getByKey=function(e,n,r){return e===t.INJECTOR_KEY?this:n instanceof ai?this._getByKeySelf(e,r):this._getByKeyDefault(e,r,n)},t.prototype._getObjByKeyId=function(t){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===Wi&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return Wi},t.prototype._throwOrNull=function(t,e){if(e!==yi)return e;throw function(t,e){return O(t,e,function(t){return"No provider for "+p(t[0].token)+"!"+w(t)})}(this,t)},t.prototype._getByKeySelf=function(t,e){var n=this._getObjByKeyId(t.id);return n!==Wi?n:this._throwOrNull(t,e)},t.prototype._getByKeyDefault=function(e,n,r){var i;for(i=r instanceof ci?this.parent:this;i instanceof t;){var o=i,s=o._getObjByKeyId(e.id);if(s!==Wi)return s;i=o.parent}return null!==i?i.get(e.token,n):this._throwOrNull(e,n)},Object.defineProperty(t.prototype,"displayName",{get:function(){return"ReflectiveInjector(providers: ["+function(t,e){for(var n=new Array(t._providers.length),r=0;r<t._providers.length;++r)n[r]=e(t.getProviderAtIndex(r));return n}(this,function(t){return' "'+t.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.displayName},t.INJECTOR_KEY=Mi.get(vi),t}(),Yi=new Pr("Application Initializer"),Ki=function(){function t(t){var e=this;this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return t.prototype.runInitializers=function(){var t=this;if(!this.initialized){var e=[],n=function(){t.done=!0,t.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();L(i)&&e.push(i)}Promise.all(e).then(function(){n()}).catch(function(e){t.reject(e)}),0===e.length&&n(),this.initialized=!0}},t.decorators=[{type:si}],t.ctorParameters=function(){return[{type:Array,decorators:[{type:ii,args:[Yi]},{type:oi}]}]},t}(),Xi=new Pr("AppId"),$i={provide:Xi,useFactory:V,deps:[]},Qi=new Pr("Platform Initializer"),Zi=new Pr("Platform ID"),Ji=new Pr("appBootstrapListener"),to=new Pr("Application Packages Root URL"),eo=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t.decorators=[{type:si}],t.ctorParameters=function(){return[]},t}(),no=function(){return function(t,e){this.ngModuleFactory=t,this.componentFactories=e}}(),ro=function(){function t(){}return t.prototype.compileModuleSync=function(t){throw H()},t.prototype.compileModuleAsync=function(t){throw H()},t.prototype.compileModuleAndAllComponentsSync=function(t){throw H()},t.prototype.compileModuleAndAllComponentsAsync=function(t){throw H()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t.decorators=[{type:si}],t.ctorParameters=function(){return[]},t}(),io=new Pr("compilerOptions"),oo=function(){return function(){}}(),so=function(){return function(){}}(),ao=function(){return function(){}}(),co="ngComponent",uo=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw z(t)},t}(),lo=function(){function t(){}return t.NULL=new uo,t}(),po=function(){function t(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(var r=0;r<t.length;r++){var i=t[r];this._factories.set(i.componentType,i)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t);if(!e&&this._parent&&(e=this._parent.resolveComponentFactory(t)),!e)throw z(t);return new ho(e,this._ngModule)},t}(),ho=function(t){function e(e,n){var r=t.call(this)||this;return r.factory=e,r.ngModule=n,r}return Object(Sr.b)(e,t),Object.defineProperty(e.prototype,"selector",{get:function(){return this.factory.selector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this.factory.componentType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngContentSelectors",{get:function(){return this.factory.ngContentSelectors},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputs",{get:function(){return this.factory.inputs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return this.factory.outputs},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)},e}(ao),fo=function(){return function(){}}(),yo=function(){return function(){}}(),go=U(),vo=go?W:function(t,e){return K},mo=go?G:function(t,e){return e},bo=go?q:function(t,e){return null},_o=go?Y:function(t){return null},xo=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return Object(Sr.b)(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var i,o=function(t){return null},s=function(){return null};return e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()})),t.prototype.subscribe.call(this,i,o,s)},e}(jr.a),wo=function(){function t(t){var e=t.enableLongStackTrace,n=void 0!==e&&e;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xo(!1),this.onMicrotaskEmpty=new xo(!1),this.onStable=new xo(!1),this.onError=new xo(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),function(t){t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,n,r,i,o,s){try{return Q(t),e.invokeTask(r,i,o,s)}finally{Z(t)}},onInvoke:function(e,n,r,i,o,s,a){try{return Q(t),e.invoke(r,i,o,s,a)}finally{Z(t)}},onHasTask:function(e,n,r,i){e.hasTask(r,i),n===r&&("microTask"==i.change?(t.hasPendingMicrotasks=i.microTask,$(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,n,r,i){return e.handleError(r,i),t.runOutsideAngular(function(){return t.onError.emit(i)}),!1}})}(this)}return t.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t,e,n){return this._inner.run(t,e,n)},t.prototype.runTask=function(t,e,n,r){var i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,t,Oo,X,X);try{return i.runTask(o,e,n)}finally{i.cancelTask(o)}},t.prototype.runGuarded=function(t,e,n){return this._inner.runGuarded(t,e,n)},t.prototype.runOutsideAngular=function(t){return this._outer.run(t)},t}(),Oo={},So=function(){function t(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xo,this.onMicrotaskEmpty=new xo,this.onStable=new xo,this.onError=new xo}return t.prototype.run=function(t){return t()},t.prototype.runGuarded=function(t){return t()},t.prototype.runOutsideAngular=function(t){return t()},t.prototype.runTask=function(t){return t()},t}(),Co=function(){function t(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){wo.assertNotInAngularZone(),u(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;this.isStable()?u(function(){for(;0!==t._callbacks.length;)t._callbacks.pop()(t._didWork);t._didWork=!1}):this._didWork=!0},t.prototype.whenStable=function(t){this._callbacks.push(t),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t.decorators=[{type:si}],t.ctorParameters=function(){return[{type:wo}]},t}(),Eo=function(){function t(){this._applications=new Map,To.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),To.findTestabilityInTree(this,t,e)},t.decorators=[{type:si}],t.ctorParameters=function(){return[]},t}(),To=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),jo=!0,Po=!1,Ao=new Pr("AllowMultipleToken"),Io=function(){return function(t,e){this.name=t,this.token=e}}(),ko=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n=this,r=function(t){return"noop"===t?new So:("zone.js"===t?void 0:t)||new wo({enableLongStackTrace:et()})}(e?e.ngZone:void 0);return r.run(function(){var e=vi.create([{provide:wo,useValue:r}],n.injector),i=t.create(e),o=i.injector.get(Ri,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(function(){return ct(n._modules,i)}),r.runOutsideAngular(function(){return r.onError.subscribe({next:function(t){o.handleError(t)}})}),function(t,e,n){try{var r=n();return L(r)?r.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):r}catch(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}}(o,r,function(){var t=i.injector.get(Ki);return t.runInitializers(),t.donePromise.then(function(){return n._moduleDoBootstrap(i),i})})})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.injector.get(oo),i=at({},e);return r.createCompiler([i]).compileModuleAsync(t).then(function(t){return n.bootstrapModuleFactory(t,i)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Ro);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+p(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t.decorators=[{type:si}],t.ctorParameters=function(){return[{type:vi}]},t}(),Ro=function(){function t(t,e,n,r,i,o){var s=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=et(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var a=new Cr.Observable(function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){t.next(s._stable),t.complete()})}),c=new Cr.Observable(function(t){var e;s._zone.runOutsideAngular(function(){e=s._zone.onStable.subscribe(function(){wo.assertNotInAngularZone(),u(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){wo.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(Er.a)(a,Tr.a.call(c))}return t.prototype.bootstrap=function(t,e){var n=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.");var r;r=t instanceof ao?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(r.componentType);var i=r instanceof ho?null:this._injector.get(fo),o=e||r.selector,s=r.create(vi.NULL,[],o,i);s.onDestroy(function(){n._unloadComponent(s)});var a=s.injector.get(Co,null);return a&&s.injector.get(Eo).registerApplication(s.location.nativeElement,a),this._loadComponent(s),et()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s},t.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,mo(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;ct(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t);this._injector.get(Ji,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),ct(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=vo("ApplicationRef#tick()"),t.decorators=[{type:si}],t.ctorParameters=function(){return[{type:wo},{type:eo},{type:vi},{type:Ri},{type:lo},{type:Ki}]},t}(),Mo=function(){return function(t,e,n,r,i,o){this.id=t,this.templateUrl=e,this.slotCount=n,this.encapsulation=r,this.styles=i,this.animations=o}}(),Do=function(){return function(){}}(),No=function(){return function(){}}(),Lo=(new Pr("Renderer2Interceptor"),function(){return function(){}}()),Fo=function(){return function(){}}(),Vo={Important:1,DashCase:2};Vo[Vo.Important]="Important",Vo[Vo.DashCase]="DashCase";var Bo=function(){return function(){}}(),Ho=function(){return function(t){this.nativeElement=t}}(),zo=function(){return function(){}}(),Uo=new Map,Wo=function(){function t(){this.dirty=!0,this._results=[],this.changes=new xo}return Object.defineProperty(t.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[c()]=function(){return this._results[c()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=pt(t),this.dirty=!1},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),Go=function(){return function(){}}(),qo={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Yo=function(){function t(t,e){this._compiler=t,this._config=e||qo}return t.prototype.load=function(t){return this._compiler instanceof ro?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=t.split("#"),i=r[0],o=r[1];return void 0===o&&(o="default"),n("YuZA")(i).then(function(t){return t[o]}).then(function(t){return ht(t,i,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split("#"),r=e[0],i=e[1],o="NgFactory";return void 0===i&&(i="default",o=""),n("YuZA")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[i+o]}).then(function(t){return ht(t,r,i)})},t.decorators=[{type:si}],t.ctorParameters=function(){return[{type:ro},{type:Go,decorators:[{type:oi}]}]},t}(),Ko=function(){return function(){}}(),Xo=function(){return function(){}}(),$o=function(){return function(){}}(),Qo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Sr.b)(e,t),e}($o),Zo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Sr.b)(e,t),e}(Qo),Jo=function(){return function(t,e){this.name=t,this.callback=e}}(),ts=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof es?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),es=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return Object(Sr.b)(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n=this,r=this.childNodes.indexOf(t);-1!==r&&((i=this.childNodes).splice.apply(i,[r+1,0].concat(e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=n}));var i},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return ft(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return yt(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(ts),ns=new Map,rs=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t}(),is=function(){function t(){this.hasWrappedValue=!1}return t.prototype.unwrap=function(t){return t instanceof rs?(this.hasWrappedValue=!0,t.wrapped):t},t.prototype.reset=function(){this.hasWrappedValue=!1},t}(),os=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}(),ss=function(){function t(){}return t.prototype.supports=function(t){return bt(t)},t.prototype.create=function(t){return new cs(t)},t}(),as=function(t,e){return e},cs=function(){function t(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||as}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex<xt(n,r,i)?e:n,s=xt(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);var c=s-r,u=a-r;if(c!=u){for(var l=0;l<c;l++){var p=l<i.length?i[l]:i[l]=0,h=p+l;u<=h&&h<c&&(i[l]=p+1)}i[o.previousIndex]=u-c}}s!==a&&t(o,s,a)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(null==t&&(t=[]),!bt(t))throw new Error("Error trying to diff '"+p(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,r,i,o=this._itHead,s=!1;if(Array.isArray(t)){this.length=t.length;for(var a=0;a<this.length;a++)r=t[a],i=this._trackByFn(a,r),null!==o&&l(o.trackById,i)?(s&&(o=this._verifyReinsertion(o,r,i,a)),l(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,a),s=!0),o=o._next}else n=0,function(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var r=t[c()](),i=void 0;!(i=r.next()).done;)e(i.value)}(t,function(t){i=e._trackByFn(n,t),null!==o&&l(o.trackById,i)?(s&&(o=e._verifyReinsertion(o,t,i,n)),l(o.item,t)||e._addIdentityChange(o,t)):(o=e._mismatch(o,t,i,n),s=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,n,r){var i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(l(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(l(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new us(e,n),i,r),t},t.prototype._verifyReinsertion=function(t,e,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._moveAfter=function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._addAfter=function(t,e,n){return this._insertAfter(t,e,n),null===this._additionsTail?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,n){var r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new ps),this._linkedRecords.put(t),t.currentIndex=n,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(null===this._movesTail?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ps),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,e){return t.item=e,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t},t}(),us=function(){return function(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}(),ls=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&l(n.trackById,t))return n;return null},t.prototype.remove=function(t){var e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head},t}(),ps=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,n=this.map.get(e);n||(n=new ls,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){var n=t,r=this.map.get(n);return r?r.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t}(),hs=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||_t(t)},t.prototype.create=function(){return new ds},t}(),ds=function(){function t(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||_t(t)))throw new Error("Error trying to diff '"+p(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,r){if(n&&n.key===r)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var i=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new fs(t);return this._records.set(t,o),o.currentValue=e,this._addToAdditions(o),o},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},t.prototype._maybeAddToChanges=function(t,e){l(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(n){return e(t[n],n)})},t}(),fs=function(){return function(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}(),ys=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var r=n.factories.slice();return e=e.concat(r),new t(e)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ci,new oi]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(null!=e)return e;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+function(t){return t.name||typeof t}(t)+"'")},t}(),gs=function(){function t(t){this.factories=t}return t.create=function(e,n){if(n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ci,new oi]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(e)return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t}(),vs=[new hs],ms=[new ss],bs=new ys(ms),_s=new gs(vs),xs=rt(null,"core",[{provide:Zi,useValue:"unknown"},{provide:ko,deps:[vi]},{provide:Eo,deps:[]},{provide:eo,deps:[]}]),ws=new Pr("LocaleId"),Os=new Pr("Translations"),Ss=new Pr("TranslationsFormat"),Cs={Error:0,Warning:1,Ignore:2};Cs[Cs.Error]="Error",Cs[Cs.Warning]="Warning",Cs[Cs.Ignore]="Ignore";var Es=function(){function t(t){}return t.decorators=[{type:Qr,args:[{providers:[Ro,Ki,ro,$i,{provide:ys,useFactory:wt},{provide:gs,useFactory:Ot},{provide:ws,useFactory:St,deps:[[new ii(ws),new oi,new ci]]}]}]}],t.ctorParameters=function(){return[{type:Ro}]},t}(),Ts={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};Ts[Ts.NONE]="NONE",Ts[Ts.HTML]="HTML",Ts[Ts.STYLE]="STYLE",Ts[Ts.SCRIPT]="SCRIPT",Ts[Ts.URL]="URL",Ts[Ts.RESOURCE_URL]="RESOURCE_URL";var js=function(){return function(){}}(),Ps=function(){return function(){}}(),As={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},Is=function(){},ks=new Map,Rs="$$undefined",Ms="$$empty",Ds=0,Ns=new WeakMap,Ls=/^:([^:]+):(.+)$/,Fs=[],Vs={},Bs=new Object,Hs=Dt(vi),zs=Dt(fo),Us=new Object,Ws=function(t){function e(e,n,r,i,o,s){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=i,a._outputs=o,a.ngContentSelectors=s,a.viewDefFactory=r,a}return Object(Sr.b)(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e){var r=e[n];t.push({propName:n,templateName:r})}return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs){var n=this._outputs[e];t.push({propName:e,templateName:n})}return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var i=te(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,s=As.createRootView(t,e||[],n,i,r,Us),a=Pt(s,o).instance;return n&&s.renderer.setAttribute(jt(s,0).renderElement,"ng-version",ri.full),new Gs(s,new Ys(s),a)},e}(ao),Gs=function(t){function e(e,n,r){var i=t.call(this)||this;return i._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return Object(Sr.b)(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new Ho(jt(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Xs(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(so),qs=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new Ho(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Xs(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=Gt(t),t=t.parent;return t?new Xs(t,e):new Xs(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=xe(this._data,t);As.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Ys(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;i||t instanceof ho||(i=o.get(fo));var s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=t,r=n._view;return _e(this._view,this._data,e,r),n.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n=this._embeddedViews.indexOf(t._view);return function(t,e,n){var r=t.viewContainer._embeddedViews,i=r[e];Ce(r,e),null==n&&(n=r.length),Se(r,n,i),As.dirtyParentQueries(i),Oe(i),we(t,n>0?r[n-1]:null,i)}(this._data,n,e),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=xe(this._data,t);e&&As.destroyView(e)},t.prototype.detach=function(t){var e=xe(this._data,t);return e?new Ys(e):null},t}(),Ys=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return function(t){var e=[];return ee(t,0,void 0,void 0,e),e}(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){Ht(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin(),As.checkAndUpdateView(this._view),t.end&&t.end()},t.prototype.checkNoChanges=function(){As.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),As.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Oe(this._view),As.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}(),Ks=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return Object(Sr.b)(e,t),e.prototype.createEmbeddedView=function(t){return new Ys(As.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new Ho(jt(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(Ko),Xs=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){void 0===e&&(e=vi.THROW_IF_NOT_FOUND);var n=!!this.elDef&&0!=(33554432&this.elDef.flags);return As.resolveDep(this.view,this.elDef,n,{flags:0,token:t,tokenKey:Dt(t)},e)},t}(),$s=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=se(e),r=n[0],i=n[1],o=this.delegate.createElement(i,r);return t&&this.delegate.appendChild(t,o),o},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n<e.length;n++)this.delegate.appendChild(t,e[n])},t.prototype.attachViewAfter=function(t,e){for(var n=this.delegate.parentNode(t),r=this.delegate.nextSibling(t),i=0;i<e.length;i++)this.delegate.insertBefore(n,e[i],r)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},t.prototype.destroyView=function(t,e){for(var n=0;n<e.length;n++)this.delegate.destroyNode(e[n])},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.listenGlobal=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.setElementProperty=function(t,e,n){this.delegate.setProperty(t,e,n)},t.prototype.setElementAttribute=function(t,e,n){var r=se(e),i=r[0],o=r[1];null!=n?this.delegate.setAttribute(t,o,n,i):this.delegate.removeAttribute(t,o,i)},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){n?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)},t.prototype.setElementStyle=function(t,e,n){null!=n?this.delegate.setStyle(t,e,n):this.delegate.removeStyle(t,e)},t.prototype.invokeElementMethod=function(t,e,n){t[e].apply(t,n)},t.prototype.setText=function(t,e){this.delegate.setValue(t,e)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}(),Qs=function(){function t(t,e,n,r){this._moduleType=t,this._parent=e,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,function(t){for(var e=t._def,n=t._providers=new Array(e.providers.length),r=0;r<e.providers.length;r++){var i=e.providers[r];4096&i.flags||(n[r]=be(t,i))}}(this)}return t.prototype.get=function(t,e){return void 0===e&&(e=vi.THROW_IF_NOT_FOUND),me(this,{token:t,tokenKey:Dt(t),flags:0},e)},Object.defineProperty(t.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this.get(lo)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return this},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+p(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function(t,e){for(var n=t._def,r=0;r<n.providers.length;r++)if(131072&n.providers[r].flags){var i=t._providers[r];i&&i!==Bs&&i.ngOnDestroy()}}(this),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t}(),Zs=Dt(No),Js=Dt(Bo),ta=Dt(Ho),ea=Dt(Xo),na=Dt(Ko),ra=Dt($o),ia=Dt(vi),oa={},sa={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};sa[sa.CreateViewNodes]="CreateViewNodes",sa[sa.CheckNoChanges]="CheckNoChanges",sa[sa.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",sa[sa.CheckAndUpdate]="CheckAndUpdate",sa[sa.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",sa[sa.Destroy]="Destroy";var aa=!1,ca=new Map,ua=new Map,la={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};la[la.create]="create",la[la.detectChanges]="detectChanges",la[la.checkNoChanges]="checkNoChanges",la[la.destroy]="destroy",la[la.handleEvent]="handleEvent";var pa,ha,da,fa=/([A-Z])/g,ya=function(){function t(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];for(var n=this.nodeDef,r=t;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=Gt(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return jt(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return Ie(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=[];if(this.elDef)for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&t.push(n.provider.token),e+=n.childCount}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t={};if(this.elDef){er(this.elView,this.elDef,t);for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&er(this.elView,n,t),e+=n.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=function(t){for(;t&&!Kt(t);)t=t.parent;return t.parent?jt(t.parent,Gt(t).nodeIndex):null}(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?qt(this.view,this.nodeDef):qt(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r,i;2&this.nodeDef.flags?(r=this.view.def,i=this.nodeDef.nodeIndex):(r=this.elView.def,i=this.elDef.nodeIndex);var o=function(t,e){for(var n=-1,r=0;r<=e;r++)3&t.nodes[r].flags&&n++;return n}(r,i),s=-1;r.factory(function(){return++s===o?(n=t.error).bind.apply(n,[t].concat(e)):Is;var n}),s<o&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,e))},t}(),ga=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new va(this.delegate.createRenderer(t,e))},t.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},t.prototype.end=function(){this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},t}(),va=function(){function t(t){this.delegate=t}return Object.defineProperty(t.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),t.prototype.destroyNode=function(t){!function(t){ns.delete(t.nativeNode)}(gt(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)},t.prototype.destroy=function(){this.delegate.destroy()},t.prototype.createElement=function(t,e){var n=this.delegate.createElement(t,e),r=rr();if(r){var i=new es(n,null,r);i.name=t,vt(i)}return n},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),n=rr();return n&&vt(new ts(e,null,n)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),n=rr();return n&&vt(new ts(e,null,n)),e},t.prototype.appendChild=function(t,e){var n=gt(t),r=gt(e);n&&r&&n instanceof es&&n.addChild(r),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,n){var r=gt(t),i=gt(e),o=gt(n);r&&i&&r instanceof es&&r.insertBefore(o,i),this.delegate.insertBefore(t,e,n)},t.prototype.removeChild=function(t,e){var n=gt(t),r=gt(e);n&&r&&n instanceof es&&n.removeChild(r),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t){var e=this.delegate.selectRootElement(t),n=rr();return n&&vt(new es(e,null,n)),e},t.prototype.setAttribute=function(t,e,n,r){var i=gt(t);if(i&&i instanceof es){var o=r?r+":"+e:e;i.attributes[o]=n}this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){var r=gt(t);if(r&&r instanceof es){var i=n?n+":"+e:e;r.attributes[i]=null}this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){var n=gt(t);n&&n instanceof es&&(n.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var n=gt(t);n&&n instanceof es&&(n.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){var i=gt(t);i&&i instanceof es&&(i.styles[e]=n),this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){var r=gt(t);r&&r instanceof es&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){var r=gt(t);r&&r instanceof es&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)},t.prototype.listen=function(t,e,n){if("string"!=typeof t){var r=gt(t);r&&r.listeners.push(new Jo(e,n))}return this.delegate.listen(t,e,n)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setValue=function(t,e){return this.delegate.setValue(t,e)},t}(),ma=function(t){function e(e,n,r){var i=t.call(this)||this;return i.moduleType=e,i._bootstrapComponents=n,i._ngModuleDefFactory=r,i}return Object(Sr.b)(e,t),e.prototype.create=function(t){In();var e=te(this._ngModuleDefFactory);return As.createNgModuleRef(this.moduleType,t||vi.NULL,this._bootstrapComponents,e)},e}(yo),ba="*"}).call(e,n("fRUx"))},LTTx:function(t,e,n){"use strict";var r=n("bKpL"),i=n("xAqS");r.Observable.prototype.bufferToggle=i.bufferToggle},Lhvy:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);e.ObjectUnsubscribedError=i},LiYJ:function(t,e,n){"use strict";e.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},Lqs2:function(t,e,n){"use strict";var r=n("TQK7");e.take=function(t){return r.take(t)(this)}},Lssd:function(t,e,n){"use strict";var r=n("bKpL"),i=n("WmO6");r.Observable.prototype.partition=i.partition},M11L:function(t,e,n){"use strict";function r(){return function(){function t(){this._values=[]}return t.prototype.add=function(t){this.has(t)||this._values.push(t)},t.prototype.has=function(t){return-1!==this._values.indexOf(t)},Object.defineProperty(t.prototype,"size",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this._values.length=0},t}()}var i=n("zijX");e.minimalSetImpl=r,e.Set=i.root.Set||r()},MBEm:function(t,e,n){"use strict";var r=n("bKpL"),i=n("kGJb");r.Observable.prototype.distinctUntilChanged=i.distinctUntilChanged},MCDL:function(t,e,n){"use strict";function r(t){switch(t.length){case 0:return new $.NoopAnimationPlayer;case 1:return t[0];default:return new $["\u0275AnimationGroupPlayer"](t)}}function i(t,e,n,r,i,o){void 0===i&&(i={}),void 0===o&&(o={});var s=[],a=[],c=-1,u=null;if(r.forEach(function(t){var n=t.offset,r=n==c,l=r&&u||{};Object.keys(t).forEach(function(n){var r=n,a=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,s),a){case $["\u0275PRE_STYLE"]:a=i[n];break;case $.AUTO_STYLE:a=o[n];break;default:a=e.normalizeStyleValue(n,r,a,s)}l[r]=a}),r||a.push(l),u=l,c=n}),s.length){throw new Error("Unable to animate due to the following errors:\n - "+s.join("\n - "))}return a}function o(t,e,n,r){switch(e){case"start":t.onStart(function(){return r(n&&s(n,"start",t.totalTime))});break;case"done":t.onDone(function(){return r(n&&s(n,"done",t.totalTime))});break;case"destroy":t.onDestroy(function(){return r(n&&s(n,"destroy",t.totalTime))})}}function s(t,e,n){var r=a(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,void 0==n?t.totalTime:n),i=t._data;return null!=i&&(r._data=i),r}function a(t,e,n,r,i,o){return void 0===i&&(i=""),void 0===o&&(o=0),{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o}}function c(t,e,n){var r;return t instanceof Map?(r=t.get(e))||t.set(e,r=n):(r=t[e])||(r=t[e]=n),r}function u(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}function l(t){return nt||(nt=p()||{}),!nt.style||t in nt.style}function p(){return"undefined"!=typeof document?document.body:null}function h(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:d(parseFloat(e[1]),e[2])}function d(t,e){switch(e){case"s":return t*ct;default:return t}}function f(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var r,i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,o=0,s="";if("string"==typeof t){var a=t.match(i);if(null===a)return e.push('The provided timing value "'+t+'" is invalid.'),{duration:0,delay:0,easing:""};r=d(parseFloat(a[1]),a[2]);var c=a[3];null!=c&&(o=d(Math.floor(parseFloat(c)),a[4]));var u=a[5];u&&(s=u)}else r=t;if(!n){var l=!1,p=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),l=!0),o<0&&(e.push("Delay values below 0 are not allowed for this animation step."),l=!0),l&&e.splice(p,0,'The provided timing value "'+t+'" is invalid.')}return{duration:r,delay:o,easing:s}}(t,e,n)}function y(t,e){return void 0===e&&(e={}),Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function g(t){var e={};return Array.isArray(t)?t.forEach(function(t){return v(t,!1,e)}):v(t,!1,e),e}function v(t,e,n){if(void 0===n&&(n={}),e)for(var r in t)n[r]=t[r];else y(t,n);return n}function m(t,e){t.style&&Object.keys(e).forEach(function(n){var r=S(n);t.style[r]=e[n]})}function b(t,e){t.style&&Object.keys(e).forEach(function(e){var n=S(e);t.style[n]=""})}function _(t){return Array.isArray(t)?1==t.length?t[0]:Object($.sequence)(t):t}function x(t){var e=[];if("string"==typeof t){for(var n=t.toString(),r=void 0;r=ht.exec(n);)e.push(r[1]);ht.lastIndex=0}return e}function w(t,e,n){var r=t.toString(),i=r.replace(ht,function(t,r){var i=e[r];return e.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),i=""),i.toString()});return i==r?t:i}function O(t){for(var e=[],n=t.next();!n.done;)e.push(n.value),n=t.next();return e}function S(t){return t.replace(dt,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function C(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}function E(t,e){var n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(function(t){return function(t,e,n){if(":"==t[0]){var r=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e)<parseFloat(t)};default:return e.push('The transition alias value "'+t+'" is not supported'),"* => *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}var i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var o=i[1],s=i[2],a=i[3];e.push(T(o,a));var c=o==ft&&a==ft;"<"!=s[0]||c||e.push(T(a,o))}(t,n,e)}):n.push(t),n}function T(t,e){var n=yt.has(t)||gt.has(t),r=yt.has(e)||gt.has(e);return function(i,o){var s=t==ft||t==i,a=e==ft||e==o;return!s&&n&&"boolean"==typeof i&&(s=i?yt.has(t):gt.has(t)),!a&&r&&"boolean"==typeof o&&(a=o?yt.has(e):gt.has(e)),s&&a}}function j(t,e,n){return new bt(t).build(e,n)}function P(t){return!Array.isArray(t)&&"object"==typeof t}function A(t){return t?(t=y(t)).params&&(t.params=function(t){return t?y(t):null}(t.params)):t={},t}function I(t,e,n){return{duration:t,delay:e,easing:n}}function k(t,e,n,r,i,o,s,a){return void 0===s&&(s=null),void 0===a&&(a=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}function R(t,e,n,r,i,o,s,a,c,u){return void 0===o&&(o={}),void 0===s&&(s={}),void 0===u&&(u=[]),(new St).buildKeyframes(t,e,n,r,i,o,s,a,c,u)}function M(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}function D(t,e,n,r,i,o,s,a,c,u,l,p){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:c,preStyleProps:u,postStyleProps:l,errors:p}}function N(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}function L(t){return t&&1===t.nodeType}function F(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function V(t,e,n,r,i){var o=[];n.forEach(function(t){return o.push(F(t))});var s=[];r.forEach(function(n,r){var o={};n.forEach(function(t){var n=o[t]=e.computeStyle(r,t,i);n&&0!=n.length||(r[Ut]=zt,s.push(r))}),t.set(r,o)});var a=0;return n.forEach(function(t){return F(t,o[a++])}),s}function B(t,e){function n(t){if(!t)return i;var e=s.get(t);if(e)return e;var a=t.parentNode;return e=r.has(a)?a:o.has(a)?i:n(a),s.set(t,e),e}var r=new Map;if(t.forEach(function(t){return r.set(t,[])}),0==e.length)return r;var i=1,o=new Set(e),s=new Map;return e.forEach(function(t){var e=n(t);e!==i&&r.get(e).push(t)}),r}function H(t,e){if(t.classList)t.classList.add(e);else{var n=t[$t];n||(n=t[$t]={}),n[e]=!0}}function z(t,e){if(t.classList)t.classList.remove(e);else{var n=t[$t];n&&delete n[e]}}function U(t,e){for(var n=0;n<t.length;n++){var r=t[n];r instanceof $["\u0275AnimationGroupPlayer"]?U(r.players,e):e.push(r)}}function W(t,e,n){var r=n.get(t);if(!r)return!1;var i=e.get(t);return i?r.forEach(function(t){return i.add(t)}):e.set(t,r),n.delete(t),!0}function G(t,e){return window.getComputedStyle(t)[e]}function q(t,e,n,r,i){return t.setProperty(e,"@@"+n+":"+r,i)}var Y=n("LMZF"),K=n("RyBE"),X=n("6Xbx"),$=n("fAeS"),Q=function(t,e){return!1},Z=function(t,e){return!1},J=function(t,e,n){return[]};if("undefined"!=typeof Element){if(Q=function(t,e){return t.contains(e)},Element.prototype.matches)Z=function(t,e){return t.matches(e)};else{var tt=Element.prototype,et=tt.matchesSelector||tt.mozMatchesSelector||tt.msMatchesSelector||tt.oMatchesSelector||tt.webkitMatchesSelector;et&&(Z=function(t,e){return et.apply(t,[e])})}J=function(t,e,n){var r=[];if(n)r.push.apply(r,t.querySelectorAll(e));else{var i=t.querySelector(e);i&&r.push(i)}return r}}var nt=null,rt=Z,it=Q,ot=J,st=function(){function t(){}return t.prototype.validateStyleProperty=function(t){return l(t)},t.prototype.matchesElement=function(t,e){return rt(t,e)},t.prototype.containsElement=function(t,e){return it(t,e)},t.prototype.query=function(t,e,n){return ot(t,e,n)},t.prototype.computeStyle=function(t,e,n){return n||""},t.prototype.animate=function(t,e,n,r,i,o){return void 0===o&&(o=[]),new $.NoopAnimationPlayer},t}(),at=function(){function t(){}return t.NOOP=new st,t}(),ct=1e3,ut="ng-trigger",lt=".ng-trigger",pt=".ng-animating",ht=new RegExp("{{\\s*(.+?)\\s*}}","g"),dt=/-+([a-z0-9])/g,ft="*",yt=new Set;yt.add("true"),yt.add("1");var gt=new Set;gt.add("false"),gt.add("0");var vt=":self",mt=new RegExp("s*"+vt+"s*,?","g"),bt=function(){function t(t){this._driver=t}return t.prototype.build=function(t,e){var n=new _t(e);return this._resetContextStyleTimingState(n),C(this,_(t),n)},t.prototype._resetContextStyleTimingState=function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0},t.prototype.visitTrigger=function(t,e){var n=this,r=e.queryCount=0,i=e.depCount=0,o=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(function(t){if(n._resetContextStyleTimingState(e),0==t.type){var a=t,c=a.name;c.split(/\s*,\s*/).forEach(function(t){a.name=t,o.push(n.visitState(a,e))}),a.name=c}else if(1==t.type){var u=n.visitTransition(t,e);r+=u.queryCount,i+=u.depCount,s.push(u)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:o,transitions:s,queryCount:r,depCount:i,options:null}},t.prototype.visitState=function(t,e){var n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){var i=new Set,o=r||{};if(n.styles.forEach(function(t){if(P(t)){var e=t;Object.keys(e).forEach(function(t){x(e[t]).forEach(function(t){o.hasOwnProperty(t)||i.add(t)})})}}),i.size){var s=O(i.values());e.errors.push('state("'+t.name+'", ...) must define default values for all the following style substitutions: '+s.join(", "))}}return{type:0,name:t.name,style:n,options:r?{params:r}:null}},t.prototype.visitTransition=function(t,e){e.queryCount=0,e.depCount=0;var n=C(this,_(t.animation),e);return{type:1,matchers:E(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:A(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return C(n,t,e)}),options:A(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,r=e.currentTime,i=0,o=t.steps.map(function(t){e.currentTime=r;var o=C(n,t,e);return i=Math.max(i,e.currentTime),o});return e.currentTime=i,{type:3,steps:o,options:A(t.options)}},t.prototype.visitAnimate=function(t,e){var n=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return I(f(t,e).duration,0,"");var r=t;if(r.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var i=I(0,0,"");return i.dynamic=!0,i.strValue=r,i}return n=n||f(r,e),I(n.duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;var r,i=t.styles?t.styles:Object($.style)({});if(5==i.type)r=this.visitKeyframes(i,e);else{var o=t.styles,s=!1;if(!o){s=!0;var a={};n.easing&&(a.easing=n.easing),o=Object($.style)(a)}e.currentTime+=n.duration+n.delay;var c=this.visitStyle(o,e);c.isEmptyStep=s,r=c}return e.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==$.AUTO_STYLE?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)}):n.push(t.styles);var r=!1,i=null;return n.forEach(function(t){if(P(t)){var e=t,n=e.easing;if(n&&(i=n,delete e.easing),!r)for(var o in e){if(e[o].toString().indexOf("{{")>=0){r=!0;break}}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:r,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,r=e.currentAnimateTimings,i=e.currentTime,o=e.currentTime;r&&o>0&&(o-=r.duration+r.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(r){if(n._driver.validateStyleProperty(r)){var s=e.collectedStyles[e.currentQuerySelector],a=s[r],c=!0;a&&(o!=i&&o>=a.startTime&&i<=a.endTime&&(e.errors.push('The CSS property "'+r+'" that exists between the times of "'+a.startTime+'ms" and "'+a.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+i+'ms"'),c=!1),o=a.startTime),c&&(s[r]={startTime:o,endTime:i}),e.options&&function(t,e,n){var r=e.params||{},i=x(t);i.length&&i.forEach(function(t){r.hasOwnProperty(t)||n.push("Unable to resolve the local animation param "+t+" in the given list of values")})}(t[r],e.options,e.errors)}else e.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},t.prototype.visitKeyframes=function(t,e){var n=this,r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],s=!1,a=!1,c=0,u=t.steps.map(function(t){var r=n._makeStyleAst(t,e),u=null!=r.offset?r.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(P(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(P(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),l=0;return null!=u&&(i++,l=r.offset=u),a=a||l<0||l>1,s=s||l<c,c=l,o.push(l),r});a&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),s&&e.errors.push("Please ensure that all keyframe offsets are in order");var l=t.steps.length,p=0;i>0&&i<l?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(p=1/(l-1));var h=l-1,d=e.currentTime,f=e.currentAnimateTimings,y=f.duration;return u.forEach(function(t,i){var s=p>0?i==h?1:p*i:o[i],a=s*y;e.currentTime=d+f.delay+a,f.duration=a,n._validateStyleAst(t,e),t.offset=s,r.styles.push(t)}),r},t.prototype.visitReference=function(t,e){return{type:8,animation:C(this,_(t.animation),e),options:A(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:A(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:A(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;var i=function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return t==vt});return e&&(t=t.replace(mt,"")),t=t.replace(/@\*/g,lt).replace(/@\w+/g,function(t){return lt+"-"+t.substr(1)}).replace(/:animating/g,pt),[t,e]}(t.selector),o=i[0],s=i[1];e.currentQuerySelector=n.length?n+" "+o:o,c(e.collectedStyles,e.currentQuerySelector,{});var a=C(this,_(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:A(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:f(t.timings,e.errors,!0);return{type:12,animation:C(this,_(t.animation),e),timings:n,options:null}},t}(),_t=function(){return function(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}(),xt=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,e)},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),wt=new RegExp(":enter","g"),Ot=new RegExp(":leave","g"),St=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,r,i,o,s,a,c,u){void 0===u&&(u=[]),c=c||new xt;var l=new Et(t,e,c,r,i,u,[]);l.options=a,l.currentTimeline.setStyles([o],null,l.errors,a),C(this,n,l);var p=l.timelines.filter(function(t){return t.containsAnimation()});if(p.length&&Object.keys(s).length){var h=p[p.length-1];h.allowOnlyTimelineStyles()||h.setStyles([s],null,l.errors,a)}return p.length?p.map(function(t){return t.buildKeyframes()}):[k(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var r=e.currentTimeline.currentTime,i=null!=n.duration?h(n.duration):null,o=null!=n.delay?h(n.delay):null;return 0!==i&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,i,o);r=Math.max(r,n.duration+n.delay)}),r},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),C(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,r=e.subContextCount,i=e,o=t.options;if(o&&(o.params||o.delay)&&((i=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Ct);var s=h(o.delay);i.delayNextStep(s)}t.steps.length&&(t.steps.forEach(function(t){return C(n,t,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,r=[],i=e.currentTimeline.currentTime,o=t.options&&t.options.delay?h(t.options.delay):0;t.steps.forEach(function(s){var a=e.createSubContext(t.options);o&&a.delayNextStep(o),C(n,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(i),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return f(e.params?w(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(function(t){var n=t.offset||0;o.forwardTime(n*i),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+i),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,r=e.currentTimeline.currentTime,i=t.options||{},o=i.delay?h(i.delay):0;o&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ct);var s=r,a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=a.length;var c=null;a.forEach(function(r,i){e.currentQueryIndex=i;var a=e.createSubContext(t.options,r);o&&a.delayNextStep(o),r===e.element&&(c=a.currentTimeline),C(n,t.animation,a),a.currentTimeline.applyStylesToKeyframe();var u=a.currentTimeline.currentTime;s=Math.max(s,u)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,r=e.currentTimeline,i=t.timings,o=Math.abs(i.duration),s=o*(e.currentQueryTotal-1),a=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}var c=e.currentTimeline;a&&c.delayNextStep(a);var u=c.currentTime;C(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)},t}(),Ct={},Et=function(){function t(t,e,n,r,i,o,s,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ct,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Tt(this._driver,e,0),s.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var r=t,i=this.options;null!=r.duration&&(i.duration=h(r.duration)),null!=r.delay&&(i.delay=h(r.delay));var o=r.params;if(o){var s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(function(t){e&&s.hasOwnProperty(t)||(s[t]=w(o[t],s,n.errors))})}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t},t.prototype.createSubContext=function(e,n,r){void 0===e&&(e=null);var i=n||this.element,o=new t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=Ct,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new jt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,r,i,o){var s=[];if(r&&s.push(this.element),t.length>0){t=(t=t.replace(wt,"."+this._enterClassName)).replace(Ot,"."+this._leaveClassName);var a=1!=n,c=this._driver.query(this.element,t,a);0!==n&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),s.push.apply(s,c)}return i||0!=s.length||o.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),s},t}(),Tt=function(){function t(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||$.AUTO_STYLE,e._currentKeyframe[t]=$.AUTO_STYLE}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,r){var i=this;e&&(this._previousKeyframe.easing=e);var o=r&&r.params||{},s=function(t,e){var n,r={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){r[t]=$.AUTO_STYLE}):v(t,!1,r)}),r}(t,this._globalTimelineStyles);Object.keys(s).forEach(function(t){var e=w(s[t],o,n);i._pendingStyles[t]=e,i._localTimelineStyles.hasOwnProperty(t)||(i._backFill[t]=i._globalTimelineStyles.hasOwnProperty(t)?i._globalTimelineStyles[t]:$.AUTO_STYLE),i._updateStyle(t,e)})},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){var r=e[n];t._currentKeyframe[n]=r}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var r=e._styleSummary[n],i=t._styleSummary[n];(!r||i.time>r.time)&&e._updateStyle(n,i.value)})},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(o,s){var a=v(o,!0);Object.keys(a).forEach(function(t){var r=a[t];r==$["\u0275PRE_STYLE"]?e.add(t):r==$.AUTO_STYLE&&n.add(t)}),r||(a.offset=s/t.duration),i.push(a)});var o=e.size?O(e.values()):[],s=n.size?O(n.values()):[];if(r){var a=i[0],c=y(a);a.offset=0,c.offset=1,i=[a,c]}return k(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)},t}(),jt=function(t){function e(e,n,r,i,o,s,a){void 0===a&&(a=!1);var c=t.call(this,e,n,s.delay)||this;return c.element=n,c.keyframes=r,c.preStyleProps=i,c.postStyleProps=o,c._stretchStartingKeyframe=a,c.timings={duration:s.duration,delay:s.delay,easing:s.easing},c}return Object(X.b)(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,i=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],s=r+n,a=n/s,c=v(t[0],!1);c.offset=0,o.push(c);var u=v(t[0],!1);u.offset=M(a),o.push(u);for(var l=t.length-1,p=1;p<=l;p++){var h=v(t[p],!1),d=n+h.offset*r;h.offset=M(d/s),o.push(h)}r=s,n=0,i="",t=o}return k(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)},e}(Tt),Pt=(function(){function t(t,e){this._driver=t;var n=[],r=j(t,e,n);if(n.length){var i="animation validation failed:\n"+n.join("\n");throw new Error(i)}this._animationAst=r}t.prototype.buildTimelines=function(t,e,n,r,i){var o=Array.isArray(e)?g(e):e,s=Array.isArray(n)?g(n):n,a=[];i=i||new xt;var c=R(this._driver,t,this._animationAst,"ng-enter","ng-leave",o,s,r,i,a);if(a.length){var u="animation building failed:\n"+a.join("\n");throw new Error(u)}return c}}(),function(){return function(){}}()),At=(function(){function t(){}t.prototype.normalizePropertyName=function(t,e){return t},t.prototype.normalizeStyleValue=function(t,e,n,r){return n}}(),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(X.b)(e,t),e.prototype.normalizePropertyName=function(t,e){return S(t)},e.prototype.normalizeStyleValue=function(t,e,n,r){var i="",o=n.toString().trim();if(It[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push("Please provide a CSS unit value for "+t+":"+n)}return o+i},e}(Pt)),It=function(t){var e={};return t.forEach(function(t){return e[t]=!0}),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")),kt={},Rt=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e){return function(t,e,n){return t.some(function(t){return t(e,n)})}(this.ast.matchers,t,e)},t.prototype.buildStyles=function(t,e,n){var r=this._stateStyles["*"],i=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):o},t.prototype.build=function(t,e,n,r,i,o,s,a,u){var l=[],p=this.ast.options&&this.ast.options.params||kt,h=s&&s.params||kt,d=this.buildStyles(n,h,l),f=a&&a.params||kt,y=this.buildStyles(r,f,l),g=new Set,v=new Map,m=new Map,b="void"===r,_={params:Object(X.a)({},p,f)},x=R(t,e,this.ast.animation,i,o,d,y,_,u,l);if(l.length)return D(e,this._triggerName,n,r,b,d,y,[],[],v,m,l);x.forEach(function(t){var n=t.element,r=c(v,n,{});t.preStyleProps.forEach(function(t){return r[t]=!0});var i=c(m,n,{});t.postStyleProps.forEach(function(t){return i[t]=!0}),n!==e&&g.add(n)});var w=O(g.values());return D(e,this._triggerName,n,r,b,d,y,x,w,v,m)},t}(),Mt=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},r=y(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var i=t;Object.keys(i).forEach(function(t){var o=i[t];o.length>1&&(o=w(o,r,e)),n[t]=o})}}),n},t}(),Dt=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(function(t){var e=t.options&&t.options.params||{};n.states[t.name]=new Mt(t.style,e)}),N(this.states,"true","1"),N(this.states,"false","0"),e.transitions.forEach(function(e){n.transitionFactories.push(new Rt(t,e,n.states))}),this.fallbackTransition=function(t,e){return new Rt(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},e)}(t,this.states)}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e){return this.transitionFactories.find(function(n){return n.match(t,e)})||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}(),Nt=new xt,Lt=function(){function t(t,e){this._driver=t,this._normalizer=e,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],r=j(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r},t.prototype._buildPlayer=function(t,e,n){var r=t.element,o=i(this._driver,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[])},t.prototype.create=function(t,e,n){var i=this;void 0===n&&(n={});var o,s=[],a=this._animations[t],u=new Map;if(a?(o=R(this._driver,e,a,"ng-enter","ng-leave",{},{},n,Nt,s)).forEach(function(t){var e=c(u,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(s.push("The requested animation doesn't exist or has already been destroyed"),o=[]),s.length)throw new Error("Unable to create the animation due to the following errors: "+s.join("\n"));u.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=i._driver.computeStyle(e,n,$.AUTO_STYLE)})});var l=r(o.map(function(t){var e=u.get(t.element);return i._buildPlayer(t,{},e)}));return this._playersById[t]=l,l.onDestroy(function(){return i.destroy(t)}),this.players.push(l),l},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,r){var i=a(e,"","","");return o(this._getPlayer(t),n,i,r),function(){}},t.prototype.command=function(t,e,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}else{var o=r[0]||{};this.create(t,e,o)}else this.register(t,r[0])},t}(),Ft="ng-animate-disabled",Vt=".ng-animate-disabled",Bt=[],Ht={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!1},zt={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!0},Ut="__ng_removed",Wt=function(){function t(t,e){void 0===e&&(e=""),this.namespaceId=e;var n=t&&t.hasOwnProperty("value"),r=n?t.value:t;if(this.value=function(t){return null!=t?t:null}(r),n){var i=y(t);delete i.value,this.options=i}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}},t}(),Gt=new Wt("void"),qt=new Wt("DELETED"),Yt=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,H(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,r){var i=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if(!function(t){return"start"==t||"done"==t}(n))throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var o=c(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};o.push(s);var a=c(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(H(t,ut),H(t,ut+"-"+e),a[e]=Gt),function(){i._engine.afterFlush(function(){var t=o.indexOf(s);t>=0&&o.splice(t,1),i._triggers[e]||delete a[e]})}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,r){var i=this;void 0===r&&(r=!0);var o=this._getTrigger(e),s=new Xt(this.id,e,t),a=this._engine.statesByElement.get(t);a||(H(t,ut),H(t,ut+"-"+e),this._engine.statesByElement.set(t,a={}));var u=a[e],l=new Wt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),a[e]=l,u){if(u===qt)return s}else u=Gt;if("void"===l.value||u.value!==l.value){var p=c(this._engine.playersByElement,t,[]);p.forEach(function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()});var h=o.matchTransition(u.value,l.value),d=!1;if(!h){if(!r)return;h=o.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:u,toState:l,player:s,isFallbackTransition:d}),d||(H(t,"ng-animate-queued"),s.onStart(function(){z(t,"ng-animate-queued")})),s.onDone(function(){var e=i.players.indexOf(s);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var r=n.indexOf(s);r>=0&&n.splice(r,1)}}),this.players.push(s),p.push(s),s}if(!function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(!e.hasOwnProperty(o)||t[o]!==e[o])return!1}return!0}(u.params,l.params)){var f=[],y=o.matchStyles(u.value,u.params,f),g=o.matchStyles(l.value,l.params,f);f.length?this._engine.reportError(f):this._engine.afterFlush(function(){b(t,y),m(t,g)})}},t.prototype.deregister=function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(e,n){delete e[t]}),this._elementListeners.forEach(function(n,r){e._elementListeners.set(r,n.filter(function(e){return e.name!=t}))})},t.prototype.clearElementCache=function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach(function(t){return t.destroy()}),this._engine.playersByElement.delete(t))},t.prototype._signalRemovalForInnerTriggers=function(t,e,n){var r=this;void 0===n&&(n=!1),this._engine.driver.query(t,lt,!0).forEach(function(t){var n=r._engine.fetchNamespacesByElement(t);n.size?n.forEach(function(n){n.triggerLeaveAnimation(t,e,!1,!0)}):r.clearElementCache(t)})},t.prototype.triggerLeaveAnimation=function(t,e,n,i){var o=this,s=this._engine.statesByElement.get(t);if(s){var a=[];if(Object.keys(s).forEach(function(e){if(o._triggers[e]){var n=o.trigger(t,e,"void",i);n&&a.push(n)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&r(a).onDone(function(){return o._engine.processLeaveNode(t)}),!0}return!1},t.prototype.prepareLeaveAnimationListeners=function(t){var e=this,n=this._elementListeners.get(t);if(n){var r=new Set;n.forEach(function(n){var i=n.name;if(!r.has(i)){r.add(i);var o=e._triggers[i].fallbackTransition,s=e._engine.statesByElement.get(t)[i]||Gt,a=new Wt("void"),c=new Xt(e.id,i,t);e._engine.totalQueuedPlayers++,e._queue.push({element:t,triggerName:i,transition:o,fromState:s,toState:a,player:c,isFallbackTransition:!0})}})}},t.prototype.removeNode=function(t,e){var n=this,r=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e,!0),!this.triggerLeaveAnimation(t,e,!0)){var i=!1;if(r.totalAnimations){var o=r.players.length?r.playersByQueriedElement.get(t):[];if(o&&o.length)i=!0;else for(var s=t;s=s.parentNode;){if(r.statesByElement.get(s)){i=!0;break}}}this.prepareLeaveAnimationListeners(t),i?r.markElementAsRemoved(this.id,t,!1,e):(r.afterFlush(function(){return n.clearElementCache(t)}),r.destroyInnerAnimations(t),r._onRemovalComplete(t,e))}},t.prototype.insertNode=function(t,e){H(t,this._hostClassName)},t.prototype.drainQueuedTransitions=function(t){var e=this,n=[];return this._queue.forEach(function(r){var i=r.player;if(!i.destroyed){var s=r.element,c=e._elementListeners.get(s);c&&c.forEach(function(e){if(e.name==r.triggerName){var n=a(s,r.triggerName,r.fromState.value,r.toState.value);n._data=t,o(r.player,e.phase,n,e.callback)}}),i.markedForDestroy?e._engine.afterFlush(function(){i.destroy()}):n.push(r)}}),this._queue=[],n.sort(function(t,n){var r=t.transition.ast.depCount,i=n.transition.ast.depCount;return 0==r||0==i?r-i:e._engine.driver.containsElement(t.element,n.element)?1:-1})},t.prototype.destroy=function(t){this.players.forEach(function(t){return t.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)},t.prototype.elementContainsData=function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(function(e){return e.element===t})||e},t}(),Kt=function(){function t(t,e){this.driver=t,this._normalizer=e,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(t,e){}}return t.prototype._onRemovalComplete=function(t,e){this.onRemovalComplete(t,e)},Object.defineProperty(t.prototype,"queuedPlayers",{get:function(){var t=[];return this._namespaceList.forEach(function(e){e.players.forEach(function(e){e.queued&&t.push(e)})}),t},enumerable:!0,configurable:!0}),t.prototype.createNamespace=function(t,e){var n=new Yt(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n},t.prototype._balanceNamespaceList=function(t,e){var n=this._namespaceList.length-1;if(n>=0){for(var r=!1,i=n;i>=0;i--){var o=this._namespaceList[i];if(this.driver.containsElement(o.hostElement,e)){this._namespaceList.splice(i+1,0,t),r=!0;break}}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(e)})}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var r=Object.keys(n),i=0;i<r.length;i++){var o=n[r[i]].namespaceId;if(o){var s=this._fetchNamespace(o);s&&e.add(s)}}return e},t.prototype.trigger=function(t,e,n,r){return!!L(e)&&(this._fetchNamespace(t).trigger(e,n,r),!0)},t.prototype.insertNode=function(t,e,n,r){if(L(e)){var i=e[Ut];i&&i.setForRemoval&&(i.setForRemoval=!1),t&&this._fetchNamespace(t).insertNode(e,n),r&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),H(t,Ft)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),z(t,Ft))},t.prototype.removeNode=function(t,e,n){if(L(e)){var r=t?this._fetchNamespace(t):null;r?r.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n)}else this._onRemovalComplete(e,n)},t.prototype.markElementAsRemoved=function(t,e,n,r){this.collectedLeaveElements.push(e),e[Ut]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,r,i){return L(e)?this._fetchNamespace(t).listen(e,n,r,i):function(){}},t.prototype._buildInstruction=function(t,e,n,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,lt,!0);n.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,pt,!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})},t.prototype.destroyActiveAnimationsForElement=function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()});var n=this.statesByElement.get(t);n&&Object.keys(n).forEach(function(t){return n[t]=qt})},t.prototype.finishActiveQueriedAnimationOnElement=function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})},t.prototype.whenRenderingDone=function(){var t=this;return new Promise(function(e){if(t.players.length)return r(t.players).onDone(function(){return e()});e()})},t.prototype.processLeaveNode=function(t){var e=this,n=t[Ut];if(n&&n.setForRemoval){if(t[Ut]=Ht,n.namespaceId){this.destroyInnerAnimations(t);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,Vt)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Vt,!0).forEach(function(n){e.markElementAsDisabled(t,!1)})},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i<this.collectedEnterElements.length;i++){H(this.collectedEnterElements[i],"ng-star-inserted")}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var o=[];try{n=this._flushAnimations(o,t)}finally{for(i=0;i<o.length;i++)o[i]()}}else for(i=0;i<this.collectedLeaveElements.length;i++){var s=this.collectedLeaveElements[i];this.processLeaveNode(s)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(t){return t()}),this._flushFns=[],this._whenQuietFns.length){var a=this._whenQuietFns;this._whenQuietFns=[],n.length?r(n).onDone(function(){a.forEach(function(t){return t()})}):a.forEach(function(t){return t()})}},t.prototype.reportError=function(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))},t.prototype._flushAnimations=function(t,e){var n=this,i=new xt,o=[],s=new Map,a=[],u=new Map,l=new Map,h=new Map,d=new Set;this.disabledNodes.forEach(function(t){d.add(t);for(var e=n.driver.query(t,".ng-animate-queued",!0),r=0;r<e.length;r++)d.add(e[r])});var f=p(),y=Array.from(this.statesByElement.keys()),g=B(y,this.collectedEnterElements),v=new Map,_=0;g.forEach(function(t,e){var n="ng-enter"+_++;v.set(e,n),t.forEach(function(t){return H(t,n)})});for(var x=[],w=new Set,O=new Set,S=0;S<this.collectedLeaveElements.length;S++){(q=(G=this.collectedLeaveElements[S])[Ut])&&q.setForRemoval&&(x.push(G),w.add(G),q.hasAnimation?this.driver.query(G,".ng-star-inserted",!0).forEach(function(t){return w.add(t)}):O.add(G))}var C=new Map,E=B(y,Array.from(w));E.forEach(function(t,e){var n="ng-leave"+_++;C.set(e,n),t.forEach(function(t){return H(t,n)})}),t.push(function(){g.forEach(function(t,e){var n=v.get(e);t.forEach(function(t){return z(t,n)})}),E.forEach(function(t,e){var n=C.get(e);t.forEach(function(t){return z(t,n)})}),x.forEach(function(t){n.processLeaveNode(t)})});for(var T=[],j=[],P=this._namespaceList.length-1;P>=0;P--){this._namespaceList[P].drainQueuedTransitions(e).forEach(function(t){var e=t.player;T.push(e);var r=t.element;if(f&&n.driver.containsElement(f,r)){var s=C.get(r),p=v.get(r),d=n._buildInstruction(t,i,p,s);if(d.errors&&d.errors.length)j.push(d);else{if(t.isFallbackTransition)return e.onStart(function(){return b(r,d.fromStyles)}),e.onDestroy(function(){return m(r,d.toStyles)}),void o.push(e);d.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),i.append(r,d.timelines);var y={instruction:d,player:e,element:r};a.push(y),d.queriedElements.forEach(function(t){return c(u,t,[]).push(e)}),d.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var r=l.get(e);r||l.set(e,r=new Set),n.forEach(function(t){return r.add(t)})}}),d.postStyleProps.forEach(function(t,e){var n=Object.keys(t),r=h.get(e);r||h.set(e,r=new Set),n.forEach(function(t){return r.add(t)})})}}else e.destroy()})}if(j.length){var A=[];j.forEach(function(t){A.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach(function(t){return A.push("- "+t+"\n")})}),T.forEach(function(t){return t.destroy()}),this.reportError(A)}var I=new Map,k=new Map;a.forEach(function(t){var e=t.element;i.has(e)&&(k.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,I))}),o.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){c(I,e,[]).push(t),t.destroy()})});var R=x.filter(function(t){return W(t,l,h)}),M=new Map;V(M,this.driver,O,h,$.AUTO_STYLE).forEach(function(t){W(t,l,h)&&R.push(t)});var D=new Map;g.forEach(function(t,e){V(D,n.driver,new Set(t),l,$["\u0275PRE_STYLE"])}),R.forEach(function(t){var e=M.get(t),n=D.get(t);M.set(t,Object(X.a)({},e,n))});var N=[],L=[],F={};a.forEach(function(t){var e=t.element,a=t.player,c=t.instruction;if(i.has(e)){if(d.has(e))return a.onDestroy(function(){return m(e,c.toStyles)}),void o.push(a);var u=F;if(k.size>1){for(var l=e,p=[];l=l.parentNode;){var h=k.get(l);if(h){u=h;break}p.push(l)}p.forEach(function(t){return k.set(t,u)})}var f=n._buildAnimation(a.namespaceId,c,I,s,D,M);if(a.setRealPlayer(f),u===F)N.push(a);else{var y=n.playersByElement.get(u);y&&y.length&&(a.parentPlayer=r(y)),o.push(a)}}else b(e,c.fromStyles),a.onDestroy(function(){return m(e,c.toStyles)}),L.push(a),d.has(e)&&o.push(a)}),L.forEach(function(t){var e=s.get(t.element);if(e&&e.length){var n=r(e);t.setRealPlayer(n)}}),o.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var U=0;U<x.length;U++){var G,q=(G=x[U])[Ut];if(z(G,"ng-leave"),!q||!q.hasAnimation){var Y=[];if(u.size){var K=u.get(G);K&&K.length&&Y.push.apply(Y,K);for(var Q=this.driver.query(G,pt,!0),Z=0;Z<Q.length;Z++){var J=u.get(Q[Z]);J&&J.length&&Y.push.apply(Y,J)}}var tt=Y.filter(function(t){return!t.destroyed});tt.length?function(t,e,n){r(n).onDone(function(){return t.processLeaveNode(e)})}(this,G,tt):this.processLeaveNode(G)}}return x.length=0,N.forEach(function(t){n.players.push(t),t.onDone(function(){t.destroy();var e=n.players.indexOf(t);n.players.splice(e,1)}),t.play()}),N},t.prototype.elementContainsData=function(t,e){var n=!1,r=e[Ut];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n},t.prototype.afterFlush=function(t){this._flushFns.push(t)},t.prototype.afterFlushAnimationsDone=function(t){this._whenQuietFns.push(t)},t.prototype._getPreviousPlayers=function(t,e,n,r,i){var o=[];if(e){var s=this.playersByQueriedElement.get(t);s&&(o=s)}else{var a=this.playersByElement.get(t);if(a){var c=!i||"void"==i;a.forEach(function(t){t.queued||(c||t.triggerName==r)&&o.push(t)})}}return(n||r)&&(o=o.filter(function(t){return(!n||n==t.namespaceId)&&(!r||r==t.triggerName)})),o},t.prototype._beforeAnimationBuild=function(t,e,n){for(var r=e.triggerName,i=e.element,o=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:r,a=function(t){var r=t.element,a=r!==i,l=c(n,r,[]);u._getPreviousPlayers(r,a,o,s,e.toState).forEach(function(t){var e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})},u=this,l=0,p=e.timelines;l<p.length;l++){a(p[l])}b(i,e.fromStyles)},t.prototype._buildAnimation=function(t,e,n,o,s,a){var u=this,l=e.triggerName,p=e.element,h=[],d=new Set,f=new Set,y=e.timelines.map(function(e){var r=e.element;d.add(r);var c=r[Ut];if(c&&c.removedBeforeQueried)return new $.NoopAnimationPlayer;var y=r!==p,g=function(t){var e=[];return U(t,e),e}((n.get(r)||Bt).map(function(t){return t.getRealPlayer()})).filter(function(t){var e=t;return!!e.element&&e.element===r}),v=s.get(r),m=a.get(r),b=i(u.driver,u._normalizer,0,e.keyframes,v,m),_=u._buildPlayer(e,b,g);if(e.subTimeline&&o&&f.add(r),y){var x=new Xt(t,l,r);x.setRealPlayer(_),h.push(x)}return _});h.forEach(function(t){c(u.playersByQueriedElement,t.element,[]).push(t),t.onDone(function(){return function(t,e,n){var r;if(t instanceof Map){if(r=t.get(e)){if(r.length){var i=r.indexOf(n);r.splice(i,1)}0==r.length&&t.delete(e)}}else(r=t[e])&&(r.length&&(i=r.indexOf(n),r.splice(i,1)),0==r.length&&delete t[e]);return r}(u.playersByQueriedElement,t.element,t)})}),d.forEach(function(t){return H(t,"ng-animating")});var g=r(y);return g.onDestroy(function(){d.forEach(function(t){return z(t,"ng-animating")}),m(p,e.toStyles)}),f.forEach(function(t){c(o,t,[]).push(g)}),g},t.prototype._buildPlayer=function(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new $.NoopAnimationPlayer},t}(),Xt=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new $.NoopAnimationPlayer,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1}return Object.defineProperty(t.prototype,"queued",{get:function(){return 0==this._containsRealPlayer},enumerable:!0,configurable:!0}),t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return o(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0)},t.prototype.getRealPlayer=function(){return this._player},t.prototype.syncPlayerEvents=function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})},t.prototype._queueEvent=function(t,e){c(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._player.totalTime},enumerable:!0,configurable:!0}),t.prototype.triggerCallback=function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)},t}(),$t="$$classes",Qt=function(){function t(t,e){var n=this;this._driver=t,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new Kt(t,e),this._timelineEngine=new Lt(t,e),this._transitionEngine.onRemovalComplete=function(t,e){return n.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,r,i){var o=t+"-"+r,s=this._triggerCache[o];if(!s){var a=[],c=j(this._driver,i,a);if(a.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+a.join("\n - "));s=function(t,e){return new Dt(t,e)}(r,c),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(e,r,s)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)},t.prototype.onRemove=function(t,e,n){this._transitionEngine.removeNode(t,e,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,r){if("@"==n.charAt(0)){var i=u(n),o=i[0],s=i[1],a=r;this._timelineEngine.command(o,e,s,a)}else this._transitionEngine.trigger(t,e,n,r)},t.prototype.listen=function(t,e,n,r,i){if("@"==n.charAt(0)){var o=u(n),s=o[0],a=o[1];return this._timelineEngine.listen(s,e,a,i)}return this._transitionEngine.listen(t,e,n,r,i)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}(),Zt=function(){function t(t,e,n,r){void 0===r&&(r=[]);var i=this;this.element=t,this.keyframes=e,this.options=n,this.previousPlayers=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.previousStyles={},this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay,function(t,e){return 0===t||0===e}(this._duration,this._delay)&&r.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return i.previousStyles[t]=e[t]})})}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes.map(function(t){return v(t,!1)}),n=Object.keys(this.previousStyles);if(n.length){var r=e[0],i=[];if(n.forEach(function(e){r.hasOwnProperty(e)||i.push(e),r[e]=t.previousStyles[e]}),i.length)for(var o=this,s=function(){var t=e[a];i.forEach(function(e){t[e]=G(o.element,e)})},a=1;a<e.length;a++)s()}this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}},t.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this.domPlayer.play()},t.prototype.pause=function(){this.init(),this.domPlayer.pause()},t.prototype.finish=function(){this.init(),this._onFinish(),this.domPlayer.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.setPosition=function(t){this.domPlayer.currentTime=t*this.time},t.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:G(t.element,n))}),this.currentSnapshot=e},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),Jt=function(){function t(){}return t.prototype.validateStyleProperty=function(t){return l(t)},t.prototype.matchesElement=function(t,e){return rt(t,e)},t.prototype.containsElement=function(t,e){return it(t,e)},t.prototype.query=function(t,e,n){return ot(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.animate=function(t,e,n,r,i,o){void 0===o&&(o=[]);var s={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(s.easing=i);var a=o.filter(function(t){return t instanceof Zt});return new Zt(t,e,s,a)},t}();n.d(e,"a",function(){return le});var te=function(t){function e(e,n){var r=t.call(this)||this;r._nextAnimationId=0;var i={id:"0",encapsulation:Y.ViewEncapsulation.None,styles:[],data:{animation:[]}};return r._renderer=e.createRenderer(n.body,i),r}return Object(X.b)(e,t),e.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?Object($.sequence)(t):t;return q(this._renderer,null,e,"register",[n]),new ee(e,this._renderer)},e.decorators=[{type:Y.Injectable}],e.ctorParameters=function(){return[{type:Y.RendererFactory2},{type:void 0,decorators:[{type:Y.Inject,args:[K.DOCUMENT]}]}]},e}($.AnimationBuilder),ee=function(t){function e(e,n){var r=t.call(this)||this;return r._id=e,r._renderer=n,r}return Object(X.b)(e,t),e.prototype.create=function(t,e){return new ne(this._id,t,e||{},this._renderer)},e}($.AnimationFactory),ne=function(){function t(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return q(this._renderer,this.element,this.id,t,e)},t.prototype.onDone=function(t){this._listen("done",t)},t.prototype.onStart=function(t){this._listen("start",t)},t.prototype.onDestroy=function(t){this._listen("destroy",t)},t.prototype.init=function(){this._command("init")},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this._command("play"),this._started=!0},t.prototype.pause=function(){this._command("pause")},t.prototype.restart=function(){this._command("restart")},t.prototype.finish=function(){this._command("finish")},t.prototype.destroy=function(){this._command("destroy")},t.prototype.reset=function(){this._command("reset")},t.prototype.setPosition=function(t){this._command("setPosition",t)},t.prototype.getPosition=function(){return 0},t}(),re=function(){function t(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=function(t,e){e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}return t.prototype.createRenderer=function(t,e){var n=this,r=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){var i=this._rendererCache.get(r);return i||(i=new ie("",r,this.engine),this._rendererCache.set(r,i)),i}var o=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);return e.data.animation.forEach(function(e){return n.engine.registerTrigger(o,s,t,e.name,e)}),new oe(this,s,r,this.engine)},t.prototype.begin=function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()},t.prototype._scheduleCountTask=function(){var t=this;Zone.current.scheduleMicroTask("incremenet the animation microtask",function(){return t._microtaskId++})},t.prototype.scheduleListenerCallback=function(t,e,n){var r=this;t>=0&&t<this._microtaskId?this._zone.run(function(){return e(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){r._zone.run(function(){r._animationCallbacksBuffer.forEach(function(t){(0,t[0])(t[1])}),r._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))},t.prototype.end=function(){var t=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){t._scheduleCountTask(),t.engine.flush(t._microtaskId)}),this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.engine.whenRenderingDone()},t.decorators=[{type:Y.Injectable}],t.ctorParameters=function(){return[{type:Y.RendererFactory2},{type:Qt},{type:Y.NgZone}]},t}(),ie=function(){function t(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?function(t){return e.destroyNode(t)}:null}return Object.defineProperty(t.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()},t.prototype.createElement=function(t,e){return this.delegate.createElement(t,e)},t.prototype.createComment=function(t){return this.delegate.createComment(t)},t.prototype.createText=function(t){return this.delegate.createText(t)},t.prototype.appendChild=function(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)},t.prototype.insertBefore=function(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)},t.prototype.removeChild=function(t,e){this.engine.onRemove(this.namespaceId,e,this.delegate)},t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setAttribute=function(t,e,n,r){this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)},t.prototype.setValue=function(t,e){this.delegate.setValue(t,e)},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.disableAnimations=function(t,e){this.engine.disableAnimations(t,e)},t}(),oe=function(t){function e(e,n,r,i){var o=t.call(this,n,r,i)||this;return o.factory=e,o.namespaceId=n,o}return Object(X.b)(e,t),e.prototype.setProperty=function(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?(n=void 0===n||!!n,this.disableAnimations(t,n)):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)},e.prototype.listen=function(t,e,n){var r=this;if("@"==e.charAt(0)){var i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t),o=e.substr(1),s="";return"@"!=o.charAt(0)&&(o=(a=function(t){var e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(o))[0],s=a[1]),this.engine.listen(this.namespaceId,i,o,s,function(t){var e=t._data||-1;r.factory.scheduleListenerCallback(e,n,t)})}return this.delegate.listen(t,e,n);var a},e}(ie),se=function(t){function e(e,n){return t.call(this,e,n)||this}return Object(X.b)(e,t),e.decorators=[{type:Y.Injectable}],e.ctorParameters=function(){return[{type:at},{type:Pt}]},e}(Qt),ae=[{provide:$.AnimationBuilder,useClass:te},{provide:Pt,useFactory:function(){return new At}},{provide:Qt,useClass:se},{provide:Y.RendererFactory2,useFactory:function(t,e,n){return new re(t,e,n)},deps:[K["\u0275DomRendererFactory2"],Qt,Y.NgZone]}],ce=[{provide:at,useFactory:function(){return"undefined"!=typeof Element&&"function"==typeof Element.prototype.animate?new Jt:new st}}].concat(ae),ue=[{provide:at,useClass:st}].concat(ae),le=function(){function t(){}return t.decorators=[{type:Y.NgModule,args:[{exports:[K.BrowserModule],providers:ce}]}],t.ctorParameters=function(){return[]},t}();!function(){function t(){}t.decorators=[{type:Y.NgModule,args:[{exports:[K.BrowserModule],providers:ue}]}],t.ctorParameters=function(){return[]}}()},MIR9:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=n("3lsR"),s=n("iH09"),a=n("XR5H"),c=n("OXmC"),u=n("I64N"),l=750,p=function(t){function e(e){t.call(this,u.VirtualAction,l),this.assertDeepEqual=e,this.hotObservables=[],this.coldObservables=[],this.flushTests=[]}return r(e,t),e.prototype.createTime=function(t){var n=t.indexOf("|");if(-1===n)throw new Error('marble diagram for time should have a completion marker "|"');return n*e.frameTimeFactor},e.prototype.createColdObservable=function(t,n,r){if(-1!==t.indexOf("^"))throw new Error('cold observable cannot have subscription offset "^"');if(-1!==t.indexOf("!"))throw new Error('cold observable cannot have unsubscription marker "!"');var i=e.parseMarbles(t,n,r),o=new s.ColdObservable(i,this);return this.coldObservables.push(o),o},e.prototype.createHotObservable=function(t,n,r){if(-1!==t.indexOf("!"))throw new Error('hot observable cannot have unsubscription marker "!"');var i=e.parseMarbles(t,n,r),o=new a.HotObservable(i,this);return this.hotObservables.push(o),o},e.prototype.materializeInnerObservable=function(t,e){var n=this,r=[];return t.subscribe(function(t){r.push({frame:n.frame-e,notification:o.Notification.createNext(t)})},function(t){r.push({frame:n.frame-e,notification:o.Notification.createError(t)})},function(){r.push({frame:n.frame-e,notification:o.Notification.createComplete()})}),r},e.prototype.expectObservable=function(t,n){var r=this;void 0===n&&(n=null);var s,a=[],c={actual:a,ready:!1},u=e.parseMarblesAsSubscriptions(n).unsubscribedFrame;return this.schedule(function(){s=t.subscribe(function(t){var e=t;t instanceof i.Observable&&(e=r.materializeInnerObservable(e,r.frame)),a.push({frame:r.frame,notification:o.Notification.createNext(e)})},function(t){a.push({frame:r.frame,notification:o.Notification.createError(t)})},function(){a.push({frame:r.frame,notification:o.Notification.createComplete()})})},0),u!==Number.POSITIVE_INFINITY&&this.schedule(function(){return s.unsubscribe()},u),this.flushTests.push(c),{toBe:function(t,n,r){c.ready=!0,c.expected=e.parseMarbles(t,n,r,!0)}}},e.prototype.expectSubscriptions=function(t){var n={actual:t,ready:!1};return this.flushTests.push(n),{toBe:function(t){var r="string"==typeof t?[t]:t;n.ready=!0,n.expected=r.map(function(t){return e.parseMarblesAsSubscriptions(t)})}}},e.prototype.flush=function(){for(var e=this.hotObservables;e.length>0;)e.shift().setup();t.prototype.flush.call(this);for(var n=this.flushTests.filter(function(t){return t.ready});n.length>0;){var r=n.shift();this.assertDeepEqual(r.actual,r.expected)}},e.parseMarblesAsSubscriptions=function(t){if("string"!=typeof t)return new c.SubscriptionLog(Number.POSITIVE_INFINITY);for(var e=t.length,n=-1,r=Number.POSITIVE_INFINITY,i=Number.POSITIVE_INFINITY,o=0;o<e;o++){var s=o*this.frameTimeFactor,a=t[o];switch(a){case"-":case" ":break;case"(":n=s;break;case")":n=-1;break;case"^":if(r!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");r=n>-1?n:s;break;case"!":if(i!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");i=n>-1?n:s;break;default:throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+a+"'.")}}return i<0?new c.SubscriptionLog(r):new c.SubscriptionLog(r,i)},e.parseMarbles=function(t,e,n,r){if(void 0===r&&(r=!1),-1!==t.indexOf("!"))throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var i=t.length,a=[],c=t.indexOf("^"),u=-1===c?0:c*-this.frameTimeFactor,l="object"!=typeof e?function(t){return t}:function(t){return r&&e[t]instanceof s.ColdObservable?e[t].messages:e[t]},p=-1,h=0;h<i;h++){var d=h*this.frameTimeFactor+u,f=void 0,y=t[h];switch(y){case"-":case" ":break;case"(":p=d;break;case")":p=-1;break;case"|":f=o.Notification.createComplete();break;case"^":break;case"#":f=o.Notification.createError(n||"error");break;default:f=o.Notification.createNext(l(y))}f&&a.push({frame:p>-1?p:d,notification:f})}return a},e}(u.VirtualTimeScheduler);e.TestScheduler=p},MaQZ:function(t,e,n){"use strict";var r=n("bKpL"),i=n("etEa");r.Observable.prototype.find=i.find},MicL:function(t,e,n){"use strict";e.isScheduler=function(t){return t&&"function"==typeof t.schedule}},MzWM:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=n("ktfo"),s=n("yW9Z"),a=function(t){function e(e){t.call(this),this.observableFactory=e}return r(e,t),e.create=function(t){return new e(t)},e.prototype._subscribe=function(t){return new c(t,this.observableFactory)},e}(i.Observable);e.DeferObservable=a;var c=function(t){function e(e,n){t.call(this,e),this.factory=n,this.tryDefer()}return r(e,t),e.prototype.tryDefer=function(){try{this._callFactory()}catch(t){this._error(t)}},e.prototype._callFactory=function(){var t=this.factory();t&&this.add(o.subscribeToResult(this,t))},e}(s.OuterSubscriber)},NGRF:function(t,e,n){"use strict";e.a=function(t){return null!=t&&"object"==typeof t}},NOvV:function(t,e,n){"use strict";var r=n("bKpL"),i=n("Pf4u");r.Observable.prototype.onErrorResumeNext=i.onErrorResumeNext},NSJx:function(t,e,n){"use strict";e.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},NUku:function(t,e,n){"use strict";var r=n("+vKo");e.buffer=function(t){return r.buffer(t)(this)}},NZPJ:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=n("MicL"),s=function(t){return t},a=function(t){function e(e,n,r,i,o){t.call(this),this.initialState=e,this.condition=n,this.iterate=r,this.resultSelector=i,this.scheduler=o}return r(e,t),e.create=function(t,n,r,i,a){return 1==arguments.length?new e(t.initialState,t.condition,t.iterate,t.resultSelector||s,t.scheduler):void 0===i||o.isScheduler(i)?new e(t,n,r,s,i):new e(t,n,r,i,a)},e.prototype._subscribe=function(t){var n=this.initialState;if(this.scheduler)return this.scheduler.schedule(e.dispatch,0,{subscriber:t,iterate:this.iterate,condition:this.condition,resultSelector:this.resultSelector,state:n});for(var r=this.condition,i=this.resultSelector,o=this.iterate;;){if(r){var s=void 0;try{s=r(n)}catch(e){return void t.error(e)}if(!s){t.complete();break}}var a=void 0;try{a=i(n)}catch(e){return void t.error(e)}if(t.next(a),t.closed)break;try{n=o(n)}catch(e){return void t.error(e)}}},e.dispatch=function(t){var e=t.subscriber,n=t.condition;if(!e.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(t){return void e.error(t)}else t.needIterate=!0;if(n){var r=void 0;try{r=n(t.state)}catch(t){return void e.error(t)}if(!r)return void e.complete();if(e.closed)return}var i;try{i=t.resultSelector(t.state)}catch(t){return void e.error(t)}if(!e.closed&&(e.next(i),!e.closed))return this.schedule(t)}},e}(i.Observable);e.GenerateObservable=a},NePw:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r={e:{}}},NgMz:function(t,e,n){"use strict";var r=n("IfwN");e.findIndex=function(t,e){return r.findIndex(t,e)(this)}},NiCh:function(t,e,n){"use strict";var r=n("8rcZ");e.concatAll=function(){return r.mergeAll(1)}},NkQZ:function(t,e,n){"use strict";var r=n("0lA3");e.switchMapTo=function(t,e){return r.switchMapTo(t,e)(this)}},NzSV:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("yW9Z"),o=n("ktfo");e.exhaustMap=function(t,e){return function(n){return n.lift(new s(t,e))}};var s=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.resultSelector))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.resultSelector=r,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}return r(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e=this.index++,n=this.destination;try{var r=this.project(t,e);this.hasSubscription=!0,this.add(o.subscribeToResult(this,r,t,e))}catch(t){n.error(t)}},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.resultSelector,s=this.destination;o?this.trySelectResult(t,e,n,r):s.next(e)},e.prototype.trySelectResult=function(t,e,n,r){var i=this.resultSelector,o=this.destination;try{var s=i(t,e,n,r);o.next(s)}catch(t){o.error(t)}},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(i.OuterSubscriber)},OADz:function(t,e,n){"use strict";var r=n("p4do");e.withLatestFrom=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r.withLatestFrom.apply(void 0,t)(this)}},OCM8:function(t,e,n){"use strict";var r=n("qfkx");e.publishLast=function(){return r.publishLast()(this)}},OGSH:function(t,e,n){"use strict";var r=n("bKpL"),i=n("c2EU");r.Observable.prototype.throttle=i.throttle},OWbQ:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("NSJx"),o=n("lhZu"),s=n("mUVF"),a=n("mihg"),c=n("TA58"),u=n("wZOE"),l=n("wCVK"),p=n("2B7B"),h=n("bKpL"),d=n("GDiU"),f=n("DP67"),y=function(t){function e(e,n){t.call(this,null),this.ish=e,this.scheduler=n}return r(e,t),e.create=function(t,n){if(null!=t){if("function"==typeof t[f.observable])return t instanceof h.Observable&&!n?t:new e(t,n);if(i.isArray(t))return new u.ArrayObservable(t,n);if(s.isPromise(t))return new a.PromiseObservable(t,n);if("function"==typeof t[p.iterator]||"string"==typeof t)return new c.IteratorObservable(t,n);if(o.isArrayLike(t))return new l.ArrayLikeObservable(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")},e.prototype._subscribe=function(t){var e=this.ish,n=this.scheduler;return null==n?e[f.observable]().subscribe(t):e[f.observable]().subscribe(new d.ObserveOnSubscriber(t,n,0))},e}(h.Observable);e.FromObservable=y},OXmC:function(t,e,n){"use strict";var r=function(){return function(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.subscribedFrame=t,this.unsubscribedFrame=e}}();e.SubscriptionLog=r},Obns:function(t,e,n){"use strict";var r=n("2l91");e.debounce=function(t){return r.debounce(t)(this)}},OdUO:function(t,e,n){"use strict";var r=n("k6cv");e.elementAt=function(t,e){return r.elementAt(t,e)(this)}},Ohh6:function(t,e,n){"use strict";var r=n("dtBE");e.startWith=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r.startWith.apply(void 0,t)(this)}},Oryw:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("AP4T"),i=n("8Ut3"),o=n("Ecq+"),s=n("3iOE"),a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},c=function(t){function e(e,n){t.call(this),this.array=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return a(e,t),e.create=function(t,n){return new e(t,n)},e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];var r=t[t.length-1];Object(s.a)(r)?t.pop():r=null;var a=t.length;return a>1?new e(t,r):1===a?new i.a(t[0],r):new o.a(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.count,i=t.subscriber;n>=r?i.complete():(i.next(e[n]),i.closed||(t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.array,r=n.length,i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{array:n,index:0,count:r,subscriber:t});for(var o=0;o<r&&!t.closed;o++)t.next(n[o]);t.complete()},e}(r.Observable)},Ozq5:function(t,e,n){"use strict";var r=n("bKpL"),i=n("GoZW");r.Observable.prototype.pluck=i.pluck},"P+lj":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=n("wEhC"),s=n("EsGe"),a=function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r=o.asap),t.call(this),this.source=e,this.delayTime=n,this.scheduler=r,(!s.isNumeric(n)||n<0)&&(this.delayTime=0),r&&"function"==typeof r.schedule||(this.scheduler=o.asap)}return r(e,t),e.create=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=o.asap),new e(t,n,r)},e.dispatch=function(t){var e=t.source,n=t.subscriber;return this.add(e.subscribe(n))},e.prototype._subscribe=function(t){var n=this.delayTime,r=this.source;return this.scheduler.schedule(e.dispatch,n,{source:r,subscriber:t})},e}(i.Observable);e.SubscribeOnObservable=a},P02W:function(t,e,n){"use strict";var r=n("xKl2");e.multicast=function(t,e){return function(n){var o;if(o="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new i(o,e));var s=Object.create(n,r.connectableObservableDescriptor);return s.source=n,s.subjectFactory=o,s}};var i=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}();e.MulticastOperator=i},PT4i:function(t,e,n){"use strict";var r=n("Yvsb");e.never=r.NeverObservable.create},PatI:function(t,e,n){"use strict";var r=n("bKpL"),i=n("gonN");r.Observable.prototype.multicast=i.multicast},PbxL:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+");e.defaultIfEmpty=function(t){return void 0===t&&(t=null),function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.defaultValue))},t}(),s=function(t){function e(e,n){t.call(this,e),this.defaultValue=n,this.isEmpty=!0}return r(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(i.Subscriber)},Pf4u:function(t,e,n){"use strict";var r=n("r6G9");e.onErrorResumeNext=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r.onErrorResumeNext.apply(void 0,t)(this)}},Pic8:function(t,e,n){"use strict";var r=n("bKpL"),i=n("aCMF");r.Observable.prototype.switchMap=i.switchMap},Plqt:function(t,e,n){"use strict";var r=n("bKpL"),i=n("Tq0x");r.Observable.prototype.reduce=i.reduce},PwNK:function(t,e,n){"use strict";var r=n("tAjV");e.audit=function(t){return r.audit(t)(this)}},QHK3:function(t,e,n){"use strict";var r=n("LEug"),i=n("LEug");e.mergeStatic=i.merge,e.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){return e.lift.call(r.merge.apply(void 0,[e].concat(t)))}}},QU9E:function(t,e,n){"use strict";var r=n("mihg");e.fromPromise=r.PromiseObservable.create},QgC4:function(t,e,n){"use strict";var r=n("yIff");e.webSocket=r.WebSocketSubject.create},QsbA:function(t,e,n){"use strict";var r=n("kqkQ");e.windowWhen=function(t){return r.windowWhen(t)(this)}},Qv0T:function(t,e,n){"use strict";function r(t){var e=t.obj,n=t.keys,r=t.length,i=t.index,o=t.subscriber;if(i!==r){var s=n[i];o.next([s,e[s]]),t.index=i+1,this.schedule(t)}else o.complete()}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e,n){t.call(this),this.obj=e,this.scheduler=n,this.keys=Object.keys(e)}return i(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this.keys,n=this.scheduler,i=e.length;if(n)return n.schedule(r,0,{obj:this.obj,keys:e,length:i,index:0,subscriber:t});for(var o=0;o<i;o++){var s=e[o];t.next([s,this.obj[s]])}t.complete()},e}(n("bKpL").Observable);e.PairsObservable=o},R0J0:function(t,e,n){"use strict";var r=n("bKpL"),i=n("Kt+M");r.Observable.prototype.concat=i.concat},"R3/v":function(t,e,n){"use strict";var r=n("IhB/"),i=n("EsGe"),o=n("MicL"),s=n("dffx");e.windowTime=function(t){var e=r.async,n=null,a=Number.POSITIVE_INFINITY;return o.isScheduler(arguments[3])&&(e=arguments[3]),o.isScheduler(arguments[2])?e=arguments[2]:i.isNumeric(arguments[2])&&(a=arguments[2]),o.isScheduler(arguments[1])?e=arguments[1]:i.isNumeric(arguments[1])&&(n=arguments[1]),s.windowTime(t,n,a,e)(this)}},R61s:function(t,e,n){"use strict";var r=n("zijX"),i=n("wQte");e.Map=r.root.Map||i.MapPolyfill},RNRn:function(t,e,n){"use strict";var r=n("bKpL"),i=n("R3/v");r.Observable.prototype.windowTime=i.windowTime},RSzd:function(t,e,n){"use strict";var r=n("AP4T"),i=n("lI6h"),o=n("qgI0"),s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.project,this.resultSelector))},t}(),c=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.resultSelector=r,this.index=0}return s(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe(),this.add(this.innerSubscription=Object(o.a)(this,t,e,n))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.resultSelector?this._tryNotifyNext(t,e,n,r):this.destination.next(e)},e.prototype._tryNotifyNext=function(t,e,n,r){var i;try{i=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(i)},e}(i.a);r.Observable.prototype.switchMap=function(t,e){return function(t,e){return function(n){return n.lift(new a(t,e))}}(t,e)(this)}},RdI5:function(t,e,n){"use strict";function r(){try{return i.apply(this,arguments)}catch(t){return o.errorObject.e=t,o.errorObject}}var i,o=n("XRvs");e.tryCatch=function(t){return i=t,r}},Rol4:function(t,e,n){"use strict";function r(t){t.subscriber.clearThrottle()}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("IhB/"),a=n("DrEP");e.throttleTime=function(t,e,n){return void 0===e&&(e=s.async),void 0===n&&(n=a.defaultThrottleConfig),function(r){return r.lift(new c(t,e,n.leading,n.trailing))}};var c=function(){function t(t,e,n,r){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),u=function(t){function e(e,n,r,i,o){t.call(this,e),this.duration=n,this.scheduler=r,this.leading=i,this.trailing=o,this._hasTrailingValue=!1,this._trailingValue=null}return i(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(r,this.duration,{subscriber:this})),this.leading&&this.destination.next(t))},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(o.Subscriber)},RpuY:function(t,e,n){"use strict";var r=n("bKpL"),i=n("cPhF");r.Observable.prototype.mergeMap=i.mergeMap,r.Observable.prototype.flatMap=i.mergeMap},RvTY:function(t,e,n){"use strict";var r=n("j8LY");e.mergeMapTo=function(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),r.mergeMapTo(t,e,n)(this)}},RyBE:function(t,e,n){"use strict";function r(){return M}function i(t){M||(M=t)}function o(){return!!window.history.pushState}function s(t,e,n){return function(){n.get(k.ApplicationInitStatus).donePromise.then(function(){var n=r();Array.prototype.slice.apply(n.querySelectorAll(e,"style[ng-transition]")).filter(function(e){return n.getAttribute(e,"ng-transition")===t}).forEach(function(t){return n.remove(t)})})}}function a(t,e){if("undefined"==typeof COMPILED||!COMPILED){(k["\u0275global"].ng=k["\u0275global"].ng||{})[t]=e}}function c(t){return Object(k.getDebugNode)(t)}function u(t){return a(Z,c),a(J,Object(R.a)({},Q,function(t){return t.reduce(function(t,e){return t[e.name]=e.token,t},{})}(t||[]))),function(){return c}}function l(t){return ut.replace(at,t)}function p(t){return ct.replace(at,t)}function h(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];Array.isArray(i)?h(t,i,n):(i=i.replace(at,t),n.push(i))}return n}function d(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}function f(t,e){if(t.charCodeAt(0)===ht)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}function y(t){return(t=String(t)).match(Rt)||t.match(Mt)?t:(Object(k.isDevMode)()&&r().log("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function g(t){for(var e={},n=0,r=t.split(",");n<r.length;n++){e[r[n]]=!0}return e}function v(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n={},r=0,i=t;r<i.length;r++){var o=i[r];for(var s in o)o.hasOwnProperty(s)&&(n[s]=!0)}return n}function m(t,e){if(e&&Nt.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+Nt.getOuterHTML(t));return e}function b(t){return t.replace(/&/g,"&").replace(Xt,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace($t,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function _(t){Nt.attributeMap(t).forEach(function(e,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||Nt.removeAttribute(t,n)});for(var e=0,n=Nt.childNodesAsList(t);e<n.length;e++){var r=n[e];Nt.isElementNode(r)&&_(r)}}function x(t,e){try{var n=function(){if(Dt)return Dt;var t=(Nt=r()).createElement("template");if("content"in t)return t;var e=Nt.createHtmlDocument();if(null==(Dt=Nt.querySelector(e,"body"))){var n=Nt.createElement("html",e);Dt=Nt.createElement("body",e),Nt.appendChild(n,Dt),Nt.appendChild(e,n)}return Dt}(),i=e?String(e):"",o=5,s=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=s,Nt.setInnerHTML(n,i),t.documentMode&&_(n),s=Nt.getInnerHTML(n)}while(i!==s);for(var a=new Kt,c=a.sanitizeChildren(Nt.getTemplateContent(n)||n),u=Nt.getTemplateContent(n)||n,l=0,p=Nt.childNodesAsList(u);l<p.length;l++){var h=p[l];Nt.removeChild(u,h)}return Object(k.isDevMode)()&&a.sanitizedSomething&&Nt.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),c}catch(t){throw Dt=null,t}}function w(){z.makeCurrent(),X.init()}function O(){return new k.ErrorHandler}function S(){return document}function C(t){return a(fe,new de(t)),t}function E(){a(fe,null)}function T(t){var e={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return t.replace(/[&"'<>]/g,function(t){return e[t]})}function j(t){return t}function P(t,e){var n=t.getElementById(e+"-state"),r={};if(n&&n.textContent)try{r=JSON.parse(function(t){var e={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return t.replace(/&[^;]+;/g,function(t){return e[t]})}(n.textContent))}catch(t){console.warn("Exception while restoring TransferState for app "+e,t)}return ye.init(r)}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"BrowserModule",function(){return le}),n.d(e,"platformBrowser",function(){return ue}),n.d(e,"Meta",function(){return q}),n.d(e,"Title",function(){return $}),n.d(e,"disableDebugTools",function(){return E}),n.d(e,"enableDebugTools",function(){return C}),n.d(e,"BrowserTransferStateModule",function(){return ge}),n.d(e,"TransferState",function(){return ye}),n.d(e,"makeStateKey",function(){return j}),n.d(e,"By",function(){return ve}),n.d(e,"DOCUMENT",function(){return W}),n.d(e,"EVENT_MANAGER_PLUGINS",function(){return et}),n.d(e,"EventManager",function(){return nt}),n.d(e,"HAMMER_GESTURE_CONFIG",function(){return Tt}),n.d(e,"HammerGestureConfig",function(){return jt}),n.d(e,"DomSanitizer",function(){return Jt}),n.d(e,"VERSION",function(){return me}),n.d(e,"\u0275BROWSER_SANITIZATION_PROVIDERS",function(){return ce}),n.d(e,"\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS",function(){return ae}),n.d(e,"\u0275initDomAdapter",function(){return w}),n.d(e,"\u0275BrowserDomAdapter",function(){return z}),n.d(e,"\u0275BrowserPlatformLocation",function(){return G}),n.d(e,"\u0275TRANSITION_ID",function(){return Y}),n.d(e,"\u0275BrowserGetTestability",function(){return X}),n.d(e,"\u0275escapeHtml",function(){return T}),n.d(e,"\u0275ELEMENT_PROBE_PROVIDERS",function(){return tt}),n.d(e,"\u0275DomAdapter",function(){return D}),n.d(e,"\u0275getDOM",function(){return r}),n.d(e,"\u0275setRootDomAdapter",function(){return i}),n.d(e,"\u0275DomRendererFactory2",function(){return lt}),n.d(e,"\u0275NAMESPACE_URIS",function(){return st}),n.d(e,"\u0275flattenStyles",function(){return h}),n.d(e,"\u0275shimContentAttribute",function(){return l}),n.d(e,"\u0275shimHostAttribute",function(){return p}),n.d(e,"\u0275DomEventsPlugin",function(){return Ct}),n.d(e,"\u0275HammerGesturesPlugin",function(){return Pt}),n.d(e,"\u0275KeyEventsPlugin",function(){return kt}),n.d(e,"\u0275DomSharedStylesHost",function(){return ot}),n.d(e,"\u0275SharedStylesHost",function(){return it}),n.d(e,"\u0275b",function(){return S}),n.d(e,"\u0275a",function(){return O}),n.d(e,"\u0275i",function(){return N}),n.d(e,"\u0275g",function(){return K}),n.d(e,"\u0275f",function(){return s}),n.d(e,"\u0275c",function(){return P}),n.d(e,"\u0275h",function(){return u}),n.d(e,"\u0275d",function(){return rt}),n.d(e,"\u0275e",function(){return te});var A,I=n("Un6q"),k=n("LMZF"),R=n("6Xbx"),M=null,D=function(){function t(){this.resourceLoaderType=null}return Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t}(),N=function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],i=0;i<r.length;i++)if(null!=e.getStyle(n,r[i]+"AnimationName")){e._animationPrefix="-"+r[i].toLowerCase()+"-";break}var o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(o).forEach(function(t){null!=e.getStyle(n,t)&&(e._transitionEnd=o[t])})}catch(t){e._animationPrefix=null,e._transitionEnd=null}return e}return Object(R.b)(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,n){t.href=null==n?e:e+"/../"+n},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},e}(D),L={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},F={"\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"},V={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"};k["\u0275global"].Node&&(A=k["\u0275global"].Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var B,H,z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(R.b)(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){i(new e)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){(r=t)[e].apply(r,n);var r},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return L},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return A.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=this.getDefaultDocument().createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=this.getDefaultDocument().createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&this.isTemplateElement(t)?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),r=0;r<e.length;r++)n[r]=e[r];return n},e.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},e.prototype.appendChild=function(t,e){t.appendChild(e)},e.prototype.removeChild=function(t,e){t.removeChild(e)},e.prototype.replaceChild=function(t,e,n){t.replaceChild(e,n)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.insertBefore=function(t,e,n){t.insertBefore(n,e)},e.prototype.insertAllBefore=function(t,e,n){n.forEach(function(n){return t.insertBefore(n,e)})},e.prototype.insertAfter=function(t,e,n){t.insertBefore(n,e.nextSibling)},e.prototype.setInnerHTML=function(t,e){t.innerHTML=e},e.prototype.getText=function(t){return t.textContent},e.prototype.setText=function(t,e){t.textContent=e},e.prototype.getValue=function(t){return t.value},e.prototype.setValue=function(t,e){t.value=e},e.prototype.getChecked=function(t){return t.checked},e.prototype.setChecked=function(t,e){t.checked=e},e.prototype.createComment=function(t){return this.getDefaultDocument().createComment(t)},e.prototype.createTemplate=function(t){var e=this.getDefaultDocument().createElement("template");return e.innerHTML=t,e},e.prototype.createElement=function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)},e.prototype.createElementNS=function(t,e,n){return(n=n||this.getDefaultDocument()).createElementNS(t,e)},e.prototype.createTextNode=function(t,e){return(e=e||this.getDefaultDocument()).createTextNode(t)},e.prototype.createScriptTag=function(t,e,n){var r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(t,e),r},e.prototype.createStyleElement=function(t,e){var n=(e=e||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(t,e)),n},e.prototype.createShadowRoot=function(t){return t.createShadowRoot()},e.prototype.getShadowRoot=function(t){return t.shadowRoot},e.prototype.getHost=function(t){return t.host},e.prototype.clone=function(t){return t.cloneNode(!0)},e.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},e.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},e.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},e.prototype.addClass=function(t,e){t.classList.add(e)},e.prototype.removeClass=function(t,e){t.classList.remove(e)},e.prototype.hasClass=function(t,e){return t.classList.contains(e)},e.prototype.setStyle=function(t,e,n){t.style[e]=n},e.prototype.removeStyle=function(t,e){t.style[e]=""},e.prototype.getStyle=function(t,e){return t.style[e]},e.prototype.hasStyle=function(t,e,n){var r=this.getStyle(t,e)||"";return n?r==n:r.length>0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r<n.length;r++){var i=n.item(r);e.set(i.name,i.value)}return e},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.hasAttributeNS=function(t,e,n){return t.hasAttributeNS(e,n)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.getAttributeNS=function(t,e,n){return t.getAttributeNS(e,n)},e.prototype.setAttribute=function(t,e,n){t.setAttribute(e,n)},e.prototype.setAttributeNS=function(t,e,n,r){t.setAttributeNS(e,n,r)},e.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},e.prototype.removeAttributeNS=function(t,e,n){t.removeAttributeNS(e,n)},e.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.getDefaultDocument=function(){return document},e.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},e.prototype.getTitle=function(t){return t.title},e.prototype.setTitle=function(t,e){t.title=e||""},e.prototype.elementMatches=function(t,e){return!!this.isElementNode(t)&&(t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e))},e.prototype.isTemplateElement=function(t){return this.isElementNode(t)&&"TEMPLATE"===t.nodeName},e.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},e.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},e.prototype.adoptNode=function(t){return document.adoptNode(t)},e.prototype.getHref=function(t){return t.getAttribute("href")},e.prototype.getEventKey=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&V.hasOwnProperty(e)&&(e=V[e]))}return F[e]||e},e.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(t){var e=U||(U=document.querySelector("base"))?U.getAttribute("href"):null;return null==e?null:function(t){return B||(B=document.createElement("a")),B.setAttribute("href",t),"/"===B.pathname.charAt(0)?B.pathname:"/"+B.pathname}(e)},e.prototype.resetBaseElement=function(){U=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.setData=function(t,e,n){this.setAttribute(t,"data-"+e,n)},e.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},e.prototype.getComputedStyle=function(t){return getComputedStyle(t)},e.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},e.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},e.prototype.supportsCookies=function(){return!0},e.prototype.getCookie=function(t){return Object(I["\u0275parseCookieValue"])(document.cookie,t)},e.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},e}(N),U=null,W=I.DOCUMENT,G=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return Object(R.b)(e,t),e.prototype._init=function(){this.location=r().getLocation(),this._history=r().getHistory()},e.prototype.getBaseHrefFromDOM=function(){return r().getBaseHref(this._doc)},e.prototype.onPopState=function(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this.location.pathname},set:function(t){this.location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){o()?this._history.pushState(t,e,n):this.location.hash=n},e.prototype.replaceState=function(t,e,n){o()?this._history.replaceState(t,e,n):this.location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e.decorators=[{type:k.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:k.Inject,args:[W]}]}]},e}(I.PlatformLocation),q=function(){function t(t){this._doc=t,this._dom=r()}return t.prototype.addTag=function(t,e){return void 0===e&&(e=!1),t?this._getOrCreateElement(t,e):null},t.prototype.addTags=function(t,e){var n=this;return void 0===e&&(e=!1),t?t.reduce(function(t,r){return r&&t.push(n._getOrCreateElement(r,e)),t},[]):[]},t.prototype.getTag=function(t){return t?this._dom.querySelector(this._doc,"meta["+t+"]")||null:null},t.prototype.getTags=function(t){if(!t)return[];var e=this._dom.querySelectorAll(this._doc,"meta["+t+"]");return e?[].slice.call(e):[]},t.prototype.updateTag=function(t,e){if(!t)return null;e=e||this._parseSelector(t);var n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)},t.prototype.removeTag=function(t){this.removeTagElement(this.getTag(t))},t.prototype.removeTagElement=function(t){t&&this._dom.remove(t)},t.prototype._getOrCreateElement=function(t,e){if(void 0===e&&(e=!1),!e){var n=this._parseSelector(t),r=this.getTag(n);if(r&&this._containsAttributes(t,r))return r}var i=this._dom.createElement("meta");this._setMetaElementAttributes(t,i);var o=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(o,i),i},t.prototype._setMetaElementAttributes=function(t,e){var n=this;return Object.keys(t).forEach(function(r){return n._dom.setAttribute(e,r,t[r])}),e},t.prototype._parseSelector=function(t){var e=t.name?"name":"property";return e+'="'+t[e]+'"'},t.prototype._containsAttributes=function(t,e){var n=this;return Object.keys(t).every(function(r){return n._dom.getAttribute(e,r)===t[r]})},t.decorators=[{type:k.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:k.Inject,args:[W]}]}]},t}(),Y=new k.InjectionToken("TRANSITION_ID"),K=[{provide:k.APP_INITIALIZER,useFactory:s,deps:[Y,W,k.Injector],multi:!0}],X=function(){function t(){}return t.init=function(){Object(k.setTestabilityGetter)(new t)},t.prototype.addToWindow=function(t){k["\u0275global"].getAngularTestability=function(e,n){void 0===n&&(n=!0);var r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},k["\u0275global"].getAllAngularTestabilities=function(){return t.getAllTestabilities()},k["\u0275global"].getAllAngularRootElements=function(){return t.getAllRootElements()};k["\u0275global"].frameworkStabilizers||(k["\u0275global"].frameworkStabilizers=[]),k["\u0275global"].frameworkStabilizers.push(function(t){var e=k["\u0275global"].getAllAngularTestabilities(),n=e.length,r=!1,i=function(e){r=r||e,0==--n&&t(r)};e.forEach(function(t){t.whenStable(i)})})},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var i=t.getTestability(e);return null!=i?i:n?r().isShadowRoot(e)?this.findTestabilityInTree(t,r().getHost(e),!0):this.findTestabilityInTree(t,r().parentElement(e),!0):null},t}(),$=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return r().getTitle(this._doc)},t.prototype.setTitle=function(t){r().setTitle(this._doc,t)},t.decorators=[{type:k.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:k.Inject,args:[W]}]}]},t}(),Q={ApplicationRef:k.ApplicationRef,NgZone:k.NgZone},Z="probe",J="coreTokens",tt=[{provide:k.APP_INITIALIZER,useFactory:u,deps:[[k.NgProbeToken,new k.Optional]],multi:!0}],et=new k.InjectionToken("EventManagerPlugins"),nt=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=n}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(t))return this._eventNameToPlugin.set(t,i),i}throw new Error("No event manager plugin found for event "+t)},t.decorators=[{type:k.Injectable}],t.ctorParameters=function(){return[{type:Array,decorators:[{type:k.Inject,args:[et]}]},{type:k.NgZone}]},t}(),rt=function(){function t(t){this._doc=t}return t.prototype.addGlobalEventListener=function(t,e,n){var i=r().getGlobalEventTarget(this._doc,t);if(!i)throw new Error("Unsupported event target "+i+" for event "+e);return this.addEventListener(i,e,n)},t}(),it=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))}),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(t){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t.decorators=[{type:k.Injectable}],t.ctorParameters=function(){return[]},t}(),ot=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(e.head),n}return Object(R.b)(e,t),e.prototype._addStylesToHost=function(t,e){var n=this;t.forEach(function(t){var r=n._doc.createElement("style");r.textContent=t,n._styleNodes.add(e.appendChild(r))})},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes.delete(t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(n){return e._addStylesToHost(t,n)})},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return r().remove(t)})},e.decorators=[{type:k.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:k.Inject,args:[W]}]}]},e}(it),st={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},at=/%COMP%/g,ct="_nghost-%COMP%",ut="_ngcontent-%COMP%",lt=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new pt(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case k.ViewEncapsulation.Emulated:var n=this.rendererByCompId.get(e.id);return n||(n=new dt(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n;case k.ViewEncapsulation.Native:return new ft(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var r=h(e.id,e.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t.prototype.begin=function(){},t.prototype.end=function(){},t.decorators=[{type:k.Injectable}],t.ctorParameters=function(){return[{type:nt},{type:ot}]},t}(),pt=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(st[e],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,n){t&&t.insertBefore(e,n)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t){var e="string"==typeof t?document.querySelector(t):t;if(!e)throw new Error('The selector "'+t+'" did not match any elements');return e.textContent="",e},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,n,r){if(r){e=r+":"+e;var i=st[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var r=st[n];r?t.removeAttributeNS(r,e):t.removeAttribute(n+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,n,r){r&k.RendererStyleFlags2.DashCase?t.style.setProperty(e,n,r&k.RendererStyleFlags2.Important?"important":""):t.style[e]=n},t.prototype.removeStyle=function(t,e,n){n&k.RendererStyleFlags2.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){f(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return f(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,d(n)):this.eventManager.addEventListener(t,e,d(n))},t}(),ht="@".charCodeAt(0),dt=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.component=r;var o=h(r.id,r.styles,[]);return n.addStyles(o),i.contentAttr=l(r.id),i.hostAttr=p(r.id),i}return Object(R.b)(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,n){var r=t.prototype.createElement.call(this,e,n);return t.prototype.setAttribute.call(this,r,this.contentAttr,""),r},e}(pt),ft=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;o.sharedStylesHost=n,o.hostEl=r,o.component=i,o.shadowRoot=r.createShadowRoot(),o.sharedStylesHost.addHost(o.shadowRoot);for(var s=h(i.id,i.styles,[]),a=0;a<s.length;a++){var c=document.createElement("style");c.textContent=s[a],o.shadowRoot.appendChild(c)}return o}return Object(R.b)(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,n){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.insertBefore=function(e,n,r){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),n,r)},e.prototype.removeChild=function(e,n){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(pt),yt="undefined"!=typeof Zone&&Zone.__symbol__||function(t){return"__zone_symbol__"+t},gt=yt("addEventListener"),vt=yt("removeEventListener"),mt={},bt="removeEventListener",_t="__zone_symbol__propagationStopped",xt="__zone_symbol__stopImmediatePropagation",wt="undefined"!=typeof Zone&&Zone[yt("BLACK_LISTED_EVENTS")];wt&&(H={},wt.forEach(function(t){H[t]=t}));var Ot=function(t){return!!H&&H.hasOwnProperty(t)},St=function(t){var e=mt[t.type];if(e){var n=this[e];if(n){var r=[t];if(1===n.length){return(s=n[0]).zone!==Zone.current?s.zone.run(s.handler,this,r):s.handler.apply(this,r)}for(var i=n.slice(),o=0;o<i.length&&!0!==t[_t];o++){var s;(s=i[o]).zone!==Zone.current?s.zone.run(s.handler,this,r):s.handler.apply(this,r)}}}},Ct=function(t){function e(e,n){var r=t.call(this,e)||this;return r.ngZone=n,r.patchEvent(),r}return Object(R.b)(e,t),e.prototype.patchEvent=function(){if(Event&&Event.prototype&&!Event.prototype[xt]){var t=Event.prototype[xt]=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[_t]=!0),t&&t.apply(this,arguments)}}},e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,n){var r=this,i=n;if(!t[gt]||k.NgZone.isInAngularZone()&&!Ot(e))t.addEventListener(e,i,!1);else{var o=mt[e];o||(o=mt[e]=yt("ANGULAR"+e+"FALSE"));var s=t[o],a=s&&s.length>0;s||(s=t[o]=[]);var c=Ot(e)?Zone.root:Zone.current;if(0===s.length)s.push({zone:c,handler:i});else{for(var u=!1,l=0;l<s.length;l++)if(s[l].handler===i){u=!0;break}u||s.push({zone:c,handler:i})}a||t[gt](e,St,!1)}return function(){return r.removeEventListener(t,e,i)}},e.prototype.removeEventListener=function(t,e,n){var r=t[vt];if(!r)return t[bt].apply(t,[e,n,!1]);var i=mt[e],o=i&&t[i];if(!o)return t[bt].apply(t,[e,n,!1]);for(var s=!1,a=0;a<o.length;a++)if(o[a].handler===n){s=!0,o.splice(a,1);break}s?0===o.length&&r.apply(t,[e,St,!1]):t[bt].apply(t,[e,n,!1])},e.decorators=[{type:k.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:k.Inject,args:[W]}]},{type:k.NgZone}]},e}(rt),Et={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},Tt=new k.InjectionToken("HammerGestureConfig"),jt=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(var n in this.overrides)e.get(n).set(this.overrides[n]);return e},t.decorators=[{type:k.Injectable}],t.ctorParameters=function(){return[]},t}(),Pt=function(t){function e(e,n){var r=t.call(this,e)||this;return r._config=n,r}return Object(R.b)(e,t),e.prototype.supports=function(t){if(!Et.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+t+" event");return!0},e.prototype.addEventListener=function(t,e,n){var r=this,i=this.manager.getZone();return e=e.toLowerCase(),i.runOutsideAngular(function(){var o=r._config.buildHammer(t),s=function(t){i.runGuarded(function(){n(t)})};return o.on(e,s),function(){return o.off(e,s)}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e.decorators=[{type:k.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:k.Inject,args:[W]}]},{type:jt,decorators:[{type:k.Inject,args:[Tt]}]}]},e}(rt),At=["alt","control","meta","shift"],It={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},kt=function(t){function e(e){return t.call(this,e)||this}return Object(R.b)(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,i){var o=e.parseEventName(n),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return r().onAndCancel(t,o.domEventName,s)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=e._normalizeKey(n.pop()),o="";if(At.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s},e.getEventFullKey=function(t){var e="",n=r().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),At.forEach(function(r){if(r!=n){(0,It[r])(t)&&(e+=r+".")}}),e+=n},e.eventCallback=function(t,n,r){return function(i){e.getEventFullKey(i)===t&&r.runGuarded(function(){return n(i)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e.decorators=[{type:k.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:k.Inject,args:[W]}]}]},e}(rt),Rt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Mt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,Dt=null,Nt=null,Lt=g("area,br,col,hr,img,wbr"),Ft=g("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Vt=g("rp,rt"),Bt=v(Vt,Ft),Ht=v(Ft,g("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),zt=v(Vt,g("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ut=v(Lt,Ht,zt,Bt),Wt=g("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Gt=g("srcset"),qt=g("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Yt=v(Wt,Gt,qt),Kt=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(Nt.isElementNode(e)?this.startElement(e):Nt.isTextNode(e)?this.chars(Nt.nodeValue(e)):this.sanitizedSomething=!0,Nt.firstChild(e))e=Nt.firstChild(e);else for(;e;){Nt.isElementNode(e)&&this.endElement(e);var n=m(e,Nt.nextSibling(e));if(n){e=n;break}e=m(e,Nt.parentElement(e))}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,n=Nt.nodeName(t).toLowerCase();Ut.hasOwnProperty(n)?(this.buf.push("<"),this.buf.push(n),Nt.attributeMap(t).forEach(function(t,n){var r=n.toLowerCase();Yt.hasOwnProperty(r)?(Wt[r]&&(t=y(t)),Gt[r]&&(t=function(t){return(t=String(t)).split(",").map(function(t){return y(t.trim())}).join(", ")}(t)),e.buf.push(" "),e.buf.push(n),e.buf.push('="'),e.buf.push(b(t)),e.buf.push('"')):e.sanitizedSomething=!0}),this.buf.push(">")):this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=Nt.nodeName(t).toLowerCase();Ut.hasOwnProperty(e)&&!Lt.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(b(t))},t}(),Xt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$t=/([^\#-~ |!])/g,Qt=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"),Zt=/^url\(([^)]+)\)$/,Jt=function(){return function(){}}(),te=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return Object(R.b)(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case k.SecurityContext.NONE:return e;case k.SecurityContext.HTML:return e instanceof ne?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),x(this._doc,String(e)));case k.SecurityContext.STYLE:return e instanceof re?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(Zt);return e&&y(e[1])===e[1]||t.match(Qt)&&function(t){for(var e=!0,n=!0,r=0;r<t.length;r++){var i=t.charAt(r);"'"===i&&n?e=!e:'"'===i&&e&&(n=!n)}return e&&n}(t)?t:(Object(k.isDevMode)()&&r().log("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}(e));case k.SecurityContext.SCRIPT:if(e instanceof ie)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case k.SecurityContext.URL:return e instanceof se||e instanceof oe?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),y(String(e)));case k.SecurityContext.RESOURCE_URL:if(e instanceof se)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof ee)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new ne(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new re(t)},e.prototype.bypassSecurityTrustScript=function(t){return new ie(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new oe(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new se(t)},e.decorators=[{type:k.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:k.Inject,args:[W]}]}]},e}(Jt),ee=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),ne=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(R.b)(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(ee),re=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(R.b)(e,t),e.prototype.getTypeName=function(){return"Style"},e}(ee),ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(R.b)(e,t),e.prototype.getTypeName=function(){return"Script"},e}(ee),oe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(R.b)(e,t),e.prototype.getTypeName=function(){return"URL"},e}(ee),se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(R.b)(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(ee),ae=[{provide:k.PLATFORM_ID,useValue:I["\u0275PLATFORM_BROWSER_ID"]},{provide:k.PLATFORM_INITIALIZER,useValue:w,multi:!0},{provide:I.PlatformLocation,useClass:G,deps:[W]},{provide:W,useFactory:S,deps:[]}],ce=[{provide:k.Sanitizer,useExisting:Jt},{provide:Jt,useClass:te,deps:[W]}],ue=Object(k.createPlatformFactory)(k.platformCore,"browser",ae),le=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:k.APP_ID,useValue:e.appId},{provide:Y,useExisting:k.APP_ID},K]}},t.decorators=[{type:k.NgModule,args:[{providers:[ce,{provide:k.ErrorHandler,useFactory:O,deps:[]},{provide:et,useClass:Ct,multi:!0},{provide:et,useClass:kt,multi:!0},{provide:et,useClass:Pt,multi:!0},{provide:Tt,useClass:jt},lt,{provide:k.RendererFactory2,useExisting:lt},{provide:it,useExisting:ot},ot,k.Testability,nt,tt,q,$],exports:[I.CommonModule,k.ApplicationModule]}]}],t.ctorParameters=function(){return[{type:t,decorators:[{type:k.Optional},{type:k.SkipSelf}]}]},t}(),pe="undefined"!=typeof window&&window||{},he=function(){return function(t,e){this.msPerTick=t,this.numTicks=e}}(),de=function(){function t(t){this.appRef=t.injector.get(k.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n=null!=pe.console.profile;e&&n&&pe.console.profile("Change Detection");for(var i=r().performanceNow(),o=0;o<5||r().performanceNow()-i<500;)this.appRef.tick(),o++;var s=r().performanceNow();e&&n&&pe.console.profileEnd("Change Detection");var a=(s-i)/o;return pe.console.log("ran "+o+" change detection cycles"),pe.console.log(a.toFixed(2)+" ms per check"),new he(a,o)},t}(),fe="profiler",ye=function(){function t(){this.store={},this.onSerializeCallbacks={}}return t.init=function(e){var n=new t;return n.store=e,n},t.prototype.get=function(t,e){return this.store[t]||e},t.prototype.set=function(t,e){this.store[t]=e},t.prototype.remove=function(t){delete this.store[t]},t.prototype.hasKey=function(t){return this.store.hasOwnProperty(t)},t.prototype.onSerialize=function(t,e){this.onSerializeCallbacks[t]=e},t.prototype.toJson=function(){for(var t in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(t))try{this.store[t]=this.onSerializeCallbacks[t]()}catch(t){console.warn("Exception in onSerialize callback: ",t)}return JSON.stringify(this.store)},t.decorators=[{type:k.Injectable}],t.ctorParameters=function(){return[]},t}(),ge=function(){function t(){}return t.decorators=[{type:k.NgModule,args:[{providers:[{provide:ye,useFactory:P,deps:[W,k.APP_ID]}]}]}],t.ctorParameters=function(){return[]},t}(),ve=function(){function t(){}return t.all=function(){return function(t){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement&&r().elementMatches(e.nativeElement,t)}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}},t}(),me=new k.Version("5.1.0")},S08L:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=n("ktfo"),s=n("yW9Z"),a=function(t){function e(e,n,r){t.call(this),this.condition=e,this.thenSource=n,this.elseSource=r}return r(e,t),e.create=function(t,n,r){return new e(t,n,r)},e.prototype._subscribe=function(t){var e=this.condition,n=this.thenSource,r=this.elseSource;return new c(t,e,n,r)},e}(i.Observable);e.IfObservable=a;var c=function(t){function e(e,n,r,i){t.call(this,e),this.condition=n,this.thenSource=r,this.elseSource=i,this.tryIf()}return r(e,t),e.prototype.tryIf=function(){var t=this.condition,e=this.thenSource,n=this.elseSource;try{var r=t()?e:n;r?this.add(o.subscribeToResult(this,r)):this._complete()}catch(t){this._error(t)}},e}(s.OuterSubscriber)},S7bd:function(t,e,n){"use strict";function r(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function i(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function o(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function s(t){function e(t,e){return function(n){var r,i,o,s=[],a=-1,c=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++a<u;)37===t.charCodeAt(a)&&(s.push(t.slice(c,a)),null!=(i=_t[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),s.push(r),c=a+1);return s.push(t.slice(c,a)),s.join("")}}function n(t,e){return function(n){var r,a,c=o(1900);if(s(c,t,n+="",0)!=n.length)return null;if("Q"in c)return new Date(c.Q);if("p"in c&&(c.H=c.H%12+12*c.p),"V"in c){if(c.V<1||c.V>53)return null;"w"in c||(c.w=1),"Z"in c?(r=(a=(r=i(o(c.y))).getUTCDay())>4||0===a?bt.p.ceil(r):Object(bt.p)(r),r=bt.l.offset(r,7*(c.V-1)),c.y=r.getUTCFullYear(),c.m=r.getUTCMonth(),c.d=r.getUTCDate()+(c.w+6)%7):(r=(a=(r=e(o(c.y))).getDay())>4||0===a?bt.e.ceil(r):Object(bt.e)(r),r=bt.a.offset(r,7*(c.V-1)),c.y=r.getFullYear(),c.m=r.getMonth(),c.d=r.getDate()+(c.w+6)%7)}else("W"in c||"U"in c)&&("w"in c||(c.w="u"in c?c.u%7:"W"in c?1:0),a="Z"in c?i(o(c.y)).getUTCDay():e(o(c.y)).getDay(),c.m=0,c.d="W"in c?(c.w+6)%7+7*c.W-(a+5)%7:c.w+7*c.U-(a+6)%7);return"Z"in c?(c.H+=c.Z/100|0,c.M+=c.Z%100,i(c)):e(c)}}function s(t,e,n,r){for(var i,o,s=0,a=e.length,c=n.length;s<a;){if(r>=c)return-1;if(37===(i=e.charCodeAt(s++))){if(i=e.charAt(s++),!(o=Rt[i in _t?e.charAt(s++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}var a=t.dateTime,c=t.date,dt=t.time,ft=t.periods,yt=t.days,gt=t.shortDays,vt=t.months,mt=t.shortMonths,xt=u(ft),wt=l(ft),Ot=u(yt),St=l(yt),Ct=u(gt),Et=l(gt),Tt=u(vt),jt=l(vt),Pt=u(mt),At=l(mt),It={a:function(t){return gt[t.getDay()]},A:function(t){return yt[t.getDay()]},b:function(t){return mt[t.getMonth()]},B:function(t){return vt[t.getMonth()]},c:null,d:A,e:A,f:D,H:I,I:k,j:R,L:M,m:N,M:L,p:function(t){return ft[+(t.getHours()>=12)]},Q:pt,s:ht,S:F,u:V,U:B,V:H,w:z,W:U,x:null,X:null,y:W,Y:G,Z:q,"%":lt},kt={a:function(t){return gt[t.getUTCDay()]},A:function(t){return yt[t.getUTCDay()]},b:function(t){return mt[t.getUTCMonth()]},B:function(t){return vt[t.getUTCMonth()]},c:null,d:Y,e:Y,f:Z,H:K,I:X,j:$,L:Q,m:J,M:tt,p:function(t){return ft[+(t.getUTCHours()>=12)]},Q:pt,s:ht,S:et,u:nt,U:rt,V:it,w:ot,W:st,x:null,X:null,y:at,Y:ct,Z:ut,"%":lt},Rt={a:function(t,e,n){var r=Ct.exec(e.slice(n));return r?(t.w=Et[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=Ot.exec(e.slice(n));return r?(t.w=St[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=Pt.exec(e.slice(n));return r?(t.m=At[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=Tt.exec(e.slice(n));return r?(t.m=jt[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,e,n){return s(t,a,e,n)},d:_,e:_,f:E,H:w,I:w,j:x,L:C,m:b,M:O,p:function(t,e,n){var r=xt.exec(e.slice(n));return r?(t.p=wt[r[0].toLowerCase()],n+r[0].length):-1},Q:j,s:P,S:S,u:h,U:d,V:f,w:p,W:y,x:function(t,e,n){return s(t,c,e,n)},X:function(t,e,n){return s(t,dt,e,n)},y:v,Y:g,Z:m,"%":T};return It.x=e(c,It),It.X=e(dt,It),It.c=e(a,It),kt.x=e(c,kt),kt.X=e(dt,kt),kt.c=e(a,kt),{format:function(t){var n=e(t+="",It);return n.toString=function(){return t},n},parse:function(t){var e=n(t+="",r);return e.toString=function(){return t},e},utcFormat:function(t){var n=e(t+="",kt);return n.toString=function(){return t},n},utcParse:function(t){var e=n(t,i);return e.toString=function(){return t},e}}}function a(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function c(t){return t.replace(Ot,"\\$&")}function u(t){return new RegExp("^(?:"+t.map(c).join("|")+")","i")}function l(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function p(t,e,n){var r=xt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function h(t,e,n){var r=xt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function d(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function f(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function y(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function g(t,e,n){var r=xt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function v(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function m(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function b(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function _(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function x(t,e,n){var r=xt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function w(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function O(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function S(t,e,n){var r=xt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function C(t,e,n){var r=xt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function E(t,e,n){var r=xt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function T(t,e,n){var r=wt.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function j(t,e,n){var r=xt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function P(t,e,n){var r=xt.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function A(t,e){return a(t.getDate(),e,2)}function I(t,e){return a(t.getHours(),e,2)}function k(t,e){return a(t.getHours()%12||12,e,2)}function R(t,e){return a(1+bt.a.count(Object(bt.k)(t),t),e,3)}function M(t,e){return a(t.getMilliseconds(),e,3)}function D(t,e){return M(t,e)+"000"}function N(t,e){return a(t.getMonth()+1,e,2)}function L(t,e){return a(t.getMinutes(),e,2)}function F(t,e){return a(t.getSeconds(),e,2)}function V(t){var e=t.getDay();return 0===e?7:e}function B(t,e){return a(bt.h.count(Object(bt.k)(t),t),e,2)}function H(t,e){var n=t.getDay();return t=n>=4||0===n?Object(bt.i)(t):bt.i.ceil(t),a(bt.i.count(Object(bt.k)(t),t)+(4===Object(bt.k)(t).getDay()),e,2)}function z(t){return t.getDay()}function U(t,e){return a(bt.e.count(Object(bt.k)(t),t),e,2)}function W(t,e){return a(t.getFullYear()%100,e,2)}function G(t,e){return a(t.getFullYear()%1e4,e,4)}function q(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+a(e/60|0,"0",2)+a(e%60,"0",2)}function Y(t,e){return a(t.getUTCDate(),e,2)}function K(t,e){return a(t.getUTCHours(),e,2)}function X(t,e){return a(t.getUTCHours()%12||12,e,2)}function $(t,e){return a(1+bt.l.count(Object(bt.v)(t),t),e,3)}function Q(t,e){return a(t.getUTCMilliseconds(),e,3)}function Z(t,e){return Q(t,e)+"000"}function J(t,e){return a(t.getUTCMonth()+1,e,2)}function tt(t,e){return a(t.getUTCMinutes(),e,2)}function et(t,e){return a(t.getUTCSeconds(),e,2)}function nt(t){var e=t.getUTCDay();return 0===e?7:e}function rt(t,e){return a(bt.s.count(Object(bt.v)(t),t),e,2)}function it(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Object(bt.t)(t):bt.t.ceil(t),a(bt.t.count(Object(bt.v)(t),t)+(4===Object(bt.v)(t).getUTCDay()),e,2)}function ot(t){return t.getUTCDay()}function st(t,e){return a(bt.p.count(Object(bt.v)(t),t),e,2)}function at(t,e){return a(t.getUTCFullYear()%100,e,2)}function ct(t,e){return a(t.getUTCFullYear()%1e4,e,4)}function ut(){return"+0000"}function lt(){return"%"}function pt(t){return+t}function ht(t){return Math.floor(+t/1e3)}function dt(t){return ft=s(t),yt=ft.format,gt=ft.parse,vt=ft.utcFormat,mt=ft.utcParse,ft}Object.defineProperty(e,"__esModule",{value:!0});var ft,yt,gt,vt,mt,bt=n("1ZKk"),_t={"-":"",_:" ",0:"0"},xt=/^\s*\d+/,wt=/^%/,Ot=/[\\^$*+?|[\]().{}]/g;dt({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var St="%Y-%m-%dT%H:%M:%S.%LZ",Ct=Date.prototype.toISOString?function(t){return t.toISOString()}:vt(St),Et=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:mt(St);n.d(e,"timeFormatDefaultLocale",function(){return dt}),n.d(e,"timeFormat",function(){return yt}),n.d(e,"timeParse",function(){return gt}),n.d(e,"utcFormat",function(){return vt}),n.d(e,"utcParse",function(){return mt}),n.d(e,"timeFormatLocale",function(){return s}),n.d(e,"isoFormat",function(){return Ct}),n.d(e,"isoParse",function(){return Et})},S7im:function(t,e,n){"use strict";var r=n("bKpL"),i=n("HTfL");r.Observable.throw=i._throw},SBOU:function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=t[t.length-1];return"function"==typeof n&&t.pop(),new o.ArrayObservable(t).lift(new p(n))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("wZOE"),s=n("NSJx"),a=n("T14+"),c=n("yW9Z"),u=n("ktfo"),l=n("2B7B");e.zip=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){return e.lift.call(r.apply(void 0,[e].concat(t)))}},e.zipStatic=r;var p=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.project))},t}();e.ZipOperator=p;var h=function(t){function e(e,n,r){void 0===r&&(r=Object.create(null)),t.call(this,e),this.iterators=[],this.active=0,this.project="function"==typeof n?n:null,this.values=r}return i(e,t),e.prototype._next=function(t){var e=this.iterators;s.isArray(t)?e.push(new f(t)):"function"==typeof t[l.iterator]?e.push(new d(t[l.iterator]())):e.push(new y(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(0!==e){this.active=e;for(var n=0;n<e;n++){var r=t[n];r.stillUnsubscribed?this.add(r.subscribe(r,n)):this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,r=0;r<e;r++){if("function"==typeof(s=t[r]).hasValue&&!s.hasValue())return}var i=!1,o=[];for(r=0;r<e;r++){var s,a=(s=t[r]).next();if(s.hasCompleted()&&(i=!0),a.done)return void n.complete();o.push(a.value)}this.project?this._tryProject(o):n.next(o),i&&n.complete()},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(a.Subscriber);e.ZipSubscriber=h;var d=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return t&&t.done},t}(),f=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[l.iterator]=function(){return this},t.prototype.next=function(t){var e=this.index++,n=this.array;return e<this.length?{value:n[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),y=function(t){function e(e,n,r){t.call(this,e),this.parent=n,this.observable=r,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}return i(e,t),e.prototype[l.iterator]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return u.subscribeToResult(this,this.observable,this,e)},e}(c.OuterSubscriber)},SJ56:function(t,e,n){"use strict";var r=n("pguX");e.dematerialize=function(){return r.dematerialize()(this)}},SKRq:function(t,e,n){"use strict";var r=n("bKpL"),i=n("fdVa");r.Observable.prototype.mergeScan=i.mergeScan},ScG9:function(t,e,n){"use strict";var r=n("bKpL"),i=n("a9bY");r.Observable.prototype.max=i.max},"StS+":function(t,e,n){"use strict";var r=n("bKpL"),i=n("lc3y");r.Observable.prototype.isEmpty=i.isEmpty},"T14+":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("fclq"),o=n("xFbG"),s=n("LiYJ"),a=n("dkwD"),c=function(t){function e(n,r,i){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!n){this.destination=s.empty;break}if("object"==typeof n){n instanceof e?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,n,r,i)}}return r(e,t),e.prototype[a.rxSubscriber]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(o.Subscription);e.Subscriber=c;var u=function(t){function e(e,n,r,o){t.call(this),this._parentSubscriber=e;var a,c=this;i.isFunction(n)?a=n:n&&(a=n.next,r=n.error,o=n.complete,n!==s.empty&&(c=Object.create(n),i.isFunction(c.unsubscribe)&&this.add(c.unsubscribe.bind(c)),c.unsubscribe=this.unsubscribe.bind(this))),this._context=c,this._next=a,this._error=r,this._complete=o}return r(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(c)},T1tZ:function(t,e,n){"use strict";function r(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function i(t){var e=t.err;t.subject.error(e)}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n("bKpL"),a=n("RdI5"),c=n("XRvs"),u=n("l6Wf"),l=function(t){function e(e,n,r,i,o){t.call(this),this.callbackFunc=e,this.selector=n,this.args=r,this.context=i,this.scheduler=o}return o(e,t),e.create=function(t,n,r){return void 0===n&&(n=void 0),function(){for(var i=[],o=0;o<arguments.length;o++)i[o-0]=arguments[o];return new e(t,n,i,this,r)}},e.prototype._subscribe=function(t){var n=this.callbackFunc,r=this.args,i=this.scheduler,o=this.subject;if(i)return i.schedule(e.dispatch,0,{source:this,subscriber:t,context:this.context});if(!o){o=this.subject=new u.AsyncSubject;var s=function t(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var r=t.source,i=r.selector,o=r.subject;if(i){var s=a.tryCatch(i).apply(this,e);s===c.errorObject?o.error(c.errorObject.e):(o.next(s),o.complete())}else o.next(e.length<=1?e[0]:e),o.complete()};s.source=this;a.tryCatch(n).apply(this.context,r.concat(s))===c.errorObject&&o.error(c.errorObject.e)}return o.subscribe(t)},e.dispatch=function(t){var e=this,n=t.source,o=t.subscriber,s=t.context,l=n.callbackFunc,p=n.args,h=n.scheduler,d=n.subject;if(!d){d=n.subject=new u.AsyncSubject;var f=function t(){for(var n=[],o=0;o<arguments.length;o++)n[o-0]=arguments[o];var s=t.source,u=s.selector,l=s.subject;if(u){var p=a.tryCatch(u).apply(this,n);p===c.errorObject?e.add(h.schedule(i,0,{err:c.errorObject.e,subject:l})):e.add(h.schedule(r,0,{value:p,subject:l}))}else{var d=n.length<=1?n[0]:n;e.add(h.schedule(r,0,{value:d,subject:l}))}};f.source=n;a.tryCatch(l).apply(s,p.concat(f))===c.errorObject&&d.error(c.errorObject.e)}e.add(d.subscribe(o))},e}(s.Observable);e.BoundCallbackObservable=l},T5Q1:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=n("ktfo"),s=n("yW9Z"),a=function(t){function e(e,n){t.call(this),this.resourceFactory=e,this.observableFactory=n}return r(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e,n=this.resourceFactory,r=this.observableFactory;try{return e=n(),new c(t,e,r)}catch(e){t.error(e)}},e}(i.Observable);e.UsingObservable=a;var c=function(t){function e(e,n,r){t.call(this,e),this.resource=n,this.observableFactory=r,e.add(n),this.tryUse()}return r(e,t),e.prototype.tryUse=function(){try{var t=this.observableFactory.call(this,this.resource);t&&this.add(o.subscribeToResult(this,t))}catch(t){this._error(t)}},e}(s.OuterSubscriber)},TA58:function(t,e,n){"use strict";function r(t){var e=+t.length;return isNaN(e)?0:0!==e&&function(t){return"number"==typeof t&&o.root.isFinite(t)}(e)?(e=function(t){var e=+t;if(0===e)return e;if(isNaN(e))return e;return e<0?-1:1}(e)*Math.floor(Math.abs(e)))<=0?0:e>p?p:e:e}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("zijX"),s=n("bKpL"),a=n("2B7B"),c=function(t){function e(e,n){if(t.call(this),this.scheduler=n,null==e)throw new Error("iterator cannot be null.");this.iterator=function(t){var e=t[a.iterator];if(!e&&"string"==typeof t)return new u(t);if(!e&&void 0!==t.length)return new l(t);if(!e)throw new TypeError("object is not iterable");return t[a.iterator]()}(e)}return i(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.hasError,r=t.iterator,i=t.subscriber;if(n)i.error(t.error);else{var o=r.next();o.done?i.complete():(i.next(o.value),t.index=e+1,i.closed?"function"==typeof r.return&&r.return():this.schedule(t))}},e.prototype._subscribe=function(t){var n=this.iterator,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{index:0,iterator:n,subscriber:t});for(;;){var i=n.next();if(i.done){t.complete();break}if(t.next(i.value),t.closed){"function"==typeof n.return&&n.return();break}}},e}(s.Observable);e.IteratorObservable=c;var u=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=t.length),this.str=t,this.idx=e,this.len=n}return t.prototype[a.iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),l=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=r(t)),this.arr=t,this.idx=e,this.len=n}return t.prototype[a.iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},t}(),p=Math.pow(2,53)-1},THYR:function(t,e,n){"use strict";var r=n("GiTH");e.every=function(t,e){return r.every(t,e)(this)}},TIdC:function(t,e,n){"use strict";var r=n("8rcZ");e.mergeAll=function(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),r.mergeAll(t)(this)}},TO51:function(t,e,n){"use strict";var r=n("AP4T"),i=n("E9/g"),o=n("qLnt"),s=n("Upor"),a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},c=function(t){function e(e,n){t.call(this),this.subject=e,this.subscriber=n,this.closed=!1}return a(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(o.a),u=n("V7AE");n.d(e,"b",function(){return p}),n.d(e,"a",function(){return h});var l=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},p=function(t){function e(e){t.call(this,e),this.destination=e}return l(e,t),e}(i.a),h=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return l(e,t),e.prototype[u.a]=function(){return new p(this)},e.prototype.lift=function(t){var e=new d(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new s.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new s.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new s.a;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new s.a;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new s.a;return this.hasError?(t.error(this.thrownError),o.a.EMPTY):this.isStopped?(t.complete(),o.a.EMPTY):(this.observers.push(t),new c(this,t))},e.prototype.asObservable=function(){var t=new r.Observable;return t.source=this,t},e.create=function(t,e){return new d(t,e)},e}(r.Observable),d=function(t){function e(e,n){t.call(this),this.destination=e,this.source=n}return l(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):o.a.EMPTY},e}(h)},TQK7:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+"),o=n("uT+d"),s=n("fcnB");e.take=function(t){return function(e){return 0===t?new s.EmptyObservable:e.lift(new a(t))}};var a=function(){function t(t){if(this.total=t,this.total<0)throw new o.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){t.call(this,e),this.total=n,this.count=0}return r(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(i.Subscriber)},TQn8:function(t,e,n){"use strict";var r=n("+FJ1");e.concatMap=function(t,e){return r.concatMap(t,e)(this)}},TS1d:function(t,e,n){"use strict";e.a=function(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),Object(r.a)(t,e,n)(this)};var r=n("wP3s")},TZiP:function(t,e,n){!function(e,r){t.exports=r(n("fAeS"),n("Un6q"),n("LMZF"),n("RyBE"),n("lI2P"),n("crAx"),n("hW8u"),n("9BYh"),n("Z9r9"),n("isYt"),n("dskq"),n("ytvl"),n("nwz6"),n("jeHV"),n("S7bd"),n("AP4T"),n("nbhv"),n("Wy0q"))}(0,function(t,e,n,r,i,o,s,a,c,u,l,p,h,d,f,y,g,v){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s="./src/index.ts")}({'./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/common/base-chart.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).push([t.i,".ngx-charts {\n float: left;\n overflow: visible; }\n .ngx-charts .circle,\n .ngx-charts .bar,\n .ngx-charts .arc {\n cursor: pointer; }\n .ngx-charts .bar.active, .ngx-charts .bar:hover,\n .ngx-charts .cell.active,\n .ngx-charts .cell:hover,\n .ngx-charts .arc.active,\n .ngx-charts .arc:hover,\n .ngx-charts .card.active,\n .ngx-charts .card:hover {\n opacity: 0.8;\n -webkit-transition: opacity 100ms ease-in-out;\n transition: opacity 100ms ease-in-out; }\n .ngx-charts .bar:focus,\n .ngx-charts .cell:focus,\n .ngx-charts .arc:focus,\n .ngx-charts .card:focus {\n outline: none; }\n .ngx-charts g:focus {\n outline: none; }\n .ngx-charts .line-series.inactive,\n .ngx-charts .line-series-range.inactive,\n .ngx-charts .polar-series-path.inactive,\n .ngx-charts .polar-series-area.inactive,\n .ngx-charts .area-series.inactive {\n -webkit-transition: opacity 100ms ease-in-out;\n transition: opacity 100ms ease-in-out;\n opacity: .2; }\n .ngx-charts .line-highlight {\n display: none; }\n .ngx-charts .line-highlight.active {\n display: block; }\n .ngx-charts .area {\n opacity: 0.6; }\n .ngx-charts .circle:hover {\n cursor: pointer; }\n .ngx-charts .label {\n font-size: 12px;\n font-weight: normal; }\n .ngx-charts .tooltip-anchor {\n fill: black; }\n .ngx-charts .gridline-path {\n stroke: #ddd;\n stroke-width: 1;\n fill: none; }\n .ngx-charts .refline-path {\n stroke: #a8b2c7;\n stroke-width: 1;\n stroke-dasharray: 5;\n stroke-dashoffset: 5; }\n .ngx-charts .refline-label {\n font-size: 9px; }\n .ngx-charts .reference-area {\n fill-opacity: 0.05;\n fill: #000; }\n .ngx-charts .gridline-path-dotted {\n stroke: #ddd;\n stroke-width: 1;\n fill: none;\n stroke-dasharray: 1, 20;\n stroke-dashoffset: 3; }\n .ngx-charts .grid-panel rect {\n fill: none; }\n .ngx-charts .grid-panel.odd rect {\n fill: rgba(0, 0, 0, 0.05); }\n",""])},'./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/common/legend/advanced-legend.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).push([t.i,".advanced-pie-legend {\n float: left;\n position: relative;\n top: 50%;\n -webkit-transform: translate(0, -50%);\n transform: translate(0, -50%); }\n .advanced-pie-legend .total-value {\n font-size: 36px; }\n .advanced-pie-legend .total-label {\n font-size: 24px;\n margin-bottom: 19px; }\n .advanced-pie-legend .legend-items-container {\n width: 100%; }\n .advanced-pie-legend .legend-items-container .legend-items {\n white-space: nowrap;\n overflow: auto; }\n .advanced-pie-legend .legend-items-container .legend-items .legend-item {\n margin-right: 20px;\n display: inline-block;\n cursor: pointer; }\n .advanced-pie-legend .legend-items-container .legend-items .legend-item:focus {\n outline: none; }\n .advanced-pie-legend .legend-items-container .legend-items .legend-item:hover {\n color: #000;\n -webkit-transition: 0.2s;\n transition: 0.2s; }\n .advanced-pie-legend .legend-items-container .legend-items .legend-item .item-value {\n font-size: 24px;\n margin-top: -6px;\n margin-left: 11px; }\n .advanced-pie-legend .legend-items-container .legend-items .legend-item .item-label {\n font-size: 14px;\n opacity: 0.7;\n margin-left: 11px;\n margin-top: -6px; }\n .advanced-pie-legend .legend-items-container .legend-items .legend-item .item-percent {\n font-size: 24px;\n opacity: 0.7;\n margin-left: 11px; }\n .advanced-pie-legend .legend-items-container .legend-items .legend-item .item-color {\n width: 4px;\n height: 42px;\n float: left;\n margin-right: 7px; }\n",""])},'./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/common/legend/legend.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).push([t.i,".chart-legend {\n display: inline-block;\n padding: 0;\n width: auto !important; }\n .chart-legend .legend-title {\n white-space: nowrap;\n overflow: hidden;\n margin-left: 10px;\n margin-bottom: 5px;\n font-size: 14px;\n font-weight: bold; }\n .chart-legend ul, .chart-legend li {\n padding: 0;\n margin: 0;\n list-style: none; }\n .chart-legend .legend-wrap {\n width: calc(100% - 10px); }\n .chart-legend .legend-labels {\n line-height: 85%;\n list-style: none;\n text-align: left;\n float: left;\n width: 100%;\n border-radius: 3px;\n overflow-y: auto;\n overflow-x: hidden;\n white-space: nowrap;\n background: rgba(0, 0, 0, 0.05); }\n .chart-legend .legend-label {\n cursor: pointer;\n font-size: 90%;\n margin: 8px;\n color: #AFB7C8; }\n .chart-legend .legend-label:hover {\n color: #000;\n -webkit-transition: 0.2s;\n transition: 0.2s; }\n .chart-legend .legend-label .active .legend-label-text {\n color: #000; }\n .chart-legend .legend-label-color {\n display: inline-block;\n height: 15px;\n width: 15px;\n margin-right: 5px;\n color: #5b646b;\n border-radius: 3px; }\n .chart-legend .legend-label-text {\n display: inline-block;\n vertical-align: top;\n line-height: 15px;\n font-size: 12px;\n width: calc(100% - 20px);\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden; }\n .chart-legend .legend-title-text {\n vertical-align: bottom;\n display: inline-block;\n line-height: 16px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis; }\n",""])},'./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/common/legend/scale-legend.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).push([t.i,".chart-legend {\n display: inline-block;\n padding: 0;\n width: auto !important; }\n .chart-legend .scale-legend {\n text-align: center;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column; }\n .chart-legend .scale-legend-wrap {\n display: inline-block;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n width: 30px;\n border-radius: 5px;\n margin: 0 auto; }\n .chart-legend .scale-legend-label {\n font-size: 12px; }\n",""])},'./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/common/timeline/timeline.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).push([t.i,".timeline .brush-background {\n fill: rgba(0, 0, 0, 0.05); }\n\n.timeline .brush .selection {\n fill: rgba(0, 0, 0, 0.1);\n stroke-width: 1px;\n stroke: #888888; }\n\n.timeline .brush .handle {\n fill-opacity: 0; }\n\n.timeline .embedded-chart {\n opacity: 0.6; }\n",""])},'./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/common/tooltip/tooltip.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).push([t.i,".ngx-charts-tooltip-content {\n position: fixed;\n border-radius: 3px;\n z-index: 5000;\n display: block;\n font-weight: normal;\n opacity: 0;\n pointer-events: none !important; }\n .ngx-charts-tooltip-content.type-popover {\n background: #fff;\n color: #060709;\n border: 1px solid #72809b;\n -webkit-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12);\n box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12);\n font-size: 13px;\n padding: 4px; }\n .ngx-charts-tooltip-content.type-popover .tooltip-caret {\n position: absolute;\n z-index: 5001;\n width: 0;\n height: 0; }\n .ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left {\n border-top: 7px solid transparent;\n border-bottom: 7px solid transparent;\n border-left: 7px solid #fff; }\n .ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top {\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-top: 7px solid #fff; }\n .ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right {\n border-top: 7px solid transparent;\n border-bottom: 7px solid transparent;\n border-right: 7px solid #fff; }\n .ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom {\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-bottom: 7px solid #fff; }\n .ngx-charts-tooltip-content.type-tooltip {\n color: #fff;\n background: rgba(0, 0, 0, 0.75);\n font-size: 12px;\n padding: 0 10px;\n text-align: center;\n pointer-events: auto; }\n .ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left {\n border-top: 7px solid transparent;\n border-bottom: 7px solid transparent;\n border-left: 7px solid rgba(0, 0, 0, 0.75); }\n .ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top {\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-top: 7px solid rgba(0, 0, 0, 0.75); }\n .ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right {\n border-top: 7px solid transparent;\n border-bottom: 7px solid transparent;\n border-right: 7px solid rgba(0, 0, 0, 0.75); }\n .ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom {\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-bottom: 7px solid rgba(0, 0, 0, 0.75); }\n .ngx-charts-tooltip-content .tooltip-label {\n display: block;\n line-height: 1em;\n padding: 8px 5px 5px 5px;\n font-size: 1em; }\n .ngx-charts-tooltip-content .tooltip-val {\n display: block;\n font-size: 1.3em;\n line-height: 1em;\n padding: 0 5px 8px 5px; }\n .ngx-charts-tooltip-content .tooltip-caret {\n position: absolute;\n z-index: 5001;\n width: 0;\n height: 0; }\n .ngx-charts-tooltip-content.position-right {\n -webkit-transform: translate3d(10px, 0, 0);\n transform: translate3d(10px, 0, 0); }\n .ngx-charts-tooltip-content.position-left {\n -webkit-transform: translate3d(-10px, 0, 0);\n transform: translate3d(-10px, 0, 0); }\n .ngx-charts-tooltip-content.position-top {\n -webkit-transform: translate3d(0, -10px, 0);\n transform: translate3d(0, -10px, 0); }\n .ngx-charts-tooltip-content.position-bottom {\n -webkit-transform: translate3d(0, 10px, 0);\n transform: translate3d(0, 10px, 0); }\n .ngx-charts-tooltip-content.animate {\n opacity: 1;\n -webkit-transition: opacity 0.3s, -webkit-transform 0.3s;\n transition: opacity 0.3s, -webkit-transform 0.3s;\n transition: opacity 0.3s, transform 0.3s;\n transition: opacity 0.3s, transform 0.3s, -webkit-transform 0.3s;\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n pointer-events: auto; }\n\n.area-tooltip-container {\n padding: 5px 0;\n pointer-events: none; }\n\n.tooltip-item {\n text-align: left;\n line-height: 1.2em;\n padding: 5px 0; }\n .tooltip-item .tooltip-item-color {\n display: inline-block;\n height: 12px;\n width: 12px;\n margin-right: 5px;\n color: #5b646b;\n border-radius: 3px; }\n",""])},'./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/force-directed-graph/force-directed-graph.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).push([t.i,".force-directed-graph .edge {\n stroke: #333; }\n",""])},'./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/gauge/gauge.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).push([t.i,".gauge .background-arc path {\n fill: rgba(0, 0, 0, 0.05); }\n\n.gauge .gauge-tick path {\n stroke: #666; }\n\n.gauge .gauge-tick text {\n font-size: 12px;\n fill: #666;\n font-weight: bold; }\n\n.gauge .gauge-tick-large path {\n stroke-width: 2px; }\n\n.gauge .gauge-tick-small path {\n stroke-width: 1px; }\n",""])},'./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/gauge/linear-gauge.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).push([t.i,".linear-gauge {\n cursor: pointer; }\n .linear-gauge .background-bar path {\n fill: rgba(0, 0, 0, 0.05); }\n .linear-gauge .units {\n fill: #666; }\n",""])},'./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/number-card/card.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).push([t.i,"ngx-charts-number-card .cell .trimmed-label {\n font-size: 12px;\n pointer-events: none;\n overflow: hidden;\n text-align: left;\n line-height: 1em; }\n ngx-charts-number-card .cell .trimmed-label p {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n width: 100%;\n padding: 0;\n margin: 0; }\n\nngx-charts-number-card .cell .value-text {\n pointer-events: none; }\n\nngx-charts-number-card .number-card.clickable .cell .card, ngx-charts-number-card .number-card.clickable .cell .card-band {\n cursor: pointer; }\n",""])},'./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/pie-chart/advanced-pie-chart.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).push([t.i,".advanced-pie {\n display: inline-block;\n float: left; }\n\n.advanced-pie-legend-wrapper {\n display: inline-block; }\n",""])},'./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/pie-chart/pie-chart.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).push([t.i,".pie-label {\n font-size: 11px; }\n .pie-label.animation {\n -webkit-animation: 750ms ease-in fadeIn;\n animation: 750ms ease-in fadeIn; }\n\n@-webkit-keyframes fadeIn {\n from {\n opacity: 0; }\n to {\n opacity: 1; } }\n\n@keyframes fadeIn {\n from {\n opacity: 0; }\n to {\n opacity: 1; } }\n\n.pie-label-line {\n stroke-dasharray: 100%; }\n .pie-label-line.animation {\n -webkit-animation: 3s linear drawOut;\n animation: 3s linear drawOut;\n -webkit-transition: d 750ms;\n transition: d 750ms; }\n\n@-webkit-keyframes drawOut {\n from {\n stroke-dashoffset: 100%; }\n to {\n stroke-dashoffset: 0; } }\n\n@keyframes drawOut {\n from {\n stroke-dashoffset: 100%; }\n to {\n stroke-dashoffset: 0; } }\n",""])},'./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/pie-chart/pie-grid.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).push([t.i,".pie-grid .arc1 {\n opacity: 0.4; }\n\n.pie-grid .percent-label {\n font-size: 16px;\n font-weight: 400; }\n",""])},'./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/polar-chart/polar-chart.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).push([t.i,".polar-chart .polar-chart-background {\n fill: none; }\n\n.polar-chart .radial-gridline-path {\n stroke-dasharray: 10 10;\n fill: none; }\n\n.polar-chart .pie-label-line {\n stroke: #2f3646; }\n\n.polar-charts-series .polar-series-area {\n pointer-events: none; }\n\n.polar-series-path {\n pointer-events: none; }\n",""])},'./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/tree-map/tree-map.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).push([t.i,".tree-map .treemap-val {\n font-size: 1.3em;\n padding-top: 5px;\n display: inline-block; }\n\n.tree-map .label p {\n display: table-cell;\n text-align: center;\n line-height: 1.2em;\n vertical-align: middle; }\n",""])},"./node_modules/css-loader/lib/css-base.js":function(t,e){function n(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(r),o=r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"});return[n].concat(o).concat([i]).join("\n")}return[n].join("\n")}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=n(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var s=t[i];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},"./src/area-chart/area-chart-normalized.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var r=n("@angular/core"),i=(n.n(r),n("d3-scale")),o=(n.n(i),n("d3-shape")),s=(n.n(o),n("./src/common/view-dimensions.helper.ts")),a=n("./src/common/color.helper.ts"),c=n("./src/common/base-chart.component.ts"),u=n("./src/utils/id.ts"),l=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),p=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},h=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legend=!1,e.legendTitle="Legend",e.showGridLines=!0,e.curve=o.curveLinear,e.activeEntries=[],e.roundDomains=!1,e.tooltipDisabled=!1,e.activate=new r.EventEmitter,e.deactivate=new r.EventEmitter,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e.timelineHeight=50,e.timelinePadding=10,e}return l(e,t),e.prototype.update=function(){var e=this;t.prototype.update.call(this),this.dims=Object(s.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height);for(var n=function(t){for(var n=r.xSet[t],i=0,o=0,s=0,a=r.results;s<a.length;s++){(p=(l=a[s]).series.find(function(t){var r=t.name,i=n;return"time"===e.scaleType&&(r=r.valueOf(),i=i.valueOf()),r===i}))&&(o+=p.value)}for(var c=0,u=r.results;c<u.length;c++){var l,p;(p=(l=u[c]).series.find(function(t){var r=t.name,i=n;return"time"===e.scaleType&&(r=r.valueOf(),i=i.valueOf()),r===i}))?(p.d0=i,p.d1=i+p.value,i+=p.value):(p={name:n,value:0,d0:i,d1:i},l.series.push(p)),o>0?(p.d0=100*p.d0/o,p.d1=100*p.d1/o):(p.d0=0,p.d1=0)}},r=this,i=0;i<this.xSet.length;i++)n(i);this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")",this.clipPathId="clip"+Object(u.a)().toString(),this.clipPath="url(#"+this.clipPathId+")"},e.prototype.updateTimeline=function(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform="translate("+this.dims.xOffset+", "+-this.margin[2]+")")},e.prototype.getXDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var r=0,i=n[e].series;r<i.length;r++){var o=i[r];t.includes(o.name)||t.push(o.name)}this.scaleType=this.getScaleType(t);var s=[];if("time"===this.scaleType){var a=Math.min.apply(Math,t),c=Math.max.apply(Math,t);s=[new Date(a),new Date(c)],this.xSet=t.slice().sort(function(t,e){var n=t.getTime(),r=e.getTime();return n>r?1:r>n?-1:0})}else if("linear"===this.scaleType){t=t.map(function(t){return Number(t)});s=[a=Math.min.apply(Math,t),c=Math.max.apply(Math,t)],this.xSet=t.slice().sort(function(t,e){return t-e})}else s=t,this.xSet=t;return s},e.prototype.getYDomain=function(){return[0,100]},e.prototype.getSeriesDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.getXScale=function(t,e){var n;return"time"===this.scaleType?n=Object(i.scaleTime)():"linear"===this.scaleType?n=Object(i.scaleLinear)():"ordinal"===this.scaleType&&(n=Object(i.scalePoint)().padding(.1)),n.range([0,e]).domain(t),this.roundDomains?n.nice():n},e.prototype.getYScale=function(t,e){var n=Object(i.scaleLinear)().range([e,0]).domain(t);return this.roundDomains?n.nice():n},e.prototype.getScaleType=function(t){for(var e=!0,n=!0,r=0,i=t;r<i.length;r++){var o=i[r];this.isDate(o)||(e=!1),"number"!=typeof o&&(n=!1)}return e?"time":n?"linear":"ordinal"},e.prototype.isDate=function(t){return t instanceof Date},e.prototype.updateDomain=function(t){this.filteredDomain=t,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)},e.prototype.updateHoveredVertical=function(t){this.hoveredVertical=t.value,this.deactivateAll()},e.prototype.hideCircles=function(){this.hoveredVertical=null,this.deactivateAll()},e.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},e.prototype.trackBy=function(t,e){return e.name},e.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new a.a(this.scheme,this.schemeType,t,this.customColors)},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.seriesDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t){this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value})>-1||(this.activeEntries=[t].concat(this.activeEntries),this.activate.emit({value:t,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t){var e=this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value});this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},e.prototype.deactivateAll=function(){this.activeEntries=this.activeEntries.slice();for(var t=0,e=this.activeEntries;t<e.length;t++){var n=e[t];this.deactivate.emit({value:n,entries:[]})}this.activeEntries=[]},p([Object(r.Input)(),h("design:type",Object)],e.prototype,"legend",void 0),p([Object(r.Input)(),h("design:type",String)],e.prototype,"legendTitle",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"xAxis",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"yAxis",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"showXAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"showYAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"xAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"yAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"timeline",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"gradient",void 0),p([Object(r.Input)(),h("design:type",Boolean)],e.prototype,"showGridLines",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"curve",void 0),p([Object(r.Input)(),h("design:type",Array)],e.prototype,"activeEntries",void 0),p([Object(r.Input)(),h("design:type",String)],e.prototype,"schemeType",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),p([Object(r.Input)(),h("design:type",Boolean)],e.prototype,"roundDomains",void 0),p([Object(r.Input)(),h("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),p([Object(r.Output)(),h("design:type",r.EventEmitter)],e.prototype,"activate",void 0),p([Object(r.Output)(),h("design:type",r.EventEmitter)],e.prototype,"deactivate",void 0),p([Object(r.ContentChild)("tooltipTemplate"),h("design:type",r.TemplateRef)],e.prototype,"tooltipTemplate",void 0),p([Object(r.ContentChild)("seriesTooltipTemplate"),h("design:type",r.TemplateRef)],e.prototype,"seriesTooltipTemplate",void 0),p([Object(r.HostListener)("mouseleave"),h("design:type",Function),h("design:paramtypes",[]),h("design:returntype",void 0)],e.prototype,"hideCircles",null),e=p([Object(r.Component)({selector:"ngx-charts-area-chart-normalized",template:'\n <ngx-charts-chart\n [view]="[width, height]"\n [showLegend]="legend"\n [legendOptions]="legendOptions"\n [activeEntries]="activeEntries"\n [animations]="animations"\n (legendLabelClick)="onClick($event)"\n (legendLabelActivate)="onActivate($event)"\n (legendLabelDeactivate)="onDeactivate($event)">\n <svg:defs>\n <svg:clipPath [attr.id]="clipPathId">\n <svg:rect\n [attr.width]="dims.width + 10"\n [attr.height]="dims.height + 10"\n [attr.transform]="\'translate(-5, -5)\'"/>\n </svg:clipPath>\n </svg:defs>\n <svg:g [attr.transform]="transform" class="area-chart chart">\n <svg:g ngx-charts-x-axis\n *ngIf="xAxis"\n [xScale]="xScale"\n [dims]="dims"\n [showGridLines]="showGridLines"\n [showLabel]="showXAxisLabel"\n [labelText]="xAxisLabel"\n [tickFormatting]="xAxisTickFormatting"\n (dimensionsChanged)="updateXAxisHeight($event)">\n </svg:g>\n <svg:g ngx-charts-y-axis\n *ngIf="yAxis"\n [yScale]="yScale"\n [dims]="dims"\n [showGridLines]="showGridLines"\n [showLabel]="showYAxisLabel"\n [labelText]="yAxisLabel"\n [tickFormatting]="yAxisTickFormatting"\n (dimensionsChanged)="updateYAxisWidth($event)">\n </svg:g>\n <svg:g [attr.clip-path]="clipPath">\n <svg:g *ngFor="let series of results; trackBy:trackBy">\n <svg:g ngx-charts-area-series\n [xScale]="xScale"\n [yScale]="yScale"\n [colors]="colors"\n [data]="series"\n [scaleType]="scaleType"\n [activeEntries]="activeEntries"\n [gradient]="gradient"\n normalized="true"\n [curve]="curve"\n [animations]="animations"\n />\n </svg:g>\n\n <svg:g *ngIf="!tooltipDisabled" (mouseleave)="hideCircles()">\n <svg:g ngx-charts-tooltip-area\n [dims]="dims"\n [xSet]="xSet"\n [xScale]="xScale"\n [yScale]="yScale"\n [results]="results"\n [colors]="colors"\n [showPercentage]="true"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="seriesTooltipTemplate"\n (hover)="updateHoveredVertical($event)"\n />\n\n <svg:g *ngFor="let series of results">\n <svg:g ngx-charts-circle-series\n type="stacked"\n [xScale]="xScale"\n [yScale]="yScale"\n [colors]="colors"\n [activeEntries]="activeEntries"\n [data]="series"\n [scaleType]="scaleType"\n [visibleValue]="hoveredVertical"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="tooltipTemplate"\n (select)="onClick($event, series)"\n (activate)="onActivate($event)"\n (deactivate)="onDeactivate($event)"\n />\n </svg:g>\n </svg:g>\n </svg:g>\n </svg:g>\n <svg:g ngx-charts-timeline\n *ngIf="timeline && scaleType === \'time\'"\n [attr.transform]="timelineTransform"\n [results]="results"\n [view]="[timelineWidth, height]"\n [height]="timelineHeight"\n [scheme]="scheme"\n [customColors]="customColors"\n [legend]="legend"\n [scaleType]="scaleType"\n (onDomainChange)="updateDomain($event)">\n <svg:g *ngFor="let series of results; trackBy:trackBy">\n <svg:g ngx-charts-area-series\n [xScale]="timelineXScale"\n [yScale]="timelineYScale"\n [colors]="colors"\n [data]="series"\n [scaleType]="scaleType"\n [gradient]="gradient"\n normalized="true"\n [curve]="curve"\n [animations]="animations"\n />\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush,styles:[n("./src/common/base-chart.component.scss")],encapsulation:r.ViewEncapsulation.None})],e)}(c.a)},"./src/area-chart/area-chart-stacked.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var r=n("@angular/core"),i=(n.n(r),n("d3-scale")),o=(n.n(i),n("d3-shape")),s=(n.n(o),n("./src/common/view-dimensions.helper.ts")),a=n("./src/common/color.helper.ts"),c=n("./src/common/base-chart.component.ts"),u=n("./src/utils/id.ts"),l=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),p=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},h=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legend=!1,e.legendTitle="Legend",e.showGridLines=!0,e.curve=o.curveLinear,e.activeEntries=[],e.roundDomains=!1,e.tooltipDisabled=!1,e.activate=new r.EventEmitter,e.deactivate=new r.EventEmitter,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e.timelineHeight=50,e.timelinePadding=10,e}return l(e,t),e.prototype.update=function(){var e=this;t.prototype.update.call(this),this.dims=Object(s.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height);for(var n=function(t){for(var n=r.xSet[t],i=0,o=0,s=r.results;o<s.length;o++){var a=s[o],c=a.series.find(function(t){var r=t.name,i=n;return"time"===e.scaleType&&(r=r.valueOf(),i=i.valueOf()),r===i});c?(c.d0=i,c.d1=i+c.value,i+=c.value):(c={name:n,value:0,d0:i,d1:i},a.series.push(c))}},r=this,i=0;i<this.xSet.length;i++)n(i);this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")",this.clipPathId="clip"+Object(u.a)().toString(),this.clipPath="url(#"+this.clipPathId+")"},e.prototype.updateTimeline=function(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform="translate("+this.dims.xOffset+", "+-this.margin[2]+")")},e.prototype.getXDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var r=0,i=n[e].series;r<i.length;r++){var o=i[r];t.includes(o.name)||t.push(o.name)}this.scaleType=this.getScaleType(t);var s=[];"linear"===this.scaleType&&(t=t.map(function(t){return Number(t)}));var a,c;return"time"!==this.scaleType&&"linear"!==this.scaleType||(a=this.xScaleMin?this.xScaleMin:Math.min.apply(Math,t),c=this.xScaleMax?this.xScaleMax:Math.max.apply(Math,t)),"time"===this.scaleType?(s=[new Date(a),new Date(c)],this.xSet=t.slice().sort(function(t,e){var n=t.getTime(),r=e.getTime();return n>r?1:r>n?-1:0})):"linear"===this.scaleType?(s=[a,c],this.xSet=t.slice().sort(function(t,e){return t-e})):(s=t,this.xSet=t),s},e.prototype.getYDomain=function(){for(var t=this,e=[],n=function(n){for(var i=r.xSet[n],o=0,s=0,a=r.results;s<a.length;s++){var c=a[s].series.find(function(e){var n=e.name,r=i;return"time"===t.scaleType&&(n=n.valueOf(),r=r.valueOf()),n===r});c&&(o+=c.value)}e.push(o)},r=this,i=0;i<this.xSet.length;i++)n(i);return[this.yScaleMin?this.yScaleMin:Math.min.apply(Math,[0].concat(e)),this.yScaleMax?this.yScaleMax:Math.max.apply(Math,e)]},e.prototype.getSeriesDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.getXScale=function(t,e){var n;return"time"===this.scaleType?n=Object(i.scaleTime)():"linear"===this.scaleType?n=Object(i.scaleLinear)():"ordinal"===this.scaleType&&(n=Object(i.scalePoint)().padding(.1)),n.range([0,e]).domain(t),this.roundDomains?n.nice():n},e.prototype.getYScale=function(t,e){var n=Object(i.scaleLinear)().range([e,0]).domain(t);return this.roundDomains?n.nice():n},e.prototype.getScaleType=function(t){for(var e=!0,n=!0,r=0,i=t;r<i.length;r++){var o=i[r];this.isDate(o)||(e=!1),"number"!=typeof o&&(n=!1)}return e?"time":n?"linear":"ordinal"},e.prototype.isDate=function(t){return t instanceof Date},e.prototype.updateDomain=function(t){this.filteredDomain=t,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)},e.prototype.updateHoveredVertical=function(t){this.hoveredVertical=t.value,this.deactivateAll()},e.prototype.hideCircles=function(){this.hoveredVertical=null,this.deactivateAll()},e.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},e.prototype.trackBy=function(t,e){return e.name},e.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new a.a(this.scheme,this.schemeType,t,this.customColors)},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.seriesDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t){this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value})>-1||(this.activeEntries=[t].concat(this.activeEntries),this.activate.emit({value:t,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t){var e=this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value});this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},e.prototype.deactivateAll=function(){this.activeEntries=this.activeEntries.slice();for(var t=0,e=this.activeEntries;t<e.length;t++){var n=e[t];this.deactivate.emit({value:n,entries:[]})}this.activeEntries=[]},p([Object(r.Input)(),h("design:type",Object)],e.prototype,"legend",void 0),p([Object(r.Input)(),h("design:type",String)],e.prototype,"legendTitle",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"xAxis",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"yAxis",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"showXAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"showYAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"xAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"yAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"timeline",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"gradient",void 0),p([Object(r.Input)(),h("design:type",Boolean)],e.prototype,"showGridLines",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"curve",void 0),p([Object(r.Input)(),h("design:type",Array)],e.prototype,"activeEntries",void 0),p([Object(r.Input)(),h("design:type",String)],e.prototype,"schemeType",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),p([Object(r.Input)(),h("design:type",Boolean)],e.prototype,"roundDomains",void 0),p([Object(r.Input)(),h("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"xScaleMin",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"xScaleMax",void 0),p([Object(r.Input)(),h("design:type",Number)],e.prototype,"yScaleMin",void 0),p([Object(r.Input)(),h("design:type",Number)],e.prototype,"yScaleMax",void 0),p([Object(r.Output)(),h("design:type",r.EventEmitter)],e.prototype,"activate",void 0),p([Object(r.Output)(),h("design:type",r.EventEmitter)],e.prototype,"deactivate",void 0),p([Object(r.ContentChild)("tooltipTemplate"),h("design:type",r.TemplateRef)],e.prototype,"tooltipTemplate",void 0),p([Object(r.ContentChild)("seriesTooltipTemplate"),h("design:type",r.TemplateRef)],e.prototype,"seriesTooltipTemplate",void 0),p([Object(r.HostListener)("mouseleave"),h("design:type",Function),h("design:paramtypes",[]),h("design:returntype",void 0)],e.prototype,"hideCircles",null),e=p([Object(r.Component)({selector:"ngx-charts-area-chart-stacked",template:'\n <ngx-charts-chart\n [view]="[width, height]"\n [showLegend]="legend"\n [legendOptions]="legendOptions"\n [activeEntries]="activeEntries"\n [animations]="animations"\n (legendLabelClick)="onClick($event)"\n (legendLabelActivate)="onActivate($event)"\n (legendLabelDeactivate)="onDeactivate($event)">\n <svg:defs>\n <svg:clipPath [attr.id]="clipPathId">\n <svg:rect\n [attr.width]="dims.width + 10"\n [attr.height]="dims.height + 10"\n [attr.transform]="\'translate(-5, -5)\'"/>\n </svg:clipPath>\n </svg:defs>\n <svg:g [attr.transform]="transform" class="area-chart chart">\n <svg:g ngx-charts-x-axis\n *ngIf="xAxis"\n [xScale]="xScale"\n [dims]="dims"\n [showGridLines]="showGridLines"\n [showLabel]="showXAxisLabel"\n [labelText]="xAxisLabel"\n [tickFormatting]="xAxisTickFormatting"\n (dimensionsChanged)="updateXAxisHeight($event)">\n </svg:g>\n <svg:g ngx-charts-y-axis\n *ngIf="yAxis"\n [yScale]="yScale"\n [dims]="dims"\n [showGridLines]="showGridLines"\n [showLabel]="showYAxisLabel"\n [labelText]="yAxisLabel"\n [tickFormatting]="yAxisTickFormatting"\n (dimensionsChanged)="updateYAxisWidth($event)">\n </svg:g>\n <svg:g [attr.clip-path]="clipPath">\n <svg:g *ngFor="let series of results; trackBy:trackBy">\n <svg:g ngx-charts-area-series\n [xScale]="xScale"\n [yScale]="yScale"\n [colors]="colors"\n [data]="series"\n [scaleType]="scaleType"\n [gradient]="gradient"\n [activeEntries]="activeEntries"\n stacked="true"\n [curve]="curve"\n [animations]="animations"\n />\n </svg:g>\n\n <svg:g *ngIf="!tooltipDisabled" (mouseleave)="hideCircles()">\n <svg:g ngx-charts-tooltip-area\n [dims]="dims"\n [xSet]="xSet"\n [xScale]="xScale"\n [yScale]="yScale"\n [results]="results"\n [colors]="colors"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="seriesTooltipTemplate"\n (hover)="updateHoveredVertical($event)"\n />\n\n <svg:g *ngFor="let series of results; trackBy:trackBy">\n <svg:g ngx-charts-circle-series\n type="stacked"\n [xScale]="xScale"\n [yScale]="yScale"\n [colors]="colors"\n [activeEntries]="activeEntries"\n [data]="series"\n [scaleType]="scaleType"\n [visibleValue]="hoveredVertical"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="tooltipTemplate"\n (select)="onClick($event, series)"\n (activate)="onActivate($event)"\n (deactivate)="onDeactivate($event)"\n />\n </svg:g>\n </svg:g>\n </svg:g>\n </svg:g>\n <svg:g ngx-charts-timeline\n *ngIf="timeline && scaleType === \'time\'"\n [attr.transform]="timelineTransform"\n [results]="results"\n [view]="[timelineWidth, height]"\n [height]="timelineHeight"\n [scheme]="scheme"\n [customColors]="customColors"\n [legend]="legend"\n [scaleType]="scaleType"\n (onDomainChange)="updateDomain($event)">\n <svg:g *ngFor="let series of results; trackBy:trackBy">\n <svg:g ngx-charts-area-series\n [xScale]="timelineXScale"\n [yScale]="timelineYScale"\n [colors]="colors"\n [data]="series"\n [scaleType]="scaleType"\n [gradient]="gradient"\n stacked="true"\n [curve]="curve"\n [animations]="animations"\n />\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush,styles:[n("./src/common/base-chart.component.scss")],encapsulation:r.ViewEncapsulation.None})],e)}(c.a)},"./src/area-chart/area-chart.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var r=n("@angular/core"),i=(n.n(r),n("d3-scale")),o=(n.n(i),n("d3-shape")),s=(n.n(o),n("./src/common/view-dimensions.helper.ts")),a=n("./src/common/color.helper.ts"),c=n("./src/common/base-chart.component.ts"),u=n("./src/utils/id.ts"),l=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),p=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},h=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legendTitle="Legend",e.showGridLines=!0,e.curve=o.curveLinear,e.activeEntries=[],e.roundDomains=!1,e.tooltipDisabled=!1,e.activate=new r.EventEmitter,e.deactivate=new r.EventEmitter,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e.timelineHeight=50,e.timelinePadding=10,e}return l(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=Object(s.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+", "+this.margin[0]+")",this.clipPathId="clip"+Object(u.a)().toString(),this.clipPath="url(#"+this.clipPathId+")"},e.prototype.updateTimeline=function(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform="translate("+this.dims.xOffset+", "+-this.margin[2]+")")},e.prototype.getXDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var r=0,i=n[e].series;r<i.length;r++){var o=i[r];t.includes(o.name)||t.push(o.name)}this.scaleType=this.getScaleType(t);var s=[];"linear"===this.scaleType&&(t=t.map(function(t){return Number(t)}));var a,c;return"time"!==this.scaleType&&"linear"!==this.scaleType||(a=this.xScaleMin?this.xScaleMin:Math.min.apply(Math,t),c=this.xScaleMax?this.xScaleMax:Math.max.apply(Math,t)),"time"===this.scaleType?(s=[new Date(a),new Date(c)],this.xSet=t.slice().sort(function(t,e){var n=t.getTime(),r=e.getTime();return n>r?1:r>n?-1:0})):"linear"===this.scaleType?(s=[a,c],this.xSet=t.slice().sort(function(t,e){return t-e})):(s=t,this.xSet=t),s},e.prototype.getYDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var r=0,i=n[e].series;r<i.length;r++){var o=i[r];t.includes(o.value)||t.push(o.value)}var s=t.slice();this.autoScale||s.push(0);return[this.yScaleMin?this.yScaleMin:Math.min.apply(Math,s),this.yScaleMax?this.yScaleMax:Math.max.apply(Math,s)]},e.prototype.getSeriesDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.getXScale=function(t,e){var n;return"time"===this.scaleType?n=Object(i.scaleTime)():"linear"===this.scaleType?n=Object(i.scaleLinear)():"ordinal"===this.scaleType&&(n=Object(i.scalePoint)().padding(.1)),n.range([0,e]).domain(t),this.roundDomains?n.nice():n},e.prototype.getYScale=function(t,e){var n=Object(i.scaleLinear)().range([e,0]).domain(t);return this.roundDomains?n.nice():n},e.prototype.getScaleType=function(t){for(var e=!0,n=!0,r=0,i=t;r<i.length;r++){var o=i[r];this.isDate(o)||(e=!1),"number"!=typeof o&&(n=!1)}return e?"time":n?"linear":"ordinal"},e.prototype.isDate=function(t){return t instanceof Date},e.prototype.updateDomain=function(t){this.filteredDomain=t,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)},e.prototype.updateHoveredVertical=function(t){this.hoveredVertical=t.value,this.deactivateAll()},e.prototype.hideCircles=function(){this.hoveredVertical=null,this.deactivateAll()},e.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},e.prototype.trackBy=function(t,e){return e.name},e.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new a.a(this.scheme,this.schemeType,t,this.customColors)},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.seriesDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t){this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value})>-1||(this.activeEntries=[t].concat(this.activeEntries),this.activate.emit({value:t,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t){var e=this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value});this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},e.prototype.deactivateAll=function(){this.activeEntries=this.activeEntries.slice();for(var t=0,e=this.activeEntries;t<e.length;t++){var n=e[t];this.deactivate.emit({value:n,entries:[]})}this.activeEntries=[]},p([Object(r.Input)(),h("design:type",Object)],e.prototype,"legend",void 0),p([Object(r.Input)(),h("design:type",String)],e.prototype,"legendTitle",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"state",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"xAxis",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"yAxis",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"autoScale",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"showXAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"showYAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"xAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"yAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"timeline",void 0),p([Object(r.Input)(),h("design:type",Boolean)],e.prototype,"gradient",void 0),p([Object(r.Input)(),h("design:type",Boolean)],e.prototype,"showGridLines",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"curve",void 0),p([Object(r.Input)(),h("design:type",Array)],e.prototype,"activeEntries",void 0),p([Object(r.Input)(),h("design:type",String)],e.prototype,"schemeType",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),p([Object(r.Input)(),h("design:type",Boolean)],e.prototype,"roundDomains",void 0),p([Object(r.Input)(),h("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"xScaleMin",void 0),p([Object(r.Input)(),h("design:type",Object)],e.prototype,"xScaleMax",void 0),p([Object(r.Input)(),h("design:type",Number)],e.prototype,"yScaleMin",void 0),p([Object(r.Input)(),h("design:type",Number)],e.prototype,"yScaleMax",void 0),p([Object(r.Output)(),h("design:type",r.EventEmitter)],e.prototype,"activate",void 0),p([Object(r.Output)(),h("design:type",r.EventEmitter)],e.prototype,"deactivate",void 0),p([Object(r.ContentChild)("tooltipTemplate"),h("design:type",r.TemplateRef)],e.prototype,"tooltipTemplate",void 0),p([Object(r.ContentChild)("seriesTooltipTemplate"),h("design:type",r.TemplateRef)],e.prototype,"seriesTooltipTemplate",void 0),p([Object(r.HostListener)("mouseleave"),h("design:type",Function),h("design:paramtypes",[]),h("design:returntype",void 0)],e.prototype,"hideCircles",null),e=p([Object(r.Component)({selector:"ngx-charts-area-chart",template:'\n <ngx-charts-chart\n [view]="[width, height]"\n [showLegend]="legend"\n [legendOptions]="legendOptions"\n [activeEntries]="activeEntries"\n [animations]="animations"\n (legendLabelClick)="onClick($event)"\n (legendLabelActivate)="onActivate($event)"\n (legendLabelDeactivate)="onDeactivate($event)">\n <svg:defs>\n <svg:clipPath [attr.id]="clipPathId">\n <svg:rect\n [attr.width]="dims.width + 10"\n [attr.height]="dims.height + 10"\n [attr.transform]="\'translate(-5, -5)\'"/>\n </svg:clipPath>\n </svg:defs>\n <svg:g [attr.transform]="transform" class="area-chart chart">\n <svg:g ngx-charts-x-axis\n *ngIf="xAxis"\n [xScale]="xScale"\n [dims]="dims"\n [showGridLines]="showGridLines"\n [showLabel]="showXAxisLabel"\n [labelText]="xAxisLabel"\n [tickFormatting]="xAxisTickFormatting"\n (dimensionsChanged)="updateXAxisHeight($event)">\n </svg:g>\n <svg:g ngx-charts-y-axis\n *ngIf="yAxis"\n [yScale]="yScale"\n [dims]="dims"\n [showGridLines]="showGridLines"\n [showLabel]="showYAxisLabel"\n [labelText]="yAxisLabel"\n [tickFormatting]="yAxisTickFormatting"\n (dimensionsChanged)="updateYAxisWidth($event)">\n </svg:g>\n <svg:g [attr.clip-path]="clipPath">\n <svg:g *ngFor="let series of results; trackBy:trackBy">\n <svg:g ngx-charts-area-series\n [xScale]="xScale"\n [yScale]="yScale"\n [colors]="colors"\n [data]="series"\n [activeEntries]="activeEntries"\n [scaleType]="scaleType"\n [gradient]="gradient"\n [curve]="curve"\n [animations]="animations"\n />\n </svg:g>\n\n <svg:g *ngIf="!tooltipDisabled" (mouseleave)="hideCircles()">\n <svg:g ngx-charts-tooltip-area\n [dims]="dims"\n [xSet]="xSet"\n [xScale]="xScale"\n [yScale]="yScale"\n [results]="results"\n [colors]="colors"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="seriesTooltipTemplate"\n (hover)="updateHoveredVertical($event)"\n />\n\n <svg:g *ngFor="let series of results">\n <svg:g ngx-charts-circle-series\n [xScale]="xScale"\n [yScale]="yScale"\n [colors]="colors"\n [activeEntries]="activeEntries"\n [data]="series"\n [scaleType]="scaleType"\n [visibleValue]="hoveredVertical"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="tooltipTemplate"\n (select)="onClick($event, series)"\n (activate)="onActivate($event)"\n (deactivate)="onDeactivate($event)"\n />\n </svg:g>\n </svg:g>\n </svg:g>\n </svg:g>\n <svg:g ngx-charts-timeline\n *ngIf="timeline && scaleType === \'time\'"\n [attr.transform]="timelineTransform"\n [results]="results"\n [view]="[timelineWidth, height]"\n [height]="timelineHeight"\n [scheme]="scheme"\n [customColors]="customColors"\n [legend]="legend"\n [scaleType]="scaleType"\n (onDomainChange)="updateDomain($event)">\n <svg:g *ngFor="let series of results; trackBy:trackBy">\n <svg:g ngx-charts-area-series\n [xScale]="timelineXScale"\n [yScale]="timelineYScale"\n [colors]="colors"\n [data]="series"\n [scaleType]="scaleType"\n [gradient]="gradient"\n [curve]="curve"\n [animations]="animations"\n />\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush,styles:[n("./src/common/base-chart.component.scss")],encapsulation:r.ViewEncapsulation.None})],e)}(c.a)},"./src/area-chart/area-chart.module.ts":function(t,e,n){"use strict";n.d(e,"b",function(){return l});var r=n("@angular/core"),i=(n.n(r),n("./src/area-chart/area-chart.component.ts")),o=n("./src/area-chart/area-chart-normalized.component.ts"),s=n("./src/area-chart/area-chart-stacked.component.ts"),a=n("./src/area-chart/area-series.component.ts"),c=n("./src/common/chart-common.module.ts");n.d(e,"a",function(){return i.a}),n.d(e,"c",function(){return o.a}),n.d(e,"d",function(){return s.a}),n.d(e,"e",function(){return a.a});var u=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},l=function(){function t(){}return t=u([Object(r.NgModule)({imports:[c.a],declarations:[i.a,o.a,s.a,a.a],exports:[i.a,o.a,s.a,a.a]})],t)}()},"./src/area-chart/area-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("@angular/core"),i=(n.n(r),n("d3-shape")),o=(n.n(i),n("./src/utils/sort.ts")),s=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(){this.stacked=!1,this.normalized=!1,this.animations=!0,this.select=new r.EventEmitter}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){var t=this;this.updateGradient();var e,n,r=function(e){var n=e.name;return t.xScale(n)};this.stacked||this.normalized?(e=Object(i.area)().x(r).y0(function(e,n){return t.yScale(e.d0)}).y1(function(e,n){return t.yScale(e.d1)}),n=Object(i.area)().x(r).y0(function(e){return t.yScale.range()[0]}).y1(function(e){return t.yScale.range()[0]})):(e=Object(i.area)().x(r).y0(function(){return t.yScale.range()[0]}).y1(function(e){return t.yScale(e.value)}),n=Object(i.area)().x(r).y0(function(e){return t.yScale.range()[0]}).y1(function(e){return t.yScale.range()[0]})),e.curve(this.curve),n.curve(this.curve),this.opacity=.8;var s=this.data.series;s="linear"===this.scaleType?Object(o.c)(s,"name"):"time"===this.scaleType?Object(o.b)(s,"name"):Object(o.a)(s,"name","asc",this.xScale.domain()),this.path=e(s),this.startingPath=n(s)},t.prototype.updateGradient=function(){if("linear"===this.colors.scaleType)if(this.hasGradient=!0,this.stacked||this.normalized){var t=this.data.series.map(function(t){return t.d0}),e=this.data.series.map(function(t){return t.d1}),n=Math.max.apply(Math,e),r=Math.min.apply(Math,t);this.gradientStops=this.colors.getLinearGradientStops(n,r)}else{var i=this.data.series.map(function(t){return t.value});n=Math.max.apply(Math,i);this.gradientStops=this.colors.getLinearGradientStops(n)}else this.hasGradient=!1,this.gradientStops=void 0},t.prototype.isActive=function(t){if(!this.activeEntries)return!1;return void 0!==this.activeEntries.find(function(e){return t.name===e.name})},t.prototype.isInactive=function(t){if(!this.activeEntries||0===this.activeEntries.length)return!1;return void 0===this.activeEntries.find(function(e){return t.name===e.name})},s([Object(r.Input)(),a("design:type",Object)],t.prototype,"data",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"xScale",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"yScale",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"colors",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"scaleType",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"stacked",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"normalized",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"gradient",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"curve",void 0),s([Object(r.Input)(),a("design:type",Array)],t.prototype,"activeEntries",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"animations",void 0),s([Object(r.Output)(),a("design:type",Object)],t.prototype,"select",void 0),t=s([Object(r.Component)({selector:"g[ngx-charts-area-series]",template:'\n <svg:g ngx-charts-area\n class="area-series"\n [data]="data"\n [path]="path"\n [fill]="colors.getColor(data.name)"\n [stops]="gradientStops"\n [startingPath]="startingPath"\n [opacity]="opacity"\n [gradient]="gradient || hasGradient"\n [animations]="animations"\n [class.active]="isActive(data)"\n [class.inactive]="isInactive(data)"\n />\n ',changeDetection:r.ChangeDetectionStrategy.OnPush})],t)}()},"./src/area-chart/index.ts":function(t,e,n){"use strict";var r=n("./src/area-chart/area-chart.module.ts");n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b}),n.d(e,"c",function(){return r.c}),n.d(e,"d",function(){return r.d}),n.d(e,"e",function(){return r.e});n("./src/area-chart/area-chart.component.ts"),n("./src/area-chart/area-chart-normalized.component.ts"),n("./src/area-chart/area-chart-stacked.component.ts"),n("./src/area-chart/area-series.component.ts")},"./src/bar-chart/bar-chart.module.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return v});var r=n("@angular/core"),i=(n.n(r),n("./src/common/chart-common.module.ts")),o=n("./src/bar-chart/bar.component.ts"),s=n("./src/bar-chart/bar-horizontal.component.ts"),a=n("./src/bar-chart/bar-horizontal-2d.component.ts"),c=n("./src/bar-chart/bar-horizontal-normalized.component.ts"),u=n("./src/bar-chart/bar-horizontal-stacked.component.ts"),l=n("./src/bar-chart/bar-vertical.component.ts"),p=n("./src/bar-chart/bar-vertical-2d.component.ts"),h=n("./src/bar-chart/bar-vertical-normalized.component.ts"),d=n("./src/bar-chart/bar-vertical-stacked.component.ts"),f=n("./src/bar-chart/series-horizontal.component.ts"),y=n("./src/bar-chart/series-vertical.component.ts");n.d(e,"b",function(){return o.a}),n.d(e,"d",function(){return s.a}),n.d(e,"c",function(){return a.a}),n.d(e,"e",function(){return c.a}),n.d(e,"f",function(){return u.a}),n.d(e,"h",function(){return l.a}),n.d(e,"g",function(){return p.a}),n.d(e,"i",function(){return h.a}),n.d(e,"j",function(){return d.a}),n.d(e,"k",function(){return f.a}),n.d(e,"l",function(){return y.a});var g=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},v=function(){function t(){}return t=g([Object(r.NgModule)({imports:[i.a],declarations:[o.a,s.a,a.a,c.a,u.a,l.a,p.a,h.a,d.a,f.a,y.a],exports:[o.a,s.a,a.a,c.a,u.a,l.a,p.a,h.a,d.a,f.a,y.a]})],t)}()},"./src/bar-chart/bar-horizontal-2d.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n("@angular/core"),i=(n.n(r),n("@angular/animations")),o=(n.n(i),n("d3-scale")),s=(n.n(o),n("./src/common/view-dimensions.helper.ts")),a=n("./src/common/color.helper.ts"),c=n("./src/common/base-chart.component.ts"),u=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legend=!1,e.legendTitle="Legend",e.tooltipDisabled=!1,e.showGridLines=!0,e.activeEntries=[],e.groupPadding=16,e.barPadding=8,e.roundDomains=!1,e.roundEdges=!0,e.activate=new r.EventEmitter,e.deactivate=new r.EventEmitter,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e}return u(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=Object(s.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType}),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valuesDomain=this.getValueDomain(),this.groupScale=this.getGroupScale(),this.innerScale=this.getInnerScale(),this.valueScale=this.getValueScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},e.prototype.getGroupScale=function(){var t=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return Object(o.scaleBand)().rangeRound([0,this.dims.height]).paddingInner(t).paddingOuter(t/2).domain(this.groupDomain)},e.prototype.getInnerScale=function(){var t=this.groupScale.bandwidth(),e=this.innerDomain.length/(t/this.barPadding+1);return Object(o.scaleBand)().rangeRound([0,t]).paddingInner(e).domain(this.innerDomain)},e.prototype.getValueScale=function(){var t=Object(o.scaleLinear)().range([0,this.dims.width]).domain(this.valuesDomain);return this.roundDomains?t.nice():t},e.prototype.getGroupDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++){var r=n[e];t.includes(r.name)||t.push(r.name)}return t},e.prototype.getInnerDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var r=0,i=n[e].series;r<i.length;r++){var o=i[r];t.includes(o.name)||t.push(o.name)}return t},e.prototype.getValueDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var r=0,i=n[e].series;r<i.length;r++){var o=i[r];t.includes(o.value)||t.push(o.value)}return[Math.min.apply(Math,[0].concat(t)),this.xScaleMax?Math.max.apply(Math,[this.xScaleMax].concat(t)):Math.max.apply(Math,t)]},e.prototype.groupTransform=function(t){return"translate(0, "+this.groupScale(t.name)+")"},e.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},e.prototype.trackBy=function(t,e){return e.name},e.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.innerDomain:this.valuesDomain,this.colors=new a.a(this.scheme,this.schemeType,t,this.customColors)},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.innerDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.valuesDomain,t.colors=this.colors.scale),t},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name);this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series})>-1||(this.activeEntries=[n].concat(this.activeEntries),this.activate.emit({value:n,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name);var r=this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series});this.activeEntries.splice(r,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:n,entries:this.activeEntries})},l([Object(r.Input)(),p("design:type",Object)],e.prototype,"legend",void 0),l([Object(r.Input)(),p("design:type",String)],e.prototype,"legendTitle",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"xAxis",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"yAxis",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"showXAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"showYAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"xAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"yAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"gradient",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"showGridLines",void 0),l([Object(r.Input)(),p("design:type",Array)],e.prototype,"activeEntries",void 0),l([Object(r.Input)(),p("design:type",String)],e.prototype,"schemeType",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"groupPadding",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"barPadding",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"roundDomains",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"roundEdges",void 0),l([Object(r.Input)(),p("design:type",Number)],e.prototype,"xScaleMax",void 0),l([Object(r.Output)(),p("design:type",r.EventEmitter)],e.prototype,"activate",void 0),l([Object(r.Output)(),p("design:type",r.EventEmitter)],e.prototype,"deactivate",void 0),l([Object(r.ContentChild)("tooltipTemplate"),p("design:type",r.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=l([Object(r.Component)({selector:"ngx-charts-bar-horizontal-2d",template:'\n <ngx-charts-chart\n [view]="[width, height]"\n [showLegend]="legend"\n [legendOptions]="legendOptions"\n [activeEntries]="activeEntries"\n [animations]="animations"\n (legendLabelActivate)="onActivate($event)"\n (legendLabelDeactivate)="onDeactivate($event)"\n (legendLabelClick)="onClick($event)">\n <svg:g [attr.transform]="transform" class="bar-chart chart">\n <svg:g ngx-charts-grid-panel-series\n [xScale]="valueScale"\n [yScale]="groupScale"\n [data]="results"\n [dims]="dims"\n orient="horizontal">\n </svg:g>\n <svg:g ngx-charts-x-axis\n *ngIf="xAxis"\n [xScale]="valueScale"\n [dims]="dims"\n [showGridLines]="showGridLines"\n [showLabel]="showXAxisLabel"\n [labelText]="xAxisLabel"\n [tickFormatting]="xAxisTickFormatting"\n (dimensionsChanged)="updateXAxisHeight($event)">\n </svg:g>\n <svg:g ngx-charts-y-axis\n *ngIf="yAxis"\n [yScale]="groupScale"\n [dims]="dims"\n [showLabel]="showYAxisLabel"\n [labelText]="yAxisLabel"\n [tickFormatting]="yAxisTickFormatting"\n (dimensionsChanged)="updateYAxisWidth($event)">\n </svg:g>\n <svg:g\n *ngFor="let group of results; trackBy:trackBy"\n [@animationState]="\'active\'"\n [attr.transform]="groupTransform(group)">\n <svg:g ngx-charts-series-horizontal\n [xScale]="valueScale"\n [activeEntries]="activeEntries"\n [yScale]="innerScale"\n [colors]="colors"\n [series]="group.series"\n [dims]="dims"\n [gradient]="gradient"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="tooltipTemplate"\n [seriesName]="group.name"\n [roundEdges]="roundEdges"\n [animations]="animations"\n (select)="onClick($event, group)"\n (activate)="onActivate($event, group)"\n (deactivate)="onDeactivate($event, group)"\n />\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush,styles:[n("./src/common/base-chart.component.scss")],encapsulation:r.ViewEncapsulation.None,animations:[Object(i.trigger)("animationState",[Object(i.transition)(":leave",[Object(i.style)({opacity:1,transform:"*"}),Object(i.animate)(500,Object(i.style)({opacity:0,transform:"scale(0)"}))])])]})],e)}(c.a)},"./src/bar-chart/bar-horizontal-normalized.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n("@angular/core"),i=(n.n(r),n("@angular/animations")),o=(n.n(i),n("d3-scale")),s=(n.n(o),n("./src/common/view-dimensions.helper.ts")),a=n("./src/common/color.helper.ts"),c=n("./src/common/base-chart.component.ts"),u=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legend=!1,e.legendTitle="Legend",e.tooltipDisabled=!1,e.showGridLines=!0,e.activeEntries=[],e.barPadding=8,e.roundDomains=!1,e.activate=new r.EventEmitter,e.deactivate=new r.EventEmitter,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e}return u(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=Object(s.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType}),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},e.prototype.getGroupDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++){var r=n[e];t.includes(r.name)||t.push(r.name)}return t},e.prototype.getInnerDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var r=0,i=n[e].series;r<i.length;r++){var o=i[r];t.includes(o.name)||t.push(o.name)}return t},e.prototype.getValueDomain=function(){return[0,100]},e.prototype.getYScale=function(){var t=this.groupDomain.length/(this.dims.height/this.barPadding+1);return Object(o.scaleBand)().rangeRound([0,this.dims.height]).paddingInner(t).domain(this.groupDomain)},e.prototype.getXScale=function(){var t=Object(o.scaleLinear)().range([0,this.dims.width]).domain(this.valueDomain);return this.roundDomains?t.nice():t},e.prototype.groupTransform=function(t){return"translate(0, "+this.yScale(t.name)+")"},e.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},e.prototype.trackBy=function(t,e){return e.name},e.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.innerDomain:this.valueDomain,this.colors=new a.a(this.scheme,this.schemeType,t,this.customColors)},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.innerDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.valueDomain,t.colors=this.colors.scale),t},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name);this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series})>-1||(this.activeEntries=[n].concat(this.activeEntries),this.activate.emit({value:n,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name);var r=this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series});this.activeEntries.splice(r,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:n,entries:this.activeEntries})},l([Object(r.Input)(),p("design:type",Object)],e.prototype,"legend",void 0),l([Object(r.Input)(),p("design:type",String)],e.prototype,"legendTitle",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"xAxis",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"yAxis",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"showXAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"showYAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"xAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"yAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"gradient",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"showGridLines",void 0),l([Object(r.Input)(),p("design:type",Array)],e.prototype,"activeEntries",void 0),l([Object(r.Input)(),p("design:type",String)],e.prototype,"schemeType",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"barPadding",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"roundDomains",void 0),l([Object(r.Output)(),p("design:type",r.EventEmitter)],e.prototype,"activate",void 0),l([Object(r.Output)(),p("design:type",r.EventEmitter)],e.prototype,"deactivate",void 0),l([Object(r.ContentChild)("tooltipTemplate"),p("design:type",r.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=l([Object(r.Component)({selector:"ngx-charts-bar-horizontal-normalized",template:'\n <ngx-charts-chart\n [view]="[width, height]"\n [showLegend]="legend"\n [legendOptions]="legendOptions"\n [activeEntries]="activeEntries"\n [animations]="animations"\n (legendLabelActivate)="onActivate($event)"\n (legendLabelDeactivate)="onDeactivate($event)"\n (legendLabelClick)="onClick($event)">\n <svg:g [attr.transform]="transform" class="bar-chart chart">\n <svg:g ngx-charts-x-axis\n *ngIf="xAxis"\n [xScale]="xScale"\n [dims]="dims"\n [showGridLines]="showGridLines"\n [showLabel]="showXAxisLabel"\n [labelText]="xAxisLabel"\n [tickFormatting]="xAxisTickFormatting"\n (dimensionsChanged)="updateXAxisHeight($event)">\n </svg:g>\n <svg:g ngx-charts-y-axis\n *ngIf="yAxis"\n [yScale]="yScale"\n [dims]="dims"\n [showLabel]="showYAxisLabel"\n [labelText]="yAxisLabel"\n [tickFormatting]="yAxisTickFormatting"\n (dimensionsChanged)="updateYAxisWidth($event)">\n </svg:g>\n <svg:g\n *ngFor="let group of results; trackBy:trackBy"\n [@animationState]="\'active\'"\n [attr.transform]="groupTransform(group)">\n <svg:g ngx-charts-series-horizontal\n type="normalized"\n [xScale]="xScale"\n [yScale]="yScale"\n [activeEntries]="activeEntries"\n [colors]="colors"\n [series]="group.series"\n [dims]="dims"\n [gradient]="gradient"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="tooltipTemplate"\n [seriesName]="group.name"\n [animations]="animations"\n (select)="onClick($event, group)"\n (activate)="onActivate($event, group)"\n (deactivate)="onDeactivate($event, group)"\n />\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush,styles:[n("./src/common/base-chart.component.scss")],encapsulation:r.ViewEncapsulation.None,animations:[Object(i.trigger)("animationState",[Object(i.transition)(":leave",[Object(i.style)({opacity:1,transform:"*"}),Object(i.animate)(500,Object(i.style)({opacity:0,transform:"scale(0)"}))])])]})],e)}(c.a)},"./src/bar-chart/bar-horizontal-stacked.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n("@angular/core"),i=(n.n(r),n("@angular/animations")),o=(n.n(i),n("d3-scale")),s=(n.n(o),n("./src/common/view-dimensions.helper.ts")),a=n("./src/common/color.helper.ts"),c=n("./src/common/base-chart.component.ts"),u=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legend=!1,e.legendTitle="Legend",e.tooltipDisabled=!1,e.showGridLines=!0,e.activeEntries=[],e.barPadding=8,e.roundDomains=!1,e.activate=new r.EventEmitter,e.deactivate=new r.EventEmitter,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e}return u(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=Object(s.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType}),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},e.prototype.getGroupDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++){var r=n[e];t.includes(r.name)||t.push(r.name)}return t},e.prototype.getInnerDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var r=0,i=n[e].series;r<i.length;r++){var o=i[r];t.includes(o.name)||t.push(o.name)}return t},e.prototype.getValueDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++){for(var r=0,i=0,o=n[e].series;i<o.length;i++){r+=o[i].value}t.push(r)}return[Math.min.apply(Math,[0].concat(t)),this.xScaleMax?Math.max.apply(Math,[this.xScaleMax].concat(t)):Math.max.apply(Math,t)]},e.prototype.getYScale=function(){var t=this.groupDomain.length/(this.dims.height/this.barPadding+1);return Object(o.scaleBand)().rangeRound([0,this.dims.height]).paddingInner(t).domain(this.groupDomain)},e.prototype.getXScale=function(){var t=Object(o.scaleLinear)().range([0,this.dims.width]).domain(this.valueDomain);return this.roundDomains?t.nice():t},e.prototype.groupTransform=function(t){return"translate(0, "+this.yScale(t.name)+")"},e.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},e.prototype.trackBy=function(t,e){return e.name},e.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.innerDomain:this.valueDomain,this.colors=new a.a(this.scheme,this.schemeType,t,this.customColors)},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.innerDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.valueDomain,t.colors=this.colors.scale),t},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name);this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series})>-1||(this.activeEntries=[n].concat(this.activeEntries),this.activate.emit({value:n,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name);var r=this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series});this.activeEntries.splice(r,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:n,entries:this.activeEntries})},l([Object(r.Input)(),p("design:type",Object)],e.prototype,"legend",void 0),l([Object(r.Input)(),p("design:type",String)],e.prototype,"legendTitle",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"xAxis",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"yAxis",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"showXAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"showYAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"xAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"yAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"gradient",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"showGridLines",void 0),l([Object(r.Input)(),p("design:type",Array)],e.prototype,"activeEntries",void 0),l([Object(r.Input)(),p("design:type",String)],e.prototype,"schemeType",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"barPadding",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"roundDomains",void 0),l([Object(r.Input)(),p("design:type",Number)],e.prototype,"xScaleMax",void 0),l([Object(r.Output)(),p("design:type",r.EventEmitter)],e.prototype,"activate",void 0),l([Object(r.Output)(),p("design:type",r.EventEmitter)],e.prototype,"deactivate",void 0),l([Object(r.ContentChild)("tooltipTemplate"),p("design:type",r.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=l([Object(r.Component)({selector:"ngx-charts-bar-horizontal-stacked",template:'\n <ngx-charts-chart\n [view]="[width, height]"\n [showLegend]="legend"\n [legendOptions]="legendOptions"\n [activeEntries]="activeEntries"\n [animations]="animations"\n (legendLabelActivate)="onActivate($event)"\n (legendLabelDeactivate)="onDeactivate($event)"\n (legendLabelClick)="onClick($event)">\n <svg:g [attr.transform]="transform" class="bar-chart chart">\n <svg:g ngx-charts-x-axis\n *ngIf="xAxis"\n [xScale]="xScale"\n [dims]="dims"\n [showGridLines]="showGridLines"\n [showLabel]="showXAxisLabel"\n [labelText]="xAxisLabel"\n [tickFormatting]="xAxisTickFormatting"\n (dimensionsChanged)="updateXAxisHeight($event)">\n </svg:g>\n <svg:g ngx-charts-y-axis\n *ngIf="yAxis"\n [yScale]="yScale"\n [dims]="dims"\n [showLabel]="showYAxisLabel"\n [labelText]="yAxisLabel"\n [tickFormatting]="yAxisTickFormatting"\n (dimensionsChanged)="updateYAxisWidth($event)">\n </svg:g>\n <svg:g\n *ngFor="let group of results; trackBy:trackBy"\n [@animationState]="\'active\'"\n [attr.transform]="groupTransform(group)">\n <svg:g ngx-charts-series-horizontal\n type="stacked"\n [xScale]="xScale"\n [yScale]="yScale"\n [colors]="colors"\n [series]="group.series"\n [activeEntries]="activeEntries"\n [dims]="dims"\n [gradient]="gradient"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="tooltipTemplate"\n [seriesName]="group.name"\n [animations]="animations"\n (select)="onClick($event, group)"\n (activate)="onActivate($event, group)"\n (deactivate)="onDeactivate($event, group)"\n />\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush,styles:[n("./src/common/base-chart.component.scss")],encapsulation:r.ViewEncapsulation.None,animations:[Object(i.trigger)("animationState",[Object(i.transition)(":leave",[Object(i.style)({opacity:1,transform:"*"}),Object(i.animate)(500,Object(i.style)({opacity:0,transform:"scale(0)"}))])])]})],e)}(c.a)},"./src/bar-chart/bar-horizontal.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r=n("@angular/core"),i=(n.n(r),n("d3-scale")),o=(n.n(i),n("./src/common/view-dimensions.helper.ts")),s=n("./src/common/color.helper.ts"),a=n("./src/common/base-chart.component.ts"),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legend=!1,e.legendTitle="Legend",e.tooltipDisabled=!1,e.showGridLines=!0,e.activeEntries=[],e.barPadding=8,e.roundDomains=!1,e.roundEdges=!0,e.activate=new r.EventEmitter,e.deactivate=new r.EventEmitter,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e}return c(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=Object(o.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType}),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},e.prototype.getXScale=function(){this.xDomain=this.getXDomain();var t=Object(i.scaleLinear)().range([0,this.dims.width]).domain(this.xDomain);return this.roundDomains?t.nice():t},e.prototype.getYScale=function(){this.yDomain=this.getYDomain();var t=this.yDomain.length/(this.dims.height/this.barPadding+1);return Object(i.scaleBand)().rangeRound([0,this.dims.height]).paddingInner(t).domain(this.yDomain)},e.prototype.getXDomain=function(){var t=this.results.map(function(t){return t.value});return[Math.min.apply(Math,[0].concat(t)),this.xScaleMax?Math.max.apply(Math,[this.xScaleMax].concat(t)):Math.max.apply(Math,t)]},e.prototype.getYDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.onClick=function(t){this.select.emit(t)},e.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.yDomain:this.xDomain,this.colors=new s.a(this.scheme,this.schemeType,t,this.customColors)},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.yDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.xDomain,t.colors=this.colors.scale),t},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t){this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value&&e.series===t.series})>-1||(this.activeEntries=[t].concat(this.activeEntries),this.activate.emit({value:t,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t){var e=this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value&&e.series===t.series});this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},u([Object(r.Input)(),l("design:type",Object)],e.prototype,"legend",void 0),u([Object(r.Input)(),l("design:type",String)],e.prototype,"legendTitle",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"xAxis",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"yAxis",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"showXAxisLabel",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"showYAxisLabel",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"xAxisLabel",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"yAxisLabel",void 0),u([Object(r.Input)(),l("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),u([Object(r.Input)(),l("design:type",Boolean)],e.prototype,"gradient",void 0),u([Object(r.Input)(),l("design:type",Boolean)],e.prototype,"showGridLines",void 0),u([Object(r.Input)(),l("design:type",Array)],e.prototype,"activeEntries",void 0),u([Object(r.Input)(),l("design:type",String)],e.prototype,"schemeType",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"barPadding",void 0),u([Object(r.Input)(),l("design:type",Boolean)],e.prototype,"roundDomains",void 0),u([Object(r.Input)(),l("design:type",Boolean)],e.prototype,"roundEdges",void 0),u([Object(r.Input)(),l("design:type",Number)],e.prototype,"xScaleMax",void 0),u([Object(r.Output)(),l("design:type",r.EventEmitter)],e.prototype,"activate",void 0),u([Object(r.Output)(),l("design:type",r.EventEmitter)],e.prototype,"deactivate",void 0),u([Object(r.ContentChild)("tooltipTemplate"),l("design:type",r.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=u([Object(r.Component)({selector:"ngx-charts-bar-horizontal",template:'\n <ngx-charts-chart\n [view]="[width, height]"\n [showLegend]="legend"\n [legendOptions]="legendOptions"\n [activeEntries]="activeEntries"\n [animations]="animations"\n (legendLabelClick)="onClick($event)"\n (legendLabelActivate)="onActivate($event)"\n (legendLabelDeactivate)="onDeactivate($event)">\n <svg:g [attr.transform]="transform" class="bar-chart chart">\n <svg:g ngx-charts-x-axis\n *ngIf="xAxis"\n [xScale]="xScale"\n [dims]="dims"\n [showGridLines]="showGridLines"\n [showLabel]="showXAxisLabel"\n [labelText]="xAxisLabel"\n [tickFormatting]="xAxisTickFormatting"\n (dimensionsChanged)="updateXAxisHeight($event)">\n </svg:g>\n <svg:g ngx-charts-y-axis\n *ngIf="yAxis"\n [yScale]="yScale"\n [dims]="dims"\n [showLabel]="showYAxisLabel"\n [labelText]="yAxisLabel"\n [tickFormatting]="yAxisTickFormatting"\n (dimensionsChanged)="updateYAxisWidth($event)">\n </svg:g>\n <svg:g ngx-charts-series-horizontal\n [xScale]="xScale"\n [yScale]="yScale"\n [colors]="colors"\n [series]="results"\n [dims]="dims"\n [gradient]="gradient"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="tooltipTemplate"\n [activeEntries]="activeEntries"\n [roundEdges]="roundEdges"\n [animations]="animations"\n (select)="onClick($event)"\n (activate)="onActivate($event)"\n (deactivate)="onDeactivate($event)"\n />\n </svg:g>\n </ngx-charts-chart>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush,styles:[n("./src/common/base-chart.component.scss")],encapsulation:r.ViewEncapsulation.None})],e)}(a.a)},"./src/bar-chart/bar-vertical-2d.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n("@angular/core"),i=(n.n(r),n("@angular/animations")),o=(n.n(i),n("d3-scale")),s=(n.n(o),n("./src/common/view-dimensions.helper.ts")),a=n("./src/common/color.helper.ts"),c=n("./src/common/base-chart.component.ts"),u=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legend=!1,e.legendTitle="Legend",e.tooltipDisabled=!1,e.scaleType="ordinal",e.showGridLines=!0,e.activeEntries=[],e.groupPadding=16,e.barPadding=8,e.roundDomains=!1,e.roundEdges=!0,e.activate=new r.EventEmitter,e.deactivate=new r.EventEmitter,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e}return u(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=Object(s.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType}),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valuesDomain=this.getValueDomain(),this.groupScale=this.getGroupScale(),this.innerScale=this.getInnerScale(),this.valueScale=this.getValueScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},e.prototype.getGroupScale=function(){var t=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return Object(o.scaleBand)().rangeRound([0,this.dims.width]).paddingInner(t).paddingOuter(t/2).domain(this.groupDomain)},e.prototype.getInnerScale=function(){var t=this.groupScale.bandwidth(),e=this.innerDomain.length/(t/this.barPadding+1);return Object(o.scaleBand)().rangeRound([0,t]).paddingInner(e).domain(this.innerDomain)},e.prototype.getValueScale=function(){var t=Object(o.scaleLinear)().range([this.dims.height,0]).domain(this.valuesDomain);return this.roundDomains?t.nice():t},e.prototype.getGroupDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++){var r=n[e];t.includes(r.name)||t.push(r.name)}return t},e.prototype.getInnerDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var r=0,i=n[e].series;r<i.length;r++){var o=i[r];t.includes(o.name)||t.push(o.name)}return t},e.prototype.getValueDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var r=0,i=n[e].series;r<i.length;r++){var o=i[r];t.includes(o.value)||t.push(o.value)}return[Math.min.apply(Math,[0].concat(t)),this.yScaleMax?Math.max.apply(Math,[this.yScaleMax].concat(t)):Math.max.apply(Math,t)]},e.prototype.groupTransform=function(t){return"translate("+this.groupScale(t.name)+", 0)"},e.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},e.prototype.trackBy=function(t,e){return e.name},e.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.innerDomain:this.valuesDomain,this.colors=new a.a(this.scheme,this.schemeType,t,this.customColors)},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.innerDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.valuesDomain,t.colors=this.colors.scale),t},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name);this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series})>-1||(this.activeEntries=[n].concat(this.activeEntries),this.activate.emit({value:n,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name);var r=this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series});this.activeEntries.splice(r,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:n,entries:this.activeEntries})},l([Object(r.Input)(),p("design:type",Object)],e.prototype,"legend",void 0),l([Object(r.Input)(),p("design:type",String)],e.prototype,"legendTitle",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"xAxis",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"yAxis",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"showXAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"showYAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"xAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"yAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"scaleType",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"gradient",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"showGridLines",void 0),l([Object(r.Input)(),p("design:type",Array)],e.prototype,"activeEntries",void 0),l([Object(r.Input)(),p("design:type",String)],e.prototype,"schemeType",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"groupPadding",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"barPadding",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"roundDomains",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"roundEdges",void 0),l([Object(r.Input)(),p("design:type",Number)],e.prototype,"yScaleMax",void 0),l([Object(r.Output)(),p("design:type",r.EventEmitter)],e.prototype,"activate",void 0),l([Object(r.Output)(),p("design:type",r.EventEmitter)],e.prototype,"deactivate",void 0),l([Object(r.ContentChild)("tooltipTemplate"),p("design:type",r.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=l([Object(r.Component)({selector:"ngx-charts-bar-vertical-2d",template:'\n <ngx-charts-chart\n [view]="[width, height]"\n [showLegend]="legend"\n [legendOptions]="legendOptions"\n [activeEntries]="activeEntries"\n [animations]="animations"\n (legendLabelActivate)="onActivate($event)"\n (legendLabelDeactivate)="onDeactivate($event)"\n (legendLabelClick)="onClick($event)">\n <svg:g [attr.transform]="transform" class="bar-chart chart">\n <svg:g ngx-charts-grid-panel-series\n [xScale]="groupScale"\n [yScale]="valueScale"\n [data]="results"\n [dims]="dims"\n orient="vertical">\n </svg:g>\n <svg:g ngx-charts-x-axis\n *ngIf="xAxis"\n [xScale]="groupScale"\n [dims]="dims"\n [showLabel]="showXAxisLabel"\n [labelText]="xAxisLabel"\n [tickFormatting]="xAxisTickFormatting"\n (dimensionsChanged)="updateXAxisHeight($event)">\n </svg:g>\n <svg:g ngx-charts-y-axis\n *ngIf="yAxis"\n [yScale]="valueScale"\n [dims]="dims"\n [showGridLines]="showGridLines"\n [showLabel]="showYAxisLabel"\n [labelText]="yAxisLabel"\n [tickFormatting]="yAxisTickFormatting"\n (dimensionsChanged)="updateYAxisWidth($event)">\n </svg:g>\n <svg:g ngx-charts-series-vertical\n *ngFor="let group of results; trackBy:trackBy"\n [@animationState]="\'active\'"\n [attr.transform]="groupTransform(group)"\n [activeEntries]="activeEntries"\n [xScale]="innerScale"\n [yScale]="valueScale"\n [colors]="colors"\n [series]="group.series"\n [dims]="dims"\n [gradient]="gradient"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="tooltipTemplate"\n [seriesName]="group.name"\n [roundEdges]="roundEdges"\n [animations]="animations"\n (select)="onClick($event, group)"\n (activate)="onActivate($event, group)"\n (deactivate)="onDeactivate($event, group)"\n />\n </svg:g>\n </ngx-charts-chart>\n ',styles:[n("./src/common/base-chart.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush,animations:[Object(i.trigger)("animationState",[Object(i.transition)(":leave",[Object(i.style)({opacity:1,transform:"*"}),Object(i.animate)(500,Object(i.style)({opacity:0,transform:"scale(0)"}))])])]})],e)}(c.a)},"./src/bar-chart/bar-vertical-normalized.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n("@angular/core"),i=(n.n(r),n("@angular/animations")),o=(n.n(i),n("d3-scale")),s=(n.n(o),n("./src/common/view-dimensions.helper.ts")),a=n("./src/common/color.helper.ts"),c=n("./src/common/base-chart.component.ts"),u=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legend=!1,e.legendTitle="Legend",e.tooltipDisabled=!1,e.showGridLines=!0,e.activeEntries=[],e.barPadding=8,e.roundDomains=!1,e.activate=new r.EventEmitter,e.deactivate=new r.EventEmitter,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e}return u(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=Object(s.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType}),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},e.prototype.getGroupDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++){var r=n[e];t.includes(r.name)||t.push(r.name)}return t},e.prototype.getInnerDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var r=0,i=n[e].series;r<i.length;r++){var o=i[r];t.includes(o.name)||t.push(o.name)}return t},e.prototype.getValueDomain=function(){return[0,100]},e.prototype.getXScale=function(){var t=this.groupDomain.length/(this.dims.width/this.barPadding+1);return Object(o.scaleBand)().rangeRound([0,this.dims.width]).paddingInner(t).domain(this.groupDomain)},e.prototype.getYScale=function(){var t=Object(o.scaleLinear)().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?t.nice():t},e.prototype.groupTransform=function(t){return"translate("+this.xScale(t.name)+", 0)"},e.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},e.prototype.trackBy=function(t,e){return e.name},e.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.innerDomain:this.valueDomain,this.colors=new a.a(this.scheme,this.schemeType,t,this.customColors)},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.innerDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.valueDomain,t.colors=this.colors.scale),t},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name);this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series})>-1||(this.activeEntries=[n].concat(this.activeEntries),this.activate.emit({value:n,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name);var r=this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series});this.activeEntries.splice(r,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:n,entries:this.activeEntries})},l([Object(r.Input)(),p("design:type",Object)],e.prototype,"legend",void 0),l([Object(r.Input)(),p("design:type",String)],e.prototype,"legendTitle",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"xAxis",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"yAxis",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"showXAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"showYAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"xAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"yAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"gradient",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"showGridLines",void 0),l([Object(r.Input)(),p("design:type",Array)],e.prototype,"activeEntries",void 0),l([Object(r.Input)(),p("design:type",String)],e.prototype,"schemeType",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"barPadding",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"roundDomains",void 0),l([Object(r.Output)(),p("design:type",r.EventEmitter)],e.prototype,"activate",void 0),l([Object(r.Output)(),p("design:type",r.EventEmitter)],e.prototype,"deactivate",void 0),l([Object(r.ContentChild)("tooltipTemplate"),p("design:type",r.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=l([Object(r.Component)({selector:"ngx-charts-bar-vertical-normalized",template:'\n <ngx-charts-chart\n [view]="[width, height]"\n [showLegend]="legend"\n [legendOptions]="legendOptions"\n [activeEntries]="activeEntries"\n [animations]="animations"\n (legendLabelActivate)="onActivate($event)"\n (legendLabelDeactivate)="onDeactivate($event)"\n (legendLabelClick)="onClick($event)">\n <svg:g [attr.transform]="transform" class="bar-chart chart">\n <svg:g ngx-charts-x-axis\n *ngIf="xAxis"\n [xScale]="xScale"\n [dims]="dims"\n [showLabel]="showXAxisLabel"\n [labelText]="xAxisLabel"\n [tickFormatting]="xAxisTickFormatting"\n (dimensionsChanged)="updateXAxisHeight($event)">\n </svg:g>\n <svg:g ngx-charts-y-axis\n *ngIf="yAxis"\n [yScale]="yScale"\n [dims]="dims"\n [showGridLines]="showGridLines"\n [showLabel]="showYAxisLabel"\n [labelText]="yAxisLabel"\n [tickFormatting]="yAxisTickFormatting"\n (dimensionsChanged)="updateYAxisWidth($event)">\n </svg:g>\n <svg:g\n *ngFor="let group of results; trackBy:trackBy"\n [@animationState]="\'active\'"\n [attr.transform]="groupTransform(group)">\n <svg:g ngx-charts-series-vertical\n type="normalized"\n [xScale]="xScale"\n [yScale]="yScale"\n [activeEntries]="activeEntries"\n [colors]="colors"\n [series]="group.series"\n [dims]="dims"\n [gradient]="gradient"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="tooltipTemplate"\n [seriesName]="group.name"\n [animations]="animations"\n (select)="onClick($event, group)"\n (activate)="onActivate($event, group)"\n (deactivate)="onDeactivate($event, group)"\n />\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ',styles:[n("./src/common/base-chart.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush,animations:[Object(i.trigger)("animationState",[Object(i.transition)(":leave",[Object(i.style)({opacity:1,transform:"*"}),Object(i.animate)(500,Object(i.style)({opacity:0,transform:"scale(0)"}))])])]})],e)}(c.a)},"./src/bar-chart/bar-vertical-stacked.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n("@angular/core"),i=(n.n(r),n("@angular/animations")),o=(n.n(i),n("d3-scale")),s=(n.n(o),n("./src/common/view-dimensions.helper.ts")),a=n("./src/common/color.helper.ts"),c=n("./src/common/base-chart.component.ts"),u=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legend=!1,e.legendTitle="Legend",e.tooltipDisabled=!1,e.showGridLines=!0,e.activeEntries=[],e.barPadding=8,e.roundDomains=!1,e.activate=new r.EventEmitter,e.deactivate=new r.EventEmitter,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e}return u(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=Object(s.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType}),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},e.prototype.getGroupDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++){var r=n[e];t.includes(r.name)||t.push(r.name)}return t},e.prototype.getInnerDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var r=0,i=n[e].series;r<i.length;r++){var o=i[r];t.includes(o.name)||t.push(o.name)}return t},e.prototype.getValueDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++){for(var r=0,i=0,o=n[e].series;i<o.length;i++){r+=o[i].value}t.push(r)}return[Math.min.apply(Math,[0].concat(t)),this.yScaleMax?Math.max.apply(Math,[this.yScaleMax].concat(t)):Math.max.apply(Math,t)]},e.prototype.getXScale=function(){var t=this.groupDomain.length/(this.dims.width/this.barPadding+1);return Object(o.scaleBand)().rangeRound([0,this.dims.width]).paddingInner(t).domain(this.groupDomain)},e.prototype.getYScale=function(){var t=Object(o.scaleLinear)().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?t.nice():t},e.prototype.groupTransform=function(t){return"translate("+this.xScale(t.name)+", 0)"},e.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},e.prototype.trackBy=function(t,e){return e.name},e.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.innerDomain:this.valueDomain,this.colors=new a.a(this.scheme,this.schemeType,t,this.customColors)},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.innerDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.valueDomain,t.colors=this.colors.scale),t},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name);this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series})>-1||(this.activeEntries=[n].concat(this.activeEntries),this.activate.emit({value:n,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name);var r=this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series});this.activeEntries.splice(r,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:n,entries:this.activeEntries})},l([Object(r.Input)(),p("design:type",Object)],e.prototype,"legend",void 0),l([Object(r.Input)(),p("design:type",String)],e.prototype,"legendTitle",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"xAxis",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"yAxis",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"showXAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"showYAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"xAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"yAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"gradient",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"showGridLines",void 0),l([Object(r.Input)(),p("design:type",Array)],e.prototype,"activeEntries",void 0),l([Object(r.Input)(),p("design:type",String)],e.prototype,"schemeType",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"barPadding",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"roundDomains",void 0),l([Object(r.Input)(),p("design:type",Number)],e.prototype,"yScaleMax",void 0),l([Object(r.Output)(),p("design:type",r.EventEmitter)],e.prototype,"activate",void 0),l([Object(r.Output)(),p("design:type",r.EventEmitter)],e.prototype,"deactivate",void 0),l([Object(r.ContentChild)("tooltipTemplate"),p("design:type",r.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=l([Object(r.Component)({selector:"ngx-charts-bar-vertical-stacked",template:'\n <ngx-charts-chart\n [view]="[width, height]"\n [showLegend]="legend"\n [legendOptions]="legendOptions"\n [activeEntries]="activeEntries"\n [animations]="animations"\n (legendLabelActivate)="onActivate($event)"\n (legendLabelDeactivate)="onDeactivate($event)"\n (legendLabelClick)="onClick($event)">\n <svg:g [attr.transform]="transform" class="bar-chart chart">\n <svg:g ngx-charts-x-axis\n *ngIf="xAxis"\n [xScale]="xScale"\n [dims]="dims"\n [showLabel]="showXAxisLabel"\n [labelText]="xAxisLabel"\n [tickFormatting]="xAxisTickFormatting"\n (dimensionsChanged)="updateXAxisHeight($event)">\n </svg:g>\n <svg:g ngx-charts-y-axis\n *ngIf="yAxis"\n [yScale]="yScale"\n [dims]="dims"\n [showGridLines]="showGridLines"\n [showLabel]="showYAxisLabel"\n [labelText]="yAxisLabel"\n [tickFormatting]="yAxisTickFormatting"\n (dimensionsChanged)="updateYAxisWidth($event)">\n </svg:g>\n <svg:g\n *ngFor="let group of results; trackBy:trackBy"\n [@animationState]="\'active\'"\n [attr.transform]="groupTransform(group)">\n <svg:g ngx-charts-series-vertical\n type="stacked"\n [xScale]="xScale"\n [yScale]="yScale"\n [activeEntries]="activeEntries"\n [colors]="colors"\n [series]="group.series"\n [dims]="dims"\n [gradient]="gradient"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="tooltipTemplate"\n [seriesName]="group.name"\n [animations]="animations"\n (select)="onClick($event, group)"\n (activate)="onActivate($event, group)"\n (deactivate)="onDeactivate($event, group)"\n />\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ',styles:[n("./src/common/base-chart.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush,animations:[Object(i.trigger)("animationState",[Object(i.transition)(":leave",[Object(i.style)({opacity:1,transform:"*"}),Object(i.animate)(500,Object(i.style)({opacity:0,transform:"scale(0)"}))])])]})],e)}(c.a)},"./src/bar-chart/bar-vertical.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r=n("@angular/core"),i=(n.n(r),n("d3-scale")),o=(n.n(i),n("./src/common/view-dimensions.helper.ts")),s=n("./src/common/color.helper.ts"),a=n("./src/common/base-chart.component.ts"),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legend=!1,e.legendTitle="Legend",e.tooltipDisabled=!1,e.showGridLines=!0,e.activeEntries=[],e.barPadding=8,e.roundDomains=!1,e.roundEdges=!0,e.activate=new r.EventEmitter,e.deactivate=new r.EventEmitter,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e}return c(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=Object(o.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType}),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},e.prototype.getXScale=function(){this.xDomain=this.getXDomain();var t=this.xDomain.length/(this.dims.width/this.barPadding+1);return Object(i.scaleBand)().rangeRound([0,this.dims.width]).paddingInner(t).domain(this.xDomain)},e.prototype.getYScale=function(){this.yDomain=this.getYDomain();var t=Object(i.scaleLinear)().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?t.nice():t},e.prototype.getXDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.getYDomain=function(){var t=this.results.map(function(t){return t.value});return[Math.min.apply(Math,[0].concat(t)),this.yScaleMax?Math.max.apply(Math,[this.yScaleMax].concat(t)):Math.max.apply(Math,t)]},e.prototype.onClick=function(t){this.select.emit(t)},e.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.xDomain:this.yDomain,this.colors=new s.a(this.scheme,this.schemeType,t,this.customColors)},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.xDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t){this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value&&e.series===t.series})>-1||(this.activeEntries=[t].concat(this.activeEntries),this.activate.emit({value:t,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t){var e=this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value&&e.series===t.series});this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},u([Object(r.Input)(),l("design:type",Object)],e.prototype,"legend",void 0),u([Object(r.Input)(),l("design:type",String)],e.prototype,"legendTitle",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"xAxis",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"yAxis",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"showXAxisLabel",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"showYAxisLabel",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"xAxisLabel",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"yAxisLabel",void 0),u([Object(r.Input)(),l("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),u([Object(r.Input)(),l("design:type",Boolean)],e.prototype,"gradient",void 0),u([Object(r.Input)(),l("design:type",Boolean)],e.prototype,"showGridLines",void 0),u([Object(r.Input)(),l("design:type",Array)],e.prototype,"activeEntries",void 0),u([Object(r.Input)(),l("design:type",String)],e.prototype,"schemeType",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"barPadding",void 0),u([Object(r.Input)(),l("design:type",Boolean)],e.prototype,"roundDomains",void 0),u([Object(r.Input)(),l("design:type",Boolean)],e.prototype,"roundEdges",void 0),u([Object(r.Input)(),l("design:type",Number)],e.prototype,"yScaleMax",void 0),u([Object(r.Output)(),l("design:type",r.EventEmitter)],e.prototype,"activate",void 0),u([Object(r.Output)(),l("design:type",r.EventEmitter)],e.prototype,"deactivate",void 0),u([Object(r.ContentChild)("tooltipTemplate"),l("design:type",r.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=u([Object(r.Component)({selector:"ngx-charts-bar-vertical",template:'\n <ngx-charts-chart\n [view]="[width, height]"\n [showLegend]="legend"\n [legendOptions]="legendOptions"\n [activeEntries]="activeEntries"\n [animations]="animations"\n (legendLabelClick)="onClick($event)"\n (legendLabelActivate)="onActivate($event)"\n (legendLabelDeactivate)="onDeactivate($event)">\n <svg:g [attr.transform]="transform" class="bar-chart chart">\n <svg:g ngx-charts-x-axis\n *ngIf="xAxis"\n [xScale]="xScale"\n [dims]="dims"\n [showLabel]="showXAxisLabel"\n [labelText]="xAxisLabel"\n [tickFormatting]="xAxisTickFormatting"\n (dimensionsChanged)="updateXAxisHeight($event)">\n </svg:g>\n <svg:g ngx-charts-y-axis\n *ngIf="yAxis"\n [yScale]="yScale"\n [dims]="dims"\n [showGridLines]="showGridLines"\n [showLabel]="showYAxisLabel"\n [labelText]="yAxisLabel"\n [tickFormatting]="yAxisTickFormatting"\n (dimensionsChanged)="updateYAxisWidth($event)">\n </svg:g>\n <svg:g ngx-charts-series-vertical\n [xScale]="xScale"\n [yScale]="yScale"\n [colors]="colors"\n [series]="results"\n [dims]="dims"\n [gradient]="gradient"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="tooltipTemplate"\n [activeEntries]="activeEntries"\n [roundEdges]="roundEdges"\n [animations]="animations"\n (activate)="onActivate($event)"\n (deactivate)="onDeactivate($event)"\n (select)="onClick($event)">\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush,styles:[n("./src/common/base-chart.component.scss")],encapsulation:r.ViewEncapsulation.None})],e)}(a.a)},"./src/bar-chart/bar.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("@angular/core"),i=(n.n(r),n("d3-selection")),o=(n.n(i),n("./src/common/shape.helper.ts")),s=n("./src/utils/id.ts"),a=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},c=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},u=function(){function t(t){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.select=new r.EventEmitter,this.activate=new r.EventEmitter,this.deactivate=new r.EventEmitter,this.initialized=!1,this.hasGradient=!1,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)},t.prototype.update=function(){this.gradientId="grad"+Object(s.a)().toString(),this.gradientFill="url(#"+this.gradientId+")",this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()},t.prototype.loadAnimation=function(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)},t.prototype.updatePathEl=function(){var t=Object(i.select)(this.element).select(".bar"),e=this.getPath();this.animations?t.transition().duration(500).attr("d",e):t.attr("d",e)},t.prototype.getGradient=function(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]},t.prototype.getStartingPath=function(){if(!this.animations)return this.getPath();var t,e=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(e=Math.min(this.height,e),t=Object(o.a)(this.x,this.y+this.height,this.width,1,0,this.edges)):"horizontal"===this.orientation&&(e=Math.min(this.width,e),t=Object(o.a)(this.x,this.y,1,this.height,0,this.edges)):"vertical"===this.orientation?t=Object(o.a)(this.x,this.y+this.height,this.width,1,0,this.edges):"horizontal"===this.orientation&&(t=Object(o.a)(this.x,this.y,1,this.height,0,this.edges)),t},t.prototype.getPath=function(){var t,e=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(e=Math.min(this.height,e),t=Object(o.a)(this.x,this.y,this.width,this.height,e,this.edges)):"horizontal"===this.orientation&&(e=Math.min(this.width,e),t=Object(o.a)(this.x,this.y,this.width,this.height,e,this.edges)):t=Object(o.a)(this.x,this.y,this.width,this.height,e,this.edges),t},t.prototype.getRadius=function(){var t=0;return this.roundEdges&&this.height>5&&this.width>5&&(t=Math.floor(Math.min(5,this.height/2,this.width/2))),t},t.prototype.getStartOpacity=function(){return this.roundEdges?.2:.5},Object.defineProperty(t.prototype,"edges",{get:function(){var t=[!1,!1,!1,!1];return this.roundEdges&&("vertical"===this.orientation?t=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:"horizontal"===this.orientation&&(t=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),t},enumerable:!0,configurable:!0}),t.prototype.onMouseEnter=function(){this.activate.emit(this.data)},t.prototype.onMouseLeave=function(){this.deactivate.emit(this.data)},a([Object(r.Input)(),c("design:type",Object)],t.prototype,"fill",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"data",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"width",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"height",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"x",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"y",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"orientation",void 0),a([Object(r.Input)(),c("design:type",Boolean)],t.prototype,"roundEdges",void 0),a([Object(r.Input)(),c("design:type",Boolean)],t.prototype,"gradient",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"offset",void 0),a([Object(r.Input)(),c("design:type",Boolean)],t.prototype,"isActive",void 0),a([Object(r.Input)(),c("design:type",Array)],t.prototype,"stops",void 0),a([Object(r.Input)(),c("design:type",Boolean)],t.prototype,"animations",void 0),a([Object(r.Output)(),c("design:type",Object)],t.prototype,"select",void 0),a([Object(r.Output)(),c("design:type",Object)],t.prototype,"activate",void 0),a([Object(r.Output)(),c("design:type",Object)],t.prototype,"deactivate",void 0),a([Object(r.HostListener)("mouseenter"),c("design:type",Function),c("design:paramtypes",[]),c("design:returntype",void 0)],t.prototype,"onMouseEnter",null),a([Object(r.HostListener)("mouseleave"),c("design:type",Function),c("design:paramtypes",[]),c("design:returntype",void 0)],t.prototype,"onMouseLeave",null),t=a([Object(r.Component)({selector:"g[ngx-charts-bar]",template:'\n <svg:defs *ngIf="hasGradient">\n <svg:g ngx-charts-svg-linear-gradient\n [orientation]="orientation"\n [name]="gradientId"\n [stops]="gradientStops"\n />\n </svg:defs>\n <svg:path\n class="bar"\n stroke="none"\n [class.active]="isActive"\n [attr.d]="path"\n [attr.fill]="hasGradient ? gradientFill : fill"\n (click)="select.emit(data)"\n />\n ',changeDetection:r.ChangeDetectionStrategy.OnPush}),c("design:paramtypes",[r.ElementRef])],t)}()},"./src/bar-chart/index.ts":function(t,e,n){"use strict";var r=n("./src/bar-chart/bar-chart.module.ts");n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b}),n.d(e,"c",function(){return r.c}),n.d(e,"d",function(){return r.d}),n.d(e,"e",function(){return r.e}),n.d(e,"f",function(){return r.f}),n.d(e,"g",function(){return r.g}),n.d(e,"h",function(){return r.h}),n.d(e,"i",function(){return r.i}),n.d(e,"j",function(){return r.j}),n.d(e,"k",function(){return r.k}),n.d(e,"l",function(){return r.l});n("./src/bar-chart/bar.component.ts"),n("./src/bar-chart/bar-horizontal.component.ts"),n("./src/bar-chart/bar-horizontal-2d.component.ts"),n("./src/bar-chart/bar-horizontal-normalized.component.ts"),n("./src/bar-chart/bar-horizontal-stacked.component.ts"),n("./src/bar-chart/series-horizontal.component.ts"),n("./src/bar-chart/bar-vertical.component.ts"),n("./src/bar-chart/bar-vertical-2d.component.ts"),n("./src/bar-chart/bar-vertical-normalized.component.ts"),n("./src/bar-chart/bar-vertical-stacked.component.ts"),n("./src/bar-chart/series-vertical.component.ts")},"./src/bar-chart/series-horizontal.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("@angular/core"),i=(n.n(r),n("@angular/animations")),o=(n.n(i),n("./src/common/label.helper.ts")),s=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(){this.type="standard",this.tooltipDisabled=!1,this.animations=!0,this.select=new r.EventEmitter,this.activate=new r.EventEmitter,this.deactivate=new r.EventEmitter}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){var t=this;this.updateTooltipSettings();var e,n=0;"normalized"===this.type&&(e=this.series.map(function(t){return t.value}).reduce(function(t,e){return t+e},0)),this.bars=this.series.map(function(r,i){var s=r.value,a=r.name,c=Object(o.a)(a),u={value:s,label:a,roundEdges:t.roundEdges,data:r,formattedLabel:c};if(u.height=t.yScale.bandwidth(),"standard"===t.type)u.width=Math.abs(t.xScale(s)-t.xScale(0)),u.x=s<0?t.xScale(s):t.xScale(0),u.y=t.yScale(a);else if("stacked"===t.type){var l=(p=n)+s;n+=s,u.width=t.xScale(l)-t.xScale(p),u.x=t.xScale(p),u.y=0,u.offset0=p,u.offset1=l}else if("normalized"===t.type){var p;l=(p=n)+s;n+=s,e>0?(p=100*p/e,l=100*l/e):(p=0,l=0),u.width=t.xScale(l)-t.xScale(p),u.x=t.xScale(p),u.y=0,u.offset0=p,u.offset1=l,s=(l-p).toFixed(2)+"%"}"ordinal"===t.colors.scaleType?u.color=t.colors.getColor(a):"standard"===t.type?(u.color=t.colors.getColor(s),u.gradientStops=t.colors.getLinearGradientStops(s)):(u.color=t.colors.getColor(u.offset1),u.gradientStops=t.colors.getLinearGradientStops(u.offset1,u.offset0));var h=c;return t.seriesName&&(h=t.seriesName+" \u2022 "+c,u.data.series=t.seriesName),u.tooltipText=t.tooltipDisabled?void 0:'\n <span class="tooltip-label">'+h+'</span>\n <span class="tooltip-val">'+s.toLocaleString()+"</span>\n ",u})},t.prototype.updateTooltipSettings=function(){this.tooltipPlacement=this.tooltipDisabled?void 0:"top",this.tooltipType=this.tooltipDisabled?void 0:"tooltip"},t.prototype.isActive=function(t){if(!this.activeEntries)return!1;return void 0!==this.activeEntries.find(function(e){return t.name===e.name&&t.series===e.series})},t.prototype.trackBy=function(t,e){return e.label},t.prototype.click=function(t){this.select.emit(t)},s([Object(r.Input)(),a("design:type",Object)],t.prototype,"dims",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"type",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"series",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"xScale",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"yScale",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"colors",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"gradient",void 0),s([Object(r.Input)(),a("design:type",Array)],t.prototype,"activeEntries",void 0),s([Object(r.Input)(),a("design:type",String)],t.prototype,"seriesName",void 0),s([Object(r.Input)(),a("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"roundEdges",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"animations",void 0),s([Object(r.Output)(),a("design:type",Object)],t.prototype,"select",void 0),s([Object(r.Output)(),a("design:type",Object)],t.prototype,"activate",void 0),s([Object(r.Output)(),a("design:type",Object)],t.prototype,"deactivate",void 0),t=s([Object(r.Component)({selector:"g[ngx-charts-series-horizontal]",template:'\n <svg:g ngx-charts-bar\n *ngFor="let bar of bars; trackBy:trackBy"\n [@animationState]="\'active\'" \n [width]="bar.width"\n [height]="bar.height"\n [x]="bar.x"\n [y]="bar.y"\n [fill]="bar.color"\n [stops]="bar.gradientStops"\n [data]="bar.data"\n [orientation]="\'horizontal\'"\n [roundEdges]="bar.roundEdges"\n (select)="click($event)"\n [gradient]="gradient"\n [isActive]="isActive(bar.data)"\n [animations]="animations"\n (activate)="activate.emit($event)"\n (deactivate)="deactivate.emit($event)"\n ngx-tooltip\n [tooltipDisabled]="tooltipDisabled"\n [tooltipPlacement]="tooltipPlacement"\n [tooltipType]="tooltipType"\n [tooltipTitle]="tooltipTemplate ? undefined : bar.tooltipText"\n [tooltipTemplate]="tooltipTemplate"\n [tooltipContext]="bar.data">\n </svg:g>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush,animations:[Object(i.trigger)("animationState",[Object(i.transition)(":leave",[Object(i.style)({opacity:1}),Object(i.animate)(500,Object(i.style)({opacity:0}))])])]})],t)}()},"./src/bar-chart/series-vertical.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("@angular/core"),i=(n.n(r),n("@angular/animations")),o=(n.n(i),n("./src/common/label.helper.ts")),s=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(){this.type="standard",this.tooltipDisabled=!1,this.animations=!0,this.select=new r.EventEmitter,this.activate=new r.EventEmitter,this.deactivate=new r.EventEmitter}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){var t=this;this.updateTooltipSettings();var e;this.series.length&&(e=this.xScale.bandwidth());var n,r=0;"normalized"===this.type&&(n=this.series.map(function(t){return t.value}).reduce(function(t,e){return t+e},0)),this.bars=this.series.map(function(i,s){var a=i.value,c=i.name,u=Object(o.a)(c),l={value:a,label:c,roundEdges:t.roundEdges,data:i,width:e,formattedLabel:u,height:0,x:0,y:0};if("standard"===t.type)l.height=Math.abs(t.yScale(a)-t.yScale(0)),l.x=t.xScale(c),l.y=a<0?t.yScale(0):t.yScale(a);else if("stacked"===t.type){var p=(h=r)+a;r+=a,l.height=t.yScale(h)-t.yScale(p),l.x=0,l.y=t.yScale(p),l.offset0=h,l.offset1=p}else if("normalized"===t.type){var h;p=(h=r)+a;r+=a,n>0?(h=100*h/n,p=100*p/n):(h=0,p=0),l.height=t.yScale(h)-t.yScale(p),l.x=0,l.y=t.yScale(p),l.offset0=h,l.offset1=p,a=(p-h).toFixed(2)+"%"}"ordinal"===t.colors.scaleType?l.color=t.colors.getColor(c):"standard"===t.type?(l.color=t.colors.getColor(a),l.gradientStops=t.colors.getLinearGradientStops(a)):(l.color=t.colors.getColor(l.offset1),l.gradientStops=t.colors.getLinearGradientStops(l.offset1,l.offset0));var d=u;return t.seriesName&&(d=t.seriesName+" \u2022 "+u,l.data.series=t.seriesName),l.tooltipText=t.tooltipDisabled?void 0:'\n <span class="tooltip-label">'+d+'</span>\n <span class="tooltip-val">'+a.toLocaleString()+"</span>\n ",l})},t.prototype.updateTooltipSettings=function(){this.tooltipPlacement=this.tooltipDisabled?void 0:"top",this.tooltipType=this.tooltipDisabled?void 0:"tooltip"},t.prototype.isActive=function(t){if(!this.activeEntries)return!1;return void 0!==this.activeEntries.find(function(e){return t.name===e.name&&t.series===e.series})},t.prototype.onClick=function(t){this.select.emit(t)},t.prototype.trackBy=function(t,e){return e.label},s([Object(r.Input)(),a("design:type",Object)],t.prototype,"dims",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"type",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"series",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"xScale",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"yScale",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"colors",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"gradient",void 0),s([Object(r.Input)(),a("design:type",Array)],t.prototype,"activeEntries",void 0),s([Object(r.Input)(),a("design:type",String)],t.prototype,"seriesName",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),s([Object(r.Input)(),a("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"roundEdges",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"animations",void 0),s([Object(r.Output)(),a("design:type",Object)],t.prototype,"select",void 0),s([Object(r.Output)(),a("design:type",Object)],t.prototype,"activate",void 0),s([Object(r.Output)(),a("design:type",Object)],t.prototype,"deactivate",void 0),t=s([Object(r.Component)({selector:"g[ngx-charts-series-vertical]",template:'\n <svg:g ngx-charts-bar\n *ngFor="let bar of bars; trackBy: trackBy"\n [@animationState]="\'active\'"\n [@.disabled]="!animations"\n [width]="bar.width"\n [height]="bar.height"\n [x]="bar.x"\n [y]="bar.y"\n [fill]="bar.color"\n [stops]="bar.gradientStops"\n [data]="bar.data"\n [orientation]="\'vertical\'"\n [roundEdges]="bar.roundEdges"\n [gradient]="gradient"\n [isActive]="isActive(bar.data)"\n (select)="onClick($event)"\n (activate)="activate.emit($event)"\n (deactivate)="deactivate.emit($event)"\n ngx-tooltip\n [tooltipDisabled]="tooltipDisabled"\n [tooltipPlacement]="tooltipPlacement"\n [tooltipType]="tooltipType"\n [tooltipTitle]="tooltipTemplate ? undefined : bar.tooltipText"\n [tooltipTemplate]="tooltipTemplate"\n [tooltipContext]="bar.data"\n [animations]="animations">\n </svg:g>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush,animations:[Object(i.trigger)("animationState",[Object(i.transition)(":leave",[Object(i.style)({opacity:1}),Object(i.animate)(500,Object(i.style)({opacity:0}))])])]})],t)}()},"./src/bubble-chart/bubble-chart.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return f});var r=n("@angular/core"),i=(n.n(r),n("@angular/animations")),o=(n.n(i),n("d3-scale")),s=(n.n(o),n("./src/common/base-chart.component.ts")),a=n("./src/common/view-dimensions.helper.ts"),c=n("./src/common/color.helper.ts"),u=n("./src/bubble-chart/bubble-chart.utils.ts"),l=n("./src/utils/id.ts"),p=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},d=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.showGridLines=!0,e.legend=!1,e.legendTitle="Legend",e.xAxis=!0,e.yAxis=!0,e.roundDomains=!1,e.maxRadius=10,e.minRadius=3,e.schemeType="ordinal",e.legendPosition="right",e.tooltipDisabled=!1,e.activate=new r.EventEmitter,e.deactivate=new r.EventEmitter,e.scaleType="linear",e.margin=[10,20,10,20],e.bubblePadding=[0,0,0,0],e.xAxisHeight=0,e.yAxisWidth=0,e.activeEntries=[],e}return p(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=Object(a.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType}),this.seriesDomain=this.results.map(function(t){return t.name}),this.rDomain=this.getRDomain(),this.xDomain=this.getXDomain(),this.yDomain=this.getYDomain(),this.transform="translate("+this.dims.xOffset+","+this.margin[0]+")";var e="ordinal"===this.schemeType?this.seriesDomain:this.rDomain;this.colors=new c.a(this.scheme,this.schemeType,e,this.customColors),this.data=this.results,this.minRadius=Math.max(this.minRadius,1),this.maxRadius=Math.max(this.maxRadius,1),this.rScale=this.getRScale(this.rDomain,[this.minRadius,this.maxRadius]),this.bubblePadding=[0,0,0,0],this.setScales(),this.bubblePadding=this.getBubblePadding(),this.setScales(),this.legendOptions=this.getLegendOptions(),this.clipPathId="clip"+Object(l.a)().toString(),this.clipPath="url(#"+this.clipPathId+")"},e.prototype.hideCircles=function(){this.deactivateAll()},e.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},e.prototype.getBubblePadding=function(){for(var t=0,e=0,n=this.dims.height,r=this.dims.width,i=0,o=this.data;i<o.length;i++)for(var s=0,a=o[i].series;s<a.length;s++){var c=a[s],u=this.rScale(c.r),l="linear"===this.xScaleType?this.xScale(Number(c.x)):this.xScale(c.x),p="linear"===this.yScaleType?this.yScale(Number(c.y)):this.yScale(c.y);e=Math.max(u-l,e),t=Math.max(u-p,t),n=Math.max(p+u,n),r=Math.max(l+u,r)}return r=Math.max(r-this.dims.width,0),n=Math.max(n-this.dims.height,0),[t,r,n,e]},e.prototype.setScales=function(){var t=this.dims.width;void 0===this.xScaleMin&&void 0===this.xScaleMax&&(t-=this.bubblePadding[1]);var e=this.dims.height;void 0===this.yScaleMin&&void 0===this.yScaleMax&&(e-=this.bubblePadding[2]),this.xScale=this.getXScale(this.xDomain,t),this.yScale=this.getYScale(this.yDomain,e)},e.prototype.getYScale=function(t,e){return Object(u.b)(t,[e,this.bubblePadding[0]],this.yScaleType,this.roundDomains)},e.prototype.getXScale=function(t,e){return Object(u.b)(t,[this.bubblePadding[3],e],this.xScaleType,this.roundDomains)},e.prototype.getRScale=function(t,e){var n=Object(o.scaleLinear)().range(e).domain(t);return this.roundDomains?n.nice():n},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],position:this.legendPosition,title:void 0};return"ordinal"===t.scaleType?(t.domain=this.seriesDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.rDomain,t.colors=this.colors.scale),t},e.prototype.getXDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var r=0,i=n[e].series;r<i.length;r++){var o=i[r];t.includes(o.x)||t.push(o.x)}return this.xScaleType=Object(u.c)(t),Object(u.a)(t,this.xScaleType,this.autoScale,this.xScaleMin,this.xScaleMax)},e.prototype.getYDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var r=0,i=n[e].series;r<i.length;r++){var o=i[r];t.includes(o.y)||t.push(o.y)}return this.yScaleType=Object(u.c)(t),Object(u.a)(t,this.yScaleType,this.autoScale,this.yScaleMin,this.yScaleMax)},e.prototype.getRDomain=function(){for(var t=1/0,e=-1/0,n=0,r=this.results;n<r.length;n++)for(var i=0,o=r[n].series;i<o.length;i++){var s=o[i],a=Number(s.r)||1;t=Math.min(t,a),e=Math.max(e,a)}return[t,e]},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t){this.activeEntries.findIndex(function(e){return e.name===t.name})>-1||(this.activeEntries=[t].concat(this.activeEntries),this.activate.emit({value:t,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t){var e=this.activeEntries.findIndex(function(e){return e.name===t.name});this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},e.prototype.deactivateAll=function(){this.activeEntries=this.activeEntries.slice();for(var t=0,e=this.activeEntries;t<e.length;t++){var n=e[t];this.deactivate.emit({value:n,entries:[]})}this.activeEntries=[]},e.prototype.trackBy=function(t,e){return e.name},h([Object(r.Input)(),d("design:type",Boolean)],e.prototype,"showGridLines",void 0),h([Object(r.Input)(),d("design:type",Object)],e.prototype,"legend",void 0),h([Object(r.Input)(),d("design:type",String)],e.prototype,"legendTitle",void 0),h([Object(r.Input)(),d("design:type",Boolean)],e.prototype,"xAxis",void 0),h([Object(r.Input)(),d("design:type",Boolean)],e.prototype,"yAxis",void 0),h([Object(r.Input)(),d("design:type",Boolean)],e.prototype,"showXAxisLabel",void 0),h([Object(r.Input)(),d("design:type",Boolean)],e.prototype,"showYAxisLabel",void 0),h([Object(r.Input)(),d("design:type",String)],e.prototype,"xAxisLabel",void 0),h([Object(r.Input)(),d("design:type",String)],e.prototype,"yAxisLabel",void 0),h([Object(r.Input)(),d("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),h([Object(r.Input)(),d("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),h([Object(r.Input)(),d("design:type",Boolean)],e.prototype,"roundDomains",void 0),h([Object(r.Input)(),d("design:type",Object)],e.prototype,"maxRadius",void 0),h([Object(r.Input)(),d("design:type",Object)],e.prototype,"minRadius",void 0),h([Object(r.Input)(),d("design:type",Boolean)],e.prototype,"autoScale",void 0),h([Object(r.Input)(),d("design:type",Object)],e.prototype,"schemeType",void 0),h([Object(r.Input)(),d("design:type",String)],e.prototype,"legendPosition",void 0),h([Object(r.Input)(),d("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),h([Object(r.Input)(),d("design:type",Object)],e.prototype,"xScaleMin",void 0),h([Object(r.Input)(),d("design:type",Object)],e.prototype,"xScaleMax",void 0),h([Object(r.Input)(),d("design:type",Object)],e.prototype,"yScaleMin",void 0),h([Object(r.Input)(),d("design:type",Object)],e.prototype,"yScaleMax",void 0),h([Object(r.Output)(),d("design:type",r.EventEmitter)],e.prototype,"activate",void 0),h([Object(r.Output)(),d("design:type",r.EventEmitter)],e.prototype,"deactivate",void 0),h([Object(r.ContentChild)("tooltipTemplate"),d("design:type",r.TemplateRef)],e.prototype,"tooltipTemplate",void 0),h([Object(r.HostListener)("mouseleave"),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],e.prototype,"hideCircles",null),e=h([Object(r.Component)({selector:"ngx-charts-bubble-chart",template:'\n <ngx-charts-chart\n [view]="[width, height]"\n [showLegend]="legend"\n [activeEntries]="activeEntries"\n [legendOptions]="legendOptions"\n [animations]="animations"\n (legendLabelClick)="onClick($event)"\n (legendLabelActivate)="onActivate($event)"\n (legendLabelDeactivate)="onDeactivate($event)">\n <svg:defs>\n <svg:clipPath [attr.id]="clipPathId">\n <svg:rect\n [attr.width]="dims.width + 10"\n [attr.height]="dims.height + 10"\n [attr.transform]="\'translate(-5, -5)\'"/>\n </svg:clipPath>\n </svg:defs>\n <svg:g [attr.transform]="transform" class="bubble-chart chart">\n <svg:g ngx-charts-x-axis\n *ngIf="xAxis"\n [showGridLines]="showGridLines"\n [dims]="dims"\n [xScale]="xScale"\n [showLabel]="showXAxisLabel"\n [labelText]="xAxisLabel"\n [tickFormatting]="xAxisTickFormatting"\n (dimensionsChanged)="updateXAxisHeight($event)"/>\n <svg:g ngx-charts-y-axis\n *ngIf="yAxis"\n [showGridLines]="showGridLines"\n [yScale]="yScale"\n [dims]="dims"\n [showLabel]="showYAxisLabel"\n [labelText]="yAxisLabel"\n [tickFormatting]="yAxisTickFormatting"\n (dimensionsChanged)="updateYAxisWidth($event)"/>\n <svg:rect\n class="bubble-chart-area"\n x="0"\n y="0"\n [attr.width]="dims.width"\n [attr.height]="dims.height"\n style="fill: rgb(255, 0, 0); opacity: 0; cursor: \'auto\';"\n (mouseenter)="deactivateAll()"\n />\n <svg:g [attr.clip-path]="clipPath">\n <svg:g *ngFor="let series of data; trackBy:trackBy" [@animationState]="\'active\'">\n <svg:g ngx-charts-bubble-series\n [xScale]="xScale"\n [yScale]="yScale"\n [rScale]="rScale"\n [xScaleType]="xScaleType"\n [yScaleType]="yScaleType"\n [xAxisLabel]="xAxisLabel"\n [yAxisLabel]="yAxisLabel"\n [colors]="colors"\n [data]="series"\n [activeEntries]="activeEntries"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="tooltipTemplate"\n (select)="onClick($event, series)"\n (activate)="onActivate($event)"\n (deactivate)="onDeactivate($event)" />\n </svg:g>\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ',styles:[n("./src/common/base-chart.component.scss")],changeDetection:r.ChangeDetectionStrategy.OnPush,encapsulation:r.ViewEncapsulation.None,animations:[Object(i.trigger)("animationState",[Object(i.transition)(":leave",[Object(i.style)({opacity:1}),Object(i.animate)(500,Object(i.style)({opacity:0}))])])]})],e)}(s.a)},"./src/bubble-chart/bubble-chart.module.ts":function(t,e,n){"use strict";n.d(e,"b",function(){return c});var r=n("@angular/core"),i=(n.n(r),n("./src/common/chart-common.module.ts")),o=n("./src/bubble-chart/bubble-chart.component.ts"),s=n("./src/bubble-chart/bubble-series.component.ts");n.d(e,"a",function(){return o.a}),n.d(e,"c",function(){return s.a});var a=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},c=function(){function t(){}return t=a([Object(r.NgModule)({imports:[i.a],declarations:[o.a,s.a],exports:[o.a,s.a]})],t)}()},"./src/bubble-chart/bubble-chart.utils.ts":function(t,e,n){"use strict";e.c=function(t){for(var e=!0,n=!0,r=0,i=t;r<i.length;r++){var o=i[r];(function(t){return t instanceof Date})(o)||(e=!1),"number"!=typeof o&&(n=!1)}return e?"time":n?"linear":"ordinal"},e.a=function(t,e,n,r,i){var o=[];"linear"===e&&(t=t.map(function(t){return Number(t)}),n||t.push(0)),o="time"===e||"linear"===e?[r||Math.min.apply(Math,t),i||Math.max.apply(Math,t)]:t;return o},e.b=function(t,e,n,i){var o;return"time"===n?o=Object(r.scaleTime)().range(e).domain(t):"linear"===n?(o=Object(r.scaleLinear)().range(e).domain(t),i&&(o=o.nice())):"ordinal"===n&&(o=Object(r.scalePoint)().range([e[0],e[1]]).domain(t)),o};var r=n("d3-scale");n.n(r)},"./src/bubble-chart/bubble-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("@angular/core"),i=(n.n(r),n("@angular/animations")),o=(n.n(i),n("./src/common/label.helper.ts")),s=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(){this.tooltipDisabled=!1,this.select=new r.EventEmitter,this.activate=new r.EventEmitter,this.deactivate=new r.EventEmitter}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.circles=this.getCircles()},t.prototype.getCircles=function(){var t=this,e=this.data.name;return this.data.series.map(function(n,r){if("undefined"!=typeof n.y&&"undefined"!=typeof n.x){var i=n.y,s=n.x,a=n.r,c=t.rScale(a||1),u=Object(o.a)(n.name),l="linear"===t.xScaleType?t.xScale(Number(s)):t.xScale(s),p="linear"===t.yScaleType?t.yScale(Number(i)):t.yScale(i),h="linear"===t.colors.scaleType?t.colors.getColor(a):t.colors.getColor(e),d=!t.activeEntries.length||t.isActive({name:e}),f=d?1:.3;return{data:{series:e,name:n.name,value:n.y,x:n.x,radius:n.r},x:s,y:i,r:a,classNames:["circle-data-"+r],value:i,label:s,cx:l,cy:p,radius:c,tooltipLabel:u,color:h,opacity:f,seriesName:e,isActive:d,transform:"translate("+l+","+p+")"}}}).filter(function(t){return void 0!==t})},t.prototype.getTooltipText=function(t){var e="undefined"!=typeof t.r,n=t.tooltipLabel&&t.tooltipLabel.length,r=t.seriesName&&t.seriesName.length,i=e?Object(o.a)(t.r):"",s=this.xAxisLabel&&""!==this.xAxisLabel?this.xAxisLabel+":":"",a=this.yAxisLabel&&""!==this.yAxisLabel?this.yAxisLabel+":":"",c=Object(o.a)(t.x),u=Object(o.a)(t.y),l=r&&n?t.seriesName+" \u2022 "+t.tooltipLabel:t.seriesName+t.tooltipLabel;return"\n "+(r||n?'<span class="tooltip-label">'+l+"</span>":"")+'\n <span class="tooltip-label">\n <label>'+s+"</label> "+c+"<br />\n <label>"+a+"</label> "+u+'\n </span>\n <span class="tooltip-val">\n '+i+"\n </span>\n "},t.prototype.onClick=function(t,e){this.select.emit({name:e,value:t})},t.prototype.isActive=function(t){if(!this.activeEntries)return!1;return void 0!==this.activeEntries.find(function(e){return t.name===e.name})},t.prototype.isVisible=function(t){return this.activeEntries.length>0?this.isActive({name:t.seriesName}):0!==t.opacity},t.prototype.activateCircle=function(t){t.barVisible=!0,this.activate.emit({name:this.data.name})},t.prototype.deactivateCircle=function(t){t.barVisible=!1,this.deactivate.emit({name:this.data.name})},t.prototype.trackBy=function(t,e){return e.data.series+" "+e.data.name},s([Object(r.Input)(),a("design:type",Object)],t.prototype,"data",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"xScale",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"yScale",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"rScale",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"xScaleType",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"yScaleType",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"colors",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"visibleValue",void 0),s([Object(r.Input)(),a("design:type",Array)],t.prototype,"activeEntries",void 0),s([Object(r.Input)(),a("design:type",String)],t.prototype,"xAxisLabel",void 0),s([Object(r.Input)(),a("design:type",String)],t.prototype,"yAxisLabel",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),s([Object(r.Input)(),a("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),s([Object(r.Output)(),a("design:type",Object)],t.prototype,"select",void 0),s([Object(r.Output)(),a("design:type",Object)],t.prototype,"activate",void 0),s([Object(r.Output)(),a("design:type",Object)],t.prototype,"deactivate",void 0),t=s([Object(r.Component)({selector:"g[ngx-charts-bubble-series]",template:'\n <svg:g *ngFor="let circle of circles; trackBy: trackBy">\n <svg:g [attr.transform]="circle.transform">\n <svg:g ngx-charts-circle\n [@animationState]="\'active\'"\n class="circle"\n [cx]="0"\n [cy]="0"\n [r]="circle.radius"\n [fill]="circle.color"\n [style.opacity]="circle.opacity"\n [class.active]="circle.isActive"\n [pointerEvents]="\'all\'"\n [data]="circle.value"\n [classNames]="circle.classNames"\n (select)="onClick($event, circle.label)"\n (activate)="activateCircle(circle)"\n (deactivate)="deactivateCircle(circle)"\n ngx-tooltip\n [tooltipDisabled]="tooltipDisabled"\n [tooltipPlacement]="\'top\'"\n [tooltipType]="\'tooltip\'"\n [tooltipTitle]="tooltipTemplate ? undefined : getTooltipText(circle)"\n [tooltipTemplate]="tooltipTemplate"\n [tooltipContext]="circle.data"\n />\n </svg:g>\n </svg:g>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush,animations:[Object(i.trigger)("animationState",[Object(i.transition)(":enter",[Object(i.style)({opacity:0,transform:"scale(0)"}),Object(i.animate)(250,Object(i.style)({opacity:1,transform:"scale(1)"}))])])]})],t)}()},"./src/bubble-chart/index.ts":function(t,e,n){"use strict";var r=n("./src/bubble-chart/bubble-chart.module.ts");n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b}),n.d(e,"c",function(){return r.c});n("./src/bubble-chart/bubble-chart.component.ts"),n("./src/bubble-chart/bubble-series.component.ts")},"./src/common/area.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("@angular/core"),i=(n.n(r),n("d3-selection")),o=(n.n(i),n("./src/utils/id.ts")),s=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(t){this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.animations=!0,this.select=new r.EventEmitter,this.initialized=!1,this.hasGradient=!1,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)},t.prototype.update=function(){this.gradientId="grad"+Object(o.a)().toString(),this.gradientFill="url(#"+this.gradientId+")",this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()},t.prototype.loadAnimation=function(){this.areaPath=this.startingPath,setTimeout(this.update.bind(this),100)},t.prototype.updatePathEl=function(){var t=Object(i.select)(this.element).select(".area");this.animations?t.transition().duration(750).attr("d",this.path):t.attr("d",this.path)},t.prototype.getGradient=function(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:this.endOpacity}]},s([Object(r.Input)(),a("design:type",Object)],t.prototype,"data",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"path",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"startingPath",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"fill",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"opacity",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"startOpacity",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"endOpacity",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"activeLabel",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"gradient",void 0),s([Object(r.Input)(),a("design:type",Array)],t.prototype,"stops",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"animations",void 0),s([Object(r.Output)(),a("design:type",Object)],t.prototype,"select",void 0),t=s([Object(r.Component)({selector:"g[ngx-charts-area]",template:'\n <svg:defs *ngIf="gradient">\n <svg:g ngx-charts-svg-linear-gradient\n orientation="vertical"\n [name]="gradientId"\n [stops]="gradientStops"\n />\n </svg:defs>\n <svg:path\n class="area"\n [attr.d]="areaPath"\n [attr.fill]="gradient ? gradientFill : fill"\n [style.opacity]="opacity"\n />\n ',changeDetection:r.ChangeDetectionStrategy.OnPush}),a("design:paramtypes",[r.ElementRef])],t)}()},"./src/common/axes/axes.module.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r=n("@angular/core"),i=(n.n(r),n("./src/common/axes/axis-label.component.ts")),o=n("./src/common/axes/x-axis.component.ts"),s=n("./src/common/axes/x-axis-ticks.component.ts"),a=n("./src/common/axes/y-axis.component.ts"),c=n("./src/common/axes/y-axis-ticks.component.ts"),u=n("@angular/common"),l=(n.n(u),this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}),p=function(){function t(){}return t=l([Object(r.NgModule)({imports:[u.CommonModule],declarations:[i.a,o.a,s.a,a.a,c.a],exports:[i.a,o.a,s.a,a.a,c.a]})],t)}()},"./src/common/axes/axis-label.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("@angular/core"),i=(n.n(r),this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(t){this.textHeight=25,this.margin=5,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case"top":case"bottom":this.y=this.offset,this.x=this.width/2;break;case"left":this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case"right":this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}},i([Object(r.Input)(),o("design:type",Object)],t.prototype,"orient",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"label",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"offset",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"width",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"height",void 0),t=i([Object(r.Component)({selector:"g[ngx-charts-axis-label]",template:'\n <svg:text\n [attr.stroke-width]="strokeWidth"\n [attr.text-anchor]="textAnchor"\n [attr.x]="x"\n [attr.y]="y"\n [attr.text-anchor]="textAnchor"\n [attr.transform]="transform">\n {{label}}\n </svg:text>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush}),o("design:paramtypes",[r.ElementRef])],t)}()},"./src/common/axes/ticks.helper.ts":function(t,e,n){"use strict";e.a=function(t,e){if(t.length>e){for(var n=[],r=Math.floor(t.length/e),i=0;i<t.length;i++)i%r==0&&n.push(t[i]);t=n}return t}},"./src/common/axes/x-axis-ticks.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("@angular/core"),i=(n.n(r),n("./src/common/trim-label.helper.ts")),o=n("./src/common/axes/ticks.helper.ts"),s=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(){this.tickArguments=[5],this.tickStroke="#ccc",this.showGridLines=!1,this.dimensionsChanged=new r.EventEmitter,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor="middle",this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.trimLabel=i.a}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.ngAfterViewInit=function(){var t=this;setTimeout(function(){return t.updateDims()})},t.prototype.updateDims=function(){var t=this,e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);e!==this.height&&(this.height=e,this.dimensionsChanged.emit({height:e}),setTimeout(function(){return t.updateDims()}))},t.prototype.update=function(){var t=this,e=this.scale;this.ticks=this.getTicks(),this.tickFormatting?this.tickFormat=this.tickFormatting:e.tickFormat?this.tickFormat=e.tickFormat.apply(e,this.tickArguments):this.tickFormat=function(t){return"Date"===t.constructor.name?t.toLocaleDateString():t.toLocaleString()};var n=this.getRotationAngle(this.ticks);this.adjustedScale=this.scale.bandwidth?function(t){return this.scale(t)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",0!==n?(this.textTransform="rotate("+n+")",this.textAnchor="end",this.verticalSpacing=10):this.textAnchor="middle",setTimeout(function(){return t.updateDims()})},t.prototype.getRotationAngle=function(t){for(var e=0,n=0;n<t.length;n++){var r=t[n].toString();r.length>this.maxTicksLength&&(this.maxTicksLength=r.length)}for(var i=8*Math.min(this.maxTicksLength,this.maxAllowedLength),o=i,s=Math.floor(this.width/t.length);o>s&&e>-90;)e-=30,o=Math.cos(e*(Math.PI/180))*i;return e},t.prototype.getTicks=function(){var t,e=this.getMaxTicks(20),n=this.getMaxTicks(100);return this.tickValues?t=this.tickValues:this.scale.ticks?t=this.scale.ticks.apply(this.scale,[n]):(t=this.scale.domain(),t=Object(o.a)(t,e)),t},t.prototype.getMaxTicks=function(t){return Math.floor(this.width/t)},t.prototype.tickTransform=function(t){return"translate("+this.adjustedScale(t)+","+this.verticalSpacing+")"},t.prototype.gridLineTransform=function(){return"translate(0,"+(-this.verticalSpacing-5)+")"},s([Object(r.Input)(),a("design:type",Object)],t.prototype,"scale",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"orient",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"tickArguments",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"tickStroke",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"tickFormatting",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"showGridLines",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"gridLineHeight",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"width",void 0),s([Object(r.Output)(),a("design:type",Object)],t.prototype,"dimensionsChanged",void 0),s([Object(r.ViewChild)("ticksel"),a("design:type",r.ElementRef)],t.prototype,"ticksElement",void 0),t=s([Object(r.Component)({selector:"g[ngx-charts-x-axis-ticks]",template:'\n <svg:g #ticksel>\n <svg:g *ngFor="let tick of ticks" class="tick"\n [attr.transform]="tickTransform(tick)">\n <title>{{tickFormat(tick)}}</title>\n <svg:text\n stroke-width="0.01"\n [attr.text-anchor]="textAnchor"\n [attr.transform]="textTransform"\n [style.font-size]="\'12px\'">\n {{trimLabel(tickFormat(tick))}}\n </svg:text>\n </svg:g>\n </svg:g>\n\n <svg:g *ngFor="let tick of ticks"\n [attr.transform]="tickTransform(tick)">\n <svg:g *ngIf="showGridLines"\n [attr.transform]="gridLineTransform()">\n <svg:line\n class="gridline-path gridline-path-vertical"\n [attr.y1]="-gridLineHeight"\n y2="0" />\n </svg:g>\n </svg:g>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush}),a("design:paramtypes",[])],t)}()},"./src/common/axes/x-axis.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("@angular/core"),i=(n.n(r),n("./src/common/axes/x-axis-ticks.component.ts")),o=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(){this.showGridLines=!1,this.xOrient="bottom",this.dimensionsChanged=new r.EventEmitter,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.xAxisOffset=5}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.transform="translate(0,"+(this.xAxisOffset+this.dims.height)+")","undefined"!=typeof this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])},t.prototype.emitTicksHeight=function(t){var e=this,n=t.height,r=n+25+5;r!==this.labelOffset&&(this.labelOffset=r,setTimeout(function(){e.dimensionsChanged.emit({height:n})},0))},o([Object(r.Input)(),s("design:type",Object)],t.prototype,"xScale",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"dims",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"tickFormatting",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"showGridLines",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"showLabel",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"labelText",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"xAxisTickInterval",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"xAxisTickCount",void 0),o([Object(r.Input)(),s("design:type",String)],t.prototype,"xOrient",void 0),o([Object(r.Output)(),s("design:type",Object)],t.prototype,"dimensionsChanged",void 0),o([Object(r.ViewChild)(i.a),s("design:type",i.a)],t.prototype,"ticksComponent",void 0),t=o([Object(r.Component)({selector:"g[ngx-charts-x-axis]",template:'\n <svg:g\n [attr.class]="xAxisClassName"\n [attr.transform]="transform">\n <svg:g ngx-charts-x-axis-ticks\n *ngIf="xScale"\n [tickFormatting]="tickFormatting"\n [tickArguments]="tickArguments"\n [tickStroke]="tickStroke"\n [scale]="xScale"\n [orient]="xOrient"\n [showGridLines]="showGridLines"\n [gridLineHeight]="dims.height"\n [width]="dims.width"\n (dimensionsChanged)="emitTicksHeight($event)"\n />\n <svg:g ngx-charts-axis-label\n *ngIf="showLabel"\n [label]="labelText"\n [offset]="labelOffset"\n [orient]="\'bottom\'"\n [height]="dims.height"\n [width]="dims.width">\n </svg:g>\n </svg:g>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush})],t)}()},"./src/common/axes/y-axis-ticks.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("@angular/core"),i=(n.n(r),n("./src/common/trim-label.helper.ts")),o=n("./src/common/axes/ticks.helper.ts"),s=n("./src/common/shape.helper.ts"),a=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},c=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},u=function(){function t(){this.tickArguments=[5],this.tickStroke="#ccc",this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new r.EventEmitter,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor="middle",this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.trimLabel=i.a}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.ngAfterViewInit=function(){var t=this;setTimeout(function(){return t.updateDims()})},t.prototype.updateDims=function(){var t=this,e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);e!==this.width&&(this.width=e,this.dimensionsChanged.emit({width:e}),setTimeout(function(){return t.updateDims()}))},t.prototype.update=function(){var t,e=this,n="top"===this.orient||"right"===this.orient?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,t=this.scale,this.ticks=this.getTicks(),this.tickFormatting?this.tickFormat=this.tickFormatting:t.tickFormat?this.tickFormat=t.tickFormat.apply(t,this.tickArguments):this.tickFormat=function(t){return"Date"===t.constructor.name?t.toLocaleDateString():t.toLocaleString()},this.adjustedScale=t.bandwidth?function(e){return t(e)+.5*t.bandwidth()}:t,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case"top":this.transform=function(t){return"translate("+this.adjustedScale(t)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*n,this.y1=this.tickSpacing*n,this.dy=n<0?"0em":".71em";break;case"bottom":this.transform=function(t){return"translate("+this.adjustedScale(t)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*n,this.y1=this.tickSpacing*n,this.dy=n<0?"0em":".71em";break;case"left":this.transform=function(t){return"translate(0,"+this.adjustedScale(t)+")"},this.textAnchor="end",this.x2=this.innerTickSize*-n,this.x1=this.tickSpacing*-n,this.dy=".32em";break;case"right":this.transform=function(t){return"translate(0,"+this.adjustedScale(t)+")"},this.textAnchor="start",this.x2=this.innerTickSize*-n,this.x1=this.tickSpacing*-n,this.dy=".32em"}setTimeout(function(){return e.updateDims()})},t.prototype.setReferencelines=function(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(function(t){return t.value}))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(function(t){return t.value}))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=Object(s.a)(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])},t.prototype.getTicks=function(){var t,e=this.getMaxTicks(20),n=this.getMaxTicks(50);return this.tickValues?t=this.tickValues:this.scale.ticks?t=this.scale.ticks.apply(this.scale,[n]):(t=this.scale.domain(),t=Object(o.a)(t,e)),t},t.prototype.getMaxTicks=function(t){return Math.floor(this.height/t)},t.prototype.tickTransform=function(t){return"translate("+this.adjustedScale(t)+","+this.verticalSpacing+")"},t.prototype.gridLineTransform=function(){return"translate(5,0)"},a([Object(r.Input)(),c("design:type",Object)],t.prototype,"scale",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"orient",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"tickArguments",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"tickValues",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"tickStroke",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"tickFormatting",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"showGridLines",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"gridLineWidth",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"height",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"referenceLines",void 0),a([Object(r.Input)(),c("design:type",Boolean)],t.prototype,"showRefLabels",void 0),a([Object(r.Input)(),c("design:type",Boolean)],t.prototype,"showRefLines",void 0),a([Object(r.Output)(),c("design:type",Object)],t.prototype,"dimensionsChanged",void 0),a([Object(r.ViewChild)("ticksel"),c("design:type",r.ElementRef)],t.prototype,"ticksElement",void 0),t=a([Object(r.Component)({selector:"g[ngx-charts-y-axis-ticks]",template:'\n <svg:g #ticksel>\n <svg:g *ngFor="let tick of ticks" class="tick"\n [attr.transform]="transform(tick)" >\n <title>{{tickFormat(tick)}}</title>\n <svg:text\n stroke-width="0.01"\n [attr.dy]="dy"\n [attr.x]="x1"\n [attr.y]="y1"\n [attr.text-anchor]="textAnchor"\n [style.font-size]="\'12px\'">\n {{trimLabel(tickFormat(tick))}}\n </svg:text>\n </svg:g>\n </svg:g>\n\n <svg:path *ngIf="referenceLineLength > 1 && refMax && refMin && showRefLines"\n class="reference-area"\n [attr.d]="referenceAreaPath"\n [attr.transform]="gridLineTransform()"\n />\n <svg:g *ngFor="let tick of ticks"\n [attr.transform]="transform(tick)">\n <svg:g\n *ngIf="showGridLines"\n [attr.transform]="gridLineTransform()">\n <svg:line *ngIf="orient === \'left\'"\n class="gridline-path gridline-path-horizontal"\n x1="0"\n [attr.x2]="gridLineWidth" />\n <svg:line *ngIf="orient === \'right\'"\n class="gridline-path gridline-path-horizontal"\n x1="0"\n [attr.x2]="-gridLineWidth" />\n </svg:g>\n </svg:g>\n\n <svg:g *ngFor="let refLine of referenceLines">\n <svg:g *ngIf="showRefLines" [attr.transform]="transform(refLine.value)">\n <svg:line class="refline-path gridline-path-horizontal"\n x1="0"\n [attr.x2]="gridLineWidth"\n [attr.transform]="gridLineTransform()"/>\n <svg:g *ngIf="showRefLabels">\n <title>{{trimLabel(tickFormat(refLine.value))}}</title>\n <svg:text\n class="refline-label"\n [attr.dy]="dy"\n [attr.y]="-6"\n [attr.x]="gridLineWidth"\n [attr.text-anchor]="textAnchor" >\n {{refLine.name}}\n </svg:text>\n </svg:g>\n </svg:g>\n </svg:g>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush}),c("design:paramtypes",[])],t)}()},"./src/common/axes/y-axis.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("@angular/core"),i=(n.n(r),n("./src/common/axes/y-axis-ticks.component.ts")),o=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(){this.showGridLines=!1,this.yOrient="left",this.dimensionsChanged=new r.EventEmitter,this.yAxisClassName="y axis",this.yAxisOffset=-5,this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.offset=this.yAxisOffset,"right"===this.yOrient?(this.labelOffset=65,this.transform="translate("+(this.offset+this.dims.width)+" , 0)"):this.transform="translate("+this.offset+" , 0)",void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])},t.prototype.emitTicksWidth=function(t){var e=this,n=t.width;n!==this.labelOffset&&"right"===this.yOrient?(this.labelOffset=n+this.labelOffset,setTimeout(function(){e.dimensionsChanged.emit({width:n})},0)):n!==this.labelOffset&&(this.labelOffset=n,setTimeout(function(){e.dimensionsChanged.emit({width:n})},0))},o([Object(r.Input)(),s("design:type",Object)],t.prototype,"yScale",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"dims",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"tickFormatting",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"showGridLines",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"showLabel",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"labelText",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"yAxisTickInterval",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"yAxisTickCount",void 0),o([Object(r.Input)(),s("design:type",String)],t.prototype,"yOrient",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"referenceLines",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"showRefLines",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"showRefLabels",void 0),o([Object(r.Output)(),s("design:type",Object)],t.prototype,"dimensionsChanged",void 0),o([Object(r.ViewChild)(i.a),s("design:type",i.a)],t.prototype,"ticksComponent",void 0),t=o([Object(r.Component)({selector:"g[ngx-charts-y-axis]",template:'\n <svg:g\n [attr.class]="yAxisClassName"\n [attr.transform]="transform">\n <svg:g ngx-charts-y-axis-ticks\n *ngIf="yScale"\n [tickFormatting]="tickFormatting"\n [tickArguments]="tickArguments"\n [tickStroke]="tickStroke"\n [scale]="yScale"\n [orient]="yOrient"\n [showGridLines]="showGridLines"\n [gridLineWidth]="dims.width"\n [referenceLines]="referenceLines"\n [showRefLines]="showRefLines"\n [showRefLabels]="showRefLabels"\n [height]="dims.height"\n (dimensionsChanged)="emitTicksWidth($event)"\n />\n\n <svg:g ngx-charts-axis-label\n *ngIf="showLabel"\n [label]="labelText"\n [offset]="labelOffset"\n [orient]="yOrient"\n [height]="dims.height"\n [width]="dims.width">\n </svg:g>\n </svg:g>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush})],t)}()},"./src/common/base-chart.component.scss":function(t,e,n){var r=n('./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/common/base-chart.component.scss');t.exports="string"==typeof r?r:r.toString()},"./src/common/base-chart.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("@angular/core"),i=(n.n(r),n("rxjs/Observable")),o=(n.n(i),n("rxjs/add/observable/fromEvent")),s=(n.n(o),n("rxjs/add/operator/debounceTime")),a=(n.n(s),n("./src/utils/index.ts")),c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},u=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(){function t(t,e,n){this.chartElement=t,this.zone=e,this.cd=n,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new r.EventEmitter}return t.prototype.ngAfterViewInit=function(){this.bindWindowResizeEvent(),this.visibilityObserver=new a.a(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))},t.prototype.ngOnDestroy=function(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())},t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){if(this.results&&(this.results=this.cloneData(this.results)),this.view)this.width=this.view[0],this.height=this.view[1];else{var t=this.getContainerDims();t&&(this.width=t.width,this.height=t.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=~~this.width,this.height=~~this.height,this.cd&&this.cd.markForCheck()},t.prototype.getContainerDims=function(){var t,e,n=this.chartElement.nativeElement;if(null!==n.parentNode){var r=n.parentNode.getBoundingClientRect();t=r.width,e=r.height}return t&&e?{width:t,height:e}:null},t.prototype.formatDates=function(){for(var t=0;t<this.results.length;t++){var e=this.results[t];if(e.name instanceof Date&&(e.name=e.name.toLocaleDateString()),e.series)for(var n=0;n<e.series.length;n++){var r=e.series[n];r.name instanceof Date&&(r.name=r.name.toLocaleDateString())}}},t.prototype.unbindEvents=function(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()},t.prototype.bindWindowResizeEvent=function(){var t=this,e=i.Observable.fromEvent(window,"resize",null,null).debounceTime(200).subscribe(function(e){t.update(),t.cd&&t.cd.markForCheck()});this.resizeSubscription=e},t.prototype.cloneData=function(t){for(var e=[],n=0,r=t;n<r.length;n++){var i=r[n],o={name:i.name};if(void 0!==i.value&&(o.value=i.value),void 0!==i.series){o.series=[];for(var s=0,a=i.series;s<a.length;s++){var c=a[s],u=Object.assign({},c);o.series.push(u)}}void 0!==i.extra&&(o.extra=JSON.parse(JSON.stringify(i.extra))),e.push(o)}return e},c([Object(r.Input)(),u("design:type",Object)],t.prototype,"results",void 0),c([Object(r.Input)(),u("design:type",Array)],t.prototype,"view",void 0),c([Object(r.Input)(),u("design:type",Object)],t.prototype,"scheme",void 0),c([Object(r.Input)(),u("design:type",String)],t.prototype,"schemeType",void 0),c([Object(r.Input)(),u("design:type",Object)],t.prototype,"customColors",void 0),c([Object(r.Input)(),u("design:type",Boolean)],t.prototype,"animations",void 0),c([Object(r.Output)(),u("design:type",Object)],t.prototype,"select",void 0),t=c([Object(r.Component)({selector:"base-chart",template:"<div></div>"}),u("design:paramtypes",[r.ElementRef,r.NgZone,r.ChangeDetectorRef])],t)}()},"./src/common/chart-common.module.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return w});var r=n("@angular/core"),i=(n.n(r),n("@angular/common")),o=(n.n(i),n("./src/common/charts/chart.component.ts")),s=n("./src/common/legend/index.ts"),a=n("./src/common/base-chart.component.ts"),c=n("./src/common/axes/axes.module.ts"),u=n("./src/common/tooltip/index.ts"),l=n("./src/common/circle-series.component.ts"),p=n("./src/common/circle.component.ts"),h=n("./src/common/grid-panel.component.ts"),d=n("./src/common/grid-panel-series.component.ts"),f=n("./src/common/svg-linear-gradient.component.ts"),y=n("./src/common/svg-radial-gradient.component.ts"),g=n("./src/common/timeline/index.ts"),v=n("./src/common/area.component.ts"),m=n("./src/common/tooltip-area.component.ts"),b=n("./src/common/count/index.ts"),_=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},x=[v.a,a.a,b.a,m.a,o.a,s.b,s.c,s.d,p.a,l.a,h.a,d.a,f.a,y.a,g.a,s.a],w=function(){function t(){}return t=_([Object(r.NgModule)({providers:[i.Location,{provide:i.LocationStrategy,useClass:i.PathLocationStrategy}],imports:[i.CommonModule,c.a,u.f],declarations:x.slice(),exports:[i.CommonModule,c.a,u.f].concat(x)})],t)}()},"./src/common/charts/chart.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("@angular/core"),i=(n.n(r),n("@angular/animations")),o=(n.n(i),n("./src/common/tooltip/index.ts")),s=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(t,e){this.vcr=t,this.tooltipService=e,this.showLegend=!1,this.animations=!0,this.legendLabelClick=new r.EventEmitter,this.legendLabelActivate=new r.EventEmitter,this.legendLabelDeactivate=new r.EventEmitter,this.tooltipService.injectionService.setRootViewContainer(this.vcr)}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){var t=0;this.showLegend&&(this.legendType=this.getLegendType(),t="scaleLegend"===this.legendType?1:2);var e=12-t;this.chartWidth=~~(this.view[0]*e/12),this.legendWidth=~~(this.view[0]*t/12)},t.prototype.getLegendType=function(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"},s([Object(r.Input)(),a("design:type",Object)],t.prototype,"view",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"showLegend",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"legendOptions",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"data",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"legendData",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"legendType",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"colors",void 0),s([Object(r.Input)(),a("design:type",Array)],t.prototype,"activeEntries",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"animations",void 0),s([Object(r.Output)(),a("design:type",r.EventEmitter)],t.prototype,"legendLabelClick",void 0),s([Object(r.Output)(),a("design:type",r.EventEmitter)],t.prototype,"legendLabelActivate",void 0),s([Object(r.Output)(),a("design:type",r.EventEmitter)],t.prototype,"legendLabelDeactivate",void 0),t=s([Object(r.Component)({providers:[o.g],selector:"ngx-charts-chart",template:'\n <div\n class="ngx-charts-outer"\n [style.width.px]="view[0]"\n [@animationState]="\'active\'"\n [@.disabled]="!animations">\n <svg\n class="ngx-charts"\n [attr.width]="chartWidth"\n [attr.height]="view[1]">\n <ng-content></ng-content>\n </svg>\n <ngx-charts-scale-legend\n *ngIf="showLegend && legendType === \'scaleLegend\'"\n class="chart-legend"\n [valueRange]="legendOptions.domain"\n [colors]="legendOptions.colors"\n [height]="view[1]"\n [width]="legendWidth">\n </ngx-charts-scale-legend>\n <ngx-charts-legend\n *ngIf="showLegend && legendType === \'legend\'"\n class="chart-legend"\n [data]="legendOptions.domain"\n [title]="legendOptions.title"\n [colors]="legendOptions.colors"\n [height]="view[1]"\n [width]="legendWidth"\n [activeEntries]="activeEntries"\n (labelClick)="legendLabelClick.emit($event)"\n (labelActivate)="legendLabelActivate.emit($event)"\n (labelDeactivate)="legendLabelDeactivate.emit($event)">\n </ngx-charts-legend>\n </div>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush,animations:[Object(i.trigger)("animationState",[Object(i.transition)(":enter",[Object(i.style)({opacity:0}),Object(i.animate)("500ms 100ms",Object(i.style)({opacity:1}))])])]}),a("design:paramtypes",[r.ViewContainerRef,o.g])],t)}()},"./src/common/charts/index.ts":function(t,e,n){"use strict";var r=n("./src/common/charts/chart.component.ts");n.d(e,"a",function(){return r.a})},"./src/common/circle-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("@angular/core"),i=(n.n(r),n("@angular/animations")),o=(n.n(i),n("./src/common/label.helper.ts")),s=n("./src/utils/id.ts"),a=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},c=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},u=function(){function t(){this.type="standard",this.tooltipDisabled=!1,this.select=new r.EventEmitter,this.activate=new r.EventEmitter,this.deactivate=new r.EventEmitter,this.barVisible=!1}return t.prototype.ngOnInit=function(){this.gradientId="grad"+Object(s.a)().toString(),this.gradientFill="url(#"+this.gradientId+")"},t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.circles=this.getCircles(),this.circle=this.circles.find(function(t){return 0!==t.opacity})},t.prototype.getCircles=function(){var t=this,e=this.data.name;return this.data.series.map(function(n,r){var i=n.value,s=n.name,a=Object(o.a)(s);if(i){var c=void 0;c="time"===t.scaleType?t.xScale(s):"linear"===t.scaleType?t.xScale(Number(s)):t.xScale(s);var u=t.yScale("standard"===t.type?i:n.d1),l=t.yScale.range()[0]-u,p=0;s&&t.visibleValue&&s.toString()===t.visibleValue.toString()&&(p=1);var h=void 0;h="linear"===t.colors.scaleType?"standard"===t.type?t.colors.getColor(i):t.colors.getColor(n.d1):t.colors.getColor(e);return{classNames:["circle-data-"+r],value:i,label:s,data:{series:e,value:i,name:s},cx:c,cy:u,radius:5,height:l,tooltipLabel:a,color:h,opacity:p,seriesName:e,gradientStops:t.getGradientStops(h),min:n.min,max:n.max}}}).filter(function(t){return void 0!==t})},t.prototype.getTooltipText=function(t){var e=t.tooltipLabel,n=t.value,r=t.seriesName,i=t.min,o=t.max;return'\n <span class="tooltip-label">'+r+" \u2022 "+e+'</span>\n <span class="tooltip-val">'+n.toLocaleString()+this.getTooltipMinMaxText(i,o)+"</span>\n "},t.prototype.getTooltipMinMaxText=function(t,e){if(void 0!==t||void 0!==e){var n=" (";return void 0!==t?(void 0===e&&(n+="\u2265"),n+=t.toLocaleString(),void 0!==e&&(n+=" - ")):void 0!==e&&(n+="\u2264"),void 0!==e&&(n+=e.toLocaleString()),n+=")"}return""},t.prototype.getGradientStops=function(t){return[{offset:0,color:t,opacity:.2},{offset:100,color:t,opacity:1}]},t.prototype.onClick=function(t,e){this.select.emit({name:e,value:t})},t.prototype.isActive=function(t){if(!this.activeEntries)return!1;return void 0!==this.activeEntries.find(function(e){return t.name===e.name})},t.prototype.activateCircle=function(){this.barVisible=!0,this.activate.emit({name:this.data.name})},t.prototype.deactivateCircle=function(){this.barVisible=!1,this.circle.opacity=0,this.deactivate.emit({name:this.data.name})},a([Object(r.Input)(),c("design:type",Object)],t.prototype,"data",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"type",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"xScale",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"yScale",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"colors",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"scaleType",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"visibleValue",void 0),a([Object(r.Input)(),c("design:type",Array)],t.prototype,"activeEntries",void 0),a([Object(r.Input)(),c("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),a([Object(r.Input)(),c("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),a([Object(r.Output)(),c("design:type",Object)],t.prototype,"select",void 0),a([Object(r.Output)(),c("design:type",Object)],t.prototype,"activate",void 0),a([Object(r.Output)(),c("design:type",Object)],t.prototype,"deactivate",void 0),t=a([Object(r.Component)({selector:"g[ngx-charts-circle-series]",template:'\n <svg:g *ngIf="circle">\n <defs>\n <svg:g ngx-charts-svg-linear-gradient\n orientation="vertical"\n [name]="gradientId"\n [stops]="circle.gradientStops"\n />\n </defs>\n <svg:rect\n *ngIf="barVisible && type === \'standard\'"\n [@animationState]="\'active\'"\n [attr.x]="circle.cx - circle.radius"\n [attr.y]="circle.cy"\n [attr.width]="circle.radius * 2"\n [attr.height]="circle.height"\n [attr.fill]="gradientFill"\n class="tooltip-bar"\n />\n <svg:g ngx-charts-circle\n class="circle"\n [cx]="circle.cx"\n [cy]="circle.cy"\n [r]="circle.radius"\n [fill]="circle.color"\n [class.active]="isActive({name: circle.seriesName})"\n [pointerEvents]="circle.value === 0 ? \'none\': \'all\'"\n [data]="circle.value"\n [classNames]="circle.classNames"\n (select)="onClick($event, circle.label)"\n (activate)="activateCircle()"\n (deactivate)="deactivateCircle()"\n ngx-tooltip\n [tooltipDisabled]="tooltipDisabled"\n [tooltipPlacement]="\'top\'"\n [tooltipType]="\'tooltip\'"\n [tooltipTitle]="tooltipTemplate ? undefined : getTooltipText(circle)"\n [tooltipTemplate]="tooltipTemplate"\n [tooltipContext]="circle.data"\n />\n </svg:g>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush,animations:[Object(i.trigger)("animationState",[Object(i.transition)(":enter",[Object(i.style)({opacity:0}),Object(i.animate)(250,Object(i.style)({opacity:1}))])])]})],t)}()},"./src/common/circle.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("@angular/core"),i=(n.n(r),this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(){this.select=new r.EventEmitter,this.activate=new r.EventEmitter,this.deactivate=new r.EventEmitter}return t.prototype.onClick=function(){this.select.emit(this.data)},t.prototype.onMouseEnter=function(){this.activate.emit(this.data)},t.prototype.onMouseLeave=function(){this.deactivate.emit(this.data)},t.prototype.ngOnChanges=function(t){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"},i([Object(r.Input)(),o("design:type",Object)],t.prototype,"cx",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"cy",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"r",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"fill",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"stroke",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"data",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"classNames",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"circleOpacity",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"pointerEvents",void 0),i([Object(r.Output)(),o("design:type",Object)],t.prototype,"select",void 0),i([Object(r.Output)(),o("design:type",Object)],t.prototype,"activate",void 0),i([Object(r.Output)(),o("design:type",Object)],t.prototype,"deactivate",void 0),i([Object(r.HostListener)("click"),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],t.prototype,"onClick",null),i([Object(r.HostListener)("mouseenter"),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],t.prototype,"onMouseEnter",null),i([Object(r.HostListener)("mouseleave"),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],t.prototype,"onMouseLeave",null),t=i([Object(r.Component)({selector:"g[ngx-charts-circle]",template:'\n <svg:circle\n [attr.cx]="cx"\n [attr.cy]="cy"\n [attr.r]="r"\n [attr.fill]="fill"\n [attr.stroke]="stroke"\n [attr.opacity]="circleOpacity"\n [attr.class]="classNames"\n [attr.pointer-events]="pointerEvents"\n />\n ',changeDetection:r.ChangeDetectionStrategy.OnPush})],t)}()},"./src/common/color.helper.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("d3-array"),i=(n.n(r),n("d3-scale")),o=(n.n(i),n("./src/utils/color-sets.ts")),s=function(){function t(t,e,n,r){"string"==typeof t&&(t=o.a.find(function(e){return e.name===t})),this.colorDomain=t.domain,this.scaleType=e,this.domain=n,this.customColors=r,this.scale=this.generateColorScheme(t,e,this.domain)}return t.prototype.generateColorScheme=function(t,e,n){"string"==typeof t&&(t=o.a.find(function(e){return e.name===t}));var s;if("quantile"===e)s=Object(i.scaleQuantile)().range(t.domain).domain(n);else if("ordinal"===e)s=Object(i.scaleOrdinal)().range(t.domain).domain(n);else if("linear"===e){var a=t.domain.slice();1===a.length&&(a.push(a[0]),this.colorDomain=a);var c=Object(r.range)(0,1,1/a.length);s=Object(i.scaleLinear)().domain(c).range(a)}return s},t.prototype.getColor=function(t){if("linear"===this.scaleType){var e=Object(i.scaleLinear)().domain(this.domain).range([0,1]);return this.scale(e(t))}var n=t.toString(),r=void 0;return this.customColors&&this.customColors.length>0&&(r=this.customColors.find(function(t){return t.name.toLowerCase()===n.toLowerCase()})),r?r.value:this.scale(t)},t.prototype.getLinearGradientStops=function(t,e){void 0===e&&(e=this.domain[0]);var n=Object(i.scaleLinear)().domain(this.domain).range([0,1]),r=Object(i.scaleBand)().domain(this.colorDomain).range([0,1]),o=this.getColor(t),s=n(e),a=this.getColor(e),c=n(t),u=1,l=s,p=[];for(p.push({color:a,offset:s,originalOffset:s,opacity:1});l<c&&u<this.colorDomain.length;){var h=this.colorDomain[u],d=r(h);if(d<=s)u++;else{if(d.toFixed(4)>=(c-r.bandwidth()).toFixed(4))break;p.push({color:h,offset:d,opacity:1}),l=d,u++}}if(p[p.length-1].offset<100&&p.push({color:o,offset:c,opacity:1}),c===s)p[0].offset=0,p[1].offset=100;else if(100!==p[p.length-1].offset)for(var f=0,y=p;f<y.length;f++){var g=y[f];g.offset=(g.offset-s)/(c-s)*100}return p},t}()},"./src/common/count/count.directive.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("@angular/core"),i=(n.n(r),n("./src/common/count/count.helper.ts")),o=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(t,e){this.cd=t,this.countDuration=1,this.countPrefix="",this.countSuffix="",this.countChange=new r.EventEmitter,this.countFinish=new r.EventEmitter,this.value="",this._countDecimals=0,this._countTo=0,this._countFrom=0,this.nativeElement=e.nativeElement}return Object.defineProperty(t.prototype,"countDecimals",{get:function(){return this._countDecimals?this._countDecimals:Object(i.b)(this.countTo)},set:function(t){this._countDecimals=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"countTo",{get:function(){return this._countTo},set:function(t){this._countTo=parseFloat(t),this.start()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"countFrom",{get:function(){return this._countFrom},set:function(t){this._countFrom=parseFloat(t),this.start()},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){cancelAnimationFrame(this.animationReq)},t.prototype.start=function(){var t=this;cancelAnimationFrame(this.animationReq);var e=this.valueFormatting||function(e){return""+t.countPrefix+e.value.toLocaleString()+t.countSuffix};this.animationReq=Object(i.a)(this.countFrom,this.countTo,this.countDecimals,this.countDuration,function(n){var r=n.value,i=n.progress,o=n.finished;t.value=e({value:r}),t.cd.markForCheck(),o||t.countChange.emit({value:r,progress:i}),o&&t.countFinish.emit({value:r,progress:i})})},o([Object(r.Input)(),s("design:type",Number)],t.prototype,"countDuration",void 0),o([Object(r.Input)(),s("design:type",String)],t.prototype,"countPrefix",void 0),o([Object(r.Input)(),s("design:type",String)],t.prototype,"countSuffix",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"valueFormatting",void 0),o([Object(r.Input)(),s("design:type",Number),s("design:paramtypes",[Number])],t.prototype,"countDecimals",null),o([Object(r.Input)(),s("design:type",Object),s("design:paramtypes",[Object])],t.prototype,"countTo",null),o([Object(r.Input)(),s("design:type",Object),s("design:paramtypes",[Object])],t.prototype,"countFrom",null),o([Object(r.Output)(),s("design:type",Object)],t.prototype,"countChange",void 0),o([Object(r.Output)(),s("design:type",Object)],t.prototype,"countFinish",void 0),t=o([Object(r.Component)({selector:"[ngx-charts-count-up]",template:"{{value}}"}),s("design:paramtypes",[r.ChangeDetectorRef,r.ElementRef])],t)}()},"./src/common/count/count.helper.ts":function(t,e,n){"use strict";function r(t,e,n,r){return n*(1-Math.pow(2,-10*t/r))*1024/1023+e}e.a=function(t,e,n,i,o){function s(t){var e,n=t-a;e=l?c-r(n,0,c-u,d):r(n,c,u-c,d),e=l?e<u?u:e:e>u?u:e,e=Math.round(e*h)/h;var i=n<d;if(o({value:e,progress:n,timestamp:t,finished:!i}),i)return requestAnimationFrame(function(t){return s(t)})}var a,c=Number(t),u=Number(e),l=c>u,p=Math.max(0,n),h=Math.pow(10,p),d=1e3*Number(i);return requestAnimationFrame(function(t){return a=t,s(t)})},e.b=function(t){var e=Number(t);return e%1!=0&&Math.abs(e)<=10?2:0}},"./src/common/count/index.ts":function(t,e,n){"use strict";var r=n("./src/common/count/count.directive.ts");n.d(e,"a",function(){return r.a});var i=n("./src/common/count/count.helper.ts");n.d(e,"b",function(){return i.a}),n.d(e,"c",function(){return i.b})},"./src/common/grid-layout.helper.ts":function(t,e,n){"use strict";function r(t,e,n){var r=1,i=e,o=t.width;if(o>n)for(;o/i<n;)r+=1,i=Math.ceil(e/r);return[i,r]}e.b=r,e.a=function(t,e,n,o){for(var s=Object(i.scaleBand)(),a=Object(i.scaleBand)(),c=t.width,u=t.height,l=r(t,e.length,n),p=l[0],h=l[1],d=[],f=[],y=0;y<h;y++)f.push(y);for(y=0;y<p;y++)d.push(y);s.domain(d),a.domain(f),s.rangeRound([0,c],.1),a.rangeRound([0,u],.1);var g=[],v=o||function(t){return t.map(function(t){return t?t.value:0}).reduce(function(t,e){return t+e},0)}(e),m=s.bandwidth(),b=a.bandwidth();for(y=0;y<e.length;y++)g[y]={},g[y].data={name:e[y]?e[y].name:"",value:e[y]?e[y].value:void 0,extra:e[y]?e[y].extra:void 0},g[y].x=s(y%p),g[y].y=a(Math.floor(y/p)),g[y].width=m,g[y].height=b,g[y].data.percent=v>0?g[y].data.value/v:0,g[y].data.total=v;return g};var i=n("d3-scale");n.n(i)},"./src/common/grid-panel-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("@angular/core"),i=(n.n(r),this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(){}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.gridPanels=this.getGridPanels()},t.prototype.getGridPanels=function(){var t=this;return this.data.map(function(e,n){var r,i,o,s,a,c="odd";if("vertical"===t.orient){var u=t.xScale(e.name);Number.parseInt((u/t.xScale.step()).toString())%2==1&&(c="even"),r=t.xScale.bandwidth()*t.xScale.paddingInner(),i=t.xScale.bandwidth()+r,o=t.dims.height,s=t.xScale(e.name)-r/2,a=0}else if("horizontal"===t.orient){u=t.yScale(e.name);Number.parseInt((u/t.yScale.step()).toString())%2==1&&(c="even"),r=t.yScale.bandwidth()*t.yScale.paddingInner(),i=t.dims.width,o=t.yScale.bandwidth()+r,s=0,a=t.yScale(e.name)-r/2}return{name:e.name,class:c,height:o,width:i,x:s,y:a}})},i([Object(r.Input)(),o("design:type",Object)],t.prototype,"data",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"dims",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"xScale",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"yScale",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"orient",void 0),t=i([Object(r.Component)({selector:"g[ngx-charts-grid-panel-series]",template:'\n <svg:g ngx-charts-grid-panel *ngFor="let gridPanel of gridPanels"\n [height]="gridPanel.height"\n [width]="gridPanel.width"\n [x]="gridPanel.x"\n [y]="gridPanel.y"\n [class.grid-panel]="true"\n [class.odd]="gridPanel.class === \'odd\'"\n [class.even]="gridPanel.class === \'even\'">\n </svg:g>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush})],t)}()},"./src/common/grid-panel.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("@angular/core"),i=(n.n(r),this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(){}return i([Object(r.Input)(),o("design:type",Object)],t.prototype,"path",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"width",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"height",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"x",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"y",void 0),t=i([Object(r.Component)({selector:"g[ngx-charts-grid-panel]",template:'\n <svg:rect\n [attr.height]="height"\n [attr.width]="width"\n [attr.x]="x"\n [attr.y]="y"\n stroke="none"\n class="gridpanel"\n />\n ',changeDetection:r.ChangeDetectionStrategy.OnPush})],t)}()},"./src/common/index.ts":function(t,e,n){"use strict";var r=n("./src/common/chart-common.module.ts");n.d(e,"e",function(){return r.a});var i=n("./src/common/legend/index.ts");n.d(e,"a",function(){return i.a}),n.d(e,"m",function(){return i.b}),n.d(e,"n",function(){return i.c}),n.d(e,"o",function(){return i.d});var o=n("./src/common/tooltip/index.ts");n.d(e,"b",function(){return o.a}),n.d(e,"p",function(){return o.b}),n.d(e,"q",function(){return o.c}),n.d(e,"v",function(){return o.d}),n.d(e,"w",function(){return o.e}),n.d(e,"x",function(){return o.f}),n.d(e,"y",function(){return o.g});var s=n("./src/common/count/index.ts");n.d(e,"j",function(){return s.a}),n.d(e,"A",function(){return s.b}),n.d(e,"B",function(){return s.c});var a=n("./src/common/timeline/index.ts");n.d(e,"t",function(){return a.a});var c=n("./src/common/color.helper.ts");n.d(e,"i",function(){return c.a});var u=n("./src/common/charts/index.ts");n.d(e,"f",function(){return u.a});var l=n("./src/common/area.component.ts");n.d(e,"c",function(){return l.a});var p=n("./src/common/base-chart.component.ts");n.d(e,"d",function(){return p.a});var h=n("./src/common/circle.component.ts");n.d(e,"g",function(){return h.a});var d=n("./src/common/circle-series.component.ts");n.d(e,"h",function(){return d.a});var f=n("./src/common/grid-layout.helper.ts");n.d(e,"D",function(){return f.a}),n.d(e,"E",function(){return f.b});var y=n("./src/common/grid-panel.component.ts");n.d(e,"k",function(){return y.a});var g=n("./src/common/grid-panel-series.component.ts");n.d(e,"l",function(){return g.a});var v=n("./src/common/svg-linear-gradient.component.ts");n.d(e,"r",function(){return v.a});var m=n("./src/common/svg-radial-gradient.component.ts");n.d(e,"s",function(){return m.a});var b=n("./src/common/tooltip-area.component.ts");n.d(e,"u",function(){return b.a});var _=n("./src/common/tick-format.helper.ts");n.d(e,"F",function(){return _.a});var x=n("./src/common/trim-label.helper.ts");n.d(e,"G",function(){return x.a});var w=n("./src/common/view-dimensions.helper.ts");n.d(e,"z",function(){return w.a});var O=n("./src/common/label.helper.ts");n.d(e,"C",function(){return O.a})},"./src/common/label.helper.ts":function(t,e,n){"use strict";e.a=function(t){return t=t instanceof Date?t.toLocaleDateString():t.toLocaleString()}},"./src/common/legend/advanced-legend.component.scss":function(t,e,n){var r=n('./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/common/legend/advanced-legend.component.scss');t.exports="string"==typeof r?r:r.toString()},"./src/common/legend/advanced-legend.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("@angular/core"),i=(n.n(r),n("./src/common/trim-label.helper.ts")),o=n("./src/common/label.helper.ts"),s=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(){this.label="Total",this.animations=!0,this.select=new r.EventEmitter,this.activate=new r.EventEmitter,this.deactivate=new r.EventEmitter,this.legendItems=[]}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.getTotal=function(){return this.data.map(function(t){return t.value}).reduce(function(t,e){return t+e},0)},t.prototype.update=function(){this.total=this.getTotal(),this.roundedTotal=this.total,this.legendItems=this.getLegendItems()},t.prototype.getLegendItems=function(){var t=this;return this.data.map(function(e,n){var r=Object(o.a)(e.name),s=e.value,a=t.total>0?s/t.total*100:0;return{value:s,color:t.colors.getColor(r),label:Object(i.a)(r,20),originalLabel:e.name,percentage:a}})},t.prototype.trackBy=function(t){return t.formattedLabel},s([Object(r.Input)(),a("design:type",Number)],t.prototype,"width",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"data",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"colors",void 0),s([Object(r.Input)(),a("design:type",String)],t.prototype,"label",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"animations",void 0),s([Object(r.Output)(),a("design:type",r.EventEmitter)],t.prototype,"select",void 0),s([Object(r.Output)(),a("design:type",r.EventEmitter)],t.prototype,"activate",void 0),s([Object(r.Output)(),a("design:type",r.EventEmitter)],t.prototype,"deactivate",void 0),t=s([Object(r.Component)({selector:"ngx-charts-advanced-legend",template:'\n <div class="advanced-pie-legend"\n [style.width.px]="width">\n <div\n *ngIf="animations"\n class="total-value"\n ngx-charts-count-up\n [countTo]="roundedTotal">\n </div>\n <div *ngIf="!animations">\n {{roundedTotal}}\n </div>\n <div class="total-label">\n {{label}}\n </div>\n <div class="legend-items-container">\n <div class="legend-items">\n <div\n *ngFor="let legendItem of legendItems; trackBy:trackBy"\n tabindex="-1"\n class="legend-item"\n (mouseenter)="activate.emit(legendItem.label)"\n (mouseleave)="deactivate.emit(legendItem.label)"\n (click)="select.emit({ name: legendItem.label, value: legendItem.value })">\n <div\n class="item-color"\n [style.background]="legendItem.color">\n </div>\n <div *ngIf="animations"\n class="item-value"\n ngx-charts-count-up\n [countTo]="legendItem.value">\n </div>\n <div *ngIf="!animations" class="item-value">\n {{legendItem.value}}\n </div>\n <div class="item-label">{{legendItem.label}}</div>\n <div *ngIf="animations"\n class="item-percent"\n ngx-charts-count-up\n [countTo]="legendItem.percentage"\n [countSuffix]="\'%\'">\n </div>\n <div *ngIf="!animations"\n class="item-percent">\n {{legendItem.percentage.toLocaleString()}}%\n </div>\n </div>\n </div>\n </div>\n </div>\n ',styles:[n("./src/common/legend/advanced-legend.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush})],t)}()},"./src/common/legend/index.ts":function(t,e,n){"use strict";var r=n("./src/common/legend/legend.component.ts");n.d(e,"b",function(){return r.a});var i=n("./src/common/legend/scale-legend.component.ts");n.d(e,"d",function(){return i.a});var o=n("./src/common/legend/legend-entry.component.ts");n.d(e,"c",function(){return o.a});var s=n("./src/common/legend/advanced-legend.component.ts");n.d(e,"a",function(){return s.a})},"./src/common/legend/legend-entry.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("@angular/core"),i=(n.n(r),this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(){this.isActive=!1,this.select=new r.EventEmitter,this.activate=new r.EventEmitter,this.deactivate=new r.EventEmitter,this.toggle=new r.EventEmitter}return Object.defineProperty(t.prototype,"trimmedLabel",{get:function(){return this.formattedLabel||"(empty)"},enumerable:!0,configurable:!0}),t.prototype.onMouseEnter=function(){this.activate.emit({name:this.label})},t.prototype.onMouseLeave=function(){this.deactivate.emit({name:this.label})},i([Object(r.Input)(),o("design:type",String)],t.prototype,"color",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"label",void 0),i([Object(r.Input)(),o("design:type",String)],t.prototype,"formattedLabel",void 0),i([Object(r.Input)(),o("design:type",Boolean)],t.prototype,"isActive",void 0),i([Object(r.Output)(),o("design:type",r.EventEmitter)],t.prototype,"select",void 0),i([Object(r.Output)(),o("design:type",r.EventEmitter)],t.prototype,"activate",void 0),i([Object(r.Output)(),o("design:type",r.EventEmitter)],t.prototype,"deactivate",void 0),i([Object(r.Output)(),o("design:type",r.EventEmitter)],t.prototype,"toggle",void 0),i([Object(r.HostListener)("mouseenter"),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],t.prototype,"onMouseEnter",null),i([Object(r.HostListener)("mouseleave"),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],t.prototype,"onMouseLeave",null),t=i([Object(r.Component)({selector:"ngx-charts-legend-entry",template:'\n <span \n [title]="formattedLabel"\n tabindex="-1"\n [class.active]="isActive"\n (click)="select.emit(formattedLabel)">\n <span\n class="legend-label-color"\n [style.background-color]="color"\n (click)="toggle.emit(formattedLabel)">\n </span>\n <span class="legend-label-text">\n {{trimmedLabel}}\n </span>\n </span>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush})],t)}()},"./src/common/legend/legend.component.scss":function(t,e,n){var r=n('./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/common/legend/legend.component.scss');t.exports="string"==typeof r?r:r.toString()},"./src/common/legend/legend.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("@angular/core"),i=(n.n(r),n("./src/common/label.helper.ts")),o=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(t){this.cd=t,this.labelClick=new r.EventEmitter,this.labelActivate=new r.EventEmitter,this.labelDeactivate=new r.EventEmitter,this.legendEntries=[]}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()},t.prototype.getLegendEntries=function(){for(var t=[],e=function(e){var r=Object(i.a)(e);-1===t.findIndex(function(t){return t.label===r})&&t.push({label:e,formattedLabel:r,color:n.colors.getColor(e)})},n=this,r=0,o=this.data;r<o.length;r++){e(o[r])}return t},t.prototype.isActive=function(t){if(!this.activeEntries)return!1;return void 0!==this.activeEntries.find(function(e){return t.label===e.name})},t.prototype.activate=function(t){this.labelActivate.emit(t)},t.prototype.deactivate=function(t){this.labelDeactivate.emit(t)},t.prototype.trackBy=function(t,e){return e.label},o([Object(r.Input)(),s("design:type",Object)],t.prototype,"data",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"title",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"colors",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"height",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"width",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"activeEntries",void 0),o([Object(r.Output)(),s("design:type",r.EventEmitter)],t.prototype,"labelClick",void 0),o([Object(r.Output)(),s("design:type",r.EventEmitter)],t.prototype,"labelActivate",void 0),o([Object(r.Output)(),s("design:type",r.EventEmitter)],t.prototype,"labelDeactivate",void 0),t=o([Object(r.Component)({selector:"ngx-charts-legend",template:'\n <div [style.width.px]="width">\n <header class="legend-title" *ngIf="title?.length > 0">\n <span class="legend-title-text">{{title}}</span>\n </header>\n <div class="legend-wrap">\n <ul class="legend-labels"\n [style.max-height.px]="height - 45">\n <li\n *ngFor="let entry of legendEntries; trackBy: trackBy"\n class="legend-label">\n <ngx-charts-legend-entry\n [label]="entry.label"\n [formattedLabel]="entry.formattedLabel"\n [color]="entry.color"\n [isActive]="isActive(entry)"\n (select)="labelClick.emit($event)"\n (activate)="activate($event)"\n (deactivate)="deactivate($event)">\n </ngx-charts-legend-entry>\n </li>\n </ul>\n </div>\n </div>\n ',styles:[n("./src/common/legend/legend.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush}),s("design:paramtypes",[r.ChangeDetectorRef])],t)}()},"./src/common/legend/scale-legend.component.scss":function(t,e,n){var r=n('./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/common/legend/scale-legend.component.scss');t.exports="string"==typeof r?r:r.toString()},"./src/common/legend/scale-legend.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("@angular/core"),i=(n.n(r),n("@angular/platform-browser")),o=(n.n(i),this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}),s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(t){this.sanitizer=t}return t.prototype.ngOnChanges=function(t){var e=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle("linear-gradient(to bottom, "+e+")")},t.prototype.gradientString=function(t,e){e.push(1);var n=[];return t.reverse().forEach(function(t,r){n.push(t+" "+Math.round(100*e[r])+"%")}),n.join(", ")},o([Object(r.Input)(),s("design:type",Object)],t.prototype,"valueRange",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"colors",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"height",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"width",void 0),t=o([Object(r.Component)({selector:"ngx-charts-scale-legend",template:'\n <div\n class="scale-legend"\n [style.height.px]="height"\n [style.width.px]="width">\n <div class="scale-legend-label">\n <span>{{ valueRange[1].toLocaleString() }}</span>\n </div>\n <div\n class="scale-legend-wrap"\n [style.background]="gradient">\n </div>\n <div class="scale-legend-label">\n <span>{{ valueRange[0].toLocaleString() }}</span>\n </div>\n </div>\n ',styles:[n("./src/common/legend/scale-legend.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush}),s("design:paramtypes",[i.DomSanitizer])],t)}()},"./src/common/shape.helper.ts":function(t,e,n){"use strict";e.a=function(t,e,n,r,i,o){var s=o[0],a=o[1],c=o[2],u=o[3],l="";return l="M"+[t+i,e],l+="h"+(n-2*i),l+=a?"a"+[i,i]+" 0 0 1 "+[i,i]:"h"+i+"v"+i,l+="v"+(r-2*i),l+=u?"a"+[i,i]+" 0 0 1 "+[-i,i]:"v"+i+"h"+-i,l+="h"+(2*i-n),l+=c?"a"+[i,i]+" 0 0 1 "+[-i,-i]:"h"+-i+"v"+-i,l+="v"+(2*i-r),l+=s?"a"+[i,i]+" 0 0 1 "+[i,-i]:"v"+-i+"h"+i,l+="z"}},"./src/common/svg-linear-gradient.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("@angular/core"),i=(n.n(r),this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(){this.orientation="vertical"}return t.prototype.ngOnChanges=function(t){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%","horizontal"===this.orientation?this.x2="100%":"vertical"===this.orientation&&(this.y1="100%")},i([Object(r.Input)(),o("design:type",Object)],t.prototype,"orientation",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"name",void 0),i([Object(r.Input)(),o("design:type",Array)],t.prototype,"stops",void 0),t=i([Object(r.Component)({selector:"g[ngx-charts-svg-linear-gradient]",template:'\n <svg:linearGradient\n [id]="name"\n [attr.x1]="x1"\n [attr.y1]="y1"\n [attr.x2]="x2"\n [attr.y2]="y2">\n <svg:stop *ngFor="let stop of stops"\n [attr.offset]="stop.offset + \'%\'"\n [style.stop-color]="stop.color"\n [style.stop-opacity]="stop.opacity"\n />\n </svg:linearGradient>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush})],t)}()},"./src/common/svg-radial-gradient.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("@angular/core"),i=(n.n(r),this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(){this.endOpacity=1,this.cx=0,this.cy=0}return Object.defineProperty(t.prototype,"stops",{get:function(){return this.stopsInput||this.stopsDefault},set:function(t){this.stopsInput=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.r="30%",("color"in t||"startOpacity"in t||"endOpacity"in t)&&(this.stopsDefault=[{offset:0,color:this.color,opacity:this.startOpacity},{offset:100,color:this.color,opacity:this.endOpacity}])},i([Object(r.Input)(),o("design:type",String)],t.prototype,"color",void 0),i([Object(r.Input)(),o("design:type",String)],t.prototype,"name",void 0),i([Object(r.Input)(),o("design:type",Number)],t.prototype,"startOpacity",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"endOpacity",void 0),i([Object(r.Input)(),o("design:type",Number)],t.prototype,"cx",void 0),i([Object(r.Input)(),o("design:type",Number)],t.prototype,"cy",void 0),i([Object(r.Input)(),o("design:type",Array),o("design:paramtypes",[Array])],t.prototype,"stops",null),t=i([Object(r.Component)({selector:"g[ngx-charts-svg-radial-gradient]",template:'\n <svg:radialGradient\n [id]="name"\n [attr.cx]="cx"\n [attr.cy]="cy"\n [attr.r]="r"\n gradientUnits="userSpaceOnUse">\n <svg:stop *ngFor="let stop of stops"\n [attr.offset]="stop.offset + \'%\'"\n [style.stop-color]="stop.color"\n [style.stop-opacity]="stop.opacity"\n />\n </svg:radialGradient>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush})],t)}()},"./src/common/tick-format.helper.ts":function(t,e,n){"use strict";e.a=function(t,e){return function(n){return"No Value"===n||"Other"===n?n:"date"===t&&"groupBy"===e?Object(r.timeFormat)("MM/DD/YYYY")(n):n.toString()}};var r=n("d3-time-format");n.n(r)},"./src/common/timeline/index.ts":function(t,e,n){"use strict";var r=n("./src/common/timeline/timeline.component.ts");n.d(e,"a",function(){return r.a})},"./src/common/timeline/timeline.component.scss":function(t,e,n){var r=n('./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/common/timeline/timeline.component.scss');t.exports="string"==typeof r?r:r.toString()},"./src/common/timeline/timeline.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("@angular/core"),i=(n.n(r),n("d3-brush")),o=(n.n(i),n("d3-scale")),s=(n.n(o),n("d3-selection")),a=(n.n(s),n("./src/utils/index.ts")),c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},u=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(){function t(t,e){this.cd=e,this.height=50,this.select=new r.EventEmitter,this.onDomainChange=new r.EventEmitter,this.initialized=!1,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)},t.prototype.update=function(){this.dims=this.getDims(),this.height=this.dims.height;var t=this.view[1]-this.height;this.xDomain=this.getXDomain(),this.xScale=this.getXScale(),this.brush&&this.updateBrush(),this.transform="translate(0 , "+t+")",this.filterId="filter"+Object(a.b)().toString(),this.filter="url(#"+this.filterId+")",this.cd.markForCheck()},t.prototype.getXDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var r=0,i=n[e].series;r<i.length;r++){var o=i[r];t.includes(o.name)||t.push(o.name)}var s=[];if("time"===this.scaleType){s=[Math.min.apply(Math,t),Math.max.apply(Math,t)]}else if("linear"===this.scaleType){t=t.map(function(t){return Number(t)});s=[Math.min.apply(Math,t),Math.max.apply(Math,t)]}else s=t;return s},t.prototype.getXScale=function(){var t;return"time"===this.scaleType?t=Object(o.scaleTime)().range([0,this.dims.width]).domain(this.xDomain):"linear"===this.scaleType?t=Object(o.scaleLinear)().range([0,this.dims.width]).domain(this.xDomain):"ordinal"===this.scaleType&&(t=Object(o.scalePoint)().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),t},t.prototype.addBrush=function(){var t=this;if(!this.brush){var e=this.height,n=this.view[0];this.brush=Object(i.brushX)().extent([[0,0],[n,e]]).on("brush end",function(){var e=(s.event.selection||t.xScale.range()).map(t.xScale.invert);t.onDomainChange.emit(e),t.cd.markForCheck()}),Object(s.select)(this.element).select(".brush").call(this.brush)}},t.prototype.updateBrush=function(){if(this.brush){var t=this.height,e=this.view[0];this.brush.extent([[0,0],[e,t]]),Object(s.select)(this.element).select(".brush").call(this.brush),Object(s.select)(this.element).select(".selection").attr("fill",void 0).attr("stroke",void 0).attr("fill-opacity",void 0),this.cd.markForCheck()}},t.prototype.getDims=function(){return{width:this.view[0],height:this.height}},c([Object(r.Input)(),u("design:type",Object)],t.prototype,"view",void 0),c([Object(r.Input)(),u("design:type",Object)],t.prototype,"state",void 0),c([Object(r.Input)(),u("design:type",Object)],t.prototype,"results",void 0),c([Object(r.Input)(),u("design:type",Object)],t.prototype,"scheme",void 0),c([Object(r.Input)(),u("design:type",Object)],t.prototype,"customColors",void 0),c([Object(r.Input)(),u("design:type",Object)],t.prototype,"legend",void 0),c([Object(r.Input)(),u("design:type",Object)],t.prototype,"miniChart",void 0),c([Object(r.Input)(),u("design:type",Object)],t.prototype,"autoScale",void 0),c([Object(r.Input)(),u("design:type",Object)],t.prototype,"scaleType",void 0),c([Object(r.Input)(),u("design:type",Number)],t.prototype,"height",void 0),c([Object(r.Output)(),u("design:type",Object)],t.prototype,"select",void 0),c([Object(r.Output)(),u("design:type",Object)],t.prototype,"onDomainChange",void 0),t=c([Object(r.Component)({selector:"g[ngx-charts-timeline]",template:'\n <svg:g\n class="timeline"\n [attr.transform]="transform">\n <svg:filter [attr.id]="filterId">\n <svg:feColorMatrix in="SourceGraphic"\n type="matrix"\n values="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0" />\n </svg:filter>\n <svg:g class="embedded-chart">\n <ng-content></ng-content>\n </svg:g>\n <svg:rect x="0"\n [attr.width]="view[0]"\n y="0"\n [attr.height]="height"\n class="brush-background"\n />\n <svg:g class="brush"></svg:g>\n </svg:g>\n ',styles:[n("./src/common/timeline/timeline.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush}),u("design:paramtypes",[r.ElementRef,r.ChangeDetectorRef])],t)}()},"./src/common/tooltip-area.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("@angular/core"),i=(n.n(r),n("@angular/animations")),o=(n.n(i),this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}),s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(t){this.renderer=t,this.anchorOpacity=0,this.anchorPos=-1,this.anchorValues=[],this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new r.EventEmitter}return t.prototype.getValues=function(t){for(var e=[],n=0,r=this.results;n<r.length;n++){var i=r[n],o=i.series.find(function(e){return e.name.toString()===t.toString()}),s=i.name;if(s instanceof Date&&(s=s.toLocaleDateString()),o){var a=o.name,c=o.value;this.showPercentage&&(c=(o.d1-o.d0).toFixed(2)+"%");var u=void 0;if("linear"===this.colors.scaleType){var l=c;o.d1&&(l=o.d1),u=this.colors.getColor(l)}else u=this.colors.getColor(i.name);e.push({value:c,name:a,series:s,min:o.min,max:o.max,color:u})}}return e},t.prototype.mouseMove=function(t){var e=t.offsetX-this.dims.xOffset,n=this.findClosestPointIndex(e),r=this.xSet[n];if(this.anchorPos=this.xScale(r),this.anchorPos=Math.max(0,this.anchorPos),this.anchorPos=Math.min(this.dims.width,this.anchorPos),this.anchorValues=this.getValues(r),this.anchorPos!==this.lastAnchorPos){var i=new MouseEvent("mouseleave",{bubbles:!1});this.renderer.invokeElementMethod(this.tooltipAnchor.nativeElement,"dispatchEvent",[i]),this.anchorOpacity=.7,this.hover.emit({value:r}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}},t.prototype.findClosestPointIndex=function(t){for(var e=0,n=this.xSet.length-1,r=Number.MAX_VALUE,i=0;e<=n;){var o=(e+n)/2|0,s=this.xScale(this.xSet[o]),a=Math.abs(s-t);if(a<r&&(r=a,i=o),s<t)e=o+1;else{if(!(s>t)){r=0,i=o;break}n=o-1}}return i},t.prototype.showTooltip=function(){var t=new MouseEvent("mouseenter",{bubbles:!1});this.renderer.invokeElementMethod(this.tooltipAnchor.nativeElement,"dispatchEvent",[t])},t.prototype.hideTooltip=function(){var t=new MouseEvent("mouseleave",{bubbles:!1});this.renderer.invokeElementMethod(this.tooltipAnchor.nativeElement,"dispatchEvent",[t]),this.anchorOpacity=0,this.lastAnchorPos=-1},t.prototype.getToolTipText=function(t){var e="";return void 0!==t.series?e+=t.series:e+="???",e+=": ",void 0!==t.value&&(e+=t.value.toLocaleString()),void 0===t.min&&void 0===t.max||(e+=" (",void 0!==t.min?(void 0===t.max&&(e+="\u2265"),e+=t.min.toLocaleString(),void 0!==t.max&&(e+=" - ")):void 0!==t.max&&(e+="\u2264"),void 0!==t.max&&(e+=t.max.toLocaleString()),e+=")"),e},o([Object(r.Input)(),s("design:type",Object)],t.prototype,"dims",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"xSet",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"xScale",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"yScale",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"results",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"colors",void 0),o([Object(r.Input)(),s("design:type",Boolean)],t.prototype,"showPercentage",void 0),o([Object(r.Input)(),s("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),o([Object(r.Input)(),s("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),o([Object(r.Output)(),s("design:type",Object)],t.prototype,"hover",void 0),o([Object(r.ViewChild)("tooltipAnchor"),s("design:type",Object)],t.prototype,"tooltipAnchor",void 0),t=o([Object(r.Component)({selector:"g[ngx-charts-tooltip-area]",template:'\n <svg:g>\n <svg:rect\n class="tooltip-area"\n [attr.x]="0"\n y="0"\n [attr.width]="dims.width"\n [attr.height]="dims.height"\n style="opacity: 0; cursor: \'auto\';"\n (mousemove)="mouseMove($event)"\n (mouseleave)="hideTooltip()"\n />\n <xhtml:ng-template #defaultTooltipTemplate let-model="model">\n <xhtml:div class="area-tooltip-container">\n <xhtml:div\n *ngFor="let tooltipItem of model"\n class="tooltip-item">\n <span\n class="tooltip-item-color"\n [style.background-color]="tooltipItem.color">\n </span>\n {{getToolTipText(tooltipItem)}}\n </xhtml:div>\n </xhtml:div>\n </xhtml:ng-template>\n <svg:rect\n #tooltipAnchor\n [@animationState]="anchorOpacity !== 0 ? \'active\' : \'inactive\'"\n class="tooltip-anchor"\n [attr.x]="anchorPos"\n y="0"\n [attr.width]="1"\n [attr.height]="dims.height"\n [style.opacity]="anchorOpacity"\n [style.pointer-events]="\'none\'"\n ngx-tooltip\n [tooltipDisabled]="tooltipDisabled"\n [tooltipPlacement]="\'right\'"\n [tooltipType]="\'tooltip\'"\n [tooltipSpacing]="15"\n [tooltipTemplate]="tooltipTemplate ? tooltipTemplate: defaultTooltipTemplate"\n [tooltipContext]="anchorValues"\n [tooltipImmediateExit]="true"\n />\n </svg:g>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush,animations:[Object(i.trigger)("animationState",[Object(i.transition)("inactive => active",[Object(i.style)({opacity:0}),Object(i.animate)(250,Object(i.style)({opacity:.7}))]),Object(i.transition)("active => inactive",[Object(i.style)({opacity:.7}),Object(i.animate)(250,Object(i.style)({opacity:0}))])])]}),s("design:paramtypes",[r.Renderer])],t)}()},"./src/common/tooltip/alignment.type.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r;!function(t){t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right"}(r||(r={}))},"./src/common/tooltip/index.ts":function(t,e,n){"use strict";var r=n("./src/common/tooltip/tooltip.module.ts");n.d(e,"f",function(){return r.a});var i=n("./src/common/tooltip/tooltip.service.ts");n.d(e,"g",function(){return i.a});var o=n("./src/common/tooltip/tooltip.component.ts");n.d(e,"d",function(){return o.a});var s=n("./src/common/tooltip/tooltip.directive.ts");n.d(e,"e",function(){return s.a});var a=n("./src/common/tooltip/style.type.ts");n.d(e,"c",function(){return a.a});var c=n("./src/common/tooltip/alignment.type.ts");n.d(e,"a",function(){return c.a});var u=n("./src/common/tooltip/show.type.ts");n.d(e,"b",function(){return u.a})},"./src/common/tooltip/injection-registery.service.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(t){this.injectionService=t,this.defaults={},this.components=new Map}return t.prototype.getByType=function(t){return void 0===t&&(t=this.type),this.components.get(t)},t.prototype.create=function(t){return this.createByType(this.type,t)},t.prototype.createByType=function(t,e){e=this.assignDefaults(e);var n=this.injectComponent(t,e);return this.register(t,n),n},t.prototype.destroy=function(t){var e=this.components.get(t.componentType);if(e){var n=e.indexOf(t);if(n>-1){e[n].destroy(),e.splice(n,1)}}},t.prototype.destroyAll=function(){this.destroyByType(this.type)},t.prototype.destroyByType=function(t){var e=this.components.get(t);if(e)for(var n=0,r=e;n<r.length;n++){var i=r[n];this.destroy(i)}},t.prototype.assignDefaults=function(t){var e=this.defaults,n=e.inputs,r=e.outputs;return t.inputs||t.outputs||(t={inputs:t}),n&&(t.inputs=Object.assign(n,t.inputs)),r&&(t.outputs=Object.assign(r,t.outputs)),t},t.prototype.injectComponent=function(t,e){return this.injectionService.appendComponent(t,e)},t.prototype.register=function(t,e){this.components.has(t)||this.components.set(t,[]);this.components.get(t).push(e)},t}()},"./src/common/tooltip/injection.service.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("@angular/core"),i=(n.n(r),this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(t,e,n){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n}return t.prototype.getRootViewContainer=function(){var t=this.applicationRef.components;if(t&&t.length)return t[0];if(this._container)return this._container;throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer.")},t.prototype.setRootViewContainer=function(t){this._container=t},t.prototype.getComponentRootNode=function(t){return t.hostView?t.hostView.rootNodes[0]:t.element.nativeElement},t.prototype.getRootViewContainerNode=function(){return this.getComponentRootNode(this.getRootViewContainer())},t.prototype.projectComponentBindings=function(t,e){if(e){if(void 0!==e.inputs)for(var n=0,r=Object.getOwnPropertyNames(e.inputs);n<r.length;n++){var i=r[n];t.instance[i]=e.inputs[i]}if(void 0!==e.outputs)for(var o=0,s=Object.getOwnPropertyNames(e.outputs);o<s.length;o++){var a=s[o];t.instance[a]=e.outputs[a]}}return t},t.prototype.appendComponent=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n=this.getRootViewContainerNode());var r=this.componentFactoryResolver.resolveComponentFactory(t).create(this.injector),i=this.applicationRef,o=this.getComponentRootNode(r);this.projectComponentBindings(r,e),i.attachView(r.hostView),r.onDestroy(function(){i.detachView(r.hostView)});return r.instance.renderer.projectNodes(n,[o]),r},t=i([Object(r.Injectable)(),o("design:paramtypes",[r.ApplicationRef,r.ComponentFactoryResolver,r.Injector])],t)}()},"./src/common/tooltip/position/index.ts":function(t,e,n){"use strict";var r=n("./src/common/tooltip/position/placement.type.ts");n.d(e,"a",function(){return r.a});var i=n("./src/common/tooltip/position/position.ts");n.d(e,"b",function(){return i.a})},"./src/common/tooltip/position/placement.type.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r;!function(t){t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right"}(r||(r={}))},"./src/common/tooltip/position/position.ts":function(t,e,n){"use strict";function r(t,e,n){return"top"===n?t.top-s:"bottom"===n?t.top+t.height-e.height+s:"center"===n?t.top+t.height/2-e.height/2:void 0}function i(t,e,n){return"left"===n?t.left-s:"right"===n?t.left+t.width-e.width+s:"center"===n?t.left+t.width/2-e.width/2:void 0}n.d(e,"a",function(){return a});var o=n("./src/common/tooltip/position/placement.type.ts"),s=7,a=function(){function t(){}return t.calculateVerticalAlignment=function(t,e,n){var i=r(t,e,n);return i+e.height>window.innerHeight&&(i=window.innerHeight-e.height),i},t.calculateVerticalCaret=function(t,e,n,i){var o;"top"===i&&(o=t.height/2-n.height/2+s),"bottom"===i&&(o=e.height-t.height/2-n.height/2-s),"center"===i&&(o=e.height/2-n.height/2);var a=r(t,e,i);return a+e.height>window.innerHeight&&(o+=a+e.height-window.innerHeight),o},t.calculateHorizontalAlignment=function(t,e,n){var r=i(t,e,n);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r},t.calculateHorizontalCaret=function(t,e,n,r){var o;"left"===r&&(o=t.width/2-n.width/2+s),"right"===r&&(o=e.width-t.width/2-n.width/2-s),"center"===r&&(o=e.width/2-n.width/2);var a=i(t,e,r);return a+e.width>window.innerWidth&&(o+=a+e.width-window.innerWidth),o},t.shouldFlip=function(t,e,n,o,s){var a=!1;if("right"===n){i(t,e,o)+e.width+s>window.innerWidth&&(a=!0)}if("left"===n){i(t,e,o)-s<0&&(a=!0)}if("top"===n&&t.top-e.height-s<0&&(a=!0),"bottom"===n){r(t,e,o)+e.height+s>window.innerHeight&&(a=!0)}return a},t.positionCaret=function(e,n,r,i,s){var a=0,c=0;return e===o.a.right?(c=-7,a=t.calculateVerticalCaret(r,n,i,s)):e===o.a.left?(c=n.width,a=t.calculateVerticalCaret(r,n,i,s)):e===o.a.top?(a=n.height,c=t.calculateHorizontalCaret(r,n,i,s)):e===o.a.bottom&&(a=-7,c=t.calculateHorizontalCaret(r,n,i,s)),{top:a,left:c}},t.positionContent=function(e,n,r,i,s){var a=0,c=0;return e===o.a.right?(c=r.left+r.width+i,a=t.calculateVerticalAlignment(r,n,s)):e===o.a.left?(c=r.left-n.width-i,a=t.calculateVerticalAlignment(r,n,s)):e===o.a.top?(a=r.top-n.height-i,c=t.calculateHorizontalAlignment(r,n,s)):e===o.a.bottom&&(a=r.top+r.height+i,c=t.calculateHorizontalAlignment(r,n,s)),{top:a,left:c}},t.determinePlacement=function(e,n,r,i,s){if(t.shouldFlip(r,n,e,s,i)){if(e===o.a.right)return o.a.left;if(e===o.a.left)return o.a.right;if(e===o.a.top)return o.a.bottom;if(e===o.a.bottom)return o.a.top}return e},t}()},"./src/common/tooltip/show.type.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r;!function(t){t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover"}(r||(r={}))},"./src/common/tooltip/style.type.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r;!function(t){t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip"}(r||(r={}))},"./src/common/tooltip/tooltip.component.scss":function(t,e,n){var r=n('./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/common/tooltip/tooltip.component.scss');t.exports="string"==typeof r?r:r.toString()},"./src/common/tooltip/tooltip.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("@angular/core"),i=(n.n(r),n("./src/utils/throttle.ts")),o=n("./src/common/tooltip/position/index.ts"),s=(n("./src/common/tooltip/style.type.ts"),n("./src/common/tooltip/alignment.type.ts"),this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}),a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(t,e){this.element=t,this.renderer=e}return Object.defineProperty(t.prototype,"cssClasses",{get:function(){var t="ngx-charts-tooltip-content";return t+=" position-"+this.placement,t+=" type-"+this.type,t+=" "+this.cssClass},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){setTimeout(this.position.bind(this))},t.prototype.position=function(){var t=this,e=this.element.nativeElement,n=this.host.nativeElement.getBoundingClientRect();if(n.height||n.width){var r=e.getBoundingClientRect();this.checkFlip(n,r),this.positionContent(e,n,r),this.showCaret&&this.positionCaret(n,r),setTimeout(function(){return t.renderer.setElementClass(e,"animate",!0)},1)}},t.prototype.positionContent=function(t,e,n){var r=o.b.positionContent(this.placement,n,e,this.spacing,this.alignment),i=r.top,s=r.left;this.renderer.setElementStyle(t,"top",i+"px"),this.renderer.setElementStyle(t,"left",s+"px")},t.prototype.positionCaret=function(t,e){var n=this.caretElm.nativeElement,r=n.getBoundingClientRect(),i=o.b.positionCaret(this.placement,e,t,r,this.alignment),s=i.top,a=i.left;this.renderer.setElementStyle(n,"top",s+"px"),this.renderer.setElementStyle(n,"left",a+"px")},t.prototype.checkFlip=function(t,e){this.placement=o.b.determinePlacement(this.placement,e,t,this.spacing,this.alignment)},t.prototype.onWindowResize=function(){this.position()},s([Object(r.Input)(),a("design:type",Object)],t.prototype,"host",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"showCaret",void 0),s([Object(r.Input)(),a("design:type",Number)],t.prototype,"type",void 0),s([Object(r.Input)(),a("design:type",Number)],t.prototype,"placement",void 0),s([Object(r.Input)(),a("design:type",Number)],t.prototype,"alignment",void 0),s([Object(r.Input)(),a("design:type",Number)],t.prototype,"spacing",void 0),s([Object(r.Input)(),a("design:type",String)],t.prototype,"cssClass",void 0),s([Object(r.Input)(),a("design:type",String)],t.prototype,"title",void 0),s([Object(r.ViewChild)("caretElm"),a("design:type",Object)],t.prototype,"caretElm",void 0),s([Object(r.HostBinding)("class"),a("design:type",String),a("design:paramtypes",[])],t.prototype,"cssClasses",null),s([Object(r.HostListener)("window:resize"),Object(i.a)(100),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",void 0)],t.prototype,"onWindowResize",null),t=s([Object(r.Component)({selector:"ngx-tooltip-content",template:'\n <div>\n <span\n #caretElm\n [hidden]="!showCaret"\n class="tooltip-caret position-{{this.placement}}">\n </span>\n <div class="tooltip-content">\n <span *ngIf="!title">\n <ng-template\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{ model: context }">\n </ng-template>\n </span>\n <span\n *ngIf="title"\n [innerHTML]="title">\n </span>\n </div>\n </div>\n ',encapsulation:r.ViewEncapsulation.None,styles:[n("./src/common/tooltip/tooltip.component.scss")]}),a("design:paramtypes",[r.ElementRef,r.Renderer])],t)}()},"./src/common/tooltip/tooltip.directive.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r=n("@angular/core"),i=(n.n(r),n("./src/common/tooltip/position/index.ts")),o=n("./src/common/tooltip/style.type.ts"),s=n("./src/common/tooltip/alignment.type.ts"),a=n("./src/common/tooltip/show.type.ts"),c=n("./src/common/tooltip/tooltip.service.ts"),u=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p=function(){function t(t,e,n){this.tooltipService=t,this.viewContainerRef=e,this.renderer=n,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=i.a.top,this.tooltipAlignment=s.a.center,this.tooltipType=o.a.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=a.a.all,this.tooltipImmediateExit=!1,this.show=new r.EventEmitter,this.hide=new r.EventEmitter}return Object.defineProperty(t.prototype,"listensForFocus",{get:function(){return this.tooltipShowEvent===a.a.all||this.tooltipShowEvent===a.a.focus},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"listensForHover",{get:function(){return this.tooltipShowEvent===a.a.all||this.tooltipShowEvent===a.a.mouseover},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.hideTooltip(!0)},t.prototype.onFocus=function(){this.listensForFocus&&this.showTooltip()},t.prototype.onBlur=function(){this.listensForFocus&&this.hideTooltip(!0)},t.prototype.onMouseEnter=function(){this.listensForHover&&this.showTooltip()},t.prototype.onMouseLeave=function(t){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component){if(this.component.instance.element.nativeElement.contains(t))return}this.hideTooltip(this.tooltipImmediateExit)}},t.prototype.onMouseClick=function(){this.listensForHover&&this.hideTooltip(!0)},t.prototype.showTooltip=function(t){var e=this;if(!this.component&&!this.tooltipDisabled){var n=t?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.tooltipService.destroyAll();var t=e.createBoundOptions();e.component=e.tooltipService.create(t),setTimeout(function(){e.component&&e.addHideListeners(e.component.instance.element.nativeElement)},10),e.show.emit(!0)},n)}},t.prototype.addHideListeners=function(t){var e=this;this.mouseEnterContentEvent=this.renderer.listen(t,"mouseenter",function(){clearTimeout(e.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(t,"mouseleave",function(){e.hideTooltip(e.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",function(n){t.contains(n.target)||e.hideTooltip()}))},t.prototype.hideTooltip=function(t){var e=this;if(void 0===t&&(t=!1),this.component){var n=function(){e.mouseLeaveContentEvent&&e.mouseLeaveContentEvent(),e.mouseEnterContentEvent&&e.mouseEnterContentEvent(),e.documentClickEvent&&e.documentClickEvent(),e.hide.emit(!0),e.tooltipService.destroy(e.component),e.component=void 0};clearTimeout(this.timeout),t?n():this.timeout=setTimeout(n,this.tooltipHideTimeout)}},t.prototype.createBoundOptions=function(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}},u([Object(r.Input)(),l("design:type",String)],t.prototype,"tooltipCssClass",void 0),u([Object(r.Input)(),l("design:type",String)],t.prototype,"tooltipTitle",void 0),u([Object(r.Input)(),l("design:type",Boolean)],t.prototype,"tooltipAppendToBody",void 0),u([Object(r.Input)(),l("design:type",Number)],t.prototype,"tooltipSpacing",void 0),u([Object(r.Input)(),l("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),u([Object(r.Input)(),l("design:type",Boolean)],t.prototype,"tooltipShowCaret",void 0),u([Object(r.Input)(),l("design:type",Number)],t.prototype,"tooltipPlacement",void 0),u([Object(r.Input)(),l("design:type",Number)],t.prototype,"tooltipAlignment",void 0),u([Object(r.Input)(),l("design:type",Number)],t.prototype,"tooltipType",void 0),u([Object(r.Input)(),l("design:type",Boolean)],t.prototype,"tooltipCloseOnClickOutside",void 0),u([Object(r.Input)(),l("design:type",Boolean)],t.prototype,"tooltipCloseOnMouseLeave",void 0),u([Object(r.Input)(),l("design:type",Number)],t.prototype,"tooltipHideTimeout",void 0),u([Object(r.Input)(),l("design:type",Number)],t.prototype,"tooltipShowTimeout",void 0),u([Object(r.Input)(),l("design:type",Object)],t.prototype,"tooltipTemplate",void 0),u([Object(r.Input)(),l("design:type",Number)],t.prototype,"tooltipShowEvent",void 0),u([Object(r.Input)(),l("design:type",Object)],t.prototype,"tooltipContext",void 0),u([Object(r.Input)(),l("design:type",Boolean)],t.prototype,"tooltipImmediateExit",void 0),u([Object(r.Output)(),l("design:type",Object)],t.prototype,"show",void 0),u([Object(r.Output)(),l("design:type",Object)],t.prototype,"hide",void 0),u([Object(r.HostListener)("focusin"),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],t.prototype,"onFocus",null),u([Object(r.HostListener)("blur"),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],t.prototype,"onBlur",null),u([Object(r.HostListener)("mouseenter"),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],t.prototype,"onMouseEnter",null),u([Object(r.HostListener)("mouseleave",["$event.target"]),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",void 0)],t.prototype,"onMouseLeave",null),u([Object(r.HostListener)("click"),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],t.prototype,"onMouseClick",null),t=u([Object(r.Directive)({selector:"[ngx-tooltip]"}),l("design:paramtypes",[c.a,r.ViewContainerRef,r.Renderer])],t)}()},"./src/common/tooltip/tooltip.module.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("@angular/core"),i=(n.n(r),n("@angular/common")),o=(n.n(i),n("./src/common/tooltip/tooltip.directive.ts")),s=n("./src/common/tooltip/tooltip.component.ts"),a=n("./src/common/tooltip/tooltip.service.ts"),c=n("./src/common/tooltip/injection.service.ts"),u=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},l=function(){function t(){}return t=u([Object(r.NgModule)({declarations:[s.a,o.a],providers:[c.a,a.a],exports:[s.a,o.a],imports:[i.CommonModule],entryComponents:[s.a]})],t)}()},"./src/common/tooltip/tooltip.service.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("@angular/core"),i=(n.n(r),n("./src/common/tooltip/injection.service.ts")),o=n("./src/common/tooltip/injection-registery.service.ts"),s=n("./src/common/tooltip/tooltip.component.ts"),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},u=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(t){function e(e){var n=t.call(this,e)||this;return n.injectionService=e,n.type=s.a,n}return a(e,t),e=c([Object(r.Injectable)(),u("design:paramtypes",[i.a])],e)}(o.a)},"./src/common/trim-label.helper.ts":function(t,e,n){"use strict";e.a=function(t,e){return void 0===e&&(e=16),"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=e?t:t.slice(0,e)+"..."}},"./src/common/view-dimensions.helper.ts":function(t,e,n){"use strict";e.a=function(t){var e=t.width,n=t.height,r=t.margins,i=t.showXAxis,o=void 0!==i&&i,s=t.showYAxis,a=void 0!==s&&s,c=t.xAxisHeight,u=void 0===c?0:c,l=t.yAxisWidth,p=void 0===l?0:l,h=t.showXLabel,d=void 0!==h&&h,f=t.showYLabel,y=void 0!==f&&f,g=t.showLegend,v=void 0!==g&&g,m=t.legendType,b=void 0===m?"ordinal":m,_=t.columns,x=void 0===_?12:_,w=r[3],O=e,S=n-r[0]-r[2];v&&(x-="ordinal"===b?2:1),O=O*x/12,O=O-r[1]-r[3],o&&(S-=5,S-=u,d)&&(S-=C=30);if(a&&(O-=5,O-=p,w+=p,w+=10,y)){var C;O-=C=30,w+=C}return O=Math.max(0,O),S=Math.max(0,S),{width:~~O,height:~~S,xOffset:~~w}}},"./src/force-directed-graph/force-directed-graph.component.scss":function(t,e,n){var r=n('./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/force-directed-graph/force-directed-graph.component.scss');t.exports="string"==typeof r?r:r.toString()},"./src/force-directed-graph/force-directed-graph.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n("@angular/core"),i=(n.n(r),n("d3-force")),o=(n.n(i),n("./src/common/charts/chart.component.ts")),s=n("./src/common/base-chart.component.ts"),a=n("./src/common/view-dimensions.helper.ts"),c=n("./src/common/color.helper.ts"),u=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.force=Object(i.forceSimulation)().force("charge",Object(i.forceManyBody)()).force("collide",Object(i.forceCollide)(5)).force("x",Object(i.forceX)()).force("y",Object(i.forceY)()),e.forceLink=Object(i.forceLink)().id(function(t){return t.value}),e.legendTitle="Legend",e.nodes=[],e.links=[],e.activeEntries=[],e.tooltipDisabled=!1,e.activate=new r.EventEmitter,e.deactivate=new r.EventEmitter,e.margin=[0,0,0,0],e.results=[],e.groupResultsBy=function(t){return t.value},e}return u(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=Object(a.a)({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="\n translate("+(this.dims.xOffset+this.dims.width/2)+", "+(this.margin[0]+this.dims.height/2)+")\n ",this.force&&this.force.nodes(this.nodes).force("link",this.forceLink.links(this.links)).alpha(.5).restart()},e.prototype.onClick=function(t){this.select.emit(t)},e.prototype.onActivate=function(t){this.activeEntries.indexOf(t)>-1||(this.activeEntries=[t].concat(this.activeEntries),this.activate.emit({value:t,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t){var e=this.activeEntries.indexOf(t);this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},e.prototype.getSeriesDomain=function(){var t=this;return this.nodes.map(function(e){return t.groupResultsBy(e)}).reduce(function(t,e){return t.includes(e)?t:t.concat([e])},[]).sort()},e.prototype.trackLinkBy=function(t,e){return e.index},e.prototype.trackNodeBy=function(t,e){return e.value},e.prototype.setColors=function(){this.colors=new c.a(this.scheme,"ordinal",this.seriesDomain,this.customColors)},e.prototype.getLegendOptions=function(){return{scaleType:"ordinal",domain:this.seriesDomain,colors:this.colors,title:this.legendTitle}},e.prototype.onDragStart=function(t,e){this.force.alphaTarget(.3).restart(),this.draggingNode=t,this.draggingStart={x:e.x-t.x,y:e.y-t.y},this.draggingNode.fx=e.x-this.draggingStart.x,this.draggingNode.fy=e.y-this.draggingStart.y},e.prototype.onDrag=function(t){this.draggingNode&&(this.draggingNode.fx=t.x-this.draggingStart.x,this.draggingNode.fy=t.y-this.draggingStart.y)},e.prototype.onDragEnd=function(t){this.draggingNode&&(this.force.alphaTarget(0),this.draggingNode.fx=void 0,this.draggingNode.fy=void 0,this.draggingNode=void 0)},l([Object(r.Input)(),p("design:type",Object)],e.prototype,"force",void 0),l([Object(r.Input)(),p("design:type",Object)],e.prototype,"forceLink",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"legend",void 0),l([Object(r.Input)(),p("design:type",String)],e.prototype,"legendTitle",void 0),l([Object(r.Input)(),p("design:type",Array)],e.prototype,"nodes",void 0),l([Object(r.Input)(),p("design:type",Array)],e.prototype,"links",void 0),l([Object(r.Input)(),p("design:type",Array)],e.prototype,"activeEntries",void 0),l([Object(r.Input)(),p("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),l([Object(r.Output)(),p("design:type",r.EventEmitter)],e.prototype,"activate",void 0),l([Object(r.Output)(),p("design:type",r.EventEmitter)],e.prototype,"deactivate",void 0),l([Object(r.ContentChild)("linkTemplate"),p("design:type",r.TemplateRef)],e.prototype,"linkTemplate",void 0),l([Object(r.ContentChild)("nodeTemplate"),p("design:type",r.TemplateRef)],e.prototype,"nodeTemplate",void 0),l([Object(r.ContentChild)("tooltipTemplate"),p("design:type",r.TemplateRef)],e.prototype,"tooltipTemplate",void 0),l([Object(r.ViewChild)(o.a,{read:r.ElementRef}),p("design:type",r.ElementRef)],e.prototype,"chart",void 0),l([Object(r.Input)(),p("design:type",Function)],e.prototype,"groupResultsBy",void 0),l([Object(r.HostListener)("document:mousemove",["$event"]),p("design:type",Function),p("design:paramtypes",[MouseEvent]),p("design:returntype",void 0)],e.prototype,"onDrag",null),l([Object(r.HostListener)("document:mouseup",["$event"]),p("design:type",Function),p("design:paramtypes",[MouseEvent]),p("design:returntype",void 0)],e.prototype,"onDragEnd",null),e=l([Object(r.Component)({selector:"ngx-charts-force-directed-graph",template:'\n <ngx-charts-chart\n [view]="[width, height]"\n [showLegend]="legend"\n [legendOptions]="legendOptions"\n [animations]="animations"\n (legendLabelClick)="onClick($event)"\n (legendLabelActivate)="onActivate($event)"\n (legendLabelDeactivate)="onDeactivate($event)">\n <svg:g [attr.transform]="transform" class="force-directed-graph chart">\n <svg:g class="links">\n <svg:g *ngFor="let link of links; trackBy:trackLinkBy">\n <ng-template *ngIf="linkTemplate"\n [ngTemplateOutlet]="linkTemplate"\n [ngTemplateOutletContext]="{ $implicit: link }">\n </ng-template>\n <svg:line *ngIf="!linkTemplate"\n strokeWidth="1" class="edge"\n [attr.x1]="link.source.x"\n [attr.y1]="link.source.y"\n [attr.x2]="link.target.x"\n [attr.y2]="link.target.y"\n />\n </svg:g>\n </svg:g>\n <svg:g class="nodes">\n <svg:g *ngFor="let node of nodes; trackBy:trackNodeBy"\n [attr.transform]="\'translate(\' + node.x + \',\' + node.y + \')\'"\n [attr.fill]="colors.getColor(groupResultsBy(node))"\n [attr.stroke]="colors.getColor(groupResultsBy(node))"\n (mousedown)="onDragStart(node, $event)"\n (click)="onClick({name: node.value})"\n ngx-tooltip\n [tooltipDisabled]="tooltipDisabled"\n [tooltipPlacement]="\'top\'"\n [tooltipType]="\'tooltip\'"\n [tooltipTitle]="tooltipTemplate ? undefined : node.value"\n [tooltipTemplate]="tooltipTemplate"\n [tooltipContext]="node">\n <ng-template *ngIf="nodeTemplate"\n [ngTemplateOutlet]="nodeTemplate"\n [ngTemplateOutletContext]="{ $implicit: node }">\n </ng-template>\n <svg:circle *ngIf="!nodeTemplate" r="5" />\n </svg:g>\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ',styles:[n("./src/common/base-chart.component.scss"),n("./src/force-directed-graph/force-directed-graph.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush})],e)}(s.a)},"./src/force-directed-graph/force-directed-graph.module.ts":function(t,e,n){"use strict";n.d(e,"b",function(){return a});var r=n("@angular/core"),i=(n.n(r),n("./src/force-directed-graph/force-directed-graph.component.ts")),o=n("./src/common/chart-common.module.ts");n.d(e,"a",function(){return i.a});var s=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},a=function(){function t(){}return t=s([Object(r.NgModule)({imports:[o.a],declarations:[i.a],exports:[i.a]})],t)}()},"./src/force-directed-graph/index.ts":function(t,e,n){"use strict";var r=n("./src/force-directed-graph/force-directed-graph.module.ts");n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b});n("./src/force-directed-graph/force-directed-graph.component.ts")},"./src/gauge/gauge-arc.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("@angular/core"),i=(n.n(r),n("./src/common/label.helper.ts")),o=n("./src/common/color.helper.ts"),s=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(){this.isActive=!1,this.tooltipDisabled=!1,this.animations=!0,this.select=new r.EventEmitter,this.activate=new r.EventEmitter,this.deactivate=new r.EventEmitter}return t.prototype.tooltipText=function(t){var e,n=Object(i.a)(t.data.name);return e=this.valueFormatting?this.valueFormatting(t.data.value):Object(i.a)(t.data.value),'\n <span class="tooltip-label">'+n+'</span>\n <span class="tooltip-val">'+e+"</span>\n "},s([Object(r.Input)(),a("design:type",Object)],t.prototype,"backgroundArc",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"valueArc",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"cornerRadius",void 0),s([Object(r.Input)(),a("design:type",o.a)],t.prototype,"colors",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"isActive",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),s([Object(r.Input)(),a("design:type",Function)],t.prototype,"valueFormatting",void 0),s([Object(r.Input)(),a("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"animations",void 0),s([Object(r.Output)(),a("design:type",Object)],t.prototype,"select",void 0),s([Object(r.Output)(),a("design:type",Object)],t.prototype,"activate",void 0),s([Object(r.Output)(),a("design:type",Object)],t.prototype,"deactivate",void 0),t=s([Object(r.Component)({selector:"g[ngx-charts-gauge-arc]",template:'\n <svg:g ngx-charts-pie-arc\n class="background-arc"\n [startAngle]="0"\n [endAngle]="backgroundArc.endAngle"\n [innerRadius]="backgroundArc.innerRadius"\n [outerRadius]="backgroundArc.outerRadius"\n [cornerRadius]="cornerRadius"\n [data]="backgroundArc.data"\n [animate]="false"\n [pointerEvents]="false">\n </svg:g>\n <svg:g ngx-charts-pie-arc\n [startAngle]="0"\n [endAngle]="valueArc.endAngle"\n [innerRadius]="valueArc.innerRadius"\n [outerRadius]="valueArc.outerRadius"\n [cornerRadius]="cornerRadius"\n [fill]="colors.getColor(valueArc.data.name)"\n [data]="valueArc.data"\n [animate]="animations"\n [isActive]="isActive"\n (select)="select.emit($event)"\n (activate)="activate.emit($event)"\n (deactivate)="deactivate.emit($event)"\n ngx-tooltip\n [tooltipDisabled]="tooltipDisabled"\n [tooltipPlacement]="\'top\'"\n [tooltipType]="\'tooltip\'"\n [tooltipTitle]="tooltipTemplate ? undefined : tooltipText(valueArc)"\n [tooltipTemplate]="tooltipTemplate"\n [tooltipContext]="valueArc.data">\n </svg:g>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush})],t)}()},"./src/gauge/gauge-axis.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("@angular/core"),i=(n.n(r),n("d3-shape")),o=(n.n(i),this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}),s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(){this.rotate=""}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.rotationAngle=-90+this.startAngle,this.rotate="rotate("+this.rotationAngle+")",this.ticks=this.getTicks()},t.prototype.getTicks=function(){for(var t=this.angleSpan/this.bigSegments,e=t/this.smallSegments,n={big:[],small:[]},r=this.radius+10,i=r+20+10,o=0;o<=this.bigSegments;o++){var s=o*t,a=s*Math.PI/180,c=this.getTextAnchor(s),u=!1;if(0===o&&360===this.angleSpan&&(u=!0),!u){var l=Number.parseFloat(this.valueScale.invert(s).toString()).toLocaleString();this.tickFormatting&&(l=this.tickFormatting(l)),n.big.push({line:this.getTickPath(r,20,a),textAnchor:c,text:l,textTransform:"\n translate("+i*Math.cos(a)+", "+i*Math.sin(a)+") rotate("+-this.rotationAngle+")\n "})}if(o!==this.bigSegments)for(var p=1;p<=this.smallSegments;p++){var h=(s+p*e)*Math.PI/180;n.small.push({line:this.getTickPath(r,10,h)})}}return n},t.prototype.getTextAnchor=function(t){var e="middle";return(t=(this.startAngle+t)%360)>45&&t<=135?e="start":t>225&&t<=315&&(e="end"),e},t.prototype.getTickPath=function(t,e,n){var r=t*Math.sin(n),o=(t+e)*Math.sin(n),s=[{x:t*Math.cos(n),y:r},{x:(t+e)*Math.cos(n),y:o}];return Object(i.line)().x(function(t){return t.x}).y(function(t){return t.y})(s)},o([Object(r.Input)(),s("design:type",Object)],t.prototype,"bigSegments",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"smallSegments",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"min",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"max",void 0),o([Object(r.Input)(),s("design:type",Number)],t.prototype,"angleSpan",void 0),o([Object(r.Input)(),s("design:type",Number)],t.prototype,"startAngle",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"radius",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"valueScale",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"tickFormatting",void 0),t=o([Object(r.Component)({selector:"g[ngx-charts-gauge-axis]",template:'\n <svg:g [attr.transform]="rotate">\n <svg:g *ngFor="let tick of ticks.big"\n class="gauge-tick gauge-tick-large">\n <svg:path [attr.d]="tick.line" />\n </svg:g>\n <svg:g *ngFor="let tick of ticks.big"\n class="gauge-tick gauge-tick-large">\n <svg:text\n [style.textAnchor]="tick.textAnchor"\n [attr.transform]="tick.textTransform"\n alignment-baseline="central">\n {{tick.text}}\n </svg:text>\n </svg:g>\n <svg:g *ngFor="let tick of ticks.small"\n class="gauge-tick gauge-tick-small">\n <svg:path [attr.d]="tick.line" />\n </svg:g>\n </svg:g>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush})],t)}()},"./src/gauge/gauge.component.scss":function(t,e,n){var r=n('./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/gauge/gauge.component.scss');t.exports="string"==typeof r?r:r.toString()},"./src/gauge/gauge.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r=n("@angular/core"),i=(n.n(r),n("d3-scale")),o=(n.n(i),n("./src/common/base-chart.component.ts")),s=n("./src/common/view-dimensions.helper.ts"),a=n("./src/common/color.helper.ts"),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legend=!1,e.legendTitle="Legend",e.min=0,e.max=100,e.bigSegments=10,e.smallSegments=5,e.showAxis=!0,e.startAngle=-120,e.angleSpan=240,e.activeEntries=[],e.tooltipDisabled=!1,e.activate=new r.EventEmitter,e.deactivate=new r.EventEmitter,e.resizeScale=1,e.rotation="",e.textTransform="scale(1, 1)",e.cornerRadius=10,e}return c(e,t),e.prototype.ngAfterViewInit=function(){var e=this;t.prototype.ngAfterViewInit.call(this),setTimeout(function(){return e.scaleText()})},e.prototype.update=function(){var e=this;t.prototype.update.call(this),this.showAxis?this.margin||(this.margin=[60,100,60,100]):this.margin||(this.margin=[10,20,10,20]),this.startAngle<0&&(this.startAngle=this.startAngle%360+360),this.angleSpan=Math.min(this.angleSpan,360),this.dims=Object(s.a)({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend}),this.domain=this.getDomain(),this.valueDomain=this.getValueDomain(),this.valueScale=this.getValueScale(),this.displayValue=this.getDisplayValue(),this.outerRadius=Math.min(this.dims.width,this.dims.height)/2,this.arcs=this.getArcs(),this.setColors(),this.legendOptions=this.getLegendOptions();var n=this.margin[3]+this.dims.width/2,r=this.margin[0]+this.dims.height/2;this.transform="translate("+n+", "+r+")",this.rotation="rotate("+this.startAngle+")",setTimeout(function(){return e.scaleText()},50)},e.prototype.getArcs=function(){var t=[],e=.7*this.outerRadius,n=Math.min(e/this.results.length,10),r=.7*n;this.textRadius=this.outerRadius-this.results.length*n,this.cornerRadius=Math.floor(r/2);for(var i=0,o=0,s=this.results;o<s.length;o++){var a=s[o],c=this.outerRadius-i*n,u=c-r,l={backgroundArc:{endAngle:this.angleSpan*Math.PI/180,innerRadius:u,outerRadius:c,data:{value:this.max,name:a.name}},valueArc:{endAngle:Math.min(this.valueScale(a.value),this.angleSpan)*Math.PI/180,innerRadius:u,outerRadius:c,data:{value:a.value,name:a.name}}};t.push(l),i++}return t},e.prototype.getDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.getValueDomain=function(){var t=this.results.map(function(t){return t.value}),e=Math.min.apply(Math,t),n=Math.max.apply(Math,t);return void 0!==this.min?this.min=Math.min(this.min,e):this.min=e,void 0!==this.max?this.max=Math.max(this.max,n):this.max=n,[this.min,this.max]},e.prototype.getValueScale=function(){return Object(i.scaleLinear)().range([0,this.angleSpan]).nice().domain(this.valueDomain)},e.prototype.getDisplayValue=function(){var t=this.results.map(function(t){return t.value}).reduce(function(t,e){return t+e},0);return this.textValue&&0!==this.textValue.length?this.textValue.toLocaleString():this.valueFormatting?this.valueFormatting(t):t.toLocaleString()},e.prototype.scaleText=function(t){var e=this;void 0===t&&(t=!0);var n=this.textEl.nativeElement.getBoundingClientRect().width,r=this.resizeScale;if(0===n)this.resizeScale=1;else{var i=this.textRadius;this.resizeScale=Math.floor(i/(n/this.resizeScale)*100)/100}this.resizeScale!==r&&(this.textTransform="scale("+this.resizeScale+", "+this.resizeScale+")",this.cd.markForCheck(),t&&setTimeout(function(){return e.scaleText(!1)},50))},e.prototype.onClick=function(t){this.select.emit(t)},e.prototype.getLegendOptions=function(){return{scaleType:"ordinal",colors:this.colors,domain:this.domain,title:this.legendTitle}},e.prototype.setColors=function(){this.colors=new a.a(this.scheme,"ordinal",this.domain,this.customColors)},e.prototype.onActivate=function(t){this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value})>-1||(this.activeEntries=[t].concat(this.activeEntries),this.activate.emit({value:t,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t){var e=this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value});this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},e.prototype.isActive=function(t){if(!this.activeEntries)return!1;return void 0!==this.activeEntries.find(function(e){return t.name===e.name&&t.series===e.series})},e.prototype.trackBy=function(t,e){return e.valueArc.data.name},u([Object(r.Input)(),l("design:type",Object)],e.prototype,"legend",void 0),u([Object(r.Input)(),l("design:type",String)],e.prototype,"legendTitle",void 0),u([Object(r.Input)(),l("design:type",Number)],e.prototype,"min",void 0),u([Object(r.Input)(),l("design:type",Number)],e.prototype,"max",void 0),u([Object(r.Input)(),l("design:type",String)],e.prototype,"textValue",void 0),u([Object(r.Input)(),l("design:type",String)],e.prototype,"units",void 0),u([Object(r.Input)(),l("design:type",Number)],e.prototype,"bigSegments",void 0),u([Object(r.Input)(),l("design:type",Number)],e.prototype,"smallSegments",void 0),u([Object(r.Input)(),l("design:type",Array)],e.prototype,"results",void 0),u([Object(r.Input)(),l("design:type",Boolean)],e.prototype,"showAxis",void 0),u([Object(r.Input)(),l("design:type",Number)],e.prototype,"startAngle",void 0),u([Object(r.Input)(),l("design:type",Number)],e.prototype,"angleSpan",void 0),u([Object(r.Input)(),l("design:type",Array)],e.prototype,"activeEntries",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"axisTickFormatting",void 0),u([Object(r.Input)(),l("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),u([Object(r.Input)(),l("design:type",Function)],e.prototype,"valueFormatting",void 0),u([Object(r.Input)(),l("design:type",Array)],e.prototype,"margin",void 0),u([Object(r.Output)(),l("design:type",r.EventEmitter)],e.prototype,"activate",void 0),u([Object(r.Output)(),l("design:type",r.EventEmitter)],e.prototype,"deactivate",void 0),u([Object(r.ContentChild)("tooltipTemplate"),l("design:type",r.TemplateRef)],e.prototype,"tooltipTemplate",void 0),u([Object(r.ViewChild)("textEl"),l("design:type",r.ElementRef)],e.prototype,"textEl",void 0),e=u([Object(r.Component)({selector:"ngx-charts-gauge",template:'\n <ngx-charts-chart\n [view]="[width, height]"\n [showLegend]="legend"\n [legendOptions]="legendOptions"\n [activeEntries]="activeEntries"\n [animations]="animations"\n (legendLabelClick)="onClick($event)"\n (legendLabelActivate)="onActivate($event)"\n (legendLabelDeactivate)="onDeactivate($event)">\n <svg:g [attr.transform]="transform" class="gauge chart">\n <svg:g *ngFor="let arc of arcs; trackBy:trackBy" [attr.transform]="rotation">\n <svg:g ngx-charts-gauge-arc\n [backgroundArc]="arc.backgroundArc"\n [valueArc]="arc.valueArc"\n [cornerRadius]="cornerRadius"\n [colors]="colors"\n [isActive]="isActive(arc.valueArc.data)"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="tooltipTemplate"\n [valueFormatting]="valueFormatting"\n [animations]="animations"\n (select)="onClick($event)"\n (activate)="onActivate($event)"\n (deactivate)="onDeactivate($event)">\n </svg:g>\n </svg:g>\n\n <svg:g ngx-charts-gauge-axis\n *ngIf="showAxis"\n [bigSegments]="bigSegments"\n [smallSegments]="smallSegments"\n [min]="min"\n [max]="max"\n [radius]="outerRadius"\n [angleSpan]="angleSpan"\n [valueScale]="valueScale"\n [startAngle]="startAngle"\n [tickFormatting]="axisTickFormatting">\n </svg:g>\n\n <svg:text #textEl\n [style.textAnchor]="\'middle\'"\n [attr.transform]="textTransform"\n alignment-baseline="central">\n <tspan x="0" dy="0">{{displayValue}}</tspan>\n <tspan x="0" dy="1.2em">{{units}}</tspan>\n </svg:text>\n\n </svg:g>\n </ngx-charts-chart>\n ',styles:[n("./src/common/base-chart.component.scss"),n("./src/gauge/gauge.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush})],e)}(o.a)},"./src/gauge/gauge.module.ts":function(t,e,n){"use strict";n.d(e,"d",function(){return h});var r=n("@angular/core"),i=(n.n(r),n("./src/common/chart-common.module.ts")),o=n("./src/gauge/linear-gauge.component.ts"),s=n("./src/gauge/gauge.component.ts"),a=n("./src/gauge/gauge-arc.component.ts"),c=n("./src/gauge/gauge-axis.component.ts"),u=n("./src/pie-chart/pie-chart.module.ts"),l=n("./src/bar-chart/bar-chart.module.ts");n.d(e,"c",function(){return s.a}),n.d(e,"a",function(){return a.a}),n.d(e,"b",function(){return c.a}),n.d(e,"e",function(){return o.a});var p=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},h=function(){function t(){}return t=p([Object(r.NgModule)({imports:[i.a,u.d,l.a],declarations:[o.a,s.a,a.a,c.a],exports:[o.a,s.a,a.a,c.a]})],t)}()},"./src/gauge/index.ts":function(t,e,n){"use strict";var r=n("./src/gauge/gauge.module.ts");n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b}),n.d(e,"c",function(){return r.c}),n.d(e,"d",function(){return r.d}),n.d(e,"e",function(){return r.e});n("./src/gauge/gauge.component.ts")},"./src/gauge/linear-gauge.component.scss":function(t,e,n){var r=n('./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/gauge/linear-gauge.component.scss');t.exports="string"==typeof r?r:r.toString()},"./src/gauge/linear-gauge.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r=n("@angular/core"),i=(n.n(r),n("d3-scale")),o=(n.n(i),n("./src/common/base-chart.component.ts")),s=n("./src/common/view-dimensions.helper.ts"),a=n("./src/common/color.helper.ts"),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.min=0,e.max=100,e.value=0,e.margin=[10,20,10,20],e.valueResizeScale=1,e.unitsResizeScale=1,e.valueTextTransform="",e.valueTranslate="",e.unitsTextTransform="",e.unitsTranslate="",e}return c(e,t),e.prototype.ngAfterViewInit=function(){var e=this;t.prototype.ngAfterViewInit.call(this),setTimeout(function(){e.scaleText("value"),e.scaleText("units")})},e.prototype.update=function(){var e=this;t.prototype.update.call(this),this.hasPreviousValue=void 0!==this.previousValue,this.max=Math.max(this.max,this.value),this.min=Math.min(this.min,this.value),this.hasPreviousValue&&(this.max=Math.max(this.max,this.previousValue),this.min=Math.min(this.min,this.previousValue)),this.dims=Object(s.a)({width:this.width,height:this.height,margins:this.margin}),this.valueDomain=this.getValueDomain(),this.valueScale=this.getValueScale(),this.displayValue=this.getDisplayValue(),this.setColors();var n=this.margin[3]+this.dims.width/2,r=this.margin[0]+this.dims.height/2;this.transform="translate("+n+", "+r+")",this.transformLine="translate("+(this.margin[3]+this.valueScale(this.previousValue))+", "+r+")",this.valueTranslate="translate(0, -15)",this.unitsTranslate="translate(0, 15)",setTimeout(function(){return e.scaleText("value")},50),setTimeout(function(){return e.scaleText("units")},50)},e.prototype.getValueDomain=function(){return[this.min,this.max]},e.prototype.getValueScale=function(){return Object(i.scaleLinear)().range([0,this.dims.width]).domain(this.valueDomain)},e.prototype.getDisplayValue=function(){return this.valueFormatting?this.valueFormatting(this.value):this.value.toLocaleString()},e.prototype.scaleText=function(t,e){var n=this;void 0===e&&(e=!0);var r,i;"value"===t?(r=this.valueTextEl,i=this.valueResizeScale):(r=this.unitsTextEl,i=this.unitsResizeScale);var o=r.nativeElement.getBoundingClientRect(),s=o.width,a=o.height;if(0!==s&&0!==a){var c=i,u=this.dims.width,l=Math.max(this.dims.height/2-15,0),p=Math.floor(u/(s/i)*100)/100,h=Math.floor(l/(a/i)*100)/100;(i=Math.min(h,p))!==c&&("value"===t?(this.valueResizeScale=i,this.valueTextTransform="scale("+i+", "+i+")"):(this.unitsResizeScale=i,this.unitsTextTransform="scale("+i+", "+i+")"),this.cd.markForCheck(),e&&setTimeout(function(){n.scaleText(t,!1)},50))}},e.prototype.onClick=function(){this.select.emit({name:"Value",value:this.value})},e.prototype.setColors=function(){this.colors=new a.a(this.scheme,"ordinal",[this.value],this.customColors)},u([Object(r.Input)(),l("design:type",Number)],e.prototype,"min",void 0),u([Object(r.Input)(),l("design:type",Number)],e.prototype,"max",void 0),u([Object(r.Input)(),l("design:type",Number)],e.prototype,"value",void 0),u([Object(r.Input)(),l("design:type",String)],e.prototype,"units",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"previousValue",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"valueFormatting",void 0),u([Object(r.ViewChild)("valueTextEl"),l("design:type",r.ElementRef)],e.prototype,"valueTextEl",void 0),u([Object(r.ViewChild)("unitsTextEl"),l("design:type",r.ElementRef)],e.prototype,"unitsTextEl",void 0),e=u([Object(r.Component)({selector:"ngx-charts-linear-gauge",template:'\n <ngx-charts-chart\n [view]="[width, height]"\n [showLegend]="false"\n [animations]="animations"\n (click)="onClick()">\n <svg:g class="linear-gauge chart">\n <svg:g ngx-charts-bar\n class="background-bar"\n [width]="dims.width"\n [height]="3"\n [x]="margin[3]"\n [y]="dims.height / 2 + margin[0] - 2"\n [data]="{}"\n [orientation]="\'horizontal\'"\n [roundEdges]="true"\n [animations]="animations">\n </svg:g>\n <svg:g ngx-charts-bar\n [width]="valueScale(value)"\n [height]="3"\n [x]="margin[3]"\n [y]="dims.height / 2 + margin[0] - 2"\n [fill]="colors.getColor(units)"\n [data]="{}"\n [orientation]="\'horizontal\'"\n [roundEdges]="true"\n [animations]="animations">\n </svg:g>\n\n <svg:line\n *ngIf="hasPreviousValue"\n [attr.transform]="transformLine"\n x1="0"\n y1="5"\n x2="0"\n y2="15"\n [attr.stroke]="colors.getColor(units)"\n />\n\n <svg:line\n *ngIf="hasPreviousValue"\n [attr.transform]="transformLine"\n x1="0"\n y1="-5"\n x2="0"\n y2="-15"\n [attr.stroke]="colors.getColor(units)"\n />\n\n <svg:g [attr.transform]="transform">\n <svg:g [attr.transform]="valueTranslate">\n <svg:text #valueTextEl\n class="value"\n [style.textAnchor]="\'middle\'"\n [attr.transform]="valueTextTransform"\n alignment-baseline="after-edge">\n {{displayValue}}\n </svg:text>\n </svg:g>\n\n <svg:g [attr.transform]="unitsTranslate">\n <svg:text #unitsTextEl\n class="units"\n [style.textAnchor]="\'middle\'"\n [attr.transform]="unitsTextTransform"\n alignment-baseline="before-edge">\n {{units}}\n </svg:text>\n </svg:g>\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ',styles:[n("./src/common/base-chart.component.scss"),n("./src/gauge/linear-gauge.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush})],e)}(o.a)},"./src/heat-map/heat-map-cell-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("@angular/core"),i=(n.n(r),n("./src/common/label.helper.ts")),o=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(){this.tooltipDisabled=!1,this.animations=!0,this.select=new r.EventEmitter}return t.prototype.ngOnInit=function(){this.tooltipText||(this.tooltipText=this.getTooltipText)},t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.cells=this.getCells()},t.prototype.getCells=function(){var t=this,e=[];return this.data.map(function(n){n.series.map(function(r){var o=r.value;e.push({row:n,cell:r,x:t.xScale(n.name),y:t.yScale(r.name),width:t.xScale.bandwidth(),height:t.yScale.bandwidth(),fill:t.colors.getColor(o),data:o,label:Object(i.a)(r.name),series:n.name})})}),e},t.prototype.getTooltipText=function(t){var e=t.label,n=t.data;return'\n <span class="tooltip-label">'+t.series+" \u2022 "+e+'</span>\n <span class="tooltip-val">'+n.toLocaleString()+"</span>\n "},t.prototype.trackBy=function(t,e){return e.tooltipText},t.prototype.onClick=function(t,e,n){this.select.emit({name:e,value:t,series:n})},o([Object(r.Input)(),s("design:type",Object)],t.prototype,"data",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"colors",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"xScale",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"yScale",void 0),o([Object(r.Input)(),s("design:type",Boolean)],t.prototype,"gradient",void 0),o([Object(r.Input)(),s("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"tooltipText",void 0),o([Object(r.Input)(),s("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),o([Object(r.Input)(),s("design:type",Boolean)],t.prototype,"animations",void 0),o([Object(r.Output)(),s("design:type",Object)],t.prototype,"select",void 0),t=o([Object(r.Component)({selector:"g[ngx-charts-heat-map-cell-series]",template:'\n <svg:g\n ngx-charts-heat-map-cell\n *ngFor="let c of cells; trackBy:trackBy"\n [x]="c.x"\n [y]="c.y"\n [width]="c.width"\n [height]="c.height"\n [fill]="c.fill"\n [data]="c.data"\n (select)="onClick($event, c.label, c.series)"\n [gradient]="gradient"\n [animations]="animations"\n ngx-tooltip\n [tooltipDisabled]="tooltipDisabled"\n [tooltipPlacement]="\'top\'"\n [tooltipType]="\'tooltip\'"\n [tooltipTitle]="tooltipTemplate ? undefined : tooltipText(c)"\n [tooltipTemplate]="tooltipTemplate"\n [tooltipContext]="{series: c.series, name: c.label, value: c.data}">\n </svg:g>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush})],t)}()},"./src/heat-map/heat-map-cell.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("@angular/core"),i=(n.n(r),n("d3-selection")),o=(n.n(i),n("./src/utils/id.ts")),s=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(t){this.gradient=!1,this.animations=!0,this.select=new r.EventEmitter,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.transform="translate("+this.x+" , "+this.y+")",this.startOpacity=.3,this.gradientId="grad"+Object(o.a)().toString(),this.gradientUrl="url(#"+this.gradientId+")",this.gradientStops=this.getGradientStops(),this.animations&&this.loadAnimation()},t.prototype.getGradientStops=function(){return[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:1}]},t.prototype.loadAnimation=function(){Object(i.select)(this.element).select(".cell").attr("opacity",0),this.animateToCurrentForm()},t.prototype.animateToCurrentForm=function(){Object(i.select)(this.element).select(".cell").transition().duration(750).attr("opacity",1)},t.prototype.onClick=function(){this.select.emit(this.data)},s([Object(r.Input)(),a("design:type",Object)],t.prototype,"fill",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"x",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"y",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"width",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"height",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"data",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"label",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"gradient",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"animations",void 0),s([Object(r.Output)(),a("design:type",Object)],t.prototype,"select",void 0),t=s([Object(r.Component)({selector:"g[ngx-charts-heat-map-cell]",template:'\n <svg:g [attr.transform]="transform" class="cell">\n <defs *ngIf="gradient">\n <svg:g ngx-charts-svg-linear-gradient\n orientation="vertical"\n [name]="gradientId"\n [stops]="gradientStops"\n />\n </defs>\n <svg:rect\n [attr.fill]="gradient ? gradientUrl : fill"\n rx="3"\n [attr.width]="width"\n [attr.height]="height"\n class="cell"\n style="cursor: pointer"\n (click)="onClick()"\n />\n </svg:g>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush}),a("design:paramtypes",[r.ElementRef])],t)}()},"./src/heat-map/heat-map.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r=n("@angular/core"),i=(n.n(r),n("d3-scale")),o=(n.n(i),n("./src/common/base-chart.component.ts")),s=n("./src/common/view-dimensions.helper.ts"),a=n("./src/common/color.helper.ts"),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legendTitle="Legend",e.innerPadding=8,e.tooltipDisabled=!1,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e.scaleType="linear",e}return c(e,t),e.prototype.update=function(){if(t.prototype.update.call(this),this.formatDates(),this.xDomain=this.getXDomain(),this.yDomain=this.getYDomain(),this.valueDomain=this.getValueDomain(),this.scaleType=this.getScaleType(this.valueDomain),this.dims=Object(s.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.scaleType}),"linear"===this.scaleType){var e=Math.min.apply(Math,[0].concat(this.valueDomain)),n=Math.max.apply(Math,this.valueDomain);this.valueDomain=[e,n]}this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")",this.rects=this.getRects()},e.prototype.getXDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++){var r=n[e];t.includes(r.name)||t.push(r.name)}return t},e.prototype.getYDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var r=0,i=n[e].series;r<i.length;r++){var o=i[r];t.includes(o.name)||t.push(o.name)}return t},e.prototype.getValueDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var r=0,i=n[e].series;r<i.length;r++){var o=i[r];t.includes(o.value)||t.push(o.value)}return t},e.prototype.getDimension=function(t,e,n,r){return void 0===e&&(e=0),"string"==typeof t&&(t=t.replace("[","").replace("]","").replace("px","").replace("'","")).includes(",")&&(t=t.split(",")),Array.isArray(t)&&"number"==typeof e?this.getDimension(t[e],null,n,r):"string"==typeof t&&t.includes("%")?+t.replace("%","")/100:n/(r/+t+1)},e.prototype.getXScale=function(){var t=this.getDimension(this.innerPadding,0,this.xDomain.length,this.dims.width);return Object(i.scaleBand)().rangeRound([0,this.dims.width]).domain(this.xDomain).paddingInner(t)},e.prototype.getYScale=function(){var t=this.getDimension(this.innerPadding,1,this.yDomain.length,this.dims.height);return Object(i.scaleBand)().rangeRound([this.dims.height,0]).domain(this.yDomain).paddingInner(t)},e.prototype.getRects=function(){var t=this,e=[];return this.xDomain.map(function(n){t.yDomain.map(function(r){e.push({x:t.xScale(n),y:t.yScale(r),rx:3,width:t.xScale.bandwidth(),height:t.yScale.bandwidth(),fill:"rgba(200,200,200,0.03)"})})}),e},e.prototype.onClick=function(t){this.select.emit(t)},e.prototype.getScaleType=function(t){for(var e=!0,n=0,r=t;n<r.length;n++){"number"!=typeof r[n]&&(e=!1)}return e?"linear":"ordinal"},e.prototype.setColors=function(){this.colors=new a.a(this.scheme,this.scaleType,this.valueDomain)},e.prototype.getLegendOptions=function(){return{scaleType:this.scaleType,domain:this.valueDomain,colors:"ordinal"===this.scaleType?this.colors:this.colors.scale,title:"ordinal"===this.scaleType?this.legendTitle:void 0}},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},u([Object(r.Input)(),l("design:type",Object)],e.prototype,"legend",void 0),u([Object(r.Input)(),l("design:type",String)],e.prototype,"legendTitle",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"xAxis",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"yAxis",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"showXAxisLabel",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"showYAxisLabel",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"xAxisLabel",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"yAxisLabel",void 0),u([Object(r.Input)(),l("design:type",Boolean)],e.prototype,"gradient",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"innerPadding",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),u([Object(r.Input)(),l("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"tooltipText",void 0),u([Object(r.ContentChild)("tooltipTemplate"),l("design:type",r.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=u([Object(r.Component)({selector:"ngx-charts-heat-map",template:'\n <ngx-charts-chart\n [view]="[width, height]"\n [showLegend]="legend"\n [animations]="animations"\n [legendOptions]="legendOptions"\n (legendLabelClick)="onClick($event)">\n <svg:g [attr.transform]="transform" class="heat-map chart">\n <svg:g ngx-charts-x-axis\n *ngIf="xAxis"\n [xScale]="xScale"\n [dims]="dims"\n [showLabel]="showXAxisLabel"\n [labelText]="xAxisLabel"\n [tickFormatting]="xAxisTickFormatting"\n (dimensionsChanged)="updateXAxisHeight($event)">\n </svg:g>\n <svg:g ngx-charts-y-axis\n *ngIf="yAxis"\n [yScale]="yScale"\n [dims]="dims"\n [showLabel]="showYAxisLabel"\n [labelText]="yAxisLabel"\n [tickFormatting]="yAxisTickFormatting"\n (dimensionsChanged)="updateYAxisWidth($event)">\n </svg:g>\n <svg:rect *ngFor="let rect of rects"\n [attr.x]="rect.x"\n [attr.y]="rect.y"\n [attr.rx]="rect.rx"\n [attr.width]="rect.width"\n [attr.height]="rect.height"\n [attr.fill]="rect.fill"\n />\n <svg:g ngx-charts-heat-map-cell-series\n [xScale]="xScale"\n [yScale]="yScale"\n [colors]="colors"\n [data]="results"\n [gradient]="gradient"\n [animations]="animations"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="tooltipTemplate"\n [tooltipText]="tooltipText"\n (select)="onClick($event)"\n />\n </svg:g>\n </ngx-charts-chart>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush,styles:[n("./src/common/base-chart.component.scss")],encapsulation:r.ViewEncapsulation.None})],e)}(o.a)},"./src/heat-map/heat-map.module.ts":function(t,e,n){"use strict";n.d(e,"d",function(){return u});var r=n("@angular/core"),i=(n.n(r),n("./src/common/chart-common.module.ts")),o=n("./src/heat-map/heat-map-cell.component.ts"),s=n("./src/heat-map/heat-map-cell-series.component.ts"),a=n("./src/heat-map/heat-map.component.ts");n.d(e,"b",function(){return o.a}),n.d(e,"a",function(){return s.a}),n.d(e,"c",function(){return a.a});var c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},u=function(){function t(){}return t=c([Object(r.NgModule)({imports:[i.a],declarations:[o.a,s.a,a.a],exports:[o.a,s.a,a.a]})],t)}()},"./src/heat-map/index.ts":function(t,e,n){"use strict";var r=n("./src/heat-map/heat-map.module.ts");n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b}),n.d(e,"c",function(){return r.c}),n.d(e,"d",function(){return r.d});n("./src/heat-map/heat-map.component.ts"),n("./src/heat-map/heat-map-cell.component.ts"),n("./src/heat-map/heat-map-cell-series.component.ts")},"./src/index.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./src/ngx-charts.module.ts");n.d(e,"NgxChartsModule",function(){return r.a});var i=n("./src/common/index.ts");n.d(e,"ChartCommonModule",function(){return i.e}),n.d(e,"ColorHelper",function(){return i.i}),n.d(e,"ChartComponent",function(){return i.f}),n.d(e,"AreaComponent",function(){return i.c}),n.d(e,"BaseChartComponent",function(){return i.d}),n.d(e,"CircleComponent",function(){return i.g}),n.d(e,"CircleSeriesComponent",function(){return i.h}),n.d(e,"gridSize",function(){return i.E}),n.d(e,"gridLayout",function(){return i.D}),n.d(e,"GridPanelComponent",function(){return i.k}),n.d(e,"GridPanelSeriesComponent",function(){return i.l}),n.d(e,"SvgLinearGradientComponent",function(){return i.r}),n.d(e,"SvgRadialGradientComponent",function(){return i.s}),n.d(e,"TooltipArea",function(){return i.u}),n.d(e,"tickFormat",function(){return i.F}),n.d(e,"trimLabel",function(){return i.G}),n.d(e,"calculateViewDimensions",function(){return i.z}),n.d(e,"formatLabel",function(){return i.C}),n.d(e,"LegendComponent",function(){return i.m}),n.d(e,"ScaleLegendComponent",function(){return i.o}),n.d(e,"LegendEntryComponent",function(){return i.n}),n.d(e,"AdvancedLegendComponent",function(){return i.a}),n.d(e,"TooltipModule",function(){return i.x}),n.d(e,"TooltipService",function(){return i.y}),n.d(e,"TooltipContentComponent",function(){return i.v}),n.d(e,"TooltipDirective",function(){return i.w}),n.d(e,"StyleTypes",function(){return i.q}),n.d(e,"AlignmentTypes",function(){return i.b}),n.d(e,"ShowTypes",function(){return i.p}),n.d(e,"CountUpDirective",function(){return i.j}),n.d(e,"count",function(){return i.A}),n.d(e,"decimalChecker",function(){return i.B}),n.d(e,"Timeline",function(){return i.t});var o=n("./src/area-chart/index.ts");n.d(e,"AreaChartComponent",function(){return o.a}),n.d(e,"AreaChartNormalizedComponent",function(){return o.c}),n.d(e,"AreaChartStackedComponent",function(){return o.d}),n.d(e,"AreaSeriesComponent",function(){return o.e}),n.d(e,"AreaChartModule",function(){return o.b});var s=n("./src/bar-chart/index.ts");n.d(e,"BarComponent",function(){return s.b}),n.d(e,"BarHorizontalComponent",function(){return s.d}),n.d(e,"BarHorizontal2DComponent",function(){return s.c}),n.d(e,"BarHorizontalNormalizedComponent",function(){return s.e}),n.d(e,"BarHorizontalStackedComponent",function(){return s.f}),n.d(e,"BarVerticalComponent",function(){return s.h}),n.d(e,"BarVertical2DComponent",function(){return s.g}),n.d(e,"BarVerticalNormalizedComponent",function(){return s.i}),n.d(e,"BarVerticalStackedComponent",function(){return s.j}),n.d(e,"SeriesHorizontal",function(){return s.k}),n.d(e,"SeriesVerticalComponent",function(){return s.l}),n.d(e,"BarChartModule",function(){return s.a});var a=n("./src/bubble-chart/index.ts");n.d(e,"BubbleChartComponent",function(){return a.a}),n.d(e,"BubbleSeriesComponent",function(){return a.c}),n.d(e,"BubbleChartModule",function(){return a.b});var c=n("./src/force-directed-graph/index.ts");n.d(e,"ForceDirectedGraphComponent",function(){return c.a}),n.d(e,"ForceDirectedGraphModule",function(){return c.b});var u=n("./src/heat-map/index.ts");n.d(e,"HeatMapCellComponent",function(){return u.b}),n.d(e,"HeatCellSeriesComponent",function(){return u.a}),n.d(e,"HeatMapComponent",function(){return u.c}),n.d(e,"HeatMapModule",function(){return u.d});var l=n("./src/line-chart/index.ts");n.d(e,"LineComponent",function(){return l.c}),n.d(e,"LineChartComponent",function(){return l.a}),n.d(e,"LineSeriesComponent",function(){return l.d}),n.d(e,"LineChartModule",function(){return l.b});var p=n("./src/polar-chart/index.ts");n.d(e,"PolarChartComponent",function(){return p.a}),n.d(e,"PolarSeriesComponent",function(){return p.c}),n.d(e,"PolarChartModule",function(){return p.b});var h=n("./src/number-card/index.ts");n.d(e,"CardComponent",function(){return h.a}),n.d(e,"CardSeriesComponent",function(){return h.b}),n.d(e,"NumberCardComponent",function(){return h.c}),n.d(e,"NumberCardModule",function(){return h.d});var d=n("./src/pie-chart/index.ts");n.d(e,"AdvancedPieChartComponent",function(){return d.a}),n.d(e,"PieLabelComponent",function(){return d.g}),n.d(e,"PieArcComponent",function(){return d.b}),n.d(e,"PieChartComponent",function(){return d.c}),n.d(e,"PieGridComponent",function(){return d.e}),n.d(e,"PieGridSeriesComponent",function(){return d.f}),n.d(e,"PieSeriesComponent",function(){return d.h}),n.d(e,"PieChartModule",function(){return d.d});var f=n("./src/tree-map/index.ts");n.d(e,"TreeMapCellComponent",function(){return f.a}),n.d(e,"TreeMapCellSeriesComponent",function(){return f.b}),n.d(e,"TreeMapComponent",function(){return f.c}),n.d(e,"TreeMapModule",function(){return f.d});var y=n("./src/gauge/index.ts");n.d(e,"GaugeComponent",function(){return y.c}),n.d(e,"GaugeArcComponent",function(){return y.a}),n.d(e,"GaugeAxisComponent",function(){return y.b}),n.d(e,"LinearGaugeComponent",function(){return y.e}),n.d(e,"GaugeModule",function(){return y.d})},"./src/line-chart/index.ts":function(t,e,n){"use strict";var r=n("./src/line-chart/line-chart.module.ts");n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b}),n.d(e,"c",function(){return r.c}),n.d(e,"d",function(){return r.d});n("./src/line-chart/line-chart.component.ts"),n("./src/line-chart/line.component.ts"),n("./src/line-chart/line-series.component.ts")},"./src/line-chart/line-chart.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return f});var r=n("@angular/core"),i=(n.n(r),n("@angular/animations")),o=(n.n(i),n("d3-scale")),s=(n.n(o),n("d3-shape")),a=(n.n(s),n("./src/common/view-dimensions.helper.ts")),c=n("./src/common/color.helper.ts"),u=n("./src/common/base-chart.component.ts"),l=n("./src/utils/id.ts"),p=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},d=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legendTitle="Legend",e.showGridLines=!0,e.curve=s.curveLinear,e.activeEntries=[],e.roundDomains=!1,e.tooltipDisabled=!1,e.showRefLines=!1,e.showRefLabels=!0,e.activate=new r.EventEmitter,e.deactivate=new r.EventEmitter,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e.timelineHeight=50,e.timelinePadding=10,e}return p(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=Object(a.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")",this.clipPathId="clip"+Object(l.a)().toString(),this.clipPath="url(#"+this.clipPathId+")"},e.prototype.updateTimeline=function(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform="translate("+this.dims.xOffset+", "+-this.margin[2]+")")},e.prototype.getXDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var r=0,i=n[e].series;r<i.length;r++){var o=i[r];t.includes(o.name)||t.push(o.name)}this.scaleType=this.getScaleType(t);var s=[];"linear"===this.scaleType&&(t=t.map(function(t){return Number(t)}));var a,c;return"time"!==this.scaleType&&"linear"!==this.scaleType||(a=this.xScaleMin?this.xScaleMin:Math.min.apply(Math,t),c=this.xScaleMax?this.xScaleMax:Math.max.apply(Math,t)),"time"===this.scaleType?(s=[new Date(a),new Date(c)],this.xSet=t.slice().sort(function(t,e){var n=t.getTime(),r=e.getTime();return n>r?1:r>n?-1:0})):"linear"===this.scaleType?(s=[a,c],this.xSet=t.slice().sort(function(t,e){return t-e})):(s=t,this.xSet=t),s},e.prototype.getYDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var r=0,i=n[e].series;r<i.length;r++){var o=i[r];t.indexOf(o.value)<0&&t.push(o.value),void 0!==o.min&&(this.hasRange=!0,t.indexOf(o.min)<0&&t.push(o.min)),void 0!==o.max&&(this.hasRange=!0,t.indexOf(o.max)<0&&t.push(o.max))}var s=t.slice();this.autoScale||s.push(0);return[this.yScaleMin?this.yScaleMin:Math.min.apply(Math,s),this.yScaleMax?this.yScaleMax:Math.max.apply(Math,s)]},e.prototype.getSeriesDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.getXScale=function(t,e){var n;return"time"===this.scaleType?n=Object(o.scaleTime)().range([0,e]).domain(t):"linear"===this.scaleType?(n=Object(o.scaleLinear)().range([0,e]).domain(t),this.roundDomains&&(n=n.nice())):"ordinal"===this.scaleType&&(n=Object(o.scalePoint)().range([0,e]).padding(.1).domain(t)),n},e.prototype.getYScale=function(t,e){var n=Object(o.scaleLinear)().range([e,0]).domain(t);return this.roundDomains?n.nice():n},e.prototype.getScaleType=function(t){for(var e=!0,n=!0,r=0,i=t;r<i.length;r++){var o=i[r];this.isDate(o)||(e=!1),"number"!=typeof o&&(n=!1)}return e?"time":n?"linear":"ordinal"},e.prototype.isDate=function(t){return t instanceof Date},e.prototype.updateDomain=function(t){this.filteredDomain=t,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)},e.prototype.updateHoveredVertical=function(t){this.hoveredVertical=t.value,this.deactivateAll()},e.prototype.hideCircles=function(){this.hoveredVertical=null,this.deactivateAll()},e.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},e.prototype.trackBy=function(t,e){return e.name},e.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new c.a(this.scheme,this.schemeType,t,this.customColors)},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.seriesDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t){this.deactivateAll();this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value})>-1||(this.activeEntries=[t],this.activate.emit({value:t,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t){var e=this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value});this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},e.prototype.deactivateAll=function(){this.activeEntries=this.activeEntries.slice();for(var t=0,e=this.activeEntries;t<e.length;t++){var n=e[t];this.deactivate.emit({value:n,entries:[]})}this.activeEntries=[]},h([Object(r.Input)(),d("design:type",Object)],e.prototype,"legend",void 0),h([Object(r.Input)(),d("design:type",String)],e.prototype,"legendTitle",void 0),h([Object(r.Input)(),d("design:type",Object)],e.prototype,"xAxis",void 0),h([Object(r.Input)(),d("design:type",Object)],e.prototype,"yAxis",void 0),h([Object(r.Input)(),d("design:type",Object)],e.prototype,"showXAxisLabel",void 0),h([Object(r.Input)(),d("design:type",Object)],e.prototype,"showYAxisLabel",void 0),h([Object(r.Input)(),d("design:type",Object)],e.prototype,"xAxisLabel",void 0),h([Object(r.Input)(),d("design:type",Object)],e.prototype,"yAxisLabel",void 0),h([Object(r.Input)(),d("design:type",Object)],e.prototype,"autoScale",void 0),h([Object(r.Input)(),d("design:type",Object)],e.prototype,"timeline",void 0),h([Object(r.Input)(),d("design:type",Boolean)],e.prototype,"gradient",void 0),h([Object(r.Input)(),d("design:type",Boolean)],e.prototype,"showGridLines",void 0),h([Object(r.Input)(),d("design:type",Object)],e.prototype,"curve",void 0),h([Object(r.Input)(),d("design:type",Array)],e.prototype,"activeEntries",void 0),h([Object(r.Input)(),d("design:type",String)],e.prototype,"schemeType",void 0),h([Object(r.Input)(),d("design:type",Number)],e.prototype,"rangeFillOpacity",void 0),h([Object(r.Input)(),d("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),h([Object(r.Input)(),d("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),h([Object(r.Input)(),d("design:type",Boolean)],e.prototype,"roundDomains",void 0),h([Object(r.Input)(),d("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),h([Object(r.Input)(),d("design:type",Boolean)],e.prototype,"showRefLines",void 0),h([Object(r.Input)(),d("design:type",Object)],e.prototype,"referenceLines",void 0),h([Object(r.Input)(),d("design:type",Boolean)],e.prototype,"showRefLabels",void 0),h([Object(r.Input)(),d("design:type",Object)],e.prototype,"xScaleMin",void 0),h([Object(r.Input)(),d("design:type",Object)],e.prototype,"xScaleMax",void 0),h([Object(r.Input)(),d("design:type",Number)],e.prototype,"yScaleMin",void 0),h([Object(r.Input)(),d("design:type",Number)],e.prototype,"yScaleMax",void 0),h([Object(r.Output)(),d("design:type",r.EventEmitter)],e.prototype,"activate",void 0),h([Object(r.Output)(),d("design:type",r.EventEmitter)],e.prototype,"deactivate",void 0),h([Object(r.ContentChild)("tooltipTemplate"),d("design:type",r.TemplateRef)],e.prototype,"tooltipTemplate",void 0),h([Object(r.ContentChild)("seriesTooltipTemplate"),d("design:type",r.TemplateRef)],e.prototype,"seriesTooltipTemplate",void 0),h([Object(r.HostListener)("mouseleave"),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],e.prototype,"hideCircles",null),e=h([Object(r.Component)({selector:"ngx-charts-line-chart",template:'\n <ngx-charts-chart\n [view]="[width, height]"\n [showLegend]="legend"\n [legendOptions]="legendOptions"\n [activeEntries]="activeEntries"\n [animations]="animations"\n (legendLabelClick)="onClick($event)"\n (legendLabelActivate)="onActivate($event)"\n (legendLabelDeactivate)="onDeactivate($event)">\n <svg:defs>\n <svg:clipPath [attr.id]="clipPathId">\n <svg:rect\n [attr.width]="dims.width + 10"\n [attr.height]="dims.height + 10"\n [attr.transform]="\'translate(-5, -5)\'"/>\n </svg:clipPath>\n </svg:defs>\n <svg:g [attr.transform]="transform" class="line-chart chart">\n <svg:g ngx-charts-x-axis\n *ngIf="xAxis"\n [xScale]="xScale"\n [dims]="dims"\n [showGridLines]="showGridLines"\n [showLabel]="showXAxisLabel"\n [labelText]="xAxisLabel"\n [tickFormatting]="xAxisTickFormatting"\n (dimensionsChanged)="updateXAxisHeight($event)">\n </svg:g>\n <svg:g ngx-charts-y-axis\n *ngIf="yAxis"\n [yScale]="yScale"\n [dims]="dims"\n [showGridLines]="showGridLines"\n [showLabel]="showYAxisLabel"\n [labelText]="yAxisLabel"\n [tickFormatting]="yAxisTickFormatting"\n [referenceLines]="referenceLines"\n [showRefLines]="showRefLines"\n [showRefLabels]="showRefLabels"\n (dimensionsChanged)="updateYAxisWidth($event)">\n </svg:g>\n <svg:g [attr.clip-path]="clipPath">\n <svg:g *ngFor="let series of results; trackBy:trackBy" [@animationState]="\'active\'">\n <svg:g ngx-charts-line-series\n [xScale]="xScale"\n [yScale]="yScale"\n [colors]="colors"\n [data]="series"\n [activeEntries]="activeEntries"\n [scaleType]="scaleType"\n [curve]="curve"\n [rangeFillOpacity]="rangeFillOpacity"\n [hasRange]="hasRange"\n [animations]="animations"\n />\n </svg:g>\n\n <svg:g *ngIf="!tooltipDisabled" (mouseleave)="hideCircles()">\n <svg:g ngx-charts-tooltip-area\n [dims]="dims"\n [xSet]="xSet"\n [xScale]="xScale"\n [yScale]="yScale"\n [results]="results"\n [colors]="colors"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="seriesTooltipTemplate"\n (hover)="updateHoveredVertical($event)"\n />\n\n <svg:g *ngFor="let series of results">\n <svg:g ngx-charts-circle-series\n [xScale]="xScale"\n [yScale]="yScale"\n [colors]="colors"\n [data]="series"\n [scaleType]="scaleType"\n [visibleValue]="hoveredVertical"\n [activeEntries]="activeEntries"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="tooltipTemplate"\n (select)="onClick($event, series)"\n (activate)="onActivate($event)"\n (deactivate)="onDeactivate($event)"\n />\n </svg:g>\n </svg:g>\n </svg:g>\n </svg:g>\n <svg:g ngx-charts-timeline\n *ngIf="timeline && scaleType === \'time\'"\n [attr.transform]="timelineTransform"\n [results]="results"\n [view]="[timelineWidth, height]"\n [height]="timelineHeight"\n [scheme]="scheme"\n [customColors]="customColors"\n [scaleType]="scaleType"\n [legend]="legend"\n (onDomainChange)="updateDomain($event)">\n <svg:g *ngFor="let series of results; trackBy:trackBy">\n <svg:g ngx-charts-line-series\n [xScale]="timelineXScale"\n [yScale]="timelineYScale"\n [colors]="colors"\n [data]="series"\n [scaleType]="scaleType"\n [curve]="curve"\n [hasRange]="hasRange"\n [animations]="animations"\n />\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ',styles:[n("./src/common/base-chart.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush,animations:[Object(i.trigger)("animationState",[Object(i.transition)(":leave",[Object(i.style)({opacity:1}),Object(i.animate)(500,Object(i.style)({opacity:0}))])])]})],e)}(u.a)},"./src/line-chart/line-chart.module.ts":function(t,e,n){"use strict";n.d(e,"b",function(){return u});var r=n("@angular/core"),i=(n.n(r),n("./src/common/chart-common.module.ts")),o=n("./src/line-chart/line.component.ts"),s=n("./src/line-chart/line-chart.component.ts"),a=n("./src/line-chart/line-series.component.ts");n.d(e,"c",function(){return o.a}),n.d(e,"a",function(){return s.a}),n.d(e,"d",function(){return a.a});var c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},u=function(){function t(){}return t=c([Object(r.NgModule)({imports:[i.a],declarations:[o.a,s.a,a.a],exports:[o.a,s.a,a.a]})],t)}()},"./src/line-chart/line-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("@angular/core"),i=(n.n(r),n("d3-shape")),o=(n.n(i),n("./src/utils/id.ts")),s=n("./src/utils/sort.ts"),a=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},c=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},u=function(){function t(){this.animations=!0}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.updateGradients();var t=this.sortData(this.data.series),e=this.getLineGenerator();this.path=e(t)||"";var n=this.getAreaGenerator();if(this.areaPath=n(t)||"",this.hasRange){var r=this.getRangeGenerator();this.outerPath=r(t)||""}if(this.hasGradient){this.stroke=this.gradientUrl;var i=this.data.series.map(function(t){return t.value}),o=Math.max.apply(Math,i);o===Math.min.apply(Math,i)&&(this.stroke=this.colors.getColor(o))}else this.stroke=this.colors.getColor(this.data.name)},t.prototype.getLineGenerator=function(){var t=this;return Object(i.line)().x(function(e){var n=e.name;return"time"===t.scaleType?t.xScale(n):"linear"===t.scaleType?t.xScale(Number(n)):t.xScale(n)}).y(function(e){return t.yScale(e.value)}).curve(this.curve)},t.prototype.getRangeGenerator=function(){var t=this;return Object(i.area)().x(function(e){var n=e.name;return"time"===t.scaleType?t.xScale(n):"linear"===t.scaleType?t.xScale(Number(n)):t.xScale(n)}).y0(function(e){return t.yScale(e.min?e.min:e.value)}).y1(function(e){return t.yScale(e.max?e.max:e.value)}).curve(this.curve)},t.prototype.getAreaGenerator=function(){var t=this;return Object(i.area)().x(function(e){var n=e.name;return t.xScale(n)}).y0(function(){return t.yScale.range()[0]}).y1(function(e){return t.yScale(e.value)}).curve(this.curve)},t.prototype.sortData=function(t){return t="linear"===this.scaleType?Object(s.c)(t,"name"):"time"===this.scaleType?Object(s.b)(t,"name"):Object(s.a)(t,"name","asc",this.xScale.domain())},t.prototype.updateGradients=function(){if("linear"===this.colors.scaleType){this.hasGradient=!0,this.gradientId="grad"+Object(o.a)().toString(),this.gradientUrl="url(#"+this.gradientId+")";var t=this.data.series.map(function(t){return t.value}),e=Math.max.apply(Math,t),n=Math.min.apply(Math,t);this.gradientStops=this.colors.getLinearGradientStops(e,n),this.areaGradientStops=this.colors.getLinearGradientStops(e)}else this.hasGradient=!1,this.gradientStops=void 0,this.areaGradientStops=void 0},t.prototype.isActive=function(t){if(!this.activeEntries)return!1;return void 0!==this.activeEntries.find(function(e){return t.name===e.name})},t.prototype.isInactive=function(t){if(!this.activeEntries||0===this.activeEntries.length)return!1;return void 0===this.activeEntries.find(function(e){return t.name===e.name})},a([Object(r.Input)(),c("design:type",Object)],t.prototype,"data",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"xScale",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"yScale",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"colors",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"scaleType",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"curve",void 0),a([Object(r.Input)(),c("design:type",Array)],t.prototype,"activeEntries",void 0),a([Object(r.Input)(),c("design:type",Number)],t.prototype,"rangeFillOpacity",void 0),a([Object(r.Input)(),c("design:type",Boolean)],t.prototype,"hasRange",void 0),a([Object(r.Input)(),c("design:type",Boolean)],t.prototype,"animations",void 0),t=a([Object(r.Component)({selector:"g[ngx-charts-line-series]",template:'\n <svg:g>\n <defs>\n <svg:g ngx-charts-svg-linear-gradient *ngIf="hasGradient"\n orientation="vertical"\n [name]="gradientId"\n [stops]="gradientStops"\n />\n </defs>\n <svg:g ngx-charts-area\n class="line-highlight"\n [data]="data"\n [path]="areaPath"\n [fill]="hasGradient ? gradientUrl : colors.getColor(data.name)"\n [opacity]="0.25"\n [startOpacity]="0"\n [gradient]="true"\n [stops]="areaGradientStops"\n [class.active]="isActive(data)"\n [class.inactive]="isInactive(data)"\n />\n <svg:g ngx-charts-line\n class="line-series"\n [data]="data"\n [path]="path"\n [stroke]="stroke"\n [animations]="animations"\n [class.active]="isActive(data)"\n [class.inactive]="isInactive(data)"\n />\n <svg:g ngx-charts-area\n *ngIf="hasRange"\n class="line-series-range"\n [data]="data"\n [path]="outerPath"\n [fill]="hasGradient ? gradientUrl : colors.getColor(data.name)"\n [class.active]="isActive(data)"\n [class.inactive]="isInactive(data)"\n [opacity]="rangeFillOpacity"\n [animations]="animations"\n />\n </svg:g>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush})],t)}()},"./src/line-chart/line.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("@angular/core"),i=(n.n(r),n("@angular/animations")),o=(n.n(i),n("d3-selection")),s=(n.n(o),this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}),a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(t){this.element=t,this.fill="none",this.animations=!0,this.select=new r.EventEmitter,this.initialized=!1}return t.prototype.ngOnChanges=function(t){this.initialized?this.updatePathEl():(this.initialized=!0,this.initialPath=this.path)},t.prototype.updatePathEl=function(){var t=Object(o.select)(this.element.nativeElement).select(".line");this.animations?t.transition().duration(750).attr("d",this.path):t.attr("d",this.path)},s([Object(r.Input)(),a("design:type",Object)],t.prototype,"path",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"stroke",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"data",void 0),s([Object(r.Input)(),a("design:type",String)],t.prototype,"fill",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"animations",void 0),s([Object(r.Output)(),a("design:type",Object)],t.prototype,"select",void 0),t=s([Object(r.Component)({selector:"g[ngx-charts-line]",template:'\n <svg:path\n [@animationState]="\'active\'"\n class="line"\n [attr.d]="initialPath"\n [attr.fill]="fill"\n [attr.stroke]="stroke"\n stroke-width="1.5px"\n />\n ',changeDetection:r.ChangeDetectionStrategy.OnPush,animations:[Object(i.trigger)("animationState",[Object(i.transition)(":enter",[Object(i.style)({strokeDasharray:2e3,strokeDashoffset:2e3}),Object(i.animate)(1e3,Object(i.style)({strokeDashoffset:0}))])])]}),a("design:paramtypes",[r.ElementRef])],t)}()},"./src/ngx-charts.module.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return v});n("./src/polyfills.ts");var r=n("@angular/core"),i=(n.n(r),n("./src/common/chart-common.module.ts")),o=n("./src/area-chart/area-chart.module.ts"),s=n("./src/bar-chart/bar-chart.module.ts"),a=n("./src/bubble-chart/bubble-chart.module.ts"),c=n("./src/force-directed-graph/force-directed-graph.module.ts"),u=n("./src/heat-map/heat-map.module.ts"),l=n("./src/line-chart/line-chart.module.ts"),p=n("./src/polar-chart/polar-chart.module.ts"),h=n("./src/number-card/number-card.module.ts"),d=n("./src/pie-chart/pie-chart.module.ts"),f=n("./src/tree-map/tree-map.module.ts"),y=n("./src/gauge/gauge.module.ts"),g=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},v=function(){function t(){}return t=g([Object(r.NgModule)({exports:[i.a,o.b,s.a,a.b,c.b,u.d,l.b,p.b,h.d,d.d,f.d,y.d]})],t)}()},"./src/number-card/card-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("@angular/core"),i=(n.n(r),n("./src/utils/color-utils.ts")),o=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(){this.innerPadding=15,this.emptyColor="rgba(0, 0, 0, 0)",this.animations=!0,this.select=new r.EventEmitter}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){if(this.data.length>2){var t=this.valueFormatting||function(t){return t.value.toLocaleString()},e=this.data.map(function(e){return e&&e.data&&"undefined"!=typeof e.data.value&&null!==e.data.value?t({data:e.data,label:e?e.data.name:"",value:e&&e.data?e.data.value:""}).length:0}).sort(function(t,e){return e-t}),n=Math.ceil(this.data.length/2);this.medianSize=e[n]}var r=this.getCards();this.cards=r.filter(function(t){return null!==t.data.value}),this.emptySlots=r.filter(function(t){return null===t.data.value})},t.prototype.getCards=function(){var t=this,e="number"==typeof this.innerPadding?this.innerPadding:this.innerPadding[0]+this.innerPadding[2],n="number"==typeof this.innerPadding?this.innerPadding:this.innerPadding[1]+this.innerPadding[3];return this.data.map(function(r,o){var s=r.data.name;s=s&&"Date"===s.constructor.name?s.toLocaleDateString():s?s.toLocaleString():s,r.data.name=s;var a=r.data.value,c=s?t.colors.getColor(s):t.emptyColor,u=t.cardColor||c||"#000";return{x:r.x,y:r.y,width:r.width-n,height:r.height-e,color:u,bandColor:t.bandColor||c,textColor:t.textColor||Object(i.a)(u),label:s,data:r.data,tooltipText:s+": "+a}})},t.prototype.trackBy=function(t,e){return e.label},t.prototype.onClick=function(t){this.select.emit(t)},o([Object(r.Input)(),s("design:type",Array)],t.prototype,"data",void 0),o([Object(r.Input)(),s("design:type",Array)],t.prototype,"slots",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"dims",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"colors",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"innerPadding",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"cardColor",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"bandColor",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"emptyColor",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"textColor",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"valueFormatting",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"labelFormatting",void 0),o([Object(r.Input)(),s("design:type",Boolean)],t.prototype,"animations",void 0),o([Object(r.Output)(),s("design:type",Object)],t.prototype,"select",void 0),t=o([Object(r.Component)({selector:"g[ngx-charts-card-series]",template:'\n <svg:rect\n *ngFor="let c of emptySlots; trackBy:trackBy"\n class="card-empty"\n [attr.x]="c.x"\n [attr.y]="c.y"\n [style.fill]="emptyColor"\n [attr.width]="c.width"\n [attr.height]="c.height"\n rx="3"\n ry="3"\n />\n <svg:g ngx-charts-card *ngFor="let c of cards; trackBy:trackBy"\n [x]="c.x"\n [y]="c.y"\n [width]="c.width"\n [height]="c.height"\n [color]="c.color"\n [bandColor]="c.bandColor"\n [textColor]="c.textColor"\n [data]="c.data"\n [medianSize]="medianSize"\n [valueFormatting]="valueFormatting"\n [labelFormatting]="labelFormatting"\n [animations]="animations"\n (select)="onClick($event)"\n />\n ',changeDetection:r.ChangeDetectionStrategy.OnPush})],t)}()},"./src/number-card/card.component.scss":function(t,e,n){var r=n('./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/number-card/card.component.scss');t.exports="string"==typeof r?r:r.toString()},"./src/number-card/card.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("@angular/core"),i=(n.n(r),n("./src/common/trim-label.helper.ts")),o=n("./src/common/shape.helper.ts"),s=n("./src/common/count/index.ts"),a=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},c=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},u=function(){function t(t,e,n){this.cd=e,this.zone=n,this.animations=!0,this.select=new r.EventEmitter,this.value="",this.textFontSize=12,this.textTransform="",this.initialized=!1,this.bandHeight=10,this.textPadding=[10,20,5,20],this.labelFontSize=15,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.ngOnDestroy=function(){cancelAnimationFrame(this.animationReq)},t.prototype.update=function(){var t=this;this.zone.run(function(){var e=t.data&&"undefined"!=typeof t.data.value,n=t.valueFormatting||function(t){return t.value.toLocaleString()},r=t.labelFormatting||function(t){return Object(i.a)(t.label,55)};t.transform="translate("+t.x+" , "+t.y+")",t.textWidth=Math.max(0,t.width)-t.textPadding[1]-t.textPadding[3],t.cardWidth=Math.max(0,t.width),t.cardHeight=Math.max(0,t.height),t.label=t.data?t.data.name:"";var s={label:t.label,data:t.data,value:t.data.value};t.formattedLabel=r(s),t.transformBand="translate(0 , "+(t.cardHeight-t.bandHeight)+")";var a=e?n(s):"";t.value=t.paddedValue(a),t.setPadding(),t.bandPath=Object(o.a)(0,0,t.cardWidth,t.bandHeight,3,[!1,!1,!0,!0]),setTimeout(function(){t.scaleText(),t.value=a,e&&!t.initialized&&setTimeout(function(){return t.startCount()},20)},8)})},t.prototype.paddedValue=function(t){return this.medianSize&&this.medianSize>t.length&&(t+="\u2007".repeat(this.medianSize-t.length)),t},t.prototype.startCount=function(){var t=this;if(!this.initialized&&this.animations){cancelAnimationFrame(this.animationReq);var e=this.data.value,n=Object(s.c)(e),r=this.valueFormatting||function(t){return t.value.toLocaleString()},i=function(n){var i=n.value,o=n.finished;t.zone.run(function(){i=o?e:i,t.value=r({label:t.label,data:t.data,value:i}),o||(t.value=t.paddedValue(t.value)),t.cd.markForCheck()})};this.animationReq=Object(s.b)(0,e,n,1,i),this.initialized=!0}},t.prototype.scaleText=function(){var t=this;this.zone.run(function(){var e=t.textEl.nativeElement.getBoundingClientRect(),n=e.width,r=e.height;if(0!==n&&0!==r){var i=t.textPadding[1]=t.textPadding[3]=t.cardWidth/8,o=t.cardWidth-2*i,s=t.cardHeight/3,a=Math.min(o/n,s/r);t.textFontSize=Math.floor(t.textFontSize*a),t.labelFontSize=Math.min(t.textFontSize,15),t.setPadding(),t.cd.markForCheck()}})},t.prototype.setPadding=function(){this.textPadding[1]=this.textPadding[3]=this.cardWidth/8;var t=this.cardHeight/2;this.textPadding[0]=t-this.textFontSize-this.labelFontSize/2,this.textPadding[2]=t-this.labelFontSize},t.prototype.onClick=function(){this.select.emit({name:this.data.name,value:this.data.value})},a([Object(r.Input)(),c("design:type",Object)],t.prototype,"color",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"bandColor",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"textColor",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"x",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"y",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"width",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"height",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"label",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"data",void 0),a([Object(r.Input)(),c("design:type",Number)],t.prototype,"medianSize",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"valueFormatting",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"labelFormatting",void 0),a([Object(r.Input)(),c("design:type",Boolean)],t.prototype,"animations",void 0),a([Object(r.Output)(),c("design:type",Object)],t.prototype,"select",void 0),a([Object(r.ViewChild)("textEl"),c("design:type",r.ElementRef)],t.prototype,"textEl",void 0),t=a([Object(r.Component)({selector:"g[ngx-charts-card]",template:'\n <svg:g\n [attr.transform]="transform"\n class="cell"\n (click)="onClick()">\n <svg:rect\n class="card"\n [style.fill]="color"\n [attr.width]="cardWidth"\n [attr.height]="cardHeight"\n rx="3"\n ry="3"\n />\n <svg:path\n *ngIf="bandColor && bandColor !== color"\n class="card-band"\n [attr.fill]="bandColor"\n [attr.transform]="transformBand"\n stroke="none"\n [attr.d]="bandPath"\n />\n <title>{{label}}</title>\n <svg:foreignObject\n class="trimmed-label"\n x="5"\n [attr.x]="textPadding[3]"\n [attr.y]="cardHeight - textPadding[2]"\n [attr.width]="textWidth"\n [attr.height]="labelFontSize + textPadding[2]"\n alignment-baseline="hanging">\n <xhtml:p\n [style.color]="textColor"\n [style.fontSize.px]="labelFontSize"\n [style.lineHeight.px]="labelFontSize"\n [innerHTML]="formattedLabel">\n </xhtml:p>\n </svg:foreignObject>\n <svg:text #textEl\n class="value-text"\n [attr.x]="textPadding[3]"\n [attr.y]="textPadding[0]"\n [style.fill]="textColor"\n text-anchor="start"\n alignment-baseline="hanging"\n [style.font-size.pt]="textFontSize">\n {{value}}\n </svg:text>\n </svg:g>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush}),c("design:paramtypes",[r.ElementRef,r.ChangeDetectorRef,r.NgZone])],t)}()},"./src/number-card/index.ts":function(t,e,n){"use strict";var r=n("./src/number-card/number-card.module.ts");n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b}),n.d(e,"c",function(){return r.c}),n.d(e,"d",function(){return r.d});n("./src/number-card/number-card.component.ts"),n("./src/number-card/card.component.ts"),n("./src/number-card/card-series.component.ts")},"./src/number-card/number-card.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r=n("@angular/core"),i=(n.n(r),n("./src/common/base-chart.component.ts")),o=n("./src/common/view-dimensions.helper.ts"),s=n("./src/common/color.helper.ts"),a=n("./src/common/grid-layout.helper.ts"),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.emptyColor="rgba(0, 0, 0, 0)",e.innerPadding=15,e.margin=[10,10,10,10],e}return c(e,t),Object.defineProperty(e.prototype,"clickable",{get:function(){return!!this.select.observers.length},enumerable:!0,configurable:!0}),e.prototype.update=function(){t.prototype.update.call(this),this.dims=Object(o.a)({width:this.width,height:this.height,margins:this.margin}),this.domain=this.getDomain(),this.setColors(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")";for(var e=Object(a.b)(this.dims,this.results.length,150),n=e[0]*e[1],r=this.results.slice();r.length<n;)r.push({value:null});this.data=Object(a.a)(this.dims,r,150,this.designatedTotal)},e.prototype.getDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.onClick=function(t){this.select.emit(t)},e.prototype.setColors=function(){this.colors=new s.a(this.scheme,"ordinal",this.domain,this.customColors)},u([Object(r.Input)(),l("design:type",String)],e.prototype,"cardColor",void 0),u([Object(r.Input)(),l("design:type",String)],e.prototype,"bandColor",void 0),u([Object(r.Input)(),l("design:type",String)],e.prototype,"emptyColor",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"innerPadding",void 0),u([Object(r.Input)(),l("design:type",String)],e.prototype,"textColor",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"valueFormatting",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"labelFormatting",void 0),u([Object(r.Input)(),l("design:type",Number)],e.prototype,"designatedTotal",void 0),e=u([Object(r.Component)({selector:"ngx-charts-number-card",template:'\n <ngx-charts-chart\n [view]="[width, height]"\n [showLegend]="false"\n [animations]="animations">\n <svg:g [attr.transform]="transform" class="number-card chart" [class.clickable]="clickable">\n <svg:g ngx-charts-card-series\n [colors]="colors"\n [cardColor]="cardColor"\n [bandColor]="bandColor"\n [textColor]="textColor"\n [emptyColor]="emptyColor"\n [data]="data"\n [dims]="dims"\n [innerPadding]="innerPadding"\n [valueFormatting]="valueFormatting"\n [labelFormatting]="labelFormatting"\n [animations]="animations"\n (select)="onClick($event)"\n />\n </svg:g>\n </ngx-charts-chart>\n ',styles:[n("./src/common/base-chart.component.scss"),n("./src/number-card/card.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush})],e)}(i.a)},"./src/number-card/number-card.module.ts":function(t,e,n){"use strict";n.d(e,"d",function(){return u});var r=n("@angular/core"),i=(n.n(r),n("./src/common/chart-common.module.ts")),o=n("./src/number-card/card.component.ts"),s=n("./src/number-card/card-series.component.ts"),a=n("./src/number-card/number-card.component.ts");n.d(e,"a",function(){return o.a}),n.d(e,"b",function(){return s.a}),n.d(e,"c",function(){return a.a});var c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},u=function(){function t(){}return t=c([Object(r.NgModule)({imports:[i.a],declarations:[o.a,s.a,a.a],exports:[o.a,s.a,a.a]})],t)}()},"./src/pie-chart/advanced-pie-chart.component.scss":function(t,e,n){var r=n('./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/pie-chart/advanced-pie-chart.component.scss');t.exports="string"==typeof r?r:r.toString()},"./src/pie-chart/advanced-pie-chart.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("@angular/core"),i=(n.n(r),n("./src/common/view-dimensions.helper.ts")),o=n("./src/common/color.helper.ts"),s=n("./src/common/base-chart.component.ts"),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},u=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.activeEntries=[],e.tooltipDisabled=!1,e.label="Total",e.activate=new r.EventEmitter,e.deactivate=new r.EventEmitter,e.margin=[20,20,20,20],e}return a(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=Object(i.a)({width:4*this.width/12,height:this.height,margins:this.margin}),this.domain=this.getDomain(),this.setColors();var e=this.dims.width/2,n=this.margin[0]+this.dims.height/2;this.legendWidth=this.width-this.dims.width-this.margin[1],this.outerRadius=Math.min(this.dims.width,this.dims.height)/2.5,this.innerRadius=.75*this.outerRadius,this.transform="translate("+e+" , "+n+")"},e.prototype.getDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.onClick=function(t){this.select.emit(t)},e.prototype.setColors=function(){this.colors=new o.a(this.scheme,"ordinal",this.domain,this.customColors)},e.prototype.onActivate=function(t){this.activeEntries.indexOf(t)>-1||(this.activeEntries=[t].concat(this.activeEntries),this.activate.emit({value:t,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t){var e=this.activeEntries.indexOf(t);this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},c([Object(r.Input)(),u("design:type",Boolean)],e.prototype,"gradient",void 0),c([Object(r.Input)(),u("design:type",Array)],e.prototype,"activeEntries",void 0),c([Object(r.Input)(),u("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),c([Object(r.Input)(),u("design:type",Object)],e.prototype,"tooltipText",void 0),c([Object(r.Input)(),u("design:type",String)],e.prototype,"label",void 0),c([Object(r.Output)(),u("design:type",r.EventEmitter)],e.prototype,"activate",void 0),c([Object(r.Output)(),u("design:type",r.EventEmitter)],e.prototype,"deactivate",void 0),c([Object(r.ContentChild)("tooltipTemplate"),u("design:type",r.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=c([Object(r.Component)({selector:"ngx-charts-advanced-pie-chart",template:'\n <div\n [style.width.px]="width"\n [style.height.px]="height">\n <div class="advanced-pie chart"\n [style.width.px]="dims.width"\n [style.height.px]="dims.height">\n <ngx-charts-chart\n [view]="[width, height]"\n [showLegend]="false"\n [animations]="animations">\n <svg:g\n [attr.transform]="transform"\n class="pie chart">\n <svg:g ngx-charts-pie-series\n [colors]="colors"\n [series]="results"\n [innerRadius]="innerRadius"\n [activeEntries]="activeEntries"\n [outerRadius]="outerRadius"\n [gradient]="gradient"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="tooltipTemplate"\n [tooltipText]="tooltipText"\n (select)="onClick($event)"\n [animations]="animations">\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n </div>\n <div\n class="advanced-pie-legend-wrapper"\n [style.width.px]="width - dims.width"\n [style.height.px]="height">\n <ngx-charts-advanced-legend\n [data]="results"\n [colors]="colors"\n [width]="width - dims.width - margin[1]"\n [label]="label"\n [animations]="animations"\n (select)="onClick($event)"\n (activate)="onActivate($event)"\n (deactivate)="onDeactivate($event)">\n </ngx-charts-advanced-legend>\n </div>\n </div>\n ',styles:[n("./src/common/base-chart.component.scss"),n("./src/pie-chart/advanced-pie-chart.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush})],e)}(s.a)},"./src/pie-chart/index.ts":function(t,e,n){"use strict";var r=n("./src/pie-chart/pie-chart.module.ts");n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b}),n.d(e,"c",function(){return r.c}),n.d(e,"d",function(){return r.d}),n.d(e,"e",function(){return r.e}),n.d(e,"f",function(){return r.f}),n.d(e,"g",function(){return r.g}),n.d(e,"h",function(){return r.h});n("./src/pie-chart/pie-chart.component.ts"),n("./src/pie-chart/pie-arc.component.ts"),n("./src/pie-chart/pie-grid.component.ts"),n("./src/pie-chart/pie-series.component.ts"),n("./src/pie-chart/pie-label.component.ts")},"./src/pie-chart/pie-arc.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("@angular/core"),i=(n.n(r),n("d3-interpolate")),o=(n.n(i),n("d3-selection")),s=(n.n(o),n("d3-shape")),a=(n.n(s),n("./src/utils/id.ts")),c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},u=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(){function t(t){this.startAngle=0,this.endAngle=2*Math.PI,this.cornerRadius=0,this.explodeSlices=!1,this.gradient=!1,this.animate=!0,this.pointerEvents=!0,this.isActive=!1,this.select=new r.EventEmitter,this.activate=new r.EventEmitter,this.deactivate=new r.EventEmitter,this.initialized=!1,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){var t=this.calculateArc();this.path=t.startAngle(this.startAngle).endAngle(this.endAngle)(),this.startOpacity=.5,this.radialGradientId="linearGrad"+Object(a.a)().toString(),this.gradientFill="url(#"+this.radialGradientId+")",this.animate&&(this.initialized?this.updateAnimation():(this.loadAnimation(),this.initialized=!0))},t.prototype.calculateArc=function(){var t=this.outerRadius;return this.explodeSlices&&0===this.innerRadius&&(t=this.outerRadius*this.value/this.max),Object(s.arc)().innerRadius(this.innerRadius).outerRadius(t).cornerRadius(this.cornerRadius)},t.prototype.loadAnimation=function(){var t=Object(o.select)(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),e=this.calculateArc();t.transition().attrTween("d",function(t){this._current=this._current||t;var n=Object.assign({},t);n.endAngle=n.startAngle;var r=Object(i.interpolate)(n,n);return this._current=r(0),function(t){return e(r(t))}}).transition().duration(750).attrTween("d",function(t){this._current=this._current||t;var n=Object(i.interpolate)(this._current,t);return this._current=n(0),function(t){return e(n(t))}})},t.prototype.updateAnimation=function(){var t=Object(o.select)(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),e=this.calculateArc();t.transition().duration(750).attrTween("d",function(t){this._current=this._current||t;var n=Object(i.interpolate)(this._current,t);return this._current=n(0),function(t){return e(n(t))}})},t.prototype.onClick=function(){this.select.emit(this.data)},c([Object(r.Input)(),u("design:type",Object)],t.prototype,"fill",void 0),c([Object(r.Input)(),u("design:type",Number)],t.prototype,"startAngle",void 0),c([Object(r.Input)(),u("design:type",Number)],t.prototype,"endAngle",void 0),c([Object(r.Input)(),u("design:type",Object)],t.prototype,"innerRadius",void 0),c([Object(r.Input)(),u("design:type",Object)],t.prototype,"outerRadius",void 0),c([Object(r.Input)(),u("design:type",Number)],t.prototype,"cornerRadius",void 0),c([Object(r.Input)(),u("design:type",Object)],t.prototype,"value",void 0),c([Object(r.Input)(),u("design:type",Object)],t.prototype,"max",void 0),c([Object(r.Input)(),u("design:type",Object)],t.prototype,"data",void 0),c([Object(r.Input)(),u("design:type",Boolean)],t.prototype,"explodeSlices",void 0),c([Object(r.Input)(),u("design:type",Boolean)],t.prototype,"gradient",void 0),c([Object(r.Input)(),u("design:type",Boolean)],t.prototype,"animate",void 0),c([Object(r.Input)(),u("design:type",Boolean)],t.prototype,"pointerEvents",void 0),c([Object(r.Input)(),u("design:type",Boolean)],t.prototype,"isActive",void 0),c([Object(r.Output)(),u("design:type",Object)],t.prototype,"select",void 0),c([Object(r.Output)(),u("design:type",Object)],t.prototype,"activate",void 0),c([Object(r.Output)(),u("design:type",Object)],t.prototype,"deactivate",void 0),t=c([Object(r.Component)({selector:"g[ngx-charts-pie-arc]",template:'\n <svg:g class="arc-group">\n <svg:defs *ngIf="gradient">\n <svg:g ngx-charts-svg-radial-gradient\n [color]="fill"\n orientation="vertical"\n [name]="radialGradientId"\n [startOpacity]="startOpacity"\n />\n </svg:defs>\n <svg:path\n [attr.d]="path"\n class="arc"\n [class.active]="isActive"\n [attr.fill]="gradient ? gradientFill : fill"\n (click)="onClick()"\n (mouseenter)="activate.emit(data)"\n (mouseleave)="deactivate.emit(data)"\n [style.pointer-events]="pointerEvents ? \'auto\' : \'none\'"\n />\n </svg:g>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush}),u("design:paramtypes",[r.ElementRef])],t)}()},"./src/pie-chart/pie-chart.component.scss":function(t,e,n){var r=n('./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/pie-chart/pie-chart.component.scss');t.exports="string"==typeof r?r:r.toString()},"./src/pie-chart/pie-chart.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("@angular/core"),i=(n.n(r),n("./src/common/view-dimensions.helper.ts")),o=n("./src/common/color.helper.ts"),s=n("./src/common/base-chart.component.ts"),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},u=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.labels=!1,e.legend=!1,e.legendTitle="Legend",e.explodeSlices=!1,e.doughnut=!1,e.arcWidth=.25,e.activeEntries=[],e.tooltipDisabled=!1,e.select=new r.EventEmitter,e.activate=new r.EventEmitter,e.deactivate=new r.EventEmitter,e.margin=[20,20,20,20],e}return a(e,t),e.prototype.update=function(){var e=this;t.prototype.update.call(this),this.labels&&(this.margin=[30,80,30,80]),this.dims=Object(i.a)({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend});var n=this.margin[3]+this.dims.width/2,r=this.margin[0]+this.dims.height/2;this.translation="translate("+n+", "+r+")",this.outerRadius=Math.min(this.dims.width,this.dims.height),this.labels?this.outerRadius/=3:this.outerRadius/=2,this.innerRadius=0,this.doughnut&&(this.innerRadius=this.outerRadius*(1-this.arcWidth)),this.domain=this.getDomain(),this.data=this.results.sort(function(t,n){return e.domain.indexOf(t.name)-e.domain.indexOf(n.name)}),this.setColors(),this.legendOptions=this.getLegendOptions()},e.prototype.getDomain=function(){var t=[];return this.results.map(function(e){var n=e.name;n="Date"===n.constructor.name?n.toLocaleDateString():n.toLocaleString(),-1===t.indexOf(n)&&t.push(n)}),t},e.prototype.onClick=function(t){this.select.emit(t)},e.prototype.setColors=function(){this.colors=new o.a(this.scheme,"ordinal",this.domain,this.customColors)},e.prototype.getLegendOptions=function(){return{scaleType:"ordinal",domain:this.domain,colors:this.colors,title:this.legendTitle}},e.prototype.onActivate=function(t){this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value})>-1||(this.activeEntries=[t].concat(this.activeEntries),this.activate.emit({value:t,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t){var e=this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value});this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},c([Object(r.Input)(),u("design:type",Object)],e.prototype,"labels",void 0),c([Object(r.Input)(),u("design:type",Object)],e.prototype,"legend",void 0),c([Object(r.Input)(),u("design:type",String)],e.prototype,"legendTitle",void 0),c([Object(r.Input)(),u("design:type",Object)],e.prototype,"explodeSlices",void 0),c([Object(r.Input)(),u("design:type",Object)],e.prototype,"doughnut",void 0),c([Object(r.Input)(),u("design:type",Object)],e.prototype,"arcWidth",void 0),c([Object(r.Input)(),u("design:type",Boolean)],e.prototype,"gradient",void 0),c([Object(r.Input)(),u("design:type",Array)],e.prototype,"activeEntries",void 0),c([Object(r.Input)(),u("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),c([Object(r.Input)(),u("design:type",Object)],e.prototype,"labelFormatting",void 0),c([Object(r.Input)(),u("design:type",Object)],e.prototype,"tooltipText",void 0),c([Object(r.Output)(),u("design:type",Object)],e.prototype,"select",void 0),c([Object(r.Output)(),u("design:type",r.EventEmitter)],e.prototype,"activate",void 0),c([Object(r.Output)(),u("design:type",r.EventEmitter)],e.prototype,"deactivate",void 0),c([Object(r.ContentChild)("tooltipTemplate"),u("design:type",r.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=c([Object(r.Component)({selector:"ngx-charts-pie-chart",template:'\n <ngx-charts-chart\n [view]="[width, height]"\n [showLegend]="legend"\n [legendOptions]="legendOptions"\n [activeEntries]="activeEntries"\n [animations]="animations"\n (legendLabelActivate)="onActivate($event)"\n (legendLabelDeactivate)="onDeactivate($event)"\n (legendLabelClick)="onClick($event)">\n <svg:g [attr.transform]="translation" class="pie-chart chart">\n <svg:g ngx-charts-pie-series\n [colors]="colors"\n [showLabels]="labels"\n [labelFormatting]="labelFormatting"\n [series]="data"\n [activeEntries]="activeEntries"\n [innerRadius]="innerRadius"\n [outerRadius]="outerRadius"\n [explodeSlices]="explodeSlices"\n [gradient]="gradient"\n [animations]="animations"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="tooltipTemplate"\n [tooltipText]="tooltipText"\n (select)="onClick($event)"\n (activate)="onActivate($event)"\n (deactivate)="onDeactivate($event)"\n />\n </svg:g>\n </ngx-charts-chart>\n ',styles:[n("./src/common/base-chart.component.scss"),n("./src/pie-chart/pie-chart.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush})],e)}(s.a)},"./src/pie-chart/pie-chart.module.ts":function(t,e,n){"use strict";n.d(e,"d",function(){return d});var r=n("@angular/core"),i=(n.n(r),n("./src/common/chart-common.module.ts")),o=n("./src/pie-chart/advanced-pie-chart.component.ts"),s=n("./src/pie-chart/pie-label.component.ts"),a=n("./src/pie-chart/pie-arc.component.ts"),c=n("./src/pie-chart/pie-chart.component.ts"),u=n("./src/pie-chart/pie-grid.component.ts"),l=n("./src/pie-chart/pie-grid-series.component.ts"),p=n("./src/pie-chart/pie-series.component.ts");n.d(e,"a",function(){return o.a}),n.d(e,"g",function(){return s.a}),n.d(e,"b",function(){return a.a}),n.d(e,"c",function(){return c.a}),n.d(e,"e",function(){return u.a}),n.d(e,"f",function(){return l.a}),n.d(e,"h",function(){return p.a});var h=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},d=function(){function t(){}return t=h([Object(r.NgModule)({imports:[i.a],declarations:[o.a,s.a,a.a,c.a,u.a,l.a,p.a],exports:[o.a,s.a,a.a,c.a,u.a,l.a,p.a]})],t)}()},"./src/pie-chart/pie-grid-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("@angular/core"),i=(n.n(r),n("d3-shape")),o=(n.n(i),this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}),s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(t){this.innerRadius=70,this.outerRadius=80,this.animations=!0,this.select=new r.EventEmitter,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.layout=Object(i.pie)().value(function(t){return t.data.value}).sort(null),this.arcs=this.getArcs()},t.prototype.getArcs=function(){var t=this;return this.layout(this.data).map(function(e,n){var r=e.data.data.name,i=e.data.data.other;0===n&&(e.startAngle=0);var o=t.colors(r);return{data:e.data.data,class:"arc arc"+n,fill:o,startAngle:i?0:e.startAngle,endAngle:e.endAngle,animate:t.animations&&!i,pointerEvents:!i}})},t.prototype.onClick=function(t){this.select.emit({name:this.data[0].data.name,value:this.data[0].data.value})},t.prototype.trackBy=function(t,e){return e.data.name},t.prototype.label=function(t){return t.data.name},t.prototype.color=function(t){return this.colors(this.label(t))},o([Object(r.Input)(),s("design:type",Object)],t.prototype,"colors",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"data",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"innerRadius",void 0),o([Object(r.Input)(),s("design:type",Object)],t.prototype,"outerRadius",void 0),o([Object(r.Input)(),s("design:type",Boolean)],t.prototype,"animations",void 0),o([Object(r.Output)(),s("design:type",Object)],t.prototype,"select",void 0),t=o([Object(r.Component)({selector:"g[ngx-charts-pie-grid-series]",template:'\n <svg:g class="pie-grid-arcs">\n <svg:g ngx-charts-pie-arc *ngFor="let arc of arcs; trackBy:trackBy"\n [attr.class]="arc.class"\n [startAngle]="arc.startAngle"\n [endAngle]="arc.endAngle"\n [innerRadius]="innerRadius"\n [outerRadius]="outerRadius"\n [fill]="color(arc)"\n [value]="arc.data.value"\n [data]="arc.data"\n [max]="max"\n [gradient]="false"\n [pointerEvents]="arc.pointerEvents"\n [animate]="arc.animate"\n (select)="onClick($event)">\n </svg:g>\n </svg:g>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush}),s("design:paramtypes",[r.ElementRef])],t)}()},"./src/pie-chart/pie-grid.component.scss":function(t,e,n){var r=n('./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/pie-chart/pie-grid.component.scss');t.exports="string"==typeof r?r:r.toString()},"./src/pie-chart/pie-grid.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return y});var r=n("@angular/core"),i=(n.n(r),n("d3-array")),o=(n.n(i),n("d3-format")),s=(n.n(o),n("./src/common/view-dimensions.helper.ts")),a=n("./src/common/color.helper.ts"),c=n("./src/common/base-chart.component.ts"),u=n("./src/common/trim-label.helper.ts"),l=n("./src/common/grid-layout.helper.ts"),p=n("./src/common/label.helper.ts"),h=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),d=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},f=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.tooltipDisabled=!1,e.margin=[20,20,20,20],e}return h(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=Object(s.a)({width:this.width,height:this.height,margins:this.margin}),this.domain=this.getDomain(),this.data=Object(l.a)(this.dims,this.results,150,this.designatedTotal),this.transform="translate("+this.margin[3]+" , "+this.margin[0]+")",this.series=this.getSeries(),this.setColors(),this.tooltipText=this.tooltipText||this.defaultTooltipText},e.prototype.defaultTooltipText=function(t){var e=t.data;return'\n <span class="tooltip-label">'+Object(u.a)(Object(p.a)(e.name))+'</span>\n <span class="tooltip-val">'+e.value.toLocaleString()+"</span>\n "},e.prototype.getDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.getSeries=function(){var t=this,e=this.designatedTotal?this.designatedTotal:this.getTotal();return this.data.map(function(n){var r=n.data.name,s=Object(p.a)(r),a=n.data.value,c=Object(i.min)([n.width-10,n.height-20])/2-5,l=.9*c,h=0;return{transform:"translate("+(n.x+(n.width-10)/2)+", "+(n.y+(n.height-20)/2)+")",colors:function(){return 1===(h+=1)?"rgba(100,100,100,0.3)":t.colorScale.getColor(s)},innerRadius:l,outerRadius:c,name:r,label:Object(u.a)(s),total:a,value:a,percent:Object(o.format)(".1%")(n.data.percent),data:[n,{data:{other:!0,value:e-a,name:n.data.name}}]}})},e.prototype.getTotal=function(){return this.results.map(function(t){return t.value}).reduce(function(t,e){return t+e},0)},e.prototype.onClick=function(t){this.select.emit(t)},e.prototype.setColors=function(){this.colorScale=new a.a(this.scheme,"ordinal",this.domain,this.customColors)},d([Object(r.Input)(),f("design:type",Number)],e.prototype,"designatedTotal",void 0),d([Object(r.Input)(),f("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),d([Object(r.Input)(),f("design:type",Function)],e.prototype,"tooltipText",void 0),d([Object(r.ContentChild)("tooltipTemplate"),f("design:type",r.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=d([Object(r.Component)({selector:"ngx-charts-pie-grid",template:'\n <ngx-charts-chart\n [view]="[width, height]"\n [showLegend]="false"\n [animations]="animations">\n <svg:g [attr.transform]="transform" class="pie-grid chart">\n <svg:g\n *ngFor="let series of series"\n class="pie-grid-item"\n [attr.transform]="series.transform">\n <svg:g ngx-charts-pie-grid-series\n [colors]="series.colors"\n [data]="series.data"\n [innerRadius]="series.innerRadius"\n [outerRadius]="series.outerRadius"\n [animations]="animations"\n (select)="onClick($event)"\n ngx-tooltip\n [tooltipDisabled]="tooltipDisabled"\n [tooltipPlacement]="\'top\'"\n [tooltipType]="\'tooltip\'"\n [tooltipTitle]="tooltipTemplate ? undefined : tooltipText({data: series})"\n [tooltipTemplate]="tooltipTemplate"\n [tooltipContext]="series.data[0].data"\n />\n <svg:text *ngIf="animations"\n class="label percent-label"\n dy="-0.5em"\n x="0"\n y="5"\n ngx-charts-count-up\n [countTo]="series.percent"\n [countSuffix]="\'%\'"\n text-anchor="middle">\n </svg:text>\n <svg:text *ngIf="!animations"\n class="label percent-label"\n dy="-0.5em"\n x="0"\n y="5"\n text-anchor="middle">\n {{series.percent.toLocaleString()}}%\n </svg:text>\n <svg:text\n class="label"\n dy="0.5em"\n x="0"\n y="5"\n text-anchor="middle">\n {{series.label}}\n </svg:text>\n <svg:text *ngIf="animations"\n class="label"\n dy="1.23em"\n x="0"\n [attr.y]="series.outerRadius"\n text-anchor="middle"\n ngx-charts-count-up\n [countTo]="series.total"\n [countPrefix]="\'Total: \'">\n </svg:text>\n <svg:text *ngIf="!animations"\n class="label"\n dy="1.23em"\n x="0"\n [attr.y]="series.outerRadius"\n text-anchor="middle">\n Total: {{series.total.toLocaleString()}}\n </svg:text>\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ',styles:[n("./src/common/base-chart.component.scss"),n("./src/pie-chart/pie-grid.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush})],e)}(c.a)},"./src/pie-chart/pie-label.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("@angular/core"),i=(n.n(r),n("d3-shape")),o=(n.n(i),n("./src/common/trim-label.helper.ts")),s=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(){this.animations=!0,this.isIE=/(edge|msie|trident)/i.test(navigator.userAgent),this.trimLabel=o.a}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){var t=this.radius;this.explodeSlices&&(t=this.radius*this.value/this.max);var e=Object(i.arc)().innerRadius(t).outerRadius(t).centroid(this.data),n=this.data.pos[1]/e[1];0!==this.data.pos[1]&&0!==e[1]||(n=1);var r=[n*e[0],n*e[1]];this.line="M"+e+"L"+r+"L"+this.data.pos},Object.defineProperty(t.prototype,"textX",{get:function(){return this.data.pos[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textY",{get:function(){return this.data.pos[1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"styleTransform",{get:function(){return this.isIE?null:"translate3d("+this.textX+"px,"+this.textY+"px, 0)"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"attrTransform",{get:function(){return this.isIE?"translate("+this.textX+","+this.textY+")":null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textTransition",{get:function(){return this.isIE||!this.animations?null:"transform 0.75s"},enumerable:!0,configurable:!0}),t.prototype.textAnchor=function(){return this.midAngle(this.data)<Math.PI?"start":"end"},t.prototype.midAngle=function(t){return t.startAngle+(t.endAngle-t.startAngle)/2},s([Object(r.Input)(),a("design:type",Object)],t.prototype,"data",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"radius",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"label",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"color",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"max",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"value",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"explodeSlices",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"animations",void 0),t=s([Object(r.Component)({selector:"g[ngx-charts-pie-label]",template:'\n <title>{{label}}</title>\n <svg:g\n [attr.transform]="attrTransform"\n [style.transform]="styleTransform"\n [style.transition]="textTransition">\n <svg:text\n class="pie-label"\n [class.animation]="animations"\n dy=".35em"\n [style.textAnchor]="textAnchor()"\n [style.shapeRendering]="\'crispEdges\'">\n {{trimLabel(label, 10)}}\n </svg:text>\n </svg:g>\n <svg:path\n [attr.d]="line"\n [attr.stroke]="color"\n fill="none"\n class="pie-label-line line"\n [class.animation]="animations">\n </svg:path>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush}),a("design:paramtypes",[])],t)}()},"./src/pie-chart/pie-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("@angular/core"),i=(n.n(r),n("d3-array")),o=(n.n(i),n("d3-shape")),s=(n.n(o),n("./src/common/label.helper.ts")),a=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},c=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},u=function(){function t(){this.series=[],this.innerRadius=60,this.outerRadius=80,this.tooltipDisabled=!1,this.animations=!0,this.select=new r.EventEmitter,this.activate=new r.EventEmitter,this.deactivate=new r.EventEmitter}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){var t=Object(o.pie)().value(function(t){return t.value}).sort(null)(this.series);this.max=Object(i.max)(t,function(t){return t.value}),this.data=this.calculateLabelPositions(t),this.tooltipText=this.tooltipText||this.defaultTooltipText},t.prototype.midAngle=function(t){return t.startAngle+(t.endAngle-t.startAngle)/2},t.prototype.outerArc=function(){return Object(o.arc)().innerRadius(1.5*this.outerRadius).outerRadius(1.5*this.outerRadius)},t.prototype.calculateLabelPositions=function(t){var e=this,n=t;n.forEach(function(t){t.pos=e.outerArc().centroid(t),t.pos[0]=1.5*e.outerRadius*(e.midAngle(t)<Math.PI?1:-1)});for(var r=0;r<n.length-1;r++)for(var i=n[r],o=r+1;o<n.length;o++){var s=n[o];if(s.pos[0]*i.pos[0]>0){var a=10-Math.abs(s.pos[1]-i.pos[1]);a>0&&(s.pos[1]+=Math.sign(s.pos[0])*a)}}return n},t.prototype.labelVisible=function(t){return this.showLabels&&t.endAngle-t.startAngle>Math.PI/30},t.prototype.labelText=function(t){return this.labelFormatting?this.labelFormatting(t.data.name):this.label(t)},t.prototype.label=function(t){return Object(s.a)(t.data.name)},t.prototype.defaultTooltipText=function(t){return'\n <span class="tooltip-label">'+this.label(t)+'</span>\n <span class="tooltip-val">'+Object(s.a)(t.data.value)+"</span>\n "},t.prototype.color=function(t){return this.colors.getColor(this.label(t))},t.prototype.trackBy=function(t,e){return e.data.name},t.prototype.onClick=function(t){this.select.emit(t)},t.prototype.isActive=function(t){if(!this.activeEntries)return!1;return void 0!==this.activeEntries.find(function(e){return t.name===e.name&&t.series===e.series})},a([Object(r.Input)(),c("design:type",Object)],t.prototype,"colors",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"series",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"dims",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"innerRadius",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"outerRadius",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"explodeSlices",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"showLabels",void 0),a([Object(r.Input)(),c("design:type",Boolean)],t.prototype,"gradient",void 0),a([Object(r.Input)(),c("design:type",Array)],t.prototype,"activeEntries",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"labelFormatting",void 0),a([Object(r.Input)(),c("design:type",Function)],t.prototype,"tooltipText",void 0),a([Object(r.Input)(),c("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),a([Object(r.Input)(),c("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),a([Object(r.Input)(),c("design:type",Boolean)],t.prototype,"animations",void 0),a([Object(r.Output)(),c("design:type",Object)],t.prototype,"select",void 0),a([Object(r.Output)(),c("design:type",Object)],t.prototype,"activate",void 0),a([Object(r.Output)(),c("design:type",Object)],t.prototype,"deactivate",void 0),t=a([Object(r.Component)({selector:"g[ngx-charts-pie-series]",template:'\n <svg:g *ngFor="let arc of data; trackBy:trackBy">\n <svg:g ngx-charts-pie-label\n *ngIf="labelVisible(arc)"\n [data]="arc"\n [radius]="outerRadius"\n [color]="color(arc)"\n [label]="labelText(arc)"\n [max]="max"\n [value]="arc.value"\n [explodeSlices]="explodeSlices"\n [animations]="animations">\n </svg:g>\n <svg:g\n ngx-charts-pie-arc\n [startAngle]="arc.startAngle"\n [endAngle]="arc.endAngle"\n [innerRadius]="innerRadius"\n [outerRadius]="outerRadius"\n [fill]="color(arc)"\n [value]="arc.data.value"\n [gradient]="gradient"\n [data]="arc.data"\n [max]="max"\n [explodeSlices]="explodeSlices"\n [isActive]="isActive(arc.data)"\n [animate]="animations"\n (select)="onClick($event)"\n (activate)="activate.emit($event)"\n (deactivate)="deactivate.emit($event)"\n ngx-tooltip\n [tooltipDisabled]="tooltipDisabled"\n [tooltipPlacement]="\'top\'"\n [tooltipType]="\'tooltip\'"\n [tooltipTitle]="tooltipTemplate ? undefined : tooltipText(arc)"\n [tooltipTemplate]="tooltipTemplate"\n [tooltipContext]="arc.data">\n </svg:g>\n </svg:g>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush})],t)}()},"./src/polar-chart/index.ts":function(t,e,n){"use strict";var r=n("./src/polar-chart/polar-chart.module.ts");n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b}),n.d(e,"c",function(){return r.c});n("./src/polar-chart/polar-chart.component.ts"),n("./src/polar-chart/polar-series.component.ts")},"./src/polar-chart/polar-chart.component.scss":function(t,e,n){var r=n('./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/polar-chart/polar-chart.component.scss');t.exports="string"==typeof r?r:r.toString()},"./src/polar-chart/polar-chart.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return g});var r=n("@angular/core"),i=(n.n(r),n("@angular/animations")),o=(n.n(i),n("d3-scale")),s=(n.n(o),n("d3-shape")),a=(n.n(s),n("./src/common/view-dimensions.helper.ts")),c=n("./src/common/color.helper.ts"),u=n("./src/common/base-chart.component.ts"),l=n("./src/utils/types.ts"),p=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},d=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},f=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},y=2*Math.PI,g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legendTitle="Legend",e.showGridLines=!0,e.curve=s.curveCardinalClosed,e.activeEntries=[],e.rangeFillOpacity=.15,e.roundDomains=!1,e.tooltipDisabled=!1,e.showSeriesOnHover=!0,e.gradient=!1,e.yAxisMinScale=0,e.activate=new r.EventEmitter,e.deactivate=new r.EventEmitter,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e}return p(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.setDims(),this.setScales(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.setTicks()},e.prototype.setDims=function(){this.dims=Object(a.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType});var t=~~(this.dims.width/2),e=~~(this.dims.height/2),n=this.outerRadius=Math.min(e/1.5,t/1.5),r=Math.max(0,e-n);this.yAxisDims=h({},this.dims,{width:t}),this.transform="translate("+this.dims.xOffset+", "+this.margin[0]+")",this.transformYAxis="translate(0, "+r+")",this.labelOffset=this.dims.height+40,this.transformPlot="translate("+t+", "+e+")"},e.prototype.setScales=function(){var t=this.getXValues();this.scaleType=this.getScaleType(t),this.xDomain=this.filteredDomain||this.getXDomain(t),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,y),this.yScale=this.getYScale(this.yDomain,this.outerRadius),this.yAxisScale=this.getYScale(this.yDomain.reverse(),this.outerRadius)},e.prototype.setTicks=function(){var t,e=this;t=this.xAxisTickFormatting?this.xAxisTickFormatting:this.xScale.tickFormat?this.xScale.tickFormat.apply(this.xScale,[5]):function(t){return Object(l.a)(t)?t.toLocaleDateString():t.toLocaleString()};var n=this.outerRadius;this.thetaTicks=this.xDomain.map(function(r){var i=e.xScale(r),o=1.1*n*(i>Math.PI?-1:1),s=t(r),a=[n*Math.sin(i),-n*Math.cos(i)];return{innerRadius:0,outerRadius:n,startAngle:i,endAngle:i,value:n,label:s,startPos:a,pos:[o,1.1*a[1]]}});for(var r=0;r<this.thetaTicks.length-1;r++)for(var i=this.thetaTicks[r],o=r+1;o<this.thetaTicks.length;o++){var s=this.thetaTicks[o];if(s.pos[0]*i.pos[0]>0){var a=10-Math.abs(s.pos[1]-i.pos[1]);a>0&&(s.pos[1]+=Math.sign(s.pos[0])*a)}}this.radiusTicks=this.yAxisScale.ticks(~~(this.dims.height/50)).map(function(t){return e.yScale(t)})},e.prototype.getXValues=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var r=0,i=n[e].series;r<i.length;r++){var o=i[r];t.includes(o.name)||t.push(o.name)}return t},e.prototype.getXDomain=function(t){if(void 0===t&&(t=this.getXValues()),"time"===this.scaleType){return[Math.min.apply(Math,t),Math.max.apply(Math,t)]}if("linear"===this.scaleType){t=t.map(function(t){return Number(t)});return[Math.min.apply(Math,t),Math.max.apply(Math,t)]}return t},e.prototype.getYValues=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var r=0,i=n[e].series;r<i.length;r++){var o=i[r];t.indexOf(o.value)<0&&t.push(o.value),void 0!==o.min&&t.indexOf(o.min)<0&&t.push(o.min),void 0!==o.max&&t.indexOf(o.max)<0&&t.push(o.max)}return t},e.prototype.getYDomain=function(t){void 0===t&&(t=this.getYValues());var e=Math.min.apply(Math,t),n=Math.max.apply(Math,[this.yAxisMinScale].concat(t));return e=Math.max(0,e),this.autoScale||(e=Math.min(0,e)),[e,n]},e.prototype.getSeriesDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.getXScale=function(t,e){switch(this.scaleType){case"time":return Object(o.scaleTime)().range([0,e]).domain(t);case"linear":var n=Object(o.scaleLinear)().range([0,e]).domain(t);return this.roundDomains?n.nice():n;default:return Object(o.scalePoint)().range([0,e-y/t.length]).padding(0).domain(t)}},e.prototype.getYScale=function(t,e){var n=Object(o.scaleLinear)().range([0,e]).domain(t);return this.roundDomains?n.nice():n},e.prototype.getScaleType=function(t){for(var e=!0,n=!0,r=0,i=t;r<i.length;r++){var o=i[r];Object(l.a)(o)||(e=!1),Object(l.b)(o)||(n=!1)}return e?"time":n?"linear":"ordinal"},e.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},e.prototype.setColors=function(){var t="ordinal"===this.schemeType?this.seriesDomain:this.yDomain.reverse();this.colors=new c.a(this.scheme,this.schemeType,t,this.customColors)},e.prototype.getLegendOptions=function(){return"ordinal"===this.schemeType?{scaleType:this.schemeType,colors:this.colors,domain:this.seriesDomain,title:this.legendTitle}:{scaleType:this.schemeType,colors:this.colors.scale,domain:this.yDomain,title:void 0}},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t){this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value})>-1||(this.activeEntries=this.showSeriesOnHover?[t].concat(this.activeEntries):this.activeEntries,this.activate.emit({value:t,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t){var e=this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value});this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},e.prototype.deactivateAll=function(){this.activeEntries=this.activeEntries.slice();for(var t=0,e=this.activeEntries;t<e.length;t++){var n=e[t];this.deactivate.emit({value:n,entries:[]})}this.activeEntries=[]},e.prototype.trackBy=function(t,e){return e.name},d([Object(r.Input)(),f("design:type",Boolean)],e.prototype,"legend",void 0),d([Object(r.Input)(),f("design:type",String)],e.prototype,"legendTitle",void 0),d([Object(r.Input)(),f("design:type",Boolean)],e.prototype,"xAxis",void 0),d([Object(r.Input)(),f("design:type",Boolean)],e.prototype,"yAxis",void 0),d([Object(r.Input)(),f("design:type",Boolean)],e.prototype,"showXAxisLabel",void 0),d([Object(r.Input)(),f("design:type",Boolean)],e.prototype,"showYAxisLabel",void 0),d([Object(r.Input)(),f("design:type",String)],e.prototype,"xAxisLabel",void 0),d([Object(r.Input)(),f("design:type",String)],e.prototype,"yAxisLabel",void 0),d([Object(r.Input)(),f("design:type",Boolean)],e.prototype,"autoScale",void 0),d([Object(r.Input)(),f("design:type",Boolean)],e.prototype,"showGridLines",void 0),d([Object(r.Input)(),f("design:type",Object)],e.prototype,"curve",void 0),d([Object(r.Input)(),f("design:type",Array)],e.prototype,"activeEntries",void 0),d([Object(r.Input)(),f("design:type",String)],e.prototype,"schemeType",void 0),d([Object(r.Input)(),f("design:type",Number)],e.prototype,"rangeFillOpacity",void 0),d([Object(r.Input)(),f("design:type",Function)],e.prototype,"xAxisTickFormatting",void 0),d([Object(r.Input)(),f("design:type",Function)],e.prototype,"yAxisTickFormatting",void 0),d([Object(r.Input)(),f("design:type",Boolean)],e.prototype,"roundDomains",void 0),d([Object(r.Input)(),f("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),d([Object(r.Input)(),f("design:type",Boolean)],e.prototype,"showSeriesOnHover",void 0),d([Object(r.Input)(),f("design:type",Boolean)],e.prototype,"gradient",void 0),d([Object(r.Input)(),f("design:type",Number)],e.prototype,"yAxisMinScale",void 0),d([Object(r.Output)(),f("design:type",r.EventEmitter)],e.prototype,"activate",void 0),d([Object(r.Output)(),f("design:type",r.EventEmitter)],e.prototype,"deactivate",void 0),d([Object(r.ContentChild)("tooltipTemplate"),f("design:type",r.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=d([Object(r.Component)({selector:"ngx-charts-polar-chart",template:'\n <ngx-charts-chart\n [view]="[width, height]"\n [showLegend]="legend"\n [legendOptions]="legendOptions"\n [activeEntries]="activeEntries"\n [animations]="animations"\n (legendLabelClick)="onClick($event)"\n (legendLabelActivate)="onActivate($event)"\n (legendLabelDeactivate)="onDeactivate($event)">\n <svg:g class="polar-chart chart" [attr.transform]="transform">\n <svg:g [attr.transform]="transformPlot">\n <svg:circle\n class="polar-chart-background"\n cx="0" cy="0"\n [attr.r]="this.outerRadius" />\n <svg:g *ngIf="showGridLines">\n <svg:circle\n *ngFor="let r of radiusTicks"\n class="gridline-path radial-gridline-path"\n cx="0" cy="0"\n [attr.r]="r" />\n </svg:g>\n <svg:g *ngIf="xAxis">\n <svg:g ngx-charts-pie-label\n *ngFor="let tick of thetaTicks"\n [data]="tick"\n [radius]="outerRadius"\n [label]="tick.label"\n [max]="outerRadius"\n [value]="showGridLines ? 1 : outerRadius"\n [explodeSlices]="true"\n [animations]="animations">\n </svg:g>\n </svg:g>\n </svg:g>\n <svg:g ngx-charts-y-axis\n [attr.transform]="transformYAxis"\n *ngIf="yAxis"\n [yScale]="yAxisScale"\n [dims]="yAxisDims"\n [showGridLines]="showGridLines"\n [showLabel]="showYAxisLabel"\n [labelText]="yAxisLabel"\n [tickFormatting]="yAxisTickFormatting"\n (dimensionsChanged)="updateYAxisWidth($event)">\n </svg:g>\n <svg:g ngx-charts-axis-label\n *ngIf="xAxis && showXAxisLabel"\n [label]="xAxisLabel"\n [offset]="labelOffset"\n [orient]="\'bottom\'"\n [height]="dims.height"\n [width]="dims.width">\n </svg:g>\n <svg:g [attr.transform]="transformPlot">\n <svg:g *ngFor="let series of results; trackBy:trackBy" [@animationState]="\'active\'">\n <svg:g ngx-charts-polar-series\n [gradient]="gradient"\n [xScale]="xScale"\n [yScale]="yScale"\n [colors]="colors"\n [data]="series"\n [activeEntries]="activeEntries"\n [scaleType]="scaleType"\n [curve]="curve"\n [rangeFillOpacity]="rangeFillOpacity"\n [animations]="animations"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="tooltipTemplate"\n />\n </svg:g>\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ',styles:[n("./src/common/base-chart.component.scss"),n("./src/pie-chart/pie-chart.component.scss"),n("./src/polar-chart/polar-chart.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush,animations:[Object(i.trigger)("animationState",[Object(i.transition)(":leave",[Object(i.style)({opacity:1}),Object(i.animate)(500,Object(i.style)({opacity:0}))])])]})],e)}(u.a)},"./src/polar-chart/polar-chart.module.ts":function(t,e,n){"use strict";n.d(e,"b",function(){return l});var r=n("@angular/core"),i=(n.n(r),n("./src/common/chart-common.module.ts")),o=n("./src/polar-chart/polar-chart.component.ts"),s=n("./src/polar-chart/polar-series.component.ts"),a=n("./src/pie-chart/index.ts"),c=n("./src/line-chart/index.ts");n.d(e,"a",function(){return o.a}),n.d(e,"c",function(){return s.a});var u=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},l=function(){function t(){}return t=u([Object(r.NgModule)({imports:[i.a,a.d,c.b],declarations:[o.a,s.a],exports:[o.a,s.a]})],t)}()},"./src/polar-chart/polar-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("@angular/core"),i=(n.n(r),n("d3-shape")),o=(n.n(i),n("./src/utils/id.ts")),s=n("./src/utils/sort.ts"),a=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},c=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},u=function(){function t(){this.tooltipDisabled=!1,this.gradient=!1,this.animations=!0,this.circleRadius=3}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){var t=this;this.updateGradients();var e=this.getLineGenerator(),n=this.sortData(this.data.series),r=this.data.name,i="linear"===this.colors.scaleType,o=this.yScale.domain()[0];this.seriesColor=this.colors.getColor(i?o:r),this.path=e(n)||"",this.circles=n.map(function(e){var n=t.getAngle(e),o=t.getRadius(e),s=e.value,a=t.colors.getColor(i?Math.abs(s):r);return{data:{series:r,value:s,name:e.name},cx:o*Math.sin(n),cy:-o*Math.cos(n),value:s,color:a,label:e.name}}),this.active=this.isActive(this.data),this.inactive=this.isInactive(this.data),this.tooltipText=this.tooltipText||function(e){return t.defaultTooltipText(e)}},t.prototype.getAngle=function(t){var e=t.name;return"time"===this.scaleType?this.xScale(e):"linear"===this.scaleType?this.xScale(Number(e)):this.xScale(e)},t.prototype.getRadius=function(t){return this.yScale(t.value)},t.prototype.getLineGenerator=function(){var t=this;return Object(i.radialLine)().angle(function(e){return t.getAngle(e)}).radius(function(e){return t.getRadius(e)}).curve(this.curve)},t.prototype.sortData=function(t){return"linear"===this.scaleType?Object(s.c)(t,"name"):"time"===this.scaleType?Object(s.b)(t,"name"):Object(s.a)(t,"name","asc",this.xScale.domain())},t.prototype.isActive=function(t){if(!this.activeEntries)return!1;return void 0!==this.activeEntries.find(function(e){return t.name===e.name})},t.prototype.isInactive=function(t){if(!this.activeEntries||0===this.activeEntries.length)return!1;return void 0===this.activeEntries.find(function(e){return t.name===e.name})},t.prototype.defaultTooltipText=function(t){var e=t.label,n=t.value;return'\n <span class="tooltip-label">'+this.data.name+" \u2022 "+e+'</span>\n <span class="tooltip-val">'+n.toLocaleString()+"</span>\n "},t.prototype.updateGradients=function(){if(this.hasGradient=this.gradient||"linear"===this.colors.scaleType,this.hasGradient)if(this.gradientId="grad"+Object(o.a)().toString(),this.gradientUrl="url(#"+this.gradientId+")","linear"===this.colors.scaleType){var t=this.data.series.map(function(t){return t.value}),e=Math.max.apply(Math,t),n=Math.min.apply(Math,t);this.gradientStops=this.colors.getLinearGradientStops(e,n)}else this.gradientStops=void 0},a([Object(r.Input)(),c("design:type",Object)],t.prototype,"name",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"data",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"xScale",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"yScale",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"colors",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"scaleType",void 0),a([Object(r.Input)(),c("design:type",Object)],t.prototype,"curve",void 0),a([Object(r.Input)(),c("design:type",Array)],t.prototype,"activeEntries",void 0),a([Object(r.Input)(),c("design:type",Number)],t.prototype,"rangeFillOpacity",void 0),a([Object(r.Input)(),c("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),a([Object(r.Input)(),c("design:type",Function)],t.prototype,"tooltipText",void 0),a([Object(r.Input)(),c("design:type",Boolean)],t.prototype,"gradient",void 0),a([Object(r.Input)(),c("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),a([Object(r.Input)(),c("design:type",Boolean)],t.prototype,"animations",void 0),t=a([Object(r.Component)({selector:"g[ngx-charts-polar-series]",template:'\n <svg:g class="polar-charts-series">\n <defs>\n <svg:g ngx-charts-svg-radial-gradient *ngIf="hasGradient"\n orientation="vertical"\n [color]="seriesColor"\n [name]="gradientId"\n [startOpacity]="0.25"\n [endOpacity]="1"\n [stops]="gradientStops"\n />\n </defs>\n <svg:g ngx-charts-line\n class="polar-series-path"\n [path]="path"\n [stroke]="hasGradient ? gradientUrl : seriesColor"\n [class.active]="active"\n [class.inactive]="inactive"\n [attr.fill-opacity]="rangeFillOpacity"\n [fill]="hasGradient ? gradientUrl : seriesColor"\n [animations]="animations"\n />\n <svg:g ngx-charts-circle\n *ngFor="let circle of circles"\n class="circle"\n [cx]="circle.cx"\n [cy]="circle.cy"\n [r]="circleRadius"\n [fill]="circle.color"\n [style.opacity]="inactive ? 0.2 : 1"\n ngx-tooltip\n [tooltipDisabled]="tooltipDisabled"\n [tooltipPlacement]="\'top\'"\n tooltipType="tooltip"\n [tooltipTitle]="tooltipTemplate ? undefined : tooltipText(circle)"\n [tooltipTemplate]="tooltipTemplate"\n [tooltipContext]="circle.data">\n </svg:g>\n </svg:g>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush})],t)}()},"./src/polyfills.ts":function(t,e,n){"use strict";"undefined"!=typeof SVGElement&&"undefined"==typeof SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)},"./src/tree-map/index.ts":function(t,e,n){"use strict";var r=n("./src/tree-map/tree-map.module.ts");n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b}),n.d(e,"c",function(){return r.c}),n.d(e,"d",function(){return r.d});n("./src/tree-map/tree-map.component.ts"),n("./src/tree-map/tree-map-cell.component.ts"),n("./src/tree-map/tree-map-cell-series.component.ts")},"./src/tree-map/tree-map-cell-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("@angular/core"),i=(n.n(r),this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(){this.gradient=!1,this.tooltipDisabled=!1,this.animations=!0,this.select=new r.EventEmitter}return t.prototype.ngOnChanges=function(t){this.cells=this.getCells()},t.prototype.getCells=function(){var t=this;return this.data.children.filter(function(t){return 1===t.depth}).map(function(e,n){var r=e.id;return{data:{name:r,value:e.value},x:e.x0,y:e.y0,width:e.x1-e.x0,height:e.y1-e.y0,fill:t.colors.getColor(r),label:r,value:e.value,valueType:e.valueType}})},t.prototype.getTooltipText=function(t){return'\n <span class="tooltip-label">'+t.label+'</span>\n <span class="tooltip-val">'+t.value.toLocaleString()+"</span>\n "},t.prototype.onClick=function(t){this.select.emit(t)},t.prototype.trackBy=function(t,e){return e.label},i([Object(r.Input)(),o("design:type",Object)],t.prototype,"data",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"dims",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"colors",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"valueFormatting",void 0),i([Object(r.Input)(),o("design:type",Object)],t.prototype,"labelFormatting",void 0),i([Object(r.Input)(),o("design:type",Boolean)],t.prototype,"gradient",void 0),i([Object(r.Input)(),o("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),i([Object(r.Input)(),o("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),i([Object(r.Input)(),o("design:type",Boolean)],t.prototype,"animations",void 0),i([Object(r.Output)(),o("design:type",Object)],t.prototype,"select",void 0),t=i([Object(r.Component)({selector:"g[ngx-charts-tree-map-cell-series]",template:'\n <svg:g ngx-charts-tree-map-cell *ngFor="let c of cells; trackBy:trackBy"\n [data]="c"\n [x]="c.x"\n [y]="c.y"\n [width]="c.width"\n [height]="c.height"\n [fill]="c.fill"\n [label]="c.label"\n [value]="c.value"\n [valueType]="c.valueType"\n [valueFormatting]="valueFormatting"\n [labelFormatting]="labelFormatting"\n [gradient]="gradient"\n [animations]="animations"\n (select)="onClick($event)"\n ngx-tooltip\n [tooltipDisabled]="tooltipDisabled"\n [tooltipPlacement]="\'top\'"\n [tooltipType]="\'tooltip\'"\n [tooltipTitle]="tooltipTemplate ? undefined : getTooltipText(c)"\n [tooltipTemplate]="tooltipTemplate"\n [tooltipContext]="c.data">\n </svg:g>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush})],t)}()},"./src/tree-map/tree-map-cell.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("@angular/core"),i=(n.n(r),n("d3-selection")),o=(n.n(i),n("./src/utils/color-utils.ts")),s=n("./src/common/trim-label.helper.ts"),a=n("./src/utils/id.ts"),c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},u=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(){function t(t){this.gradient=!1,this.animations=!0,this.select=new r.EventEmitter,this.initialized=!1,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(){this.update(),this.valueFormatting=this.valueFormatting||function(t){return t.value.toLocaleString()};var t=this.labelFormatting||function(t){return Object(s.a)(t.label,55)},e={data:this.data,label:this.label,value:this.value};this.formattedValue=this.valueFormatting(e),this.formattedLabel=t(e),this.gradientId="grad"+Object(a.a)().toString(),this.gradientUrl="url(#"+this.gradientId+")",this.gradientStops=this.getGradientStops()},t.prototype.update=function(){this.initialized?this.animateToCurrentForm():(this.animations&&this.loadAnimation(),this.initialized=!0)},t.prototype.loadAnimation=function(){Object(i.select)(this.element).select(".cell").attr("opacity",0).attr("x",this.x).attr("y",this.y),this.animateToCurrentForm()},t.prototype.getTextColor=function(){return Object(o.a)(this.fill)},t.prototype.animateToCurrentForm=function(){var t=Object(i.select)(this.element).select(".cell");this.animations?t.transition().duration(750).attr("opacity",1).attr("x",this.x).attr("y",this.y).attr("width",this.width).attr("height",this.height):t.attr("opacity",1).attr("x",this.x).attr("y",this.y).attr("width",this.width).attr("height",this.height)},t.prototype.onClick=function(){this.select.emit({name:this.label,value:this.value})},t.prototype.getGradientStops=function(){return[{offset:0,color:this.fill,opacity:.3},{offset:100,color:this.fill,opacity:1}]},c([Object(r.Input)(),u("design:type",Object)],t.prototype,"data",void 0),c([Object(r.Input)(),u("design:type",Object)],t.prototype,"fill",void 0),c([Object(r.Input)(),u("design:type",Object)],t.prototype,"x",void 0),c([Object(r.Input)(),u("design:type",Object)],t.prototype,"y",void 0),c([Object(r.Input)(),u("design:type",Object)],t.prototype,"width",void 0),c([Object(r.Input)(),u("design:type",Object)],t.prototype,"height",void 0),c([Object(r.Input)(),u("design:type",Object)],t.prototype,"label",void 0),c([Object(r.Input)(),u("design:type",Object)],t.prototype,"value",void 0),c([Object(r.Input)(),u("design:type",Object)],t.prototype,"valueType",void 0),c([Object(r.Input)(),u("design:type",Object)],t.prototype,"valueFormatting",void 0),c([Object(r.Input)(),u("design:type",Object)],t.prototype,"labelFormatting",void 0),c([Object(r.Input)(),u("design:type",Boolean)],t.prototype,"gradient",void 0),c([Object(r.Input)(),u("design:type",Boolean)],t.prototype,"animations",void 0),c([Object(r.Output)(),u("design:type",Object)],t.prototype,"select",void 0),t=c([Object(r.Component)({selector:"g[ngx-charts-tree-map-cell]",template:'\n <svg:g>\n <defs *ngIf="gradient">\n <svg:g ngx-charts-svg-linear-gradient\n orientation="vertical"\n [name]="gradientId"\n [stops]="gradientStops"\n />\n </defs>\n <svg:rect\n [attr.fill]="gradient ? gradientUrl : fill"\n [attr.width]="width"\n [attr.height]="height"\n [attr.x]="x"\n [attr.y]="y"\n [style.cursor]="\'pointer\'"\n class="cell"\n (click)="onClick()"\n />\n <svg:foreignObject\n *ngIf="width >= 70 && height >= 35"\n [attr.x]="x"\n [attr.y]="y"\n [attr.width]="width"\n [attr.height]="height"\n class="label"\n [style.pointer-events]="\'none\'">\n <xhtml:p\n [style.color]="getTextColor()"\n [style.height]="height + \'px\'"\n [style.width]="width + \'px\'">\n <xhtml:span class="treemap-label" [innerHTML]="formattedLabel">\n </xhtml:span>\n <xhtml:br />\n <xhtml:span *ngIf="animations"\n class="treemap-val" \n ngx-charts-count-up \n [countTo]="value"\n [valueFormatting]="valueFormatting">\n </xhtml:span>\n <xhtml:span *ngIf="!animations"\n class="treemap-val">\n {{formattedValue}}\n </xhtml:span>\n </xhtml:p>\n </svg:foreignObject>\n </svg:g>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush}),u("design:paramtypes",[r.ElementRef])],t)}()},"./src/tree-map/tree-map.component.scss":function(t,e,n){var r=n('./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/tree-map/tree-map.component.scss');t.exports="string"==typeof r?r:r.toString()},"./src/tree-map/tree-map.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r=n("@angular/core"),i=(n.n(r),n("d3-hierarchy")),o=(n.n(i),n("./src/common/base-chart.component.ts")),s=n("./src/common/view-dimensions.helper.ts"),a=n("./src/common/color.helper.ts"),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.tooltipDisabled=!1,e.gradient=!1,e.select=new r.EventEmitter,e.margin=[10,10,10,10],e}return c(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=Object(s.a)({width:this.width,height:this.height,margins:this.margin}),this.domain=this.getDomain(),this.treemap=Object(i.treemap)().size([this.dims.width,this.dims.height]);var e=Object(i.stratify)().id(function(t){var e=t.name;return e="Date"===e.constructor.name?e.toLocaleDateString():e.toLocaleString()}).parentId(function(t){return t.isRoot?null:"root"})([{name:"root",value:0,isRoot:!0}].concat(this.results)).sum(function(t){return t.value});this.data=this.treemap(e),this.setColors(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},e.prototype.getDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.onClick=function(t){this.select.emit(t)},e.prototype.setColors=function(){this.colors=new a.a(this.scheme,"ordinal",this.domain,this.customColors)},u([Object(r.Input)(),l("design:type",Object)],e.prototype,"results",void 0),u([Object(r.Input)(),l("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"valueFormatting",void 0),u([Object(r.Input)(),l("design:type",Object)],e.prototype,"labelFormatting",void 0),u([Object(r.Input)(),l("design:type",Boolean)],e.prototype,"gradient",void 0),u([Object(r.Output)(),l("design:type",Object)],e.prototype,"select",void 0),u([Object(r.ContentChild)("tooltipTemplate"),l("design:type",r.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=u([Object(r.Component)({selector:"ngx-charts-tree-map",template:'\n <ngx-charts-chart\n [view]="[width, height]"\n [showLegend]="false"\n [animations]="animations">\n <svg:g [attr.transform]="transform" class="tree-map chart">\n <svg:g ngx-charts-tree-map-cell-series\n [colors]="colors"\n [data]="data"\n [dims]="dims"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="tooltipTemplate"\n [valueFormatting]="valueFormatting"\n [labelFormatting]="labelFormatting"\n [gradient]="gradient"\n [animations]="animations"\n (select)="onClick($event)"\n />\n </svg:g>\n </ngx-charts-chart>\n ',styles:[n("./src/tree-map/tree-map.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush})],e)}(o.a)},"./src/tree-map/tree-map.module.ts":function(t,e,n){"use strict";n.d(e,"d",function(){return u});var r=n("@angular/core"),i=(n.n(r),n("./src/common/chart-common.module.ts")),o=n("./src/tree-map/tree-map-cell.component.ts"),s=n("./src/tree-map/tree-map-cell-series.component.ts"),a=n("./src/tree-map/tree-map.component.ts");n.d(e,"a",function(){return o.a}),n.d(e,"b",function(){return s.a}),n.d(e,"c",function(){return a.a});var c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},u=function(){function t(){}return t=c([Object(r.NgModule)({imports:[i.a],declarations:[o.a,s.a,a.a],exports:[o.a,s.a,a.a]})],t)}()},"./src/utils/color-sets.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}]},"./src/utils/color-utils.ts":function(t,e,n){"use strict";e.a=function(t){var e=r.rgb(t),n=e.r,i=e.g,o=e.b;return 0===e.opacity?e.toString():function(t,e){var n=t.r,r=t.g,i=t.b,o=e<0?0:255,s=e<0?-1*e:e;return n=Math.round((o-n)*s)+n,r=Math.round((o-r)*s)+r,i=Math.round((o-i)*s)+i,"rgb("+n+", "+r+", "+i+")"}(e,(299*n+587*i+114*o)/1e3>=128?-.8:.8)};var r=n("d3-color");n.n(r)},"./src/utils/id.ts":function(t,e,n){"use strict";function r(){var t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t="a"+t,i[t]?r():(i[t]=!0,t)}e.a=r;var i={}},"./src/utils/index.ts":function(t,e,n){"use strict";var r=n("./src/utils/id.ts");n.d(e,"b",function(){return r.a});n("./src/utils/color-sets.ts"),n("./src/utils/sort.ts"),n("./src/utils/throttle.ts"),n("./src/utils/color-utils.ts");var i=n("./src/utils/visibility-observer.ts");n.d(e,"a",function(){return i.a});n("./src/utils/types.ts")},"./src/utils/sort.ts":function(t,e,n){"use strict";e.c=function(t,e,n){return void 0===n&&(n="asc"),t.sort(function(t,r){return"asc"===n?t[e]-r[e]:r[e]-t[e]})},e.a=function(t,e,n,r){return void 0===n&&(n="asc"),t.sort(function(t,i){var o=t[e],s=i[e],a=r.indexOf(o),c=r.indexOf(s);return"asc"===n?a-c:c-a})},e.b=function(t,e,n){return void 0===n&&(n="asc"),t.sort(function(t,r){var i=t[e].getTime(),o=r[e].getTime();return"asc"===n?i>o?1:o>i?-1:0:i>o?-1:o>i?1:0})}},"./src/utils/throttle.ts":function(t,e,n){"use strict";e.a=function(t,e){return function(n,r,i){return{configurable:!0,enumerable:i.enumerable,get:function(){return Object.defineProperty(this,r,{configurable:!0,enumerable:i.enumerable,value:function(t,e,n){function r(){c=!1===n.leading?0:+new Date,a=null,s=t.apply(i,o)}n=n||{};var i,o,s,a=null,c=0;return function(){var u=+new Date;c||!1!==n.leading||(c=u);var l=e-(u-c);return i=this,o=arguments,l<=0?(clearTimeout(a),a=null,c=u,s=t.apply(i,o)):a||!1===n.trailing||(a=setTimeout(r,l)),s}}(i.value,t,e)}),this[r]}}}}},"./src/utils/types.ts":function(t,e,n){"use strict";e.a=function(t){return"[object Date]"===toString.call(t)},e.b=function(t){return"number"==typeof t}},"./src/utils/visibility-observer.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("@angular/core"),i=(n.n(r),this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(t,e){this.element=t,this.zone=e,this.visible=new r.EventEmitter,this.isVisible=!1,this.runCheck()}return t.prototype.destroy=function(){clearTimeout(this.timeout)},t.prototype.onVisibilityChange=function(){var t=this;this.zone.run(function(){t.isVisible=!0,t.visible.emit(!0)})},t.prototype.runCheck=function(){var t=this,e=function(){if(t.element){var n=t.element.nativeElement,r=n.offsetHeight,i=n.offsetWidth;r&&i?(clearTimeout(t.timeout),t.onVisibilityChange()):(clearTimeout(t.timeout),t.zone.runOutsideAngular(function(){t.timeout=setTimeout(function(){return e()},100)}))}};this.zone.runOutsideAngular(function(){t.timeout=setTimeout(function(){return e()})})},i([Object(r.Output)(),o("design:type",r.EventEmitter)],t.prototype,"visible",void 0),t}()},"@angular/animations":function(e,n){e.exports=t},"@angular/common":function(t,n){t.exports=e},"@angular/core":function(t,e){t.exports=n},"@angular/platform-browser":function(t,e){t.exports=r},"d3-array":function(t,e){t.exports=i},"d3-brush":function(t,e){t.exports=o},"d3-color":function(t,e){t.exports=s},"d3-force":function(t,e){t.exports=a},"d3-format":function(t,e){t.exports=c},"d3-hierarchy":function(t,e){t.exports=u},"d3-interpolate":function(t,e){t.exports=l},"d3-scale":function(t,e){t.exports=p},"d3-selection":function(t,e){t.exports=h},"d3-shape":function(t,e){t.exports=d},"d3-time-format":function(t,e){t.exports=f},"rxjs/Observable":function(t,e){t.exports=y},"rxjs/add/observable/fromEvent":function(t,e){t.exports=g},"rxjs/add/operator/debounceTime":function(t,e){t.exports=v}})})},TnjP:function(t,e,n){"use strict";var r=n("bKpL"),i=n("XOyC");r.Observable.prototype.delayWhen=i.delayWhen},TpsG:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){var e=t.call(this,"no elements in sequence");this.name=e.name="EmptyError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);e.EmptyError=i},Tq0x:function(t,e,n){"use strict";var r=n("JwCl");e.reduce=function(t,e){return arguments.length>=2?r.reduce(t,e)(this):r.reduce(t)(this)}},TupL:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("yW9Z"),o=n("ktfo");e.switchMap=function(t,e){return function(n){return n.lift(new s(t,e))}};var s=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.resultSelector))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.resultSelector=r,this.index=0}return r(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe(),this.add(this.innerSubscription=o.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.resultSelector?this._tryNotifyNext(t,e,n,r):this.destination.next(e)},e.prototype._tryNotifyNext=function(t,e,n,r){var i;try{i=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(i)},e}(i.OuterSubscriber)},Txt5:function(t,e,n){"use strict";var r=n("IhB/"),i=n("GTdq");e.auditTime=function(t,e){return void 0===e&&(e=r.async),i.auditTime(t,e)(this)}},"UD+B":function(t,e,n){"use strict";var r=n("bKpL"),i=n("wDL6");r.Observable.prototype.repeat=i.repeat},UHIZ:function(t,e,n){"use strict";function r(t){var e=+t.length;return isNaN(e)?0:0!==e&&function(t){return"number"==typeof t&&Vt.a.isFinite(t)}(e)?(e=function(t){var e=+t;if(0===e)return e;if(isNaN(e))return e;return e<0?-1:1}(e)*Math.floor(Math.abs(e)))<=0?0:e>Gt?Gt:e:e}function i(){return Object(se.a)(1)(this)}function o(t,e,n){return function(t,e,n){return function(r){return r.lift(new le(t,e,n,r))}}(t,e,n)(this)}function s(t,e){return function(t,e){return function(n){return n.lift(new fe(t,e,n))}}(t,e)(this)}function a(t,e,n){return function(t,e,n){return function(r){return r.lift(new ve(t,e,n,r))}}(t,e,n)(this)}function c(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(se.a)(t)(this)}function u(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new _e(t,e,n))}}function l(t){return function(e){return 0===t?new Kt.a:e.lift(new Ce(t))}}function p(t,e){return arguments.length>=2?function(n){return Object(Ae.a)(u(t,e),l(1),function(t){return void 0===t&&(t=null),function(e){return e.lift(new je(t))}}(e))(n)}:function(e){return Object(Ae.a)(u(function(e,n,r){return t(e,n,r+1)}),l(1))(e)}}function h(t){return new $e(t)}function d(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;for(var i={},o=0;o<r.length;o++){var s=r[o],a=t[o];if(s.startsWith(":"))i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function f(t,e){void 0===e&&(e="");for(var n=0;n<t.length;n++){var r=t[n];!function(t,e){if(!t)throw new Error("\n Invalid configuration of route '"+e+"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n ");if(Array.isArray(t))throw new Error("Invalid configuration of route '"+e+"': Array cannot be specified");if(!t.component&&t.outlet&&t.outlet!==Xe)throw new Error("Invalid configuration of route '"+e+"': a componentless route cannot have a named outlet set");if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '"+e+"': redirectTo and children cannot be used together");if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': redirectTo and loadChildren cannot be used together");if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': children and loadChildren cannot be used together");if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '"+e+"': redirectTo and component cannot be used together");if(t.path&&t.matcher)throw new Error("Invalid configuration of route '"+e+"': path and matcher cannot be used together");if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '"+e+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '"+e+"': routes must have either a path or a matcher specified");if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '"+e+"': path cannot start with a slash");if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch){throw new Error("Invalid configuration of route '{path: \""+e+'", redirectTo: "'+t.redirectTo+"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.")}if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '"+e+"': pathMatch can only be set to 'prefix' or 'full'");t.children&&f(t.children,e)}(r,function(t,e){if(!e)return t;return t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:""}(e,r))}}function y(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i,o=0;o<n.length;o++)if(i=n[o],t[i]!==e[i])return!1;return!0}function g(t){return Array.prototype.concat.apply([],t)}function v(t){return t.length>0?t[t.length-1]:null}function m(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function b(t){var e=c.call(t);return s.call(e,function(t){return!0===t})}function _(t){return Object(Et["\u0275isObservable"])(t)?t:Object(Et["\u0275isPromise"])(t)?Object(he.a)(Promise.resolve(t)):Object(At.a)(t)}function x(t,e,n){return n?function(t,e){return y(t,e)}(t.queryParams,e.queryParams)&&w(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&O(t.root,e.root)}function w(t,e){if(!C(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(var n in e.children){if(!t.children[n])return!1;if(!w(t.children[n],e.children[n]))return!1}return!0}function O(t,e){return S(t,e,e.segments)}function S(t,e,n){if(t.segments.length>n.length){return!!C(i=t.segments.slice(0,n.length),n)&&!e.hasChildren()}if(t.segments.length===n.length){if(!C(t.segments,n))return!1;for(var r in e.children){if(!t.children[r])return!1;if(!O(t.children[r],e.children[r]))return!1}return!0}var i=n.slice(0,t.segments.length),o=n.slice(t.segments.length);return!!C(t.segments,i)&&(!!t.children[Xe]&&S(t.children[Xe],e,o))}function C(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function E(t,e){var n=[];return m(t.children,function(t,r){r===Xe&&(n=n.concat(e(t,r)))}),m(t.children,function(t,r){r!==Xe&&(n=n.concat(e(t,r)))}),n}function T(t){return t.segments.map(function(t){return I(t)}).join("/")}function j(t,e){if(!t.hasChildren())return T(t);if(e){var n=t.children[Xe]?j(t.children[Xe],!1):"",r=[];return m(t.children,function(t,e){e!==Xe&&r.push(e+":"+j(t,!1))}),r.length>0?n+"("+r.join("//")+")":n}var i=E(t,function(e,n){return n===Xe?[j(t.children[Xe],!1)]:[n+":"+j(e,!1)]});return T(t)+"/("+i.join("//")+")"}function P(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}function A(t){return decodeURIComponent(t)}function I(t){return""+P(t.path)+function(t){return Object.keys(t).map(function(e){return";"+P(e)+"="+P(t[e])}).join("")}(t.parameters)}function k(t){var e=t.match(sn);return e?e[0]:""}function R(t){return new Mt.Observable(function(e){return e.error(new ln(t))})}function M(t){return new Mt.Observable(function(e){return e.error(new pn(t))})}function D(t){return new Mt.Observable(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}function N(t){return new Mt.Observable(function(e){return e.error(function(t){var e=Error("NavigationCancelingError: "+t);return e[Qe]=!0,e}("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}function L(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||d)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function F(t,e,n,r){if(n.length>0&&function(t,e,n){return n.some(function(n){return B(t,e,n)&&H(n)!==Xe})}(t,n,r)){return{segmentGroup:V(new tn(e,function(t,e){var n={};n[Xe]=e;for(var r=0,i=t;r<i.length;r++){var o=i[r];""===o.path&&H(o)!==Xe&&(n[H(o)]=new tn([],{}))}return n}(r,new tn(n,t.children)))),slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(function(n){return B(t,e,n)})}(t,n,r)){return{segmentGroup:V(new tn(t.segments,function(t,e,n,r){for(var i={},o=0,s=n;o<s.length;o++){var a=s[o];B(t,e,a)&&!r[H(a)]&&(i[H(a)]=new tn([],{}))}return Object(Tt.a)({},r,i)}(t,n,r,t.children))),slicedSegments:n}}return{segmentGroup:t,slicedSegments:n}}function V(t){if(1===t.numberOfChildren&&t.children[Xe]){var e=t.children[Xe];return new tn(t.segments.concat(e.segments),e.children)}return t}function B(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0!==n.redirectTo)}function H(t){return t.outlet||Xe}function z(t,e){if(t===e.value)return e;for(var n=0,r=e.children;n<r.length;n++){var i=z(t,r[n]);if(i)return i}return null}function U(t,e){if(t===e.value)return[e];for(var n=0,r=e.children;n<r.length;n++){var i=U(t,r[n]);if(i.length)return i.unshift(e),i}return[]}function W(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}function G(t,e){var n=function(t,e){var n=new vn([],{},{},"",{},Xe,e,null,t.root,-1,{});return new mn("",new fn(n,[]))}(t,e),r=new jt.a([new en("",{})]),i=new jt.a({}),o=new jt.a({}),s=new jt.a({}),a=new jt.a(""),c=new gn(r,i,s,a,o,Xe,e,n.root);return c.snapshot=n.root,new yn(new fn(c,[]),n)}function q(t){for(var e=t.pathFromRoot,n=e.length-1;n>=1;){var r=e[n],i=e[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(i.component)break;n--}}return e.slice(n).reduce(function(t,e){return{params:Object(Tt.a)({},t.params,e.params),data:Object(Tt.a)({},t.data,e.data),resolve:Object(Tt.a)({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}function Y(t,e){e.value._routerState=t,e.children.forEach(function(e){return Y(t,e)})}function K(t){var e=t.children.length>0?" { "+t.children.map(K).join(", ")+" } ":"";return""+t.value+e}function X(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,y(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),y(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!y(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),y(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function $(t,e){var n=y(t.params,e.params)&&function(t,e){return C(t,e)&&t.every(function(t,n){return y(t.parameters,e[n].parameters)})}(t.url,e.url),r=!t.parent!=!e.parent;return n&&!r&&(!t.parent||$(t.parent,e.parent))}function Q(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){(o=n.value)._futureSnapshot=e.value;var r=function(t,e,n){return e.children.map(function(e){for(var r=0,i=n.children;r<i.length;r++){var o=i[r];if(t.shouldReuseRoute(o.value.snapshot,e.value))return Q(t,e,o)}return Q(t,e)})}(t,e,n);return new fn(o,r)}if(t.retrieve(e.value)){var i=t.retrieve(e.value).route;return Z(e,i),i}var o=function(t){return new gn(new jt.a(t.url),new jt.a(t.params),new jt.a(t.queryParams),new jt.a(t.fragment),new jt.a(t.data),t.outlet,t.component,t)}(e.value);r=e.children.map(function(e){return Q(t,e)});return new fn(o,r)}function Z(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(var n=0;n<t.children.length;++n)Z(t.children[n],e.children[n])}function J(t,e,n,r,i){if(0===n.length)return et(e.root,e.root,e,r,i);var o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new bn(!0,0,t);var e=0,n=!1,r=t.reduce(function(t,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return m(r.outlets,function(t,e){o[e]="string"==typeof t?t.split("/"):t}),t.concat([{outlets:o}])}if(r.segmentPath)return t.concat([r.segmentPath])}return"string"!=typeof r?t.concat([r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):t.concat([r])},[]);return new bn(n,e,r)}(n);if(o.toRoot())return et(e.root,new tn([],{}),e,r,i);var s=function(t,e,n){if(t.isAbsolute)return new _n(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new _n(n.snapshot._urlSegment,!0,0);var r=tt(t.commands[0])?0:1,i=n.snapshot._lastPathIndex+r;return function(t,e,n){var r=t,i=e,o=n;for(;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new _n(r,!1,i-o)}(n.snapshot._urlSegment,i,t.numberOfDoubleDots)}(o,e,t),a=s.processChildren?ot(s.segmentGroup,s.index,o.commands):it(s.segmentGroup,s.index,o.commands);return et(s.segmentGroup,a,e,r,i)}function tt(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function et(t,e,n,r,i){var o={};return r&&m(r,function(t,e){o[e]=Array.isArray(t)?t.map(function(t){return""+t}):""+t}),n.root===t?new Je(e,o,i):new Je(nt(n.root,t,e),o,i)}function nt(t,e,n){var r={};return m(t.children,function(t,i){r[i]=t===e?n:nt(t,e,n)}),new tn(t.segments,r)}function rt(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[Xe]:""+t}function it(t,e,n){if(t||(t=new tn([],{})),0===t.segments.length&&t.hasChildren())return ot(t,e,n);var r=function(t,e,n){var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=n.length)return o;var s=t.segments[i],a=rt(n[r]),c=r<n.length-1?n[r+1]:null;if(i>0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!at(a,c,s))return o;r+=2}else{if(!at(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){var o=new tn(t.segments.slice(0,r.pathIndex),{});return o.children[Xe]=new tn(t.segments.slice(r.pathIndex),t.children),ot(o,0,i)}return r.match&&0===i.length?new tn(t.segments,{}):r.match&&!t.hasChildren()?st(t,e,n):r.match?ot(t,0,i):st(t,e,n)}function ot(t,e,n){if(0===n.length)return new tn(t.segments,{});var r=function(t){return"object"!=typeof t[0]?(e={},e[Xe]=t,e):void 0===t[0].outlets?(n={},n[Xe]=t,n):t[0].outlets;var e,n}(n),i={};return m(r,function(n,r){null!==n&&(i[r]=it(t.children[r],e,n))}),m(t.children,function(t,e){void 0===r[e]&&(i[e]=t)}),new tn(t.segments,i)}function st(t,e,n){for(var r=t.segments.slice(0,e),i=0;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){var o=function(t){var e={};return m(t,function(t,n){null!==t&&(e[n]=st(new tn([],{}),0,t))}),e}(n[i].outlets);return new tn(r,o)}if(0===i&&tt(n[0])){var s=t.segments[e];r.push(new en(s.path,n[0])),i++}else{var a=rt(n[i]),c=i<n.length-1?n[i+1]:null;a&&c&&tt(c)?(r.push(new en(a,function(t){var e={};return m(t,function(t,n){return e[n]=""+t}),e}(c))),i+=2):(r.push(new en(a,{})),i++)}}return new tn(r,{})}function at(t,e,n){return t==n.path&&y(e,n.parameters)}function ct(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function ut(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function lt(t,e,n,r){if(n.length>0&&function(t,e,n){return n.some(function(n){return pt(t,e,n)&&ht(n)!==Xe})}(t,n,r)){var i=new tn(e,function(t,e,n,r){var i={};i[Xe]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(var o=0,s=n;o<s.length;o++){var a=s[o];if(""===a.path&&ht(a)!==Xe){var c=new tn([],{});c._sourceSegment=t,c._segmentIndexShift=e.length,i[ht(a)]=c}}return i}(t,e,r,new tn(n,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(function(n){return pt(t,e,n)})}(t,n,r)){var o=new tn(t.segments,function(t,e,n,r){for(var i={},o=0,s=n;o<s.length;o++){var a=s[o];if(pt(t,e,a)&&!r[ht(a)]){var c=new tn([],{});c._sourceSegment=t,c._segmentIndexShift=t.segments.length,i[ht(a)]=c}}return Object(Tt.a)({},r,i)}(t,n,r,t.children));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}var s=new tn(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function pt(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0===n.redirectTo)}function ht(t){return t.outlet||Xe}function dt(t){return t.data||{}}function ft(t){return t.resolve||{}}function yt(t){throw t}function gt(t){return Object(At.a)(null)}function vt(t){X(t.value),t.children.forEach(vt)}function mt(t){return""===t||!!t}function bt(){return new Et.NgProbeToken("Router",kn)}function _t(t,e,n){return void 0===n&&(n={}),n.useHash?new Ct.HashLocationStrategy(t,e):new Ct.PathLocationStrategy(t,e)}function xt(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function wt(t){return[{provide:Et.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:t},{provide:jn,multi:!0,useValue:t}]}function Ot(t){return t.appInitializer.bind(t)}function St(t){return t.bootstrapListener.bind(t)}var Ct=n("Un6q"),Et=n("LMZF"),Tt=n("6Xbx"),jt=n("eoFs"),Pt=n("TO51"),At=n("GZB0"),It=n("eL9U"),kt=n("dmC+"),Rt=n("TS1d"),Mt=n("AP4T"),Dt=n("1j/l"),Nt=n("kQVV"),Lt=n("mHG6"),Ft=n("KRwF"),Vt=n("xIGM"),Bt=n("X3fp"),Ht=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},zt=function(t){function e(e,n){if(t.call(this),this.scheduler=n,null==e)throw new Error("iterator cannot be null.");this.iterator=function(t){var e=t[Bt.a];if(!e&&"string"==typeof t)return new Ut(t);if(!e&&void 0!==t.length)return new Wt(t);if(!e)throw new TypeError("object is not iterable");return t[Bt.a]()}(e)}return Ht(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.hasError,r=t.iterator,i=t.subscriber;if(n)i.error(t.error);else{var o=r.next();o.done?i.complete():(i.next(o.value),t.index=e+1,i.closed?"function"==typeof r.return&&r.return():this.schedule(t))}},e.prototype._subscribe=function(t){var n=this.iterator,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{index:0,iterator:n,subscriber:t});for(;;){var i=n.next();if(i.done){t.complete();break}if(t.next(i.value),t.closed){"function"==typeof n.return&&n.return();break}}},e}(Mt.Observable),Ut=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=t.length),this.str=t,this.idx=e,this.len=n}return t.prototype[Bt.a]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),Wt=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=r(t)),this.arr=t,this.idx=e,this.len=n}return t.prototype[Bt.a]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},t}(),Gt=Math.pow(2,53)-1,qt=n("Oryw"),Yt=n("8Ut3"),Kt=n("Ecq+"),Xt=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},$t=function(t){function e(e,n){t.call(this),this.arrayLike=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return Xt(e,t),e.create=function(t,n){var r=t.length;return 0===r?new Kt.a:1===r?new Yt.a(t[0],n):new e(t,n)},e.dispatch=function(t){var e=t.arrayLike,n=t.index,r=t.length,i=t.subscriber;i.closed||(n>=r?i.complete():(i.next(e[n]),t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.arrayLike,r=this.scheduler,i=n.length;if(r)return r.schedule(e.dispatch,0,{arrayLike:n,index:0,length:i,subscriber:t});for(var o=0;o<i&&!t.closed;o++)t.next(n[o]);t.complete()},e}(Mt.Observable),Qt=n("E9/g"),Zt=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return Mt.Observable.of(this.value);case"E":return Mt.Observable.throw(this.error);case"C":return Mt.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return"undefined"!=typeof e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}(),Jt=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},te=function(t){function e(e,n,r){void 0===r&&(r=0),t.call(this,e),this.scheduler=n,this.delay=r}return Jt(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new ee(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(Zt.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(Zt.createError(t))},e.prototype._complete=function(){this.scheduleMessage(Zt.createComplete())},e}(Qt.a),ee=function(){return function(t,e){this.notification=t,this.destination=e}}(),ne=n("mz3w"),re=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ie=function(t){function e(e,n){t.call(this,null),this.ish=e,this.scheduler=n}return re(e,t),e.create=function(t,n){if(null!=t){if("function"==typeof t[ne.a])return t instanceof Mt.Observable&&!n?t:new e(t,n);if(Object(Dt.a)(t))return new qt.a(t,n);if(Object(Lt.a)(t))return new Ft.a(t,n);if("function"==typeof t[Bt.a]||"string"==typeof t)return new zt(t,n);if(Object(Nt.a)(t))return new $t(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")},e.prototype._subscribe=function(t){var e=this.ish,n=this.scheduler;return null==n?e[ne.a]().subscribe(t):e[ne.a]().subscribe(new te(t,n,0))},e}(Mt.Observable).create,oe=n("D62v"),se=n("bywS"),ae=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ce=function(t){function e(){var e=t.call(this,"no elements in sequence");this.name=e.name="EmptyError",this.stack=e.stack,this.message=e.message}return ae(e,t),e}(Error),ue=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},le=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new pe(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),pe=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.index=0,this.hasCompleted=!1,this._emitted=!1}return ue(e,t),e.prototype._next=function(t){var e=this.index++;this.predicate?this._tryPredicate(t,e):this._emit(t,e)},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}n&&this._emit(t,e)},e.prototype._emit=function(t,e){this.resultSelector?this._tryResultSelector(t,e):this._emitFinal(t)},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this._emitFinal(n)},e.prototype._emitFinal=function(t){var e=this.destination;this._emitted||(this._emitted=!0,e.next(t),e.complete(),this.hasCompleted=!0)},e.prototype._complete=function(){var t=this.destination;this.hasCompleted||"undefined"==typeof this.defaultValue?this.hasCompleted||t.error(new ce):(t.next(this.defaultValue),t.complete())},e}(Qt.a),he=n("CASk"),de=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},fe=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new ye(t,this.predicate,this.thisArg,this.source))},t}(),ye=function(t){function e(e,n,r,i){t.call(this,e),this.predicate=n,this.thisArg=r,this.source=i,this.index=0,this.thisArg=r||this}return de(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(Qt.a),ge=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ve=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new me(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),me=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.hasValue=!1,this.index=0,"undefined"!=typeof i&&(this.lastValue=i,this.hasValue=!0)}return ge(e,t),e.prototype._next=function(t){var e=this.index++;if(this.predicate)this._tryPredicate(t,e);else{if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}if(n){if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this.lastValue=n,this.hasValue=!0},e.prototype._complete=function(){var t=this.destination;this.hasValue?(t.next(this.lastValue),t.complete()):t.error(new ce)},e}(Qt.a),be=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},_e=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new xe(t,this.accumulator,this.seed,this.hasSeed))},t}(),xe=function(t){function e(e,n,r,i){t.call(this,e),this.accumulator=n,this._seed=r,this.hasSeed=i,this.index=0}return be(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(Qt.a),we=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Oe=function(t){function e(){var e=t.call(this,"argument out of range");this.name=e.name="ArgumentOutOfRangeError",this.stack=e.stack,this.message=e.message}return we(e,t),e}(Error),Se=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Ce=function(){function t(t){if(this.total=t,this.total<0)throw new Oe}return t.prototype.call=function(t,e){return e.subscribe(new Ee(t,this.total))},t}(),Ee=function(t){function e(e,n){t.call(this,e),this.total=n,this.ring=new Array,this.count=0}return Se(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;if(e.length<n)e.push(t);else{e[r%n]=t}},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=e++%n;t.next(r[o])}t.complete()},e}(Qt.a),Te=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},je=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new Pe(t,this.defaultValue))},t}(),Pe=function(t){function e(e,n){t.call(this,e),this.defaultValue=n,this.isEmpty=!0}return Te(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(Qt.a),Ae=n("ExCY"),Ie=n("RyBE"),ke=n("6S6c");n.d(e,"b",function(){return De}),n.d(e,"c",function(){return kn}),n.d(e,"d",function(){return Xn}),n.d(e,"a",function(){return gn});var Re=function(){return function(t,e){this.id=t,this.url=e}}(),Me=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Tt.b)(e,t),e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}(Re),De=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i}return Object(Tt.b)(e,t),e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(Re),Ne=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.reason=r,i}return Object(Tt.b)(e,t),e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(Re),Le=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.error=r,i}return Object(Tt.b)(e,t),e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(Re),Fe=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(Tt.b)(e,t),e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(Re),Ve=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(Tt.b)(e,t),e.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(Re),Be=function(t){function e(e,n,r,i,o){var s=t.call(this,e,n)||this;return s.urlAfterRedirects=r,s.state=i,s.shouldActivate=o,s}return Object(Tt.b)(e,t),e.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},e}(Re),He=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(Tt.b)(e,t),e.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(Re),ze=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(Tt.b)(e,t),e.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(Re),Ue=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),We=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),Ge=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),qe=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Ye=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Ke=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Xe="primary",$e=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}(),Qe="ngNavigationCancelingError",Ze=function(){return function(t,e){this.routes=t,this.module=e}}(),Je=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=h(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return on.serialize(this)},t}(),tn=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,m(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return T(this)},t}(),en=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=h(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return I(this)},t}(),nn=function(){return function(){}}(),rn=function(){function t(){}return t.prototype.parse=function(t){var e=new un(t);return new Je(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){return""+("/"+j(t.root,!0))+function(t){var e=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return P(e)+"="+P(t)}).join("&"):P(e)+"="+P(n)});return e.length?"?"+e.join("&"):""}(t.queryParams)+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),on=new rn,sn=/^[^\/()?;=&#]+/,an=/^[^=?&#]+/,cn=/^[^?&#]+/,un=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new tn([],{}):new tn([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURI(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Xe]=new tn(t,e)),n},t.prototype.parseSegment=function(){var t=k(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new en(A(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=k(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=k(this.remaining);r&&(n=r,this.capture(n))}t[A(e)]=A(n)}},t.prototype.parseQueryParam=function(t){var e=function(t){var e=t.match(an);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=function(t){var e=t.match(cn);return e?e[0]:""}(this.remaining);r&&(n=r,this.capture(n))}var i=A(e),o=A(n);if(t.hasOwnProperty(i)){var s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=k(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=Xe);var o=this.parseChildren();e[i]=1===Object.keys(o).length?o[Xe]:new tn([],o),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),ln=function(){return function(t){this.segmentGroup=t||null}}(),pn=function(){return function(t){this.urlTree=t}}(),hn=function(){function t(t,e,n,r,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(Et.NgModuleRef)}return t.prototype.apply=function(){var t=this,e=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Xe),n=kt.a.call(e,function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)});return oe.a.call(n,function(e){if(e instanceof pn)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof ln)throw t.noMatchError(e);throw e})},t.prototype.match=function(t){var e=this,n=this.expandSegmentGroup(this.ngModule,this.config,t.root,Xe),r=kt.a.call(n,function(n){return e.createUrlTree(n,t.queryParams,t.fragment)});return oe.a.call(r,function(t){if(t instanceof ln)throw e.noMatchError(t);throw t})},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var r=t.segments.length>0?new tn([],(i={},i[Xe]=t,i)):t;return new Je(r,e,n);var i},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?kt.a.call(this.expandChildren(t,e,n),function(t){return new tn([],t)}):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(t,e){if(0===Object.keys(t).length)return Object(At.a)({});var n=[],r=[],o={};m(t,function(t,i){var s=kt.a.call(e(i,t),function(t){return o[i]=t});i===Xe?n.push(s):r.push(s)});var s=i.call(At.a.apply(void 0,n.concat(r))),c=a.call(s);return kt.a.call(c,function(){return o})}(n.children,function(n,i){return r.expandSegmentGroup(t,e,i,n)})},t.prototype.expandSegment=function(t,e,n,r,s,a){var c=this,u=At.a.apply(void 0,n),l=kt.a.call(u,function(i){var o=c.expandSegmentAgainstRoute(t,e,n,i,r,s,a);return oe.a.call(o,function(t){if(t instanceof ln)return Object(At.a)(null);throw t})}),p=i.call(l),h=o.call(p,function(t){return!!t});return oe.a.call(h,function(t,n){if(t instanceof ce){if(c.noLeftoversInUrl(e,r,s))return Object(At.a)(new tn([],{}));throw new ln(e)}throw t})},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,i,o,s){return H(r)!==o?R(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):R(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?M(o):Rt.a.call(this.lineralizeSegments(n,o),function(n){var o=new tn(n,{});return i.expandSegment(t,o,e,n,r,!1)})},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){var s=this,a=L(e,r,i),c=a.matched,u=a.consumedSegments,l=a.lastChild,p=a.positionalParamSegments;if(!c)return R(e);var h=this.applyRedirectCommands(u,r.redirectTo,p);return r.redirectTo.startsWith("/")?M(h):Rt.a.call(this.lineralizeSegments(r,h),function(r){return s.expandSegment(t,e,n,r.concat(i.slice(l)),o,!1)})},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var i=this;if("**"===n.path)return n.loadChildren?kt.a.call(this.configLoader.load(t.injector,n),function(t){return n._loadedConfig=t,new tn(r,{})}):Object(At.a)(new tn(r,{}));var o=L(e,n,r),s=o.matched,a=o.consumedSegments,c=o.lastChild;if(!s)return R(e);var u=r.slice(c),l=this.getChildConfig(t,n);return Rt.a.call(l,function(t){var n=t.module,r=t.routes,o=F(e,a,u,r),s=o.segmentGroup,c=o.slicedSegments;if(0===c.length&&s.hasChildren()){var l=i.expandChildren(n,r,s);return kt.a.call(l,function(t){return new tn(a,t)})}if(0===r.length&&0===c.length)return Object(At.a)(new tn(a,{}));var p=i.expandSegment(n,s,r,c,Xe,!0);return kt.a.call(p,function(t){return new tn(a.concat(t.segments),t.children)})})},t.prototype.getChildConfig=function(t,e){var n=this;return e.children?Object(At.a)(new Ze(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(At.a)(e._loadedConfig):Rt.a.call(function(t,e){var n=e.canLoad;return n&&0!==n.length?b(kt.a.call(ie(n),function(n){var r=t.get(n);return _(r.canLoad?r.canLoad(e):r(e))})):Object(At.a)(!0)}(t.injector,e),function(r){return r?kt.a.call(n.configLoader.load(t.injector,e),function(t){return e._loadedConfig=t,t}):N(e)}):Object(At.a)(new Ze([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(At.a)(n);if(r.numberOfChildren>1||!r.children[Xe])return D(t.redirectTo);r=r.children[Xe]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new Je(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return m(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),s={};return m(e.children,function(e,o){s[o]=i.createSegmentGroup(t,e,n,r)}),new tn(o,s)},t.prototype.createSegments=function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){for(var n=0,r=0,i=e;r<i.length;r++){var o=i[r];if(o.path===t.path)return e.splice(n),o;n++}return t},t}(),dn=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=z(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=z(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=U(t,this._root);if(e.length<2)return[];return e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return U(t,this._root).map(function(t){return t.value})},t}(),fn=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}(),yn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,Y(r,e),r}return Object(Tt.b)(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(dn),gn=function(){function t(t,e,n,r,i,o,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this._futureSnapshot=a}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=kt.a.call(this.params,function(t){return h(t)})),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=kt.a.call(this.queryParams,function(t){return h(t)})),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}(),vn=function(){function t(t,e,n,r,i,o,s,a,c,u,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=u,this._resolve=l}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=h(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=h(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),mn=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,Y(r,n),r}return Object(Tt.b)(e,t),e.prototype.toString=function(){return K(this._root)},e}(dn),bn=function(){function t(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&tt(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==v(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),_n=function(){return function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}(),xn=function(){function t(t){this.path=t}return Object.defineProperty(t.prototype,"route",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t}(),wn=function(){return function(t,e){this.component=t,this.route=e}}(),On=function(){function t(t,e,n,r){this.future=t,this.curr=e,this.moduleInjector=n,this.forwardEvent=r,this.canActivateChecks=[],this.canDeactivateChecks=[]}return t.prototype.initialize=function(t){var e=this.future._root,n=this.curr?this.curr._root:null;this.setupChildRouteGuards(e,n,t,[e.value])},t.prototype.checkGuards=function(){var t=this;if(!this.isDeactivating()&&!this.isActivating())return Object(At.a)(!0);var e=this.runCanDeactivateChecks();return Rt.a.call(e,function(e){return e?t.runCanActivateChecks():Object(At.a)(!1)})},t.prototype.resolveData=function(){var t=this;if(!this.isActivating())return Object(At.a)(null);var e=ie(this.canActivateChecks),n=It.a.call(e,function(e){return t.runResolve(e.route)});return(function(t,e){return arguments.length>=2?p(t,e)(this):p(t)(this)}).call(n,function(t,e){return t})},t.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},t.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},t.prototype.setupChildRouteGuards=function(t,e,n,r){var i=this,o=W(e);t.children.forEach(function(t){i.setupRouteGuards(t,o[t.value.outlet],n,r.concat([t.value])),delete o[t.value.outlet]}),m(o,function(t,e){return i.deactivateRouteAndItsChildren(t,n.getContext(e))})},t.prototype.setupRouteGuards=function(t,e,n,r){var i=t.value,o=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){var a=this.shouldRunGuardsAndResolvers(o,i,i.routeConfig.runGuardsAndResolvers);if(a?this.canActivateChecks.push(new xn(r)):(i.data=o.data,i._resolvedData=o._resolvedData),i.component?this.setupChildRouteGuards(t,e,s?s.children:null,r):this.setupChildRouteGuards(t,e,n,r),a){var c=s.outlet;this.canDeactivateChecks.push(new wn(c.component,o))}}else o&&this.deactivateRouteAndItsChildren(e,s),this.canActivateChecks.push(new xn(r)),i.component?this.setupChildRouteGuards(t,null,s?s.children:null,r):this.setupChildRouteGuards(t,null,n,r)},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!$(t,e)||!y(t.queryParams,e.queryParams);case"paramsChange":default:return!$(t,e)}},t.prototype.deactivateRouteAndItsChildren=function(t,e){var n=this,r=W(t),i=t.value;m(r,function(t,r){i.component?e?n.deactivateRouteAndItsChildren(t,e.children.getContext(r)):n.deactivateRouteAndItsChildren(t,null):n.deactivateRouteAndItsChildren(t,e)}),i.component&&e&&e.outlet&&e.outlet.isActivated?this.canDeactivateChecks.push(new wn(e.outlet.component,i)):this.canDeactivateChecks.push(new wn(null,i))},t.prototype.runCanDeactivateChecks=function(){var t=this,e=ie(this.canDeactivateChecks),n=Rt.a.call(e,function(e){return t.runCanDeactivate(e.component,e.route)});return s.call(n,function(t){return!0===t})},t.prototype.runCanActivateChecks=function(){var t=this,e=ie(this.canActivateChecks),n=It.a.call(e,function(e){return b(ie([t.fireChildActivationStart(e.route.parent),t.fireActivationStart(e.route),t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))});return s.call(n,function(t){return!0===t})},t.prototype.fireActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new Ye(t)),Object(At.a)(!0)},t.prototype.fireChildActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new Ge(t)),Object(At.a)(!0)},t.prototype.runCanActivate=function(t){var e=this,n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||0===n.length)return Object(At.a)(!0);return b(kt.a.call(ie(n),function(n){var r,i=e.getToken(n,t);return r=i.canActivate?_(i.canActivate(t,e.future)):_(i(t,e.future)),o.call(r)}))},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t});return b(kt.a.call(ie(r),function(t){return b(kt.a.call(ie(t.guards),function(r){var i,s=e.getToken(r,t.node);return i=s.canActivateChild?_(s.canActivateChild(n,e.future)):_(s(n,e.future)),o.call(i)}))}))},t.prototype.extractCanActivateChild=function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var n=this,r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!r||0===r.length)return Object(At.a)(!0);var i=Rt.a.call(ie(r),function(r){var i,s=n.getToken(r,e);return i=s.canDeactivate?_(s.canDeactivate(t,e,n.curr,n.future)):_(s(t,e,n.curr,n.future)),o.call(i)});return s.call(i,function(t){return!0===t})},t.prototype.runResolve=function(t){var e=t._resolve;return kt.a.call(this.resolveNode(e,t),function(e){return t._resolvedData=e,t.data=Object(Tt.a)({},t.data,q(t).resolve),null})},t.prototype.resolveNode=function(t,e){var n=this,r=Object.keys(t);if(0===r.length)return Object(At.a)({});if(1===r.length){var i=r[0];return kt.a.call(this.getResolver(t[i],e),function(t){return e={},e[i]=t,e;var e})}var o={},s=Rt.a.call(ie(r),function(r){return kt.a.call(n.getResolver(t[r],e),function(t){return o[r]=t,t})});return kt.a.call(a.call(s),function(){return o})},t.prototype.getResolver=function(t,e){var n=this.getToken(t,e);return n.resolve?_(n.resolve(e,this.future)):_(n(e,this.future))},t.prototype.getToken=function(t,e){var n=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(n?n.module.injector:this.moduleInjector).get(t)},t}(),Sn=function(){return function(){}}(),Cn=function(){function t(t,e,n,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r}return t.prototype.recognize=function(){try{var t=lt(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,Xe),n=new vn([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},Xe,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new fn(n,e),i=new mn(this.url,r);return this.inheritParamsAndData(i._root),Object(At.a)(i)}catch(t){return new Mt.Observable(function(e){return e.error(t)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=q(n);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n=this,r=E(e,function(e,r){return n.processSegmentGroup(t,e,r)});return function(t){var e={};t.forEach(function(t){var n=e[t.value.outlet];if(n){var r=n.url.map(function(t){return t.toString()}).join("/"),i=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}e[t.value.outlet]=t.value})}(r),function(t){t.sort(function(t,e){return t.value.outlet===Xe?-1:e.value.outlet===Xe?1:t.value.outlet.localeCompare(e.value.outlet)})}(r),r},t.prototype.processSegment=function(t,e,n,r){for(var i=0,o=t;i<o.length;i++){var s=o[i];try{return this.processSegmentAgainstRoute(s,e,n,r)}catch(t){if(!(t instanceof Sn))throw t}}if(this.noLeftoversInUrl(e,n,r))return[];throw new Sn},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new Sn;if((t.outlet||Xe)!==r)throw new Sn;if("**"===t.path){var i=n.length>0?v(n).parameters:{},o=new vn(n,i,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,dt(t),r,t.component,t,ct(e),ut(e)+n.length,ft(t));return[new fn(o,[])]}var s=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Sn;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||d)(n,t,e);if(!r)throw new Sn;var i={};m(r.posParams,function(t,e){i[e]=t.path});var o=r.consumed.length>0?Object(Tt.a)({},i,r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}(e,t,n),a=s.consumedSegments,c=s.parameters,u=s.lastChild,l=n.slice(u),p=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),h=lt(e,a,l,p),f=h.segmentGroup,y=h.slicedSegments,g=new vn(a,c,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,dt(t),r,t.component,t,ct(e),ut(e)+a.length,ft(t));if(0===y.length&&f.hasChildren()){var b=this.processChildren(p,f);return[new fn(g,b)]}if(0===p.length&&0===y.length)return[new fn(g,[])];var _=this.processSegment(p,f,y,Xe);return[new fn(g,_)]},t}(),En=function(){return function(){}}(),Tn=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),jn=new Et.InjectionToken("ROUTES"),Pn=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;this.onLoadStartListener&&this.onLoadStartListener(e);var r=this.loadModuleFactory(e.loadChildren);return kt.a.call(r,function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new Ze(g(i.injector.get(jn)),i)})},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?Object(he.a)(this.loader.load(t)):Rt.a.call(_(t()),function(t){return t instanceof Et.NgModuleFactory?Object(At.a)(t):Object(he.a)(e.compiler.compileModuleAsync(t))})},t}(),An=function(){return function(){}}(),In=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}(),kn=function(){function t(t,e,n,r,i,o,s,a){var c=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=a,this.navigations=new jt.a(null),this.navigationId=0,this.events=new Pt.a,this.errorHandler=yt,this.navigated=!1,this.hooks={beforePreactivation:gt,afterPreactivation:gt},this.urlHandlingStrategy=new In,this.routeReuseStrategy=new Tn,this.onSameUrlNavigation="ignore";this.ngModule=i.get(Et.NgModuleRef),this.resetConfig(a),this.currentUrlTree=new Je(new tn([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new Pn(o,s,function(t){return c.triggerEvent(new Ue(t))},function(t){return c.triggerEvent(new We(t))}),this.routerState=G(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(Zone.current.wrap(function(e){var n=t.urlSerializer.parse(e.url),r="popstate"===e.type?"popstate":"hashchange";setTimeout(function(){t.scheduleNavigation(n,r,{replaceUrl:!0})},0)})))},Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.events.next(t)},t.prototype.resetConfig=function(t){f(t),this.config=t,this.navigated=!1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){void 0===e&&(e={});var n=e.relativeTo,r=e.queryParams,i=e.fragment,o=e.preserveQueryParams,s=e.queryParamsHandling,a=e.preserveFragment;Object(Et.isDevMode)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,u=a?this.currentUrlTree.fragment:i,l=null;if(s)switch(s){case"merge":l=Object(Tt.a)({},this.currentUrlTree.queryParams,r);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=r||null}else l=o?this.currentUrlTree.queryParams:r||null;return null!==l&&(l=this.removeEmptyProps(l)),J(c,this.currentUrlTree,t,l,u)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var n=t instanceof Je?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e<t.length;e++){var n=t[e];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+e)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){return this.urlSerializer.parse(t)},t.prototype.isActive=function(t,e){if(t instanceof Je)return x(this.currentUrlTree,t,e);var n=this.urlSerializer.parse(t);return x(this.currentUrlTree,n,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return null!==r&&void 0!==r&&(e[n]=r),e},{})},t.prototype.processNavigations=function(){var t=this;It.a.call(this.navigations,function(e){return e?(t.executeScheduledNavigation(e),e.promise.catch(function(){})):Object(At.a)(null)}).subscribe(function(){})},t.prototype.scheduleNavigation=function(t,e,n){var r=this.navigations.value;if(r&&"imperative"!==e&&"imperative"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(r&&"hashchange"==e&&"popstate"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(r&&"popstate"==e&&"hashchange"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);var i=null,o=null,s=new Promise(function(t,e){i=t,o=e}),a=++this.navigationId;return this.navigations.next({id:a,source:e,rawUrl:t,extras:n,resolve:i,reject:o,promise:s}),s.catch(function(t){return Promise.reject(t)})},t.prototype.executeScheduledNavigation=function(t){var e=this,n=t.id,r=t.rawUrl,i=t.extras,o=t.resolve,s=t.reject,a=this.urlHandlingStrategy.extract(r),c=!this.navigated||a.toString()!==this.currentUrlTree.toString();("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(r)?(this.events.next(new Me(n,this.serializeUrl(a))),Promise.resolve().then(function(t){return e.runNavigate(a,r,!!i.skipLocationChange,!!i.replaceUrl,n,null)}).then(o,s)):c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.events.next(new Me(n,this.serializeUrl(a))),Promise.resolve().then(function(t){return e.runNavigate(a,r,!1,!1,n,G(a,e.rootComponentType).snapshot)}).then(o,s)):(this.rawUrlTree=r,o(null))},t.prototype.runNavigate=function(t,e,n,r,i,o){var s=this;return i!==this.navigationId?(this.events.next(new Ne(i,this.serializeUrl(t),"Navigation ID "+i+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(a,c){var u;if(o)u=Object(At.a)({appliedUrl:t,snapshot:o});else{var l=function(t,e,n,r,i){return new hn(t,e,n,r,i).apply()}(s.ngModule.injector,s.configLoader,s.urlSerializer,t,s.config);u=Rt.a.call(l,function(e){return kt.a.call(function(t,e,n,r){return new Cn(t,e,n,r).recognize()}(s.rootComponentType,s.config,e,s.serializeUrl(e)),function(n){return s.events.next(new Fe(i,s.serializeUrl(t),s.serializeUrl(e),n)),{appliedUrl:e,snapshot:n}})})}var p,h,d=Rt.a.call(u,function(t){return kt.a.call(s.hooks.beforePreactivation(t.snapshot),function(){return t})}),f=kt.a.call(d,function(t){var e=t.appliedUrl,n=t.snapshot,r=s.ngModule.injector;return(p=new On(n,s.routerState.snapshot,r,function(t){return s.triggerEvent(t)})).initialize(s.rootContexts),{appliedUrl:e,snapshot:n}}),y=Rt.a.call(f,function(e){var n=e.appliedUrl,r=e.snapshot;return s.navigationId!==i?Object(At.a)(!1):(s.triggerEvent(new Ve(i,s.serializeUrl(t),n,r)),kt.a.call(p.checkGuards(),function(e){return s.triggerEvent(new Be(i,s.serializeUrl(t),n,r,e)),{appliedUrl:n,snapshot:r,shouldActivate:e}}))}),g=Rt.a.call(y,function(e){return s.navigationId!==i?Object(At.a)(!1):e.shouldActivate&&p.isActivating()?(s.triggerEvent(new He(i,s.serializeUrl(t),e.appliedUrl,e.snapshot)),kt.a.call(p.resolveData(),function(){return s.triggerEvent(new ze(i,s.serializeUrl(t),e.appliedUrl,e.snapshot)),e})):Object(At.a)(e)}),v=Rt.a.call(g,function(t){return kt.a.call(s.hooks.afterPreactivation(t.snapshot),function(){return t})}),m=kt.a.call(v,function(t){var e=t.appliedUrl,n=t.snapshot,r=t.shouldActivate;if(r){return{appliedUrl:e,state:function(t,e,n){var r=Q(t,e._root,n?n._root:void 0);return new yn(r,e)}(s.routeReuseStrategy,n,s.routerState),shouldActivate:r}}return{appliedUrl:e,state:null,shouldActivate:r}}),b=s.routerState,_=s.currentUrlTree;m.forEach(function(t){var o=t.appliedUrl,a=t.state;if(t.shouldActivate&&i===s.navigationId){if(s.currentUrlTree=o,s.rawUrlTree=s.urlHandlingStrategy.merge(s.currentUrlTree,e),s.routerState=a,!n){var c=s.urlSerializer.serialize(s.rawUrlTree);s.location.isCurrentPathEqualTo(c)||r?s.location.replaceState(c):s.location.go(c)}new Rn(s.routeReuseStrategy,a,b,function(t){return s.triggerEvent(t)}).activate(s.rootContexts),h=!0}else h=!1}).then(function(){h?(s.navigated=!0,s.events.next(new De(i,s.serializeUrl(t),s.serializeUrl(s.currentUrlTree))),a(!0)):(s.resetUrlToCurrentUrlTree(),s.events.next(new Ne(i,s.serializeUrl(t),"")),a(!1))},function(n){if(function(t){return t&&t[Qe]}(n))s.resetUrlToCurrentUrlTree(),s.navigated=!0,s.events.next(new Ne(i,s.serializeUrl(t),n.message)),a(!1);else{s.events.next(new Le(i,s.serializeUrl(t),n));try{a(s.errorHandler(n))}catch(t){c(t)}}s.routerState=b,s.currentUrlTree=_,s.rawUrlTree=s.urlHandlingStrategy.merge(s.currentUrlTree,e),s.resetUrlToCurrentUrlTree()})})},t.prototype.resetUrlToCurrentUrlTree=function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree))},t}(),Rn=function(){function t(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}return t.prototype.activate=function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),X(this.futureState.root),this.activateChildRoutes(e,n,t)},t.prototype.deactivateChildRoutes=function(t,e,n){var r=this,i=W(e);t.children.forEach(function(t){var e=t.value.outlet;r.deactivateRoutes(t,i[e],n),delete i[e]}),m(i,function(t,e){r.deactivateRouteAndItsChildren(t,n)})},t.prototype.deactivateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(r===i)if(r.component){var o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,n);else i&&this.deactivateRouteAndItsChildren(e,n)},t.prototype.deactivateRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var n=e.getContext(t.value.outlet);if(n&&n.outlet){var r=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t,contexts:i})}},t.prototype.deactivateRouteAndOutlet=function(t,e){var n=this,r=e.getContext(t.value.outlet);if(r){var i=W(t),o=t.value.component?r.children:e;m(i,function(t,e){return n.deactivateRouteAndItsChildren(t,o)}),r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated())}},t.prototype.activateChildRoutes=function(t,e,n){var r=this,i=W(e);t.children.forEach(function(t){r.activateRoutes(t,i[t.value.outlet],n),r.forwardEvent(new Ke(t.value.snapshot))}),t.children.length&&this.forwardEvent(new qe(t.value.snapshot))},t.prototype.activateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(X(r),r===i)if(r.component){var o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,n);else if(r.component){o=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(s.contexts),o.attachRef=s.componentRef,o.route=s.route.value,o.outlet&&o.outlet.attach(s.componentRef,s.route.value),vt(s.route)}else{var a=function(t){for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(r.snapshot),c=a?a.module.componentFactoryResolver:null;o.route=r,o.resolver=c,o.outlet&&o.outlet.activateWith(r,c),this.activateChildRoutes(t,null,o.children)}}else this.activateChildRoutes(t,null,n)},t}(),Mn=function(){function t(t,e,n,r,i){this.router=t,this.route=e,this.commands=[],null==n&&r.setAttribute(i.nativeElement,"tabindex","0")}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){Object(Et.isDevMode)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){var t={skipLocationChange:mt(this.skipLocationChange),replaceUrl:mt(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:mt(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:mt(this.preserveFragment)})},enumerable:!0,configurable:!0}),t.decorators=[{type:Et.Directive,args:[{selector:":not(a)[routerLink]"}]}],t.ctorParameters=function(){return[{type:kn},{type:gn},{type:void 0,decorators:[{type:Et.Attribute,args:["tabindex"]}]},{type:Et.Renderer2},{type:Et.ElementRef}]},t.propDecorators={queryParams:[{type:Et.Input}],fragment:[{type:Et.Input}],queryParamsHandling:[{type:Et.Input}],preserveFragment:[{type:Et.Input}],skipLocationChange:[{type:Et.Input}],replaceUrl:[{type:Et.Input}],routerLink:[{type:Et.Input}],preserveQueryParams:[{type:Et.Input}],onClick:[{type:Et.HostListener,args:["click"]}]},t}(),Dn=function(){function t(t,e,n){var r=this;this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(function(t){t instanceof De&&r.updateTargetUrlAndHref()})}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){Object(Et.isDevMode)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,n,r){if(0!==t||e||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var i={skipLocationChange:mt(this.skipLocationChange),replaceUrl:mt(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,i),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:mt(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:mt(this.preserveFragment)})},enumerable:!0,configurable:!0}),t.decorators=[{type:Et.Directive,args:[{selector:"a[routerLink]"}]}],t.ctorParameters=function(){return[{type:kn},{type:gn},{type:Ct.LocationStrategy}]},t.propDecorators={target:[{type:Et.HostBinding,args:["attr.target"]},{type:Et.Input}],queryParams:[{type:Et.Input}],fragment:[{type:Et.Input}],queryParamsHandling:[{type:Et.Input}],preserveFragment:[{type:Et.Input}],skipLocationChange:[{type:Et.Input}],replaceUrl:[{type:Et.Input}],href:[{type:Et.HostBinding}],routerLink:[{type:Et.Input}],preserveQueryParams:[{type:Et.Input}],onClick:[{type:Et.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey","$event.shiftKey"]]}]},t}(),Nn=function(){function t(t,e,n,r){var i=this;this.router=t,this.element=e,this.renderer=n,this.cdr=r,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(function(t){t instanceof De&&i.update()})}return t.prototype.ngAfterContentInit=function(){var t=this;this.links.changes.subscribe(function(e){return t.update()}),this.linksWithHrefs.changes.subscribe(function(e){return t.update()}),this.update()},Object.defineProperty(t.prototype,"routerLinkActive",{set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(function(t){return!!t})},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.update()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.update=function(){var t=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(function(){var e=t.hasActiveLinks();t.isActive!==e&&(t.isActive=e,t.classes.forEach(function(n){e?t.renderer.addClass(t.element.nativeElement,n):t.renderer.removeClass(t.element.nativeElement,n)}))})},t.prototype.isLinkActive=function(t){var e=this;return function(n){return t.isActive(n.urlTree,e.routerLinkActiveOptions.exact)}},t.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},t.decorators=[{type:Et.Directive,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],t.ctorParameters=function(){return[{type:kn},{type:Et.ElementRef},{type:Et.Renderer2},{type:Et.ChangeDetectorRef}]},t.propDecorators={links:[{type:Et.ContentChildren,args:[Mn,{descendants:!0}]}],linksWithHrefs:[{type:Et.ContentChildren,args:[Dn,{descendants:!0}]}],routerLinkActiveOptions:[{type:Et.Input}],routerLinkActive:[{type:Et.Input}]},t}(),Ln=function(){return function(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Fn,this.attachRef=null}}(),Fn=function(){function t(){this.contexts=new Map}return t.prototype.onChildOutletCreated=function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)},t.prototype.onChildOutletDestroyed=function(t){var e=this.getContext(t);e&&(e.outlet=null)},t.prototype.onOutletDeactivated=function(){var t=this.contexts;return this.contexts=new Map,t},t.prototype.onOutletReAttached=function(t){this.contexts=t},t.prototype.getOrCreateContext=function(t){var e=this.getContext(t);return e||(e=new Ln,this.contexts.set(t,e)),e},t.prototype.getContext=function(t){return this.contexts.get(t)||null},t}(),Vn=function(){function t(t,e,n,r,i){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new Et.EventEmitter,this.deactivateEvents=new Et.EventEmitter,this.name=r||Xe,t.onChildOutletCreated(this.name,this)}return t.prototype.ngOnDestroy=function(){this.parentContexts.onChildOutletDestroyed(this.name)},t.prototype.ngOnInit=function(){if(!this.activated){var t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}},Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRouteData",{get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activateWith=function(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;var n=t._futureSnapshot.routeConfig.component,r=(e=e||this.resolver).resolveComponentFactory(n),i=this.parentContexts.getOrCreateContext(this.name).children,o=new Bn(t,i,this.location.injector);this.activated=this.location.createComponent(r,this.location.length,o),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},t.decorators=[{type:Et.Directive,args:[{selector:"router-outlet",exportAs:"outlet"}]}],t.ctorParameters=function(){return[{type:Fn},{type:Et.ViewContainerRef},{type:Et.ComponentFactoryResolver},{type:void 0,decorators:[{type:Et.Attribute,args:["name"]}]},{type:Et.ChangeDetectorRef}]},t.propDecorators={activateEvents:[{type:Et.Output,args:["activate"]}],deactivateEvents:[{type:Et.Output,args:["deactivate"]}]},t}(),Bn=function(){function t(t,e,n){this.route=t,this.childContexts=e,this.parent=n}return t.prototype.get=function(t,e){return t===gn?this.route:t===Fn?this.childContexts:this.parent.get(t,e)},t}(),Hn=function(){return function(){}}(),zn=function(){function t(){}return t.prototype.preload=function(t,e){return oe.a.call(e(),function(){return Object(At.a)(null)})},t}(),Un=function(){function t(){}return t.prototype.preload=function(t,e){return Object(At.a)(null)},t}(),Wn=function(){function t(t,e,n,r,i){this.router=t,this.injector=r,this.preloadingStrategy=i;this.loader=new Pn(e,n,function(e){return t.triggerEvent(new Ue(e))},function(e){return t.triggerEvent(new We(e))})}return t.prototype.setUpPreloading=function(){var t=this,e=ke.a.call(this.router.events,function(t){return t instanceof De});this.subscription=It.a.call(e,function(){return t.preload()}).subscribe(function(){})},t.prototype.preload=function(){var t=this.injector.get(Et.NgModuleRef);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r];if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var s=o._loadedConfig;n.push(this.processRoutes(s.module,s.routes))}else o.loadChildren&&!o.canLoad?n.push(this.preloadConfig(t,o)):o.children&&n.push(this.processRoutes(t,o.children))}return c.call(ie(n))},t.prototype.preloadConfig=function(t,e){var n=this;return this.preloadingStrategy.preload(e,function(){var r=n.loader.load(t.injector,e);return Rt.a.call(r,function(t){return e._loadedConfig=t,n.processRoutes(t.module,t.routes)})})},t.decorators=[{type:Et.Injectable}],t.ctorParameters=function(){return[{type:kn},{type:Et.NgModuleFactoryLoader},{type:Et.Compiler},{type:Et.Injector},{type:Hn}]},t}(),Gn=[Vn,Mn,Dn,Nn],qn=new Et.InjectionToken("ROUTER_CONFIGURATION"),Yn=new Et.InjectionToken("ROUTER_FORROOT_GUARD"),Kn=[Ct.Location,{provide:nn,useClass:rn},{provide:kn,useFactory:function(t,e,n,r,i,o,s,a,c,u,l){void 0===c&&(c={});var p=new kn(null,e,n,r,i,o,s,g(a));if(u&&(p.urlHandlingStrategy=u),l&&(p.routeReuseStrategy=l),c.errorHandler&&(p.errorHandler=c.errorHandler),c.enableTracing){var h=Object(Ie["\u0275getDOM"])();p.events.subscribe(function(t){h.logGroup("Router Event: "+t.constructor.name),h.log(t.toString()),h.log(t),h.logGroupEnd()})}return c.onSameUrlNavigation&&(p.onSameUrlNavigation=c.onSameUrlNavigation),p},deps:[Et.ApplicationRef,nn,Fn,Ct.Location,Et.Injector,Et.NgModuleFactoryLoader,Et.Compiler,jn,qn,[An,new Et.Optional],[En,new Et.Optional]]},Fn,{provide:gn,useFactory:function(t){return t.routerState.root},deps:[kn]},{provide:Et.NgModuleFactoryLoader,useClass:Et.SystemJsNgModuleLoader},Wn,Un,zn,{provide:qn,useValue:{enableTracing:!1}}],Xn=function(){function t(t,e){}return t.forRoot=function(e,n){return{ngModule:t,providers:[Kn,wt(e),{provide:Yn,useFactory:xt,deps:[[kn,new Et.Optional,new Et.SkipSelf]]},{provide:qn,useValue:n||{}},{provide:Ct.LocationStrategy,useFactory:_t,deps:[Ct.PlatformLocation,[new Et.Inject(Ct.APP_BASE_HREF),new Et.Optional],qn]},{provide:Hn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Un},{provide:Et.NgProbeToken,multi:!0,useFactory:bt},[$n,{provide:Et.APP_INITIALIZER,multi:!0,useFactory:Ot,deps:[$n]},{provide:Qn,useFactory:St,deps:[$n]},{provide:Et.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:Qn}]]}},t.forChild=function(e){return{ngModule:t,providers:[wt(e)]}},t.decorators=[{type:Et.NgModule,args:[{declarations:Gn,exports:Gn}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:Et.Optional},{type:Et.Inject,args:[Yn]}]},{type:kn,decorators:[{type:Et.Optional}]}]},t}(),$n=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new Pt.a}return t.prototype.appInitializer=function(){var t=this;return this.injector.get(Ct.LOCATION_INITIALIZED,Promise.resolve(null)).then(function(){var e=null,n=new Promise(function(t){return e=t}),r=t.injector.get(kn),i=t.injector.get(qn);if(t.isLegacyDisabled(i)||t.isLegacyEnabled(i))e(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),e(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '"+i.initialNavigation+"'");r.hooks.afterPreactivation=function(){return t.initNavigation?Object(At.a)(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()}return n})},t.prototype.bootstrapListener=function(t){var e=this.injector.get(qn),n=this.injector.get(Wn),r=this.injector.get(kn),i=this.injector.get(Et.ApplicationRef);t===i.components[0]&&(this.isLegacyEnabled(e)?r.initialNavigation():this.isLegacyDisabled(e)&&r.setUpLocationChangeListener(),n.setUpPreloading(),r.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},t.prototype.isLegacyEnabled=function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation},t.prototype.isLegacyDisabled=function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation},t.decorators=[{type:Et.Injectable}],t.ctorParameters=function(){return[{type:Et.Injector}]},t}(),Qn=new Et.InjectionToken("Router Initializer");new Et.Version("5.1.0")},UHtL:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("yW9Z"),o=n("ktfo");e.skipUntil=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.notifier))},t}(),a=function(t){function e(e,n){t.call(this,e),this.hasValue=!1,this.isInnerStopped=!1,this.add(o.subscribeToResult(this,n))}return r(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype._complete=function(){this.isInnerStopped?t.prototype._complete.call(this):this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){this.hasValue=!0},e.prototype.notifyComplete=function(){this.isInnerStopped=!0,this.isStopped&&t.prototype._complete.call(this)},e}(i.OuterSubscriber)},URbD:function(t,e,n){"use strict";function r(){return function(t){return t.lift(new p(t))}}function i(){return new s.a}function o(){return function(t){return r()(function(t,e){return function(n){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new v(r,e));var i=Object.create(n,y);return i.source=n,i.subjectFactory=r,i}}(i)(t))}}var s=n("TO51"),a=n("AP4T"),c=n("E9/g"),u=n("qLnt"),l=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},p=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new h(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),h=function(t){function e(e,n){t.call(this,e),this.connectable=n}return l(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(c.a),d=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},f=function(t){function e(e,n){t.call(this),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return d(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new u.a).add(this.source.subscribe(new g(this.getSubject(),this))),t.closed?(this._connection=null,t=u.a.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return r()(this)},e}(a.Observable).prototype,y={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:f._subscribe},_isComplete:{value:f._isComplete,writable:!0},getSubject:{value:f.getSubject},connect:{value:f.connect},refCount:{value:f.refCount}},g=function(t){function e(e,n){t.call(this,e),this.connectable=n}return d(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(s.b),v=(c.a,function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}());e.a=function(){return o()(this)}},UVHa:function(t,e,n){"use strict";var r=n("bKpL"),i=n("f7nC");r.Observable.prototype.bufferWhen=i.bufferWhen},UbPm:function(t,e,n){"use strict";var r=n("bKpL"),i=n("H9QY");r.Observable.prototype.timeInterval=i.timeInterval},Un6q:function(t,e,n){"use strict";function r(t){return t.replace(/\/index.html$/,"")}function i(t,e,n){"string"!=typeof e&&(n=e,e=t[0]),e=e.toLowerCase().replace(/_/g,"-"),gt[e]=t,n&&(gt[e][18]=n)}function o(t){return C(t)[0]}function s(t,e,n){var r=C(t);return O(O([r[1],r[2]],e),n)}function a(t,e,n){var r=C(t);return O(O([r[3],r[4]],e),n)}function c(t,e,n){var r=C(t);return O(O([r[5],r[6]],e),n)}function u(t,e){return O(C(t)[7],e)}function l(t){return C(t)[8]}function p(t){return C(t)[9]}function h(t,e){return C(t)[10][e]}function d(t,e){return C(t)[11][e]}function f(t,e){return O(C(t)[12],e)}function y(t,e){var n=C(t),r=n[13][e];if("undefined"==typeof r){if(e===wt.CurrencyDecimal)return n[13][wt.Decimal];if(e===wt.CurrencyGroup)return n[13][wt.Group]}return r}function g(t,e){return C(t)[14][e]}function v(t){return C(t)[15]||null}function m(t){return C(t)[16]||null}function b(t){return C(t)[17]}function _(t){if(!t[18])throw new Error('Missing extra locale data for the locale "'+t[0]+'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.')}function x(t){var e=C(t);_(e);return(e[18][2]||[]).map(function(t){return"string"==typeof t?S(t):[S(t[0]),S(t[1])]})}function w(t,e,n){var r=C(t);_(r);return O(O([r[18][0],r[18][1]],e)||[],n)||[]}function O(t,e){for(var n=e;n>-1;n--)if("undefined"!=typeof t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function S(t){var e=t.split(":");return{hours:+e[0],minutes:+e[1]}}function C(t){var e=t.toLowerCase().replace(/_/g,"-"),n=gt[e];if(n)return n;var r=e.split("-")[0];if(n=gt[r])return n;if("en"===r)return yt;throw new Error('Missing locale data for the locale "'+t+'".')}function E(t,e,n,r){var i="="+t;if(e.indexOf(i)>-1)return i;if(i=n.getPluralCategory(t,r),e.indexOf(i)>-1)return i;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function T(t,e){"string"==typeof e&&(e=parseInt(e,10));var n=e,r=n.toString().replace(/^[^.]*\.?/,""),i=Math.floor(Math.abs(n)),o=r.length,s=parseInt(r,10),a=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(t.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?mt.One:mt.Other;case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?mt.One:mt.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===n?mt.One:mt.Other;case"ar":return 0===n?mt.Zero:1===n?mt.One:2===n?mt.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?mt.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?mt.Many:mt.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===i&&0===o?mt.One:mt.Other;case"be":return n%10==1&&n%100!=11?mt.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?mt.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?mt.Many:mt.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?mt.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?mt.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?mt.Few:0!==n&&n%1e6==0?mt.Many:mt.Other;case"bs":case"hr":case"sr":return 0===o&&i%10==1&&i%100!=11||s%10==1&&s%100!=11?mt.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)||s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)?mt.Few:mt.Other;case"cs":case"sk":return 1===i&&0===o?mt.One:i===Math.floor(i)&&i>=2&&i<=4&&0===o?mt.Few:0!==o?mt.Many:mt.Other;case"cy":return 0===n?mt.Zero:1===n?mt.One:2===n?mt.Two:3===n?mt.Few:6===n?mt.Many:mt.Other;case"da":return 1===n||0!==a&&(0===i||1===i)?mt.One:mt.Other;case"dsb":case"hsb":return 0===o&&i%100==1||s%100==1?mt.One:0===o&&i%100==2||s%100==2?mt.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||s%100===Math.floor(s%100)&&s%100>=3&&s%100<=4?mt.Few:mt.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?mt.One:mt.Other;case"fil":return 0===o&&(1===i||2===i||3===i)||0===o&&i%10!=4&&i%10!=6&&i%10!=9||0!==o&&s%10!=4&&s%10!=6&&s%10!=9?mt.One:mt.Other;case"ga":return 1===n?mt.One:2===n?mt.Two:n===Math.floor(n)&&n>=3&&n<=6?mt.Few:n===Math.floor(n)&&n>=7&&n<=10?mt.Many:mt.Other;case"gd":return 1===n||11===n?mt.One:2===n||12===n?mt.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?mt.Few:mt.Other;case"gv":return 0===o&&i%10==1?mt.One:0===o&&i%10==2?mt.Two:0!==o||i%100!=0&&i%100!=20&&i%100!=40&&i%100!=60&&i%100!=80?0!==o?mt.Many:mt.Other:mt.Few;case"he":return 1===i&&0===o?mt.One:2===i&&0===o?mt.Two:0!==o||n>=0&&n<=10||n%10!=0?mt.Other:mt.Many;case"is":return 0===a&&i%10==1&&i%100!=11||0!==a?mt.One:mt.Other;case"ksh":return 0===n?mt.Zero:1===n?mt.One:mt.Other;case"kw":case"naq":case"se":case"smn":return 1===n?mt.One:2===n?mt.Two:mt.Other;case"lag":return 0===n?mt.Zero:0!==i&&1!==i||0===n?mt.Other:mt.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?mt.Few:0!==s?mt.Many:mt.Other:mt.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===o&&s%100===Math.floor(s%100)&&s%100>=11&&s%100<=19?mt.Zero:n%10==1&&n%100!=11||2===o&&s%10==1&&s%100!=11||2!==o&&s%10==1?mt.One:mt.Other;case"mk":return 0===o&&i%10==1||s%10==1?mt.One:mt.Other;case"mt":return 1===n?mt.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?mt.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?mt.Many:mt.Other;case"pl":return 1===i&&0===o?mt.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?mt.Few:0===o&&1!==i&&i%10===Math.floor(i%10)&&i%10>=0&&i%10<=1||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=12&&i%100<=14?mt.Many:mt.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?mt.One:mt.Other;case"ro":return 1===i&&0===o?mt.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?mt.Few:mt.Other;case"ru":case"uk":return 0===o&&i%10==1&&i%100!=11?mt.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?mt.Few:0===o&&i%10==0||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=11&&i%100<=14?mt.Many:mt.Other;case"shi":return 0===i||1===n?mt.One:n===Math.floor(n)&&n>=2&&n<=10?mt.Few:mt.Other;case"si":return 0===n||1===n||0===i&&1===s?mt.One:mt.Other;case"sl":return 0===o&&i%100==1?mt.One:0===o&&i%100==2?mt.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||0!==o?mt.Few:mt.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?mt.One:mt.Other;default:return mt.Other}}function j(t,e){e=encodeURIComponent(e);for(var n=0,r=t.split(";");n<r.length;n++){var i=r[n],o=i.indexOf("="),s=-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],a=s[1];if(s[0].trim()===e)return decodeURIComponent(a)}return null}function P(t,e,n,r){e=A(n,e)||e;for(var i,o=[];e;){if(!(i=Wt.exec(e))){o.push(e);break}var s=(o=o.concat(i.slice(1))).pop();if(!s)break;e=s}var a=t.getTimezoneOffset();r&&(a=L(r,a),t=function(t,e,n){var r=n?-1:1,i=t.getTimezoneOffset(),o=L(e,i);return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,r*(o-i))}(t,r,!0));var c="";return o.forEach(function(e){var r=function(t){if($t[t])return $t[t];var e;switch(t){case"G":case"GG":case"GGG":e=M(Yt.Eras,_t.Abbreviated);break;case"GGGG":e=M(Yt.Eras,_t.Wide);break;case"GGGGG":e=M(Yt.Eras,_t.Narrow);break;case"y":e=R(qt.FullYear,1,0,!1,!0);break;case"yy":e=R(qt.FullYear,2,0,!0,!0);break;case"yyy":e=R(qt.FullYear,3,0,!1,!0);break;case"yyyy":e=R(qt.FullYear,4,0,!1,!0);break;case"M":case"L":e=R(qt.Month,1,1);break;case"MM":case"LL":e=R(qt.Month,2,1);break;case"MMM":e=M(Yt.Months,_t.Abbreviated);break;case"MMMM":e=M(Yt.Months,_t.Wide);break;case"MMMMM":e=M(Yt.Months,_t.Narrow);break;case"LLL":e=M(Yt.Months,_t.Abbreviated,bt.Standalone);break;case"LLLL":e=M(Yt.Months,_t.Wide,bt.Standalone);break;case"LLLLL":e=M(Yt.Months,_t.Narrow,bt.Standalone);break;case"w":e=N(1);break;case"ww":e=N(2);break;case"W":e=N(1,!0);break;case"d":e=R(qt.Date,1);break;case"dd":e=R(qt.Date,2);break;case"E":case"EE":case"EEE":e=M(Yt.Days,_t.Abbreviated);break;case"EEEE":e=M(Yt.Days,_t.Wide);break;case"EEEEE":e=M(Yt.Days,_t.Narrow);break;case"EEEEEE":e=M(Yt.Days,_t.Short);break;case"a":case"aa":case"aaa":e=M(Yt.DayPeriods,_t.Abbreviated);break;case"aaaa":e=M(Yt.DayPeriods,_t.Wide);break;case"aaaaa":e=M(Yt.DayPeriods,_t.Narrow);break;case"b":case"bb":case"bbb":e=M(Yt.DayPeriods,_t.Abbreviated,bt.Standalone,!0);break;case"bbbb":e=M(Yt.DayPeriods,_t.Wide,bt.Standalone,!0);break;case"bbbbb":e=M(Yt.DayPeriods,_t.Narrow,bt.Standalone,!0);break;case"B":case"BB":case"BBB":e=M(Yt.DayPeriods,_t.Abbreviated,bt.Format,!0);break;case"BBBB":e=M(Yt.DayPeriods,_t.Wide,bt.Format,!0);break;case"BBBBB":e=M(Yt.DayPeriods,_t.Narrow,bt.Format,!0);break;case"h":e=R(qt.Hours,1,-12);break;case"hh":e=R(qt.Hours,2,-12);break;case"H":e=R(qt.Hours,1);break;case"HH":e=R(qt.Hours,2);break;case"m":e=R(qt.Minutes,1);break;case"mm":e=R(qt.Minutes,2);break;case"s":e=R(qt.Seconds,1);break;case"ss":e=R(qt.Seconds,2);break;case"S":e=R(qt.Milliseconds,1);break;case"SS":e=R(qt.Milliseconds,2);break;case"SSS":e=R(qt.Milliseconds,3);break;case"Z":case"ZZ":case"ZZZ":e=D(Gt.Short);break;case"ZZZZZ":e=D(Gt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=D(Gt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=D(Gt.Long);break;default:return null}return $t[t]=e,e}(e);c+=r?r(t,n,a):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function A(t,e){var n=o(t);if(Ut[n]=Ut[n]||{},Ut[n][e])return Ut[n][e];var r="";switch(e){case"shortDate":r=h(t,xt.Short);break;case"mediumDate":r=h(t,xt.Medium);break;case"longDate":r=h(t,xt.Long);break;case"fullDate":r=h(t,xt.Full);break;case"shortTime":r=d(t,xt.Short);break;case"mediumTime":r=d(t,xt.Medium);break;case"longTime":r=d(t,xt.Long);break;case"fullTime":r=d(t,xt.Full);break;case"short":var i=A(t,"shortTime"),s=A(t,"shortDate");r=I(f(t,xt.Short),[i,s]);break;case"medium":var a=A(t,"mediumTime"),c=A(t,"mediumDate");r=I(f(t,xt.Medium),[a,c]);break;case"long":var u=A(t,"longTime"),l=A(t,"longDate");r=I(f(t,xt.Long),[u,l]);break;case"full":var p=A(t,"fullTime"),y=A(t,"fullDate");r=I(f(t,xt.Full),[p,y])}return r&&(Ut[n][e]=r),r}function I(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function k(t,e,n,r,i){void 0===n&&(n="-");var o="";(t<0||i&&t<=0)&&(i?t=1-t:(t=-t,o=n));for(var s=""+t;s.length<e;)s="0"+s;return r&&(s=s.substr(s.length-e)),o+s}function R(t,e,n,r,i){return void 0===n&&(n=0),void 0===r&&(r=!1),void 0===i&&(i=!1),function(o,s){var a=function(t,e,n){switch(t){case qt.FullYear:return e.getFullYear();case qt.Month:return e.getMonth();case qt.Date:return e.getDate();case qt.Hours:return e.getHours();case qt.Minutes:return e.getMinutes();case qt.Seconds:return e.getSeconds();case qt.Milliseconds:var r=1===n?100:2===n?10:1;return Math.round(e.getMilliseconds()/r);case qt.Day:return e.getDay();default:throw new Error('Unknown DateType value "'+t+'".')}}(t,o,e);return(n>0||a>-n)&&(a+=n),t===qt.Hours&&0===a&&-12===n&&(a=12),k(a,e,y(s,wt.MinusSign),r,i)}}function M(t,e,n,r){return void 0===n&&(n=bt.Format),void 0===r&&(r=!1),function(i,o){return function(t,e,n,r,i,o){switch(n){case Yt.Months:return c(e,i,r)[t.getMonth()];case Yt.Days:return a(e,i,r)[t.getDay()];case Yt.DayPeriods:var l=t.getHours(),p=t.getMinutes();if(o){var h,d=x(e),f=w(e,i,r);if(d.forEach(function(t,e){if(Array.isArray(t)){var n=t[0],r=n.hours,i=n.minutes,o=t[1],s=o.hours,a=o.minutes;l>=r&&p>=i&&(l<s||l===s&&p<a)&&(h=f[e])}else{var c=t.hours,u=t.minutes;c===l&&u===p&&(h=f[e])}}),h)return h}return s(e,i,r)[l<12?0:1];case Yt.Eras:return u(e,r)[t.getFullYear()<=0?0:1]}}(i,o,t,e,n,r)}}function D(t){return function(e,n,r){var i=-1*r,o=y(n,wt.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(t){case Gt.Short:return(i>=0?"+":"")+k(s,2,o)+k(Math.abs(i%60),2,o);case Gt.ShortGMT:return"GMT"+(i>=0?"+":"")+k(s,1,o);case Gt.Long:return"GMT"+(i>=0?"+":"")+k(s,2,o)+":"+k(Math.abs(i%60),2,o);case Gt.Extended:return 0===r?"Z":(i>=0?"+":"")+k(s,2,o)+":"+k(Math.abs(i%60),2,o);default:throw new Error('Unknown zone width "'+t+'"')}}}function N(t,e){return void 0===e&&(e=!1),function(n,r){var i;if(e){var o=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();i=1+Math.floor((s+o)/7)}else{var a=function(t){var e=new Date(t,Kt,1).getDay();return new Date(t,0,1+(e<=Xt?Xt:Xt+7)-e)}(n.getFullYear()),c=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(Xt-t.getDay()))}(n).getTime()-a.getTime();i=1+Math.round(c/6048e5)}return k(i,t,y(r,wt.MinusSign))}}function L(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function F(t,e){return Error("InvalidPipeArgument: '"+e+"' for pipe '"+Object(ot["\u0275stringify"])(t)+"'")}function V(t){var e=new Date(0),n=0,r=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=+(t[9]+t[10]),r=+(t[9]+t[11])),i.call(e,+t[1],+t[2]-1,+t[3]);var s=+(t[4]||"0")-n,a=+(t[5]||"0")-r,c=+(t[6]||"0"),u=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,s,a,c,u),e}function B(t){return t instanceof Date&&!isNaN(t.valueOf())}function H(t){return function(e,n){var r=t(e,n);return 1==r.length?"0"+r:r}}function z(t){return function(e,n){return t(e,n).split(" ")[0]}}function U(t,e,n){return new Intl.DateTimeFormat(e,n).format(t).replace(/[\u200e\u200f]/g,"")}function W(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,n){var r=U(t,n,e);return r?r.substring(3):""}}function G(t,e){return t.hour12=e,t}function q(t,e){var n={};return n[t]=2===e?"2-digit":"numeric",n}function Y(t,e){var n={};return n[t]=e<4?e>1?"short":"narrow":"long",n}function K(t){return t.reduce(function(t,e){return Object(st.a)({},t,e)},{})}function X(t){return function(e,n){return U(e,n,t)}}function $(t){return t instanceof Date&&!isNaN(t.valueOf())}function Q(t,e,n,r,i){void 0===i&&(i=null);var o,s={str:null},a=g(e,n);if("string"!=typeof t||isNaN(+t-parseFloat(t))){if("number"!=typeof t)return s.error=t+" is not a number",s;o=t}else o=+t;n===vt.Percent&&(o*=100);var c=Math.abs(o)+"",u=function(t,e){void 0===e&&(e="-");var n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(le),i=r[0],o=r[1],s=-1!==i.indexOf(ce)?i.split(ce):[i.substring(0,i.lastIndexOf(ue)+1),i.substring(i.lastIndexOf(ue)+1)],a=s[0],c=s[1]||"";n.posPre=a.substr(0,a.indexOf(he));for(var u=0;u<c.length;u++){var l=c.charAt(u);l===ue?n.minFrac=n.maxFrac=u+1:l===he?n.maxFrac=u+1:n.posSuf+=l}var p=a.split(pe);if(n.gSize=p[1]?p[1].length:0,n.lgSize=p[2]||p[1]?(p[2]||p[1]).length:0,o){var h=i.length-n.posPre.length-n.posSuf.length,d=o.indexOf(he);n.negPre=o.substr(0,d).replace(/'/g,""),n.negSuf=o.substr(d+h).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}(a,y(e,wt.MinusSign)),l="",p=!1;if(isFinite(o)){var h=function(t){var e,n,r,i,o,s=0;(n=t.indexOf(ce))>-1&&(t=t.replace(ce,""));(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length);for(r=0;t.charAt(r)===ue;r++);if(r===(o=t.length))e=[0],n=1;else{for(o--;t.charAt(o)===ue;)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=+t.charAt(r)}n>ae&&(e=e.splice(0,ae-1),s=n-1,n=1);return{digits:e,exponent:s,integerLen:n}}(c),d=u.minInt,f=u.minFrac,v=u.maxFrac;if(r){var m=r.match(se);if(null===m)return s.error=r+" is not a valid digit info",s;var b=m[1],_=m[3],x=m[5];null!=b&&(d=Z(b)),null!=_&&(f=Z(_)),null!=x?v=Z(x):null!=_&&f>v&&(v=f)}!function(t,e,n){if(e>n)throw new Error("The minimum number of digits after fraction ("+e+") is higher than the maximum ("+n+").");var r=t.digits,i=r.length-t.integerLen,o=Math.min(Math.max(e,i),n),s=o+t.integerLen,a=r[s];if(s>0){r.splice(Math.max(t.integerLen,s));for(var c=s;c<r.length;c++)r[c]=0}else{i=Math.max(0,i),t.integerLen=1,r.length=Math.max(1,s=o+1),r[0]=0;for(var u=1;u<s;u++)r[u]=0}if(a>=5)if(s-1<0){for(var l=0;l>s;l--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++}else r[s-1]++;for(;i<Math.max(0,o);i++)r.push(0);var p=r.reduceRight(function(t,e,n,r){return e+=t,r[n]=e%10,Math.floor(e/10)},0);p&&(r.unshift(p),t.integerLen++)}(h,f,v);var w=h.digits,O=h.integerLen,S=h.exponent,C=[];for(p=w.every(function(t){return!t});O<d;O++)w.unshift(0);for(;O<0;O++)w.unshift(0);O>0?C=w.splice(O,w.length):(C=w,w=[0]);var E=[];for(w.length>=u.lgSize&&E.unshift(w.splice(-u.lgSize,w.length).join(""));w.length>u.gSize;)E.unshift(w.splice(-u.gSize,w.length).join(""));w.length&&E.unshift(w.join(""));var T=i?wt.CurrencyGroup:wt.Group;if(l=E.join(y(e,T)),C.length){l+=y(e,i?wt.CurrencyDecimal:wt.Decimal)+C.join("")}S&&(l+=y(e,wt.Exponential)+"+"+S)}else l=y(e,wt.Infinity);return l=o<0&&!p?u.negPre+l+u.negSuf:u.posPre+l+u.posSuf,n===vt.Currency&&null!==i?(s.str=l.replace(de,i).replace(de,""),s):n===vt.Percent?(s.str=l.replace(new RegExp(fe,"g"),y(e,wt.PercentSign)),s):(s.str=l,s)}function Z(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function J(t,e,n,r,i,o,s){if(void 0===o&&(o=null),void 0===s&&(s=!1),null==n)return null;if("number"!=typeof(n="string"!=typeof n||isNaN(+n-parseFloat(n))?n:+n))throw F(t,n);var a,c,u;if(r!==vt.Currency&&(a=1,c=0,u=3),i){var l=i.match(se);if(null===l)throw new Error(i+" is not a valid digit info for number pipes");null!=l[1]&&(a=Z(l[1])),null!=l[3]&&(c=Z(l[3])),null!=l[5]&&(u=Z(l[5]))}return Jt.format(n,e,r,{minimumIntegerDigits:a,minimumFractionDigits:c,maximumFractionDigits:u,currency:o,currencyAsSymbol:s})}function tt(t){return null==t||""===t||t!=t}function et(t){return t===Ve}function nt(t){return t===Be}function rt(t){return t===He}function it(t){return t===ze}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"NgLocaleLocalization",function(){return Et}),n.d(e,"NgLocalization",function(){return Ct}),n.d(e,"registerLocaleData",function(){return i}),n.d(e,"Plural",function(){return mt}),n.d(e,"NumberFormatStyle",function(){return vt}),n.d(e,"FormStyle",function(){return bt}),n.d(e,"TranslationWidth",function(){return _t}),n.d(e,"FormatWidth",function(){return xt}),n.d(e,"NumberSymbol",function(){return wt}),n.d(e,"WeekDay",function(){return Ot}),n.d(e,"getLocaleDayPeriods",function(){return s}),n.d(e,"getLocaleDayNames",function(){return a}),n.d(e,"getLocaleMonthNames",function(){return c}),n.d(e,"getLocaleId",function(){return o}),n.d(e,"getLocaleEraNames",function(){return u}),n.d(e,"getLocaleWeekEndRange",function(){return p}),n.d(e,"getLocaleFirstDayOfWeek",function(){return l}),n.d(e,"getLocaleDateFormat",function(){return h}),n.d(e,"getLocaleDateTimeFormat",function(){return f}),n.d(e,"getLocaleExtraDayPeriodRules",function(){return x}),n.d(e,"getLocaleExtraDayPeriods",function(){return w}),n.d(e,"getLocalePluralCase",function(){return b}),n.d(e,"getLocaleTimeFormat",function(){return d}),n.d(e,"getLocaleNumberSymbol",function(){return y}),n.d(e,"getLocaleNumberFormat",function(){return g}),n.d(e,"getLocaleCurrencyName",function(){return m}),n.d(e,"getLocaleCurrencySymbol",function(){return v}),n.d(e,"CURRENCIES",function(){return ft}),n.d(e,"\u0275parseCookieValue",function(){return j}),n.d(e,"CommonModule",function(){return De}),n.d(e,"DeprecatedI18NPipesModule",function(){return Le}),n.d(e,"NgClass",function(){return Tt}),n.d(e,"NgForOf",function(){return At}),n.d(e,"NgForOfContext",function(){return Pt}),n.d(e,"NgIf",function(){return kt}),n.d(e,"NgIfContext",function(){return Rt}),n.d(e,"NgPlural",function(){return Ft}),n.d(e,"NgPluralCase",function(){return Vt}),n.d(e,"NgStyle",function(){return Bt}),n.d(e,"NgSwitch",function(){return Dt}),n.d(e,"NgSwitchCase",function(){return Nt}),n.d(e,"NgSwitchDefault",function(){return Lt}),n.d(e,"NgTemplateOutlet",function(){return Ht}),n.d(e,"NgComponentOutlet",function(){return jt}),n.d(e,"DOCUMENT",function(){return Fe}),n.d(e,"AsyncPipe",function(){return we}),n.d(e,"DatePipe",function(){return Zt}),n.d(e,"I18nPluralPipe",function(){return Te}),n.d(e,"I18nSelectPipe",function(){return je}),n.d(e,"JsonPipe",function(){return Pe}),n.d(e,"LowerCasePipe",function(){return Oe}),n.d(e,"CurrencyPipe",function(){return ke}),n.d(e,"DecimalPipe",function(){return Ae}),n.d(e,"PercentPipe",function(){return Ie}),n.d(e,"SlicePipe",function(){return Re}),n.d(e,"UpperCasePipe",function(){return Ce}),n.d(e,"TitleCasePipe",function(){return Se}),n.d(e,"DeprecatedDatePipe",function(){return oe}),n.d(e,"DeprecatedCurrencyPipe",function(){return ve}),n.d(e,"DeprecatedDecimalPipe",function(){return ye}),n.d(e,"DeprecatedPercentPipe",function(){return ge}),n.d(e,"\u0275PLATFORM_BROWSER_ID",function(){return Ve}),n.d(e,"\u0275PLATFORM_SERVER_ID",function(){return Be}),n.d(e,"\u0275PLATFORM_WORKER_APP_ID",function(){return He}),n.d(e,"\u0275PLATFORM_WORKER_UI_ID",function(){return ze}),n.d(e,"isPlatformBrowser",function(){return et}),n.d(e,"isPlatformServer",function(){return nt}),n.d(e,"isPlatformWorkerApp",function(){return rt}),n.d(e,"isPlatformWorkerUi",function(){return it}),n.d(e,"VERSION",function(){return Ue}),n.d(e,"PlatformLocation",function(){return at}),n.d(e,"LOCATION_INITIALIZED",function(){return ct}),n.d(e,"LocationStrategy",function(){return ut}),n.d(e,"APP_BASE_HREF",function(){return lt}),n.d(e,"HashLocationStrategy",function(){return ht}),n.d(e,"PathLocationStrategy",function(){return dt}),n.d(e,"Location",function(){return pt}),n.d(e,"\u0275e",function(){return zt}),n.d(e,"\u0275d",function(){return C}),n.d(e,"\u0275a",function(){return St}),n.d(e,"\u0275b",function(){return T}),n.d(e,"\u0275g",function(){return me}),n.d(e,"\u0275f",function(){return Me});var ot=n("LMZF"),st=n("6Xbx"),at=function(){return function(){}}(),ct=new ot.InjectionToken("Location Initialized"),ut=function(){return function(){}}(),lt=new ot.InjectionToken("appBaseHref"),pt=function(){function t(e){var n=this;this._subject=new ot.EventEmitter,this._platformStrategy=e;var i=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(r(i)),this._platformStrategy.onPopState(function(t){n._subject.emit({url:n.path(!0),pop:!0,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},t.prototype.normalize=function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,r(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e){void 0===e&&(e=""),this._platformStrategy.pushState(null,"",t,e)},t.prototype.replaceState=function(t,e){void 0===e&&(e=""),this._platformStrategy.replaceState(null,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length,r=n-("/"===t[n-1]?1:0);return t.slice(0,r)+t.slice(n)},t.decorators=[{type:ot.Injectable}],t.ctorParameters=function(){return[{type:ut}]},t}(),ht=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return Object(st.b)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=pt.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+pt.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+pt.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e.decorators=[{type:ot.Injectable}],e.ctorParameters=function(){return[{type:at},{type:void 0,decorators:[{type:ot.Optional},{type:ot.Inject,args:[lt]}]}]},e}(ut),dt=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return Object(st.b)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return pt.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+pt.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+pt.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+pt.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e.decorators=[{type:ot.Injectable}],e.ctorParameters=function(){return[{type:at},{type:void 0,decorators:[{type:ot.Optional},{type:ot.Inject,args:[lt]}]}]},e}(ut),ft={AOA:[,"Kz"],ARS:[,"$"],AUD:["A$","$"],BAM:[,"KM"],BBD:[,"$"],BDT:[,"\u09f3"],BMD:[,"$"],BND:[,"$"],BOB:[,"Bs"],BRL:["R$"],BSD:[,"$"],BWP:[,"P"],BYN:[,"\u0440."],BZD:[,"$"],CAD:["CA$","$"],CLP:[,"$"],CNY:["CN\xa5","\xa5"],COP:[,"$"],CRC:[,"\u20a1"],CUC:[,"$"],CUP:[,"$"],CZK:[,"K\u010d"],DKK:[,"kr"],DOP:[,"$"],EGP:[,"E\xa3"],ESP:[,"\u20a7"],EUR:["\u20ac"],FJD:[,"$"],FKP:[,"\xa3"],GBP:["\xa3"],GEL:[,"\u20be"],GIP:[,"\xa3"],GNF:[,"FG"],GTQ:[,"Q"],GYD:[,"$"],HKD:["HK$","$"],HNL:[,"L"],HRK:[,"kn"],HUF:[,"Ft"],IDR:[,"Rp"],ILS:["\u20aa"],INR:["\u20b9"],ISK:[,"kr"],JMD:[,"$"],JPY:["\xa5"],KHR:[,"\u17db"],KMF:[,"CF"],KPW:[,"\u20a9"],KRW:["\u20a9"],KYD:[,"$"],KZT:[,"\u20b8"],LAK:[,"\u20ad"],LBP:[,"L\xa3"],LKR:[,"Rs"],LRD:[,"$"],LTL:[,"Lt"],LVL:[,"Ls"],MGA:[,"Ar"],MMK:[,"K"],MNT:[,"\u20ae"],MUR:[,"Rs"],MXN:["MX$","$"],MYR:[,"RM"],NAD:[,"$"],NGN:[,"\u20a6"],NIO:[,"C$"],NOK:[,"kr"],NPR:[,"Rs"],NZD:["NZ$","$"],PHP:[,"\u20b1"],PKR:[,"Rs"],PLN:[,"z\u0142"],PYG:[,"\u20b2"],RON:[,"lei"],RUB:[,"\u20bd"],RUR:[,"\u0440."],RWF:[,"RF"],SBD:[,"$"],SEK:[,"kr"],SGD:[,"$"],SHP:[,"\xa3"],SRD:[,"$"],SSP:[,"\xa3"],STD:[,"Db"],SYP:[,"\xa3"],THB:[,"\u0e3f"],TOP:[,"T$"],TRY:[,"\u20ba"],TTD:[,"$"],TWD:["NT$","$"],UAH:[,"\u20b4"],USD:["$"],UYU:[,"$"],VEF:[,"Bs"],VND:["\u20ab"],XAF:["FCFA"],XCD:["EC$","$"],XOF:["CFA"],XPF:["CFPF"],ZAR:[,"R"],ZMW:[,"ZK"]},yt=["en",[["a","p"],["AM","PM"]],[["AM","PM"],,],[["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"]],,[["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"]],,[["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}",,"{1} 'at' {0}"],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],gt={},vt={Decimal:0,Percent:1,Currency:2,Scientific:3};vt[vt.Decimal]="Decimal",vt[vt.Percent]="Percent",vt[vt.Currency]="Currency",vt[vt.Scientific]="Scientific";var mt={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};mt[mt.Zero]="Zero",mt[mt.One]="One",mt[mt.Two]="Two",mt[mt.Few]="Few",mt[mt.Many]="Many",mt[mt.Other]="Other";var bt={Format:0,Standalone:1};bt[bt.Format]="Format",bt[bt.Standalone]="Standalone";var _t={Narrow:0,Abbreviated:1,Wide:2,Short:3};_t[_t.Narrow]="Narrow",_t[_t.Abbreviated]="Abbreviated",_t[_t.Wide]="Wide",_t[_t.Short]="Short";var xt={Short:0,Medium:1,Long:2,Full:3};xt[xt.Short]="Short",xt[xt.Medium]="Medium",xt[xt.Long]="Long",xt[xt.Full]="Full";var wt={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};wt[wt.Decimal]="Decimal",wt[wt.Group]="Group",wt[wt.List]="List",wt[wt.PercentSign]="PercentSign",wt[wt.PlusSign]="PlusSign",wt[wt.MinusSign]="MinusSign",wt[wt.Exponential]="Exponential",wt[wt.SuperscriptingExponent]="SuperscriptingExponent",wt[wt.PerMille]="PerMille",wt[wt.Infinity]="Infinity",wt[wt.NaN]="NaN",wt[wt.TimeSeparator]="TimeSeparator",wt[wt.CurrencyDecimal]="CurrencyDecimal",wt[wt.CurrencyGroup]="CurrencyGroup";var Ot={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6};Ot[Ot.Sunday]="Sunday",Ot[Ot.Monday]="Monday",Ot[Ot.Tuesday]="Tuesday",Ot[Ot.Wednesday]="Wednesday",Ot[Ot.Thursday]="Thursday",Ot[Ot.Friday]="Friday",Ot[Ot.Saturday]="Saturday";var St=new ot.InjectionToken("UseV4Plurals"),Ct=function(){return function(){}}(),Et=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return Object(st.b)(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):b(e||this.locale)(t)){case mt.Zero:return"zero";case mt.One:return"one";case mt.Two:return"two";case mt.Few:return"few";case mt.Many:return"many";default:return"other"}},e.decorators=[{type:ot.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:ot.Inject,args:[ot.LOCALE_ID]}]},{type:void 0,decorators:[{type:ot.Optional},{type:ot.Inject,args:[St]}]}]},e}(Ct),Tt=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._applyInitialClasses(!0),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Object(ot["\u0275isListLikeIterable"])(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(ot["\u0275stringify"])(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})},t.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(n){return e._toggleClass(n,!t)})},t.prototype._applyClasses=function(t,e){var n=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return n._toggleClass(t,!e)}):Object.keys(t).forEach(function(r){null!=t[r]&&n._toggleClass(r,!e)}))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)})},t.decorators=[{type:ot.Directive,args:[{selector:"[ngClass]"}]}],t.ctorParameters=function(){return[{type:ot.IterableDiffers},{type:ot.KeyValueDiffers},{type:ot.ElementRef},{type:ot.Renderer2}]},t.propDecorators={klass:[{type:ot.Input,args:["class"]}],ngClass:[{type:ot.Input}]},t}(),jt=function(){function t(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return t.prototype.ngOnChanges=function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=e.get(ot.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var r=(this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(ot.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(r,this._viewContainerRef.length,e,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t.decorators=[{type:ot.Directive,args:[{selector:"[ngComponentOutlet]"}]}],t.ctorParameters=function(){return[{type:ot.ViewContainerRef}]},t.propDecorators={ngComponentOutlet:[{type:ot.Input}],ngComponentOutletInjector:[{type:ot.Input}],ngComponentOutletContent:[{type:ot.Input}],ngComponentOutletNgModuleFactory:[{type:ot.Input}]},t}(),Pt=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),At=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){Object(ot.isDevMode)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+function(t){return t.name||typeof t}(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new Pt(null,e.ngForOf,-1,-1),i),s=new It(t,o);n.push(s)}else if(null==i)e._viewContainer.remove(r);else{o=e._viewContainer.get(r);e._viewContainer.move(o,i);s=new It(t,o);n.push(s)}});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);r=0;for(var i=this._viewContainer.length;r<i;r++){var o=this._viewContainer.get(r);o.context.index=r,o.context.count=i}t.forEachIdentityChange(function(t){e._viewContainer.get(t.currentIndex).context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t.decorators=[{type:ot.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],t.ctorParameters=function(){return[{type:ot.ViewContainerRef},{type:ot.TemplateRef},{type:ot.IterableDiffers}]},t.propDecorators={ngForOf:[{type:ot.Input}],ngForTrackBy:[{type:ot.Input}],ngForTemplate:[{type:ot.Input}]},t}(),It=function(){return function(t,e){this.record=t,this.view=e}}(),kt=function(){function t(t,e){this._viewContainer=t,this._context=new Rt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},t.decorators=[{type:ot.Directive,args:[{selector:"[ngIf]"}]}],t.ctorParameters=function(){return[{type:ot.ViewContainerRef},{type:ot.TemplateRef}]},t.propDecorators={ngIf:[{type:ot.Input}],ngIfThen:[{type:ot.Input}],ngIfElse:[{type:ot.Input}]},t}(),Rt=function(){return function(){this.$implicit=null,this.ngIf=null}}(),Mt=function(){function t(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}return t.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},t.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},t.prototype.enforceState=function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()},t}(),Dt=function(){function t(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),t.prototype._addCase=function(){return this._caseCount++},t.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},t.prototype._matchCase=function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e},t.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++){this._defaultViews[e].enforceState(t)}}},t.decorators=[{type:ot.Directive,args:[{selector:"[ngSwitch]"}]}],t.ctorParameters=function(){return[]},t.propDecorators={ngSwitch:[{type:ot.Input}]},t}(),Nt=function(){function t(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new Mt(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t.decorators=[{type:ot.Directive,args:[{selector:"[ngSwitchCase]"}]}],t.ctorParameters=function(){return[{type:ot.ViewContainerRef},{type:ot.TemplateRef},{type:Dt,decorators:[{type:ot.Host}]}]},t.propDecorators={ngSwitchCase:[{type:ot.Input}]},t}(),Lt=function(){function t(t,e,n){n._addDefault(new Mt(t,e))}return t.decorators=[{type:ot.Directive,args:[{selector:"[ngSwitchDefault]"}]}],t.ctorParameters=function(){return[{type:ot.ViewContainerRef},{type:ot.TemplateRef},{type:Dt,decorators:[{type:ot.Host}]}]},t}(),Ft=function(){function t(t){this._localization=t,this._caseViews={}}return Object.defineProperty(t.prototype,"ngPlural",{set:function(t){this._switchValue=t,this._updateView()},enumerable:!0,configurable:!0}),t.prototype.addCase=function(t,e){this._caseViews[t]=e},t.prototype._updateView=function(){this._clearViews();var t=Object.keys(this._caseViews),e=E(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])},t.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},t.prototype._activateView=function(t){t&&(this._activeView=t,this._activeView.create())},t.decorators=[{type:ot.Directive,args:[{selector:"[ngPlural]"}]}],t.ctorParameters=function(){return[{type:Ct}]},t.propDecorators={ngPlural:[{type:ot.Input}]},t}(),Vt=function(){function t(t,e,n,r){this.value=t;var i=!isNaN(Number(t));r.addCase(i?"="+t:t,new Mt(n,e))}return t.decorators=[{type:ot.Directive,args:[{selector:"[ngPluralCase]"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:ot.Attribute,args:["ngPluralCase"]}]},{type:ot.TemplateRef},{type:ot.ViewContainerRef},{type:Ft,decorators:[{type:ot.Host}]}]},t}(),Bt=function(){function t(t,e,n){this._differs=t,this._ngEl=e,this._renderer=n}return Object.defineProperty(t.prototype,"ngStyle",{set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this;t.forEachRemovedItem(function(t){return e._setStyle(t.key,null)}),t.forEachAddedItem(function(t){return e._setStyle(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._setStyle(t.key,t.currentValue)})},t.prototype._setStyle=function(t,e){var n=t.split("."),r=n[0],i=n[1];e=null!=e&&i?""+e+i:e,this._renderer.setStyle(this._ngEl.nativeElement,r,e)},t.decorators=[{type:ot.Directive,args:[{selector:"[ngStyle]"}]}],t.ctorParameters=function(){return[{type:ot.KeyValueDiffers},{type:ot.ElementRef},{type:ot.Renderer2}]},t.propDecorators={ngStyle:[{type:ot.Input}]},t}(),Ht=function(){function t(t){this._viewContainerRef=t}return t.prototype.ngOnChanges=function(t){this._shouldRecreateView(t)?(this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))):this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)},t.prototype._shouldRecreateView=function(t){var e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)},t.prototype._hasContextShapeChanged=function(t){var e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(var r=0,i=n;r<i.length;r++){var o=i[r];if(-1===e.indexOf(o))return!0}return!1}return!0},t.prototype._updateExistingContext=function(t){for(var e=0,n=Object.keys(t);e<n.length;e++){var r=n[e];this._viewRef.context[r]=this.ngTemplateOutletContext[r]}},t.decorators=[{type:ot.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],t.ctorParameters=function(){return[{type:ot.ViewContainerRef}]},t.propDecorators={ngTemplateOutletContext:[{type:ot.Input}],ngTemplateOutlet:[{type:ot.Input}]},t}(),zt=[Tt,jt,At,kt,Ht,Bt,Dt,Nt,Lt,Ft,Vt],Ut={},Wt=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Gt={Short:0,ShortGMT:1,Long:2,Extended:3};Gt[Gt.Short]="Short",Gt[Gt.ShortGMT]="ShortGMT",Gt[Gt.Long]="Long",Gt[Gt.Extended]="Extended";var qt={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,Milliseconds:6,Day:7};qt[qt.FullYear]="FullYear",qt[qt.Month]="Month",qt[qt.Date]="Date",qt[qt.Hours]="Hours",qt[qt.Minutes]="Minutes",qt[qt.Seconds]="Seconds",qt[qt.Milliseconds]="Milliseconds",qt[qt.Day]="Day";var Yt={DayPeriods:0,Days:1,Months:2,Eras:3};Yt[Yt.DayPeriods]="DayPeriods",Yt[Yt.Days]="Days",Yt[Yt.Months]="Months",Yt[Yt.Eras]="Eras";var Kt=0,Xt=4,$t={},Qt=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Zt=function(){function t(t){this.locale=t}return t.prototype.transform=function(e,n,r,i){if(void 0===n&&(n="mediumDate"),null==e||""===e||e!=e)return null;"string"==typeof e&&(e=e.trim());var o;if(B(e))o=e;else if(isNaN(e-parseFloat(e)))if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var s=e.split("-").map(function(t){return+t}),a=s[0],c=s[1],u=s[2];o=new Date(a,c-1,u)}else o=new Date(e);else o=new Date(parseFloat(e));if(!B(o)){var l=void 0;if("string"!=typeof e||!(l=e.match(Qt)))throw F(t,e);o=V(l)}return P(o,n,i||this.locale,r)},t.decorators=[{type:ot.Pipe,args:[{name:"date",pure:!0}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:ot.Inject,args:[ot.LOCALE_ID]}]}]},t}(),Jt=function(){function t(){}return t.format=function(t,e,n,r){void 0===r&&(r={});var i=r.minimumIntegerDigits,o=r.minimumFractionDigits,s=r.maximumFractionDigits,a=r.currency,c=r.currencyAsSymbol,u=void 0!==c&&c,l={minimumIntegerDigits:i,minimumFractionDigits:o,maximumFractionDigits:s,style:vt[n].toLowerCase()};return n==vt.Currency&&(l.currency="string"==typeof a?a:void 0,l.currencyDisplay=u?"symbol":"code"),new Intl.NumberFormat(e,l).format(t)},t}(),te=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,ee={yMMMdjms:X(K([q("year",1),Y("month",3),q("day",1),q("hour",1),q("minute",1),q("second",1)])),yMdjm:X(K([q("year",1),q("month",1),q("day",1),q("hour",1),q("minute",1)])),yMMMMEEEEd:X(K([q("year",1),Y("month",4),Y("weekday",4),q("day",1)])),yMMMMd:X(K([q("year",1),Y("month",4),q("day",1)])),yMMMd:X(K([q("year",1),Y("month",3),q("day",1)])),yMd:X(K([q("year",1),q("month",1),q("day",1)])),jms:X(K([q("hour",1),q("second",1),q("minute",1)])),jm:X(K([q("hour",1),q("minute",1)]))},ne={yyyy:X(q("year",4)),yy:X(q("year",2)),y:X(q("year",1)),MMMM:X(Y("month",4)),MMM:X(Y("month",3)),MM:X(q("month",2)),M:X(q("month",1)),LLLL:X(Y("month",4)),L:X(Y("month",1)),dd:X(q("day",2)),d:X(q("day",1)),HH:H(z(X(G(q("hour",2),!1)))),H:z(X(G(q("hour",1),!1))),hh:H(z(X(G(q("hour",2),!0)))),h:z(X(G(q("hour",1),!0))),jj:X(q("hour",2)),j:X(q("hour",1)),mm:H(X(q("minute",2))),m:X(q("minute",1)),ss:H(X(q("second",2))),s:X(q("second",1)),sss:X(q("second",3)),EEEE:X(Y("weekday",4)),EEE:X(Y("weekday",3)),EE:X(Y("weekday",2)),E:X(Y("weekday",1)),a:function(t){return function(e,n){return t(e,n).split(" ")[1]}}(X(G(q("hour",1),!0))),Z:W("short"),z:W("long"),ww:X({}),w:X({}),G:X(Y("era",1)),GG:X(Y("era",2)),GGG:X(Y("era",3)),GGGG:X(Y("era",4))},re=new Map,ie=function(){function t(){}return t.format=function(t,e,n){return function(t,e,n){var r=ee[t];if(r)return r(e,n);var i=t,o=re.get(i);if(!o){o=[];var s=void 0;te.exec(t);for(var a=t;a;)(s=te.exec(a))?a=(o=o.concat(s.slice(1))).pop():(o.push(a),a=null);re.set(i,o)}return o.reduce(function(t,r){var i=ne[r];return t+(i?i(e,n):function(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}(r))},"")}(n,t,e)},t}(),oe=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){if(void 0===n&&(n="mediumDate"),null==e||""===e||e!=e)return null;var r;if("string"==typeof e&&(e=e.trim()),$(e))r=e;else if(isNaN(e-parseFloat(e)))if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var i=e.split("-").map(function(t){return parseInt(t,10)}),o=i[0],s=i[1],a=i[2];r=new Date(o,s-1,a)}else r=new Date(e);else r=new Date(parseFloat(e));if(!$(r)){var c=void 0;if("string"!=typeof e||!(c=e.match(Qt)))throw F(t,e);r=V(c)}return ie.format(r,this._locale,t._ALIASES[n]||n)},t._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},t.decorators=[{type:ot.Pipe,args:[{name:"date",pure:!0}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:ot.Inject,args:[ot.LOCALE_ID]}]}]},t}(),se=/^(\d+)?\.((\d+)(-(\d+))?)?$/,ae=22,ce=".",ue="0",le=";",pe=",",he="#",de="\xa4",fe="%",ye=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return J(t,this._locale,e,vt.Decimal,n)},t.decorators=[{type:ot.Pipe,args:[{name:"number"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:ot.Inject,args:[ot.LOCALE_ID]}]}]},t}(),ge=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return J(t,this._locale,e,vt.Percent,n)},t.decorators=[{type:ot.Pipe,args:[{name:"percent"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:ot.Inject,args:[ot.LOCALE_ID]}]}]},t}(),ve=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,r,i){return void 0===n&&(n="USD"),void 0===r&&(r=!1),J(t,this._locale,e,vt.Currency,i,n,r)},t.decorators=[{type:ot.Pipe,args:[{name:"currency"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:ot.Inject,args:[ot.LOCALE_ID]}]}]},t}(),me=[ye,ge,ve,oe],be=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.subscribe({next:e,error:function(t){throw t}})},t.prototype.dispose=function(t){t.unsubscribe()},t.prototype.onDestroy=function(t){t.unsubscribe()},t}(),_e=new(function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},t.prototype.dispose=function(t){},t.prototype.onDestroy=function(t){},t}()),xe=new be,we=function(){function t(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return t.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},t.prototype.transform=function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,ot.WrappedValue.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)},t.prototype._subscribe=function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,function(n){return e._updateLatestValue(t,n)})},t.prototype._selectStrategy=function(e){if(Object(ot["\u0275isPromise"])(e))return _e;if(Object(ot["\u0275isObservable"])(e))return xe;throw F(t,e)},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t.decorators=[{type:ot.Pipe,args:[{name:"async",pure:!1}]}],t.ctorParameters=function(){return[{type:ot.ChangeDetectorRef}]},t}(),Oe=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw F(t,e);return e.toLowerCase()},t.decorators=[{type:ot.Pipe,args:[{name:"lowercase"}]}],t.ctorParameters=function(){return[]},t}(),Se=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw F(t,e);return e.split(/\b/g).map(function(t){return function(t){return t?t[0].toUpperCase()+t.substr(1).toLowerCase():t}(t)}).join("")},t.decorators=[{type:ot.Pipe,args:[{name:"titlecase"}]}],t.ctorParameters=function(){return[]},t}(),Ce=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw F(t,e);return e.toUpperCase()},t.decorators=[{type:ot.Pipe,args:[{name:"uppercase"}]}],t.ctorParameters=function(){return[]},t}(),Ee=/#/g,Te=function(){function t(t){this._localization=t}return t.prototype.transform=function(e,n,r){if(null==e)return"";if("object"!=typeof n||null===n)throw F(t,n);return n[E(e,Object.keys(n),this._localization,r)].replace(Ee,e.toString())},t.decorators=[{type:ot.Pipe,args:[{name:"i18nPlural",pure:!0}]}],t.ctorParameters=function(){return[{type:Ct}]},t}(),je=function(){function t(){}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw F(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""},t.decorators=[{type:ot.Pipe,args:[{name:"i18nSelect",pure:!0}]}],t.ctorParameters=function(){return[]},t}(),Pe=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t.decorators=[{type:ot.Pipe,args:[{name:"json",pure:!1}]}],t.ctorParameters=function(){return[]},t}(),Ae=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,r){if(tt(e))return null;var i=Q(e,r=r||this._locale,vt.Decimal,n),o=i.str,s=i.error;if(s)throw F(t,s);return o},t.decorators=[{type:ot.Pipe,args:[{name:"number"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:ot.Inject,args:[ot.LOCALE_ID]}]}]},t}(),Ie=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,r){if(tt(e))return null;var i=Q(e,r=r||this._locale,vt.Percent,n),o=i.str,s=i.error;if(s)throw F(t,s);return o},t.decorators=[{type:ot.Pipe,args:[{name:"percent"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:ot.Inject,args:[ot.LOCALE_ID]}]}]},t}(),ke=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,r,i,o){if(void 0===r&&(r="symbol"),tt(e))return null;o=o||this._locale,"boolean"==typeof r&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),r=r?"symbol":"code");var s=n||"USD";"code"!==r&&(s=function(t,e){var n=ft[t]||{},r=n[0]||t;return"wide"===e?r:n[1]||r}(s,"symbol"===r?"wide":"narrow"));var a=Q(e,o,vt.Currency,i,s),c=a.str,u=a.error;if(u)throw F(t,u);return c},t.decorators=[{type:ot.Pipe,args:[{name:"currency"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:ot.Inject,args:[ot.LOCALE_ID]}]}]},t}(),Re=function(){function t(){}return t.prototype.transform=function(e,n,r){if(null==e)return e;if(!this.supports(e))throw F(t,e);return e.slice(n,r)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t.decorators=[{type:ot.Pipe,args:[{name:"slice",pure:!1}]}],t.ctorParameters=function(){return[]},t}(),Me=[we,Ce,Oe,Pe,Re,Ae,Ie,Se,ke,Zt,Te,je],De=function(){function t(){}return t.decorators=[{type:ot.NgModule,args:[{declarations:[zt,Me],exports:[zt,Me],providers:[{provide:Ct,useClass:Et}]}]}],t.ctorParameters=function(){return[]},t}(),Ne=T,Le=function(){function t(){}return t.decorators=[{type:ot.NgModule,args:[{declarations:[me],exports:[me],providers:[{provide:St,useValue:Ne}]}]}],t.ctorParameters=function(){return[]},t}(),Fe=new ot.InjectionToken("DocumentToken"),Ve="browser",Be="server",He="browserWorkerApp",ze="browserWorkerUi",Ue=new ot.Version("5.1.0")},Upor:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error)},Uvlg:function(t,e,n){"use strict";var r=n("bKpL"),i=n("LBqD");r.Observable.prototype.pairwise=i.pairwise},V7AE:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("xIGM").a.Symbol,i="function"==typeof r&&"function"==typeof r.for?r.for("rxSubscriber"):"@@rxSubscriber"},VML3:function(t,e,n){"use strict";var r=n("bKpL"),i=n("K5Xx");r.Observable.prototype.publish=i.publish},VXtB:function(t,e,n){"use strict";var r=n("bKpL"),i=n("ytB7");r.Observable.prototype.sampleTime=i.sampleTime},ViUi:function(t,e,n){"use strict";var r=n("QHK3"),i=n("LEug");e.mergeStatic=i.merge,e.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r.merge.apply(void 0,t)(this)}},VsKd:function(t,e,n){"use strict";var r=n("bKpL"),i=n("23I1");r.Observable.defer=i.defer},W5L8:function(t,e,n){"use strict";var r=n("bKpL"),i=n("7PW3");r.Observable.using=i.using},WAO4:function(t,e,n){"use strict";var r=n("IhB/"),i=n("/h+r");e.timeoutWith=function(t,e,n){return void 0===n&&(n=r.async),i.timeoutWith(t,e,n)(this)}},WSkQ:function(t,e,n){"use strict";var r=n("zrH4");e.last=function(t,e,n){return r.last(t,e,n)(this)}},Wi6i:function(t,e,n){"use strict";var r=n("AP4T"),i=n("6S6c");r.Observable.prototype.filter=i.a},WmO6:function(t,e,n){"use strict";var r=n("hfga");e.partition=function(t,e){return r.partition(t,e)(this)}},Wxra:function(t,e,n){"use strict";var r=n("0imh");e.shareReplay=function(t,e,n){return function(i){return i.lift(function(t,e,n){var i,o,s=0,a=!1,c=!1;return function(u){s++,i&&!a||(a=!1,i=new r.ReplaySubject(t,e,n),o=u.subscribe({next:function(t){i.next(t)},error:function(t){a=!0,i.error(t)},complete:function(){c=!0,i.complete()}}));var l=i.subscribe(this);return function(){s--,l.unsubscribe(),o&&0===s&&c&&o.unsubscribe()}}}(t,e,n))}}},Wy0q:function(t,e,n){"use strict";function r(t){t.debouncedNext()}Object.defineProperty(e,"__esModule",{value:!0});var i=n("AP4T"),o=n("xIGM"),s=n("qLnt"),a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},c=function(t){function e(e,n){t.call(this)}return a(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(s.a),u=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},l=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n,this.pending=!1}return u(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t,this.pending=!0;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),o.a.setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;o.a.clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(c),p=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=Date.now?Date.now:function(){return+new Date},t}(),h=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},d=new(function(t){function e(){t.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return h(e,t),e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(p))(l),f=n("E9/g"),y=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},g=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new v(t,this.dueTime,this.scheduler))},t}(),v=function(t){function e(e,n,r){t.call(this,e),this.dueTime=n,this.scheduler=r,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return y(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(r,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(f.a);i.Observable.prototype.debounceTime=function(t,e){return void 0===e&&(e=d),function(t,e){return void 0===e&&(e=d),function(n){return n.lift(new g(t,e))}}(t,e)(this)}},X3fp:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var i=Object.getOwnPropertyNames(r.prototype),o=0;o<i.length;++o){var s=i[o];if("entries"!==s&&"size"!==s&&r.prototype[s]===r.prototype.entries)return s}return"@@iterator"}(n("xIGM").a)},X6cg:function(t,e,n){"use strict";function r(){}function i(t,e){var n=new r;if(t instanceof r)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var i,o=-1,s=t.length;if(null==e)for(;++o<s;)n.set(o,t[o]);else for(;++o<s;)n.set(e(i=t[o],o,t),i)}else if(t)for(var a in t)n.set(a,t[a]);return n}function o(){return{}}function s(t,e,n){t[e]=n}function a(){return p()}function c(t,e,n){t.set(e,n)}function u(){}function l(t,e){var n=new u;if(t instanceof u)t.each(function(t){n.add(t)});else if(t){var r=-1,i=t.length;if(null==e)for(;++r<i;)n.add(t[r]);else for(;++r<i;)n.add(e(t[r],r,t))}return n}r.prototype=i.prototype={constructor:r,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,e){return this["$"+t]=e,this},remove:function(t){var e="$"+t;return e in this&&delete this[e]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)"$"===e[0]&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)"$"===e[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var e in this)"$"===e[0]&&t(this[e],e.slice(1),this)}};var p=i,h=function(){function t(e,i,o,s){if(i>=u.length)return null!=n&&e.sort(n),null!=r?r(e):e;for(var a,c,l,h=-1,d=e.length,f=u[i++],y=p(),g=o();++h<d;)(l=y.get(a=f(c=e[h])+""))?l.push(c):y.set(a,[c]);return y.each(function(e,n){s(g,n,t(e,i,o,s))}),g}function e(t,n){if(++n>u.length)return t;var i,o=l[n-1];return null!=r&&n>=u.length?i=t.entries():(i=[],t.each(function(t,r){i.push({key:r,values:e(t,n)})})),null!=o?i.sort(function(t,e){return o(t.key,e.key)}):i}var n,r,i,u=[],l=[];return i={object:function(e){return t(e,0,o,s)},map:function(e){return t(e,0,a,c)},entries:function(n){return e(t(n,0,a,c),0)},key:function(t){return u.push(t),i},sortKeys:function(t){return l[u.length-1]=t,i},sortValues:function(t){return n=t,i},rollup:function(t){return r=t,i}}},d=p.prototype;u.prototype=l.prototype={constructor:u,has:d.has,add:function(t){return t+="",this["$"+t]=t,this},remove:d.remove,clear:d.clear,values:d.keys,size:d.size,empty:d.empty,each:d.each};var f=l,y=function(t){var e=[];for(var n in t)e.push(n);return e},g=function(t){var e=[];for(var n in t)e.push(t[n]);return e},v=function(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e};n.d(e,!1,function(){return h}),n.d(e,!1,function(){return f}),n.d(e,"a",function(){return p}),n.d(e,!1,function(){return y}),n.d(e,!1,function(){return g}),n.d(e,!1,function(){return v})},XG4q:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+"),o=n("Z5ED");e.ignoreElements=function(){return function(t){return t.lift(new s)}};var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new a(t))},t}(),a=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype._next=function(t){o.noop()},e}(i.Subscriber)},XL2q:function(t,e,n){"use strict";var r=n("bKpL"),i=n("7JOC");r.Observable.from=i.from},XNum:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e,n){t.call(this)}return r(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n("xFbG").Subscription);e.Action=i},XOyC:function(t,e,n){"use strict";var r=n("aeUV");e.delayWhen=function(t,e){return r.delayWhen(t,e)(this)}},XR5H:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("rlar"),o=n("xFbG"),s=n("Xga8"),a=n("p2y2"),c=function(t){function e(e,n){t.call(this),this.messages=e,this.subscriptions=[],this.scheduler=n}return r(e,t),e.prototype._subscribe=function(e){var n=this,r=n.logSubscribedFrame();return e.add(new o.Subscription(function(){n.logUnsubscribedFrame(r)})),t.prototype._subscribe.call(this,e)},e.prototype.setup=function(){for(var t=this,e=t.messages.length,n=0;n<e;n++)!function(){var e=t.messages[n];t.scheduler.schedule(function(){e.notification.observe(t)},e.frame)}()},e}(i.Subject);e.HotObservable=c,a.applyMixins(c,[s.SubscriptionLoggable])},XR71:function(t,e,n){"use strict";var r=n("bKpL"),i=n("AHF9");r.Observable.prototype.observeOn=i.observeOn},XRvs:function(t,e,n){"use strict";e.errorObject={e:{}}},XWpj:function(t,e,n){"use strict";var r=n("NSJx"),i=n("YofN");e.race=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){return 1===t.length&&r.isArray(t[0])&&(t=t[0]),e.lift.call(i.race.apply(void 0,[e].concat(t)))}}},Xa8F:function(t,e,n){"use strict";var r=n("GeBq");e.windowCount=function(t,e){return void 0===e&&(e=0),r.windowCount(t,e)(this)}},Xga8:function(t,e,n){"use strict";var r=n("OXmC"),i=function(){function t(){this.subscriptions=[]}return t.prototype.logSubscribedFrame=function(){return this.subscriptions.push(new r.SubscriptionLog(this.scheduler.now())),this.subscriptions.length-1},t.prototype.logUnsubscribedFrame=function(t){var e=this.subscriptions,n=e[t];e[t]=new r.SubscriptionLog(n.subscribedFrame,this.scheduler.now())},t}();e.SubscriptionLoggable=i},Xtvq:function(t,e,n){"use strict";var r=n("bKpL"),i=n("zGUx");r.Observable.fromEvent=i.fromEvent},XvrG:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+"),o=n("uT+d"),s=n("fcnB");e.takeLast=function(t){return function(e){return 0===t?new s.EmptyObservable:e.lift(new a(t))}};var a=function(){function t(t){if(this.total=t,this.total<0)throw new o.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){t.call(this,e),this.total=n,this.ring=new Array,this.count=0}return r(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;if(e.length<n)e.push(t);else{e[r%n]=t}},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=e++%n;t.next(r[o])}t.complete()},e}(i.Subscriber)},"Y+l6":function(t,e,n){"use strict";var r=n("Y4uv");e.toArray=function(){return r.toArray()(this)}},Y4uv:function(t,e,n){"use strict";function r(t,e,n){return t.push(e),t}var i=n("JwCl");e.toArray=function(){return i.reduce(r,[])}},YFUQ:function(t,e,n){"use strict";var r=n("bKpL"),i=n("BJqU");r.Observable.prototype.throttleTime=i.throttleTime},"Yj/5":function(t,e,n){"use strict";var r=n("Fq81");e.fromEventPattern=r.FromEventPatternObservable.create},YofN:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("NSJx"),o=n("wZOE"),s=n("yW9Z"),a=n("ktfo");e.race=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];if(1===t.length){if(!i.isArray(t[0]))return t[0];t=t[0]}return new o.ArrayObservable(t).lift(new c)};var c=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new u(t))},t}();e.RaceOperator=c;var u=function(t){function e(e){t.call(this,e),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}return r(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n<e&&!this.hasFirst;n++){var r=t[n],i=a.subscribeToResult(this,r,r,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},e.prototype.notifyNext=function(t,e,n,r,i){if(!this.hasFirst){this.hasFirst=!0;for(var o=0;o<this.subscriptions.length;o++)if(o!==n){var s=this.subscriptions[o];s.unsubscribe(),this.remove(s)}this.subscriptions=null}this.destination.next(e)},e}(s.OuterSubscriber);e.RaceSubscriber=u},Yuqz:function(t,e,n){"use strict";e.identity=function(t){return t}},Yvsb:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=n("Z5ED"),s=function(t){function e(){t.call(this)}return r(e,t),e.create=function(){return new e},e.prototype._subscribe=function(t){o.noop()},e}(i.Observable);e.NeverObservable=s},Z2Sm:function(t,e,n){"use strict";var r=n("bKpL"),i=n("3N4h");r.Observable.prototype.window=i.window},Z5ED:function(t,e,n){"use strict";e.noop=function(){}},Z9r9:function(t,e,n){"use strict";function r(t){return new i(t)}function i(t){if(!(e=p.exec(t)))throw new Error("invalid format: "+t);var e,n=e[1]||" ",r=e[2]||">",i=e[3]||"-",o=e[4]||"",s=!!e[5],a=e[6]&&+e[6],c=!!e[7],u=e[8]&&+e[8].slice(1),h=e[9]||"";"n"===h?(c=!0,h="g"):l[h]||(h=""),(s||"0"===n&&"="===r)&&(s=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=i,this.symbol=o,this.zero=s,this.width=a,this.comma=c,this.precision=u,this.type=h}function o(t){return h=v(t),d=h.format,f=h.formatPrefix,h}Object.defineProperty(e,"__esModule",{value:!0});var s,a=function(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]},c=function(t){return(t=a(Math.abs(t)))?t[1]:NaN},u=function(t,e){var n=a(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},l={"":function(t,e){t:for(var n,r=(t=t.toPrecision(e)).length,i=1,o=-1;i<r;++i)switch(t[i]){case".":o=n=i;break;case"0":0===o&&(o=i),n=i;break;case"e":break t;default:o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(n+1):t},"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return u(100*t,e)},r:u,s:function(t,e){var n=a(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(s=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,c=r.length;return o===c?r:o>c?r+new Array(o-c+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+a(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},p=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;r.prototype=i.prototype,i.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var h,d,f,y=function(t){return t},g=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"],v=function(t){function e(t){function e(t){var e,r,i,u=_,l=x;if("c"===b)l=w(t)+l,t="";else{var d=(t=+t)<0;if(t=w(Math.abs(t),m),d&&0==+t&&(d=!1),u=(d?"("===h?h:"-":"-"===h||"("===h?"":h)+u,l=l+("s"===b?g[8+s/3]:"")+(d&&"("===h?")":""),O)for(e=-1,r=t.length;++e<r;)if(48>(i=t.charCodeAt(e))||i>57){l=(46===i?o+t.slice(e+1):t.slice(e))+l,t=t.slice(0,e);break}}v&&!f&&(t=n(t,1/0));var S=u.length+t.length+l.length,C=S<y?new Array(y-S+1).join(c):"";switch(v&&f&&(t=n(C+t,C.length?y-l.length:1/0),C=""),p){case"<":t=u+t+l+C;break;case"=":t=u+C+t+l;break;case"^":t=C.slice(0,S=C.length>>1)+u+t+l+C.slice(S);break;default:t=C+u+t+l}return a(t)}var c=(t=r(t)).fill,p=t.align,h=t.sign,d=t.symbol,f=t.zero,y=t.width,v=t.comma,m=t.precision,b=t.type,_="$"===d?i[0]:"#"===d&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===d?i[1]:/[%p]/.test(b)?u:"",w=l[b],O=!b||/[defgprs%]/.test(b);return m=null==m?b?6:12:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),e.toString=function(){return t+""},e}var n=t.grouping&&t.thousands?function(t,e){return function(n,r){for(var i=n.length,o=[],s=0,a=t[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),o.push(n.substring(i-=a,i+a)),!((c+=a+1)>r));)a=t[s=(s+1)%t.length];return o.reverse().join(e)}}(t.grouping,t.thousands):y,i=t.currency,o=t.decimal,a=t.numerals?function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(t.numerals):y,u=t.percent||"%";return{format:e,formatPrefix:function(t,n){var i=e((t=r(t),t.type="f",t)),o=3*Math.max(-8,Math.min(8,Math.floor(c(n)/3))),s=Math.pow(10,-o),a=g[8+o/3];return function(t){return i(s*t)+a}}}};o({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var m=function(t){return Math.max(0,-c(Math.abs(t)))},b=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(c(e)/3)))-c(Math.abs(t)))},_=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,c(e)-c(t))+1};n.d(e,"formatDefaultLocale",function(){return o}),n.d(e,"format",function(){return d}),n.d(e,"formatPrefix",function(){return f}),n.d(e,"formatLocale",function(){return v}),n.d(e,"formatSpecifier",function(){return r}),n.d(e,"precisionFixed",function(){return m}),n.d(e,"precisionPrefix",function(){return b}),n.d(e,"precisionRound",function(){return _})},ZNYO:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("yW9Z"),o=n("ktfo");e.sample=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new a(t),r=e.subscribe(n);return r.add(o.subscribeToResult(n,this.notifier)),r},t}(),a=function(t){function e(){t.apply(this,arguments),this.hasValue=!1}return r(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(i.OuterSubscriber)},ZQKz:function(t,e,n){"use strict";var r=n("bKpL"),i=n("1eQ7");r.Observable.prototype.first=i.first},ZQVD:function(t,e,n){"use strict";var r=n("XG4q");e.ignoreElements=function(){return r.ignoreElements()(this)}},ZXBV:function(t,e,n){"use strict";var r=n("bKpL"),i=n("Yj/5");r.Observable.fromEventPattern=i.fromEventPattern},Zfg9:function(t,e,n){"use strict";var r=n("EmkH");e.skipLast=function(t){return r.skipLast(t)(this)}},a9bY:function(t,e,n){"use strict";var r=n("jjPq");e.max=function(t){return r.max(t)(this)}},aCMF:function(t,e,n){"use strict";var r=n("TupL");e.switchMap=function(t,e){return r.switchMap(t,e)(this)}},aL6N:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+");e.skipWhile=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate))},t}(),s=function(t){function e(e,n){t.call(this,e),this.predicate=n,this.skipping=!0,this.index=0}return r(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}},e}(i.Subscriber)},aOKN:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e,n){t.call(this),this.value=e,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return r(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.done,n=t.value,r=t.subscriber;e?r.complete():(r.next(n),r.closed||(t.done=!0,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.value,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{done:!1,value:n,subscriber:t});t.next(n),t.closed||t.complete()},e}(n("bKpL").Observable);e.ScalarObservable=i},aeUV:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+"),o=n("bKpL"),s=n("yW9Z"),a=n("ktfo");e.delayWhen=function(t,e){return e?function(n){return new l(n,e).lift(new c(t))}:function(e){return e.lift(new c(t))}};var c=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.delayDurationSelector))},t}(),u=function(t){function e(e,n){t.call(this,e),this.delayDurationSelector=n,this.completed=!1,this.delayNotifierSubscriptions=[],this.values=[]}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){try{var e=this.delayDurationSelector(t);e&&this.tryDelay(e,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t),n=null;return-1!==e&&(n=this.values[e],this.delayNotifierSubscriptions.splice(e,1),this.values.splice(e,1)),n},e.prototype.tryDelay=function(t,e){var n=a.subscribeToResult(this,t,e);n&&!n.closed&&(this.add(n),this.delayNotifierSubscriptions.push(n)),this.values.push(e)},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(s.OuterSubscriber),l=function(t){function e(e,n){t.call(this),this.source=e,this.subscriptionDelay=n}return r(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new p(t,this.source))},e}(o.Observable),p=function(t){function e(e,n){t.call(this),this.parent=e,this.source=n,this.sourceSubscribed=!1}return r(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(i.Subscriber)},afTc:function(t,e,n){"use strict";var r=n("bKpL"),i=n("OdUO");r.Observable.prototype.elementAt=i.elementAt},amjc:function(t,e,n){"use strict";var r=n("bKpL"),i=n("yQ6o");r.Observable.bindCallback=i.bindCallback},asHm:function(t,e,n){"use strict";var r=n("bKpL"),i=n("OADz");r.Observable.prototype.withLatestFrom=i.withLatestFrom},azLz:function(t,e,n){"use strict";var r=n("bKpL"),i=n("CH/r");r.Observable.prototype.debounceTime=i.debounceTime},bKpL:function(t,e,n){"use strict";var r=n("zijX"),i=n("rf3q"),o=n("DP67"),s=n("vxPf"),a=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,o=i.toSubscriber(t,e,n);if(r?r.call(o,this.source):o.add(this.source?this._subscribe(o):this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var n=this;if(e||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?e=r.root.Rx.config.Promise:r.root.Promise&&(e=r.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var i;i=n.subscribe(function(e){if(i)try{t(e)}catch(t){r(t),i.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[o.observable]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 0===t.length?this:s.pipeFromArray(t)(this)},t.prototype.toPromise=function(t){var e=this;if(t||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?t=r.root.Rx.config.Promise:r.root.Promise&&(t=r.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}();e.Observable=a},bLt9:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("rlar"),o=n("xFbG"),s=n("RdI5"),a=n("XRvs"),c=n("yW9Z"),u=n("ktfo");e.windowToggle=function(t,e){return function(n){return n.lift(new l(t,e))}};var l=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.openings,this.closingSelector))},t}(),p=function(t){function e(e,n,r){t.call(this,e),this.openings=n,this.closingSelector=r,this.contexts=[],this.add(this.openSubscription=u.subscribeToResult(this,n,n))}return r(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,r=0;r<n;r++)e[r].window.next(t)},e.prototype._error=function(e){var n=this.contexts;if(this.contexts=null,n)for(var r=n.length,i=-1;++i<r;){var o=n[i];o.window.error(e),o.subscription.unsubscribe()}t.prototype._error.call(this,e)},e.prototype._complete=function(){var e=this.contexts;if(this.contexts=null,e)for(var n=e.length,r=-1;++r<n;){var i=e[r];i.window.complete(),i.subscription.unsubscribe()}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,n=-1;++n<e;){var r=t[n];r.window.unsubscribe(),r.subscription.unsubscribe()}},e.prototype.notifyNext=function(t,e,n,r,c){if(t===this.openings){var l=this.closingSelector,p=s.tryCatch(l)(e);if(p===a.errorObject)return this.error(a.errorObject.e);var h=new i.Subject,d=new o.Subscription,f={window:h,subscription:d};this.contexts.push(f);var y=u.subscribeToResult(this,p,f);y.closed?this.closeWindow(this.contexts.length-1):(y.context=f,d.add(y)),this.destination.next(h)}else this.closeWindow(this.contexts.indexOf(t))},e.prototype.notifyError=function(t){this.error(t)},e.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},e.prototype.closeWindow=function(t){if(-1!==t){var e=this.contexts,n=e[t],r=n.window,i=n.subscription;e.splice(t,1),r.complete(),i.unsubscribe()}},e}(c.OuterSubscriber)},bN7U:function(t,e,n){"use strict";var r=n("bKpL"),i=n("fxBd");r.Observable.prototype.takeLast=i.takeLast},bjDG:function(t,e,n){"use strict";var r=n("NZPJ");e.generate=r.GenerateObservable.create},bprQ:function(t,e,n){"use strict";var r=n("bKpL"),i=n("9mYp");r.Observable.onErrorResumeNext=i.onErrorResumeNext},buGu:function(t,e,n){"use strict";var r=n("PbxL");e.defaultIfEmpty=function(t){return void 0===t&&(t=null),r.defaultIfEmpty(t)(this)}},bywS:function(t,e,n){"use strict";function r(t){return t}var i=n("wP3s");e.a=function(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(i.a)(r,null,t)}},c2EU:function(t,e,n){"use strict";var r=n("DrEP");e.throttle=function(t,e){return void 0===e&&(e=r.defaultThrottleConfig),r.throttle(t,e)(this)}},cAzY:function(t,e,n){"use strict";var r=n("tAjV");e.audit=r.audit;var i=n("GTdq");e.auditTime=i.auditTime;var o=n("+vKo");e.buffer=o.buffer;var s=n("5NGA");e.bufferCount=s.bufferCount;var a=n("duFl");e.bufferTime=a.bufferTime;var c=n("6QEA");e.bufferToggle=c.bufferToggle;var u=n("v1IT");e.bufferWhen=u.bufferWhen;var l=n("g1RG");e.catchError=l.catchError;var p=n("7xz3");e.combineAll=p.combineAll;var h=n("H4tt");e.combineLatest=h.combineLatest;var d=n("vNxK");e.concat=d.concat;var f=n("NiCh");e.concatAll=f.concatAll;var y=n("+FJ1");e.concatMap=y.concatMap;var g=n("0mJJ");e.concatMapTo=g.concatMapTo;var v=n("ip92");e.count=v.count;var m=n("2l91");e.debounce=m.debounce;var b=n("Hr+Y");e.debounceTime=b.debounceTime;var _=n("PbxL");e.defaultIfEmpty=_.defaultIfEmpty;var x=n("EUVd");e.delay=x.delay;var w=n("aeUV");e.delayWhen=w.delayWhen;var O=n("pguX");e.dematerialize=O.dematerialize;var S=n("y+rW");e.distinct=S.distinct;var C=n("2Sjb");e.distinctUntilChanged=C.distinctUntilChanged;var E=n("HBVP");e.distinctUntilKeyChanged=E.distinctUntilKeyChanged;var T=n("k6cv");e.elementAt=T.elementAt;var j=n("GiTH");e.every=j.every;var P=n("weui");e.exhaust=P.exhaust;var A=n("NzSV");e.exhaustMap=A.exhaustMap;var I=n("y23k");e.expand=I.expand;var k=n("Hd11");e.filter=k.filter;var R=n("FTnw");e.finalize=R.finalize;var M=n("0dhf");e.find=M.find;var D=n("IfwN");e.findIndex=D.findIndex;var N=n("+BWq");e.first=N.first;var L=n("8H5Y");e.groupBy=L.groupBy;var F=n("XG4q");e.ignoreElements=F.ignoreElements;var V=n("C4ew");e.isEmpty=V.isEmpty;var B=n("zrH4");e.last=B.last;var H=n("L8VJ");e.map=H.map;var z=n("6d3x");e.mapTo=z.mapTo;var U=n("L0Qg");e.materialize=U.materialize;var W=n("jjPq");e.max=W.max;var G=n("QHK3");e.merge=G.merge;var q=n("8rcZ");e.mergeAll=q.mergeAll;var Y=n("mjx3");e.mergeMap=Y.mergeMap;var K=n("mjx3");e.flatMap=K.mergeMap;var X=n("j8LY");e.mergeMapTo=X.mergeMapTo;var $=n("t9cH");e.mergeScan=$.mergeScan;var Q=n("y3SI");e.min=Q.min;var Z=n("P02W");e.multicast=Z.multicast;var J=n("GDiU");e.observeOn=J.observeOn;var tt=n("r6G9");e.onErrorResumeNext=tt.onErrorResumeNext;var et=n("9FjR");e.pairwise=et.pairwise;var nt=n("hfga");e.partition=nt.partition;var rt=n("wcuQ");e.pluck=rt.pluck;var it=n("zBM/");e.publish=it.publish;var ot=n("ASfG");e.publishBehavior=ot.publishBehavior;var st=n("qfkx");e.publishLast=st.publishLast;var at=n("z8/z");e.publishReplay=at.publishReplay;var ct=n("XWpj");e.race=ct.race;var ut=n("JwCl");e.reduce=ut.reduce;var lt=n("Hg2u");e.repeat=lt.repeat;var pt=n("g9kf");e.repeatWhen=pt.repeatWhen;var ht=n("5r3W");e.retry=ht.retry;var dt=n("qanz");e.retryWhen=dt.retryWhen;var ft=n("F9px");e.refCount=ft.refCount;var yt=n("ZNYO");e.sample=yt.sample;var gt=n("60lp");e.sampleTime=gt.sampleTime;var vt=n("H1KZ");e.scan=vt.scan;var mt=n("xJeO");e.sequenceEqual=mt.sequenceEqual;var bt=n("HwxE");e.share=bt.share;var _t=n("Wxra");e.shareReplay=_t.shareReplay;var xt=n("v71/");e.single=xt.single;var wt=n("cyM/");e.skip=wt.skip;var Ot=n("EmkH");e.skipLast=Ot.skipLast;var St=n("UHtL");e.skipUntil=St.skipUntil;var Ct=n("aL6N");e.skipWhile=Ct.skipWhile;var Et=n("dtBE");e.startWith=Et.startWith;var Tt=n("rhfi");e.switchAll=Tt.switchAll;var jt=n("TupL");e.switchMap=jt.switchMap;var Pt=n("0lA3");e.switchMapTo=Pt.switchMapTo;var At=n("TQK7");e.take=At.take;var It=n("XvrG");e.takeLast=It.takeLast;var kt=n("y3aq");e.takeUntil=kt.takeUntil;var Rt=n("5x23");e.takeWhile=Rt.takeWhile;var Mt=n("4HZJ");e.tap=Mt.tap;var Dt=n("DrEP");e.throttle=Dt.throttle;var Nt=n("Rol4");e.throttleTime=Nt.throttleTime;var Lt=n("EOAD");e.timeInterval=Lt.timeInterval;var Ft=n("qbt9");e.timeout=Ft.timeout;var Vt=n("/h+r");e.timeoutWith=Vt.timeoutWith;var Bt=n("xK8X");e.timestamp=Bt.timestamp;var Ht=n("Y4uv");e.toArray=Ht.toArray;var zt=n("7tal");e.window=zt.window;var Ut=n("GeBq");e.windowCount=Ut.windowCount;var Wt=n("dffx");e.windowTime=Wt.windowTime;var Gt=n("bLt9");e.windowToggle=Gt.windowToggle;var qt=n("kqkQ");e.windowWhen=qt.windowWhen;var Yt=n("p4do");e.withLatestFrom=Yt.withLatestFrom;var Kt=n("SBOU");e.zip=Kt.zip;var Xt=n("IkMW");e.zipAll=Xt.zipAll},cLB8:function(t,e,n){!function(e,r){t.exports=r(n("Un6q"),n("LMZF"),n("RyBE"))}(0,function(t,e,n){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s="./src/index.ts")}({'./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/components/datatable.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).push([t.i,".ngx-datatable {\n display: block;\n overflow: hidden;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n position: relative;\n -webkit-transform: translate3d(0, 0, 0);\n /**\n * Vertical Scrolling Adjustments\n */\n /**\n * Horizontal Scrolling Adjustments\n */\n /**\n * Fixed Header Height Adjustments\n */\n /**\n * Fixed row height adjustments\n */\n /**\n * Shared Styles\n */\n /**\n * Header Styles\n */\n /**\n * Body Styles\n */\n /**\n * Footer Styles\n */ }\n .ngx-datatable [hidden] {\n display: none !important; }\n .ngx-datatable *, .ngx-datatable *:before, .ngx-datatable *:after {\n -webkit-box-sizing: border-box;\n box-sizing: border-box; }\n .ngx-datatable.scroll-vertical .datatable-body {\n overflow-y: auto; }\n .ngx-datatable.scroll-vertical .datatable-body .datatable-row-wrapper {\n position: absolute; }\n .ngx-datatable.scroll-horz .datatable-body {\n overflow-x: auto;\n -webkit-overflow-scrolling: touch; }\n .ngx-datatable.fixed-header .datatable-header .datatable-header-inner {\n white-space: nowrap; }\n .ngx-datatable.fixed-header .datatable-header .datatable-header-inner .datatable-header-cell {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis; }\n .ngx-datatable.fixed-row .datatable-scroll {\n white-space: nowrap; }\n .ngx-datatable.fixed-row .datatable-scroll .datatable-body-row {\n white-space: nowrap; }\n .ngx-datatable.fixed-row .datatable-scroll .datatable-body-row .datatable-body-cell {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis; }\n .ngx-datatable.fixed-row .datatable-scroll .datatable-body-row .datatable-body-group-cell {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis; }\n .ngx-datatable .datatable-body-row,\n .ngx-datatable .datatable-row-center,\n .ngx-datatable .datatable-header-inner {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-flow: row;\n -o-flex-flow: row;\n flex-flow: row; }\n .ngx-datatable .datatable-body-cell,\n .ngx-datatable .datatable-header-cell {\n overflow-x: hidden;\n vertical-align: top;\n display: inline-block;\n line-height: 1.625; }\n .ngx-datatable .datatable-body-cell:focus,\n .ngx-datatable .datatable-header-cell:focus {\n outline: none; }\n .ngx-datatable .datatable-row-left,\n .ngx-datatable .datatable-row-right {\n z-index: 9; }\n .ngx-datatable .datatable-row-left,\n .ngx-datatable .datatable-row-center,\n .ngx-datatable .datatable-row-group,\n .ngx-datatable .datatable-row-right {\n position: relative; }\n .ngx-datatable .datatable-header {\n display: block;\n overflow: hidden; }\n .ngx-datatable .datatable-header .datatable-header-inner {\n -webkit-box-align: stretch;\n -ms-flex-align: stretch;\n align-items: stretch;\n -webkit-align-items: stretch; }\n .ngx-datatable .datatable-header .datatable-header-cell {\n position: relative;\n display: inline-block; }\n .ngx-datatable .datatable-header .datatable-header-cell.sortable .datatable-header-cell-wrapper {\n cursor: pointer; }\n .ngx-datatable .datatable-header .datatable-header-cell.longpress .datatable-header-cell-wrapper {\n cursor: move; }\n .ngx-datatable .datatable-header .datatable-header-cell .sort-btn {\n line-height: 100%;\n vertical-align: middle;\n display: inline-block;\n cursor: pointer; }\n .ngx-datatable .datatable-header .datatable-header-cell .resize-handle {\n display: inline-block;\n position: absolute;\n right: 0;\n top: 0;\n bottom: 0;\n width: 5px;\n padding: 0 4px;\n visibility: hidden;\n cursor: ew-resize; }\n .ngx-datatable .datatable-header .datatable-header-cell.resizeable:hover .resize-handle {\n visibility: visible; }\n .ngx-datatable .datatable-body {\n position: relative;\n z-index: 10;\n display: block; }\n .ngx-datatable .datatable-body .datatable-scroll {\n display: inline-block; }\n .ngx-datatable .datatable-body .datatable-row-detail {\n overflow-y: hidden; }\n .ngx-datatable .datatable-body .datatable-row-wrapper {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column; }\n .ngx-datatable .datatable-body .datatable-body-row {\n outline: none; }\n .ngx-datatable .datatable-body .datatable-body-row > div {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex; }\n .ngx-datatable .datatable-footer {\n display: block;\n width: 100%; }\n .ngx-datatable .datatable-footer .datatable-footer-inner {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n width: 100%; }\n .ngx-datatable .datatable-footer .selected-count .page-count {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 40%;\n flex: 1 1 40%; }\n .ngx-datatable .datatable-footer .selected-count .datatable-pager {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 60%;\n flex: 1 1 60%; }\n .ngx-datatable .datatable-footer .page-count {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 20%;\n flex: 1 1 20%; }\n .ngx-datatable .datatable-footer .datatable-pager {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 80%;\n flex: 1 1 80%;\n text-align: right; }\n .ngx-datatable .datatable-footer .datatable-pager .pager,\n .ngx-datatable .datatable-footer .datatable-pager .pager li {\n padding: 0;\n margin: 0;\n display: inline-block;\n list-style: none; }\n .ngx-datatable .datatable-footer .datatable-pager .pager li, .ngx-datatable .datatable-footer .datatable-pager .pager li a {\n outline: none; }\n .ngx-datatable .datatable-footer .datatable-pager .pager li a {\n cursor: pointer;\n display: inline-block; }\n .ngx-datatable .datatable-footer .datatable-pager .pager li.disabled a {\n cursor: not-allowed; }\n",""])},"./node_modules/css-loader/lib/css-base.js":function(t,e){function n(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(r),o=r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"});return[n].concat(o).concat([i]).join("\n")}return[n].join("\n")}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=n(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var s=t[i];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},"./node_modules/rxjs/InnerSubscriber.js":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e,n,r){t.call(this),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}return r(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n("./node_modules/rxjs/Subscriber.js").Subscriber);e.InnerSubscriber=i},"./node_modules/rxjs/Observable.js":function(t,e,n){"use strict";var r=n("./node_modules/rxjs/util/root.js"),i=n("./node_modules/rxjs/util/toSubscriber.js"),o=n("./node_modules/rxjs/symbol/observable.js"),s=n("./node_modules/rxjs/util/pipe.js"),a=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,o=i.toSubscriber(t,e,n);if(r?r.call(o,this.source):o.add(this.source?this._subscribe(o):this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var n=this;if(e||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?e=r.root.Rx.config.Promise:r.root.Promise&&(e=r.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var i;i=n.subscribe(function(e){if(i)try{t(e)}catch(t){r(t),i.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[o.observable]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 0===t.length?this:s.pipeFromArray(t)(this)},t.prototype.toPromise=function(t){var e=this;if(t||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?t=r.root.Rx.config.Promise:r.root.Promise&&(t=r.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}();e.Observable=a},"./node_modules/rxjs/Observer.js":function(t,e,n){"use strict";e.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},"./node_modules/rxjs/OuterSubscriber.js":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n("./node_modules/rxjs/Subscriber.js").Subscriber);e.OuterSubscriber=i},"./node_modules/rxjs/Subscriber.js":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("./node_modules/rxjs/util/isFunction.js"),o=n("./node_modules/rxjs/Subscription.js"),s=n("./node_modules/rxjs/Observer.js"),a=n("./node_modules/rxjs/symbol/rxSubscriber.js"),c=function(t){function e(n,r,i){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!n){this.destination=s.empty;break}if("object"==typeof n){n instanceof e?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,n,r,i)}}return r(e,t),e.prototype[a.rxSubscriber]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(o.Subscription);e.Subscriber=c;var u=function(t){function e(e,n,r,o){t.call(this),this._parentSubscriber=e;var a,c=this;i.isFunction(n)?a=n:n&&(a=n.next,r=n.error,o=n.complete,n!==s.empty&&(c=Object.create(n),i.isFunction(c.unsubscribe)&&this.add(c.unsubscribe.bind(c)),c.unsubscribe=this.unsubscribe.bind(this))),this._context=c,this._next=a,this._error=r,this._complete=o}return r(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(c)},"./node_modules/rxjs/Subscription.js":function(t,e,n){"use strict";function r(t){return t.reduce(function(t,e){return t.concat(e instanceof u.UnsubscriptionError?e.errors:e)},[])}var i=n("./node_modules/rxjs/util/isArray.js"),o=n("./node_modules/rxjs/util/isObject.js"),s=n("./node_modules/rxjs/util/isFunction.js"),a=n("./node_modules/rxjs/util/tryCatch.js"),c=n("./node_modules/rxjs/util/errorObject.js"),u=n("./node_modules/rxjs/util/UnsubscriptionError.js"),l=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,l=this._parents,p=this._unsubscribe,h=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var d=-1,f=l?l.length:0;n;)n.remove(this),n=++d<f&&l[d]||null;if(s.isFunction(p)){a.tryCatch(p).call(this)===c.errorObject&&(e=!0,t=t||(c.errorObject.e instanceof u.UnsubscriptionError?r(c.errorObject.e.errors):[c.errorObject.e]))}if(i.isArray(h))for(d=-1,f=h.length;++d<f;){var y=h[d];if(o.isObject(y)){if(a.tryCatch(y.unsubscribe).call(y)===c.errorObject){e=!0,t=t||[];var g=c.errorObject.e;g instanceof u.UnsubscriptionError?t=t.concat(r(g.errors)):t.push(g)}}}if(e)throw new u.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;e&&e!==t?n?-1===n.indexOf(t)&&n.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();e.Subscription=l},"./node_modules/rxjs/add/observable/fromEvent.js":function(t,e,n){"use strict";var r=n("./node_modules/rxjs/Observable.js"),i=n("./node_modules/rxjs/observable/fromEvent.js");r.Observable.fromEvent=i.fromEvent},"./node_modules/rxjs/add/operator/takeUntil.js":function(t,e,n){"use strict";var r=n("./node_modules/rxjs/Observable.js"),i=n("./node_modules/rxjs/operator/takeUntil.js");r.Observable.prototype.takeUntil=i.takeUntil},"./node_modules/rxjs/observable/FromEventObservable.js":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("./node_modules/rxjs/Observable.js"),o=n("./node_modules/rxjs/util/tryCatch.js"),s=n("./node_modules/rxjs/util/isFunction.js"),a=n("./node_modules/rxjs/util/errorObject.js"),c=n("./node_modules/rxjs/Subscription.js"),u=Object.prototype.toString,l=function(t){function e(e,n,r,i){t.call(this),this.sourceObj=e,this.eventName=n,this.selector=r,this.options=i}return r(e,t),e.create=function(t,n,r,i){return s.isFunction(r)&&(i=r,r=void 0),new e(t,n,i,r)},e.setupSubscription=function(t,n,r,i,o){var s;if(function(t){return!!t&&"[object NodeList]"===u.call(t)}(t)||function(t){return!!t&&"[object HTMLCollection]"===u.call(t)}(t))for(var a=0,l=t.length;a<l;a++)e.setupSubscription(t[a],n,r,i,o);else if(function(t){return!!t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var p=t;t.addEventListener(n,r,o),s=function(){return p.removeEventListener(n,r)}}else if(function(t){return!!t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var h=t;t.on(n,r),s=function(){return h.off(n,r)}}else{if(!function(t){return!!t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t))throw new TypeError("Invalid event target");var d=t;t.addListener(n,r),s=function(){return d.removeListener(n,r)}}i.add(new c.Subscription(s))},e.prototype._subscribe=function(t){var n=this.sourceObj,r=this.eventName,i=this.options,s=this.selector;e.setupSubscription(n,r,s?function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var r=o.tryCatch(s).apply(void 0,e);r===a.errorObject?t.error(a.errorObject.e):t.next(r)}:function(e){return t.next(e)},t,i)},e}(i.Observable);e.FromEventObservable=l},"./node_modules/rxjs/observable/fromEvent.js":function(t,e,n){"use strict";var r=n("./node_modules/rxjs/observable/FromEventObservable.js");e.fromEvent=r.FromEventObservable.create},"./node_modules/rxjs/operator/takeUntil.js":function(t,e,n){"use strict";var r=n("./node_modules/rxjs/operators/takeUntil.js");e.takeUntil=function(t){return r.takeUntil(t)(this)}},"./node_modules/rxjs/operators/takeUntil.js":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("./node_modules/rxjs/OuterSubscriber.js"),o=n("./node_modules/rxjs/util/subscribeToResult.js");e.takeUntil=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.notifier))},t}(),a=function(t){function e(e,n){t.call(this,e),this.notifier=n,this.add(o.subscribeToResult(this,n))}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.complete()},e.prototype.notifyComplete=function(){},e}(i.OuterSubscriber)},"./node_modules/rxjs/symbol/iterator.js":function(t,e,n){"use strict";function r(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var i=Object.getOwnPropertyNames(r.prototype),o=0;o<i.length;++o){var s=i[o];if("entries"!==s&&"size"!==s&&r.prototype[s]===r.prototype.entries)return s}return"@@iterator"}var i=n("./node_modules/rxjs/util/root.js");e.symbolIteratorPonyfill=r,e.iterator=r(i.root),e.$$iterator=e.iterator},"./node_modules/rxjs/symbol/observable.js":function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}var i=n("./node_modules/rxjs/util/root.js");e.getSymbolObservable=r,e.observable=r(i.root),e.$$observable=e.observable},"./node_modules/rxjs/symbol/rxSubscriber.js":function(t,e,n){"use strict";var r=n("./node_modules/rxjs/util/root.js").root.Symbol;e.rxSubscriber="function"==typeof r&&"function"==typeof r.for?r.for("rxSubscriber"):"@@rxSubscriber",e.$$rxSubscriber=e.rxSubscriber},"./node_modules/rxjs/util/UnsubscriptionError.js":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e){t.call(this),this.errors=e;var n=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return r(e,t),e}(Error);e.UnsubscriptionError=i},"./node_modules/rxjs/util/errorObject.js":function(t,e,n){"use strict";e.errorObject={e:{}}},"./node_modules/rxjs/util/isArray.js":function(t,e,n){"use strict";e.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},"./node_modules/rxjs/util/isArrayLike.js":function(t,e,n){"use strict";e.isArrayLike=function(t){return t&&"number"==typeof t.length}},"./node_modules/rxjs/util/isFunction.js":function(t,e,n){"use strict";e.isFunction=function(t){return"function"==typeof t}},"./node_modules/rxjs/util/isObject.js":function(t,e,n){"use strict";e.isObject=function(t){return null!=t&&"object"==typeof t}},"./node_modules/rxjs/util/isPromise.js":function(t,e,n){"use strict";e.isPromise=function(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}},"./node_modules/rxjs/util/noop.js":function(t,e,n){"use strict";e.noop=function(){}},"./node_modules/rxjs/util/pipe.js":function(t,e,n){"use strict";function r(t){return t?1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}:i.noop}var i=n("./node_modules/rxjs/util/noop.js");e.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r(t)},e.pipeFromArray=r},"./node_modules/rxjs/util/root.js":function(t,e,n){"use strict";(function(t){var n="undefined"!=typeof window&&window,r="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=n||"undefined"!=typeof t&&t||r;e.root=i,function(){if(!i)throw new Error("RxJS could not find any global context (window, self, global)")}()}).call(e,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/rxjs/util/subscribeToResult.js":function(t,e,n){"use strict";var r=n("./node_modules/rxjs/util/root.js"),i=n("./node_modules/rxjs/util/isArrayLike.js"),o=n("./node_modules/rxjs/util/isPromise.js"),s=n("./node_modules/rxjs/util/isObject.js"),a=n("./node_modules/rxjs/Observable.js"),c=n("./node_modules/rxjs/symbol/iterator.js"),u=n("./node_modules/rxjs/InnerSubscriber.js"),l=n("./node_modules/rxjs/symbol/observable.js");e.subscribeToResult=function(t,e,n,p){var h=new u.InnerSubscriber(t,n,p);if(h.closed)return null;if(e instanceof a.Observable)return e._isScalar?(h.next(e.value),h.complete(),null):(h.syncErrorThrowable=!0,e.subscribe(h));if(i.isArrayLike(e)){for(var d=0,f=e.length;d<f&&!h.closed;d++)h.next(e[d]);h.closed||h.complete()}else{if(o.isPromise(e))return e.then(function(t){h.closed||(h.next(t),h.complete())},function(t){return h.error(t)}).then(null,function(t){r.root.setTimeout(function(){throw t})}),h;if(e&&"function"==typeof e[c.iterator])for(var y=e[c.iterator]();;){var g=y.next();if(g.done){h.complete();break}if(h.next(g.value),h.closed)break}else if(e&&"function"==typeof e[l.observable]){var v=e[l.observable]();if("function"==typeof v.subscribe)return v.subscribe(new u.InnerSubscriber(t,n,p));h.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var m="You provided "+(s.isObject(e)?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";h.error(new TypeError(m))}}return null}},"./node_modules/rxjs/util/toSubscriber.js":function(t,e,n){"use strict";var r=n("./node_modules/rxjs/Subscriber.js"),i=n("./node_modules/rxjs/symbol/rxSubscriber.js"),o=n("./node_modules/rxjs/Observer.js");e.toSubscriber=function(t,e,n){if(t){if(t instanceof r.Subscriber)return t;if(t[i.rxSubscriber])return t[i.rxSubscriber]()}return t||e||n?new r.Subscriber(t,e,n):new r.Subscriber(o.empty)}},"./node_modules/rxjs/util/tryCatch.js":function(t,e,n){"use strict";function r(){try{return i.apply(this,arguments)}catch(t){return o.errorObject.e=t,o.errorObject}}var i,o=n("./node_modules/rxjs/util/errorObject.js");e.tryCatch=function(t){return i=t,r}},"./node_modules/webpack/buildin/global.js":function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},"./src/components/body/body-cell.component.ts":function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("@angular/core"),s=n("./src/utils/index.ts"),a=n("./src/types/index.ts"),c=(n("./src/events.ts"),function(){function t(t,e){this.cd=e,this.activate=new o.EventEmitter,this.isFocused=!1,this.onCheckboxChangeFn=this.onCheckboxChange.bind(this),this.activateFn=this.activate.emit.bind(this.activate),this.cellContext={onCheckboxChangeFn:this.onCheckboxChangeFn,activateFn:this.activateFn,row:this.row,group:this.group,value:this.value,column:this.column,rowHeight:this.rowHeight,isSelected:this.isSelected,rowIndex:this.rowIndex},this._element=t.nativeElement}return Object.defineProperty(t.prototype,"group",{get:function(){return this._group},set:function(t){this._group=t,this.cellContext.group=t,this.checkValueUpdates(),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowHeight",{get:function(){return this._rowHeight},set:function(t){this._rowHeight=t,this.cellContext.rowHeight=t,this.checkValueUpdates(),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSelected",{get:function(){return this._isSelected},set:function(t){this._isSelected=t,this.cellContext.isSelected=t,this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"expanded",{get:function(){return this._expanded},set:function(t){this._expanded=t,this.cellContext.expanded=t,this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowIndex",{get:function(){return this._rowIndex},set:function(t){this._rowIndex=t,this.cellContext.rowIndex=t,this.checkValueUpdates(),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"column",{get:function(){return this._column},set:function(t){this._column=t,this.cellContext.column=t,this.checkValueUpdates(),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this._row},set:function(t){this._row=t,this.cellContext.row=t,this.checkValueUpdates(),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sorts",{get:function(){return this._sorts},set:function(t){this._sorts=t,this.calcSortDir=this.calcSortDir(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnCssClasses",{get:function(){var t="datatable-body-cell";if(this.column.cellClass)if("string"==typeof this.column.cellClass)t+=" "+this.column.cellClass;else if("function"==typeof this.column.cellClass){var e=this.column.cellClass({row:this.row,group:this.group,column:this.column,value:this.value,rowHeight:this.rowHeight});if("string"==typeof e)t+=e;else if("object"==typeof e)for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];!0===e[i]&&(t+=" "+i)}}return this.sortDir||(t+=" sort-active"),this.isFocused&&(t+=" active"),this.sortDir===a.SortDirection.asc&&(t+=" sort-asc"),this.sortDir===a.SortDirection.desc&&(t+=" sort-desc"),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.column.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){var t=this.rowHeight;return isNaN(t)?t:t+"px"},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){this.checkValueUpdates()},t.prototype.ngOnDestroy=function(){this.cellTemplate&&this.cellTemplate.clear()},t.prototype.checkValueUpdates=function(){var t="";if(this.row&&this.column){var e=this.column.$$valueGetter(this.row,this.column.prop),n=this.column.pipe;n?t=n.transform(e):void 0!==t&&(t=e)}else t="";this.value!==t&&(this.value=t,this.cellContext.value=t,this.sanitizedValue=null!==t&&void 0!==t?this.stripHtml(t):t,this.cd.markForCheck())},t.prototype.onFocus=function(){this.isFocused=!0},t.prototype.onBlur=function(){this.isFocused=!1},t.prototype.onClick=function(t){this.activate.emit({type:"click",event:t,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element})},t.prototype.onDblClick=function(t){this.activate.emit({type:"dblclick",event:t,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element})},t.prototype.onKeyDown=function(t){var e=t.keyCode,n=t.target===this._element;(e===s.Keys.return||e===s.Keys.down||e===s.Keys.up||e===s.Keys.left||e===s.Keys.right)&&n&&(t.preventDefault(),t.stopPropagation(),this.activate.emit({type:"keydown",event:t,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element}))},t.prototype.onCheckboxChange=function(t){this.activate.emit({type:"checkbox",event:t,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element})},t.prototype.calcSortDir=function(t){var e=this;if(t){var n=t.find(function(t){return t.prop===e.column.prop});return n?n.dir:void 0}},t.prototype.stripHtml=function(t){return t.replace?t.replace(/<\/?[^>]+(>|$)/g,""):t},r([o.Input(),i("design:type",Object)],t.prototype,"displayCheck",void 0),r([o.Input(),i("design:type",Object),i("design:paramtypes",[Object])],t.prototype,"group",null),r([o.Input(),i("design:type",Number),i("design:paramtypes",[Number])],t.prototype,"rowHeight",null),r([o.Input(),i("design:type",Boolean),i("design:paramtypes",[Boolean])],t.prototype,"isSelected",null),r([o.Input(),i("design:type",Boolean),i("design:paramtypes",[Boolean])],t.prototype,"expanded",null),r([o.Input(),i("design:type",Number),i("design:paramtypes",[Number])],t.prototype,"rowIndex",null),r([o.Input(),i("design:type",Object),i("design:paramtypes",[Object])],t.prototype,"column",null),r([o.Input(),i("design:type",Object),i("design:paramtypes",[Object])],t.prototype,"row",null),r([o.Input(),i("design:type",Array),i("design:paramtypes",[Array])],t.prototype,"sorts",null),r([o.Output(),i("design:type",o.EventEmitter)],t.prototype,"activate",void 0),r([o.ViewChild("cellTemplate",{read:o.ViewContainerRef}),i("design:type",o.ViewContainerRef)],t.prototype,"cellTemplate",void 0),r([o.HostBinding("class"),i("design:type",Object),i("design:paramtypes",[])],t.prototype,"columnCssClasses",null),r([o.HostBinding("style.width.px"),i("design:type",Number),i("design:paramtypes",[])],t.prototype,"width",null),r([o.HostBinding("style.height"),i("design:type",Object),i("design:paramtypes",[])],t.prototype,"height",null),r([o.HostListener("focus"),i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],t.prototype,"onFocus",null),r([o.HostListener("blur"),i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],t.prototype,"onBlur",null),r([o.HostListener("click",["$event"]),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],t.prototype,"onClick",null),r([o.HostListener("dblclick",["$event"]),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],t.prototype,"onDblClick",null),r([o.HostListener("keydown",["$event"]),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],t.prototype,"onKeyDown",null),t=r([o.Component({selector:"datatable-body-cell",changeDetection:o.ChangeDetectionStrategy.OnPush,template:'\n <div class="datatable-body-cell-label">\n <label\n *ngIf="column.checkboxable && (!displayCheck || displayCheck(row, column, value))"\n class="datatable-checkbox">\n <input\n type="checkbox"\n [checked]="isSelected"\n (click)="onCheckboxChange($event)"\n />\n </label>\n <span\n *ngIf="!column.cellTemplate"\n [title]="sanitizedValue"\n [innerHTML]="value">\n </span>\n <ng-template #cellTemplate\n *ngIf="column.cellTemplate"\n [ngTemplateOutlet]="column.cellTemplate"\n [ngTemplateOutletContext]="cellContext">\n </ng-template>\n </div>\n '}),i("design:paramtypes",[o.ElementRef,o.ChangeDetectorRef])],t)}());e.DataTableBodyCellComponent=c},"./src/components/body/body-group-header-template.directive.ts":function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("@angular/core"),s=function(){function t(t){this.template=t}return t=r([o.Directive({selector:"[ngx-datatable-group-header-template]"}),i("design:paramtypes",[o.TemplateRef])],t)}();e.DatatableGroupHeaderTemplateDirective=s},"./src/components/body/body-group-header.directive.ts":function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("@angular/core"),s=n("./src/components/body/body-group-header-template.directive.ts"),a=function(){function t(){this.rowHeight=0,this.toggle=new o.EventEmitter}return t.prototype.toggleExpandGroup=function(t){this.toggle.emit({type:"group",value:t})},t.prototype.expandAllGroups=function(){this.toggle.emit({type:"all",value:!0})},t.prototype.collapseAllGroups=function(){this.toggle.emit({type:"all",value:!1})},r([o.Input(),i("design:type",Object)],t.prototype,"rowHeight",void 0),r([o.Input(),o.ContentChild(s.DatatableGroupHeaderTemplateDirective,{read:o.TemplateRef}),i("design:type",o.TemplateRef)],t.prototype,"template",void 0),r([o.Output(),i("design:type",o.EventEmitter)],t.prototype,"toggle",void 0),t=r([o.Directive({selector:"ngx-datatable-group-header"})],t)}();e.DatatableGroupHeaderDirective=a},"./src/components/body/body-row-wrapper.component.ts":function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("@angular/core"),s=(n("./src/events.ts"),function(){function t(t,e){this.cd=t,this.differs=e,this.rowContextmenu=new o.EventEmitter(!1),this.groupContext={group:this.row,expanded:this.expanded,rowIndex:this.rowIndex},this.rowContext={row:this.row,expanded:this.expanded,rowIndex:this.rowIndex},this._expanded=!1,this.rowDiffer=e.find({}).create()}return Object.defineProperty(t.prototype,"rowIndex",{get:function(){return this._rowIndex},set:function(t){this._rowIndex=t,this.rowContext.rowIndex=t,this.groupContext.rowIndex=t,this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"expanded",{get:function(){return this._expanded},set:function(t){this._expanded=t,this.groupContext.expanded=t,this.rowContext.expanded=t,this.cd.markForCheck()},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){this.rowDiffer.diff(this.row)&&(this.rowContext.row=this.row,this.groupContext.group=this.row,this.cd.markForCheck())},t.prototype.onContextmenu=function(t){this.rowContextmenu.emit({event:t,row:this.row})},t.prototype.getGroupHeaderStyle=function(t){var e={};return e.transform="translate3d("+this.offsetX+"px, 0px, 0px)",e["backface-visibility"]="hidden",e.width=this.innerWidth,e},r([o.Input(),i("design:type",Number)],t.prototype,"innerWidth",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"rowDetail",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"groupHeader",void 0),r([o.Input(),i("design:type",Number)],t.prototype,"offsetX",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"detailRowHeight",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"row",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"groupedRows",void 0),r([o.Output(),i("design:type",Object)],t.prototype,"rowContextmenu",void 0),r([o.Input(),i("design:type",Number),i("design:paramtypes",[Number])],t.prototype,"rowIndex",null),r([o.Input(),i("design:type",Boolean),i("design:paramtypes",[Boolean])],t.prototype,"expanded",null),r([o.HostListener("contextmenu",["$event"]),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],t.prototype,"onContextmenu",null),t=r([o.Component({selector:"datatable-row-wrapper",changeDetection:o.ChangeDetectionStrategy.OnPush,template:'\n <div \n *ngIf="groupHeader && groupHeader.template"\n class="datatable-group-header"\n [ngStyle]="getGroupHeaderStyle()">\n <ng-template\n *ngIf="groupHeader && groupHeader.template"\n [ngTemplateOutlet]="groupHeader.template"\n [ngTemplateOutletContext]="groupContext">\n </ng-template>\n </div>\n <ng-content \n *ngIf="(groupHeader && groupHeader.template && expanded) || \n (!groupHeader || !groupHeader.template)">\n </ng-content>\n <div\n *ngIf="rowDetail && rowDetail.template && expanded"\n [style.height.px]="detailRowHeight"\n class="datatable-row-detail">\n <ng-template\n *ngIf="rowDetail && rowDetail.template"\n [ngTemplateOutlet]="rowDetail.template"\n [ngTemplateOutletContext]="rowContext">\n </ng-template>\n </div>\n ',host:{class:"datatable-row-wrapper"}}),i("design:paramtypes",[o.ChangeDetectorRef,o.KeyValueDiffers])],t)}());e.DataTableRowWrapperComponent=s},"./src/components/body/body-row.component.ts":function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("@angular/core"),s=n("./src/utils/index.ts"),a=n("./src/services/index.ts"),c=(n("./src/events.ts"),function(){function t(t,e,n,r){this.differs=t,this.scrollbarHelper=e,this.cd=n,this.activate=new o.EventEmitter,this.element=r.nativeElement,this.rowDiffer=t.find({}).create()}return Object.defineProperty(t.prototype,"columns",{get:function(){return this._columns},set:function(t){this._columns=t,this.recalculateColumns(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerWidth",{get:function(){return this._innerWidth},set:function(t){if(this._columns){var e=s.columnsByPin(this._columns);this.columnGroupWidths=s.columnGroupWidths(e,e)}this._innerWidth=t,this.recalculateColumns()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssClass",{get:function(){var t="datatable-body-row";if(this.isSelected&&(t+=" active"),this.rowIndex%2!=0&&(t+=" datatable-row-odd"),this.rowIndex%2==0&&(t+=" datatable-row-even"),this.rowClass){var e=this.rowClass(this.row);if("string"==typeof e)t+=" "+e;else if("object"==typeof e)for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];!0===e[i]&&(t+=" "+i)}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnsTotalWidths",{get:function(){return this.columnGroupWidths.total},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){this.rowDiffer.diff(this.row)&&this.cd.markForCheck()},t.prototype.trackByGroups=function(t,e){return e.type},t.prototype.columnTrackingFn=function(t,e){return e.$$id},t.prototype.stylesByGroup=function(t){var e=this.columnGroupWidths,n=this.offsetX,r={width:e[t]+"px"};if("left"===t)s.translateXY(r,n,0);else if("right"===t){var i=parseInt(this.innerWidth+"",0),o=-1*(e.total-i-n+this.scrollbarHelper.width);s.translateXY(r,o,0)}return r},t.prototype.onActivate=function(t,e){t.cellIndex=e,t.rowElement=this.element,this.activate.emit(t)},t.prototype.onKeyDown=function(t){var e=t.keyCode,n=t.target===this.element;(e===s.Keys.return||e===s.Keys.down||e===s.Keys.up||e===s.Keys.left||e===s.Keys.right)&&n&&(t.preventDefault(),t.stopPropagation(),this.activate.emit({type:"keydown",event:t,row:this.row,rowElement:this.element}))},t.prototype.onMouseenter=function(t){this.activate.emit({type:"mouseenter",event:t,row:this.row,rowElement:this.element})},t.prototype.recalculateColumns=function(t){void 0===t&&(t=this.columns),this._columns=t;var e=s.columnsByPin(this._columns);this.columnsByPin=s.allColumnsByPinArr(this._columns),this.columnGroupWidths=s.columnGroupWidths(e,this._columns)},r([o.Input(),i("design:type",Array),i("design:paramtypes",[Array])],t.prototype,"columns",null),r([o.Input(),i("design:type",Number),i("design:paramtypes",[Number])],t.prototype,"innerWidth",null),r([o.Input(),i("design:type",Boolean)],t.prototype,"expanded",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"rowClass",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"row",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"group",void 0),r([o.Input(),i("design:type",Number)],t.prototype,"offsetX",void 0),r([o.Input(),i("design:type",Boolean)],t.prototype,"isSelected",void 0),r([o.Input(),i("design:type",Number)],t.prototype,"rowIndex",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"displayCheck",void 0),r([o.HostBinding("class"),i("design:type",Object),i("design:paramtypes",[])],t.prototype,"cssClass",null),r([o.HostBinding("style.height.px"),o.Input(),i("design:type",Number)],t.prototype,"rowHeight",void 0),r([o.HostBinding("style.width.px"),i("design:type",String),i("design:paramtypes",[])],t.prototype,"columnsTotalWidths",null),r([o.Output(),i("design:type",o.EventEmitter)],t.prototype,"activate",void 0),r([o.HostListener("keydown",["$event"]),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],t.prototype,"onKeyDown",null),r([o.HostListener("mouseenter",["$event"]),i("design:type",Function),i("design:paramtypes",[Event]),i("design:returntype",void 0)],t.prototype,"onMouseenter",null),t=r([o.Component({selector:"datatable-body-row",changeDetection:o.ChangeDetectionStrategy.OnPush,template:'\n <div\n *ngFor="let colGroup of columnsByPin; let i = index; trackBy: trackByGroups"\n class="datatable-row-{{colGroup.type}} datatable-row-group"\n [ngStyle]="stylesByGroup(colGroup.type)">\n <datatable-body-cell\n *ngFor="let column of colGroup.columns; let ii = index; trackBy: columnTrackingFn"\n tabindex="-1"\n [row]="row"\n [group]="group"\n [expanded]="expanded"\n [isSelected]="isSelected"\n [rowIndex]="rowIndex"\n [column]="column"\n [rowHeight]="rowHeight"\n [displayCheck]="displayCheck"\n (activate)="onActivate($event, ii)">\n </datatable-body-cell>\n </div> \n '}),i("design:paramtypes",[o.KeyValueDiffers,a.ScrollbarHelper,o.ChangeDetectorRef,o.ElementRef])],t)}());e.DataTableBodyRowComponent=c},"./src/components/body/body.component.ts":function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("@angular/core"),s=n("./src/utils/index.ts"),a=(n("./src/types/index.ts"),n("./src/components/body/scroller.component.ts")),c=function(){function t(t){var e=this;this.cd=t,this.selected=[],this.scroll=new o.EventEmitter,this.page=new o.EventEmitter,this.activate=new o.EventEmitter,this.select=new o.EventEmitter,this.detailToggle=new o.EventEmitter,this.rowContextmenu=new o.EventEmitter(!1),this.rowHeightsCache=new s.RowHeightCache,this.temp=[],this.offsetY=0,this.indexes={},this.rowIndexes=new Map,this.rowExpansions=new Map,this.getDetailRowHeight=function(t,n){if(!e.rowDetail)return 0;var r=e.rowDetail.rowHeight;return"function"==typeof r?r(t,n):r},this.rowTrackingFn=(function(t,e){var n=this.getRowIndex(e);return this.trackByProp?n+"-"+this.trackByProp:n}).bind(this)}return Object.defineProperty(t.prototype,"pageSize",{get:function(){return this._pageSize},set:function(t){this._pageSize=t,this.recalcLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this._rows},set:function(t){this._rows=t,this.rowExpansions.clear(),this.recalcLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this._columns},set:function(t){this._columns=t;var e=s.columnsByPin(t);this.columnGroupWidths=s.columnGroupWidths(e,t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offset",{get:function(){return this._offset},set:function(t){this._offset=t,this.recalcLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowCount",{get:function(){return this._rowCount},set:function(t){this._rowCount=t,this.recalcLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bodyWidth",{get:function(){return this.scrollbarH?this.innerWidth+"px":"100%"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bodyHeight",{get:function(){return this._bodyHeight},set:function(t){this.scrollbarV?this._bodyHeight=t+"px":this._bodyHeight="auto",this.recalcLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectEnabled",{get:function(){return!!this.selectionType},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollHeight",{get:function(){if(this.scrollbarV)return this.rowHeightsCache.query(this.rowCount-1)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.rowDetail&&(this.listener=this.rowDetail.toggle.subscribe(function(e){var n=e.type,r=e.value;"row"===n&&t.toggleRowExpansion(r),"all"===n&&t.toggleAllRows(r),t.updateIndexes(),t.updateRows(),t.cd.markForCheck()})),this.groupHeader&&(this.listener=this.groupHeader.toggle.subscribe(function(e){var n=e.type,r=e.value;"group"===n&&t.toggleRowExpansion(r),"all"===n&&t.toggleAllRows(r),t.updateIndexes(),t.updateRows(),t.cd.markForCheck()}))},t.prototype.ngOnDestroy=function(){this.rowDetail&&this.listener.unsubscribe(),this.groupHeader&&this.listener.unsubscribe()},t.prototype.updateOffsetY=function(t){if(this.scroller){if(this.scrollbarV&&t){var e=this.pageSize*t;t=this.rowHeightsCache.query(e-1)}this.scroller.setOffset(t||0)}},t.prototype.onBodyScroll=function(t){var e=t.scrollYPos,n=t.scrollXPos;this.offsetY===e&&this.offsetX===n||this.scroll.emit({offsetY:e,offsetX:n}),this.offsetY=e,this.offsetX=n,this.updateIndexes(),this.updatePage(t.direction),this.updateRows()},t.prototype.updatePage=function(t){var e=this.indexes.first/this.pageSize;"up"===t?e=Math.ceil(e):"down"===t&&(e=Math.ceil(e)),void 0===t||isNaN(e)||this.page.emit({offset:e})},t.prototype.updateRows=function(){var t=this.indexes,e=t.first,n=t.last,r=e,i=0,o=[];if(this.rowIndexes.clear(),this.groupedRows){for(1===this.groupedRows.length&&this.groupedRows[0].value.length;r<n&&r<this.groupedRows.length;){var s=this.groupedRows[r];o[i]=s,i++,r++}}else for(;r<n&&r<this.rowCount;){var a=this.rows[r];a&&(this.rowIndexes.set(a,r),o[i]=a),i++,r++}this.temp=o},t.prototype.getRowHeight=function(t){var e=this.rowHeight;return"function"==typeof this.rowHeight&&(e=this.rowHeight(t)),e},t.prototype.getGroupHeight=function(t){var e=0;if(t.value)for(var n=0;n<t.value.length;n++)e+=this.getRowAndDetailHeight(t.value[n]);return e},t.prototype.getRowAndDetailHeight=function(t){var e=this.getRowHeight(t);return 1===this.rowExpansions.get(t)&&(e+=this.getDetailRowHeight(t)),e},t.prototype.getRowsStyles=function(t){var e={};if(this.groupedRows&&(e.width=this.columnGroupWidths.total),this.scrollbarV){var n=0;if(this.groupedRows){var r=t[t.length-1];n=r?this.getRowIndex(r):0}else n=this.getRowIndex(t);var i=this.rowHeightsCache.query(n-1);s.translateXY(e,0,i)}return e},t.prototype.hideIndicator=function(){var t=this;setTimeout(function(){return t.loadingIndicator=!1},500)},t.prototype.updateIndexes=function(){var t=0,e=0;if(this.scrollbarV){var n=parseInt(this.bodyHeight,0);t=this.rowHeightsCache.getRowIndex(this.offsetY),e=this.rowHeightsCache.getRowIndex(n+this.offsetY)+1}else this.externalPaging||(t=Math.max(this.offset*this.pageSize,0)),e=Math.min(t+this.pageSize,this.rowCount);this.indexes={first:t,last:e}},t.prototype.refreshRowHeightCache=function(){this.scrollbarV&&(this.rowHeightsCache.clearCache(),this.rows&&this.rows.length&&this.rowHeightsCache.initCache({rows:this.rows,rowHeight:this.rowHeight,detailRowHeight:this.getDetailRowHeight,externalVirtual:this.scrollbarV&&this.externalPaging,rowCount:this.rowCount,rowIndexes:this.rowIndexes,rowExpansions:this.rowExpansions}))},t.prototype.getAdjustedViewPortIndex=function(){var t=this.indexes.first;if(this.scrollbarV){return this.rowHeightsCache.query(t-1)<=this.offsetY?t-1:t}return t},t.prototype.toggleRowExpansion=function(t){var e=this.getAdjustedViewPortIndex(),n=this.rowExpansions.get(t);if(this.scrollbarV){var r=this.getDetailRowHeight(t)*(n?-1:1),i=this.getRowIndex(t);this.rowHeightsCache.update(i,r)}n=n^=1,this.rowExpansions.set(t,n),this.detailToggle.emit({rows:[t],currentIndex:e})},t.prototype.toggleAllRows=function(t){this.rowExpansions.clear();for(var e=t?1:0,n=this.getAdjustedViewPortIndex(),r=0,i=this.rows;r<i.length;r++){var o=i[r];this.rowExpansions.set(o,e)}this.scrollbarV&&this.recalcLayout(),this.detailToggle.emit({rows:this.rows,currentIndex:n})},t.prototype.recalcLayout=function(){this.refreshRowHeightCache(),this.updateIndexes(),this.updateRows()},t.prototype.columnTrackingFn=function(t,e){return e.$$id},t.prototype.stylesByGroup=function(t){var e=this.columnGroupWidths,n=this.offsetX,r={width:e[t]+"px"};if("left"===t)s.translateXY(r,n,0);else if("right"===t){var i=parseInt(this.innerWidth+"",0),o=-1*(e.total-i-n);s.translateXY(r,o,0)}return r},t.prototype.getRowExpanded=function(t){if(0===this.rowExpansions.size&&this.groupExpansionDefault)for(var e=0,n=this.groupedRows;e<n.length;e++){var r=n[e];this.rowExpansions.set(r,1)}return 1===this.rowExpansions.get(t)},t.prototype.getRowIndex=function(t){return this.rowIndexes.get(t)||0},r([o.Input(),i("design:type",Boolean)],t.prototype,"scrollbarV",void 0),r([o.Input(),i("design:type",Boolean)],t.prototype,"scrollbarH",void 0),r([o.Input(),i("design:type",Boolean)],t.prototype,"loadingIndicator",void 0),r([o.Input(),i("design:type",Boolean)],t.prototype,"externalPaging",void 0),r([o.Input(),i("design:type",Number)],t.prototype,"rowHeight",void 0),r([o.Input(),i("design:type",Number)],t.prototype,"offsetX",void 0),r([o.Input(),i("design:type",String)],t.prototype,"emptyMessage",void 0),r([o.Input(),i("design:type",String)],t.prototype,"selectionType",void 0),r([o.Input(),i("design:type",Array)],t.prototype,"selected",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"rowIdentity",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"rowDetail",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"groupHeader",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"selectCheck",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"displayCheck",void 0),r([o.Input(),i("design:type",String)],t.prototype,"trackByProp",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"rowClass",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"groupedRows",void 0),r([o.Input(),i("design:type",Boolean)],t.prototype,"groupExpansionDefault",void 0),r([o.Input(),i("design:type",Number)],t.prototype,"innerWidth",void 0),r([o.Input(),i("design:type",String)],t.prototype,"groupRowsBy",void 0),r([o.Input(),i("design:type",Number),i("design:paramtypes",[Number])],t.prototype,"pageSize",null),r([o.Input(),i("design:type",Array),i("design:paramtypes",[Array])],t.prototype,"rows",null),r([o.Input(),i("design:type",Array),i("design:paramtypes",[Array])],t.prototype,"columns",null),r([o.Input(),i("design:type",Number),i("design:paramtypes",[Number])],t.prototype,"offset",null),r([o.Input(),i("design:type",Number),i("design:paramtypes",[Number])],t.prototype,"rowCount",null),r([o.HostBinding("style.width"),i("design:type",String),i("design:paramtypes",[])],t.prototype,"bodyWidth",null),r([o.Input(),o.HostBinding("style.height"),i("design:type",Object),i("design:paramtypes",[Object])],t.prototype,"bodyHeight",null),r([o.Output(),i("design:type",o.EventEmitter)],t.prototype,"scroll",void 0),r([o.Output(),i("design:type",o.EventEmitter)],t.prototype,"page",void 0),r([o.Output(),i("design:type",o.EventEmitter)],t.prototype,"activate",void 0),r([o.Output(),i("design:type",o.EventEmitter)],t.prototype,"select",void 0),r([o.Output(),i("design:type",o.EventEmitter)],t.prototype,"detailToggle",void 0),r([o.Output(),i("design:type",Object)],t.prototype,"rowContextmenu",void 0),r([o.ViewChild(a.ScrollerComponent),i("design:type",a.ScrollerComponent)],t.prototype,"scroller",void 0),t=r([o.Component({selector:"datatable-body",template:'\n <datatable-selection\n #selector\n [selected]="selected"\n [rows]="rows"\n [selectCheck]="selectCheck"\n [selectEnabled]="selectEnabled"\n [selectionType]="selectionType"\n [rowIdentity]="rowIdentity"\n (select)="select.emit($event)"\n (activate)="activate.emit($event)">\n <datatable-progress\n *ngIf="loadingIndicator">\n </datatable-progress>\n <datatable-scroller\n *ngIf="rows?.length"\n [scrollbarV]="scrollbarV"\n [scrollbarH]="scrollbarH"\n [scrollHeight]="scrollHeight"\n [scrollWidth]="columnGroupWidths.total"\n (scroll)="onBodyScroll($event)">\n <datatable-row-wrapper\n [groupedRows]="groupedRows"\n *ngFor="let group of temp; let i = index; trackBy: rowTrackingFn;"\n [innerWidth]="innerWidth"\n [ngStyle]="getRowsStyles(group)"\n [rowDetail]="rowDetail"\n [groupHeader]="groupHeader"\n [offsetX]="offsetX"\n [detailRowHeight]="getDetailRowHeight(group[i],i)"\n [row]="group"\n [expanded]="getRowExpanded(group)"\n [rowIndex]="getRowIndex(group[i])"\n (rowContextmenu)="rowContextmenu.emit($event)">\n <datatable-body-row \n *ngIf="!groupedRows; else groupedRowsTemplate" \n tabindex="-1"\n [isSelected]="selector.getRowSelected(group)"\n [innerWidth]="innerWidth"\n [offsetX]="offsetX"\n [columns]="columns"\n [rowHeight]="getRowHeight(group)"\n [row]="group"\n [rowIndex]="getRowIndex(group)"\n [expanded]="getRowExpanded(group)" \n [rowClass]="rowClass"\n [displayCheck]="displayCheck"\n (activate)="selector.onActivate($event, indexes.first + i)">\n </datatable-body-row>\n <ng-template #groupedRowsTemplate>\n <datatable-body-row\n *ngFor="let row of group.value; let i = index; trackBy: rowTrackingFn;"\n tabindex="-1"\n [isSelected]="selector.getRowSelected(row)"\n [innerWidth]="innerWidth"\n [offsetX]="offsetX"\n [columns]="columns"\n [rowHeight]="getRowHeight(row)"\n [row]="row"\n [group]="group.value"\n [rowIndex]="getRowIndex(row)"\n [expanded]="getRowExpanded(row)"\n [rowClass]="rowClass"\n (activate)="selector.onActivate($event, i)">\n </datatable-body-row>\n </ng-template>\n </datatable-row-wrapper>\n </datatable-scroller>\n <div\n class="empty-row"\n *ngIf="!rows?.length"\n [innerHTML]="emptyMessage">\n </div>\n </datatable-selection>\n ',changeDetection:o.ChangeDetectionStrategy.OnPush,host:{class:"datatable-body"}}),i("design:paramtypes",[o.ChangeDetectorRef])],t)}();e.DataTableBodyComponent=c},"./src/components/body/index.ts":function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n("./src/components/body/body.component.ts")),r(n("./src/components/body/body-cell.component.ts")),r(n("./src/components/body/body-row.component.ts")),r(n("./src/components/body/progress-bar.component.ts")),r(n("./src/components/body/scroller.component.ts")),r(n("./src/components/body/body-row-wrapper.component.ts")),r(n("./src/components/body/selection.component.ts")),r(n("./src/components/body/body-group-header.directive.ts")),r(n("./src/components/body/body-group-header-template.directive.ts"))},"./src/components/body/progress-bar.component.ts":function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(e,"__esModule",{value:!0});var i=n("@angular/core"),o=function(){function t(){}return t=r([i.Component({selector:"datatable-progress",template:'\n <div class="progress-linear" role="progressbar">\n <div class="container">\n <div class="bar"></div>\n </div>\n </div>\n ',changeDetection:i.ChangeDetectionStrategy.OnPush})],t)}();e.ProgressBarComponent=o},"./src/components/body/scroller.component.ts":function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("@angular/core"),s=function(){function t(t,e){this.renderer=e,this.scrollbarV=!1,this.scrollbarH=!1,this.scroll=new o.EventEmitter,this.scrollYPos=0,this.scrollXPos=0,this.prevScrollYPos=0,this.prevScrollXPos=0,this.element=t.nativeElement}return t.prototype.ngOnInit=function(){(this.scrollbarV||this.scrollbarH)&&(this.parentElement=this.element.parentElement.parentElement,this.onScrollListener=this.renderer.listen(this.parentElement,"scroll",this.onScrolled.bind(this)))},t.prototype.ngOnDestroy=function(){(this.scrollbarV||this.scrollbarH)&&this.onScrollListener()},t.prototype.setOffset=function(t){this.parentElement&&(this.parentElement.scrollTop=t)},t.prototype.onScrolled=function(t){var e=t.currentTarget;this.scrollYPos=e.scrollTop,this.scrollXPos=e.scrollLeft,requestAnimationFrame(this.updateOffset.bind(this))},t.prototype.updateOffset=function(){var t;this.scrollYPos<this.prevScrollYPos?t="down":this.scrollYPos>this.prevScrollYPos&&(t="up"),this.scroll.emit({direction:t,scrollYPos:this.scrollYPos,scrollXPos:this.scrollXPos}),this.prevScrollYPos=this.scrollYPos,this.prevScrollXPos=this.scrollXPos},r([o.Input(),i("design:type",Boolean)],t.prototype,"scrollbarV",void 0),r([o.Input(),i("design:type",Boolean)],t.prototype,"scrollbarH",void 0),r([o.HostBinding("style.height.px"),o.Input(),i("design:type",Number)],t.prototype,"scrollHeight",void 0),r([o.HostBinding("style.width.px"),o.Input(),i("design:type",Number)],t.prototype,"scrollWidth",void 0),r([o.Output(),i("design:type",o.EventEmitter)],t.prototype,"scroll",void 0),t=r([o.Component({selector:"datatable-scroller",template:"\n <ng-content></ng-content>\n ",host:{class:"datatable-scroll"},changeDetection:o.ChangeDetectionStrategy.OnPush}),i("design:paramtypes",[o.ElementRef,o.Renderer])],t)}();e.ScrollerComponent=s},"./src/components/body/selection.component.ts":function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("@angular/core"),s=n("./src/utils/index.ts"),a=n("./src/types/index.ts"),c=function(){function t(){this.activate=new o.EventEmitter,this.select=new o.EventEmitter}return t.prototype.selectRow=function(t,e,n){if(this.selectEnabled){var r=this.selectionType===a.SelectionType.checkbox,i=this.selectionType===a.SelectionType.multi,o=this.selectionType===a.SelectionType.multiClick,c=[];c=i||r||o?t.shiftKey?s.selectRowsBetween([],this.rows,e,this.prevIndex,this.getRowSelectedIdx.bind(this)):t.ctrlKey||t.metaKey||o||r?s.selectRows(this.selected.slice(),n,this.getRowSelectedIdx.bind(this)):s.selectRows([],n,this.getRowSelectedIdx.bind(this)):s.selectRows([],n,this.getRowSelectedIdx.bind(this)),"function"==typeof this.selectCheck&&(c=c.filter(this.selectCheck.bind(this))),this.selected.splice(0,this.selected.length),(u=this.selected).push.apply(u,c),this.prevIndex=e,this.select.emit({selected:c});var u}},t.prototype.onActivate=function(t,e){var n=t.type,r=t.event,i=t.row,o=this.selectionType===a.SelectionType.checkbox;!o&&("click"===n||"dblclick"===n)||o&&"checkbox"===n?this.selectRow(r,e,i):"keydown"===n&&(r.keyCode===s.Keys.return?this.selectRow(r,e,i):this.onKeyboardFocus(t)),this.activate.emit(t)},t.prototype.onKeyboardFocus=function(t){var e=t.event.keyCode;if(e===s.Keys.up||e===s.Keys.down||e===s.Keys.right||e===s.Keys.left){var n=this.selectionType===a.SelectionType.cell;t.cellElement&&n?n&&this.focusCell(t.cellElement,t.rowElement,e,t.cellIndex):this.focusRow(t.rowElement,e)}},t.prototype.focusRow=function(t,e){var n=this.getPrevNextRow(t,e);n&&n.focus()},t.prototype.getPrevNextRow=function(t,e){var n=t.parentElement;if(n){var r=void 0;if(e===s.Keys.up?r=n.previousElementSibling:e===s.Keys.down&&(r=n.nextElementSibling),r&&r.children.length)return r.children[0]}},t.prototype.focusCell=function(t,e,n,r){var i;if(n===s.Keys.left)i=t.previousElementSibling;else if(n===s.Keys.right)i=t.nextElementSibling;else if(n===s.Keys.up||n===s.Keys.down){var o=this.getPrevNextRow(e,n);if(o){var a=o.getElementsByClassName("datatable-body-cell");a.length&&(i=a[r])}}i&&i.focus()},t.prototype.getRowSelected=function(t){return this.getRowSelectedIdx(t,this.selected)>-1},t.prototype.getRowSelectedIdx=function(t,e){var n=this;if(!e||!e.length)return-1;var r=this.rowIdentity(t);return e.findIndex(function(t){return n.rowIdentity(t)===r})},r([o.Input(),i("design:type",Array)],t.prototype,"rows",void 0),r([o.Input(),i("design:type",Array)],t.prototype,"selected",void 0),r([o.Input(),i("design:type",Boolean)],t.prototype,"selectEnabled",void 0),r([o.Input(),i("design:type",String)],t.prototype,"selectionType",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"rowIdentity",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"selectCheck",void 0),r([o.Output(),i("design:type",o.EventEmitter)],t.prototype,"activate",void 0),r([o.Output(),i("design:type",o.EventEmitter)],t.prototype,"select",void 0),t=r([o.Component({selector:"datatable-selection",template:"\n <ng-content></ng-content>\n ",changeDetection:o.ChangeDetectionStrategy.OnPush})],t)}();e.DataTableSelectionComponent=c},"./src/components/columns/column-cell.directive.ts":function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("@angular/core"),s=function(){function t(t){this.template=t}return t=r([o.Directive({selector:"[ngx-datatable-cell-template]"}),i("design:paramtypes",[o.TemplateRef])],t)}();e.DataTableColumnCellDirective=s},"./src/components/columns/column-header.directive.ts":function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("@angular/core"),s=function(){function t(t){this.template=t}return t=r([o.Directive({selector:"[ngx-datatable-header-template]"}),i("design:paramtypes",[o.TemplateRef])],t)}();e.DataTableColumnHeaderDirective=s},"./src/components/columns/column.directive.ts":function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("@angular/core"),s=n("./src/components/columns/column-header.directive.ts"),a=n("./src/components/columns/column-cell.directive.ts"),c=function(){function t(){}return r([o.Input(),i("design:type",String)],t.prototype,"name",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"prop",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"frozenLeft",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"frozenRight",void 0),r([o.Input(),i("design:type",Number)],t.prototype,"flexGrow",void 0),r([o.Input(),i("design:type",Boolean)],t.prototype,"resizeable",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"comparator",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"pipe",void 0),r([o.Input(),i("design:type",Boolean)],t.prototype,"sortable",void 0),r([o.Input(),i("design:type",Boolean)],t.prototype,"draggable",void 0),r([o.Input(),i("design:type",Boolean)],t.prototype,"canAutoResize",void 0),r([o.Input(),i("design:type",Number)],t.prototype,"minWidth",void 0),r([o.Input(),i("design:type",Number)],t.prototype,"width",void 0),r([o.Input(),i("design:type",Number)],t.prototype,"maxWidth",void 0),r([o.Input(),i("design:type",Boolean)],t.prototype,"checkboxable",void 0),r([o.Input(),i("design:type",Boolean)],t.prototype,"headerCheckboxable",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"headerClass",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"cellClass",void 0),r([o.Input(),o.ContentChild(a.DataTableColumnCellDirective,{read:o.TemplateRef}),i("design:type",o.TemplateRef)],t.prototype,"cellTemplate",void 0),r([o.Input(),o.ContentChild(s.DataTableColumnHeaderDirective,{read:o.TemplateRef}),i("design:type",o.TemplateRef)],t.prototype,"headerTemplate",void 0),t=r([o.Directive({selector:"ngx-datatable-column"})],t)}();e.DataTableColumnDirective=c},"./src/components/columns/index.ts":function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n("./src/components/columns/column.directive.ts")),r(n("./src/components/columns/column-header.directive.ts")),r(n("./src/components/columns/column-cell.directive.ts"))},"./src/components/datatable.component.scss":function(t,e,n){var r=n('./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/components/datatable.component.scss');t.exports="string"==typeof r?r:r.toString()},"./src/components/datatable.component.ts":function(t,e,n){"use strict";var r=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},i=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var s=n("@angular/core"),a=n("./src/utils/index.ts"),c=n("./src/services/index.ts"),u=n("./src/types/index.ts"),l=n("./src/components/body/index.ts"),p=n("./src/components/body/body-group-header.directive.ts"),h=n("./src/components/columns/index.ts"),d=n("./src/components/row-detail/index.ts"),f=n("./src/components/footer/index.ts"),y=function(){function t(t,e,n,r){this.scrollbarHelper=t,this.cd=e,this.selected=[],this.scrollbarV=!1,this.scrollbarH=!1,this.rowHeight=30,this.columnMode=u.ColumnMode.standard,this.headerHeight=30,this.footerHeight=0,this.externalPaging=!1,this.externalSorting=!1,this.loadingIndicator=!1,this.reorderable=!0,this.sortType=u.SortType.single,this.sorts=[],this.cssClasses={sortAscending:"datatable-icon-up",sortDescending:"datatable-icon-down",pagerLeftArrow:"datatable-icon-left",pagerRightArrow:"datatable-icon-right",pagerPrevious:"datatable-icon-prev",pagerNext:"datatable-icon-skip"},this.messages={emptyMessage:"No data to display",totalMessage:"total",selectedMessage:"selected"},this.rowIdentity=function(t){return t},this.groupExpansionDefault=!1,this.scroll=new s.EventEmitter,this.activate=new s.EventEmitter,this.select=new s.EventEmitter,this.sort=new s.EventEmitter,this.page=new s.EventEmitter,this.reorder=new s.EventEmitter,this.resize=new s.EventEmitter,this.tableContextmenu=new s.EventEmitter(!1),this.rowCount=0,this.offsetX=0,this._count=0,this._offset=0,this.element=n.nativeElement,this.rowDiffer=r.find({}).create()}return Object.defineProperty(t.prototype,"rows",{get:function(){return this._rows},set:function(t){this._rows=t,this.externalSorting?this._internalRows=t.slice():this._internalRows=a.sortRows(t,this._internalColumns,this.sorts),this.recalculate(),this._rows&&this._groupRowsBy&&(this.groupedRows=this.groupArrayBy(this._rows,this._groupRowsBy)),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"groupRowsBy",{get:function(){return this._groupRowsBy},set:function(t){t&&(this._groupRowsBy=t,this._rows&&this._groupRowsBy&&(this.groupedRows=this.groupArrayBy(this._rows,this._groupRowsBy)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this._columns},set:function(t){t&&(this._internalColumns=t.slice(),a.setColumnDefaults(this._internalColumns),this.recalculateColumns()),this._columns=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"limit",{get:function(){return this._limit},set:function(t){this._limit=t,this.recalculate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this._count},set:function(t){this._count=t,this.recalculate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offset",{get:function(){return Math.max(Math.min(this._offset,Math.ceil(this.rowCount/this.pageSize)-1),0)},set:function(t){this._offset=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isFixedHeader",{get:function(){var t=this.headerHeight;return"string"!=typeof t||"auto"!==t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isFixedRow",{get:function(){var t=this.rowHeight;return"string"!=typeof t||"auto"!==t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVertScroll",{get:function(){return this.scrollbarV},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isHorScroll",{get:function(){return this.scrollbarH},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSelectable",{get:function(){return void 0!==this.selectionType},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCheckboxSelection",{get:function(){return this.selectionType===u.SelectionType.checkbox},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCellSelection",{get:function(){return this.selectionType===u.SelectionType.cell},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSingleSelection",{get:function(){return this.selectionType===u.SelectionType.single},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isMultiSelection",{get:function(){return this.selectionType===u.SelectionType.multi},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isMultiClickSelection",{get:function(){return this.selectionType===u.SelectionType.multiClick},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnTemplates",{get:function(){return this._columnTemplates},set:function(t){if(this._columnTemplates=t,t){var e=t.toArray();e.length&&(this._internalColumns=a.translateTemplates(e),a.setColumnDefaults(this._internalColumns),this.recalculateColumns())}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allRowsSelected",{get:function(){return this.selected&&this.rows&&0!==this.rows.length&&this.selected.length===this.rows.length},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.recalculate()},t.prototype.ngAfterViewInit=function(){var t=this;this.externalSorting||(this._internalRows=a.sortRows(this._rows,this._internalColumns,this.sorts)),requestAnimationFrame(function(){t.recalculate(),t.externalPaging&&t.scrollbarV&&t.page.emit({count:t.count,pageSize:t.pageSize,limit:t.limit,offset:0})})},t.prototype.groupArrayBy=function(t,e){var n=new Map;t.forEach(function(t){var r=t[e];n.has(r)?n.get(r).push(t):n.set(r,[t]),0});return Array.from(n,function(t){return function(t,e){return{key:t,value:e}}(t[0],t[1])})},t.prototype.ngDoCheck=function(){this.rowDiffer.diff(this.rows)&&(this.externalSorting?this._internalRows=this.rows.slice():this._internalRows=a.sortRows(this._rows,this._internalColumns,this.sorts),this.recalculatePages(),this.cd.markForCheck())},t.prototype.recalculate=function(){this.recalculateDims(),this.recalculateColumns()},t.prototype.onWindowResize=function(){this.recalculate()},t.prototype.recalculateColumns=function(t,e,n){if(void 0===t&&(t=this._internalColumns),void 0===e&&(e=-1),void 0===n&&(n=this.scrollbarH),t){var r=this.innerWidth;return this.scrollbarV&&(r-=this.scrollbarHelper.width),this.columnMode===u.ColumnMode.force?a.forceFillColumnWidths(t,r,e,n):this.columnMode===u.ColumnMode.flex&&a.adjustColumnWidths(t,r),t}},t.prototype.recalculateDims=function(){var t=this.element.getBoundingClientRect();if(this.innerWidth=Math.floor(t.width),this.scrollbarV){var e=t.height;this.headerHeight&&(e-=this.headerHeight),this.footerHeight&&(e-=this.footerHeight),this.bodyHeight=e}this.recalculatePages()},t.prototype.recalculatePages=function(){this.pageSize=this.calcPageSize(),this.rowCount=this.calcRowCount()},t.prototype.onBodyPage=function(t){var e=t.offset;this.offset=e,this.page.emit({count:this.count,pageSize:this.pageSize,limit:this.limit,offset:this.offset})},t.prototype.onBodyScroll=function(t){this.offsetX=t.offsetX,this.scroll.emit(t)},t.prototype.onFooterPage=function(t){this.offset=t.page-1,this.bodyComponent.updateOffsetY(this.offset),this.page.emit({count:this.count,pageSize:this.pageSize,limit:this.limit,offset:this.offset})},t.prototype.calcPageSize=function(t){if(void 0===t&&(t=this.rows),this.scrollbarV){var e=Math.ceil(this.bodyHeight/this.rowHeight);return Math.max(e,0)}return void 0!==this.limit?this.limit:t?t.length:0},t.prototype.calcRowCount=function(t){return void 0===t&&(t=this.rows),this.externalPaging?this.count:t?this.groupedRows?this.groupedRows.length:t.length:0},t.prototype.onColumnContextmenu=function(t){var e=t.event,n=t.column;this.tableContextmenu.emit({event:e,type:u.ContextmenuType.header,content:n})},t.prototype.onRowContextmenu=function(t){var e=t.event,n=t.row;this.tableContextmenu.emit({event:e,type:u.ContextmenuType.body,content:n})},t.prototype.onColumnResize=function(t){var e=t.column,n=t.newValue;if(void 0!==e){var i,o=this._internalColumns.map(function(t,o){return(t=r({},t)).$$id===e.$$id&&(i=o,t.width=n,t.$$oldWidth=n),t});this.recalculateColumns(o,i),this._internalColumns=o,this.resize.emit({column:e,newValue:n})}},t.prototype.onColumnReorder=function(t){var e=t.column,n=t.newValue,i=t.prevValue,o=this._internalColumns.map(function(t){return r({},t)}),s=o[n];o[n]=e,o[i]=s,this._internalColumns=o,this.reorder.emit({column:e,newValue:n,prevValue:i})},t.prototype.onColumnSort=function(t){var e=t.sorts;!1===this.externalSorting&&(this._internalRows=a.sortRows(this.rows,this._internalColumns,e)),this.sorts=e,this.offset=0,this.bodyComponent.updateOffsetY(this.offset),this.sort.emit(t)},t.prototype.onHeaderSelect=function(t){var e=this.selected.length===this.rows.length;this.selected=[],e||(n=this.selected).push.apply(n,this.rows),this.select.emit({selected:this.selected});var n},t.prototype.onBodySelect=function(t){this.select.emit(t)},i([s.Input(),o("design:type",Object),o("design:paramtypes",[Object])],t.prototype,"rows",null),i([s.Input(),o("design:type",String),o("design:paramtypes",[String])],t.prototype,"groupRowsBy",null),i([s.Input(),o("design:type",Array)],t.prototype,"groupedRows",void 0),i([s.Input(),o("design:type",Array),o("design:paramtypes",[Array])],t.prototype,"columns",null),i([s.Input(),o("design:type",Array)],t.prototype,"selected",void 0),i([s.Input(),o("design:type",Boolean)],t.prototype,"scrollbarV",void 0),i([s.Input(),o("design:type",Boolean)],t.prototype,"scrollbarH",void 0),i([s.Input(),o("design:type",Number)],t.prototype,"rowHeight",void 0),i([s.Input(),o("design:type",String)],t.prototype,"columnMode",void 0),i([s.Input(),o("design:type",Object)],t.prototype,"headerHeight",void 0),i([s.Input(),o("design:type",Number)],t.prototype,"footerHeight",void 0),i([s.Input(),o("design:type",Boolean)],t.prototype,"externalPaging",void 0),i([s.Input(),o("design:type",Boolean)],t.prototype,"externalSorting",void 0),i([s.Input(),o("design:type",Number),o("design:paramtypes",[Number])],t.prototype,"limit",null),i([s.Input(),o("design:type",Number),o("design:paramtypes",[Number])],t.prototype,"count",null),i([s.Input(),o("design:type",Number),o("design:paramtypes",[Number])],t.prototype,"offset",null),i([s.Input(),o("design:type",Boolean)],t.prototype,"loadingIndicator",void 0),i([s.Input(),o("design:type",String)],t.prototype,"selectionType",void 0),i([s.Input(),o("design:type",Boolean)],t.prototype,"reorderable",void 0),i([s.Input(),o("design:type",String)],t.prototype,"sortType",void 0),i([s.Input(),o("design:type",Array)],t.prototype,"sorts",void 0),i([s.Input(),o("design:type",Object)],t.prototype,"cssClasses",void 0),i([s.Input(),o("design:type",Object)],t.prototype,"messages",void 0),i([s.Input(),o("design:type",Function)],t.prototype,"rowIdentity",void 0),i([s.Input(),o("design:type",Object)],t.prototype,"rowClass",void 0),i([s.Input(),o("design:type",Object)],t.prototype,"selectCheck",void 0),i([s.Input(),o("design:type",Function)],t.prototype,"displayCheck",void 0),i([s.Input(),o("design:type",Boolean)],t.prototype,"groupExpansionDefault",void 0),i([s.Input(),o("design:type",String)],t.prototype,"trackByProp",void 0),i([s.Output(),o("design:type",s.EventEmitter)],t.prototype,"scroll",void 0),i([s.Output(),o("design:type",s.EventEmitter)],t.prototype,"activate",void 0),i([s.Output(),o("design:type",s.EventEmitter)],t.prototype,"select",void 0),i([s.Output(),o("design:type",s.EventEmitter)],t.prototype,"sort",void 0),i([s.Output(),o("design:type",s.EventEmitter)],t.prototype,"page",void 0),i([s.Output(),o("design:type",s.EventEmitter)],t.prototype,"reorder",void 0),i([s.Output(),o("design:type",s.EventEmitter)],t.prototype,"resize",void 0),i([s.Output(),o("design:type",Object)],t.prototype,"tableContextmenu",void 0),i([s.HostBinding("class.fixed-header"),o("design:type",Boolean),o("design:paramtypes",[])],t.prototype,"isFixedHeader",null),i([s.HostBinding("class.fixed-row"),o("design:type",Boolean),o("design:paramtypes",[])],t.prototype,"isFixedRow",null),i([s.HostBinding("class.scroll-vertical"),o("design:type",Boolean),o("design:paramtypes",[])],t.prototype,"isVertScroll",null),i([s.HostBinding("class.scroll-horz"),o("design:type",Boolean),o("design:paramtypes",[])],t.prototype,"isHorScroll",null),i([s.HostBinding("class.selectable"),o("design:type",Boolean),o("design:paramtypes",[])],t.prototype,"isSelectable",null),i([s.HostBinding("class.checkbox-selection"),o("design:type",Boolean),o("design:paramtypes",[])],t.prototype,"isCheckboxSelection",null),i([s.HostBinding("class.cell-selection"),o("design:type",Boolean),o("design:paramtypes",[])],t.prototype,"isCellSelection",null),i([s.HostBinding("class.single-selection"),o("design:type",Boolean),o("design:paramtypes",[])],t.prototype,"isSingleSelection",null),i([s.HostBinding("class.multi-selection"),o("design:type",Boolean),o("design:paramtypes",[])],t.prototype,"isMultiSelection",null),i([s.HostBinding("class.multi-click-selection"),o("design:type",Boolean),o("design:paramtypes",[])],t.prototype,"isMultiClickSelection",null),i([s.ContentChildren(h.DataTableColumnDirective),o("design:type",s.QueryList),o("design:paramtypes",[s.QueryList])],t.prototype,"columnTemplates",null),i([s.ContentChild(d.DatatableRowDetailDirective),o("design:type",d.DatatableRowDetailDirective)],t.prototype,"rowDetail",void 0),i([s.ContentChild(p.DatatableGroupHeaderDirective),o("design:type",p.DatatableGroupHeaderDirective)],t.prototype,"groupHeader",void 0),i([s.ContentChild(f.DatatableFooterDirective),o("design:type",f.DatatableFooterDirective)],t.prototype,"footer",void 0),i([s.ViewChild(l.DataTableBodyComponent),o("design:type",l.DataTableBodyComponent)],t.prototype,"bodyComponent",void 0),i([s.HostListener("window:resize"),a.throttleable(5),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],t.prototype,"onWindowResize",null),t=i([s.Component({selector:"ngx-datatable",template:'\n <div\n visibilityObserver\n (visible)="recalculate()">\n <datatable-header\n *ngIf="headerHeight"\n [sorts]="sorts"\n [sortType]="sortType"\n [scrollbarH]="scrollbarH"\n [innerWidth]="innerWidth"\n [offsetX]="offsetX"\n [dealsWithGroup]="groupedRows"\n [columns]="_internalColumns"\n [headerHeight]="headerHeight"\n [reorderable]="reorderable"\n [sortAscendingIcon]="cssClasses.sortAscending"\n [sortDescendingIcon]="cssClasses.sortDescending"\n [allRowsSelected]="allRowsSelected"\n [selectionType]="selectionType"\n (sort)="onColumnSort($event)"\n (resize)="onColumnResize($event)"\n (reorder)="onColumnReorder($event)"\n (select)="onHeaderSelect($event)"\n (columnContextmenu)="onColumnContextmenu($event)">\n </datatable-header>\n <datatable-body\n [groupRowsBy]="groupRowsBy"\n [groupedRows]="groupedRows"\n [rows]="_internalRows"\n [groupExpansionDefault]="groupExpansionDefault"\n [scrollbarV]="scrollbarV"\n [scrollbarH]="scrollbarH"\n [loadingIndicator]="loadingIndicator"\n [externalPaging]="externalPaging"\n [rowHeight]="rowHeight"\n [rowCount]="rowCount"\n [offset]="offset"\n [trackByProp]="trackByProp"\n [columns]="_internalColumns"\n [pageSize]="pageSize"\n [offsetX]="offsetX"\n [rowDetail]="rowDetail"\n [groupHeader]="groupHeader"\n [selected]="selected"\n [innerWidth]="innerWidth"\n [bodyHeight]="bodyHeight"\n [selectionType]="selectionType"\n [emptyMessage]="messages.emptyMessage"\n [rowIdentity]="rowIdentity"\n [rowClass]="rowClass"\n [selectCheck]="selectCheck"\n [displayCheck]="displayCheck"\n (page)="onBodyPage($event)"\n (activate)="activate.emit($event)"\n (rowContextmenu)="onRowContextmenu($event)"\n (select)="onBodySelect($event)"\n (scroll)="onBodyScroll($event)">\n </datatable-body>\n <datatable-footer\n *ngIf="footerHeight"\n [rowCount]="rowCount"\n [pageSize]="pageSize"\n [offset]="offset"\n [footerHeight]="footerHeight"\n [footerTemplate]="footer"\n [totalMessage]="messages.totalMessage"\n [pagerLeftArrowIcon]="cssClasses.pagerLeftArrow"\n [pagerRightArrowIcon]="cssClasses.pagerRightArrow"\n [pagerPreviousIcon]="cssClasses.pagerPrevious"\n [selectedCount]="selected.length"\n [selectedMessage]="!!selectionType && messages.selectedMessage"\n [pagerNextIcon]="cssClasses.pagerNext"\n (page)="onFooterPage($event)">\n </datatable-footer>\n </div>\n ',changeDetection:s.ChangeDetectionStrategy.OnPush,encapsulation:s.ViewEncapsulation.None,styles:[n("./src/components/datatable.component.scss")],host:{class:"ngx-datatable"}}),o("design:paramtypes",[c.ScrollbarHelper,s.ChangeDetectorRef,s.ElementRef,s.KeyValueDiffers])],t)}();e.DatatableComponent=y},"./src/components/footer/footer-template.directive.ts":function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("@angular/core"),s=function(){function t(t){this.template=t}return t=r([o.Directive({selector:"[ngx-datatable-footer-template]"}),i("design:paramtypes",[o.TemplateRef])],t)}();e.DataTableFooterTemplateDirective=s},"./src/components/footer/footer.component.ts":function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("@angular/core"),s=function(){function t(){this.selectedCount=0,this.page=new o.EventEmitter}return Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.rowCount/this.pageSize>1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"curPage",{get:function(){return this.offset+1},enumerable:!0,configurable:!0}),r([o.Input(),i("design:type",Number)],t.prototype,"footerHeight",void 0),r([o.Input(),i("design:type",Number)],t.prototype,"rowCount",void 0),r([o.Input(),i("design:type",Number)],t.prototype,"pageSize",void 0),r([o.Input(),i("design:type",Number)],t.prototype,"offset",void 0),r([o.Input(),i("design:type",String)],t.prototype,"pagerLeftArrowIcon",void 0),r([o.Input(),i("design:type",String)],t.prototype,"pagerRightArrowIcon",void 0),r([o.Input(),i("design:type",String)],t.prototype,"pagerPreviousIcon",void 0),r([o.Input(),i("design:type",String)],t.prototype,"pagerNextIcon",void 0),r([o.Input(),i("design:type",String)],t.prototype,"totalMessage",void 0),r([o.Input(),i("design:type",o.TemplateRef)],t.prototype,"footerTemplate",void 0),r([o.Input(),i("design:type",Number)],t.prototype,"selectedCount",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"selectedMessage",void 0),r([o.Output(),i("design:type",o.EventEmitter)],t.prototype,"page",void 0),t=r([o.Component({selector:"datatable-footer",template:'\n <div\n class="datatable-footer-inner"\n [ngClass]="{\'selected-count\': selectedMessage}"\n [style.height.px]="footerHeight">\n <ng-template\n *ngIf="footerTemplate"\n [ngTemplateOutlet]="footerTemplate.template"\n [ngTemplateOutletContext]="{ \n rowCount: rowCount, \n pageSize: pageSize, \n selectedCount: selectedCount,\n curPage: curPage,\n offset: offset\n }">\n </ng-template>\n <div class="page-count" *ngIf="!footerTemplate">\n <span *ngIf="selectedMessage">\n {{selectedCount.toLocaleString()}} {{selectedMessage}} / \n </span>\n {{rowCount.toLocaleString()}} {{totalMessage}}\n </div>\n <datatable-pager *ngIf="!footerTemplate"\n [pagerLeftArrowIcon]="pagerLeftArrowIcon"\n [pagerRightArrowIcon]="pagerRightArrowIcon"\n [pagerPreviousIcon]="pagerPreviousIcon"\n [pagerNextIcon]="pagerNextIcon"\n [page]="curPage"\n [size]="pageSize"\n [count]="rowCount"\n [hidden]="!isVisible"\n (change)="page.emit($event)">\n </datatable-pager>\n </div>\n ',host:{class:"datatable-footer"},changeDetection:o.ChangeDetectionStrategy.OnPush})],t)}();e.DataTableFooterComponent=s},"./src/components/footer/footer.directive.ts":function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("@angular/core"),s=n("./src/components/footer/footer-template.directive.ts"),a=function(){function t(){}return r([o.Input(),i("design:type",Number)],t.prototype,"footerHeight",void 0),r([o.Input(),i("design:type",String)],t.prototype,"totalMessage",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"selectedMessage",void 0),r([o.Input(),i("design:type",String)],t.prototype,"pagerLeftArrowIcon",void 0),r([o.Input(),i("design:type",String)],t.prototype,"pagerRightArrowIcon",void 0),r([o.Input(),i("design:type",String)],t.prototype,"pagerPreviousIcon",void 0),r([o.Input(),i("design:type",String)],t.prototype,"pagerNextIcon",void 0),r([o.Input(),o.ContentChild(s.DataTableFooterTemplateDirective,{read:o.TemplateRef}),i("design:type",o.TemplateRef)],t.prototype,"template",void 0),t=r([o.Directive({selector:"ngx-datatable-footer"})],t)}();e.DatatableFooterDirective=a},"./src/components/footer/index.ts":function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n("./src/components/footer/footer.component.ts")),r(n("./src/components/footer/pager.component.ts")),r(n("./src/components/footer/footer.directive.ts")),r(n("./src/components/footer/footer-template.directive.ts"))},"./src/components/footer/pager.component.ts":function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("@angular/core"),s=function(){function t(){this.change=new o.EventEmitter,this._count=0,this._page=1,this._size=0}return Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(t){this._size=t,this.pages=this.calcPages()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this._count},set:function(t){this._count=t,this.pages=this.calcPages()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this._page},set:function(t){this._page=t,this.pages=this.calcPages()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalPages",{get:function(){var t=this.size<1?1:Math.ceil(this.count/this.size);return Math.max(t||0,1)},enumerable:!0,configurable:!0}),t.prototype.canPrevious=function(){return this.page>1},t.prototype.canNext=function(){return this.page<this.totalPages},t.prototype.prevPage=function(){this.selectPage(this.page-1)},t.prototype.nextPage=function(){this.selectPage(this.page+1)},t.prototype.selectPage=function(t){t>0&&t<=this.totalPages&&t!==this.page&&(this.page=t,this.change.emit({page:t}))},t.prototype.calcPages=function(t){var e=[],n=1,r=this.totalPages,i=5<this.totalPages;t=t||this.page,i&&(n=t-Math.floor(2.5),r=t+Math.floor(2.5),n<1?(n=1,r=Math.min(n+5-1,this.totalPages)):r>this.totalPages&&(n=Math.max(this.totalPages-5+1,1),r=this.totalPages));for(var o=n;o<=r;o++)e.push({number:o,text:o});return e},r([o.Input(),i("design:type",String)],t.prototype,"pagerLeftArrowIcon",void 0),r([o.Input(),i("design:type",String)],t.prototype,"pagerRightArrowIcon",void 0),r([o.Input(),i("design:type",String)],t.prototype,"pagerPreviousIcon",void 0),r([o.Input(),i("design:type",String)],t.prototype,"pagerNextIcon",void 0),r([o.Input(),i("design:type",Number),i("design:paramtypes",[Number])],t.prototype,"size",null),r([o.Input(),i("design:type",Number),i("design:paramtypes",[Number])],t.prototype,"count",null),r([o.Input(),i("design:type",Number),i("design:paramtypes",[Number])],t.prototype,"page",null),r([o.Output(),i("design:type",o.EventEmitter)],t.prototype,"change",void 0),t=r([o.Component({selector:"datatable-pager",template:'\n <ul class="pager">\n <li [class.disabled]="!canPrevious()">\n <a\n href="javascript:void(0)"\n (click)="selectPage(1)">\n <i class="{{pagerPreviousIcon}}"></i>\n </a>\n </li>\n <li [class.disabled]="!canPrevious()">\n <a\n href="javascript:void(0)"\n (click)="prevPage()">\n <i class="{{pagerLeftArrowIcon}}"></i>\n </a>\n </li>\n <li\n class="pages"\n *ngFor="let pg of pages"\n [class.active]="pg.number === page">\n <a\n href="javascript:void(0)"\n (click)="selectPage(pg.number)">\n {{pg.text}}\n </a>\n </li>\n <li [class.disabled]="!canNext()">\n <a\n href="javascript:void(0)"\n (click)="nextPage()">\n <i class="{{pagerRightArrowIcon}}"></i>\n </a>\n </li>\n <li [class.disabled]="!canNext()">\n <a\n href="javascript:void(0)"\n (click)="selectPage(totalPages)">\n <i class="{{pagerNextIcon}}"></i>\n </a>\n </li>\n </ul>\n ',host:{class:"datatable-pager"},changeDetection:o.ChangeDetectionStrategy.OnPush})],t)}();e.DataTablePagerComponent=s},"./src/components/header/header-cell.component.ts":function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("@angular/core"),s=n("./src/types/index.ts"),a=n("./src/utils/index.ts"),c=(n("./src/events.ts"),function(){function t(t){this.cd=t,this.sort=new o.EventEmitter,this.select=new o.EventEmitter,this.columnContextmenu=new o.EventEmitter(!1),this.sortFn=this.onSort.bind(this),this.selectFn=this.select.emit.bind(this.select),this.cellContext={column:this.column,sortDir:this.sortDir,sortFn:this.sortFn,allRowsSelected:this.allRowsSelected,selectFn:this.selectFn}}return Object.defineProperty(t.prototype,"allRowsSelected",{get:function(){return this._allRowsSelected},set:function(t){this._allRowsSelected=t,this.cellContext.allRowsSelected=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"column",{get:function(){return this._column},set:function(t){this._column=t,this.cellContext.column=t,this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sorts",{get:function(){return this._sorts},set:function(t){this._sorts=t,this.sortDir=this.calcSortDir(t),this.sortClass=this.calcSortClass(this.sortDir),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnCssClasses",{get:function(){var t="datatable-header-cell";if(this.column.sortable&&(t+=" sortable"),this.column.resizeable&&(t+=" resizeable"),this.column.headerClass)if("string"==typeof this.column.headerClass)t+=" "+this.column.headerClass;else if("function"==typeof this.column.headerClass){var e=this.column.headerClass({column:this.column});if("string"==typeof e)t+=e;else if("object"==typeof e)for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];!0===e[i]&&(t+=" "+i)}}var o=this.sortDir;return o&&(t+=" sort-active sort-"+o),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return void 0===this.column.headerTemplate?this.column.name:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.column.minWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){return this.column.maxWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.column.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCheckboxable",{get:function(){return this.column.checkboxable&&this.column.headerCheckboxable&&this.selectionType===s.SelectionType.checkbox},enumerable:!0,configurable:!0}),t.prototype.onContextmenu=function(t){this.columnContextmenu.emit({event:t,column:this.column})},t.prototype.calcSortDir=function(t){var e=this;if(t&&this.column){var n=t.find(function(t){return t.prop===e.column.prop});if(n)return n.dir}},t.prototype.onSort=function(){if(this.column.sortable){var t=a.nextSortDir(this.sortType,this.sortDir);this.sort.emit({column:this.column,prevValue:this.sortDir,newValue:t})}},t.prototype.calcSortClass=function(t){return t===s.SortDirection.asc?"sort-btn sort-asc "+this.sortAscendingIcon:t===s.SortDirection.desc?"sort-btn sort-desc "+this.sortDescendingIcon:"sort-btn"},r([o.Input(),i("design:type",String)],t.prototype,"sortType",void 0),r([o.Input(),i("design:type",String)],t.prototype,"sortAscendingIcon",void 0),r([o.Input(),i("design:type",String)],t.prototype,"sortDescendingIcon",void 0),r([o.Input(),i("design:type",Object),i("design:paramtypes",[Object])],t.prototype,"allRowsSelected",null),r([o.Input(),i("design:type",String)],t.prototype,"selectionType",void 0),r([o.Input(),i("design:type",Object),i("design:paramtypes",[Object])],t.prototype,"column",null),r([o.HostBinding("style.height.px"),o.Input(),i("design:type",Number)],t.prototype,"headerHeight",void 0),r([o.Input(),i("design:type",Array),i("design:paramtypes",[Array])],t.prototype,"sorts",null),r([o.Output(),i("design:type",o.EventEmitter)],t.prototype,"sort",void 0),r([o.Output(),i("design:type",o.EventEmitter)],t.prototype,"select",void 0),r([o.Output(),i("design:type",Object)],t.prototype,"columnContextmenu",void 0),r([o.HostBinding("class"),i("design:type",Object),i("design:paramtypes",[])],t.prototype,"columnCssClasses",null),r([o.HostBinding("attr.title"),i("design:type",String),i("design:paramtypes",[])],t.prototype,"name",null),r([o.HostBinding("style.minWidth.px"),i("design:type",Number),i("design:paramtypes",[])],t.prototype,"minWidth",null),r([o.HostBinding("style.maxWidth.px"),i("design:type",Number),i("design:paramtypes",[])],t.prototype,"maxWidth",null),r([o.HostBinding("style.width.px"),i("design:type",Number),i("design:paramtypes",[])],t.prototype,"width",null),r([o.HostListener("contextmenu",["$event"]),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],t.prototype,"onContextmenu",null),t=r([o.Component({selector:"datatable-header-cell",template:'\n <div>\n <label\n *ngIf="isCheckboxable"\n class="datatable-checkbox">\n <input\n type="checkbox"\n [checked]="allRowsSelected"\n (change)="select.emit(!allRowsSelected)"\n />\n </label>\n <span\n *ngIf="!column.headerTemplate"\n class="datatable-header-cell-wrapper">\n <span\n class="datatable-header-cell-label draggable"\n (click)="onSort()"\n [innerHTML]="name">\n </span>\n </span>\n <ng-template\n *ngIf="column.headerTemplate"\n [ngTemplateOutlet]="column.headerTemplate"\n [ngTemplateOutletContext]="cellContext">\n </ng-template>\n <span\n (click)="onSort()"\n [class]="sortClass">\n </span>\n </div>\n ',host:{class:"datatable-header-cell"},changeDetection:o.ChangeDetectionStrategy.OnPush}),i("design:paramtypes",[o.ChangeDetectorRef])],t)}());e.DataTableHeaderCellComponent=c},"./src/components/header/header.component.ts":function(t,e,n){"use strict";var r=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},i=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var s=n("@angular/core"),a=n("./src/types/index.ts"),c=n("./src/utils/index.ts"),u=function(){function t(){this.sort=new s.EventEmitter,this.reorder=new s.EventEmitter,this.resize=new s.EventEmitter,this.select=new s.EventEmitter,this.columnContextmenu=new s.EventEmitter(!1)}return Object.defineProperty(t.prototype,"innerWidth",{get:function(){return this._innerWidth},set:function(t){if(this._innerWidth=t,this._columns){var e=c.columnsByPin(this._columns);this.columnGroupWidths=c.columnGroupWidths(e,this._columns)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"headerHeight",{get:function(){return this._headerHeight},set:function(t){this._headerHeight="auto"!==t?t+"px":t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this._columns},set:function(t){this._columns=t;var e=c.columnsByPin(t);this.columnsByPin=c.columnsByPinArr(t),this.columnGroupWidths=c.columnGroupWidths(e,t)},enumerable:!0,configurable:!0}),t.prototype.onLongPressStart=function(t){var e=t.event;t.model.dragging=!0,this.dragEventTarget=e},t.prototype.onLongPressEnd=function(t){var e=t.event,n=t.model;this.dragEventTarget=e,setTimeout(function(){n.dragging=!1},5)},Object.defineProperty(t.prototype,"headerWidth",{get:function(){return this.scrollbarH?this.innerWidth+"px":"100%"},enumerable:!0,configurable:!0}),t.prototype.trackByGroups=function(t,e){return e.type},t.prototype.columnTrackingFn=function(t,e){return e.$$id},t.prototype.onColumnResized=function(t,e){t<=e.minWidth?t=e.minWidth:t>=e.maxWidth&&(t=e.maxWidth),this.resize.emit({column:e,prevValue:e.width,newValue:t})},t.prototype.onColumnReordered=function(t){var e=t.prevIndex,n=t.newIndex,r=t.model;this.reorder.emit({column:r,prevValue:e,newValue:n})},t.prototype.onSort=function(t){var e=t.column,n=t.prevValue,r=t.newValue;if(!e.dragging){var i=this.calcNewSorts(e,n,r);this.sort.emit({sorts:i,column:e,prevValue:n,newValue:r})}},t.prototype.calcNewSorts=function(t,e,n){var i=0;this.sorts||(this.sorts=[]);var o=this.sorts.map(function(e,n){return(e=r({},e)).prop===t.prop&&(i=n),e});return void 0===n?o.splice(i,1):e?o[i].dir=n:(this.sortType===a.SortType.single&&o.splice(0,this.sorts.length),o.push({dir:n,prop:t.prop})),o},t.prototype.stylesByGroup=function(t){var e=this.columnGroupWidths,n=this.offsetX,r={width:e[t]+"px"};if("center"===t)c.translateXY(r,-1*n,0);else if("right"===t){var i=-1*(e.total-this.innerWidth);c.translateXY(r,i,0)}return r},i([s.Input(),o("design:type",Object)],t.prototype,"sortAscendingIcon",void 0),i([s.Input(),o("design:type",Object)],t.prototype,"sortDescendingIcon",void 0),i([s.Input(),o("design:type",Boolean)],t.prototype,"scrollbarH",void 0),i([s.Input(),o("design:type",Boolean)],t.prototype,"dealsWithGroup",void 0),i([s.Input(),o("design:type",Number),o("design:paramtypes",[Number])],t.prototype,"innerWidth",null),i([s.Input(),o("design:type",Number)],t.prototype,"offsetX",void 0),i([s.Input(),o("design:type",Array)],t.prototype,"sorts",void 0),i([s.Input(),o("design:type",String)],t.prototype,"sortType",void 0),i([s.Input(),o("design:type",Boolean)],t.prototype,"allRowsSelected",void 0),i([s.Input(),o("design:type",String)],t.prototype,"selectionType",void 0),i([s.Input(),o("design:type",Boolean)],t.prototype,"reorderable",void 0),i([s.HostBinding("style.height"),s.Input(),o("design:type",Object),o("design:paramtypes",[Object])],t.prototype,"headerHeight",null),i([s.Input(),o("design:type",Array),o("design:paramtypes",[Array])],t.prototype,"columns",null),i([s.Output(),o("design:type",s.EventEmitter)],t.prototype,"sort",void 0),i([s.Output(),o("design:type",s.EventEmitter)],t.prototype,"reorder",void 0),i([s.Output(),o("design:type",s.EventEmitter)],t.prototype,"resize",void 0),i([s.Output(),o("design:type",s.EventEmitter)],t.prototype,"select",void 0),i([s.Output(),o("design:type",Object)],t.prototype,"columnContextmenu",void 0),i([s.HostBinding("style.width"),o("design:type",String),o("design:paramtypes",[])],t.prototype,"headerWidth",null),t=i([s.Component({selector:"datatable-header",template:'\n <div\n orderable\n (reorder)="onColumnReordered($event)"\n [style.width.px]="columnGroupWidths.total"\n class="datatable-header-inner">\n \n <div\n *ngFor="let colGroup of columnsByPin; trackBy: trackByGroups"\n [class]="\'datatable-row-\' + colGroup.type"\n [ngStyle]="stylesByGroup(colGroup.type)">\n <datatable-header-cell\n *ngFor="let column of colGroup.columns; trackBy: columnTrackingFn"\n resizeable\n [resizeEnabled]="column.resizeable"\n (resize)="onColumnResized($event, column)"\n long-press\n [pressModel]="column"\n [pressEnabled]="reorderable && column.draggable"\n (longPressStart)="onLongPressStart($event)"\n (longPressEnd)="onLongPressEnd($event)"\n draggable\n [dragX]="reorderable && column.draggable && column.dragging"\n [dragY]="false"\n [dragModel]="column"\n [dragEventTarget]="dragEventTarget"\n [headerHeight]="headerHeight"\n [column]="column"\n [sortType]="sortType"\n [sorts]="sorts"\n [selectionType]="selectionType"\n [sortAscendingIcon]="sortAscendingIcon"\n [sortDescendingIcon]="sortDescendingIcon"\n [allRowsSelected]="allRowsSelected"\n (sort)="onSort($event)"\n (select)="select.emit($event)"\n (columnContextmenu)="columnContextmenu.emit($event)">\n </datatable-header-cell>\n </div>\n </div>\n ',host:{class:"datatable-header"}})],t)}();e.DataTableHeaderComponent=u},"./src/components/header/index.ts":function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n("./src/components/header/header.component.ts")),r(n("./src/components/header/header-cell.component.ts"))},"./src/components/index.ts":function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n("./src/components/datatable.component.ts")),r(n("./src/components/header/index.ts")),r(n("./src/components/body/index.ts")),r(n("./src/components/footer/index.ts")),r(n("./src/components/columns/index.ts")),r(n("./src/components/row-detail/index.ts"))},"./src/components/row-detail/index.ts":function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n("./src/components/row-detail/row-detail.directive.ts")),r(n("./src/components/row-detail/row-detail-template.directive.ts"))},"./src/components/row-detail/row-detail-template.directive.ts":function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("@angular/core"),s=function(){function t(t){this.template=t}return t=r([o.Directive({selector:"[ngx-datatable-row-detail-template]"}),i("design:paramtypes",[o.TemplateRef])],t)}();e.DatatableRowDetailTemplateDirective=s},"./src/components/row-detail/row-detail.directive.ts":function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("@angular/core"),s=n("./src/components/row-detail/row-detail-template.directive.ts"),a=function(){function t(){this.rowHeight=0,this.toggle=new o.EventEmitter}return t.prototype.toggleExpandRow=function(t){this.toggle.emit({type:"row",value:t})},t.prototype.expandAllRows=function(){this.toggle.emit({type:"all",value:!0})},t.prototype.collapseAllRows=function(){this.toggle.emit({type:"all",value:!1})},r([o.Input(),i("design:type",Object)],t.prototype,"rowHeight",void 0),r([o.Input(),o.ContentChild(s.DatatableRowDetailTemplateDirective,{read:o.TemplateRef}),i("design:type",o.TemplateRef)],t.prototype,"template",void 0),r([o.Output(),i("design:type",o.EventEmitter)],t.prototype,"toggle",void 0),t=r([o.Directive({selector:"ngx-datatable-row-detail"})],t)}();e.DatatableRowDetailDirective=a},"./src/datatable.module.ts":function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(e,"__esModule",{value:!0});var i=n("@angular/core"),o=n("@angular/common");n("./node_modules/rxjs/add/observable/fromEvent.js");var s=n("./src/components/index.ts"),a=n("./src/directives/index.ts"),c=n("./src/services/index.ts"),u=function(){function t(){}return t=r([i.NgModule({imports:[o.CommonModule],providers:[c.ScrollbarHelper],declarations:[s.DataTableFooterTemplateDirective,a.VisibilityDirective,a.DraggableDirective,a.ResizeableDirective,a.OrderableDirective,a.LongPressDirective,s.ScrollerComponent,s.DatatableComponent,s.DataTableColumnDirective,s.DataTableHeaderComponent,s.DataTableHeaderCellComponent,s.DataTableBodyComponent,s.DataTableFooterComponent,s.DataTablePagerComponent,s.ProgressBarComponent,s.DataTableBodyRowComponent,s.DataTableRowWrapperComponent,s.DatatableRowDetailDirective,s.DatatableGroupHeaderDirective,s.DatatableRowDetailTemplateDirective,s.DataTableBodyCellComponent,s.DataTableSelectionComponent,s.DataTableColumnHeaderDirective,s.DataTableColumnCellDirective,s.DatatableFooterDirective,s.DatatableGroupHeaderTemplateDirective],exports:[s.DatatableComponent,s.DatatableRowDetailDirective,s.DatatableGroupHeaderDirective,s.DatatableRowDetailTemplateDirective,s.DataTableColumnDirective,s.DataTableColumnHeaderDirective,s.DataTableColumnCellDirective,s.DataTableFooterTemplateDirective,s.DatatableFooterDirective,s.DataTablePagerComponent,s.DatatableGroupHeaderTemplateDirective]})],t)}();e.NgxDatatableModule=u},"./src/directives/draggable.directive.ts":function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("@angular/core"),s=n("./node_modules/rxjs/Observable.js");n("./node_modules/rxjs/add/operator/takeUntil.js");var a=function(){function t(t){this.dragX=!0,this.dragY=!0,this.dragStart=new o.EventEmitter,this.dragging=new o.EventEmitter,this.dragEnd=new o.EventEmitter,this.isDragging=!1,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){t.dragEventTarget&&t.dragEventTarget.currentValue&&this.dragModel.dragging&&this.onMousedown(t.dragEventTarget.currentValue)},t.prototype.ngOnDestroy=function(){this._destroySubscription()},t.prototype.onMouseup=function(t){this.isDragging&&(this.isDragging=!1,this.element.classList.remove("dragging"),this.subscription&&(this._destroySubscription(),this.dragEnd.emit({event:t,element:this.element,model:this.dragModel})))},t.prototype.onMousedown=function(t){var e=this;if(t.target.classList.contains("draggable")&&(this.dragX||this.dragY)){t.preventDefault(),this.isDragging=!0;var n={x:t.clientX,y:t.clientY},r=s.Observable.fromEvent(document,"mouseup");this.subscription=r.subscribe(function(t){return e.onMouseup(t)});var i=s.Observable.fromEvent(document,"mousemove").takeUntil(r).subscribe(function(t){return e.move(t,n)});this.subscription.add(i),this.dragStart.emit({event:t,element:this.element,model:this.dragModel})}},t.prototype.move=function(t,e){if(this.isDragging){var n=t.clientX-e.x,r=t.clientY-e.y;this.dragX&&(this.element.style.left=n+"px"),this.dragY&&(this.element.style.top=r+"px"),this.element.classList.add("dragging"),this.dragging.emit({event:t,element:this.element,model:this.dragModel})}},t.prototype._destroySubscription=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)},r([o.Input(),i("design:type",Object)],t.prototype,"dragEventTarget",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"dragModel",void 0),r([o.Input(),i("design:type",Boolean)],t.prototype,"dragX",void 0),r([o.Input(),i("design:type",Boolean)],t.prototype,"dragY",void 0),r([o.Output(),i("design:type",o.EventEmitter)],t.prototype,"dragStart",void 0),r([o.Output(),i("design:type",o.EventEmitter)],t.prototype,"dragging",void 0),r([o.Output(),i("design:type",o.EventEmitter)],t.prototype,"dragEnd",void 0),t=r([o.Directive({selector:"[draggable]"}),i("design:paramtypes",[o.ElementRef])],t)}();e.DraggableDirective=a},"./src/directives/index.ts":function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n("./src/directives/draggable.directive.ts")),r(n("./src/directives/long-press.directive.ts")),r(n("./src/directives/orderable.directive.ts")),r(n("./src/directives/resizeable.directive.ts")),r(n("./src/directives/visibility.directive.ts"))},"./src/directives/long-press.directive.ts":function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("@angular/core"),s=n("./node_modules/rxjs/Observable.js");n("./node_modules/rxjs/add/operator/takeUntil.js");n("./src/events.ts");var a=function(){function t(){this.pressEnabled=!0,this.duration=500,this.longPressStart=new o.EventEmitter,this.longPressing=new o.EventEmitter,this.longPressEnd=new o.EventEmitter,this.mouseX=0,this.mouseY=0}return Object.defineProperty(t.prototype,"press",{get:function(){return this.pressing},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLongPress",{get:function(){return this.isLongPressing},enumerable:!0,configurable:!0}),t.prototype.onMouseDown=function(t){var e=this;if(1===t.which&&this.pressEnabled){if(!t.target.classList.contains("resize-handle")){this.mouseX=t.clientX,this.mouseY=t.clientY,this.pressing=!0,this.isLongPressing=!1;var n=s.Observable.fromEvent(document,"mouseup");this.subscription=n.subscribe(function(t){return e.onMouseup()}),this.timeout=setTimeout(function(){e.isLongPressing=!0,e.longPressStart.emit({event:t,model:e.pressModel}),e.subscription.add(s.Observable.fromEvent(document,"mousemove").takeUntil(n).subscribe(function(t){return e.onMouseMove(t)})),e.loop(t)},this.duration),this.loop(t)}}},t.prototype.onMouseMove=function(t){if(this.pressing&&!this.isLongPressing){var e=Math.abs(t.clientX-this.mouseX)>10,n=Math.abs(t.clientY-this.mouseY)>10;(e||n)&&this.endPress()}},t.prototype.loop=function(t){var e=this;this.isLongPressing&&(this.timeout=setTimeout(function(){e.longPressing.emit({event:t,model:e.pressModel}),e.loop(t)},50))},t.prototype.endPress=function(){clearTimeout(this.timeout),this.isLongPressing=!1,this.pressing=!1,this._destroySubscription(),this.longPressEnd.emit({model:this.pressModel})},t.prototype.onMouseup=function(){this.endPress()},t.prototype.ngOnDestroy=function(){this._destroySubscription()},t.prototype._destroySubscription=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)},r([o.Input(),i("design:type",Boolean)],t.prototype,"pressEnabled",void 0),r([o.Input(),i("design:type",Object)],t.prototype,"pressModel",void 0),r([o.Input(),i("design:type",Number)],t.prototype,"duration",void 0),r([o.Output(),i("design:type",o.EventEmitter)],t.prototype,"longPressStart",void 0),r([o.Output(),i("design:type",o.EventEmitter)],t.prototype,"longPressing",void 0),r([o.Output(),i("design:type",o.EventEmitter)],t.prototype,"longPressEnd",void 0),r([o.HostBinding("class.press"),i("design:type",Boolean),i("design:paramtypes",[])],t.prototype,"press",null),r([o.HostBinding("class.longpress"),i("design:type",Boolean),i("design:paramtypes",[])],t.prototype,"isLongPress",null),r([o.HostListener("mousedown",["$event"]),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],t.prototype,"onMouseDown",null),t=r([o.Directive({selector:"[long-press]"})],t)}();e.LongPressDirective=a},"./src/directives/orderable.directive.ts":function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},o=this&&this.__param||function(t,e){return function(n,r){e(n,r,t)}};Object.defineProperty(e,"__esModule",{value:!0});var s=n("@angular/core"),a=n("./src/directives/draggable.directive.ts"),c=n("@angular/platform-browser"),u=function(){function t(t,e){this.document=e,this.reorder=new s.EventEmitter,this.differ=t.find({}).create()}return t.prototype.ngAfterContentInit=function(){this.updateSubscriptions(),this.draggables.changes.subscribe(this.updateSubscriptions.bind(this))},t.prototype.ngOnDestroy=function(){this.draggables.forEach(function(t){t.dragStart.unsubscribe(),t.dragEnd.unsubscribe()})},t.prototype.updateSubscriptions=function(){var t=this,e=this.differ.diff(this.createMapDiffs());if(e){var n=function(t){var e=t.previousValue;e&&(e.dragStart.unsubscribe(),e.dragEnd.unsubscribe())};e.forEachAddedItem((function(e){var r=e.currentValue,i=e.previousValue;n({previousValue:i}),r&&(r.dragStart.subscribe(t.onDragStart.bind(t)),r.dragEnd.subscribe(t.onDragEnd.bind(t)))}).bind(this)),e.forEachRemovedItem(n.bind(this))}},t.prototype.onDragStart=function(){this.positions={};for(var t=0,e=0,n=this.draggables.toArray();e<n.length;e++){var r=n[e],i=r.element,o=parseInt(i.offsetLeft.toString(),0);this.positions[r.dragModel.prop]={left:o,right:o+parseInt(i.offsetWidth.toString(),0),index:t++,element:i}}},t.prototype.onDragEnd=function(t){var e=t.element,n=t.model,r=t.event,i=this.positions[n.prop],o=this.isTarget(n,r);o&&this.reorder.emit({prevIndex:i.index,newIndex:o.i,model:n}),e.style.left="auto"},t.prototype.isTarget=function(t,e){var n=0,r=e.x||e.clientX,i=e.y||e.clientY,o=this.document.elementsFromPoint(r,i),s=function(e){var r=a.positions[e];if(t.prop!==e&&o.find(function(t){return t===r.element}))return{value:{pos:r,i:n}};n++},a=this;for(var c in this.positions){var u=s(c);if("object"==typeof u)return u.value}},t.prototype.createMapDiffs=function(){return this.draggables.toArray().reduce(function(t,e){return t[e.dragModel.$$id]=e,t},{})},r([s.Output(),i("design:type",s.EventEmitter)],t.prototype,"reorder",void 0),r([s.ContentChildren(a.DraggableDirective,{descendants:!0}),i("design:type",s.QueryList)],t.prototype,"draggables",void 0),t=r([s.Directive({selector:"[orderable]"}),o(1,s.Inject(c.DOCUMENT)),i("design:paramtypes",[s.KeyValueDiffers,Object])],t)}();e.OrderableDirective=u},"./src/directives/resizeable.directive.ts":function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("@angular/core"),s=n("./node_modules/rxjs/Observable.js");n("./src/events.ts");n("./node_modules/rxjs/add/operator/takeUntil.js");var a=function(){function t(t){this.resizeEnabled=!0,this.resize=new o.EventEmitter,this.resizing=!1,this.element=t.nativeElement}return t.prototype.ngAfterViewInit=function(){if(this.resizeEnabled){var t=document.createElement("span");t.classList.add("resize-handle"),this.element.appendChild(t)}},t.prototype.ngOnDestroy=function(){this._destroySubscription()},t.prototype.onMouseup=function(){this.resizing=!1,this.subscription&&!this.subscription.closed&&(this._destroySubscription(),this.resize.emit(this.element.clientWidth))},t.prototype.onMousedown=function(t){var e=this,n=t.target.classList.contains("resize-handle"),r=this.element.clientWidth,i=t.screenX;if(n){t.stopPropagation(),this.resizing=!0;var o=s.Observable.fromEvent(document,"mouseup");this.subscription=o.subscribe(function(t){return e.onMouseup()});var a=s.Observable.fromEvent(document,"mousemove").takeUntil(o).subscribe(function(t){return e.move(t,r,i)});this.subscription.add(a)}},t.prototype.move=function(t,e,n){var r=e+(t.screenX-n),i=!this.minWidth||r>=this.minWidth,o=!this.maxWidth||r<=this.maxWidth;i&&o&&(this.element.style.width=r+"px")},t.prototype._destroySubscription=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)},r([o.Input(),i("design:type",Boolean)],t.prototype,"resizeEnabled",void 0),r([o.Input(),i("design:type",Number)],t.prototype,"minWidth",void 0),r([o.Input(),i("design:type",Number)],t.prototype,"maxWidth",void 0),r([o.Output(),i("design:type",o.EventEmitter)],t.prototype,"resize",void 0),r([o.HostListener("mousedown",["$event"]),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],t.prototype,"onMousedown",null),t=r([o.Directive({selector:"[resizeable]",host:{"[class.resizeable]":"resizeEnabled"}}),i("design:paramtypes",[o.ElementRef])],t)}();e.ResizeableDirective=a},"./src/directives/visibility.directive.ts":function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("@angular/core"),s=function(){function t(t,e){this.element=t,this.zone=e,this.isVisible=!1,this.visible=new o.EventEmitter}return t.prototype.ngOnInit=function(){this.runCheck()},t.prototype.ngOnDestroy=function(){clearTimeout(this.timeout)},t.prototype.onVisibilityChange=function(){var t=this;this.zone.run(function(){t.isVisible=!0,t.visible.emit(!0)})},t.prototype.runCheck=function(){var t=this,e=function(){var n=t.element.nativeElement,r=n.offsetHeight,i=n.offsetWidth;r&&i?(clearTimeout(t.timeout),t.onVisibilityChange()):(clearTimeout(t.timeout),t.zone.runOutsideAngular(function(){t.timeout=setTimeout(function(){return e()},50)}))};this.timeout=setTimeout(function(){return e()})},r([o.HostBinding("class.visible"),i("design:type",Boolean)],t.prototype,"isVisible",void 0),r([o.Output(),i("design:type",o.EventEmitter)],t.prototype,"visible",void 0),t=r([o.Directive({selector:"[visibilityObserver]"}),i("design:paramtypes",[o.ElementRef,o.NgZone])],t)}();e.VisibilityDirective=s},"./src/events.ts":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.MouseEvent=t.MouseEvent,e.KeyboardEvent=t.KeyboardEvent}).call(e,n("./node_modules/webpack/buildin/global.js"))},"./src/index.ts":function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n("./src/datatable.module.ts")),r(n("./src/types/index.ts")),r(n("./src/components/index.ts"))},"./src/services/index.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n("./src/services/scrollbar-helper.service.ts"))},"./src/services/scrollbar-helper.service.ts":function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},o=this&&this.__param||function(t,e){return function(n,r){e(n,r,t)}};Object.defineProperty(e,"__esModule",{value:!0});var s=n("@angular/core"),a=n("@angular/platform-browser"),c=function(){function t(t){this.document=t,this.width=this.getWidth()}return t.prototype.getWidth=function(){var t=this.document.createElement("div");t.style.visibility="hidden",t.style.width="100px",t.style.msOverflowStyle="scrollbar",this.document.body.appendChild(t);var e=t.offsetWidth;t.style.overflow="scroll";var n=this.document.createElement("div");n.style.width="100%",t.appendChild(n);var r=n.offsetWidth;return t.parentNode.removeChild(t),e-r},t=r([s.Injectable(),o(0,s.Inject(a.DOCUMENT)),i("design:paramtypes",[Object])],t)}();e.ScrollbarHelper=c},"./src/types/click.type.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});!function(t){t.single="single",t.double="double"}(e.ClickType||(e.ClickType={}))},"./src/types/column-mode.type.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});!function(t){t.standard="standard",t.flex="flex",t.force="force"}(e.ColumnMode||(e.ColumnMode={}))},"./src/types/contextmenu.type.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});!function(t){t.header="header",t.body="body"}(e.ContextmenuType||(e.ContextmenuType={}))},"./src/types/index.ts":function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n("./src/types/column-mode.type.ts")),r(n("./src/types/sort.type.ts")),r(n("./src/types/sort-direction.type.ts")),r(n("./src/types/selection.type.ts")),r(n("./src/types/click.type.ts")),r(n("./src/types/contextmenu.type.ts"))},"./src/types/selection.type.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});!function(t){t.single="single",t.multi="multi",t.multiClick="multiClick",t.cell="cell",t.checkbox="checkbox"}(e.SelectionType||(e.SelectionType={}))},"./src/types/sort-direction.type.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});!function(t){t.asc="asc",t.desc="desc"}(e.SortDirection||(e.SortDirection={}))},"./src/types/sort.type.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});!function(t){t.single="single",t.multi="multi"}(e.SortType||(e.SortType={}))},"./src/utils/camel-case.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=function(t){return t=t.replace(/[^a-zA-Z0-9 ]/g," "),t=t.replace(/([a-z](?=[A-Z]))/g,"$1 "),t=t.replace(/([^a-zA-Z0-9 ])|^[0-9]+/g,"").trim().toLowerCase(),t=t.replace(/([ 0-9]+)([a-zA-Z])/g,function(t,e,n){return e.trim()+n.toUpperCase()})},e.deCamelCase=function(t){return t.replace(/([A-Z])/g,function(t){return" "+t}).replace(/^./,function(t){return t.toUpperCase()})}},"./src/utils/column-helper.ts":function(t,e,n){"use strict";function r(t){return null===t||void 0===t}Object.defineProperty(e,"__esModule",{value:!0});var i=n("./src/utils/camel-case.ts"),o=n("./src/utils/id.ts"),s=n("./src/utils/column-prop-getters.ts");e.setColumnDefaults=function(t){if(t)for(var e=0,n=t;e<n.length;e++){var a=n[e];a.$$id||(a.$$id=o.id()),r(a.prop)&&a.name&&(a.prop=i.camelCase(a.name)),a.$$valueGetter||(a.$$valueGetter=s.getterForProp(a.prop)),!r(a.prop)&&r(a.name)&&(a.name=i.deCamelCase(String(a.prop))),r(a.prop)&&r(a.name)&&(a.name=""),a.hasOwnProperty("resizeable")||(a.resizeable=!0),a.hasOwnProperty("sortable")||(a.sortable=!0),a.hasOwnProperty("draggable")||(a.draggable=!0),a.hasOwnProperty("canAutoResize")||(a.canAutoResize=!0),a.hasOwnProperty("width")||(a.width=150)}},e.isNullOrUndefined=r,e.translateTemplates=function(t){for(var e=[],n=0,r=t;n<r.length;n++){for(var i=r[n],o={},s=0,a=Object.getOwnPropertyNames(i);s<a.length;s++){var c=a[s];o[c]=i[c]}i.headerTemplate&&(o.headerTemplate=i.headerTemplate),i.cellTemplate&&(o.cellTemplate=i.cellTemplate),e.push(o)}return e}},"./src/utils/column-prop-getters.ts":function(t,e,n){"use strict";function r(){return""}function i(t,e){if(null==t)return"";if(!t||null==e)return t;var n=t[e];return null==n?"":n}function o(t,e){if(null==t)return"";if(!t||!e)return t;var n=t[e];return null==n?"":n}function s(t,e){if(null==t)return"";if(!t||!e)return t;var n=t[e];if(void 0!==n)return n;n=t;var r=e.split(".");if(r.length)for(var i=0;i<r.length;i++)if(void 0===(n=n[r[i]])||null===n)return"";return n}Object.defineProperty(e,"__esModule",{value:!0}),e.emptyStringGetter=r,e.getterForProp=function(t){return null==t?r:"number"==typeof t?i:-1!==t.indexOf(".")?s:o},e.numericIndexGetter=i,e.shallowValueGetter=o,e.deepValueGetter=s},"./src/utils/column.ts":function(t,e,n){"use strict";function r(t){var e={left:[],center:[],right:[]};if(t)for(var n=0,r=t;n<r.length;n++){var i=r[n];i.frozenLeft?e.left.push(i):i.frozenRight?e.right.push(i):e.center.push(i)}return e}function i(t,e){var n=0;if(t)for(var r=0,i=t;r<i.length;r++){var o=i[r],s=e&&o[e]?o[e]:o.width;n+=parseFloat(s)}return n}Object.defineProperty(e,"__esModule",{value:!0}),e.columnsByPin=r,e.columnGroupWidths=function(t,e){return{left:i(t.left),center:i(t.center),right:i(t.right),total:Math.floor(i(e))}},e.columnTotalWidth=i,e.columnsTotalWidth=function(t,e){for(var n=0,r=0,i=t;r<i.length;r++){var o=i[r];n+=e&&o[e]?o[e]:o.width}return n},e.columnsByPinArr=function(t){var e=[],n=r(t);return e.push({type:"left",columns:n.left}),e.push({type:"center",columns:n.center}),e.push({type:"right",columns:n.right}),e},e.allColumnsByPinArr=function(t){var e=[],n=r(t);return e.push({type:"left",columns:n.left}),e.push({type:"center",columns:n.center}),e.push({type:"right",columns:n.right}),e}},"./src/utils/elm-from-point.ts":function(t,e,n){"use strict";function r(t,e){for(var n,r,i,o=[],s=[];(n=document.elementFromPoint(t,e))&&-1===o.indexOf(n)&&null!=n;)o.push(n),s.push({value:n.style.getPropertyValue("pointer-events"),priority:n.style.getPropertyPriority("pointer-events")}),n.style.setProperty("pointer-events","none","important");for(r=s.length;i=s[--r];)o[r].style.setProperty("pointer-events",i.value?i.value:"",i.priority);return o}Object.defineProperty(e,"__esModule",{value:!0}),"undefined"==typeof document||document.elementsFromPoint||(document.elementsFromPoint=r),e.elementsFromPoint=r},"./src/utils/id.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.id=function(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}},"./src/utils/index.ts":function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n("./src/utils/id.ts")),r(n("./src/utils/column.ts")),r(n("./src/utils/column-prop-getters.ts")),r(n("./src/utils/camel-case.ts")),r(n("./src/utils/keys.ts")),r(n("./src/utils/math.ts")),r(n("./src/utils/prefixes.ts")),r(n("./src/utils/selection.ts")),r(n("./src/utils/translate.ts")),r(n("./src/utils/throttle.ts")),r(n("./src/utils/sort.ts")),r(n("./src/utils/row-height-cache.ts")),r(n("./src/utils/column-helper.ts")),r(n("./src/utils/elm-from-point.ts"))},"./src/utils/keys.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});!function(t){t[t.up=38]="up",t[t.down=40]="down",t[t.return=13]="return",t[t.escape=27]="escape",t[t.left=37]="left",t[t.right=39]="right"}(e.Keys||(e.Keys={}))},"./src/utils/math.ts":function(t,e,n){"use strict";function r(t){for(var e=0,n=0,r=t;n<r.length;n++){e+=r[n].flexGrow||0}return e}function i(t,e){void 0===e&&(e=300);for(var n=0,r=0,i=t;r<i.length;r++){n+=i[r].width||e}return n}Object.defineProperty(e,"__esModule",{value:!0});var o=n("./src/utils/column.ts");e.getTotalFlexGrow=r,e.adjustColumnWidths=function(t,e){var n=o.columnsTotalWidth(t),i=r(t),s=o.columnsByPin(t);n!==e&&function(t,e,n){for(var r in t)for(var i=0,o=t[r];i<o.length;i++){var s=o[i];s.canAutoResize?s.width=0:(e-=s.width,n-=s.flexGrow)}var a={},c=e;do{var u=c/n;c=0;for(var r in t)for(var l=0,p=t[r];l<p.length;l++){var s=p[l];if(s.canAutoResize&&!a[s.prop]){var h=s.width+s.flexGrow*u;void 0!==s.minWidth&&h<s.minWidth?(c+=h-s.minWidth,s.width=s.minWidth,a[s.prop]=!0):s.width=h}}}while(0!==c)}(s,e,i)},e.forceFillColumnWidths=function(t,e,n,r,o){void 0===o&&(o=300);for(var s=t.slice(n+1,t.length).filter(function(t){return!1!==t.canAutoResize}),a=0,c=s;a<c.length;a++)(g=c[a]).$$oldWidth||(g.$$oldWidth=g.width);var u=0,l=!1,p=i(t,o),h=e-p,d=[];do{u=h/s.length,l=p>=e;for(var f=0,y=s;f<y.length;f++){var g=y[f];if(l&&r)g.width=g.$$oldWidth||g.width||o;else{var v=(g.width||o)+u;g.minWidth&&v<g.minWidth?(g.width=g.minWidth,d.push(g)):g.maxWidth&&v>g.maxWidth?(g.width=g.maxWidth,d.push(g)):g.width=v}g.width=Math.max(0,g.width)}h=e-(p=i(t)),function(t,e){for(var n=0,r=e;n<r.length;n++){var i=r[n],o=t.indexOf(i);t.splice(o,1)}}(s,d)}while(h>0&&0!==s.length)}},"./src/utils/prefixes.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./src/utils/camel-case.ts"),i={},o="undefined"!=typeof document?document.createElement("div").style:void 0,s=function(){var t="undefined"!=typeof window?window.getComputedStyle(document.documentElement,""):void 0,e="undefined"!=typeof t?Array.prototype.slice.call(t).join("").match(/-(moz|webkit|ms)-/)[1]:void 0,n="undefined"!=typeof e?"WebKit|Moz|MS|O".match(new RegExp("("+e+")","i"))[1]:void 0;return n?{dom:n,lowercase:e,css:"-"+e+"-",js:e[0].toUpperCase()+e.substr(1)}:void 0}();e.getVendorPrefixedName=function(t){var e=r.camelCase(t);return i[e]||(void 0!==s&&void 0!==o[s.css+t]?i[e]=s.css+t:void 0!==o[t]&&(i[e]=t)),i[e]}},"./src/utils/row-height-cache.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.treeArray=[]}return t.prototype.clearCache=function(){this.treeArray=[]},t.prototype.initCache=function(t){var e=t.rows,n=t.rowHeight,r=t.detailRowHeight,i=t.externalVirtual,o=t.rowCount,s=t.rowIndexes,a=t.rowExpansions,c="function"==typeof n,u="function"==typeof r;if(!c&&isNaN(n))throw new Error("Row Height cache initialization failed. Please ensure that 'rowHeight' is a\n valid number or function value: ("+n+") when 'scrollbarV' is enabled.");if(!u&&isNaN(r))throw new Error("Row Height cache initialization failed. Please ensure that 'detailRowHeight' is a\n valid number or function value: ("+r+") when 'scrollbarV' is enabled.");var l=i?o:e.length;this.treeArray=new Array(l);for(var p=0;p<l;++p)this.treeArray[p]=0;for(p=0;p<l;++p){var h=e[p],d=n;c&&(d=n(h));var f=a.get(h);if(h&&1===f)if(u){d+=r(h,s.get(h))}else d+=r;this.update(p,d)}},t.prototype.getRowIndex=function(t){return 0===t?0:this.calcRowIndex(t)},t.prototype.update=function(t,e){if(!this.treeArray.length)throw new Error("Update at index "+t+" with value "+e+" failed:\n Row Height cache not initialized.");var n=this.treeArray.length;for(t|=0;t<n;)this.treeArray[t]+=e,t|=t+1},t.prototype.query=function(t){if(!this.treeArray.length)throw new Error("query at index "+t+" failed: Fenwick tree array not initialized.");var e=0;for(t|=0;t>=0;)e+=this.treeArray[t],t=(t&t+1)-1;return e},t.prototype.queryBetween=function(t,e){return this.query(e)-this.query(t-1)},t.prototype.calcRowIndex=function(t){if(!this.treeArray.length)return 0;for(var e=-1,n=this.treeArray.length,r=Math.pow(2,n.toString(2).length-1);0!==r;r>>=1){var i=e+r;i<n&&t>=this.treeArray[i]&&(t-=this.treeArray[i],e=i)}return e+1},t}();e.RowHeightCache=r},"./src/utils/selection.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.selectRows=function(t,e,n){var r=n(e,t);return r>-1?t.splice(r,1):t.push(e),t},e.selectRowsBetween=function(t,e,n,r,i){for(var o=n<r,s=0;s<e.length;s++){var a=e[s],c={start:0,end:0};c=o?{start:n,end:r}:{start:r,end:n+1},(o&&s<=r&&s>=n||!o&&s>=r&&s<=n)&&s>=c.start&&s<=c.end&&t.push(a)}return t}},"./src/utils/sort.ts":function(t,e,n){"use strict";function r(t,e){if(null!==t&&"undefined"!=typeof t||(t=0),null!==e&&"undefined"!=typeof e||(e=0),t instanceof Date&&e instanceof Date){if(t<e)return-1;if(t>e)return 1}else if(isNaN(parseFloat(t))||!isFinite(t)||isNaN(parseFloat(e))||!isFinite(e)){if(t=String(t),e=String(e),t.toLowerCase()<e.toLowerCase())return-1;if(t.toLowerCase()>e.toLowerCase())return 1}else{if(parseFloat(t)<parseFloat(e))return-1;if(parseFloat(t)>parseFloat(e))return 1}return 0}Object.defineProperty(e,"__esModule",{value:!0});var i=n("./src/types/index.ts"),o=n("./src/utils/column-prop-getters.ts");e.nextSortDir=function(t,e){return t===i.SortType.single?e===i.SortDirection.asc?i.SortDirection.desc:i.SortDirection.asc:e?e===i.SortDirection.asc?i.SortDirection.desc:void i.SortDirection.desc:i.SortDirection.asc},e.orderByComparator=r,e.sortRows=function(t,e,n){if(!t)return[];if(!n||!n.length||!e)return t.slice();var s=t.slice(),a=e.reduce(function(t,e){return e.comparator&&"function"==typeof e.comparator&&(t[e.prop]=e.comparator),t},{}),c=n.map(function(t){var e=t.prop;return{prop:e,dir:t.dir,valueGetter:o.getterForProp(e),compareFn:a[e]||r}});return s.sort(function(t,e){for(var n=0,r=c;n<r.length;n++){var o=r[n],s=o.prop,a=o.valueGetter,u=a(t,s),l=a(e,s),p=o.dir!==i.SortDirection.desc?o.compareFn(u,l,t,e,o.dir):-o.compareFn(u,l,t,e,o.dir);if(0!==p)return p}return 0})}},"./src/utils/throttle.ts":function(t,e,n){"use strict";function r(t,e,n){function r(){c=!1===n.leading?0:+new Date,a=null,s=t.apply(i,o)}n=n||{};var i,o,s,a=null,c=0;return function(){var u=+new Date;c||!1!==n.leading||(c=u);var l=e-(u-c);return i=this,o=arguments,l<=0?(clearTimeout(a),a=null,c=u,s=t.apply(i,o)):a||!1===n.trailing||(a=setTimeout(r,l)),s}}Object.defineProperty(e,"__esModule",{value:!0}),e.throttle=r,e.throttleable=function(t,e){return function(n,i,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,i,{configurable:!0,enumerable:o.enumerable,value:r(o.value,t,e)}),this[i]}}}}},"./src/utils/translate.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./src/utils/prefixes.ts"),i=n("./src/utils/camel-case.ts"),o="undefined"!=typeof window?r.getVendorPrefixedName("transform"):void 0,s="undefined"!=typeof window?r.getVendorPrefixedName("backfaceVisibility"):void 0,a="undefined"!=typeof window?!!r.getVendorPrefixedName("transform"):void 0,c="undefined"!=typeof window?!!r.getVendorPrefixedName("perspective"):void 0,u="undefined"!=typeof window?window.navigator.userAgent:"Chrome",l=/Safari\//.test(u)&&!/Chrome\//.test(u);e.translateXY=function(t,e,n){"undefined"!=typeof o&&a?!l&&c?(t[o]="translate3d("+e+"px, "+n+"px, 0)",t[s]="hidden"):t[i.camelCase(o)]="translate("+e+"px, "+n+"px)":(t.top=n+"px",t.left=e+"px")}},"@angular/common":function(e,n){e.exports=t},"@angular/core":function(t,n){t.exports=e},"@angular/platform-browser":function(t,e){t.exports=n}})})},cPhF:function(t,e,n){"use strict";var r=n("mjx3");e.mergeMap=function(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),r.mergeMap(t,e,n)(this)}},crAx:function(t,e,n){"use strict";function r(t,e){var n=t.document.documentElement,r=Object(O.select)(t).on("dragstart.drag",null);e&&(r.on("click.drag",S,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function i(t,e,n,r,i,o,s,a,c,u){this.target=t,this.type=e,this.subject=n,this.identifier=r,this.active=i,this.x=o,this.y=s,this.dx=a,this.dy=c,this._=u}function o(t,e){var n=a(t,e);if(n.state>A)throw new Error("too late; already scheduled");return n}function s(t,e){var n=a(t,e);if(n.state>k)throw new Error("too late; already started");return n}function a(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function c(t,e,n){var r=t._id;return t.each(function(){var t=s(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return a(t,r).value[e]}}function u(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function l(){return++z}function p(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return G.time=Object(T.a)(),G;return n}function h(){O.event.stopImmediatePropagation()}function d(t){return{type:t}}function f(){return!O.event.button}function y(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function g(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function v(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function m(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function b(){return x(J)}function _(){return x(tt)}function x(t){function e(e){var r=e.property("__brush",a).selectAll(".overlay").data([d("overlay")]);r.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",nt.overlay).merge(r).each(function(){var t=g(this).extent;Object(O.select)(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])}),e.selectAll(".selection").data([d("selection")]).enter().append("rect").attr("class","selection").attr("cursor",nt.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var i=e.selectAll(".handle").data(t.handles,function(t){return t.type});i.exit().remove(),i.enter().append("rect").attr("class",function(t){return"handle handle--"+t.type}).attr("cursor",function(t){return nt[t.type]}),e.each(n).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",s)}function n(){var t=Object(O.select)(this),e=g(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",function(t){return"e"===t.type[t.type.length-1]?e[1][0]-m/2:e[0][0]-m/2}).attr("y",function(t){return"s"===t.type[0]?e[1][1]-m/2:e[0][1]-m/2}).attr("width",function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+m:m}).attr("height",function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+m:m})):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function i(t,e){return t.__brush.emitter||new o(t,e)}function o(t,e){this.that=t,this.args=e,this.state=t.__brush,this.active=0}function s(){function e(){var t=Object(O.mouse)(P);!z||T||j||(Math.abs(t[0]-W[0])>Math.abs(t[1]-W[1])?j=!0:T=!0),W=t,E=!0,K(),o()}function o(){var t;switch(w=W[0]-U[0],S=W[1]-U[1],I){case $:case X:k&&(w=Math.max(L-p,Math.min(B-m,w)),d=p+w,b=m+w),R&&(S=Math.max(V-f,Math.min(H-_,S)),y=f+S,x=_+S);break;case Q:k<0?(w=Math.max(L-p,Math.min(B-p,w)),d=p+w,b=m):k>0&&(w=Math.max(L-m,Math.min(B-m,w)),d=p,b=m+w),R<0?(S=Math.max(V-f,Math.min(H-f,S)),y=f+S,x=_):R>0&&(S=Math.max(V-_,Math.min(H-_,S)),y=f,x=_+S);break;case Z:k&&(d=Math.max(L,Math.min(B,p-w*k)),b=Math.max(L,Math.min(B,m+w*k))),R&&(y=Math.max(V,Math.min(H,f-S*R)),x=Math.max(V,Math.min(H,_+S*R)))}b<d&&(k*=-1,t=p,p=m,m=t,t=d,d=b,b=t,A in rt&&Y.attr("cursor",nt[A=rt[A]])),x<y&&(R*=-1,t=f,f=_,_=t,t=y,y=x,x=t,A in it&&Y.attr("cursor",nt[A=it[A]])),M.selection&&(N=M.selection),T&&(d=N[0][0],b=N[1][0]),j&&(y=N[0][1],x=N[1][1]),N[0][0]===d&&N[0][1]===y&&N[1][0]===b&&N[1][1]===x||(M.selection=[[d,y],[b,x]],n.call(P),G.brush())}function s(){if(h(),O.event.touches){if(O.event.touches.length)return;c&&clearTimeout(c),c=setTimeout(function(){c=null},500),q.on("touchmove.brush touchend.brush touchcancel.brush",null)}else r(O.event.view,E),et.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);q.attr("pointer-events","all"),Y.attr("cursor",nt.overlay),M.selection&&(N=M.selection),v(N)&&(M.selection=null,n.call(P)),G.end()}function a(){switch(O.event.keyCode){case 16:z=k&&R;break;case 18:I===Q&&(k&&(m=b-w*k,p=d+w*k),R&&(_=x-S*R,f=y+S*R),I=Z,o());break;case 32:I!==Q&&I!==Z||(k<0?m=b-w:k>0&&(p=d-w),R<0?_=x-S:R>0&&(f=y-S),I=$,Y.attr("cursor",nt.selection),o());break;default:return}K()}function u(){switch(O.event.keyCode){case 16:z&&(T=j=z=!1,o());break;case 18:I===Z&&(k<0?m=b:k>0&&(p=d),R<0?_=x:R>0&&(f=y),I=Q,o());break;case 32:I===$&&(O.event.altKey?(k&&(m=b-w*k,p=d+w*k),R&&(_=x-S*R,f=y+S*R),I=Z):(k<0?m=b:k>0&&(p=d),R<0?_=x:R>0&&(f=y),I=Q),Y.attr("cursor",nt[A]),o());break;default:return}K()}if(O.event.touches){if(O.event.changedTouches.length<O.event.touches.length)return K()}else if(c)return;if(l.apply(this,arguments)){var p,d,f,y,m,b,_,x,w,S,E,T,j,P=this,A=O.event.target.__data__.type,I="selection"===(O.event.metaKey?A="overlay":A)?X:O.event.altKey?Z:Q,k=t===tt?null:ot[A],R=t===J?null:st[A],M=g(P),D=M.extent,N=M.selection,L=D[0][0],V=D[0][1],B=D[1][0],H=D[1][1],z=k&&R&&O.event.shiftKey,U=Object(O.mouse)(P),W=U,G=i(P,arguments).beforestart();"overlay"===A?M.selection=N=[[p=t===tt?L:U[0],f=t===J?V:U[1]],[m=t===tt?B:p,_=t===J?H:f]]:(p=N[0][0],f=N[0][1],m=N[1][0],_=N[1][1]),d=p,y=f,b=m,x=_;var q=Object(O.select)(P).attr("pointer-events","none"),Y=q.selectAll(".overlay").attr("cursor",nt[A]);if(O.event.touches)q.on("touchmove.brush",e,!0).on("touchend.brush touchcancel.brush",s,!0);else{var et=Object(O.select)(O.event.view).on("keydown.brush",a,!0).on("keyup.brush",u,!0).on("mousemove.brush",e,!0).on("mouseup.brush",s,!0);C(O.event.view)}h(),F(P),n.call(P),G.start()}}function a(){var e=this.__brush||{selection:null};return e.extent=u.apply(this,arguments),e.dim=t,e}var c,u=y,l=f,p=Object(w.a)(e,"start","brush","end"),m=6;return e.move=function(e,r){e.selection?e.on("start.brush",function(){i(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){i(this,arguments).end()}).tween("brush",function(){function e(t){s.selection=1===t&&v(u)?null:l(t),n.call(o),a.brush()}var o=this,s=o.__brush,a=i(o,arguments),c=s.selection,u=t.input("function"==typeof r?r.apply(this,arguments):r,s.extent),l=Object(E.interpolate)(c,u);return c&&u?e:e(1)}):e.each(function(){var e=arguments,o=this.__brush,s=t.input("function"==typeof r?r.apply(this,e):r,o.extent),a=i(this,e).beforestart();F(this),o.selection=null==s||v(s)?null:s,n.call(this),a.start().brush().end()})},o.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(n){Object(O.customEvent)(new Y(e,n,t.output(this.state.selection)),p.apply,p,[n,this.that,this.args])}},e.extent=function(t){return arguments.length?(u="function"==typeof t?t:q([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),e):u},e.filter=function(t){return arguments.length?(l="function"==typeof t?t:q(!!t),e):l},e.handleSize=function(t){return arguments.length?(m=+t,e):m},e.on=function(){var t=p.on.apply(p,arguments);return t===p?e:t},e}Object.defineProperty(e,"__esModule",{value:!0});var w=n("v2el"),O=n("nwz6"),S=function(){O.event.preventDefault(),O.event.stopImmediatePropagation()},C=function(t){var e=t.document.documentElement,n=Object(O.select)(t).on("dragstart.drag",S,!0);"onselectstart"in e?n.on("selectstart.drag",S,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")};i.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var E=n("dskq"),T=n("JVwL"),j=Object(w.a)("start","end","interrupt"),P=[],A=0,I=1,k=2,R=3,M=4,D=5,N=6,L=function(t,e,n,r,i,o){var s=t.__transition;if(s){if(n in s)return}else t.__transition={};!function(t,e,n){function r(c){var u,l,p,h;if(n.state!==I)return o();for(u in a)if((h=a[u]).name===n.name){if(h.state===R)return Object(T.b)(r);h.state===M?(h.state=N,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete a[u]):+u<e&&(h.state=N,h.timer.stop(),delete a[u])}if(Object(T.b)(function(){n.state===R&&(n.state=M,n.timer.restart(i,n.delay,n.time),i(c))}),n.state=k,n.on.call("start",t,t.__data__,n.index,n.group),n.state===k){for(n.state=R,s=new Array(p=n.tween.length),u=0,l=-1;u<p;++u)(h=n.tween[u].value.call(t,t.__data__,n.index,n.group))&&(s[++l]=h);s.length=l+1}}function i(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(o),n.state=D,1),i=-1,a=s.length;++i<a;)s[i].call(null,r);n.state===D&&(n.on.call("end",t,t.__data__,n.index,n.group),o())}function o(){n.state=N,n.timer.stop(),delete a[e];for(var r in a)return;delete t.__transition}var s,a=t.__transition;a[e]=n,n.timer=Object(T.c)(function(t){n.state=I,n.timer.restart(r,n.delay,n.time),n.delay<=t&&r(t-n.delay)},0,n.time)}(t,n,{name:e,index:r,group:i,on:j,tween:P,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:A})},F=function(t,e){var n,r,i,o=t.__transition,s=!0;if(o){e=null==e?null:e+"";for(i in o)(n=o[i]).name===e?(r=n.state>k&&n.state<D,n.state=N,n.timer.stop(),r&&n.on.call("interrupt",t,t.__data__,n.index,n.group),delete o[i]):s=!1;s&&delete t.__transition}},V=n("hW8u"),B=function(t,e){var n;return("number"==typeof e?E.interpolateNumber:e instanceof V.color?E.interpolateRgb:(n=Object(V.color)(e))?(e=n,E.interpolateRgb):E.interpolateString)(t,e)},H=O.selection.prototype.constructor,z=0,U=O.selection.prototype;u.prototype=(function(t){return Object(O.selection)().transition(t)}).prototype={constructor:u,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Object(O.selector)(t));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var c,l,p=r[s],h=p.length,d=o[s]=new Array(h),f=0;f<h;++f)(c=p[f])&&(l=t.call(c,c.__data__,f,p))&&("__data__"in c&&(l.__data__=c.__data__),d[f]=l,L(d[f],e,n,f,d,a(c,n)));return new u(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Object(O.selectorAll)(t));for(var r=this._groups,i=r.length,o=[],s=[],c=0;c<i;++c)for(var l,p=r[c],h=p.length,d=0;d<h;++d)if(l=p[d]){for(var f,y=t.call(l,l.__data__,d,p),g=a(l,n),v=0,m=y.length;v<m;++v)(f=y[v])&&L(f,e,n,v,y,g);o.push(y),s.push(l)}return new u(o,s,e,n)},filter:function(t){"function"!=typeof t&&(t=Object(O.matcher)(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,s=e[i],a=s.length,c=r[i]=[],l=0;l<a;++l)(o=s[l])&&t.call(o,o.__data__,l,s)&&c.push(o);return new u(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var c,l=e[a],p=n[a],h=l.length,d=s[a]=new Array(h),f=0;f<h;++f)(c=l[f]||p[f])&&(d[f]=c);for(;a<r;++a)s[a]=e[a];return new u(s,this._parents,this._name,this._id)},selection:function(){return new H(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=l(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s,c=r[o],p=c.length,h=0;h<p;++h)if(s=c[h]){var d=a(s,e);L(s,t,n,h,c,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new u(r,this._parents,t,n)},call:U.call,nodes:U.nodes,node:U.node,size:U.size,empty:U.empty,each:U.each,on:function(t,e){var n=this._id;return arguments.length<2?a(this.node(),n).on.on(t):this.each(function(t,e,n){var r,i,a=function(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?o:s;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}(n,t,e))},attr:function(t,e){var n=Object(O.namespace)(t),r="transform"===n?E.interpolateTransformSvg:B;return this.attrTween(t,"function"==typeof e?(n.local?function(t,e,n){var r,i,o;return function(){var s,a=n(this);if(null!=a)return(s=this.getAttributeNS(t.space,t.local))===a?null:s===r&&a===i?o:o=e(r=s,i=a);this.removeAttributeNS(t.space,t.local)}}:function(t,e,n){var r,i,o;return function(){var s,a=n(this);if(null!=a)return(s=this.getAttribute(t))===a?null:s===r&&a===i?o:o=e(r=s,i=a);this.removeAttribute(t)}})(n,r,c(this,"attr."+t,e)):null==e?(n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(n):(n.local?function(t,e,n){var r,i;return function(){var o=this.getAttributeNS(t.space,t.local);return o===n?null:o===r?i:i=e(r=o,n)}}:function(t,e,n){var r,i;return function(){var o=this.getAttribute(t);return o===n?null:o===r?i:i=e(r=o,n)}})(n,r,e+""))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=Object(O.namespace)(t);return this.tween(n,(r.local?function(t,e){function n(){var n=this,r=e.apply(n,arguments);return r&&function(e){n.setAttributeNS(t.space,t.local,r(e))}}return n._value=e,n}:function(t,e){function n(){var n=this,r=e.apply(n,arguments);return r&&function(e){n.setAttribute(t,r(e))}}return n._value=e,n})(r,e))},style:function(t,e,n){var r="transform"==(t+="")?E.interpolateTransformCss:B;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var o=Object(O.style)(this,t),s=(this.style.removeProperty(t),Object(O.style)(this,t));return o===s?null:o===n&&s===r?i:i=e(n=o,r=s)}}(t,r)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof e?function(t,e,n){var r,i,o;return function(){var s=Object(O.style)(this,t),a=n(this);return null==a&&(this.style.removeProperty(t),a=Object(O.style)(this,t)),s===a?null:s===r&&a===i?o:o=e(r=s,i=a)}}(t,r,c(this,"style."+t,e)):function(t,e,n){var r,i;return function(){var o=Object(O.style)(this,t);return o===n?null:o===r?i:i=e(r=o,n)}}(t,r,e+""),n)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){function r(){var r=this,i=e.apply(r,arguments);return i&&function(e){r.style.setProperty(t,i(e),n)}}return r._value=e,r}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(c(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=a(this.node(),n).tween,o=0,c=i.length;o<c;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?function(t,e){var n,r;return function(){var i=s(this,t),o=i.tween;if(o!==n)for(var a=0,c=(r=n=o).length;a<c;++a)if(r[a].name===e){(r=r.slice()).splice(a,1);break}i.tween=r}}:function(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=s(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var c={name:e,value:n},u=0,l=i.length;u<l;++u)if(i[u].name===e){i[u]=c;break}u===l&&i.push(c)}o.tween=i}})(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){o(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){o(this,t).delay=e}})(e,t)):a(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){s(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){s(this,t).duration=e}})(e,t)):a(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){s(this,t).ease=e}}(e,t)):a(this.node(),e).ease}};(function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n})(3),function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),Math.PI,function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(1.70158),function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(1.70158),function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158);var W=2*Math.PI,G=(function t(e,n){function r(t){return e*Math.pow(2,10*--t)*Math.sin((i-t)/n)}var i=Math.asin(1/(e=Math.max(1,e)))*(n/=W);return r.amplitude=function(e){return t(e,n*W)},r.period=function(n){return t(e,n)},r}(1,.3),function t(e,n){function r(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+i)/n)}var i=Math.asin(1/(e=Math.max(1,e)))*(n/=W);return r.amplitude=function(e){return t(e,n*W)},r.period=function(n){return t(e,n)},r}(1,.3),function t(e,n){function r(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((i-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((i+t)/n))/2}var i=Math.asin(1/(e=Math.max(1,e)))*(n/=W);return r.amplitude=function(e){return t(e,n*W)},r.period=function(n){return t(e,n)},r}(1,.3),{time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}});O.selection.prototype.interrupt=function(t){return this.each(function(){F(this,t)})},O.selection.prototype.transition=function(t){var e,n;t instanceof u?(e=t._id,t=t._name):(e=l(),(n=G).time=Object(T.a)(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s,a=r[o],c=a.length,h=0;h<c;++h)(s=a[h])&&L(s,t,e,h,a,n||p(s,e));return new u(r,this._parents,t,e)};var q=function(t){return function(){return t}},Y=function(t,e,n){this.target=t,this.type=e,this.selection=n},K=function(){O.event.preventDefault(),O.event.stopImmediatePropagation()},X={name:"drag"},$={name:"space"},Q={name:"handle"},Z={name:"center"},J={name:"x",handles:["e","w"].map(d),input:function(t,e){return t&&[[t[0],e[0][1]],[t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},tt={name:"y",handles:["n","s"].map(d),input:function(t,e){return t&&[[e[0][0],t[0]],[e[1][0],t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},et={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(d),input:function(t){return t},output:function(t){return t}},nt={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},rt={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},it={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},ot={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},st={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1},at=function(){return x(et)};n.d(e,"brush",function(){return at}),n.d(e,"brushX",function(){return b}),n.d(e,"brushY",function(){return _}),n.d(e,"brushSelection",function(){return m})},"cyM/":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+");e.skip=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.total))},t}(),s=function(t){function e(e,n){t.call(this,e),this.total=n,this.count=0}return r(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(i.Subscriber)},d3kC:function(t,e,n){"use strict";var r=n("bKpL"),i=n("bjDG");r.Observable.generate=i.generate},dffx:function(t,e,n){"use strict";function r(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function i(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,i=t.windowCreationInterval,s={action:this,subscription:null},a={subscriber:n,window:n.openWindow(),context:s};s.subscription=r.schedule(o,e,a),this.add(s.subscription),this.schedule(t,i)}function o(t){var e=t.subscriber,n=t.window,r=t.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}var s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=n("rlar"),c=n("IhB/"),u=n("T14+"),l=n("EsGe"),p=n("MicL");e.windowTime=function(t){var e=c.async,n=null,r=Number.POSITIVE_INFINITY;return p.isScheduler(arguments[3])&&(e=arguments[3]),p.isScheduler(arguments[2])?e=arguments[2]:l.isNumeric(arguments[2])&&(r=arguments[2]),p.isScheduler(arguments[1])?e=arguments[1]:l.isNumeric(arguments[1])&&(n=arguments[1]),function(i){return i.lift(new h(t,n,r,e))}};var h=function(){function t(t,e,n,r){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),d=function(t){function e(){t.apply(this,arguments),this._numberOfNextedValues=0}return s(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(a.Subject),f=function(t){function e(e,n,s,a,c){t.call(this,e),this.destination=e,this.windowTimeSpan=n,this.windowCreationInterval=s,this.maxWindowSize=a,this.scheduler=c,this.windows=[];var u=this.openWindow();if(null!==s&&s>=0){var l={subscriber:this,window:u,context:null},p={windowTimeSpan:n,windowCreationInterval:s,subscriber:this,scheduler:c};this.add(c.schedule(o,n,l)),this.add(c.schedule(i,s,p))}else{var h={subscriber:this,window:u,windowTimeSpan:n};this.add(c.schedule(r,n,h))}}return s(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,r=0;r<n;r++){var i=e[r];i.closed||(i.next(t),i.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new d;this.windows.push(t);return this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(u.Subscriber)},dgXD:function(t,e,n){"use strict";var r=n("bKpL"),i=n("7dLC");r.Observable.prototype.race=i.race},dkwD:function(t,e,n){"use strict";var r=n("zijX").root.Symbol;e.rxSubscriber="function"==typeof r&&"function"==typeof r.for?r.for("rxSubscriber"):"@@rxSubscriber",e.$$rxSubscriber=e.rxSubscriber},"dmC+":function(t,e,n){"use strict";var r=n("E9/g"),i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}(),s=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.count=0,this.thisArg=r||this}return i(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(r.a);e.a=function(t,e){return function(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(t,e))}}(t,e)(this)}},dskq:function(t,e,n){"use strict";function r(t,e,n,r,i){var o=t*t,s=o*t;return((1-3*t+3*o-s)*e+(4-6*o+3*s)*n+(1+3*t+3*o-3*s)*r+s*i)/6}function i(t,e){return function(n){return t+n*e}}function o(t,e){var n=e-t;return n?i(t,n>180||n<-180?n-360*Math.round(n/360):n):w(isNaN(t)?e:t)}function s(t){return 1==(t=+t)?a:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):w(isNaN(e)?n:e)}}function a(t,e){var n=e-t;return n?i(t,n):w(isNaN(t)?e:t)}function c(t){return function(e){var n,r,i=e.length,o=new Array(i),s=new Array(i),a=new Array(i);for(n=0;n<i;++n)r=Object(b.rgb)(e[n]),o[n]=r.r||0,s[n]=r.g||0,a[n]=r.b||0;return o=t(o),s=t(s),a=t(a),r.opacity=1,function(t){return r.r=o(t),r.g=s(t),r.b=a(t),r+""}}}function u(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,s){var a=[],c=[];return o=t(o),s=t(s),function(t,r,i,o,s,a){if(t!==i||r!==o){var c=s.push("translate(",null,e,null,n);a.push({i:c-4,x:j(t,i)},{i:c-2,x:j(r,o)})}else(i||o)&&s.push("translate("+i+e+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,a,c),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:j(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,s.rotate,a,c),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:j(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,s.skewX,a,c),function(t,e,n,r,o,s){if(t!==n||e!==r){var a=o.push(i(o)+"scale(",null,",",null,")");s.push({i:a-4,x:j(t,n)},{i:a-2,x:j(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,a,c),o=s=null,function(t){for(var e,n=-1,r=c.length;++n<r;)a[(e=c[n]).i]=e.x(t);return a.join("")}}}function l(t){return((t=Math.exp(t))+1/t)/2}function p(t){return function(e,n){var r=t((e=Object(b.hsl)(e)).h,(n=Object(b.hsl)(n)).h),i=a(e.s,n.s),o=a(e.l,n.l),s=a(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=o(t),e.opacity=s(t),e+""}}}function h(t,e){var n=a((t=Object(b.lab)(t)).l,(e=Object(b.lab)(e)).l),r=a(t.a,e.a),i=a(t.b,e.b),o=a(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=r(e),t.b=i(e),t.opacity=o(e),t+""}}function d(t){return function(e,n){var r=t((e=Object(b.hcl)(e)).h,(n=Object(b.hcl)(n)).h),i=a(e.c,n.c),o=a(e.l,n.l),s=a(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=o(t),e.opacity=s(t),e+""}}}function f(t){return function e(n){function r(e,r){var i=t((e=Object(b.cubehelix)(e)).h,(r=Object(b.cubehelix)(r)).h),o=a(e.s,r.s),s=a(e.l,r.l),c=a(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=o(t),e.l=s(Math.pow(t,n)),e.opacity=c(t),e+""}}return n=+n,r.gamma=e,r}(1)}Object.defineProperty(e,"__esModule",{value:!0});var y,g,v,m,b=n("hW8u"),_=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[i],s=t[i+1],a=i>0?t[i-1]:2*o-s,c=i<e-1?t[i+2]:2*s-o;return r((n-i/e)*e,a,o,s,c)}},x=function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),o=t[(i+e-1)%e],s=t[i%e],a=t[(i+1)%e],c=t[(i+2)%e];return r((n-i/e)*e,o,s,a,c)}},w=function(t){return function(){return t}},O=function t(e){function n(t,e){var n=r((t=Object(b.rgb)(t)).r,(e=Object(b.rgb)(e)).r),i=r(t.g,e.g),o=r(t.b,e.b),s=a(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=i(e),t.b=o(e),t.opacity=s(e),t+""}}var r=s(e);return n.gamma=t,n}(1),S=c(_),C=c(x),E=function(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),s=new Array(r);for(n=0;n<i;++n)o[n]=R(t[n],e[n]);for(;n<r;++n)s[n]=e[n];return function(t){for(n=0;n<i;++n)s[n]=o[n](t);return s}},T=function(t,e){var n=new Date;return t=+t,e-=t,function(r){return n.setTime(t+e*r),n}},j=function(t,e){return t=+t,e-=t,function(n){return t+e*n}},P=function(t,e){var n,r={},i={};null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={});for(n in e)n in t?r[n]=R(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},A=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,I=new RegExp(A.source,"g"),k=function(t,e){var n,r,i,o=A.lastIndex=I.lastIndex=0,s=-1,a=[],c=[];for(t+="",e+="";(n=A.exec(t))&&(r=I.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),a[s]?a[s]+=i:a[++s]=i),(n=n[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,c.push({i:s,x:j(n,r)})),o=I.lastIndex;return o<e.length&&(i=e.slice(o),a[s]?a[s]+=i:a[++s]=i),a.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,r=0;r<e;++r)a[(n=c[r]).i]=n.x(t);return a.join("")})},R=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?w(e):("number"===r?j:"string"===r?(n=Object(b.color)(e))?(e=n,O):k:e instanceof b.color?O:e instanceof Date?T:Array.isArray(e)?E:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?P:j)(t,e)},M=function(t,e){return t=+t,e-=t,function(n){return Math.round(t+e*n)}},D=180/Math.PI,N={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},L=function(t,e,n,r,i,o){var s,a,c;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,c/=a),t*r<e*n&&(t=-t,e=-e,c=-c,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*D,skewX:Math.atan(c)*D,scaleX:s,scaleY:a}},F=u(function(t){return"none"===t?N:(y||(y=document.createElement("DIV"),g=document.documentElement,v=document.defaultView),y.style.transform=t,t=v.getComputedStyle(g.appendChild(y),null).getPropertyValue("transform"),g.removeChild(y),t=t.slice(7,-1).split(","),L(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),V=u(function(t){return null==t?N:(m||(m=document.createElementNS("http://www.w3.org/2000/svg","g")),m.setAttribute("transform",t),(t=m.transform.baseVal.consolidate())?(t=t.matrix,L(t.a,t.b,t.c,t.d,t.e,t.f)):N)},", ",")",")"),B=Math.SQRT2,H=function(t,e){var n,r,i=t[0],o=t[1],s=t[2],a=e[0],c=e[1],u=e[2],p=a-i,h=c-o,d=p*p+h*h;if(d<1e-12)r=Math.log(u/s)/B,n=function(t){return[i+t*p,o+t*h,s*Math.exp(B*t*r)]};else{var f=Math.sqrt(d),y=(u*u-s*s+4*d)/(2*s*2*f),g=(u*u-s*s-4*d)/(2*u*2*f),v=Math.log(Math.sqrt(y*y+1)-y),m=Math.log(Math.sqrt(g*g+1)-g);r=(m-v)/B,n=function(t){var e=t*r,n=l(v),a=s/(2*f)*(n*function(t){return((t=Math.exp(2*t))-1)/(t+1)}(B*e+v)-function(t){return((t=Math.exp(t))-1/t)/2}(v));return[i+a*p,o+a*h,s*n/l(B*e+v)]}}return n.duration=1e3*r,n},z=p(o),U=p(a),W=d(o),G=d(a),q=f(o),Y=f(a),K=function(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n};n.d(e,"interpolate",function(){return R}),n.d(e,"interpolateArray",function(){return E}),n.d(e,"interpolateBasis",function(){return _}),n.d(e,"interpolateBasisClosed",function(){return x}),n.d(e,"interpolateDate",function(){return T}),n.d(e,"interpolateNumber",function(){return j}),n.d(e,"interpolateObject",function(){return P}),n.d(e,"interpolateRound",function(){return M}),n.d(e,"interpolateString",function(){return k}),n.d(e,"interpolateTransformCss",function(){return F}),n.d(e,"interpolateTransformSvg",function(){return V}),n.d(e,"interpolateZoom",function(){return H}),n.d(e,"interpolateRgb",function(){return O}),n.d(e,"interpolateRgbBasis",function(){return S}),n.d(e,"interpolateRgbBasisClosed",function(){return C}),n.d(e,"interpolateHsl",function(){return z}),n.d(e,"interpolateHslLong",function(){return U}),n.d(e,"interpolateLab",function(){return h}),n.d(e,"interpolateHcl",function(){return W}),n.d(e,"interpolateHclLong",function(){return G}),n.d(e,"interpolateCubehelix",function(){return q}),n.d(e,"interpolateCubehelixLong",function(){return Y}),n.d(e,"quantize",function(){return K})},dtBE:function(t,e,n){"use strict";var r=n("wZOE"),i=n("aOKN"),o=n("fcnB"),s=n("7kbP"),a=n("MicL");e.startWith=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){var n=t[t.length-1];a.isScheduler(n)?t.pop():n=null;var c=t.length;return 1===c?s.concat(new i.ScalarObservable(t[0],n),e):c>1?s.concat(new r.ArrayObservable(t,n),e):s.concat(new o.EmptyObservable(n),e)}}},duFl:function(t,e,n){"use strict";function r(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function i(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,r=t.subscriber,i=t.scheduler,s=r.openContext();r.closed||(r.add(s.closeAction=i.schedule(o,n,{subscriber:r,context:s})),this.schedule(t,e))}function o(t){var e=t.subscriber,n=t.context;e.closeContext(n)}var s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=n("IhB/"),c=n("T14+"),u=n("MicL");e.bufferTime=function(t){var e=arguments.length,n=a.async;u.isScheduler(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var r=null;e>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return e>=3&&(i=arguments[2]),function(e){return e.lift(new l(t,r,i,n))}};var l=function(){function t(t,e,n,r){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),p=function(){return function(){this.buffer=[]}}(),h=function(t){function e(e,n,s,a,c){t.call(this,e),this.bufferTimeSpan=n,this.bufferCreationInterval=s,this.maxBufferSize=a,this.scheduler=c,this.contexts=[];var u=this.openContext();if(this.timespanOnly=null==s||s<0,this.timespanOnly){var l={subscriber:this,context:u,bufferTimeSpan:n};this.add(u.closeAction=c.schedule(r,n,l))}else{var p={subscriber:this,context:u},h={bufferTimeSpan:n,bufferCreationInterval:s,subscriber:this,scheduler:c};this.add(u.closeAction=c.schedule(o,n,p)),this.add(c.schedule(i,s,h))}}return s(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,r=n.length,i=0;i<r;i++){var o=n[i],s=o.buffer;s.push(t),s.length==this.maxBufferSize&&(e=o)}e&&this.onBufferFull(e)},e.prototype._error=function(e){this.contexts.length=0,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts,n=this.destination;e.length>0;){var r=e.shift();n.next(r.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan,i={subscriber:this,context:t,bufferTimeSpan:n};this.add(t.closeAction=this.scheduler.schedule(r,n,i))}},e.prototype.openContext=function(){var t=new p;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(c.Subscriber)},dxfK:function(t,e,n){"use strict";var r=n("HBVP");e.distinctUntilKeyChanged=function(t,e){return r.distinctUntilKeyChanged(t,e)(this)}},dy5W:function(t,e,n){"use strict";var r=n("bKpL"),i=n("WSkQ");r.Observable.prototype.last=i.last},dyFf:function(t,e,n){"use strict";var r=n("bKpL"),i=n("PT4i");r.Observable.never=i.never},e7Zl:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e,n,r){t.call(this),this.start=e,this._count=n,this.scheduler=r}return r(e,t),e.create=function(t,n,r){return void 0===t&&(t=0),void 0===n&&(n=0),new e(t,n,r)},e.dispatch=function(t){var e=t.start,n=t.index,r=t.count,i=t.subscriber;n>=r?i.complete():(i.next(e),i.closed||(t.index=n+1,t.start=e+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=0,r=this.start,i=this._count,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{index:n,count:i,start:r,subscriber:t});for(;;){if(n++>=i){t.complete();break}if(t.next(r++),t.closed)break}},e}(n("bKpL").Observable);e.RangeObservable=i},eL9U:function(t,e,n){"use strict";var r=n("wP3s");e.a=function(t,e){return function(t,e){return Object(r.a)(t,e,1)}(t,e)(this)}},eoFs:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("TO51"),i=n("Upor"),o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=function(t){function e(e){t.call(this),this._value=e}return o(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.a;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(r.a)},eqpX:function(t,e,n){"use strict";var r=n("bKpL"),i=n("rDIt");r.Observable.prototype.do=i._do,r.Observable.prototype._do=i._do},etEa:function(t,e,n){"use strict";var r=n("0dhf");e.find=function(t,e){return r.find(t,e)(this)}},etpI:function(t,e,n){"use strict";var r=function(){function t(){this.values={}}return t.prototype.delete=function(t){return this.values[t]=null,!0},t.prototype.set=function(t,e){return this.values[t]=e,this},t.prototype.get=function(t){return this.values[t]},t.prototype.forEach=function(t,e){var n=this.values;for(var r in n)n.hasOwnProperty(r)&&null!==n[r]&&t.call(e,n[r],r)},t.prototype.clear=function(){this.values={}},t}();e.FastMap=r},eumZ:function(t,e,n){"use strict";var r=n("bKpL"),i=n("Xa8F");r.Observable.prototype.windowCount=i.windowCount},"f7+7":function(t,e,n){"use strict";function r(t){var e=this,n=t.source,r=t.subscriber,s=t.context,a=n,p=a.callbackFunc,h=a.args,d=a.scheduler,f=n.subject;if(!f){f=n.subject=new l.AsyncSubject;var y=function t(){for(var n=[],r=0;r<arguments.length;r++)n[r-0]=arguments[r];var s=t.source,a=s.selector,l=s.subject,p=n.shift();if(p)e.add(d.schedule(o,0,{err:p,subject:l}));else if(a){var h=c.tryCatch(a).apply(this,n);h===u.errorObject?e.add(d.schedule(o,0,{err:u.errorObject.e,subject:l})):e.add(d.schedule(i,0,{value:h,subject:l}))}else{var f=n.length<=1?n[0]:n;e.add(d.schedule(i,0,{value:f,subject:l}))}};y.source=n;c.tryCatch(p).apply(s,h.concat(y))===u.errorObject&&e.add(d.schedule(o,0,{err:u.errorObject.e,subject:f}))}e.add(f.subscribe(r))}function i(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function o(t){var e=t.err;t.subject.error(e)}var s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=n("bKpL"),c=n("RdI5"),u=n("XRvs"),l=n("l6Wf"),p=function(t){function e(e,n,r,i,o){t.call(this),this.callbackFunc=e,this.selector=n,this.args=r,this.context=i,this.scheduler=o}return s(e,t),e.create=function(t,n,r){return void 0===n&&(n=void 0),function(){for(var i=[],o=0;o<arguments.length;o++)i[o-0]=arguments[o];return new e(t,n,i,this,r)}},e.prototype._subscribe=function(t){var e=this.callbackFunc,n=this.args,i=this.scheduler,o=this.subject;if(i)return i.schedule(r,0,{source:this,subscriber:t,context:this.context});if(!o){o=this.subject=new l.AsyncSubject;var s=function t(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var r=t.source,i=r.selector,o=r.subject,s=e.shift();if(s)o.error(s);else if(i){var a=c.tryCatch(i).apply(this,e);a===u.errorObject?o.error(u.errorObject.e):(o.next(a),o.complete())}else o.next(e.length<=1?e[0]:e),o.complete()};s.source=this;c.tryCatch(e).apply(this.context,n.concat(s))===u.errorObject&&o.error(u.errorObject.e)}return o.subscribe(t)},e}(a.Observable);e.BoundNodeCallbackObservable=p},f7nC:function(t,e,n){"use strict";var r=n("v1IT");e.bufferWhen=function(t){return r.bufferWhen(t)(this)}},fAeS:function(t,e,n){"use strict";function r(t,e){return{type:7,name:t,definitions:e,options:{}}}function i(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function o(t,e){return void 0===e&&(e=null),{type:3,steps:t,options:e}}function s(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function a(t){return{type:6,styles:t,offset:null}}function c(t,e,n){return{type:0,name:t,styles:e,options:n}}function u(t){return{type:5,steps:t}}function l(t,e,n){return void 0===n&&(n=null),{type:1,expr:t,animation:e,options:n}}function p(t,e){return void 0===e&&(e=null),{type:8,animation:t,options:e}}function h(t){return void 0===t&&(t=null),{type:9,options:t}}function d(t,e){return void 0===e&&(e=null),{type:10,animation:t,options:e}}function f(t,e,n){return void 0===n&&(n=null),{type:11,selector:t,animation:e,options:n}}function y(t,e){return{type:12,timings:t,animation:e}}function g(t){Promise.resolve(null).then(t)}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"AnimationBuilder",function(){return v}),n.d(e,"AnimationFactory",function(){return m}),n.d(e,"AUTO_STYLE",function(){return b}),n.d(e,"animate",function(){return i}),n.d(e,"animateChild",function(){return h}),n.d(e,"animation",function(){return p}),n.d(e,"group",function(){return o}),n.d(e,"keyframes",function(){return u}),n.d(e,"query",function(){return f}),n.d(e,"sequence",function(){return s}),n.d(e,"stagger",function(){return y}),n.d(e,"state",function(){return c}),n.d(e,"style",function(){return a}),n.d(e,"transition",function(){return l}),n.d(e,"trigger",function(){return r}),n.d(e,"useAnimation",function(){return d}),n.d(e,"NoopAnimationPlayer",function(){return _}),n.d(e,"\u0275AnimationGroupPlayer",function(){return x}),n.d(e,"\u0275PRE_STYLE",function(){return w});var v=function(){return function(){}}(),m=function(){return function(){}}(),b="*",_=function(){function t(){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=0}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},t.prototype.triggerMicrotask=function(){var t=this;g(function(){return t._onFinish()})},t.prototype._onStart=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){},t.prototype.setPosition=function(t){},t.prototype.getPosition=function(){return 0},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),x=function(){function t(t){var e=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var n=0,r=0,i=0,o=this.players.length;0==o?g(function(){return e._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++n>=o&&e._onFinish()}),t.onDestroy(function(){++r>=o&&e._onDestroy()}),t.onStart(function(){++i>=o&&e._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this.players.forEach(function(t){return t.init()})},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype._onStart=function(){this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})},t.prototype.pause=function(){this.players.forEach(function(t){return t.pause()})},t.prototype.restart=function(){this.players.forEach(function(t){return t.restart()})},t.prototype.finish=function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._onDestroy()},t.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){var e=t*this.totalTime;this.players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})},t.prototype.getPosition=function(){var t=0;return this.players.forEach(function(e){var n=e.getPosition();t=Math.min(n,t)}),t},t.prototype.beforeDestroy=function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),w="!"},fRUx:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},fV3I:function(t,e,n){"use strict";function r(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=e.length,i=0;i<r;i++){var o=e[i];for(var s in o)o.hasOwnProperty(s)&&(t[s]=o[s])}return t}function i(t){return t.Object.assign||r}var o=n("zijX");e.assignImpl=r,e.getAssign=i,e.assign=i(o.root)},fclq:function(t,e,n){"use strict";e.isFunction=function(t){return"function"==typeof t}},fcnB:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e){t.call(this),this.scheduler=e}return r(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(n("bKpL").Observable);e.EmptyObservable=i},fdVa:function(t,e,n){"use strict";var r=n("t9cH");e.mergeScan=function(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),r.mergeScan(t,e,n)(this)}},fxBd:function(t,e,n){"use strict";var r=n("XvrG");e.takeLast=function(t){return r.takeLast(t)(this)}},g0Kb:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e,n){t.call(this),this.subject=e,this.subscriber=n,this.closed=!1}return r(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(n("xFbG").Subscription);e.SubjectSubscription=i},g1RG:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("yW9Z"),o=n("ktfo");e.catchError=function(t){return function(e){var n=new s(t),r=e.lift(n);return n.caught=r}};var s=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.selector,this.caught))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.selector=n,this.caught=r}return r(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(o.subscribeToResult(this,n))}},e}(i.OuterSubscriber)},g3vg:function(t,e,n){"use strict";var r=n("bKpL"),i=n("Cipy");r.Observable.prototype.shareReplay=i.shareReplay},g9kf:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("rlar"),o=n("RdI5"),s=n("XRvs"),a=n("yW9Z"),c=n("ktfo");e.repeatWhen=function(t){return function(e){return e.lift(new u(t))}};var u=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.notifier,e))},t}(),l=function(t){function e(e,n,r){t.call(this,e),this.notifier=n,this.source=r,this.sourceIsBeingSubscribedTo=!0}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(e){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries){if(this.retriesSubscription.closed)return t.prototype.complete.call(this)}else this.subscribeToRetries();this._unsubscribeAndRecycle(),this.notifications.next()}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype._unsubscribeAndRecycle=function(){var e=this.notifications,n=this.retries,r=this.retriesSubscription;return this.notifications=null,this.retries=null,this.retriesSubscription=null,t.prototype._unsubscribeAndRecycle.call(this),this.notifications=e,this.retries=n,this.retriesSubscription=r,this},e.prototype.subscribeToRetries=function(){this.notifications=new i.Subject;var e=o.tryCatch(this.notifier)(this.notifications);if(e===s.errorObject)return t.prototype.complete.call(this);this.retries=e,this.retriesSubscription=c.subscribeToResult(this,e)},e}(a.OuterSubscriber)},"gb+0":function(t,e,n){"use strict";var r=n("v71/");e.single=function(t){return r.single(t)(this)}},gbhw:function(t,e,n){"use strict";var r=n("bKpL"),i=n("422b");r.Observable.prototype.filter=i.filter},gonN:function(t,e,n){"use strict";var r=n("P02W");e.multicast=function(t,e){return r.multicast(t,e)(this)}},grVA:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},gvep:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("rlar"),o=n("Lhvy"),s=function(t){function e(e){t.call(this),this._value=e}return r(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.ObjectUnsubscribedError;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.Subject);e.BehaviorSubject=s},"h+is":function(t,e,n){"use strict";var r=n("bKpL"),i=n("9tb5");r.Observable.prototype.exhaustMap=i.exhaustMap},hW8u:function(t,e,n){"use strict";function r(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function i(){}function o(t){var e;return t=(t+"").trim().toLowerCase(),(e=A.exec(t))?(e=parseInt(e[1],16),new l(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1)):(e=I.exec(t))?s(parseInt(e[1],16)):(e=k.exec(t))?new l(e[1],e[2],e[3],1):(e=R.exec(t))?new l(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=M.exec(t))?a(e[1],e[2],e[3],e[4]):(e=D.exec(t))?a(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=N.exec(t))?p(e[1],e[2]/100,e[3]/100,1):(e=L.exec(t))?p(e[1],e[2]/100,e[3]/100,e[4]):F.hasOwnProperty(t)?s(F[t]):"transparent"===t?new l(NaN,NaN,NaN,0):null}function s(t){return new l(t>>16&255,t>>8&255,255&t,1)}function a(t,e,n,r){return r<=0&&(t=e=n=NaN),new l(t,e,n,r)}function c(t){return t instanceof i||(t=o(t)),t?(t=t.rgb(),new l(t.r,t.g,t.b,t.opacity)):new l}function u(t,e,n,r){return 1===arguments.length?c(t):new l(t,e,n,null==r?1:r)}function l(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function p(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new d(t,e,n,r)}function h(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof d)return new d(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=o(t)),!t)return new d;if(t instanceof d)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,s=Math.min(e,n,r),a=Math.max(e,n,r),c=NaN,u=a-s,l=(a+s)/2;return u?(c=e===a?(n-r)/u+6*(n<r):n===a?(r-e)/u+2:(e-n)/u+4,u/=l<.5?a+s:2-a-s,c*=60):u=l>0&&l<1?0:c,new d(c,u,l,t.opacity)}(t):new d(t,e,n,null==r?1:r)}function d(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function f(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function y(t){if(t instanceof v)return new v(t.l,t.a,t.b,t.opacity);if(t instanceof O){var e=t.h*V;return new v(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof l||(t=c(t));var n=x(t.r),r=x(t.g),i=x(t.b),o=m((.4124564*n+.3575761*r+.1804375*i)/H),s=m((.2126729*n+.7151522*r+.072175*i)/z);return new v(116*s-16,500*(o-s),200*(s-m((.0193339*n+.119192*r+.9503041*i)/U)),t.opacity)}function g(t,e,n,r){return 1===arguments.length?y(t):new v(t,e,n,null==r?1:r)}function v(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function m(t){return t>Y?Math.pow(t,1/3):t/q+W}function b(t){return t>G?t*t*t:q*(t-W)}function _(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function x(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function w(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof O)return new O(t.h,t.c,t.l,t.opacity);t instanceof v||(t=y(t));var e=Math.atan2(t.b,t.a)*B;return new O(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new O(t,e,n,null==r?1:r)}function O(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function S(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof C)return new C(t.h,t.s,t.l,t.opacity);t instanceof l||(t=c(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(J*r+Q*e-Z*n)/(J+Q-Z),o=r-i,s=($*(n-i)-K*o)/X,a=Math.sqrt(s*s+o*o)/($*i*(1-i)),u=a?Math.atan2(s,o)*B-120:NaN;return new C(u<0?u+360:u,a,i,t.opacity)}(t):new C(t,e,n,null==r?1:r)}function C(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Object.defineProperty(e,"__esModule",{value:!0});var E=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t},T="\\s*([+-]?\\d+)\\s*",j="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",P="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",A=/^#([0-9a-f]{3})$/,I=/^#([0-9a-f]{6})$/,k=new RegExp("^rgb\\("+[T,T,T]+"\\)$"),R=new RegExp("^rgb\\("+[P,P,P]+"\\)$"),M=new RegExp("^rgba\\("+[T,T,T,j]+"\\)$"),D=new RegExp("^rgba\\("+[P,P,P,j]+"\\)$"),N=new RegExp("^hsl\\("+[j,P,P]+"\\)$"),L=new RegExp("^hsla\\("+[j,P,P,j]+"\\)$"),F={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};E(i,o,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),E(l,u,r(i,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new l(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new l(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),E(d,h,r(i,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new d(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new d(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new l(f(t>=240?t-240:t+120,i,r),f(t,i,r),f(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var V=Math.PI/180,B=180/Math.PI,H=.95047,z=1,U=1.08883,W=4/29,G=6/29,q=3*G*G,Y=G*G*G;E(v,g,r(i,{brighter:function(t){return new v(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new v(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return t=z*b(t),e=H*b(e),n=U*b(n),new l(_(3.2404542*e-1.5371385*t-.4985314*n),_(-.969266*e+1.8760108*t+.041556*n),_(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),E(O,w,r(i,{brighter:function(t){return new O(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new O(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return y(this).rgb()}}));var K=-.29227,X=-.90649,$=1.97294,Q=$*X,Z=1.78277*$,J=1.78277*K- -.14861*X;E(C,S,r(i,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new C(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new C(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*V,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new l(255*(e+n*(-.14861*r+1.78277*i)),255*(e+n*(K*r+X*i)),255*(e+n*($*r)),this.opacity)}})),n.d(e,"color",function(){return o}),n.d(e,"rgb",function(){return u}),n.d(e,"hsl",function(){return h}),n.d(e,"lab",function(){return g}),n.d(e,"hcl",function(){return w}),n.d(e,"cubehelix",function(){return S})},"hbO+":function(t,e,n){"use strict";var r=n("bKpL"),i=n("slZm");r.Observable.empty=i.empty},hfga:function(t,e,n){"use strict";var r=n("iyHZ"),i=n("Hd11");e.partition=function(t,e){return function(n){return[i.filter(t,e)(n),i.filter(r.not(t,e))(n)]}}},i4mq:function(t,e,n){"use strict";var r=n("bKpL"),i=n("zbre");r.Observable.prototype.bufferCount=i.bufferCount},iDKa:function(t,e,n){"use strict";var r=n("cyM/");e.skip=function(t){return r.skip(t)(this)}},iH09:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=n("xFbG"),s=n("Xga8"),a=n("p2y2"),c=function(t){function e(e,n){t.call(this,function(t){var e=this,n=e.logSubscribedFrame();return t.add(new o.Subscription(function(){e.logUnsubscribedFrame(n)})),e.scheduleMessages(t),t}),this.messages=e,this.subscriptions=[],this.scheduler=n}return r(e,t),e.prototype.scheduleMessages=function(t){for(var e=this.messages.length,n=0;n<e;n++){var r=this.messages[n];t.add(this.scheduler.schedule(function(t){var e=t.message,n=t.subscriber;e.notification.observe(n)},r.frame,{message:r,subscriber:t}))}},e}(i.Observable);e.ColdObservable=c,a.applyMixins(c,[s.SubscriptionLoggable])},ip92:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+");e.count=function(t){return function(e){return e.lift(new o(t,e))}};var o=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.source))},t}(),s=function(t){function e(e,n,r){t.call(this,e),this.predicate=n,this.source=r,this.count=0,this.index=0}return r(e,t),e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(i.Subscriber)},isYt:function(t,e,n){"use strict";function r(t,e){return t.parent===e.parent?1:2}function i(t,e){return t+e.x}function o(t,e){return Math.max(t,e.y)}function s(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function a(t,e){var n,r,i,o,s,a=new p(t),u=+t.value&&(a.value=t.value),h=[a];for(null==e&&(e=c);n=h.pop();)if(u&&(n.value=+n.data.value),(i=e(n.data))&&(s=i.length))for(n.children=new Array(s),o=s-1;o>=0;--o)h.push(r=n.children[o]=new p(i[o])),r.parent=n,r.depth=n.depth+1;return a.eachBefore(l)}function c(t){return t.children}function u(t){t.data=t.data.data}function l(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function p(t){this.data=t,this.depth=this.height=0,this.parent=null}function h(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function d(t,e){var n=t.r-e.r+1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function f(t,e){for(var n=0;n<e.length;++n)if(!d(t,e[n]))return!1;return!0}function y(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,s=e.y,a=e.r,c=o-n,u=s-r,l=a-i,p=Math.sqrt(c*c+u*u);return{x:(n+o+c/p*l)/2,y:(r+s+u/p*l)/2,r:(p+i+a)/2}}function g(t,e,n){var r=t.x,i=t.y,o=t.r,s=e.x,a=e.y,c=e.r,u=n.x,l=n.y,p=n.r,h=r-s,d=r-u,f=i-a,y=i-l,g=c-o,v=p-o,m=r*r+i*i-o*o,b=m-s*s-a*a+c*c,_=m-u*u-l*l+p*p,x=d*f-h*y,w=(f*_-y*b)/(2*x)-r,O=(y*g-f*v)/x,S=(d*b-h*_)/(2*x)-i,C=(h*v-d*g)/x,E=O*O+C*C-1,T=2*(o+w*O+S*C),j=w*w+S*S-o*o,P=-(E?(T+Math.sqrt(T*T-4*E*j))/(2*E):j/T);return{x:r+w+O*P,y:i+S+C*P,r:P}}function v(t,e,n){var r=t.x,i=t.y,o=e.r+n.r,s=t.r+n.r,a=e.x-r,c=e.y-i,u=a*a+c*c;if(u){var l=.5+((s*=s)-(o*=o))/(2*u),p=Math.sqrt(Math.max(0,2*o*(s+u)-(s-=u)*s-o*o))/(2*u);n.x=r+l*a+p*c,n.y=i+l*c-p*a}else n.x=r+s,n.y=i}function m(t,e){var n=e.x-t.x,r=e.y-t.y,i=t.r+e.r;return i*i-1e-6>n*n+r*r}function b(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function _(t){this._=t,this.next=null,this.previous=null}function x(t){if(!(i=t.length))return 0;var e,n,r,i,o,s,a,c,u,l,p;if(e=t[0],e.x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;v(n,e,r=t[2]),e=new _(e),n=new _(n),r=new _(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(a=3;a<i;++a){v(e._,n._,r=t[a]),r=new _(r),c=n.next,u=e.previous,l=n._.r,p=e._.r;do{if(l<=p){if(m(c._,r._)){n=c,e.next=n,n.previous=e,--a;continue t}l+=c._.r,c=c.next}else{if(m(u._,r._)){(e=u).next=n,n.previous=e,--a;continue t}p+=u._.r,u=u.previous}}while(c!==u.next);for(r.previous=e,r.next=n,e.next=n.previous=n=r,o=b(e);(r=r.next)!==n;)(s=b(r))<o&&(e=r,o=s);n=e.next}for(e=[n._],r=n;(r=r.next)!==n;)e.push(r._);for(r=V(e),a=0;a<i;++a)e=t[a],e.x-=r.x,e.y-=r.y;return r.r}function w(t){if("function"!=typeof t)throw new Error;return t}function O(){return 0}function S(t){return Math.sqrt(t.value)}function C(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function E(t,e){return function(n){if(r=n.children){var r,i,o,s=r.length,a=t(n)*e||0;if(a)for(i=0;i<s;++i)r[i].r+=a;if(o=x(r),a)for(i=0;i<s;++i)r[i].r-=a;n.r=o+a}}}function T(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}function j(t){return t.id}function P(t){return t.parentId}function A(t,e){return t.parent===e.parent?1:2}function I(t){var e=t.children;return e?e[0]:t.t}function k(t){var e=t.children;return e?e[e.length-1]:t.t}function R(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function M(t,e,n){return t.a.parent===e.parent?t.a:n}function D(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function N(t,e,n,r,i,o){for(var s,a,c,u,l,p,h,d,f,y,g,v=[],m=e.children,b=0,_=0,x=m.length,w=e.value;b<x;){c=i-n,u=o-r;do{l=m[_++].value}while(!l&&_<x);for(p=h=l,g=l*l*(y=Math.max(u/c,c/u)/(w*t)),f=Math.max(h/g,g/p);_<x;++_){if(l+=a=m[_].value,a<p&&(p=a),a>h&&(h=a),g=l*l*y,(d=Math.max(h/g,g/p))>f){l-=a;break}f=d}v.push(s={value:l,dice:c<u,children:m.slice(b,_)}),s.dice?W(s,n,r,i,w?r+=u*l/w:o):Q(s,n,r,w?n+=c*l/w:i,o),w-=l,b=_}return v}Object.defineProperty(e,"__esModule",{value:!0});var L=function(){function t(t){var r,c=0;t.eachAfter(function(t){var n=t.children;n?(t.x=function(t){return t.reduce(i,0)/t.length}(n),t.y=function(t){return 1+t.reduce(o,0)}(n)):(t.x=r?c+=e(t,r):0,t.y=0,r=t)});var u=function(t){for(var e;e=t.children;)t=e[0];return t}(t),l=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(t),p=u.x-e(u,l)/2,h=l.x+e(l,u)/2;return t.eachAfter(a?function(e){e.x=(e.x-t.x)*n,e.y=(t.y-e.y)*s}:function(e){e.x=(e.x-p)/(h-p)*n,e.y=(1-(t.y?e.y/t.y:1))*s})}var e=r,n=1,s=1,a=!1;return t.separation=function(n){return arguments.length?(e=n,t):e},t.size=function(e){return arguments.length?(a=!1,n=+e[0],s=+e[1],t):a?null:[n,s]},t.nodeSize=function(e){return arguments.length?(a=!0,n=+e[0],s=+e[1],t):a?[n,s]:null},t};p.prototype=a.prototype={constructor:p,count:function(){return this.eachAfter(s)},each:function(t){var e,n,r,i,o=this,s=[o];do{for(e=s.reverse(),s=[];o=e.pop();)if(t(o),n=o.children)for(r=0,i=n.length;r<i;++r)s.push(n[r])}while(s.length);return this},eachAfter:function(t){for(var e,n,r,i=this,o=[i],s=[];i=o.pop();)if(s.push(i),e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n]);for(;i=s.pop();)t(i);return this},eachBefore:function(t){for(var e,n,r=this,i=[r];r=i.pop();)if(t(r),e=r.children)for(n=e.length-1;n>=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each(function(e){t.push(e)}),t},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return a(this).eachBefore(u)}};var F=Array.prototype.slice,V=function(t){for(var e,n,r=0,i=(t=function(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}(F.call(t))).length,o=[];r<i;)e=t[r],n&&d(n,e)?++r:(n=function(t){switch(t.length){case 1:return function(t){return{x:t.x,y:t.y,r:t.r}}(t[0]);case 2:return y(t[0],t[1]);case 3:return g(t[0],t[1],t[2])}}(o=function(t,e){var n,r;if(f(e,t))return[e];for(n=0;n<t.length;++n)if(h(e,t[n])&&f(y(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(h(y(t[n],t[r]),e)&&h(y(t[n],e),t[r])&&h(y(t[r],e),t[n])&&f(g(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}(o,e)),r=0);return n},B=function(t){return x(t),t},H=function(t){return function(){return t}},z=function(){function t(t){return t.x=n/2,t.y=r/2,e?t.eachBefore(C(e)).eachAfter(E(i,.5)).eachBefore(T(1)):t.eachBefore(C(S)).eachAfter(E(O,1)).eachAfter(E(i,t.r/Math.min(n,r))).eachBefore(T(Math.min(n,r)/(2*t.r))),t}var e=null,n=1,r=1,i=O;return t.radius=function(n){return arguments.length?(e=function(t){return null==t?null:w(t)}(n),t):e},t.size=function(e){return arguments.length?(n=+e[0],r=+e[1],t):[n,r]},t.padding=function(e){return arguments.length?(i="function"==typeof e?e:H(+e),t):i},t},U=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},W=function(t,e,n,r,i){for(var o,s=t.children,a=-1,c=s.length,u=t.value&&(r-e)/t.value;++a<c;)(o=s[a]).y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*u},G=function(){function t(t){var o=t.height+1;return t.x0=t.y0=r,t.x1=e,t.y1=n/o,t.eachBefore(function(t,e){return function(n){n.children&&W(n,n.x0,t*(n.depth+1)/e,n.x1,t*(n.depth+2)/e);var i=n.x0,o=n.y0,s=n.x1-r,a=n.y1-r;s<i&&(i=s=(i+s)/2),a<o&&(o=a=(o+a)/2),n.x0=i,n.y0=o,n.x1=s,n.y1=a}}(n,o)),i&&t.eachBefore(U),t}var e=1,n=1,r=0,i=!1;return t.round=function(e){return arguments.length?(i=!!e,t):i},t.size=function(r){return arguments.length?(e=+r[0],n=+r[1],t):[e,n]},t.padding=function(e){return arguments.length?(r=+e,t):r},t},q="$",Y={depth:-1},K={},X=function(){function t(t){var r,i,o,s,a,c,u,h=t.length,d=new Array(h),f={};for(i=0;i<h;++i)r=t[i],a=d[i]=new p(r),null!=(c=e(r,i,t))&&(c+="")&&(f[u=q+(a.id=c)]=u in f?K:a);for(i=0;i<h;++i)if(a=d[i],null!=(c=n(t[i],i,t))&&(c+="")){if(!(s=f[q+c]))throw new Error("missing: "+c);if(s===K)throw new Error("ambiguous: "+c);s.children?s.children.push(a):s.children=[a],a.parent=s}else{if(o)throw new Error("multiple roots");o=a}if(!o)throw new Error("no root");if(o.parent=Y,o.eachBefore(function(t){t.depth=t.parent.depth+1,--h}).eachBefore(l),o.parent=null,h>0)throw new Error("cycle");return o}var e=j,n=P;return t.id=function(n){return arguments.length?(e=w(n),t):e},t.parentId=function(e){return arguments.length?(n=w(e),t):n},t};D.prototype=Object.create(p.prototype);var $=function(){function t(t){var c=function(t){for(var e,n,r,i,o,s=new D(t,0),a=[s];e=a.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)a.push(n=e.children[i]=new D(r[i],i)),n.parent=e;return(s.parent=new D(null,0)).children=[s],s}(t);if(c.eachAfter(e),c.parent.m=-c.z,c.eachBefore(n),a)t.eachBefore(r);else{var u=t,l=t,p=t;t.eachBefore(function(t){t.x<u.x&&(u=t),t.x>l.x&&(l=t),t.depth>p.depth&&(p=t)});var h=u===l?1:i(u,l)/2,d=h-u.x,f=o/(l.x+h+d),y=s/(p.depth||1);t.eachBefore(function(t){t.x=(t.x+d)*f,t.y=t.depth*y})}return t}function e(t){var e=t.children,n=t.parent.children,r=t.i?n[t.i-1]:null;if(e){!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(t);var o=(e[0].z+e[e.length-1].z)/2;r?(t.z=r.z+i(t._,r._),t.m=t.z-o):t.z=o}else r&&(t.z=r.z+i(t._,r._));t.parent.A=function(t,e,n){if(e){for(var r,o=t,s=t,a=e,c=o.parent.children[0],u=o.m,l=s.m,p=a.m,h=c.m;a=k(a),o=I(o),a&&o;)c=I(c),(s=k(s)).a=t,(r=a.z+p-o.z-u+i(a._,o._))>0&&(R(M(a,t,n),t,r),u+=r,l+=r),p+=a.m,u+=o.m,h+=c.m,l+=s.m;a&&!k(s)&&(s.t=a,s.m+=p-l),o&&!I(c)&&(c.t=o,c.m+=u-h,n=t)}return n}(t,r,t.parent.A||n[0])}function n(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function r(t){t.x*=o,t.y=t.depth*s}var i=A,o=1,s=1,a=null;return t.separation=function(e){return arguments.length?(i=e,t):i},t.size=function(e){return arguments.length?(a=!1,o=+e[0],s=+e[1],t):a?null:[o,s]},t.nodeSize=function(e){return arguments.length?(a=!0,o=+e[0],s=+e[1],t):a?[o,s]:null},t},Q=function(t,e,n,r,i){for(var o,s=t.children,a=-1,c=s.length,u=t.value&&(i-n)/t.value;++a<c;)(o=s[a]).x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*u},Z=(1+Math.sqrt(5))/2,J=function t(e){function n(t,n,r,i,o){N(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(Z),tt=function(){function t(t){return t.x0=t.y0=0,t.x1=i,t.y1=o,t.eachBefore(e),s=[0],r&&t.eachBefore(U),t}function e(t){var e=s[t.depth],r=t.x0+e,i=t.y0+e,o=t.x1-e,h=t.y1-e;o<r&&(r=o=(r+o)/2),h<i&&(i=h=(i+h)/2),t.x0=r,t.y0=i,t.x1=o,t.y1=h,t.children&&(e=s[t.depth+1]=a(t)/2,r+=p(t)-e,i+=c(t)-e,o-=u(t)-e,h-=l(t)-e,o<r&&(r=o=(r+o)/2),h<i&&(i=h=(i+h)/2),n(t,r,i,o,h))}var n=J,r=!1,i=1,o=1,s=[0],a=O,c=O,u=O,l=O,p=O;return t.round=function(e){return arguments.length?(r=!!e,t):r},t.size=function(e){return arguments.length?(i=+e[0],o=+e[1],t):[i,o]},t.tile=function(e){return arguments.length?(n=w(e),t):n},t.padding=function(e){return arguments.length?t.paddingInner(e).paddingOuter(e):t.paddingInner()},t.paddingInner=function(e){return arguments.length?(a="function"==typeof e?e:H(+e),t):a},t.paddingOuter=function(e){return arguments.length?t.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):t.paddingTop()},t.paddingTop=function(e){return arguments.length?(c="function"==typeof e?e:H(+e),t):c},t.paddingRight=function(e){return arguments.length?(u="function"==typeof e?e:H(+e),t):u},t.paddingBottom=function(e){return arguments.length?(l="function"==typeof e?e:H(+e),t):l},t.paddingLeft=function(e){return arguments.length?(p="function"==typeof e?e:H(+e),t):p},t},et=function(t,e,n,r,i){function o(t,e,n,r,i,s,a){if(t>=e-1){var u=c[t];return u.x0=r,u.y0=i,u.x1=s,void(u.y1=a)}for(var p=l[t],h=n/2+p,d=t+1,f=e-1;d<f;){var y=d+f>>>1;l[y]<h?d=y+1:f=y}h-l[d-1]<l[d]-h&&t+1<d&&--d;var g=l[d]-p,v=n-g;if(s-r>a-i){var m=(r*v+s*g)/n;o(t,d,g,r,i,m,a),o(d,e,v,m,i,s,a)}else{var b=(i*v+a*g)/n;o(t,d,g,r,i,s,b),o(d,e,v,r,b,s,a)}}var s,a,c=t.children,u=c.length,l=new Array(u+1);for(l[0]=a=s=0;s<u;++s)l[s+1]=a+=c[s].value;o(0,u,t.value,e,n,r,i)},nt=function(t,e,n,r,i){(1&t.depth?Q:W)(t,e,n,r,i)},rt=function t(e){function n(t,n,r,i,o){if((s=t._squarify)&&s.ratio===e)for(var s,a,c,u,l,p=-1,h=s.length,d=t.value;++p<h;){for(c=(a=s[p]).children,u=a.value=0,l=c.length;u<l;++u)a.value+=c[u].value;a.dice?W(a,n,r,i,r+=(o-r)*a.value/d):Q(a,n,r,n+=(i-n)*a.value/d,o),d-=a.value}else t._squarify=s=N(e,t,n,r,i,o),s.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(Z);n.d(e,"cluster",function(){return L}),n.d(e,"hierarchy",function(){return a}),n.d(e,"pack",function(){return z}),n.d(e,"packSiblings",function(){return B}),n.d(e,"packEnclose",function(){return V}),n.d(e,"partition",function(){return G}),n.d(e,"stratify",function(){return X}),n.d(e,"tree",function(){return $}),n.d(e,"treemap",function(){return tt}),n.d(e,"treemapBinary",function(){return et}),n.d(e,"treemapDice",function(){return W}),n.d(e,"treemapSlice",function(){return Q}),n.d(e,"treemapSliceDice",function(){return nt}),n.d(e,"treemapSquarify",function(){return J}),n.d(e,"treemapResquarify",function(){return rt})},iwys:function(t,e,n){"use strict";var r=n("bKpL"),i=n("1kAr");r.Observable.prototype.mapTo=i.mapTo},iyHZ:function(t,e,n){"use strict";e.not=function(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}},j8LY:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("yW9Z"),o=n("ktfo");e.mergeMapTo=function(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof e&&(n=e,e=null),function(r){return r.lift(new s(t,e,n))}};var s=function(){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.ish=t,this.resultSelector=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.ish,this.resultSelector,this.concurrent))},t}();e.MergeMapToOperator=s;var a=function(t){function e(e,n,r,i){void 0===i&&(i=Number.POSITIVE_INFINITY),t.call(this,e),this.ish=n,this.resultSelector=r,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return r(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.resultSelector,n=this.index++,r=this.ish,i=this.destination;this.active++,this._innerSub(r,i,e,t,n)}else this.buffer.push(t)},e.prototype._innerSub=function(t,e,n,r,i){this.add(o.subscribeToResult(this,t,r,i))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.resultSelector,s=this.destination;o?this.trySelectResult(t,e,n,r):s.next(e)},e.prototype.trySelectResult=function(t,e,n,r){var i,o=this.resultSelector,s=this.destination;try{i=o(t,e,n,r)}catch(t){return void s.error(t)}s.next(i)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(i.OuterSubscriber);e.MergeMapToSubscriber=a},j8RC:function(t,e,n){"use strict";var r=n("bKpL"),i=n("2Rhf");r.Observable.prototype.skipUntil=i.skipUntil},jKKE:function(t,e,n){"use strict";var r=n("ip92");e.count=function(t){return r.count(t)(this)}},jUlM:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=n("fcnB"),s=n("NSJx"),a=n("ktfo"),c=n("yW9Z"),u=function(t){function e(e,n){t.call(this),this.sources=e,this.resultSelector=n}return r(e,t),e.create=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];if(null===t||0===arguments.length)return new o.EmptyObservable;var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&s.isArray(t[0])&&(t=t[0]),0===t.length?new o.EmptyObservable:new e(t,r)},e.prototype._subscribe=function(t){return new l(t,this.sources,this.resultSelector)},e}(i.Observable);e.ForkJoinObservable=u;var l=function(t){function e(e,n,r){t.call(this,e),this.sources=n,this.resultSelector=r,this.completed=0,this.haveValues=0;var i=n.length;this.total=i,this.values=new Array(i);for(var o=0;o<i;o++){var s=n[o],c=a.subscribeToResult(this,s,null,o);c&&(c.outerIndex=o,this.add(c))}}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e,i._hasValue||(i._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this.haveValues,r=this.resultSelector,i=this.values,o=i.length;if(t._hasValue){if(this.completed++,this.completed===o){if(n===o){var s=r?r.apply(this,i):i;e.next(s)}e.complete()}}else e.complete()},e}(c.OuterSubscriber)},jeHV:function(t,e,n){"use strict";function r(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function i(){return new r}function o(t){return t>=1?vt:t<=-1?-vt:Math.asin(t)}function s(t){return t.innerRadius}function a(t){return t.outerRadius}function c(t){return t.startAngle}function u(t){return t.endAngle}function l(t){return t&&t.padAngle}function p(t,e,n,r,i,o,s){var a=t-n,c=e-r,u=(s?o:-o)/ft(a*a+c*c),l=u*c,p=-u*a,h=t+l,d=e+p,f=n+l,y=r+p,g=(h+f)/2,v=(d+y)/2,m=f-h,b=y-d,_=m*m+b*b,x=i-o,w=h*y-f*d,O=(b<0?-1:1)*ft(pt(0,x*x*_-w*w)),S=(w*b-m*O)/_,C=(-w*m-b*O)/_,E=(w*b+m*O)/_,T=(-w*m+b*O)/_,j=S-g,P=C-v,A=E-g,I=T-v;return j*j+P*P>A*A+I*I&&(S=E,C=T),{cx:S,cy:C,x01:-l,y01:-p,x11:S*(i/x-1),y11:C*(i/x-1)}}function h(t){this._context=t}function d(t){return t[0]}function f(t){return t[1]}function y(t){this._curve=t}function g(t){function e(e){return new y(t(e))}return e._curve=t,e}function v(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(g(t)):e()._curve},t}function m(t){return t.source}function b(t){return t.target}function _(t){function e(){var e,a=At.call(arguments),c=n.apply(this,a),u=r.apply(this,a);if(s||(s=e=st()),t(s,+i.apply(this,(a[0]=c,a)),+o.apply(this,a),+i.apply(this,(a[0]=u,a)),+o.apply(this,a)),e)return s=null,e+""||null}var n=m,r=b,i=d,o=f,s=null;return e.source=function(t){return arguments.length?(n=t,e):n},e.target=function(t){return arguments.length?(r=t,e):r},e.x=function(t){return arguments.length?(i="function"==typeof t?t:at(+t),e):i},e.y=function(t){return arguments.length?(o="function"==typeof t?t:at(+t),e):o},e.context=function(t){return arguments.length?(s=null==t?null:t,e):s},e}function x(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function w(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function O(t,e,n,r,i){var o=Pt(e,n),s=Pt(e,n=(n+i)/2),a=Pt(r,n),c=Pt(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(s[0],s[1],a[0],a[1],c[0],c[1])}function S(){return _(x)}function C(){return _(w)}function E(){var t=_(O);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}function T(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function j(t){this._context=t}function P(t){this._context=t}function A(t){this._context=t}function I(t,e){this._basis=new j(t),this._beta=e}function k(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function R(t,e){this._context=t,this._k=(1-e)/6}function M(t,e){this._context=t,this._k=(1-e)/6}function D(t,e){this._context=t,this._k=(1-e)/6}function N(t,e,n){var r=t._x1,i=t._y1,o=t._x2,s=t._y2;if(t._l01_a>yt){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>yt){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*u+t._x1*t._l23_2a-e*t._l12_2a)/l,s=(s*u+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(r,i,o,s,t._x2,t._y2)}function L(t,e){this._context=t,this._alpha=e}function F(t,e){this._context=t,this._alpha=e}function V(t,e){this._context=t,this._alpha=e}function B(t){this._context=t}function H(t){return t<0?-1:1}function z(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),s=(n-t._y1)/(i||r<0&&-0),a=(o*i+s*r)/(r+i);return(H(o)+H(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function U(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function W(t,e,n){var r=t._x0,i=t._y0,o=t._x1,s=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,i+a*e,o-a,s-a*n,o,s)}function G(t){this._context=t}function q(t){this._context=new Y(t)}function Y(t){this._context=t}function K(t){return new G(t)}function X(t){return new q(t)}function $(t){this._context=t}function Q(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),s=new Array(r);for(i[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,s[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,s[e]-=n*s[e-1];for(i[r-1]=s[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(s[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function Z(t,e){this._context=t,this._t=e}function J(t){return new Z(t,0)}function tt(t){return new Z(t,1)}function et(t,e){return t[e]}function nt(t){for(var e,n=0,r=-1,i=t.length;++r<i;)(e=+t[r][1])&&(n+=e);return n}Object.defineProperty(e,"__esModule",{value:!0});var rt=Math.PI,it=2*rt,ot=it-1e-6;r.prototype=i.prototype={constructor:r,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var o=this._x1,s=this._y1,a=n-t,c=r-e,u=o-t,l=s-e,p=u*u+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(p>1e-6)if(Math.abs(l*a-c*u)>1e-6&&i){var h=n-o,d=r-s,f=a*a+c*c,y=h*h+d*d,g=Math.sqrt(f),v=Math.sqrt(p),m=i*Math.tan((rt-Math.acos((f+p-y)/(2*g*v)))/2),b=m/v,_=m/g;Math.abs(b-1)>1e-6&&(this._+="L"+(t+b*u)+","+(e+b*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>u*d)+","+(this._x1=t+_*a)+","+(this._y1=e+_*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,o){t=+t,e=+e;var s=(n=+n)*Math.cos(r),a=n*Math.sin(r),c=t+s,u=e+a,l=1^o,p=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+u:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-u)>1e-6)&&(this._+="L"+c+","+u),n&&(p<0&&(p=p%it+it),p>ot?this._+="A"+n+","+n+",0,1,"+l+","+(t-s)+","+(e-a)+"A"+n+","+n+",0,1,"+l+","+(this._x1=c)+","+(this._y1=u):p>1e-6&&(this._+="A"+n+","+n+",0,"+ +(p>=rt)+","+l+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var st=i,at=function(t){return function(){return t}},ct=Math.abs,ut=Math.atan2,lt=Math.cos,pt=Math.max,ht=Math.min,dt=Math.sin,ft=Math.sqrt,yt=1e-12,gt=Math.PI,vt=gt/2,mt=2*gt,bt=function(){function t(){var t,s,a=+e.apply(this,arguments),c=+n.apply(this,arguments),u=h.apply(this,arguments)-vt,l=d.apply(this,arguments)-vt,g=ct(l-u),v=l>u;if(y||(y=t=st()),c<a&&(s=c,c=a,a=s),c>yt)if(g>mt-yt)y.moveTo(c*lt(u),c*dt(u)),y.arc(0,0,c,u,l,!v),a>yt&&(y.moveTo(a*lt(l),a*dt(l)),y.arc(0,0,a,l,u,v));else{var m,b,_=u,x=l,w=u,O=l,S=g,C=g,E=f.apply(this,arguments)/2,T=E>yt&&(i?+i.apply(this,arguments):ft(a*a+c*c)),j=ht(ct(c-a)/2,+r.apply(this,arguments)),P=j,A=j;if(T>yt){var I=o(T/a*dt(E)),k=o(T/c*dt(E));(S-=2*I)>yt?(I*=v?1:-1,w+=I,O-=I):(S=0,w=O=(u+l)/2),(C-=2*k)>yt?(k*=v?1:-1,_+=k,x-=k):(C=0,_=x=(u+l)/2)}var R=c*lt(_),M=c*dt(_),D=a*lt(O),N=a*dt(O);if(j>yt){var L=c*lt(x),F=c*dt(x),V=a*lt(w),B=a*dt(w);if(g<gt){var H=S>yt?function(t,e,n,r,i,o,s,a){var c=n-t,u=r-e,l=s-i,p=a-o,h=(l*(e-o)-p*(t-i))/(p*c-l*u);return[t+h*c,e+h*u]}(R,M,V,B,L,F,D,N):[D,N],z=R-H[0],U=M-H[1],W=L-H[0],G=F-H[1],q=1/dt(function(t){return t>1?0:t<-1?gt:Math.acos(t)}((z*W+U*G)/(ft(z*z+U*U)*ft(W*W+G*G)))/2),Y=ft(H[0]*H[0]+H[1]*H[1]);P=ht(j,(a-Y)/(q-1)),A=ht(j,(c-Y)/(q+1))}}C>yt?A>yt?(m=p(V,B,R,M,c,A,v),b=p(L,F,D,N,c,A,v),y.moveTo(m.cx+m.x01,m.cy+m.y01),A<j?y.arc(m.cx,m.cy,A,ut(m.y01,m.x01),ut(b.y01,b.x01),!v):(y.arc(m.cx,m.cy,A,ut(m.y01,m.x01),ut(m.y11,m.x11),!v),y.arc(0,0,c,ut(m.cy+m.y11,m.cx+m.x11),ut(b.cy+b.y11,b.cx+b.x11),!v),y.arc(b.cx,b.cy,A,ut(b.y11,b.x11),ut(b.y01,b.x01),!v))):(y.moveTo(R,M),y.arc(0,0,c,_,x,!v)):y.moveTo(R,M),a>yt&&S>yt?P>yt?(m=p(D,N,L,F,a,-P,v),b=p(R,M,V,B,a,-P,v),y.lineTo(m.cx+m.x01,m.cy+m.y01),P<j?y.arc(m.cx,m.cy,P,ut(m.y01,m.x01),ut(b.y01,b.x01),!v):(y.arc(m.cx,m.cy,P,ut(m.y01,m.x01),ut(m.y11,m.x11),!v),y.arc(0,0,a,ut(m.cy+m.y11,m.cx+m.x11),ut(b.cy+b.y11,b.cx+b.x11),v),y.arc(b.cx,b.cy,P,ut(b.y11,b.x11),ut(b.y01,b.x01),!v))):y.arc(0,0,a,O,w,v):y.lineTo(D,N)}else y.moveTo(0,0);if(y.closePath(),t)return y=null,t+""||null}var e=s,n=a,r=at(0),i=null,h=c,d=u,f=l,y=null;return t.centroid=function(){var t=(+e.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+h.apply(this,arguments)+ +d.apply(this,arguments))/2-gt/2;return[lt(r)*t,dt(r)*t]},t.innerRadius=function(n){return arguments.length?(e="function"==typeof n?n:at(+n),t):e},t.outerRadius=function(e){return arguments.length?(n="function"==typeof e?e:at(+e),t):n},t.cornerRadius=function(e){return arguments.length?(r="function"==typeof e?e:at(+e),t):r},t.padRadius=function(e){return arguments.length?(i=null==e?null:"function"==typeof e?e:at(+e),t):i},t.startAngle=function(e){return arguments.length?(h="function"==typeof e?e:at(+e),t):h},t.endAngle=function(e){return arguments.length?(d="function"==typeof e?e:at(+e),t):d},t.padAngle=function(e){return arguments.length?(f="function"==typeof e?e:at(+e),t):f},t.context=function(e){return arguments.length?(y=null==e?null:e,t):y},t};h.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var _t=function(t){return new h(t)},xt=function(){function t(t){var a,c,u,l=t.length,p=!1;for(null==i&&(s=o(u=st())),a=0;a<=l;++a)!(a<l&&r(c=t[a],a,t))===p&&((p=!p)?s.lineStart():s.lineEnd()),p&&s.point(+e(c,a,t),+n(c,a,t));if(u)return s=null,u+""||null}var e=d,n=f,r=at(!0),i=null,o=_t,s=null;return t.x=function(n){return arguments.length?(e="function"==typeof n?n:at(+n),t):e},t.y=function(e){return arguments.length?(n="function"==typeof e?e:at(+e),t):n},t.defined=function(e){return arguments.length?(r="function"==typeof e?e:at(!!e),t):r},t.curve=function(e){return arguments.length?(o=e,null!=i&&(s=o(i)),t):o},t.context=function(e){return arguments.length?(null==e?i=s=null:s=o(i=e),t):i},t},wt=function(){function t(t){var e,l,p,h,d,f=t.length,y=!1,g=new Array(f),v=new Array(f);for(null==a&&(u=c(d=st())),e=0;e<=f;++e){if(!(e<f&&s(h=t[e],e,t))===y)if(y=!y)l=e,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),p=e-1;p>=l;--p)u.point(g[p],v[p]);u.lineEnd(),u.areaEnd()}y&&(g[e]=+n(h,e,t),v[e]=+i(h,e,t),u.point(r?+r(h,e,t):g[e],o?+o(h,e,t):v[e]))}if(d)return u=null,d+""||null}function e(){return xt().defined(s).curve(c).context(a)}var n=d,r=null,i=at(0),o=f,s=at(!0),a=null,c=_t,u=null;return t.x=function(e){return arguments.length?(n="function"==typeof e?e:at(+e),r=null,t):n},t.x0=function(e){return arguments.length?(n="function"==typeof e?e:at(+e),t):n},t.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:at(+e),t):r},t.y=function(e){return arguments.length?(i="function"==typeof e?e:at(+e),o=null,t):i},t.y0=function(e){return arguments.length?(i="function"==typeof e?e:at(+e),t):i},t.y1=function(e){return arguments.length?(o=null==e?null:"function"==typeof e?e:at(+e),t):o},t.lineX0=t.lineY0=function(){return e().x(n).y(i)},t.lineY1=function(){return e().x(n).y(o)},t.lineX1=function(){return e().x(r).y(i)},t.defined=function(e){return arguments.length?(s="function"==typeof e?e:at(!!e),t):s},t.curve=function(e){return arguments.length?(c=e,null!=a&&(u=c(a)),t):c},t.context=function(e){return arguments.length?(null==e?a=u=null:u=c(a=e),t):a},t},Ot=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},St=function(t){return t},Ct=function(){function t(t){var a,c,u,l,p,h=t.length,d=0,f=new Array(h),y=new Array(h),g=+i.apply(this,arguments),v=Math.min(mt,Math.max(-mt,o.apply(this,arguments)-g)),m=Math.min(Math.abs(v)/h,s.apply(this,arguments)),b=m*(v<0?-1:1);for(a=0;a<h;++a)(p=y[f[a]=a]=+e(t[a],a,t))>0&&(d+=p);for(null!=n?f.sort(function(t,e){return n(y[t],y[e])}):null!=r&&f.sort(function(e,n){return r(t[e],t[n])}),a=0,u=d?(v-h*b)/d:0;a<h;++a,g=l)c=f[a],l=g+((p=y[c])>0?p*u:0)+b,y[c]={data:t[c],index:a,value:p,startAngle:g,endAngle:l,padAngle:m};return y}var e=St,n=Ot,r=null,i=at(0),o=at(mt),s=at(0);return t.value=function(n){return arguments.length?(e="function"==typeof n?n:at(+n),t):e},t.sortValues=function(e){return arguments.length?(n=e,r=null,t):n},t.sort=function(e){return arguments.length?(r=e,n=null,t):r},t.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:at(+e),t):i},t.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:at(+e),t):o},t.padAngle=function(e){return arguments.length?(s="function"==typeof e?e:at(+e),t):s},t},Et=g(_t);y.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var Tt=function(){return v(xt().curve(Et))},jt=function(){var t=wt().curve(Et),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return v(n())},delete t.lineX0,t.lineEndAngle=function(){return v(r())},delete t.lineX1,t.lineInnerRadius=function(){return v(i())},delete t.lineY0,t.lineOuterRadius=function(){return v(o())},delete t.lineY1,t.curve=function(t){return arguments.length?e(g(t)):e()._curve},t},Pt=function(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]},At=Array.prototype.slice,It={draw:function(t,e){var n=Math.sqrt(e/gt);t.moveTo(n,0),t.arc(0,0,n,0,mt)}},kt={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},Rt=Math.sqrt(1/3),Mt=2*Rt,Dt={draw:function(t,e){var n=Math.sqrt(e/Mt),r=n*Rt;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},Nt=Math.sin(gt/10)/Math.sin(7*gt/10),Lt=Math.sin(mt/10)*Nt,Ft=-Math.cos(mt/10)*Nt,Vt={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=Lt*n,i=Ft*n;t.moveTo(0,-n),t.lineTo(r,i);for(var o=1;o<5;++o){var s=mt*o/5,a=Math.cos(s),c=Math.sin(s);t.lineTo(c*n,-a*n),t.lineTo(a*r-c*i,c*r+a*i)}t.closePath()}},Bt={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},Ht=Math.sqrt(3),zt={draw:function(t,e){var n=-Math.sqrt(e/(3*Ht));t.moveTo(0,2*n),t.lineTo(-Ht*n,-n),t.lineTo(Ht*n,-n),t.closePath()}},Ut=Math.sqrt(3)/2,Wt=1/Math.sqrt(12),Gt=3*(Wt/2+1),qt={draw:function(t,e){var n=Math.sqrt(e/Gt),r=n/2,i=n*Wt,o=r,s=n*Wt+n,a=-o,c=s;t.moveTo(r,i),t.lineTo(o,s),t.lineTo(a,c),t.lineTo(-.5*r-Ut*i,Ut*r+-.5*i),t.lineTo(-.5*o-Ut*s,Ut*o+-.5*s),t.lineTo(-.5*a-Ut*c,Ut*a+-.5*c),t.lineTo(-.5*r+Ut*i,-.5*i-Ut*r),t.lineTo(-.5*o+Ut*s,-.5*s-Ut*o),t.lineTo(-.5*a+Ut*c,-.5*c-Ut*a),t.closePath()}},Yt=[It,kt,Dt,Bt,Vt,zt,qt],Kt=function(){function t(){var t;if(r||(r=t=st()),e.apply(this,arguments).draw(r,+n.apply(this,arguments)),t)return r=null,t+""||null}var e=at(It),n=at(64),r=null;return t.type=function(n){return arguments.length?(e="function"==typeof n?n:at(n),t):e},t.size=function(e){return arguments.length?(n="function"==typeof e?e:at(+e),t):n},t.context=function(e){return arguments.length?(r=null==e?null:e,t):r},t},Xt=function(){};j.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:T(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:T(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var $t=function(t){return new j(t)};P.prototype={areaStart:Xt,areaEnd:Xt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:T(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Qt=function(t){return new P(t)};A.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:T(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Zt=function(t){return new A(t)};I.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],s=t[n]-i,a=e[n]-o,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*s),this._beta*e[c]+(1-this._beta)*(o+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Jt=function t(e){function n(t){return 1===e?new j(t):new I(t,e)}return n.beta=function(e){return t(+e)},n}(.85);R.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:k(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:k(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var te=function t(e){function n(t){return new R(t,e)}return n.tension=function(e){return t(+e)},n}(0);M.prototype={areaStart:Xt,areaEnd:Xt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:k(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var ee=function t(e){function n(t){return new M(t,e)}return n.tension=function(e){return t(+e)},n}(0);D.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:k(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var ne=function t(e){function n(t){return new D(t,e)}return n.tension=function(e){return t(+e)},n}(0);L.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:N(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var re=function t(e){function n(t){return e?new L(t,e):new R(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);F.prototype={areaStart:Xt,areaEnd:Xt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:N(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var ie=function t(e){function n(t){return e?new F(t,e):new M(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);V.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:N(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var oe=function t(e){function n(t){return e?new V(t,e):new D(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);B.prototype={areaStart:Xt,areaEnd:Xt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};var se=function(t){return new B(t)};G.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:W(this,this._t0,U(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,t!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,W(this,U(this,n=z(this,t,e)),n);break;default:W(this,this._t0,n=z(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(q.prototype=Object.create(G.prototype)).point=function(t,e){G.prototype.point.call(this,e,t)},Y.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},$.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=Q(t),i=Q(e),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[s],e[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var ae=function(t){return new $(t)};Z.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var ce=function(t){return new Z(t,.5)},ue=function(t,e){if((i=t.length)>1)for(var n,r,i,o=1,s=t[e[0]],a=s.length;o<i;++o)for(r=s,s=t[e[o]],n=0;n<a;++n)s[n][1]+=s[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},le=function(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n},pe=function(){function t(t){var o,s,a=e.apply(this,arguments),c=t.length,u=a.length,l=new Array(u);for(o=0;o<u;++o){for(var p,h=a[o],d=l[o]=new Array(c),f=0;f<c;++f)d[f]=p=[0,+i(t[f],h,f,t)],p.data=t[f];d.key=h}for(o=0,s=n(l);o<u;++o)l[s[o]].index=o;return r(l,s),l}var e=at([]),n=le,r=ue,i=et;return t.keys=function(n){return arguments.length?(e="function"==typeof n?n:at(At.call(n)),t):e},t.value=function(e){return arguments.length?(i="function"==typeof e?e:at(+e),t):i},t.order=function(e){return arguments.length?(n=null==e?le:"function"==typeof e?e:at(At.call(e)),t):n},t.offset=function(e){return arguments.length?(r=null==e?ue:e,t):r},t},he=function(t,e){if((r=t.length)>0){for(var n,r,i,o=0,s=t[0].length;o<s;++o){for(i=n=0;n<r;++n)i+=t[n][o][1]||0;if(i)for(n=0;n<r;++n)t[n][o][1]/=i}ue(t,e)}},de=function(t,e){if((a=t.length)>1)for(var n,r,i,o,s,a,c=0,u=t[e[0]].length;c<u;++c)for(o=s=0,n=0;n<a;++n)(i=(r=t[e[n]][c])[1]-r[0])>=0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=s,r[0]=s+=i):r[0]=o},fe=function(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],o=i.length;r<o;++r){for(var s=0,a=0;s<n;++s)a+=t[s][r][1]||0;i[r][1]+=i[r][0]=-a/2}ue(t,e)}},ye=function(t,e){if((i=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,s=1;s<r;++s){for(var a=0,c=0,u=0;a<i;++a){for(var l=t[e[a]],p=l[s][1]||0,h=(p-(l[s-1][1]||0))/2,d=0;d<a;++d){var f=t[e[d]];h+=(f[s][1]||0)-(f[s-1][1]||0)}c+=p,u+=h*p}n[s-1][1]+=n[s-1][0]=o,c&&(o-=u/c)}n[s-1][1]+=n[s-1][0]=o,ue(t,e)}},ge=function(t){var e=t.map(nt);return le(t).sort(function(t,n){return e[t]-e[n]})},ve=function(t){return ge(t).reverse()},me=function(t){var e,n,r=t.length,i=t.map(nt),o=le(t).sort(function(t,e){return i[e]-i[t]}),s=0,a=0,c=[],u=[];for(e=0;e<r;++e)n=o[e],s<a?(s+=i[n],c.push(n)):(a+=i[n],u.push(n));return u.reverse().concat(c)},be=function(t){return le(t).reverse()};n.d(e,"arc",function(){return bt}),n.d(e,"area",function(){return wt}),n.d(e,"line",function(){return xt}),n.d(e,"pie",function(){return Ct}),n.d(e,"areaRadial",function(){return jt}),n.d(e,"radialArea",function(){return jt}),n.d(e,"lineRadial",function(){return Tt}),n.d(e,"radialLine",function(){return Tt}),n.d(e,"pointRadial",function(){return Pt}),n.d(e,"linkHorizontal",function(){return S}),n.d(e,"linkVertical",function(){return C}),n.d(e,"linkRadial",function(){return E}),n.d(e,"symbol",function(){return Kt}),n.d(e,"symbols",function(){return Yt}),n.d(e,"symbolCircle",function(){return It}),n.d(e,"symbolCross",function(){return kt}),n.d(e,"symbolDiamond",function(){return Dt}),n.d(e,"symbolSquare",function(){return Bt}),n.d(e,"symbolStar",function(){return Vt}),n.d(e,"symbolTriangle",function(){return zt}),n.d(e,"symbolWye",function(){return qt}),n.d(e,"curveBasisClosed",function(){return Qt}),n.d(e,"curveBasisOpen",function(){return Zt}),n.d(e,"curveBasis",function(){return $t}),n.d(e,"curveBundle",function(){return Jt}),n.d(e,"curveCardinalClosed",function(){return ee}),n.d(e,"curveCardinalOpen",function(){return ne}),n.d(e,"curveCardinal",function(){return te}),n.d(e,"curveCatmullRomClosed",function(){return ie}),n.d(e,"curveCatmullRomOpen",function(){return oe}),n.d(e,"curveCatmullRom",function(){return re}),n.d(e,"curveLinearClosed",function(){return se}),n.d(e,"curveLinear",function(){return _t}),n.d(e,"curveMonotoneX",function(){return K}),n.d(e,"curveMonotoneY",function(){return X}),n.d(e,"curveNatural",function(){return ae}),n.d(e,"curveStep",function(){return ce}),n.d(e,"curveStepAfter",function(){return tt}),n.d(e,"curveStepBefore",function(){return J}),n.d(e,"stack",function(){return pe}),n.d(e,"stackOffsetExpand",function(){return he}),n.d(e,"stackOffsetDiverging",function(){return de}),n.d(e,"stackOffsetNone",function(){return ue}),n.d(e,"stackOffsetSilhouette",function(){return fe}),n.d(e,"stackOffsetWiggle",function(){return ye}),n.d(e,"stackOrderAscending",function(){return ge}),n.d(e,"stackOrderDescending",function(){return ve}),n.d(e,"stackOrderInsideOut",function(){return me}),n.d(e,"stackOrderNone",function(){return le}),n.d(e,"stackOrderReverse",function(){return be})},jjPq:function(t,e,n){"use strict";var r=n("JwCl");e.max=function(t){var e="function"==typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e};return r.reduce(e)}},jyAw:function(t,e,n){"use strict";var r=n("8H5Y");e.GroupedObservable=r.GroupedObservable,e.groupBy=function(t,e,n,i){return r.groupBy(t,e,n,i)(this)}},k6cv:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+"),o=n("uT+d");e.elementAt=function(t,e){return function(n){return n.lift(new s(t,e))}};var s=function(){function t(t,e){if(this.index=t,this.defaultValue=e,t<0)throw new o.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.index,this.defaultValue))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.index=n,this.defaultValue=r}return r(e,t),e.prototype._next=function(t){0==this.index--&&(this.destination.next(t),this.destination.complete())},e.prototype._complete=function(){var t=this.destination;this.index>=0&&("undefined"!=typeof this.defaultValue?t.next(this.defaultValue):t.error(new o.ArgumentOutOfRangeError)),t.complete()},e}(i.Subscriber)},kAWK:function(t,e,n){"use strict";var r=n("bKpL"),i=n("QsbA");r.Observable.prototype.windowWhen=i.windowWhen},kGJb:function(t,e,n){"use strict";var r=n("2Sjb");e.distinctUntilChanged=function(t,e){return r.distinctUntilChanged(t,e)(this)}},kIyd:function(t,e,n){"use strict";var r=n("bKpL"),i=n("Kuy3");r.Observable.prototype.subscribeOn=i.subscribeOn},kQVV:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){return t&&"number"==typeof t.length}},kWk1:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e,n,r){t.call(this),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}return r(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n("T14+").Subscriber);e.InnerSubscriber=i},ki6Z:function(t,e,n){"use strict";var r=n("weui");e.exhaust=function(){return r.exhaust()(this)}},kkQ5:function(t,e,n){"use strict";var r=n("H1KZ");e.scan=function(t,e){return arguments.length>=2?r.scan(t,e)(this):r.scan(t)(this)}},kqkQ:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("rlar"),o=n("RdI5"),s=n("XRvs"),a=n("yW9Z"),c=n("ktfo");e.windowWhen=function(t){return function(e){return e.lift(new u(t))}};var u=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.closingSelector))},t}(),l=function(t){function e(e,n){t.call(this,e),this.destination=e,this.closingSelector=n,this.openWindow()}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.openWindow(i)},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var e=this.window;e&&e.complete();var n=this.window=new i.Subject;this.destination.next(n);var r=o.tryCatch(this.closingSelector)();if(r===s.errorObject){var a=s.errorObject.e;this.destination.error(a),this.window.error(a)}else this.add(this.closingNotification=c.subscribeToResult(this,r))},e}(a.OuterSubscriber)},ktfo:function(t,e,n){"use strict";var r=n("zijX"),i=n("lhZu"),o=n("mUVF"),s=n("H6Sg"),a=n("bKpL"),c=n("2B7B"),u=n("kWk1"),l=n("DP67");e.subscribeToResult=function(t,e,n,p){var h=new u.InnerSubscriber(t,n,p);if(h.closed)return null;if(e instanceof a.Observable)return e._isScalar?(h.next(e.value),h.complete(),null):(h.syncErrorThrowable=!0,e.subscribe(h));if(i.isArrayLike(e)){for(var d=0,f=e.length;d<f&&!h.closed;d++)h.next(e[d]);h.closed||h.complete()}else{if(o.isPromise(e))return e.then(function(t){h.closed||(h.next(t),h.complete())},function(t){return h.error(t)}).then(null,function(t){r.root.setTimeout(function(){throw t})}),h;if(e&&"function"==typeof e[c.iterator])for(var y=e[c.iterator]();;){var g=y.next();if(g.done){h.complete();break}if(h.next(g.value),h.closed)break}else if(e&&"function"==typeof e[l.observable]){var v=e[l.observable]();if("function"==typeof v.subscribe)return v.subscribe(new u.InnerSubscriber(t,n,p));h.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var m="You provided "+(s.isObject(e)?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";h.error(new TypeError(m))}}return null}},"l/Fw":function(t,e,n){"use strict";var r=n("ZNYO");e.sample=function(t){return r.sample(t)(this)}},"l3Q+":function(t,e,n){"use strict";var r=n("bKpL"),i=n("tBQh");r.Observable.prototype.delay=i.delay},l6Wf:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("rlar"),o=n("xFbG"),s=function(t){function e(){t.apply(this,arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}return r(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),o.Subscription.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),o.Subscription.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(i.Subject);e.AsyncSubject=s},lI2P:function(t,e,n){"use strict";function r(t,e){return[t,e]}function i(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=E?10:o>=T?5:o>=j?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=E?10:o>=T?5:o>=j?2:1)}function o(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=E?i*=10:o>=T?i*=5:o>=j&&(i*=2),e<t?-i:i}function s(t){return t.length}Object.defineProperty(e,"__esModule",{value:!0});var a=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},c=function(t){return 1===t.length&&(t=function(t){return function(e,n){return a(t(e),n)}}(t)),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)>0?i=o:r=o+1}return r}}},u=c(a),l=u.right,p=u.left,h=l,d=function(t,e){null==e&&(e=r);for(var n=0,i=t.length-1,o=t[0],s=new Array(i<0?0:i);n<i;)s[n]=e(o,o=t[++n]);return s},f=function(t,e,n){var i,o,s,a,c=t.length,u=e.length,l=new Array(c*u);for(null==n&&(n=r),i=s=0;i<c;++i)for(a=t[i],o=0;o<u;++o,++s)l[s]=n(a,e[o]);return l},y=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},g=function(t){return null===t?NaN:+t},v=function(t,e){var n,r,i=t.length,o=0,s=-1,a=0,c=0;if(null==e)for(;++s<i;)isNaN(n=g(t[s]))||(c+=(r=n-a)*(n-(a+=r/++o)));else for(;++s<i;)isNaN(n=g(e(t[s],s,t)))||(c+=(r=n-a)*(n-(a+=r/++o)));if(o>1)return c/(o-1)},m=function(t,e){var n=v(t,e);return n?Math.sqrt(n):n},b=function(t,e){var n,r,i,o=t.length,s=-1;if(null==e){for(;++s<o;)if(null!=(n=t[s])&&n>=n)for(r=i=n;++s<o;)null!=(n=t[s])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++s<o;)if(null!=(n=e(t[s],s,t))&&n>=n)for(r=i=n;++s<o;)null!=(n=e(t[s],s,t))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]},_=Array.prototype,x=_.slice,w=_.map,O=function(t){return function(){return t}},S=function(t){return t},C=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o},E=Math.sqrt(50),T=Math.sqrt(10),j=Math.sqrt(2),P=function(t,e,n){var r,o,s,a,c=-1;if(e=+e,t=+t,n=+n,t===e&&n>0)return[t];if((r=e<t)&&(o=t,t=e,e=o),0===(a=i(t,e,n))||!isFinite(a))return[];if(a>0)for(t=Math.ceil(t/a),e=Math.floor(e/a),s=new Array(o=Math.ceil(e-t+1));++c<o;)s[c]=(t+c)*a;else for(t=Math.floor(t*a),e=Math.ceil(e*a),s=new Array(o=Math.ceil(t-e+1));++c<o;)s[c]=(t-c)/a;return r&&s.reverse(),s},A=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},I=function(){function t(t){var i,s,a=t.length,c=new Array(a);for(i=0;i<a;++i)c[i]=e(t[i],i,t);var u=n(c),l=u[0],p=u[1],d=r(c,l,p);Array.isArray(d)||(d=o(l,p,d),d=C(Math.ceil(l/d)*d,Math.floor(p/d)*d,d));for(var f=d.length;d[0]<=l;)d.shift(),--f;for(;d[f-1]>p;)d.pop(),--f;var y,g=new Array(f+1);for(i=0;i<=f;++i)(y=g[i]=[]).x0=i>0?d[i-1]:l,y.x1=i<f?d[i]:p;for(i=0;i<a;++i)l<=(s=c[i])&&s<=p&&g[h(d,s,0,f)].push(t[i]);return g}var e=S,n=b,r=A;return t.value=function(n){return arguments.length?(e="function"==typeof n?n:O(n),t):e},t.domain=function(e){return arguments.length?(n="function"==typeof e?e:O([e[0],e[1]]),t):n},t.thresholds=function(e){return arguments.length?(r="function"==typeof e?e:Array.isArray(e)?O(x.call(e)):O(e),t):r},t},k=function(t,e,n){if(null==n&&(n=g),r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),s=+n(t[o],o,t);return s+(+n(t[o+1],o+1,t)-s)*(i-o)}},R=function(t,e,n){return t=w.call(t,g).sort(a),Math.ceil((n-e)/(2*(k(t,.75)-k(t,.25))*Math.pow(t.length,-1/3)))},M=function(t,e,n){return Math.ceil((n-e)/(3.5*m(t)*Math.pow(t.length,-1/3)))},D=function(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o<i;)if(null!=(n=t[o])&&n>=n)for(r=n;++o<i;)null!=(n=t[o])&&n>r&&(r=n)}else for(;++o<i;)if(null!=(n=e(t[o],o,t))&&n>=n)for(r=n;++o<i;)null!=(n=e(t[o],o,t))&&n>r&&(r=n);return r},N=function(t,e){var n,r=t.length,i=r,o=-1,s=0;if(null==e)for(;++o<r;)isNaN(n=g(t[o]))?--i:s+=n;else for(;++o<r;)isNaN(n=g(e(t[o],o,t)))?--i:s+=n;if(i)return s/i},L=function(t,e){var n,r=t.length,i=-1,o=[];if(null==e)for(;++i<r;)isNaN(n=g(t[i]))||o.push(n);else for(;++i<r;)isNaN(n=g(e(t[i],i,t)))||o.push(n);return k(o.sort(a),.5)},F=function(t){for(var e,n,r,i=t.length,o=-1,s=0;++o<i;)s+=t[o].length;for(n=new Array(s);--i>=0;)for(e=(r=t[i]).length;--e>=0;)n[--s]=r[e];return n},V=function(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o<i;)if(null!=(n=t[o])&&n>=n)for(r=n;++o<i;)null!=(n=t[o])&&r>n&&(r=n)}else for(;++o<i;)if(null!=(n=e(t[o],o,t))&&n>=n)for(r=n;++o<i;)null!=(n=e(t[o],o,t))&&r>n&&(r=n);return r},B=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},H=function(t,e){if(n=t.length){var n,r,i=0,o=0,s=t[o];for(null==e&&(e=a);++i<n;)(e(r=t[i],s)<0||0!==e(s,s))&&(s=r,o=i);return 0===e(s,s)?o:void 0}},z=function(t,e,n){for(var r,i,o=(null==n?t.length:n)-(e=null==e?0:+e);o;)i=Math.random()*o--|0,r=t[o+e],t[o+e]=t[i+e],t[i+e]=r;return t},U=function(t,e){var n,r=t.length,i=-1,o=0;if(null==e)for(;++i<r;)(n=+t[i])&&(o+=n);else for(;++i<r;)(n=+e(t[i],i,t))&&(o+=n);return o},W=function(t){if(!(i=t.length))return[];for(var e=-1,n=V(t,s),r=new Array(n);++e<n;)for(var i,o=-1,a=r[e]=new Array(i);++o<i;)a[o]=t[o][e];return r},G=function(){return W(arguments)};n.d(e,"bisect",function(){return h}),n.d(e,"bisectRight",function(){return l}),n.d(e,"bisectLeft",function(){return p}),n.d(e,"ascending",function(){return a}),n.d(e,"bisector",function(){return c}),n.d(e,"cross",function(){return f}),n.d(e,"descending",function(){return y}),n.d(e,"deviation",function(){return m}),n.d(e,"extent",function(){return b}),n.d(e,"histogram",function(){return I}),n.d(e,"thresholdFreedmanDiaconis",function(){return R}),n.d(e,"thresholdScott",function(){return M}),n.d(e,"thresholdSturges",function(){return A}),n.d(e,"max",function(){return D}),n.d(e,"mean",function(){return N}),n.d(e,"median",function(){return L}),n.d(e,"merge",function(){return F}),n.d(e,"min",function(){return V}),n.d(e,"pairs",function(){return d}),n.d(e,"permute",function(){return B}),n.d(e,"quantile",function(){return k}),n.d(e,"range",function(){return C}),n.d(e,"scan",function(){return H}),n.d(e,"shuffle",function(){return z}),n.d(e,"sum",function(){return U}),n.d(e,"ticks",function(){return P}),n.d(e,"tickIncrement",function(){return i}),n.d(e,"tickStep",function(){return o}),n.d(e,"transpose",function(){return W}),n.d(e,"variance",function(){return v}),n.d(e,"zip",function(){return G})},lI6h:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("E9/g"),i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(){t.apply(this,arguments)}return i(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(r.a)},lc3y:function(t,e,n){"use strict";var r=n("C4ew");e.isEmpty=function(){return r.isEmpty()(this)}},lhZu:function(t,e,n){"use strict";e.isArrayLike=function(t){return t&&"number"==typeof t.length}},ltng:function(t,e,n){"use strict";var r=n("e7Zl");e.range=r.RangeObservable.create},"lx+J":function(t,e,n){"use strict";var r=n("L8VJ");e.map=function(t,e){return r.map(t,e)(this)}},mDYJ:function(t,e,n){"use strict";var r=n("bKpL"),i=n("dxfK");r.Observable.prototype.distinctUntilKeyChanged=i.distinctUntilKeyChanged},mHG6:function(t,e,n){"use strict";e.a=function(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}},mUVF:function(t,e,n){"use strict";e.isPromise=function(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}},mihg:function(t,e,n){"use strict";function r(t){var e=t.value,n=t.subscriber;n.closed||(n.next(e),n.complete())}function i(t){var e=t.err,n=t.subscriber;n.closed||n.error(e)}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n("zijX"),a=function(t){function e(e,n){t.call(this),this.promise=e,this.scheduler=n}return o(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=this.promise,o=this.scheduler;if(null==o)this._isScalar?t.closed||(t.next(this.value),t.complete()):n.then(function(n){e.value=n,e._isScalar=!0,t.closed||(t.next(n),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){s.root.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return o.schedule(r,0,{value:this.value,subscriber:t})}else n.then(function(n){e.value=n,e._isScalar=!0,t.closed||t.add(o.schedule(r,0,{value:n,subscriber:t}))},function(e){t.closed||t.add(o.schedule(i,0,{err:e,subscriber:t}))}).then(null,function(t){s.root.setTimeout(function(){throw t})})},e}(n("bKpL").Observable);e.PromiseObservable=a},mjW1:function(t,e,n){"use strict";var r=n("bKpL"),i=n("rAcl");r.Observable.pairs=i.pairs},mjx3:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("ktfo"),o=n("yW9Z");e.mergeMap=function(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return"number"==typeof e&&(n=e,e=null),r.lift(new s(t,e,n))}};var s=function(){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.resultSelector,this.concurrent))},t}();e.MergeMapOperator=s;var a=function(t){function e(e,n,r,i){void 0===i&&(i=Number.POSITIVE_INFINITY),t.call(this,e),this.project=n,this.resultSelector=r,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return r(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){this.add(i.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.resultSelector?this._notifyResultSelector(t,e,n,r):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,n,r){var i;try{i=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(i)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber);e.MergeMapSubscriber=a},mvrJ:function(t,e,n){"use strict";var r=n("bKpL"),i=n("6JjX");r.Observable.prototype.switch=i._switch,r.Observable.prototype._switch=i._switch},mz3w:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}(n("xIGM").a)},nbhv:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("AP4T"),i=n("8ofh"),o=n("B1iP"),s=n("NePw"),a=n("qLnt"),c=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=Object.prototype.toString,l=function(t){function e(e,n,r,i){t.call(this),this.sourceObj=e,this.eventName=n,this.selector=r,this.options=i}return c(e,t),e.create=function(t,n,r,i){return Object(o.a)(r)&&(i=r,r=void 0),new e(t,n,i,r)},e.setupSubscription=function(t,n,r,i,o){var s;if(function(t){return!!t&&"[object NodeList]"===u.call(t)}(t)||function(t){return!!t&&"[object HTMLCollection]"===u.call(t)}(t))for(var c=0,l=t.length;c<l;c++)e.setupSubscription(t[c],n,r,i,o);else if(function(t){return!!t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var p=t;t.addEventListener(n,r,o),s=function(){return p.removeEventListener(n,r)}}else if(function(t){return!!t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var h=t;t.on(n,r),s=function(){return h.off(n,r)}}else{if(!function(t){return!!t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t))throw new TypeError("Invalid event target");var d=t;t.addListener(n,r),s=function(){return d.removeListener(n,r)}}i.add(new a.a(s))},e.prototype._subscribe=function(t){var n=this.sourceObj,r=this.eventName,o=this.options,a=this.selector;e.setupSubscription(n,r,a?function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var r=Object(i.a)(a).apply(void 0,e);r===s.a?t.error(s.a.e):t.next(r)}:function(e){return t.next(e)},t,o)},e}(r.Observable).create;r.Observable.fromEvent=l},nwz6:function(t,e,n){"use strict";function r(){return new i}function i(){this._="@"+(++D).toString(36)}function o(t,e,n){return t=s(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function s(t,e,n){return function(r){var i=H;H=r;try{t.call(this,this.__data__,e,n)}finally{H=i}}}function a(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function c(t,e,n){var r=B.hasOwnProperty(t.type)?o:s;return function(i,o,s){var a,c=this.__on,u=r(e,o,s);if(c)for(var l=0,p=c.length;l<p;++l)if((a=c[l]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=u,a.capture=n),void(a.value=e);this.addEventListener(t.type,u,n),a={type:t.type,name:t.name,value:e,listener:u,capture:n},c?c.push(a):this.__on=[a]}}function u(t,e,n,r){var i=H;t.sourceEvent=H,H=t;try{return e.apply(n,r)}finally{H=i}}function l(){}function p(){return[]}function h(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function d(t,e,n,r,i,o){for(var s,a=0,c=e.length,u=o.length;a<u;++a)(s=e[a])?(s.__data__=o[a],r[a]=s):n[a]=new h(t,o[a]);for(;a<c;++a)(s=e[a])&&(i[a]=s)}function f(t,e,n,r,i,o,s){var a,c,u,l={},p=e.length,d=o.length,f=new Array(p);for(a=0;a<p;++a)(c=e[a])&&(f[a]=u=K+s.call(c,c.__data__,a,e),u in l?i[a]=c:l[u]=c);for(a=0;a<d;++a)(c=l[u=K+s.call(t,o[a],a,o)])?(r[a]=c,c.__data__=o[a],l[u]=null):n[a]=new h(t,o[a]);for(a=0;a<p;++a)(c=e[a])&&l[f[a]]===c&&(i[a]=c)}function y(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function g(t,e){return t.style.getPropertyValue(e)||X(t).getComputedStyle(t,null).getPropertyValue(e)}function v(t){return t.trim().split(/^|\s+/)}function m(t){return t.classList||new b(t)}function b(t){this._node=t,this._names=v(t.getAttribute("class")||"")}function _(t,e){for(var n=m(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function x(t,e){for(var n=m(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function w(){this.textContent=""}function O(){this.innerHTML=""}function S(){this.nextSibling&&this.parentNode.appendChild(this)}function C(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function E(){return null}function T(){var t=this.parentNode;t&&t.removeChild(this)}function j(t,e,n){var r=X(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function P(t,e){this._groups=t,this._parents=e}function A(){return new P([[document.documentElement]],$)}Object.defineProperty(e,"__esModule",{value:!0});var I="http://www.w3.org/1999/xhtml",k={svg:"http://www.w3.org/2000/svg",xhtml:I,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},R=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),k.hasOwnProperty(e)?{space:k[e],local:t}:t},M=function(t){var e=R(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===I&&e.documentElement.namespaceURI===I?e.createElement(t):e.createElementNS(n,t)}})(e)},D=0;i.prototype=r.prototype={constructor:i,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var N=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var L=document.documentElement;if(!L.matches){var F=L.webkitMatchesSelector||L.msMatchesSelector||L.mozMatchesSelector||L.oMatchesSelector;N=function(t){return function(){return F.call(this,t)}}}}var V=N,B={},H=null;if("undefined"!=typeof document){"onmouseenter"in document.documentElement||(B={mouseenter:"mouseover",mouseleave:"mouseout"})}var z=function(){for(var t,e=H;t=e.sourceEvent;)e=t;return e},U=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]},W=function(t){var e=z();return e.changedTouches&&(e=e.changedTouches[0]),U(t,e)},G=function(t){return null==t?l:function(){return this.querySelector(t)}},q=function(t){return null==t?p:function(){return this.querySelectorAll(t)}},Y=function(t){return new Array(t.length)};h.prototype={constructor:h,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var K="$",X=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};b.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var $=[null];P.prototype=A.prototype={constructor:P,select:function(t){"function"!=typeof t&&(t=G(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,s,a=e[i],c=a.length,u=r[i]=new Array(c),l=0;l<c;++l)(o=a[l])&&(s=t.call(o,o.__data__,l,a))&&("__data__"in o&&(s.__data__=o.__data__),u[l]=s);return new P(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=q(t));for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var s,a=e[o],c=a.length,u=0;u<c;++u)(s=a[u])&&(r.push(t.call(s,s.__data__,u,a)),i.push(s));return new P(r,i)},filter:function(t){"function"!=typeof t&&(t=V(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,s=e[i],a=s.length,c=r[i]=[],u=0;u<a;++u)(o=s[u])&&t.call(o,o.__data__,u,s)&&c.push(o);return new P(r,this._parents)},data:function(t,e){if(!t)return y=new Array(this.size()),u=-1,this.each(function(t){y[++u]=t}),y;var n=e?f:d,r=this._parents,i=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var o=i.length,s=new Array(o),a=new Array(o),c=new Array(o),u=0;u<o;++u){var l=r[u],p=i[u],h=p.length,y=t.call(l,l&&l.__data__,u,r),g=y.length,v=a[u]=new Array(g),m=s[u]=new Array(g);n(l,p,v,m,c[u]=new Array(h),y,e);for(var b,_,x=0,w=0;x<g;++x)if(b=v[x]){for(x>=w&&(w=x+1);!(_=m[w])&&++w<g;);b._next=_||null}}return s=new P(s,r),s._enter=a,s._exit=c,s},enter:function(){return new P(this._enter||this._groups.map(Y),this._parents)},exit:function(){return new P(this._exit||this._groups.map(Y),this._parents)},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var c,u=e[a],l=n[a],p=u.length,h=s[a]=new Array(p),d=0;d<p;++d)(c=u[d]||l[d])&&(h[d]=c);for(;a<r;++a)s[a]=e[a];return new P(s,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,s=i[o];--o>=0;)(r=i[o])&&(s&&s!==r.nextSibling&&s.parentNode.insertBefore(r,s),s=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=y);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s,a=n[o],c=a.length,u=i[o]=new Array(c),l=0;l<c;++l)(s=a[l])&&(u[l]=s);u.sort(e)}return new P(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each(function(){t[++e]=this}),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null},size:function(){var t=0;return this.each(function(){++t}),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],s=0,a=o.length;s<a;++s)(i=o[s])&&t.call(i,i.__data__,s,o);return this},attr:function(t,e){var n=R(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}:function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):g(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=v(t+"");if(arguments.length<2){for(var r=m(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?_:x)(this,t)}}:e?function(t){return function(){_(this,t)}}:function(t){return function(){x(this,t)}})(n,e))},text:function(t){return arguments.length?this.each(null==t?w:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?O:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(S)},lower:function(){return this.each(C)},append:function(t){var e="function"==typeof t?t:M(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:M(t),r=null==e?E:"function"==typeof e?e:G(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(T)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=function(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}(t+""),s=o.length;if(!(arguments.length<2)){for(u=e?c:a,null==n&&(n=!1),r=0;r<s;++r)this.each(u(o[r],e,n));return this}var u=this.node().__on;if(u)for(var l,p=0,h=u.length;p<h;++p)for(r=0,l=u[p];r<s;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return j(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return j(this,t,e)}})(t,e))}};var Q=A,Z=function(t){return"string"==typeof t?new P([[document.querySelector(t)]],[document.documentElement]):new P([[t]],$)},J=function(t){return"string"==typeof t?new P([document.querySelectorAll(t)],[document.documentElement]):new P([null==t?[]:t],$)},tt=function(t,e,n){arguments.length<3&&(n=e,e=z().changedTouches);for(var r,i=0,o=e?e.length:0;i<o;++i)if((r=e[i]).identifier===n)return U(t,r);return null},et=function(t,e){null==e&&(e=z().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n<r;++n)i[n]=U(t,e[n]);return i};n.d(e,"creator",function(){return M}),n.d(e,"local",function(){return r}),n.d(e,"matcher",function(){return V}),n.d(e,"mouse",function(){return W}),n.d(e,"namespace",function(){return R}),n.d(e,"namespaces",function(){return k}),n.d(e,"clientPoint",function(){return U}),n.d(e,"select",function(){return Z}),n.d(e,"selectAll",function(){return J}),n.d(e,"selection",function(){return Q}),n.d(e,"selector",function(){return G}),n.d(e,"selectorAll",function(){return q}),n.d(e,"style",function(){return g}),n.d(e,"touch",function(){return tt}),n.d(e,"touches",function(){return et}),n.d(e,"window",function(){return X}),n.d(e,"event",function(){return H}),n.d(e,"customEvent",function(){return u})},"o/OZ":function(t,e,n){"use strict";var r=n("bKpL"),i=n("ziym");r.Observable.ajax=i.ajax},oOL0:function(t,e,n){"use strict";var r=n("bKpL"),i=n("olrH");r.Observable.prototype.concatMapTo=i.concatMapTo},okgN:function(t,e,n){"use strict";var r=n("bKpL"),i=n("pOTC");r.Observable.if=i._if},olOS:function(t,e,n){"use strict";var r=n("IhB/"),i=n("xK8X");e.timestamp=function(t){return void 0===t&&(t=r.async),i.timestamp(t)(this)}},olrH:function(t,e,n){"use strict";var r=n("0mJJ");e.concatMapTo=function(t,e){return r.concatMapTo(t,e)(this)}},p2y2:function(t,e,n){"use strict";e.applyMixins=function(t,e){for(var n=0,r=e.length;n<r;n++)for(var i=e[n],o=Object.getOwnPropertyNames(i.prototype),s=0,a=o.length;s<a;s++){var c=o[s];t.prototype[c]=i.prototype[c]}}},p3bn:function(t,e,n){"use strict";var r=n("bKpL"),i=n("Obns");r.Observable.prototype.debounce=i.debounce},p3u8:function(t,e,n){"use strict";var r=n("bKpL"),i=n("BbOI");r.Observable.bindNodeCallback=i.bindNodeCallback},p4do:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("yW9Z"),o=n("ktfo");e.withLatestFrom=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){var n;"function"==typeof t[t.length-1]&&(n=t.pop());var r=t;return e.lift(new s(r,n))}};var s=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.observables,this.project))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.observables=n,this.project=r,this.toRespond=[];var i=n.length;this.values=new Array(i);for(var s=0;s<i;s++)this.toRespond.push(s);for(s=0;s<i;s++){var a=n[s];this.add(o.subscribeToResult(this,a,a,s))}}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e;var o=this.toRespond;if(o.length>0){var s=o.indexOf(n);-1!==s&&o.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.OuterSubscriber)},pHO4:function(t,e,n){"use strict";var r=n("bKpL"),i=n("0nG5");r.Observable.prototype.min=i.min},pOTC:function(t,e,n){"use strict";var r=n("S08L");e._if=r.IfObservable.create},pguX:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+");e.dematerialize=function(){return function(t){return t.lift(new o)}};var o=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(e){t.call(this,e)}return r(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(i.Subscriber)},pkLr:function(t,e,n){"use strict";var r=n("bKpL"),i=n("PwNK");r.Observable.prototype.audit=i.audit},ptvE:function(t,e,n){"use strict";var r=n("bKpL"),i=n("ki6Z");r.Observable.prototype.exhaust=i.exhaust},"q+5A":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("EsGe"),o=n("bKpL"),s=n("IhB/"),a=function(t){function e(e,n){void 0===e&&(e=0),void 0===n&&(n=s.async),t.call(this),this.period=e,this.scheduler=n,(!i.isNumeric(e)||e<0)&&(this.period=0),n&&"function"==typeof n.schedule||(this.scheduler=s.async)}return r(e,t),e.create=function(t,n){return void 0===t&&(t=0),void 0===n&&(n=s.async),new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.subscriber,r=t.period;n.next(e),n.closed||(t.index+=1,this.schedule(t,r))},e.prototype._subscribe=function(t){var n=this.period,r=this.scheduler;t.add(r.schedule(e.dispatch,n,{index:0,subscriber:t,period:n}))},e}(o.Observable);e.IntervalObservable=a},q07K:function(t,e,n){"use strict";var r=n("bKpL"),i=n("8Jh8");r.Observable.prototype.takeUntil=i.takeUntil},qHrI:function(t,e,n){"use strict";var r=n("P+lj");e.subscribeOn=function(t,e){return void 0===e&&(e=0),function(n){return n.lift(new i(t,e))}};var i=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new r.SubscribeOnObservable(e,this.delay,this.scheduler).subscribe(t)},t}()},qIlB:function(t,e,n){"use strict";var r=n("zijX"),i=function(){function t(t){if(this.root=t,t.setImmediate&&"function"==typeof t.setImmediate)this.setImmediate=t.setImmediate.bind(t),this.clearImmediate=t.clearImmediate.bind(t);else{this.nextHandle=1,this.tasksByHandle={},this.currentlyRunningATask=!1,this.canUseProcessNextTick()?this.setImmediate=this.createProcessNextTickSetImmediate():this.canUsePostMessage()?this.setImmediate=this.createPostMessageSetImmediate():this.canUseMessageChannel()?this.setImmediate=this.createMessageChannelSetImmediate():this.canUseReadyStateChange()?this.setImmediate=this.createReadyStateChangeSetImmediate():this.setImmediate=this.createSetTimeoutSetImmediate();var e=function t(e){delete t.instance.tasksByHandle[e]};e.instance=this,this.clearImmediate=e}}return t.prototype.identify=function(t){return this.root.Object.prototype.toString.call(t)},t.prototype.canUseProcessNextTick=function(){return"[object process]"===this.identify(this.root.process)},t.prototype.canUseMessageChannel=function(){return Boolean(this.root.MessageChannel)},t.prototype.canUseReadyStateChange=function(){var t=this.root.document;return Boolean(t&&"onreadystatechange"in t.createElement("script"))},t.prototype.canUsePostMessage=function(){var t=this.root;if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}return!1},t.prototype.partiallyApplied=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=function t(){var e=t.handler,n=t.args;"function"==typeof e?e.apply(void 0,n):new Function(""+e)()};return r.handler=t,r.args=e,r},t.prototype.addFromSetImmediateArguments=function(t){return this.tasksByHandle[this.nextHandle]=this.partiallyApplied.apply(void 0,t),this.nextHandle++},t.prototype.createProcessNextTickSetImmediate=function(){var t=function t(){var e=t.instance,n=e.addFromSetImmediateArguments(arguments);return e.root.process.nextTick(e.partiallyApplied(e.runIfPresent,n)),n};return t.instance=this,t},t.prototype.createPostMessageSetImmediate=function(){var t=this.root,e="setImmediate$"+t.Math.random()+"$",n=function n(r){var i=n.instance;r.source===t&&"string"==typeof r.data&&0===r.data.indexOf(e)&&i.runIfPresent(+r.data.slice(e.length))};n.instance=this,t.addEventListener("message",n,!1);var r=function t(){var e=t.messagePrefix,n=t.instance,r=n.addFromSetImmediateArguments(arguments);return n.root.postMessage(e+r,"*"),r};return r.instance=this,r.messagePrefix=e,r},t.prototype.runIfPresent=function(t){if(this.currentlyRunningATask)this.root.setTimeout(this.partiallyApplied(this.runIfPresent,t),0);else{var e=this.tasksByHandle[t];if(e){this.currentlyRunningATask=!0;try{e()}finally{this.clearImmediate(t),this.currentlyRunningATask=!1}}}},t.prototype.createMessageChannelSetImmediate=function(){var t=this,e=new this.root.MessageChannel;e.port1.onmessage=function(e){var n=e.data;t.runIfPresent(n)};var n=function t(){var e=t.channel,n=t.instance.addFromSetImmediateArguments(arguments);return e.port2.postMessage(n),n};return n.channel=e,n.instance=this,n},t.prototype.createReadyStateChangeSetImmediate=function(){var t=function t(){var e=t.instance,n=e.root.document,r=n.documentElement,i=e.addFromSetImmediateArguments(arguments),o=n.createElement("script");return o.onreadystatechange=function(){e.runIfPresent(i),o.onreadystatechange=null,r.removeChild(o),o=null},r.appendChild(o),i};return t.instance=this,t},t.prototype.createSetTimeoutSetImmediate=function(){var t=function t(){var e=t.instance,n=e.addFromSetImmediateArguments(arguments);return e.root.setTimeout(e.partiallyApplied(e.runIfPresent,n),0),n};return t.instance=this,t},t}();e.ImmediateDefinition=i,e.Immediate=new i(r.root)},qLnt:function(t,e,n){"use strict";function r(t){return t.reduce(function(t,e){return t.concat(e instanceof l?e.errors:e)},[])}var i=n("1j/l"),o=n("NGRF"),s=n("B1iP"),a=n("8ofh"),c=n("NePw"),u=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},l=function(t){function e(e){t.call(this),this.errors=e;var n=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return u(e,t),e}(Error);n.d(e,"a",function(){return p});var p=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,u=this._parents,p=this._unsubscribe,h=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var d=-1,f=u?u.length:0;n;)n.remove(this),n=++d<f&&u[d]||null;if(Object(s.a)(p)){Object(a.a)(p).call(this)===c.a&&(e=!0,t=t||(c.a.e instanceof l?r(c.a.e.errors):[c.a.e]))}if(Object(i.a)(h))for(d=-1,f=h.length;++d<f;){var y=h[d];if(Object(o.a)(y)){if(Object(a.a)(y.unsubscribe).call(y)===c.a){e=!0,t=t||[];var g=c.a.e;g instanceof l?t=t.concat(r(g.errors)):t.push(g)}}}if(e)throw new l(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;e&&e!==t?n?-1===n.indexOf(t)&&n.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}()},qNQE:function(t,e,n){"use strict";var r=n("bKpL"),i=n("Txt5");r.Observable.prototype.auditTime=i.auditTime},qanz:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("rlar"),o=n("RdI5"),s=n("XRvs"),a=n("yW9Z"),c=n("ktfo");e.retryWhen=function(t){return function(e){return e.lift(new u(t,e))}};var u=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.notifier,this.source))},t}(),l=function(t){function e(e,n,r){t.call(this,e),this.notifier=n,this.source=r}return r(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,r=this.retries,a=this.retriesSubscription;if(r)this.errors=null,this.retriesSubscription=null;else{if(n=new i.Subject,(r=o.tryCatch(this.notifier)(n))===s.errorObject)return t.prototype.error.call(this,s.errorObject.e);a=c.subscribeToResult(this,r)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=a,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.errors,s=this.retries,a=this.retriesSubscription;this.errors=null,this.retries=null,this.retriesSubscription=null,this._unsubscribeAndRecycle(),this.errors=o,this.retries=s,this.retriesSubscription=a,this.source.subscribe(this)},e}(a.OuterSubscriber)},qbt9:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("IhB/"),o=n("6jp4"),s=n("T14+"),a=n("0L2s");e.timeout=function(t,e){void 0===e&&(e=i.async);var n=o.isDate(t),r=n?+t-e.now():Math.abs(t);return function(t){return t.lift(new c(r,n,e,new a.TimeoutError))}};var c=function(){function t(t,e,n,r){this.waitFor=t,this.absoluteTimeout=e,this.scheduler=n,this.errorInstance=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.absoluteTimeout,this.waitFor,this.scheduler,this.errorInstance))},t}(),u=function(t){function e(e,n,r,i,o){t.call(this,e),this.absoluteTimeout=n,this.waitFor=r,this.scheduler=i,this.errorInstance=o,this.action=null,this.scheduleTimeout()}return r(e,t),e.dispatchTimeout=function(t){t.error(t.errorInstance)},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.errorInstance=null},e}(s.Subscriber)},qfkx:function(t,e,n){"use strict";var r=n("l6Wf"),i=n("P02W");e.publishLast=function(){return function(t){return i.multicast(new r.AsyncSubject)(t)}}},qgI0:function(t,e,n){"use strict";var r=n("xIGM"),i=n("kQVV"),o=n("mHG6"),s=n("NGRF"),a=n("AP4T"),c=n("X3fp"),u=n("E9/g"),l=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},p=function(t){function e(e,n,r){t.call(this),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}return l(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(u.a),h=n("mz3w");e.a=function(t,e,n,u){var l=new p(t,n,u);if(l.closed)return null;if(e instanceof a.Observable)return e._isScalar?(l.next(e.value),l.complete(),null):(l.syncErrorThrowable=!0,e.subscribe(l));if(Object(i.a)(e)){for(var d=0,f=e.length;d<f&&!l.closed;d++)l.next(e[d]);l.closed||l.complete()}else{if(Object(o.a)(e))return e.then(function(t){l.closed||(l.next(t),l.complete())},function(t){return l.error(t)}).then(null,function(t){r.a.setTimeout(function(){throw t})}),l;if(e&&"function"==typeof e[c.a])for(var y=e[c.a]();;){var g=y.next();if(g.done){l.complete();break}if(l.next(g.value),l.closed)break}else if(e&&"function"==typeof e[h.a]){var v=e[h.a]();if("function"==typeof v.subscribe)return v.subscribe(new p(t,n,u));l.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var m="You provided "+(Object(s.a)(e)?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";l.error(new TypeError(m))}}return null}},"qm+V":function(t,e,n){"use strict";var r=n("bKpL"),i=n("CE6k");r.Observable.prototype.share=i.share},"r+/7":function(t,e,n){"use strict";var r=n("bKpL"),i=n("THYR");r.Observable.prototype.every=i.every},r2Rd:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("Io40"),o=n("IqVs"),s=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n}return r(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=o.AnimationFrame.requestAnimationFrame(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(o.AnimationFrame.cancelAnimationFrame(n),e.scheduled=void 0)},e}(i.AsyncAction);e.AnimationFrameAction=s},r6G9:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("OWbQ"),o=n("NSJx"),s=n("yW9Z"),a=n("ktfo");e.onErrorResumeNext=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 1===t.length&&o.isArray(t[0])&&(t=t[0]),function(e){return e.lift(new c(t))}},e.onErrorResumeNextStatic=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=null;return 1===t.length&&o.isArray(t[0])&&(t=t[0]),n=t.shift(),new i.FromObservable(n,null).lift(new c(t))};var c=function(){function t(t){this.nextSources=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.nextSources))},t}(),u=function(t){function e(e,n){t.call(this,e),this.destination=e,this.nextSources=n}return r(e,t),e.prototype.notifyError=function(t,e){this.subscribeToNextSource()},e.prototype.notifyComplete=function(t){this.subscribeToNextSource()},e.prototype._error=function(t){this.subscribeToNextSource()},e.prototype._complete=function(){this.subscribeToNextSource()},e.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();t?this.add(a.subscribeToResult(this,t)):this.destination.complete()},e}(s.OuterSubscriber)},rAcl:function(t,e,n){"use strict";var r=n("Qv0T");e.pairs=r.PairsObservable.create},rDIt:function(t,e,n){"use strict";var r=n("4HZJ");e._do=function(t,e,n){return r.tap(t,e,n)(this)}},rP7Y:function(t,e){function n(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(r),o=r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"});return[n].concat(o).concat([i]).join("\n")}return[n].join("\n")}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=n(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var s=t[i];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},rf3q:function(t,e,n){"use strict";var r=n("T14+"),i=n("dkwD"),o=n("LiYJ");e.toSubscriber=function(t,e,n){if(t){if(t instanceof r.Subscriber)return t;if(t[i.rxSubscriber])return t[i.rxSubscriber]()}return t||e||n?new r.Subscriber(t,e,n):new r.Subscriber(o.empty)}},rhfi:function(t,e,n){"use strict";var r=n("TupL"),i=n("Yuqz");e.switchAll=function(){return r.switchMap(i.identity)}},rlar:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=n("T14+"),s=n("xFbG"),a=n("Lhvy"),c=n("g0Kb"),u=n("dkwD"),l=function(t){function e(e){t.call(this,e),this.destination=e}return r(e,t),e}(o.Subscriber);e.SubjectSubscriber=l;var p=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return r(e,t),e.prototype[u.rxSubscriber]=function(){return new l(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new c.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new i.Observable;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(i.Observable);e.Subject=p;var h=function(t){function e(e,n){t.call(this),this.destination=e,this.source=n}return r(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):s.Subscription.EMPTY},e}(p);e.AnonymousSubject=h},rp90:function(t,e,n){"use strict";var r=n("bKpL"),i=n("IOeT");r.Observable.prototype.combineAll=i.combineAll},ruZE:function(t,e,n){"use strict";var r=n("r2Rd"),i=n("7Obz");e.animationFrame=new i.AnimationFrameScheduler(r.AnimationFrameAction)},s6AU:function(t,e,n){"use strict";var r=n("5x23");e.takeWhile=function(t){return r.takeWhile(t)(this)}},sLwK:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("EsGe"),o=n("bKpL"),s=n("IhB/"),a=n("MicL"),c=n("6jp4"),u=function(t){function e(e,n,r){void 0===e&&(e=0),t.call(this),this.period=-1,this.dueTime=0,i.isNumeric(n)?this.period=Number(n)<1?1:Number(n):a.isScheduler(n)&&(r=n),a.isScheduler(r)||(r=s.async),this.scheduler=r,this.dueTime=c.isDate(e)?+e-this.scheduler.now():e}return r(e,t),e.create=function(t,n,r){return void 0===t&&(t=0),new e(t,n,r)},e.dispatch=function(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}},e.prototype._subscribe=function(t){var n=this.period,r=this.dueTime;return this.scheduler.schedule(e.dispatch,r,{index:0,period:n,subscriber:t})},e}(o.Observable);e.TimerObservable=u},sSYo:function(t,e,n){"use strict";var r=n("bKpL"),i=n("Fi2k");r.Observable.prototype.windowToggle=i.windowToggle},saEi:function(t,e,n){"use strict";var r=n("ASfG");e.publishBehavior=function(t){return r.publishBehavior(t)(this)}},slZm:function(t,e,n){"use strict";var r=n("fcnB");e.empty=r.EmptyObservable.create},srZQ:function(t,e,n){"use strict";var r=n("bKpL"),i=n("RvTY");r.Observable.prototype.flatMapTo=i.mergeMapTo,r.Observable.prototype.mergeMapTo=i.mergeMapTo},svCP:function(t,e,n){"use strict";var r=n("bKpL"),i=n("tl8U");r.Observable.prototype.retryWhen=i.retryWhen},t8nJ:function(t,e,n){"use strict";var r=n("bKpL"),i=n("8pdA");r.Observable.prototype.bufferTime=i.bufferTime},t9cH:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("RdI5"),o=n("XRvs"),s=n("ktfo"),a=n("yW9Z");e.mergeScan=function(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return r.lift(new c(t,e,n))}};var c=function(){function t(t,e,n){this.accumulator=t,this.seed=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.accumulator,this.seed,this.concurrent))},t}();e.MergeScanOperator=c;var u=function(t){function e(e,n,r,i){t.call(this,e),this.accumulator=n,this.acc=r,this.concurrent=i,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return r(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,n=i.tryCatch(this.accumulator)(this.acc,t),r=this.destination;n===o.errorObject?r.error(o.errorObject.e):(this.active++,this._innerSub(n,t,e))}else this.buffer.push(t)},e.prototype._innerSub=function(t,e,n){this.add(s.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.destination;this.acc=e,this.hasValue=!0,o.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(a.OuterSubscriber);e.MergeScanSubscriber=u},tAjV:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("RdI5"),o=n("XRvs"),s=n("yW9Z"),a=n("ktfo");e.audit=function(t){return function(e){return e.lift(new c(t))}};var c=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.durationSelector))},t}(),u=function(t){function e(e,n){t.call(this,e),this.durationSelector=n,this.hasValue=!1}return r(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=i.tryCatch(this.durationSelector)(t);if(e===o.errorObject)this.destination.error(o.errorObject.e);else{var n=a.subscribeToResult(this,e);n.closed?this.clearThrottle():this.add(this.throttled=n)}}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(t,e,n,r){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(s.OuterSubscriber)},tBQh:function(t,e,n){"use strict";var r=n("IhB/"),i=n("EUVd");e.delay=function(t,e){return void 0===e&&(e=r.async),i.delay(t,e)(this)}},tcot:function(t,e,n){"use strict";var r=n("bKpL"),i=n("F/7+");r.Observable.zip=i.zip},tl8U:function(t,e,n){"use strict";var r=n("qanz");e.retryWhen=function(t){return r.retryWhen(t)(this)}},tpuU:function(t,e,n){"use strict";var r=n("IkMW");e.zipAll=function(t){return r.zipAll(t)(this)}},tvxM:function(t,e,n){"use strict";n.d(e,"a",function(){return Ar});var r=n("LMZF"),i=n("Un6q"),o=n("TO51"),s=n("0nO6"),a=n("eoFs"),c=(n("GQSG"),n("fAeS")),u=n("RyBE"),l=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),p=function(){return function(){}}();p.decorators=[{type:r.Directive,args:[{selector:"clr-icon"}]}],p.ctorParameters=function(){return[]};var h=[p],d=function(){return function(){}}();d.decorators=[{type:r.NgModule,args:[{imports:[i.CommonModule],declarations:[h],exports:[h]}]}],d.ctorParameters=function(){return[]};var f={};f.RIGHT_CENTER=0,f.RIGHT_TOP=1,f.RIGHT_BOTTOM=2,f.TOP_CENTER=3,f.TOP_RIGHT=4,f.TOP_LEFT=5,f.BOTTOM_CENTER=6,f.BOTTOM_RIGHT=7,f.BOTTOM_LEFT=8,f.LEFT_CENTER=9,f.LEFT_TOP=10,f.LEFT_BOTTOM=11,f[f.RIGHT_CENTER]="RIGHT_CENTER",f[f.RIGHT_TOP]="RIGHT_TOP",f[f.RIGHT_BOTTOM]="RIGHT_BOTTOM",f[f.TOP_CENTER]="TOP_CENTER",f[f.TOP_RIGHT]="TOP_RIGHT",f[f.TOP_LEFT]="TOP_LEFT",f[f.BOTTOM_CENTER]="BOTTOM_CENTER",f[f.BOTTOM_RIGHT]="BOTTOM_RIGHT",f[f.BOTTOM_LEFT]="BOTTOM_LEFT",f[f.LEFT_CENTER]="LEFT_CENTER",f[f.LEFT_TOP]="LEFT_TOP",f[f.LEFT_BOTTOM]="LEFT_BOTTOM";var y="absolute",g=function(){function t(t){this.element=t,this.scrollableElements=[],this.boundOnScrollListener=this.emitScrollEvent.bind(this),t.style.position=y,t.style.top=0,t.style.bottom="auto",t.style.left=0,t.style.right="auto"}return t.prototype.anchor=function(t,e,n,r){var i=void 0===r?{}:r,o=i.offsetX,s=void 0===o?0:o,a=i.offsetY,c=void 0===a?0:a,u=i.useAnchorParent,l=void 0!==u&&u;this.addScrollEventListeners(t),l&&(t=t.parentNode),t.style.position="static";var p=t.getBoundingClientRect(),h=this.element.getBoundingClientRect(),d=p.left-h.left+s,y=p.top-h.top+c;switch(e){case f.LEFT_TOP:case f.TOP_LEFT:break;case f.TOP_CENTER:d+=p.width/2;break;case f.TOP_RIGHT:case f.RIGHT_TOP:d+=p.width;break;case f.LEFT_BOTTOM:case f.BOTTOM_LEFT:y+=p.height;break;case f.BOTTOM_CENTER:y+=p.height,d+=p.width/2;break;case f.BOTTOM_RIGHT:case f.RIGHT_BOTTOM:y+=p.height,d+=p.width;break;case f.LEFT_CENTER:y+=p.height/2;break;case f.RIGHT_CENTER:y+=p.height/2,d+=p.width}switch(n){case f.LEFT_TOP:case f.TOP_LEFT:break;case f.TOP_CENTER:d-=h.width/2;break;case f.TOP_RIGHT:case f.RIGHT_TOP:d-=h.width;break;case f.LEFT_BOTTOM:case f.BOTTOM_LEFT:y-=h.height;break;case f.BOTTOM_CENTER:y-=h.height,d-=h.width/2;break;case f.BOTTOM_RIGHT:case f.RIGHT_BOTTOM:y-=h.height,d-=h.width;break;case f.LEFT_CENTER:y-=h.height/2;break;case f.RIGHT_CENTER:y-=h.height/2,d-=h.width}var g=getComputedStyle(this.element),v=parseInt(g.marginLeft,10),m=parseInt(g.marginRight,10),b=parseInt(g.marginTop,10),_=parseInt(g.marginBottom,10);switch(e){case f.LEFT_TOP:case f.TOP_LEFT:case f.TOP_RIGHT:case f.RIGHT_TOP:n!==f.BOTTOM_RIGHT&&n!==f.RIGHT_BOTTOM||(y-=_,d-=m),n!==f.BOTTOM_LEFT&&n!==f.LEFT_BOTTOM||(y-=b,d+=v),n!==f.TOP_LEFT&&n!==f.LEFT_TOP||(y+=b,d+=v),n!==f.TOP_RIGHT&&n!==f.RIGHT_TOP||(y+=b,d-=m);break;case f.LEFT_BOTTOM:case f.BOTTOM_LEFT:case f.BOTTOM_RIGHT:case f.RIGHT_BOTTOM:n!==f.BOTTOM_LEFT&&n!==f.LEFT_BOTTOM||(y-=_,d+=v),n!==f.BOTTOM_RIGHT&&n!==f.RIGHT_BOTTOM||(y-=_,d-=m),n!==f.TOP_LEFT&&n!==f.LEFT_TOP||(y+=b,d+=v),n!==f.TOP_RIGHT&&n!==f.RIGHT_TOP||(y+=b,d-=m);break;case f.TOP_CENTER:y-=_,d+=v,d-=m;break;case f.BOTTOM_CENTER:y+=b,d+=v,d-=m;break;case f.LEFT_CENTER:y+=b,y-=_,d-=m;break;case f.RIGHT_CENTER:y+=b,y-=_,d+=v}return this.element.style.transform="translateX("+d+"px) translateY("+y+"px)",this._scroll.asObservable()},t.prototype.release=function(){this.element.style.transform="",this.removeScrollEventListeners()},t.prototype.isPositioned=function(t){var e=getComputedStyle(t).position;return"relative"===e||e===y||"fixed"===e},t.prototype.emitScrollEvent=function(){this._scroll.next()},t.prototype.addScrollEventListeners=function(t){this._scroll=new o.a;for(var e=t,n=t;n&&n!==document&&(this.scrolls(n)&&(n.addEventListener("scroll",this.boundOnScrollListener),this.scrollableElements.push(n)),n===e||!this.isPositioned(n));)n=n.parentNode},t.prototype.removeScrollEventListeners=function(){for(var t=0,e=this.scrollableElements;t<e.length;t++){e[t].removeEventListener("scroll",this.boundOnScrollListener)}this.scrollableElements.length=0,this._scroll&&(this._scroll.complete(),delete this._scroll)},t.prototype.scrolls=function(t){var e=getComputedStyle(t);return"scroll"===e.overflowX||"auto"===e.overflowX||"scroll"===e.overflowY||"auto"===e.overflowY},t}(),v=0,m=[],b=function(){function t(t,e){this.templateRef=t,this.viewContainer=e,this.popoverOptions={},this.clrPopoverOldChange=new r.EventEmitter(!1)}return Object.defineProperty(t.prototype,"clrPopoverOld",{set:function(t){var e=this;if(t)this.popoverOptions.allowMultipleOpen?this.createPopover():0===v?this.createPopover():m.push(function(){e.createPopover()});else if(this.viewContainer.clear(),this.destroyPopover(),!this.popoverOptions.allowMultipleOpen&&m.length>0){m.shift()()}},enumerable:!0,configurable:!0}),t.prototype.createPopover=function(){var t=this,e=this.viewContainer.createEmbeddedView(this.templateRef);e.detectChanges();var n=e.rootNodes.filter(function(t){return 1===t.nodeType});this._popoverInstance=new g(n[0]),this._subscription=this._popoverInstance.anchor(this.anchorElem,this.anchorPoint,this.popoverPoint,this.popoverOptions).subscribe(function(){t.clrPopoverOldChange.emit(!1)}),v++},t.prototype.destroyPopover=function(){this._popoverInstance&&(this._subscription.unsubscribe(),this._popoverInstance.release(),delete this._popoverInstance,v--)},t.prototype.ngOnDestroy=function(){this.destroyPopover()},t}();b.decorators=[{type:r.Directive,args:[{selector:"[clrPopoverOld]"}]}],b.ctorParameters=function(){return[{type:r.TemplateRef},{type:r.ViewContainerRef}]},b.propDecorators={anchorElem:[{type:r.Input,args:["clrPopoverOldAnchor"]}],anchorPoint:[{type:r.Input,args:["clrPopoverOldAnchorPoint"]}],popoverPoint:[{type:r.Input,args:["clrPopoverOldPopoverPoint"]}],popoverOptions:[{type:r.Input,args:["clrPopoverOldOptions"]}],clrPopoverOldChange:[{type:r.Output,args:["clrPopoverOldChange"]}],clrPopoverOld:[{type:r.Input}]};var _=[b],x=function(){return function(){}}();x.decorators=[{type:r.NgModule,args:[{imports:[i.CommonModule],declarations:[_],exports:[_]}]}],x.ctorParameters=function(){return[]};var w=function(){function t(){this._changes=new o.a}return Object.defineProperty(t.prototype,"changes",{get:function(){return this._changes.asObservable()},enumerable:!0,configurable:!0}),t.prototype.updateButtonGroup=function(t){this._changes.next(t)},t}();w.decorators=[{type:r.Injectable}],w.ctorParameters=function(){return[]};var O=function(){function t(t){this.buttonInGroupService=t,this._enableService=!1,this._inMenu=!1,this._classNames="btn",this._name=null,this._type=null,this._disabled=null,this._click=new r.EventEmitter(!1)}return Object.defineProperty(t.prototype,"inMenu",{get:function(){return this._inMenu},set:function(t){t=!!t,this._inMenu!==t&&(this._inMenu=t,this._enableService&&this.buttonInGroupService&&this.buttonInGroupService.updateButtonGroup(this))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classNames",{get:function(){return this._classNames},set:function(t){if("string"==typeof t){var e=t.split(" ");-1===e.indexOf("btn")&&e.push("btn"),this._classNames=e.join(" ")}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(t){"string"==typeof t&&(this._name=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(t){"string"==typeof t&&(this._type=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=null!==t&&!1!==t?"":null},enumerable:!0,configurable:!0}),t.prototype.emitClick=function(){this._click.emit(!0)},t.prototype.ngAfterViewInit=function(){this._enableService=!0},t}();O.decorators=[{type:r.Component,args:[{selector:"clr-button",template:'\n <ng-template #buttonProjectedRef>\n <button \n [class]="classNames" \n (click)="emitClick()"\n [attr.type]="type"\n [attr.name]="name"\n [attr.disabled]="disabled">\n <ng-content></ng-content>\n </button>\n </ng-template>\n '}]}],O.ctorParameters=function(){return[{type:w,decorators:[{type:r.SkipSelf},{type:r.Optional}]}]},O.propDecorators={templateRef:[{type:r.ViewChild,args:["buttonProjectedRef"]}],inMenu:[{type:r.Input,args:["clrInMenu"]}],classNames:[{type:r.Input,args:["class"]}],name:[{type:r.Input,args:["name"]}],type:[{type:r.Input,args:["type"]}],disabled:[{type:r.Input,args:["disabled"]}],_click:[{type:r.Output,args:["click"]}]};var S=["bottom-left","bottom-right","top-left","top-right","left-bottom","left-top","right-bottom","right-top"],C=function(){function t(t,e){this.buttonGroupNewService=t,this.elementRef=e,this.inlineButtons=[],this.menuButtons=[],this._openMenu=!1,this.anchorPoint=f.BOTTOM_LEFT,this.popoverPoint=f.LEFT_TOP,this._overflowMenuToggleClicked=!1}return t.prototype.ngAfterContentInit=function(){var t=this;this.initializeButtons(),this.buttonGroupNewService.changes.subscribe(function(e){return t.rearrangeButton(e)}),this.buttons.changes.subscribe(function(){t.initializeButtons()})},t.prototype.rearrangeButton=function(t){var e,n;t.inMenu?(e=this.inlineButtons,n=this.menuButtons):(e=this.menuButtons,n=this.inlineButtons);var r=e.indexOf(t);if(r>-1){e.splice(r,1);var i=this.getMoveIndex(t);i<=n.length&&n.splice(i,0,t)}},t.prototype.getMoveIndex=function(t){return this.buttons.filter(function(e){return e.inMenu===t.inMenu}).indexOf(t)},t.prototype.initializeButtons=function(){var t=[],e=[];this.buttons.forEach(function(n){n.inMenu?e.push(n):t.push(n)}),this.inlineButtons=t,this.menuButtons=e},Object.defineProperty(t.prototype,"menuPosition",{get:function(){return this._menuPosition},set:function(t){switch(t&&S.indexOf(t)>-1?this._menuPosition=t:this._menuPosition="bottom-left",this._menuPosition){case"top-right":this.anchorPoint=f.TOP_RIGHT,this.popoverPoint=f.RIGHT_BOTTOM;break;case"top-left":this.anchorPoint=f.TOP_LEFT,this.popoverPoint=f.LEFT_BOTTOM;break;case"bottom-right":this.anchorPoint=f.BOTTOM_RIGHT,this.popoverPoint=f.RIGHT_TOP;break;case"bottom-left":this.anchorPoint=f.BOTTOM_LEFT,this.popoverPoint=f.LEFT_TOP;break;case"right-top":this.anchorPoint=f.RIGHT_TOP,this.popoverPoint=f.LEFT_TOP;break;case"right-bottom":this.anchorPoint=f.RIGHT_BOTTOM,this.popoverPoint=f.LEFT_BOTTOM;break;case"left-top":this.anchorPoint=f.LEFT_TOP,this.popoverPoint=f.RIGHT_TOP;break;case"left-bottom":this.anchorPoint=f.LEFT_BOTTOM,this.popoverPoint=f.RIGHT_BOTTOM;break;default:this.anchorPoint=f.BOTTOM_LEFT,this.popoverPoint=f.LEFT_TOP}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"openMenu",{get:function(){return this._openMenu},set:function(t){this._openMenu=t},enumerable:!0,configurable:!0}),t.prototype.toggleMenu=function(){this.openMenu=!this.openMenu,this._overflowMenuToggleClicked=!0},t.prototype.onMouseClick=function(t){if(this.openMenu&&!this._overflowMenuToggleClicked){this._overflowMenuToggleClicked=!1;var e=t,n=this.elementRef.nativeElement;if(e.classList.contains("dropdown-menu"))for(e=e.parentNode;e;){if(e===document)return void(this.openMenu=!1);if(e===n)return;e=e.parentNode}this.openMenu=!1}this._overflowMenuToggleClicked=!1},t}();C.decorators=[{type:r.Component,args:[{selector:"clr-button-group",template:'\n <ng-container *ngFor="let inlineButton of inlineButtons">\n <ng-template [ngTemplateOutlet]="inlineButton.templateRef"></ng-template>\n </ng-container>\n <ng-container *ngIf="menuButtons.length > 0">\n <div\n class="btn-group-overflow open"\n [ngClass]="menuPosition"\n #anchor>\n <button\n class="btn dropdown-toggle"\n (click)="toggleMenu()">\n <clr-icon shape="ellipsis-horizontal"></clr-icon>\n </button>\n <div\n class="dropdown-menu"\n *clrPopoverOld="openMenu; anchor: anchor; anchorPoint: anchorPoint; popoverPoint: popoverPoint;">\n <ng-template [ngTemplateOutlet]="ref"></ng-template>\n </div>\n </div>\n </ng-container>\n <ng-template #ref>\n <ng-container *ngFor="let menuButton of menuButtons">\n <ng-template [ngTemplateOutlet]="menuButton.templateRef"></ng-template>\n </ng-container>\n </ng-template>\n ',providers:[w],host:{"[class.btn-group]":"true"}}]}],C.ctorParameters=function(){return[{type:w},{type:r.ElementRef}]},C.propDecorators={buttons:[{type:r.ContentChildren,args:[O]}],menuPosition:[{type:r.Input,args:["clrMenuPosition"]}],onMouseClick:[{type:r.HostListener,args:["document:click",["$event.target"]]}]};var E=[O,C],T=function(){return function(){}}();T.decorators=[{type:r.NgModule,args:[{imports:[i.CommonModule,d,x],declarations:[E],exports:[E]}]}],T.ctorParameters=function(){return[]};var j=function(){function t(){}return t.prototype.startLoading=function(){},t.prototype.doneLoading=function(){},t}(),P=function(){function t(t){this.listener=t,this._loading=!1}return Object.defineProperty(t.prototype,"loading",{get:function(){return this._loading},set:function(t){(t=!!t)!==this._loading&&(this._loading=t,this.listener&&(t?this.listener.startLoading():this.listener.doneLoading()))},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.loading=!1},t}();P.decorators=[{type:r.Directive,args:[{selector:"[clrLoading]"}]}],P.ctorParameters=function(){return[{type:j,decorators:[{type:r.Optional}]}]},P.propDecorators={loading:[{type:r.Input,args:["clrLoading"]}]};var A=[P],I=function(){return function(){}}();I.decorators=[{type:r.NgModule,args:[{imports:[i.CommonModule],declarations:[A],exports:[A]}]}],I.ctorParameters=function(){return[]};var k=function(){function t(){}return t.prototype.startLoading=function(){this.loading=!0},t.prototype.doneLoading=function(){this.loading=!1},t}();k.decorators=[{type:r.Component,args:[{selector:"button[clrLoading]",template:'\n <span class="spinner spinner-inline" *ngIf="loading"></span>\n <ng-content></ng-content>\n ',providers:[{provide:j,useExisting:k}]}]}],k.ctorParameters=function(){return[]};var R=[k],M=function(){return function(){}}();M.decorators=[{type:r.NgModule,args:[{imports:[i.CommonModule,I],declarations:[R],exports:[R,I]}]}],M.ctorParameters=function(){return[]};var D=function(){return function(){}}();D.decorators=[{type:r.NgModule,args:[{exports:[M,T]}]}],D.ctorParameters=function(){return[]};var N=function(){function t(t,e){this._el=t,this.renderer=e,this._highlight=""}return t.prototype.ngAfterContentInit=function(){this.redraw()},t.prototype.redraw=function(){this._el&&this._el.nativeElement&&Prism.highlightElement(this._el.nativeElement)},Object.defineProperty(t.prototype,"highlight",{get:function(){return this._highlight},set:function(t){t&&""!==t.trim()&&(this._highlight=t,this.renderer.addClass(this._el.nativeElement,this._highlight))},enumerable:!0,configurable:!0}),t}();N.decorators=[{type:r.Directive,args:[{selector:"code[clr-code-highlight]"}]}],N.ctorParameters=function(){return[{type:r.ElementRef},{type:r.Renderer2}]},N.propDecorators={highlight:[{type:r.Input,args:["clr-code-highlight"]}]};var L=[N],F=function(){return function(){}}();F.decorators=[{type:r.NgModule,args:[{imports:[i.CommonModule],declarations:[L],exports:[L]}]}],F.ctorParameters=function(){return[]};var V=function(){return function(){}}();V.decorators=[{type:r.NgModule,args:[{exports:[F]}]}],V.ctorParameters=function(){return[]};var B=0,H=function(){function t(){this._id=(B++).toString(),this.name=null,this.disabled=!1,this.inline=!1,this._checked=!1,this._indeterminate=!1,this.indeterminateChange=new r.EventEmitter(!1),this.change=new r.EventEmitter(!1),this.onChangeCallback=function(t){},this.onTouchedCallback=function(){}}return Object.defineProperty(t.prototype,"id",{get:function(){return"clr-checkbox-"+this._id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(t){t!==this._checked&&(this._indeterminate&&this.setIndeterminate(!1),this.setChecked(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"indeterminate",{get:function(){return this._indeterminate},set:function(t){this._indeterminate!==t&&(this._checked&&this.setChecked(!1),this.setIndeterminate(t))},enumerable:!0,configurable:!0}),t.prototype.setIndeterminate=function(t){this._indeterminate=t,this.indeterminateChange.emit(this._indeterminate)},t.prototype.setChecked=function(t){this._checked=t,this.change.emit(this._checked)},t.prototype.toggle=function(){this.checked=!this.checked,this.onChangeCallback(this.checked)},t.prototype.writeValue=function(t){null===t&&(t=!1),t!==this.checked&&(this.checked=t)},t.prototype.registerOnChange=function(t){this.onChangeCallback=t},t.prototype.registerOnTouched=function(t){this.onTouchedCallback=t},t.prototype.touch=function(){this.onTouchedCallback()},t.prototype.checkIndeterminateState=function(){this.disabled||this.toggle()},t}();H.decorators=[{type:r.Component,args:[{selector:"clr-checkbox",template:'\n \x3c!--\n FIXME: We are not subscribed to the change event but the click event here.\n The reason for that is because checkboxes behave differently on IE & Edge.\n https://stackoverflow.com/a/19447939\n \n To fix that, we listen to every click event and then toggle the checkbox manually\n to make it behave the same way across the browsers we support.\n \n This works for cases when users toggle the checkbox using the keyboard too:\n https://stackoverflow.com/questions/27878940/spacebar-triggering-click-event-on-checkbox\n --\x3e\n <input type="checkbox" [id]="id" [name]="name" [checked]="checked"\n [indeterminate]="indeterminate" [disabled]="disabled"\n (blur)="touch()" (click)="checkIndeterminateState()">\n <label [attr.for]="id">\n <ng-content></ng-content>\n </label>\n ',host:{"[class.checkbox]":"!inline","[class.checkbox-inline]":"inline","[class.disabled]":"disabled"},providers:[{provide:s.c,useExisting:Object(r.forwardRef)(function(){return H}),multi:!0}]}]}],H.ctorParameters=function(){return[]},H.propDecorators={_id:[{type:r.Input,args:["id"]}],name:[{type:r.Input,args:["name"]}],disabled:[{type:r.Input,args:["clrDisabled"]}],inline:[{type:r.Input,args:["clrInline"]}],checked:[{type:r.Input,args:["clrChecked"]}],indeterminate:[{type:r.Input,args:["clrIndeterminate"]}],indeterminateChange:[{type:r.Output,args:["clrIndeterminateChange"]}],change:[{type:r.Output,args:["clrCheckedChange"]}]};var z=[H],U=function(){return function(){}}();U.decorators=[{type:r.NgModule,args:[{imports:[i.CommonModule],declarations:[z],exports:[z]}]}],U.ctorParameters=function(){return[]};var W=function(){function t(){this.expandable=0,this.replace=!1,this._loading=!1,this._expanded=!1,this._animate=new o.a,this._expandChange=new o.a}return Object.defineProperty(t.prototype,"loading",{get:function(){return this._loading},set:function(t){(t=!!t)!==this._loading&&(this._loading=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"expanded",{get:function(){return this._expanded},set:function(t){(t=!!t)!==this._expanded&&(this._expanded=t,this._animate.next(),this._expandChange.next(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"animate",{get:function(){return this._animate.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"expandChange",{get:function(){return this._expandChange.asObservable()},enumerable:!0,configurable:!0}),t.prototype.startLoading=function(){this.loading=!0},t.prototype.doneLoading=function(){this.loading=!1,this._animate.next()},t}();W.decorators=[{type:r.Injectable}],W.ctorParameters=function(){return[]};var G=function(){function t(t,e,n){var i=this;this.template=t,this.container=e,this.expand=n,this._expanded=!1,this.expandedChange=new r.EventEmitter(!0),this._subscriptions=[],n.expandable++,this._subscriptions.push(n.expandChange.subscribe(function(){i.updateView(),i.expandedChange.emit(i.expand.expanded)}))}return Object.defineProperty(t.prototype,"expanded",{get:function(){return this._expanded},set:function(t){"boolean"==typeof t&&(this.expand.expanded=t,this._expanded=t)},enumerable:!0,configurable:!0}),t.prototype.updateView=function(){this.expand.expanded&&0!==this.container.length||(this.expand.expanded?this.container.createEmbeddedView(this.template):this.container.clear())},t.prototype.ngOnInit=function(){this.updateView()},t.prototype.ngOnDestroy=function(){this.expand.expandable--,this._subscriptions.forEach(function(t){return t.unsubscribe()})},t}();G.decorators=[{type:r.Directive,args:[{selector:"[clrIfExpanded]"}]}],G.ctorParameters=function(){return[{type:r.TemplateRef},{type:r.ViewContainerRef},{type:W}]},G.propDecorators={expanded:[{type:r.Input,args:["clrIfExpanded"]}],expandedChange:[{type:r.Output,args:["clrIfExpandedChange"]}]};var q=[G],Y=function(){return function(){}}();Y.decorators=[{type:r.NgModule,args:[{imports:[i.CommonModule],declarations:[q],exports:[q]}]}],Y.ctorParameters=function(){return[]};var K=function(){function t(t){this.el=t,this.strict=!1,this.outsideClick=new r.EventEmitter(!1)}return t.prototype.documentClick=function(t){var e=t.target,n=this.el.nativeElement;e!==n&&(!this.strict&&n.contains(e)||this.outsideClick.emit(t))},t}();K.decorators=[{type:r.Directive,args:[{selector:"[clrOutsideClick]"}]}],K.ctorParameters=function(){return[{type:r.ElementRef}]},K.propDecorators={strict:[{type:r.Input,args:["clrStrict"]}],outsideClick:[{type:r.Output,args:["clrOutsideClick"]}],documentClick:[{type:r.HostListener,args:["document:click",["$event"]]}]};var X=[K],$=function(){return function(){}}();$.decorators=[{type:r.NgModule,args:[{imports:[i.CommonModule],declarations:[X],exports:[X]}]}],$.ctorParameters=function(){return[]};var Q=function(){function t(){}return t.prototype.userDefinedWidth=function(t){t.classList.add("datagrid-cell-width-zero");var e=parseInt(getComputedStyle(t).getPropertyValue("width"),10);return t.classList.remove("datagrid-cell-width-zero"),e},t.prototype.scrollBarWidth=function(t){return t.offsetWidth-t.clientWidth},t.prototype.scrollWidth=function(t){return t.scrollWidth||0},t.prototype.computedHeight=function(t){return parseInt(getComputedStyle(t).getPropertyValue("height"),10)},t.prototype.clientRectRight=function(t){return parseInt(t.getBoundingClientRect().right,10)},t.prototype.clientRectWidth=function(t){return parseInt(t.getBoundingClientRect().width,10)},t.prototype.minWidth=function(t){return parseInt(getComputedStyle(t).getPropertyValue("min-width"),10)},t.prototype.focus=function(t){t.focus()},t}();Q.decorators=[{type:r.Injectable}],Q.ctorParameters=function(){return[]};var Z=function(){function t(){this.alreadySized=!1,this.widths=[],this._noLayout=new o.a,this._clearWidths=new o.a,this._detectStrictWidths=new o.a,this._tableMode=new o.a,this._computeWidths=new o.a,this._alignColumns=new o.a,this.scrollbar=new o.a,this.scrollbarWidth=new o.a,this._done=new o.a}return Object.defineProperty(t.prototype,"noLayout",{get:function(){return this._noLayout.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clearWidths",{get:function(){return this._clearWidths.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"detectStrictWidths",{get:function(){return this._detectStrictWidths.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tableMode",{get:function(){return this._tableMode.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"computeWidths",{get:function(){return this._computeWidths.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alignColumns",{get:function(){return this._alignColumns.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"done",{get:function(){return this._done.asObservable()},enumerable:!0,configurable:!0}),t.prototype.resize=function(){this.widths.length=0,this._noLayout.next(!0),this.alreadySized&&this._clearWidths.next(),this._detectStrictWidths.next(),this._tableMode.next(!0),this._computeWidths.next(),this._tableMode.next(!1),this._alignColumns.next(),this._noLayout.next(!1),this.scrollbar.next(),this.alreadySized=!0,this._done.next()},t}();Z.decorators=[{type:r.Injectable}],Z.ctorParameters=function(){return[]};var J=function(){function t(t,e,n,r,i){var o=this;this.el=t,this.domAdapter=e,this.renderer=n,this.expand=r,this.renderOrganizer=i,r.animate.subscribe(function(){o.oldHeight?setTimeout(function(){return o.run()}):o.animate()})}return t.prototype.animate=function(){var t=this;this.el.nativeElement.animate&&(this.running&&this.running.finish(),this.oldHeight=this.domAdapter.computedHeight(this.el.nativeElement),this.renderer.setStyle(this.el.nativeElement,"height",this.oldHeight+"px"),this.renderer.setStyle(this.el.nativeElement,"overflow-y","hidden"),setTimeout(function(){t.expand.loading||t.run()}))},t.prototype.run=function(){var t=this;this.renderer.setStyle(this.el.nativeElement,"height",null),this.renderOrganizer.scrollbar.next();var e=this.domAdapter.computedHeight(this.el.nativeElement);this.running=this.el.nativeElement.animate({height:[this.oldHeight+"px",e+"px"],overflowY:["hidden","hidden"],easing:"ease-in-out"},{duration:200}),this.running.onfinish=function(){t.renderer.setStyle(t.el.nativeElement,"overflow-y",null),delete t.running},delete this.oldHeight},t}();J.decorators=[{type:r.Directive,args:[{selector:"clr-dg-row"}]}],J.ctorParameters=function(){return[{type:r.ElementRef},{type:Q},{type:r.Renderer2},{type:W},{type:Z}]};var tt=function(){return function(){}}(),et=function(){function t(){this._change=new o.a,this.nbChanges=0}return Object.defineProperty(t.prototype,"change",{get:function(){return this._change.asObservable()},enumerable:!0,configurable:!0}),t.prototype.changeStart=function(){this.nbChanges++},t.prototype.changeDone=function(){0==--this.nbChanges&&this._change.next()},t}();et.decorators=[{type:r.Injectable}],et.ctorParameters=function(){return[]};var nt=function(){function t(t){this.stateDebouncer=t,this._size=0,this._totalItems=0,this._change=new o.a,this._sizeChange=new o.a,this._current=1}return Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(t){var e=this._size;t!==e&&(this._size=t,this._current=Math.floor(e/t*(this._current-1))+1,this._change.next(this._current),this._sizeChange.next(this._size))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalItems",{get:function(){return this._totalItems},set:function(t){this._totalItems=t,this.current>this.last&&(this.current=this.last)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._last?this._last:this.size>0&&this.totalItems?Math.ceil(this.totalItems/this.size):1},set:function(t){this._last=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"change",{get:function(){return this._change.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sizeChange",{get:function(){return this._sizeChange.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"current",{get:function(){return this._current},set:function(t){t!==this._current&&(this.stateDebouncer.changeStart(),this._current=t,this._change.next(t),this.stateDebouncer.changeDone())},enumerable:!0,configurable:!0}),t.prototype.previous=function(){this.current>1&&this.current--},t.prototype.next=function(){this.current<this.last&&this.current++},Object.defineProperty(t.prototype,"firstItem",{get:function(){return 0===this.size?0:(this.current-1)*this.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lastItem",{get:function(){if(0===this.size)return this.totalItems-1;var t=this.current*this.size-1;return this.totalItems&&(t=Math.min(t,this.totalItems-1)),t},enumerable:!0,configurable:!0}),t}();nt.decorators=[{type:r.Injectable}],nt.ctorParameters=function(){return[{type:et}]};var rt=function(){function t(t,e){this._page=t,this.stateDebouncer=e,this._change=new o.a,this._all=[]}return Object.defineProperty(t.prototype,"change",{get:function(){return this._change.asObservable()},enumerable:!0,configurable:!0}),t.prototype.hasActiveFilters=function(){for(var t=0,e=this._all;t<e.length;t++){var n=e[t].filter;if(n&&n.isActive())return!0}return!1},t.prototype.getActiveFilters=function(){for(var t=[],e=0,n=this._all;e<n.length;e++){var r=n[e].filter;r&&r.isActive()&&t.push(r)}return t},t.prototype.add=function(t){var e=this,n=this._all.length,r=t.changes.subscribe(function(){return e.resetPageAndEmitFilterChange([t])}),i=!1,o=new it(t,function(){i||(r.unsubscribe(),e._all.splice(n,1),t.isActive()&&e.resetPageAndEmitFilterChange([]),i=!0)});return this._all.push(o),t.isActive()&&this.resetPageAndEmitFilterChange([t]),o},t.prototype.accepts=function(t){for(var e=0,n=this._all;e<n.length;e++){var r=n[e].filter;if(r&&r.isActive()&&!r.accepts(t))return!1}return!0},t.prototype.resetPageAndEmitFilterChange=function(t){this.stateDebouncer.changeStart(),this._page.current=1,this._change.next(t),this.stateDebouncer.changeDone()},t}();rt.decorators=[{type:r.Injectable}],rt.ctorParameters=function(){return[{type:nt},{type:et}]};var it=function(){return function(t,e){this.filter=t,this.unregister=e}}(),ot=function(){function t(t){this.filters=t}return Object.defineProperty(t.prototype,"filter",{get:function(){return this.registered&&this.registered.filter},enumerable:!0,configurable:!0}),t.prototype.setFilter=function(t){this.deleteFilter(),t instanceof it?this.registered=t:t&&(this.registered=this.filters.add(t))},t.prototype.deleteFilter=function(){this.registered&&(this.registered.unregister(),delete this.registered)},t.prototype.ngOnDestroy=function(){this.deleteFilter()},t}(),st=function(t){function e(e){var n=t.call(this,e)||this;return n.anchorPoint=f.RIGHT_BOTTOM,n.popoverPoint=f.RIGHT_TOP,n.popoverOptions={allowMultipleOpen:!0},n._open=!1,n.openChanged=new r.EventEmitter(!1),n}return l(e,t),Object.defineProperty(e.prototype,"open",{get:function(){return this._open},set:function(t){var e=!!t;e!==this._open&&(this._open=e,this.openChanged.emit(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"customFilter",{set:function(t){this.setFilter(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){return!!this.filter&&this.filter.isActive()},enumerable:!0,configurable:!0}),e.prototype.toggle=function(){this.open=!this.open},e}(ot);st.decorators=[{type:r.Component,args:[{selector:"clr-dg-filter",providers:[{provide:tt,useExisting:st}],template:'\n <button #anchor class="datagrid-filter-toggle" (click)="toggle()"\n [class.datagrid-filter-open]="open" [class.datagrid-filtered]="active"\n type="button"></button>\n\n <ng-template [(clrPopoverOld)]="open" [clrPopoverOldAnchor]="anchor" [clrPopoverOldAnchorPoint]="anchorPoint"\n [clrPopoverOldPopoverPoint]="popoverPoint" [clrPopoverOldOptions]="popoverOptions">\n <div class="datagrid-filter">\n \x3c!-- FIXME: this whole filter part needs a final design before we can try to have a cleaner DOM --\x3e\n <div class="datagrid-filter-close-wrapper">\n <button type="button" class="close" \n aria-label="Close" (click)="open = false"\n type="button">\n <clr-icon aria-hidden="true" shape="close"></clr-icon>\n </button>\n </div>\n \n <ng-content></ng-content>\n </div>\n </ng-template>\n '}]}],st.ctorParameters=function(){return[{type:rt}]},st.propDecorators={open:[{type:r.Input,args:["clrDgFilterOpen"]}],openChanged:[{type:r.Output,args:["clrDgFilterOpenChange"]}],customFilter:[{type:r.Input,args:["clrDgFilter"]}]};var at=function(){function t(t){this.filterFn=t,this._changes=new o.a,this._rawValue="",this._lowerCaseValue=""}return Object.defineProperty(t.prototype,"changes",{get:function(){return this._changes.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._rawValue},set:function(t){t||(t=""),t!==this._rawValue&&(this._rawValue=t,this._lowerCaseValue=t.toLowerCase().trim(),this._changes.next(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lowerCaseValue",{get:function(){return this._lowerCaseValue},enumerable:!0,configurable:!0}),t.prototype.isActive=function(){return!!this.value},t.prototype.accepts=function(t){return this.filterFn.accepts(t,this.lowerCaseValue)},t}(),ct=function(t){function e(e,n,i){var o=t.call(this,n)||this;return o.renderer=e,o.domAdapter=i,o.open=!1,o.filterValueChange=new r.EventEmitter,o}return l(e,t),Object.defineProperty(e.prototype,"customStringFilter",{set:function(t){t instanceof it?this.setFilter(t):this.setFilter(new at(t))},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var t=this;this.filterContainer.openChanged.subscribe(function(e){e&&setTimeout(function(){t.domAdapter.focus(t.input.nativeElement)})})},Object.defineProperty(e.prototype,"value",{get:function(){return this.filter.value},set:function(t){this.filter&&(t||(t=""),t!==this.filter.value&&(this.filter.value=t,this.filterValueChange.emit(t)))},enumerable:!0,configurable:!0}),e.prototype.close=function(){this.open=!1},e}(ot);ct.decorators=[{type:r.Component,args:[{selector:"clr-dg-string-filter",providers:[{provide:tt,useExisting:ct}],template:'\n <clr-dg-filter [clrDgFilter]="registered" [(clrDgFilterOpen)]="open">\n \x3c!--\n Even though this *ngIf looks useless because the filter container already has one,\n it prevents NgControlStatus and other directives automatically added by Angular\n on inputs with NgModel from freaking out because of their host binding changing\n mid-change detection when the input is destroyed.\n --\x3e\n <input #input type="text" name="search" [(ngModel)]="value" *ngIf="open"\n (keyup.enter)="close()" (keyup.escape)="close()"/>\n </clr-dg-filter>\n '}]}],ct.ctorParameters=function(){return[{type:r.Renderer2},{type:rt},{type:Q}]},ct.propDecorators={customStringFilter:[{type:r.Input,args:["clrDgStringFilter"]}],input:[{type:r.ViewChild,args:["input"]}],filterContainer:[{type:r.ViewChild,args:[st]}],value:[{type:r.Input,args:["clrFilterValue"]}],filterValueChange:[{type:r.Output,args:["clrFilterValueChange"]}]};var ut=function(){function t(t,e){var n=this;this.subscription=e.chocolate.subscribe(function(){n.latestFlavor!==n.flavor&&t.detectChanges()})}return t.prototype.flavor=function(){},t.prototype.ngAfterContentChecked=function(){this.latestFlavor=this.flavor},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t}(),lt=function(){function t(){this.actionableCount=0}return t.prototype.register=function(){this.actionableCount++},t.prototype.unregister=function(){this.actionableCount--},Object.defineProperty(t.prototype,"hasActionableRow",{get:function(){return this.actionableCount>0},enumerable:!0,configurable:!0}),t}();lt.decorators=[{type:r.Injectable}],lt.ctorParameters=function(){return[]};var pt=function(){function t(){this._chocolate=new o.a}return Object.defineProperty(t.prototype,"chocolate",{get:function(){return this._chocolate.asObservable()},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewChecked=function(){this._chocolate.next()},t}(),ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e}(pt);ht.decorators=[{type:r.Directive,args:[{selector:"clr-datagrid"}]}],ht.ctorParameters=function(){return[]};var dt=function(t){function e(e,n,r){var i=this;if(!n)throw new Error("clr-dg-row should only be used inside of a clr-datagrid");return i=t.call(this,e,n)||this,i.rowActions=r,i}return l(e,t),Object.defineProperty(e.prototype,"flavor",{get:function(){return this.rowActions.hasActionableRow},enumerable:!0,configurable:!0}),e}(ut);dt.decorators=[{type:r.Directive,args:[{selector:"clr-datagrid, clr-dg-row"}]}],dt.ctorParameters=function(){return[{type:r.ChangeDetectorRef},{type:ht,decorators:[{type:r.Optional}]},{type:lt}]};var ft=function(){function t(){this.expandableCount=0}return t.prototype.register=function(){this.expandableCount++},t.prototype.unregister=function(){this.expandableCount--},Object.defineProperty(t.prototype,"hasExpandableRow",{get:function(){return this.expandableCount>0},enumerable:!0,configurable:!0}),t}();ft.decorators=[{type:r.Injectable}],ft.ctorParameters=function(){return[]};var yt=function(t){function e(e,n,r){var i=this;if(!n)throw new Error("clr-dg-row should only be used inside of a clr-datagrid");return i=t.call(this,e,n)||this,i.expandableCount=r,i}return l(e,t),Object.defineProperty(e.prototype,"flavor",{get:function(){return this.expandableCount.hasExpandableRow},enumerable:!0,configurable:!0}),e}(ut);yt.decorators=[{type:r.Directive,args:[{selector:"clr-datagrid, clr-dg-row"}]}],yt.ctorParameters=function(){return[{type:r.ChangeDetectorRef},{type:ht,decorators:[{type:r.Optional}]},{type:ft}]};var gt=function(){function t(t){this.prop=t,t.indexOf(".")>=0&&(this.splitProp=t.split("."))}return t.prototype.getPropValue=function(t){if(this.splitProp){for(var e=t,n=0,r=this.splitProp;n<r.length;n++){var i=r[n];if(null==e||"undefined"==typeof e||"undefined"==typeof e[i])return;e=e[i]}return e}return t[this.prop]},t}(),vt=function(){function t(t){this.prop=t,this.nestedProp=new gt(t)}return t.prototype.compare=function(t,e){var n=this.nestedProp.getPropValue(t),r=this.nestedProp.getPropValue(e);return"string"==typeof n&&(n=n.toLowerCase()),"string"==typeof r&&(r=r.toLowerCase()),"undefined"==typeof n||null===n?"undefined"==typeof r||null===r?0:1:"undefined"==typeof r||null===r?-1:n<r?-1:n>r?1:0},t}(),mt=function(){function t(t,e){void 0===e&&(e=!1),this.prop=t,this.exact=e,this.nestedProp=new gt(t)}return t.prototype.accepts=function(t,e){var n=this.nestedProp.getPropValue(t);return"undefined"!=typeof n&&(this.exact?(""+n).toLowerCase()===e:(""+n).toLowerCase().indexOf(e)>=0)},t}(),bt={};bt.Unsorted=0,bt.Asc=1,bt.Desc=-1,bt[bt.Unsorted]="Unsorted",bt[bt.Asc]="Asc",bt[bt.Desc]="Desc";var _t=function(){function t(t,e){this._ngZone=t,this._renderer=e,this._onDragStart=new o.a,this._onDragMove=new o.a,this._onDragEnd=new o.a}return Object.defineProperty(t.prototype,"onDragStart",{get:function(){return this._onDragStart},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDragMove",{get:function(){return this._onDragMove},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDragEnd",{get:function(){return this._onDragEnd},enumerable:!0,configurable:!0}),t.prototype.addDragListener=function(){var t=this.handleRef.nativeElement;this._listeners=[this.customDragEvent(t,"mousedown","mousemove","mouseup"),this.customDragEvent(t,"touchstart","touchmove","touchend")]},t.prototype.customDragEvent=function(t,e,n,r){var i,o,s=this;return this._renderer.listen(t,e,function(t){s.notifyDragStart(t),i=s._ngZone.runOutsideAngular(function(){return s._renderer.listen("document",n,function(t){s.notifyDragMove(t)})}),o=s._renderer.listen("document",r,function(t){i(),s.notifyDragEnd(t),o()})})},t.prototype.notifyDragStart=function(t){return this._onDragStart.next(t)},t.prototype.notifyDragMove=function(t){return this._onDragMove.next(t)},t.prototype.notifyDragEnd=function(t){return this._onDragEnd.next(t)},t.prototype.destroy=function(){this._listeners.map(function(t){return t()})},t}();_t.decorators=[{type:r.Injectable}],_t.ctorParameters=function(){return[{type:r.NgZone},{type:r.Renderer2}]};var xt=function(){function t(t){this.stateDebouncer=t,this._reverse=!1,this._change=new o.a}return Object.defineProperty(t.prototype,"comparator",{get:function(){return this._comparator},set:function(t){this.stateDebouncer.changeStart(),this._comparator=t,this.emitChange(),this.stateDebouncer.changeDone()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reverse",{get:function(){return this._reverse},set:function(t){this.stateDebouncer.changeStart(),this._reverse=t,this.emitChange(),this.stateDebouncer.changeDone()},enumerable:!0,configurable:!0}),t.prototype.emitChange=function(){this._change.next(this)},Object.defineProperty(t.prototype,"change",{get:function(){return this._change.asObservable()},enumerable:!0,configurable:!0}),t.prototype.toggle=function(t,e){this.stateDebouncer.changeStart(),this.comparator===t?this._reverse="undefined"!=typeof e?e||!this._reverse:!this._reverse:(this._comparator=t,this._reverse="undefined"!=typeof e&&e),this.emitChange(),this.stateDebouncer.changeDone()},t.prototype.clear=function(){this.comparator=null},t.prototype.compare=function(t,e){return(this.reverse?-1:1)*this.comparator.compare(t,e)},t}();xt.decorators=[{type:r.Injectable}],xt.ctorParameters=function(){return[{type:et}]};var wt=0,Ot=function(t){function e(e,n,i){var o=t.call(this,n)||this;return o._sort=e,o._dragDispatcher=i,o._sorted=!1,o.sortedChange=new r.EventEmitter,o._sortOrder=bt.Unsorted,o.sortOrderChange=new r.EventEmitter,o.customFilter=!1,o.filterValueChange=new r.EventEmitter,o._sortSubscription=e.change.subscribe(function(t){o.sortOrder!==bt.Unsorted&&t.comparator!==o._sortBy&&(o._sortOrder=bt.Unsorted,o.sortOrderChange.emit(o._sortOrder)),o.sorted&&t.comparator!==o._sortBy&&(o._sorted=!1,o.sortedChange.emit(!1))}),o.columnId="dg-col-"+wt.toString(),wt++,o}return l(e,t),Object.defineProperty(e.prototype,"hidden",{get:function(){return!!this.hideable&&this.hideable.hidden},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"handleElRef",{set:function(t){this._dragDispatcher.handleRef=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"handleTrackerElRef",{set:function(t){this._dragDispatcher.handleTrackerRef=t},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this._sortSubscription.unsubscribe()},Object.defineProperty(e.prototype,"field",{get:function(){return this._field},set:function(t){"string"==typeof t&&(this._field=t,this.customFilter||this.setFilter(new at(new mt(t))),this._sortBy||(this._sortBy=new vt(t)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sortBy",{get:function(){return this._sortBy},set:function(t){"string"==typeof t?this._sortBy=new vt(t):t?this._sortBy=t:this._field?this._sortBy=new vt(this._field):delete this._sortBy},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sortable",{get:function(){return!!this._sortBy},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sorted",{get:function(){return this._sorted},set:function(t){!t&&this.sorted?(this._sorted=!1,this._sort.clear()):t&&!this.sorted&&this.sort()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sortOrder",{get:function(){return this._sortOrder},set:function(t){if("undefined"!=typeof t&&this._sortOrder!==t)switch(t){default:case bt.Unsorted:this._sort.clear();break;case bt.Asc:this.sort(!1);break;case bt.Desc:this.sort(!0)}},enumerable:!0,configurable:!0}),e.prototype.sort=function(t){this.sortable&&(this._sort.toggle(this._sortBy,t),this._sortOrder=this._sort.reverse?bt.Desc:bt.Asc,this.sortOrderChange.emit(this._sortOrder),this._sorted=!0,this.sortedChange.emit(!0))},Object.defineProperty(e.prototype,"asc",{get:function(){return"undefined"==typeof this.sortOrder?this.sorted&&!this._sort.reverse:this.sortOrder===bt.Asc},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desc",{get:function(){return"undefined"==typeof this.sortOrder?this.sorted&&this._sort.reverse:this.sortOrder===bt.Desc},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"projectedFilter",{set:function(t){t&&(this.deleteFilter(),this.customFilter=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterValue",{get:function(){return this.filter.value},set:function(t){this.filter&&(t||(t=""),t!==this.filter.value&&(this.filter.value=t,this.filterValueChange.emit(t)))},enumerable:!0,configurable:!0}),e}(ot);Ot.decorators=[{type:r.Component,args:[{selector:"clr-dg-column",template:'\n <div class="datagrid-column-flex">\n \x3c!-- I\'m really not happy with that select since it\'s not very scalable --\x3e\n <ng-content select="clr-dg-filter, clr-dg-string-filter"></ng-content>\n\n <clr-dg-string-filter\n *ngIf="field && !customFilter"\n [clrDgStringFilter]="registered"\n [(clrFilterValue)]="filterValue"></clr-dg-string-filter>\n\n <ng-template #columnTitle><ng-content></ng-content></ng-template>\n\n <button class="datagrid-column-title" *ngIf="sortable" (click)="sort()" type="button">\n <ng-container *ngTemplateOutlet="columnTitle"></ng-container>\n </button>\n\n <span class="datagrid-column-title" *ngIf="!sortable">\n <ng-container *ngTemplateOutlet="columnTitle"></ng-container>\n </span>\n\n <div class="datagrid-column-separator">\n <button #columnHandle class="datagrid-column-handle" tabindex="-1" type="button"></button>\n <div #columnHandleTracker class="datagrid-column-handle-tracker"></div>\n </div>\n </div>\n ',host:{"[class.datagrid-column]":"true","[class.datagrid-column--hidden]":"hidden"}}]}],Ot.ctorParameters=function(){return[{type:xt},{type:rt},{type:_t}]},Ot.propDecorators={handleElRef:[{type:r.ViewChild,args:["columnHandle"]}],handleTrackerElRef:[{type:r.ViewChild,args:["columnHandleTracker"]}],field:[{type:r.Input,args:["clrDgField"]}],sortBy:[{type:r.Input,args:["clrDgSortBy"]}],sorted:[{type:r.Input,args:["clrDgSorted"]}],sortedChange:[{type:r.Output,args:["clrDgSortedChange"]}],sortOrder:[{type:r.Input,args:["clrDgSortOrder"]}],sortOrderChange:[{type:r.Output,args:["clrDgSortOrderChange"]}],asc:[{type:r.HostBinding,args:["class.asc"]}],desc:[{type:r.HostBinding,args:["class.desc"]}],projectedFilter:[{type:r.ContentChild,args:[tt]}],filterValue:[{type:r.Input,args:["clrFilterValue"]}],filterValueChange:[{type:r.Output,args:["clrFilterValueChange"]}]};var St=function(){function t(t,e,n){this._filters=t,this._sort=e,this._page=n,this.loading=!1,this.trackBy=function(t,e){return e},this._smart=!1,this._displayed=[],this._change=new o.a,this._allChanges=new o.a}return t.prototype.destroy=function(){this._filtersSub&&this._filtersSub.unsubscribe(),this._sortSub&&this._sortSub.unsubscribe(),this._pageSub&&this._pageSub.unsubscribe()},Object.defineProperty(t.prototype,"smart",{get:function(){return this._smart},enumerable:!0,configurable:!0}),t.prototype.smartenUp=function(){var t=this;this._smart=!0,this._filtersSub=this._filters.change.subscribe(function(){return t._filterItems()}),this._sortSub=this._sort.change.subscribe(function(){t._sort.comparator?t._sortItems():t._filterItems()}),this._pageSub=this._page.change.subscribe(function(){return t._changePage()})},Object.defineProperty(t.prototype,"all",{set:function(t){this.smart?(this._all=t,this.emitAllChanges(),this._filterItems()):(this._displayed=t,this.emitChange())},enumerable:!0,configurable:!0}),t.prototype.refresh=function(){this.smart&&this._filterItems()},Object.defineProperty(t.prototype,"displayed",{get:function(){return this._displayed},enumerable:!0,configurable:!0}),t.prototype.emitChange=function(){this._change.next(this.displayed)},Object.defineProperty(t.prototype,"change",{get:function(){return this._change.asObservable()},enumerable:!0,configurable:!0}),t.prototype.emitAllChanges=function(){this.smart&&this._allChanges.next(this._all)},Object.defineProperty(t.prototype,"allChanges",{get:function(){return this._allChanges.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"uninitialized",{get:function(){return!this._all},enumerable:!0,configurable:!0}),t.prototype._filterItems=function(){var t=this;this.uninitialized||(this._filters.hasActiveFilters()?this._filtered=this._all.filter(function(e){return t._filters.accepts(e)}):this._filtered=this._all.slice(),this._page.totalItems=this._filtered.length,this._sortItems())},t.prototype._sortItems=function(){var t=this;this.uninitialized||(this._sort.comparator&&this._filtered.sort(function(e,n){return t._sort.compare(e,n)}),this._changePage())},t.prototype._changePage=function(){this.uninitialized||(this._page.size>0?this._displayed=this._filtered.slice(this._page.firstItem,this._page.lastItem+1):this._displayed=this._filtered,this.emitChange())},t}();St.decorators=[{type:r.Injectable}],St.ctorParameters=function(){return[{type:rt},{type:xt},{type:nt}]};var Ct=function(){function t(t,e,n){this.template=t,this._differs=e,this._items=n,n.smartenUp()}return Object.defineProperty(t.prototype,"rawItems",{set:function(t){this._rawItems=t||[]},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("rawItems"in t){var e=t.rawItems.currentValue;!this._differ&&e&&(this._differ=this._differs.find(e).create(this._items.trackBy))}},Object.defineProperty(t.prototype,"trackBy",{set:function(t){this._items.trackBy=t},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._differ){this._differ.diff(this._rawItems)&&(this._items.all=this._rawItems)}},t}();Ct.decorators=[{type:r.Directive,args:[{selector:"[clrDgItems][clrDgItemsOf]"}]}],Ct.ctorParameters=function(){return[{type:r.TemplateRef},{type:r.IterableDiffers},{type:St}]},Ct.propDecorators={rawItems:[{type:r.Input,args:["clrDgItemsOf"]}],trackBy:[{type:r.Input,args:["clrDgItemsTrackBy"]}]};var Et=function(){function t(t,e){this.items=t,this.page=e}return Object.defineProperty(t.prototype,"emptyDatagrid",{get:function(){return!(this.items.loading||this.items.displayed&&0!==this.items.displayed.length)},enumerable:!0,configurable:!0}),t}();Et.decorators=[{type:r.Component,args:[{selector:"clr-dg-placeholder",template:'\n <div\n class="datagrid-placeholder"\n [class.datagrid-empty]="emptyDatagrid">\n <div class="datagrid-placeholder-image" *ngIf="emptyDatagrid"></div>\n <ng-content *ngIf="emptyDatagrid"></ng-content>\n </div>\n ',host:{"[class.datagrid-placeholder-container]":"true"}}]}],Et.ctorParameters=function(){return[{type:St},{type:nt}]};var Tt=function(){function t(){this._openChange=new o.a}return Object.defineProperty(t.prototype,"openChange",{get:function(){return this._openChange.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"open",{get:function(){return this._open},set:function(t){t=!!t,this._open!==t&&(this._open=t,this._openChange.next(t))},enumerable:!0,configurable:!0}),t.prototype.toggleWithEvent=function(t){this.originalEvent=t,this.open=!this.open,delete this.originalEvent},t}();Tt.decorators=[{type:r.Injectable}],Tt.ctorParameters=function(){return[]};var jt=new r.InjectionToken("POPOVER_HOST_ANCHOR"),Pt=function(){function t(t,e,n){var r=this;this.ifOpenService=t,this.renderer=e,this.el=n,this.subscriptions=[],this.subscriptions.push(this.ifOpenService.openChange.subscribe(function(t){t?r.renderer.addClass(r.el.nativeElement,"active"):r.renderer.removeClass(r.el.nativeElement,"active")}))}return t.prototype.ngOnDestroy=function(){this.subscriptions.forEach(function(t){return t.unsubscribe()})},t.prototype.onSignpostTriggerClick=function(t){this.ifOpenService.toggleWithEvent(t)},t}();Pt.decorators=[{type:r.Directive,args:[{selector:"[clrSignpostTrigger]",host:{class:"signpost-trigger"}}]}],Pt.ctorParameters=function(){return[{type:Tt},{type:r.Renderer2},{type:r.ElementRef}]},Pt.propDecorators={onSignpostTriggerClick:[{type:r.HostListener,args:["click",["$event"]]}]};var At=function(){function t(){this.useCustomTrigger=!1}return Object.defineProperty(t.prototype,"customTrigger",{set:function(t){this.useCustomTrigger=!!t},enumerable:!0,configurable:!0}),t}();At.decorators=[{type:r.Component,args:[{selector:"clr-signpost",template:'\n <ng-container *ngIf="!useCustomTrigger">\n <button\n type="button"\n class="signpost-action btn btn-small btn-link"\n clrSignpostTrigger>\n <clr-icon shape="info"></clr-icon>\n </button>\n </ng-container>\n \n <ng-content></ng-content>\n ',host:{"[class.signpost]":"true"},providers:[Tt,{provide:jt,useExisting:r.ElementRef}]}]}],At.ctorParameters=function(){return[]},At.propDecorators={customTrigger:[{type:r.ContentChild,args:[Pt]}]};var It=function(){function t(){this._columnList=[],this._columnListChange=new a.a(this._columnList)}return Object.defineProperty(t.prototype,"canHideNextColumn",{get:function(){var t=this._columnList.filter(function(t){return void 0!==t}).filter(function(t){return t.hidden});return this._columnList.length-t.length>1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checkForAllColumnsVisible",{get:function(){return!this._columnList.some(function(t){return t&&t.hidden})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnListChange",{get:function(){return this._columnListChange.asObservable()},enumerable:!0,configurable:!0}),t.prototype.getColumns=function(){return this._columnList},t.prototype.showHiddenColumns=function(){this._columnList.forEach(function(t){t&&!0===t.hidden&&(t.hidden=!1),t&&t.lastVisibleColumn&&(t.lastVisibleColumn=!1)})},t.prototype.updateColumnList=function(t){this._columnList=t,this.updateForLastVisibleColumn(),this._columnListChange.next(this._columnList)},t.prototype.updateForLastVisibleColumn=function(){this.canHideNextColumn?this._columnList.map(function(t){t&&t.lastVisibleColumn&&(t.lastVisibleColumn=!1)}):this._columnList.map(function(t){t&&!t.hidden&&(t.lastVisibleColumn=!0)})},t.prototype.getColumnById=function(t){if(t)return this._columnList.find(function(e){return e&&e.id===t})},t}();It.decorators=[{type:r.Injectable}],It.ctorParameters=function(){return[]};var kt=function(){function t(t){this.hideableColumnService=t}return Object.defineProperty(t.prototype,"hidden",{get:function(){var t=this.hideableColumnService.getColumnById(this.id);return!!t&&t.hidden},enumerable:!0,configurable:!0}),t}();kt.decorators=[{type:r.Component,args:[{selector:"clr-dg-cell",template:"\n <ng-content></ng-content>\n ",host:{"[class.datagrid-cell]":"true","[class.datagrid-cell--hidden]":"hidden","[class.datagrid-signpost-trigger]":"signpost.length > 0"}}]}],kt.ctorParameters=function(){return[{type:It}]},kt.propDecorators={signpost:[{type:r.ContentChildren,args:[At]}]};var Rt=0,Mt={};Mt.None=0,Mt.Single=1,Mt.Multi=2,Mt[Mt.None]="None",Mt[Mt.Single]="Single",Mt[Mt.Multi]="Multi";var Dt=function(){function t(t,e){var n=this;this._items=t,this._filters=e,this._selectionType=Mt.None,this.rowSelectionMode=!1,this.debounce=!1,this._change=new o.a,this.id="clr-dg-selection"+Rt++,this._filtersSub=this._filters.change.subscribe(function(){n._selectable&&n.clearSelection()}),this._itemsSub=this._items.allChanges.subscribe(function(t){if(n._selectable){var e;if(n._items.trackBy){var r=n._items.trackBy,i=t.map(function(t,e){return r(e,t)});e=n.current.filter(function(t,e){return i.indexOf(r(e,t))>-1})}else e=n.current.filter(function(e){return t.indexOf(e)>-1});n.current.length!==e.length&&setTimeout(function(){n.current=e},0)}})}return t.prototype.clearSelection=function(){this.current.length=0,this.emitChange()},Object.defineProperty(t.prototype,"selectionType",{get:function(){return this._selectionType},set:function(t){t!==this.selectionType&&(this._selectionType=t,t===Mt.None?delete this.current:this.current=[])},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_selectable",{get:function(){return this._selectionType===Mt.Multi||this._selectionType===Mt.Single},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._itemsSub.unsubscribe(),this._filtersSub.unsubscribe()},Object.defineProperty(t.prototype,"currentSingle",{get:function(){return this._currentSingle},set:function(t){var e=this;t!==this._currentSingle&&(this._currentSingle=t,this.emitChange(),this.debounce=!0,setTimeout(function(){return e.debounce=!1}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"current",{get:function(){return this._current},set:function(t){var e=this;this._current=t,this.emitChange(),this.debounce=!0,setTimeout(function(){return e.debounce=!1})},enumerable:!0,configurable:!0}),t.prototype.emitChange=function(){this._selectionType===Mt.Single?this._change.next(this.currentSingle):this._selectionType===Mt.Multi&&this._change.next(this.current)},Object.defineProperty(t.prototype,"change",{get:function(){return this._change.asObservable()},enumerable:!0,configurable:!0}),t.prototype.isSelected=function(t){return this._selectionType===Mt.Single?this.currentSingle===t:this._selectionType===Mt.Multi&&this.current.indexOf(t)>=0},t.prototype.setSelected=function(t,e){switch(this._selectionType){case Mt.None:case Mt.Single:break;case Mt.Multi:var n=this.current.indexOf(t);n>=0&&!e?(this.current.splice(n,1),this.emitChange()):n<0&&e&&(this.current.push(t),this.emitChange())}},t.prototype.isAllSelected=function(){var t=this;if(this._selectionType!==Mt.Multi||!this._items.displayed)return!1;var e=this._items.displayed;if(this._items.displayed.length<1)return!1;return e.filter(function(e){return t.current.indexOf(e)>-1}).length===e.length},t.prototype.toggleAll=function(){var t=this;this._selectionType!==Mt.None&&this._selectionType!==Mt.Single&&(this.isAllSelected()?this.current=this.current.filter(function(e){return t._items.displayed.indexOf(e)<0}):(this._items.displayed.forEach(function(e){t.current.indexOf(e)<0&&t.current.push(e)}),this.emitChange()))},t}();Dt.decorators=[{type:r.Injectable}],Dt.ctorParameters=function(){return[{type:St},{type:rt}]};var Nt=0,Lt=function(){function t(t,e,n,i,o){this.selection=t,this.rowActionService=e,this.globalExpandable=n,this.expand=i,this.hideableColumnService=o,this.SELECTION_TYPE=Mt,this.ENTER_KEY_CODE=13,this.SPACE_KEY_CODE=32,this._selected=!1,this.selectedChanged=new r.EventEmitter(!1),this.expandedChange=new r.EventEmitter(!1),this.id="clr-dg-row"+Nt++,this.role=t.rowSelectionMode?"button":null}return Object.defineProperty(t.prototype,"selected",{get:function(){return this.selection.selectionType===Mt.None?this._selected:this.selection.isSelected(this.item)},set:function(t){this.selection.selectionType===Mt.None?this._selected=t:this.selection.setSelected(this.item,t)},enumerable:!0,configurable:!0}),t.prototype.toggle=function(t){void 0===t&&(t=!this.selected),t!==this.selected&&(this.selected=t,this.selectedChanged.emit(t))},Object.defineProperty(t.prototype,"expanded",{get:function(){return this.expand.expanded},set:function(t){this.expand.expanded=t},enumerable:!0,configurable:!0}),t.prototype.toggleExpand=function(){this.expand.expandable&&(this.expanded=!this.expanded,this.expandedChange.emit(this.expanded))},t.prototype.toggleSelection=function(){if(this.selection.rowSelectionMode)switch(this.selection.selectionType){case Mt.None:break;case Mt.Single:this.selection.currentSingle=this.item;break;case Mt.Multi:this.toggle()}},t.prototype.keypress=function(t){this.selection.rowSelectionMode&&(t.keyCode!==this.ENTER_KEY_CODE&&t.keyCode!==this.SPACE_KEY_CODE||(t.preventDefault(),this.toggleSelection()))},t.prototype.ngAfterContentInit=function(){var t=this,e=this.hideableColumnService.getColumns();this.updateCellsForColumns(e),this.dgCells.changes.subscribe(function(e){var n=t.hideableColumnService.getColumns();e.length===n.length&&t.updateCellsForColumns(n)}),this.subscription=this.hideableColumnService.columnListChange.subscribe(function(e){e.length===t.dgCells.length&&t.updateCellsForColumns(e)})},t.prototype.updateCellsForColumns=function(t){this.dgCells.forEach(function(e,n){var r=t[n];r&&(e.id=r.id)})},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t}();Lt.decorators=[{type:r.Component,args:[{selector:"clr-dg-row",template:'\n <div class="datagrid-row-master datagrid-row-flex">\n <clr-dg-cell *ngIf="selection.selectionType === SELECTION_TYPE.Multi"\n class="datagrid-select datagrid-fixed-column">\n <clr-checkbox [clrChecked]="selected" (clrCheckedChange)="toggle($event)"></clr-checkbox>\n </clr-dg-cell>\n <clr-dg-cell *ngIf="selection.selectionType === SELECTION_TYPE.Single"\n class="datagrid-select datagrid-fixed-column">\n <div class="radio">\n <input type="radio" [id]="id" [name]="selection.id + \'-radio\'" [value]="item"\n [(ngModel)]="selection.currentSingle">\n <label for="{{id}}"></label>\n </div>\n </clr-dg-cell>\n <clr-dg-cell *ngIf="rowActionService.hasActionableRow"\n class="datagrid-row-actions datagrid-fixed-column">\n <ng-content select="clr-dg-action-overflow"></ng-content>\n </clr-dg-cell>\n <clr-dg-cell *ngIf="globalExpandable.hasExpandableRow"\n class="datagrid-expandable-caret datagrid-fixed-column">\n <ng-container *ngIf="expand.expandable">\n <button (click)="toggleExpand()" *ngIf="!expand.loading" type="button" class="datagrid-expandable-caret-button">\n <clr-icon shape="caret" [attr.dir]="expand.expanded?\'down\':\'right\'" class="datagrid-expandable-caret-icon"></clr-icon>\n </button>\n <div class="spinner spinner-sm" *ngIf="expand.loading"></div>\n </ng-container>\n </clr-dg-cell>\n <ng-content *ngIf="!expand.replace || !expand.expanded || expand.loading"></ng-content>\n\n <ng-template *ngIf="expand.replace && expand.expanded && !expand.loading"\n [ngTemplateOutlet]="detail"></ng-template>\n </div>\n\n <ng-template *ngIf="!expand.replace && expand.expanded && !expand.loading"\n [ngTemplateOutlet]="detail"></ng-template>\n\n \x3c!-- \n We need the "project into template" hack because we need this in 2 different places\n depending on whether the details replace the row or not.\n --\x3e\n <ng-template #detail>\n <ng-content select="clr-dg-row-detail"></ng-content>\n </ng-template>\n ',host:{"[class.datagrid-row]":"true","[class.datagrid-selected]":"selected","[attr.tabindex]":"selection.rowSelectionMode ? 0 : null"},providers:[W,{provide:j,useExisting:W}]}]}],Lt.ctorParameters=function(){return[{type:Dt},{type:lt},{type:ft},{type:W},{type:It}]},Lt.propDecorators={item:[{type:r.Input,args:["clrDgItem"]}],role:[{type:r.HostBinding,args:["attr.role"]}],selected:[{type:r.Input,args:["clrDgSelected"]}],selectedChanged:[{type:r.Output,args:["clrDgSelectedChange"]}],expanded:[{type:r.Input,args:["clrDgExpanded"]}],expandedChange:[{type:r.Output,args:["clrDgExpandedChange"]}],toggleSelection:[{type:r.HostListener,args:["click"]}],keypress:[{type:r.HostListener,args:["keypress",["$event"]]}],dgCells:[{type:r.ContentChildren,args:[kt]}]};var Ft=function(){function t(t,e,n,r){var i=this;this.filters=t,this.sort=e,this.page=n,this.debouncer=r,this.change=this.debouncer.change.map(function(){return i.state})}return Object.defineProperty(t.prototype,"state",{get:function(){var t={};this.page.size>0&&(t.page={from:this.page.firstItem,to:this.page.lastItem,size:this.page.size}),this.sort.comparator&&(this.sort.comparator instanceof vt?t.sort={by:this.sort.comparator.prop,reverse:this.sort.reverse}:t.sort={by:this.sort.comparator,reverse:this.sort.reverse});var e=this.filters.getActiveFilters();if(e.length>0){t.filters=[];for(var n=0,r=e;n<r.length;n++){var i=r[n];if(i instanceof at){var o=i.filterFn;if(o instanceof mt){t.filters.push({property:o.prop,value:i.value});continue}}t.filters.push(i)}}return t},enumerable:!0,configurable:!0}),t}();Ft.decorators=[{type:r.Injectable}],Ft.ctorParameters=function(){return[{type:rt},{type:xt},{type:nt},{type:et}]};var Vt=function(){function t(t,e,n,i,o,s,a){this.columnService=t,this.organizer=e,this.items=n,this.expandableRows=i,this.selection=o,this.rowActionService=s,this.stateProvider=a,this.SELECTION_TYPE=Mt,this.refresh=new r.EventEmitter(!1),this.selectedChanged=new r.EventEmitter(!1),this.singleSelectedChanged=new r.EventEmitter(!1),this._subscriptions=[]}return Object.defineProperty(t.prototype,"loading",{get:function(){return this.items.loading},set:function(t){this.items.loading=t},enumerable:!0,configurable:!0}),t.prototype.dataChanged=function(){this.items.refresh()},Object.defineProperty(t.prototype,"selected",{set:function(t){this.selection.selectionType=t?Mt.Multi:Mt.None,this.selection.current=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"singleSelected",{set:function(t){this.selection.selectionType=Mt.Single,this.selection.currentSingle=t||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowSelectionMode",{set:function(t){this.selection.rowSelectionMode=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allSelected",{get:function(){return this.selection.isAllSelected()},set:function(t){this.selection.toggleAll()},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._subscriptions.push(this.rows.changes.subscribe(function(){t.items.smart||(t.items.all=t.rows.map(function(t){return t.item}))})),this.items.smart||(this.items.all=this.rows.map(function(t){return t.item})),this._subscriptions.push(this.columns.changes.subscribe(function(e){t.columnService.updateColumnList(t.columns.map(function(t){return t.hideable}))})),this.columnService.updateColumnList(this.columns.map(function(t){return t.hideable}))},t.prototype.ngAfterViewInit=function(){var t=this;this.refresh.emit(this.stateProvider.state),this._subscriptions.push(this.stateProvider.change.subscribe(function(e){return t.refresh.emit(e)})),this._subscriptions.push(this.selection.change.subscribe(function(e){t.selection.selectionType===Mt.Single?t.singleSelectedChanged.emit(e):t.selection.selectionType===Mt.Multi&&t.selectedChanged.emit(e)}))},t.prototype.ngOnDestroy=function(){this._subscriptions.forEach(function(t){return t.unsubscribe()})},t.prototype.resize=function(){this.organizer.resize()},t}();Vt.decorators=[{type:r.Component,args:[{selector:"clr-datagrid",template:'\n \x3c!--\n ~ Copyright (c) 2016-2017 VMware, Inc. All Rights Reserved.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n --\x3e\n\n <ng-content select="clr-dg-action-bar"></ng-content>\n <div class="datagrid-overlay-wrapper">\n <div class="datagrid-scroll-wrapper">\n <div class="datagrid" #datagrid>\n <clr-dg-table-wrapper class="datagrid-table-wrapper">\n <div clrDgHead class="datagrid-head">\n <div class="datagrid-row datagrid-row-flex">\n \x3c!-- header for datagrid where you can select multiple rows --\x3e\n <div class="datagrid-column datagrid-select datagrid-fixed-column"\n *ngIf="selection.selectionType === SELECTION_TYPE.Multi">\n <span class="datagrid-column-title">\n <clr-checkbox [(ngModel)]="allSelected"></clr-checkbox>\n </span>\n <div class="datagrid-column-separator"></div>\n </div>\n \x3c!-- header for datagrid where you can select one row only --\x3e\n <div class="datagrid-column datagrid-select datagrid-fixed-column"\n *ngIf="selection.selectionType === SELECTION_TYPE.Single">\n <div class="datagrid-column-separator"></div>\n </div>\n \x3c!-- header for single row action; only display if we have at least one actionable row in datagrid --\x3e\n <div class="datagrid-column datagrid-row-actions datagrid-fixed-column"\n *ngIf="rowActionService.hasActionableRow">\n <div class="datagrid-column-separator"></div>\n </div>\n \x3c!-- header for carets; only display if we have at least one expandable row in datagrid --\x3e\n <div class="datagrid-column datagrid-expandable-caret datagrid-fixed-column"\n *ngIf="expandableRows.hasExpandableRow">\n <div class="datagrid-column-separator"></div>\n </div>\n <ng-content select="clr-dg-column"></ng-content>\n </div>\n </div>\n\n <ng-template *ngIf="iterator"\n ngFor [ngForOf]="items.displayed" [ngForTrackBy]="items.trackBy"\n [ngForTemplate]="iterator.template"></ng-template>\n <ng-content *ngIf="!iterator"></ng-content>\n\n \x3c!-- Custom placeholder overrides the default empty one --\x3e\n <ng-content select="clr-dg-placeholder"></ng-content>\n <clr-dg-placeholder *ngIf="!placeholder"></clr-dg-placeholder>\n </clr-dg-table-wrapper>\n\n \x3c!--\n This is not inside the table because there is no good way of having a single column span\n everything when using custom elements with display:table-cell.\n --\x3e\n <ng-content select="clr-dg-footer"></ng-content>\n </div>\n </div>\n <div class="datagrid-spinner" *ngIf="loading">\n <div class="spinner">Loading...</div>\n </div>\n </div>\n ',providers:[Dt,xt,rt,nt,St,Z,lt,ft,It,et,Ft],host:{"[class.datagrid-host]":"true"}}]}],Vt.ctorParameters=function(){return[{type:It},{type:Z},{type:St},{type:ft},{type:Dt},{type:lt},{type:Ft}]},Vt.propDecorators={loading:[{type:r.Input,args:["clrDgLoading"]}],refresh:[{type:r.Output,args:["clrDgRefresh"]}],iterator:[{type:r.ContentChild,args:[Ct]}],selected:[{type:r.Input,args:["clrDgSelected"]}],selectedChanged:[{type:r.Output,args:["clrDgSelectedChange"]}],singleSelected:[{type:r.Input,args:["clrDgSingleSelected"]}],singleSelectedChanged:[{type:r.Output,args:["clrDgSingleSelectedChange"]}],rowSelectionMode:[{type:r.Input,args:["clDgRowSelection"]}],placeholder:[{type:r.ContentChild,args:[Et]}],columns:[{type:r.ContentChildren,args:[Ot]}],rows:[{type:r.ContentChildren,args:[Lt]}]};var Bt=function(){return function(){}}();Bt.decorators=[{type:r.Component,args:[{selector:"clr-dg-action-bar",template:"\n <ng-content></ng-content>\n ",host:{"[class.datagrid-action-bar]":"true"}}]}],Bt.ctorParameters=function(){return[]};var Ht=function(){function t(t){this.rowActionService=t,this.anchorPoint=f.RIGHT_CENTER,this.popoverPoint=f.LEFT_CENTER,this._open=!1,this.openChanged=new r.EventEmitter(!1),this.rowActionService.register()}return t.prototype.ngOnDestroy=function(){this.rowActionService.unregister()},Object.defineProperty(t.prototype,"open",{get:function(){return this._open},set:function(t){var e=!!t;e!==this._open&&(this._open=e,this.openChanged.emit(e))},enumerable:!0,configurable:!0}),t.prototype.toggle=function(t){this.openingEvent=t,this.open=!this.open},t.prototype.close=function(t){t!==this.openingEvent?this.open=!1:delete this.openingEvent},t}();Ht.decorators=[{type:r.Component,args:[{selector:"clr-dg-action-overflow",template:'\n <button (click)="toggle($event)" class="datagrid-action-toggle" #anchor>\n <clr-icon shape="ellipsis-vertical"></clr-icon>\n </button>\n <ng-template [(clrPopoverOld)]="open" [clrPopoverOldAnchor]="anchor" [clrPopoverOldAnchorPoint]="anchorPoint"\n [clrPopoverOldPopoverPoint]="popoverPoint">\n <div #menu class="datagrid-action-overflow" (clrOutsideClick)="close($event)" [clrStrict]="true">\n <ng-content></ng-content>\n </div>\n </ng-template>\n '}]}],Ht.ctorParameters=function(){return[{type:lt}]},Ht.propDecorators={open:[{type:r.Input,args:["clrDgActionOverflowOpen"]}],openChanged:[{type:r.Output,args:["clrDgActionOverflowOpenChange"]}]};var zt=function(){function t(t){this.hideableColumnService=t,this.anchorPoint=f.TOP_LEFT,this.popoverPoint=f.LEFT_BOTTOM,this.open=!1,this.columns=[]}return Object.defineProperty(t.prototype,"allColumnsVisible",{get:function(){return this._allColumnsVisible},set:function(t){this._allColumnsVisible=t},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this._hideableColumnChangeSubscription=this.hideableColumnService.columnListChange.subscribe(function(e){t.columns.length=0,t.hideableColumnService.updateForLastVisibleColumn(),t.allColumnsVisible=t.hideableColumnService.checkForAllColumnsVisible,e.forEach(function(e){e&&t.columns.push(e)})})},t.prototype.ngOnDestroy=function(){this._hideableColumnChangeSubscription.unsubscribe()},t.prototype.selectAll=function(){this.hideableColumnService.showHiddenColumns(),this.allColumnsVisible=this.hideableColumnService.checkForAllColumnsVisible},t.prototype.toggleColumn=function(t,e){e.hidden=!t,this.allColumnsVisible=this.hideableColumnService.checkForAllColumnsVisible,this.hideableColumnService.updateForLastVisibleColumn()},t.prototype.toggleUI=function(){this.open=!this.open},t}();zt.decorators=[{type:r.Component,args:[{selector:"clr-dg-column-toggle",template:'\n <button\n #anchor\n (click)="toggleUI()"\n class="btn btn-sm btn-link column-toggle--action"\n type="button">\n <clr-icon shape="view-columns"></clr-icon>\n </button>\n <div class="column-switch"\n *clrPopoverOld="open; anchor: anchor; anchorPoint: anchorPoint; popoverPoint: popoverPoint">\n <div class="switch-header">\n Show Columns\n <button\n class="btn btn-sm btn-link"\n (click)="toggleUI()"\n type="button">\n <clr-icon\n shape="close"></clr-icon>\n </button>\n </div>\n <ul class="switch-content list-unstyled">\n <li *ngFor="let column of columns">\n <clr-checkbox [clrChecked]="!column.hidden"\n [clrDisabled]="column.lastVisibleColumn"\n (clrCheckedChange)="toggleColumn($event, column)">\n <ng-template [ngTemplateOutlet]="column.template"></ng-template>\n </clr-checkbox>\n </li>\n </ul>\n <div class="switch-footer">\n <div>\n <button\n class="btn btn-sm btn-link p6 text-uppercase"\n [disabled]="allColumnsVisible"\n (click)="selectAll()"\n type="button">Select All\n </button>\n </div>\n <div class="action-right">\n <button\n (click)="toggleUI()"\n class="btn btn-primary"\n type="button">\n Ok\n </button>\n </div>\n </div>\n </div>\n ',host:{"[class.column-switch-wrapper]":"true","[class.active]":"open"}}]}],zt.ctorParameters=function(){return[{type:It}]};var Ut=function(){function t(t){this.expandableRowsCount=t,this.expandableRowsCount&&this.expandableRowsCount.register()}return t.prototype.ngOnDestroy=function(){this.expandableRowsCount&&this.expandableRowsCount.unregister()},t}();Ut.decorators=[{type:r.Directive,args:[{selector:"[clrIfExpanded]"}]}],Ut.ctorParameters=function(){return[{type:ft,decorators:[{type:r.Optional}]}]};var Wt=function(){function t(t,e,n){this.selection=t,this.hideableColumnService=e,this.cdr=n,this.subscriptions=[],this.SELECTION_TYPE=Mt}return t.prototype.ngOnInit=function(){var t=this;this.subscriptions.push(this.hideableColumnService.columnListChange.subscribe(function(e){e.filter(function(t){return t}).length>0&&(t.activeToggler=!0)}));this.hideableColumnService.getColumns().filter(function(t){return t}).length>0&&(this.activeToggler=!0)},t.prototype.ngOnDestroy=function(){this.subscriptions.forEach(function(t){t.unsubscribe()})},t}();Wt.decorators=[{type:r.Component,args:[{selector:"clr-dg-footer",template:'\n <ng-container\n *ngIf="(selection.selectionType === SELECTION_TYPE.Multi) && (selection.current.length > 0)">\n <clr-checkbox [clrDisabled]="true" [clrChecked]="true" class="datagrid-foot-select">\n {{selection.current.length}}\n </clr-checkbox>\n </ng-container>\n <clr-dg-column-toggle *ngIf="activeToggler"></clr-dg-column-toggle>\n <div class="datagrid-foot-description">\n <ng-content></ng-content>\n </div>\n <ng-content select="clr-dg-pagination"></ng-content>\n ',host:{"[class.datagrid-foot]":"true"}}]}],Wt.ctorParameters=function(){return[{type:Dt},{type:It},{type:r.ChangeDetectorRef}]};var Gt=function(){function t(t,e,n){void 0===n&&(n=!1),this._template=t,this._id=e,this._hidden=n,this.hiddenChangesState=new o.a,this.lastVisibleColumn=!1}return Object.defineProperty(t.prototype,"template",{get:function(){return this._template},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hidden",{get:function(){return this._hidden},set:function(t){this._hidden!==t&&(this._hidden=t,this.hiddenChangesState.next(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hiddenChangeState",{get:function(){return this.hiddenChangesState.asObservable()},enumerable:!0,configurable:!0}),t}(),qt=function(){function t(t,e,n){this.templateRef=t,this.viewContainerRef=e,this.dgColumn=n,this.columnId=n.columnId,this.viewContainerRef.createEmbeddedView(this.templateRef),this.dgColumn.hideable=new Gt(this.templateRef,this.columnId,this._hidden)}return Object.defineProperty(t.prototype,"clrDgHideableColumn",{set:function(t){this._hidden=!(!t||!t.hidden)&&t.hidden,this.dgColumn.hideable&&(this.dgColumn.hideable.hidden=!(!t||!t.hidden)&&t.hidden)},enumerable:!0,configurable:!0}),t}();qt.decorators=[{type:r.Directive,args:[{selector:"[clrDgHideableColumn]"}]}],qt.ctorParameters=function(){return[{type:r.TemplateRef},{type:r.ViewContainerRef},{type:Ot}]},qt.propDecorators={clrDgHideableColumn:[{type:r.Input,args:["clrDgHideableColumn"]}]};var Yt=function(){function t(t){this.page=t,this.currentChanged=new r.EventEmitter(!1),t.size=10}return t.prototype.ngOnInit=function(){var t=this;this._pageSubscription=this.page.change.subscribe(function(e){return t.currentChanged.emit(e)})},t.prototype.ngOnDestroy=function(){this._pageSubscription.unsubscribe()},Object.defineProperty(t.prototype,"pageSize",{get:function(){return this.page.size},set:function(t){"number"==typeof t&&(this.page.size=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalItems",{get:function(){return this.page.totalItems},set:function(t){"number"==typeof t&&(this.page.totalItems=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lastPage",{get:function(){return this.page.last},set:function(t){"number"==typeof t&&(this.page.last=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPage",{get:function(){return this.page.current},set:function(t){"number"==typeof t&&(this.page.current=t)},enumerable:!0,configurable:!0}),t.prototype.previous=function(){this.page.previous()},t.prototype.next=function(){this.page.next()},Object.defineProperty(t.prototype,"firstItem",{get:function(){return this.page.firstItem},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lastItem",{get:function(){return this.page.lastItem},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"middlePages",{get:function(){var t=[];return this.page.current>1&&t.push(this.page.current-1),t.push(this.page.current),this.page.current<this.page.last&&t.push(this.page.current+1),t},enumerable:!0,configurable:!0}),t}();Yt.decorators=[{type:r.Component,args:[{selector:"clr-dg-pagination",template:'\n <ul class="pagination" *ngIf="page.last > 1">\n <li *ngIf="page.current > 1">\n <button \n class="pagination-previous" \n (click)="page.previous()"\n type="button"></button>\n </li>\n <li *ngIf="page.current > 2">\n <button (click)="page.current = 1" type="button">1</button>\n </li>\n <li *ngIf="page.current > 3">...</li>\n <li *ngFor="let pageNum of middlePages" [class.pagination-current]="pageNum === page.current">\n <button \n *ngIf="pageNum !== page.current; else noButton" \n (click)="page.current = pageNum"\n type="button">{{pageNum}}</button>\n <ng-template #noButton>{{pageNum}}</ng-template>\n </li>\n <li *ngIf="page.current < page.last - 2">...</li>\n <li *ngIf="page.current < page.last - 1">\n <button \n (click)="page.current = page.last"\n type="button">{{page.last}}</button>\n </li>\n <li *ngIf="page.current < page.last">\n <button \n class="pagination-next" \n (click)="page.next()"\n type="button"></button>\n </li>\n </ul>\n ',styles:[":host { display: block; }"]}]}],Yt.ctorParameters=function(){return[{type:nt}]},Yt.propDecorators={pageSize:[{type:r.Input,args:["clrDgPageSize"]}],totalItems:[{type:r.Input,args:["clrDgTotalItems"]}],lastPage:[{type:r.Input,args:["clrDgLastPage"]}],currentPage:[{type:r.Input,args:["clrDgPage"]}],currentChanged:[{type:r.Output,args:["clrDgPageChange"]}]};var Kt=function(){function t(t,e,n,r){this.selection=t,this.rowActionService=e,this.expand=n,this.hideableColumnService=r,this.SELECTION_TYPE=Mt}return Object.defineProperty(t.prototype,"replace",{get:function(){return this.expand.replace},set:function(t){this.expand.replace=!!t},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this,e=this.hideableColumnService.getColumns();this.updateCellsForColumns(e),this.cells.changes.subscribe(function(e){var n=t.hideableColumnService.getColumns();e.length===n.length&&t.updateCellsForColumns(n)}),this.subscription=this.hideableColumnService.columnListChange.subscribe(function(e){e.length===t.cells.length&&t.updateCellsForColumns(e)})},t.prototype.updateCellsForColumns=function(t){this.cells.forEach(function(e,n){var r=t[n];r&&(e.id=r.id)})},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t}();Kt.decorators=[{type:r.Component,args:[{selector:"clr-dg-row-detail",template:'\n <ng-container *ngIf="!replace">\n <clr-dg-cell class="datagrid-fixed-column"\n *ngIf="selection.selectionType === SELECTION_TYPE.Multi \n || selection.selectionType === SELECTION_TYPE.Single"></clr-dg-cell>\n <clr-dg-cell *ngIf="rowActionService.hasActionableRow" class="datagrid-fixed-column"></clr-dg-cell>\n <clr-dg-cell class="datagrid-fixed-column"></clr-dg-cell>\n </ng-container>\n <ng-content></ng-content>\n ',host:{"[class.datagrid-row-flex]":"true","[class.datagrid-row-detail]":"!replace","[class.datagrid-container]":"cells.length === 0"}}]}],Kt.ctorParameters=function(){return[{type:Dt},{type:lt},{type:W},{type:It}]},Kt.propDecorators={cells:[{type:r.ContentChildren,args:[kt]}],replace:[{type:r.Input,args:["clrDgReplace"]}]};var Xt=function(){function t(t,e,n){var r=this;this.el=t,this.organizer=e,this.domAdapter=n,this.subscription=e.scrollbar.subscribe(function(){return r.computeScrollbarWidth()})}return t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.computeScrollbarWidth=function(){this.organizer.scrollbarWidth.next(this.domAdapter.scrollBarWidth(this.el.nativeElement))},t}();Xt.decorators=[{type:r.Directive,args:[{selector:"[clrDgBody]"}]}],Xt.ctorParameters=function(){return[{type:r.ElementRef},{type:Z},{type:Q}]};var $t="datagrid-computing-columns-width",Qt="datagrid-fixed-width",Zt=function(){function t(t,e,n){var r=this;this.el=t,this.renderer=e,this.subscription=n.clearWidths.subscribe(function(){return r.clearWidth()})}return t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.clearWidth=function(){this.renderer.removeClass(this.el.nativeElement,Qt),this.renderer.setStyle(this.el.nativeElement,"width",null)},t.prototype.setWidth=function(t,e){t?this.renderer.addClass(this.el.nativeElement,Qt):this.renderer.removeClass(this.el.nativeElement,Qt),this.renderer.setStyle(this.el.nativeElement,"width",e+"px")},t}();Zt.decorators=[{type:r.Directive,args:[{selector:"clr-dg-cell"}]}],Zt.ctorParameters=function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:Z}]};var Jt=function(){function t(t,e,n,i,o){this.el=t,this.renderer=e,this.organizer=n,this.domAdapter=i,this.dragDispatcher=o,this.columnResizeBy=0,this.dragWithinMinWidth=!1,this.resizeEmitter=new r.EventEmitter,this.subscriptions=[],this.columnEl=t.nativeElement}return t.prototype.ngOnDestroy=function(){this.dragDispatcher.destroy(),this.subscriptions.forEach(function(t){return t.unsubscribe()})},t.prototype.ngAfterViewInit=function(){var t=this;this.handleTrackerEl=this.dragDispatcher.handleTrackerRef.nativeElement,this.dragDispatcher.addDragListener(),this.subscriptions.push(this.dragDispatcher.onDragStart.subscribe(function(){return t.dragStartHandler()})),this.subscriptions.push(this.dragDispatcher.onDragMove.subscribe(function(e){return t.dragMoveHandler(e)})),this.subscriptions.push(this.dragDispatcher.onDragEnd.subscribe(function(){return t.dragEndHandler()}))},t.prototype.dragStartHandler=function(){this.columnMinWidth||(this.columnMinWidth=this.domAdapter.minWidth(this.columnEl)),this.renderer.setStyle(this.handleTrackerEl,"display","block"),this.renderer.setStyle(document.body,"cursor","col-resize"),this.dragDistancePositionX=0,this.columnRectWidth=this.domAdapter.clientRectWidth(this.columnEl),this.pageStartPositionX=this.domAdapter.clientRectRight(this.columnEl)},t.prototype.dragMoveHandler=function(t){var e=t.pageX||t.changedTouches[0].pageX;this.dragDistancePositionX=this.getPositionWithinMax(e-this.pageStartPositionX),this.renderer.setStyle(this.handleTrackerEl,"right",-1*this.dragDistancePositionX+"px")},t.prototype.dragEndHandler=function(){this.renderer.setStyle(this.handleTrackerEl,"right","0px"),this.renderer.setStyle(this.handleTrackerEl,"display","none"),this.renderer.setStyle(document.body,"cursor","auto"),this.dragDistancePositionX&&(this.columnResizeBy=this.dragDistancePositionX,this.resizeEmitter.emit(this.columnRectWidth+this.columnResizeBy),this.organizer.resize())},t.prototype.getPositionWithinMax=function(t){return t<0?Math.abs(t)<this.columnRectWidth-this.columnMinWidth?(this.dragWithinMinWidth&&(this.dragWithinMinWidth=!1,this.renderer.removeClass(this.handleTrackerEl,"exceeded-max")),t):(this.dragWithinMinWidth||(this.dragWithinMinWidth=!0,this.renderer.addClass(this.handleTrackerEl,"exceeded-max")),this.columnMinWidth-this.columnRectWidth):(this.dragWithinMinWidth&&(this.dragWithinMinWidth=!1,this.renderer.removeClass(this.handleTrackerEl,"exceeded-max")),t)},t}();Jt.decorators=[{type:r.Directive,args:[{selector:"clr-dg-column",providers:[_t]}]}],Jt.ctorParameters=function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:Z},{type:Q},{type:_t}]},Jt.propDecorators={resizeEmitter:[{type:r.Output,args:["clrDgColumnResize"]}]};var te=function(){function t(t,e,n){var r=this;this.el=t,this.renderer=e,this.subscription=n.scrollbarWidth.subscribe(function(t){return r.accountForScrollbar(t)})}return t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.accountForScrollbar=function(t){this.renderer.setStyle(this.el.nativeElement,"padding-right",t+"px")},t}();te.decorators=[{type:r.Directive,args:[{selector:"[clrDgHead]"}]}],te.ctorParameters=function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:Z}]};var ee=function(){function t(t,e,n,r,i){var o=this;this.el=t,this.renderer=e,this.organizer=n,this.domAdapter=r,this.columnResizer=i,this.subscriptions=[],this.widthSet=!1,this.subscriptions.push(n.clearWidths.subscribe(function(){return o.clearWidth()})),this.subscriptions.push(n.detectStrictWidths.subscribe(function(){return o.detectStrictWidth()}))}return t.prototype.ngOnDestroy=function(){this.subscriptions.forEach(function(t){return t.unsubscribe()})},t.prototype.clearWidth=function(){this.widthSet&&!this.columnResizer.columnResizeBy&&this.renderer.setStyle(this.el.nativeElement,"width",null)},t.prototype.detectStrictWidth=function(){this.columnResizer.columnResizeBy?this.strictWidth=this.columnResizer.columnRectWidth+this.columnResizer.columnResizeBy:this.strictWidth=this.domAdapter.userDefinedWidth(this.el.nativeElement)},t.prototype.computeWidth=function(){var t=this.strictWidth;return t||(t=this.domAdapter.scrollWidth(this.el.nativeElement)),t},t.prototype.setWidth=function(t){if(this.strictWidth)return this.columnResizer.columnResizeBy&&(this.renderer.setStyle(this.el.nativeElement,"width",t+"px"),this.columnResizer.columnResizeBy=0,this.widthSet=!1),void this.renderer.addClass(this.el.nativeElement,Qt);this.renderer.removeClass(this.el.nativeElement,Qt),this.renderer.setStyle(this.el.nativeElement,"width",t+"px"),this.widthSet=!0},t}();ee.decorators=[{type:r.Directive,args:[{selector:"clr-dg-column"}]}],ee.ctorParameters=function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:Z},{type:Q},{type:Jt}]};var ne=function(){function t(t,e,n,r,i,o){var s=this;this.organizer=t,this.items=e,this.page=n,this.domAdapter=r,this.el=i,this.renderer=o,this._heightSet=!1,this._subscriptions=[],this.columnsSizesStable=!1,this.shouldStabilizeColumns=!0,this._subscriptions.push(t.computeWidths.subscribe(function(){return s.computeHeadersWidth()})),this._subscriptions.push(this.page.sizeChange.subscribe(function(){s._heightSet&&s.resetDatagridHeight()})),this._subscriptions.push(this.items.change.subscribe(function(){return s.shouldStabilizeColumns=!0}))}return t.prototype.ngAfterContentInit=function(){var t=this;this._subscriptions.push(this.headers.changes.subscribe(function(){t.columnsSizesStable=!1,t.stabilizeColumns()}))},t.prototype.ngAfterViewChecked=function(){var t=this;this.shouldStabilizeColumns&&this.stabilizeColumns(),this.shouldComputeHeight()&&setTimeout(function(){t.computeDatagridHeight()})},t.prototype.shouldComputeHeight=function(){return!this._heightSet&&this.page.size>0&&this.items.displayed.length===this.page.size},t.prototype.computeDatagridHeight=function(){var t=this.domAdapter.computedHeight(this.el.nativeElement);this.renderer.setStyle(this.el.nativeElement,"height",t+"px"),this._heightSet=!0},t.prototype.resetDatagridHeight=function(){this.renderer.setStyle(this.el.nativeElement,"height",""),this._heightSet=!1},t.prototype.ngOnDestroy=function(){this._subscriptions.forEach(function(t){return t.unsubscribe()})},t.prototype.computeHeadersWidth=function(){var t=this,e=this.headers.length,n=!0;this.headers.forEach(function(r,i){r.strictWidth||(n=!1),e===i+1&&n&&delete r.strictWidth,t.organizer.widths[i]={px:r.computeWidth(),strict:!!r.strictWidth}}),this.headers.forEach(function(e,n){return e.setWidth(t.organizer.widths[n].px)})},t.prototype.stabilizeColumns=function(){var t=this;this.shouldStabilizeColumns=!1,this.columnsSizesStable?setTimeout(function(){t.organizer.scrollbar.next()}):this.items.displayed.length>0&&(this.organizer.resize(),this.columnsSizesStable=!0)},t}();ne.decorators=[{type:r.Directive,args:[{selector:"clr-datagrid",providers:[Q]}]}],ne.ctorParameters=function(){return[{type:Z},{type:St},{type:nt},{type:Q},{type:r.ElementRef},{type:r.Renderer2}]},ne.propDecorators={headers:[{type:r.ContentChildren,args:[ee]}]};var re=function(){function t(t){var e=this;this.organizer=t,this.subscription=t.alignColumns.subscribe(function(){return e.setWidths()})}return t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.setWidths=function(){var t=this;this.organizer.widths.length===this.cells.length&&this.cells.forEach(function(e,n){var r=t.organizer.widths[n];e.setWidth(r.strict,r.px)})},t.prototype.ngAfterContentInit=function(){var t=this;this.cells.changes.subscribe(function(){t.setWidths()})},t.prototype.ngAfterViewInit=function(){this.setWidths()},t}();re.decorators=[{type:r.Directive,args:[{selector:"clr-dg-row, clr-dg-row-detail"}]}],re.ctorParameters=function(){return[{type:Z}]},re.propDecorators={cells:[{type:r.ContentChildren,args:[Zt]}]};var ie=function(){function t(t,e,n){var r=this;this.el=t,this.renderer=e,this.subscriptions=[],this.subscriptions.push(n.tableMode.subscribe(function(t){return r.tableMode(t)})),this.subscriptions.push(n.noLayout.subscribe(function(t){return r.noLayout(t)}))}return t.prototype.ngOnDestroy=function(){this.subscriptions.forEach(function(t){return t.unsubscribe()})},t.prototype.ngAfterViewInit=function(){this.outsideContainer.createEmbeddedView(this.projected)},t.prototype.tableMode=function(t){t?(this.insideContainer.insert(this.outsideContainer.detach(0),0),this.renderer.addClass(this.el.nativeElement,$t)):(this.renderer.removeClass(this.el.nativeElement,$t),this.outsideContainer.insert(this.insideContainer.detach(0),0))},t.prototype.noLayout=function(t){t?this.renderer.addClass(this.el.nativeElement,"datagrid-no-layout"):this.renderer.removeClass(this.el.nativeElement,"datagrid-no-layout")},t}();ie.decorators=[{type:r.Component,args:[{selector:"clr-dg-table-wrapper",template:'\n <ng-template #head><ng-content select="[clrDgHead]"></ng-content></ng-template>\n <ng-container #outside></ng-container>\n <div clrDgBody class="datagrid-body">\n <ng-container #inside></ng-container>\n <ng-content></ng-content>\n </div>\n '}]}],ie.ctorParameters=function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:Z}]},ie.propDecorators={projected:[{type:r.ViewChild,args:["head"]}],outsideContainer:[{type:r.ViewChild,args:["outside",{read:r.ViewContainerRef}]}],insideContainer:[{type:r.ViewChild,args:["inside",{read:r.ViewContainerRef}]}]};var oe=[Vt,Bt,Ht,Ot,zt,qt,st,Ct,Lt,Kt,Ut,kt,Wt,Yt,Et,ne,ie,te,ee,Xt,Jt,re,Zt,ht,dt,yt,J,ct],se=function(){return function(){}}();se.decorators=[{type:r.NgModule,args:[{imports:[i.CommonModule,d,U,s.b,x,I,$],declarations:[oe],exports:[oe,Y]}]}],se.ctorParameters=function(){return[]};var ae=function(){function t(t){this.parent=t,this.expanded=!1,this.expandedChange=new r.EventEmitter(!1),this.expandable=!1,this._changedChildren=0,this._fullyInitialized=!1,this._changed=!1,t&&t.addChild()}return Object.defineProperty(t.prototype,"getChangedValue",{get:function(){return this._changed||this._changedChildren>0&&!this.expanded},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"setChangedValue",{set:function(t){this._changed=t,this.parent&&this._fullyInitialized&&(t?this.parent._changedChildren++:this.parent._changedChildren--)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._fullyInitialized=!0},t.prototype.addChild=function(){this.expandable=!0},t.prototype.toggleExpand=function(){this.expandable&&(this.expanded=!this.expanded,this.expandedChange.emit(this.expanded))},t}();ae.decorators=[{type:r.Component,args:[{selector:"clr-stack-block",template:'\n <dt class="stack-block-label" (click)="toggleExpand()">\n <ng-content select="clr-stack-label"></ng-content>\n </dt>\n <dd class="stack-block-content">\n <ng-content></ng-content>\n </dd>\n \x3c!-- FIXME: remove this string concatenation when boolean states are supported --\x3e\n <div [@collapse]="\'\'+!expanded" class="stack-children">\n <ng-content select="clr-stack-block"></ng-content>\n </div>\n ',styles:["\n :host { display: block; }\n "],host:{"[class.stack-block]":"true"},animations:[Object(c.trigger)("collapse",[Object(c.state)("true",Object(c.style)({height:0,"overflow-y":"hidden"})),Object(c.transition)("true => false",[Object(c.animate)("0.2s ease-in-out",Object(c.style)({height:"*","overflow-y":"hidden"}))]),Object(c.transition)("false => true",[Object(c.style)({height:"*","overflow-y":"hidden"}),Object(c.animate)("0.2s ease-in-out")])])]}]}],ae.ctorParameters=function(){return[{type:ae,decorators:[{type:r.SkipSelf},{type:r.Optional}]}]},ae.propDecorators={expanded:[{type:r.HostBinding,args:["class.stack-block-expanded"]},{type:r.Input,args:["clrSbExpanded"]}],expandedChange:[{type:r.Output,args:["clrSbExpandedChange"]}],expandable:[{type:r.HostBinding,args:["class.stack-block-expandable"]},{type:r.Input,args:["clrSbExpandable"]}],getChangedValue:[{type:r.HostBinding,args:["class.stack-block-changed"]}],setChangedValue:[{type:r.Input,args:["clrSbNotifyChange"]}]};var ce=function(){function t(){this.editable=!1,this.save=new r.EventEmitter(!1),this._editMode=!1,this.editingChange=new r.EventEmitter(!1)}return Object.defineProperty(t.prototype,"editing",{get:function(){return this.editable&&this._editMode},set:function(t){this.editable&&(this._editMode=t,this.editingChange.emit(t),t||this.save.emit(null))},enumerable:!0,configurable:!0}),t}();ce.decorators=[{type:r.Component,args:[{selector:"clr-stack-view",template:'\n <ng-content select="clr-stack-header"></ng-content>\n <dl class="stack-view"><ng-content></ng-content></dl>\n ',styles:["\n :host { display: block; }\n "]}]}],ce.ctorParameters=function(){return[]},ce.propDecorators={save:[{type:r.Output,args:["clrStackSave"]}]};var ue=function(){return function(){}}();ue.decorators=[{type:r.Directive,args:[{selector:"clr-stack-label, clr-stack-content"}]}],ue.ctorParameters=function(){return[]};var le=function(){return function(t){this.stackView=t}}();le.decorators=[{type:r.Component,args:[{selector:"clr-stack-header",template:'\n <h4 class="stack-header">\n <span class="stack-title"><ng-content></ng-content></span>\n \n <span class="stack-actions">\n <ng-content select=".stack-action"></ng-content>\n \x3c!-- Undocumented experimental feature: inline editing. --\x3e\n <button *ngIf="stackView.editable" class="stack-action btn btn-sm btn-link" \n (click)="stackView.editing = !stackView.editing" type="button">\n Edit\n </button>\n \x3c!-- End of undocumented experimental feature. --\x3e\n </span>\n </h4>\n ',styles:["\n :host { display: block; }\n "]}]}],le.ctorParameters=function(){return[{type:ce}]};var pe=function(){return function(t){var e=this;this.stackView=t,this.modelChange=new r.EventEmitter(!1),this.stackView.editable=!0,this.stackView.editingChange.subscribe(function(t){t||e.modelChange.emit(e.model)})}}(),he=function(t){function e(e){var n=t.call(this,e)||this;return n.stackView=e,n.type="text",n}return l(e,t),e}(pe);he.decorators=[{type:r.Component,args:[{selector:"clr-stack-input",inputs:["model: clrModel","type"],outputs:["modelChange: clrModelChange"],template:'\n <span *ngIf="!stackView.editing">{{model}}</span>\n <input [type]="type" *ngIf="stackView.editing" [(ngModel)]="model"/>\n '}]}],he.ctorParameters=function(){return[{type:ce}]};var de=function(t){function e(e){var n=t.call(this,e)||this;return n.stackView=e,n}return l(e,t),e}(pe);de.decorators=[{type:r.Component,args:[{selector:"clr-stack-select",inputs:["model: clrModel"],outputs:["modelChange: clrModelChange"],template:'\n <span *ngIf="!stackView.editing">{{model}}</span>\n <div class="select" *ngIf="stackView.editing" >\n <select [(ngModel)]="model">\n <ng-content></ng-content>\n </select>\n </div>\n '}]}],de.ctorParameters=function(){return[{type:ce}]};var fe=[ce,le,ae,ue,he,de],ye=function(){return function(){}}();ye.decorators=[{type:r.NgModule,args:[{imports:[i.CommonModule,s.b],declarations:[fe],exports:[fe]}]}],ye.ctorParameters=function(){return[]};var ge=function(){function t(t){this.parent=t,this._selected=!1,this._indeterminate=!1}return t.prototype.children=function(){},t.prototype.selectedChanged=function(){},t.prototype.indeterminateChanged=function(){},Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=t,this.indeterminate=!1,this.children.forEach(function(e){return e.parentChanged(t)}),this.parent&&this.parent.childChanged(),this.selectedChanged()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"indeterminate",{get:function(){return this._indeterminate},set:function(t){t=!!t,this._indeterminate!==t&&(this._indeterminate=t,this.indeterminateChanged())},enumerable:!0,configurable:!0}),t.prototype.childChanged=function(){var t=!1,e=this._selected,n=this._indeterminate;this._selected=!0,this._indeterminate=!1;for(var r=0,i=this.children;r<i.length;r++){var o=i[r];if(o.indeterminate){this._selected=!1,this._indeterminate=!0;break}if(o.selected){if(t=!0,!1===this._selected){this._indeterminate=!0;break}}else if(this._selected=!1,t){this._indeterminate=!0;break}}!this.parent||this._selected===e&&this._indeterminate===n||this.parent.childChanged(),this.selected!==e&&this.selectedChanged(),this.indeterminate!==n&&this.indeterminateChanged()},t.prototype.parentChanged=function(t){t&&!this.selected&&(this._selected=!0,this.indeterminate=!1,this.children.forEach(function(t){return t.parentChanged(!0)}),this.selectedChanged()),t||!this.selected&&!this.indeterminate||(this._selected=!1,this.indeterminate=!1,this.children.forEach(function(t){return t.parentChanged(!1)}),this.selectedChanged())},t}(),ve=function(){return function(){this.selectable=!1}}();ve.decorators=[{type:r.Injectable}],ve.ctorParameters=function(){return[]};var me=function(t){function e(e,n,i){var o=t.call(this,n)||this;return o.nodeExpand=e,o.parent=n,o.treeSelectionService=i,o._children=[],o.nodeSelectedChange=new r.EventEmitter(!0),o.nodeIndeterminateChanged=new r.EventEmitter(!0),o.parent&&o.parent.register(o),o}return l(e,t),Object.defineProperty(e.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),e.prototype.checkIfChildNodeRegistered=function(t){return this.children.indexOf(t)>-1},e.prototype.register=function(t){this.checkIfChildNodeRegistered(t)||(this.children.push(t),this.selectable&&this.selected&&t.parentChanged(this.selected))},e.prototype.unregister=function(t){var e=this.children.indexOf(t);e>-1&&this.children.splice(e,1)},e.prototype.activateSelection=function(){this.treeSelectionService&&!this.treeSelectionService.selectable&&(this.treeSelectionService.selectable=!0)},Object.defineProperty(e.prototype,"nodeSelected",{set:function(t){this.activateSelection(),void 0!==t&&null!==t&&this.selected!==t&&(this.selected=t)},enumerable:!0,configurable:!0}),e.prototype.selectedChanged=function(){this.nodeSelectedChange.emit(this.selected)},Object.defineProperty(e.prototype,"selectable",{get:function(){return!!this.treeSelectionService&&this.treeSelectionService.selectable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodeIndeterminate",{set:function(t){this.indeterminate=t,this.activateSelection()},enumerable:!0,configurable:!0}),e.prototype.indeterminateChanged=function(){this.nodeIndeterminateChanged.emit(this.indeterminate)},e.prototype.toggleExpand=function(){this.nodeExpand.expanded=!this.nodeExpand.expanded},Object.defineProperty(e.prototype,"caretDirection",{get:function(){return this.nodeExpand.expanded?"down":"right"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expanded",{get:function(){return this.nodeExpand.expanded},set:function(t){t=!!t,this.nodeExpand.expanded!==t&&(this.nodeExpand.expanded=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this.expanded&&!this.nodeExpand.loading?"expanded":"collapsed"},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.parent&&this.parent.unregister(this)},e}(ge);me.decorators=[{type:r.Component,args:[{selector:"clr-tree-node",template:'\n <div class="clr-tree-node-content-container">\n <button\n type="button"\n class="clr-treenode-caret"\n (click)="toggleExpand()"\n *ngIf="nodeExpand.expandable && !nodeExpand.loading">\n <clr-icon\n class="clr-treenode-caret-icon"\n shape="caret"\n [attr.dir]="caretDirection"></clr-icon>\n </button>\n <div class="clr-treenode-spinner-container" *ngIf="nodeExpand.expandable && nodeExpand.loading">\n <span class="clr-treenode-spinner spinner">\n Loading...\n </span>\n </div>\n <clr-checkbox\n class="clr-treenode-checkbox"\n *ngIf="selectable"\n [(ngModel)]="selected"\n [(clrIndeterminate)]="indeterminate"></clr-checkbox>\n <div class="clr-treenode-content">\n <ng-content></ng-content>\n </div>\n </div>\n \x3c!-- FIXME: remove this string concatenation when boolean states are supported --\x3e\n <div\n class="clr-treenode-children"\n [@childNodesState]="state">\n <ng-content select="clr-tree-node"></ng-content>\n <ng-content select="[clrIfExpanded]"></ng-content>\n </div>\n ',providers:[W,{provide:j,useExisting:W},{provide:ve,useFactory:function(t){return t||new ve},deps:[[new r.Optional,new r.SkipSelf,ve]]}],animations:[Object(c.trigger)("childNodesState",[Object(c.state)("expanded",Object(c.style)({height:"*","overflow-y":"hidden"})),Object(c.state)("collapsed",Object(c.style)({height:0,"overflow-y":"hidden"})),Object(c.transition)("expanded <=> collapsed",Object(c.animate)("0.2s ease-in-out"))])],host:{class:".clr-tree-node"}}]}],me.ctorParameters=function(){return[{type:W},{type:me,decorators:[{type:r.Optional},{type:r.SkipSelf}]},{type:ve}]},me.propDecorators={nodeSelected:[{type:r.Input,args:["clrSelected"]}],nodeSelectedChange:[{type:r.Output,args:["clrSelectedChange"]}],nodeIndeterminate:[{type:r.Input,args:["clrIndeterminate"]}],nodeIndeterminateChanged:[{type:r.Output,args:["clrIndeterminateChange"]}]};var be=[me],_e=function(){return function(){}}();_e.decorators=[{type:r.NgModule,args:[{imports:[i.CommonModule,d,s.b,U],declarations:[be],exports:[be,Y]}]}],_e.ctorParameters=function(){return[]};var xe=function(){return function(){}}();xe.decorators=[{type:r.NgModule,args:[{exports:[se,ye,_e]}]}],xe.ctorParameters=function(){return[]};var we=0,Oe=new r.InjectionToken("IF_ACTIVE_ID"),Se={provide:Oe,useFactory:function(){return++we}},Ce=function(){function t(){this._currentChange=new o.a}return Object.defineProperty(t.prototype,"currentChange",{get:function(){return this._currentChange.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"current",{get:function(){return this._current},set:function(t){this._current!==t&&(this._current=t,this._currentChange.next(t))},enumerable:!0,configurable:!0}),t}();Ce.decorators=[{type:r.Injectable}],Ce.ctorParameters=function(){return[]};var Ee=function(){function t(t,e,n,i){var o=this;this.ifActiveService=t,this.id=e,this.template=n,this.container=i,this.wasActive=!1,this.activeChange=new r.EventEmitter(!1),this.checkAndUpdateView(t.current),this.subscription=this.ifActiveService.currentChange.subscribe(function(t){o.checkAndUpdateView(t)})}return t.prototype.checkAndUpdateView=function(t){var e=t===this.id;e!==this.wasActive&&(this.updateView(e),this.activeChange.emit(e),this.wasActive=e)},Object.defineProperty(t.prototype,"active",{get:function(){return this.ifActiveService.current===this.id},set:function(t){t&&(this.ifActiveService.current=this.id)},enumerable:!0,configurable:!0}),t.prototype.updateView=function(t){t?this.container.createEmbeddedView(this.template):this.container.clear()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t}();Ee.decorators=[{type:r.Directive,args:[{selector:"[clrIfActive]"}]}],Ee.ctorParameters=function(){return[{type:Ce},{type:void 0,decorators:[{type:r.Inject,args:[Oe]}]},{type:r.TemplateRef},{type:r.ViewContainerRef}]},Ee.propDecorators={active:[{type:r.Input,args:["clrIfActive"]}],activeChange:[{type:r.Output,args:["clrIfActiveChange"]}]};var Te=function(){function t(t,e,n){var i=this;this.ifOpenService=t,this.template=e,this.container=n,this.openChange=new r.EventEmitter(!1),this.subscription=this.ifOpenService.openChange.subscribe(function(t){i.updateView(t),i.openChange.emit(t)})}return Object.defineProperty(t.prototype,"open",{get:function(){return this.ifOpenService.open},set:function(t){this.ifOpenService.open=t},enumerable:!0,configurable:!0}),t.prototype.updateView=function(t){t?this.container.createEmbeddedView(this.template):this.container.clear()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t}();Te.decorators=[{type:r.Directive,args:[{selector:"[clrIfOpen]"}]}],Te.ctorParameters=function(){return[{type:Tt},{type:r.TemplateRef},{type:r.ViewContainerRef}]},Te.propDecorators={open:[{type:r.Input,args:["clrIfOpen"]}],openChange:[{type:r.Output,args:["clrIfOpenChange"]}]};var je=[Ee,Te],Pe=function(){return function(){}}();Pe.decorators=[{type:r.NgModule,args:[{imports:[i.CommonModule],declarations:[je],exports:[je]}]}],Pe.ctorParameters=function(){return[]};var Ae=function(){function t(){this._changes=new o.a}return Object.defineProperty(t.prototype,"changes",{get:function(){return this._changes.asObservable()},enumerable:!0,configurable:!0}),t.prototype.closeMenus=function(){this._changes.next(!1)},t}();Ae.decorators=[{type:r.Injectable}],Ae.ctorParameters=function(){return[]};var Ie={provide:Ae,useFactory:function(t){return t||new Ae},deps:[[new r.Optional,new r.SkipSelf,Ae]]},ke=function(){function t(t,e,n){var r=this;this.parent=t,this.ifOpenService=e,this.isMenuClosable=!0,this._subscription=n.changes.subscribe(function(t){return r.ifOpenService.open=t})}return t.prototype.ngOnDestroy=function(){this._subscription.unsubscribe()},t}();ke.decorators=[{type:r.Component,args:[{selector:"clr-dropdown",template:"<ng-content></ng-content>",host:{"[class.dropdown]":"true","[class.open]":"ifOpenService.open"},providers:[Tt,Ie,{provide:jt,useExisting:r.ElementRef}]}]}],ke.ctorParameters=function(){return[{type:ke,decorators:[{type:r.SkipSelf},{type:r.Optional}]},{type:Tt},{type:Ae}]},ke.propDecorators={isMenuClosable:[{type:r.Input,args:["clrCloseMenuOnItemClick"]}]};var Re=function(){function t(t,e,n){this.dropdown=t,this.el=e,this._dropdownService=n}return t.prototype.onDropdownItemClick=function(){this.dropdown.isMenuClosable&&!this.el.nativeElement.classList.contains("disabled")&&this._dropdownService.closeMenus()},t}();Re.decorators=[{type:r.Directive,args:[{selector:"[clrDropdownItem]",host:{"[class.dropdown-item]":"true"}}]}],Re.ctorParameters=function(){return[{type:ke},{type:r.ElementRef},{type:Ae}]},Re.propDecorators={onDropdownItemClick:[{type:r.HostListener,args:["click"]}]};var Me=function(){function t(t,e){var n=this;this.parentHost=e,this.updateAnchor=!1,this.popoverOptions={},this.closeOnOutsideClick=!1,this.el=t.get(r.ElementRef),this.ifOpenService=t.get(Tt),this.renderer=t.get(r.Renderer2),this.anchorElem=e.nativeElement,this.popoverInstance=new g(this.el.nativeElement),this.subscription=this.ifOpenService.openChange.subscribe(function(t){t?n.anchor():n.release()}),this.ifOpenService.open&&this.anchor()}return t.prototype.anchor=function(){this.updateAnchor=!0,this.ignore=this.ifOpenService.originalEvent},t.prototype.release=function(){this.detachOutsideClickListener(),this.popoverInstance.release()},t.prototype.ngAfterViewChecked=function(){var t=this;this.updateAnchor&&(this.updateAnchor=!1,this.popoverInstance.anchor(this.anchorElem,this.anchorPoint,this.popoverPoint,this.popoverOptions).subscribe(function(){t.ifOpenService.open=!1}),this.attachOutsideClickListener())},t.prototype.ngOnDestroy=function(){this.release(),this.subscription.unsubscribe()},Object.defineProperty(t.prototype,"isOffScreen",{get:function(){return!this.ifOpenService.open},enumerable:!0,configurable:!0}),t.prototype.attachOutsideClickListener=function(){var t=this;this.closeOnOutsideClick&&(this.hostListener=this.renderer.listen(this.el.nativeElement,"click",function(e){return t.ignore=e}),this.documentListener=this.renderer.listen("document","click",function(e){e===t.ignore?delete t.ignore:t.ifOpenService.open=!1}))},t.prototype.detachOutsideClickListener=function(){this.closeOnOutsideClick&&(this.hostListener&&(this.hostListener(),delete this.hostListener),this.documentListener&&(this.documentListener(),delete this.documentListener))},t}();Me.decorators=[{type:r.Injectable}],Me.ctorParameters=function(){return[{type:r.Injector},{type:r.ElementRef,decorators:[{type:r.SkipSelf}]}]},Me.propDecorators={isOffScreen:[{type:r.HostBinding,args:["class.is-off-screen"]}]};var De=function(t){function e(e,n,r){var i=this;if(!n)throw new Error("clr-dropdown-menu should only be used inside of a clr-dropdown");return i=t.call(this,e,n)||this,r?(i.anchorPoint=f.RIGHT_TOP,i.popoverPoint=f.LEFT_TOP):(i.anchorPoint=f.BOTTOM_LEFT,i.popoverPoint=f.LEFT_TOP),i.popoverOptions.allowMultipleOpen=!0,i.closeOnOutsideClick=!0,i}return l(e,t),Object.defineProperty(e.prototype,"position",{set:function(t){switch(t){case"top-right":this.anchorPoint=f.TOP_RIGHT,this.popoverPoint=f.RIGHT_BOTTOM;break;case"top-left":this.anchorPoint=f.TOP_LEFT,this.popoverPoint=f.LEFT_BOTTOM;break;case"bottom-right":this.anchorPoint=f.BOTTOM_RIGHT,this.popoverPoint=f.RIGHT_TOP;break;case"bottom-left":this.anchorPoint=f.BOTTOM_LEFT,this.popoverPoint=f.LEFT_TOP;break;case"right-top":this.anchorPoint=f.RIGHT_TOP,this.popoverPoint=f.LEFT_TOP;break;case"right-bottom":this.anchorPoint=f.RIGHT_BOTTOM,this.popoverPoint=f.LEFT_BOTTOM;break;case"left-top":this.anchorPoint=f.LEFT_TOP,this.popoverPoint=f.RIGHT_TOP;break;case"left-bottom":this.anchorPoint=f.LEFT_BOTTOM,this.popoverPoint=f.RIGHT_BOTTOM;break;default:this.anchorPoint=f.BOTTOM_LEFT,this.popoverPoint=f.LEFT_TOP}},enumerable:!0,configurable:!0}),e}(Me);De.decorators=[{type:r.Component,args:[{selector:"clr-dropdown-menu",template:"\n <ng-content></ng-content>\n ",host:{"[class.dropdown-menu]":"true"}}]}],De.ctorParameters=function(){return[{type:r.Injector},{type:r.ElementRef,decorators:[{type:r.Optional},{type:r.Inject,args:[jt]}]},{type:De,decorators:[{type:r.Optional},{type:r.SkipSelf}]}]},De.propDecorators={position:[{type:r.Input,args:["clrPosition"]}]};var Ne=function(){function t(t,e){this.dropdown=t,this.ifOpenService=e,this.isRootLevelToggle=!0,t.parent&&(this.isRootLevelToggle=!1)}return Object.defineProperty(t.prototype,"active",{get:function(){return this.ifOpenService.open},enumerable:!0,configurable:!0}),t.prototype.onDropdownTriggerClick=function(t){this.ifOpenService.toggleWithEvent(t)},t}();Ne.decorators=[{type:r.Directive,args:[{selector:"[clrDropdownTrigger],[clrDropdownToggle]",host:{"[class.dropdown-toggle]":"isRootLevelToggle","[class.dropdown-item]":"!isRootLevelToggle","[class.expandable]":"!isRootLevelToggle","[class.active]":"active"}}]}],Ne.ctorParameters=function(){return[{type:ke},{type:Tt}]},Ne.propDecorators={onDropdownTriggerClick:[{type:r.HostListener,args:["click",["$event"]]}]};var Le=[ke,De,Ne,Re],Fe=function(){return function(){}}();Fe.decorators=[{type:r.NgModule,args:[{imports:[i.CommonModule,x],declarations:[Le],exports:[Le,Pe,d]}]}],Fe.ctorParameters=function(){return[]};var Ve=["alert-info","alert-warning","alert-danger","alert-success","info","warning","danger","success"],Be=function(){function t(){this.defaultIconShape="info-circle",this._alertIconShape="",this._alertType="info"}return Object.defineProperty(t.prototype,"alertType",{get:function(){return this._alertType},set:function(t){Ve.indexOf(t)>-1&&(this._alertType=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alertIconShape",{get:function(){return""===this._alertIconShape?this.iconInfoFromType(this._alertType).shape:this._alertIconShape},set:function(t){t?t!==this._alertIconShape&&(this._alertIconShape=t):this._alertIconShape=""},enumerable:!0,configurable:!0}),t.prototype.iconInfoFromType=function(t,e){void 0===e&&(e="shape");var n={shape:"",cssClass:""};switch(t){case"warning":case"alert-warning":n.shape="exclamation-triangle",n.cssClass="alert-warning";break;case"danger":case"alert-danger":n.shape="exclamation-circle",n.cssClass="alert-danger";break;case"success":case"alert-success":n.shape="check-circle",n.cssClass="alert-success";break;default:n.shape=this.defaultIconShape,n.cssClass="alert-info"}return n},t}();Be.decorators=[{type:r.Injectable}],Be.ctorParameters=function(){return[]};var He=function(){function t(){this.allAlerts=new r.QueryList,this._current=0,this._change=new o.a}return Object.defineProperty(t.prototype,"changes",{get:function(){return this._change.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"current",{get:function(){return this._current},set:function(t){t!==this._current&&(this._current=t,this._change.next(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeAlerts",{get:function(){return this.allAlerts.filter(function(t){return!t._closed})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentAlert",{get:function(){return this.activeAlerts[this.current]},set:function(t){this.current=this.activeAlerts.indexOf(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.activeAlerts.length},enumerable:!0,configurable:!0}),t.prototype.manage=function(t){this.allAlerts=t},t.prototype.next=function(){this.current=this.current===this.activeAlerts.length-1?0:this.current+1},t.prototype.previous=function(){this.current=0===this.current?this.activeAlerts.length-1:this.current-1},t.prototype.close=function(){this.previous()},t}();He.decorators=[{type:r.Injectable}],He.ctorParameters=function(){return[]};var ze=function(){function t(t,e,n){this.iconService=t,this.cdr=e,this.multiAlertService=n,this.isSmall=!1,this.closable=!0,this.isAppLevel=!1,this._closed=!1,this._closedChanged=new r.EventEmitter(!1),this.previouslyHidden=!1,this.hidden=!1}return Object.defineProperty(t.prototype,"alertType",{get:function(){return this.iconService.alertType},set:function(t){this.iconService.alertType=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alertIconShape",{set:function(t){this.iconService.alertIconShape=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alertClass",{get:function(){return this.iconService.iconInfoFromType(this.iconService.alertType).cssClass},enumerable:!0,configurable:!0}),t.prototype.detectChangesIfNeeded=function(){this.previouslyHidden!==this.hidden&&(this.previouslyHidden=this.hidden,this.cdr.detectChanges())},Object.defineProperty(t.prototype,"isHidden",{get:function(){return this.multiAlertService&&(this.multiAlertService.currentAlert===this?!0===this.hidden&&(this.previouslyHidden=!0,this.hidden=!1):!1===this.hidden&&(this.previouslyHidden=!1,this.hidden=!0),this.detectChangesIfNeeded()),this.hidden},enumerable:!0,configurable:!0}),t.prototype.close=function(){this.closable&&(this._closed=!0,this.multiAlertService&&this.multiAlertService.close(),this._closedChanged.emit(!0))},t.prototype.open=function(){this._closed=!1,this._closedChanged.emit(!1)},t}();ze.decorators=[{type:r.Component,args:[{selector:"clr-alert",providers:[Be],template:'\n \x3c!--\n ~ Copyright (c) 2016-2017 VMware, Inc. All Rights Reserved.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n --\x3e\n\n <div\n *ngIf="!_closed"\n class="alert"\n [ngClass]="alertClass"\n [class.alert-hidden]="isHidden"\n [class.alert-sm]="isSmall"\n [class.alert-app-level]="isAppLevel">\n <div class="alert-items">\n <ng-content></ng-content>\n </div>\n <button type="button" class="close" aria-label="Close" *ngIf="closable" (click)="close()">\n <clr-icon aria-hidden="true" shape="close"></clr-icon>\n </button>\n </div>\n'}]}],ze.ctorParameters=function(){return[{type:Be},{type:r.ChangeDetectorRef},{type:He,decorators:[{type:r.Optional}]}]},ze.propDecorators={isSmall:[{type:r.Input,args:["clrAlertSizeSmall"]}],closable:[{type:r.Input,args:["clrAlertClosable"]}],isAppLevel:[{type:r.Input,args:["clrAlertAppLevel"]}],_closed:[{type:r.Input,args:["clrAlertClosed"]}],_closedChanged:[{type:r.Output,args:["clrAlertClosedChange"]}],alertType:[{type:r.Input,args:["clrAlertType"]}],alertIconShape:[{type:r.Input,args:["clrAlertIcon"]}]};var Ue=function(){return function(t){this.iconService=t}}();Ue.decorators=[{type:r.Component,args:[{selector:".alert-item:not(.static), clr-alert-item",template:'\n <div class="alert-icon-wrapper">\n <clr-icon class="alert-icon" [attr.shape]="iconService.alertIconShape"></clr-icon>\n </div>\n <ng-content></ng-content>\n ',host:{class:"alert-item"}}]}],Ue.ctorParameters=function(){return[{type:Be}]};var We=function(){function t(t){this.multiAlertService=t,this.currentAlertIndexChange=new r.EventEmitter(!1),this.currentAlertChange=new r.EventEmitter(!1)}return Object.defineProperty(t.prototype,"_inputCurrentIndex",{set:function(t){t&&(this.multiAlertService.current=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentAlertIndex",{get:function(){return this.multiAlertService.current},set:function(t){this.multiAlertService.current=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentAlert",{get:function(){return this.multiAlertService.currentAlert},set:function(t){t&&(this.multiAlertService.currentAlert=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alerts",{get:function(){return this.allAlerts.filter(function(t){return!1===t.isHidden})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentAlertType",{get:function(){return this.multiAlertService.currentAlert?this.multiAlertService.currentAlert.alertType:""},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this.multiAlertService.manage(this.allAlerts),this.multiAlertService.changes.subscribe(function(e){t.currentAlertIndexChange.next(e),t.currentAlertChange.next(t.multiAlertService.currentAlert)})},t}();We.decorators=[{type:r.Component,args:[{selector:"clr-alerts",template:'\n <clr-alerts-pager\n *ngIf="multiAlertService.count > 1"\n [clrCurrentAlertIndex]="currentAlertIndex">\n </clr-alerts-pager>\n <ng-content select="clr-alert"></ng-content>\n ',providers:[He],host:{"[class.alerts]":"true","[class.alert-danger]":"this.currentAlertType == 'danger'","[class.alert-info]":"this.currentAlertType == 'info'","[class.alert-success]":"this.currentAlertType == 'success'","[class.alert-warning]":"this.currentAlertType == 'warning'"},styles:[":host { display: block }"]}]}],We.ctorParameters=function(){return[{type:He}]},We.propDecorators={allAlerts:[{type:r.ContentChildren,args:[ze]}],_inputCurrentIndex:[{type:r.Input,args:["clrCurrentAlertIndex"]}],currentAlertIndexChange:[{type:r.Output,args:["clrCurrentAlertIndexChange"]}],currentAlert:[{type:r.Input,args:["clrCurrentAlert"]}],currentAlertChange:[{type:r.Output,args:["clrCurrentAlertChange"]}]};var Ge=function(){function t(t){this.multiAlertService=t,this.currentAlertChange=new r.EventEmitter(!1),this.currentAlertIndexChange=new r.EventEmitter}return Object.defineProperty(t.prototype,"currentAlert",{get:function(){return this.multiAlertService.currentAlert},set:function(t){t&&(this.multiAlertService.currentAlert=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentAlertIndex",{get:function(){return this.multiAlertService.current},set:function(t){this.multiAlertService.current=t},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.multiAlertServiceChanges=this.multiAlertService.changes.subscribe(function(e){t.currentAlertIndexChange.emit(e),t.currentAlertChange.emit(t.multiAlertService.activeAlerts[e])})},t.prototype.pageUp=function(){this.multiAlertService.next()},t.prototype.pageDown=function(){this.multiAlertService.previous()},t.prototype.ngOnDestroy=function(){this.multiAlertServiceChanges.unsubscribe()},t}();Ge.decorators=[{type:r.Component,args:[{selector:"clr-alerts-pager",template:'\n <div class="alerts-pager-control">\n <div class="alerts-page-down">\n <button class="alerts-pager-button" (click)="pageDown()">\n <clr-icon shape="caret left"></clr-icon>\n </button>\n </div>\n <div class="alerts-pager-text">\n {{this.multiAlertService.current+1}} / {{this.multiAlertService.count}}\n </div>\n <div class="alerts-page-up">\n <button class="alerts-pager-button" (click)="pageUp()">\n <clr-icon shape="caret right"></clr-icon>\n </button>\n </div>\n </div>\n',host:{"[class.alerts-pager]":"true"}}]}],Ge.ctorParameters=function(){return[{type:He}]},Ge.propDecorators={currentAlert:[{type:r.Input,args:["clrCurrentAlert"]}],currentAlertChange:[{type:r.Output,args:["clrCurrentAlertChange"]}],currentAlertIndex:[{type:r.Input,args:["clrCurrentAlertIndex"]}],currentAlertIndexChange:[{type:r.Output,args:["clrCurrentAlertIndexChange"]}]};var qe=[ze,Ue,We,Ge],Ye=function(){return function(){}}();Ye.decorators=[{type:r.NgModule,args:[{imports:[i.CommonModule,d,Fe],declarations:[qe],exports:[qe]}]}],Ye.ctorParameters=function(){return[]};var Ke=function(){return function(){}}();Ke.decorators=[{type:r.NgModule,args:[{exports:[Ye]}]}],Ke.ctorParameters=function(){return[]};var Xe=function(){return function(){}}();Xe.NAV_LEVEL_1=1,Xe.NAV_LEVEL_2=2,Xe.NAV_CLOSE_ALL="NAV_CLOSE_ALL",Xe.NAV_OPEN="NAV_OPEN",Xe.NAV_CLOSE="NAV_CLOSE",Xe.NAV_TOGGLE="NAV_TOGGLE",Xe.NAV_CLASS_HAMBURGER_MENU="open-hamburger-menu",Xe.NAV_CLASS_OVERFLOW_MENU="open-overflow-menu",Xe.NAV_CLASS_TRIGGER_1="header-hamburger-trigger",Xe.NAV_CLASS_TRIGGER_2="header-overflow-trigger",Xe.NAV_CLASS_LEVEL_1="clr-nav-level-1",Xe.NAV_CLASS_LEVEL_2="clr-nav-level-2";var $e=function(){function t(t,e){this._controlCode=t,this._navLevel=e}return Object.defineProperty(t.prototype,"controlCode",{get:function(){return this._controlCode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"navLevel",{get:function(){return this._navLevel},enumerable:!0,configurable:!0}),t}(),Qe=function(){function t(){this.responsiveNavList=[],this.registerNavSubject=new o.a,this.controlNavSubject=new o.a,this.closeAllNavs()}return Object.defineProperty(t.prototype,"registeredNavs",{get:function(){return this.registerNavSubject.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"navControl",{get:function(){return this.controlNavSubject.asObservable()},enumerable:!0,configurable:!0}),t.prototype.registerNav=function(t){t&&!this.isNavRegistered(t)&&(this.responsiveNavList.push(t),this.registerNavSubject.next(this.responsiveNavList))},t.prototype.isNavRegistered=function(t){return this.responsiveNavList.indexOf(t)>-1&&(console.error("Multiple clr-nav-level "+t+" attributes found. Please make sure that only one exists"),!0)},t.prototype.unregisterNav=function(t){var e=this.responsiveNavList.indexOf(t);e>-1&&(this.responsiveNavList.splice(e,1),this.registerNavSubject.next(this.responsiveNavList))},t.prototype.sendControlMessage=function(t,e){var n=new $e(t,e);this.controlNavSubject.next(n)},t.prototype.closeAllNavs=function(){var t=new $e(Xe.NAV_CLOSE_ALL,-999);this.controlNavSubject.next(t)},t}();Qe.decorators=[{type:r.Injectable}],Qe.ctorParameters=function(){return[]};var Ze=function(){function t(t,e){this.elRef=t,this.responsiveNavService=e}return t.prototype.ngOnInit=function(){var t=this;this._classList=this.elRef.nativeElement.classList,this._subscription=this.responsiveNavService.navControl.subscribe({next:function(e){t.processMessage(e)}})},t.prototype.processMessage=function(t){var e=Xe.NAV_CLASS_HAMBURGER_MENU;t.controlCode===Xe.NAV_CLOSE_ALL?(this._classList.remove(Xe.NAV_CLASS_HAMBURGER_MENU),this._classList.remove(Xe.NAV_CLASS_OVERFLOW_MENU)):t.navLevel===Xe.NAV_LEVEL_1?this.controlNav(t.controlCode,e):t.navLevel===Xe.NAV_LEVEL_2&&(e=Xe.NAV_CLASS_OVERFLOW_MENU,this.controlNav(t.controlCode,e))},t.prototype.controlNav=function(t,e){t===Xe.NAV_OPEN?this._classList.add(e):t===Xe.NAV_CLOSE?this._classList.remove(e):t===Xe.NAV_TOGGLE&&this._classList.toggle(e)},t.prototype.ngOnDestroy=function(){this._subscription.unsubscribe()},t}();Ze.decorators=[{type:r.Directive,args:[{selector:"clr-main-container",host:{"[class.main-container]":"true"}}]}],Ze.ctorParameters=function(){return[{type:r.ElementRef},{type:Qe}]};var Je=[Ze],tn=function(){return function(){}}();tn.decorators=[{type:r.NgModule,args:[{imports:[i.CommonModule,d],declarations:[Je],exports:[Je]}]}],tn.ctorParameters=function(){return[]};var en=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e}(pt);en.decorators=[{type:r.Directive,args:[{selector:"clr-main-container"}]}],en.ctorParameters=function(){return[]};var nn=function(t){function e(e,n,r){var i=this;if(!n)throw new Error("clr-header should only be used inside of a clr-main-container");return i=t.call(this,e,n)||this,i.responsiveNavService=r,i}return l(e,t),Object.defineProperty(e.prototype,"flavor",{get:function(){return this.responsiveNavService.responsiveNavList.reduce(function(t,e){return t+e},0)},enumerable:!0,configurable:!0}),e}(ut);nn.decorators=[{type:r.Directive,args:[{selector:"clr-header"}]}],nn.ctorParameters=function(){return[{type:r.ChangeDetectorRef},{type:en,decorators:[{type:r.Optional}]},{type:Qe}]};var rn=function(){function t(t){var e=this;this.responsiveNavService=t,this.isNavLevel1OnPage=!1,this.isNavLevel2OnPage=!1,this._subscription=this.responsiveNavService.registeredNavs.subscribe({next:function(t){e.initializeNavTriggers(t)}})}return Object.defineProperty(t.prototype,"responsiveNavCodes",{get:function(){return Xe},enumerable:!0,configurable:!0}),t.prototype.resetNavTriggers=function(){this.isNavLevel1OnPage=!1,this.isNavLevel2OnPage=!1},t.prototype.initializeNavTriggers=function(t){var e=this;this.resetNavTriggers(),t.length>2?console.error("More than 2 Nav Levels detected."):t.forEach(function(t){t===Xe.NAV_LEVEL_1?e.isNavLevel1OnPage=!0:t===Xe.NAV_LEVEL_2&&(e.isNavLevel2OnPage=!0)})},t.prototype.closeOpenNav=function(){this.responsiveNavService.closeAllNavs()},t.prototype.toggleNav=function(t){this.responsiveNavService.sendControlMessage(Xe.NAV_TOGGLE,t)},t.prototype.ngOnDestroy=function(){this._subscription.unsubscribe()},t}();rn.decorators=[{type:r.Component,args:[{selector:"clr-header",template:'\n <button\n type="button"\n *ngIf="isNavLevel1OnPage"\n class="header-hamburger-trigger"\n (click)="toggleNav(responsiveNavCodes.NAV_LEVEL_1)">\n <span></span>\n </button>\n <ng-content></ng-content>\n <button\n type="button"\n *ngIf="isNavLevel2OnPage"\n class="header-overflow-trigger"\n (click)="toggleNav(responsiveNavCodes.NAV_LEVEL_2)">\n <span></span>\n </button>\n <div class="header-backdrop" (click)="closeOpenNav()"></div>\n ',host:{"[class.header]":"true"}}]}],rn.ctorParameters=function(){return[{type:Qe}]};var on=function(){function t(t,e){this.responsiveNavService=t,this.elementRef=e}return t.prototype.ngOnInit=function(){this.level===Xe.NAV_LEVEL_1||this.level===Xe.NAV_LEVEL_2?(this.responsiveNavService.registerNav(this.level),this.addNavClass(this.level)):console.error("Nav Level can only be 1 or 2")},t.prototype.addNavClass=function(t){var e=this.elementRef.nativeElement.classList;t===Xe.NAV_LEVEL_1?e.add(Xe.NAV_CLASS_LEVEL_1):t===Xe.NAV_LEVEL_2&&e.add(Xe.NAV_CLASS_LEVEL_2)},Object.defineProperty(t.prototype,"level",{get:function(){return this._level},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"responsiveNavCodes",{get:function(){return Xe},enumerable:!0,configurable:!0}),t.prototype.open=function(){this.responsiveNavService.sendControlMessage(Xe.NAV_OPEN,this.level)},t.prototype.close=function(){this.responsiveNavService.sendControlMessage(Xe.NAV_CLOSE,this.level)},t.prototype.onMouseClick=function(t){for(var e=t,n=this.elementRef.nativeElement;e;){if(e===n)return;if(e.classList.contains("nav-link"))return void this.close();e=e.parentNode}},t.prototype.ngOnDestroy=function(){this.responsiveNavService.unregisterNav(this.level)},t}();on.decorators=[{type:r.Directive,args:[{selector:"[clr-nav-level]"}]}],on.ctorParameters=function(){return[{type:Qe},{type:r.ElementRef}]},on.propDecorators={_level:[{type:r.Input,args:["clr-nav-level"]}],onMouseClick:[{type:r.HostListener,args:["click",["$event.target"]]}]};var sn=[rn,on,nn,en],an=function(){return function(){}}();an.decorators=[{type:r.NgModule,args:[{imports:[i.CommonModule,d,Fe],declarations:[sn],providers:[{provide:Qe,useFactory:function(t){return t||new Qe},deps:[[new r.Optional,new r.SkipSelf,Qe]]}],exports:[sn]}]}],an.ctorParameters=function(){return[]};var cn=function(){return function(){}}();cn.decorators=[{type:r.Component,args:[{template:"\n <ng-template>\n <ng-content></ng-content>\n </ng-template>\n "}]}],cn.ctorParameters=function(){return[]},cn.propDecorators={template:[{type:r.ViewChild,args:[r.TemplateRef]}]};var un=[cn],ln=function(){return function(){}}();ln.decorators=[{type:r.NgModule,args:[{imports:[i.CommonModule],declarations:[un],entryComponents:[un],exports:[un]}]}],ln.ctorParameters=function(){return[]};var pn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e}(pt);pn.decorators=[{type:r.Directive,args:[{selector:"clr-tabs"}]}],pn.ctorParameters=function(){return[]};var hn=function(t){function e(e,n,r,i){var o=this;if(!n)throw new Error("clrTabLink and clr-tab-content should only be used inside of a clr-tabs");return o=t.call(this,e,n)||this,o.ifActive=i,o.id=r,o}return l(e,t),Object.defineProperty(e.prototype,"flavor",{get:function(){return this.ifActive.current===this.id},enumerable:!0,configurable:!0}),e}(ut);hn.decorators=[{type:r.Directive,args:[{selector:"[clrTabLink], clr-tab-content"}]}],hn.ctorParameters=function(){return[{type:r.ChangeDetectorRef},{type:pn,decorators:[{type:r.Optional}]},{type:void 0,decorators:[{type:r.Inject,args:[Oe]}]},{type:Ce}]};var dn=function(){return function(){}}();dn.decorators=[{type:r.Injectable}],dn.ctorParameters=function(){return[]};var fn=0,yn=function(){function t(t,e,n){this.ifActiveService=t,this.id=e,this.ariaService=n,this.tabContentId||(this.tabContentId="clr-tab-content-"+fn++)}return Object.defineProperty(t.prototype,"ariaLabelledBy",{get:function(){return this.ariaService.ariaLabelledBy},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabContentId",{get:function(){return this.ariaService.ariaControls},set:function(t){this.ariaService.ariaControls=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this.ifActiveService.current===this.id},enumerable:!0,configurable:!0}),t}();yn.decorators=[{type:r.Component,args:[{selector:"clr-tab-content",template:"\n <ng-content></ng-content>\n ",host:{"[id]":"tabContentId","[attr.aria-labelledby]":"ariaLabelledBy","[attr.aria-hidden]":"!active","[attr.data-hidden]":"!active",role:"tabpanel"}}]}],yn.ctorParameters=function(){return[{type:Ce},{type:void 0,decorators:[{type:r.Inject,args:[Oe]}]},{type:dn}]},yn.propDecorators={templateRef:[{type:r.ViewChild,args:["tabContentProjectedRef"]}],tabContentId:[{type:r.Input,args:["id"]}]};var gn=0,vn=new r.InjectionToken("TABS_ID"),mn={provide:vn,useFactory:function(){return"clr-tabs-"+gn++}},bn=0,_n=function(){function t(t,e,n,r,i,o,s){this.ifActiveService=t,this.id=e,this.ariaService=n,this.el=r,this.cfr=i,this.viewContainerRef=o,this.tabsId=s,this.tabLinkId||(this.tabLinkId="clr-tab-link-"+bn++);var a=this.cfr.resolveComponentFactory(cn);this.templateRefContainer=this.viewContainerRef.createComponent(a,1,void 0,[[this.el.nativeElement]]).instance}return Object.defineProperty(t.prototype,"ariaControls",{get:function(){return this.ariaService.ariaControls},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabLinkId",{get:function(){return this.ariaService.ariaLabelledBy},set:function(t){this.ariaService.ariaLabelledBy=t},enumerable:!0,configurable:!0}),t.prototype.activate=function(){this.ifActiveService.current=this.id},Object.defineProperty(t.prototype,"active",{get:function(){return this.ifActiveService.current===this.id},enumerable:!0,configurable:!0}),t}();_n.decorators=[{type:r.Directive,args:[{selector:"[clrTabLink]",host:{"[id]":"tabLinkId","[attr.aria-selected]":"active","[attr.aria-controls]":"ariaControls",role:"presentation","[class.btn]":"true","[class.btn-link]":"!inOverflow","[class.nav-link]":"!inOverflow","[class.nav-item]":"!inOverflow","[class.active]":"active"}}]}],_n.ctorParameters=function(){return[{type:Ce},{type:void 0,decorators:[{type:r.Inject,args:[Oe]}]},{type:dn},{type:r.ElementRef},{type:r.ComponentFactoryResolver},{type:r.ViewContainerRef},{type:void 0,decorators:[{type:r.Inject,args:[vn]}]}]},_n.propDecorators={inOverflow:[{type:r.Input,args:["clrTabLinkInOverflow"]}],tabLinkId:[{type:r.Input,args:["id"]}],activate:[{type:r.HostListener,args:["click"]}]};var xn=function(){function t(){this._children=[]}return t.prototype.register=function(t){this._children.push(t)},Object.defineProperty(t.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeTab",{get:function(){return this.children.find(function(t){return t.active})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overflowTabs",{get:function(){return this.children.filter(function(t){return!0===t.tabLink.inOverflow})},enumerable:!0,configurable:!0}),t.prototype.unregister=function(t){var e=this.children.indexOf(t);e>-1&&this.children.splice(e,1)},t}();xn.decorators=[{type:r.Injectable}],xn.ctorParameters=function(){return[]};var wn=function(){function t(t,e,n){this.ifActiveService=t,this.id=e,this.tabsService=n,n.register(this)}return t.prototype.ngOnDestroy=function(){this.tabsService.unregister(this)},Object.defineProperty(t.prototype,"active",{get:function(){return this.ifActiveService.current===this.id},enumerable:!0,configurable:!0}),t}();wn.decorators=[{type:r.Component,args:[{selector:"clr-tab",template:"\n <ng-content></ng-content>\n ",providers:[Se,dn]}]}],wn.ctorParameters=function(){return[{type:Ce},{type:void 0,decorators:[{type:r.Inject,args:[Oe]}]},{type:xn}]},wn.propDecorators={tabLink:[{type:r.ContentChild,args:[_n]}],tabContent:[{type:r.ContentChild,args:[yn]}]};var On=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.anchorPoint=f.BOTTOM_RIGHT,r.popoverPoint=f.RIGHT_TOP,r.closeOnOutsideClick=!0,r}return l(e,t),e}(Me);On.decorators=[{type:r.Component,args:[{selector:"clr-tab-overflow-content",template:"\n <ng-content></ng-content>\n ",host:{"[class.dropdown-menu]":"true"}}]}],On.ctorParameters=function(){return[{type:r.Injector},{type:r.ElementRef,decorators:[{type:r.SkipSelf}]}]};var Sn=function(){function t(t,e,n,r){this.ifActiveService=t,this.ifOpenService=e,this.tabsService=n,this.tabsId=r}return Object.defineProperty(t.prototype,"activeTabInOverflow",{get:function(){return this.tabsService.overflowTabs.indexOf(this.tabsService.activeTab)>-1},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){"undefined"==typeof this.ifActiveService.current&&this.tabLinkDirectives.first.activate()},t.prototype.toggleOverflow=function(t){this.ifOpenService.toggleWithEvent(t)},t}();Sn.decorators=[{type:r.Component,args:[{selector:"clr-tabs",template:'\n <ul class="nav" role="tablist">\n \x3c!--tab links--\x3e\n <ng-container *ngFor="let link of tabLinkDirectives">\n <ng-container *ngIf="link.tabsId === tabsId && !link.inOverflow"\n [ngTemplateOutlet]="link.templateRefContainer.template">\n </ng-container>\n </ng-container>\n <ng-container *ngIf="tabsService.overflowTabs.length > 0">\n <div class="tabs-overflow bottom-right" [class.open]="ifOpenService.open"\n (click)="toggleOverflow($event)">\n <li role="presentation" class="nav-item">\n <button class="btn btn-link nav-link dropdown-toggle" [class.active]="activeTabInOverflow">\n <clr-icon shape="ellipsis-horizontal" [class.is-info]="ifOpenService.open"></clr-icon>\n </button>\n </li>\n \x3c!--tab links in overflow menu--\x3e\n <clr-tab-overflow-content>\n <ng-container *ngFor="let link of tabLinkDirectives">\n <ng-container *ngIf="link.tabsId === tabsId && link.inOverflow"\n [ngTemplateOutlet]="link.templateRefContainer.template">\n </ng-container>\n </ng-container>\n </clr-tab-overflow-content>\n </div>\n </ng-container>\n </ul>\n \x3c!--tab content--\x3e\n <ng-content></ng-content>\n ',providers:[Ce,Tt,xn,mn]}]}],Sn.ctorParameters=function(){return[{type:Ce},{type:Tt},{type:xn},{type:void 0,decorators:[{type:r.Inject,args:[vn]}]}]},Sn.propDecorators={tabLinkDirectives:[{type:r.ContentChildren,args:[_n,{descendants:!0}]}]};var Cn=[yn,wn,Sn,On,_n,pn,hn],En=function(){return function(){}}();En.decorators=[{type:r.NgModule,args:[{imports:[i.CommonModule,x,Pe,d,ln],declarations:[Cn],exports:[Cn,Pe]}]}],En.ctorParameters=function(){return[]};var Tn=function(){function t(){this.navGroupCount=0}return t.prototype.registerNavGroup=function(){this.navGroupCount++},t.prototype.unregisterNavGroup=function(){this.navGroupCount--},t}();Tn.decorators=[{type:r.Injectable}],Tn.ctorParameters=function(){return[]};var jn=function(){function t(){this._icons=0}return Object.defineProperty(t.prototype,"hasIcons",{get:function(){return this._icons>0},enumerable:!0,configurable:!0}),t.prototype.registerIcon=function(){this._icons++},t.prototype.unregisterIcon=function(){this._icons--},t}();jn.decorators=[{type:r.Injectable}],jn.ctorParameters=function(){return[]};var Pn=function(){function t(){this._animateOnCollapsed=new o.a,this._collapsedChanged=new o.a,this._collapsed=!1,this._collapsible=!1}return Object.defineProperty(t.prototype,"animateOnCollapsed",{get:function(){return this._animateOnCollapsed.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"collapsedChanged",{get:function(){return this._collapsedChanged.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"collapsed",{get:function(){return this._collapsed},set:function(t){t=!!t,this.collapsible&&this._collapsed!==t&&this.updateCollapseBehavior(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"collapsible",{get:function(){return this._collapsible},set:function(t){t=!!t,this._collapsible!==t&&(!t&&this.collapsed&&this.updateCollapseBehavior(!1),this._collapsible=t)},enumerable:!0,configurable:!0}),t.prototype.updateCollapseBehavior=function(t){this._animateOnCollapsed.next(t),this._collapsed=t,this._collapsedChanged.next(t)},t}();Pn.decorators=[{type:r.Injectable}],Pn.ctorParameters=function(){return[]};var An=function(){function t(t,e,n){var i=this;this._navService=t,this._navIconService=e,this._navGroupRegistrationService=n,this._collapsedChanged=new r.EventEmitter(!0),this._sub=this._navService.collapsedChanged.subscribe(function(t){i._collapsedChanged.emit(t)})}return Object.defineProperty(t.prototype,"collapsible",{get:function(){return this._navService.collapsible},set:function(t){this._navService.collapsible=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"collapsed",{get:function(){return this._navService.collapsed},set:function(t){this._navService.collapsed=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasNavGroups",{get:function(){return this._navGroupRegistrationService.navGroupCount>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasIcons",{get:function(){return this._navIconService.hasIcons},enumerable:!0,configurable:!0}),t.prototype.toggleByButton=function(){this.collapsed=!this.collapsed},t.prototype.ngOnDestroy=function(){this._sub.unsubscribe()},t}();An.decorators=[{type:r.Component,args:[{selector:"clr-vertical-nav",template:'\n <button type="button" class="nav-trigger"\n [class.on-collapse]="collapsed"\n (click)="toggleByButton()"\n *ngIf="collapsible">\n <clr-icon shape="angle-double" class="nav-trigger-icon" [attr.dir]="(this.collapsed) ? \'right\' : \'left\'"></clr-icon>\n </button>\n \x3c!-- Click handler on .nav-content is bad but required :-( --\x3e\n <div class="nav-content">\n <ng-content></ng-content>\n <button (click)="collapsed = false" class="nav-btn" *ngIf="collapsible && collapsed"></button>\n </div>\n ',providers:[Pn,jn,Tn],host:{class:"clr-vertical-nav","[class.is-collapsed]":"collapsed","[class.has-nav-groups]":"hasNavGroups","[class.has-icons]":"hasIcons"}}]}],An.ctorParameters=function(){return[{type:Pn},{type:jn},{type:Tn}]},An.propDecorators={collapsible:[{type:r.Input,args:["clrVerticalNavCollapsible"]}],collapsed:[{type:r.Input,args:["clrVerticalNavCollapsed"]}],_collapsedChanged:[{type:r.Output,args:["clrVerticalNavCollapsedChange"]}]};var In=function(){function t(){this._expandChange=new o.a}return Object.defineProperty(t.prototype,"expandChange",{get:function(){return this._expandChange.asObservable()},enumerable:!0,configurable:!0}),t.prototype.expand=function(){this._expandChange.next(!0)},t}();In.decorators=[{type:r.Injectable}],In.ctorParameters=function(){return[]};var kn="expanded",Rn="collapsed",Mn=function(){function t(t,e,n,i){var o=this;this._itemExpand=t,this._navGroupRegistrationService=e,this._navGroupService=n,this._navService=i,this.wasExpanded=!1,this.expandedChange=new r.EventEmitter(!0),this._subscriptions=[],this._expandAnimationState=Rn,this._navGroupRegistrationService.registerNavGroup(),this._subscriptions.push(this._itemExpand.expandChange.subscribe(function(t){t&&o.expandAnimationState===Rn?(o._navService.collapsed&&(o._navService.collapsed=!1),o.expandAnimationState=kn):t||o.expandAnimationState!==kn||(o.expandAnimationState=Rn)})),this._subscriptions.push(this._navService.animateOnCollapsed.subscribe(function(t){t&&o.expanded?(o.wasExpanded=!0,o.expandAnimationState=Rn):!t&&o.wasExpanded&&(o.expandGroup(),o.wasExpanded=!1)})),this._subscriptions.push(this._navGroupService.expandChange.subscribe(function(t){t&&!o.expanded&&o.expandGroup()}))}return Object.defineProperty(t.prototype,"expanded",{get:function(){return this._itemExpand.expanded},set:function(t){this._itemExpand.expanded!==t&&(this._itemExpand.expanded=t,this.expandedChange.emit(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"userExpandedInput",{set:function(t){t=!!t,this.expanded!==t&&this.toggleExpand()},enumerable:!0,configurable:!0}),t.prototype.expandGroup=function(){this.expanded=!0,this.expandAnimationState=kn},t.prototype.collapseGroup=function(){this.expandAnimationState=Rn},t.prototype.expandAnimationDone=function(t){t.toState===Rn&&(this.expanded=!1)},Object.defineProperty(t.prototype,"expandAnimationState",{get:function(){return this._expandAnimationState},set:function(t){t!==this._expandAnimationState&&(this._expandAnimationState=t)},enumerable:!0,configurable:!0}),t.prototype.toggleExpand=function(){this.expanded?this.collapseGroup():(this._navService.collapsed&&(this._navService.collapsed=!1),this.expandGroup())},t.prototype.ngAfterContentInit=function(){this._navService.collapsed&&this.expanded&&(this.wasExpanded=!0,this.expandAnimationState=Rn)},t.prototype.ngOnDestroy=function(){this._subscriptions.forEach(function(t){return t.unsubscribe()}),this._navGroupRegistrationService.unregisterNavGroup()},t}();Mn.decorators=[{type:r.Component,args:[{selector:"clr-vertical-nav-group",template:'\n <div class="nav-group-content">\n <ng-content select="[clrVerticalNavLink]"></ng-content>\n <button\n class="nav-group-trigger"\n type="button"\n (click)="toggleExpand()">\n <ng-content select="[clrVerticalNavIcon]"></ng-content>\n <div class="nav-group-text">\n <ng-content></ng-content>\n </div>\n <clr-icon shape="caret"\n class="nav-group-trigger-icon"\n [attr.dir]="(this.expanded) ? \'down\' : \'right\'">\n </clr-icon>\n </button>\n </div>\n \x3c!--TODO: This animation needs to be added to the clr-vertical-nav-group-children component--\x3e\n <div class="nav-group-children"\n [@clrExpand]="expandAnimationState"\n (@clrExpand.done)="expandAnimationDone($event)">\n <ng-content select="[clrIfExpanded], clr-vertical-nav-group-children"></ng-content>\n </div>\n ',providers:[W,In],animations:[Object(c.trigger)("clrExpand",[Object(c.state)(kn,Object(c.style)({height:"*"})),Object(c.state)(Rn,Object(c.style)({height:0,"overflow-y":"hidden",visibility:"hidden"})),Object(c.transition)(kn+" <=> "+Rn,Object(c.animate)("0.2s ease-in-out"))])],host:{class:"nav-group"}}]}],Mn.ctorParameters=function(){return[{type:W},{type:Tn},{type:In},{type:Pn}]},Mn.propDecorators={expanded:[{type:r.HostBinding,args:["class.is-expanded"]}],userExpandedInput:[{type:r.Input,args:["clrVerticalNavGroupExpanded"]}],expandedChange:[{type:r.Output,args:["clrVerticalNavGroupExpandedChange"]}]};var Dn=function(){return function(){}}();Dn.decorators=[{type:r.Component,args:[{selector:"clr-vertical-nav-group-children",template:"\n <ng-content></ng-content>\n "}]}],Dn.ctorParameters=function(){return[]};var Nn=function(){function t(t){this._verticalNavIconService=t,this._verticalNavIconService.registerIcon()}return t.prototype.ngOnDestroy=function(){this._verticalNavIconService.unregisterIcon()},t}();Nn.decorators=[{type:r.Directive,args:[{selector:"[clrVerticalNavIcon]",host:{class:"nav-icon"}}]}],Nn.ctorParameters=function(){return[{type:jn}]};var Ln=function(){function t(t){this._navGroupService=t}return t.prototype.expandParentNavGroup=function(){this._navGroupService&&this._navGroupService.expand()},t}();Ln.decorators=[{type:r.Component,args:[{selector:"[clrVerticalNavLink]",template:'\n <ng-content select="[clrVerticalNavIcon]"></ng-content>\n <span class="nav-text">\n <ng-content></ng-content> \n </span>\n ',host:{class:"nav-link"}}]}],Ln.ctorParameters=function(){return[{type:In,decorators:[{type:r.Optional}]}]},Ln.propDecorators={expandParentNavGroup:[{type:r.HostListener,args:["click"]}]};var Fn=[An,Ln,Mn,Dn,Nn],Vn=function(){return function(){}}();Vn.decorators=[{type:r.NgModule,args:[{imports:[i.CommonModule,d,Y],declarations:[Fn],exports:[Fn,Y,d]}]}],Vn.ctorParameters=function(){return[]};var Bn=function(){return function(){}}();Bn.decorators=[{type:r.NgModule,args:[{exports:[tn,an,En,Vn]}]}],Bn.ctorParameters=function(){return[]};var Hn=function(){function t(){this._previousFocusTraps=[]}return Object.defineProperty(t.prototype,"current",{get:function(){return this._current},set:function(t){this._previousFocusTraps.push(this._current),this._current=t},enumerable:!0,configurable:!0}),t.prototype.activatePreviousTrapper=function(){this._current=this._previousFocusTraps.pop()},t}();Hn.decorators=[{type:r.Injectable}],Hn.ctorParameters=function(){return[]};var zn=function(){function t(t,e,n){this.elementRef=t,this.focusTrapsTracker=n,this.document=e.get(i.DOCUMENT),this.focusTrapsTracker.current=this}return t.prototype.onFocusIn=function(t){var e=this.elementRef.nativeElement;this.focusTrapsTracker.current!==this||e.contains(t.target)||e.focus()},t.prototype.ngAfterViewInit=function(){this._previousActiveElement=document.activeElement;this.elementRef.nativeElement.setAttribute("tabindex","0")},t.prototype.setPreviousFocus=function(){this._previousActiveElement&&this._previousActiveElement.focus&&this._previousActiveElement.focus()},t.prototype.ngOnDestroy=function(){this.setPreviousFocus(),this.focusTrapsTracker.activatePreviousTrapper()},t}();zn.decorators=[{type:r.Directive,args:[{selector:"[clrFocusTrap]"}]}],zn.ctorParameters=function(){return[{type:r.ElementRef},{type:r.Injector},{type:Hn}]},zn.propDecorators={onFocusIn:[{type:r.HostListener,args:["document:focusin",["$event"]]}]};var Un=[zn],Wn=function(){return function(){}}();Wn.decorators=[{type:r.NgModule,args:[{imports:[i.CommonModule],providers:[Hn],declarations:[Un],exports:[Un]}]}],Wn.ctorParameters=function(){return[]};var Gn=function(){function t(t){this._document=t}return t.prototype.stopScrolling=function(){this._document.body.classList.add("no-scrolling")},t.prototype.resumeScrolling=function(){this._document.body.classList.contains("no-scrolling")&&this._document.body.classList.remove("no-scrolling")},t}();Gn.decorators=[{type:r.Injectable}],Gn.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[u.DOCUMENT]}]}]};var qn={STATES:{NO_PAGES:"inactive",ALL_PAGES:"ready",NEXT_TO_LAST_PAGE:"penultimateGhost",LAST_PAGE:"lastGhost"},TRANSITIONS:{IN:"100ms ease-out",OUT:"100ms ease-in"}},Yn=function(){function t(t){this._scrollingService=t,this._open=!1,this._openChanged=new r.EventEmitter(!1),this.closable=!0,this.staticBackdrop=!1,this.skipAnimation="false",this.ghostPageState="hidden",this.bypassScrollService=!1,this.stopClose=!1,this.altClose=new r.EventEmitter(!1)}return Object.defineProperty(t.prototype,"sizeClass",{get:function(){return this.size?"modal-"+this.size:""},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){!this.bypassScrollService&&t&&t.hasOwnProperty("_open")&&(t._open.currentValue?this._scrollingService.stopScrolling():this._scrollingService.resumeScrolling())},t.prototype.ngOnDestroy=function(){this._scrollingService.resumeScrolling()},t.prototype.open=function(){!0!==this._open&&(this._open=!0,this._openChanged.emit(!0))},t.prototype.close=function(){this.stopClose?this.altClose.emit(!1):this.closable&&!1!==this._open&&(this._open=!1,this._openChanged.emit(!1),this.focusTrap.setPreviousFocus())},t.prototype.fadeDone=function(t){"void"===t.toState&&this._openChanged.emit(!1)},t}();Yn.decorators=[{type:r.Component,args:[{selector:"clr-modal",viewProviders:[Gn],template:'\n\n \x3c!--\n ~ Copyright (c) 2016-2017 VMware, Inc. All Rights Reserved.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n --\x3e\n\n <div clrFocusTrap class="modal" *ngIf="_open">\n \x3c!--fixme: revisit when ngClass works with exit animation--\x3e\n <div [@fadeDown]="skipAnimation" (@fadeDown.done)="fadeDone($event)"\n class="modal-dialog"\n [class.modal-sm]="size == \'sm\'"\n [class.modal-lg]="size == \'lg\'"\n [class.modal-xl]="size == \'xl\'"\n role="dialog" aria-hidden="true">\n\n <div class="modal-outer-wrapper">\n <div class="modal-content-wrapper">\n \x3c!-- only used in wizards --\x3e\n <ng-content select=".modal-nav"></ng-content>\n\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" aria-label="Close"\n *ngIf="closable" (click)="close()">\n <clr-icon aria-hidden="true" shape="close"></clr-icon>\n </button>\n <ng-content select=".modal-title"></ng-content>\n </div>\n <ng-content select=".modal-body"></ng-content>\n <ng-content select=".modal-footer"></ng-content>\n </div>\n </div>\n <div class="modal-ghost-wrapper">\n <div [@ghostPageOneState]="ghostPageState" class="modal-ghost modal-ghost-1"></div>\n <div [@ghostPageTwoState]="ghostPageState" class="modal-ghost modal-ghost-2"></div>\n </div>\n </div>\n </div>\n\n <div [@fade] class="modal-backdrop"\n aria-hidden="true"\n (click)="staticBackdrop || close()"></div>\n </div>\n ',styles:["\n :host { display: none; }\n :host.open { display: inline; }\n "],animations:[Object(c.trigger)("fadeDown",[Object(c.transition)("* => false",[Object(c.style)({opacity:0,transform:"translate(0, -25%)"}),Object(c.animate)("0.2s ease-in-out")]),Object(c.transition)("false => *",[Object(c.animate)("0.2s ease-in-out",Object(c.style)({opacity:0,transform:"translate(0, -25%)"}))])]),Object(c.trigger)("fade",[Object(c.transition)("void => *",[Object(c.style)({opacity:0}),Object(c.animate)("0.2s ease-in-out",Object(c.style)({opacity:.85}))]),Object(c.transition)("* => void",[Object(c.animate)("0.2s ease-in-out",Object(c.style)({opacity:0}))])]),Object(c.trigger)("ghostPageOneState",[Object(c.state)(qn.STATES.NO_PAGES,Object(c.style)({left:"-24px"})),Object(c.state)(qn.STATES.ALL_PAGES,Object(c.style)({left:"0"})),Object(c.state)(qn.STATES.NEXT_TO_LAST_PAGE,Object(c.style)({left:"-24px"})),Object(c.state)(qn.STATES.LAST_PAGE,Object(c.style)({left:"-24px"})),Object(c.transition)(qn.STATES.NO_PAGES+" => *",Object(c.animate)(qn.TRANSITIONS.IN)),Object(c.transition)(qn.STATES.ALL_PAGES+" => *",Object(c.animate)(qn.TRANSITIONS.OUT)),Object(c.transition)(qn.STATES.LAST_PAGE+" => *",Object(c.animate)(qn.TRANSITIONS.IN)),Object(c.transition)(qn.STATES.NEXT_TO_LAST_PAGE+" => *",Object(c.animate)(qn.TRANSITIONS.OUT))]),Object(c.trigger)("ghostPageTwoState",[Object(c.state)(qn.STATES.NO_PAGES,Object(c.style)({left:"-24px",top:"24px",bottom:"24px"})),Object(c.state)(qn.STATES.ALL_PAGES,Object(c.style)({left:"24px"})),Object(c.state)(qn.STATES.NEXT_TO_LAST_PAGE,Object(c.style)({left:"0px",top:"24px",bottom:"24px",background:"#bbb"})),Object(c.state)(qn.STATES.LAST_PAGE,Object(c.style)({left:"-24px",top:"24px",bottom:"24px"})),Object(c.transition)(qn.STATES.NO_PAGES+" => *",Object(c.animate)(qn.TRANSITIONS.IN)),Object(c.transition)(qn.STATES.ALL_PAGES+" => *",Object(c.animate)(qn.TRANSITIONS.OUT)),Object(c.transition)(qn.STATES.LAST_PAGE+" => *",Object(c.animate)(qn.TRANSITIONS.IN)),Object(c.transition)(qn.STATES.NEXT_TO_LAST_PAGE+" => *",Object(c.animate)(qn.TRANSITIONS.OUT))])]}]}],Yn.ctorParameters=function(){return[{type:Gn}]},Yn.propDecorators={focusTrap:[{type:r.ViewChild,args:[zn]}],_open:[{type:r.HostBinding,args:["class.open"]},{type:r.Input,args:["clrModalOpen"]}],_openChanged:[{type:r.Output,args:["clrModalOpenChange"]}],closable:[{type:r.Input,args:["clrModalClosable"]}],size:[{type:r.Input,args:["clrModalSize"]}],staticBackdrop:[{type:r.Input,args:["clrModalStaticBackdrop"]}],skipAnimation:[{type:r.Input,args:["clrModalSkipAnimation"]}],ghostPageState:[{type:r.Input,args:["clrModalGhostPageState"]}],bypassScrollService:[{type:r.Input,args:["clrModalOverrideScrollService"]}],stopClose:[{type:r.Input,args:["clrModalPreventClose"]}],altClose:[{type:r.Output,args:["clrModalAlternateClose"]}],close:[{type:r.HostListener,args:["body:keyup.escape"]}]};var Kn=[Yn],Xn=function(){return function(){}}();Xn.decorators=[{type:r.NgModule,args:[{imports:[i.CommonModule,d,Wn],declarations:[Kn],exports:[Kn]}]}],Xn.ctorParameters=function(){return[]};var $n={"top-left":{anchorPoint:f.TOP_CENTER,popoverPoint:f.BOTTOM_RIGHT,offsetY:-10,offsetX:0},"top-middle":{anchorPoint:f.TOP_CENTER,popoverPoint:f.BOTTOM_CENTER,offsetY:-10,offsetX:0},"top-right":{anchorPoint:f.TOP_CENTER,popoverPoint:f.BOTTOM_LEFT,offsetY:-10,offsetX:0},"right-top":{anchorPoint:f.RIGHT_CENTER,popoverPoint:f.LEFT_BOTTOM,offsetY:2,offsetX:14},"right-middle":{anchorPoint:f.RIGHT_CENTER,popoverPoint:f.LEFT_CENTER,offsetY:6,offsetX:14},"right-bottom":{anchorPoint:f.RIGHT_CENTER,popoverPoint:f.LEFT_TOP,offsetY:-1,offsetX:14},"bottom-right":{anchorPoint:f.BOTTOM_CENTER,popoverPoint:f.TOP_LEFT,offsetY:9,offsetX:-1},"bottom-middle":{anchorPoint:f.BOTTOM_CENTER,popoverPoint:f.TOP_CENTER,offsetY:9,offsetX:12},"bottom-left":{anchorPoint:f.BOTTOM_CENTER,popoverPoint:f.TOP_RIGHT,offsetY:9,offsetX:0},"left-bottom":{anchorPoint:f.LEFT_CENTER,popoverPoint:f.RIGHT_TOP,offsetY:0,offsetX:-14},"left-middle":{anchorPoint:f.LEFT_CENTER,popoverPoint:f.RIGHT_CENTER,offsetY:4,offsetX:-14},"left-top":{anchorPoint:f.LEFT_CENTER,popoverPoint:f.RIGHT_BOTTOM,offsetY:0,offsetX:-14},default:{anchorPoint:f.RIGHT_CENTER,popoverPoint:f.LEFT_CENTER,offsetY:6,offsetX:14}},Qn=["top-left","top-middle","top-right","right-top","right-middle","right-bottom","bottom-right","bottom-middle","bottom-left","left-bottom","left-middle","left-top"],Zn=function(t){function e(e,n){var r=this;if(!n)throw new Error("clr-signpost-content should only be used inside of a clr-signpost");return r=t.call(this,e,n)||this,r.position="right-middle",r.closeOnOutsideClick=!0,r}return l(e,t),e.prototype.close=function(){this.ifOpenService.open=!1},Object.defineProperty(e.prototype,"position",{get:function(){return this._position},set:function(t){this.renderer.removeClass(this.el.nativeElement,this.position),t&&Qn.indexOf(t)>-1?this._position=t:this._position="right-middle",this.renderer.addClass(this.el.nativeElement,this.position);var e=$n[this.position];this.anchorPoint=e.anchorPoint,this.popoverPoint=e.popoverPoint,this.popoverOptions.offsetY=e.offsetY,this.popoverOptions.offsetX=e.offsetX},enumerable:!0,configurable:!0}),e}(Me);Zn.decorators=[{type:r.Component,args:[{selector:"clr-signpost-content",template:'\n <div class="signpost-flex-wrap">\n <div class="popover-pointer"></div>\n <div class="signpost-content-header">\n <button type="button" class="signpost-action close" aria-label="Close" (click)="close()">\n <clr-icon aria-hidden="true" shape="close"></clr-icon>\n </button>\n </div>\n <div class="signpost-content-body">\n <ng-content></ng-content>\n </div>\n </div>\n ',host:{"[class.signpost-content]":"true"}}]}],Zn.ctorParameters=function(){return[{type:r.Injector},{type:r.ElementRef,decorators:[{type:r.Optional},{type:r.Inject,args:[jt]}]}]},Zn.propDecorators={position:[{type:r.Input,args:["clrPosition"]}]};var Jn=[At,Zn,Pt],tr=function(){return function(){}}();tr.decorators=[{type:r.NgModule,args:[{imports:[i.CommonModule,x,d],declarations:[Jn],exports:[Jn,Pe],providers:[]}]}],tr.ctorParameters=function(){return[]};var er=function(){return function(){}}();er.decorators=[{type:r.Component,args:[{selector:"clr-tooltip",template:"\n <ng-content></ng-content>\n ",host:{"[class.tooltip]":"true"},providers:[Tt,{provide:jt,useExisting:r.ElementRef}]}]}],er.ctorParameters=function(){return[]};var nr=["bottom-left","bottom-right","top-left","top-right","right","left"],rr=["xs","sm","md","lg"],ir=function(t){function e(e,n){var r=this;if(!n)throw new Error("clr-tooltip-content should only be used inside of a clr-tooltip");return r=t.call(this,e,n)||this,r.position="right",r.size="sm",r}return l(e,t),Object.defineProperty(e.prototype,"position",{get:function(){return this._position},set:function(t){switch(this.renderer.removeClass(this.el.nativeElement,"tooltip-"+this.position),t&&nr.indexOf(t)>-1?this._position=t:this._position="right",this.renderer.addClass(this.el.nativeElement,"tooltip-"+this.position),t){case"top-right":this.anchorPoint=f.TOP_CENTER,this.popoverPoint=f.LEFT_BOTTOM;break;case"top-left":this.anchorPoint=f.TOP_CENTER,this.popoverPoint=f.RIGHT_BOTTOM;break;case"bottom-right":this.anchorPoint=f.BOTTOM_CENTER,this.popoverPoint=f.LEFT_TOP;break;case"bottom-left":this.anchorPoint=f.BOTTOM_CENTER,this.popoverPoint=f.RIGHT_TOP;break;case"right":this.anchorPoint=f.RIGHT_CENTER,this.popoverPoint=f.LEFT_TOP;break;case"left":this.anchorPoint=f.LEFT_CENTER,this.popoverPoint=f.RIGHT_TOP;break;default:this.anchorPoint=f.RIGHT_CENTER,this.popoverPoint=f.LEFT_TOP}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(t){this.renderer.removeClass(this.el.nativeElement,"tooltip-"+this.size),t&&rr.indexOf(t)>-1?this._size=t:this._size="sm",this.renderer.addClass(this.el.nativeElement,"tooltip-"+this.size)},enumerable:!0,configurable:!0}),e}(Me);ir.decorators=[{type:r.Component,args:[{selector:"clr-tooltip-content",template:"\n <ng-content></ng-content>\n ",host:{"[class.tooltip-content]":"true","[style.opacity]":"1"}}]}],ir.ctorParameters=function(){return[{type:r.Injector},{type:r.ElementRef,decorators:[{type:r.Optional},{type:r.Inject,args:[jt]}]}]},ir.propDecorators={position:[{type:r.Input,args:["clrPosition"]}],size:[{type:r.Input,args:["clrSize"]}]};var or=function(){function t(t){this.ifOpenService=t}return t.prototype.showTooltip=function(){this.ifOpenService.open=!0},t.prototype.hideTooltip=function(){this.ifOpenService.open=!1},t}();or.decorators=[{type:r.Directive,args:[{selector:"[clrTooltipTrigger]",host:{"[attr.tabindex]":"0"}}]}],or.ctorParameters=function(){return[{type:Tt}]},or.propDecorators={showTooltip:[{type:r.HostListener,args:["mouseenter"]},{type:r.HostListener,args:["focus"]}],hideTooltip:[{type:r.HostListener,args:["mouseleave"]},{type:r.HostListener,args:["blur"]}]};var sr=[er,or,ir],ar=function(){return function(){}}();ar.decorators=[{type:r.NgModule,args:[{imports:[i.CommonModule,x],declarations:[sr],exports:[sr,Pe,d]}]}],ar.ctorParameters=function(){return[]};var cr=function(){return function(){}}();cr.decorators=[{type:r.NgModule,args:[{exports:[Fe,tr,ar]}]}],cr.ctorParameters=function(){return[]};var ur=function(){return function(t){this.pageButtonsTemplateRef=t}}();ur.decorators=[{type:r.Directive,args:[{selector:"[clrPageButtons]"}]}],ur.ctorParameters=function(){return[{type:r.TemplateRef}]};var lr=function(){return function(t){this.pageHeaderActionsTemplateRef=t}}();lr.decorators=[{type:r.Directive,args:[{selector:"[clrPageHeaderActions]"}]}],lr.ctorParameters=function(){return[{type:r.TemplateRef}]};var pr=function(){return function(t){this.pageNavTitleTemplateRef=t}}();pr.decorators=[{type:r.Directive,args:[{selector:"[clrPageNavTitle]"}]}],pr.ctorParameters=function(){return[{type:r.TemplateRef}]};var hr=function(){return function(t){this.pageTitleTemplateRef=t}}();hr.decorators=[{type:r.Directive,args:[{selector:"[clrPageTitle]"}]}],hr.ctorParameters=function(){return[{type:r.TemplateRef}]};var dr=function(){function t(){this.buttonsReady=!1,this._previousBtnClicked=new o.a,this._nextBtnClicked=new o.a,this._dangerBtnClicked=new o.a,this._cancelBtnClicked=new o.a,this._finishBtnClicked=new o.a,this._customBtnClicked=new o.a}return Object.defineProperty(t.prototype,"previousBtnClicked",{get:function(){return this._previousBtnClicked.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nextBtnClicked",{get:function(){return this._nextBtnClicked.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dangerBtnClicked",{get:function(){return this._dangerBtnClicked.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cancelBtnClicked",{get:function(){return this._cancelBtnClicked.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"finishBtnClicked",{get:function(){return this._finishBtnClicked.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"customBtnClicked",{get:function(){return this._customBtnClicked.asObservable()},enumerable:!0,configurable:!0}),t.prototype.buttonClicked=function(t){"previous"===t?this._previousBtnClicked.next():"next"===t?this._nextBtnClicked.next():"finish"===t?this._finishBtnClicked.next():"danger"===t?this._dangerBtnClicked.next():"cancel"===t?this._cancelBtnClicked.next():this._customBtnClicked.next(t)},t}();dr.decorators=[{type:r.Injectable}],dr.ctorParameters=function(){return[]};var fr=function(){function t(){this._pagesReset=new o.a}return Object.defineProperty(t.prototype,"pagesAsArray",{get:function(){return this.pages?this.pages.toArray():[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pagesCount",{get:function(){return this.pages?this.pages.length:0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"penultimatePage",{get:function(){var t=this.pagesCount;if(!(t<2))return this.pagesAsArray[t-2]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lastPage",{get:function(){var t=this.pagesCount;if(!(t<1))return this.pagesAsArray[t-1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstPage",{get:function(){if(this.pagesCount)return this.pagesAsArray[0]},enumerable:!0,configurable:!0}),t.prototype.getPageById=function(t){var e=this.pages.filter(function(e){return t===e.id});return this.checkResults(e,t)},t.prototype.getPageByIndex=function(t){var e=this.pagesCount,n=e>1?e-1:0;if(t<0)throw new Error("Cannot retrieve page with index of "+t);if(t>n)throw new Error("Page index is greater than length of pages array.");return this.pagesAsArray[t]},t.prototype.getPageIndex=function(t){var e=this.pagesAsArray.indexOf(t);if(e<0)throw new Error("Requested page cannot be found in collection of pages.");return e},t.prototype.checkResults=function(t,e){var n=t.length||0;if(n>1)throw new Error("More than one page has the requested id "+e+".");if(n<1)throw new Error("No page can be found with the id "+e+".");return t[0]},t.prototype.pageRange=function(t,e){var n=[];return t<0||e<0?[]:null===t||void 0===typeof t||isNaN(t)?[]:null===e||void 0===typeof e||isNaN(e)?[]:(e>this.pagesCount&&(e=this.pagesCount),n=this.pagesAsArray,e-t==0?[this.getPageByIndex(t)]:(e+=1,n.slice(t,e)))},t.prototype.getPageRangeFromPages=function(t,e){var n,r,i=this.getPageIndex(t),o=this.getPageIndex(e);return i<=o?(n=i,r=o):(n=o,r=i),this.pageRange(n,r)},t.prototype.getPreviousPage=function(t){var e=this.getPageIndex(t)-1;return e<0?null:this.getPageByIndex(e)},t.prototype.previousPageIsCompleted=function(t){var e;return!!t&&(null===(e=this.getPreviousPage(t))||e.completed)},t.prototype.getNextPage=function(t){var e=this.getPageIndex(t)+1;return e>=this.pagesAsArray.length?null:this.getPageByIndex(e)},t.prototype.getStepItemIdForPage=function(t){var e=t.id.split("-").reverse();return e[1]="step",e.reverse().join("-")},t.prototype.commitPage=function(t){var e=t.stopNext||t.preventDefault;t.completed=!0,e||t.onCommit.emit(t.id)},Object.defineProperty(t.prototype,"pagesReset",{get:function(){return this._pagesReset.asObservable()},enumerable:!0,configurable:!0}),t.prototype.reset=function(){this.pagesAsArray.forEach(function(t){t.completed=!1}),this._pagesReset.next(!0)},t.prototype.updateCompletedStates=function(){var t=this.findFirstIncompletePageIndex();t!==this.pagesAsArray.length-1&&this.pagesAsArray.forEach(function(e,n){n>t&&(e.completed=!1)})},t.prototype.findFirstIncompletePageIndex=function(){var t=null;return this.pagesAsArray.forEach(function(e,n){null===t&&!1===e.completed&&(t=n)}),null===t&&(t=this.pagesCount-1),t},t.prototype.findFirstIncompletePage=function(){var t=this.findFirstIncompletePageIndex();return this.pagesAsArray[t]},t}();fr.decorators=[{type:r.Injectable}],fr.ctorParameters=function(){return[]};var yr=function(){function t(t,e){var n=this;this.pageCollection=t,this.buttonService=e,this._currentChanged=new o.a,this.navServiceLoaded=!1,this.forceForwardNavigation=!1,this._movedToNextPage=new o.a,this._wizardFinished=new o.a,this._movedToPreviousPage=new o.a,this._cancelWizard=new o.a,this.wizardHasAltCancel=!1,this.wizardHasAltNext=!1,this.wizardStopNavigation=!1,this.wizardDisableStepnav=!1,this._wizardGhostPageState=qn.STATES.NO_PAGES,this._hideWizardGhostPages=!0,this.previousButtonSubscription=this.buttonService.previousBtnClicked.subscribe(function(){var t=n.currentPage;n.currentPageIsFirst||t.previousStepDisabled||(t.previousButtonClicked.emit(t),t.preventDefault||n.previous())}),this.nextButtonSubscription=this.buttonService.nextBtnClicked.subscribe(function(){n.checkAndCommitCurrentPage("next")}),this.dangerButtonSubscription=this.buttonService.dangerBtnClicked.subscribe(function(){n.checkAndCommitCurrentPage("danger")}),this.finishButtonSubscription=this.buttonService.finishBtnClicked.subscribe(function(){n.checkAndCommitCurrentPage("finish")}),this.customButtonSubscription=this.buttonService.customBtnClicked.subscribe(function(t){n.wizardStopNavigation||n.currentPage.customButtonClicked.emit(t)}),this.cancelButtonSubscription=this.buttonService.cancelBtnClicked.subscribe(function(){n.wizardStopNavigation||(n.currentPage.preventDefault?n.currentPage.pageOnCancel.emit(n.currentPage):n.cancel())}),this.pagesResetSubscription=this.pageCollection.pagesReset.subscribe(function(){n.setFirstPageCurrent()})}return t.prototype.ngOnDestroy=function(){this.previousButtonSubscription.unsubscribe(),this.nextButtonSubscription.unsubscribe(),this.dangerButtonSubscription.unsubscribe(),this.finishButtonSubscription.unsubscribe(),this.customButtonSubscription.unsubscribe(),this.cancelButtonSubscription.unsubscribe(),this.pagesResetSubscription.unsubscribe()},Object.defineProperty(t.prototype,"currentPageChanged",{get:function(){return this._currentChanged.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPageTitle",{get:function(){return this.currentPage?this.currentPage.title:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPageIsFirst",{get:function(){return this.pageCollection.firstPage===this.currentPage},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPageIsNextToLast",{get:function(){return this.pageCollection.penultimatePage===this.currentPage},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPageIsLast",{get:function(){return this.pageCollection.lastPage===this.currentPage},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPage",{get:function(){return this._currentPage?this._currentPage:null},set:function(t){this._currentPage===t||this.wizardStopNavigation||(this._currentPage=t,t.onLoad.emit(t.id),this._currentChanged.next(t))},enumerable:!0,configurable:!0}),t.prototype.setCurrentPage=function(t){this.currentPage=t},Object.defineProperty(t.prototype,"movedToNextPage",{get:function(){return this._movedToNextPage.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wizardFinished",{get:function(){return this._wizardFinished.asObservable()},enumerable:!0,configurable:!0}),t.prototype.next=function(){this.currentPageIsLast?this.checkAndCommitCurrentPage("finish"):(this.checkAndCommitCurrentPage("next"),this.wizardHasAltNext||this.wizardStopNavigation||this._movedToNextPage.next(!0))},t.prototype.forceNext=function(){var t=this.currentPage,e=this.pageCollection.getNextPage(t);if(!e)throw new Error("The wizard has no next page to go to.");this.wizardStopNavigation||(t.completed||this.pageCollection.commitPage(t),this.currentPage=e)},t.prototype.checkAndCommitCurrentPage=function(t){var e,n,r,i,o,s,a=this.currentPage;if(a.readyToComplete&&!this.wizardStopNavigation&&(e=this.currentPageIsLast,n="next"===t,r="danger"===t,i=r&&!e,o=r&&e,!(s="finish"===t||o)||e))if(a.primaryButtonClicked.emit(t),s?a.finishButtonClicked.emit(a):r?a.dangerButtonClicked.emit():n&&a.nextButtonClicked.emit(),a.stopNext||a.preventDefault)a.onCommit.emit(a.id);else{if(s&&(this.wizardHasAltNext||this.pageCollection.commitPage(a),this._wizardFinished.next()),this.wizardHasAltNext)return this.pageCollection.commitPage(a),void((n||i)&&this._movedToNextPage.next(!0));(n||i)&&this.forceNext()}},t.prototype.finish=function(){this.checkAndCommitCurrentPage("finish")},Object.defineProperty(t.prototype,"movedToPreviousPage",{get:function(){return this._movedToPreviousPage.asObservable()},enumerable:!0,configurable:!0}),t.prototype.previous=function(){var t;this.currentPageIsFirst||this.wizardStopNavigation||(t=this.pageCollection.getPreviousPage(this.currentPage))&&(this._movedToPreviousPage.next(!0),this.forceForwardNavigation&&(this.currentPage.completed=!1),this.currentPage=t)},Object.defineProperty(t.prototype,"notifyWizardCancel",{get:function(){return this._cancelWizard.asObservable()},enumerable:!0,configurable:!0}),t.prototype.cancel=function(){this._cancelWizard.next()},t.prototype.goTo=function(t,e){void 0===e&&(e=!1);var n,r,i,o,s,a;i=this.pageCollection,n="string"==typeof t?i.getPageById(t):t,r=this.currentPage,n===r||this.wizardStopNavigation||(a=i.getPageIndex(r),s=i.getPageIndex(n)>a,o=i.getPageRangeFromPages(this.currentPage,n),(e||this.canGoTo(o))&&(s&&e?o.forEach(function(t){t!==n&&(t.completed=!0)}):!s&&this.forceForwardNavigation&&o.forEach(function(t){t.completed=!1}),this.currentPage=n))},t.prototype.canGoTo=function(t){var e,n=!0,r=this.pageCollection;return!(!t||t.length<1)&&(t.forEach(function(t){var i;n&&(t.completed||(i=r.getPageIndex(t)>0?r.getPreviousPage(t):null,e=null===i||!0===i.completed,t.current||e||(n=!1)))}),n)},t.prototype.setLastEnabledPageCurrent=function(){var t=this.pageCollection.pagesAsArray,e=null;t.forEach(function(t,n){t.completed&&(e=n)}),null===e?e=0:e+1<t.length&&(e+=1),this.currentPage=t[e]},t.prototype.setFirstPageCurrent=function(){this.currentPage=this.pageCollection.pagesAsArray[0]},Object.defineProperty(t.prototype,"wizardGhostPageState",{get:function(){return this._wizardGhostPageState},set:function(t){this.hideWizardGhostPages?this._wizardGhostPageState=qn.STATES.NO_PAGES:this._wizardGhostPageState=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideWizardGhostPages",{get:function(){return this._hideWizardGhostPages},set:function(t){this._hideWizardGhostPages=t},enumerable:!0,configurable:!0}),t.prototype.updateNavigation=function(){var t;this.pageCollection.updateCompletedStates(),this.pageCollection.pagesAsArray.indexOf(this.currentPage)<0&&(t=this.pageCollection.findFirstIncompletePage(),this.currentPage=t)},t}();yr.decorators=[{type:r.Injectable}],yr.ctorParameters=function(){return[{type:fr},{type:dr}]};var gr=function(){function t(t){this.navService=t}return Object.defineProperty(t.prototype,"wizardHasHeaderActions",{get:function(){var t=this.wizardHeaderActions;return!!t&&t.toArray().length>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPageHasHeaderActions",{get:function(){return!!this.navService.currentPage&&this.navService.currentPage.hasHeaderActions},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showWizardHeaderActions",{get:function(){return!this.currentPageHasHeaderActions&&this.wizardHasHeaderActions},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayHeaderActionsWrapper",{get:function(){return this.currentPageHasHeaderActions||this.wizardHasHeaderActions},enumerable:!0,configurable:!0}),t}();gr.decorators=[{type:r.Injectable}],gr.ctorParameters=function(){return[{type:yr}]};var vr=0,mr=function(){function t(){this.title="",this._id=(vr++).toString(),this.disabled=!1,this.headerActionClicked=new r.EventEmitter(!1)}return Object.defineProperty(t.prototype,"id",{get:function(){return"clr-wizard-header-action-"+this._id},enumerable:!0,configurable:!0}),t.prototype.click=function(){this.disabled||this.headerActionClicked.emit(this._id)},t}();mr.decorators=[{type:r.Component,args:[{selector:"clr-wizard-header-action",template:'\n <button \n type="button"\n class="btn clr-wizard-header-action btn-link"\n [id]="id"\n [class.disabled]="disabled"\n (click)="click()"\n [title]="title">\n <ng-content></ng-content>\n </button>\n ',host:{class:"clr-wizard-header-action-wrapper"}}]}],mr.ctorParameters=function(){return[]},mr.propDecorators={title:[{type:r.Input,args:["title"]}],_id:[{type:r.Input,args:["id"]}],disabled:[{type:r.Input,args:["clrWizardHeaderActionDisabled"]}],headerActionClicked:[{type:r.Output,args:["actionClicked"]}]};var br=0,_r=function(){function t(t,e,n){this.navService=t,this.pageCollection=e,this.buttonService=n,this._nextStepDisabled=!1,this.nextStepDisabledChange=new r.EventEmitter,this._previousStepDisabled=!1,this.previousStepDisabledChange=new r.EventEmitter,this.preventDefault=!1,this._stopCancel=!1,this.stopCancelChange=new r.EventEmitter,this._stopNext=!1,this.onCommit=new r.EventEmitter(!1),this.onLoad=new r.EventEmitter,this.pageOnCancel=new r.EventEmitter,this.finishButtonClicked=new r.EventEmitter,this.previousButtonClicked=new r.EventEmitter,this.nextButtonClicked=new r.EventEmitter,this.dangerButtonClicked=new r.EventEmitter,this.primaryButtonClicked=new r.EventEmitter,this.customButtonClicked=new r.EventEmitter,this._id=(br++).toString(),this._complete=!1}return Object.defineProperty(t.prototype,"nextStepDisabled",{get:function(){return this._nextStepDisabled},set:function(t){var e=!!t;e!==this._nextStepDisabled&&(this._nextStepDisabled=e,this.nextStepDisabledChange.emit(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"previousStepDisabled",{get:function(){return this._previousStepDisabled},set:function(t){var e=!!t;e!==this._previousStepDisabled&&(this._previousStepDisabled=e,this.previousStepDisabledChange.emit(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stopCancel",{get:function(){return this._stopCancel},set:function(t){var e=!!t;e!==this._stopCancel&&(this._stopCancel=e,this.stopCancelChange.emit(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stopNext",{get:function(){return this._stopNext},set:function(t){var e=!!t;e!==this._stopNext&&(this._stopNext=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return(!this._id&&0!==this._id||this._id<0)&&(this._id=(br++).toString()),"clr-wizard-page-"+this._id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readyToComplete",{get:function(){return!this.nextStepDisabled},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completed",{get:function(){return this._complete&&this.readyToComplete},set:function(t){this._complete=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"current",{get:function(){return this.navService.currentPage===this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return!this.enabled},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.current||this.completed||this.previousCompleted},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"previousCompleted",{get:function(){var t=this.pageCollection.getPreviousPage(this);return!t||t.completed},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.pageTitle.pageTitleTemplateRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"navTitle",{get:function(){return this.pageNavTitle?this.pageNavTitle.pageNavTitleTemplateRef:this.pageTitle.pageTitleTemplateRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"headerActions",{get:function(){if(this._headerActions)return this._headerActions.pageHeaderActionsTemplateRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasHeaderActions",{get:function(){return!!this._headerActions},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"buttons",{get:function(){if(this._buttons)return this._buttons.pageButtonsTemplateRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasButtons",{get:function(){return!!this._buttons},enumerable:!0,configurable:!0}),t.prototype.makeCurrent=function(){this.navService.currentPage=this},t.prototype.ngOnInit=function(){var t=this.navService;t.currentPage||t.navServiceLoaded||(this.makeCurrent(),this.navService.navServiceLoaded=!0)},Object.defineProperty(t.prototype,"stepItemId",{get:function(){return this.pageCollection.getStepItemIdForPage(this)},enumerable:!0,configurable:!0}),t}();_r.decorators=[{type:r.Component,args:[{selector:"clr-wizard-page",template:"<ng-content></ng-content>",host:{"[id]":"id",role:"tabpanel","[attr.aria-hidden]":"!current","[attr.aria-labelledby]":"stepItemId","[class.active]":"current","[class.clr-wizard-page]":"true"}}]}],_r.ctorParameters=function(){return[{type:yr},{type:fr},{type:dr}]},_r.propDecorators={pageTitle:[{type:r.ContentChild,args:[hr]}],pageNavTitle:[{type:r.ContentChild,args:[pr]}],_buttons:[{type:r.ContentChild,args:[ur]}],_headerActions:[{type:r.ContentChild,args:[lr]}],nextStepDisabled:[{type:r.Input,args:["clrWizardPageNextDisabled"]}],nextStepDisabledChange:[{type:r.Output,args:["clrWizardPageNextDisabledChange"]}],previousStepDisabled:[{type:r.Input,args:["clrWizardPagePreviousDisabled"]}],previousStepDisabledChange:[{type:r.Output,args:["clrWizardPagePreviousDisabledChange"]}],preventDefault:[{type:r.Input,args:["clrWizardPagePreventDefault"]}],stopCancel:[{type:r.Input,args:["clrWizardPagePreventDefaultCancel"]}],stopCancelChange:[{type:r.Output,args:["clrWizardPagePreventDefaultCancelChange"]}],stopNext:[{type:r.Input,args:["clrWizardPagePreventDefaultNext"]}],onCommit:[{type:r.Output,args:["clrWizardPageOnCommit"]}],onLoad:[{type:r.Output,args:["clrWizardPageOnLoad"]}],pageOnCancel:[{type:r.Output,args:["clrWizardPageOnCancel"]}],finishButtonClicked:[{type:r.Output,args:["clrWizardPageFinish"]}],previousButtonClicked:[{type:r.Output,args:["clrWizardPagePrevious"]}],nextButtonClicked:[{type:r.Output,args:["clrWizardPageNext"]}],dangerButtonClicked:[{type:r.Output,args:["clrWizardPageDanger"]}],primaryButtonClicked:[{type:r.Output,args:["clrWizardPagePrimary"]}],customButtonClicked:[{type:r.Output,args:["clrWizardPageCustomButton"]}],_id:[{type:r.Input,args:["id"]}]};var xr=function(){function t(t,e,n,i,o,s){var a=this;this.navService=t,this.pageCollection=e,this.buttonService=n,this.headerActionService=i,this.elementRef=o,this.differs=s,this.size="xl",this.showGhostPages=!1,this._forceForward=!1,this.closable=!0,this._open=!1,this._openChanged=new r.EventEmitter(!1),this.onCancel=new r.EventEmitter(!1),this.wizardFinished=new r.EventEmitter(!1),this.onReset=new r.EventEmitter(!1),this.currentPageChanged=new r.EventEmitter(!1),this.onMoveNext=new r.EventEmitter(!1),this.onMovePrevious=new r.EventEmitter(!1),this._stopNext=!1,this._stopCancel=!1,this._stopNavigation=!1,this._disableStepnav=!1,this._stopModalAnimations=!1,this.goNextSubscription=this.navService.movedToNextPage.subscribe(function(){a.onMoveNext.emit()}),this.goPreviousSubscription=this.navService.movedToPreviousPage.subscribe(function(){a.onMovePrevious.emit()}),this.cancelSubscription=this.navService.notifyWizardCancel.subscribe(function(){a.checkAndCancel()}),this.wizardFinishedSubscription=this.navService.wizardFinished.subscribe(function(){a.stopNext||a.forceFinish(),a.wizardFinished.emit()}),this.differ=s.find([]).create(null)}return Object.defineProperty(t.prototype,"forceForward",{get:function(){return this._forceForward},set:function(t){this._forceForward=!!t,this.navService.forceForwardNavigation=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clrWizardOpen",{set:function(t){t&&(this.buttonService.buttonsReady=!0),this._open=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stopNext",{get:function(){return this._stopNext},set:function(t){this._stopNext=!!t,this.navService.wizardHasAltNext=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stopCancel",{get:function(){return this._stopCancel},set:function(t){this._stopCancel=!!t,this.navService.wizardHasAltCancel=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stopNavigation",{get:function(){return this._stopNavigation},set:function(t){this._stopNavigation=!!t,this.navService.wizardStopNavigation=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableStepnav",{get:function(){return this._disableStepnav},set:function(t){this._disableStepnav=!!t,this.navService.wizardDisableStepnav=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stopModalAnimations",{get:function(){return this._stopModalAnimations?"true":"false"},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.currentPageSubscription=this.navService.currentPageChanged.subscribe(function(e){t.setGhostPages(),t.currentPageChanged.emit()})},t.prototype.ngOnDestroy=function(){this.goNextSubscription.unsubscribe(),this.goPreviousSubscription.unsubscribe(),this.cancelSubscription.unsubscribe(),this.currentPageSubscription.unsubscribe(),this.wizardFinishedSubscription.unsubscribe()},t.prototype.ngAfterContentInit=function(){var t=this.navService;this.pageCollection.pages=this.pages,this.headerActionService.wizardHeaderActions=this.headerActions,this.showGhostPages&&(t.hideWizardGhostPages=!1,this.deactivateGhostPages()),this._open&&(this.buttonService.buttonsReady=!0)},t.prototype.ngDoCheck=function(){var t=this,e=this.differ.diff(this.pages);e&&(e.forEachAddedItem(function(e){t.navService.updateNavigation()}),e.forEachRemovedItem(function(e){t.navService.updateNavigation()}))},Object.defineProperty(t.prototype,"isStatic",{get:function(){return this.elementRef.nativeElement.classList.contains("clr-wizard--inline")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPage",{get:function(){return this.navService.currentPage},set:function(t){this.navService.goTo(t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLast",{get:function(){return this.navService.currentPageIsLast},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isFirst",{get:function(){return this.navService.currentPageIsFirst},enumerable:!0,configurable:!0}),t.prototype.open=function(){this._open=!0,this.currentPage||this.navService.setFirstPageCurrent(),this.buttonService.buttonsReady=!0,this.setGhostPages(),this._openChanged.emit(!0)},t.prototype.close=function(){this.stopNavigation||(this._open=!1,this.deactivateGhostPages(),this._openChanged.emit(!1))},t.prototype.toggle=function(t){t?this.open():this.close()},t.prototype.prev=function(){this.previous()},t.prototype.previous=function(){this.navService.previous()},t.prototype.next=function(t){void 0===t&&(t=!0),t?this.forceNext():this.navService.next()},t.prototype.finish=function(t){void 0===t&&(t=!0),t?this.forceFinish():this.navService.finish()},t.prototype.forceFinish=function(){this.stopNavigation||(this.deactivateGhostPages(),this.close())},t.prototype.forceNext=function(){this.navService.forceNext()},t.prototype.cancel=function(){this.navService.cancel()},t.prototype.modalCancel=function(){this.checkAndCancel()},t.prototype.checkAndCancel=function(){var t=this.currentPage,e=t.stopCancel||t.preventDefault;this.stopNavigation||(t.pageOnCancel.emit(),e||this.onCancel.emit(),this.stopCancel||e||this.close())},t.prototype.goTo=function(t){t&&this.navService.goTo(t)},t.prototype.reset=function(){this.pageCollection.reset(),this.onReset.next()},Object.defineProperty(t.prototype,"ghostPageState",{get:function(){return this.navService.wizardGhostPageState},enumerable:!0,configurable:!0}),t.prototype.deactivateGhostPages=function(){this.setGhostPages("deactivate")},t.prototype.setGhostPages=function(t){void 0===t&&(t="");var e=this.navService,n=qn.STATES;this.showGhostPages&&("deactivate"===t?e.wizardGhostPageState=n.NO_PAGES:e.currentPageIsLast?e.wizardGhostPageState=n.LAST_PAGE:e.currentPageIsNextToLast?e.wizardGhostPageState=n.NEXT_TO_LAST_PAGE:e.wizardGhostPageState=n.ALL_PAGES)},t}();xr.decorators=[{type:r.Component,args:[{selector:"clr-wizard",providers:[yr,fr,dr,gr],template:'\n \x3c!--\n ~ Copyright (c) 2016-2017 VMware, Inc. All Rights Reserved.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n --\x3e\n\n <clr-modal\n [clrModalOpen]="_open"\n [clrModalSize]="size"\n [clrModalClosable]="closable"\n [clrModalStaticBackdrop]="true"\n [clrModalSkipAnimation]="stopModalAnimations"\n [clrModalGhostPageState]="ghostPageState"\n [clrModalOverrideScrollService]="isStatic"\n [clrModalPreventClose]="true"\n (clrModalAlternateClose)="modalCancel()">\n\n <nav class="modal-nav clr-wizard-stepnav-wrapper">\n <h3 class="clr-wizard-title"><ng-content select="clr-wizard-title"></ng-content></h3>\n <clr-wizard-stepnav></clr-wizard-stepnav>\n </nav>\n\n <h3 class="modal-title">\n <span class="modal-title-text">\n <ng-template [ngTemplateOutlet]="navService.currentPageTitle"></ng-template>\n </span>\n\n <div class="modal-header-actions-wrapper" *ngIf="headerActionService.displayHeaderActionsWrapper">\n <div *ngIf="headerActionService.showWizardHeaderActions">\n <ng-content select="clr-wizard-header-action"></ng-content>\n </div>\n <div *ngIf="headerActionService.currentPageHasHeaderActions">\n <ng-template [ngTemplateOutlet]="navService.currentPage.headerActions"></ng-template>\n </div>\n </div>\n </h3>\n\n <div class="modal-body">\n <main clr-wizard-pages-wrapper class="clr-wizard-content">\n <ng-content></ng-content>\n </main>\n </div>\n <div class="modal-footer clr-wizard-footer">\n <div class="clr-wizard-footer-buttons">\n <div *ngIf="navService.currentPage && !navService.currentPage.hasButtons"\n class="clr-wizard-footer-buttons-wrapper">\n <ng-content select="clr-wizard-button"></ng-content>\n </div>\n <div *ngIf="navService.currentPage && navService.currentPage.hasButtons"\n class="clr-wizard-footer-buttons-wrapper">\n <ng-template [ngTemplateOutlet]="navService.currentPage.buttons"></ng-template>\n </div>\n </div>\n </div>\n </clr-modal>\n ',host:{"[class.clr-wizard]":"true","[class.wizard-md]":"size == 'md'","[class.wizard-lg]":"size == 'lg'","[class.wizard-xl]":"size == 'xl'","[class.lastPage]":"navService.currentPageIsLast","[class.clr-wizard--ghosted]":"showGhostPages"}}]}],xr.ctorParameters=function(){return[{type:yr},{type:fr},{type:dr},{type:gr},{type:r.ElementRef},{type:r.IterableDiffers}]},xr.propDecorators={size:[{type:r.Input,args:["clrWizardSize"]}],showGhostPages:[{type:r.Input,args:["clrWizardShowGhostPages"]}],forceForward:[{type:r.Input,args:["clrWizardForceForwardNavigation"]}],closable:[{type:r.Input,args:["clrWizardClosable"]}],clrWizardOpen:[{type:r.Input,args:["clrWizardOpen"]}],_openChanged:[{type:r.Output,args:["clrWizardOpenChange"]}],onCancel:[{type:r.Output,args:["clrWizardOnCancel"]}],wizardFinished:[{type:r.Output,args:["clrWizardOnFinish"]}],onReset:[{type:r.Output,args:["clrWizardOnReset"]}],pages:[{type:r.ContentChildren,args:[_r]}],headerActions:[{type:r.ContentChildren,args:[mr]}],currentPageChanged:[{type:r.Output,args:["clrWizardCurrentPageChanged"]}],onMoveNext:[{type:r.Output,args:["clrWizardOnNext"]}],onMovePrevious:[{type:r.Output,args:["clrWizardOnPrevious"]}],stopNext:[{type:r.Input,args:["clrWizardPreventDefaultNext"]}],stopCancel:[{type:r.Input,args:["clrWizardPreventDefaultCancel"]}],stopNavigation:[{type:r.Input,args:["clrWizardPreventNavigation"]}],disableStepnav:[{type:r.Input,args:["clrWizardDisableStepnav"]}],_stopModalAnimations:[{type:r.Input,args:["clrWizardPreventModalAnimation"]}]};var wr={cancel:"cancel",previous:"previous",next:"next",finish:"finish",danger:"danger"},Or={cancel:"custom-cancel",previous:"custom-previous",next:"custom-next",finish:"custom-finish",danger:"custom-danger"},Sr=function(){function t(t,e){this.navService=t,this.buttonService=e,this.type="",this.disabled=!1,this.hidden=!1,this.wasClicked=new r.EventEmitter(!1)}return t.prototype.checkDefaultAndCustomType=function(t,e){return void 0===t&&(t=""),wr[e]===t||Or[e]===t},Object.defineProperty(t.prototype,"isCancel",{get:function(){return this.checkDefaultAndCustomType(this.type,"cancel")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isNext",{get:function(){return this.checkDefaultAndCustomType(this.type,"next")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPrevious",{get:function(){return this.checkDefaultAndCustomType(this.type,"previous")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isFinish",{get:function(){return this.checkDefaultAndCustomType(this.type,"finish")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDanger",{get:function(){return this.checkDefaultAndCustomType(this.type,"danger")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPrimaryAction",{get:function(){return this.isNext||this.isDanger||this.isFinish},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_disabledAttribute",{get:function(){return this.isDisabled?"":null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDisabled",{get:function(){var t=this.navService,e=this.navService.currentPage;return!!this.buttonService.buttonsReady&&(!(!this.disabled&&!t.wizardStopNavigation&&e)||!this.isCancel&&(!(!this.isPrevious||!t.currentPageIsFirst&&!e.previousStepDisabled)||(!(!this.isDanger||e.readyToComplete)||(!(!this.isNext||!t.currentPageIsLast&&e.readyToComplete)||!(!this.isFinish||t.currentPageIsLast&&e.readyToComplete)))))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isHidden",{get:function(){var t=this.navService;return!!this.buttonService.buttonsReady&&(!!this.hidden||!this.isCancel&&(!(!this.isPrevious||!t.currentPageIsFirst)||(!(!this.isNext||!t.currentPageIsLast)||!(!this.isFinish||t.currentPageIsLast))))},enumerable:!0,configurable:!0}),t.prototype.click=function(){this.isDisabled||(this.wasClicked.emit(this.type),this.buttonService.buttonClicked(this.type))},t}();Sr.decorators=[{type:r.Component,args:[{selector:"clr-wizard-button",template:'\n <button\n type="button"\n class="btn clr-wizard-btn"\n [class.btn-link]="isCancel"\n [class.clr-wizard-btn--tertiary]="isCancel"\n [class.btn-outline]="isPrevious"\n [class.clr-wizard-btn--secondary]="isPrevious"\n [class.btn-primary]="isPrimaryAction"\n [class.clr-wizard-btn--primary]="isPrimaryAction"\n [class.btn-success]="isFinish"\n [class.btn-danger]="isDanger"\n [class.disabled]="isDisabled"\n [attr.disabled]="_disabledAttribute"\n (click)="click()">\n <ng-content></ng-content>\n </button>\n ',host:{class:"clr-wizard-btn-wrapper","[attr.aria-hidden]":"isHidden"},styles:['[aria-hidden="true"] { display: none; }']}]}],Sr.ctorParameters=function(){return[{type:yr},{type:dr}]},Sr.propDecorators={type:[{type:r.Input,args:["type"]}],disabled:[{type:r.Input,args:["clrWizardButtonDisabled"]}],hidden:[{type:r.Input,args:["clrWizardButtonHidden"]}],wasClicked:[{type:r.Output,args:["clrWizardButtonClicked"]}]};var Cr=function(){return function(){}}();Cr.decorators=[{type:r.Directive,args:[{selector:"clr-wizard-title, clr-wizard-pagetitle"}]}],Cr.ctorParameters=function(){return[]};var Er=function(){return function(t){this.pageService=t}}();Er.decorators=[{type:r.Component,args:[{selector:"clr-wizard-stepnav",template:'\n <ol class="clr-wizard-stepnav-list" role="tablist">\n <li *ngFor="let page of pageService.pages" clr-wizard-stepnav-item \n [page]="page" class="clr-wizard-stepnav-item"></li>\n </ol>\n ',host:{class:"clr-wizard-stepnav"}}]}],Er.ctorParameters=function(){return[{type:fr}]};var Tr=function(){function t(t,e){this.navService=t,this.pageCollection=e}return t.prototype.pageGuard=function(){if(!this.page)throw new Error("Wizard stepnav item is not associated with a wizard page.")},Object.defineProperty(t.prototype,"id",{get:function(){return this.pageGuard(),this.pageCollection.getStepItemIdForPage(this.page)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this.pageGuard(),this.page.disabled||this.navService.wizardStopNavigation||this.navService.wizardDisableStepnav},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCurrent",{get:function(){return this.pageGuard(),this.page.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isComplete",{get:function(){return this.pageGuard(),this.page.completed},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canNavigate",{get:function(){return this.pageGuard(),this.pageCollection.previousPageIsCompleted(this.page)},enumerable:!0,configurable:!0}),t.prototype.click=function(){this.pageGuard(),this.isDisabled||this.isCurrent||this.navService.goTo(this.page)},t}();Tr.decorators=[{type:r.Component,args:[{selector:"[clr-wizard-stepnav-item]",template:'\n <button type="button" class="btn btn-link clr-wizard-stepnav-link" (click)="click()">\n <ng-template [ngTemplateOutlet]="page.navTitle"></ng-template>\n </button>\n ',host:{"[id]":"id","[attr.aria-selected]":"isCurrent","[attr.aria-controls]":"id",role:"presentation","[class.clr-nav-link]":"true","[class.nav-item]":"true","[class.active]":"isCurrent","[class.disabled]":"isDisabled","[class.no-click]":"!canNavigate","[class.complete]":"isComplete"}}]}],Tr.ctorParameters=function(){return[{type:yr},{type:fr}]},Tr.propDecorators={page:[{type:r.Input,args:["page"]}]};var jr=[xr,_r,Er,Tr,Sr,mr,Cr,hr,pr,ur,lr],Pr=function(){return function(){}}();Pr.decorators=[{type:r.NgModule,args:[{imports:[i.CommonModule,Xn,Ye],declarations:[jr],exports:[jr]}]}],Pr.ctorParameters=function(){return[]};var Ar=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[]}},t.forChild=function(){return{ngModule:t,providers:[]}},t}();Ar.decorators=[{type:r.NgModule,args:[{exports:[Ke,xe,d,Xn,I,Y,Pe,Wn,D,V,U,Bn,cr,Pr]}]}],Ar.ctorParameters=function(){return[]}},uGEk:function(t,e,n){"use strict";var r=n("bKpL"),i=n("2UX5");r.Observable.prototype.timeout=i.timeout},"uT+d":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){var e=t.call(this,"argument out of range");this.name=e.name="ArgumentOutOfRangeError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);e.ArgumentOutOfRangeError=i},uYJe:function(t,e,n){"use strict";var r=n("FTnw");e._finally=function(t){return r.finalize(t)(this)}},ub06:function(t,e,n){"use strict";var r=n("bKpL"),i=n("ViUi");r.Observable.prototype.merge=i.merge},ueUM:function(t,e,n){"use strict";var r=n("g1RG");e._catch=function(t){return r.catchError(t)(this)}},v1IT:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("xFbG"),o=n("RdI5"),s=n("XRvs"),a=n("yW9Z"),c=n("ktfo");e.bufferWhen=function(t){return function(e){return e.lift(new u(t))}};var u=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.closingSelector))},t}(),l=function(t){function e(e,n){t.call(this,e),this.closingSelector=n,this.subscribing=!1,this.openBuffer()}return r(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},e.prototype.notifyNext=function(t,e,n,r,i){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e=this.buffer;this.buffer&&this.destination.next(e),this.buffer=[];var n=o.tryCatch(this.closingSelector)();n===s.errorObject?this.error(s.errorObject.e):(t=new i.Subscription,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(c.subscribeToResult(this,n)),this.subscribing=!1)},e}(a.OuterSubscriber)},v2el:function(t,e,n){"use strict";function r(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r)throw new Error("illegal type: "+t);r[t]=[]}return new i(r)}function i(t){this._=t}function o(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=s,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}var s={value:function(){}};i.prototype=r.prototype={constructor:i,on:function(t,e){var n,r=this._,i=function(t,e){return t.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}(t+"",r),s=-1,a=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++s<a;)if(n=(t=i[s]).type)r[n]=o(r[n],t.name,e);else if(null==e)for(n in r)r[n]=o(r[n],t.name,null);return this}for(;++s<a;)if((n=(t=i[s]).type)&&(n=function(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new i(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};var a=r;n.d(e,"a",function(){return a})},v6xs:function(t,e,n){"use strict";var r=n("bKpL"),i=n("zjlw");r.Observable.prototype.retry=i.retry},"v71/":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+"),o=n("TpsG");e.single=function(t){return function(e){return e.lift(new s(t,e))}};var s=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.source))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.predicate=n,this.source=r,this.seenValue=!1,this.index=0}return r(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new o.EmptyError)},e}(i.Subscriber)},vJ3t:function(t,e,n){"use strict";var r=n("bKpL"),i=n("6P86");r.Observable.combineLatest=i.combineLatest},"vKg+":function(t,e,n){"use strict";var r=n("bKpL"),i=n("jKKE");r.Observable.prototype.count=i.count},vNV3:function(t,e,n){"use strict";var r=n("bKpL"),i=n("olOS");r.Observable.prototype.timestamp=i.timestamp},vNxK:function(t,e,n){"use strict";var r=n("7kbP"),i=n("7kbP");e.concatStatic=i.concat,e.concat=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){return e.lift.call(r.concat.apply(void 0,[e].concat(t)))}}},vfw3:function(t,e,n){"use strict";var r=n("bKpL"),i=n("iDKa");r.Observable.prototype.skip=i.skip},vioa:function(t,e,n){"use strict";var r=n("sLwK");e.timer=r.TimerObservable.create},vokw:function(t,e,n){"use strict";var r=n("y23k");e.expand=function(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),e=(e||0)<1?Number.POSITIVE_INFINITY:e,r.expand(t,e,n)(this)}},vtHn:function(t,e,n){"use strict";var r=n("bKpL"),i=n("OCM8");r.Observable.prototype.publishLast=i.publishLast},vxPf:function(t,e,n){"use strict";function r(t){return t?1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}:i.noop}var i=n("Z5ED");e.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r(t)},e.pipeFromArray=r},wCVK:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=n("aOKN"),s=n("fcnB"),a=function(t){function e(e,n){t.call(this),this.arrayLike=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return r(e,t),e.create=function(t,n){var r=t.length;return 0===r?new s.EmptyObservable:1===r?new o.ScalarObservable(t[0],n):new e(t,n)},e.dispatch=function(t){var e=t.arrayLike,n=t.index,r=t.length,i=t.subscriber;i.closed||(n>=r?i.complete():(i.next(e[n]),t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.arrayLike,r=this.scheduler,i=n.length;if(r)return r.schedule(e.dispatch,0,{arrayLike:n,index:0,length:i,subscriber:t});for(var o=0;o<i&&!t.closed;o++)t.next(n[o]);t.complete()},e}(i.Observable);e.ArrayLikeObservable=a},wDL6:function(t,e,n){"use strict";var r=n("Hg2u");e.repeat=function(t){return void 0===t&&(t=-1),r.repeat(t)(this)}},wEhC:function(t,e,n){"use strict";var r=n("JCyH"),i=n("HyAm");e.asap=new i.AsapScheduler(r.AsapAction)},wP3s:function(t,e,n){"use strict";e.a=function(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return"number"==typeof e&&(n=e,e=null),r.lift(new s(t,e,n))}};var r=n("qgI0"),i=n("lI6h"),o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=function(){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.resultSelector,this.concurrent))},t}(),a=function(t){function e(e,n,r,i){void 0===i&&(i=Number.POSITIVE_INFINITY),t.call(this,e),this.project=n,this.resultSelector=r,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return o(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){this.add(Object(r.a)(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.resultSelector?this._notifyResultSelector(t,e,n,r):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,n,r){var i;try{i=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(i)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(i.a)},wQte:function(t,e,n){"use strict";var r=function(){function t(){this.size=0,this._values=[],this._keys=[]}return t.prototype.get=function(t){var e=this._keys.indexOf(t);return-1===e?void 0:this._values[e]},t.prototype.set=function(t,e){var n=this._keys.indexOf(t);return-1===n?(this._keys.push(t),this._values.push(e),this.size++):this._values[n]=e,this},t.prototype.delete=function(t){var e=this._keys.indexOf(t);return-1!==e&&(this._values.splice(e,1),this._keys.splice(e,1),this.size--,!0)},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this.size=0},t.prototype.forEach=function(t,e){for(var n=0;n<this.size;n++)t.call(e,this._values[n],this._keys[n])},t}();e.MapPolyfill=r},wZOE:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=n("aOKN"),s=n("fcnB"),a=n("MicL"),c=function(t){function e(e,n){t.call(this),this.array=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return r(e,t),e.create=function(t,n){return new e(t,n)},e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];var r=t[t.length-1];a.isScheduler(r)?t.pop():r=null;var i=t.length;return i>1?new e(t,r):1===i?new o.ScalarObservable(t[0],r):new s.EmptyObservable(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.count,i=t.subscriber;n>=r?i.complete():(i.next(e[n]),i.closed||(t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.array,r=n.length,i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{array:n,index:0,count:r,subscriber:t});for(var o=0;o<r&&!t.closed;o++)t.next(n[o]);t.complete()},e}(i.Observable);e.ArrayObservable=c},wbX9:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=n("RdI5"),s=n("fclq"),a=n("XRvs"),c=n("xFbG"),u=Object.prototype.toString,l=function(t){function e(e,n,r,i){t.call(this),this.sourceObj=e,this.eventName=n,this.selector=r,this.options=i}return r(e,t),e.create=function(t,n,r,i){return s.isFunction(r)&&(i=r,r=void 0),new e(t,n,i,r)},e.setupSubscription=function(t,n,r,i,o){var s;if(function(t){return!!t&&"[object NodeList]"===u.call(t)}(t)||function(t){return!!t&&"[object HTMLCollection]"===u.call(t)}(t))for(var a=0,l=t.length;a<l;a++)e.setupSubscription(t[a],n,r,i,o);else if(function(t){return!!t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var p=t;t.addEventListener(n,r,o),s=function(){return p.removeEventListener(n,r)}}else if(function(t){return!!t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var h=t;t.on(n,r),s=function(){return h.off(n,r)}}else{if(!function(t){return!!t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t))throw new TypeError("Invalid event target");var d=t;t.addListener(n,r),s=function(){return d.removeListener(n,r)}}i.add(new c.Subscription(s))},e.prototype._subscribe=function(t){var n=this.sourceObj,r=this.eventName,i=this.options,s=this.selector;e.setupSubscription(n,r,s?function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var r=o.tryCatch(s).apply(void 0,e);r===a.errorObject?t.error(a.errorObject.e):t.next(r)}:function(e){return t.next(e)},t,i)},e}(i.Observable);e.FromEventObservable=l},wcuQ:function(t,e,n){"use strict";var r=n("L8VJ");e.pluck=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(e){return r.map(function(t,e){return function(n){for(var r=n,i=0;i<e;i++){var o=r[t[i]];if("undefined"==typeof o)return;r=o}return r}}(t,n))(e)}}},weui:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("yW9Z"),o=n("ktfo");e.exhaust=function(){return function(t){return t.lift(new s)}};var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new a(t))},t}(),a=function(t){function e(e){t.call(this,e),this.hasCompleted=!1,this.hasSubscription=!1}return r(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(o.subscribeToResult(this,t)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(i.OuterSubscriber)},x8Hs:function(t,e,n){"use strict";function r(t,e){var n=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e?e.apply(void 0,n):{};return Object(wn.a)({ngMetadataName:t},i)};return n.isTypeOf=function(e){return e&&e.ngMetadataName===t},n.ngMetadataName=t,n}function i(t,e){return o(t,":",e)}function o(t,e,n){var r=t.indexOf(e);return-1==r?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function s(t,e,n){return Array.isArray(t)?e.visitArray(t,n):function(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===rr}(t)?e.visitStringMap(t,n):null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t?e.visitPrimitive(t,n):e.visitOther(t,n)}function a(t){return null!==t&&void 0!==t}function c(t){return void 0===t?null:t}function u(t,e){var n=Error(t);return n[er]=!0,e&&(n[nr]=e),n}function l(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function p(t){for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r>=55296&&r<=56319&&t.length>n+1){var i=t.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-56320+65536)}r<=127?e+=String.fromCharCode(r):r<=2047?e+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?e+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(e+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return e}function h(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(h).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function d(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")?t():t}function f(t){return!!t&&"function"==typeof t.then}function y(t,e,n){void 0===n&&(n=null);var r=[],i=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=i(t);e&&r.push(e)}),r}function g(t,e){return void 0===e&&(e=!0),null===t?e:t}function v(t){return t.replace(/\W/g,"_")}function m(t){if(!t||!t.reference)return null;var e=t.reference;if(e instanceof _r)return e.name;if(e.__anonymousType)return e.__anonymousType;var n=h(e);return n.indexOf("(")>=0?(n="anonymous_"+Or++,e.__anonymousType=n):n=v(n),n}function b(t){var e=t.reference;return e instanceof _r?e.filePath:"./"+h(e)}function _(t,e){return"View_"+m({reference:t})+"_"+e}function x(t){return"RenderType_"+m({reference:t})}function w(t){return m({reference:t})+"NgFactory"}function O(t){return null!=t.value?v(t.value):m(t.identifier)}function S(t){return null!=t.identifier?t.identifier.reference:t.value}function C(t){return t||[]}function E(t){return t.reduce(function(t,e){var n=Array.isArray(e)?E(e):e;return t.concat(n)},[])}function T(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function j(t,e,n){var r;return r=n.isInline?e.type.reference instanceof _r?e.type.reference.filePath+"."+e.type.reference.name+".html":m(t)+"/"+m(e.type)+".html":n.templateUrl,e.type.reference instanceof _r?r:T(r)}function P(t,e,n){void 0===n&&(n=null);var r=[],i=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=i(t);e&&r.push(e)}),r}function A(t,e){if(null!=e){if(!Array.isArray(e))throw new Error("Expected '"+t+"' to be an array of strings.");for(var n=0;n<e.length;n+=1)if("string"!=typeof e[n])throw new Error("Expected '"+t+"' to be an array of strings.")}}function I(t,e){if(!(null==e||Array.isArray(e)&&2==e.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(null!=e){var n=e[0],r=e[1];Fr.forEach(function(t){if(t.test(n)||t.test(r))throw new Error("['"+n+"', '"+r+"'] contains unusable interpolation symbol.")})}}function k(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(Wr);return null===e||"package"==e[1]||"asset"==e[1]}function R(t){if(":"!=t[0])return[null,t];var e=t.indexOf(":",1);if(-1==e)throw new Error('Unsupported format "'+t+'" expecting ":namespace:name"');return[t.slice(1,e),t.slice(e+1)]}function M(t){return"ng-container"===R(t)[1]}function D(t){return"ng-content"===R(t)[1]}function N(t){return null===t?null:R(t)[0]}function L(t,e){return t?":"+t+":"+e:e}function F(t){var e=null,n=null,r=null,i=!1,o=null;t.attrs.forEach(function(t){var s=t.name.toLowerCase();s==Kr?e=t.value:s==Qr?n=t.value:s==$r?r=t.value:t.name==ei?i=!0:t.name==ni&&t.value.length>0&&(o=t.value)}),e=function(t){if(null===t||0===t.length)return"*";return t}(e);var s=t.name.toLowerCase(),a=ri.OTHER;return D(s)?a=ri.NG_CONTENT:s==Jr?a=ri.STYLE:s==ti?a=ri.SCRIPT:s==Xr&&r==Zr&&(a=ri.STYLESHEET),new ii(a,e,n,i,o)}function V(t){return An.isTypeOf(t)||Rn.isTypeOf(t)}function B(t,e){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return t[n];return null}function H(t){return t>=li&&t<=yi||t==Hi}function z(t){return Ci<=t&&t<=Ei}function U(t){return t>=ki&&t<=Vi||t>=Ti&&t<=Ai}function W(t,e){return new qi(t,Ui.Character,e,String.fromCharCode(e))}function G(t,e){return new qi(t,Ui.Operator,0,e)}function q(t){return ki<=t&&t<=Vi||Ti<=t&&t<=Ai||t==Ii||t==vi}function Y(t){return U(t)||z(t)||t==Ii||t==vi}function K(t){return t===mi||t===gi||t===zi}function X(t){var e=l(t.start)+"([\\s\\S]*?)"+l(t.end);return new RegExp(e,"g")}function $(t){return'Unexpected character "'+(t===ui?"EOF":String.fromCharCode(t))+'"'}function Q(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}function Z(t){return!H(t)||t===ui}function J(t){return H(t)||t===Si||t===xi||t===mi||t===gi||t===Oi}function tt(t){return t==wi||t==ui||!function(t){return t>=ki&&t<=Mi||t>=Ti&&t<=Pi||z(t)}(t)}function et(t){return t==wi||t==ui||!U(t)}function nt(t,e,n){var r=!!n&&t.indexOf(n.start,e)==e;return t.charCodeAt(e)==Bi&&!r}function rt(t){return t>=ki&&t<=Vi?t-ki+Ti:t}function it(t,e){return t.length>0&&t[t.length-1]===e}function ot(t){return t.id||function(t){var e=p(t),n=function(t,e){for(var n=Array(t.length+3>>>2),r=0;r<n.length;r++)n[r]=yt(t,4*r,e);return n}(e,Ko.Big),r=8*e.length,i=new Array(80),o=[1732584193,4023233417,2562383102,271733878,3285377520],s=o[0],a=o[1],c=o[2],u=o[3],l=o[4];n[r>>5]|=128<<24-r%32,n[15+(r+64>>9<<4)]=r;for(var h=0;h<n.length;h+=16){for(var d=[s,a,c,u,l],f=d[0],y=d[1],g=d[2],v=d[3],m=d[4],b=0;b<80;b++){i[b]=b<16?n[h+b]:dt(i[b-3]^i[b-8]^i[b-14]^i[b-16],1);var _=function(t,e,n,r){if(t<20)return[e&n|~e&r,1518500249];if(t<40)return[e^n^r,1859775393];if(t<60)return[e&n|e&r|n&r,2400959708];return[e^n^r,3395469782]}(b,a,c,u),x=_[0],w=_[1],O=[dt(s,5),x,l,w,i[b]].reduce(lt);S=[u,c,dt(a,30),s,O],l=S[0],u=S[1],c=S[2],a=S[3],s=S[4]}C=[lt(s,f),lt(a,y),lt(c,g),lt(u,v),lt(l,m)],s=C[0],a=C[1],c=C[2],u=C[3],l=C[4]}return function(t){for(var e="",n=0;n<t.length;n++){var r=ft(t,n);e+=(r>>>4).toString(16)+(15&r).toString(16)}return e.toLowerCase()}(gt([s,a,c,u,l]));var S,C}(function(t){return t.map(function(t){return t.visit(qo,null)})}(t.nodes).join("")+"["+t.meaning+"]")}function st(t){if(t.id)return t.id;var e=new Yo;return function(t,e){var n=at(t),r=n[0],i=n[1];if(e){var o=at(e),s=o[0],a=o[1];c=function(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],s=pt(r,o),a=s[0],c=s[1];return[lt(lt(n,i),a),c]}(function(t,e){var n=t[0],r=t[1];return[n<<e|r>>>32-e,r<<e|n>>>32-e]}([r,i],1),[s,a]),r=c[0],i=c[1]}return function(t){for(var e="",n="1",r=t.length-1;r>=0;r--)e=vt(e,mt(ft(t,r),n)),n=mt(256,n);return e.split("").reverse().join("")}(gt([2147483647&r,i]));var c}(t.nodes.map(function(t){return t.visit(e,null)}).join(""),t.meaning)}function at(t){var e=p(t),n=[ct(e,0),ct(e,102072)],r=n[0],i=n[1];return 0!=r||0!=i&&1!=i||(r^=319790063,i^=-1801410264),[r,i]}function ct(t,e){var n,r=[2654435769,2654435769],i=r[0],o=r[1],s=t.length;for(n=0;n+12<=s;n+=12)i=(a=ut([i=lt(i,yt(t,n,Ko.Little)),o=lt(o,yt(t,n+4,Ko.Little)),e=lt(e,yt(t,n+8,Ko.Little))]))[0],o=a[1],e=a[2];return i=lt(i,yt(t,n,Ko.Little)),o=lt(o,yt(t,n+4,Ko.Little)),e=lt(e,s),e=lt(e,yt(t,n+8,Ko.Little)<<8),ut([i,o,e])[2];var a}function ut(t){var e=t[0],n=t[1],r=t[2];return e=ht(e,n),e=ht(e,r),e^=r>>>13,n=ht(n,r),n=ht(n,e),n^=e<<8,r=ht(r,e),r=ht(r,n),r^=n>>>13,e=ht(e,n),e=ht(e,r),e^=r>>>12,n=ht(n,r),n=ht(n,e),n^=e<<16,r=ht(r,e),r=ht(r,n),r^=n>>>5,e=ht(e,n),e=ht(e,r),e^=r>>>3,n=ht(n,r),n=ht(n,e),n^=e<<10,r=ht(r,e),r=ht(r,n),r^=n>>>15,[e,n,r]}function lt(t,e){return pt(t,e)[1]}function pt(t,e){var n=(65535&t)+(65535&e),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function ht(t,e){var n=(65535&t)-(65535&e);return(t>>16)-(e>>16)+(n>>16)<<16|65535&n}function dt(t,e){return t<<e|t>>>32-e}function ft(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function yt(t,e,n){var r=0;if(n===Ko.Big)for(var i=0;i<4;i++)r+=ft(t,e+i)<<24-8*i;else for(i=0;i<4;i++)r+=ft(t,e+i)<<8*i;return r}function gt(t){return t.reduce(function(t,e){return t+function(t){for(var e="",n=0;n<4;n++)e+=String.fromCharCode(t>>>8*(3-n)&255);return e}(e)},"")}function vt(t,e){for(var n="",r=Math.max(t.length,e.length),i=0,o=0;i<r||o;i++){var s=o+ +(t[i]||0)+ +(e[i]||0);s>=10?(o=1,n+=s-10):(o=0,n+=s)}return n}function mt(t,e){for(var n="",r=e;0!==t;t>>>=1)1&t&&(n=vt(n,r)),r=vt(r,r);return n}function bt(t){return os[t.toLowerCase()]||ss}function _t(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(gs),n=t.indexOf(ys),r=e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],i=r[0],o=r[1],s=n>-1?[i.slice(0,n),i.slice(n+1)]:["",i];return{meaning:s[0],description:s[1],id:o}}function xt(t){return xs}function wt(t){return t.map(function(t){return t.visit(Cs)}).join("")}function Ot(t){return Is.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function St(t){return st(t)}function Ct(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}function Et(t,e){void 0===e&&(e=!1);var n=jt(t,e);return n[0]+".ngfactory"+n[1]}function Tt(t){return t.replace(Qs,".")}function jt(t,e){if(void 0===e&&(e=!1),t.endsWith(".d.ts"))return[t.slice(0,-5),e?".ts":".d.ts"];var n=t.lastIndexOf(".");return-1!==n?[t.substring(0,n),t.substring(n)]:[t,""]}function Pt(t){return t.replace($s,"")+".ngsummary.json"}function At(t,e){void 0===e&&(e=!1);var n=jt(Tt(t),e);return n[0]+".ngsummary"+n[1]}function It(t){return t+"NgSummary"}function kt(t){return{identifier:{reference:t}}}function Rt(t,e){return kt(t.resolveExternalReference(e))}function Mt(t,e,n){return t.hasLifecycleHook(n,function(t){switch(t){case ra.OnInit:return"ngOnInit";case ra.OnDestroy:return"ngOnDestroy";case ra.DoCheck:return"ngDoCheck";case ra.OnChanges:return"ngOnChanges";case ra.AfterContentInit:return"ngAfterContentInit";case ra.AfterContentChecked:return"ngAfterContentChecked";case ra.AfterViewInit:return"ngAfterViewInit";case ra.AfterViewChecked:return"ngAfterViewChecked"}}(e))}function Dt(t,e){if(void 0===e&&(e=[]),t)for(var n=0;n<t.length;n++){var r=d(t[n]);Array.isArray(r)?Dt(r,e):e.push(r)}return e}function Nt(t){return function(t){return t?Array.from(new Set(t)):[]}(Dt(t))}function Lt(t){return t instanceof _r||t instanceof Yn}function Ft(t){return t instanceof _r?t.name+" in "+t.filePath:h(t)}function Vt(t,e){return null==t||null==e?t==e:t.isEquivalent(e)}function Bt(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(!t[r].isEquivalent(e[r]))return!1;return!0}function Ht(t){var e=new dc;return e.visitAllStatements(t,null),e.varNames}function zt(t,e){if(!e)return t;var n=new fc(e);return t.visitStatement(n,null)}function Ut(t,e){if(!e)return t;var n=new fc(e);return t.visitExpression(n,null)}function Wt(t,e,n){return new Ea(t,e,n)}function Gt(t,e,n){return void 0===e&&(e=null),new Da(t,null,e,n)}function qt(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),null!=t?Yt(Gt(t,e,null),n):null}function Yt(t,e){return void 0===e&&(e=null),new va(t,e)}function Kt(t,e,n){return new qa(t,e,n)}function Xt(t,e){return void 0===e&&(e=null),new Ka(t.map(function(t){return new Ya(t.key,t.value,t.quoted)}),e,null)}function $t(t,e,n,r){return new za(t,e,n,r)}function Qt(t,e,n){return new Ma(t,e,n)}function Zt(t,e){var n=e.useExisting,r=e.useValue,i=e.deps;return{token:t.token,useClass:t.useClass,useExisting:n,useFactory:t.useFactory,useValue:r,deps:i,multi:t.multi}}function Jt(t,e){var n=e.eager,r=e.providers;return new yr(t.token,t.multiProvider,t.eager||n,r,t.providerType,t.lifecycleHooks,t.sourceSpan)}function te(t,e,n,r,i,o){t.forEach(function(t){var s=o.get(S(t.token));if(null!=s&&!!s.multiProvider!=!!t.multi&&i.push(new yc("Mixing multi and non multi provider is not possible for token "+O(s.token),r)),s)t.multi||(s.providers.length=0),s.providers.push(t);else{var a=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[],c=!(t.useClass||t.useExisting||t.useFactory);s=new yr(t.token,!!t.multi,n||c,[t],e,a,r),o.set(S(t.token),s)}})}function ee(t,e){e.meta.selectors.forEach(function(n){var r=t.get(S(n));r||(r=[],t.set(S(n),r)),r.push(e)})}function ne(t,e,n){return void 0===n&&(n=null),s(e,new bc(t),n)}function re(t,e){var n=0;e.eager||(n|=4096),e.providerType===gr.PrivateService&&(n|=8192),e.lifecycleHooks.forEach(function(t){t!==ra.OnDestroy&&e.providerType!==gr.Directive&&e.providerType!==gr.Component||(n|=ae(t))});var r=e.multiProvider?function(t,e,n){function r(e,n){return n.map(function(n,r){var s="p"+e+"_"+r;return o.push(new Ha(s,_a)),i.push(se(t,n)),Wt(s)})}var i=[],o=[],s=n.map(function(e,n){var i;if(e.useClass){var o=r(n,e.deps||e.useClass.diDeps);i=t.importExpr(e.useClass.reference).instantiate(o)}else if(e.useFactory){var o=r(n,e.deps||e.useFactory.diDeps);i=t.importExpr(e.useFactory.reference).callFn(o)}else if(e.useExisting){var o=r(n,[{token:e.useExisting}]);i=o[0]}else i=ne(t,e.useValue);return i});return{providerExpr:$t(o,[new rc(Kt(s))],xa),flags:1024|e,depsExpr:Kt(i)}}(t,n,e.providers):ie(t,n,e.providerType,e.providers[0]);return{providerExpr:r.providerExpr,flags:r.flags,depsExpr:r.depsExpr,tokenExpr:oe(t,e.token)}}function ie(t,e,n,r){var i,o;n===gr.Directive||n===gr.Component?(i=t.importExpr(r.useClass.reference),e|=16384,o=r.deps||r.useClass.diDeps):r.useClass?(i=t.importExpr(r.useClass.reference),e|=512,o=r.deps||r.useClass.diDeps):r.useFactory?(i=t.importExpr(r.useFactory.reference),e|=1024,o=r.deps||r.useFactory.diDeps):r.useExisting?(i=$a,e|=2048,o=[{token:r.useExisting}]):(i=ne(t,r.useValue),e|=256,o=[]);return{providerExpr:i,flags:e,depsExpr:Kt(o.map(function(e){return se(t,e)}))}}function oe(t,e){return e.identifier?t.importExpr(e.identifier.reference):Qt(e.value)}function se(t,e){var n=e.isValue?ne(t,e.value):oe(t,e.token),r=0;return e.isSkipSelf&&(r|=1),e.isOptional&&(r|=2),e.isValue&&(r|=8),0===r?n:Kt([Qt(r),n])}function ae(t){var e=0;switch(t){case ra.AfterContentChecked:e=2097152;break;case ra.AfterContentInit:e=1048576;break;case ra.AfterViewChecked:e=8388608;break;case ra.AfterViewInit:e=4194304;break;case ra.DoCheck:e=262144;break;case ra.OnChanges:e=524288;break;case ra.OnDestroy:e=131072;break;case ra.OnInit:e=65536}return e}function ce(t,e,n,r){var i=r.map(function(t){return e.importExpr(t.componentFactory)}),o=Rt(t,na.ComponentFactoryResolver),s={diDeps:[{isValue:!0,value:Kt(i)},{token:o,isSkipSelf:!0,isOptional:!0},{token:Rt(t,na.NgModuleRef)}],lifecycleHooks:[],reference:t.resolveExternalReference(na.CodegenComponentFactoryResolver)},a=ie(e,n,gr.PrivateService,{token:o,multi:!1,useClass:s});return{providerExpr:a.providerExpr,flags:a.flags,depsExpr:a.depsExpr,tokenExpr:oe(e,o)}}function ue(t){t=t<0?1+(-t<<1):t<<1;var e="";do{var n=31&t;(t>>=5)>0&&(n|=32),e+=le(n)}while(t>0);return e}function le(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return Cc[t]}function pe(t,e,n){if(void 0===n&&(n=!0),null==t)return null;var r=t.replace(Ec,function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]});return n||!Tc.test(r)?"'"+r+"'":r}function he(t){for(var e="",n=0;n<t;n++)e+=jc;return e}function de(t,e){for(var n=0,r=e;n<r.length;n++){var i=r[n];Nc[i.toLowerCase()]=t}}function fe(t,e){var n=function(t){for(var e=t.split(hu),n=[],r=[],i=0,o=[],s=0;s<e.length;s++){var a=e[s];a==fu&&i--,i>0?o.push(a):(o.length>0&&(r.push(o.join("")),n.push(yu),o=[]),n.push(a)),a==du&&i++}o.length>0&&(r.push(o.join("")),n.push(yu));return new vu(n.join(""),r)}(t),r=0;return n.escapedString.replace(pu,function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var o=t[2],s="",a=t[4],c="";a&&a.startsWith("{"+yu)&&(s=n.blocks[r++],a=a.substring(yu.length+1),c="{");var u=e(new gu(o,s));return""+t[1]+u.selector+t[3]+c+u.content+a})}function ye(t){var e="styles";return t&&(e+="_"+m(t.type)),e}function ge(t){return t.replace(new RegExp(Yr,"g")," ")}function ve(t){var e=new Au;return new ju(P(e,t),e.isExpanded,e.errors)}function me(t){return"@"==t[0]}function be(t,e,n,r){var i=[];return sa.parse(e).forEach(function(e){var o=e.element?[e.element]:t.allKnownElementNames(),s=new Set(e.notSelectors.filter(function(t){return t.isElementSelector()}).map(function(t){return t.element})),a=o.filter(function(t){return!s.has(t)});i.push.apply(i,a.map(function(e){return t.securityContext(e,n,r)}))}),0===i.length?[Kn.NONE]:Array.from(new Set(i)).sort()}function _e(t){return t.trim().split(/\s+/g)}function xe(t,e){var n=new sa,r=R(t)[1];n.setElement(r);for(var i=0;i<e.length;i++){var o=e[i][0],s=R(o)[1],a=e[i][1];if(n.addAttribute(s,a),o.toLowerCase()==Lu){_e(a).forEach(function(t){return n.addClassName(t)})}}return n}function we(t){return t instanceof kr&&0==t.value.trim().length}function Oe(t){var e=new Map;return t.forEach(function(t){e.get(t.type.reference)||e.set(t.type.reference,t)}),Array.from(e.values())}function Se(t){return t instanceof _o&&(t=t.ast),t instanceof Ji}function Ce(t,e,n){if(function(t){return"ng-template"===R(t)[1]}(t.name))return!0;var r=R(t.name)[1];return!(r.toLowerCase()!==Nu||!e||r.toLowerCase()!==Nu)&&(n(Vu,t.sourceSpan),!0)}function Ee(t,e,n,r){t||(t=new rl);var i=Te({createLiteralArrayConverter:function(t){return function(t){return Kt(t)}},createLiteralMapConverter:function(t){return function(e){return Xt(t.map(function(t,n){return{key:t.key,value:e[n],quoted:t.quoted}}))}},createPipeConverter:function(t){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: "+t)}},n),o=new nl(t,e,r),s=[];Re(i.visit(o,tl.Statement),s),function(t,e,n){for(var r=t-1;r>=0;r--)n.unshift(Ae(e,r))}(o.temporaryCount,r,s);var a=s.length-1,c=null;if(a>=0){var u=function(t){if(t instanceof nc)return t.expr;if(t instanceof rc)return t.value;return null}(s[a]);u&&(c=function(t){return Wt("pd_"+t)}(r),s[a]=c.set(u.cast(_a).notIdentical(Qt(!1))).toDeclStmt(null,[Za.Final]))}return new Zu(s,c)}function Te(t,e){return function(t,e){var n=new el(t);return e.visit(n)}(t,e)}function je(t,e,n,r){t||(t=new rl);var i=function(t){return Wt("currVal_"+t)}(r),o=[],s=new nl(t,e,r),a=n.visit(s,tl.Expression);if(s.temporaryCount)for(var c=0;c<s.temporaryCount;c++)o.push(Ae(r,c));return o.push(i.set(a).toDeclStmt(null,[Za.Final])),new Ju(o,i)}function Pe(t,e){return"tmp_"+t+"_"+e}function Ae(t,e){return new tc(Pe(t,e),$a)}function Ie(t,e){if(t!==tl.Expression)throw new Error("Expected an expression, but saw "+e)}function ke(t,e){return t===tl.Statement?e.toStmt():e}function Re(t,e){Array.isArray(t)?t.forEach(function(t){return Re(t,e)}):e.push(t)}function Me(t){var e=t[t.length-1];return e instanceof hr?e.hasViewContainer:e instanceof pr?M(e.name)&&e.children.length?Me(e.children):e.hasViewContainer:e instanceof vr}function De(t){var e=Object.create(null);return t.attrs.forEach(function(t){e[t.name]=t.value}),t.directives.forEach(function(t){Object.keys(t.directive.hostAttributes).forEach(function(n){var r=t.directive.hostAttributes[n],i=e[n];e[n]=null!=i?function(t,e,n){return t==al||t==cl?e+" "+n:n}(n,i,r):r})}),Kt(Object.keys(e).sort().map(function(t){return Kt([Qt(t),Qt(e[t])])}))}function Ne(t,e){return e.length>10?dl.callFn([hl,Qt(t),Qt(1),Kt(e)]):dl.callFn([hl,Qt(t),Qt(0)].concat(e))}function Le(t,e,n){return Gt(na.unwrapValue).callFn([hl,Qt(t),Qt(e),n])}function Fe(t,e){return void 0===e&&(e=new Map),t.forEach(function(t){var n=new Set,r=new Set,i=void 0;t instanceof pr?(Fe(t.children,e),t.children.forEach(function(t){var i=e.get(t);i.staticQueryIds.forEach(function(t){return n.add(t)}),i.dynamicQueryIds.forEach(function(t){return r.add(t)})}),i=t.queryMatches):t instanceof hr&&(Fe(t.children,e),t.children.forEach(function(t){var n=e.get(t);n.staticQueryIds.forEach(function(t){return r.add(t)}),n.dynamicQueryIds.forEach(function(t){return r.add(t)})}),i=t.queryMatches),i&&i.forEach(function(t){return n.add(t.queryId)}),r.forEach(function(t){return n.delete(t)}),e.set(t,{staticQueryIds:n,dynamicQueryIds:r})}),e}function Ve(t,e){return t.isAnimation?{name:"@"+t.name+"."+t.phase,target:e&&e.directive.isComponent?"component":null}:t}function Be(t,e,n){var r=0;return!n||!t.staticQueryIds.has(e)&&t.dynamicQueryIds.has(e)?r|=536870912:r|=268435456,r}function He(t,e){return t?t+":"+e:e}function ze(t,e){for(var n=[],r=0,i=t.transitiveModule.providers;r<i.length;r++){var o=i[r],s=o.provider,a=o.module;if(S(s.token)===e.ROUTES)for(var c=0,u=Ue(s.useValue);c<u.length;c++){var l=u[c];n.push(We(l,e,a.reference))}}return n}function Ue(t,e){if(void 0===e&&(e=[]),"string"==typeof t)e.push(t);else if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){Ue(r[n],e)}else t.loadChildren?Ue(t.loadChildren,e):t.children&&Ue(t.children,e);return e}function We(t,e,n){var r=t.split("#"),i=r[0],o=r[1],s=e.resolveExternalReference({moduleName:i,name:o},n?n.filePath:void 0);return{route:t,module:n||s,referencedModule:s}}function Ge(t){return t.startsWith("___")?t.substr(1):t}function qe(t){return t&&"resolved"===t.__symbolic?t.symbol:t}function Ye(t,e,n){var r=It(e.name);t.statements.push($t([],[new rc(n)],new ma(_a)).toDeclStmt(r,[Za.Final,Za.Exported]))}function Ke(t){return t&&"call"===t.__symbolic}function Xe(t){t.statements.push(Gt(na.ComponentFactory).toStmt())}function $e(t,e,n,r){e.dependencies.forEach(function(e){e.setValue(t.getStaticSymbol(Qe(e.moduleUrl,n,r),e.name))})}function Qe(t,e,n){return t+(e?".shim":"")+".ngstyle"+n}function Ze(t,e,n,r){return nn(function(t,e,n,r){var i=new Set,o=[],s=function(t){if(i.has(t)||!e.isSourceFile(t))return!1;i.add(t);var a=en(e,n,r,t);o.push(a),a.ngModules.forEach(function(t){t.transitiveModule.modules.forEach(function(t){return s(t.reference.filePath)})})};return t.forEach(function(t){return s(t)}),o}(t,e,n,r))}function Je(t,e,n,r){return tn(Ze(t,e,n,r))}function tn(t){if(t.symbolsMissingModule&&t.symbolsMissingModule.length){throw u(t.symbolsMissingModule.map(function(t){return"Cannot determine the module for class "+t.name+" in "+t.filePath+"! Add "+t.name+" to the NgModule to fix it."}).join("\n"))}return t}function en(t,e,n,r){var i=[],o=[],a=[],c=[],u=e.hasDecorators(r),l=!1;return r.endsWith(".d.ts")&&!u||e.getSymbolsOf(r).forEach(function(r){var u=e.resolveSymbol(r).metadata;if(u&&"error"!==u.__symbolic){var p=!1;if("class"===u.__symbolic)if(n.isDirective(r))p=!0,i.push(r);else if(n.isPipe(r))p=!0,o.push(r);else if(n.isNgModule(r)){var h=n.getNgModuleMetadata(r,!1);h&&(p=!0,c.push(h))}else n.isInjectable(r)&&(p=!0,a.push(r));p||(l=l||function(t,e){var n=!1,r=function(){function e(){}return e.prototype.visitArray=function(t,e){var n=this;t.forEach(function(t){return s(t,n,e)})},e.prototype.visitStringMap=function(t,e){var n=this;Object.keys(t).forEach(function(r){return s(t[r],n,e)})},e.prototype.visitPrimitive=function(t,e){},e.prototype.visitOther=function(e,r){e instanceof _r&&!t.isSourceFile(e.filePath)&&(n=!0)},e}();return s(e,new r,null),n}(t,u))}}),{fileName:r,directives:i,pipes:o,ngModules:c,injectables:a,exportsNonSourceFiles:l}}function nn(t){var e=[],n=new Map,r=new Set;t.forEach(function(t){t.ngModules.forEach(function(t){e.push(t),t.declaredDirectives.forEach(function(e){return n.set(e.reference,t)}),t.declaredPipes.forEach(function(e){return n.set(e.reference,t)})}),t.directives.forEach(function(t){return r.add(t)}),t.pipes.forEach(function(t){return r.add(t)})});var i=[];return r.forEach(function(t){n.has(t)||i.push(t)}),{ngModules:e,ngModuleByPipeOrDirective:n,symbolsMissingModule:i,files:t}}function rn(t){return tn(nn(t))}function on(t){if(t<=0)return"";if(t<6)return[""," "," "," "," "," "][t];var e=on(Math.floor(t/2));return e+e+(t%2==1?" ":"")}function sn(t,e){if(void 0===e&&(e=0),!t)return"";var n=t.position?t.position.fileName+"("+(t.position.line+1)+","+(t.position.column+1)+")":"",r=n&&0!==e?" at "+n:"",i=""+(n&&0===e?n+": ":"")+t.message+r;return""+on(e)+i+(t.next&&"\n"+sn(t.next,e+2)||"")}function an(t){return t&&"ignore"==t.__symbolic}function cn(t,e,n,r,i,o,s){var a=u(t);return a[Dl]=!0,n&&(a.advise=n),r&&(a.position=r),e&&(a.summary=e),o&&(a.context=o),s&&(a.chain=s),i&&(a.symbol=i),a}function un(t){return!!t[Dl]}function ln(t){return null===t||"function"!=typeof t&&"object"!=typeof t}function pn(t,e){return{message:""+function(t,e){switch(t){case Nl:if(e&&e.className)return"References to a non-exported class are not supported in decorators but "+e.className+" was referenced.";break;case Ll:return"Only initialized variables and constants can be referenced in decorators because the value of this variable is needed by the template compiler";case Fl:return"Referencing an exported destructured variable or constant is not supported in decorators and this value is needed by the template compiler";case Vl:if(e&&e.typeName)return"Could not resolve type "+e.typeName;break;case Bl:return e&&e.name?"Function calls are not supported in decorators but '"+e.name+"' was called":"Function calls are not supported in decorators";case Hl:if(e&&e.name)return"Reference to a local (non-exported) symbols are not supported in decorators but '"+e.name+"' was referenced";break;case zl:return"Function expressions are not supported in decorators"}return t}(t.message,t.context)+(t.symbol?" in '"+t.symbol.name+"'":""),position:t.position,next:t.next?pn(t.next,e):e?{message:e}:void 0}}function hn(t,e){if(un(t)){var n=t.position;return function(t){var e=u(sn(t)+".");return e[Tl]=!0,e.chain=t,e.position=t.position,e}(pn({message:"Error during template compile of '"+e.name+"'",position:n,next:{message:t.message,next:t.chain,context:t.context,symbol:t.symbol}},t.advise||function(t,e){switch(t){case Nl:if(e&&e.className)return"Consider exporting '"+e.className+"'";break;case Fl:return"Consider simplifying to avoid destructuring";case Hl:if(e&&e.name)return"Consider exporting '"+e.name+"'";break;case zl:return"Consider changing the function expression into an exported function"}}(t.message,t.context)))}return t}function dn(t){return{resolve:function(e,n){var r=t.resourceNameToFileName(n,e);if(!r)throw u("Couldn't resolve resource "+n+" from "+e);return r}}}function fn(t,e,n,r,i){for(var o=r.createChildWihtLocalVars(),s=0;s<t.length;s++)o.vars.set(t[s],e[s]);var a=i.visitAllStatements(n,o);return a?a.value:null}function yn(t,e,n,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return fn(t,i,e,n,r)}}function gn(t,e,n,r){var i=new Jl(n),o=kc.createRoot();return i.visitAllStatements(e,o),i.createReturnStmt(o),function(t,e,n,r){var i=e.toSource()+"\n//# sourceURL="+t,o=[],s=[];for(var a in n)o.push(a),s.push(n[a]);if(r){var c=(new(Function.bind.apply(Function,[void 0].concat(o.concat("return null;"))))).toString(),u=c.slice(0,c.indexOf("return null;")).split("\n").length-1;i+="\n"+e.toSourceMapGenerator(t,u).toJsComment()}return(new(Function.bind.apply(Function,[void 0].concat(o.concat(i))))).apply(void 0,s)}(t,o,i.getArgs(),r)}function vn(t){if(!t.isComponent)throw new Error("Could not compile '"+m(t.type)+"' because it is not a component.")}function mn(){return{statements:[],genFilePath:"",importExpr:function(t){return Gt({name:m(t),moduleName:null,runtime:t})}}}function bn(t){return t.match(ip)}function _n(t){var e=t[op.Path];return e=null==e?"":function(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",n="/"===t[t.length-1]?"/":"",r=t.split("/"),i=[],o=0,s=0;s<r.length;s++){var a=r[s];switch(a){case"":case".":break;case"..":i.length>0?i.pop():o++;break;default:i.push(a)}}if(""==e){for(;o-- >0;)i.unshift("..");0===i.length&&i.push(".")}return e+i.join("/")+n}(e),t[op.Path]=e,function(t,e,n,r,i,o,s){var a=[];return null!=t&&a.push(t+":"),null!=n&&(a.push("//"),null!=e&&a.push(e+"@"),a.push(n),null!=r&&a.push(":"+r)),null!=i&&a.push(i),null!=o&&a.push("?"+o),null!=s&&a.push("#"+s),a.join("")}(t[op.Scheme],t[op.UserInfo],t[op.Domain],t[op.Port],e,t[op.QueryData],t[op.Fragment])}function xn(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e]}var wn=n("6Xbx"),On=r("Inject",function(t){return{token:t}}),Sn=r("InjectionToken",function(t){return{_desc:t}}),Cn=r("Attribute",function(t){return{attributeName:t}}),En=r("ContentChildren",function(t,e){return void 0===e&&(e={}),Object(wn.a)({selector:t,first:!1,isViewQuery:!1,descendants:!1},e)}),Tn=r("ContentChild",function(t,e){return void 0===e&&(e={}),Object(wn.a)({selector:t,first:!0,isViewQuery:!1,descendants:!0},e)}),jn=r("ViewChildren",function(t,e){return void 0===e&&(e={}),Object(wn.a)({selector:t,first:!1,isViewQuery:!0,descendants:!0},e)}),Pn=r("ViewChild",function(t,e){return Object(wn.a)({selector:t,first:!0,isViewQuery:!0,descendants:!0},e)}),An=r("Directive",function(t){return void 0===t&&(t={}),t}),In={Emulated:0,Native:1,None:2};In[In.Emulated]="Emulated",In[In.Native]="Native",In[In.None]="None";var kn={OnPush:0,Default:1};kn[kn.OnPush]="OnPush",kn[kn.Default]="Default";var Rn=r("Component",function(t){return void 0===t&&(t={}),Object(wn.a)({changeDetection:kn.Default},t)}),Mn=r("Pipe",function(t){return Object(wn.a)({pure:!0},t)}),Dn=r("Input",function(t){return{bindingPropertyName:t}}),Nn=r("Output",function(t){return{bindingPropertyName:t}}),Ln=r("HostBinding",function(t){return{hostPropertyName:t}}),Fn=r("HostListener",function(t,e){return{eventName:t,args:e}}),Vn=r("NgModule",function(t){return t}),Bn={name:"custom-elements"},Hn={name:"no-errors-schema"},zn=r("Optional"),Un=r("Injectable"),Wn=r("Self"),Gn=r("SkipSelf"),qn=r("Host"),Yn=Function,Kn={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};Kn[Kn.NONE]="NONE",Kn[Kn.HTML]="HTML",Kn[Kn.STYLE]="STYLE",Kn[Kn.SCRIPT]="SCRIPT",Kn[Kn.URL]="URL",Kn[Kn.RESOURCE_URL]="RESOURCE_URL";var Xn={Error:0,Warning:1,Ignore:2};Xn[Xn.Error]="Error",Xn[Xn.Warning]="Warning",Xn[Xn.Ignore]="Ignore";Object.freeze({Inject:function(){},createInject:On,createInjectionToken:Sn,Attribute:function(){},createAttribute:Cn,Query:function(){},createContentChildren:En,createContentChild:Tn,createViewChildren:jn,createViewChild:Pn,Directive:function(){},createDirective:An,Component:function(){},ViewEncapsulation:In,ChangeDetectionStrategy:kn,createComponent:Rn,Pipe:function(){},createPipe:Mn,Input:function(){},createInput:Dn,Output:function(){},createOutput:Nn,HostBinding:function(){},createHostBinding:Ln,HostListener:function(){},createHostListener:Fn,NgModule:function(){},createNgModule:Vn,ModuleWithProviders:function(){},SchemaMetadata:function(){},CUSTOM_ELEMENTS_SCHEMA:Bn,NO_ERRORS_SCHEMA:Hn,createOptional:zn,createInjectable:Un,createSelf:Wn,createSkipSelf:Gn,createHost:qn,Type:Yn,SecurityContext:Kn,NodeFlags:{None:0,TypeElement:1,TypeText:2,ProjectedTemplate:4,CatRenderNode:3,TypeNgContent:8,TypePipe:16,TypePureArray:32,TypePureObject:64,TypePurePipe:128,CatPureExpression:224,TypeValueProvider:256,TypeClassProvider:512,TypeFactoryProvider:1024,TypeUseExistingProvider:2048,LazyProvider:4096,PrivateProvider:8192,TypeDirective:16384,Component:32768,CatProviderNoDirective:3840,CatProvider:20224,OnInit:65536,OnDestroy:131072,DoCheck:262144,OnChanges:524288,AfterContentInit:1048576,AfterContentChecked:2097152,AfterViewInit:4194304,AfterViewChecked:8388608,EmbeddedViews:16777216,ComponentView:33554432,TypeContentQuery:67108864,TypeViewQuery:134217728,StaticQuery:268435456,DynamicQuery:536870912,CatQuery:201326592,Types:201347067},DepFlags:{None:0,SkipSelf:1,Optional:2,Value:8},ArgumentType:{Inline:0,Dynamic:1},BindingFlags:{TypeElementAttribute:1,TypeElementClass:2,TypeElementStyle:4,TypeProperty:8,SyntheticProperty:16,SyntheticHostProperty:32,CatSyntheticProperty:48,Types:15},QueryBindingType:{First:0,All:1},QueryValueType:{ElementRef:0,RenderElement:1,TemplateRef:2,ViewContainerRef:3,Provider:4},ViewFlags:{None:0,OnPush:2},MissingTranslationStrategy:Xn,MetadataFactory:function(){},Route:function(){}});var $n=/-+([a-z0-9])/g,Qn=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return t.map(function(t){return s(t,n,e)})},t.prototype.visitStringMap=function(t,e){var n=this,r={};return Object.keys(t).forEach(function(i){r[i]=s(t[i],n,e)}),r},t.prototype.visitPrimitive=function(t,e){return t},t.prototype.visitOther=function(t,e){return t},t}(),Zn=function(t){if(f(t))throw new Error("Illegal state: value cannot be a promise");return t},Jn=function(t,e){return f(t)?t.then(e):e(t)},tr=function(t){return t.some(f)?Promise.all(t):t},er="ngSyntaxError",nr="ngParseErrors",rr=Object.getPrototypeOf({}),ir=(new(function(){return function(t){this.full=t;var e=t.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}}())("5.1.0"),function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}()),or=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitBoundText(this,e)},t}(),sr=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}(),ar=function(){function t(t,e,n,r,i,o){this.name=t,this.type=e,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o,this.isAnimation=this.type===mr.Animation}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},t}(),cr=function(){function t(e,n,r,i,o){this.name=e,this.target=n,this.phase=r,this.handler=i,this.sourceSpan=o,this.fullName=t.calcFullName(this.name,this.target,this.phase),this.isAnimation=!!this.phase}return t.calcFullName=function(t,e,n){return e?e+":"+t:n?"@"+t+"."+n:t},t.prototype.visit=function(t,e){return t.visitEvent(this,e)},t}(),ur=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitReference(this,e)},t}(),lr=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}(),pr=function(){function t(t,e,n,r,i,o,s,a,c,u,l,p,h){this.name=t,this.attrs=e,this.inputs=n,this.outputs=r,this.references=i,this.directives=o,this.providers=s,this.hasViewContainer=a,this.queryMatches=c,this.children=u,this.ngContentIndex=l,this.sourceSpan=p,this.endSourceSpan=h}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),hr=function(){function t(t,e,n,r,i,o,s,a,c,u,l){this.attrs=t,this.outputs=e,this.references=n,this.variables=r,this.directives=i,this.providers=o,this.hasViewContainer=s,this.queryMatches=a,this.children=c,this.ngContentIndex=u,this.sourceSpan=l}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),dr=function(){function t(t,e,n,r){this.directiveName=t,this.templateName=e,this.value=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitDirectiveProperty(this,e)},t}(),fr=function(){function t(t,e,n,r,i,o){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=i,this.sourceSpan=o}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),yr=function(){function t(t,e,n,r,i,o,s){this.token=t,this.multiProvider=e,this.eager=n,this.providers=r,this.providerType=i,this.lifecycleHooks=o,this.sourceSpan=s}return t.prototype.visit=function(t,e){return null},t}(),gr={PublicService:0,PrivateService:1,Component:2,Directive:3,Builtin:4};gr[gr.PublicService]="PublicService",gr[gr.PrivateService]="PrivateService",gr[gr.Component]="Component",gr[gr.Directive]="Directive",gr[gr.Builtin]="Builtin";var vr=function(){function t(t,e,n){this.index=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}(),mr={Property:0,Attribute:1,Class:2,Style:3,Animation:4};mr[mr.Property]="Property",mr[mr.Attribute]="Attribute",mr[mr.Class]="Class",mr[mr.Style]="Style",mr[mr.Animation]="Animation";!function(t){function e(){return t.call(this)||this}Object(wn.b)(e,t),e.prototype.visitEmbeddedTemplate=function(t,e){return this.visitChildren(e,function(e){e(t.attrs),e(t.references),e(t.variables),e(t.directives),e(t.providers),e(t.children)})},e.prototype.visitElement=function(t,e){return this.visitChildren(e,function(e){e(t.attrs),e(t.inputs),e(t.outputs),e(t.references),e(t.directives),e(t.providers),e(t.children)})},e.prototype.visitDirective=function(t,e){return this.visitChildren(e,function(e){e(t.inputs),e(t.hostProperties),e(t.hostEvents)})},e.prototype.visitChildren=function(t,e){var n=[],r=this;return e(function(e){e&&e.length&&n.push(y(r,e,t))}),[].concat.apply([],n)}}(function(){function t(){}return t.prototype.visitNgContent=function(t,e){},t.prototype.visitEmbeddedTemplate=function(t,e){},t.prototype.visitElement=function(t,e){},t.prototype.visitReference=function(t,e){},t.prototype.visitVariable=function(t,e){},t.prototype.visitEvent=function(t,e){},t.prototype.visitElementProperty=function(t,e){},t.prototype.visitAttr=function(t,e){},t.prototype.visitBoundText=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitDirective=function(t,e){},t.prototype.visitDirectiveProperty=function(t,e){},t}());var br=function(){return function(t){var e=void 0===t?{}:t,n=e.defaultEncapsulation,r=void 0===n?In.Emulated:n,i=e.useJit,o=void 0===i||i,s=e.jitDevMode,a=void 0!==s&&s,u=e.missingTranslation,l=void 0===u?null:u,p=e.enableLegacyTemplate,h=e.preserveWhitespaces,d=e.strictInjectionParameters;this.defaultEncapsulation=r,this.useJit=!!o,this.jitDevMode=!!a,this.missingTranslation=l,this.enableLegacyTemplate=!0===p,this.preserveWhitespaces=g(c(h)),this.strictInjectionParameters=!0===d}}(),_r=function(){function t(t,e,n){this.filePath=t,this.name=e,this.members=n}return t.prototype.assertNoMembers=function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got "+JSON.stringify(this)+".")},t}(),xr=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,n){var r='"'+t+'".'+e+((n=n||[]).length?"."+n.join("."):""),i=this.cache.get(r);return i||(i=new _r(t,e,n),this.cache.set(r,i)),i},t}(),wr=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,Or=0,Sr={Pipe:0,Directive:1,NgModule:2,Injectable:3};Sr[Sr.Pipe]="Pipe",Sr[Sr.Directive]="Directive",Sr[Sr.NgModule]="NgModule",Sr[Sr.Injectable]="Injectable";var Cr=function(){return function(t){var e=void 0===t?{}:t,n=e.moduleUrl,r=e.styles,i=e.styleUrls;this.moduleUrl=n||null,this.styles=C(r),this.styleUrls=C(i)}}(),Er=function(){function t(t){var e=t.encapsulation,n=t.template,r=t.templateUrl,i=t.htmlAst,o=t.styles,s=t.styleUrls,a=t.externalStylesheets,c=t.animations,u=t.ngContentSelectors,l=t.interpolation,p=t.isInline,h=t.preserveWhitespaces;if(this.encapsulation=e,this.template=n,this.templateUrl=r,this.htmlAst=i,this.styles=C(o),this.styleUrls=C(s),this.externalStylesheets=C(a),this.animations=c?E(c):[],this.ngContentSelectors=u||[],l&&2!=l.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=l,this.isInline=p,this.preserveWhitespaces=h}return t.prototype.toSummary=function(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Tr=function(){function t(t){var e=t.isHost,n=t.type,r=t.isComponent,i=t.selector,o=t.exportAs,s=t.changeDetection,a=t.inputs,c=t.outputs,u=t.hostListeners,l=t.hostProperties,p=t.hostAttributes,h=t.providers,d=t.viewProviders,f=t.queries,y=t.viewQueries,g=t.entryComponents,v=t.template,m=t.componentViewType,b=t.rendererType,_=t.componentFactory;this.isHost=!!e,this.type=n,this.isComponent=r,this.selector=i,this.exportAs=o,this.changeDetection=s,this.inputs=a,this.outputs=c,this.hostListeners=u,this.hostProperties=l,this.hostAttributes=p,this.providers=C(h),this.viewProviders=C(d),this.queries=C(f),this.viewQueries=C(y),this.entryComponents=C(g),this.template=v,this.componentViewType=m,this.rendererType=b,this.componentFactory=_}return t.create=function(e){var n=e.isHost,r=e.type,o=e.isComponent,s=e.selector,a=e.exportAs,c=e.changeDetection,u=e.inputs,l=e.outputs,p=e.host,h=e.providers,d=e.viewProviders,f=e.queries,y=e.viewQueries,g=e.entryComponents,v=e.template,m=e.componentViewType,b=e.rendererType,_=e.componentFactory,x={},w={},O={};null!=p&&Object.keys(p).forEach(function(t){var e=p[t],n=t.match(wr);null===n?O[t]=e:null!=n[1]?w[n[1]]=e:null!=n[2]&&(x[n[2]]=e)});var S={};null!=u&&u.forEach(function(t){var e=i(t,[t,t]);S[e[0]]=e[1]});var C={};return null!=l&&l.forEach(function(t){var e=i(t,[t,t]);C[e[0]]=e[1]}),new t({isHost:n,type:r,isComponent:!!o,selector:s,exportAs:a,changeDetection:c,inputs:S,outputs:C,hostListeners:x,hostProperties:w,hostAttributes:O,providers:h,viewProviders:d,queries:f,viewQueries:y,entryComponents:g,template:v,componentViewType:m,rendererType:b,componentFactory:_})},t.prototype.toSummary=function(){return{summaryKind:Sr.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}},t}(),jr=function(){function t(t){var e=t.type,n=t.name,r=t.pure;this.type=e,this.name=n,this.pure=!!r}return t.prototype.toSummary=function(){return{summaryKind:Sr.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),Pr=function(){function t(t){var e=t.type,n=t.providers,r=t.declaredDirectives,i=t.exportedDirectives,o=t.declaredPipes,s=t.exportedPipes,a=t.entryComponents,c=t.bootstrapComponents,u=t.importedModules,l=t.exportedModules,p=t.schemas,h=t.transitiveModule,d=t.id;this.type=e||null,this.declaredDirectives=C(r),this.exportedDirectives=C(i),this.declaredPipes=C(o),this.exportedPipes=C(s),this.providers=C(n),this.entryComponents=C(a),this.bootstrapComponents=C(c),this.importedModules=C(u),this.exportedModules=C(l),this.schemas=C(p),this.id=d||null,this.transitiveModule=h||null}return t.prototype.toSummary=function(){var t=this.transitiveModule;return{summaryKind:Sr.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}},t}(),Ar=function(){function t(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return t.prototype.addProvider=function(t,e){this.providers.push({provider:t,module:e})},t.prototype.addDirective=function(t){this.directivesSet.has(t.reference)||(this.directivesSet.add(t.reference),this.directives.push(t))},t.prototype.addExportedDirective=function(t){this.exportedDirectivesSet.has(t.reference)||(this.exportedDirectivesSet.add(t.reference),this.exportedDirectives.push(t))},t.prototype.addPipe=function(t){this.pipesSet.has(t.reference)||(this.pipesSet.add(t.reference),this.pipes.push(t))},t.prototype.addExportedPipe=function(t){this.exportedPipesSet.has(t.reference)||(this.exportedPipesSet.add(t.reference),this.exportedPipes.push(t))},t.prototype.addModule=function(t){this.modulesSet.has(t.reference)||(this.modulesSet.add(t.reference),this.modules.push(t))},t.prototype.addEntryComponent=function(t){this.entryComponentsSet.has(t.componentType)||(this.entryComponentsSet.add(t.componentType),this.entryComponents.push(t))},t}(),Ir=function(){return function(t,e){var n=e.useClass,r=e.useValue,i=e.useExisting,o=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=n||null,this.useValue=r,this.useExisting=i,this.useFactory=o||null,this.dependencies=s||null,this.multi=!!a}}(),kr=(function(){function t(t,e){void 0===e&&(e=-1),this.path=t,this.position=e}Object.defineProperty(t.prototype,"empty",{get:function(){return!this.path||!this.path.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"head",{get:function(){return this.path[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tail",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t.prototype.parentOf=function(t){return t&&this.path[this.path.indexOf(t)-1]},t.prototype.childOf=function(t){return this.path[this.path.indexOf(t)+1]},t.prototype.first=function(t){for(var e=this.path.length-1;e>=0;e--){var n=this.path[e];if(n instanceof t)return n}},t.prototype.push=function(t){this.path.push(t)},t.prototype.pop=function(){return this.path.pop()}}(),function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}()),Rr=function(){function t(t,e,n,r,i){this.switchValue=t,this.type=e,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),Mr=function(){function t(t,e,n,r,i){this.value=t,this.expression=e,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),Dr=function(){function t(t,e,n,r){this.name=t,this.value=e,this.sourceSpan=n,this.valueSpan=r}return t.prototype.visit=function(t,e){return t.visitAttribute(this,e)},t}(),Nr=function(){function t(t,e,n,r,i,o){void 0===i&&(i=null),void 0===o&&(o=null),this.name=t,this.attrs=e,this.children=n,this.sourceSpan=r,this.startSourceSpan=i,this.endSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Lr=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}(),Fr=(function(){function t(){}t.prototype.visitElement=function(t,e){this.visitChildren(e,function(e){e(t.attrs),e(t.children)})},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){return this.visitChildren(e,function(e){e(t.cases)})},t.prototype.visitExpansionCase=function(t,e){},t.prototype.visitChildren=function(t,e){var n=[],r=this;return e(function(e){e&&n.push(P(r,e,t))}),[].concat.apply([],n)}}(),[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//]),Vr=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(I("interpolation",e),new t(e[0],e[1])):Br},t}(),Br=new Vr("{{","}}"),Hr=function(){return function(t,e){this.style=t,this.styleUrls=e}}(),zr=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,Ur=/\/\*(?!#\s*(?:sourceURL|sourceMappingURL)=)[\s\S]+?\*\//g,Wr=/^([^:/?#]+):/,Gr={RAW_TEXT:0,ESCAPABLE_RAW_TEXT:1,PARSABLE_DATA:2};Gr[Gr.RAW_TEXT]="RAW_TEXT",Gr[Gr.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",Gr[Gr.PARSABLE_DATA]="PARSABLE_DATA";var qr={Aacute:"\xc1",aacute:"\xe1",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",AElig:"\xc6",aelig:"\xe6",Agrave:"\xc0",agrave:"\xe0",alefsym:"\u2135",Alpha:"\u0391",alpha:"\u03b1",amp:"&",and:"\u2227",ang:"\u2220",apos:"'",Aring:"\xc5",aring:"\xe5",asymp:"\u2248",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",bdquo:"\u201e",Beta:"\u0392",beta:"\u03b2",brvbar:"\xa6",bull:"\u2022",cap:"\u2229",Ccedil:"\xc7",ccedil:"\xe7",cedil:"\xb8",cent:"\xa2",Chi:"\u03a7",chi:"\u03c7",circ:"\u02c6",clubs:"\u2663",cong:"\u2245",copy:"\xa9",crarr:"\u21b5",cup:"\u222a",curren:"\xa4",dagger:"\u2020",Dagger:"\u2021",darr:"\u2193",dArr:"\u21d3",deg:"\xb0",Delta:"\u0394",delta:"\u03b4",diams:"\u2666",divide:"\xf7",Eacute:"\xc9",eacute:"\xe9",Ecirc:"\xca",ecirc:"\xea",Egrave:"\xc8",egrave:"\xe8",empty:"\u2205",emsp:"\u2003",ensp:"\u2002",Epsilon:"\u0395",epsilon:"\u03b5",equiv:"\u2261",Eta:"\u0397",eta:"\u03b7",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"\u20ac",exist:"\u2203",fnof:"\u0192",forall:"\u2200",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe",frasl:"\u2044",Gamma:"\u0393",gamma:"\u03b3",ge:"\u2265",gt:">",harr:"\u2194",hArr:"\u21d4",hearts:"\u2665",hellip:"\u2026",Iacute:"\xcd",iacute:"\xed",Icirc:"\xce",icirc:"\xee",iexcl:"\xa1",Igrave:"\xcc",igrave:"\xec",image:"\u2111",infin:"\u221e",int:"\u222b",Iota:"\u0399",iota:"\u03b9",iquest:"\xbf",isin:"\u2208",Iuml:"\xcf",iuml:"\xef",Kappa:"\u039a",kappa:"\u03ba",Lambda:"\u039b",lambda:"\u03bb",lang:"\u27e8",laquo:"\xab",larr:"\u2190",lArr:"\u21d0",lceil:"\u2308",ldquo:"\u201c",le:"\u2264",lfloor:"\u230a",lowast:"\u2217",loz:"\u25ca",lrm:"\u200e",lsaquo:"\u2039",lsquo:"\u2018",lt:"<",macr:"\xaf",mdash:"\u2014",micro:"\xb5",middot:"\xb7",minus:"\u2212",Mu:"\u039c",mu:"\u03bc",nabla:"\u2207",nbsp:"\xa0",ndash:"\u2013",ne:"\u2260",ni:"\u220b",not:"\xac",notin:"\u2209",nsub:"\u2284",Ntilde:"\xd1",ntilde:"\xf1",Nu:"\u039d",nu:"\u03bd",Oacute:"\xd3",oacute:"\xf3",Ocirc:"\xd4",ocirc:"\xf4",OElig:"\u0152",oelig:"\u0153",Ograve:"\xd2",ograve:"\xf2",oline:"\u203e",Omega:"\u03a9",omega:"\u03c9",Omicron:"\u039f",omicron:"\u03bf",oplus:"\u2295",or:"\u2228",ordf:"\xaa",ordm:"\xba",Oslash:"\xd8",oslash:"\xf8",Otilde:"\xd5",otilde:"\xf5",otimes:"\u2297",Ouml:"\xd6",ouml:"\xf6",para:"\xb6",permil:"\u2030",perp:"\u22a5",Phi:"\u03a6",phi:"\u03c6",Pi:"\u03a0",pi:"\u03c0",piv:"\u03d6",plusmn:"\xb1",pound:"\xa3",prime:"\u2032",Prime:"\u2033",prod:"\u220f",prop:"\u221d",Psi:"\u03a8",psi:"\u03c8",quot:'"',radic:"\u221a",rang:"\u27e9",raquo:"\xbb",rarr:"\u2192",rArr:"\u21d2",rceil:"\u2309",rdquo:"\u201d",real:"\u211c",reg:"\xae",rfloor:"\u230b",Rho:"\u03a1",rho:"\u03c1",rlm:"\u200f",rsaquo:"\u203a",rsquo:"\u2019",sbquo:"\u201a",Scaron:"\u0160",scaron:"\u0161",sdot:"\u22c5",sect:"\xa7",shy:"\xad",Sigma:"\u03a3",sigma:"\u03c3",sigmaf:"\u03c2",sim:"\u223c",spades:"\u2660",sub:"\u2282",sube:"\u2286",sum:"\u2211",sup:"\u2283",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supe:"\u2287",szlig:"\xdf",Tau:"\u03a4",tau:"\u03c4",there4:"\u2234",Theta:"\u0398",theta:"\u03b8",thetasym:"\u03d1",thinsp:"\u2009",THORN:"\xde",thorn:"\xfe",tilde:"\u02dc",times:"\xd7",trade:"\u2122",Uacute:"\xda",uacute:"\xfa",uarr:"\u2191",uArr:"\u21d1",Ucirc:"\xdb",ucirc:"\xfb",Ugrave:"\xd9",ugrave:"\xf9",uml:"\xa8",upsih:"\u03d2",Upsilon:"\u03a5",upsilon:"\u03c5",Uuml:"\xdc",uuml:"\xfc",weierp:"\u2118",Xi:"\u039e",xi:"\u03be",Yacute:"\xdd",yacute:"\xfd",yen:"\xa5",yuml:"\xff",Yuml:"\u0178",Zeta:"\u0396",zeta:"\u03b6",zwj:"\u200d",zwnj:"\u200c"},Yr="\ue500";qr.ngsp=Yr;var Kr="select",Xr="link",$r="rel",Qr="href",Zr="stylesheet",Jr="style",ti="script",ei="ngNonBindable",ni="ngProjectAs",ri={NG_CONTENT:0,STYLE:1,STYLESHEET:2,SCRIPT:3,OTHER:4};ri[ri.NG_CONTENT]="NG_CONTENT",ri[ri.STYLE]="STYLE",ri[ri.STYLESHEET]="STYLESHEET",ri[ri.SCRIPT]="SCRIPT",ri[ri.OTHER]="OTHER";var ii=function(){return function(t,e,n,r,i){this.type=t,this.selectAttr=e,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i}}(),oi=function(){function t(t,e,n,r){this._resourceLoader=t,this._urlResolver=e,this._htmlParser=n,this._config=r,this._resourceLoaderCache=new Map}return t.prototype.clearCache=function(){this._resourceLoaderCache.clear()},t.prototype.clearCacheFor=function(t){var e=this;if(t.isComponent){var n=t.template;this._resourceLoaderCache.delete(n.templateUrl),n.externalStylesheets.forEach(function(t){e._resourceLoaderCache.delete(t.moduleUrl)})}},t.prototype._fetch=function(t){var e=this._resourceLoaderCache.get(t);return e||(e=this._resourceLoader.get(t),this._resourceLoaderCache.set(t,e)),e},t.prototype.normalizeTemplate=function(t){var e=this;if(a(t.template)){if(a(t.templateUrl))throw u("'"+h(t.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof t.template)throw u("The template specified for component "+h(t.componentType)+" is not a string")}else{if(!a(t.templateUrl))throw u("No template specified for component "+h(t.componentType));if("string"!=typeof t.templateUrl)throw u("The templateUrl specified for component "+h(t.componentType)+" is not a string")}if(a(t.preserveWhitespaces)&&"boolean"!=typeof t.preserveWhitespaces)throw u("The preserveWhitespaces option for component "+h(t.componentType)+" must be a boolean");return Jn(this._preParseTemplate(t),function(n){return e._normalizeTemplateMetadata(t,n)})},t.prototype._preParseTemplate=function(t){var e,n,r=this;return null!=t.template?(e=t.template,n=t.moduleUrl):(n=this._urlResolver.resolve(t.moduleUrl,t.templateUrl),e=this._fetch(n)),Jn(e,function(e){return r._preparseLoadedTemplate(t,e,n)})},t.prototype._preparseLoadedTemplate=function(t,e,n){var r=!!t.template,i=Vr.fromArray(t.interpolation),o=this._htmlParser.parse(e,j({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:r,templateUrl:n}),!0,i);if(o.errors.length>0){throw u("Template parse errors:\n"+o.errors.join("\n"))}var s=this._normalizeStylesheet(new Cr({styles:t.styles,moduleUrl:t.moduleUrl})),a=new si;P(a,o.rootNodes);var c=this._normalizeStylesheet(new Cr({styles:a.styles,styleUrls:a.styleUrls,moduleUrl:n}));return{template:e,templateUrl:n,isInline:r,htmlAst:o,styles:s.styles.concat(c.styles),inlineStyleUrls:s.styleUrls.concat(c.styleUrls),styleUrls:this._normalizeStylesheet(new Cr({styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})).styleUrls,ngContentSelectors:a.ngContentSelectors}},t.prototype._normalizeTemplateMetadata=function(t,e){var n=this;return Jn(this._loadMissingExternalStylesheets(e.styleUrls.concat(e.inlineStyleUrls)),function(r){return n._normalizeLoadedTemplateMetadata(t,e,r)})},t.prototype._normalizeLoadedTemplateMetadata=function(t,e,n){var r=this,i=e.styles.slice();this._inlineStyles(e.inlineStyleUrls,n,i);var o=e.styleUrls,s=o.map(function(t){var e=n.get(t),i=e.styles.slice();return r._inlineStyles(e.styleUrls,n,i),new Cr({moduleUrl:t,styles:i})}),a=t.encapsulation;return null==a&&(a=this._config.defaultEncapsulation),a===In.Emulated&&0===i.length&&0===o.length&&(a=In.None),new Er({encapsulation:a,template:e.template,templateUrl:e.templateUrl,htmlAst:e.htmlAst,styles:i,styleUrls:o,ngContentSelectors:e.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:e.isInline,externalStylesheets:s,preserveWhitespaces:g(t.preserveWhitespaces,this._config.preserveWhitespaces)})},t.prototype._inlineStyles=function(t,e,n){var r=this;t.forEach(function(t){var i=e.get(t);i.styles.forEach(function(t){return n.push(t)}),r._inlineStyles(i.styleUrls,e,n)})},t.prototype._loadMissingExternalStylesheets=function(t,e){var n=this;return void 0===e&&(e=new Map),Jn(tr(t.filter(function(t){return!e.has(t)}).map(function(t){return Jn(n._fetch(t),function(r){var i=n._normalizeStylesheet(new Cr({styles:[r],moduleUrl:t}));return e.set(t,i),n._loadMissingExternalStylesheets(i.styleUrls,e)})})),function(t){return e})},t.prototype._normalizeStylesheet=function(t){var e=this,n=t.moduleUrl,r=t.styleUrls.filter(k).map(function(t){return e._urlResolver.resolve(n,t)}),i=t.styles.map(function(t){var i=function(t,e,n){var r=[],i=n.replace(Ur,"").replace(zr,function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=n[1]||n[2];return k(o)?(r.push(t.resolve(e,o)),""):n[0]});return new Hr(i,r)}(e._urlResolver,n,t);return r.push.apply(r,i.styleUrls),i.style});return new Cr({styles:i,styleUrls:r,moduleUrl:n})},t}(),si=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t,e){var n=F(t);switch(n.type){case ri.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case ri.STYLE:var r="";t.children.forEach(function(t){t instanceof kr&&(r+=t.value)}),this.styles.push(r);break;case ri.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,P(this,t.children),n.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t,e){P(this,t.cases)},t.prototype.visitExpansionCase=function(t,e){P(this,t.expression)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return null},t.prototype.visitText=function(t,e){return null},t}(),ai=[Pn,jn,Tn,En],ci=function(){function t(t){this._reflector=t}return t.prototype.isDirective=function(t){var e=this._reflector.annotations(d(t));return e&&e.some(V)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=this._reflector.annotations(d(t));if(n){var r=B(n,V);if(r){var i=this._reflector.propMetadata(t);return this._mergeWithPropertyMetadata(r,i,t)}}if(e)throw new Error("No Directive annotation found on "+h(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,e,n){var r=[],i=[],o={},s={};return Object.keys(e).forEach(function(t){var n=B(e[t],function(t){return Dn.isTypeOf(t)});n&&(n.bindingPropertyName?r.push(t+": "+n.bindingPropertyName):r.push(t));var a=B(e[t],function(t){return Nn.isTypeOf(t)});a&&(a.bindingPropertyName?i.push(t+": "+a.bindingPropertyName):i.push(t));e[t].filter(function(t){return Ln.isTypeOf(t)}).forEach(function(e){if(e.hostPropertyName){var n=e.hostPropertyName[0];if("("===n)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===n)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");o["["+e.hostPropertyName+"]"]=t}else o["["+t+"]"]=t});e[t].filter(function(t){return Fn.isTypeOf(t)}).forEach(function(e){var n=e.args||[];o["("+e.eventName+")"]=t+"("+n.join(",")+")"});var c=B(e[t],function(t){return ai.some(function(e){return e.isTypeOf(t)})});c&&(s[t]=c)}),this._merge(t,r,i,o,s,n)},t.prototype._extractPublicName=function(t){return i(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,n=[],r=t.length-1;r>=0;r--){var i=t[r],o=this._extractPublicName(i);e.has(o)||(e.add(o),n.push(i))}return n.reverse()},t.prototype._merge=function(t,e,n,r,i,o){var s=this._dedupeBindings(t.inputs?t.inputs.concat(e):e),a=this._dedupeBindings(t.outputs?t.outputs.concat(n):n),c=t.host?Object(wn.a)({},t.host,r):r,u=t.queries?Object(wn.a)({},t.queries,i):i;if(Rn.isTypeOf(t)){var l=t;return Rn({selector:l.selector,inputs:s,outputs:a,host:c,exportAs:l.exportAs,moduleId:l.moduleId,queries:u,changeDetection:l.changeDetection,providers:l.providers,viewProviders:l.viewProviders,entryComponents:l.entryComponents,template:l.template,templateUrl:l.templateUrl,styles:l.styles,styleUrls:l.styleUrls,encapsulation:l.encapsulation,animations:l.animations,interpolation:l.interpolation,preserveWhitespaces:t.preserveWhitespaces})}return An({selector:t.selector,inputs:s,outputs:a,host:c,exportAs:t.exportAs,queries:u,providers:t.providers})},t}(),ui=0,li=9,pi=10,hi=11,di=12,fi=13,yi=32,gi=34,vi=36,mi=39,bi=43,_i=45,xi=47,wi=59,Oi=61,Si=62,Ci=48,Ei=57,Ti=65,ji=69,Pi=70,Ai=90,Ii=95,ki=97,Ri=101,Mi=102,Di=110,Ni=114,Li=116,Fi=118,Vi=122,Bi=123,Hi=160,zi=96,Ui={Character:0,Identifier:1,Keyword:2,String:3,Operator:4,Number:5,Error:6};Ui[Ui.Character]="Character",Ui[Ui.Identifier]="Identifier",Ui[Ui.Keyword]="Keyword",Ui[Ui.String]="String",Ui[Ui.Operator]="Operator",Ui[Ui.Number]="Number",Ui[Ui.Error]="Error";var Wi=["var","let","as","null","undefined","true","false","if","else","this"],Gi=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new Ki(t),n=[],r=e.scanToken();null!=r;)n.push(r),r=e.scanToken();return n},t}(),qi=function(){function t(t,e,n,r){this.index=t,this.type=e,this.numValue=n,this.strValue=r}return t.prototype.isCharacter=function(t){return this.type==Ui.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==Ui.Number},t.prototype.isString=function(){return this.type==Ui.String},t.prototype.isOperator=function(t){return this.type==Ui.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==Ui.Identifier},t.prototype.isKeyword=function(){return this.type==Ui.Keyword},t.prototype.isKeywordLet=function(){return this.type==Ui.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==Ui.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==Ui.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==Ui.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==Ui.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==Ui.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==Ui.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==Ui.Error},t.prototype.toNumber=function(){return this.type==Ui.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case Ui.Character:case Ui.Identifier:case Ui.Keyword:case Ui.Operator:case Ui.String:case Ui.Error:return this.strValue;case Ui.Number:return this.numValue.toString();default:return null}},t}(),Yi=new qi(-1,Ui.Character,0,""),Ki=function(){function t(t){this.input=t,this.peek=0,this.index=-1,this.length=t.length,this.advance()}return t.prototype.advance=function(){this.peek=++this.index>=this.length?ui:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,n=this.peek,r=this.index;n<=yi;){if(++r>=e){n=ui;break}n=t.charCodeAt(r)}if(this.peek=n,this.index=r,r>=e)return null;if(q(n))return this.scanIdentifier();if(z(n))return this.scanNumber(r);var i=r;switch(n){case 46:return this.advance(),z(this.peek)?this.scanNumber(i):W(i,46);case 40:case 41:case Bi:case 125:case 91:case 93:case 44:case 58:case wi:return this.scanCharacter(i,n);case mi:case gi:return this.scanString();case 35:case bi:case _i:case 42:case xi:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanComplexOperator(i,"?",46,".");case 60:case Si:return this.scanComplexOperator(i,String.fromCharCode(n),Oi,"=");case 33:case Oi:return this.scanComplexOperator(i,String.fromCharCode(n),Oi,"=",Oi,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case Hi:for(;H(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(n)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),W(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),G(t,e)},t.prototype.scanComplexOperator=function(t,e,n,r,i,o){this.advance();var s=e;return this.peek==n&&(this.advance(),s+=r),null!=i&&this.peek==i&&(this.advance(),s+=o),G(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();Y(this.peek);)this.advance();var e=this.input.substring(t,this.index);return Wi.indexOf(e)>-1?function(t,e){return new qi(t,Ui.Keyword,0,e)}(t,e):function(t,e){return new qi(t,Ui.Identifier,0,e)}(t,e)},t.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(z(this.peek));else if(46==this.peek)e=!1;else{if(!function(t){return t==Ri||t==ji}(this.peek))break;if(this.advance(),function(t){return t==_i||t==bi}(this.peek)&&this.advance(),!z(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var n=this.input.substring(t,this.index);return function(t,e){return new qi(t,Ui.Number,e,"")}(t,e?function(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}(n):parseFloat(n))},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var n="",r=this.index,i=this.input;this.peek!=e;)if(92==this.peek){n+=i.substring(r,this.index),this.advance();var o=void 0;if(this.peek=this.peek,117==this.peek){var s=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);o=parseInt(s,16);for(var a=0;a<5;a++)this.advance()}else o=function(t){switch(t){case Di:return pi;case Mi:return di;case Ni:return fi;case Li:return li;case Fi:return hi;default:return t}}(this.peek),this.advance();n+=String.fromCharCode(o),r=this.index}else{if(this.peek==ui)return this.error("Unterminated quote",0);this.advance()}var c=i.substring(r,this.index);return this.advance(),function(t,e){return new qi(t,Ui.String,0,e)}(t,n+c)},t.prototype.error=function(t,e){var n=this.index+e;return function(t,e){return new qi(t,Ui.Error,0,e)}(n,"Lexer Error: "+t+" at column "+n+" in expression ["+this.input+"]")},t}(),Xi=function(){return function(t,e,n,r){this.input=e,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+t+" "+n+" ["+e+"] in "+r}}(),$i=function(){return function(t,e){this.start=t,this.end=e}}(),Qi=function(){function t(t){this.span=t}return t.prototype.visit=function(t,e){return void 0===e&&(e=null),null},t.prototype.toString=function(){return"AST"},t}(),Zi=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.prefix=n,o.uninterpretedExpression=r,o.location=i,o}return Object(wn.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitQuote(this,e)},e.prototype.toString=function(){return"Quote"},e}(Qi),Ji=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(wn.b)(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(Qi),to=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(wn.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(Qi),eo=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return Object(wn.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(Qi),no=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.condition=n,o.trueExp=r,o.falseExp=i,o}return Object(wn.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(Qi),ro=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return Object(wn.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(Qi),io=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.value=i,o}return Object(wn.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(Qi),oo=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return Object(wn.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(Qi),so=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.obj=n,i.key=r,i}return Object(wn.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(Qi),ao=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.obj=n,o.key=r,o.value=i,o}return Object(wn.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(Qi),co=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.exp=n,o.name=r,o.args=i,o}return Object(wn.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(Qi),uo=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return Object(wn.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(Qi),lo=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return Object(wn.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(Qi),po=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keys=n,i.values=r,i}return Object(wn.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(Qi),ho=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.strings=n,i.expressions=r,i}return Object(wn.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(Qi),fo=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.operation=n,o.left=r,o.right=i,o}return Object(wn.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(Qi),yo=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return Object(wn.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(Qi),go=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return Object(wn.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitNonNullAssert(this,e)},e}(Qi),vo=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return Object(wn.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(Qi),mo=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return Object(wn.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(Qi),bo=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.target=n,i.args=r,i}return Object(wn.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(Qi),_o=function(t){function e(e,n,r,i){var o=t.call(this,new $i(0,null==n?0:n.length))||this;return o.ast=e,o.source=n,o.location=r,o.errors=i,o}return Object(wn.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),this.ast.visit(t,e)},e.prototype.toString=function(){return this.source+" in "+this.location},e}(Qi),xo=function(){return function(t,e,n,r,i){this.span=t,this.key=e,this.keyIsVar=n,this.name=r,this.expression=i}}(),wo=(function(){function t(){}t.prototype.visitBinary=function(t,e){},t.prototype.visitChain=function(t,e){},t.prototype.visitConditional=function(t,e){},t.prototype.visitFunctionCall=function(t,e){},t.prototype.visitImplicitReceiver=function(t,e){},t.prototype.visitInterpolation=function(t,e){},t.prototype.visitKeyedRead=function(t,e){},t.prototype.visitKeyedWrite=function(t,e){},t.prototype.visitLiteralArray=function(t,e){},t.prototype.visitLiteralMap=function(t,e){},t.prototype.visitLiteralPrimitive=function(t,e){},t.prototype.visitMethodCall=function(t,e){},t.prototype.visitPipe=function(t,e){},t.prototype.visitPrefixNot=function(t,e){},t.prototype.visitNonNullAssert=function(t,e){},t.prototype.visitPropertyRead=function(t,e){},t.prototype.visitPropertyWrite=function(t,e){},t.prototype.visitQuote=function(t,e){},t.prototype.visitSafeMethodCall=function(t,e){},t.prototype.visitSafePropertyRead=function(t,e){}}(),function(){function t(){}return t.prototype.visitBinary=function(t,e){return t.left.visit(this),t.right.visit(this),null},t.prototype.visitChain=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this),null},t.prototype.visitPipe=function(t,e){return t.exp.visit(this),this.visitAll(t.args,e),null},t.prototype.visitFunctionCall=function(t,e){return t.target.visit(this),this.visitAll(t.args,e),null},t.prototype.visitImplicitReceiver=function(t,e){return null},t.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitKeyedRead=function(t,e){return t.obj.visit(this),t.key.visit(this),null},t.prototype.visitKeyedWrite=function(t,e){return t.obj.visit(this),t.key.visit(this),t.value.visit(this),null},t.prototype.visitLiteralArray=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitLiteralMap=function(t,e){return this.visitAll(t.values,e)},t.prototype.visitLiteralPrimitive=function(t,e){return null},t.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitPrefixNot=function(t,e){return t.expression.visit(this),null},t.prototype.visitNonNullAssert=function(t,e){return t.expression.visit(this),null},t.prototype.visitPropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitPropertyWrite=function(t,e){return t.receiver.visit(this),t.value.visit(this),null},t.prototype.visitSafePropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitSafeMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitAll=function(t,e){var n=this;return t.forEach(function(t){return t.visit(n,e)}),null},t.prototype.visitQuote=function(t,e){return null},t}()),Oo=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t,e){return t},t.prototype.visitInterpolation=function(t,e){return new ho(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t,e){return new uo(t.span,t.value)},t.prototype.visitPropertyRead=function(t,e){return new ro(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t,e){return new io(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t,e){return new oo(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t,e){return new vo(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t,e){return new mo(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t,e){return new bo(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t,e){return new lo(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t,e){return new po(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t,e){return new fo(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t,e){return new yo(t.span,t.expression.visit(this))},t.prototype.visitNonNullAssert=function(t,e){return new go(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t,e){return new no(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t,e){return new co(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t,e){return new so(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t,e){return new ao(t.span,t.obj.visit(this),t.key.visit(this),t.value.visit(this))},t.prototype.visitAll=function(t){for(var e=new Array(t.length),n=0;n<t.length;++n)e[n]=t[n].visit(this);return e},t.prototype.visitChain=function(t,e){return new eo(t.span,this.visitAll(t.expressions))},t.prototype.visitQuote=function(t,e){return new Zi(t.span,t.prefix,t.uninterpretedExpression,t.location)},t}(),So=function(){return function(t,e,n){this.strings=t,this.expressions=e,this.offsets=n}}(),Co=function(){return function(t,e,n){this.templateBindings=t,this.warnings=e,this.errors=n}}(),Eo=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,n){void 0===n&&(n=Br),this._checkNoInterpolation(t,e,n);var r=this._stripComments(t),i=this._lexer.tokenize(this._stripComments(t)),o=new To(t,e,i,r.length,!0,this.errors,t.length-r.length).parseChain();return new _o(o,t,e,this.errors)},t.prototype.parseBinding=function(t,e,n){void 0===n&&(n=Br);var r=this._parseBindingAst(t,e,n);return new _o(r,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,n){void 0===n&&(n=Br);var r=this._parseBindingAst(t,e,n),i=jo.check(r);return i.length>0&&this._reportError("Host binding expression cannot contain "+i.join(" "),t,e),new _o(r,t,e,this.errors)},t.prototype._reportError=function(t,e,n,r){this.errors.push(new Xi(t,e,n,r))},t.prototype._parseBindingAst=function(t,e,n){var r=this._parseQuote(t,e);if(null!=r)return r;this._checkNoInterpolation(t,e,n);var i=this._stripComments(t),o=this._lexer.tokenize(i);return new To(t,e,o,i.length,!1,this.errors,t.length-i.length).parseChain()},t.prototype._parseQuote=function(t,e){if(null==t)return null;var n=t.indexOf(":");if(-1==n)return null;var r=t.substring(0,n).trim();if(!function(t){if(0==t.length)return!1;var e=new Ki(t);if(!q(e.peek))return!1;for(e.advance();e.peek!==ui;){if(!Y(e.peek))return!1;e.advance()}return!0}(r))return null;var i=t.substring(n+1);return new Zi(new $i(0,t.length),r,i,e)},t.prototype.parseTemplateBindings=function(t,e,n){var r=this._lexer.tokenize(e);if(t){var i=this._lexer.tokenize(t).map(function(t){return t.index=0,t});r.unshift.apply(r,i)}return new To(e,n,r,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,n){void 0===n&&(n=Br);var r=this.splitInterpolation(t,e,n);if(null==r)return null;for(var i=[],o=0;o<r.expressions.length;++o){var s=r.expressions[o],a=this._stripComments(s),c=this._lexer.tokenize(a),u=new To(t,e,c,a.length,!1,this.errors,r.offsets[o]+(s.length-a.length)).parseChain();i.push(u)}return new _o(new ho(new $i(0,null==t?0:t.length),r.strings,i),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,n){void 0===n&&(n=Br);var r=X(n),i=t.split(r);if(i.length<=1)return null;for(var o=[],s=[],a=[],c=0,u=0;u<i.length;u++){var l=i[u];u%2==0?(o.push(l),c+=l.length):l.trim().length>0?(c+=n.start.length,s.push(l),a.push(c),c+=l.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",t,"at column "+this._findInterpolationErrorColumn(i,u,n)+" in",e),s.push("$implict"),a.push(c))}return new So(o,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new _o(new uo(new $i(0,null==t?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return null!=e?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e=null,n=0;n<t.length-1;n++){var r=t.charCodeAt(n),i=t.charCodeAt(n+1);if(r===xi&&i==xi&&null==e)return n;e===r?e=null:null==e&&K(r)&&(e=r)}return null},t.prototype._checkNoInterpolation=function(t,e,n){var r=X(n),i=t.split(r);i.length>1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(i,1,n)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,n){for(var r="",i=0;i<e;i++)r+=i%2==0?t[i]:""+n.start+t[i]+n.end;return r.length},t}(),To=function(){function t(t,e,n,r,i,o,s){this.input=t,this.location=e,this.tokens=n,this.inputLength=r,this.parseAction=i,this.errors=o,this.offset=s,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.index=0}return t.prototype.peek=function(t){var e=this.index+t;return e<this.tokens.length?this.tokens[e]:Yi},Object.defineProperty(t.prototype,"next",{get:function(){return this.peek(0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index+this.offset:this.inputLength+this.offset},enumerable:!0,configurable:!0}),t.prototype.span=function(t){return new $i(t,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(t){return!!this.next.isCharacter(t)&&(this.advance(),!0)},t.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},t.prototype.peekKeywordAs=function(){return this.next.isKeywordAs()},t.prototype.expectCharacter=function(t){this.optionalCharacter(t)||this.error("Missing expected "+String.fromCharCode(t))},t.prototype.optionalOperator=function(t){return!!this.next.isOperator(t)&&(this.advance(),!0)},t.prototype.expectOperator=function(t){this.optionalOperator(t)||this.error("Missing expected operator "+t)},t.prototype.expectIdentifierOrKeyword=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier or keyword"),"")},t.prototype.expectIdentifierOrKeywordOrString=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()||t.isString()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier, keyword, or string"),"")},t.prototype.parseChain=function(){for(var t=[],e=this.inputIndex;this.index<this.tokens.length;){var n=this.parsePipe();if(t.push(n),this.optionalCharacter(wi))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(wi););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==t.length?new Ji(this.span(e)):1==t.length?t[0]:new eo(this.span(e),t)},t.prototype.parsePipe=function(){var t=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var e=this.expectIdentifierOrKeyword(),n=[];this.optionalCharacter(58);)n.push(this.parseExpression());t=new co(this.span(t.span.start),t,e,n)}while(this.optionalOperator("|"))}return t},t.prototype.parseExpression=function(){return this.parseConditional()},t.prototype.parseConditional=function(){var t=this.inputIndex,e=this.parseLogicalOr();if(this.optionalOperator("?")){var n=this.parsePipe(),r=void 0;if(this.optionalCharacter(58))r=this.parsePipe();else{var i=this.inputIndex,o=this.input.substring(t,i);this.error("Conditional expression "+o+" requires all 3 expressions"),r=new Ji(this.span(t))}return new no(this.span(t),e,n,r)}return e},t.prototype.parseLogicalOr=function(){for(var t=this.parseLogicalAnd();this.optionalOperator("||");){var e=this.parseLogicalAnd();t=new fo(this.span(t.span.start),"||",t,e)}return t},t.prototype.parseLogicalAnd=function(){for(var t=this.parseEquality();this.optionalOperator("&&");){var e=this.parseEquality();t=new fo(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==Ui.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var n=this.parseRelational();t=new fo(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==Ui.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var n=this.parseAdditive();t=new fo(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==Ui.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var n=this.parseMultiplicative();t=new fo(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==Ui.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();t=new fo(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==Ui.Operator){var t=this.inputIndex,e=this.next.strValue,n=void 0;switch(e){case"+":return this.advance(),this.parsePrefix();case"-":return this.advance(),n=this.parsePrefix(),new fo(this.span(t),e,new uo(new $i(t,t),0),n);case"!":return this.advance(),n=this.parsePrefix(),new yo(this.span(t),n)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(46))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(91)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(93),this.optionalOperator("=")){var n=this.parseConditional();t=new ao(this.span(t.span.start),t,e,n)}else t=new so(this.span(t.span.start),t,e)}else if(this.optionalCharacter(40)){this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),t=new bo(this.span(t.span.start),t,r)}else{if(!this.optionalOperator("!"))return t;t=new go(this.span(t.span.start),t)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(40)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),e}if(this.next.isKeywordNull())return this.advance(),new uo(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new uo(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new uo(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new uo(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new to(this.span(t));if(this.optionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new lo(this.span(t),n)}if(this.next.isCharacter(Bi))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new to(this.span(t)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new uo(this.span(t),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new uo(this.span(t),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new Ji(this.span(t))):(this.error("Unexpected token "+this.next),new Ji(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do{e.push(this.parsePipe())}while(this.optionalCharacter(44));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],n=this.inputIndex;if(this.expectCharacter(Bi),!this.optionalCharacter(125)){this.rbracesExpected++;do{var r=this.next.isString(),i=this.expectIdentifierOrKeywordOrString();t.push({key:i,quoted:r}),this.expectCharacter(58),e.push(this.parsePipe())}while(this.optionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new po(this.span(n),t,e)},t.prototype.parseAccessMemberOrMethodCall=function(t,e){void 0===e&&(e=!1);var n=t.span.start,r=this.expectIdentifierOrKeyword();if(this.optionalCharacter(40)){this.rparensExpected++;var i=this.parseCallArguments();this.expectCharacter(41),this.rparensExpected--;var o=this.span(n);return e?new mo(o,t,r,i):new vo(o,t,r,i)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Ji(this.span(n))):new oo(this.span(n),t,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Ji(this.span(n));var s=this.parseConditional();return new io(this.span(n),t,r,s)}return new ro(this.span(n),t,r)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(41))return[];var t=[];do{t.push(this.parsePipe())}while(this.optionalCharacter(44));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do{t+=this.expectIdentifierOrKeywordOrString(),(e=this.optionalOperator("-"))&&(t+="-")}while(e);return t.toString()},t.prototype.parseTemplateBindings=function(){for(var t=[],e=null;this.index<this.tokens.length;){var n=this.inputIndex,r=this.peekKeywordLet();r&&this.advance();var i=this.expectTemplateBindingKey(),o=i;r||(null==e?e=o:o=e+o[0].toUpperCase()+o.substring(1)),this.optionalCharacter(58);var s=null,a=null;if(r)s=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs()){var c=this.inputIndex;this.advance(),s=i,o=this.expectTemplateBindingKey(),r=!0}else if(this.next!==Yi&&!this.peekKeywordLet()){var u=this.inputIndex,l=this.parsePipe(),p=this.input.substring(u-this.offset,this.inputIndex-this.offset);a=new _o(l,p,this.location,this.errors)}if(t.push(new xo(this.span(n),o,r,s,a)),this.peekKeywordAs()&&!r){c=this.inputIndex;this.advance();var h=this.expectTemplateBindingKey();t.push(new xo(this.span(c),h,!0,o,null))}this.optionalCharacter(wi)||this.optionalCharacter(44)}return new Co(t,[],this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new Xi(t,this.input,this.locationText(e),this.location)),this.skip()},t.prototype.locationText=function(t){return void 0===t&&(t=null),null==t&&(t=this.index),t<this.tokens.length?"at column "+(this.tokens[t].index+1)+" in":"at the end of the expression"},t.prototype.skip=function(){for(var t=this.next;this.index<this.tokens.length&&!t.isCharacter(wi)&&(this.rparensExpected<=0||!t.isCharacter(41))&&(this.rbracesExpected<=0||!t.isCharacter(125))&&(this.rbracketsExpected<=0||!t.isCharacter(93));)this.next.isError()&&this.errors.push(new Xi(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),jo=function(){function t(){this.errors=[]}return t.check=function(e){var n=new t;return e.visit(n),n.errors},t.prototype.visitImplicitReceiver=function(t,e){},t.prototype.visitInterpolation=function(t,e){},t.prototype.visitLiteralPrimitive=function(t,e){},t.prototype.visitPropertyRead=function(t,e){},t.prototype.visitPropertyWrite=function(t,e){},t.prototype.visitSafePropertyRead=function(t,e){},t.prototype.visitMethodCall=function(t,e){},t.prototype.visitSafeMethodCall=function(t,e){},t.prototype.visitFunctionCall=function(t,e){},t.prototype.visitLiteralArray=function(t,e){this.visitAll(t.expressions)},t.prototype.visitLiteralMap=function(t,e){this.visitAll(t.values)},t.prototype.visitBinary=function(t,e){},t.prototype.visitPrefixNot=function(t,e){},t.prototype.visitNonNullAssert=function(t,e){},t.prototype.visitConditional=function(t,e){},t.prototype.visitPipe=function(t,e){this.errors.push("pipes")},t.prototype.visitKeyedRead=function(t,e){},t.prototype.visitKeyedWrite=function(t,e){},t.prototype.visitAll=function(t){var e=this;return t.map(function(t){return t.visit(e)})},t.prototype.visitChain=function(t,e){},t.prototype.visitQuote=function(t,e){},t}(),Po=function(){function t(t,e,n,r){this.file=t,this.offset=e,this.line=n,this.col=r}return t.prototype.toString=function(){return null!=this.offset?this.file.url+"@"+this.line+":"+this.col:this.file.url},t.prototype.moveBy=function(e){for(var n=this.file.content,r=n.length,i=this.offset,o=this.line,s=this.col;i>0&&e<0;){i--,e++;if((c=n.charCodeAt(i))==pi){o--;var a=n.substr(0,i-1).lastIndexOf(String.fromCharCode(pi));s=a>0?i-a:i}else s--}for(;i<r&&e>0;){var c=n.charCodeAt(i);i++,e--,c==pi?(o++,s=0):s++}return new t(this.file,i,o,s)},t.prototype.getContext=function(t,e){var n=this.file.content,r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);for(var i=r,o=0,s=0;o<t&&r>0&&(r--,o++,"\n"!=n[r]||++s!=e););for(o=0,s=0;o<t&&i<n.length-1&&(i++,o++,"\n"!=n[i]||++s!=e););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null},t}(),Ao=function(){return function(t,e){this.content=t,this.url=e}}(),Io=function(){function t(t,e,n){void 0===n&&(n=null),this.start=t,this.end=e,this.details=n}return t.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},t}(),ko={WARNING:0,ERROR:1};ko[ko.WARNING]="WARNING",ko[ko.ERROR]="ERROR";var Ro=function(){function t(t,e,n){void 0===n&&(n=ko.ERROR),this.span=t,this.msg=e,this.level=n}return t.prototype.contextualMessage=function(){var t=this.span.start.getContext(100,3);return t?this.msg+' ("'+t.before+"["+ko[this.level]+" ->]"+t.after+'")':this.msg},t.prototype.toString=function(){var t=this.span.details?", "+this.span.details:"";return this.contextualMessage()+": "+this.span.start+t},t}(),Mo={TAG_OPEN_START:0,TAG_OPEN_END:1,TAG_OPEN_END_VOID:2,TAG_CLOSE:3,TEXT:4,ESCAPABLE_RAW_TEXT:5,RAW_TEXT:6,COMMENT_START:7,COMMENT_END:8,CDATA_START:9,CDATA_END:10,ATTR_NAME:11,ATTR_VALUE:12,DOC_TYPE:13,EXPANSION_FORM_START:14,EXPANSION_CASE_VALUE:15,EXPANSION_CASE_EXP_START:16,EXPANSION_CASE_EXP_END:17,EXPANSION_FORM_END:18,EOF:19};Mo[Mo.TAG_OPEN_START]="TAG_OPEN_START",Mo[Mo.TAG_OPEN_END]="TAG_OPEN_END",Mo[Mo.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",Mo[Mo.TAG_CLOSE]="TAG_CLOSE",Mo[Mo.TEXT]="TEXT",Mo[Mo.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",Mo[Mo.RAW_TEXT]="RAW_TEXT",Mo[Mo.COMMENT_START]="COMMENT_START",Mo[Mo.COMMENT_END]="COMMENT_END",Mo[Mo.CDATA_START]="CDATA_START",Mo[Mo.CDATA_END]="CDATA_END",Mo[Mo.ATTR_NAME]="ATTR_NAME",Mo[Mo.ATTR_VALUE]="ATTR_VALUE",Mo[Mo.DOC_TYPE]="DOC_TYPE",Mo[Mo.EXPANSION_FORM_START]="EXPANSION_FORM_START",Mo[Mo.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",Mo[Mo.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",Mo[Mo.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",Mo[Mo.EXPANSION_FORM_END]="EXPANSION_FORM_END",Mo[Mo.EOF]="EOF";var Do=function(){return function(t,e,n){this.type=t,this.parts=e,this.sourceSpan=n}}(),No=function(t){function e(e,n,r){var i=t.call(this,r,e)||this;return i.tokenType=n,i}return Object(wn.b)(e,t),e}(Ro),Lo=function(){return function(t,e){this.tokens=t,this.errors=e}}(),Fo=/\r\n?/g,Vo=function(){return function(t){this.error=t}}(),Bo=function(){function t(t,e,n,r){void 0===r&&(r=Br),this._file=t,this._getTagDefinition=e,this._tokenizeIcu=n,this._interpolationConfig=r,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=t.content,this._length=t.content.length,this._advance()}return t.prototype._processCarriageReturns=function(t){return t.replace(Fo,"\n")},t.prototype.tokenize=function(){for(;this._peek!==ui;){var t=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(t):this._attemptCharCode(_i)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(xi)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(t){if(!(t instanceof Vo))throw t;this.errors.push(t.error)}}return this._beginToken(Mo.EOF),this._endToken([]),new Lo(function(t){for(var e=[],n=void 0,r=0;r<t.length;r++){var i=t[r];n&&n.type==Mo.TEXT&&i.type==Mo.TEXT?(n.parts[0]+=i.parts[0],n.sourceSpan.end=i.sourceSpan.end):(n=i,e.push(n))}return e}(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(nt(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(function(t){return t===Oi||U(t)||z(t)}(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(125===this._peek){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new Po(this._file,this._index,this._line,this._column)},t.prototype._getSpan=function(t,e){return void 0===t&&(t=this._getLocation()),void 0===e&&(e=this._getLocation()),new Io(t,e)},t.prototype._beginToken=function(t,e){void 0===e&&(e=this._getLocation()),this._currentTokenStart=e,this._currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=this._getLocation());var n=new Do(this._currentTokenType,t,new Io(this._currentTokenStart,e));return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n},t.prototype._createError=function(t,e){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var n=new No(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new Vo(n)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError($(ui),this._getSpan());this._peek===pi?(this._line++,this._column=0):this._peek!==pi&&this._peek!==fi&&this._column++,this._index++,this._peek=this._index>=this._length?ui:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?ui:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t&&(this._advance(),!0)},t.prototype._attemptCharCodeCaseInsensitive=function(t){return!!function(t,e){return rt(t)==rt(e)}(this._peek,t)&&(this._advance(),!0)},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError($(this._peek),this._getSpan(e,e))},t.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var n=this._savePosition(),r=0;r<e;r++)if(!this._attemptCharCode(t.charCodeAt(r)))return this._restorePosition(n),!1;return!0},t.prototype._attemptStrCaseInsensitive=function(t){for(var e=0;e<t.length;e++)if(!this._attemptCharCodeCaseInsensitive(t.charCodeAt(e)))return!1;return!0},t.prototype._requireStr=function(t){var e=this._getLocation();if(!this._attemptStr(t))throw this._createError($(this._peek),this._getSpan(e))},t.prototype._attemptCharCodeUntilFn=function(t){for(;!t(this._peek);)this._advance()},t.prototype._requireCharCodeUntilFn=function(t,e){var n=this._getLocation();if(this._attemptCharCodeUntilFn(t),this._index-n.offset<e)throw this._createError($(this._peek),this._getSpan(n,n))},t.prototype._attemptUntilChar=function(t){for(;this._peek!==t;)this._advance()},t.prototype._readChar=function(t){if(t&&38===this._peek)return this._decodeEntity();var e=this._index;return this._advance(),this._input[e]},t.prototype._decodeEntity=function(){var t=this._getLocation();if(this._advance(),!this._attemptCharCode(35)){var e=this._savePosition();if(this._attemptCharCodeUntilFn(et),this._peek!=wi)return this._restorePosition(e),"&";this._advance();var n=this._input.substring(t.offset+1,this._index-1),r=qr[n];if(!r)throw this._createError(Q(n),this._getSpan(t));return r}var i=this._attemptCharCode(120)||this._attemptCharCode(88),o=this._getLocation().offset;if(this._attemptCharCodeUntilFn(tt),this._peek!=wi)throw this._createError($(this._peek),this._getSpan());this._advance();var s=this._input.substring(o,this._index-1);try{var a=parseInt(s,i?16:10);return String.fromCharCode(a)}catch(e){var c=this._input.substring(t.offset+1,this._index-1);throw this._createError(Q(c),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,n){var r,i=this._getLocation();this._beginToken(t?Mo.ESCAPABLE_RAW_TEXT:Mo.RAW_TEXT,i);for(var o=[];r=this._getLocation(),!this._attemptCharCode(e)||!n();)for(this._index>r.offset&&o.push(this._input.substring(r.offset,this._index));this._peek!==e;)o.push(this._readChar(t));return this._endToken([this._processCarriageReturns(o.join(""))],r)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(Mo.COMMENT_START,t),this._requireCharCode(_i),this._endToken([]);var n=this._consumeRawText(!1,_i,function(){return e._attemptStr("->")});this._beginToken(Mo.COMMENT_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(Mo.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,93,function(){return e._attemptStr("]>")});this._beginToken(Mo.CDATA_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(Mo.DOC_TYPE,t),this._attemptUntilChar(Si),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t=this._index,e=null;58!==this._peek&&!function(t){return(t<ki||Vi<t)&&(t<Ti||Ai<t)&&(t<Ci||t>Ei)}(this._peek);)this._advance();var n;58===this._peek?(this._advance(),e=this._input.substring(t,this._index-1),n=this._index):n=t,this._requireCharCodeUntilFn(J,this._index===n?1:0);return[e,this._input.substring(n,this._index)]},t.prototype._consumeTagOpen=function(t){var e,n,r=this._savePosition();try{if(!U(this._peek))throw this._createError($(this._peek),this._getSpan());var i=this._index;for(this._consumeTagOpenStart(t),n=(e=this._input.substring(i,this._index)).toLowerCase(),this._attemptCharCodeUntilFn(Z);this._peek!==xi&&this._peek!==Si;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Z),this._attemptCharCode(Oi)&&(this._attemptCharCodeUntilFn(Z),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Z);this._consumeTagOpenEnd()}catch(e){if(e instanceof Vo)return this._restorePosition(r),this._beginToken(Mo.TEXT,t),void this._endToken(["<"]);throw e}var o=this._getTagDefinition(e).contentType;o===Gr.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):o===Gr.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var n=this,r=this._consumeRawText(e,60,function(){return!!n._attemptCharCode(xi)&&(n._attemptCharCodeUntilFn(Z),!!n._attemptStrCaseInsensitive(t)&&(n._attemptCharCodeUntilFn(Z),n._attemptCharCode(Si)))});this._beginToken(Mo.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(Mo.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(Mo.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){this._beginToken(Mo.ATTR_VALUE);var t;if(this._peek===mi||this._peek===gi){var e=this._peek;this._advance();for(var n=[];this._peek!==e;)n.push(this._readChar(!0));t=n.join(""),this._advance()}else{var r=this._index;this._requireCharCodeUntilFn(J,1),t=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(xi)?Mo.TAG_OPEN_END_VOID:Mo.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(Si),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(Mo.TAG_CLOSE,t),this._attemptCharCodeUntilFn(Z);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Z),this._requireCharCode(Si),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(Mo.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(Bi),this._endToken([]),this._expansionCaseStack.push(Mo.EXPANSION_FORM_START),this._beginToken(Mo.RAW_TEXT,this._getLocation());var t=this._readUntil(44);this._endToken([t],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(Z),this._beginToken(Mo.RAW_TEXT,this._getLocation());var e=this._readUntil(44);this._endToken([e],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(Z)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(Mo.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(Bi).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(Z),this._beginToken(Mo.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(Bi),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Z),this._expansionCaseStack.push(Mo.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(Mo.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(125),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Z),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(Mo.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(Mo.TEXT,t);var e=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(e.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(e.push(this._interpolationConfig.end),this._inInterpolation=!1):e.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(e.join(""))])},t.prototype._isTextEnd=function(){if(60===this._peek||this._peek===ui)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(nt(this._input,this._index,this._interpolationConfig))return!0;if(125===this._peek&&this._isInExpansionCase())return!0}return!1},t.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},t.prototype._readUntil=function(t){var e=this._index;return this._attemptUntilChar(t),this._input.substring(e,this._index)},t.prototype._restorePosition=function(t){this._peek=t[0],this._index=t[1],this._column=t[2],this._line=t[3];var e=t[4];e<this.tokens.length&&(this.tokens=this.tokens.slice(0,e))},t.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Mo.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Mo.EXPANSION_FORM_START},t}(),Ho=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.elementName=e,i}return Object(wn.b)(e,t),e.create=function(t,n,r){return new e(t,n,r)},e}(Ro),zo=function(){return function(t,e){this.rootNodes=t,this.errors=e}}(),Uo=function(){function t(t){this.getTagDefinition=t}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=Br);var i=function(t,e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=Br),new Bo(new Ao(t,e),n,r,i).tokenize()}(t,e,this.getTagDefinition,n,r),o=new Wo(i.tokens,this.getTagDefinition).build();return new zo(o.rootNodes,i.errors.concat(o.errors))},t}(),Wo=function(){function t(t,e){this.tokens=t,this.getTagDefinition=e,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return t.prototype.build=function(){for(;this._peek.type!==Mo.EOF;)this._peek.type===Mo.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===Mo.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===Mo.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===Mo.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===Mo.TEXT||this._peek.type===Mo.RAW_TEXT||this._peek.type===Mo.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===Mo.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new zo(this._rootNodes,this._errors)},t.prototype._advance=function(){var t=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],t},t.prototype._advanceIf=function(t){return this._peek.type===t?this._advance():null},t.prototype._consumeCdata=function(t){this._consumeText(this._advance()),this._advanceIf(Mo.CDATA_END)},t.prototype._consumeComment=function(t){var e=this._advanceIf(Mo.RAW_TEXT);this._advanceIf(Mo.COMMENT_END);var n=null!=e?e.parts[0].trim():null;this._addToParent(new Lr(n,t.sourceSpan))},t.prototype._consumeExpansion=function(t){for(var e=this._advance(),n=this._advance(),r=[];this._peek.type===Mo.EXPANSION_CASE_VALUE;){var i=this._parseExpansionCase();if(!i)return;r.push(i)}if(this._peek.type===Mo.EXPANSION_FORM_END){var o=new Io(t.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new Rr(e.parts[0],n.parts[0],r,o,e.sourceSpan)),this._advance()}else this._errors.push(Ho.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."))},t.prototype._parseExpansionCase=function(){var e=this._advance();if(this._peek.type!==Mo.EXPANSION_CASE_EXP_START)return this._errors.push(Ho.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;var i=this._advance();r.push(new Do(Mo.EOF,[],i.sourceSpan));var o=new t(r,this.getTagDefinition).build();if(o.errors.length>0)return this._errors=this._errors.concat(o.errors),null;var s=new Io(e.sourceSpan.start,i.sourceSpan.end),a=new Io(n.sourceSpan.start,i.sourceSpan.end);return new Mr(e.parts[0],o.rootNodes,s,e.sourceSpan,a)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],n=[Mo.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==Mo.EXPANSION_FORM_START&&this._peek.type!==Mo.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===Mo.EXPANSION_CASE_EXP_END){if(!it(n,Mo.EXPANSION_CASE_EXP_START))return this._errors.push(Ho.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return e}if(this._peek.type===Mo.EXPANSION_FORM_END){if(!it(n,Mo.EXPANSION_FORM_START))return this._errors.push(Ho.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===Mo.EOF)return this._errors.push(Ho.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}},t.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var n=this._getParentElement();null!=n&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new kr(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){var t=this._getParentElement();t&&this.getTagDefinition(t.name).isVoid&&this._elementStack.pop()},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],n=t.parts[1],r=[];this._peek.type===Mo.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(e,n,this._getParentElement()),o=!1;if(this._peek.type===Mo.TAG_OPEN_END_VOID){this._advance(),o=!0;var s=this.getTagDefinition(i);s.canSelfClose||null!==N(i)||s.isVoid||this._errors.push(Ho.create(i,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===Mo.TAG_OPEN_END&&(this._advance(),o=!1);var a=this._peek.sourceSpan.start,c=new Io(t.sourceSpan.start,a),u=new Nr(i,r,[],c,c,void 0);this._pushElement(u),o&&(this._popElement(i),u.endSourceSpan=c)},t.prototype._pushElement=function(t){var e=this._getParentElement();e&&this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop();var n=this.getTagDefinition(t.name),r=this._getParentElementSkippingContainers(),i=r.parent,o=r.container;if(i&&n.requireExtraParent(i.name)){var s=new Nr(n.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(i,o,s)}this._addToParent(t),this._elementStack.push(t)},t.prototype._consumeEndTag=function(t){var e=this._getElementFullName(t.parts[0],t.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=t.sourceSpan),this.getTagDefinition(e).isVoid)this._errors.push(Ho.create(e,t.sourceSpan,'Void elements do not have end tags "'+t.parts[1]+'"'));else if(!this._popElement(e)){var n='Unexpected closing tag "'+e+'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags';this._errors.push(Ho.create(e,t.sourceSpan,n))}},t.prototype._popElement=function(t){for(var e=this._elementStack.length-1;e>=0;e--){var n=this._elementStack[e];if(n.name==t)return this._elementStack.splice(e,this._elementStack.length-e),!0;if(!this.getTagDefinition(n.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e=L(t.parts[0],t.parts[1]),n=t.sourceSpan.end,r="",i=void 0;if(this._peek.type===Mo.ATTR_VALUE){var o=this._advance();r=o.parts[0],n=o.sourceSpan.end,i=o.sourceSpan}return new Dr(e,r,new Io(t.sourceSpan.start,n),i)},t.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},t.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if(!M(this._elementStack[e].name))return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:null,container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();null!=e?e.children.push(t):this._rootNodes.push(t)},t.prototype._insertBeforeContainer=function(t,e,n){if(e){if(t){var r=t.children.indexOf(e);t.children[r]=n}else this._rootNodes.push(n);n.children.push(e),this._elementStack.splice(this._elementStack.indexOf(e),0,n)}else this._addToParent(n),this._elementStack.push(n)},t.prototype._getElementFullName=function(t,e,n){return null==t&&null==(t=this.getTagDefinition(e).implicitNamespacePrefix)&&null!=n&&(t=N(n.name)),L(t,e)},t}(),Go=function(){function t(){}return t.prototype.visitText=function(t,e){return t.value},t.prototype.visitContainer=function(t,e){var n=this;return"["+t.children.map(function(t){return t.visit(n)}).join(", ")+"]"},t.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+t.expression+", "+t.type+", "+r.join(", ")+"}"},t.prototype.visitTagPlaceholder=function(t,e){var n=this;return t.isVoid?'<ph tag name="'+t.startName+'"/>':'<ph tag name="'+t.startName+'">'+t.children.map(function(t){return t.visit(n)}).join(", ")+'</ph name="'+t.closeName+'">'},t.prototype.visitPlaceholder=function(t,e){return t.value?'<ph name="'+t.name+'">'+t.value+"</ph>":'<ph name="'+t.name+'"/>'},t.prototype.visitIcuPlaceholder=function(t,e){return'<ph icu name="'+t.name+'">'+t.value.visit(this)+"</ph>"},t}(),qo=new Go,Yo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(wn.b)(e,t),e.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+t.type+", "+r.join(", ")+"}"},e}(Go),Ko={Little:0,Big:1};Ko[Ko.Little]="Little",Ko[Ko.Big]="Big";var Xo=function(){return function(t,e,n,r,i,o){this.nodes=t,this.placeholders=e,this.placeholderToMessage=n,this.meaning=r,this.description=i,this.id=o,t.length?this.sources=[{filePath:t[0].sourceSpan.start.file.url,startLine:t[0].sourceSpan.start.line+1,startCol:t[0].sourceSpan.start.col+1,endLine:t[t.length-1].sourceSpan.end.line+1,endCol:t[0].sourceSpan.start.col+1}]:this.sources=[]}}(),$o=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Qo=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),Zo=function(){function t(t,e,n,r){this.expression=t,this.type=e,this.cases=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitIcu(this,e)},t}(),Jo=function(){function t(t,e,n,r,i,o,s){this.tag=t,this.attrs=e,this.startName=n,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),ts=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitPlaceholder(this,e)},t}(),es=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitIcuPlaceholder(this,e)},t}(),ns=function(){function t(){}return t.prototype.visitText=function(t,e){return new $o(t.value,t.sourceSpan)},t.prototype.visitContainer=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new Qo(r,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var n=this,r={};Object.keys(t.cases).forEach(function(i){return r[i]=t.cases[i].visit(n,e)});var i=new Zo(t.expression,t.type,r,t.sourceSpan);return i.expressionPlaceholder=t.expressionPlaceholder,i},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new Jo(t.tag,t.attrs,t.startName,t.closeName,r,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t,e){return new ts(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t,e){return new es(t.value,t.name,t.sourceSpan)},t}(),rs=function(){function t(){}return t.prototype.visitText=function(t,e){},t.prototype.visitContainer=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitIcu=function(t,e){var n=this;Object.keys(t.cases).forEach(function(e){t.cases[e].visit(n)})},t.prototype.visitTagPlaceholder=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitPlaceholder=function(t,e){},t.prototype.visitIcuPlaceholder=function(t,e){},t}(),is=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=e.requiredParents,i=e.implicitNamespacePrefix,o=e.contentType,s=void 0===o?Gr.PARSABLE_DATA:o,a=e.closedByParent,c=void 0!==a&&a,u=e.isVoid,l=void 0!==u&&u,p=e.ignoreFirstLf,h=void 0!==p&&p,d=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,n&&n.length>0&&n.forEach(function(t){return d.closedByChildren[t]=!0}),this.isVoid=l,this.closedByParent=c||l,r&&r.length>0&&(this.requiredParents={},this.parentToAdd=r[0],r.forEach(function(t){return d.requiredParents[t]=!0})),this.implicitNamespacePrefix=i||null,this.contentType=s,this.ignoreFirstLf=h}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase();return!("template"===e||"ng-template"===t)&&1!=this.requiredParents[e]},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}(),os={base:new is({isVoid:!0}),meta:new is({isVoid:!0}),area:new is({isVoid:!0}),embed:new is({isVoid:!0}),link:new is({isVoid:!0}),img:new is({isVoid:!0}),input:new is({isVoid:!0}),param:new is({isVoid:!0}),hr:new is({isVoid:!0}),br:new is({isVoid:!0}),source:new is({isVoid:!0}),track:new is({isVoid:!0}),wbr:new is({isVoid:!0}),p:new is({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new is({closedByChildren:["tbody","tfoot"]}),tbody:new is({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new is({closedByChildren:["tbody"],closedByParent:!0}),tr:new is({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new is({closedByChildren:["td","th"],closedByParent:!0}),th:new is({closedByChildren:["td","th"],closedByParent:!0}),col:new is({requiredParents:["colgroup"],isVoid:!0}),svg:new is({implicitNamespacePrefix:"svg"}),math:new is({implicitNamespacePrefix:"math"}),li:new is({closedByChildren:["li"],closedByParent:!0}),dt:new is({closedByChildren:["dt","dd"]}),dd:new is({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new is({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new is({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new is({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new is({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new is({closedByChildren:["optgroup"],closedByParent:!0}),option:new is({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new is({ignoreFirstLf:!0}),listing:new is({ignoreFirstLf:!0}),style:new is({contentType:Gr.RAW_TEXT}),script:new is({contentType:Gr.RAW_TEXT}),title:new is({contentType:Gr.ESCAPABLE_RAW_TEXT}),textarea:new is({contentType:Gr.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},ss=new is,as={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},cs=function(){function t(){this._placeHolderNameCounts={},this._signatureToName={}}return t.prototype.getStartTagPlaceholderName=function(t,e,n){var r=this._hashTag(t,e,n);if(this._signatureToName[r])return this._signatureToName[r];var i=t.toUpperCase(),o=as[i]||"TAG_"+i,s=this._generateUniqueName(n?o:"START_"+o);return this._signatureToName[r]=s,s},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var n=t.toUpperCase(),r=as[n]||"TAG_"+n,i=this._generateUniqueName("CLOSE_"+r);return this._signatureToName[e]=i,i},t.prototype.getPlaceholderName=function(t,e){var n=t.toUpperCase(),r="PH: "+n+"="+e;if(this._signatureToName[r])return this._signatureToName[r];var i=this._generateUniqueName(n);return this._signatureToName[r]=i,i},t.prototype.getUniquePlaceholder=function(t){return this._generateUniqueName(t.toUpperCase())},t.prototype._hashTag=function(t,e,n){return"<"+t+Object.keys(e).sort().map(function(t){return" "+t+"="+e[t]}).join("")+(n?"/>":"></"+t+">")},t.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},t.prototype._generateUniqueName=function(t){if(!this._placeHolderNameCounts.hasOwnProperty(t))return this._placeHolderNameCounts[t]=1,t;var e=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=e+1,t+"_"+e},t}(),us=new Eo(new Gi),ls=function(){function t(t,e){this._expressionParser=t,this._interpolationConfig=e}return t.prototype.toI18nMessage=function(t,e,n,r){this._isIcu=1==t.length&&t[0]instanceof Rr,this._icuDepth=0,this._placeholderRegistry=new cs,this._placeholderToContent={},this._placeholderToMessage={};var i=P(this,t,{});return new Xo(i,this._placeholderToContent,this._placeholderToMessage,e,n,r)},t.prototype.visitElement=function(t,e){var n=P(this,t.children),r={};t.attrs.forEach(function(t){r[t.name]=t.value});var i=bt(t.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(t.name,r,i);this._placeholderToContent[o]=t.sourceSpan.toString();var s="";return i||(s=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[s]="</"+t.name+">"),new Jo(t.name,r,o,s,n,i,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitExpansion=function(e,n){var r=this;this._icuDepth++;var i={},o=new Zo(e.switchValue,e.type,i,e.sourceSpan);if(e.cases.forEach(function(t){i[t.value]=new Qo(t.expression.map(function(t){return t.visit(r,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var s=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return o.expressionPlaceholder=s,this._placeholderToContent[s]=e.switchValue,o}var a=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),c=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[a]=c.toI18nMessage([e],"","",""),new es(o,a,e.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Unreachable code")},t.prototype._visitTextWithInterpolation=function(t,e){var n=this._expressionParser.splitInterpolation(t,e.start.toString(),this._interpolationConfig);if(!n)return new $o(t,e);for(var r=[],i=new Qo(r,e),o=this._interpolationConfig,s=o.start,a=o.end,c=0;c<n.strings.length-1;c++){var u=n.expressions[c],l=function(t){return t.split(ps)[2]}(u)||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(l,u);n.strings[c].length&&r.push(new $o(n.strings[c],e)),r.push(new ts(u,p,e)),this._placeholderToContent[p]=s+u+a}var h=n.strings.length-1;return n.strings[h].length&&r.push(new $o(n.strings[h],e)),i},t}(),ps=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g,hs=function(t){function e(e,n){return t.call(this,e,n)||this}return Object(wn.b)(e,t),e}(Ro),ds="i18n",fs=/^i18n:?/,ys="|",gs="@@",vs=!1,ms=function(){return function(t,e){this.messages=t,this.errors=e}}(),bs={Extract:0,Merge:1};bs[bs.Extract]="Extract",bs[bs.Merge]="Merge";var _s=function(){function t(t,e){this._implicitTags=t,this._implicitAttrs=e}return t.prototype.extract=function(t,e){var n=this;return this._init(bs.Extract,e),t.forEach(function(t){return t.visit(n,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new ms(this._messages,this._errors)},t.prototype.merge=function(t,e,n){this._init(bs.Merge,n),this._translations=e;var r=new Nr("wrapper",[],t,void 0,void 0,void 0).visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new zo(r.children,this._errors)},t.prototype.visitExpansionCase=function(t,e){var n=P(this,t.expression,e);if(this._mode===bs.Merge)return new Mr(t.value,n,t.sourceSpan,t.valueSourceSpan,t.expSourceSpan)},t.prototype.visitExpansion=function(t,e){this._mayBeAddBlockChildren(t);var n=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([t]),this._inIcu=!0);var r=P(this,t.cases,e);return this._mode===bs.Merge&&(t=new Rr(t.switchValue,t.type,r,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=n,t},t.prototype.visitComment=function(t,e){var n=function(t){return!!(t instanceof Lr&&t.value&&t.value.startsWith("i18n"))}(t);if(n&&this._isInTranslatableSection)this._reportError(t,"Could not start a block inside a translatable section");else{var r=function(t){return!!(t instanceof Lr&&t.value&&"/i18n"===t.value)}(t);if(!r||this._inI18nBlock){if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(r){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),this._inI18nBlock=!1;var i=this._addMessage(this._blockChildren,this._blockMeaningAndDesc);return P(this,this._translateMessage(t,i))}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else if(n){if(!vs&&console&&console.warn){vs=!0;var o=t.sourceSpan.details?", "+t.sourceSpan.details:"";console.warn("I18n comments are deprecated, use an <ng-container> element instead ("+t.sourceSpan.start+o+")")}this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(fs,"").trim(),this._openTranslatableSection(t)}}else this._reportError(t,"Trying to close an unopened block")}},t.prototype.visitText=function(t,e){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},t.prototype.visitElement=function(t,e){var n=this;this._mayBeAddBlockChildren(t),this._depth++;var r=this._inI18nNode,i=this._inImplicitNode,o=[],s=void 0,a=function(t){return t.attrs.find(function(t){return t.name===ds})||null}(t),c=a?a.value:"",u=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,l=!i&&u;if(this._inImplicitNode=i||u,this._isInTranslatableSection||this._inIcu)(a||l)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==bs.Extract&&P(this,t.children);else{if(a||l){this._inI18nNode=!0;var p=this._addMessage(t.children,c);s=this._translateMessage(t,p)}if(this._mode==bs.Extract){var h=a||l;h&&this._openTranslatableSection(t),P(this,t.children),h&&this._closeTranslatableSection(t,t.children)}}if(this._mode===bs.Merge){(s||t.children).forEach(function(t){var r=t.visit(n,e);r&&!n._isInTranslatableSection&&(o=o.concat(r))})}if(this._visitAttributesOf(t),this._depth--,this._inI18nNode=r,this._inImplicitNode=i,this._mode===bs.Merge){var d=this._translateAttributes(t);return new Nr(t.name,d,o,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}return null},t.prototype.visitAttribute=function(t,e){throw new Error("unreachable code")},t.prototype._init=function(t,e){this._mode=t,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=function(t){var e=new ls(us,t);return function(t,n,r,i){return e.toI18nMessage(t,n,r,i)}}(e)},t.prototype._visitAttributesOf=function(t){var e=this,n={},r=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith("i18n-")}).forEach(function(t){return n[t.name.slice("i18n-".length)]=t.value}),t.attrs.forEach(function(t){t.name in n?e._addMessage([t],n[t.name]):r.some(function(e){return t.name===e})&&e._addMessage([t])})},t.prototype._addMessage=function(t,e){if(0==t.length||1==t.length&&t[0]instanceof Dr&&!t[0].value)return null;var n=_t(e),r=n.meaning,i=n.description,o=n.id,s=this._createI18nMessage(t,r,i,o);return this._messages.push(s),s},t.prototype._translateMessage=function(t,e){if(e&&this._mode===bs.Merge){var n=this._translations.get(e);if(n)return n;this._reportError(t,'Translation unavailable for message id="'+this._translations.digest(e)+'"')}return[]},t.prototype._translateAttributes=function(t){var e=this,n=t.attrs,r={};n.forEach(function(t){t.name.startsWith("i18n-")&&(r[t.name.slice("i18n-".length)]=_t(t.value))});var i=[];return n.forEach(function(n){if(n.name!==ds&&!n.name.startsWith("i18n-"))if(n.value&&""!=n.value&&r.hasOwnProperty(n.name)){var o=r[n.name],s=o.meaning,a=o.description,c=o.id,u=e._createI18nMessage([n],s,a,c),l=e._translations.get(u);if(l)if(0==l.length)i.push(new Dr(n.name,"",n.sourceSpan));else if(l[0]instanceof kr){var p=l[0].value;i.push(new Dr(n.name,p,n.sourceSpan))}else e._reportError(t,'Unexpected translation for attribute "'+n.name+'" (id="'+(c||e._translations.digest(u))+'")');else e._reportError(t,'Translation unavailable for attribute "'+n.name+'" (id="'+(c||e._translations.digest(u))+'")')}else i.push(n)}),i},t.prototype._mayBeAddBlockChildren=function(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)},t.prototype._openTranslatableSection=function(t){this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(t.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),t.prototype._closeTranslatableSection=function(t,e){if(this._isInTranslatableSection){var n=this._msgCountAtSectionStart;if(1==e.reduce(function(t,e){return t+(e instanceof Lr?0:1)},0))for(var r=this._messages.length-1;r>=n;r--){var i=this._messages[r].nodes;if(!(1==i.length&&i[0]instanceof $o)){this._messages.splice(r,1);break}}this._msgCountAtSectionStart=void 0}else this._reportError(t,"Unexpected section end")},t.prototype._reportError=function(t,e){this._errors.push(new hs(t.sourceSpan,e))},t}(),xs=new(function(){function t(){this.closedByParent=!1,this.contentType=Gr.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return t.prototype.requireExtraParent=function(t){return!1},t.prototype.isClosedByChild=function(t){return!1},t}()),ws=function(t){function e(){return t.call(this,xt)||this}return Object(wn.b)(e,t),e.prototype.parse=function(e,n,r){return void 0===r&&(r=!1),t.prototype.parse.call(this,e,n,r)},e}(Uo),Os=function(){function t(){}return t.prototype.createNameMapper=function(t){return null},t}(),Ss=function(t){function e(e,n){var r=t.call(this)||this;return r.mapName=n,r.internalToPublic={},r.publicToNextId={},r.publicToInternal={},e.nodes.forEach(function(t){return t.visit(r)}),r}return Object(wn.b)(e,t),e.prototype.toPublicName=function(t){return this.internalToPublic.hasOwnProperty(t)?this.internalToPublic[t]:null},e.prototype.toInternalName=function(t){return this.publicToInternal.hasOwnProperty(t)?this.publicToInternal[t]:null},e.prototype.visitText=function(t,e){return null},e.prototype.visitTagPlaceholder=function(e,n){this.visitPlaceholderName(e.startName),t.prototype.visitTagPlaceholder.call(this,e,n),this.visitPlaceholderName(e.closeName)},e.prototype.visitPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitIcuPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitPlaceholderName=function(t){if(t&&!this.internalToPublic.hasOwnProperty(t)){var e=this.mapName(t);if(this.publicToInternal.hasOwnProperty(e)){var n=this.publicToNextId[e];this.publicToNextId[e]=n+1,e=e+"_"+n}else this.publicToNextId[e]=1;this.internalToPublic[t]=e,this.publicToInternal[e]=t}},e}(rs),Cs=new(function(){function t(){}return t.prototype.visitTag=function(t){var e=this,n=this._serializeAttributes(t.attrs);if(0==t.children.length)return"<"+t.name+n+"/>";var r=t.children.map(function(t){return t.visit(e)});return"<"+t.name+n+">"+r.join("")+"</"+t.name+">"},t.prototype.visitText=function(t){return t.value},t.prototype.visitDeclaration=function(t){return"<?xml"+this._serializeAttributes(t.attrs)+" ?>"},t.prototype._serializeAttributes=function(t){var e=Object.keys(t).map(function(e){return e+'="'+t[e]+'"'}).join(" ");return e.length>0?" "+e:""},t.prototype.visitDoctype=function(t){return"<!DOCTYPE "+t.rootTag+" [\n"+t.dtd+"\n]>"},t}()),Es=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(n){e.attrs[n]=Ot(t[n])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),Ts=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),js=function(){function t(t,e,n){void 0===e&&(e={}),void 0===n&&(n=[]);var r=this;this.name=t,this.children=n,this.attrs={},Object.keys(e).forEach(function(t){r.attrs[t]=Ot(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),Ps=function(){function t(t){this.value=Ot(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),As=function(t){function e(e){return void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))||this}return Object(wn.b)(e,t),e}(Ps),Is=[[/&/g,"&"],[/"/g,"""],[/'/g,"'"],[/</g,"<"],[/>/g,">"]],ks=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(wn.b)(e,t),e.prototype.write=function(t,e){var n=new Rs,r=[];t.forEach(function(t){var e=[];t.sources.forEach(function(t){var n=new js("context-group",{purpose:"location"});n.children.push(new As(10),new js("context",{"context-type":"sourcefile"},[new Ps(t.filePath)]),new As(10),new js("context",{"context-type":"linenumber"},[new Ps(""+t.startLine)]),new As(8)),e.push(new As(8),n)});var i=new js("trans-unit",{id:t.id,datatype:"html"});(o=i.children).push.apply(o,[new As(8),new js("source",{},n.serialize(t.nodes))].concat(e)),t.description&&i.children.push(new As(8),new js("note",{priority:"1",from:"description"},[new Ps(t.description)])),t.meaning&&i.children.push(new As(8),new js("note",{priority:"1",from:"meaning"},[new Ps(t.meaning)])),i.children.push(new As(6)),r.push(new As(6),i);var o});var i=new js("body",{},r.concat([new As(4)])),o=new js("file",{"source-language":e||"en",datatype:"plaintext",original:"ng2.template"},[new As(4),i,new As(2)]),s=new js("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new As(2),o,new As]);return wt([new Es({version:"1.0",encoding:"UTF-8"}),new As,s,new As])},e.prototype.load=function(t,e){var n=(new Ms).parse(t,e),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new Ds;if(Object.keys(i).forEach(function(t){var n=a.convert(i[t],e),r=n.i18nNodes,c=n.errors;o.push.apply(o,c),s[t]=r}),o.length)throw new Error("xliff parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},e.prototype.digest=function(t){return ot(t)},e}(Os),Rs=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Ps(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Ps("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Ps(e+" {")].concat(t.cases[e].visit(n),[new Ps("} ")]))}),r.push(new Ps("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=function(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}(t.tag);if(t.isVoid)return[new js("x",{id:t.startName,ctype:n,"equiv-text":"<"+t.tag+"/>"})];var r=new js("x",{id:t.startName,ctype:n,"equiv-text":"<"+t.tag+">"}),i=new js("x",{id:t.closeName,ctype:n,"equiv-text":"</"+t.tag+">"});return[r].concat(this.serialize(t.children),[i])},t.prototype.visitPlaceholder=function(t,e){return[new js("x",{id:t.name,"equiv-text":"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(t,e){var n="{"+t.value.expression+", "+t.value.type+", "+Object.keys(t.value.cases).map(function(t){return t+" {...}"}).join(" ")+"}";return[new js("x",{id:t.name,"equiv-text":n})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Ms=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new ws).parse(t,e,!1);return this._errors=n.errors,P(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"trans-unit":this._unitMlString=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(P(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,'<trans-unit> misses the "id" attribute');break;case"source":break;case"target":var i=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content.slice(i,o);this._unitMlString=s;break;case"file":var a=t.attrs.find(function(t){return"target-language"===t.name});a&&(this._locale=a.value),P(this,t.children,null);break;default:P(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new hs(t.sourceSpan,e))},t}(),Ds=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new ws).parse(t,e,!0);this._errors=n.errors;return{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:P(this,n.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new $o(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){if("x"===t.name){var n=t.attrs.find(function(t){return"id"===t.name});if(n)return new ts("",n.value,t.sourceSpan);this._addError(t,'<x> misses the "id" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitExpansion=function(t,e){var n={};return P(this,t.cases).forEach(function(e){n[e.value]=new Qo(e.nodes,t.sourceSpan)}),new Zo(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:P(this,t.expression)}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new hs(t.sourceSpan,e))},t}(),Ns=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(wn.b)(e,t),e.prototype.write=function(t,e){var n=new Ls,r=[];t.forEach(function(t){var e=new js("unit",{id:t.id}),i=new js("notes");(t.description||t.meaning)&&(t.description&&i.children.push(new As(8),new js("note",{category:"description"},[new Ps(t.description)])),t.meaning&&i.children.push(new As(8),new js("note",{category:"meaning"},[new Ps(t.meaning)]))),t.sources.forEach(function(t){i.children.push(new As(8),new js("note",{category:"location"},[new Ps(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),i.children.push(new As(6)),e.children.push(new As(6),i);var o=new js("segment");o.children.push(new As(8),new js("source",{},n.serialize(t.nodes)),new As(6)),e.children.push(new As(6),o,new As(4)),r.push(new As(4),e)});var i=new js("file",{original:"ng.template",id:"ngi18n"},r.concat([new As(2)])),o=new js("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:e||"en"},[new As(2),i,new As]);return wt([new Es({version:"1.0",encoding:"UTF-8"}),new As,o,new As])},e.prototype.load=function(t,e){var n=(new Fs).parse(t,e),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new Vs;if(Object.keys(i).forEach(function(t){var n=a.convert(i[t],e),r=n.i18nNodes,c=n.errors;o.push.apply(o,c),s[t]=r}),o.length)throw new Error("xliff2 parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},e.prototype.digest=function(t){return st(t)},e}(Os),Ls=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Ps(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Ps("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Ps(e+" {")].concat(t.cases[e].visit(n),[new Ps("} ")]))}),r.push(new Ps("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=function(t){switch(t.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"other"}}(t.tag);if(t.isVoid){return[new js("ph",{id:(this._nextPlaceholderId++).toString(),equiv:t.startName,type:r,disp:"<"+t.tag+"/>"})]}var i=new js("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:t.startName,equivEnd:t.closeName,type:r,dispStart:"<"+t.tag+">",dispEnd:"</"+t.tag+">"}),o=[].concat.apply([],t.children.map(function(t){return t.visit(n)}));return o.length?o.forEach(function(t){return i.children.push(t)}):i.children.push(new Ps("")),[i]},t.prototype.visitPlaceholder=function(t,e){var n=(this._nextPlaceholderId++).toString();return[new js("ph",{id:n,equiv:t.name,disp:"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(t,e){var n=Object.keys(t.value.cases).map(function(t){return t+" {...}"}).join(" "),r=(this._nextPlaceholderId++).toString();return[new js("ph",{id:r,equiv:t.name,disp:"{"+t.value.expression+", "+t.value.type+", "+n+"}"})]},t.prototype.serialize=function(t){var e=this;return this._nextPlaceholderId=0,[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Fs=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new ws).parse(t,e,!1);return this._errors=n.errors,P(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"unit":this._unitMlString=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(P(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,'<unit> misses the "id" attribute');break;case"source":break;case"target":var i=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content.slice(i,o);this._unitMlString=s;break;case"xliff":var a=t.attrs.find(function(t){return"trgLang"===t.name});a&&(this._locale=a.value);var c=t.attrs.find(function(t){return"version"===t.name});if(c){var u=c.value;"2.0"!==u?this._addError(t,"The XLIFF file version "+u+" is not compatible with XLIFF 2.0 serializer"):P(this,t.children,null)}break;default:P(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new hs(t.sourceSpan,e))},t}(),Vs=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new ws).parse(t,e,!0);this._errors=n.errors;return{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],P(this,n.rootNodes)),errors:this._errors}},t.prototype.visitText=function(t,e){return new $o(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){var n=this;switch(t.name){case"ph":var r=t.attrs.find(function(t){return"equiv"===t.name});if(r)return[new ts("",r.value,t.sourceSpan)];this._addError(t,'<ph> misses the "equiv" attribute');break;case"pc":var i=t.attrs.find(function(t){return"equivStart"===t.name}),o=t.attrs.find(function(t){return"equivEnd"===t.name});if(i){if(o){var s=i.value,a=o.value,c=[];return c.concat.apply(c,[new ts("",s,t.sourceSpan)].concat(t.children.map(function(t){return t.visit(n,null)}),[new ts("",a,t.sourceSpan)]))}this._addError(t,'<ph> misses the "equivEnd" attribute')}else this._addError(t,'<ph> misses the "equivStart" attribute');break;default:this._addError(t,"Unexpected tag")}return null},t.prototype.visitExpansion=function(t,e){var n={};return P(this,t.cases).forEach(function(e){n[e.value]=new Qo(e.nodes,t.sourceSpan)}),new Zo(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:[].concat.apply([],P(this,t.expression))}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new hs(t.sourceSpan,e))},t}(),Bs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(wn.b)(e,t),e.prototype.write=function(t,e){var n=new zs,r=new Hs,i=new js("messagebundle");return t.forEach(function(t){var e={id:t.id};t.description&&(e.desc=t.description),t.meaning&&(e.meaning=t.meaning);var n=[];t.sources.forEach(function(t){n.push(new js("source",{},[new Ps(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),i.children.push(new As(2),new js("msg",e,n.concat(r.serialize(t.nodes))))}),i.children.push(new As),wt([new Es({version:"1.0",encoding:"UTF-8"}),new As,new Ts("messagebundle",'<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) "default">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>'),new As,n.addDefaultExamples(i),new As])},e.prototype.load=function(t,e){throw new Error("Unsupported")},e.prototype.digest=function(t){return St(t)},e.prototype.createNameMapper=function(t){return new Ss(t,Ct)},e}(Os),Hs=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Ps(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Ps("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Ps(e+" {")].concat(t.cases[e].visit(n),[new Ps("} ")]))}),r.push(new Ps("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=new js("ex",{},[new Ps("<"+t.tag+">")]),r=new js("ph",{name:t.startName},[n]);if(t.isVoid)return[r];var i=new js("ex",{},[new Ps("</"+t.tag+">")]),o=new js("ph",{name:t.closeName},[i]);return[r].concat(this.serialize(t.children),[o])},t.prototype.visitPlaceholder=function(t,e){var n=new js("ex",{},[new Ps("{{"+t.value+"}}")]);return[new js("ph",{name:t.name},[n])]},t.prototype.visitIcuPlaceholder=function(t,e){var n=new js("ex",{},[new Ps("{"+t.value.expression+", "+t.value.type+", "+Object.keys(t.value.cases).map(function(t){return t+" {...}"}).join(" ")+"}")]);return[new js("ph",{name:t.name},[n])]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),zs=function(){function t(){}return t.prototype.addDefaultExamples=function(t){return t.visit(this),t},t.prototype.visitTag=function(t){var e=this;if("ph"===t.name){if(!t.children||0==t.children.length){var n=new Ps(t.attrs.name||"...");t.children=[new js("ex",{},[n])]}}else t.children&&t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitText=function(t){},t.prototype.visitDeclaration=function(t){},t.prototype.visitDoctype=function(t){},t}(),Us=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(wn.b)(e,t),e.prototype.write=function(t,e){throw new Error("Unsupported")},e.prototype.load=function(t,e){var n=(new Ws).parse(t,e),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new Gs;if(Object.keys(i).forEach(function(t){!function(t,e,n){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var r=n();return Object.defineProperty(t,e,{enumerable:!0,value:r}),r},set:function(t){throw new Error("Could not overwrite an XTB translation")}})}(s,t,function(){var n=a.convert(i[t],e),r=n.i18nNodes,o=n.errors;if(o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return r})}),o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},e.prototype.digest=function(t){return St(t)},e.prototype.createNameMapper=function(t){return new Ss(t,Ct)},e}(Os),Ws=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._msgIdToHtml={};var n=(new ws).parse(t,e,!1);return this._errors=n.errors,P(this,n.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"translationbundle":this._bundleDepth++,this._bundleDepth>1&&this._addError(t,"<translationbundle> elements can not be nested");var n=t.attrs.find(function(t){return"lang"===t.name});n&&(this._locale=n.value),P(this,t.children,null),this._bundleDepth--;break;case"translation":var r=t.attrs.find(function(t){return"id"===t.name});if(r){var i=r.value;if(this._msgIdToHtml.hasOwnProperty(i))this._addError(t,"Duplicated translations for msg "+i);else{var o=t.startSourceSpan.end.offset,s=t.endSourceSpan.start.offset,a=t.startSourceSpan.start.file.content.slice(o,s);this._msgIdToHtml[i]=a}}else this._addError(t,'<translation> misses the "id" attribute');break;default:this._addError(t,"Unexpected tag")}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new hs(t.sourceSpan,e))},t}(),Gs=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new ws).parse(t,e,!0);this._errors=n.errors;return{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:P(this,n.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new $o(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){var n={};return P(this,t.cases).forEach(function(e){n[e.value]=new Qo(e.nodes,t.sourceSpan)}),new Zo(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:P(this,t.expression)}},t.prototype.visitElement=function(t,e){if("ph"===t.name){var n=t.attrs.find(function(t){return"name"===t.name});if(n)return new ts("",n.value,t.sourceSpan);this._addError(t,'<ph> misses the "name" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new hs(t.sourceSpan,e))},t}(),qs=function(t){function e(){return t.call(this,bt)||this}return Object(wn.b)(e,t),e.prototype.parse=function(e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=Br),t.prototype.parse.call(this,e,n,r,i)},e}(Uo),Ys=function(){function t(t,e,n,r,i,o){void 0===t&&(t={}),void 0===i&&(i=Xn.Warning),this._i18nNodesByMsgId=t,this.digest=n,this.mapperFactory=r,this._i18nToHtml=new Ks(t,e,n,r,i,o)}return t.load=function(e,n,r,i,o){var s=r.load(e,n),a=s.locale;return new t(s.i18nNodesByMsgId,a,function(t){return r.digest(t)},function(t){return r.createNameMapper(t)},i,o)},t.prototype.get=function(t){var e=this._i18nToHtml.convert(t);if(e.errors.length)throw new Error(e.errors.join("\n"));return e.nodes},t.prototype.has=function(t){return this.digest(t)in this._i18nNodesByMsgId},t}(),Ks=function(){function t(t,e,n,r,i,o){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._locale=e,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=i,this._console=o,this._contextStack=[],this._errors=[]}return t.prototype.convert=function(t){this._contextStack.length=0,this._errors.length=0;var e=this._convertToText(t),n=t.nodes[0].sourceSpan.start.file.url,r=(new qs).parse(e,n,!0);return{nodes:r.rootNodes,errors:this._errors.concat(r.errors)}},t.prototype.visitText=function(t,e){return t.value},t.prototype.visitContainer=function(t,e){var n=this;return t.children.map(function(t){return t.visit(n)}).join("")},t.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+(this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression]:t.expression)+", "+t.type+", "+r.join(" ")+"}"},t.prototype.visitPlaceholder=function(t,e){var n=this._mapper(t.name);return this._srcMsg.placeholders.hasOwnProperty(n)?this._srcMsg.placeholders[n]:this._srcMsg.placeholderToMessage.hasOwnProperty(n)?this._convertToText(this._srcMsg.placeholderToMessage[n]):(this._addError(t,'Unknown placeholder "'+t.name+'"'),"")},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=""+t.tag,i=Object.keys(t.attrs).map(function(e){return e+'="'+t.attrs[e]+'"'}).join(" ");if(t.isVoid)return"<"+r+" "+i+"/>";return"<"+r+" "+i+">"+t.children.map(function(t){return t.visit(n)}).join("")+"</"+r+">"},t.prototype.visitIcuPlaceholder=function(t,e){return this._convertToText(this._srcMsg.placeholderToMessage[t.name])},t.prototype._convertToText=function(t){var e,n=this,r=this._digest(t),i=this._mapperFactory?this._mapperFactory(t):null;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=t,this._i18nNodesByMsgId.hasOwnProperty(r))e=this._i18nNodesByMsgId[r],this._mapper=function(t){return i?i.toInternalName(t):t};else{if(this._missingTranslationStrategy===Xn.Error){var o=this._locale?' for locale "'+this._locale+'"':"";this._addError(t.nodes[0],'Missing translation for message "'+r+'"'+o)}else if(this._console&&this._missingTranslationStrategy===Xn.Warning){o=this._locale?' for locale "'+this._locale+'"':"";this._console.warn('Missing translation for message "'+r+'"'+o)}e=t.nodes,this._mapper=function(t){return t}}var s=e.map(function(t){return t.visit(n)}).join(""),a=this._contextStack.pop();return this._srcMsg=a.msg,this._mapper=a.mapper,s},t.prototype._addError=function(t,e){this._errors.push(new hs(t.sourceSpan,e))},t}(),Xs=function(){function t(t,e,n,r,i){if(void 0===r&&(r=Xn.Warning),this._htmlParser=t,e){var o=function(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new Bs;case"xtb":return new Us;case"xliff2":case"xlf2":return new Ns;case"xliff":case"xlf":default:return new ks}}(n);this._translationBundle=Ys.load(e,"i18n",o,r,i)}else this._translationBundle=new Ys({},null,ot,void 0,r,i)}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=Br);var i=this._htmlParser.parse(t,e,n,r);return i.errors.length?new zo(i.rootNodes,i.errors):function(t,e,n,r,i){return new _s(r,i).merge(t,e,n)}(i.rootNodes,this._translationBundle,r,[],{})},t}(),$s=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,Qs=/\.ngfactory\.|\.ngsummary\./,Zs=/\.ngsummary\./,Js=/NgSummary$/,ta=/\u0275\d+/,ea="@angular/core",na=function(){function t(){}return t.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleName:ea},t.ElementRef={name:"ElementRef",moduleName:ea},t.NgModuleRef={name:"NgModuleRef",moduleName:ea},t.ViewContainerRef={name:"ViewContainerRef",moduleName:ea},t.ChangeDetectorRef={name:"ChangeDetectorRef",moduleName:ea},t.QueryList={name:"QueryList",moduleName:ea},t.TemplateRef={name:"TemplateRef",moduleName:ea},t.CodegenComponentFactoryResolver={name:"\u0275CodegenComponentFactoryResolver",moduleName:ea},t.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleName:ea},t.ComponentFactory={name:"ComponentFactory",moduleName:ea},t.ComponentRef={name:"ComponentRef",moduleName:ea},t.NgModuleFactory={name:"NgModuleFactory",moduleName:ea},t.createModuleFactory={name:"\u0275cmf",moduleName:ea},t.moduleDef={name:"\u0275mod",moduleName:ea},t.moduleProviderDef={name:"\u0275mpd",moduleName:ea},t.RegisterModuleFactoryFn={name:"\u0275registerModuleFactory",moduleName:ea},t.Injector={name:"Injector",moduleName:ea},t.ViewEncapsulation={name:"ViewEncapsulation",moduleName:ea},t.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:ea},t.SecurityContext={name:"SecurityContext",moduleName:ea},t.LOCALE_ID={name:"LOCALE_ID",moduleName:ea},t.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleName:ea},t.inlineInterpolate={name:"\u0275inlineInterpolate",moduleName:ea},t.interpolate={name:"\u0275interpolate",moduleName:ea},t.EMPTY_ARRAY={name:"\u0275EMPTY_ARRAY",moduleName:ea},t.EMPTY_MAP={name:"\u0275EMPTY_MAP",moduleName:ea},t.Renderer={name:"Renderer",moduleName:ea},t.viewDef={name:"\u0275vid",moduleName:ea},t.elementDef={name:"\u0275eld",moduleName:ea},t.anchorDef={name:"\u0275and",moduleName:ea},t.textDef={name:"\u0275ted",moduleName:ea},t.directiveDef={name:"\u0275did",moduleName:ea},t.providerDef={name:"\u0275prd",moduleName:ea},t.queryDef={name:"\u0275qud",moduleName:ea},t.pureArrayDef={name:"\u0275pad",moduleName:ea},t.pureObjectDef={name:"\u0275pod",moduleName:ea},t.purePipeDef={name:"\u0275ppd",moduleName:ea},t.pipeDef={name:"\u0275pid",moduleName:ea},t.nodeValue={name:"\u0275nov",moduleName:ea},t.ngContentDef={name:"\u0275ncd",moduleName:ea},t.unwrapValue={name:"\u0275unv",moduleName:ea},t.createRendererType2={name:"\u0275crt",moduleName:ea},t.RendererType2={name:"RendererType2",moduleName:ea},t.ViewDefinition={name:"\u0275ViewDefinition",moduleName:ea},t.createComponentFactory={name:"\u0275ccf",moduleName:ea},t}(),ra={OnInit:0,OnDestroy:1,DoCheck:2,OnChanges:3,AfterContentInit:4,AfterContentChecked:5,AfterViewInit:6,AfterViewChecked:7};ra[ra.OnInit]="OnInit",ra[ra.OnDestroy]="OnDestroy",ra[ra.DoCheck]="DoCheck",ra[ra.OnChanges]="OnChanges",ra[ra.AfterContentInit]="AfterContentInit",ra[ra.AfterContentChecked]="AfterContentChecked",ra[ra.AfterViewInit]="AfterViewInit",ra[ra.AfterViewChecked]="AfterViewChecked";var ia=[ra.OnInit,ra.OnDestroy,ra.DoCheck,ra.OnChanges,ra.AfterContentInit,ra.AfterContentChecked,ra.AfterViewInit,ra.AfterViewChecked],oa=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),sa=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var n,r=[],i=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},o=new t,s=o,a=!1;for(oa.lastIndex=0;n=oa.exec(e);){if(n[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new t,o.notSelectors.push(s)}if(n[2]&&s.setElement(n[2]),n[3]&&s.addClassName(n[3]),n[4]&&s.addAttribute(n[4],n[6]),n[7]&&(a=!1,s=o),n[8]){if(a)throw new Error("Multiple selectors in :not are not supported");i(r,o),o=s=new t}}return i(r,o),r},t.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},t.prototype.hasElementSelector=function(){return!!this.element},t.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},t.prototype.getMatchingElementTemplate=function(){for(var t=this.element||"div",e=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",r=0;r<this.attrs.length;r+=2){n+=" "+this.attrs[r]+(""!==this.attrs[r+1]?'="'+this.attrs[r+1]+'"':"")}return bt(t).isVoid?"<"+t+e+n+"/>":"<"+t+e+n+"></"+t+">"},t.prototype.addAttribute=function(t,e){void 0===e&&(e=""),this.attrs.push(t,e&&e.toLowerCase()||"")},t.prototype.addClassName=function(t){this.classNames.push(t.toLowerCase())},t.prototype.toString=function(){var t=this.element||"";if(this.classNames&&this.classNames.forEach(function(e){return t+="."+e}),this.attrs)for(var e=0;e<this.attrs.length;e+=2){var n=this.attrs[e],r=this.attrs[e+1];t+="["+n+(r?"="+r:"")+"]"}return this.notSelectors.forEach(function(e){return t+=":not("+e+")"}),t},t}(),aa=function(){function t(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return t.createNotMatcher=function(e){var n=new t;return n.addSelectables(e,null),n},t.prototype.addSelectables=function(t,e){var n=null;t.length>1&&(n=new ca(t),this._listContexts.push(n));for(var r=0;r<t.length;r++)this._addSelectable(t[r],e,n)},t.prototype._addSelectable=function(t,e,n){var r=this,i=t.element,o=t.classNames,s=t.attrs,a=new ua(t,e,n);if(i){(u=0===s.length&&0===o.length)?this._addTerminal(r._elementMap,i,a):r=this._addPartial(r._elementPartialMap,i)}if(o)for(var c=0;c<o.length;c++){var u=0===s.length&&c===o.length-1,l=o[c];u?this._addTerminal(r._classMap,l,a):r=this._addPartial(r._classPartialMap,l)}if(s)for(c=0;c<s.length;c+=2){u=c===s.length-2;var p=s[c],h=s[c+1];if(u){var d=r._attrValueMap,f=d.get(p);f||(f=new Map,d.set(p,f)),this._addTerminal(f,h,a)}else{var y=r._attrValuePartialMap,g=y.get(p);g||(g=new Map,y.set(p,g)),r=this._addPartial(g,h)}}},t.prototype._addTerminal=function(t,e,n){var r=t.get(e);r||(r=[],t.set(e,r)),r.push(n)},t.prototype._addPartial=function(e,n){var r=e.get(n);return r||(r=new t,e.set(n,r)),r},t.prototype.match=function(t,e){for(var n=!1,r=t.element,i=t.classNames,o=t.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,r,t,e)||n,n=this._matchPartial(this._elementPartialMap,r,t,e)||n,i)for(s=0;s<i.length;s++){var a=i[s];n=this._matchTerminal(this._classMap,a,t,e)||n,n=this._matchPartial(this._classPartialMap,a,t,e)||n}if(o)for(s=0;s<o.length;s+=2){var c=o[s],u=o[s+1],l=this._attrValueMap.get(c);u&&(n=this._matchTerminal(l,"",t,e)||n),n=this._matchTerminal(l,u,t,e)||n;var p=this._attrValuePartialMap.get(c);u&&(n=this._matchPartial(p,"",t,e)||n),n=this._matchPartial(p,u,t,e)||n}return n},t.prototype._matchTerminal=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var i=t.get(e)||[],o=t.get("*");if(o&&(i=i.concat(o)),0===i.length)return!1;for(var s=!1,a=0;a<i.length;a++)s=i[a].finalize(n,r)||s;return s},t.prototype._matchPartial=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var i=t.get(e);return!!i&&i.match(n,r)},t}(),ca=function(){return function(t){this.selectors=t,this.alreadyMatched=!1}}(),ua=function(){function t(t,e,n){this.selector=t,this.cbContext=e,this.listContext=n,this.notSelectors=t.notSelectors}return t.prototype.finalize=function(t,e){var n=!0;if(this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)){n=!aa.createNotMatcher(this.notSelectors).match(t,null)}return!n||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),n},t}(),la="ngComponentType",pa=function(){function t(t,e,n,r,i,o,s,a,c,u,l,p){this._config=t,this._htmlParser=e,this._ngModuleResolver=n,this._directiveResolver=r,this._pipeResolver=i,this._summaryResolver=o,this._schemaRegistry=s,this._directiveNormalizer=a,this._console=c,this._staticSymbolCache=u,this._reflector=l,this._errorCollector=p,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map}return t.prototype.getReflector=function(){return this._reflector},t.prototype.clearCacheFor=function(t){var e=this._directiveCache.get(t);this._directiveCache.delete(t),this._nonNormalizedDirectiveCache.delete(t),this._summaryCache.delete(t),this._pipeCache.delete(t),this._ngModuleOfTypes.delete(t),this._ngModuleCache.clear(),e&&this._directiveNormalizer.clearCacheFor(e)},t.prototype.clearCache=function(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},t.prototype._createProxyClass=function(t,e){var n=null,r=function(){if(!n)throw new Error("Illegal state: Class "+e+" for type "+h(t)+" is not compiled yet!");return n.apply(this,arguments)};return r.setDelegate=function(t){n=t,r.prototype=t.prototype},r.overriddenName=e,r},t.prototype.getGeneratedClass=function(t,e){return t instanceof _r?this._staticSymbolCache.get(Et(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,_(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,function(t){return"HostView_"+m({reference:t})}(t))},t.prototype.getHostComponentType=function(t){var e=m({reference:t})+"_Host";if(t instanceof _r)return this._staticSymbolCache.get(t.filePath,e);var n=function(){};return n.overriddenName=e,n},t.prototype.getRendererType=function(t){return t instanceof _r?this._staticSymbolCache.get(Et(t.filePath),x(t)):{}},t.prototype.getComponentFactory=function(t,e,n,r){if(e instanceof _r)return this._staticSymbolCache.get(Et(e.filePath),w(e));var i=this.getHostComponentViewClass(e);return this._reflector.resolveExternalReference(na.createComponentFactory)(t,e,i,n,r,[])},t.prototype.initComponentFactory=function(t,e){t instanceof _r||(n=t.ngContentSelectors).push.apply(n,e);var n},t.prototype._loadSummary=function(t,e){var n=this._summaryCache.get(t);if(!n){var r=this._summaryResolver.resolveSummary(t);n=r?r.type:null,this._summaryCache.set(t,n||null)}return n&&n.summaryKind===e?n:null},t.prototype.getHostComponentMetadata=function(t,e){var n=this.getHostComponentType(t.type.reference);e||(e=this.getHostComponentViewClass(n));var r=sa.parse(t.selector)[0].getMatchingElementTemplate(),i=this._htmlParser.parse(r,"");return Tr.create({isHost:!0,type:{reference:n,diDeps:[],lifecycleHooks:[]},template:new Er({encapsulation:In.None,template:r,templateUrl:"",htmlAst:i,styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null,preserveWhitespaces:!1}),exportAs:null,changeDetection:kn.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[],componentViewType:e,rendererType:{id:"__Host__",encapsulation:In.None,styles:[],data:{}},entryComponents:[],componentFactory:null})},t.prototype.loadDirectiveMetadata=function(t,e,n){var r=this;if(this._directiveCache.has(e))return null;e=d(e);var i=this.getNonNormalizedDirectiveMetadata(e),o=i.annotation,s=i.metadata,a=function(t){var n=new Tr({isHost:!1,type:s.type,isComponent:s.isComponent,selector:s.selector,exportAs:s.exportAs,changeDetection:s.changeDetection,inputs:s.inputs,outputs:s.outputs,hostListeners:s.hostListeners,hostProperties:s.hostProperties,hostAttributes:s.hostAttributes,providers:s.providers,viewProviders:s.viewProviders,queries:s.queries,viewQueries:s.viewQueries,entryComponents:s.entryComponents,componentViewType:s.componentViewType,rendererType:s.rendererType,componentFactory:s.componentFactory,template:t});return t&&r.initComponentFactory(s.componentFactory,t.ngContentSelectors),r._directiveCache.set(e,n),r._summaryCache.set(e,n.toSummary()),null};if(s.isComponent){var c=s.template,u=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:e,moduleUrl:this._reflector.componentModuleUrl(e,o),encapsulation:c.encapsulation,template:c.template,templateUrl:c.templateUrl,styles:c.styles,styleUrls:c.styleUrls,animations:c.animations,interpolation:c.interpolation,preserveWhitespaces:c.preserveWhitespaces});return f(u)&&n?(this._reportError(function(t){var e=Error("Can't compile synchronously as "+h(t)+" is still being loaded!");return e[la]=t,e}(e),e),null):Jn(u,a)}return a(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var e=this;if(!(t=d(t)))return null;var n=this._nonNormalizedDirectiveCache.get(t);if(n)return n;var r=this._directiveResolver.resolve(t,!1);if(!r)return null;var i=void 0;if(Rn.isTypeOf(r)){A("styles",(h=r).styles),A("styleUrls",h.styleUrls),I("interpolation",h.interpolation);var o=h.animations;i=new Er({encapsulation:c(h.encapsulation),template:c(h.template),templateUrl:c(h.templateUrl),htmlAst:null,styles:h.styles||[],styleUrls:h.styleUrls||[],animations:o||[],interpolation:c(h.interpolation),isInline:!!h.template,externalStylesheets:[],ngContentSelectors:[],preserveWhitespaces:c(r.preserveWhitespaces)})}var s=null,a=[],l=[],p=r.selector;if(Rn.isTypeOf(r)){var h;s=(h=r).changeDetection,h.viewProviders&&(a=this._getProvidersMetadata(h.viewProviders,l,'viewProviders for "'+Ft(t)+'"',[],t)),h.entryComponents&&(l=Nt(h.entryComponents).map(function(t){return e._getEntryComponentMetadata(t)}).concat(l)),p||(p=this._schemaRegistry.getDefaultComponentElementName())}else p||(this._reportError(u("Directive "+Ft(t)+" has no selector, please add it!"),t),p="error");var f=[];null!=r.providers&&(f=this._getProvidersMetadata(r.providers,l,'providers for "'+Ft(t)+'"',[],t));var y=[],g=[];null!=r.queries&&(y=this._getQueriesMetadata(r.queries,!1,t),g=this._getQueriesMetadata(r.queries,!0,t));var v=Tr.create({isHost:!1,selector:p,exportAs:c(r.exportAs),isComponent:!!i,type:this._getTypeMetadata(t),template:i,changeDetection:s,inputs:r.inputs||[],outputs:r.outputs||[],host:r.host||{},providers:f||[],viewProviders:a||[],queries:y||[],viewQueries:g||[],entryComponents:l,componentViewType:i?this.getComponentViewClass(t):null,rendererType:i?this.getRendererType(t):null,componentFactory:null});return i&&(v.componentFactory=this.getComponentFactory(p,t,v.inputs,v.outputs)),n={metadata:v,annotation:r},this._nonNormalizedDirectiveCache.set(t,n),n},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(u("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+Ft(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Sr.Directive);return e||this._reportError(u("Illegal state: Could not load the summary for directive "+Ft(t)+"."),t),e},t.prototype.isDirective=function(t){return!!this._loadSummary(t,Sr.Directive)||this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return!!this._loadSummary(t,Sr.Pipe)||this._pipeResolver.isPipe(t)},t.prototype.isNgModule=function(t){return!!this._loadSummary(t,Sr.NgModule)||this._ngModuleResolver.isNgModule(t)},t.prototype.getNgModuleSummary=function(t){var e=this._loadSummary(t,Sr.NgModule);if(!e){var n=this.getNgModuleMetadata(t,!1);(e=n?n.toSummary():null)&&this._summaryCache.set(t,e)}return e},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=this.getNgModuleMetadata(t,n),o=[];return i&&(i.declaredDirectives.forEach(function(n){var i=r.loadDirectiveMetadata(t,n.reference,e);i&&o.push(i)}),i.declaredPipes.forEach(function(t){return r._loadPipeMetadata(t.reference)})),Promise.all(o)},t.prototype.getNgModuleMetadata=function(t,e){var n=this;void 0===e&&(e=!0),t=d(t);var r=this._ngModuleCache.get(t);if(r)return r;var i=this._ngModuleResolver.resolve(t,e);if(!i)return null;var o=[],s=[],a=[],c=[],l=[],p=[],h=[],f=[],y=[];i.imports&&Nt(i.imports).forEach(function(e){var r=void 0;if(Lt(e))r=e;else if(e&&e.ngModule){var i=e;r=i.ngModule,i.providers&&p.push.apply(p,n._getProvidersMetadata(i.providers,h,"provider for the NgModule '"+Ft(r)+"'",[],e))}if(r){if(!n._checkSelfImport(t,r)){var o=n.getNgModuleSummary(r);o?c.push(o):n._reportError(u("Unexpected "+n._getTypeDescriptor(e)+" '"+Ft(e)+"' imported by the module '"+Ft(t)+"'. Please add a @NgModule annotation."),t)}}else n._reportError(u("Unexpected value '"+Ft(e)+"' imported by the module '"+Ft(t)+"'"),t)}),i.exports&&Nt(i.exports).forEach(function(e){if(Lt(e)){var r=n.getNgModuleSummary(e);r?l.push(r):s.push(n._getIdentifierMetadata(e))}else n._reportError(u("Unexpected value '"+Ft(e)+"' exported by the module '"+Ft(t)+"'"),t)});var g=this._getTransitiveNgModuleMetadata(c,l);i.declarations&&Nt(i.declarations).forEach(function(e){if(Lt(e)){var r=n._getIdentifierMetadata(e);if(n.isDirective(e))g.addDirective(r),o.push(r),n._addTypeToModule(e,t);else{if(!n.isPipe(e))return void n._reportError(u("Unexpected "+n._getTypeDescriptor(e)+" '"+Ft(e)+"' declared by the module '"+Ft(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);g.addPipe(r),g.pipes.push(r),a.push(r),n._addTypeToModule(e,t)}}else n._reportError(u("Unexpected value '"+Ft(e)+"' declared by the module '"+Ft(t)+"'"),t)});var v=[],m=[];return s.forEach(function(e){if(g.directivesSet.has(e.reference))v.push(e),g.addExportedDirective(e);else{if(!g.pipesSet.has(e.reference))return void n._reportError(u("Can't export "+n._getTypeDescriptor(e.reference)+" "+Ft(e.reference)+" from "+Ft(t)+" as it was neither declared nor imported!"),t);m.push(e),g.addExportedPipe(e)}}),i.providers&&p.push.apply(p,this._getProvidersMetadata(i.providers,h,"provider for the NgModule '"+Ft(t)+"'",[],t)),i.entryComponents&&h.push.apply(h,Nt(i.entryComponents).map(function(t){return n._getEntryComponentMetadata(t)})),i.bootstrap&&Nt(i.bootstrap).forEach(function(e){Lt(e)?f.push(n._getIdentifierMetadata(e)):n._reportError(u("Unexpected value '"+Ft(e)+"' used in the bootstrap property of module '"+Ft(t)+"'"),t)}),h.push.apply(h,f.map(function(t){return n._getEntryComponentMetadata(t.reference)})),i.schemas&&y.push.apply(y,Nt(i.schemas)),r=new Pr({type:this._getTypeMetadata(t),providers:p,entryComponents:h,bootstrapComponents:f,schemas:y,declaredDirectives:o,exportedDirectives:v,declaredPipes:a,exportedPipes:m,importedModules:c,exportedModules:l,transitiveModule:g,id:i.id||null}),h.forEach(function(t){return g.addEntryComponent(t)}),p.forEach(function(t){return g.addProvider(t,r.type)}),g.addModule(r.type),this._ngModuleCache.set(t,r),r},t.prototype._checkSelfImport=function(t,e){return t===e&&(this._reportError(u("'"+Ft(t)+"' module can't import itself"),t),!0)},t.prototype._getTypeDescriptor=function(t){if(Lt(t)){if(this.isDirective(t))return"directive";if(this.isPipe(t))return"pipe";if(this.isNgModule(t))return"module"}return t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var n=this._ngModuleOfTypes.get(t);n&&n!==e?this._reportError(u("Type "+Ft(t)+" is part of the declarations of 2 modules: "+Ft(n)+" and "+Ft(e)+"! Please consider moving "+Ft(t)+" to a higher module that imports "+Ft(n)+" and "+Ft(e)+". You can also create a new NgModule that exports and includes "+Ft(t)+" then import that NgModule in "+Ft(n)+" and "+Ft(e)+"."),e):this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var n=new Ar,r=new Map;return t.concat(e).forEach(function(t){t.modules.forEach(function(t){return n.addModule(t)}),t.entryComponents.forEach(function(t){return n.addEntryComponent(t)});var e=new Set;t.providers.forEach(function(t){var i=S(t.provider.token),o=r.get(i);o||(o=new Set,r.set(i,o));var s=t.module.reference;!e.has(i)&&o.has(s)||(o.add(s),e.add(i),n.addProvider(t.provider,t.module))})}),e.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addExportedDirective(t)}),t.exportedPipes.forEach(function(t){return n.addExportedPipe(t)})}),t.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addDirective(t)}),t.exportedPipes.forEach(function(t){return n.addPipe(t)})}),n},t.prototype._getIdentifierMetadata=function(t){return t=d(t),{reference:t}},t.prototype.isInjectable=function(t){return this._reflector.annotations(t).some(function(t){return Un.isTypeOf(t)})},t.prototype.getInjectableSummary=function(t){return{summaryKind:Sr.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,Sr.Injectable);return n?n.type:this._getTypeMetadata(t,e)},t.prototype._getTypeMetadata=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=!0);var r=this._getIdentifierMetadata(t);return{reference:r.reference,diDeps:this._getDependenciesMetadata(r.reference,e,n),lifecycleHooks:function(t,e){return ia.filter(function(n){return Mt(t,n,e)})}(this._reflector,r.reference)}},t.prototype._getFactoryMetadata=function(t,e){return void 0===e&&(e=null),t=d(t),{reference:t,diDeps:this._getDependenciesMetadata(t,e)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(u("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+Ft(t)+"."),t),e||null},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,Sr.Pipe);return e||this._reportError(u("Illegal state: Could not load the summary for pipe "+Ft(t)+"."),t),e},t.prototype.getOrLoadPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||(e=this._loadPipeMetadata(t)),e},t.prototype._loadPipeMetadata=function(t){t=d(t);var e=this._pipeResolver.resolve(t),n=new jr({type:this._getTypeMetadata(t),name:e.name,pure:!!e.pure});return this._pipeCache.set(t,n),this._summaryCache.set(t,n.toSummary()),n},t.prototype._getDependenciesMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=!1,o=(e||this._reflector.parameters(t)||[]).map(function(t){var e=!1,n=!1,o=!1,s=!1,a=!1,c=null;return Array.isArray(t)?t.forEach(function(t){qn.isTypeOf(t)?n=!0:Wn.isTypeOf(t)?o=!0:Gn.isTypeOf(t)?s=!0:zn.isTypeOf(t)?a=!0:Cn.isTypeOf(t)?(e=!0,c=t.attributeName):On.isTypeOf(t)?c=t.token:Sn.isTypeOf(t)||t instanceof _r?c=t:Lt(t)&&null==c&&(c=t)}):c=t,null==c?(i=!0,null):{isAttribute:e,isHost:n,isSelf:o,isSkipSelf:s,isOptional:a,token:r._getTokenMetadata(c)}});if(i){var s=o.map(function(t){return t?Ft(t.token):"?"}).join(", "),a="Can't resolve all parameters for "+Ft(t)+": ("+s+").";n||this._config.strictInjectionParameters?this._reportError(u(a),t):this._console.warn("Warning: "+a+" This will become an error in Angular v6.x")}return o},t.prototype._getTokenMetadata=function(t){return"string"==typeof(t=d(t))?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,e,n,r,i){var o=this;return void 0===r&&(r=[]),t.forEach(function(s,a){if(Array.isArray(s))o._getProvidersMetadata(s,e,n,r);else{var c=void 0;if((s=d(s))&&"object"==typeof s&&s.hasOwnProperty("provide"))o._validateProvider(s),c=new Ir(s.provide,s);else{if(!Lt(s)){if(void 0===s)return void o._reportError(u("Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files."));var l=t.reduce(function(t,e,n){return n<a?t.push(""+Ft(e)):n==a?t.push("?"+Ft(e)+"?"):n==a+1&&t.push("..."),t},[]).join(", ");return void o._reportError(u("Invalid "+(n||"provider")+" - only instances of Provider and Type are allowed, got: ["+l+"]"),i)}c=new Ir(s,{useClass:s})}c.token===o._reflector.resolveExternalReference(na.ANALYZE_FOR_ENTRY_COMPONENTS)?e.push.apply(e,o._getEntryComponentsFromProvider(c,i)):r.push(o.getProviderMetadata(c))}}),r},t.prototype._validateProvider=function(t){t.hasOwnProperty("useClass")&&null==t.useClass&&this._reportError(u("Invalid provider for "+Ft(t.provide)+". useClass cannot be "+t.useClass+".\n Usually it happens when:\n 1. There's a circular dependency (might be caused by using index.ts (barrel) files).\n 2. Class was used before it was declared. Use forwardRef in this case."))},t.prototype._getEntryComponentsFromProvider=function(t,e){var n=this,r=[],i=[];return t.useFactory||t.useExisting||t.useClass?(this._reportError(u("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),e),[]):t.multi?(function(t,e){s(t,new ha,e)}(t.useValue,i),i.forEach(function(t){var e=n._getEntryComponentMetadata(t.reference,!1);e&&r.push(e)}),r):(this._reportError(u("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),e),[])},t.prototype._getEntryComponentMetadata=function(t,e){void 0===e&&(e=!0);var n=this.getNonNormalizedDirectiveMetadata(t);if(n&&n.metadata.isComponent)return{componentType:t,componentFactory:n.metadata.componentFactory};var r=this._loadSummary(t,Sr.Directive);if(r&&r.isComponent)return{componentType:t,componentFactory:r.componentFactory};if(e)throw u(t.name+" cannot be used as an entry component.");return null},t.prototype.getProviderMetadata=function(t){var e=void 0,n=null,r=null,i=this._getTokenMetadata(t.token);return t.useClass?(e=(n=this._getInjectableMetadata(t.useClass,t.dependencies)).diDeps,t.token===t.useClass&&(i={identifier:n})):t.useFactory&&(e=(r=this._getFactoryMetadata(t.useFactory,t.dependencies)).diDeps),{token:i,useClass:n,useValue:t.useValue,useFactory:r,useExisting:t.useExisting?this._getTokenMetadata(t.useExisting):void 0,deps:e,multi:t.multi}},t.prototype._getQueriesMetadata=function(t,e,n){var r=this,i=[];return Object.keys(t).forEach(function(o){var s=t[o];s.isViewQuery===e&&i.push(r._getQueryMetadata(s,o,n))}),i},t.prototype._queryVarBindings=function(t){return t.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(t,e,n){var r,i=this;return"string"==typeof t.selector?r=this._queryVarBindings(t.selector).map(function(t){return i._getTokenMetadata(t)}):t.selector?r=[this._getTokenMetadata(t.selector)]:(this._reportError(u("Can't construct a query for the property \""+e+'" of "'+Ft(n)+"\" since the query selector wasn't defined."),n),r=[]),{selectors:r,first:t.first,descendants:t.descendants,propertyName:e,read:t.read?this._getTokenMetadata(t.read):null}},t.prototype._reportError=function(t,e,n){if(!this._errorCollector)throw t;this._errorCollector(t,e),n&&this._errorCollector(t,n)},t}(),ha=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(wn.b)(e,t),e.prototype.visitOther=function(t,e){e.push({reference:t})},e}(Qn),da={Const:0};da[da.Const]="Const";var fa=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),ya={Dynamic:0,Bool:1,String:2,Int:3,Number:4,Function:5,Inferred:6};ya[ya.Dynamic]="Dynamic",ya[ya.Bool]="Bool",ya[ya.String]="String",ya[ya.Int]="Int",ya[ya.Number]="Number",ya[ya.Function]="Function",ya[ya.Inferred]="Inferred";var ga=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.name=e,r}return Object(wn.b)(e,t),e.prototype.visitType=function(t,e){return t.visitBuiltintType(this,e)},e}(fa),va=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.value=e,r}return Object(wn.b)(e,t),e.prototype.visitType=function(t,e){return t.visitExpressionType(this,e)},e}(fa),ma=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.of=e,r}return Object(wn.b)(e,t),e.prototype.visitType=function(t,e){return t.visitArrayType(this,e)},e}(fa),ba=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.valueType=e||null,r}return Object(wn.b)(e,t),e.prototype.visitType=function(t,e){return t.visitMapType(this,e)},e}(fa),_a=new ga(ya.Dynamic),xa=new ga(ya.Inferred),wa=new ga(ya.Bool),Oa=(new ga(ya.Int),new ga(ya.Number),new ga(ya.String),new ga(ya.Function),{Equals:0,NotEquals:1,Identical:2,NotIdentical:3,Minus:4,Plus:5,Divide:6,Multiply:7,Modulo:8,And:9,Or:10,Lower:11,LowerEquals:12,Bigger:13,BiggerEquals:14});Oa[Oa.Equals]="Equals",Oa[Oa.NotEquals]="NotEquals",Oa[Oa.Identical]="Identical",Oa[Oa.NotIdentical]="NotIdentical",Oa[Oa.Minus]="Minus",Oa[Oa.Plus]="Plus",Oa[Oa.Divide]="Divide",Oa[Oa.Multiply]="Multiply",Oa[Oa.Modulo]="Modulo",Oa[Oa.And]="And",Oa[Oa.Or]="Or",Oa[Oa.Lower]="Lower",Oa[Oa.LowerEquals]="LowerEquals",Oa[Oa.Bigger]="Bigger",Oa[Oa.BiggerEquals]="BiggerEquals";var Sa=function(){function t(t,e){this.type=t||null,this.sourceSpan=e||null}return t.prototype.prop=function(t,e){return new Wa(this,t,null,e)},t.prototype.key=function(t,e,n){return new Ga(this,t,e,n)},t.prototype.callMethod=function(t,e,n){return new Ia(this,t,e,null,n)},t.prototype.callFn=function(t,e){return new ka(this,t,null,e)},t.prototype.instantiate=function(t,e,n){return new Ra(this,t,e,n)},t.prototype.conditional=function(t,e,n){return void 0===e&&(e=null),new La(this,t,e,null,n)},t.prototype.equals=function(t,e){return new Ua(Oa.Equals,this,t,null,e)},t.prototype.notEquals=function(t,e){return new Ua(Oa.NotEquals,this,t,null,e)},t.prototype.identical=function(t,e){return new Ua(Oa.Identical,this,t,null,e)},t.prototype.notIdentical=function(t,e){return new Ua(Oa.NotIdentical,this,t,null,e)},t.prototype.minus=function(t,e){return new Ua(Oa.Minus,this,t,null,e)},t.prototype.plus=function(t,e){return new Ua(Oa.Plus,this,t,null,e)},t.prototype.divide=function(t,e){return new Ua(Oa.Divide,this,t,null,e)},t.prototype.multiply=function(t,e){return new Ua(Oa.Multiply,this,t,null,e)},t.prototype.modulo=function(t,e){return new Ua(Oa.Modulo,this,t,null,e)},t.prototype.and=function(t,e){return new Ua(Oa.And,this,t,null,e)},t.prototype.or=function(t,e){return new Ua(Oa.Or,this,t,null,e)},t.prototype.lower=function(t,e){return new Ua(Oa.Lower,this,t,null,e)},t.prototype.lowerEquals=function(t,e){return new Ua(Oa.LowerEquals,this,t,null,e)},t.prototype.bigger=function(t,e){return new Ua(Oa.Bigger,this,t,null,e)},t.prototype.biggerEquals=function(t,e){return new Ua(Oa.BiggerEquals,this,t,null,e)},t.prototype.isBlank=function(t){return this.equals(Qa,t)},t.prototype.cast=function(t,e){return new Ba(this,t,e)},t.prototype.toStmt=function(){return new nc(this,null)},t}(),Ca={This:0,Super:1,CatchError:2,CatchStack:3};Ca[Ca.This]="This",Ca[Ca.Super]="Super",Ca[Ca.CatchError]="CatchError",Ca[Ca.CatchStack]="CatchStack";var Ea=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return"string"==typeof e?(i.name=e,i.builtin=null):(i.name=null,i.builtin=e),i}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&this.builtin===t.builtin},e.prototype.visitExpression=function(t,e){return t.visitReadVarExpr(this,e)},e.prototype.set=function(t){if(!this.name)throw new Error("Built in variable "+this.builtin+" can not be assigned to.");return new Ta(this.name,t,null,this.sourceSpan)},e}(Sa),Ta=function(t){function e(e,n,r,i){var o=t.call(this,r||n.type,i)||this;return o.name=e,o.value=n,o}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&this.value.isEquivalent(t.value)},e.prototype.visitExpression=function(t,e){return t.visitWriteVarExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return new tc(this.name,this.value,t,e,this.sourceSpan)},e}(Sa),ja=function(t){function e(e,n,r,i,o){var s=t.call(this,i||r.type,o)||this;return s.receiver=e,s.index=n,s.value=r,s}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)&&this.value.isEquivalent(t.value)},e.prototype.visitExpression=function(t,e){return t.visitWriteKeyExpr(this,e)},e}(Sa),Pa=function(t){function e(e,n,r,i,o){var s=t.call(this,i||r.type,o)||this;return s.receiver=e,s.name=n,s.value=r,s}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name&&this.value.isEquivalent(t.value)},e.prototype.visitExpression=function(t,e){return t.visitWritePropExpr(this,e)},e}(Sa),Aa={ConcatArray:0,SubscribeObservable:1,Bind:2};Aa[Aa.ConcatArray]="ConcatArray",Aa[Aa.SubscribeObservable]="SubscribeObservable",Aa[Aa.Bind]="Bind";var Ia=function(t){function e(e,n,r,i,o){var s=t.call(this,i,o)||this;return s.receiver=e,s.args=r,"string"==typeof n?(s.name=n,s.builtin=null):(s.name=null,s.builtin=n),s}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name&&this.builtin===t.builtin&&Bt(this.args,t.args)},e.prototype.visitExpression=function(t,e){return t.visitInvokeMethodExpr(this,e)},e}(Sa),ka=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.fn=e,o.args=n,o}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.fn.isEquivalent(t.fn)&&Bt(this.args,t.args)},e.prototype.visitExpression=function(t,e){return t.visitInvokeFunctionExpr(this,e)},e}(Sa),Ra=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.classExpr=e,o.args=n,o}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.classExpr.isEquivalent(t.classExpr)&&Bt(this.args,t.args)},e.prototype.visitExpression=function(t,e){return t.visitInstantiateExpr(this,e)},e}(Sa),Ma=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.value=e,i}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value===t.value},e.prototype.visitExpression=function(t,e){return t.visitLiteralExpr(this,e)},e}(Sa),Da=function(t){function e(e,n,r,i){void 0===r&&(r=null);var o=t.call(this,n,i)||this;return o.value=e,o.typeParams=r,o}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value.name===t.value.name&&this.value.moduleName===t.value.moduleName&&this.value.runtime===t.value.runtime},e.prototype.visitExpression=function(t,e){return t.visitExternalExpr(this,e)},e}(Sa),Na=function(){return function(t,e,n){this.moduleName=t,this.name=e,this.runtime=n}}(),La=function(t){function e(e,n,r,i,o){void 0===r&&(r=null);var s=t.call(this,i||n.type,o)||this;return s.condition=e,s.falseCase=r,s.trueCase=n,s}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)&&this.trueCase.isEquivalent(t.trueCase)&&Vt(this.falseCase,t.falseCase)},e.prototype.visitExpression=function(t,e){return t.visitConditionalExpr(this,e)},e}(Sa),Fa=function(t){function e(e,n){var r=t.call(this,wa,n)||this;return r.condition=e,r}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)},e.prototype.visitExpression=function(t,e){return t.visitNotExpr(this,e)},e}(Sa),Va=function(t){function e(e,n){var r=t.call(this,e.type,n)||this;return r.condition=e,r}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)},e.prototype.visitExpression=function(t,e){return t.visitAssertNotNullExpr(this,e)},e}(Sa),Ba=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.value=e,i}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value.isEquivalent(t.value)},e.prototype.visitExpression=function(t,e){return t.visitCastExpr(this,e)},e}(Sa),Ha=function(){function t(t,e){void 0===e&&(e=null),this.name=t,this.type=e}return t.prototype.isEquivalent=function(t){return this.name===t.name},t}(),za=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.params=e,o.statements=n,o}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&Bt(this.params,t.params)&&Bt(this.statements,t.statements)},e.prototype.visitExpression=function(t,e){return t.visitFunctionExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===e&&(e=null),new ec(t,this.params,this.statements,this.type,e,this.sourceSpan)},e}(Sa),Ua=function(t){function e(e,n,r,i,o){var s=t.call(this,i||n.type,o)||this;return s.operator=e,s.rhs=r,s.lhs=n,s}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.operator===t.operator&&this.lhs.isEquivalent(t.lhs)&&this.rhs.isEquivalent(t.rhs)},e.prototype.visitExpression=function(t,e){return t.visitBinaryOperatorExpr(this,e)},e}(Sa),Wa=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.receiver=e,o.name=n,o}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name},e.prototype.visitExpression=function(t,e){return t.visitReadPropExpr(this,e)},e.prototype.set=function(t){return new Pa(this.receiver,this.name,t,null,this.sourceSpan)},e}(Sa),Ga=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.receiver=e,o.index=n,o}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)},e.prototype.visitExpression=function(t,e){return t.visitReadKeyExpr(this,e)},e.prototype.set=function(t){return new ja(this.receiver,this.index,t,null,this.sourceSpan)},e}(Sa),qa=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.entries=e,i}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&Bt(this.entries,t.entries)},e.prototype.visitExpression=function(t,e){return t.visitLiteralArrayExpr(this,e)},e}(Sa),Ya=function(){function t(t,e,n){this.key=t,this.value=e,this.quoted=n}return t.prototype.isEquivalent=function(t){return this.key===t.key&&this.value.isEquivalent(t.value)},t}(),Ka=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.entries=e,i.valueType=null,n&&(i.valueType=n.valueType),i}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&Bt(this.entries,t.entries)},e.prototype.visitExpression=function(t,e){return t.visitLiteralMapExpr(this,e)},e}(Sa),Xa=function(t){function e(e,n){var r=t.call(this,e[e.length-1].type,n)||this;return r.parts=e,r}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&Bt(this.parts,t.parts)},e.prototype.visitExpression=function(t,e){return t.visitCommaExpr(this,e)},e}(Sa),$a=(new Ea(Ca.This,null,null),new Ea(Ca.Super,null,null),new Ea(Ca.CatchError,null,null),new Ea(Ca.CatchStack,null,null),new Ma(null,null,null)),Qa=new Ma(null,xa,null),Za={Final:0,Private:1,Exported:2};Za[Za.Final]="Final",Za[Za.Private]="Private",Za[Za.Exported]="Exported";var Ja=function(){function t(t,e){this.modifiers=t||[],this.sourceSpan=e||null}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),tc=function(t){function e(e,n,r,i,o){void 0===i&&(i=null);var s=t.call(this,i,o)||this;return s.name=e,s.value=n,s.type=r||n.type,s}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&this.value.isEquivalent(t.value)},e.prototype.visitStatement=function(t,e){return t.visitDeclareVarStmt(this,e)},e}(Ja),ec=function(t){function e(e,n,r,i,o,s){void 0===o&&(o=null);var a=t.call(this,o,s)||this;return a.name=e,a.params=n,a.statements=r,a.type=i||null,a}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&Bt(this.params,t.params)&&Bt(this.statements,t.statements)},e.prototype.visitStatement=function(t,e){return t.visitDeclareFunctionStmt(this,e)},e}(Ja),nc=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.expr=e,r}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.expr.isEquivalent(t.expr)},e.prototype.visitStatement=function(t,e){return t.visitExpressionStmt(this,e)},e}(Ja),rc=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.value=e,r}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value.isEquivalent(t.value)},e.prototype.visitStatement=function(t,e){return t.visitReturnStmt(this,e)},e}(Ja),ic=function(){function t(t,e){this.modifiers=e,e||(this.modifiers=[]),this.type=t||null}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),oc=(function(t){function e(e,n,r){void 0===r&&(r=null);var i=t.call(this,n,r)||this;return i.name=e,i}Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return this.name===t.name}}(ic),function(t){function e(e,n,r,i,o){void 0===o&&(o=null);var s=t.call(this,i,o)||this;return s.name=e,s.params=n,s.body=r,s}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return this.name===t.name&&Bt(this.body,t.body)},e}(ic)),sc=function(t){function e(e,n,r,i){void 0===i&&(i=null);var o=t.call(this,r,i)||this;return o.name=e,o.body=n,o}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return this.name===t.name&&Bt(this.body,t.body)},e}(ic),ac=function(t){function e(e,n,r,i,o,s,a,c){void 0===a&&(a=null);var u=t.call(this,a,c)||this;return u.name=e,u.parent=n,u.fields=r,u.getters=i,u.constructorMethod=o,u.methods=s,u}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&Vt(this.parent,t.parent)&&Bt(this.fields,t.fields)&&Bt(this.getters,t.getters)&&this.constructorMethod.isEquivalent(t.constructorMethod)&&Bt(this.methods,t.methods)},e.prototype.visitStatement=function(t,e){return t.visitDeclareClassStmt(this,e)},e}(Ja),cc=function(t){function e(e,n,r,i){void 0===r&&(r=[]);var o=t.call(this,null,i)||this;return o.condition=e,o.trueCase=n,o.falseCase=r,o}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)&&Bt(this.trueCase,t.trueCase)&&Bt(this.falseCase,t.falseCase)},e.prototype.visitStatement=function(t,e){return t.visitIfStmt(this,e)},e}(Ja),uc=(function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.comment=e,r}Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e},e.prototype.visitStatement=function(t,e){return t.visitCommentStmt(this,e)}}(Ja),function(t){function e(e,n,r){var i=t.call(this,null,r)||this;return i.bodyStmts=e,i.catchStmts=n,i}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&Bt(this.bodyStmts,t.bodyStmts)&&Bt(this.catchStmts,t.catchStmts)},e.prototype.visitStatement=function(t,e){return t.visitTryCatchStmt(this,e)},e}(Ja)),lc=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.error=e,r}return Object(wn.b)(e,t),e.prototype.isEquivalent=function(t){return t instanceof uc&&this.error.isEquivalent(t.error)},e.prototype.visitStatement=function(t,e){return t.visitThrowStmt(this,e)},e}(Ja),pc=function(){function t(){}return t.prototype.transformExpr=function(t,e){return t},t.prototype.transformStmt=function(t,e){return t},t.prototype.visitReadVarExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitWriteVarExpr=function(t,e){return this.transformExpr(new Ta(t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWriteKeyExpr=function(t,e){return this.transformExpr(new ja(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWritePropExpr=function(t,e){return this.transformExpr(new Pa(t.receiver.visitExpression(this,e),t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeMethodExpr=function(t,e){var n=t.builtin||t.name;return this.transformExpr(new Ia(t.receiver.visitExpression(this,e),n,this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return this.transformExpr(new ka(t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInstantiateExpr=function(t,e){return this.transformExpr(new Ra(t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitExternalExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitConditionalExpr=function(t,e){return this.transformExpr(new La(t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitNotExpr=function(t,e){return this.transformExpr(new Fa(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitAssertNotNullExpr=function(t,e){return this.transformExpr(new Va(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCastExpr=function(t,e){return this.transformExpr(new Ba(t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitFunctionExpr=function(t,e){return this.transformExpr(new za(t.params,this.visitAllStatements(t.statements,e),t.type,t.sourceSpan),e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return this.transformExpr(new Ua(t.operator,t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitReadPropExpr=function(t,e){return this.transformExpr(new Wa(t.receiver.visitExpression(this,e),t.name,t.type,t.sourceSpan),e)},t.prototype.visitReadKeyExpr=function(t,e){return this.transformExpr(new Ga(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralArrayExpr=function(t,e){return this.transformExpr(new qa(this.visitAllExpressions(t.entries,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r=t.entries.map(function(t){return new Ya(t.key,t.value.visitExpression(n,e),t.quoted)}),i=new ba(t.valueType,null);return this.transformExpr(new Ka(r,i,t.sourceSpan),e)},t.prototype.visitCommaExpr=function(t,e){return this.transformExpr(new Xa(this.visitAllExpressions(t.parts,e),t.sourceSpan),e)},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return this.transformStmt(new tc(t.name,t.value.visitExpression(this,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.transformStmt(new ec(t.name,t.params,this.visitAllStatements(t.statements,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitExpressionStmt=function(t,e){return this.transformStmt(new nc(t.expr.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitReturnStmt=function(t,e){return this.transformStmt(new rc(t.value.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitDeclareClassStmt=function(t,e){var n=this,r=t.parent.visitExpression(this,e),i=t.getters.map(function(t){return new sc(t.name,n.visitAllStatements(t.body,e),t.type,t.modifiers)}),o=t.constructorMethod&&new oc(t.constructorMethod.name,t.constructorMethod.params,this.visitAllStatements(t.constructorMethod.body,e),t.constructorMethod.type,t.constructorMethod.modifiers),s=t.methods.map(function(t){return new oc(t.name,t.params,n.visitAllStatements(t.body,e),t.type,t.modifiers)});return this.transformStmt(new ac(t.name,r,t.fields,i,o,s,t.modifiers,t.sourceSpan),e)},t.prototype.visitIfStmt=function(t,e){return this.transformStmt(new cc(t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t.sourceSpan),e)},t.prototype.visitTryCatchStmt=function(t,e){return this.transformStmt(new uc(this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t.sourceSpan),e)},t.prototype.visitThrowStmt=function(t,e){return this.transformStmt(new lc(t.error.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCommentStmt=function(t,e){return this.transformStmt(t,e)},t.prototype.visitAllStatements=function(t,e){var n=this;return t.map(function(t){return t.visitStatement(n,e)})},t}(),hc=function(){function t(){}return t.prototype.visitType=function(t,e){return t},t.prototype.visitExpression=function(t,e){return t.type&&t.type.visitType(this,e),t},t.prototype.visitBuiltintType=function(t,e){return this.visitType(t,e)},t.prototype.visitExpressionType=function(t,e){return t.value.visitExpression(this,e),this.visitType(t,e)},t.prototype.visitArrayType=function(t,e){return this.visitType(t,e)},t.prototype.visitMapType=function(t,e){return this.visitType(t,e)},t.prototype.visitReadVarExpr=function(t,e){return this.visitExpression(t,e)},t.prototype.visitWriteVarExpr=function(t,e){return t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitWriteKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitWritePropExpr=function(t,e){return t.receiver.visitExpression(this,e),t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitInvokeMethodExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitAllExpressions(t.args,e),this.visitExpression(t,e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),this.visitExpression(t,e)},t.prototype.visitInstantiateExpr=function(t,e){return t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),this.visitExpression(t,e)},t.prototype.visitLiteralExpr=function(t,e){return this.visitExpression(t,e)},t.prototype.visitExternalExpr=function(t,e){var n=this;return t.typeParams&&t.typeParams.forEach(function(t){return t.visitType(n,e)}),this.visitExpression(t,e)},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitNotExpr=function(t,e){return t.condition.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitFunctionExpr=function(t,e){return this.visitAllStatements(t.statements,e),this.visitExpression(t,e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e),this.visitExpression(t,e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return t.entries.forEach(function(t){return t.value.visitExpression(n,e)}),this.visitExpression(t,e)},t.prototype.visitCommaExpr=function(t,e){return this.visitAllExpressions(t.parts,e),this.visitExpression(t,e)},t.prototype.visitAllExpressions=function(t,e){var n=this;t.forEach(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return t.value.visitExpression(this,e),t.type&&t.type.visitType(this,e),t},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.visitAllStatements(t.statements,e),t.type&&t.type.visitType(this,e),t},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),t},t.prototype.visitReturnStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareClassStmt=function(t,e){var n=this;return t.parent.visitExpression(this,e),t.getters.forEach(function(t){return n.visitAllStatements(t.body,e)}),t.constructorMethod&&this.visitAllStatements(t.constructorMethod.body,e),t.methods.forEach(function(t){return n.visitAllStatements(t.body,e)}),t},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t},t.prototype.visitTryCatchStmt=function(t,e){return this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t},t.prototype.visitThrowStmt=function(t,e){return t.error.visitExpression(this,e),t},t.prototype.visitCommentStmt=function(t,e){return t},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}(),dc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.varNames=new Set,e}return Object(wn.b)(e,t),e.prototype.visitDeclareFunctionStmt=function(t,e){return t},e.prototype.visitDeclareClassStmt=function(t,e){return t},e.prototype.visitReadVarExpr=function(t,e){return t.name&&this.varNames.add(t.name),null},e}(hc),fc=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.externalReferences=[],e}Object(wn.b)(e,t),e.prototype.visitExternalExpr=function(e,n){return this.externalReferences.push(e.value),t.prototype.visitExternalExpr.call(this,e,n)}}(hc),function(t){function e(e){var n=t.call(this)||this;return n.sourceSpan=e,n}return Object(wn.b)(e,t),e.prototype._clone=function(t){var e=Object.create(t.constructor.prototype);for(var n in t)e[n]=t[n];return e},e.prototype.transformExpr=function(t,e){return t.sourceSpan||((t=this._clone(t)).sourceSpan=this.sourceSpan),t},e.prototype.transformStmt=function(t,e){return t.sourceSpan||((t=this._clone(t)).sourceSpan=this.sourceSpan),t},e}(pc)),yc=function(t){function e(e,n){return t.call(this,n,e)||this}return Object(wn.b)(e,t),e}(Ro),gc=function(){return function(t,e){var n=this;this.reflector=t,this.component=e,this.errors=[],this.viewQueries=function(t){var e=1,n=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return ee(n,{meta:t,queryId:e++})}),n}(e),this.viewProviders=new Map,e.viewProviders.forEach(function(t){null==n.viewProviders.get(S(t.token))&&n.viewProviders.set(S(t.token),!0)})}}(),vc=function(){function t(t,e,n,r,i,o,s,a,c){var u=this;this.viewContext=t,this._parent=e,this._isViewRoot=n,this._directiveAsts=r,this._sourceSpan=c,this._transformedProviders=new Map,this._seenProviders=new Map,this._queriedTokens=new Map,this.transformedHasViewContainer=!1,this._attrs={},i.forEach(function(t){return u._attrs[t.name]=t.value});var l=r.map(function(t){return t.directive});if(this._allProviders=function(t,e,n){var r=new Map;return t.forEach(function(t){te([{token:{identifier:t.type},useClass:t.type}],t.isComponent?gr.Component:gr.Directive,!0,e,n,r)}),t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent})).forEach(function(t){te(t.providers,gr.PublicService,!1,e,n,r),te(t.viewProviders,gr.PrivateService,!1,e,n,r)}),r}(l,c,t.errors),this._contentQueries=function(t,e){var n=t,r=new Map;return e.forEach(function(t,e){t.queries&&t.queries.forEach(function(t){return ee(r,{meta:t,queryId:n++})})}),r}(a,l),Array.from(this._allProviders.values()).forEach(function(t){u._addQueryReadsTo(t.token,t.token,u._queriedTokens)}),s){var p=Rt(this.viewContext.reflector,na.TemplateRef);this._addQueryReadsTo(p,p,this._queriedTokens)}o.forEach(function(t){var e=t.value||Rt(u.viewContext.reflector,na.ElementRef);u._addQueryReadsTo({value:t.name},e,u._queriedTokens)}),this._queriedTokens.get(this.viewContext.reflector.resolveExternalReference(na.ViewContainerRef))&&(this.transformedHasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){(t.eager||u._queriedTokens.get(S(t.token)))&&u._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){var t=[],e=[];return this._transformedProviders.forEach(function(n){n.eager?e.push(n):t.push(n)}),t.concat(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,n){return t.indexOf(e.directive.type)-t.indexOf(n.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryMatches",{get:function(){var t=[];return this._queriedTokens.forEach(function(e){t.push.apply(t,e)}),t},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(t,e,n){this._getQueriesFor(t).forEach(function(t){var r=t.meta.read||e,i=S(r),o=n.get(i);o||(o=[],n.set(i,o)),o.push({queryId:t.queryId,value:r})})},t.prototype._getQueriesFor=function(t){for(var e,n=[],r=this,i=0;null!==r;)(e=r._contentQueries.get(S(t)))&&n.push.apply(n,e.filter(function(t){return t.meta.descendants||i<=1})),r._directiveAsts.length>0&&i++,r=r._parent;return(e=this.viewContext.viewQueries.get(S(t)))&&n.push.apply(n,e),n},t.prototype._getOrCreateLocalProvider=function(t,e,n){var r=this,i=this._allProviders.get(S(e));if(!i||(t===gr.Directive||t===gr.PublicService)&&i.providerType===gr.PrivateService||(t===gr.PrivateService||t===gr.PublicService)&&i.providerType===gr.Builtin)return null;var o=this._transformedProviders.get(S(e));if(o)return o;if(null!=this._seenProviders.get(S(e)))return this.viewContext.errors.push(new yc("Cannot instantiate cyclic dependency! "+O(e),this._sourceSpan)),null;this._seenProviders.set(S(e),!0);var s=i.providers.map(function(t){var e=t.useValue,o=t.useExisting,s=void 0;if(null!=t.useExisting){var a=r._getDependency(i.providerType,{token:t.useExisting},n);null!=a.token?o=a.token:(o=null,e=a.value)}else if(t.useFactory){s=(t.deps||t.useFactory.diDeps).map(function(t){return r._getDependency(i.providerType,t,n)})}else if(t.useClass){s=(t.deps||t.useClass.diDeps).map(function(t){return r._getDependency(i.providerType,t,n)})}return Zt(t,{useExisting:o,useValue:e,deps:s})});return o=Jt(i,{eager:n,providers:s}),this._transformedProviders.set(S(e),o),o},t.prototype._getLocalDependency=function(t,e,n){if(void 0===n&&(n=!1),e.isAttribute){var r=this._attrs[e.token.value];return{isValue:!0,value:null==r?null:r}}if(null!=e.token){if(t===gr.Directive||t===gr.Component){if(S(e.token)===this.viewContext.reflector.resolveExternalReference(na.Renderer)||S(e.token)===this.viewContext.reflector.resolveExternalReference(na.ElementRef)||S(e.token)===this.viewContext.reflector.resolveExternalReference(na.ChangeDetectorRef)||S(e.token)===this.viewContext.reflector.resolveExternalReference(na.TemplateRef))return e;S(e.token)===this.viewContext.reflector.resolveExternalReference(na.ViewContainerRef)&&(this.transformedHasViewContainer=!0)}if(S(e.token)===this.viewContext.reflector.resolveExternalReference(na.Injector))return e;if(null!=this._getOrCreateLocalProvider(t,e.token,n))return e}return null},t.prototype._getDependency=function(t,e,n){void 0===n&&(n=!1);var r=this,i=n,o=null;if(e.isSkipSelf||(o=this._getLocalDependency(t,e,n)),e.isSelf)!o&&e.isOptional&&(o={isValue:!0,value:null});else{for(;!o&&r._parent;){var s=r;r=r._parent,s._isViewRoot&&(i=!1),o=r._getLocalDependency(gr.PublicService,e,i)}o||(o=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===S(e.token)||null!=this.viewContext.viewProviders.get(S(e.token))?e:e.isOptional?o={isValue:!0,value:null}:null)}return o||this.viewContext.errors.push(new yc("No provider for "+O(e.token),this._sourceSpan)),o},t}(),mc=function(){function t(t,e,n,r){var i=this;this.reflector=t,this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,e.transitiveModule.modules.forEach(function(t){te([{token:{identifier:t},useClass:t}],gr.PublicService,!0,r,i._errors,i._allProviders)}),te(e.transitiveModule.providers.map(function(t){return t.provider}).concat(n),gr.PublicService,!1,r,this._errors,this._allProviders)}return t.prototype.parse=function(){var t=this;if(Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){var e=this._errors.join("\n");throw new Error("Provider parse errors:\n"+e)}var n=[],r=[];return this._transformedProviders.forEach(function(t){t.eager?r.push(t):n.push(t)}),n.concat(r)},t.prototype._getOrCreateLocalProvider=function(t,e){var n=this,r=this._allProviders.get(S(t));if(!r)return null;var i=this._transformedProviders.get(S(t));if(i)return i;if(null!=this._seenProviders.get(S(t)))return this._errors.push(new yc("Cannot instantiate cyclic dependency! "+O(t),r.sourceSpan)),null;this._seenProviders.set(S(t),!0);var o=r.providers.map(function(t){var i=t.useValue,o=t.useExisting,s=void 0;if(null!=t.useExisting){var a=n._getDependency({token:t.useExisting},e,r.sourceSpan);null!=a.token?o=a.token:(o=null,i=a.value)}else if(t.useFactory){s=(t.deps||t.useFactory.diDeps).map(function(t){return n._getDependency(t,e,r.sourceSpan)})}else if(t.useClass){s=(t.deps||t.useClass.diDeps).map(function(t){return n._getDependency(t,e,r.sourceSpan)})}return Zt(t,{useExisting:o,useValue:i,deps:s})});return i=Jt(r,{eager:e,providers:o}),this._transformedProviders.set(S(t),i),i},t.prototype._getDependency=function(t,e,n){void 0===e&&(e=!1);var r=!1;t.isSkipSelf||null==t.token||(S(t.token)===this.reflector.resolveExternalReference(na.Injector)||S(t.token)===this.reflector.resolveExternalReference(na.ComponentFactoryResolver)?r=!0:null!=this._getOrCreateLocalProvider(t.token,e)&&(r=!0));var i=t;return t.isSelf&&!r&&(t.isOptional?i={isValue:!0,value:null}:this._errors.push(new yc("No provider for "+O(t.token),n))),i},t}(),bc=function(){function t(t){this.ctx=t}return t.prototype.visitArray=function(t,e){var n=this;return Kt(t.map(function(t){return s(t,n,null)}),e)},t.prototype.visitStringMap=function(t,e){var n=this,r=[],i=new Set(t&&t.$quoted$);return Object.keys(t).forEach(function(e){r.push(new Ya(e,s(t[e],n,null),i.has(e)))}),new Ka(r,e)},t.prototype.visitPrimitive=function(t,e){return Qt(t,e)},t.prototype.visitOther=function(t,e){return t instanceof Sa?t:this.ctx.importExpr(t)},t}(),_c=function(){return function(t){this.ngModuleFactoryVar=t}}(),xc=Wt("_l"),wc=function(){function t(t){this.reflector=t}return t.prototype.compile=function(t,e,n){var r=function(t,e){var n=b(e),r=null!=n?"in "+t+" "+m(e)+" in "+n:"in "+t+" "+m(e),i=new Ao("",r);return new Io(new Po(i,-1,-1,-1),new Po(i,-1,-1,-1))}("NgModule",e.type),i=e.transitiveModule.entryComponents,o=e.bootstrapComponents,s=new mc(this.reflector,e,n,r),a=[ce(this.reflector,t,0,i)].concat(s.parse().map(function(e){return re(t,e)})).map(function(t){var e=t.providerExpr,n=t.depsExpr,r=t.flags,i=t.tokenExpr;return Gt(na.moduleProviderDef).callFn([Qt(r),i,e,n])}),c=Gt(na.moduleDef).callFn([Kt(a)]),u=$t([new Ha(xc.name)],[new rc(c)],xa),l=m(e.type)+"NgFactory";if(this._createNgModuleFactory(t,e.type.reference,Gt(na.createModuleFactory).callFn([t.importExpr(e.type.reference),Kt(o.map(function(e){return t.importExpr(e.reference)})),u])),e.id){var p=Gt(na.RegisterModuleFactoryFn).callFn([Qt(e.id),Wt(l)]).toStmt();t.statements.push(p)}return new _c(l)},t.prototype.createStub=function(t,e){this._createNgModuleFactory(t,e,$a)},t.prototype._createNgModuleFactory=function(t,e,n){var r=Wt(m({reference:e})+"NgFactory").set(n).toDeclStmt(qt(na.NgModuleFactory,[Yt(t.importExpr(e))],[da.Const]),[Za.Final,Za.Exported]);t.statements.push(r)},t}(),Oc=function(){function t(t){this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(Vn.isTypeOf)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=B(this._reflector.annotations(t),Vn.isTypeOf);if(n)return n;if(e)throw new Error("No NgModule metadata found for '"+h(t)+"'.");return null},t}(),Sc=function(){function t(t){void 0===t&&(t=null),this.file=t,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return t.prototype.addSource=function(t,e){return void 0===e&&(e=null),this.sourcesContent.has(t)||this.sourcesContent.set(t,e),this},t.prototype.addLine=function(){return this.lines.push([]),this.lastCol0=0,this},t.prototype.addMapping=function(t,e,n,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=e&&!this.sourcesContent.has(e))throw new Error('Unknown source file "'+e+'"');if(null==t)throw new Error("The column in the generated code must be provided");if(t<this.lastCol0)throw new Error("Mapping should be added in output order");if(e&&(null==n||null==r))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=t,this.currentLine.push({col0:t,sourceUrl:e,sourceLine0:n,sourceCol0:r}),this},Object.defineProperty(t.prototype,"currentLine",{get:function(){return this.lines.slice(-1)[0]},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){var t=this;if(!this.hasMappings)return null;var e=new Map,n=[],r=[];Array.from(this.sourcesContent.keys()).forEach(function(i,o){e.set(i,o),n.push(i),r.push(t.sourcesContent.get(i)||null)});var i="",o=0,s=0,a=0,c=0;return this.lines.forEach(function(t){o=0,i+=t.map(function(t){var n=ue(t.col0-o);return o=t.col0,null!=t.sourceUrl&&(n+=ue(e.get(t.sourceUrl)-s),s=e.get(t.sourceUrl),n+=ue(t.sourceLine0-a),a=t.sourceLine0,n+=ue(t.sourceCol0-c),c=t.sourceCol0),n}).join(","),i+=";"}),i=i.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:n,sourcesContent:r,mappings:i}},t.prototype.toJsComment=function(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+function(t){var e="";t=p(t);for(var n=0;n<t.length;){var r=t.charCodeAt(n++),i=t.charCodeAt(n++),o=t.charCodeAt(n++);e+=le(r>>2),e+=le((3&r)<<4|(isNaN(i)?0:i>>4)),e+=isNaN(i)?"=":le((15&i)<<2|o>>6),e+=isNaN(i)||isNaN(o)?"=":le(63&o)}return e}(JSON.stringify(this,null,0)):""},t}(),Cc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ec=/'|\\|\n|\r|\$/g,Tc=/^[$A-Z_][0-9A-Z_$]*$/i,jc=" ",Pc=Wt("error",null,null),Ac=Wt("stack",null,null),Ic=function(){return function(t){this.indent=t,this.partsLength=0,this.parts=[],this.srcSpans=[]}}(),kc=function(){function t(t){this._indent=t,this._classes=[],this._preambleLineCount=0,this._lines=[new Ic(t)]}return t.createRoot=function(){return new t(0)},Object.defineProperty(t.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),t.prototype.println=function(t,e){void 0===e&&(e=""),this.print(t||null,e,!0)},t.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},t.prototype.lineLength=function(){return this._currentLine.indent*jc.length+this._currentLine.partsLength},t.prototype.print=function(t,e,n){void 0===n&&(n=!1),e.length>0&&(this._currentLine.parts.push(e),this._currentLine.partsLength+=e.length,this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),n&&this._lines.push(new Ic(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},t.prototype.decIndent=function(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},t.prototype.pushClass=function(t){this._classes.push(t)},t.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(t.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.toSource=function(){return this.sourceLines.map(function(t){return t.parts.length>0?he(t.indent)+t.parts.join(""):""}).join("\n")},t.prototype.toSourceMapGenerator=function(t,e){void 0===e&&(e=0);for(var n=new Sc(t),r=!1,i=function(){r||(n.addSource(t," ").addMapping(0,t,0,0),r=!0)},o=0;o<e;o++)n.addLine(),i();return this.sourceLines.forEach(function(t,e){n.addLine();for(var o=t.srcSpans,s=t.parts,a=t.indent*jc.length,c=0;c<o.length&&!o[c];)a+=s[c].length,c++;for(c<o.length&&0===e&&0===a?r=!0:i();c<o.length;){var u=o[c],l=u.start.file,p=u.start.line,h=u.start.col;for(n.addSource(l.url,l.content).addMapping(a,l.url,p,h),a+=s[c].length,c++;c<o.length&&(u===o[c]||!o[c]);)a+=s[c].length,c++}}),n},t.prototype.setPreambleLineCount=function(t){return this._preambleLineCount=t},t.prototype.spanOf=function(t,e){var n=this._lines[t-this._preambleLineCount];if(n)for(var r=e-he(n.indent).length,i=0;i<n.parts.length;i++){var o=n.parts[i];if(o.length>r)return n.srcSpans[i];r-=o.length}return null},Object.defineProperty(t.prototype,"sourceLines",{get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines},enumerable:!0,configurable:!0}),t}(),Rc=function(){function t(t){this._escapeDollarInStrings=t}return t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitReturnStmt=function(t,e){return e.print(t,"return "),t.value.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitIfStmt=function(t,e){e.print(t,"if ("),t.condition.visitExpression(this,e),e.print(t,") {");var n=null!=t.falseCase&&t.falseCase.length>0;return t.trueCase.length<=1&&!n?(e.print(t," "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(t," ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),n&&(e.println(t,"} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println(t,"}"),null},t.prototype.visitThrowStmt=function(t,e){return e.print(t,"throw "),t.error.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCommentStmt=function(t,e){return t.comment.split("\n").forEach(function(n){e.println(t,"// "+n)}),null},t.prototype.visitWriteVarExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),e.print(t,t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWriteKeyExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"] = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWritePropExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"."+t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitInvokeMethodExpr=function(t,e){t.receiver.visitExpression(this,e);var n=t.name;return null!=t.builtin&&null==(n=this.getBuiltinMethodName(t.builtin))?null:(e.print(t,"."+n+"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null)},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case Ca.Super:n="super";break;case Ca.This:n="this";break;case Ca.CatchError:n=Pc.name;break;case Ca.CatchStack:n=Ac.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return e.print(t,n),null},t.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),t.classExpr.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitLiteralExpr=function(t,e){var n=t.value;return"string"==typeof n?e.print(t,pe(n,this._escapeDollarInStrings)):e.print(t,""+n),null},t.prototype.visitConditionalExpr=function(t,e){return e.print(t,"("),t.condition.visitExpression(this,e),e.print(t,"? "),t.trueCase.visitExpression(this,e),e.print(t,": "),t.falseCase.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitNotExpr=function(t,e){return e.print(t,"!"),t.condition.visitExpression(this,e),null},t.prototype.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var n;switch(t.operator){case Oa.Equals:n="==";break;case Oa.Identical:n="===";break;case Oa.NotEquals:n="!=";break;case Oa.NotIdentical:n="!==";break;case Oa.And:n="&&";break;case Oa.Or:n="||";break;case Oa.Plus:n="+";break;case Oa.Minus:n="-";break;case Oa.Divide:n="/";break;case Oa.Multiply:n="*";break;case Oa.Modulo:n="%";break;case Oa.Lower:n="<";break;case Oa.LowerEquals:n="<=";break;case Oa.Bigger:n=">";break;case Oa.BiggerEquals:n=">=";break;default:throw new Error("Unknown operator "+t.operator)}return e.print(t,"("),t.lhs.visitExpression(this,e),e.print(t," "+n+" "),t.rhs.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"."),e.print(t,t.name),null},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"]"),null},t.prototype.visitLiteralArrayExpr=function(t,e){return e.print(t,"["),this.visitAllExpressions(t.entries,e,","),e.print(t,"]"),null},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return e.print(t,"{"),this.visitAllObjects(function(r){e.print(t,pe(r.key,n._escapeDollarInStrings,r.quoted)+":"),r.value.visitExpression(n,e)},t.entries,e,","),e.print(t,"}"),null},t.prototype.visitCommaExpr=function(t,e){return e.print(t,"("),this.visitAllExpressions(t.parts,e,","),e.print(t,")"),null},t.prototype.visitAllExpressions=function(t,e,n){var r=this;this.visitAllObjects(function(t){return t.visitExpression(r,e)},t,e,n)},t.prototype.visitAllObjects=function(t,e,n,r){for(var i=!1,o=0;o<e.length;o++)o>0&&(n.lineLength()>80?(n.print(null,r,!0),i||(n.incIndent(),n.incIndent(),i=!0)):n.print(null,r,!1)),t(e[o]);i&&(n.decIndent(),n.decIndent())},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}(),Mc=(function(){function t(){}t.prototype.emitStatementsAndContext=function(t,e,n,r,i){void 0===n&&(n=""),void 0===r&&(r=!0);var o=new Mc(i),s=kc.createRoot();o.visitAllStatements(e,s);var a=n?n.split("\n"):[];o.reexports.forEach(function(t,e){var n=t.map(function(t){return t.name+" as "+t.as}).join(",");a.push("export {"+n+"} from '"+e+"';")}),o.importsWithPrefixes.forEach(function(t,e){a.push("import * as "+t+" from '"+e+"';")});var c=r?s.toSourceMapGenerator(t,a.length).toJsComment():"",u=a.concat([s.toSource(),c]);return c&&u.push(""),s.setPreambleLineCount(a.length),{sourceText:u.join("\n"),context:s}},t.prototype.emitStatements=function(t,e,n){return void 0===n&&(n=""),this.emitStatementsAndContext(t,e,n).sourceText}}(),function(t){function e(e){var n=t.call(this,!1)||this;return n.referenceFilter=e,n.typeExpression=0,n.importsWithPrefixes=new Map,n.reexports=new Map,n}return Object(wn.b)(e,t),e.prototype.visitType=function(t,e,n){void 0===n&&(n="any"),t?(this.typeExpression++,t.visitType(this,e),this.typeExpression--):e.print(null,n)},e.prototype.visitLiteralExpr=function(e,n){var r=e.value;return null==r&&e.type!=xa?(n.print(e,"("+r+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,n)},e.prototype.visitLiteralArrayExpr=function(e,n){0===e.entries.length&&n.print(e,"(");var r=t.prototype.visitLiteralArrayExpr.call(this,e,n);return 0===e.entries.length&&n.print(e," as any[])"),r},e.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitAssertNotNullExpr=function(e,n){var r=t.prototype.visitAssertNotNullExpr.call(this,e,n);return n.print(e,"!"),r},e.prototype.visitDeclareVarStmt=function(t,e){if(t.hasModifier(Za.Exported)&&t.value instanceof Da&&!t.type){var n=t.value.value,r=n.name,i=n.moduleName;if(i){var o=this.reexports.get(i);return o||(o=[],this.reexports.set(i,o)),o.push({name:r,as:t.name}),null}}return t.hasModifier(Za.Exported)&&e.print(t,"export "),t.hasModifier(Za.Final)?e.print(t,"const"):e.print(t,"var"),e.print(t," "+t.name),this._printColonType(t.type,e),e.print(t," = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return e.print(t,"(<"),t.type.visitType(this,e),e.print(t,">"),t.value.visitExpression(this,e),e.print(t,")"),null},e.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),this.typeExpression++,t.classExpr.visitExpression(this,e),this.typeExpression--,e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),t.hasModifier(Za.Exported)&&e.print(t,"export "),e.print(t,"class "+t.name),null!=t.parent&&(e.print(t," extends "),this.typeExpression++,t.parent.visitExpression(this,e),this.typeExpression--),e.println(t," {"),e.incIndent(),t.fields.forEach(function(t){return n._visitClassField(t,e)}),null!=t.constructorMethod&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return n._visitClassGetter(t,e)}),t.methods.forEach(function(t){return n._visitClassMethod(t,e)}),e.decIndent(),e.println(t,"}"),e.popClass(),null},e.prototype._visitClassField=function(t,e){t.hasModifier(Za.Private)&&e.print(null,"/*private*/ "),e.print(null,t.name),this._printColonType(t.type,e),e.println(null,";")},e.prototype._visitClassGetter=function(t,e){t.hasModifier(Za.Private)&&e.print(null,"private "),e.print(null,"get "+t.name+"()"),this._printColonType(t.type,e),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype._visitClassConstructor=function(t,e){e.print(t,"constructor("),this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.constructorMethod.body,e),e.decIndent(),e.println(t,"}")},e.prototype._visitClassMethod=function(t,e){t.hasModifier(Za.Private)&&e.print(null,"private "),e.print(null,t.name+"("),this._visitParams(t.params,e),e.print(null,")"),this._printColonType(t.type,e,"void"),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," => {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return t.hasModifier(Za.Exported)&&e.print(t,"export "),e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Pc.name+") {"),e.incIndent();var n=[Ac.set(Pc.prop("stack",null)).toDeclStmt(null,[Za.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitBuiltintType=function(t,e){var n;switch(t.name){case ya.Bool:n="boolean";break;case ya.Dynamic:n="any";break;case ya.Function:n="Function";break;case ya.Number:case ya.Int:n="number";break;case ya.String:n="string";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(null,n),null},e.prototype.visitExpressionType=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print(null,"[]"),null},e.prototype.visitMapType=function(t,e){return e.print(null,"{[key: string]:"),this.visitType(t.valueType,e),e.print(null,"}"),null},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Aa.ConcatArray:e="concat";break;case Aa.SubscribeObservable:e="subscribe";break;case Aa.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e.prototype._visitParams=function(t,e){var n=this;this.visitAllObjects(function(t){e.print(null,t.name),n._printColonType(t.type,e)},t,e,",")},e.prototype._visitIdentifier=function(t,e,n){var r=this,i=t.name,o=t.moduleName;if(this.referenceFilter&&this.referenceFilter(t))n.print(null,"(null as any)");else{if(o){var s=this.importsWithPrefixes.get(o);null==s&&(s="i"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(o,s)),n.print(null,s+".")}if(n.print(null,i),this.typeExpression>0){(e||[]).length>0&&(n.print(null,"<"),this.visitAllObjects(function(t){return t.visitType(r,n)},e,n,","),n.print(null,">"))}}},e.prototype._printColonType=function(t,e,n){t!==xa&&(e.print(null,":"),this.visitType(t,e,n))},e}(Rc)),Dc=function(){function t(t){this._reflector=t}return t.prototype.isPipe=function(t){var e=this._reflector.annotations(d(t));return e&&e.some(Mn.isTypeOf)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=this._reflector.annotations(d(t));if(n){var r=B(n,Mn.isTypeOf);if(r)return r}if(e)throw new Error("No Pipe decorator found on "+h(t));return null},t}(),Nc={};de(Kn.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),de(Kn.STYLE,["*|style"]),de(Kn.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),de(Kn.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"]);var Lc=function(){return function(){}}(),Fc="boolean",Vc="number",Bc="string",Hc="object",zc=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|"],Uc={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Wc=function(t){function e(){var e=t.call(this)||this;return e._schema={},zc.forEach(function(t){var n={},r=t.split("|"),i=r[0],o=r[1].split(","),s=i.split("^"),a=s[0],c=s[1];a.split(",").forEach(function(t){return e._schema[t.toLowerCase()]=n});var u=c&&e._schema[c.toLowerCase()];u&&Object.keys(u).forEach(function(t){n[t]=u[t]}),o.forEach(function(t){if(t.length>0)switch(t[0]){case"*":break;case"!":n[t.substring(1)]=Fc;break;case"#":n[t.substring(1)]=Vc;break;case"%":n[t.substring(1)]=Hc;break;default:n[t]=Bc}})}),e}return Object(wn.b)(e,t),e.prototype.hasProperty=function(t,e,n){if(n.some(function(t){return t.name===Hn.name}))return!0;if(t.indexOf("-")>-1){if(M(t)||D(t))return!1;if(n.some(function(t){return t.name===Bn.name}))return!0}return!!(this._schema[t.toLowerCase()]||this._schema.unknown)[e]},e.prototype.hasElement=function(t,e){if(e.some(function(t){return t.name===Hn.name}))return!0;if(t.indexOf("-")>-1){if(M(t)||D(t))return!0;if(e.some(function(t){return t.name===Bn.name}))return!0}return!!this._schema[t.toLowerCase()]},e.prototype.securityContext=function(t,e,n){n&&(e=this.getMappedPropName(e)),t=t.toLowerCase(),e=e.toLowerCase();var r=Nc[t+"|"+e];return r||((r=Nc["*|"+e])||Kn.NONE)},e.prototype.getMappedPropName=function(t){return Uc[t]||t},e.prototype.getDefaultComponentElementName=function(){return"ng-component"},e.prototype.validateProperty=function(t){if(t.toLowerCase().startsWith("on")){return{error:!0,msg:"Binding to event property '"+t+"' is disallowed for security reasons, please use ("+t.slice(2)+")=...\nIf '"+t+"' is a directive input, make sure the directive is imported by the current module."}}return{error:!1}},e.prototype.validateAttribute=function(t){if(t.toLowerCase().startsWith("on")){return{error:!0,msg:"Binding to event attribute '"+t+"' is disallowed for security reasons, please use ("+t.slice(2)+")=..."}}return{error:!1}},e.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},e.prototype.normalizeAnimationStyleProperty=function(t){return function(t){return t.replace($n,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}(t)},e.prototype.normalizeAnimationStyleValue=function(t,e,n){var r="",i=n.toString().trim(),o=null;if(function(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}(t)&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&(o="Please provide a CSS unit value for "+e+":"+n)}return{error:o,value:i+r}},e}(Lc),Gc=function(){function t(){this.strictStyling=!0}return t.prototype.shimCssText=function(t,e,n){void 0===n&&(n="");var r=function(t){var e=t.match(lu);return e?e[0]:""}(t);return t=function(t){return t.replace(uu,"")}(t),t=this._insertDirectives(t),this._scopeCssText(t,e,n)+r},t.prototype._insertDirectives=function(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)},t.prototype._insertPolyfillDirectivesInCssText=function(t){return t.replace(Yc,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[2]+"{"})},t.prototype._insertPolyfillRulesInCssText=function(t){return t.replace(Kc,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0].replace(t[1],"").replace(t[2],"");return t[4]+n})},t.prototype._scopeCssText=function(t,e,n){var r=this._extractUnscopedRulesFromCssText(t);return t=this._insertPolyfillHostInCssText(t),t=this._convertColonHost(t),t=this._convertColonHostContext(t),t=this._convertShadowDOMSelectors(t),e&&(t=this._scopeSelectors(t,e,n)),(t=t+"\n"+r).trim()},t.prototype._extractUnscopedRulesFromCssText=function(t){var e,n="";for(Xc.lastIndex=0;null!==(e=Xc.exec(t));){n+=e[0].replace(e[2],"").replace(e[1],e[4])+"\n\n"}return n},t.prototype._convertColonHost=function(t){return this._convertColonRule(t,Jc,this._colonHostPartReplacer)},t.prototype._convertColonHostContext=function(t){return this._convertColonRule(t,tu,this._colonHostContextPartReplacer)},t.prototype._convertColonRule=function(t,e,n){return t.replace(e,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t[2]){for(var r=t[2].split(","),i=[],o=0;o<r.length;o++){var s=r[o].trim();if(!s)break;i.push(n(eu,s,t[3]))}return i.join(",")}return eu+t[3]})},t.prototype._colonHostContextPartReplacer=function(t,e,n){return e.indexOf($c)>-1?this._colonHostPartReplacer(t,e,n):t+e+n+", "+e+" "+t+n},t.prototype._colonHostPartReplacer=function(t,e,n){return t+e.replace($c,"")+n},t.prototype._convertShadowDOMSelectors=function(t){return ru.reduce(function(t,e){return t.replace(e," ")},t)},t.prototype._scopeSelectors=function(t,e,n){var r=this;return fe(t,function(t){var i=t.selector,o=t.content;return"@"!=t.selector[0]?i=r._scopeSelector(t.selector,e,n,r.strictStyling):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(o=r._scopeSelectors(t.content,e,n)),new gu(i,o)})},t.prototype._scopeSelector=function(t,e,n,r){var i=this;return t.split(",").map(function(t){return t.trim().split(iu)}).map(function(t){var o=t[0],s=t.slice(1);return[function(t){return i._selectorNeedsScoping(t,e)?r?i._applyStrictSelectorScope(t,e,n):i._applySelectorScope(t,e,n):t}(o)].concat(s).join(" ")}).join(", ")},t.prototype._selectorNeedsScoping=function(t,e){return!this._makeScopeMatcher(e).test(t)},t.prototype._makeScopeMatcher=function(t){return t=t.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+t+")"+ou,"m")},t.prototype._applySelectorScope=function(t,e,n){return this._applySimpleSelectorScope(t,e,n)},t.prototype._applySimpleSelectorScope=function(t,e,n){if(su.lastIndex=0,su.test(t)){var r=this.strictStyling?"["+n+"]":e;return t.replace(nu,function(t,e){return e.replace(/([^:]*)(:*)(.*)/,function(t,e,n,i){return e+r+n+i})}).replace(su,r+" ")}return e+" "+t},t.prototype._applyStrictSelectorScope=function(t,e,n){for(var r,i=this,o="["+(e=e.replace(/\[is=([^\]]*)\]/g,function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e[0]}))+"]",s=function(t){var r=t.trim();if(!r)return"";if(t.indexOf(eu)>-1)r=i._applySimpleSelectorScope(t,e,n);else{var s=t.replace(su,"");if(s.length>0){var a=s.match(/([^:]*)(:*)(.*)/);a&&(r=a[1]+o+a[2]+a[3])}}return r},a=new qc(t),c="",u=0,l=/( |>|\+|~(?!=))\s*/g,p=!((t=a.content()).indexOf(eu)>-1);null!==(r=l.exec(t));){var h=r[1],d=t.slice(u,r.index).trim();c+=((p=p||d.indexOf(eu)>-1)?s(d):d)+" "+h+" ",u=l.lastIndex}var f=t.substring(u);return p=p||f.indexOf(eu)>-1,c+=p?s(f):f,a.restore(c)},t.prototype._insertPolyfillHostInCssText=function(t){return t.replace(cu,Qc).replace(au,$c)},t}(),qc=function(){function t(t){var e=this;this.placeholders=[],this.index=0,t=t.replace(/(\[[^\]]*\])/g,function(t,n){var r="__ph-"+e.index+"__";return e.placeholders.push(n),e.index++,r}),this._content=t.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(t,n,r){var i="__ph-"+e.index+"__";return e.placeholders.push(r),e.index++,n+i})}return t.prototype.restore=function(t){var e=this;return t.replace(/__ph-(\d+)__/g,function(t,n){return e.placeholders[+n]})},t.prototype.content=function(){return this._content},t}(),Yc=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,Kc=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Xc=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,$c="-shadowcsshost",Qc="-shadowcsscontext",Zc=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Jc=new RegExp("("+$c+Zc,"gim"),tu=new RegExp("("+Qc+Zc,"gim"),eu=$c+"-no-combinator",nu=/-shadowcsshost-no-combinator([^\s]*)/,ru=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],iu=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,ou="([>\\s~+[.,{:][\\s\\S]*)?$",su=/-shadowcsshost/gim,au=/:host/gim,cu=/:host-context/gim,uu=/\/\*\s*[\s\S]*?\*\//g,lu=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//,pu=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,hu=/([{}])/g,du="{",fu="}",yu="%BLOCK%",gu=function(){return function(t,e){this.selector=t,this.content=e}}(),vu=function(){return function(t,e){this.escapedString=t,this.blocks=e}}(),mu=function(){return function(t,e,n){this.name=t,this.moduleUrl=e,this.setValue=n}}(),bu=function(){return function(t,e,n,r,i){this.outputCtx=t,this.stylesVar=e,this.dependencies=n,this.isShimmed=r,this.meta=i}}(),_u=function(){function t(t){this._urlResolver=t,this._shadowCss=new Gc}return t.prototype.compileComponent=function(t,e){var n=e.template;return this._compileStyles(t,e,new Cr({styles:n.styles,styleUrls:n.styleUrls,moduleUrl:b(e.type)}),this.needsStyleShim(e),!0)},t.prototype.compileStyles=function(t,e,n,r){return void 0===r&&(r=this.needsStyleShim(e)),this._compileStyles(t,e,n,r,!1)},t.prototype.needsStyleShim=function(t){return t.template.encapsulation===In.Emulated},t.prototype._compileStyles=function(t,e,n,r,i){var o=this,s=n.styles.map(function(t){return Qt(o._shimIfNeeded(t,r))}),a=[];n.styleUrls.forEach(function(e){var n=s.length;s.push(null),a.push(new mu(ye(null),e,function(e){return s[n]=t.importExpr(e)}))});var c=ye(i?e:null),u=Wt(c).set(Kt(s,new ma(_a,[da.Const]))).toDeclStmt(null,i?[Za.Final]:[Za.Final,Za.Exported]);return t.statements.push(u),new bu(t,c,a,r,n)},t.prototype._shimIfNeeded=function(t,e){return e?this._shadowCss.shimCssText(t,"_ngcontent-%COMP%","_nghost-%COMP%"):t},t}(),xu="ngPreserveWhitespaces",wu=new Set(["pre","template","textarea","script","style"]),Ou=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff",Su=new RegExp("[^"+Ou+"]"),Cu=new RegExp("["+Ou+"]{2,}","g"),Eu=function(){function t(){}return t.prototype.visitElement=function(t,e){return wu.has(t.name)||function(t){return t.some(function(t){return t.name===xu})}(t.attrs)?new Nr(t.name,P(this,t.attrs),t.children,t.sourceSpan,t.startSourceSpan,t.endSourceSpan):new Nr(t.name,t.attrs,P(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t,e){return t.name!==xu?t:null},t.prototype.visitText=function(t,e){return t.value.match(Su)?new kr(ge(t.value).replace(Cu," "),t.sourceSpan):null},t.prototype.visitComment=function(t,e){return t},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),Tu=["zero","one","two","few","many","other"],ju=function(){return function(t,e,n){this.nodes=t,this.expanded=e,this.errors=n}}(),Pu=function(t){function e(e,n){return t.call(this,e,n)||this}return Object(wn.b)(e,t),e}(Ro),Au=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t,e){return new Nr(t.name,t.attrs,P(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t,e){return t},t.prototype.visitText=function(t,e){return t},t.prototype.visitComment=function(t,e){return t},t.prototype.visitExpansion=function(t,e){return this.isExpanded=!0,"plural"==t.type?function(t,e){var n=t.cases.map(function(t){-1!=Tu.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new Pu(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+Tu.join(", ")));var n=ve(t.expression);return e.push.apply(e,n.errors),new Nr("ng-template",[new Dr("ngPluralCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new Dr("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new Nr("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}(t,this.errors):function(t,e){var n=t.cases.map(function(t){var n=ve(t.expression);return e.push.apply(e,n.errors),"other"===t.value?new Nr("ng-template",[new Dr("ngSwitchDefault","",t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Nr("ng-template",[new Dr("ngSwitchCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new Dr("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new Nr("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}(t,this.errors)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Should not be reached")},t}(),Iu={DEFAULT:0,LITERAL_ATTR:1,ANIMATION:2};Iu[Iu.DEFAULT]="DEFAULT",Iu[Iu.LITERAL_ATTR]="LITERAL_ATTR",Iu[Iu.ANIMATION]="ANIMATION";var ku=function(){return function(t,e,n,r){this.name=t,this.expression=e,this.type=n,this.sourceSpan=r,this.isLiteral=this.type===Iu.LITERAL_ATTR,this.isAnimation=this.type===Iu.ANIMATION}}(),Ru=function(){function t(t,e,n,r,i){var o=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=n,this._targetErrors=i,this.pipesByName=new Map,this._usedPipes=new Map,r.forEach(function(t){return o.pipesByName.set(t.name,t)})}return t.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},t.prototype.createDirectiveHostPropertyAsts=function(t,e,n){var r=this;if(t.hostProperties){var i=[];return Object.keys(t.hostProperties).forEach(function(e){var o=t.hostProperties[e];"string"==typeof o?r.parsePropertyBinding(e,o,!0,n,[],i):r._reportError('Value of the host property binding "'+e+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",n)}),i.map(function(t){return r.createElementPropertyAst(e,t)})}return null},t.prototype.createDirectiveHostEventAsts=function(t,e){var n=this;if(t.hostListeners){var r=[];return Object.keys(t.hostListeners).forEach(function(i){var o=t.hostListeners[i];"string"==typeof o?n.parseEvent(i,o,e,[],r):n._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",e)}),r}return null},t.prototype.parseInterpolation=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseInterpolation(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),this._checkPipes(r,e),r}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.parseInlineTemplateBinding=function(t,e,n,r,i,o){for(var s=this._parseTemplateBindings(t,e,n),a=0;a<s.length;a++){var c=s[a];c.keyIsVar?o.push(new lr(c.key,c.name,n)):c.expression?this._parsePropertyAst(c.key,c.expression,n,r,i):(r.push([c.key,""]),this.parseLiteralAttr(c.key,null,n,r,i))}},t.prototype._parseTemplateBindings=function(t,e,n){var r=this,i=n.start.toString();try{var o=this._exprParser.parseTemplateBindings(t,e,i);return this._reportExpressionParserErrors(o.errors,n),o.templateBindings.forEach(function(t){t.expression&&r._checkPipes(t.expression,n)}),o.warnings.forEach(function(t){r._reportError(t,n,ko.WARNING)}),o.templateBindings}catch(t){return this._reportError(""+t,n),[]}},t.prototype.parseLiteralAttr=function(t,e,n,r,i){me(t)?(t=t.substring(1),e&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',n,ko.ERROR),this._parseAnimation(t,e,n,r,i)):i.push(new ku(t,this._exprParser.wrapLiteralPrimitive(e,""),Iu.LITERAL_ATTR,n))},t.prototype.parsePropertyBinding=function(t,e,n,r,i,o){var s=!1;t.startsWith("animate-")?(s=!0,t=t.substring("animate-".length)):me(t)&&(s=!0,t=t.substring(1)),s?this._parseAnimation(t,e,r,i,o):this._parsePropertyAst(t,this._parseBinding(e,n,r),r,i,o)},t.prototype.parsePropertyInterpolation=function(t,e,n,r,i){var o=this.parseInterpolation(e,n);return!!o&&(this._parsePropertyAst(t,o,n,r,i),!0)},t.prototype._parsePropertyAst=function(t,e,n,r,i){r.push([t,e.source]),i.push(new ku(t,e,Iu.DEFAULT,n))},t.prototype._parseAnimation=function(t,e,n,r,i){var o=this._parseBinding(e||"undefined",!1,n);r.push([t,o.source]),i.push(new ku(t,o,Iu.ANIMATION,n))},t.prototype._parseBinding=function(t,e,n){var r=n.start.toString();try{var i=e?this._exprParser.parseSimpleBinding(t,r,this._interpolationConfig):this._exprParser.parseBinding(t,r,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,n),this._checkPipes(i,n),i}catch(t){return this._reportError(""+t,n),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype.createElementPropertyAst=function(t,e){if(e.isAnimation)return new ar(e.name,mr.Animation,Kn.NONE,e.expression,null,e.sourceSpan);var n=null,r=void 0,i=null,o=e.name.split("."),s=void 0;if(o.length>1)if("attr"==o[0]){i=o[1],this._validatePropertyOrAttributeName(i,e.sourceSpan,!0),s=be(this._schemaRegistry,t,i,!0);var a=i.indexOf(":");if(a>-1){i=L(i.substring(0,a),i.substring(a+1))}r=mr.Attribute}else"class"==o[0]?(i=o[1],r=mr.Class,s=[Kn.NONE]):"style"==o[0]&&(n=o.length>2?o[2]:null,i=o[1],r=mr.Style,s=[Kn.STYLE]);return null===i&&(i=this._schemaRegistry.getMappedPropName(e.name),s=be(this._schemaRegistry,t,i,!1),r=mr.Property,this._validatePropertyOrAttributeName(i,e.sourceSpan,!1)),new ar(i,r,s[0],e.expression,n,e.sourceSpan)},t.prototype.parseEvent=function(t,e,n,r,i){me(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,n,i)):this._parseEvent(t,e,n,r,i)},t.prototype._parseAnimationEvent=function(t,e,n,r){var i=function(t,e){return o(t,".",e)}(t,[t,""]),s=i[0],a=i[1].toLowerCase();if(a)switch(a){case"start":case"done":var c=this._parseAction(e,n);r.push(new cr(s,null,a,c,n));break;default:this._reportError('The provided animation output phase value "'+a+'" for "@'+s+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+s+") is missing its phase value name (start or done are currently supported)",n)},t.prototype._parseEvent=function(t,e,n,r,o){var s=i(t,[null,t]),a=s[0],c=s[1],u=this._parseAction(e,n);r.push([t,u.source]),o.push(new cr(c,a,null,u,n))},t.prototype._parseAction=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseAction(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),!r||r.ast instanceof Ji?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",n)):(this._checkPipes(r,e),r)}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._reportError=function(t,e,n){void 0===n&&(n=ko.ERROR),this._targetErrors.push(new Ro(e,t,n))},t.prototype._reportExpressionParserErrors=function(t,e){for(var n=0,r=t;n<r.length;n++){var i=r[n];this._reportError(i.message,e)}},t.prototype._checkPipes=function(t,e){var n=this;if(t){var r=new Mu;t.visit(r),r.pipes.forEach(function(t,r){var i=n.pipesByName.get(r);i?n._usedPipes.set(r,i):n._reportError("The pipe '"+r+"' could not be found",new Io(e.start.moveBy(t.span.start),e.start.moveBy(t.span.end)))})}},t.prototype._validatePropertyOrAttributeName=function(t,e,n){var r=n?this._schemaRegistry.validateAttribute(t):this._schemaRegistry.validateProperty(t);r.error&&this._reportError(r.msg,e,ko.ERROR)},t}(),Mu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pipes=new Map,e}return Object(wn.b)(e,t),e.prototype.visitPipe=function(t,e){return this.pipes.set(t.name,t),t.exp.visit(this),this.visitAll(t.args,e),null},e}(wo),Du=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,Nu="template",Lu="class",Fu=sa.parse("*")[0],Vu="The <template> element is deprecated. Use <ng-template> instead",Bu="The template attribute is deprecated. Use an ng-template element instead.",Hu={},zu=function(t){function e(e,n,r){return t.call(this,n,e,r)||this}return Object(wn.b)(e,t),e}(Ro),Uu=function(){return function(t,e,n){this.templateAst=t,this.usedPipes=e,this.errors=n}}(),Wu=function(){function t(t,e,n,r,i,o,s){this._config=t,this._reflector=e,this._exprParser=n,this._schemaRegistry=r,this._htmlParser=i,this._console=o,this.transforms=s}return t.prototype.parse=function(t,e,n,r,i,o,s){var a=this.tryParse(t,e,n,r,i,o,s),c=a.errors.filter(function(t){return t.level===ko.WARNING}).filter(function(t){return function(e){return-1===t.indexOf(e.msg)||(Hu[e.msg]=(Hu[e.msg]||0)+1,Hu[e.msg]<=1)}}([Bu,Vu])),l=a.errors.filter(function(t){return t.level===ko.ERROR});if(c.length>0&&this._console.warn("Template parse warnings:\n"+c.join("\n")),l.length>0){throw u("Template parse errors:\n"+l.join("\n"),l)}return{template:a.templateAst,pipes:a.usedPipes}},t.prototype.tryParse=function(t,e,n,r,i,o,s){var a="string"==typeof e?this._htmlParser.parse(e,o,!0,this.getInterpolationConfig(t)):e;return s||(a=function(t){return new zo(P(new Eu,t.rootNodes),t.errors)}(a)),this.tryParseHtml(this.expandHtml(a),t,n,r,i)},t.prototype.tryParseHtml=function(t,e,n,r,i){var o,s=t.errors,a=[];if(t.rootNodes.length>0){var c=Oe(n),u=Oe(r),l=new gc(this._reflector,e),p=void 0;e.template&&e.template.interpolation&&(p={start:e.template.interpolation[0],end:e.template.interpolation[1]});var h=new Ru(this._exprParser,p,this._schemaRegistry,u,s),d=new Gu(this._reflector,this._config,l,c,h,this._schemaRegistry,i,s);o=P(d,t.rootNodes,Xu),s.push.apply(s,l.errors),a.push.apply(a,h.getUsedPipes())}else o=[];return this._assertNoReferenceDuplicationOnTemplate(o,s),s.length>0?new Uu(o,a,s):(this.transforms&&this.transforms.forEach(function(t){o=y(t,o)}),new Uu(o,a,s))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var n=t.errors;if(0==n.length||e){var r=ve(t.rootNodes);n.push.apply(n,r.errors),t=new zo(r.nodes,n)}return t},t.prototype.getInterpolationConfig=function(t){if(t.template)return Vr.fromArray(t.template.interpolation)},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var n=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var r=t.name;if(n.indexOf(r)<0)n.push(r);else{var i=new zu('Reference "#'+r+'" is defined several times',t.sourceSpan,ko.ERROR);e.push(i)}})})},t}(),Gu=function(){function t(t,e,n,r,i,o,s,a){var c=this;this.reflector=t,this.config=e,this.providerViewContext=n,this._bindingParser=i,this._schemaRegistry=o,this._schemas=s,this._targetErrors=a,this.selectorMatcher=new aa,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=n.component.viewQueries.length+1,r.forEach(function(t,e){var n=sa.parse(t.selector);c.selectorMatcher.addSelectables(n,t),c.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(t,e){return null},t.prototype.visitExpansionCase=function(t,e){return null},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(Fu),r=ge(t.value),i=this._bindingParser.parseInterpolation(r,t.sourceSpan);return i?new or(i,n,t.sourceSpan):new ir(r,n,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return new sr(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitElement=function(t,e){var n=this,r=this.contentQueryStartId,i=t.name,o=F(t);if(o.type===ri.SCRIPT||o.type===ri.STYLE)return null;if(o.type===ri.STYLESHEET&&k(o.hrefAttr))return null;var s=[],a=[],c=[],u=[],l=[],p=[],h=[],d=[],f=!1,y=[],g=Ce(t,this.config.enableLegacyTemplate,function(t,e){return n._reportError(t,e,ko.WARNING)});t.attrs.forEach(function(t){var e,r,i=n._parseAttr(g,t,s,a,l,c,u),o=n._normalizeAttributeName(t.name);n.config.enableLegacyTemplate&&"template"==o?(n._reportError(Bu,t.sourceSpan,ko.WARNING),e=t.value):o.startsWith("*")&&(e=t.value,r=o.substring("*".length)+":");var v=null!=e;v&&(f&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),f=!0,n._bindingParser.parseInlineTemplateBinding(r,e,t.sourceSpan,h,p,d)),i||v||(y.push(n.visitAttribute(t,null)),s.push([t.name,t.value]))});var v=xe(i,s),m=this._parseDirectives(this.selectorMatcher,v),b=m.directives,_=m.matchElement,x=[],w=new Set,O=this._createDirectiveAsts(g,t.name,b,a,c,t.sourceSpan,x,w),S=this._createElementPropertyAsts(t.name,a,w),C=e.isTemplateElement||f,E=new vc(this.providerViewContext,e.providerContext,C,O,y,x,g,r,t.sourceSpan),T=P(o.nonBindable?$u:this,t.children,Ku.create(g,O,g?e.providerContext:E));E.afterElement();var j,A=null!=o.projectAs?sa.parse(o.projectAs)[0]:v,I=e.findNgContentIndex(A);if(o.type===ri.NG_CONTENT)t.children&&!t.children.every(we)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),j=new vr(this.ngContentCount++,f?null:I,t.sourceSpan);else if(g)this._assertAllEventsPublishedByDirectives(O,l),this._assertNoComponentsNorElementBindingsOnTemplate(O,S,t.sourceSpan),j=new hr(y,l,x,u,E.transformedDirectiveAsts,E.transformProviders,E.transformedHasViewContainer,E.queryMatches,T,f?null:I,t.sourceSpan);else{this._assertElementExists(_,t),this._assertOnlyOneComponent(O,t.sourceSpan);var R=f?null:e.findNgContentIndex(A);j=new pr(i,y,S,l,x,E.transformedDirectiveAsts,E.transformProviders,E.transformedHasViewContainer,E.queryMatches,T,f?null:R,t.sourceSpan,t.endSourceSpan||null)}if(f){var M=this.contentQueryStartId,D=xe(Nu,h),N=this._parseDirectives(this.selectorMatcher,D).directives,L=new Set,V=this._createDirectiveAsts(!0,t.name,N,p,[],t.sourceSpan,[],L),B=this._createElementPropertyAsts(t.name,p,L);this._assertNoComponentsNorElementBindingsOnTemplate(V,B,t.sourceSpan);var H=new vc(this.providerViewContext,e.providerContext,e.isTemplateElement,V,[],[],!0,M,t.sourceSpan);H.afterElement(),j=new hr([],[],[],d,H.transformedDirectiveAsts,H.transformProviders,H.transformedHasViewContainer,H.queryMatches,[j],I,t.sourceSpan)}return j},t.prototype._parseAttr=function(t,e,n,r,i,o,s){var a=this._normalizeAttributeName(e.name),c=e.value,u=e.sourceSpan,l=a.match(Du),p=!1;if(null!==l)if(p=!0,null!=l[1])this._bindingParser.parsePropertyBinding(l[7],c,!1,u,n,r);else if(l[2])if(t){var h=l[7];this._parseVariable(h,c,u,s)}else this._reportError('"let-" is only supported on ng-template elements.',u);else if(l[3]){h=l[7];this._parseReference(h,c,u,o)}else l[4]?this._bindingParser.parseEvent(l[7],c,u,n,i):l[5]?(this._bindingParser.parsePropertyBinding(l[7],c,!1,u,n,r),this._parseAssignmentEvent(l[7],c,u,n,i)):l[6]?this._bindingParser.parseLiteralAttr(a,c,u,n,r):l[8]?(this._bindingParser.parsePropertyBinding(l[8],c,!1,u,n,r),this._parseAssignmentEvent(l[8],c,u,n,i)):l[9]?this._bindingParser.parsePropertyBinding(l[9],c,!1,u,n,r):l[10]&&this._bindingParser.parseEvent(l[10],c,u,n,i);else p=this._bindingParser.parsePropertyInterpolation(a,c,u,n,r);return p||this._bindingParser.parseLiteralAttr(a,c,u,n,r),p},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',n),r.push(new lr(t,e,n))},t.prototype._parseReference=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',n),r.push(new Yu(t,e,n))},t.prototype._parseAssignmentEvent=function(t,e,n,r,i){this._bindingParser.parseEvent(t+"Change",e+"=$event",n,r,i)},t.prototype._parseDirectives=function(t,e){var n=this,r=new Array(this.directivesIndex.size),i=!1;return t.match(e,function(t,e){r[n.directivesIndex.get(e)]=e,i=i||t.hasElementSelector()}),{directives:r.filter(function(t){return!!t}),matchElement:i}},t.prototype._createDirectiveAsts=function(t,e,n,r,i,o,s,a){var c=this,u=new Set,l=null,p=n.map(function(t){var n=new Io(o.start,o.end,"Directive "+m(t.type));t.isComponent&&(l=t);var p=[],h=c._bindingParser.createDirectiveHostPropertyAsts(t,e,n);h=c._checkPropertiesInSchema(e,h);var d=c._bindingParser.createDirectiveHostEventAsts(t,n);c._createDirectivePropertyAsts(t.inputs,r,p,a),i.forEach(function(e){(0===e.value.length&&t.isComponent||e.isReferenceToDirective(t))&&(s.push(new ur(e.name,kt(t.type.reference),e.sourceSpan)),u.add(e.name))});var f=c.contentQueryStartId;return c.contentQueryStartId+=t.queries.length,new fr(t,p,h,d,f,n)});return i.forEach(function(e){if(e.value.length>0)u.has(e.name)||c._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!l){var n=null;t&&(n=Rt(c.reflector,na.TemplateRef)),s.push(new ur(e.name,n,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,n,r){if(t){var i=new Map;e.forEach(function(t){var e=i.get(t.name);e&&!e.isLiteral||i.set(t.name,t)}),Object.keys(t).forEach(function(e){var o=t[e],s=i.get(o);s&&(r.add(s.name),Se(s.expression)||n.push(new dr(e,s.name,s.expression,s.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var r=this,i=[];return e.forEach(function(e){e.isLiteral||n.has(e.name)||i.push(r._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,i)},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return m(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var n=this._findComponentDirectiveNames(t);n.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+n.join(","),e)},t.prototype._assertElementExists=function(t,e){var n=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(n,this._schemas)){var r="'"+n+"' is not a known element:\n";r+="1. If '"+n+"' is an Angular component, then verify that it is part of this module.\n",n.indexOf("-")>-1?r+="2. If '"+n+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.":r+="2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(r,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,n){var r=this,i=this._findComponentDirectiveNames(t);i.length>0&&this._reportError("Components on an embedded template: "+i.join(","),n),e.forEach(function(t){r._reportError("Property binding "+t.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',n)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var n=this,r=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){var n=t.directive.outputs[e];r.add(n)})}),e.forEach(function(t){null==t.target&&r.has(t.name)||n._reportError("Event binding "+t.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var n=this;return e.filter(function(e){if(e.type===mr.Property&&!n._schemaRegistry.hasProperty(t,e.name,n._schemas)){var r="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.startsWith("ng-")?r+="\n1. If '"+e.name+"' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.":t.indexOf("-")>-1&&(r+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module.\n2. If '"+t+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component."),n._reportError(r,e.sourceSpan)}return!Se(e.value)})},t.prototype._reportError=function(t,e,n){void 0===n&&(n=ko.ERROR),this._targetErrors.push(new Ro(e,t,n))},t}(),qu=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=F(t);if(n.type===ri.SCRIPT||n.type===ri.STYLE||n.type===ri.STYLESHEET)return null;var r=t.attrs.map(function(t){return[t.name,t.value]}),i=xe(t.name,r),o=e.findNgContentIndex(i),s=P(this,t.children,Xu);return new pr(t.name,P(this,t.attrs),[],[],[],[],[],!1,[],s,o,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return new sr(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(Fu);return new ir(t.value,n,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),Yu=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.isReferenceToDirective=function(t){return-1!==function(t){return t?t.split(",").map(function(t){return t.trim()}):[]}(t.exportAs).indexOf(this.value)},t}(),Ku=function(){function t(t,e,n,r){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=n,this.providerContext=r}return t.create=function(e,n,r){var i=new aa,o=null,s=n.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,c=0;c<a.length;c++){"*"===a[c]?o=c:i.addSelectables(sa.parse(a[c]),c)}return new t(e,i,o,r)},t.prototype.findNgContentIndex=function(t){var e=[];return this._ngContentIndexMatcher.match(t,function(t,n){e.push(n)}),e.sort(),null!=this._wildcardNgContentIndex&&e.push(this._wildcardNgContentIndex),e.length>0?e[0]:null},t}(),Xu=new Ku(!0,new aa,null,null),$u=new qu,Qu=function(){function t(){}return t.event=Wt("$event"),t}(),Zu=function(){return function(t,e){this.stmts=t,this.allowDefault=e}}(),Ju=function(){return function(t,e){this.stmts=t,this.currValExpr=e}}(),tl={Statement:0,Expression:1};tl[tl.Statement]="Statement",tl[tl.Expression]="Expression";var el=function(t){function e(e){var n=t.call(this)||this;return n._converterFactory=e,n}return Object(wn.b)(e,t),e.prototype.visitPipe=function(t,e){var n=this,r=[t.exp].concat(t.args).map(function(t){return t.visit(n,e)});return new il(t.span,r,this._converterFactory.createPipeConverter(t.name,r.length))},e.prototype.visitLiteralArray=function(t,e){var n=this,r=t.expressions.map(function(t){return t.visit(n,e)});return new il(t.span,r,this._converterFactory.createLiteralArrayConverter(t.expressions.length))},e.prototype.visitLiteralMap=function(t,e){var n=this,r=t.values.map(function(t){return t.visit(n,e)});return new il(t.span,r,this._converterFactory.createLiteralMapConverter(t.keys))},e}(Oo),nl=function(){function t(t,e,n){this._localResolver=t,this._implicitReceiver=e,this.bindingId=n,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0}return t.prototype.visitBinary=function(t,e){var n;switch(t.operation){case"+":n=Oa.Plus;break;case"-":n=Oa.Minus;break;case"*":n=Oa.Multiply;break;case"/":n=Oa.Divide;break;case"%":n=Oa.Modulo;break;case"&&":n=Oa.And;break;case"||":n=Oa.Or;break;case"==":n=Oa.Equals;break;case"!=":n=Oa.NotEquals;break;case"===":n=Oa.Identical;break;case"!==":n=Oa.NotIdentical;break;case"<":n=Oa.Lower;break;case">":n=Oa.Bigger;break;case"<=":n=Oa.LowerEquals;break;case">=":n=Oa.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return ke(e,new Ua(n,this._visit(t.left,tl.Expression),this._visit(t.right,tl.Expression)))},t.prototype.visitChain=function(t,e){return function(t,e){if(t!==tl.Statement)throw new Error("Expected a statement, but saw "+e)}(e,t),this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return ke(e,this._visit(t.condition,tl.Expression).conditional(this._visit(t.trueExp,tl.Expression),this._visit(t.falseExp,tl.Expression)))},t.prototype.visitPipe=function(t,e){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: "+t.name)},t.prototype.visitFunctionCall=function(t,e){var n,r=this.visitAll(t.args,tl.Expression);return n=t instanceof il?t.converter(r):this._visit(t.target,tl.Expression).callFn(r),ke(e,n)},t.prototype.visitImplicitReceiver=function(t,e){return Ie(e,t),this._implicitReceiver},t.prototype.visitInterpolation=function(t,e){Ie(e,t);for(var n=[Qt(t.expressions.length)],r=0;r<t.strings.length-1;r++)n.push(Qt(t.strings[r])),n.push(this._visit(t.expressions[r],tl.Expression));return n.push(Qt(t.strings[t.strings.length-1])),t.expressions.length<=9?Gt(na.inlineInterpolate).callFn(n):Gt(na.interpolate).callFn([n[0],Kt(n.slice(1))])},t.prototype.visitKeyedRead=function(t,e){var n=this.leftMostSafeNode(t);return n?this.convertSafeAccess(t,n,e):ke(e,this._visit(t.obj,tl.Expression).key(this._visit(t.key,tl.Expression)))},t.prototype.visitKeyedWrite=function(t,e){var n=this._visit(t.obj,tl.Expression),r=this._visit(t.key,tl.Expression),i=this._visit(t.value,tl.Expression);return ke(e,n.key(r).set(i))},t.prototype.visitLiteralArray=function(t,e){throw new Error("Illegal State: literal arrays should have been converted into functions")},t.prototype.visitLiteralMap=function(t,e){throw new Error("Illegal State: literal maps should have been converted into functions")},t.prototype.visitLiteralPrimitive=function(t,e){return ke(e,Qt(t.value))},t.prototype._getLocal=function(t){return this._localResolver.getLocal(t)},t.prototype.visitMethodCall=function(t,e){var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=this.visitAll(t.args,tl.Expression),i=null,o=this._visit(t.receiver,tl.Expression);if(o===this._implicitReceiver){var s=this._getLocal(t.name);s&&(i=s.callFn(r))}return null==i&&(i=o.callMethod(t.name,r)),ke(e,i)},t.prototype.visitPrefixNot=function(t,e){return ke(e,function(t,e){return new Fa(t,e)}(this._visit(t.expression,tl.Expression)))},t.prototype.visitNonNullAssert=function(t,e){return ke(e,function(t,e){return new Va(t,e)}(this._visit(t.expression,tl.Expression)))},t.prototype.visitPropertyRead=function(t,e){var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=null,i=this._visit(t.receiver,tl.Expression);return i===this._implicitReceiver&&(r=this._getLocal(t.name)),null==r&&(r=i.prop(t.name)),ke(e,r)},t.prototype.visitPropertyWrite=function(t,e){var n=this._visit(t.receiver,tl.Expression);if(n===this._implicitReceiver){if(this._getLocal(t.name))throw new Error("Cannot assign to a reference or variable!")}return ke(e,n.prop(t.name).set(this._visit(t.value,tl.Expression)))},t.prototype.visitSafePropertyRead=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitSafeMethodCall=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitAll=function(t,e){var n=this;return t.map(function(t){return n._visit(t,e)})},t.prototype.visitQuote=function(t,e){throw new Error("Quotes are not supported for evaluation!\n Statement: "+t.uninterpretedExpression+" located at "+t.location)},t.prototype._visit=function(t,e){var n=this._resultMap.get(t);return n||(this._nodeMap.get(t)||t).visit(this,e)},t.prototype.convertSafeAccess=function(t,e,n){var r=this._visit(e.receiver,tl.Expression),i=void 0;this.needsTemporary(e.receiver)&&(r=(i=this.allocateTemporary()).set(r),this._resultMap.set(e.receiver,i));var o=r.isBlank();e instanceof mo?this._nodeMap.set(e,new vo(e.span,e.receiver,e.name,e.args)):this._nodeMap.set(e,new ro(e.span,e.receiver,e.name));var s=this._visit(t,tl.Expression);return this._nodeMap.delete(e),i&&this.releaseTemporary(i),ke(n,o.conditional(Qt(null),s))},t.prototype.leftMostSafeNode=function(t){var e=this,n=function(t,n){return(e._nodeMap.get(n)||n).visit(t)};return t.visit({visitBinary:function(t){return null},visitChain:function(t){return null},visitConditional:function(t){return null},visitFunctionCall:function(t){return null},visitImplicitReceiver:function(t){return null},visitInterpolation:function(t){return null},visitKeyedRead:function(t){return n(this,t.obj)},visitKeyedWrite:function(t){return null},visitLiteralArray:function(t){return null},visitLiteralMap:function(t){return null},visitLiteralPrimitive:function(t){return null},visitMethodCall:function(t){return n(this,t.receiver)},visitPipe:function(t){return null},visitPrefixNot:function(t){return null},visitNonNullAssert:function(t){return null},visitPropertyRead:function(t){return n(this,t.receiver)},visitPropertyWrite:function(t){return null},visitQuote:function(t){return null},visitSafeMethodCall:function(t){return n(this,t.receiver)||t},visitSafePropertyRead:function(t){return n(this,t.receiver)||t}})},t.prototype.needsTemporary=function(t){var e=this,n=function(t,n){return n&&(e._nodeMap.get(n)||n).visit(t)};return t.visit({visitBinary:function(t){return n(this,t.left)||n(this,t.right)},visitChain:function(t){return!1},visitConditional:function(t){return n(this,t.condition)||n(this,t.trueExp)||n(this,t.falseExp)},visitFunctionCall:function(t){return!0},visitImplicitReceiver:function(t){return!1},visitInterpolation:function(t){return function(t,e){return e.some(function(e){return n(t,e)})}(this,t.expressions)},visitKeyedRead:function(t){return!1},visitKeyedWrite:function(t){return!1},visitLiteralArray:function(t){return!0},visitLiteralMap:function(t){return!0},visitLiteralPrimitive:function(t){return!1},visitMethodCall:function(t){return!0},visitPipe:function(t){return!0},visitPrefixNot:function(t){return n(this,t.expression)},visitNonNullAssert:function(t){return n(this,t.expression)},visitPropertyRead:function(t){return!1},visitPropertyWrite:function(t){return!1},visitQuote:function(t){return!1},visitSafeMethodCall:function(t){return!0},visitSafePropertyRead:function(t){return!1}})},t.prototype.allocateTemporary=function(){var t=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new Ea(Pe(this.bindingId,t))},t.prototype.releaseTemporary=function(t){if(this._currentTemporary--,t.name!=Pe(this.bindingId,this._currentTemporary))throw new Error("Temporary "+t.name+" released out of order")},t}(),rl=function(){function t(){}return t.prototype.getLocal=function(t){return t===Qu.event.name?Qu.event:null},t}(),il=function(t){function e(e,n,r){var i=t.call(this,e,null,n)||this;return i.args=n,i.converter=r,i}return Object(wn.b)(e,t),e}(bo),ol=(function(){function t(t,e){this.options=t,this.reflector=e}t.prototype.compileComponent=function(t,e,n,r,i){var o=this,s=new Map;r.forEach(function(t){return s.set(t.name,t.type.reference)});var a=0,c=function(t){var n=a++;return new sl(o.options,o.reflector,i,t,e.type.reference,e.isHost,n,s,c)},u=c(null);return u.visitAll([],n),u.build(t)}}(),new(function(){function t(){}return t.prototype.getLocal=function(t){return t===Qu.event.name?Wt("_any"):null},t}())),sl=function(){function t(t,e,n,r,i,o,s,a,c){this.options=t,this.reflector=e,this.externalReferenceVars=n,this.parent=r,this.component=i,this.isHostComponent=o,this.embeddedViewIndex=s,this.pipes=a,this.viewBuilderFactory=c,this.refOutputVars=new Map,this.variables=[],this.children=[],this.updates=[],this.actions=[]}return t.prototype.getOutputVar=function(t){var e;if(!(e=t===this.component&&this.isHostComponent?"_any":t instanceof _r?this.externalReferenceVars.get(t):"_any"))throw new Error("Illegal State: referring to a type without a variable "+JSON.stringify(t));return e},t.prototype.visitAll=function(t,e){this.variables=t,y(this,e)},t.prototype.build=function(t,e){var n=this;void 0===e&&(e=[]),this.children.forEach(function(n){return n.build(t,e)});var r=[Wt("_any").set($a).toDeclStmt(_a)],i=0;this.updates.forEach(function(t){var e=n.preprocessUpdateExpression(t),o=e.sourceSpan,s=e.context,a=e.value,c=""+i++,u=je(s===n.component?n:ol,Wt(n.getOutputVar(s)),a,c),l=u.stmts,p=u.currValExpr;l.push(new nc(p)),r.push.apply(r,l.map(function(t){return zt(t,o)}))}),this.actions.forEach(function(t){var e=t.sourceSpan,o=t.context,s=t.value,a=""+i++,c=Ee(o===n.component?n:ol,Wt(n.getOutputVar(o)),s,a).stmts;r.push.apply(r,c.map(function(t){return zt(t,e)}))});var o="_View_"+t+"_"+this.embeddedViewIndex,s=new ec(o,[],r);return e.push(s),e},t.prototype.visitBoundText=function(t,e){var n=this;t.value.ast.expressions.forEach(function(e){return n.updates.push({context:n.component,value:e,sourceSpan:t.sourceSpan})})},t.prototype.visitEmbeddedTemplate=function(t,e){if(this.visitElementOrTemplate(t),this.options.fullTemplateTypeCheck){var n=this.viewBuilderFactory(this);this.children.push(n),n.visitAll(t.variables,t.children)}},t.prototype.visitElement=function(t,e){var n=this;this.visitElementOrTemplate(t);t.inputs.forEach(function(t){n.updates.push({context:n.component,value:t.value,sourceSpan:t.sourceSpan})}),y(this,t.children)},t.prototype.visitElementOrTemplate=function(t){var e=this;t.directives.forEach(function(t){e.visitDirective(t)}),t.references.forEach(function(t){var n=null;n=t.value&&t.value.identifier&&e.options.fullTemplateTypeCheck?t.value.identifier.reference:ya.Dynamic,e.refOutputVars.set(t.name,n)}),t.outputs.forEach(function(t){e.actions.push({context:e.component,value:t.handler,sourceSpan:t.sourceSpan})})},t.prototype.visitDirective=function(t){var e=this,n=t.directive.type.reference;t.inputs.forEach(function(t){return e.updates.push({context:e.component,value:t.value,sourceSpan:t.sourceSpan})}),this.options.fullTemplateTypeCheck&&(t.hostProperties.forEach(function(t){return e.updates.push({context:n,value:t.value,sourceSpan:t.sourceSpan})}),t.hostEvents.forEach(function(t){return e.actions.push({context:n,value:t.handler,sourceSpan:t.sourceSpan})}))},t.prototype.getLocal=function(t){if(t==Qu.event.name)return Wt(this.getOutputVar(ya.Dynamic));for(var e=this;e;e=e.parent){var n=void 0;if(null==(n=e.refOutputVars.get(t))){e.variables.find(function(e){return e.name===t})&&(n=ya.Dynamic)}if(null!=n)return Wt(this.getOutputVar(n))}return null},t.prototype.pipeOutputVar=function(t){var e=this.pipes.get(t);if(!e)throw new Error("Illegal State: Could not find pipe "+t+" in template of "+this.component);return this.getOutputVar(e)},t.prototype.preprocessUpdateExpression=function(t){var e=this;return{sourceSpan:t.sourceSpan,context:t.context,value:Te({createLiteralArrayConverter:function(t){return function(t){var n=Kt(t);return e.options.fullTemplateTypeCheck?n:n.cast(_a)}},createLiteralMapConverter:function(t){return function(n){var r=Xt(t.map(function(t,e){return{key:t.key,value:n[e],quoted:t.quoted}}));return e.options.fullTemplateTypeCheck?r:r.cast(_a)}},createPipeConverter:function(t,n){return function(n){return(e.options.fullTemplateTypeCheck?Wt(e.pipeOutputVar(t)):Wt(e.getOutputVar(ya.Dynamic))).callMethod("transform",n)}}},t.value)}},t.prototype.visitNgContent=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitDirectiveProperty=function(t,e){},t.prototype.visitReference=function(t,e){},t.prototype.visitVariable=function(t,e){},t.prototype.visitEvent=function(t,e){},t.prototype.visitElementProperty=function(t,e){},t.prototype.visitAttr=function(t,e){},t}(),al="class",cl="style",ul=function(){return function(t,e){this.viewClassVar=t,this.rendererTypeVar=e}}(),ll=function(){function t(t){this._reflector=t}return t.prototype.compileComponent=function(t,e,n,r,i){var o=this,s=0,a=Fe(n),c=void 0;if(!e.isHost){var u=e.template,l=[];u.animations&&u.animations.length&&l.push(new Ya("animation",ne(t,u.animations),!0));var p=Wt(x(e.type.reference));c=p.name,t.statements.push(p.set(Gt(na.createRendererType2).callFn([new Ka([new Ya("encapsulation",Qt(u.encapsulation),!1),new Ya("styles",r,!1),new Ya("data",new Ka(l),!1)])])).toDeclStmt(qt(na.RendererType2),[Za.Final,Za.Exported]))}var h=function(n){var r=s++;return new vl(o._reflector,t,n,e,r,i,a,h)},d=h(null);return d.visitAll([],n),(f=t.statements).push.apply(f,d.build()),new ul(d.viewName,c);var f},t}(),pl=Wt("_l"),hl=Wt("_v"),dl=Wt("_ck"),fl=Wt("_co"),yl=Wt("en"),gl=Wt("ad"),vl=function(){function t(t,e,n,r,i,o,s,a){this.reflector=t,this.outputCtx=e,this.parent=n,this.component=r,this.embeddedViewIndex=i,this.usedPipes=o,this.staticQueryIds=s,this.viewBuilderFactory=a,this.nodes=[],this.purePipeNodeIndices=Object.create(null),this.refNodeIndices=Object.create(null),this.variables=[],this.children=[],this.compType=this.embeddedViewIndex>0?_a:Yt(e.importExpr(this.component.type.reference)),this.viewName=_(this.component.type.reference,this.embeddedViewIndex)}return t.prototype.visitAll=function(t,e){var n=this;if(this.variables=t,this.parent||this.usedPipes.forEach(function(t){t.pure&&(n.purePipeNodeIndices[t.name]=n._createPipe(null,t))}),!this.parent){var r=function(t){var e=new Set,n=new Set;return Array.from(t.values()).forEach(function(t){t.staticQueryIds.forEach(function(t){return e.add(t)}),t.dynamicQueryIds.forEach(function(t){return n.add(t)})}),n.forEach(function(t){return e.delete(t)}),{staticQueryIds:e,dynamicQueryIds:n}}(this.staticQueryIds);this.component.viewQueries.forEach(function(t,e){var i=e+1,o=t.first?0:1,s=134217728|Be(r,i,t.first);n.nodes.push(function(){return{sourceSpan:null,nodeFlags:s,nodeDef:Gt(na.queryDef).callFn([Qt(s),Qt(i),new Ka([new Ya(t.propertyName,Qt(o),!1)])])}})})}y(this,e),this.parent&&(0===e.length||Me(e))&&this.nodes.push(function(){return{sourceSpan:null,nodeFlags:1,nodeDef:Gt(na.anchorDef).callFn([Qt(0),$a,$a,Qt(0)])}})},t.prototype.build=function(t){void 0===t&&(t=[]),this.children.forEach(function(e){return e.build(t)});var e=this._createNodeExpressions(),n=e.updateRendererStmts,r=e.updateDirectivesStmts,i=e.nodeDefExprs,o=this._createUpdateFn(n),s=this._createUpdateFn(r),a=0;this.parent||this.component.changeDetection!==kn.OnPush||(a|=2);var c=new ec(this.viewName,[new Ha(pl.name)],[new rc(Gt(na.viewDef).callFn([Qt(a),Kt(i),s,o]))],qt(na.ViewDefinition),0===this.embeddedViewIndex?[Za.Exported]:[]);return t.push(c),t},t.prototype._createUpdateFn=function(t){var e;if(t.length>0){var n=[];!this.component.isHost&&Ht(t).has(fl.name)&&n.push(fl.set(hl.prop("component")).toDeclStmt(this.compType)),e=$t([new Ha(dl.name,xa),new Ha(hl.name,xa)],n.concat(t),xa)}else e=$a;return e},t.prototype.visitNgContent=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:8,nodeDef:Gt(na.ngContentDef).callFn([Qt(t.ngContentIndex),Qt(t.index)])}})},t.prototype.visitText=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:Gt(na.textDef).callFn([Qt(-1),Qt(t.ngContentIndex),Kt([Qt(t.value)])])}})},t.prototype.visitBoundText=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var i=t.value.ast,o=i.expressions.map(function(e,i){return n._preprocessUpdateExpression({nodeIndex:r,bindingIndex:i,sourceSpan:t.sourceSpan,context:fl,value:e})}),s=r;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:Gt(na.textDef).callFn([Qt(s),Qt(t.ngContentIndex),Kt(i.strings.map(function(t){return Qt(t)}))]),updateRenderer:o}}},t.prototype.visitEmbeddedTemplate=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var i=this._visitElementOrTemplate(r,t),o=i.flags,s=i.queryMatchesExpr,a=i.hostEvents,c=this.viewBuilderFactory(this);this.children.push(c),c.visitAll(t.variables,t.children);var u=this.nodes.length-r-1;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|o,nodeDef:Gt(na.anchorDef).callFn([Qt(o),s,Qt(t.ngContentIndex),Qt(u),n._createElementHandleEventFn(r,a),Wt(c.viewName)])}}},t.prototype.visitElement=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var i=M(t.name)?null:t.name,o=this._visitElementOrTemplate(r,t),s=o.flags,a=o.usedEvents,c=o.queryMatchesExpr,u=o.hostBindings,l=o.hostEvents,p=[],h=[],d=[];if(i){var f=t.inputs.map(function(t){return{context:fl,inputAst:t,dirAst:null}}).concat(u);f.length&&(h=f.map(function(t,e){return n._preprocessUpdateExpression({context:t.context,nodeIndex:r,bindingIndex:e,sourceSpan:t.inputAst.sourceSpan,value:t.inputAst.value})}),p=f.map(function(t){return function(t,e){switch(t.type){case mr.Attribute:return Kt([Qt(1),Qt(t.name),Qt(t.securityContext)]);case mr.Property:return Kt([Qt(8),Qt(t.name),Qt(t.securityContext)]);case mr.Animation:return Kt([Qt(8|(e&&e.directive.isComponent?32:16)),Qt("@"+t.name),Qt(t.securityContext)]);case mr.Class:return Kt([Qt(2),Qt(t.name),$a]);case mr.Style:return Kt([Qt(4),Qt(t.name),Qt(t.unit)])}}(t.inputAst,t.dirAst)})),d=a.map(function(t){var e=t[0],n=t[1];return Kt([Qt(e),Qt(n)])})}y(this,t.children);var g=this.nodes.length-r-1,v=t.directives.find(function(t){return t.directive.isComponent}),m=$a,b=$a;v&&(b=this.outputCtx.importExpr(v.directive.componentViewType),m=this.outputCtx.importExpr(v.directive.rendererType));var _=r;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|s,nodeDef:Gt(na.elementDef).callFn([Qt(_),Qt(s),c,Qt(t.ngContentIndex),Qt(g),Qt(i),i?De(t):$a,p.length?Kt(p):$a,d.length?Kt(d):$a,n._createElementHandleEventFn(r,l),b,m]),updateRenderer:h}}},t.prototype._visitElementOrTemplate=function(t,e){var n=this,r=0;e.hasViewContainer&&(r|=16777216);var i=new Map;e.outputs.forEach(function(t){var e=Ve(t,null),n=e.name,r=e.target;i.set(He(r,n),[r,n])}),e.directives.forEach(function(t){t.hostEvents.forEach(function(e){var n=Ve(e,t),r=n.name,o=n.target;i.set(He(o,r),[o,r])})});var o=[],s=[];this._visitComponentFactoryResolverProvider(e.directives),e.providers.forEach(function(r,a){var c=void 0,u=void 0;if(e.directives.forEach(function(t,e){t.directive.type.reference===S(r.token)&&(c=t,u=e)}),c){var l=n._visitDirective(r,c,u,t,e.references,e.queryMatches,i,n.staticQueryIds.get(e)),p=l.hostBindings,h=l.hostEvents;o.push.apply(o,p),s.push.apply(s,h)}else n._visitProvider(r,e.queryMatches)});var a=[];return e.queryMatches.forEach(function(t){var e=void 0;S(t.value)===n.reflector.resolveExternalReference(na.ElementRef)?e=0:S(t.value)===n.reflector.resolveExternalReference(na.ViewContainerRef)?e=3:S(t.value)===n.reflector.resolveExternalReference(na.TemplateRef)&&(e=2),null!=e&&a.push(Kt([Qt(t.queryId),Qt(e)]))}),e.references.forEach(function(e){var r=void 0;e.value?S(e.value)===n.reflector.resolveExternalReference(na.TemplateRef)&&(r=2):r=1,null!=r&&(n.refNodeIndices[e.name]=t,a.push(Kt([Qt(e.name),Qt(r)])))}),e.outputs.forEach(function(t){s.push({context:fl,eventAst:t,dirAst:null})}),{flags:r,usedEvents:Array.from(i.values()),queryMatchesExpr:a.length?Kt(a):$a,hostBindings:o,hostEvents:s}},t.prototype._visitDirective=function(t,e,n,r,i,o,s,a){var c=this,u=this.nodes.length;this.nodes.push(null),e.directive.queries.forEach(function(t,n){var r=e.contentQueryStartId+n,i=67108864|Be(a,r,t.first),o=t.first?0:1;c.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:i,nodeDef:Gt(na.queryDef).callFn([Qt(i),Qt(r),new Ka([new Ya(t.propertyName,Qt(o),!1)])])}})});var l=this.nodes.length-u-1,p=this._visitProviderOrDirective(t,o),h=p.flags,d=p.queryMatchExprs,f=p.providerExpr,y=p.depsExpr;i.forEach(function(e){e.value&&S(e.value)===S(t.token)&&(c.refNodeIndices[e.name]=u,d.push(Kt([Qt(e.name),Qt(4)])))}),e.directive.isComponent&&(h|=32768);var g=e.inputs.map(function(t,e){var n=Kt([Qt(e),Qt(t.directiveName)]);return new Ya(t.directiveName,n,!1)}),v=[],m=e.directive;Object.keys(m.outputs).forEach(function(t){var e=m.outputs[t];s.has(e)&&v.push(new Ya(t,Qt(e),!1))});var b=[];(e.inputs.length||(327680&h)>0)&&(b=e.inputs.map(function(t,e){return c._preprocessUpdateExpression({nodeIndex:u,bindingIndex:e,sourceSpan:t.sourceSpan,context:fl,value:t.value})}));var _=Gt(na.nodeValue).callFn([hl,Qt(u)]),x=e.hostProperties.map(function(t){return{context:_,dirAst:e,inputAst:t}}),w=e.hostEvents.map(function(t){return{context:_,eventAst:t,dirAst:e}}),O=u;return this.nodes[u]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:16384|h,nodeDef:Gt(na.directiveDef).callFn([Qt(O),Qt(h),d.length?Kt(d):$a,Qt(l),f,y,g.length?new Ka(g):$a,v.length?new Ka(v):$a]),updateDirectives:b,directive:e.directive.type}},{hostBindings:x,hostEvents:w}},t.prototype._visitProvider=function(t,e){this._addProviderNode(this._visitProviderOrDirective(t,e))},t.prototype._visitComponentFactoryResolverProvider=function(t){var e=t.find(function(t){return t.directive.isComponent});if(e&&e.directive.entryComponents.length){var n=ce(this.reflector,this.outputCtx,8192,e.directive.entryComponents),r=n.providerExpr,i=n.depsExpr,o=n.flags,s=n.tokenExpr;this._addProviderNode({providerExpr:r,depsExpr:i,flags:o,tokenExpr:s,queryMatchExprs:[],sourceSpan:e.sourceSpan})}},t.prototype._addProviderNode=function(t){this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:t.flags,nodeDef:Gt(na.providerDef).callFn([Qt(t.flags),t.queryMatchExprs.length?Kt(t.queryMatchExprs):$a,t.tokenExpr,t.providerExpr,t.depsExpr])}})},t.prototype._visitProviderOrDirective=function(t,e){var n=[];e.forEach(function(e){S(e.value)===S(t.token)&&n.push(Kt([Qt(e.queryId),Qt(4)]))});var r=re(this.outputCtx,t),i=r.providerExpr,o=r.depsExpr,s=r.flags,a=r.tokenExpr;return{flags:0|s,queryMatchExprs:n,providerExpr:i,depsExpr:o,tokenExpr:a,sourceSpan:t.sourceSpan}},t.prototype.getLocal=function(t){if(t==Qu.event.name)return Qu.event;for(var e=hl,n=this;n;n=n.parent,e=e.prop("parent").cast(_a)){var r=n.refNodeIndices[t];if(null!=r)return Gt(na.nodeValue).callFn([e,Qt(r)]);var i=n.variables.find(function(e){return e.name===t});if(i){var o=i.value||"$implicit";return e.prop("context").prop(o)}}return null},t.prototype._createLiteralArrayConverter=function(t,e){if(0===e){var n=Gt(na.EMPTY_ARRAY);return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:32,nodeDef:Gt(na.pureArrayDef).callFn([Qt(r),Qt(e)])}}),function(t){return Ne(r,t)}},t.prototype._createLiteralMapConverter=function(t,e){if(0===e.length){var n=Gt(na.EMPTY_MAP);return function(){return n}}var r=Xt(e.map(function(t,e){return Object(wn.a)({},t,{value:Qt(e)})})),i=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:64,nodeDef:Gt(na.pureObjectDef).callFn([Qt(i),r])}}),function(t){return Ne(i,t)}},t.prototype._createPipeConverter=function(t,e,n){var r=this.usedPipes.find(function(t){return t.name===e});if(r.pure){var i=this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:128,nodeDef:Gt(na.purePipeDef).callFn([Qt(i),Qt(n)])}});for(var o=hl,s=this;s.parent;)s=s.parent,o=o.prop("parent").cast(_a);var a=s.purePipeNodeIndices[e],c=Gt(na.nodeValue).callFn([o,Qt(a)]);return function(e){return Le(t.nodeIndex,t.bindingIndex,Ne(i,[c].concat(e)))}}var u=this._createPipe(t.sourceSpan,r),l=Gt(na.nodeValue).callFn([hl,Qt(u)]);return function(e){return Le(t.nodeIndex,t.bindingIndex,l.callMethod("transform",e))}},t.prototype._createPipe=function(t,e){var n=this,r=this.nodes.length,i=0;e.type.lifecycleHooks.forEach(function(t){t===ra.OnDestroy&&(i|=ae(t))});var o=e.type.diDeps.map(function(t){return se(n.outputCtx,t)});return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:16,nodeDef:Gt(na.pipeDef).callFn([Qt(i),n.outputCtx.importExpr(e.type.reference),Kt(o)])}}),r},t.prototype._preprocessUpdateExpression=function(t){var e=this;return{nodeIndex:t.nodeIndex,bindingIndex:t.bindingIndex,sourceSpan:t.sourceSpan,context:t.context,value:Te({createLiteralArrayConverter:function(n){return e._createLiteralArrayConverter(t.sourceSpan,n)},createLiteralMapConverter:function(n){return e._createLiteralMapConverter(t.sourceSpan,n)},createPipeConverter:function(n,r){return e._createPipeConverter(t,n,r)}},t.value)}},t.prototype._createNodeExpressions=function(){function t(t,r,i,o){var s=[],a=i.map(function(t){var r=t.sourceSpan,i=t.context,o=t.value,a=""+n++,c=je(i===fl?e:null,i,o,a),u=c.stmts,l=c.currValExpr;return s.push.apply(s,u.map(function(t){return zt(t,r)})),Ut(l,r)});return(i.length||o)&&s.push(zt(Ne(t,a).toStmt(),r)),s}var e=this,n=0,r=[],i=[],o=this.nodes.map(function(e,n){var o=e(),s=o.nodeDef,a=o.nodeFlags,c=o.updateDirectives,u=o.updateRenderer,l=o.sourceSpan;u&&r.push.apply(r,t(n,l,u,!1)),c&&i.push.apply(i,t(n,l,c,(327680&a)>0));return Ut(3&a?new Xa([pl.callFn([]).callFn([]),s]):s,l)});return{updateRendererStmts:r,updateDirectivesStmts:i,nodeDefExprs:o}},t.prototype._createElementHandleEventFn=function(t,e){var n=this,r=[],i=0;e.forEach(function(t){var e=t.context,o=t.eventAst,s=t.dirAst,a=""+i++,c=Ee(e===fl?n:null,e,o.handler,a),u=c.stmts,l=c.allowDefault,p=u;l&&p.push(gl.set(l.and(gl)).toStmt());var h=Ve(o,s),d=He(h.target,h.name);r.push(zt(new cc(Qt(d).identical(yl),p),o.sourceSpan))});var o;if(r.length>0){var s=[gl.set(Qt(!0)).toDeclStmt(wa)];!this.component.isHost&&Ht(r).has(fl.name)&&s.push(fl.set(hl.prop("component")).toDeclStmt(this.compType)),o=$t([new Ha(hl.name,xa),new Ha(yl.name,xa),new Ha(Qu.event.name,xa)],s.concat(r,[new rc(gl)]),xa)}else o=$a;return o},t.prototype.visitDirective=function(t,e){},t.prototype.visitDirectiveProperty=function(t,e){},t.prototype.visitReference=function(t,e){},t.prototype.visitVariable=function(t,e){},t.prototype.visitEvent=function(t,e){},t.prototype.visitElementProperty=function(t,e){},t.prototype.visitAttr=function(t,e){},t}(),ml=function(){function t(t,e,n,r){void 0===r&&(r=null),this._htmlParser=t,this._implicitTags=e,this._implicitAttrs=n,this._locale=r,this._messages=[]}return t.prototype.updateFromTemplate=function(t,e,n){var r=this._htmlParser.parse(t,e,!0,n);if(r.errors.length)return r.errors;var i=function(t,e,n,r){return new _s(n,r).extract(t,e)}(r.rootNodes,n,this._implicitTags,this._implicitAttrs);return i.errors.length?i.errors:((o=this._messages).push.apply(o,i.messages),[]);var o},t.prototype.getMessages=function(){return this._messages},t.prototype.write=function(t,e){var n={},r=new bl;this._messages.forEach(function(e){var r=t.digest(e);n.hasOwnProperty(r)?(i=n[r].sources).push.apply(i,e.sources):n[r]=e;var i});var i=Object.keys(n).map(function(i){var o=t.createNameMapper(n[i]),s=n[i],a=o?r.convert(s.nodes,o):s.nodes,c=new Xo(a,{},{},s.meaning,s.description,i);return c.sources=s.sources,e&&c.sources.forEach(function(t){return t.filePath=e(t.filePath)}),c});return t.write(i,this._locale)},t}(),bl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(wn.b)(e,t),e.prototype.convert=function(t,e){var n=this;return e?t.map(function(t){return t.visit(n,e)}):t},e.prototype.visitTagPlaceholder=function(t,e){var n=this,r=e.toPublicName(t.startName),i=t.closeName?e.toPublicName(t.closeName):t.closeName,o=t.children.map(function(t){return t.visit(n,e)});return new Jo(t.tag,t.attrs,r,i,o,t.isVoid,t.sourceSpan)},e.prototype.visitPlaceholder=function(t,e){return new ts(t.value,e.toPublicName(t.name),t.sourceSpan)},e.prototype.visitIcuPlaceholder=function(t,e){return new es(t.value,e.toPublicName(t.name),t.sourceSpan)},e}(ns),_l=function(){function t(t,e,n){this.srcFileUrl=t,this.genFileUrl=e,"string"==typeof n?(this.source=n,this.stmts=null):(this.source=null,this.stmts=n)}return t.prototype.isEquivalent=function(t){return this.genFileUrl===t.genFileUrl&&(this.source?this.source===t.source:null!=t.stmts&&Bt(this.stmts,t.stmts))},t}(),xl=function(){return function(t,e){this.symbol=t,this.metadata=e}}(),wl=function(){function t(t,e,n,r){this.host=t,this.staticSymbolCache=e,this.summaryResolver=n,this.errorRecorder=r,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set,this.importAs=new Map,this.symbolResourcePaths=new Map,this.symbolFromFile=new Map,this.knownFileNameToModuleNames=new Map}return t.prototype.resolveSymbol=function(t){if(t.members.length>0)return this._resolveSymbolMembers(t);var e=this._resolveSymbolFromSummary(t);if(e)return e;var n=this.resolvedSymbols.get(t);return n||(this._createSymbolsOf(t.filePath),this.resolvedSymbols.get(t))},t.prototype.getImportAs=function(t){if(t.members.length){var e=this.getStaticSymbol(t.filePath,t.name);return(r=this.getImportAs(e))?this.getStaticSymbol(r.filePath,r.name,t.members):null}var n=function(t){return t.replace(Zs,".")}(t.filePath);if(n!==t.filePath){var r,i=function(t){return t.replace(Js,"")}(t.name);e=this.getStaticSymbol(n,i,t.members);return(r=this.getImportAs(e))?this.getStaticSymbol(At(r.filePath),It(r.name),e.members):null}var o=this.summaryResolver.getImportAs(t);return o||(o=this.importAs.get(t)),o},t.prototype.getResourcePath=function(t){return this.symbolResourcePaths.get(t)||t.filePath},t.prototype.getTypeArity=function(t){if(function(t){return Qs.test(t)}(t.filePath))return null;for(var e=qe(this.resolveSymbol(t));e&&e.metadata instanceof _r;)e=qe(this.resolveSymbol(e.metadata));return e&&e.metadata&&e.metadata.arity||null},t.prototype.getKnownModuleName=function(t){return this.knownFileNameToModuleNames.get(t)||null},t.prototype.recordImportAs=function(t,e){t.assertNoMembers(),e.assertNoMembers(),this.importAs.set(t,e)},t.prototype.recordModuleNameForFileName=function(t,e){this.knownFileNameToModuleNames.set(t,e)},t.prototype.invalidateFile=function(t){this.metadataCache.delete(t),this.resolvedFilePaths.delete(t);var e=this.symbolFromFile.get(t);if(e){this.symbolFromFile.delete(t);for(var n=0,r=e;n<r.length;n++){var i=r[n];this.resolvedSymbols.delete(i),this.importAs.delete(i),this.symbolResourcePaths.delete(i)}}},t.prototype.ignoreErrorsFor=function(t){var e=this.errorRecorder;this.errorRecorder=function(){};try{return t()}finally{this.errorRecorder=e}},t.prototype._resolveSymbolMembers=function(t){var e=t.members,n=this.resolveSymbol(this.getStaticSymbol(t.filePath,t.name));if(!n)return null;var r=qe(n.metadata);if(r instanceof _r)return new xl(t,this.getStaticSymbol(r.filePath,r.name,e));if(!r||"class"!==r.__symbolic){for(var i=r,o=0;o<e.length&&i;o++)i=i[e[o]];return new xl(t,i)}return r.statics&&1===e.length?new xl(t,r.statics[e[0]]):null},t.prototype._resolveSymbolFromSummary=function(t){var e=this.summaryResolver.resolveSummary(t);return e?new xl(t,e.metadata):null},t.prototype.getStaticSymbol=function(t,e,n){return this.staticSymbolCache.get(t,e,n)},t.prototype.hasDecorators=function(t){var e=this.getModuleMetadata(t);return!!e.metadata&&Object.keys(e.metadata).some(function(t){var n=e.metadata[t];return n&&"class"===n.__symbolic&&n.decorators})},t.prototype.getSymbolsOf=function(t){var e=this.summaryResolver.getSymbolsOf(t);if(e)return e;this._createSymbolsOf(t);var n=[];return this.resolvedSymbols.forEach(function(e){e.symbol.filePath===t&&n.push(e.symbol)}),n},t.prototype._createSymbolsOf=function(t){var e=this;if(!this.resolvedFilePaths.has(t)){this.resolvedFilePaths.add(t);var n=[],r=this.getModuleMetadata(t);if(r.importAs&&this.knownFileNameToModuleNames.set(t,r.importAs),r.exports)for(var i=function(r){if(r.export)r.export.forEach(function(i){var o,s=o=Ge(o="string"==typeof i?i:i.as);"string"!=typeof i&&(s=Ge(i.name));var a=e.resolveModule(r.from,t);if(a){var c=e.getStaticSymbol(a,s),u=e.getStaticSymbol(t,o);n.push(e.createExport(u,c))}});else{var i=o.resolveModule(r.from,t);if(i){o.getSymbolsOf(i).forEach(function(r){var i=e.getStaticSymbol(t,r.name);n.push(e.createExport(i,r))})}}},o=this,s=0,a=r.exports;s<a.length;s++){i(a[s])}if(r.metadata){var c=new Set(Object.keys(r.metadata).map(Ge)),u=r.origins||{};Object.keys(r.metadata).forEach(function(i){var o=r.metadata[i],s=Ge(i),a=e.getStaticSymbol(t,s),l=u.hasOwnProperty(i)&&u[i];if(l){var p=e.resolveModule(l,t);p?e.symbolResourcePaths.set(a,p):e.reportError(new Error("Couldn't resolve original symbol for "+l+" from "+t))}n.push(e.createResolvedSymbol(a,t,c,o))})}n.forEach(function(t){return e.resolvedSymbols.set(t.symbol,t)}),this.symbolFromFile.set(t,n.map(function(t){return t.symbol}))}},t.prototype.createResolvedSymbol=function(t,e,n,r){if(this.summaryResolver.isLibraryFile(t.filePath)&&r&&"class"===r.__symbolic){var i={__symbolic:"class",arity:r.arity};return new xl(t,i)}var o,a=function(){return o||(o=e.replace(/((\.ts)|(\.d\.ts)|)$/,".ts").replace(/^.*node_modules[/\\]/,"")),o},c=this,u=s(r,new(function(r){function i(){return null!==r&&r.apply(this,arguments)||this}return Object(wn.b)(i,r),i.prototype.visitStringMap=function(i,o){var s=i.__symbolic;if("function"===s){var u=o.length;o.push.apply(o,i.parameters||[]);var l=r.prototype.visitStringMap.call(this,i,o);return o.length=u,l}if("reference"!==s)return"error"===s?Object(wn.a)({},i,{fileName:a()}):r.prototype.visitStringMap.call(this,i,o);var p=i.module,h=i.name?Ge(i.name):i.name;if(!h)return null;var d=void 0;return p?(d=c.resolveModule(p,t.filePath))?{__symbolic:"resolved",symbol:c.getStaticSymbol(d,h),line:i.line,character:i.character,fileName:a()}:{__symbolic:"error",message:"Could not resolve "+p+" relative to "+t.filePath+".",line:i.line,character:i.character,fileName:a()}:o.indexOf(h)>=0?{__symbolic:"reference",name:h}:n.has(h)?c.getStaticSymbol(e,h):void 0},i}(Qn)),[]),l=qe(u);return l instanceof _r?this.createExport(t,l):new xl(t,u)},t.prototype.createExport=function(t,e){return t.assertNoMembers(),e.assertNoMembers(),this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(e.filePath)&&this.importAs.set(e,this.getImportAs(t)||t),new xl(t,e)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.getModuleMetadata=function(t){var e=this.metadataCache.get(t);if(!e){var n=this.host.getMetadataFor(t);if(n){var r=-1;n.forEach(function(t){t.version>r&&(r=t.version,e=t)})}if(e||(e={__symbolic:"module",version:4,module:t,metadata:{}}),4!=e.version){var i=2==e.version?"Unsupported metadata version "+e.version+" for module "+t+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+t+", found version "+e.version+", expected 4";this.reportError(new Error(i))}this.metadataCache.set(t,e)}return e},t.prototype.getSymbolByModule=function(t,e,n){var r=this.resolveModule(t,n);return r?this.getStaticSymbol(r,e):(this.reportError(new Error("Could not resolve module "+t+(n?" relative to "+n:""))),this.getStaticSymbol("ERROR:"+t,e))},t.prototype.resolveModule=function(t,e){try{return this.host.moduleNameToFileName(t,e)}catch(n){console.error("Could not resolve module '"+t+"' relative to file "+e),this.reportError(n,void 0,e)}return null},t}(),Ol=function(t){function e(e,n,r){var i=t.call(this)||this;return i.symbolResolver=e,i.summaryResolver=n,i.srcFileName=r,i.symbols=[],i.indexBySymbol=new Map,i.reexportedBy=new Map,i.processedSummaryBySymbol=new Map,i.processedSummaries=[],i.unprocessedSymbolSummariesBySymbol=new Map,i.moduleName=e.getKnownModuleName(r),i}return Object(wn.b)(e,t),e.prototype.addSummary=function(t){var e=this,n=this.unprocessedSymbolSummariesBySymbol.get(t.symbol),r=this.processedSummaryBySymbol.get(t.symbol);if(n||(n={symbol:t.symbol,metadata:void 0},this.unprocessedSymbolSummariesBySymbol.set(t.symbol,n),r={symbol:this.processValue(t.symbol,0)},this.processedSummaries.push(r),this.processedSummaryBySymbol.set(t.symbol,r)),!n.metadata&&t.metadata){var i=t.metadata||{};if("class"===i.__symbolic){var o={};Object.keys(i).forEach(function(t){"decorators"!==t&&(o[t]=i[t])}),i=o}else Ke(i)&&(function(t){return Ke(t)&&qe(t.expression)instanceof _r}(i)||function(t){return Ke(t)&&t.expression&&"select"===t.expression.__symbolic&&qe(t.expression.expression)instanceof _r}(i)||(i={__symbolic:"error",message:"Complex function calls are not supported."}));if(n.metadata=i,r.metadata=this.processValue(i,1),i instanceof _r&&this.summaryResolver.isLibraryFile(i.filePath)){var s=this.symbols[this.indexBySymbol.get(i)];(function(t){return ta.test(t)})(s.name)||this.reexportedBy.set(s,t.symbol)}}if(!n.type&&t.type&&(n.type=t.type,r.type=this.processValue(t.type,0),t.type.summaryKind===Sr.NgModule)){var a=t.type;a.exportedDirectives.concat(a.exportedPipes).forEach(function(t){var n=t.reference;if(e.summaryResolver.isLibraryFile(n.filePath)&&!e.unprocessedSymbolSummariesBySymbol.has(n)){var r=e.summaryResolver.resolveSummary(n);r&&e.addSummary(r)}})}},e.prototype.serialize=function(){var t=this,e=[];return{json:JSON.stringify({moduleName:this.moduleName,summaries:this.processedSummaries,symbols:this.symbols.map(function(n,r){n.assertNoMembers();var i=void 0;if(t.summaryResolver.isLibraryFile(n.filePath)){var o=t.reexportedBy.get(n);if(o)i=t.indexBySymbol.get(o);else{var s=t.unprocessedSymbolSummariesBySymbol.get(n);s&&s.metadata&&"interface"===s.metadata.__symbolic||(i=n.name+"_"+r,e.push({symbol:n,exportAs:i}))}}return{__symbol:r,name:n.name,filePath:t.summaryResolver.toSummaryFileName(n.filePath,t.srcFileName),importAs:i}})}),exportAs:e}},e.prototype.processValue=function(t,e){return s(t,this,e)},e.prototype.visitOther=function(t,e){if(t instanceof _r){var n=this.symbolResolver.getStaticSymbol(t.filePath,t.name);return{__symbol:this.visitStaticSymbol(n,e),members:t.members}}},e.prototype.visitStaticSymbol=function(t,e){var n=this.indexBySymbol.get(t),r=null;if(1&e&&this.summaryResolver.isLibraryFile(t.filePath)){if(this.unprocessedSymbolSummariesBySymbol.has(t))return n;(r=this.loadSummary(t))&&r.metadata instanceof _r&&(n=this.visitStaticSymbol(r.metadata,e),r=null)}else if(null!=n)return n;return null==n&&(n=this.symbols.length,this.symbols.push(t)),this.indexBySymbol.set(t,n),r&&this.addSummary(r),n},e.prototype.loadSummary=function(t){var e=this.summaryResolver.resolveSummary(t);if(!e){var n=this.symbolResolver.resolveSymbol(t);n&&(e={symbol:n.symbol,metadata:n.metadata})}return e},e}(Qn),Sl=function(){function t(t,e,n){this.outputCtx=t,this.symbolResolver=e,this.summaryResolver=n,this.data=[]}return t.prototype.addSourceType=function(t,e){this.data.push({summary:t,metadata:e,isLibrary:!1})},t.prototype.addLibType=function(t){this.data.push({summary:t,metadata:null,isLibrary:!0})},t.prototype.serialize=function(t){for(var e=this,n=new Map,r=0,i=t;r<i.length;r++){var o=i[r],s=o.symbol,a=o.exportAs;n.set(s,a)}for(var c=new Set,u=0,l=this.data;u<l.length;u++){var p=l[u],h=p.summary,d=p.metadata,f=p.isLibrary;if(h.summaryKind===Sr.NgModule){c.add(h.type.reference);for(var y=0,g=h.modules;y<g.length;y++){var v=g[y];c.add(v.reference)}}if(!f){It(h.type.reference.name);Ye(this.outputCtx,h.type.reference,this.serializeSummaryWithDeps(h,d))}}c.forEach(function(t){if(e.summaryResolver.isLibraryFile(t.filePath)){var r=It(n.get(t)||t.name);e.outputCtx.statements.push(Wt(r).set(e.serializeSummaryRef(t)).toDeclStmt(null,[Za.Exported]))}})},t.prototype.serializeSummaryWithDeps=function(t,e){var n=this,r=[this.serializeSummary(t)],i=[];if(e instanceof Pr)r.push.apply(r,e.declaredDirectives.concat(e.declaredPipes).map(function(t){return t.reference}).concat(e.transitiveModule.modules.map(function(t){return t.reference}).filter(function(t){return t!==e.type.reference})).map(function(t){return n.serializeSummaryRef(t)})),i=e.providers;else if(t.summaryKind===Sr.Directive){var o=t;i=o.providers.concat(o.viewProviders)}return r.push.apply(r,i.filter(function(t){return!!t.useClass}).map(function(t){return n.serializeSummary({summaryKind:Sr.Injectable,type:t.useClass})})),Kt(r)},t.prototype.serializeSummaryRef=function(t){var e=this.symbolResolver.getStaticSymbol(At(t.filePath),It(t.name));return this.outputCtx.importExpr(e)},t.prototype.serializeSummary=function(t){var e=this.outputCtx;return s(t,new(function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return Kt(t.map(function(t){return s(t,n,e)}))},t.prototype.visitStringMap=function(t,e){var n=this;return new Ka(Object.keys(t).map(function(r){return new Ya(r,s(t[r],n,e),!1)}))},t.prototype.visitPrimitive=function(t,e){return Qt(t)},t.prototype.visitOther=function(t,n){if(t instanceof _r)return e.importExpr(t);throw new Error("Illegal State: Encountered value "+t)},t}()),null)},t}(),Cl=function(t){function e(e,n){var r=t.call(this)||this;return r.symbolCache=e,r.summaryResolver=n,r}return Object(wn.b)(e,t),e.prototype.deserialize=function(t,e){var n=this,r=JSON.parse(e),i=[];this.symbols=r.symbols.map(function(e){return n.symbolCache.get(n.summaryResolver.fromSummaryFileName(e.filePath,t),e.name)}),r.symbols.forEach(function(e,r){var o=n.symbols[r],s=e.importAs;"number"==typeof s?i.push({symbol:o,importAs:n.symbols[s]}):"string"==typeof s&&i.push({symbol:o,importAs:n.symbolCache.get(Et(t),s)})});var o=s(r.summaries,this,null);return{moduleName:r.moduleName,summaries:o,importAs:i}},e.prototype.visitStringMap=function(e,n){if("__symbol"in e){var r=this.symbols[e.__symbol],i=e.members;return i.length?this.symbolCache.get(r.filePath,r.name,i):r}return t.prototype.visitStringMap.call(this,e,n)},e}(Qn),El={Basic:1,TypeCheck:2,All:3};El[El.Basic]="Basic",El[El.TypeCheck]="TypeCheck",El[El.All]="All";!function(){function t(t,e,n,r,i,o,s,a,c,u,l,p,h){this._config=t,this._options=e,this._host=n,this._reflector=r,this._metadataResolver=i,this._templateParser=o,this._styleCompiler=s,this._viewCompiler=a,this._typeCheckCompiler=c,this._ngModuleCompiler=u,this._outputEmitter=l,this._summaryResolver=p,this._symbolResolver=h,this._templateAstCache=new Map,this._analyzedFiles=new Map}t.prototype.clearCache=function(){this._metadataResolver.clearCache()},t.prototype.analyzeModulesSync=function(t){var e=this,n=Je(t,this._host,this._symbolResolver,this._metadataResolver);return n.ngModules.forEach(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!0)}),n},t.prototype.analyzeModulesAsync=function(t){var e=this,n=Je(t,this._host,this._symbolResolver,this._metadataResolver);return Promise.all(n.ngModules.map(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){return n})},t.prototype._analyzeFile=function(t){var e=this._analyzedFiles.get(t);return e||(e=en(this._host,this._symbolResolver,this._metadataResolver,t),this._analyzedFiles.set(t,e)),e},t.prototype.findGeneratedFileNames=function(t){var e=this,n=[],r=this._analyzeFile(t);(this._options.allowEmptyCodegenFiles||r.directives.length||r.pipes.length||r.injectables.length||r.ngModules.length||r.exportsNonSourceFiles)&&(n.push(Et(r.fileName,!0)),this._options.enableSummariesForJit&&n.push(At(r.fileName,!0)));var i=jt(r.fileName,!0)[1];return r.directives.forEach(function(t){var o=e._metadataResolver.getNonNormalizedDirectiveMetadata(t).metadata;o.isComponent&&o.template.styleUrls.forEach(function(t){var s=e._host.resourceNameToFileName(t,r.fileName);if(!s)throw u("Couldn't resolve resource "+t+" relative to "+r.fileName);var a=(o.template.encapsulation||e._config.defaultEncapsulation)===In.Emulated;n.push(Qe(s,a,i)),e._options.allowEmptyCodegenFiles&&n.push(Qe(s,!a,i))})}),n},t.prototype.emitBasicStub=function(t,e){var n=this._createOutputContext(t);if(t.endsWith(".ngfactory.ts")){if(!e)throw new Error("Assertion error: require the original file for .ngfactory.ts stubs. File: "+t);var r=this._analyzeFile(e);this._createNgFactoryStub(n,r,El.Basic)}else if(t.endsWith(".ngsummary.ts")){if(this._options.enableSummariesForJit){if(!e)throw new Error("Assertion error: require the original file for .ngsummary.ts stubs. File: "+t);r=this._analyzeFile(e);Xe(n),r.ngModules.forEach(function(t){!function(t,e){Ye(t,e,$a)}(n,t.type.reference)})}}else t.endsWith(".ngstyle.ts")&&Xe(n);return this._codegenSourceModule("unknown",n)},t.prototype.emitTypeCheckStub=function(t,e){var n=this._analyzeFile(e),r=this._createOutputContext(t);return t.endsWith(".ngfactory.ts")&&this._createNgFactoryStub(r,n,El.TypeCheck),r.statements.length>0?this._codegenSourceModule(n.fileName,r):null},t.prototype.loadFilesAsync=function(t){var e=this,n=t.map(function(t){return e._analyzeFile(t)}),r=[];return n.forEach(function(t){return t.ngModules.forEach(function(t){return r.push(e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1))})}),Promise.all(r).then(function(t){return rn(n)})},t.prototype.loadFilesSync=function(t){var e=this,n=t.map(function(t){return e._analyzeFile(t)});return n.forEach(function(t){return t.ngModules.forEach(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!0)})}),rn(n)},t.prototype._createNgFactoryStub=function(t,e,n){var r=this,i=0;e.ngModules.forEach(function(e,o){r._ngModuleCompiler.createStub(t,e.type.reference);var s=e.transitiveModule.directives.map(function(t){return t.reference}).concat(e.transitiveModule.pipes.map(function(t){return t.reference}),e.importedModules.map(function(t){return t.type.reference}),e.exportedModules.map(function(t){return t.type.reference}),r._externalIdentifierReferences([na.TemplateRef,na.ElementRef])),a=new Map;s.forEach(function(t,e){r._host.isSourceFile(t.filePath)&&a.set(t,"_decl"+o+"_"+e)}),a.forEach(function(e,n){t.statements.push(Wt(e).set($a.cast(_a)).toDeclStmt(Yt(t.importExpr(n))))}),n&El.TypeCheck&&e.declaredDirectives.forEach(function(n){var o=r._metadataResolver.getDirectiveMetadata(n.reference);o.isComponent&&(i++,r._createTypeCheckBlock(t,o.type.reference.name+"_Host_"+i,e,r._metadataResolver.getHostComponentMetadata(o),[o.type],a),r._createTypeCheckBlock(t,o.type.reference.name+"_"+i,e,o,e.transitiveModule.directives,a))})}),0===t.statements.length&&Xe(t)},t.prototype._externalIdentifierReferences=function(t){for(var e=[],n=0,r=t;n<r.length;n++){var i=r[n],o=Rt(this._reflector,i);o.identifier&&e.push(o.identifier.reference)}return e},t.prototype._createTypeCheckBlock=function(t,e,n,r,i,o){var s=this._parseTemplate(r,n,i),a=s.template,c=s.pipes;(u=t.statements).push.apply(u,this._typeCheckCompiler.compileComponent(e,r,a,c,o));var u},t.prototype.emitMessageBundle=function(t,e){var n=this,r=[],i=new qs,o=new ml(i,[],{},e);if(t.files.forEach(function(t){var e=[];t.directives.forEach(function(t){var r=n._metadataResolver.getDirectiveMetadata(t);r&&r.isComponent&&e.push(r)}),e.forEach(function(e){var n=e.template.template,i=Vr.fromArray(e.template.interpolation);r.push.apply(r,o.updateFromTemplate(n,t.fileName,i))})}),r.length)throw new Error(r.map(function(t){return t.toString()}).join("\n"));return o},t.prototype.emitAllImpls=function(t){var e=this,n=t.ngModuleByPipeOrDirective;return E(t.files.map(function(t){return e._compileImplFile(t.fileName,n,t.directives,t.pipes,t.ngModules,t.injectables)}))},t.prototype._compileImplFile=function(t,e,n,r,i,o){var s=this,a=jt(t,!0)[1],c=[],u=this._createOutputContext(Et(t,!0));if(c.push.apply(c,this._createSummary(t,n,r,i,o,u)),i.forEach(function(t){return s._compileModule(u,t)}),n.forEach(function(n){var r=s._metadataResolver.getDirectiveMetadata(n);if(r.isComponent){var i=e.get(n);if(!i)throw new Error("Internal Error: cannot determine the module for component "+m(r.type)+"!");var o=s._styleCompiler.compileComponent(u,r);r.template.externalStylesheets.forEach(function(e){var n=s._styleCompiler.needsStyleShim(r);c.push(s._codegenStyles(t,r,e,n,a)),s._options.allowEmptyCodegenFiles&&c.push(s._codegenStyles(t,r,e,!n,a))});s._compileComponent(u,r,i,i.transitiveModule.directives,o,a);s._compileComponentFactory(u,r,i,a)}}),u.statements.length>0||this._options.allowEmptyCodegenFiles){var l=this._codegenSourceModule(t,u);c.unshift(l)}return c},t.prototype._createSummary=function(t,e,n,r,i,o){var s=this,a=this._symbolResolver.getSymbolsOf(t).map(function(t){return s._symbolResolver.resolveSymbol(t)}),c=r.map(function(t){return{summary:s._metadataResolver.getNgModuleSummary(t.type.reference),metadata:s._metadataResolver.getNgModuleMetadata(t.type.reference)}}).concat(e.map(function(t){return{summary:s._metadataResolver.getDirectiveSummary(t),metadata:s._metadataResolver.getDirectiveMetadata(t)}}),n.map(function(t){return{summary:s._metadataResolver.getPipeSummary(t),metadata:s._metadataResolver.getPipeMetadata(t)}}),i.map(function(t){return{summary:s._metadataResolver.getInjectableSummary(t),metadata:s._metadataResolver.getInjectableSummary(t).type}})),u=this._options.enableSummariesForJit?this._createOutputContext(At(t,!0)):null,l=function(t,e,n,r,i,o){var s=new Ol(r,n,t);i.forEach(function(t){return s.addSummary({symbol:t.symbol,metadata:t.metadata})}),o.forEach(function(t){var e=t.summary;t.metadata,s.addSummary({symbol:e.type.reference,metadata:void 0,type:e})});var a=s.serialize(),c=a.json,u=a.exportAs;if(e){var l=new Sl(e,r,n);o.forEach(function(t){var e=t.summary,n=t.metadata;l.addSourceType(e,n)}),s.unprocessedSymbolSummariesBySymbol.forEach(function(t){n.isLibraryFile(t.symbol.filePath)&&t.type&&l.addLibType(t.type)}),l.serialize(u)}return{json:c,exportAs:u}}(t,u,this._summaryResolver,this._symbolResolver,a,c),p=l.json;l.exportAs.forEach(function(t){o.statements.push(Wt(t.exportAs).set(o.importExpr(t.symbol)).toDeclStmt(null,[Za.Exported]))});var h=[new _l(t,Pt(t),p)];return u&&h.push(this._codegenSourceModule(t,u)),h},t.prototype._compileModule=function(t,e){var n=[];if(this._options.locale){var r=this._options.locale.replace(/_/g,"-");n.push({token:Rt(this._reflector,na.LOCALE_ID),useValue:r})}this._options.i18nFormat&&n.push({token:Rt(this._reflector,na.TRANSLATIONS_FORMAT),useValue:this._options.i18nFormat}),this._ngModuleCompiler.compile(t,e,n)},t.prototype._compileComponentFactory=function(t,e,n,r){var i=this._metadataResolver.getHostComponentMetadata(e),o=this._compileComponent(t,i,n,[e.type],null,r).viewClassVar,s=w(e.type.reference),a=[];for(var c in e.inputs){var u=e.inputs[c];a.push(new Ya(c,Qt(u),!1))}var l=[];for(var c in e.outputs){u=e.outputs[c];l.push(new Ya(c,Qt(u),!1))}t.statements.push(Wt(s).set(Gt(na.createComponentFactory).callFn([Qt(e.selector),t.importExpr(e.type.reference),Wt(o),new Ka(a),new Ka(l),Kt(e.template.ngContentSelectors.map(function(t){return Qt(t)}))])).toDeclStmt(qt(na.ComponentFactory,[Yt(t.importExpr(e.type.reference))],[da.Const]),[Za.Final,Za.Exported]))},t.prototype._compileComponent=function(t,e,n,r,i,o){var s=this._parseTemplate(e,n,r),a=s.template,c=s.pipes,u=i?Wt(i.stylesVar):Kt([]),l=this._viewCompiler.compileComponent(t,e,a,u,c);return i&&$e(this._symbolResolver,i,this._styleCompiler.needsStyleShim(e),o),l},t.prototype._parseTemplate=function(t,e,n){var r=this;if(this._templateAstCache.has(t.type.reference))return this._templateAstCache.get(t.type.reference);var i=t.template.preserveWhitespaces,o=n.map(function(t){return r._metadataResolver.getDirectiveSummary(t.reference)}),s=e.transitiveModule.pipes.map(function(t){return r._metadataResolver.getPipeSummary(t.reference)}),a=this._templateParser.parse(t,t.template.htmlAst,o,s,e.schemas,j(e.type,t,t.template),i);return this._templateAstCache.set(t.type.reference,a),a},t.prototype._createOutputContext=function(t){var e=this;return{statements:[],genFilePath:t,importExpr:function(n,r){if(void 0===r&&(r=null),!(n instanceof _r))throw new Error("Internal error: unknown identifier "+JSON.stringify(n));var i=e._symbolResolver.getTypeArity(n)||0,o=e._symbolResolver.getImportAs(n)||n,s=o.filePath,a=o.name,c=o.members,u=e._fileNameToModuleName(s,t),l=u===e._fileNameToModuleName(t,t)?null:u,p=r||[],h=i-p.length,d=p.concat(new Array(h).fill(_a));return c.reduce(function(t,e){return t.prop(e)},Gt(new Na(l,a,null),d))}}},t.prototype._fileNameToModuleName=function(t,e){return this._summaryResolver.getKnownModuleName(t)||this._symbolResolver.getKnownModuleName(t)||this._host.fileNameToModuleName(t,e)},t.prototype._codegenStyles=function(t,e,n,r,i){var o=this._createOutputContext(Qe(n.moduleUrl,r,i)),s=this._styleCompiler.compileStyles(o,e,n,r);return $e(this._symbolResolver,s,r,i),this._codegenSourceModule(t,o)},t.prototype._codegenSourceModule=function(t,e){return new _l(t,e.genFilePath,e.statements)},t.prototype.listLazyRoutes=function(t,e){function n(t,e,i){if(void 0===e&&(e=new Set),void 0===i&&(i=[]),e.has(t)||!t.name)return i;e.add(t);for(var o=0,s=ze(r._metadataResolver.getNgModuleMetadata(t,!0),r._reflector);o<s.length;o++){var a=s[o];i.push(a),n(a.referencedModule,e,i)}return i}var r=this;if(t){return n(We(t,this._reflector).referencedModule)}if(e){for(var i=[],o=0,s=e.ngModules;o<s.length;o++)for(var a=0,c=ze(s[o],this._reflector);a<c.length;a++){var u=c[a];i.push(u)}return i}throw new Error("Either route or analyzedModules has to be specified!")}}();var Tl="ngFormattedMessage",jl="@angular/core",Pl=/^\$.*\$$/,Al={__symbolic:"ignore"},Il="useValue",kl="provide",Rl=new Set([Il,"useFactory","data"]),Ml=function(){function t(t,e,n,r,i){void 0===n&&(n=[]),void 0===r&&(r=[]);var o=this;this.summaryResolver=t,this.symbolResolver=e,this.errorRecorder=i,this.annotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.conversionMap=new Map,this.annotationForParentClassWithSummaryKind=new Map,this.initializeConversionMap(),n.forEach(function(t){return o._registerDecoratorOrConstructor(o.getStaticSymbol(t.filePath,t.name),t.ctor)}),r.forEach(function(t){return o._registerFunction(o.getStaticSymbol(t.filePath,t.name),t.fn)}),this.annotationForParentClassWithSummaryKind.set(Sr.Directive,[An,Rn]),this.annotationForParentClassWithSummaryKind.set(Sr.Pipe,[Mn]),this.annotationForParentClassWithSummaryKind.set(Sr.NgModule,[Vn]),this.annotationForParentClassWithSummaryKind.set(Sr.Injectable,[Un,Mn,An,Rn,Vn])}return t.prototype.componentModuleUrl=function(t){var e=this.findSymbolDeclaration(t);return this.symbolResolver.getResourcePath(e)},t.prototype.resolveExternalReference=function(t,e){var n=this.symbolResolver.getSymbolByModule(t.moduleName,t.name,e),r=this.findSymbolDeclaration(n);return e||(this.symbolResolver.recordModuleNameForFileName(n.filePath,t.moduleName),this.symbolResolver.recordImportAs(r,n)),r},t.prototype.findDeclaration=function(t,e,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(t,e,n))},t.prototype.tryFindDeclaration=function(t,e){var n=this;return this.symbolResolver.ignoreErrorsFor(function(){return n.findDeclaration(t,e)})},t.prototype.findSymbolDeclaration=function(t){var e=this.symbolResolver.resolveSymbol(t);if(e){var n=e.metadata;if(n&&"resolved"===n.__symbolic&&(n=n.symbol),n instanceof _r)return this.findSymbolDeclaration(e.metadata)}return t},t.prototype.annotations=function(t){var e=this.annotationCache.get(t);if(!e){e=[];var n=this.getTypeMetadata(t),r=this.findParentType(t,n);if(r){var i=this.annotations(r);e.push.apply(e,i)}var o=[];if(n.decorators&&(o=this.simplify(t,n.decorators),e.push.apply(e,o)),r&&!this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(r.filePath)){var s=this.summaryResolver.resolveSummary(r);if(s&&s.type){var a=this.annotationForParentClassWithSummaryKind.get(s.type.summaryKind);a.some(function(t){return o.some(function(e){return t.isTypeOf(e)})})||this.reportError(hn(cn("Class "+t.name+" in "+t.filePath+" extends from a "+Sr[s.type.summaryKind]+" in another compilation unit without duplicating the decorator",void 0,"Please add a "+a.map(function(t){return t.ngMetadataName}).join(" or ")+" decorator to the class"),t),t)}}this.annotationCache.set(t,e.filter(function(t){return!!t}))}return e},t.prototype.propMetadata=function(t){var e=this,n=this.propertyCache.get(t);if(!n){var r=this.getTypeMetadata(t);n={};var i=this.findParentType(t,r);if(i){var o=this.propMetadata(i);Object.keys(o).forEach(function(t){n[t]=o[t]})}var s=r.members||{};Object.keys(s).forEach(function(r){var i=s[r].find(function(t){return"property"==t.__symbolic||"method"==t.__symbolic}),o=[];n[r]&&o.push.apply(o,n[r]),n[r]=o,i&&i.decorators&&o.push.apply(o,e.simplify(t,i.decorators))}),this.propertyCache.set(t,n)}return n},t.prototype.parameters=function(t){var e=this;if(!(t instanceof _r))return this.reportError(new Error("parameters received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),[];try{var n=this.parameterCache.get(t);if(!n){var r=this.getTypeMetadata(t),i=this.findParentType(t,r),o=r?r.members:null,s=o?o.__ctor__:null;if(s){var a=s.find(function(t){return"constructor"==t.__symbolic}),c=a.parameters||[],u=this.simplify(t,a.parameterDecorators||[]);n=[],c.forEach(function(r,i){var o=[],s=e.trySimplify(t,r);s&&o.push(s);var a=u?u[i]:null;a&&o.push.apply(o,a),n.push(o)})}else i&&(n=this.parameters(i));n||(n=[]),this.parameterCache.set(t,n)}return n}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},t.prototype._methodNames=function(t){var e=this.methodCache.get(t);if(!e){var n=this.getTypeMetadata(t);e={};var r=this.findParentType(t,n);if(r){var i=this._methodNames(r);Object.keys(i).forEach(function(t){e[t]=i[t]})}var o=n.members||{};Object.keys(o).forEach(function(t){var n=o[t].some(function(t){return"method"==t.__symbolic});e[t]=e[t]||n}),this.methodCache.set(t,e)}return e},t.prototype.findParentType=function(t,e){var n=this.trySimplify(t,e.extends);if(n instanceof _r)return n},t.prototype.hasLifecycleHook=function(t,e){t instanceof _r||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(t)+" which is not a StaticSymbol"),t);try{return!!this._methodNames(t)[e]}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},t.prototype._registerDecoratorOrConstructor=function(t,e){this.conversionMap.set(t,function(t,n){return new(e.bind.apply(e,[void 0].concat(n)))})},t.prototype._registerFunction=function(t,e){this.conversionMap.set(t,function(t,n){return e.apply(void 0,n)})},t.prototype.initializeConversionMap=function(){this.injectionToken=this.findDeclaration(jl,"InjectionToken"),this.opaqueToken=this.findDeclaration(jl,"OpaqueToken"),this.ROUTES=this.tryFindDeclaration("@angular/router","ROUTES"),this.ANALYZE_FOR_ENTRY_COMPONENTS=this.findDeclaration(jl,"ANALYZE_FOR_ENTRY_COMPONENTS"),this._registerDecoratorOrConstructor(this.findDeclaration(jl,"Host"),qn),this._registerDecoratorOrConstructor(this.findDeclaration(jl,"Injectable"),Un),this._registerDecoratorOrConstructor(this.findDeclaration(jl,"Self"),Wn),this._registerDecoratorOrConstructor(this.findDeclaration(jl,"SkipSelf"),Gn),this._registerDecoratorOrConstructor(this.findDeclaration(jl,"Inject"),On),this._registerDecoratorOrConstructor(this.findDeclaration(jl,"Optional"),zn),this._registerDecoratorOrConstructor(this.findDeclaration(jl,"Attribute"),Cn),this._registerDecoratorOrConstructor(this.findDeclaration(jl,"ContentChild"),Tn),this._registerDecoratorOrConstructor(this.findDeclaration(jl,"ContentChildren"),En),this._registerDecoratorOrConstructor(this.findDeclaration(jl,"ViewChild"),Pn),this._registerDecoratorOrConstructor(this.findDeclaration(jl,"ViewChildren"),jn),this._registerDecoratorOrConstructor(this.findDeclaration(jl,"Input"),Dn),this._registerDecoratorOrConstructor(this.findDeclaration(jl,"Output"),Nn),this._registerDecoratorOrConstructor(this.findDeclaration(jl,"Pipe"),Mn),this._registerDecoratorOrConstructor(this.findDeclaration(jl,"HostBinding"),Ln),this._registerDecoratorOrConstructor(this.findDeclaration(jl,"HostListener"),Fn),this._registerDecoratorOrConstructor(this.findDeclaration(jl,"Directive"),An),this._registerDecoratorOrConstructor(this.findDeclaration(jl,"Component"),Rn),this._registerDecoratorOrConstructor(this.findDeclaration(jl,"NgModule"),Vn),this._registerDecoratorOrConstructor(this.findDeclaration(jl,"Host"),qn),this._registerDecoratorOrConstructor(this.findDeclaration(jl,"Self"),Wn),this._registerDecoratorOrConstructor(this.findDeclaration(jl,"SkipSelf"),Gn),this._registerDecoratorOrConstructor(this.findDeclaration(jl,"Optional"),zn)},t.prototype.getStaticSymbol=function(t,e,n){return this.symbolResolver.getStaticSymbol(t,e,n)},t.prototype.trySimplify=function(t,e){var n=this.errorRecorder;this.errorRecorder=function(t,e){};var r=this.simplify(t,e);return this.errorRecorder=n,r},t.prototype.simplify=function(t,e){function n(t,e,r,a){function c(t){var e=i.symbolResolver.resolveSymbol(t);return e?e.metadata:null}function u(e){return n(t,e,r,0)}function l(e,o){if(e===t)return n(e,o,r+1,a);try{return n(e,o,r+1,a)}catch(n){if(!un(n))throw n;var s=n.chain?"references '"+n.symbol.name+"'":function(t){if(t.summary)return t.summary;switch(t.message){case Nl:if(t.context&&t.context.className)return"references non-exported class "+t.context.className;break;case Ll:return"is not initialized";case Fl:return"is a destructured variable";case Vl:return"could not be resolved";case Bl:return t.context&&t.context.name?"calls '"+t.context.name+"'":"calls a function";case Hl:return t.context&&t.context.name?"references local variable "+t.context.name:"references a local variable"}return"contains the error"}(n),c={message:"'"+e.name+"' "+s,position:n.position,next:n.chain};i.error({message:n.message,advise:n.advise,context:n.context,chain:c,symbol:e},t)}}function p(e){if(ln(e))return e;if(e instanceof Array){for(var h=[],d=0,f=e;d<f.length;d++){var y=f[d];if(y&&"spread"===y.__symbolic){var g=u(y.expression);if(Array.isArray(g)){for(var v=0,m=g;v<m.length;v++){var b=m[v];h.push(b)}continue}}var _=p(y);an(_)||h.push(_)}return h}if(e instanceof _r){if(e===i.injectionToken||i.conversionMap.has(e)||a>0&&!e.members.length)return e;return null!=(A=c(x=e))?l(x,A):x}if(e){if(e.__symbolic){var x=void 0;switch(e.__symbolic){case"binop":var w=p(e.left);if(an(w))return w;var O=p(e.right);if(an(O))return O;switch(e.operator){case"&&":return w&&O;case"||":return w||O;case"|":return w|O;case"^":return w^O;case"&":return w&O;case"==":return w==O;case"!=":return w!=O;case"===":return w===O;case"!==":return w!==O;case"<":return w<O;case">":return w>O;case"<=":return w<=O;case">=":return w>=O;case"<<":return w<<O;case">>":return w>>O;case"+":return w+O;case"-":return w-O;case"*":return w*O;case"/":return w/O;case"%":return w%O}return null;case"if":return p(p(e.condition)?e.thenExpression:e.elseExpression);case"pre":var S=p(e.operand);if(an(S))return S;switch(e.operator){case"+":return S;case"-":return-S;case"!":return!S;case"~":return~S}return null;case"index":var C=u(e.expression),E=u(e.index);return C&&ln(E)?C[E]:null;case"select":var T=e.member,j=t,P=p(e.expression);if(P instanceof _r){var A,I=P.members.concat(T);return null!=(A=c(j=i.getStaticSymbol(P.filePath,P.name,I)))?l(j,A):j}return P&&ln(T)?l(j,P[T]):null;case"reference":var k=e.name,R=o.resolve(k);if(R!=Ul.missing)return R;break;case"resolved":try{return p(e.symbol)}catch(t){throw un(t)&&null!=e.fileName&&null!=e.line&&null!=e.character&&(t.position={fileName:e.fileName,line:e.line,column:e.character}),t}case"class":case"function":return t;case"new":case"call":if((x=n(t,e.expression,r+1,0))instanceof _r){if(x===i.injectionToken||x===i.opaqueToken)return t;var M=e.arguments||[],D=i.conversionMap.get(x);if(D){var N=M.map(function(e){return l(t,e)}).map(function(t){return an(t)?void 0:t});return D(t,N)}return function(e,n,a,c){if(n&&"function"==n.__symbolic){s.get(e)&&i.error({message:"Recursion is not supported",summary:"called '"+e.name+"' recursively",value:n},e);try{var u=n.value;if(u&&(0!=r||"error"!=u.__symbolic)){var h=n.parameters,d=n.defaults;a=a.map(function(e){return l(t,e)}).map(function(t){return an(t)?void 0:t}),d&&d.length>a.length&&a.push.apply(a,d.slice(a.length).map(function(t){return p(t)})),s.set(e,!0);for(var f=Ul.build(),y=0;y<h.length;y++)f.define(h[y],a[y]);var g,v=o;try{o=f.done(),g=l(e,u)}finally{o=v}return g}}finally{s.delete(e)}}if(0===r)return Al;var m=void 0;if(c&&"resolved"==c.__symbolic){var b=c.line,_=c.character,x=c.fileName;null!=x&&null!=b&&null!=_&&(m={fileName:x,line:b,column:_})}i.error({message:Bl,context:e,value:n,position:m},t)}(x,c(x),M,e.expression)}return Al;case"error":var L=e.message;return null!=e.line?i.error({message:L,context:e.context,value:e,position:{fileName:e.fileName,line:e.line,column:e.character}},t):i.error({message:L,context:e.context},t),Al;case"ignore":return e}return null}return function(t,e){if(!t)return{};var n={};return Object.keys(t).forEach(function(r){var i=e(t[r],r);an(i)||(Pl.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:i}):n[r]=i)}),n}(e,function(o,s){if(Rl.has(s)){if(s===Il&&kl in e){var c=p(e.provide);if(c===i.ROUTES||c==i.ANALYZE_FOR_ENTRY_COMPONENTS)return p(o)}return function(e){return n(t,e,r,a+1)}(o)}return p(o)})}return Al}return p(e)}var r,i=this,o=Ul.empty,s=new Map;try{r=n(t,e,0,0)}catch(e){if(!this.errorRecorder)throw hn(e,t);this.reportError(e,t)}if(!an(r))return r},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(hn(t,e),e&&e.filePath||n)},t.prototype.error=function(t,e){var n=t.message,r=t.summary,i=t.advise,o=t.position,s=t.context,a=(t.value,t.symbol),c=t.chain;this.reportError(cn(n,r,i,o,a,s,c),e)},t}(),Dl="ngMetadataError",Nl="Reference to non-exported class",Ll="Variable not initialized",Fl="Destructuring not supported",Vl="Could not resolve type",Bl="Function call not supported",Hl="Reference to a local symbol",zl="Lambda not supported",Ul=function(){function t(){}return t.build=function(){var e=new Map;return{define:function(t,n){return e.set(t,n),this},done:function(){return e.size>0?new Wl(e):t.empty}}},t.missing={},t.empty={resolve:function(e){return t.missing}},t}(),Wl=function(t){function e(e){var n=t.call(this)||this;return n.bindings=e,n}return Object(wn.b)(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):Ul.missing},e}(Ul),Gl=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Map,this.importAs=new Map,this.knownFileNameToModuleNames=new Map}return t.prototype.isLibraryFile=function(t){return!this.host.isSourceFile(Tt(t))},t.prototype.toSummaryFileName=function(t,e){return this.host.toSummaryFileName(t,e)},t.prototype.fromSummaryFileName=function(t,e){return this.host.fromSummaryFileName(t,e)},t.prototype.resolveSummary=function(t){t.assertNoMembers();var e=this.summaryCache.get(t);return e||(this._loadSummaryFile(t.filePath),e=this.summaryCache.get(t)),e||null},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t)?Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t}):null},t.prototype.getImportAs=function(t){return t.assertNoMembers(),this.importAs.get(t)},t.prototype.getKnownModuleName=function(t){return this.knownFileNameToModuleNames.get(t)||null},t.prototype.addSummary=function(t){this.summaryCache.set(t.symbol,t)},t.prototype._loadSummaryFile=function(t){var e=this,n=this.loadedFilePaths.get(t);if(null!=n)return n;var r=null;if(this.isLibraryFile(t)){var i=Pt(t);try{r=this.host.loadSummary(i)}catch(t){throw console.error("Error loading summary file "+i),t}}if(n=null!=r,this.loadedFilePaths.set(t,n),r){var o=function(t,e,n,r){return new Cl(t,e).deserialize(n,r)}(this.staticSymbolCache,this,t,r),s=o.moduleName,a=o.summaries,c=o.importAs;a.forEach(function(t){return e.summaryCache.set(t.symbol,t)}),s&&this.knownFileNameToModuleNames.set(t,s),c.forEach(function(t){e.importAs.set(t.symbol,t.importAs)})}return n},t}(),ql=function(){return function(){}}(),Yl=function(){function t(){this._summaries=new Map}return t.prototype.isLibraryFile=function(){return!1},t.prototype.toSummaryFileName=function(t){return t},t.prototype.fromSummaryFileName=function(t){return t},t.prototype.resolveSummary=function(t){return this._summaries.get(t)||null},t.prototype.getSymbolsOf=function(){return[]},t.prototype.getImportAs=function(t){return t},t.prototype.getKnownModuleName=function(t){return null},t.prototype.addSummary=function(t){this._summaries.set(t.symbol,t)},t}(),Kl=function(){function t(t,e,n,r){this.parent=t,this.instance=e,this.className=n,this.vars=r,this.exports=[]}return t.prototype.createChildWihtLocalVars=function(){return new t(this,this.instance,this.className,new Map)},t}(),Xl=function(){return function(t){this.value=t}}(),$l=function(){function t(t){this.reflector=t}return t.prototype.debugAst=function(t){return function(t){var e=new Mc,n=kc.createRoot();return(Array.isArray(t)?t:[t]).forEach(function(t){if(t instanceof Ja)t.visitStatement(e,n);else if(t instanceof Sa)t.visitExpression(e,n);else{if(!(t instanceof fa))throw new Error("Don't know how to print debug info for "+t);t.visitType(e,n)}}),n.toSource()}(t)},t.prototype.visitDeclareVarStmt=function(t,e){return e.vars.set(t.name,t.value.visitExpression(this,e)),t.hasModifier(Za.Exported)&&e.exports.push(t.name),null},t.prototype.visitWriteVarExpr=function(t,e){for(var n=t.value.visitExpression(this,e),r=e;null!=r;){if(r.vars.has(t.name))return r.vars.set(t.name,n),n;r=r.parent}throw new Error("Not declared variable "+t.name)},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case Ca.Super:return e.instance.__proto__;case Ca.This:return e.instance;case Ca.CatchError:n=Ql;break;case Ca.CatchStack:n=Zl;break;default:throw new Error("Unknown builtin variable "+t.builtin)}for(var r=e;null!=r;){if(r.vars.has(n))return r.vars.get(n);r=r.parent}throw new Error("Not declared variable "+n)},t.prototype.visitWriteKeyExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.index.visitExpression(this,e),i=t.value.visitExpression(this,e);return n[r]=i,i},t.prototype.visitWritePropExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.value.visitExpression(this,e);return n[t.name]=r,r},t.prototype.visitInvokeMethodExpr=function(t,e){var n,r=t.receiver.visitExpression(this,e),i=this.visitAllExpressions(t.args,e);if(null!=t.builtin)switch(t.builtin){case Aa.ConcatArray:n=r.concat.apply(r,i);break;case Aa.SubscribeObservable:n=r.subscribe({next:i[0]});break;case Aa.Bind:n=r.bind.apply(r,i);break;default:throw new Error("Unknown builtin method "+t.builtin)}else n=r[t.name].apply(r,i);return n},t.prototype.visitInvokeFunctionExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.fn;if(r instanceof Ea&&r.builtin===Ca.Super)return e.instance.constructor.prototype.constructor.apply(e.instance,n),null;return t.fn.visitExpression(this,e).apply(null,n)},t.prototype.visitReturnStmt=function(t,e){return new Xl(t.value.visitExpression(this,e))},t.prototype.visitDeclareClassStmt=function(t,e){var n=function(t,e,n){var r={};t.getters.forEach(function(i){r[i.name]={configurable:!1,get:function(){var r=new Kl(e,this,t.name,e.vars);return fn([],[],i.body,r,n)}}}),t.methods.forEach(function(i){var o=i.params.map(function(t){return t.name});r[i.name]={writable:!1,configurable:!1,value:function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var a=new Kl(e,this,t.name,e.vars);return fn(o,r,i.body,a,n)}}});var i=t.constructorMethod.params.map(function(t){return t.name}),o=function(){for(var r=this,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=new Kl(e,this,t.name,e.vars);t.fields.forEach(function(t){r[t.name]=void 0}),fn(i,o,t.constructorMethod.body,a,n)},s=t.parent?t.parent.visitExpression(n,e):Object;return o.prototype=Object.create(s.prototype,r),o}(t,e,this);return e.vars.set(t.name,n),t.hasModifier(Za.Exported)&&e.exports.push(t.name),null},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e)},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e)?this.visitAllStatements(t.trueCase,e):null!=t.falseCase?this.visitAllStatements(t.falseCase,e):null},t.prototype.visitTryCatchStmt=function(t,e){try{return this.visitAllStatements(t.bodyStmts,e)}catch(r){var n=e.createChildWihtLocalVars();return n.vars.set(Ql,r),n.vars.set(Zl,r.stack),this.visitAllStatements(t.catchStmts,n)}},t.prototype.visitThrowStmt=function(t,e){throw t.error.visitExpression(this,e)},t.prototype.visitCommentStmt=function(t,e){return null},t.prototype.visitInstantiateExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.classExpr.visitExpression(this,e);return new(r.bind.apply(r,[void 0].concat(n)))},t.prototype.visitLiteralExpr=function(t,e){return t.value},t.prototype.visitExternalExpr=function(t,e){return this.reflector.resolveExternalReference(t.value)},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e)?t.trueCase.visitExpression(this,e):null!=t.falseCase?t.falseCase.visitExpression(this,e):null},t.prototype.visitNotExpr=function(t,e){return!t.condition.visitExpression(this,e)},t.prototype.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e)},t.prototype.visitFunctionExpr=function(t,e){return yn(t.params.map(function(t){return t.name}),t.statements,e,this)},t.prototype.visitDeclareFunctionStmt=function(t,e){var n=t.params.map(function(t){return t.name});return e.vars.set(t.name,yn(n,t.statements,e,this)),t.hasModifier(Za.Exported)&&e.exports.push(t.name),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var n=this,r=function(){return t.lhs.visitExpression(n,e)},i=function(){return t.rhs.visitExpression(n,e)};switch(t.operator){case Oa.Equals:return r()==i();case Oa.Identical:return r()===i();case Oa.NotEquals:return r()!=i();case Oa.NotIdentical:return r()!==i();case Oa.And:return r()&&i();case Oa.Or:return r()||i();case Oa.Plus:return r()+i();case Oa.Minus:return r()-i();case Oa.Divide:return r()/i();case Oa.Multiply:return r()*i();case Oa.Modulo:return r()%i();case Oa.Lower:return r()<i();case Oa.LowerEquals:return r()<=i();case Oa.Bigger:return r()>i();case Oa.BiggerEquals:return r()>=i();default:throw new Error("Unknown operator "+t.operator)}},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e)[t.name]},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e)[t.index.visitExpression(this,e)]},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r={};return t.entries.forEach(function(t){return r[t.key]=t.value.visitExpression(n,e)}),r},t.prototype.visitCommaExpr=function(t,e){var n=this.visitAllExpressions(t.parts,e);return n[n.length-1]},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitAllStatements=function(t,e){for(var n=0;n<t.length;n++){var r=t[n].visitStatement(this,e);if(r instanceof Xl)return r}return null},t}(),Ql="error",Zl="stack",Jl=function(t){function e(e){var n=t.call(this)||this;return n.reflector=e,n._evalArgNames=[],n._evalArgValues=[],n._evalExportedVars=[],n}return Object(wn.b)(e,t),e.prototype.createReturnStmt=function(t){new rc(new Ka(this._evalExportedVars.map(function(t){return new Ya(t,Wt(t),!1)}))).visitStatement(this,t)},e.prototype.getArgs=function(){for(var t={},e=0;e<this._evalArgNames.length;e++)t[this._evalArgNames[e]]=this._evalArgValues[e];return t},e.prototype.visitExternalExpr=function(t,e){var n=this.reflector.resolveExternalReference(t.value),r=this._evalArgValues.indexOf(n);if(-1===r){r=this._evalArgValues.length,this._evalArgValues.push(n);var i=m({reference:n})||"val";this._evalArgNames.push("jit_"+i+"_"+r)}return e.print(t,this._evalArgNames[r]),null},e.prototype.visitDeclareVarStmt=function(e,n){return e.hasModifier(Za.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareVarStmt.call(this,e,n)},e.prototype.visitDeclareFunctionStmt=function(e,n){return e.hasModifier(Za.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareFunctionStmt.call(this,e,n)},e.prototype.visitDeclareClassStmt=function(e,n){return e.hasModifier(Za.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareClassStmt.call(this,e,n)},e}(function(t){function e(){return t.call(this,!1)||this}return Object(wn.b)(e,t),e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),this._visitClassConstructor(t,e),null!=t.parent&&(e.print(t,t.name+".prototype = Object.create("),t.parent.visitExpression(this,e),e.println(t,".prototype);")),t.getters.forEach(function(r){return n._visitClassGetter(t,r,e)}),t.methods.forEach(function(r){return n._visitClassMethod(t,r,e)}),e.popClass(),null},e.prototype._visitClassConstructor=function(t,e){e.print(t,"function "+t.name+"("),null!=t.constructorMethod&&this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),null!=t.constructorMethod&&t.constructorMethod.body.length>0&&(e.println(t,"var self = this;"),this.visitAllStatements(t.constructorMethod.body,e)),e.decIndent(),e.println(t,"}")},e.prototype._visitClassGetter=function(t,e,n){n.println(t,"Object.defineProperty("+t.name+".prototype, '"+e.name+"', { get: function() {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"}});")},e.prototype._visitClassMethod=function(t,e,n){n.print(t,t.name+".prototype."+e.name+" = function("),this._visitParams(e.params,n),n.println(t,") {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"};")},e.prototype.visitReadVarExpr=function(e,n){if(e.builtin===Ca.This)n.print(e,"self");else{if(e.builtin===Ca.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,e,n)}return null},e.prototype.visitDeclareVarStmt=function(t,e){return e.print(t,"var "+t.name+" = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitInvokeFunctionExpr=function(e,n){var r=e.fn;return r instanceof Ea&&r.builtin===Ca.Super?(n.currentClass.parent.visitExpression(this,n),n.print(e,".call(this"),e.args.length>0&&(n.print(e,", "),this.visitAllExpressions(e.args,n,",")),n.print(e,")")):t.prototype.visitInvokeFunctionExpr.call(this,e,n),null},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"function("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Pc.name+") {"),e.incIndent();var n=[Ac.set(Pc.prop("stack")).toDeclStmt(null,[Za.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype._visitParams=function(t,e){this.visitAllObjects(function(t){return e.print(null,t.name)},t,e,",")},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Aa.ConcatArray:e="concat";break;case Aa.SubscribeObservable:e="subscribe";break;case Aa.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(Rc)),tp=function(){function t(t,e,n,r,i,o,s,a,c,u){this._metadataResolver=t,this._templateParser=e,this._styleCompiler=n,this._viewCompiler=r,this._ngModuleCompiler=i,this._summaryResolver=o,this._reflector=s,this._compilerConfig=a,this._console=c,this.getExtraNgModuleProviders=u,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._sharedStylesheetCount=0,this._addedAotSummaries=new Set}return t.prototype.compileModuleSync=function(t){return Zn(this._compileModuleAndComponents(t,!0))},t.prototype.compileModuleAsync=function(t){return Promise.resolve(this._compileModuleAndComponents(t,!1))},t.prototype.compileModuleAndAllComponentsSync=function(t){return Zn(this._compileModuleAndAllComponents(t,!0))},t.prototype.compileModuleAndAllComponentsAsync=function(t){return Promise.resolve(this._compileModuleAndAllComponents(t,!1))},t.prototype.getComponentFactory=function(t){return this._metadataResolver.getDirectiveSummary(t).componentFactory},t.prototype.loadAotSummaries=function(t){this.clearCache(),this._addAotSummaries(t)},t.prototype._addAotSummaries=function(t){if(!this._addedAotSummaries.has(t)){this._addedAotSummaries.add(t);for(var e=t(),n=0;n<e.length;n++){var r=e[n];if("function"==typeof r)this._addAotSummaries(r);else{var i=r;this._summaryResolver.addSummary({symbol:i.type.reference,metadata:null,type:i})}}}},t.prototype.hasAotSummary=function(t){return!!this._summaryResolver.resolveSummary(t)},t.prototype._filterJitIdentifiers=function(t){var e=this;return t.map(function(t){return t.reference}).filter(function(t){return!e.hasAotSummary(t)})},t.prototype._compileModuleAndComponents=function(t,e){var n=this;return Jn(this._loadModules(t,e),function(){return n._compileComponents(t,null),n._compileModule(t)})},t.prototype._compileModuleAndAllComponents=function(t,e){var n=this;return Jn(this._loadModules(t,e),function(){var e=[];return n._compileComponents(t,e),{ngModuleFactory:n._compileModule(t),componentFactories:e}})},t.prototype._loadModules=function(t,e){var n=this,r=[],i=this._metadataResolver.getNgModuleMetadata(t);return this._filterJitIdentifiers(i.transitiveModule.modules).forEach(function(t){var i=n._metadataResolver.getNgModuleMetadata(t);n._filterJitIdentifiers(i.declaredDirectives).forEach(function(t){var o=n._metadataResolver.loadDirectiveMetadata(i.type.reference,t,e);o&&r.push(o)}),n._filterJitIdentifiers(i.declaredPipes).forEach(function(t){return n._metadataResolver.getOrLoadPipeMetadata(t)})}),tr(r)},t.prototype._compileModule=function(t){var e=this._compiledNgModuleCache.get(t);if(!e){var n=this._metadataResolver.getNgModuleMetadata(t),r=this.getExtraNgModuleProviders(n.type.reference),i=mn(),o=this._ngModuleCompiler.compile(i,n,r);e=this._interpretOrJit(function(t){return T(m(t.type)+"/module.ngfactory.js")}(n),i.statements)[o.ngModuleFactoryVar],this._compiledNgModuleCache.set(n.type.reference,e)}return e},t.prototype._compileComponents=function(t,e){var n=this,r=this._metadataResolver.getNgModuleMetadata(t),i=new Map,o=new Set,s=this._filterJitIdentifiers(r.transitiveModule.modules);s.forEach(function(t){var r=n._metadataResolver.getNgModuleMetadata(t);n._filterJitIdentifiers(r.declaredDirectives).forEach(function(t){i.set(t,r);var s=n._metadataResolver.getDirectiveMetadata(t);if(s.isComponent&&(o.add(n._createCompiledTemplate(s,r)),e)){var a=n._createCompiledHostTemplate(s.type.reference,r);o.add(a),e.push(s.componentFactory)}})}),s.forEach(function(t){var e=n._metadataResolver.getNgModuleMetadata(t);n._filterJitIdentifiers(e.declaredDirectives).forEach(function(t){var e=n._metadataResolver.getDirectiveMetadata(t);e.isComponent&&e.entryComponents.forEach(function(t){var e=i.get(t.componentType);o.add(n._createCompiledHostTemplate(t.componentType,e))})}),e.entryComponents.forEach(function(t){if(!n.hasAotSummary(t.componentType.reference)){var e=i.get(t.componentType);o.add(n._createCompiledHostTemplate(t.componentType,e))}})}),o.forEach(function(t){return n._compileTemplate(t)})},t.prototype.clearCacheFor=function(t){this._compiledNgModuleCache.delete(t),this._metadataResolver.clearCacheFor(t),this._compiledHostTemplateCache.delete(t);this._compiledTemplateCache.get(t)&&this._compiledTemplateCache.delete(t)},t.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._compiledNgModuleCache.clear()},t.prototype._createCompiledHostTemplate=function(t,e){if(!e)throw new Error("Component "+h(t)+" is not part of any NgModule or the module has not been imported into your module.");var n=this._compiledHostTemplateCache.get(t);if(!n){var r=this._metadataResolver.getDirectiveMetadata(t);vn(r);var i=this._metadataResolver.getHostComponentMetadata(r,r.componentFactory.viewDefFactory);n=new ep(!0,r.type,i,e,[r.type]),this._compiledHostTemplateCache.set(t,n)}return n},t.prototype._createCompiledTemplate=function(t,e){var n=this._compiledTemplateCache.get(t.type.reference);return n||(vn(t),n=new ep(!1,t.type,t,e,e.transitiveModule.directives),this._compiledTemplateCache.set(t.type.reference,n)),n},t.prototype._compileTemplate=function(t){var e=this;if(!t.isCompiled){var n=t.compMeta,r=new Map,i=mn(),o=this._styleCompiler.compileComponent(i,n);n.template.externalStylesheets.forEach(function(t){var i=e._styleCompiler.compileStyles(mn(),n,t);r.set(t.moduleUrl,i)}),this._resolveStylesCompileResult(o,r);t.ngModule.transitiveModule.pipes.map(function(t){return e._metadataResolver.getPipeSummary(t.reference)});var s=this._parseTemplate(n,t.ngModule,t.directives),a=s.template,c=s.pipes,u=this._viewCompiler.compileComponent(i,n,a,Wt(o.stylesVar),c),l=this._interpretOrJit(function(t,e){return T(m(t)+"/"+m(e.type)+".ngfactory.js")}(t.ngModule.type,t.compMeta),i.statements),p=l[u.viewClassVar],h=l[u.rendererTypeVar];t.compiled(p,h)}},t.prototype._parseTemplate=function(t,e,n){var r=this,i=t.template.preserveWhitespaces,o=n.map(function(t){return r._metadataResolver.getDirectiveSummary(t.reference)}),s=e.transitiveModule.pipes.map(function(t){return r._metadataResolver.getPipeSummary(t.reference)});return this._templateParser.parse(t,t.template.htmlAst,o,s,e.schemas,j(e.type,t,t.template),i)},t.prototype._resolveStylesCompileResult=function(t,e){var n=this;t.dependencies.forEach(function(t,r){var i=e.get(t.moduleUrl),o=n._resolveAndEvalStylesCompileResult(i,e);t.setValue(o)})},t.prototype._resolveAndEvalStylesCompileResult=function(t,e){return this._resolveStylesCompileResult(t,e),this._interpretOrJit(function(t,e){var n=t.moduleUrl.split(/\/\\/g);return T("css/"+e+n[n.length-1]+".ngstyle.js")}(t.meta,this._sharedStylesheetCount++),t.outputCtx.statements)[t.stylesVar]},t.prototype._interpretOrJit=function(t,e){return this._compilerConfig.useJit?gn(t,e,this._reflector,this._compilerConfig.jitDevMode):function(t,e){var n=new Kl(null,null,null,new Map);new $l(e).visitAllStatements(t,n);var r={};return n.exports.forEach(function(t){r[t]=n.vars.get(t)}),r}(e,this._reflector)},t}(),ep=function(){function t(t,e,n,r,i){this.isHost=t,this.compType=e,this.compMeta=n,this.ngModule=r,this.directives=i,this._viewClass=null,this.isCompiled=!1}return t.prototype.compiled=function(t,e){this._viewClass=t,this.compMeta.componentViewType.setDelegate(t);for(var n in e)this.compMeta.rendererType[n]=e[n];this.isCompiled=!0},t}(),np=function(){return function(){}}(),rp=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var n=e;null!=t&&t.length>0&&(n=function(t,e){var n=bn(encodeURI(e)),r=bn(t);if(null!=n[op.Scheme])return _n(n);n[op.Scheme]=r[op.Scheme];for(var i=op.Scheme;i<=op.Port;i++)null==n[i]&&(n[i]=r[i]);if("/"==n[op.Path][0])return _n(n);var o=r[op.Path];null==o&&(o="/");var s=o.lastIndexOf("/");return o=o.substring(0,s+1)+n[op.Path],n[op.Path]=o,_n(n)}(t,n));var r=bn(n),i=this._packagePrefix;if(null!=i&&null!=r&&"package"==r[op.Scheme]){var o=r[op.Path];return i=i.replace(/\/+$/,""),o=o.replace(/^\/+/,""),i+"/"+o}return n},t}(),ip=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),op={Scheme:1,UserInfo:2,Domain:3,Port:4,Path:5,QueryData:6,Fragment:7};op[op.Scheme]="Scheme",op[op.UserInfo]="UserInfo",op[op.Domain]="Domain",op[op.Port]="Port",op[op.Path]="Path",op[op.QueryData]="QueryData",op[op.Fragment]="Fragment";var sp=function(){function t(){}return t.prototype.get=function(t){return""},t}(),ap=(function(){function t(t,e,n,r){this.host=t,this.staticSymbolResolver=e,this.messageBundle=n,this.metadataResolver=r}t.prototype.extract=function(t){var e=this,n=Je(t,this.host,this.staticSymbolResolver,this.metadataResolver),r=n.files,i=n.ngModules;return Promise.all(i.map(function(t){return e.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=[];if(r.forEach(function(n){var r=[];n.directives.forEach(function(t){var n=e.metadataResolver.getDirectiveMetadata(t);n&&n.isComponent&&r.push(n)}),r.forEach(function(r){var i=r.template.template,o=Vr.fromArray(r.template.interpolation);t.push.apply(t,e.messageBundle.updateFromTemplate(i,n.fileName,o))})}),t.length)throw new Error(t.map(function(t){return t.toString()}).join("\n"));return e.messageBundle})},t.create=function(e,n){var r=new qs,i=dn(e),o=new xr,s=new Gl(e,o),a=new wl(e,o,s),c=new Ml(s,a),u=new br({defaultEncapsulation:In.Emulated,useJit:!1}),l=new oi({get:function(t){return e.loadResource(t)}},i,r,u),p=new Wc,h=new pa(u,r,new Oc(c),new ci(c),new Dc(c),s,p,l,console,o,c),d=new ml(r,[],{},n);return{extractor:new t(e,a,d,h),staticReflector:c}}}(),n("LMZF")),cp=n("Un6q"),up=n("RyBE");n.d(e,"a",function(){return wp});var lp=function(){var t=new Map;return t.set(na.ANALYZE_FOR_ENTRY_COMPONENTS,ap.ANALYZE_FOR_ENTRY_COMPONENTS),t.set(na.ElementRef,ap.ElementRef),t.set(na.NgModuleRef,ap.NgModuleRef),t.set(na.ViewContainerRef,ap.ViewContainerRef),t.set(na.ChangeDetectorRef,ap.ChangeDetectorRef),t.set(na.QueryList,ap.QueryList),t.set(na.TemplateRef,ap.TemplateRef),t.set(na.CodegenComponentFactoryResolver,ap["\u0275CodegenComponentFactoryResolver"]),t.set(na.ComponentFactoryResolver,ap.ComponentFactoryResolver),t.set(na.ComponentFactory,ap.ComponentFactory),t.set(na.ComponentRef,ap.ComponentRef),t.set(na.NgModuleFactory,ap.NgModuleFactory),t.set(na.createModuleFactory,ap["\u0275cmf"]),t.set(na.moduleDef,ap["\u0275mod"]),t.set(na.moduleProviderDef,ap["\u0275mpd"]),t.set(na.RegisterModuleFactoryFn,ap["\u0275registerModuleFactory"]),t.set(na.Injector,ap.Injector),t.set(na.ViewEncapsulation,ap.ViewEncapsulation),t.set(na.ChangeDetectionStrategy,ap.ChangeDetectionStrategy),t.set(na.SecurityContext,ap.SecurityContext),t.set(na.LOCALE_ID,ap.LOCALE_ID),t.set(na.TRANSLATIONS_FORMAT,ap.TRANSLATIONS_FORMAT),t.set(na.inlineInterpolate,ap["\u0275inlineInterpolate"]),t.set(na.interpolate,ap["\u0275interpolate"]),t.set(na.EMPTY_ARRAY,ap["\u0275EMPTY_ARRAY"]),t.set(na.EMPTY_MAP,ap["\u0275EMPTY_MAP"]),t.set(na.Renderer,ap.Renderer),t.set(na.viewDef,ap["\u0275vid"]),t.set(na.elementDef,ap["\u0275eld"]),t.set(na.anchorDef,ap["\u0275and"]),t.set(na.textDef,ap["\u0275ted"]),t.set(na.directiveDef,ap["\u0275did"]),t.set(na.providerDef,ap["\u0275prd"]),t.set(na.queryDef,ap["\u0275qud"]),t.set(na.pureArrayDef,ap["\u0275pad"]),t.set(na.pureObjectDef,ap["\u0275pod"]),t.set(na.purePipeDef,ap["\u0275ppd"]),t.set(na.pipeDef,ap["\u0275pid"]),t.set(na.nodeValue,ap["\u0275nov"]),t.set(na.ngContentDef,ap["\u0275ncd"]),t.set(na.unwrapValue,ap["\u0275unv"]),t.set(na.createRendererType2,ap["\u0275crt"]),t.set(na.createComponentFactory,ap["\u0275ccf"]),t}(),pp=function(){function t(){this.builtinExternalReferences=new Map,this.reflectionCapabilities=new ap["\u0275ReflectionCapabilities"]}return t.prototype.componentModuleUrl=function(t,e){var n=e.moduleId;if("string"==typeof n){return function(t){var e=bn(t);return e&&e[op.Scheme]||""}(n)?n:"package:"+n}if(null!==n&&void 0!==n)throw u('moduleId should be a string in "'+Object(ap["\u0275stringify"])(t)+"\". See https://goo.gl/wIDDiL for more information.\nIf you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.");return"./"+Object(ap["\u0275stringify"])(t)},t.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},t.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},t.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},t.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},t.prototype.resolveExternalReference=function(t){return lp.get(t)||t.runtime},t}(),hp=new ap.InjectionToken("ErrorCollector"),dp={provide:ap.PACKAGE_ROOT_URL,useValue:"/"},fp={get:function(t){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+t+'"')}},yp=new ap.InjectionToken("HtmlParser"),gp=function(){function t(t,e,n,r,i,o,s,a,c,u){this._metadataResolver=e,this._delegate=new tp(e,n,r,i,o,s,a,c,u,this.getExtraNgModuleProviders.bind(this)),this.injector=t}return t.prototype.getExtraNgModuleProviders=function(){return[this._metadataResolver.getProviderMetadata(new Ir(ap.Compiler,{useValue:this}))]},t.prototype.compileModuleSync=function(t){return this._delegate.compileModuleSync(t)},t.prototype.compileModuleAsync=function(t){return this._delegate.compileModuleAsync(t)},t.prototype.compileModuleAndAllComponentsSync=function(t){var e=this._delegate.compileModuleAndAllComponentsSync(t);return{ngModuleFactory:e.ngModuleFactory,componentFactories:e.componentFactories}},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._delegate.compileModuleAndAllComponentsAsync(t).then(function(t){return{ngModuleFactory:t.ngModuleFactory,componentFactories:t.componentFactories}})},t.prototype.loadAotSummaries=function(t){this._delegate.loadAotSummaries(t)},t.prototype.hasAotSummary=function(t){return this._delegate.hasAotSummary(t)},t.prototype.getComponentFactory=function(t){return this._delegate.getComponentFactory(t)},t.prototype.clearCache=function(){this._delegate.clearCache()},t.prototype.clearCacheFor=function(t){this._delegate.clearCacheFor(t)},t}(),vp=[{provide:np,useValue:new pp},{provide:sp,useValue:fp},{provide:Yl,deps:[]},{provide:ql,useExisting:Yl},{provide:ap["\u0275Console"],deps:[]},{provide:Gi,deps:[]},{provide:Eo,deps:[Gi]},{provide:yp,useClass:qs,deps:[]},{provide:Xs,useFactory:function(t,e,n,r,i){var o=(e=e||"")?r.missingTranslation:ap.MissingTranslationStrategy.Ignore;return new Xs(t,e,n,o,i)},deps:[yp,[new ap.Optional,new ap.Inject(ap.TRANSLATIONS)],[new ap.Optional,new ap.Inject(ap.TRANSLATIONS_FORMAT)],[br],[ap["\u0275Console"]]]},{provide:qs,useExisting:Xs},{provide:Wu,deps:[br,np,Eo,Lc,Xs,ap["\u0275Console"]]},{provide:oi,deps:[sp,rp,qs,br]},{provide:pa,deps:[br,qs,Oc,ci,Dc,ql,Lc,oi,ap["\u0275Console"],[ap.Optional,xr],np,[ap.Optional,hp]]},dp,{provide:_u,deps:[rp]},{provide:ll,deps:[np]},{provide:wc,deps:[np]},{provide:br,useValue:new br},{provide:ap.Compiler,useClass:gp,deps:[ap.Injector,pa,Wu,_u,ll,wc,ql,np,br,ap["\u0275Console"]]},{provide:Wc,deps:[]},{provide:Lc,useExisting:Wc},{provide:rp,deps:[ap.PACKAGE_ROOT_URL]},{provide:ci,deps:[np]},{provide:Dc,deps:[np]},{provide:Oc,deps:[np]}],mp=function(){function t(t){var e={useJit:!0,defaultEncapsulation:ap.ViewEncapsulation.Emulated,missingTranslation:ap.MissingTranslationStrategy.Warning,enableLegacyTemplate:!1};this._defaultOptions=[e].concat(t)}return t.prototype.createCompiler=function(t){void 0===t&&(t=[]);var e=function(t){return{useJit:xn(t.map(function(t){return t.useJit})),defaultEncapsulation:xn(t.map(function(t){return t.defaultEncapsulation})),providers:function(t){var e=[];return t.forEach(function(t){return t&&e.push.apply(e,t)}),e}(t.map(function(t){return t.providers})),missingTranslation:xn(t.map(function(t){return t.missingTranslation})),enableLegacyTemplate:xn(t.map(function(t){return t.enableLegacyTemplate})),preserveWhitespaces:xn(t.map(function(t){return t.preserveWhitespaces}))}}(this._defaultOptions.concat(t));return ap.Injector.create([vp,{provide:br,useFactory:function(){return new br({useJit:e.useJit,jitDevMode:Object(ap.isDevMode)(),defaultEncapsulation:e.defaultEncapsulation,missingTranslation:e.missingTranslation,enableLegacyTemplate:e.enableLegacyTemplate,preserveWhitespaces:e.preserveWhitespaces})},deps:[]},e.providers]).get(ap.Compiler)},t}(),bp=Object(ap.createPlatformFactory)(ap.platformCore,"coreDynamic",[{provide:ap.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:ap.CompilerFactory,useClass:mp,deps:[ap.COMPILER_OPTIONS]}]),_p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(wn.b)(e,t),e.prototype.get=function(t){var e,n,r=new Promise(function(t,r){e=t,n=r}),i=new XMLHttpRequest;return i.open("GET",t,!0),i.responseType="text",i.onload=function(){var r=i.response||i.responseText,o=1223===i.status?204:i.status;0===o&&(o=r?200:0),200<=o&&o<=300?e(r):n("Failed to load "+t)},i.onerror=function(){n("Failed to load "+t)},i.send(),r},e.decorators=[{type:ap.Injectable}],e.ctorParameters=function(){return[]},e}(sp),xp=[up["\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS"],{provide:ap.COMPILER_OPTIONS,useValue:{providers:[{provide:sp,useClass:_p,deps:[]}]},multi:!0},{provide:ap.PLATFORM_ID,useValue:cp["\u0275PLATFORM_BROWSER_ID"]}],wp=(function(t){function e(){var e=t.call(this)||this;if(e._cache=ap["\u0275global"].$templateCache,null==e._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.");return e}Object(wn.b)(e,t),e.prototype.get=function(t){return this._cache.hasOwnProperty(t)?Promise.resolve(this._cache[t]):Promise.reject("CachedResourceLoader: Did not find cached template for "+t)}}(sp),new ap.Version("5.1.0"),Object(ap.createPlatformFactory)(bp,"browserDynamic",xp))},xAqS:function(t,e,n){"use strict";var r=n("6QEA");e.bufferToggle=function(t,e){return r.bufferToggle(t,e)(this)}},xFbG:function(t,e,n){"use strict";function r(t){return t.reduce(function(t,e){return t.concat(e instanceof u.UnsubscriptionError?e.errors:e)},[])}var i=n("NSJx"),o=n("H6Sg"),s=n("fclq"),a=n("RdI5"),c=n("XRvs"),u=n("Emqh"),l=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,l=this._parents,p=this._unsubscribe,h=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var d=-1,f=l?l.length:0;n;)n.remove(this),n=++d<f&&l[d]||null;if(s.isFunction(p)){a.tryCatch(p).call(this)===c.errorObject&&(e=!0,t=t||(c.errorObject.e instanceof u.UnsubscriptionError?r(c.errorObject.e.errors):[c.errorObject.e]))}if(i.isArray(h))for(d=-1,f=h.length;++d<f;){var y=h[d];if(o.isObject(y)){if(a.tryCatch(y.unsubscribe).call(y)===c.errorObject){e=!0,t=t||[];var g=c.errorObject.e;g instanceof u.UnsubscriptionError?t=t.concat(r(g.errors)):t.push(g)}}}if(e)throw new u.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;e&&e!==t?n?-1===n.indexOf(t)&&n.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();e.Subscription=l},xIGM:function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return o});var r="undefined"!=typeof window&&window,i="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,o=r||"undefined"!=typeof t&&t||i}).call(e,n("fRUx"))},xJeO:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+"),o=n("RdI5"),s=n("XRvs");e.sequenceEqual=function(t,e){return function(n){return n.lift(new a(t,e))}};var a=function(){function t(t,e){this.compareTo=t,this.comparor=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.compareTo,this.comparor))},t}();e.SequenceEqualOperator=a;var c=function(t){function e(e,n,r){t.call(this,e),this.compareTo=n,this.comparor=r,this._a=[],this._b=[],this._oneComplete=!1,this.add(n.subscribe(new u(e,this)))}return r(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e.prototype.checkValues=function(){for(var t=this._a,e=this._b,n=this.comparor;t.length>0&&e.length>0;){var r=t.shift(),i=e.shift(),a=!1;n?(a=o.tryCatch(n)(r,i))===s.errorObject&&this.destination.error(s.errorObject.e):a=r===i,a||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e}(i.Subscriber);e.SequenceEqualSubscriber=c;var u=function(t){function e(e,n){t.call(this,e),this.parent=n}return r(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t)},e.prototype._complete=function(){this.parent._complete()},e}(i.Subscriber)},xK8X:function(t,e,n){"use strict";var r=n("IhB/"),i=n("L8VJ");e.timestamp=function(t){return void 0===t&&(t=r.async),i.map(function(e){return new o(e,t.now())})};var o=function(){return function(t,e){this.value=t,this.timestamp=e}}();e.Timestamp=o},xKl2:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("rlar"),o=n("bKpL"),s=n("T14+"),a=n("xFbG"),c=n("F9px"),u=function(t){function e(e,n){t.call(this),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return r(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new a.Subscription).add(this.source.subscribe(new p(this.getSubject(),this))),t.closed?(this._connection=null,t=a.Subscription.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return c.refCount()(this)},e}(o.Observable);e.ConnectableObservable=u;var l=u.prototype;e.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:l._subscribe},_isComplete:{value:l._isComplete,writable:!0},getSubject:{value:l.getSubject},connect:{value:l.connect},refCount:{value:l.refCount}};var p=function(t){function e(e,n){t.call(this,e),this.connectable=n}return r(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.SubjectSubscriber),h=(function(){function t(t){this.connectable=t}t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new h(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i}}(),function(t){function e(e,n){t.call(this,e),this.connectable=n}return r(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(s.Subscriber))},xpf9:function(t,e,n){"use strict";var r=n("bKpL"),i=n("ueUM");r.Observable.prototype.catch=i._catch,r.Observable.prototype._catch=i._catch},"y+rW":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("yW9Z"),o=n("ktfo"),s=n("M11L");e.distinct=function(t,e){return function(n){return n.lift(new a(t,e))}};var a=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.keySelector,this.flushes))},t}(),c=function(t){function e(e,n,r){t.call(this,e),this.keySelector=n,this.values=new s.Set,r&&this.add(o.subscribeToResult(this,r))}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values.clear()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},e}(i.OuterSubscriber);e.DistinctSubscriber=c},y23k:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("RdI5"),o=n("XRvs"),s=n("yW9Z"),a=n("ktfo");e.expand=function(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(r){return r.lift(new c(t,e,n))}};var c=function(){function t(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.concurrent,this.scheduler))},t}();e.ExpandOperator=c;var u=function(t){function e(e,n,r,i){t.call(this,e),this.project=n,this.concurrent=r,this.scheduler=i,this.index=0,this.active=0,this.hasCompleted=!1,r<Number.POSITIVE_INFINITY&&(this.buffer=[])}return r(e,t),e.dispatch=function(t){var e=t.subscriber,n=t.result,r=t.value,i=t.index;e.subscribeToProjection(n,r,i)},e.prototype._next=function(t){var n=this.destination;if(n.closed)this._complete();else{var r=this.index++;if(this.active<this.concurrent){n.next(t);var s=i.tryCatch(this.project)(t,r);if(s===o.errorObject)n.error(o.errorObject.e);else if(this.scheduler){var a={subscriber:this,result:s,value:t,index:r};this.add(this.scheduler.schedule(e.dispatch,0,a))}else this.subscribeToProjection(s,t,r)}else this.buffer.push(t)}},e.prototype.subscribeToProjection=function(t,e,n){this.active++,this.add(a.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this._next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(s.OuterSubscriber);e.ExpandSubscriber=u},y3SI:function(t,e,n){"use strict";var r=n("JwCl");e.min=function(t){var e="function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t<e?t:e};return r.reduce(e)}},y3aq:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("yW9Z"),o=n("ktfo");e.takeUntil=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.notifier))},t}(),a=function(t){function e(e,n){t.call(this,e),this.notifier=n,this.add(o.subscribeToResult(this,n))}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.complete()},e.prototype.notifyComplete=function(){},e}(i.OuterSubscriber)},yIff:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("rlar"),o=n("T14+"),s=n("bKpL"),a=n("xFbG"),c=n("zijX"),u=n("0imh"),l=n("RdI5"),p=n("XRvs"),h=n("fV3I"),d=function(t){function e(e,n){if(e instanceof s.Observable)t.call(this,n,e);else{if(t.call(this),this.WebSocketCtor=c.root.WebSocket,this._output=new i.Subject,"string"==typeof e?this.url=e:h.assign(this,e),!this.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new u.ReplaySubject}}return r(e,t),e.prototype.resultSelector=function(t){return JSON.parse(t.data)},e.create=function(t){return new e(t)},e.prototype.lift=function(t){var n=new e(this,this.destination);return n.operator=t,n},e.prototype._resetState=function(){this.socket=null,this.source||(this.destination=new u.ReplaySubject),this._output=new i.Subject},e.prototype.multiplex=function(t,e,n){var r=this;return new s.Observable(function(i){var o=l.tryCatch(t)();o===p.errorObject?i.error(p.errorObject.e):r.next(o);var s=r.subscribe(function(t){var e=l.tryCatch(n)(t);e===p.errorObject?i.error(p.errorObject.e):e&&i.next(t)},function(t){return i.error(t)},function(){return i.complete()});return function(){var t=l.tryCatch(e)();t===p.errorObject?i.error(p.errorObject.e):r.next(t),s.unsubscribe()}})},e.prototype._connectSocket=function(){var t=this,e=this.WebSocketCtor,n=this._output,r=null;try{r=this.protocol?new e(this.url,this.protocol):new e(this.url),this.socket=r,this.binaryType&&(this.socket.binaryType=this.binaryType)}catch(t){return void n.error(t)}var i=new a.Subscription(function(){t.socket=null,r&&1===r.readyState&&r.close()});r.onopen=function(e){var s=t.openObserver;s&&s.next(e);var a=t.destination;t.destination=o.Subscriber.create(function(t){return 1===r.readyState&&r.send(t)},function(e){var i=t.closingObserver;i&&i.next(void 0),e&&e.code?r.close(e.code,e.reason):n.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),t._resetState()},function(){var e=t.closingObserver;e&&e.next(void 0),r.close(),t._resetState()}),a&&a instanceof u.ReplaySubject&&i.add(a.subscribe(t.destination))},r.onerror=function(e){t._resetState(),n.error(e)},r.onclose=function(e){t._resetState();var r=t.closeObserver;r&&r.next(e),e.wasClean?n.complete():n.error(e)},r.onmessage=function(e){var r=l.tryCatch(t.resultSelector)(e);r===p.errorObject?n.error(p.errorObject.e):n.next(r)}},e.prototype._subscribe=function(t){var e=this,n=this.source;if(n)return n.subscribe(t);this.socket||this._connectSocket();var r=new a.Subscription;return r.add(this._output.subscribe(t)),r.add(function(){var t=e.socket;0===e._output.observers.length&&(t&&1===t.readyState&&t.close(),e._resetState())}),r},e.prototype.unsubscribe=function(){var e=this.source,n=this.socket;n&&1===n.readyState&&(n.close(),this._resetState()),t.prototype.unsubscribe.call(this),e||(this.destination=new u.ReplaySubject)},e}(i.AnonymousSubject);e.WebSocketSubject=d},yQ6o:function(t,e,n){"use strict";var r=n("T1tZ");e.bindCallback=r.BoundCallbackObservable.create},yR50:function(t,e,n){"use strict";var r=n("Fpv1"),i=n("HHMl");e.queue=new i.QueueScheduler(r.QueueAction)},yW9Z:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n("T14+").Subscriber);e.OuterSubscriber=i},ykQW:function(t,e,n){"use strict";var r=n("bKpL"),i=n("8Ben");r.Observable.prototype.let=i.letProto,r.Observable.prototype.letBind=i.letProto},ytB7:function(t,e,n){"use strict";var r=n("IhB/"),i=n("60lp");e.sampleTime=function(t,e){return void 0===e&&(e=r.async),i.sampleTime(t,e)(this)}},ytvl:function(t,e,n){"use strict";function r(t){function e(e){var r=e+"",s=n.get(r);if(!s){if(o!==F)return o;n.set(r,s=i.push(e))}return t[(s-1)%t.length]}var n=Object(M.a)(),i=[],o=F;return t=null==t?[]:L.call(t),e.domain=function(t){if(!arguments.length)return i.slice();i=[],n=Object(M.a)();for(var r,o,s=-1,a=t.length;++s<a;)n.has(o=(r=t[s])+"")||n.set(o,i.push(r));return e},e.range=function(n){return arguments.length?(t=L.call(n),e):t.slice()},e.unknown=function(t){return arguments.length?(o=t,e):o},e.copy=function(){return r().domain(i).range(t).unknown(o)},e}function i(){function t(){var t=s().length,r=c[1]<c[0],i=c[r-0],o=c[1-r];e=(o-i)/Math.max(1,t-l+2*p),u&&(e=Math.floor(e)),i+=(o-i-e*(t-l))*h,n=e*(1-l),u&&(i=Math.round(i),n=Math.round(n));var d=Object(R.range)(t).map(function(t){return i+e*t});return a(r?d.reverse():d)}var e,n,o=r().unknown(void 0),s=o.domain,a=o.range,c=[0,1],u=!1,l=0,p=0,h=.5;return delete o.unknown,o.domain=function(e){return arguments.length?(s(e),t()):s()},o.range=function(e){return arguments.length?(c=[+e[0],+e[1]],t()):c.slice()},o.rangeRound=function(e){return c=[+e[0],+e[1]],u=!0,t()},o.bandwidth=function(){return n},o.step=function(){return e},o.round=function(e){return arguments.length?(u=!!e,t()):u},o.padding=function(e){return arguments.length?(l=p=Math.max(0,Math.min(1,e)),t()):l},o.paddingInner=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),t()):l},o.paddingOuter=function(e){return arguments.length?(p=Math.max(0,Math.min(1,e)),t()):p},o.align=function(e){return arguments.length?(h=Math.max(0,Math.min(1,e)),t()):h},o.copy=function(){return i().domain(s()).range(c).round(u).paddingInner(l).paddingOuter(p).align(h)},t()}function o(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return o(e())},t}function s(){return o(i().paddingInner(1))}function a(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:B(e)}function c(t,e,n,r){var i=t[0],o=t[1],s=e[0],a=e[1];return o<i?(i=n(o,i),s=r(a,s)):(i=n(i,o),s=r(s,a)),function(t){return s(i(t))}}function u(t,e,n,r){var i=Math.min(t.length,e.length)-1,o=new Array(i),s=new Array(i),a=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<i;)o[a]=n(t[a],t[a+1]),s[a]=r(e[a],e[a+1]);return function(e){var n=Object(R.bisect)(t,e,1,i)-1;return s[n](o[n](e))}}function l(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function p(t,e){function n(){return i=Math.min(l.length,p.length)>2?u:c,o=s=null,r}function r(e){return(o||(o=i(l,p,d?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=e?0:t>=n?1:r(t)}}}(t):t,h)))(+e)}var i,o,s,l=z,p=z,h=V.interpolate,d=!1;return r.invert=function(t){return(s||(s=i(p,l,a,d?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}}(e):e)))(+t)},r.domain=function(t){return arguments.length?(l=N.call(t,H),n()):l.slice()},r.range=function(t){return arguments.length?(p=L.call(t),n()):p.slice()},r.rangeRound=function(t){return p=L.call(t),h=V.interpolateRound,n()},r.clamp=function(t){return arguments.length?(d=!!t,n()):d},r.interpolate=function(t){return arguments.length?(h=t,n()):h},n()}function h(t){var e=t.domain;return t.ticks=function(t){var n=e();return Object(R.ticks)(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){return W(e(),t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),o=0,s=i.length-1,a=i[o],c=i[s];return c<a&&(r=a,a=c,c=r,r=o,o=s,s=r),(r=Object(R.tickIncrement)(a,c,n))>0?(a=Math.floor(a/r)*r,c=Math.ceil(c/r)*r,r=Object(R.tickIncrement)(a,c,n)):r<0&&(a=Math.ceil(a*r)/r,c=Math.floor(c*r)/r,r=Object(R.tickIncrement)(a,c,n)),r>0?(i[o]=Math.floor(a/r)*r,i[s]=Math.ceil(c/r)*r,e(i)):r<0&&(i[o]=Math.ceil(a*r)/r,i[s]=Math.floor(c*r)/r,e(i)),t},t}function d(){var t=p(a,V.interpolateNumber);return t.copy=function(){return l(t,d())},h(t)}function f(){function t(t){return+t}var e=[0,1];return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=N.call(n,H),t):e.slice()},t.copy=function(){return f().domain(e)},h(t)}function y(t,e){return(e=Math.log(e/t))?function(n){return Math.log(n/t)/e}:B(e)}function g(t,e){return t<0?function(n){return-Math.pow(-e,n)*Math.pow(-t,1-n)}:function(n){return Math.pow(e,n)*Math.pow(t,1-n)}}function v(t){return isFinite(t)?+("1e"+t):t<0?0:t}function m(t){return 10===t?v:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function b(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}function _(t){return function(e){return-t(-e)}}function x(){function t(){return i=b(r),o=m(r),n()[0]<0&&(i=_(i),o=_(o)),e}var e=p(y,g).domain([1,10]),n=e.domain,r=10,i=b(10),o=m(10);return e.base=function(e){return arguments.length?(r=+e,t()):r},e.domain=function(e){return arguments.length?(n(e),t()):n()},e.ticks=function(t){var e,s=n(),a=s[0],c=s[s.length-1];(e=c<a)&&(h=a,a=c,c=h);var u,l,p,h=i(a),d=i(c),f=null==t?10:+t,y=[];if(!(r%1)&&d-h<f){if(h=Math.round(h)-1,d=Math.round(d)+1,a>0){for(;h<d;++h)for(l=1,u=o(h);l<r;++l)if(!((p=u*l)<a)){if(p>c)break;y.push(p)}}else for(;h<d;++h)for(l=r-1,u=o(h);l>=1;--l)if(!((p=u*l)<a)){if(p>c)break;y.push(p)}}else y=Object(R.ticks)(h,d,Math.min(d-h,f)).map(o);return e?y.reverse():y},e.tickFormat=function(t,n){if(null==n&&(n=10===r?".0e":","),"function"!=typeof n&&(n=Object(U.format)(n)),t===1/0)return n;null==t&&(t=10);var s=Math.max(1,r*t/e.ticks().length);return function(t){var e=t/o(Math.round(i(t)));return e*r<r-.5&&(e*=r),e<=s?n(t):""}},e.nice=function(){return n(G(n(),{floor:function(t){return o(Math.floor(i(t)))},ceil:function(t){return o(Math.ceil(i(t)))}}))},e.copy=function(){return l(e,x().base(r))},e}function w(t,e){return t<0?-Math.pow(-t,e):Math.pow(t,e)}function O(){var t=1,e=p(function(e,n){return(n=w(n,t)-(e=w(e,t)))?function(r){return(w(r,t)-e)/n}:B(n)},function(e,n){return n=w(n,t)-(e=w(e,t)),function(r){return w(e+n*r,1/t)}}),n=e.domain;return e.exponent=function(e){return arguments.length?(t=+e,n(n())):t},e.copy=function(){return l(e,O().exponent(t))},h(e)}function S(){return O().exponent(.5)}function C(){function t(){var t=0,o=Math.max(1,r.length);for(i=new Array(o-1);++t<o;)i[t-1]=Object(R.quantile)(n,t/o);return e}function e(t){if(!isNaN(t=+t))return r[Object(R.bisect)(i,t)]}var n=[],r=[],i=[];return e.invertExtent=function(t){var e=r.indexOf(t);return e<0?[NaN,NaN]:[e>0?i[e-1]:n[0],e<i.length?i[e]:n[n.length-1]]},e.domain=function(e){if(!arguments.length)return n.slice();n=[];for(var r,i=0,o=e.length;i<o;++i)null==(r=e[i])||isNaN(r=+r)||n.push(r);return n.sort(R.ascending),t()},e.range=function(e){return arguments.length?(r=L.call(e),t()):r.slice()},e.quantiles=function(){return i.slice()},e.copy=function(){return C().domain(n).range(r)},e}function E(){function t(t){if(t<=t)return s[Object(R.bisect)(o,t,0,i)]}function e(){var e=-1;for(o=new Array(i);++e<i;)o[e]=((e+1)*r-(e-i)*n)/(i+1);return t}var n=0,r=1,i=1,o=[.5],s=[0,1];return t.domain=function(t){return arguments.length?(n=+t[0],r=+t[1],e()):[n,r]},t.range=function(t){return arguments.length?(i=(s=L.call(t)).length-1,e()):s.slice()},t.invertExtent=function(t){var e=s.indexOf(t);return e<0?[NaN,NaN]:e<1?[n,o[0]]:e>=i?[o[i-1],r]:[o[e-1],o[e]]},t.copy=function(){return E().domain([n,r]).range(s)},h(t)}function T(){function t(t){if(t<=t)return n[Object(R.bisect)(e,t,0,r)]}var e=[.5],n=[0,1],r=1;return t.domain=function(i){return arguments.length?(e=L.call(i),r=Math.min(e.length,n.length-1),t):e.slice()},t.range=function(i){return arguments.length?(n=L.call(i),r=Math.min(e.length,n.length-1),t):n.slice()},t.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},t.copy=function(){return T().domain(e).range(n)},t}function j(t){return new Date(t)}function P(t){return t instanceof Date?+t:+new Date(+t)}function A(t,e,n,r,i,o,s,c,u){function h(a){return(s(a)<a?v:o(a)<a?m:i(a)<a?b:r(a)<a?_:e(a)<a?n(a)<a?x:w:t(a)<a?O:S)(a)}function d(e,n,r,i){if(null==e&&(e=10),"number"==typeof e){var o=Math.abs(r-n)/e,s=Object(R.bisector)(function(t){return t[2]}).right(C,o);s===C.length?(i=Object(R.tickStep)(n/tt,r/tt,e),e=t):s?(i=(s=C[o/C[s-1][2]<C[s][2]/o?s-1:s])[1],e=s[0]):(i=Math.max(Object(R.tickStep)(n,r,e),1),e=c)}return null==i?e:e.every(i)}var f=p(a,V.interpolateNumber),y=f.invert,g=f.domain,v=u(".%L"),m=u(":%S"),b=u("%I:%M"),_=u("%I %p"),x=u("%a %d"),w=u("%b %d"),O=u("%B"),S=u("%Y"),C=[[s,1,K],[s,5,5*K],[s,15,15*K],[s,30,30*K],[o,1,X],[o,5,5*X],[o,15,15*X],[o,30,30*X],[i,1,$],[i,3,3*$],[i,6,6*$],[i,12,12*$],[r,1,Q],[r,2,2*Q],[n,1,Z],[e,1,J],[e,3,3*J],[t,1,tt]];return f.invert=function(t){return new Date(y(t))},f.domain=function(t){return arguments.length?g(N.call(t,P)):g().map(j)},f.ticks=function(t,e){var n,r=g(),i=r[0],o=r[r.length-1],s=o<i;return s&&(n=i,i=o,o=n),n=d(t,i,o,e),n=n?n.range(i,o+1):[],s?n.reverse():n},f.tickFormat=function(t,e){return null==e?h:u(e)},f.nice=function(t,e){var n=g();return(t=d(t,n[0],n[n.length-1],e))?g(G(n,t)):f},f.copy=function(){return l(f,A(t,e,n,r,i,o,s,c,u))},f}function I(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}function k(t){function e(e){var o=(e-n)/(r-n);return t(i?Math.max(0,Math.min(1,o)):o)}var n=0,r=1,i=!1;return e.domain=function(t){return arguments.length?(n=+t[0],r=+t[1],e):[n,r]},e.clamp=function(t){return arguments.length?(i=!!t,e):i},e.interpolator=function(n){return arguments.length?(t=n,e):t},e.copy=function(){return k(t).domain([n,r]).clamp(i)},h(e)}Object.defineProperty(e,"__esModule",{value:!0});var R=n("lI2P"),M=n("X6cg"),D=Array.prototype,N=D.map,L=D.slice,F={name:"implicit"},V=n("dskq"),B=function(t){return function(){return t}},H=function(t){return+t},z=[0,1],U=n("Z9r9"),W=function(t,e,n){var r,i=t[0],o=t[t.length-1],s=Object(R.tickStep)(i,o,null==e?10:e);switch((n=Object(U.formatSpecifier)(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(i),Math.abs(o));return null!=n.precision||isNaN(r=Object(U.precisionPrefix)(s,a))||(n.precision=r),Object(U.formatPrefix)(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=Object(U.precisionRound)(s,Math.max(Math.abs(i),Math.abs(o))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=Object(U.precisionFixed)(s))||(n.precision=r-2*("%"===n.type))}return Object(U.format)(n)},G=function(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],s=t[i];return s<o&&(n=r,r=i,i=n,n=o,o=s,s=n),t[r]=e.floor(o),t[i]=e.ceil(s),t},q=n("1ZKk"),Y=n("S7bd"),K=1e3,X=60*K,$=60*X,Q=24*$,Z=7*Q,J=30*Q,tt=365*Q,et=function(){return A(q.k,q.f,q.j,q.a,q.b,q.d,q.g,q.c,Y.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},nt=function(){return A(q.v,q.q,q.u,q.l,q.m,q.o,q.r,q.n,Y.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},rt=function(t){return t.match(/.{6}/g).map(function(t){return"#"+t})},it=rt("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),ot=rt("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),st=rt("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),at=rt("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),ct=n("hW8u"),ut=Object(V.interpolateCubehelixLong)(Object(ct.cubehelix)(300,.5,0),Object(ct.cubehelix)(-240,.5,1)),lt=Object(V.interpolateCubehelixLong)(Object(ct.cubehelix)(-100,.75,.35),Object(ct.cubehelix)(80,1.5,.8)),pt=Object(V.interpolateCubehelixLong)(Object(ct.cubehelix)(260,.75,.35),Object(ct.cubehelix)(80,1.5,.8)),ht=Object(ct.cubehelix)(),dt=function(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return ht.h=360*t-100,ht.s=1.5-1.5*e,ht.l=.8-.9*e,ht+""},ft=I(rt("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),yt=I(rt("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),gt=I(rt("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),vt=I(rt("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));n.d(e,"scaleBand",function(){return i}),n.d(e,"scalePoint",function(){return s}),n.d(e,"scaleIdentity",function(){return f}),n.d(e,"scaleLinear",function(){return d}),n.d(e,"scaleLog",function(){return x}),n.d(e,"scaleOrdinal",function(){return r}),n.d(e,"scaleImplicit",function(){return F}),n.d(e,"scalePow",function(){return O}),n.d(e,"scaleSqrt",function(){return S}),n.d(e,"scaleQuantile",function(){return C}),n.d(e,"scaleQuantize",function(){return E}),n.d(e,"scaleThreshold",function(){return T}),n.d(e,"scaleTime",function(){return et}),n.d(e,"scaleUtc",function(){return nt}),n.d(e,"schemeCategory10",function(){return it}),n.d(e,"schemeCategory20b",function(){return ot}),n.d(e,"schemeCategory20c",function(){return st}),n.d(e,"schemeCategory20",function(){return at}),n.d(e,"interpolateCubehelixDefault",function(){return ut}),n.d(e,"interpolateRainbow",function(){return dt}),n.d(e,"interpolateWarm",function(){return lt}),n.d(e,"interpolateCool",function(){return pt}),n.d(e,"interpolateViridis",function(){return ft}),n.d(e,"interpolateMagma",function(){return yt}),n.d(e,"interpolateInferno",function(){return gt}),n.d(e,"interpolatePlasma",function(){return vt}),n.d(e,"scaleSequential",function(){return k})},z69B:function(t,e,n){"use strict";var r=n("bKpL"),i=n("gb+0");r.Observable.prototype.single=i.single},"z8/z":function(t,e,n){"use strict";var r=n("0imh"),i=n("P02W");e.publishReplay=function(t,e,n,o){n&&"function"!=typeof n&&(o=n);var s="function"==typeof n?n:void 0,a=new r.ReplaySubject(t,e,o);return function(t){return i.multicast(function(){return a},s)(t)}}},"zBM/":function(t,e,n){"use strict";var r=n("rlar"),i=n("P02W");e.publish=function(t){return t?i.multicast(function(){return new r.Subject},t):i.multicast(new r.Subject)}},zGUx:function(t,e,n){"use strict";var r=n("wbX9");e.fromEvent=r.FromEventObservable.create},zZnE:function(t,e,n){"use strict";var r=n("bKpL"),i=n("jyAw");r.Observable.prototype.groupBy=i.groupBy},zbre:function(t,e,n){"use strict";var r=n("5NGA");e.bufferCount=function(t,e){return void 0===e&&(e=null),r.bufferCount(t,e)(this)}},zc4d:function(t,e,n){"use strict";var r=n("bKpL"),i=n("uYJe");r.Observable.prototype.finally=i._finally,r.Observable.prototype._finally=i._finally},zdWg:function(t,e,n){"use strict";var r=n("bKpL"),i=n("Zfg9");r.Observable.prototype.skipLast=i.skipLast},zijX:function(t,e,n){"use strict";(function(t){var n="undefined"!=typeof window&&window,r="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=n||"undefined"!=typeof t&&t||r;e.root=i,function(){if(!i)throw new Error("RxJS could not find any global context (window, self, global)")}()}).call(e,n("fRUx"))},ziym:function(t,e,n){"use strict";var r=n("HPkd");e.ajax=r.AjaxObservable.create},zjlw:function(t,e,n){"use strict";var r=n("5r3W");e.retry=function(t){return void 0===t&&(t=-1),r.retry(t)(this)}},zrH4:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+"),o=n("TpsG");e.last=function(t,e,n){return function(r){return r.lift(new s(t,e,n,r))}};var s=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),a=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.hasValue=!1,this.index=0,"undefined"!=typeof i&&(this.lastValue=i,this.hasValue=!0)}return r(e,t),e.prototype._next=function(t){var e=this.index++;if(this.predicate)this._tryPredicate(t,e);else{if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}if(n){if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this.lastValue=n,this.hasValue=!0},e.prototype._complete=function(){var t=this.destination;this.hasValue?(t.next(this.lastValue),t.complete()):t.error(new o.EmptyError)},e}(i.Subscriber)}}); |