From 9cc12d51c0974ce7021d7c603d8060932db13393 Mon Sep 17 00:00:00 2001 From: optimistex Date: Sun, 28 Oct 2018 13:06:50 +0200 Subject: [PATCH] release 3.6.3 --- docs/index.html | 2 +- ...ain.f3b855e1fcd9bc8f317a.js => main.3a4188089cbe6f9feb08.js} | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename docs/{main.f3b855e1fcd9bc8f317a.js => main.3a4188089cbe6f9feb08.js} (83%) diff --git a/docs/index.html b/docs/index.html index 563f7238..281a3e7d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -36,5 +36,5 @@ Loading... - + diff --git a/docs/main.f3b855e1fcd9bc8f317a.js b/docs/main.3a4188089cbe6f9feb08.js similarity index 83% rename from docs/main.f3b855e1fcd9bc8f317a.js rename to docs/main.3a4188089cbe6f9feb08.js index c4a0d24f..d27555c7 100644 --- a/docs/main.f3b855e1fcd9bc8f317a.js +++ b/docs/main.3a4188089cbe6f9feb08.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},"5O0x":function(e,t){e.exports="import {Component, OnDestroy} from '@angular/core';\nimport {FormControl} from '@angular/forms';\nimport {INgxSelectOption} from '../../lib/ngx-select/ngx-select.interfaces';\n\n@Component({\n selector: 'single-demo',\n templateUrl: './single-demo.html'\n})\nexport class SingleDemoComponent implements OnDestroy {\n public items: string[] = ['Amsterdam', 'Antwerp', 'Athens', 'Barcelona',\n 'Berlin', 'Birmingham', 'Bradford', 'Bremen', 'Brussels', 'Bucharest',\n 'Budapest', 'Cologne', 'Copenhagen', 'Dortmund', 'Dresden', 'Dublin',\n 'D\xfcsseldorf', 'Essen', 'Frankfurt', 'Genoa', 'Glasgow', 'Gothenburg',\n 'Hamburg', 'Hannover', 'Helsinki', 'Krak\xf3w', 'Leeds', 'Leipzig', 'Lisbon',\n 'London', 'Madrid', 'Manchester', 'Marseille', 'Milan', 'Munich', 'M\xe1laga',\n 'Naples', 'Palermo', 'Paris', 'Pozna\u0144', 'Prague', 'Riga', 'Rome',\n 'Rotterdam', 'Seville', 'Sheffield', 'Sofia', 'Stockholm', 'Stuttgart',\n 'The Hague', 'Turin', 'Valencia', 'Vienna', 'Vilnius', 'Warsaw', 'Wroc\u0142aw',\n 'Zagreb', 'Zaragoza', '\u0141\xf3d\u017a'];\n\n public ngxControl = new FormControl();\n\n private _ngxDefaultTimeout;\n private _ngxDefaultInterval;\n private _ngxDefault;\n\n constructor() {\n this._ngxDefaultTimeout = setTimeout(() => {\n this._ngxDefaultInterval = setInterval(() => {\n const idx = Math.floor(Math.random() * (this.items.length - 1));\n this._ngxDefault = this.items[idx];\n // console.log('new default value = ', this._ngxDefault);\n }, 2000);\n }, 2000);\n }\n\n ngOnDestroy(): void {\n clearTimeout(this._ngxDefaultTimeout);\n clearInterval(this._ngxDefaultInterval);\n }\n\n public doNgxDefault(): any {\n return this._ngxDefault;\n }\n\n public inputTyped = (source: string, text: string) => console.log('SingleDemoComponent.inputTyped', source, text);\n\n public doFocus = () => console.log('SingleDemoComponent.doFocus');\n\n public doBlur = () => console.log('SingleDemoComponent.doBlur');\n\n public doOpen = () => console.log('SingleDemoComponent.doOpen');\n\n public doClose = () => console.log('SingleDemoComponent.doClose');\n\n public doSelect = (value: any) => console.log('SingleDemoComponent.doSelect', value);\n\n public doRemove = (value: any) => console.log('SingleDemoComponent.doRemove', value);\n\n public doSelectOptions = (options: INgxSelectOption[]) => console.log('SingleDemoComponent.doSelectOptions', options);\n}\n"},Fam2:function(e,t){e.exports='

Select a color

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

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
\n'},HfGU: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
'},LvDl:function(e,t,n){(function(e){var r;(function(){var o,i=200,l="Expected a function",u="__lodash_placeholder__",a=1,s=2,c=4,d=1,f=2,p=1,h=2,g=4,v=8,y=16,m=32,_=64,b=128,w=256,x=512,C=800,E=16,k=1/0,O=9007199254740991,S=1.7976931348623157e308,T=NaN,A=4294967295,D=A-1,I=A>>>1,N=[["ary",b],["bind",p],["bindKey",h],["curry",v],["curryRight",y],["flip",x],["partial",m],["partialRight",_],["rearg",w]],V="[object Arguments]",P="[object Array]",M="[object AsyncFunction]",R="[object Boolean]",j="[object Date]",F="[object DOMException]",B="[object Error]",L="[object Function]",H="[object GeneratorFunction]",z="[object Map]",U="[object Number]",G="[object Null]",q="[object Object]",W="[object Proxy]",Z="[object RegExp]",$="[object Set]",Q="[object String]",K="[object Symbol]",Y="[object Undefined]",J="[object WeakMap]",X="[object ArrayBuffer]",ee="[object DataView]",te="[object Float32Array]",ne="[object Float64Array]",re="[object Int8Array]",oe="[object Int16Array]",ie="[object Int32Array]",le="[object Uint8Array]",ue="[object Uint8ClampedArray]",ae="[object Uint16Array]",se="[object Uint32Array]",ce=/\b__p \+= '';/g,de=/\b(__p \+=) '' \+/g,fe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,pe=/&(?:amp|lt|gt|quot|#39);/g,he=/[&<>"']/g,ge=RegExp(pe.source),ve=RegExp(he.source),ye=/<%-([\s\S]+?)%>/g,me=/<%([\s\S]+?)%>/g,_e=/<%=([\s\S]+?)%>/g,be=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,we=/^\w*$/,xe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ce=/[\\^$.*+?()[\]{}|]/g,Ee=RegExp(Ce.source),ke=/^\s+|\s+$/g,Oe=/^\s+/,Se=/\s+$/,Te=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ae=/\{\n\/\* \[wrapped with (.+)\] \*/,De=/,? & /,Ie=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ne=/\\(\\)?/g,Ve=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pe=/\w*$/,Me=/^[-+]0x[0-9a-f]+$/i,Re=/^0b[01]+$/i,je=/^\[object .+?Constructor\]$/,Fe=/^0o[0-7]+$/i,Be=/^(?:0|[1-9]\d*)$/,Le=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,He=/($^)/,ze=/['\n\r\u2028\u2029\\]/g,Ue="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ge="\\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",qe="["+Ge+"]",We="["+Ue+"]",Ze="\\d+",$e="[a-z\\xdf-\\xf6\\xf8-\\xff]",Qe="[^\\ud800-\\udfff"+Ge+Ze+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Ke="\\ud83c[\\udffb-\\udfff]",Ye="[^\\ud800-\\udfff]",Je="(?:\\ud83c[\\udde6-\\uddff]){2}",Xe="[\\ud800-\\udbff][\\udc00-\\udfff]",et="[A-Z\\xc0-\\xd6\\xd8-\\xde]",tt="(?:"+$e+"|"+Qe+")",nt="(?:"+et+"|"+Qe+")",rt="(?:"+We+"|"+Ke+")?",ot="[\\ufe0e\\ufe0f]?"+rt+"(?:\\u200d(?:"+[Ye,Je,Xe].join("|")+")[\\ufe0e\\ufe0f]?"+rt+")*",it="(?:"+["[\\u2700-\\u27bf]",Je,Xe].join("|")+")"+ot,lt="(?:"+[Ye+We+"?",We,Je,Xe,"[\\ud800-\\udfff]"].join("|")+")",ut=RegExp("['\u2019]","g"),at=RegExp(We,"g"),st=RegExp(Ke+"(?="+Ke+")|"+lt+ot,"g"),ct=RegExp([et+"?"+$e+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[qe,et,"$"].join("|")+")",nt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[qe,et+tt,"$"].join("|")+")",et+"?"+tt+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",et+"+(?:['\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_])",Ze,it].join("|"),"g"),dt=RegExp("[\\u200d\\ud800-\\udfff"+Ue+"\\ufe0e\\ufe0f]"),ft=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,pt=["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"],ht=-1,gt={};gt[te]=gt[ne]=gt[re]=gt[oe]=gt[ie]=gt[le]=gt[ue]=gt[ae]=gt[se]=!0,gt[V]=gt[P]=gt[X]=gt[R]=gt[ee]=gt[j]=gt[B]=gt[L]=gt[z]=gt[U]=gt[q]=gt[Z]=gt[$]=gt[Q]=gt[J]=!1;var vt={};vt[V]=vt[P]=vt[X]=vt[ee]=vt[R]=vt[j]=vt[te]=vt[ne]=vt[re]=vt[oe]=vt[ie]=vt[z]=vt[U]=vt[q]=vt[Z]=vt[$]=vt[Q]=vt[K]=vt[le]=vt[ue]=vt[ae]=vt[se]=!0,vt[B]=vt[L]=vt[J]=!1;var yt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},mt=parseFloat,_t=parseInt,bt="object"==typeof global&&global&&global.Object===Object&&global,wt="object"==typeof self&&self&&self.Object===Object&&self,xt=bt||wt||Function("return this")(),Ct="object"==typeof t&&t&&!t.nodeType&&t,Et=Ct&&"object"==typeof e&&e&&!e.nodeType&&e,kt=Et&&Et.exports===Ct,Ot=kt&&bt.process,St=function(){try{return Et&&Et.require&&Et.require("util").types||Ot&&Ot.binding&&Ot.binding("util")}catch(e){}}(),Tt=St&&St.isArrayBuffer,At=St&&St.isDate,Dt=St&&St.isMap,It=St&&St.isRegExp,Nt=St&&St.isSet,Vt=St&&St.isTypedArray;function Pt(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 Lt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function sn(e,t){for(var n=e.length;n--&&Qt(t,e[n],0)>-1;);return n}var cn=en({"\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=en({"&":"&","<":"<",">":">",'"':""","'":"'"});function fn(e){return"\\"+yt[e]}function pn(e){return dt.test(e)}function hn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function gn(e,t){return function(n){return e(t(n))}}function vn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"}),xn=function e(t){var n,r=(t=null==t?xt:xn.defaults(xt.Object(),t,xn.pick(xt,pt))).Array,Ue=t.Date,Ge=t.Error,qe=t.Function,We=t.Math,Ze=t.Object,$e=t.RegExp,Qe=t.String,Ke=t.TypeError,Ye=r.prototype,Je=Ze.prototype,Xe=t["__core-js_shared__"],et=qe.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(Ze),lt=xt._,st=$e("^"+et.call(tt).replace(Ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dt=kt?t.Buffer:o,yt=t.Symbol,bt=t.Uint8Array,wt=dt?dt.allocUnsafe:o,Ct=gn(Ze.getPrototypeOf,Ze),Et=Ze.create,Ot=Je.propertyIsEnumerable,St=Ye.splice,Wt=yt?yt.isConcatSpreadable:o,en=yt?yt.iterator:o,Cn=yt?yt.toStringTag:o,En=function(){try{var e=Ci(Ze,"defineProperty");return e({},"",{}),e}catch(e){}}(),kn=t.clearTimeout!==xt.clearTimeout&&t.clearTimeout,On=Ue&&Ue.now!==xt.Date.now&&Ue.now,Sn=t.setTimeout!==xt.setTimeout&&t.setTimeout,Tn=We.ceil,An=We.floor,Dn=Ze.getOwnPropertySymbols,In=dt?dt.isBuffer:o,Nn=t.isFinite,Vn=Ye.join,Pn=gn(Ze.keys,Ze),Mn=We.max,Rn=We.min,jn=Ue.now,Fn=t.parseInt,Bn=We.random,Ln=Ye.reverse,Hn=Ci(t,"DataView"),zn=Ci(t,"Map"),Un=Ci(t,"Promise"),Gn=Ci(t,"Set"),qn=Ci(t,"WeakMap"),Wn=Ci(Ze,"create"),Zn=qn&&new qn,$n={},Qn=Qi(Hn),Kn=Qi(zn),Yn=Qi(Un),Jn=Qi(Gn),Xn=Qi(qn),er=yt?yt.prototype:o,tr=er?er.valueOf:o,nr=er?er.toString:o;function rr(e){if(fu(e)&&!tu(e)&&!(e instanceof ur)){if(e instanceof lr)return e;if(tt.call(e,"__wrapped__"))return Ki(e)}return new lr(e)}var or=function(){function e(){}return function(t){if(!du(t))return{};if(Et)return Et(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function ir(){}function lr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function ur(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=A,this.__views__=[]}function ar(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Cr(e,t,n,r,i,l){var u,d=t&a,f=t&s,p=t&c;if(n&&(u=i?n(e,r,i,l):n(e)),u!==o)return u;if(!du(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),!d)return Ho(e,u)}else{var g=Oi(e),v=g==L||g==H;if(iu(e))return Mo(e,d);if(g==q||g==V||v&&!i){if(u=f||v?{}:Ti(e),!d)return f?function(e,t){return zo(e,ki(e),t)}(e,function(t,n){return t&&zo(e,Uu(e),t)}(u)):function(e,t){return zo(e,Ei(e),t)}(e,_r(u,e))}else{if(!vt[g])return i?e:{};u=function(e,t,n){var r,o,i=e.constructor;switch(t){case X:return Ro(e);case R:case j:return new i(+e);case ee:return function(e,t){var n=t?Ro(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case te:case ne:case re:case oe:case ie:case le:case ue:case ae:case se:return jo(e,n);case z:return new i;case U:case Q:return new i(e);case Z:return(o=new(r=e).constructor(r.source,Pe.exec(r))).lastIndex=r.lastIndex,o;case $:return new i;case K:return tr?Ze(tr.call(e)):{}}}(e,g,d)}}l||(l=new fr);var y=l.get(e);if(y)return y;if(l.set(e,u),yu(e))return e.forEach(function(r){u.add(Cr(r,t,n,r,e,l))}),u;if(pu(e))return e.forEach(function(r,o){u.set(o,Cr(r,t,n,o,e,l))}),u;var m=h?o:(p?f?vi:gi:f?Uu:zu)(e);return Rt(m||e,function(r,o){m&&(r=e[o=r]),vr(u,o,Cr(r,t,n,o,e,l))}),u}function Er(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ze(e);r--;){var i=n[r],l=e[i];if(l===o&&!(i in e)||!(0,t[i])(l))return!1}return!0}function kr(e,t,n){if("function"!=typeof e)throw new Ke(l);return zi(function(){e.apply(o,n)},t)}function Or(e,t,n,r){var o=-1,l=Bt,u=!0,a=e.length,s=[],c=t.length;if(!a)return s;n&&(t=Ht(t,on(n))),r?(l=Lt,u=!1):t.length>=i&&(l=un,u=!1,t=new dr(t));e:for(;++o-1},sr.prototype.set=function(e,t){var n=this.__data__,r=yr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},cr.prototype.clear=function(){this.size=0,this.__data__={hash:new ar,map:new(zn||sr),string:new ar}},cr.prototype.delete=function(e){var t=wi(this,e).delete(e);return this.size-=t?1:0,t},cr.prototype.get=function(e){return wi(this,e).get(e)},cr.prototype.has=function(e){return wi(this,e).has(e)},cr.prototype.set=function(e,t){var n=wi(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)},fr.prototype.clear=function(){this.__data__=new sr,this.size=0},fr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},fr.prototype.get=function(e){return this.__data__.get(e)},fr.prototype.has=function(e){return this.__data__.has(e)},fr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof sr){var r=n.__data__;if(!zn||r.length0&&n(u)?t>1?Nr(u,t-1,n,r,o):zt(o,u):r||(o[o.length]=u)}return o}var Vr=Wo(),Pr=Wo(!0);function Mr(e,t){return e&&Vr(e,t,zu)}function Rr(e,t){return e&&Pr(e,t,zu)}function jr(e,t){return Ft(t,function(t){return au(e[t])})}function Fr(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 Ur(e,t){return null!=e&&t in Ze(e)}function Gr(e,t,n){for(var i=n?Lt:Bt,l=e[0].length,u=e.length,a=u,s=r(u),c=1/0,d=[];a--;){var f=e[a];a&&t&&(f=Ht(f,on(t))),c=Rn(f.length,c),s[a]=!n&&(t||l>=120&&f.length>=120)?new dr(a&&f):o}f=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}(Xr(e,function(e,n,o){return{criteria:Ht(t,function(t){return t(e)}),index:++r,value:e}}))}function io(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)u!==e&&St.call(u,a,1),St.call(e,a,1);return e}function uo(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;Di(o)?St.call(e,o,1):Co(e,o)}}return e}function ao(e,t){return e+An(Bn()*(t-e+1))}function so(e,t){var n="";if(!e||t<1||t>O)return n;do{t%2&&(n+=e),(t=An(t/2))&&(e+=e)}while(t);return n}function co(e,t){return Ui(Fi(e,t,ha),e+"")}function fo(e,t,n,r){if(!du(e))return e;for(var i=-1,l=(t=Io(t,e)).length,u=l-1,a=e;null!=a&&++ii?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=i){var c=t?null:ui(e);if(c)return yn(c);u=!1,o=un,s=new dr}else s=t?[]:a;e:for(;++r=r?e:go(e,t,n)}var Po=kn||function(e){return xt.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 bt(t).set(new bt(e)),t}function jo(e,t){var n=t?Ro(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Fo(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,l=_u(e),u=t!==o,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||!i)return 1;if(!r&&!l&&!c&&e1?n[i-1]:o,u=i>2?n[2]:o;for(l=e.length>3&&"function"==typeof l?(i--,l):o,u&&Ii(n[0],n[1],u)&&(l=i<3?o:l,i=1),t=Ze(t);++r-1?i[l?t[u]:u]:o}}function Yo(e){return hi(function(t){var n=t.length,r=n,i=lr.prototype.thru;for(e&&t.reverse();r--;){var u=t[r];if("function"!=typeof u)throw new Ke(l);if(i&&!a&&"wrapper"==mi(u))var a=new lr([],!0)}for(r=a?r:n;++r1&&v.reverse(),f&&ca))return!1;var c=l.get(e);if(c&&l.get(t))return c==t;var p=-1,h=!0,g=n&f?new dr:o;for(l.set(e,t),l.set(t,e);++p-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(N,function(n){var r="_."+n[0];t&n[1]&&!Bt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Ae);return t?t[1].split(De):[]}(r),n)))}function qi(e){var t=0,n=0;return function(){var r=jn(),i=E-(r-n);if(n=r,i>0){if(++t>=C)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Wi(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n1?e[t-1]:o;return vl(e,n="function"==typeof n?(e.pop(),n):o)});function Cl(e){var t=rr(e);return t.__chain__=!0,t}function El(e,t){return t(e)}var kl=hi(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return wr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof ur&&Di(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:El,args:[i],thisArg:o}),new lr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(i)}),Ol=Uo(function(e,t,n){tt.call(e,n)?++e[n]:br(e,n,1)}),Sl=Ko(el),Tl=Ko(tl);function Al(e,t){return(tu(e)?Rt:Sr)(e,bi(t,3))}function Dl(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,bi(t,3))}var Il=Uo(function(e,t,n){tt.call(e,n)?e[n].push(t):br(e,n,[t])}),Nl=co(function(e,t,n){var o=-1,i="function"==typeof t,l=ru(e)?r(e.length):[];return Sr(e,function(e){l[++o]=i?Pt(t,e,n):qr(e,t,n)}),l}),Vl=Uo(function(e,t,n){br(e,n,t)});function Pl(e,t){return(tu(e)?Ht:Xr)(e,bi(t,3))}var Ml=Uo(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Rl=co(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]]),oo(e,Nr(t,1),[])}),jl=On||function(){return xt.Date.now()};function Fl(e,t,n){return t=n?o:t,si(e,b,o,o,o,o,t=e&&null==t?e.length:t)}function Bl(e,t){var n;if("function"!=typeof t)throw new Ke(l);return e=ku(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Ll=co(function(e,t,n){var r=p;if(n.length){var o=vn(n,_i(Ll));r|=m}return si(e,r,t,n,o)}),Hl=co(function(e,t,n){var r=p|h;if(n.length){var o=vn(n,_i(Hl));r|=m}return si(t,r,e,n,o)});function zl(e,t,n){var r,i,u,a,s,c,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new Ke(l);function g(t){var n=r,l=i;return r=i=o,d=t,a=e.apply(l,n)}function v(e){var n=e-c;return c===o||n>=t||n<0||p&&e-d>=u}function y(){var e=jl();if(v(e))return m(e);s=zi(y,function(e){var n=t-(e-c);return p?Rn(n,u-(e-d)):n}(e))}function m(e){return s=o,h&&r?g(e):(r=i=o,a)}function _(){var e=jl(),n=v(e);if(r=arguments,i=this,c=e,n){if(s===o)return function(e){return d=e,s=zi(y,t),f?g(e):a}(c);if(p)return s=zi(y,t),g(c)}return s===o&&(s=zi(y,t)),a}return t=Su(t)||0,du(n)&&(f=!!n.leading,u=(p="maxWait"in n)?Mn(Su(n.maxWait)||0,t):u,h="trailing"in n?!!n.trailing:h),_.cancel=function(){s!==o&&Po(s),d=0,r=c=i=s=o},_.flush=function(){return s===o?a:m(jl())},_}var Ul=co(function(e,t){return kr(e,1,t)}),Gl=co(function(e,t,n){return kr(e,Su(t)||0,n)});function ql(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ke(l);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(ql.Cache||cr),n}function Wl(e){if("function"!=typeof e)throw new Ke(l);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)}}ql.Cache=cr;var Zl=No(function(e,t){var n=(t=1==t.length&&tu(t[0])?Ht(t[0],on(bi())):Ht(Nr(t,1),on(bi()))).length;return co(function(r){for(var o=-1,i=Rn(r.length,n);++o=t}),eu=Wr(function(){return arguments}())?Wr:function(e){return fu(e)&&tt.call(e,"callee")&&!Ot.call(e,"callee")},tu=r.isArray,nu=Tt?on(Tt):function(e){return fu(e)&&Lr(e)==X};function ru(e){return null!=e&&cu(e.length)&&!au(e)}function ou(e){return fu(e)&&ru(e)}var iu=In||Sa,lu=At?on(At):function(e){return fu(e)&&Lr(e)==j};function uu(e){if(!fu(e))return!1;var t=Lr(e);return t==B||t==F||"string"==typeof e.message&&"string"==typeof e.name&&!gu(e)}function au(e){if(!du(e))return!1;var t=Lr(e);return t==L||t==H||t==M||t==W}function su(e){return"number"==typeof e&&e==ku(e)}function cu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=O}function du(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function fu(e){return null!=e&&"object"==typeof e}var pu=Dt?on(Dt):function(e){return fu(e)&&Oi(e)==z};function hu(e){return"number"==typeof e||fu(e)&&Lr(e)==U}function gu(e){if(!fu(e)||Lr(e)!=q)return!1;var t=Ct(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?on(It):function(e){return fu(e)&&Lr(e)==Z},yu=Nt?on(Nt):function(e){return fu(e)&&Oi(e)==$};function mu(e){return"string"==typeof e||!tu(e)&&fu(e)&&Lr(e)==Q}function _u(e){return"symbol"==typeof e||fu(e)&&Lr(e)==K}var bu=Vt?on(Vt):function(e){return fu(e)&&cu(e.length)&&!!gt[Lr(e)]},wu=oi(Jr),xu=oi(function(e,t){return e<=t});function Cu(e){if(!e)return[];if(ru(e))return mu(e)?bn(e):Ho(e);if(en&&e[en])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[en]());var t=Oi(e);return(t==z?hn:t==$?yn:Yu)(e)}function Eu(e){return e?(e=Su(e))===k||e===-k?(e<0?-1:1)*S:e==e?e:0:0===e?e:0}function ku(e){var t=Eu(e),n=t%1;return t==t?n?t-n:t:0}function Ou(e){return e?xr(ku(e),0,A):0}function Su(e){if("number"==typeof e)return e;if(_u(e))return T;if(du(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=du(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ke,"");var n=Re.test(e);return n||Fe.test(e)?_t(e.slice(2),n?2:8):Me.test(e)?T:+e}function Tu(e){return zo(e,Uu(e))}function Au(e){return null==e?"":wo(e)}var Du=Go(function(e,t){if(Mi(t)||ru(t))zo(t,zu(t),e);else for(var n in t)tt.call(t,n)&&vr(e,n,t[n])}),Iu=Go(function(e,t){zo(t,Uu(t),e)}),Nu=Go(function(e,t,n,r){zo(t,Uu(t),e,r)}),Vu=Go(function(e,t,n,r){zo(t,zu(t),e,r)}),Pu=hi(wr),Mu=co(function(e,t){e=Ze(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&Ii(t[0],t[1],i)&&(r=1);++n1),t}),zo(e,vi(e),n),r&&(n=Cr(n,a|s|c,fi));for(var o=t.length;o--;)Co(n,t[o]);return n}),Zu=hi(function(e,t){return null==e?{}:function(e,t){return io(e,t,function(t,n){return Fu(e,n)})}(e,t)});function $u(e,t){if(null==e)return{};var n=Ht(vi(e),function(e){return[e]});return t=bi(t),io(e,n,function(e,n){return t(e,n[0])})}var Qu=ai(zu),Ku=ai(Uu);function Yu(e){return null==e?[]:ln(e,zu(e))}var Ju=$o(function(e,t,n){return t=t.toLowerCase(),e+(n?Xu(t):t)});function Xu(e){return ua(Au(e).toLowerCase())}function ea(e){return(e=Au(e))&&e.replace(Le,cn).replace(at,"")}var ta=$o(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),na=$o(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),ra=Zo("toLowerCase"),oa=$o(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),ia=$o(function(e,t,n){return e+(n?" ":"")+ua(t)}),la=$o(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ua=Zo("toUpperCase");function aa(e,t,n){return e=Au(e),(t=n?o:t)===o?function(e){return ft.test(e)}(e)?function(e){return e.match(ct)||[]}(e):function(e){return e.match(Ie)||[]}(e):e.match(t)||[]}var sa=co(function(e,t){try{return Pt(e,o,t)}catch(e){return uu(e)?e:new Ge(e)}}),ca=hi(function(e,t){return Rt(t,function(t){t=$i(t),br(e,t,Ll(e[t],e))}),e});function da(e){return function(){return e}}var fa=Yo(),pa=Yo(!0);function ha(e){return e}function ga(e){return Kr("function"==typeof e?e:Cr(e,a))}var va=co(function(e,t){return function(n){return qr(n,e,t)}}),ya=co(function(e,t){return function(n){return qr(e,n,t)}});function ma(e,t,n){var r=zu(t),o=jr(t,r);null!=n||du(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=jr(t,zu(t)));var i=!(du(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=ti(Ht),wa=ti(jt),xa=ti(qt);function Ca(e){return Ni(e)?Xt($i(e)):function(e){return function(t){return Fr(t,e)}}(e)}var Ea=ri(),ka=ri(!0);function Oa(){return[]}function Sa(){return!1}var Ta,Aa=ei(function(e,t){return e+t},0),Da=li("ceil"),Ia=ei(function(e,t){return e/t},1),Na=li("floor"),Va=ei(function(e,t){return e*t},1),Pa=li("round"),Ma=ei(function(e,t){return e-t},0);return rr.after=function(e,t){if("function"!=typeof t)throw new Ke(l);return e=ku(e),function(){if(--e<1)return t.apply(this,arguments)}},rr.ary=Fl,rr.assign=Du,rr.assignIn=Iu,rr.assignInWith=Nu,rr.assignWith=Vu,rr.at=Pu,rr.before=Bl,rr.bind=Ll,rr.bindAll=ca,rr.bindKey=Hl,rr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return tu(e)?e:[e]},rr.chain=Cl,rr.chunk=function(e,t,n){t=(n?Ii(e,t,n):t===o)?1:Mn(ku(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var l=0,u=0,a=r(Tn(i/t));li?0:i+n),(r=r===o||r>i?i:ku(r))<0&&(r+=i),r=n>r?0:Ou(r);n>>0)?(e=Au(e))&&("string"==typeof t||null!=t&&!vu(t))&&!(t=wo(t))&&pn(e)?Vo(bn(e),0,n):e.split(t,n):[]},rr.spread=function(e,t){if("function"!=typeof e)throw new Ke(l);return t=null==t?0:Mn(ku(t),0),co(function(n){var r=n[t],o=Vo(n,0,t);return r&&zt(o,r),Pt(e,this,o)})},rr.tail=function(e){var t=null==e?0:e.length;return t?go(e,1,t):[]},rr.take=function(e,t,n){return e&&e.length?go(e,0,(t=n||t===o?1:ku(t))<0?0:t):[]},rr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?go(e,(t=r-(t=n||t===o?1:ku(t)))<0?0:t,r):[]},rr.takeRightWhile=function(e,t){return e&&e.length?ko(e,bi(t,3),!1,!0):[]},rr.takeWhile=function(e,t){return e&&e.length?ko(e,bi(t,3)):[]},rr.tap=function(e,t){return t(e),e},rr.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Ke(l);return du(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),zl(e,t,{leading:r,maxWait:t,trailing:o})},rr.thru=El,rr.toArray=Cu,rr.toPairs=Qu,rr.toPairsIn=Ku,rr.toPath=function(e){return tu(e)?Ht(e,$i):_u(e)?[e]:Ho(Zi(Au(e)))},rr.toPlainObject=Tu,rr.transform=function(e,t,n){var r=tu(e),o=r||iu(e)||bu(e);if(t=bi(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:du(e)&&au(i)?or(Ct(e)):{}}return(o?Rt:Mr)(e,function(e,r,o){return t(n,e,r,o)}),n},rr.unary=function(e){return Fl(e,1)},rr.union=fl,rr.unionBy=pl,rr.unionWith=hl,rr.uniq=function(e){return e&&e.length?xo(e):[]},rr.uniqBy=function(e,t){return e&&e.length?xo(e,bi(t,2)):[]},rr.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?xo(e,o,t):[]},rr.unset=function(e,t){return null==e||Co(e,t)},rr.unzip=gl,rr.unzipWith=vl,rr.update=function(e,t,n){return null==e?e:Eo(e,t,Do(n))},rr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Eo(e,t,Do(n),r)},rr.values=Yu,rr.valuesIn=function(e){return null==e?[]:ln(e,Uu(e))},rr.without=yl,rr.words=aa,rr.wrap=function(e,t){return $l(Do(t),e)},rr.xor=ml,rr.xorBy=_l,rr.xorWith=bl,rr.zip=wl,rr.zipObject=function(e,t){return To(e||[],t||[],vr)},rr.zipObjectDeep=function(e,t){return To(e||[],t||[],fo)},rr.zipWith=xl,rr.entries=Qu,rr.entriesIn=Ku,rr.extend=Iu,rr.extendWith=Nu,ma(rr,rr),rr.add=Aa,rr.attempt=sa,rr.camelCase=Ju,rr.capitalize=Xu,rr.ceil=Da,rr.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=Su(n))==n?n:0),t!==o&&(t=(t=Su(t))==t?t:0),xr(Su(e),t,n)},rr.clone=function(e){return Cr(e,c)},rr.cloneDeep=function(e){return Cr(e,a|c)},rr.cloneDeepWith=function(e,t){return Cr(e,a|c,t="function"==typeof t?t:o)},rr.cloneWith=function(e,t){return Cr(e,c,t="function"==typeof t?t:o)},rr.conformsTo=function(e,t){return null==t||Er(e,t,zu(t))},rr.deburr=ea,rr.defaultTo=function(e,t){return null==e||e!=e?t:e},rr.divide=Ia,rr.endsWith=function(e,t,n){e=Au(e),t=wo(t);var r=e.length,i=n=n===o?r:xr(ku(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},rr.eq=Yl,rr.escape=function(e){return(e=Au(e))&&ve.test(e)?e.replace(he,dn):e},rr.escapeRegExp=function(e){return(e=Au(e))&&Ee.test(e)?e.replace(Ce,"\\$&"):e},rr.every=function(e,t,n){var r=tu(e)?jt:Ar;return n&&Ii(e,t,n)&&(t=o),r(e,bi(t,3))},rr.find=Sl,rr.findIndex=el,rr.findKey=function(e,t){return Zt(e,bi(t,3),Mr)},rr.findLast=Tl,rr.findLastIndex=tl,rr.findLastKey=function(e,t){return Zt(e,bi(t,3),Rr)},rr.floor=Na,rr.forEach=Al,rr.forEachRight=Dl,rr.forIn=function(e,t){return null==e?e:Vr(e,bi(t,3),Uu)},rr.forInRight=function(e,t){return null==e?e:Pr(e,bi(t,3),Uu)},rr.forOwn=function(e,t){return e&&Mr(e,bi(t,3))},rr.forOwnRight=function(e,t){return e&&Rr(e,bi(t,3))},rr.get=ju,rr.gt=Jl,rr.gte=Xl,rr.has=function(e,t){return null!=e&&Si(e,t,zr)},rr.hasIn=Fu,rr.head=rl,rr.identity=ha,rr.includes=function(e,t,n,r){e=ru(e)?e:Yu(e),n=n&&!r?ku(n):0;var o=e.length;return n<0&&(n=Mn(o+n,0)),mu(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Qt(e,t,n)>-1},rr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ku(n);return o<0&&(o=Mn(r+o,0)),Qt(e,t,o)},rr.inRange=function(e,t,n){return t=Eu(t),n===o?(n=t,t=0):n=Eu(n),function(e,t,n){return e>=Rn(t,n)&&e=-O&&e<=O},rr.isSet=yu,rr.isString=mu,rr.isSymbol=_u,rr.isTypedArray=bu,rr.isUndefined=function(e){return e===o},rr.isWeakMap=function(e){return fu(e)&&Oi(e)==J},rr.isWeakSet=function(e){return fu(e)&&"[object WeakSet]"==Lr(e)},rr.join=function(e,t){return null==e?"":Vn.call(e,t)},rr.kebabCase=ta,rr.last=ul,rr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ku(n))<0?Mn(r+i,0):Rn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):$t(e,Yt,i,!0)},rr.lowerCase=na,rr.lowerFirst=ra,rr.lt=wu,rr.lte=xu,rr.max=function(e){return e&&e.length?Dr(e,ha,Hr):o},rr.maxBy=function(e,t){return e&&e.length?Dr(e,bi(t,2),Hr):o},rr.mean=function(e){return Jt(e,ha)},rr.meanBy=function(e,t){return Jt(e,bi(t,2))},rr.min=function(e){return e&&e.length?Dr(e,ha,Jr):o},rr.minBy=function(e,t){return e&&e.length?Dr(e,bi(t,2),Jr):o},rr.stubArray=Oa,rr.stubFalse=Sa,rr.stubObject=function(){return{}},rr.stubString=function(){return""},rr.stubTrue=function(){return!0},rr.multiply=Va,rr.nth=function(e,t){return e&&e.length?ro(e,ku(t)):o},rr.noConflict=function(){return xt._===this&&(xt._=lt),this},rr.noop=_a,rr.now=jl,rr.pad=function(e,t,n){e=Au(e);var r=(t=ku(t))?_n(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return ni(An(o),n)+e+ni(Tn(o),n)},rr.padEnd=function(e,t,n){e=Au(e);var r=(t=ku(t))?_n(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Bn();return Rn(e+i*(t-e+mt("1e-"+((i+"").length-1))),t)}return ao(e,t)},rr.reduce=function(e,t,n){var r=tu(e)?Ut:tn,o=arguments.length<3;return r(e,bi(t,4),n,o,Sr)},rr.reduceRight=function(e,t,n){var r=tu(e)?Gt:tn,o=arguments.length<3;return r(e,bi(t,4),n,o,Tr)},rr.repeat=function(e,t,n){return t=(n?Ii(e,t,n):t===o)?1:ku(t),so(Au(e),t)},rr.replace=function(){var e=arguments,t=Au(e[0]);return e.length<3?t:t.replace(e[1],e[2])},rr.result=function(e,t,n){var r=-1,i=(t=Io(t,e)).length;for(i||(i=1,e=o);++rO)return[];var n=A,r=Rn(e,A);t=bi(t),e-=A;for(var o=rn(r,t);++n=l)return e;var a=n-_n(r);if(a<1)return r;var s=u?Vo(u,0,a).join(""):e.slice(0,a);if(i===o)return s+r;if(u&&(a+=s.length-a),vu(i)){if(e.slice(a).search(i)){var c,d=s;for(i.global||(i=$e(i.source,Au(Pe.exec(i))+"g")),i.lastIndex=0;c=i.exec(d);)var f=c.index;s=s.slice(0,f===o?a:f)}}else if(e.indexOf(wo(i),a)!=a){var p=s.lastIndexOf(i);p>-1&&(s=s.slice(0,p))}return s+r},rr.unescape=function(e){return(e=Au(e))&&ge.test(e)?e.replace(pe,wn):e},rr.uniqueId=function(e){var t=++nt;return Au(e)+t},rr.upperCase=la,rr.upperFirst=ua,rr.each=Al,rr.eachRight=Dl,rr.first=rl,ma(rr,(Ta={},Mr(rr,function(e,t){tt.call(rr.prototype,t)||(Ta[t]=e)}),Ta),{chain:!1}),rr.VERSION="4.17.11",Rt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){rr[e].placeholder=rr}),Rt(["drop","take"],function(e,t){ur.prototype[e]=function(n){n=n===o?1:Mn(ku(n),0);var r=this.__filtered__&&!t?new ur(this):this.clone();return r.__filtered__?r.__takeCount__=Rn(n,r.__takeCount__):r.__views__.push({size:Rn(n,A),type:e+(r.__dir__<0?"Right":"")}),r},ur.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;ur.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:bi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Rt(["head","last"],function(e,t){var n="take"+(t?"Right":"");ur.prototype[e]=function(){return this[n](1).value()[0]}}),Rt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");ur.prototype[e]=function(){return this.__filtered__?new ur(this):this[n](1)}}),ur.prototype.compact=function(){return this.filter(ha)},ur.prototype.find=function(e){return this.filter(e).head()},ur.prototype.findLast=function(e){return this.reverse().find(e)},ur.prototype.invokeMap=co(function(e,t){return"function"==typeof e?new ur(this):this.map(function(n){return qr(n,e,t)})}),ur.prototype.reject=function(e){return this.filter(Wl(bi(e)))},ur.prototype.slice=function(e,t){e=ku(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ur(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ku(t))<0?n.dropRight(-t):n.take(t-e)),n)},ur.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ur.prototype.toArray=function(){return this.take(A)},Mr(ur.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=rr[r?"take"+("last"==t?"Right":""):t],l=r||/^find/.test(t);i&&(rr.prototype[t]=function(){var t=this.__wrapped__,u=r?[1]:arguments,a=t instanceof ur,s=u[0],c=a||tu(t),d=function(e){var t=i.apply(rr,zt([e],u));return r&&f?t[0]:t};c&&n&&"function"==typeof s&&1!=s.length&&(a=c=!1);var f=this.__chain__,p=l&&!f,h=a&&!this.__actions__.length;if(!l&&c){t=h?t:new ur(this);var g=e.apply(t,u);return g.__actions__.push({func:El,args:[d],thisArg:o}),new lr(g,f)}return p&&h?e.apply(this,u):(g=this.thru(d),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);rr.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(ur.prototype,function(e,t){var n=rr[t];if(n){var r=n.name+"";($n[r]||($n[r]=[])).push({name:t,func:n})}}),$n[Jo(o,h).name]=[{name:"wrapper",func:o}],ur.prototype.clone=function(){var e=new ur(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},ur.prototype.reverse=function(){if(this.__filtered__){var e=new ur(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ur.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?o:this.__values__[this.__index__++]}},rr.prototype.plant=function(e){for(var t,n=this;n instanceof ir;){var r=Ki(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},rr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ur){var t=e;return this.__actions__.length&&(t=new ur(this)),(t=t.reverse()).__actions__.push({func:El,args:[dl],thisArg:o}),new lr(t,this.__chain__)}return this.thru(dl)},rr.prototype.toJSON=rr.prototype.valueOf=rr.prototype.value=function(){return Oo(this.__wrapped__,this.__actions__)},rr.prototype.first=rr.prototype.head,en&&(rr.prototype[en]=function(){return this}),rr}();xt._=xn,(r=(function(){return xn}).call(t,n,t,e))===o||(e.exports=r)}).call(this)}).call(this,n("YuTi")(e))},NzhH: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 using the following command:

    \n
     npm i ngx-select-ex@ng4 --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

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

    \n
     import {NgModule} from '@angular/core';\n import {BrowserModule} from '@angular/platform-browser';\n import {AppComponent} from './app.component';\n import { NgxSelectModule, INgxSelectOptions } from 'ngx-select-ex';\n\n const CustomSelectOptions: INgxSelectOptions = { // Check the interface for more options\n     optionValueField: 'id',\n     optionTextField: 'name'\n };\n\n @NgModule({\n   imports: [BrowserModule, NgxSelectModule.forRoot(CustomSelectOptions)],\n   declarations: [AppComponent],\n   bootstrap: [AppComponent],\n })\n export class AppModule {\n }\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\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
[keepSelectedItems]booleanfalseStoring the selected items when the item list is changed
[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
autoClearSearchbooleanfalseAuto clear a search text after select an option. Has effect for multiple = true
noResultsFoundstring'No results found'The default text showed when a search has no results
size'small'/'default'/'large''default'Adding bootstrap classes: form-control-sm, input-sm, form-control-lg input-lg, btn-sm, btn-lg
searchCallback(search: string, item: INgxSelectOption) => booleannullThe callback function for custom filtering the select list
autoActiveOnMouseEnterbooleantrueAutomatically activate item when mouse enter on it
\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
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.
(navigated)Fired on navigate by the dropdown list. Returns: INgxOptionNavigated.
(selectionChanges)Fired on change selected options. Returns: INgxSelectOption[].
\n

Warning! Although the component contains the select and the remove events, the better solution is using valueChanges 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-buttons - The container of buttons such as the clear and the toggle.
  • \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

Templates

\n

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

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

Also, you are can mix directives for reducing template:

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

Description details of the directives:

\n
    \n
  1. ngx-select-option-selected - Customization rendering selected options.\n Representing variables:
      \n
    • option (implicit) - object of type INgxSelectOption.
    • \n
    • text - The text defined by the property optionTextField.
    • \n
    • index - Number value of index the option in the select list. Always equal to zero for the single select.
    • \n
    \n
  2. \n
  3. ngx-select-option - Customization rendering options in the dropdown menu.\n Representing variables:
      \n
    • option (implicit) - object of type INgxSelectOption.
    • \n
    • text - The highlighted text defined by the property optionTextField. It is highlighted in the search.
    • \n
    • index - Number value of index for the top level.
    • \n
    • subIndex - Number value of index for the second level.
    • \n
    \n
  4. \n
  5. ngx-select-option-not-found - Customization "not found text". Does not represent any variables.
  6. \n
\n'},Yqad: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"},YuTi:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},crnd:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="crnd"},dsz2:function(e,t){e.exports='

Select multiple cities

\n
\n
\n \n \n

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
\n'},jIeV:function(e,t){e.exports='

Getting started

\n

First of all, Welcome!

\n'},kiQV:function(e){e.exports={name:"ngx-select-ex",version:"3.6.1",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","publish.ng4":"npm publish dist --tag ng4","publish.ng5":"npm publish dist","publish.ng5-dev":"npm publish dist --tag dev",start:"ng serve",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","angular6","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-devkit/build-angular":"~0.8.0","@angular/animations":"^6.1.0","@angular/cli":"~6.2.3","@angular/common":"^6.1.0","@angular/compiler":"^6.1.0","@angular/compiler-cli":"^6.1.0","@angular/core":"^6.1.0","@angular/forms":"^6.1.0","@angular/http":"^6.1.0","@angular/language-service":"^6.1.0","@angular/platform-browser":"^6.1.0","@angular/platform-browser-dynamic":"^6.1.0","@angular/router":"^6.1.0","@types/jasmine":"~2.8.8","@types/jasminewd2":"~2.0.3","@types/marked":"^0.3.0","@types/node":"~8.9.4","@types/webpack":"^3.8.4",codecov:"^3.0.0",codelyzer:"~4.3.0",commitizen:"^2.9.6","core-js":"^2.5.4","cz-conventional-changelog":"^2.1.0","escape-string-regexp":"^1.0.5","html-loader":"^0.5.5",husky:"^0.14.3","jasmine-core":"~2.99.1","jasmine-spec-reporter":"~4.2.1",karma:"~3.0.0","karma-chrome-launcher":"~2.2.0","karma-coverage-istanbul-reporter":"~2.0.1","karma-jasmine":"~1.1.2","karma-jasmine-html-reporter":"^0.2.2",lodash:"^4.17.4","markdown-loader":"^2.0.2","ng-packagr":"^4.2.0","ngx-bootstrap":"^3.0.1","pre-commit":"^1.2.2",protractor:"~5.4.0",rxjs:"^6.3.3","rxjs-compat":"^6.3.3","standard-version":"^4.3.0","ts-node":"~7.0.0",tslint:"~5.11.0",typescript:"~2.9.2","zone.js":"~0.8.26"},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"}]}},ngBM:function(e,t){e.exports="import {Component} from '@angular/core';\nimport {INgxSelectOption} from '../../lib/ngx-select/ngx-select.interfaces';\n\n@Component({\n selector: 'multiple-demo',\n templateUrl: './multiple-demo.html'\n})\nexport class MultipleDemoComponent {\n public items: string[] = ['Amsterdam', 'Antwerp', 'Athens', 'Barcelona',\n 'Berlin', 'Birmingham', 'Bradford', 'Bremen', 'Brussels', 'Bucharest',\n 'Budapest', 'Cologne', 'Copenhagen', 'Dortmund', 'Dresden', 'Dublin', 'D\xfcsseldorf',\n 'Essen', 'Frankfurt', 'Genoa', 'Glasgow', 'Gothenburg', 'Hamburg', 'Hannover',\n 'Helsinki', 'Leeds', 'Leipzig', 'Lisbon', '\u0141\xf3d\u017a', 'London', 'Krak\xf3w', 'Madrid',\n 'M\xe1laga', 'Manchester', 'Marseille', 'Milan', 'Munich', 'Naples', 'Palermo',\n 'Paris', 'Pozna\u0144', 'Prague', 'Riga', 'Rome', 'Rotterdam', 'Seville', 'Sheffield',\n 'Sofia', 'Stockholm', 'Stuttgart', 'The Hague', 'Turin', 'Valencia', 'Vienna',\n 'Vilnius', 'Warsaw', 'Wroc\u0142aw', 'Zagreb', 'Zaragoza'];\n\n public ngxValue: any = [];\n public ngxDisabled = false;\n\n public doSelectOptions = (options: INgxSelectOption[]) => console.log('MultipleDemoComponent.doSelectOptions', options);\n}\n"},oxjq: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,"\\$&")}},rZW4:function(e,t){e.exports="import {Component, ViewEncapsulation} from '@angular/core';\nimport {DomSanitizer, SafeStyle} from '@angular/platform-browser';\n\nconst COLORS = [\n {'name': 'Blue 10', 'hex': '#C0E6FF'},\n {'name': 'Blue 20', 'hex': '#7CC7FF'},\n {'name': 'Blue 30', 'hex': '#5AAAFA', disabled: true},\n {'name': 'Blue 40', 'hex': '#5596E6'},\n {'name': 'Blue 50', 'hex': '#4178BE'},\n {'name': 'Blue 60', 'hex': '#325C80'},\n {'name': 'Blue 70', 'hex': '#264A60'},\n {'name': 'Blue 80', 'hex': '#1D3649'},\n {'name': 'Blue 90', 'hex': '#152935'},\n {'name': 'Blue 100', 'hex': '#010205'},\n {'name': 'Green 10', 'hex': '#C8F08F'},\n {'name': 'Green 20', 'hex': '#B4E051'},\n {'name': 'Green 30', 'hex': '#8CD211'},\n {'name': 'Green 40', 'hex': '#5AA700'},\n {'name': 'Green 50', 'hex': '#4B8400'},\n {'name': 'Green 60', 'hex': '#2D660A'},\n {'name': 'Green 70', 'hex': '#144D14'},\n {'name': 'Green 80', 'hex': '#0A3C02'},\n {'name': 'Green 90', 'hex': '#0C2808'},\n {'name': 'Green 100', 'hex': '#010200'},\n {'name': 'Red 10', 'hex': '#FFD2DD'},\n {'name': 'Red 20', 'hex': '#FFA5B4'},\n {'name': 'Red 30', 'hex': '#FF7D87'},\n {'name': 'Red 40', 'hex': '#FF5050'},\n {'name': 'Red 50', 'hex': '#E71D32'},\n {'name': 'Red 60', 'hex': '#AD1625'},\n {'name': 'Red 70', 'hex': '#8C101C'},\n {'name': 'Red 80', 'hex': '#6E0A1E'},\n {'name': 'Red 90', 'hex': '#4C0A17'},\n {'name': 'Red 100', 'hex': '#040001'},\n {'name': 'Yellow 10', 'hex': '#FDE876'},\n {'name': 'Yellow 20', 'hex': '#FDD600'},\n {'name': 'Yellow 30', 'hex': '#EFC100'},\n {'name': 'Yellow 40', 'hex': '#BE9B00'},\n {'name': 'Yellow 50', 'hex': '#8C7300'},\n {'name': 'Yellow 60', 'hex': '#735F00'},\n {'name': 'Yellow 70', 'hex': '#574A00'},\n {'name': 'Yellow 80', 'hex': '#3C3200'},\n {'name': 'Yellow 90', 'hex': '#281E00'},\n {'name': 'Yellow 100', 'hex': '#020100'}\n];\n\n@Component({\n selector: 'rich-demo',\n templateUrl: './rich-demo.html',\n styles: [`.color-box {\n display: inline-block;\n height: 14px;\n width: 14px;\n margin-right: 4px;\n border: 1px solid #000;\n }`],\n encapsulation: ViewEncapsulation.None // Enable dynamic HTML styles\n})\nexport class RichDemoComponent {\n public items: any[] = COLORS;\n\n public ngxValue: any = [];\n public ngxDisabled = false;\n\n constructor(public sanitizer: DomSanitizer) {\n }\n\n style(data: string): SafeStyle {\n return this.sanitizer.bypassSecurityTrustStyle(data);\n }\n}\n"},sAJ4: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"},wor0:function(e,t){e.exports='

Select a single city

\n
\n
\n \n \n

\n
\n
{{ngxControl.value | json}}
\n
\n
\n \n
\n
\n
\n'},xykP:function(e,t){e.exports='

Select a city by country

\n
\n
\n \n \n

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
\n'},zUnb:function(e,t,n){"use strict";n.r(t);var r=function(e,t){return(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])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;u--)(o=e[u])&&(l=(i<3?o(l):i>3?o(t,n,l):o(t,n))||l);return i>3&&l&&Object.defineProperty(t,n,l),l}function u(e,t){return function(n,r){t(n,r,e)}}function a(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function s(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)l.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return l}function d(){for(var e=[],t=0;t0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(X);function ae(e){return e}function se(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof o&&(n=e.pop()),null===r&&1===e.length&&e[0]instanceof P?e[0]:function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),ie(ae,e)}(n)(re(e,r))}function ce(){return function(e){return e.lift(new de(e))}}var de=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new fe(e,n),o=t.subscribe(r);return r.closed||(r.connection=n.connect()),o},e}(),fe=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return o(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)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}(T),pe=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return o(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 w).add(this.source.subscribe(new ge(this.getSubject(),this))),e.closed?(this._connection=null,e=w.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return ce()(this)},t}(P).prototype,he={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:pe._subscribe},_isComplete:{value:pe._isComplete,writable:!0},getSubject:{value:pe.getSubject},connect:{value:pe.connect},refCount:{value:pe.refCount}},ge=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return o(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}(B);function ve(){return new L}function ye(){return function(e){return ce()((t=ve,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,he);return r.source=e,r.subjectFactory=n,r})(e));var t}}function me(e){return{providedIn:e.providedIn||null,factory:e.factory,value:void 0}}var _e=function(){function e(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==t?me({providedIn:t.providedIn||"root",factory:t.factory}):void 0}return e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(),be="__parameters__";function we(e,t,n){var r=function(e){return function(){for(var t=[],n=0;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):De(l)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+e.replace(Ye,"\n ")}function nt(e,t){return new Error(tt(e,t))}var rt=void 0;function ot(e){var t=rt;return rt=e,t}function it(e,t){if(void 0===t&&(t=0),void 0===rt)throw new Error("inject() must be called from an injection context");if(null===rt){var n=e.ngInjectableDef;if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(8&t)return null;throw new Error("Injector: NOT_FOUND ["+De(e)+"]")}return rt.get(e,8&t?null:void 0,t)}function lt(e){for(var t=[],n=0;n0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==o}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:n})},e.prototype.whenStable=function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.findProviders=function(e,t,n){return[]},e}(),pn=function(){function e(){this._applications=new Map,hn.addToWindow(this)}return e.prototype.registerApplication=function(e,t){this._applications.set(e,t)},e.prototype.unregisterApplication=function(e){this._applications.delete(e)},e.prototype.unregisterAllApplications=function(){this._applications.clear()},e.prototype.getTestability=function(e){return this._applications.get(e)||null},e.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},e.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},e.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),hn.findTestabilityInTree(this,e,t)},l([a("design:paramtypes",[])],e)}(),hn=new(function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,n){return null},e}()),gn=!0,vn=!1,yn=new _e("AllowMultipleToken");function mn(){return vn=!0,gn}var _n=function(e,t){this.name=e,this.token=t};function bn(e,t,n){void 0===n&&(n=[]);var r="Platform: "+t,o=new _e(r);return function(t){void 0===t&&(t=[]);var i=wn();if(!i||i.injector.get(yn,!1))if(e)e(n.concat(t).concat({provide:o,useValue:!0}));else{var l=n.concat(t).concat({provide:o,useValue:!0});!function(e){if(cn&&!cn.destroyed&&!cn.injector.get(yn,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");cn=e.get(xn);var t=e.get(Vt,null);t&&t.forEach(function(e){return e()})}(Ue.create({providers:l,name:r}))}return function(e){var t=wn();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(o)}}function wn(){return cn&&!cn.destroyed?cn:null}var xn=function(){function e(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return e.prototype.bootstrapModuleFactory=function(e,t){var n,r=this,o="noop"===(n=t?t.ngZone:void 0)?new dn:("zone.js"===n?void 0:n)||new rn({enableLongStackTrace:mn()}),i=[{provide:rn,useValue:o}];return o.run(function(){var t=Ue.create({providers:i,parent:r.injector,name:e.moduleType.name}),n=e.create(t),l=n.injector.get(gt,null);if(!l)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return kn(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(e){l.handleError(e)}})}),function(e,t,o){try{var i=((l=n.injector.get(At)).runInitializers(),l.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return St(i)?i.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):i}catch(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}var l}(l,o)})},e.prototype.bootstrapModule=function(e,t){var n=this;void 0===t&&(t=[]);var r=this.injector.get(Bt),o=Cn({},t);return r.createCompiler([o]).compileModuleAsync(e).then(function(e){return n.bootstrapModuleFactory(e,o)})},e.prototype._moduleDoBootstrap=function(e){var t=e.injector.get(En);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+De(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 Cn(e,t){return Array.isArray(t)?t.reduce(Cn,e):i({},e,t)}var En=function(){function e(e,t,n,r,o,i){var l=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=mn(),this._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run(function(){l.tick()})}});var u=new P(function(e){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular(function(){e.next(l._stable),e.complete()})}),a=new P(function(e){var t;l._zone.runOutsideAngular(function(){t=l._zone.onStable.subscribe(function(){rn.assertNotInAngularZone(),Te(function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,e.next(!0))})})});var n=l._zone.onUnstable.subscribe(function(){rn.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=se(u,a.pipe(ye()))}var t;return t=e,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 Ht?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var o=n instanceof Qt?null:this._injector.get(Kt),i=n.create(Ue.NULL,[],t||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var l=i.injector.get(fn,null);return l&&i.injector.get(pn).registerApplication(i.location.nativeElement,l),this._loadComponent(i),mn()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},e.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,tn(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;kn(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Mt,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),kn(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=en("ApplicationRef#tick()"),e}();function kn(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var On=function(){},Sn=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({}),Tn=function(){},An=function(e){this.nativeElement=e},Dn=function(){function e(){this.dirty=!0,this._results=[],this.changes=new nn,this.length=0}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[Se()]=function(){return this._results[Se()]()},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}(),In=function(){},Nn=function(){},Vn=function(){},Pn=function(){function e(e,t,n){this._debugContext=n,this.nativeNode=e,t&&t instanceof Mn?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}(),Mn=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 o(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,d([o+1,0],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 function e(t,n,r){t.childNodes.forEach(function(t){t instanceof Mn&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return function e(t,n,r){t instanceof Mn&&t.childNodes.forEach(function(t){n(t)&&r.push(t),t instanceof Mn&&e(t,n,r)})}(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}(Pn),Rn=new Map;function jn(e){return Rn.get(e)||null}function Fn(e){Rn.set(e.nativeNode,e)}function Bn(e,t){var n=zn(e),r=zn(t);return n&&r?function(e,t,n){for(var r=e[Se()](),o=t[Se()]();;){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,Bn):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||Ae(e,t)}var Ln=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}(),Hn=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 zn(e){return!!Un(e)&&(Array.isArray(e)||!(e instanceof Map)&&Se()in e)}function Un(e){return null!==e&&("function"==typeof e||"object"==typeof e)}var Gn=function(){function e(){}return e.prototype.supports=function(e){return zn(e)},e.prototype.create=function(e){return new Wn(e)},e}(),qn=function(e,t){return t},Wn=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||qn}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',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return e.prototype.getInertBodyElement_XHR=function(e){e=""+e+"";try{e=encodeURI(e)}catch(e){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(null);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e=""+e+"";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(e){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},e.prototype.stripCustomNsAttrs=function(e){for(var t=e.attributes,n=t.length-1;0")}else this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=e.nodeName.toLowerCase();xr.hasOwnProperty(t)&&!mr.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push(Ar(e))},e.prototype.checkClobberedElement=function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t},e}(),Sr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Tr=/([^\#-~ |!])/g;function Ar(e){return e.replace(/&/g,"&").replace(Sr,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Tr,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function Dr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Ir=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Nr=/^url\(([^)]+)\)$/,Vr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({}),Pr=function(){};function Mr(e,t,n){var r=e.state,o=1792&r;return o===t?(e.state=-1793&r|n,e.initIndex=-1,!0):o===n}function Rr(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function jr(e,t){return e.nodes[t]}function Fr(e,t){return e.nodes[t]}function Br(e,t){return e.nodes[t]}function Lr(e,t){return e.nodes[t]}function Hr(e,t){return e.nodes[t]}var zr={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};function Ur(e,t,n,r){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+t+"'. Current value: '"+n+"'.";return r&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){var n=new Error(e);return Gr(n,t),n}(o,e)}function Gr(e,t){e[st]=t,e[dt]=t.logError.bind(t)}function qr(e){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+e)}var Wr=function(){},Zr=new Map;function $r(e){var t=Zr.get(e);return t||(t=De(e)+"_"+Zr.size,Zr.set(e,t)),t}function Qr(e,t,n,r){if(Ln.isWrapped(r)){r=Ln.unwrap(r);var o=e.def.nodes[t].bindingIndex+n,i=Ln.unwrap(e.oldValues[o]);e.oldValues[o]=new Ln(i)}return r}var Kr="$$undefined",Yr="$$empty";function Jr(e){return{id:Kr,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}var Xr=0;function eo(e,t,n,r){return!(!(2&e.state)&&Ae(e.oldValues[t.bindingIndex+n],r))}function to(e,t,n,r){return!!eo(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function no(e,t,n,r){var o=e.oldValues[t.bindingIndex+n];if(1&e.state||!Bn(o,r)){var i=t.bindings[n].name;throw Ur(zr.createDebugContext(e,t.nodeIndex),i+": "+o,i+": "+r,0!=(1&e.state))}}function ro(e){for(var t=e;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function oo(e,t){for(var n=e;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function io(e,t,n,r){try{return ro(33554432&e.def.nodes[t].flags?Fr(e,t).componentView:e),zr.handleEvent(e,t,n,r)}catch(t){e.root.errorHandler.handleError(t)}}function lo(e){return e.parent?Fr(e.parent,e.parentNodeDef.nodeIndex):null}function uo(e){return e.parent?e.parentNodeDef.parent:null}function ao(e,t){switch(201347067&t.flags){case 1:return Fr(e,t.nodeIndex).renderElement;case 2:return jr(e,t.nodeIndex).renderText}}function so(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function co(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function fo(e){return 1<-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var s=e._providers.length;return e._def.providersByKey[t.tokenKey]={flags:5120,value:t.token.ngInjectableDef.factory,deps:[],index:s,token:t.token},e._providers[s]=No,e._providers[s]=Fo(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{ot(i)}}function Fo(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var r=n.length;switch(r){case 0:return new t;case 1:return new t(jo(e,n[0]));case 2:return new t(jo(e,n[0]),jo(e,n[1]));case 3:return new t(jo(e,n[0]),jo(e,n[1]),jo(e,n[2]));default:for(var o=new Array(r),i=0;i=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,Uo(n,t),zr.dirtyParentQueries(r),Ho(r),r}function Lo(e,t,n){var r=t?ao(t,t.def.lastRenderRootNode):e.renderElement;mo(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Ho(e){mo(e,3,null,null,void 0)}function zo(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Uo(e,t){t>=e.length-1?e.pop():e.splice(t,1)}var Go=new Object,qo=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 o(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=yo(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,l=zr.createRootView(e,t||[],n,o,r,Go),u=Br(l,i).instance;return n&&l.renderer.setAttribute(Fr(l,0).renderElement,"ng-version",at.full),new Wo(l,new Ko(l),u)},t}(Ht),Wo=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 o(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new An(Fr(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new ei(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}(Lt);function Zo(e,t,n){return new $o(e,t,n)}var $o=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 An(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new ei(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=uo(e),e=e.parent;return e?new ei(e,t):new ei(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=Bo(this._data,e);zr.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new Ko(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 Qt||(o=i.get(Kt));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,zo(i,r,o),function(e,t){var n=lo(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),zr.dirtyParentQueries(o),Lo(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],Uo(i,r),null==o&&(o=i.length),zo(i,o,l),zr.dirtyParentQueries(l),Ho(l),Lo(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=Bo(this._data,e);t&&zr.destroyView(t)},e.prototype.detach=function(e){var t=Bo(this._data,e);return t?new Ko(t):null},e}();function Qo(e){return new Ko(e)}var Ko=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return mo(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(){ro(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{zr.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){zr.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)),zr.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Ho(this._view),zr.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 Yo(e,t){return new Jo(e,t)}var Jo=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return o(t,e),t.prototype.createEmbeddedView=function(e){return new Ko(zr.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new An(Fr(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(In);function Xo(e,t){return new ei(e,t)}var ei=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=Ue.THROW_IF_NOT_FOUND),zr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:$r(e)},t)},e}();function ti(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=Fr(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return jr(e,n.nodeIndex).renderText;if(20240&n.flags)return Br(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function ni(e){return new ri(e.renderer)}var ri=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=c(Eo(t),2),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 Ci(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(ki(e,t,n,o[0]));case 2:return r(ki(e,t,n,o[0]),ki(e,t,n,o[1]));case 3:return r(ki(e,t,n,o[0]),ki(e,t,n,o[1]),ki(e,t,n,o[2]));default:for(var l=Array(i),u=0;u0)s=g,qi(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)&&qi(s)?s.renderParent:s}}return{factory:null,nodeFlags:l,rootNodeFlags:u,nodeMatchedQueries:a,flags:e,nodes:t,updateDirectives:n||Wr,updateRenderer:r||Wr,handleEvent:function(e,n,r,o){return t[n].element.handleEvent(e,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:p}}function qi(e){return 0!=(1&e.flags)&&null===e.element.name}function Wi(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 Zi(e,t,n,r){var o=Ki(e.root,e.renderer,e,t,n);return Yi(o,e.component,r),Ji(o),o}function $i(e,t,n){var r=Ki(e,e.renderer,null,null,t);return Yi(r,n,n),Ji(r),r}function Qi(e,t,n,r){var o,i=t.element.componentRendererType;return o=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,Ki(e.root,o,e,t.element.componentProvider,n)}function Ki(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 Yi(e,t,n){e.component=t,e.context=n}function Ji(e){var t;so(e)&&(t=Fr(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,o=0;o0&&Io(e,t,0,n)&&(p=!0),f>1&&Io(e,t,1,r)&&(p=!0),f>2&&Io(e,t,2,o)&&(p=!0),f>3&&Io(e,t,3,i)&&(p=!0),f>4&&Io(e,t,4,l)&&(p=!0),f>5&&Io(e,t,5,u)&&(p=!0),f>6&&Io(e,t,6,a)&&(p=!0),f>7&&Io(e,t,7,s)&&(p=!0),f>8&&Io(e,t,8,c)&&(p=!0),f>9&&Io(e,t,9,d)&&(p=!0),p}(e,t,n,r,o,i,l,u,a,s,c,d);case 2:return function(e,t,n,r,o,i,l,u,a,s,c,d){var f=!1,p=t.bindings,h=p.length;if(h>0&&to(e,t,0,n)&&(f=!0),h>1&&to(e,t,1,r)&&(f=!0),h>2&&to(e,t,2,o)&&(f=!0),h>3&&to(e,t,3,i)&&(f=!0),h>4&&to(e,t,4,l)&&(f=!0),h>5&&to(e,t,5,u)&&(f=!0),h>6&&to(e,t,6,a)&&(f=!0),h>7&&to(e,t,7,s)&&(f=!0),h>8&&to(e,t,8,c)&&(f=!0),h>9&&to(e,t,9,d)&&(f=!0),f){var g=t.text.prefix;h>0&&(g+=Ui(n,p[0])),h>1&&(g+=Ui(r,p[1])),h>2&&(g+=Ui(o,p[2])),h>3&&(g+=Ui(i,p[3])),h>4&&(g+=Ui(l,p[4])),h>5&&(g+=Ui(u,p[5])),h>6&&(g+=Ui(a,p[6])),h>7&&(g+=Ui(s,p[7])),h>8&&(g+=Ui(c,p[8])),h>9&&(g+=Ui(d,p[9]));var v=jr(e,t.nodeIndex).renderText;e.renderer.setValue(v,g)}return f}(e,t,n,r,o,i,l,u,a,s,c,d);case 16384:return function(e,t,n,r,o,i,l,u,a,s,c,d){var f=Br(e,t.nodeIndex),p=f.instance,h=!1,g=void 0,v=t.bindings.length;return v>0&&eo(e,t,0,n)&&(h=!0,g=Si(e,f,t,0,n,g)),v>1&&eo(e,t,1,r)&&(h=!0,g=Si(e,f,t,1,r,g)),v>2&&eo(e,t,2,o)&&(h=!0,g=Si(e,f,t,2,o,g)),v>3&&eo(e,t,3,i)&&(h=!0,g=Si(e,f,t,3,i,g)),v>4&&eo(e,t,4,l)&&(h=!0,g=Si(e,f,t,4,l,g)),v>5&&eo(e,t,5,u)&&(h=!0,g=Si(e,f,t,5,u,g)),v>6&&eo(e,t,6,a)&&(h=!0,g=Si(e,f,t,6,a,g)),v>7&&eo(e,t,7,s)&&(h=!0,g=Si(e,f,t,7,s,g)),v>8&&eo(e,t,8,c)&&(h=!0,g=Si(e,f,t,8,c,g)),v>9&&eo(e,t,9,d)&&(h=!0,g=Si(e,f,t,9,d,g)),g&&p.ngOnChanges(g),65536&t.flags&&Rr(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),h}(e,t,n,r,o,i,l,u,a,s,c,d);case 32:case 64:case 128:return function(e,t,n,r,o,i,l,u,a,s,c,d){var f=t.bindings,p=!1,h=f.length;if(h>0&&to(e,t,0,n)&&(p=!0),h>1&&to(e,t,1,r)&&(p=!0),h>2&&to(e,t,2,o)&&(p=!0),h>3&&to(e,t,3,i)&&(p=!0),h>4&&to(e,t,4,l)&&(p=!0),h>5&&to(e,t,5,u)&&(p=!0),h>6&&to(e,t,6,a)&&(p=!0),h>7&&to(e,t,7,s)&&(p=!0),h>8&&to(e,t,8,c)&&(p=!0),h>9&&to(e,t,9,d)&&(p=!0),p){var g=Lr(e,t.nodeIndex),v=void 0;switch(201347067&t.flags){case 32:v=new Array(f.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]=d);break;case 64:v={},h>0&&(v[f[0].name]=n),h>1&&(v[f[1].name]=r),h>2&&(v[f[2].name]=o),h>3&&(v[f[3].name]=i),h>4&&(v[f[4].name]=l),h>5&&(v[f[5].name]=u),h>6&&(v[f[6].name]=a),h>7&&(v[f[7].name]=s),h>8&&(v[f[8].name]=c),h>9&&(v[f[9].name]=d);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,d)}}g.value=v}return p}(e,t,n,r,o,i,l,u,a,s,c,d);default:throw"unreachable"}}(e,t,r,o,i,l,u,a,s,c,f,p):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,o=0;o0&&no(e,t,0,n),f>1&&no(e,t,1,r),f>2&&no(e,t,2,o),f>3&&no(e,t,3,i),f>4&&no(e,t,4,l),f>5&&no(e,t,5,u),f>6&&no(e,t,6,a),f>7&&no(e,t,7,s),f>8&&no(e,t,8,c),f>9&&no(e,t,9,d)}(e,t,r,o,i,l,u,a,s,c,d,f):function(e,t,n){for(var r=0;r0){var i=new Set(e.modules);bl.forEach(function(t,r){if(i.has(r.ngInjectableDef.providedIn)){var o={token:r,flags:t.flags|(n?4096:0),deps:ho(t.deps),value:t.value,index:e.providers.length};e.providers.push(o),e.providersByKey[$r(r)]=o}})}}(e=e.factory(function(){return Wr})),e):e}(r))}var _l=new Map,bl=new Map,wl=new Map;function xl(e){_l.set(e.token,e),"function"==typeof e.token&&e.token.ngInjectableDef&&"function"==typeof e.token.ngInjectableDef.providedIn&&bl.set(e.token,e)}function Cl(e,t){var n=yo(yo(t.viewDefFactory).nodes[0].element.componentView);wl.set(e,n)}function El(){_l.clear(),bl.clear(),wl.clear()}function kl(e){if(0===_l.size)return e;var t=function(e){for(var t=[],n=null,r=0;r=f.length){var p=f[d]=ua(t,d,r,o,u,null);if(!Ru&&Mu){var h=Mu.tNode;h.next=p,h.dynamicContainerNode&&(h.dynamicContainerNode.next=p)}}c.tNode=f[d],Ru&&(Fu=null,(null==Mu.tNode.child&&Mu.view===Lu||2===Mu.tNode.type)&&(Mu.tNode.child=c.tNode))}if(2==(2&t)&&s){var g=i;g[ou]=c,Zu&&(g[Xl].node=c.tNode)}return Mu=c,Ru=!0,c}function ea(e,t,n,r){var o,i=Ru,l=Mu;if(null==e.data[eu]&&e.data[au]&&!t.template)ca(e.data[au]);else try{Ru=!0,Mu=null,o=$u(e.data,e),oa(),t.template(r,n),2&r?Ku():e.data[Xl].firstTemplatePass=Zu=!1}finally{Qu(o,1==(1&r)),Ru=i,Mu=l}return e}function ta(e,t,n,r){var o=$u(t,e);try{Pu.begin&&Pu.begin(),r?(oa(),r(na(t),n),Ku()):(Wu||(gu(Lu,ju,Bu),vu(Hu,ju.contentHooks,ju.contentCheckHooks,Bu)),Yu(Gu),aa(0,Jl))}finally{Pu.end&&Pu.end(),Qu(o)}}function na(e){return 1&e[ru]?3:2}var ra=null;function oa(){ra=null}function ia(e,t,n,r,o){return{id:e,template:t,viewQuery:o,node:null,data:qu.slice(),childIndex:-1,bindingStartIndex:-1,directives:null,firstTemplatePass:!0,initHooks:null,checkHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,pipeDestroyHooks:null,cleanup:null,hostBindings:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof n?n():n,pipeRegistry:"function"==typeof r?r():r,currentMatches:null}}function la(e,t){Pu=e;var n=e.createRenderer(null,null);return"string"==typeof t?wu(n)?n.selectRootElement(t):n.querySelector(t):t}function ua(e,t,n,r,o,i){return{type:e,index:t,flags:0,tagName:n,attrs:r,localNames:null,initialInputs:void 0,inputs:void 0,outputs:void 0,tViews:i,next:null,child:null,parent:o,dynamicContainerNode:null,detached:null,stylingTemplate:null,projection:null}}function aa(e,t){var n=Lu[t],r=n.data;sa(r)&&6&r[ru]&&pa(r,n,Hu[e])}function sa(e){return 8==(8&e[ru])}function ca(e){for(var t=0;t=Jl?t[Xl].childIndex>-1&&(n=Du(t)):t[_u].length&&(n=t[_u][0].data),null==n){for(;t&&!t[tu]&&t!==e;)Nu(t),t=Iu(t,e);Nu(t||e),n=t&&t[tu]}t=n}}(e),e[ru]|=32},e.prototype.onDestroy=function(e){var t,n;n=e,function(e){return e[uu]||(e[uu]=[])}(t=this._view).push(n),t[Xl].firstTemplatePass&&function(e){return e[Xl].cleanup||(e[Xl].cleanup=[])}(t).push(t[uu].length-1,null)},e.prototype.markForCheck=function(){!function(e){for(var t=e;null!=t[eu];)t[ru]|=4,t=t[eu];var n,r;t[ru]|=4,(n=t[au]).clean==Uu&&(n.clean=new Promise(function(e){return r=e}),n.scheduler(function(){ca(n),r(null),n.clean=Uu}))}(this._view)},e.prototype.detach=function(){this._view[ru]&=-9},e.prototype.reattach=function(){this._view[ru]|=8},e.prototype.detectChanges=function(){fa(this.context)},e.prototype.checkNoChanges=function(){!function(e){Wu=!0;try{fa(e)}finally{Wu=!1}}(this.context)},e.prototype.attachToViewContainerRef=function(e){this._viewContainerRef=e},e.prototype.detachFromAppRef=function(){this._appRef=null},e.prototype.attachToAppRef=function(e){this._appRef=e},e}(),ma=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.resolveComponentFactory=function(e){return new xa(e.ngComponentDef)},t}(Zt);function _a(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var ba=new _e("ROOT_CONTEXT_TOKEN",{providedIn:"root",factory:function(){return va(it(wa))}}),wa=new _e("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return requestAnimationFrame.bind(window)}}),xa=function(e){function t(t){var n=e.call(this)||this;return n.componentDef=t,n.componentType=t.type,n.selector=t.selectors[0][0],n.ngContentSelectors=[],n}return o(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){return _a(this.componentDef.inputs)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){return _a(this.componentDef.outputs)},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){var o,i,l=void 0===n,u=r?r.injector.get(On):xu,a=l?(o=this.selector,wu(i=u.createRenderer(null,this.componentDef.rendererType)||Vu)?i.createElement(o,ra):null===ra?i.createElement(o):i.createElementNS(ra,o)):la(u,n),s=r&&!l?r.injector.get(ba):va(requestAnimationFrame.bind(window)),c=Ju(u.createRenderer(a,this.componentDef.rendererType),ia(-1,null,null,null,null),s,this.componentDef.onPush?4:2);c[su]=r&&r.injector||null;var d,f,p=$u(c,null);try{if(u.begin&&u.begin(),f=function(e,t,n,r){Ru=!1,Mu=null;var o,i=Xu(0,3,t,null,null,Ju(Vu,(o=n.template).ngPrivateData||(o.ngPrivateData=ia(-1,o,n.directiveDefs,n.pipeDefs,n.viewQuery)),null,n.onPush?4:2,r));return Zu&&(i.tNode.flags=4096,n.diPublic&&n.diPublic(n),ju.directives=[n]),i}(0,a,this.componentDef),s.components.push(d=function(e,t,n){if(Object.defineProperty(t,zu,{enumerable:!1,value:Mu}),null==Hu&&(Lu[lu]=Hu=[]),Hu[e]=t,Zu){var r=Mu.tNode.flags;0==(4095&r)?Mu.tNode.flags=e<<14|4096&r|1:Mu.tNode.flags++}else{var o=n.diPublic;o&&o(n)}return null!=n.attributes&&3==Mu.tNode.type&&function(e,t){for(var n=wu(Vu),r=0;r>14,r=n+(4095&e),o=n;o0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r0;l||(l=e[i]=[]);var a=Ys(t)?Zone.root:Zone.current;if(0===l.length)l.push({zone:a,handler:o});else{for(var s=!1,c=0;c-1},l([u(0,Ve(_s)),u(1,Ve(tc)),u(3,Pe()),u(3,Ve(nc))],t)}(Ds),ic=["alt","control","meta","shift"],lc={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},uc=function(e){function t(t){return e.call(this,t)||this}var n;return o(t,e),n=t,t.prototype.supports=function(e){return null!=n.parseEventName(e)},t.prototype.addEventListener=function(e,t,r){var o=n.parseEventName(t),i=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return ds().onAndCancel(e,o.domEventName,i)})},t.parseEventName=function(e){var t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;var o=n._normalizeKey(t.pop()),i="";if(ic.forEach(function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),i+=e+".")}),i+=o,0!=t.length||0===o.length)return null;var l={};return l.domEventName=r,l.fullKey=i,l},t.getEventFullKey=function(e){var t="",n=ds().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),ic.forEach(function(r){r!=n&&(0,lc[r])(e)&&(t+=r+".")}),t+=n},t.eventCallback=function(e,t,r){return function(o){n.getEventFullKey(o)===e&&r.runGuarded(function(){return t(o)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},n=l([u(0,Ve(_s))],t)}(Ds),ac=function(){},sc=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return o(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case Vr.NONE:return t;case Vr.HTML:return t instanceof dc?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){var n=null;try{yr=yr||new dr(e);var r=t?String(t):"";n=yr.getInertBodyElement(r);var o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=yr.getInertBodyElement(r)}while(r!==i);var l=new Or,u=l.sanitizeChildren(Dr(n)||n);return mn()&&l.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),u}finally{if(n)for(var a=Dr(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}(this._doc,String(t)));case Vr.STYLE:return t instanceof fc?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";var t=e.match(Nr);return t&&hr(t[1])===t[1]||e.match(Ir)&&function(e){for(var t=!0,n=!0,r=0;re?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return wc(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return wc(e.value)?null:Ec.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(wc(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(wc(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(Oc);return 0==t.length?null:function(e){return Tc(function(e,n){return t.map(function(t){return t(e)})}(e))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(Oc);return 0==t.length?null:function(e){return function e(){for(var t,n=[],r=0;r=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}(),Bc=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(jc),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}(),Lc=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}(),Hc='\n

\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',zc='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',Uc='\n
\n
\n \n
\n
',Gc=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 "+Hc)},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 '+zc+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+Uc)},e.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+Hc)},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 "+zc)},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.ngModelWarning=function(e){console.warn("\n It looks like you're using ngModel on the same form field as "+e+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===e?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},e}();function qc(e,t){return d(t.path,[e])}function Wc(e,t){e||$c(t,"Cannot find control with"),t.valueAccessor||$c(t,"No value accessor for form control with"),e.validator=kc.compose([e.validator,t.validator]),e.asyncValidator=kc.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&&Zc(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&&Zc(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 Zc(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function $c(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 Qc(e){return null!=e?kc.compose(e.map(Vc)):null}function Kc(e){return null!=e?kc.composeAsync(e.map(Pc)):null}function Yc(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Ae(t,n.currentValue)}var Jc=[Dc,Lc,Mc,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=Ae}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){var t,n;try{for(var r=s(Array.from(this._optionMap.keys())),o=r.next();!o.done;o=r.next()){var i=o.value;if(this._compareWith(this._optionMap.get(i),e))return i}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return null},e.prototype._getOptionValue=function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e},e}(),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=Ae}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){var t,n=this;if(this.value=e,Array.isArray(e)){var r=e.map(function(e){return n._getOptionId(e)});t=function(e,t){e._setSelected(r.indexOf(t.toString())>-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}(id),ad=function(e){function t(t,n,r){var o=e.call(this,nd(n),rd(r,n))||this;return o.controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return o(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 ld?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(){var e,t;try{for(var n=s(this.controls),r=n.next();!r.done;r=n.next())if(r.value.enabled)return!1}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return this.controls.length>0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(id),sd=Promise.resolve(null),cd=function(e){function t(t,n){var r=e.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new nn,r.form=new ud({},Qc(t),Kc(n)),r}return o(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;sd.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Wc(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;sd.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;sd.then(function(){var n=t._findContainer(e.path),r=new ud({});(function(e,t){null==e&&$c(t,"Cannot find control with"),e.validator=kc.compose([e.validator,t.validator]),e.asyncValidator=kc.composeAsync([e.asyncValidator,t.asyncValidator])})(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(e){var t=this;sd.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;sd.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},l([u(0,Pe()),u(0,Me()),u(0,Ve(xc)),u(1,Pe()),u(1,Me()),u(1,Ve(Cc))],t)}(bc),dd=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 '+Hc+'\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 "+zc+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+Uc)},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 "+zc+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+Uc)},e}(),fd=function(e){function t(t,n,r){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=r,o}var n;return o(t,e),n=t,t.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof cd||dd.modelGroupParentException()},n=l([u(0,je()),u(0,Re()),u(1,Pe()),u(1,Me()),u(1,Ve(xc)),u(2,Pe()),u(2,Me()),u(2,Ve(Cc))],t)}(ed),pd=Promise.resolve(null),hd=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.control=new ld,i._registered=!1,i.update=new nn,i._parent=t,i._rawValidators=n||[],i._rawAsyncValidators=r||[],i.valueAccessor=Xc(i,o),i}return o(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),Yc(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?qc(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 Qc(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return Kc(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(){Wc(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 fd)&&this._parent instanceof ed?dd.formGroupNameException():this._parent instanceof fd||this._parent instanceof cd||dd.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||dd.missingNameException()},t.prototype._updateValue=function(e){var t=this;pd.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;pd.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})},l([u(0,Pe()),u(0,je()),u(1,Pe()),u(1,Me()),u(1,Ve(xc)),u(2,Pe()),u(2,Me()),u(2,Ve(Cc)),u(3,Pe()),u(3,Me()),u(3,Ve(Ac))],t)}(jc),gd=new _e("NgModelWithFormControlWarning"),vd=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i._ngModelWarningConfig=o,i.update=new nn,i._ngModelWarningSent=!1,i._rawValidators=t||[],i._rawAsyncValidators=n||[],i.valueAccessor=Xc(i,r),i}var n;return o(t,e),n=t,Object.defineProperty(t.prototype,"isDisabled",{set:function(e){Gc.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){var t,r,o,i;this._isControlChanged(e)&&(Wc(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),Yc(e,this.viewModel)&&(t="formControl",r=n,o=this,i=this._ngModelWarningConfig,mn()&&"never"!==i&&((null!==i&&"once"!==i||r._ngModelWarningSentOnce)&&("always"!==i||o._ngModelWarningSent)||(Gc.ngModelWarning(t),r._ngModelWarningSentOnce=!0,o._ngModelWarningSent=!0)),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 Qc(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return Kc(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._ngModelWarningSentOnce=!1,n=l([u(0,Pe()),u(0,Me()),u(0,Ve(xc)),u(1,Pe()),u(1,Me()),u(1,Ve(Cc)),u(2,Pe()),u(2,Me()),u(2,Ve(Ac)),u(3,Pe()),u(3,Ve(gd))],t)}(jc),yd=function(){function e(){}return e.prototype.group=function(e,t){void 0===t&&(t=null);var n=this._reduceControls(e);return new ud(n,null!=t?t.validator:null,null!=t?t.asyncValidator:null)},e.prototype.control=function(e,t,n){return new ld(e,t,n)},e.prototype.array=function(e,t,n){var r=this,o=e.map(function(e){return r._createControl(e)});return new ad(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 ld||e instanceof ud||e instanceof ad?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)},e}(),md=function(){},_d=function(){},bd=function(){function e(){}var t;return t=e,e.withConfig=function(e){return{ngModule:t,providers:[{provide:gd,useValue:e.warnOnNgModelWithFormControl}]}},e}(),wd=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return o(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 j;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(L);function xd(){for(var e=[],t=0;t=2&&(n=!0),function(r){return r.lift(new Dd(e,t,n))}}P.prototype.combineLatest=function(){for(var e=[],t=0;t0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o=2?function(n){return N(Ad(e,t),Pd(1),(void 0===(r=t)&&(r=null),function(e){return e.lift(new jd(r))}))(n);var r}:function(t){return N(Ad(function(t,n,r){return e(t,n,r+1)}),Pd(1))(t)}}(Bd,[])(this)};var Ld=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new Hd(e,this.predicate,this.thisArg))},e}(),Hd=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=r,o.count=0,o}return o(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}(T);P.prototype.filter=function(e,t){return function(e,t){return function(n){return n.lift(new Ld(e,t))}}(e,t)(this)},P.prototype.share=function(){return ye()(this)},P.prototype.merge=function(){for(var e=[],t=0;t$&"):this.text)),this.cacheRenderedText},e}(),Qd=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}(),Kd=function(e){this.template=e},Yd=function(e){this.template=e},Jd=function(e){this.template=e},Xd=qd,ef=Wd,tf=new _e("NGX_SELECT_OPTIONS"),nf=function(e){return e[e.first=0]="first",e[e.previous=1]="previous",e[e.next=2]="next",e[e.last=3]="last",e[e.firstSelected=4]="firstSelected",e[e.firstIfOptionActiveInvisible=5]="firstIfOptionActiveInvisible",e}({});function rf(e,t){return t in e}var of=function(){function e(e,t,n,r){var o,i=this;this.sanitizer=t,this.cd=n,this.optionValueField="id",this.optionTextField="text",this.optGroupLabelField="label",this.optGroupOptionsField="options",this.multiple=!1,this.allowClear=!1,this.placeholder="",this.noAutoComplete=!1,this.disabled=!1,this.defaultValue=[],this.autoSelectSingleOption=!1,this.autoClearSearch=!1,this.noResultsFound="No results found",this.size="default",this.autoActiveOnMouseEnter=!0,this.keyCodeToRemoveSelected="Delete",this.keyCodeToOptionsOpen=["Enter","NumpadEnter"],this.keyCodeToOptionsClose="Escape",this.keyCodeToOptionsSelect=["Enter","NumpadEnter"],this.keyCodeToNavigateFirst="ArrowLeft",this.keyCodeToNavigatePrevious="ArrowUp",this.keyCodeToNavigateNext="ArrowDown",this.keyCodeToNavigateLast="ArrowRight",this.typed=new nn,this.focus=new nn,this.blur=new nn,this.open=new nn,this.close=new nn,this.select=new nn,this.remove=new nn,this.navigated=new nn,this.selectionChanges=new nn,this.optionsOpened=!1,this.actualValue=[],this.subjOptions=new wd([]),this.subjSearchText=new wd(""),this.subjOptionsSelected=new wd([]),this.subjExternalValue=new wd([]),this.subjDefaultValue=new wd([]),this.subjRegisterOnChange=new L,this._focusToInput=!1,this.isFocused=!1,this.onChange=function(e){return e},this.onTouched=function(){return null},Object.assign(this,r),this.itemsDiffer=e.find([]).create(null),this.defaultValueDiffer=e.find([]).create(null),this.typed.subscribe(function(e){return i.subjSearchText.next(e)}),this.subjOptionsSelected.subscribe(function(e){return i.selectionChanges.emit(e)});var l=this.subjExternalValue.map(function(e){return o=null===e?[]:[].concat(e)}).merge(this.subjOptionsSelected.map(function(e){return e.map(function(e){return e.value})})).combineLatest(this.subjDefaultValue,function(e,t){var n=Xd.isEqual(e,t)?[]:e;return n.length?n:t}).distinctUntilChanged(function(e,t){return Xd.isEqual(e,t)}).share();l.combineLatest(this.subjRegisterOnChange,function(e){return e}).subscribe(function(e){i.actualValue=e,Xd.isEqual(e,o)||(o=e,i.onChange(i.multiple?e:e.length?e[0]:null))}),this.subjOptions.flatMap(function(e){return P.from(e).flatMap(function(e){return e instanceof $d?xd(e):e instanceof Qd?oe(e.options):us}).toArray()}).combineLatest(l,function(e,t){oe(e).filter(function(e){return-1!==t.indexOf(e.value)}).toArray().filter(function(e){if(i.keepSelectedItems){var t=e.map(function(e){return e.value});e=i.subjOptionsSelected.value.filter(function(e){return-1===t.indexOf(e.value)}).concat(e)}return!Xd.isEqual(e,i.subjOptionsSelected.value)}).subscribe(function(e){i.subjOptionsSelected.next(e),i.cd.markForCheck()})}).subscribe(),this.subjOptions.combineLatest(this.subjOptionsSelected,this.subjSearchText,function(e,t,n){return i.optionsFiltered=i.filterOptions(n,e,t),i.cacheOptionsFilteredFlat=null,i.navigateOption(nf.firstIfOptionActiveInvisible),t}).flatMap(function(e){return i.optionsFilteredFlat().filter(function(t){return i.autoSelectSingleOption&&1===t.length&&!e.length})}).subscribe(function(e){i.subjOptionsSelected.next(e),i.cd.markForCheck()})}return Object.defineProperty(e.prototype,"inputText",{get:function(){return this.inputElRef&&this.inputElRef.nativeElement?this.inputElRef.nativeElement.value:""},enumerable:!0,configurable:!0}),e.prototype.setFormControlSize=function(e,t){return void 0===e&&(e={}),void 0===t&&(t=!0),Object.assign(t?{"form-control-sm input-sm":"small"===this.size,"form-control-lg input-lg":"large"===this.size}:{},e)},e.prototype.setBtnSize=function(){return{"btn-sm":"small"===this.size,"btn-lg":"large"===this.size}},Object.defineProperty(e.prototype,"optionsSelected",{get:function(){return this.subjOptionsSelected.value},enumerable:!0,configurable:!0}),e.prototype.mainClicked=function(e){e.clickedSelectComponent=this,this.isFocused||(this.isFocused=!0,this.focus.emit())},e.prototype.documentClick=function(e){e.clickedSelectComponent!==this&&(this.optionsOpened&&(this.optionsClose(),this.cd.detectChanges()),this.isFocused&&(this.isFocused=!1,this.blur.emit()))},e.prototype.optionsFilteredFlat=function(){var e=this;return this.cacheOptionsFilteredFlat?xd(this.cacheOptionsFilteredFlat):oe(this.optionsFiltered).flatMap(function(e){return e instanceof $d?xd(e):e instanceof Qd?oe(e.optionsFiltered):us}).filter(function(e){return!e.disabled}).toArray().do(function(t){return e.cacheOptionsFilteredFlat=t})},e.prototype.navigateOption=function(e){var t=this;this.optionsFilteredFlat().map(function(n){var r,o={index:-1,activeOption:null,filteredOptionList:n};switch(e){case nf.first:o.index=0;break;case nf.previous:r=n.indexOf(t.optionActive)-1,o.index=r>=0?r:n.length-1;break;case nf.next:r=n.indexOf(t.optionActive)+1,o.index=r0?i:0}return o.activeOption=n[o.index],o}).subscribe(function(e){return t.optionActivate(e)})},e.prototype.ngDoCheck=function(){this.itemsDiffer.diff(this.items)&&this.subjOptions.next(this.buildOptions(this.items));var e=this.defaultValue?[].concat(this.defaultValue):[];this.defaultValueDiffer.diff(e)&&this.subjDefaultValue.next(e)},e.prototype.ngAfterContentChecked=function(){this._focusToInput&&this.checkInputVisibility()&&this.inputElRef&&this.inputElRef.nativeElement!==document.activeElement&&(this._focusToInput=!1,this.inputElRef.nativeElement.focus())},e.prototype.canClearNotMultiple=function(){return this.allowClear&&!!this.subjOptionsSelected.value.length&&(!this.subjDefaultValue.value.length||this.subjDefaultValue.value[0]!==this.actualValue[0])},e.prototype.focusToInput=function(){this._focusToInput=!0},e.prototype.inputKeyDown=function(e){var t=[].concat(this.keyCodeToOptionsSelect,this.keyCodeToNavigateFirst,this.keyCodeToNavigatePrevious,this.keyCodeToNavigateNext,this.keyCodeToNavigateLast),n=[].concat(this.keyCodeToOptionsOpen,this.keyCodeToRemoveSelected);if(this.optionsOpened&&-1!==t.indexOf(e.code))switch(e.preventDefault(),e.stopPropagation(),e.code){case[].concat(this.keyCodeToOptionsSelect).indexOf(e.code)+1&&e.code:this.optionSelect(this.optionActive),this.navigateOption(nf.next);break;case this.keyCodeToNavigateFirst:this.navigateOption(nf.first);break;case this.keyCodeToNavigatePrevious:this.navigateOption(nf.previous);break;case this.keyCodeToNavigateLast:this.navigateOption(nf.last);break;case this.keyCodeToNavigateNext:this.navigateOption(nf.next)}else if(!this.optionsOpened&&-1!==n.indexOf(e.code))switch(e.preventDefault(),e.stopPropagation(),e.code){case[].concat(this.keyCodeToOptionsOpen).indexOf(e.code)+1&&e.code:this.optionsOpen();break;case this.keyCodeToRemoveSelected:this.optionRemove(this.subjOptionsSelected.value[this.subjOptionsSelected.value.length-1],e)}},e.prototype.mainKeyUp=function(e){e.code===this.keyCodeToOptionsClose&&this.optionsClose()},e.prototype.trackByOption=function(e,t){return t instanceof $d?t.value:t instanceof Qd?t.label:t},e.prototype.checkInputVisibility=function(){return!0===this.multiple||this.optionsOpened&&!this.noAutoComplete},e.prototype.inputKeyUp=function(e){void 0===e&&(e=""),!this.optionsOpened&&e&&this.optionsOpen(e)},e.prototype.doInputText=function(e){this.optionsOpened&&this.typed.emit(e)},e.prototype.inputClick=function(e){void 0===e&&(e=""),this.optionsOpened||this.optionsOpen(e)},e.prototype.sanitize=function(e){return e?this.sanitizer.bypassSecurityTrustHtml(e):null},e.prototype.highlightOption=function(e){return e.renderText(this.sanitizer,this.inputElRef?this.inputElRef.nativeElement.value:"")},e.prototype.optionSelect=function(e,t){void 0===t&&(t=null),t&&(t.preventDefault(),t.stopPropagation()),e&&!e.disabled&&(this.subjOptionsSelected.next((this.multiple?this.subjOptionsSelected.value:[]).concat([e])),this.select.emit(e.value),this.optionsClose(),this.onTouched())},e.prototype.optionRemove=function(e,t){!this.disabled&&e&&(t.stopPropagation(),this.subjOptionsSelected.next((this.multiple?this.subjOptionsSelected.value:[]).filter(function(t){return t!==e})),this.remove.emit(e.value))},e.prototype.isOptionActive=function(e,t){return this.optionActive===e&&(this.ensureVisibleElement(t),!0)},e.prototype.optionActivate=function(e){this.optionActive===e.activeOption||e.activeOption&&e.activeOption.disabled||(this.optionActive=e.activeOption,this.navigated.emit(e))},e.prototype.onMouseEnter=function(e){this.autoActiveOnMouseEnter&&this.optionActivate(e)},e.prototype.filterOptions=function(e,t,n){var r=this,o=new RegExp(ef(e),"i"),i=function(t){return r.searchCallback?r.searchCallback(e,t):(!e||o.test(t.text))&&(!r.multiple||-1===n.indexOf(t))};return t.filter(function(e){if(e instanceof $d)return i(e);if(e instanceof Qd){var t=e;return t.filter(function(e){return i(e)}),t.optionsFiltered.length}})},e.prototype.ensureVisibleElement=function(e){if(this.choiceMenuElRef&&this.cacheElementOffsetTop!==e.offsetTop){this.cacheElementOffsetTop=e.offsetTop;var t=this.choiceMenuElRef.nativeElement;this.cacheElementOffsetTopt.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.navigateOption(!this.multiple&&this.subjOptionsSelected.value.length?nf.firstSelected:nf.first),this.focusToInput(),this.open.emit())},e.prototype.optionsClose=function(){this.optionsOpened=!1,this.close.emit(),this.autoClearSearch&&this.multiple&&this.inputElRef&&(this.inputElRef.nativeElement.value=null)},e.prototype.buildOptions=function(e){var t,n=this,r=[];return Array.isArray(e)&&e.forEach(function(e){if("object"==typeof e&&null!==e&&rf(e,n.optGroupLabelField)&&rf(e,n.optGroupOptionsField)&&Array.isArray(e[n.optGroupOptionsField])){var o=new Qd(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||!rf(e,this.optionValueField)&&!rf(e,this.optionTextField))return null;n=rf(e,this.optionValueField)?e[this.optionValueField]:e[this.optionTextField],r=rf(e,this.optionTextField)?e[this.optionTextField]:e[this.optionValueField],o=!!rf(e,"disabled")&&e.disabled}return new $d(n,r,o,e,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}(),lf=Jr({encapsulation:0,styles:[[".ngx-select_multiple[_ngcontent-%COMP%]{height:auto;padding:3px 3px 0}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__search[_ngcontent-%COMP%]{background-color:transparent!important;border:none;outline:0;box-shadow:none;height:1.6666em;padding:0;margin-bottom:3px}.ngx-select__disabled[_ngcontent-%COMP%]{background-color:#eceeef;border-radius:4px;position:absolute;width:100%;height:100%;z-index:5;opacity:.6;top:0;left:0;cursor:not-allowed}.ngx-select__toggle[_ngcontent-%COMP%]{outline:0;position:relative;text-align:left!important;color:#333;background-color:#fff;border-color:#ccc;display:inline-flex;align-items:stretch;justify-content:space-between}.ngx-select__toggle[_ngcontent-%COMP%]:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.ngx-select__toggle-buttons[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center}.ngx-select__toggle-caret[_ngcontent-%COMP%]{position:absolute;height:10px;top:50%;right:10px;margin-top:-2px}.ngx-select__placeholder[_ngcontent-%COMP%]{float:left;max-width:100%;text-overflow:ellipsis;overflow:hidden}.ngx-select__clear[_ngcontent-%COMP%]{margin-right:10px;padding:0;border:none}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__clear[_ngcontent-%COMP%]{line-height:initial;margin-left:5px;margin-right:0;color:#000;opacity:.5}.ngx-select__clear-icon[_ngcontent-%COMP%]{display:inline-block;font-size:inherit;cursor:pointer;position:relative;width:1em;height:.75em;padding:0}.ngx-select__clear-icon[_ngcontent-%COMP%]: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:inline-flex;align-items:center;overflow:hidden}.ngx-select__selected-plural[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .ngx-select__selected-single[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.ngx-select__selected-plural[_ngcontent-%COMP%]{outline:0;margin:0 3px 3px 0}.input-group[_ngcontent-%COMP%] > .dropdown[_ngcontent-%COMP%]{position:static}"]],data:{}});function uf(e){return Gi(0,[(e()(),So(0,0,null,null,1,"span",[["class","ngx-select__placeholder text-muted"]],null,null,null,null,null)),(e()(),So(1,0,null,null,0,"span",[],[[8,"innerHTML",1]],null,null,null,null))],null,function(e,t){e(t,1,0,t.component.placeholder)})}function af(e){return Gi(0,[(e()(),So(0,0,null,null,5,"span",[["class","ngx-select__selected-single pull-left float-left"]],null,null,null,null,null)),hi(1,278528,null,0,Fa,[er,tr,An,Tn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Bi(2,{"ngx-select__allow-clear":0}),(e()(),So(3,16777216,null,null,2,null,null,null,null,null,null,null)),hi(4,540672,null,0,qa,[Nn],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),Bi(5,{$implicit:0,index:1,text:2})],function(e,t){var n=t.component;e(t,1,0,"ngx-select__selected-single pull-left float-left",e(t,2,0,n.allowClear)),e(t,4,0,e(t,5,0,n.optionsSelected[0],0,n.sanitize(n.optionsSelected[0].text)),n.templateSelectedOption||ti(t.parent.parent,17))},null)}function sf(e){return Gi(0,[(e()(),So(0,0,null,null,2,"a",[["class","ngx-select__clear btn btn-sm btn-link"]],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)),hi(1,278528,null,0,Fa,[er,tr,An,Tn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),So(2,0,null,null,0,"i",[["class","ngx-select__clear-icon"]],null,null,null,null,null))],function(e,t){e(t,1,0,"ngx-select__clear btn btn-sm btn-link",t.component.setBtnSize())},null)}function cf(e){return Gi(0,[(e()(),So(0,0,null,null,11,"div",[["class","ngx-select__selected"]],null,null,null,null,null)),(e()(),So(1,0,null,null,10,"div",[["class","ngx-select__toggle btn form-control"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.optionsOpen()&&r),r},null,null)),hi(2,278528,null,0,Fa,[er,tr,An,Tn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),Oo(16777216,null,null,1,null,uf)),hi(4,16384,null,0,za,[Nn,In],{ngIf:[0,"ngIf"]},null),(e()(),Oo(16777216,null,null,1,null,af)),hi(6,16384,null,0,za,[Nn,In],{ngIf:[0,"ngIf"]},null),(e()(),So(7,0,null,null,4,"span",[["class","ngx-select__toggle-buttons"]],null,null,null,null,null)),(e()(),Oo(16777216,null,null,1,null,sf)),hi(9,16384,null,0,za,[Nn,In],{ngIf:[0,"ngIf"]},null),(e()(),So(10,0,null,null,0,"i",[["class","dropdown-toggle"]],null,null,null,null,null)),(e()(),So(11,0,null,null,0,"i",[["class","ngx-select__toggle-caret caret"]],null,null,null,null,null))],function(e,t){var n=t.component;e(t,2,0,"ngx-select__toggle btn form-control",n.setFormControlSize(n.setBtnSize())),e(t,4,0,!n.optionsSelected.length),e(t,6,0,n.optionsSelected.length),e(t,9,0,n.canClearNotMultiple())},null)}function df(e){return Gi(0,[(e()(),So(0,0,null,null,8,"span",[],null,null,null,null,null)),(e()(),So(1,0,null,null,7,"span",[["class","ngx-select__selected-plural btn btn-default btn-secondary btn-xs"],["tabindex","-1"]],null,null,null,null,null)),hi(2,278528,null,0,Fa,[er,tr,An,Tn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),So(3,16777216,null,null,2,null,null,null,null,null,null,null)),hi(4,540672,null,0,qa,[Nn],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),Bi(5,{$implicit:0,index:1,text:2}),(e()(),So(6,0,null,null,2,"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)),hi(7,278528,null,0,Fa,[er,tr,An,Tn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),So(8,0,null,null,0,"i",[["class","ngx-select__clear-icon"]],null,null,null,null,null))],function(e,t){var n=t.component;e(t,2,0,"ngx-select__selected-plural btn btn-default btn-secondary btn-xs",n.setBtnSize()),e(t,4,0,e(t,5,0,t.context.$implicit,t.context.index,n.sanitize(t.context.$implicit.text)),n.templateSelectedOption||ti(t.parent.parent,17)),e(t,7,0,"ngx-select__clear btn btn-sm btn-link pull-right float-right",n.setBtnSize())},null)}function ff(e){return Gi(0,[(e()(),So(0,0,null,null,2,"div",[["class","ngx-select__selected"]],null,null,null,null,null)),(e()(),Oo(16777216,null,null,1,null,df)),hi(2,278528,null,0,La,[Nn,In,er],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null)],function(e,t){var n=t.component;e(t,2,0,n.optionsSelected,n.trackByOption)},null)}function pf(e){return Gi(0,[(e()(),So(0,0,[[2,0],["input",1]],null,1,"input",[["autocapitalize","off"],["autocomplete","off"],["autocorrect","off"],["class","ngx-select__search form-control"],["role","combobox"],["spellcheck","false"],["type","text"]],[[8,"tabIndex",0],[8,"disabled",0],[8,"placeholder",0]],[[null,"keydown"],[null,"keyup"],[null,"input"],[null,"click"]],function(e,t,n){var r=!0,o=e.component;return"keydown"===t&&(r=!1!==o.inputKeyDown(n)&&r),"keyup"===t&&(r=!1!==o.inputKeyUp(ti(e,0).value)&&r),"input"===t&&(r=!1!==o.doInputText(ti(e,0).value)&&r),"click"===t&&(r=!1!==o.inputClick(ti(e,0).value)&&r),r},null,null)),hi(1,278528,null,0,Fa,[er,tr,An,Tn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null)],function(e,t){e(t,1,0,"ngx-select__search form-control",t.component.setFormControlSize())},function(e,t){var n=t.component;e(t,0,0,!1===n.multiple?-1:0,n.disabled,n.optionsSelected.length?"":n.placeholder)})}function hf(e){return Gi(0,[(e()(),So(0,0,null,null,0,"div",[["class","divider dropdown-divider"]],null,null,null,null,null))],null,null)}function gf(e){return Gi(0,[(e()(),So(0,0,null,null,1,"div",[["class","dropdown-header"]],null,null,null,null,null)),(e()(),Hi(1,null,["",""]))],null,function(e,t){e(t,1,0,t.parent.context.$implicit.label)})}function vf(e){return Gi(0,[(e()(),So(0,0,[["choiceItem",1]],null,5,"a",[["class","ngx-select__item dropdown-item"],["href","#"]],null,[[null,"mouseenter"],[null,"click"]],function(e,t,n){var r=!0,o=e.component;return"mouseenter"===t&&(r=!1!==o.onMouseEnter({activeOption:e.context.$implicit,filteredOptionList:o.optionsFiltered,index:o.optionsFiltered.indexOf(e.context.$implicit)})&&r),"click"===t&&(r=!1!==o.optionSelect(e.context.$implicit,n)&&r),r},null,null)),hi(1,278528,null,0,Fa,[er,tr,An,Tn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Bi(2,{"ngx-select__item_active active":0,"ngx-select__item_disabled disabled":1}),(e()(),So(3,16777216,null,null,2,null,null,null,null,null,null,null)),hi(4,540672,null,0,qa,[Nn],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),Bi(5,{$implicit:0,text:1,index:2,subIndex:3})],function(e,t){var n=t.component;e(t,1,0,"ngx-select__item dropdown-item",e(t,2,0,n.isOptionActive(t.context.$implicit,ti(t,0)),t.context.$implicit.disabled)),e(t,4,0,e(t,5,0,t.context.$implicit,n.highlightOption(t.context.$implicit),t.parent.context.index,t.context.index),n.templateOption||ti(t.parent.parent.parent,17))},null)}function yf(e){return Gi(0,[(e()(),So(0,0,null,null,7,"li",[["class","ngx-select__item-group"],["role","menuitem"]],null,null,null,null,null)),(e()(),Oo(16777216,null,null,1,null,hf)),hi(2,16384,null,0,za,[Nn,In],{ngIf:[0,"ngIf"]},null),(e()(),Oo(16777216,null,null,1,null,gf)),hi(4,16384,null,0,za,[Nn,In],{ngIf:[0,"ngIf"]},null),(e()(),Oo(16777216,null,null,2,null,vf)),hi(6,278528,null,0,La,[Nn,In,er],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),Fi(7,1)],function(e,t){var n=t.component;e(t,2,0,"optgroup"===t.context.$implicit.type&&t.context.index>0),e(t,4,0,"optgroup"===t.context.$implicit.type),e(t,6,0,t.context.$implicit.optionsFiltered||e(t,7,0,t.context.$implicit),n.trackByOption)},null)}function mf(e){return Gi(0,[(e()(),So(0,0,null,null,3,"li",[["class","ngx-select__item ngx-select__item_no-found dropdown-header"]],null,null,null,null,null)),(e()(),So(1,16777216,null,null,2,null,null,null,null,null,null,null)),hi(2,540672,null,0,qa,[Nn],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),Bi(3,{$implicit:0})],function(e,t){var n=t.component;e(t,2,0,e(t,3,0,n.inputText),n.templateOptionNotFound||ti(t.parent.parent,18))},null)}function _f(e){return Gi(0,[(e()(),So(0,0,[[3,0],["choiceMenu",1]],null,4,"ul",[["class","ngx-select__choices dropdown-menu"],["role","menu"]],[[2,"show",null]],null,null,null,null)),(e()(),Oo(16777216,null,null,1,null,yf)),hi(2,278528,null,0,La,[Nn,In,er],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),Oo(16777216,null,null,1,null,mf)),hi(4,16384,null,0,za,[Nn,In],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,2,0,n.optionsFiltered,n.trackByOption),e(t,4,0,!n.optionsFiltered.length)},function(e,t){e(t,0,0,t.component.optionsOpened)})}function bf(e){return Gi(0,[(e()(),So(0,0,null,null,0,"span",[],[[8,"innerHTML",1]],null,null,null,null))],null,function(e,t){e(t,0,0,t.context.text)})}function wf(e){return Gi(0,[(e()(),Hi(0,null,[" "," "]))],null,function(e,t){e(t,0,0,t.component.noResultsFound)})}function xf(e){return Gi(2,[Ii(402653184,1,{mainElRef:0}),Ii(671088640,2,{inputElRef:0}),Ii(671088640,3,{choiceMenuElRef:0}),(e()(),So(3,0,[[1,0],["main",1]],null,15,"div",[["class","ngx-select 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)),hi(4,278528,null,0,Fa,[er,tr,An,Tn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Bi(5,{"ngx-select_multiple form-control":0,"open show":1}),(e()(),So(6,0,null,null,2,"div",[],null,null,null,null,null)),hi(7,278528,null,0,Fa,[er,tr,An,Tn],{ngClass:[0,"ngClass"]},null),Bi(8,{"ngx-select__disabled":0}),(e()(),Oo(16777216,null,null,1,null,cf)),hi(10,16384,null,0,za,[Nn,In],{ngIf:[0,"ngIf"]},null),(e()(),Oo(16777216,null,null,1,null,ff)),hi(12,16384,null,0,za,[Nn,In],{ngIf:[0,"ngIf"]},null),(e()(),Oo(16777216,null,null,1,null,pf)),hi(14,16384,null,0,za,[Nn,In],{ngIf:[0,"ngIf"]},null),(e()(),Oo(16777216,null,null,1,null,_f)),hi(16,16384,null,0,za,[Nn,In],{ngIf:[0,"ngIf"]},null),(e()(),Oo(0,[["defaultTemplateOption",2]],null,0,null,bf)),(e()(),Oo(0,[["defaultTemplateOptionNotFound",2]],null,0,null,wf))],function(e,t){var n=t.component;e(t,4,0,"ngx-select dropdown",n.setFormControlSize(e(t,5,0,!0===n.multiple,n.optionsOpened&&n.optionsFiltered.length),!0===n.multiple)),e(t,7,0,e(t,8,0,n.disabled)),e(t,10,0,!1===n.multiple&&(!n.optionsOpened||n.noAutoComplete)),e(t,12,0,!0===n.multiple),e(t,14,0,n.checkInputVisibility()),e(t,16,0,n.isFocused)},function(e,t){e(t,3,0,t.component.disabled?-1:0)})}var Cf=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 ld,this.inputTyped=function(e,t){return console.log("SingleDemoComponent.inputTyped",e,t)},this.doFocus=function(){return console.log("SingleDemoComponent.doFocus")},this.doBlur=function(){return console.log("SingleDemoComponent.doBlur")},this.doOpen=function(){return console.log("SingleDemoComponent.doOpen")},this.doClose=function(){return console.log("SingleDemoComponent.doClose")},this.doSelect=function(e){return console.log("SingleDemoComponent.doSelect",e)},this.doRemove=function(e){return console.log("SingleDemoComponent.doRemove",e)},this.doSelectOptions=function(e){return console.log("SingleDemoComponent.doSelectOptions",e)},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}(),Ef=Jr({encapsulation:2,styles:[],data:{}});function kf(e){return Gi(0,[(e()(),So(0,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),Hi(-1,null,["Select a single city"])),(e()(),So(2,0,null,null,18,"div",[["class","example-block"]],null,null,null,null,null)),(e()(),So(3,0,null,null,17,"div",[["class","example-block__item"]],null,null,null,null,null)),(e()(),So(4,0,null,null,8,"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"],[null,"selectionChanges"],["document","focusin"],["document","click"]],function(e,t,n){var r=!0,o=e.component;return"document:focusin"===t&&(r=!1!==ti(e,5).documentClick(n)&&r),"document:click"===t&&(r=!1!==ti(e,5).documentClick(n)&&r),"typed"===t&&(r=!1!==o.inputTyped("ngx-select",n)&&r),"focus"===t&&(r=!1!==o.doFocus()&&r),"blur"===t&&(r=!1!==o.doBlur()&&r),"open"===t&&(r=!1!==o.doOpen()&&r),"close"===t&&(r=!1!==o.doClose()&&r),"select"===t&&(r=!1!==o.doSelect(n)&&r),"remove"===t&&(r=!1!==o.doRemove(n)&&r),"selectionChanges"===t&&(r=!1!==o.doSelectOptions(n)&&r),r},xf,lf)),hi(5,2408448,null,3,of,[er,ac,Vn,[2,tf]],{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",selectionChanges:"selectionChanges"}),Ii(335544320,1,{templateOption:0}),Ii(335544320,2,{templateSelectedOption:0}),Ii(335544320,3,{templateOptionNotFound:0}),vi(1024,null,Ac,function(e){return[e]},[of]),hi(10,540672,null,0,vd,[[8,null],[8,null],[6,Ac],[2,gd]],{form:[0,"form"]},null),vi(2048,null,jc,null,[vd]),hi(12,16384,null,0,td,[[4,jc]],null,null),(e()(),So(13,0,null,null,0,"p",[],null,null,null,null,null)),(e()(),So(14,0,null,null,3,"div",[["class","alert alert-secondary"]],null,null,null,null,null)),(e()(),So(15,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),Hi(16,null,["",""])),gi(0,Wa,[]),(e()(),So(18,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),So(19,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()(),Hi(20,null,[" "," "]))],function(e,t){var n=t.component;e(t,5,0,n.items,!0,"No city selected",n.doNgxDefault()),e(t,10,0,n.ngxControl)},function(e,t){var n=t.component;e(t,4,0,ti(t,12).ngClassUntouched,ti(t,12).ngClassTouched,ti(t,12).ngClassPristine,ti(t,12).ngClassDirty,ti(t,12).ngClassValid,ti(t,12).ngClassInvalid,ti(t,12).ngClassPending),e(t,16,0,Qr(t,16,0,ti(t,17).transform(n.ngxControl.value))),e(t,20,0,n.ngxControl.disabled?"Enable":"Disable")})}var Of=function(){return 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,this.doSelectOptions=function(e){return console.log("MultipleDemoComponent.doSelectOptions",e)}}}(),Sf=Jr({encapsulation:2,styles:[],data:{}});function Tf(e){return Gi(0,[(e()(),So(0,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),Hi(-1,null,["Select multiple cities"])),(e()(),So(2,0,null,null,18,"div",[["class","example-block"]],null,null,null,null,null)),(e()(),So(3,0,null,null,17,"div",[["class","example-block__item"]],null,null,null,null,null)),(e()(),So(4,0,null,null,8,"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"],[null,"selectionChanges"],["document","focusin"],["document","click"]],function(e,t,n){var r=!0,o=e.component;return"document:focusin"===t&&(r=!1!==ti(e,5).documentClick(n)&&r),"document:click"===t&&(r=!1!==ti(e,5).documentClick(n)&&r),"ngModelChange"===t&&(r=!1!==(o.ngxValue=n)&&r),"selectionChanges"===t&&(r=!1!==o.doSelectOptions(n)&&r),r},xf,lf)),hi(5,2408448,null,3,of,[er,ac,Vn,[2,tf]],{items:[0,"items"],multiple:[1,"multiple"],placeholder:[2,"placeholder"],disabled:[3,"disabled"]},{selectionChanges:"selectionChanges"}),Ii(335544320,1,{templateOption:0}),Ii(335544320,2,{templateSelectedOption:0}),Ii(335544320,3,{templateOptionNotFound:0}),vi(1024,null,Ac,function(e){return[e]},[of]),hi(10,671744,null,0,hd,[[8,null],[8,null],[8,null],[6,Ac]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),vi(2048,null,jc,null,[hd]),hi(12,16384,null,0,td,[[4,jc]],null,null),(e()(),So(13,0,null,null,0,"p",[],null,null,null,null,null)),(e()(),So(14,0,null,null,3,"div",[["class","alert alert-secondary"]],null,null,null,null,null)),(e()(),So(15,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),Hi(16,null,["",""])),gi(0,Wa,[]),(e()(),So(18,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),So(19,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()(),Hi(20,null,[" "," "]))],function(e,t){var n=t.component;e(t,5,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,4,0,ti(t,12).ngClassUntouched,ti(t,12).ngClassTouched,ti(t,12).ngClassPristine,ti(t,12).ngClassDirty,ti(t,12).ngClassValid,ti(t,12).ngClassInvalid,ti(t,12).ngClassPending),e(t,16,0,Qr(t,16,0,ti(t,17).transform(n.ngxValue))),e(t,20,0,n.ngxDisabled?"Enable":"Disable")})}var Af=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},Df=Jr({encapsulation:2,styles:[],data:{}});function If(e){return Gi(0,[(e()(),So(0,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),Hi(-1,null,["Select a city by country"])),(e()(),So(2,0,null,null,18,"div",[["class","example-block"]],null,null,null,null,null)),(e()(),So(3,0,null,null,17,"div",[["class","example-block__item"]],null,null,null,null,null)),(e()(),So(4,0,null,null,8,"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 r=!0,o=e.component;return"document:focusin"===t&&(r=!1!==ti(e,5).documentClick(n)&&r),"document:click"===t&&(r=!1!==ti(e,5).documentClick(n)&&r),"ngModelChange"===t&&(r=!1!==(o.ngxValue=n)&&r),r},xf,lf)),hi(5,2408448,null,3,of,[er,ac,Vn,[2,tf]],{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),Ii(335544320,1,{templateOption:0}),Ii(335544320,2,{templateSelectedOption:0}),Ii(335544320,3,{templateOptionNotFound:0}),vi(1024,null,Ac,function(e){return[e]},[of]),hi(10,671744,null,0,hd,[[8,null],[8,null],[8,null],[6,Ac]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),vi(2048,null,jc,null,[hd]),hi(12,16384,null,0,td,[[4,jc]],null,null),(e()(),So(13,0,null,null,0,"p",[],null,null,null,null,null)),(e()(),So(14,0,null,null,3,"div",[["class","alert alert-secondary"]],null,null,null,null,null)),(e()(),So(15,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),Hi(16,null,["",""])),gi(0,Wa,[]),(e()(),So(18,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),So(19,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()(),Hi(20,null,[" "," "]))],function(e,t){var n=t.component;e(t,5,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,4,0,ti(t,12).ngClassUntouched,ti(t,12).ngClassTouched,ti(t,12).ngClassPristine,ti(t,12).ngClassDirty,ti(t,12).ngClassValid,ti(t,12).ngClassInvalid,ti(t,12).ngClassPending),e(t,16,0,Qr(t,16,0,ti(t,17).transform(n.ngxValue))),e(t,20,0,n.ngxDisabled?"Enable":"Disable")})}var Nf=[{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"}],Vf=function(){function e(e){this.sanitizer=e,this.items=Nf,this.ngxValue=[],this.ngxDisabled=!1}return e.prototype.style=function(e){return this.sanitizer.bypassSecurityTrustStyle(e)},e}(),Pf=Jr({encapsulation:2,styles:[".color-box {\n display: inline-block;\n height: 14px;\n width: 14px;\n margin-right: 4px;\n border: 1px solid #000;\n }"],data:{}});function Mf(e){return Gi(0,[(e()(),So(0,0,null,null,0,"span",[["class","color-box"]],[[8,"style",2]],null,null,null,null)),(e()(),So(1,0,null,null,0,"span",[],[[8,"innerHTML",1]],null,null,null,null)),(e()(),Hi(2,null,[" (",") "]))],null,function(e,t){e(t,0,0,t.component.style("background-color:"+t.context.$implicit.value)),e(t,1,0,t.context.text),e(t,2,0,t.context.$implicit.data.hex)})}function Rf(e){return Gi(0,[(e()(),Hi(0,null,[' "','" not found ']))],null,function(e,t){e(t,0,0,t.context.$implicit)})}function jf(e){return Gi(0,[(e()(),So(0,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),Hi(-1,null,["Select a color"])),(e()(),So(2,0,null,null,23,"div",[["class","example-block"]],null,null,null,null,null)),(e()(),So(3,0,null,null,22,"div",[["class","example-block__item"]],null,null,null,null,null)),(e()(),So(4,0,null,null,13,"ngx-select",[["optionTextField","name"],["optionValueField","hex"],["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 r=!0,o=e.component;return"document:focusin"===t&&(r=!1!==ti(e,5).documentClick(n)&&r),"document:click"===t&&(r=!1!==ti(e,5).documentClick(n)&&r),"ngModelChange"===t&&(r=!1!==(o.ngxValue=n)&&r),r},xf,lf)),hi(5,2408448,null,3,of,[er,ac,Vn,[2,tf]],{items:[0,"items"],optionValueField:[1,"optionValueField"],optionTextField:[2,"optionTextField"],allowClear:[3,"allowClear"],placeholder:[4,"placeholder"],disabled:[5,"disabled"]},null),Ii(335544320,1,{templateOption:0}),Ii(335544320,2,{templateSelectedOption:0}),Ii(335544320,3,{templateOptionNotFound:0}),vi(1024,null,Ac,function(e){return[e]},[of]),hi(10,671744,null,0,hd,[[8,null],[8,null],[8,null],[6,Ac]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),vi(2048,null,jc,null,[hd]),hi(12,16384,null,0,td,[[4,jc]],null,null),(e()(),Oo(0,[[1,2],[2,2]],null,2,null,Mf)),hi(14,16384,null,0,Kd,[In],null,null),hi(15,16384,null,0,Yd,[In],null,null),(e()(),Oo(0,[[3,2]],null,1,null,Rf)),hi(17,16384,null,0,Jd,[In],null,null),(e()(),So(18,0,null,null,0,"p",[],null,null,null,null,null)),(e()(),So(19,0,null,null,3,"div",[["class","alert alert-secondary"]],null,null,null,null,null)),(e()(),So(20,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),Hi(21,null,["",""])),gi(0,Wa,[]),(e()(),So(23,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),So(24,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()(),Hi(25,null,[" "," "]))],function(e,t){var n=t.component;e(t,5,0,n.items,"hex","name",!0,"No city selected",n.ngxDisabled),e(t,10,0,n.ngxDisabled,n.ngxValue)},function(e,t){var n=t.component;e(t,4,0,ti(t,12).ngClassUntouched,ti(t,12).ngClassTouched,ti(t,12).ngClassPristine,ti(t,12).ngClassDirty,ti(t,12).ngClassValid,ti(t,12).ngClassInvalid,ti(t,12).ngClassPending),e(t,21,0,Qr(t,21,0,ti(t,22).transform(n.ngxValue))),e(t,25,0,n.ngxDisabled?"Enable":"Disable")})}var Ff=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},Bf=Jr({encapsulation:2,styles:[],data:{}});function Lf(e){return Gi(0,[(e()(),So(0,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),Hi(1,null,["Select a single city with "," items"])),(e()(),So(2,0,null,null,18,"div",[["class","example-block"]],null,null,null,null,null)),(e()(),So(3,0,null,null,17,"div",[["class","example-block__item"]],null,null,null,null,null)),(e()(),So(4,0,null,null,8,"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 r=!0,o=e.component;return"document:focusin"===t&&(r=!1!==ti(e,5).documentClick(n)&&r),"document:click"===t&&(r=!1!==ti(e,5).documentClick(n)&&r),"ngModelChange"===t&&(r=!1!==(o.ngxValue=n)&&r),r},xf,lf)),hi(5,2408448,null,3,of,[er,ac,Vn,[2,tf]],{items:[0,"items"],allowClear:[1,"allowClear"],placeholder:[2,"placeholder"],noAutoComplete:[3,"noAutoComplete"],disabled:[4,"disabled"]},null),Ii(335544320,1,{templateOption:0}),Ii(335544320,2,{templateSelectedOption:0}),Ii(335544320,3,{templateOptionNotFound:0}),vi(1024,null,Ac,function(e){return[e]},[of]),hi(10,671744,null,0,hd,[[8,null],[8,null],[8,null],[6,Ac]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),vi(2048,null,jc,null,[hd]),hi(12,16384,null,0,td,[[4,jc]],null,null),(e()(),So(13,0,null,null,0,"p",[],null,null,null,null,null)),(e()(),So(14,0,null,null,3,"div",[["class","alert alert-secondary"]],null,null,null,null,null)),(e()(),So(15,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),Hi(16,null,["",""])),gi(0,Wa,[]),(e()(),So(18,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),So(19,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()(),Hi(20,null,[" "," "]))],function(e,t){var n=t.component;e(t,5,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,4,0,ti(t,12).ngClassUntouched,ti(t,12).ngClassTouched,ti(t,12).ngClassPristine,ti(t,12).ngClassDirty,ti(t,12).ngClassValid,ti(t,12).ngClassInvalid,ti(t,12).ngClassPending),e(t,16,0,Qr(t,16,0,ti(t,17).transform(n.ngxValue))),e(t,20,0,n.ngxDisabled?"Enable":"Disable")})}var Hf=n("NzhH"),zf={single:{heading:"Single",ts:n("5O0x"),html:n("wor0")},multiple:{heading:"Multiple",ts:n("ngBM"),html:n("dsz2")},children:{heading:"Children",ts:n("sAJ4"),html:n("xykP")},rich:{heading:"Rich",ts:n("rZW4"),html:n("Fam2")},noAutoComplete:{heading:"noAutoComplete",ts:n("Yqad"),html:n("HfGU")}},Uf=function(){return function(){this.currentHeading="Single",this.tabDesc=zf,this.doc=Hf}}(),Gf=Jr({encapsulation:0,styles:["[_nghost-%COMP%] {\n display: block\n }"],data:{}});function qf(e){return Gi(0,[(e()(),So(0,0,null,null,36,"section",[],null,null,null,null,null)),(e()(),So(1,0,null,null,31,"tabset",[],[[2,"tab-container",null]],null,null,ns,Xa)),hi(2,180224,null,0,Ja,[Ya,Tn],null,null),(e()(),So(3,0,null,0,5,"tab",[["heading","Single"]],[[1,"id",0],[2,"active",null],[2,"tab-pane",null]],null,null,null,null)),hi(4,212992,null,0,rs,[Ja,An,Tn],{heading:[0,"heading"]},null),(e()(),So(5,0,null,null,3,"sample-section",[],null,null,null,ls,is)),hi(6,49152,null,0,os,[],{desc:[0,"desc"]},null),(e()(),So(7,0,null,0,1,"single-demo",[],null,null,null,kf,Ef)),hi(8,180224,null,0,Cf,[],null,null),(e()(),So(9,0,null,0,5,"tab",[["heading","Multiple"]],[[1,"id",0],[2,"active",null],[2,"tab-pane",null]],null,null,null,null)),hi(10,212992,null,0,rs,[Ja,An,Tn],{heading:[0,"heading"]},null),(e()(),So(11,0,null,null,3,"sample-section",[],null,null,null,ls,is)),hi(12,49152,null,0,os,[],{desc:[0,"desc"]},null),(e()(),So(13,0,null,0,1,"multiple-demo",[],null,null,null,Tf,Sf)),hi(14,49152,null,0,Of,[],null,null),(e()(),So(15,0,null,0,5,"tab",[["heading","Children"]],[[1,"id",0],[2,"active",null],[2,"tab-pane",null]],null,null,null,null)),hi(16,212992,null,0,rs,[Ja,An,Tn],{heading:[0,"heading"]},null),(e()(),So(17,0,null,null,3,"sample-section",[],null,null,null,ls,is)),hi(18,49152,null,0,os,[],{desc:[0,"desc"]},null),(e()(),So(19,0,null,0,1,"children-demo",[],null,null,null,If,Df)),hi(20,49152,null,0,Af,[],null,null),(e()(),So(21,0,null,0,5,"tab",[["heading","Rich"]],[[1,"id",0],[2,"active",null],[2,"tab-pane",null]],null,null,null,null)),hi(22,212992,null,0,rs,[Ja,An,Tn],{heading:[0,"heading"]},null),(e()(),So(23,0,null,null,3,"sample-section",[],null,null,null,ls,is)),hi(24,49152,null,0,os,[],{desc:[0,"desc"]},null),(e()(),So(25,0,null,0,1,"rich-demo",[],null,null,null,jf,Pf)),hi(26,49152,null,0,Vf,[ac],null,null),(e()(),So(27,0,null,0,5,"tab",[["heading","No autocomplete"]],[[1,"id",0],[2,"active",null],[2,"tab-pane",null]],null,null,null,null)),hi(28,212992,null,0,rs,[Ja,An,Tn],{heading:[0,"heading"]},null),(e()(),So(29,0,null,null,3,"sample-section",[],null,null,null,ls,is)),hi(30,49152,null,0,os,[],{desc:[0,"desc"]},null),(e()(),So(31,0,null,0,1,"no-autocomplete-demo",[],null,null,null,Lf,Bf)),hi(32,49152,null,0,Ff,[],null,null),(e()(),So(33,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),Hi(-1,null,["Documentation"])),(e()(),So(35,0,null,null,1,"div",[["class","card card-block panel panel-default panel-body"]],null,null,null,null,null)),(e()(),So(36,0,null,null,0,"div",[["class","card-body doc-api"]],[[8,"innerHTML",1]],null,null,null,null))],function(e,t){var n=t.component;e(t,4,0,"Single"),e(t,6,0,n.tabDesc.single),e(t,10,0,"Multiple"),e(t,12,0,n.tabDesc.multiple),e(t,16,0,"Children"),e(t,18,0,n.tabDesc.children),e(t,22,0,"Rich"),e(t,24,0,n.tabDesc.rich),e(t,28,0,"No autocomplete"),e(t,30,0,n.tabDesc.noAutoComplete)},function(e,t){var n=t.component;e(t,1,0,ti(t,2).clazz),e(t,3,0,ti(t,4).id,ti(t,4).active,ti(t,4).addClass),e(t,9,0,ti(t,10).id,ti(t,10).active,ti(t,10).addClass),e(t,15,0,ti(t,16).id,ti(t,16).active,ti(t,16).addClass),e(t,21,0,ti(t,22).id,ti(t,22).active,ti(t,22).addClass),e(t,27,0,ti(t,28).id,ti(t,28).active,ti(t,28).addClass),e(t,36,0,n.doc)})}var Wf=Jr({encapsulation:0,styles:[[""]],data:{}});function Zf(e){return Gi(0,[(e()(),So(0,0,null,null,20,"main",[["class","bd-pageheader"]],null,null,null,null,null)),(e()(),So(1,0,null,null,19,"div",[["class","container"]],null,null,null,null,null)),(e()(),So(2,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),Hi(3,null,["ngx-select-ex v",""])),(e()(),So(4,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),Hi(-1,null,["Native Angular2 component for Select"])),(e()(),So(6,0,null,null,7,"p",[],null,null,null,null,null)),(e()(),Hi(-1,null,[" Compatible with "])),(e()(),So(8,0,null,null,1,"a",[["class","badge badge-light"],["href","https://getbootstrap.com/docs/3.3/"],["target","_blank"]],null,null,null,null,null)),(e()(),Hi(-1,null,["Bootstrap 3"])),(e()(),Hi(-1,null,[" and "])),(e()(),So(11,0,null,null,2,"b",[],null,null,null,null,null)),(e()(),So(12,0,null,null,1,"a",[["class","badge badge-light"],["href","https://getbootstrap.com/"],["target","_blank"]],null,null,null,null,null)),(e()(),Hi(-1,null,["Bootstrap 4"])),(e()(),So(14,0,null,null,1,"a",[["class","btn btn-primary"],["href","https://github.com/optimistex/ngx-select-ex"]],null,null,null,null,null)),(e()(),Hi(-1,null,["View on GitHub"])),(e()(),So(16,0,null,null,4,"div",[["class","row"]],null,null,null,null,null)),(e()(),So(17,0,null,null,1,"div",[["class","col-lg-1"]],null,null,null,null,null)),(e()(),So(18,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()(),So(19,0,null,null,1,"div",[["class","col-lg-1"]],null,null,null,null,null)),(e()(),So(20,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()(),So(21,0,null,null,3,"div",[["class","container"]],null,null,null,null,null)),(e()(),So(22,0,null,null,0,"section",[["id","getting-started"]],[[8,"innerHTML",1]],null,null,null,null)),(e()(),So(23,0,null,null,1,"select-section",[],null,null,null,qf,Gf)),hi(24,49152,null,0,Uf,[],null,null),(e()(),So(25,0,null,null,8,"footer",[["class","footer"]],null,null,null,null,null)),(e()(),So(26,0,null,null,7,"div",[["class","container"]],null,null,null,null,null)),(e()(),So(27,0,null,null,6,"p",[["class","text-muted text-center"]],null,null,null,null,null)),(e()(),So(28,0,null,null,1,"a",[["href","https://github.com/optimistex/ngx-select-ex"]],null,null,null,null,null)),(e()(),Hi(-1,null,["ngx-select-ex"])),(e()(),Hi(-1,null,[" is maintained by "])),(e()(),So(31,0,null,null,1,"a",[["href","https://github.com/optimistex"]],null,null,null,null,null)),(e()(),Hi(-1,null,["optimistex"])),(e()(),Hi(-1,null,["."]))],null,function(e,t){var n=t.component;e(t,3,0,null==n.p?null:n.p.version),e(t,22,0,n.gettingStarted)})}var $f=function(e,t,n,r,o,i){return new qo("app-demo",Aa,function(e){return Gi(0,[(e()(),So(0,0,null,null,1,"app-demo",[],null,null,null,Zf,Wf)),hi(1,1097728,null,0,Aa,[],null,null)],null,null)},{},{},[])}(),Qf=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[{provide:tf,useValue:t}]}},e}(),Kf=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[Ya]}},e}(),Yf=(Ie(function(){return Yf}),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 void 0===this.btnCheckboxTrue||this.btnCheckboxTrue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"falseValue",{get:function(){return void 0!==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}()),Jf=(Ie(function(){return Jf}),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}()),Xf=(Ie(function(){return Xf}),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=void 0!==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}()),ep=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[]}},e}(),tp=function(e,t,n){return new Yl(Oa,[Aa],function(e){return function(e){for(var t={},n=[],r=!1,o=0;o {\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) => console.log('SingleDemoComponent.inputTyped', source, text);\n\n public doFocus = () => console.log('SingleDemoComponent.doFocus');\n\n public doBlur = () => console.log('SingleDemoComponent.doBlur');\n\n public doOpen = () => console.log('SingleDemoComponent.doOpen');\n\n public doClose = () => console.log('SingleDemoComponent.doClose');\n\n public doSelect = (value: any) => console.log('SingleDemoComponent.doSelect', value);\n\n public doRemove = (value: any) => console.log('SingleDemoComponent.doRemove', value);\n\n public doSelectOptions = (options: INgxSelectOption[]) => console.log('SingleDemoComponent.doSelectOptions', options);\n}\n"},Fam2:function(e,t){e.exports='

Select a color

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

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
\n'},HfGU: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
'},LvDl:function(e,t,n){(function(e){var r;(function(){var o,i=200,l="Expected a function",u="__lodash_placeholder__",a=1,s=2,c=4,d=1,f=2,p=1,h=2,g=4,v=8,m=16,y=32,_=64,b=128,w=256,x=512,C=800,E=16,k=1/0,O=9007199254740991,S=1.7976931348623157e308,T=NaN,A=4294967295,D=A-1,I=A>>>1,N=[["ary",b],["bind",p],["bindKey",h],["curry",v],["curryRight",m],["flip",x],["partial",y],["partialRight",_],["rearg",w]],V="[object Arguments]",P="[object Array]",M="[object AsyncFunction]",R="[object Boolean]",j="[object Date]",F="[object DOMException]",B="[object Error]",L="[object Function]",H="[object GeneratorFunction]",z="[object Map]",U="[object Number]",G="[object Null]",q="[object Object]",W="[object Proxy]",Z="[object RegExp]",$="[object Set]",Q="[object String]",K="[object Symbol]",Y="[object Undefined]",J="[object WeakMap]",X="[object ArrayBuffer]",ee="[object DataView]",te="[object Float32Array]",ne="[object Float64Array]",re="[object Int8Array]",oe="[object Int16Array]",ie="[object Int32Array]",le="[object Uint8Array]",ue="[object Uint8ClampedArray]",ae="[object Uint16Array]",se="[object Uint32Array]",ce=/\b__p \+= '';/g,de=/\b(__p \+=) '' \+/g,fe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,pe=/&(?:amp|lt|gt|quot|#39);/g,he=/[&<>"']/g,ge=RegExp(pe.source),ve=RegExp(he.source),me=/<%-([\s\S]+?)%>/g,ye=/<%([\s\S]+?)%>/g,_e=/<%=([\s\S]+?)%>/g,be=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,we=/^\w*$/,xe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ce=/[\\^$.*+?()[\]{}|]/g,Ee=RegExp(Ce.source),ke=/^\s+|\s+$/g,Oe=/^\s+/,Se=/\s+$/,Te=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ae=/\{\n\/\* \[wrapped with (.+)\] \*/,De=/,? & /,Ie=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ne=/\\(\\)?/g,Ve=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pe=/\w*$/,Me=/^[-+]0x[0-9a-f]+$/i,Re=/^0b[01]+$/i,je=/^\[object .+?Constructor\]$/,Fe=/^0o[0-7]+$/i,Be=/^(?:0|[1-9]\d*)$/,Le=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,He=/($^)/,ze=/['\n\r\u2028\u2029\\]/g,Ue="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ge="\\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",qe="["+Ge+"]",We="["+Ue+"]",Ze="\\d+",$e="[a-z\\xdf-\\xf6\\xf8-\\xff]",Qe="[^\\ud800-\\udfff"+Ge+Ze+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Ke="\\ud83c[\\udffb-\\udfff]",Ye="[^\\ud800-\\udfff]",Je="(?:\\ud83c[\\udde6-\\uddff]){2}",Xe="[\\ud800-\\udbff][\\udc00-\\udfff]",et="[A-Z\\xc0-\\xd6\\xd8-\\xde]",tt="(?:"+$e+"|"+Qe+")",nt="(?:"+et+"|"+Qe+")",rt="(?:"+We+"|"+Ke+")?",ot="[\\ufe0e\\ufe0f]?"+rt+"(?:\\u200d(?:"+[Ye,Je,Xe].join("|")+")[\\ufe0e\\ufe0f]?"+rt+")*",it="(?:"+["[\\u2700-\\u27bf]",Je,Xe].join("|")+")"+ot,lt="(?:"+[Ye+We+"?",We,Je,Xe,"[\\ud800-\\udfff]"].join("|")+")",ut=RegExp("['\u2019]","g"),at=RegExp(We,"g"),st=RegExp(Ke+"(?="+Ke+")|"+lt+ot,"g"),ct=RegExp([et+"?"+$e+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[qe,et,"$"].join("|")+")",nt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[qe,et+tt,"$"].join("|")+")",et+"?"+tt+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",et+"+(?:['\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_])",Ze,it].join("|"),"g"),dt=RegExp("[\\u200d\\ud800-\\udfff"+Ue+"\\ufe0e\\ufe0f]"),ft=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,pt=["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"],ht=-1,gt={};gt[te]=gt[ne]=gt[re]=gt[oe]=gt[ie]=gt[le]=gt[ue]=gt[ae]=gt[se]=!0,gt[V]=gt[P]=gt[X]=gt[R]=gt[ee]=gt[j]=gt[B]=gt[L]=gt[z]=gt[U]=gt[q]=gt[Z]=gt[$]=gt[Q]=gt[J]=!1;var vt={};vt[V]=vt[P]=vt[X]=vt[ee]=vt[R]=vt[j]=vt[te]=vt[ne]=vt[re]=vt[oe]=vt[ie]=vt[z]=vt[U]=vt[q]=vt[Z]=vt[$]=vt[Q]=vt[K]=vt[le]=vt[ue]=vt[ae]=vt[se]=!0,vt[B]=vt[L]=vt[J]=!1;var mt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},yt=parseFloat,_t=parseInt,bt="object"==typeof global&&global&&global.Object===Object&&global,wt="object"==typeof self&&self&&self.Object===Object&&self,xt=bt||wt||Function("return this")(),Ct="object"==typeof t&&t&&!t.nodeType&&t,Et=Ct&&"object"==typeof e&&e&&!e.nodeType&&e,kt=Et&&Et.exports===Ct,Ot=kt&&bt.process,St=function(){try{return Et&&Et.require&&Et.require("util").types||Ot&&Ot.binding&&Ot.binding("util")}catch(e){}}(),Tt=St&&St.isArrayBuffer,At=St&&St.isDate,Dt=St&&St.isMap,It=St&&St.isRegExp,Nt=St&&St.isSet,Vt=St&&St.isTypedArray;function Pt(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 Lt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function sn(e,t){for(var n=e.length;n--&&Qt(t,e[n],0)>-1;);return n}var cn=en({"\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=en({"&":"&","<":"<",">":">",'"':""","'":"'"});function fn(e){return"\\"+mt[e]}function pn(e){return dt.test(e)}function hn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function gn(e,t){return function(n){return e(t(n))}}function vn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"}),xn=function e(t){var n,r=(t=null==t?xt:xn.defaults(xt.Object(),t,xn.pick(xt,pt))).Array,Ue=t.Date,Ge=t.Error,qe=t.Function,We=t.Math,Ze=t.Object,$e=t.RegExp,Qe=t.String,Ke=t.TypeError,Ye=r.prototype,Je=Ze.prototype,Xe=t["__core-js_shared__"],et=qe.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(Ze),lt=xt._,st=$e("^"+et.call(tt).replace(Ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dt=kt?t.Buffer:o,mt=t.Symbol,bt=t.Uint8Array,wt=dt?dt.allocUnsafe:o,Ct=gn(Ze.getPrototypeOf,Ze),Et=Ze.create,Ot=Je.propertyIsEnumerable,St=Ye.splice,Wt=mt?mt.isConcatSpreadable:o,en=mt?mt.iterator:o,Cn=mt?mt.toStringTag:o,En=function(){try{var e=Ci(Ze,"defineProperty");return e({},"",{}),e}catch(e){}}(),kn=t.clearTimeout!==xt.clearTimeout&&t.clearTimeout,On=Ue&&Ue.now!==xt.Date.now&&Ue.now,Sn=t.setTimeout!==xt.setTimeout&&t.setTimeout,Tn=We.ceil,An=We.floor,Dn=Ze.getOwnPropertySymbols,In=dt?dt.isBuffer:o,Nn=t.isFinite,Vn=Ye.join,Pn=gn(Ze.keys,Ze),Mn=We.max,Rn=We.min,jn=Ue.now,Fn=t.parseInt,Bn=We.random,Ln=Ye.reverse,Hn=Ci(t,"DataView"),zn=Ci(t,"Map"),Un=Ci(t,"Promise"),Gn=Ci(t,"Set"),qn=Ci(t,"WeakMap"),Wn=Ci(Ze,"create"),Zn=qn&&new qn,$n={},Qn=Qi(Hn),Kn=Qi(zn),Yn=Qi(Un),Jn=Qi(Gn),Xn=Qi(qn),er=mt?mt.prototype:o,tr=er?er.valueOf:o,nr=er?er.toString:o;function rr(e){if(fu(e)&&!tu(e)&&!(e instanceof ur)){if(e instanceof lr)return e;if(tt.call(e,"__wrapped__"))return Ki(e)}return new lr(e)}var or=function(){function e(){}return function(t){if(!du(t))return{};if(Et)return Et(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function ir(){}function lr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function ur(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=A,this.__views__=[]}function ar(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Cr(e,t,n,r,i,l){var u,d=t&a,f=t&s,p=t&c;if(n&&(u=i?n(e,r,i,l):n(e)),u!==o)return u;if(!du(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),!d)return Ho(e,u)}else{var g=Oi(e),v=g==L||g==H;if(iu(e))return Mo(e,d);if(g==q||g==V||v&&!i){if(u=f||v?{}:Ti(e),!d)return f?function(e,t){return zo(e,ki(e),t)}(e,function(t,n){return t&&zo(e,Uu(e),t)}(u)):function(e,t){return zo(e,Ei(e),t)}(e,_r(u,e))}else{if(!vt[g])return i?e:{};u=function(e,t,n){var r,o,i=e.constructor;switch(t){case X:return Ro(e);case R:case j:return new i(+e);case ee:return function(e,t){var n=t?Ro(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case te:case ne:case re:case oe:case ie:case le:case ue:case ae:case se:return jo(e,n);case z:return new i;case U:case Q:return new i(e);case Z:return(o=new(r=e).constructor(r.source,Pe.exec(r))).lastIndex=r.lastIndex,o;case $:return new i;case K:return tr?Ze(tr.call(e)):{}}}(e,g,d)}}l||(l=new fr);var m=l.get(e);if(m)return m;if(l.set(e,u),mu(e))return e.forEach(function(r){u.add(Cr(r,t,n,r,e,l))}),u;if(pu(e))return e.forEach(function(r,o){u.set(o,Cr(r,t,n,o,e,l))}),u;var y=h?o:(p?f?vi:gi:f?Uu:zu)(e);return Rt(y||e,function(r,o){y&&(r=e[o=r]),vr(u,o,Cr(r,t,n,o,e,l))}),u}function Er(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ze(e);r--;){var i=n[r],l=e[i];if(l===o&&!(i in e)||!(0,t[i])(l))return!1}return!0}function kr(e,t,n){if("function"!=typeof e)throw new Ke(l);return zi(function(){e.apply(o,n)},t)}function Or(e,t,n,r){var o=-1,l=Bt,u=!0,a=e.length,s=[],c=t.length;if(!a)return s;n&&(t=Ht(t,on(n))),r?(l=Lt,u=!1):t.length>=i&&(l=un,u=!1,t=new dr(t));e:for(;++o-1},sr.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},cr.prototype.clear=function(){this.size=0,this.__data__={hash:new ar,map:new(zn||sr),string:new ar}},cr.prototype.delete=function(e){var t=wi(this,e).delete(e);return this.size-=t?1:0,t},cr.prototype.get=function(e){return wi(this,e).get(e)},cr.prototype.has=function(e){return wi(this,e).has(e)},cr.prototype.set=function(e,t){var n=wi(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)},fr.prototype.clear=function(){this.__data__=new sr,this.size=0},fr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},fr.prototype.get=function(e){return this.__data__.get(e)},fr.prototype.has=function(e){return this.__data__.has(e)},fr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof sr){var r=n.__data__;if(!zn||r.length0&&n(u)?t>1?Nr(u,t-1,n,r,o):zt(o,u):r||(o[o.length]=u)}return o}var Vr=Wo(),Pr=Wo(!0);function Mr(e,t){return e&&Vr(e,t,zu)}function Rr(e,t){return e&&Pr(e,t,zu)}function jr(e,t){return Ft(t,function(t){return au(e[t])})}function Fr(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 Ur(e,t){return null!=e&&t in Ze(e)}function Gr(e,t,n){for(var i=n?Lt:Bt,l=e[0].length,u=e.length,a=u,s=r(u),c=1/0,d=[];a--;){var f=e[a];a&&t&&(f=Ht(f,on(t))),c=Rn(f.length,c),s[a]=!n&&(t||l>=120&&f.length>=120)?new dr(a&&f):o}f=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}(Xr(e,function(e,n,o){return{criteria:Ht(t,function(t){return t(e)}),index:++r,value:e}}))}function io(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)u!==e&&St.call(u,a,1),St.call(e,a,1);return e}function uo(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;Di(o)?St.call(e,o,1):Co(e,o)}}return e}function ao(e,t){return e+An(Bn()*(t-e+1))}function so(e,t){var n="";if(!e||t<1||t>O)return n;do{t%2&&(n+=e),(t=An(t/2))&&(e+=e)}while(t);return n}function co(e,t){return Ui(Fi(e,t,ha),e+"")}function fo(e,t,n,r){if(!du(e))return e;for(var i=-1,l=(t=Io(t,e)).length,u=l-1,a=e;null!=a&&++ii?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=i){var c=t?null:ui(e);if(c)return mn(c);u=!1,o=un,s=new dr}else s=t?[]:a;e:for(;++r=r?e:go(e,t,n)}var Po=kn||function(e){return xt.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 bt(t).set(new bt(e)),t}function jo(e,t){var n=t?Ro(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Fo(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,l=_u(e),u=t!==o,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||!i)return 1;if(!r&&!l&&!c&&e1?n[i-1]:o,u=i>2?n[2]:o;for(l=e.length>3&&"function"==typeof l?(i--,l):o,u&&Ii(n[0],n[1],u)&&(l=i<3?o:l,i=1),t=Ze(t);++r-1?i[l?t[u]:u]:o}}function Yo(e){return hi(function(t){var n=t.length,r=n,i=lr.prototype.thru;for(e&&t.reverse();r--;){var u=t[r];if("function"!=typeof u)throw new Ke(l);if(i&&!a&&"wrapper"==yi(u))var a=new lr([],!0)}for(r=a?r:n;++r1&&v.reverse(),f&&ca))return!1;var c=l.get(e);if(c&&l.get(t))return c==t;var p=-1,h=!0,g=n&f?new dr:o;for(l.set(e,t),l.set(t,e);++p-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(N,function(n){var r="_."+n[0];t&n[1]&&!Bt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Ae);return t?t[1].split(De):[]}(r),n)))}function qi(e){var t=0,n=0;return function(){var r=jn(),i=E-(r-n);if(n=r,i>0){if(++t>=C)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Wi(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n1?e[t-1]:o;return vl(e,n="function"==typeof n?(e.pop(),n):o)});function Cl(e){var t=rr(e);return t.__chain__=!0,t}function El(e,t){return t(e)}var kl=hi(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return wr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof ur&&Di(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:El,args:[i],thisArg:o}),new lr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(i)}),Ol=Uo(function(e,t,n){tt.call(e,n)?++e[n]:br(e,n,1)}),Sl=Ko(el),Tl=Ko(tl);function Al(e,t){return(tu(e)?Rt:Sr)(e,bi(t,3))}function Dl(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,bi(t,3))}var Il=Uo(function(e,t,n){tt.call(e,n)?e[n].push(t):br(e,n,[t])}),Nl=co(function(e,t,n){var o=-1,i="function"==typeof t,l=ru(e)?r(e.length):[];return Sr(e,function(e){l[++o]=i?Pt(t,e,n):qr(e,t,n)}),l}),Vl=Uo(function(e,t,n){br(e,n,t)});function Pl(e,t){return(tu(e)?Ht:Xr)(e,bi(t,3))}var Ml=Uo(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Rl=co(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]]),oo(e,Nr(t,1),[])}),jl=On||function(){return xt.Date.now()};function Fl(e,t,n){return t=n?o:t,si(e,b,o,o,o,o,t=e&&null==t?e.length:t)}function Bl(e,t){var n;if("function"!=typeof t)throw new Ke(l);return e=ku(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Ll=co(function(e,t,n){var r=p;if(n.length){var o=vn(n,_i(Ll));r|=y}return si(e,r,t,n,o)}),Hl=co(function(e,t,n){var r=p|h;if(n.length){var o=vn(n,_i(Hl));r|=y}return si(t,r,e,n,o)});function zl(e,t,n){var r,i,u,a,s,c,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new Ke(l);function g(t){var n=r,l=i;return r=i=o,d=t,a=e.apply(l,n)}function v(e){var n=e-c;return c===o||n>=t||n<0||p&&e-d>=u}function m(){var e=jl();if(v(e))return y(e);s=zi(m,function(e){var n=t-(e-c);return p?Rn(n,u-(e-d)):n}(e))}function y(e){return s=o,h&&r?g(e):(r=i=o,a)}function _(){var e=jl(),n=v(e);if(r=arguments,i=this,c=e,n){if(s===o)return function(e){return d=e,s=zi(m,t),f?g(e):a}(c);if(p)return s=zi(m,t),g(c)}return s===o&&(s=zi(m,t)),a}return t=Su(t)||0,du(n)&&(f=!!n.leading,u=(p="maxWait"in n)?Mn(Su(n.maxWait)||0,t):u,h="trailing"in n?!!n.trailing:h),_.cancel=function(){s!==o&&Po(s),d=0,r=c=i=s=o},_.flush=function(){return s===o?a:y(jl())},_}var Ul=co(function(e,t){return kr(e,1,t)}),Gl=co(function(e,t,n){return kr(e,Su(t)||0,n)});function ql(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ke(l);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(ql.Cache||cr),n}function Wl(e){if("function"!=typeof e)throw new Ke(l);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)}}ql.Cache=cr;var Zl=No(function(e,t){var n=(t=1==t.length&&tu(t[0])?Ht(t[0],on(bi())):Ht(Nr(t,1),on(bi()))).length;return co(function(r){for(var o=-1,i=Rn(r.length,n);++o=t}),eu=Wr(function(){return arguments}())?Wr:function(e){return fu(e)&&tt.call(e,"callee")&&!Ot.call(e,"callee")},tu=r.isArray,nu=Tt?on(Tt):function(e){return fu(e)&&Lr(e)==X};function ru(e){return null!=e&&cu(e.length)&&!au(e)}function ou(e){return fu(e)&&ru(e)}var iu=In||Sa,lu=At?on(At):function(e){return fu(e)&&Lr(e)==j};function uu(e){if(!fu(e))return!1;var t=Lr(e);return t==B||t==F||"string"==typeof e.message&&"string"==typeof e.name&&!gu(e)}function au(e){if(!du(e))return!1;var t=Lr(e);return t==L||t==H||t==M||t==W}function su(e){return"number"==typeof e&&e==ku(e)}function cu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=O}function du(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function fu(e){return null!=e&&"object"==typeof e}var pu=Dt?on(Dt):function(e){return fu(e)&&Oi(e)==z};function hu(e){return"number"==typeof e||fu(e)&&Lr(e)==U}function gu(e){if(!fu(e)||Lr(e)!=q)return!1;var t=Ct(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?on(It):function(e){return fu(e)&&Lr(e)==Z},mu=Nt?on(Nt):function(e){return fu(e)&&Oi(e)==$};function yu(e){return"string"==typeof e||!tu(e)&&fu(e)&&Lr(e)==Q}function _u(e){return"symbol"==typeof e||fu(e)&&Lr(e)==K}var bu=Vt?on(Vt):function(e){return fu(e)&&cu(e.length)&&!!gt[Lr(e)]},wu=oi(Jr),xu=oi(function(e,t){return e<=t});function Cu(e){if(!e)return[];if(ru(e))return yu(e)?bn(e):Ho(e);if(en&&e[en])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[en]());var t=Oi(e);return(t==z?hn:t==$?mn:Yu)(e)}function Eu(e){return e?(e=Su(e))===k||e===-k?(e<0?-1:1)*S:e==e?e:0:0===e?e:0}function ku(e){var t=Eu(e),n=t%1;return t==t?n?t-n:t:0}function Ou(e){return e?xr(ku(e),0,A):0}function Su(e){if("number"==typeof e)return e;if(_u(e))return T;if(du(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=du(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ke,"");var n=Re.test(e);return n||Fe.test(e)?_t(e.slice(2),n?2:8):Me.test(e)?T:+e}function Tu(e){return zo(e,Uu(e))}function Au(e){return null==e?"":wo(e)}var Du=Go(function(e,t){if(Mi(t)||ru(t))zo(t,zu(t),e);else for(var n in t)tt.call(t,n)&&vr(e,n,t[n])}),Iu=Go(function(e,t){zo(t,Uu(t),e)}),Nu=Go(function(e,t,n,r){zo(t,Uu(t),e,r)}),Vu=Go(function(e,t,n,r){zo(t,zu(t),e,r)}),Pu=hi(wr),Mu=co(function(e,t){e=Ze(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&Ii(t[0],t[1],i)&&(r=1);++n1),t}),zo(e,vi(e),n),r&&(n=Cr(n,a|s|c,fi));for(var o=t.length;o--;)Co(n,t[o]);return n}),Zu=hi(function(e,t){return null==e?{}:function(e,t){return io(e,t,function(t,n){return Fu(e,n)})}(e,t)});function $u(e,t){if(null==e)return{};var n=Ht(vi(e),function(e){return[e]});return t=bi(t),io(e,n,function(e,n){return t(e,n[0])})}var Qu=ai(zu),Ku=ai(Uu);function Yu(e){return null==e?[]:ln(e,zu(e))}var Ju=$o(function(e,t,n){return t=t.toLowerCase(),e+(n?Xu(t):t)});function Xu(e){return ua(Au(e).toLowerCase())}function ea(e){return(e=Au(e))&&e.replace(Le,cn).replace(at,"")}var ta=$o(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),na=$o(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),ra=Zo("toLowerCase"),oa=$o(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),ia=$o(function(e,t,n){return e+(n?" ":"")+ua(t)}),la=$o(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ua=Zo("toUpperCase");function aa(e,t,n){return e=Au(e),(t=n?o:t)===o?function(e){return ft.test(e)}(e)?function(e){return e.match(ct)||[]}(e):function(e){return e.match(Ie)||[]}(e):e.match(t)||[]}var sa=co(function(e,t){try{return Pt(e,o,t)}catch(e){return uu(e)?e:new Ge(e)}}),ca=hi(function(e,t){return Rt(t,function(t){t=$i(t),br(e,t,Ll(e[t],e))}),e});function da(e){return function(){return e}}var fa=Yo(),pa=Yo(!0);function ha(e){return e}function ga(e){return Kr("function"==typeof e?e:Cr(e,a))}var va=co(function(e,t){return function(n){return qr(n,e,t)}}),ma=co(function(e,t){return function(n){return qr(e,n,t)}});function ya(e,t,n){var r=zu(t),o=jr(t,r);null!=n||du(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=jr(t,zu(t)));var i=!(du(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=ti(Ht),wa=ti(jt),xa=ti(qt);function Ca(e){return Ni(e)?Xt($i(e)):function(e){return function(t){return Fr(t,e)}}(e)}var Ea=ri(),ka=ri(!0);function Oa(){return[]}function Sa(){return!1}var Ta,Aa=ei(function(e,t){return e+t},0),Da=li("ceil"),Ia=ei(function(e,t){return e/t},1),Na=li("floor"),Va=ei(function(e,t){return e*t},1),Pa=li("round"),Ma=ei(function(e,t){return e-t},0);return rr.after=function(e,t){if("function"!=typeof t)throw new Ke(l);return e=ku(e),function(){if(--e<1)return t.apply(this,arguments)}},rr.ary=Fl,rr.assign=Du,rr.assignIn=Iu,rr.assignInWith=Nu,rr.assignWith=Vu,rr.at=Pu,rr.before=Bl,rr.bind=Ll,rr.bindAll=ca,rr.bindKey=Hl,rr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return tu(e)?e:[e]},rr.chain=Cl,rr.chunk=function(e,t,n){t=(n?Ii(e,t,n):t===o)?1:Mn(ku(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var l=0,u=0,a=r(Tn(i/t));li?0:i+n),(r=r===o||r>i?i:ku(r))<0&&(r+=i),r=n>r?0:Ou(r);n>>0)?(e=Au(e))&&("string"==typeof t||null!=t&&!vu(t))&&!(t=wo(t))&&pn(e)?Vo(bn(e),0,n):e.split(t,n):[]},rr.spread=function(e,t){if("function"!=typeof e)throw new Ke(l);return t=null==t?0:Mn(ku(t),0),co(function(n){var r=n[t],o=Vo(n,0,t);return r&&zt(o,r),Pt(e,this,o)})},rr.tail=function(e){var t=null==e?0:e.length;return t?go(e,1,t):[]},rr.take=function(e,t,n){return e&&e.length?go(e,0,(t=n||t===o?1:ku(t))<0?0:t):[]},rr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?go(e,(t=r-(t=n||t===o?1:ku(t)))<0?0:t,r):[]},rr.takeRightWhile=function(e,t){return e&&e.length?ko(e,bi(t,3),!1,!0):[]},rr.takeWhile=function(e,t){return e&&e.length?ko(e,bi(t,3)):[]},rr.tap=function(e,t){return t(e),e},rr.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Ke(l);return du(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),zl(e,t,{leading:r,maxWait:t,trailing:o})},rr.thru=El,rr.toArray=Cu,rr.toPairs=Qu,rr.toPairsIn=Ku,rr.toPath=function(e){return tu(e)?Ht(e,$i):_u(e)?[e]:Ho(Zi(Au(e)))},rr.toPlainObject=Tu,rr.transform=function(e,t,n){var r=tu(e),o=r||iu(e)||bu(e);if(t=bi(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:du(e)&&au(i)?or(Ct(e)):{}}return(o?Rt:Mr)(e,function(e,r,o){return t(n,e,r,o)}),n},rr.unary=function(e){return Fl(e,1)},rr.union=fl,rr.unionBy=pl,rr.unionWith=hl,rr.uniq=function(e){return e&&e.length?xo(e):[]},rr.uniqBy=function(e,t){return e&&e.length?xo(e,bi(t,2)):[]},rr.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?xo(e,o,t):[]},rr.unset=function(e,t){return null==e||Co(e,t)},rr.unzip=gl,rr.unzipWith=vl,rr.update=function(e,t,n){return null==e?e:Eo(e,t,Do(n))},rr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Eo(e,t,Do(n),r)},rr.values=Yu,rr.valuesIn=function(e){return null==e?[]:ln(e,Uu(e))},rr.without=ml,rr.words=aa,rr.wrap=function(e,t){return $l(Do(t),e)},rr.xor=yl,rr.xorBy=_l,rr.xorWith=bl,rr.zip=wl,rr.zipObject=function(e,t){return To(e||[],t||[],vr)},rr.zipObjectDeep=function(e,t){return To(e||[],t||[],fo)},rr.zipWith=xl,rr.entries=Qu,rr.entriesIn=Ku,rr.extend=Iu,rr.extendWith=Nu,ya(rr,rr),rr.add=Aa,rr.attempt=sa,rr.camelCase=Ju,rr.capitalize=Xu,rr.ceil=Da,rr.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=Su(n))==n?n:0),t!==o&&(t=(t=Su(t))==t?t:0),xr(Su(e),t,n)},rr.clone=function(e){return Cr(e,c)},rr.cloneDeep=function(e){return Cr(e,a|c)},rr.cloneDeepWith=function(e,t){return Cr(e,a|c,t="function"==typeof t?t:o)},rr.cloneWith=function(e,t){return Cr(e,c,t="function"==typeof t?t:o)},rr.conformsTo=function(e,t){return null==t||Er(e,t,zu(t))},rr.deburr=ea,rr.defaultTo=function(e,t){return null==e||e!=e?t:e},rr.divide=Ia,rr.endsWith=function(e,t,n){e=Au(e),t=wo(t);var r=e.length,i=n=n===o?r:xr(ku(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},rr.eq=Yl,rr.escape=function(e){return(e=Au(e))&&ve.test(e)?e.replace(he,dn):e},rr.escapeRegExp=function(e){return(e=Au(e))&&Ee.test(e)?e.replace(Ce,"\\$&"):e},rr.every=function(e,t,n){var r=tu(e)?jt:Ar;return n&&Ii(e,t,n)&&(t=o),r(e,bi(t,3))},rr.find=Sl,rr.findIndex=el,rr.findKey=function(e,t){return Zt(e,bi(t,3),Mr)},rr.findLast=Tl,rr.findLastIndex=tl,rr.findLastKey=function(e,t){return Zt(e,bi(t,3),Rr)},rr.floor=Na,rr.forEach=Al,rr.forEachRight=Dl,rr.forIn=function(e,t){return null==e?e:Vr(e,bi(t,3),Uu)},rr.forInRight=function(e,t){return null==e?e:Pr(e,bi(t,3),Uu)},rr.forOwn=function(e,t){return e&&Mr(e,bi(t,3))},rr.forOwnRight=function(e,t){return e&&Rr(e,bi(t,3))},rr.get=ju,rr.gt=Jl,rr.gte=Xl,rr.has=function(e,t){return null!=e&&Si(e,t,zr)},rr.hasIn=Fu,rr.head=rl,rr.identity=ha,rr.includes=function(e,t,n,r){e=ru(e)?e:Yu(e),n=n&&!r?ku(n):0;var o=e.length;return n<0&&(n=Mn(o+n,0)),yu(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Qt(e,t,n)>-1},rr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ku(n);return o<0&&(o=Mn(r+o,0)),Qt(e,t,o)},rr.inRange=function(e,t,n){return t=Eu(t),n===o?(n=t,t=0):n=Eu(n),function(e,t,n){return e>=Rn(t,n)&&e=-O&&e<=O},rr.isSet=mu,rr.isString=yu,rr.isSymbol=_u,rr.isTypedArray=bu,rr.isUndefined=function(e){return e===o},rr.isWeakMap=function(e){return fu(e)&&Oi(e)==J},rr.isWeakSet=function(e){return fu(e)&&"[object WeakSet]"==Lr(e)},rr.join=function(e,t){return null==e?"":Vn.call(e,t)},rr.kebabCase=ta,rr.last=ul,rr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ku(n))<0?Mn(r+i,0):Rn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):$t(e,Yt,i,!0)},rr.lowerCase=na,rr.lowerFirst=ra,rr.lt=wu,rr.lte=xu,rr.max=function(e){return e&&e.length?Dr(e,ha,Hr):o},rr.maxBy=function(e,t){return e&&e.length?Dr(e,bi(t,2),Hr):o},rr.mean=function(e){return Jt(e,ha)},rr.meanBy=function(e,t){return Jt(e,bi(t,2))},rr.min=function(e){return e&&e.length?Dr(e,ha,Jr):o},rr.minBy=function(e,t){return e&&e.length?Dr(e,bi(t,2),Jr):o},rr.stubArray=Oa,rr.stubFalse=Sa,rr.stubObject=function(){return{}},rr.stubString=function(){return""},rr.stubTrue=function(){return!0},rr.multiply=Va,rr.nth=function(e,t){return e&&e.length?ro(e,ku(t)):o},rr.noConflict=function(){return xt._===this&&(xt._=lt),this},rr.noop=_a,rr.now=jl,rr.pad=function(e,t,n){e=Au(e);var r=(t=ku(t))?_n(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return ni(An(o),n)+e+ni(Tn(o),n)},rr.padEnd=function(e,t,n){e=Au(e);var r=(t=ku(t))?_n(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Bn();return Rn(e+i*(t-e+yt("1e-"+((i+"").length-1))),t)}return ao(e,t)},rr.reduce=function(e,t,n){var r=tu(e)?Ut:tn,o=arguments.length<3;return r(e,bi(t,4),n,o,Sr)},rr.reduceRight=function(e,t,n){var r=tu(e)?Gt:tn,o=arguments.length<3;return r(e,bi(t,4),n,o,Tr)},rr.repeat=function(e,t,n){return t=(n?Ii(e,t,n):t===o)?1:ku(t),so(Au(e),t)},rr.replace=function(){var e=arguments,t=Au(e[0]);return e.length<3?t:t.replace(e[1],e[2])},rr.result=function(e,t,n){var r=-1,i=(t=Io(t,e)).length;for(i||(i=1,e=o);++rO)return[];var n=A,r=Rn(e,A);t=bi(t),e-=A;for(var o=rn(r,t);++n=l)return e;var a=n-_n(r);if(a<1)return r;var s=u?Vo(u,0,a).join(""):e.slice(0,a);if(i===o)return s+r;if(u&&(a+=s.length-a),vu(i)){if(e.slice(a).search(i)){var c,d=s;for(i.global||(i=$e(i.source,Au(Pe.exec(i))+"g")),i.lastIndex=0;c=i.exec(d);)var f=c.index;s=s.slice(0,f===o?a:f)}}else if(e.indexOf(wo(i),a)!=a){var p=s.lastIndexOf(i);p>-1&&(s=s.slice(0,p))}return s+r},rr.unescape=function(e){return(e=Au(e))&&ge.test(e)?e.replace(pe,wn):e},rr.uniqueId=function(e){var t=++nt;return Au(e)+t},rr.upperCase=la,rr.upperFirst=ua,rr.each=Al,rr.eachRight=Dl,rr.first=rl,ya(rr,(Ta={},Mr(rr,function(e,t){tt.call(rr.prototype,t)||(Ta[t]=e)}),Ta),{chain:!1}),rr.VERSION="4.17.11",Rt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){rr[e].placeholder=rr}),Rt(["drop","take"],function(e,t){ur.prototype[e]=function(n){n=n===o?1:Mn(ku(n),0);var r=this.__filtered__&&!t?new ur(this):this.clone();return r.__filtered__?r.__takeCount__=Rn(n,r.__takeCount__):r.__views__.push({size:Rn(n,A),type:e+(r.__dir__<0?"Right":"")}),r},ur.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;ur.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:bi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Rt(["head","last"],function(e,t){var n="take"+(t?"Right":"");ur.prototype[e]=function(){return this[n](1).value()[0]}}),Rt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");ur.prototype[e]=function(){return this.__filtered__?new ur(this):this[n](1)}}),ur.prototype.compact=function(){return this.filter(ha)},ur.prototype.find=function(e){return this.filter(e).head()},ur.prototype.findLast=function(e){return this.reverse().find(e)},ur.prototype.invokeMap=co(function(e,t){return"function"==typeof e?new ur(this):this.map(function(n){return qr(n,e,t)})}),ur.prototype.reject=function(e){return this.filter(Wl(bi(e)))},ur.prototype.slice=function(e,t){e=ku(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ur(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ku(t))<0?n.dropRight(-t):n.take(t-e)),n)},ur.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ur.prototype.toArray=function(){return this.take(A)},Mr(ur.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=rr[r?"take"+("last"==t?"Right":""):t],l=r||/^find/.test(t);i&&(rr.prototype[t]=function(){var t=this.__wrapped__,u=r?[1]:arguments,a=t instanceof ur,s=u[0],c=a||tu(t),d=function(e){var t=i.apply(rr,zt([e],u));return r&&f?t[0]:t};c&&n&&"function"==typeof s&&1!=s.length&&(a=c=!1);var f=this.__chain__,p=l&&!f,h=a&&!this.__actions__.length;if(!l&&c){t=h?t:new ur(this);var g=e.apply(t,u);return g.__actions__.push({func:El,args:[d],thisArg:o}),new lr(g,f)}return p&&h?e.apply(this,u):(g=this.thru(d),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);rr.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(ur.prototype,function(e,t){var n=rr[t];if(n){var r=n.name+"";($n[r]||($n[r]=[])).push({name:t,func:n})}}),$n[Jo(o,h).name]=[{name:"wrapper",func:o}],ur.prototype.clone=function(){var e=new ur(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},ur.prototype.reverse=function(){if(this.__filtered__){var e=new ur(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ur.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?o:this.__values__[this.__index__++]}},rr.prototype.plant=function(e){for(var t,n=this;n instanceof ir;){var r=Ki(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},rr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ur){var t=e;return this.__actions__.length&&(t=new ur(this)),(t=t.reverse()).__actions__.push({func:El,args:[dl],thisArg:o}),new lr(t,this.__chain__)}return this.thru(dl)},rr.prototype.toJSON=rr.prototype.valueOf=rr.prototype.value=function(){return Oo(this.__wrapped__,this.__actions__)},rr.prototype.first=rr.prototype.head,en&&(rr.prototype[en]=function(){return this}),rr}();xt._=xn,(r=(function(){return xn}).call(t,n,t,e))===o||(e.exports=r)}).call(this)}).call(this,n("YuTi")(e))},NzhH: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 using the following command:

    \n
     npm i ngx-select-ex@ng4 --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

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

    \n
     import {NgModule} from '@angular/core';\n import {BrowserModule} from '@angular/platform-browser';\n import {AppComponent} from './app.component';\n import { NgxSelectModule, INgxSelectOptions } from 'ngx-select-ex';\n\n const CustomSelectOptions: INgxSelectOptions = { // Check the interface for more options\n     optionValueField: 'id',\n     optionTextField: 'name'\n };\n\n @NgModule({\n   imports: [BrowserModule, NgxSelectModule.forRoot(CustomSelectOptions)],\n   declarations: [AppComponent],\n   bootstrap: [AppComponent],\n })\n export class AppModule {\n }\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\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
[keepSelectedItems]booleanfalseStoring the selected items when the item list is changed
[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
autoClearSearchbooleanfalseAuto clear a search text after select an option. Has effect for multiple = true
noResultsFoundstring'No results found'The default text showed when a search has no results
size'small'/'default'/'large''default'Adding bootstrap classes: form-control-sm, input-sm, form-control-lg input-lg, btn-sm, btn-lg
searchCallback(search: string, item: INgxSelectOption) => booleannullThe callback function for custom filtering the select list
autoActiveOnMouseEnterbooleantrueAutomatically activate item when mouse enter on it
\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
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.
(navigated)Fired on navigate by the dropdown list. Returns: INgxOptionNavigated.
(selectionChanges)Fired on change selected options. Returns: INgxSelectOption[].
\n

Warning! Although the component contains the select and the remove events, the better solution is using valueChanges 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-buttons - The container of buttons such as the clear and the toggle.
  • \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

Templates

\n

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

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

Also, you are can mix directives for reducing template:

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

Description details of the directives:

\n
    \n
  1. ngx-select-option-selected - Customization rendering selected options.\n Representing variables:
      \n
    • option (implicit) - object of type INgxSelectOption.
    • \n
    • text - The text defined by the property optionTextField.
    • \n
    • index - Number value of index the option in the select list. Always equal to zero for the single select.
    • \n
    \n
  2. \n
  3. ngx-select-option - Customization rendering options in the dropdown menu.\n Representing variables:
      \n
    • option (implicit) - object of type INgxSelectOption.
    • \n
    • text - The highlighted text defined by the property optionTextField. It is highlighted in the search.
    • \n
    • index - Number value of index for the top level.
    • \n
    • subIndex - Number value of index for the second level.
    • \n
    \n
  4. \n
  5. ngx-select-option-not-found - Customization "not found text". Does not represent any variables.
  6. \n
\n'},Yqad: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"},YuTi:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},crnd:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="crnd"},dsz2:function(e,t){e.exports='

Select multiple cities

\n
\n
\n \n \n

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
\n'},jIeV:function(e,t){e.exports='

Getting started

\n

First of all, Welcome!

\n'},kiQV:function(e){e.exports={name:"ngx-select-ex",version:"3.6.3",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","publish.ng4":"npm publish dist --tag ng4","publish.ng6":"npm publish dist","publish.ng6-dev":"npm publish dist --tag dev",start:"ng serve",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","angular6","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-devkit/build-angular":"~0.8.0","@angular/animations":"^6.1.0","@angular/cli":"~6.2.3","@angular/common":"^6.1.0","@angular/compiler":"^6.1.0","@angular/compiler-cli":"^6.1.0","@angular/core":"^6.1.0","@angular/forms":"^6.1.0","@angular/http":"^6.1.0","@angular/language-service":"^6.1.0","@angular/platform-browser":"^6.1.0","@angular/platform-browser-dynamic":"^6.1.0","@angular/router":"^6.1.0","@types/jasmine":"~2.8.8","@types/jasminewd2":"~2.0.3","@types/marked":"^0.3.0","@types/node":"~8.9.4","@types/webpack":"^3.8.4",codecov:"^3.0.0",codelyzer:"~4.3.0",commitizen:"^2.9.6","core-js":"^2.5.4","cz-conventional-changelog":"^2.1.0","escape-string-regexp":"^1.0.5","html-loader":"^0.5.5",husky:"^0.14.3","jasmine-core":"~2.99.1","jasmine-spec-reporter":"~4.2.1",karma:"~3.0.0","karma-chrome-launcher":"~2.2.0","karma-coverage-istanbul-reporter":"~2.0.1","karma-jasmine":"~1.1.2","karma-jasmine-html-reporter":"^0.2.2",lodash:"^4.17.4","markdown-loader":"^2.0.2","ng-packagr":"^4.2.0","ngx-bootstrap":"^3.0.1","pre-commit":"^1.2.2",protractor:"~5.4.0",rxjs:"^6.3.3","rxjs-compat":"^6.3.3","standard-version":"^4.3.0","ts-node":"~7.0.0",tslint:"~5.11.0",typescript:"~2.9.2","zone.js":"~0.8.26"},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"}]}},ngBM:function(e,t){e.exports="import {Component} from '@angular/core';\nimport {INgxSelectOption} from '../../lib/ngx-select/ngx-select.interfaces';\n\n@Component({\n selector: 'multiple-demo',\n templateUrl: './multiple-demo.html'\n})\nexport class MultipleDemoComponent {\n public items: string[] = ['Amsterdam', 'Antwerp', 'Athens', 'Barcelona',\n 'Berlin', 'Birmingham', 'Bradford', 'Bremen', 'Brussels', 'Bucharest',\n 'Budapest', 'Cologne', 'Copenhagen', 'Dortmund', 'Dresden', 'Dublin', 'D\xfcsseldorf',\n 'Essen', 'Frankfurt', 'Genoa', 'Glasgow', 'Gothenburg', 'Hamburg', 'Hannover',\n 'Helsinki', 'Leeds', 'Leipzig', 'Lisbon', '\u0141\xf3d\u017a', 'London', 'Krak\xf3w', 'Madrid',\n 'M\xe1laga', 'Manchester', 'Marseille', 'Milan', 'Munich', 'Naples', 'Palermo',\n 'Paris', 'Pozna\u0144', 'Prague', 'Riga', 'Rome', 'Rotterdam', 'Seville', 'Sheffield',\n 'Sofia', 'Stockholm', 'Stuttgart', 'The Hague', 'Turin', 'Valencia', 'Vienna',\n 'Vilnius', 'Warsaw', 'Wroc\u0142aw', 'Zagreb', 'Zaragoza'];\n\n public ngxValue: any = [];\n public ngxDisabled = false;\n\n public doSelectOptions = (options: INgxSelectOption[]) => console.log('MultipleDemoComponent.doSelectOptions', options);\n}\n"},oxjq: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,"\\$&")}},rZW4:function(e,t){e.exports="import {Component, ViewEncapsulation} from '@angular/core';\nimport {DomSanitizer, SafeStyle} from '@angular/platform-browser';\n\nconst COLORS = [\n {'name': 'Blue 10', 'hex': '#C0E6FF'},\n {'name': 'Blue 20', 'hex': '#7CC7FF'},\n {'name': 'Blue 30', 'hex': '#5AAAFA', disabled: true},\n {'name': 'Blue 40', 'hex': '#5596E6'},\n {'name': 'Blue 50', 'hex': '#4178BE'},\n {'name': 'Blue 60', 'hex': '#325C80'},\n {'name': 'Blue 70', 'hex': '#264A60'},\n {'name': 'Blue 80', 'hex': '#1D3649'},\n {'name': 'Blue 90', 'hex': '#152935'},\n {'name': 'Blue 100', 'hex': '#010205'},\n {'name': 'Green 10', 'hex': '#C8F08F'},\n {'name': 'Green 20', 'hex': '#B4E051'},\n {'name': 'Green 30', 'hex': '#8CD211'},\n {'name': 'Green 40', 'hex': '#5AA700'},\n {'name': 'Green 50', 'hex': '#4B8400'},\n {'name': 'Green 60', 'hex': '#2D660A'},\n {'name': 'Green 70', 'hex': '#144D14'},\n {'name': 'Green 80', 'hex': '#0A3C02'},\n {'name': 'Green 90', 'hex': '#0C2808'},\n {'name': 'Green 100', 'hex': '#010200'},\n {'name': 'Red 10', 'hex': '#FFD2DD'},\n {'name': 'Red 20', 'hex': '#FFA5B4'},\n {'name': 'Red 30', 'hex': '#FF7D87'},\n {'name': 'Red 40', 'hex': '#FF5050'},\n {'name': 'Red 50', 'hex': '#E71D32'},\n {'name': 'Red 60', 'hex': '#AD1625'},\n {'name': 'Red 70', 'hex': '#8C101C'},\n {'name': 'Red 80', 'hex': '#6E0A1E'},\n {'name': 'Red 90', 'hex': '#4C0A17'},\n {'name': 'Red 100', 'hex': '#040001'},\n {'name': 'Yellow 10', 'hex': '#FDE876'},\n {'name': 'Yellow 20', 'hex': '#FDD600'},\n {'name': 'Yellow 30', 'hex': '#EFC100'},\n {'name': 'Yellow 40', 'hex': '#BE9B00'},\n {'name': 'Yellow 50', 'hex': '#8C7300'},\n {'name': 'Yellow 60', 'hex': '#735F00'},\n {'name': 'Yellow 70', 'hex': '#574A00'},\n {'name': 'Yellow 80', 'hex': '#3C3200'},\n {'name': 'Yellow 90', 'hex': '#281E00'},\n {'name': 'Yellow 100', 'hex': '#020100'}\n];\n\n@Component({\n selector: 'rich-demo',\n templateUrl: './rich-demo.html',\n styles: [`.color-box {\n display: inline-block;\n height: 14px;\n width: 14px;\n margin-right: 4px;\n border: 1px solid #000;\n }`],\n encapsulation: ViewEncapsulation.None // Enable dynamic HTML styles\n})\nexport class RichDemoComponent {\n public items: any[] = COLORS;\n\n public ngxValue: any = [];\n public ngxDisabled = false;\n\n constructor(public sanitizer: DomSanitizer) {\n }\n\n style(data: string): SafeStyle {\n return this.sanitizer.bypassSecurityTrustStyle(data);\n }\n}\n"},sAJ4: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"},wor0:function(e,t){e.exports='

Select a single city

\n
\n
\n \n \n

\n
\n
{{ngxControl.value | json}}
\n
\n
\n \n
\n
\n
\n'},xykP:function(e,t){e.exports='

Select a city by country

\n
\n
\n \n \n

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
\n'},zUnb:function(e,t,n){"use strict";n.r(t);var r=function(e,t){return(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])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;u--)(o=e[u])&&(l=(i<3?o(l):i>3?o(t,n,l):o(t,n))||l);return i>3&&l&&Object.defineProperty(t,n,l),l}function u(e,t){return function(n,r){t(n,r,e)}}function a(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function s(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)l.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return l}function d(){for(var e=[],t=0;t0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(X);function ae(e){return e}function se(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof o&&(n=e.pop()),null===r&&1===e.length&&e[0]instanceof P?e[0]:function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),ie(ae,e)}(n)(re(e,r))}function ce(){return function(e){return e.lift(new de(e))}}var de=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new fe(e,n),o=t.subscribe(r);return r.closed||(r.connection=n.connect()),o},e}(),fe=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return o(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)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}(T),pe=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return o(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 w).add(this.source.subscribe(new ge(this.getSubject(),this))),e.closed?(this._connection=null,e=w.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return ce()(this)},t}(P).prototype,he={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:pe._subscribe},_isComplete:{value:pe._isComplete,writable:!0},getSubject:{value:pe.getSubject},connect:{value:pe.connect},refCount:{value:pe.refCount}},ge=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return o(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}(B);function ve(){return new L}function me(){return function(e){return ce()((t=ve,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,he);return r.source=e,r.subjectFactory=n,r})(e));var t}}function ye(e){return{providedIn:e.providedIn||null,factory:e.factory,value:void 0}}var _e=function(){function e(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==t?ye({providedIn:t.providedIn||"root",factory:t.factory}):void 0}return e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(),be="__parameters__";function we(e,t,n){var r=function(e){return function(){for(var t=[],n=0;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):De(l)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+e.replace(Ye,"\n ")}function nt(e,t){return new Error(tt(e,t))}var rt=void 0;function ot(e){var t=rt;return rt=e,t}function it(e,t){if(void 0===t&&(t=0),void 0===rt)throw new Error("inject() must be called from an injection context");if(null===rt){var n=e.ngInjectableDef;if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(8&t)return null;throw new Error("Injector: NOT_FOUND ["+De(e)+"]")}return rt.get(e,8&t?null:void 0,t)}function lt(e){for(var t=[],n=0;n0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==o}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:n})},e.prototype.whenStable=function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.findProviders=function(e,t,n){return[]},e}(),pn=function(){function e(){this._applications=new Map,hn.addToWindow(this)}return e.prototype.registerApplication=function(e,t){this._applications.set(e,t)},e.prototype.unregisterApplication=function(e){this._applications.delete(e)},e.prototype.unregisterAllApplications=function(){this._applications.clear()},e.prototype.getTestability=function(e){return this._applications.get(e)||null},e.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},e.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},e.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),hn.findTestabilityInTree(this,e,t)},l([a("design:paramtypes",[])],e)}(),hn=new(function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,n){return null},e}()),gn=!0,vn=!1,mn=new _e("AllowMultipleToken");function yn(){return vn=!0,gn}var _n=function(e,t){this.name=e,this.token=t};function bn(e,t,n){void 0===n&&(n=[]);var r="Platform: "+t,o=new _e(r);return function(t){void 0===t&&(t=[]);var i=wn();if(!i||i.injector.get(mn,!1))if(e)e(n.concat(t).concat({provide:o,useValue:!0}));else{var l=n.concat(t).concat({provide:o,useValue:!0});!function(e){if(cn&&!cn.destroyed&&!cn.injector.get(mn,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");cn=e.get(xn);var t=e.get(Vt,null);t&&t.forEach(function(e){return e()})}(Ue.create({providers:l,name:r}))}return function(e){var t=wn();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(o)}}function wn(){return cn&&!cn.destroyed?cn:null}var xn=function(){function e(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return e.prototype.bootstrapModuleFactory=function(e,t){var n,r=this,o="noop"===(n=t?t.ngZone:void 0)?new dn:("zone.js"===n?void 0:n)||new rn({enableLongStackTrace:yn()}),i=[{provide:rn,useValue:o}];return o.run(function(){var t=Ue.create({providers:i,parent:r.injector,name:e.moduleType.name}),n=e.create(t),l=n.injector.get(gt,null);if(!l)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return kn(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(e){l.handleError(e)}})}),function(e,t,o){try{var i=((l=n.injector.get(At)).runInitializers(),l.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return St(i)?i.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):i}catch(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}var l}(l,o)})},e.prototype.bootstrapModule=function(e,t){var n=this;void 0===t&&(t=[]);var r=this.injector.get(Bt),o=Cn({},t);return r.createCompiler([o]).compileModuleAsync(e).then(function(e){return n.bootstrapModuleFactory(e,o)})},e.prototype._moduleDoBootstrap=function(e){var t=e.injector.get(En);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+De(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 Cn(e,t){return Array.isArray(t)?t.reduce(Cn,e):i({},e,t)}var En=function(){function e(e,t,n,r,o,i){var l=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=yn(),this._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run(function(){l.tick()})}});var u=new P(function(e){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular(function(){e.next(l._stable),e.complete()})}),a=new P(function(e){var t;l._zone.runOutsideAngular(function(){t=l._zone.onStable.subscribe(function(){rn.assertNotInAngularZone(),Te(function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,e.next(!0))})})});var n=l._zone.onUnstable.subscribe(function(){rn.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=se(u,a.pipe(me()))}var t;return t=e,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 Ht?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var o=n instanceof Qt?null:this._injector.get(Kt),i=n.create(Ue.NULL,[],t||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var l=i.injector.get(fn,null);return l&&i.injector.get(pn).registerApplication(i.location.nativeElement,l),this._loadComponent(i),yn()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},e.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,tn(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;kn(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Mt,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),kn(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=en("ApplicationRef#tick()"),e}();function kn(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var On=function(){},Sn=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({}),Tn=function(){},An=function(e){this.nativeElement=e},Dn=function(){function e(){this.dirty=!0,this._results=[],this.changes=new nn,this.length=0}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[Se()]=function(){return this._results[Se()]()},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}(),In=function(){},Nn=function(){},Vn=function(){},Pn=function(){function e(e,t,n){this._debugContext=n,this.nativeNode=e,t&&t instanceof Mn?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}(),Mn=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 o(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,d([o+1,0],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 function e(t,n,r){t.childNodes.forEach(function(t){t instanceof Mn&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return function e(t,n,r){t instanceof Mn&&t.childNodes.forEach(function(t){n(t)&&r.push(t),t instanceof Mn&&e(t,n,r)})}(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}(Pn),Rn=new Map;function jn(e){return Rn.get(e)||null}function Fn(e){Rn.set(e.nativeNode,e)}function Bn(e,t){var n=zn(e),r=zn(t);return n&&r?function(e,t,n){for(var r=e[Se()](),o=t[Se()]();;){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,Bn):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||Ae(e,t)}var Ln=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}(),Hn=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 zn(e){return!!Un(e)&&(Array.isArray(e)||!(e instanceof Map)&&Se()in e)}function Un(e){return null!==e&&("function"==typeof e||"object"==typeof e)}var Gn=function(){function e(){}return e.prototype.supports=function(e){return zn(e)},e.prototype.create=function(e){return new Wn(e)},e}(),qn=function(e,t){return t},Wn=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||qn}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',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return e.prototype.getInertBodyElement_XHR=function(e){e=""+e+"";try{e=encodeURI(e)}catch(e){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(null);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e=""+e+"";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(e){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},e.prototype.stripCustomNsAttrs=function(e){for(var t=e.attributes,n=t.length-1;0")}else this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=e.nodeName.toLowerCase();xr.hasOwnProperty(t)&&!yr.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push(Ar(e))},e.prototype.checkClobberedElement=function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t},e}(),Sr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Tr=/([^\#-~ |!])/g;function Ar(e){return e.replace(/&/g,"&").replace(Sr,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Tr,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function Dr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Ir=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Nr=/^url\(([^)]+)\)$/,Vr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({}),Pr=function(){};function Mr(e,t,n){var r=e.state,o=1792&r;return o===t?(e.state=-1793&r|n,e.initIndex=-1,!0):o===n}function Rr(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function jr(e,t){return e.nodes[t]}function Fr(e,t){return e.nodes[t]}function Br(e,t){return e.nodes[t]}function Lr(e,t){return e.nodes[t]}function Hr(e,t){return e.nodes[t]}var zr={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};function Ur(e,t,n,r){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+t+"'. Current value: '"+n+"'.";return r&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){var n=new Error(e);return Gr(n,t),n}(o,e)}function Gr(e,t){e[st]=t,e[dt]=t.logError.bind(t)}function qr(e){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+e)}var Wr=function(){},Zr=new Map;function $r(e){var t=Zr.get(e);return t||(t=De(e)+"_"+Zr.size,Zr.set(e,t)),t}function Qr(e,t,n,r){if(Ln.isWrapped(r)){r=Ln.unwrap(r);var o=e.def.nodes[t].bindingIndex+n,i=Ln.unwrap(e.oldValues[o]);e.oldValues[o]=new Ln(i)}return r}var Kr="$$undefined",Yr="$$empty";function Jr(e){return{id:Kr,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}var Xr=0;function eo(e,t,n,r){return!(!(2&e.state)&&Ae(e.oldValues[t.bindingIndex+n],r))}function to(e,t,n,r){return!!eo(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function no(e,t,n,r){var o=e.oldValues[t.bindingIndex+n];if(1&e.state||!Bn(o,r)){var i=t.bindings[n].name;throw Ur(zr.createDebugContext(e,t.nodeIndex),i+": "+o,i+": "+r,0!=(1&e.state))}}function ro(e){for(var t=e;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function oo(e,t){for(var n=e;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function io(e,t,n,r){try{return ro(33554432&e.def.nodes[t].flags?Fr(e,t).componentView:e),zr.handleEvent(e,t,n,r)}catch(t){e.root.errorHandler.handleError(t)}}function lo(e){return e.parent?Fr(e.parent,e.parentNodeDef.nodeIndex):null}function uo(e){return e.parent?e.parentNodeDef.parent:null}function ao(e,t){switch(201347067&t.flags){case 1:return Fr(e,t.nodeIndex).renderElement;case 2:return jr(e,t.nodeIndex).renderText}}function so(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function co(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function fo(e){return 1<-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var s=e._providers.length;return e._def.providersByKey[t.tokenKey]={flags:5120,value:t.token.ngInjectableDef.factory,deps:[],index:s,token:t.token},e._providers[s]=No,e._providers[s]=Fo(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{ot(i)}}function Fo(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var r=n.length;switch(r){case 0:return new t;case 1:return new t(jo(e,n[0]));case 2:return new t(jo(e,n[0]),jo(e,n[1]));case 3:return new t(jo(e,n[0]),jo(e,n[1]),jo(e,n[2]));default:for(var o=new Array(r),i=0;i=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,Uo(n,t),zr.dirtyParentQueries(r),Ho(r),r}function Lo(e,t,n){var r=t?ao(t,t.def.lastRenderRootNode):e.renderElement;yo(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Ho(e){yo(e,3,null,null,void 0)}function zo(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Uo(e,t){t>=e.length-1?e.pop():e.splice(t,1)}var Go=new Object,qo=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 o(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=mo(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,l=zr.createRootView(e,t||[],n,o,r,Go),u=Br(l,i).instance;return n&&l.renderer.setAttribute(Fr(l,0).renderElement,"ng-version",at.full),new Wo(l,new Ko(l),u)},t}(Ht),Wo=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 o(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new An(Fr(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new ei(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}(Lt);function Zo(e,t,n){return new $o(e,t,n)}var $o=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 An(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new ei(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=uo(e),e=e.parent;return e?new ei(e,t):new ei(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=Bo(this._data,e);zr.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new Ko(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 Qt||(o=i.get(Kt));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,zo(i,r,o),function(e,t){var n=lo(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),zr.dirtyParentQueries(o),Lo(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],Uo(i,r),null==o&&(o=i.length),zo(i,o,l),zr.dirtyParentQueries(l),Ho(l),Lo(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=Bo(this._data,e);t&&zr.destroyView(t)},e.prototype.detach=function(e){var t=Bo(this._data,e);return t?new Ko(t):null},e}();function Qo(e){return new Ko(e)}var Ko=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return yo(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(){ro(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{zr.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){zr.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)),zr.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Ho(this._view),zr.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 Yo(e,t){return new Jo(e,t)}var Jo=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return o(t,e),t.prototype.createEmbeddedView=function(e){return new Ko(zr.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new An(Fr(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(In);function Xo(e,t){return new ei(e,t)}var ei=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=Ue.THROW_IF_NOT_FOUND),zr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:$r(e)},t)},e}();function ti(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=Fr(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return jr(e,n.nodeIndex).renderText;if(20240&n.flags)return Br(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function ni(e){return new ri(e.renderer)}var ri=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=c(Eo(t),2),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 Ci(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(ki(e,t,n,o[0]));case 2:return r(ki(e,t,n,o[0]),ki(e,t,n,o[1]));case 3:return r(ki(e,t,n,o[0]),ki(e,t,n,o[1]),ki(e,t,n,o[2]));default:for(var l=Array(i),u=0;u0)s=g,qi(g)||(c=g);else for(;s&&h===s.nodeIndex+s.childCount;){var y=s.parent;y&&(y.childFlags|=s.childFlags,y.childMatchedQueries|=s.childMatchedQueries),c=(s=y)&&qi(s)?s.renderParent:s}}return{factory:null,nodeFlags:l,rootNodeFlags:u,nodeMatchedQueries:a,flags:e,nodes:t,updateDirectives:n||Wr,updateRenderer:r||Wr,handleEvent:function(e,n,r,o){return t[n].element.handleEvent(e,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:p}}function qi(e){return 0!=(1&e.flags)&&null===e.element.name}function Wi(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 Zi(e,t,n,r){var o=Ki(e.root,e.renderer,e,t,n);return Yi(o,e.component,r),Ji(o),o}function $i(e,t,n){var r=Ki(e,e.renderer,null,null,t);return Yi(r,n,n),Ji(r),r}function Qi(e,t,n,r){var o,i=t.element.componentRendererType;return o=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,Ki(e.root,o,e,t.element.componentProvider,n)}function Ki(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 Yi(e,t,n){e.component=t,e.context=n}function Ji(e){var t;so(e)&&(t=Fr(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,o=0;o0&&Io(e,t,0,n)&&(p=!0),f>1&&Io(e,t,1,r)&&(p=!0),f>2&&Io(e,t,2,o)&&(p=!0),f>3&&Io(e,t,3,i)&&(p=!0),f>4&&Io(e,t,4,l)&&(p=!0),f>5&&Io(e,t,5,u)&&(p=!0),f>6&&Io(e,t,6,a)&&(p=!0),f>7&&Io(e,t,7,s)&&(p=!0),f>8&&Io(e,t,8,c)&&(p=!0),f>9&&Io(e,t,9,d)&&(p=!0),p}(e,t,n,r,o,i,l,u,a,s,c,d);case 2:return function(e,t,n,r,o,i,l,u,a,s,c,d){var f=!1,p=t.bindings,h=p.length;if(h>0&&to(e,t,0,n)&&(f=!0),h>1&&to(e,t,1,r)&&(f=!0),h>2&&to(e,t,2,o)&&(f=!0),h>3&&to(e,t,3,i)&&(f=!0),h>4&&to(e,t,4,l)&&(f=!0),h>5&&to(e,t,5,u)&&(f=!0),h>6&&to(e,t,6,a)&&(f=!0),h>7&&to(e,t,7,s)&&(f=!0),h>8&&to(e,t,8,c)&&(f=!0),h>9&&to(e,t,9,d)&&(f=!0),f){var g=t.text.prefix;h>0&&(g+=Ui(n,p[0])),h>1&&(g+=Ui(r,p[1])),h>2&&(g+=Ui(o,p[2])),h>3&&(g+=Ui(i,p[3])),h>4&&(g+=Ui(l,p[4])),h>5&&(g+=Ui(u,p[5])),h>6&&(g+=Ui(a,p[6])),h>7&&(g+=Ui(s,p[7])),h>8&&(g+=Ui(c,p[8])),h>9&&(g+=Ui(d,p[9]));var v=jr(e,t.nodeIndex).renderText;e.renderer.setValue(v,g)}return f}(e,t,n,r,o,i,l,u,a,s,c,d);case 16384:return function(e,t,n,r,o,i,l,u,a,s,c,d){var f=Br(e,t.nodeIndex),p=f.instance,h=!1,g=void 0,v=t.bindings.length;return v>0&&eo(e,t,0,n)&&(h=!0,g=Si(e,f,t,0,n,g)),v>1&&eo(e,t,1,r)&&(h=!0,g=Si(e,f,t,1,r,g)),v>2&&eo(e,t,2,o)&&(h=!0,g=Si(e,f,t,2,o,g)),v>3&&eo(e,t,3,i)&&(h=!0,g=Si(e,f,t,3,i,g)),v>4&&eo(e,t,4,l)&&(h=!0,g=Si(e,f,t,4,l,g)),v>5&&eo(e,t,5,u)&&(h=!0,g=Si(e,f,t,5,u,g)),v>6&&eo(e,t,6,a)&&(h=!0,g=Si(e,f,t,6,a,g)),v>7&&eo(e,t,7,s)&&(h=!0,g=Si(e,f,t,7,s,g)),v>8&&eo(e,t,8,c)&&(h=!0,g=Si(e,f,t,8,c,g)),v>9&&eo(e,t,9,d)&&(h=!0,g=Si(e,f,t,9,d,g)),g&&p.ngOnChanges(g),65536&t.flags&&Rr(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),h}(e,t,n,r,o,i,l,u,a,s,c,d);case 32:case 64:case 128:return function(e,t,n,r,o,i,l,u,a,s,c,d){var f=t.bindings,p=!1,h=f.length;if(h>0&&to(e,t,0,n)&&(p=!0),h>1&&to(e,t,1,r)&&(p=!0),h>2&&to(e,t,2,o)&&(p=!0),h>3&&to(e,t,3,i)&&(p=!0),h>4&&to(e,t,4,l)&&(p=!0),h>5&&to(e,t,5,u)&&(p=!0),h>6&&to(e,t,6,a)&&(p=!0),h>7&&to(e,t,7,s)&&(p=!0),h>8&&to(e,t,8,c)&&(p=!0),h>9&&to(e,t,9,d)&&(p=!0),p){var g=Lr(e,t.nodeIndex),v=void 0;switch(201347067&t.flags){case 32:v=new Array(f.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]=d);break;case 64:v={},h>0&&(v[f[0].name]=n),h>1&&(v[f[1].name]=r),h>2&&(v[f[2].name]=o),h>3&&(v[f[3].name]=i),h>4&&(v[f[4].name]=l),h>5&&(v[f[5].name]=u),h>6&&(v[f[6].name]=a),h>7&&(v[f[7].name]=s),h>8&&(v[f[8].name]=c),h>9&&(v[f[9].name]=d);break;case 128:var m=n;switch(h){case 1:v=m.transform(n);break;case 2:v=m.transform(r);break;case 3:v=m.transform(r,o);break;case 4:v=m.transform(r,o,i);break;case 5:v=m.transform(r,o,i,l);break;case 6:v=m.transform(r,o,i,l,u);break;case 7:v=m.transform(r,o,i,l,u,a);break;case 8:v=m.transform(r,o,i,l,u,a,s);break;case 9:v=m.transform(r,o,i,l,u,a,s,c);break;case 10:v=m.transform(r,o,i,l,u,a,s,c,d)}}g.value=v}return p}(e,t,n,r,o,i,l,u,a,s,c,d);default:throw"unreachable"}}(e,t,r,o,i,l,u,a,s,c,f,p):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,o=0;o0&&no(e,t,0,n),f>1&&no(e,t,1,r),f>2&&no(e,t,2,o),f>3&&no(e,t,3,i),f>4&&no(e,t,4,l),f>5&&no(e,t,5,u),f>6&&no(e,t,6,a),f>7&&no(e,t,7,s),f>8&&no(e,t,8,c),f>9&&no(e,t,9,d)}(e,t,r,o,i,l,u,a,s,c,d,f):function(e,t,n){for(var r=0;r0){var i=new Set(e.modules);bl.forEach(function(t,r){if(i.has(r.ngInjectableDef.providedIn)){var o={token:r,flags:t.flags|(n?4096:0),deps:ho(t.deps),value:t.value,index:e.providers.length};e.providers.push(o),e.providersByKey[$r(r)]=o}})}}(e=e.factory(function(){return Wr})),e):e}(r))}var _l=new Map,bl=new Map,wl=new Map;function xl(e){_l.set(e.token,e),"function"==typeof e.token&&e.token.ngInjectableDef&&"function"==typeof e.token.ngInjectableDef.providedIn&&bl.set(e.token,e)}function Cl(e,t){var n=mo(mo(t.viewDefFactory).nodes[0].element.componentView);wl.set(e,n)}function El(){_l.clear(),bl.clear(),wl.clear()}function kl(e){if(0===_l.size)return e;var t=function(e){for(var t=[],n=null,r=0;r=f.length){var p=f[d]=ua(t,d,r,o,u,null);if(!Ru&&Mu){var h=Mu.tNode;h.next=p,h.dynamicContainerNode&&(h.dynamicContainerNode.next=p)}}c.tNode=f[d],Ru&&(Fu=null,(null==Mu.tNode.child&&Mu.view===Lu||2===Mu.tNode.type)&&(Mu.tNode.child=c.tNode))}if(2==(2&t)&&s){var g=i;g[ou]=c,Zu&&(g[Xl].node=c.tNode)}return Mu=c,Ru=!0,c}function ea(e,t,n,r){var o,i=Ru,l=Mu;if(null==e.data[eu]&&e.data[au]&&!t.template)ca(e.data[au]);else try{Ru=!0,Mu=null,o=$u(e.data,e),oa(),t.template(r,n),2&r?Ku():e.data[Xl].firstTemplatePass=Zu=!1}finally{Qu(o,1==(1&r)),Ru=i,Mu=l}return e}function ta(e,t,n,r){var o=$u(t,e);try{Pu.begin&&Pu.begin(),r?(oa(),r(na(t),n),Ku()):(Wu||(gu(Lu,ju,Bu),vu(Hu,ju.contentHooks,ju.contentCheckHooks,Bu)),Yu(Gu),aa(0,Jl))}finally{Pu.end&&Pu.end(),Qu(o)}}function na(e){return 1&e[ru]?3:2}var ra=null;function oa(){ra=null}function ia(e,t,n,r,o){return{id:e,template:t,viewQuery:o,node:null,data:qu.slice(),childIndex:-1,bindingStartIndex:-1,directives:null,firstTemplatePass:!0,initHooks:null,checkHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,pipeDestroyHooks:null,cleanup:null,hostBindings:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof n?n():n,pipeRegistry:"function"==typeof r?r():r,currentMatches:null}}function la(e,t){Pu=e;var n=e.createRenderer(null,null);return"string"==typeof t?wu(n)?n.selectRootElement(t):n.querySelector(t):t}function ua(e,t,n,r,o,i){return{type:e,index:t,flags:0,tagName:n,attrs:r,localNames:null,initialInputs:void 0,inputs:void 0,outputs:void 0,tViews:i,next:null,child:null,parent:o,dynamicContainerNode:null,detached:null,stylingTemplate:null,projection:null}}function aa(e,t){var n=Lu[t],r=n.data;sa(r)&&6&r[ru]&&pa(r,n,Hu[e])}function sa(e){return 8==(8&e[ru])}function ca(e){for(var t=0;t=Jl?t[Xl].childIndex>-1&&(n=Du(t)):t[_u].length&&(n=t[_u][0].data),null==n){for(;t&&!t[tu]&&t!==e;)Nu(t),t=Iu(t,e);Nu(t||e),n=t&&t[tu]}t=n}}(e),e[ru]|=32},e.prototype.onDestroy=function(e){var t,n;n=e,function(e){return e[uu]||(e[uu]=[])}(t=this._view).push(n),t[Xl].firstTemplatePass&&function(e){return e[Xl].cleanup||(e[Xl].cleanup=[])}(t).push(t[uu].length-1,null)},e.prototype.markForCheck=function(){!function(e){for(var t=e;null!=t[eu];)t[ru]|=4,t=t[eu];var n,r;t[ru]|=4,(n=t[au]).clean==Uu&&(n.clean=new Promise(function(e){return r=e}),n.scheduler(function(){ca(n),r(null),n.clean=Uu}))}(this._view)},e.prototype.detach=function(){this._view[ru]&=-9},e.prototype.reattach=function(){this._view[ru]|=8},e.prototype.detectChanges=function(){fa(this.context)},e.prototype.checkNoChanges=function(){!function(e){Wu=!0;try{fa(e)}finally{Wu=!1}}(this.context)},e.prototype.attachToViewContainerRef=function(e){this._viewContainerRef=e},e.prototype.detachFromAppRef=function(){this._appRef=null},e.prototype.attachToAppRef=function(e){this._appRef=e},e}(),ya=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.resolveComponentFactory=function(e){return new xa(e.ngComponentDef)},t}(Zt);function _a(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var ba=new _e("ROOT_CONTEXT_TOKEN",{providedIn:"root",factory:function(){return va(it(wa))}}),wa=new _e("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return requestAnimationFrame.bind(window)}}),xa=function(e){function t(t){var n=e.call(this)||this;return n.componentDef=t,n.componentType=t.type,n.selector=t.selectors[0][0],n.ngContentSelectors=[],n}return o(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){return _a(this.componentDef.inputs)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){return _a(this.componentDef.outputs)},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){var o,i,l=void 0===n,u=r?r.injector.get(On):xu,a=l?(o=this.selector,wu(i=u.createRenderer(null,this.componentDef.rendererType)||Vu)?i.createElement(o,ra):null===ra?i.createElement(o):i.createElementNS(ra,o)):la(u,n),s=r&&!l?r.injector.get(ba):va(requestAnimationFrame.bind(window)),c=Ju(u.createRenderer(a,this.componentDef.rendererType),ia(-1,null,null,null,null),s,this.componentDef.onPush?4:2);c[su]=r&&r.injector||null;var d,f,p=$u(c,null);try{if(u.begin&&u.begin(),f=function(e,t,n,r){Ru=!1,Mu=null;var o,i=Xu(0,3,t,null,null,Ju(Vu,(o=n.template).ngPrivateData||(o.ngPrivateData=ia(-1,o,n.directiveDefs,n.pipeDefs,n.viewQuery)),null,n.onPush?4:2,r));return Zu&&(i.tNode.flags=4096,n.diPublic&&n.diPublic(n),ju.directives=[n]),i}(0,a,this.componentDef),s.components.push(d=function(e,t,n){if(Object.defineProperty(t,zu,{enumerable:!1,value:Mu}),null==Hu&&(Lu[lu]=Hu=[]),Hu[e]=t,Zu){var r=Mu.tNode.flags;0==(4095&r)?Mu.tNode.flags=e<<14|4096&r|1:Mu.tNode.flags++}else{var o=n.diPublic;o&&o(n)}return null!=n.attributes&&3==Mu.tNode.type&&function(e,t){for(var n=wu(Vu),r=0;r>14,r=n+(4095&e),o=n;o0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r0;l||(l=e[i]=[]);var a=Ys(t)?Zone.root:Zone.current;if(0===l.length)l.push({zone:a,handler:o});else{for(var s=!1,c=0;c-1},l([u(0,Ve(_s)),u(1,Ve(tc)),u(3,Pe()),u(3,Ve(nc))],t)}(Ds),ic=["alt","control","meta","shift"],lc={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},uc=function(e){function t(t){return e.call(this,t)||this}var n;return o(t,e),n=t,t.prototype.supports=function(e){return null!=n.parseEventName(e)},t.prototype.addEventListener=function(e,t,r){var o=n.parseEventName(t),i=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return ds().onAndCancel(e,o.domEventName,i)})},t.parseEventName=function(e){var t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;var o=n._normalizeKey(t.pop()),i="";if(ic.forEach(function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),i+=e+".")}),i+=o,0!=t.length||0===o.length)return null;var l={};return l.domEventName=r,l.fullKey=i,l},t.getEventFullKey=function(e){var t="",n=ds().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),ic.forEach(function(r){r!=n&&(0,lc[r])(e)&&(t+=r+".")}),t+=n},t.eventCallback=function(e,t,r){return function(o){n.getEventFullKey(o)===e&&r.runGuarded(function(){return t(o)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},n=l([u(0,Ve(_s))],t)}(Ds),ac=function(){},sc=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return o(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case Vr.NONE:return t;case Vr.HTML:return t instanceof dc?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){var n=null;try{mr=mr||new dr(e);var r=t?String(t):"";n=mr.getInertBodyElement(r);var o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=mr.getInertBodyElement(r)}while(r!==i);var l=new Or,u=l.sanitizeChildren(Dr(n)||n);return yn()&&l.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),u}finally{if(n)for(var a=Dr(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}(this._doc,String(t)));case Vr.STYLE:return t instanceof fc?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";var t=e.match(Nr);return t&&hr(t[1])===t[1]||e.match(Ir)&&function(e){for(var t=!0,n=!0,r=0;re?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return wc(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return wc(e.value)?null:Ec.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(wc(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(wc(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(Oc);return 0==t.length?null:function(e){return Tc(function(e,n){return t.map(function(t){return t(e)})}(e))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(Oc);return 0==t.length?null:function(e){return function e(){for(var t,n=[],r=0;r=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}(),Bc=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(jc),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}(),Lc=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}(),Hc='\n

\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',zc='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',Uc='\n
\n
\n \n
\n
',Gc=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 "+Hc)},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 '+zc+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+Uc)},e.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+Hc)},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 "+zc)},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.ngModelWarning=function(e){console.warn("\n It looks like you're using ngModel on the same form field as "+e+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===e?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},e}();function qc(e,t){return d(t.path,[e])}function Wc(e,t){e||$c(t,"Cannot find control with"),t.valueAccessor||$c(t,"No value accessor for form control with"),e.validator=kc.compose([e.validator,t.validator]),e.asyncValidator=kc.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&&Zc(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&&Zc(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 Zc(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function $c(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 Qc(e){return null!=e?kc.compose(e.map(Vc)):null}function Kc(e){return null!=e?kc.composeAsync(e.map(Pc)):null}function Yc(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Ae(t,n.currentValue)}var Jc=[Dc,Lc,Mc,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=Ae}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){var t,n;try{for(var r=s(Array.from(this._optionMap.keys())),o=r.next();!o.done;o=r.next()){var i=o.value;if(this._compareWith(this._optionMap.get(i),e))return i}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return null},e.prototype._getOptionValue=function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e},e}(),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=Ae}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){var t,n=this;if(this.value=e,Array.isArray(e)){var r=e.map(function(e){return n._getOptionId(e)});t=function(e,t){e._setSelected(r.indexOf(t.toString())>-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}(id),ad=function(e){function t(t,n,r){var o=e.call(this,nd(n),rd(r,n))||this;return o.controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return o(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 ld?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(){var e,t;try{for(var n=s(this.controls),r=n.next();!r.done;r=n.next())if(r.value.enabled)return!1}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return this.controls.length>0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(id),sd=Promise.resolve(null),cd=function(e){function t(t,n){var r=e.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new nn,r.form=new ud({},Qc(t),Kc(n)),r}return o(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;sd.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Wc(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;sd.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;sd.then(function(){var n=t._findContainer(e.path),r=new ud({});(function(e,t){null==e&&$c(t,"Cannot find control with"),e.validator=kc.compose([e.validator,t.validator]),e.asyncValidator=kc.composeAsync([e.asyncValidator,t.asyncValidator])})(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(e){var t=this;sd.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;sd.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},l([u(0,Pe()),u(0,Me()),u(0,Ve(xc)),u(1,Pe()),u(1,Me()),u(1,Ve(Cc))],t)}(bc),dd=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 '+Hc+'\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 "+zc+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+Uc)},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 "+zc+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+Uc)},e}(),fd=function(e){function t(t,n,r){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=r,o}var n;return o(t,e),n=t,t.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof cd||dd.modelGroupParentException()},n=l([u(0,je()),u(0,Re()),u(1,Pe()),u(1,Me()),u(1,Ve(xc)),u(2,Pe()),u(2,Me()),u(2,Ve(Cc))],t)}(ed),pd=Promise.resolve(null),hd=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.control=new ld,i._registered=!1,i.update=new nn,i._parent=t,i._rawValidators=n||[],i._rawAsyncValidators=r||[],i.valueAccessor=Xc(i,o),i}return o(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),Yc(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?qc(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 Qc(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return Kc(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(){Wc(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 fd)&&this._parent instanceof ed?dd.formGroupNameException():this._parent instanceof fd||this._parent instanceof cd||dd.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||dd.missingNameException()},t.prototype._updateValue=function(e){var t=this;pd.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;pd.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})},l([u(0,Pe()),u(0,je()),u(1,Pe()),u(1,Me()),u(1,Ve(xc)),u(2,Pe()),u(2,Me()),u(2,Ve(Cc)),u(3,Pe()),u(3,Me()),u(3,Ve(Ac))],t)}(jc),gd=new _e("NgModelWithFormControlWarning"),vd=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i._ngModelWarningConfig=o,i.update=new nn,i._ngModelWarningSent=!1,i._rawValidators=t||[],i._rawAsyncValidators=n||[],i.valueAccessor=Xc(i,r),i}var n;return o(t,e),n=t,Object.defineProperty(t.prototype,"isDisabled",{set:function(e){Gc.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){var t,r,o,i;this._isControlChanged(e)&&(Wc(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),Yc(e,this.viewModel)&&(t="formControl",r=n,o=this,i=this._ngModelWarningConfig,yn()&&"never"!==i&&((null!==i&&"once"!==i||r._ngModelWarningSentOnce)&&("always"!==i||o._ngModelWarningSent)||(Gc.ngModelWarning(t),r._ngModelWarningSentOnce=!0,o._ngModelWarningSent=!0)),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 Qc(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return Kc(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._ngModelWarningSentOnce=!1,n=l([u(0,Pe()),u(0,Me()),u(0,Ve(xc)),u(1,Pe()),u(1,Me()),u(1,Ve(Cc)),u(2,Pe()),u(2,Me()),u(2,Ve(Ac)),u(3,Pe()),u(3,Ve(gd))],t)}(jc),md=function(){function e(){}return e.prototype.group=function(e,t){void 0===t&&(t=null);var n=this._reduceControls(e);return new ud(n,null!=t?t.validator:null,null!=t?t.asyncValidator:null)},e.prototype.control=function(e,t,n){return new ld(e,t,n)},e.prototype.array=function(e,t,n){var r=this,o=e.map(function(e){return r._createControl(e)});return new ad(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 ld||e instanceof ud||e instanceof ad?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)},e}(),yd=function(){},_d=function(){},bd=function(){function e(){}var t;return t=e,e.withConfig=function(e){return{ngModule:t,providers:[{provide:gd,useValue:e.warnOnNgModelWithFormControl}]}},e}(),wd=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return o(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 j;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(L);function xd(){for(var e=[],t=0;t=2&&(n=!0),function(r){return r.lift(new Dd(e,t,n))}}P.prototype.combineLatest=function(){for(var e=[],t=0;t0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o=2?function(n){return N(Ad(e,t),Pd(1),(void 0===(r=t)&&(r=null),function(e){return e.lift(new jd(r))}))(n);var r}:function(t){return N(Ad(function(t,n,r){return e(t,n,r+1)}),Pd(1))(t)}}(Bd,[])(this)};var Ld=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new Hd(e,this.predicate,this.thisArg))},e}(),Hd=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=r,o.count=0,o}return o(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}(T);P.prototype.filter=function(e,t){return function(e,t){return function(n){return n.lift(new Ld(e,t))}}(e,t)(this)},P.prototype.share=function(){return me()(this)},P.prototype.merge=function(){for(var e=[],t=0;t$&"):this.text)),this.cacheRenderedText},e}(),Qd=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}(),Kd=function(e){this.template=e},Yd=function(e){this.template=e},Jd=function(e){this.template=e},Xd=qd,ef=Wd,tf=new _e("NGX_SELECT_OPTIONS"),nf=function(e){return e[e.first=0]="first",e[e.previous=1]="previous",e[e.next=2]="next",e[e.last=3]="last",e[e.firstSelected=4]="firstSelected",e[e.firstIfOptionActiveInvisible=5]="firstIfOptionActiveInvisible",e}({});function rf(e,t){return t in e}var of=function(){function e(e,t,n,r){var o,i=this;this.sanitizer=t,this.cd=n,this.optionValueField="id",this.optionTextField="text",this.optGroupLabelField="label",this.optGroupOptionsField="options",this.multiple=!1,this.allowClear=!1,this.placeholder="",this.noAutoComplete=!1,this.disabled=!1,this.defaultValue=[],this.autoSelectSingleOption=!1,this.autoClearSearch=!1,this.noResultsFound="No results found",this.size="default",this.autoActiveOnMouseEnter=!0,this.keyCodeToRemoveSelected="Delete",this.keyCodeToOptionsOpen=["Enter","NumpadEnter"],this.keyCodeToOptionsClose="Escape",this.keyCodeToOptionsSelect=["Enter","NumpadEnter"],this.keyCodeToNavigateFirst="ArrowLeft",this.keyCodeToNavigatePrevious="ArrowUp",this.keyCodeToNavigateNext="ArrowDown",this.keyCodeToNavigateLast="ArrowRight",this.typed=new nn,this.focus=new nn,this.blur=new nn,this.open=new nn,this.close=new nn,this.select=new nn,this.remove=new nn,this.navigated=new nn,this.selectionChanges=new nn,this.optionsOpened=!1,this.actualValue=[],this.subjOptions=new wd([]),this.subjSearchText=new wd(""),this.subjOptionsSelected=new wd([]),this.subjExternalValue=new wd([]),this.subjDefaultValue=new wd([]),this.subjRegisterOnChange=new L,this._focusToInput=!1,this.isFocused=!1,this.onChange=function(e){return e},this.onTouched=function(){return null},Object.assign(this,r),this.itemsDiffer=e.find([]).create(null),this.defaultValueDiffer=e.find([]).create(null),this.typed.subscribe(function(e){return i.subjSearchText.next(e)}),this.subjOptionsSelected.subscribe(function(e){return i.selectionChanges.emit(e)});var l=this.subjExternalValue.map(function(e){return o=null===e?[]:[].concat(e)}).merge(this.subjOptionsSelected.map(function(e){return e.map(function(e){return e.value})})).combineLatest(this.subjDefaultValue,function(e,t){var n=Xd.isEqual(e,t)?[]:e;return n.length?n:t}).distinctUntilChanged(function(e,t){return Xd.isEqual(e,t)}).share();l.combineLatest(this.subjRegisterOnChange,function(e){return e}).subscribe(function(e){i.actualValue=e,Xd.isEqual(e,o)||(o=e,i.onChange(i.multiple?e:e.length?e[0]:null))}),this.subjOptions.flatMap(function(e){return P.from(e).flatMap(function(e){return e instanceof $d?xd(e):e instanceof Qd?oe(e.options):us}).toArray()}).combineLatest(l,function(e,t){var n=[];if(t.forEach(function(t){var r=e.find(function(e){return e.value===t});r&&n.push(r)}),i.keepSelectedItems){var r=n.map(function(e){return e.value}),o=i.subjOptionsSelected.value.filter(function(e){return-1===r.indexOf(e.value)});n.push.apply(n,o)}Xd.isEqual(n,i.subjOptionsSelected.value)||(i.subjOptionsSelected.next(n),i.cd.markForCheck())}).subscribe(),this.subjOptions.combineLatest(this.subjOptionsSelected,this.subjSearchText,function(e,t,n){return i.optionsFiltered=i.filterOptions(n,e,t).map(function(e){return e instanceof $d?e.highlightedText=i.highlightOption(e):e instanceof Qd&&e.options.map(function(e){return e.highlightedText=i.highlightOption(e),e}),e}),i.cacheOptionsFilteredFlat=null,i.navigateOption(nf.firstIfOptionActiveInvisible),i.cd.markForCheck(),t}).flatMap(function(e){return i.optionsFilteredFlat().filter(function(t){return i.autoSelectSingleOption&&1===t.length&&!e.length})}).subscribe(function(e){i.subjOptionsSelected.next(e),i.cd.markForCheck()})}return Object.defineProperty(e.prototype,"inputText",{get:function(){return this.inputElRef&&this.inputElRef.nativeElement?this.inputElRef.nativeElement.value:""},enumerable:!0,configurable:!0}),e.prototype.setFormControlSize=function(e,t){return void 0===e&&(e={}),void 0===t&&(t=!0),Object.assign(t?{"form-control-sm input-sm":"small"===this.size,"form-control-lg input-lg":"large"===this.size}:{},e)},e.prototype.setBtnSize=function(){return{"btn-sm":"small"===this.size,"btn-lg":"large"===this.size}},Object.defineProperty(e.prototype,"optionsSelected",{get:function(){return this.subjOptionsSelected.value},enumerable:!0,configurable:!0}),e.prototype.mainClicked=function(e){e.clickedSelectComponent=this,this.isFocused||(this.isFocused=!0,this.focus.emit())},e.prototype.documentClick=function(e){e.clickedSelectComponent!==this&&(this.optionsOpened&&(this.optionsClose(),this.cd.detectChanges()),this.isFocused&&(this.isFocused=!1,this.blur.emit()))},e.prototype.optionsFilteredFlat=function(){var e=this;return this.cacheOptionsFilteredFlat?xd(this.cacheOptionsFilteredFlat):oe(this.optionsFiltered).flatMap(function(e){return e instanceof $d?xd(e):e instanceof Qd?oe(e.optionsFiltered):us}).filter(function(e){return!e.disabled}).toArray().do(function(t){return e.cacheOptionsFilteredFlat=t})},e.prototype.navigateOption=function(e){var t=this;this.optionsFilteredFlat().map(function(n){var r,o={index:-1,activeOption:null,filteredOptionList:n};switch(e){case nf.first:o.index=0;break;case nf.previous:r=n.indexOf(t.optionActive)-1,o.index=r>=0?r:n.length-1;break;case nf.next:r=n.indexOf(t.optionActive)+1,o.index=r0?i:0}return o.activeOption=n[o.index],o}).subscribe(function(e){return t.optionActivate(e)})},e.prototype.ngDoCheck=function(){this.itemsDiffer.diff(this.items)&&this.subjOptions.next(this.buildOptions(this.items));var e=this.defaultValue?[].concat(this.defaultValue):[];this.defaultValueDiffer.diff(e)&&this.subjDefaultValue.next(e)},e.prototype.ngAfterContentChecked=function(){if(this._focusToInput&&this.checkInputVisibility()&&this.inputElRef&&this.inputElRef.nativeElement!==document.activeElement&&(this._focusToInput=!1,this.inputElRef.nativeElement.focus()),this.choiceMenuElRef){var e=this.choiceMenuElRef.nativeElement.querySelector("a.ngx-select__item_active.active");e&&e.offsetHeight>0&&this.ensureVisibleElement(e)}},e.prototype.canClearNotMultiple=function(){return this.allowClear&&!!this.subjOptionsSelected.value.length&&(!this.subjDefaultValue.value.length||this.subjDefaultValue.value[0]!==this.actualValue[0])},e.prototype.focusToInput=function(){this._focusToInput=!0},e.prototype.inputKeyDown=function(e){var t=[].concat(this.keyCodeToOptionsSelect,this.keyCodeToNavigateFirst,this.keyCodeToNavigatePrevious,this.keyCodeToNavigateNext,this.keyCodeToNavigateLast),n=[].concat(this.keyCodeToOptionsOpen,this.keyCodeToRemoveSelected);if(this.optionsOpened&&-1!==t.indexOf(e.code))switch(e.preventDefault(),e.stopPropagation(),e.code){case[].concat(this.keyCodeToOptionsSelect).indexOf(e.code)+1&&e.code:this.optionSelect(this.optionActive),this.navigateOption(nf.next);break;case this.keyCodeToNavigateFirst:this.navigateOption(nf.first);break;case this.keyCodeToNavigatePrevious:this.navigateOption(nf.previous);break;case this.keyCodeToNavigateLast:this.navigateOption(nf.last);break;case this.keyCodeToNavigateNext:this.navigateOption(nf.next)}else if(!this.optionsOpened&&-1!==n.indexOf(e.code))switch(e.preventDefault(),e.stopPropagation(),e.code){case[].concat(this.keyCodeToOptionsOpen).indexOf(e.code)+1&&e.code:this.optionsOpen();break;case this.keyCodeToRemoveSelected:this.optionRemove(this.subjOptionsSelected.value[this.subjOptionsSelected.value.length-1],e)}},e.prototype.trackByOption=function(e,t){return t instanceof $d?t.value:t instanceof Qd?t.label:t},e.prototype.checkInputVisibility=function(){return!0===this.multiple||this.optionsOpened&&!this.noAutoComplete},e.prototype.inputKeyUp=function(e,t){void 0===e&&(e=""),t.code===this.keyCodeToOptionsClose?this.optionsClose():this.optionsOpened?this.typed.emit(e):!this.optionsOpened&&e&&this.optionsOpen(e)},e.prototype.inputClick=function(e){void 0===e&&(e=""),this.optionsOpened||this.optionsOpen(e)},e.prototype.sanitize=function(e){return e?this.sanitizer.bypassSecurityTrustHtml(e):null},e.prototype.highlightOption=function(e){return e.renderText(this.sanitizer,this.inputElRef?this.inputElRef.nativeElement.value:"")},e.prototype.optionSelect=function(e,t){void 0===t&&(t=null),t&&(t.preventDefault(),t.stopPropagation()),e&&!e.disabled&&(this.subjOptionsSelected.next((this.multiple?this.subjOptionsSelected.value:[]).concat([e])),this.select.emit(e.value),this.optionsClose(),this.onTouched())},e.prototype.optionRemove=function(e,t){!this.disabled&&e&&(t.stopPropagation(),this.subjOptionsSelected.next((this.multiple?this.subjOptionsSelected.value:[]).filter(function(t){return t!==e})),this.remove.emit(e.value))},e.prototype.optionActivate=function(e){this.optionActive===e.activeOption||e.activeOption&&e.activeOption.disabled||(this.optionActive&&(this.optionActive.active=!1),this.optionActive=e.activeOption,this.optionActive&&(this.optionActive.active=!0),this.navigated.emit(e),this.cd.detectChanges())},e.prototype.onMouseEnter=function(e){this.autoActiveOnMouseEnter&&this.optionActivate(e)},e.prototype.filterOptions=function(e,t,n){var r=this,o=new RegExp(ef(e),"i"),i=function(t){return r.searchCallback?r.searchCallback(e,t):(!e||o.test(t.text))&&(!r.multiple||-1===n.indexOf(t))};return t.filter(function(e){if(e instanceof $d)return i(e);if(e instanceof Qd){var t=e;return t.filter(function(e){return i(e)}),t.optionsFiltered.length}})},e.prototype.ensureVisibleElement=function(e){if(this.choiceMenuElRef&&this.cacheElementOffsetTop!==e.offsetTop){this.cacheElementOffsetTop=e.offsetTop;var t=this.choiceMenuElRef.nativeElement;this.cacheElementOffsetTopt.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.navigateOption(!this.multiple&&this.subjOptionsSelected.value.length?nf.firstSelected:nf.first),this.focusToInput(),this.open.emit(),this.cd.markForCheck())},e.prototype.optionsClose=function(){this.optionsOpened=!1,this.close.emit(),this.autoClearSearch&&this.multiple&&this.inputElRef&&(this.inputElRef.nativeElement.value=null)},e.prototype.buildOptions=function(e){var t,n=this,r=[];return Array.isArray(e)&&e.forEach(function(e){if("object"==typeof e&&null!==e&&rf(e,n.optGroupLabelField)&&rf(e,n.optGroupOptionsField)&&Array.isArray(e[n.optGroupOptionsField])){var o=new Qd(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||!rf(e,this.optionValueField)&&!rf(e,this.optionTextField))return null;n=rf(e,this.optionValueField)?e[this.optionValueField]:e[this.optionTextField],r=rf(e,this.optionTextField)?e[this.optionTextField]:e[this.optionValueField],o=!!rf(e,"disabled")&&e.disabled}return new $d(n,r,o,e,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}(),lf=Jr({encapsulation:0,styles:[[".ngx-select_multiple[_ngcontent-%COMP%]{height:auto;padding:3px 3px 0}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__search[_ngcontent-%COMP%]{background-color:transparent!important;border:none;outline:0;box-shadow:none;height:1.6666em;padding:0;margin-bottom:3px}.ngx-select__disabled[_ngcontent-%COMP%]{background-color:#eceeef;border-radius:4px;position:absolute;width:100%;height:100%;z-index:5;opacity:.6;top:0;left:0;cursor:not-allowed}.ngx-select__toggle[_ngcontent-%COMP%]{outline:0;position:relative;text-align:left!important;color:#333;background-color:#fff;border-color:#ccc;display:inline-flex;align-items:stretch;justify-content:space-between}.ngx-select__toggle[_ngcontent-%COMP%]:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.ngx-select__toggle-buttons[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center}.ngx-select__toggle-caret[_ngcontent-%COMP%]{position:absolute;height:10px;top:50%;right:10px;margin-top:-2px}.ngx-select__placeholder[_ngcontent-%COMP%]{float:left;max-width:100%;text-overflow:ellipsis;overflow:hidden}.ngx-select__clear[_ngcontent-%COMP%]{margin-right:10px;padding:0;border:none}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__clear[_ngcontent-%COMP%]{line-height:initial;margin-left:5px;margin-right:0;color:#000;opacity:.5}.ngx-select__clear-icon[_ngcontent-%COMP%]{display:inline-block;font-size:inherit;cursor:pointer;position:relative;width:1em;height:.75em;padding:0}.ngx-select__clear-icon[_ngcontent-%COMP%]: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:inline-flex;align-items:center;overflow:hidden}.ngx-select__selected-plural[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .ngx-select__selected-single[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.ngx-select__selected-plural[_ngcontent-%COMP%]{outline:0;margin:0 3px 3px 0}.input-group[_ngcontent-%COMP%] > .dropdown[_ngcontent-%COMP%]{position:static}"]],data:{}});function uf(e){return Gi(0,[(e()(),So(0,0,null,null,1,"span",[["class","ngx-select__placeholder text-muted"]],null,null,null,null,null)),(e()(),So(1,0,null,null,0,"span",[],[[8,"innerHTML",1]],null,null,null,null))],null,function(e,t){e(t,1,0,t.component.placeholder)})}function af(e){return Gi(0,[(e()(),So(0,0,null,null,5,"span",[["class","ngx-select__selected-single pull-left float-left"]],null,null,null,null,null)),hi(1,278528,null,0,Fa,[er,tr,An,Tn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Bi(2,{"ngx-select__allow-clear":0}),(e()(),So(3,16777216,null,null,2,null,null,null,null,null,null,null)),hi(4,540672,null,0,qa,[Nn],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),Bi(5,{$implicit:0,index:1,text:2})],function(e,t){var n=t.component;e(t,1,0,"ngx-select__selected-single pull-left float-left",e(t,2,0,n.allowClear)),e(t,4,0,e(t,5,0,n.optionsSelected[0],0,n.sanitize(n.optionsSelected[0].text)),n.templateSelectedOption||ti(t.parent.parent,17))},null)}function sf(e){return Gi(0,[(e()(),So(0,0,null,null,2,"a",[["class","ngx-select__clear btn btn-sm btn-link"]],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)),hi(1,278528,null,0,Fa,[er,tr,An,Tn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),So(2,0,null,null,0,"i",[["class","ngx-select__clear-icon"]],null,null,null,null,null))],function(e,t){e(t,1,0,"ngx-select__clear btn btn-sm btn-link",t.component.setBtnSize())},null)}function cf(e){return Gi(0,[(e()(),So(0,0,null,null,11,"div",[["class","ngx-select__selected"]],null,null,null,null,null)),(e()(),So(1,0,null,null,10,"div",[["class","ngx-select__toggle btn form-control"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.optionsOpen()&&r),r},null,null)),hi(2,278528,null,0,Fa,[er,tr,An,Tn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),Oo(16777216,null,null,1,null,uf)),hi(4,16384,null,0,za,[Nn,In],{ngIf:[0,"ngIf"]},null),(e()(),Oo(16777216,null,null,1,null,af)),hi(6,16384,null,0,za,[Nn,In],{ngIf:[0,"ngIf"]},null),(e()(),So(7,0,null,null,4,"span",[["class","ngx-select__toggle-buttons"]],null,null,null,null,null)),(e()(),Oo(16777216,null,null,1,null,sf)),hi(9,16384,null,0,za,[Nn,In],{ngIf:[0,"ngIf"]},null),(e()(),So(10,0,null,null,0,"i",[["class","dropdown-toggle"]],null,null,null,null,null)),(e()(),So(11,0,null,null,0,"i",[["class","ngx-select__toggle-caret caret"]],null,null,null,null,null))],function(e,t){var n=t.component;e(t,2,0,"ngx-select__toggle btn form-control",n.setFormControlSize(n.setBtnSize())),e(t,4,0,!n.optionsSelected.length),e(t,6,0,n.optionsSelected.length),e(t,9,0,n.canClearNotMultiple())},null)}function df(e){return Gi(0,[(e()(),So(0,0,null,null,8,"span",[],null,null,null,null,null)),(e()(),So(1,0,null,null,7,"span",[["class","ngx-select__selected-plural btn btn-default btn-secondary btn-xs"],["tabindex","-1"]],null,null,null,null,null)),hi(2,278528,null,0,Fa,[er,tr,An,Tn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),So(3,16777216,null,null,2,null,null,null,null,null,null,null)),hi(4,540672,null,0,qa,[Nn],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),Bi(5,{$implicit:0,index:1,text:2}),(e()(),So(6,0,null,null,2,"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)),hi(7,278528,null,0,Fa,[er,tr,An,Tn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),So(8,0,null,null,0,"i",[["class","ngx-select__clear-icon"]],null,null,null,null,null))],function(e,t){var n=t.component;e(t,2,0,"ngx-select__selected-plural btn btn-default btn-secondary btn-xs",n.setBtnSize()),e(t,4,0,e(t,5,0,t.context.$implicit,t.context.index,n.sanitize(t.context.$implicit.text)),n.templateSelectedOption||ti(t.parent.parent,17)),e(t,7,0,"ngx-select__clear btn btn-sm btn-link pull-right float-right",n.setBtnSize())},null)}function ff(e){return Gi(0,[(e()(),So(0,0,null,null,2,"div",[["class","ngx-select__selected"]],null,null,null,null,null)),(e()(),Oo(16777216,null,null,1,null,df)),hi(2,278528,null,0,La,[Nn,In,er],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null)],function(e,t){var n=t.component;e(t,2,0,n.optionsSelected,n.trackByOption)},null)}function pf(e){return Gi(0,[(e()(),So(0,0,[[2,0],["input",1]],null,1,"input",[["autocapitalize","off"],["autocomplete","off"],["autocorrect","off"],["class","ngx-select__search form-control"],["role","combobox"],["spellcheck","false"],["type","text"]],[[8,"tabIndex",0],[8,"disabled",0],[8,"placeholder",0]],[[null,"keyup"],[null,"click"]],function(e,t,n){var r=!0,o=e.component;return"keyup"===t&&(r=!1!==o.inputKeyUp(ti(e,0).value,n)&&r),"click"===t&&(r=!1!==o.inputClick(ti(e,0).value)&&r),r},null,null)),hi(1,278528,null,0,Fa,[er,tr,An,Tn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null)],function(e,t){e(t,1,0,"ngx-select__search form-control",t.component.setFormControlSize())},function(e,t){var n=t.component;e(t,0,0,!1===n.multiple?-1:0,n.disabled,n.optionsSelected.length?"":n.placeholder)})}function hf(e){return Gi(0,[(e()(),So(0,0,null,null,0,"div",[["class","divider dropdown-divider"]],null,null,null,null,null))],null,null)}function gf(e){return Gi(0,[(e()(),So(0,0,null,null,1,"div",[["class","dropdown-header"]],null,null,null,null,null)),(e()(),Hi(1,null,["",""]))],null,function(e,t){e(t,1,0,t.parent.context.$implicit.label)})}function vf(e){return Gi(0,[(e()(),So(0,0,[["choiceItem",1]],null,5,"a",[["class","ngx-select__item dropdown-item"],["href","#"]],null,[[null,"mouseenter"],[null,"click"]],function(e,t,n){var r=!0,o=e.component;return"mouseenter"===t&&(r=!1!==o.onMouseEnter({activeOption:e.context.$implicit,filteredOptionList:o.optionsFiltered,index:e.context.index})&&r),"click"===t&&(r=!1!==o.optionSelect(e.context.$implicit,n)&&r),r},null,null)),hi(1,278528,null,0,Fa,[er,tr,An,Tn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Bi(2,{"ngx-select__item_active active":0,"ngx-select__item_disabled disabled":1}),(e()(),So(3,16777216,null,null,2,null,null,null,null,null,null,null)),hi(4,540672,null,0,qa,[Nn],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),Bi(5,{$implicit:0,text:1,index:2,subIndex:3})],function(e,t){var n=t.component;e(t,1,0,"ngx-select__item dropdown-item",e(t,2,0,t.context.$implicit.active,t.context.$implicit.disabled)),e(t,4,0,e(t,5,0,t.context.$implicit,t.context.$implicit.highlightedText,t.parent.context.index,t.context.index),n.templateOption||ti(t.parent.parent.parent,17))},null)}function mf(e){return Gi(0,[(e()(),So(0,0,null,null,7,"li",[["class","ngx-select__item-group"],["role","menuitem"]],null,null,null,null,null)),(e()(),Oo(16777216,null,null,1,null,hf)),hi(2,16384,null,0,za,[Nn,In],{ngIf:[0,"ngIf"]},null),(e()(),Oo(16777216,null,null,1,null,gf)),hi(4,16384,null,0,za,[Nn,In],{ngIf:[0,"ngIf"]},null),(e()(),Oo(16777216,null,null,2,null,vf)),hi(6,278528,null,0,La,[Nn,In,er],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),Fi(7,1)],function(e,t){var n=t.component;e(t,2,0,"optgroup"===t.context.$implicit.type&&t.context.index>0),e(t,4,0,"optgroup"===t.context.$implicit.type),e(t,6,0,t.context.$implicit.optionsFiltered||e(t,7,0,t.context.$implicit),n.trackByOption)},null)}function yf(e){return Gi(0,[(e()(),So(0,0,null,null,3,"li",[["class","ngx-select__item ngx-select__item_no-found dropdown-header"]],null,null,null,null,null)),(e()(),So(1,16777216,null,null,2,null,null,null,null,null,null,null)),hi(2,540672,null,0,qa,[Nn],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),Bi(3,{$implicit:0})],function(e,t){var n=t.component;e(t,2,0,e(t,3,0,n.inputText),n.templateOptionNotFound||ti(t.parent.parent,18))},null)}function _f(e){return Gi(0,[(e()(),So(0,0,[[3,0],["choiceMenu",1]],null,4,"ul",[["class","ngx-select__choices dropdown-menu"],["role","menu"]],[[2,"show",null]],null,null,null,null)),(e()(),Oo(16777216,null,null,1,null,mf)),hi(2,278528,null,0,La,[Nn,In,er],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),Oo(16777216,null,null,1,null,yf)),hi(4,16384,null,0,za,[Nn,In],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,2,0,n.optionsFiltered,n.trackByOption),e(t,4,0,!n.optionsFiltered.length)},function(e,t){e(t,0,0,t.component.optionsOpened)})}function bf(e){return Gi(0,[(e()(),So(0,0,null,null,0,"span",[],[[8,"innerHTML",1]],null,null,null,null))],null,function(e,t){e(t,0,0,t.context.text)})}function wf(e){return Gi(0,[(e()(),Hi(0,null,[" "," "]))],null,function(e,t){e(t,0,0,t.component.noResultsFound)})}function xf(e){return Gi(2,[Ii(402653184,1,{mainElRef:0}),Ii(671088640,2,{inputElRef:0}),Ii(671088640,3,{choiceMenuElRef:0}),(e()(),So(3,0,[[1,0],["main",1]],null,15,"div",[["class","ngx-select dropdown"]],[[8,"tabIndex",0]],[[null,"click"],[null,"focusin"],[null,"focus"],[null,"keydown"]],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),r},null,null)),hi(4,278528,null,0,Fa,[er,tr,An,Tn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Bi(5,{"ngx-select_multiple form-control":0,"open show":1}),(e()(),So(6,0,null,null,2,"div",[],null,null,null,null,null)),hi(7,278528,null,0,Fa,[er,tr,An,Tn],{ngClass:[0,"ngClass"]},null),Bi(8,{"ngx-select__disabled":0}),(e()(),Oo(16777216,null,null,1,null,cf)),hi(10,16384,null,0,za,[Nn,In],{ngIf:[0,"ngIf"]},null),(e()(),Oo(16777216,null,null,1,null,ff)),hi(12,16384,null,0,za,[Nn,In],{ngIf:[0,"ngIf"]},null),(e()(),Oo(16777216,null,null,1,null,pf)),hi(14,16384,null,0,za,[Nn,In],{ngIf:[0,"ngIf"]},null),(e()(),Oo(16777216,null,null,1,null,_f)),hi(16,16384,null,0,za,[Nn,In],{ngIf:[0,"ngIf"]},null),(e()(),Oo(0,[["defaultTemplateOption",2]],null,0,null,bf)),(e()(),Oo(0,[["defaultTemplateOptionNotFound",2]],null,0,null,wf))],function(e,t){var n=t.component;e(t,4,0,"ngx-select dropdown",n.setFormControlSize(e(t,5,0,!0===n.multiple,n.optionsOpened&&n.optionsFiltered.length),!0===n.multiple)),e(t,7,0,e(t,8,0,n.disabled)),e(t,10,0,!1===n.multiple&&(!n.optionsOpened||n.noAutoComplete)),e(t,12,0,!0===n.multiple),e(t,14,0,n.checkInputVisibility()),e(t,16,0,n.isFocused)},function(e,t){e(t,3,0,t.component.disabled?-1:0)})}var Cf=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 ld,this.inputTyped=function(e,t){return console.log("SingleDemoComponent.inputTyped",e,t)},this.doFocus=function(){return console.log("SingleDemoComponent.doFocus")},this.doBlur=function(){return console.log("SingleDemoComponent.doBlur")},this.doOpen=function(){return console.log("SingleDemoComponent.doOpen")},this.doClose=function(){return console.log("SingleDemoComponent.doClose")},this.doSelect=function(e){return console.log("SingleDemoComponent.doSelect",e)},this.doRemove=function(e){return console.log("SingleDemoComponent.doRemove",e)},this.doSelectOptions=function(e){return console.log("SingleDemoComponent.doSelectOptions",e)},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}(),Ef=Jr({encapsulation:2,styles:[],data:{}});function kf(e){return Gi(0,[(e()(),So(0,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),Hi(-1,null,["Select a single city"])),(e()(),So(2,0,null,null,18,"div",[["class","example-block"]],null,null,null,null,null)),(e()(),So(3,0,null,null,17,"div",[["class","example-block__item"]],null,null,null,null,null)),(e()(),So(4,0,null,null,8,"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"],[null,"selectionChanges"],["document","focusin"],["document","click"]],function(e,t,n){var r=!0,o=e.component;return"document:focusin"===t&&(r=!1!==ti(e,5).documentClick(n)&&r),"document:click"===t&&(r=!1!==ti(e,5).documentClick(n)&&r),"typed"===t&&(r=!1!==o.inputTyped("ngx-select",n)&&r),"focus"===t&&(r=!1!==o.doFocus()&&r),"blur"===t&&(r=!1!==o.doBlur()&&r),"open"===t&&(r=!1!==o.doOpen()&&r),"close"===t&&(r=!1!==o.doClose()&&r),"select"===t&&(r=!1!==o.doSelect(n)&&r),"remove"===t&&(r=!1!==o.doRemove(n)&&r),"selectionChanges"===t&&(r=!1!==o.doSelectOptions(n)&&r),r},xf,lf)),hi(5,2408448,null,3,of,[er,ac,Vn,[2,tf]],{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",selectionChanges:"selectionChanges"}),Ii(335544320,1,{templateOption:0}),Ii(335544320,2,{templateSelectedOption:0}),Ii(335544320,3,{templateOptionNotFound:0}),vi(1024,null,Ac,function(e){return[e]},[of]),hi(10,540672,null,0,vd,[[8,null],[8,null],[6,Ac],[2,gd]],{form:[0,"form"]},null),vi(2048,null,jc,null,[vd]),hi(12,16384,null,0,td,[[4,jc]],null,null),(e()(),So(13,0,null,null,0,"p",[],null,null,null,null,null)),(e()(),So(14,0,null,null,3,"div",[["class","alert alert-secondary"]],null,null,null,null,null)),(e()(),So(15,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),Hi(16,null,["",""])),gi(0,Wa,[]),(e()(),So(18,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),So(19,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()(),Hi(20,null,[" "," "]))],function(e,t){var n=t.component;e(t,5,0,n.items,!0,"No city selected",n.doNgxDefault()),e(t,10,0,n.ngxControl)},function(e,t){var n=t.component;e(t,4,0,ti(t,12).ngClassUntouched,ti(t,12).ngClassTouched,ti(t,12).ngClassPristine,ti(t,12).ngClassDirty,ti(t,12).ngClassValid,ti(t,12).ngClassInvalid,ti(t,12).ngClassPending),e(t,16,0,Qr(t,16,0,ti(t,17).transform(n.ngxControl.value))),e(t,20,0,n.ngxControl.disabled?"Enable":"Disable")})}var Of=function(){return 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,this.doSelectOptions=function(e){return console.log("MultipleDemoComponent.doSelectOptions",e)}}}(),Sf=Jr({encapsulation:2,styles:[],data:{}});function Tf(e){return Gi(0,[(e()(),So(0,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),Hi(-1,null,["Select multiple cities"])),(e()(),So(2,0,null,null,18,"div",[["class","example-block"]],null,null,null,null,null)),(e()(),So(3,0,null,null,17,"div",[["class","example-block__item"]],null,null,null,null,null)),(e()(),So(4,0,null,null,8,"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"],[null,"selectionChanges"],["document","focusin"],["document","click"]],function(e,t,n){var r=!0,o=e.component;return"document:focusin"===t&&(r=!1!==ti(e,5).documentClick(n)&&r),"document:click"===t&&(r=!1!==ti(e,5).documentClick(n)&&r),"ngModelChange"===t&&(r=!1!==(o.ngxValue=n)&&r),"selectionChanges"===t&&(r=!1!==o.doSelectOptions(n)&&r),r},xf,lf)),hi(5,2408448,null,3,of,[er,ac,Vn,[2,tf]],{items:[0,"items"],multiple:[1,"multiple"],placeholder:[2,"placeholder"],disabled:[3,"disabled"]},{selectionChanges:"selectionChanges"}),Ii(335544320,1,{templateOption:0}),Ii(335544320,2,{templateSelectedOption:0}),Ii(335544320,3,{templateOptionNotFound:0}),vi(1024,null,Ac,function(e){return[e]},[of]),hi(10,671744,null,0,hd,[[8,null],[8,null],[8,null],[6,Ac]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),vi(2048,null,jc,null,[hd]),hi(12,16384,null,0,td,[[4,jc]],null,null),(e()(),So(13,0,null,null,0,"p",[],null,null,null,null,null)),(e()(),So(14,0,null,null,3,"div",[["class","alert alert-secondary"]],null,null,null,null,null)),(e()(),So(15,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),Hi(16,null,["",""])),gi(0,Wa,[]),(e()(),So(18,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),So(19,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()(),Hi(20,null,[" "," "]))],function(e,t){var n=t.component;e(t,5,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,4,0,ti(t,12).ngClassUntouched,ti(t,12).ngClassTouched,ti(t,12).ngClassPristine,ti(t,12).ngClassDirty,ti(t,12).ngClassValid,ti(t,12).ngClassInvalid,ti(t,12).ngClassPending),e(t,16,0,Qr(t,16,0,ti(t,17).transform(n.ngxValue))),e(t,20,0,n.ngxDisabled?"Enable":"Disable")})}var Af=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},Df=Jr({encapsulation:2,styles:[],data:{}});function If(e){return Gi(0,[(e()(),So(0,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),Hi(-1,null,["Select a city by country"])),(e()(),So(2,0,null,null,18,"div",[["class","example-block"]],null,null,null,null,null)),(e()(),So(3,0,null,null,17,"div",[["class","example-block__item"]],null,null,null,null,null)),(e()(),So(4,0,null,null,8,"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 r=!0,o=e.component;return"document:focusin"===t&&(r=!1!==ti(e,5).documentClick(n)&&r),"document:click"===t&&(r=!1!==ti(e,5).documentClick(n)&&r),"ngModelChange"===t&&(r=!1!==(o.ngxValue=n)&&r),r},xf,lf)),hi(5,2408448,null,3,of,[er,ac,Vn,[2,tf]],{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),Ii(335544320,1,{templateOption:0}),Ii(335544320,2,{templateSelectedOption:0}),Ii(335544320,3,{templateOptionNotFound:0}),vi(1024,null,Ac,function(e){return[e]},[of]),hi(10,671744,null,0,hd,[[8,null],[8,null],[8,null],[6,Ac]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),vi(2048,null,jc,null,[hd]),hi(12,16384,null,0,td,[[4,jc]],null,null),(e()(),So(13,0,null,null,0,"p",[],null,null,null,null,null)),(e()(),So(14,0,null,null,3,"div",[["class","alert alert-secondary"]],null,null,null,null,null)),(e()(),So(15,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),Hi(16,null,["",""])),gi(0,Wa,[]),(e()(),So(18,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),So(19,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()(),Hi(20,null,[" "," "]))],function(e,t){var n=t.component;e(t,5,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,4,0,ti(t,12).ngClassUntouched,ti(t,12).ngClassTouched,ti(t,12).ngClassPristine,ti(t,12).ngClassDirty,ti(t,12).ngClassValid,ti(t,12).ngClassInvalid,ti(t,12).ngClassPending),e(t,16,0,Qr(t,16,0,ti(t,17).transform(n.ngxValue))),e(t,20,0,n.ngxDisabled?"Enable":"Disable")})}var Nf=[{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"}],Vf=function(){function e(e){this.sanitizer=e,this.items=Nf,this.ngxValue=[],this.ngxDisabled=!1}return e.prototype.style=function(e){return this.sanitizer.bypassSecurityTrustStyle(e)},e}(),Pf=Jr({encapsulation:2,styles:[".color-box {\n display: inline-block;\n height: 14px;\n width: 14px;\n margin-right: 4px;\n border: 1px solid #000;\n }"],data:{}});function Mf(e){return Gi(0,[(e()(),So(0,0,null,null,0,"span",[["class","color-box"]],[[8,"style",2]],null,null,null,null)),(e()(),So(1,0,null,null,0,"span",[],[[8,"innerHTML",1]],null,null,null,null)),(e()(),Hi(2,null,[" (",") "]))],null,function(e,t){e(t,0,0,t.component.style("background-color:"+t.context.$implicit.value)),e(t,1,0,t.context.text),e(t,2,0,t.context.$implicit.data.hex)})}function Rf(e){return Gi(0,[(e()(),Hi(0,null,[' "','" not found ']))],null,function(e,t){e(t,0,0,t.context.$implicit)})}function jf(e){return Gi(0,[(e()(),So(0,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),Hi(-1,null,["Select a color"])),(e()(),So(2,0,null,null,23,"div",[["class","example-block"]],null,null,null,null,null)),(e()(),So(3,0,null,null,22,"div",[["class","example-block__item"]],null,null,null,null,null)),(e()(),So(4,0,null,null,13,"ngx-select",[["optionTextField","name"],["optionValueField","hex"],["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 r=!0,o=e.component;return"document:focusin"===t&&(r=!1!==ti(e,5).documentClick(n)&&r),"document:click"===t&&(r=!1!==ti(e,5).documentClick(n)&&r),"ngModelChange"===t&&(r=!1!==(o.ngxValue=n)&&r),r},xf,lf)),hi(5,2408448,null,3,of,[er,ac,Vn,[2,tf]],{items:[0,"items"],optionValueField:[1,"optionValueField"],optionTextField:[2,"optionTextField"],allowClear:[3,"allowClear"],placeholder:[4,"placeholder"],disabled:[5,"disabled"]},null),Ii(335544320,1,{templateOption:0}),Ii(335544320,2,{templateSelectedOption:0}),Ii(335544320,3,{templateOptionNotFound:0}),vi(1024,null,Ac,function(e){return[e]},[of]),hi(10,671744,null,0,hd,[[8,null],[8,null],[8,null],[6,Ac]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),vi(2048,null,jc,null,[hd]),hi(12,16384,null,0,td,[[4,jc]],null,null),(e()(),Oo(0,[[1,2],[2,2]],null,2,null,Mf)),hi(14,16384,null,0,Kd,[In],null,null),hi(15,16384,null,0,Yd,[In],null,null),(e()(),Oo(0,[[3,2]],null,1,null,Rf)),hi(17,16384,null,0,Jd,[In],null,null),(e()(),So(18,0,null,null,0,"p",[],null,null,null,null,null)),(e()(),So(19,0,null,null,3,"div",[["class","alert alert-secondary"]],null,null,null,null,null)),(e()(),So(20,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),Hi(21,null,["",""])),gi(0,Wa,[]),(e()(),So(23,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),So(24,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()(),Hi(25,null,[" "," "]))],function(e,t){var n=t.component;e(t,5,0,n.items,"hex","name",!0,"No city selected",n.ngxDisabled),e(t,10,0,n.ngxDisabled,n.ngxValue)},function(e,t){var n=t.component;e(t,4,0,ti(t,12).ngClassUntouched,ti(t,12).ngClassTouched,ti(t,12).ngClassPristine,ti(t,12).ngClassDirty,ti(t,12).ngClassValid,ti(t,12).ngClassInvalid,ti(t,12).ngClassPending),e(t,21,0,Qr(t,21,0,ti(t,22).transform(n.ngxValue))),e(t,25,0,n.ngxDisabled?"Enable":"Disable")})}var Ff=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},Bf=Jr({encapsulation:2,styles:[],data:{}});function Lf(e){return Gi(0,[(e()(),So(0,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),Hi(1,null,["Select a single city with "," items"])),(e()(),So(2,0,null,null,18,"div",[["class","example-block"]],null,null,null,null,null)),(e()(),So(3,0,null,null,17,"div",[["class","example-block__item"]],null,null,null,null,null)),(e()(),So(4,0,null,null,8,"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 r=!0,o=e.component;return"document:focusin"===t&&(r=!1!==ti(e,5).documentClick(n)&&r),"document:click"===t&&(r=!1!==ti(e,5).documentClick(n)&&r),"ngModelChange"===t&&(r=!1!==(o.ngxValue=n)&&r),r},xf,lf)),hi(5,2408448,null,3,of,[er,ac,Vn,[2,tf]],{items:[0,"items"],allowClear:[1,"allowClear"],placeholder:[2,"placeholder"],noAutoComplete:[3,"noAutoComplete"],disabled:[4,"disabled"]},null),Ii(335544320,1,{templateOption:0}),Ii(335544320,2,{templateSelectedOption:0}),Ii(335544320,3,{templateOptionNotFound:0}),vi(1024,null,Ac,function(e){return[e]},[of]),hi(10,671744,null,0,hd,[[8,null],[8,null],[8,null],[6,Ac]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),vi(2048,null,jc,null,[hd]),hi(12,16384,null,0,td,[[4,jc]],null,null),(e()(),So(13,0,null,null,0,"p",[],null,null,null,null,null)),(e()(),So(14,0,null,null,3,"div",[["class","alert alert-secondary"]],null,null,null,null,null)),(e()(),So(15,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),Hi(16,null,["",""])),gi(0,Wa,[]),(e()(),So(18,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),So(19,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()(),Hi(20,null,[" "," "]))],function(e,t){var n=t.component;e(t,5,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,4,0,ti(t,12).ngClassUntouched,ti(t,12).ngClassTouched,ti(t,12).ngClassPristine,ti(t,12).ngClassDirty,ti(t,12).ngClassValid,ti(t,12).ngClassInvalid,ti(t,12).ngClassPending),e(t,16,0,Qr(t,16,0,ti(t,17).transform(n.ngxValue))),e(t,20,0,n.ngxDisabled?"Enable":"Disable")})}var Hf=n("NzhH"),zf={single:{heading:"Single",ts:n("5O0x"),html:n("wor0")},multiple:{heading:"Multiple",ts:n("ngBM"),html:n("dsz2")},children:{heading:"Children",ts:n("sAJ4"),html:n("xykP")},rich:{heading:"Rich",ts:n("rZW4"),html:n("Fam2")},noAutoComplete:{heading:"noAutoComplete",ts:n("Yqad"),html:n("HfGU")}},Uf=function(){return function(){this.currentHeading="Single",this.tabDesc=zf,this.doc=Hf}}(),Gf=Jr({encapsulation:0,styles:["[_nghost-%COMP%] {\n display: block\n }"],data:{}});function qf(e){return Gi(0,[(e()(),So(0,0,null,null,36,"section",[],null,null,null,null,null)),(e()(),So(1,0,null,null,31,"tabset",[],[[2,"tab-container",null]],null,null,ns,Xa)),hi(2,180224,null,0,Ja,[Ya,Tn],null,null),(e()(),So(3,0,null,0,5,"tab",[["heading","Single"]],[[1,"id",0],[2,"active",null],[2,"tab-pane",null]],null,null,null,null)),hi(4,212992,null,0,rs,[Ja,An,Tn],{heading:[0,"heading"]},null),(e()(),So(5,0,null,null,3,"sample-section",[],null,null,null,ls,is)),hi(6,49152,null,0,os,[],{desc:[0,"desc"]},null),(e()(),So(7,0,null,0,1,"single-demo",[],null,null,null,kf,Ef)),hi(8,180224,null,0,Cf,[],null,null),(e()(),So(9,0,null,0,5,"tab",[["heading","Multiple"]],[[1,"id",0],[2,"active",null],[2,"tab-pane",null]],null,null,null,null)),hi(10,212992,null,0,rs,[Ja,An,Tn],{heading:[0,"heading"]},null),(e()(),So(11,0,null,null,3,"sample-section",[],null,null,null,ls,is)),hi(12,49152,null,0,os,[],{desc:[0,"desc"]},null),(e()(),So(13,0,null,0,1,"multiple-demo",[],null,null,null,Tf,Sf)),hi(14,49152,null,0,Of,[],null,null),(e()(),So(15,0,null,0,5,"tab",[["heading","Children"]],[[1,"id",0],[2,"active",null],[2,"tab-pane",null]],null,null,null,null)),hi(16,212992,null,0,rs,[Ja,An,Tn],{heading:[0,"heading"]},null),(e()(),So(17,0,null,null,3,"sample-section",[],null,null,null,ls,is)),hi(18,49152,null,0,os,[],{desc:[0,"desc"]},null),(e()(),So(19,0,null,0,1,"children-demo",[],null,null,null,If,Df)),hi(20,49152,null,0,Af,[],null,null),(e()(),So(21,0,null,0,5,"tab",[["heading","Rich"]],[[1,"id",0],[2,"active",null],[2,"tab-pane",null]],null,null,null,null)),hi(22,212992,null,0,rs,[Ja,An,Tn],{heading:[0,"heading"]},null),(e()(),So(23,0,null,null,3,"sample-section",[],null,null,null,ls,is)),hi(24,49152,null,0,os,[],{desc:[0,"desc"]},null),(e()(),So(25,0,null,0,1,"rich-demo",[],null,null,null,jf,Pf)),hi(26,49152,null,0,Vf,[ac],null,null),(e()(),So(27,0,null,0,5,"tab",[["heading","No autocomplete"]],[[1,"id",0],[2,"active",null],[2,"tab-pane",null]],null,null,null,null)),hi(28,212992,null,0,rs,[Ja,An,Tn],{heading:[0,"heading"]},null),(e()(),So(29,0,null,null,3,"sample-section",[],null,null,null,ls,is)),hi(30,49152,null,0,os,[],{desc:[0,"desc"]},null),(e()(),So(31,0,null,0,1,"no-autocomplete-demo",[],null,null,null,Lf,Bf)),hi(32,49152,null,0,Ff,[],null,null),(e()(),So(33,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),Hi(-1,null,["Documentation"])),(e()(),So(35,0,null,null,1,"div",[["class","card card-block panel panel-default panel-body"]],null,null,null,null,null)),(e()(),So(36,0,null,null,0,"div",[["class","card-body doc-api"]],[[8,"innerHTML",1]],null,null,null,null))],function(e,t){var n=t.component;e(t,4,0,"Single"),e(t,6,0,n.tabDesc.single),e(t,10,0,"Multiple"),e(t,12,0,n.tabDesc.multiple),e(t,16,0,"Children"),e(t,18,0,n.tabDesc.children),e(t,22,0,"Rich"),e(t,24,0,n.tabDesc.rich),e(t,28,0,"No autocomplete"),e(t,30,0,n.tabDesc.noAutoComplete)},function(e,t){var n=t.component;e(t,1,0,ti(t,2).clazz),e(t,3,0,ti(t,4).id,ti(t,4).active,ti(t,4).addClass),e(t,9,0,ti(t,10).id,ti(t,10).active,ti(t,10).addClass),e(t,15,0,ti(t,16).id,ti(t,16).active,ti(t,16).addClass),e(t,21,0,ti(t,22).id,ti(t,22).active,ti(t,22).addClass),e(t,27,0,ti(t,28).id,ti(t,28).active,ti(t,28).addClass),e(t,36,0,n.doc)})}var Wf=Jr({encapsulation:0,styles:[[""]],data:{}});function Zf(e){return Gi(0,[(e()(),So(0,0,null,null,20,"main",[["class","bd-pageheader"]],null,null,null,null,null)),(e()(),So(1,0,null,null,19,"div",[["class","container"]],null,null,null,null,null)),(e()(),So(2,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),Hi(3,null,["ngx-select-ex v",""])),(e()(),So(4,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),Hi(-1,null,["Native Angular2 component for Select"])),(e()(),So(6,0,null,null,7,"p",[],null,null,null,null,null)),(e()(),Hi(-1,null,[" Compatible with "])),(e()(),So(8,0,null,null,1,"a",[["class","badge badge-light"],["href","https://getbootstrap.com/docs/3.3/"],["target","_blank"]],null,null,null,null,null)),(e()(),Hi(-1,null,["Bootstrap 3"])),(e()(),Hi(-1,null,[" and "])),(e()(),So(11,0,null,null,2,"b",[],null,null,null,null,null)),(e()(),So(12,0,null,null,1,"a",[["class","badge badge-light"],["href","https://getbootstrap.com/"],["target","_blank"]],null,null,null,null,null)),(e()(),Hi(-1,null,["Bootstrap 4"])),(e()(),So(14,0,null,null,1,"a",[["class","btn btn-primary"],["href","https://github.com/optimistex/ngx-select-ex"]],null,null,null,null,null)),(e()(),Hi(-1,null,["View on GitHub"])),(e()(),So(16,0,null,null,4,"div",[["class","row"]],null,null,null,null,null)),(e()(),So(17,0,null,null,1,"div",[["class","col-lg-1"]],null,null,null,null,null)),(e()(),So(18,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()(),So(19,0,null,null,1,"div",[["class","col-lg-1"]],null,null,null,null,null)),(e()(),So(20,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()(),So(21,0,null,null,3,"div",[["class","container"]],null,null,null,null,null)),(e()(),So(22,0,null,null,0,"section",[["id","getting-started"]],[[8,"innerHTML",1]],null,null,null,null)),(e()(),So(23,0,null,null,1,"select-section",[],null,null,null,qf,Gf)),hi(24,49152,null,0,Uf,[],null,null),(e()(),So(25,0,null,null,8,"footer",[["class","footer"]],null,null,null,null,null)),(e()(),So(26,0,null,null,7,"div",[["class","container"]],null,null,null,null,null)),(e()(),So(27,0,null,null,6,"p",[["class","text-muted text-center"]],null,null,null,null,null)),(e()(),So(28,0,null,null,1,"a",[["href","https://github.com/optimistex/ngx-select-ex"]],null,null,null,null,null)),(e()(),Hi(-1,null,["ngx-select-ex"])),(e()(),Hi(-1,null,[" is maintained by "])),(e()(),So(31,0,null,null,1,"a",[["href","https://github.com/optimistex"]],null,null,null,null,null)),(e()(),Hi(-1,null,["optimistex"])),(e()(),Hi(-1,null,["."]))],null,function(e,t){var n=t.component;e(t,3,0,null==n.p?null:n.p.version),e(t,22,0,n.gettingStarted)})}var $f=function(e,t,n,r,o,i){return new qo("app-demo",Aa,function(e){return Gi(0,[(e()(),So(0,0,null,null,1,"app-demo",[],null,null,null,Zf,Wf)),hi(1,1097728,null,0,Aa,[],null,null)],null,null)},{},{},[])}(),Qf=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[{provide:tf,useValue:t}]}},e}(),Kf=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[Ya]}},e}(),Yf=(Ie(function(){return Yf}),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 void 0===this.btnCheckboxTrue||this.btnCheckboxTrue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"falseValue",{get:function(){return void 0!==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}()),Jf=(Ie(function(){return Jf}),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}()),Xf=(Ie(function(){return Xf}),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=void 0!==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}()),ep=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[]}},e}(),tp=function(e,t,n){return new Yl(Oa,[Aa],function(e){return function(e){for(var t={},n=[],r=!1,o=0;o