@progress/kendo-angular-dropdowns 6.0.2 → 7.0.0-dev.202204150937

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/{dist/es2015/autocomplete → autocomplete}/autocomplete.component.d.ts +47 -35
  2. package/{dist/es2015/autocomplete → autocomplete}/autocomplete.module.d.ts +7 -0
  3. package/bundles/kendo-angular-dropdowns.umd.js +5 -0
  4. package/{dist/es2015/comboboxes → comboboxes}/combobox-column/column-cell-template.directive.d.ts +3 -0
  5. package/{dist/es2015/comboboxes → comboboxes}/combobox-column/column-header-template.directive.d.ts +3 -0
  6. package/{dist/es2015/comboboxes → comboboxes}/combobox-column/combobox-column.component.d.ts +3 -0
  7. package/{dist/es2015/comboboxes → comboboxes}/combobox-column/util.d.ts +0 -0
  8. package/{dist/es2015/comboboxes → comboboxes}/combobox.component.d.ts +53 -39
  9. package/comboboxes/combobox.module.d.ts +31 -0
  10. package/{dist/es2015/comboboxes → comboboxes}/multicolumncombobox.component.d.ts +8 -5
  11. package/{dist/es2015/common → common}/constants/error-messages.d.ts +27 -27
  12. package/{dist/es2015/common → common}/constants/touch-enabled.d.ts +0 -0
  13. package/{dist/es2015/common → common}/data.service.d.ts +6 -2
  14. package/{dist/es2015/common → common}/disabled-items/disabled-items.service.d.ts +3 -0
  15. package/{dist/es2015/common → common}/disabled-items/item-disabled.d.ts +0 -0
  16. package/{dist/es2015/common → common}/filter-input.directive.d.ts +3 -0
  17. package/{dist/es2015/common → common}/filtering/filter-settings.d.ts +0 -0
  18. package/{dist/es2015/common → common}/filtering/filter.directive.d.ts +6 -2
  19. package/{dist/es2015/common → common}/filtering/filterable-component.d.ts +0 -0
  20. package/{dist/es2015/common → common}/list-item.directive.d.ts +3 -0
  21. package/{dist/es2015/common → common}/list.component.d.ts +11 -6
  22. package/{dist/es2015/common → common}/localization/custom-messages.component.d.ts +4 -1
  23. package/{dist/es2015/common → common}/localization/localized-messages.directive.d.ts +3 -0
  24. package/{dist/es2015/common → common}/localization/messages.d.ts +3 -0
  25. package/{dist/es2015/common → common}/models/checkboxes-settings.d.ts +1 -1
  26. package/{dist/es2015/common → common}/models/direction.d.ts +0 -0
  27. package/{dist/es2015/common → common}/models/fillmode.d.ts +1 -7
  28. package/{dist/es2015/common → common}/models/list-type.d.ts +0 -0
  29. package/{dist/es2015/common → common}/models/page-change-event.d.ts +0 -0
  30. package/{dist/es2015/common → common}/models/popup-settings.d.ts +0 -0
  31. package/{dist/es2015/common → common}/models/preventable-event.d.ts +0 -0
  32. package/{dist/es2015/common → common}/models/remove-tag-event.d.ts +4 -1
  33. package/{dist/es2015/common → common}/models/rounded.d.ts +1 -8
  34. package/common/models/size.d.ts +8 -0
  35. package/{dist/es2015/common → common}/models/virtualization-settings.d.ts +0 -0
  36. package/{dist/es2015/common → common}/navigation/navigation-action.d.ts +0 -0
  37. package/{dist/es2015/common → common}/navigation/navigation.service.d.ts +3 -0
  38. package/{dist/es2015/common → common}/searchbar.component.d.ts +9 -4
  39. package/{dist/es2015/common → common}/selection/selectable.directive.d.ts +5 -2
  40. package/{dist/es2015/common → common}/selection/selection.service.d.ts +6 -2
  41. package/common/shared-directives.module.d.ts +37 -0
  42. package/common/shared.module.d.ts +26 -0
  43. package/{dist/es2015/common → common}/taglist.component.d.ts +7 -3
  44. package/{dist/es2015/common → common}/templates/custom-item-template.directive.d.ts +3 -0
  45. package/{dist/es2015/common → common}/templates/fixed-group-template.directive.d.ts +3 -0
  46. package/{dist/es2015/common → common}/templates/footer-template.directive.d.ts +3 -0
  47. package/{dist/es2015/common → common}/templates/group-tag-template.directive.d.ts +3 -0
  48. package/{dist/es2015/common → common}/templates/group-template.directive.d.ts +3 -0
  49. package/{dist/es2015/common → common}/templates/header-template.directive.d.ts +3 -0
  50. package/{dist/es2015/common → common}/templates/item-template.directive.d.ts +3 -0
  51. package/{dist/es2015/common → common}/templates/no-data-template.directive.d.ts +3 -0
  52. package/{dist/es2015/common → common}/templates/tag-template.directive.d.ts +3 -0
  53. package/{dist/es2015/common → common}/templates/template-context.directive.d.ts +4 -1
  54. package/{dist/es2015/common → common}/templates/value-template.directive.d.ts +3 -0
  55. package/{dist/es2015/common → common}/util.d.ts +3 -2
  56. package/{dist/es2015/dropdownlist → dropdownlist}/dropdownlist.component.d.ts +61 -48
  57. package/{dist/es2015/dropdownlist → dropdownlist}/dropdownlist.module.d.ts +7 -0
  58. package/{dist/es2015/dropdowns.module.d.ts → dropdowns.module.d.ts} +9 -0
  59. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/base-check.directive.d.ts +3 -0
  60. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/check-all.directive.d.ts +5 -2
  61. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/check.directive.d.ts +3 -0
  62. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/checkable-settings.d.ts +0 -0
  63. package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/checked-item.d.ts +0 -0
  64. package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/dropdowntree/flat-binding.directive.d.ts +10 -2
  65. package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/dropdowntree/hierarchy-binding.directive.d.ts +6 -4
  66. package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/multiselecttree/flat-binding.directive.d.ts +10 -2
  67. package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/multiselecttree/hierarchy-binding.directive.d.ts +6 -4
  68. package/{dist/es2015/dropdowntrees → dropdowntrees}/dropdowntree.component.d.ts +62 -45
  69. package/dropdowntrees/dropdowntrees.module.d.ts +25 -0
  70. package/{dist/es2015/dropdowntrees → dropdowntrees}/expanded-state/expand.directive.d.ts +5 -1
  71. package/{dist/es2015/dropdowntrees → dropdowntrees}/multiselecttree.component.d.ts +70 -52
  72. package/{dist/es2015/dropdowntrees → dropdowntrees}/summary-tag/summary-tag.directive.d.ts +3 -0
  73. package/{dist/es2015/dropdowntrees → dropdowntrees}/templates/node-template.directive.d.ts +3 -0
  74. package/{dist/es2015 → esm2015}/autocomplete/autocomplete.component.js +296 -258
  75. package/esm2015/autocomplete/autocomplete.module.js +36 -0
  76. package/{dist/es2015 → esm2015}/comboboxes/combobox-column/column-cell-template.directive.js +12 -11
  77. package/esm2015/comboboxes/combobox-column/column-header-template.directive.js +26 -0
  78. package/esm2015/comboboxes/combobox-column/combobox-column.component.js +59 -0
  79. package/{dist/es2015 → esm2015}/comboboxes/combobox-column/util.js +0 -2
  80. package/{dist/es2015 → esm2015}/comboboxes/combobox.component.js +321 -281
  81. package/{dist/es2015 → esm2015}/comboboxes/combobox.module.js +23 -14
  82. package/esm2015/comboboxes/multicolumncombobox.component.js +653 -0
  83. package/{dist/es2015 → esm2015}/common/constants/error-messages.js +0 -1
  84. package/{dist/es2015 → esm2015}/common/constants/touch-enabled.js +0 -0
  85. package/{dist/es2015 → esm2015}/common/data.service.js +8 -10
  86. package/{dist/es2015 → esm2015}/common/disabled-items/disabled-items.service.js +9 -9
  87. package/{dist/es2015 → esm2015}/common/disabled-items/item-disabled.js +1 -0
  88. package/esm2015/common/filter-input.directive.js +34 -0
  89. package/{dist/es2015 → esm2015}/common/filtering/filter-settings.js +1 -0
  90. package/{dist/es2015 → esm2015}/common/filtering/filter.directive.js +19 -24
  91. package/{dist/es2015 → esm2015}/common/filtering/filterable-component.js +0 -0
  92. package/esm2015/common/list-item.directive.js +22 -0
  93. package/{dist/es2015 → esm2015}/common/list.component.js +194 -126
  94. package/esm2015/common/localization/custom-messages.component.js +41 -0
  95. package/esm2015/common/localization/localized-messages.directive.js +44 -0
  96. package/esm2015/common/localization/messages.js +25 -0
  97. package/{dist/es2015 → esm2015}/common/models/checkboxes-settings.js +0 -0
  98. package/{dist/es2015 → esm2015}/common/models/direction.js +1 -0
  99. package/{dist/es → esm2015}/common/models/fillmode.js +1 -0
  100. package/{dist/es → esm2015}/common/models/list-type.js +1 -0
  101. package/{dist/es → esm2015}/common/models/page-change-event.js +1 -0
  102. package/{dist/es → esm2015}/common/models/popup-settings.js +1 -0
  103. package/{dist/es2015 → esm2015}/common/models/preventable-event.js +0 -0
  104. package/{dist/es2015 → esm2015}/common/models/remove-tag-event.js +0 -0
  105. package/{dist/es → esm2015}/common/models/rounded.js +1 -0
  106. package/{dist/es → esm2015}/common/models/size.js +1 -0
  107. package/{dist/es2015 → esm2015}/common/models/virtualization-settings.js +0 -0
  108. package/{dist/es → esm2015}/common/navigation/navigation-action.js +1 -0
  109. package/{dist/es2015 → esm2015}/common/navigation/navigation.service.js +10 -11
  110. package/{dist/es2015 → esm2015}/common/searchbar.component.js +84 -97
  111. package/esm2015/common/selection/selectable.directive.js +76 -0
  112. package/{dist/es2015 → esm2015}/common/selection/selection.service.js +8 -10
  113. package/{dist/es2015 → esm2015}/common/shared-directives.module.js +37 -10
  114. package/esm2015/common/shared.module.js +59 -0
  115. package/{dist/es2015 → esm2015}/common/taglist.component.js +112 -87
  116. package/{dist/es2015 → esm2015}/common/templates/custom-item-template.directive.js +12 -12
  117. package/{dist/es2015 → esm2015}/common/templates/fixed-group-template.directive.js +12 -12
  118. package/{dist/es2015 → esm2015}/common/templates/footer-template.directive.js +12 -11
  119. package/{dist/es2015 → esm2015}/common/templates/group-tag-template.directive.js +12 -12
  120. package/{dist/es2015 → esm2015}/common/templates/group-template.directive.js +12 -12
  121. package/{dist/es2015 → esm2015}/common/templates/header-template.directive.js +12 -11
  122. package/{dist/es2015 → esm2015}/common/templates/item-template.directive.js +12 -11
  123. package/{dist/es2015 → esm2015}/common/templates/no-data-template.directive.js +12 -12
  124. package/{dist/es2015 → esm2015}/common/templates/tag-template.directive.js +12 -12
  125. package/esm2015/common/templates/template-context.directive.js +33 -0
  126. package/{dist/es2015 → esm2015}/common/templates/value-template.directive.js +12 -12
  127. package/{dist/es2015 → esm2015}/common/util.js +1 -3
  128. package/{dist/es2015 → esm2015}/dropdownlist/dropdownlist.component.js +393 -325
  129. package/esm2015/dropdownlist/dropdownlist.module.js +37 -0
  130. package/{dist/es → esm2015}/dropdowns.module.js +12 -12
  131. package/{dist/es2015 → esm2015}/dropdowntrees/checked-state/base-check.directive.js +13 -12
  132. package/{dist/es2015 → esm2015}/dropdowntrees/checked-state/check-all.directive.js +39 -46
  133. package/{dist/es2015 → esm2015}/dropdowntrees/checked-state/check.directive.js +20 -27
  134. package/{dist/es → esm2015}/dropdowntrees/checked-state/checkable-settings.js +1 -0
  135. package/{dist/es → esm2015}/dropdowntrees/checked-state/checked-item.js +1 -0
  136. package/esm2015/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +51 -0
  137. package/esm2015/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +69 -0
  138. package/esm2015/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +50 -0
  139. package/esm2015/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +47 -0
  140. package/{dist/es2015 → esm2015}/dropdowntrees/dropdowntree.component.js +410 -343
  141. package/esm2015/dropdowntrees/dropdowntrees.module.js +61 -0
  142. package/esm2015/dropdowntrees/expanded-state/expand.directive.js +38 -0
  143. package/{dist/es2015 → esm2015}/dropdowntrees/multiselecttree.component.js +474 -378
  144. package/{dist/es2015 → esm2015}/dropdowntrees/summary-tag/summary-tag.directive.js +15 -15
  145. package/esm2015/dropdowntrees/templates/node-template.directive.js +28 -0
  146. package/{dist/es2015/common/shared.module.d.ts → esm2015/kendo-angular-dropdowns.js} +2 -3
  147. package/{dist/es → esm2015}/main.js +15 -0
  148. package/{dist/es2015 → esm2015}/multiselect/multiselect.component.js +367 -314
  149. package/{dist/es2015 → esm2015}/multiselect/multiselect.module.js +19 -14
  150. package/{dist/es2015 → esm2015}/multiselect/summary-tag.directive.js +15 -15
  151. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  152. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-dropdowns.js} +8066 -7210
  153. package/kendo-angular-dropdowns.d.ts +9 -0
  154. package/{dist/es2015/main.d.ts → main.d.ts} +16 -1
  155. package/{dist/es2015/multiselect → multiselect}/multiselect.component.d.ts +54 -39
  156. package/{dist/es2015/multiselect → multiselect}/multiselect.module.d.ts +9 -0
  157. package/{dist/es2015/multiselect → multiselect}/summary-tag.directive.d.ts +3 -0
  158. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  159. package/package.json +38 -114
  160. package/schematics/ngAdd/index.js +5 -2
  161. package/schematics/ngAdd/index.js.map +1 -1
  162. package/dist/cdn/js/kendo-angular-dropdowns.js +0 -20
  163. package/dist/cdn/main.js +0 -5
  164. package/dist/es/autocomplete/autocomplete.component.js +0 -1201
  165. package/dist/es/autocomplete/autocomplete.module.js +0 -36
  166. package/dist/es/comboboxes/combobox-column/column-cell-template.directive.js +0 -29
  167. package/dist/es/comboboxes/combobox-column/column-header-template.directive.js +0 -26
  168. package/dist/es/comboboxes/combobox-column/combobox-column.component.js +0 -78
  169. package/dist/es/comboboxes/combobox-column/util.js +0 -57
  170. package/dist/es/comboboxes/combobox.component.js +0 -1622
  171. package/dist/es/comboboxes/combobox.module.js +0 -52
  172. package/dist/es/comboboxes/multicolumncombobox.component.js +0 -230
  173. package/dist/es/common/constants/error-messages.js +0 -62
  174. package/dist/es/common/constants/touch-enabled.js +0 -9
  175. package/dist/es/common/data.service.js +0 -250
  176. package/dist/es/common/disabled-items/disabled-items.service.js +0 -45
  177. package/dist/es/common/disabled-items/item-disabled.js +0 -4
  178. package/dist/es/common/filter-input.directive.js +0 -37
  179. package/dist/es/common/filtering/filter-settings.js +0 -4
  180. package/dist/es/common/filtering/filter.directive.js +0 -141
  181. package/dist/es/common/filtering/filterable-component.js +0 -17
  182. package/dist/es/common/list-item.directive.js +0 -22
  183. package/dist/es/common/list.component.js +0 -503
  184. package/dist/es/common/localization/custom-messages.component.js +0 -44
  185. package/dist/es/common/localization/localized-messages.directive.js +0 -35
  186. package/dist/es/common/localization/messages.js +0 -34
  187. package/dist/es/common/models/checkboxes-settings.js +0 -15
  188. package/dist/es/common/models/direction.js +0 -4
  189. package/dist/es/common/models/preventable-event.js +0 -29
  190. package/dist/es/common/models/remove-tag-event.js +0 -24
  191. package/dist/es/common/models/virtualization-settings.js +0 -25
  192. package/dist/es/common/navigation/navigation.service.js +0 -147
  193. package/dist/es/common/searchbar.component.js +0 -253
  194. package/dist/es/common/selection/selectable.directive.js +0 -93
  195. package/dist/es/common/selection/selection.service.js +0 -107
  196. package/dist/es/common/shared-directives.module.js +0 -60
  197. package/dist/es/common/shared.module.js +0 -45
  198. package/dist/es/common/taglist.component.js +0 -179
  199. package/dist/es/common/templates/custom-item-template.directive.js +0 -47
  200. package/dist/es/common/templates/fixed-group-template.directive.js +0 -54
  201. package/dist/es/common/templates/footer-template.directive.js +0 -47
  202. package/dist/es/common/templates/group-tag-template.directive.js +0 -46
  203. package/dist/es/common/templates/group-template.directive.js +0 -54
  204. package/dist/es/common/templates/header-template.directive.js +0 -47
  205. package/dist/es/common/templates/item-template.directive.js +0 -46
  206. package/dist/es/common/templates/no-data-template.directive.js +0 -48
  207. package/dist/es/common/templates/tag-template.directive.js +0 -45
  208. package/dist/es/common/templates/template-context.directive.js +0 -40
  209. package/dist/es/common/templates/value-template.directive.js +0 -49
  210. package/dist/es/common/util.js +0 -337
  211. package/dist/es/dropdownlist/dropdownlist.component.js +0 -1649
  212. package/dist/es/dropdownlist/dropdownlist.module.js +0 -37
  213. package/dist/es/dropdowntrees/checked-state/base-check.directive.js +0 -68
  214. package/dist/es/dropdowntrees/checked-state/check-all.directive.js +0 -181
  215. package/dist/es/dropdowntrees/checked-state/check.directive.js +0 -169
  216. package/dist/es/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +0 -32
  217. package/dist/es/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +0 -42
  218. package/dist/es/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +0 -32
  219. package/dist/es/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +0 -42
  220. package/dist/es/dropdowntrees/dropdowntree.component.js +0 -1394
  221. package/dist/es/dropdowntrees/dropdowntrees.module.js +0 -45
  222. package/dist/es/dropdowntrees/expanded-state/expand.directive.js +0 -28
  223. package/dist/es/dropdowntrees/multiselecttree.component.js +0 -1683
  224. package/dist/es/dropdowntrees/summary-tag/summary-tag.directive.js +0 -63
  225. package/dist/es/dropdowntrees/templates/node-template.directive.js +0 -28
  226. package/dist/es/index.js +0 -30
  227. package/dist/es/multiselect/multiselect.component.js +0 -1734
  228. package/dist/es/multiselect/multiselect.module.js +0 -50
  229. package/dist/es/multiselect/summary-tag.directive.js +0 -65
  230. package/dist/es/package-metadata.js +0 -15
  231. package/dist/es2015/autocomplete/autocomplete.module.js +0 -33
  232. package/dist/es2015/comboboxes/combobox-column/column-header-template.directive.js +0 -25
  233. package/dist/es2015/comboboxes/combobox-column/combobox-column.component.js +0 -81
  234. package/dist/es2015/comboboxes/combobox.module.d.ts +0 -20
  235. package/dist/es2015/comboboxes/multicolumncombobox.component.js +0 -417
  236. package/dist/es2015/common/filter-input.directive.js +0 -35
  237. package/dist/es2015/common/list-item.directive.js +0 -21
  238. package/dist/es2015/common/localization/custom-messages.component.js +0 -36
  239. package/dist/es2015/common/localization/localized-messages.directive.js +0 -39
  240. package/dist/es2015/common/localization/messages.js +0 -28
  241. package/dist/es2015/common/models/fillmode.js +0 -4
  242. package/dist/es2015/common/models/list-type.js +0 -4
  243. package/dist/es2015/common/models/page-change-event.js +0 -4
  244. package/dist/es2015/common/models/popup-settings.js +0 -4
  245. package/dist/es2015/common/models/rounded.js +0 -4
  246. package/dist/es2015/common/models/size.d.ts +0 -14
  247. package/dist/es2015/common/models/size.js +0 -4
  248. package/dist/es2015/common/navigation/navigation-action.js +0 -24
  249. package/dist/es2015/common/selection/selectable.directive.js +0 -84
  250. package/dist/es2015/common/shared-directives.module.d.ts +0 -20
  251. package/dist/es2015/common/shared.module.js +0 -42
  252. package/dist/es2015/common/templates/template-context.directive.js +0 -35
  253. package/dist/es2015/dropdownlist/dropdownlist.module.js +0 -34
  254. package/dist/es2015/dropdowns.module.js +0 -50
  255. package/dist/es2015/dropdowntrees/checked-state/checkable-settings.js +0 -4
  256. package/dist/es2015/dropdowntrees/checked-state/checked-item.js +0 -4
  257. package/dist/es2015/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +0 -30
  258. package/dist/es2015/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +0 -35
  259. package/dist/es2015/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +0 -30
  260. package/dist/es2015/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +0 -35
  261. package/dist/es2015/dropdowntrees/dropdowntrees.module.d.ts +0 -9
  262. package/dist/es2015/dropdowntrees/dropdowntrees.module.js +0 -42
  263. package/dist/es2015/dropdowntrees/expanded-state/expand.directive.js +0 -26
  264. package/dist/es2015/dropdowntrees/templates/node-template.directive.js +0 -27
  265. package/dist/es2015/index.d.ts +0 -30
  266. package/dist/es2015/index.js +0 -30
  267. package/dist/es2015/index.metadata.json +0 -1
  268. package/dist/es2015/main.js +0 -44
  269. package/dist/fesm5/index.js +0 -13097
  270. package/dist/npm/autocomplete/autocomplete.component.js +0 -1203
  271. package/dist/npm/autocomplete/autocomplete.module.js +0 -38
  272. package/dist/npm/comboboxes/combobox-column/column-cell-template.directive.js +0 -31
  273. package/dist/npm/comboboxes/combobox-column/column-header-template.directive.js +0 -28
  274. package/dist/npm/comboboxes/combobox-column/combobox-column.component.js +0 -80
  275. package/dist/npm/comboboxes/combobox-column/util.js +0 -59
  276. package/dist/npm/comboboxes/combobox.component.js +0 -1624
  277. package/dist/npm/comboboxes/combobox.module.js +0 -54
  278. package/dist/npm/comboboxes/multicolumncombobox.component.js +0 -232
  279. package/dist/npm/common/constants/error-messages.js +0 -64
  280. package/dist/npm/common/constants/touch-enabled.js +0 -11
  281. package/dist/npm/common/data.service.js +0 -252
  282. package/dist/npm/common/disabled-items/disabled-items.service.js +0 -47
  283. package/dist/npm/common/disabled-items/item-disabled.js +0 -6
  284. package/dist/npm/common/filter-input.directive.js +0 -39
  285. package/dist/npm/common/filtering/filter-settings.js +0 -6
  286. package/dist/npm/common/filtering/filter.directive.js +0 -143
  287. package/dist/npm/common/filtering/filterable-component.js +0 -19
  288. package/dist/npm/common/list-item.directive.js +0 -24
  289. package/dist/npm/common/list.component.js +0 -505
  290. package/dist/npm/common/localization/custom-messages.component.js +0 -46
  291. package/dist/npm/common/localization/localized-messages.directive.js +0 -37
  292. package/dist/npm/common/localization/messages.js +0 -36
  293. package/dist/npm/common/models/checkboxes-settings.js +0 -17
  294. package/dist/npm/common/models/direction.js +0 -6
  295. package/dist/npm/common/models/fillmode.js +0 -6
  296. package/dist/npm/common/models/list-type.js +0 -6
  297. package/dist/npm/common/models/page-change-event.js +0 -6
  298. package/dist/npm/common/models/popup-settings.js +0 -6
  299. package/dist/npm/common/models/preventable-event.js +0 -31
  300. package/dist/npm/common/models/remove-tag-event.js +0 -26
  301. package/dist/npm/common/models/rounded.js +0 -6
  302. package/dist/npm/common/models/size.js +0 -6
  303. package/dist/npm/common/models/virtualization-settings.js +0 -27
  304. package/dist/npm/common/navigation/navigation-action.js +0 -26
  305. package/dist/npm/common/navigation/navigation.service.js +0 -149
  306. package/dist/npm/common/searchbar.component.js +0 -255
  307. package/dist/npm/common/selection/selectable.directive.js +0 -95
  308. package/dist/npm/common/selection/selection.service.js +0 -109
  309. package/dist/npm/common/shared-directives.module.js +0 -62
  310. package/dist/npm/common/shared.module.js +0 -47
  311. package/dist/npm/common/taglist.component.js +0 -181
  312. package/dist/npm/common/templates/custom-item-template.directive.js +0 -49
  313. package/dist/npm/common/templates/fixed-group-template.directive.js +0 -56
  314. package/dist/npm/common/templates/footer-template.directive.js +0 -49
  315. package/dist/npm/common/templates/group-tag-template.directive.js +0 -48
  316. package/dist/npm/common/templates/group-template.directive.js +0 -56
  317. package/dist/npm/common/templates/header-template.directive.js +0 -49
  318. package/dist/npm/common/templates/item-template.directive.js +0 -48
  319. package/dist/npm/common/templates/no-data-template.directive.js +0 -50
  320. package/dist/npm/common/templates/tag-template.directive.js +0 -47
  321. package/dist/npm/common/templates/template-context.directive.js +0 -42
  322. package/dist/npm/common/templates/value-template.directive.js +0 -51
  323. package/dist/npm/common/util.js +0 -339
  324. package/dist/npm/dropdownlist/dropdownlist.component.js +0 -1651
  325. package/dist/npm/dropdownlist/dropdownlist.module.js +0 -39
  326. package/dist/npm/dropdowns.module.js +0 -55
  327. package/dist/npm/dropdowntrees/checked-state/base-check.directive.js +0 -70
  328. package/dist/npm/dropdowntrees/checked-state/check-all.directive.js +0 -183
  329. package/dist/npm/dropdowntrees/checked-state/check.directive.js +0 -171
  330. package/dist/npm/dropdowntrees/checked-state/checkable-settings.js +0 -6
  331. package/dist/npm/dropdowntrees/checked-state/checked-item.js +0 -6
  332. package/dist/npm/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +0 -34
  333. package/dist/npm/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +0 -44
  334. package/dist/npm/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +0 -34
  335. package/dist/npm/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +0 -44
  336. package/dist/npm/dropdowntrees/dropdowntree.component.js +0 -1399
  337. package/dist/npm/dropdowntrees/dropdowntrees.module.js +0 -47
  338. package/dist/npm/dropdowntrees/expanded-state/expand.directive.js +0 -30
  339. package/dist/npm/dropdowntrees/multiselecttree.component.js +0 -1688
  340. package/dist/npm/dropdowntrees/summary-tag/summary-tag.directive.js +0 -65
  341. package/dist/npm/dropdowntrees/templates/node-template.directive.js +0 -30
  342. package/dist/npm/index.js +0 -55
  343. package/dist/npm/main.js +0 -86
  344. package/dist/npm/multiselect/multiselect.component.js +0 -1736
  345. package/dist/npm/multiselect/multiselect.module.js +0 -52
  346. package/dist/npm/multiselect/summary-tag.directive.js +0 -67
  347. package/dist/npm/package-metadata.js +0 -17
  348. package/dist/systemjs/kendo-angular-dropdowns.js +0 -5
@@ -1,20 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-angular-treeview"),require("@progress/kendo-angular-popup"),require("@angular/forms"),require("rxjs"),require("@progress/kendo-licensing"),require("@angular/common")):"function"==typeof define&&define.amd?define([,,,,,,,,],t):"object"==typeof exports?exports.KendoAngularDropdowns=t(require("@angular/core"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-angular-treeview"),require("@progress/kendo-angular-popup"),require("@angular/forms"),require("rxjs"),require("@progress/kendo-licensing"),require("@angular/common")):e.KendoAngularDropdowns=t(e.ng.core,e.KendoAngularCommon,e.KendoAngularL10N,e.KendoAngularTreeview,e.KendoAngularPopup,e.ng.forms,e.rxjs,e.KendoLicensing,e.ng.common)}(window,(function(e,t,n,i,r,o,s,a,u){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=66)}([function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return r})),n.d(t,"__assign",(function(){return o})),n.d(t,"__rest",(function(){return s})),n.d(t,"__decorate",(function(){return a})),n.d(t,"__param",(function(){return u})),n.d(t,"__metadata",(function(){return c})),n.d(t,"__awaiter",(function(){return l})),n.d(t,"__generator",(function(){return p})),n.d(t,"__createBinding",(function(){return d})),n.d(t,"__exportStar",(function(){return h})),n.d(t,"__values",(function(){return f})),n.d(t,"__read",(function(){return m})),n.d(t,"__spread",(function(){return v})),n.d(t,"__spreadArrays",(function(){return g})),n.d(t,"__await",(function(){return b})),n.d(t,"__asyncGenerator",(function(){return y})),n.d(t,"__asyncDelegator",(function(){return _})),n.d(t,"__asyncValues",(function(){return x})),n.d(t,"__makeTemplateObject",(function(){return w})),n.d(t,"__importStar",(function(){return S})),n.d(t,"__importDefault",(function(){return C})),n.d(t,"__classPrivateFieldGet",(function(){return I})),n.d(t,"__classPrivateFieldSet",(function(){return T}));
6
- /*! *****************************************************************************
7
- Copyright (c) Microsoft Corporation.
8
-
9
- Permission to use, copy, modify, and/or distribute this software for any
10
- purpose with or without fee is hereby granted.
11
-
12
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
13
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
14
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
15
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
16
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
17
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18
- PERFORMANCE OF THIS SOFTWARE.
19
- ***************************************************************************** */
20
- var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function a(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function u(e,t){return function(n,i){t(n,i,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{u(i.next(e))}catch(e){o(e)}}function a(e){try{u(i.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((i=i.apply(e,t||[])).next())}))}function p(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}function h(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function g(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(e){r[e]&&(i[e]=function(t){return new Promise((function(n,i){o.push([e,t,n,i])>1||a(e,t)}))})}function a(e,t){try{(n=r[e](t)).value instanceof b?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function u(e){a("next",e)}function c(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function _(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,r){t[i]=e[i]?function(t){return(n=!n)?{value:b(e[i](t)),done:"return"===i}:r?r(t):t}:r}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,r){(function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)})(i,r,(t=e[n](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function C(e){return e&&e.__esModule?e:{default:e}}function I(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function T(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),r=n(29);t.isPresent=function(e){return null!=e},t.isNumber=function(e){return!isNaN(e)},t.guid=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},t.combineStr=function(e,t){return e.concat(t.substr(t.toLowerCase().indexOf(e.toLowerCase())+e.length))},t.isWindowAvailable=function(){return"undefined"!=typeof window},t.isArray=function(e){return Array.isArray(e)},t.isObject=function(e){return t.isPresent(e)&&"object"==typeof e},t.isEmptyString=function(e){return"string"==typeof e&&0===e.length},t.resolveValuesInArray=function(e,n,i){return void 0===n&&(n=[]),e.map((function(e){return n.find((function(n){return t.getter(n,i)===e}))})).filter((function(e){return void 0!==e}))},t.validateComplexValues=function(e,n){return t.isArray(e)&&e.filter((function(e){return t.isObject(e)&&t.isPresent(t.getter(e,n))}))},t.resolveAllValues=function(e,n,i){var r=t.validateComplexValues(e,i)||[];return(t.resolveValuesInArray(e,n,i)||[]).concat(r)},t.isObjectArray=function(e){return t.isArray(e)&&e.every((function(e){return t.isObject(e)}))},t.selectedIndices=function(e,n,i){var r=n.map((function(e){return t.isPresent(e)&&t.isPresent(t.getter(e,i))?t.getter(e,i):e}));return e.reduce((function(e,n){var o=t.isPresent(n)&&t.isPresent(t.getter(n,i))?t.getter(n,i):n,s=r.indexOf(o);return-1!==s&&e.push(s),e}),[])},t.getter=function(e,n){return t.isPresent(e)?t.isPresent(n)&&t.isObject(e)?r.getter(n)(e):e:null},t.resolveValue=function(e){var n;return t.isPresent(e.value)?{dataItem:n=[e.defaultItem].concat(e.data).find((function(n){return t.getter(n,e.valueField)===e.value})),focused:e.data.indexOf(n),selected:e.data.indexOf(n)}:e.index?(n=e.data[e.index],{dataItem:e.data[e.index],focused:e.index,selected:e.index}):{dataItem:e.defaultItem,focused:-1,selected:-1}},t.sameCharsOnly=function(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0},t.shuffleData=function(e,t,n){var i=e;return n&&(i=[n].concat(i)),i.slice(t).concat(i.slice(0,t))},t.matchText=function(e,n,i){if(!t.isPresent(e))return!1;var r=String(e);return i&&(r=r.toLowerCase()),0===r.indexOf(n)},t.elementFromPoint=function(e,t){if(i.isDocumentAvailable())return document.elementFromPoint(e,t)},t.hasProps=function(e,n){return!!t.isPresent(e)&&n.every((function(t){return e.hasOwnProperty(t)}))},t.isUntouched=function(e){return e.className.includes("ng-untouched")},t.noop=function(e){};var o=function(e,t){var n=e.matches||e.msMatchesSelector||e.webkitMatchesSelector;return!!n&&n.call(e,t)};t.closest=function(e,t){for(var n=e;null!==n&&1===n.nodeType;){if(o(n,t))return n;n=n.parentElement||n.parentNode}return null},t.parseNumber=function(e,t){void 0===t&&(t=0);var n=Number(e);return isNaN(n)?t:n},t.inDropDown=function(e,t,n){return e.nativeElement.contains(t)||n&&n.popupElement.contains(t)},t.getHierarchicalItemLevel=function(e){return(e||"").split("_").length-1},t.fetchDescendentNodes=function(e,n){if(!t.isPresent(e)||0===e.children.length)return[];var i=e.children;return t.isPresent(n)&&(i=i.filter((function(e){return n(e.item)}))),i.forEach((function(e){return i=i.concat(t.fetchDescendentNodes(e,n))})),i},t.valueFrom=function(e,n){var i=e.dataItem,o=e.index,s=e.level,a=Array.isArray(n)?n:[n],u=t.isPresent(s)?s:t.getHierarchicalItemLevel(o),c=a[Math.min(u,a.length-1)];return r.getter(c)(i)},t.getSizeClass=function(e,t){return{small:"k-"+e+"-sm",medium:"k-"+e+"-md",large:"k-"+e+"-lg"}[t]},t.getRoundedClass=function(e){return{small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[e]},t.getFillModeClass=function(e,t){return{solid:"k-"+e+"-solid",flat:"k-"+e+"-flat",outline:"k-"+e+"-outline"}[t]}},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),s=function(){function e(){this.onSelect=new r.EventEmitter,this.onChange=new r.EventEmitter,this.onFocus=new r.EventEmitter,this.total=0,this.selectedIndices=[]}return e.prototype.getTotal=function(){return this.total},e.prototype.isSelected=function(e){return o.isPresent(this.selectedIndices.find((function(t){return t===e})))},e.prototype.isFocused=function(e){return e===this.focused},e.prototype.focus=function(e){this.isFocused(e)||(this.focused=e,this.onFocus.emit(e))},e.prototype.select=function(e){this.isSelected(e)||(this.selectedIndices=[e],this.focused=e,this.onSelect.emit({indices:[e],newSelection:o.isPresent(e)}))},e.prototype.add=function(e){this.isSelected(e)||(this.selectedIndices.push(e),this.focused=e,this.onChange.emit({added:e,indices:this.selectedIndices.slice()}))},e.prototype.unselect=function(e){if(this.isSelected(e)){var t=this.selectedIndices.indexOf(e);this.selectedIndices.splice(t,1),this.focused=e,this.onChange.emit({indices:this.selectedIndices.slice(),removed:e})}},e.prototype.change=function(e){var t=o.isPresent(e)&&!this.isSelected(e);this.selectedIndices=[e],this.focused=e,this.onChange.emit({indices:[e],newSelection:t})},e.prototype.resetSelection=function(e){this.selectedIndices=e instanceof Array?e:[e],this.focused=this.selectedIndices[this.selectedIndices.length-1]},Object.defineProperty(e.prototype,"selected",{get:function(){return this.selectedIndices.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focused",{get:function(){return this.focusedIndex},set:function(e){this.focusedIndex!==e&&(this.focusedIndex=e,this.onFocus.emit(e))},enumerable:!0,configurable:!0}),e=i.__decorate([r.Injectable()],e)}();t.SelectionService=s},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),s=n(8),a=function(){function e(e){this.dataService=e,this.itemDisabled=null}return e.prototype.isIndexDisabled=function(e){if(this.itemDisabled){var t=this.dataService.itemAt(e);if(o.isPresent(t))return this.itemDisabled({dataItem:t,index:e});if(o.isPresent(this.defaultItem))return this.itemDisabled({dataItem:this.defaultItem,index:-1})}},e.prototype.isItemDisabled=function(e){if(this.itemDisabled){var t=this.dataService.indexOf(e);if(-1!==t)return this.itemDisabled({dataItem:e,index:t});if(o.isPresent(this.defaultItem))return this.itemDisabled({dataItem:this.defaultItem,index:-1})}},e=i.__decorate([r.Injectable(),i.__metadata("design:paramtypes",[s.DataService])],e)}();t.DisabledItemsService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),s=function(){function e(){this.grouped=!1,this.groupIndices=[]}return Object.defineProperty(e.prototype,"data",{get:function(){return this.grouped?this._flatData:this._data},set:function(e){this._data=e,this.grouped=this.isGrouped(e),this.grouped&&(this.groupIndices=this.getGroupIndices(e),this._flatData=this.flatten(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemsCount",{get:function(){return o.isPresent(this.data)&&0!==this.data.length?(this.grouped?this._flatData.filter((function(e){return!e.header})):this.data).length:0},enumerable:!0,configurable:!0}),e.prototype.isGrouped=function(e){return o.isPresent(e)&&0!==e.length&&o.isPresent(e[0])&&o.hasProps(e[0],["aggregates","field","items","value"])},e.prototype.getGroupIndices=function(e){for(var t=[],n=0;n<=e.length-1;n++)t[n]=(t[n-1]||0)+e[n].items.length;return t},e.prototype.filter=function(e){var t=[];if(this.isGrouped(this.data))for(var n=0;n<=this.groupIndices.length-1;n++){var i=this.data[n].items.filter(e);i&&(t=t.concat(i))}else t=this.data.filter(e);return t},e.prototype.indexOf=function(e,t){void 0===t&&(t=0);var n=function(t){return t===e};return this.grouped&&(n=function(t){return t.value===e}),this.findIndex(n,t)},e.prototype.findIndex=function(e,t){void 0===t&&(t=0);var n=-1;if(this.grouped){n=(i=this._flatData.filter((function(e){return!e.header&&e.offsetIndex>=t}))).findIndex(e),n=i[n]?i[n].offsetIndex:-1}else{var i,r=(i=this.data.slice(t)).findIndex(e);n=-1!==r?r+t:-1}return n},e.prototype.closestGroup=function(e){for(var t=e;t>=0;t--)if(this._flatData[t].header)return this._flatData[t]},e.prototype.find=function(e){var t=this.findIndex(e);return this.itemAt(t)},e.prototype.flatIndex=function(e){if(0===this.itemsCount)return-1;if(!this.grouped)return e;var t=this._flatData.find((function(t){return!t.header&&t.offsetIndex===e}));return t?t.index:-1},e.prototype.itemAt=function(e){var t;if(0===this.itemsCount)return t;if(this.grouped){var n=this._flatData.find((function(t){return!t.header&&t.offsetIndex===e}));n&&(t=n.value)}else t=this.data[e];return t},e.prototype.groupAt=function(e){if(0!==this.itemsCount&&this.isGrouped)return this._flatData.find((function(t){return t.header&&t.index===e}))},e.prototype.groupField=function(){return 0!==this.itemsCount&&this.isGrouped?this._data[0].field:null},e.prototype.itemGroup=function(e){if(e&&0!==this.itemsCount&&this.isGrouped){var t=this.groupField();return t?o.getter(e,t):void 0}},e.prototype.flatten=function(e,t,n,i){void 0===t&&(t=void 0),void 0===n&&(n=0),void 0===i&&(i=0);var r=[];o.isPresent(t)&&r.push({header:!0,index:i+n,offsetIndex:i,value:t});for(var s=0;s<e.length;s++){var a=[];e[s].items?(a=this.flatten(e[s].items,e[s].value,n,s),n+=e[s].items.length):a.push({header:!1,index:i+n+s+1,offsetIndex:n+s,value:e[s]}),r=r.concat(a)}return r},e=i.__decorate([r.Injectable()],e)}();t.DataService=s},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);t.TOUCH_ENABLED=new i.InjectionToken("dropdowns-touch-enabled")},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoDropDownListHeaderTemplate],[kendoComboBoxHeaderTemplate],[kendoDropDownTreeHeaderTemplate],[kendoMultiColumnComboBoxHeaderTemplate],[kendoAutoCompleteHeaderTemplate],[kendoMultiSelectHeaderTemplate],[kendoMultiSelectTreeHeaderTemplate]"}),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.HeaderTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoDropDownListFooterTemplate],[kendoComboBoxFooterTemplate],[kendoDropDownTreeFooterTemplate],[kendoMultiColumnComboBoxFooterTemplate],[kendoAutoCompleteFooterTemplate],[kendoMultiSelectFooterTemplate],[kendoMultiSelectTreeFooterTemplate]"}),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.FooterTemplateDirective=o},function(e,t){e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]"}),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.ItemTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoDropDownListGroupTemplate],[kendoComboBoxGroupTemplate],[kendoMultiColumnComboBoxGroupTemplate],[kendoAutoCompleteGroupTemplate],[kendoMultiSelectGroupTemplate]"}),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.GroupTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoDropDownListFixedGroupTemplate],[kendoComboBoxFixedGroupTemplate],[kendoMultiColumnComboBoxFixedGroupTemplate],[kendoAutoCompleteFixedGroupTemplate],[kendoMultiSelectFixedGroupTemplate]"}),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.FixedGroupTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),s=n(3),a=n(23),u=n(7),c=n(5),l=function(e,t){this.index=e,this.originalEvent=t};t.NavigationEvent=l;var p=function(){function e(e,t){this.disabledItemsService=e,this.selectionService=t,this.open=new r.EventEmitter,this.close=new r.EventEmitter,this.enter=new r.EventEmitter,this.tab=new r.EventEmitter,this.esc=new r.EventEmitter,this.up=new r.EventEmitter,this.right=new r.EventEmitter,this.down=new r.EventEmitter,this.left=new r.EventEmitter,this.delete=new r.EventEmitter,this.backspace=new r.EventEmitter,this.home=new r.EventEmitter,this.end=new r.EventEmitter}return e.prototype.process=function(e){var t,n=e.originalEvent.keyCode,i=e.originalEvent.altKey,r=a.NavigationAction.Undefined;i&&n===s.Keys.ArrowDown?r=a.NavigationAction.Open:i&&n===s.Keys.ArrowUp?r=a.NavigationAction.Close:n===s.Keys.Enter?r=a.NavigationAction.Enter:n===s.Keys.Escape?r=a.NavigationAction.Esc:n===s.Keys.Tab?r=a.NavigationAction.Tab:n===s.Keys.ArrowUp?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),r=a.NavigationAction.Up):n===s.Keys.ArrowLeft?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),r=a.NavigationAction.Left):n===s.Keys.ArrowDown?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),r=a.NavigationAction.Down):n===s.Keys.ArrowRight?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),r=a.NavigationAction.Right):n===s.Keys.Home?(t=this.isDisabled(0)?e.current:0,r=a.NavigationAction.Home):n===s.Keys.End?(t=this.isDisabled(e.max)?e.current:e.max,r=a.NavigationAction.End):n===s.Keys.Delete?r=a.NavigationAction.Delete:n===s.Keys.Backspace&&(r=a.NavigationAction.Backspace);var o=new l(t,e.originalEvent);return r!==a.NavigationAction.Undefined&&this[a.NavigationAction[r].toLowerCase()].emit(o),r},e.prototype.next=function(e){var t=e.current,n=e.start,i=e.end,r=e.step,s=o.isPresent(t)?this.clampIndex(t+r,n,i):n,a=this.firstFocusableIndex(s,n,i,r);if(o.isPresent(a))return a;if(this.selectionService.isSelected(t)&&t>=n)return t;var u=-1*r;return this.firstFocusableIndex(s,n,i,u)},e.prototype.clampIndex=function(e,t,n){return!o.isPresent(e)||e<t?t:e>n?n:e},e.prototype.firstFocusableIndex=function(e,t,n,i){for(;t<=e&&e<=n;){if(!this.isDisabled(e))return e;e+=i}},e.prototype.isDisabled=function(e){if(this.disabledItemsService)return this.disabledItemsService.isIndexDisabled(e)},e=i.__decorate([r.Injectable(),i.__metadata("design:paramtypes",[u.DisabledItemsService,c.SelectionService])],e)}();t.NavigationService=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoDropDownListNoDataTemplate],[kendoDropDownTreeNoDataTemplate],[kendoComboBoxNoDataTemplate],[kendoMultiColumnComboBoxNoDataTemplate],[kendoAutoCompleteNoDataTemplate],[kendoMultiSelectNoDataTemplate],[kendoMultiSelectTreeNoDataTemplate]"}),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.NoDataTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(16),s=n(17),a=n(18),u=n(12),c=n(13),l=n(20),p=n(34),d=n(35),h=n(28),f=n(71),m=n(72),v=n(57),g=n(73),b=[u.HeaderTemplateDirective,c.FooterTemplateDirective,o.ItemTemplateDirective,s.GroupTemplateDirective,a.FixedGroupTemplateDirective,l.NoDataTemplateDirective,p.ValueTemplateDirective,d.TagTemplateDirective,h.GroupTagTemplateDirective,f.LocalizedMessagesDirective,m.CustomMessagesComponent,v.FilterDirective,g.FilterInputDirective],y=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[b],exports:[b]})],e)}();t.SharedDirectivesModule=y},function(e,t,n){"use strict";n.r(t),n.d(t,"audit",(function(){return N})),n.d(t,"auditTime",(function(){return U})),n.d(t,"buffer",(function(){return $})),n.d(t,"bufferCount",(function(){return Z})),n.d(t,"bufferTime",(function(){return ee})),n.d(t,"bufferToggle",(function(){return ae})),n.d(t,"bufferWhen",(function(){return le})),n.d(t,"catchError",(function(){return he})),n.d(t,"combineAll",(function(){return _e})),n.d(t,"combineLatest",(function(){return we})),n.d(t,"concat",(function(){return Be})),n.d(t,"concatAll",(function(){return Me})),n.d(t,"concatMap",(function(){return ze})),n.d(t,"concatMapTo",(function(){return Re})),n.d(t,"count",(function(){return Ve})),n.d(t,"debounce",(function(){return Ge})),n.d(t,"debounceTime",(function(){return Ue})),n.d(t,"defaultIfEmpty",(function(){return Ze})),n.d(t,"delay",(function(){return rt})),n.d(t,"delayWhen",(function(){return ut})),n.d(t,"dematerialize",(function(){return ht})),n.d(t,"distinct",(function(){return vt})),n.d(t,"distinctUntilChanged",(function(){return yt})),n.d(t,"distinctUntilKeyChanged",(function(){return wt})),n.d(t,"elementAt",(function(){return zt})),n.d(t,"endWith",(function(){return Rt})),n.d(t,"every",(function(){return Vt})),n.d(t,"exhaust",(function(){return Gt})),n.d(t,"exhaustMap",(function(){return Ut})),n.d(t,"expand",(function(){return Yt})),n.d(t,"filter",(function(){return It})),n.d(t,"finalize",(function(){return Jt})),n.d(t,"find",(function(){return tn})),n.d(t,"findIndex",(function(){return on})),n.d(t,"first",(function(){return sn})),n.d(t,"groupBy",(function(){return hn})),n.d(t,"ignoreElements",(function(){return yn})),n.d(t,"isEmpty",(function(){return wn})),n.d(t,"last",(function(){return kn})),n.d(t,"map",(function(){return Ee})),n.d(t,"mapTo",(function(){return Dn})),n.d(t,"materialize",(function(){return Fn})),n.d(t,"max",(function(){return Rn})),n.d(t,"merge",(function(){return Ln})),n.d(t,"mergeAll",(function(){return je})),n.d(t,"mergeMap",(function(){return Oe})),n.d(t,"flatMap",(function(){return Oe})),n.d(t,"mergeMapTo",(function(){return Hn})),n.d(t,"mergeScan",(function(){return Gn})),n.d(t,"min",(function(){return Un})),n.d(t,"multicast",(function(){return Qn})),n.d(t,"observeOn",(function(){return ti})),n.d(t,"onErrorResumeNext",(function(){return oi})),n.d(t,"pairwise",(function(){return ui})),n.d(t,"partition",(function(){return di})),n.d(t,"pluck",(function(){return hi})),n.d(t,"publish",(function(){return mi})),n.d(t,"publishBehavior",(function(){return gi})),n.d(t,"publishLast",(function(){return yi})),n.d(t,"publishReplay",(function(){return Ci})),n.d(t,"race",(function(){return ki})),n.d(t,"reduce",(function(){return zn})),n.d(t,"repeat",(function(){return Di})),n.d(t,"repeatWhen",(function(){return Fi})),n.d(t,"retry",(function(){return Mi})),n.d(t,"retryWhen",(function(){return zi})),n.d(t,"refCount",(function(){return $n})),n.d(t,"sample",(function(){return Li})),n.d(t,"sampleTime",(function(){return Ki})),n.d(t,"scan",(function(){return Mn})),n.d(t,"sequenceEqual",(function(){return qi})),n.d(t,"share",(function(){return Qi})),n.d(t,"shareReplay",(function(){return er})),n.d(t,"single",(function(){return tr})),n.d(t,"skip",(function(){return rr})),n.d(t,"skipLast",(function(){return ar})),n.d(t,"skipUntil",(function(){return lr})),n.d(t,"skipWhile",(function(){return hr})),n.d(t,"startWith",(function(){return vr})),n.d(t,"subscribeOn",(function(){return Cr})),n.d(t,"switchAll",(function(){return Dr})),n.d(t,"switchMap",(function(){return Tr})),n.d(t,"switchMapTo",(function(){return Or})),n.d(t,"take",(function(){return Mt})),n.d(t,"takeLast",(function(){return In})),n.d(t,"takeUntil",(function(){return Pr})),n.d(t,"takeWhile",(function(){return jr})),n.d(t,"tap",(function(){return kt})),n.d(t,"throttle",(function(){return zr})),n.d(t,"throttleTime",(function(){return Lr})),n.d(t,"throwIfEmpty",(function(){return At})),n.d(t,"timeInterval",(function(){return Wr})),n.d(t,"timeout",(function(){return Jr})),n.d(t,"timeoutWith",(function(){return Yr})),n.d(t,"timestamp",(function(){return Qr})),n.d(t,"toArray",(function(){return no})),n.d(t,"window",(function(){return io})),n.d(t,"windowCount",(function(){return so})),n.d(t,"windowTime",(function(){return co})),n.d(t,"windowToggle",(function(){return go})),n.d(t,"windowWhen",(function(){return _o})),n.d(t,"withLatestFrom",(function(){return So})),n.d(t,"zip",(function(){return Fo})),n.d(t,"zipAll",(function(){return Ao}));var i=n(0);function r(e){return"function"==typeof e}var o=!1,s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack;o=e},get useDeprecatedSynchronousErrorHandling(){return o}};function a(e){setTimeout((function(){throw e}))}var u={closed:!0,next:function(e){},error:function(e){if(s.useDeprecatedSynchronousErrorHandling)throw e;a(e)},complete:function(){}},c=Array.isArray||function(e){return e&&"number"==typeof e.length};function l(e){return null!==e&&"object"==typeof e}function p(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}p.prototype=Object.create(Error.prototype);var d=p,h=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,i=this._parents,o=this._unsubscribe,s=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var a=-1,u=i?i.length:0;n;)n.remove(this),n=++a<u&&i[a]||null;if(r(o))try{o.call(this)}catch(n){t=!0,e=n instanceof d?f(n.errors):[n]}if(c(s))for(a=-1,u=s.length;++a<u;){var p=s[a];if(l(p))try{p.unsubscribe()}catch(n){t=!0,e=e||[],n instanceof d?e=e.concat(f(n.errors)):e.push(n)}}if(t)throw new d(e)}},e.prototype.add=function(t){var n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var i=n;(n=new e)._subscriptions=[i]}break;default:if(!t)return e.EMPTY;throw new Error("unrecognized teardown "+t+" added to Subscription.")}if(n._addParent(this)){var r=this._subscriptions;r?r.push(n):this._subscriptions=[n]}return n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.prototype._addParent=function(e){var t=this._parent,n=this._parents;return t!==e&&(t?n?-1===n.indexOf(e)&&(n.push(e),!0):(this._parents=[e],!0):(this._parent=e,!0))},e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();function f(e){return e.reduce((function(e,t){return e.concat(t instanceof d?t.errors:t)}),[])}var m="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),v=function(e){function t(n,i,r){var o=e.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=u;break;case 1:if(!n){o.destination=u;break}if("object"==typeof n){n instanceof t?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new g(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new g(o,n,i,r)}return o}return i.__extends(t,e),t.prototype[m]=function(){return this},t.create=function(e,n,i){var r=new t(e,n,i);return r.syncErrorThrowable=!1,r},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this},t}(h),g=function(e){function t(t,n,i,o){var s,a=e.call(this)||this;a._parentSubscriber=t;var c=a;return r(n)?s=n:n&&(s=n.next,i=n.error,o=n.complete,n!==u&&(r((c=Object.create(n)).unsubscribe)&&a.add(c.unsubscribe.bind(c)),c.unsubscribe=a.unsubscribe.bind(a))),a._context=c,a._next=s,a._error=i,a._complete=o,a}return i.__extends(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;s.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=s.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):a(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;a(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};s.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),s.useDeprecatedSynchronousErrorHandling)throw e;a(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!s.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return s.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(a(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(v),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(v),y=function(e){function t(t,n,i){var r=e.call(this)||this;return r.parent=t,r.outerValue=n,r.outerIndex=i,r.index=0,r}return i.__extends(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(v);var _="function"==typeof Symbol&&Symbol.observable||"@@observable";function x(){}function w(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return S(e)}function S(e){return e?1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}:x}var C=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var i=this.operator,r=function(e,t,n){if(e){if(e instanceof v)return e;if(e[m])return e[m]()}return e||t||n?new v(e,t,n):new v(u)}(e,t,n);if(i?r.add(i.call(r,this.source)):r.add(this.source||s.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),s.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){s.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),!function(e){for(;e;){var t=e,n=t.closed,i=t.destination,r=t.isStopped;if(n||r)return!1;e=i&&i instanceof v?i:null}return!0}(e)?console.warn(t):e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=I(t))((function(t,i){var r;r=n.subscribe((function(t){try{e(t)}catch(e){i(e),r&&r.unsubscribe()}}),i,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[_]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:S(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=I(e))((function(e,n){var i;t.subscribe((function(e){return i=e}),(function(e){return n(e)}),(function(){return e(i)}))}))},e.create=function(t){return new e(t)},e}();function I(e){if(e||(e=s.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var T=function(e){return function(t){for(var n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.closed||t.complete()}},E=function(e){return function(t){return e.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,a),t}};function k(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var D=k(),O=function(e){return function(t){for(var n=e[D]();;){var i=n.next();if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t}},P=function(e){return function(t){var n=e[_]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)}},F=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function A(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var j=function(e){if(e instanceof C)return function(t){return e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t)};if(e&&"function"==typeof e[_])return P(e);if(F(e))return T(e);if(A(e))return E(e);if(e&&"function"==typeof e[D])return O(e);var t=l(e)?"an invalid object":"'"+e+"'";throw new TypeError("You provided "+t+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function M(e,t,n,i,r){if(void 0===r&&(r=new y(e,n,i)),!r.closed)return j(t)(r)}function N(e){return function(t){return t.lift(new B(e))}}var B=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new z(e,this.durationSelector))},e}(),z=function(e){function t(t,n){var i=e.call(this,t)||this;return i.durationSelector=n,i.hasValue=!1,i}return i.__extends(t,e),t.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t=void 0;try{t=(0,this.durationSelector)(e)}catch(e){return this.destination.error(e)}var n=M(this,t);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},t.prototype.clearThrottle=function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),t&&(this.value=null,this.hasValue=!1,this.destination.next(e))},t.prototype.notifyNext=function(e,t,n,i){this.clearThrottle()},t.prototype.notifyComplete=function(){this.clearThrottle()},t}(b),R=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.pending=!1,i}return i.__extends(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,i=void 0;try{this.work(e)}catch(e){n=!0,i=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),i},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(function(e){function t(t,n){return e.call(this)||this}return i.__extends(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(h)),V=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}(),L=function(e){function t(n,i){void 0===i&&(i=V.now);var r=e.call(this,n,(function(){return t.delegate&&t.delegate!==r?t.delegate.now():i()}))||this;return r.actions=[],r.active=!1,r.scheduled=void 0,r}return i.__extends(t,e),t.prototype.schedule=function(n,i,r){return void 0===i&&(i=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,i,r):e.prototype.schedule.call(this,n,i,r)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(V),H=new L(R);function G(e){return!c(e)&&e-parseFloat(e)+1>=0}function K(e){return e&&"function"==typeof e.schedule}function W(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function U(e,t){return void 0===t&&(t=H),N((function(){return function(e,t,n){void 0===e&&(e=0);var i=-1;return G(t)?i=Number(t)<1?1:Number(t):K(t)&&(n=t),K(n)||(n=H),new C((function(t){var r=G(e)?e:+e-n.now();return n.schedule(W,r,{index:0,period:i,subscriber:t})}))}(e,t)}))}function $(e){return function(t){return t.lift(new q(e))}}var q=function(){function e(e){this.closingNotifier=e}return e.prototype.call=function(e,t){return t.subscribe(new Y(e,this.closingNotifier))},e}(),Y=function(e){function t(t,n){var i=e.call(this,t)||this;return i.buffer=[],i.add(M(i,n)),i}return i.__extends(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype.notifyNext=function(e,t,n,i,r){var o=this.buffer;this.buffer=[],this.destination.next(o)},t}(b);function Z(e,t){return void 0===t&&(t=null),function(n){return n.lift(new X(e,t))}}var X=function(){function e(e,t){this.bufferSize=e,this.startBufferEvery=t,this.subscriberClass=t&&e!==t?Q:J}return e.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},e}(),J=function(e){function t(t,n){var i=e.call(this,t)||this;return i.bufferSize=n,i.buffer=[],i}return i.__extends(t,e),t.prototype._next=function(e){var t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])},t.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),e.prototype._complete.call(this)},t}(v),Q=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.bufferSize=n,r.startBufferEvery=i,r.buffers=[],r.count=0,r}return i.__extends(t,e),t.prototype._next=function(e){var t=this.bufferSize,n=this.startBufferEvery,i=this.buffers,r=this.count;this.count++,r%n==0&&i.push([]);for(var o=i.length;o--;){var s=i[o];s.push(e),s.length===t&&(i.splice(o,1),this.destination.next(s))}},t.prototype._complete=function(){for(var t=this.buffers,n=this.destination;t.length>0;){var i=t.shift();i.length>0&&n.next(i)}e.prototype._complete.call(this)},t}(v);function ee(e){var t=arguments.length,n=H;K(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);var i=null;t>=2&&(i=arguments[1]);var r=Number.POSITIVE_INFINITY;return t>=3&&(r=arguments[2]),function(t){return t.lift(new te(e,i,r,n))}}var te=function(){function e(e,t,n,i){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=i}return e.prototype.call=function(e,t){return t.subscribe(new ie(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},e}(),ne=function(){return function(){this.buffer=[]}}(),ie=function(e){function t(t,n,i,r,o){var s=e.call(this,t)||this;s.bufferTimeSpan=n,s.bufferCreationInterval=i,s.maxBufferSize=r,s.scheduler=o,s.contexts=[];var a=s.openContext();if(s.timespanOnly=null==i||i<0,s.timespanOnly){var u={subscriber:s,context:a,bufferTimeSpan:n};s.add(a.closeAction=o.schedule(re,n,u))}else{var c={subscriber:s,context:a},l={bufferTimeSpan:n,bufferCreationInterval:i,subscriber:s,scheduler:o};s.add(a.closeAction=o.schedule(se,n,c)),s.add(o.schedule(oe,i,l))}return s}return i.__extends(t,e),t.prototype._next=function(e){for(var t,n=this.contexts,i=n.length,r=0;r<i;r++){var o=n[r],s=o.buffer;s.push(e),s.length==this.maxBufferSize&&(t=o)}t&&this.onBufferFull(t)},t.prototype._error=function(t){this.contexts.length=0,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts,n=this.destination;t.length>0;){var i=t.shift();n.next(i.buffer)}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.contexts=null},t.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan,i={subscriber:this,context:e,bufferTimeSpan:n};this.add(e.closeAction=this.scheduler.schedule(re,n,i))}},t.prototype.openContext=function(){var e=new ne;return this.contexts.push(e),e},t.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)},t}(v);function re(e){var t=e.subscriber,n=e.context;n&&t.closeContext(n),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function oe(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,i=e.subscriber,r=e.scheduler,o=i.openContext();i.closed||(i.add(o.closeAction=r.schedule(se,n,{subscriber:i,context:o})),this.schedule(e,t))}function se(e){var t=e.subscriber,n=e.context;t.closeContext(n)}function ae(e,t){return function(n){return n.lift(new ue(e,t))}}var ue=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new ce(e,this.openings,this.closingSelector))},e}(),ce=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.openings=n,r.closingSelector=i,r.contexts=[],r.add(M(r,n)),r}return i.__extends(t,e),t.prototype._next=function(e){for(var t=this.contexts,n=t.length,i=0;i<n;i++)t[i].buffer.push(e)},t.prototype._error=function(t){for(var n=this.contexts;n.length>0;){var i=n.shift();i.subscription.unsubscribe(),i.buffer=null,i.subscription=null}this.contexts=null,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var n=t.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,i,r){e?this.closeBuffer(e):this.openBuffer(t)},t.prototype.notifyComplete=function(e){this.closeBuffer(e.context)},t.prototype.openBuffer=function(e){try{var t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(e){this._error(e)}},t.prototype.closeBuffer=function(e){var t=this.contexts;if(t&&e){var n=e.buffer,i=e.subscription;this.destination.next(n),t.splice(t.indexOf(e),1),this.remove(i),i.unsubscribe()}},t.prototype.trySubscribe=function(e){var t=this.contexts,n=new h,i={buffer:[],subscription:n};t.push(i);var r=M(this,e,i);!r||r.closed?this.closeBuffer(i):(r.context=i,this.add(r),n.add(r))},t}(b);function le(e){return function(t){return t.lift(new pe(e))}}var pe=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new de(e,this.closingSelector))},e}(),de=function(e){function t(t,n){var i=e.call(this,t)||this;return i.closingSelector=n,i.subscribing=!1,i.openBuffer(),i}return i.__extends(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},t.prototype.notifyNext=function(e,t,n,i,r){this.openBuffer()},t.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},t.prototype.openBuffer=function(){var e=this.closingSubscription;e&&(this.remove(e),e.unsubscribe());var t,n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{t=(0,this.closingSelector)()}catch(e){return this.error(e)}e=new h,this.closingSubscription=e,this.add(e),this.subscribing=!0,e.add(M(this,t)),this.subscribing=!1},t}(b);function he(e){return function(t){var n=new fe(e),i=t.lift(n);return n.caught=i}}var fe=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new me(e,this.selector,this.caught))},e}(),me=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.selector=n,r.caught=i,r}return i.__extends(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle();var i=new y(this,void 0,void 0);this.add(i),M(this,n,void 0,void 0,i)}},t}(b);function ve(e,t){return new C(t?function(n){var i=new h,r=0;return i.add(t.schedule((function(){r!==e.length?(n.next(e[r++]),n.closed||i.add(this.schedule())):n.complete()}))),i}:T(e))}var ge={};var be=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new ye(e,this.resultSelector))},e}(),ye=function(e){function t(t,n){var i=e.call(this,t)||this;return i.resultSelector=n,i.active=0,i.values=[],i.observables=[],i}return i.__extends(t,e),t.prototype._next=function(e){this.values.push(ge),this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var i=e[n];this.add(M(this,i,i,n))}}},t.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,i,r){var o=this.values,s=o[n],a=this.toRespond?s===ge?--this.toRespond:this.toRespond:0;o[n]=t,0===a&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},t.prototype._tryResultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(b);function _e(e){return function(t){return t.lift(new be(e))}}function xe(e,t){if(!t)return e instanceof C?e:new C(j(e));if(null!=e){if(function(e){return e&&"function"==typeof e[_]}(e))return function(e,t){return new C(t?function(n){var i=new h;return i.add(t.schedule((function(){var r=e[_]();i.add(r.subscribe({next:function(e){i.add(t.schedule((function(){return n.next(e)})))},error:function(e){i.add(t.schedule((function(){return n.error(e)})))},complete:function(){i.add(t.schedule((function(){return n.complete()})))}}))}))),i}:P(e))}(e,t);if(A(e))return function(e,t){return new C(t?function(n){var i=new h;return i.add(t.schedule((function(){return e.then((function(e){i.add(t.schedule((function(){n.next(e),i.add(t.schedule((function(){return n.complete()})))})))}),(function(e){i.add(t.schedule((function(){return n.error(e)})))}))}))),i}:E(e))}(e,t);if(F(e))return ve(e,t);if(function(e){return e&&"function"==typeof e[D]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new C(t?function(n){var i,r=new h;return r.add((function(){i&&"function"==typeof i.return&&i.return()})),r.add(t.schedule((function(){i=e[D](),r.add(t.schedule((function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(e){return void n.error(e)}t?n.complete():(n.next(e),this.schedule())}})))}))),r}:O(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function we(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=null;return"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&c(e[0])&&(e=e[0].slice()),function(t){return t.lift.call(xe([t].concat(e)),new be(n))}}var Se=new C((function(e){return e.complete()}));function Ce(e){return e?function(e){return new C((function(t){return e.schedule((function(){return t.complete()}))}))}(e):Se}function Ie(e){var t=new C((function(t){t.next(e),t.complete()}));return t._isScalar=!0,t.value=e,t}function Te(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];switch(K(n)?e.pop():n=void 0,e.length){case 0:return Ce(n);case 1:return n?ve(e,n):Ie(e[0]);default:return ve(e,n)}}function Ee(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new ke(e,t))}}var ke=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new De(e,this.project,this.thisArg))},e}(),De=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.project=n,r.count=0,r.thisArg=i||r,r}return i.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(v);function Oe(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?function(i){return i.pipe(Oe((function(n,i){return xe(e(n,i)).pipe(Ee((function(e,r){return t(n,e,i,r)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new Pe(e,n))})}var Pe=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new Fe(e,this.project,this.concurrent))},e}(),Fe=function(e){function t(t,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY);var r=e.call(this,t)||this;return r.project=n,r.concurrent=i,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return i.__extends(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var i=new y(this,void 0,void 0);this.destination.add(i),M(this,e,t,n,i)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(b);function Ae(e){return e}function je(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Oe(Ae,e)}function Me(){return je(1)}function Ne(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Me()(Te.apply(void 0,e))}function Be(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(Ne.apply(void 0,[t].concat(e)))}}function ze(e,t){return Oe(e,t,1)}function Re(e,t){return ze((function(){return e}),t)}function Ve(e){return function(t){return t.lift(new Le(e,t))}}var Le=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new He(e,this.predicate,this.source))},e}(),He=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.predicate=n,r.source=i,r.count=0,r.index=0,r}return i.__extends(t,e),t.prototype._next=function(e){this.predicate?this._tryPredicate(e):this.count++},t.prototype._tryPredicate=function(e){var t;try{t=this.predicate(e,this.index++,this.source)}catch(e){return void this.destination.error(e)}t&&this.count++},t.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},t}(v);function Ge(e){return function(t){return t.lift(new Ke(e))}}var Ke=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new We(e,this.durationSelector))},e}(),We=function(e){function t(t,n){var i=e.call(this,t)||this;return i.durationSelector=n,i.hasValue=!1,i.durationSubscription=null,i}return i.__extends(t,e),t.prototype._next=function(e){try{var t=this.durationSelector.call(this,e);t&&this._tryNext(e,t)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.emitValue(),this.destination.complete()},t.prototype._tryNext=function(e,t){var n=this.durationSubscription;this.value=e,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=M(this,t))&&!n.closed&&this.add(this.durationSubscription=n)},t.prototype.notifyNext=function(e,t,n,i,r){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){if(this.hasValue){var t=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,e.prototype._next.call(this,t)}},t}(b);function Ue(e,t){return void 0===t&&(t=H),function(n){return n.lift(new $e(e,t))}}var $e=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new qe(e,this.dueTime,this.scheduler))},e}(),qe=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.dueTime=n,r.scheduler=i,r.debouncedSubscription=null,r.lastValue=null,r.hasValue=!1,r}return i.__extends(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Ye,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(v);function Ye(e){e.debouncedNext()}function Ze(e){return void 0===e&&(e=null),function(t){return t.lift(new Je(e))}}var Xe,Je=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new Qe(e,this.defaultValue))},e}(),Qe=function(e){function t(t,n){var i=e.call(this,t)||this;return i.defaultValue=n,i.isEmpty=!0,i}return i.__extends(t,e),t.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(v);function et(e){return e instanceof Date&&!isNaN(+e)}function tt(e,t){return new C(t?function(n){return t.schedule(nt,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function nt(e){var t=e.error;e.subscriber.error(t)}Xe||(Xe={});var it=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return Te(this.value);case"E":return tt(this.error);case"C":return Ce()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}();function rt(e,t){void 0===t&&(t=H);var n=et(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new ot(n,t))}}var ot=function(){function e(e,t){this.delay=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new st(e,this.delay,this.scheduler))},e}(),st=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.delay=n,r.scheduler=i,r.queue=[],r.active=!1,r.errored=!1,r}return i.__extends(t,e),t.dispatch=function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1},t.prototype._schedule=function(e){this.active=!0,this.destination.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},t.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,n=new at(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}},t.prototype._next=function(e){this.scheduleNotification(it.createNext(e))},t.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.scheduleNotification(it.createComplete()),this.unsubscribe()},t}(v),at=function(){return function(e,t){this.time=e,this.notification=t}}();function ut(e,t){return t?function(n){return new pt(n,t).lift(new ct(e))}:function(t){return t.lift(new ct(e))}}var ct=function(){function e(e){this.delayDurationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new lt(e,this.delayDurationSelector))},e}(),lt=function(e){function t(t,n){var i=e.call(this,t)||this;return i.delayDurationSelector=n,i.completed=!1,i.delayNotifierSubscriptions=[],i.index=0,i}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(e),this.removeSubscription(r),this.tryComplete()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){var t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()},t.prototype._next=function(e){var t=this.index++;try{var n=this.delayDurationSelector(e,t);n&&this.tryDelay(n,e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},t.prototype.removeSubscription=function(e){e.unsubscribe();var t=this.delayNotifierSubscriptions.indexOf(e);return-1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue},t.prototype.tryDelay=function(e,t){var n=M(this,e,t);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},t.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},t}(b),pt=function(e){function t(t,n){var i=e.call(this)||this;return i.source=t,i.subscriptionDelay=n,i}return i.__extends(t,e),t.prototype._subscribe=function(e){this.subscriptionDelay.subscribe(new dt(e,this.source))},t}(C),dt=function(e){function t(t,n){var i=e.call(this)||this;return i.parent=t,i.source=n,i.sourceSubscribed=!1,i}return i.__extends(t,e),t.prototype._next=function(e){this.subscribeToSource()},t.prototype._error=function(e){this.unsubscribe(),this.parent.error(e)},t.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},t.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},t}(v);function ht(){return function(e){return e.lift(new ft)}}var ft=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new mt(e))},e}(),mt=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.prototype._next=function(e){e.observe(this.destination)},t}(v);function vt(e,t){return function(n){return n.lift(new gt(e,t))}}var gt=function(){function e(e,t){this.keySelector=e,this.flushes=t}return e.prototype.call=function(e,t){return t.subscribe(new bt(e,this.keySelector,this.flushes))},e}(),bt=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.keySelector=n,r.values=new Set,i&&r.add(M(r,i)),r}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.values.clear()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype._next=function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)},t.prototype._useKeySelector=function(e){var t,n=this.destination;try{t=this.keySelector(e)}catch(e){return void n.error(e)}this._finalizeNext(t,e)},t.prototype._finalizeNext=function(e,t){var n=this.values;n.has(e)||(n.add(e),this.destination.next(t))},t}(b);function yt(e,t){return function(n){return n.lift(new _t(e,t))}}var _t=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new xt(e,this.compare,this.keySelector))},e}(),xt=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.keySelector=i,r.hasKey=!1,"function"==typeof n&&(r.compare=n),r}return i.__extends(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(e){return this.destination.error(e)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(e){return this.destination.error(e)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))},t}(v);function wt(e,t){return yt((function(n,i){return t?t(n[e],i[e]):n[e]===i[e]}))}function St(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}St.prototype=Object.create(Error.prototype);var Ct=St;function It(e,t){return function(n){return n.lift(new Tt(e,t))}}var Tt=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new Et(e,this.predicate,this.thisArg))},e}(),Et=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.predicate=n,r.thisArg=i,r.count=0,r}return i.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(v);function kt(e,t,n){return function(i){return i.lift(new Dt(e,t,n))}}var Dt=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new Ot(e,this.nextOrObserver,this.error,this.complete))},e}(),Ot=function(e){function t(t,n,i,o){var s=e.call(this,t)||this;return s._tapNext=x,s._tapError=x,s._tapComplete=x,s._tapError=i||x,s._tapComplete=o||x,r(n)?(s._context=s,s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||x,s._tapError=n.error||x,s._tapComplete=n.complete||x),s}return i.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(v);function Pt(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}Pt.prototype=Object.create(Error.prototype);var Ft=Pt,At=function(e){return void 0===e&&(e=jt),kt({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw e()}})};function jt(){return new Ft}function Mt(e){return function(t){return 0===e?Ce():t.lift(new Nt(e))}}var Nt=function(){function e(e){if(this.total=e,this.total<0)throw new Ct}return e.prototype.call=function(e,t){return t.subscribe(new Bt(e,this.total))},e}(),Bt=function(e){function t(t,n){var i=e.call(this,t)||this;return i.total=n,i.count=0,i}return i.__extends(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(v);function zt(e,t){if(e<0)throw new Ct;var n=arguments.length>=2;return function(i){return i.pipe(It((function(t,n){return n===e})),Mt(1),n?Ze(t):At((function(){return new Ct})))}}function Rt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n=e[e.length-1];K(n)?e.pop():n=null;var i=e.length;return Ne(t,1!==i||n?i>0?ve(e,n):Ce(n):Ie(e[0]))}}function Vt(e,t){return function(n){return n.lift(new Lt(e,t,n))}}var Lt=function(){function e(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return e.prototype.call=function(e,t){return t.subscribe(new Ht(e,this.predicate,this.thisArg,this.source))},e}(),Ht=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=i,o.source=r,o.index=0,o.thisArg=i||o,o}return i.__extends(t,e),t.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},t.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(e){return void this.destination.error(e)}t||this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(v);function Gt(){return function(e){return e.lift(new Kt)}}var Kt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Wt(e))},e}(),Wt=function(e){function t(t){var n=e.call(this,t)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return i.__extends(t,e),t.prototype._next=function(e){this.hasSubscription||(this.hasSubscription=!0,this.add(M(this,e)))},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},t.prototype.notifyComplete=function(e){this.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(b);function Ut(e,t){return t?function(n){return n.pipe(Ut((function(n,i){return xe(e(n,i)).pipe(Ee((function(e,r){return t(n,e,i,r)})))})))}:function(t){return t.lift(new $t(e))}}var $t=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new qt(e,this.project))},e}(),qt=function(e){function t(t,n){var i=e.call(this,t)||this;return i.project=n,i.hasSubscription=!1,i.hasCompleted=!1,i.index=0,i}return i.__extends(t,e),t.prototype._next=function(e){this.hasSubscription||this.tryNext(e)},t.prototype.tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.hasSubscription=!0,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var i=new y(this,void 0,void 0);this.destination.add(i),M(this,e,t,n,i)},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(t)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(b);function Yt(e,t,n){return void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),t=(t||0)<1?Number.POSITIVE_INFINITY:t,function(i){return i.lift(new Zt(e,t,n))}}var Zt=function(){function e(e,t,n){this.project=e,this.concurrent=t,this.scheduler=n}return e.prototype.call=function(e,t){return t.subscribe(new Xt(e,this.project,this.concurrent,this.scheduler))},e}(),Xt=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.project=n,o.concurrent=i,o.scheduler=r,o.index=0,o.active=0,o.hasCompleted=!1,i<Number.POSITIVE_INFINITY&&(o.buffer=[]),o}return i.__extends(t,e),t.dispatch=function(e){var t=e.subscriber,n=e.result,i=e.value,r=e.index;t.subscribeToProjection(n,i,r)},t.prototype._next=function(e){var n=this.destination;if(n.closed)this._complete();else{var i=this.index++;if(this.active<this.concurrent){n.next(e);try{var r=(0,this.project)(e,i);if(this.scheduler){var o={subscriber:this,result:r,value:e,index:i};this.destination.add(this.scheduler.schedule(t.dispatch,0,o))}else this.subscribeToProjection(r,e,i)}catch(e){n.error(e)}}else this.buffer.push(e)}},t.prototype.subscribeToProjection=function(e,t,n){this.active++,this.destination.add(M(this,e,t,n))},t.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,i,r){this._next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.destination.remove(e),this.active--,t&&t.length>0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},t}(b);function Jt(e){return function(t){return t.lift(new Qt(e))}}var Qt=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new en(e,this.callback))},e}(),en=function(e){function t(t,n){var i=e.call(this,t)||this;return i.add(new h(n)),i}return i.__extends(t,e),t}(v);function tn(e,t){if("function"!=typeof e)throw new TypeError("predicate is not a function");return function(n){return n.lift(new nn(e,n,!1,t))}}var nn=function(){function e(e,t,n,i){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=i}return e.prototype.call=function(e,t){return t.subscribe(new rn(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},e}(),rn=function(e){function t(t,n,i,r,o){var s=e.call(this,t)||this;return s.predicate=n,s.source=i,s.yieldIndex=r,s.thisArg=o,s.index=0,s}return i.__extends(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete(),this.unsubscribe()},t.prototype._next=function(e){var t=this.predicate,n=this.thisArg,i=this.index++;try{t.call(n||this,e,i,this.source)&&this.notifyComplete(this.yieldIndex?i:e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},t}(v);function on(e,t){return function(n){return n.lift(new nn(e,n,!0,t))}}function sn(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?It((function(t,n){return e(t,n,i)})):Ae,Mt(1),n?Ze(t):At((function(){return new Ft})))}}function an(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}an.prototype=Object.create(Error.prototype);var un=an,cn=function(e){function t(t,n){var i=e.call(this)||this;return i.subject=t,i.subscriber=n,i.closed=!1,i}return i.__extends(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(h),ln=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return i.__extends(t,e),t}(v),pn=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i.__extends(t,e),t.prototype[m]=function(){return new ln(this)},t.prototype.lift=function(e){var t=new dn(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new un;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].next(e)},t.prototype.error=function(e){if(this.closed)throw new un;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new un;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),i=0;i<t;i++)n[i].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new un;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new un;return this.hasError?(e.error(this.thrownError),h.EMPTY):this.isStopped?(e.complete(),h.EMPTY):(this.observers.push(e),new cn(this,e))},t.prototype.asObservable=function(){var e=new C;return e.source=this,e},t.create=function(e,t){return new dn(e,t)},t}(C),dn=function(e){function t(t,n){var i=e.call(this)||this;return i.destination=t,i.source=n,i}return i.__extends(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):h.EMPTY},t}(pn);function hn(e,t,n,i){return function(r){return r.lift(new fn(e,t,n,i))}}var fn=function(){function e(e,t,n,i){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=i}return e.prototype.call=function(e,t){return t.subscribe(new mn(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),mn=function(e){function t(t,n,i,r,o){var s=e.call(this,t)||this;return s.keySelector=n,s.elementSelector=i,s.durationSelector=r,s.subjectSelector=o,s.groups=null,s.attemptedToUnsubscribe=!1,s.count=0,s}return i.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(e){return void this.error(e)}this._group(e,t)},t.prototype._group=function(e,t){var n=this.groups;n||(n=this.groups=new Map);var i,r=n.get(t);if(this.elementSelector)try{i=this.elementSelector(e)}catch(e){this.error(e)}else i=e;if(!r){r=this.subjectSelector?this.subjectSelector():new pn,n.set(t,r);var o=new gn(t,r,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new gn(t,r))}catch(e){return void this.error(e)}this.add(s.subscribe(new vn(t,r,this)))}}r.closed||r.next(i)},t.prototype._error=function(e){var t=this.groups;t&&(t.forEach((function(t,n){t.error(e)})),t.clear()),this.destination.error(e)},t.prototype._complete=function(){var e=this.groups;e&&(e.forEach((function(e,t){e.complete()})),e.clear()),this.destination.complete()},t.prototype.removeGroup=function(e){this.groups.delete(e)},t.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&e.prototype.unsubscribe.call(this))},t}(v),vn=function(e){function t(t,n,i){var r=e.call(this,n)||this;return r.key=t,r.group=n,r.parent=i,r}return i.__extends(t,e),t.prototype._next=function(e){this.complete()},t.prototype._unsubscribe=function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)},t}(v),gn=function(e){function t(t,n,i){var r=e.call(this)||this;return r.key=t,r.groupSubject=n,r.refCountSubscription=i,r}return i.__extends(t,e),t.prototype._subscribe=function(e){var t=new h,n=this.refCountSubscription,i=this.groupSubject;return n&&!n.closed&&t.add(new bn(n)),t.add(i.subscribe(e)),t},t}(C),bn=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,t.count++,n}return i.__extends(t,e),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(h);function yn(){return function(e){return e.lift(new _n)}}var _n=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new xn(e))},e}(),xn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype._next=function(e){},t}(v);function wn(){return function(e){return e.lift(new Sn)}}var Sn=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Cn(e))},e}(),Cn=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype._next=function(e){this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(v);function In(e){return function(t){return 0===e?Ce():t.lift(new Tn(e))}}var Tn=function(){function e(e){if(this.total=e,this.total<0)throw new Ct}return e.prototype.call=function(e,t){return t.subscribe(new En(e,this.total))},e}(),En=function(e){function t(t,n){var i=e.call(this,t)||this;return i.total=n,i.ring=new Array,i.count=0,i}return i.__extends(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,i=this.count++;t.length<n?t.push(e):t[i%n]=e},t.prototype._complete=function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r<n;r++){var o=t++%n;e.next(i[o])}e.complete()},t}(v);function kn(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?It((function(t,n){return e(t,n,i)})):Ae,In(1),n?Ze(t):At((function(){return new Ft})))}}function Dn(e){return function(t){return t.lift(new On(e))}}var On=function(){function e(e){this.value=e}return e.prototype.call=function(e,t){return t.subscribe(new Pn(e,this.value))},e}(),Pn=function(e){function t(t,n){var i=e.call(this,t)||this;return i.value=n,i}return i.__extends(t,e),t.prototype._next=function(e){this.destination.next(this.value)},t}(v);function Fn(){return function(e){return e.lift(new An)}}var An=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new jn(e))},e}(),jn=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.prototype._next=function(e){this.destination.next(it.createNext(e))},t.prototype._error=function(e){var t=this.destination;t.next(it.createError(e)),t.complete()},t.prototype._complete=function(){var e=this.destination;e.next(it.createComplete()),e.complete()},t}(v);function Mn(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new Nn(e,t,n))}}var Nn=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new Bn(e,this.accumulator,this.seed,this.hasSeed))},e}(),Bn=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.accumulator=n,o._seed=i,o.hasSeed=r,o.index=0,o}return i.__extends(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(v);function zn(e,t){return arguments.length>=2?function(n){return w(Mn(e,t),In(1),Ze(t))(n)}:function(t){return w(Mn((function(t,n,i){return e(t,n,i+1)})),In(1))(t)}}function Rn(e){return zn("function"==typeof e?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}function Vn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Number.POSITIVE_INFINITY,i=null,r=e[e.length-1];return K(r)?(i=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof r&&(n=e.pop()),null===i&&1===e.length&&e[0]instanceof C?e[0]:je(n)(ve(e,i))}function Ln(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(Vn.apply(void 0,[t].concat(e)))}}function Hn(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?Oe((function(){return e}),t,n):("number"==typeof t&&(n=t),Oe((function(){return e}),n))}function Gn(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(i){return i.lift(new Kn(e,t,n))}}var Kn=function(){function e(e,t,n){this.accumulator=e,this.seed=t,this.concurrent=n}return e.prototype.call=function(e,t){return t.subscribe(new Wn(e,this.accumulator,this.seed,this.concurrent))},e}(),Wn=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.accumulator=n,o.acc=i,o.concurrent=r,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return i.__extends(t,e),t.prototype._next=function(e){if(this.active<this.concurrent){var t=this.index++,n=this.destination,i=void 0;try{i=(0,this.accumulator)(this.acc,e,t)}catch(e){return n.error(e)}this.active++,this._innerSub(i,e,t)}else this.buffer.push(e)},t.prototype._innerSub=function(e,t,n){var i=new y(this,void 0,void 0);this.destination.add(i),M(this,e,t,n,i)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,i,r){var o=this.destination;this.acc=t,this.hasValue=!0,o.next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.destination.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},t}(b);function Un(e){return zn("function"==typeof e?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e<t?e:t})}function $n(){return function(e){return e.lift(new qn(e))}}var qn=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var i=new Yn(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r},e}(),Yn=function(e){function t(t,n){var i=e.call(this,t)||this;return i.connectable=n,i}return i.__extends(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null},t}(v),Zn=function(e){function t(t,n){var i=e.call(this)||this;return i.source=t,i.subjectFactory=n,i._refCount=0,i._isComplete=!1,i}return i.__extends(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new h).add(this.source.subscribe(new Jn(this.getSubject(),this))),e.closed?(this._connection=null,e=h.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return $n()(this)},t}(C).prototype,Xn={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Zn._subscribe},_isComplete:{value:Zn._isComplete,writable:!0},getSubject:{value:Zn.getSubject},connect:{value:Zn.connect},refCount:{value:Zn.refCount}},Jn=function(e){function t(t,n){var i=e.call(this,t)||this;return i.connectable=n,i}return i.__extends(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(ln);function Qn(e,t){return function(n){var i;if(i="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new ei(i,t));var r=Object.create(n,Xn);return r.source=n,r.subjectFactory=i,r}}var ei=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,i=this.subjectFactory(),r=n(i).subscribe(e);return r.add(t.subscribe(i)),r},e}();function ti(e,t){return void 0===t&&(t=0),function(n){return n.lift(new ni(e,t))}}var ni=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new ii(e,this.scheduler,this.delay))},e}(),ii=function(e){function t(t,n,i){void 0===i&&(i=0);var r=e.call(this,t)||this;return r.scheduler=n,r.delay=i,r}return i.__extends(t,e),t.dispatch=function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new ri(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(it.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(it.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(it.createComplete()),this.unsubscribe()},t}(v),ri=function(){return function(e,t){this.notification=e,this.destination=t}}();function oi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length&&c(e[0])&&(e=e[0]),function(t){return t.lift(new si(e))}}var si=function(){function e(e){this.nextSources=e}return e.prototype.call=function(e,t){return t.subscribe(new ai(e,this.nextSources))},e}(),ai=function(e){function t(t,n){var i=e.call(this,t)||this;return i.destination=t,i.nextSources=n,i}return i.__extends(t,e),t.prototype.notifyError=function(e,t){this.subscribeToNextSource()},t.prototype.notifyComplete=function(e){this.subscribeToNextSource()},t.prototype._error=function(e){this.subscribeToNextSource(),this.unsubscribe()},t.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},t.prototype.subscribeToNextSource=function(){var e=this.nextSources.shift();if(e){var t=new y(this,void 0,void 0);this.destination.add(t),M(this,e,void 0,void 0,t)}else this.destination.complete()},t}(b);function ui(){return function(e){return e.lift(new ci)}}var ci=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new li(e))},e}(),li=function(e){function t(t){var n=e.call(this,t)||this;return n.hasPrev=!1,n}return i.__extends(t,e),t.prototype._next=function(e){this.hasPrev?this.destination.next([this.prev,e]):this.hasPrev=!0,this.prev=e},t}(v);function pi(e,t){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=e,n.thisArg=t,n}function di(e,t){return function(n){return[It(e,t)(n),It(pi(e,t))(n)]}}function hi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(t){return Ee(fi(e,n))(t)}}function fi(e,t){return function(n){for(var i=n,r=0;r<t;r++){var o=i[e[r]];if(void 0===o)return;i=o}return i}}function mi(e){return e?Qn((function(){return new pn}),e):Qn(new pn)}var vi=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return i.__extends(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new un;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(pn);function gi(e){return function(t){return Qn(new vi(e))(t)}}var bi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return i.__extends(t,e),t.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),h.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),h.EMPTY):e.prototype._subscribe.call(this,t)},t.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},t.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},t.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},t}(pn);function yi(){return function(e){return Qn(new bi)(e)}}var _i=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i}return i.__extends(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,i){return void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,i):t.flush(this)},t}(R),xi=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(L))(_i),wi=function(e){function t(t,n,i){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=e.call(this)||this;return r.scheduler=i,r._events=[],r._infiniteTimeWindow=!1,r._bufferSize=t<1?1:t,r._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(r._infiniteTimeWindow=!0,r.next=r.nextInfiniteTimeWindow):r.next=r.nextTimeWindow,r}return i.__extends(t,e),t.prototype.nextInfiniteTimeWindow=function(t){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift(),e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this._events.push(new Si(this._getNow(),t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;if(this.closed)throw new un;if(this.isStopped||this.hasError?t=h.EMPTY:(this.observers.push(e),t=new cn(this,e)),r&&e.add(e=new ii(e,r)),n)for(var s=0;s<o&&!e.closed;s++)e.next(i[s]);else for(s=0;s<o&&!e.closed;s++)e.next(i[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t},t.prototype._getNow=function(){return(this.scheduler||xi).now()},t.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,o=0;o<r&&!(e-i[o].time<n);)o++;return r>t&&(o=Math.max(o,r-t)),o>0&&i.splice(0,o),i},t}(pn),Si=function(){return function(e,t){this.time=e,this.value=t}}();function Ci(e,t,n,i){n&&"function"!=typeof n&&(i=n);var r="function"==typeof n?n:void 0,o=new wi(e,t,i);return function(e){return Qn((function(){return o}),r)(e)}}function Ii(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){if(!c(e[0]))return e[0];e=e[0]}return ve(e,void 0).lift(new Ti)}var Ti=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Ei(e))},e}(),Ei=function(e){function t(t){var n=e.call(this,t)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return i.__extends(t,e),t.prototype._next=function(e){this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(var n=0;n<t&&!this.hasFirst;n++){var i=e[n],r=M(this,i,i,n);this.subscriptions&&this.subscriptions.push(r),this.add(r)}this.observables=null}},t.prototype.notifyNext=function(e,t,n,i,r){if(!this.hasFirst){this.hasFirst=!0;for(var o=0;o<this.subscriptions.length;o++)if(o!==n){var s=this.subscriptions[o];s.unsubscribe(),this.remove(s)}this.subscriptions=null}this.destination.next(t)},t}(b);function ki(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return 1===e.length&&c(e[0])&&(e=e[0]),t.lift.call(Ii.apply(void 0,[t].concat(e)))}}function Di(e){return void 0===e&&(e=-1),function(t){return 0===e?Ce():e<0?t.lift(new Oi(-1,t)):t.lift(new Oi(e-1,t))}}var Oi=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Pi(e,this.count,this.source))},e}(),Pi=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.count=n,r.source=i,r}return i.__extends(t,e),t.prototype.complete=function(){if(!this.isStopped){var t=this.source,n=this.count;if(0===n)return e.prototype.complete.call(this);n>-1&&(this.count=n-1),t.subscribe(this._unsubscribeAndRecycle())}},t}(v);function Fi(e){return function(t){return t.lift(new Ai(e))}}var Ai=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new ji(e,this.notifier,t))},e}(),ji=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.notifier=n,r.source=i,r.sourceIsBeingSubscribedTo=!0,r}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},t.prototype.notifyComplete=function(t){if(!1===this.sourceIsBeingSubscribedTo)return e.prototype.complete.call(this)},t.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return e.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},t.prototype._unsubscribe=function(){var e=this.notifications,t=this.retriesSubscription;e&&(e.unsubscribe(),this.notifications=null),t&&(t.unsubscribe(),this.retriesSubscription=null),this.retries=null},t.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,e.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},t.prototype.subscribeToRetries=function(){var t;this.notifications=new pn;try{t=(0,this.notifier)(this.notifications)}catch(t){return e.prototype.complete.call(this)}this.retries=t,this.retriesSubscription=M(this,t)},t}(b);function Mi(e){return void 0===e&&(e=-1),function(t){return t.lift(new Ni(e,t))}}var Ni=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Bi(e,this.count,this.source))},e}(),Bi=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.count=n,r.source=i,r}return i.__extends(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.source,i=this.count;if(0===i)return e.prototype.error.call(this,t);i>-1&&(this.count=i-1),n.subscribe(this._unsubscribeAndRecycle())}},t}(v);function zi(e){return function(t){return t.lift(new Ri(e,t))}}var Ri=function(){function e(e,t){this.notifier=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Vi(e,this.notifier,this.source))},e}(),Vi=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.notifier=n,r.source=i,r}return i.__extends(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.errors,i=this.retries,r=this.retriesSubscription;if(i)this.errors=null,this.retriesSubscription=null;else{n=new pn;try{i=(0,this.notifier)(n)}catch(t){return e.prototype.error.call(this,t)}r=M(this,i)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=i,this.retriesSubscription=r,n.next(t)}},t.prototype._unsubscribe=function(){var e=this.errors,t=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=null),t&&(t.unsubscribe(),this.retriesSubscription=null),this.retries=null},t.prototype.notifyNext=function(e,t,n,i,r){var o=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=o,this.source.subscribe(this)},t}(b);function Li(e){return function(t){return t.lift(new Hi(e))}}var Hi=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new Gi(e),i=t.subscribe(n);return i.add(M(n,this.notifier)),i},e}(),Gi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasValue=!1,t}return i.__extends(t,e),t.prototype._next=function(e){this.value=e,this.hasValue=!0},t.prototype.notifyNext=function(e,t,n,i,r){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},t}(b);function Ki(e,t){return void 0===t&&(t=H),function(n){return n.lift(new Wi(e,t))}}var Wi=function(){function e(e,t){this.period=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new Ui(e,this.period,this.scheduler))},e}(),Ui=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.period=n,r.scheduler=i,r.hasValue=!1,r.add(i.schedule($i,n,{subscriber:r,period:n})),r}return i.__extends(t,e),t.prototype._next=function(e){this.lastValue=e,this.hasValue=!0},t.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},t}(v);function $i(e){var t=e.subscriber,n=e.period;t.notifyNext(),this.schedule(e,n)}function qi(e,t){return function(n){return n.lift(new Yi(e,t))}}var Yi=function(){function e(e,t){this.compareTo=e,this.comparator=t}return e.prototype.call=function(e,t){return t.subscribe(new Zi(e,this.compareTo,this.comparator))},e}(),Zi=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.compareTo=n,r.comparator=i,r._a=[],r._b=[],r._oneComplete=!1,r.destination.add(n.subscribe(new Xi(t,r))),r}return i.__extends(t,e),t.prototype._next=function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())},t.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},t.prototype.checkValues=function(){for(var e=this._a,t=this._b,n=this.comparator;e.length>0&&t.length>0;){var i=e.shift(),r=t.shift(),o=!1;try{o=n?n(i,r):i===r}catch(e){this.destination.error(e)}o||this.emit(!1)}},t.prototype.emit=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype.nextB=function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())},t.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},t}(v),Xi=function(e){function t(t,n){var i=e.call(this,t)||this;return i.parent=n,i}return i.__extends(t,e),t.prototype._next=function(e){this.parent.nextB(e)},t.prototype._error=function(e){this.parent.error(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},t}(v);function Ji(){return new pn}function Qi(){return function(e){return $n()(Qn(Ji)(e))}}function er(e,t,n){var i;return i=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,i=e.bufferSize,r=void 0===i?Number.POSITIVE_INFINITY:i,o=e.windowTime,s=void 0===o?Number.POSITIVE_INFINITY:o,a=e.refCount,u=e.scheduler,c=0,l=!1,p=!1;return function(e){c++,t&&!l||(l=!1,t=new wi(r,s,u),n=e.subscribe({next:function(e){t.next(e)},error:function(e){l=!0,t.error(e)},complete:function(){p=!0,t.complete()}}));var i=t.subscribe(this);this.add((function(){c--,i.unsubscribe(),n&&!p&&a&&0===c&&(n.unsubscribe(),n=void 0,t=void 0)}))}}(i))}}function tr(e){return function(t){return t.lift(new nr(e,t))}}var nr=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new ir(e,this.predicate,this.source))},e}(),ir=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.predicate=n,r.source=i,r.seenValue=!1,r.index=0,r}return i.__extends(t,e),t.prototype.applySingleValue=function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)},t.prototype._next=function(e){var t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)},t.prototype.tryNext=function(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new Ft)},t}(v);function rr(e){return function(t){return t.lift(new or(e))}}var or=function(){function e(e){this.total=e}return e.prototype.call=function(e,t){return t.subscribe(new sr(e,this.total))},e}(),sr=function(e){function t(t,n){var i=e.call(this,t)||this;return i.total=n,i.count=0,i}return i.__extends(t,e),t.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},t}(v);function ar(e){return function(t){return t.lift(new ur(e))}}var ur=function(){function e(e){if(this._skipCount=e,this._skipCount<0)throw new Ct}return e.prototype.call=function(e,t){return 0===this._skipCount?t.subscribe(new v(e)):t.subscribe(new cr(e,this._skipCount))},e}(),cr=function(e){function t(t,n){var i=e.call(this,t)||this;return i._skipCount=n,i._count=0,i._ring=new Array(n),i}return i.__extends(t,e),t.prototype._next=function(e){var t=this._skipCount,n=this._count++;if(n<t)this._ring[n]=e;else{var i=n%t,r=this._ring,o=r[i];r[i]=e,this.destination.next(o)}},t}(v);function lr(e){return function(t){return t.lift(new pr(e))}}var pr=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new dr(e,this.notifier))},e}(),dr=function(e){function t(t,n){var i=e.call(this,t)||this;i.hasValue=!1;var r=new y(i,void 0,void 0);return i.add(r),i.innerSubscription=r,M(i,n,void 0,void 0,r),i}return i.__extends(t,e),t.prototype._next=function(t){this.hasValue&&e.prototype._next.call(this,t)},t.prototype.notifyNext=function(e,t,n,i,r){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},t.prototype.notifyComplete=function(){},t}(b);function hr(e){return function(t){return t.lift(new fr(e))}}var fr=function(){function e(e){this.predicate=e}return e.prototype.call=function(e,t){return t.subscribe(new mr(e,this.predicate))},e}(),mr=function(e){function t(t,n){var i=e.call(this,t)||this;return i.predicate=n,i.skipping=!0,i.index=0,i}return i.__extends(t,e),t.prototype._next=function(e){var t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)},t.prototype.tryCallPredicate=function(e){try{var t=this.predicate(e,this.index++);this.skipping=Boolean(t)}catch(e){this.destination.error(e)}},t}(v);function vr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n=e[e.length-1];K(n)?e.pop():n=null;var i=e.length;return Ne(1!==i||n?i>0?ve(e,n):Ce(n):Ie(e[0]),t)}}var gr=1,br={};var yr=function(e){var t=gr++;return br[t]=e,Promise.resolve().then((function(){return function(e){var t=br[e];t&&t()}(t)})),t},_r=function(e){delete br[e]},xr=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i}return i.__extends(t,e),t.prototype.requestAsyncId=function(t,n,i){return void 0===i&&(i=0),null!==i&&i>0?e.prototype.requestAsyncId.call(this,t,n,i):(t.actions.push(this),t.scheduled||(t.scheduled=yr(t.flush.bind(t,null))))},t.prototype.recycleAsyncId=function(t,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,i);0===t.actions.length&&(_r(n),t.scheduled=void 0)},t}(R),wr=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<r&&(e=n.shift()));if(this.active=!1,t){for(;++i<r&&(e=n.shift());)e.unsubscribe();throw t}},t}(L))(xr),Sr=function(e){function t(t,n,i){void 0===n&&(n=0),void 0===i&&(i=wr);var r=e.call(this)||this;return r.source=t,r.delayTime=n,r.scheduler=i,(!G(n)||n<0)&&(r.delayTime=0),i&&"function"==typeof i.schedule||(r.scheduler=wr),r}return i.__extends(t,e),t.create=function(e,n,i){return void 0===n&&(n=0),void 0===i&&(i=wr),new t(e,n,i)},t.dispatch=function(e){var t=e.source,n=e.subscriber;return this.add(t.subscribe(n))},t.prototype._subscribe=function(e){var n=this.delayTime,i=this.source;return this.scheduler.schedule(t.dispatch,n,{source:i,subscriber:e})},t}(C);function Cr(e,t){return void 0===t&&(t=0),function(n){return n.lift(new Ir(e,t))}}var Ir=function(){function e(e,t){this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return new Sr(t,this.delay,this.scheduler).subscribe(e)},e}();function Tr(e,t){return"function"==typeof t?function(n){return n.pipe(Tr((function(n,i){return xe(e(n,i)).pipe(Ee((function(e,r){return t(n,e,i,r)})))})))}:function(t){return t.lift(new Er(e))}}var Er=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new kr(e,this.project))},e}(),kr=function(e){function t(t,n){var i=e.call(this,t)||this;return i.project=n,i.index=0,i}return i.__extends(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var i=this.innerSubscription;i&&i.unsubscribe();var r=new y(this,void 0,void 0);this.destination.add(r),this.innerSubscription=M(this,e,t,n,r)},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this),this.unsubscribe()},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(t)},t}(b);function Dr(){return Tr(Ae)}function Or(e,t){return t?Tr((function(){return e}),t):Tr((function(){return e}))}function Pr(e){return function(t){return t.lift(new Fr(e))}}var Fr=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new Ar(e),i=M(n,this.notifier);return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n},e}(),Ar=function(e){function t(t){var n=e.call(this,t)||this;return n.seenValue=!1,n}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.seenValue=!0,this.complete()},t.prototype.notifyComplete=function(){},t}(b);function jr(e,t){return void 0===t&&(t=!1),function(n){return n.lift(new Mr(e,t))}}var Mr=function(){function e(e,t){this.predicate=e,this.inclusive=t}return e.prototype.call=function(e,t){return t.subscribe(new Nr(e,this.predicate,this.inclusive))},e}(),Nr=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.predicate=n,r.inclusive=i,r.index=0,r}return i.__extends(t,e),t.prototype._next=function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(e){return void n.error(e)}this.nextOrComplete(e,t)},t.prototype.nextOrComplete=function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())},t}(v),Br={leading:!0,trailing:!1};function zr(e,t){return void 0===t&&(t=Br),function(n){return n.lift(new Rr(e,t.leading,t.trailing))}}var Rr=function(){function e(e,t,n){this.durationSelector=e,this.leading=t,this.trailing=n}return e.prototype.call=function(e,t){return t.subscribe(new Vr(e,this.durationSelector,this.leading,this.trailing))},e}(),Vr=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.destination=t,o.durationSelector=n,o._leading=i,o._trailing=r,o._hasValue=!1,o}return i.__extends(t,e),t.prototype._next=function(e){this._hasValue=!0,this._sendValue=e,this._throttled||(this._leading?this.send():this.throttle(e))},t.prototype.send=function(){var e=this._hasValue,t=this._sendValue;e&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=null},t.prototype.throttle=function(e){var t=this.tryDurationSelector(e);t&&this.add(this._throttled=M(this,t))},t.prototype.tryDurationSelector=function(e){try{return this.durationSelector(e)}catch(e){return this.destination.error(e),null}},t.prototype.throttlingDone=function(){var e=this._throttled,t=this._trailing;e&&e.unsubscribe(),this._throttled=null,t&&this.send()},t.prototype.notifyNext=function(e,t,n,i,r){this.throttlingDone()},t.prototype.notifyComplete=function(){this.throttlingDone()},t}(b);function Lr(e,t,n){return void 0===t&&(t=H),void 0===n&&(n=Br),function(i){return i.lift(new Hr(e,t,n.leading,n.trailing))}}var Hr=function(){function e(e,t,n,i){this.duration=e,this.scheduler=t,this.leading=n,this.trailing=i}return e.prototype.call=function(e,t){return t.subscribe(new Gr(e,this.duration,this.scheduler,this.leading,this.trailing))},e}(),Gr=function(e){function t(t,n,i,r,o){var s=e.call(this,t)||this;return s.duration=n,s.scheduler=i,s.leading=r,s.trailing=o,s._hasTrailingValue=!1,s._trailingValue=null,s}return i.__extends(t,e),t.prototype._next=function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Kr,this.duration,{subscriber:this})),this.leading&&this.destination.next(e))},t.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},t.prototype.clearThrottle=function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)},t}(v);function Kr(e){e.subscriber.clearThrottle()}function Wr(e){return void 0===e&&(e=H),function(t){return n=function(){return t.pipe(Mn((function(t,n){var i=t.current;return{value:n,current:e.now(),last:i}}),{current:e.now(),value:void 0,last:void 0}),Ee((function(e){var t=e.current,n=e.last,i=e.value;return new Ur(i,t-n)})))},new C((function(e){var t;try{t=n()}catch(t){return void e.error(t)}return(t?xe(t):Ce()).subscribe(e)}));var n}}var Ur=function(){return function(e,t){this.value=e,this.interval=t}}();function $r(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}$r.prototype=Object.create(Error.prototype);var qr=$r;function Yr(e,t,n){return void 0===n&&(n=H),function(i){var r=et(e),o=r?+e-n.now():Math.abs(e);return i.lift(new Zr(o,r,t,n))}}var Zr=function(){function e(e,t,n,i){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=n,this.scheduler=i}return e.prototype.call=function(e,t){return t.subscribe(new Xr(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},e}(),Xr=function(e){function t(t,n,i,r,o){var s=e.call(this,t)||this;return s.absoluteTimeout=n,s.waitFor=i,s.withObservable=r,s.scheduler=o,s.action=null,s.scheduleTimeout(),s}return i.__extends(t,e),t.dispatchTimeout=function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add(M(e,t))},t.prototype.scheduleTimeout=function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(t.dispatchTimeout,this.waitFor,this))},t.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),e.prototype._next.call(this,t)},t.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},t}(b);function Jr(e,t){return void 0===t&&(t=H),Yr(e,tt(new qr),t)}function Qr(e){return void 0===e&&(e=H),Ee((function(t){return new eo(t,e.now())}))}var eo=function(){return function(e,t){this.value=e,this.timestamp=t}}();function to(e,t,n){return 0===n?[t]:(e.push(t),e)}function no(){return zn(to,[])}function io(e){return function(t){return t.lift(new ro(e))}}var ro=function(){function e(e){this.windowBoundaries=e}return e.prototype.call=function(e,t){var n=new oo(e),i=t.subscribe(n);return i.closed||n.add(M(n,this.windowBoundaries)),i},e}(),oo=function(e){function t(t){var n=e.call(this,t)||this;return n.window=new pn,t.next(n.window),n}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.openWindow()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){this._complete()},t.prototype._next=function(e){this.window.next(e)},t.prototype._error=function(e){this.window.error(e),this.destination.error(e)},t.prototype._complete=function(){this.window.complete(),this.destination.complete()},t.prototype._unsubscribe=function(){this.window=null},t.prototype.openWindow=function(){var e=this.window;e&&e.complete();var t=this.destination,n=this.window=new pn;t.next(n)},t}(b);function so(e,t){return void 0===t&&(t=0),function(n){return n.lift(new ao(e,t))}}var ao=function(){function e(e,t){this.windowSize=e,this.startWindowEvery=t}return e.prototype.call=function(e,t){return t.subscribe(new uo(e,this.windowSize,this.startWindowEvery))},e}(),uo=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.destination=t,r.windowSize=n,r.startWindowEvery=i,r.windows=[new pn],r.count=0,t.next(r.windows[0]),r}return i.__extends(t,e),t.prototype._next=function(e){for(var t=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,i=this.windowSize,r=this.windows,o=r.length,s=0;s<o&&!this.closed;s++)r[s].next(e);var a=this.count-i+1;if(a>=0&&a%t==0&&!this.closed&&r.shift().complete(),++this.count%t==0&&!this.closed){var u=new pn;r.push(u),n.next(u)}},t.prototype._error=function(e){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()},t.prototype._unsubscribe=function(){this.count=0,this.windows=null},t}(v);function co(e){var t=H,n=null,i=Number.POSITIVE_INFINITY;return K(arguments[3])&&(t=arguments[3]),K(arguments[2])?t=arguments[2]:G(arguments[2])&&(i=arguments[2]),K(arguments[1])?t=arguments[1]:G(arguments[1])&&(n=arguments[1]),function(r){return r.lift(new lo(e,n,i,t))}}var lo=function(){function e(e,t,n,i){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler=i}return e.prototype.call=function(e,t){return t.subscribe(new ho(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},e}(),po=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return i.__extends(t,e),t.prototype.next=function(t){this._numberOfNextedValues++,e.prototype.next.call(this,t)},Object.defineProperty(t.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),t}(pn),ho=function(e){function t(t,n,i,r,o){var s=e.call(this,t)||this;s.destination=t,s.windowTimeSpan=n,s.windowCreationInterval=i,s.maxWindowSize=r,s.scheduler=o,s.windows=[];var a=s.openWindow();if(null!==i&&i>=0){var u={subscriber:s,window:a,context:null},c={windowTimeSpan:n,windowCreationInterval:i,subscriber:s,scheduler:o};s.add(o.schedule(vo,n,u)),s.add(o.schedule(mo,i,c))}else{var l={subscriber:s,window:a,windowTimeSpan:n};s.add(o.schedule(fo,n,l))}return s}return i.__extends(t,e),t.prototype._next=function(e){for(var t=this.windows,n=t.length,i=0;i<n;i++){var r=t[i];r.closed||(r.next(e),r.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(r))}},t.prototype._error=function(e){for(var t=this.windows;t.length>0;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){for(var e=this.windows;e.length>0;){var t=e.shift();t.closed||t.complete()}this.destination.complete()},t.prototype.openWindow=function(){var e=new po;return this.windows.push(e),this.destination.next(e),e},t.prototype.closeWindow=function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)},t}(v);function fo(e){var t=e.subscriber,n=e.windowTimeSpan,i=e.window;i&&t.closeWindow(i),e.window=t.openWindow(),this.schedule(e,n)}function mo(e){var t=e.windowTimeSpan,n=e.subscriber,i=e.scheduler,r=e.windowCreationInterval,o=n.openWindow(),s={action:this,subscription:null},a={subscriber:n,window:o,context:s};s.subscription=i.schedule(vo,t,a),this.add(s.subscription),this.schedule(e,r)}function vo(e){var t=e.subscriber,n=e.window,i=e.context;i&&i.action&&i.subscription&&i.action.remove(i.subscription),t.closeWindow(n)}function go(e,t){return function(n){return n.lift(new bo(e,t))}}var bo=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new yo(e,this.openings,this.closingSelector))},e}(),yo=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.openings=n,r.closingSelector=i,r.contexts=[],r.add(r.openSubscription=M(r,n,n)),r}return i.__extends(t,e),t.prototype._next=function(e){var t=this.contexts;if(t)for(var n=t.length,i=0;i<n;i++)t[i].window.next(e)},t.prototype._error=function(t){var n=this.contexts;if(this.contexts=null,n)for(var i=n.length,r=-1;++r<i;){var o=n[r];o.window.error(t),o.subscription.unsubscribe()}e.prototype._error.call(this,t)},t.prototype._complete=function(){var t=this.contexts;if(this.contexts=null,t)for(var n=t.length,i=-1;++i<n;){var r=t[i];r.window.complete(),r.subscription.unsubscribe()}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.contexts;if(this.contexts=null,e)for(var t=e.length,n=-1;++n<t;){var i=e[n];i.window.unsubscribe(),i.subscription.unsubscribe()}},t.prototype.notifyNext=function(e,t,n,i,r){if(e===this.openings){var o=void 0;try{o=(0,this.closingSelector)(t)}catch(e){return this.error(e)}var s=new pn,a=new h,u={window:s,subscription:a};this.contexts.push(u);var c=M(this,o,u);c.closed?this.closeWindow(this.contexts.length-1):(c.context=u,a.add(c)),this.destination.next(s)}else this.closeWindow(this.contexts.indexOf(e))},t.prototype.notifyError=function(e){this.error(e)},t.prototype.notifyComplete=function(e){e!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(e.context))},t.prototype.closeWindow=function(e){if(-1!==e){var t=this.contexts,n=t[e],i=n.window,r=n.subscription;t.splice(e,1),i.complete(),r.unsubscribe()}},t}(b);function _o(e){return function(t){return t.lift(new xo(e))}}var xo=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new wo(e,this.closingSelector))},e}(),wo=function(e){function t(t,n){var i=e.call(this,t)||this;return i.destination=t,i.closingSelector=n,i.openWindow(),i}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.openWindow(r)},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){this.openWindow(e)},t.prototype._next=function(e){this.window.next(e)},t.prototype._error=function(e){this.window.error(e),this.destination.error(e),this.unsubscribeClosingNotification()},t.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},t.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},t.prototype.openWindow=function(e){void 0===e&&(e=null),e&&(this.remove(e),e.unsubscribe());var t=this.window;t&&t.complete();var n,i=this.window=new pn;this.destination.next(i);try{n=(0,this.closingSelector)()}catch(e){return this.destination.error(e),void this.window.error(e)}this.add(this.closingNotification=M(this,n))},t}(b);function So(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n;"function"==typeof e[e.length-1]&&(n=e.pop());var i=e;return t.lift(new Co(i,n))}}var Co=function(){function e(e,t){this.observables=e,this.project=t}return e.prototype.call=function(e,t){return t.subscribe(new Io(e,this.observables,this.project))},e}(),Io=function(e){function t(t,n,i){var r=e.call(this,t)||this;r.observables=n,r.project=i,r.toRespond=[];var o=n.length;r.values=new Array(o);for(var s=0;s<o;s++)r.toRespond.push(s);for(s=0;s<o;s++){var a=n[s];r.add(M(r,a,a,s))}return r}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.values[n]=t;var o=this.toRespond;if(o.length>0){var s=o.indexOf(n);-1!==s&&o.splice(s,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(b);function To(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return"function"==typeof n&&e.pop(),ve(e,void 0).lift(new Eo(n))}var Eo=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new ko(e,this.resultSelector))},e}(),ko=function(e){function t(t,n,i){void 0===i&&(i=Object.create(null));var r=e.call(this,t)||this;return r.iterators=[],r.active=0,r.resultSelector="function"==typeof n?n:null,r.values=i,r}return i.__extends(t,e),t.prototype._next=function(e){var t=this.iterators;c(e)?t.push(new Oo(e)):"function"==typeof e[D]?t.push(new Do(e[D]())):t.push(new Po(this.destination,this,e))},t.prototype._complete=function(){var e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(var n=0;n<t;n++){var i=e[n];if(i.stillUnsubscribed)this.destination.add(i.subscribe(i,n));else this.active--}}else this.destination.complete()},t.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},t.prototype.checkIterators=function(){for(var e=this.iterators,t=e.length,n=this.destination,i=0;i<t;i++){if("function"==typeof(s=e[i]).hasValue&&!s.hasValue())return}var r=!1,o=[];for(i=0;i<t;i++){var s,a=(s=e[i]).next();if(s.hasCompleted()&&(r=!0),a.done)return void n.complete();o.push(a.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),r&&n.complete()},t.prototype._tryresultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(v),Do=function(){function e(e){this.iterator=e,this.nextResult=e.next()}return e.prototype.hasValue=function(){return!0},e.prototype.next=function(){var e=this.nextResult;return this.nextResult=this.iterator.next(),e},e.prototype.hasCompleted=function(){var e=this.nextResult;return e&&e.done},e}(),Oo=function(){function e(e){this.array=e,this.index=0,this.length=0,this.length=e.length}return e.prototype[D]=function(){return this},e.prototype.next=function(e){var t=this.index++,n=this.array;return t<this.length?{value:n[t],done:!1}:{value:null,done:!0}},e.prototype.hasValue=function(){return this.array.length>this.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),Po=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.parent=n,r.observable=i,r.stillUnsubscribed=!0,r.buffer=[],r.isComplete=!1,r}return i.__extends(t,e),t.prototype[D]=function(){return this},t.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(e,t,n,i,r){this.buffer.push(t),this.parent.checkIterators()},t.prototype.subscribe=function(e,t){return M(this,this.observable,this,t)},t}(b);function Fo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(To.apply(void 0,[t].concat(e)))}}function Ao(e){return function(t){return t.lift(new Eo(e))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Undefined=0]="Undefined",e[e.Open=1]="Open",e[e.Close=2]="Close",e[e.Enter=3]="Enter",e[e.Tab=4]="Tab",e[e.Esc=5]="Esc",e[e.Delete=6]="Delete",e[e.Backspace=7]="Backspace",e[e.Home=8]="Home",e[e.End=9]="End",e[e.Up=10]="Up",e[e.Down=11]="Down",e[e.Left=12]="Left",e[e.Right=13]="Right"}(t.NavigationAction||(t.NavigationAction={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.FilterableComponent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(3),s=n(46),a=n(16),u=n(17),c=n(18),l=n(2),p=n(5),d=n(14),h=n(22),f=n(7),m=n(8),v=function(){function e(e,t,n,i,o,s,a){var u=this;this.dataService=e,this.wrapper=t,this.selectionService=n,this.disabledItemsService=i,this.cdr=o,this.zone=s,this.renderer=a,this.selected=[],this.focused=-1,this.show=!0,this.multipleSelection=!1,this.type="list",this.checkboxes={enabled:!1},this.rounded="medium",this.onClick=new r.EventEmitter,this.pageChange=new r.EventEmitter,this.listResize=new r.EventEmitter,this.startFrom=0,this.lastLoaded=0,this.lastScrollTop=0,this.scrollToFocused=!1,this._size="medium",this.selectSubscription=d.merge(this.selectionService.onSelect.pipe(h.map((function(e){return e.indices[0]}))),this.selectionService.onFocus).pipe(h.switchMap((function(e){return u.zone.onStable.pipe(h.take(1),h.map((function(){return e})))}))).subscribe(this.scrollToItem.bind(this)),this.prepareClasses()}return Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e[0]&&e[0].header?e.slice(0):e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){"list"===this.type&&(this.renderer.removeClass(this.wrapper.nativeElement,l.getSizeClass("list",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,l.getSizeClass("list",e)),this._size=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageSize",{get:function(){return this.virtual.pageSize?this.virtual.pageSize:Math.round(this.height/this.virtual.itemHeight)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollHeight",{get:function(){return(this.dataService.grouped?this.virtual.total-1:this.virtual.total)*this.virtual.itemHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overflowY",{get:function(){if(l.isPresent(this.virtual))return this.hasVirtualScrollbar()?"scroll":"hidden"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checkboxClasses",{get:function(){return(this.size?l.getSizeClass("checkbox",this.size):"")+" "+(this.rounded?l.getRoundedClass(this.rounded):"")},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){o.isChanged("data",e,!1)&&(this.lastLoaded<=0&&(this.lastLoaded=this.data.length-1,this.scrollToFocused=!e.data.isFirstChange()),this.setOverflow()),o.isChanged("virtual",e,!1)&&this.setOverflow(),o.isChanged("type",e,!1)&&this.prepareClasses()},e.prototype.ngAfterViewInit=function(){var e=this;this.setComponentClasses(),this.zone.runOutsideAngular((function(){e.scrollSubscription=d.fromEvent(e.content.nativeElement,"scroll").pipe(h.auditTime(100),h.tap(e.prefetchData.bind(e)),h.tap(e.findCurrentGroup.bind(e))).subscribe((function(){e.lastScrollTop=e.content.nativeElement.scrollTop}))})),this.setOverflow()},e.prototype.ngAfterViewChecked=function(){if(this.virtual&&this.positionItems(),this.items&&this.scrollToFocused){this.scrollToFocused=!1;var e=this.items.length&&-1===this.selectionService.focused?0:this.selectionService.focused;this.scrollToItem(e)}this.dataService.grouped&&this.findCurrentGroup()},e.prototype.ngOnDestroy=function(){this.selectSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()},e.prototype.onCheckedChange=function(e,t){var n=e.target.checked;n&&!this.selectionService.isSelected(t)&&this.selectionService.add(t),!n&&this.selectionService.isSelected(t)&&this.selectionService.unselect(t)},e.prototype.prepareClasses=function(){"list"===this.type?(this.listContentClass="k-list-content",this.listClass="k-list-ul",this.listItemClass="k-list-item",this.listVirtualClass="k-virtual-list",this.listGroupStickyHeaderClass="k-list-group-sticky-header",this.listGroupStickyHeaderTextClass="k-list-header-text",this.listGroupItemClass="k-list-group-item",this.listGroupItemTextClass="k-list-item-text"):(this.listContentClass="k-table-body k-table-scroller",this.listClass="k-table k-table-list",this.listItemClass="k-table-row",this.listVirtualClass="k-virtual-table",this.listGroupStickyHeaderClass="k-table-group-sticky-header",this.listGroupStickyHeaderTextClass="k-table-th",this.listGroupItemClass="k-table-group-row",this.listGroupItemTextClass="k-table-th")},e.prototype.isChecked=function(e){var t=this.virtual?e+this.virtual.skip:e;return this.selectionService.isSelected(t)},e.prototype.firstVisibleItem=function(){var e=this,t=this.content.nativeElement,n=t.getBoundingClientRect(),i=Array.prototype.slice.call(t.querySelectorAll(".k-disabled"));i.forEach((function(t){return e.renderer.setStyle(t,"pointer-events","auto")}));var r=document.elementFromPoint(n.left+1,n.top+1);return i.forEach((function(t){return e.renderer.setStyle(t,"pointer-events","none")})),l.closest(r,"li")},e.prototype.findCurrentGroup=function(){if(this.dataService.grouped){var e=this.firstVisibleItem();if(e){var t=void 0;"group"===e.getAttribute("role")?(t=parseInt(e.getAttribute("group-index"),10),this.currentGroup=this.dataService.groupAt(t).value):(t=parseInt(e.getAttribute("index"),10),this.currentGroup=this.dataService.itemGroup(this.dataService.itemAt(t)))}else this.currentGroup=void 0;this.cdr.detectChanges()}else this.currentGroup=void 0},e.prototype.prefetchData=function(){if(this.virtual){var e=Math.trunc(this.content.nativeElement.clientHeight/this.virtual.itemHeight),t=this.content.nativeElement.scrollTop,n=Math.trunc(t/this.virtual.itemHeight),i=t>this.lastScrollTop,r=n+e>=this.lastLoaded&&this.lastLoaded<this.virtual.total-1,o=this.pageSize-(this.lastLoaded-this.startFrom),s=this.lastLoaded-this.pageSize+e>=n-o;i&&r&&this.changePage(n),!i&&s&&this.changePage(n-this.pageSize+e+1)}},e.prototype.changePage=function(e){var t=this;this.zone.run((function(){var n=t.pageSize+e;n>t.virtual.total&&(e--,n=t.virtual.total),e<0&&(e=0),t.startFrom=e,t.lastLoaded=n,t.pageChange.emit({skip:e,take:t.pageSize})}))},e.prototype.index=function(e,t){return e>0?this.dataService.groupIndices[e-1]+t:t},e.prototype.getText=function(e){return l.getter(e,this.textField)},e.prototype.getValue=function(e){return l.getter(e,this.valueField)},e.prototype.isDisabled=function(e){return l.isPresent(this.virtual)&&(e+=this.virtual.skip),this.disabledItemsService.isIndexDisabled(e)},e.prototype.isAltRow=function(e){return"dropdowngrid"===this.type&&e%2!=0},e.prototype.scrollToItem=function(e){var t=e;this.dataService.grouped&&(t=this.dataService.flatIndex(e),t+=this.firstGroupHeaderInTargetedPage(t)?-1:0);if(this.virtual&&t>-1)this.scrollToIndex(t);else{var n=this.items.toArray();l.isPresent(n[t])&&-1!==t&&this.scroll(n[t].element)}},e.prototype.scrollToIndex=function(e){var t=this.content.nativeElement,n=t.scrollTop,i=e*this.virtual.itemHeight,r=this.virtual.itemHeight,o=t.clientHeight,s=i+r;n>i?n=i:s>n+o&&(n=s-o),t.scrollTop=n},e.prototype.scroll=function(e){if(e){var t=e.nativeElement,n=this.content.nativeElement,i=t.offsetTop,r=t.offsetHeight,o=n.scrollTop,s=n.clientHeight,a=i+r;o>i?o=i:a>o+s&&(o=a-s),n.scrollTop=o}},e.prototype.hasScrollbar=function(){return!!(l.isPresent(this.items)&&this.items.length&&l.isPresent(this.list)&&l.isPresent(this.content))&&(l.isPresent(this.virtual)&&this.hasVirtualScrollbar()||this.list.nativeElement.scrollHeight>this.content.nativeElement.offsetHeight)},e.prototype.setOverflow=function(){if(this.virtual){var e=this.hasVirtualScrollbar()?"scroll":"hidden";this.renderer.setStyle(this.content.nativeElement,"overflow-y",e)}},e.prototype.hasVirtualScrollbar=function(){var e=this.content.nativeElement.offsetHeight,t=this.virtualContainer&&this.virtualContainer.nativeElement.offsetHeight;return this.virtualContainer&&t>e},e.prototype.positionItems=function(){var e=this;this.items.forEach((function(t,n){var i=(n+e.startFrom)*e.virtual.itemHeight;e.renderer.setStyle(t.element.nativeElement,"transform","translateY("+i+"px")}))},e.prototype.firstGroupHeaderInTargetedPage=function(e){return!l.isPresent(this.virtual)||0===this.virtual.skip&&this.virtual.pageSize>e},e.prototype.setComponentClasses=function(){"list"===this.type&&(this.renderer.addClass(this.wrapper.nativeElement,"k-list"),this.size&&this.renderer.addClass(this.wrapper.nativeElement,l.getSizeClass("list",this.size))),l.isPresent(this.virtual)&&this.renderer.addClass(this.wrapper.nativeElement,this.listVirtualClass)},i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"selected",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"focused",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"textField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"valueField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"height",void 0),i.__decorate([r.Input(),i.__metadata("design:type",a.ItemTemplateDirective)],e.prototype,"template",void 0),i.__decorate([r.Input(),i.__metadata("design:type",u.GroupTemplateDirective)],e.prototype,"groupTemplate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",c.FixedGroupTemplateDirective)],e.prototype,"fixedGroupTemplate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"show",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"id",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"optionPrefix",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"multipleSelection",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"virtual",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"checkboxes",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"rounded",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"pageChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"listResize",void 0),i.__decorate([r.ViewChildren(s.ListItemDirective),i.__metadata("design:type",r.QueryList)],e.prototype,"items",void 0),i.__decorate([r.ViewChild("content",{static:!0}),i.__metadata("design:type",r.ElementRef)],e.prototype,"content",void 0),i.__decorate([r.ViewChild("list",{static:!0}),i.__metadata("design:type",r.ElementRef)],e.prototype,"list",void 0),i.__decorate([r.ViewChild("virtualContainer",{static:!1}),i.__metadata("design:type",r.ElementRef)],e.prototype,"virtualContainer",void 0),e=i.__decorate([r.Component({selector:"kendo-list",template:'\n <div *ngIf="dataService.grouped"\n [class]="listGroupStickyHeaderClass"\n [ngStyle]="{\n \'height.px\': virtual?.itemHeight,\n \'minHeight.px\' : virtual?.itemHeight,\n \'boxSizing\' : virtual ? \'border-box\' : \'inherit\'}"\n >\n <ng-template *ngIf="fixedGroupTemplate"\n [templateContext]="{\n templateRef: fixedGroupTemplate.templateRef,\n $implicit: currentGroup\n }">\n </ng-template>\n <ng-template [ngIf]="!fixedGroupTemplate"><span [class]="listGroupStickyHeaderTextClass">{{ currentGroup }}</span></ng-template>\n </div>\n <div #content\n [class]="listContentClass"\n [style.overscrollBehavior]="\'none\'"\n [style.maxHeight.px]="height"\n unselectable="on">\n <ul #list\n role="listbox"\n [class]="listClass"\n [attr.id]="id"\n [attr.aria-hidden]="!show">\n <ng-template *ngIf="!dataService.grouped && show" ngFor let-dataItem let-itemIndex="index" [ngForOf]="data">\n <li\n role="option"\n kendoDropDownsSelectable\n [checkboxes]="checkboxes"\n [height]="virtual?.itemHeight"\n [index]="itemIndex + startFrom"\n [multipleSelection]="multipleSelection"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem)"\n [attr.tabIndex]="-1"\n [class]="listItemClass"\n [ngClass]="{\n \'k-disabled\': isDisabled(itemIndex),\n \'k-table-alt-row\': isAltRow(itemIndex)\n }"\n >\n <input\n *ngIf="checkboxes.enabled"\n type="checkbox"\n class="k-checkbox"\n [ngClass]="checkboxClasses"\n (change)="onCheckedChange($event, itemIndex)"\n [checked]="isChecked(itemIndex)"\n />\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!template"><span class="k-list-item-text">{{ getText(dataItem) }}</span></ng-template>\n </li>\n </ng-template>\n <ng-template *ngIf="dataService.grouped" ngFor let-dataItem let-itemIndex="index" [ngForOf]="data">\n <li\n *ngIf="dataItem.header && dataItem.index > 0"\n role="group"\n [class]="listGroupItemClass"\n [class.k-table-alt-row]="isAltRow(itemIndex - 1)"\n [ngStyle]="{\n \'height.px\': virtual?.itemHeight,\n \'minHeight.px\' : virtual?.itemHeight,\n \'boxSizing\' : virtual ? \'border-box\' : \'inherit\'}"\n [attr.group-index]="dataItem.index"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem.value)"\n [attr.tabIndex]="-1">\n <span [class]="listGroupItemTextClass">\n <ng-template *ngIf="groupTemplate"\n [templateContext]="{\n templateRef: groupTemplate.templateRef,\n $implicit: dataItem.value\n }">\n </ng-template>\n <ng-template [ngIf]="!groupTemplate">{{ dataItem.value }}</ng-template>\n </span>\n </li>\n <li\n *ngIf="!dataItem.header"\n role="option"\n kendoDropDownsSelectable\n [height]="virtual?.itemHeight"\n [index]="dataItem.offsetIndex"\n [multipleSelection]="multipleSelection"\n [attr.absolute-index]="dataItem.index"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem.value)"\n [attr.tabIndex]="-1"\n [class]="listItemClass"\n [ngClass]="{\n \'k-disabled\': isDisabled(dataItem.offsetIndex),\n \'k-table-alt-row\': isAltRow(itemIndex - 1)\n }"\n >\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: dataItem.value\n }">\n </ng-template>\n <ng-template [ngIf]="!template"><span class="k-list-item-text">{{ getText(dataItem.value) }}</span></ng-template>\n </li>\n </ng-template>\n <kendo-resize-sensor\n *ngIf="!virtual"\n (resize)="listResize.emit()"\n >\n </kendo-resize-sensor>\n </ul>\n <div *ngIf="virtual" #virtualContainer class="k-height-container" role="presentation">\n <div [style.height.px]="scrollHeight">\n <kendo-resize-sensor (resize)="listResize.emit()"></kendo-resize-sensor>\n </div>\n </div>\n </div>\n '}),i.__metadata("design:paramtypes",[m.DataService,r.ElementRef,p.SelectionService,f.DisabledItemsService,r.ChangeDetectorRef,r.NgZone,r.Renderer2])],e)}();t.ListComponent=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultiselectMessages={array:"Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",object:"Expected values of Object type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",primitive:"Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",textAndValue:"Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#toc-bind-to-arrays-of-complex-data"},t.MultiSelectTreeMessages={array:"Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/#value-selection",primitive:"Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding/#toc-primitive-values",object:"Expected values of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding/#toc-object-values",dataItems:"Expected dataItems of type Object[] to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectTreeComponent/#toc-dataitems",dataItemsLength:"Expected dataItems length to match the number of provided values. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectTreeComponent/#toc-dataitems",textAndValue:"Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding",valueDepth:"Expected valueDepth of type number[] to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/MultiSelectTreeComponent/#toc-valuedepth",valueDepthLength:"Expected valueDepth length to match the number of provided values. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/MultiSelectTreeComponent/#toc-valuedepth"},t.ComboBoxMessages={object:"Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection",primitive:"Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection",textAndValue:"Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-bind-to-arrays-of-complex-data",noItemHeight:"Expected virtual.itemHeight of type number."},t.MultiColumnComboBoxMessages={data:"Provided data must consist only of objects. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/",textAndValue:"Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/#toc-fields-configuration"},t.DropDownListMessages={defaultItem:"defaultItem and data items must be of same type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownListComponent/#toc-defaultitem",object:"Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection",primitive:"Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection",textAndValue:"Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-bind-to-arrays-of-complex-data"},t.DropDownTreeMessages={primitive:"Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-primitive-values",object:"Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-object-values",dataItem:"Expected dataItem of type Object to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownTreeComponent/#toc-dataitem",textAndValue:"Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding",valueDepth:"Expected valueDepth to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/DropDownTreeComponent/#toc-valuedepth"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(69),s=n(11),a=n(25),u=n(32),c=n(70),l=n(9),p=n(3),d=n(21),h=n(46),f=n(58),m=n(59),v=n(74),g=n(75),b=[a.ListComponent,h.ListItemDirective,f.SelectableDirective,u.SearchBarComponent,m.TemplateContextDirective,c.TagListComponent,v.CheckDirective,g.CheckAllDirective],y=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[b],exports:[b,o.CommonModule,s.FormsModule,l.PopupModule,p.ResizeSensorModule,d.SharedDirectivesModule,p.EventsModule],imports:[o.CommonModule,s.FormsModule,l.PopupModule,p.ResizeSensorModule,d.SharedDirectivesModule,p.EventsModule]})],e)}();t.SharedModule=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoMultiSelectGroupTagTemplate],[kendoMultiSelectTreeGroupTagTemplate]"}),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.GroupTagTemplateDirective=o},function(e,t,n){"use strict";n.r(t),n.d(t,"detectMobileOS",(function(){return c})),n.d(t,"detectDesktopBrowser",(function(){return l})),n.d(t,"browser",(function(){return d})),n.d(t,"mobileOS",(function(){return h})),n.d(t,"touch",(function(){return f})),n.d(t,"msPointers",(function(){return m})),n.d(t,"pointers",(function(){return v})),n.d(t,"touchEnabled",(function(){return g})),n.d(t,"getter",(function(){return x})),n.d(t,"setter",(function(){return C}));var i=function(){return"undefined"!=typeof window},r={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)(\.(\d+(\.\d+)?))?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},o={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},s={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i},a={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i},u=function(e,t,n){for(var i in t)if(t.hasOwnProperty(i)&&t[i].test(e))return i;return void 0!==n?n:e},c=function(e){var t,n=[];for(var i in r)if(r.hasOwnProperty(i)){if(!(n=e.match(r[i])))continue;if("windows"===i&&"plugins"in window.navigator)return null;var s={};return s.device=i,s.browser=u(e,a,"default"),s.name=u(i,o),s[s.name]=!0,s.majorVersion=n[2],s.minorVersion=n[3]?n[3].replace("_","."):".0",t=s.minorVersion.replace(".","").substr(0,2),s.flatVersion=s.majorVersion+t+new Array(3-(t.length<3?t.length:2)).join("0"),s.cordova=void 0!==typeof window.PhoneGap||void 0!==typeof window.cordova,s.appMode=window.navigator.standalone||/file|local|wmapp/.test(window.location.protocol)||s.cordova,s}return null},l=function(e){var t=null,n=[];for(var i in s)if(s.hasOwnProperty(i)&&(n=e.match(s[i]))){(t={})[i]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.documentMode||n[2],10);break}return t},p=i()&&window.navigator?window.navigator.userAgent:null,d=p?l(p):null,h=p?c(p):null,f=i()&&"ontouchstart"in window,m=d&&!d.chrome&&window.MSPointerEvent,v=d&&!d.chrome&&window.PointerEvent,g=h&&(f||m||v),b=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function y(e){var t=[];return e.replace(b,(function(e,n,i,r){t.push(void 0!==n?n:i||r)})),t}var _={};function x(e){if(_[e])return _[e];var t=y(e);return _[e]=function(e){for(var n=e,i=0;i<t.length&&n;i++)n=n[t[i]];return n},_[e]}_[void 0]=function(e){return e};var w={undefined:function(e){return e}},S=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function C(e){if(w[e])return w[e];var t=y(e);return w[e]=function(e,n,i){for(var r=e,o=t.length-1,s=0;s<o&&r;s++)r=r[t[s]]=r[t[s]]||S(t[s+1],i);r[t[o]]=n},w[e]}},function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-dropdowns",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646640638,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(3),s=n(3),a=n(2),u=n(4),c=function(){function e(e,t){this.localization=e,this.valueChange=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.onFocus=new r.EventEmitter,this.onClick=new r.EventEmitter,this.onNavigate=new r.EventEmitter,this.searchBarClass=!0,this._userInput="",this._previousValue="",this._placeholder="",this.direction=e.rtl?"rtl":"ltr",this.renderer=t}return Object.defineProperty(e.prototype,"userInput",{get:function(){return this._userInput},set:function(e){this._userInput=e||""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.input.nativeElement.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){this._placeholder=e||"",this.setInputSize()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaExpanded",{get:function(){return"combobox"===this.role?this.popupOpen:null},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe((function(t){var n=t.rtl;return e.direction=n?"rtl":"ltr"}))},e.prototype.ngOnChanges=function(e){var t;if(this.input&&(e.userInput||e.suggestedText)){t=e.userInput&&e.userInput.previousValue?this._previousValue===e.userInput.previousValue?this._previousValue:e.userInput.currentValue||"":this._previousValue;var n=this.input.nativeElement.selectionStart,i=t.length===n;this.writeInputValue(this.suggestedText?a.combineStr(this.userInput,this.suggestedText):this.userInput),this.suggestedText?this.setInputSelection(this.userInput.length,this.suggestedText.length):i?this.setInputSelection(this.userInput.length,this.userInput.length):this.setInputSelection(n,n),this._previousValue=this.userInput}},e.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},e.prototype.writeInputValue=function(e){o.isDocumentAvailable()&&this.renderer.setProperty(this.input.nativeElement,"value",e)},e.prototype.setInputSelection=function(e,t){if(o.isDocumentAvailable()&&this.input.nativeElement===document.activeElement)try{this.input.nativeElement.setSelectionRange(e,t)}catch(e){}},e.prototype.handleInput=function(e){var t=e.target.value;t!==this.userInput&&(this._previousValue=t,this.valueChange.emit(t))},e.prototype.handleFocus=function(e){this.onFocus.emit(e)},e.prototype.handleBlur=function(e){this.onBlur.emit(e)},e.prototype.handleKeydown=function(e){var t=e.keyCode;[s.Keys.ArrowUp,s.Keys.ArrowDown,s.Keys.ArrowLeft,s.Keys.ArrowRight,s.Keys.Enter,s.Keys.Escape,s.Keys.Delete,s.Keys.Backspace,s.Keys.Home,s.Keys.End].indexOf(t)>-1&&this.onNavigate.emit(e)},e.prototype.focus=function(){o.isDocumentAvailable()&&this.input.nativeElement.focus()},e.prototype.blur=function(){o.isDocumentAvailable()&&this.input.nativeElement.blur()},e.prototype.setInputSize=function(){var e=function(e){return e?e.length:0},t=this.input.nativeElement,n=e(this.placeholder),i=e(this.value),r=Math.max(n,i,1);this.renderer.setAttribute(t,"size",r.toString())},i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"id",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"listId",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"tagListId",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"activeDescendant",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"noDataLabel",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"tabIndex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"popupOpen",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"userInput",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"suggestedText",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onNavigate",void 0),i.__decorate([r.ViewChild("input",{static:!0}),i.__metadata("design:type",r.ElementRef)],e.prototype,"input",void 0),i.__decorate([r.HostBinding("class.k-searchbar"),i.__metadata("design:type",Boolean)],e.prototype,"searchBarClass",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"placeholder",null),e=i.__decorate([r.Component({selector:"kendo-searchbar",template:'\n <input #input\n autocomplete="off"\n [id]="id"\n [disabled]="disabled"\n [readonly]="readonly"\n [placeholder]="placeholder"\n [class]="\'k-input-inner\'"\n (input)="handleInput($event)"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [attr.tabIndex]="tabIndex"\n [attr.dir]="direction"\n [attr.role]="role"\n [attr.aria-disabled]="disabled"\n [attr.aria-readonly]="readonly"\n aria-haspopup="listbox"\n [attr.aria-expanded]="ariaExpanded"\n [attr.aria-owns]="listId"\n [attr.aria-describedby]="tagListId"\n [attr.aria-activedescendant]="activeDescendant"\n [attr.aria-label]="noDataLabel"\n />\n '}),i.__metadata("design:paramtypes",[u.LocalizationService,r.Renderer2])],e)}();t.SearchBarComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r={pageSize:50,itemHeight:28};t.normalizeVirtualizationSettings=function(e,t){var n=Object.assign({},r,t);return!0===e?n:e?i.__assign({pageSize:r.pageSize},e):null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoDropDownListValueTemplate],[kendoDropDownTreeValueTemplate]"}),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.ValueTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoMultiSelectTagTemplate],[kendoMultiSelectTreeTagTemplate]"}),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.TagTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoDropDownTreeNodeTemplate], [kendoMultiSelectTreeNodeTemplate]"}),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.NodeTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(11),s=n(30),a=n(31),u=n(32),c=n(16),l=n(12),p=n(13),d=n(17),h=n(18),f=n(20),m=n(5),v=n(19),g=n(7),b=n(14),y=n(22),_=n(3),x=n(2),w=n(23),S=n(3),C=n(15),I=n(4),T=n(9),E=n(10),k=n(26),D=n(24),O=n(8),P=n(25),F=n(33),A=n(29);t.COMBOBOX_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return j}))};var j=function(){function e(e,t,n,i,o,u,c,l,p,d,h){this.wrapper=e,this.localization=t,this.popupService=n,this.selectionService=i,this.navigationService=o,this.disabledItemsService=u,this.dataService=c,this.zone=l,this.cdr=p,this.renderer=d,this.touchEnabled=h,this.selected=[],this.focusableId="k-"+x.guid(),this.allowCustom=!1,this.valueNormalizer=function(e){return e.pipe(y.map((function(e){return e})))},this.placeholder="",this.listHeight=200,this.suggest=!1,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new r.EventEmitter,this.selectionChange=new r.EventEmitter,this.filterChange=new r.EventEmitter,this.open=new r.EventEmitter,this.opened=new r.EventEmitter,this.close=new r.EventEmitter,this.closed=new r.EventEmitter,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.widgetClasses=!0,this._isFocused=!1,this.listBoxId=x.guid(),this.optionPrefix=x.guid(),this.onChangeCallback=function(e){},this.onTouchedCallback=function(e){},this.defaultVirtualItemHeight=28,this.defaultVirtualPageSize=50,this._filtering=!1,this._text="",this.filterText="",this._open=!1,this._popupSettings={animate:!0},this.popupMouseDownHandler=function(e){return e.preventDefault()},this.customValueSubject=new b.Subject,this.valueSubject=new b.Subject,this.clearValueSubject=new b.Subject,this.subs=new b.Subscription,this._size="medium",this._rounded="medium",this._fillMode="solid",s.validatePackage(a.packageMetadata),this.direction=t.rtl?"rtl":"ltr",this.data=[]}var n;return n=e,Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(e){this._text=x.isPresent(e)?e.toString():""},enumerable:!0,configurable:!0}),e.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||(this.triggerPopupEvents(e)||this._toggle(e))},Object.defineProperty(e.prototype,"activeDescendant",{get:function(){if(!this.isOpen||!x.isPresent(this.selectionService.focused)||-1===this.selectionService.focused)return null;var e=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+(e?x.getter(e,this.valueField):"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noDataLabel",{get:function(){if(0===this.data.length)return this.messageFor("noDataText")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){var e=this.virtual;if(e){var t=e.skip||0,n=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,n)}return this.dataService.data},set:function(e){if(this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.setState(),this._filtering){var t=this.text.length>0&&this.dataService.itemsCount>0?this.firstFocusableIndex(0):-1;this.selectionService.focused=t}this.suggest&&this.dataService.itemsCount&&this.text&&(this.suggestedText=x.getter(this.dataService.itemAt(0),this.textField))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.setState(),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valuePrimitive",{get:function(){return x.isPresent(this._valuePrimitive)?this._valuePrimitive:!x.isPresent(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemDisabled",{set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received "+JSON.stringify(e)+".");this.disabledItemsService.itemDisabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=F.normalizeVirtualizationSettings(e,{itemHeight:this.defaultVirtualItemHeight,pageSize:this.defaultVirtualPageSize})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,x.getSizeClass("input",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,x.getSizeClass("input",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,x.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,x.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,x.getFillModeClass("input",this.fillMode)),e&&this.renderer.addClass(this.wrapper.nativeElement,x.getFillModeClass("input",e)),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupWidth",{get:function(){var e=0;_.isDocumentAvailable()&&(e=this.wrapper.nativeElement.offsetWidth);var t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupHeight",{get:function(){var e=this.popupSettings.height;return x.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.attachStreams(),this.createValueStream(),this.subscribeTouchEvents(),this.attachSelectClickHandler(),this.setComponentClasses()},e.prototype.createValueStream=function(){var e=this,t=this.valueSubject.pipe(y.filter((function(t){var n=x.getter(e.value,e.valueField),i=x.getter(t,e.valueField),r=x.getter(t,e.textField);return!(!x.isPresent(e.value)&&!x.isPresent(i))&&(x.isPresent(r)&&(r=r.toString()),n!==i||e.text!==r||(e.clearFilter(),!1))})),y.map((function(t){var n=x.getter(t,e.valueField);return{dataItem:t,text:x.getter(t,e.textField),value:e.valuePrimitive?n:t}}))),n=y.partition((function(){return e.allowCustom}))(this.customValueSubject.pipe(y.throttleTime(300))),i=n[0].pipe(y.tap((function(){e.loading=!0,e.disabled=!0,e.cdr.detectChanges()})),y.filter((function(){var t=e.text!==x.getter(e.value,e.valueField);return e.loading=t,e.disabled=t,t||e.clearFilter(),t})),this.valueNormalizer,y.map((function(t){return{custom:!0,dataItem:t,text:e.text,value:t}}))),r=n[1].pipe(y.map((function(){return{custom:!0,dataItem:void 0,text:void 0,value:void 0}}))),o=this.clearValueSubject.pipe(y.map((function(){return{dataItem:void 0,text:void 0,value:void 0}})));this.valueSubscription&&this.valueSubscription.unsubscribe();var s=b.merge(t,i,r,o);this.valueSubscription=s.pipe(y.catchError((function(){var t=void 0!==x.getter(e.dataItem,e.valueField);return e.dataItem=void 0,e.value=void 0,e.text=void 0,e.loading=!1,e.disabled=!1,t&&e.selectionChange.emit(void 0),e.emitValueChange(),e.createValueStream(),b.of(null)}))).subscribe((function(t){var n=x.getter(e.dataItem,e.valueField)!==x.getter(t.dataItem,e.valueField);if(e.dataItem=t.dataItem,e.value=t.value,e.text=t.text,e.loading=!1,e.disabled=!1,e.clearFilter(),t.custom&&(e.selectionService.focused=-1),n){var i=t.custom?void 0:e.dataItem;e.selectionChange.emit(i)}e.emitValueChange()}))},e.prototype.attachStreams=function(){var e=this;_.isDocumentAvailable()&&(this.subs.add(this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.cdr.detectChanges()}))),this.subs.add(b.merge(this.navigationService.up,this.navigationService.down,this.navigationService.home,this.navigationService.end).pipe(y.filter((function(e){return x.isPresent(e.index)}))).subscribe((function(t){return e.navigate(t.index)}))),this.subs.add(this.navigationService.open.subscribe(this.handleNavigationOpen.bind(this))),this.subs.add(this.navigationService.close.subscribe((function(){return e.togglePopup(!1)}))),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add(this.navigationService.enter.pipe(y.tap((function(t){e.isOpen&&t.originalEvent.preventDefault()}))).subscribe(this.handleEnter.bind(this))),this.subs.add(b.merge(this.selectionService.onChange,this.selectionService.onSelect.pipe(y.filter((function(t){return!e.isOpen})))).pipe(y.tap((function(t){e._filtering=!1,e.togglePopup(!1)})),y.map((function(t){return e.dataService.itemAt(t.indices[0])}))).subscribe((function(t){e.change(t)}))),this.subs.add(this.selectionService.onSelect.pipe(y.filter((function(t){return e.isOpen})),y.tap((function(t){return e._filtering=!1})),y.map((function(t){return e.dataService.itemAt(t.indices[0])}))).subscribe((function(t){var n=x.getter(t,e.valueField)!==x.getter(e.dataItem,e.valueField);e.updateState({dataItem:t}),n&&e.selectionChange.emit(t)}))))},e.prototype.ngOnDestroy=function(){this.destroyPopup(),this.subs.unsubscribe(),x.isPresent(this.valueSubscription)&&this.valueSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectClickDisposeHandler&&this.selectClickDisposeHandler()},e.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),_.isChanged("valueNormalizer",e)&&this.createValueStream(),_.anyChanged(["textField","valueField","valuePrimitive"],e,!1)&&this.setState()},e.prototype.ngAfterContentChecked=function(){this.verifySettings()},e.prototype.focusItemAt=function(e){var t=e>=0&&e<this.data.length;x.isPresent(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(-1)},e.prototype.focus=function(){this.disabled||this.searchbar.focus()},e.prototype.blur=function(){this.disabled||this.searchbar.blur()},e.prototype.toggle=function(e){var t=this;Promise.resolve(null).then((function(){var n=x.isPresent(e)?e:!t._open;t._toggle(n),t.cdr.markForCheck()}))},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this.value=void 0,this.clearState(),this.resetSelection()},e.prototype.isEmpty=function(){var e=!x.isPresent(this.text)||x.isEmptyString(this.text),t=!x.isPresent(this.value)||x.isEmptyString(this.value);return e&&t},e.prototype.messageFor=function(e){return this.localization.get(e)},e.prototype.clearValue=function(e){e.stopImmediatePropagation(),this.focus(),this._filtering=!0,this._previousDataItem=void 0,this.selectionService.resetSelection([]),this.clearValueSubject.next(),this._filtering=!1},e.prototype.writeValue=function(e){this.value=null===e?void 0:e},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e},Object.defineProperty(e.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading":this.iconClass||"k-i-arrow-s"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectButtonClasses",{get:function(){return(this.size?x.getSizeClass("button",this.size):"")+" "+(this.fillMode?"k-button-"+this.fillMode:"")+" "+(this.fillMode?"k-button-"+this.fillMode+"-base":"")+"\n "},enumerable:!0,configurable:!0}),e.prototype.onResize=function(){if(this.isOpen){var e=this.popupRef.popupElement,t=this.popupWidth,n=t.min,i=t.max;e.style.minWidth=n,e.style.width=i}},e.prototype.verifySettings=function(){if(r.isDevMode()){if(!0===this.valuePrimitive&&x.isPresent(this.value)&&"object"==typeof this.value)throw new Error(k.ComboBoxMessages.primitive);if(!1===this.valuePrimitive&&x.isPresent(this.value)&&"object"!=typeof this.value)throw new Error(k.ComboBoxMessages.object);if(!x.isPresent(this.valueField)!=!x.isPresent(this.textField))throw new Error(k.ComboBoxMessages.textAndValue);if(this.virtual&&isNaN(this.virtual.itemHeight))throw new Error(k.ComboBoxMessages.noItemHeight)}},e.prototype.setState=function(){if(!this._filtering){var e=this.value,t=this.valueField,n=this.findDataItem({valueField:t,value:e});x.isPresent(n.index)&&-1!==n.index?(this.updateState({dataItem:n.dataItem,confirm:!0}),this.resetSelection(n.index)):x.isPresent(e)&&this.allowCustom?(this.updateState({dataItem:e}),this.resetSelection(-1)):this._previousDataItem&&this.value?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):(this.clearState(),this.resetSelection(-1))}},e.prototype.updateState=function(e){var t=e.dataItem,n=e.confirm,i=void 0!==n&&n;this.dataItem=t,this.text=x.getter(t,this.textField),i&&(this._previousDataItem=t)},e.prototype.clearState=function(){this.text=void 0,this.dataItem=void 0},e.prototype.resetSelection=function(e){var t=!x.isPresent(e)||e<0;this.selectionService.resetSelection(t?[]:[e]),this.selectionService.focused=e},e.prototype.firstFocusableIndex=function(e){var t=this.data.length-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},e.prototype.findIndexPredicate=function(e){var t=this;return this.dataService.grouped?function(n){var i=x.getter(n.value,t.textField);return(i=x.isPresent(i)?i.toString().toLowerCase():"").startsWith(e.toLowerCase())}:function(n){var i=x.getter(n,t.textField);return(i=x.isPresent(i)?i.toString().toLowerCase():"").startsWith(e.toLowerCase())}},e.prototype.findDataItem=function(e){var t=this,n=e.valueField,i=e.value,r={dataItem:null,index:-1},o=this.dataService.findIndex((function(e){var r=t.dataService.grouped?e.value:e;return x.getter(r,n)===x.getter(i,n)}));return r.dataItem=this.dataService.itemAt(o),r.index=o,r},e.prototype.search=function(e,t){var n;void 0===t&&(t=0),n=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),t):-1,this.disabledItemsService.isIndexDisabled(n)?n+1<this.dataService.itemsCount?this.search(e,n+1):this.selectionService.focus(-1):(this.selectionService.focus(n),this.suggest&&(this.suggestedText=x.getter(this.dataService.itemAt(n),this.textField)))},e.prototype.getSuggestion=function(){var e=!!this.selectionService.selected.length,t=this.suggest&&!this.backspacePressed&&this.suggestedText&&this.text;if(!e&&t&&this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase()))return this.suggestedText;this.suggestedText=void 0},e.prototype.navigate=function(e){0!==this.dataService.itemsCount&&(this.text=x.getter(this.dataService.itemAt(e),this.textField),this.selectionService.select(e))},e.prototype.handleNavigate=function(e){var t=x.isPresent(this.selectionService.selected[0]),n=isNaN(this.selectionService.focused)?this.firstFocusableIndex(0):this.selectionService.focused,i=0;if(!this.disabled&&!this.readonly&&e.keyCode!==S.Keys.Home&&e.keyCode!==S.Keys.End){t||(e.keyCode===S.Keys.ArrowDown?i=-1:e.keyCode===S.Keys.ArrowUp&&(i=1));var r=this.navigationService.process({current:i+n,max:this.dataService.itemsCount-1,min:0,originalEvent:e});r!==w.NavigationAction.Undefined&&r!==w.NavigationAction.Left&&r!==w.NavigationAction.Right&&r!==w.NavigationAction.Backspace&&r!==w.NavigationAction.Delete&&(r===w.NavigationAction.Enter&&this.isOpen||r!==w.NavigationAction.Enter)&&e.preventDefault()}},e.prototype.handleEnter=function(){var e=this.text,t=this.selectionService.focused,n=x.isPresent(t)&&-1!==t,i=x.getter(this._previousDataItem,this.textField)||"",r=x.getter(this.dataService.itemAt(t),this.textField),o=e!==i;this.togglePopup(!1),this._filtering=!1,this.allowCustom&&o&&(e===r||this.useSuggestion()?this.selectionService.change(t):this.change(e,!0)),this.allowCustom||(n?this.selectionService.change(t):o&&this.change(e,!0))},e.prototype.handleBlur=function(){var e=this;this._filtering=!1,this.searchbar.input.nativeElement.scrollLeft=0,this.isFocused=!1;var t=x.getter(this.dataItem,this.valueField)!==x.getter(this.value,this.valueField),n=this.searchbar.value,i=n!==(x.getter(this.dataItem,this.textField)||""),r=t||i;r||_.hasObservers(this.onBlur)||_.hasObservers(this.close)||x.isUntouched(this.wrapper.nativeElement)?this.zone.run((function(){r&&(x.isPresent(e.focusedItemText)&&e.focusedItemText.toLowerCase()===n.toLowerCase()||t?e.selectionService.change(e.selectionService.focused):e.change(n,!0));e.onBlur.emit(),e.onTouchedCallback(),e.togglePopup(!1)})):this.togglePopup(!1)},e.prototype.handleEscape=function(){this.togglePopup(!1),this.selectionService.selected.length>0||(this.suggestedText=null,this.selectionService.focused=-1)},e.prototype.handleNavigationOpen=function(){this.restoreItemFocus(),this.togglePopup(!0)},e.prototype.searchBarChange=function(e){var t=this.text?this.text.length:0;this.backspacePressed=e.length<t,this.text=e,this.selectionService.resetSelection([]),this.togglePopup(!0),this._filtering=!0,this.filterable&&this.filterText!==e?(this.filterText=e,this.filterChange.emit(e)):this.search(e)},e.prototype.handleFocus=function(){var e=this;this.isFocused=!0,_.hasObservers(this.onFocus)&&this.zone.run((function(){return e.onFocus.emit()}))},e.prototype.pageChange=function(e){this.virtual.skip=e.skip},e.prototype.change=function(e,t){void 0===t&&(t=!1),t?this.customValueSubject.next(e):this.valueSubject.next(e)},e.prototype.emitValueChange=function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value),this._previousDataItem=this.dataItem},e.prototype.selectClick=function(){this.touchEnabled||this.searchbar.focus(),this.isOpen||this.restoreItemFocus(),this.togglePopup(!this.isOpen)},Object.defineProperty(e.prototype,"listContainerClasses",{get:function(){return["k-list-container","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),e.prototype.preventEventDefault=function(e){e.preventDefault()},Object.defineProperty(e.prototype,"focusedItemText",{get:function(){var e=this.selectionService.focused;if(!x.isPresent(e)||-1===e)return null;var t=x.getter(this.dataService.itemAt(e),this.textField);return x.isPresent(t)?t.toString():""},enumerable:!0,configurable:!0}),e.prototype.restoreItemFocus=function(){!(x.isPresent(this.selectionService.focused)&&this.selectionService.focused>-1)&&this.text&&this.dataService.itemsCount&&(this.filterable?this.selectionService.focused=this.firstFocusableIndex(0):this.search(this.text))},e.prototype.useSuggestion=function(){if(!this.suggest||!x.isPresent(this.searchbar.value))return!1;var e=this.dataService.itemAt(this.selectionService.focused),t=x.getter(e,this.textField);return!!x.isPresent(t)&&this.searchbar.value.toLowerCase()===t.toLowerCase()},e.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},e.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",anchorAlign:n,popupAlign:i});var r=this.popupRef.popupElement,o=this.popupWidth,s=o.min,a=o.max;r.addEventListener("mousedown",this.popupMouseDownHandler),r.style.minWidth=s,r.style.width=a,r.style.height=this.popupHeight,r.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe((function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()})),this.popupRef.popupClose.subscribe((function(){e.closed.emit()})),this.popupRef.popupAnchorViewportLeave.subscribe((function(){return e.togglePopup(!1)}))},e.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},e.prototype.triggerPopupEvents=function(e){var t=new C.PreventableEvent;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()},e.prototype.clearFilter=function(){this.filterable&&this.filterText&&(this.filterText="",this.filterChange.emit(this.filterText))},e.prototype.subscribeTouchEvents=function(){var e=this;_.isDocumentAvailable()&&this.touchEnabled&&this.zone.runOutsideAngular((function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",(function(t){var n=t.target,i=x.inDropDown(e.wrapper,n,e.popupRef);e.isFocused&&!i?e.zone.run((function(){return e.blur()})):e.isOpen&&!i&&e.zone.run((function(){return e.togglePopup(!1)}))}))}))},e.prototype.attachSelectClickHandler=function(){var e=this.select.nativeElement,t=A.pointers?"pointerdown":"click";this.selectClickDisposeHandler=this.renderer.listen(e,t,this.selectClick.bind(this))},e.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,x.getSizeClass("input",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,x.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,x.getFillModeClass("input",this.fillMode))},i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"allowCustom",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"data",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"value",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"textField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"valueField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"valuePrimitive",null),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"valueNormalizer",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"listHeight",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"iconClass",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"loading",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"suggest",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"itemDisabled",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([r.Input("tabIndex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"virtual",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"selectionChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"filterChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"open",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"opened",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"close",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"closed",void 0),i.__decorate([r.Output("focus"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([r.ContentChild(c.ItemTemplateDirective,{static:!1}),i.__metadata("design:type",c.ItemTemplateDirective)],e.prototype,"template",void 0),i.__decorate([r.ContentChild(l.HeaderTemplateDirective,{static:!1}),i.__metadata("design:type",l.HeaderTemplateDirective)],e.prototype,"headerTemplate",void 0),i.__decorate([r.ContentChild(p.FooterTemplateDirective,{static:!1}),i.__metadata("design:type",p.FooterTemplateDirective)],e.prototype,"footerTemplate",void 0),i.__decorate([r.ContentChild(f.NoDataTemplateDirective,{static:!1}),i.__metadata("design:type",f.NoDataTemplateDirective)],e.prototype,"noDataTemplate",void 0),i.__decorate([r.ContentChild(d.GroupTemplateDirective,{static:!1}),i.__metadata("design:type",d.GroupTemplateDirective)],e.prototype,"groupTemplate",void 0),i.__decorate([r.ContentChild(h.FixedGroupTemplateDirective,{static:!1}),i.__metadata("design:type",h.FixedGroupTemplateDirective)],e.prototype,"fixedGroupTemplate",void 0),i.__decorate([r.ViewChild("container",{read:r.ViewContainerRef,static:!0}),i.__metadata("design:type",r.ViewContainerRef)],e.prototype,"container",void 0),i.__decorate([r.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",r.TemplateRef)],e.prototype,"popupTemplate",void 0),i.__decorate([r.ViewChild(u.SearchBarComponent,{static:!0}),i.__metadata("design:type",u.SearchBarComponent)],e.prototype,"searchbar",void 0),i.__decorate([r.ViewChild("optionsList",{static:!1}),i.__metadata("design:type",P.ListComponent)],e.prototype,"optionsList",void 0),i.__decorate([r.ViewChild("select",{static:!0}),i.__metadata("design:type",r.ElementRef)],e.prototype,"select",void 0),i.__decorate([r.HostBinding("class.k-combobox"),r.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],e.prototype,"widgetClasses",void 0),i.__decorate([r.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"isDisabled",null),i.__decorate([r.HostBinding("class.k-loading"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"isLoading",null),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[])],e.prototype,"dir",null),e=n=i.__decorate([r.Component({exportAs:"kendoComboBox",providers:[t.COMBOBOX_VALUE_ACCESSOR,O.DataService,m.SelectionService,v.NavigationService,g.DisabledItemsService,I.LocalizationService,{provide:I.L10N_PREFIX,useValue:"kendo.combobox"},{provide:D.FilterableComponent,useExisting:r.forwardRef((function(){return n}))},{provide:_.KendoInput,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-combobox",template:'\n <ng-container kendoComboBoxLocalizedMessages\n i18n-noDataText="kendo.combobox.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.combobox.clearTitle|The title of the clear button"\n clearTitle="clear"\n\n i18n-selectButtonText="kendo.combobox.selectButtonText|The text set as aria-label on the select button"\n selectButtonText="Select"\n >\n </ng-container>\n <kendo-searchbar #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [suggestedText]="getSuggestion()"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n ></kendo-searchbar>\n <span\n *ngIf="clearButton && !loading && !disabled && !readonly && text?.length"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="messageFor(\'clearTitle\')"\n (click)="clearValue($event)"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <button\n #select\n unselectable="on"\n type="button"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [attr.aria-label]="messageFor(\'selectButtonText\')"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-button-icon k-icon" [ngClass]="buttonClasses"></span>\n </button>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [size]="size"\n [rounded]="rounded"\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),i.__param(10,r.Optional()),i.__param(10,r.Inject(E.TOUCH_ENABLED)),i.__metadata("design:paramtypes",[r.ElementRef,I.LocalizationService,T.PopupService,m.SelectionService,v.NavigationService,g.DisabledItemsService,O.DataService,r.NgZone,r.ChangeDetectorRef,r.Renderer2,Boolean])],e)}();t.ComboBoxComponent=j},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(32),s=n(1),a=n(14),u=n(22),c=n(3),l=n(11),p=n(30),d=n(31),h=n(5),f=n(19),m=n(23),v=n(7),g=n(3),b=n(16),y=n(39),_=n(17),x=n(18),w=n(12),S=n(13),C=n(35),I=n(28),T=n(20),E=n(26),k=n(15),D=n(40),O=n(4),P=n(9),F=n(24),A=n(10),j=n(8),M=n(25),N=n(67),B=n(33),z={multi:!0,provide:l.NG_VALUE_ACCESSOR,useExisting:s.forwardRef((function(){return R}))},R=function(){function e(e,t,n,i,o,c,l,h,f,m,v,g){var b=this;this.wrapper=e,this.localization=t,this.popupService=n,this.dataService=i,this.selectionService=o,this.navigationService=c,this.disabledItemsService=l,this.cdr=h,this.differs=f,this.renderer=m,this._zone=v,this.touchEnabled=g,this.listBoxId=r.guid(),this.tagListId=r.guid(),this.tagPrefix="tag-"+r.guid(),this.optionPrefix="option-"+r.guid(),this.focusedTagIndex=void 0,this.focusableId="k-"+r.guid(),this.autoClose=!0,this.tabindex=0,this.disabled=!1,this.readonly=!1,this.filterable=!1,this.listHeight=200,this.clearButton=!0,this.tagMapper=function(e){return e||[]},this.allowCustom=!1,this.valueNormalizer=function(e){return e.pipe(u.map((function(e){var t=function(t){return"string"==typeof t&&e.toLowerCase()===t.toLowerCase()},n=b.value.find(t);if(n)return n;var i=b.dataService.find(t);return i||e})))},this.filterChange=new s.EventEmitter,this.valueChange=new s.EventEmitter,this.open=new s.EventEmitter,this.opened=new s.EventEmitter,this.close=new s.EventEmitter,this.closed=new s.EventEmitter,this.onFocus=new s.EventEmitter,this.onBlur=new s.EventEmitter,this.removeTag=new s.EventEmitter,this.hostClasses=!0,this.role="combobox",this.initialized=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.onChangeCallback=function(e){},this.onTouchedCallback=function(e){},this._placeholder="",this._open=!1,this._value=[],this._popupSettings={animate:!0},this._checkboxes={enabled:!1},this._isFocused=!1,this.selectedDataItems=[],this.customValueSubject=new a.Subject,this.observableSubscriptions=new a.Subscription,p.validatePackage(d.packageMetadata),this.popupMouseDownHandler=this.onMouseDown.bind(this),this.data=[],this.direction=this.localization.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents()}var t;return t=e,e.prototype.focusItemAt=function(e){var t=(this.allowCustom?-1:0)<=0&&e<this.data.length;r.isPresent(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(null)},e.prototype.focus=function(){this.disabled||this.searchbar.focus()},e.prototype.onSearchBarFocus=function(){var e=this;this.isFocused||(this.isFocused=!0,c.hasObservers(this.onFocus)&&this._zone.run((function(){e.onFocus.emit()})))},e.prototype.blur=function(){this.disabled||this.searchbar.blur()},e.prototype.onSearchBarBlur=function(){var e=this;this.isFocused&&(this.isFocused=!1,c.hasObservers(this.onBlur)||c.hasObservers(this.filterChange)||c.hasObservers(this.close)||r.isUntouched(this.wrapper.nativeElement)?this._zone.run((function(){e.closePopup(),e.isOpen&&e.allowCustom||e.clearFilter(),e.onBlur.emit(),e.onTouchedCallback()})):(this.allowCustom||this.clearFilter(),this.closePopup()))},e.prototype.onMouseDown=function(e){e.preventDefault()},e.prototype.onResize=function(){if(this._open){var e=this.popupRef.popupElement,t=this.width,n=t.min,i=t.max;e.style.minWidth=n,e.style.width=i}},Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){var e=this.virtual;if(e){var t=e.skip||0,n=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,n)}return this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.initialized&&this.setState(this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e||[],!this.differ&&this.value&&(this.differ=this.differs.find(this.value).create()),this.valueChangeDetected=!0,this.initialized&&this.setState(this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,r.getSizeClass("input",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,r.getSizeClass("input",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,r.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,r.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,r.getFillModeClass("input",this.fillMode)),e&&this.renderer.addClass(this.wrapper.nativeElement,r.getFillModeClass("input",e)),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this.selectedDataItems.length?"":this._placeholder},set:function(e){this._placeholder=e||""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemDisabled",{set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received "+JSON.stringify(e)+".");this.disabledItemsService.itemDisabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checkboxes",{get:function(){return this._checkboxes},set:function(e){this._checkboxes=N.normalizeCheckboxesSettings(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=B.normalizeVirtualizationSettings(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valuePrimitive",{get:function(){return r.isPresent(this._valuePrimitive)?this._valuePrimitive:!r.isPresent(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAriaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),e.prototype.hostMousedown=function(e){var t=this.searchbar.input.nativeElement;if(0===e.button){if(this.isFocused&&this.isOpen&&e.target===t)return;(!this.touchEnabled||this.touchEnabled&&"SPAN"!==e.target.tagName)&&this.searchbar.focus(),this.togglePopup(!this.isOpen),e.preventDefault()}},Object.defineProperty(e.prototype,"listContainerClasses",{get:function(){var e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"customItemSizeClass",{get:function(){return""+(this.size?r.getSizeClass("list",this.size):"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var e=0;c.isDocumentAvailable()&&(e=this.wrapper.nativeElement.offsetWidth);var t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var e=this.popupSettings.height;return r.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeDescendant",{get:function(){var e,t,n=this.focusedTagIndex,i=this.selectionService.focused;if(r.isPresent(n)&&!this.isOpen)t=this.tags[n],e=this.tagPrefix;else{if(!r.isPresent(i)||-1===i||!this.isOpen)return null;t=this.dataService.itemAt(i),e=this.optionPrefix}return e+"-"+r.getter(t,this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noDataLabel",{get:function(){if(0===this.dataService.itemsCount)return this.messageFor("noDataText")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),e.prototype.verifySettings=function(){if(s.isDevMode()&&0!==this.value.length){if(!r.isArray(this.value))throw new Error(E.MultiselectMessages.array);if(!0===this.valuePrimitive&&r.isObjectArray(this.value))throw new Error(E.MultiselectMessages.primitive);if(!1===this.valuePrimitive&&!r.isObjectArray(this.value))throw new Error(E.MultiselectMessages.object);if(!r.isPresent(this.valueField)!=!r.isPresent(this.textField))throw new Error(E.MultiselectMessages.textAndValue)}},e.prototype.change=function(e){var t=this;if((r.isPresent(e.added)||r.isPresent(e.removed))&&(-1===e.added||-1===e.removed))this.addCustomValue(this.text);else{if(r.isPresent(e.added)){var n=this.dataService.itemAt(e.added),i=this.valuePrimitive&&r.isPresent(n)&&r.isPresent(n[this.valueField])?n[this.valueField]:n;this.value=this.value.concat([i])}if(r.isPresent(e.removed)){var o=this.dataService.itemAt(e.removed);this.value=this.value.filter((function(e){return r.getter(e,t.valueField)!==r.getter(o,t.valueField)})),this.selectionService.focused=e.removed,this.cdr.detectChanges()}this.emitValueChange()}},e.prototype.setState=function(e){var t=this,n=this.dataService.data;this.dataService.grouped&&(n=n.filter((function(e){return!e.header})).map((function(e){return e.value})));var i=r.selectedIndices(this.value,n,this.valueField);this.selectionService.resetSelection(i),this.disabledItemsService.isIndexDisabled(this.selectionService.focused)&&(this.selectionService.focused=this.firstFocusableIndex(0)),this.isOpen&&void 0===this.selectionService.focused&&(this.dataService.itemsCount>0?this.selectionService.focused=this.firstFocusableIndex(0):this.allowCustom&&(this.selectionService.focused=-1)),this.valuePrimitive&&!this.valueField&&(this.selectedDataItems=e.slice()),(r.isObjectArray(e)||this.valuePrimitive&&this.valueField)&&(this.selectedDataItems=r.resolveAllValues(e,n,this.valueField)),this.selectedDataItems.length<e.length&&(this.selectedDataItems=e.map((function(e){var n=t.selectedDataItems.find((function(n){return r.getter(n,t.valueField)===r.getter(e,t.valueField)}));return r.isPresent(n)?n:t.resolveDataItemFromTags(e)})).filter((function(e){return r.isPresent(e)}))),this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.disabledIndices=this.disabledItemsMapper(),this.cdr.markForCheck()},e.prototype.handleFilter=function(e){this.text=e,e&&!this.isOpen&&this.openPopup(),this.filterable?this.filterChange.emit(e):this.searchTextAndFocus(e),this.searchbar.setInputSize()},e.prototype.pageChange=function(e){this.virtual.skip=e.skip},e.prototype.clearFilter=function(){this.filterable&&this.text&&this.filterChange.emit(""),this.text="",this.searchbar.input.nativeElement.value="",this.searchbar.setInputSize()},e.prototype.handleNavigate=function(e){var t=this.text&&e.keyCode!==g.Keys.ArrowDown&&e.keyCode!==g.Keys.ArrowUp,n=this.text&&e.keyCode===g.Keys.Enter||e.keyCode===g.Keys.Escape;if(!this.text&&e.keyCode===g.Keys.Backspace&&this.tags.length>0)this.handleBackspace();else if(!(this.disabled||t&&!n)){var i=e,r=isNaN(this.selectionService.focused)?-1:this.selectionService.focused,o=this.navigationService.process({current:r,max:this.dataService.itemsCount-1,min:this.allowCustom&&this.text?-1:0,open:this.isOpen,originalEvent:i});o!==m.NavigationAction.Undefined&&(o===m.NavigationAction.Enter&&this.isOpen||o!==m.NavigationAction.Enter)&&e.preventDefault()}},e.prototype.handleRemoveTag=function(e){var t=e.tag,n=new D.RemoveTagEvent(t);this.disabled||this.readonly||(this.focus(),this.removeTag.emit(n),n.isDefaultPrevented()||(t instanceof Array?this.removeGroupTag(t):this.removeSingleTag(t),this.cdr.detectChanges()))},e.prototype.clearAll=function(e){var t=this;e.stopImmediatePropagation(),e.preventDefault(),this.focus(),this.clearFilter();var n=this.selectionService.selected;this.value=this.value.filter((function(e,i){return t.disabledItemsService.isIndexDisabled(n[i])})),this.emitValueChange()},e.prototype.addCustomValue=function(e){this.customValueSubject.next(e)},e.prototype.ngAfterContentChecked=function(){this.verifySettings()},e.prototype.ngDoCheck=function(){this.differ&&this.differ.diff(this.value)&&!this.valueChangeDetected&&this.setState(this.value),this.valueChangeDetected=!1},e.prototype.ngOnInit=function(){var e=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.createCustomValueStream(),this.localizationChangeSubscription=this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.cdr.markForCheck()})),this.setState(this.value),this.setComponentClasses(),this.initialized=!0},e.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),c.isChanged("valueNormalizer",e)&&this.createCustomValueStream(),c.anyChanged(["textField","valueField","valuePrimitive"],e)&&this.setState(this.value)},e.prototype.ngAfterViewInit=function(){this.searchbar.setInputSize()},e.prototype.ngOnDestroy=function(){this._toggle(!1),this.unsubscribeEvents()},e.prototype.toggle=function(e){var t=this;Promise.resolve(null).then((function(){var n=r.isPresent(e)?e:!t._open;t._toggle(n),t.cdr.markForCheck()}))},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this.text="",this.value=[]},e.prototype.messageFor=function(e){return this.localization.get(e)},e.prototype.writeValue=function(e){this.value=e||[]},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.onTagMapperChange=function(){this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.cdr.markForCheck()},Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e},enumerable:!0,configurable:!0}),e.prototype.subscribeEvents=function(){var e=this;if(c.isDocumentAvailable()){var t=function(){return e.isOpen},n=function(){return!e.isOpen},i=function(){return!e.isOpen&&void 0!==e.focusedTagIndex};[this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.navigationService.esc.subscribe(this.closePopup.bind(this)),this.navigationService.enter.pipe(u.filter(t)).subscribe(this.handleEnter.bind(this)),this.navigationService.open.subscribe(this.openPopup.bind(this)),this.navigationService.close.subscribe(this.handleClose.bind(this)),this.navigationService.up.pipe(u.filter(t)).subscribe((function(t){return e.handleUp(t.index)})),this.navigationService.home.pipe(u.filter((function(){return n}))).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(u.filter((function(){return n}))).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(u.filter(i)).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(u.filter(i)).subscribe(this.handleDelete.bind(this)),this.navigationService.left.subscribe("rtl"===this.direction?this.handleRightKey.bind(this):this.handleLeftKey.bind(this)),this.navigationService.right.subscribe("rtl"===this.direction?this.handleLeftKey.bind(this):this.handleRightKey.bind(this)),this.navigationService.down.subscribe((function(t){return e.handleDownKey(t.index)}))].forEach((function(t){return e.observableSubscriptions.add(t)}))}},e.prototype.subscribeTouchEvents=function(){var e=this;c.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular((function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",(function(t){var n=t.target;!e.isFocused&&!e.isOpen||r.inDropDown(e.wrapper,n,e.popupRef)||e._zone.run((function(){e.blur(),e.isOpen&&e.togglePopup(!1)}))}))}))},e.prototype.unsubscribeEvents=function(){c.isDocumentAvailable()&&(this.observableSubscriptions.unsubscribe(),this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())},e.prototype.removeGroupTag=function(e){var t=this,n=this.dataService.data;this.dataService.grouped&&(n=n.filter((function(e){return!e.header})).map((function(e){return e.value})));var i=new Set(e.map((function(e){return r.getter(e,t.valueField)})));this.value=this.value.filter((function(e){var o=r.selectedIndices([e],n,t.valueField)[0],s=t.disabledItemsService.isIndexDisabled(o);return!i.has(r.getter(e,t.valueField))||s})),this.emitValueChange()},e.prototype.removeSingleTag=function(e){var t=this,n=this.dataService.data;this.dataService.grouped&&(n=n.filter((function(e){return!e.header})).map((function(e){return e.value})));var i=r.selectedIndices([e],n,this.valueField)[0];if(!this.disabledItemsService.isIndexDisabled(i))if(r.isNumber(i))this.selectionService.unselect(i),this.selectionService.focused=i,this.togglePopup(!1);else{this.value=this.value.filter((function(n){return r.getter(n,t.valueField)!==r.getter(e,t.valueField)})),this.emitValueChange()}},e.prototype.disabledItemsMapper=function(){var e=this,t=this.selectionService.selected;return new Set(this.selectedDataItems.reduce((function(n,i,r){return e.disabledItemsService.isIndexDisabled(t[r])&&n.push(r),n}),[]))},e.prototype.createCustomValueStream=function(){var e=this;this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.customValueSubscription=this.customValueSubject.pipe(u.tap((function(){e.loading=!0,e.disabled=!0,e.cdr.detectChanges()})),this.valueNormalizer,u.catchError((function(){return e.loading=!1,e.disabled=!1,e.autoClose&&e.togglePopup(!1),!e.autoClose&&e.filterable||e.clearFilter(),e.nextTick((function(){e.searchbar.focus()})),e.createCustomValueStream(),a.of(null)}))).subscribe((function(t){if(e.loading=!1,e.disabled=!1,r.isPresent(t)){var n=e.valuePrimitive?r.getter(t,e.valueField):t,i=e.dataService.indexOf(n),o=-1===i;-1===e.value.indexOf(n)?(e.tags=e.tagMapper(e.selectedDataItems.concat([t])),o?e.value=e.value.concat([n]):e.selectionService.add(i)):!o&&e.selectionService.isSelected(i)?(e.selectionService.unselect(i),e.selectionService.focused=i):e.value=e.value.filter((function(t){return r.getter(t,e.valueField)!==n})),e.emitValueChange()}e.autoClose&&e.togglePopup(!1),!e.autoClose&&e.filterable||e.clearFilter(),e.nextTick((function(){e.searchbar.focus()}))}))},e.prototype.handleItemChange=function(e){this.change(e),this.autoClose&&this.togglePopup(!1),!this.autoClose&&this.filterable||this.clearFilter()},e.prototype.handleEnter=function(e){var t=this.selectionService,n=this.selectionService.focused;this.isOpen&&e.originalEvent.preventDefault(),-1!==n?(t.isSelected(n)?(t.unselect(n),t.focused=n):t.add(n),this.autoClose&&this.togglePopup(!1),!this.autoClose&&this.filterable||this.clearFilter()):this.allowCustom&&this.text&&this.addCustomValue(this.text)},e.prototype.handleClose=function(){this.closePopup(),this.searchbar.focus()},e.prototype.handleEnd=function(){this.focusedTagIndex=this.tags.length-1},e.prototype.handleHome=function(){this.focusedTagIndex=0},e.prototype.handleUp=function(e){this.selectionService.focused=e},e.prototype.handleBackspace=function(){void 0!==this.focusedTagIndex?this.handleDelete():(this.handleRemoveTag({tag:this.tags[this.tags.length-1]}),this.searchbar.focus())},e.prototype.handleDelete=function(){this.handleRemoveTag({tag:this.tags[this.focusedTagIndex]}),this.focusedTagIndex===this.tags.length&&(this.focusedTagIndex=void 0)},e.prototype.handleLeftKey=function(){void 0===this.focusedTagIndex||this.focusedTagIndex<0?this.focusedTagIndex=this.tags.length-1:0!==this.focusedTagIndex&&this.focusedTagIndex--},e.prototype.handleDownKey=function(e){this.isOpen?this.selectionService.focused=e||this.firstFocusableIndex(0):this.openPopup()},e.prototype.handleRightKey=function(){var e=this.tags.length-1;this.focusedTagIndex===e?this.focusedTagIndex=void 0:this.focusedTagIndex<e&&this.focusedTagIndex++},e.prototype.findIndex=function(e,t){var n,i=this;void 0===t&&(t=0),e=e.toLowerCase();var o=this.dataService.findIndex((function(t){return n=i.dataService.grouped?r.getter(t.value,i.textField):r.getter(t,i.textField),n=r.isPresent(n)?n.toString().toLowerCase():"",e&&n.startsWith(e)}),t);return this.disabledItemsService.isIndexDisabled(o)?o+1>this.dataService.itemsCount?-1:this.findIndex(e,o+1):o},e.prototype.searchTextAndFocus=function(e){var t=this.findIndex(e);this.selectionService.focused=t},e.prototype.closePopup=function(){this.togglePopup(!1),this.focusedTagIndex=void 0},e.prototype.openPopup=function(){this.togglePopup(!0),this.focusedTagIndex=void 0},e.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||(this.triggerPopupEvents(e)||this._toggle(e))},e.prototype.triggerPopupEvents=function(e){var t=new k.PreventableEvent;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()},e.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},e.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},e.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:n,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:i,popupClass:this.listContainerClasses,positionMode:"absolute"});var r=this.popupRef.popupElement,o=this.width,s=o.min,a=o.max;r.addEventListener("mousedown",this.popupMouseDownHandler),r.style.minWidth=s,r.style.width=a,r.style.height=this.height,r.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe((function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()})),this.popupRef.popupClose.subscribe((function(){e.closed.emit()})),this.popupRef.popupAnchorViewportLeave.subscribe((function(){e.togglePopup(!1)}))},e.prototype.emitValueChange=function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value)},e.prototype.resolveDataItemFromTags=function(e){var t=this;if(this.tags&&this.tags.length&&r.isPresent(e))return this.tags.reduce((function(e,t){var n=r.isArray(t)?t:[t];return e.push.apply(e,n),e}),[]).find((function(n){return r.getter(n,t.valueField)===r.getter(e,t.valueField)}))},e.prototype.firstFocusableIndex=function(e){var t=this.dataService.itemsCount;if(this.disabledItemsService.isIndexDisabled(e)){var n=e+1;return n<t?this.firstFocusableIndex(n):void 0}return e},e.prototype.nextTick=function(e){var t=this;this._zone.runOutsideAngular((function(){setTimeout((function(){return t._zone.run(e)}))}))},e.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,r.getSizeClass("input",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,r.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,r.getFillModeClass("input",this.fillMode))},i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],e.prototype,"autoClose",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],e.prototype,"loading",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),i.__decorate([s.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"value",null),i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"valueField",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"textField",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([s.Input("tabIndex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"placeholder",null),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"itemDisabled",null),i.__decorate([s.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"checkboxes",null),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"virtual",null),i.__decorate([s.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),i.__decorate([s.Input(),i.__metadata("design:type",Number)],e.prototype,"listHeight",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"valuePrimitive",null),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Object)],e.prototype,"tagMapper",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],e.prototype,"allowCustom",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Function)],e.prototype,"valueNormalizer",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],e.prototype,"filterChange",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],e.prototype,"open",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],e.prototype,"opened",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],e.prototype,"close",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],e.prototype,"closed",void 0),i.__decorate([s.Output("focus"),i.__metadata("design:type",s.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([s.Output("blur"),i.__metadata("design:type",s.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],e.prototype,"removeTag",void 0),i.__decorate([s.ViewChild("container",{read:s.ViewContainerRef,static:!0}),i.__metadata("design:type",s.ViewContainerRef)],e.prototype,"container",void 0),i.__decorate([s.ViewChild(o.SearchBarComponent,{static:!0}),i.__metadata("design:type",o.SearchBarComponent)],e.prototype,"searchbar",void 0),i.__decorate([s.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",s.TemplateRef)],e.prototype,"popupTemplate",void 0),i.__decorate([s.ViewChild("optionsList",{static:!1}),i.__metadata("design:type",M.ListComponent)],e.prototype,"optionsList",void 0),i.__decorate([s.ContentChild(b.ItemTemplateDirective,{static:!1}),i.__metadata("design:type",b.ItemTemplateDirective)],e.prototype,"template",void 0),i.__decorate([s.ContentChild(y.CustomItemTemplateDirective,{static:!1}),i.__metadata("design:type",y.CustomItemTemplateDirective)],e.prototype,"customItemTemplate",void 0),i.__decorate([s.ContentChild(_.GroupTemplateDirective,{static:!1}),i.__metadata("design:type",_.GroupTemplateDirective)],e.prototype,"groupTemplate",void 0),i.__decorate([s.ContentChild(x.FixedGroupTemplateDirective,{static:!1}),i.__metadata("design:type",x.FixedGroupTemplateDirective)],e.prototype,"fixedGroupTemplate",void 0),i.__decorate([s.ContentChild(w.HeaderTemplateDirective,{static:!1}),i.__metadata("design:type",w.HeaderTemplateDirective)],e.prototype,"headerTemplate",void 0),i.__decorate([s.ContentChild(S.FooterTemplateDirective,{static:!1}),i.__metadata("design:type",S.FooterTemplateDirective)],e.prototype,"footerTemplate",void 0),i.__decorate([s.ContentChild(C.TagTemplateDirective,{static:!1}),i.__metadata("design:type",C.TagTemplateDirective)],e.prototype,"tagTemplate",void 0),i.__decorate([s.ContentChild(I.GroupTagTemplateDirective,{static:!1}),i.__metadata("design:type",I.GroupTagTemplateDirective)],e.prototype,"groupTagTemplate",void 0),i.__decorate([s.ContentChild(T.NoDataTemplateDirective,{static:!1}),i.__metadata("design:type",T.NoDataTemplateDirective)],e.prototype,"noDataTemplate",void 0),i.__decorate([s.HostBinding("class.k-multiselect"),s.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([s.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"dir",null),i.__decorate([s.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([s.HostBinding("class.k-loading"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"isLoading",null),i.__decorate([s.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([s.HostBinding("attr.aria-expanded"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"isAriaExpanded",null),i.__decorate([s.HostListener("mousedown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"hostMousedown",null),e=t=i.__decorate([s.Component({exportAs:"kendoMultiSelect",providers:[z,j.DataService,h.SelectionService,f.NavigationService,v.DisabledItemsService,O.LocalizationService,{provide:O.L10N_PREFIX,useValue:"kendo.multiselect"},{provide:F.FilterableComponent,useExisting:s.forwardRef((function(){return t}))},{provide:c.KendoInput,useExisting:s.forwardRef((function(){return t}))}],selector:"kendo-multiselect",template:'\n <ng-container kendoMultiSelectLocalizedMessages\n i18n-noDataText="kendo.multiselect.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.multiselect.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <kendo-taglist\n [size]="size"\n [rounded]="rounded"\n [fillMode]="fillMode"\n [id]="tagListId"\n [tags]="tags"\n [textField]="textField"\n [valueField]="valueField"\n [focused]="focusedTagIndex"\n [disabled]="disabled"\n [template]="tagTemplate"\n [groupTemplate]="groupTagTemplate"\n [tagPrefix]="tagPrefix"\n [disabledIndices]="disabledIndices"\n (removeTag)="handleRemoveTag($event)"\n >\n <kendo-searchbar\n #searchbar\n [id]="focusableId"\n [role]="\'textbox\'"\n [tagListId]="tagListId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="handleFilter($event)"\n (onBlur)="onSearchBarBlur()"\n (onFocus)="onSearchBarFocus()"\n >\n </kendo-searchbar>\n </kendo-taglist>\n\n <span\n *ngIf="!loading && !readonly && clearButton && (tags?.length || text?.length)"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n [attr.title]="messageFor(\'clearTitle\')"\n role="button"\n tabindex="-1"\n (mousedown)="clearAll($event)"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <span\n *ngIf="loading"\n class="k-icon k-i-loading"\n >\n </span>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--custom item template--\x3e\n <div\n *ngIf="allowCustom && text"\n class="k-list"\n [ngClass]="customItemSizeClass"\n >\n <div class="k-list-item k-custom-item" kendoDropDownsSelectable [multipleSelection]="true" [index]="-1">\n <ng-template *ngIf="customItemTemplate;else default_custom_item_template"\n [templateContext]="{\n templateRef: customItemTemplate.templateRef,\n $implicit: text\n }">\n </ng-template>\n <ng-template #default_custom_item_template>{{ text }}</ng-template>\n <span class="k-icon k-i-plus" style="float: right"></span>\n </div>\n </div>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [size]="size"\n [rounded]="rounded"\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [height]="listHeight"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [show]="isOpen"\n [multipleSelection]="true"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n [checkboxes]="checkboxes"\n >\n </kendo-list>\n \x3c!--no data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),i.__param(11,s.Optional()),i.__param(11,s.Inject(A.TOUCH_ENABLED)),i.__metadata("design:paramtypes",[s.ElementRef,O.LocalizationService,P.PopupService,j.DataService,h.SelectionService,f.NavigationService,v.DisabledItemsService,s.ChangeDetectorRef,s.KeyValueDiffers,s.Renderer2,s.NgZone,Boolean])],e)}();t.MultiSelectComponent=R},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoMultiSelectCustomItemTemplate]"}),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.CustomItemTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t){var n=e.call(this)||this;return n.dataItem=t,n}return i.__extends(t,e),t}(n(15).PreventableEvent);t.RemoveTagEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(42),s=n(43),a=function(){function e(){this.hidden=!1,this.matchesMedia=!0}return i.__decorate([r.ContentChild(o.ColumnCellTemplateDirective,{static:!1}),i.__metadata("design:type",o.ColumnCellTemplateDirective)],e.prototype,"cellTemplate",void 0),i.__decorate([r.ContentChild(s.ColumnHeaderTemplateDirective,{static:!1}),i.__metadata("design:type",s.ColumnHeaderTemplateDirective)],e.prototype,"headerTemplate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"field",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"width",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"hidden",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"style",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"headerStyle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"class",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"headerClass",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"media",void 0),e=i.__decorate([r.Component({selector:"kendo-combobox-column",template:""})],e)}();t.ComboBoxColumnComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoMultiColumnComboBoxColumnCellTemplate]"}),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.ColumnCellTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoMultiColumnComboBoxColumnHeaderTemplate]"}),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.ColumnHeaderTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(11),s=n(3),a=n(4),u=n(19),c=n(9),l=n(6),p=n(8),d=n(7),h=n(5),f=n(15),m=n(23),v=n(2),g=n(40),b=n(26),y=n(12),_=n(13),x=n(36),w=n(20),S=n(35),C=n(28),I=n(10),T=n(14),E=n(22),k={animate:!0},D={checkChildren:!0,checkOnClick:!0},O=function(){return!1},P=function(){return T.of([])},F=function(){return!1},A=function(){return!0},j=function(){function e(e,t,n,i,o,a,u,c){this.wrapper=e,this.popupService=t,this.renderer=n,this.navigationService=i,this._zone=o,this.localization=a,this.cdr=u,this.touchEnabled=c,this.hostClasses=!0,this.role="combobox",this.ariaHasPopup="tree",this.valueDepth=[],this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.loadOnDemand=!1,this.focusableId="k-"+s.guid(),this.clearButton=!0,this.filterable=!1,this.checkAll=!1,this.hasChildren=O,this.fetchChildren=P,this.isNodeVisible=A,this.itemDisabled=F,this.tagMapper=function(e){return e||[]},this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.open=new r.EventEmitter,this.opened=new r.EventEmitter,this.close=new r.EventEmitter,this.closed=new r.EventEmitter,this.nodeExpand=new r.EventEmitter,this.nodeCollapse=new r.EventEmitter,this.valueChange=new r.EventEmitter,this.removeTag=new r.EventEmitter,this.filterChange=new r.EventEmitter,this.filterStateChange=new r.EventEmitter,this.checkedItems=[],this.checkBy=function(e){return e},this.showAfter=0,this.allNodesHidden=!1,this.tagListId=s.guid(),this.tagPrefix="tag-"+s.guid(),this.focusedTagIndex=void 0,this._value=[],this._tabindex=0,this._popupSettings=k,this._checkableSettings=D,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=[],this.lastAction="check",this.onTouchedCallback=v.noop,this.onChangeCallback=v.noop,this.direction=a.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeFocusEvents()}var t;return t=e,Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.focusableId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabIndex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAriaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDescribedBy",{get:function(){return this.tagListId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaActiveDescendant",{get:function(){return this.focusedTagId},enumerable:!0,configurable:!0}),e.prototype.handleClick=function(){this.togglePopup(!this.isOpen)},e.prototype.handleKeydown=function(e){if(this.isWrapperActive&&e.keyCode===s.Keys.Backspace&&this.tags.length>0)this.handleBackspace();else if(!this.disabled&&!this.readonly){var t=e;this.navigationService.process({originalEvent:t})===m.NavigationAction.Open&&t.preventDefault()}},Object.defineProperty(e.prototype,"treeview",{get:function(){return this._treeview},set:function(e){var t=this;this._treeview=e,e&&((this.isFocused&&!this.filterable&&!this.checkAll||this.touchEnabled)&&e.focus(),Promise.resolve(null).then((function(){return t.treeview.animate=!0})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){var t=v.parseNumber(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,v.getSizeClass("input",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,v.getSizeClass("input",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,v.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,v.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,v.getFillModeClass("input",this.fillMode)),e&&this.renderer.addClass(this.wrapper.nativeElement,v.getFillModeClass("input",e)),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},k,e),this.cdr.detectChanges()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checkableSettings",{get:function(){return this._checkableSettings},set:function(e){this._checkableSettings=Object.assign({},D,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._nodes},set:function(e){this._nodes=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e||[],this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataItems",{get:function(){var e=this;return this._dataItems||this.value.map((function(t,n){return{dataItem:t,index:null,level:e.valueDepth[n]||0}}))},set:function(e){var t=this;this._dataItems=(e||[]).map((function(e,n){return v.hasProps(e,["dataItem","index","level"])?e:{dataItem:e,index:null,level:t.valueDepth[n]||0}})),this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusedTagId",{get:function(){if(!v.isPresent(this.focusedTagIndex)||this.isOpen)return null;var e=this.tags[this.focusedTagIndex];return this.tagPrefix+"-"+v.valueFrom({dataItem:e},this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return v.isPresent(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var e=this.wrapper.nativeElement.offsetWidth,t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var e=this.popupSettings.height;return v.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupContainerClasses",{get:function(){var e=["k-popup-dropdowntree"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodes",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.fetchChildren},set:function(e){this.fetchChildren=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expand",{get:function(){return this.nodeExpand},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collapse",{get:function(){return this.nodeCollapse},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isExpanded",{get:function(){return this.isNodeExpanded},set:function(e){this.isNodeExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVisible",{get:function(){return this.isNodeVisible},set:function(e){this.isNodeVisible=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isTagFocused",{get:function(){return!this.isOpen&&void 0!==this.focusedTagIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isTreeViewActive",{get:function(){return this.treeview&&this.treeview.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isWrapperActive",{get:function(){return document.activeElement===this.wrapper.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFilterActive",{get:function(){return this.filterInput&&document.activeElement===this.filterInput.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCheckAllActive",{get:function(){return this.checkAllInput&&document.activeElement===this.checkAllInput.nativeElement},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.renderer.setAttribute(this.wrapper.nativeElement,"aria-expanded",String(this.isOpen)),this.subscriptions.push(this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.cdr.markForCheck()}))),this.setComponentClasses()},e.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents()},e.prototype.ngOnChanges=function(e){var t=this;s.anyChanged(["textField","valueField","valuePrimitive"],e,!1)&&this.setState(),s.anyChanged(["valueDepth","value","dataItems"],e,!1)&&(!e.value||e.dataItems||this.valuePrimitive?this.dataItems=this.dataItems.map((function(e,n){return i.__assign({},e,{level:t.valueDepth[n]||0})})):this.dataItems=this.value)},e.prototype.ngAfterContentChecked=function(){this.verifySettings()},e.prototype.isEmpty=function(){return!(Boolean(this.placeholder)||v.isPresent(this.value)&&0!==this.value.length)},e.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},e.prototype.blur=function(){this.disabled||this.wrapper.nativeElement.blur()},e.prototype.focusItemAt=function(e){if(this.treeview){var t=this.treeview.itemLookup(e);!v.isPresent(t)||this.treeview.isDisabled(t.item.dataItem,t.item.index)||this.treeview.focus(e)}},e.prototype.reset=function(){this.value=[],this.dataItems=[],this.valueDepth=[]},e.prototype.toggle=function(e){var t=this;Promise.resolve(null).then((function(){var n=v.isPresent(e)?e:!v.isPresent(t.popupRef);t.destroyPopup(),n&&t.createPopup()}))},e.prototype.handleFocus=function(e){var t=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.isFocused||(this.isFocused=!0,s.hasObservers(this.onFocus)&&this._zone.run((function(){t.onFocus.emit()})),this.isOpen&&this.treeview&&(this.lastNodeOnFocus&&this.lastNodeOnFocus.setAttribute("tabindex","0"),this.treeview.focus())))},e.prototype.handleBlur=function(e){var t=this,n=e&&e.relatedTarget;this.wrapper.nativeElement.contains(n)||this.isOpen&&this.popupRef.popupElement.contains(n)||(this.isFocused=!1,this.togglePopup(!1),(s.hasObservers(this.onBlur)||v.isUntouched(this.wrapper.nativeElement))&&this._zone.run((function(){t.onBlur.emit(),t.onTouchedCallback()})))},e.prototype.handleNodeClick=function(e){if(!this.isFocused){var t=e.originalEvent.target.parentElement.parentElement;this.lastNodeOnFocus=t,this.focus()}},e.prototype.togglePopup=function(e){var t=this,n=this.disabled||this.readonly,i=this.isOpen===e;(this._zone.run((function(){t.focusedTagIndex=void 0})),n||i)||(this.triggerPopupEvents(e)?this.removeTreeViewFromTabOrder():e?this.createPopup():this.destroyPopup())},e.prototype.messageFor=function(e){return this.localization.get(e)},e.prototype.handleCheckedItemsChange=function(e){this.valueDepth=e.map((function(e){return e.level})),this.lastAction=e.length>this.dataItems.length?"check":"uncheck",this.dataItems=e.slice(),this.updateValue(this.dataItems)},e.prototype.handleRemoveTag=function(e){var t=this,n=e.tag,i=e.index;if(!this.disabled&&!this.readonly){var r=new g.RemoveTagEvent(n);this.removeTag.emit(r),r.isDefaultPrevented()||(n instanceof Array?(this.dataItems=this.dataItems.filter((function(e,n){return n<t.showAfter||t.disabledIndices.has(n)})),this.valueDepth=this.valueDepth.filter((function(e,n){return n<t.showAfter||t.disabledIndices.has(n)}))):(this.dataItems=this.dataItems.filter((function(e,n){return n!==i||t.disabledIndices.has(n)})),this.valueDepth=this.valueDepth.filter((function(e,n){return n!==i||t.disabledIndices.has(n)}))),this.updateValue(this.dataItems),this.isFocused||this.focus())}},e.prototype.handleTagMapperChange=function(e){this.showAfter=v.parseNumber(e),this.setTags()},e.prototype.clearAll=function(e){var t=this;e.stopImmediatePropagation(),e.preventDefault(),this.focus(),this.value=this.value.filter((function(e,n){return t.disabledIndices.has(n)})),this.dataItems=this.dataItems.filter((function(e,n){return t.disabledIndices.has(n)})),this.valueDepth=this.valueDepth.filter((function(e,n){return t.disabledIndices.has(n)})),this.emitValueChange(this.value)},e.prototype.writeValue=function(e){this.value=e||[],this.valuePrimitive||(this.dataItems=this.value)},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.handleFilterInputChange=function(e){var t=this;this.filterChange.next(e),this.allNodesHidden=this.nodes.every((function(e,n){return!t.isVisible(e,String(n))}))},Object.defineProperty(e.prototype,"filterInputClasses",{get:function(){return(this.size?v.getSizeClass("input",this.size):"")+" "+(this.fillMode?"k-input-"+this.fillMode:"")+" "+(this.rounded?v.getRoundedClass(this.rounded):"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checkAllCheckboxClasses",{get:function(){return""+(this.size?v.getSizeClass("checkbox",this.size):"")},enumerable:!0,configurable:!0}),e.prototype.toggleCheckAll=function(){this.checkAllInput.nativeElement.focus(),this.checkAllInput.nativeElement.click()},e.prototype.verifySettings=function(){if(r.isDevMode()){if(!v.isPresent(this.valueField)||!v.isPresent(this.textField))throw new Error(b.MultiSelectTreeMessages.textAndValue);if(!v.isArray(this.value))throw new Error(b.MultiSelectTreeMessages.array);if(this.value.length>0){if(this.valuePrimitive&&this.value.some((function(e){return v.isObject(e)})))throw new Error(b.MultiSelectTreeMessages.primitive);var e=this.dataItems.every((function(e){return v.isObject(e.dataItem)}));if(this.valuePrimitive&&!v.isArray(this.dataItems))throw new Error(b.MultiSelectTreeMessages.dataItems);if(this.valuePrimitive&&!e)throw new Error(b.MultiSelectTreeMessages.dataItems);if(this.valuePrimitive&&this.dataItems.length!==this.value.length)throw new Error(b.MultiSelectTreeMessages.dataItemsLength);if(!this.valuePrimitive&&!v.isObjectArray(this.value))throw new Error(b.MultiSelectTreeMessages.object);if((v.isArray(this.valueField)||v.isArray(this.textField))&&!v.isArray(this.valueDepth))throw new Error(b.MultiSelectTreeMessages.valueDepth);if((v.isArray(this.valueField)||v.isArray(this.textField))&&0===this.valueDepth.length)throw new Error(b.MultiSelectTreeMessages.valueDepth);if((v.isArray(this.valueField)||v.isArray(this.textField))&&this.valueDepth.length!==this.value.length)throw new Error(b.MultiSelectTreeMessages.valueDepthLength)}}},e.prototype.emitValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},e.prototype.triggerPopupEvents=function(e){var t=new f.PreventableEvent;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()},e.prototype.createPopup=function(){var e=this,t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,appendTo:this.appendTo,anchorAlign:n,content:this.popupTemplate,popupAlign:i,positionMode:"absolute",popupClass:this.popupContainerClasses});var r=this.popupRef.popupElement,o=this.width,s=o.min,a=o.max;r.style.minWidth=s,r.style.width=a,r.style.height=this.height,this.renderer.setAttribute(r,"dir",this.direction),this.renderer.setAttribute(this.wrapper.nativeElement,"aria-expanded","true"),this.popupRef.popupOpen.subscribe((function(){e.cdr.detectChanges(),e.opened.emit()})),this.popupRef.popupClose.subscribe((function(){e.closed.emit()}))},e.prototype.destroyPopup=function(){var e=this;this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.renderer.setAttribute(this.wrapper.nativeElement,"aria-expanded","false"),""!==this.filter&&(this.filter="",this.allNodesHidden=!1,s.hasObservers(this.filterChange)&&this._zone.run((function(){e.filterChange.emit("")}))))},e.prototype.subscribeEvents=function(){var e=this;this.subscriptions.push(this.navigationService.open.subscribe((function(){return e.togglePopup(!0)})),this.navigationService.enter.pipe(E.tap((function(e){return e.originalEvent.preventDefault()}))).subscribe((function(){return e.togglePopup(!0)})),T.merge(this.navigationService.close,this.navigationService.esc).subscribe((function(){e.focus(),e.togglePopup(!1)})),this.navigationService.tab.subscribe(this.handleTabKey.bind(this)),this.navigationService.up.subscribe(this.handleUpKey.bind(this)),this.navigationService.down.subscribe(this.handleDownKey.bind(this)),this.navigationService.left.pipe(E.filter((function(){return!e.isTreeViewActive}))).subscribe("rtl"===this.direction?this.handleRightKey.bind(this):this.handleLeftKey.bind(this)),this.navigationService.right.pipe(E.filter((function(){return!e.isTreeViewActive}))).subscribe("rtl"===this.direction?this.handleLeftKey.bind(this):this.handleRightKey.bind(this)),this.navigationService.home.pipe(E.filter((function(){return!e.isOpen}))).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(E.filter((function(){return!e.isOpen}))).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(E.filter((function(){return e.isTagFocused}))).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(E.filter((function(){return e.isTagFocused}))).subscribe(this.handleDelete.bind(this)))},e.prototype.subscribeFocusEvents=function(){var e=this;s.isDocumentAvailable()&&(this.handleFocus=this.handleFocus.bind(this),this.handleDocumentBlur=this.handleDocumentBlur.bind(this),this._zone.runOutsideAngular((function(){document.addEventListener("focus",e.handleFocus,!0),document.addEventListener("blur",e.handleDocumentBlur,!0)})))},e.prototype.unSubscribeFocusEvents=function(){if(s.isDocumentAvailable()){document.removeEventListener("focus",this.handleFocus,!0),document.removeEventListener("blur",this.handleDocumentBlur,!0)}},e.prototype.handleDocumentBlur=function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.handleBlur(e))},e.prototype.handleTabKey=function(){this.focus(),this.isOpen&&(this.treeview.blur(),this.removeTreeViewFromTabOrder())},e.prototype.handleUpKey=function(e){if(this.treeview&&(e.originalEvent.preventDefault(),!this.isWrapperActive)){var t="0"===this.treeview.navigationService.activeIndex;this.filterable&&this.isFilterActive?this.focus():this.checkAll&&!this.isCheckAllActive&&t?this.checkAllInput.nativeElement.focus():(this.isCheckAllActive||t)&&(this.filterable?this.filterInput.nativeElement.focus():this.focus())}},e.prototype.handleDownKey=function(e){this.treeview&&(e.originalEvent.preventDefault(),this.filterable&&this.isWrapperActive?this.filterInput.nativeElement.focus():this.checkAll&&(this.isWrapperActive||this.isFilterActive)?this.checkAllInput.nativeElement.focus():this.treeview.isActive||this.treeview.focus(),this.focusedTagIndex=void 0)},e.prototype.handleRightKey=function(e){e.originalEvent.preventDefault();var t=this.tags.length-1;this.focusedTagIndex===t?this.focusedTagIndex=void 0:this.focusedTagIndex<t?this.focusedTagIndex++:this.focusedTagIndex||(this.focusedTagIndex=0)},e.prototype.handleLeftKey=function(e){e.originalEvent.preventDefault(),void 0===this.focusedTagIndex||this.focusedTagIndex<0?this.focusedTagIndex=this.tags.length-1:0!==this.focusedTagIndex&&this.focusedTagIndex--},e.prototype.handleEnd=function(e){e.originalEvent.preventDefault(),this.focusedTagIndex=this.tags.length-1},e.prototype.handleHome=function(e){e.originalEvent.preventDefault(),this.focusedTagIndex=0},e.prototype.handleBackspace=function(){if(void 0!==this.focusedTagIndex)this.handleDelete();else{var e=this.tags[this.tags.length-1],t=this.tags.length-1;this.handleRemoveTag({tag:e,index:t})}},e.prototype.handleDelete=function(){var e=this.tags[this.focusedTagIndex],t=this.focusedTagIndex;this.handleRemoveTag({tag:e,index:t}),this.focusedTagIndex===this.tags.length&&(this.focusedTagIndex=void 0)},e.prototype.unsubscribeEvents=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.unSubscribeFocusEvents()},e.prototype.removeTreeViewFromTabOrder=function(){var e=this;this.treeview.element.nativeElement.querySelectorAll("li").forEach((function(t){"0"===t.getAttribute("tabindex")&&(e.lastNodeOnFocus=t,e.lastNodeOnFocus.setAttribute("tabindex","-1"))}))},e.prototype.setState=function(){v.isPresent(this.dataItems)&&v.isPresent(this.valueField)&&(this.setTags(),this.checkedItems=this.dataItems.slice()),this.cdr.markForCheck()},e.prototype.setTags=function(){var e=this.dataItems.map((function(e){return e.dataItem}));this.tags=this.tagMapper(e),this.disabledIndices=this.disabledItemsMapper()},e.prototype.updateValue=function(e){var t=this,n=this.valuePrimitive?e.map((function(e){return v.valueFrom(e,t.valueField)})):e.map((function(e){return e.dataItem}));this.value=n,this.emitValueChange(this.value)},e.prototype.disabledItemsMapper=function(){var e=this;return new Set(this.dataItems.reduce((function(t,n,i){return e.itemDisabled(n.dataItem,n.index)&&t.push(i),t}),[]))},e.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,v.getSizeClass("input",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,v.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,v.getFillModeClass("input",this.fillMode))},i.__decorate([r.HostBinding("class.k-dropdowntree"),r.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([r.HostBinding("class.k-disabled"),r.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"isDisabled",null),i.__decorate([r.HostBinding("class.k-loading"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"isLoading",null),i.__decorate([r.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"id",null),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([r.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"hostTabIndex",null),i.__decorate([r.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([r.HostBinding("attr.aria-expanded"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"isAriaExpanded",null),i.__decorate([r.HostBinding("attr.aria-haspopup"),i.__metadata("design:type",String)],e.prototype,"ariaHasPopup",void 0),i.__decorate([r.HostBinding("attr.readonly"),r.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"isReadonly",null),i.__decorate([r.HostBinding("attr.aria-describedby"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"ariaDescribedBy",null),i.__decorate([r.HostBinding("attr.aria-activedescendant"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"ariaActiveDescendant",null),i.__decorate([r.HostListener("click"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"handleClick",null),i.__decorate([r.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"handleKeydown",null),i.__decorate([r.ContentChild(y.HeaderTemplateDirective,{static:!1}),i.__metadata("design:type",y.HeaderTemplateDirective)],e.prototype,"headerTemplate",void 0),i.__decorate([r.ContentChild(_.FooterTemplateDirective,{static:!1}),i.__metadata("design:type",_.FooterTemplateDirective)],e.prototype,"footerTemplate",void 0),i.__decorate([r.ContentChild(x.NodeTemplateDirective,{static:!1}),i.__metadata("design:type",x.NodeTemplateDirective)],e.prototype,"nodeTemplate",void 0),i.__decorate([r.ContentChild(w.NoDataTemplateDirective,{static:!1}),i.__metadata("design:type",w.NoDataTemplateDirective)],e.prototype,"noDataTemplate",void 0),i.__decorate([r.ContentChild(S.TagTemplateDirective,{static:!1}),i.__metadata("design:type",S.TagTemplateDirective)],e.prototype,"tagTemplate",void 0),i.__decorate([r.ContentChild(C.GroupTagTemplateDirective,{static:!1}),i.__metadata("design:type",C.GroupTagTemplateDirective)],e.prototype,"groupTagTemplate",void 0),i.__decorate([r.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",r.TemplateRef)],e.prototype,"popupTemplate",void 0),i.__decorate([r.ViewChild("container",{read:r.ViewContainerRef,static:!0}),i.__metadata("design:type",r.ViewContainerRef)],e.prototype,"container",void 0),i.__decorate([r.ViewChild("treeview",{static:!1}),i.__metadata("design:type",l.TreeViewComponent),i.__metadata("design:paramtypes",[l.TreeViewComponent])],e.prototype,"treeview",null),i.__decorate([r.ViewChild("filterInput",{static:!1}),i.__metadata("design:type",r.ElementRef)],e.prototype,"filterInput",void 0),i.__decorate([r.ViewChild("checkAllInput",{static:!1}),i.__metadata("design:type",r.ElementRef)],e.prototype,"checkAllInput",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabindex",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"checkableSettings",null),i.__decorate([r.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),i.__decorate([r.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"value",null),i.__decorate([r.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"dataItems",null),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"textField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"valueField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"valueDepth",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"loading",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"listHeight",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"valuePrimitive",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"checkAll",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"hasChildren",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"fetchChildren",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"isNodeExpanded",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"isNodeVisible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"itemDisabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"tagMapper",void 0),i.__decorate([r.Output("focus"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"open",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"opened",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"close",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"closed",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"nodeExpand",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"nodeCollapse",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"removeTag",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"filterChange",void 0),e=t=i.__decorate([r.Component({exportAs:"kendoMultiSelectTree",providers:[a.LocalizationService,u.NavigationService,p.DataService,d.DisabledItemsService,h.SelectionService,{provide:a.L10N_PREFIX,useValue:"kendo.multiselecttree"},{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return t}))},{provide:l.DataBoundComponent,useExisting:r.forwardRef((function(){return t}))},{provide:l.ExpandableComponent,useExisting:r.forwardRef((function(){return t}))},{provide:s.KendoInput,useExisting:r.forwardRef((function(){return t}))}],selector:"kendo-multiselecttree",template:'\n <ng-container kendoMultiSelectTreeLocalizedMessages\n i18n-noDataText="kendo.multiselecttree.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.multiselecttree.clearTitle|The title of the clear button"\n clearTitle="clear"\n\n i18n-checkAllText="kendo.multiselecttree.checkAllText|The text displayed for the check-all checkbox"\n checkAllText="Check all"\n >\n </ng-container>\n <kendo-taglist\n [size]="size"\n [rounded]="rounded"\n [fillMode]="fillMode"\n [id]="tagListId"\n [tags]="tags"\n [focused]="focusedTagIndex"\n [textField]="textField"\n [valueField]="valueField"\n [valueDepth]="valueDepth"\n [disabled]="disabled"\n [tagPrefix]="tagPrefix"\n [template]="tagTemplate"\n [groupTemplate]="groupTagTemplate"\n [disabledIndices]="disabledIndices"\n (removeTag)="handleRemoveTag($event)"\n >\n <span *ngIf="!tags || !tags.length"\n class="k-input-inner k-readonly"\n >\n <span class="k-input-value-text">{{ placeholder }}</span>\n </span>\n </kendo-taglist>\n <span\n *ngIf="!disabled && !loading && !readonly && clearButton && tags?.length"\n class="k-clear-value"\n [attr.title]="messageFor(\'clearTitle\')"\n role="button"\n tabindex="-1"\n (click)="clearAll($event)"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <span\n *ngIf="loading"\n class="k-icon k-i-loading"\n >\n </span>\n <ng-template #popupTemplate>\n <span\n *ngIf="filterable"\n class="k-list-filter"\n >\n <span\n class="k-textbox k-input"\n [ngClass]="filterInputClasses"\n >\n <span class="k-input-prefix">\n <span class="k-input-icon k-icon k-i-search"></span>\n </span>\n <input\n #filterInput\n (input)="handleFilterInputChange($event.target.value)"\n [filterInput]="filterable && !touchEnabled"\n (keydown)="handleKeydown($event)"\n [(ngModel)]="filter"\n class="k-input-inner"\n role="textbox"\n aria-haspopup="true"\n aria-expanded="false"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n </span>\n </span>\n \x3c!--header template--\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }">\n </ng-template>\n <div *ngIf="checkAll" class="k-check-all">\n <input\n #checkAllInput\n [checkAll]="!filterable && !touchEnabled"\n type="checkbox"\n class="k-checkbox"\n [ngClass]="checkAllCheckboxClasses"\n role="checkbox"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [treeview]="treeview"\n [checkedItems]="checkedItems"\n [valueField]="valueField"\n [lastAction]="lastAction"\n (checkedItemsChange)="handleCheckedItemsChange($event)"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n <span\n class="k-checkbox-label"\n (click)="toggleCheckAll()"\n (mousedown)="$event.preventDefault()"\n >\n {{ messageFor(\'checkAllText\') }}\n </span>\n </div>\n <kendo-treeview\n #treeview\n [size]="size"\n [nodes]="data"\n [style.maxHeight.px]="listHeight"\n [animate]="false"\n kendoMultiSelectTreeCheckable\n [checkable]="checkableSettings"\n [checkedItems]="checkedItems"\n [valueField]="valueField"\n [textField]="textField"\n [children]="children"\n [hasChildren]="hasChildren"\n [isExpanded]="isNodeExpanded"\n [isDisabled]="itemDisabled"\n [nodeTemplate]="nodeTemplate"\n [loadOnDemand]="loadOnDemand"\n [filter]="filter"\n [isVisible]="isNodeVisible"\n (keydown)="handleKeydown($event)"\n (nodeClick)="handleNodeClick($event)"\n (expand)="nodeExpand.emit($event)"\n (collapse)="nodeCollapse.emit($event)"\n (checkedItemsChange)="handleCheckedItemsChange($event)"\n [kendoEventsOutsideAngular]="{\n focusout: handleBlur\n }"\n [scope]="this"\n >\n </kendo-treeview>\n \x3c!--footer template--\x3e\n <ng-template\n *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate?.templateRef\n }">\n </ng-template>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data?.length === 0 || allNodesHidden">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n </ng-template>\n <ng-container #container></ng-container>\n '}),i.__param(7,r.Optional()),i.__param(7,r.Inject(I.TOUCH_ENABLED)),i.__metadata("design:paramtypes",[r.ElementRef,c.PopupService,r.Renderer2,u.NavigationService,r.NgZone,a.LocalizationService,r.ChangeDetectorRef,Boolean])],e)}();t.MultiSelectTreeComponent=j},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(3),s=n(11),a=n(30),u=n(31),c=n(32),l=n(16),p=n(12),d=n(13),h=n(17),f=n(18),m=n(5),v=n(19),g=n(7),b=n(14),y=n(2),_=n(23),x=n(20),w=n(15),S=n(4),C=n(9),I=n(24),T=n(8),E=n(25),k=n(33),D=n(10);t.AUTOCOMPLETE_VALUE_ACCESSOR={multi:!0,provide:s.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return O}))};var O=function(){function e(e,t,n,i,o,s,c,l,p,d,h){this.localization=e,this.dataService=t,this.popupService=n,this.selectionService=i,this.navigationService=o,this.disabledItemsService=s,this._zone=c,this.cdr=l,this.renderer=p,this.hostElement=d,this.touchEnabled=h,this.highlightFirst=!0,this.focusableId="k-"+y.guid(),this.placeholder="",this.listHeight=200,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new r.EventEmitter,this.filterChange=new r.EventEmitter,this.open=new r.EventEmitter,this.opened=new r.EventEmitter,this.close=new r.EventEmitter,this.closed=new r.EventEmitter,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.widgetClasses=!0,this.listBoxId=y.guid(),this.optionPrefix=y.guid(),this.onChangeCallback=y.noop,this.onTouchedCallback=y.noop,this.popupMouseDownHandler=function(e){return e.preventDefault()},this._popupSettings={animate:!0},this._open=!1,this._value="",this.valueChangeSubject=new b.Subject,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",a.validatePackage(u.packageMetadata),this.direction=e.rtl?"rtl":"ltr",this.wrapper=this.hostElement.nativeElement,this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.selectionService.resetSelection([-1])}var n;return n=e,Object.defineProperty(e.prototype,"width",{get:function(){var e=0;o.isDocumentAvailable()&&(e=this.wrapper.offsetWidth);var t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var e=this.popupSettings.height;return y.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"listContainerClasses",{get:function(){var e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"suggestion",{get:function(){if(this.text&&this.suggestedText){var e=this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase());return this.suggest&&!this.backspacePressed&&e?this.suggestedText:void 0}this.suggestedText=void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),e.prototype.toggle=function(e){var t=this;Promise.resolve(null).then((function(){var n=y.isPresent(e)?e:!t._open;t._toggle(n)}))},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),e.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||(this.triggerPopupEvents(e)||this._toggle(e))},Object.defineProperty(e.prototype,"activeDescendant",{get:function(){if(!this.isOpen||!y.isPresent(this.selectionService.focused)||-1===this.selectionService.focused)return null;var e=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+y.getter(e,this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noDataLabel",{get:function(){if(0===this.data.length)return this.messageFor("noDataText")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){var e=this.virtual;if(e){var t=e.skip||0,n=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,n)}return this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.filterable&&(this.selectionService.focused=this.isOpen&&this.data.length&&this.highlightFirst?this.firstFocusableIndex(0):-1),this.suggest&&this.dataService.itemsCount>0&&(this.suggestedText=y.getter(this.dataService.itemAt(0),this.valueField))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value||""},set:function(e){this.verifySettings(e),this._value=e||"",this.text=this.value,this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemDisabled",{set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received "+JSON.stringify(e)+".");this.disabledItemsService.itemDisabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=k.normalizeVirtualizationSettings(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper,y.getSizeClass("input",this.size)),e&&this.renderer.addClass(this.wrapper,y.getSizeClass("input",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper,y.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper,y.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper,y.getFillModeClass("input",this.fillMode)),e&&this.renderer.addClass(this.wrapper,y.getFillModeClass("input",e)),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper,"k-focus"),this._isFocused=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.renderer.removeAttribute(this.wrapper,"tabindex"),this.localizationChangeSubscription=this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.cdr.detectChanges()})),this.setComponentClasses()},e.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},e.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize})},e.prototype.reset=function(){this.value=""},e.prototype.messageFor=function(e){return this.localization.get(e)},e.prototype.clearValue=function(e){e.stopImmediatePropagation(),this.focus(),this.change(""),this.filterable&&this.filterChange.emit(""),this.selectionService.resetSelection([])},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.focusItemAt=function(e){var t=e>=0&&e<this.data.length;y.isPresent(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(-1)},e.prototype.focus=function(){this.disabled||this.searchbar.focus()},e.prototype.blur=function(){this.disabled||this.searchbar.blur()},e.prototype.onResize=function(){if(this._open){var e=this.popupRef.popupElement,t=this.width,n=t.min,i=t.max;e.style.minWidth=n,e.style.width=i}},e.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},e.prototype.verifySettings=function(e){if(r.isDevMode()&&y.isPresent(e)&&"string"!=typeof e)throw new Error("Expected value of type string. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/autocomplete/value-binding/")},e.prototype.search=function(e,t){var n;void 0===t&&(t=0),n=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),t):-1,this.disabledItemsService.isIndexDisabled(n)?n+1<this.dataService.itemsCount?this.search(e,n+1):this.selectionService.focus(-1):(this.selectionService.focus(n),this.suggest&&(this.suggestedText=y.getter(this.dataService.itemAt(n),this.valueField)))},e.prototype.navigate=function(e){this.isOpen&&this.selectionService.focus(e)},e.prototype.handleNavigate=function(e){var t=isNaN(this.selectionService.focused)?this.firstFocusableIndex(0):this.selectionService.focused;if(!(this.disabled||this.readonly||isNaN(t))){var n=this.navigationService.process({current:t,max:this.dataService.itemsCount-1,min:0,originalEvent:e});n!==_.NavigationAction.Undefined&&n!==_.NavigationAction.Backspace&&n!==_.NavigationAction.Delete&&n!==_.NavigationAction.Home&&n!==_.NavigationAction.End&&n!==_.NavigationAction.Left&&n!==_.NavigationAction.Right&&(n===_.NavigationAction.Enter&&this.isOpen||n!==_.NavigationAction.Enter)&&e.preventDefault()}},e.prototype.handleEnter=function(e){var t,n=this.selectionService.focused;if(this.isOpen&&e.originalEvent.preventDefault(),n>=0)t=y.getter(this.dataService.itemAt(n),this.valueField);else{var i=this.suggest&&this.suggestedText&&this.data.length&&y.getter(this.dataService.itemAt(0),this.valueField).toLowerCase()===this.searchbar.value.toLowerCase();t=this.isOpen&&i?this.suggestedText:this.searchbar.value}this.change(t)},e.prototype.handleEscape=function(){this.togglePopup(!1),this.selectionService.focused=-1,this.suggestedText=null},e.prototype.searchBarChange=function(e){var t=y.isPresent(this.text)?this.text.length:0;this.backspacePressed=e.length<t,this.text=e,this.togglePopup(e.length>0),this.highlightFirst||(this.selectionService.focused=-1),this.filterable?this.filterChange.emit(e):this.highlightFirst&&this.search(e)},e.prototype.handleFocus=function(){var e=this;this.isFocused=!0,o.hasObservers(this.onFocus)&&this._zone.run((function(){e.onFocus.emit()}))},e.prototype.handleBlur=function(){var e,t,n=this,i=this.filterable?this.selectionService.focused:-1;this.searchbar.input.nativeElement.scrollLeft=0,-1!==i?(e=this.dataService.itemAt(i),t=y.getter(e,this.valueField)||""):t=this.searchbar.value;var r=t===this.searchbar.value,s=t.toLowerCase()===this.searchbar.value.toLowerCase();!r&&s&&this.selectionService.resetSelection([]),this.isFocused=!1;var a=this.value!==this.text;o.hasObservers(this.onBlur)||o.hasObservers(this.close)||y.isUntouched(this.wrapper)||a?this._zone.run((function(){a&&n.change(n.searchbar.value),n.onBlur.emit(),n.onTouchedCallback(),n.togglePopup(!1)})):this.togglePopup(!1)},e.prototype.pageChange=function(e){this.virtual.skip=e.skip},e.prototype.change=function(e){this.togglePopup(!1),this.valueChangeSubject.next(e)},e.prototype.subscribeEvents=function(){var e=this;o.isDocumentAvailable()&&(this.valueChangeSubscription=this.valueChangeSubject.subscribe((function(t){var n=e.value!==t;e.value=t,e.text=t,n&&e.emitChange(t)})),this.changeSubscription=this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.focusSubscription=this.selectionService.onFocus.subscribe(this.handleItemFocus.bind(this)),this.navigationSubscription=b.merge(this.navigationService.up,this.navigationService.down).subscribe((function(t){return e.navigate(t.index)})),this.closeSubscription=this.navigationService.close.subscribe((function(){return e.togglePopup(!1)})),this.enterSubscription=this.navigationService.enter.subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleEscape.bind(this)))},e.prototype.subscribeTouchEvents=function(){var e=this;o.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular((function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",(function(t){var n=t.target;e.isFocused&&!y.inDropDown(e.hostElement,n,e.popupRef)&&e._zone.run((function(){return e.blur()}))}))}))},e.prototype.unsubscribeEvents=function(){o.isDocumentAvailable()&&(this.changeSubscription.unsubscribe(),this.navigationSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.valueChangeSubscription.unsubscribe(),this.focusSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())},e.prototype.handleItemChange=function(e){var t=e.indices.length?e.indices[0]:void 0;if(this.selectionService.resetSelection([-1]),y.isPresent(t)){var n=y.getter(this.dataService.itemAt(t),this.valueField);this.change(n)}},e.prototype.handleItemFocus=function(e){var t=this.selectionService.focused;Boolean(this.suggest&&this.data&&this.data.length&&t>=0)&&(this.suggestedText=y.getter(this.dataService.itemAt(t),this.valueField))},e.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",popupAlign:i,anchorAlign:n});var r=this.popupRef.popupElement,o=this.width,s=o.min,a=o.max;r.addEventListener("mousedown",this.popupMouseDownHandler),r.style.minWidth=s,r.style.width=a,r.style.height=this.height,r.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe((function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()})),this.popupRef.popupClose.subscribe((function(){e.closed.emit()})),this.popupRef.popupAnchorViewportLeave.subscribe((function(){return e.togglePopup(!1)}))},e.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},e.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},e.prototype.triggerPopupEvents=function(e){var t=new w.PreventableEvent;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()},e.prototype.firstFocusableIndex=function(e){var t=this.data.length-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},e.prototype.findIndexPredicate=function(e){var t=this;return this.dataService.grouped?function(n){var i=y.getter(n.value,t.valueField);return(i=y.isPresent(i)?i.toString().toLowerCase():"").startsWith(e.toLowerCase())}:function(n){var i=y.getter(n,t.valueField);return(i=y.isPresent(i)?i.toString().toLowerCase():"").startsWith(e.toLowerCase())}},e.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper,y.getSizeClass("input",this.size)),this.rounded&&this.renderer.addClass(this.wrapper,y.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper,y.getFillModeClass("input",this.fillMode))},i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"highlightFirst",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"data",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"value",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"valueField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"listHeight",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"loading",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"suggest",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"itemDisabled",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([r.Input("tabIndex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"virtual",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"filterChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"open",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"opened",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"close",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"closed",void 0),i.__decorate([r.Output("focus"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([r.ContentChild(l.ItemTemplateDirective,{static:!1}),i.__metadata("design:type",l.ItemTemplateDirective)],e.prototype,"template",void 0),i.__decorate([r.ContentChild(p.HeaderTemplateDirective,{static:!1}),i.__metadata("design:type",p.HeaderTemplateDirective)],e.prototype,"headerTemplate",void 0),i.__decorate([r.ContentChild(d.FooterTemplateDirective,{static:!1}),i.__metadata("design:type",d.FooterTemplateDirective)],e.prototype,"footerTemplate",void 0),i.__decorate([r.ContentChild(x.NoDataTemplateDirective,{static:!1}),i.__metadata("design:type",x.NoDataTemplateDirective)],e.prototype,"noDataTemplate",void 0),i.__decorate([r.ContentChild(h.GroupTemplateDirective,{static:!1}),i.__metadata("design:type",h.GroupTemplateDirective)],e.prototype,"groupTemplate",void 0),i.__decorate([r.ContentChild(f.FixedGroupTemplateDirective,{static:!1}),i.__metadata("design:type",f.FixedGroupTemplateDirective)],e.prototype,"fixedGroupTemplate",void 0),i.__decorate([r.ViewChild("container",{read:r.ViewContainerRef,static:!0}),i.__metadata("design:type",r.ViewContainerRef)],e.prototype,"container",void 0),i.__decorate([r.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",r.TemplateRef)],e.prototype,"popupTemplate",void 0),i.__decorate([r.ViewChild(c.SearchBarComponent,{static:!0}),i.__metadata("design:type",c.SearchBarComponent)],e.prototype,"searchbar",void 0),i.__decorate([r.ViewChild("optionsList",{static:!1}),i.__metadata("design:type",E.ListComponent)],e.prototype,"optionsList",void 0),i.__decorate([r.HostBinding("class.k-autocomplete"),r.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],e.prototype,"widgetClasses",void 0),i.__decorate([r.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"isDisabled",null),i.__decorate([r.HostBinding("class.k-loading"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"isLoading",null),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[])],e.prototype,"dir",null),e=n=i.__decorate([r.Component({exportAs:"kendoAutoComplete",providers:[t.AUTOCOMPLETE_VALUE_ACCESSOR,T.DataService,m.SelectionService,v.NavigationService,g.DisabledItemsService,S.LocalizationService,{provide:S.L10N_PREFIX,useValue:"kendo.autocomplete"},{provide:I.FilterableComponent,useExisting:r.forwardRef((function(){return n}))},{provide:o.KendoInput,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-autocomplete",template:'\n <ng-container kendoAutoCompleteLocalizedMessages\n i18n-noDataText="kendo.autocomplete.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.autocomplete.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <kendo-searchbar #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [suggestedText]="suggestion"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n ></kendo-searchbar>\n <span\n *ngIf="!loading && !readonly && (clearButton && text?.length)"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n [attr.title]="messageFor(\'clearTitle\')"\n role="button"\n tabindex="-1"\n (click)="clearValue($event)"\n (mousedown)="$event.preventDefault()"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <span *ngIf="loading" class="k-icon k-i-loading"></span>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [size]="size"\n [rounded]="rounded"\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="valueField"\n [valueField]="valueField"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),i.__param(10,r.Optional()),i.__param(10,r.Inject(D.TOUCH_ENABLED)),i.__metadata("design:paramtypes",[S.LocalizationService,T.DataService,C.PopupService,m.SelectionService,v.NavigationService,g.DisabledItemsService,r.NgZone,r.ChangeDetectorRef,r.Renderer2,r.ElementRef,Boolean])],e)}();t.AutoCompleteComponent=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.element=e}return e=i.__decorate([r.Directive({selector:'"li[role=option], li[role=group]"'}),i.__metadata("design:paramtypes",[r.ElementRef])],e)}();t.ListItemDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(11),s=n(30),a=n(31),u=n(14),c=n(22),l=n(3),p=n(3),d=n(2),h=n(5),f=n(19),m=n(16),v=n(17),g=n(18),b=n(34),y=n(12),_=n(13),x=n(20),w=n(23),S=n(15),C=n(4),I=n(9),T=n(10),E=n(26),k=n(7),D=n(8),O=n(24),P=n(25),F=n(33);t.DROPDOWNLIST_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return A}))};var A=function(){function e(e,t,n,i,o,c,l,p,h,f,m){this.wrapper=e,this.localization=t,this.popupService=n,this.selectionService=i,this.navigationService=o,this.disabledItemsService=c,this.dataService=l,this._zone=p,this.renderer=h,this.cdr=f,this.touchEnabled=m,this.listHeight=200,this.disabled=!1,this.readonly=!1,this.filterable=!1,this.ignoreCase=!0,this.delay=500,this.tabindex=0,this.valueChange=new r.EventEmitter,this.filterChange=new r.EventEmitter,this.selectionChange=new r.EventEmitter,this.open=new r.EventEmitter,this.opened=new r.EventEmitter,this.close=new r.EventEmitter,this.closed=new r.EventEmitter,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.hostClasses=!0,this.focusableId="k-"+d.guid(),this.role="listbox",this.groupIndices=[],this.listBoxId=d.guid(),this.optionPrefix=d.guid(),this.filterText="",this._isFocused=!1,this.onTouchedCallback=function(e){},this.onChangeCallback=function(e){},this.word="",this.last="",this.filterFocused=new r.EventEmitter,this.filterBlurred=new r.EventEmitter,this.hostElementFocused=new r.EventEmitter,this.hostElementBlurred=new r.EventEmitter,this.selectionSubscription=new u.Subscription,this._open=!1,this._popupSettings={animate:!0},this._size="medium",this._rounded="medium",this._fillMode="solid",s.validatePackage(a.packageMetadata),this.direction=t.rtl?"rtl":"ltr",this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.subscribeFocusEvents(),this.popupMouseDownHandler=this.onMouseDown.bind(this)}var n;return n=e,Object.defineProperty(e.prototype,"width",{get:function(){var e=l.isDocumentAvailable()?this.wrapper.nativeElement.offsetWidth:0,t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var e=this.popupSettings.height;return d.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetTabIndex",{get:function(){if(!this.disabled){var e=Number(this.tabIndex);return isNaN(e)?0:e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaOwns",{get:function(){if(this.isOpen)return this.listBoxId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaActivedescendant",{get:function(){if(d.isPresent(this.dataItem)&&this.isOpen)return this.optionPrefix+"-"+d.getter(this.dataItem,this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noDataLabel",{get:function(){if(0===this.dataService.itemsCount)return this.messageFor("noDataText")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){var e=this.virtual;if(e){var t=e.skip||0,n=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,n)}return this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){d.isPresent(e)||(this._previousDataItem=void 0),this._value=e,this.setState(),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemDisabled",{set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received "+JSON.stringify(e)+".");this.disabledItemsService.itemDisabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=F.normalizeVirtualizationSettings(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valuePrimitive",{get:function(){return d.isPresent(this._valuePrimitive)?this._valuePrimitive:!d.isPresent(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,d.getSizeClass("picker",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,d.getSizeClass("picker",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,d.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,d.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,d.getFillModeClass("picker",this.fillMode)),e&&this.renderer.addClass(this.wrapper.nativeElement,d.getFillModeClass("picker",e)),this._fillMode=e},enumerable:!0,configurable:!0}),e.prototype.blurComponent=function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.hostElementBlurred.emit())},e.prototype.blurFilterInput=function(){this.filterBlurred.emit()},e.prototype.focusComponent=function(e){var t=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.hostElementFocused.emit(),this.isFocused||(this.isFocused=!0,l.hasObservers(this.onFocus)&&this._zone.run((function(){t.onFocus.emit()}))))},e.prototype.onResize=function(){if(this._open){var e=this.popupRef.popupElement,t=this.width,n=t.min,i=t.max;e.style.minWidth=n,e.style.width=i}},Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabIndex",{get:function(){return this.widgetTabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAriaExpanded",{get:function(){return this.ariaExpanded},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostAriaOwns",{get:function(){return this.ariaOwns},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostAriaActivedescendant",{get:function(){return this.ariaActivedescendant},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostNoDataLabel",{get:function(){return this.noDataLabel},enumerable:!0,configurable:!0}),e.prototype.keydown=function(e){var t=d.isPresent(this.defaultItem)?-1:0,n=isNaN(this.selectionService.focused)?this.firstFocusableIndex(t):this.selectionService.focused,i=0;if(!this.disabled&&!this.readonly){var r=e.keyCode===p.Keys.Home||e.keyCode===p.Keys.End;if(!(this.filterable&&this.isFocused&&this.isOpen)||!r){var o=d.isPresent(this.selectionService.selected[0]),s=d.isPresent(this.selectionService.focused)&&!this.selectionService.isSelected(this.selectionService.focused);o&&!s||(e.keyCode===p.Keys.ArrowDown||e.keyCode===p.Keys.ArrowRight?i=-1:e.keyCode!==p.Keys.ArrowUp&&e.keyCode!==p.Keys.ArrowLeft||(i=1));var a=e,u=this.navigationService.process({current:n+i,max:this.dataService.itemsCount-1,min:this.defaultItem?-1:0,originalEvent:a}),c=u===w.NavigationAction.Left||u===w.NavigationAction.Right;u===w.NavigationAction.Undefined||u===w.NavigationAction.Tab||u===w.NavigationAction.Backspace||u===w.NavigationAction.Delete||c&&this.filterable||u===w.NavigationAction.Enter||a.preventDefault()}}},e.prototype.keypress=function(e){this.disabled||this.readonly||this.filterable||this.onKeyPress(e)},e.prototype.click=function(e){e.preventDefault(),this.focus(),this.togglePopup(!this.isOpen)},Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.localizationChangesSubscription=this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.cdr.detectChanges()})),this.assignAriaDescribedBy(),this.setComponentClasses()},e.prototype.isEmpty=function(){var e=this.value;return!(0===e||!1===e||e||this.defaultItem)},e.prototype.onFilterFocus=function(){this.filterFocused.emit()},e.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents(),this.localizationChangesSubscription&&this.localizationChangesSubscription.unsubscribe()},e.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),l.isChanged("defaultItem",e,!1)&&(this.disabledItemsService.defaultItem=this.defaultItem),l.anyChanged(["textField","valueField","valuePrimitive","defaultItem","itemDisabled"],e,!1)&&this.setState()},e.prototype.ngAfterContentChecked=function(){this.verifySettings()},e.prototype.focusItemAt=function(e){var t=(d.isPresent(this.defaultItem)?-1:0)<=e&&e<this.data.length;d.isPresent(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(null)},e.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},e.prototype.blur=function(){this.disabled||this.wrapper.nativeElement.blur()},e.prototype.toggle=function(e){var t=this;Promise.resolve(null).then((function(){var n=d.isPresent(e)?e:!t._open;t._toggle(n)}))},e.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},e.prototype.triggerPopupEvents=function(e){var t=new S.PreventableEvent;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()},e.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||(this.triggerPopupEvents(e)||(!e&&this.filterable&&this.isFocused&&this.focus(),this._toggle(e)))},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this.value=void 0},e.prototype.messageFor=function(e){return this.localization.get(e)},e.prototype.writeValue=function(e){this.value=null===e?void 0:e},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e},Object.defineProperty(e.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading":this.iconClass||"k-i-arrow-s"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectButtonClasses",{get:function(){return(this.size?d.getSizeClass("button",this.size):"")+" "+(this.fillMode?"k-button-"+this.fillMode:"")+" "+(this.fillMode?"k-button-"+this.fillMode+"-base":"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterInputClasses",{get:function(){return(this.size?d.getSizeClass("input",this.size):"")+" "+(this.fillMode?"k-input-"+this.fillMode:"")+" "+(this.rounded?d.getRoundedClass(this.rounded):"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"optionLabelSizeClass",{get:function(){return""+(this.size?d.getSizeClass("list",this.size):"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"listContainerClasses",{get:function(){var e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabledDefaultItem",{get:function(){return this.disabledItemsService.isItemDisabled(this.defaultItem)},enumerable:!0,configurable:!0}),e.prototype.getText=function(){return this.text},e.prototype.getDefaultItemText=function(){return d.getter(this.defaultItem,this.textField)},e.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:n,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:i,popupClass:this.listContainerClasses,positionMode:"absolute"});var r=this.popupRef.popupElement,o=this.width,s=o.min,a=o.max;r.addEventListener("mousedown",this.popupMouseDownHandler),r.style.minWidth=s,r.style.width=a,r.style.height=this.height,r.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe((function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()})),this.popupRef.popupClose.subscribe((function(){e.closed.emit()})),this.filterable||this.popupRef.popupAnchorViewportLeave.subscribe((function(){return e.togglePopup(!1)}))},e.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},e.prototype.updateState=function(e){var t=e.dataItem,n=e.confirm,i=void 0!==n&&n;this.dataItem=t,this.text=d.getter(t,this.textField),i&&(this._previousDataItem=t)},e.prototype.clearState=function(){this.text=void 0,this.dataItem=void 0},e.prototype.resetSelection=function(e){var t=!d.isPresent(e);this.selectionService.resetSelection(t?[]:[e]),this.selectionService.focused=t?this.firstFocusableIndex(0):e},e.prototype.onSelectionChange=function(e){var t=e.dataItem;this.updateState({dataItem:t}),this.selectionChange.emit(t),this.assignAriaDescribedBy()},e.prototype.subscribeEvents=function(){var e=this;l.isDocumentAvailable()&&(this.selectionSubscription.add(this.selectionService.onSelect.pipe(c.filter((function(t){return e.isOpen})),c.map(this.itemFromEvent.bind(this))).subscribe(this.onSelectionChange.bind(this))),this.selectionSubscription.add(u.merge(this.selectionService.onSelect.pipe(c.filter((function(t){return!e.isOpen}))),this.selectionService.onChange).pipe(c.map(this.itemFromEvent.bind(this)),c.tap((function(t){return e.togglePopup(!1)}))).subscribe((function(t){var n=t.dataItem,i=t.value;t.newSelection&&e.onSelectionChange({dataItem:n});var r=!d.isPresent(n)&&e._previousDataItem,o=i!==d.getter(e.value,e.valueField);r?(e.updateState({dataItem:e._previousDataItem}),e.resetSelection()):o&&(e.value=e.valuePrimitive?i:n,e._previousDataItem=n,e.emitChange(e.value)),e.clearFilter()}))),this.navigationSubscription=u.merge(this.navigationService.up,this.navigationService.down,this.navigationService.left.pipe(c.skipWhile((function(){return e.filterable}))),this.navigationService.right.pipe(c.skipWhile((function(){return e.filterable}))),this.navigationService.home,this.navigationService.end).pipe(c.filter((function(e){return!isNaN(e.index)}))).subscribe((function(t){return e.selectionService.select(t.index)})),this.openSubscription=this.navigationService.open.subscribe((function(){return e.togglePopup(!0)})),this.closeSubscription=this.navigationService.close.subscribe((function(){e.togglePopup(!1),e.focus()})),this.enterSubscription=this.navigationService.enter.pipe(c.tap((function(e){return e.originalEvent.preventDefault()}))).subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleEscape.bind(this)),this.filterBlurredSubscription=this.filterBlurred.pipe(c.concatMap((function(){return u.interval(10).pipe(c.take(1),c.takeUntil(e.hostElementFocused))}))).subscribe((function(){e.hostElementBlurred.emit()})),this._zone.runOutsideAngular((function(){e.componentBlurredSubscription=u.merge(e.hostElementBlurred.pipe(c.concatMap((function(){return u.interval(10).pipe(c.take(1),c.takeUntil(e.filterFocused))}))),e.navigationService.tab).pipe(c.tap((function(t){return t instanceof f.NavigationEvent&&e.focus()})),c.filter((function(){return e.isFocused}))).subscribe((function(){return e.componentBlur()}))})))},e.prototype.subscribeTouchEvents=function(){var e=this;l.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular((function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",(function(t){var n=t.target;e.isFocused&&!d.inDropDown(e.wrapper,n,e.popupRef)&&e._zone.run((function(){e.filterFocused&&e.togglePopup(!1),e.blur()}))}))}))},e.prototype.subscribeFocusEvents=function(){var e=this;l.isDocumentAvailable()&&(this.focusComponent=this.focusComponent.bind(this),this.blurComponent=this.blurComponent.bind(this),this._zone.runOutsideAngular((function(){document.addEventListener("focus",e.focusComponent,!0),document.addEventListener("blur",e.blurComponent,!0)})))},e.prototype.unSubscribeFocusEvents=function(){if(l.isDocumentAvailable()){document.removeEventListener("focus",this.focusComponent,!0),document.removeEventListener("blur",this.blurComponent,!0)}},e.prototype.unsubscribeEvents=function(){l.isDocumentAvailable()&&(this.navigationSubscription.unsubscribe(),this.openSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.componentBlurredSubscription.unsubscribe(),this.filterBlurredSubscription.unsubscribe(),this.unSubscribeFocusEvents(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectionSubscription&&this.selectionSubscription.unsubscribe())},e.prototype.itemFromEvent=function(e){var t=e.indices[0],n=this.dataService.itemAt(t);n=d.isPresent(n)?n:this.currentOrDefault(t);var i=d.getter(n,this.valueField);return{dataItem:n,index:t,newSelection:e.newSelection,value:i}},e.prototype.currentOrDefault=function(e){return d.isPresent(this.dataItem)&&-1!==e?this.dataItem:this.defaultItem},e.prototype.firstFocusableIndex=function(e){var t=this.dataService.itemsCount-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},e.prototype.handleEnter=function(){this.isOpen?(this.selectionService.change(this.selectionService.focused),this.focus()):this.togglePopup(!0)},e.prototype.handleEscape=function(){d.isPresent(this.selectionService.selected[0])?this.selectionService.change(this.selectionService.selected[0]):(this.togglePopup(!1),this.clearFilter()),this.focus()},e.prototype.clearFilter=function(){this.filterable&&this.filterText&&(this.filterText="",this.cdr.markForCheck(),this.filterChange.emit(this.filterText))},e.prototype.verifySettings=function(){if(r.isDevMode()){if(this.defaultItem&&this.valueField&&"object"!=typeof this.defaultItem)throw new Error(E.DropDownListMessages.defaultItem);if(!0===this.valuePrimitive&&d.isPresent(this.value)&&"object"==typeof this.value)throw new Error(E.DropDownListMessages.primitive);if(!1===this.valuePrimitive&&d.isPresent(this.value)&&"object"!=typeof this.value)throw new Error(E.DropDownListMessages.object);if(!d.isPresent(this.valueField)!=!d.isPresent(this.textField))throw new Error(E.DropDownListMessages.textAndValue)}},e.prototype.componentBlur=function(){var e=this;this.isFocused=!1;var t=d.isPresent(this.selectionService.selected[0])&&d.getter(this.value,this.valueField)!==d.getter(this.dataService.itemAt(this.selectionService.selected[0]),this.valueField);t||l.hasObservers(this.close)||l.hasObservers(this.onBlur)||l.hasObservers(this.filterChange)||d.isUntouched(this.wrapper.nativeElement)?this._zone.run((function(){t&&e.selectionService.change(e.selectionService.selected[0]),e.togglePopup(!1),e.clearFilter(),e.onBlur.emit(),e.onTouchedCallback()})):this.togglePopup(!1)},e.prototype.onMouseDown=function(e){"input"!==e.target.tagName.toLowerCase()&&e.preventDefault()},e.prototype.onKeyPress=function(e){if(0!==e.which&&e.keyCode!==p.Keys.Enter){var t=String.fromCharCode(e.charCode||e.keyCode);this.ignoreCase&&(t=t.toLowerCase())," "===t&&e.preventDefault(),this.word+=t,this.last=t,this.search()}},e.prototype.search=function(){var e=this;clearTimeout(this.typingTimeout),this.filterable||(this.typingTimeout=setTimeout((function(){e.word=""}),this.delay),this.selectNext())},e.prototype.selectNext=function(){var e,t,n,i=this,r=this.dataService.filter((function(e){return d.isPresent(e)&&!e.header&&!i.disabledItemsService.isItemDisabled(e)})).map((function(e){return i.dataService.grouped?{item:e.value,itemIndex:e.offsetIndex}:{item:e,itemIndex:i.dataService.indexOf(e)}})),o=d.sameCharsOnly(this.word,this.last),s=r.length,a=!isNaN(this.selectionService.selected[0]),u=a?this.selectionService.selected[0]:0;for(this.defaultItem&&!this.disabledItemsService.isItemDisabled(this.defaultItem)&&(n={item:this.defaultItem,itemIndex:-1},s+=1,u+=1),u+=o&&a?1:0,r=d.shuffleData(r,u,n),t=0;t<s;t++){e=d.getter(r[t].item,this.textField);var c=Boolean(o&&d.matchText(e,this.last,this.ignoreCase)),l=Boolean(d.matchText(e,this.word,this.ignoreCase));if(c||l){t=r[t].itemIndex;break}}t!==s&&this.navigate(t)},e.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},e.prototype.navigate=function(e){this.selectionService.select(e)},e.prototype.findDataItem=function(e){var t,n=e.valueField,i=e.value,r={dataItem:null,index:-1},o=function(e){return d.getter(e,n)};t=this.dataService.grouped?function(e){return o(e.value)===o(i)}:function(e){return o(e)===o(i)};var s=this.dataService.findIndex(t);return r.dataItem=this.dataService.itemAt(s),r.index=s,r},e.prototype.setState=function(){var e=this.value,t=this.valueField,n=this.textField,i=this.valuePrimitive;if(this.defaultItem){var r=d.getter(this.defaultItem,t),o=d.getter(e,t);if(!d.isPresent(e)||o===r)return this.updateState({dataItem:this.defaultItem,confirm:!0}),this.resetSelection(-1),void(this.filterable&&this.filterText&&this.dataService.itemsCount&&(this.selectionService.focused=this.firstFocusableIndex(0)))}var s=this.findDataItem({valueField:t,value:e}),a=!(i&&n);s.dataItem?(this.updateState({dataItem:s.dataItem,confirm:!0}),this.resetSelection(s.index)):d.isPresent(e)&&a?(this.updateState({dataItem:e}),this.resetSelection()):this._previousDataItem?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):(this.clearState(),this.resetSelection())},e.prototype.handleFilter=function(e){this.filterChange.emit(e.target.value)},e.prototype.pageChange=function(e){this.virtual.skip=e.skip},e.prototype.assignAriaDescribedBy=function(){var e=(this.wrapper.nativeElement.getAttribute("aria-describedby")||"").replace(this.valueLabelId,"").trim();this.valueLabelId=d.guid();var t=(this.valueLabelId+" "+e).trim();this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",t)},e.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,d.getSizeClass("picker",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,d.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,d.getFillModeClass("picker",this.fillMode))},i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"iconClass",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"loading",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"data",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"value",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"textField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"valueField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"listHeight",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"defaultItem",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"itemDisabled",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"virtual",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"ignoreCase",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"delay",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"valuePrimitive",null),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([r.Input("tabIndex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"filterChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"selectionChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"open",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"opened",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"close",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"closed",void 0),i.__decorate([r.Output("focus"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([r.ContentChild(m.ItemTemplateDirective,{static:!1}),i.__metadata("design:type",m.ItemTemplateDirective)],e.prototype,"itemTemplate",void 0),i.__decorate([r.ContentChild(v.GroupTemplateDirective,{static:!1}),i.__metadata("design:type",v.GroupTemplateDirective)],e.prototype,"groupTemplate",void 0),i.__decorate([r.ContentChild(g.FixedGroupTemplateDirective,{static:!1}),i.__metadata("design:type",g.FixedGroupTemplateDirective)],e.prototype,"fixedGroupTemplate",void 0),i.__decorate([r.ContentChild(b.ValueTemplateDirective,{static:!1}),i.__metadata("design:type",b.ValueTemplateDirective)],e.prototype,"valueTemplate",void 0),i.__decorate([r.ContentChild(y.HeaderTemplateDirective,{static:!1}),i.__metadata("design:type",y.HeaderTemplateDirective)],e.prototype,"headerTemplate",void 0),i.__decorate([r.ContentChild(_.FooterTemplateDirective,{static:!1}),i.__metadata("design:type",_.FooterTemplateDirective)],e.prototype,"footerTemplate",void 0),i.__decorate([r.ContentChild(x.NoDataTemplateDirective,{static:!1}),i.__metadata("design:type",x.NoDataTemplateDirective)],e.prototype,"noDataTemplate",void 0),i.__decorate([r.ViewChild("container",{read:r.ViewContainerRef,static:!0}),i.__metadata("design:type",r.ViewContainerRef)],e.prototype,"container",void 0),i.__decorate([r.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",r.TemplateRef)],e.prototype,"popupTemplate",void 0),i.__decorate([r.ViewChild("optionsList",{static:!1}),i.__metadata("design:type",P.ListComponent)],e.prototype,"optionsList",void 0),i.__decorate([r.HostBinding("class.k-dropdownlist"),r.HostBinding("class.k-picker"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([r.HostBinding("class.k-disabled"),r.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"isDisabled",null),i.__decorate([r.HostBinding("class.k-loading"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"isLoading",null),i.__decorate([r.Input("id"),r.HostBinding("attr.id"),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"dir",null),i.__decorate([r.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"hostTabIndex",null),i.__decorate([r.HostBinding("attr.readonly"),r.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"isReadonly",null),i.__decorate([r.HostBinding("attr.role"),r.HostBinding("attr.aria-haspopup"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([r.HostBinding("attr.aria-expanded"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"isAriaExpanded",null),i.__decorate([r.HostBinding("attr.aria-owns"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"hostAriaOwns",null),i.__decorate([r.HostBinding("attr.aria-activedescendant"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"hostAriaActivedescendant",null),i.__decorate([r.HostBinding("attr.aria-label"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"hostNoDataLabel",null),i.__decorate([r.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"keydown",null),i.__decorate([r.HostListener("keypress",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"keypress",null),i.__decorate([r.HostListener("click",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"click",null),e=n=i.__decorate([r.Component({exportAs:"kendoDropDownList",providers:[t.DROPDOWNLIST_VALUE_ACCESSOR,D.DataService,h.SelectionService,f.NavigationService,k.DisabledItemsService,C.LocalizationService,{provide:C.L10N_PREFIX,useValue:"kendo.dropdownlist"},{provide:O.FilterableComponent,useExisting:r.forwardRef((function(){return n}))},{provide:l.KendoInput,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-dropdownlist",template:'\n <ng-container kendoDropDownListLocalizedMessages\n i18n-noDataText="kendo.dropdownlist.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-selectButtonText="kendo.dropdownlist.selectButtonText|The text set as aria-label on the select button"\n selectButtonText="Select"\n >\n </ng-container>\n <span class="k-input-inner" unselectable="on" role="option" [id]="valueLabelId">\n <span class="k-input-value-text">\n <ng-template *ngIf="valueTemplate"\n [templateContext]="{\n templateRef: valueTemplate.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!valueTemplate">{{ getText() }}</ng-template>\n </span>\n </span>\n <button\n tabindex="-1"\n unselectable="on"\n type="button"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [attr.aria-label]="messageFor(\'selectButtonText\')"\n [kendoEventsOutsideAngular]="{\n mousedown: onMouseDown\n }"\n >\n <span\n class="k-button-icon k-icon"\n unselectable="on"\n [ngClass]="buttonClasses"\n ></span>\n </button>\n <ng-template #popupTemplate>\n \x3c!--filterable--\x3e\n\n <ng-template [ngIf]="filterable">\n <div class="k-list-filter" (click)="$event.stopImmediatePropagation()">\n <span\n class="k-searchbox k-input"\n [ngClass]="filterInputClasses"\n >\n <span class="k-input-icon k-icon k-i-search" unselectable="on"></span>\n <input\n [attr.aria-owns]="ariaOwns"\n [attr.aria-activedescendant]="ariaActivedescendant"\n [attr.aria-label]="noDataLabel"\n tabindex="-1"\n [filterInput]="isFocused && !touchEnabled"\n [dir]="direction"\n [(ngModel)]="filterText"\n class="k-input-inner"\n (keydown)="keydown($event)"\n (input)="handleFilter($event)"\n (focus)="onFilterFocus()"\n (blur)="blurFilterInput()" />\n </span>\n </div>\n </ng-template>\n \x3c!--default item--\x3e\n <ng-template [ngIf]="defaultItem && !itemTemplate">\n <div\n class="k-list"\n [ngClass]="optionLabelSizeClass"\n >\n <div class="k-list-optionlabel" [ngClass]="{ \'k-disabled\': isDisabledDefaultItem }" kendoDropDownsSelectable [index]="-1">\n {{ getDefaultItemText() }}\n </div>\n </div>\n </ng-template>\n <ng-template [ngIf]="defaultItem && itemTemplate">\n <div\n class="k-list"\n [ngClass]="optionLabelSizeClass"\n >\n <div class="k-list-optionlabel" [ngClass]="{ \'k-disabled\': isDisabledDefaultItem }" kendoDropDownsSelectable [index]="-1">\n <ng-template\n [templateContext]="{\n templateRef: itemTemplate.templateRef,\n $implicit: defaultItem\n }">\n </ng-template>\n </div>\n </div>\n </ng-template>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [size]="size"\n [rounded]="rounded"\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="itemTemplate"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),i.__param(10,r.Optional()),i.__param(10,r.Inject(T.TOUCH_ENABLED)),i.__metadata("design:paramtypes",[r.ElementRef,C.LocalizationService,I.PopupService,h.SelectionService,f.NavigationService,k.DisabledItemsService,D.DataService,r.NgZone,r.Renderer2,r.ChangeDetectorRef,Boolean])],e)}();t.DropDownListComponent=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(11),s=n(3),a=n(4),u=n(9),c=n(37),l=n(41),p=n(8),d=n(7),h=n(19),f=n(5),m=n(10),v=n(2),g=n(68),b=n(24),y=n(26),_=function(e){function t(t,n,i,r,o,s,a,u,c,l,p){var d=e.call(this,l,t,n,i,r,o,s,a,u,c,p)||this;return d.hostClasses=!0,d.removeWindowResizeListener=v.noop,d.defaultVirtualItemHeight=36,d.defaultVirtualPageSize=30,d}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"header",{set:function(e){this.updateHeaderPadding(e&&e.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"popupWidth",{get:function(){var e=this.wrapper.nativeElement.offsetWidth,t=e+"px",n=this.popupSettings.width||g.getRowWidthFromColumnsMeta(this.columns)||e;return{min:t,max:isNaN(n)?n:n+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tableSizeClass",{get:function(){return""+(this.size?v.getSizeClass("table",this.size):"")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"listContainerClasses",{get:function(){return["k-popup","k-dropdowngrid-popup"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){this.updateColumnsMediaState(),this.addWindowResizeListener()},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.removeWindowResizeListener()},t.prototype.textFrom=function(e,t){return v.getter(e,t)},t.prototype.updateHeaderPadding=function(e){if(v.isPresent(e)){var t=this.localization.rtl?"padding-left":"padding-right";this.optionsList.hasScrollbar()&&g.scrollbarWidth()>0?this.renderer.setStyle(e,t,g.scrollbarWidth()+"px"):this.renderer.removeStyle(e,t)}},t.prototype.verifySettings=function(){if(r.isDevMode()){if(v.isPresent(this.data)&&this.data.length>0&&this.data.some((function(e){return!v.isObject(e)})))throw new Error(y.MultiColumnComboBoxMessages.data);if(!v.isPresent(this.valueField)||!v.isPresent(this.textField))throw new Error(y.MultiColumnComboBoxMessages.textAndValue);e.prototype.verifySettings.call(this)}},t.prototype.addWindowResizeListener=function(){var e=this;s.isDocumentAvailable()&&this.zone.runOutsideAngular((function(){return e.removeWindowResizeListener=e.renderer.listen(window,"resize",e.updateColumnsMediaState.bind(e))}))},t.prototype.updateColumnsMediaState=function(){var e=this;v.isPresent(this.columns)&&s.isDocumentAvailable()&&this.columns.forEach((function(t){var n=!t.media||window.matchMedia(t.media).matches;t.matchesMedia!==n&&(t.matchesMedia=n,e.isOpen&&e.zone.run((function(){return e.popupRef.popupElement.style.width=e.popupWidth.max})))}))},i.__decorate([r.HostBinding("class.k-dropdowngrid"),i.__metadata("design:type",Boolean)],t.prototype,"hostClasses",void 0),i.__decorate([r.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"isDisabled",null),i.__decorate([r.ContentChildren(l.ComboBoxColumnComponent),i.__metadata("design:type",r.QueryList)],t.prototype,"columns",void 0),i.__decorate([r.ViewChild("header",{static:!1}),i.__metadata("design:type",r.ElementRef),i.__metadata("design:paramtypes",[r.ElementRef])],t.prototype,"header",null),t=n=i.__decorate([r.Component({providers:[f.SelectionService,p.DataService,h.NavigationService,d.DisabledItemsService,a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.multicolumncombobox"},{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return n}))},{provide:s.KendoInput,useExisting:r.forwardRef((function(){return n}))},{provide:b.FilterableComponent,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-multicolumncombobox",template:'\n <ng-container\n kendoMultiColumnComboBoxLocalizedMessages\n\n i18n-noDataText="kendo.multicolumncombobox.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.multicolumncombobox.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <kendo-searchbar\n #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [suggestedText]="getSuggestion()"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n >\n </kendo-searchbar>\n\n <span\n *ngIf="clearButton && !loading && !disabled && !readonly && text?.length"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="messageFor(\'clearTitle\')"\n (click)="clearValue($event)"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n\n <button\n #select\n tabindex="-1"\n aria-hidden="true"\n unselectable="on"\n type="button"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [attr.aria-label]="messageFor(\'selectButtonText\')"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-button-icon k-icon" [ngClass]="buttonClasses"></span>\n </button>\n\n <ng-template #popupTemplate>\n \x3c!--user-defined header template --\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }"\n >\n </ng-template>\n\n \x3c!--data table--\x3e\n <div class="k-data-table" [ngClass]="tableSizeClass">\n\n \x3c!--grid header--\x3e\n <div\n #header\n class="k-table-header"\n >\n <div class="k-table-header-wrap">\n <table class="k-table" role="presentation">\n <colgroup>\n <ng-container *ngFor="let column of columns">\n <col\n *ngIf="!column.hidden && column.matchesMedia"\n [style.width.px]="column.width"\n />\n </ng-container>\n </colgroup>\n <thead class="k-table-thead">\n <tr class="k-table-row">\n <ng-container *ngFor="let column of columns">\n <th\n *ngIf="!column.hidden && column.matchesMedia"\n class="k-table-th"\n [ngStyle]="column.headerStyle"\n [ngClass]="column.headerClass"\n >\n <ng-container *ngIf="!column.headerTemplate">\n {{ column.title || column.field }}\n </ng-container>\n <ng-template\n *ngIf="column.headerTemplate"\n [templateContext]="{\n templateRef: column.headerTemplate?.templateRef,\n $implicit: column,\n column: column\n }"\n >\n </ng-template>\n </th>\n </ng-container>\n </tr>\n </thead>\n </table>\n </div>\n </div>\n\n \x3c!-- item template --\x3e\n <ng-template #rowTemplate let-dataItem>\n <ng-container *ngFor="let column of columns">\n <span\n *ngIf="!column.hidden && column.matchesMedia"\n class="k-table-td"\n [ngClass]="column.class"\n [style.width.px]="column.width"\n [ngStyle]="column.style"\n >\n <ng-container *ngIf="!column.cellTemplate">\n {{ textFrom(dataItem, column.field) }}\n </ng-container>\n <ng-template\n *ngIf="column.cellTemplate"\n [templateContext]="{\n templateRef: column.cellTemplate?.templateRef,\n $implicit: dataItem,\n dataItem: dataItem,\n column: column\n }"\n >\n </ng-template>\n </span>\n </ng-container>\n </ng-template>\n\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="{ templateRef: rowTemplate }"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n [type]="\'dropdowngrid\'"\n (pageChange)="pageChange($event)"\n (listResize)="updateHeaderPadding(header)"\n >\n </kendo-list>\n\n \x3c!--no-data template--\x3e\n <div\n class="k-no-data"\n *ngIf="data.length === 0"\n >\n <ng-template\n [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }"\n >\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n\n \x3c!--user-defined footer template--\x3e\n <ng-container *ngIf="footerTemplate">\n <div class="k-table-footer">\n <table class="k-table">\n <tfoot class="k-table-tfoot">\n <tr class="k-table-row">\n <td class="k-table-td">\n <ng-template\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }"\n >\n </ng-template>\n </td>\n </tr>\n </tfoot>\n </table>\n </div>\n </ng-container>\n\n </div>\n\n </ng-template>\n\n <kendo-resize-sensor\n *ngIf="isOpen"\n (resize)="onResize()"\n >\n </kendo-resize-sensor>\n\n \x3c!-- when the popupSettings.appendTo value is set to \'component\', this container is used --\x3e\n <ng-container #container></ng-container>\n '}),i.__param(10,r.Inject(m.TOUCH_ENABLED)),i.__metadata("design:paramtypes",[a.LocalizationService,u.PopupService,f.SelectionService,h.NavigationService,d.DisabledItemsService,p.DataService,r.NgZone,r.ChangeDetectorRef,r.Renderer2,r.ElementRef,Boolean])],t)}(c.ComboBoxComponent);t.MultiColumnComboBoxComponent=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(3),s=n(9),a=n(6),u=n(29),c=n(11),l=n(8),p=n(7),d=n(19),h=n(4),f=n(5),m=n(15),v=n(2),g=n(20),b=n(14),y=n(22),_=n(12),x=n(13),w=n(36),S=n(26),C=n(10),I=n(34),T={animate:!0},E=function(){return!1},k=function(){return b.of([])},D=function(){return!1},O=function(){return!0},P=function(){function e(e,t,n,i,s,a,u,c){this.wrapper=e,this.popupService=t,this.navigationService=n,this.renderer=i,this._zone=s,this.cdr=a,this.localization=u,this.touchEnabled=c,this.hostClasses=!0,this.role="listbox",this.ariaHasPopup="tree",this.open=new r.EventEmitter,this.opened=new r.EventEmitter,this.close=new r.EventEmitter,this.closed=new r.EventEmitter,this.nodeExpand=new r.EventEmitter,this.nodeCollapse=new r.EventEmitter,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.valueChange=new r.EventEmitter,this.filterChange=new r.EventEmitter,this.clearButton=!0,this.hasChildren=E,this.fetchChildren=k,this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.itemDisabled=D,this.isNodeVisible=O,this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.focusableId="k-"+o.guid(),this.selectedKeys=[],this.filterStateChange=new r.EventEmitter,this.allNodesHidden=!1,this.valueLabelId="k-"+o.guid(),this._popupSettings=T,this._tabindex=0,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=[],this.onTouchedCallback=v.noop,this.onChangeCallback=v.noop,this.direction=u.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents(),this.subscribeFocusEvents()}var t;return t=e,Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.focusableId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabIndex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAriaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),e.prototype.handleClick=function(){this.togglePopup(!this.isOpen)},e.prototype.handleKeydown=function(e){if(!this.disabled&&!this.readonly){var t=e;this.navigationService.process({originalEvent:t})}},Object.defineProperty(e.prototype,"treeview",{get:function(){return this._treeview},set:function(e){e&&((this.isFocused&&!this.filterable||this.touchEnabled)&&e.focus(),e.animate=!0,this._treeview=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._nodes},set:function(e){this._nodes=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},T,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataItem",{get:function(){return this._dataItem?this._dataItem:this.value},set:function(e){this._dataItem=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,v.getSizeClass("picker",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,v.getSizeClass("picker",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,v.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,v.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,v.getFillModeClass("picker",this.fillMode)),e&&this.renderer.addClass(this.wrapper.nativeElement,v.getFillModeClass("picker",e)),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var e=this.wrapper.nativeElement.offsetWidth,t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var e=this.popupSettings.height;return v.isPresent(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return v.isPresent(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isExpanded",{get:function(){return this.isNodeExpanded},set:function(e){this.isNodeExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expand",{get:function(){return this.nodeExpand},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collapse",{get:function(){return this.nodeCollapse},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodes",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.fetchChildren},set:function(e){this.fetchChildren=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVisible",{get:function(){return this.isNodeVisible},set:function(e){this.isNodeVisible=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.assignAriaDescribedBy(),this.subscriptions.push(this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.cdr.markForCheck()}))),this.setComponentClasses()},e.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents()},e.prototype.ngOnChanges=function(e){o.anyChanged(["textField","valueField","valuePrimitive"],e,!1)&&this.setState()},e.prototype.ngAfterContentChecked=function(){this.verifySettings()},e.prototype.isEmpty=function(){return!this.text&&!this.placeholder},e.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||(this.triggerPopupEvents(e)||(e?this.createPopup():this.destroyPopup()))},e.prototype.handleFocus=function(e){var t=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.isFocused||(this.isFocused=!0,o.hasObservers(this.onFocus)&&this._zone.run((function(){t.onFocus.emit()}))))},e.prototype.handleBlur=function(e){var t=this,n=e&&e.relatedTarget;this.wrapper.nativeElement.contains(n)||this.isOpen&&this.popupRef.popupElement.contains(n)||(this.isFocused=!1,o.hasObservers(this.onBlur)||v.isUntouched(this.wrapper.nativeElement)?this._zone.run((function(){t.togglePopup(!1),t.onBlur.emit(),t.onTouchedCallback()})):this.togglePopup(!1))},e.prototype.focusItemAt=function(e){if(this.treeview){var t=this.treeview.itemLookup(e);!v.isPresent(t)||this.treeview.isDisabled(t.item.dataItem,t.item.index)||this.treeview.focus(e)}},e.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},e.prototype.blur=function(){this.disabled||this.wrapper.nativeElement.blur()},e.prototype.reset=function(){this.value=void 0,this.dataItem=void 0},e.prototype.toggle=function(e){var t=this;Promise.resolve(null).then((function(){var n=v.isPresent(e)?e:!v.isPresent(t.popupRef);t.destroyPopup(),n&&t.createPopup()}))},Object.defineProperty(e.prototype,"popupContainerClasses",{get:function(){var e=["k-popup-dropdowntree"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),e.prototype.onSelectionChange=function(e){var t=e.dataItem,n=e.index;this.valueDepth=n.split("_").length-1;var i=this.getField(this.valueField,t),r=this.valuePrimitive?u.getter(i)(t):t;r!==this.value&&(this.value=r,this.dataItem=t,this.emitValueChange(this.value)),this.togglePopup(!1),this.focus()},e.prototype.messageFor=function(e){return this.localization.get(e)},e.prototype.clearValue=function(e){e.stopImmediatePropagation(),this.focus(),this.value=void 0,this.dataItem=void 0,this.clearState(),this.valueChange.emit(void 0),this.emitValueChange()},Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),e.prototype.preventEventDefault=function(e){e.preventDefault()},e.prototype.writeValue=function(e){!v.isPresent(e)&&v.isPresent(this.value)&&(this.dataItem=null),this.value=null===e?void 0:e},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.handleFilterInputChange=function(e){var t=this;this.filterChange.next(e),this.allNodesHidden=this.nodes.every((function(e,n){return!t.isVisible(e,String(n))}))},Object.defineProperty(e.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading":"k-i-arrow-s"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectButtonClasses",{get:function(){return(this.size?v.getSizeClass("button",this.size):"")+" "+(this.fillMode?"k-button-"+this.fillMode:"")+" "+(this.fillMode?"k-button-"+this.fillMode+"-base":"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterInputClasses",{get:function(){return(this.size?v.getSizeClass("input",this.size):"")+" "+(this.fillMode?"k-input-"+this.fillMode:"")+" "+(this.rounded?v.getRoundedClass(this.rounded):"")},enumerable:!0,configurable:!0}),e.prototype.verifySettings=function(){if(r.isDevMode()){if(!0===this.valuePrimitive&&v.isPresent(this.value)&&"object"==typeof this.value)throw new Error(S.DropDownTreeMessages.primitive);if(!0===this.valuePrimitive&&v.isPresent(this.value)&&"object"!=typeof this.dataItem)throw new Error(S.DropDownTreeMessages.dataItem);if(!1===this.valuePrimitive&&v.isPresent(this.value)&&"object"!=typeof this.value)throw new Error(S.DropDownTreeMessages.object);if(!v.isPresent(this.valueField)||!v.isPresent(this.textField))throw new Error(S.DropDownTreeMessages.textAndValue);if((v.isArray(this.valueField)||v.isArray(this.textField))&&v.isPresent(this.value)&&!v.isPresent(this.valueDepth))throw new Error(S.DropDownTreeMessages.valueDepth)}},e.prototype.emitValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},e.prototype.getText=function(e,t){if(v.isPresent(t)&&v.isPresent(e)){var n=this.getField(e,t);return u.getter(n)(t)}return null},e.prototype.getField=function(e,t){var n=e.length-1;return"string"==typeof e?e:v.isPresent(this.valueDepth)?n<this.valueDepth?e[n]:e[this.valueDepth]:e.find((function(e){return e in t}))},e.prototype.triggerPopupEvents=function(e){var t=new m.PreventableEvent;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()},e.prototype.createPopup=function(){var e=this,t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,appendTo:this.appendTo,anchorAlign:n,content:this.popupTemplate,popupAlign:i,positionMode:"absolute",popupClass:this.popupContainerClasses});var r=this.popupRef.popupElement,o=this.width,s=o.min,a=o.max;r.style.minWidth=s,r.style.width=a,r.style.height=this.height,r.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe((function(){e.cdr.detectChanges(),e.opened.emit()})),this.popupRef.popupClose.subscribe((function(){e.closed.emit()}))},e.prototype.destroyPopup=function(){var e=this;this.popupRef&&(this.popupRef.close(),this.popupRef=null,""!==this.filter&&(this.filter="",this.allNodesHidden=!1,o.hasObservers(this.filterChange)&&this._zone.run((function(){e.filterChange.emit("")}))))},e.prototype.handleEscape=function(){this.togglePopup(!1),this.focus()},e.prototype.setState=function(){if(v.isPresent(this.value)&&v.isPresent(this.dataItem)&&v.isPresent(this.valueField)){this.text=this.getText(this.textField,this.dataItem);var e=this.getField(this.valueField,this.dataItem);this.selectBy=e,this.selectedKeys=[u.getter(e)(this.dataItem)]}else this.clearState();this.cdr.markForCheck()},e.prototype.clearState=function(){this.text=void 0,this.selectedKeys=[]},e.prototype.subscribeEvents=function(){var e=this;this.subscriptions.push(this.navigationService.open.subscribe((function(){return e.togglePopup(!0)})),this.navigationService.close.subscribe((function(){e.togglePopup(!1),e.focus()})),this.navigationService.enter.pipe(y.tap((function(e){return e.originalEvent.preventDefault()}))).subscribe((function(){return e.togglePopup(!0)})),this.navigationService.esc.subscribe((function(){return e.handleEscape()})),this.navigationService.tab.subscribe((function(){return e.focus()})),this.navigationService.down.subscribe((function(t){e.treeview&&(t.originalEvent.preventDefault(),e.treeview.isActive||e.treeview.focus())})),this.navigationService.up.subscribe((function(t){e.treeview&&(t.originalEvent.preventDefault(),e.filterable&&"0"===e.treeview.navigationService.activeIndex&&e.filterInput.nativeElement.focus())})))},e.prototype.subscribeTouchEvents=function(){var e=this;o.isDocumentAvailable()&&this.touchEnabled&&this._zone.runOutsideAngular((function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",(function(t){var n=t.target;e.isFocused&&!v.inDropDown(e.wrapper,n,e.popupRef)&&e._zone.run((function(){e.isOpen&&e.treeview.blur(),e.blur()}))}))}))},e.prototype.subscribeFocusEvents=function(){var e=this;o.isDocumentAvailable()&&(this.handleFocus=this.handleFocus.bind(this),this.handleDocumentBlur=this.handleDocumentBlur.bind(this),this._zone.runOutsideAngular((function(){document.addEventListener("focus",e.handleFocus,!0),document.addEventListener("blur",e.handleDocumentBlur,!0)})))},e.prototype.unSubscribeFocusEvents=function(){if(o.isDocumentAvailable()){document.removeEventListener("focus",this.handleFocus,!0),document.removeEventListener("blur",this.handleDocumentBlur,!0)}},e.prototype.unsubscribeEvents=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.unSubscribeFocusEvents(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler()},e.prototype.handleDocumentBlur=function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.handleBlur(e))},e.prototype.assignAriaDescribedBy=function(){var e=this.wrapper.nativeElement.getAttribute("aria-describedby")||"",t=(this.valueLabelId+" "+e.trim()).trim();this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",t)},e.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,v.getSizeClass("picker",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,v.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,v.getFillModeClass("picker",this.fillMode))},i.__decorate([r.HostBinding("class.k-dropdowntree"),r.HostBinding("class.k-picker"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([r.HostBinding("class.k-disabled"),r.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"isDisabled",null),i.__decorate([r.HostBinding("class.k-loading"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"isLoading",null),i.__decorate([r.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"id",null),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([r.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"hostTabIndex",null),i.__decorate([r.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([r.HostBinding("attr.aria-haspopup"),i.__metadata("design:type",String)],e.prototype,"ariaHasPopup",void 0),i.__decorate([r.HostBinding("attr.aria-expanded"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"isAriaExpanded",null),i.__decorate([r.HostBinding("attr.readonly"),r.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"isReadonly",null),i.__decorate([r.HostListener("click"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"handleClick",null),i.__decorate([r.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"handleKeydown",null),i.__decorate([r.ContentChild(g.NoDataTemplateDirective,{static:!1}),i.__metadata("design:type",g.NoDataTemplateDirective)],e.prototype,"noDataTemplate",void 0),i.__decorate([r.ContentChild(_.HeaderTemplateDirective,{static:!1}),i.__metadata("design:type",_.HeaderTemplateDirective)],e.prototype,"headerTemplate",void 0),i.__decorate([r.ContentChild(x.FooterTemplateDirective,{static:!1}),i.__metadata("design:type",x.FooterTemplateDirective)],e.prototype,"footerTemplate",void 0),i.__decorate([r.ContentChild(w.NodeTemplateDirective,{static:!1}),i.__metadata("design:type",w.NodeTemplateDirective)],e.prototype,"nodeTemplate",void 0),i.__decorate([r.ContentChild(I.ValueTemplateDirective,{static:!1}),i.__metadata("design:type",I.ValueTemplateDirective)],e.prototype,"valueTemplate",void 0),i.__decorate([r.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",r.TemplateRef)],e.prototype,"popupTemplate",void 0),i.__decorate([r.ViewChild("container",{read:r.ViewContainerRef,static:!0}),i.__metadata("design:type",r.ViewContainerRef)],e.prototype,"container",void 0),i.__decorate([r.ViewChild("treeview",{static:!1}),i.__metadata("design:type",a.TreeViewComponent),i.__metadata("design:paramtypes",[a.TreeViewComponent])],e.prototype,"treeview",null),i.__decorate([r.ViewChild("filterInput",{static:!1}),i.__metadata("design:type",r.ElementRef)],e.prototype,"filterInput",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"open",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"opened",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"close",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"closed",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"nodeExpand",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"nodeCollapse",void 0),i.__decorate([r.Output("focus"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"filterChange",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"loading",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"value",null),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"textField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"valueField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"valueDepth",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"hasChildren",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"fetchChildren",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"dataItem",null),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"listHeight",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"valuePrimitive",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabindex",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"itemDisabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"isNodeExpanded",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"isNodeVisible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"filter",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),e=t=i.__decorate([r.Component({exportAs:"kendoDropDownTree",providers:[l.DataService,f.SelectionService,d.NavigationService,p.DisabledItemsService,h.LocalizationService,{provide:h.L10N_PREFIX,useValue:"kendo.dropdowntree"},{multi:!0,provide:c.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return t}))},{provide:o.KendoInput,useExisting:r.forwardRef((function(){return t}))},{provide:a.DataBoundComponent,useExisting:r.forwardRef((function(){return t}))},{provide:a.ExpandableComponent,useExisting:r.forwardRef((function(){return t}))}],selector:"kendo-dropdowntree",template:'\n <ng-container kendoDropDownTreeLocalizedMessages\n i18n-noDataText="kendo.dropdowntree.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.dropdowntree.clearTitle|The title of the clear button"\n clearTitle="clear"\n\n i18n-selectButtonText="kendo.dropdowntree.selectButtonText|The text set as aria-label on the select button"\n selectButtonText="Select"\n >\n </ng-container>\n <span\n [attr.id]="valueLabelId"\n class="k-input-inner"\n role="option"\n >\n <span class="k-input-value-text">\n <ng-template *ngIf="valueTemplate"\n [templateContext]="{\n templateRef: valueTemplate.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!valueTemplate"> {{ text || placeholder }} </ng-template>\n </span>\n </span>\n <span\n *ngIf="!loading && !readonly && clearButton && text?.length && !disabled"\n class="k-clear-value"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="messageFor(\'clearTitle\')"\n (click)="clearValue($event)"\n >\n <span class="k-icon k-i-x"></span>\n </span>\n <button\n tabindex="-1"\n type="button"\n aria-hidden="true"\n class="k-input-button k-button k-icon-button"\n [ngClass]="selectButtonClasses"\n [attr.aria-label]="messageFor(\'selectButtonText\')"\n >\n <span\n class="k-button-icon k-icon"\n [ngClass]="buttonClasses"\n ></span>\n </button>\n <ng-template #popupTemplate>\n <span\n *ngIf="filterable"\n class="k-list-filter"\n >\n <span\n class="k-textbox k-input"\n [ngClass]="filterInputClasses"\n >\n <span class="k-input-prefix">\n <span class="k-input-icon k-icon k-i-search"></span>\n </span>\n <input\n #filterInput\n (input)="handleFilterInputChange($event.target.value)"\n [filterInput]="filterable && !touchEnabled"\n (keydown.arrowdown)="handleKeydown($event)"\n (keydown.alt.arrowup)="handleKeydown($event)"\n [(ngModel)]="filter"\n class="k-input-inner"\n role="textbox"\n aria-haspopup="true"\n aria-expanded="false"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n </span>\n </span>\n \x3c!--header template--\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }">\n </ng-template>\n <kendo-treeview\n #treeview\n *ngIf="data.length !== 0 && !allNodesHidden"\n [size]="size"\n [nodes]="data"\n [style.maxHeight.px]="listHeight"\n [animate]="false"\n [(selectedKeys)]="selectedKeys"\n [selectBy]="selectBy"\n [textField]="textField"\n kendoTreeViewSelectable\n [children]="children"\n [hasChildren]="hasChildren"\n [loadOnDemand]="loadOnDemand"\n [isExpanded]="isNodeExpanded"\n [isDisabled]="itemDisabled"\n [nodeTemplate]="nodeTemplate"\n [filter]="filter"\n [isVisible]="isNodeVisible"\n (focusout)="handleBlur($event)"\n (keydown)="handleKeydown($event)"\n (selectionChange)="onSelectionChange($event)"\n (expand)="nodeExpand.emit($event)"\n (collapse)="nodeCollapse.emit($event)"\n >\n </kendo-treeview>\n \x3c!--footer template--\x3e\n <ng-template\n *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate?.templateRef\n }">\n </ng-template>\n \x3c!--no-data template--\x3e\n <div class="k-no-data" *ngIf="data.length === 0 || allNodesHidden">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n </ng-template>\n <ng-container #container></ng-container>\n ',changeDetection:r.ChangeDetectionStrategy.OnPush}),i.__param(7,r.Optional()),i.__param(7,r.Inject(C.TOUCH_ENABLED)),i.__metadata("design:paramtypes",[r.ElementRef,s.PopupService,d.NavigationService,r.Renderer2,r.NgZone,r.ChangeDetectorRef,h.LocalizationService,Boolean])],e)}();t.DropDownTreeComponent=P},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(6),s=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),i.__decorate([r.Input("kendoDropDownTreeFlatBinding"),i.__metadata("design:type",Array)],t.prototype,"nodes",void 0),i.__decorate([r.Input("valueField"),i.__metadata("design:type",String)],t.prototype,"idField",void 0),t=i.__decorate([r.Directive({selector:"[kendoDropDownTreeFlatBinding]"}),i.__metadata("design:paramtypes",[o.DataBoundComponent])],t)}(o.FlatDataBindingDirective);t.DropDownTreeFlatBindingDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(6),s=function(e){function t(t){var n=e.call(this,t)||this;return n.dropDownTree=t,n}return i.__extends(t,e),Object.defineProperty(t.prototype,"data",{set:function(e){this.dropDownTree.nodes=e,this.nodes=e},enumerable:!0,configurable:!0}),i.__decorate([r.Input("kendoDropDownTreeHierarchyBinding"),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],t.prototype,"data",null),t=i.__decorate([r.Directive({selector:"[kendoDropDownTreeHierarchyBinding]"}),i.__metadata("design:paramtypes",[o.DataBoundComponent])],t)}(o.HierarchyBindingDirective);t.DropDownTreeHierarchyBindingDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(6),s=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),i.__decorate([r.Input("kendoMultiSelectTreeFlatBinding"),i.__metadata("design:type",Array)],t.prototype,"nodes",void 0),i.__decorate([r.Input("valueField"),i.__metadata("design:type",String)],t.prototype,"idField",void 0),t=i.__decorate([r.Directive({selector:"[kendoMultiSelectTreeFlatBinding]"}),i.__metadata("design:paramtypes",[o.DataBoundComponent])],t)}(o.FlatDataBindingDirective);t.MultiSelectTreeFlatBindingDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(6),s=function(e){function t(t){var n=e.call(this,t)||this;return n.multiSelectTree=t,n}return i.__extends(t,e),Object.defineProperty(t.prototype,"data",{set:function(e){this.multiSelectTree.nodes=e,this.nodes=e},enumerable:!0,configurable:!0}),i.__decorate([r.Input("kendoMultiSelectTreeHierarchyBinding"),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],t.prototype,"data",null),t=i.__decorate([r.Directive({selector:"[kendoMultiSelectTreeHierarchyBinding]"}),i.__metadata("design:paramtypes",[o.DataBoundComponent])],t)}(o.HierarchyBindingDirective);t.MultiSelectTreeHierarchyBindingDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(6),s=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),i.__decorate([r.Input("isNodeExpanded"),i.__metadata("design:type",Function)],t.prototype,"isExpanded",void 0),t=i.__decorate([r.Directive({selector:"[kendoDropDownTreeExpandable], [kendoMultiSelectTreeExpandable]"}),i.__metadata("design:paramtypes",[o.ExpandableComponent])],t)}(o.ExpandDirective);t.DropDownTreesExpandDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(27),s=n(6),a=n(21),u=n(49),c=n(44),l=n(50),p=n(51),d=n(52),h=n(53),f=n(54),m=n(36),v=n(76),g=[u.DropDownTreeComponent,c.MultiSelectTreeComponent,l.DropDownTreeFlatBindingDirective,p.DropDownTreeHierarchyBindingDirective,d.MultiSelectTreeFlatBindingDirective,h.MultiSelectTreeHierarchyBindingDirective,f.DropDownTreesExpandDirective,m.NodeTemplateDirective,v.MultiSelectTreeSummaryTagDirective],b=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[g],exports:[g,a.SharedDirectivesModule],imports:[o.SharedModule,s.TreeViewModule]})],e)}();t.DropDownTreesModule=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"noDataText",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"clearTitle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"checkAllText",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"selectButtonText",void 0),t}(n(4).ComponentMessages);t.Messages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(24),s=n(2),a={caseSensitive:!1,operator:"startsWith"},u=function(){function e(e){this.component=e,this.filterable=!0,this._data=[]}return Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||[]},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.component.filterable=this.filterable,this.filterChangeSubscription=this.component.filterChange.subscribe(this.handleFilterChange.bind(this))},e.prototype.ngOnDestroy=function(){s.isPresent(this.filterChangeSubscription)&&this.filterChangeSubscription.unsubscribe()},e.prototype.handleFilterChange=function(e){var t=this;this.component.data=this.data.filter((function(n){return t.matchesAnyField(n,e)}))},e.prototype.matchesAnyField=function(e,t){var n=this,i=this.normalizeValue(t),r=this.filterSettings.fields;return 0===r.length?this.checkItem(e,i):r.some((function(t){return n.checkItem(s.getter(e,t),i)}))},e.prototype.checkItem=function(e,t){return e=this.normalizeValue(e),"contains"===this.filterSettings.operator?-1!==e.indexOf(t):0===e.indexOf(t)},e.prototype.normalizeValue=function(e){var t=s.isPresent(e)?e.toString():"";return this.filterSettings.caseSensitive?t:t.toLowerCase()},e.prototype.getFilterFields=function(e){return this.component.textField||this.component.valueField?s.isArray(e)&&e.length>0?e:[this.component.textField||this.component.valueField]:[]},Object.defineProperty(e.prototype,"filterSettings",{get:function(){var e=this.rawSettings,t=s.isPresent(e)&&"object"==typeof e?e.fields:[];return Object.assign({},a,e,{fields:this.getFilterFields(t)})},enumerable:!0,configurable:!0}),i.__decorate([r.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),i.__decorate([r.Input("kendoDropDownFilter"),i.__metadata("design:type",Object)],e.prototype,"rawSettings",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),e=i.__decorate([r.Directive({selector:"[kendoDropDownFilter]"}),i.__metadata("design:paramtypes",[o.FilterableComponent])],e)}();t.FilterDirective=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),s=function(){function e(e){this.checkboxes={enabled:!1},this.multipleSelection=!1,this.selectionService=e}return Object.defineProperty(e.prototype,"focusedClassName",{get:function(){return this.selectionService.isFocused(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedClassName",{get:function(){return!this.checkboxes.enabled&&this.selectionService.isSelected(this.index)},enumerable:!0,configurable:!0}),e.prototype.onClick=function(e){e.stopPropagation(),this.checkboxes.enabled&&!this.checkboxes.checkOnClick||(this.multipleSelection?this.selectionService.isSelected(this.index)?this.selectionService.unselect(this.index):this.selectionService.add(this.index):this.selectionService.change(this.index))},i.__decorate([r.HostBinding("attr.index"),r.Input(),i.__metadata("design:type",Number)],e.prototype,"index",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"checkboxes",void 0),i.__decorate([r.HostBinding("style.height.px"),r.HostBinding("style.minHeight.px"),r.Input(),i.__metadata("design:type",Number)],e.prototype,"height",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"multipleSelection",void 0),i.__decorate([r.HostBinding("class.k-focus"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"focusedClassName",null),i.__decorate([r.HostBinding("class.k-selected"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"selectedClassName",null),i.__decorate([r.HostListener("click",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"onClick",null),e=i.__decorate([r.Directive({selector:"[kendoDropDownsSelectable]"}),i.__metadata("design:paramtypes",[o.SelectionService])],e)}();t.SelectableDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.viewContainerRef=e}return Object.defineProperty(e.prototype,"templateContext",{set:function(e){this.insertedViewRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.insertedViewRef)),this.insertedViewRef=void 0),e.templateRef&&(this.insertedViewRef=this.viewContainerRef.createEmbeddedView(e.templateRef,e))},enumerable:!0,configurable:!0}),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"templateContext",null),e=i.__decorate([r.Directive({selector:"[templateContext]"}),i.__metadata("design:paramtypes",[r.ViewContainerRef])],e)}();t.TemplateContextDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),s=function(){function e(){}return e.prototype.addItem=function(e){if(!this.isItemChecked(e)){var t=o.getHierarchicalItemLevel(e.index),n=i.__assign({},e,{level:t});this.checkedItems.push(n),this.checkedKeys.add(this.getKey(n))}},e.prototype.removeItem=function(e){var t=this;if(this.isItemChecked(e)){var n=o.getHierarchicalItemLevel(e.index),r=i.__assign({},e,{level:n});this.checkedItems=this.checkedItems.filter((function(e){return o.valueFrom(e,t.valueField)!==o.valueFrom(r,t.valueField)})),this.checkedKeys.delete(this.getKey(r))}},e.prototype.isItemChecked=function(e){var t=e.index.split("_").length-1;return e.level=t,this.checkedKeys.has(this.getKey(e))},e.prototype.updateItems=function(){var e=this;this.checkedItems=this.checkedItems||[],this.checkedKeys=new Set(this.checkedItems.map((function(t){return e.getKey(t)})))},e.prototype.getKey=function(e){return o.isArray(this.valueField)?o.valueFrom(e,this.valueField)+"_"+e.level:o.valueFrom(e,this.valueField)},i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"valueField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"checkedItems",void 0),e}();t.BaseCheckDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),s=n(38),a=function(){function e(e){this.multiSelectComponent=e,this.showAfter=0,this.createTagMapper()}return e.prototype.ngOnChanges=function(e){o.isPresent(e.showAfter)&&(this.createTagMapper(),this.multiSelectComponent.onTagMapperChange())},e.prototype.createTagMapper=function(){var e=o.parseNumber(this.showAfter);this.multiSelectComponent.tagMapper=function(t){if(t.length>e){var n=void 0;return(n=t.slice(0,e)).push(t.slice(e,t.length)),n}return t}},i.__decorate([r.Input("kendoMultiSelectSummaryTag"),i.__metadata("design:type",Object)],e.prototype,"showAfter",void 0),e=i.__decorate([r.Directive({selector:"[kendoMultiSelectSummaryTag]"}),i.__metadata("design:paramtypes",[s.MultiSelectComponent])],e)}();t.SummaryTagDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(45),s=n(27),a=n(21),u=[o.AutoCompleteComponent],c=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[u],exports:[u,a.SharedDirectivesModule],imports:[s.SharedModule]})],e)}();t.AutoCompleteModule=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(29),s=n(37),a=n(48),u=n(41),c=n(27),l=n(21),p=n(10),d=n(43),h=n(42),f=[s.ComboBoxComponent,a.MultiColumnComboBoxComponent,u.ComboBoxColumnComponent,d.ColumnHeaderTemplateDirective,h.ColumnCellTemplateDirective],m=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[f],exports:[f,l.SharedDirectivesModule],imports:[c.SharedModule],providers:[{provide:p.TOUCH_ENABLED,useValue:o.touchEnabled}]})],e)}();t.ComboBoxModule=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(47),s=n(27),a=n(21),u=[o.DropDownListComponent],c=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[u],exports:[u,a.SharedDirectivesModule],imports:[s.SharedModule]})],e)}();t.DropDownListModule=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(29),s=n(38),a=n(39),u=n(61),c=n(27),l=n(21),p=n(10),d=[s.MultiSelectComponent,u.SummaryTagDirective,a.CustomItemTemplateDirective],h=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[d],exports:[d,l.SharedDirectivesModule],imports:[c.SharedModule],providers:[{provide:p.TOUCH_ENABLED,useValue:o.touchEnabled}]})],e)}();t.MultiSelectModule=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(45);t.AutoCompleteComponent=i.AutoCompleteComponent;var r=n(37);t.ComboBoxComponent=r.ComboBoxComponent;var o=n(47);t.DropDownListComponent=o.DropDownListComponent;var s=n(38);t.MultiSelectComponent=s.MultiSelectComponent;var a=n(48);t.MultiColumnComboBoxComponent=a.MultiColumnComboBoxComponent;var u=n(41);t.ComboBoxColumnComponent=u.ComboBoxColumnComponent;var c=n(42);t.ColumnCellTemplateDirective=c.ColumnCellTemplateDirective;var l=n(43);t.ColumnHeaderTemplateDirective=l.ColumnHeaderTemplateDirective;var p=n(49);t.DropDownTreeComponent=p.DropDownTreeComponent;var d=n(44);t.MultiSelectTreeComponent=d.MultiSelectTreeComponent;var h=n(50);t.DropDownTreeFlatBindingDirective=h.DropDownTreeFlatBindingDirective;var f=n(51);t.DropDownTreeHierarchyBindingDirective=f.DropDownTreeHierarchyBindingDirective;var m=n(52);t.MultiSelectTreeFlatBindingDirective=m.MultiSelectTreeFlatBindingDirective;var v=n(53);t.MultiSelectTreeHierarchyBindingDirective=v.MultiSelectTreeHierarchyBindingDirective;var g=n(54);t.DropDownTreesExpandDirective=g.DropDownTreesExpandDirective;var b=n(55);t.DropDownTreesModule=b.DropDownTreesModule;var y=n(36);t.NodeTemplateDirective=y.NodeTemplateDirective;var _=n(16);t.ItemTemplateDirective=_.ItemTemplateDirective;var x=n(17);t.GroupTemplateDirective=x.GroupTemplateDirective;var w=n(18);t.FixedGroupTemplateDirective=w.FixedGroupTemplateDirective;var S=n(39);t.CustomItemTemplateDirective=S.CustomItemTemplateDirective;var C=n(12);t.HeaderTemplateDirective=C.HeaderTemplateDirective;var I=n(13);t.FooterTemplateDirective=I.FooterTemplateDirective;var T=n(34);t.ValueTemplateDirective=T.ValueTemplateDirective;var E=n(59);t.TemplateContextDirective=E.TemplateContextDirective;var k=n(28);t.GroupTagTemplateDirective=k.GroupTagTemplateDirective;var D=n(58);t.SelectableDirective=D.SelectableDirective;var O=n(61);t.SummaryTagDirective=O.SummaryTagDirective;var P=n(57);t.FilterDirective=P.FilterDirective;var F=n(77);t.DropDownsModule=F.DropDownsModule;var A=n(65);t.MultiSelectModule=A.MultiSelectModule;var j=n(27);t.SharedModule=j.SharedModule;var M=n(62);t.AutoCompleteModule=M.AutoCompleteModule;var N=n(63);t.ComboBoxModule=N.ComboBoxModule;var B=n(64);t.DropDownListModule=B.DropDownListModule;var z=n(21);t.SharedDirectivesModule=z.SharedDirectivesModule;var R=n(25);t.ListComponent=R.ListComponent;var V=n(9);t.PopupComponent=V.PopupComponent;var L=n(15);t.PreventableEvent=L.PreventableEvent;var H=n(40);t.RemoveTagEvent=H.RemoveTagEvent},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2);t.normalizeCheckboxesSettings=function(e){if(i.isObject(e)){return Object.assign({},{enabled:!0,checkOnClick:!0},e)}return{enabled:Boolean(e),checkOnClick:!0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(2);t.scrollbarWidth=function(){if(isNaN(i)){var e=document.createElement("div");e.style.cssText="overflow: scroll; overflow-x: hidden; zoom: 1; clear: both; display: block;",e.innerHTML="&nbsp;",document.body.appendChild(e),i=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return i};t.getRowWidthFromColumnsMeta=function(e){if(!function(e){return!(!r.isPresent(e)||0===e.length)&&e.toArray().every((function(e){return!isNaN(e.width)&&e.width>0}))}(e))return null;var n=t.scrollbarWidth()+2;return e.reduce((function(e,t){return!t.hidden&&t.matchesMedia&&(e+=parseInt(t.width,10)),e}),n)}},function(e,t){e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(35),s=n(28),a=n(2),u=function(){function e(e,t){this.renderer=e,this.hostElement=t,this.rounded="medium",this.fillMode="solid",this.disabledIndices=new Set,this.removeTag=new r.EventEmitter,this.hostClasses=!0,this._size="medium"}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.hostElement.nativeElement,a.getSizeClass("chip-list",this.size)),e&&this.renderer.addClass(this.hostElement.nativeElement,a.getSizeClass("chip-list",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostId",{get:function(){return this.id},enumerable:!0,configurable:!0}),e.prototype.tagProp=function(e,t,n){var i=t&&this.getPropField(e,t,n);return a.getter(e,i)},e.prototype.isTagDisabled=function(e,t){var n=this;return this.isGroupTag(e)?e.every((function(e,i){return n.disabledIndices.has(i+t)})):this.disabledIndices.has(t)},e.prototype.deleteTag=function(e,t,n){e.preventDefault(),e.stopImmediatePropagation(),this.disabled||1!==e.which||this.removeTag.emit({tag:t,index:n})},e.prototype.itemId=function(e,t){if(e)return this.tagPrefix+"-"+this.tagProp(e,this.valueField,t)},e.prototype.isGroupTag=function(e){return e instanceof Array},e.prototype.tagAriaHidden=function(e){return a.isPresent(this.focused)&&this.focused!==e},e.prototype.getPropField=function(e,t,n){var i=t.length-1;if("string"==typeof t)return t;if(this.valueDepth){var r=this.valueDepth[n];return i<r?t[i]:t[r]}return t.find((function(t){return t in e}))},i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"tags",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"textField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"valueField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"valueDepth",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"focused",void 0),i.__decorate([r.Input(),i.__metadata("design:type",o.TagTemplateDirective)],e.prototype,"template",void 0),i.__decorate([r.Input(),i.__metadata("design:type",s.GroupTagTemplateDirective)],e.prototype,"groupTemplate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"tagPrefix",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"id",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"rounded",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"fillMode",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Set)],e.prototype,"disabledIndices",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"removeTag",void 0),i.__decorate([r.HostBinding("class.k-input-values"),r.HostBinding("class.k-chip-list"),r.HostBinding("class.k-selection-multiple"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([r.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"hostId",null),e=i.__decorate([r.Component({selector:"kendo-taglist",template:"\n <div\n *ngFor=\"let tag of tags; let index = index;\"\n [attr.id]=\"itemId(tag, index)\"\n [attr.aria-hidden]=\"tagAriaHidden(index)\"\n class=\"k-chip\"\n [ngClass]=\"{\n 'k-focus': index === focused,\n 'k-disabled': isTagDisabled(tag, index),\n 'k-chip-sm': size === 'small',\n 'k-chip-md': size === 'medium',\n 'k-chip-lg': size === 'large',\n 'k-rounded-sm': rounded === 'small',\n 'k-rounded-md': rounded === 'medium',\n 'k-rounded-lg': rounded === 'large',\n 'k-rounded-full': rounded === 'full',\n 'k-chip-solid k-chip-solid-base': fillMode === 'solid',\n 'k-chip-flat k-chip-flat-base': fillMode === 'flat',\n 'k-chip-outline k-chip-outline-base': fillMode === 'outline'\n }\"\n >\n <span class=\"k-chip-content\">\n <ng-template *ngIf=\"isGroupTag(tag); then groupTag else singleTag\"></ng-template>\n <ng-template #groupTag>\n <span class=\"k-chip-label k-text-ellipsis\">\n <ng-template *ngIf=\"groupTemplate\"\n [templateContext]=\"{\n templateRef: groupTemplate.templateRef,\n $implicit: tag\n }\">\n </ng-template>\n <ng-template [ngIf]=\"!groupTemplate\">{{ tag.length }} {{ tag.length === 1 ? 'item' : 'items' }} selected</ng-template>\n </span>\n </ng-template>\n <ng-template #singleTag>\n <span class=\"k-chip-label k-text-ellipsis\">\n <ng-template *ngIf=\"template\"\n [templateContext]=\"{\n templateRef: template.templateRef,\n $implicit: tag\n }\">\n </ng-template>\n <ng-template [ngIf]=\"!template\">{{ tagProp(tag, textField, index) }}</ng-template>\n </span>\n </ng-template>\n </span>\n\n <span class=\"k-chip-actions\">\n <span aria-label=\"delete\" [attr.aria-hidden]=\"index !== focused\" class=\"k-chip-action k-chip-remove-action\">\n <span class=\"k-icon k-i-x-circle\" (mousedown)=\"deleteTag($event, tag, index)\">\n </span>\n </span>\n </span>\n </div>\n <ng-content></ng-content>\n "}),i.__metadata("design:paramtypes",[r.Renderer2,r.ElementRef])],e)}();t.TagListComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),s=n(56),a=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([r.Directive({providers:[{provide:s.Messages,useExisting:r.forwardRef((function(){return n}))}],selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(s.Messages);t.LocalizedMessagesDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),s=n(56),a=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([r.Component({providers:[{provide:s.Messages,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-dropdownlist-messages,kendo-combobox-messages,kendo-multicolumncombobox-messages,kendo-autocomplete-messages,kendo-multiselect-messages,kendo-dropdowntree-messages,kendo-multiselecttree-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(s.Messages);t.CustomMessagesComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e,t){this.element=e,this.zone=t}return e.prototype.ngOnChanges=function(){var e=this;this.focused&&this.nextTick((function(){return e.element.nativeElement.focus()}))},e.prototype.nextTick=function(e){this.zone.runOutsideAngular((function(){return setTimeout(e)}))},i.__decorate([r.Input("filterInput"),i.__metadata("design:type",Boolean)],e.prototype,"focused",void 0),e=i.__decorate([r.Directive({selector:"[filterInput]"}),i.__metadata("design:paramtypes",[r.ElementRef,r.NgZone])],e)}();t.FilterInputDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(6),s=n(14),a=n(22),u=n(2),c=function(e){function t(t){var n=e.call(this)||this;return n.treeView=t,n.checkedItemsChange=new r.EventEmitter,n.checkedKeys=new Set,n.subscriptions=new s.Subscription,n.subscriptions.add(n.treeView.checkedChange.subscribe(n.handleCheckedChange.bind(n))),n.treeView.isChecked=n.getCheckedState.bind(n),n}return i.__extends(t,e),t.prototype.ngOnChanges=function(e){u.isPresent(e.checkable)&&this.toggleCheckOnClick(),u.isPresent(e.checkedItems)&&this.updateItems()},t.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.unsubscribeClick()},t.prototype.getCheckedState=function(e,t){return this.isItemChecked({dataItem:e,index:t})?"checked":this.checkable.checkChildren&&this.isItemIndeterminate(this.treeView.itemLookup(t))?"indeterminate":"none"},t.prototype.handleCheckedChange=function(e){this.checkNode(e),this.checkable.checkChildren&&this.checkParents(e.parent),this.checkedItemsChange.emit(this.checkedItems.slice())},t.prototype.toggleCheckOnClick=function(){var e=this;this.unsubscribeClick(),this.checkable.checkOnClick&&(this.clickSubscription=this.treeView.nodeClick.pipe(a.filter((function(e){return"click"===e.type}))).subscribe((function(t){var n=e.treeView.itemLookup(t.item.index);e.handleCheckedChange(n)})))},t.prototype.unsubscribeClick=function(){this.clickSubscription&&(this.clickSubscription.unsubscribe(),this.clickSubscription=null)},t.prototype.checkNode=function(e){var t=this;if(!this.treeView.isDisabled(e.item.dataItem,e.item.index)){var n=e.item,i=[n];if(this.checkable.checkChildren){u.fetchDescendentNodes(e,(function(e){return t.treeView.isVisible(e.dataItem,e.index)&&!t.treeView.isDisabled(e.dataItem,e.index)})).forEach((function(e){return i.push(e.item)}))}var r=!this.isItemChecked(n);i.forEach((function(e){r?t.addItem(e):t.removeItem(e)}))}},t.prototype.checkParents=function(e){for(var t=this,n=e;n;){n.children.every((function(e){return t.isItemChecked(e)}))?this.addItem(n.item):this.removeItem(n.item),n=n.parent}},t.prototype.isItemIndeterminate=function(e){var t=e.children;if(!Array.isArray(t)||0===t.length)return!1;for(var n=0,i=t[n];u.isPresent(i);){if(this.isItemChecked(i.item)||this.isItemIndeterminate(i))return!0;i=t[n+=1]}return!1},i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"checkable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"valueField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],t.prototype,"checkedItems",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"checkedItemsChange",void 0),t=i.__decorate([r.Directive({selector:"[kendoMultiSelectTreeCheckable]"}),i.__metadata("design:paramtypes",[o.TreeViewComponent])],t)}(n(60).BaseCheckDirective);t.CheckDirective=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(6),s=n(2),a=function(e){function t(t,n,i,o){var s=e.call(this)||this;return s.element=t,s.zone=n,s.cdr=i,s.renderer=o,s.checkedItemsChange=new r.EventEmitter,s.checkedKeys=new Set,s}return i.__extends(t,e),t.prototype.handleChange=function(e){var t=this;this.currentCheckedState=e.checked,this.currentIndeterminateState=this.isIndeterminate,this.treeview.nodes.map((function(e,n){var i=String(n),r=t.treeview.itemLookup(i);t.checkNode(r)})),this.checkedItemsChange.emit(this.checkedItems.slice())},Object.defineProperty(t.prototype,"isIndeterminate",{get:function(){var e=this,t=this.treeview.nodes.some((function(t,n){var i=String(n),r=e.treeview.itemLookup(i);return e.someChecked(r)}));return!this.isChecked&&t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isChecked",{get:function(){var e=this;return this.treeview.nodes.every((function(t,n){var i=String(n),r=e.treeview.itemLookup(i);return e.allChecked(r)}))},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){s.isPresent(e.checkedItems)&&(this.updateItems(),this.renderer.setProperty(this.element.nativeElement,"checked",this.isChecked),this.renderer.setProperty(this.element.nativeElement,"indeterminate",this.isIndeterminate))},t.prototype.ngOnInit=function(){var e=this;this.focused&&this.nextTick((function(){return e.element.nativeElement.focus()}))},t.prototype.nextTick=function(e){this.zone.runOutsideAngular((function(){return setTimeout(e)}))},t.prototype.checkNode=function(e){var t=this;if(!this.treeview.isDisabled(e.item.dataItem,e.item.index)){var n=[];n.push(e.item),s.fetchDescendentNodes(e,(function(e){return t.treeview.isVisible(e.dataItem,e.index)&&!t.treeview.isDisabled(e.dataItem,e.index)})).forEach((function(e){return n.push(e.item)})),n.forEach((function(e){t.currentIndeterminateState?"check"===t.lastAction?t.addItem(e):t.removeItem(e):t.currentCheckedState?t.addItem(e):t.removeItem(e)}))}},t.prototype.allChecked=function(e){var t=this,n=e&&e.children;if(Array.isArray(n))return n.every((function(e){return e.children.length?t.isItemChecked(e.item)&&t.allChecked(e):t.isItemChecked(e.item)}))&&this.isItemChecked(e.item)},t.prototype.someChecked=function(e){var t=this,n=e&&e.children;if(Array.isArray(n))return n.some((function(e){return e.children.length?t.isItemChecked(e.item)||t.someChecked(e):t.isItemChecked(e.item)}))||this.isItemChecked(e.item)},i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"lastAction",void 0),i.__decorate([r.Input(),i.__metadata("design:type",o.TreeViewComponent)],t.prototype,"treeview",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],t.prototype,"checkedItems",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"valueField",void 0),i.__decorate([r.Input("checkAll"),i.__metadata("design:type",Boolean)],t.prototype,"focused",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"checkedItemsChange",void 0),i.__decorate([r.HostListener("change",["$event.target"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],t.prototype,"handleChange",null),t=i.__decorate([r.Directive({selector:"[checkAll]"}),i.__metadata("design:paramtypes",[r.ElementRef,r.NgZone,r.ChangeDetectorRef,r.Renderer2])],t)}(n(60).BaseCheckDirective);t.CheckAllDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),s=n(44),a=function(){function e(e){this.multiSelectTreeComponent=e,this.showAfter=0,this.createTagMapper()}return e.prototype.ngOnChanges=function(e){o.isPresent(e.showAfter)&&(this.createTagMapper(),this.multiSelectTreeComponent.handleTagMapperChange(this.showAfter))},e.prototype.createTagMapper=function(){var e=o.parseNumber(this.showAfter);this.multiSelectTreeComponent.tagMapper=function(t){return t.length>e?t.slice(0,e).concat([t.slice(e)]):t}},i.__decorate([r.Input("kendoMultiSelectTreeSummaryTag"),i.__metadata("design:type",Object)],e.prototype,"showAfter",void 0),e=i.__decorate([r.Directive({selector:"[kendoMultiSelectTreeSummaryTag]"}),i.__metadata("design:paramtypes",[s.MultiSelectTreeComponent])],e)}();t.MultiSelectTreeSummaryTagDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(62),s=n(63),a=n(64),u=n(65),c=n(55),l=function(){function e(){}return e=i.__decorate([r.NgModule({exports:[o.AutoCompleteModule,s.ComboBoxModule,a.DropDownListModule,u.MultiSelectModule,c.DropDownTreesModule]})],e)}();t.DropDownsModule=l}])}));