diff --git a/docs/index.html b/docs/index.html index 8fd2c4e9..51de635b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -8,4 +8,4 @@ section { padding-top: 30px; - }Loading... \ No newline at end of file + }Loading... \ No newline at end of file diff --git a/docs/inline.8cc53ca25186bdad0247.bundle.js b/docs/inline.5fb27833645721d75742.bundle.js similarity index 73% rename from docs/inline.8cc53ca25186bdad0247.bundle.js rename to docs/inline.5fb27833645721d75742.bundle.js index 686a96e3..e0a5ad82 100644 --- a/docs/inline.8cc53ca25186bdad0247.bundle.js +++ b/docs/inline.5fb27833645721d75742.bundle.js @@ -1 +1 @@ -!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var u,i,f,l=0,s=[];lSelect a color\n
\n
\n \n \n

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
\n'},"1j/l":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=Array.isArray||function(e){return e&&"number"==typeof e.length}},"1oDy":function(e,t){e.exports="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"},"2kLc":function(e,t,n){"use strict";var r=n("AP4T"),o=n("Oryw"),i=n("3iOE"),l=n("wP3s");function u(e){return e}t.a=function(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof s&&(n=e.pop()),null===a&&1===e.length&&e[0]instanceof r.a?e[0]:function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Object(l.a)(u,null,e)}(n)(new o.a(e,a))}},"3iOE":function(e,t,n){"use strict";t.a=function(e){return e&&"function"==typeof e.schedule}},"6Xbx":function(e,t,n){"use strict";t.b=function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},n.d(t,"a",function(){return o});var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n ");else if("object"==typeof t){var o=[];for(var i in t)if(t.hasOwnProperty(i)){var l=t[i];o.push(i+":"+("string"==typeof l?JSON.stringify(l):O(l)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+e.replace(L,"\n ")}function G(e,t){return new Error(z(e,t))}var W="ngDebugContext",Z="ngOriginalError",q="ngErrorLogger";function $(e){return e[W]}function Q(e){return e[Z]}function K(e){for(var t=[],n=1;n0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+O(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}();function $e(e,t){return Array.isArray(t)?t.reduce($e,e):Object(r.a)({},e,t)}var Qe=function(){function e(e,t,n,r,u,a){var s=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=u,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ze(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var c=new o.a(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),f=new o.a(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){Ve.assertNotInAngularZone(),C(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Ve.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(i.a)(c,l.a.call(f))}return e.prototype.bootstrap=function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof de?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var o=n instanceof be?null:this._injector.get(we),i=n.create(j.NULL,[],t||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var l=i.injector.get(De,null);return l&&i.injector.get(Ne).registerApplication(i.location.nativeElement,l),this._loadComponent(i),ze()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},e.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,Oe(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;Ke(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(ue,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),Ke(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=Ee("ApplicationRef#tick()"),e}();function Ke(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ye=function(){},Je=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),Xe=function(){},et=function(e){this.nativeElement=e},tt=function(){function e(){this.dirty=!0,this._results=[],this.changes=new ke}return e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[x()]=function(){return this._results[x()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=function e(t){return t.reduce(function(t,n){var r=Array.isArray(n)?e(n):n;return t.concat(r)},[])}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}(),nt=function(){},rt=function(){},ot=function(){function e(e,t,n){this._debugContext=n,this.nativeNode=e,t&&t instanceof it?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),it=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=t,o}return Object(r.b)(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,r=this,o=this.childNodes.indexOf(e);-1!==o&&((n=this.childNodes).splice.apply(n,[o+1,0].concat(t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=r}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return lt(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return ut(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(ot);function lt(e,t,n){e.childNodes.forEach(function(e){e instanceof it&&(t(e)&&n.push(e),lt(e,t,n))})}function ut(e,t,n){e instanceof it&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof it&&ut(e,t,n)})}var at=new Map;function st(e){return at.get(e)||null}function ct(e){at.set(e.nativeNode,e)}function ft(e,t){var n=ht(e),r=ht(t);return n&&r?function(e,t,n){for(var r=e[x()](),o=t[x()]();;){var i=r.next(),l=o.next();if(i.done&&l.done)return!0;if(i.done||l.done)return!1;if(!n(i.value,l.value))return!1}}(e,t,ft):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||E(e,t)}var dt=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e.unwrap=function(t){return e.isWrapped(t)?t.wrapped:t},e.isWrapped=function(t){return t instanceof e},e}(),pt=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}();function ht(e){return!!gt(e)&&(Array.isArray(e)||!(e instanceof Map)&&x()in e)}function gt(e){return null!==e&&("function"==typeof e||"object"==typeof e)}var vt=function(){function e(){}return e.prototype.supports=function(e){return ht(e)},e.prototype.create=function(e){return new mt(e)},e}(),yt=function(e,t){return t},mt=function(){function e(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=e||yt}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,o=null;t||n;){var i=!n||t&&t.currentIndex=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,qn(n,t),Zt.dirtyParentQueries(r),Wn(r),r}function Gn(e,t,n){var r=t?pn(t,t.def.lastRenderRootNode):e.renderElement;xn(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Wn(e){xn(e,3,null,null,void 0)}function Zn(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function qn(e,t){t>=e.length-1?e.pop():e.splice(t,1)}var $n=new Object;function Qn(e,t,n,r,o,i){return new Kn(e,t,n,r,o,i)}var Kn=function(e){function t(t,n,r,o,i,l){var u=e.call(this)||this;return u.selector=t,u.componentType=n,u._inputs=o,u._outputs=i,u.ngContentSelectors=l,u.viewDefFactory=r,u}return Object(r.b)(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var o=wn(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,l=Zt.createRootView(e,t||[],n,o,r,$n),u=zt(l,i).instance;return n&&l.renderer.setAttribute(Ht(l,0).renderElement,"ng-version",p.full),new Yn(l,new tr(l),u)},t}(de),Yn=function(e){function t(t,n,r){var o=e.call(this)||this;return o._view=t,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return Object(r.b)(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new et(Ht(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new ir(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(function(){});function Jn(e,t,n){return new Xn(e,t,n)}var Xn=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new et(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new ir(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=dn(e),e=e.parent;return e?new ir(e,t):new ir(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=zn(this._data,e);Zt.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new tr(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,o){var i=n||this.parentInjector;o||e instanceof be||(o=i.get(we));var l=e.create(i,r,void 0,o);return this.insert(l.hostView,t),l},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,l=e;return o=l._view,i=(n=this._data).viewContainer._embeddedViews,null!==(r=t)&&void 0!==r||(r=i.length),o.viewContainerParent=this._view,Zn(i,r,o),function(e,t){var n=fn(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,t.parentNodeDef)}}(n,o),Zt.dirtyParentQueries(o),Gn(n,r>0?i[r-1]:null,o),l.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,l,u=this._embeddedViews.indexOf(e._view);return o=t,l=(i=(n=this._data).viewContainer._embeddedViews)[r=u],qn(i,r),null==o&&(o=i.length),Zn(i,o,l),Zt.dirtyParentQueries(l),Wn(l),Gn(n,o>0?i[o-1]:null,l),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=zn(this._data,e);t&&Zt.destroyView(t)},e.prototype.detach=function(e){var t=zn(this._data,e);return t?new tr(t):null},e}();function er(e){return new tr(e)}var tr=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return xn(this._view,0,void 0,void 0,e=[]),e;var e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){an(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Zt.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){Zt.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Zt.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Wn(this._view),Zt.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function nr(e,t){return new rr(e,t)}var rr=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return Object(r.b)(t,e),t.prototype.createEmbeddedView=function(e){return new tr(Zt.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new et(Ht(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(nt);function or(e,t){return new ir(e,t)}var ir=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=j.THROW_IF_NOT_FOUND),Zt.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Jt(e)},t)},e}();function lr(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=Ht(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Ut(e,n.nodeIndex).renderText;if(20240&n.flags)return zt(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function ur(e){return new ar(e.renderer)}var ar=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=An(t),r=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,r),r},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r0,r=t.provider;switch(201347067&t.flags){case 512:return Vr(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(Tr(e,t,n,o[0]));case 2:return r(Tr(e,t,n,o[0]),Tr(e,t,n,o[1]));case 3:return r(Tr(e,t,n,o[0]),Tr(e,t,n,o[1]),Tr(e,t,n,o[2]));default:for(var l=Array(i),u=0;u0)s=g,Qr(g)||(c=g);else for(;s&&h===s.nodeIndex+s.childCount;){var m=s.parent;m&&(m.childFlags|=s.childFlags,m.childMatchedQueries|=s.childMatchedQueries),c=(s=m)&&Qr(s)?s.renderParent:s}}return{factory:null,nodeFlags:l,rootNodeFlags:u,nodeMatchedQueries:a,flags:e,nodes:t,updateDirectives:n||Kt,updateRenderer:r||Kt,handleEvent:function(e,n,r,o){return t[n].element.handleEvent(e,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:p}}function Qr(e){return 0!=(1&e.flags)&&null===e.element.name}function Kr(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!");if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var o=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=o&&t.nodeIndex+t.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function Yr(e,t,n,r){var o=eo(e.root,e.renderer,e,t,n);return to(o,e.component,r),no(o),o}function Jr(e,t,n){var r=eo(e,e.renderer,null,null,t);return to(r,n,n),no(r),r}function Xr(e,t,n,r){var o,i=t.element.componentRendererType;return o=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,eo(e.root,o,e,t.element.componentProvider,n)}function eo(e,t,n,r,o){var i=new Array(o.nodes.length),l=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(o.bindingCount),disposables:l,initIndex:-1}}function to(e,t,n){e.component=t,e.context=n}function no(e){var t;hn(e)&&(t=Ht(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,o=0;o0&&Nn(e,t,0,n)&&(p=!0),d>1&&Nn(e,t,1,r)&&(p=!0),d>2&&Nn(e,t,2,o)&&(p=!0),d>3&&Nn(e,t,3,i)&&(p=!0),d>4&&Nn(e,t,4,l)&&(p=!0),d>5&&Nn(e,t,5,u)&&(p=!0),d>6&&Nn(e,t,6,a)&&(p=!0),d>7&&Nn(e,t,7,s)&&(p=!0),d>8&&Nn(e,t,8,c)&&(p=!0),d>9&&Nn(e,t,9,f)&&(p=!0),p}(e,t,n,r,o,i,l,u,a,s,c,f);case 2:return function(e,t,n,r,o,i,l,u,a,s,c,f){var d=!1,p=t.bindings,h=p.length;if(h>0&&ln(e,t,0,n)&&(d=!0),h>1&&ln(e,t,1,r)&&(d=!0),h>2&&ln(e,t,2,o)&&(d=!0),h>3&&ln(e,t,3,i)&&(d=!0),h>4&&ln(e,t,4,l)&&(d=!0),h>5&&ln(e,t,5,u)&&(d=!0),h>6&&ln(e,t,6,a)&&(d=!0),h>7&&ln(e,t,7,s)&&(d=!0),h>8&&ln(e,t,8,c)&&(d=!0),h>9&&ln(e,t,9,f)&&(d=!0),d){var g=t.text.prefix;h>0&&(g+=qr(n,p[0])),h>1&&(g+=qr(r,p[1])),h>2&&(g+=qr(o,p[2])),h>3&&(g+=qr(i,p[3])),h>4&&(g+=qr(l,p[4])),h>5&&(g+=qr(u,p[5])),h>6&&(g+=qr(a,p[6])),h>7&&(g+=qr(s,p[7])),h>8&&(g+=qr(c,p[8])),h>9&&(g+=qr(f,p[9]));var v=Ut(e,t.nodeIndex).renderText;e.renderer.setValue(v,g)}return d}(e,t,n,r,o,i,l,u,a,s,c,f);case 16384:return function(e,t,n,r,o,i,l,u,a,s,c,f){var d=zt(e,t.nodeIndex),p=d.instance,h=!1,g=void 0,v=t.bindings.length;return v>0&&on(e,t,0,n)&&(h=!0,g=jr(e,d,t,0,n,g)),v>1&&on(e,t,1,r)&&(h=!0,g=jr(e,d,t,1,r,g)),v>2&&on(e,t,2,o)&&(h=!0,g=jr(e,d,t,2,o,g)),v>3&&on(e,t,3,i)&&(h=!0,g=jr(e,d,t,3,i,g)),v>4&&on(e,t,4,l)&&(h=!0,g=jr(e,d,t,4,l,g)),v>5&&on(e,t,5,u)&&(h=!0,g=jr(e,d,t,5,u,g)),v>6&&on(e,t,6,a)&&(h=!0,g=jr(e,d,t,6,a,g)),v>7&&on(e,t,7,s)&&(h=!0,g=jr(e,d,t,7,s,g)),v>8&&on(e,t,8,c)&&(h=!0,g=jr(e,d,t,8,c,g)),v>9&&on(e,t,9,f)&&(h=!0,g=jr(e,d,t,9,f,g)),g&&p.ngOnChanges(g),65536&t.flags&&Bt(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),h}(e,t,n,r,o,i,l,u,a,s,c,f);case 32:case 64:case 128:return function(e,t,n,r,o,i,l,u,a,s,c,f){var d=t.bindings,p=!1,h=d.length;if(h>0&&ln(e,t,0,n)&&(p=!0),h>1&&ln(e,t,1,r)&&(p=!0),h>2&&ln(e,t,2,o)&&(p=!0),h>3&&ln(e,t,3,i)&&(p=!0),h>4&&ln(e,t,4,l)&&(p=!0),h>5&&ln(e,t,5,u)&&(p=!0),h>6&&ln(e,t,6,a)&&(p=!0),h>7&&ln(e,t,7,s)&&(p=!0),h>8&&ln(e,t,8,c)&&(p=!0),h>9&&ln(e,t,9,f)&&(p=!0),p){var g=Gt(e,t.nodeIndex),v=void 0;switch(201347067&t.flags){case 32:v=new Array(d.length),h>0&&(v[0]=n),h>1&&(v[1]=r),h>2&&(v[2]=o),h>3&&(v[3]=i),h>4&&(v[4]=l),h>5&&(v[5]=u),h>6&&(v[6]=a),h>7&&(v[7]=s),h>8&&(v[8]=c),h>9&&(v[9]=f);break;case 64:v={},h>0&&(v[d[0].name]=n),h>1&&(v[d[1].name]=r),h>2&&(v[d[2].name]=o),h>3&&(v[d[3].name]=i),h>4&&(v[d[4].name]=l),h>5&&(v[d[5].name]=u),h>6&&(v[d[6].name]=a),h>7&&(v[d[7].name]=s),h>8&&(v[d[8].name]=c),h>9&&(v[d[9].name]=f);break;case 128:var y=n;switch(h){case 1:v=y.transform(n);break;case 2:v=y.transform(r);break;case 3:v=y.transform(r,o);break;case 4:v=y.transform(r,o,i);break;case 5:v=y.transform(r,o,i,l);break;case 6:v=y.transform(r,o,i,l,u);break;case 7:v=y.transform(r,o,i,l,u,a);break;case 8:v=y.transform(r,o,i,l,u,a,s);break;case 9:v=y.transform(r,o,i,l,u,a,s,c);break;case 10:v=y.transform(r,o,i,l,u,a,s,c,f)}}g.value=v}return p}(e,t,n,r,o,i,l,u,a,s,c,f);default:throw"unreachable"}}(e,t,r,o,i,l,u,a,s,c,f,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,o=0;o0&&un(e,t,0,n),d>1&&un(e,t,1,r),d>2&&un(e,t,2,o),d>3&&un(e,t,3,i),d>4&&un(e,t,4,l),d>5&&un(e,t,5,u),d>6&&un(e,t,6,a),d>7&&un(e,t,7,s),d>8&&un(e,t,8,c),d>9&&un(e,t,9,f)}(e,t,r,o,i,l,u,a,s,c,f,d):function(e,t,n){for(var r=0;rSelect a single city\n
\n
\n \n \n

\n
\n
{{ngxControl.value | json}}
\n
\n
\n \n
\n
\n
\n'},Oryw:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("6Xbx"),o=n("AP4T"),i=n("8Ut3"),l=n("Ecq+"),u=n("3iOE"),a=function(e){function t(t,n){e.call(this),this.array=t,this.scheduler=n,n||1!==t.length||(this._isScalar=!0,this.value=t[0])}return Object(r.b)(t,e),t.create=function(e,n){return new t(e,n)},t.of=function(){for(var e=[],n=0;n1?new t(e,r):1===o?new i.a(e[0],r):new l.a(r)},t.dispatch=function(e){var t=e.array,n=e.index,r=e.subscriber;n>=e.count?r.complete():(r.next(t[n]),r.closed||(e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.array,r=n.length,o=this.scheduler;if(o)return o.schedule(t.dispatch,0,{array:n,index:0,count:r,subscriber:e});for(var i=0;i1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(l.a),f=function(e){function t(t,n){e.call(this),this.source=t,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return Object(r.b)(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new u.a).add(this.source.subscribe(new p(this.getSubject(),this))),e.closed?(this._connection=null,e=u.a.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return a()(this)},t}(i.a).prototype,d={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:f._subscribe},_isComplete:{value:f._isComplete,writable:!0},getSubject:{value:f.getSubject},connect:{value:f.connect},refCount:{value:f.refCount}},p=function(e){function t(t,n){e.call(this,t),this.connectable=n}return Object(r.b)(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(o.b);function h(){return new o.a}t.a=function(){return this,a()((e=h,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,d);return r.source=t,r.subjectFactory=n,r})(this));var e}},Upor:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("6Xbx"),o=function(e){function t(){var t=e.call(this,"object unsubscribed");this.name=t.name="ObjectUnsubscribedError",this.stack=t.stack,this.message=t.message}return Object(r.b)(t,e),t}(Error)},V7AE:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("xIGM").a.Symbol,o="function"==typeof r&&"function"==typeof r.for?r.for("rxSubscriber"):"@@rxSubscriber"},X3fp:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){var t=e.Symbol;if("function"==typeof t)return t.iterator||(t.iterator=t("iterator polyfill")),t.iterator;var n=e.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=e.Map;if(r)for(var o=Object.getOwnPropertyNames(r.prototype),i=0;i {\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 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) {\n console.log('SingleDemoComponent.inputTyped', source, text);\n }\n\n public doFocus() {\n console.log('SingleDemoComponent.doFocus');\n }\n\n public doBlur() {\n console.log('SingleDemoComponent.doBlur');\n }\n\n public doOpen() {\n console.log('SingleDemoComponent.doOpen');\n }\n\n public doClose() {\n console.log('SingleDemoComponent.doClose');\n }\n}\n"},cDNt:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("LMZF"),o=function(){},i=n("ksPu"),l=n("wDkl"),u=function(){function e(){this.gettingStarted=l,this.p=i}return e.prototype.ngAfterContentInit=function(){setTimeout(function(){"undefined"!=typeof PR&&PR.prettyPrint()},150)},e}(),a=n("6Xbx"),s=function(){},c=["en",[["a","p"],["AM","PM"]],[["AM","PM"],,],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",,"{1} 'at' {0}"],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],f={},d=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),p=new r.l("UseV4Plurals"),h=function(){},g=function(e){function t(t,n){var r=e.call(this)||this;return r.locale=t,r.deprecatedPluralFn=n,r}return Object(a.b)(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return function(e){var t=e.toLowerCase().replace(/_/g,"-"),n=f[t];if(n)return n;var r=t.split("-")[0];if(n=f[r])return n;if("en"===r)return c;throw new Error('Missing locale data for the locale "'+e+'".')}(e)[17]}(t||this.locale)(e)){case d.Zero:return"zero";case d.One:return"one";case d.Two:return"two";case d.Few:return"few";case d.Many:return"many";default:return"other"}},t}(h),v=function(){function e(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(e.prototype,"klass",{set:function(e){this._applyInitialClasses(!0),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClass",{set:function(e){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(r.Y)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}},e.prototype._cleanupClasses=function(e){this._applyClasses(e,!0),this._applyInitialClasses(!1)},e.prototype._applyKeyValueChanges=function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})},e.prototype._applyIterableChanges=function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(r._14)(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})},e.prototype._applyInitialClasses=function(e){var t=this;this._initialClasses.forEach(function(n){return t._toggleClass(n,!e)})},e.prototype._applyClasses=function(e,t){var n=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return n._toggleClass(e,!t)}):Object.keys(e).forEach(function(r){null!=e[r]&&n._toggleClass(r,!t)}))},e.prototype._toggleClass=function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})},e}(),y=function(){function e(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}return Object.defineProperty(e.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),e}(),m=function(){function e(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._differ=null}return Object.defineProperty(e.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(e){Object(r.L)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(e)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if("ngForOf"in e){var t=e.ngForOf.currentValue;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(e){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((n=t).name||typeof n)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var n},e.prototype.ngDoCheck=function(){if(this._differ){var e=this._differ.diff(this.ngForOf);e&&this._applyChanges(e)}},e.prototype._applyChanges=function(e){var t=this,n=[];e.forEachOperation(function(e,r,o){if(null==e.previousIndex){var i=t._viewContainer.createEmbeddedView(t._template,new y(null,t.ngForOf,-1,-1),o),l=new _(e,i);n.push(l)}else null==o?t._viewContainer.remove(r):(i=t._viewContainer.get(r),t._viewContainer.move(i,o),l=new _(e,i),n.push(l))});for(var r=0;r0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r0;u||(u=e[l]=[]);var s=He(t)?Zone.root:Zone.current;if(0===u.length)u.push({zone:s,handler:i});else{for(var c=!1,f=0;f-1},t}(we),Qe=["alt","control","meta","shift"],Ke={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},Ye=function(e){function t(t){return e.call(this,t)||this}return Object(a.b)(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,r){var o=t.parseEventName(n),i=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return ee().onAndCancel(e,o.domEventName,i)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=t._normalizeKey(n.pop()),i="";if(Qe.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=o,0!=n.length||0===o.length)return null;var l={};return l.domEventName=r,l.fullKey=i,l},t.getEventFullKey=function(e){var t="",n=ee().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Qe.forEach(function(r){r!=n&&(0,Ke[r])(e)&&(t+=r+".")}),t+=n},t.eventCallback=function(e,n,r){return function(o){t.getEventFullKey(o)===e&&r.runGuarded(function(){return n(o)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(we),Je=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Xe=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function et(e){return(e=String(e)).match(Je)||e.match(Xe)?e:(Object(r.L)()&&ee().log("WARNING: sanitizing unsafe URL value "+e+" (see http://g.co/ng/security#xss)"),"unsafe:"+e)}var tt=null,nt=null;function rt(e){for(var t={},n=0,r=e.split(",");n")):this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=nt.nodeName(e).toLowerCase();st.hasOwnProperty(t)&&!it.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push(yt(e))},e}();function ht(e,t){if(t&&nt.contains(e,t))throw new Error("Failed to sanitize html because the element is clobbered: "+nt.getOuterHTML(e));return t}var gt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,vt=/([^\#-~ |!])/g;function yt(e){return e.replace(/&/g,"&").replace(gt,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(vt,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function mt(e){nt.attributeMap(e).forEach(function(t,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||nt.removeAttribute(e,n)});for(var t=0,n=nt.childNodesAsList(e);te?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return Nt(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return Mt.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(Nt(t.value))return null;var n=t.value?t.value.length:0;return ne?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){return t?("string"==typeof t?(r="","^"!==t.charAt(0)&&(r+="^"),r+=t,"$"!==t.charAt(t.length-1)&&(r+="$"),n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(Nt(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(Ft);return 0==t.length?null:function(e){return Bt(function(e,n){return t.map(function(t){return t(e)})}(e))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(Ft);return 0==t.length?null:function(e){var n=function(e,n){return t.map(function(t){return t(e)})}(e).map(Lt);return J.call(z(n),Bt)}},e}();function Ft(e){return null!=e}function Lt(e){var t=Object(r._0)(e)?$(e):e;if(!Object(r.Z)(t))throw new Error("Expected validator to return Promise or Observable.");return t}function Bt(e){var t=e.reduce(function(e,t){return null!=t?Object(a.a)({},e,t):e},{});return 0===Object.keys(t).length?null:t}var Ut=new r.l("NgValueAccessor"),Ht=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),zt=function(){function e(e,t,n){var r;this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=ee()?ee().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._handleInput=function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)},e.prototype._compositionStart=function(){this._composing=!0},e.prototype._compositionEnd=function(e){this._composing=!1,this._compositionMode&&this.onChange(e)},e}();function Gt(e){return e.validate?function(t){return e.validate(t)}:e}function Wt(e){return e.validate?function(t){return e.validate(t)}:e}var Zt=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}();function qt(){throw new Error("unimplemented")}var $t=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return Object(a.b)(t,e),Object.defineProperty(t.prototype,"validator",{get:function(){return qt()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return qt()},enumerable:!0,configurable:!0}),t}(Pt),Qt=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name},e}(),Kt=function(){function e(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get($t),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},e}();function Yt(e,t){return t.path.concat([e])}function Jt(e,t){e||en(t,"Cannot find control with"),t.valueAccessor||en(t,"No value accessor for form control with"),e.validator=Rt.compose([e.validator,t.validator]),e.asyncValidator=Rt.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Xt(e,t)})}(e,t),function(e,t){e.registerOnChange(function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Xt(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(function(e){t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return e.updateValueAndValidity()})}),t._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return e.updateValueAndValidity()})})}function Xt(e,t){t.viewToModelUpdate(e._pendingValue),e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),e._pendingChange=!1}function en(e,t){var n;throw n=e.path.length>1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function tn(e){return null!=e?Rt.compose(e.map(Gt)):null}function nn(e){return null!=e?Rt.composeAsync(e.map(Wt)):null}function rn(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object(r._1)(t,n.currentValue)}var on=[Ht,function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),Zt,function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=r._1}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i0||this.disabled},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},t}(dn),gn=function(e){function t(t,n,r){var o=e.call(this,sn(n),cn(r,n))||this;return o.controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(a.b)(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach(function(e,r){n._throwIfControlMissing(r),n.at(r).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach(function(e,r){n.at(r)&&n.at(r).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this.controls.map(function(e){return e instanceof pn?e.value:e.getRawValue()})},t.prototype._syncPendingControls=function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach(function(t,n){e(t,n)})},t.prototype._updateValue=function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})},t.prototype._anyControls=function(e){return this.controls.some(function(t){return t.enabled&&e(t)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")})},t.prototype._allControlsDisabled=function(){for(var e=0,t=this.controls;e0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(dn),vn=Promise.resolve(null),yn=function(e){function t(t,n){var o=e.call(this)||this;return o.submitted=!1,o._directives=[],o.ngSubmit=new r.j,o.form=new hn({},tn(t),nn(n)),o}return Object(a.b)(t,e),t.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;vn.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Jt(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t=this;vn.then(function(){var n,r,o=t._findContainer(e.path);o&&o.removeControl(e.name),(r=(n=t._directives).indexOf(e))>-1&&n.splice(r,1)})},t.prototype.addFormGroup=function(e){var t=this;vn.then(function(){var n=t._findContainer(e.path),r=new hn({});(function(e,t){null==e&&en(t,"Cannot find control with"),e.validator=Rt.compose([e.validator,t.validator]),e.asyncValidator=Rt.composeAsync([e.asyncValidator,t.asyncValidator])})(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(e){var t=this;vn.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){var n=this;vn.then(function(){n.form.get(e.path).setValue(t)})},t.prototype.setValue=function(e){this.control.setValue(e)},t.prototype.onSubmit=function(e){return this.submitted=!0,t=this._directives,this.form._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}),this.ngSubmit.emit(e),!1;var t},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},t.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},t}(Dt),mn='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',_n='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',bn='\n
\n
\n \n
\n
',wn=function(){function e(){}return e.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+mn+'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')},e.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+_n+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+bn)},e.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},e.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+_n+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+bn)},e}(),xn=function(e){function t(t,n,r){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=r,o}return Object(a.b)(t,e),t.prototype._checkParentType=function(){this._parent instanceof t||this._parent instanceof yn||wn.modelGroupParentException()},t}(un),Cn=Promise.resolve(null),En=function(e){function t(t,n,o,i){var l=e.call(this)||this;return l.control=new pn,l._registered=!1,l.update=new r.j,l._parent=t,l._rawValidators=n||[],l._rawAsyncValidators=o||[],l.valueAccessor=ln(l,i),l}return Object(a.b)(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),rn(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?Yt(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return tn(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return nn(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){Jt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof xn)&&this._parent instanceof un?wn.formGroupNameException():this._parent instanceof xn||this._parent instanceof yn||wn.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||wn.missingNameException()},t.prototype._updateValue=function(e){var t=this;Cn.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;Cn.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})},t}($t),On=function(){function e(){}return e.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+mn)},e.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+_n+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+bn)},e.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+mn)},e.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+_n)},e.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},e.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},e}(),kn=function(e){function t(t,n,o){var i=e.call(this)||this;return i.update=new r.j,i._rawValidators=t||[],i._rawAsyncValidators=n||[],i.valueAccessor=ln(i,o),i}return Object(a.b)(t,e),Object.defineProperty(t.prototype,"isDisabled",{set:function(e){On.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._isControlChanged(e)&&(Jt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),rn(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return tn(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return nn(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._isControlChanged=function(e){return e.hasOwnProperty("form")},t}($t),Vn=function(){function e(){}return e.prototype.group=function(e,t){void 0===t&&(t=null);var n=this._reduceControls(e);return new hn(n,null!=t?t.validator:null,null!=t?t.asyncValidator:null)},e.prototype.control=function(e,t,n){return new pn(e,t,n)},e.prototype.array=function(e,t,n){var r=this,o=e.map(function(e){return r._createControl(e)});return new gn(o,t,n)},e.prototype._reduceControls=function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]=t._createControl(e[r])}),n},e.prototype._createControl=function(e){return e instanceof pn||e instanceof hn||e instanceof gn?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)},e}(),An=function(){},Tn=function(){},Sn=function(){},jn=n("vyOh"),In=jn,Pn=function(){function e(e,t,n,r){void 0===r&&(r=null),this.value=e,this.text=t,this.disabled=n,this._parent=r,this.type="option",this.cacheRenderedText=null}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),e.prototype.renderText=function(e,t){return this.cacheHighlightText===t&&null!==this.cacheRenderedText||(this.cacheHighlightText=t,this.cacheRenderedText=e.bypassSecurityTrustHtml(this.cacheHighlightText?this.text.replace(new RegExp(In(this.cacheHighlightText),"gi"),"$&"):this.text)),this.cacheRenderedText},e}(),Dn=function(){function e(e,t){void 0===t&&(t=[]),this.label=e,this.options=t,this.type="optgroup",this.filter(function(){return!0})}return e.prototype.filter=function(e){this.optionsFiltered=this.options.filter(function(t){return e(t)})},e}(),Nn=n("xrDH"),Mn=n("TO51"),Rn=n("Upor"),Fn=function(e){function t(t){e.call(this),this._value=t}return Object(a.b)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Rn.a;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(Mn.a);M.a.empty=R.a.create;var Ln=n("kQVV"),Bn=n("mHG6"),Un=n("X3fp"),Hn=function(e){function t(t,n){if(e.call(this),this.scheduler=n,null==t)throw new Error("iterator cannot be null.");this.iterator=Wn(t)}return Object(a.b)(t,e),t.create=function(e,n){return new t(e,n)},t.dispatch=function(e){var t=e.index,n=e.iterator,r=e.subscriber;if(e.hasError)r.error(e.error);else{var o=n.next();o.done?r.complete():(r.next(o.value),e.index=t+1,r.closed?"function"==typeof n.return&&n.return():this.schedule(e))}},t.prototype._subscribe=function(e){var n=this.iterator,r=this.scheduler;if(r)return r.schedule(t.dispatch,0,{index:0,iterator:n,subscriber:e});for(;;){var o=n.next();if(o.done){e.complete();break}if(e.next(o.value),e.closed){"function"==typeof n.return&&n.return();break}}},t}(M.a),zn=function(){function e(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length),this.str=e,this.idx=t,this.len=n}return e.prototype[Un.a]=function(){return this},e.prototype.next=function(){return this.idxZn?Zn:o:o}()),this.arr=e,this.idx=t,this.len=n}return e.prototype[Un.a]=function(){return this},e.prototype.next=function(){return this.idx=e.length?r.complete():(r.next(t[n]),e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.arrayLike,r=this.scheduler,o=n.length;if(r)return r.schedule(t.dispatch,0,{arrayLike:n,index:0,length:o,subscriber:e});for(var i=0;i=2&&(n=!0),function(r){return r.lift(new cr(e,t,n))}}M.a.prototype.mergeMap=ar,M.a.prototype.flatMap=ar;var cr=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new fr(e,this.accumulator,this.seed,this.hasSeed))},e}(),fr=function(e){function t(t,n,r,o){e.call(this,t),this.accumulator=n,this._seed=r,this.hasSeed=o,this.index=0}return Object(a.b)(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(Q.a),dr=function(e){function t(){var t=e.call(this,"argument out of range");this.name=t.name="ArgumentOutOfRangeError",this.stack=t.stack,this.message=t.message}return Object(a.b)(t,e),t}(Error);function pr(e){return function(t){return 0===e?new R.a:t.lift(new hr(e))}}var hr=function(){function e(e){if(this.total=e,this.total<0)throw new dr}return e.prototype.call=function(e,t){return t.subscribe(new gr(e,this.total))},e}(),gr=function(e){function t(t,n){e.call(this,t),this.total=n,this.ring=new Array,this.count=0}return Object(a.b)(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,r=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o=2?function(n){return Object(mr.a)(sr(e,t),pr(1),(void 0===(r=t)&&(r=null),function(e){return e.lift(new vr(r))}))(n);var r}:function(t){return Object(mr.a)(sr(function(t,n,r){return e(t,n,r+1)}),pr(1))(t)}}(_r,[])(this)};var br=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new wr(e,this.predicate,this.thisArg))},e}(),wr=function(e){function t(t,n,r){e.call(this,t),this.predicate=n,this.thisArg=r,this.count=0}return Object(a.b)(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(Q.a);M.a.prototype.filter=function(e,t){return function(e,t){return function(n){return n.lift(new br(e,t))}}(e,t)(this)};var xr=n("URbD");M.a.prototype.share=xr.a;var Cr=n("2kLc");M.a.prototype.merge=function(){for(var e=[],t=0;t=0?n[r]:n[n.length-1];case Ar.next:return(r=n.indexOf(t.optionActive)+1)t.scrollTop+t.clientHeight&&(t.scrollTop=this.cacheElementOffsetTop+e.offsetHeight-t.clientHeight)}},e.prototype.optionsOpen=function(e){void 0===e&&(e=""),this.disabled||(this.optionsOpened=!0,this.subjSearchText.next(e),!this.multiple&&this.subjOptionsSelected.value.length?this.optionActivate(this.subjOptionsSelected.value[0]):this.navigateOption(Ar.first),this.focusToInput(),this.open.emit())},e.prototype.optionsClose=function(e){if(void 0===e&&(e=!1),this.optionsOpened=!1,e){var t=window.scrollX,n=window.scrollY;this.mainElRef.nativeElement.focus(),window.scrollTo(t,n)}this.close.emit()},e.prototype.buildOptions=function(e){var t,n=this,r=[];return Array.isArray(e)&&e.forEach(function(e){if("object"==typeof e&&null!==e&&e.hasOwnProperty(n.optGroupLabelField)&&e.hasOwnProperty(n.optGroupOptionsField)&&Array.isArray(e[n.optGroupOptionsField])){var o=new Dn(e[n.optGroupLabelField]);e[n.optGroupOptionsField].forEach(function(e){(t=n.buildOption(e,o))&&o.options.push(t)}),r.push(o)}else(t=n.buildOption(e,null))&&r.push(t)}),r},e.prototype.buildOption=function(e,t){var n,r,o;if("string"==typeof e||"number"==typeof e)n=r=e,o=!1;else{if("object"!=typeof e||null===e||!e.hasOwnProperty(this.optionValueField)&&!e.hasOwnProperty(this.optionTextField))return null;n=e.hasOwnProperty(this.optionValueField)?e[this.optionValueField]:e[this.optionTextField],r=e.hasOwnProperty(this.optionTextField)?e[this.optionTextField]:e[this.optionValueField],o=!!e.hasOwnProperty("disabled")&&e.disabled}return new Pn(n,r,o,t)},e.prototype.writeValue=function(e){this.subjExternalValue.next(e)},e.prototype.registerOnChange=function(e){this.onChange=e,this.subjRegisterOnChange.next()},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e}(),Sr=r.T({encapsulation:0,styles:[['.ngx-select[_ngcontent-%COMP%]{\n }.ngx-select_multiple[_ngcontent-%COMP%]{height:auto;padding:3px 3px 0 3px}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__search[_ngcontent-%COMP%]{background-color:transparent!important;\n border:none;outline:none;-webkit-box-shadow: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;\n color:#333;background-color:#fff;border-color:#ccc}.ngx-select__toggle[_ngcontent-%COMP%]:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.ngx-select__toggle-caret[_ngcontent-%COMP%]{position:absolute;height:10px;top:50%;right:10px;margin-top:-2px}.ngx-select__placeholder[_ngcontent-%COMP%]{float:left;color:inherit!important}.ngx-select__clear[_ngcontent-%COMP%]{margin-right:10px;padding:0}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__clear[_ngcontent-%COMP%]{line-height:normal;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%]:after, .ngx-select__clear-icon[_ngcontent-%COMP%]:before{content:"";position:absolute;border-top:3px solid;width:100%;top:50%;left:0;margin-top:-1px}.ngx-select__clear-icon[_ngcontent-%COMP%]:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.ngx-select__clear-icon[_ngcontent-%COMP%]:after{-webkit-transform:rotate(-45deg);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-plural[_ngcontent-%COMP%], .ngx-select__selected-single[_ngcontent-%COMP%]{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.ngx-select__selected-plural[_ngcontent-%COMP%]{outline:0;margin:0 3px 3px 0}\n .input-group[_ngcontent-%COMP%] > .dropdown[_ngcontent-%COMP%]{\n position:static}']],data:{}});function jr(e){return r._17(0,[(e()(),r.V(0,0,null,null,3,"a",[["class","ngx-select__clear btn btn-sm btn-link pull-right float-right"]],null,[[null,"click"]],function(e,t,n){var r=!0,o=e.component;return"click"===t&&(r=!1!==o.optionRemove(o.optionsSelected[0],n)&&r),r},null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(2,0,null,null,0,"i",[["class","ngx-select__clear-icon"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "]))],null,null)}function Ir(e){return r._17(0,[(e()(),r.V(0,0,null,null,15,"div",[["class","ngx-select__selected ui-select-match"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(2,0,null,null,12,"div",[["class","ngx-select__toggle btn form-control ui-select-toggle"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.optionsOpen()&&r),r},null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(4,0,null,null,2,"span",[],[[8,"innerHTML",1]],null,null,null,null)),r.U(5,278528,null,0,v,[r.n,r.o,r.h,r.w],{ngClass:[0,"ngClass"]},null),r._10(6,{"ngx-select__placeholder ui-select-placeholder text-muted":0,"ngx-select__selected-single ui-select-match-text pull-left float-left":1,"ngx-select__allow-clear ui-select-allow-clear":2}),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(8,0,null,null,0,"i",[["class","dropdown-toggle pull-right float-right"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(10,0,null,null,0,"i",[["class","ngx-select__toggle-caret caret pull-right float-right"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.Q(16777216,null,null,1,null,jr)),r.U(13,16384,null,0,b,[r.E,r.B],{ngIf:[0,"ngIf"]},null),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,5,0,e(t,6,0,!n.optionsSelected.length,n.optionsSelected.length,n.optionsSelected.length&&n.allowClear)),e(t,13,0,n.canClearNotMultiple())},function(e,t){var n=t.component;e(t,4,0,n.sanitize(n.optionsSelected.length?n.optionsSelected[0].text:n.placeholder))})}function Pr(e){return r._17(0,[(e()(),r.V(0,0,null,null,11,"span",[],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(2,0,null,null,8,"span",[["class","ngx-select__selected-plural btn btn-default btn-secondary btn-xs ui-select-match-item"],["tabindex","-1"],["type","button"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(4,0,null,null,0,"span",[],[[8,"innerHTML",1]],null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(6,0,null,null,3,"a",[["class","ngx-select__clear btn btn-sm btn-link pull-right float-right"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.optionRemove(e.context.$implicit,n)&&r),r},null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(8,0,null,null,0,"i",[["class","ngx-select__clear-icon"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "]))],null,function(e,t){e(t,4,0,t.component.sanitize(t.context.$implicit.text))})}function Dr(e){return r._17(0,[(e()(),r.V(0,0,null,null,4,"div",[["class","ngx-select__selected ui-select-match"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.Q(16777216,null,null,1,null,Pr)),r.U(3,802816,null,0,m,[r.E,r.B,r.n],{ngForOf:[0,"ngForOf"]},null),(e()(),r._15(-1,null,["\n "]))],function(e,t){e(t,3,0,t.component.optionsSelected)},null)}function Nr(e){return r._17(0,[(e()(),r.V(0,0,[[2,0],["input",1]],null,0,"input",[["autocapitalize","off"],["autocomplete","false"],["autocorrect","off"],["class","ngx-select__search form-control ui-select-search"],["role","combobox"],["spellcheck","false"],["type","text"]],[[8,"tabIndex",0],[8,"disabled",0],[8,"placeholder",0]],[[null,"keydown"],[null,"keyup"],[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"keydown"===t&&(o=!1!==i.inputKeyDown(n)&&o),"keyup"===t&&(o=!1!==i.inputKeyUp(n,r._6(e,0).value)&&o),"click"===t&&(o=!1!==i.inputClick(r._6(e,0).value)&&o),o},null,null))],null,function(e,t){var n=t.component;e(t,0,0,!1===n.multiple?-1:0,n.disabled,n.optionsSelected.length?"":n.placeholder)})}function Mr(e){return r._17(0,[(e()(),r.V(0,0,null,null,0,"div",[["class","divider dropdown-divider"]],null,null,null,null,null))],null,null)}function Rr(e){return r._17(0,[(e()(),r.V(0,0,null,null,1,"div",[["class","dropdown-header"]],null,null,null,null,null)),(e()(),r._15(1,null,["",""]))],null,function(e,t){e(t,1,0,t.parent.context.$implicit.label)})}function Fr(e){return r._17(0,[(e()(),r.V(0,0,[["choiceItem",1]],null,3,"a",[["class","ngx-select__item ui-select-choices-row dropdown-item"],["href","#"]],[[8,"innerHTML",1]],[[null,"mouseenter"],[null,"click"]],function(e,t,n){var r=!0,o=e.component;return"mouseenter"===t&&(r=!1!==o.optionActivate(e.context.$implicit)&&r),"click"===t&&(r=!1!==o.optionSelect(e.context.$implicit,n)&&r),r},null,null)),r.U(1,278528,null,0,v,[r.n,r.o,r.h,r.w],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),r._10(2,{"ngx-select__item_active active":0,"ngx-select__item_disabled disabled":1}),(e()(),r._15(-1,null,["\n "]))],function(e,t){e(t,1,0,"ngx-select__item ui-select-choices-row dropdown-item",e(t,2,0,t.component.isOptionActive(t.context.$implicit,r._6(t,0)),t.context.$implicit.disabled))},function(e,t){e(t,0,0,t.component.highlightOption(t.context.$implicit))})}function Lr(e){return r._17(0,[(e()(),r.V(0,0,null,null,11,"li",[["class","ngx-select__item-group"],["role","menuitem"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.Q(16777216,null,null,1,null,Mr)),r.U(3,16384,null,0,b,[r.E,r.B],{ngIf:[0,"ngIf"]},null),(e()(),r._15(-1,null,["\n "])),(e()(),r.Q(16777216,null,null,1,null,Rr)),r.U(6,16384,null,0,b,[r.E,r.B],{ngIf:[0,"ngIf"]},null),(e()(),r._15(-1,null,["\n\n "])),(e()(),r.Q(16777216,null,null,2,null,Fr)),r.U(9,802816,null,0,m,[r.E,r.B,r.n],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),r._8(10,1),(e()(),r._15(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,"optgroup"===t.context.$implicit.type&&t.context.index>0),e(t,6,0,"optgroup"===t.context.$implicit.type),e(t,9,0,t.context.$implicit.optionsFiltered||e(t,10,0,t.context.$implicit),n.trackByOption)},null)}function Br(e){return r._17(0,[(e()(),r.V(0,0,null,null,1,"li",[["class","ngx-select__item ngx-select__item_no-found dropdown-header"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n No results found\n "]))],null,null)}function Ur(e){return r._17(0,[r._13(402653184,1,{mainElRef:0}),r._13(671088640,2,{inputElRef:0}),r._13(402653184,3,{choiceMenuElRef:0}),(e()(),r.V(3,0,[[1,0],["main",1]],null,29,"div",[["class","ngx-select ui-select-container dropdown"]],[[8,"tabIndex",0]],[[null,"click"],[null,"focusin"],[null,"focus"],[null,"keydown"],[null,"keyup"]],function(e,t,n){var r=!0,o=e.component;return"click"===t&&(r=!1!==o.mainClicked(n)&&r),"focusin"===t&&(r=!1!==o.mainClicked(n)&&r),"focus"===t&&(r=!1!==o.focusToInput()&&r),"keydown"===t&&(r=!1!==o.inputKeyDown(n)&&r),"keyup"===t&&(r=!1!==o.mainKeyUp(n)&&r),r},null,null)),r.U(4,278528,null,0,v,[r.n,r.o,r.h,r.w],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),r._10(5,{"ngx-select_multiple ui-select-multiple form-control":0,"open show":1}),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(7,0,null,null,2,"div",[],null,null,null,null,null)),r.U(8,278528,null,0,v,[r.n,r.o,r.h,r.w],{ngClass:[0,"ngClass"]},null),r._10(9,{"ngx-select__disabled ui-disabled":0}),(e()(),r._15(-1,null,["\n\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.Q(16777216,null,null,1,null,Ir)),r.U(13,16384,null,0,b,[r.E,r.B],{ngIf:[0,"ngIf"]},null),(e()(),r._15(-1,null,["\n\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.Q(16777216,null,null,1,null,Dr)),r.U(17,16384,null,0,b,[r.E,r.B],{ngIf:[0,"ngIf"]},null),(e()(),r._15(-1,null,["\n\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.Q(16777216,null,null,1,null,Nr)),r.U(21,16384,null,0,b,[r.E,r.B],{ngIf:[0,"ngIf"]},null),(e()(),r._15(-1,null,["\n\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(24,0,[[3,0],["choiceMenu",1]],null,7,"ul",[["class","ngx-select__choices ui-select-choices dropdown-menu"],["role","menu"]],[[2,"show",null]],null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.Q(16777216,null,null,1,null,Lr)),r.U(27,802816,null,0,m,[r.E,r.B,r.n],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),r._15(-1,null,["\n "])),(e()(),r.Q(16777216,null,null,1,null,Br)),r.U(30,16384,null,0,b,[r.E,r.B],{ngIf:[0,"ngIf"]},null),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n\n"]))],function(e,t){var n=t.component;e(t,4,0,"ngx-select ui-select-container dropdown",e(t,5,0,!0===n.multiple,n.optionsOpened&&n.optionsFiltered.length)),e(t,8,0,e(t,9,0,n.disabled)),e(t,13,0,!1===n.multiple&&(!n.optionsOpened||n.noAutoComplete)),e(t,17,0,!0===n.multiple),e(t,21,0,n.checkInputVisibility()),e(t,27,0,n.optionsFiltered,n.trackByOption),e(t,30,0,!n.optionsFiltered.length)},function(e,t){var n=t.component;e(t,3,0,n.disabled?-1:0),e(t,24,0,n.optionsOpened)})}var Hr=function(){function e(){var e=this;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 pn,this._ngxDefaultTimeout=setTimeout(function(){e._ngxDefaultInterval=setInterval(function(){var t=Math.floor(Math.random()*(e.items.length-1));e._ngxDefault=e.items[t]},2e3)},2e3)}return e.prototype.ngOnDestroy=function(){clearTimeout(this._ngxDefaultTimeout),clearInterval(this._ngxDefaultInterval)},e.prototype.doNgxDefault=function(){return this._ngxDefault},e.prototype.inputTyped=function(e,t){console.log("SingleDemoComponent.inputTyped",e,t)},e.prototype.doFocus=function(){console.log("SingleDemoComponent.doFocus")},e.prototype.doBlur=function(){console.log("SingleDemoComponent.doBlur")},e.prototype.doOpen=function(){console.log("SingleDemoComponent.doOpen")},e.prototype.doClose=function(){console.log("SingleDemoComponent.doClose")},e}(),zr=r.T({encapsulation:2,styles:[],data:{}});function Gr(e){return r._17(0,[(e()(),r.V(0,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),r._15(-1,null,["Select a single city"])),(e()(),r._15(-1,null,["\n"])),(e()(),r.V(3,0,null,null,27,"div",[["class","example-block"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(5,0,null,null,24,"div",[["class","example-block__item"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(7,0,null,null,6,"ngx-select",[["placeholder","No city selected"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"typed"],[null,"focus"],[null,"blur"],[null,"open"],[null,"close"],["document","focusin"],["document","click"]],function(e,t,n){var o=!0,i=e.component;return"document:focusin"===t&&(o=!1!==r._6(e,8).documentClick(n)&&o),"document:click"===t&&(o=!1!==r._6(e,8).documentClick(n)&&o),"typed"===t&&(o=!1!==i.inputTyped("ngx-select",n)&&o),"focus"===t&&(o=!1!==i.doFocus()&&o),"blur"===t&&(o=!1!==i.doBlur()&&o),"open"===t&&(o=!1!==i.doOpen()&&o),"close"===t&&(o=!1!==i.doClose()&&o),o},Ur,Sr)),r.U(8,2408448,null,0,Tr,[wt,r.n],{items:[0,"items"],allowClear:[1,"allowClear"],placeholder:[2,"placeholder"],defaultValue:[3,"defaultValue"]},{typed:"typed",focus:"focus",blur:"blur",open:"open",close:"close"}),r._11(1024,null,Ut,function(e){return[e]},[Tr]),r.U(10,540672,null,0,kn,[[8,null],[8,null],[2,Ut]],{form:[0,"form"]},null),r._11(2048,null,$t,null,[kn]),r.U(12,16384,null,0,an,[$t],null,null),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(15,0,null,null,0,"p",[],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(17,0,null,null,5,"div",[["class","alert alert-secondary"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(19,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),r._15(20,null,["",""])),r._9(0,x,[]),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(24,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(26,0,null,null,1,"button",[["class","btn btn-primary"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0,o=e.component;return"click"===t&&(r=!1!==(o.ngxControl.disabled?o.ngxControl.enable():o.ngxControl.disable())&&r),r},null,null)),(e()(),r._15(27,null,["\n ","\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n"])),(e()(),r._15(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.items,!0,"No city selected",n.doNgxDefault()),e(t,10,0,n.ngxControl)},function(e,t){var n=t.component;e(t,7,0,r._6(t,12).ngClassUntouched,r._6(t,12).ngClassTouched,r._6(t,12).ngClassPristine,r._6(t,12).ngClassDirty,r._6(t,12).ngClassValid,r._6(t,12).ngClassInvalid,r._6(t,12).ngClassPending),e(t,20,0,r._16(t,20,0,r._6(t,21).transform(n.ngxControl.value))),e(t,27,0,n.ngxControl.disabled?"Enable":"Disable")})}var Wr=function(){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},Zr=r.T({encapsulation:2,styles:[],data:{}});function qr(e){return r._17(0,[(e()(),r.V(0,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),r._15(-1,null,["Select multiple cities"])),(e()(),r._15(-1,null,["\n"])),(e()(),r.V(3,0,null,null,27,"div",[["class","example-block"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(5,0,null,null,24,"div",[["class","example-block__item"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(7,0,null,null,6,"ngx-select",[["placeholder","No city selected"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],["document","focusin"],["document","click"]],function(e,t,n){var o=!0,i=e.component;return"document:focusin"===t&&(o=!1!==r._6(e,8).documentClick(n)&&o),"document:click"===t&&(o=!1!==r._6(e,8).documentClick(n)&&o),"ngModelChange"===t&&(o=!1!==(i.ngxValue=n)&&o),o},Ur,Sr)),r.U(8,2408448,null,0,Tr,[wt,r.n],{items:[0,"items"],multiple:[1,"multiple"],placeholder:[2,"placeholder"],disabled:[3,"disabled"]},null),r._11(1024,null,Ut,function(e){return[e]},[Tr]),r.U(10,671744,null,0,En,[[8,null],[8,null],[8,null],[2,Ut]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),r._11(2048,null,$t,null,[En]),r.U(12,16384,null,0,an,[$t],null,null),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(15,0,null,null,0,"p",[],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(17,0,null,null,5,"div",[["class","alert alert-secondary"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(19,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),r._15(20,null,["",""])),r._9(0,x,[]),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(24,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(26,0,null,null,1,"button",[["class","btn btn-primary"]],null,[[null,"click"]],function(e,t,n){var r=!0,o=e.component;return"click"===t&&(r=0!=(o.ngxDisabled=!o.ngxDisabled)&&r),r},null,null)),(e()(),r._15(27,null,["\n ","\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n"])),(e()(),r._15(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.items,!0,"No city selected",n.ngxDisabled),e(t,10,0,n.ngxDisabled,n.ngxValue)},function(e,t){var n=t.component;e(t,7,0,r._6(t,12).ngClassUntouched,r._6(t,12).ngClassTouched,r._6(t,12).ngClassPristine,r._6(t,12).ngClassDirty,r._6(t,12).ngClassValid,r._6(t,12).ngClassInvalid,r._6(t,12).ngClassPending),e(t,20,0,r._16(t,20,0,r._6(t,21).transform(n.ngxValue))),e(t,27,0,n.ngxDisabled?"Enable":"Disable")})}var $r=function(){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},Qr=r.T({encapsulation:2,styles:[],data:{}});function Kr(e){return r._17(0,[(e()(),r.V(0,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),r._15(-1,null,["Select a city by country"])),(e()(),r._15(-1,null,["\n"])),(e()(),r.V(3,0,null,null,27,"div",[["class","example-block"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(5,0,null,null,24,"div",[["class","example-block__item"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(7,0,null,null,6,"ngx-select",[["optGroupLabelField","text"],["optGroupOptionsField","children"],["optionTextField","text"],["optionValueField","id"],["placeholder","No city selected"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],["document","focusin"],["document","click"]],function(e,t,n){var o=!0,i=e.component;return"document:focusin"===t&&(o=!1!==r._6(e,8).documentClick(n)&&o),"document:click"===t&&(o=!1!==r._6(e,8).documentClick(n)&&o),"ngModelChange"===t&&(o=!1!==(i.ngxValue=n)&&o),o},Ur,Sr)),r.U(8,2408448,null,0,Tr,[wt,r.n],{items:[0,"items"],optionValueField:[1,"optionValueField"],optionTextField:[2,"optionTextField"],optGroupLabelField:[3,"optGroupLabelField"],optGroupOptionsField:[4,"optGroupOptionsField"],allowClear:[5,"allowClear"],placeholder:[6,"placeholder"],disabled:[7,"disabled"]},null),r._11(1024,null,Ut,function(e){return[e]},[Tr]),r.U(10,671744,null,0,En,[[8,null],[8,null],[8,null],[2,Ut]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),r._11(2048,null,$t,null,[En]),r.U(12,16384,null,0,an,[$t],null,null),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(15,0,null,null,0,"p",[],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(17,0,null,null,5,"div",[["class","alert alert-secondary"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(19,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),r._15(20,null,["",""])),r._9(0,x,[]),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(24,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(26,0,null,null,1,"button",[["class","btn btn-primary"]],null,[[null,"click"]],function(e,t,n){var r=!0,o=e.component;return"click"===t&&(r=0!=(o.ngxDisabled=!o.ngxDisabled)&&r),r},null,null)),(e()(),r._15(27,null,["\n ","\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n"])),(e()(),r._15(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.items,"id","text","text","children",!0,"No city selected",n.ngxDisabled),e(t,10,0,n.ngxDisabled,n.ngxValue)},function(e,t){var n=t.component;e(t,7,0,r._6(t,12).ngClassUntouched,r._6(t,12).ngClassTouched,r._6(t,12).ngClassPristine,r._6(t,12).ngClassDirty,r._6(t,12).ngClassValid,r._6(t,12).ngClassInvalid,r._6(t,12).ngClassPending),e(t,20,0,r._16(t,20,0,r._6(t,21).transform(n.ngxValue))),e(t,27,0,n.ngxDisabled?"Enable":"Disable")})}var Yr=[{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"}],Jr=function(){function e(){this.items=[],this.ngxValue=[],this.ngxDisabled=!1}return e.prototype.ngOnInit=function(){var e=this;Yr.forEach(function(t){e.items.push({id:t.hex,text:""+t.name+" ("+t.hex+")",disabled:t.disabled})})},e}(),Xr=r.T({encapsulation:2,styles:["colorbox, .colorbox {\n display: inline-block;\n height: 14px;\n width: 14px;\n margin-right: 4px;\n border: 1px solid #000;\n }"],data:{}});function eo(e){return r._17(0,[(e()(),r.V(0,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),r._15(-1,null,["Select a color"])),(e()(),r._15(-1,null,["\n"])),(e()(),r.V(3,0,null,null,27,"div",[["class","example-block"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(5,0,null,null,24,"div",[["class","example-block__item"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(7,0,null,null,6,"ngx-select",[["placeholder","No city selected"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],["document","focusin"],["document","click"]],function(e,t,n){var o=!0,i=e.component;return"document:focusin"===t&&(o=!1!==r._6(e,8).documentClick(n)&&o),"document:click"===t&&(o=!1!==r._6(e,8).documentClick(n)&&o),"ngModelChange"===t&&(o=!1!==(i.ngxValue=n)&&o),o},Ur,Sr)),r.U(8,2408448,null,0,Tr,[wt,r.n],{items:[0,"items"],allowClear:[1,"allowClear"],placeholder:[2,"placeholder"],disabled:[3,"disabled"]},null),r._11(1024,null,Ut,function(e){return[e]},[Tr]),r.U(10,671744,null,0,En,[[8,null],[8,null],[8,null],[2,Ut]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),r._11(2048,null,$t,null,[En]),r.U(12,16384,null,0,an,[$t],null,null),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(15,0,null,null,0,"p",[],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(17,0,null,null,5,"div",[["class","alert alert-secondary"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(19,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),r._15(20,null,["",""])),r._9(0,x,[]),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(24,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(26,0,null,null,1,"button",[["class","btn btn-primary"]],null,[[null,"click"]],function(e,t,n){var r=!0,o=e.component;return"click"===t&&(r=0!=(o.ngxDisabled=!o.ngxDisabled)&&r),r},null,null)),(e()(),r._15(27,null,["\n ","\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n"])),(e()(),r._15(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.items,!0,"No city selected",n.ngxDisabled),e(t,10,0,n.ngxDisabled,n.ngxValue)},function(e,t){var n=t.component;e(t,7,0,r._6(t,12).ngClassUntouched,r._6(t,12).ngClassTouched,r._6(t,12).ngClassPristine,r._6(t,12).ngClassDirty,r._6(t,12).ngClassValid,r._6(t,12).ngClassInvalid,r._6(t,12).ngClassPending),e(t,20,0,r._16(t,20,0,r._6(t,21).transform(n.ngxValue))),e(t,27,0,n.ngxDisabled?"Enable":"Disable")})}var to=function(){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 e=[],t=function(t){n._items.forEach(function(n){return e.push(t+" "+n)})},n=this,r=1;r<=20;r++)t(r);this.items=e},no=r.T({encapsulation:2,styles:[],data:{}});function ro(e){return r._17(0,[(e()(),r.V(0,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),r._15(1,null,["Select a single city with "," items"])),(e()(),r._15(-1,null,["\n"])),(e()(),r.V(3,0,null,null,27,"div",[["class","example-block"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(5,0,null,null,24,"div",[["class","example-block__item"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(7,0,null,null,6,"ngx-select",[["placeholder","No city selected"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],["document","focusin"],["document","click"]],function(e,t,n){var o=!0,i=e.component;return"document:focusin"===t&&(o=!1!==r._6(e,8).documentClick(n)&&o),"document:click"===t&&(o=!1!==r._6(e,8).documentClick(n)&&o),"ngModelChange"===t&&(o=!1!==(i.ngxValue=n)&&o),o},Ur,Sr)),r.U(8,2408448,null,0,Tr,[wt,r.n],{items:[0,"items"],allowClear:[1,"allowClear"],placeholder:[2,"placeholder"],noAutoComplete:[3,"noAutoComplete"],disabled:[4,"disabled"]},null),r._11(1024,null,Ut,function(e){return[e]},[Tr]),r.U(10,671744,null,0,En,[[8,null],[8,null],[8,null],[2,Ut]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),r._11(2048,null,$t,null,[En]),r.U(12,16384,null,0,an,[$t],null,null),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(15,0,null,null,0,"p",[],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(17,0,null,null,5,"div",[["class","alert alert-secondary"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(19,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),r._15(20,null,["",""])),r._9(0,x,[]),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(24,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(26,0,null,null,1,"button",[["class","btn btn-primary"]],null,[[null,"click"]],function(e,t,n){var r=!0,o=e.component;return"click"===t&&(r=0!=(o.ngxDisabled=!o.ngxDisabled)&&r),r},null,null)),(e()(),r._15(27,null,["\n ","\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.items,!0,"No city selected",!0,n.ngxDisabled),e(t,10,0,n.ngxDisabled,n.ngxValue)},function(e,t){var n=t.component;e(t,1,0,n.items.length),e(t,7,0,r._6(t,12).ngClassUntouched,r._6(t,12).ngClassTouched,r._6(t,12).ngClassPristine,r._6(t,12).ngClassDirty,r._6(t,12).ngClassValid,r._6(t,12).ngClassInvalid,r._6(t,12).ngClassPending),e(t,20,0,r._16(t,20,0,r._6(t,21).transform(n.ngxValue))),e(t,27,0,n.ngxDisabled?"Enable":"Disable")})}var oo=n("dLcb"),io={single:{heading:"Single",ts:n("aoq2"),html:n("OeOf")},multiple:{heading:"Multiple",ts:n("+hR6"),html:n("eGAc")},children:{heading:"Children",ts:n("1oDy"),html:n("tVn+")},rich:{heading:"Rich",ts:n("C4qH"),html:n("0Mtu")},noAutoComplete:{heading:"noAutoComplete",ts:n("qH3Z"),html:n("nthD")}},lo=function(){return function(){this.currentHeading="Single",this.tabDesc=io,this.doc=oo}}(),uo=r.T({encapsulation:0,styles:["[_nghost-%COMP%] {\n display: block\n }"],data:{}});function ao(e){return r._17(0,[(e()(),r._15(-1,null,["\n "])),(e()(),r.V(1,0,null,null,68,"section",[],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(3,0,null,null,57,"tabset",[],[[2,"tab-container",null]],null,null,j,A)),r.U(4,180224,null,0,V,[k,r.w],null,null),(e()(),r._15(-1,0,["\n "])),(e()(),r.V(6,0,null,0,9,"tab",[["heading","Single"]],[[1,"id",0],[2,"active",null],[2,"tab-pane",null]],null,null,null,null)),r.U(7,212992,null,0,I,[V,r.h,r.w],{heading:[0,"heading"]},null),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(9,0,null,null,5,"sample-section",[],null,null,null,N,D)),r.U(10,49152,null,0,P,[],{desc:[0,"desc"]},null),(e()(),r._15(-1,0,["\n "])),(e()(),r.V(12,0,null,0,1,"single-demo",[],null,null,null,Gr,zr)),r.U(13,180224,null,0,Hr,[],null,null),(e()(),r._15(-1,0,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,0,["\n "])),(e()(),r.V(17,0,null,0,9,"tab",[["heading","Multiple"]],[[1,"id",0],[2,"active",null],[2,"tab-pane",null]],null,null,null,null)),r.U(18,212992,null,0,I,[V,r.h,r.w],{heading:[0,"heading"]},null),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(20,0,null,null,5,"sample-section",[],null,null,null,N,D)),r.U(21,49152,null,0,P,[],{desc:[0,"desc"]},null),(e()(),r._15(-1,0,["\n "])),(e()(),r.V(23,0,null,0,1,"multiple-demo",[],null,null,null,qr,Zr)),r.U(24,49152,null,0,Wr,[],null,null),(e()(),r._15(-1,0,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,0,["\n "])),(e()(),r.V(28,0,null,0,9,"tab",[["heading","Children"]],[[1,"id",0],[2,"active",null],[2,"tab-pane",null]],null,null,null,null)),r.U(29,212992,null,0,I,[V,r.h,r.w],{heading:[0,"heading"]},null),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(31,0,null,null,5,"sample-section",[],null,null,null,N,D)),r.U(32,49152,null,0,P,[],{desc:[0,"desc"]},null),(e()(),r._15(-1,0,["\n "])),(e()(),r.V(34,0,null,0,1,"children-demo",[],null,null,null,Kr,Qr)),r.U(35,49152,null,0,$r,[],null,null),(e()(),r._15(-1,0,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,0,["\n "])),(e()(),r.V(39,0,null,0,9,"tab",[["heading","Rich"]],[[1,"id",0],[2,"active",null],[2,"tab-pane",null]],null,null,null,null)),r.U(40,212992,null,0,I,[V,r.h,r.w],{heading:[0,"heading"]},null),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(42,0,null,null,5,"sample-section",[],null,null,null,N,D)),r.U(43,49152,null,0,P,[],{desc:[0,"desc"]},null),(e()(),r._15(-1,0,["\n "])),(e()(),r.V(45,0,null,0,1,"rich-demo",[],null,null,null,eo,Xr)),r.U(46,114688,null,0,Jr,[],null,null),(e()(),r._15(-1,0,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,0,["\n "])),(e()(),r.V(50,0,null,0,9,"tab",[["heading","No autocomplete"]],[[1,"id",0],[2,"active",null],[2,"tab-pane",null]],null,null,null,null)),r.U(51,212992,null,0,I,[V,r.h,r.w],{heading:[0,"heading"]},null),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(53,0,null,null,5,"sample-section",[],null,null,null,N,D)),r.U(54,49152,null,0,P,[],{desc:[0,"desc"]},null),(e()(),r._15(-1,0,["\n "])),(e()(),r.V(56,0,null,0,1,"no-autocomplete-demo",[],null,null,null,ro,no)),r.U(57,49152,null,0,to,[],null,null),(e()(),r._15(-1,0,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,0,["\n "])),(e()(),r._15(-1,null,["\n\n "])),(e()(),r.V(62,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),r._15(-1,null,["Documentation"])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(65,0,null,null,3,"div",[["class","card card-block panel panel-default panel-body"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(67,0,null,null,0,"div",[["class","card-body doc-api"]],[[8,"innerHTML",1]],null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,7,0,"Single"),e(t,10,0,n.tabDesc.single),e(t,18,0,"Multiple"),e(t,21,0,n.tabDesc.multiple),e(t,29,0,"Children"),e(t,32,0,n.tabDesc.children),e(t,40,0,"Rich"),e(t,43,0,n.tabDesc.rich),e(t,46,0),e(t,51,0,"No autocomplete"),e(t,54,0,n.tabDesc.noAutoComplete)},function(e,t){var n=t.component;e(t,3,0,r._6(t,4).clazz),e(t,6,0,r._6(t,7).id,r._6(t,7).active,r._6(t,7).addClass),e(t,17,0,r._6(t,18).id,r._6(t,18).active,r._6(t,18).addClass),e(t,28,0,r._6(t,29).id,r._6(t,29).active,r._6(t,29).addClass),e(t,39,0,r._6(t,40).id,r._6(t,40).active,r._6(t,40).addClass),e(t,50,0,r._6(t,51).id,r._6(t,51).active,r._6(t,51).addClass),e(t,67,0,n.doc)})}var so=r.T({encapsulation:0,styles:[[""]],data:{}});function co(e){return r._17(0,[(e()(),r.V(0,0,null,null,36,"main",[["class","bd-pageheader"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(2,0,null,null,33,"div",[["class","container"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(4,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),r._15(5,null,["ngx-select-ex v",""])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(7,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r._15(-1,null,["Native Angular2 component for Select"])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(10,0,null,null,8,"p",[],null,null,null,null,null)),(e()(),r._15(-1,null,["\n Compatible with "])),(e()(),r.V(12,0,null,null,1,"a",[["class","badge badge-light"],["href","https://getbootstrap.com/docs/3.3/"],["target","_blank"]],null,null,null,null,null)),(e()(),r._15(-1,null,["Bootstrap\n 3"])),(e()(),r._15(-1,null,[" and\n "])),(e()(),r.V(15,0,null,null,2,"b",[],null,null,null,null,null)),(e()(),r.V(16,0,null,null,1,"a",[["class","badge badge-light"],["href","https://getbootstrap.com/"],["target","_blank"]],null,null,null,null,null)),(e()(),r._15(-1,null,["Bootstrap 4"])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(20,0,null,null,1,"a",[["class","btn btn-primary"],["href","https://github.com/optimistex/ngx-select-ex"]],null,null,null,null,null)),(e()(),r._15(-1,null,["View on GitHub"])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(23,0,null,null,11,"div",[["class","row"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(25,0,null,null,3,"div",[["class","col-lg-1"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(27,0,null,null,0,"iframe",[["frameborder","0"],["height","20px"],["scrolling","0"],["src","https://ghbtns.com/github-btn.html?user=optimistex&repo=ngx-select-ex&type=star&count=true"],["width","170px"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(30,0,null,null,3,"div",[["class","col-lg-1"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(32,0,null,null,0,"iframe",[["frameborder","0"],["height","20px"],["scrolling","0"],["src","https://ghbtns.com/github-btn.html?user=optimistex&repo=ngx-select-ex&type=fork&count=true"],["width","170px"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n"])),(e()(),r._15(-1,null,["\n\n"])),(e()(),r.V(38,0,null,null,6,"div",[["class","container"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(40,0,null,null,0,"section",[["id","getting-started"]],[[8,"innerHTML",1]],null,null,null,null)),(e()(),r._15(-1,null,["\n\n "])),(e()(),r.V(42,0,null,null,1,"select-section",[],null,null,null,ao,uo)),r.U(43,49152,null,0,lo,[],null,null),(e()(),r._15(-1,null,["\n"])),(e()(),r._15(-1,null,["\n\n"])),(e()(),r.V(46,0,null,null,12,"footer",[["class","footer"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(48,0,null,null,9,"div",[["class","container"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(50,0,null,null,6,"p",[["class","text-muted text-center"]],null,null,null,null,null)),(e()(),r.V(51,0,null,null,1,"a",[["href","https://github.com/optimistex/ngx-select-ex"]],null,null,null,null,null)),(e()(),r._15(-1,null,["ngx-select-ex"])),(e()(),r._15(-1,null,[" is\n maintained by "])),(e()(),r.V(54,0,null,null,1,"a",[["href","https://github.com/optimistex"]],null,null,null,null,null)),(e()(),r._15(-1,null,["optimistex"])),(e()(),r._15(-1,null,["."])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n"])),(e()(),r._15(-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,5,0,null==n.p?null:n.p.version),e(t,40,0,n.gettingStarted)})}var fo=r.R("app-demo",u,function(e){return r._17(0,[(e()(),r.V(0,0,null,null,1,"app-demo",[],null,null,null,co,so)),r.U(1,1097728,null,0,u,[],null,null)],null,null)},{},{},[]),po=function(){},ho=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[k]}},e}(),go=(Object(r.J)(function(){return go}),function(){function e(){this.btnCheckboxTrue=!0,this.btnCheckboxFalse=!1,this.state=!1,this.onChange=Function.prototype,this.onTouched=Function.prototype}return e.prototype.onClick=function(){this.isDisabled||(this.toggle(!this.state),this.onChange(this.value))},e.prototype.ngOnInit=function(){this.toggle(this.trueValue===this.value)},Object.defineProperty(e.prototype,"trueValue",{get:function(){return"undefined"==typeof this.btnCheckboxTrue||this.btnCheckboxTrue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"falseValue",{get:function(){return"undefined"!=typeof this.btnCheckboxFalse&&this.btnCheckboxFalse},enumerable:!0,configurable:!0}),e.prototype.toggle=function(e){this.state=e,this.value=this.state?this.trueValue:this.falseValue},e.prototype.writeValue=function(e){this.state=this.trueValue===e,this.value=e?this.trueValue:this.falseValue},e.prototype.setDisabledState=function(e){this.isDisabled=e},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e}()),vo=(Object(r.J)(function(){return vo}),function(){function e(e,t){this.el=e,this.cdr=t,this.onChange=Function.prototype,this.onTouched=Function.prototype}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this._value=e,this.cdr.markForCheck()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e}()),yo=(Object(r.J)(function(){return yo}),function(){function e(e,t,n,r){this.el=e,this.cdr=t,this.group=n,this.renderer=r,this.onChange=Function.prototype,this.onTouched=Function.prototype}return Object.defineProperty(e.prototype,"value",{get:function(){return this.group?this.group.value:this._value},set:function(e){this.group?this.group.value=e:this._value=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=e,this.setDisabledState(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this.btnRadio===this.value},enumerable:!0,configurable:!0}),e.prototype.onClick=function(){this.el.nativeElement.attributes.disabled||!this.uncheckable&&this.btnRadio===this.value||(this.value=this.uncheckable&&this.btnRadio===this.value?void 0:this.btnRadio,this._onChange(this.value))},e.prototype.ngOnInit=function(){this.uncheckable="undefined"!=typeof this.uncheckable},e.prototype.onBlur=function(){this.onTouched()},e.prototype._onChange=function(e){if(this.group)return this.group.onTouched(),void this.group.onChange(e);this.onTouched(),this.onChange(e)},e.prototype.writeValue=function(e){this.value=e,this.cdr.markForCheck()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){e?this.renderer.setAttribute(this.el.nativeElement,"disabled","disabled"):this.renderer.removeAttribute(this.el.nativeElement,"disabled")},e}()),mo=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[]}},e}(),_o=r.S(o,[u],function(e){return r._2([r._3(512,r.g,r.O,[[8,[fo]],[3,r.g],r.q]),r._3(5120,r.p,r._12,[[3,r.p]]),r._3(4608,h,g,[r.p,[2,p]]),r._3(4608,r.f,r.f,[]),r._3(5120,r.a,r.X,[]),r._3(5120,r.n,r._4,[]),r._3(5120,r.o,r._7,[]),r._3(4608,wt,xt,[E]),r._3(6144,r.z,null,[wt]),r._3(4608,Ze,qe,[]),r._3(5120,_e,function(e,t,n,r,o){return[new Ge(e,t),new Ye(n),new $e(r,o)]},[E,r.s,E,E,Ze]),r._3(4608,be,be,[_e,r.s]),r._3(135680,Ce,Ce,[E]),r._3(4608,Se,Se,[be,Ce]),r._3(6144,r.x,null,[Se]),r._3(6144,xe,null,[Ce]),r._3(4608,r.C,r.C,[r.s]),r._3(4608,fe,fe,[E]),r._3(4608,ge,ge,[E]),r._3(4608,Qt,Qt,[]),r._3(4608,Vn,Vn,[]),r._3(4608,k,k,[]),r._3(512,C,C,[]),r._3(1024,r.i,jt,[]),r._3(1024,r.b,function(e){return[(t=e,ve("probe",me),ve("coreTokens",Object(a.a)({},ye,(t||[]).reduce(function(e,t){return e[t.name]=t.token,e},{}))),function(){return me})];var t},[[2,r.r]]),r._3(512,r.c,r.c,[[2,r.b]]),r._3(131584,r.e,r.e,[r.s,r.P,r.m,r.i,r.g,r.c]),r._3(512,r.d,r.d,[r.e]),r._3(512,It,It,[[3,It]]),r._3(512,An,An,[]),r._3(512,Tn,Tn,[]),r._3(512,Sn,Sn,[]),r._3(512,po,po,[]),r._3(512,ho,ho,[]),r._3(512,mo,mo,[]),r._3(512,o,o,[])])});Object(r.I)(),St().bootstrapModuleFactory(_o).catch(function(e){return console.log(e)})},dLcb:function(e,t){e.exports='

Usage

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

    \n
     npm i ngx-select-ex --save\n
    \n

    For usage with Angular 4 install deprecated version 3.1.2:

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

    \n
     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 }\n
    \n
  4. \n
  5. Include Bootstrap styles.\n For example add to your index.html

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

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

    \n
  10. \n
\n

API

\n

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

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
InputTypeDefaultDescription
[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.
optionValueFieldstring'id'Provide an opportunity to change the name an id property of objects in the items
optionTextFieldstring'text'Provide an opportunity to change the name a text property of objects in the items
optGroupLabelFieldstring'label'Provide an opportunity to change the name a label property of objects with an options property in the items
optGroupOptionsFieldstring'options'Provide an opportunity to change the name of an options property of objects in the items
[multiple]booleanfalseMode of this component. If set true user can select more than one option
[allowClear]booleanfalseSet 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]booleanfalseSet to true Set to true to hide the search input. This option only applies to single-value inputs
[disabled]booleanfalseWhen true, it specifies that the component should be disabled
[defaultValue]any[][]Use to set default value
autoSelectSingleOptionbooleanfalseAuto select a non disabled single option
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
OutputDescription
(typed)Fired on changing search input
(focus)Fired on select focus
(blur)Fired on select blur
(open)Fired on select dropdown open
(close)Fired on select dropdown close
\n

Styles and customization

\n

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

\n

List of styles for customization:

\n
    \n
  • ngx-select - Main class of the component.
  • \n
  • ngx-select_multiple - Modifier of the multiple mode. It's available when the property multiple is true.
  • \n
  • ngx-select__disabled - Layer for the disabled mode.
  • \n
  • ngx-select__selected - The common container for displaying selected items.
  • \n
  • ngx-select__toggle - The toggle for single mode. It's available when the property multiple is false.
  • \n
  • ngx-select__placeholder - The placeholder item. It's available when the property multiple is false.
  • \n
  • ngx-select__selected-single - The selected item with single mode. It's available when the property multiple is false.
  • \n
  • ngx-select__selected-plural - The multiple selected item. It's available when the property multiple is true.
  • \n
  • 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.
  • \n
  • ngx-select__toggle-caret - The drop-down button of the single mode. It's available when the property multiple is false.
  • \n
  • ngx-select__clear - The button clear.
  • \n
  • ngx-select__clear-icon - The cross icon.
  • \n
  • ngx-select__search - The input field for full text lives searching.
  • \n
  • ngx-select__choices - The common container of items.
  • \n
  • ngx-select__item-group - The group of items.
  • \n
  • ngx-select__item - An item.
  • \n
  • ngx-select__item_disabled - Modifier of a disabled item.
  • \n
  • ngx-select__item_active - Modifier of the activated item.
  • \n
\n'},eGAc:function(e,t){e.exports='

Select multiple cities

\n
\n
\n \n \n

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
\n'},fRUx:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},grVA:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r={closed:!0,next:function(e){},error:function(e){throw e},complete:function(){}}},kQVV:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){return e&&"number"==typeof e.length}},ksPu:function(e,t){e.exports={name:"ngx-select-ex",version:"3.3.6",description:"Angular based replacement for select boxes",license:"MIT",private:!1,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:{ng:"ng",start:"ng serve -op runtime",build:"npm run lint && npm test && npm run build.package && npm run build.demo","build.demo":"ng build --prod","build.package":"ng-packagr -p ng-package.json",test:"ng test -sr","test-coverage":"ng test -sr -cc",lint:"ng lint",e2e:"ng e2e"},keywords:["ngx-select","ngx-select-ex","angular","angular2","angular4","angular5","select","select2","ui-select","multiselect","multi-select"],peerDependencies:{"@angular/core":">5.0.0","@angular/common":">5.0.0","@angular/platform-browser":">5.0.0"},devDependencies:{"@angular/animations":"^5.2.0","@angular/cli":"1.6.7","@angular/common":"^5.2.0","@angular/compiler":"^5.2.0","@angular/compiler-cli":"^5.2.0","@angular/core":"^5.2.0","@angular/forms":"^5.2.0","@angular/http":"^5.2.0","@angular/language-service":"^5.2.0","@angular/platform-browser":"^5.2.0","@angular/platform-browser-dynamic":"^5.2.0","@angular/router":"^5.2.0","@types/jasmine":"~2.8.3","@types/jasminewd2":"~2.0.2","@types/marked":"^0.3.0","@types/node":"~6.0.60","@types/webpack":"^3.8.4",codecov:"^3.0.0",codelyzer:"^4.0.1","core-js":"^2.4.1","escape-string-regexp":"^1.0.5","html-loader":"^0.5.5","jasmine-core":"~2.8.0","jasmine-spec-reporter":"~4.2.1",karma:"~2.0.0","karma-chrome-launcher":"~2.2.0","karma-coverage-istanbul-reporter":"^1.2.1","karma-jasmine":"~1.1.0","karma-jasmine-html-reporter":"^0.2.2",lodash:"^4.17.4","markdown-loader":"^2.0.2","ng-packagr":"^2.0.0","ngx-bootstrap":"^2.0.2","pre-commit":"^1.2.2",protractor:"~5.1.2",rxjs:"^5.5.6","ts-node":"~4.1.0",tslint:"~5.9.1",typescript:"~2.5.3","zone.js":"^0.8.19"},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"}]}},lI6h:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("6Xbx"),o=function(e){function t(){e.apply(this,arguments)}return Object(r.b)(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(n("E9/g").a)},mHG6:function(e,t,n){"use strict";t.a=function(e){return e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}},mz3w:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){var t,r=n("xIGM").a.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}()},nthD:function(e,t){e.exports='

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

\n
\n
\n \n \n

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
'},qH3Z:function(e,t){e.exports="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"},qLnt:function(e,t,n){"use strict";var r=n("1j/l"),o=n("NGRF"),i=n("B1iP"),l=n("8ofh"),u=n("NePw"),a=n("6Xbx"),s=function(e){function t(t){e.call(this),this.errors=t;var n=Error.call(this,t?t.length+" errors occurred during unsubscription:\n "+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return Object(a.b)(t,e),t}(Error);n.d(t,"a",function(){return c});var c=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,a=this._parents,c=this._unsubscribe,d=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var p=-1,h=a?a.length:0;n;)n.remove(this),n=++p\n \n \n\n'},vyOh:function(e,t,n){"use strict";var r=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(r,"\\$&")}},wDkl:function(e,t){e.exports='

Getting started

\n

First of all, Welcome!

\n'},wP3s:function(e,t,n){"use strict";t.a=function(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return"number"==typeof t&&(n=t,t=null),r.lift(new l(e,t,n))}};var r=n("6Xbx"),o=n("qgI0"),i=n("lI6h"),l=function(){function e(e,t,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=e,this.resultSelector=t,this.concurrent=n}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.project,this.resultSelector,this.concurrent))},e}(),u=function(e){function t(t,n,r,o){void 0===o&&(o=Number.POSITIVE_INFINITY),e.call(this,t),this.project=n,this.resultSelector=r,this.concurrent=o,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return Object(r.b)(t,e),t.prototype._next=function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(i.a)},xIGM:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return i});var r="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=r||"undefined"!=typeof e&&e||o}).call(t,n("fRUx"))},xrDH:function(e,t,n){(function(e,r){var o;(function(){var i,l=200,u="Expected a function",a="__lodash_placeholder__",s=1,c=2,f=4,d=1,p=2,h=1,g=2,v=4,y=8,m=16,_=32,b=64,w=128,x=256,C=512,E=800,O=16,k=1/0,V=9007199254740991,A=1.7976931348623157e308,T=NaN,S=4294967295,j=S-1,I=S>>>1,P=[["ary",w],["bind",h],["bindKey",g],["curry",y],["curryRight",m],["flip",C],["partial",_],["partialRight",b],["rearg",x]],D="[object Arguments]",N="[object Array]",M="[object AsyncFunction]",R="[object Boolean]",F="[object Date]",L="[object DOMException]",B="[object Error]",U="[object Function]",H="[object GeneratorFunction]",z="[object Map]",G="[object Number]",W="[object Null]",Z="[object Object]",q="[object Proxy]",$="[object RegExp]",Q="[object Set]",K="[object String]",Y="[object Symbol]",J="[object Undefined]",X="[object WeakMap]",ee="[object ArrayBuffer]",te="[object DataView]",ne="[object Float32Array]",re="[object Float64Array]",oe="[object Int8Array]",ie="[object Int16Array]",le="[object Int32Array]",ue="[object Uint8Array]",ae="[object Uint8ClampedArray]",se="[object Uint16Array]",ce="[object Uint32Array]",fe=/\b__p \+= '';/g,de=/\b(__p \+=) '' \+/g,pe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,he=/&(?:amp|lt|gt|quot|#39);/g,ge=/[&<>"']/g,ve=RegExp(he.source),ye=RegExp(ge.source),me=/<%-([\s\S]+?)%>/g,_e=/<%([\s\S]+?)%>/g,be=/<%=([\s\S]+?)%>/g,we=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xe=/^\w*$/,Ce=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ee=/[\\^$.*+?()[\]{}|]/g,Oe=RegExp(Ee.source),ke=/^\s+|\s+$/g,Ve=/^\s+/,Ae=/\s+$/,Te=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Se=/\{\n\/\* \[wrapped with (.+)\] \*/,je=/,? & /,Ie=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Pe=/\\(\\)?/g,De=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ne=/\w*$/,Me=/^[-+]0x[0-9a-f]+$/i,Re=/^0b[01]+$/i,Fe=/^\[object .+?Constructor\]$/,Le=/^0o[0-7]+$/i,Be=/^(?:0|[1-9]\d*)$/,Ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,He=/($^)/,ze=/['\n\r\u2028\u2029\\]/g,Ge="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",We="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ze="["+We+"]",qe="["+Ge+"]",$e="\\d+",Qe="[a-z\\xdf-\\xf6\\xf8-\\xff]",Ke="[^\\ud800-\\udfff"+We+$e+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Ye="\\ud83c[\\udffb-\\udfff]",Je="[^\\ud800-\\udfff]",Xe="(?:\\ud83c[\\udde6-\\uddff]){2}",et="[\\ud800-\\udbff][\\udc00-\\udfff]",tt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",nt="(?:"+Qe+"|"+Ke+")",rt="(?:"+tt+"|"+Ke+")",ot="(?:"+qe+"|"+Ye+")?",it="[\\ufe0e\\ufe0f]?"+ot+"(?:\\u200d(?:"+[Je,Xe,et].join("|")+")[\\ufe0e\\ufe0f]?"+ot+")*",lt="(?:"+["[\\u2700-\\u27bf]",Xe,et].join("|")+")"+it,ut="(?:"+[Je+qe+"?",qe,Xe,et,"[\\ud800-\\udfff]"].join("|")+")",at=RegExp("['\u2019]","g"),st=RegExp(qe,"g"),ct=RegExp(Ye+"(?="+Ye+")|"+ut+it,"g"),ft=RegExp([tt+"?"+Qe+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[Ze,tt,"$"].join("|")+")",rt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[Ze,tt+nt,"$"].join("|")+")",tt+"?"+nt+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",tt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$e,lt].join("|"),"g"),dt=RegExp("[\\u200d\\ud800-\\udfff"+Ge+"\\ufe0e\\ufe0f]"),pt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ht=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],gt=-1,vt={};vt[ne]=vt[re]=vt[oe]=vt[ie]=vt[le]=vt[ue]=vt[ae]=vt[se]=vt[ce]=!0,vt[D]=vt[N]=vt[ee]=vt[R]=vt[te]=vt[F]=vt[B]=vt[U]=vt[z]=vt[G]=vt[Z]=vt[$]=vt[Q]=vt[K]=vt[X]=!1;var yt={};yt[D]=yt[N]=yt[ee]=yt[te]=yt[R]=yt[F]=yt[ne]=yt[re]=yt[oe]=yt[ie]=yt[le]=yt[z]=yt[G]=yt[Z]=yt[$]=yt[Q]=yt[K]=yt[Y]=yt[ue]=yt[ae]=yt[se]=yt[ce]=!0,yt[B]=yt[U]=yt[X]=!1;var mt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_t=parseFloat,bt=parseInt,wt="object"==typeof e&&e&&e.Object===Object&&e,xt="object"==typeof self&&self&&self.Object===Object&&self,Ct=wt||xt||Function("return this")(),Et="object"==typeof t&&t&&!t.nodeType&&t,Ot=Et&&"object"==typeof r&&r&&!r.nodeType&&r,kt=Ot&&Ot.exports===Et,Vt=kt&&wt.process,At=function(){try{return Vt&&Vt.binding&&Vt.binding("util")}catch(e){}}(),Tt=At&&At.isArrayBuffer,St=At&&At.isDate,jt=At&&At.isMap,It=At&&At.isRegExp,Pt=At&&At.isSet,Dt=At&&At.isTypedArray;function Nt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Mt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function Ut(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function cn(e,t){for(var n=e.length;n--&&Kt(t,e[n],0)>-1;);return n}var fn=tn({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),dn=tn({"&":"&","<":"<",">":">",'"':""","'":"'"});function pn(e){return"\\"+mt[e]}function hn(e){return dt.test(e)}function gn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function vn(e,t){return function(n){return e(t(n))}}function yn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"}),En=function e(t){var n,r=(t=null==t?Ct:En.defaults(Ct.Object(),t,En.pick(Ct,ht))).Array,o=t.Date,Ge=t.Error,We=t.Function,Ze=t.Math,qe=t.Object,$e=t.RegExp,Qe=t.String,Ke=t.TypeError,Ye=r.prototype,Je=qe.prototype,Xe=t["__core-js_shared__"],et=We.prototype.toString,tt=Je.hasOwnProperty,nt=0,rt=(n=/[^.]+$/.exec(Xe&&Xe.keys&&Xe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",ot=Je.toString,it=et.call(qe),lt=Ct._,ut=$e("^"+et.call(tt).replace(Ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ct=kt?t.Buffer:i,dt=t.Symbol,mt=t.Uint8Array,wt=ct?ct.allocUnsafe:i,xt=vn(qe.getPrototypeOf,qe),Et=qe.create,Ot=Je.propertyIsEnumerable,Vt=Ye.splice,At=dt?dt.isConcatSpreadable:i,qt=dt?dt.iterator:i,tn=dt?dt.toStringTag:i,On=function(){try{var e=Ei(qe,"defineProperty");return e({},"",{}),e}catch(e){}}(),kn=t.clearTimeout!==Ct.clearTimeout&&t.clearTimeout,Vn=o&&o.now!==Ct.Date.now&&o.now,An=t.setTimeout!==Ct.setTimeout&&t.setTimeout,Tn=Ze.ceil,Sn=Ze.floor,jn=qe.getOwnPropertySymbols,In=ct?ct.isBuffer:i,Pn=t.isFinite,Dn=Ye.join,Nn=vn(qe.keys,qe),Mn=Ze.max,Rn=Ze.min,Fn=o.now,Ln=t.parseInt,Bn=Ze.random,Un=Ye.reverse,Hn=Ei(t,"DataView"),zn=Ei(t,"Map"),Gn=Ei(t,"Promise"),Wn=Ei(t,"Set"),Zn=Ei(t,"WeakMap"),qn=Ei(qe,"create"),$n=Zn&&new Zn,Qn={},Kn=Qi(Hn),Yn=Qi(zn),Jn=Qi(Gn),Xn=Qi(Wn),er=Qi(Zn),tr=dt?dt.prototype:i,nr=tr?tr.valueOf:i,rr=tr?tr.toString:i;function or(e){if(du(e)&&!tu(e)&&!(e instanceof ar)){if(e instanceof ur)return e;if(tt.call(e,"__wrapped__"))return Ki(e)}return new ur(e)}var ir=function(){function e(){}return function(t){if(!fu(t))return{};if(Et)return Et(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function lr(){}function ur(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function ar(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=S,this.__views__=[]}function sr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Er(e,t,n,r,o,l){var u,a=t&s,d=t&c,p=t&f;if(n&&(u=o?n(e,r,o,l):n(e)),u!==i)return u;if(!fu(e))return e;var h=tu(e);if(h){if(u=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&tt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!a)return Ho(e,u)}else{var g=Vi(e),v=g==U||g==H;if(iu(e))return Mo(e,a);if(g==Z||g==D||v&&!o){if(u=d||v?{}:Ti(e),!a)return d?function(e,t){return zo(e,ki(e),t)}(e,function(t,n){return t&&zo(e,zu(e),t)}(u)):function(e,t){return zo(e,Oi(e),t)}(e,br(u,e))}else{if(!yt[g])return o?e:{};u=function(e,t,n){var r,o,i=e.constructor;switch(t){case ee:return Ro(e);case R:case F:return new i(+e);case te:return function(e,t){var n=t?Ro(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case ne:case re:case oe:case ie:case le:case ue:case ae:case se:case ce:return Fo(e,n);case z:return new i;case G:case K:return new i(e);case $:return(o=new(r=e).constructor(r.source,Ne.exec(r))).lastIndex=r.lastIndex,o;case Q:return new i;case Y:return nr?qe(nr.call(e)):{}}}(e,g,a)}}l||(l=new pr);var y=l.get(e);if(y)return y;if(l.set(e,u),yu(e))return e.forEach(function(r){u.add(Er(r,t,n,r,e,l))}),u;if(pu(e))return e.forEach(function(r,o){u.set(o,Er(r,t,n,o,e,l))}),u;var m=h?i:(p?d?yi:vi:d?zu:Hu)(e);return Rt(m||e,function(r,o){m&&(r=e[o=r]),yr(u,o,Er(r,t,n,o,e,l))}),u}function Or(e,t,n){var r=n.length;if(null==e)return!r;for(e=qe(e);r--;){var o=n[r],l=e[o];if(l===i&&!(o in e)||!(0,t[o])(l))return!1}return!0}function kr(e,t,n){if("function"!=typeof e)throw new Ke(u);return Hi(function(){e.apply(i,n)},t)}function Vr(e,t,n,r){var o=-1,i=Bt,u=!0,a=e.length,s=[],c=t.length;if(!a)return s;n&&(t=Ht(t,ln(n))),r?(i=Ut,u=!1):t.length>=l&&(i=an,u=!1,t=new dr(t));e:for(;++o-1},cr.prototype.set=function(e,t){var n=this.__data__,r=mr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},fr.prototype.clear=function(){this.size=0,this.__data__={hash:new sr,map:new(zn||cr),string:new sr}},fr.prototype.delete=function(e){var t=xi(this,e).delete(e);return this.size-=t?1:0,t},fr.prototype.get=function(e){return xi(this,e).get(e)},fr.prototype.has=function(e){return xi(this,e).has(e)},fr.prototype.set=function(e,t){var n=xi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},dr.prototype.add=dr.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},dr.prototype.has=function(e){return this.__data__.has(e)},pr.prototype.clear=function(){this.__data__=new cr,this.size=0},pr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},pr.prototype.get=function(e){return this.__data__.get(e)},pr.prototype.has=function(e){return this.__data__.has(e)},pr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof cr){var r=n.__data__;if(!zn||r.length0&&n(u)?t>1?Pr(u,t-1,n,r,o):zt(o,u):r||(o[o.length]=u)}return o}var Dr=qo(),Nr=qo(!0);function Mr(e,t){return e&&Dr(e,t,Hu)}function Rr(e,t){return e&&Nr(e,t,Hu)}function Fr(e,t){return Lt(t,function(t){return au(e[t])})}function Lr(e,t){for(var n=0,r=(t=Io(t,e)).length;null!=e&&nt}function zr(e,t){return null!=e&&tt.call(e,t)}function Gr(e,t){return null!=e&&t in qe(e)}function Wr(e,t,n){for(var o=n?Ut:Bt,l=e[0].length,u=e.length,a=u,s=r(u),c=1/0,f=[];a--;){var d=e[a];a&&t&&(d=Ht(d,ln(t))),c=Rn(d.length,c),s[a]=!n&&(t||l>=120&&d.length>=120)?new dr(a&&d):i}d=e[0];var p=-1,h=s[0];e:for(;++p=u?a:a*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)});r--;)e[r]=e[r].value;return e}(eo(e,function(e,n,o){return{criteria:Ht(t,function(t){return t(e)}),index:++r,value:e}}))}function lo(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)u!==e&&Vt.call(u,a,1),Vt.call(e,a,1);return e}function ao(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;ji(o)?Vt.call(e,o,1):Eo(e,o)}}return e}function so(e,t){return e+Sn(Bn()*(t-e+1))}function co(e,t){var n="";if(!e||t<1||t>V)return n;do{t%2&&(n+=e),(t=Sn(t/2))&&(e+=e)}while(t);return n}function fo(e,t){return zi(Li(e,t,ha),e+"")}function po(e,t,n,r){if(!fu(e))return e;for(var o=-1,l=(t=Io(t,e)).length,u=l-1,a=e;null!=a&&++oi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var l=r(i);++o>>1,l=e[i];null!==l&&!_u(l)&&(n?l<=t:l=l){var c=t?null:ai(e);if(c)return _n(c);u=!1,o=an,s=new dr}else s=t?[]:a;e:for(;++r=r?e:vo(e,t,n)}var No=kn||function(e){return Ct.clearTimeout(e)};function Mo(e,t){if(t)return e.slice();var n=e.length,r=wt?wt(n):new e.constructor(n);return e.copy(r),r}function Ro(e){var t=new e.constructor(e.byteLength);return new mt(t).set(new mt(e)),t}function Fo(e,t){var n=t?Ro(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Lo(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,l=_u(e),u=t!==i,a=null===t,s=t==t,c=_u(t);if(!a&&!c&&!l&&e>t||l&&u&&s&&!a&&!c||r&&u&&s||!n&&s||!o)return 1;if(!r&&!l&&!c&&e1?n[o-1]:i,u=o>2?n[2]:i;for(l=e.length>3&&"function"==typeof l?(o--,l):i,u&&Ii(n[0],n[1],u)&&(l=o<3?i:l,o=1),t=qe(t);++r-1?o[l?t[u]:u]:i}}function Jo(e){return gi(function(t){var n=t.length,r=n,o=ur.prototype.thru;for(e&&t.reverse();r--;){var l=t[r];if("function"!=typeof l)throw new Ke(u);if(o&&!a&&"wrapper"==_i(l))var a=new ur([],!0)}for(r=a?r:n;++r1&&y.reverse(),d&&ca))return!1;var c=l.get(e);if(c&&l.get(t))return c==t;var f=-1,h=!0,g=n&p?new dr:i;for(l.set(e,t),l.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Te,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Rt(P,function(n){var r="_."+n[0];t&n[1]&&!Bt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Se);return t?t[1].split(je):[]}(r),n)))}function Wi(e){var t=0,n=0;return function(){var r=Fn(),o=O-(r-n);if(n=r,o>0){if(++t>=E)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Zi(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return vl(e,n="function"==typeof n?(e.pop(),n):i)});function Cl(e){var t=or(e);return t.__chain__=!0,t}function El(e,t){return t(e)}var Ol=gi(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return xr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof ar&&ji(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:El,args:[o],thisArg:i}),new ur(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)}),kl=Go(function(e,t,n){tt.call(e,n)?++e[n]:wr(e,n,1)}),Vl=Yo(el),Al=Yo(tl);function Tl(e,t){return(tu(e)?Rt:Ar)(e,wi(t,3))}function Sl(e,t){return(tu(e)?function(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}:Tr)(e,wi(t,3))}var jl=Go(function(e,t,n){tt.call(e,n)?e[n].push(t):wr(e,n,[t])}),Il=fo(function(e,t,n){var o=-1,i="function"==typeof t,l=ru(e)?r(e.length):[];return Ar(e,function(e){l[++o]=i?Nt(t,e,n):Zr(e,t,n)}),l}),Pl=Go(function(e,t,n){wr(e,n,t)});function Dl(e,t){return(tu(e)?Ht:eo)(e,wi(t,3))}var Nl=Go(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Ml=fo(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ii(e,t[0],t[1])?t=[]:n>2&&Ii(t[0],t[1],t[2])&&(t=[t[0]]),io(e,Pr(t,1),[])}),Rl=Vn||function(){return Ct.Date.now()};function Fl(e,t,n){return t=n?i:t,ci(e,w,i,i,i,i,t=e&&null==t?e.length:t)}function Ll(e,t){var n;if("function"!=typeof t)throw new Ke(u);return e=Ou(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Bl=fo(function(e,t,n){var r=h;if(n.length){var o=yn(n,bi(Bl));r|=_}return ci(e,r,t,n,o)}),Ul=fo(function(e,t,n){var r=h|g;if(n.length){var o=yn(n,bi(Ul));r|=_}return ci(t,r,e,n,o)});function Hl(e,t,n){var r,o,l,a,s,c,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new Ke(u);function g(t){var n=r,l=o;return r=o=i,f=t,a=e.apply(l,n)}function v(e){var n=e-c;return c===i||n>=t||n<0||p&&e-f>=l}function y(){var e=Rl();if(v(e))return m(e);s=Hi(y,function(e){var n=t-(e-c);return p?Rn(n,l-(e-f)):n}(e))}function m(e){return s=i,h&&r?g(e):(r=o=i,a)}function _(){var e=Rl(),n=v(e);if(r=arguments,o=this,c=e,n){if(s===i)return function(e){return f=e,s=Hi(y,t),d?g(e):a}(c);if(p)return s=Hi(y,t),g(c)}return s===i&&(s=Hi(y,t)),a}return t=Vu(t)||0,fu(n)&&(d=!!n.leading,l=(p="maxWait"in n)?Mn(Vu(n.maxWait)||0,t):l,h="trailing"in n?!!n.trailing:h),_.cancel=function(){s!==i&&No(s),f=0,r=c=o=s=i},_.flush=function(){return s===i?a:m(Rl())},_}var zl=fo(function(e,t){return kr(e,1,t)}),Gl=fo(function(e,t,n){return kr(e,Vu(t)||0,n)});function Wl(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ke(u);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var l=e.apply(this,r);return n.cache=i.set(o,l)||i,l};return n.cache=new(Wl.Cache||fr),n}function Zl(e){if("function"!=typeof e)throw new Ke(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Wl.Cache=fr;var ql=Po(function(e,t){var n=(t=1==t.length&&tu(t[0])?Ht(t[0],ln(wi())):Ht(Pr(t,1),ln(wi()))).length;return fo(function(r){for(var o=-1,i=Rn(r.length,n);++o=t}),eu=qr(function(){return arguments}())?qr:function(e){return du(e)&&tt.call(e,"callee")&&!Ot.call(e,"callee")},tu=r.isArray,nu=Tt?ln(Tt):function(e){return du(e)&&Ur(e)==ee};function ru(e){return null!=e&&cu(e.length)&&!au(e)}function ou(e){return du(e)&&ru(e)}var iu=In||Va,lu=St?ln(St):function(e){return du(e)&&Ur(e)==F};function uu(e){if(!du(e))return!1;var t=Ur(e);return t==B||t==L||"string"==typeof e.message&&"string"==typeof e.name&&!gu(e)}function au(e){if(!fu(e))return!1;var t=Ur(e);return t==U||t==H||t==M||t==q}function su(e){return"number"==typeof e&&e==Ou(e)}function cu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=V}function fu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function du(e){return null!=e&&"object"==typeof e}var pu=jt?ln(jt):function(e){return du(e)&&Vi(e)==z};function hu(e){return"number"==typeof e||du(e)&&Ur(e)==G}function gu(e){if(!du(e)||Ur(e)!=Z)return!1;var t=xt(e);if(null===t)return!0;var n=tt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&et.call(n)==it}var vu=It?ln(It):function(e){return du(e)&&Ur(e)==$},yu=Pt?ln(Pt):function(e){return du(e)&&Vi(e)==Q};function mu(e){return"string"==typeof e||!tu(e)&&du(e)&&Ur(e)==K}function _u(e){return"symbol"==typeof e||du(e)&&Ur(e)==Y}var bu=Dt?ln(Dt):function(e){return du(e)&&cu(e.length)&&!!vt[Ur(e)]},wu=ii(Xr),xu=ii(function(e,t){return e<=t});function Cu(e){if(!e)return[];if(ru(e))return mu(e)?xn(e):Ho(e);if(qt&&e[qt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[qt]());var t=Vi(e);return(t==z?gn:t==Q?_n:Yu)(e)}function Eu(e){return e?(e=Vu(e))===k||e===-k?(e<0?-1:1)*A:e==e?e:0:0===e?e:0}function Ou(e){var t=Eu(e),n=t%1;return t==t?n?t-n:t:0}function ku(e){return e?Cr(Ou(e),0,S):0}function Vu(e){if("number"==typeof e)return e;if(_u(e))return T;if(fu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=fu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ke,"");var n=Re.test(e);return n||Le.test(e)?bt(e.slice(2),n?2:8):Me.test(e)?T:+e}function Au(e){return zo(e,zu(e))}function Tu(e){return null==e?"":xo(e)}var Su=Wo(function(e,t){if(Mi(t)||ru(t))zo(t,Hu(t),e);else for(var n in t)tt.call(t,n)&&yr(e,n,t[n])}),ju=Wo(function(e,t){zo(t,zu(t),e)}),Iu=Wo(function(e,t,n,r){zo(t,zu(t),e,r)}),Pu=Wo(function(e,t,n,r){zo(t,Hu(t),e,r)}),Du=gi(xr),Nu=fo(function(e,t){e=qe(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&Ii(t[0],t[1],o)&&(r=1);++n1),t}),zo(e,yi(e),n),r&&(n=Er(n,s|c|f,pi));for(var o=t.length;o--;)Eo(n,t[o]);return n}),qu=gi(function(e,t){return null==e?{}:function(e,t){return lo(e,t,function(t,n){return Fu(e,n)})}(e,t)});function $u(e,t){if(null==e)return{};var n=Ht(yi(e),function(e){return[e]});return t=wi(t),lo(e,n,function(e,n){return t(e,n[0])})}var Qu=si(Hu),Ku=si(zu);function Yu(e){return null==e?[]:un(e,Hu(e))}var Ju=Qo(function(e,t,n){return t=t.toLowerCase(),e+(n?Xu(t):t)});function Xu(e){return ua(Tu(e).toLowerCase())}function ea(e){return(e=Tu(e))&&e.replace(Ue,fn).replace(st,"")}var ta=Qo(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),na=Qo(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),ra=$o("toLowerCase"),oa=Qo(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),ia=Qo(function(e,t,n){return e+(n?" ":"")+ua(t)}),la=Qo(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ua=$o("toUpperCase");function aa(e,t,n){return e=Tu(e),(t=n?i:t)===i?function(e){return pt.test(e)}(e)?function(e){return e.match(ft)||[]}(e):function(e){return e.match(Ie)||[]}(e):e.match(t)||[]}var sa=fo(function(e,t){try{return Nt(e,i,t)}catch(e){return uu(e)?e:new Ge(e)}}),ca=gi(function(e,t){return Rt(t,function(t){t=$i(t),wr(e,t,Bl(e[t],e))}),e});function fa(e){return function(){return e}}var da=Jo(),pa=Jo(!0);function ha(e){return e}function ga(e){return Yr("function"==typeof e?e:Er(e,s))}var va=fo(function(e,t){return function(n){return Zr(n,e,t)}}),ya=fo(function(e,t){return function(n){return Zr(e,n,t)}});function ma(e,t,n){var r=Hu(t),o=Fr(t,r);null!=n||fu(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Fr(t,Hu(t)));var i=!(fu(n)&&"chain"in n&&!n.chain),l=au(e);return Rt(o,function(n){var r=t[n];e[n]=r,l&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Ho(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,zt([this.value()],arguments))})}),e}function _a(){}var ba=ni(Ht),wa=ni(Ft),xa=ni(Zt);function Ca(e){return Pi(e)?en($i(e)):function(e){return function(t){return Lr(t,e)}}(e)}var Ea=oi(),Oa=oi(!0);function ka(){return[]}function Va(){return!1}var Aa,Ta=ti(function(e,t){return e+t},0),Sa=ui("ceil"),ja=ti(function(e,t){return e/t},1),Ia=ui("floor"),Pa=ti(function(e,t){return e*t},1),Da=ui("round"),Na=ti(function(e,t){return e-t},0);return or.after=function(e,t){if("function"!=typeof t)throw new Ke(u);return e=Ou(e),function(){if(--e<1)return t.apply(this,arguments)}},or.ary=Fl,or.assign=Su,or.assignIn=ju,or.assignInWith=Iu,or.assignWith=Pu,or.at=Du,or.before=Ll,or.bind=Bl,or.bindAll=ca,or.bindKey=Ul,or.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return tu(e)?e:[e]},or.chain=Cl,or.chunk=function(e,t,n){t=(n?Ii(e,t,n):t===i)?1:Mn(Ou(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var l=0,u=0,a=r(Tn(o/t));lo?0:o+n),(r=r===i||r>o?o:Ou(r))<0&&(r+=o),r=n>r?0:ku(r);n>>0)?(e=Tu(e))&&("string"==typeof t||null!=t&&!vu(t))&&!(t=xo(t))&&hn(e)?Do(xn(e),0,n):e.split(t,n):[]},or.spread=function(e,t){if("function"!=typeof e)throw new Ke(u);return t=null==t?0:Mn(Ou(t),0),fo(function(n){var r=n[t],o=Do(n,0,t);return r&&zt(o,r),Nt(e,this,o)})},or.tail=function(e){var t=null==e?0:e.length;return t?vo(e,1,t):[]},or.take=function(e,t,n){return e&&e.length?vo(e,0,(t=n||t===i?1:Ou(t))<0?0:t):[]},or.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?vo(e,(t=r-(t=n||t===i?1:Ou(t)))<0?0:t,r):[]},or.takeRightWhile=function(e,t){return e&&e.length?ko(e,wi(t,3),!1,!0):[]},or.takeWhile=function(e,t){return e&&e.length?ko(e,wi(t,3)):[]},or.tap=function(e,t){return t(e),e},or.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Ke(u);return fu(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Hl(e,t,{leading:r,maxWait:t,trailing:o})},or.thru=El,or.toArray=Cu,or.toPairs=Qu,or.toPairsIn=Ku,or.toPath=function(e){return tu(e)?Ht(e,$i):_u(e)?[e]:Ho(qi(Tu(e)))},or.toPlainObject=Au,or.transform=function(e,t,n){var r=tu(e),o=r||iu(e)||bu(e);if(t=wi(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:fu(e)&&au(i)?ir(xt(e)):{}}return(o?Rt:Mr)(e,function(e,r,o){return t(n,e,r,o)}),n},or.unary=function(e){return Fl(e,1)},or.union=dl,or.unionBy=pl,or.unionWith=hl,or.uniq=function(e){return e&&e.length?Co(e):[]},or.uniqBy=function(e,t){return e&&e.length?Co(e,wi(t,2)):[]},or.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?Co(e,i,t):[]},or.unset=function(e,t){return null==e||Eo(e,t)},or.unzip=gl,or.unzipWith=vl,or.update=function(e,t,n){return null==e?e:Oo(e,t,jo(n))},or.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Oo(e,t,jo(n),r)},or.values=Yu,or.valuesIn=function(e){return null==e?[]:un(e,zu(e))},or.without=yl,or.words=aa,or.wrap=function(e,t){return $l(jo(t),e)},or.xor=ml,or.xorBy=_l,or.xorWith=bl,or.zip=wl,or.zipObject=function(e,t){return To(e||[],t||[],yr)},or.zipObjectDeep=function(e,t){return To(e||[],t||[],po)},or.zipWith=xl,or.entries=Qu,or.entriesIn=Ku,or.extend=ju,or.extendWith=Iu,ma(or,or),or.add=Ta,or.attempt=sa,or.camelCase=Ju,or.capitalize=Xu,or.ceil=Sa,or.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=Vu(n))==n?n:0),t!==i&&(t=(t=Vu(t))==t?t:0),Cr(Vu(e),t,n)},or.clone=function(e){return Er(e,f)},or.cloneDeep=function(e){return Er(e,s|f)},or.cloneDeepWith=function(e,t){return Er(e,s|f,t="function"==typeof t?t:i)},or.cloneWith=function(e,t){return Er(e,f,t="function"==typeof t?t:i)},or.conformsTo=function(e,t){return null==t||Or(e,t,Hu(t))},or.deburr=ea,or.defaultTo=function(e,t){return null==e||e!=e?t:e},or.divide=ja,or.endsWith=function(e,t,n){e=Tu(e),t=xo(t);var r=e.length,o=n=n===i?r:Cr(Ou(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},or.eq=Yl,or.escape=function(e){return(e=Tu(e))&&ye.test(e)?e.replace(ge,dn):e},or.escapeRegExp=function(e){return(e=Tu(e))&&Oe.test(e)?e.replace(Ee,"\\$&"):e},or.every=function(e,t,n){var r=tu(e)?Ft:Sr;return n&&Ii(e,t,n)&&(t=i),r(e,wi(t,3))},or.find=Vl,or.findIndex=el,or.findKey=function(e,t){return $t(e,wi(t,3),Mr)},or.findLast=Al,or.findLastIndex=tl,or.findLastKey=function(e,t){return $t(e,wi(t,3),Rr)},or.floor=Ia,or.forEach=Tl,or.forEachRight=Sl,or.forIn=function(e,t){return null==e?e:Dr(e,wi(t,3),zu)},or.forInRight=function(e,t){return null==e?e:Nr(e,wi(t,3),zu)},or.forOwn=function(e,t){return e&&Mr(e,wi(t,3))},or.forOwnRight=function(e,t){return e&&Rr(e,wi(t,3))},or.get=Ru,or.gt=Jl,or.gte=Xl,or.has=function(e,t){return null!=e&&Ai(e,t,zr)},or.hasIn=Fu,or.head=rl,or.identity=ha,or.includes=function(e,t,n,r){e=ru(e)?e:Yu(e),n=n&&!r?Ou(n):0;var o=e.length;return n<0&&(n=Mn(o+n,0)),mu(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Kt(e,t,n)>-1},or.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ou(n);return o<0&&(o=Mn(r+o,0)),Kt(e,t,o)},or.inRange=function(e,t,n){return t=Eu(t),n===i?(n=t,t=0):n=Eu(n),function(e,t,n){return e>=Rn(t,n)&&e=-V&&e<=V},or.isSet=yu,or.isString=mu,or.isSymbol=_u,or.isTypedArray=bu,or.isUndefined=function(e){return e===i},or.isWeakMap=function(e){return du(e)&&Vi(e)==X},or.isWeakSet=function(e){return du(e)&&"[object WeakSet]"==Ur(e)},or.join=function(e,t){return null==e?"":Dn.call(e,t)},or.kebabCase=ta,or.last=ul,or.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=Ou(n))<0?Mn(r+o,0):Rn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Qt(e,Jt,o,!0)},or.lowerCase=na,or.lowerFirst=ra,or.lt=wu,or.lte=xu,or.max=function(e){return e&&e.length?jr(e,ha,Hr):i},or.maxBy=function(e,t){return e&&e.length?jr(e,wi(t,2),Hr):i},or.mean=function(e){return Xt(e,ha)},or.meanBy=function(e,t){return Xt(e,wi(t,2))},or.min=function(e){return e&&e.length?jr(e,ha,Xr):i},or.minBy=function(e,t){return e&&e.length?jr(e,wi(t,2),Xr):i},or.stubArray=ka,or.stubFalse=Va,or.stubObject=function(){return{}},or.stubString=function(){return""},or.stubTrue=function(){return!0},or.multiply=Pa,or.nth=function(e,t){return e&&e.length?oo(e,Ou(t)):i},or.noConflict=function(){return Ct._===this&&(Ct._=lt),this},or.noop=_a,or.now=Rl,or.pad=function(e,t,n){e=Tu(e);var r=(t=Ou(t))?wn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return ri(Sn(o),n)+e+ri(Tn(o),n)},or.padEnd=function(e,t,n){e=Tu(e);var r=(t=Ou(t))?wn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Bn();return Rn(e+o*(t-e+_t("1e-"+((o+"").length-1))),t)}return so(e,t)},or.reduce=function(e,t,n){var r=tu(e)?Gt:nn,o=arguments.length<3;return r(e,wi(t,4),n,o,Ar)},or.reduceRight=function(e,t,n){var r=tu(e)?Wt:nn,o=arguments.length<3;return r(e,wi(t,4),n,o,Tr)},or.repeat=function(e,t,n){return t=(n?Ii(e,t,n):t===i)?1:Ou(t),co(Tu(e),t)},or.replace=function(){var e=arguments,t=Tu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},or.result=function(e,t,n){var r=-1,o=(t=Io(t,e)).length;for(o||(o=1,e=i);++rV)return[];var n=S,r=Rn(e,S);t=wi(t),e-=S;for(var o=on(r,t);++n=l)return e;var a=n-wn(r);if(a<1)return r;var s=u?Do(u,0,a).join(""):e.slice(0,a);if(o===i)return s+r;if(u&&(a+=s.length-a),vu(o)){if(e.slice(a).search(o)){var c,f=s;for(o.global||(o=$e(o.source,Tu(Ne.exec(o))+"g")),o.lastIndex=0;c=o.exec(f);)var d=c.index;s=s.slice(0,d===i?a:d)}}else if(e.indexOf(xo(o),a)!=a){var p=s.lastIndexOf(o);p>-1&&(s=s.slice(0,p))}return s+r},or.unescape=function(e){return(e=Tu(e))&&ve.test(e)?e.replace(he,Cn):e},or.uniqueId=function(e){var t=++nt;return Tu(e)+t},or.upperCase=la,or.upperFirst=ua,or.each=Tl,or.eachRight=Sl,or.first=rl,ma(or,(Aa={},Mr(or,function(e,t){tt.call(or.prototype,t)||(Aa[t]=e)}),Aa),{chain:!1}),or.VERSION="4.17.5",Rt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){or[e].placeholder=or}),Rt(["drop","take"],function(e,t){ar.prototype[e]=function(n){n=n===i?1:Mn(Ou(n),0);var r=this.__filtered__&&!t?new ar(this):this.clone();return r.__filtered__?r.__takeCount__=Rn(n,r.__takeCount__):r.__views__.push({size:Rn(n,S),type:e+(r.__dir__<0?"Right":"")}),r},ar.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Rt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;ar.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:wi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Rt(["head","last"],function(e,t){var n="take"+(t?"Right":"");ar.prototype[e]=function(){return this[n](1).value()[0]}}),Rt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");ar.prototype[e]=function(){return this.__filtered__?new ar(this):this[n](1)}}),ar.prototype.compact=function(){return this.filter(ha)},ar.prototype.find=function(e){return this.filter(e).head()},ar.prototype.findLast=function(e){return this.reverse().find(e)},ar.prototype.invokeMap=fo(function(e,t){return"function"==typeof e?new ar(this):this.map(function(n){return Zr(n,e,t)})}),ar.prototype.reject=function(e){return this.filter(Zl(wi(e)))},ar.prototype.slice=function(e,t){e=Ou(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ar(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=Ou(t))<0?n.dropRight(-t):n.take(t-e)),n)},ar.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ar.prototype.toArray=function(){return this.take(S)},Mr(ar.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=or[r?"take"+("last"==t?"Right":""):t],l=r||/^find/.test(t);o&&(or.prototype[t]=function(){var t=this.__wrapped__,u=r?[1]:arguments,a=t instanceof ar,s=u[0],c=a||tu(t),f=function(e){var t=o.apply(or,zt([e],u));return r&&d?t[0]:t};c&&n&&"function"==typeof s&&1!=s.length&&(a=c=!1);var d=this.__chain__,p=l&&!d,h=a&&!this.__actions__.length;if(!l&&c){t=h?t:new ar(this);var g=e.apply(t,u);return g.__actions__.push({func:El,args:[f],thisArg:i}),new ur(g,d)}return p&&h?e.apply(this,u):(g=this.thru(f),p?r?g.value()[0]:g.value():g)})}),Rt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ye[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);or.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(tu(o)?o:[],e)}return this[n](function(n){return t.apply(tu(n)?n:[],e)})}}),Mr(ar.prototype,function(e,t){var n=or[t];if(n){var r=n.name+"";(Qn[r]||(Qn[r]=[])).push({name:t,func:n})}}),Qn[Xo(i,g).name]=[{name:"wrapper",func:i}],ar.prototype.clone=function(){var e=new ar(this.__wrapped__);return e.__actions__=Ho(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ho(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ho(this.__views__),e},ar.prototype.reverse=function(){if(this.__filtered__){var e=new ar(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ar.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=tu(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},or.prototype.plant=function(e){for(var t,n=this;n instanceof lr;){var r=Ki(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},or.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ar){var t=e;return this.__actions__.length&&(t=new ar(this)),(t=t.reverse()).__actions__.push({func:El,args:[fl],thisArg:i}),new ur(t,this.__chain__)}return this.thru(fl)},or.prototype.toJSON=or.prototype.valueOf=or.prototype.value=function(){return Vo(this.__wrapped__,this.__actions__)},or.prototype.first=or.prototype.head,qt&&(or.prototype[qt]=function(){return this}),or}();Ct._=En,(o=(function(){return En}).call(t,n,t,r))===i||(r.exports=o)}).call(this)}).call(t,n("fRUx"),n("ZwkM")(e))}},[0]); \ No newline at end of file diff --git a/docs/main.754f1fff9ca0b218d5cb.bundle.js b/docs/main.754f1fff9ca0b218d5cb.bundle.js new file mode 100644 index 00000000..6884ae5d --- /dev/null +++ b/docs/main.754f1fff9ca0b218d5cb.bundle.js @@ -0,0 +1 @@ +webpackJsonp([1],{"+hR6":function(e,t){e.exports="import {Component} from '@angular/core';\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"},0:function(e,t,n){e.exports=n("cDNt")},"0Mtu":function(e,t){e.exports='

Select a color

\n
\n
\n \n \n

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
\n'},"1j/l":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=Array.isArray||function(e){return e&&"number"==typeof e.length}},"1oDy":function(e,t){e.exports="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"},"2kLc":function(e,t,n){"use strict";var r=n("AP4T"),o=n("Oryw"),i=n("3iOE"),l=n("wP3s");function u(e){return e}t.a=function(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof s&&(n=e.pop()),null===a&&1===e.length&&e[0]instanceof r.a?e[0]:function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Object(l.a)(u,null,e)}(n)(new o.a(e,a))}},"3iOE":function(e,t,n){"use strict";t.a=function(e){return e&&"function"==typeof e.schedule}},"6Xbx":function(e,t,n){"use strict";t.b=function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},n.d(t,"a",function(){return o});var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n ");else if("object"==typeof t){var o=[];for(var i in t)if(t.hasOwnProperty(i)){var l=t[i];o.push(i+":"+("string"==typeof l?JSON.stringify(l):O(l)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+e.replace(L,"\n ")}function G(e,t){return new Error(z(e,t))}var W="ngDebugContext",Z="ngOriginalError",q="ngErrorLogger";function $(e){return e[W]}function Q(e){return e[Z]}function K(e){for(var t=[],n=1;n0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+O(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}();function $e(e,t){return Array.isArray(t)?t.reduce($e,e):Object(r.a)({},e,t)}var Qe=function(){function e(e,t,n,r,u,a){var s=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=u,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ze(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var c=new o.a(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),f=new o.a(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){Ve.assertNotInAngularZone(),C(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Ve.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(i.a)(c,l.a.call(f))}return e.prototype.bootstrap=function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof de?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var o=n instanceof be?null:this._injector.get(we),i=n.create(j.NULL,[],t||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var l=i.injector.get(De,null);return l&&i.injector.get(Ne).registerApplication(i.location.nativeElement,l),this._loadComponent(i),ze()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},e.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,Oe(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;Ke(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(ue,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),Ke(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=Ee("ApplicationRef#tick()"),e}();function Ke(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ye=function(){},Je=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),Xe=function(){},et=function(e){this.nativeElement=e},tt=function(){function e(){this.dirty=!0,this._results=[],this.changes=new ke}return e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[x()]=function(){return this._results[x()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=function e(t){return t.reduce(function(t,n){var r=Array.isArray(n)?e(n):n;return t.concat(r)},[])}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}(),nt=function(){},rt=function(){},ot=function(){function e(e,t,n){this._debugContext=n,this.nativeNode=e,t&&t instanceof it?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),it=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=t,o}return Object(r.b)(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,r=this,o=this.childNodes.indexOf(e);-1!==o&&((n=this.childNodes).splice.apply(n,[o+1,0].concat(t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=r}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return lt(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return ut(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(ot);function lt(e,t,n){e.childNodes.forEach(function(e){e instanceof it&&(t(e)&&n.push(e),lt(e,t,n))})}function ut(e,t,n){e instanceof it&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof it&&ut(e,t,n)})}var at=new Map;function st(e){return at.get(e)||null}function ct(e){at.set(e.nativeNode,e)}function ft(e,t){var n=ht(e),r=ht(t);return n&&r?function(e,t,n){for(var r=e[x()](),o=t[x()]();;){var i=r.next(),l=o.next();if(i.done&&l.done)return!0;if(i.done||l.done)return!1;if(!n(i.value,l.value))return!1}}(e,t,ft):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||E(e,t)}var dt=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e.unwrap=function(t){return e.isWrapped(t)?t.wrapped:t},e.isWrapped=function(t){return t instanceof e},e}(),pt=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}();function ht(e){return!!gt(e)&&(Array.isArray(e)||!(e instanceof Map)&&x()in e)}function gt(e){return null!==e&&("function"==typeof e||"object"==typeof e)}var vt=function(){function e(){}return e.prototype.supports=function(e){return ht(e)},e.prototype.create=function(e){return new mt(e)},e}(),yt=function(e,t){return t},mt=function(){function e(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=e||yt}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,o=null;t||n;){var i=!n||t&&t.currentIndex=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,qn(n,t),Zt.dirtyParentQueries(r),Wn(r),r}function Gn(e,t,n){var r=t?pn(t,t.def.lastRenderRootNode):e.renderElement;xn(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Wn(e){xn(e,3,null,null,void 0)}function Zn(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function qn(e,t){t>=e.length-1?e.pop():e.splice(t,1)}var $n=new Object;function Qn(e,t,n,r,o,i){return new Kn(e,t,n,r,o,i)}var Kn=function(e){function t(t,n,r,o,i,l){var u=e.call(this)||this;return u.selector=t,u.componentType=n,u._inputs=o,u._outputs=i,u.ngContentSelectors=l,u.viewDefFactory=r,u}return Object(r.b)(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var o=wn(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,l=Zt.createRootView(e,t||[],n,o,r,$n),u=zt(l,i).instance;return n&&l.renderer.setAttribute(Ht(l,0).renderElement,"ng-version",p.full),new Yn(l,new tr(l),u)},t}(de),Yn=function(e){function t(t,n,r){var o=e.call(this)||this;return o._view=t,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return Object(r.b)(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new et(Ht(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new ir(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(function(){});function Jn(e,t,n){return new Xn(e,t,n)}var Xn=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new et(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new ir(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=dn(e),e=e.parent;return e?new ir(e,t):new ir(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=zn(this._data,e);Zt.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new tr(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,o){var i=n||this.parentInjector;o||e instanceof be||(o=i.get(we));var l=e.create(i,r,void 0,o);return this.insert(l.hostView,t),l},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,l=e;return o=l._view,i=(n=this._data).viewContainer._embeddedViews,null!==(r=t)&&void 0!==r||(r=i.length),o.viewContainerParent=this._view,Zn(i,r,o),function(e,t){var n=fn(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,t.parentNodeDef)}}(n,o),Zt.dirtyParentQueries(o),Gn(n,r>0?i[r-1]:null,o),l.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,l,u=this._embeddedViews.indexOf(e._view);return o=t,l=(i=(n=this._data).viewContainer._embeddedViews)[r=u],qn(i,r),null==o&&(o=i.length),Zn(i,o,l),Zt.dirtyParentQueries(l),Wn(l),Gn(n,o>0?i[o-1]:null,l),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=zn(this._data,e);t&&Zt.destroyView(t)},e.prototype.detach=function(e){var t=zn(this._data,e);return t?new tr(t):null},e}();function er(e){return new tr(e)}var tr=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return xn(this._view,0,void 0,void 0,e=[]),e;var e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){an(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Zt.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){Zt.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Zt.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Wn(this._view),Zt.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function nr(e,t){return new rr(e,t)}var rr=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return Object(r.b)(t,e),t.prototype.createEmbeddedView=function(e){return new tr(Zt.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new et(Ht(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(nt);function or(e,t){return new ir(e,t)}var ir=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=j.THROW_IF_NOT_FOUND),Zt.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Jt(e)},t)},e}();function lr(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=Ht(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Ut(e,n.nodeIndex).renderText;if(20240&n.flags)return zt(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function ur(e){return new ar(e.renderer)}var ar=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=An(t),r=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,r),r},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r0,r=t.provider;switch(201347067&t.flags){case 512:return Vr(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(Tr(e,t,n,o[0]));case 2:return r(Tr(e,t,n,o[0]),Tr(e,t,n,o[1]));case 3:return r(Tr(e,t,n,o[0]),Tr(e,t,n,o[1]),Tr(e,t,n,o[2]));default:for(var l=Array(i),u=0;u0)s=g,Qr(g)||(c=g);else for(;s&&h===s.nodeIndex+s.childCount;){var m=s.parent;m&&(m.childFlags|=s.childFlags,m.childMatchedQueries|=s.childMatchedQueries),c=(s=m)&&Qr(s)?s.renderParent:s}}return{factory:null,nodeFlags:l,rootNodeFlags:u,nodeMatchedQueries:a,flags:e,nodes:t,updateDirectives:n||Kt,updateRenderer:r||Kt,handleEvent:function(e,n,r,o){return t[n].element.handleEvent(e,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:p}}function Qr(e){return 0!=(1&e.flags)&&null===e.element.name}function Kr(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!");if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var o=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=o&&t.nodeIndex+t.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function Yr(e,t,n,r){var o=eo(e.root,e.renderer,e,t,n);return to(o,e.component,r),no(o),o}function Jr(e,t,n){var r=eo(e,e.renderer,null,null,t);return to(r,n,n),no(r),r}function Xr(e,t,n,r){var o,i=t.element.componentRendererType;return o=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,eo(e.root,o,e,t.element.componentProvider,n)}function eo(e,t,n,r,o){var i=new Array(o.nodes.length),l=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(o.bindingCount),disposables:l,initIndex:-1}}function to(e,t,n){e.component=t,e.context=n}function no(e){var t;hn(e)&&(t=Ht(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,o=0;o0&&Nn(e,t,0,n)&&(p=!0),d>1&&Nn(e,t,1,r)&&(p=!0),d>2&&Nn(e,t,2,o)&&(p=!0),d>3&&Nn(e,t,3,i)&&(p=!0),d>4&&Nn(e,t,4,l)&&(p=!0),d>5&&Nn(e,t,5,u)&&(p=!0),d>6&&Nn(e,t,6,a)&&(p=!0),d>7&&Nn(e,t,7,s)&&(p=!0),d>8&&Nn(e,t,8,c)&&(p=!0),d>9&&Nn(e,t,9,f)&&(p=!0),p}(e,t,n,r,o,i,l,u,a,s,c,f);case 2:return function(e,t,n,r,o,i,l,u,a,s,c,f){var d=!1,p=t.bindings,h=p.length;if(h>0&&ln(e,t,0,n)&&(d=!0),h>1&&ln(e,t,1,r)&&(d=!0),h>2&&ln(e,t,2,o)&&(d=!0),h>3&&ln(e,t,3,i)&&(d=!0),h>4&&ln(e,t,4,l)&&(d=!0),h>5&&ln(e,t,5,u)&&(d=!0),h>6&&ln(e,t,6,a)&&(d=!0),h>7&&ln(e,t,7,s)&&(d=!0),h>8&&ln(e,t,8,c)&&(d=!0),h>9&&ln(e,t,9,f)&&(d=!0),d){var g=t.text.prefix;h>0&&(g+=qr(n,p[0])),h>1&&(g+=qr(r,p[1])),h>2&&(g+=qr(o,p[2])),h>3&&(g+=qr(i,p[3])),h>4&&(g+=qr(l,p[4])),h>5&&(g+=qr(u,p[5])),h>6&&(g+=qr(a,p[6])),h>7&&(g+=qr(s,p[7])),h>8&&(g+=qr(c,p[8])),h>9&&(g+=qr(f,p[9]));var v=Ut(e,t.nodeIndex).renderText;e.renderer.setValue(v,g)}return d}(e,t,n,r,o,i,l,u,a,s,c,f);case 16384:return function(e,t,n,r,o,i,l,u,a,s,c,f){var d=zt(e,t.nodeIndex),p=d.instance,h=!1,g=void 0,v=t.bindings.length;return v>0&&on(e,t,0,n)&&(h=!0,g=jr(e,d,t,0,n,g)),v>1&&on(e,t,1,r)&&(h=!0,g=jr(e,d,t,1,r,g)),v>2&&on(e,t,2,o)&&(h=!0,g=jr(e,d,t,2,o,g)),v>3&&on(e,t,3,i)&&(h=!0,g=jr(e,d,t,3,i,g)),v>4&&on(e,t,4,l)&&(h=!0,g=jr(e,d,t,4,l,g)),v>5&&on(e,t,5,u)&&(h=!0,g=jr(e,d,t,5,u,g)),v>6&&on(e,t,6,a)&&(h=!0,g=jr(e,d,t,6,a,g)),v>7&&on(e,t,7,s)&&(h=!0,g=jr(e,d,t,7,s,g)),v>8&&on(e,t,8,c)&&(h=!0,g=jr(e,d,t,8,c,g)),v>9&&on(e,t,9,f)&&(h=!0,g=jr(e,d,t,9,f,g)),g&&p.ngOnChanges(g),65536&t.flags&&Bt(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),h}(e,t,n,r,o,i,l,u,a,s,c,f);case 32:case 64:case 128:return function(e,t,n,r,o,i,l,u,a,s,c,f){var d=t.bindings,p=!1,h=d.length;if(h>0&&ln(e,t,0,n)&&(p=!0),h>1&&ln(e,t,1,r)&&(p=!0),h>2&&ln(e,t,2,o)&&(p=!0),h>3&&ln(e,t,3,i)&&(p=!0),h>4&&ln(e,t,4,l)&&(p=!0),h>5&&ln(e,t,5,u)&&(p=!0),h>6&&ln(e,t,6,a)&&(p=!0),h>7&&ln(e,t,7,s)&&(p=!0),h>8&&ln(e,t,8,c)&&(p=!0),h>9&&ln(e,t,9,f)&&(p=!0),p){var g=Gt(e,t.nodeIndex),v=void 0;switch(201347067&t.flags){case 32:v=new Array(d.length),h>0&&(v[0]=n),h>1&&(v[1]=r),h>2&&(v[2]=o),h>3&&(v[3]=i),h>4&&(v[4]=l),h>5&&(v[5]=u),h>6&&(v[6]=a),h>7&&(v[7]=s),h>8&&(v[8]=c),h>9&&(v[9]=f);break;case 64:v={},h>0&&(v[d[0].name]=n),h>1&&(v[d[1].name]=r),h>2&&(v[d[2].name]=o),h>3&&(v[d[3].name]=i),h>4&&(v[d[4].name]=l),h>5&&(v[d[5].name]=u),h>6&&(v[d[6].name]=a),h>7&&(v[d[7].name]=s),h>8&&(v[d[8].name]=c),h>9&&(v[d[9].name]=f);break;case 128:var y=n;switch(h){case 1:v=y.transform(n);break;case 2:v=y.transform(r);break;case 3:v=y.transform(r,o);break;case 4:v=y.transform(r,o,i);break;case 5:v=y.transform(r,o,i,l);break;case 6:v=y.transform(r,o,i,l,u);break;case 7:v=y.transform(r,o,i,l,u,a);break;case 8:v=y.transform(r,o,i,l,u,a,s);break;case 9:v=y.transform(r,o,i,l,u,a,s,c);break;case 10:v=y.transform(r,o,i,l,u,a,s,c,f)}}g.value=v}return p}(e,t,n,r,o,i,l,u,a,s,c,f);default:throw"unreachable"}}(e,t,r,o,i,l,u,a,s,c,f,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,o=0;o0&&un(e,t,0,n),d>1&&un(e,t,1,r),d>2&&un(e,t,2,o),d>3&&un(e,t,3,i),d>4&&un(e,t,4,l),d>5&&un(e,t,5,u),d>6&&un(e,t,6,a),d>7&&un(e,t,7,s),d>8&&un(e,t,8,c),d>9&&un(e,t,9,f)}(e,t,r,o,i,l,u,a,s,c,f,d):function(e,t,n){for(var r=0;rSelect a single city\n
\n
\n \n \n

\n
\n
{{ngxControl.value | json}}
\n
\n
\n \n
\n
\n
\n'},Oryw:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("6Xbx"),o=n("AP4T"),i=n("8Ut3"),l=n("Ecq+"),u=n("3iOE"),a=function(e){function t(t,n){e.call(this),this.array=t,this.scheduler=n,n||1!==t.length||(this._isScalar=!0,this.value=t[0])}return Object(r.b)(t,e),t.create=function(e,n){return new t(e,n)},t.of=function(){for(var e=[],n=0;n1?new t(e,r):1===o?new i.a(e[0],r):new l.a(r)},t.dispatch=function(e){var t=e.array,n=e.index,r=e.subscriber;n>=e.count?r.complete():(r.next(t[n]),r.closed||(e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.array,r=n.length,o=this.scheduler;if(o)return o.schedule(t.dispatch,0,{array:n,index:0,count:r,subscriber:e});for(var i=0;i1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(l.a),f=function(e){function t(t,n){e.call(this),this.source=t,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return Object(r.b)(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new u.a).add(this.source.subscribe(new p(this.getSubject(),this))),e.closed?(this._connection=null,e=u.a.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return a()(this)},t}(i.a).prototype,d={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:f._subscribe},_isComplete:{value:f._isComplete,writable:!0},getSubject:{value:f.getSubject},connect:{value:f.connect},refCount:{value:f.refCount}},p=function(e){function t(t,n){e.call(this,t),this.connectable=n}return Object(r.b)(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(o.b);function h(){return new o.a}t.a=function(){return this,a()((e=h,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,d);return r.source=t,r.subjectFactory=n,r})(this));var e}},Upor:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("6Xbx"),o=function(e){function t(){var t=e.call(this,"object unsubscribed");this.name=t.name="ObjectUnsubscribedError",this.stack=t.stack,this.message=t.message}return Object(r.b)(t,e),t}(Error)},V7AE:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("xIGM").a.Symbol,o="function"==typeof r&&"function"==typeof r.for?r.for("rxSubscriber"):"@@rxSubscriber"},X3fp:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){var t=e.Symbol;if("function"==typeof t)return t.iterator||(t.iterator=t("iterator polyfill")),t.iterator;var n=e.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=e.Map;if(r)for(var o=Object.getOwnPropertyNames(r.prototype),i=0;i {\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 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) {\n console.log('SingleDemoComponent.inputTyped', source, text);\n }\n\n public doFocus() {\n console.log('SingleDemoComponent.doFocus');\n }\n\n public doBlur() {\n console.log('SingleDemoComponent.doBlur');\n }\n\n public doOpen() {\n console.log('SingleDemoComponent.doOpen');\n }\n\n public doClose() {\n console.log('SingleDemoComponent.doClose');\n }\n\n public doSelect(value: any) {\n console.log('SingleDemoComponent.doSelect', value);\n }\n\n public doRemove(value: any) {\n console.log('SingleDemoComponent.doRemove', value);\n }\n}\n"},cDNt:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("LMZF"),o=function(){},i=n("ksPu"),l=n("wDkl"),u=function(){function e(){this.gettingStarted=l,this.p=i}return e.prototype.ngAfterContentInit=function(){setTimeout(function(){"undefined"!=typeof PR&&PR.prettyPrint()},150)},e}(),a=n("6Xbx"),s=function(){},c=["en",[["a","p"],["AM","PM"]],[["AM","PM"],,],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",,"{1} 'at' {0}"],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],f={},d=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),p=new r.l("UseV4Plurals"),h=function(){},g=function(e){function t(t,n){var r=e.call(this)||this;return r.locale=t,r.deprecatedPluralFn=n,r}return Object(a.b)(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return function(e){var t=e.toLowerCase().replace(/_/g,"-"),n=f[t];if(n)return n;var r=t.split("-")[0];if(n=f[r])return n;if("en"===r)return c;throw new Error('Missing locale data for the locale "'+e+'".')}(e)[17]}(t||this.locale)(e)){case d.Zero:return"zero";case d.One:return"one";case d.Two:return"two";case d.Few:return"few";case d.Many:return"many";default:return"other"}},t}(h),v=function(){function e(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(e.prototype,"klass",{set:function(e){this._applyInitialClasses(!0),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClass",{set:function(e){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(r.Y)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}},e.prototype._cleanupClasses=function(e){this._applyClasses(e,!0),this._applyInitialClasses(!1)},e.prototype._applyKeyValueChanges=function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})},e.prototype._applyIterableChanges=function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(r._14)(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})},e.prototype._applyInitialClasses=function(e){var t=this;this._initialClasses.forEach(function(n){return t._toggleClass(n,!e)})},e.prototype._applyClasses=function(e,t){var n=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return n._toggleClass(e,!t)}):Object.keys(e).forEach(function(r){null!=e[r]&&n._toggleClass(r,!t)}))},e.prototype._toggleClass=function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})},e}(),y=function(){function e(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}return Object.defineProperty(e.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),e}(),m=function(){function e(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._differ=null}return Object.defineProperty(e.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(e){Object(r.L)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(e)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if("ngForOf"in e){var t=e.ngForOf.currentValue;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(e){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((n=t).name||typeof n)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var n},e.prototype.ngDoCheck=function(){if(this._differ){var e=this._differ.diff(this.ngForOf);e&&this._applyChanges(e)}},e.prototype._applyChanges=function(e){var t=this,n=[];e.forEachOperation(function(e,r,o){if(null==e.previousIndex){var i=t._viewContainer.createEmbeddedView(t._template,new y(null,t.ngForOf,-1,-1),o),l=new _(e,i);n.push(l)}else null==o?t._viewContainer.remove(r):(i=t._viewContainer.get(r),t._viewContainer.move(i,o),l=new _(e,i),n.push(l))});for(var r=0;r0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r0;u||(u=e[l]=[]);var s=He(t)?Zone.root:Zone.current;if(0===u.length)u.push({zone:s,handler:i});else{for(var c=!1,f=0;f-1},t}(we),Qe=["alt","control","meta","shift"],Ke={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},Ye=function(e){function t(t){return e.call(this,t)||this}return Object(a.b)(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,r){var o=t.parseEventName(n),i=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return ee().onAndCancel(e,o.domEventName,i)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=t._normalizeKey(n.pop()),i="";if(Qe.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=o,0!=n.length||0===o.length)return null;var l={};return l.domEventName=r,l.fullKey=i,l},t.getEventFullKey=function(e){var t="",n=ee().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Qe.forEach(function(r){r!=n&&(0,Ke[r])(e)&&(t+=r+".")}),t+=n},t.eventCallback=function(e,n,r){return function(o){t.getEventFullKey(o)===e&&r.runGuarded(function(){return n(o)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(we),Je=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Xe=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function et(e){return(e=String(e)).match(Je)||e.match(Xe)?e:(Object(r.L)()&&ee().log("WARNING: sanitizing unsafe URL value "+e+" (see http://g.co/ng/security#xss)"),"unsafe:"+e)}var tt=null,nt=null;function rt(e){for(var t={},n=0,r=e.split(",");n")):this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=nt.nodeName(e).toLowerCase();st.hasOwnProperty(t)&&!it.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push(yt(e))},e}();function ht(e,t){if(t&&nt.contains(e,t))throw new Error("Failed to sanitize html because the element is clobbered: "+nt.getOuterHTML(e));return t}var gt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,vt=/([^\#-~ |!])/g;function yt(e){return e.replace(/&/g,"&").replace(gt,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(vt,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function mt(e){nt.attributeMap(e).forEach(function(t,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||nt.removeAttribute(e,n)});for(var t=0,n=nt.childNodesAsList(e);te?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return Nt(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return Mt.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(Nt(t.value))return null;var n=t.value?t.value.length:0;return ne?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){return t?("string"==typeof t?(r="","^"!==t.charAt(0)&&(r+="^"),r+=t,"$"!==t.charAt(t.length-1)&&(r+="$"),n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(Nt(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(Ft);return 0==t.length?null:function(e){return Bt(function(e,n){return t.map(function(t){return t(e)})}(e))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(Ft);return 0==t.length?null:function(e){var n=function(e,n){return t.map(function(t){return t(e)})}(e).map(Lt);return J.call(z(n),Bt)}},e}();function Ft(e){return null!=e}function Lt(e){var t=Object(r._0)(e)?$(e):e;if(!Object(r.Z)(t))throw new Error("Expected validator to return Promise or Observable.");return t}function Bt(e){var t=e.reduce(function(e,t){return null!=t?Object(a.a)({},e,t):e},{});return 0===Object.keys(t).length?null:t}var Ut=new r.l("NgValueAccessor"),Ht=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),zt=function(){function e(e,t,n){var r;this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=ee()?ee().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._handleInput=function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)},e.prototype._compositionStart=function(){this._composing=!0},e.prototype._compositionEnd=function(e){this._composing=!1,this._compositionMode&&this.onChange(e)},e}();function Gt(e){return e.validate?function(t){return e.validate(t)}:e}function Wt(e){return e.validate?function(t){return e.validate(t)}:e}var Zt=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}();function qt(){throw new Error("unimplemented")}var $t=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return Object(a.b)(t,e),Object.defineProperty(t.prototype,"validator",{get:function(){return qt()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return qt()},enumerable:!0,configurable:!0}),t}(Pt),Qt=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name},e}(),Kt=function(){function e(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get($t),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},e}();function Yt(e,t){return t.path.concat([e])}function Jt(e,t){e||en(t,"Cannot find control with"),t.valueAccessor||en(t,"No value accessor for form control with"),e.validator=Rt.compose([e.validator,t.validator]),e.asyncValidator=Rt.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Xt(e,t)})}(e,t),function(e,t){e.registerOnChange(function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Xt(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(function(e){t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return e.updateValueAndValidity()})}),t._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return e.updateValueAndValidity()})})}function Xt(e,t){t.viewToModelUpdate(e._pendingValue),e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),e._pendingChange=!1}function en(e,t){var n;throw n=e.path.length>1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function tn(e){return null!=e?Rt.compose(e.map(Gt)):null}function nn(e){return null!=e?Rt.composeAsync(e.map(Wt)):null}function rn(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object(r._1)(t,n.currentValue)}var on=[Ht,function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),Zt,function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=r._1}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i0||this.disabled},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},t}(dn),gn=function(e){function t(t,n,r){var o=e.call(this,sn(n),cn(r,n))||this;return o.controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(a.b)(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach(function(e,r){n._throwIfControlMissing(r),n.at(r).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach(function(e,r){n.at(r)&&n.at(r).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this.controls.map(function(e){return e instanceof pn?e.value:e.getRawValue()})},t.prototype._syncPendingControls=function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach(function(t,n){e(t,n)})},t.prototype._updateValue=function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})},t.prototype._anyControls=function(e){return this.controls.some(function(t){return t.enabled&&e(t)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")})},t.prototype._allControlsDisabled=function(){for(var e=0,t=this.controls;e0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(dn),vn=Promise.resolve(null),yn=function(e){function t(t,n){var o=e.call(this)||this;return o.submitted=!1,o._directives=[],o.ngSubmit=new r.j,o.form=new hn({},tn(t),nn(n)),o}return Object(a.b)(t,e),t.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;vn.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Jt(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t=this;vn.then(function(){var n,r,o=t._findContainer(e.path);o&&o.removeControl(e.name),(r=(n=t._directives).indexOf(e))>-1&&n.splice(r,1)})},t.prototype.addFormGroup=function(e){var t=this;vn.then(function(){var n=t._findContainer(e.path),r=new hn({});(function(e,t){null==e&&en(t,"Cannot find control with"),e.validator=Rt.compose([e.validator,t.validator]),e.asyncValidator=Rt.composeAsync([e.asyncValidator,t.asyncValidator])})(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(e){var t=this;vn.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){var n=this;vn.then(function(){n.form.get(e.path).setValue(t)})},t.prototype.setValue=function(e){this.control.setValue(e)},t.prototype.onSubmit=function(e){return this.submitted=!0,t=this._directives,this.form._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}),this.ngSubmit.emit(e),!1;var t},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},t.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},t}(Dt),mn='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',_n='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',bn='\n
\n
\n \n
\n
',wn=function(){function e(){}return e.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+mn+'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')},e.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+_n+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+bn)},e.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},e.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+_n+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+bn)},e}(),xn=function(e){function t(t,n,r){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=r,o}return Object(a.b)(t,e),t.prototype._checkParentType=function(){this._parent instanceof t||this._parent instanceof yn||wn.modelGroupParentException()},t}(un),Cn=Promise.resolve(null),En=function(e){function t(t,n,o,i){var l=e.call(this)||this;return l.control=new pn,l._registered=!1,l.update=new r.j,l._parent=t,l._rawValidators=n||[],l._rawAsyncValidators=o||[],l.valueAccessor=ln(l,i),l}return Object(a.b)(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),rn(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?Yt(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return tn(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return nn(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){Jt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof xn)&&this._parent instanceof un?wn.formGroupNameException():this._parent instanceof xn||this._parent instanceof yn||wn.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||wn.missingNameException()},t.prototype._updateValue=function(e){var t=this;Cn.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;Cn.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})},t}($t),On=function(){function e(){}return e.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+mn)},e.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+_n+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+bn)},e.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+mn)},e.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+_n)},e.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},e.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},e}(),kn=function(e){function t(t,n,o){var i=e.call(this)||this;return i.update=new r.j,i._rawValidators=t||[],i._rawAsyncValidators=n||[],i.valueAccessor=ln(i,o),i}return Object(a.b)(t,e),Object.defineProperty(t.prototype,"isDisabled",{set:function(e){On.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._isControlChanged(e)&&(Jt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),rn(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return tn(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return nn(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._isControlChanged=function(e){return e.hasOwnProperty("form")},t}($t),Vn=function(){function e(){}return e.prototype.group=function(e,t){void 0===t&&(t=null);var n=this._reduceControls(e);return new hn(n,null!=t?t.validator:null,null!=t?t.asyncValidator:null)},e.prototype.control=function(e,t,n){return new pn(e,t,n)},e.prototype.array=function(e,t,n){var r=this,o=e.map(function(e){return r._createControl(e)});return new gn(o,t,n)},e.prototype._reduceControls=function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]=t._createControl(e[r])}),n},e.prototype._createControl=function(e){return e instanceof pn||e instanceof hn||e instanceof gn?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)},e}(),An=function(){},Tn=function(){},Sn=function(){},jn=n("vyOh"),In=jn,Pn=function(){function e(e,t,n,r){void 0===r&&(r=null),this.value=e,this.text=t,this.disabled=n,this._parent=r,this.type="option",this.cacheRenderedText=null}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),e.prototype.renderText=function(e,t){return this.cacheHighlightText===t&&null!==this.cacheRenderedText||(this.cacheHighlightText=t,this.cacheRenderedText=e.bypassSecurityTrustHtml(this.cacheHighlightText?this.text.replace(new RegExp(In(this.cacheHighlightText),"gi"),"$&"):this.text)),this.cacheRenderedText},e}(),Dn=function(){function e(e,t){void 0===t&&(t=[]),this.label=e,this.options=t,this.type="optgroup",this.filter(function(){return!0})}return e.prototype.filter=function(e){this.optionsFiltered=this.options.filter(function(t){return e(t)})},e}(),Nn=n("xrDH"),Mn=n("TO51"),Rn=n("Upor"),Fn=function(e){function t(t){e.call(this),this._value=t}return Object(a.b)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Rn.a;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(Mn.a);M.a.empty=R.a.create;var Ln=n("kQVV"),Bn=n("mHG6"),Un=n("X3fp"),Hn=function(e){function t(t,n){if(e.call(this),this.scheduler=n,null==t)throw new Error("iterator cannot be null.");this.iterator=Wn(t)}return Object(a.b)(t,e),t.create=function(e,n){return new t(e,n)},t.dispatch=function(e){var t=e.index,n=e.iterator,r=e.subscriber;if(e.hasError)r.error(e.error);else{var o=n.next();o.done?r.complete():(r.next(o.value),e.index=t+1,r.closed?"function"==typeof n.return&&n.return():this.schedule(e))}},t.prototype._subscribe=function(e){var n=this.iterator,r=this.scheduler;if(r)return r.schedule(t.dispatch,0,{index:0,iterator:n,subscriber:e});for(;;){var o=n.next();if(o.done){e.complete();break}if(e.next(o.value),e.closed){"function"==typeof n.return&&n.return();break}}},t}(M.a),zn=function(){function e(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length),this.str=e,this.idx=t,this.len=n}return e.prototype[Un.a]=function(){return this},e.prototype.next=function(){return this.idxZn?Zn:o:o}()),this.arr=e,this.idx=t,this.len=n}return e.prototype[Un.a]=function(){return this},e.prototype.next=function(){return this.idx=e.length?r.complete():(r.next(t[n]),e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.arrayLike,r=this.scheduler,o=n.length;if(r)return r.schedule(t.dispatch,0,{arrayLike:n,index:0,length:o,subscriber:e});for(var i=0;i=2&&(n=!0),function(r){return r.lift(new cr(e,t,n))}}M.a.prototype.mergeMap=ar,M.a.prototype.flatMap=ar;var cr=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new fr(e,this.accumulator,this.seed,this.hasSeed))},e}(),fr=function(e){function t(t,n,r,o){e.call(this,t),this.accumulator=n,this._seed=r,this.hasSeed=o,this.index=0}return Object(a.b)(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(Q.a),dr=function(e){function t(){var t=e.call(this,"argument out of range");this.name=t.name="ArgumentOutOfRangeError",this.stack=t.stack,this.message=t.message}return Object(a.b)(t,e),t}(Error);function pr(e){return function(t){return 0===e?new R.a:t.lift(new hr(e))}}var hr=function(){function e(e){if(this.total=e,this.total<0)throw new dr}return e.prototype.call=function(e,t){return t.subscribe(new gr(e,this.total))},e}(),gr=function(e){function t(t,n){e.call(this,t),this.total=n,this.ring=new Array,this.count=0}return Object(a.b)(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,r=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o=2?function(n){return Object(mr.a)(sr(e,t),pr(1),(void 0===(r=t)&&(r=null),function(e){return e.lift(new vr(r))}))(n);var r}:function(t){return Object(mr.a)(sr(function(t,n,r){return e(t,n,r+1)}),pr(1))(t)}}(_r,[])(this)};var br=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new wr(e,this.predicate,this.thisArg))},e}(),wr=function(e){function t(t,n,r){e.call(this,t),this.predicate=n,this.thisArg=r,this.count=0}return Object(a.b)(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(Q.a);M.a.prototype.filter=function(e,t){return function(e,t){return function(n){return n.lift(new br(e,t))}}(e,t)(this)};var xr=n("URbD");M.a.prototype.share=xr.a;var Cr=n("2kLc");M.a.prototype.merge=function(){for(var e=[],t=0;t=0?n[r]:n[n.length-1];case Ar.next:return(r=n.indexOf(t.optionActive)+1)t.scrollTop+t.clientHeight&&(t.scrollTop=this.cacheElementOffsetTop+e.offsetHeight-t.clientHeight)}},e.prototype.optionsOpen=function(e){void 0===e&&(e=""),this.disabled||(this.optionsOpened=!0,this.subjSearchText.next(e),!this.multiple&&this.subjOptionsSelected.value.length?this.optionActivate(this.subjOptionsSelected.value[0]):this.navigateOption(Ar.first),this.focusToInput(),this.open.emit())},e.prototype.optionsClose=function(e){if(void 0===e&&(e=!1),this.optionsOpened=!1,e){var t=window.scrollX,n=window.scrollY;this.mainElRef.nativeElement.focus(),window.scrollTo(t,n)}this.close.emit()},e.prototype.buildOptions=function(e){var t,n=this,r=[];return Array.isArray(e)&&e.forEach(function(e){if("object"==typeof e&&null!==e&&e.hasOwnProperty(n.optGroupLabelField)&&e.hasOwnProperty(n.optGroupOptionsField)&&Array.isArray(e[n.optGroupOptionsField])){var o=new Dn(e[n.optGroupLabelField]);e[n.optGroupOptionsField].forEach(function(e){(t=n.buildOption(e,o))&&o.options.push(t)}),r.push(o)}else(t=n.buildOption(e,null))&&r.push(t)}),r},e.prototype.buildOption=function(e,t){var n,r,o;if("string"==typeof e||"number"==typeof e)n=r=e,o=!1;else{if("object"!=typeof e||null===e||!e.hasOwnProperty(this.optionValueField)&&!e.hasOwnProperty(this.optionTextField))return null;n=e.hasOwnProperty(this.optionValueField)?e[this.optionValueField]:e[this.optionTextField],r=e.hasOwnProperty(this.optionTextField)?e[this.optionTextField]:e[this.optionValueField],o=!!e.hasOwnProperty("disabled")&&e.disabled}return new Pn(n,r,o,t)},e.prototype.writeValue=function(e){this.subjExternalValue.next(e)},e.prototype.registerOnChange=function(e){this.onChange=e,this.subjRegisterOnChange.next()},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e}(),Sr=r.T({encapsulation:0,styles:[['.ngx-select[_ngcontent-%COMP%]{\n }.ngx-select_multiple[_ngcontent-%COMP%]{height:auto;padding:3px 3px 0 3px}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__search[_ngcontent-%COMP%]{background-color:transparent!important;\n border:none;outline:none;-webkit-box-shadow: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;\n color:#333;background-color:#fff;border-color:#ccc}.ngx-select__toggle[_ngcontent-%COMP%]:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.ngx-select__toggle-caret[_ngcontent-%COMP%]{position:absolute;height:10px;top:50%;right:10px;margin-top:-2px}.ngx-select__placeholder[_ngcontent-%COMP%]{float:left;color:inherit!important}.ngx-select__clear[_ngcontent-%COMP%]{margin-right:10px;padding:0}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__clear[_ngcontent-%COMP%]{line-height:normal;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%]:after, .ngx-select__clear-icon[_ngcontent-%COMP%]:before{content:"";position:absolute;border-top:3px solid;width:100%;top:50%;left:0;margin-top:-1px}.ngx-select__clear-icon[_ngcontent-%COMP%]:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.ngx-select__clear-icon[_ngcontent-%COMP%]:after{-webkit-transform:rotate(-45deg);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-plural[_ngcontent-%COMP%], .ngx-select__selected-single[_ngcontent-%COMP%]{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.ngx-select__selected-plural[_ngcontent-%COMP%]{outline:0;margin:0 3px 3px 0}\n .input-group[_ngcontent-%COMP%] > .dropdown[_ngcontent-%COMP%]{\n position:static}']],data:{}});function jr(e){return r._17(0,[(e()(),r.V(0,0,null,null,3,"a",[["class","ngx-select__clear btn btn-sm btn-link pull-right float-right"]],null,[[null,"click"]],function(e,t,n){var r=!0,o=e.component;return"click"===t&&(r=!1!==o.optionRemove(o.optionsSelected[0],n)&&r),r},null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(2,0,null,null,0,"i",[["class","ngx-select__clear-icon"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "]))],null,null)}function Ir(e){return r._17(0,[(e()(),r.V(0,0,null,null,15,"div",[["class","ngx-select__selected ui-select-match"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(2,0,null,null,12,"div",[["class","ngx-select__toggle btn form-control ui-select-toggle"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.optionsOpen()&&r),r},null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(4,0,null,null,2,"span",[],[[8,"innerHTML",1]],null,null,null,null)),r.U(5,278528,null,0,v,[r.n,r.o,r.h,r.w],{ngClass:[0,"ngClass"]},null),r._10(6,{"ngx-select__placeholder ui-select-placeholder text-muted":0,"ngx-select__selected-single ui-select-match-text pull-left float-left":1,"ngx-select__allow-clear ui-select-allow-clear":2}),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(8,0,null,null,0,"i",[["class","dropdown-toggle pull-right float-right"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(10,0,null,null,0,"i",[["class","ngx-select__toggle-caret caret pull-right float-right"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.Q(16777216,null,null,1,null,jr)),r.U(13,16384,null,0,b,[r.E,r.B],{ngIf:[0,"ngIf"]},null),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,5,0,e(t,6,0,!n.optionsSelected.length,n.optionsSelected.length,n.optionsSelected.length&&n.allowClear)),e(t,13,0,n.canClearNotMultiple())},function(e,t){var n=t.component;e(t,4,0,n.sanitize(n.optionsSelected.length?n.optionsSelected[0].text:n.placeholder))})}function Pr(e){return r._17(0,[(e()(),r.V(0,0,null,null,11,"span",[],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(2,0,null,null,8,"span",[["class","ngx-select__selected-plural btn btn-default btn-secondary btn-xs ui-select-match-item"],["tabindex","-1"],["type","button"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(4,0,null,null,0,"span",[],[[8,"innerHTML",1]],null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(6,0,null,null,3,"a",[["class","ngx-select__clear btn btn-sm btn-link pull-right float-right"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.optionRemove(e.context.$implicit,n)&&r),r},null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(8,0,null,null,0,"i",[["class","ngx-select__clear-icon"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "]))],null,function(e,t){e(t,4,0,t.component.sanitize(t.context.$implicit.text))})}function Dr(e){return r._17(0,[(e()(),r.V(0,0,null,null,4,"div",[["class","ngx-select__selected ui-select-match"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.Q(16777216,null,null,1,null,Pr)),r.U(3,802816,null,0,m,[r.E,r.B,r.n],{ngForOf:[0,"ngForOf"]},null),(e()(),r._15(-1,null,["\n "]))],function(e,t){e(t,3,0,t.component.optionsSelected)},null)}function Nr(e){return r._17(0,[(e()(),r.V(0,0,[[2,0],["input",1]],null,0,"input",[["autocapitalize","off"],["autocomplete","false"],["autocorrect","off"],["class","ngx-select__search form-control ui-select-search"],["role","combobox"],["spellcheck","false"],["type","text"]],[[8,"tabIndex",0],[8,"disabled",0],[8,"placeholder",0]],[[null,"keydown"],[null,"keyup"],[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"keydown"===t&&(o=!1!==i.inputKeyDown(n)&&o),"keyup"===t&&(o=!1!==i.inputKeyUp(n,r._6(e,0).value)&&o),"click"===t&&(o=!1!==i.inputClick(r._6(e,0).value)&&o),o},null,null))],null,function(e,t){var n=t.component;e(t,0,0,!1===n.multiple?-1:0,n.disabled,n.optionsSelected.length?"":n.placeholder)})}function Mr(e){return r._17(0,[(e()(),r.V(0,0,null,null,0,"div",[["class","divider dropdown-divider"]],null,null,null,null,null))],null,null)}function Rr(e){return r._17(0,[(e()(),r.V(0,0,null,null,1,"div",[["class","dropdown-header"]],null,null,null,null,null)),(e()(),r._15(1,null,["",""]))],null,function(e,t){e(t,1,0,t.parent.context.$implicit.label)})}function Fr(e){return r._17(0,[(e()(),r.V(0,0,[["choiceItem",1]],null,3,"a",[["class","ngx-select__item ui-select-choices-row dropdown-item"],["href","#"]],[[8,"innerHTML",1]],[[null,"mouseenter"],[null,"click"]],function(e,t,n){var r=!0,o=e.component;return"mouseenter"===t&&(r=!1!==o.optionActivate(e.context.$implicit)&&r),"click"===t&&(r=!1!==o.optionSelect(e.context.$implicit,n)&&r),r},null,null)),r.U(1,278528,null,0,v,[r.n,r.o,r.h,r.w],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),r._10(2,{"ngx-select__item_active active":0,"ngx-select__item_disabled disabled":1}),(e()(),r._15(-1,null,["\n "]))],function(e,t){e(t,1,0,"ngx-select__item ui-select-choices-row dropdown-item",e(t,2,0,t.component.isOptionActive(t.context.$implicit,r._6(t,0)),t.context.$implicit.disabled))},function(e,t){e(t,0,0,t.component.highlightOption(t.context.$implicit))})}function Lr(e){return r._17(0,[(e()(),r.V(0,0,null,null,11,"li",[["class","ngx-select__item-group"],["role","menuitem"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.Q(16777216,null,null,1,null,Mr)),r.U(3,16384,null,0,b,[r.E,r.B],{ngIf:[0,"ngIf"]},null),(e()(),r._15(-1,null,["\n "])),(e()(),r.Q(16777216,null,null,1,null,Rr)),r.U(6,16384,null,0,b,[r.E,r.B],{ngIf:[0,"ngIf"]},null),(e()(),r._15(-1,null,["\n\n "])),(e()(),r.Q(16777216,null,null,2,null,Fr)),r.U(9,802816,null,0,m,[r.E,r.B,r.n],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),r._8(10,1),(e()(),r._15(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,"optgroup"===t.context.$implicit.type&&t.context.index>0),e(t,6,0,"optgroup"===t.context.$implicit.type),e(t,9,0,t.context.$implicit.optionsFiltered||e(t,10,0,t.context.$implicit),n.trackByOption)},null)}function Br(e){return r._17(0,[(e()(),r.V(0,0,null,null,1,"li",[["class","ngx-select__item ngx-select__item_no-found dropdown-header"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n No results found\n "]))],null,null)}function Ur(e){return r._17(0,[r._13(402653184,1,{mainElRef:0}),r._13(671088640,2,{inputElRef:0}),r._13(402653184,3,{choiceMenuElRef:0}),(e()(),r.V(3,0,[[1,0],["main",1]],null,29,"div",[["class","ngx-select ui-select-container dropdown"]],[[8,"tabIndex",0]],[[null,"click"],[null,"focusin"],[null,"focus"],[null,"keydown"],[null,"keyup"]],function(e,t,n){var r=!0,o=e.component;return"click"===t&&(r=!1!==o.mainClicked(n)&&r),"focusin"===t&&(r=!1!==o.mainClicked(n)&&r),"focus"===t&&(r=!1!==o.focusToInput()&&r),"keydown"===t&&(r=!1!==o.inputKeyDown(n)&&r),"keyup"===t&&(r=!1!==o.mainKeyUp(n)&&r),r},null,null)),r.U(4,278528,null,0,v,[r.n,r.o,r.h,r.w],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),r._10(5,{"ngx-select_multiple ui-select-multiple form-control":0,"open show":1}),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(7,0,null,null,2,"div",[],null,null,null,null,null)),r.U(8,278528,null,0,v,[r.n,r.o,r.h,r.w],{ngClass:[0,"ngClass"]},null),r._10(9,{"ngx-select__disabled ui-disabled":0}),(e()(),r._15(-1,null,["\n\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.Q(16777216,null,null,1,null,Ir)),r.U(13,16384,null,0,b,[r.E,r.B],{ngIf:[0,"ngIf"]},null),(e()(),r._15(-1,null,["\n\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.Q(16777216,null,null,1,null,Dr)),r.U(17,16384,null,0,b,[r.E,r.B],{ngIf:[0,"ngIf"]},null),(e()(),r._15(-1,null,["\n\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.Q(16777216,null,null,1,null,Nr)),r.U(21,16384,null,0,b,[r.E,r.B],{ngIf:[0,"ngIf"]},null),(e()(),r._15(-1,null,["\n\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(24,0,[[3,0],["choiceMenu",1]],null,7,"ul",[["class","ngx-select__choices ui-select-choices dropdown-menu"],["role","menu"]],[[2,"show",null]],null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.Q(16777216,null,null,1,null,Lr)),r.U(27,802816,null,0,m,[r.E,r.B,r.n],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),r._15(-1,null,["\n "])),(e()(),r.Q(16777216,null,null,1,null,Br)),r.U(30,16384,null,0,b,[r.E,r.B],{ngIf:[0,"ngIf"]},null),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n\n"]))],function(e,t){var n=t.component;e(t,4,0,"ngx-select ui-select-container dropdown",e(t,5,0,!0===n.multiple,n.optionsOpened&&n.optionsFiltered.length)),e(t,8,0,e(t,9,0,n.disabled)),e(t,13,0,!1===n.multiple&&(!n.optionsOpened||n.noAutoComplete)),e(t,17,0,!0===n.multiple),e(t,21,0,n.checkInputVisibility()),e(t,27,0,n.optionsFiltered,n.trackByOption),e(t,30,0,!n.optionsFiltered.length)},function(e,t){var n=t.component;e(t,3,0,n.disabled?-1:0),e(t,24,0,n.optionsOpened)})}var Hr=function(){function e(){var e=this;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 pn,this._ngxDefaultTimeout=setTimeout(function(){e._ngxDefaultInterval=setInterval(function(){var t=Math.floor(Math.random()*(e.items.length-1));e._ngxDefault=e.items[t]},2e3)},2e3)}return e.prototype.ngOnDestroy=function(){clearTimeout(this._ngxDefaultTimeout),clearInterval(this._ngxDefaultInterval)},e.prototype.doNgxDefault=function(){return this._ngxDefault},e.prototype.inputTyped=function(e,t){console.log("SingleDemoComponent.inputTyped",e,t)},e.prototype.doFocus=function(){console.log("SingleDemoComponent.doFocus")},e.prototype.doBlur=function(){console.log("SingleDemoComponent.doBlur")},e.prototype.doOpen=function(){console.log("SingleDemoComponent.doOpen")},e.prototype.doClose=function(){console.log("SingleDemoComponent.doClose")},e.prototype.doSelect=function(e){console.log("SingleDemoComponent.doSelect",e)},e.prototype.doRemove=function(e){console.log("SingleDemoComponent.doRemove",e)},e}(),zr=r.T({encapsulation:2,styles:[],data:{}});function Gr(e){return r._17(0,[(e()(),r.V(0,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),r._15(-1,null,["Select a single city"])),(e()(),r._15(-1,null,["\n"])),(e()(),r.V(3,0,null,null,27,"div",[["class","example-block"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(5,0,null,null,24,"div",[["class","example-block__item"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(7,0,null,null,6,"ngx-select",[["placeholder","No city selected"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"typed"],[null,"focus"],[null,"blur"],[null,"open"],[null,"close"],[null,"select"],[null,"remove"],["document","focusin"],["document","click"]],function(e,t,n){var o=!0,i=e.component;return"document:focusin"===t&&(o=!1!==r._6(e,8).documentClick(n)&&o),"document:click"===t&&(o=!1!==r._6(e,8).documentClick(n)&&o),"typed"===t&&(o=!1!==i.inputTyped("ngx-select",n)&&o),"focus"===t&&(o=!1!==i.doFocus()&&o),"blur"===t&&(o=!1!==i.doBlur()&&o),"open"===t&&(o=!1!==i.doOpen()&&o),"close"===t&&(o=!1!==i.doClose()&&o),"select"===t&&(o=!1!==i.doSelect(n)&&o),"remove"===t&&(o=!1!==i.doRemove(n)&&o),o},Ur,Sr)),r.U(8,2408448,null,0,Tr,[wt,r.n],{items:[0,"items"],allowClear:[1,"allowClear"],placeholder:[2,"placeholder"],defaultValue:[3,"defaultValue"]},{typed:"typed",focus:"focus",blur:"blur",open:"open",close:"close",select:"select",remove:"remove"}),r._11(1024,null,Ut,function(e){return[e]},[Tr]),r.U(10,540672,null,0,kn,[[8,null],[8,null],[2,Ut]],{form:[0,"form"]},null),r._11(2048,null,$t,null,[kn]),r.U(12,16384,null,0,an,[$t],null,null),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(15,0,null,null,0,"p",[],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(17,0,null,null,5,"div",[["class","alert alert-secondary"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(19,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),r._15(20,null,["",""])),r._9(0,x,[]),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(24,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(26,0,null,null,1,"button",[["class","btn btn-primary"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0,o=e.component;return"click"===t&&(r=!1!==(o.ngxControl.disabled?o.ngxControl.enable():o.ngxControl.disable())&&r),r},null,null)),(e()(),r._15(27,null,["\n ","\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n"])),(e()(),r._15(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.items,!0,"No city selected",n.doNgxDefault()),e(t,10,0,n.ngxControl)},function(e,t){var n=t.component;e(t,7,0,r._6(t,12).ngClassUntouched,r._6(t,12).ngClassTouched,r._6(t,12).ngClassPristine,r._6(t,12).ngClassDirty,r._6(t,12).ngClassValid,r._6(t,12).ngClassInvalid,r._6(t,12).ngClassPending),e(t,20,0,r._16(t,20,0,r._6(t,21).transform(n.ngxControl.value))),e(t,27,0,n.ngxControl.disabled?"Enable":"Disable")})}var Wr=function(){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},Zr=r.T({encapsulation:2,styles:[],data:{}});function qr(e){return r._17(0,[(e()(),r.V(0,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),r._15(-1,null,["Select multiple cities"])),(e()(),r._15(-1,null,["\n"])),(e()(),r.V(3,0,null,null,27,"div",[["class","example-block"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(5,0,null,null,24,"div",[["class","example-block__item"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(7,0,null,null,6,"ngx-select",[["placeholder","No city selected"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],["document","focusin"],["document","click"]],function(e,t,n){var o=!0,i=e.component;return"document:focusin"===t&&(o=!1!==r._6(e,8).documentClick(n)&&o),"document:click"===t&&(o=!1!==r._6(e,8).documentClick(n)&&o),"ngModelChange"===t&&(o=!1!==(i.ngxValue=n)&&o),o},Ur,Sr)),r.U(8,2408448,null,0,Tr,[wt,r.n],{items:[0,"items"],multiple:[1,"multiple"],placeholder:[2,"placeholder"],disabled:[3,"disabled"]},null),r._11(1024,null,Ut,function(e){return[e]},[Tr]),r.U(10,671744,null,0,En,[[8,null],[8,null],[8,null],[2,Ut]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),r._11(2048,null,$t,null,[En]),r.U(12,16384,null,0,an,[$t],null,null),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(15,0,null,null,0,"p",[],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(17,0,null,null,5,"div",[["class","alert alert-secondary"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(19,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),r._15(20,null,["",""])),r._9(0,x,[]),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(24,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(26,0,null,null,1,"button",[["class","btn btn-primary"]],null,[[null,"click"]],function(e,t,n){var r=!0,o=e.component;return"click"===t&&(r=0!=(o.ngxDisabled=!o.ngxDisabled)&&r),r},null,null)),(e()(),r._15(27,null,["\n ","\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n"])),(e()(),r._15(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.items,!0,"No city selected",n.ngxDisabled),e(t,10,0,n.ngxDisabled,n.ngxValue)},function(e,t){var n=t.component;e(t,7,0,r._6(t,12).ngClassUntouched,r._6(t,12).ngClassTouched,r._6(t,12).ngClassPristine,r._6(t,12).ngClassDirty,r._6(t,12).ngClassValid,r._6(t,12).ngClassInvalid,r._6(t,12).ngClassPending),e(t,20,0,r._16(t,20,0,r._6(t,21).transform(n.ngxValue))),e(t,27,0,n.ngxDisabled?"Enable":"Disable")})}var $r=function(){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},Qr=r.T({encapsulation:2,styles:[],data:{}});function Kr(e){return r._17(0,[(e()(),r.V(0,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),r._15(-1,null,["Select a city by country"])),(e()(),r._15(-1,null,["\n"])),(e()(),r.V(3,0,null,null,27,"div",[["class","example-block"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(5,0,null,null,24,"div",[["class","example-block__item"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(7,0,null,null,6,"ngx-select",[["optGroupLabelField","text"],["optGroupOptionsField","children"],["optionTextField","text"],["optionValueField","id"],["placeholder","No city selected"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],["document","focusin"],["document","click"]],function(e,t,n){var o=!0,i=e.component;return"document:focusin"===t&&(o=!1!==r._6(e,8).documentClick(n)&&o),"document:click"===t&&(o=!1!==r._6(e,8).documentClick(n)&&o),"ngModelChange"===t&&(o=!1!==(i.ngxValue=n)&&o),o},Ur,Sr)),r.U(8,2408448,null,0,Tr,[wt,r.n],{items:[0,"items"],optionValueField:[1,"optionValueField"],optionTextField:[2,"optionTextField"],optGroupLabelField:[3,"optGroupLabelField"],optGroupOptionsField:[4,"optGroupOptionsField"],allowClear:[5,"allowClear"],placeholder:[6,"placeholder"],disabled:[7,"disabled"]},null),r._11(1024,null,Ut,function(e){return[e]},[Tr]),r.U(10,671744,null,0,En,[[8,null],[8,null],[8,null],[2,Ut]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),r._11(2048,null,$t,null,[En]),r.U(12,16384,null,0,an,[$t],null,null),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(15,0,null,null,0,"p",[],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(17,0,null,null,5,"div",[["class","alert alert-secondary"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(19,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),r._15(20,null,["",""])),r._9(0,x,[]),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(24,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(26,0,null,null,1,"button",[["class","btn btn-primary"]],null,[[null,"click"]],function(e,t,n){var r=!0,o=e.component;return"click"===t&&(r=0!=(o.ngxDisabled=!o.ngxDisabled)&&r),r},null,null)),(e()(),r._15(27,null,["\n ","\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n"])),(e()(),r._15(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.items,"id","text","text","children",!0,"No city selected",n.ngxDisabled),e(t,10,0,n.ngxDisabled,n.ngxValue)},function(e,t){var n=t.component;e(t,7,0,r._6(t,12).ngClassUntouched,r._6(t,12).ngClassTouched,r._6(t,12).ngClassPristine,r._6(t,12).ngClassDirty,r._6(t,12).ngClassValid,r._6(t,12).ngClassInvalid,r._6(t,12).ngClassPending),e(t,20,0,r._16(t,20,0,r._6(t,21).transform(n.ngxValue))),e(t,27,0,n.ngxDisabled?"Enable":"Disable")})}var Yr=[{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"}],Jr=function(){function e(){this.items=[],this.ngxValue=[],this.ngxDisabled=!1}return e.prototype.ngOnInit=function(){var e=this;Yr.forEach(function(t){e.items.push({id:t.hex,text:""+t.name+" ("+t.hex+")",disabled:t.disabled})})},e}(),Xr=r.T({encapsulation:2,styles:["colorbox, .colorbox {\n display: inline-block;\n height: 14px;\n width: 14px;\n margin-right: 4px;\n border: 1px solid #000;\n }"],data:{}});function eo(e){return r._17(0,[(e()(),r.V(0,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),r._15(-1,null,["Select a color"])),(e()(),r._15(-1,null,["\n"])),(e()(),r.V(3,0,null,null,27,"div",[["class","example-block"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(5,0,null,null,24,"div",[["class","example-block__item"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(7,0,null,null,6,"ngx-select",[["placeholder","No city selected"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],["document","focusin"],["document","click"]],function(e,t,n){var o=!0,i=e.component;return"document:focusin"===t&&(o=!1!==r._6(e,8).documentClick(n)&&o),"document:click"===t&&(o=!1!==r._6(e,8).documentClick(n)&&o),"ngModelChange"===t&&(o=!1!==(i.ngxValue=n)&&o),o},Ur,Sr)),r.U(8,2408448,null,0,Tr,[wt,r.n],{items:[0,"items"],allowClear:[1,"allowClear"],placeholder:[2,"placeholder"],disabled:[3,"disabled"]},null),r._11(1024,null,Ut,function(e){return[e]},[Tr]),r.U(10,671744,null,0,En,[[8,null],[8,null],[8,null],[2,Ut]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),r._11(2048,null,$t,null,[En]),r.U(12,16384,null,0,an,[$t],null,null),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(15,0,null,null,0,"p",[],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(17,0,null,null,5,"div",[["class","alert alert-secondary"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(19,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),r._15(20,null,["",""])),r._9(0,x,[]),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(24,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(26,0,null,null,1,"button",[["class","btn btn-primary"]],null,[[null,"click"]],function(e,t,n){var r=!0,o=e.component;return"click"===t&&(r=0!=(o.ngxDisabled=!o.ngxDisabled)&&r),r},null,null)),(e()(),r._15(27,null,["\n ","\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n"])),(e()(),r._15(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.items,!0,"No city selected",n.ngxDisabled),e(t,10,0,n.ngxDisabled,n.ngxValue)},function(e,t){var n=t.component;e(t,7,0,r._6(t,12).ngClassUntouched,r._6(t,12).ngClassTouched,r._6(t,12).ngClassPristine,r._6(t,12).ngClassDirty,r._6(t,12).ngClassValid,r._6(t,12).ngClassInvalid,r._6(t,12).ngClassPending),e(t,20,0,r._16(t,20,0,r._6(t,21).transform(n.ngxValue))),e(t,27,0,n.ngxDisabled?"Enable":"Disable")})}var to=function(){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 e=[],t=function(t){n._items.forEach(function(n){return e.push(t+" "+n)})},n=this,r=1;r<=20;r++)t(r);this.items=e},no=r.T({encapsulation:2,styles:[],data:{}});function ro(e){return r._17(0,[(e()(),r.V(0,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),r._15(1,null,["Select a single city with "," items"])),(e()(),r._15(-1,null,["\n"])),(e()(),r.V(3,0,null,null,27,"div",[["class","example-block"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(5,0,null,null,24,"div",[["class","example-block__item"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(7,0,null,null,6,"ngx-select",[["placeholder","No city selected"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],["document","focusin"],["document","click"]],function(e,t,n){var o=!0,i=e.component;return"document:focusin"===t&&(o=!1!==r._6(e,8).documentClick(n)&&o),"document:click"===t&&(o=!1!==r._6(e,8).documentClick(n)&&o),"ngModelChange"===t&&(o=!1!==(i.ngxValue=n)&&o),o},Ur,Sr)),r.U(8,2408448,null,0,Tr,[wt,r.n],{items:[0,"items"],allowClear:[1,"allowClear"],placeholder:[2,"placeholder"],noAutoComplete:[3,"noAutoComplete"],disabled:[4,"disabled"]},null),r._11(1024,null,Ut,function(e){return[e]},[Tr]),r.U(10,671744,null,0,En,[[8,null],[8,null],[8,null],[2,Ut]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),r._11(2048,null,$t,null,[En]),r.U(12,16384,null,0,an,[$t],null,null),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(15,0,null,null,0,"p",[],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(17,0,null,null,5,"div",[["class","alert alert-secondary"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(19,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),r._15(20,null,["",""])),r._9(0,x,[]),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(24,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(26,0,null,null,1,"button",[["class","btn btn-primary"]],null,[[null,"click"]],function(e,t,n){var r=!0,o=e.component;return"click"===t&&(r=0!=(o.ngxDisabled=!o.ngxDisabled)&&r),r},null,null)),(e()(),r._15(27,null,["\n ","\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.items,!0,"No city selected",!0,n.ngxDisabled),e(t,10,0,n.ngxDisabled,n.ngxValue)},function(e,t){var n=t.component;e(t,1,0,n.items.length),e(t,7,0,r._6(t,12).ngClassUntouched,r._6(t,12).ngClassTouched,r._6(t,12).ngClassPristine,r._6(t,12).ngClassDirty,r._6(t,12).ngClassValid,r._6(t,12).ngClassInvalid,r._6(t,12).ngClassPending),e(t,20,0,r._16(t,20,0,r._6(t,21).transform(n.ngxValue))),e(t,27,0,n.ngxDisabled?"Enable":"Disable")})}var oo=n("dLcb"),io={single:{heading:"Single",ts:n("aoq2"),html:n("OeOf")},multiple:{heading:"Multiple",ts:n("+hR6"),html:n("eGAc")},children:{heading:"Children",ts:n("1oDy"),html:n("tVn+")},rich:{heading:"Rich",ts:n("C4qH"),html:n("0Mtu")},noAutoComplete:{heading:"noAutoComplete",ts:n("qH3Z"),html:n("nthD")}},lo=function(){return function(){this.currentHeading="Single",this.tabDesc=io,this.doc=oo}}(),uo=r.T({encapsulation:0,styles:["[_nghost-%COMP%] {\n display: block\n }"],data:{}});function ao(e){return r._17(0,[(e()(),r._15(-1,null,["\n "])),(e()(),r.V(1,0,null,null,68,"section",[],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(3,0,null,null,57,"tabset",[],[[2,"tab-container",null]],null,null,j,A)),r.U(4,180224,null,0,V,[k,r.w],null,null),(e()(),r._15(-1,0,["\n "])),(e()(),r.V(6,0,null,0,9,"tab",[["heading","Single"]],[[1,"id",0],[2,"active",null],[2,"tab-pane",null]],null,null,null,null)),r.U(7,212992,null,0,I,[V,r.h,r.w],{heading:[0,"heading"]},null),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(9,0,null,null,5,"sample-section",[],null,null,null,N,D)),r.U(10,49152,null,0,P,[],{desc:[0,"desc"]},null),(e()(),r._15(-1,0,["\n "])),(e()(),r.V(12,0,null,0,1,"single-demo",[],null,null,null,Gr,zr)),r.U(13,180224,null,0,Hr,[],null,null),(e()(),r._15(-1,0,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,0,["\n "])),(e()(),r.V(17,0,null,0,9,"tab",[["heading","Multiple"]],[[1,"id",0],[2,"active",null],[2,"tab-pane",null]],null,null,null,null)),r.U(18,212992,null,0,I,[V,r.h,r.w],{heading:[0,"heading"]},null),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(20,0,null,null,5,"sample-section",[],null,null,null,N,D)),r.U(21,49152,null,0,P,[],{desc:[0,"desc"]},null),(e()(),r._15(-1,0,["\n "])),(e()(),r.V(23,0,null,0,1,"multiple-demo",[],null,null,null,qr,Zr)),r.U(24,49152,null,0,Wr,[],null,null),(e()(),r._15(-1,0,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,0,["\n "])),(e()(),r.V(28,0,null,0,9,"tab",[["heading","Children"]],[[1,"id",0],[2,"active",null],[2,"tab-pane",null]],null,null,null,null)),r.U(29,212992,null,0,I,[V,r.h,r.w],{heading:[0,"heading"]},null),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(31,0,null,null,5,"sample-section",[],null,null,null,N,D)),r.U(32,49152,null,0,P,[],{desc:[0,"desc"]},null),(e()(),r._15(-1,0,["\n "])),(e()(),r.V(34,0,null,0,1,"children-demo",[],null,null,null,Kr,Qr)),r.U(35,49152,null,0,$r,[],null,null),(e()(),r._15(-1,0,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,0,["\n "])),(e()(),r.V(39,0,null,0,9,"tab",[["heading","Rich"]],[[1,"id",0],[2,"active",null],[2,"tab-pane",null]],null,null,null,null)),r.U(40,212992,null,0,I,[V,r.h,r.w],{heading:[0,"heading"]},null),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(42,0,null,null,5,"sample-section",[],null,null,null,N,D)),r.U(43,49152,null,0,P,[],{desc:[0,"desc"]},null),(e()(),r._15(-1,0,["\n "])),(e()(),r.V(45,0,null,0,1,"rich-demo",[],null,null,null,eo,Xr)),r.U(46,114688,null,0,Jr,[],null,null),(e()(),r._15(-1,0,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,0,["\n "])),(e()(),r.V(50,0,null,0,9,"tab",[["heading","No autocomplete"]],[[1,"id",0],[2,"active",null],[2,"tab-pane",null]],null,null,null,null)),r.U(51,212992,null,0,I,[V,r.h,r.w],{heading:[0,"heading"]},null),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(53,0,null,null,5,"sample-section",[],null,null,null,N,D)),r.U(54,49152,null,0,P,[],{desc:[0,"desc"]},null),(e()(),r._15(-1,0,["\n "])),(e()(),r.V(56,0,null,0,1,"no-autocomplete-demo",[],null,null,null,ro,no)),r.U(57,49152,null,0,to,[],null,null),(e()(),r._15(-1,0,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,0,["\n "])),(e()(),r._15(-1,null,["\n\n "])),(e()(),r.V(62,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),r._15(-1,null,["Documentation"])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(65,0,null,null,3,"div",[["class","card card-block panel panel-default panel-body"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(67,0,null,null,0,"div",[["class","card-body doc-api"]],[[8,"innerHTML",1]],null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,7,0,"Single"),e(t,10,0,n.tabDesc.single),e(t,18,0,"Multiple"),e(t,21,0,n.tabDesc.multiple),e(t,29,0,"Children"),e(t,32,0,n.tabDesc.children),e(t,40,0,"Rich"),e(t,43,0,n.tabDesc.rich),e(t,46,0),e(t,51,0,"No autocomplete"),e(t,54,0,n.tabDesc.noAutoComplete)},function(e,t){var n=t.component;e(t,3,0,r._6(t,4).clazz),e(t,6,0,r._6(t,7).id,r._6(t,7).active,r._6(t,7).addClass),e(t,17,0,r._6(t,18).id,r._6(t,18).active,r._6(t,18).addClass),e(t,28,0,r._6(t,29).id,r._6(t,29).active,r._6(t,29).addClass),e(t,39,0,r._6(t,40).id,r._6(t,40).active,r._6(t,40).addClass),e(t,50,0,r._6(t,51).id,r._6(t,51).active,r._6(t,51).addClass),e(t,67,0,n.doc)})}var so=r.T({encapsulation:0,styles:[[""]],data:{}});function co(e){return r._17(0,[(e()(),r.V(0,0,null,null,36,"main",[["class","bd-pageheader"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(2,0,null,null,33,"div",[["class","container"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(4,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),r._15(5,null,["ngx-select-ex v",""])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(7,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r._15(-1,null,["Native Angular2 component for Select"])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(10,0,null,null,8,"p",[],null,null,null,null,null)),(e()(),r._15(-1,null,["\n Compatible with "])),(e()(),r.V(12,0,null,null,1,"a",[["class","badge badge-light"],["href","https://getbootstrap.com/docs/3.3/"],["target","_blank"]],null,null,null,null,null)),(e()(),r._15(-1,null,["Bootstrap\n 3"])),(e()(),r._15(-1,null,[" and\n "])),(e()(),r.V(15,0,null,null,2,"b",[],null,null,null,null,null)),(e()(),r.V(16,0,null,null,1,"a",[["class","badge badge-light"],["href","https://getbootstrap.com/"],["target","_blank"]],null,null,null,null,null)),(e()(),r._15(-1,null,["Bootstrap 4"])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(20,0,null,null,1,"a",[["class","btn btn-primary"],["href","https://github.com/optimistex/ngx-select-ex"]],null,null,null,null,null)),(e()(),r._15(-1,null,["View on GitHub"])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(23,0,null,null,11,"div",[["class","row"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(25,0,null,null,3,"div",[["class","col-lg-1"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(27,0,null,null,0,"iframe",[["frameborder","0"],["height","20px"],["scrolling","0"],["src","https://ghbtns.com/github-btn.html?user=optimistex&repo=ngx-select-ex&type=star&count=true"],["width","170px"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(30,0,null,null,3,"div",[["class","col-lg-1"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(32,0,null,null,0,"iframe",[["frameborder","0"],["height","20px"],["scrolling","0"],["src","https://ghbtns.com/github-btn.html?user=optimistex&repo=ngx-select-ex&type=fork&count=true"],["width","170px"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n"])),(e()(),r._15(-1,null,["\n\n"])),(e()(),r.V(38,0,null,null,6,"div",[["class","container"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(40,0,null,null,0,"section",[["id","getting-started"]],[[8,"innerHTML",1]],null,null,null,null)),(e()(),r._15(-1,null,["\n\n "])),(e()(),r.V(42,0,null,null,1,"select-section",[],null,null,null,ao,uo)),r.U(43,49152,null,0,lo,[],null,null),(e()(),r._15(-1,null,["\n"])),(e()(),r._15(-1,null,["\n\n"])),(e()(),r.V(46,0,null,null,12,"footer",[["class","footer"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(48,0,null,null,9,"div",[["class","container"]],null,null,null,null,null)),(e()(),r._15(-1,null,["\n "])),(e()(),r.V(50,0,null,null,6,"p",[["class","text-muted text-center"]],null,null,null,null,null)),(e()(),r.V(51,0,null,null,1,"a",[["href","https://github.com/optimistex/ngx-select-ex"]],null,null,null,null,null)),(e()(),r._15(-1,null,["ngx-select-ex"])),(e()(),r._15(-1,null,[" is\n maintained by "])),(e()(),r.V(54,0,null,null,1,"a",[["href","https://github.com/optimistex"]],null,null,null,null,null)),(e()(),r._15(-1,null,["optimistex"])),(e()(),r._15(-1,null,["."])),(e()(),r._15(-1,null,["\n "])),(e()(),r._15(-1,null,["\n"])),(e()(),r._15(-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,5,0,null==n.p?null:n.p.version),e(t,40,0,n.gettingStarted)})}var fo=r.R("app-demo",u,function(e){return r._17(0,[(e()(),r.V(0,0,null,null,1,"app-demo",[],null,null,null,co,so)),r.U(1,1097728,null,0,u,[],null,null)],null,null)},{},{},[]),po=function(){},ho=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[k]}},e}(),go=(Object(r.J)(function(){return go}),function(){function e(){this.btnCheckboxTrue=!0,this.btnCheckboxFalse=!1,this.state=!1,this.onChange=Function.prototype,this.onTouched=Function.prototype}return e.prototype.onClick=function(){this.isDisabled||(this.toggle(!this.state),this.onChange(this.value))},e.prototype.ngOnInit=function(){this.toggle(this.trueValue===this.value)},Object.defineProperty(e.prototype,"trueValue",{get:function(){return"undefined"==typeof this.btnCheckboxTrue||this.btnCheckboxTrue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"falseValue",{get:function(){return"undefined"!=typeof this.btnCheckboxFalse&&this.btnCheckboxFalse},enumerable:!0,configurable:!0}),e.prototype.toggle=function(e){this.state=e,this.value=this.state?this.trueValue:this.falseValue},e.prototype.writeValue=function(e){this.state=this.trueValue===e,this.value=e?this.trueValue:this.falseValue},e.prototype.setDisabledState=function(e){this.isDisabled=e},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e}()),vo=(Object(r.J)(function(){return vo}),function(){function e(e,t){this.el=e,this.cdr=t,this.onChange=Function.prototype,this.onTouched=Function.prototype}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this._value=e,this.cdr.markForCheck()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e}()),yo=(Object(r.J)(function(){return yo}),function(){function e(e,t,n,r){this.el=e,this.cdr=t,this.group=n,this.renderer=r,this.onChange=Function.prototype,this.onTouched=Function.prototype}return Object.defineProperty(e.prototype,"value",{get:function(){return this.group?this.group.value:this._value},set:function(e){this.group?this.group.value=e:this._value=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=e,this.setDisabledState(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this.btnRadio===this.value},enumerable:!0,configurable:!0}),e.prototype.onClick=function(){this.el.nativeElement.attributes.disabled||!this.uncheckable&&this.btnRadio===this.value||(this.value=this.uncheckable&&this.btnRadio===this.value?void 0:this.btnRadio,this._onChange(this.value))},e.prototype.ngOnInit=function(){this.uncheckable="undefined"!=typeof this.uncheckable},e.prototype.onBlur=function(){this.onTouched()},e.prototype._onChange=function(e){if(this.group)return this.group.onTouched(),void this.group.onChange(e);this.onTouched(),this.onChange(e)},e.prototype.writeValue=function(e){this.value=e,this.cdr.markForCheck()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){e?this.renderer.setAttribute(this.el.nativeElement,"disabled","disabled"):this.renderer.removeAttribute(this.el.nativeElement,"disabled")},e}()),mo=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[]}},e}(),_o=r.S(o,[u],function(e){return r._2([r._3(512,r.g,r.O,[[8,[fo]],[3,r.g],r.q]),r._3(5120,r.p,r._12,[[3,r.p]]),r._3(4608,h,g,[r.p,[2,p]]),r._3(4608,r.f,r.f,[]),r._3(5120,r.a,r.X,[]),r._3(5120,r.n,r._4,[]),r._3(5120,r.o,r._7,[]),r._3(4608,wt,xt,[E]),r._3(6144,r.z,null,[wt]),r._3(4608,Ze,qe,[]),r._3(5120,_e,function(e,t,n,r,o){return[new Ge(e,t),new Ye(n),new $e(r,o)]},[E,r.s,E,E,Ze]),r._3(4608,be,be,[_e,r.s]),r._3(135680,Ce,Ce,[E]),r._3(4608,Se,Se,[be,Ce]),r._3(6144,r.x,null,[Se]),r._3(6144,xe,null,[Ce]),r._3(4608,r.C,r.C,[r.s]),r._3(4608,fe,fe,[E]),r._3(4608,ge,ge,[E]),r._3(4608,Qt,Qt,[]),r._3(4608,Vn,Vn,[]),r._3(4608,k,k,[]),r._3(512,C,C,[]),r._3(1024,r.i,jt,[]),r._3(1024,r.b,function(e){return[(t=e,ve("probe",me),ve("coreTokens",Object(a.a)({},ye,(t||[]).reduce(function(e,t){return e[t.name]=t.token,e},{}))),function(){return me})];var t},[[2,r.r]]),r._3(512,r.c,r.c,[[2,r.b]]),r._3(131584,r.e,r.e,[r.s,r.P,r.m,r.i,r.g,r.c]),r._3(512,r.d,r.d,[r.e]),r._3(512,It,It,[[3,It]]),r._3(512,An,An,[]),r._3(512,Tn,Tn,[]),r._3(512,Sn,Sn,[]),r._3(512,po,po,[]),r._3(512,ho,ho,[]),r._3(512,mo,mo,[]),r._3(512,o,o,[])])});Object(r.I)(),St().bootstrapModuleFactory(_o).catch(function(e){return console.log(e)})},dLcb:function(e,t){e.exports='

Usage

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

    \n
     npm i ngx-select-ex --save\n
    \n

    For usage with Angular 4 install deprecated version 3.1.2:

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

    \n
     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 }\n
    \n
  4. \n
  5. Include Bootstrap styles.\n For example add to your index.html

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

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

    \n
  10. \n
\n

API

\n

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

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
InputTypeDefaultDescription
[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.
optionValueFieldstring'id'Provide an opportunity to change the name an id property of objects in the items
optionTextFieldstring'text'Provide an opportunity to change the name a text property of objects in the items
optGroupLabelFieldstring'label'Provide an opportunity to change the name a label property of objects with an options property in the items
optGroupOptionsFieldstring'options'Provide an opportunity to change the name of an options property of objects in the items
[multiple]booleanfalseMode of this component. If set true user can select more than one option
[allowClear]booleanfalseSet 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]booleanfalseSet to true Set to true to hide the search input. This option only applies to single-value inputs
[disabled]booleanfalseWhen true, it specifies that the component should be disabled
[defaultValue]any[][]Use to set default value
autoSelectSingleOptionbooleanfalseAuto select a non disabled single option
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
OutputDescription
(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.
\n

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

\n
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}\n
\n

Styles and customization

\n

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

\n

List of styles for customization:

\n
    \n
  • ngx-select - Main class of the component.
  • \n
  • ngx-select_multiple - Modifier of the multiple mode. It's available when the property multiple is true.
  • \n
  • ngx-select__disabled - Layer for the disabled mode.
  • \n
  • ngx-select__selected - The common container for displaying selected items.
  • \n
  • ngx-select__toggle - The toggle for single mode. It's available when the property multiple is false.
  • \n
  • ngx-select__placeholder - The placeholder item. It's available when the property multiple is false.
  • \n
  • ngx-select__selected-single - The selected item with single mode. It's available when the property multiple is false.
  • \n
  • ngx-select__selected-plural - The multiple selected item. It's available when the property multiple is true.
  • \n
  • 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.
  • \n
  • ngx-select__toggle-caret - The drop-down button of the single mode. It's available when the property multiple is false.
  • \n
  • ngx-select__clear - The button clear.
  • \n
  • ngx-select__clear-icon - The cross icon.
  • \n
  • ngx-select__search - The input field for full text lives searching.
  • \n
  • ngx-select__choices - The common container of items.
  • \n
  • ngx-select__item-group - The group of items.
  • \n
  • ngx-select__item - An item.
  • \n
  • ngx-select__item_disabled - Modifier of a disabled item.
  • \n
  • ngx-select__item_active - Modifier of the activated item.
  • \n
\n'},eGAc:function(e,t){e.exports='

Select multiple cities

\n
\n
\n \n \n

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
\n'},fRUx:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},grVA:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r={closed:!0,next:function(e){},error:function(e){throw e},complete:function(){}}},kQVV:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){return e&&"number"==typeof e.length}},ksPu:function(e,t){e.exports={name:"ngx-select-ex",version:"3.3.7",description:"Angular based replacement for select boxes",license:"MIT",private:!1,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 && npm run build.package && npm run build.demo && git add -A","build.demo":"ng build --prod","build.package":"ng-packagr -p ng-package.json",lint:"ng lint",ng:"ng",precommit:"npm run test",release:"standard-version --commit-all",start:"ng serve -op runtime",test:"ng test --watch false","test-coverage":"ng test --watch false --code-coverage"},"standard-version":{scripts:{postbump:"npm run build"}},keywords:["ngx-select","ngx-select-ex","angular","angular2","angular4","angular5","select","select2","ui-select","multiselect","multi-select"],peerDependencies:{"@angular/core":">5.0.0","@angular/common":">5.0.0","@angular/platform-browser":">5.0.0"},devDependencies:{"@angular/animations":"^5.2.0","@angular/cli":"1.6.7","@angular/common":"^5.2.0","@angular/compiler":"^5.2.0","@angular/compiler-cli":"^5.2.0","@angular/core":"^5.2.0","@angular/forms":"^5.2.0","@angular/http":"^5.2.0","@angular/language-service":"^5.2.0","@angular/platform-browser":"^5.2.0","@angular/platform-browser-dynamic":"^5.2.0","@angular/router":"^5.2.0","@types/jasmine":"~2.8.3","@types/jasminewd2":"~2.0.2","@types/marked":"^0.3.0","@types/node":"~6.0.60","@types/webpack":"^3.8.4",codecov:"^3.0.0",codelyzer:"^4.0.1",commitizen:"^2.9.6","core-js":"^2.4.1","cz-conventional-changelog":"^2.1.0","escape-string-regexp":"^1.0.5","html-loader":"^0.5.5",husky:"^0.14.3","jasmine-core":"~2.8.0","jasmine-spec-reporter":"~4.2.1",karma:"~2.0.0","karma-chrome-launcher":"~2.2.0","karma-coverage-istanbul-reporter":"^1.2.1","karma-jasmine":"~1.1.0","karma-jasmine-html-reporter":"^0.2.2",lodash:"^4.17.4","markdown-loader":"^2.0.2","ng-packagr":"^2.0.0","ngx-bootstrap":"^2.0.2",protractor:"~5.1.2",rxjs:"^5.5.6","standard-version":"^4.3.0","ts-node":"~4.1.0",tslint:"~5.9.1",typescript:"~2.5.3","zone.js":"^0.8.19"},config:{commitizen:{path:"cz-conventional-changelog"}},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"}]}},lI6h:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("6Xbx"),o=function(e){function t(){e.apply(this,arguments)}return Object(r.b)(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(n("E9/g").a)},mHG6:function(e,t,n){"use strict";t.a=function(e){return e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}},mz3w:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){var t,r=n("xIGM").a.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}()},nthD:function(e,t){e.exports='

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

\n
\n
\n \n \n

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
'},qH3Z:function(e,t){e.exports="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"},qLnt:function(e,t,n){"use strict";var r=n("1j/l"),o=n("NGRF"),i=n("B1iP"),l=n("8ofh"),u=n("NePw"),a=n("6Xbx"),s=function(e){function t(t){e.call(this),this.errors=t;var n=Error.call(this,t?t.length+" errors occurred during unsubscription:\n "+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return Object(a.b)(t,e),t}(Error);n.d(t,"a",function(){return c});var c=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,a=this._parents,c=this._unsubscribe,d=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var p=-1,h=a?a.length:0;n;)n.remove(this),n=++p\n \n \n\n'},vyOh:function(e,t,n){"use strict";var r=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(r,"\\$&")}},wDkl:function(e,t){e.exports='

Getting started

\n

First of all, Welcome!

\n'},wP3s:function(e,t,n){"use strict";t.a=function(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return"number"==typeof t&&(n=t,t=null),r.lift(new l(e,t,n))}};var r=n("6Xbx"),o=n("qgI0"),i=n("lI6h"),l=function(){function e(e,t,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=e,this.resultSelector=t,this.concurrent=n}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.project,this.resultSelector,this.concurrent))},e}(),u=function(e){function t(t,n,r,o){void 0===o&&(o=Number.POSITIVE_INFINITY),e.call(this,t),this.project=n,this.resultSelector=r,this.concurrent=o,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return Object(r.b)(t,e),t.prototype._next=function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(i.a)},xIGM:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return i});var r="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=r||"undefined"!=typeof e&&e||o}).call(t,n("fRUx"))},xrDH:function(e,t,n){(function(e,r){var o;(function(){var i,l=200,u="Expected a function",a="__lodash_placeholder__",s=1,c=2,f=4,d=1,p=2,h=1,g=2,v=4,y=8,m=16,_=32,b=64,w=128,x=256,C=512,E=800,O=16,k=1/0,V=9007199254740991,A=1.7976931348623157e308,T=NaN,S=4294967295,j=S-1,I=S>>>1,P=[["ary",w],["bind",h],["bindKey",g],["curry",y],["curryRight",m],["flip",C],["partial",_],["partialRight",b],["rearg",x]],D="[object Arguments]",N="[object Array]",M="[object AsyncFunction]",R="[object Boolean]",F="[object Date]",L="[object DOMException]",B="[object Error]",U="[object Function]",H="[object GeneratorFunction]",z="[object Map]",G="[object Number]",W="[object Null]",Z="[object Object]",q="[object Proxy]",$="[object RegExp]",Q="[object Set]",K="[object String]",Y="[object Symbol]",J="[object Undefined]",X="[object WeakMap]",ee="[object ArrayBuffer]",te="[object DataView]",ne="[object Float32Array]",re="[object Float64Array]",oe="[object Int8Array]",ie="[object Int16Array]",le="[object Int32Array]",ue="[object Uint8Array]",ae="[object Uint8ClampedArray]",se="[object Uint16Array]",ce="[object Uint32Array]",fe=/\b__p \+= '';/g,de=/\b(__p \+=) '' \+/g,pe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,he=/&(?:amp|lt|gt|quot|#39);/g,ge=/[&<>"']/g,ve=RegExp(he.source),ye=RegExp(ge.source),me=/<%-([\s\S]+?)%>/g,_e=/<%([\s\S]+?)%>/g,be=/<%=([\s\S]+?)%>/g,we=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xe=/^\w*$/,Ce=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ee=/[\\^$.*+?()[\]{}|]/g,Oe=RegExp(Ee.source),ke=/^\s+|\s+$/g,Ve=/^\s+/,Ae=/\s+$/,Te=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Se=/\{\n\/\* \[wrapped with (.+)\] \*/,je=/,? & /,Ie=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Pe=/\\(\\)?/g,De=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ne=/\w*$/,Me=/^[-+]0x[0-9a-f]+$/i,Re=/^0b[01]+$/i,Fe=/^\[object .+?Constructor\]$/,Le=/^0o[0-7]+$/i,Be=/^(?:0|[1-9]\d*)$/,Ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,He=/($^)/,ze=/['\n\r\u2028\u2029\\]/g,Ge="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",We="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ze="["+We+"]",qe="["+Ge+"]",$e="\\d+",Qe="[a-z\\xdf-\\xf6\\xf8-\\xff]",Ke="[^\\ud800-\\udfff"+We+$e+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Ye="\\ud83c[\\udffb-\\udfff]",Je="[^\\ud800-\\udfff]",Xe="(?:\\ud83c[\\udde6-\\uddff]){2}",et="[\\ud800-\\udbff][\\udc00-\\udfff]",tt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",nt="(?:"+Qe+"|"+Ke+")",rt="(?:"+tt+"|"+Ke+")",ot="(?:"+qe+"|"+Ye+")?",it="[\\ufe0e\\ufe0f]?"+ot+"(?:\\u200d(?:"+[Je,Xe,et].join("|")+")[\\ufe0e\\ufe0f]?"+ot+")*",lt="(?:"+["[\\u2700-\\u27bf]",Xe,et].join("|")+")"+it,ut="(?:"+[Je+qe+"?",qe,Xe,et,"[\\ud800-\\udfff]"].join("|")+")",at=RegExp("['\u2019]","g"),st=RegExp(qe,"g"),ct=RegExp(Ye+"(?="+Ye+")|"+ut+it,"g"),ft=RegExp([tt+"?"+Qe+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[Ze,tt,"$"].join("|")+")",rt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[Ze,tt+nt,"$"].join("|")+")",tt+"?"+nt+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",tt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$e,lt].join("|"),"g"),dt=RegExp("[\\u200d\\ud800-\\udfff"+Ge+"\\ufe0e\\ufe0f]"),pt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ht=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],gt=-1,vt={};vt[ne]=vt[re]=vt[oe]=vt[ie]=vt[le]=vt[ue]=vt[ae]=vt[se]=vt[ce]=!0,vt[D]=vt[N]=vt[ee]=vt[R]=vt[te]=vt[F]=vt[B]=vt[U]=vt[z]=vt[G]=vt[Z]=vt[$]=vt[Q]=vt[K]=vt[X]=!1;var yt={};yt[D]=yt[N]=yt[ee]=yt[te]=yt[R]=yt[F]=yt[ne]=yt[re]=yt[oe]=yt[ie]=yt[le]=yt[z]=yt[G]=yt[Z]=yt[$]=yt[Q]=yt[K]=yt[Y]=yt[ue]=yt[ae]=yt[se]=yt[ce]=!0,yt[B]=yt[U]=yt[X]=!1;var mt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_t=parseFloat,bt=parseInt,wt="object"==typeof e&&e&&e.Object===Object&&e,xt="object"==typeof self&&self&&self.Object===Object&&self,Ct=wt||xt||Function("return this")(),Et="object"==typeof t&&t&&!t.nodeType&&t,Ot=Et&&"object"==typeof r&&r&&!r.nodeType&&r,kt=Ot&&Ot.exports===Et,Vt=kt&&wt.process,At=function(){try{return Vt&&Vt.binding&&Vt.binding("util")}catch(e){}}(),Tt=At&&At.isArrayBuffer,St=At&&At.isDate,jt=At&&At.isMap,It=At&&At.isRegExp,Pt=At&&At.isSet,Dt=At&&At.isTypedArray;function Nt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Mt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function Ut(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function cn(e,t){for(var n=e.length;n--&&Kt(t,e[n],0)>-1;);return n}var fn=tn({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),dn=tn({"&":"&","<":"<",">":">",'"':""","'":"'"});function pn(e){return"\\"+mt[e]}function hn(e){return dt.test(e)}function gn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function vn(e,t){return function(n){return e(t(n))}}function yn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"}),En=function e(t){var n,r=(t=null==t?Ct:En.defaults(Ct.Object(),t,En.pick(Ct,ht))).Array,o=t.Date,Ge=t.Error,We=t.Function,Ze=t.Math,qe=t.Object,$e=t.RegExp,Qe=t.String,Ke=t.TypeError,Ye=r.prototype,Je=qe.prototype,Xe=t["__core-js_shared__"],et=We.prototype.toString,tt=Je.hasOwnProperty,nt=0,rt=(n=/[^.]+$/.exec(Xe&&Xe.keys&&Xe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",ot=Je.toString,it=et.call(qe),lt=Ct._,ut=$e("^"+et.call(tt).replace(Ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ct=kt?t.Buffer:i,dt=t.Symbol,mt=t.Uint8Array,wt=ct?ct.allocUnsafe:i,xt=vn(qe.getPrototypeOf,qe),Et=qe.create,Ot=Je.propertyIsEnumerable,Vt=Ye.splice,At=dt?dt.isConcatSpreadable:i,qt=dt?dt.iterator:i,tn=dt?dt.toStringTag:i,On=function(){try{var e=Ei(qe,"defineProperty");return e({},"",{}),e}catch(e){}}(),kn=t.clearTimeout!==Ct.clearTimeout&&t.clearTimeout,Vn=o&&o.now!==Ct.Date.now&&o.now,An=t.setTimeout!==Ct.setTimeout&&t.setTimeout,Tn=Ze.ceil,Sn=Ze.floor,jn=qe.getOwnPropertySymbols,In=ct?ct.isBuffer:i,Pn=t.isFinite,Dn=Ye.join,Nn=vn(qe.keys,qe),Mn=Ze.max,Rn=Ze.min,Fn=o.now,Ln=t.parseInt,Bn=Ze.random,Un=Ye.reverse,Hn=Ei(t,"DataView"),zn=Ei(t,"Map"),Gn=Ei(t,"Promise"),Wn=Ei(t,"Set"),Zn=Ei(t,"WeakMap"),qn=Ei(qe,"create"),$n=Zn&&new Zn,Qn={},Kn=Qi(Hn),Yn=Qi(zn),Jn=Qi(Gn),Xn=Qi(Wn),er=Qi(Zn),tr=dt?dt.prototype:i,nr=tr?tr.valueOf:i,rr=tr?tr.toString:i;function or(e){if(du(e)&&!tu(e)&&!(e instanceof ar)){if(e instanceof ur)return e;if(tt.call(e,"__wrapped__"))return Ki(e)}return new ur(e)}var ir=function(){function e(){}return function(t){if(!fu(t))return{};if(Et)return Et(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function lr(){}function ur(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function ar(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=S,this.__views__=[]}function sr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Er(e,t,n,r,o,l){var u,a=t&s,d=t&c,p=t&f;if(n&&(u=o?n(e,r,o,l):n(e)),u!==i)return u;if(!fu(e))return e;var h=tu(e);if(h){if(u=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&tt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!a)return Ho(e,u)}else{var g=Vi(e),v=g==U||g==H;if(iu(e))return Mo(e,a);if(g==Z||g==D||v&&!o){if(u=d||v?{}:Ti(e),!a)return d?function(e,t){return zo(e,ki(e),t)}(e,function(t,n){return t&&zo(e,zu(e),t)}(u)):function(e,t){return zo(e,Oi(e),t)}(e,br(u,e))}else{if(!yt[g])return o?e:{};u=function(e,t,n){var r,o,i=e.constructor;switch(t){case ee:return Ro(e);case R:case F:return new i(+e);case te:return function(e,t){var n=t?Ro(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case ne:case re:case oe:case ie:case le:case ue:case ae:case se:case ce:return Fo(e,n);case z:return new i;case G:case K:return new i(e);case $:return(o=new(r=e).constructor(r.source,Ne.exec(r))).lastIndex=r.lastIndex,o;case Q:return new i;case Y:return nr?qe(nr.call(e)):{}}}(e,g,a)}}l||(l=new pr);var y=l.get(e);if(y)return y;if(l.set(e,u),yu(e))return e.forEach(function(r){u.add(Er(r,t,n,r,e,l))}),u;if(pu(e))return e.forEach(function(r,o){u.set(o,Er(r,t,n,o,e,l))}),u;var m=h?i:(p?d?yi:vi:d?zu:Hu)(e);return Rt(m||e,function(r,o){m&&(r=e[o=r]),yr(u,o,Er(r,t,n,o,e,l))}),u}function Or(e,t,n){var r=n.length;if(null==e)return!r;for(e=qe(e);r--;){var o=n[r],l=e[o];if(l===i&&!(o in e)||!(0,t[o])(l))return!1}return!0}function kr(e,t,n){if("function"!=typeof e)throw new Ke(u);return Hi(function(){e.apply(i,n)},t)}function Vr(e,t,n,r){var o=-1,i=Bt,u=!0,a=e.length,s=[],c=t.length;if(!a)return s;n&&(t=Ht(t,ln(n))),r?(i=Ut,u=!1):t.length>=l&&(i=an,u=!1,t=new dr(t));e:for(;++o-1},cr.prototype.set=function(e,t){var n=this.__data__,r=mr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},fr.prototype.clear=function(){this.size=0,this.__data__={hash:new sr,map:new(zn||cr),string:new sr}},fr.prototype.delete=function(e){var t=xi(this,e).delete(e);return this.size-=t?1:0,t},fr.prototype.get=function(e){return xi(this,e).get(e)},fr.prototype.has=function(e){return xi(this,e).has(e)},fr.prototype.set=function(e,t){var n=xi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},dr.prototype.add=dr.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},dr.prototype.has=function(e){return this.__data__.has(e)},pr.prototype.clear=function(){this.__data__=new cr,this.size=0},pr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},pr.prototype.get=function(e){return this.__data__.get(e)},pr.prototype.has=function(e){return this.__data__.has(e)},pr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof cr){var r=n.__data__;if(!zn||r.length0&&n(u)?t>1?Pr(u,t-1,n,r,o):zt(o,u):r||(o[o.length]=u)}return o}var Dr=qo(),Nr=qo(!0);function Mr(e,t){return e&&Dr(e,t,Hu)}function Rr(e,t){return e&&Nr(e,t,Hu)}function Fr(e,t){return Lt(t,function(t){return au(e[t])})}function Lr(e,t){for(var n=0,r=(t=Io(t,e)).length;null!=e&&nt}function zr(e,t){return null!=e&&tt.call(e,t)}function Gr(e,t){return null!=e&&t in qe(e)}function Wr(e,t,n){for(var o=n?Ut:Bt,l=e[0].length,u=e.length,a=u,s=r(u),c=1/0,f=[];a--;){var d=e[a];a&&t&&(d=Ht(d,ln(t))),c=Rn(d.length,c),s[a]=!n&&(t||l>=120&&d.length>=120)?new dr(a&&d):i}d=e[0];var p=-1,h=s[0];e:for(;++p=u?a:a*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)});r--;)e[r]=e[r].value;return e}(eo(e,function(e,n,o){return{criteria:Ht(t,function(t){return t(e)}),index:++r,value:e}}))}function lo(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)u!==e&&Vt.call(u,a,1),Vt.call(e,a,1);return e}function ao(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;ji(o)?Vt.call(e,o,1):Eo(e,o)}}return e}function so(e,t){return e+Sn(Bn()*(t-e+1))}function co(e,t){var n="";if(!e||t<1||t>V)return n;do{t%2&&(n+=e),(t=Sn(t/2))&&(e+=e)}while(t);return n}function fo(e,t){return zi(Li(e,t,ha),e+"")}function po(e,t,n,r){if(!fu(e))return e;for(var o=-1,l=(t=Io(t,e)).length,u=l-1,a=e;null!=a&&++oi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var l=r(i);++o>>1,l=e[i];null!==l&&!_u(l)&&(n?l<=t:l=l){var c=t?null:ai(e);if(c)return _n(c);u=!1,o=an,s=new dr}else s=t?[]:a;e:for(;++r=r?e:vo(e,t,n)}var No=kn||function(e){return Ct.clearTimeout(e)};function Mo(e,t){if(t)return e.slice();var n=e.length,r=wt?wt(n):new e.constructor(n);return e.copy(r),r}function Ro(e){var t=new e.constructor(e.byteLength);return new mt(t).set(new mt(e)),t}function Fo(e,t){var n=t?Ro(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Lo(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,l=_u(e),u=t!==i,a=null===t,s=t==t,c=_u(t);if(!a&&!c&&!l&&e>t||l&&u&&s&&!a&&!c||r&&u&&s||!n&&s||!o)return 1;if(!r&&!l&&!c&&e1?n[o-1]:i,u=o>2?n[2]:i;for(l=e.length>3&&"function"==typeof l?(o--,l):i,u&&Ii(n[0],n[1],u)&&(l=o<3?i:l,o=1),t=qe(t);++r-1?o[l?t[u]:u]:i}}function Jo(e){return gi(function(t){var n=t.length,r=n,o=ur.prototype.thru;for(e&&t.reverse();r--;){var l=t[r];if("function"!=typeof l)throw new Ke(u);if(o&&!a&&"wrapper"==_i(l))var a=new ur([],!0)}for(r=a?r:n;++r1&&y.reverse(),d&&ca))return!1;var c=l.get(e);if(c&&l.get(t))return c==t;var f=-1,h=!0,g=n&p?new dr:i;for(l.set(e,t),l.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Te,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Rt(P,function(n){var r="_."+n[0];t&n[1]&&!Bt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Se);return t?t[1].split(je):[]}(r),n)))}function Wi(e){var t=0,n=0;return function(){var r=Fn(),o=O-(r-n);if(n=r,o>0){if(++t>=E)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Zi(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return vl(e,n="function"==typeof n?(e.pop(),n):i)});function Cl(e){var t=or(e);return t.__chain__=!0,t}function El(e,t){return t(e)}var Ol=gi(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return xr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof ar&&ji(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:El,args:[o],thisArg:i}),new ur(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)}),kl=Go(function(e,t,n){tt.call(e,n)?++e[n]:wr(e,n,1)}),Vl=Yo(el),Al=Yo(tl);function Tl(e,t){return(tu(e)?Rt:Ar)(e,wi(t,3))}function Sl(e,t){return(tu(e)?function(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}:Tr)(e,wi(t,3))}var jl=Go(function(e,t,n){tt.call(e,n)?e[n].push(t):wr(e,n,[t])}),Il=fo(function(e,t,n){var o=-1,i="function"==typeof t,l=ru(e)?r(e.length):[];return Ar(e,function(e){l[++o]=i?Nt(t,e,n):Zr(e,t,n)}),l}),Pl=Go(function(e,t,n){wr(e,n,t)});function Dl(e,t){return(tu(e)?Ht:eo)(e,wi(t,3))}var Nl=Go(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Ml=fo(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ii(e,t[0],t[1])?t=[]:n>2&&Ii(t[0],t[1],t[2])&&(t=[t[0]]),io(e,Pr(t,1),[])}),Rl=Vn||function(){return Ct.Date.now()};function Fl(e,t,n){return t=n?i:t,ci(e,w,i,i,i,i,t=e&&null==t?e.length:t)}function Ll(e,t){var n;if("function"!=typeof t)throw new Ke(u);return e=Ou(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Bl=fo(function(e,t,n){var r=h;if(n.length){var o=yn(n,bi(Bl));r|=_}return ci(e,r,t,n,o)}),Ul=fo(function(e,t,n){var r=h|g;if(n.length){var o=yn(n,bi(Ul));r|=_}return ci(t,r,e,n,o)});function Hl(e,t,n){var r,o,l,a,s,c,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new Ke(u);function g(t){var n=r,l=o;return r=o=i,f=t,a=e.apply(l,n)}function v(e){var n=e-c;return c===i||n>=t||n<0||p&&e-f>=l}function y(){var e=Rl();if(v(e))return m(e);s=Hi(y,function(e){var n=t-(e-c);return p?Rn(n,l-(e-f)):n}(e))}function m(e){return s=i,h&&r?g(e):(r=o=i,a)}function _(){var e=Rl(),n=v(e);if(r=arguments,o=this,c=e,n){if(s===i)return function(e){return f=e,s=Hi(y,t),d?g(e):a}(c);if(p)return s=Hi(y,t),g(c)}return s===i&&(s=Hi(y,t)),a}return t=Vu(t)||0,fu(n)&&(d=!!n.leading,l=(p="maxWait"in n)?Mn(Vu(n.maxWait)||0,t):l,h="trailing"in n?!!n.trailing:h),_.cancel=function(){s!==i&&No(s),f=0,r=c=o=s=i},_.flush=function(){return s===i?a:m(Rl())},_}var zl=fo(function(e,t){return kr(e,1,t)}),Gl=fo(function(e,t,n){return kr(e,Vu(t)||0,n)});function Wl(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ke(u);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var l=e.apply(this,r);return n.cache=i.set(o,l)||i,l};return n.cache=new(Wl.Cache||fr),n}function Zl(e){if("function"!=typeof e)throw new Ke(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Wl.Cache=fr;var ql=Po(function(e,t){var n=(t=1==t.length&&tu(t[0])?Ht(t[0],ln(wi())):Ht(Pr(t,1),ln(wi()))).length;return fo(function(r){for(var o=-1,i=Rn(r.length,n);++o=t}),eu=qr(function(){return arguments}())?qr:function(e){return du(e)&&tt.call(e,"callee")&&!Ot.call(e,"callee")},tu=r.isArray,nu=Tt?ln(Tt):function(e){return du(e)&&Ur(e)==ee};function ru(e){return null!=e&&cu(e.length)&&!au(e)}function ou(e){return du(e)&&ru(e)}var iu=In||Va,lu=St?ln(St):function(e){return du(e)&&Ur(e)==F};function uu(e){if(!du(e))return!1;var t=Ur(e);return t==B||t==L||"string"==typeof e.message&&"string"==typeof e.name&&!gu(e)}function au(e){if(!fu(e))return!1;var t=Ur(e);return t==U||t==H||t==M||t==q}function su(e){return"number"==typeof e&&e==Ou(e)}function cu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=V}function fu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function du(e){return null!=e&&"object"==typeof e}var pu=jt?ln(jt):function(e){return du(e)&&Vi(e)==z};function hu(e){return"number"==typeof e||du(e)&&Ur(e)==G}function gu(e){if(!du(e)||Ur(e)!=Z)return!1;var t=xt(e);if(null===t)return!0;var n=tt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&et.call(n)==it}var vu=It?ln(It):function(e){return du(e)&&Ur(e)==$},yu=Pt?ln(Pt):function(e){return du(e)&&Vi(e)==Q};function mu(e){return"string"==typeof e||!tu(e)&&du(e)&&Ur(e)==K}function _u(e){return"symbol"==typeof e||du(e)&&Ur(e)==Y}var bu=Dt?ln(Dt):function(e){return du(e)&&cu(e.length)&&!!vt[Ur(e)]},wu=ii(Xr),xu=ii(function(e,t){return e<=t});function Cu(e){if(!e)return[];if(ru(e))return mu(e)?xn(e):Ho(e);if(qt&&e[qt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[qt]());var t=Vi(e);return(t==z?gn:t==Q?_n:Yu)(e)}function Eu(e){return e?(e=Vu(e))===k||e===-k?(e<0?-1:1)*A:e==e?e:0:0===e?e:0}function Ou(e){var t=Eu(e),n=t%1;return t==t?n?t-n:t:0}function ku(e){return e?Cr(Ou(e),0,S):0}function Vu(e){if("number"==typeof e)return e;if(_u(e))return T;if(fu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=fu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ke,"");var n=Re.test(e);return n||Le.test(e)?bt(e.slice(2),n?2:8):Me.test(e)?T:+e}function Au(e){return zo(e,zu(e))}function Tu(e){return null==e?"":xo(e)}var Su=Wo(function(e,t){if(Mi(t)||ru(t))zo(t,Hu(t),e);else for(var n in t)tt.call(t,n)&&yr(e,n,t[n])}),ju=Wo(function(e,t){zo(t,zu(t),e)}),Iu=Wo(function(e,t,n,r){zo(t,zu(t),e,r)}),Pu=Wo(function(e,t,n,r){zo(t,Hu(t),e,r)}),Du=gi(xr),Nu=fo(function(e,t){e=qe(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&Ii(t[0],t[1],o)&&(r=1);++n1),t}),zo(e,yi(e),n),r&&(n=Er(n,s|c|f,pi));for(var o=t.length;o--;)Eo(n,t[o]);return n}),qu=gi(function(e,t){return null==e?{}:function(e,t){return lo(e,t,function(t,n){return Fu(e,n)})}(e,t)});function $u(e,t){if(null==e)return{};var n=Ht(yi(e),function(e){return[e]});return t=wi(t),lo(e,n,function(e,n){return t(e,n[0])})}var Qu=si(Hu),Ku=si(zu);function Yu(e){return null==e?[]:un(e,Hu(e))}var Ju=Qo(function(e,t,n){return t=t.toLowerCase(),e+(n?Xu(t):t)});function Xu(e){return ua(Tu(e).toLowerCase())}function ea(e){return(e=Tu(e))&&e.replace(Ue,fn).replace(st,"")}var ta=Qo(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),na=Qo(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),ra=$o("toLowerCase"),oa=Qo(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),ia=Qo(function(e,t,n){return e+(n?" ":"")+ua(t)}),la=Qo(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ua=$o("toUpperCase");function aa(e,t,n){return e=Tu(e),(t=n?i:t)===i?function(e){return pt.test(e)}(e)?function(e){return e.match(ft)||[]}(e):function(e){return e.match(Ie)||[]}(e):e.match(t)||[]}var sa=fo(function(e,t){try{return Nt(e,i,t)}catch(e){return uu(e)?e:new Ge(e)}}),ca=gi(function(e,t){return Rt(t,function(t){t=$i(t),wr(e,t,Bl(e[t],e))}),e});function fa(e){return function(){return e}}var da=Jo(),pa=Jo(!0);function ha(e){return e}function ga(e){return Yr("function"==typeof e?e:Er(e,s))}var va=fo(function(e,t){return function(n){return Zr(n,e,t)}}),ya=fo(function(e,t){return function(n){return Zr(e,n,t)}});function ma(e,t,n){var r=Hu(t),o=Fr(t,r);null!=n||fu(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Fr(t,Hu(t)));var i=!(fu(n)&&"chain"in n&&!n.chain),l=au(e);return Rt(o,function(n){var r=t[n];e[n]=r,l&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Ho(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,zt([this.value()],arguments))})}),e}function _a(){}var ba=ni(Ht),wa=ni(Ft),xa=ni(Zt);function Ca(e){return Pi(e)?en($i(e)):function(e){return function(t){return Lr(t,e)}}(e)}var Ea=oi(),Oa=oi(!0);function ka(){return[]}function Va(){return!1}var Aa,Ta=ti(function(e,t){return e+t},0),Sa=ui("ceil"),ja=ti(function(e,t){return e/t},1),Ia=ui("floor"),Pa=ti(function(e,t){return e*t},1),Da=ui("round"),Na=ti(function(e,t){return e-t},0);return or.after=function(e,t){if("function"!=typeof t)throw new Ke(u);return e=Ou(e),function(){if(--e<1)return t.apply(this,arguments)}},or.ary=Fl,or.assign=Su,or.assignIn=ju,or.assignInWith=Iu,or.assignWith=Pu,or.at=Du,or.before=Ll,or.bind=Bl,or.bindAll=ca,or.bindKey=Ul,or.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return tu(e)?e:[e]},or.chain=Cl,or.chunk=function(e,t,n){t=(n?Ii(e,t,n):t===i)?1:Mn(Ou(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var l=0,u=0,a=r(Tn(o/t));lo?0:o+n),(r=r===i||r>o?o:Ou(r))<0&&(r+=o),r=n>r?0:ku(r);n>>0)?(e=Tu(e))&&("string"==typeof t||null!=t&&!vu(t))&&!(t=xo(t))&&hn(e)?Do(xn(e),0,n):e.split(t,n):[]},or.spread=function(e,t){if("function"!=typeof e)throw new Ke(u);return t=null==t?0:Mn(Ou(t),0),fo(function(n){var r=n[t],o=Do(n,0,t);return r&&zt(o,r),Nt(e,this,o)})},or.tail=function(e){var t=null==e?0:e.length;return t?vo(e,1,t):[]},or.take=function(e,t,n){return e&&e.length?vo(e,0,(t=n||t===i?1:Ou(t))<0?0:t):[]},or.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?vo(e,(t=r-(t=n||t===i?1:Ou(t)))<0?0:t,r):[]},or.takeRightWhile=function(e,t){return e&&e.length?ko(e,wi(t,3),!1,!0):[]},or.takeWhile=function(e,t){return e&&e.length?ko(e,wi(t,3)):[]},or.tap=function(e,t){return t(e),e},or.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Ke(u);return fu(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Hl(e,t,{leading:r,maxWait:t,trailing:o})},or.thru=El,or.toArray=Cu,or.toPairs=Qu,or.toPairsIn=Ku,or.toPath=function(e){return tu(e)?Ht(e,$i):_u(e)?[e]:Ho(qi(Tu(e)))},or.toPlainObject=Au,or.transform=function(e,t,n){var r=tu(e),o=r||iu(e)||bu(e);if(t=wi(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:fu(e)&&au(i)?ir(xt(e)):{}}return(o?Rt:Mr)(e,function(e,r,o){return t(n,e,r,o)}),n},or.unary=function(e){return Fl(e,1)},or.union=dl,or.unionBy=pl,or.unionWith=hl,or.uniq=function(e){return e&&e.length?Co(e):[]},or.uniqBy=function(e,t){return e&&e.length?Co(e,wi(t,2)):[]},or.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?Co(e,i,t):[]},or.unset=function(e,t){return null==e||Eo(e,t)},or.unzip=gl,or.unzipWith=vl,or.update=function(e,t,n){return null==e?e:Oo(e,t,jo(n))},or.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Oo(e,t,jo(n),r)},or.values=Yu,or.valuesIn=function(e){return null==e?[]:un(e,zu(e))},or.without=yl,or.words=aa,or.wrap=function(e,t){return $l(jo(t),e)},or.xor=ml,or.xorBy=_l,or.xorWith=bl,or.zip=wl,or.zipObject=function(e,t){return To(e||[],t||[],yr)},or.zipObjectDeep=function(e,t){return To(e||[],t||[],po)},or.zipWith=xl,or.entries=Qu,or.entriesIn=Ku,or.extend=ju,or.extendWith=Iu,ma(or,or),or.add=Ta,or.attempt=sa,or.camelCase=Ju,or.capitalize=Xu,or.ceil=Sa,or.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=Vu(n))==n?n:0),t!==i&&(t=(t=Vu(t))==t?t:0),Cr(Vu(e),t,n)},or.clone=function(e){return Er(e,f)},or.cloneDeep=function(e){return Er(e,s|f)},or.cloneDeepWith=function(e,t){return Er(e,s|f,t="function"==typeof t?t:i)},or.cloneWith=function(e,t){return Er(e,f,t="function"==typeof t?t:i)},or.conformsTo=function(e,t){return null==t||Or(e,t,Hu(t))},or.deburr=ea,or.defaultTo=function(e,t){return null==e||e!=e?t:e},or.divide=ja,or.endsWith=function(e,t,n){e=Tu(e),t=xo(t);var r=e.length,o=n=n===i?r:Cr(Ou(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},or.eq=Yl,or.escape=function(e){return(e=Tu(e))&&ye.test(e)?e.replace(ge,dn):e},or.escapeRegExp=function(e){return(e=Tu(e))&&Oe.test(e)?e.replace(Ee,"\\$&"):e},or.every=function(e,t,n){var r=tu(e)?Ft:Sr;return n&&Ii(e,t,n)&&(t=i),r(e,wi(t,3))},or.find=Vl,or.findIndex=el,or.findKey=function(e,t){return $t(e,wi(t,3),Mr)},or.findLast=Al,or.findLastIndex=tl,or.findLastKey=function(e,t){return $t(e,wi(t,3),Rr)},or.floor=Ia,or.forEach=Tl,or.forEachRight=Sl,or.forIn=function(e,t){return null==e?e:Dr(e,wi(t,3),zu)},or.forInRight=function(e,t){return null==e?e:Nr(e,wi(t,3),zu)},or.forOwn=function(e,t){return e&&Mr(e,wi(t,3))},or.forOwnRight=function(e,t){return e&&Rr(e,wi(t,3))},or.get=Ru,or.gt=Jl,or.gte=Xl,or.has=function(e,t){return null!=e&&Ai(e,t,zr)},or.hasIn=Fu,or.head=rl,or.identity=ha,or.includes=function(e,t,n,r){e=ru(e)?e:Yu(e),n=n&&!r?Ou(n):0;var o=e.length;return n<0&&(n=Mn(o+n,0)),mu(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Kt(e,t,n)>-1},or.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ou(n);return o<0&&(o=Mn(r+o,0)),Kt(e,t,o)},or.inRange=function(e,t,n){return t=Eu(t),n===i?(n=t,t=0):n=Eu(n),function(e,t,n){return e>=Rn(t,n)&&e=-V&&e<=V},or.isSet=yu,or.isString=mu,or.isSymbol=_u,or.isTypedArray=bu,or.isUndefined=function(e){return e===i},or.isWeakMap=function(e){return du(e)&&Vi(e)==X},or.isWeakSet=function(e){return du(e)&&"[object WeakSet]"==Ur(e)},or.join=function(e,t){return null==e?"":Dn.call(e,t)},or.kebabCase=ta,or.last=ul,or.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=Ou(n))<0?Mn(r+o,0):Rn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Qt(e,Jt,o,!0)},or.lowerCase=na,or.lowerFirst=ra,or.lt=wu,or.lte=xu,or.max=function(e){return e&&e.length?jr(e,ha,Hr):i},or.maxBy=function(e,t){return e&&e.length?jr(e,wi(t,2),Hr):i},or.mean=function(e){return Xt(e,ha)},or.meanBy=function(e,t){return Xt(e,wi(t,2))},or.min=function(e){return e&&e.length?jr(e,ha,Xr):i},or.minBy=function(e,t){return e&&e.length?jr(e,wi(t,2),Xr):i},or.stubArray=ka,or.stubFalse=Va,or.stubObject=function(){return{}},or.stubString=function(){return""},or.stubTrue=function(){return!0},or.multiply=Pa,or.nth=function(e,t){return e&&e.length?oo(e,Ou(t)):i},or.noConflict=function(){return Ct._===this&&(Ct._=lt),this},or.noop=_a,or.now=Rl,or.pad=function(e,t,n){e=Tu(e);var r=(t=Ou(t))?wn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return ri(Sn(o),n)+e+ri(Tn(o),n)},or.padEnd=function(e,t,n){e=Tu(e);var r=(t=Ou(t))?wn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Bn();return Rn(e+o*(t-e+_t("1e-"+((o+"").length-1))),t)}return so(e,t)},or.reduce=function(e,t,n){var r=tu(e)?Gt:nn,o=arguments.length<3;return r(e,wi(t,4),n,o,Ar)},or.reduceRight=function(e,t,n){var r=tu(e)?Wt:nn,o=arguments.length<3;return r(e,wi(t,4),n,o,Tr)},or.repeat=function(e,t,n){return t=(n?Ii(e,t,n):t===i)?1:Ou(t),co(Tu(e),t)},or.replace=function(){var e=arguments,t=Tu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},or.result=function(e,t,n){var r=-1,o=(t=Io(t,e)).length;for(o||(o=1,e=i);++rV)return[];var n=S,r=Rn(e,S);t=wi(t),e-=S;for(var o=on(r,t);++n=l)return e;var a=n-wn(r);if(a<1)return r;var s=u?Do(u,0,a).join(""):e.slice(0,a);if(o===i)return s+r;if(u&&(a+=s.length-a),vu(o)){if(e.slice(a).search(o)){var c,f=s;for(o.global||(o=$e(o.source,Tu(Ne.exec(o))+"g")),o.lastIndex=0;c=o.exec(f);)var d=c.index;s=s.slice(0,d===i?a:d)}}else if(e.indexOf(xo(o),a)!=a){var p=s.lastIndexOf(o);p>-1&&(s=s.slice(0,p))}return s+r},or.unescape=function(e){return(e=Tu(e))&&ve.test(e)?e.replace(he,Cn):e},or.uniqueId=function(e){var t=++nt;return Tu(e)+t},or.upperCase=la,or.upperFirst=ua,or.each=Tl,or.eachRight=Sl,or.first=rl,ma(or,(Aa={},Mr(or,function(e,t){tt.call(or.prototype,t)||(Aa[t]=e)}),Aa),{chain:!1}),or.VERSION="4.17.5",Rt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){or[e].placeholder=or}),Rt(["drop","take"],function(e,t){ar.prototype[e]=function(n){n=n===i?1:Mn(Ou(n),0);var r=this.__filtered__&&!t?new ar(this):this.clone();return r.__filtered__?r.__takeCount__=Rn(n,r.__takeCount__):r.__views__.push({size:Rn(n,S),type:e+(r.__dir__<0?"Right":"")}),r},ar.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Rt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;ar.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:wi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Rt(["head","last"],function(e,t){var n="take"+(t?"Right":"");ar.prototype[e]=function(){return this[n](1).value()[0]}}),Rt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");ar.prototype[e]=function(){return this.__filtered__?new ar(this):this[n](1)}}),ar.prototype.compact=function(){return this.filter(ha)},ar.prototype.find=function(e){return this.filter(e).head()},ar.prototype.findLast=function(e){return this.reverse().find(e)},ar.prototype.invokeMap=fo(function(e,t){return"function"==typeof e?new ar(this):this.map(function(n){return Zr(n,e,t)})}),ar.prototype.reject=function(e){return this.filter(Zl(wi(e)))},ar.prototype.slice=function(e,t){e=Ou(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ar(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=Ou(t))<0?n.dropRight(-t):n.take(t-e)),n)},ar.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ar.prototype.toArray=function(){return this.take(S)},Mr(ar.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=or[r?"take"+("last"==t?"Right":""):t],l=r||/^find/.test(t);o&&(or.prototype[t]=function(){var t=this.__wrapped__,u=r?[1]:arguments,a=t instanceof ar,s=u[0],c=a||tu(t),f=function(e){var t=o.apply(or,zt([e],u));return r&&d?t[0]:t};c&&n&&"function"==typeof s&&1!=s.length&&(a=c=!1);var d=this.__chain__,p=l&&!d,h=a&&!this.__actions__.length;if(!l&&c){t=h?t:new ar(this);var g=e.apply(t,u);return g.__actions__.push({func:El,args:[f],thisArg:i}),new ur(g,d)}return p&&h?e.apply(this,u):(g=this.thru(f),p?r?g.value()[0]:g.value():g)})}),Rt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ye[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);or.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(tu(o)?o:[],e)}return this[n](function(n){return t.apply(tu(n)?n:[],e)})}}),Mr(ar.prototype,function(e,t){var n=or[t];if(n){var r=n.name+"";(Qn[r]||(Qn[r]=[])).push({name:t,func:n})}}),Qn[Xo(i,g).name]=[{name:"wrapper",func:i}],ar.prototype.clone=function(){var e=new ar(this.__wrapped__);return e.__actions__=Ho(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ho(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ho(this.__views__),e},ar.prototype.reverse=function(){if(this.__filtered__){var e=new ar(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ar.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=tu(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},or.prototype.plant=function(e){for(var t,n=this;n instanceof lr;){var r=Ki(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},or.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ar){var t=e;return this.__actions__.length&&(t=new ar(this)),(t=t.reverse()).__actions__.push({func:El,args:[fl],thisArg:i}),new ur(t,this.__chain__)}return this.thru(fl)},or.prototype.toJSON=or.prototype.valueOf=or.prototype.value=function(){return Vo(this.__wrapped__,this.__actions__)},or.prototype.first=or.prototype.head,qt&&(or.prototype[qt]=function(){return this}),or}();Ct._=En,(o=(function(){return En}).call(t,n,t,r))===i||(r.exports=o)}).call(this)}).call(t,n("fRUx"),n("ZwkM")(e))}},[0]); \ No newline at end of file diff --git a/package.json b/package.json index f08fb07a..ac3176ce 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ngx-select-ex", - "version": "3.3.6", + "version": "3.3.7", "description": "Angular based replacement for select boxes", "license": "MIT", "private": false,