diff --git a/docs/index.html b/docs/index.html index f869bbaa..cee418c9 100644 --- a/docs/index.html +++ b/docs/index.html @@ -31,10 +31,10 @@ padding-top: 30px; } - + Loading... - + diff --git a/docs/main.01480025f3faedbbf39e.js b/docs/main.01480025f3faedbbf39e.js new file mode 100644 index 00000000..a3357bda --- /dev/null +++ b/docs/main.01480025f3faedbbf39e.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},"70fE":function(e,t,n){"use strict";n.r(t),t.default='

Select multiple cities

\r\n
\r\n
\r\n \r\n \r\n

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

Select a city by country

\r\n
\r\n
\r\n \r\n \r\n

\r\n
\r\n
{{ngxValue | json}}
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n'},WySO:function(e,t,n){"use strict";n.r(t),t.default='

Select a single city

\r\n
\r\n
\r\n \r\n \r\n

\r\n
\r\n
{{ngxControl.value | json}}
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n'},XaGS:function(e,t,n){(function(e){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",o="[object Array]",a="[object Boolean]",s="[object Date]",u="[object Error]",l="[object Function]",c="[object Map]",d="[object Number]",h="[object Object]",f="[object Promise]",p="[object RegExp]",v="[object Set]",g="[object String]",y="[object WeakMap]",m="[object ArrayBuffer]",_="[object DataView]",b=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[i]=x[o]=x[m]=x[a]=x[_]=x[s]=x[u]=x[l]=x[c]=x[d]=x[h]=x[p]=x[v]=x[g]=x[y]=!1;var w="object"==typeof global&&global&&global.Object===Object&&global,C="object"==typeof self&&self&&self.Object===Object&&self,O=w||C||Function("return this")(),E=t&&!t.nodeType&&t,S=E&&"object"==typeof e&&e&&!e.nodeType&&e,T=S&&S.exports===E,A=T&&w.process,D=function(){try{return A&&A.binding&&A.binding("util")}catch(e){}}(),V=D&&D.isTypedArray;function I(e,t){for(var n=-1,r=null==e?0:e.length;++ns))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var c=-1,d=!0,h=2&n?new ye:void 0;for(o.set(e,t),o.set(t,e);++c-1},ve.prototype.set=function(e,t){var n=this.__data__,r=_e(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ge.prototype.clear=function(){this.size=0,this.__data__={hash:new pe,map:new(ne||ve),string:new pe}},ge.prototype.delete=function(e){var t=Oe(this,e).delete(e);return this.size-=t?1:0,t},ge.prototype.get=function(e){return Oe(this,e).get(e)},ge.prototype.has=function(e){return Oe(this,e).has(e)},ge.prototype.set=function(e,t){var n=Oe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ye.prototype.add=ye.prototype.push=function(e){return this.__data__.set(e,n),this},ye.prototype.has=function(e){return this.__data__.has(e)},me.prototype.clear=function(){this.__data__=new ve,this.size=0},me.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},me.prototype.get=function(e){return this.__data__.get(e)},me.prototype.has=function(e){return this.__data__.has(e)},me.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ve){var r=n.__data__;if(!ne||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ge(r)}return n.set(e,t),this.size=n.size,this};var Se=J?function(e){return null==e?[]:(e=Object(e),function(t,n){for(var r=-1,i=null==t?0:t.length,o=0,a=[];++r-1&&e%1==0&&e-1&&e%1==0&&e<=r}function Ne(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Pe(e){return null!=e&&"object"==typeof e}var Be=V?function(e){return function(t){return e(t)}}(V):function(e){return Pe(e)&&je(e.length)&&!!x[be(e)]};function He(e){return null!=(t=e)&&je(t.length)&&!Re(t)?function(e,t){var n=Me(e),r=!n&&Ie(e),i=!n&&!r&&Fe(e),o=!n&&!r&&!i&&Be(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n\r\n \r\n \r\n\r\n'},gXAI:function(e,t){e.exports='

Getting started

First of all, Welcome!

'},gwak:function(e,t,n){"use strict";n.r(t),t.default='

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

\r\n
\r\n
\r\n \r\n \r\n

\r\n
\r\n
{{ngxValue | json}}
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
'},hnl7:function(e,t,n){"use strict";n.r(t),t.default="import { Component, ViewEncapsulation } from '@angular/core';\r\nimport { DomSanitizer, SafeStyle } from '@angular/platform-browser';\r\n\r\nconst COLORS = [\r\n {name: 'Blue 10', hex: '#C0E6FF'},\r\n {name: 'Blue 20', hex: '#7CC7FF'},\r\n {name: 'Blue 30', hex: '#5AAAFA', disabled: true},\r\n {name: 'Blue 40', hex: '#5596E6'},\r\n {name: 'Blue 50', hex: '#4178BE'},\r\n {name: 'Blue 60', hex: '#325C80'},\r\n {name: 'Blue 70', hex: '#264A60'},\r\n {name: 'Blue 80', hex: '#1D3649'},\r\n {name: 'Blue 90', hex: '#152935'},\r\n {name: 'Blue 100', hex: '#010205'},\r\n {name: 'Green 10', hex: '#C8F08F'},\r\n {name: 'Green 20', hex: '#B4E051'},\r\n {name: 'Green 30', hex: '#8CD211'},\r\n {name: 'Green 40', hex: '#5AA700'},\r\n {name: 'Green 50', hex: '#4B8400'},\r\n {name: 'Green 60', hex: '#2D660A'},\r\n {name: 'Green 70', hex: '#144D14'},\r\n {name: 'Green 80', hex: '#0A3C02'},\r\n {name: 'Green 90', hex: '#0C2808'},\r\n {name: 'Green 100', hex: '#010200'},\r\n {name: 'Red 10', hex: '#FFD2DD'},\r\n {name: 'Red 20', hex: '#FFA5B4'},\r\n {name: 'Red 30', hex: '#FF7D87'},\r\n {name: 'Red 40', hex: '#FF5050'},\r\n {name: 'Red 50', hex: '#E71D32'},\r\n {name: 'Red 60', hex: '#AD1625'},\r\n {name: 'Red 70', hex: '#8C101C'},\r\n {name: 'Red 80', hex: '#6E0A1E'},\r\n {name: 'Red 90', hex: '#4C0A17'},\r\n {name: 'Red 100', hex: '#040001'},\r\n {name: 'Yellow 10', hex: '#FDE876'},\r\n {name: 'Yellow 20', hex: '#FDD600'},\r\n {name: 'Yellow 30', hex: '#EFC100'},\r\n {name: 'Yellow 40', hex: '#BE9B00'},\r\n {name: 'Yellow 50', hex: '#8C7300'},\r\n {name: 'Yellow 60', hex: '#735F00'},\r\n {name: 'Yellow 70', hex: '#574A00'},\r\n {name: 'Yellow 80', hex: '#3C3200'},\r\n {name: 'Yellow 90', hex: '#281E00'},\r\n {name: 'Yellow 100', hex: '#020100'},\r\n];\r\n\r\n@Component({\r\n selector: 'rich-demo',\r\n templateUrl: './rich-demo.html',\r\n styles: [`.color-box {\r\n display: inline-block;\r\n height: 14px;\r\n width: 14px;\r\n margin-right: 4px;\r\n border: 1px solid #000;\r\n }`],\r\n encapsulation: ViewEncapsulation.None, // Enable dynamic HTML styles\r\n})\r\nexport class RichDemoComponent {\r\n public items: any[] = COLORS;\r\n\r\n public ngxValue: any = [];\r\n public ngxDisabled = false;\r\n\r\n constructor(public sanitizer: DomSanitizer) {\r\n }\r\n\r\n public style(data: string): SafeStyle {\r\n return this.sanitizer.bypassSecurityTrustStyle(data);\r\n }\r\n}\r\n"},j1ef:function(e,t,n){"use strict";n.r(t),t.default="import { Component } from '@angular/core';\r\nimport { INgxSelectOption } from 'app/lib/ngx-select/ngx-select.interfaces';\r\nimport { FormControl } from '@angular/forms';\r\n\r\n@Component({\r\n selector: 'custom-entries-demo',\r\n templateUrl: './custom-entries-demo.html',\r\n})\r\nexport class CustomEntriesDemoComponent {\r\n public items: string[] = ['Ana', 'Aleyna', 'Barbara', 'Charlotte', 'Diana', 'Elise', 'Fiona', 'Gina', 'Helene', 'Irene', 'Jessica',\r\n 'Katarina', 'Lea', 'Liara', 'Maria', 'Mara', 'Melanie', 'Natalie'];\r\n\r\n public ngxDisabled = false;\r\n public names = new FormControl();\r\n\r\n public doSelectOptions = (options: INgxSelectOption[]) => console.log('MultipleDemoComponent.doSelectOptions', options);\r\n\r\n}\r\n"},kiQV:function(e){e.exports=JSON.parse('{"name":"ngx-select-ex","version":"6.0.2","description":"Angular based replacement for select boxes","license":"MIT","private":false,"author":"Konstantin Polyntsov ","repository":{"type":"git","url":"git+ssh://git@github.com:optimistex/ngx-select-ex.git"},"bugs":{"url":"https://github.com/optimistex/ngx-select-ex/issues"},"homepage":"https://github.com/optimistex/ngx-select-ex#readme","scripts":{"e2e":"ng e2e","cz":"git add -A && git status && git-cz","build":"npm run lint && npm run test && 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","lint:fix":"ng lint --fix","ng":"ng","precommit":"npm run test","release":"standard-version --commit-all","publish.ng4":"npm publish dist --tag ng4","publish":"npm publish dist","publish-dev":"npm publish dist --tag dev","start":"ng serve","test":"ng test --watch false","test-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":{},"dependencies":{"lodash.isequal":"^4.5.0"},"devDependencies":{"@angular-devkit/build-angular":"~0.1100.2","@angular/animations":"~11.1.0","@angular/cli":"^11.1.1","@angular/common":"~11.1.0","@angular/compiler":"~11.1.0","@angular/compiler-cli":"~11.1.0","@angular/core":"~11.1.0","@angular/forms":"~11.1.0","@angular/language-service":"~11.1.0","@angular/platform-browser":"~11.1.0","@angular/platform-browser-dynamic":"~11.1.0","@angular/router":"~11.1.0","@types/jasmine":"~3.6.0","@types/jasminewd2":"^2.0.8","@types/marked":"^1.1.0","@types/node":"^14.14.7","@types/webpack":"^4.41.24","codecov":"^3.8.1","codelyzer":"^6.0.0","escape-string-regexp":"^4.0.0","html-loader":"^1.3.2","husky":"^4.3.0","jasmine-core":"~3.6.0","jasmine-spec-reporter":"~5.0.0","karma":"^5.1.1","karma-chrome-launcher":"~3.1.0","karma-coverage-istanbul-reporter":"~3.0.2","karma-jasmine":"~4.0.0","karma-jasmine-html-reporter":"^1.5.0","markdown-loader":"^6.0.0","ng-packagr":"^11.0.3","ngx-bootstrap":"^6.1.0","pre-commit":"^1.2.2","protractor":"~7.0.0","rxjs":"~6.6.3","standard-version":"^9.0.0","ts-node":"^9.0.0","tslib":"^2.0.0","tslint":"~6.1.0","tslint-jasmine-rules":"^1.6.1","typescript":"~4.0.5","zone.js":"^0.10.3"},"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"}]}')},luUw:function(e,t,n){"use strict";n.r(t),t.default="import { Component } from '@angular/core';\r\nimport { INgxSelectOption } from '../../lib/ngx-select/ngx-select.interfaces';\r\n\r\n@Component({\r\n selector: 'multiple-demo',\r\n templateUrl: './multiple-demo.html',\r\n})\r\nexport class MultipleDemoComponent {\r\n public items: string[] = ['Amsterdam', 'Antwerp', 'Athens', 'Barcelona',\r\n 'Berlin', 'Birmingham', 'Bradford', 'Bremen', 'Brussels', 'Bucharest',\r\n 'Budapest', 'Cologne', 'Copenhagen', 'Dortmund', 'Dresden', 'Dublin', 'D\xfcsseldorf',\r\n 'Essen', 'Frankfurt', 'Genoa', 'Glasgow', 'Gothenburg', 'Hamburg', 'Hannover',\r\n 'Helsinki', 'Leeds', 'Leipzig', 'Lisbon', '\u0141\xf3d\u017a', 'London', 'Krak\xf3w', 'Madrid',\r\n 'M\xe1laga', 'Manchester', 'Marseille', 'Milan', 'Munich', 'Naples', 'Palermo',\r\n 'Paris', 'Pozna\u0144', 'Prague', 'Riga', 'Rome', 'Rotterdam', 'Seville', 'Sheffield',\r\n 'Sofia', 'Stockholm', 'Stuttgart', 'The Hague', 'Turin', 'Valencia', 'Vienna',\r\n 'Vilnius', 'Warsaw', 'Wroc\u0142aw', 'Zagreb', 'Zaragoza'];\r\n\r\n public ngxValue: any = [];\r\n public ngxDisabled = false;\r\n\r\n public doSelectOptions = (options: INgxSelectOption[]) => console.log('MultipleDemoComponent.doSelectOptions', options);\r\n}\r\n"},oxjq:function(e,t,n){"use strict";e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},rVYP:function(e,t,n){"use strict";n.r(t),t.default="import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'children-demo',\r\n templateUrl: './children-demo.html',\r\n})\r\nexport class ChildrenDemoComponent {\r\n public items: any[] = [\r\n {\r\n id: 100,\r\n text: 'Austria',\r\n children: [\r\n {id: 54, text: 'Vienna'},\r\n ],\r\n },\r\n {\r\n id: 200,\r\n text: 'Belgium',\r\n children: [\r\n {id: 2, text: 'Antwerp'},\r\n {id: 9, text: 'Brussels'},\r\n ],\r\n },\r\n {\r\n id: 300,\r\n text: 'Bulgaria',\r\n children: [\r\n {id: 48, text: 'Sofia'},\r\n ],\r\n },\r\n {\r\n id: 400,\r\n text: 'Croatia',\r\n children: [\r\n {id: 58, text: 'Zagreb'},\r\n ],\r\n },\r\n {\r\n id: 500,\r\n text: 'Czech Republic',\r\n children: [\r\n {id: 42, text: 'Prague'},\r\n ],\r\n },\r\n {\r\n id: 600,\r\n text: 'Denmark',\r\n children: [\r\n {id: 13, text: 'Copenhagen'},\r\n ],\r\n },\r\n {\r\n id: 700,\r\n text: 'England',\r\n children: [\r\n {id: 6, text: 'Birmingham'},\r\n {id: 7, text: 'Bradford'},\r\n {id: 26, text: 'Leeds', disabled: true},\r\n {id: 30, text: 'London'},\r\n {id: 34, text: 'Manchester'},\r\n {id: 47, text: 'Sheffield'},\r\n ],\r\n },\r\n {\r\n id: 800,\r\n text: 'Finland',\r\n children: [\r\n {id: 25, text: 'Helsinki'},\r\n ],\r\n },\r\n {\r\n id: 900,\r\n text: 'France',\r\n children: [\r\n {id: 35, text: 'Marseille'},\r\n {id: 40, text: 'Paris'},\r\n ],\r\n },\r\n {\r\n id: 1000,\r\n text: 'Germany',\r\n children: [\r\n {id: 5, text: 'Berlin'},\r\n {id: 8, text: 'Bremen'},\r\n {id: 12, text: 'Cologne'},\r\n {id: 14, text: 'Dortmund'},\r\n {id: 15, text: 'Dresden'},\r\n {id: 17, text: 'D\xfcsseldorf'},\r\n {id: 18, text: 'Essen'},\r\n {id: 19, text: 'Frankfurt'},\r\n {id: 23, text: 'Hamburg'},\r\n {id: 24, text: 'Hannover'},\r\n {id: 27, text: 'Leipzig'},\r\n {id: 37, text: 'Munich'},\r\n {id: 50, text: 'Stuttgart'},\r\n ],\r\n },\r\n {\r\n id: 1100,\r\n text: 'Greece',\r\n children: [\r\n {id: 3, text: 'Athens'},\r\n ],\r\n },\r\n {\r\n id: 1200,\r\n text: 'Hungary',\r\n children: [\r\n {id: 11, text: 'Budapest'},\r\n ],\r\n },\r\n {\r\n id: 1300,\r\n text: 'Ireland',\r\n children: [\r\n {id: 16, text: 'Dublin'},\r\n ],\r\n },\r\n {\r\n id: 1400,\r\n text: 'Italy',\r\n children: [\r\n {id: 20, text: 'Genoa'},\r\n {id: 36, text: 'Milan'},\r\n {id: 38, text: 'Naples'},\r\n {id: 39, text: 'Palermo'},\r\n {id: 44, text: 'Rome'},\r\n {id: 52, text: 'Turin'},\r\n ],\r\n },\r\n {\r\n id: 1500,\r\n text: 'Latvia',\r\n children: [\r\n {id: 43, text: 'Riga'},\r\n ],\r\n },\r\n {\r\n id: 1600,\r\n text: 'Lithuania',\r\n children: [\r\n {id: 55, text: 'Vilnius'},\r\n ],\r\n },\r\n {\r\n id: 1700,\r\n text: 'Netherlands',\r\n children: [\r\n {id: 1, text: 'Amsterdam'},\r\n {id: 45, text: 'Rotterdam'},\r\n {id: 51, text: 'The Hague'},\r\n ],\r\n },\r\n {\r\n id: 1800,\r\n text: 'Poland',\r\n children: [\r\n {id: 29, text: '\u0141\xf3d\u017a'},\r\n {id: 31, text: 'Krak\xf3w'},\r\n {id: 41, text: 'Pozna\u0144'},\r\n {id: 56, text: 'Warsaw'},\r\n {id: 57, text: 'Wroc\u0142aw'},\r\n ],\r\n },\r\n {\r\n id: 1900,\r\n text: 'Portugal',\r\n children: [\r\n {id: 28, text: 'Lisbon'},\r\n ],\r\n },\r\n {\r\n id: 2000,\r\n text: 'Romania',\r\n children: [\r\n {id: 10, text: 'Bucharest'},\r\n ],\r\n },\r\n {\r\n id: 2100,\r\n text: 'Scotland',\r\n children: [\r\n {id: 21, text: 'Glasgow'},\r\n ],\r\n },\r\n {\r\n id: 2200,\r\n text: 'Spain',\r\n children: [\r\n {id: 4, text: 'Barcelona'},\r\n {id: 32, text: 'Madrid'},\r\n {id: 33, text: 'M\xe1laga'},\r\n {id: 46, text: 'Seville'},\r\n {id: 53, text: 'Valencia'},\r\n {id: 59, text: 'Zaragoza'},\r\n ],\r\n },\r\n {\r\n id: 2300,\r\n text: 'Sweden',\r\n children: [\r\n {id: 22, text: 'Gothenburg'},\r\n {id: 49, text: 'Stockholm'},\r\n ],\r\n },\r\n ];\r\n\r\n public ngxValue: any[] = [];\r\n public ngxDisabled = false;\r\n}\r\n"},yO7Q:function(e,t,n){"use strict";n.r(t),t.default='

Select a color

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

\r\n
\r\n
{{ngxValue | json}}
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n'},zUnb:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t,n){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function l(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function h(e,t,n){return(h=d()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&c(i,n.prototype),i}).apply(null,arguments)}function f(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(r){return r.pipe(oe(function(n,r){return ne(e(n,r)).pipe(Z(function(e,i){return t(n,e,r,i)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new ae(e,n))})}var ae=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;v(this,e),this.project=t,this.concurrent=n}return p(e,[{key:"call",value:function(e,t){return t.subscribe(new se(e,this.project,this.concurrent))}}]),e}(),se=function(e){g(n,e);var t=_(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return v(this,n),(i=t.call(this,e)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return p(n,[{key:"_next",value:function(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(ie);function ue(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return oe(R,e)}function le(e,t){return t?te(e,t):new P(Q(e))}function ce(){for(var e=Number.POSITIVE_INFINITY,t=null,n=arguments.length,r=new Array(n),i=0;i1&&"number"==typeof r[r.length-1]&&(e=r.pop())):"number"==typeof o&&(e=r.pop()),null===t&&1===r.length&&r[0]instanceof P?r[0]:ue(e)(le(r,t))}function de(){return function(e){return e.lift(new he(e))}}var he=function(){function e(t){v(this,e),this.connectable=t}return p(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var r=new fe(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),e}(),fe=function(e){g(n,e);var t=_(n);function n(e,r){var i;return v(this,n),(i=t.call(this,e)).connectable=r,i}return p(n,[{key:"_unsubscribe",value: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}}]),n}(I),pe=function(e){g(n,e);var t=_(n);function n(e,r){var i;return v(this,n),(i=t.call(this)).source=e,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return p(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new O).add(this.source.subscribe(new ge(this.getSubject(),this))),e.closed&&(this._connection=null,e=O.EMPTY)),e}},{key:"refCount",value:function(){return de()(this)}}]),n}(P),ve=function(){var e=pe.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),ge=function(e){g(n,e);var t=_(n);function n(e,r){var i;return v(this,n),(i=t.call(this,e)).connectable=r,i}return p(n,[{key:"_error",value:function(e){this._unsubscribe(),i(r(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),i(r(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value: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()}}}]),n}(z);function ye(){return new q}function me(){return function(e){return de()((t=ye,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,ve);return r.source=e,r.subjectFactory=n,r})(e));var t}}function _e(e){for(var t in e)if(e[t]===_e)return t;throw Error("Could not find renamed property on target object.")}function be(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ke(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ke).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function xe(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var we=_e({__forward_ref__:_e});function Ce(e){return e.__forward_ref__=Ce,e.toString=function(){return ke(this())},e}function Oe(e){return Ee(e)?e():e}function Ee(e){return"function"==typeof e&&e.hasOwnProperty(we)&&e.__forward_ref__===Ce}function Se(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Te(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function Ae(e){return De(e,Me)||De(e,Re)}function De(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ve(e){return e&&(e.hasOwnProperty(Fe)||e.hasOwnProperty(je))?e[Fe]:null}var Ie,Me=_e({"\u0275prov":_e}),Fe=_e({"\u0275inj":_e}),Re=_e({ngInjectableDef:_e}),je=_e({ngInjectorDef:_e}),Ne=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function Pe(){return Ie}function Be(e){var t=Ie;return Ie=e,t}function He(e,t,n){var r=Ae(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&Ne.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(ke(e),"]"))}function Le(e){return{toString:e}.toString()}var ze=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),qe=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),Ge="undefined"!=typeof globalThis&&globalThis,Ue="undefined"!=typeof window&&window,Ze="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,We="undefined"!=typeof global&&global,$e=Ge||We||Ue||Ze,Qe={},Ye=[],Ke=_e({"\u0275cmp":_e}),Je=_e({"\u0275dir":_e}),Xe=_e({"\u0275pipe":_e}),et=_e({"\u0275mod":_e}),tt=_e({"\u0275loc":_e}),nt=_e({"\u0275fac":_e}),rt=_e({__NG_ELEMENT_ID__:_e}),it=0;function ot(e){return Le(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===ze.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Ye,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||qe.Emulated,id:"c",styles:e.styles||Ye,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,i=e.features,o=e.pipes;return n.id+=it++,n.inputs=ct(e.inputs,t),n.outputs=ct(e.outputs),i&&i.forEach(function(e){return e(n)}),n.directiveDefs=r?function(){return("function"==typeof r?r():r).map(at)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(st)}:null,n})}function at(e){return ft(e)||function(e){return e[Je]||null}(e)}function st(e){return function(e){return e[Xe]||null}(e)}var ut={};function lt(e){var t={type:e.type,bootstrap:e.bootstrap||Ye,declarations:e.declarations||Ye,imports:e.imports||Ye,exports:e.exports||Ye,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&Le(function(){ut[e.id]=e.type}),t}function ct(e,t){if(null==e)return Qe;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var dt=ot;function ht(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function ft(e){return e[Ke]||null}function pt(e,t){var n=e[et]||null;if(!n&&!0===t)throw new Error("Type ".concat(ke(e)," does not have '\u0275mod' property."));return n}var vt=20,gt=10;function yt(e){return Array.isArray(e)&&"object"==typeof e[1]}function mt(e){return Array.isArray(e)&&!0===e[1]}function _t(e){return 0!=(8&e.flags)}function bt(e){return 2==(2&e.flags)}function kt(e){return 1==(1&e.flags)}function xt(e){return null!==e.template}function wt(e,t){return e.hasOwnProperty(nt)?e[nt]:null}var Ct=function(e){g(n,e);var t=_(n);function n(e,r){var i;return v(this,n),(i=t.call(this,function(e,t){var n=e?"NG0".concat(e,": "):"";return"".concat(n).concat(t)}(e,r))).code=e,i}return n}(b(Error));function Ot(e){return"string"==typeof e?e:null==e?"":String(e)}function Et(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Ot(e)}function St(e,t){var n=t?" in ".concat(t):"";throw new Ct("201","No provider for ".concat(Et(e)," found").concat(n))}var Tt=function(){function e(t,n,r){v(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return p(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function At(){return Dt}function Dt(e){return e.type.prototype.ngOnChanges&&(e.setInput=It),Vt}function Vt(){var e=Mt(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===Qe)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function It(e,t,n,r){var i=Mt(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:Qe,current:null}),o=i.current||(i.current={}),a=i.previous,s=this.declaredInputs[n],u=a[s];o[s]=new Tt(u&&u.currentValue,t,a===Qe),e[r]=t}function Mt(e){return e.__ngSimpleChanges__||null}At.ngInherit=!0;var Ft=void 0;function Rt(){return void 0!==Ft?Ft:"undefined"!=typeof document?document:void 0}function jt(e){return!!e.listen}var Nt={createRenderer:function(e,t){return Rt()}};function Pt(e){for(;Array.isArray(e);)e=e[0];return e}function Bt(e,t){return Pt(t[e])}function Ht(e,t){return Pt(t[e.index])}function Lt(e,t){return e.data[t]}function zt(e,t){return e[t]}function qt(e,t){var n=t[e];return yt(n)?n:n[0]}function Gt(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Ut(e){return 4==(4&e[2])}function Zt(e){return 128==(128&e[2])}function Wt(e,t){return null==t?null:e[t]}function $t(e){e[18]=0}function Qt(e,t){e[5]+=t;for(var n=e,r=e[3];null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}var Yt={lFrame:_n(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Kt(){return Yt.bindingsEnabled}function Jt(){return Yt.lFrame.lView}function Xt(){return Yt.lFrame.tView}function en(e){Yt.lFrame.contextLView=e}function tn(){for(var e=nn();null!==e&&64===e.type;)e=e.parent;return e}function nn(){return Yt.lFrame.currentTNode}function rn(e,t){var n=Yt.lFrame;n.currentTNode=e,n.isParent=t}function on(){return Yt.lFrame.isParent}function an(){Yt.lFrame.isParent=!1}function sn(){return Yt.isInCheckNoChangesMode}function un(e){Yt.isInCheckNoChangesMode=e}function ln(){var e=Yt.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function cn(){return Yt.lFrame.bindingIndex++}function dn(e){var t=Yt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function hn(e){Yt.lFrame.currentDirectiveIndex=e}function fn(){return Yt.lFrame.currentQueryIndex}function pn(e){Yt.lFrame.currentQueryIndex=e}function vn(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function gn(e,t,n){if(n&Ne.SkipSelf){for(var r=t,i=e;!(null!==(r=r.parent)||n&Ne.Host||null===(r=vn(i))||(i=i[15],10&r.type)););if(null===r)return!1;t=r,e=i}var o=Yt.lFrame=mn();return o.currentTNode=t,o.lView=e,!0}function yn(e){var t=mn(),n=e[1];Yt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function mn(){var e=Yt.lFrame,t=null===e?null:e.child;return null===t?_n(e):t}function _n(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function bn(){var e=Yt.lFrame;return Yt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var kn=bn;function xn(){var e=bn();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function wn(e){return(Yt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Yt.lFrame.contextLView))[8]}function Cn(){return Yt.lFrame.selectedIndex}function On(e){Yt.lFrame.selectedIndex=e}function En(){var e=Yt.lFrame;return Lt(e.tView,e.selectedIndex)}function Sn(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[s]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t&&(e[2]+=2048,o.call(a)):o.call(a)}var Mn=-1,Fn=function e(t,n,r){v(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function Rn(e,t,n){for(var r=jt(e),i=0;it){a=o-1;break}}}for(;o>16,r=t;n>0;)r=r[15],n--;return r}var zn=!0;function qn(e){var t=zn;return zn=e,t}var Gn=0;function Un(e,t){var n=Wn(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Zn(r.data,e),Zn(t,null),Zn(r.blueprint,null));var i=$n(e,t),o=e.injectorIndex;if(Bn(i))for(var a=Hn(i),s=Ln(i,t),u=s[1].data,l=0;l<8;l++)t[o+l]=s[a+l]|u[a+l];return t[o+8]=i,o}function Zn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Wn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function $n(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,r=null,i=t;null!==i;){var o=i[1],a=o.type;if(null===(r=2===a?o.declTNode:1===a?i[6]:null))return Mn;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Mn}function Qn(e,t,n){!function(e,t,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(rt)&&(r=n[rt]),null==r&&(r=n[rt]=Gn++);var i=255&r,o=1<3&&void 0!==arguments[3]?arguments[3]:Ne.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=ir(n);if("function"==typeof o){if(!gn(t,e,r))return r&Ne.Host?Yn(i,n,r):Kn(t,n,r,i);try{var a=o();if(null!=a||r&Ne.Optional)return a;St(n)}finally{kn()}}else if("number"==typeof o){var s=null,u=Wn(e,t),l=Mn,c=r&Ne.Host?t[16][6]:null;for((-1===u||r&Ne.SkipSelf)&&((l=-1===u?$n(e,t):t[u+8])!==Mn&&ar(r,!1)?(s=t[1],u=Hn(l),t=Ln(l,t)):u=-1);-1!==u;){var d=t[1];if(or(o,u,d.data)){var h=tr(u,t,n,s,r,c);if(h!==Xn)return h}(l=t[u+8])!==Mn&&ar(r,t[1].data[u+8]===c)&&or(o,u,t)?(s=d,u=Hn(l),t=Ln(l,t)):u=-1}}}return Kn(t,n,r,i)}var Xn={};function er(){return new sr(tn(),Jt())}function tr(e,t,n,r,i,o){var a=t[1],s=a.data[e+8],u=nr(s,a,n,null==r?bt(s)&&zn:r!=a&&0!=(3&s.type),i&Ne.Host&&o===s);return null!==u?rr(t,a,u,s):Xn}function nr(e,t,n,r,i){for(var o=e.providerIndexes,a=t.data,s=1048575&o,u=e.directiveStart,l=o>>20,c=i?s+l:e.directiveEnd,d=r?s:s+l;d=u&&h.type===n)return d}if(i){var f=a[u];if(f&&xt(f)&&f.type===n)return u}return null}function rr(e,t,n,r){var i=e[n],o=t.data;if(i instanceof Fn){var a=i;a.resolving&&function(e,t){throw new Ct("200","Circular dependency in DI detected for ".concat(e).concat(""))}(Et(o[n]));var s=qn(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?Be(a.injectImpl):null;gn(e,r,Ne.Default);try{i=e[n]=a.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.type.prototype,i=r.ngOnInit,o=r.ngDoCheck;if(r.ngOnChanges){var a=Dt(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==u&&Be(u),qn(s),a.resolving=!1,kn()}}return i}function ir(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(rt)?e[rt]:void 0;return"number"==typeof t?t>=0?255&t:er:t}function or(e,t,n){var r=64&e,i=32&e;return!!((128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<=e.length?e.push(n):e.splice(t,0,n)}function gr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function yr(e,t){for(var n=[],r=0;r=0?e[1|r]=n:function(e,t,n,r){var i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r=~r,t,n),r}function _r(e,t){var n=br(e,t);if(n>=0)return e[1|n]}function br(e,t){return function(e,t,n){for(var r=0,i=e.length>>1;i!==r;){var o=r+(i-r>>1),a=e[o<<1];if(t===a)return o<<1;a>t?i=o:r=o+1}return~(i<<1)}(e,t)}var kr={},xr=/\n/gm,wr="__source",Cr=_e({provide:String,useValue:_e}),Or=void 0;function Er(e){var t=Or;return Or=e,t}function Sr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ne.Default;if(void 0===Or)throw new Error("inject() must be called from an injection context");return null===Or?He(e,void 0,t):Or.get(e,t&Ne.Optional?null:void 0,t)}function Tr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ne.Default;return(Pe()||Sr)(Oe(e),t)}function Ar(e){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=ke(t);if(Array.isArray(t))i=t.map(ke).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):ke(s)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(xr,"\n "))}("\n"+e.message,i,n,r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}var Ir,Mr,Fr=Dr(dr("Inject",function(e){return{token:e}}),-1),Rr=Dr(dr("Optional"),8),jr=Dr(dr("SkipSelf"),4);function Nr(e){var t;return(null===(t=function(){if(void 0===Ir&&(Ir=null,$e.trustedTypes))try{Ir=$e.trustedTypes.createPolicy("angular",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return Ir}())||void 0===t?void 0:t.createHTML(e))||e}function Pr(e){var t;return(null===(t=function(){if(void 0===Mr&&(Mr=null,$e.trustedTypes))try{Mr=$e.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return Mr}())||void 0===t?void 0:t.createHTML(e))||e}var Br=function(){function e(t){v(this,e),this.changingThisBreaksApplicationSecurity=t}return p(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),e}(),Hr=function(e){g(n,e);var t=_(n);function n(){return v(this,n),t.apply(this,arguments)}return p(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(Br),Lr=function(e){g(n,e);var t=_(n);function n(){return v(this,n),t.apply(this,arguments)}return p(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(Br),zr=function(e){g(n,e);var t=_(n);function n(){return v(this,n),t.apply(this,arguments)}return p(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(Br),qr=function(e){g(n,e);var t=_(n);function n(){return v(this,n),t.apply(this,arguments)}return p(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(Br),Gr=function(e){g(n,e);var t=_(n);function n(){return v(this,n),t.apply(this,arguments)}return p(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(Br);function Ur(e){return e instanceof Br?e.changingThisBreaksApplicationSecurity:e}function Zr(e,t){var n=Wr(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===t}function Wr(e){return e instanceof Br&&e.getTypeName()||null}var $r=function(){function e(t){v(this,e),this.inertDocumentHelper=t}return p(e,[{key:"getInertBodyElement",value:function(e){e=""+e;try{var t=(new window.DOMParser).parseFromString(Nr(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(n){return null}}}]),e}(),Qr=function(){function e(t){if(v(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var r=this.inertDocument.createElement("body");n.appendChild(r)}}return p(e,[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Nr(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=Nr(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();ai.hasOwnProperty(t)&&!ni.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(pi(e))}},{key:"checkClobberedElement",value: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: ".concat(e.outerHTML));return t}}]),e}(),hi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fi=/([^\#-~ |!])/g;function pi(e){return e.replace(/&/g,"&").replace(hi,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(fi,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function vi(e,t){var n=null;try{ti=ti||function(e){var t=new Qr(e);return function(){try{return!!(new window.DOMParser).parseFromString(Nr(""),"text/html")}catch(e){return!1}}()?new $r(t):t}(e);var r=t?String(t):"";n=ti.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=ti.getInertBodyElement(r)}while(r!==o);return Nr((new di).sanitizeChildren(gi(n)||n))}finally{if(n)for(var a=gi(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function gi(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var yi=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}({});function mi(e){var t,n=(t=Jt())&&t[12];return n?Pr(n.sanitize(yi.HTML,e)||""):Zr(e,"HTML")?Pr(Ur(e)):vi(Rt(),Ot(e))}function _i(e){return e.ngDebugContext}function bi(e){return e.ngOriginalError}function ki(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&(e[r-1][4]=i[4]);var a=gr(e,gt+t);Ki(i[1],n=i,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function Pi(e,t){if(!(256&t[2])){var n=t[11];jt(n)&&n.destroyNode&&Ki(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Bi(e[1],e);for(;t;){var n=null;if(yt(t))n=t[13];else{var r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)yt(t)&&Bi(t[1],t),t=t[3];null===t&&(t=e),yt(t)&&Bi(t[1],t),n=t&&t[4]}t=n}}(t)}}function Bi(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r=0?r[i=l]():r[i=-l].unsubscribe(),o+=2}else{var c=r[i=n[o+1]];n[o].call(c)}if(null!==r){for(var d=i+1;do?"":i[c+1].toLowerCase();var h=8&r?d:null;if(h&&-1!==no(h,l,0)||2&r&&l!==d){if(uo(r))return!1;a=!0}}}}else{if(!a&&!uo(r)&&!uo(u))return!1;if(a&&uo(u))continue;a=!1,r=u|1&r}}return uo(r)||a}function uo(e){return 0==(1&e)}function lo(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+s+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""===i||uo(a)||(t+=fo(o,i),i=""),r=a,o=o||!uo(r);n++}return""!==i&&(t+=fo(o,i)),t}var vo={};function go(e){yo(Xt(),Jt(),Cn()+e,sn())}function yo(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&Tn(t,i,n)}else{var o=e.preOrderHooks;null!==o&&An(t,o,0,n)}On(n)}function mo(e,t){return e<<17|t<<2}function _o(e){return e>>17&32767}function bo(e){return 2|e}function ko(e){return(131068&e)>>2}function xo(e,t){return-131069&e|t<<2}function wo(e){return 1|e}function Co(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;rvt&&yo(e,t,vt,sn()),n(r,i)}finally{On(o)}}function Io(e,t,n){if(_t(t))for(var r=t.directiveEnd,i=t.directiveStart;i2&&void 0!==arguments[2]?arguments[2]:Ht,r=t.localNames;if(null!==r)for(var i=t.index+1,o=0;o0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=u&&s.push(u),s.push(r,i,a)}}function Lo(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function zo(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function qo(e,t,n){if(n){if(t.exportAs)for(var r=0;r0&&Ko(n)}}function Ko(e){for(var t=Di(e);null!==t;t=Vi(t))for(var n=gt;n0&&Ko(r)}var o=e[1].components;if(null!==o)for(var a=0;a0&&Ko(s)}}function Jo(e,t){var n=qt(t,e),r=n[1];!function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:kr;if(t===kr){var n=new Error("NullInjectorError: No provider for ".concat(ke(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),ha=new hr("Set Injector scope."),fa={},pa={},va=[],ga=void 0;function ya(){return void 0===ga&&(ga=new da),ga}function ma(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new _a(e,n,t||ya(),r)}var _a=function(){function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;v(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&pr(n,function(e){return i.processProvider(e,t,n)}),pr([t],function(e){return i.processInjectorType(e,[],a)}),this.records.set(ca,xa(void 0,this));var s=this.records.get(ha);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:ke(t))}return p(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kr,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ne.Default;this.assertNotDestroyed();var r=Er(this);try{if(!(n&Ne.SkipSelf)){var i=this.records.get(e);if(void 0===i){var o=Oa(e)&&Ae(e);i=o&&this.injectableDefInScope(o)?xa(ba(e),fa):null,this.records.set(e,i)}if(null!=i)return this.hydrate(e,i)}var a=n&Ne.Self?ya():this.parent;return a.get(e,t=n&Ne.Optional&&t===kr?null:t)}catch(u){if("NullInjectorError"===u.name){var s=u.ngTempTokenPath=u.ngTempTokenPath||[];if(s.unshift(ke(e)),r)throw u;return Vr(u,e,"R3InjectorError",this.source)}throw u}finally{Er(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(ke(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var r=this;if(!(e=Oe(e)))return!1;var i=Ve(e),o=null==i&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(i=Ve(o)),null==i)return!1;if(null!=i.imports&&!s){var u;n.push(a);try{pr(i.imports,function(e){r.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))})}finally{}if(void 0!==u)for(var l=function(e){var t=u[e],n=t.ngModule,i=t.providers;pr(i,function(e){return r.processProvider(e,n,i||va)})},c=0;c0){var n=yr(t,"?");throw new Error("Can't resolve all parameters for ".concat(ke(e),": (").concat(n.join(", "),")."))}var r=function(e){var t=e&&(e[Me]||e[Re]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(n,'" class.')),t}return null}(e);return null!==r?function(){return r.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function ka(e,t,n){var r,i=void 0;if(Ca(e)){var o=Oe(e);return wt(o)||ba(o)}if(wa(e))i=function(){return Oe(e.useValue)};else if((r=e)&&r.useFactory)i=function(){return e.useFactory.apply(e,l(Ar(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return Tr(Oe(e.useExisting))};else{var a=Oe(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return wt(a)||ba(a);i=function(){return h(a,l(Ar(e.deps)))}}return i}function xa(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function wa(e){return null!==e&&"object"==typeof e&&Cr in e}function Ca(e){return"function"==typeof e}function Oa(e){return"function"==typeof e||"object"==typeof e&&e instanceof hr}var Ea=function(e,t,n){return function(e){var t=ma(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0);return t._resolveInjectorDefTypes(),t}({name:n},t,e,n)},Sa=function(){var e=function(){function e(){v(this,e)}return p(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Ea(e,t,""):Ea(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=kr,e.NULL=new da,e.\u0275prov=Se({token:e,providedIn:"any",factory:function(){return Tr(ca)}}),e.__NG_ELEMENT_ID__=-1,e}();function Ta(e,t){Sn(Gt(e)[1],tn())}function Aa(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,r=[e];t;){var i=void 0;if(xt(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);var o=e;o.inputs=Da(e.inputs),o.declaredInputs=Da(e.declaredInputs),o.outputs=Da(e.outputs);var a=i.hostBindings;a&&Ma(e,a);var s=i.viewQuery,u=i.contentQueries;if(s&&Va(e,s),u&&Ia(e,u),be(e.inputs,i.inputs),be(e.declaredInputs,i.declaredInputs),be(e.outputs,i.outputs),xt(i)&&i.data.animation){var l=e.data;l.animation=(l.animation||[]).concat(i.data.animation)}}var c=i.features;if(c)for(var d=0;d=0;r--){var i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Nn(i.hostAttrs,n=Nn(n,i.hostAttrs))}}(r)}function Da(e){return e===Qe?{}:e===Ye?[]:e}function Va(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function Ia(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,i){t(e,r,i),n(e,r,i)}:t}function Ma(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,r){t(e,r),n(e,r)}:t}var Fa=null;function Ra(){if(!Fa){var e=$e.Symbol;if(e&&e.iterator)Fa=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:Ne.Default,n=Jt();if(null===n)return Tr(e,t);var r=tn();return Jn(r,n,Oe(e),t)}function Za(e,t,n){var r=Jt();return Ha(r,cn(),t)&&function(e,t,n,r,i,o,a,s){var u,l,c=Ht(t,n),d=t.inputs;null!=d&&(u=d[r])?(ua(e,n,u,r,i),bt(t)&&function(e,t){var n=qt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r="class"===(l=r)?"className":"for"===l?"htmlFor":"formaction"===l?"formAction":"innerHtml"===l?"innerHTML":"readonly"===l?"readOnly":"tabindex"===l?"tabIndex":l,i=null!=a?a(i,t.value||"",r):i,jt(o)?o.setProperty(c,r,i):jn(r)||(c.setProperty?c.setProperty(r,i):c[r]=i))}(Xt(),En(),r,e,t,r[11],n),Za}function Wa(e,t,n,r,i){var o=i?"class":"style";ua(e,n,t.inputs[o],o,r)}function $a(e,t,n,r){var i=Jt(),o=Xt(),a=vt+e,s=i[11],u=i[a]=Ri(s,t,Yt.lFrame.currentNamespace),l=o.firstCreatePass?function(e,t,n,r,i,o,a){var s=t.consts,u=Eo(t,e,2,i,Wt(s,o));return Bo(t,n,u,Wt(s,a)),null!==u.attrs&&la(u,u.attrs,!1),null!==u.mergedAttrs&&la(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(a,o,i,0,t,n,r):o.data[a];rn(l,!0);var c=l.mergedAttrs;null!==c&&Rn(s,u,c);var d=l.classes;null!==d&&to(s,u,d);var h=l.styles;null!==h&&eo(s,u,h),64!=(64&l.flags)&&Wi(o,i,u,l),0===Yt.lFrame.elementDepthCount&&wi(u,i),Yt.lFrame.elementDepthCount++,kt(l)&&(Mo(o,i,l),Io(o,l,i)),null!==r&&Fo(i,l)}function Qa(){var e=tn();on()?an():rn(e=e.parent,!1);var t=e;Yt.lFrame.elementDepthCount--;var n=Xt();n.firstCreatePass&&(Sn(n,e),_t(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Wa(n,t,Jt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Wa(n,t,Jt(),t.stylesWithoutHost,!1)}function Ya(e,t,n,r){$a(e,t,n,r),Qa()}function Ka(e,t,n){var r,i;(function(e,t,n){var r=Jt(),i=Xt(),o=e+vt,a=i.firstCreatePass?function(e,t,n,r,i){var o=t.consts,a=Wt(o,r),s=Eo(t,e,8,"ng-container",a);return null!==a&&la(s,a,!0),Bo(t,n,s,Wt(o,i)),null!==t.queries&&t.queries.elementStart(t,s),s}(o,i,r,t,n):i.data[o];rn(a,!0);var s=r[o]=r[11].createComment("");Wi(i,r,s,a),wi(s,r),kt(a)&&(Mo(i,r,a),Io(i,a,r)),null!=n&&Fo(r,a)})(e,t,n),r=tn(),i=Xt(),on()?an():rn(r=r.parent,!1),i.firstCreatePass&&(Sn(i,r),_t(r)&&i.queries.elementEnd(r))}function Ja(){return Jt()}function Xa(e){return!!e&&"function"==typeof e.then}function es(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=Jt(),o=Xt(),a=tn();return ns(o,i,i[11],a,e,t,n,r),es}function ts(e,t,n,r){var i=e.cleanup;if(null!=i)for(var o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}function ns(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,u=kt(r),l=e.firstCreatePass,c=l&&aa(e),d=oa(t),h=!0;if(3&r.type){var f=Ht(r,t),p=s?s(f):Qe,v=p.target||f,g=d.length,y=s?function(e){return s(Pt(e[r.index])).target}:r.index;if(jt(n)){var m=null;if(!s&&u&&(m=ts(e,t,i,r.index)),null!==m){var _=m.__ngLastListenerFn__||m;_.__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,h=!1}else{o=is(r,t,o,!1);var b=n.listen(p.name||v,i,o);d.push(o,b),c&&c.push(i,y,g,g+1)}}else o=is(r,t,o,!0),v.addEventListener(i,o,a),d.push(o),c&&c.push(i,y,g,a)}else o=is(r,t,o,!1);var k,x=r.outputs;if(h&&null!==x&&(k=x[i])){var w=k.length;if(w)for(var C=0;C0&&void 0!==arguments[0]?arguments[0]:1;return wn(e)}function as(e,t){for(var n=null,r=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=Jt(),i=Xt(),o=Eo(i,vt+e,16,null,n||null);null===o.projection&&(o.projection=t),an(),64!=(64&o.flags)&&Ji(i,r,o)}var ls=[];function cs(e,t,n,r,i){for(var o=e[n+1],a=null===t,s=r?_o(o):ko(o),u=!1;0!==s&&(!1===u||a);){var l=e[s+1];ds(e[s],t)&&(u=!0,e[s+1]=r?wo(l):bo(l)),s=r?_o(l):ko(l)}u&&(e[n+1]=r?bo(o):wo(o))}function ds(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&br(e,t)>=0}var hs={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function fs(e){return e.substring(hs.key,hs.keyEnd)}function ps(e){return e.substring(hs.value,hs.valueEnd)}function vs(e,t){var n=hs.textEnd,r=hs.key=gs(e,t,n);return n===r?-1:(r=hs.keyEnd=function(e,t,n){for(var r;t=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=ys(e,r,n),r=hs.value=gs(e,r,n),r=hs.valueEnd=function(e,t,n){for(var r=-1,i=-1,o=-1,a=t,s=a;a32&&(s=a),o=i,i=r,r=-33&u}return s}(e,r,n),ys(e,r,n))}function gs(e,t,n){for(;t=0;n=vs(t,n))Os(e,fs(t),ps(t))}function ks(e,t){return t>=e.expandoStartIndex}function xs(e,t,n,r){var i=e.data;if(null===i[n+1]){var o=i[Cn()],a=ks(e,n);As(o,r)&&null===t&&!a&&(t=!1),t=function(e,t,n,r){var i=function(e){var t=Yt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e),o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=Cs(n=ws(null,e,t,n,r),t.attrs,r),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==i)if(n=ws(i,e,t,n,r),null===o){var s=function(e,t,n){var r=n?t.classBindings:t.styleBindings;if(0!==ko(r))return e[_o(r)]}(e,t,r);void 0!==s&&Array.isArray(s)&&function(e,t,n,r){e[_o(n?t.classBindings:t.styleBindings)]=r}(e,t,r,s=Cs(s=ws(null,e,t,s[1],r),t.attrs,r))}else o=function(e,t,n){for(var r=void 0,i=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(c=!0):l=n,i)if(0!==u){var d=_o(e[s+1]);e[r+1]=mo(d,s),0!==d&&(e[d+1]=xo(e[d+1],r)),e[s+1]=131071&e[s+1]|r<<17}else e[r+1]=mo(s,0),0!==s&&(e[s+1]=xo(e[s+1],r)),s=r;else e[r+1]=mo(u,0),0===s?s=r:e[u+1]=xo(e[u+1],r),u=r;c&&(e[r+1]=bo(e[r+1])),cs(e,l,r,!0),cs(e,l,r,!1),function(e,t,n,r,i){var o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&br(o,t)>=0&&(n[r+1]=wo(n[r+1]))}(t,l,e,r,o),a=mo(s,u),o?t.classBindings=a:t.styleBindings=a}(i,o,t,n,a,r)}}function ws(e,t,n,r,i){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var u=e[i],l=Array.isArray(u),c=l?u[1]:u,d=null===c,h=n[i+1];h===vo&&(h=d?ls:void 0);var f=d?_r(h,r):c===r?h:void 0;if(l&&!Ts(f)&&(f=_r(u,r)),Ts(f)&&(s=f,a))return s;var p=e[i+1];i=a?_o(p):ko(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(s=_r(v,r))}return s}function Ts(e){return void 0!==e}function As(e,t){return 0!=(e.flags&(t?16:32))}function Ds(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Jt(),r=Xt(),i=e+vt,o=r.firstCreatePass?Eo(r,i,1,t,null):r.data[i],a=n[i]=Fi(n[11],t);Wi(r,n,a,o),rn(o,!1)}function Vs(e){return Is("",e,""),Vs}function Is(e,t,n){var r=Jt(),i=function(e,t,n,r){return Ha(e,cn(),n)?t+Ot(n)+r:vo}(r,e,t,n);return i!==vo&&function(e,t,n){var r=Bt(t,e);!function(e,t,n){jt(e)?e.setValue(t,n):t.textContent=n}(e[11],r,n)}(r,Cn(),i),Is}var Ms=void 0,Fs=["en",[["a","p"],["AM","PM"],Ms],[["AM","PM"],Ms,Ms],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ms,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ms,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ms,"{1} 'at' {0}",Ms],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Rs={};function js(e){return e in Rs||(Rs[e]=$e.ng&&$e.ng.common&&$e.ng.common.locales&&$e.ng.common.locales[e]),Rs[e]}var Ns=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({}),Ps="en-US";function Bs(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,r){throw new Error("ASSERTION ERROR: ".concat(e)+" [Expected=> ".concat(null," ").concat("!="," ").concat(t," <=Actual]"))}(n,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function Hs(e,t,n){var r=Xt();if(r.firstCreatePass){var i=xt(e);Ls(n,r.data,r.blueprint,i,!0),Ls(t,r.data,r.blueprint,i,!1)}}function Ls(e,t,n,r,i){if(e=Oe(e),Array.isArray(e))for(var o=0;o>20;if(Ca(e)||!e.multi){var p=new Fn(l,i,Ua),v=Gs(u,t,i?d:d+f,h);-1===v?(Qn(Un(c,s),a,u),zs(a,e,t.length),t.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[v]=p,s[v]=p)}else{var g=Gs(u,t,d+f,h),y=Gs(u,t,d,d+f),m=y>=0&&n[y];if(i&&!m||!i&&!(g>=0&&n[g])){Qn(Un(c,s),a,u);var _=function(e,t,n,r,i){var o=new Fn(e,n,Ua);return o.multi=[],o.index=t,o.componentProviders=0,qs(o,i,r&&!n),o}(i?Zs:Us,n.length,i,r,l);!i&&m&&(n[y].providerFactory=_),zs(a,e,t.length,0),t.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(_),s.push(_)}else zs(a,e,g>-1?g:y,qs(n[i?y:g],l,!i&&r));!i&&r&&m&&n[y].componentProviders++}}}function zs(e,t,n,r){var i=Ca(t);if(i||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[r,o]):a[s+1].push(r,o)}else a.push(n,o)}}}function qs(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Gs(e,t,n,r){for(var i=n;i1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return Hs(n,r?r(e):e,t)}}}var Qs=function e(){v(this,e)},Ys=function e(){v(this,e)},Ks=function(){function e(){v(this,e)}return p(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(ke(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),Js=function(){var e=function e(){v(this,e)};return e.NULL=new Ks,e}();function Xs(){}function eu(e,t){return new nu(Ht(e,t))}var tu=function(){return eu(tn(),Jt())},nu=function(){var e=function e(t){v(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=tu,e}();function ru(e){return e instanceof nu?e.nativeElement:e}var iu=function e(){v(this,e)},ou=function(){var e=function e(){v(this,e)};return e.__NG_ELEMENT_ID__=function(){return au()},e}(),au=function(){var e=Jt(),t=qt(tn().index,e);return function(e){return e[11]}(yt(t)?t:e)},su=function(){var e=function e(){v(this,e)};return e.\u0275prov=Se({token:e,providedIn:"root",factory:function(){return null}}),e}(),uu=new function e(t){v(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}("11.1.0"),lu=function(){function e(){v(this,e)}return p(e,[{key:"supports",value:function(e){return Na(e)}},{key:"create",value:function(e){return new du(e)}}]),e}(),cu=function(e,t){return t},du=function(){function e(t){v(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||cu}return p(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var o=t[n.index];if(null!==o&&r.push(Pt(o)),mt(o))for(var a=gt;a-1&&(Ni(e,n),gr(t,n))}this._attachedToViewContainer=!1}Pi(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){No(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){ea(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){ta(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){un(!0);try{ta(e,t,n)}finally{un(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,Ki(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return wu(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}}]),e}(),Ou=function(e){g(n,e);var t=_(n);function n(e){var r;return v(this,n),(r=t.call(this,e))._view=e,r}return p(n,[{key:"detectChanges",value:function(){na(this._view)}},{key:"checkNoChanges",value:function(){!function(e){un(!0);try{na(e)}finally{un(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(Cu),Eu=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Tu(tn(),Jt(),e)},Su=function(){var e=function e(){v(this,e)};return e.__NG_ELEMENT_ID__=Eu,e.__ChangeDetectorRef__=!0,e}();function Tu(e,t,n){if(!n&&bt(e)){var r=qt(e.index,t);return new Cu(r,r)}return 47&e.type?new Cu(t[16],t):null}var Au=[new gu],Du=new bu([new lu]),Vu=new xu(Au),Iu=function(){return Ru(tn(),Jt())},Mu=function(){var e=function e(){v(this,e)};return e.__NG_ELEMENT_ID__=Iu,e}(),Fu=function(e){g(n,e);var t=_(n);function n(e,r,i){var o;return v(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=r,o.elementRef=i,o}return p(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Oo(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(t)),To(t,n,e),new Cu(n)}}]),n}(Mu);function Ru(e,t){return 4&e.type?new Fu(t,e,eu(e,t)):null}var ju=function e(){v(this,e)},Nu=function e(){v(this,e)},Pu=function(){return qu(tn(),Jt())},Bu=function(){var e=function e(){v(this,e)};return e.__NG_ELEMENT_ID__=Pu,e}(),Hu=function(e){g(n,e);var t=_(n);function n(e,r,i){var o;return v(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=r,o._hostLView=i,o}return p(n,[{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=Lu(this._lContainer);return null!==t&&t[e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){var a=o.get(ju,null);a&&(i=a)}var s=e.create(o,r,void 0,i);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var n=e._lView,r=n[1];if(mt(n[3])){var i=this.indexOf(e);if(-1!==i)this.detach(i);else{var o=n[3],a=new Hu(o,o[6],o[3]);a.detach(a.indexOf(e))}}var s=this._adjustIndex(t),u=this._lContainer;!function(e,t,n,r){var i=gt+r,o=n.length;r>0&&(n[i-1][4]=t),r1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"element",get:function(){return eu(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new sr(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=$n(this._hostTNode,this._hostLView);if(Bn(e)){var t=Ln(e,this._hostLView),n=Hn(e);return new sr(t[1].data[n+8],t)}return new sr(null,this._hostLView)}},{key:"length",get:function(){return this._lContainer.length-gt}}]),n}(Bu);function Lu(e){return e[8]}function zu(e){return e[8]||(e[8]=[])}function qu(e,t){var n,r=t[e.index];if(mt(r))n=r;else{var i;if(8&e.type)i=Pt(r);else{var o=t[11];i=o.createComment("");var a=Ht(e,t);Li(o,Gi(o,a),i,function(e,t){return jt(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=Qo(r,t,i,e),Xo(t,n)}return new Hu(n,e,t)}var Gu={},Uu=function(e){g(n,e);var t=_(n);function n(e){var r;return v(this,n),(r=t.call(this)).ngModule=e,r}return p(n,[{key:"resolveComponentFactory",value:function(e){var t=ft(e);return new $u(t,this.ngModule)}}]),n}(Js);function Zu(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var Wu=new hr("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Ci}}),$u=function(e){g(n,e);var t=_(n);function n(e,r){var i;return v(this,n),(i=t.call(this)).componentDef=e,i.ngModule=r,i.componentType=e.type,i.selector=e.selectors.map(po).join(","),i.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],i.isBoundToModule=!!r,i}return p(n,[{key:"create",value:function(e,t,n,r){var i,o,a=(r=r||this.ngModule)?function(e,t){return{get:function(n,r,i){var o=e.get(n,Gu,i);return o!==Gu||r===Gu?o:t.get(n,r,i)}}}(e,r.injector):e,s=a.get(iu,Nt),u=a.get(su,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=n?function(e,t,n){if(jt(e))return e.selectRootElement(t,n===qe.ShadowDom);var r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(l,n,this.componentDef.encapsulation):Ri(s.createRenderer(null,this.componentDef),c,function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),h=this.componentDef.onPush?576:528,f={components:[],scheduler:Ci,clean:ia,playerHandler:null,flags:0},p=jo(0,null,null,1,0,null,null,null,null,null),v=Oo(null,p,f,h,null,null,s,l,u,a);yn(v);try{var g=function(e,t,n,r,i,o){var a=n[1];n[20]=e;var s=Eo(a,20,2,"#host",null),u=s.mergedAttrs=t.hostAttrs;null!==u&&(la(s,u,!0),null!==e&&(Rn(i,e,u),null!==s.classes&&to(i,e,s.classes),null!==s.styles&&eo(i,e,s.styles)));var l=r.createRenderer(e,t),c=Oo(n,Ro(t),null,t.onPush?64:16,n[20],s,r,l,null,null);return a.firstCreatePass&&(Qn(Un(s,n),a,t.type),zo(a,s),Go(s,n.length,1)),Xo(n,c),n[20]=c}(d,this.componentDef,v,s,l);if(d)if(n)Rn(l,d,["ng-version",uu.full]);else{var y=function(e){for(var t=[],n=[],r=1,i=2;r0&&to(l,d,_.join(" "))}if(o=Lt(p,vt),void 0!==t)for(var b=o.projection=[],k=0;k1&&void 0!==arguments[1]?arguments[1]:Sa.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ne.Default;return e===Sa||e===ju||e===ca?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(ju),Ju=function(e){g(n,e);var t=_(n);function n(e){var r,i,o;return v(this,n),(r=t.call(this)).moduleType=e,null!==pt(e)&&(i=e,o=new Set,function e(t){var n=pt(t,!0),r=n.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(ke(t)," vs ").concat(ke(t.name)))}(r,Yu.get(r),t),Yu.set(r,t));var i,a=u(Ei(n.imports));try{for(a.s();!(i=a.n()).done;){var s=i.value;o.has(s)||(o.add(s),e(s))}}catch(l){a.e(l)}finally{a.f()}}(i)),r}return p(n,[{key:"create",value:function(e){return new Ku(this.moduleType,e)}}]),n}(Nu);function Xu(e,t,n,r){return nl(Jt(),ln(),e,t,n,r)}function el(e,t,n,r,i){return function(e,t,n,r,i,o,a){var s=t+n;return La(e,s,i,o)?Ba(e,s+2,a?r.call(a,i,o):r(i,o)):tl(e,s+2)}(Jt(),ln(),e,t,n,r,i)}function tl(e,t){var n=e[t];return n===vo?void 0:n}function nl(e,t,n,r,i,o){var a=t+n;return Ha(e,a,i)?Ba(e,a+1,o?r.call(o,i):r(i)):tl(e,a+1)}function rl(e,t){var n,r=Xt(),i=e+vt;r.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var r=t[n];if(e===r.name)return r}throw new Ct("302","The pipe '".concat(e,"' could not be found!"))}(t,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory||(n.factory=wt(n.type)),a=Be(Ua);try{var s=qn(!1),u=o();return qn(s),function(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(r,Jt(),i,u),u}finally{Be(a)}}function il(e,t,n){var r=e+vt,i=Jt(),o=zt(i,r);return function(e,t){return ja.isWrapped(t)&&(t=ja.unwrap(t),e[Yt.lFrame.bindingIndex]=vo),t}(i,function(e,t){return e[1].data[t].pure}(i,r)?nl(i,ln(),t,o.transform,n,o):o.transform(n))}var ol=function(e){g(n,e);var t=_(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return v(this,n),(e=t.call(this)).__isAsync=r,e}return p(n,[{key:"emit",value:function(e){i(r(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,o){var a,s=function(e){return null},u=function(){return null};e&&"object"==typeof e?(a=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(s=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(u=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(a=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},t&&(s=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)}),o&&(u=this.__isAsync?function(){setTimeout(function(){return o()})}:function(){o()}));var l=i(r(n.prototype),"subscribe",this).call(this,a,s,u);return e instanceof O&&e.add(l),l}}]),n}(q);function al(){return this._results[Ra()]()}var sl=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];v(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=Ra(),r=e.prototype;r[n]||(r[n]=al)}return p(e,[{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){var n=this;n.dirty=!1;var r=fr(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[];v(this,e),this.queries=t}return p(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;v(this,e),this.predicate=t,this.flags=n,this.read=r},dl=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];v(this,e),this.queries=t}return p(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;v(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return p(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var r=0;r0)r.push(a[s/2]);else{for(var l=o[s+1],c=t[-u],d=gt;d0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==i}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}},{key:"whenStable",value: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()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Tr(Zl))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),tc=function(){var e=function(){function e(){v(this,e),this._applications=new Map,nc.addToWindow(this)}return p(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return nc.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),nc=new(function(){function e(){v(this,e)}return p(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),rc=!0,ic=!1;function oc(){return ic=!0,rc}var ac=function(e,t,n){var r=new Ju(n);return Promise.resolve(r)},sc=new hr("AllowMultipleToken");function uc(e){if(Jl&&!Jl.destroyed&&!Jl.injector.get(sc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Jl=e.get(hc);var t=e.get(Dl,null);return t&&t.forEach(function(e){return e()}),Jl}function lc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(t),i=new hr(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=dc();if(!o||o.injector.get(sc,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var a=n.concat(t).concat({provide:i,useValue:!0},{provide:ha,useValue:"platform"});uc(Sa.create({providers:a,name:r}))}return cc(i)}}function cc(e){var t=dc();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}function dc(){return Jl&&!Jl.destroyed?Jl:null}var hc=function(){var e=function(){function e(t){v(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return p(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r,i=this,o=(r={ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1},"noop"===(n=t?t.ngZone:void 0)?new Xl:("zone.js"===n?void 0:n)||new Zl({enableLongStackTrace:oc(),shouldCoalesceEventChangeDetection:!!(null==r?void 0:r.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==r?void 0:r.ngZoneRunCoalescing)})),a=[{provide:Zl,useValue:o}];return o.run(function(){var t=Sa.create({providers:a,parent:i.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(xi,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var e=o.onError.subscribe({next:function(e){r.handleError(e)}});n.onDestroy(function(){vc(i._modules,n),e.unsubscribe()})}),function(e,t,r){try{var o=((a=n.injector.get(El)).runInitializers(),a.donePromise.then(function(){return Bs(n.injector.get(Fl,Ps)||Ps),i._moduleDoBootstrap(n),n}));return Xa(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var a}(r,o)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=fc({},n);return ac(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,r)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(pc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(ke(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)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value: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}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Tr(Sa))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}();function fc(e,t){return Array.isArray(t)?t.reduce(fc,e):Object.assign(Object.assign({},e),t)}var pc=function(){var e=function(){function e(t,n,r,i,o,a){var s=this;v(this,e),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var u=new P(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),l=new P(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){Zl.assertNotInAngularZone(),Ul(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Zl.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=ce(u,l.pipe(me()))}return p(e,[{key:"bootstrap",value: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 Ys?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(ju),o=n.create(Sa.NULL,[],t||n.selector,i),a=o.location.nativeElement,s=o.injector.get(ec,null),u=s&&o.injector.get(tc);return s&&u&&u.registerApplication(a,s),o.onDestroy(function(){r.detachView(o.hostView),vc(r.components,o),u&&u.unregisterApplication(a)}),this._loadComponent(o),oc()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=u(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(r){n.e(r)}finally{n.f()}}catch(i){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(i)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;vc(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Il,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Tr(Zl),Tr(Ml),Tr(Sa),Tr(xi),Tr(Js),Tr(El))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}();function vc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var gc=lc(null,"core",[{provide:Vl,useValue:"unknown"},{provide:hc,deps:[Sa]},{provide:tc,deps:[]},{provide:Ml,deps:[]}]),yc=[{provide:pc,useClass:pc,deps:[Zl,Ml,Sa,xi,Js,El]},{provide:Wu,deps:[Zl],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:El,useClass:El,deps:[[new Rr,Ol]]},{provide:ql,useClass:ql,deps:[]},Tl,{provide:bu,useFactory:function(){return Du},deps:[]},{provide:xu,useFactory:function(){return Vu},deps:[]},{provide:Fl,useFactory:function(e){return Bs(e=e||"undefined"!=typeof $localize&&$localize.locale||Ps),e},deps:[[new Fr(Fl),new Rr,new jr]]},{provide:Rl,useValue:"USD"}],mc=function(){var e=function e(t){v(this,e)};return e.\u0275mod=lt({type:e}),e.\u0275inj=Te({factory:function(t){return new(t||e)(Tr(pc))},providers:yc}),e}(),_c=null;function bc(){return _c}var kc=function e(){v(this,e)},xc=new hr("DocumentToken"),wc=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),Cc=function e(){v(this,e)},Oc=function(){var e=function(e){g(n,e);var t=_(n);function n(e){var r;return v(this,n),(r=t.call(this)).locale=e,r}return p(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=js(t);if(n)return n;var r=t.split("-")[0];if(n=js(r))return n;if("en"===r)return Fs;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[Ns.PluralCase]}(t||this.locale)(e)){case wc.Zero:return"zero";case wc.One:return"one";case wc.Two:return"two";case wc.Few:return"few";case wc.Many:return"many";default:return"other"}}}]),n}(Cc);return e.\u0275fac=function(t){return new(t||e)(Tr(Fl))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),Ec=function(){var e=function(){function e(t,n,r,i){v(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return p(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(ke(e.item)));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}},{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Na(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ua(bu),Ua(xu),Ua(nu),Ua(ou))},e.\u0275dir=dt({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),Sc=function(){function e(t,n,r,i){v(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}return p(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),Tc=function(){var e=function(){function e(t,n,r){v(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return p(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new Sc(null,t._ngForOf,-1,-1),null===i?void 0:i),a=new Ac(e,o);n.push(a)}else if(null==i)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){var s=t._viewContainer.get(r);t._viewContainer.move(s,i);var u=new Ac(e,s);n.push(u)}});for(var r=0;r1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},$e.getAllAngularTestabilities=function(){return e.getAllTestabilities()},$e.getAllAngularRootElements=function(){return e.getAllRootElements()},$e.frameworkStabilizers||($e.frameworkStabilizers=[]),$e.frameworkStabilizers.push(function(e){var t=$e.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(i)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?bc().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,nc=t}}]),e}(),zc=new hr("EventManagerPlugins"),qc=function(){var e=function(){function e(t,n){var r=this;v(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=r}),this._plugins=t.slice().reverse()}return p(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r-1&&(t.splice(n,1),o+=e+".")}),o+=i,0!=t.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&sd.hasOwnProperty(t)&&(t=sd[t]))}return ad[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),od.forEach(function(r){r!=n&&(0,ud[r])(e)&&(t+=r+".")}),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded(function(){return t(i)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(Gc);return e.\u0275fac=function(t){return new(t||e)(Tr(xc))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),cd=function(){var e=function e(){v(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Se({factory:function(){return Tr(dd)},token:e,providedIn:"root"}),e}(),dd=function(){var e=function(e){g(n,e);var t=_(n);function n(e){var r;return v(this,n),(r=t.call(this))._doc=e,r}return p(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case yi.NONE:return t;case yi.HTML:return Zr(t,"HTML")?Ur(t):vi(this._doc,String(t)).toString();case yi.STYLE:return Zr(t,"Style")?Ur(t):t;case yi.SCRIPT:if(Zr(t,"Script"))return Ur(t);throw new Error("unsafe value used in a script context");case yi.URL:return Wr(t),Zr(t,"URL")?Ur(t):Jr(String(t));case yi.RESOURCE_URL:if(Zr(t,"ResourceURL"))return Ur(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return new Hr(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new Lr(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new zr(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new qr(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new Gr(e)}}]),n}(cd);return e.\u0275fac=function(t){return new(t||e)(Tr(xc))},e.\u0275prov=Se({factory:function(){return e=Tr(ca),new dd(e.get(xc));var e},token:e,providedIn:"root"}),e}(),hd=lc(gc,"browser",[{provide:Vl,useValue:"browser"},{provide:Dl,useValue:function(){Nc.makeCurrent(),Lc.init()},multi:!0},{provide:xc,useFactory:function(){return function(e){Ft=e}(document),document},deps:[]}]),fd=[[],{provide:ha,useValue:"root"},{provide:xi,useFactory:function(){return new xi},deps:[]},{provide:zc,useClass:id,multi:!0,deps:[xc,Zl,Vl]},{provide:zc,useClass:ld,multi:!0,deps:[xc]},[],{provide:ed,useClass:ed,deps:[qc,Zc,Sl]},{provide:iu,useExisting:ed},{provide:Uc,useExisting:Zc},{provide:Zc,useClass:Zc,deps:[xc]},{provide:ec,useClass:ec,deps:[Zl]},{provide:qc,useClass:qc,deps:[zc,Zl]},[]],pd=function(){var e=function(){function e(t){if(v(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return p(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:Sl,useValue:t.appId},{provide:Bc,useExisting:Sl},Hc]}}}]),e}();return e.\u0275mod=lt({type:e}),e.\u0275inj=Te({factory:function(t){return new(t||e)(Tr(e,12))},providers:fd,imports:[jc,mc]}),e}();function vd(e,t){if(1&e){var n=Ja();$a(0,"span",7),es("click",function(e){en(n);var t=os().$implicit,r=os();return e.preventDefault(),r.removeTab(t)}),Ds(1," \u274c"),Qa()}}"undefined"!=typeof window&&window;var gd=function(e){return["nav-item",e]};function yd(e,t){if(1&e){var n=Ja();$a(0,"li",3),es("keydown",function(e){en(n);var r=t.index;return os().keyNavActions(e,r)}),$a(1,"a",4),es("click",function(){return t.$implicit.active=!0}),$a(2,"span",5),Ds(3),Qa(),qa(4,vd,2,0,"span",6),Qa(),Qa()}if(2&e){var r=t.$implicit;_s("active",r.active)("disabled",r.disabled),Za("ngClass",Xu(15,gd,r.customClass||"")),go(1),_s("active",r.active)("disabled",r.disabled),za("aria-controls",r.id?r.id:"")("aria-selected",!!r.active)("id",r.id?r.id+"-link":""),go(1),Za("ngTransclude",r.headingRef),go(1),Vs(r.heading),go(1),Za("ngIf",r.removable)}}var md=["*"],_d=function(){var e=function(){function e(t){v(this,e),this.viewRef=t}return p(e,[{key:"ngTransclude",set:function(e){this._ngTransclude=e,e&&this.viewRef.createEmbeddedView(e)},get:function(){return this._ngTransclude}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ua(Bu))},e.\u0275dir=dt({type:e,selectors:[["","ngTransclude",""]],inputs:{ngTransclude:"ngTransclude"}}),e}(),bd=function(){var e=function e(){v(this,e),this.type="tabs",this.isKeysAllowed=!0,this.ariaLabel="Tabs"};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Se({factory:function(){return new e},token:e,providedIn:"root"}),e}(),kd=function(){var e=function(){function e(t,n,r){v(this,e),this.renderer=n,this.elementRef=r,this.clazz=!0,this.tabs=[],this.classMap={},Object.assign(this,t)}return p(e,[{key:"ngOnDestroy",value:function(){this.isDestroyed=!0}},{key:"addTab",value:function(e){this.tabs.push(e),e.active=1===this.tabs.length&&void 0===e.active}},{key:"removeTab",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{reselect:!0,emit:!0},n=this.tabs.indexOf(e);if(-1!==n&&!this.isDestroyed){if(t.reselect&&e.active&&this.hasAvailableTabs(n)){var r=this.getClosestTabIndex(n);this.tabs[r].active=!0}t.emit&&e.removed.emit(e),this.tabs.splice(n,1),e.elementRef.nativeElement.parentNode&&this.renderer.removeChild(e.elementRef.nativeElement.parentNode,e.elementRef.nativeElement)}}},{key:"keyNavActions",value:function(e,t){if(this.isKeysAllowed){var n=Array.from(this.elementRef.nativeElement.querySelectorAll(".nav-link"));if(13===e.keyCode||"Enter"===e.key||32===e.keyCode||"Space"===e.key)return e.preventDefault(),void n[t%n.length].click();if(39!==e.keyCode&&"RightArrow"!==e.key)if(37!==e.keyCode&&"LeftArrow"!==e.key)if(36!==e.keyCode&&"Home"!==e.key)if(35!==e.keyCode&&"End"!==e.key){if((46===e.keyCode||"Delete"===e.key)&&this.tabs[t].removable){if(this.removeTab(this.tabs[t]),n[t+1])return void n[(t+1)%n.length].focus();n[n.length-1]&&n[0].focus()}}else{var r;e.preventDefault();var i=1,o=t;do{o-i<0?(r=n[o=n.length-1],i=0):r=n[o-i],i++}while(r.classList.contains("disabled"));r.focus()}else{var a;e.preventDefault();var s=0;do{a=n[s%n.length],s++}while(a.classList.contains("disabled"));a.focus()}else{var u,l=1,c=t;do{c-l<0?(u=n[c=n.length-1],l=0):u=n[c-l],l++}while(u.classList.contains("disabled"));u.focus()}else{var d,h=1;do{d=n[(t+h)%n.length],h++}while(d.classList.contains("disabled"));d.focus()}}}},{key:"getClosestTabIndex",value:function(e){var t=this.tabs.length;if(!t)return-1;for(var n=1;n<=t;n+=1){var r=e-n,i=e+n;if(this.tabs[r]&&!this.tabs[r].disabled)return r;if(this.tabs[i]&&!this.tabs[i].disabled)return i}return-1}},{key:"hasAvailableTabs",value:function(e){var t=this.tabs.length;if(!t)return!1;for(var n=0;ne?{max:{max:e,actual:t.value}}:null}}},{key:"required",value:function(e){return Md(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return Md(e.value)||Nd.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){return Md(t.value)||!Fd(t.value)?null:t.value.lengthe?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}},{key:"pattern",value: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(Md(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(Bd);return 0==t.length?null:function(e){return Ld(zd(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(Bd);return 0==t.length?null:function(e){return function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}},{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=dt({type:e}),e}(),Yd=function(){var e=function(e){g(n,e);var t=_(n);function n(){return v(this,n),t.apply(this,arguments)}return p(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(Qd);return e.\u0275fac=function(t){return Kd(t||e)},e.\u0275dir=dt({type:e,features:[Aa]}),e}(),Kd=lr(Yd),Jd=function(e){g(n,e);var t=_(n);function n(){var e;return v(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(Qd),Xd=function(){function e(t){v(this,e),this._cd=t}return p(e,[{key:"ngClassUntouched",get:function(){var e,t,n;return null!==(n=null===(t=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===t?void 0:t.untouched)&&void 0!==n&&n}},{key:"ngClassTouched",get:function(){var e,t,n;return null!==(n=null===(t=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===t?void 0:t.touched)&&void 0!==n&&n}},{key:"ngClassPristine",get:function(){var e,t,n;return null!==(n=null===(t=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===t?void 0:t.pristine)&&void 0!==n&&n}},{key:"ngClassDirty",get:function(){var e,t,n;return null!==(n=null===(t=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===t?void 0:t.dirty)&&void 0!==n&&n}},{key:"ngClassValid",get:function(){var e,t,n;return null!==(n=null===(t=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===t?void 0:t.valid)&&void 0!==n&&n}},{key:"ngClassInvalid",get:function(){var e,t,n;return null!==(n=null===(t=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===t?void 0:t.invalid)&&void 0!==n&&n}},{key:"ngClassPending",get:function(){var e,t,n;return null!==(n=null===(t=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===t?void 0:t.pending)&&void 0!==n&&n}}]),e}(),eh=function(){var e=function(e){g(n,e);var t=_(n);function n(e){return v(this,n),t.call(this,e)}return n}(Xd);return e.\u0275fac=function(t){return new(t||e)(Ua(Jd,2))},e.\u0275dir=dt({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&_s("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[Aa]}),e}(),th={provide:Sd,useExisting:Ce(function(){return nh}),multi:!0},nh=function(){var e=function(){function e(t,n){v(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return p(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ua(ou),Ua(nu))},e.\u0275dir=dt({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&es("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[$s([th])]}),e}(),rh={provide:Sd,useExisting:Ce(function(){return oh}),multi:!0},ih=function(){var e=function(){function e(){v(this,e),this._accessors=[]}return p(e,[{key:"add",value:function(e,t){this._accessors.push([e,t])}},{key:"remove",value:function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),oh=function(){var e=function(){function e(t,n,r,i){v(this,e),this._renderer=t,this._elementRef=n,this._registry=r,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return p(e,[{key:"ngOnInit",value:function(){this._control=this._injector.get(Jd),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ua(ou),Ua(nu),Ua(ih),Ua(Sa))},e.\u0275dir=dt({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&es("change",function(){return t.onChange()})("blur",function(){return t.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[$s([rh])]}),e}(),ah={provide:Sd,useExisting:Ce(function(){return sh}),multi:!0},sh=function(){var e=function(){function e(t,n){v(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return p(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ua(ou),Ua(nu))},e.\u0275dir=dt({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&es("change",function(e){return t.onChange(e.target.value)})("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[$s([ah])]}),e}(),uh={provide:Sd,useExisting:Ce(function(){return lh}),multi:!0},lh=function(){var e=function(){function e(t,n){v(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Object.is}return p(e,[{key:"writeValue",value: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?"".concat(t):(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var r=[];if(void 0!==n.selectedOptions)for(var i=n.selectedOptions,o=0;o0){var i=r.filter(function(e){return e!==t.validator});i.length!==r.length&&(!0,e.setValidators(i))}}if(null!==t.asyncValidator){var o=$d(e);if(Array.isArray(o)&&o.length>0){var a=o.filter(function(e){return e!==t.asyncValidator});a.length!==o.length&&(!0,e.setAsyncValidators(a))}}}var s=function(){};ph(t._rawValidators,s),ph(t._rawAsyncValidators,s)}(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function ph(e,t){e.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function vh(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function gh(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}var yh=[Ad,sh,nh,lh,dh,oh];function mh(e,t){if(!t)return null;Array.isArray(t);var n=void 0,r=void 0,i=void 0;return t.forEach(function(e){var t;e.constructor===Id?n=e:(t=e,yh.some(function(e){return t.constructor===e})?r=e:i=e)}),i||r||n||null}function _h(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var bh="VALID",kh="INVALID",xh="PENDING",wh="DISABLED";function Ch(e){return(Th(e)?e.validators:e)||null}function Oh(e){return Array.isArray(e)?Gd(e):e||null}function Eh(e,t){return(Th(t)?t.asyncValidators:e)||null}function Sh(e){return Array.isArray(e)?Ud(e):e||null}function Th(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Ah=function(){function e(t,n){v(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=Oh(this._rawValidators),this._composedAsyncValidatorFn=Sh(this._rawAsyncValidators)}return p(e,[{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=Oh(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Sh(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=xh,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=wh,this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=bh,this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==bh&&this.status!==xh||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?wh:bh}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status=xh,this._hasOwnPendingAsyncValidator=!0;var n=Hd(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var r=e;return t.forEach(function(e){r=r instanceof Vh?r.controls.hasOwnProperty(e)?r.controls[e]:null:r instanceof Ih&&r.at(e)||null}),r}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new ol,this.statusChanges=new ol}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?wh:this.errors?kh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(xh)?xh:this._anyControlsHaveStatus(kh)?kh:bh}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){Th(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}},{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===bh}},{key:"invalid",get:function(){return this.status===kh}},{key:"pending",get:function(){return this.status==xh}},{key:"disabled",get:function(){return this.status===wh}},{key:"enabled",get:function(){return this.status!==wh}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}}]),e}(),Dh=function(e){g(n,e);var t=_(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return v(this,n),(e=t.call(this,Ch(i),Eh(o,i)))._onChange=[],e._applyFormState(r),e._setUpdateStrategy(i),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!o}),e}return p(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){_h(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){_h(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(Ah),Vh=function(e){g(n,e);var t=_(n);function n(e,r,i){var o;return v(this,n),(o=t.call(this,Ch(r),Eh(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!i}),o}return p(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(r){t._throwIfControlMissing(r),t.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(e).forEach(function(r){t.controls[r]&&t.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof Dh?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var r=t.controls[n];r&&e(r,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(Ah),Ih=function(e){g(n,e);var t=_(n);function n(e,r,i){var o;return v(this,n),(o=t.call(this,Ch(r),Eh(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!i}),o}return p(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value: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()}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,r){t._throwIfControlMissing(r),t.at(r).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach(function(e,r){t.at(r)&&t.at(r).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof Dh?e.value:e.getRawValue()})}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value: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 ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=u(this.controls);try{for(t.s();!(e=t.n()).done;)if(e.value.enabled)return!1}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}(Ah),Mh={provide:Jd,useExisting:Ce(function(){return Rh})},Fh=function(){return Promise.resolve(null)}(),Rh=function(){var e=function(e){g(n,e);var t=_(n);function n(e,r,i,a){var s;return v(this,n),(s=t.call(this)).control=new Dh,s._registered=!1,s.update=new ol,s._parent=e,s._setValidators(r),s._setAsyncValidators(i),s.valueAccessor=mh(o(s),a),s}return p(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),gh(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){hh(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;Fh.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;Fh.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})}},{key:"path",get:function(){return this._parent?(e=this.name,[].concat(l(this._parent.path),[e])):[this.name];var e}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}}]),n}(Jd);return e.\u0275fac=function(t){return new(t||e)(Ua(Yd,9),Ua(Rd,10),Ua(jd,10),Ua(Sd,10))},e.\u0275dir=dt({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[$s([Mh]),Aa,At]}),e}(),jh=new hr("NgModelWithFormControlWarning"),Nh={provide:Jd,useExisting:Ce(function(){return Ph})},Ph=function(){var e=function(e){g(n,e);var t=_(n);function n(e,r,i,a){var s;return v(this,n),(s=t.call(this))._ngModelWarningConfig=a,s.update=new ol,s._ngModelWarningSent=!1,s._setValidators(e),s._setAsyncValidators(r),s.valueAccessor=mh(o(s),i),s}return p(n,[{key:"ngOnChanges",value:function(e){if(this._isControlChanged(e)){var t=e.form.previousValue;t&&fh(t,this),hh(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}gh(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&fh(this.form,this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}},{key:"isDisabled",set:function(e){}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}}]),n}(Jd);return e.\u0275fac=function(t){return new(t||e)(Ua(Rd,10),Ua(jd,10),Ua(Sd,10),Ua(jh,8))},e.\u0275dir=dt({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[$s([Nh]),Aa,At]}),e._ngModelWarningSentOnce=!1,e}(),Bh=function(){var e=function e(){v(this,e)};return e.\u0275mod=lt({type:e}),e.\u0275inj=Te({factory:function(t){return new(t||e)}}),e}();function Hh(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}var Lh=function(){var e=function(){function e(){v(this,e)}return p(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(e),r=null,i=null,o=void 0;return null!=t&&(Hh(t)?(r=null!=t.validators?t.validators:null,i=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(r=null!=t.validator?t.validator:null,i=null!=t.asyncValidator?t.asyncValidator:null)),new Vh(n,{asyncValidators:i,updateOn:o,validators:r})}},{key:"control",value:function(e,t,n){return new Dh(e,t,n)}},{key:"array",value:function(e,t,n){var r=this,i=e.map(function(e){return r._createControl(e)});return new Ih(i,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]=t._createControl(e[r])}),n}},{key:"_createControl",value:function(e){return e instanceof Dh||e instanceof Vh||e instanceof Ih?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),zh=function(){var e=function e(){v(this,e)};return e.\u0275mod=lt({type:e}),e.\u0275inj=Te({factory:function(t){return new(t||e)},providers:[ih],imports:[Bh]}),e}(),qh=function(){var e=function(){function e(){v(this,e)}return p(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:jh,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}();return e.\u0275mod=lt({type:e}),e.\u0275inj=Te({factory:function(t){return new(t||e)},providers:[Lh,ih],imports:[Bh]}),e}();function Gh(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var Uh=function(e){g(n,e);var t=_(n);function n(e){var r;return v(this,n),(r=t.call(this))._value=e,r}return p(n,[{key:"_subscribe",value:function(e){var t=i(r(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new H;return this._value}},{key:"next",value:function(e){i(r(n.prototype),"next",this).call(this,this._value=e)}},{key:"value",get:function(){return this.getValue()}}]),n}(q),Zh=function(e){g(n,e);var t=_(n);function n(){return v(this,n),t.apply(this,arguments)}return p(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(I),Wh=function(e){g(n,e);var t=_(n);function n(e,r,i){var o;return v(this,n),(o=t.call(this)).parent=e,o.outerValue=r,o.outerIndex=i,o.index=0,o}return p(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(I);function $h(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Wh(e,n,r);if(!i.closed)return t instanceof P?t.subscribe(i):ee(t)(i)}var Qh={};function Yh(){for(var e=arguments.length,t=new Array(e),n=0;n=2&&(n=!0),function(r){return r.lift(new of(e,t,n))}}var of=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];v(this,e),this.accumulator=t,this.seed=n,this.hasSeed=r}return p(e,[{key:"call",value:function(e,t){return t.subscribe(new af(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),af=function(e){g(n,e);var t=_(n);function n(e,r,i,o){var a;return v(this,n),(a=t.call(this,e)).accumulator=r,a._seed=i,a.hasSeed=o,a.index=0,a}return p(n,[{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}},{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}}]),n}(I),sf=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}();function uf(e){return function(t){return 0===e?ef:t.lift(new lf(e))}}var lf=function(){function e(t){if(v(this,e),this.total=t,this.total<0)throw new sf}return p(e,[{key:"call",value:function(e,t){return t.subscribe(new cf(e,this.total))}}]),e}(),cf=function(e){g(n,e);var t=_(n);function n(e,r){var i;return v(this,n),(i=t.call(this,e)).total=r,i.ring=new Array,i.count=0,i}return p(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,r=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new hf(e))}}var hf=function(){function e(t){v(this,e),this.defaultValue=t}return p(e,[{key:"call",value:function(e,t){return t.subscribe(new ff(e,this.defaultValue))}}]),e}(),ff=function(e){g(n,e);var t=_(n);function n(e,r){var i;return v(this,n),(i=t.call(this,e)).defaultValue=r,i.isEmpty=!0,i}return p(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(I);function pf(e,t,n){return 0===n?[t]:(e.push(t),e)}function vf(){return function(e,t){return arguments.length>=2?function(n){return j(rf(e,t),uf(1),df(t))(n)}:function(t){return j(rf(function(t,n,r){return e(t,n,r+1)}),uf(1))(t)}}(pf,[])}var gf=function(e){g(n,e);var t=_(n);function n(e,r){var i;return v(this,n),(i=t.call(this,e,r)).scheduler=e,i.work=r,i.pending=!1,i}return p(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){g(n,e);var t=_(n);function n(e,r){return v(this,n),t.call(this)}return p(n,[{key:"schedule",value:function(e){return this}}]),n}(O)),yf=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;v(this,e),this.SchedulerAction=t,this.now=n}return p(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),mf=new(function(e){g(n,e);var t=_(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yf.now;return v(this,n),(r=t.call(this,e,function(){return n.delegate&&n.delegate!==o(r)?n.delegate.now():i()})).actions=[],r.active=!1,r.scheduled=void 0,r}return p(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,o):i(r(n.prototype),"schedule",this).call(this,e,t,o)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(yf))(gf),_f=function(){function e(t,n){v(this,e),this.dueTime=t,this.scheduler=n}return p(e,[{key:"call",value:function(e,t){return t.subscribe(new bf(e,this.dueTime,this.scheduler))}}]),e}(),bf=function(e){g(n,e);var t=_(n);function n(e,r,i){var o;return v(this,n),(o=t.call(this,e)).dueTime=r,o.scheduler=i,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return p(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(kf,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(I);function kf(e){e.debouncedNext()}function xf(e,t){return function(n){return n.lift(new wf(e,t))}}var wf=function(){function e(t,n){v(this,e),this.predicate=t,this.thisArg=n}return p(e,[{key:"call",value:function(e,t){return t.subscribe(new Cf(e,this.predicate,this.thisArg))}}]),e}(),Cf=function(e){g(n,e);var t=_(n);function n(e,r,i){var o;return v(this,n),(o=t.call(this,e)).predicate=r,o.thisArg=i,o.count=0,o}return p(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(I);function Of(){}var Ef=function(){function e(t,n,r){v(this,e),this.nextOrObserver=t,this.error=n,this.complete=r}return p(e,[{key:"call",value:function(e,t){return t.subscribe(new Sf(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),Sf=function(e){g(n,e);var t=_(n);function n(e,r,i,a){var s;return v(this,n),(s=t.call(this,e))._tapNext=Of,s._tapError=Of,s._tapComplete=Of,s._tapError=i||Of,s._tapComplete=a||Of,w(r)?(s._context=o(s),s._tapNext=r):r&&(s._context=r,s._tapNext=r.next||Of,s._tapError=r.error||Of,s._tapComplete=r.complete||Of),s}return p(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(I),Tf=n("XaGS"),Af=n.n(Tf),Df=n("oxjq"),Vf=Df,If=function(){function e(e,t,n,r,i){void 0===i&&(i=null),this.value=e,this.text=t,this.disabled=n,this.data=r,this._parent=i,this.type="option",this.cacheRenderedText=null}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),e.prototype.renderText=function(e,t){return this.cacheHighlightText===t&&null!==this.cacheRenderedText||(this.cacheHighlightText=t,this.cacheRenderedText=e.bypassSecurityTrustHtml(this.cacheHighlightText?(this.text+"").replace(new RegExp(Vf(this.cacheHighlightText),"gi"),"$&"):this.text)),this.cacheRenderedText},e}(),Mf=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}(),Ff=function(){function e(e){this.template=e}return e.\u0275fac=function(t){return new(t||e)(Ua(Mu))},e.\u0275dir=dt({type:e,selectors:[["","ngx-select-option",""]]}),e}(),Rf=function(){function e(e){this.template=e}return e.\u0275fac=function(t){return new(t||e)(Ua(Mu))},e.\u0275dir=dt({type:e,selectors:[["","ngx-select-option-selected",""]]}),e}(),jf=function(){function e(e){this.template=e}return e.\u0275fac=function(t){return new(t||e)(Ua(Mu))},e.\u0275dir=dt({type:e,selectors:[["","ngx-select-option-not-found",""]]}),e}(),Nf=["main"],Pf=["input"],Bf=["choiceMenu"];function Hf(e,t){if(1&e&&($a(0,"span",17),Ya(1,"span",18),Qa()),2&e){var n=os(2);go(1),Za("innerHtml",n.placeholder,mi)}}var Lf=function(e){return{"ngx-select__allow-clear":e}},zf=function(e,t){return{$implicit:e,index:0,text:t}};function qf(e,t){if(1&e&&($a(0,"span",19),Ka(1,20),Qa()),2&e){var n=os(2),r=Ga(8);Za("ngClass",Xu(3,Lf,n.allowClear)),go(1),Za("ngTemplateOutlet",n.templateSelectedOption||r)("ngTemplateOutletContext",el(5,zf,n.optionsSelected[0],n.sanitize(n.optionsSelected[0].text)))}}function Gf(e,t){if(1&e){var n=Ja();$a(0,"a",21),es("click",function(e){en(n);var t=os(2);return t.optionRemove(t.optionsSelected[0],e)}),Ya(1,"i",22),Qa()}2&e&&Za("ngClass",os(2).setBtnSize())}function Uf(e,t){if(1&e){var n=Ja();$a(0,"div",9),$a(1,"div",10),es("click",function(){return en(n),os().optionsOpen()}),qa(2,Hf,2,1,"span",11),qa(3,qf,2,8,"span",12),$a(4,"span",13),qa(5,Gf,2,1,"a",14),Ya(6,"i",15),Ya(7,"i",16),Qa(),Qa(),Qa()}if(2&e){var r=os();go(1),Za("ngClass",r.setFormControlSize(r.setBtnSize())),go(1),Za("ngIf",!r.optionsSelected.length),go(1),Za("ngIf",r.optionsSelected.length),go(2),Za("ngIf",r.canClearNotMultiple())}}var Zf=function(e,t,n){return{$implicit:e,index:t,text:n}};function Wf(e,t){if(1&e){var n=Ja();$a(0,"span"),$a(1,"span",25),es("click",function(e){return e.stopPropagation()}),Ka(2,20),$a(3,"a",26),es("click",function(e){en(n);var r=t.$implicit;return os(2).optionRemove(r,e)}),Ya(4,"i",22),Qa(),Qa(),Qa()}if(2&e){var r=t.$implicit,i=t.index,o=os(2),a=Ga(8);go(1),Za("ngClass",o.setBtnSize()),go(1),Za("ngTemplateOutlet",o.templateSelectedOption||a)("ngTemplateOutletContext",(s=4,u=Zf,l=r,c=i,d=o.sanitize(r.text),function(e,t,n,r,i,o,a,s){var u=t+n;return function(e,t,n,r,i){var o=La(e,t,n,r);return Ha(e,t+2,i)||o}(e,u,i,o,a)?Ba(e,u+3,s?r.call(s,i,o,a):r(i,o,a)):tl(e,u+3)}(Jt(),ln(),s,u,l,c,d,h))),go(1),Za("ngClass",o.setBtnSize())}var s,u,l,c,d,h}function $f(e,t){if(1&e){var n=Ja();$a(0,"div",23),es("click",function(){en(n);var e=os();return e.inputClick(e.inputElRef&&e.inputElRef.value)}),qa(1,Wf,5,8,"span",24),Qa()}if(2&e){var r=os();go(1),Za("ngForOf",r.optionsSelected)("ngForTrackBy",r.trackByOption)}}function Qf(e,t){if(1&e){var n=Ja();$a(0,"input",27,28),es("keyup",function(e){en(n);var t=Ga(1);return os().inputKeyUp(t.value,e)})("click",function(){en(n);var e=Ga(1);return os().inputClick(e.value)}),Qa()}if(2&e){var r=os();Za("ngClass",r.setFormControlSize())("tabindex",!1===r.multiple?-1:0)("disabled",r.disabled)("placeholder",r.optionsSelected.length?"":r.placeholder)("autocomplete",r.autocomplete)}}function Yf(e,t){1&e&&Ya(0,"div",37)}function Kf(e,t){if(1&e&&($a(0,"div",38),Ds(1),Qa()),2&e){var n=os().$implicit;go(1),Vs(n.label)}}var Jf=function(e,t){return{"ngx-select__item_active active":e,"ngx-select__item_disabled disabled":t}},Xf=function(e,t,n,r){return{$implicit:e,text:t,index:n,subIndex:r}};function ep(e,t){if(1&e){var n=Ja();$a(0,"a",39,40),es("mouseenter",function(){en(n);var e=t.$implicit,r=os(3);return r.onMouseEnter({activeOption:e,filteredOptionList:r.optionsFiltered,index:r.optionsFiltered.indexOf(e)})})("click",function(e){en(n);var r=t.$implicit;return os(3).optionSelect(r,e)}),Ka(2,20),Qa()}if(2&e){var r=t.$implicit,i=t.index,o=os().index,a=os(2),s=Ga(8);Za("ngClass",el(3,Jf,r.active,r.disabled)),go(2),Za("ngTemplateOutlet",a.templateOption||s)("ngTemplateOutletContext",(u=6,l=Xf,c=r,d=r.highlightedText,h=o,f=i,function(e,t,n,r,i,o,a,s,u){var l=t+n;return function(e,t,n,r,i,o){var a=La(e,t,n,r);return La(e,t+2,i,o)||a}(e,l,i,o,a,s)?Ba(e,l+4,u?r.call(u,i,o,a,s):r(i,o,a,s)):tl(e,l+4)}(Jt(),ln(),u,l,c,d,h,f,p)))}var u,l,c,d,h,f,p}var tp=function(e){return[e]};function np(e,t){if(1&e&&($a(0,"li",33),qa(1,Yf,1,0,"div",34),qa(2,Kf,2,1,"div",35),qa(3,ep,3,11,"a",36),Qa()),2&e){var n=t.$implicit,r=t.index,i=os(2);go(1),Za("ngIf","optgroup"===n.type&&r>0),go(1),Za("ngIf","optgroup"===n.type),go(1),Za("ngForOf",n.optionsFiltered||Xu(4,tp,n))("ngForTrackBy",i.trackByOption)}}var rp=function(e){return{$implicit:e}};function ip(e,t){if(1&e&&($a(0,"li",41),Ka(1,20),Qa()),2&e){var n=os(2),r=Ga(10);go(1),Za("ngTemplateOutlet",n.templateOptionNotFound||r)("ngTemplateOutletContext",Xu(2,rp,n.inputText))}}function op(e,t){if(1&e&&($a(0,"ul",29,30),qa(2,np,4,6,"li",31),qa(3,ip,2,4,"li",32),Qa()),2&e){var n=os();_s("show",n.showChoiceMenu()),Za("ngClass",n.dropDownMenuOtherClasses),go(2),Za("ngForOf",n.optionsFiltered)("ngForTrackBy",n.trackByOption),go(1),Za("ngIf",!n.optionsFiltered.length)}}function ap(e,t){1&e&&Ya(0,"span",18),2&e&&Za("innerHtml",t.text,mi)}function sp(e,t){1&e&&Ds(0),2&e&&Is(" ",os().noResultsFound," ")}var up=function(e,t){return{"ngx-select_multiple form-control":e,"open show":t}},lp=function(e){return{"ngx-select__disabled":e}},cp=Df,dp=new hr("NGX_SELECT_OPTIONS"),hp=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 fp(e,t){return t in e}var pp=function(){function e(e,t,n,r){var i,o=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.showOptionNotFoundForEmptyItems=!1,this.isFocused=!1,this.keepSelectMenuOpened=!1,this.autocomplete="off",this.dropDownMenuOtherClasses="",this.customEntries=!1,this.keyCodeToRemoveSelected="Delete",this.keyCodeToOptionsOpen=["Enter","NumpadEnter"],this.keyCodeToOptionsClose="Escape",this.keyCodeToOptionsSelect=["Enter","NumpadEnter"],this.keyCodeToNavigateFirst="ArrowLeft",this.keyCodeToNavigatePrevious="ArrowUp",this.keyCodeToNavigateNext="ArrowDown",this.keyCodeToNavigateLast="ArrowRight",this.typed=new ol,this.focus=new ol,this.blur=new ol,this.open=new ol,this.close=new ol,this.select=new ol,this.remove=new ol,this.filtered=new ol,this.navigated=new ol,this.selectionChanges=new ol,this.optionsOpened=!1,this.actualValue=[],this.subjOptions=new Uh([]),this.subjSearchText=new Uh(""),this.subjOptionsSelected=new Uh([]),this.subjExternalValue=new Uh([]),this.subjDefaultValue=new Uh([]),this.subjRegisterOnChange=new q,this._focusToInput=!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 o.subjSearchText.next(e)}),this.subjOptionsSelected.subscribe(function(e){return o.selectionChanges.emit(e)});var a,s=Yh([ce(this.subjExternalValue.pipe(Z(function(e){return i=null===e?[]:[].concat(e)})),this.subjOptionsSelected.pipe(Z(function(e){return e.map(function(e){return e.value})}))),this.subjDefaultValue]).pipe(Z(function(e){var t=Gh(e,2),n=t[0],r=t[1],i=Af()(n,r)?[]:n;return i.length?i:r}),(a=function(e,t){return Af()(e,t)},function(e){return e.lift(new tf(a,void 0))}),me());Yh([s,this.subjRegisterOnChange]).pipe(Z(function(e){return Gh(e,1)[0]})).subscribe(function(e){o.actualValue=e,Af()(e,i)||(i=e,o.onChange(o.multiple?e:e.length?e[0]:null))}),Yh([this.subjOptions.pipe(oe(function(e){return ne(e).pipe(oe(function(e){return e instanceof If?Xh(e):e instanceof Mf?ne(e.options):ef}),vf())})),s]).pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mf;return function(n){return n.lift(new _f(e,t))}}(0)).subscribe(function(e){var t=Gh(e,2),n=t[0],r=[];if(t[1].forEach(function(e){var t;o.customEntries&&o.multiple?e&&((t=n.find(function(t){return t.value===e}))||(t=new If(e,e,!1,e)),r.push(t)):(t=n.find(function(t){return t.value===e}))&&r.push(t)}),o.keepSelectedItems){var i=r.map(function(e){return e.value}),a=o.subjOptionsSelected.value.filter(function(e){return-1===i.indexOf(e.value)});r.push.apply(r,function(){for(var e=[],t=0;t=0?r:n.length-1;break;case hp.next:r=n.indexOf(t.optionActive)+1,i.index=r0?o:0}return i.activeOption=n[i.index],i})).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.ngOnDestroy=function(){this.cd.detach()},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:if(this.customEntries&&this.multiple&&!this.optionActive){var r=e.srcElement.value,i=new If(r,r,!1,r);this.subjOptionsSelected.next((this.multiple?this.subjOptionsSelected.value:[]).concat([i])),e.srcElement.value="",this.optionsClose()}else this.optionSelect(this.optionActive),this.navigateOption(hp.next);break;case this.keyCodeToNavigateFirst:this.navigateOption(hp.first);break;case this.keyCodeToNavigatePrevious:this.navigateOption(hp.previous);break;case this.keyCodeToNavigateLast:this.navigateOption(hp.last);break;case this.keyCodeToNavigateNext:this.navigateOption(hp.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.multiple||this.canClearNotMultiple())&&this.optionRemove(this.subjOptionsSelected.value[this.subjOptionsSelected.value.length-1],e)}},e.prototype.trackByOption=function(e,t){return t instanceof If?t.value:t instanceof Mf?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&&-1===["ArrowDown","ArrowUp","ArrowLeft","ArrowDown"].indexOf(t.code)?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.keepSelectMenuOpened||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,i=new RegExp(cp(e),"i"),o=function(t){return r.searchCallback?r.searchCallback(e,t):(!e||i.test(t.text))&&(!r.multiple||!n.find(function(e){return e.value===t.value}))};return t.filter(function(e){if(e instanceof If)return o(e);if(e instanceof Mf){var t=e;return t.filter(function(e){return o(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.showChoiceMenu=function(){return this.optionsOpened&&(!!this.subjOptions.value.length||this.showOptionNotFoundForEmptyItems)},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?hp.firstSelected:hp.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=this,n=[];return Array.isArray(e)&&e.forEach(function(e){if("object"==typeof e&&null!==e&&fp(e,t.optGroupLabelField)&&fp(e,t.optGroupOptionsField)&&Array.isArray(e[t.optGroupOptionsField])){var r=new Mf(e[t.optGroupLabelField]);e[t.optGroupOptionsField].forEach(function(e){var n=t.buildOption(e,r);n&&r.options.push(n)}),n.push(r)}else{var i=t.buildOption(e,null);i&&n.push(i)}}),n},e.prototype.buildOption=function(e,t){var n,r,i;if("string"==typeof e||"number"==typeof e)n=r=e,i=!1;else{if("object"!=typeof e||null===e||!fp(e,this.optionValueField)&&!fp(e,this.optionTextField))return null;n=fp(e,this.optionValueField)?e[this.optionValueField]:e[this.optionTextField],r=fp(e,this.optionTextField)?e[this.optionTextField]:e[this.optionValueField],i=!!fp(e,"disabled")&&e.disabled}return new If(n,r,i,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,this.cd.markForCheck()},e.\u0275fac=function(t){return new(t||e)(Ua(bu),Ua(cd),Ua(Su),Ua(dp,8))},e.\u0275cmp=ot({type:e,selectors:[["ngx-select"]],contentQueries:function(e,t,n){if(1&e&&(_l(n,Ff,3,Mu),_l(n,Rf,3,Mu),_l(n,jf,3,Mu)),2&e){var r=void 0;yl(r=bl())&&(t.templateOption=r.first),yl(r=bl())&&(t.templateSelectedOption=r.first),yl(r=bl())&&(t.templateOptionNotFound=r.first)}},viewQuery:function(e,t){if(1&e&&(ml(Nf,3),ml(Pf,1),ml(Bf,1)),2&e){var n=void 0;yl(n=bl())&&(t.mainElRef=n.first),yl(n=bl())&&(t.inputElRef=n.first),yl(n=bl())&&(t.choiceMenuElRef=n.first)}},hostBindings:function(e,t){1&e&&es("focusin",function(e){return t.documentClick(e)},!1,Oi)("click",function(e){return t.documentClick(e)},!1,Oi)},inputs:{items:"items",optionValueField:"optionValueField",optionTextField:"optionTextField",optGroupLabelField:"optGroupLabelField",optGroupOptionsField:"optGroupOptionsField",multiple:"multiple",allowClear:"allowClear",placeholder:"placeholder",noAutoComplete:"noAutoComplete",disabled:"disabled",defaultValue:"defaultValue",autoSelectSingleOption:"autoSelectSingleOption",autoClearSearch:"autoClearSearch",noResultsFound:"noResultsFound",keepSelectedItems:"keepSelectedItems",size:"size",searchCallback:"searchCallback",autoActiveOnMouseEnter:"autoActiveOnMouseEnter",showOptionNotFoundForEmptyItems:"showOptionNotFoundForEmptyItems",isFocused:"isFocused",keepSelectMenuOpened:"keepSelectMenuOpened",autocomplete:"autocomplete",dropDownMenuOtherClasses:"dropDownMenuOtherClasses",customEntries:"customEntries"},outputs:{typed:"typed",focus:"focus",blur:"blur",open:"open",close:"close",select:"select",remove:"remove",filtered:"filtered",navigated:"navigated",selectionChanges:"selectionChanges"},features:[$s([{provide:Sd,useExisting:Ce(function(){return e}),multi:!0}])],decls:11,vars:12,consts:[[1,"ngx-select","dropdown",3,"tabindex","ngClass","click","focusin","focus","keydown"],["main",""],[3,"ngClass"],["class","ngx-select__selected",4,"ngIf"],["class","ngx-select__selected",3,"click",4,"ngIf"],["type","text","class","ngx-select__search form-control","autocorrect","off","autocapitalize","off","spellcheck","false","role","combobox",3,"ngClass","tabindex","disabled","placeholder","autocomplete","keyup","click",4,"ngIf"],["role","menu","class","ngx-select__choices dropdown-menu",3,"ngClass","show",4,"ngIf"],["defaultTemplateOption",""],["defaultTemplateOptionNotFound",""],[1,"ngx-select__selected"],[1,"ngx-select__toggle","btn","form-control",3,"ngClass","click"],["class","ngx-select__placeholder text-muted",4,"ngIf"],["class","ngx-select__selected-single pull-left float-left",3,"ngClass",4,"ngIf"],[1,"ngx-select__toggle-buttons"],["class","ngx-select__clear btn btn-sm btn-link",3,"ngClass","click",4,"ngIf"],[1,"dropdown-toggle"],[1,"ngx-select__toggle-caret","caret"],[1,"ngx-select__placeholder","text-muted"],[3,"innerHtml"],[1,"ngx-select__selected-single","pull-left","float-left",3,"ngClass"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ngx-select__clear","btn","btn-sm","btn-link",3,"ngClass","click"],[1,"ngx-select__clear-icon"],[1,"ngx-select__selected",3,"click"],[4,"ngFor","ngForOf","ngForTrackBy"],["tabindex","-1",1,"ngx-select__selected-plural","btn","btn-default","btn-secondary","btn-sm","btn-xs",3,"ngClass","click"],[1,"ngx-select__clear","btn","btn-sm","btn-link","pull-right","float-right",3,"ngClass","click"],["type","text","autocorrect","off","autocapitalize","off","spellcheck","false","role","combobox",1,"ngx-select__search","form-control",3,"ngClass","tabindex","disabled","placeholder","autocomplete","keyup","click"],["input",""],["role","menu",1,"ngx-select__choices","dropdown-menu",3,"ngClass"],["choiceMenu",""],["class","ngx-select__item-group","role","menuitem",4,"ngFor","ngForOf","ngForTrackBy"],["class","ngx-select__item ngx-select__item_no-found dropdown-header",4,"ngIf"],["role","menuitem",1,"ngx-select__item-group"],["class","divider dropdown-divider",4,"ngIf"],["class","dropdown-header",4,"ngIf"],["href","#","class","ngx-select__item dropdown-item",3,"ngClass","mouseenter","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"divider","dropdown-divider"],[1,"dropdown-header"],["href","#",1,"ngx-select__item","dropdown-item",3,"ngClass","mouseenter","click"],["choiceItem",""],[1,"ngx-select__item","ngx-select__item_no-found","dropdown-header"]],template:function(e,t){1&e&&($a(0,"div",0,1),es("click",function(e){return t.mainClicked(e)})("focusin",function(e){return t.mainClicked(e)})("focus",function(){return t.focusToInput()})("keydown",function(e){return t.inputKeyDown(e)}),Ya(2,"div",2),qa(3,Uf,8,4,"div",3),qa(4,$f,2,2,"div",4),qa(5,Qf,2,5,"input",5),qa(6,op,4,6,"ul",6),qa(7,ap,1,1,"ng-template",null,7,Cl),qa(9,sp,1,1,"ng-template",null,8,Cl),Qa()),2&e&&(Za("tabindex",t.disabled?-1:0)("ngClass",t.setFormControlSize(el(7,up,!0===t.multiple,t.optionsOpened&&t.optionsFiltered.length),!0===t.multiple)),go(2),Za("ngClass",Xu(10,lp,t.disabled)),go(1),Za("ngIf",!1===t.multiple&&(!t.optionsOpened||t.noAutoComplete)),go(1),Za("ngIf",!0===t.multiple),go(1),Za("ngIf",t.checkInputVisibility()),go(1),Za("ngIf",t.isFocused))},directives:[Ec,Dc,Fc,Tc],styles:['.ngx-select_multiple[_ngcontent-%COMP%]{height:auto;padding:3px 3px 0}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__search[_ngcontent-%COMP%]{background-color:transparent!important;border:none;outline:none;box-shadow:none;height:1.6666em;padding:0;margin-bottom:3px}.ngx-select__disabled[_ngcontent-%COMP%]{background-color:#eceeef;border-radius:4px;position:absolute;width:100%;height:100%;z-index:5;opacity:.6;top:0;left:0;cursor:not-allowed}.ngx-select__toggle[_ngcontent-%COMP%]{outline:0;position:relative;text-align:left!important;color:#333;background-color:#fff;border-color:#ccc;display:inline-flex;align-items:stretch;justify-content:space-between}.ngx-select__toggle[_ngcontent-%COMP%]:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.ngx-select__toggle-buttons[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center}.ngx-select__toggle-caret[_ngcontent-%COMP%]{position:absolute;height:10px;top:50%;right:10px;margin-top:-2px}.ngx-select__placeholder[_ngcontent-%COMP%]{float:left;max-width:100%;text-overflow:ellipsis;overflow:hidden}.ngx-select__clear[_ngcontent-%COMP%]{margin-right:10px;padding:0;border:none}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__clear[_ngcontent-%COMP%]{line-height:normal;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{transform:rotate(45deg)}.ngx-select__clear-icon[_ngcontent-%COMP%]:after{transform:rotate(-45deg)}.ngx-select__choices[_ngcontent-%COMP%]{width:100%;height:auto;max-height:200px;overflow-x:hidden;margin-top:0;position:absolute}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__choices[_ngcontent-%COMP%]{margin-top:1px}.ngx-select__item[_ngcontent-%COMP%]{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;white-space:nowrap;cursor:pointer;text-decoration:none}.ngx-select__item_disabled[_ngcontent-%COMP%], .ngx-select__item_no-found[_ngcontent-%COMP%]{cursor:default}.ngx-select__item_active[_ngcontent-%COMP%]{color:#fff;outline:0;background-color:#428bca}.ngx-select__selected-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}'],changeDetection:0}),e}(),vp=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 Dh,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.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ot({type:e,selectors:[["single-demo"]],decls:13,vars:8,consts:[[1,"example-block"],[1,"example-block__item"],["placeholder","No city selected",3,"formControl","allowClear","defaultValue","items","typed","focus","blur","open","close","select","remove","selectionChanges"],[1,"alert","alert-secondary"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(e,t){1&e&&($a(0,"h3"),Ds(1,"Select a single city"),Qa(),$a(2,"div",0),$a(3,"div",1),$a(4,"ngx-select",2),es("typed",function(e){return t.inputTyped("ngx-select",e)})("focus",function(){return t.doFocus()})("blur",function(){return t.doBlur()})("open",function(){return t.doOpen()})("close",function(){return t.doClose()})("select",function(e){return t.doSelect(e)})("remove",function(e){return t.doRemove(e)})("selectionChanges",function(e){return t.doSelectOptions(e)}),Qa(),Ya(5,"p"),$a(6,"div",3),$a(7,"pre"),Ds(8),rl(9,"json"),Qa(),Qa(),$a(10,"div"),$a(11,"button",4),es("click",function(){return t.ngxControl.disabled?t.ngxControl.enable():t.ngxControl.disable()}),Ds(12),Qa(),Qa(),Qa(),Qa()),2&e&&(go(4),Za("formControl",t.ngxControl)("allowClear",!0)("defaultValue",t.doNgxDefault())("items",t.items),go(4),Vs(il(9,6,t.ngxControl.value)),go(4),Is(" ",t.ngxControl.disabled?"Enable":"Disable"," "))},directives:[pp,eh,Ph],pipes:[Rc],encapsulation:2}),e}(),gp=function(){function e(){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)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ot({type:e,selectors:[["multiple-demo"]],decls:13,vars:9,consts:[[1,"example-block"],[1,"example-block__item"],["placeholder","No city selected",3,"multiple","items","disabled","ngModel","autoClearSearch","ngModelChange","selectionChanges"],[1,"alert","alert-secondary"],[1,"btn","btn-primary",3,"click"]],template:function(e,t){1&e&&($a(0,"h3"),Ds(1,"Select multiple cities"),Qa(),$a(2,"div",0),$a(3,"div",1),$a(4,"ngx-select",2),es("ngModelChange",function(e){return t.ngxValue=e})("selectionChanges",function(e){return t.doSelectOptions(e)}),Qa(),Ya(5,"p"),$a(6,"div",3),$a(7,"pre"),Ds(8),rl(9,"json"),Qa(),Qa(),$a(10,"div"),$a(11,"button",4),es("click",function(){return t.ngxDisabled=!t.ngxDisabled}),Ds(12),Qa(),Qa(),Qa(),Qa()),2&e&&(go(4),Za("multiple",!0)("items",t.items)("disabled",t.ngxDisabled)("ngModel",t.ngxValue)("autoClearSearch",!0),go(4),Vs(il(9,7,t.ngxValue)),go(4),Is(" ",t.ngxDisabled?"Enable":"Disable"," "))},directives:[pp,eh,Rh],pipes:[Rc],encapsulation:2}),e}(),yp=function(){function e(){this.items=[{id:100,text:"Austria",children:[{id:54,text:"Vienna"}]},{id:200,text:"Belgium",children:[{id:2,text:"Antwerp"},{id:9,text:"Brussels"}]},{id:300,text:"Bulgaria",children:[{id:48,text:"Sofia"}]},{id:400,text:"Croatia",children:[{id:58,text:"Zagreb"}]},{id:500,text:"Czech Republic",children:[{id:42,text:"Prague"}]},{id:600,text:"Denmark",children:[{id:13,text:"Copenhagen"}]},{id:700,text:"England",children:[{id:6,text:"Birmingham"},{id:7,text:"Bradford"},{id:26,text:"Leeds",disabled:!0},{id:30,text:"London"},{id:34,text:"Manchester"},{id:47,text:"Sheffield"}]},{id:800,text:"Finland",children:[{id:25,text:"Helsinki"}]},{id:900,text:"France",children:[{id:35,text:"Marseille"},{id:40,text:"Paris"}]},{id:1e3,text:"Germany",children:[{id:5,text:"Berlin"},{id:8,text:"Bremen"},{id:12,text:"Cologne"},{id:14,text:"Dortmund"},{id:15,text:"Dresden"},{id:17,text:"D\xfcsseldorf"},{id:18,text:"Essen"},{id:19,text:"Frankfurt"},{id:23,text:"Hamburg"},{id:24,text:"Hannover"},{id:27,text:"Leipzig"},{id:37,text:"Munich"},{id:50,text:"Stuttgart"}]},{id:1100,text:"Greece",children:[{id:3,text:"Athens"}]},{id:1200,text:"Hungary",children:[{id:11,text:"Budapest"}]},{id:1300,text:"Ireland",children:[{id:16,text:"Dublin"}]},{id:1400,text:"Italy",children:[{id:20,text:"Genoa"},{id:36,text:"Milan"},{id:38,text:"Naples"},{id:39,text:"Palermo"},{id:44,text:"Rome"},{id:52,text:"Turin"}]},{id:1500,text:"Latvia",children:[{id:43,text:"Riga"}]},{id:1600,text:"Lithuania",children:[{id:55,text:"Vilnius"}]},{id:1700,text:"Netherlands",children:[{id:1,text:"Amsterdam"},{id:45,text:"Rotterdam"},{id:51,text:"The Hague"}]},{id:1800,text:"Poland",children:[{id:29,text:"\u0141\xf3d\u017a"},{id:31,text:"Krak\xf3w"},{id:41,text:"Pozna\u0144"},{id:56,text:"Warsaw"},{id:57,text:"Wroc\u0142aw"}]},{id:1900,text:"Portugal",children:[{id:28,text:"Lisbon"}]},{id:2e3,text:"Romania",children:[{id:10,text:"Bucharest"}]},{id:2100,text:"Scotland",children:[{id:21,text:"Glasgow"}]},{id:2200,text:"Spain",children:[{id:4,text:"Barcelona"},{id:32,text:"Madrid"},{id:33,text:"M\xe1laga"},{id:46,text:"Seville"},{id:53,text:"Valencia"},{id:59,text:"Zaragoza"}]},{id:2300,text:"Sweden",children:[{id:22,text:"Gothenburg"},{id:49,text:"Stockholm"}]}],this.ngxValue=[],this.ngxDisabled=!1}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ot({type:e,selectors:[["children-demo"]],decls:13,vars:8,consts:[[1,"example-block"],[1,"example-block__item"],["optionValueField","id","optionTextField","text","optGroupLabelField","text","optGroupOptionsField","children","placeholder","No city selected",3,"allowClear","items","disabled","ngModel","ngModelChange"],[1,"alert","alert-secondary"],[1,"btn","btn-primary",3,"click"]],template:function(e,t){1&e&&($a(0,"h3"),Ds(1,"Select a city by country"),Qa(),$a(2,"div",0),$a(3,"div",1),$a(4,"ngx-select",2),es("ngModelChange",function(e){return t.ngxValue=e}),Qa(),Ya(5,"p"),$a(6,"div",3),$a(7,"pre"),Ds(8),rl(9,"json"),Qa(),Qa(),$a(10,"div"),$a(11,"button",4),es("click",function(){return t.ngxDisabled=!t.ngxDisabled}),Ds(12),Qa(),Qa(),Qa(),Qa()),2&e&&(go(4),Za("allowClear",!0)("items",t.items)("disabled",t.ngxDisabled)("ngModel",t.ngxValue),go(4),Vs(il(9,6,t.ngxValue)),go(4),Is(" ",t.ngxDisabled?"Enable":"Disable"," "))},directives:[pp,eh,Rh],pipes:[Rc],encapsulation:2}),e}();function mp(e,t){if(1&e&&(Ya(0,"span",7),Ya(1,"span",8),Ds(2)),2&e){var n=t.$implicit,r=t.text;(function(e,t,n,r){var i=Xt(),o=dn(2);i.firstUpdatePass&&xs(i,null,o,r);var a=Jt();if(n!==vo&&Ha(a,o,n)){var s=i.data[Cn()];if(As(s,r)&&!ks(i,o)){var u=s.stylesWithoutHost;null!==u&&(n=xe(u,n||"")),Wa(i,s,a,n,r)}else!function(e,t,n,r,i,o,a,s){i===vo&&(i=ls);for(var u=0,l=0,c=0\n \n \n\n'},PmYy:function(e,t,n){"use strict";n.r(t),t.default="import { Component } from '@angular/core';\n\n@Component({\n selector: 'no-autocomplete-demo',\n templateUrl: './no-autocomplete-demo.html',\n})\nexport class NoAutoCompleteDemoComponent {\n public _items: string[] = ['Amsterdam', 'Antwerp', 'Athens', 'Barcelona',\n 'Berlin', 'Birmingham', 'Bradford', 'Bremen', 'Brussels', 'Bucharest',\n 'Budapest', 'Cologne', 'Copenhagen', 'Dortmund', 'Dresden', 'Dublin',\n 'D\xfcsseldorf', 'Essen', 'Frankfurt', 'Genoa', 'Glasgow', 'Gothenburg',\n 'Hamburg', 'Hannover', 'Helsinki', 'Krak\xf3w', 'Leeds', 'Leipzig', 'Lisbon',\n 'London', 'Madrid', 'Manchester', 'Marseille', 'Milan', 'Munich', 'M\xe1laga',\n 'Naples', 'Palermo', 'Paris', 'Pozna\u0144', 'Prague', 'Riga', 'Rome',\n 'Rotterdam', 'Seville', 'Sheffield', 'Sofia', 'Stockholm', 'Stuttgart',\n 'The Hague', 'Turin', 'Valencia', 'Vienna', 'Vilnius', 'Warsaw', 'Wroc\u0142aw',\n 'Zagreb', 'Zaragoza', '\u0141\xf3d\u017a'];\n\n constructor() {\n const a = [];\n for (let i = 1; i <= 20; i++) {\n this._items.forEach(v => a.push(i + ' ' + v));\n }\n this.items = a;\n }\n\n public items: string[] = [];\n public ngxValue: any = [];\n public ngxDisabled = false;\n}\n"},Tah6:function(e,t,n){"use strict";n.r(t),t.default='

Select a city by country

\n
\n
\n \n \n

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
\n'},WySO:function(e,t,n){"use strict";n.r(t),t.default='

Select a single city

\n
\n
\n \n \n

\n
\n
{{ngxControl.value | json}}
\n
\n
\n \n
\n
\n
\n'},XaGS:function(e,t,n){(function(e){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",o="[object Array]",a="[object Boolean]",s="[object Date]",u="[object Error]",l="[object Function]",c="[object Map]",d="[object Number]",h="[object Object]",f="[object Promise]",p="[object RegExp]",v="[object Set]",g="[object String]",y="[object WeakMap]",m="[object ArrayBuffer]",_="[object DataView]",b=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[i]=x[o]=x[m]=x[a]=x[_]=x[s]=x[u]=x[l]=x[c]=x[d]=x[h]=x[p]=x[v]=x[g]=x[y]=!1;var w="object"==typeof global&&global&&global.Object===Object&&global,C="object"==typeof self&&self&&self.Object===Object&&self,O=w||C||Function("return this")(),E=t&&!t.nodeType&&t,T=E&&"object"==typeof e&&e&&!e.nodeType&&e,S=T&&T.exports===E,A=S&&w.process,D=function(){try{return A&&A.binding&&A.binding("util")}catch(e){}}(),V=D&&D.isTypedArray;function I(e,t){for(var n=-1,r=null==e?0:e.length;++ns))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var c=-1,d=!0,h=2&n?new ye:void 0;for(o.set(e,t),o.set(t,e);++c-1},ve.prototype.set=function(e,t){var n=this.__data__,r=_e(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ge.prototype.clear=function(){this.size=0,this.__data__={hash:new pe,map:new(ne||ve),string:new pe}},ge.prototype.delete=function(e){var t=Oe(this,e).delete(e);return this.size-=t?1:0,t},ge.prototype.get=function(e){return Oe(this,e).get(e)},ge.prototype.has=function(e){return Oe(this,e).has(e)},ge.prototype.set=function(e,t){var n=Oe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ye.prototype.add=ye.prototype.push=function(e){return this.__data__.set(e,n),this},ye.prototype.has=function(e){return this.__data__.has(e)},me.prototype.clear=function(){this.__data__=new ve,this.size=0},me.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},me.prototype.get=function(e){return this.__data__.get(e)},me.prototype.has=function(e){return this.__data__.has(e)},me.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ve){var r=n.__data__;if(!ne||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ge(r)}return n.set(e,t),this.size=n.size,this};var Te=J?function(e){return null==e?[]:(e=Object(e),function(t,n){for(var r=-1,i=null==t?0:t.length,o=0,a=[];++r-1&&e%1==0&&e-1&&e%1==0&&e<=r}function Pe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ne(e){return null!=e&&"object"==typeof e}var Be=V?function(e){return function(t){return e(t)}}(V):function(e){return Ne(e)&&je(e.length)&&!!x[be(e)]};function He(e){return null!=(t=e)&&je(t.length)&&!Re(t)?function(e,t){var n=Fe(e),r=!n&&Ie(e),i=!n&&!r&&Me(e),o=!n&&!r&&!i&&Be(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n\n \n \n'},hnl7:function(e,t,n){"use strict";n.r(t),t.default="import { Component, ViewEncapsulation } from '@angular/core';\nimport { DomSanitizer, SafeStyle } from '@angular/platform-browser';\n\nconst COLORS = [\n {name: 'Blue 10', hex: '#C0E6FF'},\n {name: 'Blue 20', hex: '#7CC7FF'},\n {name: 'Blue 30', hex: '#5AAAFA', disabled: true},\n {name: 'Blue 40', hex: '#5596E6'},\n {name: 'Blue 50', hex: '#4178BE'},\n {name: 'Blue 60', hex: '#325C80'},\n {name: 'Blue 70', hex: '#264A60'},\n {name: 'Blue 80', hex: '#1D3649'},\n {name: 'Blue 90', hex: '#152935'},\n {name: 'Blue 100', hex: '#010205'},\n {name: 'Green 10', hex: '#C8F08F'},\n {name: 'Green 20', hex: '#B4E051'},\n {name: 'Green 30', hex: '#8CD211'},\n {name: 'Green 40', hex: '#5AA700'},\n {name: 'Green 50', hex: '#4B8400'},\n {name: 'Green 60', hex: '#2D660A'},\n {name: 'Green 70', hex: '#144D14'},\n {name: 'Green 80', hex: '#0A3C02'},\n {name: 'Green 90', hex: '#0C2808'},\n {name: 'Green 100', hex: '#010200'},\n {name: 'Red 10', hex: '#FFD2DD'},\n {name: 'Red 20', hex: '#FFA5B4'},\n {name: 'Red 30', hex: '#FF7D87'},\n {name: 'Red 40', hex: '#FF5050'},\n {name: 'Red 50', hex: '#E71D32'},\n {name: 'Red 60', hex: '#AD1625'},\n {name: 'Red 70', hex: '#8C101C'},\n {name: 'Red 80', hex: '#6E0A1E'},\n {name: 'Red 90', hex: '#4C0A17'},\n {name: 'Red 100', hex: '#040001'},\n {name: 'Yellow 10', hex: '#FDE876'},\n {name: 'Yellow 20', hex: '#FDD600'},\n {name: 'Yellow 30', hex: '#EFC100'},\n {name: 'Yellow 40', hex: '#BE9B00'},\n {name: 'Yellow 50', hex: '#8C7300'},\n {name: 'Yellow 60', hex: '#735F00'},\n {name: 'Yellow 70', hex: '#574A00'},\n {name: 'Yellow 80', hex: '#3C3200'},\n {name: 'Yellow 90', hex: '#281E00'},\n {name: 'Yellow 100', hex: '#020100'},\n];\n\n@Component({\n selector: 'rich-demo',\n templateUrl: './rich-demo.html',\n styles: [`.color-box {\n display: inline-block;\n height: 14px;\n width: 14px;\n margin-right: 4px;\n border: 1px solid #000;\n }`],\n encapsulation: ViewEncapsulation.None, // Enable dynamic HTML styles\n})\nexport class RichDemoComponent {\n public items: any[] = COLORS;\n\n public ngxValue: any = [];\n public ngxDisabled = false;\n\n constructor(public sanitizer: DomSanitizer) {\n }\n\n public style(data: string): SafeStyle {\n return this.sanitizer.bypassSecurityTrustStyle(data);\n }\n}\n"},kiQV:function(e){e.exports=JSON.parse('{"name":"ngx-select-ex","version":"6.0.2","description":"Angular based replacement for select boxes","license":"MIT","private":false,"author":"Konstantin Polyntsov ","repository":{"type":"git","url":"git+ssh://git@github.com:optimistex/ngx-select-ex.git"},"bugs":{"url":"https://github.com/optimistex/ngx-select-ex/issues"},"homepage":"https://github.com/optimistex/ngx-select-ex#readme","scripts":{"e2e":"ng e2e","cz":"git add -A && git status && git-cz","build":"npm run lint && npm run test && 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","lint:fix":"ng lint --fix","ng":"ng","precommit":"npm run test","release":"standard-version --commit-all","publish.ng4":"npm publish dist --tag ng4","publish":"npm publish dist","publish-dev":"npm publish dist --tag dev","start":"ng serve","test":"ng test --watch false","test-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":{},"dependencies":{"lodash.isequal":"^4.5.0"},"devDependencies":{"@angular-devkit/build-angular":"~0.1100.2","@angular/animations":"~11.1.0","@angular/cli":"^11.1.1","@angular/common":"~11.1.0","@angular/compiler":"~11.1.0","@angular/compiler-cli":"~11.1.0","@angular/core":"~11.1.0","@angular/forms":"~11.1.0","@angular/language-service":"~11.1.0","@angular/platform-browser":"~11.1.0","@angular/platform-browser-dynamic":"~11.1.0","@angular/router":"~11.1.0","@types/jasmine":"~3.6.0","@types/jasminewd2":"^2.0.8","@types/marked":"^1.1.0","@types/node":"^14.14.7","@types/webpack":"^4.41.24","codecov":"^3.8.1","codelyzer":"^6.0.0","escape-string-regexp":"^4.0.0","html-loader":"^1.3.2","husky":"^4.3.0","jasmine-core":"~3.6.0","jasmine-spec-reporter":"~5.0.0","karma":"^5.1.1","karma-chrome-launcher":"~3.1.0","karma-coverage-istanbul-reporter":"~3.0.2","karma-jasmine":"~4.0.0","karma-jasmine-html-reporter":"^1.5.0","markdown-loader":"^6.0.0","ng-packagr":"^11.0.3","ngx-bootstrap":"^6.1.0","pre-commit":"^1.2.2","protractor":"~7.0.0","rxjs":"~6.6.3","standard-version":"^9.0.0","ts-node":"^9.0.0","tslib":"^2.0.0","tslint":"~6.1.0","tslint-jasmine-rules":"^1.6.1","typescript":"~4.0.5","zone.js":"^0.10.3"},"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"}]}')},luUw:function(e,t,n){"use strict";n.r(t),t.default="import { Component } from '@angular/core';\nimport { INgxSelectOption } from '../../lib/ngx-select/ngx-select.interfaces';\n\n@Component({\n selector: 'multiple-demo',\n templateUrl: './multiple-demo.html',\n})\nexport class MultipleDemoComponent {\n public items: string[] = ['Amsterdam', 'Antwerp', 'Athens', 'Barcelona',\n 'Berlin', 'Birmingham', 'Bradford', 'Bremen', 'Brussels', 'Bucharest',\n 'Budapest', 'Cologne', 'Copenhagen', 'Dortmund', 'Dresden', 'Dublin', 'D\xfcsseldorf',\n 'Essen', 'Frankfurt', 'Genoa', 'Glasgow', 'Gothenburg', 'Hamburg', 'Hannover',\n 'Helsinki', 'Leeds', 'Leipzig', 'Lisbon', '\u0141\xf3d\u017a', 'London', 'Krak\xf3w', 'Madrid',\n 'M\xe1laga', 'Manchester', 'Marseille', 'Milan', 'Munich', 'Naples', 'Palermo',\n 'Paris', 'Pozna\u0144', 'Prague', 'Riga', 'Rome', 'Rotterdam', 'Seville', 'Sheffield',\n 'Sofia', 'Stockholm', 'Stuttgart', 'The Hague', 'Turin', 'Valencia', 'Vienna',\n 'Vilnius', 'Warsaw', 'Wroc\u0142aw', 'Zagreb', 'Zaragoza'];\n\n public ngxValue: any = [];\n public ngxDisabled = false;\n\n public doSelectOptions = (options: INgxSelectOption[]) => console.log('MultipleDemoComponent.doSelectOptions', options);\n}\n"},oxjq:function(e,t,n){"use strict";e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},rVYP:function(e,t,n){"use strict";n.r(t),t.default="import { Component } from '@angular/core';\n\n@Component({\n selector: 'children-demo',\n templateUrl: './children-demo.html',\n})\nexport class ChildrenDemoComponent {\n public items: any[] = [\n {\n id: 100,\n text: 'Austria',\n children: [\n {id: 54, text: 'Vienna'},\n ],\n },\n {\n id: 200,\n text: 'Belgium',\n children: [\n {id: 2, text: 'Antwerp'},\n {id: 9, text: 'Brussels'},\n ],\n },\n {\n id: 300,\n text: 'Bulgaria',\n children: [\n {id: 48, text: 'Sofia'},\n ],\n },\n {\n id: 400,\n text: 'Croatia',\n children: [\n {id: 58, text: 'Zagreb'},\n ],\n },\n {\n id: 500,\n text: 'Czech Republic',\n children: [\n {id: 42, text: 'Prague'},\n ],\n },\n {\n id: 600,\n text: 'Denmark',\n children: [\n {id: 13, text: 'Copenhagen'},\n ],\n },\n {\n id: 700,\n text: 'England',\n children: [\n {id: 6, text: 'Birmingham'},\n {id: 7, text: 'Bradford'},\n {id: 26, text: 'Leeds', disabled: true},\n {id: 30, text: 'London'},\n {id: 34, text: 'Manchester'},\n {id: 47, text: 'Sheffield'},\n ],\n },\n {\n id: 800,\n text: 'Finland',\n children: [\n {id: 25, text: 'Helsinki'},\n ],\n },\n {\n id: 900,\n text: 'France',\n children: [\n {id: 35, text: 'Marseille'},\n {id: 40, text: 'Paris'},\n ],\n },\n {\n id: 1000,\n text: 'Germany',\n children: [\n {id: 5, text: 'Berlin'},\n {id: 8, text: 'Bremen'},\n {id: 12, text: 'Cologne'},\n {id: 14, text: 'Dortmund'},\n {id: 15, text: 'Dresden'},\n {id: 17, text: 'D\xfcsseldorf'},\n {id: 18, text: 'Essen'},\n {id: 19, text: 'Frankfurt'},\n {id: 23, text: 'Hamburg'},\n {id: 24, text: 'Hannover'},\n {id: 27, text: 'Leipzig'},\n {id: 37, text: 'Munich'},\n {id: 50, text: 'Stuttgart'},\n ],\n },\n {\n id: 1100,\n text: 'Greece',\n children: [\n {id: 3, text: 'Athens'},\n ],\n },\n {\n id: 1200,\n text: 'Hungary',\n children: [\n {id: 11, text: 'Budapest'},\n ],\n },\n {\n id: 1300,\n text: 'Ireland',\n children: [\n {id: 16, text: 'Dublin'},\n ],\n },\n {\n id: 1400,\n text: 'Italy',\n children: [\n {id: 20, text: 'Genoa'},\n {id: 36, text: 'Milan'},\n {id: 38, text: 'Naples'},\n {id: 39, text: 'Palermo'},\n {id: 44, text: 'Rome'},\n {id: 52, text: 'Turin'},\n ],\n },\n {\n id: 1500,\n text: 'Latvia',\n children: [\n {id: 43, text: 'Riga'},\n ],\n },\n {\n id: 1600,\n text: 'Lithuania',\n children: [\n {id: 55, text: 'Vilnius'},\n ],\n },\n {\n id: 1700,\n text: 'Netherlands',\n children: [\n {id: 1, text: 'Amsterdam'},\n {id: 45, text: 'Rotterdam'},\n {id: 51, text: 'The Hague'},\n ],\n },\n {\n id: 1800,\n text: 'Poland',\n children: [\n {id: 29, text: '\u0141\xf3d\u017a'},\n {id: 31, text: 'Krak\xf3w'},\n {id: 41, text: 'Pozna\u0144'},\n {id: 56, text: 'Warsaw'},\n {id: 57, text: 'Wroc\u0142aw'},\n ],\n },\n {\n id: 1900,\n text: 'Portugal',\n children: [\n {id: 28, text: 'Lisbon'},\n ],\n },\n {\n id: 2000,\n text: 'Romania',\n children: [\n {id: 10, text: 'Bucharest'},\n ],\n },\n {\n id: 2100,\n text: 'Scotland',\n children: [\n {id: 21, text: 'Glasgow'},\n ],\n },\n {\n id: 2200,\n text: 'Spain',\n children: [\n {id: 4, text: 'Barcelona'},\n {id: 32, text: 'Madrid'},\n {id: 33, text: 'M\xe1laga'},\n {id: 46, text: 'Seville'},\n {id: 53, text: 'Valencia'},\n {id: 59, text: 'Zaragoza'},\n ],\n },\n {\n id: 2300,\n text: 'Sweden',\n children: [\n {id: 22, text: 'Gothenburg'},\n {id: 49, text: 'Stockholm'},\n ],\n },\n ];\n\n public ngxValue: any[] = [];\n public ngxDisabled = false;\n}\n"},yO7Q:function(e,t,n){"use strict";n.r(t),t.default='

Select a color

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

\n
\n
{{ngxValue | json}}
\n
\n
\n \n
\n
\n
\n'},zUnb:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t,n){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function l(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function h(e,t,n){return(h=d()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&c(i,n.prototype),i}).apply(null,arguments)}function f(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(r){return r.pipe(oe(function(n,r){return ne(e(n,r)).pipe(Z(function(e,i){return t(n,e,r,i)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new ae(e,n))})}var ae=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;v(this,e),this.project=t,this.concurrent=n}return p(e,[{key:"call",value:function(e,t){return t.subscribe(new se(e,this.project,this.concurrent))}}]),e}(),se=function(e){g(n,e);var t=_(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return v(this,n),(i=t.call(this,e)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return p(n,[{key:"_next",value:function(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(ie);function ue(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return oe(R,e)}function le(e,t){return t?te(e,t):new N(Q(e))}function ce(){for(var e=Number.POSITIVE_INFINITY,t=null,n=arguments.length,r=new Array(n),i=0;i1&&"number"==typeof r[r.length-1]&&(e=r.pop())):"number"==typeof o&&(e=r.pop()),null===t&&1===r.length&&r[0]instanceof N?r[0]:ue(e)(le(r,t))}function de(){return function(e){return e.lift(new he(e))}}var he=function(){function e(t){v(this,e),this.connectable=t}return p(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var r=new fe(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),e}(),fe=function(e){g(n,e);var t=_(n);function n(e,r){var i;return v(this,n),(i=t.call(this,e)).connectable=r,i}return p(n,[{key:"_unsubscribe",value: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}}]),n}(I),pe=function(e){g(n,e);var t=_(n);function n(e,r){var i;return v(this,n),(i=t.call(this)).source=e,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return p(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new O).add(this.source.subscribe(new ge(this.getSubject(),this))),e.closed&&(this._connection=null,e=O.EMPTY)),e}},{key:"refCount",value:function(){return de()(this)}}]),n}(N),ve=function(){var e=pe.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),ge=function(e){g(n,e);var t=_(n);function n(e,r){var i;return v(this,n),(i=t.call(this,e)).connectable=r,i}return p(n,[{key:"_error",value:function(e){this._unsubscribe(),i(r(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),i(r(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value: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()}}}]),n}(z);function ye(){return new q}function me(){return function(e){return de()((t=ye,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,ve);return r.source=e,r.subjectFactory=n,r})(e));var t}}function _e(e){for(var t in e)if(e[t]===_e)return t;throw Error("Could not find renamed property on target object.")}function be(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ke(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ke).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function xe(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var we=_e({__forward_ref__:_e});function Ce(e){return e.__forward_ref__=Ce,e.toString=function(){return ke(this())},e}function Oe(e){return Ee(e)?e():e}function Ee(e){return"function"==typeof e&&e.hasOwnProperty(we)&&e.__forward_ref__===Ce}function Te(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Se(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function Ae(e){return De(e,Fe)||De(e,Re)}function De(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ve(e){return e&&(e.hasOwnProperty(Me)||e.hasOwnProperty(je))?e[Me]:null}var Ie,Fe=_e({"\u0275prov":_e}),Me=_e({"\u0275inj":_e}),Re=_e({ngInjectableDef:_e}),je=_e({ngInjectorDef:_e}),Pe=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function Ne(){return Ie}function Be(e){var t=Ie;return Ie=e,t}function He(e,t,n){var r=Ae(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&Pe.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(ke(e),"]"))}function Le(e){return{toString:e}.toString()}var ze=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),qe=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),Ge="undefined"!=typeof globalThis&&globalThis,Ue="undefined"!=typeof window&&window,Ze="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,We="undefined"!=typeof global&&global,$e=Ge||We||Ue||Ze,Qe={},Ye=[],Ke=_e({"\u0275cmp":_e}),Je=_e({"\u0275dir":_e}),Xe=_e({"\u0275pipe":_e}),et=_e({"\u0275mod":_e}),tt=_e({"\u0275loc":_e}),nt=_e({"\u0275fac":_e}),rt=_e({__NG_ELEMENT_ID__:_e}),it=0;function ot(e){return Le(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===ze.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Ye,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||qe.Emulated,id:"c",styles:e.styles||Ye,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,i=e.features,o=e.pipes;return n.id+=it++,n.inputs=ct(e.inputs,t),n.outputs=ct(e.outputs),i&&i.forEach(function(e){return e(n)}),n.directiveDefs=r?function(){return("function"==typeof r?r():r).map(at)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(st)}:null,n})}function at(e){return ft(e)||function(e){return e[Je]||null}(e)}function st(e){return function(e){return e[Xe]||null}(e)}var ut={};function lt(e){var t={type:e.type,bootstrap:e.bootstrap||Ye,declarations:e.declarations||Ye,imports:e.imports||Ye,exports:e.exports||Ye,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&Le(function(){ut[e.id]=e.type}),t}function ct(e,t){if(null==e)return Qe;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var dt=ot;function ht(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function ft(e){return e[Ke]||null}function pt(e,t){var n=e[et]||null;if(!n&&!0===t)throw new Error("Type ".concat(ke(e)," does not have '\u0275mod' property."));return n}var vt=20,gt=10;function yt(e){return Array.isArray(e)&&"object"==typeof e[1]}function mt(e){return Array.isArray(e)&&!0===e[1]}function _t(e){return 0!=(8&e.flags)}function bt(e){return 2==(2&e.flags)}function kt(e){return 1==(1&e.flags)}function xt(e){return null!==e.template}function wt(e,t){return e.hasOwnProperty(nt)?e[nt]:null}var Ct=function(e){g(n,e);var t=_(n);function n(e,r){var i;return v(this,n),(i=t.call(this,function(e,t){var n=e?"NG0".concat(e,": "):"";return"".concat(n).concat(t)}(e,r))).code=e,i}return n}(b(Error));function Ot(e){return"string"==typeof e?e:null==e?"":String(e)}function Et(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Ot(e)}function Tt(e,t){var n=t?" in ".concat(t):"";throw new Ct("201","No provider for ".concat(Et(e)," found").concat(n))}var St=function(){function e(t,n,r){v(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return p(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function At(){return Dt}function Dt(e){return e.type.prototype.ngOnChanges&&(e.setInput=It),Vt}function Vt(){var e=Ft(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===Qe)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function It(e,t,n,r){var i=Ft(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:Qe,current:null}),o=i.current||(i.current={}),a=i.previous,s=this.declaredInputs[n],u=a[s];o[s]=new St(u&&u.currentValue,t,a===Qe),e[r]=t}function Ft(e){return e.__ngSimpleChanges__||null}At.ngInherit=!0;var Mt=void 0;function Rt(){return void 0!==Mt?Mt:"undefined"!=typeof document?document:void 0}function jt(e){return!!e.listen}var Pt={createRenderer:function(e,t){return Rt()}};function Nt(e){for(;Array.isArray(e);)e=e[0];return e}function Bt(e,t){return Nt(t[e])}function Ht(e,t){return Nt(t[e.index])}function Lt(e,t){return e.data[t]}function zt(e,t){return e[t]}function qt(e,t){var n=t[e];return yt(n)?n:n[0]}function Gt(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Ut(e){return 4==(4&e[2])}function Zt(e){return 128==(128&e[2])}function Wt(e,t){return null==t?null:e[t]}function $t(e){e[18]=0}function Qt(e,t){e[5]+=t;for(var n=e,r=e[3];null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}var Yt={lFrame:_n(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Kt(){return Yt.bindingsEnabled}function Jt(){return Yt.lFrame.lView}function Xt(){return Yt.lFrame.tView}function en(e){Yt.lFrame.contextLView=e}function tn(){for(var e=nn();null!==e&&64===e.type;)e=e.parent;return e}function nn(){return Yt.lFrame.currentTNode}function rn(e,t){var n=Yt.lFrame;n.currentTNode=e,n.isParent=t}function on(){return Yt.lFrame.isParent}function an(){Yt.lFrame.isParent=!1}function sn(){return Yt.isInCheckNoChangesMode}function un(e){Yt.isInCheckNoChangesMode=e}function ln(){var e=Yt.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function cn(){return Yt.lFrame.bindingIndex++}function dn(e){var t=Yt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function hn(e){Yt.lFrame.currentDirectiveIndex=e}function fn(){return Yt.lFrame.currentQueryIndex}function pn(e){Yt.lFrame.currentQueryIndex=e}function vn(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function gn(e,t,n){if(n&Pe.SkipSelf){for(var r=t,i=e;!(null!==(r=r.parent)||n&Pe.Host||null===(r=vn(i))||(i=i[15],10&r.type)););if(null===r)return!1;t=r,e=i}var o=Yt.lFrame=mn();return o.currentTNode=t,o.lView=e,!0}function yn(e){var t=mn(),n=e[1];Yt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function mn(){var e=Yt.lFrame,t=null===e?null:e.child;return null===t?_n(e):t}function _n(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function bn(){var e=Yt.lFrame;return Yt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var kn=bn;function xn(){var e=bn();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function wn(e){return(Yt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Yt.lFrame.contextLView))[8]}function Cn(){return Yt.lFrame.selectedIndex}function On(e){Yt.lFrame.selectedIndex=e}function En(){var e=Yt.lFrame;return Lt(e.tView,e.selectedIndex)}function Tn(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[s]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t&&(e[2]+=2048,o.call(a)):o.call(a)}var Fn=-1,Mn=function e(t,n,r){v(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function Rn(e,t,n){for(var r=jt(e),i=0;it){a=o-1;break}}}for(;o>16,r=t;n>0;)r=r[15],n--;return r}var zn=!0;function qn(e){var t=zn;return zn=e,t}var Gn=0;function Un(e,t){var n=Wn(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Zn(r.data,e),Zn(t,null),Zn(r.blueprint,null));var i=$n(e,t),o=e.injectorIndex;if(Bn(i))for(var a=Hn(i),s=Ln(i,t),u=s[1].data,l=0;l<8;l++)t[o+l]=s[a+l]|u[a+l];return t[o+8]=i,o}function Zn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Wn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function $n(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,r=null,i=t;null!==i;){var o=i[1],a=o.type;if(null===(r=2===a?o.declTNode:1===a?i[6]:null))return Fn;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Fn}function Qn(e,t,n){!function(e,t,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(rt)&&(r=n[rt]),null==r&&(r=n[rt]=Gn++);var i=255&r,o=1<3&&void 0!==arguments[3]?arguments[3]:Pe.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=ir(n);if("function"==typeof o){if(!gn(t,e,r))return r&Pe.Host?Yn(i,n,r):Kn(t,n,r,i);try{var a=o();if(null!=a||r&Pe.Optional)return a;Tt(n)}finally{kn()}}else if("number"==typeof o){var s=null,u=Wn(e,t),l=Fn,c=r&Pe.Host?t[16][6]:null;for((-1===u||r&Pe.SkipSelf)&&((l=-1===u?$n(e,t):t[u+8])!==Fn&&ar(r,!1)?(s=t[1],u=Hn(l),t=Ln(l,t)):u=-1);-1!==u;){var d=t[1];if(or(o,u,d.data)){var h=tr(u,t,n,s,r,c);if(h!==Xn)return h}(l=t[u+8])!==Fn&&ar(r,t[1].data[u+8]===c)&&or(o,u,t)?(s=d,u=Hn(l),t=Ln(l,t)):u=-1}}}return Kn(t,n,r,i)}var Xn={};function er(){return new sr(tn(),Jt())}function tr(e,t,n,r,i,o){var a=t[1],s=a.data[e+8],u=nr(s,a,n,null==r?bt(s)&&zn:r!=a&&0!=(3&s.type),i&Pe.Host&&o===s);return null!==u?rr(t,a,u,s):Xn}function nr(e,t,n,r,i){for(var o=e.providerIndexes,a=t.data,s=1048575&o,u=e.directiveStart,l=o>>20,c=i?s+l:e.directiveEnd,d=r?s:s+l;d=u&&h.type===n)return d}if(i){var f=a[u];if(f&&xt(f)&&f.type===n)return u}return null}function rr(e,t,n,r){var i=e[n],o=t.data;if(i instanceof Mn){var a=i;a.resolving&&function(e,t){throw new Ct("200","Circular dependency in DI detected for ".concat(e).concat(""))}(Et(o[n]));var s=qn(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?Be(a.injectImpl):null;gn(e,r,Pe.Default);try{i=e[n]=a.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.type.prototype,i=r.ngOnInit,o=r.ngDoCheck;if(r.ngOnChanges){var a=Dt(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==u&&Be(u),qn(s),a.resolving=!1,kn()}}return i}function ir(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(rt)?e[rt]:void 0;return"number"==typeof t?t>=0?255&t:er:t}function or(e,t,n){var r=64&e,i=32&e;return!!((128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<=e.length?e.push(n):e.splice(t,0,n)}function gr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function yr(e,t){for(var n=[],r=0;r=0?e[1|r]=n:function(e,t,n,r){var i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r=~r,t,n),r}function _r(e,t){var n=br(e,t);if(n>=0)return e[1|n]}function br(e,t){return function(e,t,n){for(var r=0,i=e.length>>1;i!==r;){var o=r+(i-r>>1),a=e[o<<1];if(t===a)return o<<1;a>t?i=o:r=o+1}return~(i<<1)}(e,t)}var kr={},xr=/\n/gm,wr="__source",Cr=_e({provide:String,useValue:_e}),Or=void 0;function Er(e){var t=Or;return Or=e,t}function Tr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Default;if(void 0===Or)throw new Error("inject() must be called from an injection context");return null===Or?He(e,void 0,t):Or.get(e,t&Pe.Optional?null:void 0,t)}function Sr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Default;return(Ne()||Tr)(Oe(e),t)}function Ar(e){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=ke(t);if(Array.isArray(t))i=t.map(ke).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):ke(s)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(xr,"\n "))}("\n"+e.message,i,n,r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}var Ir,Fr,Mr=Dr(dr("Inject",function(e){return{token:e}}),-1),Rr=Dr(dr("Optional"),8),jr=Dr(dr("SkipSelf"),4);function Pr(e){var t;return(null===(t=function(){if(void 0===Ir&&(Ir=null,$e.trustedTypes))try{Ir=$e.trustedTypes.createPolicy("angular",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return Ir}())||void 0===t?void 0:t.createHTML(e))||e}function Nr(e){var t;return(null===(t=function(){if(void 0===Fr&&(Fr=null,$e.trustedTypes))try{Fr=$e.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return Fr}())||void 0===t?void 0:t.createHTML(e))||e}var Br=function(){function e(t){v(this,e),this.changingThisBreaksApplicationSecurity=t}return p(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),e}(),Hr=function(e){g(n,e);var t=_(n);function n(){return v(this,n),t.apply(this,arguments)}return p(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(Br),Lr=function(e){g(n,e);var t=_(n);function n(){return v(this,n),t.apply(this,arguments)}return p(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(Br),zr=function(e){g(n,e);var t=_(n);function n(){return v(this,n),t.apply(this,arguments)}return p(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(Br),qr=function(e){g(n,e);var t=_(n);function n(){return v(this,n),t.apply(this,arguments)}return p(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(Br),Gr=function(e){g(n,e);var t=_(n);function n(){return v(this,n),t.apply(this,arguments)}return p(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(Br);function Ur(e){return e instanceof Br?e.changingThisBreaksApplicationSecurity:e}function Zr(e,t){var n=Wr(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===t}function Wr(e){return e instanceof Br&&e.getTypeName()||null}var $r=function(){function e(t){v(this,e),this.inertDocumentHelper=t}return p(e,[{key:"getInertBodyElement",value:function(e){e=""+e;try{var t=(new window.DOMParser).parseFromString(Pr(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(n){return null}}}]),e}(),Qr=function(){function e(t){if(v(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var r=this.inertDocument.createElement("body");n.appendChild(r)}}return p(e,[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Pr(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=Pr(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();ai.hasOwnProperty(t)&&!ni.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(pi(e))}},{key:"checkClobberedElement",value: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: ".concat(e.outerHTML));return t}}]),e}(),hi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fi=/([^\#-~ |!])/g;function pi(e){return e.replace(/&/g,"&").replace(hi,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(fi,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function vi(e,t){var n=null;try{ti=ti||function(e){var t=new Qr(e);return function(){try{return!!(new window.DOMParser).parseFromString(Pr(""),"text/html")}catch(e){return!1}}()?new $r(t):t}(e);var r=t?String(t):"";n=ti.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=ti.getInertBodyElement(r)}while(r!==o);return Pr((new di).sanitizeChildren(gi(n)||n))}finally{if(n)for(var a=gi(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function gi(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var yi=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}({});function mi(e){var t,n=(t=Jt())&&t[12];return n?Nr(n.sanitize(yi.HTML,e)||""):Zr(e,"HTML")?Nr(Ur(e)):vi(Rt(),Ot(e))}function _i(e){return e.ngDebugContext}function bi(e){return e.ngOriginalError}function ki(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&(e[r-1][4]=i[4]);var a=gr(e,gt+t);Ki(i[1],n=i,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function Ni(e,t){if(!(256&t[2])){var n=t[11];jt(n)&&n.destroyNode&&Ki(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Bi(e[1],e);for(;t;){var n=null;if(yt(t))n=t[13];else{var r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)yt(t)&&Bi(t[1],t),t=t[3];null===t&&(t=e),yt(t)&&Bi(t[1],t),n=t&&t[4]}t=n}}(t)}}function Bi(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r=0?r[i=l]():r[i=-l].unsubscribe(),o+=2}else{var c=r[i=n[o+1]];n[o].call(c)}if(null!==r){for(var d=i+1;do?"":i[c+1].toLowerCase();var h=8&r?d:null;if(h&&-1!==no(h,l,0)||2&r&&l!==d){if(uo(r))return!1;a=!0}}}}else{if(!a&&!uo(r)&&!uo(u))return!1;if(a&&uo(u))continue;a=!1,r=u|1&r}}return uo(r)||a}function uo(e){return 0==(1&e)}function lo(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+s+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""===i||uo(a)||(t+=fo(o,i),i=""),r=a,o=o||!uo(r);n++}return""!==i&&(t+=fo(o,i)),t}var vo={};function go(e){yo(Xt(),Jt(),Cn()+e,sn())}function yo(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&Sn(t,i,n)}else{var o=e.preOrderHooks;null!==o&&An(t,o,0,n)}On(n)}function mo(e,t){return e<<17|t<<2}function _o(e){return e>>17&32767}function bo(e){return 2|e}function ko(e){return(131068&e)>>2}function xo(e,t){return-131069&e|t<<2}function wo(e){return 1|e}function Co(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;rvt&&yo(e,t,vt,sn()),n(r,i)}finally{On(o)}}function Io(e,t,n){if(_t(t))for(var r=t.directiveEnd,i=t.directiveStart;i2&&void 0!==arguments[2]?arguments[2]:Ht,r=t.localNames;if(null!==r)for(var i=t.index+1,o=0;o0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=u&&s.push(u),s.push(r,i,a)}}function Lo(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function zo(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function qo(e,t,n){if(n){if(t.exportAs)for(var r=0;r0&&Ko(n)}}function Ko(e){for(var t=Di(e);null!==t;t=Vi(t))for(var n=gt;n0&&Ko(r)}var o=e[1].components;if(null!==o)for(var a=0;a0&&Ko(s)}}function Jo(e,t){var n=qt(t,e),r=n[1];!function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:kr;if(t===kr){var n=new Error("NullInjectorError: No provider for ".concat(ke(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),ha=new hr("Set Injector scope."),fa={},pa={},va=[],ga=void 0;function ya(){return void 0===ga&&(ga=new da),ga}function ma(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new _a(e,n,t||ya(),r)}var _a=function(){function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;v(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&pr(n,function(e){return i.processProvider(e,t,n)}),pr([t],function(e){return i.processInjectorType(e,[],a)}),this.records.set(ca,xa(void 0,this));var s=this.records.get(ha);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:ke(t))}return p(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kr,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Pe.Default;this.assertNotDestroyed();var r=Er(this);try{if(!(n&Pe.SkipSelf)){var i=this.records.get(e);if(void 0===i){var o=Oa(e)&&Ae(e);i=o&&this.injectableDefInScope(o)?xa(ba(e),fa):null,this.records.set(e,i)}if(null!=i)return this.hydrate(e,i)}var a=n&Pe.Self?ya():this.parent;return a.get(e,t=n&Pe.Optional&&t===kr?null:t)}catch(u){if("NullInjectorError"===u.name){var s=u.ngTempTokenPath=u.ngTempTokenPath||[];if(s.unshift(ke(e)),r)throw u;return Vr(u,e,"R3InjectorError",this.source)}throw u}finally{Er(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(ke(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var r=this;if(!(e=Oe(e)))return!1;var i=Ve(e),o=null==i&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(i=Ve(o)),null==i)return!1;if(null!=i.imports&&!s){var u;n.push(a);try{pr(i.imports,function(e){r.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))})}finally{}if(void 0!==u)for(var l=function(e){var t=u[e],n=t.ngModule,i=t.providers;pr(i,function(e){return r.processProvider(e,n,i||va)})},c=0;c0){var n=yr(t,"?");throw new Error("Can't resolve all parameters for ".concat(ke(e),": (").concat(n.join(", "),")."))}var r=function(e){var t=e&&(e[Fe]||e[Re]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(n,'" class.')),t}return null}(e);return null!==r?function(){return r.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function ka(e,t,n){var r,i=void 0;if(Ca(e)){var o=Oe(e);return wt(o)||ba(o)}if(wa(e))i=function(){return Oe(e.useValue)};else if((r=e)&&r.useFactory)i=function(){return e.useFactory.apply(e,l(Ar(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return Sr(Oe(e.useExisting))};else{var a=Oe(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return wt(a)||ba(a);i=function(){return h(a,l(Ar(e.deps)))}}return i}function xa(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function wa(e){return null!==e&&"object"==typeof e&&Cr in e}function Ca(e){return"function"==typeof e}function Oa(e){return"function"==typeof e||"object"==typeof e&&e instanceof hr}var Ea=function(e,t,n){return function(e){var t=ma(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0);return t._resolveInjectorDefTypes(),t}({name:n},t,e,n)},Ta=function(){var e=function(){function e(){v(this,e)}return p(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Ea(e,t,""):Ea(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=kr,e.NULL=new da,e.\u0275prov=Te({token:e,providedIn:"any",factory:function(){return Sr(ca)}}),e.__NG_ELEMENT_ID__=-1,e}();function Sa(e,t){Tn(Gt(e)[1],tn())}function Aa(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,r=[e];t;){var i=void 0;if(xt(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);var o=e;o.inputs=Da(e.inputs),o.declaredInputs=Da(e.declaredInputs),o.outputs=Da(e.outputs);var a=i.hostBindings;a&&Fa(e,a);var s=i.viewQuery,u=i.contentQueries;if(s&&Va(e,s),u&&Ia(e,u),be(e.inputs,i.inputs),be(e.declaredInputs,i.declaredInputs),be(e.outputs,i.outputs),xt(i)&&i.data.animation){var l=e.data;l.animation=(l.animation||[]).concat(i.data.animation)}}var c=i.features;if(c)for(var d=0;d=0;r--){var i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Pn(i.hostAttrs,n=Pn(n,i.hostAttrs))}}(r)}function Da(e){return e===Qe?{}:e===Ye?[]:e}function Va(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function Ia(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,i){t(e,r,i),n(e,r,i)}:t}function Fa(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,r){t(e,r),n(e,r)}:t}var Ma=null;function Ra(){if(!Ma){var e=$e.Symbol;if(e&&e.iterator)Ma=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:Pe.Default,n=Jt();if(null===n)return Sr(e,t);var r=tn();return Jn(r,n,Oe(e),t)}function Za(e,t,n){var r=Jt();return Ha(r,cn(),t)&&function(e,t,n,r,i,o,a,s){var u,l,c=Ht(t,n),d=t.inputs;null!=d&&(u=d[r])?(ua(e,n,u,r,i),bt(t)&&function(e,t){var n=qt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r="class"===(l=r)?"className":"for"===l?"htmlFor":"formaction"===l?"formAction":"innerHtml"===l?"innerHTML":"readonly"===l?"readOnly":"tabindex"===l?"tabIndex":l,i=null!=a?a(i,t.value||"",r):i,jt(o)?o.setProperty(c,r,i):jn(r)||(c.setProperty?c.setProperty(r,i):c[r]=i))}(Xt(),En(),r,e,t,r[11],n),Za}function Wa(e,t,n,r,i){var o=i?"class":"style";ua(e,n,t.inputs[o],o,r)}function $a(e,t,n,r){var i=Jt(),o=Xt(),a=vt+e,s=i[11],u=i[a]=Ri(s,t,Yt.lFrame.currentNamespace),l=o.firstCreatePass?function(e,t,n,r,i,o,a){var s=t.consts,u=Eo(t,e,2,i,Wt(s,o));return Bo(t,n,u,Wt(s,a)),null!==u.attrs&&la(u,u.attrs,!1),null!==u.mergedAttrs&&la(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(a,o,i,0,t,n,r):o.data[a];rn(l,!0);var c=l.mergedAttrs;null!==c&&Rn(s,u,c);var d=l.classes;null!==d&&to(s,u,d);var h=l.styles;null!==h&&eo(s,u,h),64!=(64&l.flags)&&Wi(o,i,u,l),0===Yt.lFrame.elementDepthCount&&wi(u,i),Yt.lFrame.elementDepthCount++,kt(l)&&(Fo(o,i,l),Io(o,l,i)),null!==r&&Mo(i,l)}function Qa(){var e=tn();on()?an():rn(e=e.parent,!1);var t=e;Yt.lFrame.elementDepthCount--;var n=Xt();n.firstCreatePass&&(Tn(n,e),_t(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Wa(n,t,Jt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Wa(n,t,Jt(),t.stylesWithoutHost,!1)}function Ya(e,t,n,r){$a(e,t,n,r),Qa()}function Ka(e,t,n){var r,i;(function(e,t,n){var r=Jt(),i=Xt(),o=e+vt,a=i.firstCreatePass?function(e,t,n,r,i){var o=t.consts,a=Wt(o,r),s=Eo(t,e,8,"ng-container",a);return null!==a&&la(s,a,!0),Bo(t,n,s,Wt(o,i)),null!==t.queries&&t.queries.elementStart(t,s),s}(o,i,r,t,n):i.data[o];rn(a,!0);var s=r[o]=r[11].createComment("");Wi(i,r,s,a),wi(s,r),kt(a)&&(Fo(i,r,a),Io(i,a,r)),null!=n&&Mo(r,a)})(e,t,n),r=tn(),i=Xt(),on()?an():rn(r=r.parent,!1),i.firstCreatePass&&(Tn(i,r),_t(r)&&i.queries.elementEnd(r))}function Ja(){return Jt()}function Xa(e){return!!e&&"function"==typeof e.then}function es(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=Jt(),o=Xt(),a=tn();return ns(o,i,i[11],a,e,t,n,r),es}function ts(e,t,n,r){var i=e.cleanup;if(null!=i)for(var o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}function ns(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,u=kt(r),l=e.firstCreatePass,c=l&&aa(e),d=oa(t),h=!0;if(3&r.type){var f=Ht(r,t),p=s?s(f):Qe,v=p.target||f,g=d.length,y=s?function(e){return s(Nt(e[r.index])).target}:r.index;if(jt(n)){var m=null;if(!s&&u&&(m=ts(e,t,i,r.index)),null!==m){var _=m.__ngLastListenerFn__||m;_.__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,h=!1}else{o=is(r,t,o,!1);var b=n.listen(p.name||v,i,o);d.push(o,b),c&&c.push(i,y,g,g+1)}}else o=is(r,t,o,!0),v.addEventListener(i,o,a),d.push(o),c&&c.push(i,y,g,a)}else o=is(r,t,o,!1);var k,x=r.outputs;if(h&&null!==x&&(k=x[i])){var w=k.length;if(w)for(var C=0;C0&&void 0!==arguments[0]?arguments[0]:1;return wn(e)}function as(e,t){for(var n=null,r=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=Jt(),i=Xt(),o=Eo(i,vt+e,16,null,n||null);null===o.projection&&(o.projection=t),an(),64!=(64&o.flags)&&Ji(i,r,o)}var ls=[];function cs(e,t,n,r,i){for(var o=e[n+1],a=null===t,s=r?_o(o):ko(o),u=!1;0!==s&&(!1===u||a);){var l=e[s+1];ds(e[s],t)&&(u=!0,e[s+1]=r?wo(l):bo(l)),s=r?_o(l):ko(l)}u&&(e[n+1]=r?bo(o):wo(o))}function ds(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&br(e,t)>=0}var hs={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function fs(e){return e.substring(hs.key,hs.keyEnd)}function ps(e){return e.substring(hs.value,hs.valueEnd)}function vs(e,t){var n=hs.textEnd,r=hs.key=gs(e,t,n);return n===r?-1:(r=hs.keyEnd=function(e,t,n){for(var r;t=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=ys(e,r,n),r=hs.value=gs(e,r,n),r=hs.valueEnd=function(e,t,n){for(var r=-1,i=-1,o=-1,a=t,s=a;a32&&(s=a),o=i,i=r,r=-33&u}return s}(e,r,n),ys(e,r,n))}function gs(e,t,n){for(;t=0;n=vs(t,n))Os(e,fs(t),ps(t))}function ks(e,t){return t>=e.expandoStartIndex}function xs(e,t,n,r){var i=e.data;if(null===i[n+1]){var o=i[Cn()],a=ks(e,n);As(o,r)&&null===t&&!a&&(t=!1),t=function(e,t,n,r){var i=function(e){var t=Yt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e),o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=Cs(n=ws(null,e,t,n,r),t.attrs,r),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==i)if(n=ws(i,e,t,n,r),null===o){var s=function(e,t,n){var r=n?t.classBindings:t.styleBindings;if(0!==ko(r))return e[_o(r)]}(e,t,r);void 0!==s&&Array.isArray(s)&&function(e,t,n,r){e[_o(n?t.classBindings:t.styleBindings)]=r}(e,t,r,s=Cs(s=ws(null,e,t,s[1],r),t.attrs,r))}else o=function(e,t,n){for(var r=void 0,i=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(c=!0):l=n,i)if(0!==u){var d=_o(e[s+1]);e[r+1]=mo(d,s),0!==d&&(e[d+1]=xo(e[d+1],r)),e[s+1]=131071&e[s+1]|r<<17}else e[r+1]=mo(s,0),0!==s&&(e[s+1]=xo(e[s+1],r)),s=r;else e[r+1]=mo(u,0),0===s?s=r:e[u+1]=xo(e[u+1],r),u=r;c&&(e[r+1]=bo(e[r+1])),cs(e,l,r,!0),cs(e,l,r,!1),function(e,t,n,r,i){var o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&br(o,t)>=0&&(n[r+1]=wo(n[r+1]))}(t,l,e,r,o),a=mo(s,u),o?t.classBindings=a:t.styleBindings=a}(i,o,t,n,a,r)}}function ws(e,t,n,r,i){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var u=e[i],l=Array.isArray(u),c=l?u[1]:u,d=null===c,h=n[i+1];h===vo&&(h=d?ls:void 0);var f=d?_r(h,r):c===r?h:void 0;if(l&&!Ss(f)&&(f=_r(u,r)),Ss(f)&&(s=f,a))return s;var p=e[i+1];i=a?_o(p):ko(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(s=_r(v,r))}return s}function Ss(e){return void 0!==e}function As(e,t){return 0!=(e.flags&(t?16:32))}function Ds(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Jt(),r=Xt(),i=e+vt,o=r.firstCreatePass?Eo(r,i,1,t,null):r.data[i],a=n[i]=Mi(n[11],t);Wi(r,n,a,o),rn(o,!1)}function Vs(e){return Is("",e,""),Vs}function Is(e,t,n){var r=Jt(),i=function(e,t,n,r){return Ha(e,cn(),n)?t+Ot(n)+r:vo}(r,e,t,n);return i!==vo&&function(e,t,n){var r=Bt(t,e);!function(e,t,n){jt(e)?e.setValue(t,n):t.textContent=n}(e[11],r,n)}(r,Cn(),i),Is}var Fs=void 0,Ms=["en",[["a","p"],["AM","PM"],Fs],[["AM","PM"],Fs,Fs],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Fs,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Fs,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Fs,"{1} 'at' {0}",Fs],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Rs={};function js(e){return e in Rs||(Rs[e]=$e.ng&&$e.ng.common&&$e.ng.common.locales&&$e.ng.common.locales[e]),Rs[e]}var Ps=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({}),Ns="en-US";function Bs(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,r){throw new Error("ASSERTION ERROR: ".concat(e)+" [Expected=> ".concat(null," ").concat("!="," ").concat(t," <=Actual]"))}(n,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function Hs(e,t,n){var r=Xt();if(r.firstCreatePass){var i=xt(e);Ls(n,r.data,r.blueprint,i,!0),Ls(t,r.data,r.blueprint,i,!1)}}function Ls(e,t,n,r,i){if(e=Oe(e),Array.isArray(e))for(var o=0;o>20;if(Ca(e)||!e.multi){var p=new Mn(l,i,Ua),v=Gs(u,t,i?d:d+f,h);-1===v?(Qn(Un(c,s),a,u),zs(a,e,t.length),t.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[v]=p,s[v]=p)}else{var g=Gs(u,t,d+f,h),y=Gs(u,t,d,d+f),m=y>=0&&n[y];if(i&&!m||!i&&!(g>=0&&n[g])){Qn(Un(c,s),a,u);var _=function(e,t,n,r,i){var o=new Mn(e,n,Ua);return o.multi=[],o.index=t,o.componentProviders=0,qs(o,i,r&&!n),o}(i?Zs:Us,n.length,i,r,l);!i&&m&&(n[y].providerFactory=_),zs(a,e,t.length,0),t.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(_),s.push(_)}else zs(a,e,g>-1?g:y,qs(n[i?y:g],l,!i&&r));!i&&r&&m&&n[y].componentProviders++}}}function zs(e,t,n,r){var i=Ca(t);if(i||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[r,o]):a[s+1].push(r,o)}else a.push(n,o)}}}function qs(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Gs(e,t,n,r){for(var i=n;i1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return Hs(n,r?r(e):e,t)}}}var Qs=function e(){v(this,e)},Ys=function e(){v(this,e)},Ks=function(){function e(){v(this,e)}return p(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(ke(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),Js=function(){var e=function e(){v(this,e)};return e.NULL=new Ks,e}();function Xs(){}function eu(e,t){return new nu(Ht(e,t))}var tu=function(){return eu(tn(),Jt())},nu=function(){var e=function e(t){v(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=tu,e}();function ru(e){return e instanceof nu?e.nativeElement:e}var iu=function e(){v(this,e)},ou=function(){var e=function e(){v(this,e)};return e.__NG_ELEMENT_ID__=function(){return au()},e}(),au=function(){var e=Jt(),t=qt(tn().index,e);return function(e){return e[11]}(yt(t)?t:e)},su=function(){var e=function e(){v(this,e)};return e.\u0275prov=Te({token:e,providedIn:"root",factory:function(){return null}}),e}(),uu=new function e(t){v(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}("11.1.0"),lu=function(){function e(){v(this,e)}return p(e,[{key:"supports",value:function(e){return Pa(e)}},{key:"create",value:function(e){return new du(e)}}]),e}(),cu=function(e,t){return t},du=function(){function e(t){v(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||cu}return p(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var o=t[n.index];if(null!==o&&r.push(Nt(o)),mt(o))for(var a=gt;a-1&&(Pi(e,n),gr(t,n))}this._attachedToViewContainer=!1}Ni(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Po(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){ea(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){ta(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){un(!0);try{ta(e,t,n)}finally{un(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,Ki(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return wu(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}}]),e}(),Ou=function(e){g(n,e);var t=_(n);function n(e){var r;return v(this,n),(r=t.call(this,e))._view=e,r}return p(n,[{key:"detectChanges",value:function(){na(this._view)}},{key:"checkNoChanges",value:function(){!function(e){un(!0);try{na(e)}finally{un(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(Cu),Eu=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Su(tn(),Jt(),e)},Tu=function(){var e=function e(){v(this,e)};return e.__NG_ELEMENT_ID__=Eu,e.__ChangeDetectorRef__=!0,e}();function Su(e,t,n){if(!n&&bt(e)){var r=qt(e.index,t);return new Cu(r,r)}return 47&e.type?new Cu(t[16],t):null}var Au=[new gu],Du=new bu([new lu]),Vu=new xu(Au),Iu=function(){return Ru(tn(),Jt())},Fu=function(){var e=function e(){v(this,e)};return e.__NG_ELEMENT_ID__=Iu,e}(),Mu=function(e){g(n,e);var t=_(n);function n(e,r,i){var o;return v(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=r,o.elementRef=i,o}return p(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Oo(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(t)),So(t,n,e),new Cu(n)}}]),n}(Fu);function Ru(e,t){return 4&e.type?new Mu(t,e,eu(e,t)):null}var ju=function e(){v(this,e)},Pu=function e(){v(this,e)},Nu=function(){return qu(tn(),Jt())},Bu=function(){var e=function e(){v(this,e)};return e.__NG_ELEMENT_ID__=Nu,e}(),Hu=function(e){g(n,e);var t=_(n);function n(e,r,i){var o;return v(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=r,o._hostLView=i,o}return p(n,[{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=Lu(this._lContainer);return null!==t&&t[e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){var a=o.get(ju,null);a&&(i=a)}var s=e.create(o,r,void 0,i);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var n=e._lView,r=n[1];if(mt(n[3])){var i=this.indexOf(e);if(-1!==i)this.detach(i);else{var o=n[3],a=new Hu(o,o[6],o[3]);a.detach(a.indexOf(e))}}var s=this._adjustIndex(t),u=this._lContainer;!function(e,t,n,r){var i=gt+r,o=n.length;r>0&&(n[i-1][4]=t),r1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"element",get:function(){return eu(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new sr(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=$n(this._hostTNode,this._hostLView);if(Bn(e)){var t=Ln(e,this._hostLView),n=Hn(e);return new sr(t[1].data[n+8],t)}return new sr(null,this._hostLView)}},{key:"length",get:function(){return this._lContainer.length-gt}}]),n}(Bu);function Lu(e){return e[8]}function zu(e){return e[8]||(e[8]=[])}function qu(e,t){var n,r=t[e.index];if(mt(r))n=r;else{var i;if(8&e.type)i=Nt(r);else{var o=t[11];i=o.createComment("");var a=Ht(e,t);Li(o,Gi(o,a),i,function(e,t){return jt(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=Qo(r,t,i,e),Xo(t,n)}return new Hu(n,e,t)}var Gu={},Uu=function(e){g(n,e);var t=_(n);function n(e){var r;return v(this,n),(r=t.call(this)).ngModule=e,r}return p(n,[{key:"resolveComponentFactory",value:function(e){var t=ft(e);return new $u(t,this.ngModule)}}]),n}(Js);function Zu(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var Wu=new hr("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Ci}}),$u=function(e){g(n,e);var t=_(n);function n(e,r){var i;return v(this,n),(i=t.call(this)).componentDef=e,i.ngModule=r,i.componentType=e.type,i.selector=e.selectors.map(po).join(","),i.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],i.isBoundToModule=!!r,i}return p(n,[{key:"create",value:function(e,t,n,r){var i,o,a=(r=r||this.ngModule)?function(e,t){return{get:function(n,r,i){var o=e.get(n,Gu,i);return o!==Gu||r===Gu?o:t.get(n,r,i)}}}(e,r.injector):e,s=a.get(iu,Pt),u=a.get(su,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=n?function(e,t,n){if(jt(e))return e.selectRootElement(t,n===qe.ShadowDom);var r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(l,n,this.componentDef.encapsulation):Ri(s.createRenderer(null,this.componentDef),c,function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),h=this.componentDef.onPush?576:528,f={components:[],scheduler:Ci,clean:ia,playerHandler:null,flags:0},p=jo(0,null,null,1,0,null,null,null,null,null),v=Oo(null,p,f,h,null,null,s,l,u,a);yn(v);try{var g=function(e,t,n,r,i,o){var a=n[1];n[20]=e;var s=Eo(a,20,2,"#host",null),u=s.mergedAttrs=t.hostAttrs;null!==u&&(la(s,u,!0),null!==e&&(Rn(i,e,u),null!==s.classes&&to(i,e,s.classes),null!==s.styles&&eo(i,e,s.styles)));var l=r.createRenderer(e,t),c=Oo(n,Ro(t),null,t.onPush?64:16,n[20],s,r,l,null,null);return a.firstCreatePass&&(Qn(Un(s,n),a,t.type),zo(a,s),Go(s,n.length,1)),Xo(n,c),n[20]=c}(d,this.componentDef,v,s,l);if(d)if(n)Rn(l,d,["ng-version",uu.full]);else{var y=function(e){for(var t=[],n=[],r=1,i=2;r0&&to(l,d,_.join(" "))}if(o=Lt(p,vt),void 0!==t)for(var b=o.projection=[],k=0;k1&&void 0!==arguments[1]?arguments[1]:Ta.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Pe.Default;return e===Ta||e===ju||e===ca?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(ju),Ju=function(e){g(n,e);var t=_(n);function n(e){var r,i,o;return v(this,n),(r=t.call(this)).moduleType=e,null!==pt(e)&&(i=e,o=new Set,function e(t){var n=pt(t,!0),r=n.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(ke(t)," vs ").concat(ke(t.name)))}(r,Yu.get(r),t),Yu.set(r,t));var i,a=u(Ei(n.imports));try{for(a.s();!(i=a.n()).done;){var s=i.value;o.has(s)||(o.add(s),e(s))}}catch(l){a.e(l)}finally{a.f()}}(i)),r}return p(n,[{key:"create",value:function(e){return new Ku(this.moduleType,e)}}]),n}(Pu);function Xu(e,t,n,r){return nl(Jt(),ln(),e,t,n,r)}function el(e,t,n,r,i){return function(e,t,n,r,i,o,a){var s=t+n;return La(e,s,i,o)?Ba(e,s+2,a?r.call(a,i,o):r(i,o)):tl(e,s+2)}(Jt(),ln(),e,t,n,r,i)}function tl(e,t){var n=e[t];return n===vo?void 0:n}function nl(e,t,n,r,i,o){var a=t+n;return Ha(e,a,i)?Ba(e,a+1,o?r.call(o,i):r(i)):tl(e,a+1)}function rl(e,t){var n,r=Xt(),i=e+vt;r.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var r=t[n];if(e===r.name)return r}throw new Ct("302","The pipe '".concat(e,"' could not be found!"))}(t,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory||(n.factory=wt(n.type)),a=Be(Ua);try{var s=qn(!1),u=o();return qn(s),function(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(r,Jt(),i,u),u}finally{Be(a)}}function il(e,t,n){var r=e+vt,i=Jt(),o=zt(i,r);return function(e,t){return ja.isWrapped(t)&&(t=ja.unwrap(t),e[Yt.lFrame.bindingIndex]=vo),t}(i,function(e,t){return e[1].data[t].pure}(i,r)?nl(i,ln(),t,o.transform,n,o):o.transform(n))}var ol=function(e){g(n,e);var t=_(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return v(this,n),(e=t.call(this)).__isAsync=r,e}return p(n,[{key:"emit",value:function(e){i(r(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,o){var a,s=function(e){return null},u=function(){return null};e&&"object"==typeof e?(a=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(s=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(u=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(a=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},t&&(s=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)}),o&&(u=this.__isAsync?function(){setTimeout(function(){return o()})}:function(){o()}));var l=i(r(n.prototype),"subscribe",this).call(this,a,s,u);return e instanceof O&&e.add(l),l}}]),n}(q);function al(){return this._results[Ra()]()}var sl=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];v(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=Ra(),r=e.prototype;r[n]||(r[n]=al)}return p(e,[{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){var n=this;n.dirty=!1;var r=fr(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[];v(this,e),this.queries=t}return p(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;v(this,e),this.predicate=t,this.flags=n,this.read=r},dl=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];v(this,e),this.queries=t}return p(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;v(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return p(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var r=0;r0)r.push(a[s/2]);else{for(var l=o[s+1],c=t[-u],d=gt;d0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==i}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}},{key:"whenStable",value: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()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sr(Zl))},e.\u0275prov=Te({token:e,factory:e.\u0275fac}),e}(),tc=function(){var e=function(){function e(){v(this,e),this._applications=new Map,nc.addToWindow(this)}return p(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return nc.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Te({token:e,factory:e.\u0275fac}),e}(),nc=new(function(){function e(){v(this,e)}return p(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),rc=!0,ic=!1;function oc(){return ic=!0,rc}var ac=function(e,t,n){var r=new Ju(n);return Promise.resolve(r)},sc=new hr("AllowMultipleToken");function uc(e){if(Jl&&!Jl.destroyed&&!Jl.injector.get(sc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Jl=e.get(hc);var t=e.get(Dl,null);return t&&t.forEach(function(e){return e()}),Jl}function lc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(t),i=new hr(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=dc();if(!o||o.injector.get(sc,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var a=n.concat(t).concat({provide:i,useValue:!0},{provide:ha,useValue:"platform"});uc(Ta.create({providers:a,name:r}))}return cc(i)}}function cc(e){var t=dc();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}function dc(){return Jl&&!Jl.destroyed?Jl:null}var hc=function(){var e=function(){function e(t){v(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return p(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r,i=this,o=(r={ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1},"noop"===(n=t?t.ngZone:void 0)?new Xl:("zone.js"===n?void 0:n)||new Zl({enableLongStackTrace:oc(),shouldCoalesceEventChangeDetection:!!(null==r?void 0:r.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==r?void 0:r.ngZoneRunCoalescing)})),a=[{provide:Zl,useValue:o}];return o.run(function(){var t=Ta.create({providers:a,parent:i.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(xi,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var e=o.onError.subscribe({next:function(e){r.handleError(e)}});n.onDestroy(function(){vc(i._modules,n),e.unsubscribe()})}),function(e,t,r){try{var o=((a=n.injector.get(El)).runInitializers(),a.donePromise.then(function(){return Bs(n.injector.get(Ml,Ns)||Ns),i._moduleDoBootstrap(n),n}));return Xa(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var a}(r,o)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=fc({},n);return ac(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,r)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(pc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(ke(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)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value: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}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sr(Ta))},e.\u0275prov=Te({token:e,factory:e.\u0275fac}),e}();function fc(e,t){return Array.isArray(t)?t.reduce(fc,e):Object.assign(Object.assign({},e),t)}var pc=function(){var e=function(){function e(t,n,r,i,o,a){var s=this;v(this,e),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var u=new N(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),l=new N(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){Zl.assertNotInAngularZone(),Ul(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Zl.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=ce(u,l.pipe(me()))}return p(e,[{key:"bootstrap",value: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 Ys?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(ju),o=n.create(Ta.NULL,[],t||n.selector,i),a=o.location.nativeElement,s=o.injector.get(ec,null),u=s&&o.injector.get(tc);return s&&u&&u.registerApplication(a,s),o.onDestroy(function(){r.detachView(o.hostView),vc(r.components,o),u&&u.unregisterApplication(a)}),this._loadComponent(o),oc()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=u(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(r){n.e(r)}finally{n.f()}}catch(i){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(i)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;vc(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Il,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Sr(Zl),Sr(Fl),Sr(Ta),Sr(xi),Sr(Js),Sr(El))},e.\u0275prov=Te({token:e,factory:e.\u0275fac}),e}();function vc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var gc=lc(null,"core",[{provide:Vl,useValue:"unknown"},{provide:hc,deps:[Ta]},{provide:tc,deps:[]},{provide:Fl,deps:[]}]),yc=[{provide:pc,useClass:pc,deps:[Zl,Fl,Ta,xi,Js,El]},{provide:Wu,deps:[Zl],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:El,useClass:El,deps:[[new Rr,Ol]]},{provide:ql,useClass:ql,deps:[]},Sl,{provide:bu,useFactory:function(){return Du},deps:[]},{provide:xu,useFactory:function(){return Vu},deps:[]},{provide:Ml,useFactory:function(e){return Bs(e=e||"undefined"!=typeof $localize&&$localize.locale||Ns),e},deps:[[new Mr(Ml),new Rr,new jr]]},{provide:Rl,useValue:"USD"}],mc=function(){var e=function e(t){v(this,e)};return e.\u0275mod=lt({type:e}),e.\u0275inj=Se({factory:function(t){return new(t||e)(Sr(pc))},providers:yc}),e}(),_c=null;function bc(){return _c}var kc=function e(){v(this,e)},xc=new hr("DocumentToken"),wc=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),Cc=function e(){v(this,e)},Oc=function(){var e=function(e){g(n,e);var t=_(n);function n(e){var r;return v(this,n),(r=t.call(this)).locale=e,r}return p(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=js(t);if(n)return n;var r=t.split("-")[0];if(n=js(r))return n;if("en"===r)return Ms;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[Ps.PluralCase]}(t||this.locale)(e)){case wc.Zero:return"zero";case wc.One:return"one";case wc.Two:return"two";case wc.Few:return"few";case wc.Many:return"many";default:return"other"}}}]),n}(Cc);return e.\u0275fac=function(t){return new(t||e)(Sr(Ml))},e.\u0275prov=Te({token:e,factory:e.\u0275fac}),e}(),Ec=function(){var e=function(){function e(t,n,r,i){v(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return p(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(ke(e.item)));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}},{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Pa(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ua(bu),Ua(xu),Ua(nu),Ua(ou))},e.\u0275dir=dt({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),Tc=function(){function e(t,n,r,i){v(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}return p(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),Sc=function(){var e=function(){function e(t,n,r){v(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return p(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new Tc(null,t._ngForOf,-1,-1),null===i?void 0:i),a=new Ac(e,o);n.push(a)}else if(null==i)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){var s=t._viewContainer.get(r);t._viewContainer.move(s,i);var u=new Ac(e,s);n.push(u)}});for(var r=0;r1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},$e.getAllAngularTestabilities=function(){return e.getAllTestabilities()},$e.getAllAngularRootElements=function(){return e.getAllRootElements()},$e.frameworkStabilizers||($e.frameworkStabilizers=[]),$e.frameworkStabilizers.push(function(e){var t=$e.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(i)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?bc().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,nc=t}}]),e}(),zc=new hr("EventManagerPlugins"),qc=function(){var e=function(){function e(t,n){var r=this;v(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=r}),this._plugins=t.slice().reverse()}return p(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r-1&&(t.splice(n,1),o+=e+".")}),o+=i,0!=t.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&sd.hasOwnProperty(t)&&(t=sd[t]))}return ad[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),od.forEach(function(r){r!=n&&(0,ud[r])(e)&&(t+=r+".")}),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded(function(){return t(i)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(Gc);return e.\u0275fac=function(t){return new(t||e)(Sr(xc))},e.\u0275prov=Te({token:e,factory:e.\u0275fac}),e}(),cd=function(){var e=function e(){v(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Te({factory:function(){return Sr(dd)},token:e,providedIn:"root"}),e}(),dd=function(){var e=function(e){g(n,e);var t=_(n);function n(e){var r;return v(this,n),(r=t.call(this))._doc=e,r}return p(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case yi.NONE:return t;case yi.HTML:return Zr(t,"HTML")?Ur(t):vi(this._doc,String(t)).toString();case yi.STYLE:return Zr(t,"Style")?Ur(t):t;case yi.SCRIPT:if(Zr(t,"Script"))return Ur(t);throw new Error("unsafe value used in a script context");case yi.URL:return Wr(t),Zr(t,"URL")?Ur(t):Jr(String(t));case yi.RESOURCE_URL:if(Zr(t,"ResourceURL"))return Ur(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return new Hr(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new Lr(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new zr(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new qr(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new Gr(e)}}]),n}(cd);return e.\u0275fac=function(t){return new(t||e)(Sr(xc))},e.\u0275prov=Te({factory:function(){return e=Sr(ca),new dd(e.get(xc));var e},token:e,providedIn:"root"}),e}(),hd=lc(gc,"browser",[{provide:Vl,useValue:"browser"},{provide:Dl,useValue:function(){Pc.makeCurrent(),Lc.init()},multi:!0},{provide:xc,useFactory:function(){return function(e){Mt=e}(document),document},deps:[]}]),fd=[[],{provide:ha,useValue:"root"},{provide:xi,useFactory:function(){return new xi},deps:[]},{provide:zc,useClass:id,multi:!0,deps:[xc,Zl,Vl]},{provide:zc,useClass:ld,multi:!0,deps:[xc]},[],{provide:ed,useClass:ed,deps:[qc,Zc,Tl]},{provide:iu,useExisting:ed},{provide:Uc,useExisting:Zc},{provide:Zc,useClass:Zc,deps:[xc]},{provide:ec,useClass:ec,deps:[Zl]},{provide:qc,useClass:qc,deps:[zc,Zl]},[]],pd=function(){var e=function(){function e(t){if(v(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return p(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:Tl,useValue:t.appId},{provide:Bc,useExisting:Tl},Hc]}}}]),e}();return e.\u0275mod=lt({type:e}),e.\u0275inj=Se({factory:function(t){return new(t||e)(Sr(e,12))},providers:fd,imports:[jc,mc]}),e}();function vd(e,t){if(1&e){var n=Ja();$a(0,"span",7),es("click",function(e){en(n);var t=os().$implicit,r=os();return e.preventDefault(),r.removeTab(t)}),Ds(1," \u274c"),Qa()}}"undefined"!=typeof window&&window;var gd=function(e){return["nav-item",e]};function yd(e,t){if(1&e){var n=Ja();$a(0,"li",3),es("keydown",function(e){en(n);var r=t.index;return os().keyNavActions(e,r)}),$a(1,"a",4),es("click",function(){return t.$implicit.active=!0}),$a(2,"span",5),Ds(3),Qa(),qa(4,vd,2,0,"span",6),Qa(),Qa()}if(2&e){var r=t.$implicit;_s("active",r.active)("disabled",r.disabled),Za("ngClass",Xu(15,gd,r.customClass||"")),go(1),_s("active",r.active)("disabled",r.disabled),za("aria-controls",r.id?r.id:"")("aria-selected",!!r.active)("id",r.id?r.id+"-link":""),go(1),Za("ngTransclude",r.headingRef),go(1),Vs(r.heading),go(1),Za("ngIf",r.removable)}}var md=["*"],_d=function(){var e=function(){function e(t){v(this,e),this.viewRef=t}return p(e,[{key:"ngTransclude",set:function(e){this._ngTransclude=e,e&&this.viewRef.createEmbeddedView(e)},get:function(){return this._ngTransclude}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ua(Bu))},e.\u0275dir=dt({type:e,selectors:[["","ngTransclude",""]],inputs:{ngTransclude:"ngTransclude"}}),e}(),bd=function(){var e=function e(){v(this,e),this.type="tabs",this.isKeysAllowed=!0,this.ariaLabel="Tabs"};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Te({factory:function(){return new e},token:e,providedIn:"root"}),e}(),kd=function(){var e=function(){function e(t,n,r){v(this,e),this.renderer=n,this.elementRef=r,this.clazz=!0,this.tabs=[],this.classMap={},Object.assign(this,t)}return p(e,[{key:"ngOnDestroy",value:function(){this.isDestroyed=!0}},{key:"addTab",value:function(e){this.tabs.push(e),e.active=1===this.tabs.length&&void 0===e.active}},{key:"removeTab",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{reselect:!0,emit:!0},n=this.tabs.indexOf(e);if(-1!==n&&!this.isDestroyed){if(t.reselect&&e.active&&this.hasAvailableTabs(n)){var r=this.getClosestTabIndex(n);this.tabs[r].active=!0}t.emit&&e.removed.emit(e),this.tabs.splice(n,1),e.elementRef.nativeElement.parentNode&&this.renderer.removeChild(e.elementRef.nativeElement.parentNode,e.elementRef.nativeElement)}}},{key:"keyNavActions",value:function(e,t){if(this.isKeysAllowed){var n=Array.from(this.elementRef.nativeElement.querySelectorAll(".nav-link"));if(13===e.keyCode||"Enter"===e.key||32===e.keyCode||"Space"===e.key)return e.preventDefault(),void n[t%n.length].click();if(39!==e.keyCode&&"RightArrow"!==e.key)if(37!==e.keyCode&&"LeftArrow"!==e.key)if(36!==e.keyCode&&"Home"!==e.key)if(35!==e.keyCode&&"End"!==e.key){if((46===e.keyCode||"Delete"===e.key)&&this.tabs[t].removable){if(this.removeTab(this.tabs[t]),n[t+1])return void n[(t+1)%n.length].focus();n[n.length-1]&&n[0].focus()}}else{var r;e.preventDefault();var i=1,o=t;do{o-i<0?(r=n[o=n.length-1],i=0):r=n[o-i],i++}while(r.classList.contains("disabled"));r.focus()}else{var a;e.preventDefault();var s=0;do{a=n[s%n.length],s++}while(a.classList.contains("disabled"));a.focus()}else{var u,l=1,c=t;do{c-l<0?(u=n[c=n.length-1],l=0):u=n[c-l],l++}while(u.classList.contains("disabled"));u.focus()}else{var d,h=1;do{d=n[(t+h)%n.length],h++}while(d.classList.contains("disabled"));d.focus()}}}},{key:"getClosestTabIndex",value:function(e){var t=this.tabs.length;if(!t)return-1;for(var n=1;n<=t;n+=1){var r=e-n,i=e+n;if(this.tabs[r]&&!this.tabs[r].disabled)return r;if(this.tabs[i]&&!this.tabs[i].disabled)return i}return-1}},{key:"hasAvailableTabs",value:function(e){var t=this.tabs.length;if(!t)return!1;for(var n=0;ne?{max:{max:e,actual:t.value}}:null}}},{key:"required",value:function(e){return Fd(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return Fd(e.value)||Pd.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){return Fd(t.value)||!Md(t.value)?null:t.value.lengthe?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}},{key:"pattern",value: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(Fd(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(Bd);return 0==t.length?null:function(e){return Ld(zd(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(Bd);return 0==t.length?null:function(e){return function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}},{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=dt({type:e}),e}(),Yd=function(){var e=function(e){g(n,e);var t=_(n);function n(){return v(this,n),t.apply(this,arguments)}return p(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(Qd);return e.\u0275fac=function(t){return Kd(t||e)},e.\u0275dir=dt({type:e,features:[Aa]}),e}(),Kd=lr(Yd),Jd=function(e){g(n,e);var t=_(n);function n(){var e;return v(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(Qd),Xd=function(){function e(t){v(this,e),this._cd=t}return p(e,[{key:"ngClassUntouched",get:function(){var e,t,n;return null!==(n=null===(t=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===t?void 0:t.untouched)&&void 0!==n&&n}},{key:"ngClassTouched",get:function(){var e,t,n;return null!==(n=null===(t=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===t?void 0:t.touched)&&void 0!==n&&n}},{key:"ngClassPristine",get:function(){var e,t,n;return null!==(n=null===(t=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===t?void 0:t.pristine)&&void 0!==n&&n}},{key:"ngClassDirty",get:function(){var e,t,n;return null!==(n=null===(t=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===t?void 0:t.dirty)&&void 0!==n&&n}},{key:"ngClassValid",get:function(){var e,t,n;return null!==(n=null===(t=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===t?void 0:t.valid)&&void 0!==n&&n}},{key:"ngClassInvalid",get:function(){var e,t,n;return null!==(n=null===(t=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===t?void 0:t.invalid)&&void 0!==n&&n}},{key:"ngClassPending",get:function(){var e,t,n;return null!==(n=null===(t=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===t?void 0:t.pending)&&void 0!==n&&n}}]),e}(),eh=function(){var e=function(e){g(n,e);var t=_(n);function n(e){return v(this,n),t.call(this,e)}return n}(Xd);return e.\u0275fac=function(t){return new(t||e)(Ua(Jd,2))},e.\u0275dir=dt({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&_s("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[Aa]}),e}(),th={provide:Td,useExisting:Ce(function(){return nh}),multi:!0},nh=function(){var e=function(){function e(t,n){v(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return p(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ua(ou),Ua(nu))},e.\u0275dir=dt({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&es("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[$s([th])]}),e}(),rh={provide:Td,useExisting:Ce(function(){return oh}),multi:!0},ih=function(){var e=function(){function e(){v(this,e),this._accessors=[]}return p(e,[{key:"add",value:function(e,t){this._accessors.push([e,t])}},{key:"remove",value:function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Te({token:e,factory:e.\u0275fac}),e}(),oh=function(){var e=function(){function e(t,n,r,i){v(this,e),this._renderer=t,this._elementRef=n,this._registry=r,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return p(e,[{key:"ngOnInit",value:function(){this._control=this._injector.get(Jd),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ua(ou),Ua(nu),Ua(ih),Ua(Ta))},e.\u0275dir=dt({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&es("change",function(){return t.onChange()})("blur",function(){return t.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[$s([rh])]}),e}(),ah={provide:Td,useExisting:Ce(function(){return sh}),multi:!0},sh=function(){var e=function(){function e(t,n){v(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return p(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ua(ou),Ua(nu))},e.\u0275dir=dt({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&es("change",function(e){return t.onChange(e.target.value)})("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[$s([ah])]}),e}(),uh={provide:Td,useExisting:Ce(function(){return lh}),multi:!0},lh=function(){var e=function(){function e(t,n){v(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Object.is}return p(e,[{key:"writeValue",value: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?"".concat(t):(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var r=[];if(void 0!==n.selectedOptions)for(var i=n.selectedOptions,o=0;o0){var i=r.filter(function(e){return e!==t.validator});i.length!==r.length&&(!0,e.setValidators(i))}}if(null!==t.asyncValidator){var o=$d(e);if(Array.isArray(o)&&o.length>0){var a=o.filter(function(e){return e!==t.asyncValidator});a.length!==o.length&&(!0,e.setAsyncValidators(a))}}}var s=function(){};ph(t._rawValidators,s),ph(t._rawAsyncValidators,s)}(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function ph(e,t){e.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function vh(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function gh(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}var yh=[Ad,sh,nh,lh,dh,oh];function mh(e,t){if(!t)return null;Array.isArray(t);var n=void 0,r=void 0,i=void 0;return t.forEach(function(e){var t;e.constructor===Id?n=e:(t=e,yh.some(function(e){return t.constructor===e})?r=e:i=e)}),i||r||n||null}function _h(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var bh="VALID",kh="INVALID",xh="PENDING",wh="DISABLED";function Ch(e){return(Sh(e)?e.validators:e)||null}function Oh(e){return Array.isArray(e)?Gd(e):e||null}function Eh(e,t){return(Sh(t)?t.asyncValidators:e)||null}function Th(e){return Array.isArray(e)?Ud(e):e||null}function Sh(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Ah=function(){function e(t,n){v(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=Oh(this._rawValidators),this._composedAsyncValidatorFn=Th(this._rawAsyncValidators)}return p(e,[{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=Oh(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Th(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=xh,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=wh,this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=bh,this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==bh&&this.status!==xh||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?wh:bh}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status=xh,this._hasOwnPendingAsyncValidator=!0;var n=Hd(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var r=e;return t.forEach(function(e){r=r instanceof Vh?r.controls.hasOwnProperty(e)?r.controls[e]:null:r instanceof Ih&&r.at(e)||null}),r}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new ol,this.statusChanges=new ol}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?wh:this.errors?kh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(xh)?xh:this._anyControlsHaveStatus(kh)?kh:bh}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){Sh(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}},{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===bh}},{key:"invalid",get:function(){return this.status===kh}},{key:"pending",get:function(){return this.status==xh}},{key:"disabled",get:function(){return this.status===wh}},{key:"enabled",get:function(){return this.status!==wh}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}}]),e}(),Dh=function(e){g(n,e);var t=_(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return v(this,n),(e=t.call(this,Ch(i),Eh(o,i)))._onChange=[],e._applyFormState(r),e._setUpdateStrategy(i),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!o}),e}return p(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){_h(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){_h(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(Ah),Vh=function(e){g(n,e);var t=_(n);function n(e,r,i){var o;return v(this,n),(o=t.call(this,Ch(r),Eh(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!i}),o}return p(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(r){t._throwIfControlMissing(r),t.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(e).forEach(function(r){t.controls[r]&&t.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof Dh?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var r=t.controls[n];r&&e(r,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(Ah),Ih=function(e){g(n,e);var t=_(n);function n(e,r,i){var o;return v(this,n),(o=t.call(this,Ch(r),Eh(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!i}),o}return p(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value: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()}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,r){t._throwIfControlMissing(r),t.at(r).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach(function(e,r){t.at(r)&&t.at(r).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof Dh?e.value:e.getRawValue()})}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value: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 ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=u(this.controls);try{for(t.s();!(e=t.n()).done;)if(e.value.enabled)return!1}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}(Ah),Fh={provide:Jd,useExisting:Ce(function(){return Rh})},Mh=function(){return Promise.resolve(null)}(),Rh=function(){var e=function(e){g(n,e);var t=_(n);function n(e,r,i,a){var s;return v(this,n),(s=t.call(this)).control=new Dh,s._registered=!1,s.update=new ol,s._parent=e,s._setValidators(r),s._setAsyncValidators(i),s.valueAccessor=mh(o(s),a),s}return p(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),gh(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){hh(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;Mh.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;Mh.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})}},{key:"path",get:function(){return this._parent?(e=this.name,[].concat(l(this._parent.path),[e])):[this.name];var e}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}}]),n}(Jd);return e.\u0275fac=function(t){return new(t||e)(Ua(Yd,9),Ua(Rd,10),Ua(jd,10),Ua(Td,10))},e.\u0275dir=dt({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[$s([Fh]),Aa,At]}),e}(),jh=new hr("NgModelWithFormControlWarning"),Ph={provide:Jd,useExisting:Ce(function(){return Nh})},Nh=function(){var e=function(e){g(n,e);var t=_(n);function n(e,r,i,a){var s;return v(this,n),(s=t.call(this))._ngModelWarningConfig=a,s.update=new ol,s._ngModelWarningSent=!1,s._setValidators(e),s._setAsyncValidators(r),s.valueAccessor=mh(o(s),i),s}return p(n,[{key:"ngOnChanges",value:function(e){if(this._isControlChanged(e)){var t=e.form.previousValue;t&&fh(t,this),hh(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}gh(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&fh(this.form,this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}},{key:"isDisabled",set:function(e){}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}}]),n}(Jd);return e.\u0275fac=function(t){return new(t||e)(Ua(Rd,10),Ua(jd,10),Ua(Td,10),Ua(jh,8))},e.\u0275dir=dt({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[$s([Ph]),Aa,At]}),e._ngModelWarningSentOnce=!1,e}(),Bh=function(){var e=function e(){v(this,e)};return e.\u0275mod=lt({type:e}),e.\u0275inj=Se({factory:function(t){return new(t||e)}}),e}();function Hh(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}var Lh=function(){var e=function(){function e(){v(this,e)}return p(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(e),r=null,i=null,o=void 0;return null!=t&&(Hh(t)?(r=null!=t.validators?t.validators:null,i=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(r=null!=t.validator?t.validator:null,i=null!=t.asyncValidator?t.asyncValidator:null)),new Vh(n,{asyncValidators:i,updateOn:o,validators:r})}},{key:"control",value:function(e,t,n){return new Dh(e,t,n)}},{key:"array",value:function(e,t,n){var r=this,i=e.map(function(e){return r._createControl(e)});return new Ih(i,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]=t._createControl(e[r])}),n}},{key:"_createControl",value:function(e){return e instanceof Dh||e instanceof Vh||e instanceof Ih?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Te({token:e,factory:e.\u0275fac}),e}(),zh=function(){var e=function e(){v(this,e)};return e.\u0275mod=lt({type:e}),e.\u0275inj=Se({factory:function(t){return new(t||e)},providers:[ih],imports:[Bh]}),e}(),qh=function(){var e=function(){function e(){v(this,e)}return p(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:jh,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}();return e.\u0275mod=lt({type:e}),e.\u0275inj=Se({factory:function(t){return new(t||e)},providers:[Lh,ih],imports:[Bh]}),e}();function Gh(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var Uh=function(e){g(n,e);var t=_(n);function n(e){var r;return v(this,n),(r=t.call(this))._value=e,r}return p(n,[{key:"_subscribe",value:function(e){var t=i(r(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new H;return this._value}},{key:"next",value:function(e){i(r(n.prototype),"next",this).call(this,this._value=e)}},{key:"value",get:function(){return this.getValue()}}]),n}(q),Zh=function(e){g(n,e);var t=_(n);function n(){return v(this,n),t.apply(this,arguments)}return p(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(I),Wh=function(e){g(n,e);var t=_(n);function n(e,r,i){var o;return v(this,n),(o=t.call(this)).parent=e,o.outerValue=r,o.outerIndex=i,o.index=0,o}return p(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(I);function $h(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Wh(e,n,r);if(!i.closed)return t instanceof N?t.subscribe(i):ee(t)(i)}var Qh={};function Yh(){for(var e=arguments.length,t=new Array(e),n=0;n=2&&(n=!0),function(r){return r.lift(new of(e,t,n))}}var of=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];v(this,e),this.accumulator=t,this.seed=n,this.hasSeed=r}return p(e,[{key:"call",value:function(e,t){return t.subscribe(new af(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),af=function(e){g(n,e);var t=_(n);function n(e,r,i,o){var a;return v(this,n),(a=t.call(this,e)).accumulator=r,a._seed=i,a.hasSeed=o,a.index=0,a}return p(n,[{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}},{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}}]),n}(I),sf=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}();function uf(e){return function(t){return 0===e?ef:t.lift(new lf(e))}}var lf=function(){function e(t){if(v(this,e),this.total=t,this.total<0)throw new sf}return p(e,[{key:"call",value:function(e,t){return t.subscribe(new cf(e,this.total))}}]),e}(),cf=function(e){g(n,e);var t=_(n);function n(e,r){var i;return v(this,n),(i=t.call(this,e)).total=r,i.ring=new Array,i.count=0,i}return p(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,r=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new hf(e))}}var hf=function(){function e(t){v(this,e),this.defaultValue=t}return p(e,[{key:"call",value:function(e,t){return t.subscribe(new ff(e,this.defaultValue))}}]),e}(),ff=function(e){g(n,e);var t=_(n);function n(e,r){var i;return v(this,n),(i=t.call(this,e)).defaultValue=r,i.isEmpty=!0,i}return p(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(I);function pf(e,t,n){return 0===n?[t]:(e.push(t),e)}function vf(){return function(e,t){return arguments.length>=2?function(n){return j(rf(e,t),uf(1),df(t))(n)}:function(t){return j(rf(function(t,n,r){return e(t,n,r+1)}),uf(1))(t)}}(pf,[])}var gf=function(e){g(n,e);var t=_(n);function n(e,r){var i;return v(this,n),(i=t.call(this,e,r)).scheduler=e,i.work=r,i.pending=!1,i}return p(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){g(n,e);var t=_(n);function n(e,r){return v(this,n),t.call(this)}return p(n,[{key:"schedule",value:function(e){return this}}]),n}(O)),yf=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;v(this,e),this.SchedulerAction=t,this.now=n}return p(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),mf=new(function(e){g(n,e);var t=_(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yf.now;return v(this,n),(r=t.call(this,e,function(){return n.delegate&&n.delegate!==o(r)?n.delegate.now():i()})).actions=[],r.active=!1,r.scheduled=void 0,r}return p(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,o):i(r(n.prototype),"schedule",this).call(this,e,t,o)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(yf))(gf),_f=function(){function e(t,n){v(this,e),this.dueTime=t,this.scheduler=n}return p(e,[{key:"call",value:function(e,t){return t.subscribe(new bf(e,this.dueTime,this.scheduler))}}]),e}(),bf=function(e){g(n,e);var t=_(n);function n(e,r,i){var o;return v(this,n),(o=t.call(this,e)).dueTime=r,o.scheduler=i,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return p(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(kf,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(I);function kf(e){e.debouncedNext()}function xf(e,t){return function(n){return n.lift(new wf(e,t))}}var wf=function(){function e(t,n){v(this,e),this.predicate=t,this.thisArg=n}return p(e,[{key:"call",value:function(e,t){return t.subscribe(new Cf(e,this.predicate,this.thisArg))}}]),e}(),Cf=function(e){g(n,e);var t=_(n);function n(e,r,i){var o;return v(this,n),(o=t.call(this,e)).predicate=r,o.thisArg=i,o.count=0,o}return p(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(I);function Of(){}var Ef=function(){function e(t,n,r){v(this,e),this.nextOrObserver=t,this.error=n,this.complete=r}return p(e,[{key:"call",value:function(e,t){return t.subscribe(new Tf(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),Tf=function(e){g(n,e);var t=_(n);function n(e,r,i,a){var s;return v(this,n),(s=t.call(this,e))._tapNext=Of,s._tapError=Of,s._tapComplete=Of,s._tapError=i||Of,s._tapComplete=a||Of,w(r)?(s._context=o(s),s._tapNext=r):r&&(s._context=r,s._tapNext=r.next||Of,s._tapError=r.error||Of,s._tapComplete=r.complete||Of),s}return p(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(I),Sf=n("XaGS"),Af=n.n(Sf),Df=n("oxjq"),Vf=Df,If=function(){function e(e,t,n,r,i){void 0===i&&(i=null),this.value=e,this.text=t,this.disabled=n,this.data=r,this._parent=i,this.type="option",this.cacheRenderedText=null}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),e.prototype.renderText=function(e,t){return this.cacheHighlightText===t&&null!==this.cacheRenderedText||(this.cacheHighlightText=t,this.cacheRenderedText=e.bypassSecurityTrustHtml(this.cacheHighlightText?(this.text+"").replace(new RegExp(Vf(this.cacheHighlightText),"gi"),"$&"):this.text)),this.cacheRenderedText},e}(),Ff=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}(),Mf=function(){function e(e){this.template=e}return e.\u0275fac=function(t){return new(t||e)(Ua(Fu))},e.\u0275dir=dt({type:e,selectors:[["","ngx-select-option",""]]}),e}(),Rf=function(){function e(e){this.template=e}return e.\u0275fac=function(t){return new(t||e)(Ua(Fu))},e.\u0275dir=dt({type:e,selectors:[["","ngx-select-option-selected",""]]}),e}(),jf=function(){function e(e){this.template=e}return e.\u0275fac=function(t){return new(t||e)(Ua(Fu))},e.\u0275dir=dt({type:e,selectors:[["","ngx-select-option-not-found",""]]}),e}(),Pf=["main"],Nf=["input"],Bf=["choiceMenu"];function Hf(e,t){if(1&e&&($a(0,"span",17),Ya(1,"span",18),Qa()),2&e){var n=os(2);go(1),Za("innerHtml",n.placeholder,mi)}}var Lf=function(e){return{"ngx-select__allow-clear":e}},zf=function(e,t){return{$implicit:e,index:0,text:t}};function qf(e,t){if(1&e&&($a(0,"span",19),Ka(1,20),Qa()),2&e){var n=os(2),r=Ga(8);Za("ngClass",Xu(3,Lf,n.allowClear)),go(1),Za("ngTemplateOutlet",n.templateSelectedOption||r)("ngTemplateOutletContext",el(5,zf,n.optionsSelected[0],n.sanitize(n.optionsSelected[0].text)))}}function Gf(e,t){if(1&e){var n=Ja();$a(0,"a",21),es("click",function(e){en(n);var t=os(2);return t.optionRemove(t.optionsSelected[0],e)}),Ya(1,"i",22),Qa()}2&e&&Za("ngClass",os(2).setBtnSize())}function Uf(e,t){if(1&e){var n=Ja();$a(0,"div",9),$a(1,"div",10),es("click",function(){return en(n),os().optionsOpen()}),qa(2,Hf,2,1,"span",11),qa(3,qf,2,8,"span",12),$a(4,"span",13),qa(5,Gf,2,1,"a",14),Ya(6,"i",15),Ya(7,"i",16),Qa(),Qa(),Qa()}if(2&e){var r=os();go(1),Za("ngClass",r.setFormControlSize(r.setBtnSize())),go(1),Za("ngIf",!r.optionsSelected.length),go(1),Za("ngIf",r.optionsSelected.length),go(2),Za("ngIf",r.canClearNotMultiple())}}var Zf=function(e,t,n){return{$implicit:e,index:t,text:n}};function Wf(e,t){if(1&e){var n=Ja();$a(0,"span"),$a(1,"span",25),es("click",function(e){return e.stopPropagation()}),Ka(2,20),$a(3,"a",26),es("click",function(e){en(n);var r=t.$implicit;return os(2).optionRemove(r,e)}),Ya(4,"i",22),Qa(),Qa(),Qa()}if(2&e){var r=t.$implicit,i=t.index,o=os(2),a=Ga(8);go(1),Za("ngClass",o.setBtnSize()),go(1),Za("ngTemplateOutlet",o.templateSelectedOption||a)("ngTemplateOutletContext",(s=4,u=Zf,l=r,c=i,d=o.sanitize(r.text),function(e,t,n,r,i,o,a,s){var u=t+n;return function(e,t,n,r,i){var o=La(e,t,n,r);return Ha(e,t+2,i)||o}(e,u,i,o,a)?Ba(e,u+3,s?r.call(s,i,o,a):r(i,o,a)):tl(e,u+3)}(Jt(),ln(),s,u,l,c,d,h))),go(1),Za("ngClass",o.setBtnSize())}var s,u,l,c,d,h}function $f(e,t){if(1&e){var n=Ja();$a(0,"div",23),es("click",function(){en(n);var e=os();return e.inputClick(e.inputElRef&&e.inputElRef.value)}),qa(1,Wf,5,8,"span",24),Qa()}if(2&e){var r=os();go(1),Za("ngForOf",r.optionsSelected)("ngForTrackBy",r.trackByOption)}}function Qf(e,t){if(1&e){var n=Ja();$a(0,"input",27,28),es("keyup",function(e){en(n);var t=Ga(1);return os().inputKeyUp(t.value,e)})("click",function(){en(n);var e=Ga(1);return os().inputClick(e.value)}),Qa()}if(2&e){var r=os();Za("ngClass",r.setFormControlSize())("tabindex",!1===r.multiple?-1:0)("disabled",r.disabled)("placeholder",r.optionsSelected.length?"":r.placeholder)("autocomplete",r.autocomplete)}}function Yf(e,t){1&e&&Ya(0,"div",37)}function Kf(e,t){if(1&e&&($a(0,"div",38),Ds(1),Qa()),2&e){var n=os().$implicit;go(1),Vs(n.label)}}var Jf=function(e,t){return{"ngx-select__item_active active":e,"ngx-select__item_disabled disabled":t}},Xf=function(e,t,n,r){return{$implicit:e,text:t,index:n,subIndex:r}};function ep(e,t){if(1&e){var n=Ja();$a(0,"a",39,40),es("mouseenter",function(){en(n);var e=t.$implicit,r=os(3);return r.onMouseEnter({activeOption:e,filteredOptionList:r.optionsFiltered,index:r.optionsFiltered.indexOf(e)})})("click",function(e){en(n);var r=t.$implicit;return os(3).optionSelect(r,e)}),Ka(2,20),Qa()}if(2&e){var r=t.$implicit,i=t.index,o=os().index,a=os(2),s=Ga(8);Za("ngClass",el(3,Jf,r.active,r.disabled)),go(2),Za("ngTemplateOutlet",a.templateOption||s)("ngTemplateOutletContext",(u=6,l=Xf,c=r,d=r.highlightedText,h=o,f=i,function(e,t,n,r,i,o,a,s,u){var l=t+n;return function(e,t,n,r,i,o){var a=La(e,t,n,r);return La(e,t+2,i,o)||a}(e,l,i,o,a,s)?Ba(e,l+4,u?r.call(u,i,o,a,s):r(i,o,a,s)):tl(e,l+4)}(Jt(),ln(),u,l,c,d,h,f,p)))}var u,l,c,d,h,f,p}var tp=function(e){return[e]};function np(e,t){if(1&e&&($a(0,"li",33),qa(1,Yf,1,0,"div",34),qa(2,Kf,2,1,"div",35),qa(3,ep,3,11,"a",36),Qa()),2&e){var n=t.$implicit,r=t.index,i=os(2);go(1),Za("ngIf","optgroup"===n.type&&r>0),go(1),Za("ngIf","optgroup"===n.type),go(1),Za("ngForOf",n.optionsFiltered||Xu(4,tp,n))("ngForTrackBy",i.trackByOption)}}var rp=function(e){return{$implicit:e}};function ip(e,t){if(1&e&&($a(0,"li",41),Ka(1,20),Qa()),2&e){var n=os(2),r=Ga(10);go(1),Za("ngTemplateOutlet",n.templateOptionNotFound||r)("ngTemplateOutletContext",Xu(2,rp,n.inputText))}}function op(e,t){if(1&e&&($a(0,"ul",29,30),qa(2,np,4,6,"li",31),qa(3,ip,2,4,"li",32),Qa()),2&e){var n=os();_s("show",n.showChoiceMenu()),Za("ngClass",n.dropDownMenuOtherClasses),go(2),Za("ngForOf",n.optionsFiltered)("ngForTrackBy",n.trackByOption),go(1),Za("ngIf",!n.optionsFiltered.length)}}function ap(e,t){1&e&&Ya(0,"span",18),2&e&&Za("innerHtml",t.text,mi)}function sp(e,t){1&e&&Ds(0),2&e&&Is(" ",os().noResultsFound," ")}var up=function(e,t){return{"ngx-select_multiple form-control":e,"open show":t}},lp=function(e){return{"ngx-select__disabled":e}},cp=Df,dp=new hr("NGX_SELECT_OPTIONS"),hp=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 fp(e,t){return t in e}var pp=function(){function e(e,t,n,r){var i,o=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.showOptionNotFoundForEmptyItems=!1,this.isFocused=!1,this.keepSelectMenuOpened=!1,this.autocomplete="off",this.dropDownMenuOtherClasses="",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 ol,this.focus=new ol,this.blur=new ol,this.open=new ol,this.close=new ol,this.select=new ol,this.remove=new ol,this.navigated=new ol,this.selectionChanges=new ol,this.optionsOpened=!1,this.actualValue=[],this.subjOptions=new Uh([]),this.subjSearchText=new Uh(""),this.subjOptionsSelected=new Uh([]),this.subjExternalValue=new Uh([]),this.subjDefaultValue=new Uh([]),this.subjRegisterOnChange=new q,this._focusToInput=!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 o.subjSearchText.next(e)}),this.subjOptionsSelected.subscribe(function(e){return o.selectionChanges.emit(e)});var a,s=Yh([ce(this.subjExternalValue.pipe(Z(function(e){return i=null===e?[]:[].concat(e)})),this.subjOptionsSelected.pipe(Z(function(e){return e.map(function(e){return e.value})}))),this.subjDefaultValue]).pipe(Z(function(e){var t=Gh(e,2),n=t[0],r=t[1],i=Af()(n,r)?[]:n;return i.length?i:r}),(a=function(e,t){return Af()(e,t)},function(e){return e.lift(new tf(a,void 0))}),me());Yh([s,this.subjRegisterOnChange]).pipe(Z(function(e){return Gh(e,1)[0]})).subscribe(function(e){o.actualValue=e,Af()(e,i)||(i=e,o.onChange(o.multiple?e:e.length?e[0]:null))}),Yh([this.subjOptions.pipe(oe(function(e){return ne(e).pipe(oe(function(e){return e instanceof If?Xh(e):e instanceof Ff?ne(e.options):ef}),vf())})),s]).pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mf;return function(n){return n.lift(new _f(e,t))}}(0)).subscribe(function(e){var t=Gh(e,2),n=t[0],r=[];if(t[1].forEach(function(e){var t=n.find(function(t){return t.value===e});t&&r.push(t)}),o.keepSelectedItems){var i=r.map(function(e){return e.value}),a=o.subjOptionsSelected.value.filter(function(e){return-1===i.indexOf(e.value)});r.push.apply(r,function(){for(var e=[],t=0;t=0?r:n.length-1;break;case hp.next:r=n.indexOf(t.optionActive)+1,i.index=r0?o:0}return i.activeOption=n[i.index],i})).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.ngOnDestroy=function(){this.cd.detach()},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(hp.next);break;case this.keyCodeToNavigateFirst:this.navigateOption(hp.first);break;case this.keyCodeToNavigatePrevious:this.navigateOption(hp.previous);break;case this.keyCodeToNavigateLast:this.navigateOption(hp.last);break;case this.keyCodeToNavigateNext:this.navigateOption(hp.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.multiple||this.canClearNotMultiple())&&this.optionRemove(this.subjOptionsSelected.value[this.subjOptionsSelected.value.length-1],e)}},e.prototype.trackByOption=function(e,t){return t instanceof If?t.value:t instanceof Ff?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&&-1===["ArrowDown","ArrowUp","ArrowLeft","ArrowDown"].indexOf(t.code)?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.keepSelectMenuOpened||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,i=new RegExp(cp(e),"i"),o=function(t){return r.searchCallback?r.searchCallback(e,t):(!e||i.test(t.text))&&(!r.multiple||-1===n.indexOf(t))};return t.filter(function(e){if(e instanceof If)return o(e);if(e instanceof Ff){var t=e;return t.filter(function(e){return o(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.showChoiceMenu=function(){return this.optionsOpened&&(!!this.subjOptions.value.length||this.showOptionNotFoundForEmptyItems)},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?hp.firstSelected:hp.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=this,n=[];return Array.isArray(e)&&e.forEach(function(e){if("object"==typeof e&&null!==e&&fp(e,t.optGroupLabelField)&&fp(e,t.optGroupOptionsField)&&Array.isArray(e[t.optGroupOptionsField])){var r=new Ff(e[t.optGroupLabelField]);e[t.optGroupOptionsField].forEach(function(e){var n=t.buildOption(e,r);n&&r.options.push(n)}),n.push(r)}else{var i=t.buildOption(e,null);i&&n.push(i)}}),n},e.prototype.buildOption=function(e,t){var n,r,i;if("string"==typeof e||"number"==typeof e)n=r=e,i=!1;else{if("object"!=typeof e||null===e||!fp(e,this.optionValueField)&&!fp(e,this.optionTextField))return null;n=fp(e,this.optionValueField)?e[this.optionValueField]:e[this.optionTextField],r=fp(e,this.optionTextField)?e[this.optionTextField]:e[this.optionValueField],i=!!fp(e,"disabled")&&e.disabled}return new If(n,r,i,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,this.cd.markForCheck()},e.\u0275fac=function(t){return new(t||e)(Ua(bu),Ua(cd),Ua(Tu),Ua(dp,8))},e.\u0275cmp=ot({type:e,selectors:[["ngx-select"]],contentQueries:function(e,t,n){if(1&e&&(_l(n,Mf,3,Fu),_l(n,Rf,3,Fu),_l(n,jf,3,Fu)),2&e){var r=void 0;yl(r=bl())&&(t.templateOption=r.first),yl(r=bl())&&(t.templateSelectedOption=r.first),yl(r=bl())&&(t.templateOptionNotFound=r.first)}},viewQuery:function(e,t){if(1&e&&(ml(Pf,3),ml(Nf,1),ml(Bf,1)),2&e){var n=void 0;yl(n=bl())&&(t.mainElRef=n.first),yl(n=bl())&&(t.inputElRef=n.first),yl(n=bl())&&(t.choiceMenuElRef=n.first)}},hostBindings:function(e,t){1&e&&es("focusin",function(e){return t.documentClick(e)},!1,Oi)("click",function(e){return t.documentClick(e)},!1,Oi)},inputs:{items:"items",optionValueField:"optionValueField",optionTextField:"optionTextField",optGroupLabelField:"optGroupLabelField",optGroupOptionsField:"optGroupOptionsField",multiple:"multiple",allowClear:"allowClear",placeholder:"placeholder",noAutoComplete:"noAutoComplete",disabled:"disabled",defaultValue:"defaultValue",autoSelectSingleOption:"autoSelectSingleOption",autoClearSearch:"autoClearSearch",noResultsFound:"noResultsFound",keepSelectedItems:"keepSelectedItems",size:"size",searchCallback:"searchCallback",autoActiveOnMouseEnter:"autoActiveOnMouseEnter",showOptionNotFoundForEmptyItems:"showOptionNotFoundForEmptyItems",isFocused:"isFocused",keepSelectMenuOpened:"keepSelectMenuOpened",autocomplete:"autocomplete",dropDownMenuOtherClasses:"dropDownMenuOtherClasses"},outputs:{typed:"typed",focus:"focus",blur:"blur",open:"open",close:"close",select:"select",remove:"remove",navigated:"navigated",selectionChanges:"selectionChanges"},features:[$s([{provide:Td,useExisting:Ce(function(){return e}),multi:!0}])],decls:11,vars:12,consts:[[1,"ngx-select","dropdown",3,"tabindex","ngClass","click","focusin","focus","keydown"],["main",""],[3,"ngClass"],["class","ngx-select__selected",4,"ngIf"],["class","ngx-select__selected",3,"click",4,"ngIf"],["type","text","class","ngx-select__search form-control","autocorrect","off","autocapitalize","off","spellcheck","false","role","combobox",3,"ngClass","tabindex","disabled","placeholder","autocomplete","keyup","click",4,"ngIf"],["role","menu","class","ngx-select__choices dropdown-menu",3,"ngClass","show",4,"ngIf"],["defaultTemplateOption",""],["defaultTemplateOptionNotFound",""],[1,"ngx-select__selected"],[1,"ngx-select__toggle","btn","form-control",3,"ngClass","click"],["class","ngx-select__placeholder text-muted",4,"ngIf"],["class","ngx-select__selected-single pull-left float-left",3,"ngClass",4,"ngIf"],[1,"ngx-select__toggle-buttons"],["class","ngx-select__clear btn btn-sm btn-link",3,"ngClass","click",4,"ngIf"],[1,"dropdown-toggle"],[1,"ngx-select__toggle-caret","caret"],[1,"ngx-select__placeholder","text-muted"],[3,"innerHtml"],[1,"ngx-select__selected-single","pull-left","float-left",3,"ngClass"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ngx-select__clear","btn","btn-sm","btn-link",3,"ngClass","click"],[1,"ngx-select__clear-icon"],[1,"ngx-select__selected",3,"click"],[4,"ngFor","ngForOf","ngForTrackBy"],["tabindex","-1",1,"ngx-select__selected-plural","btn","btn-default","btn-secondary","btn-sm","btn-xs",3,"ngClass","click"],[1,"ngx-select__clear","btn","btn-sm","btn-link","pull-right","float-right",3,"ngClass","click"],["type","text","autocorrect","off","autocapitalize","off","spellcheck","false","role","combobox",1,"ngx-select__search","form-control",3,"ngClass","tabindex","disabled","placeholder","autocomplete","keyup","click"],["input",""],["role","menu",1,"ngx-select__choices","dropdown-menu",3,"ngClass"],["choiceMenu",""],["class","ngx-select__item-group","role","menuitem",4,"ngFor","ngForOf","ngForTrackBy"],["class","ngx-select__item ngx-select__item_no-found dropdown-header",4,"ngIf"],["role","menuitem",1,"ngx-select__item-group"],["class","divider dropdown-divider",4,"ngIf"],["class","dropdown-header",4,"ngIf"],["href","#","class","ngx-select__item dropdown-item",3,"ngClass","mouseenter","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"divider","dropdown-divider"],[1,"dropdown-header"],["href","#",1,"ngx-select__item","dropdown-item",3,"ngClass","mouseenter","click"],["choiceItem",""],[1,"ngx-select__item","ngx-select__item_no-found","dropdown-header"]],template:function(e,t){1&e&&($a(0,"div",0,1),es("click",function(e){return t.mainClicked(e)})("focusin",function(e){return t.mainClicked(e)})("focus",function(){return t.focusToInput()})("keydown",function(e){return t.inputKeyDown(e)}),Ya(2,"div",2),qa(3,Uf,8,4,"div",3),qa(4,$f,2,2,"div",4),qa(5,Qf,2,5,"input",5),qa(6,op,4,6,"ul",6),qa(7,ap,1,1,"ng-template",null,7,Cl),qa(9,sp,1,1,"ng-template",null,8,Cl),Qa()),2&e&&(Za("tabindex",t.disabled?-1:0)("ngClass",t.setFormControlSize(el(7,up,!0===t.multiple,t.optionsOpened&&t.optionsFiltered.length),!0===t.multiple)),go(2),Za("ngClass",Xu(10,lp,t.disabled)),go(1),Za("ngIf",!1===t.multiple&&(!t.optionsOpened||t.noAutoComplete)),go(1),Za("ngIf",!0===t.multiple),go(1),Za("ngIf",t.checkInputVisibility()),go(1),Za("ngIf",t.isFocused))},directives:[Ec,Dc,Mc,Sc],styles:['.ngx-select_multiple[_ngcontent-%COMP%]{height:auto;padding:3px 3px 0}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__search[_ngcontent-%COMP%]{background-color:transparent!important;border:none;outline:none;box-shadow:none;height:1.6666em;padding:0;margin-bottom:3px}.ngx-select__disabled[_ngcontent-%COMP%]{background-color:#eceeef;border-radius:4px;position:absolute;width:100%;height:100%;z-index:5;opacity:.6;top:0;left:0;cursor:not-allowed}.ngx-select__toggle[_ngcontent-%COMP%]{outline:0;position:relative;text-align:left!important;color:#333;background-color:#fff;border-color:#ccc;display:inline-flex;align-items:stretch;justify-content:space-between}.ngx-select__toggle[_ngcontent-%COMP%]:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.ngx-select__toggle-buttons[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center}.ngx-select__toggle-caret[_ngcontent-%COMP%]{position:absolute;height:10px;top:50%;right:10px;margin-top:-2px}.ngx-select__placeholder[_ngcontent-%COMP%]{float:left;max-width:100%;text-overflow:ellipsis;overflow:hidden}.ngx-select__clear[_ngcontent-%COMP%]{margin-right:10px;padding:0;border:none}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__clear[_ngcontent-%COMP%]{line-height:normal;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{transform:rotate(45deg)}.ngx-select__clear-icon[_ngcontent-%COMP%]:after{transform:rotate(-45deg)}.ngx-select__choices[_ngcontent-%COMP%]{width:100%;height:auto;max-height:200px;overflow-x:hidden;margin-top:0;position:absolute}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__choices[_ngcontent-%COMP%]{margin-top:1px}.ngx-select__item[_ngcontent-%COMP%]{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;white-space:nowrap;cursor:pointer;text-decoration:none}.ngx-select__item_disabled[_ngcontent-%COMP%], .ngx-select__item_no-found[_ngcontent-%COMP%]{cursor:default}.ngx-select__item_active[_ngcontent-%COMP%]{color:#fff;outline:0;background-color:#428bca}.ngx-select__selected-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}'],changeDetection:0}),e}(),vp=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 Dh,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.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ot({type:e,selectors:[["single-demo"]],decls:13,vars:8,consts:[[1,"example-block"],[1,"example-block__item"],["placeholder","No city selected",3,"formControl","allowClear","defaultValue","items","typed","focus","blur","open","close","select","remove","selectionChanges"],[1,"alert","alert-secondary"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(e,t){1&e&&($a(0,"h3"),Ds(1,"Select a single city"),Qa(),$a(2,"div",0),$a(3,"div",1),$a(4,"ngx-select",2),es("typed",function(e){return t.inputTyped("ngx-select",e)})("focus",function(){return t.doFocus()})("blur",function(){return t.doBlur()})("open",function(){return t.doOpen()})("close",function(){return t.doClose()})("select",function(e){return t.doSelect(e)})("remove",function(e){return t.doRemove(e)})("selectionChanges",function(e){return t.doSelectOptions(e)}),Qa(),Ya(5,"p"),$a(6,"div",3),$a(7,"pre"),Ds(8),rl(9,"json"),Qa(),Qa(),$a(10,"div"),$a(11,"button",4),es("click",function(){return t.ngxControl.disabled?t.ngxControl.enable():t.ngxControl.disable()}),Ds(12),Qa(),Qa(),Qa(),Qa()),2&e&&(go(4),Za("formControl",t.ngxControl)("allowClear",!0)("defaultValue",t.doNgxDefault())("items",t.items),go(4),Vs(il(9,6,t.ngxControl.value)),go(4),Is(" ",t.ngxControl.disabled?"Enable":"Disable"," "))},directives:[pp,eh,Nh],pipes:[Rc],encapsulation:2}),e}(),gp=function(){function e(){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)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ot({type:e,selectors:[["multiple-demo"]],decls:13,vars:9,consts:[[1,"example-block"],[1,"example-block__item"],["placeholder","No city selected",3,"multiple","items","disabled","ngModel","autoClearSearch","ngModelChange","selectionChanges"],[1,"alert","alert-secondary"],[1,"btn","btn-primary",3,"click"]],template:function(e,t){1&e&&($a(0,"h3"),Ds(1,"Select multiple cities"),Qa(),$a(2,"div",0),$a(3,"div",1),$a(4,"ngx-select",2),es("ngModelChange",function(e){return t.ngxValue=e})("selectionChanges",function(e){return t.doSelectOptions(e)}),Qa(),Ya(5,"p"),$a(6,"div",3),$a(7,"pre"),Ds(8),rl(9,"json"),Qa(),Qa(),$a(10,"div"),$a(11,"button",4),es("click",function(){return t.ngxDisabled=!t.ngxDisabled}),Ds(12),Qa(),Qa(),Qa(),Qa()),2&e&&(go(4),Za("multiple",!0)("items",t.items)("disabled",t.ngxDisabled)("ngModel",t.ngxValue)("autoClearSearch",!0),go(4),Vs(il(9,7,t.ngxValue)),go(4),Is(" ",t.ngxDisabled?"Enable":"Disable"," "))},directives:[pp,eh,Rh],pipes:[Rc],encapsulation:2}),e}(),yp=function(){function e(){this.items=[{id:100,text:"Austria",children:[{id:54,text:"Vienna"}]},{id:200,text:"Belgium",children:[{id:2,text:"Antwerp"},{id:9,text:"Brussels"}]},{id:300,text:"Bulgaria",children:[{id:48,text:"Sofia"}]},{id:400,text:"Croatia",children:[{id:58,text:"Zagreb"}]},{id:500,text:"Czech Republic",children:[{id:42,text:"Prague"}]},{id:600,text:"Denmark",children:[{id:13,text:"Copenhagen"}]},{id:700,text:"England",children:[{id:6,text:"Birmingham"},{id:7,text:"Bradford"},{id:26,text:"Leeds",disabled:!0},{id:30,text:"London"},{id:34,text:"Manchester"},{id:47,text:"Sheffield"}]},{id:800,text:"Finland",children:[{id:25,text:"Helsinki"}]},{id:900,text:"France",children:[{id:35,text:"Marseille"},{id:40,text:"Paris"}]},{id:1e3,text:"Germany",children:[{id:5,text:"Berlin"},{id:8,text:"Bremen"},{id:12,text:"Cologne"},{id:14,text:"Dortmund"},{id:15,text:"Dresden"},{id:17,text:"D\xfcsseldorf"},{id:18,text:"Essen"},{id:19,text:"Frankfurt"},{id:23,text:"Hamburg"},{id:24,text:"Hannover"},{id:27,text:"Leipzig"},{id:37,text:"Munich"},{id:50,text:"Stuttgart"}]},{id:1100,text:"Greece",children:[{id:3,text:"Athens"}]},{id:1200,text:"Hungary",children:[{id:11,text:"Budapest"}]},{id:1300,text:"Ireland",children:[{id:16,text:"Dublin"}]},{id:1400,text:"Italy",children:[{id:20,text:"Genoa"},{id:36,text:"Milan"},{id:38,text:"Naples"},{id:39,text:"Palermo"},{id:44,text:"Rome"},{id:52,text:"Turin"}]},{id:1500,text:"Latvia",children:[{id:43,text:"Riga"}]},{id:1600,text:"Lithuania",children:[{id:55,text:"Vilnius"}]},{id:1700,text:"Netherlands",children:[{id:1,text:"Amsterdam"},{id:45,text:"Rotterdam"},{id:51,text:"The Hague"}]},{id:1800,text:"Poland",children:[{id:29,text:"\u0141\xf3d\u017a"},{id:31,text:"Krak\xf3w"},{id:41,text:"Pozna\u0144"},{id:56,text:"Warsaw"},{id:57,text:"Wroc\u0142aw"}]},{id:1900,text:"Portugal",children:[{id:28,text:"Lisbon"}]},{id:2e3,text:"Romania",children:[{id:10,text:"Bucharest"}]},{id:2100,text:"Scotland",children:[{id:21,text:"Glasgow"}]},{id:2200,text:"Spain",children:[{id:4,text:"Barcelona"},{id:32,text:"Madrid"},{id:33,text:"M\xe1laga"},{id:46,text:"Seville"},{id:53,text:"Valencia"},{id:59,text:"Zaragoza"}]},{id:2300,text:"Sweden",children:[{id:22,text:"Gothenburg"},{id:49,text:"Stockholm"}]}],this.ngxValue=[],this.ngxDisabled=!1}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ot({type:e,selectors:[["children-demo"]],decls:13,vars:8,consts:[[1,"example-block"],[1,"example-block__item"],["optionValueField","id","optionTextField","text","optGroupLabelField","text","optGroupOptionsField","children","placeholder","No city selected",3,"allowClear","items","disabled","ngModel","ngModelChange"],[1,"alert","alert-secondary"],[1,"btn","btn-primary",3,"click"]],template:function(e,t){1&e&&($a(0,"h3"),Ds(1,"Select a city by country"),Qa(),$a(2,"div",0),$a(3,"div",1),$a(4,"ngx-select",2),es("ngModelChange",function(e){return t.ngxValue=e}),Qa(),Ya(5,"p"),$a(6,"div",3),$a(7,"pre"),Ds(8),rl(9,"json"),Qa(),Qa(),$a(10,"div"),$a(11,"button",4),es("click",function(){return t.ngxDisabled=!t.ngxDisabled}),Ds(12),Qa(),Qa(),Qa(),Qa()),2&e&&(go(4),Za("allowClear",!0)("items",t.items)("disabled",t.ngxDisabled)("ngModel",t.ngxValue),go(4),Vs(il(9,6,t.ngxValue)),go(4),Is(" ",t.ngxDisabled?"Enable":"Disable"," "))},directives:[pp,eh,Rh],pipes:[Rc],encapsulation:2}),e}();function mp(e,t){if(1&e&&(Ya(0,"span",7),Ya(1,"span",8),Ds(2)),2&e){var n=t.$implicit,r=t.text;(function(e,t,n,r){var i=Xt(),o=dn(2);i.firstUpdatePass&&xs(i,null,o,r);var a=Jt();if(n!==vo&&Ha(a,o,n)){var s=i.data[Cn()];if(As(s,r)&&!ks(i,o)){var u=s.stylesWithoutHost;null!==u&&(n=xe(u,n||"")),Wa(i,s,a,n,r)}else!function(e,t,n,r,i,o,a,s){i===vo&&(i=ls);for(var u=0,l=0,c=0 { beforeEach(waitForAsync(() => { @@ -35,6 +36,7 @@ describe('AppComponent', () => { NoAutoCompleteDemoComponent, RichDemoComponent, SingleDemoComponent, + CustomEntriesDemoComponent, ], }).compileComponents(); })); diff --git a/src/app/app.module.ts b/src/app/app.module.ts index c8777aa9..c049020b 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -14,6 +14,7 @@ import { CommonModule } from '@angular/common'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { TabsModule } from 'ngx-bootstrap/tabs'; import { ButtonsModule } from 'ngx-bootstrap/buttons'; +import { CustomEntriesDemoComponent } from './demo/select/custom-entries-demo'; @NgModule({ @@ -26,6 +27,7 @@ import { ButtonsModule } from 'ngx-bootstrap/buttons'; NoAutoCompleteDemoComponent, RichDemoComponent, SingleDemoComponent, + CustomEntriesDemoComponent, ], imports: [ BrowserModule, diff --git a/src/app/demo/select-section.ts b/src/app/demo/select-section.ts index dab386e9..0c9ef952 100644 --- a/src/app/demo/select-section.ts +++ b/src/app/demo/select-section.ts @@ -31,6 +31,11 @@ const tabDesc = { ts: require('!!raw-loader!./select/no-autocomplete-demo.ts'), html: require('!!raw-loader!./select/no-autocomplete-demo.html'), }, + customEntries: { + heading: 'Custom entries', + ts: require('!!raw-loader!./select/custom-entries-demo.ts'), + html: require('!!raw-loader!./select/custom-entries-demo.html'), + }, }; @Component({ @@ -66,6 +71,11 @@ const tabDesc = { + + + + +

Documentation

diff --git a/src/app/demo/select/custom-entries-demo.html b/src/app/demo/select/custom-entries-demo.html new file mode 100644 index 00000000..7774c272 --- /dev/null +++ b/src/app/demo/select/custom-entries-demo.html @@ -0,0 +1,24 @@ +

Custom entries

+ +
+
+ + +

+
+
{{names.value | json}}
+
+
+ +
+
+
diff --git a/src/app/demo/select/custom-entries-demo.ts b/src/app/demo/select/custom-entries-demo.ts new file mode 100644 index 00000000..e06bc9bf --- /dev/null +++ b/src/app/demo/select/custom-entries-demo.ts @@ -0,0 +1,18 @@ +import { Component } from '@angular/core'; +import { INgxSelectOption } from 'app/lib/ngx-select/ngx-select.interfaces'; +import { FormControl } from '@angular/forms'; + +@Component({ + selector: 'custom-entries-demo', + templateUrl: './custom-entries-demo.html', +}) +export class CustomEntriesDemoComponent { + public items: string[] = ['Ana', 'Aleyna', 'Barbara', 'Charlotte', 'Diana', 'Elise', 'Fiona', 'Gina', 'Helene', 'Irene', 'Jessica', + 'Katarina', 'Lea', 'Liara', 'Maria', 'Mara', 'Melanie', 'Natalie']; + + public ngxDisabled = false; + public names = new FormControl(); + + public doSelectOptions = (options: INgxSelectOption[]) => console.log('MultipleDemoComponent.doSelectOptions', options); + +} diff --git a/src/app/doc.md b/src/app/doc.md index d04662fa..e901d8da 100644 --- a/src/app/doc.md +++ b/src/app/doc.md @@ -77,6 +77,7 @@ Any item can be `disabled` for prevent selection. For disable an item add the pr | optGroupLabelField | string | `'label'` | Provide an opportunity to change the name a `label` property of objects with an `options` property in the `items` | | optGroupOptionsField | string | `'options'` | Provide an opportunity to change the name of an `options` property of objects in the `items` | | [multiple] | boolean | `false` | Mode of this component. If set `true` user can select more than one option | +| [customEntries] | boolean | `false` | Submode for Multiple. If set `true` allows the user to create custom entries with Enter-Press | | [allowClear] | boolean | `false` | Set to `true` to allow the selection to be cleared. This option only applies to single-value inputs | | [placeholder] | string | `''` | Set to `true` Placeholder text to display when the element has no focus and selected items | | [noAutoComplete] | boolean | `false` | Set to `true` to hide the search input. This option only applies to single-value inputs | diff --git a/src/app/lib/ngx-select/ngx-select.component.ts b/src/app/lib/ngx-select/ngx-select.component.ts index 121ef051..1cb562c0 100644 --- a/src/app/lib/ngx-select/ngx-select.component.ts +++ b/src/app/lib/ngx-select/ngx-select.component.ts @@ -88,6 +88,7 @@ export class NgxSelectComponent implements INgxSelectOptions, ControlValueAccess @Input() public keepSelectMenuOpened = false; @Input() public autocomplete = 'off'; @Input() public dropDownMenuOtherClasses = ''; + @Input() public customEntries = false; public keyCodeToRemoveSelected = 'Delete'; public keyCodeToOptionsOpen = ['Enter', 'NumpadEnter']; public keyCodeToOptionsClose = 'Escape'; @@ -104,6 +105,7 @@ export class NgxSelectComponent implements INgxSelectOptions, ControlValueAccess @Output() public close = new EventEmitter(); @Output() public select = new EventEmitter(); @Output() public remove = new EventEmitter(); + @Output() public filtered = new EventEmitter(); @Output() public navigated = new EventEmitter(); @Output() public selectionChanges = new EventEmitter(); @@ -212,12 +214,21 @@ export class NgxSelectComponent implements INgxSelectOptions, ControlValueAccess debounceTime(0) // For a case when optionsFlat, actualValue came at the same time ).subscribe(([optionsFlat, actualValue]: [NgxSelectOption[], any[]]) => { const optionsSelected = []; - actualValue.forEach((value: any) => { - const selectedOption = optionsFlat.find((option: NgxSelectOption) => option.value === value); - if (selectedOption) { - optionsSelected.push(selectedOption); - } + if (this.customEntries && this.multiple) { + if (value) { + let selectedOption = optionsFlat.find((option: NgxSelectOption) => option.value === value); + if (!selectedOption) { + selectedOption = new NgxSelectOption(value, value, false, value); + } + optionsSelected.push(selectedOption); + } + } else { + const selectedOption = optionsFlat.find((option: NgxSelectOption) => option.value === value); + if (selectedOption) { + optionsSelected.push(selectedOption); + } + } }); if (this.keepSelectedItems) { @@ -247,6 +258,7 @@ export class NgxSelectComponent implements INgxSelectOptions, ControlValueAccess } return option; }); + this.filtered.emit(this.optionsFiltered); this.cacheOptionsFilteredFlat = null; this.navigateOption(ENavigation.firstIfOptionActiveInvisible); this.cd.markForCheck(); @@ -406,14 +418,23 @@ export class NgxSelectComponent implements INgxSelectOptions, ControlValueAccess this.keyCodeToNavigateLast ); const keysForClosedState = [].concat(this.keyCodeToOptionsOpen, this.keyCodeToRemoveSelected); - if (this.optionsOpened && keysForOpenedState.indexOf(event.code) !== -1) { event.preventDefault(); event.stopPropagation(); switch (event.code) { case ([].concat(this.keyCodeToOptionsSelect).indexOf(event.code) + 1) && event.code: - this.optionSelect(this.optionActive); - this.navigateOption(ENavigation.next); + if (this.customEntries && this.multiple && !this.optionActive) { + // tslint:disable-next-line + const selection = event.srcElement['value']; + const newEntry: NgxSelectOption = new NgxSelectOption(selection, selection, false, selection); + this.subjOptionsSelected.next((this.multiple ? this.subjOptionsSelected.value : []).concat([newEntry])); + // tslint:disable-next-line + event.srcElement['value'] = ''; + this.optionsClose(); + } else { + this.optionSelect(this.optionActive); + this.navigateOption(ENavigation.next); + } break; case this.keyCodeToNavigateFirst: this.navigateOption(ENavigation.first); @@ -540,7 +561,8 @@ export class NgxSelectComponent implements INgxSelectOptions, ControlValueAccess if (this.searchCallback) { return this.searchCallback(search, option); } - return (!search || regExp.test(option.text)) && (!this.multiple || selectedOptions.indexOf(option) === -1); + return (!search || regExp.test(option.text)) && + (!this.multiple || !selectedOptions.find(opt => opt.value === option.value)); }; return options.filter((option: TSelectOption) => {