diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d72eb2c..c648f5ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [8.0.1](https://github.com/optimistex/ngx-select-ex/compare/v8.0.0...v8.0.1) (2022-01-20) + + +### Bug Fixes + +* add `lodash.isequal` to peerDependencies ([fbe2f6b](https://github.com/optimistex/ngx-select-ex/commit/fbe2f6b6e70e850f6ec751628667be42419c46c2)) + ## [8.0.0](https://github.com/optimistex/ngx-select-ex/compare/v7.0.1...v8.0.0) (2022-01-20) diff --git a/docs/index.html b/docs/index.html index 7e877bdf..16ba3cfd 100644 --- a/docs/index.html +++ b/docs/index.html @@ -34,6 +34,6 @@ Loading... - + \ No newline at end of file diff --git a/docs/main.860eee49fffbc2d5.js b/docs/main.4eabd128646d5578.js similarity index 99% rename from docs/main.860eee49fffbc2d5.js rename to docs/main.4eabd128646d5578.js index 8906e527..9577939d 100644 --- a/docs/main.860eee49fffbc2d5.js +++ b/docs/main.4eabd128646d5578.js @@ -1 +1 @@ -(self.webpackChunkngx_select_ex=self.webpackChunkngx_select_ex||[]).push([[179],{322:function(De,j,L){"use strict";function ce(e){return(ce=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function qt(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=ce(e)););return e}function ue(){return ue="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(n,t,r){var i=qt(n,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?n:r):o.value}},ue.apply(this,arguments)}function ur(e,n){for(var t=0;te.length)&&(n=e.length);for(var t=0,r=new Array(n);t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,o=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var l=t.next();return o=l.done,l},e:function(l){a=!0,u=l},f:function(){try{!o&&null!=t.return&&t.return()}finally{if(a)throw u}}}}function ft(e,n){return function It(e){if(Array.isArray(e))return e}(e)||function un(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,u,r=[],i=!0,o=!1;try{for(t=t.call(e);!(i=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);i=!0);}catch(s){o=!0,u=s}finally{try{!i&&null!=t.return&&t.return()}finally{if(o)throw u}}return r}}(e,n)||et(e,n)||function Dr(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Re(e){return function Cr(e){if(Array.isArray(e))return Wt(e)}(e)||function ln(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||et(e)||function Wr(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function at(e,n,t){return(at=_r()?Reflect.construct:function(i,o,a){var u=[null];u.push.apply(u,o);var l=new(Function.bind.apply(i,u));return a&&zt(l,a.prototype),l}).apply(null,arguments)}function We(e){var n="function"==typeof Map?new Map:void 0;return We=function(r){if(null===r||!function $r(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(r))return r;if("function"!=typeof r)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(r))return n.get(r);n.set(r,i)}function i(){return at(r,arguments,ce(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),zt(i,r)},We(e)}function Te(e){return"function"==typeof e}function Zr(e){var t=e(function(i){Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var I=Zr(function(e){return function(t){e(this),this.message=t?"".concat(t.length," errors occurred during unsubscription:\n").concat(t.map(function(r,i){return"".concat(i+1,") ").concat(r.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=t}});function A(e,n){if(e){var t=e.indexOf(n);0<=t&&e.splice(t,1)}}var e,x=function(){function e(n){g(this,e),this.initialTeardown=n,this.closed=!1,this._parentage=null,this._teardowns=null}return p(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){this.closed=!0;var r=this._parentage;if(r)if(this._parentage=null,Array.isArray(r)){var o,i=ct(r);try{for(i.s();!(o=i.n()).done;)o.value.remove(this)}catch(d){i.e(d)}finally{i.f()}}else r.remove(this);var u=this.initialTeardown;if(Te(u))try{u()}catch(d){t=d instanceof I?d.errors:[d]}var s=this._teardowns;if(s){this._teardowns=null;var c,l=ct(s);try{for(l.s();!(c=l.n()).done;){var f=c.value;try{K(f)}catch(d){t=null!=t?t:[],d instanceof I?t=[].concat(Re(t),Re(d.errors)):t.push(d)}}}catch(d){l.e(d)}finally{l.f()}}if(t)throw new I(t)}}},{key:"add",value:function(t){var r;if(t&&t!==this)if(this.closed)K(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(r=this._teardowns)&&void 0!==r?r:[]).push(t)}}},{key:"_hasParent",value:function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)}},{key:"_addParent",value:function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t}},{key:"_removeParent",value:function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&A(r,t)}},{key:"remove",value:function(t){var r=this._teardowns;r&&A(r,t),t instanceof e&&t._removeParent(this)}}]),e}();x.EMPTY=((e=new x).closed=!0,e);var B=x.EMPTY;function X(e){return e instanceof x||e&&"closed"in e&&Te(e.remove)&&Te(e.add)&&Te(e.unsubscribe)}function K(e){Te(e)?e():e.unsubscribe()}var $e={setTimeout:function(e){function n(){return e.apply(this,arguments)}return n.toString=function(){return e.toString()},n}(function(){var e=$e.delegate;return((null==e?void 0:e.setTimeout)||setTimeout).apply(void 0,arguments)}),clearTimeout:function(e){function n(t){return e.apply(this,arguments)}return n.toString=function(){return e.toString()},n}(function(e){var n=$e.delegate;return((null==n?void 0:n.clearTimeout)||clearTimeout)(e)}),delegate:void 0};function ee(e){$e.setTimeout(function(){throw e})}function He(){}var Un=gi("C",void 0,void 0);function gi(e,n,t){return{kind:e,value:n,error:t}}function br(e){e()}var mi=function(e){T(t,e);var n=F(t);function t(r){var i;return g(this,t),(i=n.call(this)).isStopped=!1,r?(i.destination=r,X(r)&&r.add(ze(i))):i.destination=Qs,i}return p(t,[{key:"next",value:function(i){this.isStopped?Fo(function cn(e){return gi("N",e,void 0)}(i),this):this._next(i)}},{key:"error",value:function(i){this.isStopped?Fo(function dt(e){return gi("E",void 0,e)}(i),this):(this.isStopped=!0,this._error(i))}},{key:"complete",value:function(){this.isStopped?Fo(Un,this):(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,ue(ce(t.prototype),"unsubscribe",this).call(this),this.destination=null)}},{key:"_next",value:function(i){this.destination.next(i)}},{key:"_error",value:function(i){try{this.destination.error(i)}finally{this.unsubscribe()}}},{key:"_complete",value:function(){try{this.destination.complete()}finally{this.unsubscribe()}}}],[{key:"create",value:function(i,o,a){return new yi(i,o,a)}}]),t}(x),yi=function(e){T(t,e);var n=F(t);function t(r,i,o){var a,u;if(g(this,t),a=n.call(this),Te(r))u=r;else if(r){var s;u=r.next,i=r.error,o=r.complete,ze(a),s=r,u=null==u?void 0:u.bind(s),i=null==i?void 0:i.bind(s),o=null==o?void 0:o.bind(s)}return a.destination={next:u?xo(u,ze(a)):He,error:xo(null!=i?i:Ua,ze(a)),complete:o?xo(o,ze(a)):He},a}return p(t)}(mi);function xo(e,n){return function(){try{e.apply(void 0,arguments)}catch(t){ee(t)}}}function Ua(e){throw e}function Fo(e,n){var t=null;t&&$e.setTimeout(function(){return t(e,n)})}var Qs={closed:!0,next:He,error:Ua,complete:He},Oo="function"==typeof Symbol&&Symbol.observable||"@@observable";function wr(e){return e}function qa(e){return 0===e.length?wr:1===e.length?e[0]:function(t){return e.reduce(function(r,i){return i(r)},t)}}var ut=function(){var e=function(){function n(t){g(this,n),t&&(this._subscribe=t)}return p(n,[{key:"lift",value:function(r){var i=new n;return i.source=this,i.operator=r,i}},{key:"subscribe",value:function(r,i,o){var a=this,u=function _i(e){return e&&e instanceof mi||function Ys(e){return e&&Te(e.next)&&Te(e.error)&&Te(e.complete)}(e)&&X(e)}(r)?r:new yi(r,i,o);return br(function(){var s=a.operator,l=a.source;u.add(s?s.call(u,l):l?a._subscribe(u):a._trySubscribe(u))}),u}},{key:"_trySubscribe",value:function(r){try{return this._subscribe(r)}catch(i){r.error(i)}}},{key:"forEach",value:function(r,i){var o=this;return new(i=za(i))(function(a,u){var s=new yi({next:function(c){try{r(c)}catch(f){u(f),s.unsubscribe()}},error:u,complete:a});o.subscribe(s)})}},{key:"_subscribe",value:function(r){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(r)}},{key:Oo,value:function(){return this}},{key:"pipe",value:function(){for(var r=arguments.length,i=new Array(r),o=0;o0}},{key:"_trySubscribe",value:function(o){return this._throwIfClosed(),ue(ce(r.prototype),"_trySubscribe",this).call(this,o)}},{key:"_subscribe",value:function(o){return this._throwIfClosed(),this._checkFinalizedStatuses(o),this._innerSubscribe(o)}},{key:"_innerSubscribe",value:function(o){var s=this.observers;return this.hasError||this.isStopped?B:(s.push(o),new x(function(){return A(s,o)}))}},{key:"_checkFinalizedStatuses",value:function(o){var s=this.isStopped;this.hasError?o.error(this.thrownError):s&&o.complete()}},{key:"asObservable",value:function(){var o=new ut;return o.source=this,o}}]),r}(ut);return e.create=function(n,t){return new $t(n,t)},e}(),$t=function(e){T(t,e);var n=F(t);function t(r,i){var o;return g(this,t),(o=n.call(this)).destination=r,o.source=i,o}return p(t,[{key:"next",value:function(i){var o,a;null===(a=null===(o=this.destination)||void 0===o?void 0:o.next)||void 0===a||a.call(o,i)}},{key:"error",value:function(i){var o,a;null===(a=null===(o=this.destination)||void 0===o?void 0:o.error)||void 0===a||a.call(o,i)}},{key:"complete",value:function(){var i,o;null===(o=null===(i=this.destination)||void 0===i?void 0:i.complete)||void 0===o||o.call(i)}},{key:"_subscribe",value:function(i){var o,a;return null!==(a=null===(o=this.source)||void 0===o?void 0:o.subscribe(i))&&void 0!==a?a:B}}]),t}(sr);function gt(e){return function(n){if(function Wa(e){return Te(null==e?void 0:e.lift)}(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}var bt=function(e){T(t,e);var n=F(t);function t(r,i,o,a,u){var s,l,c,f;return g(this,t),(f=n.call(this,r)).onFinalize=u,f._next=i?function(d){try{i(d)}catch(h){r.error(h)}}:ue((s=ze(f),ce(t.prototype)),"_next",s),f._error=a?function(d){try{a(d)}catch(h){r.error(h)}finally{this.unsubscribe()}}:ue((l=ze(f),ce(t.prototype)),"_error",l),f._complete=o?function(){try{o()}catch(d){r.error(d)}finally{this.unsubscribe()}}:ue((c=ze(f),ce(t.prototype)),"_complete",c),f}return p(t,[{key:"unsubscribe",value:function(){var i,o=this.closed;ue(ce(t.prototype),"unsubscribe",this).call(this),!o&&(null===(i=this.onFinalize)||void 0===i||i.call(this))}}]),t}(mi);function fn(e,n){return gt(function(t,r){var i=0;t.subscribe(new bt(r,function(o){r.next(e.call(n,o,i++))}))})}var Di=L(757),Kr=L.n(Di);function lr(e){return this instanceof lr?(this.v=e,this):new lr(e)}function Qa(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=t.apply(e,n||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(d){r[d]&&(i[d]=function(h){return new Promise(function(m,_){o.push([d,h,m,_])>1||u(d,h)})})}function u(d,h){try{!function s(d){d.value instanceof lr?Promise.resolve(d.value.v).then(l,c):f(o[0][2],d)}(r[d](h))}catch(m){f(o[0][3],m)}}function l(d){u("next",d)}function c(d){u("throw",d)}function f(d,h){d(h),o.shift(),o.length&&u(o[0][0],o[0][1])}}function cr(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function Er(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(a){return new Promise(function(u,s){!function i(o,a,u,s){Promise.resolve(s).then(function(l){o({value:l,done:u})},a)}(u,s,(a=e[o](a)).done,a.value)})}}}var Ja=function(n){return n&&"number"==typeof n.length&&"function"!=typeof n};function Xa(e){return Te(null==e?void 0:e.then)}function eu(e){return Te(e[Oo])}function tu(e){return Symbol.asyncIterator&&Te(null==e?void 0:e[Symbol.asyncIterator])}function nu(e){return new TypeError("You provided ".concat(null!==e&&"object"==typeof e?"an invalid object":"'".concat(e,"'")," where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."))}var ru=function fr(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function iu(e){return Te(null==e?void 0:e[ru])}function ou(e){return Qa(this,arguments,Kr().mark(function n(){var t,r,i;return Kr().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:t=e.getReader(),u.prev=1;case 2:return u.next=5,lr(t.read());case 5:if(i=(r=u.sent).value,!r.done){u.next=12;break}return u.next=11,lr(void 0);case 11:return u.abrupt("return",u.sent);case 12:return u.next=14,lr(i);case 14:return u.next=16,u.sent;case 16:u.next=2;break;case 18:return u.prev=18,t.releaseLock(),u.finish(18);case 21:case"end":return u.stop()}},n,null,[[1,,18,21]])}))}function au(e){return Te(null==e?void 0:e.getReader)}function $n(e){if(e instanceof ut)return e;if(null!=e){if(eu(e))return function wi(e){return new ut(function(n){var t=e[Oo]();if(Te(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Ja(e))return function tl(e){return new ut(function(n){for(var t=0;t3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=n.schedule(function(){t(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function ol(e,n,t,r,i,o,a,u){var s=[],l=0,c=0,f=!1,d=function(){f&&!s.length&&!l&&n.complete()},h=function(C){return l2&&void 0!==arguments[2]?arguments[2]:1/0;return Te(n)?kr(function(r,i){return fn(function(o,a){return n(r,o,i,a)})($n(e(r,i)))},t):("number"==typeof n&&(t=n),gt(function(r,i){return ol(r,i,e,t)}))}function Ei(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;return kr(wr,e)}var Yr=new ut(function(e){return e.complete()});function Po(e){return e[e.length-1]}function cu(e){return Te(Po(e))?e.pop():void 0}function Ro(e){return function lu(e){return e&&Te(e.schedule)}(Po(e))?e.pop():void 0}function al(e,n){return"number"==typeof Po(e)?e.pop():n}function No(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return gt(function(t,r){t.subscribe(new bt(r,function(i){return Mn(r,e,function(){return r.next(i)},n)},function(){return Mn(r,e,function(){return r.complete()},n)},function(i){return Mn(r,e,function(){return r.error(i)},n)}))})}function fu(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return gt(function(t,r){r.add(e.schedule(function(){return t.subscribe(r)},n))})}function hu(e,n){if(!e)throw new Error("Iterable cannot be null");return new ut(function(t){Mn(t,n,function(){var r=e[Symbol.asyncIterator]();Mn(t,n,function(){r.next().then(function(i){i.done?t.complete():t.next(i.value)})},0,!0)})})}function dn(e,n){return n?function Kn(e,n){if(null!=e){if(eu(e))return function ul(e,n){return $n(e).pipe(fu(n),No(n))}(e,n);if(Ja(e))return function Mi(e,n){return new ut(function(t){var r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(Xa(e))return function du(e,n){return $n(e).pipe(fu(n),No(n))}(e,n);if(tu(e))return hu(e,n);if(iu(e))return function Mr(e,n){return new ut(function(t){var r;return Mn(t,n,function(){r=e[ru](),Mn(t,n,function(){var i,o;try{var a=r.next();i=a.value,o=a.done}catch(u){return void t.error(u)}o?t.complete():t.next(i)},0,!0)}),function(){return Te(null==r?void 0:r.return)&&r.return()}})}(e,n);if(au(e))return function sl(e,n){return hu(ou(e),n)}(e,n)}throw nu(e)}(e,n):$n(e)}function vu(){for(var e=arguments.length,n=new Array(e),t=0;t0&&void 0!==arguments[0]?arguments[0]:{},n=e.connector,t=void 0===n?function(){return new sr}:n,r=e.resetOnError,i=void 0===r||r,o=e.resetOnComplete,a=void 0===o||o,u=e.resetOnRefCountZero,s=void 0===u||u;return function(l){var c=null,f=null,d=null,h=0,m=!1,_=!1,C=function(){null==f||f.unsubscribe(),f=null},k=function(){C(),c=d=null,m=_=!1},D=function(){var H=c;k(),null==H||H.unsubscribe()};return gt(function(O,H){h++,!_&&!m&&C();var J=d=null!=d?d:t();H.add(function(){0==--h&&!_&&!m&&(f=Vo(D,s))}),J.subscribe(H),c||(c=new yi({next:function(Le){return J.next(Le)},error:function(Le){_=!0,C(),f=Vo(k,i,Le),J.error(Le)},complete:function(){m=!0,C(),f=Vo(k,a),J.complete()}}),dn(O).subscribe(c))})(l)}}function Vo(e,n){if(!0===n)return e(),null;if(!1===n)return null;for(var t=arguments.length,r=new Array(t>2?t-2:0),i=2;i ".concat(t," ").concat(r," ").concat(n," <=Actual]")))}(n,e,null,"!=")}function ye(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Qt(e){return{providers:e.providers||[],imports:e.imports||[]}}function vl(e){return Gd(e,gu)||Gd(e,qd)}function Gd(e,n){return e.hasOwnProperty(n)?e[n]:null}function Ud(e){return e&&(e.hasOwnProperty(pl)||e.hasOwnProperty(iD))?e[pl]:null}var gl,gu=fe({"\u0275prov":fe}),pl=fe({"\u0275inj":fe}),qd=fe({ngInjectableDef:fe}),iD=fe({ngInjectorDef:fe}),ne=function(){return(ne=ne||{})[ne.Default=0]="Default",ne[ne.Host=1]="Host",ne[ne.Self=2]="Self",ne[ne.SkipSelf=4]="SkipSelf",ne[ne.Optional=8]="Optional",ne}();function oD(){return gl}function Tr(e){var n=gl;return gl=e,n}function zd(e,n,t){var r=vl(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&ne.Optional?null:void 0!==n?n:void y(me(e),"Injector")}function xr(e){return{toString:e}.toString()}var Sn=function(){return(Sn=Sn||{})[Sn.OnPush=0]="OnPush",Sn[Sn.Default=1]="Default",Sn}(),Qn=function(){return function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(Qn||(Qn={})),Qn}(),aD="undefined"!=typeof globalThis&&globalThis,uD="undefined"!=typeof window&&window,sD="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,lD="undefined"!=typeof global&&global,Me=aD||lD||uD||sD,Ai={},xe=[],mu=fe({"\u0275cmp":fe}),ml=fe({"\u0275dir":fe}),yl=fe({"\u0275pipe":fe}),Wd=fe({"\u0275mod":fe}),hr=fe({"\u0275fac":fe}),Ho=fe({__NG_ELEMENT_ID__:fe}),cD=0;function Nt(e){return xr(function(){var t={},r={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Sn.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||xe,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Qn.Emulated,id:"c",styles:e.styles||xe,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,o=e.features,a=e.pipes;return r.id+=cD++,r.inputs=Qd(e.inputs,t),r.outputs=Qd(e.outputs),o&&o.forEach(function(u){return u(r)}),r.directiveDefs=i?function(){return("function"==typeof i?i():i).map($d)}:null,r.pipeDefs=a?function(){return("function"==typeof a?a():a).map(Zd)}:null,r})}function $d(e){return mt(e)||function Fr(e){return e[ml]||null}(e)}function Zd(e){return function Jr(e){return e[yl]||null}(e)}var Kd={};function hn(e){return xr(function(){var n={type:e.type,bootstrap:e.bootstrap||xe,declarations:e.declarations||xe,imports:e.imports||xe,exports:e.exports||xe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(Kd[e.id]=e.type),n})}function Qd(e,n){if(null==e)return Ai;var t={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),t[i]=r,n&&(n[i]=o)}return t}var U=Nt;function Vt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function mt(e){return e[mu]||null}function vn(e,n){var t=e[Wd]||null;if(!t&&!0===n)throw new Error("Type ".concat(me(e)," does not have '\u0275mod' property."));return t}function Yn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Tn(e){return Array.isArray(e)&&!0===e[1]}function Cl(e){return 0!=(8&e.flags)}function Cu(e){return 2==(2&e.flags)}function bu(e){return 1==(1&e.flags)}function xn(e){return null!==e.template}function gD(e){return 0!=(512&e[2])}function ni(e,n){return e.hasOwnProperty(hr)?e[hr]:null}var _D=function(){function e(n,t,r){g(this,e),this.previousValue=n,this.currentValue=t,this.firstChange=r}return p(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function gn(){return Jd}function Jd(e){return e.type.prototype.ngOnChanges&&(e.setInput=CD),DD}function DD(){var e=eh(this),n=null==e?void 0:e.current;if(n){var t=e.previous;if(t===Ai)e.previous=n;else for(var r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function CD(e,n,t,r){var i=eh(e)||function bD(e,n){return e[Xd]=n}(e,{previous:Ai,current:null}),o=i.current||(i.current={}),a=i.previous,u=this.declaredInputs[t],s=a[u];o[u]=new _D(s&&s.currentValue,n,a===Ai),e[r]=n}gn.ngInherit=!0;var Xd="__ngSimpleChanges__";function eh(e){return e[Xd]||null}var El=void 0;function kl(){return void 0!==El?El:"undefined"!=typeof document?document:void 0}function Ge(e){return!!e.listen}var rh={createRenderer:function(n,t){return kl()}};function Qe(e){for(;Array.isArray(e);)e=e[0];return e}function wu(e,n){return Qe(n[e])}function yn(e,n){return Qe(n[e.index])}function Ml(e,n){return e.data[n]}function Ii(e,n){return e[n]}function Jt(e,n){var t=n[e];return Yn(t)?t:t[0]}function ih(e){return 4==(4&e[2])}function Sl(e){return 128==(128&e[2])}function Or(e,n){return null==n?null:e[n]}function oh(e){e[18]=0}function Al(e,n){e[5]+=n;for(var t=e,r=e[3];null!==r&&(1===n&&1===t[5]||-1===n&&0===t[5]);)r[5]+=n,t=r,r=r[3]}var $={lFrame:hh(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function ah(){return $.bindingsEnabled}function M(){return $.lFrame.lView}function pe(){return $.lFrame.tView}function Xt(e){return $.lFrame.contextLView=e,e[8]}function nt(){for(var e=uh();null!==e&&64===e.type;)e=e.parent;return e}function uh(){return $.lFrame.currentTNode}function Jn(e,n){var t=$.lFrame;t.currentTNode=e,t.isParent=n}function Tl(){return $.lFrame.isParent}function xl(){$.lFrame.isParent=!1}function Eu(){return $.isInCheckNoChangesMode}function ku(e){$.isInCheckNoChangesMode=e}function wt(){var e=$.lFrame,n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function Pi(){return $.lFrame.bindingIndex++}function pr(e){var n=$.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function ND(e,n){var t=$.lFrame;t.bindingIndex=t.bindingRootIndex=e,Fl(n)}function Fl(e){$.lFrame.currentDirectiveIndex=e}function ch(){return $.lFrame.currentQueryIndex}function Il(e){$.lFrame.currentQueryIndex=e}function LD(e){var n=e[1];return 2===n.type?n.declTNode:1===n.type?e[6]:null}function fh(e,n,t){if(t&ne.SkipSelf){for(var r=n,i=e;!(null!==(r=r.parent)||t&ne.Host||null===(r=LD(i))||(i=i[15],10&r.type)););if(null===r)return!1;n=r,e=i}var o=$.lFrame=dh();return o.currentTNode=n,o.lView=e,!0}function Mu(e){var n=dh(),t=e[1];$.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function dh(){var e=$.lFrame,n=null===e?null:e.child;return null===n?hh(e):n}function hh(e){var n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function vh(){var e=$.lFrame;return $.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var ph=vh;function Su(){var e=vh();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function BD(e){var n=$.lFrame.contextLView=function HD(e,n){for(;e>0;)n=n[15],e--;return n}(e,$.lFrame.contextLView);return n[8]}function Et(){return $.lFrame.selectedIndex}function Ir(e){$.lFrame.selectedIndex=e}function Ue(){var e=$.lFrame;return Ml(e.tView,e.selectedIndex)}function Au(e,n){for(var t=n.directiveStart,r=n.directiveEnd;t=r)break}else n[s]<0&&(e[18]+=65536),(u>11>16&&(3&e[2])===n){e[2]+=2048;try{o.call(u)}finally{}}}else try{o.call(u)}finally{}}var zo=p(function e(n,t,r){g(this,e),this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r});function Fu(e,n,t){for(var r=Ge(e),i=0;in){a=o-1;break}}}for(;o>16}(e),r=n;t>0;)r=r[15],t--;return r}var Vl=!0;function Iu(e){var n=Vl;return Vl=e,n}var eC=0;function $o(e,n){var t=Bl(e,n);if(-1!==t)return t;var r=n[1];r.firstCreatePass&&(e.injectorIndex=n.length,Ll(r.data,e),Ll(n,null),Ll(r.blueprint,null));var i=Pu(e,n),o=e.injectorIndex;if(_h(i))for(var a=Ri(i),u=Ni(i,n),s=u[1].data,l=0;l<8;l++)n[o+l]=u[a+l]|s[a+l];return n[o+8]=i,o}function Ll(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Bl(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Pu(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var t=0,r=null,i=n;null!==i;){var o=i[1],a=o.type;if(null===(r=2===a?o.declTNode:1===a?i[6]:null))return-1;if(t++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return-1}function Ru(e,n,t){!function tC(e,n,t){var r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(Ho)&&(r=t[Ho]),null==r&&(r=t[Ho]=eC++);var i=255&r;n.data[e+(i>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:ne.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=oC(t);if("function"==typeof o){if(!fh(n,e,r))return r&ne.Host?bh(i,t,r):wh(n,t,r,i);try{var a=o(r);if(null!=a||r&ne.Optional)return a;y(t)}finally{ph()}}else if("number"==typeof o){var u=null,s=Bl(e,n),l=-1,c=r&ne.Host?n[16][6]:null;for((-1===s||r&ne.SkipSelf)&&(-1!==(l=-1===s?Pu(e,n):n[s+8])&&Sh(r,!1)?(u=n[1],s=Ri(l),n=Ni(l,n)):s=-1);-1!==s;){var f=n[1];if(Mh(o,s,f.data)){var d=iC(s,n,t,u,r,c);if(d!==kh)return d}-1!==(l=n[s+8])&&Sh(r,n[1].data[s+8]===c)&&Mh(o,s,n)?(u=f,s=Ri(l),n=Ni(l,n)):s=-1}}}return wh(n,t,r,i)}var kh={};function rC(){return new Vi(nt(),M())}function iC(e,n,t,r,i,o){var a=n[1],u=a.data[e+8],c=Nu(u,a,t,null==r?Cu(u)&&Vl:r!=a&&0!=(3&u.type),i&ne.Host&&o===u);return null!==c?Zo(n,a,c,u):kh}function Nu(e,n,t,r,i){for(var o=e.providerIndexes,a=n.data,u=1048575&o,s=e.directiveStart,c=o>>20,d=i?u+c:e.directiveEnd,h=r?u:u+c;h=s&&m.type===t)return h}if(i){var _=a[s];if(_&&xn(_)&&_.type===t)return s}return null}function Zo(e,n,t,r){var i=e[t],o=n.data;if(function ZD(e){return e instanceof zo}(i)){var a=i;a.resolving&&function dl(e,n){var t=n?". Dependency path: ".concat(n.join(" > ")," > ").concat(e):"";throw new se(-200,"Circular dependency in DI detected for ".concat(e).concat(t))}(ht(o[t]));var u=Iu(a.canSeeViewProviders);a.resolving=!0;var s=a.injectImpl?Tr(a.injectImpl):null;fh(e,r,ne.Default);try{i=e[t]=a.factory(void 0,o,e,r),n.firstCreatePass&&t>=r.directiveStart&&function WD(e,n,t){var r=n.type.prototype,o=r.ngOnInit,a=r.ngDoCheck;if(r.ngOnChanges){var u=Jd(n);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,u),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,u)}o&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,o),a&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,a),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,a))}(t,o[t],n)}finally{null!==s&&Tr(s),Iu(u),a.resolving=!1,ph()}}return i}function oC(e){if("string"==typeof e)return e.charCodeAt(0)||0;var n=e.hasOwnProperty(Ho)?e[Ho]:void 0;return"number"==typeof n?n>=0?255&n:rC:n}function Mh(e,n,t){return!!(t[n+(e>>5)]&1<=e.length?e.push(t):e.splice(n,0,t)}function Vu(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function Yo(e,n){for(var t=[],r=0;r=0?e[1|r]=t:function lC(e,n,t,r){var i=e.length;if(i==n)e.push(t,r);else if(1===i)e.push(r,e[0]),e[0]=t;else{for(i--,e.push(e[i-1],e[i]);i>n;)e[i]=e[i-2],i--;e[n]=t,e[n+1]=r}}(e,r=~r,n,t),r}function ql(e,n){var t=Gi(e,n);if(t>=0)return e[1|t]}function Gi(e,n){return function Oh(e,n,t){for(var r=0,i=e.length>>t;i!==r;){var o=r+(i-r>>1),a=e[o<n?i=o:r=o+1}return~(i<1&&void 0!==arguments[1]?arguments[1]:ne.Default;if(void 0===Xo){var t="";throw new se(203,t)}return null===Xo?zd(e,void 0,n):Xo.get(e,n&ne.Optional?null:void 0,n)}function we(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne.Default;return(oD()||DC)(Q(e),n)}function $l(e){for(var n=[],t=0;t3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=me(n);if(Array.isArray(n))i=n.map(me).join(" -> ");else if("object"==typeof n){var o=[];for(var a in n)if(n.hasOwnProperty(a)){var u=n[a];o.push(a+":"+("string"==typeof u?JSON.stringify(u):me(u)))}i="{".concat(o.join(", "),"}")}return"".concat(t).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(mC,"\n "))}("\n"+e.message,i,t,r),e.ngTokenPath=i,e[Bu]=null,e}var Gu,Uu,Hu=ea(ji("Inject",function(e){return{token:e}}),-1),Ui=ea(ji("Optional"),8),ta=ea(ji("SkipSelf"),4);function zi(e){var n;return(null===(n=function Kl(){if(void 0===Gu&&(Gu=null,Me.trustedTypes))try{Gu=Me.trustedTypes.createPolicy("angular",{createHTML:function(n){return n},createScript:function(n){return n},createScriptURL:function(n){return n}})}catch(e){}return Gu}())||void 0===n?void 0:n.createHTML(e))||e}function jh(e){var n;return(null===(n=function Ql(){if(void 0===Uu&&(Uu=null,Me.trustedTypes))try{Uu=Me.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(n){return n},createScript:function(n){return n},createScriptURL:function(n){return n}})}catch(e){}return Uu}())||void 0===n?void 0:n.createHTML(e))||e}var ri=function(){function e(n){g(this,e),this.changingThisBreaksApplicationSecurity=n}return p(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),e}(),PC=function(e){T(t,e);var n=F(t);function t(){return g(this,t),n.apply(this,arguments)}return p(t,[{key:"getTypeName",value:function(){return"HTML"}}]),t}(ri),RC=function(e){T(t,e);var n=F(t);function t(){return g(this,t),n.apply(this,arguments)}return p(t,[{key:"getTypeName",value:function(){return"Style"}}]),t}(ri),NC=function(e){T(t,e);var n=F(t);function t(){return g(this,t),n.apply(this,arguments)}return p(t,[{key:"getTypeName",value:function(){return"Script"}}]),t}(ri),VC=function(e){T(t,e);var n=F(t);function t(){return g(this,t),n.apply(this,arguments)}return p(t,[{key:"getTypeName",value:function(){return"URL"}}]),t}(ri),LC=function(e){T(t,e);var n=F(t);function t(){return g(this,t),n.apply(this,arguments)}return p(t,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),t}(ri);function tn(e){return e instanceof ri?e.changingThisBreaksApplicationSecurity:e}function er(e,n){var t=qh(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error("Required a safe ".concat(n,", got a ").concat(t," (see https://g.co/ng/security#xss)"))}return t===n}function qh(e){return e instanceof ri&&e.getTypeName()||null}var qC=function(){function e(n){g(this,e),this.inertDocumentHelper=n}return p(e,[{key:"getInertBodyElement",value:function(t){t=""+t;try{var r=(new window.DOMParser).parseFromString(zi(t),"text/html").body;return null===r?this.inertDocumentHelper.getInertBodyElement(t):(r.removeChild(r.firstChild),r)}catch(i){return null}}}]),e}(),zC=function(){function e(n){if(g(this,e),this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);var r=this.inertDocument.createElement("body");t.appendChild(r)}}return p(e,[{key:"getInertBodyElement",value:function(t){var r=this.inertDocument.createElement("template");if("content"in r)return r.innerHTML=zi(t),r;var i=this.inertDocument.createElement("body");return i.innerHTML=zi(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}},{key:"stripCustomNsAttrs",value:function(t){for(var r=t.attributes,i=r.length-1;0"),!0}},{key:"endElement",value:function(t){var r=t.nodeName.toLowerCase();Yl.hasOwnProperty(r)&&!$h.hasOwnProperty(r)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(Yh(t))}},{key:"checkClobberedElement",value:function(t,r){if(r&&(t.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(t.outerHTML));return r}}]),e}(),nb=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,rb=/([^\#-~ |!])/g;function Yh(e){return e.replace(/&/g,"&").replace(nb,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(rb,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}function Jh(e,n){var t=null;try{qu=qu||function zh(e){var n=new zC(e);return function WC(){try{return!!(new window.DOMParser).parseFromString(zi(""),"text/html")}catch(e){return!1}}()?new qC(n):n}(e);var r=n?String(n):"";t=qu.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=t.innerHTML,t=qu.getInertBodyElement(r)}while(r!==o);return zi((new tb).sanitizeChildren(ec(t)||t))}finally{if(t)for(var s=ec(t)||t;s.firstChild;)s.removeChild(s.firstChild)}}function ec(e){return"content"in e&&function ib(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Ie=function(){return(Ie=Ie||{})[Ie.NONE=0]="NONE",Ie[Ie.HTML=1]="HTML",Ie[Ie.STYLE=2]="STYLE",Ie[Ie.SCRIPT=3]="SCRIPT",Ie[Ie.URL=4]="URL",Ie[Ie.RESOURCE_URL=5]="RESOURCE_URL",Ie}();function Wi(e){var n=function oa(){var e=M();return e&&e[12]}();return n?jh(n.sanitize(Ie.HTML,e)||""):er(e,"HTML")?jh(tn(e)):Jh(kl(),W(e))}var nv="__ngContext__";function _t(e,n){e[nv]=n}function nc(e){var n=function aa(e){return e[nv]||null}(e);return n?Array.isArray(n)?n:n.lView:null}function ic(e){return e.ngOriginalError}function Db(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r0&&(e[t-1][4]=r[4]);var o=Vu(e,10+n);!function Pb(e,n){sa(e,n,n[11],2,null,null),n[0]=null,n[6]=null}(r[1],r);var a=o[19];null!==a&&a.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function pv(e,n){if(!(256&n[2])){var t=n[11];Ge(t)&&t.destroyNode&&sa(e,n,t,3,null,null),function Vb(e){var n=e[13];if(!n)return hc(e[1],e);for(;n;){var t=null;if(Yn(n))t=n[13];else{var r=n[10];r&&(t=r)}if(!t){for(;n&&!n[4]&&n!==e;)Yn(n)&&hc(n[1],n),n=n[3];null===n&&(n=e),Yn(n)&&hc(n[1],n),t=n&&n[4]}n=t}}(n)}}function hc(e,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function jb(e,n){var t;if(null!=e&&null!=(t=e.destroyHooks))for(var r=0;r=0?r[i=l]():r[i=-l].unsubscribe(),o+=2}else{var c=r[i=t[o+1]];t[o].call(c)}if(null!==r){for(var f=i+1;fo?"":i[f+1].toLowerCase();var h=8&r?d:null;if(h&&-1!==Av(h,l,0)||2&r&&l!==d){if(Fn(r))return!1;a=!0}}}}else{if(!a&&!Fn(r)&&!Fn(s))return!1;if(a&&Fn(s))continue;a=!1,r=s|1&r}}return Fn(r)||a}function Fn(e){return 0==(1&e)}function Qb(e,n,t,r){if(null===n)return-1;var i=0;if(r||!t){for(var o=!1;i-1)for(t++;t2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+u+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""!==i&&!Fn(a)&&(n+=Ov(o,i),i=""),r=a,o=o||!Fn(r);t++}return""!==i&&(n+=Ov(o,i)),n}var Z={};function V(e){Iv(pe(),M(),Et()+e,Eu())}function Iv(e,n,t,r){if(!r)if(3==(3&n[2])){var o=e.preOrderCheckHooks;null!==o&&Tu(n,o,t)}else{var a=e.preOrderHooks;null!==a&&xu(n,a,0,t)}Ir(t)}function Zu(e,n){return e<<17|n<<2}function On(e){return e>>17&32767}function yc(e){return 2|e}function gr(e){return(131068&e)>>2}function _c(e,n){return-131069&e|n<<2}function Dc(e){return 1|e}function qv(e,n){var t=e.contentQueries;if(null!==t)for(var r=0;r20&&Iv(e,n,20,Eu()),t(r,i)}finally{Ir(o)}}function Wv(e,n,t){if(Cl(n))for(var i=n.directiveEnd,o=n.directiveStart;o2&&void 0!==arguments[2]?arguments[2]:yn,r=n.localNames;if(null!==r)for(var i=n.index+1,o=0;o0;){var t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(u)!=s&&u.push(s),u.push(r,i,a)}}function ep(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function tp(e,n){n.flags|=2,(e.components||(e.components=[])).push(n.index)}function F0(e,n,t){if(t){if(n.exportAs)for(var r=0;r0&&Pc(t)}}function Pc(e){for(var n=sc(e);null!==n;n=lc(n))for(var t=10;t0&&Pc(r)}var a=e[1].components;if(null!==a)for(var u=0;u0&&Pc(s)}}function L0(e,n){var t=Jt(n,e),r=t[1];(function B0(e,n){for(var t=n.length;t1&&void 0!==arguments[1]?arguments[1]:Jo;if(r===Jo){var i=new Error("NullInjectorError: No provider for ".concat(me(t),"!"));throw i.name="NullInjectorError",i}return r}}]),e}(),Hc=new ve("Set Injector scope."),fa={},W0={},jc=void 0;function dp(){return void 0===jc&&(jc=new fp),jc}function hp(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=vp(e,n,t,r);return i._resolveInjectorDefTypes(),i}function vp(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new $0(e,t,n||dp(),r)}var $0=function(){function e(n,t,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;g(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];t&&Xn(t,function(s){return i.processProvider(s,n,t)}),Xn([n],function(s){return i.processInjectorType(s,[],a)}),this.records.set(Bc,Xi(void 0,this));var u=this.records.get(Hc);this.scope=null!=u?u.value:null,this.source=o||("object"==typeof n?null:me(n))}return p(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jo,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ne.Default;this.assertNotDestroyed();var o=Rh(this),a=Tr(void 0);try{if(!(i&ne.SkipSelf)){var u=this.records.get(t);if(void 0===u){var s=tw(t)&&vl(t);u=s&&this.injectableDefInScope(s)?Xi(Gc(t),fa):null,this.records.set(t,u)}if(null!=u)return this.hydrate(t,u)}var l=i&ne.Self?dp():this.parent;return l.get(t,r=i&ne.Optional&&r===Jo?null:r)}catch(f){if("NullInjectorError"===f.name){var c=f[Bu]=f[Bu]||[];if(c.unshift(me(t)),o)throw f;return bC(f,t,"R3InjectorError",this.source)}throw f}finally{Tr(a),Rh(o)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(r){return t.get(r)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(i,o){return t.push(me(o))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new se(205,"")}},{key:"processInjectorType",value:function(t,r,i){var o=this;if(!(t=Q(t)))return!1;var a=Ud(t),u=null==a&&t.ngModule||void 0,s=void 0===u?t:u,f=-1!==i.indexOf(s);if(void 0!==u&&(a=Ud(u)),null==a)return!1;if(null!=a.imports&&!f){var d;i.push(s);try{Xn(a.imports,function(D){o.processInjectorType(D,r,i)&&(void 0===d&&(d=[]),d.push(D))})}finally{}if(void 0!==d)for(var h=function(O){var H=d[O],J=H.ngModule,be=H.providers;Xn(be,function(Le){return o.processProvider(Le,J,be||xe)})},m=0;m0)throw Yo(n,"?"),new se(204,"");var i=function nD(e){var n=e&&(e[gu]||e[qd]);if(n){var t=function rD(e){if(e.hasOwnProperty("name"))return e.name;var n=(""+e).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(t,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(t,'" class.')),n}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new se(204,"")}function pp(e,n,t){var r=void 0;if(eo(e)){var i=Q(e);return ni(i)||Gc(i)}if(gp(e))r=function(){return Q(e.useValue)};else if(function Y0(e){return!(!e||!e.useFactory)}(e))r=function(){return e.useFactory.apply(e,Re($l(e.deps||[])))};else if(function Q0(e){return!(!e||!e.useExisting)}(e))r=function(){return we(Q(e.useExisting))};else{var o=Q(e&&(e.useClass||e.provide));if(!function X0(e){return!!e.deps}(e))return ni(o)||Gc(o);r=function(){return at(o,Re($l(e.deps)))}}return r}function Xi(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:n,multi:t?[]:void 0}}function gp(e){return null!==e&&"object"==typeof e&&_C in e}function eo(e){return"function"==typeof e}function tw(e){return"function"==typeof e||"object"==typeof e&&e instanceof ve}var Ht=function(){var e=function(){function n(){g(this,n)}return p(n,null,[{key:"create",value:function(r,i){var o;if(Array.isArray(r))return hp({name:""},i,r,"");var a=null!==(o=r.name)&&void 0!==o?o:"";return hp({name:a},r.parent,r.providers,a)}}]),n}();return e.THROW_IF_NOT_FOUND=Jo,e.NULL=new fp,e.\u0275prov=ye({token:e,providedIn:"any",factory:function(){return we(Bc)}}),e.__NG_ELEMENT_ID__=-1,e}();function dw(e,n){Au(nc(e)[1],nt())}function Fe(e){for(var n=function Ep(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0,r=[e];n;){var i=void 0;if(xn(e))i=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new se(903,"");i=n.\u0275dir}if(i){if(t){r.push(i);var a=e;a.inputs=qc(e.inputs),a.declaredInputs=qc(e.declaredInputs),a.outputs=qc(e.outputs);var u=i.hostBindings;u&&gw(e,u);var s=i.viewQuery,l=i.contentQueries;if(s&&vw(e,s),l&&pw(e,l),Si(e.inputs,i.inputs),Si(e.declaredInputs,i.declaredInputs),Si(e.outputs,i.outputs),xn(i)&&i.data.animation){var c=e.data;c.animation=(c.animation||[]).concat(i.data.animation)}}var f=i.features;if(f)for(var d=0;d=0;r--){var i=e[r];i.hostVars=n+=i.hostVars,i.hostAttrs=Ou(i.hostAttrs,t=Ou(t,i.hostAttrs))}}(r)}function qc(e){return e===Ai?{}:e===xe?[]:e}function vw(e,n){var t=e.viewQuery;e.viewQuery=t?function(r,i){n(r,i),t(r,i)}:n}function pw(e,n){var t=e.contentQueries;e.contentQueries=t?function(r,i,o){n(r,i,o),t(r,i,o)}:n}function gw(e,n){var t=e.hostBindings;e.hostBindings=t?function(r,i){n(r,i),t(r,i)}:n}var es=null;function to(){if(!es){var e=Me.Symbol;if(e&&e.iterator)es=e.iterator;else for(var n=Object.getOwnPropertyNames(Map.prototype),t=0;t1&&void 0!==arguments[1]?arguments[1]:ne.Default,t=M();if(null===t)return we(e,n);var r=nt();return Eh(r,t,Q(e),n)}function G(e,n,t){var r=M();return Dt(r,Pi(),n)&&function rn(e,n,t,r,i,o,a,u){var c,s=yn(n,t),l=n.inputs;!u&&null!=l&&(c=l[r])?(cp(e,t,c,r,i),Cu(n)&&function w0(e,n){var t=Jt(n,e);16&t[2]||(t[2]|=64)}(t,n.index)):3&n.type&&(r=function b0(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=a?a(i,n.value||"",r):i,Ge(o)?o.setProperty(s,r,i):Nl(r)||(s.setProperty?s.setProperty(r,i):s[r]=i))}(pe(),Ue(),r,e,n,r[11],t,!1),G}function Kc(e,n,t,r,i){var a=i?"class":"style";cp(e,t,n.inputs[a],a,r)}function b(e,n,t,r){var i=M(),o=pe(),a=20+e,u=i[11],s=i[a]=fc(u,n,function zD(){return $.lFrame.currentNamespace}()),l=o.firstCreatePass?function Uw(e,n,t,r,i,o,a){var u=n.consts,l=Qi(n,e,2,i,Or(u,o));return Oc(n,t,l,Or(u,a)),null!==l.attrs&&Xu(l,l.attrs,!1),null!==l.mergedAttrs&&Xu(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(a,o,i,0,n,t,r):o.data[a];Jn(l,!0);var c=l.mergedAttrs;null!==c&&Fu(u,s,c);var f=l.classes;null!==f&&mc(u,s,f);var d=l.styles;null!==d&&Sv(u,s,d),64!=(64&l.flags)&&Wu(o,i,s,l),0===function TD(){return $.lFrame.elementDepthCount}()&&_t(s,i),function xD(){$.lFrame.elementDepthCount++}(),bu(l)&&(xc(o,i,l),Wv(o,l,i)),null!==r&&Fc(i,l)}function w(){var e=nt();Tl()?xl():Jn(e=e.parent,!1);var n=e;!function FD(){$.lFrame.elementDepthCount--}();var t=pe();t.firstCreatePass&&(Au(t,e),Cl(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function QD(e){return 0!=(16&e.flags)}(n)&&Kc(t,n,M(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function YD(e){return 0!=(32&e.flags)}(n)&&Kc(t,n,M(),n.stylesWithoutHost,!1)}function _e(e,n,t,r){b(e,n,t,r),w()}function va(e,n,t){(function zp(e,n,t){var r=M(),i=pe(),o=e+20,a=i.firstCreatePass?function qw(e,n,t,r,i){var o=n.consts,a=Or(o,r),u=Qi(n,e,8,"ng-container",a);return null!==a&&Xu(u,a,!0),Oc(n,t,u,Or(o,i)),null!==n.queries&&n.queries.elementStart(n,u),u}(o,i,r,n,t):i.data[o];Jn(a,!0);var u=r[o]=r[11].createComment("");Wu(i,r,u,a),_t(u,r),bu(a)&&(xc(i,r,a),Wv(i,a,r)),null!=t&&Fc(r,a)})(e,n,t),function Wp(){var e=nt(),n=pe();Tl()?xl():Jn(e=e.parent,!1),n.firstCreatePass&&(Au(n,e),Cl(e)&&n.queries.elementEnd(e))}()}function or(){return M()}function ns(e){return!!e&&"function"==typeof e.then}var Zp=function $p(e){return!!e&&"function"==typeof e.subscribe};function oe(e,n,t,r){var i=M(),o=pe(),a=nt();return function Qp(e,n,t,r,i,o,a,u){var s=bu(r),c=e.firstCreatePass&&up(e),f=n[8],d=ap(n),h=!0;if(3&r.type||u){var m=yn(r,n),_=u?u(m):m,C=d.length,k=u?function(ja){return u(Qe(ja[r.index]))}:r.index;if(Ge(t)){var D=null;if(!u&&s&&(D=function zw(e,n,t,r){var i=e.cleanup;if(null!=i)for(var o=0;os?u[s]:null}"string"==typeof a&&(o+=2)}return null}(e,n,i,r.index)),null!==D)(D.__ngLastListenerFn__||D).__ngNextListenerFn__=o,D.__ngLastListenerFn__=o,h=!1;else{o=Qc(r,n,f,o,!1);var H=t.listen(_,i,o);d.push(o,H),c&&c.push(i,k,C,C+1)}}else o=Qc(r,n,f,o,!0),_.addEventListener(i,o,a),d.push(o),c&&c.push(i,k,C,a)}else o=Qc(r,n,f,o,!1);var be,J=r.outputs;if(h&&null!==J&&(be=J[i])){var Le=be.length;if(Le)for(var Ot=0;Ot0&&void 0!==arguments[0]?arguments[0]:1;return BD(e)}function Ww(e,n){for(var t=null,r=function Yb(e){var n=e.attrs;if(null!=n){var t=n.indexOf(5);if(0==(1&t))return n[t+1]}return null}(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0,r=M(),i=pe(),o=Qi(i,20+e,16,null,t||null);null===o.projection&&(o.projection=n),xl(),64!=(64&o.flags)&&qb(i,r,o)}function ug(e,n,t,r,i){for(var o=e[t+1],a=null===n,u=r?On(o):gr(o),s=!1;0!==u&&(!1===s||a);){var c=e[u+1];Kw(e[u],n)&&(s=!0,e[u+1]=r?Dc(c):yc(c)),u=r?On(c):gr(c)}s&&(e[t+1]=r?yc(o):Dc(o))}function Kw(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Gi(e,n)>=0}var it={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function sg(e){return e.substring(it.key,it.keyEnd)}function Qw(e){return e.substring(it.value,it.valueEnd)}function cg(e,n){var t=it.textEnd,r=it.key=ho(e,n,t);return t===r?-1:(r=it.keyEnd=function eE(e,n,t){for(var r;n=65&&(-33&r)<=90||r>=48&&r<=57);)n++;return n}(e,r,t),r=dg(e,r,t),r=it.value=ho(e,r,t),r=it.valueEnd=function tE(e,n,t){for(var r=-1,i=-1,o=-1,a=n,u=a;a32&&(u=a),o=i,i=r,r=-33&s}return u}(e,r,t),dg(e,r,t))}function ho(e,n,t){for(;n=0;t=cg(n,t))gg(e,sg(n),Qw(n))}function Nn(e,n,t,r){var i=M(),o=pe(),a=pr(2);o.firstUpdatePass&&pg(o,e,a,r),n!==Z&&Dt(i,a,n)&&mg(o,o.data[Et()],i,i[11],e,i[a+1]=function cE(e,n){return null==e||("string"==typeof n?e+=n:"object"==typeof e&&(e=me(tn(e)))),e}(n,t),r,a)}function vg(e,n){return n>=e.expandoStartIndex}function pg(e,n,t,r){var i=e.data;if(null===i[t+1]){var o=i[Et()],a=vg(e,t);_g(o,r)&&null===n&&!a&&(n=!1),n=function iE(e,n,t,r){var i=function Ol(e){var n=$.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e),o=r?n.residualClasses:n.residualStyles;if(null===i)0===(r?n.classBindings:n.styleBindings)&&(t=pa(t=Xc(null,e,n,t,r),n.attrs,r),o=null);else{var u=n.directiveStylingLast;if(-1===u||e[u]!==i)if(t=Xc(i,e,n,t,r),null===o){var l=function oE(e,n,t){var r=t?n.classBindings:n.styleBindings;if(0!==gr(r))return e[On(r)]}(e,n,r);void 0!==l&&Array.isArray(l)&&function aE(e,n,t,r){e[On(t?n.classBindings:n.styleBindings)]=r}(e,n,r,l=pa(l=Xc(null,e,n,l[1],r),n.attrs,r))}else o=function uE(e,n,t){for(var r=void 0,i=n.directiveEnd,o=1+n.directiveStylingLast;o0)&&(l=!0):c=t,i)if(0!==s){var h=On(e[u+1]);e[r+1]=Zu(h,u),0!==h&&(e[h+1]=_c(e[h+1],r)),e[u+1]=function o0(e,n){return 131071&e|n<<17}(e[u+1],r)}else e[r+1]=Zu(u,0),0!==u&&(e[u+1]=_c(e[u+1],r)),u=r;else e[r+1]=Zu(s,0),0===u?u=r:e[s+1]=_c(e[s+1],r),s=r;l&&(e[r+1]=yc(e[r+1])),ug(e,c,r,!0),ug(e,c,r,!1),function Zw(e,n,t,r,i){var o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof n&&Gi(o,n)>=0&&(t[r+1]=Dc(t[r+1]))}(n,c,e,r,o),a=Zu(u,s),o?n.classBindings=a:n.styleBindings=a}(i,o,n,t,a,r)}}function Xc(e,n,t,r,i){var o=null,a=t.directiveEnd,u=t.directiveStylingLast;for(-1===u?u=t.directiveStart:u++;u0;){var s=e[i],l=Array.isArray(s),c=l?s[1]:s,f=null===c,d=t[i+1];d===Z&&(d=f?xe:void 0);var h=f?ql(d,r):c===r?d:void 0;if(l&&!os(h)&&(h=ql(s,r)),os(h)&&(u=h,a))return u;var m=e[i+1];i=a?On(m):gr(m)}if(null!==n){var _=o?n.residualClasses:n.residualStyles;null!=_&&(u=ql(_,r))}return u}function os(e){return void 0!==e}function _g(e,n){return 0!=(e.flags&(n?16:32))}function Y(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=M(),r=pe(),i=e+20,o=r.firstCreatePass?Qi(r,i,1,n,null):r.data[i],a=t[i]=cc(t[11],n);Wu(r,t,a,o),Jn(o,!1)}function on(e){return Mt("",e,""),on}function Mt(e,n,t){var r=M(),i=function ro(e,n,t,r){return Dt(e,Pi(),t)?n+W(t)+r:Z}(r,e,n,t);return i!==Z&&mr(r,Et(),i),Mt}var ui=void 0,xE=["en",[["a","p"],["AM","PM"],ui],[["AM","PM"],ui,ui],[["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"]],ui,[["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"]],ui,[["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}",ui,"{1} 'at' {0}",ui],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function TE(e){var t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===r?1:5}],vo={};function Hg(e){return e in vo||(vo[e]=Me.ng&&Me.ng.common&&Me.ng.common.locales&&Me.ng.common.locales[e]),vo[e]}var P=function(){return(P=P||{})[P.LocaleId=0]="LocaleId",P[P.DayPeriodsFormat=1]="DayPeriodsFormat",P[P.DayPeriodsStandalone=2]="DayPeriodsStandalone",P[P.DaysFormat=3]="DaysFormat",P[P.DaysStandalone=4]="DaysStandalone",P[P.MonthsFormat=5]="MonthsFormat",P[P.MonthsStandalone=6]="MonthsStandalone",P[P.Eras=7]="Eras",P[P.FirstDayOfWeek=8]="FirstDayOfWeek",P[P.WeekendRange=9]="WeekendRange",P[P.DateFormat=10]="DateFormat",P[P.TimeFormat=11]="TimeFormat",P[P.DateTimeFormat=12]="DateTimeFormat",P[P.NumberSymbols=13]="NumberSymbols",P[P.NumberFormats=14]="NumberFormats",P[P.CurrencyCode=15]="CurrencyCode",P[P.CurrencySymbol=16]="CurrencySymbol",P[P.CurrencyName=17]="CurrencyName",P[P.Currencies=18]="Currencies",P[P.Directionality=19]="Directionality",P[P.PluralCase=20]="PluralCase",P[P.ExtraData=21]="ExtraData",P}(),as="en-US";function Mk(e,n,t){var r=pe();if(r.firstCreatePass){var i=xn(e);nf(t,r.data,r.blueprint,i,!0),nf(n,r.data,r.blueprint,i,!1)}}function nf(e,n,t,r,i){if(e=Q(e),Array.isArray(e))for(var o=0;o>20;if(eo(e)||!e.multi){var m=new zo(l,i,S),_=of(s,n,i?f:f+h,d);-1===_?(Ru($o(c,u),a,s),rf(a,e,n.length),n.push(s),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),t.push(m),u.push(m)):(t[_]=m,u[_]=m)}else{var C=of(s,n,f+h,d),k=of(s,n,f,f+h),O=k>=0&&t[k];if(i&&!O||!i&&!(C>=0&&t[C])){Ru($o(c,u),a,s);var H=function Tk(e,n,t,r,i){var o=new zo(e,t,S);return o.multi=[],o.index=n,o.componentProviders=0,fm(o,i,r&&!t),o}(i?Ak:Sk,t.length,i,r,l);!i&&O&&(t[k].providerFactory=H),rf(a,e,n.length,0),n.push(s),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),t.push(H),u.push(H)}else rf(a,e,C>-1?C:k,fm(t[i?k:C],l,!i&&r));!i&&r&&O&&t[k].componentProviders++}}}function rf(e,n,t,r){var i=eo(n),o=function J0(e){return!!e.useClass}(n);if(i||o){var s=(o?Q(n.useClass):n).prototype.ngOnDestroy;if(s){var l=e.destroyHooks||(e.destroyHooks=[]);if(!i&&n.multi){var c=l.indexOf(t);-1===c?l.push(t,[r,s]):l[c+1].push(r,s)}else l.push(t,s)}}}function fm(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function of(e,n,t,r){for(var i=t;i1&&void 0!==arguments[1]?arguments[1]:[];return function(t){t.providersResolver=function(r,i){return Mk(r,i?i(e):e,n)}}}var xk=p(function e(){g(this,e)}),dm=p(function e(){g(this,e)}),Ok=function(){function e(){g(this,e)}return p(e,[{key:"resolveComponentFactory",value:function(t){throw function Fk(e){var n=Error("No component factory found for ".concat(me(e),". Did you add it to @NgModule.entryComponents?"));return n.ngComponent=e,n}(t)}}]),e}(),Da=function(){var e=p(function n(){g(this,n)});return e.NULL=new Ok,e}();function Ik(){return go(nt(),M())}function go(e,n){return new At(yn(e,n))}var At=function(){var e=p(function n(t){g(this,n),this.nativeElement=t});return e.__NG_ELEMENT_ID__=Ik,e}();function Pk(e){return e instanceof At?e.nativeElement:e}var vm=p(function e(){g(this,e)}),Ln=function(){var e=p(function n(){g(this,n)});return e.__NG_ELEMENT_ID__=function(){return function Nk(){var e=M(),t=Jt(nt().index,e);return function Rk(e){return e[11]}(Yn(t)?t:e)}()},e}(),Vk=function(){var e=p(function n(){g(this,n)});return e.\u0275prov=ye({token:e,providedIn:"root",factory:function(){return null}}),e}(),fs=p(function e(n){g(this,e),this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}),Lk=new fs("13.1.3"),uf={};function ds(e,n,t,r){for(var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==t;){var o=n[t.index];if(null!==o&&r.push(Qe(o)),Tn(o))for(var a=10;a-1&&(dc(t,i),Vu(r,i))}this._attachedToViewContainer=!1}pv(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){Qv(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){Rc(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Vc(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function j0(e,n,t){ku(!0);try{Vc(e,n,t)}finally{ku(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new se(902,"");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function Nb(e,n){sa(e,n,n[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new se(902,"");this._appRef=t}}]),e}(),Bk=function(e){T(t,e);var n=F(t);function t(r){var i;return g(this,t),(i=n.call(this,r))._view=r,i}return p(t,[{key:"detectChanges",value:function(){op(this._view)}},{key:"checkNoChanges",value:function(){!function G0(e){ku(!0);try{op(e)}finally{ku(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),t}(Ca),pm=function(e){T(t,e);var n=F(t);function t(r){var i;return g(this,t),(i=n.call(this)).ngModule=r,i}return p(t,[{key:"resolveComponentFactory",value:function(i){var o=mt(i);return new sf(o,this.ngModule)}}]),t}(Da);function gm(e){var n=[];for(var t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}var jk=new ve("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return uv}}),sf=function(e){T(t,e);var n=F(t);function t(r,i){var o;return g(this,t),(o=n.call(this)).componentDef=r,o.ngModule=i,o.componentType=r.type,o.selector=function n0(e){return e.map(t0).join(",")}(r.selectors),o.ngContentSelectors=r.ngContentSelectors?r.ngContentSelectors:[],o.isBoundToModule=!!i,o}return p(t,[{key:"inputs",get:function(){return gm(this.componentDef.inputs)}},{key:"outputs",get:function(){return gm(this.componentDef.outputs)}},{key:"create",value:function(i,o,a,u){var D,O,s=(u=u||this.ngModule)?function Gk(e,n){return{get:function(r,i,o){var a=e.get(r,uf,o);return a!==uf||i===uf?a:n.get(r,i,o)}}}(i,u.injector):i,l=s.get(vm,rh),c=s.get(Vk,null),f=l.createRenderer(null,this.componentDef),d=this.componentDef.selectors[0][0]||"div",h=a?function Kv(e,n,t){if(Ge(e))return e.selectRootElement(n,t===Qn.ShadowDom);var i="string"==typeof n?e.querySelector(n):n;return i.textContent="",i}(f,a,this.componentDef.encapsulation):fc(l.createRenderer(null,this.componentDef),d,function Hk(e){var n=e.toLowerCase();return"svg"===n?"http://www.w3.org/2000/svg":"math"===n?"http://www.w3.org/1998/MathML/":null}(d)),m=this.componentDef.onPush?576:528,_=function wp(e,n){return{components:[],scheduler:e||uv,clean:U0,playerHandler:n||null,flags:0}}(),C=Yu(0,null,null,1,0,null,null,null,null,null),k=la(null,C,_,m,null,null,l,f,c,s);Mu(k);try{var H=function Cp(e,n,t,r,i,o){var a=t[1];t[20]=e;var s=Qi(a,20,2,"#host",null),l=s.mergedAttrs=n.hostAttrs;null!==l&&(Xu(s,l,!0),null!==e&&(Fu(i,e,l),null!==s.classes&&mc(i,e,s.classes),null!==s.styles&&Sv(i,e,s.styles)));var c=r.createRenderer(e,n),f=la(t,$v(n),null,n.onPush?64:16,t[20],s,r,c,o||null,null);return a.firstCreatePass&&(Ru($o(s,t),a,n.type),tp(a,s),np(s,t.length,1)),Ju(t,f),t[20]=f}(h,this.componentDef,k,l,f);if(h)if(a)Fu(f,h,["ng-version",Lk.full]);else{var J=function r0(e){for(var n=[],t=[],r=1,i=2;r0&&mc(f,h,Le.join(" "))}if(O=Ml(C,20),void 0!==o)for(var Ot=O.projection=[],an=0;an1&&void 0!==arguments[1]?arguments[1]:Ht.THROW_IF_NOT_FOUND,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ne.Default;return i===Ht||i===mo||i===Bc?this:this._r3Injector.get(i,o,a)}},{key:"destroy",value:function(){var i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(function(o){return o()}),this.destroyCbs=null}},{key:"onDestroy",value:function(i){this.destroyCbs.push(i)}}]),t}(mo),lf=function(e){T(t,e);var n=F(t);function t(r){var i;return g(this,t),(i=n.call(this)).moduleType=r,null!==vn(r)&&function $k(e){var n=new Set;!function t(r){var i=vn(r,!0),o=i.id;null!==o&&(function mm(e,n,t){if(n&&n!==t)throw new Error("Duplicate module registered for ".concat(e," - ").concat(me(n)," vs ").concat(me(n.name)))}(o,yo.get(o),r),yo.set(o,r));var l,s=ct(nr(i.imports));try{for(s.s();!(l=s.n()).done;){var c=l.value;n.has(c)||(n.add(c),t(c))}}catch(f){s.e(f)}finally{s.f()}}(e)}(r),i}return p(t,[{key:"create",value:function(i){return new _m(this.moduleType,i)}}]),t}(Wk);function _o(e,n,t,r){return bm(M(),wt(),e,n,t,r)}function hs(e,n,t,r,i){return function wm(e,n,t,r,i,o,a){var u=n+t;return oi(e,u,i,o)?ir(e,u+2,a?r.call(a,i,o):r(i,o)):ba(e,u+2)}(M(),wt(),e,n,t,r,i)}function Dm(e,n,t,r,i,o){return function Em(e,n,t,r,i,o,a,u){var s=n+t;return function ts(e,n,t,r,i){var o=oi(e,n,t,r);return Dt(e,n+2,i)||o}(e,s,i,o,a)?ir(e,s+3,u?r.call(u,i,o,a):r(i,o,a)):ba(e,s+3)}(M(),wt(),e,n,t,r,i,o)}function Cm(e,n,t,r,i,o,a){return function km(e,n,t,r,i,o,a,u,s){var l=n+t;return function Cn(e,n,t,r,i,o){var a=oi(e,n,t,r);return oi(e,n+2,i,o)||a}(e,l,i,o,a,u)?ir(e,l+4,s?r.call(s,i,o,a,u):r(i,o,a,u)):ba(e,l+4)}(M(),wt(),e,n,t,r,i,o,a)}function ba(e,n){var t=e[n];return t===Z?void 0:t}function bm(e,n,t,r,i,o){var a=n+t;return Dt(e,a,i)?ir(e,a+1,o?r.call(o,i):r(i)):ba(e,a+1)}function Vr(e,n){var r,t=pe(),i=e+20;t.firstCreatePass?(r=function e1(e,n){if(n)for(var t=n.length-1;t>=0;t--){var r=n[t];if(e===r.name)return r}}(n,t.pipeRegistry),t.data[i]=r,r.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(i,r.onDestroy)):r=t.data[i];var o=r.factory||(r.factory=ni(r.type)),a=Tr(S);try{var u=Iu(!1),s=o();return Iu(u),function Ew(e,n,t,r){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=r}(t,M(),i,s),s}finally{Tr(a)}}function Lr(e,n,t){var r=e+20,i=M(),o=Ii(i,r);return function wa(e,n){return e[1].data[n].pure}(i,r)?bm(i,wt(),n,o.transform,t,o):o.transform(t)}var o1=function(e){T(t,e);var n=F(t);function t(){var r,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return g(this,t),(r=n.call(this)).__isAsync=i,r}return p(t,[{key:"emit",value:function(i){ue(ce(t.prototype),"next",this).call(this,i)}},{key:"subscribe",value:function(i,o,a){var u,s,l,c=i,f=o||function(){return null},d=a;if(i&&"object"==typeof i){var h=i;c=null===(u=h.next)||void 0===u?void 0:u.bind(h),f=null===(s=h.error)||void 0===s?void 0:s.bind(h),d=null===(l=h.complete)||void 0===l?void 0:l.bind(h)}this.__isAsync&&(f=cf(f),c&&(c=cf(c)),d&&(d=cf(d)));var m=ue(ce(t.prototype),"subscribe",this).call(this,{next:c,error:f,complete:d});return i instanceof x&&i.add(m),m}}]),t}(sr);function cf(e){return function(n){setTimeout(e,void 0,n)}}var Ae=o1;function a1(){return this._results[to()]()}var u1=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];g(this,e),this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var t=to(),r=e.prototype;r[t]||(r[t]=a1)}return p(e,[{key:"changes",get:function(){return this._changes||(this._changes=new Ae)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,r){return this._results.reduce(t,r)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,r){var i=this;i.dirty=!1;var o=_n(t);(this._changesDetected=!function uC(e,n,t){if(e.length!==n.length)return!1;for(var r=0;r0;)this.remove(this.length-1)}},{key:"get",value:function(i){var o=Am(this._lContainer);return null!==o&&o[i]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(i,o,a){var u=i.createEmbeddedView(o||{});return this.insert(u,a),u}},{key:"createComponent",value:function(i,o,a,u,s){var c,l=i&&!function Qo(e){return"function"==typeof e}(i);if(l)c=o;else{var f=o||{};c=f.index,a=f.injector,u=f.projectableNodes,s=f.ngModuleRef}var d=l?i:new sf(mt(i)),h=a||this.parentInjector;if(!s&&null==d.ngModule&&h){var m=h.get(mo,null);m&&(s=m)}var _=d.create(h,u,void 0,s);return this.insert(_.hostView,c),_}},{key:"insert",value:function(i,o){var a=i._lView,u=a[1];if(function AD(e){return Tn(e[3])}(a)){var s=this.indexOf(i);if(-1!==s)this.detach(s);else{var l=a[3],c=new Sm(l,l[6],l[3]);c.detach(c.indexOf(i))}}var f=this._adjustIndex(o),d=this._lContainer;!function Lb(e,n,t,r){var i=10+r,o=t.length;r>0&&(t[i-1][4]=n),r1&&void 0!==arguments[1]?arguments[1]:0;return null==i?this.length+o:i}}]),t}(Bn);function Am(e){return e[8]}function ff(e){return e[8]||(e[8]=[])}function Tm(e,n){var t,r=n[e.index];if(Tn(r))t=r;else{var i;if(8&e.type)i=Qe(r);else{var o=n[11];i=o.createComment("");var a=yn(e,n);ii(o,zu(o,a),i,function Ub(e,n){return Ge(e)?e.nextSibling(n):n.nextSibling}(o,a),!1)}n[e.index]=t=ip(r,n,i,e),Ju(n,t)}return new Sm(t,e,n)}var p1=function(){function e(n){g(this,e),this.queryList=n,this.matches=null}return p(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),g1=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];g(this,e),this.queries=n}return p(e,[{key:"createEmbeddedView",value:function(t){var r=t.queries;if(null!==r){for(var i=null!==t.contentQueries?t.contentQueries[0]:r.length,o=[],a=0;a2&&void 0!==arguments[2]?arguments[2]:null;g(this,e),this.predicate=n,this.flags=t,this.read=r}),m1=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];g(this,e),this.queries=n}return p(e,[{key:"elementStart",value:function(t,r){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:-1;g(this,e),this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}return p(e,[{key:"elementStart",value:function(t,r){this.isApplyingToNode(r)&&this.matchTNode(t,r)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,r){this.elementStart(t,r)}},{key:"embeddedTView",value:function(t,r){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,r),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var r=this._declarationNodeIndex,i=t.parent;null!==i&&8&i.type&&i.index!==r;)i=i.parent;return r===(null!==i?i.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,r){var i=this.metadata.predicate;if(Array.isArray(i))for(var o=0;o0)r.push(a[u/2]);else{for(var l=o[u+1],c=n[-s],f=10;f0&&(u=setTimeout(function(){a._callbacks=a._callbacks.filter(function(s){return s.timeoutId!==u}),r(a._didWork,a.getPendingTasks())},i)),this._callbacks.push({doneCb:r,timeoutId:u,updateCb:o})}},{key:"whenStable",value:function(r,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(r,i,o),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(r,i,o){return[]}}]),n}();return e.\u0275fac=function(t){return new(t||e)(we(jt))},e.\u0275prov=ye({token:e,factory:e.\u0275fac}),e}(),ny=function(){var e=function(){function n(){g(this,n),this._applications=new Map,Mf.addToWindow(this)}return p(n,[{key:"registerApplication",value:function(r,i){this._applications.set(r,i)}},{key:"unregisterApplication",value:function(r){this._applications.delete(r)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(r){return this._applications.get(r)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(r){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Mf.findTestabilityInTree(this,r,i)}}]),n}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ye({token:e,factory:e.\u0275fac}),e}(),X1=function(){function e(){g(this,e)}return p(e,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,r,i){return null}}]),e}(),Mf=new X1;function tM(e,n,t){var r=new lf(t);return Promise.resolve(r)}var ry=new ve("AllowMultipleToken");function rM(e){if(Hn&&!Hn.destroyed&&!Hn.injector.get(ry,!1))throw new se(400,"");Hn=e.get(ay);var t=e.get(Ym,null);return t&&t.forEach(function(r){return r()}),Hn}function iy(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(n),i=new ve(r);return function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=oy();if(!a||a.injector.get(ry,!1))if(e)e(t.concat(o).concat({provide:i,useValue:!0}));else{var u=t.concat(o).concat({provide:i,useValue:!0},{provide:Hc,useValue:"platform"});rM(Ht.create({providers:u,name:r}))}return iM()}}function iM(e){var n=oy();if(!n)throw new se(401,"");return n}function oy(){return Hn&&!Hn.destroyed?Hn:null}var ay=function(){var e=function(){function n(t){g(this,n),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return p(n,[{key:"bootstrapModuleFactory",value:function(r,i){var o=this,l=function oM(e,n){return"noop"===e?new J1:("zone.js"===e?void 0:e)||new jt({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)})}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),c=[{provide:jt,useValue:l}];return l.run(function(){var f=Ht.create({providers:c,parent:o.injector,name:r.moduleType.name}),d=r.create(f),h=d.injector.get($i,null);if(!h)throw new se(402,"");return l.runOutsideAngular(function(){var _=l.onError.subscribe({next:function(k){h.handleError(k)}});d.onDestroy(function(){Sf(o._modules,d),_.unsubscribe()})}),function aM(e,n,t){try{var r=t();return ns(r)?r.catch(function(i){throw n.runOutsideAngular(function(){return e.handleError(i)}),i}):r}catch(i){throw n.runOutsideAngular(function(){return e.handleError(i)}),i}}(h,l,function(){var _=d.injector.get(Co);return _.runInitializers(),_.donePromise.then(function(){return function RE(e){je(e,"Expected localeId to be defined"),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}(d.injector.get(jr,as)||as),o._moduleDoBootstrap(d),d})})})}},{key:"bootstrapModule",value:function(r){var i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=uy({},o);return tM(0,0,r).then(function(u){return i.bootstrapModuleFactory(u,a)})}},{key:"_moduleDoBootstrap",value:function(r){var i=r.injector.get(_s);if(r._bootstrapComponents.length>0)r._bootstrapComponents.forEach(function(a){return i.bootstrap(a)});else{if(!r.instance.ngDoBootstrap)throw new se(403,"");r.instance.ngDoBootstrap(i)}this._modules.push(r)}},{key:"onDestroy",value:function(r){this._destroyListeners.push(r)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new se(404,"");this._modules.slice().forEach(function(i){return i.destroy()}),this._destroyListeners.forEach(function(i){return i()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),n}();return e.\u0275fac=function(t){return new(t||e)(we(Ht))},e.\u0275prov=ye({token:e,factory:e.\u0275fac}),e}();function uy(e,n){return Array.isArray(n)?n.reduce(uy,e):Object.assign(Object.assign({},e),n)}var _s=function(){var e=function(){function n(t,r,i,o,a){var u=this;g(this,n),this._zone=t,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run(function(){u.tick()})}});var s=new ut(function(c){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular(function(){c.next(u._stable),c.complete()})}),l=new ut(function(c){var f;u._zone.runOutsideAngular(function(){f=u._zone.onStable.subscribe(function(){jt.assertNotInAngularZone(),bf(function(){!u._stable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks&&(u._stable=!0,c.next(!0))})})});var d=u._zone.onUnstable.subscribe(function(){jt.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular(function(){c.next(!1)}))});return function(){f.unsubscribe(),d.unsubscribe()}});this.isStable=vu(s,l.pipe(pu()))}return p(n,[{key:"bootstrap",value:function(r,i){var u,o=this;if(!this._initStatus.done)throw new se(405,"");u=r instanceof dm?r:this._componentFactoryResolver.resolveComponentFactory(r),this.componentTypes.push(u.componentType);var s=function nM(e){return e.isBoundToModule}(u)?void 0:this._injector.get(mo),c=u.create(Ht.NULL,[],i||u.selector,s),f=c.location.nativeElement,d=c.injector.get(kf,null),h=d&&c.injector.get(ny);return d&&h&&h.registerApplication(f,d),c.onDestroy(function(){o.detachView(c.hostView),Sf(o.components,c),h&&h.unregisterApplication(f)}),this._loadComponent(c),c}},{key:"tick",value:function(){var r=this;if(this._runningTick)throw new se(101,"");try{this._runningTick=!0;var a,o=ct(this._views);try{for(o.s();!(a=o.n()).done;)a.value.detectChanges()}catch(f){o.e(f)}finally{o.f()}}catch(f){this._zone.runOutsideAngular(function(){return r._exceptionHandler.handleError(f)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(r){var i=r;this._views.push(i),i.attachToAppRef(this)}},{key:"detachView",value:function(r){var i=r;Sf(this._views,i),i.detachFromAppRef()}},{key:"_loadComponent",value:function(r){this.attachView(r.hostView),this.tick(),this.components.push(r),this._injector.get(U1,[]).concat(this._bootstrapListeners).forEach(function(o){return o(r)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(r){return r.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),n}();return e.\u0275fac=function(t){return new(t||e)(we(jt),we(Ht),we($i),we(Da),we(Co))},e.\u0275prov=ye({token:e,factory:e.\u0275fac}),e}();function Sf(e,n){var t=e.indexOf(n);t>-1&&e.splice(t,1)}var Ds=function(){var e=p(function n(){g(this,n)});return e.__NG_ELEMENT_ID__=lM,e}();function lM(e){return function cM(e,n,t){if(Cu(e)&&!t){var r=Jt(e.index,n);return new Ca(r,r)}return 47&e.type?new Ca(n[16],n):null}(nt(),M(),16==(16&e))}var vy=function(){function e(){g(this,e)}return p(e,[{key:"supports",value:function(t){return da(t)}},{key:"create",value:function(t){return new vM(t)}}]),e}(),hM=function(n,t){return t},vM=function(){function e(n){g(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||hM}return p(e,[{key:"forEachItem",value:function(t){var r;for(r=this._itHead;null!==r;r=r._next)t(r)}},{key:"forEachOperation",value:function(t){for(var r=this._itHead,i=this._removalsHead,o=0,a=null;r||i;){var u=!i||r&&r.currentIndex1&&void 0!==arguments[1])||arguments[1],a=t.findTestabilityInTree(i,o);if(null==a)throw new Error("Could not find testability for element.");return a},Me.getAllAngularTestabilities=function(){return t.getAllTestabilities()},Me.getAllAngularRootElements=function(){return t.getAllRootElements()},Me.frameworkStabilizers||(Me.frameworkStabilizers=[]),Me.frameworkStabilizers.push(function(o){var a=Me.getAllAngularTestabilities(),u=a.length,s=!1,l=function(f){s=s||f,0==--u&&o(s)};a.forEach(function(c){c.whenStable(l)})})}},{key:"findTestabilityInTree",value:function(t,r,i){if(null==r)return null;var o=t.getTestability(r);return null!=o?o:i?li().isShadowRoot(r)?this.findTestabilityInTree(t,r.host,!0):this.findTestabilityInTree(t,r.parentElement,!0):null}}],[{key:"init",value:function(){!function eM(e){Mf=e}(new e)}}]),e}(),oA=function(){var e=function(){function n(){g(this,n)}return p(n,[{key:"build",value:function(){return new XMLHttpRequest}}]),n}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ye({token:e,factory:e.\u0275fac}),e}(),Ps=new ve("EventManagerPlugins"),Rs=function(){var e=function(){function n(t,r){var i=this;g(this,n),this._zone=r,this._eventNameToPlugin=new Map,t.forEach(function(o){return o.manager=i}),this._plugins=t.slice().reverse()}return p(n,[{key:"addEventListener",value:function(r,i,o){return this._findPluginFor(i).addEventListener(r,i,o)}},{key:"addGlobalEventListener",value:function(r,i,o){return this._findPluginFor(i).addGlobalEventListener(r,i,o)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(r){var i=this._eventNameToPlugin.get(r);if(i)return i;for(var o=this._plugins,a=0;a-1&&(a.splice(d,1),l+=f+".")}),l+=s,0!=a.length||0===s.length)return null;var c={};return c.domEventName=u,c.fullKey=l,c}},{key:"getEventFullKey",value:function(o){var a="",u=function yA(e){var n=e.key;if(null==n){if(null==(n=e.keyIdentifier))return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===e.location&&zy.hasOwnProperty(n)&&(n=zy[n]))}return pA[n]||n}(o);return" "===(u=u.toLowerCase())?u="space":"."===u&&(u="dot"),qy.forEach(function(s){s!=u&&(0,gA[s])(o)&&(a+=s+".")}),a+=u}},{key:"eventCallback",value:function(o,a,u){return function(s){r.getEventFullKey(s)===o&&u.runGuarded(function(){return a(s)})}}},{key:"_normalizeKey",value:function(o){return"esc"===o?"escape":o}}]),r}(Vy);return e.\u0275fac=function(t){return new(t||e)(we(bn))},e.\u0275prov=ye({token:e,factory:e.\u0275fac}),e}(),bA=[{provide:Cf,useValue:"browser"},{provide:Ym,useValue:function _A(){XS.makeCurrent(),iA.init()},multi:!0},{provide:bn,useFactory:function CA(){return function ED(e){El=e}(document),document},deps:[]}],wA=iy(EM,"browser",bA),EA=[{provide:Hc,useValue:"root"},{provide:$i,useFactory:function DA(){return new $i},deps:[]},{provide:Ps,useClass:hA,multi:!0,deps:[bn,jt,Cf]},{provide:Ps,useClass:mA,multi:!0,deps:[bn]},{provide:Qf,useClass:Qf,deps:[Rs,xa,Ma]},{provide:vm,useExisting:Qf},{provide:Ly,useExisting:xa},{provide:xa,useClass:xa,deps:[bn]},{provide:kf,useClass:kf,deps:[jt]},{provide:Rs,useClass:Rs,deps:[Ps,jt]},{provide:YS,useClass:oA,deps:[]}],kA=function(){var e=function(){function n(t){if(g(this,n),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 p(n,null,[{key:"withServerTransition",value:function(r){return{ngModule:n,providers:[{provide:Ma,useValue:r.appId},{provide:Ny,useExisting:Ma},rA]}}}]),n}();return e.\u0275fac=function(t){return new(t||e)(we(e,12))},e.\u0275mod=hn({type:e}),e.\u0275inj=Qt({providers:EA,imports:[Os,FM]}),e}();"undefined"!=typeof window&&window;var Xf=function(){var e=p(function n(){g(this,n)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ye({token:e,factory:function(t){return t?new(t||e):we(Zy)},providedIn:"root"}),e}(),Zy=function(){var e=function(n){T(r,n);var t=F(r);function r(i){var o;return g(this,r),(o=t.call(this))._doc=i,o}return p(r,[{key:"sanitize",value:function(o,a){if(null==a)return null;switch(o){case Ie.NONE:return a;case Ie.HTML:return er(a,"HTML")?tn(a):Jh(this._doc,String(a)).toString();case Ie.STYLE:return er(a,"Style")?tn(a):a;case Ie.SCRIPT:if(er(a,"Script"))return tn(a);throw new Error("unsafe value used in a script context");case Ie.URL:return qh(a),er(a,"URL")?tn(a):ra(String(a));case Ie.RESOURCE_URL:if(er(a,"ResourceURL"))return tn(a);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(o," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(o){return function BC(e){return new PC(e)}(o)}},{key:"bypassSecurityTrustStyle",value:function(o){return function HC(e){return new RC(e)}(o)}},{key:"bypassSecurityTrustScript",value:function(o){return function jC(e){return new NC(e)}(o)}},{key:"bypassSecurityTrustUrl",value:function(o){return function GC(e){return new VC(e)}(o)}},{key:"bypassSecurityTrustResourceUrl",value:function(o){return function UC(e){return new LC(e)}(o)}}]),r}(Xf);return e.\u0275fac=function(t){return new(t||e)(we(bn))},e.\u0275prov=ye({token:e,factory:function(t){var r;return r=t?new t:function IA(e){return new Zy(e.get(bn))}(we(Ht)),r},providedIn:"root"}),e}();function PA(e,n){if(1&e){var t=or();b(0,"span",7),oe("click",function(i){Xt(t);var o=Ee().$implicit,a=Ee();return i.preventDefault(),a.removeTab(o)}),Y(1," \u274c"),w()}}var RA=function(n){return["nav-item",n]};function NA(e,n){if(1&e){var t=or();b(0,"li",3),oe("keydown",function(o){var u=Xt(t).index;return Ee().keyNavActions(o,u)}),b(1,"a",4),oe("click",function(){return Xt(t).$implicit.active=!0}),b(2,"span",5),Y(3),w(),Ye(4,PA,2,0,"span",6),w(),w()}if(2&e){var r=n.$implicit;Pn("active",r.active)("disabled",r.disabled),G("ngClass",_o(15,RA,r.customClass||"")),V(1),Pn("active",r.active)("disabled",r.disabled),kt("aria-controls",r.id?r.id:"")("aria-selected",!!r.active)("id",r.id?r.id+"-link":""),V(1),G("ngTransclude",r.headingRef),V(1),on(r.heading),V(1),G("ngIf",r.removable)}}var VA=["*"],LA=function(){var e=function(){function n(t){g(this,n),this.viewRef=t}return p(n,[{key:"ngTransclude",get:function(){return this._ngTransclude},set:function(r){this._ngTransclude=r,r&&this.viewRef.createEmbeddedView(r)}}]),n}();return e.\u0275fac=function(t){return new(t||e)(S(Bn))},e.\u0275dir=U({type:e,selectors:[["","ngTransclude",""]],inputs:{ngTransclude:"ngTransclude"}}),e}(),BA=function(){var e=p(function n(){g(this,n),this.type="tabs",this.isKeysAllowed=!0,this.ariaLabel="Tabs"});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ye({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),ed=function(){var e=function(){function n(t,r,i){g(this,n),this.renderer=r,this.elementRef=i,this.clazz=!0,this.tabs=[],this.classMap={},this.ariaLabel="Tabs",this.isDestroyed=!1,this._vertical=!1,this._justified=!1,this._type="tabs",this._isKeysAllowed=!0,Object.assign(this,t)}return p(n,[{key:"vertical",get:function(){return this._vertical},set:function(r){this._vertical=r,this.setClassMap()}},{key:"justified",get:function(){return this._justified},set:function(r){this._justified=r,this.setClassMap()}},{key:"type",get:function(){return this._type},set:function(r){this._type=r,this.setClassMap()}},{key:"isKeysAllowed",get:function(){return this._isKeysAllowed},set:function(r){this._isKeysAllowed=r}},{key:"ngOnDestroy",value:function(){this.isDestroyed=!0}},{key:"addTab",value:function(r){this.tabs.push(r),r.active=1===this.tabs.length&&!r.active}},{key:"removeTab",value:function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{reselect:!0,emit:!0},o=this.tabs.indexOf(r);if(-1!==o&&!this.isDestroyed){if(i.reselect&&r.active&&this.hasAvailableTabs(o)){var a=this.getClosestTabIndex(o);this.tabs[a].active=!0}i.emit&&r.removed.emit(r),this.tabs.splice(o,1),r.elementRef.nativeElement.parentNode&&this.renderer.removeChild(r.elementRef.nativeElement.parentNode,r.elementRef.nativeElement)}}},{key:"keyNavActions",value:function(r,i){if(this.isKeysAllowed){var o=Array.from(this.elementRef.nativeElement.querySelectorAll(".nav-link"));if(13===r.keyCode||"Enter"===r.key||32===r.keyCode||"Space"===r.key)return r.preventDefault(),void o[i%o.length].click();if(39===r.keyCode||"RightArrow"===r.key){var u,s=1;do{u=o[(i+s)%o.length],s++}while(u.classList.contains("disabled"));return void u.focus()}if(37===r.keyCode||"LeftArrow"===r.key){var l,c=1,f=i;do{f-c<0?(l=o[f=o.length-1],c=0):l=o[f-c],c++}while(l.classList.contains("disabled"));return void l.focus()}if(36===r.keyCode||"Home"===r.key){r.preventDefault();var d,h=0;do{d=o[h%o.length],h++}while(d.classList.contains("disabled"));return void d.focus()}if(35===r.keyCode||"End"===r.key){r.preventDefault();var m,_=1,C=i;do{C-_<0?(m=o[C=o.length-1],_=0):m=o[C-_],_++}while(m.classList.contains("disabled"));return void m.focus()}if((46===r.keyCode||"Delete"===r.key)&&this.tabs[i].removable){if(this.removeTab(this.tabs[i]),o[i+1])return void o[(i+1)%o.length].focus();o[o.length-1]&&o[0].focus()}}}},{key:"getClosestTabIndex",value:function(r){var i=this.tabs.length;if(!i)return-1;for(var o=1;o<=i;o+=1){var a=r-o,u=r+o;if(this.tabs[a]&&!this.tabs[a].disabled)return a;if(this.tabs[u]&&!this.tabs[u].disabled)return u}return-1}},{key:"hasAvailableTabs",value:function(r){var i=this.tabs.length;if(!i)return!1;for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,r){return!!this.control&&this.control.hasError(t,r)}},{key:"getError",value:function(t,r){return this.control?this.control.getError(t,r):null}}]),e}(),qr=function(e){T(t,e);var n=F(t);function t(){var r;return g(this,t),(r=n.apply(this,arguments))._parent=null,r.name=null,r.valueAccessor=null,r}return p(t)}(d_),Ft=function(e){T(t,e);var n=F(t);function t(){return g(this,t),n.apply(this,arguments)}return p(t,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),t}(d_),h_=function(){function e(n){g(this,e),this._cd=n}return p(e,[{key:"is",value:function(t){var r,i,o;return"submitted"===t?!!(null===(r=this._cd)||void 0===r?void 0:r.submitted):!!(null===(o=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===o?void 0:o[t])}}]),e}(),di=function(){var e=function(n){T(r,n);var t=F(r);function r(i){return g(this,r),t.call(this,i)}return p(r)}(h_);return e.\u0275fac=function(t){return new(t||e)(S(qr,2))},e.\u0275dir=U({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,r){2&t&&Pn("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))},features:[Fe]}),e}();function Fa(e,n){(function ud(e,n){var t=s_(e);null!==n.validator?e.setValidators(u_(t,n.validator)):"function"==typeof t&&e.setValidators([t]);var r=l_(e);null!==n.asyncValidator?e.setAsyncValidators(u_(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);var i=function(){return e.updateValueAndValidity()};Gs(n._rawValidators,i),Gs(n._rawAsyncValidators,i)})(e,n),n.valueAccessor.writeValue(e.value),function CT(e,n){n.valueAccessor.registerOnChange(function(t){e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&p_(e,n)})}(e,n),function wT(e,n){var t=function(i,o){n.valueAccessor.writeValue(i),o&&n.viewToModelUpdate(i)};e.registerOnChange(t),n._registerOnDestroy(function(){e._unregisterOnChange(t)})}(e,n),function bT(e,n){n.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&p_(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function DT(e,n){if(n.valueAccessor.setDisabledState){var t=function(i){n.valueAccessor.setDisabledState(i)};e.registerOnDisabledChange(t),n._registerOnDestroy(function(){e._unregisterOnDisabledChange(t)})}}(e,n)}function js(e,n){var r=function(){};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),function Us(e,n){var t=!1;if(null!==e){if(null!==n.validator){var r=s_(e);if(Array.isArray(r)&&r.length>0){var i=r.filter(function(s){return s!==n.validator});i.length!==r.length&&(t=!0,e.setValidators(i))}}if(null!==n.asyncValidator){var o=l_(e);if(Array.isArray(o)&&o.length>0){var a=o.filter(function(s){return s!==n.asyncValidator});a.length!==o.length&&(t=!0,e.setAsyncValidators(a))}}}var u=function(){};return Gs(n._rawValidators,u),Gs(n._rawAsyncValidators,u),t}(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function Gs(e,n){e.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function p_(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function sd(e,n){if(!e.hasOwnProperty("model"))return!1;var t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}function ld(e,n){if(!n)return null;Array.isArray(n);var t=void 0,r=void 0,i=void 0;return n.forEach(function(o){o.constructor===td?t=o:function MT(e){return Object.getPrototypeOf(e.constructor)===fi}(o)?r=o:i=o}),i||r||t||null}function qs(e,n){var t=e.indexOf(n);t>-1&&e.splice(t,1)}var Oa="VALID",zs="INVALID",Eo="PENDING",Ia="DISABLED";function fd(e){return(hd(e)?e.validators:e)||null}function y_(e){return Array.isArray(e)?nd(e):e||null}function dd(e,n){return(hd(n)?n.asyncValidators:e)||null}function __(e){return Array.isArray(e)?rd(e):e||null}function hd(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var vd=function(n){return n instanceof gd};function C_(e){return e instanceof Pa?e.value:e.getRawValue()}function b_(e,n){var t=vd(e),r=e.controls;if(!(t?Object.keys(r):r).length)throw new se(1e3,"");if(!r[n])throw new se(1001,"")}function w_(e,n){vd(e),e._forEachChild(function(r,i){if(void 0===n[i])throw new se(1002,"")})}var pd=function(){function e(n,t){g(this,e),this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=n,this._rawAsyncValidators=t,this._composedValidatorFn=y_(this._rawValidators),this._composedAsyncValidatorFn=__(this._rawAsyncValidators)}return p(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===Oa}},{key:"invalid",get:function(){return this.status===zs}},{key:"pending",get:function(){return this.status==Eo}},{key:"disabled",get:function(){return this.status===Ia}},{key:"enabled",get:function(){return this.status!==Ia}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=y_(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=__(t)}},{key:"addValidators",value:function(t){this.setValidators(c_(t,this._rawValidators))}},{key:"addAsyncValidators",value:function(t){this.setAsyncValidators(c_(t,this._rawAsyncValidators))}},{key:"removeValidators",value:function(t){this.setValidators(f_(t,this._rawValidators))}},{key:"removeAsyncValidators",value:function(t){this.setAsyncValidators(f_(t,this._rawAsyncValidators))}},{key:"hasValidator",value:function(t){return Ls(this._rawValidators,t)}},{key:"hasAsyncValidator",value:function(t){return Ls(this._rawAsyncValidators,t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(r){r.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(r){r.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Eo,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=this._parentMarkedDirty(t.onlySelf);this.status=Ia,this.errors=null,this._forEachChild(function(i){i.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:r})),this._onDisabledChange.forEach(function(i){return i(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=this._parentMarkedDirty(t.onlySelf);this.status=Oa,this._forEachChild(function(i){i.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:r})),this._onDisabledChange.forEach(function(i){return i(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Oa||this.status===Eo)&&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)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(r){return r._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?Ia:Oa}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var r=this;if(this.asyncValidator){this.status=Eo,this._hasOwnPendingAsyncValidator=!0;var i=r_(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(function(o){r._hasOwnPendingAsyncValidator=!1,r.setErrors(o,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==r.emitEvent)}},{key:"get",value:function(t){return function ST(e,n,t){if(null==n||(Array.isArray(n)||(n=n.split(t)),Array.isArray(n)&&0===n.length))return null;var r=e;return n.forEach(function(i){r=vd(r)?r.controls.hasOwnProperty(i)?r.controls[i]:null:function(n){return n instanceof TT}(r)&&r.at(i)||null}),r}(this,t,".")}},{key:"getError",value:function(t,r){var i=r?this.get(r):this;return i&&i.errors?i.errors[t]:null}},{key:"hasError",value:function(t,r){return!!this.getError(t,r)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new Ae,this.statusChanges=new Ae}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?Ia:this.errors?zs:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Eo)?Eo:this._anyControlsHaveStatus(zs)?zs:Oa}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(r){return r.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){hd(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),Pa=function(e){T(t,e);var n=F(t);function t(){var r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return g(this,t),(r=n.call(this,fd(o),dd(a,o)))._onChange=[],r._pendingChange=!1,r._applyFormState(i),r._setUpdateStrategy(o),r._initObservables(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!!r.asyncValidator}),r}return p(t,[{key:"setValue",value:function(i){var o=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=i,this._onChange.length&&!1!==a.emitModelToViewChange&&this._onChange.forEach(function(u){return u(o.value,!1!==a.emitViewToModelChange)}),this.updateValueAndValidity(a)}},{key:"patchValue",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(i,o)}},{key:"reset",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(i),this.markAsPristine(o),this.markAsUntouched(o),this.setValue(this.value,o),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(i){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(i){this._onChange.push(i)}},{key:"_unregisterOnChange",value:function(i){qs(this._onChange,i)}},{key:"registerOnDisabledChange",value:function(i){this._onDisabledChange.push(i)}},{key:"_unregisterOnDisabledChange",value:function(i){qs(this._onDisabledChange,i)}},{key:"_forEachChild",value:function(i){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(i){this._isBoxedValue(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}}]),t}(pd),gd=function(e){T(t,e);var n=F(t);function t(r,i,o){var a;return g(this,t),(a=n.call(this,fd(i),dd(o,i))).controls=r,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!!a.asyncValidator}),a}return p(t,[{key:"registerControl",value:function(i,o){return this.controls[i]?this.controls[i]:(this.controls[i]=o,o.setParent(this),o._registerOnCollectionChange(this._onCollectionChange),o)}},{key:"addControl",value:function(i,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(i,o),this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),delete this.controls[i],this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(i,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),delete this.controls[i],o&&this.registerControl(i,o),this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}},{key:"setValue",value:function(i){var o=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};w_(this,i),Object.keys(i).forEach(function(u){b_(o,u),o.controls[u].setValue(i[u],{onlySelf:!0,emitEvent:a.emitEvent})}),this.updateValueAndValidity(a)}},{key:"patchValue",value:function(i){var o=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=i&&(Object.keys(i).forEach(function(u){o.controls[u]&&o.controls[u].patchValue(i[u],{onlySelf:!0,emitEvent:a.emitEvent})}),this.updateValueAndValidity(a))}},{key:"reset",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(a,u){a.reset(i[u],{onlySelf:!0,emitEvent:o.emitEvent})}),this._updatePristine(o),this._updateTouched(o),this.updateValueAndValidity(o)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(i,o,a){return i[a]=C_(o),i})}},{key:"_syncPendingControls",value:function(){var i=this._reduceChildren(!1,function(o,a){return!!a._syncPendingControls()||o});return i&&this.updateValueAndValidity({onlySelf:!0}),i}},{key:"_forEachChild",value:function(i){var o=this;Object.keys(this.controls).forEach(function(a){var u=o.controls[a];u&&i(u,a)})}},{key:"_setUpControls",value:function(){var i=this;this._forEachChild(function(o){o.setParent(i),o._registerOnCollectionChange(i._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(i){for(var o=0,a=Object.keys(this.controls);o0||this.disabled}}]),t}(pd),TT=function(e){T(t,e);var n=F(t);function t(r,i,o){var a;return g(this,t),(a=n.call(this,fd(i),dd(o,i))).controls=r,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!!a.asyncValidator}),a}return p(t,[{key:"at",value:function(i){return this.controls[i]}},{key:"push",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(i,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(i,0,o),this._registerControl(o),this.updateValueAndValidity({emitEvent:a.emitEvent})}},{key:"removeAt",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:o.emitEvent})}},{key:"setControl",value:function(i,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),this.controls.splice(i,1),o&&(this.controls.splice(i,0,o),this._registerControl(o)),this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(i){var o=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};w_(this,i),i.forEach(function(u,s){b_(o,s),o.at(s).setValue(u,{onlySelf:!0,emitEvent:a.emitEvent})}),this.updateValueAndValidity(a)}},{key:"patchValue",value:function(i){var o=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=i&&(i.forEach(function(u,s){o.at(s)&&o.at(s).patchValue(u,{onlySelf:!0,emitEvent:a.emitEvent})}),this.updateValueAndValidity(a))}},{key:"reset",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(a,u){a.reset(i[u],{onlySelf:!0,emitEvent:o.emitEvent})}),this._updatePristine(o),this._updateTouched(o),this.updateValueAndValidity(o)}},{key:"getRawValue",value:function(){return this.controls.map(function(i){return C_(i)})}},{key:"clear",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(o){return o._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}},{key:"_syncPendingControls",value:function(){var i=this.controls.reduce(function(o,a){return!!a._syncPendingControls()||o},!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}},{key:"_forEachChild",value:function(i){this.controls.forEach(function(o,a){i(o,a)})}},{key:"_updateValue",value:function(){var i=this;this.value=this.controls.filter(function(o){return o.enabled||i.disabled}).map(function(o){return o.value})}},{key:"_anyControls",value:function(i){return this.controls.some(function(o){return o.enabled&&i(o)})}},{key:"_setUpControls",value:function(){var i=this;this._forEachChild(function(o){return i._registerControl(o)})}},{key:"_allControlsDisabled",value:function(){var o,i=ct(this.controls);try{for(i.s();!(o=i.n()).done;)if(o.value.enabled)return!1}catch(u){i.e(u)}finally{i.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}}]),t}(pd),OT={provide:qr,useExisting:de(function(){return ko})},M_=function(){return Promise.resolve(null)}(),ko=function(){var e=function(n){T(r,n);var t=F(r);function r(i,o,a,u){var s;return g(this,r),(s=t.call(this)).control=new Pa,s._registered=!1,s.update=new Ae,s._parent=i,s._setValidators(o),s._setAsyncValidators(a),s.valueAccessor=ld(ze(s),u),s}return p(r,[{key:"ngOnChanges",value:function(o){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in o&&this._updateDisabled(o),sd(o,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?function Hs(e,n){return[].concat(Re(n.path),[e])}(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(o){this.viewModel=o,this.update.emit(o)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){Fa(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(o){var a=this;M_.then(function(){a.control.setValue(o,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(o){var a=this,u=o.isDisabled.currentValue,s=""===u||u&&"false"!==u;M_.then(function(){s&&!a.control.disabled?a.control.disable():!s&&a.control.disabled&&a.control.enable()})}}]),r}(qr);return e.\u0275fac=function(t){return new(t||e)(S(Ft,9),S(Ct,10),S(Ur,10),S(Ut,10))},e.\u0275dir=U({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Se([OT]),Fe,gn]}),e}(),A_=function(){var e=p(function n(){g(this,n)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=hn({type:e}),e.\u0275inj=Qt({}),e}(),yd=new ve("NgModelWithFormControlWarning"),LT={provide:qr,useExisting:de(function(){return Ws})},Ws=function(){var e=function(n){T(r,n);var t=F(r);function r(i,o,a,u){var s;return g(this,r),(s=t.call(this))._ngModelWarningConfig=u,s.update=new Ae,s._ngModelWarningSent=!1,s._setValidators(i),s._setAsyncValidators(o),s.valueAccessor=ld(ze(s),a),s}return p(r,[{key:"isDisabled",set:function(o){}},{key:"ngOnChanges",value:function(o){if(this._isControlChanged(o)){var a=o.form.previousValue;a&&js(a,this),Fa(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}sd(o,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&js(this.form,this)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(o){this.viewModel=o,this.update.emit(o)}},{key:"_isControlChanged",value:function(o){return o.hasOwnProperty("form")}}]),r}(qr);return e._ngModelWarningSentOnce=!1,e.\u0275fac=function(t){return new(t||e)(S(Ct,10),S(Ur,10),S(Ut,10),S(yd,8))},e.\u0275dir=U({type:e,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Se([LT]),Fe,gn]}),e}(),q_=function(){var e=p(function n(){g(this,n)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=hn({type:e}),e.\u0275inj=Qt({imports:[[A_]]}),e}(),rx=function(){var e=p(function n(){g(this,n)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=hn({type:e}),e.\u0275inj=Qt({imports:[q_]}),e}(),ix=function(){var e=function(){function n(){g(this,n)}return p(n,null,[{key:"withConfig",value:function(r){return{ngModule:n,providers:[{provide:yd,useValue:r.warnOnNgModelWithFormControl}]}}}]),n}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=hn({type:e}),e.\u0275inj=Qt({imports:[q_]}),e}(),Va=function(e){T(t,e);var n=F(t);function t(r){var i;return g(this,t),(i=n.call(this))._value=r,i}return p(t,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(i){var o=ue(ce(t.prototype),"_subscribe",this).call(this,i);return!o.closed&&i.next(this._value),o}},{key:"getValue",value:function(){var a=this._value;if(this.hasError)throw this.thrownError;return this._throwIfClosed(),a}},{key:"next",value:function(i){ue(ce(t.prototype),"next",this).call(this,this._value=i)}}]),t}(sr);function $s(){for(var e=arguments.length,n=new Array(e),t=0;t2&&void 0!==arguments[2]?arguments[2]:wr;return function(r){z_(n,function(){for(var i=e.length,o=new Array(i),a=i,u=i,s=function(f){z_(n,function(){var d=dn(e[f],n),h=!1;d.subscribe(new bt(r,function(m){o[f]=m,h||(h=!0,u--),u||r.next(t(o.slice()))},function(){--a||r.complete()}))},r)},l=0;l=2,!1,!0))})(cx,[])(e).subscribe(n)})}var fx=function(e){T(t,e);var n=F(t);function t(r,i){return g(this,t),n.call(this)}return p(t,[{key:"schedule",value:function(i){return this}}]),t}(x),Zs={setInterval:function(e){function n(){return e.apply(this,arguments)}return n.toString=function(){return e.toString()},n}(function(){var e=Zs.delegate;return((null==e?void 0:e.setInterval)||setInterval).apply(void 0,arguments)}),clearInterval:function(e){function n(t){return e.apply(this,arguments)}return n.toString=function(){return e.toString()},n}(function(e){var n=Zs.delegate;return((null==n?void 0:n.clearInterval)||clearInterval)(e)}),delegate:void 0},dx=function(e){T(t,e);var n=F(t);function t(r,i){var o;return g(this,t),(o=n.call(this,r,i)).scheduler=r,o.work=i,o.pending=!1,o}return p(t,[{key:"schedule",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=i;var a=this.id,u=this.scheduler;return null!=a&&(this.id=this.recycleAsyncId(u,a,o)),this.pending=!0,this.delay=o,this.id=this.id||this.requestAsyncId(u,this.id,o),this}},{key:"requestAsyncId",value:function(i,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Zs.setInterval(i.flush.bind(i,this),a)}},{key:"recycleAsyncId",value:function(i,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=a&&this.delay===a&&!1===this.pending)return o;Zs.clearInterval(o)}},{key:"execute",value:function(i,o){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var a=this._execute(i,o);if(a)return a;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(i,o){var u,a=!1;try{this.work(i)}catch(s){a=!0,u=s||new Error("Scheduled action threw falsy error")}if(a)return this.unsubscribe(),u}},{key:"unsubscribe",value:function(){if(!this.closed){var i=this.id,o=this.scheduler,a=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,A(a,this),null!=i&&(this.id=this.recycleAsyncId(o,i,null)),this.delay=null,ue(ce(t.prototype),"unsubscribe",this).call(this)}}}]),t}(fx),$_={now:function(){return($_.delegate||Date).now()},delegate:void 0},Md=function(){function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;g(this,e),this.schedulerActionCtor=n,this.now=t}return p(e,[{key:"schedule",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return new this.schedulerActionCtor(this,t).schedule(i,r)}}]),e}();Md.now=$_.now;var hx=function(e){T(t,e);var n=F(t);function t(r){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Md.now;return g(this,t),(i=n.call(this,r,o)).actions=[],i._active=!1,i._scheduled=void 0,i}return p(t,[{key:"flush",value:function(i){var o=this.actions;if(this._active)o.push(i);else{var a;this._active=!0;do{if(a=i.execute(i.state,i.delay))break}while(i=o.shift());if(this._active=!1,a){for(;i=o.shift();)i.unsubscribe();throw a}}}}]),t}(Md),vx=new hx(dx);function Z_(e,n){return gt(function(t,r){var i=0;t.subscribe(new bt(r,function(o){return e.call(n,o,i++)&&r.next(o)}))})}var mx=L(222),Ks=L.n(mx);function K_(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Mo=function(){function e(n,t,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;g(this,e),this.value=n,this.text=t,this.disabled=r,this.data=i,this._parent=o,this.type="option",this.cacheRenderedText=null}return p(e,[{key:"parent",get:function(){return this._parent}},{key:"renderText",value:function(t,r){return(this.cacheHighlightText!==r||null===this.cacheRenderedText)&&(this.cacheHighlightText=r,this.cacheRenderedText=t.bypassSecurityTrustHtml(this.cacheHighlightText?(this.text+"").replace(new RegExp(K_(this.cacheHighlightText),"gi"),"$&"):this.text)),this.cacheRenderedText}}]),e}(),So=function(){function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];g(this,e),this.label=n,this.options=t,this.type="optgroup",this.filter(function(){return!0})}return p(e,[{key:"filter",value:function(t){this.optionsFiltered=this.options.filter(function(r){return t(r)})}}]),e}(),Q_=function(){var e=p(function n(t){g(this,n),this.template=t});return e.\u0275fac=function(t){return new(t||e)(S(Tt))},e.\u0275dir=U({type:e,selectors:[["","ngx-select-option",""]]}),e}(),Y_=function(){var e=p(function n(t){g(this,n),this.template=t});return e.\u0275fac=function(t){return new(t||e)(S(Tt))},e.\u0275dir=U({type:e,selectors:[["","ngx-select-option-selected",""]]}),e}(),J_=function(){var e=p(function n(t){g(this,n),this.template=t});return e.\u0275fac=function(t){return new(t||e)(S(Tt))},e.\u0275dir=U({type:e,selectors:[["","ngx-select-option-not-found",""]]}),e}(),_x=["*"],Dx=function(){var e=function(){function n(t,r,i){g(this,n),this.renderer=t,this.ngZone=r,this.destroy$=new sr,this.choiceMenuEl=i.nativeElement}return p(n,[{key:"position",get:function(){return this.appendTo?"absolute":""}},{key:"ngOnInit",value:function(){var r=this;this.selectionChanges.pipe(function yx(e){return gt(function(n,t){$n(e).subscribe(new bt(t,function(){return t.complete()},He)),!t.closed&&n.subscribe(t)})}(this.destroy$)).subscribe(function(){return r.delayedPositionUpdate()}),this.selectEl=this.choiceMenuEl.parentElement}},{key:"ngOnChanges",value:function(r){var i;(null===(i=r.show)||void 0===i?void 0:i.currentValue)&&this.delayedPositionUpdate()}},{key:"ngOnDestroy",value:function(){this.destroy$.next(),this.appendTo&&(this.renderer.removeChild(this.choiceMenuEl.parentNode,this.choiceMenuEl),this.disposeResizeListener&&this.disposeResizeListener())}},{key:"ngAfterContentInit",value:function(){this.appendTo&&(this.appendChoiceMenu(),this.handleDocumentResize(),this.delayedPositionUpdate())}},{key:"appendChoiceMenu",value:function(){var r=this.getAppendToElement();if(!r)throw new Error("appendTo selector ".concat(this.appendTo," did not found any element"));this.renderer.appendChild(r,this.choiceMenuEl)}},{key:"getAppendToElement",value:function(){return document.querySelector(this.appendTo)}},{key:"handleDocumentResize",value:function(){var r=this;this.disposeResizeListener=this.renderer.listen("window","resize",function(){r.updatePosition()})}},{key:"delayedPositionUpdate",value:function(){var r=this;this.appendTo&&this.ngZone.runOutsideAngular(function(){window.requestAnimationFrame(function(){r.updatePosition()})})}},{key:"updatePosition",value:function(){if(this.show){var r=this.getViewportOffset(this.selectEl),i=this.getParentOffset(this.choiceMenuEl),a=r.left-i.left;this.choiceMenuEl.style.top="".concat(r.top-i.top+r.height,"px"),this.choiceMenuEl.style.bottom="auto",this.choiceMenuEl.style.left="".concat(a,"px"),this.choiceMenuEl.style.width="".concat(r.width,"px"),this.choiceMenuEl.style.minWidth="".concat(r.width,"px")}}},{key:"getStyles",value:function(r){return window.getComputedStyle(r)}},{key:"getStyleProp",value:function(r,i){return this.getStyles(r)[i]}},{key:"isStatic",value:function(r){return"static"===(this.getStyleProp(r,"position")||"static")}},{key:"getOffsetParent",value:function(r){for(var i=r.offsetParent;i&&i!==document.documentElement&&this.isStatic(i);)i=i.offsetParent;return i||document.documentElement}},{key:"getViewportOffset",value:function(r){var i=r.getBoundingClientRect(),o=window.scrollY-document.documentElement.clientTop,a=window.scrollX-document.documentElement.clientLeft;return{height:i.height||r.offsetHeight,width:i.width||r.offsetWidth,top:i.top+o,bottom:i.bottom+o,left:i.left+a,right:i.right+a}}},{key:"getParentOffset",value:function(r){var i={width:0,height:0,top:0,left:0,right:0,bottom:0};if("fixed"===this.getStyleProp(r,"position"))return i;var o=this.getOffsetParent(r);return o!==document.documentElement&&(i=this.getViewportOffset(o)),i.top+=o.clientTop,i.left+=o.clientLeft,i}}]),n}();return e.\u0275fac=function(t){return new(t||e)(S(Ln),S(jt),S(At))},e.\u0275cmp=Nt({type:e,selectors:[["ngx-select-choices"]],hostVars:2,hostBindings:function(t,r){2&t&&Jc("position",r.position)},inputs:{appendTo:"appendTo",show:"show",selectionChanges:"selectionChanges"},features:[gn],ngContentSelectors:_x,decls:1,vars:0,template:function(t,r){1&t&&(rs(),is(0))},encapsulation:2}),e}(),Cx=["main"],bx=["input"],wx=["choiceMenu"];function Ex(e,n){if(1&e&&(b(0,"span",17),_e(1,"span",18),w()),2&e){var t=Ee(2);V(1),G("innerHtml",t.placeholder,Wi)}}var kx=function(n){return{"ngx-select__allow-clear":n}},Mx=function(n,t){return{$implicit:n,index:0,text:t}};function Sx(e,n){if(1&e&&(b(0,"span",19),va(1,20),w()),2&e){var t=Ee(2),r=ai(8);G("ngClass",_o(3,kx,t.allowClear)),V(1),G("ngTemplateOutlet",t.templateSelectedOption||r)("ngTemplateOutletContext",hs(5,Mx,t.optionsSelected[0],t.sanitize(t.optionsSelected[0].text)))}}function Ax(e,n){if(1&e){var t=or();b(0,"a",21),oe("click",function(o){Xt(t);var a=Ee(2);return a.optionRemove(a.optionsSelected[0],o)}),_e(1,"i",22),w()}2&e&&G("ngClass",Ee(2).setBtnSize())}function Tx(e,n){if(1&e){var t=or();b(0,"div",9),b(1,"div",10),oe("click",function(){return Xt(t),Ee().optionsOpen()}),Ye(2,Ex,2,1,"span",11),Ye(3,Sx,2,8,"span",12),b(4,"span",13),Ye(5,Ax,2,1,"a",14),_e(6,"i",15),_e(7,"i",16),w(),w(),w()}if(2&e){var r=Ee();V(1),G("ngClass",r.setFormControlSize(r.setBtnSize())),V(1),G("ngIf",!r.optionsSelected.length),V(1),G("ngIf",r.optionsSelected.length),V(2),G("ngIf",r.canClearNotMultiple())}}var xx=function(n,t,r){return{$implicit:n,index:t,text:r}};function Fx(e,n){if(1&e){var t=or();b(0,"span"),b(1,"span",25),oe("click",function(s){return s.stopPropagation()}),va(2,20),b(3,"a",26),oe("click",function(s){var c=Xt(t).$implicit;return Ee(2).optionRemove(c,s)}),_e(4,"i",22),w(),w(),w()}if(2&e){var r=n.$implicit,i=n.index,o=Ee(2),a=ai(8);V(1),G("ngClass",o.setBtnSize()),V(1),G("ngTemplateOutlet",o.templateSelectedOption||a)("ngTemplateOutletContext",Dm(4,xx,r,i,o.sanitize(r.text))),V(1),G("ngClass",o.setBtnSize())}}function Ox(e,n){if(1&e){var t=or();b(0,"div",23),oe("click",function(){Xt(t);var o=Ee();return o.inputClick(o.inputElRef&&o.inputElRef.value)}),Ye(1,Fx,5,8,"span",24),w()}if(2&e){var r=Ee();V(1),G("ngForOf",r.optionsSelected)("ngForTrackBy",r.trackByOption)}}function Ix(e,n){if(1&e){var t=or();b(0,"input",27,28),oe("keyup",function(o){Xt(t);var a=ai(1);return Ee().inputKeyUp(a.value,o)})("click",function(){Xt(t);var o=ai(1);return Ee().inputClick(o.value)}),w()}if(2&e){var r=Ee();G("ngClass",r.setFormControlSize())("tabindex",!1===r.multiple?-1:0)("disabled",r.disabled)("placeholder",r.optionsSelected.length?"":r.placeholder)("autocomplete",r.autocomplete)}}function Px(e,n){1&e&&_e(0,"div",38)}function Rx(e,n){if(1&e&&(b(0,"div",39),Y(1),w()),2&e){var t=Ee().$implicit,r=Ee(2);V(1),on(r.asGroup(t).label)}}var Nx=function(n,t){return{"ngx-select__item_active active":n,"ngx-select__item_disabled disabled":t}},Vx=function(n,t,r,i){return{$implicit:n,text:t,index:r,subIndex:i}};function Lx(e,n){if(1&e){var t=or();b(0,"a",40,41),oe("mouseenter",function(){var c=Xt(t).$implicit,f=Ee(3);return f.onMouseEnter({activeOption:f.asOpt(c),filteredOptionList:f.optionsFiltered,index:f.optionsFiltered.indexOf(c)})})("click",function(l){var f=Xt(t).$implicit,d=Ee(3);return d.optionSelect(d.asOpt(f),l)}),va(2,20),w()}if(2&e){var r=n.$implicit,i=n.index,o=Ee().index,a=Ee(2),u=ai(8);G("ngClass",hs(3,Nx,a.asOpt(r).active,a.asOpt(r).disabled)),V(2),G("ngTemplateOutlet",a.templateOption||u)("ngTemplateOutletContext",Cm(6,Vx,r,a.asOpt(r).highlightedText,o,i))}}var Bx=function(n){return[n]};function Hx(e,n){if(1&e&&(b(0,"li",34),Ye(1,Px,1,0,"div",35),Ye(2,Rx,2,1,"div",36),Ye(3,Lx,3,11,"a",37),w()),2&e){var t=n.$implicit,r=n.index,i=Ee(2);V(1),G("ngIf","optgroup"===t.type&&r>0),V(1),G("ngIf","optgroup"===t.type),V(1),G("ngForOf",i.asGroup(t).optionsFiltered||_o(4,Bx,t))("ngForTrackBy",i.trackByOption)}}var jx=function(n){return{$implicit:n}};function Gx(e,n){if(1&e&&(b(0,"li",42),va(1,20),w()),2&e){var t=Ee(2),r=ai(10);V(1),G("ngTemplateOutlet",t.templateOptionNotFound||r)("ngTemplateOutletContext",_o(2,jx,t.inputText))}}function Ux(e,n){if(1&e){var t=or();b(0,"ngx-select-choices",29),oe("focusin",function(o){return Xt(t),Ee().choiceMenuFocus(o)}),b(1,"ul",30,31),Ye(3,Hx,4,6,"li",32),Ye(4,Gx,2,4,"li",33),w(),w()}if(2&e){var r=Ee();G("appendTo",r.appendTo)("show",r.showChoiceMenu())("selectionChanges",r.selectionChanges),V(1),Pn("show",r.showChoiceMenu()),G("ngClass",r.dropDownMenuOtherClasses),V(2),G("ngForOf",r.optionsFiltered)("ngForTrackBy",r.trackByOption),V(1),G("ngIf",!r.optionsFiltered.length)}}function qx(e,n){1&e&&_e(0,"span",18),2&e&&G("innerHtml",n.text,Wi)}function zx(e,n){1&e&&Y(0),2&e&&Mt(" ",Ee().noResultsFound," ")}var Wx=function(n,t){return{"ngx-select_multiple form-control":n,"open show":t}},$x=function(n){return{"ngx-select__disabled":n}},X_=new ve("NGX_SELECT_OPTIONS"),pt=function(){return function(e){e[e.first=0]="first",e[e.previous=1]="previous",e[e.next=2]="next",e[e.last=3]="last",e[e.firstSelected=4]="firstSelected",e[e.firstIfOptionActiveInvisible=5]="firstIfOptionActiveInvisible"}(pt||(pt={})),pt}();function hi(e,n){return n in e}var Ao=function(){var e=function(){function n(t,r,i,o){var a=this;g(this,n),this.sanitizer=r,this.cd=i,this.optionValueField="id",this.optionTextField="text",this.optGroupLabelField="label",this.optGroupOptionsField="options",this.multiple=!1,this.allowClear=!1,this.placeholder="",this.noAutoComplete=!1,this.disabled=!1,this.defaultValue=[],this.autoSelectSingleOption=!1,this.autoClearSearch=!1,this.noResultsFound="No results found",this.keepSelectedItems=!1,this.size="default",this.autoActiveOnMouseEnter=!0,this.showOptionNotFoundForEmptyItems=!1,this.isFocused=!1,this.keepSelectMenuOpened=!1,this.autocomplete="off",this.dropDownMenuOtherClasses="",this.noSanitize=!1,this.keyCodeToRemoveSelected="Delete",this.keyCodeToOptionsOpen=["Enter","NumpadEnter"],this.keyCodeToOptionsClose="Escape",this.keyCodeToOptionsSelect=["Enter","NumpadEnter"],this.keyCodeToNavigateFirst="ArrowLeft",this.keyCodeToNavigatePrevious="ArrowUp",this.keyCodeToNavigateNext="ArrowDown",this.keyCodeToNavigateLast="ArrowRight",this.typed=new Ae,this.focus=new Ae,this.blur=new Ae,this.open=new Ae,this.close=new Ae,this.select=new Ae,this.remove=new Ae,this.navigated=new Ae,this.selectionChanges=new Ae,this.optionsOpened=!1,this.actualValue=[],this.subjOptions=new Va([]),this.subjSearchText=new Va(""),this.subjOptionsSelected=new Va([]),this.subjExternalValue=new Va([]),this.subjDefaultValue=new Va([]),this.subjRegisterOnChange=new sr,this._focusToInput=!1,this.asGroup=function(l){return l},this.asOpt=function(l){return l},this.onChange=function(l){return l},this.onTouched=function(){return null},Object.assign(this,o),this.itemsDiffer=t.find([]).create(null),this.defaultValueDiffer=t.find([]).create(null),this.typed.subscribe(function(l){return a.subjSearchText.next(l)}),this.subjOptionsSelected.subscribe(function(l){return a.selectionChanges.emit(l)});var u,s=$s([vu(this.subjExternalValue.pipe(fn(function(l){return u=null===l?[]:[].concat(l)})),this.subjOptionsSelected.pipe(fn(function(l){return l.map(function(c){return c.value})}))),this.subjDefaultValue]).pipe(fn(function(l){var c=ft(l,2),f=c[0],d=c[1],h=Ks()(f,d)?[]:f;return h.length?h:d}),function ax(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wr;return e=null!=e?e:ux,gt(function(t,r){var i,o=!0;t.subscribe(new bt(r,function(a){var u=n(a);(o||!e(i,u))&&(o=!1,i=u,r.next(a))}))})}(function(l,c){return Ks()(l,c)}),pu());$s([s,this.subjRegisterOnChange]).pipe(fn(function(l){return ft(l,1)[0]})).subscribe(function(l){a.actualValue=l,Ks()(l,u)||(u=l,a.onChange(a.multiple?l:l.length?l[0]:null))}),$s([this.subjOptions.pipe(kr(function(l){return dn(l).pipe(kr(function(c){return c instanceof Mo?kd(c):c instanceof So?dn(c.options):Yr}),W_())})),s]).pipe(function px(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vx;return gt(function(t,r){var i=null,o=null,a=null,u=function(){if(i){i.unsubscribe(),i=null;var c=o;o=null,r.next(c)}};function s(){var l=a+e,c=n.now();if(c0&&void 0!==arguments[0]?arguments[0]:{},i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=i?{"form-control-sm input-sm":"small"===this.size,"form-control-lg input-lg":"large"===this.size}:{};return Object.assign(o,r)}},{key:"setBtnSize",value:function(){return{"btn-sm":"small"===this.size,"btn-lg":"large"===this.size}}},{key:"optionsSelected",get:function(){return this.subjOptionsSelected.value}},{key:"mainClicked",value:function(r){r.clickedSelectComponent=this,this.isFocused||(this.isFocused=!0,this.focus.emit())}},{key:"choiceMenuFocus",value:function(r){this.appendTo&&(r.clickedSelectComponent=this)}},{key:"documentClick",value:function(r){r.clickedSelectComponent!==this&&(this.optionsOpened&&(this.optionsClose(),this.cd.detectChanges()),this.isFocused&&(this.isFocused=!1,this.blur.emit()))}},{key:"optionsFilteredFlat",value:function(){var r=this;return this.cacheOptionsFilteredFlat?kd(this.cacheOptionsFilteredFlat):dn(this.optionsFiltered).pipe(kr(function(i){return i instanceof Mo?kd(i):i instanceof So?dn(i.optionsFiltered):Yr}),Z_(function(i){return!i.disabled}),W_(),function gx(e,n,t){var r=Te(e)||n||t?{next:e,error:n,complete:t}:e;return r?gt(function(i,o){var a;null===(a=r.subscribe)||void 0===a||a.call(r);var u=!0;i.subscribe(new bt(o,function(s){var l;null===(l=r.next)||void 0===l||l.call(r,s),o.next(s)},function(){var s;u=!1,null===(s=r.complete)||void 0===s||s.call(r),o.complete()},function(s){var l;u=!1,null===(l=r.error)||void 0===l||l.call(r,s),o.error(s)},function(){var s,l;u&&(null===(s=r.unsubscribe)||void 0===s||s.call(r)),null===(l=r.finalize)||void 0===l||l.call(r)}))}):wr}(function(i){return r.cacheOptionsFilteredFlat=i}))}},{key:"navigateOption",value:function(r){var i=this;this.optionsFilteredFlat().pipe(fn(function(o){var u,a={index:-1,activeOption:null,filteredOptionList:o};switch(r){case pt.first:a.index=0;break;case pt.previous:u=o.indexOf(i.optionActive)-1,a.index=u>=0?u:o.length-1;break;case pt.next:u=o.indexOf(i.optionActive)+1,a.index=u0?s:0}return a.activeOption=o[a.index],a})).subscribe(function(o){return i.optionActivate(o)})}},{key:"ngDoCheck",value:function(){this.itemsDiffer.diff(this.items)&&this.subjOptions.next(this.buildOptions(this.items));var r=this.defaultValue?[].concat(this.defaultValue):[];this.defaultValueDiffer.diff(r)&&this.subjDefaultValue.next(r)}},{key:"ngAfterContentChecked",value:function(){if(this._focusToInput&&this.checkInputVisibility()&&this.inputElRef&&this.inputElRef.nativeElement!==document.activeElement&&(this._focusToInput=!1,this.inputElRef.nativeElement.focus()),this.choiceMenuElRef){var i=this.choiceMenuElRef.nativeElement.querySelector("a.ngx-select__item_active.active");i&&i.offsetHeight>0&&this.ensureVisibleElement(i)}}},{key:"ngOnDestroy",value:function(){this.cd.detach()}},{key:"canClearNotMultiple",value:function(){return this.allowClear&&!!this.subjOptionsSelected.value.length&&(!this.subjDefaultValue.value.length||this.subjDefaultValue.value[0]!==this.actualValue[0])}},{key:"focusToInput",value:function(){this._focusToInput=!0}},{key:"inputKeyDown",value:function(r){var i=[].concat(this.keyCodeToOptionsSelect,this.keyCodeToNavigateFirst,this.keyCodeToNavigatePrevious,this.keyCodeToNavigateNext,this.keyCodeToNavigateLast),o=[].concat(this.keyCodeToOptionsOpen,this.keyCodeToRemoveSelected);if(this.optionsOpened&&-1!==i.indexOf(r.code))switch(r.preventDefault(),r.stopPropagation(),r.code){case[].concat(this.keyCodeToOptionsSelect).indexOf(r.code)+1&&r.code:this.optionSelect(this.optionActive),this.navigateOption(pt.next);break;case this.keyCodeToNavigateFirst:this.navigateOption(pt.first);break;case this.keyCodeToNavigatePrevious:this.navigateOption(pt.previous);break;case this.keyCodeToNavigateLast:this.navigateOption(pt.last);break;case this.keyCodeToNavigateNext:this.navigateOption(pt.next)}else if(!this.optionsOpened&&-1!==o.indexOf(r.code))switch(r.preventDefault(),r.stopPropagation(),r.code){case[].concat(this.keyCodeToOptionsOpen).indexOf(r.code)+1&&r.code:this.optionsOpen();break;case this.keyCodeToRemoveSelected:(this.multiple||this.canClearNotMultiple())&&this.optionRemove(this.subjOptionsSelected.value[this.subjOptionsSelected.value.length-1],r)}}},{key:"trackByOption",value:function(r,i){return i instanceof Mo?i.value:i instanceof So?i.label:i}},{key:"checkInputVisibility",value:function(){return!0===this.multiple||this.optionsOpened&&!this.noAutoComplete}},{key:"inputKeyUp",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1?arguments[1]:void 0;i.code===this.keyCodeToOptionsClose?this.optionsClose():this.optionsOpened&&-1===["ArrowDown","ArrowUp","ArrowLeft","ArrowDown"].indexOf(i.code)?this.typed.emit(r):!this.optionsOpened&&r&&this.optionsOpen(r)}},{key:"inputClick",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.optionsOpened||this.optionsOpen(r)}},{key:"sanitize",value:function(r){return this.noSanitize?r||null:r?this.sanitizer.bypassSecurityTrustHtml(r):null}},{key:"highlightOption",value:function(r){return r.renderText(this.sanitizer,this.inputElRef?this.inputElRef.nativeElement.value:"")}},{key:"optionSelect",value:function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;i&&(i.preventDefault(),i.stopPropagation()),r&&!r.disabled&&(this.subjOptionsSelected.next((this.multiple?this.subjOptionsSelected.value:[]).concat([r])),this.select.emit(r.value),this.keepSelectMenuOpened||this.optionsClose(),this.onTouched())}},{key:"optionRemove",value:function(r,i){!this.disabled&&r&&(i.stopPropagation(),this.subjOptionsSelected.next((this.multiple?this.subjOptionsSelected.value:[]).filter(function(o){return o!==r})),this.remove.emit(r.value))}},{key:"optionActivate",value:function(r){this.optionActive!==r.activeOption&&(!r.activeOption||!r.activeOption.disabled)&&(this.optionActive&&(this.optionActive.active=!1),this.optionActive=r.activeOption,this.optionActive&&(this.optionActive.active=!0),this.navigated.emit(r),this.cd.detectChanges())}},{key:"onMouseEnter",value:function(r){this.autoActiveOnMouseEnter&&this.optionActivate(r)}},{key:"filterOptions",value:function(r,i,o){var a=this,u=new RegExp(K_(r),"i"),s=function(c){return a.searchCallback?a.searchCallback(r,c):(!r||u.test(c.text))&&(!a.multiple||-1===o.indexOf(c))};return i.filter(function(l){if(l instanceof Mo)return s(l);if(l instanceof So){var c=l;return c.filter(function(f){return s(f)}),c.optionsFiltered.length}})}},{key:"ensureVisibleElement",value:function(r){if(this.choiceMenuElRef&&this.cacheElementOffsetTop!==r.offsetTop){this.cacheElementOffsetTop=r.offsetTop;var i=this.choiceMenuElRef.nativeElement;this.cacheElementOffsetTopi.scrollTop+i.clientHeight&&(i.scrollTop=this.cacheElementOffsetTop+r.offsetHeight-i.clientHeight)}}},{key:"showChoiceMenu",value:function(){return this.optionsOpened&&(!!this.subjOptions.value.length||this.showOptionNotFoundForEmptyItems)}},{key:"optionsOpen",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.disabled||(this.optionsOpened=!0,this.subjSearchText.next(r),this.navigateOption(!this.multiple&&this.subjOptionsSelected.value.length?pt.firstSelected:pt.first),this.focusToInput(),this.open.emit(),this.cd.markForCheck())}},{key:"optionsClose",value:function(){this.optionsOpened=!1,this.close.emit(),this.autoClearSearch&&this.multiple&&this.inputElRef&&(this.inputElRef.nativeElement.value=null)}},{key:"buildOptions",value:function(r){var i=this,o=[];return Array.isArray(r)&&r.forEach(function(a){if("object"==typeof a&&null!==a&&hi(a,i.optGroupLabelField)&&hi(a,i.optGroupOptionsField)&&Array.isArray(a[i.optGroupOptionsField])){var s=new So(a[i.optGroupLabelField]);a[i.optGroupOptionsField].forEach(function(c){var f=i.buildOption(c,s);f&&s.options.push(f)}),o.push(s)}else{var l=i.buildOption(a,null);l&&o.push(l)}}),o}},{key:"buildOption",value:function(r,i){var o,a,u;if("string"==typeof r||"number"==typeof r)o=a=r,u=!1;else{if("object"!=typeof r||null===r||!hi(r,this.optionValueField)&&!hi(r,this.optionTextField))return null;o=hi(r,this.optionValueField)?r[this.optionValueField]:r[this.optionTextField],a=hi(r,this.optionTextField)?r[this.optionTextField]:r[this.optionValueField],u=!!hi(r,"disabled")&&r.disabled}return new Mo(o,a,u,r,i)}},{key:"writeValue",value:function(r){this.subjExternalValue.next(r)}},{key:"registerOnChange",value:function(r){this.onChange=r,this.subjRegisterOnChange.next()}},{key:"registerOnTouched",value:function(r){this.onTouched=r}},{key:"setDisabledState",value:function(r){this.disabled=r,this.cd.markForCheck()}}]),n}();return e.\u0275fac=function(t){return new(t||e)(S(bo),S(Xf),S(Ds),S(X_,8))},e.\u0275cmp=Nt({type:e,selectors:[["ngx-select"]],contentQueries:function(t,r,i){var o;1&t&&(Ea(i,Q_,7,Tt),Ea(i,Y_,7,Tt),Ea(i,J_,7,Tt)),2&t&&(Br(o=Hr())&&(r.templateOption=o.first),Br(o=Hr())&&(r.templateSelectedOption=o.first),Br(o=Hr())&&(r.templateOptionNotFound=o.first))},viewQuery:function(t,r){var i;1&t&&(ps(Cx,7),ps(bx,5),ps(wx,5)),2&t&&(Br(i=Hr())&&(r.mainElRef=i.first),Br(i=Hr())&&(r.inputElRef=i.first),Br(i=Hr())&&(r.choiceMenuElRef=i.first))},hostBindings:function(t,r){1&t&&oe("focusin",function(o){return r.documentClick(o)},!1,oc)("click",function(o){return r.documentClick(o)},!1,oc)},inputs:{items:"items",optionValueField:"optionValueField",optionTextField:"optionTextField",optGroupLabelField:"optGroupLabelField",optGroupOptionsField:"optGroupOptionsField",multiple:"multiple",allowClear:"allowClear",placeholder:"placeholder",noAutoComplete:"noAutoComplete",disabled:"disabled",defaultValue:"defaultValue",autoSelectSingleOption:"autoSelectSingleOption",autoClearSearch:"autoClearSearch",noResultsFound:"noResultsFound",keepSelectedItems:"keepSelectedItems",size:"size",searchCallback:"searchCallback",autoActiveOnMouseEnter:"autoActiveOnMouseEnter",showOptionNotFoundForEmptyItems:"showOptionNotFoundForEmptyItems",isFocused:"isFocused",keepSelectMenuOpened:"keepSelectMenuOpened",autocomplete:"autocomplete",dropDownMenuOtherClasses:"dropDownMenuOtherClasses",noSanitize:"noSanitize",appendTo:"appendTo"},outputs:{typed:"typed",focus:"focus",blur:"blur",open:"open",close:"close",select:"select",remove:"remove",navigated:"navigated",selectionChanges:"selectionChanges"},features:[Se([{provide:Ut,useExisting:de(function(){return e}),multi:!0}])],decls:11,vars:12,consts:[[1,"ngx-select","dropdown",3,"tabindex","ngClass","click","focusin","focus","keydown"],["main",""],[3,"ngClass"],["class","ngx-select__selected",4,"ngIf"],["class","ngx-select__selected",3,"click",4,"ngIf"],["type","text","class","ngx-select__search form-control","autocorrect","off","autocapitalize","off","spellcheck","false","role","combobox",3,"ngClass","tabindex","disabled","placeholder","autocomplete","keyup","click",4,"ngIf"],[3,"appendTo","show","selectionChanges","focusin",4,"ngIf"],["defaultTemplateOption",""],["defaultTemplateOptionNotFound",""],[1,"ngx-select__selected"],[1,"ngx-select__toggle","btn","form-control",3,"ngClass","click"],["class","ngx-select__placeholder text-muted",4,"ngIf"],["class","ngx-select__selected-single pull-left float-left",3,"ngClass",4,"ngIf"],[1,"ngx-select__toggle-buttons"],["class","ngx-select__clear btn btn-sm btn-link",3,"ngClass","click",4,"ngIf"],[1,"dropdown-toggle"],[1,"ngx-select__toggle-caret","caret"],[1,"ngx-select__placeholder","text-muted"],[3,"innerHtml"],[1,"ngx-select__selected-single","pull-left","float-left",3,"ngClass"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ngx-select__clear","btn","btn-sm","btn-link",3,"ngClass","click"],[1,"ngx-select__clear-icon"],[1,"ngx-select__selected",3,"click"],[4,"ngFor","ngForOf","ngForTrackBy"],["tabindex","-1",1,"ngx-select__selected-plural","btn","btn-default","btn-secondary","btn-sm","btn-xs",3,"ngClass","click"],[1,"ngx-select__clear","btn","btn-sm","btn-link","pull-right","float-right",3,"ngClass","click"],["type","text","autocorrect","off","autocapitalize","off","spellcheck","false","role","combobox",1,"ngx-select__search","form-control",3,"ngClass","tabindex","disabled","placeholder","autocomplete","keyup","click"],["input",""],[3,"appendTo","show","selectionChanges","focusin"],["role","menu",1,"ngx-select__choices","dropdown-menu",3,"ngClass"],["choiceMenu",""],["class","ngx-select__item-group","role","menuitem",4,"ngFor","ngForOf","ngForTrackBy"],["class","ngx-select__item ngx-select__item_no-found dropdown-header",4,"ngIf"],["role","menuitem",1,"ngx-select__item-group"],["class","divider dropdown-divider",4,"ngIf"],["class","dropdown-header",4,"ngIf"],["href","#","class","ngx-select__item dropdown-item",3,"ngClass","mouseenter","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"divider","dropdown-divider"],[1,"dropdown-header"],["href","#",1,"ngx-select__item","dropdown-item",3,"ngClass","mouseenter","click"],["choiceItem",""],[1,"ngx-select__item","ngx-select__item_no-found","dropdown-header"]],template:function(t,r){1&t&&(b(0,"div",0,1),oe("click",function(o){return r.mainClicked(o)})("focusin",function(o){return r.mainClicked(o)})("focus",function(){return r.focusToInput()})("keydown",function(o){return r.inputKeyDown(o)}),_e(2,"div",2),Ye(3,Tx,8,4,"div",3),Ye(4,Ox,2,2,"div",4),Ye(5,Ix,2,5,"input",5),Ye(6,Ux,5,9,"ngx-select-choices",6),Ye(7,qx,1,1,"ng-template",null,7,hf),Ye(9,zx,1,1,"ng-template",null,8,hf),w()),2&t&&(G("tabindex",r.disabled?-1:0)("ngClass",r.setFormControlSize(hs(7,Wx,!0===r.multiple,r.optionsOpened&&r.optionsFiltered.length),!0===r.multiple)),V(2),G("ngClass",_o(10,$x,r.disabled)),V(1),G("ngIf",!1===r.multiple&&(!r.optionsOpened||r.noAutoComplete)),V(1),G("ngIf",!0===r.multiple),V(1),G("ngIf",r.checkInputVisibility()),V(1),G("ngIf",r.isFocused))},directives:[jf,Uf,Iy,Gf,Dx],styles:['.ngx-select_multiple[_ngcontent-%COMP%]{height:auto;padding:3px 3px 0}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__search[_ngcontent-%COMP%]{background-color:transparent!important;border:none;outline:none;box-shadow:none;height:1.6666em;padding:0;margin-bottom:3px}.ngx-select__disabled[_ngcontent-%COMP%]{background-color:#eceeef;border-radius:4px;position:absolute;width:100%;height:100%;z-index:5;opacity:.6;top:0;left:0;cursor:not-allowed}.ngx-select__toggle[_ngcontent-%COMP%]{outline:0;position:relative;text-align:left!important;color:#333;background-color:#fff;border-color:#ccc;display:inline-flex;align-items:stretch;justify-content:space-between}.ngx-select__toggle[_ngcontent-%COMP%]:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.ngx-select__toggle-buttons[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center}.ngx-select__toggle-caret[_ngcontent-%COMP%]{position:absolute;height:10px;top:50%;right:10px;margin-top:-2px}.ngx-select__placeholder[_ngcontent-%COMP%]{float:left;max-width:100%;text-overflow:ellipsis;overflow:hidden}.ngx-select__clear[_ngcontent-%COMP%]{margin-right:10px;padding:0;border:none}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__clear[_ngcontent-%COMP%]{line-height:normal;line-height:initial;margin-left:5px;margin-right:0;color:#000;opacity:.5}.ngx-select__clear-icon[_ngcontent-%COMP%]{display:inline-block;font-size:inherit;cursor:pointer;position:relative;width:1em;height:.75em;padding:0}.ngx-select__clear-icon[_ngcontent-%COMP%]:before, .ngx-select__clear-icon[_ngcontent-%COMP%]:after{content:"";position:absolute;border-top:3px solid;width:100%;top:50%;left:0;margin-top:-1px}.ngx-select__clear-icon[_ngcontent-%COMP%]:before{transform:rotate(45deg)}.ngx-select__clear-icon[_ngcontent-%COMP%]:after{transform:rotate(-45deg)}.ngx-select__choices[_ngcontent-%COMP%]{width:100%;height:auto;max-height:200px;overflow-x:hidden;margin-top:0;position:absolute}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__choices[_ngcontent-%COMP%]{margin-top:1px}.ngx-select__item[_ngcontent-%COMP%]{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;white-space:nowrap;cursor:pointer;text-decoration:none}.ngx-select__item_disabled[_ngcontent-%COMP%], .ngx-select__item_no-found[_ngcontent-%COMP%]{cursor:default}.ngx-select__item_active[_ngcontent-%COMP%]{color:#fff;outline:0;background-color:#428bca}.ngx-select__selected-single[_ngcontent-%COMP%], .ngx-select__selected-plural[_ngcontent-%COMP%]{display:inline-flex;align-items:center;overflow:hidden}.ngx-select__selected-single[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .ngx-select__selected-plural[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.ngx-select__selected-plural[_ngcontent-%COMP%]{outline:0;margin:0 3px 3px 0}.input-group[_ngcontent-%COMP%] > .dropdown[_ngcontent-%COMP%]{position:static}'],changeDetection:0}),e}(),Zx=function(){var e=function(){function n(){var t=this;g(this,n),this.items=["Amsterdam","Antwerp","Athens","Barcelona","Berlin","Birmingham","Bradford","Bremen","Brussels","Bucharest","Budapest","Cologne","Copenhagen","Dortmund","Dresden","Dublin","D\xfcsseldorf","Essen","Frankfurt","Genoa","Glasgow","Gothenburg","Hamburg","Hannover","Helsinki","Krak\xf3w","Leeds","Leipzig","Lisbon","London","Madrid","Manchester","Marseille","Milan","Munich","M\xe1laga","Naples","Palermo","Paris","Pozna\u0144","Prague","Riga","Rome","Rotterdam","Seville","Sheffield","Sofia","Stockholm","Stuttgart","The Hague","Turin","Valencia","Vienna","Vilnius","Warsaw","Wroc\u0142aw","Zagreb","Zaragoza","\u0141\xf3d\u017a"],this.ngxControl=new Pa,this.inputTyped=function(r,i){return console.log("SingleDemoComponent.inputTyped",r,i)},this.doFocus=function(){return console.log("SingleDemoComponent.doFocus")},this.doBlur=function(){return console.log("SingleDemoComponent.doBlur")},this.doOpen=function(){return console.log("SingleDemoComponent.doOpen")},this.doClose=function(){return console.log("SingleDemoComponent.doClose")},this.doSelect=function(r){return console.log("SingleDemoComponent.doSelect",r)},this.doRemove=function(r){return console.log("SingleDemoComponent.doRemove",r)},this.doSelectOptions=function(r){return console.log("SingleDemoComponent.doSelectOptions",r)},this._ngxDefaultTimeout=setTimeout(function(){t._ngxDefaultInterval=setInterval(function(){var r=Math.floor(Math.random()*(t.items.length-1));t._ngxDefault=t.items[r]},2e3)},2e3)}return p(n,[{key:"ngOnDestroy",value:function(){clearTimeout(this._ngxDefaultTimeout),clearInterval(this._ngxDefaultInterval)}},{key:"doNgxDefault",value:function(){return this._ngxDefault}}]),n}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Nt({type:e,selectors:[["single-demo"]],decls:13,vars:8,consts:[[1,"example-block"],[1,"example-block__item"],["placeholder","No city selected",3,"formControl","allowClear","defaultValue","items","typed","focus","blur","open","close","select","remove","selectionChanges"],[1,"alert","alert-secondary"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(t,r){1&t&&(b(0,"h3"),Y(1,"Select a single city"),w(),b(2,"div",0),b(3,"div",1),b(4,"ngx-select",2),oe("typed",function(o){return r.inputTyped("ngx-select",o)})("focus",function(){return r.doFocus()})("blur",function(){return r.doBlur()})("open",function(){return r.doOpen()})("close",function(){return r.doClose()})("select",function(o){return r.doSelect(o)})("remove",function(o){return r.doRemove(o)})("selectionChanges",function(o){return r.doSelectOptions(o)}),w(),_e(5,"p"),b(6,"div",3),b(7,"pre"),Y(8),Vr(9,"json"),w(),w(),b(10,"div"),b(11,"button",4),oe("click",function(){return r.ngxControl.disabled?r.ngxControl.enable():r.ngxControl.disable()}),Y(12),w(),w(),w(),w()),2&t&&(V(4),G("formControl",r.ngxControl)("allowClear",!0)("defaultValue",r.doNgxDefault())("items",r.items),V(4),on(Lr(9,6,r.ngxControl.value)),V(4),Mt(" ",r.ngxControl.disabled?"Enable":"Disable"," "))},directives:[Ao,di,Ws],pipes:[ci],encapsulation:2}),e}(),Kx=function(){var e=p(function n(){g(this,n),this.items=["Amsterdam","Antwerp","Athens","Barcelona","Berlin","Birmingham","Bradford","Bremen","Brussels","Bucharest","Budapest","Cologne","Copenhagen","Dortmund","Dresden","Dublin","D\xfcsseldorf","Essen","Frankfurt","Genoa","Glasgow","Gothenburg","Hamburg","Hannover","Helsinki","Leeds","Leipzig","Lisbon","\u0141\xf3d\u017a","London","Krak\xf3w","Madrid","M\xe1laga","Manchester","Marseille","Milan","Munich","Naples","Palermo","Paris","Pozna\u0144","Prague","Riga","Rome","Rotterdam","Seville","Sheffield","Sofia","Stockholm","Stuttgart","The Hague","Turin","Valencia","Vienna","Vilnius","Warsaw","Wroc\u0142aw","Zagreb","Zaragoza"],this.ngxValue=[],this.ngxDisabled=!1,this.doSelectOptions=function(t){return console.log("MultipleDemoComponent.doSelectOptions",t)}});return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Nt({type:e,selectors:[["multiple-demo"]],decls:13,vars:9,consts:[[1,"example-block"],[1,"example-block__item"],["placeholder","No city selected",3,"multiple","items","disabled","ngModel","autoClearSearch","ngModelChange","selectionChanges"],[1,"alert","alert-secondary"],[1,"btn","btn-primary",3,"click"]],template:function(t,r){1&t&&(b(0,"h3"),Y(1,"Select multiple cities"),w(),b(2,"div",0),b(3,"div",1),b(4,"ngx-select",2),oe("ngModelChange",function(o){return r.ngxValue=o})("selectionChanges",function(o){return r.doSelectOptions(o)}),w(),_e(5,"p"),b(6,"div",3),b(7,"pre"),Y(8),Vr(9,"json"),w(),w(),b(10,"div"),b(11,"button",4),oe("click",function(){return r.ngxDisabled=!r.ngxDisabled}),Y(12),w(),w(),w(),w()),2&t&&(V(4),G("multiple",!0)("items",r.items)("disabled",r.ngxDisabled)("ngModel",r.ngxValue)("autoClearSearch",!0),V(4),on(Lr(9,7,r.ngxValue)),V(4),Mt(" ",r.ngxDisabled?"Enable":"Disable"," "))},directives:[Ao,di,ko],pipes:[ci],encapsulation:2}),e}(),Qx=function(){var e=p(function n(){g(this,n),this.items=[{id:100,text:"Austria",children:[{id:54,text:"Vienna"}]},{id:200,text:"Belgium",children:[{id:2,text:"Antwerp"},{id:9,text:"Brussels"}]},{id:300,text:"Bulgaria",children:[{id:48,text:"Sofia"}]},{id:400,text:"Croatia",children:[{id:58,text:"Zagreb"}]},{id:500,text:"Czech Republic",children:[{id:42,text:"Prague"}]},{id:600,text:"Denmark",children:[{id:13,text:"Copenhagen"}]},{id:700,text:"England",children:[{id:6,text:"Birmingham"},{id:7,text:"Bradford"},{id:26,text:"Leeds",disabled:!0},{id:30,text:"London"},{id:34,text:"Manchester"},{id:47,text:"Sheffield"}]},{id:800,text:"Finland",children:[{id:25,text:"Helsinki"}]},{id:900,text:"France",children:[{id:35,text:"Marseille"},{id:40,text:"Paris"}]},{id:1e3,text:"Germany",children:[{id:5,text:"Berlin"},{id:8,text:"Bremen"},{id:12,text:"Cologne"},{id:14,text:"Dortmund"},{id:15,text:"Dresden"},{id:17,text:"D\xfcsseldorf"},{id:18,text:"Essen"},{id:19,text:"Frankfurt"},{id:23,text:"Hamburg"},{id:24,text:"Hannover"},{id:27,text:"Leipzig"},{id:37,text:"Munich"},{id:50,text:"Stuttgart"}]},{id:1100,text:"Greece",children:[{id:3,text:"Athens"}]},{id:1200,text:"Hungary",children:[{id:11,text:"Budapest"}]},{id:1300,text:"Ireland",children:[{id:16,text:"Dublin"}]},{id:1400,text:"Italy",children:[{id:20,text:"Genoa"},{id:36,text:"Milan"},{id:38,text:"Naples"},{id:39,text:"Palermo"},{id:44,text:"Rome"},{id:52,text:"Turin"}]},{id:1500,text:"Latvia",children:[{id:43,text:"Riga"}]},{id:1600,text:"Lithuania",children:[{id:55,text:"Vilnius"}]},{id:1700,text:"Netherlands",children:[{id:1,text:"Amsterdam"},{id:45,text:"Rotterdam"},{id:51,text:"The Hague"}]},{id:1800,text:"Poland",children:[{id:29,text:"\u0141\xf3d\u017a"},{id:31,text:"Krak\xf3w"},{id:41,text:"Pozna\u0144"},{id:56,text:"Warsaw"},{id:57,text:"Wroc\u0142aw"}]},{id:1900,text:"Portugal",children:[{id:28,text:"Lisbon"}]},{id:2e3,text:"Romania",children:[{id:10,text:"Bucharest"}]},{id:2100,text:"Scotland",children:[{id:21,text:"Glasgow"}]},{id:2200,text:"Spain",children:[{id:4,text:"Barcelona"},{id:32,text:"Madrid"},{id:33,text:"M\xe1laga"},{id:46,text:"Seville"},{id:53,text:"Valencia"},{id:59,text:"Zaragoza"}]},{id:2300,text:"Sweden",children:[{id:22,text:"Gothenburg"},{id:49,text:"Stockholm"}]}],this.ngxValue=[],this.ngxDisabled=!1});return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Nt({type:e,selectors:[["children-demo"]],decls:13,vars:8,consts:[[1,"example-block"],[1,"example-block__item"],["optionValueField","id","optionTextField","text","optGroupLabelField","text","optGroupOptionsField","children","placeholder","No city selected",3,"allowClear","items","disabled","ngModel","ngModelChange"],[1,"alert","alert-secondary"],[1,"btn","btn-primary",3,"click"]],template:function(t,r){1&t&&(b(0,"h3"),Y(1,"Select a city by country"),w(),b(2,"div",0),b(3,"div",1),b(4,"ngx-select",2),oe("ngModelChange",function(o){return r.ngxValue=o}),w(),_e(5,"p"),b(6,"div",3),b(7,"pre"),Y(8),Vr(9,"json"),w(),w(),b(10,"div"),b(11,"button",4),oe("click",function(){return r.ngxDisabled=!r.ngxDisabled}),Y(12),w(),w(),w(),w()),2&t&&(V(4),G("allowClear",!0)("items",r.items)("disabled",r.ngxDisabled)("ngModel",r.ngxValue),V(4),on(Lr(9,6,r.ngxValue)),V(4),Mt(" ",r.ngxDisabled?"Enable":"Disable"," "))},directives:[Ao,di,ko],pipes:[ci],encapsulation:2}),e}();function Yx(e,n){if(1&e&&(_e(0,"span",7),_e(1,"span",8),Y(2)),2&e){var t=n.$implicit,r=n.text;Rn(Ee().style("background-color:"+t.value)),V(1),G("innerHtml",r,Wi),V(1),Mt(" (",t.data.hex,") ")}}function Jx(e,n){1&e&&Y(0),2&e&&Mt(' "',n.$implicit,'" not found ')}var Sd,Ad,Xx=[{name:"Blue 10",hex:"#C0E6FF"},{name:"Blue 20",hex:"#7CC7FF"},{name:"Blue 30",hex:"#5AAAFA",disabled:!0},{name:"Blue 40",hex:"#5596E6"},{name:"Blue 50",hex:"#4178BE"},{name:"Blue 60",hex:"#325C80"},{name:"Blue 70",hex:"#264A60"},{name:"Blue 80",hex:"#1D3649"},{name:"Blue 90",hex:"#152935"},{name:"Blue 100",hex:"#010205"},{name:"Green 10",hex:"#C8F08F"},{name:"Green 20",hex:"#B4E051"},{name:"Green 30",hex:"#8CD211"},{name:"Green 40",hex:"#5AA700"},{name:"Green 50",hex:"#4B8400"},{name:"Green 60",hex:"#2D660A"},{name:"Green 70",hex:"#144D14"},{name:"Green 80",hex:"#0A3C02"},{name:"Green 90",hex:"#0C2808"},{name:"Green 100",hex:"#010200"},{name:"Red 10",hex:"#FFD2DD"},{name:"Red 20",hex:"#FFA5B4"},{name:"Red 30",hex:"#FF7D87"},{name:"Red 40",hex:"#FF5050"},{name:"Red 50",hex:"#E71D32"},{name:"Red 60",hex:"#AD1625"},{name:"Red 70",hex:"#8C101C"},{name:"Red 80",hex:"#6E0A1E"},{name:"Red 90",hex:"#4C0A17"},{name:"Red 100",hex:"#040001"},{name:"Yellow 10",hex:"#FDE876"},{name:"Yellow 20",hex:"#FDD600"},{name:"Yellow 30",hex:"#EFC100"},{name:"Yellow 40",hex:"#BE9B00"},{name:"Yellow 50",hex:"#8C7300"},{name:"Yellow 60",hex:"#735F00"},{name:"Yellow 70",hex:"#574A00"},{name:"Yellow 80",hex:"#3C3200"},{name:"Yellow 90",hex:"#281E00"},{name:"Yellow 100",hex:"#020100"}],eF=function(){var e=function(){function n(t){g(this,n),this.sanitizer=t,this.items=Xx,this.ngxValue=[],this.ngxDisabled=!1}return p(n,[{key:"style",value:function(r){return this.sanitizer.bypassSecurityTrustStyle(r)}}]),n}();return e.\u0275fac=function(t){return new(t||e)(S(Xf))},e.\u0275cmp=Nt({type:e,selectors:[["rich-demo"]],decls:15,vars:8,consts:[[1,"example-block"],[1,"example-block__item"],["optionValueField","hex","optionTextField","name","placeholder","No city selected",3,"allowClear","items","disabled","ngModel","ngModelChange"],["ngx-select-option","","ngx-select-option-selected",""],["ngx-select-option-not-found",""],[1,"alert","alert-secondary"],[1,"btn","btn-primary",3,"click"],[1,"color-box"],[3,"innerHtml"]],template:function(t,r){1&t&&(b(0,"h3"),Y(1,"Select a color"),w(),b(2,"div",0),b(3,"div",1),b(4,"ngx-select",2),oe("ngModelChange",function(o){return r.ngxValue=o}),Ye(5,Yx,3,4,"ng-template",3),Ye(6,Jx,1,1,"ng-template",4),w(),_e(7,"p"),b(8,"div",5),b(9,"pre"),Y(10),Vr(11,"json"),w(),w(),b(12,"div"),b(13,"button",6),oe("click",function(){return r.ngxDisabled=!r.ngxDisabled}),Y(14),w(),w(),w(),w()),2&t&&(V(4),G("allowClear",!0)("items",r.items)("disabled",r.ngxDisabled)("ngModel",r.ngxValue),V(6),on(Lr(11,6,r.ngxValue)),V(4),Mt(" ",r.ngxDisabled?"Enable":"Disable"," "))},directives:[Ao,di,ko,Q_,Y_,J_],pipes:[ci],styles:[".color-box{display:inline-block;height:14px;width:14px;margin-right:4px;border:1px solid #000}\n"],encapsulation:2}),e}(),tF=function(){var e=p(function n(){var t=this;g(this,n),this._items=["Amsterdam","Antwerp","Athens","Barcelona","Berlin","Birmingham","Bradford","Bremen","Brussels","Bucharest","Budapest","Cologne","Copenhagen","Dortmund","Dresden","Dublin","D\xfcsseldorf","Essen","Frankfurt","Genoa","Glasgow","Gothenburg","Hamburg","Hannover","Helsinki","Krak\xf3w","Leeds","Leipzig","Lisbon","London","Madrid","Manchester","Marseille","Milan","Munich","M\xe1laga","Naples","Palermo","Paris","Pozna\u0144","Prague","Riga","Rome","Rotterdam","Seville","Sheffield","Sofia","Stockholm","Stuttgart","The Hague","Turin","Valencia","Vienna","Vilnius","Warsaw","Wroc\u0142aw","Zagreb","Zaragoza","\u0141\xf3d\u017a"],this.items=[],this.ngxValue=[],this.ngxDisabled=!1;for(var r=[],i=function(u){t._items.forEach(function(s){return r.push(u+" "+s)})},o=1;o<=20;o++)i(o);this.items=r});return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Nt({type:e,selectors:[["no-autocomplete-demo"]],decls:13,vars:10,consts:[[1,"example-block"],[1,"example-block__item"],["placeholder","No city selected",3,"allowClear","items","noAutoComplete","disabled","ngModel","ngModelChange"],[1,"alert","alert-secondary"],[1,"btn","btn-primary",3,"click"]],template:function(t,r){1&t&&(b(0,"h3"),Y(1),w(),b(2,"div",0),b(3,"div",1),b(4,"ngx-select",2),oe("ngModelChange",function(o){return r.ngxValue=o}),w(),_e(5,"p"),b(6,"div",3),b(7,"pre"),Y(8),Vr(9,"json"),w(),w(),b(10,"div"),b(11,"button",4),oe("click",function(){return r.ngxDisabled=!r.ngxDisabled}),Y(12),w(),w(),w(),w()),2&t&&(V(1),Mt("Select a single city with ",r.items.length," items"),V(3),G("allowClear",!0)("items",r.items)("noAutoComplete",!0)("disabled",r.ngxDisabled)("ngModel",r.ngxValue),V(4),on(Lr(9,8,r.ngxValue)),V(4),Mt(" ",r.ngxDisabled?"Enable":"Disable"," "))},directives:[Ao,di,ko],pipes:[ci],encapsulation:2}),e}(),nF=function(){var e=p(function n(){g(this,n),this.items=["Amsterdam","Antwerp","Athens","Barcelona","Berlin","Birmingham","Bradford","Bremen","Brussels","Bucharest","Budapest","Cologne","Copenhagen"],this.ngxControl1=new Pa,this.ngxControl2=new Pa});return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Nt({type:e,selectors:[["append-to-demo"]],decls:29,vars:12,consts:[[1,"example-block"],[1,"example-block__item"],[1,"card",2,"overflow","hidden","height","80px"],["placeholder","No city selected",3,"formControl","items"],[1,"alert","alert-secondary"],["type","button",1,"btn","btn-primary",3,"click"],["placeholder","No city selected","appendTo","body",3,"formControl","items"]],template:function(t,r){1&t&&(b(0,"h3"),Y(1,"Container with fixed height and hidden overflow"),w(),b(2,"div",0),b(3,"div",1),b(4,"p"),Y(5,"Default"),w(),b(6,"div",2),_e(7,"ngx-select",3),w(),_e(8,"p"),b(9,"div",4),b(10,"pre"),Y(11),Vr(12,"json"),w(),w(),b(13,"div"),b(14,"button",5),oe("click",function(){return r.ngxControl1.disabled?r.ngxControl1.enable():r.ngxControl1.disable()}),Y(15),w(),w(),w(),b(16,"div",1),b(17,"p"),Y(18,"Appended to body"),w(),b(19,"div",2),_e(20,"ngx-select",6),w(),_e(21,"p"),b(22,"div",4),b(23,"pre"),Y(24),Vr(25,"json"),w(),w(),b(26,"div"),b(27,"button",5),oe("click",function(){return r.ngxControl2.disabled?r.ngxControl2.enable():r.ngxControl2.disable()}),Y(28),w(),w(),w(),w()),2&t&&(V(7),G("formControl",r.ngxControl1)("items",r.items),V(4),on(Lr(12,8,r.ngxControl1.value)),V(4),Mt(" ",r.ngxControl1.disabled?"Enable":"Disable"," "),V(5),G("formControl",r.ngxControl2)("items",r.items),V(4),on(Lr(25,10,r.ngxControl2.value)),V(4),Mt(" ",r.ngxControl2.disabled?"Enable":"Disable"," "))},directives:[Ao,di,Ws],pipes:[ci],encapsulation:2}),e}(),rF=null===(Sd=L(693))||void 0===Sd?void 0:Sd.default,iF={single:{heading:"Single",ts:L(276),html:L(726)},multiple:{heading:"Multiple",ts:L(864),html:L(136)},children:{heading:"Children",ts:L(287),html:L(931)},rich:{heading:"Rich",ts:L(821),html:L(429)},noAutoComplete:{heading:"noAutoComplete",ts:L(549),html:L(952)},appendTo:{heading:"appendTo",ts:L(745),html:L(124)}},oF=function(){var e=p(function n(){g(this,n),this.currentHeading="Single",this.tabDesc=iF,this.doc=rF});return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Nt({type:e,selectors:[["select-section"]],decls:24,vars:7,consts:[["heading","Single"],[3,"desc"],["heading","Multiple"],["heading","Children"],["heading","Rich"],["heading","No autocomplete"],["heading","Append to element"],[1,"card","card-block","panel","panel-default","panel-body"],[1,"card-body","doc-api",3,"innerHTML"]],template:function(t,r){1&t&&(b(0,"section"),b(1,"tabset"),b(2,"tab",0),b(3,"sample-section",1),_e(4,"single-demo"),w(),w(),b(5,"tab",2),b(6,"sample-section",1),_e(7,"multiple-demo"),w(),w(),b(8,"tab",3),b(9,"sample-section",1),_e(10,"children-demo"),w(),w(),b(11,"tab",4),b(12,"sample-section",1),_e(13,"rich-demo"),w(),w(),b(14,"tab",5),b(15,"sample-section",1),_e(16,"no-autocomplete-demo"),w(),w(),b(17,"tab",6),b(18,"sample-section",1),_e(19,"append-to-demo"),w(),w(),w(),b(20,"h2"),Y(21,"Documentation"),w(),b(22,"div",7),_e(23,"div",8),w(),w()),2&t&&(V(3),G("desc",r.tabDesc.single),V(3),G("desc",r.tabDesc.multiple),V(3),G("desc",r.tabDesc.children),V(3),G("desc",r.tabDesc.rich),V(3),G("desc",r.tabDesc.noAutoComplete),V(3),G("desc",r.tabDesc.appendTo),V(5),G("innerHTML",r.doc,Wi))},directives:[ed,Ky,GA,Zx,Kx,Qx,eF,tF,nF],styles:["[_nghost-%COMP%]{display:block}"]}),e}(),aF=L(147),uF=null===(Ad=L(151))||void 0===Ad?void 0:Ad.default,sF=function(){var e=function(){function n(){g(this,n),this.gettingStarted=uF,this.p=aF}return p(n,[{key:"ngAfterContentInit",value:function(){setTimeout(function(){"undefined"!=typeof PR&&PR.prettyPrint()},150)}}]),n}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Nt({type:e,selectors:[["app-demo"]],decls:33,vars:2,consts:[[1,"bd-pageheader"],[1,"container"],["href","https://getbootstrap.com/docs/3.3/","target","_blank",1,"badge","badge-light"],["href","https://getbootstrap.com/","target","_blank",1,"badge","badge-light"],["href","https://github.com/optimistex/ngx-select-ex",1,"btn","btn-primary"],[1,"row"],[1,"col-lg-1"],["src","https://ghbtns.com/github-btn.html?user=optimistex&repo=ngx-select-ex&type=star&count=true","frameborder","0","scrolling","0","width","170px","height","20px"],["src","https://ghbtns.com/github-btn.html?user=optimistex&repo=ngx-select-ex&type=fork&count=true","frameborder","0","scrolling","0","width","170px","height","20px"],["id","getting-started",3,"innerHtml"],[1,"footer"],[1,"text-muted","text-center"],["href","https://github.com/optimistex/ngx-select-ex"],["href","https://github.com/optimistex"]],template:function(t,r){1&t&&(b(0,"main",0),b(1,"div",1),b(2,"h1"),Y(3),w(),b(4,"p"),Y(5,"Native Angular2 component for Select"),w(),b(6,"p"),Y(7," Compatible with "),b(8,"a",2),Y(9,"Bootstrap 3"),w(),Y(10," and "),b(11,"b"),b(12,"a",3),Y(13,"Bootstrap 4"),w(),w(),w(),b(14,"a",4),Y(15,"View on GitHub"),w(),b(16,"div",5),b(17,"div",6),_e(18,"iframe",7),w(),b(19,"div",6),_e(20,"iframe",8),w(),w(),w(),w(),b(21,"div",1),_e(22,"section",9),_e(23,"select-section"),w(),b(24,"footer",10),b(25,"div",1),b(26,"p",11),b(27,"a",12),Y(28,"ngx-select-ex"),w(),Y(29," is maintained by "),b(30,"a",13),Y(31,"optimistex"),w(),Y(32,"."),w(),w(),w()),2&t&&(V(3),Mt("ngx-select-ex v",null==r.p?null:r.p.version,""),V(19),G("innerHtml",r.gettingStarted,Wi))},directives:[oF],styles:[""]}),e}(),lF=function(){var e=function(){function n(){g(this,n)}return p(n,null,[{key:"forRoot",value:function(r){return{ngModule:n,providers:[{provide:X_,useValue:r}]}}}]),n}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=hn({type:e}),e.\u0275inj=Qt({imports:[[Os]]}),e}(),cF={provide:Ut,useExisting:de(function(){return fF}),multi:!0},fF=function(){var e=function(){function n(){g(this,n),this.btnCheckboxTrue=!0,this.btnCheckboxFalse=!1,this.state=!1,this.isDisabled=!1,this.onChange=Function.prototype,this.onTouched=Function.prototype}return p(n,[{key:"onClick",value:function(){this.isDisabled||(this.toggle(!this.state),this.onChange(this.value))}},{key:"ngOnInit",value:function(){this.toggle(this.trueValue===this.value)}},{key:"trueValue",get:function(){return void 0===this.btnCheckboxTrue||this.btnCheckboxTrue}},{key:"falseValue",get:function(){return void 0!==this.btnCheckboxFalse&&this.btnCheckboxFalse}},{key:"toggle",value:function(r){this.state=r,this.value=this.state?this.trueValue:this.falseValue}},{key:"writeValue",value:function(r){this.state=this.trueValue===r,this.value=r?this.trueValue:this.falseValue}},{key:"setDisabledState",value:function(r){this.isDisabled=r}},{key:"registerOnChange",value:function(r){this.onChange=r}},{key:"registerOnTouched",value:function(r){this.onTouched=r}}]),n}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=U({type:e,selectors:[["","btnCheckbox",""]],hostVars:3,hostBindings:function(t,r){1&t&&oe("click",function(){return r.onClick()}),2&t&&(kt("aria-pressed",r.state),Pn("active",r.state))},inputs:{btnCheckboxTrue:"btnCheckboxTrue",btnCheckboxFalse:"btnCheckboxFalse"},features:[Se([cF])]}),e}(),dF={provide:Ut,useExisting:de(function(){return eD}),multi:!0},eD=function(){var e=function(){function n(t,r,i,o){g(this,n),this.el=t,this.cdr=r,this.renderer=i,this.group=o,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.uncheckable=!1,this.role="radio",this._disabled=!1,this._hasFocus=!1}return p(n,[{key:"value",get:function(){return this.group?this.group.value:this._value},set:function(r){this.group?this.group.value=r:(this._value=r,this._onChange(r))}},{key:"disabled",get:function(){return this._disabled},set:function(r){this.setDisabledState(r)}},{key:"controlOrGroupDisabled",get:function(){return!!(this.disabled||this.group&&this.group.disabled)||void 0}},{key:"hasDisabledClass",get:function(){return this.controlOrGroupDisabled&&!this.isActive}},{key:"isActive",get:function(){return this.btnRadio===this.value}},{key:"tabindex",get:function(){if(!this.controlOrGroupDisabled)return this.isActive||null==this.group?0:-1}},{key:"hasFocus",get:function(){return this._hasFocus}},{key:"toggleIfAllowed",value:function(){!this.canToggle()||(this.value=this.uncheckable&&this.btnRadio===this.value?void 0:this.btnRadio)}},{key:"onSpacePressed",value:function(r){this.toggleIfAllowed(),r.preventDefault()}},{key:"focus",value:function(){this.el.nativeElement.focus()}},{key:"onFocus",value:function(){this._hasFocus=!0}},{key:"onBlur",value:function(){this._hasFocus=!1,this.onTouched()}},{key:"canToggle",value:function(){return!this.controlOrGroupDisabled&&(this.uncheckable||this.btnRadio!==this.value)}},{key:"ngOnChanges",value:function(r){"uncheckable"in r&&(this.uncheckable=!1!==this.uncheckable&&void 0!==this.uncheckable)}},{key:"_onChange",value:function(r){this.group?this.group.value=r:(this.onTouched(),this.onChange(r))}},{key:"writeValue",value:function(r){this.value=r,this.cdr.markForCheck()}},{key:"registerOnChange",value:function(r){this.onChange=r}},{key:"registerOnTouched",value:function(r){this.onTouched=r}},{key:"setDisabledState",value:function(r){this._disabled=r,r?this.renderer.setAttribute(this.el.nativeElement,"disabled","disabled"):this.renderer.removeAttribute(this.el.nativeElement,"disabled")}}]),n}();return e.\u0275fac=function(t){return new(t||e)(S(At),S(Ds),S(Ln),S(de(function(){return tD}),8))},e.\u0275dir=U({type:e,selectors:[["","btnRadio",""]],hostVars:8,hostBindings:function(t,r){1&t&&oe("click",function(){return r.toggleIfAllowed()})("keydown.space",function(o){return r.onSpacePressed(o)})("focus",function(){return r.onFocus()})("blur",function(){return r.onBlur()}),2&t&&(kt("aria-disabled",r.controlOrGroupDisabled)("aria-checked",r.isActive)("role",r.role)("tabindex",r.tabindex),Pn("disabled",r.hasDisabledClass)("active",r.isActive))},inputs:{btnRadio:"btnRadio",uncheckable:"uncheckable",value:"value",disabled:"disabled"},features:[Se([dF]),gn]}),e}(),hF={provide:Ut,useExisting:de(function(){return tD}),multi:!0},tD=function(){var e=function(){function n(t){g(this,n),this.cdr=t,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.role="radiogroup",this._disabled=!1}return p(n,[{key:"value",get:function(){return this._value},set:function(r){this._value=r,this.onChange(r)}},{key:"disabled",get:function(){return this._disabled}},{key:"tabindex",get:function(){return this._disabled?null:0}},{key:"writeValue",value:function(r){this._value=r,this.cdr.markForCheck()}},{key:"registerOnChange",value:function(r){this.onChange=r}},{key:"registerOnTouched",value:function(r){this.onTouched=r}},{key:"setDisabledState",value:function(r){this.radioButtons&&(this._disabled=r,this.radioButtons.forEach(function(i){i.setDisabledState(r)}),this.cdr.markForCheck())}},{key:"onFocus",value:function(){if(!this._disabled){var r=this.getActiveOrFocusedRadio();if(r)return void r.focus();if(this.radioButtons){var i=this.radioButtons.find(function(o){return!o.disabled});i&&i.focus()}}}},{key:"onBlur",value:function(){this.onTouched&&this.onTouched()}},{key:"selectNext",value:function(r){this.selectInDirection("next"),r.preventDefault()}},{key:"selectPrevious",value:function(r){this.selectInDirection("previous"),r.preventDefault()}},{key:"selectInDirection",value:function(r){if(!this._disabled){var o=this.getActiveOrFocusedRadio();if(o&&this.radioButtons)for(var a=this.radioButtons.toArray(),u=a.indexOf(o),s=i(u,a);s!==u;s=i(s,a))if(a[s].canToggle()){a[s].toggleIfAllowed(),a[s].focus();break}}function i(l,c){var d=(l+("next"===r?1:-1))%c.length;return d<0&&(d=c.length-1),d}}},{key:"getActiveOrFocusedRadio",value:function(){if(this.radioButtons)return this.radioButtons.find(function(r){return r.isActive})||this.radioButtons.find(function(r){return r.hasFocus})}}]),n}();return e.\u0275fac=function(t){return new(t||e)(S(Ds))},e.\u0275dir=U({type:e,selectors:[["","btnRadioGroup",""]],contentQueries:function(t,r,i){var o;1&t&&Ea(i,eD,4),2&t&&Br(o=Hr())&&(r.radioButtons=o)},hostVars:2,hostBindings:function(t,r){1&t&&oe("focus",function(){return r.onFocus()})("blur",function(){return r.onBlur()})("keydown.ArrowRight",function(o){return r.selectNext(o)})("keydown.ArrowDown",function(o){return r.selectNext(o)})("keydown.ArrowLeft",function(o){return r.selectPrevious(o)})("keydown.ArrowUp",function(o){return r.selectPrevious(o)}),2&t&&kt("role",r.role)("tabindex",r.tabindex)},features:[Se([hF])]}),e}(),vF=function(){var e=function(){function n(){g(this,n)}return p(n,null,[{key:"forRoot",value:function(){return{ngModule:n,providers:[]}}}]),n}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=hn({type:e}),e.\u0275inj=Qt({}),e}(),pF=function(){var e=p(function n(){g(this,n)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=hn({type:e,bootstrap:[sF]}),e.\u0275inj=Qt({providers:[],imports:[[kA,Os,rx,ix,lF,HA.forRoot(),vF.forRoot()]]}),e}();(function sM(){false})(),wA().bootstrapModule(pF).catch(function(e){return console.error(e)})},222:function(De,j,L){De=L.nmd(De);var qt="__lodash_hash_undefined__",p=9007199254740991,g="[object Arguments]",zt="[object Array]",_r="[object Boolean]",kn="[object Date]",ze="[object Error]",vi="[object Function]",Wt="[object Map]",et="[object Number]",It="[object Object]",un="[object Promise]",ft="[object RegExp]",sn="[object Set]",ln="[object String]",Wr="[object WeakMap]",Re="[object ArrayBuffer]",at="[object DataView]",ke=/^\[object .+?Constructor\]$/,$e=/^(?:0|[1-9]\d*)$/,ee={};ee["[object Float32Array]"]=ee["[object Float64Array]"]=ee["[object Int8Array]"]=ee["[object Int16Array]"]=ee["[object Int32Array]"]=ee["[object Uint8Array]"]=ee["[object Uint8ClampedArray]"]=ee["[object Uint16Array]"]=ee["[object Uint32Array]"]=!0,ee[g]=ee[zt]=ee[Re]=ee[_r]=ee[at]=ee[kn]=ee[ze]=ee[vi]=ee[Wt]=ee[et]=ee[It]=ee[ft]=ee[sn]=ee[ln]=ee[Wr]=!1;var He="object"==typeof global&&global&&global.Object===Object&&global,Un="object"==typeof self&&self&&self.Object===Object&&self,dt=He||Un||Function("return this")(),cn=j&&!j.nodeType&&j,gi=cn&&De&&!De.nodeType&&De,qn=gi&&gi.exports===cn,br=qn&&He.process,Ga=function(){try{return br&&br.binding&&br.binding("util")}catch(v){}}(),mi=Ga&&Ga.isTypedArray;function Ua(v,y){for(var E=-1,N=null==v?0:v.length;++Ett))return!1;var Ne=te.get(v);if(Ne&&te.get(y))return Ne==y;var Pt=-1,Zt=!0,vt=2&E?new wi:void 0;for(te.set(v,y),te.set(y,v);++Pt-1},Wn.prototype.set=function nu(v,y){var E=this.__data__,N=Ei(E,v);return N<0?(++this.size,E.push([v,y])):E[N][1]=y,this},fr.prototype.clear=function ru(){this.size=0,this.__data__={hash:new cr,map:new(Qr||Wn),string:new cr}},fr.prototype.delete=function iu(v){var y=Mi(this,v).delete(v);return this.size-=y?1:0,y},fr.prototype.get=function ou(v){return Mi(this,v).get(v)},fr.prototype.has=function au(v){return Mi(this,v).has(v)},fr.prototype.set=function $n(v,y){var E=Mi(this,v),N=E.size;return E.set(v,y),this.size+=E.size==N?0:1,this},wi.prototype.add=wi.prototype.push=function tl(v){return this.__data__.set(v,qt),this},wi.prototype.has=function nl(v){return this.__data__.has(v)},Zn.prototype.clear=function uu(){this.__data__=new Wn,this.size=0},Zn.prototype.delete=function rl(v){var y=this.__data__,E=y.delete(v);return this.size=y.size,E},Zn.prototype.get=function il(v){return this.__data__.get(v)},Zn.prototype.has=function Mn(v){return this.__data__.has(v)},Zn.prototype.set=function ol(v,y){var E=this.__data__;if(E instanceof Wn){var N=E.__data__;if(!Qr||N.length<199)return N.push([v,y]),this.size=++E.size,this;E=this.__data__=new fr(N)}return E.set(v,y),this.size=E.size,this};var sl=Js?function(v){return null==v?[]:(v=Object(v),function yi(v,y){for(var E=-1,N=null==v?0:v.length,Ce=0,te=[];++E-1&&v%1==0&&v-1&&v%1==0&&v<=p}function se(v){var y=typeof v;return null!=v&&("object"==y||"function"==y)}function dr(v){return null!=v&&"object"==typeof v}var W=mi?function Qs(v){return function(y){return v(y)}}(mi):function Ro(v){return dr(v)&&fl(v.length)&&!!ee[ki(v)]};function ht(v){return function cl(v){return null!=v&&fl(v.length)&&!Lo(v)}(v)?function kr(v,y){var E=Sr(v),N=!E&&me(v),Ce=!E&&!N&&de(v),te=!E&&!N&&!Ce&&W(v),ge=E||N||Ce||te,tt=ge?function Fo(v,y){for(var E=-1,N=Array(v);++E=0;--X){var K=this.tryEntries[X],ke=K.completion;if("root"===K.tryLoc)return B("end");if(K.tryLoc<=this.prev){var $e=qt.call(K,"catchLoc"),ee=qt.call(K,"finallyLoc");if($e&&ee){if(this.prev=0;--B){var X=this.tryEntries[B];if(X.tryLoc<=this.prev&&qt.call(X,"finallyLoc")&&this.prev=0;--x){var B=this.tryEntries[x];if(B.finallyLoc===A)return this.complete(B.completion,B.afterLoc),$r(B),et}},catch:function(A){for(var x=this.tryEntries.length-1;x>=0;--x){var B=this.tryEntries[x];if(B.tryLoc===A){var X=B.completion;if("throw"===X.type){var K=X.arg;$r(B)}return K}}throw new Error("illegal catch attempt")},delegateYield:function(A,x,B){return this.delegate={iterator:Te(A),resultName:x,nextLoc:B},"next"===this.method&&(this.arg=ue),et}},L}(De.exports);try{regeneratorRuntime=j}catch(L){"object"==typeof globalThis?globalThis.regeneratorRuntime=j:Function("r","regeneratorRuntime = r")(j)}},757:function(De,j,L){De.exports=L(854)},693:function(De,j,L){"use strict";L.r(j),j.default='

Usage

  1. Install ngx-select-ex through npm package manager using the following command:

     npm i ngx-select-ex --save

    For usage with Angular 4 install using the following command:

     npm i ngx-select-ex@ng4 --save
  2. Add NgxSelectModule into your AppModule class. app.module.ts would look like this:

     import {NgModule} from '@angular/core';\n import {BrowserModule} from '@angular/platform-browser';\n import {AppComponent} from './app.component';\n import { NgxSelectModule } from 'ngx-select-ex';\n\n @NgModule({\n   imports: [BrowserModule, NgxSelectModule],\n   declarations: [AppComponent],\n   bootstrap: [AppComponent],\n })\n export class AppModule {\n }

    If you want to change the default options then use next code:

     import {NgModule} from '@angular/core';\n import {BrowserModule} from '@angular/platform-browser';\n import {AppComponent} from './app.component';\n import { NgxSelectModule, INgxSelectOptions } from 'ngx-select-ex';\n\n const CustomSelectOptions: INgxSelectOptions = { // Check the interface for more options\n     optionValueField: 'id',\n     optionTextField: 'name'\n };\n\n @NgModule({\n   imports: [BrowserModule, NgxSelectModule.forRoot(CustomSelectOptions)],\n   declarations: [AppComponent],\n   bootstrap: [AppComponent],\n })\n export class AppModule {\n }
  3. Include Bootstrap styles. For example add to your index.html

     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
  4. Add the tag <ngx-select> into some html

     <ngx-select [items]="items" [(ngModel)]="itemId"></ngx-select>
  5. More information regarding of using ngx-select-ex is located in demo.

API

Any item can be disabled for prevent selection. For disable an item add the property disabled to the item.

Input Type Default Description
[items] any[] [] Items array. Should be an array of objects with id and text properties. As convenience, you may also pass an array of strings, in which case the same string is used for both the ID and the text. Items may be nested by adding a options property to any item, whose value should be another array of items. Items that have children may omit to have an ID.
optionValueField string 'id' Provide an opportunity to change the name an id property of objects in the items
optionTextField string 'text' Provide an opportunity to change the name a text property of objects in the items
optGroupLabelField string 'label' Provide an opportunity to change the name a label property of objects with an options property in the items
optGroupOptionsField string 'options' Provide an opportunity to change the name of an options property of objects in the items
[multiple] boolean false Mode of this component. If set true user can select more than one option
[allowClear] boolean false Set to true to allow the selection to be cleared. This option only applies to single-value inputs
[placeholder] string '' Set to true Placeholder text to display when the element has no focus and selected items
[noAutoComplete] boolean false Set to true to hide the search input. This option only applies to single-value inputs
[keepSelectedItems] boolean false Storing the selected items when the item list is changed
[disabled] boolean false When true, it specifies that the component should be disabled
[defaultValue] any[] [] Use to set default value
autoSelectSingleOption boolean false Auto select a non disabled single option
autoClearSearch boolean false Auto clear a search text after select an option. Has effect for multiple = true
noResultsFound string 'No results found' The default text showed when a search has no results
size 'small'/'default'/'large' 'default' Adding bootstrap classes: form-control-sm, input-sm, form-control-lg input-lg, btn-sm, btn-lg
searchCallback (search: string, item: INgxSelectOption) => boolean null The callback function for custom filtering the select list
autoActiveOnMouseEnter boolean true Automatically activate item when mouse enter on it
isFocused boolean false Makes the component focused
keepSelectMenuOpened boolean false Keeps the select menu opened
autocomplete string 'off' Sets an autocomplete value for the input field
dropDownMenuOtherClasses string '' Add css classes to the element with dropdown-menu class. For example dropdown-menu-right
showOptionNotFoundForEmptyItems boolean false Shows the "Not Found" menu option in case of out of items at all
noSanitize boolean false Disables auto mark an HTML as safe. Turn it on for safety from XSS if you render untrusted content in the options
appendTo string null Append dropdown menu to any element using css selector
Output Description
(typed) Fired on changing search input. Returns string with that value.
(focus) Fired on select focus
(blur) Fired on select blur
(open) Fired on select dropdown open
(close) Fired on select dropdown close
(select) Fired on an item selected by user. Returns value of the selected item.
(remove) Fired on an item removed by user. Returns value of the removed item.
(navigated) Fired on navigate by the dropdown list. Returns: INgxOptionNavigated.
(selectionChanges) Fired on change selected options. Returns: INgxSelectOption[].

Warning! Although the component contains the select and the remove events, the better solution is using valueChanges of the FormControl.

import {Component} from '@angular/core';\nimport {FormControl} from '@angular/forms';\n\n@Component({\n    selector: 'app-example',\n    template: `<ngx-select [items]="['111', '222']" [formControl]="selectControl"></ngx-select>`\n})\nclass ExampleComponent {\n    public selectControl = new FormControl();\n\n    constructor() {\n        this.selectControl.valueChanges.subscribe(value => console.log(value));\n    }\n}

Styles and customization

Currently, the component contains CSS classes named within BEM Methodology. As well it contains the "Bootstrap classes". Recommended use BEM classes for style customization.

List of styles for customization:

  • ngx-select - Main class of the component.
  • ngx-select_multiple - Modifier of the multiple mode. It's available when the property multiple is true.
  • ngx-select__disabled - Layer for the disabled mode.
  • ngx-select__selected - The common container for displaying selected items.
  • ngx-select__toggle - The toggle for single mode. It's available when the property multiple is false.
  • ngx-select__placeholder - The placeholder item. It's available when the property multiple is false.
  • ngx-select__selected-single - The selected item with single mode. It's available when the property multiple is false.
  • ngx-select__selected-plural - The multiple selected item. It's available when the property multiple is true.
  • ngx-select__allow-clear - The indicator that the selected single item can be removed. It's available while properties the multiple is false and the allowClear is true.
  • ngx-select__toggle-buttons - The container of buttons such as the clear and the toggle.
  • ngx-select__toggle-caret - The drop-down button of the single mode. It's available when the property multiple is false.
  • ngx-select__clear - The button clear.
  • ngx-select__clear-icon - The cross icon.
  • ngx-select__search - The input field for full text lives searching.
  • ngx-select__choices - The common container of items.
  • ngx-select__item-group - The group of items.
  • ngx-select__item - An item.
  • ngx-select__item_disabled - Modifier of a disabled item.
  • ngx-select__item_active - Modifier of the activated item.

Templates

For extended rendering customisation you are can use the ng-template:

<ngx-select [items]="items" optionValueField="hex" optionTextField="name" [(ngModel)]="ngxValue">\n\n    <ng-template ngx-select-option-selected let-option let-text="text">\n        <span class="color-box" [style]="style('background-color:' + option.value)"></span>\n        <span [innerHtml]="text"></span>\n        ({{option.data.hex}})\n    </ng-template>\n\n    <ng-template ngx-select-option let-option let-text="text">\n        <span class="color-box" [style]="style('background-color:' + option.value)"></span>\n        <span [innerHtml]="text"></span>\n        ({{option.data.hex}})\n    </ng-template>\n\n    <ng-template ngx-select-option-not-found>\n        Nothing found\n    </ng-template>\n\n</ngx-select>

Also, you are can mix directives for reducing template:

<ngx-select [items]="items" optionValueField="hex" optionTextField="name" [(ngModel)]="ngxValue">\n    <ng-template ngx-select-option-selected ngx-select-option let-option let-text="text">\n        <span class="color-box" [style]="style('background-color:' + option.value)"></span>\n        <span [innerHtml]="text"></span>\n        ({{option.data.hex}})\n    </ng-template>\n\n    <ng-template ngx-select-option-not-found let-input>\n        Not found <button (click)="addItem(input)">(+) Add "{{input}}" as new item</button>\n    </ng-template>\n</ngx-select>

Description details of the directives:

  1. ngx-select-option-selected - Customization rendering selected options. Representing variables:
    • option (implicit) - object of type INgxSelectOption.
    • text - The text defined by the property optionTextField.
    • index - Number value of index the option in the select list. Always equal to zero for the single select.
  2. ngx-select-option - Customization rendering options in the dropdown menu. Representing variables:
    • option (implicit) - object of type INgxSelectOption.
    • text - The highlighted text defined by the property optionTextField. It is highlighted in the search.
    • index - Number value of index for the top level.
    • subIndex - Number value of index for the second level.
  3. ngx-select-option-not-found - Customization "not found text". Does not represent any variables.
'},151:function(De,j,L){"use strict";L.r(j),j.default='

Getting started

First of all, Welcome!

'},124:function(De,j,L){"use strict";L.r(j),j.default='

Container with fixed height and hidden overflow

\n
\n
\n

Default

\n
\n \n \n
\n

\n
\n
{{ngxControl1.value| json}}
\n
\n
\n \n
\n
\n\n
\n

Appended to body

\n
\n \n \n
\n

\n
\n
{{ngxControl2.value| json}}
\n
\n
\n \n
\n
\n
\n'},745:function(De,j,L){"use strict";L.r(j),j.default="import { Component } from '@angular/core';\nimport { FormControl } from '@angular/forms';\n\n@Component({\n selector: 'append-to-demo',\n templateUrl: './append-to-demo.html',\n})\nexport class AppendToDemoComponent {\n public items: string[] = ['Amsterdam', 'Antwerp', 'Athens', 'Barcelona',\n 'Berlin', 'Birmingham', 'Bradford', 'Bremen', 'Brussels', 'Bucharest',\n 'Budapest', 'Cologne', 'Copenhagen'];\n\n public ngxControl1 = new FormControl();\n public ngxControl2 = new FormControl();\n}\n"},931:function(De,j,L){"use strict";L.r(j),j.default='

Select a city by country

\n
\n
\n \n \n

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
\n'},287:function(De,j,L){"use strict";L.r(j),j.default="import { Component } from '@angular/core';\n\n@Component({\n selector: 'children-demo',\n templateUrl: './children-demo.html',\n})\nexport class ChildrenDemoComponent {\n public items: any[] = [\n {\n id: 100,\n text: 'Austria',\n children: [\n {id: 54, text: 'Vienna'},\n ],\n },\n {\n id: 200,\n text: 'Belgium',\n children: [\n {id: 2, text: 'Antwerp'},\n {id: 9, text: 'Brussels'},\n ],\n },\n {\n id: 300,\n text: 'Bulgaria',\n children: [\n {id: 48, text: 'Sofia'},\n ],\n },\n {\n id: 400,\n text: 'Croatia',\n children: [\n {id: 58, text: 'Zagreb'},\n ],\n },\n {\n id: 500,\n text: 'Czech Republic',\n children: [\n {id: 42, text: 'Prague'},\n ],\n },\n {\n id: 600,\n text: 'Denmark',\n children: [\n {id: 13, text: 'Copenhagen'},\n ],\n },\n {\n id: 700,\n text: 'England',\n children: [\n {id: 6, text: 'Birmingham'},\n {id: 7, text: 'Bradford'},\n {id: 26, text: 'Leeds', disabled: true},\n {id: 30, text: 'London'},\n {id: 34, text: 'Manchester'},\n {id: 47, text: 'Sheffield'},\n ],\n },\n {\n id: 800,\n text: 'Finland',\n children: [\n {id: 25, text: 'Helsinki'},\n ],\n },\n {\n id: 900,\n text: 'France',\n children: [\n {id: 35, text: 'Marseille'},\n {id: 40, text: 'Paris'},\n ],\n },\n {\n id: 1000,\n text: 'Germany',\n children: [\n {id: 5, text: 'Berlin'},\n {id: 8, text: 'Bremen'},\n {id: 12, text: 'Cologne'},\n {id: 14, text: 'Dortmund'},\n {id: 15, text: 'Dresden'},\n {id: 17, text: 'D\xfcsseldorf'},\n {id: 18, text: 'Essen'},\n {id: 19, text: 'Frankfurt'},\n {id: 23, text: 'Hamburg'},\n {id: 24, text: 'Hannover'},\n {id: 27, text: 'Leipzig'},\n {id: 37, text: 'Munich'},\n {id: 50, text: 'Stuttgart'},\n ],\n },\n {\n id: 1100,\n text: 'Greece',\n children: [\n {id: 3, text: 'Athens'},\n ],\n },\n {\n id: 1200,\n text: 'Hungary',\n children: [\n {id: 11, text: 'Budapest'},\n ],\n },\n {\n id: 1300,\n text: 'Ireland',\n children: [\n {id: 16, text: 'Dublin'},\n ],\n },\n {\n id: 1400,\n text: 'Italy',\n children: [\n {id: 20, text: 'Genoa'},\n {id: 36, text: 'Milan'},\n {id: 38, text: 'Naples'},\n {id: 39, text: 'Palermo'},\n {id: 44, text: 'Rome'},\n {id: 52, text: 'Turin'},\n ],\n },\n {\n id: 1500,\n text: 'Latvia',\n children: [\n {id: 43, text: 'Riga'},\n ],\n },\n {\n id: 1600,\n text: 'Lithuania',\n children: [\n {id: 55, text: 'Vilnius'},\n ],\n },\n {\n id: 1700,\n text: 'Netherlands',\n children: [\n {id: 1, text: 'Amsterdam'},\n {id: 45, text: 'Rotterdam'},\n {id: 51, text: 'The Hague'},\n ],\n },\n {\n id: 1800,\n text: 'Poland',\n children: [\n {id: 29, text: '\u0141\xf3d\u017a'},\n {id: 31, text: 'Krak\xf3w'},\n {id: 41, text: 'Pozna\u0144'},\n {id: 56, text: 'Warsaw'},\n {id: 57, text: 'Wroc\u0142aw'},\n ],\n },\n {\n id: 1900,\n text: 'Portugal',\n children: [\n {id: 28, text: 'Lisbon'},\n ],\n },\n {\n id: 2000,\n text: 'Romania',\n children: [\n {id: 10, text: 'Bucharest'},\n ],\n },\n {\n id: 2100,\n text: 'Scotland',\n children: [\n {id: 21, text: 'Glasgow'},\n ],\n },\n {\n id: 2200,\n text: 'Spain',\n children: [\n {id: 4, text: 'Barcelona'},\n {id: 32, text: 'Madrid'},\n {id: 33, text: 'M\xe1laga'},\n {id: 46, text: 'Seville'},\n {id: 53, text: 'Valencia'},\n {id: 59, text: 'Zaragoza'},\n ],\n },\n {\n id: 2300,\n text: 'Sweden',\n children: [\n {id: 22, text: 'Gothenburg'},\n {id: 49, text: 'Stockholm'},\n ],\n },\n ];\n\n public ngxValue: any[] = [];\n public ngxDisabled = false;\n}\n"},136:function(De,j,L){"use strict";L.r(j),j.default='

Select multiple cities

\n
\n
\n \n \n

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
\n'},864:function(De,j,L){"use strict";L.r(j),j.default="import { Component } from '@angular/core';\nimport { INgxSelectOption } from '../../lib/ngx-select/ngx-select.interfaces';\n\n@Component({\n selector: 'multiple-demo',\n templateUrl: './multiple-demo.html',\n})\nexport class MultipleDemoComponent {\n public items: string[] = ['Amsterdam', 'Antwerp', 'Athens', 'Barcelona',\n 'Berlin', 'Birmingham', 'Bradford', 'Bremen', 'Brussels', 'Bucharest',\n 'Budapest', 'Cologne', 'Copenhagen', 'Dortmund', 'Dresden', 'Dublin', 'D\xfcsseldorf',\n 'Essen', 'Frankfurt', 'Genoa', 'Glasgow', 'Gothenburg', 'Hamburg', 'Hannover',\n 'Helsinki', 'Leeds', 'Leipzig', 'Lisbon', '\u0141\xf3d\u017a', 'London', 'Krak\xf3w', 'Madrid',\n 'M\xe1laga', 'Manchester', 'Marseille', 'Milan', 'Munich', 'Naples', 'Palermo',\n 'Paris', 'Pozna\u0144', 'Prague', 'Riga', 'Rome', 'Rotterdam', 'Seville', 'Sheffield',\n 'Sofia', 'Stockholm', 'Stuttgart', 'The Hague', 'Turin', 'Valencia', 'Vienna',\n 'Vilnius', 'Warsaw', 'Wroc\u0142aw', 'Zagreb', 'Zaragoza'];\n\n public ngxValue: any = [];\n public ngxDisabled = false;\n\n public doSelectOptions = (options: INgxSelectOption[]) => console.log('MultipleDemoComponent.doSelectOptions', options);\n}\n"},952:function(De,j,L){"use strict";L.r(j),j.default='

Select a single city with {{items.length}} items

\n
\n
\n \n \n

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
'},549:function(De,j,L){"use strict";L.r(j),j.default="import { Component } from '@angular/core';\n\n@Component({\n selector: 'no-autocomplete-demo',\n templateUrl: './no-autocomplete-demo.html',\n})\nexport class NoAutoCompleteDemoComponent {\n public _items: string[] = ['Amsterdam', 'Antwerp', 'Athens', 'Barcelona',\n 'Berlin', 'Birmingham', 'Bradford', 'Bremen', 'Brussels', 'Bucharest',\n 'Budapest', 'Cologne', 'Copenhagen', 'Dortmund', 'Dresden', 'Dublin',\n 'D\xfcsseldorf', 'Essen', 'Frankfurt', 'Genoa', 'Glasgow', 'Gothenburg',\n 'Hamburg', 'Hannover', 'Helsinki', 'Krak\xf3w', 'Leeds', 'Leipzig', 'Lisbon',\n 'London', 'Madrid', 'Manchester', 'Marseille', 'Milan', 'Munich', 'M\xe1laga',\n 'Naples', 'Palermo', 'Paris', 'Pozna\u0144', 'Prague', 'Riga', 'Rome',\n 'Rotterdam', 'Seville', 'Sheffield', 'Sofia', 'Stockholm', 'Stuttgart',\n 'The Hague', 'Turin', 'Valencia', 'Vienna', 'Vilnius', 'Warsaw', 'Wroc\u0142aw',\n 'Zagreb', 'Zaragoza', '\u0141\xf3d\u017a'];\n\n constructor() {\n const a = [];\n for (let i = 1; i <= 20; i++) {\n this._items.forEach(v => a.push(i + ' ' + v));\n }\n this.items = a;\n }\n\n public items: string[] = [];\n public ngxValue: any = [];\n public ngxDisabled = false;\n}\n"},429:function(De,j,L){"use strict";L.r(j),j.default='

Select a color

\n
\n
\n \n\n \n \n \n ({{option.data.hex}})\n \n\n \n "{{input}}" not found\n \n\n \n

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
\n'},821:function(De,j,L){"use strict";L.r(j),j.default="import { Component, ViewEncapsulation } from '@angular/core';\nimport { DomSanitizer, SafeStyle } from '@angular/platform-browser';\n\nconst COLORS = [\n {name: 'Blue 10', hex: '#C0E6FF'},\n {name: 'Blue 20', hex: '#7CC7FF'},\n {name: 'Blue 30', hex: '#5AAAFA', disabled: true},\n {name: 'Blue 40', hex: '#5596E6'},\n {name: 'Blue 50', hex: '#4178BE'},\n {name: 'Blue 60', hex: '#325C80'},\n {name: 'Blue 70', hex: '#264A60'},\n {name: 'Blue 80', hex: '#1D3649'},\n {name: 'Blue 90', hex: '#152935'},\n {name: 'Blue 100', hex: '#010205'},\n {name: 'Green 10', hex: '#C8F08F'},\n {name: 'Green 20', hex: '#B4E051'},\n {name: 'Green 30', hex: '#8CD211'},\n {name: 'Green 40', hex: '#5AA700'},\n {name: 'Green 50', hex: '#4B8400'},\n {name: 'Green 60', hex: '#2D660A'},\n {name: 'Green 70', hex: '#144D14'},\n {name: 'Green 80', hex: '#0A3C02'},\n {name: 'Green 90', hex: '#0C2808'},\n {name: 'Green 100', hex: '#010200'},\n {name: 'Red 10', hex: '#FFD2DD'},\n {name: 'Red 20', hex: '#FFA5B4'},\n {name: 'Red 30', hex: '#FF7D87'},\n {name: 'Red 40', hex: '#FF5050'},\n {name: 'Red 50', hex: '#E71D32'},\n {name: 'Red 60', hex: '#AD1625'},\n {name: 'Red 70', hex: '#8C101C'},\n {name: 'Red 80', hex: '#6E0A1E'},\n {name: 'Red 90', hex: '#4C0A17'},\n {name: 'Red 100', hex: '#040001'},\n {name: 'Yellow 10', hex: '#FDE876'},\n {name: 'Yellow 20', hex: '#FDD600'},\n {name: 'Yellow 30', hex: '#EFC100'},\n {name: 'Yellow 40', hex: '#BE9B00'},\n {name: 'Yellow 50', hex: '#8C7300'},\n {name: 'Yellow 60', hex: '#735F00'},\n {name: 'Yellow 70', hex: '#574A00'},\n {name: 'Yellow 80', hex: '#3C3200'},\n {name: 'Yellow 90', hex: '#281E00'},\n {name: 'Yellow 100', hex: '#020100'},\n];\n\n@Component({\n selector: 'rich-demo',\n templateUrl: './rich-demo.html',\n styles: [`.color-box {\n display: inline-block;\n height: 14px;\n width: 14px;\n margin-right: 4px;\n border: 1px solid #000;\n }`],\n encapsulation: ViewEncapsulation.None, // Enable dynamic HTML styles\n})\nexport class RichDemoComponent {\n public items: any[] = COLORS;\n\n public ngxValue: any = [];\n public ngxDisabled = false;\n\n constructor(public sanitizer: DomSanitizer) {\n }\n\n public style(data: string): SafeStyle {\n return this.sanitizer.bypassSecurityTrustStyle(data);\n }\n}\n"},726:function(De,j,L){"use strict";L.r(j),j.default='

Select a single city

\n
\n
\n \n \n

\n
\n
{{ngxControl.value | json}}
\n
\n
\n \n
\n
\n
\n'},276:function(De,j,L){"use strict";L.r(j),j.default="import { Component, OnDestroy } from '@angular/core';\nimport { FormControl } from '@angular/forms';\nimport { INgxSelectOption } from '../../lib/ngx-select/ngx-select.interfaces';\n\n@Component({\n selector: 'single-demo',\n templateUrl: './single-demo.html',\n})\nexport class SingleDemoComponent implements OnDestroy {\n public items: string[] = ['Amsterdam', 'Antwerp', 'Athens', 'Barcelona',\n 'Berlin', 'Birmingham', 'Bradford', 'Bremen', 'Brussels', 'Bucharest',\n 'Budapest', 'Cologne', 'Copenhagen', 'Dortmund', 'Dresden', 'Dublin',\n 'D\xfcsseldorf', 'Essen', 'Frankfurt', 'Genoa', 'Glasgow', 'Gothenburg',\n 'Hamburg', 'Hannover', 'Helsinki', 'Krak\xf3w', 'Leeds', 'Leipzig', 'Lisbon',\n 'London', 'Madrid', 'Manchester', 'Marseille', 'Milan', 'Munich', 'M\xe1laga',\n 'Naples', 'Palermo', 'Paris', 'Pozna\u0144', 'Prague', 'Riga', 'Rome',\n 'Rotterdam', 'Seville', 'Sheffield', 'Sofia', 'Stockholm', 'Stuttgart',\n 'The Hague', 'Turin', 'Valencia', 'Vienna', 'Vilnius', 'Warsaw', 'Wroc\u0142aw',\n 'Zagreb', 'Zaragoza', '\u0141\xf3d\u017a'];\n\n public ngxControl = new FormControl();\n\n private _ngxDefaultTimeout;\n private _ngxDefaultInterval;\n private _ngxDefault;\n\n constructor() {\n this._ngxDefaultTimeout = setTimeout(() => {\n this._ngxDefaultInterval = setInterval(() => {\n const idx = Math.floor(Math.random() * (this.items.length - 1));\n this._ngxDefault = this.items[idx];\n // console.log('new default value = ', this._ngxDefault);\n }, 2000);\n }, 2000);\n }\n\n public ngOnDestroy(): void {\n clearTimeout(this._ngxDefaultTimeout);\n clearInterval(this._ngxDefaultInterval);\n }\n\n public doNgxDefault(): any {\n return this._ngxDefault;\n }\n\n public inputTyped = (source: string, text: string) => console.log('SingleDemoComponent.inputTyped', source, text);\n\n public doFocus = () => console.log('SingleDemoComponent.doFocus');\n\n public doBlur = () => console.log('SingleDemoComponent.doBlur');\n\n public doOpen = () => console.log('SingleDemoComponent.doOpen');\n\n public doClose = () => console.log('SingleDemoComponent.doClose');\n\n public doSelect = (value: any) => console.log('SingleDemoComponent.doSelect', value);\n\n public doRemove = (value: any) => console.log('SingleDemoComponent.doRemove', value);\n\n public doSelectOptions = (options: INgxSelectOption[]) => console.log('SingleDemoComponent.doSelectOptions', options);\n}\n"},147:function(De){"use strict";De.exports=JSON.parse('{"name":"ngx-select-ex","version":"8.0.0","description":"Angular based replacement for select boxes","license":"MIT","private":false,"author":"Konstantin Polyntsov ","repository":{"type":"git","url":"git+ssh://git@github.com:optimistex/ngx-select-ex.git"},"bugs":{"url":"https://github.com/optimistex/ngx-select-ex/issues"},"homepage":"https://github.com/optimistex/ngx-select-ex#readme","scripts":{"e2e":"ng e2e","cz":"git add -A && git status && git-cz","build":"npm run lint && npm run test:headless && npm run build.package && npm run build.demo && git add -A","build.demo":"ng build --configuration production","build.package":"ng-packagr -p ng-package.json","lint":"ng lint","lint:fix":"ng lint --fix","ng":"ng","release":"standard-version --commit-all","release:major":"standard-version --release-as major --commit-all","publish.ng4":"npm publish ./dist --tag ng4","publish":"npm publish ./dist","publish-dev":"npm publish ./dist --tag dev","start":"ng serve","test":"ng test --watch false","test:headless":"ng test --browsers=ChromeHeadlessNoSandbox --watch=false --code-coverage","test-coverage":"ng test --watch false --code-coverage","prepare":"husky install"},"standard-version":{"scripts":{"postbump":"npm run build"}},"keywords":["ngx-select","ngx-select-ex","angular","angular2","angular4","angular5","angular6","select","select2","ui-select","multiselect","multi-select"],"devDependencies":{"@angular-devkit/build-angular":"~13.1.4","@angular-eslint/builder":"13.0.1","@angular-eslint/eslint-plugin":"13.0.1","@angular-eslint/eslint-plugin-template":"13.0.1","@angular-eslint/schematics":"13.0.1","@angular-eslint/template-parser":"13.0.1","@angular/animations":"~13.1.3","@angular/cli":"^13.1.4","@angular/common":"~13.1.3","@angular/compiler":"~13.1.3","@angular/compiler-cli":"~13.1.3","@angular/core":"~13.1.3","@angular/forms":"~13.1.3","@angular/language-service":"~13.1.3","@angular/platform-browser":"~13.1.3","@angular/platform-browser-dynamic":"~13.1.3","@angular/router":"~13.1.3","@types/jasmine":"^3.7.2","@types/jasminewd2":"^2.0.8","@types/marked":"^4.0.1","@types/node":"^17.0.10","@types/webpack":"^5.28.0","@typescript-eslint/eslint-plugin":"^5.10.0","@typescript-eslint/parser":"^5.10.0","codecov":"^3.8.1","codelyzer":"^6.0.0","escape-string-regexp":"^5.0.0","eslint":"^8.2.0","html-loader":"^3.0.1","husky":"^7.0.4","jasmine-core":"^4.0.0","jasmine-spec-reporter":"^7.0.0","karma":"^6.3.2","karma-chrome-launcher":"~3.1.0","karma-coverage":"^2.0.3","karma-jasmine":"~4.0.0","karma-jasmine-html-reporter":"^1.6.0","lodash.isequal":"^4.5.0","markdown-loader":"^6.0.0","ng-packagr":"^13.1.3","ngx-bootstrap":"^8.0.0","pre-commit":"^1.2.2","protractor":"~7.0.0","raw-loader":"^4.0.2","rxjs":"^7.5.2","standard-version":"^9.0.0","ts-node":"^10.4.0","tslib":"^2.0.0","tslint":"~6.1.0","tslint-jasmine-rules":"^1.6.1","typescript":"~4.5.4","zone.js":"~0.11.4"},"contributors":[{"name":"Konstantin Polyntsov","email":"optimistex@gmail.com","url":"https://github.com/optimistex"},{"name":"Vyacheslav Chub","email":"vyacheslav.chub@valor-software.com","url":"https://github.com/buchslava"},{"name":"Dmitriy Shekhovtsov","email":"valorkin@gmail.com","url":"https://github.com/valorkin"},{"name":"Oleksandr Telnov","email":"otelnov@gmail.com","url":"https://github.com/otelnov"}]}')}},function(De){De(De.s=322)}]); \ No newline at end of file +(self.webpackChunkngx_select_ex=self.webpackChunkngx_select_ex||[]).push([[179],{322:function(De,j,L){"use strict";function ce(e){return(ce=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function qt(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=ce(e)););return e}function ue(){return ue="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(n,t,r){var i=qt(n,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?n:r):o.value}},ue.apply(this,arguments)}function ur(e,n){for(var t=0;te.length)&&(n=e.length);for(var t=0,r=new Array(n);t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,o=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var l=t.next();return o=l.done,l},e:function(l){a=!0,u=l},f:function(){try{!o&&null!=t.return&&t.return()}finally{if(a)throw u}}}}function ft(e,n){return function It(e){if(Array.isArray(e))return e}(e)||function un(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,u,r=[],i=!0,o=!1;try{for(t=t.call(e);!(i=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);i=!0);}catch(s){o=!0,u=s}finally{try{!i&&null!=t.return&&t.return()}finally{if(o)throw u}}return r}}(e,n)||et(e,n)||function Dr(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Re(e){return function Cr(e){if(Array.isArray(e))return Wt(e)}(e)||function ln(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||et(e)||function Wr(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function at(e,n,t){return(at=_r()?Reflect.construct:function(i,o,a){var u=[null];u.push.apply(u,o);var l=new(Function.bind.apply(i,u));return a&&zt(l,a.prototype),l}).apply(null,arguments)}function We(e){var n="function"==typeof Map?new Map:void 0;return We=function(r){if(null===r||!function $r(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(r))return r;if("function"!=typeof r)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(r))return n.get(r);n.set(r,i)}function i(){return at(r,arguments,ce(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),zt(i,r)},We(e)}function Te(e){return"function"==typeof e}function Zr(e){var t=e(function(i){Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var I=Zr(function(e){return function(t){e(this),this.message=t?"".concat(t.length," errors occurred during unsubscription:\n").concat(t.map(function(r,i){return"".concat(i+1,") ").concat(r.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=t}});function A(e,n){if(e){var t=e.indexOf(n);0<=t&&e.splice(t,1)}}var e,x=function(){function e(n){g(this,e),this.initialTeardown=n,this.closed=!1,this._parentage=null,this._teardowns=null}return p(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){this.closed=!0;var r=this._parentage;if(r)if(this._parentage=null,Array.isArray(r)){var o,i=ct(r);try{for(i.s();!(o=i.n()).done;)o.value.remove(this)}catch(d){i.e(d)}finally{i.f()}}else r.remove(this);var u=this.initialTeardown;if(Te(u))try{u()}catch(d){t=d instanceof I?d.errors:[d]}var s=this._teardowns;if(s){this._teardowns=null;var c,l=ct(s);try{for(l.s();!(c=l.n()).done;){var f=c.value;try{K(f)}catch(d){t=null!=t?t:[],d instanceof I?t=[].concat(Re(t),Re(d.errors)):t.push(d)}}}catch(d){l.e(d)}finally{l.f()}}if(t)throw new I(t)}}},{key:"add",value:function(t){var r;if(t&&t!==this)if(this.closed)K(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(r=this._teardowns)&&void 0!==r?r:[]).push(t)}}},{key:"_hasParent",value:function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)}},{key:"_addParent",value:function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t}},{key:"_removeParent",value:function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&A(r,t)}},{key:"remove",value:function(t){var r=this._teardowns;r&&A(r,t),t instanceof e&&t._removeParent(this)}}]),e}();x.EMPTY=((e=new x).closed=!0,e);var B=x.EMPTY;function X(e){return e instanceof x||e&&"closed"in e&&Te(e.remove)&&Te(e.add)&&Te(e.unsubscribe)}function K(e){Te(e)?e():e.unsubscribe()}var $e={setTimeout:function(e){function n(){return e.apply(this,arguments)}return n.toString=function(){return e.toString()},n}(function(){var e=$e.delegate;return((null==e?void 0:e.setTimeout)||setTimeout).apply(void 0,arguments)}),clearTimeout:function(e){function n(t){return e.apply(this,arguments)}return n.toString=function(){return e.toString()},n}(function(e){var n=$e.delegate;return((null==n?void 0:n.clearTimeout)||clearTimeout)(e)}),delegate:void 0};function ee(e){$e.setTimeout(function(){throw e})}function He(){}var Un=gi("C",void 0,void 0);function gi(e,n,t){return{kind:e,value:n,error:t}}function br(e){e()}var mi=function(e){T(t,e);var n=F(t);function t(r){var i;return g(this,t),(i=n.call(this)).isStopped=!1,r?(i.destination=r,X(r)&&r.add(ze(i))):i.destination=Qs,i}return p(t,[{key:"next",value:function(i){this.isStopped?Fo(function cn(e){return gi("N",e,void 0)}(i),this):this._next(i)}},{key:"error",value:function(i){this.isStopped?Fo(function dt(e){return gi("E",void 0,e)}(i),this):(this.isStopped=!0,this._error(i))}},{key:"complete",value:function(){this.isStopped?Fo(Un,this):(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,ue(ce(t.prototype),"unsubscribe",this).call(this),this.destination=null)}},{key:"_next",value:function(i){this.destination.next(i)}},{key:"_error",value:function(i){try{this.destination.error(i)}finally{this.unsubscribe()}}},{key:"_complete",value:function(){try{this.destination.complete()}finally{this.unsubscribe()}}}],[{key:"create",value:function(i,o,a){return new yi(i,o,a)}}]),t}(x),yi=function(e){T(t,e);var n=F(t);function t(r,i,o){var a,u;if(g(this,t),a=n.call(this),Te(r))u=r;else if(r){var s;u=r.next,i=r.error,o=r.complete,ze(a),s=r,u=null==u?void 0:u.bind(s),i=null==i?void 0:i.bind(s),o=null==o?void 0:o.bind(s)}return a.destination={next:u?xo(u,ze(a)):He,error:xo(null!=i?i:Ua,ze(a)),complete:o?xo(o,ze(a)):He},a}return p(t)}(mi);function xo(e,n){return function(){try{e.apply(void 0,arguments)}catch(t){ee(t)}}}function Ua(e){throw e}function Fo(e,n){var t=null;t&&$e.setTimeout(function(){return t(e,n)})}var Qs={closed:!0,next:He,error:Ua,complete:He},Oo="function"==typeof Symbol&&Symbol.observable||"@@observable";function wr(e){return e}function qa(e){return 0===e.length?wr:1===e.length?e[0]:function(t){return e.reduce(function(r,i){return i(r)},t)}}var ut=function(){var e=function(){function n(t){g(this,n),t&&(this._subscribe=t)}return p(n,[{key:"lift",value:function(r){var i=new n;return i.source=this,i.operator=r,i}},{key:"subscribe",value:function(r,i,o){var a=this,u=function _i(e){return e&&e instanceof mi||function Ys(e){return e&&Te(e.next)&&Te(e.error)&&Te(e.complete)}(e)&&X(e)}(r)?r:new yi(r,i,o);return br(function(){var s=a.operator,l=a.source;u.add(s?s.call(u,l):l?a._subscribe(u):a._trySubscribe(u))}),u}},{key:"_trySubscribe",value:function(r){try{return this._subscribe(r)}catch(i){r.error(i)}}},{key:"forEach",value:function(r,i){var o=this;return new(i=za(i))(function(a,u){var s=new yi({next:function(c){try{r(c)}catch(f){u(f),s.unsubscribe()}},error:u,complete:a});o.subscribe(s)})}},{key:"_subscribe",value:function(r){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(r)}},{key:Oo,value:function(){return this}},{key:"pipe",value:function(){for(var r=arguments.length,i=new Array(r),o=0;o0}},{key:"_trySubscribe",value:function(o){return this._throwIfClosed(),ue(ce(r.prototype),"_trySubscribe",this).call(this,o)}},{key:"_subscribe",value:function(o){return this._throwIfClosed(),this._checkFinalizedStatuses(o),this._innerSubscribe(o)}},{key:"_innerSubscribe",value:function(o){var s=this.observers;return this.hasError||this.isStopped?B:(s.push(o),new x(function(){return A(s,o)}))}},{key:"_checkFinalizedStatuses",value:function(o){var s=this.isStopped;this.hasError?o.error(this.thrownError):s&&o.complete()}},{key:"asObservable",value:function(){var o=new ut;return o.source=this,o}}]),r}(ut);return e.create=function(n,t){return new $t(n,t)},e}(),$t=function(e){T(t,e);var n=F(t);function t(r,i){var o;return g(this,t),(o=n.call(this)).destination=r,o.source=i,o}return p(t,[{key:"next",value:function(i){var o,a;null===(a=null===(o=this.destination)||void 0===o?void 0:o.next)||void 0===a||a.call(o,i)}},{key:"error",value:function(i){var o,a;null===(a=null===(o=this.destination)||void 0===o?void 0:o.error)||void 0===a||a.call(o,i)}},{key:"complete",value:function(){var i,o;null===(o=null===(i=this.destination)||void 0===i?void 0:i.complete)||void 0===o||o.call(i)}},{key:"_subscribe",value:function(i){var o,a;return null!==(a=null===(o=this.source)||void 0===o?void 0:o.subscribe(i))&&void 0!==a?a:B}}]),t}(sr);function gt(e){return function(n){if(function Wa(e){return Te(null==e?void 0:e.lift)}(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}var bt=function(e){T(t,e);var n=F(t);function t(r,i,o,a,u){var s,l,c,f;return g(this,t),(f=n.call(this,r)).onFinalize=u,f._next=i?function(d){try{i(d)}catch(h){r.error(h)}}:ue((s=ze(f),ce(t.prototype)),"_next",s),f._error=a?function(d){try{a(d)}catch(h){r.error(h)}finally{this.unsubscribe()}}:ue((l=ze(f),ce(t.prototype)),"_error",l),f._complete=o?function(){try{o()}catch(d){r.error(d)}finally{this.unsubscribe()}}:ue((c=ze(f),ce(t.prototype)),"_complete",c),f}return p(t,[{key:"unsubscribe",value:function(){var i,o=this.closed;ue(ce(t.prototype),"unsubscribe",this).call(this),!o&&(null===(i=this.onFinalize)||void 0===i||i.call(this))}}]),t}(mi);function fn(e,n){return gt(function(t,r){var i=0;t.subscribe(new bt(r,function(o){r.next(e.call(n,o,i++))}))})}var Di=L(757),Kr=L.n(Di);function lr(e){return this instanceof lr?(this.v=e,this):new lr(e)}function Qa(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=t.apply(e,n||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(d){r[d]&&(i[d]=function(h){return new Promise(function(m,_){o.push([d,h,m,_])>1||u(d,h)})})}function u(d,h){try{!function s(d){d.value instanceof lr?Promise.resolve(d.value.v).then(l,c):f(o[0][2],d)}(r[d](h))}catch(m){f(o[0][3],m)}}function l(d){u("next",d)}function c(d){u("throw",d)}function f(d,h){d(h),o.shift(),o.length&&u(o[0][0],o[0][1])}}function cr(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function Er(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(a){return new Promise(function(u,s){!function i(o,a,u,s){Promise.resolve(s).then(function(l){o({value:l,done:u})},a)}(u,s,(a=e[o](a)).done,a.value)})}}}var Ja=function(n){return n&&"number"==typeof n.length&&"function"!=typeof n};function Xa(e){return Te(null==e?void 0:e.then)}function eu(e){return Te(e[Oo])}function tu(e){return Symbol.asyncIterator&&Te(null==e?void 0:e[Symbol.asyncIterator])}function nu(e){return new TypeError("You provided ".concat(null!==e&&"object"==typeof e?"an invalid object":"'".concat(e,"'")," where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."))}var ru=function fr(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function iu(e){return Te(null==e?void 0:e[ru])}function ou(e){return Qa(this,arguments,Kr().mark(function n(){var t,r,i;return Kr().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:t=e.getReader(),u.prev=1;case 2:return u.next=5,lr(t.read());case 5:if(i=(r=u.sent).value,!r.done){u.next=12;break}return u.next=11,lr(void 0);case 11:return u.abrupt("return",u.sent);case 12:return u.next=14,lr(i);case 14:return u.next=16,u.sent;case 16:u.next=2;break;case 18:return u.prev=18,t.releaseLock(),u.finish(18);case 21:case"end":return u.stop()}},n,null,[[1,,18,21]])}))}function au(e){return Te(null==e?void 0:e.getReader)}function $n(e){if(e instanceof ut)return e;if(null!=e){if(eu(e))return function wi(e){return new ut(function(n){var t=e[Oo]();if(Te(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Ja(e))return function tl(e){return new ut(function(n){for(var t=0;t3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=n.schedule(function(){t(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function ol(e,n,t,r,i,o,a,u){var s=[],l=0,c=0,f=!1,d=function(){f&&!s.length&&!l&&n.complete()},h=function(C){return l2&&void 0!==arguments[2]?arguments[2]:1/0;return Te(n)?kr(function(r,i){return fn(function(o,a){return n(r,o,i,a)})($n(e(r,i)))},t):("number"==typeof n&&(t=n),gt(function(r,i){return ol(r,i,e,t)}))}function Ei(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;return kr(wr,e)}var Yr=new ut(function(e){return e.complete()});function Po(e){return e[e.length-1]}function cu(e){return Te(Po(e))?e.pop():void 0}function Ro(e){return function lu(e){return e&&Te(e.schedule)}(Po(e))?e.pop():void 0}function al(e,n){return"number"==typeof Po(e)?e.pop():n}function No(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return gt(function(t,r){t.subscribe(new bt(r,function(i){return Mn(r,e,function(){return r.next(i)},n)},function(){return Mn(r,e,function(){return r.complete()},n)},function(i){return Mn(r,e,function(){return r.error(i)},n)}))})}function fu(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return gt(function(t,r){r.add(e.schedule(function(){return t.subscribe(r)},n))})}function hu(e,n){if(!e)throw new Error("Iterable cannot be null");return new ut(function(t){Mn(t,n,function(){var r=e[Symbol.asyncIterator]();Mn(t,n,function(){r.next().then(function(i){i.done?t.complete():t.next(i.value)})},0,!0)})})}function dn(e,n){return n?function Kn(e,n){if(null!=e){if(eu(e))return function ul(e,n){return $n(e).pipe(fu(n),No(n))}(e,n);if(Ja(e))return function Mi(e,n){return new ut(function(t){var r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(Xa(e))return function du(e,n){return $n(e).pipe(fu(n),No(n))}(e,n);if(tu(e))return hu(e,n);if(iu(e))return function Mr(e,n){return new ut(function(t){var r;return Mn(t,n,function(){r=e[ru](),Mn(t,n,function(){var i,o;try{var a=r.next();i=a.value,o=a.done}catch(u){return void t.error(u)}o?t.complete():t.next(i)},0,!0)}),function(){return Te(null==r?void 0:r.return)&&r.return()}})}(e,n);if(au(e))return function sl(e,n){return hu(ou(e),n)}(e,n)}throw nu(e)}(e,n):$n(e)}function vu(){for(var e=arguments.length,n=new Array(e),t=0;t0&&void 0!==arguments[0]?arguments[0]:{},n=e.connector,t=void 0===n?function(){return new sr}:n,r=e.resetOnError,i=void 0===r||r,o=e.resetOnComplete,a=void 0===o||o,u=e.resetOnRefCountZero,s=void 0===u||u;return function(l){var c=null,f=null,d=null,h=0,m=!1,_=!1,C=function(){null==f||f.unsubscribe(),f=null},k=function(){C(),c=d=null,m=_=!1},D=function(){var H=c;k(),null==H||H.unsubscribe()};return gt(function(O,H){h++,!_&&!m&&C();var J=d=null!=d?d:t();H.add(function(){0==--h&&!_&&!m&&(f=Vo(D,s))}),J.subscribe(H),c||(c=new yi({next:function(Le){return J.next(Le)},error:function(Le){_=!0,C(),f=Vo(k,i,Le),J.error(Le)},complete:function(){m=!0,C(),f=Vo(k,a),J.complete()}}),dn(O).subscribe(c))})(l)}}function Vo(e,n){if(!0===n)return e(),null;if(!1===n)return null;for(var t=arguments.length,r=new Array(t>2?t-2:0),i=2;i ".concat(t," ").concat(r," ").concat(n," <=Actual]")))}(n,e,null,"!=")}function ye(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Qt(e){return{providers:e.providers||[],imports:e.imports||[]}}function vl(e){return Gd(e,gu)||Gd(e,qd)}function Gd(e,n){return e.hasOwnProperty(n)?e[n]:null}function Ud(e){return e&&(e.hasOwnProperty(pl)||e.hasOwnProperty(iD))?e[pl]:null}var gl,gu=fe({"\u0275prov":fe}),pl=fe({"\u0275inj":fe}),qd=fe({ngInjectableDef:fe}),iD=fe({ngInjectorDef:fe}),ne=function(){return(ne=ne||{})[ne.Default=0]="Default",ne[ne.Host=1]="Host",ne[ne.Self=2]="Self",ne[ne.SkipSelf=4]="SkipSelf",ne[ne.Optional=8]="Optional",ne}();function oD(){return gl}function Tr(e){var n=gl;return gl=e,n}function zd(e,n,t){var r=vl(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&ne.Optional?null:void 0!==n?n:void y(me(e),"Injector")}function xr(e){return{toString:e}.toString()}var Sn=function(){return(Sn=Sn||{})[Sn.OnPush=0]="OnPush",Sn[Sn.Default=1]="Default",Sn}(),Qn=function(){return function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(Qn||(Qn={})),Qn}(),aD="undefined"!=typeof globalThis&&globalThis,uD="undefined"!=typeof window&&window,sD="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,lD="undefined"!=typeof global&&global,Me=aD||lD||uD||sD,Ai={},xe=[],mu=fe({"\u0275cmp":fe}),ml=fe({"\u0275dir":fe}),yl=fe({"\u0275pipe":fe}),Wd=fe({"\u0275mod":fe}),hr=fe({"\u0275fac":fe}),Ho=fe({__NG_ELEMENT_ID__:fe}),cD=0;function Nt(e){return xr(function(){var t={},r={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Sn.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||xe,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Qn.Emulated,id:"c",styles:e.styles||xe,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,o=e.features,a=e.pipes;return r.id+=cD++,r.inputs=Qd(e.inputs,t),r.outputs=Qd(e.outputs),o&&o.forEach(function(u){return u(r)}),r.directiveDefs=i?function(){return("function"==typeof i?i():i).map($d)}:null,r.pipeDefs=a?function(){return("function"==typeof a?a():a).map(Zd)}:null,r})}function $d(e){return mt(e)||function Fr(e){return e[ml]||null}(e)}function Zd(e){return function Jr(e){return e[yl]||null}(e)}var Kd={};function hn(e){return xr(function(){var n={type:e.type,bootstrap:e.bootstrap||xe,declarations:e.declarations||xe,imports:e.imports||xe,exports:e.exports||xe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(Kd[e.id]=e.type),n})}function Qd(e,n){if(null==e)return Ai;var t={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),t[i]=r,n&&(n[i]=o)}return t}var U=Nt;function Vt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function mt(e){return e[mu]||null}function vn(e,n){var t=e[Wd]||null;if(!t&&!0===n)throw new Error("Type ".concat(me(e)," does not have '\u0275mod' property."));return t}function Yn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Tn(e){return Array.isArray(e)&&!0===e[1]}function Cl(e){return 0!=(8&e.flags)}function Cu(e){return 2==(2&e.flags)}function bu(e){return 1==(1&e.flags)}function xn(e){return null!==e.template}function gD(e){return 0!=(512&e[2])}function ni(e,n){return e.hasOwnProperty(hr)?e[hr]:null}var _D=function(){function e(n,t,r){g(this,e),this.previousValue=n,this.currentValue=t,this.firstChange=r}return p(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function gn(){return Jd}function Jd(e){return e.type.prototype.ngOnChanges&&(e.setInput=CD),DD}function DD(){var e=eh(this),n=null==e?void 0:e.current;if(n){var t=e.previous;if(t===Ai)e.previous=n;else for(var r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function CD(e,n,t,r){var i=eh(e)||function bD(e,n){return e[Xd]=n}(e,{previous:Ai,current:null}),o=i.current||(i.current={}),a=i.previous,u=this.declaredInputs[t],s=a[u];o[u]=new _D(s&&s.currentValue,n,a===Ai),e[r]=n}gn.ngInherit=!0;var Xd="__ngSimpleChanges__";function eh(e){return e[Xd]||null}var El=void 0;function kl(){return void 0!==El?El:"undefined"!=typeof document?document:void 0}function Ge(e){return!!e.listen}var rh={createRenderer:function(n,t){return kl()}};function Qe(e){for(;Array.isArray(e);)e=e[0];return e}function wu(e,n){return Qe(n[e])}function yn(e,n){return Qe(n[e.index])}function Ml(e,n){return e.data[n]}function Ii(e,n){return e[n]}function Jt(e,n){var t=n[e];return Yn(t)?t:t[0]}function ih(e){return 4==(4&e[2])}function Sl(e){return 128==(128&e[2])}function Or(e,n){return null==n?null:e[n]}function oh(e){e[18]=0}function Al(e,n){e[5]+=n;for(var t=e,r=e[3];null!==r&&(1===n&&1===t[5]||-1===n&&0===t[5]);)r[5]+=n,t=r,r=r[3]}var $={lFrame:hh(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function ah(){return $.bindingsEnabled}function M(){return $.lFrame.lView}function pe(){return $.lFrame.tView}function Xt(e){return $.lFrame.contextLView=e,e[8]}function nt(){for(var e=uh();null!==e&&64===e.type;)e=e.parent;return e}function uh(){return $.lFrame.currentTNode}function Jn(e,n){var t=$.lFrame;t.currentTNode=e,t.isParent=n}function Tl(){return $.lFrame.isParent}function xl(){$.lFrame.isParent=!1}function Eu(){return $.isInCheckNoChangesMode}function ku(e){$.isInCheckNoChangesMode=e}function wt(){var e=$.lFrame,n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function Pi(){return $.lFrame.bindingIndex++}function pr(e){var n=$.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function ND(e,n){var t=$.lFrame;t.bindingIndex=t.bindingRootIndex=e,Fl(n)}function Fl(e){$.lFrame.currentDirectiveIndex=e}function ch(){return $.lFrame.currentQueryIndex}function Il(e){$.lFrame.currentQueryIndex=e}function LD(e){var n=e[1];return 2===n.type?n.declTNode:1===n.type?e[6]:null}function fh(e,n,t){if(t&ne.SkipSelf){for(var r=n,i=e;!(null!==(r=r.parent)||t&ne.Host||null===(r=LD(i))||(i=i[15],10&r.type)););if(null===r)return!1;n=r,e=i}var o=$.lFrame=dh();return o.currentTNode=n,o.lView=e,!0}function Mu(e){var n=dh(),t=e[1];$.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function dh(){var e=$.lFrame,n=null===e?null:e.child;return null===n?hh(e):n}function hh(e){var n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function vh(){var e=$.lFrame;return $.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var ph=vh;function Su(){var e=vh();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function BD(e){var n=$.lFrame.contextLView=function HD(e,n){for(;e>0;)n=n[15],e--;return n}(e,$.lFrame.contextLView);return n[8]}function Et(){return $.lFrame.selectedIndex}function Ir(e){$.lFrame.selectedIndex=e}function Ue(){var e=$.lFrame;return Ml(e.tView,e.selectedIndex)}function Au(e,n){for(var t=n.directiveStart,r=n.directiveEnd;t=r)break}else n[s]<0&&(e[18]+=65536),(u>11>16&&(3&e[2])===n){e[2]+=2048;try{o.call(u)}finally{}}}else try{o.call(u)}finally{}}var zo=p(function e(n,t,r){g(this,e),this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r});function Fu(e,n,t){for(var r=Ge(e),i=0;in){a=o-1;break}}}for(;o>16}(e),r=n;t>0;)r=r[15],t--;return r}var Vl=!0;function Iu(e){var n=Vl;return Vl=e,n}var eC=0;function $o(e,n){var t=Bl(e,n);if(-1!==t)return t;var r=n[1];r.firstCreatePass&&(e.injectorIndex=n.length,Ll(r.data,e),Ll(n,null),Ll(r.blueprint,null));var i=Pu(e,n),o=e.injectorIndex;if(_h(i))for(var a=Ri(i),u=Ni(i,n),s=u[1].data,l=0;l<8;l++)n[o+l]=u[a+l]|s[a+l];return n[o+8]=i,o}function Ll(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Bl(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Pu(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var t=0,r=null,i=n;null!==i;){var o=i[1],a=o.type;if(null===(r=2===a?o.declTNode:1===a?i[6]:null))return-1;if(t++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return-1}function Ru(e,n,t){!function tC(e,n,t){var r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(Ho)&&(r=t[Ho]),null==r&&(r=t[Ho]=eC++);var i=255&r;n.data[e+(i>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:ne.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=oC(t);if("function"==typeof o){if(!fh(n,e,r))return r&ne.Host?bh(i,t,r):wh(n,t,r,i);try{var a=o(r);if(null!=a||r&ne.Optional)return a;y(t)}finally{ph()}}else if("number"==typeof o){var u=null,s=Bl(e,n),l=-1,c=r&ne.Host?n[16][6]:null;for((-1===s||r&ne.SkipSelf)&&(-1!==(l=-1===s?Pu(e,n):n[s+8])&&Sh(r,!1)?(u=n[1],s=Ri(l),n=Ni(l,n)):s=-1);-1!==s;){var f=n[1];if(Mh(o,s,f.data)){var d=iC(s,n,t,u,r,c);if(d!==kh)return d}-1!==(l=n[s+8])&&Sh(r,n[1].data[s+8]===c)&&Mh(o,s,n)?(u=f,s=Ri(l),n=Ni(l,n)):s=-1}}}return wh(n,t,r,i)}var kh={};function rC(){return new Vi(nt(),M())}function iC(e,n,t,r,i,o){var a=n[1],u=a.data[e+8],c=Nu(u,a,t,null==r?Cu(u)&&Vl:r!=a&&0!=(3&u.type),i&ne.Host&&o===u);return null!==c?Zo(n,a,c,u):kh}function Nu(e,n,t,r,i){for(var o=e.providerIndexes,a=n.data,u=1048575&o,s=e.directiveStart,c=o>>20,d=i?u+c:e.directiveEnd,h=r?u:u+c;h=s&&m.type===t)return h}if(i){var _=a[s];if(_&&xn(_)&&_.type===t)return s}return null}function Zo(e,n,t,r){var i=e[t],o=n.data;if(function ZD(e){return e instanceof zo}(i)){var a=i;a.resolving&&function dl(e,n){var t=n?". Dependency path: ".concat(n.join(" > ")," > ").concat(e):"";throw new se(-200,"Circular dependency in DI detected for ".concat(e).concat(t))}(ht(o[t]));var u=Iu(a.canSeeViewProviders);a.resolving=!0;var s=a.injectImpl?Tr(a.injectImpl):null;fh(e,r,ne.Default);try{i=e[t]=a.factory(void 0,o,e,r),n.firstCreatePass&&t>=r.directiveStart&&function WD(e,n,t){var r=n.type.prototype,o=r.ngOnInit,a=r.ngDoCheck;if(r.ngOnChanges){var u=Jd(n);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,u),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,u)}o&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,o),a&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,a),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,a))}(t,o[t],n)}finally{null!==s&&Tr(s),Iu(u),a.resolving=!1,ph()}}return i}function oC(e){if("string"==typeof e)return e.charCodeAt(0)||0;var n=e.hasOwnProperty(Ho)?e[Ho]:void 0;return"number"==typeof n?n>=0?255&n:rC:n}function Mh(e,n,t){return!!(t[n+(e>>5)]&1<=e.length?e.push(t):e.splice(n,0,t)}function Vu(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function Yo(e,n){for(var t=[],r=0;r=0?e[1|r]=t:function lC(e,n,t,r){var i=e.length;if(i==n)e.push(t,r);else if(1===i)e.push(r,e[0]),e[0]=t;else{for(i--,e.push(e[i-1],e[i]);i>n;)e[i]=e[i-2],i--;e[n]=t,e[n+1]=r}}(e,r=~r,n,t),r}function ql(e,n){var t=Gi(e,n);if(t>=0)return e[1|t]}function Gi(e,n){return function Oh(e,n,t){for(var r=0,i=e.length>>t;i!==r;){var o=r+(i-r>>1),a=e[o<n?i=o:r=o+1}return~(i<1&&void 0!==arguments[1]?arguments[1]:ne.Default;if(void 0===Xo){var t="";throw new se(203,t)}return null===Xo?zd(e,void 0,n):Xo.get(e,n&ne.Optional?null:void 0,n)}function we(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne.Default;return(oD()||DC)(Q(e),n)}function $l(e){for(var n=[],t=0;t3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=me(n);if(Array.isArray(n))i=n.map(me).join(" -> ");else if("object"==typeof n){var o=[];for(var a in n)if(n.hasOwnProperty(a)){var u=n[a];o.push(a+":"+("string"==typeof u?JSON.stringify(u):me(u)))}i="{".concat(o.join(", "),"}")}return"".concat(t).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(mC,"\n "))}("\n"+e.message,i,t,r),e.ngTokenPath=i,e[Bu]=null,e}var Gu,Uu,Hu=ea(ji("Inject",function(e){return{token:e}}),-1),Ui=ea(ji("Optional"),8),ta=ea(ji("SkipSelf"),4);function zi(e){var n;return(null===(n=function Kl(){if(void 0===Gu&&(Gu=null,Me.trustedTypes))try{Gu=Me.trustedTypes.createPolicy("angular",{createHTML:function(n){return n},createScript:function(n){return n},createScriptURL:function(n){return n}})}catch(e){}return Gu}())||void 0===n?void 0:n.createHTML(e))||e}function jh(e){var n;return(null===(n=function Ql(){if(void 0===Uu&&(Uu=null,Me.trustedTypes))try{Uu=Me.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(n){return n},createScript:function(n){return n},createScriptURL:function(n){return n}})}catch(e){}return Uu}())||void 0===n?void 0:n.createHTML(e))||e}var ri=function(){function e(n){g(this,e),this.changingThisBreaksApplicationSecurity=n}return p(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),e}(),PC=function(e){T(t,e);var n=F(t);function t(){return g(this,t),n.apply(this,arguments)}return p(t,[{key:"getTypeName",value:function(){return"HTML"}}]),t}(ri),RC=function(e){T(t,e);var n=F(t);function t(){return g(this,t),n.apply(this,arguments)}return p(t,[{key:"getTypeName",value:function(){return"Style"}}]),t}(ri),NC=function(e){T(t,e);var n=F(t);function t(){return g(this,t),n.apply(this,arguments)}return p(t,[{key:"getTypeName",value:function(){return"Script"}}]),t}(ri),VC=function(e){T(t,e);var n=F(t);function t(){return g(this,t),n.apply(this,arguments)}return p(t,[{key:"getTypeName",value:function(){return"URL"}}]),t}(ri),LC=function(e){T(t,e);var n=F(t);function t(){return g(this,t),n.apply(this,arguments)}return p(t,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),t}(ri);function tn(e){return e instanceof ri?e.changingThisBreaksApplicationSecurity:e}function er(e,n){var t=qh(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error("Required a safe ".concat(n,", got a ").concat(t," (see https://g.co/ng/security#xss)"))}return t===n}function qh(e){return e instanceof ri&&e.getTypeName()||null}var qC=function(){function e(n){g(this,e),this.inertDocumentHelper=n}return p(e,[{key:"getInertBodyElement",value:function(t){t=""+t;try{var r=(new window.DOMParser).parseFromString(zi(t),"text/html").body;return null===r?this.inertDocumentHelper.getInertBodyElement(t):(r.removeChild(r.firstChild),r)}catch(i){return null}}}]),e}(),zC=function(){function e(n){if(g(this,e),this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);var r=this.inertDocument.createElement("body");t.appendChild(r)}}return p(e,[{key:"getInertBodyElement",value:function(t){var r=this.inertDocument.createElement("template");if("content"in r)return r.innerHTML=zi(t),r;var i=this.inertDocument.createElement("body");return i.innerHTML=zi(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}},{key:"stripCustomNsAttrs",value:function(t){for(var r=t.attributes,i=r.length-1;0"),!0}},{key:"endElement",value:function(t){var r=t.nodeName.toLowerCase();Yl.hasOwnProperty(r)&&!$h.hasOwnProperty(r)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(Yh(t))}},{key:"checkClobberedElement",value:function(t,r){if(r&&(t.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(t.outerHTML));return r}}]),e}(),nb=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,rb=/([^\#-~ |!])/g;function Yh(e){return e.replace(/&/g,"&").replace(nb,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(rb,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}function Jh(e,n){var t=null;try{qu=qu||function zh(e){var n=new zC(e);return function WC(){try{return!!(new window.DOMParser).parseFromString(zi(""),"text/html")}catch(e){return!1}}()?new qC(n):n}(e);var r=n?String(n):"";t=qu.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=t.innerHTML,t=qu.getInertBodyElement(r)}while(r!==o);return zi((new tb).sanitizeChildren(ec(t)||t))}finally{if(t)for(var s=ec(t)||t;s.firstChild;)s.removeChild(s.firstChild)}}function ec(e){return"content"in e&&function ib(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Ie=function(){return(Ie=Ie||{})[Ie.NONE=0]="NONE",Ie[Ie.HTML=1]="HTML",Ie[Ie.STYLE=2]="STYLE",Ie[Ie.SCRIPT=3]="SCRIPT",Ie[Ie.URL=4]="URL",Ie[Ie.RESOURCE_URL=5]="RESOURCE_URL",Ie}();function Wi(e){var n=function oa(){var e=M();return e&&e[12]}();return n?jh(n.sanitize(Ie.HTML,e)||""):er(e,"HTML")?jh(tn(e)):Jh(kl(),W(e))}var nv="__ngContext__";function _t(e,n){e[nv]=n}function nc(e){var n=function aa(e){return e[nv]||null}(e);return n?Array.isArray(n)?n:n.lView:null}function ic(e){return e.ngOriginalError}function Db(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r0&&(e[t-1][4]=r[4]);var o=Vu(e,10+n);!function Pb(e,n){sa(e,n,n[11],2,null,null),n[0]=null,n[6]=null}(r[1],r);var a=o[19];null!==a&&a.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function pv(e,n){if(!(256&n[2])){var t=n[11];Ge(t)&&t.destroyNode&&sa(e,n,t,3,null,null),function Vb(e){var n=e[13];if(!n)return hc(e[1],e);for(;n;){var t=null;if(Yn(n))t=n[13];else{var r=n[10];r&&(t=r)}if(!t){for(;n&&!n[4]&&n!==e;)Yn(n)&&hc(n[1],n),n=n[3];null===n&&(n=e),Yn(n)&&hc(n[1],n),t=n&&n[4]}n=t}}(n)}}function hc(e,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function jb(e,n){var t;if(null!=e&&null!=(t=e.destroyHooks))for(var r=0;r=0?r[i=l]():r[i=-l].unsubscribe(),o+=2}else{var c=r[i=t[o+1]];t[o].call(c)}if(null!==r){for(var f=i+1;fo?"":i[f+1].toLowerCase();var h=8&r?d:null;if(h&&-1!==Av(h,l,0)||2&r&&l!==d){if(Fn(r))return!1;a=!0}}}}else{if(!a&&!Fn(r)&&!Fn(s))return!1;if(a&&Fn(s))continue;a=!1,r=s|1&r}}return Fn(r)||a}function Fn(e){return 0==(1&e)}function Qb(e,n,t,r){if(null===n)return-1;var i=0;if(r||!t){for(var o=!1;i-1)for(t++;t2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+u+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""!==i&&!Fn(a)&&(n+=Ov(o,i),i=""),r=a,o=o||!Fn(r);t++}return""!==i&&(n+=Ov(o,i)),n}var Z={};function V(e){Iv(pe(),M(),Et()+e,Eu())}function Iv(e,n,t,r){if(!r)if(3==(3&n[2])){var o=e.preOrderCheckHooks;null!==o&&Tu(n,o,t)}else{var a=e.preOrderHooks;null!==a&&xu(n,a,0,t)}Ir(t)}function Zu(e,n){return e<<17|n<<2}function On(e){return e>>17&32767}function yc(e){return 2|e}function gr(e){return(131068&e)>>2}function _c(e,n){return-131069&e|n<<2}function Dc(e){return 1|e}function qv(e,n){var t=e.contentQueries;if(null!==t)for(var r=0;r20&&Iv(e,n,20,Eu()),t(r,i)}finally{Ir(o)}}function Wv(e,n,t){if(Cl(n))for(var i=n.directiveEnd,o=n.directiveStart;o2&&void 0!==arguments[2]?arguments[2]:yn,r=n.localNames;if(null!==r)for(var i=n.index+1,o=0;o0;){var t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(u)!=s&&u.push(s),u.push(r,i,a)}}function ep(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function tp(e,n){n.flags|=2,(e.components||(e.components=[])).push(n.index)}function F0(e,n,t){if(t){if(n.exportAs)for(var r=0;r0&&Pc(t)}}function Pc(e){for(var n=sc(e);null!==n;n=lc(n))for(var t=10;t0&&Pc(r)}var a=e[1].components;if(null!==a)for(var u=0;u0&&Pc(s)}}function L0(e,n){var t=Jt(n,e),r=t[1];(function B0(e,n){for(var t=n.length;t1&&void 0!==arguments[1]?arguments[1]:Jo;if(r===Jo){var i=new Error("NullInjectorError: No provider for ".concat(me(t),"!"));throw i.name="NullInjectorError",i}return r}}]),e}(),Hc=new ve("Set Injector scope."),fa={},W0={},jc=void 0;function dp(){return void 0===jc&&(jc=new fp),jc}function hp(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=vp(e,n,t,r);return i._resolveInjectorDefTypes(),i}function vp(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new $0(e,t,n||dp(),r)}var $0=function(){function e(n,t,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;g(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];t&&Xn(t,function(s){return i.processProvider(s,n,t)}),Xn([n],function(s){return i.processInjectorType(s,[],a)}),this.records.set(Bc,Xi(void 0,this));var u=this.records.get(Hc);this.scope=null!=u?u.value:null,this.source=o||("object"==typeof n?null:me(n))}return p(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jo,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ne.Default;this.assertNotDestroyed();var o=Rh(this),a=Tr(void 0);try{if(!(i&ne.SkipSelf)){var u=this.records.get(t);if(void 0===u){var s=tw(t)&&vl(t);u=s&&this.injectableDefInScope(s)?Xi(Gc(t),fa):null,this.records.set(t,u)}if(null!=u)return this.hydrate(t,u)}var l=i&ne.Self?dp():this.parent;return l.get(t,r=i&ne.Optional&&r===Jo?null:r)}catch(f){if("NullInjectorError"===f.name){var c=f[Bu]=f[Bu]||[];if(c.unshift(me(t)),o)throw f;return bC(f,t,"R3InjectorError",this.source)}throw f}finally{Tr(a),Rh(o)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(r){return t.get(r)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(i,o){return t.push(me(o))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new se(205,"")}},{key:"processInjectorType",value:function(t,r,i){var o=this;if(!(t=Q(t)))return!1;var a=Ud(t),u=null==a&&t.ngModule||void 0,s=void 0===u?t:u,f=-1!==i.indexOf(s);if(void 0!==u&&(a=Ud(u)),null==a)return!1;if(null!=a.imports&&!f){var d;i.push(s);try{Xn(a.imports,function(D){o.processInjectorType(D,r,i)&&(void 0===d&&(d=[]),d.push(D))})}finally{}if(void 0!==d)for(var h=function(O){var H=d[O],J=H.ngModule,be=H.providers;Xn(be,function(Le){return o.processProvider(Le,J,be||xe)})},m=0;m0)throw Yo(n,"?"),new se(204,"");var i=function nD(e){var n=e&&(e[gu]||e[qd]);if(n){var t=function rD(e){if(e.hasOwnProperty("name"))return e.name;var n=(""+e).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(t,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(t,'" class.')),n}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new se(204,"")}function pp(e,n,t){var r=void 0;if(eo(e)){var i=Q(e);return ni(i)||Gc(i)}if(gp(e))r=function(){return Q(e.useValue)};else if(function Y0(e){return!(!e||!e.useFactory)}(e))r=function(){return e.useFactory.apply(e,Re($l(e.deps||[])))};else if(function Q0(e){return!(!e||!e.useExisting)}(e))r=function(){return we(Q(e.useExisting))};else{var o=Q(e&&(e.useClass||e.provide));if(!function X0(e){return!!e.deps}(e))return ni(o)||Gc(o);r=function(){return at(o,Re($l(e.deps)))}}return r}function Xi(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:n,multi:t?[]:void 0}}function gp(e){return null!==e&&"object"==typeof e&&_C in e}function eo(e){return"function"==typeof e}function tw(e){return"function"==typeof e||"object"==typeof e&&e instanceof ve}var Ht=function(){var e=function(){function n(){g(this,n)}return p(n,null,[{key:"create",value:function(r,i){var o;if(Array.isArray(r))return hp({name:""},i,r,"");var a=null!==(o=r.name)&&void 0!==o?o:"";return hp({name:a},r.parent,r.providers,a)}}]),n}();return e.THROW_IF_NOT_FOUND=Jo,e.NULL=new fp,e.\u0275prov=ye({token:e,providedIn:"any",factory:function(){return we(Bc)}}),e.__NG_ELEMENT_ID__=-1,e}();function dw(e,n){Au(nc(e)[1],nt())}function Fe(e){for(var n=function Ep(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0,r=[e];n;){var i=void 0;if(xn(e))i=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new se(903,"");i=n.\u0275dir}if(i){if(t){r.push(i);var a=e;a.inputs=qc(e.inputs),a.declaredInputs=qc(e.declaredInputs),a.outputs=qc(e.outputs);var u=i.hostBindings;u&&gw(e,u);var s=i.viewQuery,l=i.contentQueries;if(s&&vw(e,s),l&&pw(e,l),Si(e.inputs,i.inputs),Si(e.declaredInputs,i.declaredInputs),Si(e.outputs,i.outputs),xn(i)&&i.data.animation){var c=e.data;c.animation=(c.animation||[]).concat(i.data.animation)}}var f=i.features;if(f)for(var d=0;d=0;r--){var i=e[r];i.hostVars=n+=i.hostVars,i.hostAttrs=Ou(i.hostAttrs,t=Ou(t,i.hostAttrs))}}(r)}function qc(e){return e===Ai?{}:e===xe?[]:e}function vw(e,n){var t=e.viewQuery;e.viewQuery=t?function(r,i){n(r,i),t(r,i)}:n}function pw(e,n){var t=e.contentQueries;e.contentQueries=t?function(r,i,o){n(r,i,o),t(r,i,o)}:n}function gw(e,n){var t=e.hostBindings;e.hostBindings=t?function(r,i){n(r,i),t(r,i)}:n}var es=null;function to(){if(!es){var e=Me.Symbol;if(e&&e.iterator)es=e.iterator;else for(var n=Object.getOwnPropertyNames(Map.prototype),t=0;t1&&void 0!==arguments[1]?arguments[1]:ne.Default,t=M();if(null===t)return we(e,n);var r=nt();return Eh(r,t,Q(e),n)}function G(e,n,t){var r=M();return Dt(r,Pi(),n)&&function rn(e,n,t,r,i,o,a,u){var c,s=yn(n,t),l=n.inputs;!u&&null!=l&&(c=l[r])?(cp(e,t,c,r,i),Cu(n)&&function w0(e,n){var t=Jt(n,e);16&t[2]||(t[2]|=64)}(t,n.index)):3&n.type&&(r=function b0(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=a?a(i,n.value||"",r):i,Ge(o)?o.setProperty(s,r,i):Nl(r)||(s.setProperty?s.setProperty(r,i):s[r]=i))}(pe(),Ue(),r,e,n,r[11],t,!1),G}function Kc(e,n,t,r,i){var a=i?"class":"style";cp(e,t,n.inputs[a],a,r)}function b(e,n,t,r){var i=M(),o=pe(),a=20+e,u=i[11],s=i[a]=fc(u,n,function zD(){return $.lFrame.currentNamespace}()),l=o.firstCreatePass?function Uw(e,n,t,r,i,o,a){var u=n.consts,l=Qi(n,e,2,i,Or(u,o));return Oc(n,t,l,Or(u,a)),null!==l.attrs&&Xu(l,l.attrs,!1),null!==l.mergedAttrs&&Xu(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(a,o,i,0,n,t,r):o.data[a];Jn(l,!0);var c=l.mergedAttrs;null!==c&&Fu(u,s,c);var f=l.classes;null!==f&&mc(u,s,f);var d=l.styles;null!==d&&Sv(u,s,d),64!=(64&l.flags)&&Wu(o,i,s,l),0===function TD(){return $.lFrame.elementDepthCount}()&&_t(s,i),function xD(){$.lFrame.elementDepthCount++}(),bu(l)&&(xc(o,i,l),Wv(o,l,i)),null!==r&&Fc(i,l)}function w(){var e=nt();Tl()?xl():Jn(e=e.parent,!1);var n=e;!function FD(){$.lFrame.elementDepthCount--}();var t=pe();t.firstCreatePass&&(Au(t,e),Cl(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function QD(e){return 0!=(16&e.flags)}(n)&&Kc(t,n,M(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function YD(e){return 0!=(32&e.flags)}(n)&&Kc(t,n,M(),n.stylesWithoutHost,!1)}function _e(e,n,t,r){b(e,n,t,r),w()}function va(e,n,t){(function zp(e,n,t){var r=M(),i=pe(),o=e+20,a=i.firstCreatePass?function qw(e,n,t,r,i){var o=n.consts,a=Or(o,r),u=Qi(n,e,8,"ng-container",a);return null!==a&&Xu(u,a,!0),Oc(n,t,u,Or(o,i)),null!==n.queries&&n.queries.elementStart(n,u),u}(o,i,r,n,t):i.data[o];Jn(a,!0);var u=r[o]=r[11].createComment("");Wu(i,r,u,a),_t(u,r),bu(a)&&(xc(i,r,a),Wv(i,a,r)),null!=t&&Fc(r,a)})(e,n,t),function Wp(){var e=nt(),n=pe();Tl()?xl():Jn(e=e.parent,!1),n.firstCreatePass&&(Au(n,e),Cl(e)&&n.queries.elementEnd(e))}()}function or(){return M()}function ns(e){return!!e&&"function"==typeof e.then}var Zp=function $p(e){return!!e&&"function"==typeof e.subscribe};function oe(e,n,t,r){var i=M(),o=pe(),a=nt();return function Qp(e,n,t,r,i,o,a,u){var s=bu(r),c=e.firstCreatePass&&up(e),f=n[8],d=ap(n),h=!0;if(3&r.type||u){var m=yn(r,n),_=u?u(m):m,C=d.length,k=u?function(ja){return u(Qe(ja[r.index]))}:r.index;if(Ge(t)){var D=null;if(!u&&s&&(D=function zw(e,n,t,r){var i=e.cleanup;if(null!=i)for(var o=0;os?u[s]:null}"string"==typeof a&&(o+=2)}return null}(e,n,i,r.index)),null!==D)(D.__ngLastListenerFn__||D).__ngNextListenerFn__=o,D.__ngLastListenerFn__=o,h=!1;else{o=Qc(r,n,f,o,!1);var H=t.listen(_,i,o);d.push(o,H),c&&c.push(i,k,C,C+1)}}else o=Qc(r,n,f,o,!0),_.addEventListener(i,o,a),d.push(o),c&&c.push(i,k,C,a)}else o=Qc(r,n,f,o,!1);var be,J=r.outputs;if(h&&null!==J&&(be=J[i])){var Le=be.length;if(Le)for(var Ot=0;Ot0&&void 0!==arguments[0]?arguments[0]:1;return BD(e)}function Ww(e,n){for(var t=null,r=function Yb(e){var n=e.attrs;if(null!=n){var t=n.indexOf(5);if(0==(1&t))return n[t+1]}return null}(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0,r=M(),i=pe(),o=Qi(i,20+e,16,null,t||null);null===o.projection&&(o.projection=n),xl(),64!=(64&o.flags)&&qb(i,r,o)}function ug(e,n,t,r,i){for(var o=e[t+1],a=null===n,u=r?On(o):gr(o),s=!1;0!==u&&(!1===s||a);){var c=e[u+1];Kw(e[u],n)&&(s=!0,e[u+1]=r?Dc(c):yc(c)),u=r?On(c):gr(c)}s&&(e[t+1]=r?yc(o):Dc(o))}function Kw(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Gi(e,n)>=0}var it={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function sg(e){return e.substring(it.key,it.keyEnd)}function Qw(e){return e.substring(it.value,it.valueEnd)}function cg(e,n){var t=it.textEnd,r=it.key=ho(e,n,t);return t===r?-1:(r=it.keyEnd=function eE(e,n,t){for(var r;n=65&&(-33&r)<=90||r>=48&&r<=57);)n++;return n}(e,r,t),r=dg(e,r,t),r=it.value=ho(e,r,t),r=it.valueEnd=function tE(e,n,t){for(var r=-1,i=-1,o=-1,a=n,u=a;a32&&(u=a),o=i,i=r,r=-33&s}return u}(e,r,t),dg(e,r,t))}function ho(e,n,t){for(;n=0;t=cg(n,t))gg(e,sg(n),Qw(n))}function Nn(e,n,t,r){var i=M(),o=pe(),a=pr(2);o.firstUpdatePass&&pg(o,e,a,r),n!==Z&&Dt(i,a,n)&&mg(o,o.data[Et()],i,i[11],e,i[a+1]=function cE(e,n){return null==e||("string"==typeof n?e+=n:"object"==typeof e&&(e=me(tn(e)))),e}(n,t),r,a)}function vg(e,n){return n>=e.expandoStartIndex}function pg(e,n,t,r){var i=e.data;if(null===i[t+1]){var o=i[Et()],a=vg(e,t);_g(o,r)&&null===n&&!a&&(n=!1),n=function iE(e,n,t,r){var i=function Ol(e){var n=$.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e),o=r?n.residualClasses:n.residualStyles;if(null===i)0===(r?n.classBindings:n.styleBindings)&&(t=pa(t=Xc(null,e,n,t,r),n.attrs,r),o=null);else{var u=n.directiveStylingLast;if(-1===u||e[u]!==i)if(t=Xc(i,e,n,t,r),null===o){var l=function oE(e,n,t){var r=t?n.classBindings:n.styleBindings;if(0!==gr(r))return e[On(r)]}(e,n,r);void 0!==l&&Array.isArray(l)&&function aE(e,n,t,r){e[On(t?n.classBindings:n.styleBindings)]=r}(e,n,r,l=pa(l=Xc(null,e,n,l[1],r),n.attrs,r))}else o=function uE(e,n,t){for(var r=void 0,i=n.directiveEnd,o=1+n.directiveStylingLast;o0)&&(l=!0):c=t,i)if(0!==s){var h=On(e[u+1]);e[r+1]=Zu(h,u),0!==h&&(e[h+1]=_c(e[h+1],r)),e[u+1]=function o0(e,n){return 131071&e|n<<17}(e[u+1],r)}else e[r+1]=Zu(u,0),0!==u&&(e[u+1]=_c(e[u+1],r)),u=r;else e[r+1]=Zu(s,0),0===u?u=r:e[s+1]=_c(e[s+1],r),s=r;l&&(e[r+1]=yc(e[r+1])),ug(e,c,r,!0),ug(e,c,r,!1),function Zw(e,n,t,r,i){var o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof n&&Gi(o,n)>=0&&(t[r+1]=Dc(t[r+1]))}(n,c,e,r,o),a=Zu(u,s),o?n.classBindings=a:n.styleBindings=a}(i,o,n,t,a,r)}}function Xc(e,n,t,r,i){var o=null,a=t.directiveEnd,u=t.directiveStylingLast;for(-1===u?u=t.directiveStart:u++;u0;){var s=e[i],l=Array.isArray(s),c=l?s[1]:s,f=null===c,d=t[i+1];d===Z&&(d=f?xe:void 0);var h=f?ql(d,r):c===r?d:void 0;if(l&&!os(h)&&(h=ql(s,r)),os(h)&&(u=h,a))return u;var m=e[i+1];i=a?On(m):gr(m)}if(null!==n){var _=o?n.residualClasses:n.residualStyles;null!=_&&(u=ql(_,r))}return u}function os(e){return void 0!==e}function _g(e,n){return 0!=(e.flags&(n?16:32))}function Y(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=M(),r=pe(),i=e+20,o=r.firstCreatePass?Qi(r,i,1,n,null):r.data[i],a=t[i]=cc(t[11],n);Wu(r,t,a,o),Jn(o,!1)}function on(e){return Mt("",e,""),on}function Mt(e,n,t){var r=M(),i=function ro(e,n,t,r){return Dt(e,Pi(),t)?n+W(t)+r:Z}(r,e,n,t);return i!==Z&&mr(r,Et(),i),Mt}var ui=void 0,xE=["en",[["a","p"],["AM","PM"],ui],[["AM","PM"],ui,ui],[["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"]],ui,[["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"]],ui,[["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}",ui,"{1} 'at' {0}",ui],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function TE(e){var t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===r?1:5}],vo={};function Hg(e){return e in vo||(vo[e]=Me.ng&&Me.ng.common&&Me.ng.common.locales&&Me.ng.common.locales[e]),vo[e]}var P=function(){return(P=P||{})[P.LocaleId=0]="LocaleId",P[P.DayPeriodsFormat=1]="DayPeriodsFormat",P[P.DayPeriodsStandalone=2]="DayPeriodsStandalone",P[P.DaysFormat=3]="DaysFormat",P[P.DaysStandalone=4]="DaysStandalone",P[P.MonthsFormat=5]="MonthsFormat",P[P.MonthsStandalone=6]="MonthsStandalone",P[P.Eras=7]="Eras",P[P.FirstDayOfWeek=8]="FirstDayOfWeek",P[P.WeekendRange=9]="WeekendRange",P[P.DateFormat=10]="DateFormat",P[P.TimeFormat=11]="TimeFormat",P[P.DateTimeFormat=12]="DateTimeFormat",P[P.NumberSymbols=13]="NumberSymbols",P[P.NumberFormats=14]="NumberFormats",P[P.CurrencyCode=15]="CurrencyCode",P[P.CurrencySymbol=16]="CurrencySymbol",P[P.CurrencyName=17]="CurrencyName",P[P.Currencies=18]="Currencies",P[P.Directionality=19]="Directionality",P[P.PluralCase=20]="PluralCase",P[P.ExtraData=21]="ExtraData",P}(),as="en-US";function Mk(e,n,t){var r=pe();if(r.firstCreatePass){var i=xn(e);nf(t,r.data,r.blueprint,i,!0),nf(n,r.data,r.blueprint,i,!1)}}function nf(e,n,t,r,i){if(e=Q(e),Array.isArray(e))for(var o=0;o>20;if(eo(e)||!e.multi){var m=new zo(l,i,S),_=of(s,n,i?f:f+h,d);-1===_?(Ru($o(c,u),a,s),rf(a,e,n.length),n.push(s),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),t.push(m),u.push(m)):(t[_]=m,u[_]=m)}else{var C=of(s,n,f+h,d),k=of(s,n,f,f+h),O=k>=0&&t[k];if(i&&!O||!i&&!(C>=0&&t[C])){Ru($o(c,u),a,s);var H=function Tk(e,n,t,r,i){var o=new zo(e,t,S);return o.multi=[],o.index=n,o.componentProviders=0,fm(o,i,r&&!t),o}(i?Ak:Sk,t.length,i,r,l);!i&&O&&(t[k].providerFactory=H),rf(a,e,n.length,0),n.push(s),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),t.push(H),u.push(H)}else rf(a,e,C>-1?C:k,fm(t[i?k:C],l,!i&&r));!i&&r&&O&&t[k].componentProviders++}}}function rf(e,n,t,r){var i=eo(n),o=function J0(e){return!!e.useClass}(n);if(i||o){var s=(o?Q(n.useClass):n).prototype.ngOnDestroy;if(s){var l=e.destroyHooks||(e.destroyHooks=[]);if(!i&&n.multi){var c=l.indexOf(t);-1===c?l.push(t,[r,s]):l[c+1].push(r,s)}else l.push(t,s)}}}function fm(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function of(e,n,t,r){for(var i=t;i1&&void 0!==arguments[1]?arguments[1]:[];return function(t){t.providersResolver=function(r,i){return Mk(r,i?i(e):e,n)}}}var xk=p(function e(){g(this,e)}),dm=p(function e(){g(this,e)}),Ok=function(){function e(){g(this,e)}return p(e,[{key:"resolveComponentFactory",value:function(t){throw function Fk(e){var n=Error("No component factory found for ".concat(me(e),". Did you add it to @NgModule.entryComponents?"));return n.ngComponent=e,n}(t)}}]),e}(),Da=function(){var e=p(function n(){g(this,n)});return e.NULL=new Ok,e}();function Ik(){return go(nt(),M())}function go(e,n){return new At(yn(e,n))}var At=function(){var e=p(function n(t){g(this,n),this.nativeElement=t});return e.__NG_ELEMENT_ID__=Ik,e}();function Pk(e){return e instanceof At?e.nativeElement:e}var vm=p(function e(){g(this,e)}),Ln=function(){var e=p(function n(){g(this,n)});return e.__NG_ELEMENT_ID__=function(){return function Nk(){var e=M(),t=Jt(nt().index,e);return function Rk(e){return e[11]}(Yn(t)?t:e)}()},e}(),Vk=function(){var e=p(function n(){g(this,n)});return e.\u0275prov=ye({token:e,providedIn:"root",factory:function(){return null}}),e}(),fs=p(function e(n){g(this,e),this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}),Lk=new fs("13.1.3"),uf={};function ds(e,n,t,r){for(var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==t;){var o=n[t.index];if(null!==o&&r.push(Qe(o)),Tn(o))for(var a=10;a-1&&(dc(t,i),Vu(r,i))}this._attachedToViewContainer=!1}pv(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){Qv(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){Rc(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Vc(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function j0(e,n,t){ku(!0);try{Vc(e,n,t)}finally{ku(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new se(902,"");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function Nb(e,n){sa(e,n,n[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new se(902,"");this._appRef=t}}]),e}(),Bk=function(e){T(t,e);var n=F(t);function t(r){var i;return g(this,t),(i=n.call(this,r))._view=r,i}return p(t,[{key:"detectChanges",value:function(){op(this._view)}},{key:"checkNoChanges",value:function(){!function G0(e){ku(!0);try{op(e)}finally{ku(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),t}(Ca),pm=function(e){T(t,e);var n=F(t);function t(r){var i;return g(this,t),(i=n.call(this)).ngModule=r,i}return p(t,[{key:"resolveComponentFactory",value:function(i){var o=mt(i);return new sf(o,this.ngModule)}}]),t}(Da);function gm(e){var n=[];for(var t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}var jk=new ve("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return uv}}),sf=function(e){T(t,e);var n=F(t);function t(r,i){var o;return g(this,t),(o=n.call(this)).componentDef=r,o.ngModule=i,o.componentType=r.type,o.selector=function n0(e){return e.map(t0).join(",")}(r.selectors),o.ngContentSelectors=r.ngContentSelectors?r.ngContentSelectors:[],o.isBoundToModule=!!i,o}return p(t,[{key:"inputs",get:function(){return gm(this.componentDef.inputs)}},{key:"outputs",get:function(){return gm(this.componentDef.outputs)}},{key:"create",value:function(i,o,a,u){var D,O,s=(u=u||this.ngModule)?function Gk(e,n){return{get:function(r,i,o){var a=e.get(r,uf,o);return a!==uf||i===uf?a:n.get(r,i,o)}}}(i,u.injector):i,l=s.get(vm,rh),c=s.get(Vk,null),f=l.createRenderer(null,this.componentDef),d=this.componentDef.selectors[0][0]||"div",h=a?function Kv(e,n,t){if(Ge(e))return e.selectRootElement(n,t===Qn.ShadowDom);var i="string"==typeof n?e.querySelector(n):n;return i.textContent="",i}(f,a,this.componentDef.encapsulation):fc(l.createRenderer(null,this.componentDef),d,function Hk(e){var n=e.toLowerCase();return"svg"===n?"http://www.w3.org/2000/svg":"math"===n?"http://www.w3.org/1998/MathML/":null}(d)),m=this.componentDef.onPush?576:528,_=function wp(e,n){return{components:[],scheduler:e||uv,clean:U0,playerHandler:n||null,flags:0}}(),C=Yu(0,null,null,1,0,null,null,null,null,null),k=la(null,C,_,m,null,null,l,f,c,s);Mu(k);try{var H=function Cp(e,n,t,r,i,o){var a=t[1];t[20]=e;var s=Qi(a,20,2,"#host",null),l=s.mergedAttrs=n.hostAttrs;null!==l&&(Xu(s,l,!0),null!==e&&(Fu(i,e,l),null!==s.classes&&mc(i,e,s.classes),null!==s.styles&&Sv(i,e,s.styles)));var c=r.createRenderer(e,n),f=la(t,$v(n),null,n.onPush?64:16,t[20],s,r,c,o||null,null);return a.firstCreatePass&&(Ru($o(s,t),a,n.type),tp(a,s),np(s,t.length,1)),Ju(t,f),t[20]=f}(h,this.componentDef,k,l,f);if(h)if(a)Fu(f,h,["ng-version",Lk.full]);else{var J=function r0(e){for(var n=[],t=[],r=1,i=2;r0&&mc(f,h,Le.join(" "))}if(O=Ml(C,20),void 0!==o)for(var Ot=O.projection=[],an=0;an1&&void 0!==arguments[1]?arguments[1]:Ht.THROW_IF_NOT_FOUND,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ne.Default;return i===Ht||i===mo||i===Bc?this:this._r3Injector.get(i,o,a)}},{key:"destroy",value:function(){var i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(function(o){return o()}),this.destroyCbs=null}},{key:"onDestroy",value:function(i){this.destroyCbs.push(i)}}]),t}(mo),lf=function(e){T(t,e);var n=F(t);function t(r){var i;return g(this,t),(i=n.call(this)).moduleType=r,null!==vn(r)&&function $k(e){var n=new Set;!function t(r){var i=vn(r,!0),o=i.id;null!==o&&(function mm(e,n,t){if(n&&n!==t)throw new Error("Duplicate module registered for ".concat(e," - ").concat(me(n)," vs ").concat(me(n.name)))}(o,yo.get(o),r),yo.set(o,r));var l,s=ct(nr(i.imports));try{for(s.s();!(l=s.n()).done;){var c=l.value;n.has(c)||(n.add(c),t(c))}}catch(f){s.e(f)}finally{s.f()}}(e)}(r),i}return p(t,[{key:"create",value:function(i){return new _m(this.moduleType,i)}}]),t}(Wk);function _o(e,n,t,r){return bm(M(),wt(),e,n,t,r)}function hs(e,n,t,r,i){return function wm(e,n,t,r,i,o,a){var u=n+t;return oi(e,u,i,o)?ir(e,u+2,a?r.call(a,i,o):r(i,o)):ba(e,u+2)}(M(),wt(),e,n,t,r,i)}function Dm(e,n,t,r,i,o){return function Em(e,n,t,r,i,o,a,u){var s=n+t;return function ts(e,n,t,r,i){var o=oi(e,n,t,r);return Dt(e,n+2,i)||o}(e,s,i,o,a)?ir(e,s+3,u?r.call(u,i,o,a):r(i,o,a)):ba(e,s+3)}(M(),wt(),e,n,t,r,i,o)}function Cm(e,n,t,r,i,o,a){return function km(e,n,t,r,i,o,a,u,s){var l=n+t;return function Cn(e,n,t,r,i,o){var a=oi(e,n,t,r);return oi(e,n+2,i,o)||a}(e,l,i,o,a,u)?ir(e,l+4,s?r.call(s,i,o,a,u):r(i,o,a,u)):ba(e,l+4)}(M(),wt(),e,n,t,r,i,o,a)}function ba(e,n){var t=e[n];return t===Z?void 0:t}function bm(e,n,t,r,i,o){var a=n+t;return Dt(e,a,i)?ir(e,a+1,o?r.call(o,i):r(i)):ba(e,a+1)}function Vr(e,n){var r,t=pe(),i=e+20;t.firstCreatePass?(r=function e1(e,n){if(n)for(var t=n.length-1;t>=0;t--){var r=n[t];if(e===r.name)return r}}(n,t.pipeRegistry),t.data[i]=r,r.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(i,r.onDestroy)):r=t.data[i];var o=r.factory||(r.factory=ni(r.type)),a=Tr(S);try{var u=Iu(!1),s=o();return Iu(u),function Ew(e,n,t,r){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=r}(t,M(),i,s),s}finally{Tr(a)}}function Lr(e,n,t){var r=e+20,i=M(),o=Ii(i,r);return function wa(e,n){return e[1].data[n].pure}(i,r)?bm(i,wt(),n,o.transform,t,o):o.transform(t)}var o1=function(e){T(t,e);var n=F(t);function t(){var r,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return g(this,t),(r=n.call(this)).__isAsync=i,r}return p(t,[{key:"emit",value:function(i){ue(ce(t.prototype),"next",this).call(this,i)}},{key:"subscribe",value:function(i,o,a){var u,s,l,c=i,f=o||function(){return null},d=a;if(i&&"object"==typeof i){var h=i;c=null===(u=h.next)||void 0===u?void 0:u.bind(h),f=null===(s=h.error)||void 0===s?void 0:s.bind(h),d=null===(l=h.complete)||void 0===l?void 0:l.bind(h)}this.__isAsync&&(f=cf(f),c&&(c=cf(c)),d&&(d=cf(d)));var m=ue(ce(t.prototype),"subscribe",this).call(this,{next:c,error:f,complete:d});return i instanceof x&&i.add(m),m}}]),t}(sr);function cf(e){return function(n){setTimeout(e,void 0,n)}}var Ae=o1;function a1(){return this._results[to()]()}var u1=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];g(this,e),this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var t=to(),r=e.prototype;r[t]||(r[t]=a1)}return p(e,[{key:"changes",get:function(){return this._changes||(this._changes=new Ae)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,r){return this._results.reduce(t,r)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,r){var i=this;i.dirty=!1;var o=_n(t);(this._changesDetected=!function uC(e,n,t){if(e.length!==n.length)return!1;for(var r=0;r0;)this.remove(this.length-1)}},{key:"get",value:function(i){var o=Am(this._lContainer);return null!==o&&o[i]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(i,o,a){var u=i.createEmbeddedView(o||{});return this.insert(u,a),u}},{key:"createComponent",value:function(i,o,a,u,s){var c,l=i&&!function Qo(e){return"function"==typeof e}(i);if(l)c=o;else{var f=o||{};c=f.index,a=f.injector,u=f.projectableNodes,s=f.ngModuleRef}var d=l?i:new sf(mt(i)),h=a||this.parentInjector;if(!s&&null==d.ngModule&&h){var m=h.get(mo,null);m&&(s=m)}var _=d.create(h,u,void 0,s);return this.insert(_.hostView,c),_}},{key:"insert",value:function(i,o){var a=i._lView,u=a[1];if(function AD(e){return Tn(e[3])}(a)){var s=this.indexOf(i);if(-1!==s)this.detach(s);else{var l=a[3],c=new Sm(l,l[6],l[3]);c.detach(c.indexOf(i))}}var f=this._adjustIndex(o),d=this._lContainer;!function Lb(e,n,t,r){var i=10+r,o=t.length;r>0&&(t[i-1][4]=n),r1&&void 0!==arguments[1]?arguments[1]:0;return null==i?this.length+o:i}}]),t}(Bn);function Am(e){return e[8]}function ff(e){return e[8]||(e[8]=[])}function Tm(e,n){var t,r=n[e.index];if(Tn(r))t=r;else{var i;if(8&e.type)i=Qe(r);else{var o=n[11];i=o.createComment("");var a=yn(e,n);ii(o,zu(o,a),i,function Ub(e,n){return Ge(e)?e.nextSibling(n):n.nextSibling}(o,a),!1)}n[e.index]=t=ip(r,n,i,e),Ju(n,t)}return new Sm(t,e,n)}var p1=function(){function e(n){g(this,e),this.queryList=n,this.matches=null}return p(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),g1=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];g(this,e),this.queries=n}return p(e,[{key:"createEmbeddedView",value:function(t){var r=t.queries;if(null!==r){for(var i=null!==t.contentQueries?t.contentQueries[0]:r.length,o=[],a=0;a2&&void 0!==arguments[2]?arguments[2]:null;g(this,e),this.predicate=n,this.flags=t,this.read=r}),m1=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];g(this,e),this.queries=n}return p(e,[{key:"elementStart",value:function(t,r){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:-1;g(this,e),this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}return p(e,[{key:"elementStart",value:function(t,r){this.isApplyingToNode(r)&&this.matchTNode(t,r)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,r){this.elementStart(t,r)}},{key:"embeddedTView",value:function(t,r){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,r),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var r=this._declarationNodeIndex,i=t.parent;null!==i&&8&i.type&&i.index!==r;)i=i.parent;return r===(null!==i?i.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,r){var i=this.metadata.predicate;if(Array.isArray(i))for(var o=0;o0)r.push(a[u/2]);else{for(var l=o[u+1],c=n[-s],f=10;f0&&(u=setTimeout(function(){a._callbacks=a._callbacks.filter(function(s){return s.timeoutId!==u}),r(a._didWork,a.getPendingTasks())},i)),this._callbacks.push({doneCb:r,timeoutId:u,updateCb:o})}},{key:"whenStable",value:function(r,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(r,i,o),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(r,i,o){return[]}}]),n}();return e.\u0275fac=function(t){return new(t||e)(we(jt))},e.\u0275prov=ye({token:e,factory:e.\u0275fac}),e}(),ny=function(){var e=function(){function n(){g(this,n),this._applications=new Map,Mf.addToWindow(this)}return p(n,[{key:"registerApplication",value:function(r,i){this._applications.set(r,i)}},{key:"unregisterApplication",value:function(r){this._applications.delete(r)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(r){return this._applications.get(r)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(r){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Mf.findTestabilityInTree(this,r,i)}}]),n}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ye({token:e,factory:e.\u0275fac}),e}(),X1=function(){function e(){g(this,e)}return p(e,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,r,i){return null}}]),e}(),Mf=new X1;function tM(e,n,t){var r=new lf(t);return Promise.resolve(r)}var ry=new ve("AllowMultipleToken");function rM(e){if(Hn&&!Hn.destroyed&&!Hn.injector.get(ry,!1))throw new se(400,"");Hn=e.get(ay);var t=e.get(Ym,null);return t&&t.forEach(function(r){return r()}),Hn}function iy(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(n),i=new ve(r);return function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=oy();if(!a||a.injector.get(ry,!1))if(e)e(t.concat(o).concat({provide:i,useValue:!0}));else{var u=t.concat(o).concat({provide:i,useValue:!0},{provide:Hc,useValue:"platform"});rM(Ht.create({providers:u,name:r}))}return iM()}}function iM(e){var n=oy();if(!n)throw new se(401,"");return n}function oy(){return Hn&&!Hn.destroyed?Hn:null}var ay=function(){var e=function(){function n(t){g(this,n),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return p(n,[{key:"bootstrapModuleFactory",value:function(r,i){var o=this,l=function oM(e,n){return"noop"===e?new J1:("zone.js"===e?void 0:e)||new jt({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)})}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),c=[{provide:jt,useValue:l}];return l.run(function(){var f=Ht.create({providers:c,parent:o.injector,name:r.moduleType.name}),d=r.create(f),h=d.injector.get($i,null);if(!h)throw new se(402,"");return l.runOutsideAngular(function(){var _=l.onError.subscribe({next:function(k){h.handleError(k)}});d.onDestroy(function(){Sf(o._modules,d),_.unsubscribe()})}),function aM(e,n,t){try{var r=t();return ns(r)?r.catch(function(i){throw n.runOutsideAngular(function(){return e.handleError(i)}),i}):r}catch(i){throw n.runOutsideAngular(function(){return e.handleError(i)}),i}}(h,l,function(){var _=d.injector.get(Co);return _.runInitializers(),_.donePromise.then(function(){return function RE(e){je(e,"Expected localeId to be defined"),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}(d.injector.get(jr,as)||as),o._moduleDoBootstrap(d),d})})})}},{key:"bootstrapModule",value:function(r){var i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=uy({},o);return tM(0,0,r).then(function(u){return i.bootstrapModuleFactory(u,a)})}},{key:"_moduleDoBootstrap",value:function(r){var i=r.injector.get(_s);if(r._bootstrapComponents.length>0)r._bootstrapComponents.forEach(function(a){return i.bootstrap(a)});else{if(!r.instance.ngDoBootstrap)throw new se(403,"");r.instance.ngDoBootstrap(i)}this._modules.push(r)}},{key:"onDestroy",value:function(r){this._destroyListeners.push(r)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new se(404,"");this._modules.slice().forEach(function(i){return i.destroy()}),this._destroyListeners.forEach(function(i){return i()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),n}();return e.\u0275fac=function(t){return new(t||e)(we(Ht))},e.\u0275prov=ye({token:e,factory:e.\u0275fac}),e}();function uy(e,n){return Array.isArray(n)?n.reduce(uy,e):Object.assign(Object.assign({},e),n)}var _s=function(){var e=function(){function n(t,r,i,o,a){var u=this;g(this,n),this._zone=t,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run(function(){u.tick()})}});var s=new ut(function(c){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular(function(){c.next(u._stable),c.complete()})}),l=new ut(function(c){var f;u._zone.runOutsideAngular(function(){f=u._zone.onStable.subscribe(function(){jt.assertNotInAngularZone(),bf(function(){!u._stable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks&&(u._stable=!0,c.next(!0))})})});var d=u._zone.onUnstable.subscribe(function(){jt.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular(function(){c.next(!1)}))});return function(){f.unsubscribe(),d.unsubscribe()}});this.isStable=vu(s,l.pipe(pu()))}return p(n,[{key:"bootstrap",value:function(r,i){var u,o=this;if(!this._initStatus.done)throw new se(405,"");u=r instanceof dm?r:this._componentFactoryResolver.resolveComponentFactory(r),this.componentTypes.push(u.componentType);var s=function nM(e){return e.isBoundToModule}(u)?void 0:this._injector.get(mo),c=u.create(Ht.NULL,[],i||u.selector,s),f=c.location.nativeElement,d=c.injector.get(kf,null),h=d&&c.injector.get(ny);return d&&h&&h.registerApplication(f,d),c.onDestroy(function(){o.detachView(c.hostView),Sf(o.components,c),h&&h.unregisterApplication(f)}),this._loadComponent(c),c}},{key:"tick",value:function(){var r=this;if(this._runningTick)throw new se(101,"");try{this._runningTick=!0;var a,o=ct(this._views);try{for(o.s();!(a=o.n()).done;)a.value.detectChanges()}catch(f){o.e(f)}finally{o.f()}}catch(f){this._zone.runOutsideAngular(function(){return r._exceptionHandler.handleError(f)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(r){var i=r;this._views.push(i),i.attachToAppRef(this)}},{key:"detachView",value:function(r){var i=r;Sf(this._views,i),i.detachFromAppRef()}},{key:"_loadComponent",value:function(r){this.attachView(r.hostView),this.tick(),this.components.push(r),this._injector.get(U1,[]).concat(this._bootstrapListeners).forEach(function(o){return o(r)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(r){return r.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),n}();return e.\u0275fac=function(t){return new(t||e)(we(jt),we(Ht),we($i),we(Da),we(Co))},e.\u0275prov=ye({token:e,factory:e.\u0275fac}),e}();function Sf(e,n){var t=e.indexOf(n);t>-1&&e.splice(t,1)}var Ds=function(){var e=p(function n(){g(this,n)});return e.__NG_ELEMENT_ID__=lM,e}();function lM(e){return function cM(e,n,t){if(Cu(e)&&!t){var r=Jt(e.index,n);return new Ca(r,r)}return 47&e.type?new Ca(n[16],n):null}(nt(),M(),16==(16&e))}var vy=function(){function e(){g(this,e)}return p(e,[{key:"supports",value:function(t){return da(t)}},{key:"create",value:function(t){return new vM(t)}}]),e}(),hM=function(n,t){return t},vM=function(){function e(n){g(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||hM}return p(e,[{key:"forEachItem",value:function(t){var r;for(r=this._itHead;null!==r;r=r._next)t(r)}},{key:"forEachOperation",value:function(t){for(var r=this._itHead,i=this._removalsHead,o=0,a=null;r||i;){var u=!i||r&&r.currentIndex1&&void 0!==arguments[1])||arguments[1],a=t.findTestabilityInTree(i,o);if(null==a)throw new Error("Could not find testability for element.");return a},Me.getAllAngularTestabilities=function(){return t.getAllTestabilities()},Me.getAllAngularRootElements=function(){return t.getAllRootElements()},Me.frameworkStabilizers||(Me.frameworkStabilizers=[]),Me.frameworkStabilizers.push(function(o){var a=Me.getAllAngularTestabilities(),u=a.length,s=!1,l=function(f){s=s||f,0==--u&&o(s)};a.forEach(function(c){c.whenStable(l)})})}},{key:"findTestabilityInTree",value:function(t,r,i){if(null==r)return null;var o=t.getTestability(r);return null!=o?o:i?li().isShadowRoot(r)?this.findTestabilityInTree(t,r.host,!0):this.findTestabilityInTree(t,r.parentElement,!0):null}}],[{key:"init",value:function(){!function eM(e){Mf=e}(new e)}}]),e}(),oA=function(){var e=function(){function n(){g(this,n)}return p(n,[{key:"build",value:function(){return new XMLHttpRequest}}]),n}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ye({token:e,factory:e.\u0275fac}),e}(),Ps=new ve("EventManagerPlugins"),Rs=function(){var e=function(){function n(t,r){var i=this;g(this,n),this._zone=r,this._eventNameToPlugin=new Map,t.forEach(function(o){return o.manager=i}),this._plugins=t.slice().reverse()}return p(n,[{key:"addEventListener",value:function(r,i,o){return this._findPluginFor(i).addEventListener(r,i,o)}},{key:"addGlobalEventListener",value:function(r,i,o){return this._findPluginFor(i).addGlobalEventListener(r,i,o)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(r){var i=this._eventNameToPlugin.get(r);if(i)return i;for(var o=this._plugins,a=0;a-1&&(a.splice(d,1),l+=f+".")}),l+=s,0!=a.length||0===s.length)return null;var c={};return c.domEventName=u,c.fullKey=l,c}},{key:"getEventFullKey",value:function(o){var a="",u=function yA(e){var n=e.key;if(null==n){if(null==(n=e.keyIdentifier))return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===e.location&&zy.hasOwnProperty(n)&&(n=zy[n]))}return pA[n]||n}(o);return" "===(u=u.toLowerCase())?u="space":"."===u&&(u="dot"),qy.forEach(function(s){s!=u&&(0,gA[s])(o)&&(a+=s+".")}),a+=u}},{key:"eventCallback",value:function(o,a,u){return function(s){r.getEventFullKey(s)===o&&u.runGuarded(function(){return a(s)})}}},{key:"_normalizeKey",value:function(o){return"esc"===o?"escape":o}}]),r}(Vy);return e.\u0275fac=function(t){return new(t||e)(we(bn))},e.\u0275prov=ye({token:e,factory:e.\u0275fac}),e}(),bA=[{provide:Cf,useValue:"browser"},{provide:Ym,useValue:function _A(){XS.makeCurrent(),iA.init()},multi:!0},{provide:bn,useFactory:function CA(){return function ED(e){El=e}(document),document},deps:[]}],wA=iy(EM,"browser",bA),EA=[{provide:Hc,useValue:"root"},{provide:$i,useFactory:function DA(){return new $i},deps:[]},{provide:Ps,useClass:hA,multi:!0,deps:[bn,jt,Cf]},{provide:Ps,useClass:mA,multi:!0,deps:[bn]},{provide:Qf,useClass:Qf,deps:[Rs,xa,Ma]},{provide:vm,useExisting:Qf},{provide:Ly,useExisting:xa},{provide:xa,useClass:xa,deps:[bn]},{provide:kf,useClass:kf,deps:[jt]},{provide:Rs,useClass:Rs,deps:[Ps,jt]},{provide:YS,useClass:oA,deps:[]}],kA=function(){var e=function(){function n(t){if(g(this,n),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 p(n,null,[{key:"withServerTransition",value:function(r){return{ngModule:n,providers:[{provide:Ma,useValue:r.appId},{provide:Ny,useExisting:Ma},rA]}}}]),n}();return e.\u0275fac=function(t){return new(t||e)(we(e,12))},e.\u0275mod=hn({type:e}),e.\u0275inj=Qt({providers:EA,imports:[Os,FM]}),e}();"undefined"!=typeof window&&window;var Xf=function(){var e=p(function n(){g(this,n)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ye({token:e,factory:function(t){return t?new(t||e):we(Zy)},providedIn:"root"}),e}(),Zy=function(){var e=function(n){T(r,n);var t=F(r);function r(i){var o;return g(this,r),(o=t.call(this))._doc=i,o}return p(r,[{key:"sanitize",value:function(o,a){if(null==a)return null;switch(o){case Ie.NONE:return a;case Ie.HTML:return er(a,"HTML")?tn(a):Jh(this._doc,String(a)).toString();case Ie.STYLE:return er(a,"Style")?tn(a):a;case Ie.SCRIPT:if(er(a,"Script"))return tn(a);throw new Error("unsafe value used in a script context");case Ie.URL:return qh(a),er(a,"URL")?tn(a):ra(String(a));case Ie.RESOURCE_URL:if(er(a,"ResourceURL"))return tn(a);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(o," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(o){return function BC(e){return new PC(e)}(o)}},{key:"bypassSecurityTrustStyle",value:function(o){return function HC(e){return new RC(e)}(o)}},{key:"bypassSecurityTrustScript",value:function(o){return function jC(e){return new NC(e)}(o)}},{key:"bypassSecurityTrustUrl",value:function(o){return function GC(e){return new VC(e)}(o)}},{key:"bypassSecurityTrustResourceUrl",value:function(o){return function UC(e){return new LC(e)}(o)}}]),r}(Xf);return e.\u0275fac=function(t){return new(t||e)(we(bn))},e.\u0275prov=ye({token:e,factory:function(t){var r;return r=t?new t:function IA(e){return new Zy(e.get(bn))}(we(Ht)),r},providedIn:"root"}),e}();function PA(e,n){if(1&e){var t=or();b(0,"span",7),oe("click",function(i){Xt(t);var o=Ee().$implicit,a=Ee();return i.preventDefault(),a.removeTab(o)}),Y(1," \u274c"),w()}}var RA=function(n){return["nav-item",n]};function NA(e,n){if(1&e){var t=or();b(0,"li",3),oe("keydown",function(o){var u=Xt(t).index;return Ee().keyNavActions(o,u)}),b(1,"a",4),oe("click",function(){return Xt(t).$implicit.active=!0}),b(2,"span",5),Y(3),w(),Ye(4,PA,2,0,"span",6),w(),w()}if(2&e){var r=n.$implicit;Pn("active",r.active)("disabled",r.disabled),G("ngClass",_o(15,RA,r.customClass||"")),V(1),Pn("active",r.active)("disabled",r.disabled),kt("aria-controls",r.id?r.id:"")("aria-selected",!!r.active)("id",r.id?r.id+"-link":""),V(1),G("ngTransclude",r.headingRef),V(1),on(r.heading),V(1),G("ngIf",r.removable)}}var VA=["*"],LA=function(){var e=function(){function n(t){g(this,n),this.viewRef=t}return p(n,[{key:"ngTransclude",get:function(){return this._ngTransclude},set:function(r){this._ngTransclude=r,r&&this.viewRef.createEmbeddedView(r)}}]),n}();return e.\u0275fac=function(t){return new(t||e)(S(Bn))},e.\u0275dir=U({type:e,selectors:[["","ngTransclude",""]],inputs:{ngTransclude:"ngTransclude"}}),e}(),BA=function(){var e=p(function n(){g(this,n),this.type="tabs",this.isKeysAllowed=!0,this.ariaLabel="Tabs"});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ye({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),ed=function(){var e=function(){function n(t,r,i){g(this,n),this.renderer=r,this.elementRef=i,this.clazz=!0,this.tabs=[],this.classMap={},this.ariaLabel="Tabs",this.isDestroyed=!1,this._vertical=!1,this._justified=!1,this._type="tabs",this._isKeysAllowed=!0,Object.assign(this,t)}return p(n,[{key:"vertical",get:function(){return this._vertical},set:function(r){this._vertical=r,this.setClassMap()}},{key:"justified",get:function(){return this._justified},set:function(r){this._justified=r,this.setClassMap()}},{key:"type",get:function(){return this._type},set:function(r){this._type=r,this.setClassMap()}},{key:"isKeysAllowed",get:function(){return this._isKeysAllowed},set:function(r){this._isKeysAllowed=r}},{key:"ngOnDestroy",value:function(){this.isDestroyed=!0}},{key:"addTab",value:function(r){this.tabs.push(r),r.active=1===this.tabs.length&&!r.active}},{key:"removeTab",value:function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{reselect:!0,emit:!0},o=this.tabs.indexOf(r);if(-1!==o&&!this.isDestroyed){if(i.reselect&&r.active&&this.hasAvailableTabs(o)){var a=this.getClosestTabIndex(o);this.tabs[a].active=!0}i.emit&&r.removed.emit(r),this.tabs.splice(o,1),r.elementRef.nativeElement.parentNode&&this.renderer.removeChild(r.elementRef.nativeElement.parentNode,r.elementRef.nativeElement)}}},{key:"keyNavActions",value:function(r,i){if(this.isKeysAllowed){var o=Array.from(this.elementRef.nativeElement.querySelectorAll(".nav-link"));if(13===r.keyCode||"Enter"===r.key||32===r.keyCode||"Space"===r.key)return r.preventDefault(),void o[i%o.length].click();if(39===r.keyCode||"RightArrow"===r.key){var u,s=1;do{u=o[(i+s)%o.length],s++}while(u.classList.contains("disabled"));return void u.focus()}if(37===r.keyCode||"LeftArrow"===r.key){var l,c=1,f=i;do{f-c<0?(l=o[f=o.length-1],c=0):l=o[f-c],c++}while(l.classList.contains("disabled"));return void l.focus()}if(36===r.keyCode||"Home"===r.key){r.preventDefault();var d,h=0;do{d=o[h%o.length],h++}while(d.classList.contains("disabled"));return void d.focus()}if(35===r.keyCode||"End"===r.key){r.preventDefault();var m,_=1,C=i;do{C-_<0?(m=o[C=o.length-1],_=0):m=o[C-_],_++}while(m.classList.contains("disabled"));return void m.focus()}if((46===r.keyCode||"Delete"===r.key)&&this.tabs[i].removable){if(this.removeTab(this.tabs[i]),o[i+1])return void o[(i+1)%o.length].focus();o[o.length-1]&&o[0].focus()}}}},{key:"getClosestTabIndex",value:function(r){var i=this.tabs.length;if(!i)return-1;for(var o=1;o<=i;o+=1){var a=r-o,u=r+o;if(this.tabs[a]&&!this.tabs[a].disabled)return a;if(this.tabs[u]&&!this.tabs[u].disabled)return u}return-1}},{key:"hasAvailableTabs",value:function(r){var i=this.tabs.length;if(!i)return!1;for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,r){return!!this.control&&this.control.hasError(t,r)}},{key:"getError",value:function(t,r){return this.control?this.control.getError(t,r):null}}]),e}(),qr=function(e){T(t,e);var n=F(t);function t(){var r;return g(this,t),(r=n.apply(this,arguments))._parent=null,r.name=null,r.valueAccessor=null,r}return p(t)}(d_),Ft=function(e){T(t,e);var n=F(t);function t(){return g(this,t),n.apply(this,arguments)}return p(t,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),t}(d_),h_=function(){function e(n){g(this,e),this._cd=n}return p(e,[{key:"is",value:function(t){var r,i,o;return"submitted"===t?!!(null===(r=this._cd)||void 0===r?void 0:r.submitted):!!(null===(o=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===o?void 0:o[t])}}]),e}(),di=function(){var e=function(n){T(r,n);var t=F(r);function r(i){return g(this,r),t.call(this,i)}return p(r)}(h_);return e.\u0275fac=function(t){return new(t||e)(S(qr,2))},e.\u0275dir=U({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,r){2&t&&Pn("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))},features:[Fe]}),e}();function Fa(e,n){(function ud(e,n){var t=s_(e);null!==n.validator?e.setValidators(u_(t,n.validator)):"function"==typeof t&&e.setValidators([t]);var r=l_(e);null!==n.asyncValidator?e.setAsyncValidators(u_(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);var i=function(){return e.updateValueAndValidity()};Gs(n._rawValidators,i),Gs(n._rawAsyncValidators,i)})(e,n),n.valueAccessor.writeValue(e.value),function CT(e,n){n.valueAccessor.registerOnChange(function(t){e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&p_(e,n)})}(e,n),function wT(e,n){var t=function(i,o){n.valueAccessor.writeValue(i),o&&n.viewToModelUpdate(i)};e.registerOnChange(t),n._registerOnDestroy(function(){e._unregisterOnChange(t)})}(e,n),function bT(e,n){n.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&p_(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function DT(e,n){if(n.valueAccessor.setDisabledState){var t=function(i){n.valueAccessor.setDisabledState(i)};e.registerOnDisabledChange(t),n._registerOnDestroy(function(){e._unregisterOnDisabledChange(t)})}}(e,n)}function js(e,n){var r=function(){};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),function Us(e,n){var t=!1;if(null!==e){if(null!==n.validator){var r=s_(e);if(Array.isArray(r)&&r.length>0){var i=r.filter(function(s){return s!==n.validator});i.length!==r.length&&(t=!0,e.setValidators(i))}}if(null!==n.asyncValidator){var o=l_(e);if(Array.isArray(o)&&o.length>0){var a=o.filter(function(s){return s!==n.asyncValidator});a.length!==o.length&&(t=!0,e.setAsyncValidators(a))}}}var u=function(){};return Gs(n._rawValidators,u),Gs(n._rawAsyncValidators,u),t}(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function Gs(e,n){e.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function p_(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function sd(e,n){if(!e.hasOwnProperty("model"))return!1;var t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}function ld(e,n){if(!n)return null;Array.isArray(n);var t=void 0,r=void 0,i=void 0;return n.forEach(function(o){o.constructor===td?t=o:function MT(e){return Object.getPrototypeOf(e.constructor)===fi}(o)?r=o:i=o}),i||r||t||null}function qs(e,n){var t=e.indexOf(n);t>-1&&e.splice(t,1)}var Oa="VALID",zs="INVALID",Eo="PENDING",Ia="DISABLED";function fd(e){return(hd(e)?e.validators:e)||null}function y_(e){return Array.isArray(e)?nd(e):e||null}function dd(e,n){return(hd(n)?n.asyncValidators:e)||null}function __(e){return Array.isArray(e)?rd(e):e||null}function hd(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var vd=function(n){return n instanceof gd};function C_(e){return e instanceof Pa?e.value:e.getRawValue()}function b_(e,n){var t=vd(e),r=e.controls;if(!(t?Object.keys(r):r).length)throw new se(1e3,"");if(!r[n])throw new se(1001,"")}function w_(e,n){vd(e),e._forEachChild(function(r,i){if(void 0===n[i])throw new se(1002,"")})}var pd=function(){function e(n,t){g(this,e),this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=n,this._rawAsyncValidators=t,this._composedValidatorFn=y_(this._rawValidators),this._composedAsyncValidatorFn=__(this._rawAsyncValidators)}return p(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===Oa}},{key:"invalid",get:function(){return this.status===zs}},{key:"pending",get:function(){return this.status==Eo}},{key:"disabled",get:function(){return this.status===Ia}},{key:"enabled",get:function(){return this.status!==Ia}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=y_(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=__(t)}},{key:"addValidators",value:function(t){this.setValidators(c_(t,this._rawValidators))}},{key:"addAsyncValidators",value:function(t){this.setAsyncValidators(c_(t,this._rawAsyncValidators))}},{key:"removeValidators",value:function(t){this.setValidators(f_(t,this._rawValidators))}},{key:"removeAsyncValidators",value:function(t){this.setAsyncValidators(f_(t,this._rawAsyncValidators))}},{key:"hasValidator",value:function(t){return Ls(this._rawValidators,t)}},{key:"hasAsyncValidator",value:function(t){return Ls(this._rawAsyncValidators,t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(r){r.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(r){r.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Eo,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=this._parentMarkedDirty(t.onlySelf);this.status=Ia,this.errors=null,this._forEachChild(function(i){i.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:r})),this._onDisabledChange.forEach(function(i){return i(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=this._parentMarkedDirty(t.onlySelf);this.status=Oa,this._forEachChild(function(i){i.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:r})),this._onDisabledChange.forEach(function(i){return i(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Oa||this.status===Eo)&&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)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(r){return r._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?Ia:Oa}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var r=this;if(this.asyncValidator){this.status=Eo,this._hasOwnPendingAsyncValidator=!0;var i=r_(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(function(o){r._hasOwnPendingAsyncValidator=!1,r.setErrors(o,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==r.emitEvent)}},{key:"get",value:function(t){return function ST(e,n,t){if(null==n||(Array.isArray(n)||(n=n.split(t)),Array.isArray(n)&&0===n.length))return null;var r=e;return n.forEach(function(i){r=vd(r)?r.controls.hasOwnProperty(i)?r.controls[i]:null:function(n){return n instanceof TT}(r)&&r.at(i)||null}),r}(this,t,".")}},{key:"getError",value:function(t,r){var i=r?this.get(r):this;return i&&i.errors?i.errors[t]:null}},{key:"hasError",value:function(t,r){return!!this.getError(t,r)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new Ae,this.statusChanges=new Ae}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?Ia:this.errors?zs:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Eo)?Eo:this._anyControlsHaveStatus(zs)?zs:Oa}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(r){return r.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){hd(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),Pa=function(e){T(t,e);var n=F(t);function t(){var r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return g(this,t),(r=n.call(this,fd(o),dd(a,o)))._onChange=[],r._pendingChange=!1,r._applyFormState(i),r._setUpdateStrategy(o),r._initObservables(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!!r.asyncValidator}),r}return p(t,[{key:"setValue",value:function(i){var o=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=i,this._onChange.length&&!1!==a.emitModelToViewChange&&this._onChange.forEach(function(u){return u(o.value,!1!==a.emitViewToModelChange)}),this.updateValueAndValidity(a)}},{key:"patchValue",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(i,o)}},{key:"reset",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(i),this.markAsPristine(o),this.markAsUntouched(o),this.setValue(this.value,o),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(i){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(i){this._onChange.push(i)}},{key:"_unregisterOnChange",value:function(i){qs(this._onChange,i)}},{key:"registerOnDisabledChange",value:function(i){this._onDisabledChange.push(i)}},{key:"_unregisterOnDisabledChange",value:function(i){qs(this._onDisabledChange,i)}},{key:"_forEachChild",value:function(i){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(i){this._isBoxedValue(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}}]),t}(pd),gd=function(e){T(t,e);var n=F(t);function t(r,i,o){var a;return g(this,t),(a=n.call(this,fd(i),dd(o,i))).controls=r,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!!a.asyncValidator}),a}return p(t,[{key:"registerControl",value:function(i,o){return this.controls[i]?this.controls[i]:(this.controls[i]=o,o.setParent(this),o._registerOnCollectionChange(this._onCollectionChange),o)}},{key:"addControl",value:function(i,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(i,o),this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),delete this.controls[i],this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(i,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),delete this.controls[i],o&&this.registerControl(i,o),this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}},{key:"setValue",value:function(i){var o=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};w_(this,i),Object.keys(i).forEach(function(u){b_(o,u),o.controls[u].setValue(i[u],{onlySelf:!0,emitEvent:a.emitEvent})}),this.updateValueAndValidity(a)}},{key:"patchValue",value:function(i){var o=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=i&&(Object.keys(i).forEach(function(u){o.controls[u]&&o.controls[u].patchValue(i[u],{onlySelf:!0,emitEvent:a.emitEvent})}),this.updateValueAndValidity(a))}},{key:"reset",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(a,u){a.reset(i[u],{onlySelf:!0,emitEvent:o.emitEvent})}),this._updatePristine(o),this._updateTouched(o),this.updateValueAndValidity(o)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(i,o,a){return i[a]=C_(o),i})}},{key:"_syncPendingControls",value:function(){var i=this._reduceChildren(!1,function(o,a){return!!a._syncPendingControls()||o});return i&&this.updateValueAndValidity({onlySelf:!0}),i}},{key:"_forEachChild",value:function(i){var o=this;Object.keys(this.controls).forEach(function(a){var u=o.controls[a];u&&i(u,a)})}},{key:"_setUpControls",value:function(){var i=this;this._forEachChild(function(o){o.setParent(i),o._registerOnCollectionChange(i._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(i){for(var o=0,a=Object.keys(this.controls);o0||this.disabled}}]),t}(pd),TT=function(e){T(t,e);var n=F(t);function t(r,i,o){var a;return g(this,t),(a=n.call(this,fd(i),dd(o,i))).controls=r,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!!a.asyncValidator}),a}return p(t,[{key:"at",value:function(i){return this.controls[i]}},{key:"push",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(i,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(i,0,o),this._registerControl(o),this.updateValueAndValidity({emitEvent:a.emitEvent})}},{key:"removeAt",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:o.emitEvent})}},{key:"setControl",value:function(i,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),this.controls.splice(i,1),o&&(this.controls.splice(i,0,o),this._registerControl(o)),this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(i){var o=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};w_(this,i),i.forEach(function(u,s){b_(o,s),o.at(s).setValue(u,{onlySelf:!0,emitEvent:a.emitEvent})}),this.updateValueAndValidity(a)}},{key:"patchValue",value:function(i){var o=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=i&&(i.forEach(function(u,s){o.at(s)&&o.at(s).patchValue(u,{onlySelf:!0,emitEvent:a.emitEvent})}),this.updateValueAndValidity(a))}},{key:"reset",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(a,u){a.reset(i[u],{onlySelf:!0,emitEvent:o.emitEvent})}),this._updatePristine(o),this._updateTouched(o),this.updateValueAndValidity(o)}},{key:"getRawValue",value:function(){return this.controls.map(function(i){return C_(i)})}},{key:"clear",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(o){return o._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}},{key:"_syncPendingControls",value:function(){var i=this.controls.reduce(function(o,a){return!!a._syncPendingControls()||o},!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}},{key:"_forEachChild",value:function(i){this.controls.forEach(function(o,a){i(o,a)})}},{key:"_updateValue",value:function(){var i=this;this.value=this.controls.filter(function(o){return o.enabled||i.disabled}).map(function(o){return o.value})}},{key:"_anyControls",value:function(i){return this.controls.some(function(o){return o.enabled&&i(o)})}},{key:"_setUpControls",value:function(){var i=this;this._forEachChild(function(o){return i._registerControl(o)})}},{key:"_allControlsDisabled",value:function(){var o,i=ct(this.controls);try{for(i.s();!(o=i.n()).done;)if(o.value.enabled)return!1}catch(u){i.e(u)}finally{i.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}}]),t}(pd),OT={provide:qr,useExisting:de(function(){return ko})},M_=function(){return Promise.resolve(null)}(),ko=function(){var e=function(n){T(r,n);var t=F(r);function r(i,o,a,u){var s;return g(this,r),(s=t.call(this)).control=new Pa,s._registered=!1,s.update=new Ae,s._parent=i,s._setValidators(o),s._setAsyncValidators(a),s.valueAccessor=ld(ze(s),u),s}return p(r,[{key:"ngOnChanges",value:function(o){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in o&&this._updateDisabled(o),sd(o,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?function Hs(e,n){return[].concat(Re(n.path),[e])}(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(o){this.viewModel=o,this.update.emit(o)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){Fa(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(o){var a=this;M_.then(function(){a.control.setValue(o,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(o){var a=this,u=o.isDisabled.currentValue,s=""===u||u&&"false"!==u;M_.then(function(){s&&!a.control.disabled?a.control.disable():!s&&a.control.disabled&&a.control.enable()})}}]),r}(qr);return e.\u0275fac=function(t){return new(t||e)(S(Ft,9),S(Ct,10),S(Ur,10),S(Ut,10))},e.\u0275dir=U({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Se([OT]),Fe,gn]}),e}(),A_=function(){var e=p(function n(){g(this,n)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=hn({type:e}),e.\u0275inj=Qt({}),e}(),yd=new ve("NgModelWithFormControlWarning"),LT={provide:qr,useExisting:de(function(){return Ws})},Ws=function(){var e=function(n){T(r,n);var t=F(r);function r(i,o,a,u){var s;return g(this,r),(s=t.call(this))._ngModelWarningConfig=u,s.update=new Ae,s._ngModelWarningSent=!1,s._setValidators(i),s._setAsyncValidators(o),s.valueAccessor=ld(ze(s),a),s}return p(r,[{key:"isDisabled",set:function(o){}},{key:"ngOnChanges",value:function(o){if(this._isControlChanged(o)){var a=o.form.previousValue;a&&js(a,this),Fa(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}sd(o,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&js(this.form,this)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(o){this.viewModel=o,this.update.emit(o)}},{key:"_isControlChanged",value:function(o){return o.hasOwnProperty("form")}}]),r}(qr);return e._ngModelWarningSentOnce=!1,e.\u0275fac=function(t){return new(t||e)(S(Ct,10),S(Ur,10),S(Ut,10),S(yd,8))},e.\u0275dir=U({type:e,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Se([LT]),Fe,gn]}),e}(),q_=function(){var e=p(function n(){g(this,n)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=hn({type:e}),e.\u0275inj=Qt({imports:[[A_]]}),e}(),rx=function(){var e=p(function n(){g(this,n)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=hn({type:e}),e.\u0275inj=Qt({imports:[q_]}),e}(),ix=function(){var e=function(){function n(){g(this,n)}return p(n,null,[{key:"withConfig",value:function(r){return{ngModule:n,providers:[{provide:yd,useValue:r.warnOnNgModelWithFormControl}]}}}]),n}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=hn({type:e}),e.\u0275inj=Qt({imports:[q_]}),e}(),Va=function(e){T(t,e);var n=F(t);function t(r){var i;return g(this,t),(i=n.call(this))._value=r,i}return p(t,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(i){var o=ue(ce(t.prototype),"_subscribe",this).call(this,i);return!o.closed&&i.next(this._value),o}},{key:"getValue",value:function(){var a=this._value;if(this.hasError)throw this.thrownError;return this._throwIfClosed(),a}},{key:"next",value:function(i){ue(ce(t.prototype),"next",this).call(this,this._value=i)}}]),t}(sr);function $s(){for(var e=arguments.length,n=new Array(e),t=0;t2&&void 0!==arguments[2]?arguments[2]:wr;return function(r){z_(n,function(){for(var i=e.length,o=new Array(i),a=i,u=i,s=function(f){z_(n,function(){var d=dn(e[f],n),h=!1;d.subscribe(new bt(r,function(m){o[f]=m,h||(h=!0,u--),u||r.next(t(o.slice()))},function(){--a||r.complete()}))},r)},l=0;l=2,!1,!0))})(cx,[])(e).subscribe(n)})}var fx=function(e){T(t,e);var n=F(t);function t(r,i){return g(this,t),n.call(this)}return p(t,[{key:"schedule",value:function(i){return this}}]),t}(x),Zs={setInterval:function(e){function n(){return e.apply(this,arguments)}return n.toString=function(){return e.toString()},n}(function(){var e=Zs.delegate;return((null==e?void 0:e.setInterval)||setInterval).apply(void 0,arguments)}),clearInterval:function(e){function n(t){return e.apply(this,arguments)}return n.toString=function(){return e.toString()},n}(function(e){var n=Zs.delegate;return((null==n?void 0:n.clearInterval)||clearInterval)(e)}),delegate:void 0},dx=function(e){T(t,e);var n=F(t);function t(r,i){var o;return g(this,t),(o=n.call(this,r,i)).scheduler=r,o.work=i,o.pending=!1,o}return p(t,[{key:"schedule",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=i;var a=this.id,u=this.scheduler;return null!=a&&(this.id=this.recycleAsyncId(u,a,o)),this.pending=!0,this.delay=o,this.id=this.id||this.requestAsyncId(u,this.id,o),this}},{key:"requestAsyncId",value:function(i,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Zs.setInterval(i.flush.bind(i,this),a)}},{key:"recycleAsyncId",value:function(i,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=a&&this.delay===a&&!1===this.pending)return o;Zs.clearInterval(o)}},{key:"execute",value:function(i,o){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var a=this._execute(i,o);if(a)return a;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(i,o){var u,a=!1;try{this.work(i)}catch(s){a=!0,u=s||new Error("Scheduled action threw falsy error")}if(a)return this.unsubscribe(),u}},{key:"unsubscribe",value:function(){if(!this.closed){var i=this.id,o=this.scheduler,a=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,A(a,this),null!=i&&(this.id=this.recycleAsyncId(o,i,null)),this.delay=null,ue(ce(t.prototype),"unsubscribe",this).call(this)}}}]),t}(fx),$_={now:function(){return($_.delegate||Date).now()},delegate:void 0},Md=function(){function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;g(this,e),this.schedulerActionCtor=n,this.now=t}return p(e,[{key:"schedule",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return new this.schedulerActionCtor(this,t).schedule(i,r)}}]),e}();Md.now=$_.now;var hx=function(e){T(t,e);var n=F(t);function t(r){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Md.now;return g(this,t),(i=n.call(this,r,o)).actions=[],i._active=!1,i._scheduled=void 0,i}return p(t,[{key:"flush",value:function(i){var o=this.actions;if(this._active)o.push(i);else{var a;this._active=!0;do{if(a=i.execute(i.state,i.delay))break}while(i=o.shift());if(this._active=!1,a){for(;i=o.shift();)i.unsubscribe();throw a}}}}]),t}(Md),vx=new hx(dx);function Z_(e,n){return gt(function(t,r){var i=0;t.subscribe(new bt(r,function(o){return e.call(n,o,i++)&&r.next(o)}))})}var mx=L(222),Ks=L.n(mx);function K_(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Mo=function(){function e(n,t,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;g(this,e),this.value=n,this.text=t,this.disabled=r,this.data=i,this._parent=o,this.type="option",this.cacheRenderedText=null}return p(e,[{key:"parent",get:function(){return this._parent}},{key:"renderText",value:function(t,r){return(this.cacheHighlightText!==r||null===this.cacheRenderedText)&&(this.cacheHighlightText=r,this.cacheRenderedText=t.bypassSecurityTrustHtml(this.cacheHighlightText?(this.text+"").replace(new RegExp(K_(this.cacheHighlightText),"gi"),"$&"):this.text)),this.cacheRenderedText}}]),e}(),So=function(){function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];g(this,e),this.label=n,this.options=t,this.type="optgroup",this.filter(function(){return!0})}return p(e,[{key:"filter",value:function(t){this.optionsFiltered=this.options.filter(function(r){return t(r)})}}]),e}(),Q_=function(){var e=p(function n(t){g(this,n),this.template=t});return e.\u0275fac=function(t){return new(t||e)(S(Tt))},e.\u0275dir=U({type:e,selectors:[["","ngx-select-option",""]]}),e}(),Y_=function(){var e=p(function n(t){g(this,n),this.template=t});return e.\u0275fac=function(t){return new(t||e)(S(Tt))},e.\u0275dir=U({type:e,selectors:[["","ngx-select-option-selected",""]]}),e}(),J_=function(){var e=p(function n(t){g(this,n),this.template=t});return e.\u0275fac=function(t){return new(t||e)(S(Tt))},e.\u0275dir=U({type:e,selectors:[["","ngx-select-option-not-found",""]]}),e}(),_x=["*"],Dx=function(){var e=function(){function n(t,r,i){g(this,n),this.renderer=t,this.ngZone=r,this.destroy$=new sr,this.choiceMenuEl=i.nativeElement}return p(n,[{key:"position",get:function(){return this.appendTo?"absolute":""}},{key:"ngOnInit",value:function(){var r=this;this.selectionChanges.pipe(function yx(e){return gt(function(n,t){$n(e).subscribe(new bt(t,function(){return t.complete()},He)),!t.closed&&n.subscribe(t)})}(this.destroy$)).subscribe(function(){return r.delayedPositionUpdate()}),this.selectEl=this.choiceMenuEl.parentElement}},{key:"ngOnChanges",value:function(r){var i;(null===(i=r.show)||void 0===i?void 0:i.currentValue)&&this.delayedPositionUpdate()}},{key:"ngOnDestroy",value:function(){this.destroy$.next(),this.appendTo&&(this.renderer.removeChild(this.choiceMenuEl.parentNode,this.choiceMenuEl),this.disposeResizeListener&&this.disposeResizeListener())}},{key:"ngAfterContentInit",value:function(){this.appendTo&&(this.appendChoiceMenu(),this.handleDocumentResize(),this.delayedPositionUpdate())}},{key:"appendChoiceMenu",value:function(){var r=this.getAppendToElement();if(!r)throw new Error("appendTo selector ".concat(this.appendTo," did not found any element"));this.renderer.appendChild(r,this.choiceMenuEl)}},{key:"getAppendToElement",value:function(){return document.querySelector(this.appendTo)}},{key:"handleDocumentResize",value:function(){var r=this;this.disposeResizeListener=this.renderer.listen("window","resize",function(){r.updatePosition()})}},{key:"delayedPositionUpdate",value:function(){var r=this;this.appendTo&&this.ngZone.runOutsideAngular(function(){window.requestAnimationFrame(function(){r.updatePosition()})})}},{key:"updatePosition",value:function(){if(this.show){var r=this.getViewportOffset(this.selectEl),i=this.getParentOffset(this.choiceMenuEl),a=r.left-i.left;this.choiceMenuEl.style.top="".concat(r.top-i.top+r.height,"px"),this.choiceMenuEl.style.bottom="auto",this.choiceMenuEl.style.left="".concat(a,"px"),this.choiceMenuEl.style.width="".concat(r.width,"px"),this.choiceMenuEl.style.minWidth="".concat(r.width,"px")}}},{key:"getStyles",value:function(r){return window.getComputedStyle(r)}},{key:"getStyleProp",value:function(r,i){return this.getStyles(r)[i]}},{key:"isStatic",value:function(r){return"static"===(this.getStyleProp(r,"position")||"static")}},{key:"getOffsetParent",value:function(r){for(var i=r.offsetParent;i&&i!==document.documentElement&&this.isStatic(i);)i=i.offsetParent;return i||document.documentElement}},{key:"getViewportOffset",value:function(r){var i=r.getBoundingClientRect(),o=window.scrollY-document.documentElement.clientTop,a=window.scrollX-document.documentElement.clientLeft;return{height:i.height||r.offsetHeight,width:i.width||r.offsetWidth,top:i.top+o,bottom:i.bottom+o,left:i.left+a,right:i.right+a}}},{key:"getParentOffset",value:function(r){var i={width:0,height:0,top:0,left:0,right:0,bottom:0};if("fixed"===this.getStyleProp(r,"position"))return i;var o=this.getOffsetParent(r);return o!==document.documentElement&&(i=this.getViewportOffset(o)),i.top+=o.clientTop,i.left+=o.clientLeft,i}}]),n}();return e.\u0275fac=function(t){return new(t||e)(S(Ln),S(jt),S(At))},e.\u0275cmp=Nt({type:e,selectors:[["ngx-select-choices"]],hostVars:2,hostBindings:function(t,r){2&t&&Jc("position",r.position)},inputs:{appendTo:"appendTo",show:"show",selectionChanges:"selectionChanges"},features:[gn],ngContentSelectors:_x,decls:1,vars:0,template:function(t,r){1&t&&(rs(),is(0))},encapsulation:2}),e}(),Cx=["main"],bx=["input"],wx=["choiceMenu"];function Ex(e,n){if(1&e&&(b(0,"span",17),_e(1,"span",18),w()),2&e){var t=Ee(2);V(1),G("innerHtml",t.placeholder,Wi)}}var kx=function(n){return{"ngx-select__allow-clear":n}},Mx=function(n,t){return{$implicit:n,index:0,text:t}};function Sx(e,n){if(1&e&&(b(0,"span",19),va(1,20),w()),2&e){var t=Ee(2),r=ai(8);G("ngClass",_o(3,kx,t.allowClear)),V(1),G("ngTemplateOutlet",t.templateSelectedOption||r)("ngTemplateOutletContext",hs(5,Mx,t.optionsSelected[0],t.sanitize(t.optionsSelected[0].text)))}}function Ax(e,n){if(1&e){var t=or();b(0,"a",21),oe("click",function(o){Xt(t);var a=Ee(2);return a.optionRemove(a.optionsSelected[0],o)}),_e(1,"i",22),w()}2&e&&G("ngClass",Ee(2).setBtnSize())}function Tx(e,n){if(1&e){var t=or();b(0,"div",9),b(1,"div",10),oe("click",function(){return Xt(t),Ee().optionsOpen()}),Ye(2,Ex,2,1,"span",11),Ye(3,Sx,2,8,"span",12),b(4,"span",13),Ye(5,Ax,2,1,"a",14),_e(6,"i",15),_e(7,"i",16),w(),w(),w()}if(2&e){var r=Ee();V(1),G("ngClass",r.setFormControlSize(r.setBtnSize())),V(1),G("ngIf",!r.optionsSelected.length),V(1),G("ngIf",r.optionsSelected.length),V(2),G("ngIf",r.canClearNotMultiple())}}var xx=function(n,t,r){return{$implicit:n,index:t,text:r}};function Fx(e,n){if(1&e){var t=or();b(0,"span"),b(1,"span",25),oe("click",function(s){return s.stopPropagation()}),va(2,20),b(3,"a",26),oe("click",function(s){var c=Xt(t).$implicit;return Ee(2).optionRemove(c,s)}),_e(4,"i",22),w(),w(),w()}if(2&e){var r=n.$implicit,i=n.index,o=Ee(2),a=ai(8);V(1),G("ngClass",o.setBtnSize()),V(1),G("ngTemplateOutlet",o.templateSelectedOption||a)("ngTemplateOutletContext",Dm(4,xx,r,i,o.sanitize(r.text))),V(1),G("ngClass",o.setBtnSize())}}function Ox(e,n){if(1&e){var t=or();b(0,"div",23),oe("click",function(){Xt(t);var o=Ee();return o.inputClick(o.inputElRef&&o.inputElRef.value)}),Ye(1,Fx,5,8,"span",24),w()}if(2&e){var r=Ee();V(1),G("ngForOf",r.optionsSelected)("ngForTrackBy",r.trackByOption)}}function Ix(e,n){if(1&e){var t=or();b(0,"input",27,28),oe("keyup",function(o){Xt(t);var a=ai(1);return Ee().inputKeyUp(a.value,o)})("click",function(){Xt(t);var o=ai(1);return Ee().inputClick(o.value)}),w()}if(2&e){var r=Ee();G("ngClass",r.setFormControlSize())("tabindex",!1===r.multiple?-1:0)("disabled",r.disabled)("placeholder",r.optionsSelected.length?"":r.placeholder)("autocomplete",r.autocomplete)}}function Px(e,n){1&e&&_e(0,"div",38)}function Rx(e,n){if(1&e&&(b(0,"div",39),Y(1),w()),2&e){var t=Ee().$implicit,r=Ee(2);V(1),on(r.asGroup(t).label)}}var Nx=function(n,t){return{"ngx-select__item_active active":n,"ngx-select__item_disabled disabled":t}},Vx=function(n,t,r,i){return{$implicit:n,text:t,index:r,subIndex:i}};function Lx(e,n){if(1&e){var t=or();b(0,"a",40,41),oe("mouseenter",function(){var c=Xt(t).$implicit,f=Ee(3);return f.onMouseEnter({activeOption:f.asOpt(c),filteredOptionList:f.optionsFiltered,index:f.optionsFiltered.indexOf(c)})})("click",function(l){var f=Xt(t).$implicit,d=Ee(3);return d.optionSelect(d.asOpt(f),l)}),va(2,20),w()}if(2&e){var r=n.$implicit,i=n.index,o=Ee().index,a=Ee(2),u=ai(8);G("ngClass",hs(3,Nx,a.asOpt(r).active,a.asOpt(r).disabled)),V(2),G("ngTemplateOutlet",a.templateOption||u)("ngTemplateOutletContext",Cm(6,Vx,r,a.asOpt(r).highlightedText,o,i))}}var Bx=function(n){return[n]};function Hx(e,n){if(1&e&&(b(0,"li",34),Ye(1,Px,1,0,"div",35),Ye(2,Rx,2,1,"div",36),Ye(3,Lx,3,11,"a",37),w()),2&e){var t=n.$implicit,r=n.index,i=Ee(2);V(1),G("ngIf","optgroup"===t.type&&r>0),V(1),G("ngIf","optgroup"===t.type),V(1),G("ngForOf",i.asGroup(t).optionsFiltered||_o(4,Bx,t))("ngForTrackBy",i.trackByOption)}}var jx=function(n){return{$implicit:n}};function Gx(e,n){if(1&e&&(b(0,"li",42),va(1,20),w()),2&e){var t=Ee(2),r=ai(10);V(1),G("ngTemplateOutlet",t.templateOptionNotFound||r)("ngTemplateOutletContext",_o(2,jx,t.inputText))}}function Ux(e,n){if(1&e){var t=or();b(0,"ngx-select-choices",29),oe("focusin",function(o){return Xt(t),Ee().choiceMenuFocus(o)}),b(1,"ul",30,31),Ye(3,Hx,4,6,"li",32),Ye(4,Gx,2,4,"li",33),w(),w()}if(2&e){var r=Ee();G("appendTo",r.appendTo)("show",r.showChoiceMenu())("selectionChanges",r.selectionChanges),V(1),Pn("show",r.showChoiceMenu()),G("ngClass",r.dropDownMenuOtherClasses),V(2),G("ngForOf",r.optionsFiltered)("ngForTrackBy",r.trackByOption),V(1),G("ngIf",!r.optionsFiltered.length)}}function qx(e,n){1&e&&_e(0,"span",18),2&e&&G("innerHtml",n.text,Wi)}function zx(e,n){1&e&&Y(0),2&e&&Mt(" ",Ee().noResultsFound," ")}var Wx=function(n,t){return{"ngx-select_multiple form-control":n,"open show":t}},$x=function(n){return{"ngx-select__disabled":n}},X_=new ve("NGX_SELECT_OPTIONS"),pt=function(){return function(e){e[e.first=0]="first",e[e.previous=1]="previous",e[e.next=2]="next",e[e.last=3]="last",e[e.firstSelected=4]="firstSelected",e[e.firstIfOptionActiveInvisible=5]="firstIfOptionActiveInvisible"}(pt||(pt={})),pt}();function hi(e,n){return n in e}var Ao=function(){var e=function(){function n(t,r,i,o){var a=this;g(this,n),this.sanitizer=r,this.cd=i,this.optionValueField="id",this.optionTextField="text",this.optGroupLabelField="label",this.optGroupOptionsField="options",this.multiple=!1,this.allowClear=!1,this.placeholder="",this.noAutoComplete=!1,this.disabled=!1,this.defaultValue=[],this.autoSelectSingleOption=!1,this.autoClearSearch=!1,this.noResultsFound="No results found",this.keepSelectedItems=!1,this.size="default",this.autoActiveOnMouseEnter=!0,this.showOptionNotFoundForEmptyItems=!1,this.isFocused=!1,this.keepSelectMenuOpened=!1,this.autocomplete="off",this.dropDownMenuOtherClasses="",this.noSanitize=!1,this.keyCodeToRemoveSelected="Delete",this.keyCodeToOptionsOpen=["Enter","NumpadEnter"],this.keyCodeToOptionsClose="Escape",this.keyCodeToOptionsSelect=["Enter","NumpadEnter"],this.keyCodeToNavigateFirst="ArrowLeft",this.keyCodeToNavigatePrevious="ArrowUp",this.keyCodeToNavigateNext="ArrowDown",this.keyCodeToNavigateLast="ArrowRight",this.typed=new Ae,this.focus=new Ae,this.blur=new Ae,this.open=new Ae,this.close=new Ae,this.select=new Ae,this.remove=new Ae,this.navigated=new Ae,this.selectionChanges=new Ae,this.optionsOpened=!1,this.actualValue=[],this.subjOptions=new Va([]),this.subjSearchText=new Va(""),this.subjOptionsSelected=new Va([]),this.subjExternalValue=new Va([]),this.subjDefaultValue=new Va([]),this.subjRegisterOnChange=new sr,this._focusToInput=!1,this.asGroup=function(l){return l},this.asOpt=function(l){return l},this.onChange=function(l){return l},this.onTouched=function(){return null},Object.assign(this,o),this.itemsDiffer=t.find([]).create(null),this.defaultValueDiffer=t.find([]).create(null),this.typed.subscribe(function(l){return a.subjSearchText.next(l)}),this.subjOptionsSelected.subscribe(function(l){return a.selectionChanges.emit(l)});var u,s=$s([vu(this.subjExternalValue.pipe(fn(function(l){return u=null===l?[]:[].concat(l)})),this.subjOptionsSelected.pipe(fn(function(l){return l.map(function(c){return c.value})}))),this.subjDefaultValue]).pipe(fn(function(l){var c=ft(l,2),f=c[0],d=c[1],h=Ks()(f,d)?[]:f;return h.length?h:d}),function ax(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wr;return e=null!=e?e:ux,gt(function(t,r){var i,o=!0;t.subscribe(new bt(r,function(a){var u=n(a);(o||!e(i,u))&&(o=!1,i=u,r.next(a))}))})}(function(l,c){return Ks()(l,c)}),pu());$s([s,this.subjRegisterOnChange]).pipe(fn(function(l){return ft(l,1)[0]})).subscribe(function(l){a.actualValue=l,Ks()(l,u)||(u=l,a.onChange(a.multiple?l:l.length?l[0]:null))}),$s([this.subjOptions.pipe(kr(function(l){return dn(l).pipe(kr(function(c){return c instanceof Mo?kd(c):c instanceof So?dn(c.options):Yr}),W_())})),s]).pipe(function px(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vx;return gt(function(t,r){var i=null,o=null,a=null,u=function(){if(i){i.unsubscribe(),i=null;var c=o;o=null,r.next(c)}};function s(){var l=a+e,c=n.now();if(c0&&void 0!==arguments[0]?arguments[0]:{},i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=i?{"form-control-sm input-sm":"small"===this.size,"form-control-lg input-lg":"large"===this.size}:{};return Object.assign(o,r)}},{key:"setBtnSize",value:function(){return{"btn-sm":"small"===this.size,"btn-lg":"large"===this.size}}},{key:"optionsSelected",get:function(){return this.subjOptionsSelected.value}},{key:"mainClicked",value:function(r){r.clickedSelectComponent=this,this.isFocused||(this.isFocused=!0,this.focus.emit())}},{key:"choiceMenuFocus",value:function(r){this.appendTo&&(r.clickedSelectComponent=this)}},{key:"documentClick",value:function(r){r.clickedSelectComponent!==this&&(this.optionsOpened&&(this.optionsClose(),this.cd.detectChanges()),this.isFocused&&(this.isFocused=!1,this.blur.emit()))}},{key:"optionsFilteredFlat",value:function(){var r=this;return this.cacheOptionsFilteredFlat?kd(this.cacheOptionsFilteredFlat):dn(this.optionsFiltered).pipe(kr(function(i){return i instanceof Mo?kd(i):i instanceof So?dn(i.optionsFiltered):Yr}),Z_(function(i){return!i.disabled}),W_(),function gx(e,n,t){var r=Te(e)||n||t?{next:e,error:n,complete:t}:e;return r?gt(function(i,o){var a;null===(a=r.subscribe)||void 0===a||a.call(r);var u=!0;i.subscribe(new bt(o,function(s){var l;null===(l=r.next)||void 0===l||l.call(r,s),o.next(s)},function(){var s;u=!1,null===(s=r.complete)||void 0===s||s.call(r),o.complete()},function(s){var l;u=!1,null===(l=r.error)||void 0===l||l.call(r,s),o.error(s)},function(){var s,l;u&&(null===(s=r.unsubscribe)||void 0===s||s.call(r)),null===(l=r.finalize)||void 0===l||l.call(r)}))}):wr}(function(i){return r.cacheOptionsFilteredFlat=i}))}},{key:"navigateOption",value:function(r){var i=this;this.optionsFilteredFlat().pipe(fn(function(o){var u,a={index:-1,activeOption:null,filteredOptionList:o};switch(r){case pt.first:a.index=0;break;case pt.previous:u=o.indexOf(i.optionActive)-1,a.index=u>=0?u:o.length-1;break;case pt.next:u=o.indexOf(i.optionActive)+1,a.index=u0?s:0}return a.activeOption=o[a.index],a})).subscribe(function(o){return i.optionActivate(o)})}},{key:"ngDoCheck",value:function(){this.itemsDiffer.diff(this.items)&&this.subjOptions.next(this.buildOptions(this.items));var r=this.defaultValue?[].concat(this.defaultValue):[];this.defaultValueDiffer.diff(r)&&this.subjDefaultValue.next(r)}},{key:"ngAfterContentChecked",value:function(){if(this._focusToInput&&this.checkInputVisibility()&&this.inputElRef&&this.inputElRef.nativeElement!==document.activeElement&&(this._focusToInput=!1,this.inputElRef.nativeElement.focus()),this.choiceMenuElRef){var i=this.choiceMenuElRef.nativeElement.querySelector("a.ngx-select__item_active.active");i&&i.offsetHeight>0&&this.ensureVisibleElement(i)}}},{key:"ngOnDestroy",value:function(){this.cd.detach()}},{key:"canClearNotMultiple",value:function(){return this.allowClear&&!!this.subjOptionsSelected.value.length&&(!this.subjDefaultValue.value.length||this.subjDefaultValue.value[0]!==this.actualValue[0])}},{key:"focusToInput",value:function(){this._focusToInput=!0}},{key:"inputKeyDown",value:function(r){var i=[].concat(this.keyCodeToOptionsSelect,this.keyCodeToNavigateFirst,this.keyCodeToNavigatePrevious,this.keyCodeToNavigateNext,this.keyCodeToNavigateLast),o=[].concat(this.keyCodeToOptionsOpen,this.keyCodeToRemoveSelected);if(this.optionsOpened&&-1!==i.indexOf(r.code))switch(r.preventDefault(),r.stopPropagation(),r.code){case[].concat(this.keyCodeToOptionsSelect).indexOf(r.code)+1&&r.code:this.optionSelect(this.optionActive),this.navigateOption(pt.next);break;case this.keyCodeToNavigateFirst:this.navigateOption(pt.first);break;case this.keyCodeToNavigatePrevious:this.navigateOption(pt.previous);break;case this.keyCodeToNavigateLast:this.navigateOption(pt.last);break;case this.keyCodeToNavigateNext:this.navigateOption(pt.next)}else if(!this.optionsOpened&&-1!==o.indexOf(r.code))switch(r.preventDefault(),r.stopPropagation(),r.code){case[].concat(this.keyCodeToOptionsOpen).indexOf(r.code)+1&&r.code:this.optionsOpen();break;case this.keyCodeToRemoveSelected:(this.multiple||this.canClearNotMultiple())&&this.optionRemove(this.subjOptionsSelected.value[this.subjOptionsSelected.value.length-1],r)}}},{key:"trackByOption",value:function(r,i){return i instanceof Mo?i.value:i instanceof So?i.label:i}},{key:"checkInputVisibility",value:function(){return!0===this.multiple||this.optionsOpened&&!this.noAutoComplete}},{key:"inputKeyUp",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1?arguments[1]:void 0;i.code===this.keyCodeToOptionsClose?this.optionsClose():this.optionsOpened&&-1===["ArrowDown","ArrowUp","ArrowLeft","ArrowDown"].indexOf(i.code)?this.typed.emit(r):!this.optionsOpened&&r&&this.optionsOpen(r)}},{key:"inputClick",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.optionsOpened||this.optionsOpen(r)}},{key:"sanitize",value:function(r){return this.noSanitize?r||null:r?this.sanitizer.bypassSecurityTrustHtml(r):null}},{key:"highlightOption",value:function(r){return r.renderText(this.sanitizer,this.inputElRef?this.inputElRef.nativeElement.value:"")}},{key:"optionSelect",value:function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;i&&(i.preventDefault(),i.stopPropagation()),r&&!r.disabled&&(this.subjOptionsSelected.next((this.multiple?this.subjOptionsSelected.value:[]).concat([r])),this.select.emit(r.value),this.keepSelectMenuOpened||this.optionsClose(),this.onTouched())}},{key:"optionRemove",value:function(r,i){!this.disabled&&r&&(i.stopPropagation(),this.subjOptionsSelected.next((this.multiple?this.subjOptionsSelected.value:[]).filter(function(o){return o!==r})),this.remove.emit(r.value))}},{key:"optionActivate",value:function(r){this.optionActive!==r.activeOption&&(!r.activeOption||!r.activeOption.disabled)&&(this.optionActive&&(this.optionActive.active=!1),this.optionActive=r.activeOption,this.optionActive&&(this.optionActive.active=!0),this.navigated.emit(r),this.cd.detectChanges())}},{key:"onMouseEnter",value:function(r){this.autoActiveOnMouseEnter&&this.optionActivate(r)}},{key:"filterOptions",value:function(r,i,o){var a=this,u=new RegExp(K_(r),"i"),s=function(c){return a.searchCallback?a.searchCallback(r,c):(!r||u.test(c.text))&&(!a.multiple||-1===o.indexOf(c))};return i.filter(function(l){if(l instanceof Mo)return s(l);if(l instanceof So){var c=l;return c.filter(function(f){return s(f)}),c.optionsFiltered.length}})}},{key:"ensureVisibleElement",value:function(r){if(this.choiceMenuElRef&&this.cacheElementOffsetTop!==r.offsetTop){this.cacheElementOffsetTop=r.offsetTop;var i=this.choiceMenuElRef.nativeElement;this.cacheElementOffsetTopi.scrollTop+i.clientHeight&&(i.scrollTop=this.cacheElementOffsetTop+r.offsetHeight-i.clientHeight)}}},{key:"showChoiceMenu",value:function(){return this.optionsOpened&&(!!this.subjOptions.value.length||this.showOptionNotFoundForEmptyItems)}},{key:"optionsOpen",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.disabled||(this.optionsOpened=!0,this.subjSearchText.next(r),this.navigateOption(!this.multiple&&this.subjOptionsSelected.value.length?pt.firstSelected:pt.first),this.focusToInput(),this.open.emit(),this.cd.markForCheck())}},{key:"optionsClose",value:function(){this.optionsOpened=!1,this.close.emit(),this.autoClearSearch&&this.multiple&&this.inputElRef&&(this.inputElRef.nativeElement.value=null)}},{key:"buildOptions",value:function(r){var i=this,o=[];return Array.isArray(r)&&r.forEach(function(a){if("object"==typeof a&&null!==a&&hi(a,i.optGroupLabelField)&&hi(a,i.optGroupOptionsField)&&Array.isArray(a[i.optGroupOptionsField])){var s=new So(a[i.optGroupLabelField]);a[i.optGroupOptionsField].forEach(function(c){var f=i.buildOption(c,s);f&&s.options.push(f)}),o.push(s)}else{var l=i.buildOption(a,null);l&&o.push(l)}}),o}},{key:"buildOption",value:function(r,i){var o,a,u;if("string"==typeof r||"number"==typeof r)o=a=r,u=!1;else{if("object"!=typeof r||null===r||!hi(r,this.optionValueField)&&!hi(r,this.optionTextField))return null;o=hi(r,this.optionValueField)?r[this.optionValueField]:r[this.optionTextField],a=hi(r,this.optionTextField)?r[this.optionTextField]:r[this.optionValueField],u=!!hi(r,"disabled")&&r.disabled}return new Mo(o,a,u,r,i)}},{key:"writeValue",value:function(r){this.subjExternalValue.next(r)}},{key:"registerOnChange",value:function(r){this.onChange=r,this.subjRegisterOnChange.next()}},{key:"registerOnTouched",value:function(r){this.onTouched=r}},{key:"setDisabledState",value:function(r){this.disabled=r,this.cd.markForCheck()}}]),n}();return e.\u0275fac=function(t){return new(t||e)(S(bo),S(Xf),S(Ds),S(X_,8))},e.\u0275cmp=Nt({type:e,selectors:[["ngx-select"]],contentQueries:function(t,r,i){var o;1&t&&(Ea(i,Q_,7,Tt),Ea(i,Y_,7,Tt),Ea(i,J_,7,Tt)),2&t&&(Br(o=Hr())&&(r.templateOption=o.first),Br(o=Hr())&&(r.templateSelectedOption=o.first),Br(o=Hr())&&(r.templateOptionNotFound=o.first))},viewQuery:function(t,r){var i;1&t&&(ps(Cx,7),ps(bx,5),ps(wx,5)),2&t&&(Br(i=Hr())&&(r.mainElRef=i.first),Br(i=Hr())&&(r.inputElRef=i.first),Br(i=Hr())&&(r.choiceMenuElRef=i.first))},hostBindings:function(t,r){1&t&&oe("focusin",function(o){return r.documentClick(o)},!1,oc)("click",function(o){return r.documentClick(o)},!1,oc)},inputs:{items:"items",optionValueField:"optionValueField",optionTextField:"optionTextField",optGroupLabelField:"optGroupLabelField",optGroupOptionsField:"optGroupOptionsField",multiple:"multiple",allowClear:"allowClear",placeholder:"placeholder",noAutoComplete:"noAutoComplete",disabled:"disabled",defaultValue:"defaultValue",autoSelectSingleOption:"autoSelectSingleOption",autoClearSearch:"autoClearSearch",noResultsFound:"noResultsFound",keepSelectedItems:"keepSelectedItems",size:"size",searchCallback:"searchCallback",autoActiveOnMouseEnter:"autoActiveOnMouseEnter",showOptionNotFoundForEmptyItems:"showOptionNotFoundForEmptyItems",isFocused:"isFocused",keepSelectMenuOpened:"keepSelectMenuOpened",autocomplete:"autocomplete",dropDownMenuOtherClasses:"dropDownMenuOtherClasses",noSanitize:"noSanitize",appendTo:"appendTo"},outputs:{typed:"typed",focus:"focus",blur:"blur",open:"open",close:"close",select:"select",remove:"remove",navigated:"navigated",selectionChanges:"selectionChanges"},features:[Se([{provide:Ut,useExisting:de(function(){return e}),multi:!0}])],decls:11,vars:12,consts:[[1,"ngx-select","dropdown",3,"tabindex","ngClass","click","focusin","focus","keydown"],["main",""],[3,"ngClass"],["class","ngx-select__selected",4,"ngIf"],["class","ngx-select__selected",3,"click",4,"ngIf"],["type","text","class","ngx-select__search form-control","autocorrect","off","autocapitalize","off","spellcheck","false","role","combobox",3,"ngClass","tabindex","disabled","placeholder","autocomplete","keyup","click",4,"ngIf"],[3,"appendTo","show","selectionChanges","focusin",4,"ngIf"],["defaultTemplateOption",""],["defaultTemplateOptionNotFound",""],[1,"ngx-select__selected"],[1,"ngx-select__toggle","btn","form-control",3,"ngClass","click"],["class","ngx-select__placeholder text-muted",4,"ngIf"],["class","ngx-select__selected-single pull-left float-left",3,"ngClass",4,"ngIf"],[1,"ngx-select__toggle-buttons"],["class","ngx-select__clear btn btn-sm btn-link",3,"ngClass","click",4,"ngIf"],[1,"dropdown-toggle"],[1,"ngx-select__toggle-caret","caret"],[1,"ngx-select__placeholder","text-muted"],[3,"innerHtml"],[1,"ngx-select__selected-single","pull-left","float-left",3,"ngClass"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ngx-select__clear","btn","btn-sm","btn-link",3,"ngClass","click"],[1,"ngx-select__clear-icon"],[1,"ngx-select__selected",3,"click"],[4,"ngFor","ngForOf","ngForTrackBy"],["tabindex","-1",1,"ngx-select__selected-plural","btn","btn-default","btn-secondary","btn-sm","btn-xs",3,"ngClass","click"],[1,"ngx-select__clear","btn","btn-sm","btn-link","pull-right","float-right",3,"ngClass","click"],["type","text","autocorrect","off","autocapitalize","off","spellcheck","false","role","combobox",1,"ngx-select__search","form-control",3,"ngClass","tabindex","disabled","placeholder","autocomplete","keyup","click"],["input",""],[3,"appendTo","show","selectionChanges","focusin"],["role","menu",1,"ngx-select__choices","dropdown-menu",3,"ngClass"],["choiceMenu",""],["class","ngx-select__item-group","role","menuitem",4,"ngFor","ngForOf","ngForTrackBy"],["class","ngx-select__item ngx-select__item_no-found dropdown-header",4,"ngIf"],["role","menuitem",1,"ngx-select__item-group"],["class","divider dropdown-divider",4,"ngIf"],["class","dropdown-header",4,"ngIf"],["href","#","class","ngx-select__item dropdown-item",3,"ngClass","mouseenter","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"divider","dropdown-divider"],[1,"dropdown-header"],["href","#",1,"ngx-select__item","dropdown-item",3,"ngClass","mouseenter","click"],["choiceItem",""],[1,"ngx-select__item","ngx-select__item_no-found","dropdown-header"]],template:function(t,r){1&t&&(b(0,"div",0,1),oe("click",function(o){return r.mainClicked(o)})("focusin",function(o){return r.mainClicked(o)})("focus",function(){return r.focusToInput()})("keydown",function(o){return r.inputKeyDown(o)}),_e(2,"div",2),Ye(3,Tx,8,4,"div",3),Ye(4,Ox,2,2,"div",4),Ye(5,Ix,2,5,"input",5),Ye(6,Ux,5,9,"ngx-select-choices",6),Ye(7,qx,1,1,"ng-template",null,7,hf),Ye(9,zx,1,1,"ng-template",null,8,hf),w()),2&t&&(G("tabindex",r.disabled?-1:0)("ngClass",r.setFormControlSize(hs(7,Wx,!0===r.multiple,r.optionsOpened&&r.optionsFiltered.length),!0===r.multiple)),V(2),G("ngClass",_o(10,$x,r.disabled)),V(1),G("ngIf",!1===r.multiple&&(!r.optionsOpened||r.noAutoComplete)),V(1),G("ngIf",!0===r.multiple),V(1),G("ngIf",r.checkInputVisibility()),V(1),G("ngIf",r.isFocused))},directives:[jf,Uf,Iy,Gf,Dx],styles:['.ngx-select_multiple[_ngcontent-%COMP%]{height:auto;padding:3px 3px 0}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__search[_ngcontent-%COMP%]{background-color:transparent!important;border:none;outline:none;box-shadow:none;height:1.6666em;padding:0;margin-bottom:3px}.ngx-select__disabled[_ngcontent-%COMP%]{background-color:#eceeef;border-radius:4px;position:absolute;width:100%;height:100%;z-index:5;opacity:.6;top:0;left:0;cursor:not-allowed}.ngx-select__toggle[_ngcontent-%COMP%]{outline:0;position:relative;text-align:left!important;color:#333;background-color:#fff;border-color:#ccc;display:inline-flex;align-items:stretch;justify-content:space-between}.ngx-select__toggle[_ngcontent-%COMP%]:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.ngx-select__toggle-buttons[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center}.ngx-select__toggle-caret[_ngcontent-%COMP%]{position:absolute;height:10px;top:50%;right:10px;margin-top:-2px}.ngx-select__placeholder[_ngcontent-%COMP%]{float:left;max-width:100%;text-overflow:ellipsis;overflow:hidden}.ngx-select__clear[_ngcontent-%COMP%]{margin-right:10px;padding:0;border:none}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__clear[_ngcontent-%COMP%]{line-height:normal;line-height:initial;margin-left:5px;margin-right:0;color:#000;opacity:.5}.ngx-select__clear-icon[_ngcontent-%COMP%]{display:inline-block;font-size:inherit;cursor:pointer;position:relative;width:1em;height:.75em;padding:0}.ngx-select__clear-icon[_ngcontent-%COMP%]:before, .ngx-select__clear-icon[_ngcontent-%COMP%]:after{content:"";position:absolute;border-top:3px solid;width:100%;top:50%;left:0;margin-top:-1px}.ngx-select__clear-icon[_ngcontent-%COMP%]:before{transform:rotate(45deg)}.ngx-select__clear-icon[_ngcontent-%COMP%]:after{transform:rotate(-45deg)}.ngx-select__choices[_ngcontent-%COMP%]{width:100%;height:auto;max-height:200px;overflow-x:hidden;margin-top:0;position:absolute}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__choices[_ngcontent-%COMP%]{margin-top:1px}.ngx-select__item[_ngcontent-%COMP%]{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;white-space:nowrap;cursor:pointer;text-decoration:none}.ngx-select__item_disabled[_ngcontent-%COMP%], .ngx-select__item_no-found[_ngcontent-%COMP%]{cursor:default}.ngx-select__item_active[_ngcontent-%COMP%]{color:#fff;outline:0;background-color:#428bca}.ngx-select__selected-single[_ngcontent-%COMP%], .ngx-select__selected-plural[_ngcontent-%COMP%]{display:inline-flex;align-items:center;overflow:hidden}.ngx-select__selected-single[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .ngx-select__selected-plural[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.ngx-select__selected-plural[_ngcontent-%COMP%]{outline:0;margin:0 3px 3px 0}.input-group[_ngcontent-%COMP%] > .dropdown[_ngcontent-%COMP%]{position:static}'],changeDetection:0}),e}(),Zx=function(){var e=function(){function n(){var t=this;g(this,n),this.items=["Amsterdam","Antwerp","Athens","Barcelona","Berlin","Birmingham","Bradford","Bremen","Brussels","Bucharest","Budapest","Cologne","Copenhagen","Dortmund","Dresden","Dublin","D\xfcsseldorf","Essen","Frankfurt","Genoa","Glasgow","Gothenburg","Hamburg","Hannover","Helsinki","Krak\xf3w","Leeds","Leipzig","Lisbon","London","Madrid","Manchester","Marseille","Milan","Munich","M\xe1laga","Naples","Palermo","Paris","Pozna\u0144","Prague","Riga","Rome","Rotterdam","Seville","Sheffield","Sofia","Stockholm","Stuttgart","The Hague","Turin","Valencia","Vienna","Vilnius","Warsaw","Wroc\u0142aw","Zagreb","Zaragoza","\u0141\xf3d\u017a"],this.ngxControl=new Pa,this.inputTyped=function(r,i){return console.log("SingleDemoComponent.inputTyped",r,i)},this.doFocus=function(){return console.log("SingleDemoComponent.doFocus")},this.doBlur=function(){return console.log("SingleDemoComponent.doBlur")},this.doOpen=function(){return console.log("SingleDemoComponent.doOpen")},this.doClose=function(){return console.log("SingleDemoComponent.doClose")},this.doSelect=function(r){return console.log("SingleDemoComponent.doSelect",r)},this.doRemove=function(r){return console.log("SingleDemoComponent.doRemove",r)},this.doSelectOptions=function(r){return console.log("SingleDemoComponent.doSelectOptions",r)},this._ngxDefaultTimeout=setTimeout(function(){t._ngxDefaultInterval=setInterval(function(){var r=Math.floor(Math.random()*(t.items.length-1));t._ngxDefault=t.items[r]},2e3)},2e3)}return p(n,[{key:"ngOnDestroy",value:function(){clearTimeout(this._ngxDefaultTimeout),clearInterval(this._ngxDefaultInterval)}},{key:"doNgxDefault",value:function(){return this._ngxDefault}}]),n}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Nt({type:e,selectors:[["single-demo"]],decls:13,vars:8,consts:[[1,"example-block"],[1,"example-block__item"],["placeholder","No city selected",3,"formControl","allowClear","defaultValue","items","typed","focus","blur","open","close","select","remove","selectionChanges"],[1,"alert","alert-secondary"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(t,r){1&t&&(b(0,"h3"),Y(1,"Select a single city"),w(),b(2,"div",0),b(3,"div",1),b(4,"ngx-select",2),oe("typed",function(o){return r.inputTyped("ngx-select",o)})("focus",function(){return r.doFocus()})("blur",function(){return r.doBlur()})("open",function(){return r.doOpen()})("close",function(){return r.doClose()})("select",function(o){return r.doSelect(o)})("remove",function(o){return r.doRemove(o)})("selectionChanges",function(o){return r.doSelectOptions(o)}),w(),_e(5,"p"),b(6,"div",3),b(7,"pre"),Y(8),Vr(9,"json"),w(),w(),b(10,"div"),b(11,"button",4),oe("click",function(){return r.ngxControl.disabled?r.ngxControl.enable():r.ngxControl.disable()}),Y(12),w(),w(),w(),w()),2&t&&(V(4),G("formControl",r.ngxControl)("allowClear",!0)("defaultValue",r.doNgxDefault())("items",r.items),V(4),on(Lr(9,6,r.ngxControl.value)),V(4),Mt(" ",r.ngxControl.disabled?"Enable":"Disable"," "))},directives:[Ao,di,Ws],pipes:[ci],encapsulation:2}),e}(),Kx=function(){var e=p(function n(){g(this,n),this.items=["Amsterdam","Antwerp","Athens","Barcelona","Berlin","Birmingham","Bradford","Bremen","Brussels","Bucharest","Budapest","Cologne","Copenhagen","Dortmund","Dresden","Dublin","D\xfcsseldorf","Essen","Frankfurt","Genoa","Glasgow","Gothenburg","Hamburg","Hannover","Helsinki","Leeds","Leipzig","Lisbon","\u0141\xf3d\u017a","London","Krak\xf3w","Madrid","M\xe1laga","Manchester","Marseille","Milan","Munich","Naples","Palermo","Paris","Pozna\u0144","Prague","Riga","Rome","Rotterdam","Seville","Sheffield","Sofia","Stockholm","Stuttgart","The Hague","Turin","Valencia","Vienna","Vilnius","Warsaw","Wroc\u0142aw","Zagreb","Zaragoza"],this.ngxValue=[],this.ngxDisabled=!1,this.doSelectOptions=function(t){return console.log("MultipleDemoComponent.doSelectOptions",t)}});return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Nt({type:e,selectors:[["multiple-demo"]],decls:13,vars:9,consts:[[1,"example-block"],[1,"example-block__item"],["placeholder","No city selected",3,"multiple","items","disabled","ngModel","autoClearSearch","ngModelChange","selectionChanges"],[1,"alert","alert-secondary"],[1,"btn","btn-primary",3,"click"]],template:function(t,r){1&t&&(b(0,"h3"),Y(1,"Select multiple cities"),w(),b(2,"div",0),b(3,"div",1),b(4,"ngx-select",2),oe("ngModelChange",function(o){return r.ngxValue=o})("selectionChanges",function(o){return r.doSelectOptions(o)}),w(),_e(5,"p"),b(6,"div",3),b(7,"pre"),Y(8),Vr(9,"json"),w(),w(),b(10,"div"),b(11,"button",4),oe("click",function(){return r.ngxDisabled=!r.ngxDisabled}),Y(12),w(),w(),w(),w()),2&t&&(V(4),G("multiple",!0)("items",r.items)("disabled",r.ngxDisabled)("ngModel",r.ngxValue)("autoClearSearch",!0),V(4),on(Lr(9,7,r.ngxValue)),V(4),Mt(" ",r.ngxDisabled?"Enable":"Disable"," "))},directives:[Ao,di,ko],pipes:[ci],encapsulation:2}),e}(),Qx=function(){var e=p(function n(){g(this,n),this.items=[{id:100,text:"Austria",children:[{id:54,text:"Vienna"}]},{id:200,text:"Belgium",children:[{id:2,text:"Antwerp"},{id:9,text:"Brussels"}]},{id:300,text:"Bulgaria",children:[{id:48,text:"Sofia"}]},{id:400,text:"Croatia",children:[{id:58,text:"Zagreb"}]},{id:500,text:"Czech Republic",children:[{id:42,text:"Prague"}]},{id:600,text:"Denmark",children:[{id:13,text:"Copenhagen"}]},{id:700,text:"England",children:[{id:6,text:"Birmingham"},{id:7,text:"Bradford"},{id:26,text:"Leeds",disabled:!0},{id:30,text:"London"},{id:34,text:"Manchester"},{id:47,text:"Sheffield"}]},{id:800,text:"Finland",children:[{id:25,text:"Helsinki"}]},{id:900,text:"France",children:[{id:35,text:"Marseille"},{id:40,text:"Paris"}]},{id:1e3,text:"Germany",children:[{id:5,text:"Berlin"},{id:8,text:"Bremen"},{id:12,text:"Cologne"},{id:14,text:"Dortmund"},{id:15,text:"Dresden"},{id:17,text:"D\xfcsseldorf"},{id:18,text:"Essen"},{id:19,text:"Frankfurt"},{id:23,text:"Hamburg"},{id:24,text:"Hannover"},{id:27,text:"Leipzig"},{id:37,text:"Munich"},{id:50,text:"Stuttgart"}]},{id:1100,text:"Greece",children:[{id:3,text:"Athens"}]},{id:1200,text:"Hungary",children:[{id:11,text:"Budapest"}]},{id:1300,text:"Ireland",children:[{id:16,text:"Dublin"}]},{id:1400,text:"Italy",children:[{id:20,text:"Genoa"},{id:36,text:"Milan"},{id:38,text:"Naples"},{id:39,text:"Palermo"},{id:44,text:"Rome"},{id:52,text:"Turin"}]},{id:1500,text:"Latvia",children:[{id:43,text:"Riga"}]},{id:1600,text:"Lithuania",children:[{id:55,text:"Vilnius"}]},{id:1700,text:"Netherlands",children:[{id:1,text:"Amsterdam"},{id:45,text:"Rotterdam"},{id:51,text:"The Hague"}]},{id:1800,text:"Poland",children:[{id:29,text:"\u0141\xf3d\u017a"},{id:31,text:"Krak\xf3w"},{id:41,text:"Pozna\u0144"},{id:56,text:"Warsaw"},{id:57,text:"Wroc\u0142aw"}]},{id:1900,text:"Portugal",children:[{id:28,text:"Lisbon"}]},{id:2e3,text:"Romania",children:[{id:10,text:"Bucharest"}]},{id:2100,text:"Scotland",children:[{id:21,text:"Glasgow"}]},{id:2200,text:"Spain",children:[{id:4,text:"Barcelona"},{id:32,text:"Madrid"},{id:33,text:"M\xe1laga"},{id:46,text:"Seville"},{id:53,text:"Valencia"},{id:59,text:"Zaragoza"}]},{id:2300,text:"Sweden",children:[{id:22,text:"Gothenburg"},{id:49,text:"Stockholm"}]}],this.ngxValue=[],this.ngxDisabled=!1});return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Nt({type:e,selectors:[["children-demo"]],decls:13,vars:8,consts:[[1,"example-block"],[1,"example-block__item"],["optionValueField","id","optionTextField","text","optGroupLabelField","text","optGroupOptionsField","children","placeholder","No city selected",3,"allowClear","items","disabled","ngModel","ngModelChange"],[1,"alert","alert-secondary"],[1,"btn","btn-primary",3,"click"]],template:function(t,r){1&t&&(b(0,"h3"),Y(1,"Select a city by country"),w(),b(2,"div",0),b(3,"div",1),b(4,"ngx-select",2),oe("ngModelChange",function(o){return r.ngxValue=o}),w(),_e(5,"p"),b(6,"div",3),b(7,"pre"),Y(8),Vr(9,"json"),w(),w(),b(10,"div"),b(11,"button",4),oe("click",function(){return r.ngxDisabled=!r.ngxDisabled}),Y(12),w(),w(),w(),w()),2&t&&(V(4),G("allowClear",!0)("items",r.items)("disabled",r.ngxDisabled)("ngModel",r.ngxValue),V(4),on(Lr(9,6,r.ngxValue)),V(4),Mt(" ",r.ngxDisabled?"Enable":"Disable"," "))},directives:[Ao,di,ko],pipes:[ci],encapsulation:2}),e}();function Yx(e,n){if(1&e&&(_e(0,"span",7),_e(1,"span",8),Y(2)),2&e){var t=n.$implicit,r=n.text;Rn(Ee().style("background-color:"+t.value)),V(1),G("innerHtml",r,Wi),V(1),Mt(" (",t.data.hex,") ")}}function Jx(e,n){1&e&&Y(0),2&e&&Mt(' "',n.$implicit,'" not found ')}var Sd,Ad,Xx=[{name:"Blue 10",hex:"#C0E6FF"},{name:"Blue 20",hex:"#7CC7FF"},{name:"Blue 30",hex:"#5AAAFA",disabled:!0},{name:"Blue 40",hex:"#5596E6"},{name:"Blue 50",hex:"#4178BE"},{name:"Blue 60",hex:"#325C80"},{name:"Blue 70",hex:"#264A60"},{name:"Blue 80",hex:"#1D3649"},{name:"Blue 90",hex:"#152935"},{name:"Blue 100",hex:"#010205"},{name:"Green 10",hex:"#C8F08F"},{name:"Green 20",hex:"#B4E051"},{name:"Green 30",hex:"#8CD211"},{name:"Green 40",hex:"#5AA700"},{name:"Green 50",hex:"#4B8400"},{name:"Green 60",hex:"#2D660A"},{name:"Green 70",hex:"#144D14"},{name:"Green 80",hex:"#0A3C02"},{name:"Green 90",hex:"#0C2808"},{name:"Green 100",hex:"#010200"},{name:"Red 10",hex:"#FFD2DD"},{name:"Red 20",hex:"#FFA5B4"},{name:"Red 30",hex:"#FF7D87"},{name:"Red 40",hex:"#FF5050"},{name:"Red 50",hex:"#E71D32"},{name:"Red 60",hex:"#AD1625"},{name:"Red 70",hex:"#8C101C"},{name:"Red 80",hex:"#6E0A1E"},{name:"Red 90",hex:"#4C0A17"},{name:"Red 100",hex:"#040001"},{name:"Yellow 10",hex:"#FDE876"},{name:"Yellow 20",hex:"#FDD600"},{name:"Yellow 30",hex:"#EFC100"},{name:"Yellow 40",hex:"#BE9B00"},{name:"Yellow 50",hex:"#8C7300"},{name:"Yellow 60",hex:"#735F00"},{name:"Yellow 70",hex:"#574A00"},{name:"Yellow 80",hex:"#3C3200"},{name:"Yellow 90",hex:"#281E00"},{name:"Yellow 100",hex:"#020100"}],eF=function(){var e=function(){function n(t){g(this,n),this.sanitizer=t,this.items=Xx,this.ngxValue=[],this.ngxDisabled=!1}return p(n,[{key:"style",value:function(r){return this.sanitizer.bypassSecurityTrustStyle(r)}}]),n}();return e.\u0275fac=function(t){return new(t||e)(S(Xf))},e.\u0275cmp=Nt({type:e,selectors:[["rich-demo"]],decls:15,vars:8,consts:[[1,"example-block"],[1,"example-block__item"],["optionValueField","hex","optionTextField","name","placeholder","No city selected",3,"allowClear","items","disabled","ngModel","ngModelChange"],["ngx-select-option","","ngx-select-option-selected",""],["ngx-select-option-not-found",""],[1,"alert","alert-secondary"],[1,"btn","btn-primary",3,"click"],[1,"color-box"],[3,"innerHtml"]],template:function(t,r){1&t&&(b(0,"h3"),Y(1,"Select a color"),w(),b(2,"div",0),b(3,"div",1),b(4,"ngx-select",2),oe("ngModelChange",function(o){return r.ngxValue=o}),Ye(5,Yx,3,4,"ng-template",3),Ye(6,Jx,1,1,"ng-template",4),w(),_e(7,"p"),b(8,"div",5),b(9,"pre"),Y(10),Vr(11,"json"),w(),w(),b(12,"div"),b(13,"button",6),oe("click",function(){return r.ngxDisabled=!r.ngxDisabled}),Y(14),w(),w(),w(),w()),2&t&&(V(4),G("allowClear",!0)("items",r.items)("disabled",r.ngxDisabled)("ngModel",r.ngxValue),V(6),on(Lr(11,6,r.ngxValue)),V(4),Mt(" ",r.ngxDisabled?"Enable":"Disable"," "))},directives:[Ao,di,ko,Q_,Y_,J_],pipes:[ci],styles:[".color-box{display:inline-block;height:14px;width:14px;margin-right:4px;border:1px solid #000}\n"],encapsulation:2}),e}(),tF=function(){var e=p(function n(){var t=this;g(this,n),this._items=["Amsterdam","Antwerp","Athens","Barcelona","Berlin","Birmingham","Bradford","Bremen","Brussels","Bucharest","Budapest","Cologne","Copenhagen","Dortmund","Dresden","Dublin","D\xfcsseldorf","Essen","Frankfurt","Genoa","Glasgow","Gothenburg","Hamburg","Hannover","Helsinki","Krak\xf3w","Leeds","Leipzig","Lisbon","London","Madrid","Manchester","Marseille","Milan","Munich","M\xe1laga","Naples","Palermo","Paris","Pozna\u0144","Prague","Riga","Rome","Rotterdam","Seville","Sheffield","Sofia","Stockholm","Stuttgart","The Hague","Turin","Valencia","Vienna","Vilnius","Warsaw","Wroc\u0142aw","Zagreb","Zaragoza","\u0141\xf3d\u017a"],this.items=[],this.ngxValue=[],this.ngxDisabled=!1;for(var r=[],i=function(u){t._items.forEach(function(s){return r.push(u+" "+s)})},o=1;o<=20;o++)i(o);this.items=r});return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Nt({type:e,selectors:[["no-autocomplete-demo"]],decls:13,vars:10,consts:[[1,"example-block"],[1,"example-block__item"],["placeholder","No city selected",3,"allowClear","items","noAutoComplete","disabled","ngModel","ngModelChange"],[1,"alert","alert-secondary"],[1,"btn","btn-primary",3,"click"]],template:function(t,r){1&t&&(b(0,"h3"),Y(1),w(),b(2,"div",0),b(3,"div",1),b(4,"ngx-select",2),oe("ngModelChange",function(o){return r.ngxValue=o}),w(),_e(5,"p"),b(6,"div",3),b(7,"pre"),Y(8),Vr(9,"json"),w(),w(),b(10,"div"),b(11,"button",4),oe("click",function(){return r.ngxDisabled=!r.ngxDisabled}),Y(12),w(),w(),w(),w()),2&t&&(V(1),Mt("Select a single city with ",r.items.length," items"),V(3),G("allowClear",!0)("items",r.items)("noAutoComplete",!0)("disabled",r.ngxDisabled)("ngModel",r.ngxValue),V(4),on(Lr(9,8,r.ngxValue)),V(4),Mt(" ",r.ngxDisabled?"Enable":"Disable"," "))},directives:[Ao,di,ko],pipes:[ci],encapsulation:2}),e}(),nF=function(){var e=p(function n(){g(this,n),this.items=["Amsterdam","Antwerp","Athens","Barcelona","Berlin","Birmingham","Bradford","Bremen","Brussels","Bucharest","Budapest","Cologne","Copenhagen"],this.ngxControl1=new Pa,this.ngxControl2=new Pa});return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Nt({type:e,selectors:[["append-to-demo"]],decls:29,vars:12,consts:[[1,"example-block"],[1,"example-block__item"],[1,"card",2,"overflow","hidden","height","80px"],["placeholder","No city selected",3,"formControl","items"],[1,"alert","alert-secondary"],["type","button",1,"btn","btn-primary",3,"click"],["placeholder","No city selected","appendTo","body",3,"formControl","items"]],template:function(t,r){1&t&&(b(0,"h3"),Y(1,"Container with fixed height and hidden overflow"),w(),b(2,"div",0),b(3,"div",1),b(4,"p"),Y(5,"Default"),w(),b(6,"div",2),_e(7,"ngx-select",3),w(),_e(8,"p"),b(9,"div",4),b(10,"pre"),Y(11),Vr(12,"json"),w(),w(),b(13,"div"),b(14,"button",5),oe("click",function(){return r.ngxControl1.disabled?r.ngxControl1.enable():r.ngxControl1.disable()}),Y(15),w(),w(),w(),b(16,"div",1),b(17,"p"),Y(18,"Appended to body"),w(),b(19,"div",2),_e(20,"ngx-select",6),w(),_e(21,"p"),b(22,"div",4),b(23,"pre"),Y(24),Vr(25,"json"),w(),w(),b(26,"div"),b(27,"button",5),oe("click",function(){return r.ngxControl2.disabled?r.ngxControl2.enable():r.ngxControl2.disable()}),Y(28),w(),w(),w(),w()),2&t&&(V(7),G("formControl",r.ngxControl1)("items",r.items),V(4),on(Lr(12,8,r.ngxControl1.value)),V(4),Mt(" ",r.ngxControl1.disabled?"Enable":"Disable"," "),V(5),G("formControl",r.ngxControl2)("items",r.items),V(4),on(Lr(25,10,r.ngxControl2.value)),V(4),Mt(" ",r.ngxControl2.disabled?"Enable":"Disable"," "))},directives:[Ao,di,Ws],pipes:[ci],encapsulation:2}),e}(),rF=null===(Sd=L(693))||void 0===Sd?void 0:Sd.default,iF={single:{heading:"Single",ts:L(276),html:L(726)},multiple:{heading:"Multiple",ts:L(864),html:L(136)},children:{heading:"Children",ts:L(287),html:L(931)},rich:{heading:"Rich",ts:L(821),html:L(429)},noAutoComplete:{heading:"noAutoComplete",ts:L(549),html:L(952)},appendTo:{heading:"appendTo",ts:L(745),html:L(124)}},oF=function(){var e=p(function n(){g(this,n),this.currentHeading="Single",this.tabDesc=iF,this.doc=rF});return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Nt({type:e,selectors:[["select-section"]],decls:24,vars:7,consts:[["heading","Single"],[3,"desc"],["heading","Multiple"],["heading","Children"],["heading","Rich"],["heading","No autocomplete"],["heading","Append to element"],[1,"card","card-block","panel","panel-default","panel-body"],[1,"card-body","doc-api",3,"innerHTML"]],template:function(t,r){1&t&&(b(0,"section"),b(1,"tabset"),b(2,"tab",0),b(3,"sample-section",1),_e(4,"single-demo"),w(),w(),b(5,"tab",2),b(6,"sample-section",1),_e(7,"multiple-demo"),w(),w(),b(8,"tab",3),b(9,"sample-section",1),_e(10,"children-demo"),w(),w(),b(11,"tab",4),b(12,"sample-section",1),_e(13,"rich-demo"),w(),w(),b(14,"tab",5),b(15,"sample-section",1),_e(16,"no-autocomplete-demo"),w(),w(),b(17,"tab",6),b(18,"sample-section",1),_e(19,"append-to-demo"),w(),w(),w(),b(20,"h2"),Y(21,"Documentation"),w(),b(22,"div",7),_e(23,"div",8),w(),w()),2&t&&(V(3),G("desc",r.tabDesc.single),V(3),G("desc",r.tabDesc.multiple),V(3),G("desc",r.tabDesc.children),V(3),G("desc",r.tabDesc.rich),V(3),G("desc",r.tabDesc.noAutoComplete),V(3),G("desc",r.tabDesc.appendTo),V(5),G("innerHTML",r.doc,Wi))},directives:[ed,Ky,GA,Zx,Kx,Qx,eF,tF,nF],styles:["[_nghost-%COMP%]{display:block}"]}),e}(),aF=L(147),uF=null===(Ad=L(151))||void 0===Ad?void 0:Ad.default,sF=function(){var e=function(){function n(){g(this,n),this.gettingStarted=uF,this.p=aF}return p(n,[{key:"ngAfterContentInit",value:function(){setTimeout(function(){"undefined"!=typeof PR&&PR.prettyPrint()},150)}}]),n}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Nt({type:e,selectors:[["app-demo"]],decls:33,vars:2,consts:[[1,"bd-pageheader"],[1,"container"],["href","https://getbootstrap.com/docs/3.3/","target","_blank",1,"badge","badge-light"],["href","https://getbootstrap.com/","target","_blank",1,"badge","badge-light"],["href","https://github.com/optimistex/ngx-select-ex",1,"btn","btn-primary"],[1,"row"],[1,"col-lg-1"],["src","https://ghbtns.com/github-btn.html?user=optimistex&repo=ngx-select-ex&type=star&count=true","frameborder","0","scrolling","0","width","170px","height","20px"],["src","https://ghbtns.com/github-btn.html?user=optimistex&repo=ngx-select-ex&type=fork&count=true","frameborder","0","scrolling","0","width","170px","height","20px"],["id","getting-started",3,"innerHtml"],[1,"footer"],[1,"text-muted","text-center"],["href","https://github.com/optimistex/ngx-select-ex"],["href","https://github.com/optimistex"]],template:function(t,r){1&t&&(b(0,"main",0),b(1,"div",1),b(2,"h1"),Y(3),w(),b(4,"p"),Y(5,"Native Angular2 component for Select"),w(),b(6,"p"),Y(7," Compatible with "),b(8,"a",2),Y(9,"Bootstrap 3"),w(),Y(10," and "),b(11,"b"),b(12,"a",3),Y(13,"Bootstrap 4"),w(),w(),w(),b(14,"a",4),Y(15,"View on GitHub"),w(),b(16,"div",5),b(17,"div",6),_e(18,"iframe",7),w(),b(19,"div",6),_e(20,"iframe",8),w(),w(),w(),w(),b(21,"div",1),_e(22,"section",9),_e(23,"select-section"),w(),b(24,"footer",10),b(25,"div",1),b(26,"p",11),b(27,"a",12),Y(28,"ngx-select-ex"),w(),Y(29," is maintained by "),b(30,"a",13),Y(31,"optimistex"),w(),Y(32,"."),w(),w(),w()),2&t&&(V(3),Mt("ngx-select-ex v",null==r.p?null:r.p.version,""),V(19),G("innerHtml",r.gettingStarted,Wi))},directives:[oF],styles:[""]}),e}(),lF=function(){var e=function(){function n(){g(this,n)}return p(n,null,[{key:"forRoot",value:function(r){return{ngModule:n,providers:[{provide:X_,useValue:r}]}}}]),n}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=hn({type:e}),e.\u0275inj=Qt({imports:[[Os]]}),e}(),cF={provide:Ut,useExisting:de(function(){return fF}),multi:!0},fF=function(){var e=function(){function n(){g(this,n),this.btnCheckboxTrue=!0,this.btnCheckboxFalse=!1,this.state=!1,this.isDisabled=!1,this.onChange=Function.prototype,this.onTouched=Function.prototype}return p(n,[{key:"onClick",value:function(){this.isDisabled||(this.toggle(!this.state),this.onChange(this.value))}},{key:"ngOnInit",value:function(){this.toggle(this.trueValue===this.value)}},{key:"trueValue",get:function(){return void 0===this.btnCheckboxTrue||this.btnCheckboxTrue}},{key:"falseValue",get:function(){return void 0!==this.btnCheckboxFalse&&this.btnCheckboxFalse}},{key:"toggle",value:function(r){this.state=r,this.value=this.state?this.trueValue:this.falseValue}},{key:"writeValue",value:function(r){this.state=this.trueValue===r,this.value=r?this.trueValue:this.falseValue}},{key:"setDisabledState",value:function(r){this.isDisabled=r}},{key:"registerOnChange",value:function(r){this.onChange=r}},{key:"registerOnTouched",value:function(r){this.onTouched=r}}]),n}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=U({type:e,selectors:[["","btnCheckbox",""]],hostVars:3,hostBindings:function(t,r){1&t&&oe("click",function(){return r.onClick()}),2&t&&(kt("aria-pressed",r.state),Pn("active",r.state))},inputs:{btnCheckboxTrue:"btnCheckboxTrue",btnCheckboxFalse:"btnCheckboxFalse"},features:[Se([cF])]}),e}(),dF={provide:Ut,useExisting:de(function(){return eD}),multi:!0},eD=function(){var e=function(){function n(t,r,i,o){g(this,n),this.el=t,this.cdr=r,this.renderer=i,this.group=o,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.uncheckable=!1,this.role="radio",this._disabled=!1,this._hasFocus=!1}return p(n,[{key:"value",get:function(){return this.group?this.group.value:this._value},set:function(r){this.group?this.group.value=r:(this._value=r,this._onChange(r))}},{key:"disabled",get:function(){return this._disabled},set:function(r){this.setDisabledState(r)}},{key:"controlOrGroupDisabled",get:function(){return!!(this.disabled||this.group&&this.group.disabled)||void 0}},{key:"hasDisabledClass",get:function(){return this.controlOrGroupDisabled&&!this.isActive}},{key:"isActive",get:function(){return this.btnRadio===this.value}},{key:"tabindex",get:function(){if(!this.controlOrGroupDisabled)return this.isActive||null==this.group?0:-1}},{key:"hasFocus",get:function(){return this._hasFocus}},{key:"toggleIfAllowed",value:function(){!this.canToggle()||(this.value=this.uncheckable&&this.btnRadio===this.value?void 0:this.btnRadio)}},{key:"onSpacePressed",value:function(r){this.toggleIfAllowed(),r.preventDefault()}},{key:"focus",value:function(){this.el.nativeElement.focus()}},{key:"onFocus",value:function(){this._hasFocus=!0}},{key:"onBlur",value:function(){this._hasFocus=!1,this.onTouched()}},{key:"canToggle",value:function(){return!this.controlOrGroupDisabled&&(this.uncheckable||this.btnRadio!==this.value)}},{key:"ngOnChanges",value:function(r){"uncheckable"in r&&(this.uncheckable=!1!==this.uncheckable&&void 0!==this.uncheckable)}},{key:"_onChange",value:function(r){this.group?this.group.value=r:(this.onTouched(),this.onChange(r))}},{key:"writeValue",value:function(r){this.value=r,this.cdr.markForCheck()}},{key:"registerOnChange",value:function(r){this.onChange=r}},{key:"registerOnTouched",value:function(r){this.onTouched=r}},{key:"setDisabledState",value:function(r){this._disabled=r,r?this.renderer.setAttribute(this.el.nativeElement,"disabled","disabled"):this.renderer.removeAttribute(this.el.nativeElement,"disabled")}}]),n}();return e.\u0275fac=function(t){return new(t||e)(S(At),S(Ds),S(Ln),S(de(function(){return tD}),8))},e.\u0275dir=U({type:e,selectors:[["","btnRadio",""]],hostVars:8,hostBindings:function(t,r){1&t&&oe("click",function(){return r.toggleIfAllowed()})("keydown.space",function(o){return r.onSpacePressed(o)})("focus",function(){return r.onFocus()})("blur",function(){return r.onBlur()}),2&t&&(kt("aria-disabled",r.controlOrGroupDisabled)("aria-checked",r.isActive)("role",r.role)("tabindex",r.tabindex),Pn("disabled",r.hasDisabledClass)("active",r.isActive))},inputs:{btnRadio:"btnRadio",uncheckable:"uncheckable",value:"value",disabled:"disabled"},features:[Se([dF]),gn]}),e}(),hF={provide:Ut,useExisting:de(function(){return tD}),multi:!0},tD=function(){var e=function(){function n(t){g(this,n),this.cdr=t,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.role="radiogroup",this._disabled=!1}return p(n,[{key:"value",get:function(){return this._value},set:function(r){this._value=r,this.onChange(r)}},{key:"disabled",get:function(){return this._disabled}},{key:"tabindex",get:function(){return this._disabled?null:0}},{key:"writeValue",value:function(r){this._value=r,this.cdr.markForCheck()}},{key:"registerOnChange",value:function(r){this.onChange=r}},{key:"registerOnTouched",value:function(r){this.onTouched=r}},{key:"setDisabledState",value:function(r){this.radioButtons&&(this._disabled=r,this.radioButtons.forEach(function(i){i.setDisabledState(r)}),this.cdr.markForCheck())}},{key:"onFocus",value:function(){if(!this._disabled){var r=this.getActiveOrFocusedRadio();if(r)return void r.focus();if(this.radioButtons){var i=this.radioButtons.find(function(o){return!o.disabled});i&&i.focus()}}}},{key:"onBlur",value:function(){this.onTouched&&this.onTouched()}},{key:"selectNext",value:function(r){this.selectInDirection("next"),r.preventDefault()}},{key:"selectPrevious",value:function(r){this.selectInDirection("previous"),r.preventDefault()}},{key:"selectInDirection",value:function(r){if(!this._disabled){var o=this.getActiveOrFocusedRadio();if(o&&this.radioButtons)for(var a=this.radioButtons.toArray(),u=a.indexOf(o),s=i(u,a);s!==u;s=i(s,a))if(a[s].canToggle()){a[s].toggleIfAllowed(),a[s].focus();break}}function i(l,c){var d=(l+("next"===r?1:-1))%c.length;return d<0&&(d=c.length-1),d}}},{key:"getActiveOrFocusedRadio",value:function(){if(this.radioButtons)return this.radioButtons.find(function(r){return r.isActive})||this.radioButtons.find(function(r){return r.hasFocus})}}]),n}();return e.\u0275fac=function(t){return new(t||e)(S(Ds))},e.\u0275dir=U({type:e,selectors:[["","btnRadioGroup",""]],contentQueries:function(t,r,i){var o;1&t&&Ea(i,eD,4),2&t&&Br(o=Hr())&&(r.radioButtons=o)},hostVars:2,hostBindings:function(t,r){1&t&&oe("focus",function(){return r.onFocus()})("blur",function(){return r.onBlur()})("keydown.ArrowRight",function(o){return r.selectNext(o)})("keydown.ArrowDown",function(o){return r.selectNext(o)})("keydown.ArrowLeft",function(o){return r.selectPrevious(o)})("keydown.ArrowUp",function(o){return r.selectPrevious(o)}),2&t&&kt("role",r.role)("tabindex",r.tabindex)},features:[Se([hF])]}),e}(),vF=function(){var e=function(){function n(){g(this,n)}return p(n,null,[{key:"forRoot",value:function(){return{ngModule:n,providers:[]}}}]),n}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=hn({type:e}),e.\u0275inj=Qt({}),e}(),pF=function(){var e=p(function n(){g(this,n)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=hn({type:e,bootstrap:[sF]}),e.\u0275inj=Qt({providers:[],imports:[[kA,Os,rx,ix,lF,HA.forRoot(),vF.forRoot()]]}),e}();(function sM(){false})(),wA().bootstrapModule(pF).catch(function(e){return console.error(e)})},222:function(De,j,L){De=L.nmd(De);var qt="__lodash_hash_undefined__",p=9007199254740991,g="[object Arguments]",zt="[object Array]",_r="[object Boolean]",kn="[object Date]",ze="[object Error]",vi="[object Function]",Wt="[object Map]",et="[object Number]",It="[object Object]",un="[object Promise]",ft="[object RegExp]",sn="[object Set]",ln="[object String]",Wr="[object WeakMap]",Re="[object ArrayBuffer]",at="[object DataView]",ke=/^\[object .+?Constructor\]$/,$e=/^(?:0|[1-9]\d*)$/,ee={};ee["[object Float32Array]"]=ee["[object Float64Array]"]=ee["[object Int8Array]"]=ee["[object Int16Array]"]=ee["[object Int32Array]"]=ee["[object Uint8Array]"]=ee["[object Uint8ClampedArray]"]=ee["[object Uint16Array]"]=ee["[object Uint32Array]"]=!0,ee[g]=ee[zt]=ee[Re]=ee[_r]=ee[at]=ee[kn]=ee[ze]=ee[vi]=ee[Wt]=ee[et]=ee[It]=ee[ft]=ee[sn]=ee[ln]=ee[Wr]=!1;var He="object"==typeof global&&global&&global.Object===Object&&global,Un="object"==typeof self&&self&&self.Object===Object&&self,dt=He||Un||Function("return this")(),cn=j&&!j.nodeType&&j,gi=cn&&De&&!De.nodeType&&De,qn=gi&&gi.exports===cn,br=qn&&He.process,Ga=function(){try{return br&&br.binding&&br.binding("util")}catch(v){}}(),mi=Ga&&Ga.isTypedArray;function Ua(v,y){for(var E=-1,N=null==v?0:v.length;++Ett))return!1;var Ne=te.get(v);if(Ne&&te.get(y))return Ne==y;var Pt=-1,Zt=!0,vt=2&E?new wi:void 0;for(te.set(v,y),te.set(y,v);++Pt-1},Wn.prototype.set=function nu(v,y){var E=this.__data__,N=Ei(E,v);return N<0?(++this.size,E.push([v,y])):E[N][1]=y,this},fr.prototype.clear=function ru(){this.size=0,this.__data__={hash:new cr,map:new(Qr||Wn),string:new cr}},fr.prototype.delete=function iu(v){var y=Mi(this,v).delete(v);return this.size-=y?1:0,y},fr.prototype.get=function ou(v){return Mi(this,v).get(v)},fr.prototype.has=function au(v){return Mi(this,v).has(v)},fr.prototype.set=function $n(v,y){var E=Mi(this,v),N=E.size;return E.set(v,y),this.size+=E.size==N?0:1,this},wi.prototype.add=wi.prototype.push=function tl(v){return this.__data__.set(v,qt),this},wi.prototype.has=function nl(v){return this.__data__.has(v)},Zn.prototype.clear=function uu(){this.__data__=new Wn,this.size=0},Zn.prototype.delete=function rl(v){var y=this.__data__,E=y.delete(v);return this.size=y.size,E},Zn.prototype.get=function il(v){return this.__data__.get(v)},Zn.prototype.has=function Mn(v){return this.__data__.has(v)},Zn.prototype.set=function ol(v,y){var E=this.__data__;if(E instanceof Wn){var N=E.__data__;if(!Qr||N.length<199)return N.push([v,y]),this.size=++E.size,this;E=this.__data__=new fr(N)}return E.set(v,y),this.size=E.size,this};var sl=Js?function(v){return null==v?[]:(v=Object(v),function yi(v,y){for(var E=-1,N=null==v?0:v.length,Ce=0,te=[];++E-1&&v%1==0&&v-1&&v%1==0&&v<=p}function se(v){var y=typeof v;return null!=v&&("object"==y||"function"==y)}function dr(v){return null!=v&&"object"==typeof v}var W=mi?function Qs(v){return function(y){return v(y)}}(mi):function Ro(v){return dr(v)&&fl(v.length)&&!!ee[ki(v)]};function ht(v){return function cl(v){return null!=v&&fl(v.length)&&!Lo(v)}(v)?function kr(v,y){var E=Sr(v),N=!E&&me(v),Ce=!E&&!N&&de(v),te=!E&&!N&&!Ce&&W(v),ge=E||N||Ce||te,tt=ge?function Fo(v,y){for(var E=-1,N=Array(v);++E=0;--X){var K=this.tryEntries[X],ke=K.completion;if("root"===K.tryLoc)return B("end");if(K.tryLoc<=this.prev){var $e=qt.call(K,"catchLoc"),ee=qt.call(K,"finallyLoc");if($e&&ee){if(this.prev=0;--B){var X=this.tryEntries[B];if(X.tryLoc<=this.prev&&qt.call(X,"finallyLoc")&&this.prev=0;--x){var B=this.tryEntries[x];if(B.finallyLoc===A)return this.complete(B.completion,B.afterLoc),$r(B),et}},catch:function(A){for(var x=this.tryEntries.length-1;x>=0;--x){var B=this.tryEntries[x];if(B.tryLoc===A){var X=B.completion;if("throw"===X.type){var K=X.arg;$r(B)}return K}}throw new Error("illegal catch attempt")},delegateYield:function(A,x,B){return this.delegate={iterator:Te(A),resultName:x,nextLoc:B},"next"===this.method&&(this.arg=ue),et}},L}(De.exports);try{regeneratorRuntime=j}catch(L){"object"==typeof globalThis?globalThis.regeneratorRuntime=j:Function("r","regeneratorRuntime = r")(j)}},757:function(De,j,L){De.exports=L(854)},693:function(De,j,L){"use strict";L.r(j),j.default='

Usage

  1. Install ngx-select-ex through npm package manager using the following command:

     npm i ngx-select-ex --save

    For usage with Angular 4 install using the following command:

     npm i ngx-select-ex@ng4 --save
  2. Add NgxSelectModule into your AppModule class. app.module.ts would look like this:

     import {NgModule} from '@angular/core';\n import {BrowserModule} from '@angular/platform-browser';\n import {AppComponent} from './app.component';\n import { NgxSelectModule } from 'ngx-select-ex';\n\n @NgModule({\n   imports: [BrowserModule, NgxSelectModule],\n   declarations: [AppComponent],\n   bootstrap: [AppComponent],\n })\n export class AppModule {\n }

    If you want to change the default options then use next code:

     import {NgModule} from '@angular/core';\n import {BrowserModule} from '@angular/platform-browser';\n import {AppComponent} from './app.component';\n import { NgxSelectModule, INgxSelectOptions } from 'ngx-select-ex';\n\n const CustomSelectOptions: INgxSelectOptions = { // Check the interface for more options\n     optionValueField: 'id',\n     optionTextField: 'name'\n };\n\n @NgModule({\n   imports: [BrowserModule, NgxSelectModule.forRoot(CustomSelectOptions)],\n   declarations: [AppComponent],\n   bootstrap: [AppComponent],\n })\n export class AppModule {\n }
  3. Include Bootstrap styles. For example add to your index.html

     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
  4. Add the tag <ngx-select> into some html

     <ngx-select [items]="items" [(ngModel)]="itemId"></ngx-select>
  5. More information regarding of using ngx-select-ex is located in demo.

API

Any item can be disabled for prevent selection. For disable an item add the property disabled to the item.

Input Type Default Description
[items] any[] [] Items array. Should be an array of objects with id and text properties. As convenience, you may also pass an array of strings, in which case the same string is used for both the ID and the text. Items may be nested by adding a options property to any item, whose value should be another array of items. Items that have children may omit to have an ID.
optionValueField string 'id' Provide an opportunity to change the name an id property of objects in the items
optionTextField string 'text' Provide an opportunity to change the name a text property of objects in the items
optGroupLabelField string 'label' Provide an opportunity to change the name a label property of objects with an options property in the items
optGroupOptionsField string 'options' Provide an opportunity to change the name of an options property of objects in the items
[multiple] boolean false Mode of this component. If set true user can select more than one option
[allowClear] boolean false Set to true to allow the selection to be cleared. This option only applies to single-value inputs
[placeholder] string '' Set to true Placeholder text to display when the element has no focus and selected items
[noAutoComplete] boolean false Set to true to hide the search input. This option only applies to single-value inputs
[keepSelectedItems] boolean false Storing the selected items when the item list is changed
[disabled] boolean false When true, it specifies that the component should be disabled
[defaultValue] any[] [] Use to set default value
autoSelectSingleOption boolean false Auto select a non disabled single option
autoClearSearch boolean false Auto clear a search text after select an option. Has effect for multiple = true
noResultsFound string 'No results found' The default text showed when a search has no results
size 'small'/'default'/'large' 'default' Adding bootstrap classes: form-control-sm, input-sm, form-control-lg input-lg, btn-sm, btn-lg
searchCallback (search: string, item: INgxSelectOption) => boolean null The callback function for custom filtering the select list
autoActiveOnMouseEnter boolean true Automatically activate item when mouse enter on it
isFocused boolean false Makes the component focused
keepSelectMenuOpened boolean false Keeps the select menu opened
autocomplete string 'off' Sets an autocomplete value for the input field
dropDownMenuOtherClasses string '' Add css classes to the element with dropdown-menu class. For example dropdown-menu-right
showOptionNotFoundForEmptyItems boolean false Shows the "Not Found" menu option in case of out of items at all
noSanitize boolean false Disables auto mark an HTML as safe. Turn it on for safety from XSS if you render untrusted content in the options
appendTo string null Append dropdown menu to any element using css selector
Output Description
(typed) Fired on changing search input. Returns string with that value.
(focus) Fired on select focus
(blur) Fired on select blur
(open) Fired on select dropdown open
(close) Fired on select dropdown close
(select) Fired on an item selected by user. Returns value of the selected item.
(remove) Fired on an item removed by user. Returns value of the removed item.
(navigated) Fired on navigate by the dropdown list. Returns: INgxOptionNavigated.
(selectionChanges) Fired on change selected options. Returns: INgxSelectOption[].

Warning! Although the component contains the select and the remove events, the better solution is using valueChanges of the FormControl.

import {Component} from '@angular/core';\nimport {FormControl} from '@angular/forms';\n\n@Component({\n    selector: 'app-example',\n    template: `<ngx-select [items]="['111', '222']" [formControl]="selectControl"></ngx-select>`\n})\nclass ExampleComponent {\n    public selectControl = new FormControl();\n\n    constructor() {\n        this.selectControl.valueChanges.subscribe(value => console.log(value));\n    }\n}

Styles and customization

Currently, the component contains CSS classes named within BEM Methodology. As well it contains the "Bootstrap classes". Recommended use BEM classes for style customization.

List of styles for customization:

  • ngx-select - Main class of the component.
  • ngx-select_multiple - Modifier of the multiple mode. It's available when the property multiple is true.
  • ngx-select__disabled - Layer for the disabled mode.
  • ngx-select__selected - The common container for displaying selected items.
  • ngx-select__toggle - The toggle for single mode. It's available when the property multiple is false.
  • ngx-select__placeholder - The placeholder item. It's available when the property multiple is false.
  • ngx-select__selected-single - The selected item with single mode. It's available when the property multiple is false.
  • ngx-select__selected-plural - The multiple selected item. It's available when the property multiple is true.
  • ngx-select__allow-clear - The indicator that the selected single item can be removed. It's available while properties the multiple is false and the allowClear is true.
  • ngx-select__toggle-buttons - The container of buttons such as the clear and the toggle.
  • ngx-select__toggle-caret - The drop-down button of the single mode. It's available when the property multiple is false.
  • ngx-select__clear - The button clear.
  • ngx-select__clear-icon - The cross icon.
  • ngx-select__search - The input field for full text lives searching.
  • ngx-select__choices - The common container of items.
  • ngx-select__item-group - The group of items.
  • ngx-select__item - An item.
  • ngx-select__item_disabled - Modifier of a disabled item.
  • ngx-select__item_active - Modifier of the activated item.

Templates

For extended rendering customisation you are can use the ng-template:

<ngx-select [items]="items" optionValueField="hex" optionTextField="name" [(ngModel)]="ngxValue">\n\n    <ng-template ngx-select-option-selected let-option let-text="text">\n        <span class="color-box" [style]="style('background-color:' + option.value)"></span>\n        <span [innerHtml]="text"></span>\n        ({{option.data.hex}})\n    </ng-template>\n\n    <ng-template ngx-select-option let-option let-text="text">\n        <span class="color-box" [style]="style('background-color:' + option.value)"></span>\n        <span [innerHtml]="text"></span>\n        ({{option.data.hex}})\n    </ng-template>\n\n    <ng-template ngx-select-option-not-found>\n        Nothing found\n    </ng-template>\n\n</ngx-select>

Also, you are can mix directives for reducing template:

<ngx-select [items]="items" optionValueField="hex" optionTextField="name" [(ngModel)]="ngxValue">\n    <ng-template ngx-select-option-selected ngx-select-option let-option let-text="text">\n        <span class="color-box" [style]="style('background-color:' + option.value)"></span>\n        <span [innerHtml]="text"></span>\n        ({{option.data.hex}})\n    </ng-template>\n\n    <ng-template ngx-select-option-not-found let-input>\n        Not found <button (click)="addItem(input)">(+) Add "{{input}}" as new item</button>\n    </ng-template>\n</ngx-select>

Description details of the directives:

  1. ngx-select-option-selected - Customization rendering selected options. Representing variables:
    • option (implicit) - object of type INgxSelectOption.
    • text - The text defined by the property optionTextField.
    • index - Number value of index the option in the select list. Always equal to zero for the single select.
  2. ngx-select-option - Customization rendering options in the dropdown menu. Representing variables:
    • option (implicit) - object of type INgxSelectOption.
    • text - The highlighted text defined by the property optionTextField. It is highlighted in the search.
    • index - Number value of index for the top level.
    • subIndex - Number value of index for the second level.
  3. ngx-select-option-not-found - Customization "not found text". Does not represent any variables.
'},151:function(De,j,L){"use strict";L.r(j),j.default='

Getting started

First of all, Welcome!

'},124:function(De,j,L){"use strict";L.r(j),j.default='

Container with fixed height and hidden overflow

\n
\n
\n

Default

\n
\n \n \n
\n

\n
\n
{{ngxControl1.value| json}}
\n
\n
\n \n
\n
\n\n
\n

Appended to body

\n
\n \n \n
\n

\n
\n
{{ngxControl2.value| json}}
\n
\n
\n \n
\n
\n
\n'},745:function(De,j,L){"use strict";L.r(j),j.default="import { Component } from '@angular/core';\nimport { FormControl } from '@angular/forms';\n\n@Component({\n selector: 'append-to-demo',\n templateUrl: './append-to-demo.html',\n})\nexport class AppendToDemoComponent {\n public items: string[] = ['Amsterdam', 'Antwerp', 'Athens', 'Barcelona',\n 'Berlin', 'Birmingham', 'Bradford', 'Bremen', 'Brussels', 'Bucharest',\n 'Budapest', 'Cologne', 'Copenhagen'];\n\n public ngxControl1 = new FormControl();\n public ngxControl2 = new FormControl();\n}\n"},931:function(De,j,L){"use strict";L.r(j),j.default='

Select a city by country

\n
\n
\n \n \n

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
\n'},287:function(De,j,L){"use strict";L.r(j),j.default="import { Component } from '@angular/core';\n\n@Component({\n selector: 'children-demo',\n templateUrl: './children-demo.html',\n})\nexport class ChildrenDemoComponent {\n public items: any[] = [\n {\n id: 100,\n text: 'Austria',\n children: [\n {id: 54, text: 'Vienna'},\n ],\n },\n {\n id: 200,\n text: 'Belgium',\n children: [\n {id: 2, text: 'Antwerp'},\n {id: 9, text: 'Brussels'},\n ],\n },\n {\n id: 300,\n text: 'Bulgaria',\n children: [\n {id: 48, text: 'Sofia'},\n ],\n },\n {\n id: 400,\n text: 'Croatia',\n children: [\n {id: 58, text: 'Zagreb'},\n ],\n },\n {\n id: 500,\n text: 'Czech Republic',\n children: [\n {id: 42, text: 'Prague'},\n ],\n },\n {\n id: 600,\n text: 'Denmark',\n children: [\n {id: 13, text: 'Copenhagen'},\n ],\n },\n {\n id: 700,\n text: 'England',\n children: [\n {id: 6, text: 'Birmingham'},\n {id: 7, text: 'Bradford'},\n {id: 26, text: 'Leeds', disabled: true},\n {id: 30, text: 'London'},\n {id: 34, text: 'Manchester'},\n {id: 47, text: 'Sheffield'},\n ],\n },\n {\n id: 800,\n text: 'Finland',\n children: [\n {id: 25, text: 'Helsinki'},\n ],\n },\n {\n id: 900,\n text: 'France',\n children: [\n {id: 35, text: 'Marseille'},\n {id: 40, text: 'Paris'},\n ],\n },\n {\n id: 1000,\n text: 'Germany',\n children: [\n {id: 5, text: 'Berlin'},\n {id: 8, text: 'Bremen'},\n {id: 12, text: 'Cologne'},\n {id: 14, text: 'Dortmund'},\n {id: 15, text: 'Dresden'},\n {id: 17, text: 'D\xfcsseldorf'},\n {id: 18, text: 'Essen'},\n {id: 19, text: 'Frankfurt'},\n {id: 23, text: 'Hamburg'},\n {id: 24, text: 'Hannover'},\n {id: 27, text: 'Leipzig'},\n {id: 37, text: 'Munich'},\n {id: 50, text: 'Stuttgart'},\n ],\n },\n {\n id: 1100,\n text: 'Greece',\n children: [\n {id: 3, text: 'Athens'},\n ],\n },\n {\n id: 1200,\n text: 'Hungary',\n children: [\n {id: 11, text: 'Budapest'},\n ],\n },\n {\n id: 1300,\n text: 'Ireland',\n children: [\n {id: 16, text: 'Dublin'},\n ],\n },\n {\n id: 1400,\n text: 'Italy',\n children: [\n {id: 20, text: 'Genoa'},\n {id: 36, text: 'Milan'},\n {id: 38, text: 'Naples'},\n {id: 39, text: 'Palermo'},\n {id: 44, text: 'Rome'},\n {id: 52, text: 'Turin'},\n ],\n },\n {\n id: 1500,\n text: 'Latvia',\n children: [\n {id: 43, text: 'Riga'},\n ],\n },\n {\n id: 1600,\n text: 'Lithuania',\n children: [\n {id: 55, text: 'Vilnius'},\n ],\n },\n {\n id: 1700,\n text: 'Netherlands',\n children: [\n {id: 1, text: 'Amsterdam'},\n {id: 45, text: 'Rotterdam'},\n {id: 51, text: 'The Hague'},\n ],\n },\n {\n id: 1800,\n text: 'Poland',\n children: [\n {id: 29, text: '\u0141\xf3d\u017a'},\n {id: 31, text: 'Krak\xf3w'},\n {id: 41, text: 'Pozna\u0144'},\n {id: 56, text: 'Warsaw'},\n {id: 57, text: 'Wroc\u0142aw'},\n ],\n },\n {\n id: 1900,\n text: 'Portugal',\n children: [\n {id: 28, text: 'Lisbon'},\n ],\n },\n {\n id: 2000,\n text: 'Romania',\n children: [\n {id: 10, text: 'Bucharest'},\n ],\n },\n {\n id: 2100,\n text: 'Scotland',\n children: [\n {id: 21, text: 'Glasgow'},\n ],\n },\n {\n id: 2200,\n text: 'Spain',\n children: [\n {id: 4, text: 'Barcelona'},\n {id: 32, text: 'Madrid'},\n {id: 33, text: 'M\xe1laga'},\n {id: 46, text: 'Seville'},\n {id: 53, text: 'Valencia'},\n {id: 59, text: 'Zaragoza'},\n ],\n },\n {\n id: 2300,\n text: 'Sweden',\n children: [\n {id: 22, text: 'Gothenburg'},\n {id: 49, text: 'Stockholm'},\n ],\n },\n ];\n\n public ngxValue: any[] = [];\n public ngxDisabled = false;\n}\n"},136:function(De,j,L){"use strict";L.r(j),j.default='

Select multiple cities

\n
\n
\n \n \n

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
\n'},864:function(De,j,L){"use strict";L.r(j),j.default="import { Component } from '@angular/core';\nimport { INgxSelectOption } from '../../lib/ngx-select/ngx-select.interfaces';\n\n@Component({\n selector: 'multiple-demo',\n templateUrl: './multiple-demo.html',\n})\nexport class MultipleDemoComponent {\n public items: string[] = ['Amsterdam', 'Antwerp', 'Athens', 'Barcelona',\n 'Berlin', 'Birmingham', 'Bradford', 'Bremen', 'Brussels', 'Bucharest',\n 'Budapest', 'Cologne', 'Copenhagen', 'Dortmund', 'Dresden', 'Dublin', 'D\xfcsseldorf',\n 'Essen', 'Frankfurt', 'Genoa', 'Glasgow', 'Gothenburg', 'Hamburg', 'Hannover',\n 'Helsinki', 'Leeds', 'Leipzig', 'Lisbon', '\u0141\xf3d\u017a', 'London', 'Krak\xf3w', 'Madrid',\n 'M\xe1laga', 'Manchester', 'Marseille', 'Milan', 'Munich', 'Naples', 'Palermo',\n 'Paris', 'Pozna\u0144', 'Prague', 'Riga', 'Rome', 'Rotterdam', 'Seville', 'Sheffield',\n 'Sofia', 'Stockholm', 'Stuttgart', 'The Hague', 'Turin', 'Valencia', 'Vienna',\n 'Vilnius', 'Warsaw', 'Wroc\u0142aw', 'Zagreb', 'Zaragoza'];\n\n public ngxValue: any = [];\n public ngxDisabled = false;\n\n public doSelectOptions = (options: INgxSelectOption[]) => console.log('MultipleDemoComponent.doSelectOptions', options);\n}\n"},952:function(De,j,L){"use strict";L.r(j),j.default='

Select a single city with {{items.length}} items

\n
\n
\n \n \n

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
'},549:function(De,j,L){"use strict";L.r(j),j.default="import { Component } from '@angular/core';\n\n@Component({\n selector: 'no-autocomplete-demo',\n templateUrl: './no-autocomplete-demo.html',\n})\nexport class NoAutoCompleteDemoComponent {\n public _items: string[] = ['Amsterdam', 'Antwerp', 'Athens', 'Barcelona',\n 'Berlin', 'Birmingham', 'Bradford', 'Bremen', 'Brussels', 'Bucharest',\n 'Budapest', 'Cologne', 'Copenhagen', 'Dortmund', 'Dresden', 'Dublin',\n 'D\xfcsseldorf', 'Essen', 'Frankfurt', 'Genoa', 'Glasgow', 'Gothenburg',\n 'Hamburg', 'Hannover', 'Helsinki', 'Krak\xf3w', 'Leeds', 'Leipzig', 'Lisbon',\n 'London', 'Madrid', 'Manchester', 'Marseille', 'Milan', 'Munich', 'M\xe1laga',\n 'Naples', 'Palermo', 'Paris', 'Pozna\u0144', 'Prague', 'Riga', 'Rome',\n 'Rotterdam', 'Seville', 'Sheffield', 'Sofia', 'Stockholm', 'Stuttgart',\n 'The Hague', 'Turin', 'Valencia', 'Vienna', 'Vilnius', 'Warsaw', 'Wroc\u0142aw',\n 'Zagreb', 'Zaragoza', '\u0141\xf3d\u017a'];\n\n constructor() {\n const a = [];\n for (let i = 1; i <= 20; i++) {\n this._items.forEach(v => a.push(i + ' ' + v));\n }\n this.items = a;\n }\n\n public items: string[] = [];\n public ngxValue: any = [];\n public ngxDisabled = false;\n}\n"},429:function(De,j,L){"use strict";L.r(j),j.default='

Select a color

\n
\n
\n \n\n \n \n \n ({{option.data.hex}})\n \n\n \n "{{input}}" not found\n \n\n \n

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
\n'},821:function(De,j,L){"use strict";L.r(j),j.default="import { Component, ViewEncapsulation } from '@angular/core';\nimport { DomSanitizer, SafeStyle } from '@angular/platform-browser';\n\nconst COLORS = [\n {name: 'Blue 10', hex: '#C0E6FF'},\n {name: 'Blue 20', hex: '#7CC7FF'},\n {name: 'Blue 30', hex: '#5AAAFA', disabled: true},\n {name: 'Blue 40', hex: '#5596E6'},\n {name: 'Blue 50', hex: '#4178BE'},\n {name: 'Blue 60', hex: '#325C80'},\n {name: 'Blue 70', hex: '#264A60'},\n {name: 'Blue 80', hex: '#1D3649'},\n {name: 'Blue 90', hex: '#152935'},\n {name: 'Blue 100', hex: '#010205'},\n {name: 'Green 10', hex: '#C8F08F'},\n {name: 'Green 20', hex: '#B4E051'},\n {name: 'Green 30', hex: '#8CD211'},\n {name: 'Green 40', hex: '#5AA700'},\n {name: 'Green 50', hex: '#4B8400'},\n {name: 'Green 60', hex: '#2D660A'},\n {name: 'Green 70', hex: '#144D14'},\n {name: 'Green 80', hex: '#0A3C02'},\n {name: 'Green 90', hex: '#0C2808'},\n {name: 'Green 100', hex: '#010200'},\n {name: 'Red 10', hex: '#FFD2DD'},\n {name: 'Red 20', hex: '#FFA5B4'},\n {name: 'Red 30', hex: '#FF7D87'},\n {name: 'Red 40', hex: '#FF5050'},\n {name: 'Red 50', hex: '#E71D32'},\n {name: 'Red 60', hex: '#AD1625'},\n {name: 'Red 70', hex: '#8C101C'},\n {name: 'Red 80', hex: '#6E0A1E'},\n {name: 'Red 90', hex: '#4C0A17'},\n {name: 'Red 100', hex: '#040001'},\n {name: 'Yellow 10', hex: '#FDE876'},\n {name: 'Yellow 20', hex: '#FDD600'},\n {name: 'Yellow 30', hex: '#EFC100'},\n {name: 'Yellow 40', hex: '#BE9B00'},\n {name: 'Yellow 50', hex: '#8C7300'},\n {name: 'Yellow 60', hex: '#735F00'},\n {name: 'Yellow 70', hex: '#574A00'},\n {name: 'Yellow 80', hex: '#3C3200'},\n {name: 'Yellow 90', hex: '#281E00'},\n {name: 'Yellow 100', hex: '#020100'},\n];\n\n@Component({\n selector: 'rich-demo',\n templateUrl: './rich-demo.html',\n styles: [`.color-box {\n display: inline-block;\n height: 14px;\n width: 14px;\n margin-right: 4px;\n border: 1px solid #000;\n }`],\n encapsulation: ViewEncapsulation.None, // Enable dynamic HTML styles\n})\nexport class RichDemoComponent {\n public items: any[] = COLORS;\n\n public ngxValue: any = [];\n public ngxDisabled = false;\n\n constructor(public sanitizer: DomSanitizer) {\n }\n\n public style(data: string): SafeStyle {\n return this.sanitizer.bypassSecurityTrustStyle(data);\n }\n}\n"},726:function(De,j,L){"use strict";L.r(j),j.default='

Select a single city

\n
\n
\n \n \n

\n
\n
{{ngxControl.value | json}}
\n
\n
\n \n
\n
\n
\n'},276:function(De,j,L){"use strict";L.r(j),j.default="import { Component, OnDestroy } from '@angular/core';\nimport { FormControl } from '@angular/forms';\nimport { INgxSelectOption } from '../../lib/ngx-select/ngx-select.interfaces';\n\n@Component({\n selector: 'single-demo',\n templateUrl: './single-demo.html',\n})\nexport class SingleDemoComponent implements OnDestroy {\n public items: string[] = ['Amsterdam', 'Antwerp', 'Athens', 'Barcelona',\n 'Berlin', 'Birmingham', 'Bradford', 'Bremen', 'Brussels', 'Bucharest',\n 'Budapest', 'Cologne', 'Copenhagen', 'Dortmund', 'Dresden', 'Dublin',\n 'D\xfcsseldorf', 'Essen', 'Frankfurt', 'Genoa', 'Glasgow', 'Gothenburg',\n 'Hamburg', 'Hannover', 'Helsinki', 'Krak\xf3w', 'Leeds', 'Leipzig', 'Lisbon',\n 'London', 'Madrid', 'Manchester', 'Marseille', 'Milan', 'Munich', 'M\xe1laga',\n 'Naples', 'Palermo', 'Paris', 'Pozna\u0144', 'Prague', 'Riga', 'Rome',\n 'Rotterdam', 'Seville', 'Sheffield', 'Sofia', 'Stockholm', 'Stuttgart',\n 'The Hague', 'Turin', 'Valencia', 'Vienna', 'Vilnius', 'Warsaw', 'Wroc\u0142aw',\n 'Zagreb', 'Zaragoza', '\u0141\xf3d\u017a'];\n\n public ngxControl = new FormControl();\n\n private _ngxDefaultTimeout;\n private _ngxDefaultInterval;\n private _ngxDefault;\n\n constructor() {\n this._ngxDefaultTimeout = setTimeout(() => {\n this._ngxDefaultInterval = setInterval(() => {\n const idx = Math.floor(Math.random() * (this.items.length - 1));\n this._ngxDefault = this.items[idx];\n // console.log('new default value = ', this._ngxDefault);\n }, 2000);\n }, 2000);\n }\n\n public ngOnDestroy(): void {\n clearTimeout(this._ngxDefaultTimeout);\n clearInterval(this._ngxDefaultInterval);\n }\n\n public doNgxDefault(): any {\n return this._ngxDefault;\n }\n\n public inputTyped = (source: string, text: string) => console.log('SingleDemoComponent.inputTyped', source, text);\n\n public doFocus = () => console.log('SingleDemoComponent.doFocus');\n\n public doBlur = () => console.log('SingleDemoComponent.doBlur');\n\n public doOpen = () => console.log('SingleDemoComponent.doOpen');\n\n public doClose = () => console.log('SingleDemoComponent.doClose');\n\n public doSelect = (value: any) => console.log('SingleDemoComponent.doSelect', value);\n\n public doRemove = (value: any) => console.log('SingleDemoComponent.doRemove', value);\n\n public doSelectOptions = (options: INgxSelectOption[]) => console.log('SingleDemoComponent.doSelectOptions', options);\n}\n"},147:function(De){"use strict";De.exports=JSON.parse('{"name":"ngx-select-ex","version":"8.0.1","description":"Angular based replacement for select boxes","license":"MIT","private":false,"author":"Konstantin Polyntsov ","repository":{"type":"git","url":"git+ssh://git@github.com:optimistex/ngx-select-ex.git"},"bugs":{"url":"https://github.com/optimistex/ngx-select-ex/issues"},"homepage":"https://github.com/optimistex/ngx-select-ex#readme","scripts":{"e2e":"ng e2e","cz":"git add -A && git status && git-cz","build":"npm run lint && npm run test:headless && npm run build.package && npm run build.demo && git add -A","build.demo":"ng build --configuration production","build.package":"ng-packagr -p ng-package.json","lint":"ng lint","lint:fix":"ng lint --fix","ng":"ng","release":"standard-version --commit-all","release:major":"standard-version --release-as major --commit-all","publish.ng4":"npm publish ./dist --tag ng4","publish":"npm publish ./dist","publish-dev":"npm publish ./dist --tag dev","start":"ng serve","test":"ng test --watch false","test:headless":"ng test --browsers=ChromeHeadlessNoSandbox --watch=false --code-coverage","test-coverage":"ng test --watch false --code-coverage","prepare":"husky install"},"standard-version":{"scripts":{"postbump":"npm run build"}},"keywords":["ngx-select","ngx-select-ex","angular","angular2","angular4","angular5","angular6","select","select2","ui-select","multiselect","multi-select"],"peerDependencies":{"lodash.isequal":"^4.5.0"},"devDependencies":{"@angular-devkit/build-angular":"~13.1.4","@angular-eslint/builder":"13.0.1","@angular-eslint/eslint-plugin":"13.0.1","@angular-eslint/eslint-plugin-template":"13.0.1","@angular-eslint/schematics":"13.0.1","@angular-eslint/template-parser":"13.0.1","@angular/animations":"~13.1.3","@angular/cli":"^13.1.4","@angular/common":"~13.1.3","@angular/compiler":"~13.1.3","@angular/compiler-cli":"~13.1.3","@angular/core":"~13.1.3","@angular/forms":"~13.1.3","@angular/language-service":"~13.1.3","@angular/platform-browser":"~13.1.3","@angular/platform-browser-dynamic":"~13.1.3","@angular/router":"~13.1.3","@types/jasmine":"^3.7.2","@types/jasminewd2":"^2.0.8","@types/marked":"^4.0.1","@types/node":"^17.0.10","@types/webpack":"^5.28.0","@typescript-eslint/eslint-plugin":"^5.10.0","@typescript-eslint/parser":"^5.10.0","codecov":"^3.8.1","codelyzer":"^6.0.0","escape-string-regexp":"^5.0.0","eslint":"^8.2.0","html-loader":"^3.0.1","husky":"^7.0.4","jasmine-core":"^4.0.0","jasmine-spec-reporter":"^7.0.0","karma":"^6.3.2","karma-chrome-launcher":"~3.1.0","karma-coverage":"^2.0.3","karma-jasmine":"~4.0.0","karma-jasmine-html-reporter":"^1.6.0","lodash.isequal":"^4.5.0","markdown-loader":"^6.0.0","ng-packagr":"^13.1.3","ngx-bootstrap":"^8.0.0","pre-commit":"^1.2.2","protractor":"~7.0.0","raw-loader":"^4.0.2","rxjs":"^7.5.2","standard-version":"^9.0.0","ts-node":"^10.4.0","tslib":"^2.0.0","tslint":"~6.1.0","tslint-jasmine-rules":"^1.6.1","typescript":"~4.5.4","zone.js":"~0.11.4"},"contributors":[{"name":"Konstantin Polyntsov","email":"optimistex@gmail.com","url":"https://github.com/optimistex"},{"name":"Vyacheslav Chub","email":"vyacheslav.chub@valor-software.com","url":"https://github.com/buchslava"},{"name":"Dmitriy Shekhovtsov","email":"valorkin@gmail.com","url":"https://github.com/valorkin"},{"name":"Oleksandr Telnov","email":"otelnov@gmail.com","url":"https://github.com/otelnov"}]}')}},function(De){De(De.s=322)}]); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 1a3de3ae..92cf2938 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ngx-select-ex", - "version": "8.0.0", + "version": "8.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ngx-select-ex", - "version": "8.0.0", + "version": "8.0.1", "license": "MIT", "devDependencies": { "@angular-devkit/build-angular": "~13.1.4", diff --git a/package.json b/package.json index f270805d..b30d1cb8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ngx-select-ex", - "version": "8.0.0", + "version": "8.0.1", "description": "Angular based replacement for select boxes", "license": "MIT", "private": false,