@haiilo/catalyst 0.5.6 → 0.5.7

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 (296) hide show
  1. package/dist/catalyst/assets/fonts/AzeretMono-Regular.woff2 +0 -0
  2. package/dist/catalyst/assets/fonts/DMSans-Bold.woff2 +0 -0
  3. package/dist/catalyst/assets/fonts/DMSans-BoldItalic.woff2 +0 -0
  4. package/dist/catalyst/assets/fonts/DMSans-Italic.woff2 +0 -0
  5. package/dist/catalyst/assets/fonts/DMSans-Medium.woff2 +0 -0
  6. package/dist/catalyst/assets/fonts/DMSans-MediumItalic.woff2 +0 -0
  7. package/dist/catalyst/assets/fonts/DMSans-Regular.woff2 +0 -0
  8. package/dist/catalyst/assets/fonts/Lato-Black.woff +0 -0
  9. package/dist/catalyst/assets/fonts/Lato-Black.woff2 +0 -0
  10. package/dist/catalyst/assets/fonts/Lato-BlackItalic.woff +0 -0
  11. package/dist/catalyst/assets/fonts/Lato-BlackItalic.woff2 +0 -0
  12. package/dist/catalyst/assets/fonts/Lato-Bold.woff +0 -0
  13. package/dist/catalyst/assets/fonts/Lato-Bold.woff2 +0 -0
  14. package/dist/catalyst/assets/fonts/Lato-BoldItalic.woff +0 -0
  15. package/dist/catalyst/assets/fonts/Lato-BoldItalic.woff2 +0 -0
  16. package/dist/catalyst/assets/fonts/Lato-Hairline.woff +0 -0
  17. package/dist/catalyst/assets/fonts/Lato-Hairline.woff2 +0 -0
  18. package/dist/catalyst/assets/fonts/Lato-HairlineItalic.woff +0 -0
  19. package/dist/catalyst/assets/fonts/Lato-HairlineItalic.woff2 +0 -0
  20. package/dist/catalyst/assets/fonts/Lato-Heavy.woff +0 -0
  21. package/dist/catalyst/assets/fonts/Lato-Heavy.woff2 +0 -0
  22. package/dist/catalyst/assets/fonts/Lato-HeavyItalic.woff +0 -0
  23. package/dist/catalyst/assets/fonts/Lato-HeavyItalic.woff2 +0 -0
  24. package/dist/catalyst/assets/fonts/Lato-Italic.woff +0 -0
  25. package/dist/catalyst/assets/fonts/Lato-Italic.woff2 +0 -0
  26. package/dist/catalyst/assets/fonts/Lato-Light.woff +0 -0
  27. package/dist/catalyst/assets/fonts/Lato-Light.woff2 +0 -0
  28. package/dist/catalyst/assets/fonts/Lato-LightItalic.woff +0 -0
  29. package/dist/catalyst/assets/fonts/Lato-LightItalic.woff2 +0 -0
  30. package/dist/catalyst/assets/fonts/Lato-Medium.woff +0 -0
  31. package/dist/catalyst/assets/fonts/Lato-Medium.woff2 +0 -0
  32. package/dist/catalyst/assets/fonts/Lato-MediumItalic.woff +0 -0
  33. package/dist/catalyst/assets/fonts/Lato-MediumItalic.woff2 +0 -0
  34. package/dist/catalyst/assets/fonts/Lato-Regular.woff +0 -0
  35. package/dist/catalyst/assets/fonts/Lato-Regular.woff2 +0 -0
  36. package/dist/catalyst/assets/fonts/Lato-Semibold.woff +0 -0
  37. package/dist/catalyst/assets/fonts/Lato-Semibold.woff2 +0 -0
  38. package/dist/catalyst/assets/fonts/Lato-SemiboldItalic.woff +0 -0
  39. package/dist/catalyst/assets/fonts/Lato-SemiboldItalic.woff2 +0 -0
  40. package/dist/catalyst/assets/fonts/Lato-Thin.woff +0 -0
  41. package/dist/catalyst/assets/fonts/Lato-Thin.woff2 +0 -0
  42. package/dist/catalyst/assets/fonts/Lato-ThinItalic.woff +0 -0
  43. package/dist/catalyst/assets/fonts/Lato-ThinItalic.woff2 +0 -0
  44. package/dist/catalyst/catalyst.css +1 -0
  45. package/dist/catalyst/catalyst.esm.js +2 -0
  46. package/dist/catalyst/catalyst.esm.js.map +1 -0
  47. package/dist/catalyst/index.cdn.js +21 -0
  48. package/dist/catalyst/index.esm.js +2 -0
  49. package/dist/catalyst/index.esm.js.map +1 -0
  50. package/dist/catalyst/p-9a3c2375.js +2 -0
  51. package/dist/catalyst/p-9a3c2375.js.map +1 -0
  52. package/dist/catalyst/p-a6b8ebe9.entry.js +10 -0
  53. package/dist/catalyst/p-a6b8ebe9.entry.js.map +1 -0
  54. package/dist/catalyst/p-bfc656ca.js +2 -0
  55. package/dist/catalyst/p-bfc656ca.js.map +1 -0
  56. package/dist/catalyst/p-e82b63e9.js +2 -0
  57. package/dist/catalyst/p-e82b63e9.js.map +1 -0
  58. package/dist/cjs/app-globals-2a30d681.js +256 -0
  59. package/dist/cjs/app-globals-2a30d681.js.map +1 -0
  60. package/dist/cjs/cat-alert_15.cjs.entry.js +4651 -0
  61. package/dist/cjs/cat-alert_15.cjs.entry.js.map +1 -0
  62. package/dist/cjs/cat-icon-registry-b3a95a6b.js +442 -0
  63. package/dist/cjs/cat-icon-registry-b3a95a6b.js.map +1 -0
  64. package/dist/cjs/catalyst.cjs.js +24 -0
  65. package/dist/cjs/catalyst.cjs.js.map +1 -0
  66. package/dist/cjs/index-5d72f0e4.js +1347 -0
  67. package/dist/cjs/index-5d72f0e4.js.map +1 -0
  68. package/dist/cjs/index.cjs.js +12 -0
  69. package/dist/cjs/index.cjs.js.map +1 -0
  70. package/dist/cjs/loader.cjs.js +26 -0
  71. package/dist/cjs/loader.cjs.js.map +1 -0
  72. package/dist/collection/assets/fonts/AzeretMono-Regular.woff2 +0 -0
  73. package/dist/collection/assets/fonts/DMSans-Bold.woff2 +0 -0
  74. package/dist/collection/assets/fonts/DMSans-BoldItalic.woff2 +0 -0
  75. package/dist/collection/assets/fonts/DMSans-Italic.woff2 +0 -0
  76. package/dist/collection/assets/fonts/DMSans-Medium.woff2 +0 -0
  77. package/dist/collection/assets/fonts/DMSans-MediumItalic.woff2 +0 -0
  78. package/dist/collection/assets/fonts/DMSans-Regular.woff2 +0 -0
  79. package/dist/collection/assets/fonts/Lato-Black.woff +0 -0
  80. package/dist/collection/assets/fonts/Lato-Black.woff2 +0 -0
  81. package/dist/collection/assets/fonts/Lato-BlackItalic.woff +0 -0
  82. package/dist/collection/assets/fonts/Lato-BlackItalic.woff2 +0 -0
  83. package/dist/collection/assets/fonts/Lato-Bold.woff +0 -0
  84. package/dist/collection/assets/fonts/Lato-Bold.woff2 +0 -0
  85. package/dist/collection/assets/fonts/Lato-BoldItalic.woff +0 -0
  86. package/dist/collection/assets/fonts/Lato-BoldItalic.woff2 +0 -0
  87. package/dist/collection/assets/fonts/Lato-Hairline.woff +0 -0
  88. package/dist/collection/assets/fonts/Lato-Hairline.woff2 +0 -0
  89. package/dist/collection/assets/fonts/Lato-HairlineItalic.woff +0 -0
  90. package/dist/collection/assets/fonts/Lato-HairlineItalic.woff2 +0 -0
  91. package/dist/collection/assets/fonts/Lato-Heavy.woff +0 -0
  92. package/dist/collection/assets/fonts/Lato-Heavy.woff2 +0 -0
  93. package/dist/collection/assets/fonts/Lato-HeavyItalic.woff +0 -0
  94. package/dist/collection/assets/fonts/Lato-HeavyItalic.woff2 +0 -0
  95. package/dist/collection/assets/fonts/Lato-Italic.woff +0 -0
  96. package/dist/collection/assets/fonts/Lato-Italic.woff2 +0 -0
  97. package/dist/collection/assets/fonts/Lato-Light.woff +0 -0
  98. package/dist/collection/assets/fonts/Lato-Light.woff2 +0 -0
  99. package/dist/collection/assets/fonts/Lato-LightItalic.woff +0 -0
  100. package/dist/collection/assets/fonts/Lato-LightItalic.woff2 +0 -0
  101. package/dist/collection/assets/fonts/Lato-Medium.woff +0 -0
  102. package/dist/collection/assets/fonts/Lato-Medium.woff2 +0 -0
  103. package/dist/collection/assets/fonts/Lato-MediumItalic.woff +0 -0
  104. package/dist/collection/assets/fonts/Lato-MediumItalic.woff2 +0 -0
  105. package/dist/collection/assets/fonts/Lato-Regular.woff +0 -0
  106. package/dist/collection/assets/fonts/Lato-Regular.woff2 +0 -0
  107. package/dist/collection/assets/fonts/Lato-Semibold.woff +0 -0
  108. package/dist/collection/assets/fonts/Lato-Semibold.woff2 +0 -0
  109. package/dist/collection/assets/fonts/Lato-SemiboldItalic.woff +0 -0
  110. package/dist/collection/assets/fonts/Lato-SemiboldItalic.woff2 +0 -0
  111. package/dist/collection/assets/fonts/Lato-Thin.woff +0 -0
  112. package/dist/collection/assets/fonts/Lato-Thin.woff2 +0 -0
  113. package/dist/collection/assets/fonts/Lato-ThinItalic.woff +0 -0
  114. package/dist/collection/assets/fonts/Lato-ThinItalic.woff2 +0 -0
  115. package/dist/collection/collection-manifest.json +27 -0
  116. package/dist/collection/components/cat-alert/cat-alert.css +61 -0
  117. package/dist/collection/components/cat-alert/cat-alert.js +61 -0
  118. package/dist/collection/components/cat-alert/cat-alert.js.map +1 -0
  119. package/dist/collection/components/cat-badge/cat-badge.css +154 -0
  120. package/dist/collection/components/cat-badge/cat-badge.js +143 -0
  121. package/dist/collection/components/cat-badge/cat-badge.js.map +1 -0
  122. package/dist/collection/components/cat-button/cat-button.css +333 -0
  123. package/dist/collection/components/cat-button/cat-button.js +615 -0
  124. package/dist/collection/components/cat-button/cat-button.js.map +1 -0
  125. package/dist/collection/components/cat-card/cat-card.css +24 -0
  126. package/dist/collection/components/cat-card/cat-card.js +20 -0
  127. package/dist/collection/components/cat-card/cat-card.js.map +1 -0
  128. package/dist/collection/components/cat-checkbox/cat-checkbox.css +105 -0
  129. package/dist/collection/components/cat-checkbox/cat-checkbox.js +314 -0
  130. package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -0
  131. package/dist/collection/components/cat-i18n/cat-i18n-registry.js +70 -0
  132. package/dist/collection/components/cat-i18n/cat-i18n-registry.js.map +1 -0
  133. package/dist/collection/components/cat-icon/cat-icon-registry.js +55 -0
  134. package/dist/collection/components/cat-icon/cat-icon-registry.js.map +1 -0
  135. package/dist/collection/components/cat-icon/cat-icon.css +50 -0
  136. package/dist/collection/components/cat-icon/cat-icon.js +91 -0
  137. package/dist/collection/components/cat-icon/cat-icon.js.map +1 -0
  138. package/dist/collection/components/cat-input/cat-input.css +131 -0
  139. package/dist/collection/components/cat-input/cat-input.js +606 -0
  140. package/dist/collection/components/cat-input/cat-input.js.map +1 -0
  141. package/dist/collection/components/cat-menu/cat-menu.css +34 -0
  142. package/dist/collection/components/cat-menu/cat-menu.js +184 -0
  143. package/dist/collection/components/cat-menu/cat-menu.js.map +1 -0
  144. package/dist/collection/components/cat-radio/cat-radio.css +84 -0
  145. package/dist/collection/components/cat-radio/cat-radio.js +283 -0
  146. package/dist/collection/components/cat-radio/cat-radio.js.map +1 -0
  147. package/dist/collection/components/cat-scrollable/cat-scrollable.css +69 -0
  148. package/dist/collection/components/cat-scrollable/cat-scrollable.js +311 -0
  149. package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +1 -0
  150. package/dist/collection/components/cat-skeleton/cat-skeleton.css +177 -0
  151. package/dist/collection/components/cat-skeleton/cat-skeleton.js +131 -0
  152. package/dist/collection/components/cat-skeleton/cat-skeleton.js.map +1 -0
  153. package/dist/collection/components/cat-spinner/cat-spinner.css +63 -0
  154. package/dist/collection/components/cat-spinner/cat-spinner.js +65 -0
  155. package/dist/collection/components/cat-spinner/cat-spinner.js.map +1 -0
  156. package/dist/collection/components/cat-textarea/cat-textarea.css +72 -0
  157. package/dist/collection/components/cat-textarea/cat-textarea.js +393 -0
  158. package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -0
  159. package/dist/collection/components/cat-toggle/cat-toggle.css +93 -0
  160. package/dist/collection/components/cat-toggle/cat-toggle.js +283 -0
  161. package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -0
  162. package/dist/collection/components/cat-tooltip/cat-tooltip.css +41 -0
  163. package/dist/collection/components/cat-tooltip/cat-tooltip.js +254 -0
  164. package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -0
  165. package/dist/collection/index.cdn.js +21 -0
  166. package/dist/collection/index.js +3 -0
  167. package/dist/collection/index.js.map +1 -0
  168. package/dist/collection/init.js +17 -0
  169. package/dist/collection/init.js.map +1 -0
  170. package/dist/collection/utils/breakpoints.js +12 -0
  171. package/dist/collection/utils/breakpoints.js.map +1 -0
  172. package/dist/collection/utils/first-tabbable.js +6 -0
  173. package/dist/collection/utils/first-tabbable.js.map +1 -0
  174. package/dist/collection/utils/is-touch-screen.js +3 -0
  175. package/dist/collection/utils/is-touch-screen.js.map +1 -0
  176. package/dist/collection/utils/media-matcher.js +55 -0
  177. package/dist/collection/utils/media-matcher.js.map +1 -0
  178. package/dist/collection/utils/platform.js +50 -0
  179. package/dist/collection/utils/platform.js.map +1 -0
  180. package/dist/components/cat-alert.d.ts +11 -0
  181. package/dist/components/cat-alert.js +53 -0
  182. package/dist/components/cat-alert.js.map +1 -0
  183. package/dist/components/cat-badge.d.ts +11 -0
  184. package/dist/components/cat-badge.js +68 -0
  185. package/dist/components/cat-badge.js.map +1 -0
  186. package/dist/components/cat-button.d.ts +11 -0
  187. package/dist/components/cat-button.js +8 -0
  188. package/dist/components/cat-button.js.map +1 -0
  189. package/dist/components/cat-button2.js +346 -0
  190. package/dist/components/cat-button2.js.map +1 -0
  191. package/dist/components/cat-card.d.ts +11 -0
  192. package/dist/components/cat-card.js +35 -0
  193. package/dist/components/cat-card.js.map +1 -0
  194. package/dist/components/cat-checkbox.d.ts +11 -0
  195. package/dist/components/cat-checkbox.js +103 -0
  196. package/dist/components/cat-checkbox.js.map +1 -0
  197. package/dist/components/cat-i18n-registry.js +74 -0
  198. package/dist/components/cat-i18n-registry.js.map +1 -0
  199. package/dist/components/cat-icon-registry.js +59 -0
  200. package/dist/components/cat-icon-registry.js.map +1 -0
  201. package/dist/components/cat-icon.d.ts +11 -0
  202. package/dist/components/cat-icon.js +8 -0
  203. package/dist/components/cat-icon.js.map +1 -0
  204. package/dist/components/cat-icon2.js +49 -0
  205. package/dist/components/cat-icon2.js.map +1 -0
  206. package/dist/components/cat-input.d.ts +11 -0
  207. package/dist/components/cat-input.js +172 -0
  208. package/dist/components/cat-input.js.map +1 -0
  209. package/dist/components/cat-menu.d.ts +11 -0
  210. package/dist/components/cat-menu.js +870 -0
  211. package/dist/components/cat-menu.js.map +1 -0
  212. package/dist/components/cat-radio.d.ts +11 -0
  213. package/dist/components/cat-radio.js +93 -0
  214. package/dist/components/cat-radio.js.map +1 -0
  215. package/dist/components/cat-scrollable.d.ts +11 -0
  216. package/dist/components/cat-scrollable.js +1362 -0
  217. package/dist/components/cat-scrollable.js.map +1 -0
  218. package/dist/components/cat-skeleton.d.ts +11 -0
  219. package/dist/components/cat-skeleton.js +78 -0
  220. package/dist/components/cat-skeleton.js.map +1 -0
  221. package/dist/components/cat-spinner.d.ts +11 -0
  222. package/dist/components/cat-spinner.js +8 -0
  223. package/dist/components/cat-spinner.js.map +1 -0
  224. package/dist/components/cat-spinner2.js +41 -0
  225. package/dist/components/cat-spinner2.js.map +1 -0
  226. package/dist/components/cat-textarea.d.ts +11 -0
  227. package/dist/components/cat-textarea.js +119 -0
  228. package/dist/components/cat-textarea.js.map +1 -0
  229. package/dist/components/cat-toggle.d.ts +11 -0
  230. package/dist/components/cat-toggle.js +93 -0
  231. package/dist/components/cat-toggle.js.map +1 -0
  232. package/dist/components/cat-tooltip.d.ts +11 -0
  233. package/dist/components/cat-tooltip.js +154 -0
  234. package/dist/components/cat-tooltip.js.map +1 -0
  235. package/dist/components/first-tabbable.js +1495 -0
  236. package/dist/components/first-tabbable.js.map +1 -0
  237. package/dist/components/index.d.ts +26 -0
  238. package/dist/components/index.js +258 -0
  239. package/dist/components/index.js.map +1 -0
  240. package/dist/components/loglevel.js +315 -0
  241. package/dist/components/loglevel.js.map +1 -0
  242. package/dist/esm/app-globals-77cd8c8e.js +254 -0
  243. package/dist/esm/app-globals-77cd8c8e.js.map +1 -0
  244. package/dist/esm/cat-alert_15.entry.js +4633 -0
  245. package/dist/esm/cat-alert_15.entry.js.map +1 -0
  246. package/dist/esm/cat-icon-registry-a7acd6f7.js +438 -0
  247. package/dist/esm/cat-icon-registry-a7acd6f7.js.map +1 -0
  248. package/dist/esm/catalyst.js +22 -0
  249. package/dist/esm/catalyst.js.map +1 -0
  250. package/dist/esm/index-fd12be19.js +1320 -0
  251. package/dist/esm/index-fd12be19.js.map +1 -0
  252. package/dist/esm/index.js +3 -0
  253. package/dist/esm/index.js.map +1 -0
  254. package/dist/esm/loader.js +22 -0
  255. package/dist/esm/loader.js.map +1 -0
  256. package/dist/esm/polyfills/core-js.js +11 -0
  257. package/dist/esm/polyfills/css-shim.js +1 -0
  258. package/dist/esm/polyfills/dom.js +79 -0
  259. package/dist/esm/polyfills/es5-html-element.js +1 -0
  260. package/dist/esm/polyfills/index.js +34 -0
  261. package/dist/esm/polyfills/system.js +6 -0
  262. package/dist/index.cjs.js +1 -0
  263. package/dist/index.js +1 -0
  264. package/dist/types/components/cat-alert/cat-alert.d.ts +14 -0
  265. package/dist/types/components/cat-badge/cat-badge.d.ts +29 -0
  266. package/dist/types/components/cat-button/cat-button.d.ts +134 -0
  267. package/dist/types/components/cat-card/cat-card.d.ts +7 -0
  268. package/dist/types/components/cat-checkbox/cat-checkbox.d.ts +69 -0
  269. package/dist/types/components/cat-i18n/cat-i18n-registry.d.ts +18 -0
  270. package/dist/types/components/cat-icon/cat-icon-registry.d.ts +15 -0
  271. package/dist/types/components/cat-icon/cat-icon.d.ts +23 -0
  272. package/dist/types/components/cat-input/cat-input.d.ts +130 -0
  273. package/dist/types/components/cat-menu/cat-menu.d.ts +31 -0
  274. package/dist/types/components/cat-radio/cat-radio.d.ts +63 -0
  275. package/dist/types/components/cat-scrollable/cat-scrollable.d.ts +52 -0
  276. package/dist/types/components/cat-skeleton/cat-skeleton.d.ts +28 -0
  277. package/dist/types/components/cat-spinner/cat-spinner.d.ts +15 -0
  278. package/dist/types/components/cat-textarea/cat-textarea.d.ts +85 -0
  279. package/dist/types/components/cat-toggle/cat-toggle.d.ts +64 -0
  280. package/dist/types/components/cat-tooltip/cat-tooltip.d.ts +46 -0
  281. package/dist/types/components.d.ts +1167 -0
  282. package/dist/types/index.d.ts +3 -0
  283. package/dist/types/init.d.ts +1 -0
  284. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  285. package/dist/types/utils/breakpoints.d.ts +7 -0
  286. package/dist/types/utils/first-tabbable.d.ts +4 -0
  287. package/dist/types/utils/is-touch-screen.d.ts +2 -0
  288. package/dist/types/utils/media-matcher.d.ts +13 -0
  289. package/dist/types/utils/platform.d.ts +18 -0
  290. package/loader/cdn.js +3 -0
  291. package/loader/index.cjs.js +3 -0
  292. package/loader/index.d.ts +12 -0
  293. package/loader/index.es2017.js +3 -0
  294. package/loader/index.js +4 -0
  295. package/loader/package.json +10 -0
  296. package/package.json +2 -2
@@ -0,0 +1,1362 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+
3
+ function isFunction(value) {
4
+ return typeof value === 'function';
5
+ }
6
+
7
+ function createErrorClass(createImpl) {
8
+ const _super = (instance) => {
9
+ Error.call(instance);
10
+ instance.stack = new Error().stack;
11
+ };
12
+ const ctorFunc = createImpl(_super);
13
+ ctorFunc.prototype = Object.create(Error.prototype);
14
+ ctorFunc.prototype.constructor = ctorFunc;
15
+ return ctorFunc;
16
+ }
17
+
18
+ const UnsubscriptionError = createErrorClass((_super) => function UnsubscriptionErrorImpl(errors) {
19
+ _super(this);
20
+ this.message = errors
21
+ ? `${errors.length} errors occurred during unsubscription:
22
+ ${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\n ')}`
23
+ : '';
24
+ this.name = 'UnsubscriptionError';
25
+ this.errors = errors;
26
+ });
27
+
28
+ function arrRemove(arr, item) {
29
+ if (arr) {
30
+ const index = arr.indexOf(item);
31
+ 0 <= index && arr.splice(index, 1);
32
+ }
33
+ }
34
+
35
+ class Subscription {
36
+ constructor(initialTeardown) {
37
+ this.initialTeardown = initialTeardown;
38
+ this.closed = false;
39
+ this._parentage = null;
40
+ this._finalizers = null;
41
+ }
42
+ unsubscribe() {
43
+ let errors;
44
+ if (!this.closed) {
45
+ this.closed = true;
46
+ const { _parentage } = this;
47
+ if (_parentage) {
48
+ this._parentage = null;
49
+ if (Array.isArray(_parentage)) {
50
+ for (const parent of _parentage) {
51
+ parent.remove(this);
52
+ }
53
+ }
54
+ else {
55
+ _parentage.remove(this);
56
+ }
57
+ }
58
+ const { initialTeardown: initialFinalizer } = this;
59
+ if (isFunction(initialFinalizer)) {
60
+ try {
61
+ initialFinalizer();
62
+ }
63
+ catch (e) {
64
+ errors = e instanceof UnsubscriptionError ? e.errors : [e];
65
+ }
66
+ }
67
+ const { _finalizers } = this;
68
+ if (_finalizers) {
69
+ this._finalizers = null;
70
+ for (const finalizer of _finalizers) {
71
+ try {
72
+ execFinalizer(finalizer);
73
+ }
74
+ catch (err) {
75
+ errors = errors !== null && errors !== void 0 ? errors : [];
76
+ if (err instanceof UnsubscriptionError) {
77
+ errors = [...errors, ...err.errors];
78
+ }
79
+ else {
80
+ errors.push(err);
81
+ }
82
+ }
83
+ }
84
+ }
85
+ if (errors) {
86
+ throw new UnsubscriptionError(errors);
87
+ }
88
+ }
89
+ }
90
+ add(teardown) {
91
+ var _a;
92
+ if (teardown && teardown !== this) {
93
+ if (this.closed) {
94
+ execFinalizer(teardown);
95
+ }
96
+ else {
97
+ if (teardown instanceof Subscription) {
98
+ if (teardown.closed || teardown._hasParent(this)) {
99
+ return;
100
+ }
101
+ teardown._addParent(this);
102
+ }
103
+ (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);
104
+ }
105
+ }
106
+ }
107
+ _hasParent(parent) {
108
+ const { _parentage } = this;
109
+ return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent));
110
+ }
111
+ _addParent(parent) {
112
+ const { _parentage } = this;
113
+ this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;
114
+ }
115
+ _removeParent(parent) {
116
+ const { _parentage } = this;
117
+ if (_parentage === parent) {
118
+ this._parentage = null;
119
+ }
120
+ else if (Array.isArray(_parentage)) {
121
+ arrRemove(_parentage, parent);
122
+ }
123
+ }
124
+ remove(teardown) {
125
+ const { _finalizers } = this;
126
+ _finalizers && arrRemove(_finalizers, teardown);
127
+ if (teardown instanceof Subscription) {
128
+ teardown._removeParent(this);
129
+ }
130
+ }
131
+ }
132
+ Subscription.EMPTY = (() => {
133
+ const empty = new Subscription();
134
+ empty.closed = true;
135
+ return empty;
136
+ })();
137
+ const EMPTY_SUBSCRIPTION = Subscription.EMPTY;
138
+ function isSubscription(value) {
139
+ return (value instanceof Subscription ||
140
+ (value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe)));
141
+ }
142
+ function execFinalizer(finalizer) {
143
+ if (isFunction(finalizer)) {
144
+ finalizer();
145
+ }
146
+ else {
147
+ finalizer.unsubscribe();
148
+ }
149
+ }
150
+
151
+ const config = {
152
+ onUnhandledError: null,
153
+ onStoppedNotification: null,
154
+ Promise: undefined,
155
+ useDeprecatedSynchronousErrorHandling: false,
156
+ useDeprecatedNextContext: false,
157
+ };
158
+
159
+ const timeoutProvider = {
160
+ setTimeout(handler, timeout, ...args) {
161
+ const { delegate } = timeoutProvider;
162
+ if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {
163
+ return delegate.setTimeout(handler, timeout, ...args);
164
+ }
165
+ return setTimeout(handler, timeout, ...args);
166
+ },
167
+ clearTimeout(handle) {
168
+ const { delegate } = timeoutProvider;
169
+ return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);
170
+ },
171
+ delegate: undefined,
172
+ };
173
+
174
+ function reportUnhandledError(err) {
175
+ timeoutProvider.setTimeout(() => {
176
+ const { onUnhandledError } = config;
177
+ if (onUnhandledError) {
178
+ onUnhandledError(err);
179
+ }
180
+ else {
181
+ throw err;
182
+ }
183
+ });
184
+ }
185
+
186
+ function noop() { }
187
+
188
+ const COMPLETE_NOTIFICATION = (() => createNotification('C', undefined, undefined))();
189
+ function errorNotification(error) {
190
+ return createNotification('E', undefined, error);
191
+ }
192
+ function nextNotification(value) {
193
+ return createNotification('N', value, undefined);
194
+ }
195
+ function createNotification(kind, value, error) {
196
+ return {
197
+ kind,
198
+ value,
199
+ error,
200
+ };
201
+ }
202
+
203
+ function errorContext(cb) {
204
+ {
205
+ cb();
206
+ }
207
+ }
208
+
209
+ class Subscriber extends Subscription {
210
+ constructor(destination) {
211
+ super();
212
+ this.isStopped = false;
213
+ if (destination) {
214
+ this.destination = destination;
215
+ if (isSubscription(destination)) {
216
+ destination.add(this);
217
+ }
218
+ }
219
+ else {
220
+ this.destination = EMPTY_OBSERVER;
221
+ }
222
+ }
223
+ static create(next, error, complete) {
224
+ return new SafeSubscriber(next, error, complete);
225
+ }
226
+ next(value) {
227
+ if (this.isStopped) {
228
+ handleStoppedNotification(nextNotification(value), this);
229
+ }
230
+ else {
231
+ this._next(value);
232
+ }
233
+ }
234
+ error(err) {
235
+ if (this.isStopped) {
236
+ handleStoppedNotification(errorNotification(err), this);
237
+ }
238
+ else {
239
+ this.isStopped = true;
240
+ this._error(err);
241
+ }
242
+ }
243
+ complete() {
244
+ if (this.isStopped) {
245
+ handleStoppedNotification(COMPLETE_NOTIFICATION, this);
246
+ }
247
+ else {
248
+ this.isStopped = true;
249
+ this._complete();
250
+ }
251
+ }
252
+ unsubscribe() {
253
+ if (!this.closed) {
254
+ this.isStopped = true;
255
+ super.unsubscribe();
256
+ this.destination = null;
257
+ }
258
+ }
259
+ _next(value) {
260
+ this.destination.next(value);
261
+ }
262
+ _error(err) {
263
+ try {
264
+ this.destination.error(err);
265
+ }
266
+ finally {
267
+ this.unsubscribe();
268
+ }
269
+ }
270
+ _complete() {
271
+ try {
272
+ this.destination.complete();
273
+ }
274
+ finally {
275
+ this.unsubscribe();
276
+ }
277
+ }
278
+ }
279
+ const _bind = Function.prototype.bind;
280
+ function bind(fn, thisArg) {
281
+ return _bind.call(fn, thisArg);
282
+ }
283
+ class ConsumerObserver {
284
+ constructor(partialObserver) {
285
+ this.partialObserver = partialObserver;
286
+ }
287
+ next(value) {
288
+ const { partialObserver } = this;
289
+ if (partialObserver.next) {
290
+ try {
291
+ partialObserver.next(value);
292
+ }
293
+ catch (error) {
294
+ handleUnhandledError(error);
295
+ }
296
+ }
297
+ }
298
+ error(err) {
299
+ const { partialObserver } = this;
300
+ if (partialObserver.error) {
301
+ try {
302
+ partialObserver.error(err);
303
+ }
304
+ catch (error) {
305
+ handleUnhandledError(error);
306
+ }
307
+ }
308
+ else {
309
+ handleUnhandledError(err);
310
+ }
311
+ }
312
+ complete() {
313
+ const { partialObserver } = this;
314
+ if (partialObserver.complete) {
315
+ try {
316
+ partialObserver.complete();
317
+ }
318
+ catch (error) {
319
+ handleUnhandledError(error);
320
+ }
321
+ }
322
+ }
323
+ }
324
+ class SafeSubscriber extends Subscriber {
325
+ constructor(observerOrNext, error, complete) {
326
+ super();
327
+ let partialObserver;
328
+ if (isFunction(observerOrNext) || !observerOrNext) {
329
+ partialObserver = {
330
+ next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined,
331
+ error: error !== null && error !== void 0 ? error : undefined,
332
+ complete: complete !== null && complete !== void 0 ? complete : undefined,
333
+ };
334
+ }
335
+ else {
336
+ let context;
337
+ if (this && config.useDeprecatedNextContext) {
338
+ context = Object.create(observerOrNext);
339
+ context.unsubscribe = () => this.unsubscribe();
340
+ partialObserver = {
341
+ next: observerOrNext.next && bind(observerOrNext.next, context),
342
+ error: observerOrNext.error && bind(observerOrNext.error, context),
343
+ complete: observerOrNext.complete && bind(observerOrNext.complete, context),
344
+ };
345
+ }
346
+ else {
347
+ partialObserver = observerOrNext;
348
+ }
349
+ }
350
+ this.destination = new ConsumerObserver(partialObserver);
351
+ }
352
+ }
353
+ function handleUnhandledError(error) {
354
+ {
355
+ reportUnhandledError(error);
356
+ }
357
+ }
358
+ function defaultErrorHandler(err) {
359
+ throw err;
360
+ }
361
+ function handleStoppedNotification(notification, subscriber) {
362
+ const { onStoppedNotification } = config;
363
+ onStoppedNotification && timeoutProvider.setTimeout(() => onStoppedNotification(notification, subscriber));
364
+ }
365
+ const EMPTY_OBSERVER = {
366
+ closed: true,
367
+ next: noop,
368
+ error: defaultErrorHandler,
369
+ complete: noop,
370
+ };
371
+
372
+ const observable = (() => (typeof Symbol === 'function' && Symbol.observable) || '@@observable')();
373
+
374
+ function identity(x) {
375
+ return x;
376
+ }
377
+
378
+ function pipeFromArray(fns) {
379
+ if (fns.length === 0) {
380
+ return identity;
381
+ }
382
+ if (fns.length === 1) {
383
+ return fns[0];
384
+ }
385
+ return function piped(input) {
386
+ return fns.reduce((prev, fn) => fn(prev), input);
387
+ };
388
+ }
389
+
390
+ class Observable {
391
+ constructor(subscribe) {
392
+ if (subscribe) {
393
+ this._subscribe = subscribe;
394
+ }
395
+ }
396
+ lift(operator) {
397
+ const observable = new Observable();
398
+ observable.source = this;
399
+ observable.operator = operator;
400
+ return observable;
401
+ }
402
+ subscribe(observerOrNext, error, complete) {
403
+ const subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);
404
+ errorContext(() => {
405
+ const { operator, source } = this;
406
+ subscriber.add(operator
407
+ ?
408
+ operator.call(subscriber, source)
409
+ : source
410
+ ?
411
+ this._subscribe(subscriber)
412
+ :
413
+ this._trySubscribe(subscriber));
414
+ });
415
+ return subscriber;
416
+ }
417
+ _trySubscribe(sink) {
418
+ try {
419
+ return this._subscribe(sink);
420
+ }
421
+ catch (err) {
422
+ sink.error(err);
423
+ }
424
+ }
425
+ forEach(next, promiseCtor) {
426
+ promiseCtor = getPromiseCtor(promiseCtor);
427
+ return new promiseCtor((resolve, reject) => {
428
+ const subscriber = new SafeSubscriber({
429
+ next: (value) => {
430
+ try {
431
+ next(value);
432
+ }
433
+ catch (err) {
434
+ reject(err);
435
+ subscriber.unsubscribe();
436
+ }
437
+ },
438
+ error: reject,
439
+ complete: resolve,
440
+ });
441
+ this.subscribe(subscriber);
442
+ });
443
+ }
444
+ _subscribe(subscriber) {
445
+ var _a;
446
+ return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);
447
+ }
448
+ [observable]() {
449
+ return this;
450
+ }
451
+ pipe(...operations) {
452
+ return pipeFromArray(operations)(this);
453
+ }
454
+ toPromise(promiseCtor) {
455
+ promiseCtor = getPromiseCtor(promiseCtor);
456
+ return new promiseCtor((resolve, reject) => {
457
+ let value;
458
+ this.subscribe((x) => (value = x), (err) => reject(err), () => resolve(value));
459
+ });
460
+ }
461
+ }
462
+ Observable.create = (subscribe) => {
463
+ return new Observable(subscribe);
464
+ };
465
+ function getPromiseCtor(promiseCtor) {
466
+ var _a;
467
+ return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;
468
+ }
469
+ function isObserver(value) {
470
+ return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);
471
+ }
472
+ function isSubscriber(value) {
473
+ return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value));
474
+ }
475
+
476
+ function hasLift(source) {
477
+ return isFunction(source === null || source === void 0 ? void 0 : source.lift);
478
+ }
479
+ function operate(init) {
480
+ return (source) => {
481
+ if (hasLift(source)) {
482
+ return source.lift(function (liftedSource) {
483
+ try {
484
+ return init(liftedSource, this);
485
+ }
486
+ catch (err) {
487
+ this.error(err);
488
+ }
489
+ });
490
+ }
491
+ throw new TypeError('Unable to lift unknown Observable type');
492
+ };
493
+ }
494
+
495
+ function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) {
496
+ return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);
497
+ }
498
+ class OperatorSubscriber extends Subscriber {
499
+ constructor(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
500
+ super(destination);
501
+ this.onFinalize = onFinalize;
502
+ this.shouldUnsubscribe = shouldUnsubscribe;
503
+ this._next = onNext
504
+ ? function (value) {
505
+ try {
506
+ onNext(value);
507
+ }
508
+ catch (err) {
509
+ destination.error(err);
510
+ }
511
+ }
512
+ : super._next;
513
+ this._error = onError
514
+ ? function (err) {
515
+ try {
516
+ onError(err);
517
+ }
518
+ catch (err) {
519
+ destination.error(err);
520
+ }
521
+ finally {
522
+ this.unsubscribe();
523
+ }
524
+ }
525
+ : super._error;
526
+ this._complete = onComplete
527
+ ? function () {
528
+ try {
529
+ onComplete();
530
+ }
531
+ catch (err) {
532
+ destination.error(err);
533
+ }
534
+ finally {
535
+ this.unsubscribe();
536
+ }
537
+ }
538
+ : super._complete;
539
+ }
540
+ unsubscribe() {
541
+ var _a;
542
+ if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
543
+ const { closed } = this;
544
+ super.unsubscribe();
545
+ !closed && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this));
546
+ }
547
+ }
548
+ }
549
+
550
+ const ObjectUnsubscribedError = createErrorClass((_super) => function ObjectUnsubscribedErrorImpl() {
551
+ _super(this);
552
+ this.name = 'ObjectUnsubscribedError';
553
+ this.message = 'object unsubscribed';
554
+ });
555
+
556
+ class Subject extends Observable {
557
+ constructor() {
558
+ super();
559
+ this.closed = false;
560
+ this.currentObservers = null;
561
+ this.observers = [];
562
+ this.isStopped = false;
563
+ this.hasError = false;
564
+ this.thrownError = null;
565
+ }
566
+ lift(operator) {
567
+ const subject = new AnonymousSubject(this, this);
568
+ subject.operator = operator;
569
+ return subject;
570
+ }
571
+ _throwIfClosed() {
572
+ if (this.closed) {
573
+ throw new ObjectUnsubscribedError();
574
+ }
575
+ }
576
+ next(value) {
577
+ errorContext(() => {
578
+ this._throwIfClosed();
579
+ if (!this.isStopped) {
580
+ if (!this.currentObservers) {
581
+ this.currentObservers = Array.from(this.observers);
582
+ }
583
+ for (const observer of this.currentObservers) {
584
+ observer.next(value);
585
+ }
586
+ }
587
+ });
588
+ }
589
+ error(err) {
590
+ errorContext(() => {
591
+ this._throwIfClosed();
592
+ if (!this.isStopped) {
593
+ this.hasError = this.isStopped = true;
594
+ this.thrownError = err;
595
+ const { observers } = this;
596
+ while (observers.length) {
597
+ observers.shift().error(err);
598
+ }
599
+ }
600
+ });
601
+ }
602
+ complete() {
603
+ errorContext(() => {
604
+ this._throwIfClosed();
605
+ if (!this.isStopped) {
606
+ this.isStopped = true;
607
+ const { observers } = this;
608
+ while (observers.length) {
609
+ observers.shift().complete();
610
+ }
611
+ }
612
+ });
613
+ }
614
+ unsubscribe() {
615
+ this.isStopped = this.closed = true;
616
+ this.observers = this.currentObservers = null;
617
+ }
618
+ get observed() {
619
+ var _a;
620
+ return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;
621
+ }
622
+ _trySubscribe(subscriber) {
623
+ this._throwIfClosed();
624
+ return super._trySubscribe(subscriber);
625
+ }
626
+ _subscribe(subscriber) {
627
+ this._throwIfClosed();
628
+ this._checkFinalizedStatuses(subscriber);
629
+ return this._innerSubscribe(subscriber);
630
+ }
631
+ _innerSubscribe(subscriber) {
632
+ const { hasError, isStopped, observers } = this;
633
+ if (hasError || isStopped) {
634
+ return EMPTY_SUBSCRIPTION;
635
+ }
636
+ this.currentObservers = null;
637
+ observers.push(subscriber);
638
+ return new Subscription(() => {
639
+ this.currentObservers = null;
640
+ arrRemove(observers, subscriber);
641
+ });
642
+ }
643
+ _checkFinalizedStatuses(subscriber) {
644
+ const { hasError, thrownError, isStopped } = this;
645
+ if (hasError) {
646
+ subscriber.error(thrownError);
647
+ }
648
+ else if (isStopped) {
649
+ subscriber.complete();
650
+ }
651
+ }
652
+ asObservable() {
653
+ const observable = new Observable();
654
+ observable.source = this;
655
+ return observable;
656
+ }
657
+ }
658
+ Subject.create = (destination, source) => {
659
+ return new AnonymousSubject(destination, source);
660
+ };
661
+ class AnonymousSubject extends Subject {
662
+ constructor(destination, source) {
663
+ super();
664
+ this.destination = destination;
665
+ this.source = source;
666
+ }
667
+ next(value) {
668
+ var _a, _b;
669
+ (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value);
670
+ }
671
+ error(err) {
672
+ var _a, _b;
673
+ (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);
674
+ }
675
+ complete() {
676
+ var _a, _b;
677
+ (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);
678
+ }
679
+ _subscribe(subscriber) {
680
+ var _a, _b;
681
+ return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;
682
+ }
683
+ }
684
+
685
+ const EMPTY = new Observable((subscriber) => subscriber.complete());
686
+
687
+ function isScheduler(value) {
688
+ return value && isFunction(value.schedule);
689
+ }
690
+
691
+ function last(arr) {
692
+ return arr[arr.length - 1];
693
+ }
694
+ function popScheduler(args) {
695
+ return isScheduler(last(args)) ? args.pop() : undefined;
696
+ }
697
+ function popNumber(args, defaultValue) {
698
+ return typeof last(args) === 'number' ? args.pop() : defaultValue;
699
+ }
700
+
701
+ /******************************************************************************
702
+ Copyright (c) Microsoft Corporation.
703
+
704
+ Permission to use, copy, modify, and/or distribute this software for any
705
+ purpose with or without fee is hereby granted.
706
+
707
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
708
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
709
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
710
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
711
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
712
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
713
+ PERFORMANCE OF THIS SOFTWARE.
714
+ ***************************************************************************** */
715
+
716
+ function __awaiter(thisArg, _arguments, P, generator) {
717
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
718
+ return new (P || (P = Promise))(function (resolve, reject) {
719
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
720
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
721
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
722
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
723
+ });
724
+ }
725
+
726
+ function __values(o) {
727
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
728
+ if (m) return m.call(o);
729
+ if (o && typeof o.length === "number") return {
730
+ next: function () {
731
+ if (o && i >= o.length) o = void 0;
732
+ return { value: o && o[i++], done: !o };
733
+ }
734
+ };
735
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
736
+ }
737
+
738
+ function __await(v) {
739
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
740
+ }
741
+
742
+ function __asyncGenerator(thisArg, _arguments, generator) {
743
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
744
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
745
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
746
+ function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
747
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
748
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
749
+ function fulfill(value) { resume("next", value); }
750
+ function reject(value) { resume("throw", value); }
751
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
752
+ }
753
+
754
+ function __asyncValues(o) {
755
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
756
+ var m = o[Symbol.asyncIterator], i;
757
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
758
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
759
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
760
+ }
761
+
762
+ const isArrayLike = ((x) => x && typeof x.length === 'number' && typeof x !== 'function');
763
+
764
+ function isPromise(value) {
765
+ return isFunction(value === null || value === void 0 ? void 0 : value.then);
766
+ }
767
+
768
+ function isInteropObservable(input) {
769
+ return isFunction(input[observable]);
770
+ }
771
+
772
+ function isAsyncIterable(obj) {
773
+ return Symbol.asyncIterator && isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);
774
+ }
775
+
776
+ function createInvalidObservableTypeError(input) {
777
+ return new TypeError(`You provided ${input !== null && typeof input === 'object' ? 'an invalid object' : `'${input}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`);
778
+ }
779
+
780
+ function getSymbolIterator() {
781
+ if (typeof Symbol !== 'function' || !Symbol.iterator) {
782
+ return '@@iterator';
783
+ }
784
+ return Symbol.iterator;
785
+ }
786
+ const iterator = getSymbolIterator();
787
+
788
+ function isIterable(input) {
789
+ return isFunction(input === null || input === void 0 ? void 0 : input[iterator]);
790
+ }
791
+
792
+ function readableStreamLikeToAsyncGenerator(readableStream) {
793
+ return __asyncGenerator(this, arguments, function* readableStreamLikeToAsyncGenerator_1() {
794
+ const reader = readableStream.getReader();
795
+ try {
796
+ while (true) {
797
+ const { value, done } = yield __await(reader.read());
798
+ if (done) {
799
+ return yield __await(void 0);
800
+ }
801
+ yield yield __await(value);
802
+ }
803
+ }
804
+ finally {
805
+ reader.releaseLock();
806
+ }
807
+ });
808
+ }
809
+ function isReadableStreamLike(obj) {
810
+ return isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader);
811
+ }
812
+
813
+ function innerFrom(input) {
814
+ if (input instanceof Observable) {
815
+ return input;
816
+ }
817
+ if (input != null) {
818
+ if (isInteropObservable(input)) {
819
+ return fromInteropObservable(input);
820
+ }
821
+ if (isArrayLike(input)) {
822
+ return fromArrayLike(input);
823
+ }
824
+ if (isPromise(input)) {
825
+ return fromPromise(input);
826
+ }
827
+ if (isAsyncIterable(input)) {
828
+ return fromAsyncIterable(input);
829
+ }
830
+ if (isIterable(input)) {
831
+ return fromIterable(input);
832
+ }
833
+ if (isReadableStreamLike(input)) {
834
+ return fromReadableStreamLike(input);
835
+ }
836
+ }
837
+ throw createInvalidObservableTypeError(input);
838
+ }
839
+ function fromInteropObservable(obj) {
840
+ return new Observable((subscriber) => {
841
+ const obs = obj[observable]();
842
+ if (isFunction(obs.subscribe)) {
843
+ return obs.subscribe(subscriber);
844
+ }
845
+ throw new TypeError('Provided object does not correctly implement Symbol.observable');
846
+ });
847
+ }
848
+ function fromArrayLike(array) {
849
+ return new Observable((subscriber) => {
850
+ for (let i = 0; i < array.length && !subscriber.closed; i++) {
851
+ subscriber.next(array[i]);
852
+ }
853
+ subscriber.complete();
854
+ });
855
+ }
856
+ function fromPromise(promise) {
857
+ return new Observable((subscriber) => {
858
+ promise
859
+ .then((value) => {
860
+ if (!subscriber.closed) {
861
+ subscriber.next(value);
862
+ subscriber.complete();
863
+ }
864
+ }, (err) => subscriber.error(err))
865
+ .then(null, reportUnhandledError);
866
+ });
867
+ }
868
+ function fromIterable(iterable) {
869
+ return new Observable((subscriber) => {
870
+ for (const value of iterable) {
871
+ subscriber.next(value);
872
+ if (subscriber.closed) {
873
+ return;
874
+ }
875
+ }
876
+ subscriber.complete();
877
+ });
878
+ }
879
+ function fromAsyncIterable(asyncIterable) {
880
+ return new Observable((subscriber) => {
881
+ process(asyncIterable, subscriber).catch((err) => subscriber.error(err));
882
+ });
883
+ }
884
+ function fromReadableStreamLike(readableStream) {
885
+ return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream));
886
+ }
887
+ function process(asyncIterable, subscriber) {
888
+ var asyncIterable_1, asyncIterable_1_1;
889
+ var e_1, _a;
890
+ return __awaiter(this, void 0, void 0, function* () {
891
+ try {
892
+ for (asyncIterable_1 = __asyncValues(asyncIterable); asyncIterable_1_1 = yield asyncIterable_1.next(), !asyncIterable_1_1.done;) {
893
+ const value = asyncIterable_1_1.value;
894
+ subscriber.next(value);
895
+ if (subscriber.closed) {
896
+ return;
897
+ }
898
+ }
899
+ }
900
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
901
+ finally {
902
+ try {
903
+ if (asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return)) yield _a.call(asyncIterable_1);
904
+ }
905
+ finally { if (e_1) throw e_1.error; }
906
+ }
907
+ subscriber.complete();
908
+ });
909
+ }
910
+
911
+ function executeSchedule(parentSubscription, scheduler, work, delay = 0, repeat = false) {
912
+ const scheduleSubscription = scheduler.schedule(function () {
913
+ work();
914
+ if (repeat) {
915
+ parentSubscription.add(this.schedule(null, delay));
916
+ }
917
+ else {
918
+ this.unsubscribe();
919
+ }
920
+ }, delay);
921
+ parentSubscription.add(scheduleSubscription);
922
+ if (!repeat) {
923
+ return scheduleSubscription;
924
+ }
925
+ }
926
+
927
+ function observeOn(scheduler, delay = 0) {
928
+ return operate((source, subscriber) => {
929
+ source.subscribe(createOperatorSubscriber(subscriber, (value) => executeSchedule(subscriber, scheduler, () => subscriber.next(value), delay), () => executeSchedule(subscriber, scheduler, () => subscriber.complete(), delay), (err) => executeSchedule(subscriber, scheduler, () => subscriber.error(err), delay)));
930
+ });
931
+ }
932
+
933
+ function subscribeOn(scheduler, delay = 0) {
934
+ return operate((source, subscriber) => {
935
+ subscriber.add(scheduler.schedule(() => source.subscribe(subscriber), delay));
936
+ });
937
+ }
938
+
939
+ function scheduleObservable(input, scheduler) {
940
+ return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));
941
+ }
942
+
943
+ function schedulePromise(input, scheduler) {
944
+ return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));
945
+ }
946
+
947
+ function scheduleArray(input, scheduler) {
948
+ return new Observable((subscriber) => {
949
+ let i = 0;
950
+ return scheduler.schedule(function () {
951
+ if (i === input.length) {
952
+ subscriber.complete();
953
+ }
954
+ else {
955
+ subscriber.next(input[i++]);
956
+ if (!subscriber.closed) {
957
+ this.schedule();
958
+ }
959
+ }
960
+ });
961
+ });
962
+ }
963
+
964
+ function scheduleIterable(input, scheduler) {
965
+ return new Observable((subscriber) => {
966
+ let iterator$1;
967
+ executeSchedule(subscriber, scheduler, () => {
968
+ iterator$1 = input[iterator]();
969
+ executeSchedule(subscriber, scheduler, () => {
970
+ let value;
971
+ let done;
972
+ try {
973
+ ({ value, done } = iterator$1.next());
974
+ }
975
+ catch (err) {
976
+ subscriber.error(err);
977
+ return;
978
+ }
979
+ if (done) {
980
+ subscriber.complete();
981
+ }
982
+ else {
983
+ subscriber.next(value);
984
+ }
985
+ }, 0, true);
986
+ });
987
+ return () => isFunction(iterator$1 === null || iterator$1 === void 0 ? void 0 : iterator$1.return) && iterator$1.return();
988
+ });
989
+ }
990
+
991
+ function scheduleAsyncIterable(input, scheduler) {
992
+ if (!input) {
993
+ throw new Error('Iterable cannot be null');
994
+ }
995
+ return new Observable((subscriber) => {
996
+ executeSchedule(subscriber, scheduler, () => {
997
+ const iterator = input[Symbol.asyncIterator]();
998
+ executeSchedule(subscriber, scheduler, () => {
999
+ iterator.next().then((result) => {
1000
+ if (result.done) {
1001
+ subscriber.complete();
1002
+ }
1003
+ else {
1004
+ subscriber.next(result.value);
1005
+ }
1006
+ });
1007
+ }, 0, true);
1008
+ });
1009
+ });
1010
+ }
1011
+
1012
+ function scheduleReadableStreamLike(input, scheduler) {
1013
+ return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input), scheduler);
1014
+ }
1015
+
1016
+ function scheduled(input, scheduler) {
1017
+ if (input != null) {
1018
+ if (isInteropObservable(input)) {
1019
+ return scheduleObservable(input, scheduler);
1020
+ }
1021
+ if (isArrayLike(input)) {
1022
+ return scheduleArray(input, scheduler);
1023
+ }
1024
+ if (isPromise(input)) {
1025
+ return schedulePromise(input, scheduler);
1026
+ }
1027
+ if (isAsyncIterable(input)) {
1028
+ return scheduleAsyncIterable(input, scheduler);
1029
+ }
1030
+ if (isIterable(input)) {
1031
+ return scheduleIterable(input, scheduler);
1032
+ }
1033
+ if (isReadableStreamLike(input)) {
1034
+ return scheduleReadableStreamLike(input, scheduler);
1035
+ }
1036
+ }
1037
+ throw createInvalidObservableTypeError(input);
1038
+ }
1039
+
1040
+ function from(input, scheduler) {
1041
+ return scheduler ? scheduled(input, scheduler) : innerFrom(input);
1042
+ }
1043
+
1044
+ function map(project, thisArg) {
1045
+ return operate((source, subscriber) => {
1046
+ let index = 0;
1047
+ source.subscribe(createOperatorSubscriber(subscriber, (value) => {
1048
+ subscriber.next(project.call(thisArg, value, index++));
1049
+ }));
1050
+ });
1051
+ }
1052
+
1053
+ const { isArray } = Array;
1054
+ function callOrApply(fn, args) {
1055
+ return isArray(args) ? fn(...args) : fn(args);
1056
+ }
1057
+ function mapOneOrManyArgs(fn) {
1058
+ return map(args => callOrApply(fn, args));
1059
+ }
1060
+
1061
+ function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalFinalizer) {
1062
+ const buffer = [];
1063
+ let active = 0;
1064
+ let index = 0;
1065
+ let isComplete = false;
1066
+ const checkComplete = () => {
1067
+ if (isComplete && !buffer.length && !active) {
1068
+ subscriber.complete();
1069
+ }
1070
+ };
1071
+ const outerNext = (value) => (active < concurrent ? doInnerSub(value) : buffer.push(value));
1072
+ const doInnerSub = (value) => {
1073
+ expand && subscriber.next(value);
1074
+ active++;
1075
+ let innerComplete = false;
1076
+ innerFrom(project(value, index++)).subscribe(createOperatorSubscriber(subscriber, (innerValue) => {
1077
+ onBeforeNext === null || onBeforeNext === void 0 ? void 0 : onBeforeNext(innerValue);
1078
+ if (expand) {
1079
+ outerNext(innerValue);
1080
+ }
1081
+ else {
1082
+ subscriber.next(innerValue);
1083
+ }
1084
+ }, () => {
1085
+ innerComplete = true;
1086
+ }, undefined, () => {
1087
+ if (innerComplete) {
1088
+ try {
1089
+ active--;
1090
+ while (buffer.length && active < concurrent) {
1091
+ const bufferedValue = buffer.shift();
1092
+ if (innerSubScheduler) {
1093
+ executeSchedule(subscriber, innerSubScheduler, () => doInnerSub(bufferedValue));
1094
+ }
1095
+ else {
1096
+ doInnerSub(bufferedValue);
1097
+ }
1098
+ }
1099
+ checkComplete();
1100
+ }
1101
+ catch (err) {
1102
+ subscriber.error(err);
1103
+ }
1104
+ }
1105
+ }));
1106
+ };
1107
+ source.subscribe(createOperatorSubscriber(subscriber, outerNext, () => {
1108
+ isComplete = true;
1109
+ checkComplete();
1110
+ }));
1111
+ return () => {
1112
+ additionalFinalizer === null || additionalFinalizer === void 0 ? void 0 : additionalFinalizer();
1113
+ };
1114
+ }
1115
+
1116
+ function mergeMap(project, resultSelector, concurrent = Infinity) {
1117
+ if (isFunction(resultSelector)) {
1118
+ return mergeMap((a, i) => map((b, ii) => resultSelector(a, b, i, ii))(innerFrom(project(a, i))), concurrent);
1119
+ }
1120
+ else if (typeof resultSelector === 'number') {
1121
+ concurrent = resultSelector;
1122
+ }
1123
+ return operate((source, subscriber) => mergeInternals(source, subscriber, project, concurrent));
1124
+ }
1125
+
1126
+ function mergeAll(concurrent = Infinity) {
1127
+ return mergeMap(identity, concurrent);
1128
+ }
1129
+
1130
+ const nodeEventEmitterMethods = ['addListener', 'removeListener'];
1131
+ const eventTargetMethods = ['addEventListener', 'removeEventListener'];
1132
+ const jqueryMethods = ['on', 'off'];
1133
+ function fromEvent(target, eventName, options, resultSelector) {
1134
+ if (isFunction(options)) {
1135
+ resultSelector = options;
1136
+ options = undefined;
1137
+ }
1138
+ if (resultSelector) {
1139
+ return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs(resultSelector));
1140
+ }
1141
+ const [add, remove] = isEventTarget(target)
1142
+ ? eventTargetMethods.map((methodName) => (handler) => target[methodName](eventName, handler, options))
1143
+ :
1144
+ isNodeStyleEventEmitter(target)
1145
+ ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName))
1146
+ : isJQueryStyleEventEmitter(target)
1147
+ ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName))
1148
+ : [];
1149
+ if (!add) {
1150
+ if (isArrayLike(target)) {
1151
+ return mergeMap((subTarget) => fromEvent(subTarget, eventName, options))(innerFrom(target));
1152
+ }
1153
+ }
1154
+ if (!add) {
1155
+ throw new TypeError('Invalid event target');
1156
+ }
1157
+ return new Observable((subscriber) => {
1158
+ const handler = (...args) => subscriber.next(1 < args.length ? args : args[0]);
1159
+ add(handler);
1160
+ return () => remove(handler);
1161
+ });
1162
+ }
1163
+ function toCommonHandlerRegistry(target, eventName) {
1164
+ return (methodName) => (handler) => target[methodName](eventName, handler);
1165
+ }
1166
+ function isNodeStyleEventEmitter(target) {
1167
+ return isFunction(target.addListener) && isFunction(target.removeListener);
1168
+ }
1169
+ function isJQueryStyleEventEmitter(target) {
1170
+ return isFunction(target.on) && isFunction(target.off);
1171
+ }
1172
+ function isEventTarget(target) {
1173
+ return isFunction(target.addEventListener) && isFunction(target.removeEventListener);
1174
+ }
1175
+
1176
+ function merge(...args) {
1177
+ const scheduler = popScheduler(args);
1178
+ const concurrent = popNumber(args, Infinity);
1179
+ const sources = args;
1180
+ return !sources.length
1181
+ ?
1182
+ EMPTY
1183
+ : sources.length === 1
1184
+ ?
1185
+ innerFrom(sources[0])
1186
+ :
1187
+ mergeAll(concurrent)(from(sources, scheduler));
1188
+ }
1189
+
1190
+ function filter(predicate, thisArg) {
1191
+ return operate((source, subscriber) => {
1192
+ let index = 0;
1193
+ source.subscribe(createOperatorSubscriber(subscriber, (value) => predicate.call(thisArg, value, index++) && subscriber.next(value)));
1194
+ });
1195
+ }
1196
+
1197
+ function distinctUntilChanged(comparator, keySelector = identity) {
1198
+ comparator = comparator !== null && comparator !== void 0 ? comparator : defaultCompare;
1199
+ return operate((source, subscriber) => {
1200
+ let previousKey;
1201
+ let first = true;
1202
+ source.subscribe(createOperatorSubscriber(subscriber, (value) => {
1203
+ const currentKey = keySelector(value);
1204
+ if (first || !comparator(previousKey, currentKey)) {
1205
+ first = false;
1206
+ previousKey = currentKey;
1207
+ subscriber.next(value);
1208
+ }
1209
+ }));
1210
+ });
1211
+ }
1212
+ function defaultCompare(a, b) {
1213
+ return a === b;
1214
+ }
1215
+
1216
+ function takeUntil(notifier) {
1217
+ return operate((source, subscriber) => {
1218
+ innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, () => subscriber.complete(), noop));
1219
+ !subscriber.closed && source.subscribe(subscriber);
1220
+ });
1221
+ }
1222
+
1223
+ const catScrollableCss = ":host{overflow:hidden;position:relative;display:flex}:host([hidden]){display:none}.shadow-bottom,.shadow-right,.shadow-left,.shadow-top{position:absolute;transition:box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1)}.shadow-top{z-index:2;width:100%;top:0}.shadow-left{z-index:4;height:100%;left:0}.shadow-right{z-index:4;height:100%;right:0}.shadow-bottom{z-index:2;width:100%;bottom:0}.scrollable-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none}.scrollable-wrapper.cat-scrollable-top .shadow-top,.scrollable-wrapper.cat-scrollable-bottom .shadow-bottom,.scrollable-wrapper.cat-scrollable-left .shadow-left,.scrollable-wrapper.cat-scrollable-right .shadow-right{box-shadow:0 0 4px 1px rgba(16, 29, 48, 0.2)}.scrollable-content{overflow:hidden;white-space:nowrap}.scrollable-content.scroll-x{overflow-x:auto}.scrollable-content.scroll-y{overflow-y:auto}.scrollable-content.no-overscroll{overscroll-behavior:contain}";
1224
+
1225
+ const CatScrollable$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1226
+ constructor() {
1227
+ super();
1228
+ this.__registerHost();
1229
+ this.__attachShadow();
1230
+ this.scrolledTop = createEvent(this, "scrolledTop", 7);
1231
+ this.scrolledLeft = createEvent(this, "scrolledLeft", 7);
1232
+ this.scrolledRight = createEvent(this, "scrolledRight", 7);
1233
+ this.scrolledBottom = createEvent(this, "scrolledBottom", 7);
1234
+ this.init = new Subject();
1235
+ this.destroyed = new Subject();
1236
+ /** Flags to enable/disable scroll shadowX. */
1237
+ this.shadowX = true;
1238
+ /** Flags to enable/disable scroll shadowY. */
1239
+ this.shadowY = true;
1240
+ /** Flags to enable/disable overflowX. */
1241
+ this.overflowX = true;
1242
+ /** Flags to enable/disable overflowY. */
1243
+ this.overflowY = true;
1244
+ /** Flag to enable/disable overscroll behavior. */
1245
+ this.overscroll = true;
1246
+ /**
1247
+ * Flag to fire an initial event after content initialization.
1248
+ */
1249
+ this.scrolledInit = true;
1250
+ /**
1251
+ * Buffer to be used to calculate the scroll distance.
1252
+ */
1253
+ this.scrolledBuffer = 0;
1254
+ }
1255
+ componentDidRender() {
1256
+ if (this.scrollElement) {
1257
+ this.scrolled = fromEvent(this.scrollElement, 'scroll').pipe(takeUntil(this.destroyed));
1258
+ }
1259
+ this.attachEmitter('left', this.scrolledLeft, this.scrolledBuffer);
1260
+ this.attachEmitter('right', this.scrolledRight, this.scrolledBuffer);
1261
+ this.attachEmitter('bottom', this.scrolledBottom, this.scrolledBuffer);
1262
+ this.attachEmitter('top', this.scrolledTop, this.scrolledBuffer);
1263
+ merge(this.init, this.scrolled)
1264
+ .pipe(map(() => ({
1265
+ top: this.getScrollOffset('top') > 0,
1266
+ left: this.getScrollOffset('left') > 0,
1267
+ right: this.getScrollOffset('right') > 0,
1268
+ bottom: this.getScrollOffset('bottom') > 0
1269
+ })), distinctUntilChanged(), takeUntil(this.destroyed))
1270
+ .subscribe(({ top, left, right, bottom }) => {
1271
+ this.toggleClass('cat-scrollable-top', top);
1272
+ this.toggleClass('cat-scrollable-left', left);
1273
+ this.toggleClass('cat-scrollable-right', right);
1274
+ this.toggleClass('cat-scrollable-bottom', bottom);
1275
+ });
1276
+ }
1277
+ componentDidLoad() {
1278
+ if (this.scrolledInit) {
1279
+ this.init.next();
1280
+ }
1281
+ }
1282
+ disconnectedCallback() {
1283
+ this.init.complete();
1284
+ this.destroyed.next();
1285
+ this.destroyed.complete();
1286
+ }
1287
+ render() {
1288
+ return [
1289
+ h("div", { class: "scrollable-wrapper", ref: el => (this.scrollWrapperElement = el) }, this.shadowY && h("div", { class: "shadow-top" }), this.shadowX && h("div", { class: "shadow-left" }), this.shadowX && h("div", { class: "shadow-right" }), this.shadowY && h("div", { class: "shadow-bottom" })),
1290
+ h("div", { ref: el => (this.scrollElement = el), class: {
1291
+ 'scrollable-content': true,
1292
+ 'scroll-x': this.overflowX,
1293
+ 'scroll-y': this.overflowY,
1294
+ 'no-overscroll': !this.overscroll
1295
+ } }, h("slot", null))
1296
+ ];
1297
+ }
1298
+ attachEmitter(from, emitter, buffer) {
1299
+ merge(this.init, this.scrolled)
1300
+ .pipe(map(() => this.getScrollOffset(from)))
1301
+ .pipe(map(offset => offset <= buffer))
1302
+ .pipe(distinctUntilChanged())
1303
+ .pipe(filter(isLower => isLower))
1304
+ .pipe(takeUntil(this.destroyed))
1305
+ .subscribe(() => emitter.emit());
1306
+ }
1307
+ getScrollOffset(from) {
1308
+ if (this.scrollElement) {
1309
+ switch (from) {
1310
+ case 'top':
1311
+ return this.scrollElement.scrollTop;
1312
+ case 'left':
1313
+ return this.scrollElement.scrollLeft;
1314
+ case 'right':
1315
+ return this.scrollElement.scrollWidth - this.scrollElement.clientWidth - this.scrollElement.scrollLeft;
1316
+ case 'bottom':
1317
+ return this.scrollElement.scrollHeight - this.scrollElement.clientHeight - this.scrollElement.scrollTop;
1318
+ default:
1319
+ return 0;
1320
+ }
1321
+ }
1322
+ return 0;
1323
+ }
1324
+ toggleClass(name, value) {
1325
+ var _a, _b;
1326
+ if (value) {
1327
+ (_a = this.scrollWrapperElement) === null || _a === void 0 ? void 0 : _a.classList.add(name);
1328
+ }
1329
+ else {
1330
+ (_b = this.scrollWrapperElement) === null || _b === void 0 ? void 0 : _b.classList.remove(name);
1331
+ }
1332
+ }
1333
+ static get style() { return catScrollableCss; }
1334
+ }, [1, "cat-scrollable", {
1335
+ "shadowX": [4, "shadow-x"],
1336
+ "shadowY": [4, "shadow-y"],
1337
+ "overflowX": [4, "overflow-x"],
1338
+ "overflowY": [4, "overflow-y"],
1339
+ "overscroll": [4],
1340
+ "scrolledInit": [4, "scrolled-init"],
1341
+ "scrolledBuffer": [2, "scrolled-buffer"]
1342
+ }]);
1343
+ function defineCustomElement$1() {
1344
+ if (typeof customElements === "undefined") {
1345
+ return;
1346
+ }
1347
+ const components = ["cat-scrollable"];
1348
+ components.forEach(tagName => { switch (tagName) {
1349
+ case "cat-scrollable":
1350
+ if (!customElements.get(tagName)) {
1351
+ customElements.define(tagName, CatScrollable$1);
1352
+ }
1353
+ break;
1354
+ } });
1355
+ }
1356
+
1357
+ const CatScrollable = CatScrollable$1;
1358
+ const defineCustomElement = defineCustomElement$1;
1359
+
1360
+ export { CatScrollable, defineCustomElement };
1361
+
1362
+ //# sourceMappingURL=cat-scrollable.js.map