ng-pick-datetime
Version:
Angular Date Time Picker
1 lines • 280 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/animations"),require("@angular/forms")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/common","@angular/animations","@angular/forms"],t):t(e["ng-pick-datetime"]={},e.vendor._angular_core,e.vendor._angular_common,e.vendor._angular_animations,e.vendor._angular_forms)}(this,function(e,t,n,i,r){"use strict";var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function s(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function a(e){return"function"==typeof e}var c=!1,l={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;t.stack}c=e},get useDeprecatedSynchronousErrorHandling(){return c}};function u(e){setTimeout(function(){throw e})}var p={closed:!0,next:function(e){},error:function(e){if(l.useDeprecatedSynchronousErrorHandling)throw e;u(e)},complete:function(){}},h=Array.isArray||function(e){return e&&"number"==typeof e.length};function d(e){return null!=e&&"object"==typeof e}var f,m={e:{}};function y(){try{return f.apply(this,arguments)}catch(e){return m.e=e,m}}function g(e){return f=e,y}function b(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}b.prototype=Object.create(Error.prototype);var v=b,_=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,i=this._parents,r=this._unsubscribe,o=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var s=-1,c=i?i.length:0;n;)n.remove(this),n=++s<c&&i[s]||null;if(a(r))g(r).call(this)===m&&(t=!0,e=e||(m.e instanceof v?w(m.e.errors):[m.e]));if(h(o))for(s=-1,c=o.length;++s<c;){var l=o[s];if(d(l))if(g(l.unsubscribe).call(l)===m){t=!0,e=e||[];var u=m.e;u instanceof v?e=e.concat(w(u.errors)):e.push(u)}}if(t)throw new v(e)}},e.prototype.add=function(t){if(!t||t===e.EMPTY)return e.EMPTY;if(t===this)return this;var n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var i=n;(n=new e)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.prototype._addParent=function(e){var t=this._parent,n=this._parents;t&&t!==e?n?-1===n.indexOf(e)&&n.push(e):this._parents=[e]:this._parent=e},e.EMPTY=((t=new e).closed=!0,t),e}();function w(e){return e.reduce(function(e,t){return e.concat(t instanceof v?t.errors:t)},[])}var O="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),k=function(e){function t(n,i,r){var o=e.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,o._parentSubscription=null,arguments.length){case 0:o.destination=p;break;case 1:if(!n){o.destination=p;break}if("object"==typeof n){n instanceof t?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new C(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new C(o,n,i,r)}return o}return s(t,e),t.prototype[O]=function(){return this},t.create=function(e,n,i){var r=new t(e,n,i);return r.syncErrorThrowable=!1,r},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this._parentSubscription=null,this},t}(_),C=function(e){function t(t,n,i,r){var o,s=e.call(this)||this;s._parentSubscriber=t;var c=s;return a(n)?o=n:n&&(o=n.next,i=n.error,r=n.complete,n!==p&&(a((c=Object.create(n)).unsubscribe)&&s.add(c.unsubscribe.bind(c)),c.unsubscribe=s.unsubscribe.bind(s))),s._context=c,s._next=o,s._error=i,s._complete=r,s}return s(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;l.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=l.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):u(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;u(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};l.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),l.useDeprecatedSynchronousErrorHandling)throw e;u(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!l.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return l.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(u(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(k);var T="function"==typeof Symbol&&Symbol.observable||"@@observable";function S(){}var D=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var i=this.operator,r=function(e,t,n){if(e){if(e instanceof k)return e;if(e[O])return e[O]()}return e||t||n?new k(e,t,n):new k(p)}(e,t,n);if(i?i.call(r,this.source):r.add(this.source||l.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),l.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){l.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),!function(e){for(;e;){var t=e,n=t.closed,i=t.destination,r=t.isStopped;if(n||r)return!1;e=i&&i instanceof k?i:null}return!0}(e)?console.warn(t):e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=I(t))(function(t,i){var r;r=n.subscribe(function(t){try{e(t)}catch(e){i(e),r&&r.unsubscribe()}},i,t)})},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[T]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 0===t.length?this:((e=t)?1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}:S)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=I(e))(function(e,n){var i;t.subscribe(function(e){return i=e},function(e){return n(e)},function(){return e(i)})})},e.create=function(t){return new e(t)},e}();function I(e){if(e||(e=l.Promise||Promise),!e)throw new Error("no Promise impl found");return e}function M(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}M.prototype=Object.create(Error.prototype);var E=M,x=function(e){function t(t,n){var i=e.call(this)||this;return i.subject=t,i.subscriber=n,i.closed=!1,i}return s(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(_),A=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return s(t,e),t}(k),P=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return s(t,e),t.prototype[O]=function(){return new A(this)},t.prototype.lift=function(e){var t=new j(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new E;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].next(e)},t.prototype.error=function(e){if(this.closed)throw new E;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new E;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),i=0;i<t;i++)n[i].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new E;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new E;return this.hasError?(e.error(this.thrownError),_.EMPTY):this.isStopped?(e.complete(),_.EMPTY):(this.observers.push(e),new x(this,e))},t.prototype.asObservable=function(){var e=new D;return e.source=this,e},t.create=function(e,t){return new j(e,t)},t}(D),j=function(e){function t(t,n){var i=e.call(this)||this;return i.destination=t,i.source=n,i}return s(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):_.EMPTY},t}(P);var R=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.pending=!1,i}return s(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,i=void 0;try{this.work(e)}catch(e){n=!0,i=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),i},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(function(e){function t(t,n){return e.call(this)||this}return s(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(_)),V=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i}return s(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,i){return void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,i):t.flush(this)},t}(R),F=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}(),L=function(e){function t(n,i){void 0===i&&(i=F.now);var r=e.call(this,n,function(){return t.delegate&&t.delegate!==r?t.delegate.now():i()})||this;return r.actions=[],r.active=!1,r.scheduled=void 0,r}return s(t,e),t.prototype.schedule=function(n,i,r){return void 0===i&&(i=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,i,r):e.prototype.schedule.call(this,n,i,r)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(F),B=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t}(L))(V),N=new D(function(e){return e.complete()});function Y(e){return e?(t=e,new D(function(e){return t.schedule(function(){return e.complete()})})):N;var t}function H(e){return e&&"function"==typeof e.schedule}var z=function(e){return function(t){for(var n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.closed||t.complete()}};function W(e,t){return new D(t?function(n){var i=new _,r=0;return i.add(t.schedule(function(){r!==e.length?(n.next(e[r++]),n.closed||i.add(this.schedule())):n.complete()})),i}:z(e))}function Z(e){var t=new D(function(t){t.next(e),t.complete()});return t._isScalar=!0,t.value=e,t}function X(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];switch(H(n)?e.pop():n=void 0,e.length){case 0:return Y(n);case 1:return n?W(e,n):Z(e[0]);default:return W(e,n)}}function $(e){var t=e.error;e.subscriber.error(t)}var K=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){var e,t;switch(this.kind){case"N":return X(this.value);case"E":return e=this.error,new D(t?function(n){return t.schedule($,0,{error:e,subscriber:n})}:function(t){return t.error(e)});case"C":return Y()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}(),U=function(e){function t(t,n,i){void 0===i&&(i=0);var r=e.call(this,t)||this;return r.scheduler=n,r.delay=i,r}return s(t,e),t.dispatch=function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new G(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(K.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(K.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(K.createComplete()),this.unsubscribe()},t}(k),G=function(){return function(e,t){this.notification=e,this.destination=t}}(),q=function(e){function t(t,n,i){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=e.call(this)||this;return r.scheduler=i,r._events=[],r._infiniteTimeWindow=!1,r._bufferSize=t<1?1:t,r._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(r._infiniteTimeWindow=!0,r.next=r.nextInfiniteTimeWindow):r.next=r.nextTimeWindow,r}return s(t,e),t.prototype.nextInfiniteTimeWindow=function(t){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift(),e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this._events.push(new J(this._getNow(),t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;if(this.closed)throw new E;if(this.isStopped||this.hasError?t=_.EMPTY:(this.observers.push(e),t=new x(this,e)),r&&e.add(e=new U(e,r)),n)for(var s=0;s<o&&!e.closed;s++)e.next(i[s]);else for(s=0;s<o&&!e.closed;s++)e.next(i[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t},t.prototype._getNow=function(){return(this.scheduler||B).now()},t.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,o=0;o<r&&!(e-i[o].time<n);)o++;return r>t&&(o=Math.max(o,r-t)),o>0&&i.splice(0,o),i},t}(P),J=function(){return function(e,t){this.time=e,this.value=t}}();var Q=new L(R),ee=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i}return s(t,e),t.prototype.requestAsyncId=function(t,n,i){return void 0===i&&(i=0),null!==i&&i>0?e.prototype.requestAsyncId.call(this,t,n,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))},t.prototype.recycleAsyncId=function(t,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,i);0===t.actions.length&&(cancelAnimationFrame(n),t.scheduled=void 0)},t}(R),te=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<r&&(e=n.shift()));if(this.active=!1,t){for(;++i<r&&(e=n.shift());)e.unsubscribe();throw t}},t}(L))(ee);function ne(e){return e}function ie(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}ie.prototype=Object.create(Error.prototype);var re=ie;function oe(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}oe.prototype=Object.create(Error.prototype);function se(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new ae(e,t))}}var ae=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new ce(e,this.project,this.thisArg))},e}(),ce=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.project=n,r.count=0,r.thisArg=i||r,r}return s(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(k),le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(k),ue=function(e){function t(t,n,i){var r=e.call(this)||this;return r.parent=t,r.outerValue=n,r.outerIndex=i,r.index=0,r}return s(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(k),pe=function(e){return function(t){return e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,u),t}};var he=function(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),de=function(e){return function(t){for(var n=e[he]();;){var i=n.next();if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof n.return&&t.add(function(){n.return&&n.return()}),t}},fe=function(e){return function(t){var n=e[T]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)}},me=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function ye(e){return e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var ge=function(e){if(e instanceof D)return function(t){return e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t)};if(e&&"function"==typeof e[T])return fe(e);if(me(e))return z(e);if(ye(e))return pe(e);if(e&&"function"==typeof e[he])return de(e);var t=d(e)?"an invalid object":"'"+e+"'";throw new TypeError("You provided "+t+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function be(e,t,n,i,r){if(void 0===r&&(r=new ue(e,n,i)),!r.closed)return ge(t)(r)}function ve(e,t){if(!t)return e instanceof D?e:new D(ge(e));if(null!=e){if((a=e)&&"function"==typeof a[T])return o=e,new D((s=t)?function(e){var t=new _;return t.add(s.schedule(function(){var n=o[T]();t.add(n.subscribe({next:function(n){t.add(s.schedule(function(){return e.next(n)}))},error:function(n){t.add(s.schedule(function(){return e.error(n)}))},complete:function(){t.add(s.schedule(function(){return e.complete()}))}}))})),t}:fe(o));if(ye(e))return i=e,new D((r=t)?function(e){var t=new _;return t.add(r.schedule(function(){return i.then(function(n){t.add(r.schedule(function(){e.next(n),t.add(r.schedule(function(){return e.complete()}))}))},function(n){t.add(r.schedule(function(){return e.error(n)}))})})),t}:pe(i));if(me(e))return W(e,t);if((n=e)&&"function"==typeof n[he]||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new D(t?function(n){var i,r=new _;return r.add(function(){i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(function(){i=e[he](),r.add(t.schedule(function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(e){return void n.error(e)}t?n.complete():(n.next(e),this.schedule())}}))})),r}:de(e))}(e,t)}var n,i,r,o,s,a;throw new TypeError((null!==e&&typeof e||e)+" is not observable")}var _e=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new we(e,this.project,this.concurrent))},e}(),we=function(e){function t(t,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY);var r=e.call(this,t)||this;return r.project=n,r.concurrent=i,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return s(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var i=new ue(this,void 0,void 0);this.destination.add(i),be(this,e,t,n,i)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(le);function Oe(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),function e(t,n,i){return void 0===i&&(i=Number.POSITIVE_INFINITY),"function"==typeof n?function(r){return r.pipe(e(function(e,i){return ve(t(e,i)).pipe(se(function(t,r){return n(e,t,i,r)}))},i))}:("number"==typeof n&&(i=n),function(e){return e.lift(new _e(t,i))})}(ne,e)}function ke(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length||2===e.length&&H(e[1])?ve(e[0]):Oe(1)(X.apply(void 0,e))}function Ce(e,t,n,i){return a(n)&&(i=n,n=void 0),i?Ce(e,t,n).pipe(se(function(e){return h(e)?i.apply(void 0,e):i(e)})):new D(function(i){!function e(t,n,i,r,o){var s;if(f=t,f&&"function"==typeof f.addEventListener&&"function"==typeof f.removeEventListener){var a=t;t.addEventListener(n,i,o),s=function(){return a.removeEventListener(n,i,o)}}else if(d=t,d&&"function"==typeof d.on&&"function"==typeof d.off){var c=t;t.on(n,i),s=function(){return c.off(n,i)}}else if(h=t,h&&"function"==typeof h.addListener&&"function"==typeof h.removeListener){var l=t;t.addListener(n,i),s=function(){return l.removeListener(n,i)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var u=0,p=t.length;u<p;u++)e(t[u],n,i,r,o)}var h;var d;var f;r.add(s)}(e,t,function(e){arguments.length>1?i.next(Array.prototype.slice.call(arguments)):i.next(e)},i,n)})}function Te(e){return!h(e)&&e-parseFloat(e)+1>=0}function Se(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Number.POSITIVE_INFINITY,i=null,r=e[e.length-1];return H(r)?(i=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof r&&(n=e.pop()),null===i&&1===e.length&&e[0]instanceof D?e[0]:Oe(n)(W(e,i))}function De(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}var Ie=27;var Me=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new Ee(e,this.durationSelector))},e}(),Ee=function(e){function t(t,n){var i=e.call(this,t)||this;return i.durationSelector=n,i.hasValue=!1,i}return s(t,e),t.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t=g(this.durationSelector)(e);if(t===m)this.destination.error(m.e);else{var n=be(this,t);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},t.prototype.clearThrottle=function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),t&&(this.value=null,this.hasValue=!1,this.destination.next(e))},t.prototype.notifyNext=function(e,t,n,i){this.clearThrottle()},t.prototype.notifyComplete=function(){this.clearThrottle()},t}(le);function xe(e,t){return void 0===t&&(t=Q),n=function(){return function(e,t,n){void 0===e&&(e=0);var i=-1;return Te(t)?i=Number(t)<1?1:Number(t):H(t)&&(n=t),H(n)||(n=Q),new D(function(t){var r=Te(e)?e:+e-n.now();return n.schedule(De,r,{index:0,period:i,subscriber:t})})}(e,t)},function(e){return e.lift(new Me(n))};var n}function Ae(e,t){return void 0===t&&(t=Q),function(n){return n.lift(new Pe(e,t))}}var Pe=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new je(e,this.dueTime,this.scheduler))},e}(),je=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.dueTime=n,r.scheduler=i,r.debouncedSubscription=null,r.lastValue=null,r.hasValue=!1,r}return s(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Re,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(k);function Re(e){e.debouncedNext()}function Ve(e,t){return function(n){return n.lift(new Fe(e,t))}}var Fe=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new Le(e,this.compare,this.keySelector))},e}(),Le=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.keySelector=i,r.hasKey=!1,"function"==typeof n&&(r.compare=n),r}return s(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t=e;if(this.keySelector&&(t=g(this.keySelector)(e))===m)return this.destination.error(m.e);var n=!1;if(this.hasKey){if((n=g(this.compare)(this.key,t))===m)return this.destination.error(m.e)}else this.hasKey=!0;!1===Boolean(n)&&(this.key=t,this.destination.next(e))},t}(k);function Be(e,t){return function(n){return n.lift(new Ne(e,t))}}var Ne=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new Ye(e,this.predicate,this.thisArg))},e}(),Ye=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.predicate=n,r.thisArg=i,r.count=0,r}return s(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(k);var He=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new ze(e,this.nextOrObserver,this.error,this.complete))},e}(),ze=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o._tapNext=S,o._tapError=S,o._tapComplete=S,o._tapError=i||S,o._tapComplete=r||S,a(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||S,o._tapError=n.error||S,o._tapComplete=n.complete||S),o}return s(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(k);function We(e){return function(t){return 0===e?Y():t.lift(new Ze(e))}}var Ze=function(){function e(e){if(this.total=e,this.total<0)throw new re}return e.prototype.call=function(e,t){return t.subscribe(new Xe(e,this.total))},e}(),Xe=function(e){function t(t,n){var i=e.call(this,t)||this;return i.total=n,i.count=0,i}return s(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(k);var $e=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Ke(e))},e}(),Ke=function(e){function t(t){var n=e.call(this,t)||this;return n.hasPrev=!1,n}return s(t,e),t.prototype._next=function(e){this.hasPrev?this.destination.next([this.prev,e]):this.hasPrev=!0,this.prev=e},t}(k);function Ue(e,t,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===t&&(t=Number.POSITIVE_INFINITY),function(i){return i.lift((r=e,o=t,s=n,l=0,u=!1,p=!1,function(e){l++,a&&!u||(u=!1,a=new q(r,o,s),c=e.subscribe({next:function(e){a.next(e)},error:function(e){u=!0,a.error(e)},complete:function(){p=!0,a.complete()}}));var t=a.subscribe(this);return function(){l--,t.unsubscribe(),c&&0===l&&p&&c.unsubscribe()}}));var r,o,s,a,c,l,u,p}}function Ge(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n=e[e.length-1];H(n)?e.pop():n=null;var i=e.length;return ke(1!==i||n?i>0?W(e,n):Y(n):Z(e[0]),t)}}var qe=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new Je(e,this.project))},e}(),Je=function(e){function t(t,n){var i=e.call(this,t)||this;return i.project=n,i.index=0,i}return s(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var i=this.innerSubscription;i&&i.unsubscribe();var r=new ue(this,void 0,void 0);this.destination.add(r),this.innerSubscription=be(this,e,t,n,r)},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this),this.unsubscribe()},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(t)},t}(le);function Qe(e){return function(t){return t.lift(new et(e))}}var et=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new tt(e),i=be(n,this.notifier);return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n},e}(),tt=function(e){function t(t){var n=e.call(this,t)||this;return n.seenValue=!1,n}return s(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.seenValue=!0,this.complete()},t.prototype.notifyComplete=function(){},t}(le);var nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};function it(e,t){function n(){this.constructor=e}nt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var rt,ot=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},st="undefined"!=typeof Intl&&Intl.v8BreakIterator,at=function(){function e(e){this._platformId=e,this.isBrowser=this._platformId?n.isPlatformBrowser(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!st)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}return e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:Object,decorators:[{type:t.Optional},{type:t.Inject,args:[t.PLATFORM_ID]}]}]},e.ngInjectableDef=t.defineInjectable({factory:function(){return new e(t.inject(t.PLATFORM_ID,8))},token:e,providedIn:"root"}),e}(),ct=function(){function e(){}return e.decorators=[{type:t.NgModule}],e}();function lt(){if(null==rt&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return rt=!0}}))}finally{rt=rt||!1}return rt}var ut,pt={NORMAL:0,NEGATED:1,INVERTED:2};function ht(){if("object"!=typeof document||!document)return pt.NORMAL;if(!ut){var e=document.createElement("div"),t=e.style;e.dir="rtl",t.height="1px",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";var n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",e.appendChild(n),document.body.appendChild(e),ut=pt.NORMAL,0===e.scrollLeft&&(e.scrollLeft=1,ut=0===e.scrollLeft?pt.NEGATED:pt.INVERTED),e.parentNode.removeChild(e)}return ut}function dt(e){return null!=e&&""+e!="false"}function ft(e,t){return void 0===t&&(t=0),n=e,isNaN(parseFloat(n))||isNaN(Number(n))?t:Number(e);var n}function mt(e){return Array.isArray(e)?e:[e]}function yt(e){return null==e?"":"string"==typeof e?e:e+"px"}pt[pt.NORMAL]="NORMAL",pt[pt.NEGATED]="NEGATED",pt[pt.INVERTED]="INVERTED";var gt=function(){function e(){}return e.prototype.create=function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)},e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ngInjectableDef=t.defineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e}(),bt=function(){function e(e){this._mutationObserverFactory=e,this._observedElements=new Map}return e.prototype.ngOnDestroy=function(){var e=this;this._observedElements.forEach(function(t,n){return e._cleanupObserver(n)})},e.prototype.observe=function(e){var n=this,i=e instanceof t.ElementRef?e.nativeElement:e;return D.create(function(e){var t=n._observeElement(i).subscribe(e);return function(){t.unsubscribe(),n._unobserveElement(i)}})},e.prototype._observeElement=function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new P,n=this._mutationObserverFactory.create(function(e){return t.next(e)});n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream},e.prototype._unobserveElement=function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))},e.prototype._cleanupObserver=function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,i=t.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(e)}},e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:gt}]},e.ngInjectableDef=t.defineInjectable({factory:function(){return new e(t.inject(gt))},token:e,providedIn:"root"}),e}(),vt=function(){function e(e,n,i){this._contentObserver=e,this._elementRef=n,this._ngZone=i,this.event=new t.EventEmitter,this._disabled=!1,this._currentSubscription=null}return Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=dt(e),this._disabled?this._unsubscribe():this._subscribe()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"debounce",{get:function(){return this._debounce},set:function(e){this._debounce=ft(e),this._subscribe()},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this._currentSubscription||this.disabled||this._subscribe()},e.prototype.ngOnDestroy=function(){this._unsubscribe()},e.prototype._subscribe=function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){e._currentSubscription=(e.debounce?t.pipe(Ae(e.debounce)):t).subscribe(e.event)})},e.prototype._unsubscribe=function(){this._currentSubscription&&this._currentSubscription.unsubscribe()},e.decorators=[{type:t.Directive,args:[{selector:"[cdkObserveContent]",exportAs:"cdkObserveContent"}]}],e.ctorParameters=function(){return[{type:bt},{type:t.ElementRef},{type:t.NgZone}]},e.propDecorators={event:[{type:t.Output,args:["cdkObserveContent"]}],disabled:[{type:t.Input,args:["cdkObserveContentDisabled"]}],debounce:[{type:t.Input}]},e}(),_t=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{exports:[vt],declarations:[vt],providers:[gt]}]}],e}(),wt=" ";function Ot(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var kt="cdk-describedby-message-container",Ct="cdk-describedby-message",Tt="cdk-describedby-host",St=0,Dt=new Map,It=null,Mt=function(){function e(e){this._document=e}return e.prototype.describe=function(e,t){this._canBeDescribed(e,t)&&(Dt.has(t)||this._createMessageElement(t),this._isElementDescribedByMessage(e,t)||this._addMessageReference(e,t))},e.prototype.removeDescription=function(e,t){if(this._canBeDescribed(e,t)){this._isElementDescribedByMessage(e,t)&&this._removeMessageReference(e,t);var n=Dt.get(t);n&&0===n.referenceCount&&this._deleteMessageElement(t),It&&0===It.childNodes.length&&this._deleteMessagesContainer()}},e.prototype.ngOnDestroy=function(){for(var e=this._document.querySelectorAll("["+Tt+"]"),t=0;t<e.length;t++)this._removeCdkDescribedByReferenceIds(e[t]),e[t].removeAttribute(Tt);It&&this._deleteMessagesContainer(),Dt.clear()},e.prototype._createMessageElement=function(e){var t=this._document.createElement("div");t.setAttribute("id",Ct+"-"+St++),t.appendChild(this._document.createTextNode(e)),this._createMessagesContainer(),It.appendChild(t),Dt.set(e,{messageElement:t,referenceCount:0})},e.prototype._deleteMessageElement=function(e){var t=Dt.get(e),n=t&&t.messageElement;It&&n&&It.removeChild(n),Dt.delete(e)},e.prototype._createMessagesContainer=function(){if(!It){var e=this._document.getElementById(kt);e&&e.parentNode.removeChild(e),(It=this._document.createElement("div")).id=kt,It.setAttribute("aria-hidden","true"),It.style.display="none",this._document.body.appendChild(It)}},e.prototype._deleteMessagesContainer=function(){It&&It.parentNode&&(It.parentNode.removeChild(It),It=null)},e.prototype._removeCdkDescribedByReferenceIds=function(e){var t=Ot(e,"aria-describedby").filter(function(e){return 0!=e.indexOf(Ct)});e.setAttribute("aria-describedby",t.join(" "))},e.prototype._addMessageReference=function(e,t){var n,i,r,o,s=Dt.get(t);n=e,i="aria-describedby",r=s.messageElement.id,(o=Ot(n,i)).some(function(e){return e.trim()==r.trim()})||(o.push(r.trim()),n.setAttribute(i,o.join(wt))),e.setAttribute(Tt,""),s.referenceCount++},e.prototype._removeMessageReference=function(e,t){var n,i,r,o,s=Dt.get(t);s.referenceCount--,n=e,i="aria-describedby",r=s.messageElement.id,o=Ot(n,i).filter(function(e){return e!=r.trim()}),n.setAttribute(i,o.join(wt)),e.removeAttribute(Tt)},e.prototype._isElementDescribedByMessage=function(e,t){var n=Ot(e,"aria-describedby"),i=Dt.get(t),r=i&&i.messageElement.id;return!!r&&-1!=n.indexOf(r)},e.prototype._canBeDescribed=function(e,t){return e.nodeType===this._document.ELEMENT_NODE&&null!=t&&!!(""+t).trim()},e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[n.DOCUMENT]}]}]},e.ngInjectableDef=t.defineInjectable({factory:function(){return new e(t.inject(n.DOCUMENT))},token:e,providedIn:"root"}),e}();new t.Optional,new t.SkipSelf,n.DOCUMENT;var Et=function(){function e(e){var n=this;this._items=e,this._activeItemIndex=-1,this._wrap=!1,this._letterKeyStream=new P,this._typeaheadSubscription=_.EMPTY,this._vertical=!0,this._skipPredicateFn=function(e){return e.disabled},this._pressedLetters=[],this.tabOut=new P,this.change=new P,e instanceof t.QueryList&&e.changes.subscribe(function(e){if(n._activeItem){var t=e.toArray().indexOf(n._activeItem);t>-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return e.prototype.skipPredicate=function(e){return this._skipPredicateFn=e,this},e.prototype.withWrap=function(e){return void 0===e&&(e=!0),this._wrap=e,this},e.prototype.withVerticalOrientation=function(e){return void 0===e&&(e=!0),this._vertical=e,this},e.prototype.withHorizontalOrientation=function(e){return this._horizontal=e,this},e.prototype.withTypeAhead=function(e){var t,n,i,r=this;if(void 0===e&&(e=200),this._items.length&&this._items.some(function(e){return"function"!=typeof e.getLabel}))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((t=function(e){return r._pressedLetters.push(e)},function(e){return e.lift(new He(t,n,i))}),Ae(e),Be(function(){return r._pressedLetters.length>0}),se(function(){return r._pressedLetters.join("")})).subscribe(function(e){for(var t=r._getItemsArray(),n=1;n<t.length+1;n++){var i=(r._activeItemIndex+n)%t.length,o=t[i];if(!r._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(e)){r.setActiveItem(i);break}}r._pressedLetters=[]}),this},e.prototype.setActiveItem=function(e){var t=this._activeItemIndex;this.updateActiveItem(e),this._activeItemIndex!==t&&this.change.next(this._activeItemIndex)},e.prototype.onKeydown=function(e){var t=e.keyCode;switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical){this.setNextItemActive();break}return;case 38:if(this._vertical){this.setPreviousItemActive();break}return;case 39:if("ltr"===this._horizontal){this.setNextItemActive();break}if("rtl"===this._horizontal){this.setPreviousItemActive();break}return;case 37:if("ltr"===this._horizontal){this.setPreviousItemActive();break}if("rtl"===this._horizontal){this.setNextItemActive();break}return;default:return void(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t)))}this._pressedLetters=[],e.preventDefault()},Object.defineProperty(e.prototype,"activeItemIndex",{get:function(){return this._activeItemIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeItem",{get:function(){return this._activeItem},enumerable:!0,configurable:!0}),e.prototype.setFirstItemActive=function(){this._setActiveItemByIndex(0,1)},e.prototype.setLastItemActive=function(){this._setActiveItemByIndex(this._items.length-1,-1)},e.prototype.setNextItemActive=function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)},e.prototype.setPreviousItemActive=function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)},e.prototype.updateActiveItem=function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e);this._activeItemIndex=n,this._activeItem=t[n]},e.prototype.updateActiveItemIndex=function(e){this.updateActiveItem(e)},e.prototype._setActiveItemByDelta=function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)},e.prototype._setActiveInWrapMode=function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length,r=t[i];if(!this._skipPredicateFn(r))return void this.setActiveItem(i)}},e.prototype._setActiveInDefaultMode=function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)},e.prototype._setActiveItemByIndex=function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}},e.prototype._getItemsArray=function(){return this._items instanceof t.QueryList?this._items.toArray():this._items},e}(),xt=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}it(t,e),t.prototype.setActiveItem=function(t){this.activeItem&&this.activeItem.setInactiveStyles(),e.prototype.setActiveItem.call(this,t),this.activeItem&&this.activeItem.setActiveStyles()}}(Et),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._origin="program",t}it(t,e),t.prototype.setFocusOrigin=function(e){return this._origin=e,this},t.prototype.setActiveItem=function(t){e.prototype.setActiveItem.call(this,t),this.activeItem&&this.activeItem.focus(this._origin)}}(Et),function(){function e(e){this._platform=e}return e.prototype.isDisabled=function(e){return e.hasAttribute("disabled")},e.prototype.isVisible=function(e){return!!((t=e).offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)&&"visible"===getComputedStyle(e).visibility;var t},e.prototype.isTabbable=function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(e){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){var i=n&&n.nodeName.toLowerCase();if(-1===Pt(n))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===i)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(n))return!1}var r,o,s,a=e.nodeName.toLowerCase(),c=Pt(e);if(e.hasAttribute("contenteditable"))return-1!==c;if("iframe"===a)return!1;if("audio"===a){if(!e.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===a){if(!e.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==a||!this._platform.BLINK&&!this._platform.WEBKIT)&&((!this._platform.WEBKIT||!this._platform.IOS||(o=(r=e).nodeName.toLowerCase(),"text"===(s="input"===o&&r.type)||"password"===s||"select"===o||"textarea"===o))&&e.tabIndex>=0)},e.prototype.isFocusable=function(e){return function(e){if(t=e,n=t,"input"==n.nodeName.toLowerCase()&&"hidden"==t.type)return!1;var t,n;return o=e,s=o.nodeName.toLowerCase(),"input"===s||"select"===s||"button"===s||"textarea"===s||(i=e,r=i,"a"==r.nodeName.toLowerCase()&&i.hasAttribute("href"))||e.hasAttribute("contenteditable")||At(e);var i,r;var o,s}(e)&&!this.isDisabled(e)&&this.isVisible(e)},e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:at}]},e.ngInjectableDef=t.defineInjectable({factory:function(){return new e(t.inject(at))},token:e,providedIn:"root"}),e}());function At(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function Pt(e){if(!At(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var jt=function(){function e(e,t,n,i,r){void 0===r&&(r=!1),this._element=e,this._checker=t,this._ngZone=n,this._document=i,this._hasAttached=!1,this._enabled=!0,r||this.attachAnchors()}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._startAnchor&&this._startAnchor.parentNode&&this._startAnchor.parentNode.removeChild(this._startAnchor),this._endAnchor&&this._endAnchor.parentNode&&this._endAnchor.parentN