ku4web-components 6.4.80 → 6.4.81

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 (280) hide show
  1. package/angular/index.js +1 -1
  2. package/angular/index.mjs +1 -1
  3. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  4. package/dist/cjs/css-shim-aaf4fec9.js +6 -0
  5. package/dist/cjs/dom-14886762.js +75 -0
  6. package/dist/cjs/index-652a3cbf.js +14 -0
  7. package/dist/cjs/index-8e9e8864.js +3093 -0
  8. package/dist/cjs/{index-1e13241e.js → index-a9159bd6.js} +1 -1
  9. package/dist/cjs/index-c904eb3a.js +10 -0
  10. package/dist/cjs/{index-da3ed39d.js → index-f78c109e.js} +1 -1
  11. package/dist/cjs/ku4-carousel-controls.cjs.entry.js +10 -4
  12. package/dist/cjs/ku4-carousel-slide.cjs.entry.js +1 -1
  13. package/dist/cjs/ku4-carousel.cjs.entry.js +3 -3
  14. package/dist/cjs/ku4-col.cjs.entry.js +1 -1
  15. package/dist/cjs/ku4-drawer.cjs.entry.js +1 -1
  16. package/dist/cjs/ku4-feature.cjs.entry.js +2 -2
  17. package/dist/cjs/ku4-focus-trap.cjs.entry.js +26 -26
  18. package/dist/cjs/ku4-form.cjs.entry.js +3 -3
  19. package/dist/cjs/ku4-grid.cjs.entry.js +1 -1
  20. package/dist/cjs/ku4-label.cjs.entry.js +2 -2
  21. package/dist/cjs/ku4-mask.cjs.entry.js +2 -2
  22. package/dist/cjs/ku4-modal.cjs.entry.js +3 -3
  23. package/dist/cjs/ku4-panel.cjs.entry.js +1 -1
  24. package/dist/cjs/ku4-preview.cjs.entry.js +43 -14
  25. package/dist/cjs/ku4-tab-list.cjs.entry.js +4 -4
  26. package/dist/cjs/ku4-tab-panel.cjs.entry.js +3 -3
  27. package/dist/cjs/ku4-tab.cjs.entry.js +3 -3
  28. package/dist/cjs/ku4-table.cjs.entry.js +1 -1
  29. package/dist/cjs/ku4-tooltip.cjs.entry.js +2 -2
  30. package/dist/cjs/ku4-validation.cjs.entry.js +2 -2
  31. package/dist/cjs/ku4web-components.cjs.js +103 -8
  32. package/dist/cjs/loader.cjs.js +19 -3
  33. package/dist/cjs/{shadow-css-8940f82d.js → shadow-css-c44ea13a.js} +1 -1
  34. package/dist/cjs/{uid-d6942c42.js → uid-97baaecc.js} +1 -1
  35. package/dist/cjs/uid-eb3bec28.js +11 -0
  36. package/dist/collection/capabilities/a11y/aria.js +26 -0
  37. package/dist/collection/capabilities/angular/index.js +24 -0
  38. package/dist/collection/capabilities/decorators/deprecated.js +20 -0
  39. package/dist/collection/capabilities/decorators/index.js +3 -0
  40. package/dist/collection/capabilities/decorators/memoize.js +7 -0
  41. package/dist/collection/capabilities/dom/isFocusable.js +7 -0
  42. package/dist/collection/capabilities/dom/queryFocusable.js +2 -0
  43. package/dist/collection/capabilities/identity/uid.js +6 -0
  44. package/dist/collection/capabilities/mask/index.js +5 -0
  45. package/dist/collection/capabilities/mask/patterns/date.js +40 -0
  46. package/dist/collection/capabilities/mask/patterns/index.js +7 -0
  47. package/dist/collection/capabilities/react/index.js +25 -0
  48. package/dist/collection/capabilities/testing/html.js +14 -0
  49. package/dist/collection/capabilities/testing/styles.js +14 -0
  50. package/dist/collection/capabilities/vue/index.js +28 -0
  51. package/dist/collection/capabilities/vue3/index.js +26 -0
  52. package/dist/collection/collection-manifest.json +31 -0
  53. package/dist/collection/components/ku4-carousel/ku4-carousel.css +221 -0
  54. package/dist/collection/components/ku4-carousel/ku4-carousel.js +362 -0
  55. package/dist/collection/components/ku4-carousel-controls/ku4-carousel-controls.css +32 -0
  56. package/dist/collection/components/ku4-carousel-controls/ku4-carousel-controls.js +112 -0
  57. package/dist/collection/components/ku4-carousel-slide/ku4-carousel-slide.css +3 -0
  58. package/dist/collection/components/ku4-carousel-slide/ku4-carousel-slide.js +159 -0
  59. package/dist/collection/components/ku4-col/ku4-col.css +601 -0
  60. package/dist/collection/components/ku4-col/ku4-col.js +288 -0
  61. package/dist/collection/components/ku4-drawer/ku4-drawer.css +56 -0
  62. package/dist/collection/components/ku4-drawer/ku4-drawer.js +163 -0
  63. package/dist/collection/components/ku4-feature/ku4-feature.js +70 -0
  64. package/dist/collection/components/ku4-focus-trap/ku4-focus-trap.css +3 -0
  65. package/dist/collection/components/ku4-focus-trap/ku4-focus-trap.js +441 -0
  66. package/dist/collection/components/ku4-form/ku4-form.js +225 -0
  67. package/dist/collection/components/ku4-grid/ku4-grid.css +751 -0
  68. package/dist/collection/components/ku4-grid/ku4-grid.js +408 -0
  69. package/dist/collection/components/ku4-label/ku4-label.css +36 -0
  70. package/dist/collection/components/ku4-label/ku4-label.js +115 -0
  71. package/dist/collection/components/ku4-mask/ku4-mask.css +3 -0
  72. package/dist/collection/components/ku4-mask/ku4-mask.js +458 -0
  73. package/dist/collection/components/ku4-modal/ku4-modal.css +85 -0
  74. package/dist/collection/components/ku4-modal/ku4-modal.js +208 -0
  75. package/dist/collection/components/ku4-panel/ku4-panel.css +14 -0
  76. package/dist/collection/components/ku4-panel/ku4-panel.js +119 -0
  77. package/dist/collection/components/ku4-preview/ku4-preview.css +23 -0
  78. package/dist/collection/components/ku4-preview/ku4-preview.js +266 -0
  79. package/dist/collection/components/ku4-tab/ku4-tab.css +82 -0
  80. package/dist/collection/components/ku4-tab/ku4-tab.js +191 -0
  81. package/dist/collection/components/ku4-tab-list/ku4-tab-list.css +6 -0
  82. package/dist/collection/components/ku4-tab-list/ku4-tab-list.js +118 -0
  83. package/dist/collection/components/ku4-tab-panel/ku4-tab-panel.css +26 -0
  84. package/dist/collection/components/ku4-tab-panel/ku4-tab-panel.js +166 -0
  85. package/dist/collection/components/ku4-table/ku4-table.css +116 -0
  86. package/dist/collection/components/ku4-table/ku4-table.js +120 -0
  87. package/dist/collection/components/ku4-tooltip/ku4-tooltip.css +56 -0
  88. package/dist/collection/components/ku4-tooltip/ku4-tooltip.js +274 -0
  89. package/dist/collection/components/ku4-validation/ku4-validation.css +19 -0
  90. package/dist/collection/components/ku4-validation/ku4-validation.js +364 -0
  91. package/dist/collection/components/ku4-validation/validate.js +14 -0
  92. package/dist/collection/index.js +1 -0
  93. package/dist/collection/security.js +27 -0
  94. package/dist/esm/app-globals-0f993ce5.js +3 -0
  95. package/dist/esm/css-shim-091f949f.js +4 -0
  96. package/dist/esm/dom-a385e381.js +73 -0
  97. package/dist/esm/{index-9e3af5f4.js → index-26cde78a.js} +1 -1
  98. package/dist/esm/index-3e1e5aa3.js +3 -0
  99. package/dist/esm/index-516c5188.js +3057 -0
  100. package/dist/esm/index-7ff6e718.js +3 -0
  101. package/dist/esm/{index-20c3926d.js → index-bdb0771a.js} +1 -1
  102. package/dist/esm/ku4-carousel-controls.entry.js +10 -4
  103. package/dist/esm/ku4-carousel-slide.entry.js +1 -1
  104. package/dist/esm/ku4-carousel.entry.js +3 -3
  105. package/dist/esm/ku4-col.entry.js +1 -1
  106. package/dist/esm/ku4-drawer.entry.js +1 -1
  107. package/dist/esm/ku4-feature.entry.js +2 -2
  108. package/dist/esm/ku4-focus-trap.entry.js +3 -3
  109. package/dist/esm/ku4-form.entry.js +3 -3
  110. package/dist/esm/ku4-grid.entry.js +1 -1
  111. package/dist/esm/ku4-label.entry.js +2 -2
  112. package/dist/esm/ku4-mask.entry.js +2 -2
  113. package/dist/esm/ku4-modal.entry.js +3 -3
  114. package/dist/esm/ku4-panel.entry.js +1 -1
  115. package/dist/esm/ku4-preview.entry.js +34 -5
  116. package/dist/esm/ku4-tab-list.entry.js +4 -4
  117. package/dist/esm/ku4-tab-panel.entry.js +3 -3
  118. package/dist/esm/ku4-tab.entry.js +3 -3
  119. package/dist/esm/ku4-table.entry.js +1 -1
  120. package/dist/esm/ku4-tooltip.entry.js +2 -2
  121. package/dist/esm/ku4-validation.entry.js +2 -2
  122. package/dist/esm/ku4web-components.js +103 -8
  123. package/dist/esm/loader.js +19 -3
  124. package/dist/esm/{shadow-css-5d2d01ce.js → shadow-css-ef431969.js} +1 -1
  125. package/dist/esm/{uid-15f8c937.js → uid-1ec3509b.js} +1 -1
  126. package/dist/esm/uid-9dbd7ad0.js +9 -0
  127. package/dist/esm-es5/{index-9e3af5f4.js → index-26cde78a.js} +1 -1
  128. package/dist/esm-es5/{index-20c3926d.js → index-bdb0771a.js} +1 -1
  129. package/dist/esm-es5/ku4-carousel-controls.entry.js +1 -1
  130. package/dist/esm-es5/ku4-carousel-slide.entry.js +1 -1
  131. package/dist/esm-es5/ku4-carousel.entry.js +1 -1
  132. package/dist/esm-es5/ku4-col.entry.js +1 -1
  133. package/dist/esm-es5/ku4-drawer.entry.js +1 -1
  134. package/dist/esm-es5/ku4-feature.entry.js +1 -1
  135. package/dist/esm-es5/ku4-focus-trap.entry.js +1 -1
  136. package/dist/esm-es5/ku4-form.entry.js +1 -1
  137. package/dist/esm-es5/ku4-grid.entry.js +1 -1
  138. package/dist/esm-es5/ku4-label.entry.js +1 -1
  139. package/dist/esm-es5/ku4-mask.entry.js +1 -1
  140. package/dist/esm-es5/ku4-modal.entry.js +1 -1
  141. package/dist/esm-es5/ku4-panel.entry.js +1 -1
  142. package/dist/esm-es5/ku4-preview.entry.js +1 -1
  143. package/dist/esm-es5/ku4-tab-list.entry.js +1 -1
  144. package/dist/esm-es5/ku4-tab-panel.entry.js +1 -1
  145. package/dist/esm-es5/ku4-tab.entry.js +1 -1
  146. package/dist/esm-es5/ku4-table.entry.js +1 -1
  147. package/dist/esm-es5/ku4-tooltip.entry.js +1 -1
  148. package/dist/esm-es5/ku4-validation.entry.js +1 -1
  149. package/dist/esm-es5/ku4web-components.js +1 -1
  150. package/dist/esm-es5/loader.js +1 -1
  151. package/dist/esm-es5/{shadow-css-5d2d01ce.js → shadow-css-ef431969.js} +0 -0
  152. package/dist/esm-es5/uid-1ec3509b.js +1 -0
  153. package/dist/index.js +1 -1
  154. package/dist/ku4web-components/app-globals-0f993ce5.js +3 -0
  155. package/dist/ku4web-components/app-globals-497eb362.system.js +1 -0
  156. package/dist/ku4web-components/css-shim-091f949f.js +4 -0
  157. package/dist/ku4web-components/css-shim-c5bffe6b.system.js +1 -0
  158. package/dist/ku4web-components/dom-99eb7b76.system.js +21 -0
  159. package/dist/ku4web-components/dom-a385e381.js +73 -0
  160. package/dist/ku4web-components/index-380cbe3a.system.js +1 -0
  161. package/dist/ku4web-components/index-3e1e5aa3.js +3 -0
  162. package/dist/ku4web-components/index-516c5188.js +3057 -0
  163. package/dist/ku4web-components/index-7d482e8a.system.js +1 -0
  164. package/dist/ku4web-components/index-7ff6e718.js +3 -0
  165. package/dist/ku4web-components/index-fd0c89d0.system.js +1 -0
  166. package/dist/ku4web-components/index.esm.js +1 -0
  167. package/dist/ku4web-components/index.system.js +1 -0
  168. package/dist/ku4web-components/ku4-carousel-controls.entry.js +89 -0
  169. package/dist/ku4web-components/ku4-carousel-controls.system.entry.js +1 -0
  170. package/dist/ku4web-components/ku4-carousel-slide.entry.js +47 -0
  171. package/dist/ku4web-components/ku4-carousel-slide.system.entry.js +1 -0
  172. package/dist/ku4web-components/ku4-carousel.entry.js +168 -0
  173. package/dist/ku4web-components/ku4-carousel.system.entry.js +1 -0
  174. package/dist/ku4web-components/ku4-col.entry.js +75 -0
  175. package/dist/ku4web-components/ku4-col.system.entry.js +1 -0
  176. package/dist/ku4web-components/ku4-drawer.entry.js +35 -0
  177. package/dist/ku4web-components/ku4-drawer.system.entry.js +1 -0
  178. package/dist/ku4web-components/ku4-feature.entry.js +29 -0
  179. package/dist/ku4web-components/ku4-feature.system.entry.js +1 -0
  180. package/dist/ku4web-components/ku4-focus-trap.entry.js +323 -0
  181. package/dist/ku4web-components/ku4-focus-trap.system.entry.js +1 -0
  182. package/dist/ku4web-components/ku4-form.entry.js +112 -0
  183. package/dist/ku4web-components/ku4-form.system.entry.js +1 -0
  184. package/dist/ku4web-components/ku4-grid.entry.js +108 -0
  185. package/dist/ku4web-components/ku4-grid.system.entry.js +1 -0
  186. package/dist/ku4web-components/ku4-label.entry.js +70 -0
  187. package/dist/ku4web-components/ku4-label.system.entry.js +1 -0
  188. package/dist/ku4web-components/ku4-mask.entry.js +342 -0
  189. package/dist/ku4web-components/ku4-mask.system.entry.js +1 -0
  190. package/dist/ku4web-components/ku4-modal.entry.js +75 -0
  191. package/dist/ku4web-components/ku4-modal.system.entry.js +1 -0
  192. package/dist/ku4web-components/ku4-panel.entry.js +49 -0
  193. package/dist/ku4web-components/ku4-panel.system.entry.js +1 -0
  194. package/dist/ku4web-components/ku4-preview.entry.js +128 -0
  195. package/dist/ku4web-components/ku4-preview.system.entry.js +1 -0
  196. package/dist/ku4web-components/ku4-tab-list.entry.js +76 -0
  197. package/dist/ku4web-components/ku4-tab-list.system.entry.js +1 -0
  198. package/dist/ku4web-components/ku4-tab-panel.entry.js +72 -0
  199. package/dist/ku4web-components/ku4-tab-panel.system.entry.js +1 -0
  200. package/dist/ku4web-components/ku4-tab.entry.js +63 -0
  201. package/dist/ku4web-components/ku4-tab.system.entry.js +1 -0
  202. package/dist/ku4web-components/ku4-table.entry.js +79 -0
  203. package/dist/ku4web-components/ku4-table.system.entry.js +1 -0
  204. package/dist/ku4web-components/ku4-tooltip.entry.js +120 -0
  205. package/dist/ku4web-components/ku4-tooltip.system.entry.js +1 -0
  206. package/dist/ku4web-components/ku4-validation.entry.js +162 -0
  207. package/dist/ku4web-components/ku4-validation.system.entry.js +1 -0
  208. package/dist/ku4web-components/ku4web-components.css +299 -1
  209. package/dist/ku4web-components/ku4web-components.esm.js +129 -1
  210. package/dist/ku4web-components/ku4web-components.js +1 -1
  211. package/dist/ku4web-components/ku4web-components.system.js +1 -0
  212. package/dist/ku4web-components/p-019be0a7.entry.js +1 -0
  213. package/dist/ku4web-components/{p-8f480cb5.system.entry.js → p-01ae9e4c.system.entry.js} +1 -1
  214. package/dist/ku4web-components/{p-02e342f7.system.entry.js → p-03d6fb35.system.entry.js} +1 -1
  215. package/dist/ku4web-components/{p-3c182b2f.entry.js → p-0c05c4ad.entry.js} +1 -1
  216. package/dist/ku4web-components/{p-04948520.system.entry.js → p-0cc659d9.system.entry.js} +1 -1
  217. package/dist/ku4web-components/{p-2aac6c90.js → p-0ded083e.js} +1 -1
  218. package/dist/ku4web-components/{p-761b2cbc.system.entry.js → p-0e222607.system.entry.js} +1 -1
  219. package/dist/ku4web-components/p-17d548db.js +1 -0
  220. package/dist/ku4web-components/{p-c1068ffa.js → p-189cde73.js} +1 -1
  221. package/dist/ku4web-components/{p-2f2d74dc.system.entry.js → p-2300b0b7.system.entry.js} +1 -1
  222. package/dist/ku4web-components/{p-8faad87d.entry.js → p-25ca27d4.entry.js} +1 -1
  223. package/dist/ku4web-components/{p-f1cc1b2d.entry.js → p-2a6d5089.entry.js} +1 -1
  224. package/dist/ku4web-components/{p-9c0d71af.system.entry.js → p-341081d6.system.entry.js} +1 -1
  225. package/dist/ku4web-components/{p-e4ff1c36.entry.js → p-55d15007.entry.js} +1 -1
  226. package/dist/ku4web-components/{p-d6ec34c3.entry.js → p-57ec7c89.entry.js} +1 -1
  227. package/dist/ku4web-components/{p-15ee8b8e.system.entry.js → p-5d6cf40f.system.entry.js} +1 -1
  228. package/dist/ku4web-components/{p-01debe28.system.entry.js → p-5eb48119.system.entry.js} +1 -1
  229. package/dist/ku4web-components/{p-67adc5b1.system.entry.js → p-64bcfdeb.system.entry.js} +1 -1
  230. package/dist/ku4web-components/{p-71d57b8b.system.js → p-6bf18c7c.system.js} +0 -0
  231. package/dist/ku4web-components/{p-0eb73a0f.system.entry.js → p-6c5699e3.system.entry.js} +1 -1
  232. package/dist/ku4web-components/{p-840704e4.entry.js → p-6d63d17d.entry.js} +1 -1
  233. package/dist/ku4web-components/{p-f06bf0ae.entry.js → p-6f47f245.entry.js} +1 -1
  234. package/dist/ku4web-components/{p-b4488a7d.system.entry.js → p-75161edb.system.entry.js} +1 -1
  235. package/dist/ku4web-components/{p-0e010c10.system.entry.js → p-801fab11.system.entry.js} +1 -1
  236. package/dist/ku4web-components/{p-0f8708f8.entry.js → p-8c0cb5c1.entry.js} +1 -1
  237. package/dist/ku4web-components/{p-2edd35f8.system.entry.js → p-92bc6bf1.system.entry.js} +1 -1
  238. package/dist/ku4web-components/{p-7273db60.entry.js → p-94dd5fad.entry.js} +1 -1
  239. package/dist/ku4web-components/{p-660ebd19.entry.js → p-993123b6.entry.js} +1 -1
  240. package/dist/ku4web-components/{p-c50540ec.system.entry.js → p-9f1bc248.system.entry.js} +1 -1
  241. package/dist/ku4web-components/{p-f6455ab3.js → p-b10887b2.js} +0 -0
  242. package/dist/ku4web-components/{p-a5c7f5f7.system.entry.js → p-b3bdc458.system.entry.js} +1 -1
  243. package/dist/ku4web-components/{p-d360c64a.entry.js → p-b60c60e4.entry.js} +1 -1
  244. package/dist/ku4web-components/{p-0785fc39.system.js → p-c3293202.system.js} +1 -1
  245. package/dist/ku4web-components/{p-7a47027b.entry.js → p-c459bbb7.entry.js} +1 -1
  246. package/dist/ku4web-components/{p-90c37394.entry.js → p-c62c66be.entry.js} +1 -1
  247. package/dist/ku4web-components/{p-c19fd841.entry.js → p-c646a177.entry.js} +1 -1
  248. package/dist/ku4web-components/{p-8e2fca0b.system.entry.js → p-ca547c71.system.entry.js} +1 -1
  249. package/dist/ku4web-components/{p-ce6eddc3.system.entry.js → p-d6f80a73.system.entry.js} +1 -1
  250. package/dist/ku4web-components/p-db3040f3.system.js +1 -0
  251. package/dist/ku4web-components/{p-19a8c0f6.system.entry.js → p-db493d59.system.entry.js} +1 -1
  252. package/dist/ku4web-components/{p-77f1853c.entry.js → p-dc35b1af.entry.js} +1 -1
  253. package/dist/ku4web-components/p-deb02b56.entry.js +1 -0
  254. package/dist/ku4web-components/{p-3874127d.entry.js → p-df1544c7.entry.js} +1 -1
  255. package/dist/ku4web-components/{p-22eed87f.entry.js → p-e10de631.entry.js} +1 -1
  256. package/dist/ku4web-components/{p-8d9eb18b.system.entry.js → p-e29d66a7.system.entry.js} +1 -1
  257. package/dist/ku4web-components/{p-f0b1c07c.system.js → p-e2ae0504.system.js} +1 -1
  258. package/dist/ku4web-components/p-e641f14e.system.js +1 -0
  259. package/dist/ku4web-components/{p-adddaeef.entry.js → p-e6937d21.entry.js} +1 -1
  260. package/dist/ku4web-components/{p-232787a5.system.entry.js → p-f0e309a9.system.entry.js} +1 -1
  261. package/dist/ku4web-components/shadow-css-27708fdd.system.js +13 -0
  262. package/dist/ku4web-components/shadow-css-ef431969.js +388 -0
  263. package/dist/ku4web-components/uid-9dbd7ad0.js +9 -0
  264. package/dist/ku4web-components/uid-fb867945.system.js +1 -0
  265. package/dist/types/components/ku4-carousel-controls/ku4-carousel-controls.d.ts +1 -0
  266. package/dist/types/components/ku4-carousel-slide/ku4-carousel-slide.d.ts +6 -0
  267. package/dist/types/components.d.ts +8 -0
  268. package/package.json +15 -15
  269. package/react/index.js +1 -1
  270. package/react/index.mjs +1 -1
  271. package/vue/index.js +1 -1
  272. package/vue/index.mjs +1 -1
  273. package/vue3/index.js +1 -1
  274. package/vue3/index.mjs +1 -1
  275. package/dist/esm-es5/uid-15f8c937.js +0 -1
  276. package/dist/ku4web-components/p-b590da20.entry.js +0 -1
  277. package/dist/ku4web-components/p-be7890a1.system.js +0 -1
  278. package/dist/ku4web-components/p-cbbb4b1b.js +0 -1
  279. package/dist/ku4web-components/p-eb58b04b.system.js +0 -1
  280. package/dist/ku4web-components/p-eb6882c8.entry.js +0 -1
@@ -0,0 +1 @@
1
+ var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function u(e){try{s(r["throw"](e))}catch(t){i(t)}}function s(e){e.done?n(e.value):o(e.value).then(a,u)}s((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(e){return function(t){return s([e,t])}}function s(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,o&&(i=a[0]&2?o["return"]:a[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;if(o=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;o=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){n.label=a[1];break}if(a[0]===6&&n.label<i[1]){n.label=i[1];i=a;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(a);break}if(i[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(u){a=[6,u];o=0}finally{r=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++){if(i||!(r in t)){if(!i)i=Array.prototype.slice.call(t,0,r);i[r]=t[r]}}return e.concat(i||Array.prototype.slice.call(t))};System.register([],(function(exports){"use strict";return{execute:function(){var _this=this;var t=function(){function e(){}e.isNull=function(e){return null===e};e.isEmpty=function(t){return e.isString(t)&&""===t||e.isArray(t)&&t.length<1||e.isObjectLiteral(t)&&Object.keys(t).length<1};e.isUndefined=function(e){return void 0===e};e.isZero=function(e){return 0===e};e.exists=function(t){return!(e.isUndefined(t)||e.isNull(t))};e.isNullOrEmpty=function(t){return!e.exists(t)||e.isEmpty(t)};e.isArray=function(e){return Array.isArray(e)};e.isBool=function(e){return"boolean"==typeof e};e.isTrue=function(t){return e.isBool(t)&&!0===t};e.isFalse=function(t){return e.isBool(t)&&!1===t};e.isDate=function(e){return e instanceof Date};e.isNumber=function(e){return("number"==typeof e||e instanceof Number)&&!isNaN(e)};e.isEven=function(e){return this.isNumber(e)&&!this.isZero(e)&&e%2==0};e.isOdd=function(e){return this.isNumber(e)&&!this.isZero(e)&&!this.isEven(e)};e.isString=function(e){return"string"==typeof e||e instanceof String};e.isFunction=function(e){return e instanceof Function};e.isAsyncFunction=function(t){try{return"AsyncFunction"===Object.getPrototypeOf(t).constructor.name||e.isFunction(t)&&/^async/.test(t.toString())||e.isFunction(t().then)}catch(t){return!1}};e.isPromise=function(e){return e instanceof Promise};e.isObject=function(t){return e.exists(t)&&"object"==typeof t&&!(e.isBool(t)||e.isNumber(t)||e.isDate(t)||e.isArray(t)||e.isString(t)||e.isFunction(t))};e.isObjectLiteral=function(t){return e.isObject(t)&&t.constructor==={}.constructor};e.isTruthy=function(t){return!e.isFalsy(t)};e.isFalsy=function(t){return e.isZero(t)||e.isFalse(t)||e.isNullOrEmpty(t)||isNaN(t)};return e}();function e(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return"".concat.apply("",e)}function r(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}return t.reduce((function(e,t,n){return e.replace(new RegExp("\\{".concat(n,"\\}"),"g"),t&&t.toString?t.toString():t)}),e)}function i(e){return s(n(e))}function s(e){return t.exists(e)&&t.isFunction(e.replace)?e.replace(/^[\s\n]*/,""):e}function n(e){return t.exists(e)&&t.isFunction(e.replace)?e.replace(/[\s\n]*$/,""):e}var a=Object.freeze({__proto__:null,build:e,chunk:function(e,n){if(n===void 0){n=0}if(!t.isString(e)||Number.isNaN(n)||n<0)return[];if(n<e.length){var r=0;var o=n||e.length,i=[];for(;r<e.length;)i.push(e.slice(r,r+o)),r+=o;return i}return[e]},format:r,trim:i,trimStart:s,trimEnd:n,capitalize:function(e){if(e===void 0){e=""}return(e||"").charAt(0).toUpperCase()+(e||"").slice(1).toLowerCase()},mask:function(e,n,r){if(r===void 0){r="_"}return t.isFunction(n)?n(e):t.isString(n)&&e.split("").reduce((function(e,t){return e.replace(new RegExp(r),t)}),n)},unmask:function(e,n,r){if(r===void 0){r="_"}var o=new RegExp(r);return t.isFunction(n)?n(e):t.isString(n)&&e.split("").reduce((function(e,t,r){return!o.test(t)&&o.test(n.charAt(r))?e+t:e}),"")}});function h(e,t){try{return e()}catch(n){return t}}var l;h.async=function(e,t){return __awaiter(_this,void 0,void 0,(function(){var n;return __generator(this,(function(r){switch(r.label){case 0:r.trys.push([0,2,,3]);return[4,e()];case 1:return[2,r.sent()];case 2:n=r.sent();return[2,t];case 3:return[2]}}))}))};var d=function(){function e(e,t,n){if(t<1||t>12)throw new Error("Invalid month at Assert.DayPoint");if(n<1||n>y(t,e))throw new Error("Invalid date at DayPoint");this._value=arguments.length>=3?new Date(e,t-1,n):new Date,this._day=this._value.getDay(),this._date=n,this._month=t,this._year=e}Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"day",{get:function(){return this._day},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"date",{get:function(){return this._date},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"month",{get:function(){return this._month},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"year",{get:function(){return this._year},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"shortYear",{get:function(){var e=this._year.toString();return parseInt(e.substr(e.length-2))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isWeekday",{get:function(){var e=this._day;return e>0&&e<6},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isWeekend",{get:function(){return!this.isWeekday},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isLeapYear",{get:function(){return f(this._year)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"nextDay",{get:function(){return p(this,1,0,0)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"prevDay",{get:function(){return p(this,-1,0,0)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"nextMonth",{get:function(){return p(this,0,1,0)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"prevMonth",{get:function(){return p(this,0,-1,0)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"nextYear",{get:function(){return p(this,0,0,1)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"prevYear",{get:function(){return p(this,0,0,-1)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"firstDayOfMonth",{get:function(){return new e(this._year,this._month,1)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"lastDayOfMonth",{get:function(){return new e(this._year,this._month,y(this._month,this._year))},enumerable:false,configurable:true});e.prototype.add=function(e,t,n){function r(e,t,n){var r=e,o=t;for(;o--;)r=r[n];return r}var o=Math.abs,i=o(e),a=o(n),u=o(t),s=n<0?"prevDay":"nextDay",c=t<0?"prevMonth":"nextMonth";return r(r(r(this,i,e<0?"prevYear":"nextYear"),u,c),a,s)};e.prototype.isBefore=function(e){return!(this.isAfter(e)||this.equals(e))};e.prototype.isAfter=function(e){var t=this._year,n=e.year,r=this._month,o=e.month;return t>n||t===n&&r>o||t===n&&r===o&&this._date>e.date};e.prototype.equals=function(e){return this._year===e.year&&this._month===e.month&&this._date===e.date};e.prototype.toString=function(e){if(e===void 0){e="mm/dd/yyyy"}var t=/y{3,}/i.test(e)?this._year:this.shortYear,n=this._month,o=this._date,i=/m{2}/i.test(e)&&n<10?"0{1}":"{1}",a=/d{2}/i.test(e)&&o<10?"0{2}":"{2}";return r(e.replace(/y+/gi,"{0}").replace(/m+/gi,i).replace(/d+/gi,a),t,n,o)};e.prototype.toDate=function(){return this._value};e.prototype.toJson=function(){return this._value.toJSON()};e.canParse=function(n){return t.isString(n)||t.isNumber(n)||t.isDate(n)?!isNaN(new Date(n).valueOf()):n instanceof e};e.parse=function(n){if(n instanceof e)return n;var o=t.isString(n)?i(n).replace(/T\d{2}:\d{2}:\d{2}(.\d+)?Z/,""):n;if(/^\d{4}-\d{1,2}-\d{1,2}$/.test(o)){var a=o.split("-"),u=a[0];a.push(u),a.shift(),o=a.join("/")}var s=new Date(o);if(!t.exists(o)||Number.isNaN(s.valueOf()))throw new Error(r("Cannot parse value= {0}",o));return new e(s.getFullYear(),s.getMonth()+1,s.getDate())};e.tryParse=function(t){return h((function(){return e.parse(t)}),null)};e.assumeNow=function(t){l=e.parse(t)};Object.defineProperty(e,"today",{get:function(){return l||e.parse(new Date)},enumerable:false,configurable:true});return e}();function y(e,n){return 2===e?f(n)?29:28:e<8&&t.isEven(e)||e>7&&t.isOdd(e)?30:31}function f(t){var n=t.toString().split(/\B/);return parseFloat(e(n[n.length-2],n[n.length-1]))%4==0}function p(e,t,n,r){var o=e.month,i=e.year,a=e.date,u=n,s=r;var c=a+t,l=o+u,f=i+s;if(a+t>y(o,i)&&(c=1,l=o+u+1),a+t<1){var p=e.prevMonth;c=y(p.month,p.year),l=o+u-1}return l>12&&(l=1,f=i+s+1),l<1&&(l=12,f=i+s-1),new d(f,l,c)}function m(e,t){if(t===void 0){t=0}var n=Math.pow(10,-t);return Math.round(parseFloat((e*n).toFixed(Math.abs(t))))/n}function g(e,t){if(t===void 0){t=0}return m(e+5*Math.pow(10,t-1),t)}function _(e,t){if(t===void 0){t=0}return 0===e?0:m(e-5*Math.pow(10,t-1),t)}function w(e,t){if(t===void 0){t=0}return e<0?g(e,t):_(e,t)}function x(e){var t=function(e,n,r){if(n===void 0){n=0}if(r===void 0){r=1}return 0<e?t(--e,r,n+r):n};return t(e)}function v(e){var t=0,n=1,r=0;for(;e>1;)r=t,t=n,n+=r,e--;return e<1?t:n}function b(e,t){if(t===void 0){t=0}var n=parseInt(e);return Number.isNaN(n)?t:n}var N=Object.freeze({__proto__:null,random:function(e,t){if(e===void 0){e=0}if(t===void 0){t=1}return Math.random()*(t-e)+e},round:m,roundUp:g,roundDown:_,roundTowardZero:w,gcd:function e(t,n){return 0===n?Math.abs(t):e(n,t%n)},fib:x,fib2:v,fibArray:function(e){return Array(e).fill(0).map((function(){return x(--e)})).reverse()},fib2Array:function(e){return Array(e).fill(0).map((function(){return v(--e)})).reverse()},tryParseInt:b,tryParseFloat:function(e,t){if(t===void 0){t=0}var n=parseFloat(e);return Number.isNaN(n)?t:n}});var $=function(){function e(e,n){if(e===void 0){e=0}if(n===void 0){n=0}if(!t.isNumber(e)||!t.isNumber(n))throw new Error("Coord requires numeric x and y values");this._x=e,this._y=n}Object.defineProperty(e.prototype,"x",{get:function(){return this._x},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"y",{get:function(){return this._y},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"value",{get:function(){return{x:this.x,y:this.y}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"half",{get:function(){return this.divide(new e(2,2))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"abs",{get:function(){return new e(Math.abs(this.x),Math.abs(this.y))},enumerable:false,configurable:true});e.prototype.equals=function(e){return this.x===e.x&&this.y===e.y};e.prototype.add=function(t){return new e(this.x+t.x,this.y+t.y)};e.prototype.subtract=function(t){return new e(this.x-t.x,this.y-t.y)};e.prototype.multiply=function(t){return new e(this.x*t.x,this.y*t.y)};e.prototype.divide=function(t){return new e(this.x/t.x,this.y/t.y)};e.prototype.round=function(t){if(t===void 0){t=0}return new e(m(this.x,t),m(this.y,t))};e.prototype.toString=function(){return"(".concat(this.x,",").concat(this.y,")")};e.canParse=function(n){return t.isArray(n)?!(Number.isNaN(n[0])||Number.isNaN(n[1])):t.isObjectLiteral(n)&&"x"in n&&"y"in n?!(Number.isNaN(n.x)||Number.isNaN(n.y)):n instanceof e};e.parse=function(n){return t.exists(n)?n instanceof e?n:t.isArray(n)?new e(n[0],n[1]):t.isObjectLiteral(n)&&t.exists(n.x)&&t.exists(n.y)?new e(n.x,n.y):null:null};e.tryParse=function(t){return h((function(){return e.parse(t)}),null)};return e}();var F=function(e){__extends(t,e);function t(t,n){if(t===void 0){t=0}if(n===void 0){n=0}var r=this;r=e.call(this,t,n)||this,r._lengthSquared=Math.pow(t,2)+Math.pow(n,2),r._magnitude=Math.sqrt(r._lengthSquared),r._unitNormalX=0===t&&0===n?0:t/r._magnitude,r._unitNormalY=0===t&&0===n?0:n/r._magnitude;return r}Object.defineProperty(t.prototype,"magnitude",{get:function(){return this._magnitude},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isZero",{get:function(){return 0===this.x&&0===this.y},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"normal",{get:function(){return new t(this._unitNormalX,this._unitNormalY)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"invert",{get:function(){return new t(-this.x,-this.y)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"norm",{get:function(){return new t(Math.abs(this.x),Math.abs(this.y))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"perpendicular",{get:function(){return new t(-this.y,this.x)},enumerable:false,configurable:true});t.prototype.equals=function(e){return e instanceof t&&this.x===e.x&&this.y===e.y};t.prototype.add=function(e){return e instanceof t?new t(this.x+e.x,this.y+e.y):null};t.prototype.dot=function(e){return e instanceof t?this.x*e.x+this.y*e.y:null};t.prototype.perpendicularAtTo=function(e){if(!(e instanceof t))return null;var n=e.add(this.projectionOfOnto(e).invert);return new t(n.x,n.y)};t.prototype.projectionOfOnto=function(e){if(!(e instanceof t))return null;var n=e.normal.scale(this.dot(e.normal));return new t(n.x,n.y)};t.prototype.scale=function(e){return new t(this.x*e,this.y*e)};t.prototype.unitNormalDot=function(e){return e instanceof t?this.normal.x*e.normal.x+this.normal.y*e.normal.y:null};t.prototype.reflect=function(e){if(!(e instanceof t))return null;if(e.isZero)return this;var n=e.normal;return this.add(n.scale(2*n.dot(this)).invert)};t.prototype.round=function(e){if(e===void 0){e=0}return new t(m(this.x,e),m(this.y,e))};return t}($);var O=function(e){__extends(t,e);function t(t,n){return e.call(this,t,n)||this}t.prototype.isAbove=function(e){return this.y<e.y};t.prototype.isBelow=function(e){return this.y>e.y};t.prototype.isLeftOf=function(e){return this.x<e.x};t.prototype.isRightOf=function(e){return this.x>e.x};t.prototype.distanceFrom=function(e){return new F(this.x-e.x,this.y-e.y)};t.prototype.distanceTo=function(e){return this.distanceFrom(e).invert};t.canParse=function(e){return e instanceof t||$.canParse(e)};t.parse=function(e){if(e instanceof t)return e;var n=$.parse(e);return new t(n.x,n.y)};t.tryParse=function(e){return h((function(){return t.parse(e)}),null)};return t}($);function k(){return Math.random().toString().substr(2)}function Z(){return function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)}()}var R=Object.freeze({__proto__:null,uid:k,uuid:Z,suid:function(){return Symbol(k())},suuid:function(){return Symbol(Z())}});Object.freeze({__proto__:null,pattern:function(e){return e.toString().replace(/(^\/)|(\/$)/g,"").replace(/\\/g,"\\")},escape:function(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")},alpha:/^[A-z]+$/,alphaNumeric:/^[A-z0-9]+$/,base64:/^[A-z0-9=]+$/,dataUrl:/^\s*data:([a-z]+\/[a-z0-9+-]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=._~:@/?%\s-]*\s*$/i,email:/^\w+([.\w-]+)?@\w+([.\w-]+)?\.[A-Za-z0-9]{2,}$/,empty:/^$/,numeric:/^-?[0-9]+$/,script:/(<script[A-z0-9\n\s\t\r.={([\])}'",;!&|$/#:<>*?+\u0000-\u0037\u00C2\u00A0\u2122-]*?<\/script>)/,uid:/^\d{14,}$/i,url:/^(https?:\/\/)?[^{}\\:]+\.[A-z0-9]{2,12}(\/[^?\s]+)*\/?(\?([^=?#]+=[^=?#]*(&[^=?#]+=[^=?#]*)*(#.*)?)?)?$/,uuid:/^[{(]?[0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9A-F]{12}[)}]?$/i});var Cookie=function(){function e(){}e.serialize=function(e,n){if(n===void 0){n=defaultParams}try{if(t.isUndefined(e))throw new Error;var r=Object.assign(defaultParams,n),o=r.name,i=r.expires,u=r.path,s=r.domain,c=r.secure,l=kvPair(o,e),f=d.canParse(i)?kvPair("; expires",d.parse(i).toDate().toGMTString()):"",p=u?kvPair("; path",u.split("/").map((function(e){return encodeURIComponent(e)})).join("/")):"",h=s?kvPair("; domain",encodeURIComponent(s)):"";return l+f+p+h+(c?"; secure":"")}catch(t){throw new Error(a.format("Cannot serialize {0}",e))}};e.deserialize=function(e){try{return read$1(e)[1]}catch(t){throw new Error(a.format("Cannot deserialize {0}",e))}};e.read=function(e){try{var n=read$1(e),r=n[0],o=n[1];return{name:r,value:o}}catch(t){throw new Error(a.format("Cannot read {0}",e))}};return e}();var defaultParams={name:R.uid(),expires:d.today.nextYear.toDate(),path:"/",domain:null,secure:!1},kvPair=function(e,t){return"".concat(e,"=").concat(t)},read$1=function(e){return/;/.test(e)?e.substring(0,e.search(";")).split("="):e.split("=")};var Device=function(){function e(){}Object.defineProperty(e,"orientation",{get:function(){var t=window.screen,n=(t.orientation||{}).type||t.mozOrientation||t.msOrientation,r=window.orientation;return n===e.landscapePrimary||90===r?e.landscapePrimary:n===e.landscapeSecondary||-90===r?e.landscapeSecondary:n===e.portraitPrimary||0===r?e.portraitPrimary:n===e.portraitSecondary||180===r?e.portraitSecondary:void 0},enumerable:false,configurable:true});Object.defineProperty(e,"landscapePrimary",{get:function(){return"landscape-primary"},enumerable:false,configurable:true});Object.defineProperty(e,"landscapeSecondary",{get:function(){return"landscape-secondary"},enumerable:false,configurable:true});Object.defineProperty(e,"portraitPrimary",{get:function(){return"portrait-primary"},enumerable:false,configurable:true});Object.defineProperty(e,"portraitSecondary",{get:function(){return"portrait-secondary"},enumerable:false,configurable:true});Object.defineProperty(e,"isMobile",{get:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(window.navigator.userAgent)},enumerable:false,configurable:true});return e}();exports("a",Device);var onPreventScroll=new Set,onResumeScroll=new Set;var scroll,lastPageYOffset,lastPageXOffset,scrollIsDown=!1,scrollIsUp=!1,scrollIsLeft=!1,scrollIsRight=!1;var Document=function(){function n(){}Object.defineProperty(n,"scrollbarWidth",{get:function(){return window.innerWidth-document.documentElement.clientWidth},enumerable:false,configurable:true});Object.defineProperty(n,"isScrollPrevented",{get:function(){return t.exists(n.scrollY)},enumerable:false,configurable:true});n.preventScroll=function(){try{onPreventScroll.forEach((function(e){return e()}))}catch(e){}n.position=document.body.style.position,n.offsetY=document.body.style.top,n.offsetX=document.body.style.left,n.width=document.body.style.width,n.height=document.body.style.height,n.documentWidth=document.documentElement.style.width,n.documentWidth=document.documentElement.style.width,n.documentHeight=document.documentElement.style.height,n.overflowY=document.documentElement.style.overflowY,n.scrollX=window.scrollX||window.pageXOffset,n.scrollY=window.scrollY||window.pageYOffset;var e=n.scrollbarWidth;document.body.style.position="fixed",document.body.style.left="-".concat(n.scrollX,"px"),document.body.style.top="calc(-".concat(n.scrollY,"px - ").concat(window.getComputedStyle(document.body)["padding-top"]," - ").concat(window.getComputedStyle(document.body)["margin-top"],")"),document.body.style.width="calc(100vw - ".concat(e,"px - ").concat(window.getComputedStyle(document.body)["padding-left"]," - ").concat(window.getComputedStyle(document.body)["padding-right"]," - ").concat(window.getComputedStyle(document.body)["margin-left"]," - ").concat(window.getComputedStyle(document.body)["margin-right"],")"),document.documentElement.style.width="100wh",document.documentElement.style.height="100vh",document.documentElement.style.overflowY=e&&"scroll"};n.resumeScroll=function(){try{onResumeScroll.forEach((function(e){return e()}))}catch(e){}document.body.style.position=n.position,document.body.style.top=n.offsetY,document.body.style.left=n.offsetX,document.body.style.width=n.width,document.body.style.height=n.height,document.documentElement.style.width=n.documentWidth,document.documentElement.style.height=n.documentHeight,document.documentElement.style.overflowY=n.overflowY,window.scrollTo(n.scrollX,n.scrollY),n.position=null,n.offsetY=null,n.offsetX=null,n.width=null,n.height=null,n.documentWidth=null,n.documentHeight=null,n.overflowY=null,n.scrollX=null,n.scrollY=null};n.onPreventScroll=function(e){onPreventScroll.add(e)};n.onResumeScroll=function(e){onResumeScroll.add(e)};Object.defineProperty(n,"scroll",{get:function(){return scroll||(scroll=new Scroll,lastPageYOffset=window.pageYOffset,lastPageXOffset=window.pageXOffset,scrollIsDown=!1,scrollIsUp=!1,scrollIsLeft=!1,scrollIsRight=!1,window.addEventListener("unload",(function(){return scroll.unload()}))),scroll},enumerable:false,configurable:true});return n}();exports("D",Document);var updateScrollValue=function(){var e=window.pageYOffset,t=window.pageXOffset;scrollIsDown=e>lastPageYOffset,scrollIsUp=e<lastPageYOffset,scrollIsRight=t>lastPageXOffset,scrollIsLeft=t<lastPageXOffset,lastPageYOffset=e||window.pageYOffset,lastPageXOffset=t||window.pageXOffset};var Scroll=function(){function e(){document.addEventListener("scroll",updateScrollValue,{passive:!0})}Object.defineProperty(e.prototype,"down",{get:function(){return scrollIsDown},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"up",{get:function(){return scrollIsUp},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"left",{get:function(){return scrollIsLeft},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"right",{get:function(){return scrollIsRight},enumerable:false,configurable:true});e.prototype.unload=function(){document.removeEventListener("scroll",updateScrollValue),scrollIsDown=!1,scrollIsUp=!1,scrollIsLeft=!1,scrollIsRight=!1,lastPageYOffset=window.pageYOffset,lastPageXOffset=window.pageXOffset,scroll=null};return e}();function encodeBase64(e,n){if(n===void 0){n=!1}if(!t.isString(e))throw new Error("Cannot encode non-string values.");var r=window.btoa(e);return n?r.replace(/=/g,""):r}function decodeBase64(e){if(!t.isString(e))throw new Error("Cannot encode non-string values.");return window.atob(e)}function encodeUtf8(e){if(!t.isString(e))throw new Error("Cannot encode non-string values.");return decodeURIComponent(encodeURIComponent(e))}function decodeUtf8(e){if(!t.isString(e))throw new Error("Cannot decode non-string values.");return decodeURIComponent(encodeURIComponent(e))}var Json=function(){function Json(){}Json.serialize=function(e){if(t.isFunction(e))return;if(!t.exists(e))return e;if(!t.isArray(e)&&!t.isObject(e))return e.toString();var n=t.isArray(e)?"[{0}]":"{{0}}",r=[];return Object.keys(e).forEach((function(n){var o=e[n];if(t.isUndefined(o))return;var i=t.isNumber(o)?o:t.isDate(o)?'"'.concat(d.parse(o).toJson(),'"'):t.isString(o)?'"'.concat(serializeString(o),'"'):Json.serialize(o);r[r.length]=(t.isObject(e)&&!t.isArray(e)?'"'.concat(n,'":'):"")+i})),a.format(n,r)};Json.deserialize=function(e){return/function|(=$)/i.test(e)?e:Json.deserialize_unsafe(e)};Json.deserialize_unsafe=function(value){try{var result_1=t.isString(value)?eval("(".concat(deserializeString(value),")")):value;return t.exists(result_1)?t.isNullOrEmpty(result_1.tagName)&&(t.isObject(result_1)||t.isArray(result_1))?(Object.keys(result_1).forEach((function(e){var n=result_1[e];(t.isObject(n)||t.isArray(n))&&(result_1[e]=Json.deserialize(n)),/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/.test(n)&&d.canParse(n)&&(result_1[e]=d.parse(n).toDate())})),result_1):/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/.test(result_1)?d.parse(result_1).toDate():result_1:result_1}catch(e){throw new Error(a.format("Cannot deserialize {0}",value))}};Json.encode=function(e,t){if(t===void 0){t=!1}try{return encodeBase64(Json.serialize(e),t)}catch(t){throw new Error(a.format("Cannot encode {0}",e))}};Json.decode=function(e){try{return Json.deserialize(decodeBase64(e))}catch(t){throw new Error(a.format("Cannot decode {0}",e))}};return Json}();function serializeString(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\//g,"/").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")}function deserializeString(e){return e.replace(/\\\//g,"/").replace(/\\\\f/g,"\\f").replace(/\\\\n/g,"\\n").replace(/\\\\r/g,"\\r").replace(/\\\\t/g,"\\t")}var QueryString=function(){function e(){}e.serialize=function(e){try{var n="";return Object.keys(e).forEach((function(r){var o=e[r],i=t.isDate(o)?d.parse(o).toJson():o;n+=a.format("&{0}={1}",encodeURIComponent(r),encodeURIComponent(Json.serialize(i)))})),n.replace(/^&/,"")}catch(t){throw new Error(a.format("Cannot serialize {0}",e))}};e.deserialize=function(e){if(/\??[^\s"'<>]+=[^\s"'<>]+/.test(e)){var t=e.replace(/.*\?/,"").split("&"),n={};return t.forEach((function(e){var t=e.split("="),r=t[0],o=t[1],i=/^null$|^true$|^false$|^\d+(\.\d+?)?$|^\[.*]$|^{.*}$/.test(o)?o:'"'.concat(o,'"');n[decodeURIComponent(r)]=Json.deserialize(decodeURIComponent(i))})),n}};return e}();var worker=function(e){var t=e.toString(),n=t.indexOf("{")+1,r=t.lastIndexOf("}"),o=/(=>)/.test(t)&&!/{/gm.test(t)?"".concat(t.replace("=>","=> {"),"}"):t.substring(n,r),i=new self.Blob([o],{type:"text/javascript"});return new Worker(URL.createObjectURL(i))},connection=function(){var e=self.indexedDB||self.mozIndexedDB||self.webkitIndexedDB||self.msIndexedDB;function t(t){if(!/^[A-z][A-z0-9]*$/.test(t))throw new Error("Invalid collection name. Must be alphanumeric and begin with an alpha character");return new Promise((function(n,r){try{var o=e.open(t);o.onerror=function(){r(new Error("Error opening IndexedDB."))},o.onupgradeneeded=function(e){e.target.result.createObjectStore(t,{autoIncrement:!1})},o.onsuccess=function(){n(o.result)}}catch(e){r(e)}}))}onmessage=function(e){var n=e.data[0],r=e.data[1],o=e.data[2];try{"read"===n&&function(e){return t(e).then((function(t){return new Promise((function(n,r){var o=t.transaction([e],"readonly").objectStore(e).get(1);o.onsuccess=function(e){t.close(),n(e.target.result)},o.onerror=function(){t.close(),r(o.error)}}))}))}(r).then((function(e){return postMessage([n,r,e])})).catch((function(e){return postMessage(["error",e.message])})),"write"===n&&function(e,n){return t(e).then((function(t){return new Promise((function(r,o){var i=t.transaction([e],"readwrite").objectStore(e).put(n,1);i.onsuccess=function(e){t.close(),r(e.target.result)},i.onerror=function(){t.close(),o(i.error)}}))}))}(r,o).then((function(e){return postMessage([n,r,e])})).catch((function(e){return postMessage(["error",e.message])})),"remove"===n&&function(e){return t(e).then((function(t){return new Promise((function(n,r){var o=t.transaction([e],"readwrite").objectStore(e).delete(1);o.onsuccess=function(e){t.close(),n(e.target.result)},o.onerror=function(){t.close(),r(o.error)}}))}))}(r).then((function(e){return postMessage([n,r,e])})).catch((function(e){return postMessage(["error",e.message])})),"drop"===n&&function(e){return t(e).then((function(t){return t.onversionchange=function(){return t.close()},new Promise((function(t,n){var r=indexedDB.deleteDatabase(e);r.onsuccess=function(){t(!0)},r.onerror=function(){n(r.error)},r.onblocked=function(){n(r.error)}}))}))}(r).then((function(e){return postMessage([n,r,e])})).catch((function(e){return postMessage(["error",e.message])}))}catch(e){postMessage(["error",e.message])}}};var validCollection=/^[A-z]+$/;var connectionThread;var Store=function(){function e(){}Object.defineProperty(e,"connected",{get:function(){return t.exists(connectionThread)},enumerable:false,configurable:true});e.connect=function(){try{return e.connected||(connectionThread=worker(connection)),e}catch(t){throw new Error("Store could not connect.")}};e.disconnect=function(){try{if(e.connected)return connectionThread.terminate(),connectionThread=null,e}catch(t){throw new Error("Store could not be disconnected.")}};e.read=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,new Promise((function(n,r){if(validCollection.test(e))if(t.exists(connectionThread)){var o=function(t){var i=t.data,a=i[0],u=i[1],s=i[2];"error"===a&&u===e&&(r(new Error(s)),connectionThread.removeEventListener("message",o)),"read"===a&&u===e&&(n(s),connectionThread.removeEventListener("message",o))};connectionThread.addEventListener("message",o),connectionThread.postMessage(["read",e])}else r(new Error("Cannot read disconnected Store."));else r(new Error("Invalid collection name must contain only alpha characters."))}))]}))}))};e.write=function(e,n){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){return[2,new Promise((function(r,o){if(validCollection.test(e))if(t.exists(connectionThread)){var i=function(t){var n=t.data,a=n[0],u=n[1],s=n[2];"error"===a&&u===e&&(o(new Error(s)),connectionThread.removeEventListener("message",i)),"write"===a&&u===e&&(r(s),connectionThread.removeEventListener("message",i))};connectionThread.addEventListener("message",i),connectionThread.postMessage(["write",e,n])}else o(Error("Cannot write disconnected Store."));else o(new Error("Invalid collection name must contain only alpha characters."))}))]}))}))};e.remove=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,new Promise((function(n,r){if(validCollection.test(e))if(t.exists(connectionThread)){var o=function(t){var i=t.data,a=i[0],u=i[1],s=i[2];"error"===a&&u===e&&(r(new Error(s)),connectionThread.removeEventListener("message",o)),"remove"===a&&u===e&&(n(s),connectionThread.removeEventListener("message",o))};connectionThread.addEventListener("message",o),connectionThread.postMessage(["remove",e])}else r(Error("Cannot write disconnected Store."));else r(new Error("Invalid collection name must contain only alpha characters."))}))]}))}))};e.delete=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,new Promise((function(n,r){if(!t.isNullOrEmpty(e)&&validCollection.test(e))if(t.exists(connectionThread)){var o=function(t){var i=t.data,a=i[0],u=i[1],s=i[2];"error"===a&&u===e&&(r(new Error(s)),connectionThread.removeEventListener("message",o)),"drop"===a&&u===e&&(n(s),connectionThread.removeEventListener("message",o))};connectionThread.addEventListener("message",o),connectionThread.postMessage(["drop",e])}else r(Error("Cannot drop disconnected Store."));else r(new Error("Invalid collection name must contain only alpha characters."))}))]}))}))};e.save=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,navigator.storage.persist()];case 1:return[2,t.sent()];case 2:e=t.sent();return[2,!1];case 3:return[2]}}))}))};e.estimate=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,r,o,i,a;return __generator(this,(function(u){switch(u.label){case 0:u.trys.push([0,2,,3]);e=navigator.storage||navigator.webkitPersistentStorage;return[4,e.estimate()];case 1:t=u.sent()||{},n=t.quota,r=n===void 0?NaN:n,o=t.usage,i=o===void 0?NaN:o;return[2,{quota:r,usage:i,free:"".concat(N.roundUp((r-i)/r*100,-4),"%"),used:"".concat(N.roundUp(i/r*100,-4),"%")}];case 2:a=u.sent();return[2,{}];case 3:return[2]}}))}))};e.saved=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,navigator.storage.persisted()];case 1:return[2,t.sent()];case 2:e=t.sent();return[2,!1];case 3:return[2]}}))}))};return e}();var Dto=function(){function e(e,n){if(e===void 0){e={}}if(!t.isArray(e)&&!t.isObject(e))throw new TypeError("Dto value must be Array or object literal");this._value=e,this._name=n}Object.defineProperty(e.prototype,"value",{get:function(){return t.isArray(this._value)?__spreadArray([],this._value,true):__assign({},this._value)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(e){this._name=e},enumerable:false,configurable:true});e.prototype.read=function(e){return t.exists(e)?!t.isArray(this._value)||t.isNumber(e)?this._value[e]:void 0:this.value};e.prototype.remove=function(e){return t.isString(e)&&t.exists(e)&&delete this._value[e],t.isFunction(e)&&this._value.splice(this._value.findIndex(e),1),this};e.prototype.write=function(e,n){return t.isNullOrEmpty(e)||(t.isArray(this._value)?(t.isUndefined(n)&&this._value.push(e),t.isNumber(e)&&(this._value[e]=n)):this._value[e]=n),this};e.prototype.update=function(e){var n=Object.assign(this.value,e);return this._value=t.isArray(this._value)?Object.values(n):n,this};e.prototype.clear=function(){return this._value=t.isArray(this._value)?[]:{},this};e.prototype.save=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:Store.connect();return[4,Store.write(this.name,this.encode(!0,!0))];case 1:e.sent();return[4,Store.save()];case 2:return[2,e.sent()]}}))}))};e.prototype.saveAs=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:this.name=e,Store.connect();return[4,Store.delete(this.name)];case 1:return[2,(t.sent(),this.save())]}}))}))};e.prototype.delete=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:Store.connect();return[4,Store.delete(this.name)];case 1:return[2,(e.sent(),this)]}}))}))};e.prototype.encode=function(e,t){if(e===void 0){e=!1}if(t===void 0){t=!1}var n=Json.serialize(this._value);return encodeBase64(t?encodeURIComponent(n):n,e)};e.decode=function(t,n){var r=decodeBase64(t),o=decodeURIComponent(r);return new e(Json.deserialize(o),n)};e.prototype.toFormData=function(){var e=this.value,t=new window.FormData;return Object.keys(e).forEach((function(n){return t.append(n,e[n])})),t};e.prototype.toJson=function(){return Json.serialize(this._value)};e.prototype.toQueryString=function(){return QueryString.serialize(this._value)};e.parseFormData=function(t){var n={};for(var r=0,o=t.entries();r<o.length;r++){var i=o[r],a=i[0],u=i[1];n[a]=u}return new e(n)};e.parseJson=function(t){return new e(Json.deserialize(t))};e.parseJwt=function(n){try{var r=n.split("."),o=r[1];return new e(JSON.parse(window.atob(o)))}catch(t){throw new SyntaxError("Cannot parseJwt: ".concat(n))}};e.parseQueryString=function(t){return new e(QueryString.deserialize(t))};e.load=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,(Store.connect(),Store.read(t).then((function(r){try{return e.decode(r,t)}catch(n){return}})).catch((function(){})))]}))}))};return e}();var Event=function(){function e(){}e.mute=function(e){return!!t.exists(e)&&(t.isFunction(e.preventDefault)&&e.preventDefault(),t.isFunction(e.stopPropagation)&&e.stopPropagation(),t.isFunction(e.stopImmediatePropagation)&&e.stopImmediatePropagation(),t.exists(e.cancelBubble)&&(e.cancelBubble=!0),!1)};return e}();exports("E",Event);var readFieldNames=function(e){var t=e.getAttribute("id"),n=__spreadArray([],e.querySelectorAll("[name]"),true).map((function(e){return e.name})),r=t?__spreadArray([],document.querySelectorAll('[form="'.concat(t,'"]')),true).map((function(e){return e.name})):[];return __spreadArray(__spreadArray([],n,true),r,true)},readData=function(e){return new window.FormData(e)},read=function(e){var n={};try{readData(e).forEach((function(e,r){var o=n[r];t.isArray(o)?n[r].push(e):t.exists(o)?n[r]=[n[r],e]:n[r]=e}))}catch(t){__spreadArray([],e.elements,true).forEach((function(e){var t=e.name,r=e.type,o=e.value,i=e.files;if("file"===r)n[t]=i[0];else if("checkbox"===r||"radio"===r)e.checked&&(n[t]=o);else if(e.multiple){var a=[];e.querySelectorAll("option").forEach((function(e){return e.selected&&a.push(e.value)})),n[t]=a.length<2?a[0]:a}else n[t]=o}))}return n},readJson=function(e){return JSON.stringify(read(e))},write=function(e,n){__spreadArray([],e.elements,true).forEach((function(e){/^select$/i.test(e.nodeName)?t.isArray(n[e.name])?__spreadArray([],e.options,true).forEach((function(t){t.selected=n[e.name].indexOf(t.value)>=0})):t.exists(n[e.name])&&(e.value=n[e.name]):t.exists(n[e.name])&&("checkbox"===e.type||"radio"===e.type?e.checked=n[e.name]===e.value:e.value=n[e.name])}))};var index=exports("i",{readFieldNames:readFieldNames,read:read,readData:readData,readJson:readJson,write:write});var Key=function(){function e(e,t,n){if(n===void 0){n={}}this.key=e,this.msKey=t||e,this.altKey=n.altKey||!1,this.ctrlKey=n.ctrlKey||!1,this.metaKey=n.metaKey||!1,this.shiftKey=n.shiftKey||!1}Object.defineProperty(e.prototype,"alt",{get:function(){var t=this,n=t.key,r=t.msKey,o=t.ctrlKey,i=t.metaKey,a=t.shiftKey;return new e(n,r,{altKey:!0,ctrlKey:o,metaKey:i,shiftKey:a})},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"ctrl",{get:function(){var t=this,n=t.key,r=t.msKey,o=t.altKey,i=t.metaKey,a=t.shiftKey;return new e(n,r,{altKey:o,ctrlKey:!0,metaKey:i,shiftKey:a})},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"meta",{get:function(){var t=this,n=t.key,r=t.msKey,o=t.altKey,i=t.ctrlKey,a=t.shiftKey;return new e(n,r,{altKey:o,ctrlKey:i,metaKey:!0,shiftKey:a})},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"shift",{get:function(){var t=this,n=t.key,r=t.msKey,o=t.altKey,i=t.ctrlKey,a=t.metaKey;return new e(n,r,{altKey:o,ctrlKey:i,metaKey:a,shiftKey:!0})},enumerable:false,configurable:true});e.prototype.equals=function(t){return t instanceof e&&this.altKey===t.altKey&&this.ctrlKey===t.ctrlKey&&this.metaKey===t.metaKey&&this.shiftKey===t.shiftKey&&(this.key===t.key||this.msKey===t.msKey)};e.prototype.didFire=function(t){var n=t.code,r=t.key,o=t.altKey,i=t.ctrlKey,a=t.metaKey,u=t.shiftKey,s="Dead"===r?n:r;return t&&("ANY"===this.key||this.equals(new e(s,s,{altKey:o,ctrlKey:i,metaKey:a,shiftKey:u})))};Object.defineProperty(e,"press",{get:function(){return"keypress"},enumerable:false,configurable:true});Object.defineProperty(e,"down",{get:function(){return"keydown"},enumerable:false,configurable:true});Object.defineProperty(e,"up",{get:function(){return"keyup"},enumerable:false,configurable:true});Object.defineProperty(e,"any",{get:function(){return new e("ANY")},enumerable:false,configurable:true});Object.defineProperty(e,"esc",{get:function(){return new e("Escape","Esc")},enumerable:false,configurable:true});Object.defineProperty(e,"enter",{get:function(){return new e("Enter")},enumerable:false,configurable:true});Object.defineProperty(e,"space",{get:function(){return new e(" ","Spacebar")},enumerable:false,configurable:true});Object.defineProperty(e,"tab",{get:function(){return new e("Tab")},enumerable:false,configurable:true});Object.defineProperty(e,"left",{get:function(){return new e("ArrowLeft","Left")},enumerable:false,configurable:true});Object.defineProperty(e,"right",{get:function(){return new e("ArrowRight","Right")},enumerable:false,configurable:true});return e}();exports("K",Key);var Keyboard=function(){function e(){}e.on=function(e,t,n,r){var o=function(e){return t.didFire(e)?n(e,t):null};return window.addEventListener(e,o,r),{unsubscribe:function(){window.removeEventListener(e,o)}}};e.onKeyPress=function(t,n,r){return e.on(Key.press,t,n,r)};e.onKeyDown=function(t,n,r){return e.on(Key.down,t,n,r)};e.onKeyUp=function(t,n,r){return e.on(Key.up,t,n,r)};return e}();var Swipe=function(){function e(e,t){if(t===void 0){t=0}this.didTouchStart=this.didTouchStart.bind(this),this.didTouchEnd=this.didTouchEnd.bind(this),this.didTouchMove=this.didTouchMove.bind(this),e.addEventListener("touchstart",this.didTouchStart,{capture:!1,passive:!0}),e.addEventListener("touchend",this.didTouchEnd,{capture:!1,passive:!0}),e.addEventListener("touchmove",this.didTouchMove,{capture:!1,passive:!0}),this.element=e,this.tolerance=t,this.didSwipeLeft=function(){},this.didSwipeRight=function(){},this.didMove=function(){}}e.prototype.onLeft=function(e){return this.didSwipeLeft=e,this};e.prototype.onRight=function(e){return this.didSwipeRight=e,this};e.prototype.onMove=function(e){return this.didMove=e,this};e.prototype.destroy=function(){var e=this.element;return e.removeEventListener("touchstart",this.didTouchStart,!1),e.removeEventListener("touchend",this.didTouchEnd,!1),e.removeEventListener("touchmove",this.didTouchMove,!1),this};e.prototype.didTouchStart=function(e){var t=e.touches[0];this.touchStartPoint=new O(t.pageX,t.pageY)};e.prototype.didTouchEnd=function(e){var t=e.changedTouches[0],n=this.touchStartPoint,r=new O(t.pageX,t.pageY);r.isLeftOf(n)&&Math.abs(r.distanceFrom(n).x)>this.tolerance&&this.didSwipeLeft(e),r.isRightOf(n)&&Math.abs(r.distanceFrom(n).x)>this.tolerance&&this.didSwipeRight(e)};e.prototype.didTouchMove=function(e){var t=e.touches[0],n=this.touchStartPoint,r=new O(t.pageX,t.pageY);this.didMove({distance:r.distanceFrom(n),up:r.isAbove(n),down:r.isBelow(n),left:r.isLeftOf(n),right:r.isRightOf(n)})};return e}();exports("S",Swipe)}}}));
@@ -0,0 +1,3 @@
1
+ class t{static isNull(e){return null===e}static isEmpty(e){return t.isString(e)&&""===e||t.isArray(e)&&e.length<1||t.isObjectLiteral(e)&&Object.keys(e).length<1}static isUndefined(e){return void 0===e}static isZero(e){return 0===e}static exists(e){return !(t.isUndefined(e)||t.isNull(e))}static isNullOrEmpty(e){return !t.exists(e)||t.isEmpty(e)}static isArray(e){return Array.isArray(e)}static isBool(e){return "boolean"==typeof e}static isTrue(e){return t.isBool(e)&&!0===e}static isFalse(e){return t.isBool(e)&&!1===e}static isDate(e){return e instanceof Date}static isNumber(e){return ("number"==typeof e||e instanceof Number)&&!isNaN(e)}static isEven(e){return this.isNumber(e)&&!this.isZero(e)&&e%2==0}static isOdd(e){return this.isNumber(e)&&!this.isZero(e)&&!this.isEven(e)}static isString(e){return "string"==typeof e||e instanceof String}static isFunction(e){return e instanceof Function}static isAsyncFunction(e){try{return "AsyncFunction"===Object.getPrototypeOf(e).constructor.name||t.isFunction(e)&&/^async/.test(e.toString())||t.isFunction(e().then)}catch(e){return !1}}static isPromise(e){return e instanceof Promise}static isObject(e){return t.exists(e)&&"object"==typeof e&&!(t.isBool(e)||t.isNumber(e)||t.isDate(e)||t.isArray(e)||t.isString(e)||t.isFunction(e))}static isObjectLiteral(e){return t.isObject(e)&&e.constructor==={}.constructor}static isTruthy(e){return !t.isFalsy(e)}static isFalsy(e){return t.isZero(e)||t.isFalse(e)||t.isNullOrEmpty(e)||isNaN(e)}}function e(...e){return "".concat(...e)}function r(e,...t){return t.reduce(((e,t,r)=>e.replace(new RegExp(`\\{${r}\\}`,"g"),t&&t.toString?t.toString():t)),e)}function i(e){return s(n(e))}function s(e){return t.exists(e)&&t.isFunction(e.replace)?e.replace(/^[\s\n]*/,""):e}function n(e){return t.exists(e)&&t.isFunction(e.replace)?e.replace(/[\s\n]*$/,""):e}var a=Object.freeze({__proto__:null,build:e,chunk:function(e,r=0){if(!t.isString(e)||Number.isNaN(r)||r<0)return [];if(r<e.length){let t=0;const n=r||e.length,s=[];for(;t<e.length;)s.push(e.slice(t,t+n)),t+=n;return s}return [e]},format:r,trim:i,trimStart:s,trimEnd:n,capitalize:function(e=""){return (e||"").charAt(0).toUpperCase()+(e||"").slice(1).toLowerCase()},mask:function(e,r,n="_"){return t.isFunction(r)?r(e):t.isString(r)&&e.split("").reduce(((e,t)=>e.replace(new RegExp(n),t)),r)},unmask:function(e,r,n="_"){const s=new RegExp(n);return t.isFunction(r)?r(e):t.isString(r)&&e.split("").reduce(((e,t,n)=>!s.test(t)&&s.test(r.charAt(n))?e+t:e),"")}});function h(e,t){try{return e()}catch{return t}}let l;h.async=async(e,t)=>{try{return await e()}catch{return t}};class d{constructor(e,t,r){if(t<1||t>12)throw new Error("Invalid month at Assert.DayPoint");if(r<1||r>y(t,e))throw new Error("Invalid date at DayPoint");this._value=arguments.length>=3?new Date(e,t-1,r):new Date,this._day=this._value.getDay(),this._date=r,this._month=t,this._year=e;}get value(){return this._value}get day(){return this._day}get date(){return this._date}get month(){return this._month}get year(){return this._year}get shortYear(){const e=this._year.toString();return parseInt(e.substr(e.length-2))}get isWeekday(){const e=this._day;return e>0&&e<6}get isWeekend(){return !this.isWeekday}get isLeapYear(){return f(this._year)}get nextDay(){return p(this,1,0,0)}get prevDay(){return p(this,-1,0,0)}get nextMonth(){return p(this,0,1,0)}get prevMonth(){return p(this,0,-1,0)}get nextYear(){return p(this,0,0,1)}get prevYear(){return p(this,0,0,-1)}get firstDayOfMonth(){return new d(this._year,this._month,1)}get lastDayOfMonth(){return new d(this._year,this._month,y(this._month,this._year))}add(e,t,r){function n(e,t,r){let n=e,s=t;for(;s--;)n=n[r];return n}const{abs:s}=Math,o=s(e),i=s(r),a=s(t),c=r<0?"prevDay":"nextDay",u=t<0?"prevMonth":"nextMonth";return n(n(n(this,o,e<0?"prevYear":"nextYear"),a,u),i,c)}isBefore(e){return !(this.isAfter(e)||this.equals(e))}isAfter(e){const t=this._year,r=e.year,n=this._month,s=e.month;return t>r||t===r&&n>s||t===r&&n===s&&this._date>e.date}equals(e){return this._year===e.year&&this._month===e.month&&this._date===e.date}toString(e="mm/dd/yyyy"){const t=/y{3,}/i.test(e)?this._year:this.shortYear,n=this._month,s=this._date,o=/m{2}/i.test(e)&&n<10?"0{1}":"{1}",i=/d{2}/i.test(e)&&s<10?"0{2}":"{2}";return r(e.replace(/y+/gi,"{0}").replace(/m+/gi,o).replace(/d+/gi,i),t,n,s)}toDate(){return this._value}toJson(){return this._value.toJSON()}static canParse(e){return t.isString(e)||t.isNumber(e)||t.isDate(e)?!isNaN(new Date(e).valueOf()):e instanceof d}static parse(e){if(e instanceof d)return e;let n=t.isString(e)?i(e).replace(/T\d{2}:\d{2}:\d{2}(.\d+)?Z/,""):e;if(/^\d{4}-\d{1,2}-\d{1,2}$/.test(n)){const e=n.split("-"),[t]=e;e.push(t),e.shift(),n=e.join("/");}const s=new Date(n);if(!t.exists(n)||Number.isNaN(s.valueOf()))throw new Error(r("Cannot parse value= {0}",n));return new d(s.getFullYear(),s.getMonth()+1,s.getDate())}static tryParse(e){return h((()=>d.parse(e)),null)}static assumeNow(e){l=d.parse(e);}static get today(){return l||d.parse(new Date)}}function y(e,r){return 2===e?f(r)?29:28:e<8&&t.isEven(e)||e>7&&t.isOdd(e)?30:31}function f(t){const r=t.toString().split(/\B/);return parseFloat(e(r[r.length-2],r[r.length-1]))%4==0}function p(e,t,r,n){const s=e.month,o=e.year,i=e.date,a=r,c=n;let u=i+t,l=s+a,h=o+c;if(i+t>y(s,o)&&(u=1,l=s+a+1),i+t<1){const t=e.prevMonth;u=y(t.month,t.year),l=s+a-1;}return l>12&&(l=1,h=o+c+1),l<1&&(l=12,h=o+c-1),new d(h,l,u)}function m(e,t=0){const r=Math.pow(10,-t);return Math.round(parseFloat((e*r).toFixed(Math.abs(t))))/r}function g(e,t=0){return m(e+5*Math.pow(10,t-1),t)}function _(e,t=0){return 0===e?0:m(e-5*Math.pow(10,t-1),t)}function w(e,t=0){return e<0?g(e,t):_(e,t)}function x(e){const t=(e,r=0,n=1)=>0<e?t(--e,n,r+n):r;return t(e)}function v(e){let t=0,r=1,n=0;for(;e>1;)n=t,t=r,r+=n,e--;return e<1?t:r}function b(e,t=0){const r=parseInt(e);return Number.isNaN(r)?t:r}var N=Object.freeze({__proto__:null,random:function(e=0,t=1){return Math.random()*(t-e)+e},round:m,roundUp:g,roundDown:_,roundTowardZero:w,gcd:function e(t,r){return 0===r?Math.abs(t):e(r,t%r)},fib:x,fib2:v,fibArray:function(e){return Array(e).fill(0).map((()=>x(--e))).reverse()},fib2Array:function(e){return Array(e).fill(0).map((()=>v(--e))).reverse()},tryParseInt:b,tryParseFloat:function(e,t=0){const r=parseFloat(e);return Number.isNaN(r)?t:r}});class ${constructor(e=0,r=0){if(!t.isNumber(e)||!t.isNumber(r))throw new Error("Coord requires numeric x and y values");this._x=e,this._y=r;}get x(){return this._x}get y(){return this._y}get value(){return {x:this.x,y:this.y}}get half(){return this.divide(new $(2,2))}get abs(){return new $(Math.abs(this.x),Math.abs(this.y))}equals(e){return this.x===e.x&&this.y===e.y}add(e){return new $(this.x+e.x,this.y+e.y)}subtract(e){return new $(this.x-e.x,this.y-e.y)}multiply(e){return new $(this.x*e.x,this.y*e.y)}divide(e){return new $(this.x/e.x,this.y/e.y)}round(e=0){return new $(m(this.x,e),m(this.y,e))}toString(){return `(${this.x},${this.y})`}static canParse(e){return t.isArray(e)?!(Number.isNaN(e[0])||Number.isNaN(e[1])):t.isObjectLiteral(e)&&"x"in e&&"y"in e?!(Number.isNaN(e.x)||Number.isNaN(e.y)):e instanceof $}static parse(e){return t.exists(e)?e instanceof $?e:t.isArray(e)?new $(e[0],e[1]):t.isObjectLiteral(e)&&t.exists(e.x)&&t.exists(e.y)?new $(e.x,e.y):null:null}static tryParse(e){return h((()=>$.parse(e)),null)}}class F extends ${constructor(e=0,t=0){super(e,t),this._lengthSquared=Math.pow(e,2)+Math.pow(t,2),this._magnitude=Math.sqrt(this._lengthSquared),this._unitNormalX=0===e&&0===t?0:e/this._magnitude,this._unitNormalY=0===e&&0===t?0:t/this._magnitude;}get magnitude(){return this._magnitude}get isZero(){return 0===this.x&&0===this.y}get normal(){return new F(this._unitNormalX,this._unitNormalY)}get invert(){return new F(-this.x,-this.y)}get norm(){return new F(Math.abs(this.x),Math.abs(this.y))}get perpendicular(){return new F(-this.y,this.x)}equals(e){return e instanceof F&&this.x===e.x&&this.y===e.y}add(e){return e instanceof F?new F(this.x+e.x,this.y+e.y):null}dot(e){return e instanceof F?this.x*e.x+this.y*e.y:null}perpendicularAtTo(e){if(!(e instanceof F))return null;const t=e.add(this.projectionOfOnto(e).invert);return new F(t.x,t.y)}projectionOfOnto(e){if(!(e instanceof F))return null;const t=e.normal.scale(this.dot(e.normal));return new F(t.x,t.y)}scale(e){return new F(this.x*e,this.y*e)}unitNormalDot(e){return e instanceof F?this.normal.x*e.normal.x+this.normal.y*e.normal.y:null}reflect(e){if(!(e instanceof F))return null;if(e.isZero)return this;const t=e.normal;return this.add(t.scale(2*t.dot(this)).invert)}round(e=0){return new F(m(this.x,e),m(this.y,e))}}class O extends ${constructor(e,t){super(e,t);}isAbove(e){return this.y<e.y}isBelow(e){return this.y>e.y}isLeftOf(e){return this.x<e.x}isRightOf(e){return this.x>e.x}distanceFrom(e){return new F(this.x-e.x,this.y-e.y)}distanceTo(e){return this.distanceFrom(e).invert}static canParse(e){return e instanceof O||$.canParse(e)}static parse(e){if(e instanceof O)return e;const t=$.parse(e);return new O(t.x,t.y)}static tryParse(e){return h((()=>O.parse(e)),null)}}function k(){return Math.random().toString().substr(2)}function Z(){return function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)}()}var R=Object.freeze({__proto__:null,uid:k,uuid:Z,suid:function(){return Symbol(k())},suuid:function(){return Symbol(Z())}});Object.freeze({__proto__:null,pattern:e=>e.toString().replace(/(^\/)|(\/$)/g,"").replace(/\\/g,"\\"),escape:e=>e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),alpha:/^[A-z]+$/,alphaNumeric:/^[A-z0-9]+$/,base64:/^[A-z0-9=]+$/,dataUrl:/^\s*data:([a-z]+\/[a-z0-9+-]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=._~:@/?%\s-]*\s*$/i,email:/^\w+([.\w-]+)?@\w+([.\w-]+)?\.[A-Za-z0-9]{2,}$/,empty:/^$/,numeric:/^-?[0-9]+$/,script:/(<script[A-z0-9\n\s\t\r.={([\])}'",;!&|$/#:<>*?+\u0000-\u0037\u00C2\u00A0\u2122-]*?<\/script>)/,uid:/^\d{14,}$/i,url:/^(https?:\/\/)?[^{}\\:]+\.[A-z0-9]{2,12}(\/[^?\s]+)*\/?(\?([^=?#]+=[^=?#]*(&[^=?#]+=[^=?#]*)*(#.*)?)?)?$/,uuid:/^[{(]?[0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9A-F]{12}[)}]?$/i});class Cookie{static serialize(e,r=defaultParams){try{if(t.isUndefined(e))throw new Error;const{name:n,expires:s,path:o,domain:i,secure:a}=Object.assign(defaultParams,r),c=kvPair(n,e),u=d.canParse(s)?kvPair("; expires",d.parse(s).toDate().toGMTString()):"",l=o?kvPair("; path",o.split("/").map((e=>encodeURIComponent(e))).join("/")):"",h=i?kvPair("; domain",encodeURIComponent(i)):"";return c+u+l+h+(a?"; secure":"")}catch(t){throw new Error(a.format("Cannot serialize {0}",e))}}static deserialize(e){try{return read$1(e)[1]}catch(t){throw new Error(a.format("Cannot deserialize {0}",e))}}static read(e){try{const[t,r]=read$1(e);return {name:t,value:r}}catch(t){throw new Error(a.format("Cannot read {0}",e))}}}const defaultParams={name:R.uid(),expires:d.today.nextYear.toDate(),path:"/",domain:null,secure:!1},kvPair=(e,t)=>`${e}=${t}`,read$1=e=>/;/.test(e)?e.substring(0,e.search(";")).split("="):e.split("=");class Device{static get orientation(){const{screen:e}=window,t=(e.orientation||{}).type||e.mozOrientation||e.msOrientation,r=window.orientation;return t===Device.landscapePrimary||90===r?Device.landscapePrimary:t===Device.landscapeSecondary||-90===r?Device.landscapeSecondary:t===Device.portraitPrimary||0===r?Device.portraitPrimary:t===Device.portraitSecondary||180===r?Device.portraitSecondary:void 0}static get landscapePrimary(){return "landscape-primary"}static get landscapeSecondary(){return "landscape-secondary"}static get portraitPrimary(){return "portrait-primary"}static get portraitSecondary(){return "portrait-secondary"}static get isMobile(){return /Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(window.navigator.userAgent)}}const onPreventScroll=new Set,onResumeScroll=new Set;let scroll,lastPageYOffset,lastPageXOffset,scrollIsDown=!1,scrollIsUp=!1,scrollIsLeft=!1,scrollIsRight=!1;class Document{static get scrollbarWidth(){return window.innerWidth-document.documentElement.clientWidth}static get isScrollPrevented(){return t.exists(Document.scrollY)}static preventScroll(){try{onPreventScroll.forEach((e=>e()));}catch(e){}Document.position=document.body.style.position,Document.offsetY=document.body.style.top,Document.offsetX=document.body.style.left,Document.width=document.body.style.width,Document.height=document.body.style.height,Document.documentWidth=document.documentElement.style.width,Document.documentWidth=document.documentElement.style.width,Document.documentHeight=document.documentElement.style.height,Document.overflowY=document.documentElement.style.overflowY,Document.scrollX=window.scrollX||window.pageXOffset,Document.scrollY=window.scrollY||window.pageYOffset;const{scrollbarWidth:e}=Document;document.body.style.position="fixed",document.body.style.left=`-${Document.scrollX}px`,document.body.style.top=`calc(-${Document.scrollY}px - ${window.getComputedStyle(document.body)["padding-top"]} - ${window.getComputedStyle(document.body)["margin-top"]})`,document.body.style.width=`calc(100vw - ${e}px - ${window.getComputedStyle(document.body)["padding-left"]} - ${window.getComputedStyle(document.body)["padding-right"]} - ${window.getComputedStyle(document.body)["margin-left"]} - ${window.getComputedStyle(document.body)["margin-right"]})`,document.documentElement.style.width="100wh",document.documentElement.style.height="100vh",document.documentElement.style.overflowY=e&&"scroll";}static resumeScroll(){try{onResumeScroll.forEach((e=>e()));}catch(e){}document.body.style.position=Document.position,document.body.style.top=Document.offsetY,document.body.style.left=Document.offsetX,document.body.style.width=Document.width,document.body.style.height=Document.height,document.documentElement.style.width=Document.documentWidth,document.documentElement.style.height=Document.documentHeight,document.documentElement.style.overflowY=Document.overflowY,window.scrollTo(Document.scrollX,Document.scrollY),Document.position=null,Document.offsetY=null,Document.offsetX=null,Document.width=null,Document.height=null,Document.documentWidth=null,Document.documentHeight=null,Document.overflowY=null,Document.scrollX=null,Document.scrollY=null;}static onPreventScroll(e){onPreventScroll.add(e);}static onResumeScroll(e){onResumeScroll.add(e);}static get scroll(){return scroll||(scroll=new Scroll,lastPageYOffset=window.pageYOffset,lastPageXOffset=window.pageXOffset,scrollIsDown=!1,scrollIsUp=!1,scrollIsLeft=!1,scrollIsRight=!1,window.addEventListener("unload",(()=>scroll.unload()))),scroll}}const updateScrollValue=()=>{const e=window.pageYOffset,t=window.pageXOffset;scrollIsDown=e>lastPageYOffset,scrollIsUp=e<lastPageYOffset,scrollIsRight=t>lastPageXOffset,scrollIsLeft=t<lastPageXOffset,lastPageYOffset=e||window.pageYOffset,lastPageXOffset=t||window.pageXOffset;};class Scroll{constructor(){document.addEventListener("scroll",updateScrollValue,{passive:!0});}get down(){return scrollIsDown}get up(){return scrollIsUp}get left(){return scrollIsLeft}get right(){return scrollIsRight}unload(){document.removeEventListener("scroll",updateScrollValue),scrollIsDown=!1,scrollIsUp=!1,scrollIsLeft=!1,scrollIsRight=!1,lastPageYOffset=window.pageYOffset,lastPageXOffset=window.pageXOffset,scroll=null;}}function encodeBase64(e,r=!1){if(!t.isString(e))throw new Error("Cannot encode non-string values.");const n=window.btoa(e);return r?n.replace(/=/g,""):n}function decodeBase64(e){if(!t.isString(e))throw new Error("Cannot encode non-string values.");return window.atob(e)}function encodeUtf8(e){if(!t.isString(e))throw new Error("Cannot encode non-string values.");return decodeURIComponent(encodeURIComponent(e))}function decodeUtf8(e){if(!t.isString(e))throw new Error("Cannot decode non-string values.");return decodeURIComponent(encodeURIComponent(e))}class Json{static serialize(e){if(t.isFunction(e))return;if(!t.exists(e))return e;if(!t.isArray(e)&&!t.isObject(e))return e.toString();const r=t.isArray(e)?"[{0}]":"{{0}}",n=[];return Object.keys(e).forEach((r=>{const s=e[r];if(t.isUndefined(s))return;const o=t.isNumber(s)?s:t.isDate(s)?`"${d.parse(s).toJson()}"`:t.isString(s)?`"${serializeString(s)}"`:Json.serialize(s);n[n.length]=(t.isObject(e)&&!t.isArray(e)?`"${r}":`:"")+o;})),a.format(r,n)}static deserialize(e){return /function|(=$)/i.test(e)?e:Json.deserialize_unsafe(e)}static deserialize_unsafe(value){try{const result=t.isString(value)?eval(`(${deserializeString(value)})`):value;return t.exists(result)?t.isNullOrEmpty(result.tagName)&&(t.isObject(result)||t.isArray(result))?(Object.keys(result).forEach((e=>{const r=result[e];(t.isObject(r)||t.isArray(r))&&(result[e]=Json.deserialize(r)),/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/.test(r)&&d.canParse(r)&&(result[e]=d.parse(r).toDate());})),result):/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/.test(result)?d.parse(result).toDate():result:result}catch(e){throw new Error(a.format("Cannot deserialize {0}",value))}}static encode(e,t=!1){try{return encodeBase64(Json.serialize(e),t)}catch(t){throw new Error(a.format("Cannot encode {0}",e))}}static decode(e){try{return Json.deserialize(decodeBase64(e))}catch(t){throw new Error(a.format("Cannot decode {0}",e))}}}function serializeString(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\//g,"/").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")}function deserializeString(e){return e.replace(/\\\//g,"/").replace(/\\\\f/g,"\\f").replace(/\\\\n/g,"\\n").replace(/\\\\r/g,"\\r").replace(/\\\\t/g,"\\t")}class QueryString{static serialize(e){try{let r="";return Object.keys(e).forEach((n=>{const s=e[n],o=t.isDate(s)?d.parse(s).toJson():s;r+=a.format("&{0}={1}",encodeURIComponent(n),encodeURIComponent(Json.serialize(o)));})),r.replace(/^&/,"")}catch(t){throw new Error(a.format("Cannot serialize {0}",e))}}static deserialize(e){if(/\??[^\s"'<>]+=[^\s"'<>]+/.test(e)){const t=e.replace(/.*\?/,"").split("&"),r={};return t.forEach((e=>{const[t,n]=e.split("="),s=/^null$|^true$|^false$|^\d+(\.\d+?)?$|^\[.*]$|^{.*}$/.test(n)?n:`"${n}"`;r[decodeURIComponent(t)]=Json.deserialize(decodeURIComponent(s));})),r}}}var worker=e=>{const t=e.toString(),r=t.indexOf("{")+1,n=t.lastIndexOf("}"),s=/(=>)/.test(t)&&!/{/gm.test(t)?`${t.replace("=>","=> {")}}`:t.substring(r,n),o=new self.Blob([s],{type:"text/javascript"});return new Worker(URL.createObjectURL(o))},connection=()=>{const e=self.indexedDB||self.mozIndexedDB||self.webkitIndexedDB||self.msIndexedDB;function t(t){if(!/^[A-z][A-z0-9]*$/.test(t))throw new Error("Invalid collection name. Must be alphanumeric and begin with an alpha character");return new Promise(((r,n)=>{try{const s=e.open(t);s.onerror=()=>{n(new Error("Error opening IndexedDB."));},s.onupgradeneeded=e=>{e.target.result.createObjectStore(t,{autoIncrement:!1});},s.onsuccess=()=>{r(s.result);};}catch(e){n(e);}}))}onmessage=function(e){const r=e.data[0],n=e.data[1],s=e.data[2];try{"read"===r&&function(e){return t(e).then((t=>new Promise(((r,n)=>{const s=t.transaction([e],"readonly").objectStore(e).get(1);s.onsuccess=e=>{t.close(),r(e.target.result);},s.onerror=()=>{t.close(),n(s.error);};}))))}(n).then((e=>postMessage([r,n,e]))).catch((e=>postMessage(["error",e.message]))),"write"===r&&function(e,r){return t(e).then((t=>new Promise(((n,s)=>{const o=t.transaction([e],"readwrite").objectStore(e).put(r,1);o.onsuccess=e=>{t.close(),n(e.target.result);},o.onerror=()=>{t.close(),s(o.error);};}))))}(n,s).then((e=>postMessage([r,n,e]))).catch((e=>postMessage(["error",e.message]))),"remove"===r&&function(e){return t(e).then((t=>new Promise(((r,n)=>{const s=t.transaction([e],"readwrite").objectStore(e).delete(1);s.onsuccess=e=>{t.close(),r(e.target.result);},s.onerror=()=>{t.close(),n(s.error);};}))))}(n).then((e=>postMessage([r,n,e]))).catch((e=>postMessage(["error",e.message]))),"drop"===r&&function(e){return t(e).then((t=>(t.onversionchange=()=>t.close(),new Promise(((t,r)=>{const n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0);},n.onerror=()=>{r(n.error);},n.onblocked=()=>{r(n.error);};})))))}(n).then((e=>postMessage([r,n,e]))).catch((e=>postMessage(["error",e.message])));}catch(e){postMessage(["error",e.message]);}};};const validCollection=/^[A-z]+$/;let connectionThread;class Store{static get connected(){return t.exists(connectionThread)}static connect(){try{return Store.connected||(connectionThread=worker(connection)),Store}catch{throw new Error("Store could not connect.")}}static disconnect(){try{if(Store.connected)return connectionThread.terminate(),connectionThread=null,Store}catch{throw new Error("Store could not be disconnected.")}}static async read(e){return new Promise(((r,n)=>{if(validCollection.test(e))if(t.exists(connectionThread)){const t=s=>{const[o,i,a]=s.data;"error"===o&&i===e&&(n(new Error(a)),connectionThread.removeEventListener("message",t)),"read"===o&&i===e&&(r(a),connectionThread.removeEventListener("message",t));};connectionThread.addEventListener("message",t),connectionThread.postMessage(["read",e]);}else n(new Error("Cannot read disconnected Store."));else n(new Error("Invalid collection name must contain only alpha characters."));}))}static async write(e,r){return new Promise(((n,s)=>{if(validCollection.test(e))if(t.exists(connectionThread)){const t=r=>{const[o,i,a]=r.data;"error"===o&&i===e&&(s(new Error(a)),connectionThread.removeEventListener("message",t)),"write"===o&&i===e&&(n(a),connectionThread.removeEventListener("message",t));};connectionThread.addEventListener("message",t),connectionThread.postMessage(["write",e,r]);}else s(Error("Cannot write disconnected Store."));else s(new Error("Invalid collection name must contain only alpha characters."));}))}static async remove(e){return new Promise(((r,n)=>{if(validCollection.test(e))if(t.exists(connectionThread)){const t=s=>{const[o,i,a]=s.data;"error"===o&&i===e&&(n(new Error(a)),connectionThread.removeEventListener("message",t)),"remove"===o&&i===e&&(r(a),connectionThread.removeEventListener("message",t));};connectionThread.addEventListener("message",t),connectionThread.postMessage(["remove",e]);}else n(Error("Cannot write disconnected Store."));else n(new Error("Invalid collection name must contain only alpha characters."));}))}static async delete(e){return new Promise(((r,n)=>{if(!t.isNullOrEmpty(e)&&validCollection.test(e))if(t.exists(connectionThread)){const t=s=>{const[o,i,a]=s.data;"error"===o&&i===e&&(n(new Error(a)),connectionThread.removeEventListener("message",t)),"drop"===o&&i===e&&(r(a),connectionThread.removeEventListener("message",t));};connectionThread.addEventListener("message",t),connectionThread.postMessage(["drop",e]);}else n(Error("Cannot drop disconnected Store."));else n(new Error("Invalid collection name must contain only alpha characters."));}))}static async save(){try{return await navigator.storage.persist()}catch(e){return !1}}static async estimate(){try{const e=navigator.storage||navigator.webkitPersistentStorage,{quota:t=NaN,usage:r=NaN}=await e.estimate()||{};return {quota:t,usage:r,free:`${N.roundUp((t-r)/t*100,-4)}%`,used:`${N.roundUp(r/t*100,-4)}%`}}catch(e){return {}}}static async saved(){try{return await navigator.storage.persisted()}catch{return !1}}}class Dto{constructor(e={},r){if(!t.isArray(e)&&!t.isObject(e))throw new TypeError("Dto value must be Array or object literal");this._value=e,this._name=r;}get value(){return t.isArray(this._value)?[...this._value]:{...this._value}}get name(){return this._name}set name(e){this._name=e;}read(e){return t.exists(e)?!t.isArray(this._value)||t.isNumber(e)?this._value[e]:void 0:this.value}remove(e){return t.isString(e)&&t.exists(e)&&delete this._value[e],t.isFunction(e)&&this._value.splice(this._value.findIndex(e),1),this}write(e,r){return t.isNullOrEmpty(e)||(t.isArray(this._value)?(t.isUndefined(r)&&this._value.push(e),t.isNumber(e)&&(this._value[e]=r)):this._value[e]=r),this}update(e){const r=Object.assign(this.value,e);return this._value=t.isArray(this._value)?Object.values(r):r,this}clear(){return this._value=t.isArray(this._value)?[]:{},this}async save(){return Store.connect(),await Store.write(this.name,this.encode(!0,!0)),await Store.save()}async saveAs(e){return this.name=e,Store.connect(),await Store.delete(this.name),this.save()}async delete(){return Store.connect(),await Store.delete(this.name),this}encode(e=!1,t=!1){const r=Json.serialize(this._value);return encodeBase64(t?encodeURIComponent(r):r,e)}static decode(e,t){const r=decodeBase64(e),n=decodeURIComponent(r);return new Dto(Json.deserialize(n),t)}toFormData(){const{value:e}=this,t=new window.FormData;return Object.keys(e).forEach((r=>t.append(r,e[r]))),t}toJson(){return Json.serialize(this._value)}toQueryString(){return QueryString.serialize(this._value)}static parseFormData(e){const t={};for(const[r,n]of e.entries())t[r]=n;return new Dto(t)}static parseJson(e){return new Dto(Json.deserialize(e))}static parseJwt(e){try{const[,t]=e.split(".");return new Dto(JSON.parse(window.atob(t)))}catch(t){throw new SyntaxError(`Cannot parseJwt: ${e}`)}}static parseQueryString(e){return new Dto(QueryString.deserialize(e))}static async load(e){return Store.connect(),Store.read(e).then((t=>{try{return Dto.decode(t,e)}catch{return}})).catch((()=>{}))}}class Event{static mute(e){return !!t.exists(e)&&(t.isFunction(e.preventDefault)&&e.preventDefault(),t.isFunction(e.stopPropagation)&&e.stopPropagation(),t.isFunction(e.stopImmediatePropagation)&&e.stopImmediatePropagation(),t.exists(e.cancelBubble)&&(e.cancelBubble=!0),!1)}}const readFieldNames=e=>{const t=e.getAttribute("id"),r=[...e.querySelectorAll("[name]")].map((e=>e.name)),n=t?[...document.querySelectorAll(`[form="${t}"]`)].map((e=>e.name)):[];return [...r,...n]},readData=e=>new window.FormData(e),read=e=>{const r={};try{readData(e).forEach(((e,n)=>{const s=r[n];t.isArray(s)?r[n].push(e):t.exists(s)?r[n]=[r[n],e]:r[n]=e;}));}catch(t){[...e.elements].forEach((e=>{const{name:t,type:n,value:s,files:o}=e;if("file"===n)r[t]=o[0];else if("checkbox"===n||"radio"===n)e.checked&&(r[t]=s);else if(e.multiple){const n=[];e.querySelectorAll("option").forEach((e=>e.selected&&n.push(e.value))),r[t]=n.length<2?n[0]:n;}else r[t]=s;}));}return r},readJson=e=>JSON.stringify(read(e)),write=(e,r)=>{[...e.elements].forEach((e=>{/^select$/i.test(e.nodeName)?t.isArray(r[e.name])?[...e.options].forEach((t=>{t.selected=r[e.name].indexOf(t.value)>=0;})):t.exists(r[e.name])&&(e.value=r[e.name]):t.exists(r[e.name])&&("checkbox"===e.type||"radio"===e.type?e.checked=r[e.name]===e.value:e.value=r[e.name]);}));};var index={readFieldNames:readFieldNames,read:read,readData:readData,readJson:readJson,write:write};class Key{constructor(e,t,r={}){this.key=e,this.msKey=t||e,this.altKey=r.altKey||!1,this.ctrlKey=r.ctrlKey||!1,this.metaKey=r.metaKey||!1,this.shiftKey=r.shiftKey||!1;}get alt(){const{key:e,msKey:t,ctrlKey:r,metaKey:n,shiftKey:s}=this;return new Key(e,t,{altKey:!0,ctrlKey:r,metaKey:n,shiftKey:s})}get ctrl(){const{key:e,msKey:t,altKey:r,metaKey:n,shiftKey:s}=this;return new Key(e,t,{altKey:r,ctrlKey:!0,metaKey:n,shiftKey:s})}get meta(){const{key:e,msKey:t,altKey:r,ctrlKey:n,shiftKey:s}=this;return new Key(e,t,{altKey:r,ctrlKey:n,metaKey:!0,shiftKey:s})}get shift(){const{key:e,msKey:t,altKey:r,ctrlKey:n,metaKey:s}=this;return new Key(e,t,{altKey:r,ctrlKey:n,metaKey:s,shiftKey:!0})}equals(e){return e instanceof Key&&this.altKey===e.altKey&&this.ctrlKey===e.ctrlKey&&this.metaKey===e.metaKey&&this.shiftKey===e.shiftKey&&(this.key===e.key||this.msKey===e.msKey)}didFire(e){const{code:t,key:r,altKey:n,ctrlKey:s,metaKey:o,shiftKey:i}=e,a="Dead"===r?t:r;return e&&("ANY"===this.key||this.equals(new Key(a,a,{altKey:n,ctrlKey:s,metaKey:o,shiftKey:i})))}static get press(){return "keypress"}static get down(){return "keydown"}static get up(){return "keyup"}static get any(){return new Key("ANY")}static get esc(){return new Key("Escape","Esc")}static get enter(){return new Key("Enter")}static get space(){return new Key(" ","Spacebar")}static get tab(){return new Key("Tab")}static get left(){return new Key("ArrowLeft","Left")}static get right(){return new Key("ArrowRight","Right")}}class Keyboard{static on(e,t,r,n){const s=e=>t.didFire(e)?r(e,t):null;return window.addEventListener(e,s,n),{unsubscribe:()=>{window.removeEventListener(e,s);}}}static onKeyPress(e,t,r){return Keyboard.on(Key.press,e,t,r)}static onKeyDown(e,t,r){return Keyboard.on(Key.down,e,t,r)}static onKeyUp(e,t,r){return Keyboard.on(Key.up,e,t,r)}}class Swipe{constructor(e,t=0){this.didTouchStart=this.didTouchStart.bind(this),this.didTouchEnd=this.didTouchEnd.bind(this),this.didTouchMove=this.didTouchMove.bind(this),e.addEventListener("touchstart",this.didTouchStart,{capture:!1,passive:!0}),e.addEventListener("touchend",this.didTouchEnd,{capture:!1,passive:!0}),e.addEventListener("touchmove",this.didTouchMove,{capture:!1,passive:!0}),this.element=e,this.tolerance=t,this.didSwipeLeft=()=>{},this.didSwipeRight=()=>{},this.didMove=()=>{};}onLeft(e){return this.didSwipeLeft=e,this}onRight(e){return this.didSwipeRight=e,this}onMove(e){return this.didMove=e,this}destroy(){const{element:e}=this;return e.removeEventListener("touchstart",this.didTouchStart,!1),e.removeEventListener("touchend",this.didTouchEnd,!1),e.removeEventListener("touchmove",this.didTouchMove,!1),this}didTouchStart({touches:[e]}){this.touchStartPoint=new O(e.pageX,e.pageY);}didTouchEnd(e){const[t]=e.changedTouches,{touchStartPoint:r}=this,n=new O(t.pageX,t.pageY);n.isLeftOf(r)&&Math.abs(n.distanceFrom(r).x)>this.tolerance&&this.didSwipeLeft(e),n.isRightOf(r)&&Math.abs(n.distanceFrom(r).x)>this.tolerance&&this.didSwipeRight(e);}didTouchMove(e){const[t]=e.touches,{touchStartPoint:r}=this,n=new O(t.pageX,t.pageY);this.didMove({distance:n.distanceFrom(r),up:n.isAbove(r),down:n.isBelow(r),left:n.isLeftOf(r),right:n.isRightOf(r)});}}
2
+
3
+ export { Document as D, Event as E, Key as K, Swipe as S, Device as a, index as i };
@@ -0,0 +1 @@
1
+ var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __awaiter=this&&this.__awaiter||function(e,t,n,r){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function i(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):a(e.value).then(i,s)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return l([e,t])}}function l(i){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,a&&(o=i[0]&2?a["return"]:i[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,i[1])).done)return o;if(a=0,o)i=[i[0]&2,o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:n.label++;return{value:i[1],done:false};case 5:n.label++;a=i[1];i=[0];continue;case 7:i=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]<o[3])){n.label=i[1];break}if(i[0]===6&&n.label<o[1]){n.label=o[1];o=i;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(i);break}if(o[2])n.ops.pop();n.trys.pop();continue}i=t.call(e,n)}catch(s){i=[6,s];a=0}finally{r=o=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,o;r<a;r++){if(o||!(r in t)){if(!o)o=Array.prototype.slice.call(t,0,r);o[r]=t[r]}}return e.concat(o||Array.prototype.slice.call(t))};System.register([],(function(e,t){"use strict";return{execute:function(){var n=this;var r=e("N","ku4web-components");var a=e("B",{allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,cmpDidLoad:true,cmpDidRender:true,cmpDidUnload:false,cmpDidUpdate:false,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:false,cmpWillUpdate:false,connectedCallback:true,constructableCSS:true,cssAnnotations:true,cssVarShim:false,devTools:false,disconnectedCallback:true,dynamicImportShim:false,element:false,event:true,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:false,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:true,hotModuleReplacement:false,hydrateClientSide:false,hydrateServerSide:false,hydratedAttribute:true,hydratedClass:false,initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:true,isTesting:true,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:true,member:true,method:true,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,safari10:true,scoped:false,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:true,shadowDomShim:true,slot:true,slotChildNodesFix:false,slotRelocation:true,state:true,style:true,svg:false,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:false,vdomKey:false,vdomListener:true,vdomPropOrAttr:true,vdomRef:false,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:false,watchCallback:true});var o={};var i;var s;var l;var f;var c=0;var u=false;var d=false;var $=false;var v=false;var h=null;var m=0;var p=false;var g=e("w",typeof window!=="undefined"?window:{});var y=e("C",a.cssVarShim?g.CSS:null);var b=e("d",g.document||{head:{}});var w=e("H",g.HTMLElement||function(){function e(){}return e}());var S=e("p",{$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,n,r){return e.addEventListener(t,n,r)},rel:function(e,t,n,r){return e.removeEventListener(t,n,r)},ce:function(e,t){return new CustomEvent(e,t)}});var N=function(e){Object.assign(S,e)};var R=a.shadowDomShim&&a.shadowDom?function(){return(b.head.attachShadow+"").indexOf("[native")>-1}():true;var C=function(){var e=false;try{b.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){e=true}}))}catch(t){}return e}();var L=e("a",(function(e){return Promise.resolve(e)}));var x=a.constructableCSS?function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replace==="function"}catch(e){}return false}():false;var T={};var k=function(e,t,n,r){if(a.hostListener&&n){if(a.hostListenerTargetParent){if(r){n=n.filter((function(e){var t=e[0];return t&32}))}else{n=n.filter((function(e){var t=e[0];return!(t&32)}))}}n.map((function(n){var r=n[0],o=n[1],i=n[2];var s=a.hostListenerTarget?D(e,r):e;var l=_(t,i);var f=A(r);S.ael(s,o,l,f);(t.$rmListeners$=t.$rmListeners$||[]).push((function(){return S.rel(s,o,l,f)}))}))}};var _=function(e,t){return function(n){try{if(a.lazyLoad){if(e.$flags$&256){e.$lazyInstance$[t](n)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}}else{e.$hostElement$[t](n)}}catch(r){zt(r)}}};var D=function(e,t){if(a.hostListenerTargetDocument&&t&4)return b;if(a.hostListenerTargetWindow&&t&8)return g;if(a.hostListenerTargetBody&&t&16)return b.body;if(a.hostListenerTargetParent&&t&32)return e.parentElement;return e};var A=function(e){return C?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0};var E="r";var O="o";var P="s";var I="t";var z="s-id";var j="sty-id";var M="c-id";var B="{visibility:hidden}[hydrated]{visibility:inherit}";var U="http://www.w3.org/1999/xlink";var F=function(e,t){if(t===void 0){t=""}if(a.profile&&performance.mark){var n="st:".concat(e,":").concat(t,":").concat(c++);performance.mark(n);return function(){return performance.measure("[Stencil] ".concat(e,"() <").concat(t,">"),n)}}else{return function(){return}}};var H=function(e,t){if(a.profile&&performance.mark){if(performance.getEntriesByName(e).length===0){performance.mark(e)}return function(){if(performance.getEntriesByName(t).length===0){performance.measure(t,e)}}}else{return function(){return}}};var V=function(e){var t;var n=Et(e);if(!n){return undefined}var r=n.$flags$;var a=n.$hostElement$;return t={renderCount:n.$renderCount$,flags:{hasRendered:!!(r&2),hasConnected:!!(r&1),isWaitingForChildren:!!(r&4),isConstructingInstance:!!(r&8),isQueuedForUpdate:!!(r&16),hasInitializedComponent:!!(r&32),hasLoadedComponent:!!(r&64),isWatchReady:!!(r&128),isListenReady:!!(r&256),needsRerender:!!(r&512)},instanceValues:n.$instanceValues$,ancestorComponent:n.$ancestorComponent$,hostElement:a,lazyInstance:n.$lazyInstance$,vnode:n.$vnode$,modeName:n.$modeName$,onReadyPromise:n.$onReadyPromise$,onReadyResolve:n.$onReadyResolve$,onInstancePromise:n.$onInstancePromise$,onInstanceResolve:n.$onInstanceResolve$,onRenderResolve:n.$onRenderResolve$,queuedListeners:n.$queuedListeners$,rmListeners:n.$rmListeners$},t["s-id"]=a["s-id"],t["s-cr"]=a["s-cr"],t["s-lr"]=a["s-lr"],t["s-p"]=a["s-p"],t["s-rc"]=a["s-rc"],t["s-sc"]=a["s-sc"],t};var W=function(){if(a.devTools){var e=g.stencil=g.stencil||{};var t=e.inspect;e.inspect=function(e){var n=V(e);if(!n&&typeof t==="function"){n=t(e)}return n}}};var q=new WeakMap;var Q=function(e,t,n){var r=Wt.get(e);if(x&&n){r=r||new CSSStyleSheet;r.replace(t)}else{r=t}Wt.set(e,r)};var K=function(e,t,n,r){var o=J(t,n);var i=Wt.get(o);if(!a.attachStyles){return o}e=e.nodeType===11?e:b;if(i){if(typeof i==="string"){e=e.head||e;var s=q.get(e);var l=void 0;if(!s){q.set(e,s=new Set)}if(!s.has(o)){if(a.hydrateClientSide&&e.host&&(l=e.querySelector("[".concat(j,'="').concat(o,'"]')))){l.innerHTML=i}else{if(a.cssVarShim&&S.$cssShim$){l=S.$cssShim$.createHostStyle(r,o,i,!!(t.$flags$&10));var f=l["s-sc"];if(f){o=f;s=null}}else{l=b.createElement("style");l.innerHTML=i}if(a.hydrateServerSide||a.hotModuleReplacement){l.setAttribute(j,o)}e.insertBefore(l,e.querySelector("link"))}if(s){s.add(o)}}}else if(a.constructableCSS&&!e.adoptedStyleSheets.includes(i)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[i],false)}}return o};var X=function(e){var t=e.$cmpMeta$;var n=e.$hostElement$;var r=t.$flags$;var o=F("attachStyles",t.$tagName$);var i=K(a.shadowDom&&R&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$,n);if((a.shadowDom||a.scoped)&&a.cssAnnotations&&r&10){n["s-sc"]=i;n.classList.add(i+"-h");if(a.scoped&&r&2){n.classList.add(i+"-s")}}o()};var J=function(e,t){return"sc-"+(a.mode&&t&&e.$flags$&32?e.$tagName$+"-"+t:e.$tagName$)};var G=function(e){return e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{")};var Y=function(e){return qt.map((function(t){return t(e)})).find((function(e){return!!e}))};var Z=function(e){return qt.push(e)};var ee=function(e){return Et(e).$modeName$};var te={};var ne="http://www.w3.org/2000/svg";var re="http://www.w3.org/1999/xhtml";var ae=function(e){return e!=null};var oe=function(e){e=typeof e;return e==="object"||e==="function"};var ie=e("h",(function(e,t){var n=[];for(var r=2;r<arguments.length;r++){n[r-2]=arguments[r]}var o=null;var i=null;var s=null;var l=false;var f=false;var c=[];var u=function(t){for(var n=0;n<t.length;n++){o=t[n];if(Array.isArray(o)){u(o)}else if(o!=null&&typeof o!=="boolean"){if(l=typeof e!=="function"&&!oe(o)){o=String(o)}else if(a.isDev&&typeof e!=="function"&&o.$flags$===undefined){Mt("vNode passed as children has unexpected type.\nMake sure it's using the correct h() function.\nEmpty objects can also be the cause, look for JSX comments that became objects.")}if(l&&f){c[c.length-1].$text$+=o}else{c.push(l?se(null,o):o)}f=l}}};u(n);if(t){if(a.isDev&&e==="input"){$e(t)}if(a.vdomKey&&t.key){i=t.key}if(a.slotRelocation&&t.name){s=t.name}if(a.vdomClass){var d=t.className||t.class;if(d){t.class=typeof d!=="object"?d:Object.keys(d).filter((function(e){return d[e]})).join(" ")}}}if(a.isDev&&c.some(fe)){Mt("The <Host> must be the single root component. Make sure:\n- You are NOT using hostData() and <Host> in the same component.\n- <Host> is used once, and it's the single root component of the render() function.")}if(a.vdomFunctional&&typeof e==="function"){return e(t===null?{}:t,c,ce)}var $=se(e,null);$.$attrs$=t;if(c.length>0){$.$children$=c}if(a.vdomKey){$.$key$=i}if(a.slotRelocation){$.$name$=s}return $}));var se=function(e,t){var n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};if(a.vdomAttribute){n.$attrs$=null}if(a.vdomKey){n.$key$=null}if(a.slotRelocation){n.$name$=null}return n};var le=e("f",{});var fe=function(e){return e&&e.$tag$===le};var ce={forEach:function(e,t){return e.map(ue).forEach(t)},map:function(e,t){return e.map(ue).map(t).map(de)}};var ue=function(e){return{vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}};var de=function(e){if(typeof e.vtag==="function"){var t=Object.assign({},e.vattrs);if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return ie.apply(void 0,__spreadArray([e.vtag,t],e.vchildren||[],false))}var n=se(e.vtag,e.vtext);n.$attrs$=e.vattrs;n.$children$=e.vchildren;n.$key$=e.vkey;n.$name$=e.vname;return n};var $e=function(e){var t=Object.keys(e);var n=t.indexOf("value");if(n===-1){return}var r=t.indexOf("type");var a=t.indexOf("min");var o=t.indexOf("max");var i=t.indexOf("step");if(n<r||n<a||n<o||n<i){Bt('The "value" prop of <input> should be set after "min", "max", "type" and "step"')}};var ve=function(e,t,n,r,o,i){if(n!==r){var s=It(e,t);var l=t.toLowerCase();if(a.vdomClass&&t==="class"){var f=e.classList;var c=me(n);var u=me(r);f.remove.apply(f,c.filter((function(e){return e&&!u.includes(e)})));f.add.apply(f,u.filter((function(e){return e&&!c.includes(e)})))}else if(a.vdomStyle&&t==="style"){if(a.updatable){for(var d in n){if(!r||r[d]==null){if(!a.hydrateServerSide&&d.includes("-")){e.style.removeProperty(d)}else{e.style[d]=""}}}}for(var d in r){if(!n||r[d]!==n[d]){if(!a.hydrateServerSide&&d.includes("-")){e.style.setProperty(d,r[d])}else{e.style[d]=r[d]}}}}else if(a.vdomKey&&t==="key");else if(a.vdomRef&&t==="ref"){if(r){r(e)}}else if(a.vdomListener&&(a.lazyLoad?!s:!e.__lookupSetter__(t))&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(It(g,l)){t=l.slice(2)}else{t=l[2]+t.slice(3)}if(n){S.rel(e,t,n,false)}if(r){S.ael(e,t,r,false)}}else if(a.vdomPropOrAttr){var $=oe(r);if((s||$&&r!==null)&&!o){try{if(!e.tagName.includes("-")){var v=r==null?"":r;if(t==="list"){s=false}else if(n==null||e[t]!=v){e[t]=v}}else{e[t]=r}}catch(m){}}var h=false;if(a.vdomXlink){if(l!==(l=l.replace(/^xlink\:?/,""))){t=l;h=true}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""){if(a.vdomXlink&&h){e.removeAttributeNS(U,t)}else{e.removeAttribute(t)}}}else if((!s||i&4||o)&&!$){r=r===true?"":r;if(a.vdomXlink&&h){e.setAttributeNS(U,t,r)}else{e.setAttribute(t,r)}}}}};var he=/\s/;var me=function(e){return!e?[]:e.split(he)};var pe=function(e,t,n,r){var o=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$;var i=e&&e.$attrs$||te;var s=t.$attrs$||te;if(a.updatable){for(r in i){if(!(r in s)){ve(o,r,i[r],undefined,n,t.$flags$)}}}for(r in s){ve(o,r,i[r],s[r],n,t.$flags$)}};var ge=function(e,t,n,r){var o=t.$children$[n];var f=0;var c;var d;var h;if(a.slotRelocation&&!u){$=true;if(o.$tag$==="slot"){if(i){r.classList.add(i+"-s")}o.$flags$|=o.$children$?2:1}}if(a.isDev&&o.$elm$){Mt("The JSX ".concat(o.$text$!==null?'"'.concat(o.$text$,'" text'):'"'.concat(o.$tag$,'" element')," node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes"))}if(a.vdomText&&o.$text$!==null){c=o.$elm$=b.createTextNode(o.$text$)}else if(a.slotRelocation&&o.$flags$&1){c=o.$elm$=a.isDebug||a.hydrateServerSide?Ee(o):b.createTextNode("")}else{if(a.svg&&!v){v=o.$tag$==="svg"}c=o.$elm$=a.svg?b.createElementNS(v?ne:re,a.slotRelocation&&o.$flags$&2?"slot-fb":o.$tag$):b.createElement(a.slotRelocation&&o.$flags$&2?"slot-fb":o.$tag$);if(a.svg&&v&&o.$tag$==="foreignObject"){v=false}if(a.vdomAttribute){pe(null,o,v)}if((a.shadowDom||a.scoped)&&ae(i)&&c["s-si"]!==i){c.classList.add(c["s-si"]=i)}if(o.$children$){for(f=0;f<o.$children$.length;++f){d=ge(e,o,f,c);if(d){c.appendChild(d)}}}if(a.svg){if(o.$tag$==="svg"){v=false}else if(c.tagName==="foreignObject"){v=true}}}if(a.slotRelocation){c["s-hn"]=l;if(o.$flags$&(2|1)){c["s-sr"]=true;c["s-cr"]=s;c["s-sn"]=o.$name$||"";h=e&&e.$children$&&e.$children$[n];if(h&&h.$tag$===o.$tag$&&e.$elm$){ye(e.$elm$,false)}}}return c};var ye=function(e,t){S.$flags$|=1;var n=e.childNodes;for(var r=n.length-1;r>=0;r--){var a=n[r];if(a["s-hn"]!==l&&a["s-ol"]){Ce(a).insertBefore(a,Re(a));a["s-ol"].remove();a["s-ol"]=undefined;$=true}if(t){ye(a,t)}}S.$flags$&=~1};var be=function(e,t,n,r,o,i){var s=a.slotRelocation&&e["s-cr"]&&e["s-cr"].parentNode||e;var f;if(a.shadowDom&&s.shadowRoot&&s.tagName===l){s=s.shadowRoot}for(;o<=i;++o){if(r[o]){f=ge(null,n,o,e);if(f){r[o].$elm$=f;s.insertBefore(f,a.slotRelocation?Re(t):t)}}}};var we=function(e,t,n,r,o){for(;t<=n;++t){if(r=e[t]){o=r.$elm$;De(r);if(a.slotRelocation){d=true;if(o["s-ol"]){o["s-ol"].remove()}else{ye(o,true)}}o.remove()}}};var Se=function(e,t,n,r){var o=0;var i=0;var s=0;var l=0;var f=t.length-1;var c=t[0];var u=t[f];var d=r.length-1;var $=r[0];var v=r[d];var h;var m;while(o<=f&&i<=d){if(c==null){c=t[++o]}else if(u==null){u=t[--f]}else if($==null){$=r[++i]}else if(v==null){v=r[--d]}else if(Ne(c,$)){Le(c,$);c=t[++o];$=r[++i]}else if(Ne(u,v)){Le(u,v);u=t[--f];v=r[--d]}else if(Ne(c,v)){if(a.slotRelocation&&(c.$tag$==="slot"||v.$tag$==="slot")){ye(c.$elm$.parentNode,false)}Le(c,v);e.insertBefore(c.$elm$,u.$elm$.nextSibling);c=t[++o];v=r[--d]}else if(Ne(u,$)){if(a.slotRelocation&&(c.$tag$==="slot"||v.$tag$==="slot")){ye(u.$elm$.parentNode,false)}Le(u,$);e.insertBefore(u.$elm$,c.$elm$);u=t[--f];$=r[++i]}else{s=-1;if(a.vdomKey){for(l=o;l<=f;++l){if(t[l]&&t[l].$key$!==null&&t[l].$key$===$.$key$){s=l;break}}}if(a.vdomKey&&s>=0){m=t[s];if(m.$tag$!==$.$tag$){h=ge(t&&t[i],n,s,e)}else{Le(m,$);t[s]=undefined;h=m.$elm$}$=r[++i]}else{h=ge(t&&t[i],n,i,e);$=r[++i]}if(h){if(a.slotRelocation){Ce(c.$elm$).insertBefore(h,Re(c.$elm$))}else{c.$elm$.parentNode.insertBefore(h,c.$elm$)}}}}if(o>f){be(e,r[d+1]==null?null:r[d+1].$elm$,n,r,i,d)}else if(a.updatable&&i>d){we(t,o,f)}};var Ne=function(e,t){if(e.$tag$===t.$tag$){if(a.slotRelocation&&e.$tag$==="slot"){return e.$name$===t.$name$}if(a.vdomKey){return e.$key$===t.$key$}return true}return false};var Re=function(e){return e&&e["s-ol"]||e};var Ce=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode};var Le=function(e,t){var n=t.$elm$=e.$elm$;var r=e.$children$;var o=t.$children$;var i=t.$tag$;var s=t.$text$;var l;if(!a.vdomText||s===null){if(a.svg){v=i==="svg"?true:i==="foreignObject"?false:v}if(a.vdomAttribute||a.reflect){if(a.slot&&i==="slot");else{pe(e,t,v)}}if(a.updatable&&r!==null&&o!==null){Se(n,r,t,o)}else if(o!==null){if(a.updatable&&a.vdomText&&e.$text$!==null){n.textContent=""}be(n,null,t,o,0,o.length-1)}else if(a.updatable&&r!==null){we(r,0,r.length-1)}if(a.svg&&v&&i==="svg"){v=false}}else if(a.vdomText&&a.slotRelocation&&(l=n["s-cr"])){l.parentNode.textContent=s}else if(a.vdomText&&e.$text$!==s){n.data=s}};var xe=function(e){var t=e.childNodes;var n;var r;var a;var o;var i;var s;for(r=0,a=t.length;r<a;r++){n=t[r];if(n.nodeType===1){if(n["s-sr"]){i=n["s-sn"];n.hidden=false;for(o=0;o<a;o++){s=t[o].nodeType;if(t[o]["s-hn"]!==n["s-hn"]||i!==""){if(s===1&&i===t[o].getAttribute("slot")){n.hidden=true;break}}else{if(s===1||s===3&&t[o].textContent.trim()!==""){n.hidden=true;break}}}}xe(n)}}};var Te=[];var ke=function(e){var t;var n;var r;var a;var o;var i;var s=0;var l=e.childNodes;var f=l.length;for(;s<f;s++){t=l[s];if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){r=n.parentNode.childNodes;a=t["s-sn"];for(i=r.length-1;i>=0;i--){n=r[i];if(!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"]){if(_e(n,a)){o=Te.find((function(e){return e.$nodeToRelocate$===n}));d=true;n["s-sn"]=n["s-sn"]||a;if(o){o.$slotRefNode$=t}else{Te.push({$slotRefNode$:t,$nodeToRelocate$:n})}if(n["s-sr"]){Te.map((function(e){if(_e(e.$nodeToRelocate$,n["s-sn"])){o=Te.find((function(e){return e.$nodeToRelocate$===n}));if(o&&!e.$slotRefNode$){e.$slotRefNode$=o.$slotRefNode$}}}))}}else if(!Te.some((function(e){return e.$nodeToRelocate$===n}))){Te.push({$nodeToRelocate$:n})}}}}if(t.nodeType===1){ke(t)}}};var _e=function(e,t){if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var De=function(e){if(a.vdomRef){e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null);e.$children$&&e.$children$.map(De)}};var Ae=function(e,t){var n=e.$hostElement$;var r=e.$cmpMeta$;var o=e.$vnode$||se(null,null);var f=fe(t)?t:ie(null,null,t);l=n.tagName;if(a.isDev&&Array.isArray(t)&&t.some(fe)){throw new Error('The <Host> must be the single root component.\nLooks like the render() function of "'.concat(l.toLowerCase(),'" is returning an array that contains the <Host>.\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n <Host>{content}</Host>\n );\n}\n '))}if(a.reflect&&r.$attrsToReflect$){f.$attrs$=f.$attrs$||{};r.$attrsToReflect$.map((function(e){var t=e[0],r=e[1];return f.$attrs$[r]=n[t]}))}f.$tag$=null;f.$flags$|=4;e.$vnode$=f;f.$elm$=o.$elm$=a.shadowDom?n.shadowRoot||n:n;if(a.scoped||a.shadowDom){i=n["s-sc"]}if(a.slotRelocation){s=n["s-cr"];u=R&&(r.$flags$&1)!==0;d=false}Le(o,f);if(a.slotRelocation){S.$flags$|=1;if($){ke(f.$elm$);var c=void 0;var v=void 0;var h=void 0;var m=void 0;var p=void 0;var g=void 0;var y=0;for(;y<Te.length;y++){c=Te[y];v=c.$nodeToRelocate$;if(!v["s-ol"]){h=a.isDebug||a.hydrateServerSide?Oe(v):b.createTextNode("");h["s-nr"]=v;v.parentNode.insertBefore(v["s-ol"]=h,v)}}for(y=0;y<Te.length;y++){c=Te[y];v=c.$nodeToRelocate$;if(c.$slotRefNode$){m=c.$slotRefNode$.parentNode;p=c.$slotRefNode$.nextSibling;h=v["s-ol"];while(h=h.previousSibling){g=h["s-nr"];if(g&&g["s-sn"]===v["s-sn"]&&m===g.parentNode){g=g.nextSibling;if(!g||!g["s-nr"]){p=g;break}}}if(!p&&m!==v.parentNode||v.nextSibling!==p){if(v!==p){if(!v["s-hn"]&&v["s-ol"]){v["s-hn"]=v["s-ol"].parentNode.nodeName}m.insertBefore(v,p)}}}else{if(v.nodeType===1){v.hidden=true}}}}if(d){xe(f.$elm$)}S.$flags$&=~1;Te.length=0}};var Ee=function(e){return b.createComment("<slot".concat(e.$name$?' name="'+e.$name$+'"':"","> (host=").concat(l.toLowerCase(),")"))};var Oe=function(e){return b.createComment("org-location for "+(e.localName?"<".concat(e.localName,"> (host=").concat(e["s-hn"],")"):"[".concat(e.textContent,"]")))};var Pe=e("g",(function(e){return a.lazyLoad?Et(e).$hostElement$:e}));var Ie=e("e",(function(e,t,n){var r=Pe(e);return{emit:function(e){if(a.isDev&&!r.isConnected){Bt('The "'.concat(t,'" event was emitted, but the dispatcher node is no longer connected to the dom.'))}return ze(r,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}}}));var ze=function(e,t,n){var r=S.ce(t,n);e.dispatchEvent(r);return r};var je=function(e,t){if(a.asyncLoading&&t&&!e.$onRenderResolve$&&t["s-p"]){t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))}};var Me=function(e,t){if(a.taskQueue&&a.updatable){e.$flags$|=16}if(a.asyncLoading&&e.$flags$&4){e.$flags$|=512;return}je(e,e.$ancestorComponent$);var n=function(){return Be(e,t)};return a.taskQueue?nn(n):n()};var Be=function(e,t){var n=e.$hostElement$;var r=F("scheduleUpdate",e.$cmpMeta$.$tagName$);var o=a.lazyLoad?e.$lazyInstance$:n;var i;if(t){if(a.lazyLoad&&a.hostListener){e.$flags$|=256;if(e.$queuedListeners$){e.$queuedListeners$.map((function(e){var t=e[0],n=e[1];return Qe(o,t,n)}));e.$queuedListeners$=null}}Xe(n,"componentWillLoad");if(a.cmpWillLoad){i=Qe(o,"componentWillLoad")}}else{Xe(n,"componentWillUpdate");if(a.cmpWillUpdate){i=Qe(o,"componentWillUpdate")}}Xe(n,"componentWillRender");if(a.cmpWillRender){i=Ke(i,(function(){return Qe(o,"componentWillRender")}))}r();return Ke(i,(function(){return Ue(e,o,t)}))};var Ue=function(e,t,r){return __awaiter(n,void 0,void 0,(function(){var n,o,i,s,l,f;return __generator(this,(function(c){switch(c.label){case 0:n=e.$hostElement$;o=F("update",e.$cmpMeta$.$tagName$);i=n["s-rc"];if(a.style&&r){X(e)}s=F("render",e.$cmpMeta$.$tagName$);if(a.isDev){e.$flags$|=1024}if(!a.hydrateServerSide)return[3,2];return[4,Fe(e,t,n)];case 1:c.sent();return[3,3];case 2:Fe(e,t,n);c.label=3;case 3:if(a.cssVarShim&&S.$cssShim$){S.$cssShim$.updateHost(n)}if(a.isDev){e.$renderCount$++;e.$flags$&=~1024}if(a.hydrateServerSide){try{Ge(n);if(r){if(e.$cmpMeta$.$flags$&1){n["s-en"]=""}else if(e.$cmpMeta$.$flags$&2){n["s-en"]="c"}}}catch(u){zt(u,n)}}if(a.asyncLoading&&i){i.map((function(e){return e()}));n["s-rc"]=undefined}s();o();if(a.asyncLoading){l=n["s-p"];f=function(){return Ve(e)};if(l.length===0){f()}else{Promise.all(l).then(f);e.$flags$|=4;l.length=0}}else{Ve(e)}return[2]}}))}))};var Fe=function(e,t,n){var r=a.allRenderFn?true:false;var o=a.lazyLoad?true:false;var i=a.taskQueue?true:false;var s=a.updatable?true:false;try{h=t;t=r?t.render():t.render&&t.render();if(s&&i){e.$flags$&=~16}if(s||o){e.$flags$|=2}if(a.hasRenderFn||a.reflect){if(a.vdomRender||a.reflect){if(a.hydrateServerSide){return Promise.resolve(t).then((function(t){return Ae(e,t)}))}else{Ae(e,t)}}else{n.textContent=t}}}catch(l){zt(l,e.$hostElement$)}h=null;return null};var He=function(){return h};var Ve=function(e){var t=e.$cmpMeta$.$tagName$;var n=e.$hostElement$;var r=F("postUpdate",t);var o=a.lazyLoad?e.$lazyInstance$:n;var i=e.$ancestorComponent$;if(a.cmpDidRender){if(a.isDev){e.$flags$|=1024}Qe(o,"componentDidRender");if(a.isDev){e.$flags$&=~1024}}Xe(n,"componentDidRender");if(!(e.$flags$&64)){e.$flags$|=64;if(a.asyncLoading&&a.cssAnnotations){Je(n)}if(a.cmpDidLoad){if(a.isDev){e.$flags$|=2048}Qe(o,"componentDidLoad");if(a.isDev){e.$flags$&=~2048}}Xe(n,"componentDidLoad");r();if(a.asyncLoading){e.$onReadyResolve$(n);if(!i){qe(t)}}}else{if(a.cmpDidUpdate){if(a.isDev){e.$flags$|=1024}Qe(o,"componentDidUpdate");if(a.isDev){e.$flags$&=~1024}}Xe(n,"componentDidUpdate");r()}if(a.hotModuleReplacement){n["s-hmr-load"]&&n["s-hmr-load"]()}if(a.method&&a.lazyLoad){e.$onInstanceResolve$(n)}if(a.asyncLoading){if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){en((function(){return Me(e,false)}))}e.$flags$&=~(4|512)}};var We=function(e){if(a.updatable){var t=Et(e);var n=t.$hostElement$.isConnected;if(n&&(t.$flags$&(2|16))===2){Me(t,false)}return n}return false};var qe=function(e){if(a.cssAnnotations){Je(b.documentElement)}if(a.asyncQueue){S.$flags$|=2}en((function(){return ze(g,"appload",{detail:{namespace:r}})}));if(a.profile&&performance.measure){performance.measure("[Stencil] ".concat(r," initial load (by ").concat(e,")"),"st:app:start")}};var Qe=function(e,t,n){if(e&&e[t]){try{return e[t](n)}catch(r){zt(r)}}return undefined};var Ke=function(e,t){return e&&e.then?e.then(t):t()};var Xe=function(e,t){if(a.lifecycleDOMEvents){ze(e,"stencil_"+t,{bubbles:true,composed:true,detail:{namespace:r}})}};var Je=function(e){return a.hydratedClass?e.classList.add("hydrated"):a.hydratedAttribute?e.setAttribute("hydrated",""):undefined};var Ge=function(e){var t=e.children;if(t!=null){for(var n=0,r=t.length;n<r;n++){var a=t[n];if(typeof a.connectedCallback==="function"){a.connectedCallback()}Ge(a)}}};var Ye=function(e,t,n,r){var o=F("hydrateClient",t);var i=e.shadowRoot;var s=[];var l=[];var f=a.shadowDom&&i?[]:null;var c=r.$vnode$=se(t,null);if(!S.$orgLocNodes$){et(b.body,S.$orgLocNodes$=new Map)}e[z]=n;e.removeAttribute(z);Ze(c,s,l,f,e,e,n);s.map((function(e){var n=e.$hostId$+"."+e.$nodeId$;var r=S.$orgLocNodes$.get(n);var a=e.$elm$;if(r&&R&&r["s-en"]===""){r.parentNode.insertBefore(a,r.nextSibling)}if(!i){a["s-hn"]=t;if(r){a["s-ol"]=r;a["s-ol"]["s-nr"]=a}}S.$orgLocNodes$.delete(n)}));if(a.shadowDom&&i){f.map((function(e){if(e){i.appendChild(e)}}))}o()};var Ze=function(e,t,n,r,o,i,s){var l;var f;var c;var u;if(i.nodeType===1){l=i.getAttribute(M);if(l){f=l.split(".");if(f[0]===s||f[0]==="0"){c={$flags$:0,$hostId$:f[0],$nodeId$:f[1],$depth$:f[2],$index$:f[3],$tag$:i.tagName.toLowerCase(),$elm$:i,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null};t.push(c);i.removeAttribute(M);if(!e.$children$){e.$children$=[]}e.$children$[c.$index$]=c;e=c;if(r&&c.$depth$==="0"){r[c.$index$]=c.$elm$}}}for(u=i.childNodes.length-1;u>=0;u--){Ze(e,t,n,r,o,i.childNodes[u],s)}if(i.shadowRoot){for(u=i.shadowRoot.childNodes.length-1;u>=0;u--){Ze(e,t,n,r,o,i.shadowRoot.childNodes[u],s)}}}else if(i.nodeType===8){f=i.nodeValue.split(".");if(f[1]===s||f[1]==="0"){l=f[0];c={$flags$:0,$hostId$:f[1],$nodeId$:f[2],$depth$:f[3],$index$:f[4],$elm$:i,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null};if(l===I){c.$elm$=i.nextSibling;if(c.$elm$&&c.$elm$.nodeType===3){c.$text$=c.$elm$.textContent;t.push(c);i.remove();if(!e.$children$){e.$children$=[]}e.$children$[c.$index$]=c;if(r&&c.$depth$==="0"){r[c.$index$]=c.$elm$}}}else if(c.$hostId$===s){if(l===P){c.$tag$="slot";if(f[5]){i["s-sn"]=c.$name$=f[5]}else{i["s-sn"]=""}i["s-sr"]=true;if(a.shadowDom&&r){c.$elm$=b.createElement(c.$tag$);if(c.$name$){c.$elm$.setAttribute("name",c.$name$)}i.parentNode.insertBefore(c.$elm$,i);i.remove();if(c.$depth$==="0"){r[c.$index$]=c.$elm$}}n.push(c);if(!e.$children$){e.$children$=[]}e.$children$[c.$index$]=c}else if(l===E){if(a.shadowDom&&r){i.remove()}else if(a.slotRelocation){o["s-cr"]=i;i["s-cn"]=true}}}}}else if(e&&e.$tag$==="style"){var d=se(null,i.textContent);d.$elm$=i;d.$index$="0";e.$children$=[d]}};var et=function(e,t){if(e.nodeType===1){var n=0;for(;n<e.childNodes.length;n++){et(e.childNodes[n],t)}if(e.shadowRoot){for(n=0;n<e.shadowRoot.childNodes.length;n++){et(e.shadowRoot.childNodes[n],t)}}}else if(e.nodeType===8){var r=e.nodeValue.split(".");if(r[0]===O){t.set(r[1]+"."+r[2],e);e.nodeValue="";e["s-en"]=r[3]}}};var tt=function(e,t){if(e!=null&&!oe(e)){if(a.propBoolean&&t&4){return e==="false"?false:e===""||!!e}if(a.propNumber&&t&2){return parseFloat(e)}if(a.propString&&t&1){return String(e)}return e}return e};var nt=function(e,t){return Et(e).$instanceValues$.get(t)};var rt=function(e,t,n,r){var o=Et(e);var i=a.lazyLoad?o.$hostElement$:e;var s=o.$instanceValues$.get(t);var l=o.$flags$;var f=a.lazyLoad?o.$lazyInstance$:i;n=tt(n,r.$members$[t][0]);var c=Number.isNaN(s)&&Number.isNaN(n);var u=n!==s&&!c;if((!a.lazyLoad||!(l&8)||s===undefined)&&u){o.$instanceValues$.set(t,n);if(a.isDev){if(o.$flags$&1024){Bt('The state/prop "'.concat(t,'" changed during rendering. This can potentially lead to infinite-loops and other bugs.'),"\nElement",i,"\nNew value",n,"\nOld value",s)}else if(o.$flags$&2048){Bt('The state/prop "'.concat(t,'" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"'),"\nElement",i,"\nNew value",n,"\nOld value",s)}}if(!a.lazyLoad||f){if(a.watchCallback&&r.$watchers$&&l&128){var d=r.$watchers$[t];if(d){d.map((function(e){try{f[e](n,s,t)}catch(r){zt(r,i)}}))}}if(a.updatable&&(l&(2|16))===2){if(a.cmpShouldUpdate&&f.componentShouldUpdate){if(f.componentShouldUpdate(n,s,t)===false){return}}Me(o,false)}}}};var at=function(e,t,n){if(a.member&&t.$members$){if(a.watchCallback&&e.watchers){t.$watchers$=e.watchers}var r=Object.entries(t.$members$);var o=e.prototype;r.map((function(e){var r=e[0],i=e[1][0];if((a.prop||a.state)&&(i&31||(!a.lazyLoad||n&2)&&i&32)){Object.defineProperty(o,r,{get:function(){return nt(this,r)},set:function(e){if(a.isDev){var o=Et(this);if((n&1)===0&&(o.$flags$&8)===0&&(i&31)!==0&&(i&1024)===0){Bt('@Prop() "'.concat(r,'" on <').concat(t.$tagName$,"> is immutable but was modified from within the component.\nMore information: https://stenciljs.com/docs/properties#prop-mutability"))}}rt(this,r,e,t)},configurable:true,enumerable:true})}else if(a.lazyLoad&&a.method&&n&1&&i&64){Object.defineProperty(o,r,{value:function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var n=Et(this);return n.$onInstancePromise$.then((function(){var t;return(t=n.$lazyInstance$)[r].apply(t,e)}))}})}}));if(a.observeAttribute&&(!a.lazyLoad||n&1)){var i=new Map;o.attributeChangedCallback=function(e,t,n){var r=this;S.jmp((function(){var t=i.get(e);if(r.hasOwnProperty(t)){n=r[t];delete r[t]}else if(o.hasOwnProperty(t)&&typeof r[t]==="number"&&r[t]==n){return}r[t]=n===null&&typeof r[t]==="boolean"?false:n}))};e.observedAttributes=r.filter((function(e){var t=e[0],n=e[1];return n[0]&15})).map((function(e){var n=e[0],r=e[1];var o=r[1]||n;i.set(o,n);if(a.reflect&&r[0]&512){t.$attrsToReflect$.push([n,o])}return o}))}}return e};var ot=function(e,r,o,i,s){return __awaiter(n,void 0,void 0,(function(){var n,l,f,c,u,d,$;return __generator(this,(function(v){switch(v.label){case 0:if(!((a.lazyLoad||a.hydrateServerSide||a.style)&&(r.$flags$&32)===0))return[3,7];if(!(a.lazyLoad||a.hydrateClientSide))return[3,3];r.$flags$|=32;s=Vt(o,r,i);if(!s.then)return[3,2];n=H("st:load:".concat(o.$tagName$,":").concat(r.$modeName$),"[Stencil] Load module for <".concat(o.$tagName$,">"));return[4,s];case 1:s=v.sent();n();v.label=2;case 2:if((a.isDev||a.isDebug)&&!s){throw new Error('Constructor for "'.concat(o.$tagName$,"#").concat(r.$modeName$,'" was not found'))}if(a.member&&!s.isProxied){if(a.watchCallback){o.$watchers$=s.watchers}at(s,o,2);s.isProxied=true}l=F("createInstance",o.$tagName$);if(a.member){r.$flags$|=8}try{new s(r)}catch(h){zt(h)}if(a.member){r.$flags$&=~8}if(a.watchCallback){r.$flags$|=128}l();it(r.$lazyInstance$);return[3,4];case 3:s=e.constructor;r.$flags$|=32;customElements.whenDefined(o.$tagName$).then((function(){return r.$flags$|=128}));v.label=4;case 4:if(!(a.style&&s.style))return[3,7];f=s.style;if(a.mode&&typeof f!=="string"){f=f[r.$modeName$=Y(e)];if(a.hydrateServerSide&&r.$modeName$){e.setAttribute("s-mode",r.$modeName$)}}c=J(o,r.$modeName$);if(!!Wt.has(c))return[3,7];u=F("registerStyles",o.$tagName$);if(!(!a.hydrateServerSide&&a.shadowDom&&a.shadowDomShim&&o.$flags$&8))return[3,6];return[4,t.import("./shadow-css-27708fdd.system.js").then((function(e){return e.scopeCss(f,c,false)}))];case 5:f=v.sent();v.label=6;case 6:Q(c,f,!!(o.$flags$&1));u();v.label=7;case 7:d=r.$ancestorComponent$;$=function(){return Me(r,true)};if(a.asyncLoading&&d&&d["s-rc"]){d["s-rc"].push($)}else{$()}return[2]}}))}))};var it=function(e){if(a.lazyLoad&&a.connectedCallback){Qe(e,"connectedCallback")}};var st=function(e){if((S.$flags$&1)===0){var t=Et(e);var n=t.$cmpMeta$;var r=F("connectedCallback",n.$tagName$);if(a.hostListenerTargetParent){k(e,t,n.$listeners$,true)}if(!(t.$flags$&1)){t.$flags$|=1;var o=void 0;if(a.hydrateClientSide){o=e.getAttribute(z);if(o){if(a.shadowDom&&R&&n.$flags$&1){var i=a.mode?K(e.shadowRoot,n,e.getAttribute("s-mode")):K(e.shadowRoot,n);e.classList.remove(i+"-h",i+"-s")}Ye(e,n.$tagName$,o,t)}}if(a.slotRelocation&&!o){if(a.hydrateServerSide||(a.slot||a.shadowDom)&&n.$flags$&(4|8)){lt(e)}}if(a.asyncLoading){var s=e;while(s=s.parentNode||s.host){if(a.hydrateClientSide&&s.nodeType===1&&s.hasAttribute("s-id")&&s["s-p"]||s["s-p"]){je(t,t.$ancestorComponent$=s);break}}}if(a.prop&&!a.hydrateServerSide&&n.$members$){Object.entries(n.$members$).map((function(t){var n=t[0],r=t[1][0];if(r&31&&e.hasOwnProperty(n)){var a=e[n];delete e[n];e[n]=a}}))}if(a.initializeNextTick){en((function(){return ot(e,t,n)}))}else{ot(e,t,n)}}else{k(e,t,n.$listeners$,false);it(t.$lazyInstance$)}r()}};var lt=function(e){var t=e["s-cr"]=b.createComment(a.isDebug?"content-ref (host=".concat(e.localName,")"):"");t["s-cn"]=true;e.insertBefore(t,e.firstChild)};var ft=function(e){if((S.$flags$&1)===0){var t=Et(e);var n=a.lazyLoad?t.$lazyInstance$:e;if(a.hostListener){if(t.$rmListeners$){t.$rmListeners$.map((function(e){return e()}));t.$rmListeners$=undefined}}if(a.cssVarShim&&S.$cssShim$){S.$cssShim$.removeHost(e)}if(a.lazyLoad&&a.disconnectedCallback){Qe(n,"disconnectedCallback")}if(a.cmpDidUnload){Qe(n,"componentDidUnload")}}};var ct=function(e,t){customElements.define(t[1],ut(e,t))};var ut=function(e,t){var n={$flags$:t[0],$tagName$:t[1]};if(a.member){n.$members$=t[2]}if(a.hostListener){n.$listeners$=t[3]}if(a.watchCallback){n.$watchers$=e.$watchers$}if(a.reflect){n.$attrsToReflect$=[]}if(a.shadowDom&&!R&&n.$flags$&1){n.$flags$|=8}var r=e.prototype.connectedCallback;var o=e.prototype.disconnectedCallback;Object.assign(e.prototype,{__registerHost:function(){Pt(this,n)},connectedCallback:function(){st(this);if(a.connectedCallback&&r){r.call(this)}},disconnectedCallback:function(){ft(this);if(a.disconnectedCallback&&o){o.call(this)}},__attachShadow:function(){if(R){if(a.shadowDelegatesFocus){this.attachShadow({mode:"open",delegatesFocus:!!(n.$flags$&16)})}else{this.attachShadow({mode:"open"})}}else{this.shadowRoot=this}}});e.is=n.$tagName$;return at(e,n,1|2)};var dt=function(e){if(a.style&&a.mode&&!a.lazyLoad){var t=Y(e);var n=Et(e);if(n.$modeName$!==t){var r=n.$cmpMeta$;var o=e["s-sc"];var i=J(r,t);var s=e.constructor.style[t];var l=r.$flags$;if(s){if(!Wt.has(i)){Q(i,s,!!(l&1))}n.$modeName$=t;e.classList.remove(o+"-h",o+"-s");X(n);We(e)}}}};var $t=function(e,t,n){var r=Et(e);r.$flags$=1;e["s-hmr-load"]=function(){delete e["s-hmr-load"]};ot(e,r,t,n)};var vt=function(e){var t=e.cloneNode;e.cloneNode=function(e){var n=this;var r=a.shadowDom?n.shadowRoot&&R:false;var o=t.call(n,r?e:false);if(a.slot&&!r&&e){var i=0;var s=void 0,l=void 0;var f=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si"];for(;i<n.childNodes.length;i++){s=n.childNodes[i]["s-nr"];l=f.every((function(e){return!n.childNodes[i][e]}));if(s){if(a.appendChildSlotFix&&o.__appendChild){o.__appendChild(s.cloneNode(true))}else{o.appendChild(s.cloneNode(true))}}if(l){o.appendChild(n.childNodes[i].cloneNode(true))}}}return o}};var ht=function(e){e.__appendChild=e.appendChild;e.appendChild=function(e){var t=e["s-sn"]=gt(e);var n=yt(this.childNodes,t);if(n){var r=bt(n,t);var a=r[r.length-1];return a.parentNode.insertBefore(e,a.nextSibling)}return this.__appendChild(e)}};var mt=function(e,t){if(a.scoped&&t.$flags$&2){var n=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(e,"__textContent",n);Object.defineProperty(e,"textContent",{get:function(){var e;var t=yt(this.childNodes,"");if(((e=t===null||t===void 0?void 0:t.nextSibling)===null||e===void 0?void 0:e.nodeType)===3){return t.nextSibling.textContent}else if(t){return t.textContent}else{return this.__textContent}},set:function(e){var t;var n=yt(this.childNodes,"");if(((t=n===null||n===void 0?void 0:n.nextSibling)===null||t===void 0?void 0:t.nodeType)===3){n.nextSibling.textContent=e}else if(n){n.textContent=e}else{this.__textContent=e;var r=this["s-cr"];if(r){this.insertBefore(r,this.firstChild)}}}})}};var pt=function(e,t){var n=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.item=function(e){return this[e]};return t}(Array);if(t.$flags$&8){var r=e.__lookupGetter__("childNodes");Object.defineProperty(e,"children",{get:function(){return this.childNodes.map((function(e){return e.nodeType===1}))}});Object.defineProperty(e,"childElementCount",{get:function(){return e.children.length}});Object.defineProperty(e,"childNodes",{get:function(){var e=r.call(this);if((S.$flags$&1)===0&&Et(this).$flags$&2){var t=new n;for(var a=0;a<e.length;a++){var o=e[a]["s-nr"];if(o){t.push(o)}}return t}return n.from(e)}})}};var gt=function(e){return e["s-sn"]||e.nodeType===1&&e.getAttribute("slot")||""};var yt=function(e,t){var n=0;var r;for(;n<e.length;n++){r=e[n];if(r["s-sr"]&&r["s-sn"]===t){return r}r=yt(r.childNodes,t);if(r){return r}}return null};var bt=function(e,t){var n=[e];while((e=e.nextSibling)&&e["s-sn"]===t){n.push(e)}return n};var wt=e("b",(function(e,t){if(t===void 0){t={}}if(a.profile&&performance.mark){performance.mark("st:app:start")}W();var n=F("bootstrapLazy");var r=[];var o=t.exclude||[];var i=g.customElements;var s=b.head;var l=s.querySelector("meta[charset]");var f=b.createElement("style");var c=[];var u=b.querySelectorAll("[".concat(j,"]"));var d;var $=true;var v=0;Object.assign(S,t);S.$resourcesUrl$=new URL(t.resourcesUrl||"./",b.baseURI).href;if(a.asyncQueue){if(t.syncQueue){S.$flags$|=4}}if(a.hydrateClientSide){S.$flags$|=2}if(a.hydrateClientSide&&a.shadowDom){for(;v<u.length;v++){Q(u[v].getAttribute(j),G(u[v].innerHTML),true)}}e.map((function(e){e[1].map((function(n){var s={$flags$:n[0],$tagName$:n[1],$members$:n[2],$listeners$:n[3]};if(a.member){s.$members$=n[2]}if(a.hostListener){s.$listeners$=n[3]}if(a.reflect){s.$attrsToReflect$=[]}if(a.watchCallback){s.$watchers$={}}if(a.shadowDom&&!R&&s.$flags$&1){s.$flags$|=8}var l=a.transformTagName&&t.transformTagName?t.transformTagName(s.$tagName$):s.$tagName$;var f=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;t=n;Pt(t,s);if(a.shadowDom&&s.$flags$&1){if(R){if(a.shadowDelegatesFocus){t.attachShadow({mode:"open",delegatesFocus:!!(s.$flags$&16)})}else{t.attachShadow({mode:"open"})}}else if(!a.hydrateServerSide&&!("shadowRoot"in t)){t.shadowRoot=t}}if(a.slotChildNodesFix){pt(t,s)}return n}t.prototype.connectedCallback=function(){var e=this;if(d){clearTimeout(d);d=null}if($){c.push(this)}else{S.jmp((function(){return st(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;S.jmp((function(){return ft(e)}))};t.prototype.componentOnReady=function(){return Et(this).$onReadyPromise$};return t}(HTMLElement);if(a.cloneNodeFix){vt(f.prototype)}if(a.appendChildSlotFix){ht(f.prototype)}if(a.hotModuleReplacement){f.prototype["s-hmr"]=function(e){$t(this,s,e)}}if(a.scopedSlotTextContentFix){mt(f.prototype,s)}s.$lazyBundleId$=e[0];if(!o.includes(l)&&!i.get(l)){r.push(l);i.define(l,at(f,s,1))}}))}));if(a.invisiblePrehydration&&(a.hydratedClass||a.hydratedAttribute)){f.innerHTML=r+B;f.setAttribute("data-styles","");s.insertBefore(f,l?l.nextSibling:s.firstChild)}$=false;if(c.length){c.map((function(e){return e.connectedCallback()}))}else{if(a.profile){S.jmp((function(){return d=setTimeout(qe,30,"timeout")}))}else{S.jmp((function(){return d=setTimeout(qe,30)}))}}n()}));var St=function(e){var t=new URL(e,S.$resourcesUrl$);return t.origin!==g.location.origin?t.href:t.pathname};var Nt=function(e){return S.$resourcesUrl$=e};var Rt=function(e,t){var n=function(){var e=b.querySelector(t);if(!e){e=b.createElement(t);b.body.appendChild(e)}return typeof e.componentOnReady==="function"?e.componentOnReady():Promise.resolve(e)};var r=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return n().then((function(t){return t.create.apply(t,e)}))};return{create:r,componentOnReady:n}};var Ct=function(e,t){if(t in T){return T[t]}else if(t==="window"){return g}else if(t==="document"){return b}else if(t==="isServer"||t==="isPrerender"){return a.hydrateServerSide?true:false}else if(t==="isClient"){return a.hydrateServerSide?false:true}else if(t==="resourcesUrl"||t==="publicPath"){return St(".")}else if(t==="queue"){return{write:nn,read:tn,tick:{then:function(e){return en(e)}}}}return undefined};var Lt=function(e,t){if(e!=null){var n={hostIds:0,rootLevelIds:0,staticComponents:new Set(t)};var r=[];xt(e,e.body,n,r);r.forEach((function(t){if(t!=null){var r=t["s-nr"];var a=r["s-host-id"];var o=r["s-node-id"];var i="".concat(a,".").concat(o);if(a==null){a=0;n.rootLevelIds++;o=n.rootLevelIds;i="".concat(a,".").concat(o);if(r.nodeType===1){r.setAttribute(M,i)}else if(r.nodeType===3){if(a===0){var s=r.nodeValue.trim();if(s===""){t.remove();return}}var l=e.createComment(i);l.nodeValue="".concat(I,".").concat(i);r.parentNode.insertBefore(l,r)}}var f="".concat(O,".").concat(i);var c=t.parentElement;if(c){if(c["s-en"]===""){f+="."}else if(c["s-en"]==="c"){f+=".c"}}t.nodeValue=f}}))}};var xt=function(e,t,n,r){if(t==null){return}if(t["s-nr"]!=null){r.push(t)}if(t.nodeType===1){t.childNodes.forEach((function(t){var a=Et(t);if(a!=null&&!n.staticComponents.has(t.nodeName.toLowerCase())){var o={nodeIds:0};Tt(e,t,a.$vnode$,n,o)}xt(e,t,n,r)}))}};var Tt=function(e,t,n,r,a){if(n!=null){var o=++r.hostIds;t.setAttribute(z,o);if(t["s-cr"]!=null){t["s-cr"].nodeValue="".concat(E,".").concat(o)}if(n.$children$!=null){var i=0;n.$children$.forEach((function(t,n){kt(e,t,a,o,i,n)}))}if(t&&n&&n.$elm$&&!t.hasAttribute("c-id")){var s=t.parentElement;if(s&&s.childNodes){var l=Array.from(s.childNodes);var f=l.find((function(e){return e.nodeType===8&&e["s-sr"]}));if(f){var c=l.indexOf(t)-1;n.$elm$.setAttribute(M,"".concat(f["s-host-id"],".").concat(f["s-node-id"],".0.").concat(c))}}}}};var kt=function(e,t,n,r,a,o){var i=t.$elm$;if(i==null){return}var s=n.nodeIds++;var l="".concat(r,".").concat(s,".").concat(a,".").concat(o);i["s-host-id"]=r;i["s-node-id"]=s;if(i.nodeType===1){i.setAttribute(M,l)}else if(i.nodeType===3){var f=i.parentNode;var c=f.nodeName;if(c!=="STYLE"&&c!=="SCRIPT"){var u="".concat(I,".").concat(l);var d=e.createComment(u);f.insertBefore(d,i)}}else if(i.nodeType===8){if(i["s-sr"]){var $=i["s-sn"]||"";var v="".concat(P,".").concat(l,".").concat($);i.nodeValue=v}}if(t.$children$!=null){var h=a+1;t.$children$.forEach((function(t,a){kt(e,t,n,r,h,a)}))}};var _t=function(e){return Object.assign(S,e)};var Dt=function(e,t){return t};var At=new WeakMap;var Et=function(e){return At.get(e)};var Ot=e("r",(function(e,t){return At.set(t.$lazyInstance$=e,t)}));var Pt=function(e,t){var n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};if(a.isDev){n.$renderCount$=0}if(a.method&&a.lazyLoad){n.$onInstancePromise$=new Promise((function(e){return n.$onInstanceResolve$=e}))}if(a.asyncLoading){n.$onReadyPromise$=new Promise((function(e){return n.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}k(e,n,t.$listeners$,false);return At.set(e,n)};var It=function(e,t){return t in e};var zt=function(e,t){return(f||console.error)(e,t)};var jt=a.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"];var Mt=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return console.error.apply(console,__spreadArray(__spreadArray([],jt,false),e,false))};var Bt=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return console.warn.apply(console,__spreadArray(__spreadArray([],jt,false),e,false))};var Ut=e("c",(function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return console.info.apply(console,__spreadArray(__spreadArray([],jt,false),e,false))}));var Ft=function(e){return f=e};var Ht=new Map;var Vt=function(e,n,r){var o=e.$tagName$.replace(/-/g,"_");var i=e.$lazyBundleId$;if(a.isDev&&typeof i!=="string"){Mt("Trying to lazily load component <".concat(e.$tagName$,'> with style mode "').concat(n.$modeName$,'", but it does not exist.'));return undefined}var s=!a.hotModuleReplacement?Ht.get(i):false;if(s){return s[o]}return t.import("./".concat(i,".entry.js").concat(a.hotModuleReplacement&&r?"?s-hmr="+r:"")).then((function(e){if(!a.hotModuleReplacement){Ht.set(i,e)}return e[o]}),zt)};var Wt=new Map;var qt=[];var Qt=[];var Kt=[];var Xt=[];var Jt=function(e,t){return function(n){e.push(n);if(!p){p=true;if(t&&S.$flags$&4){en(Zt)}else{S.raf(Zt)}}}};var Gt=function(e){for(var t=0;t<e.length;t++){try{e[t](performance.now())}catch(n){zt(n)}}e.length=0};var Yt=function(e,t){var n=0;var r=0;while(n<e.length&&(r=performance.now())<t){try{e[n++](r)}catch(a){zt(a)}}if(n===e.length){e.length=0}else if(n!==0){e.splice(0,n)}};var Zt=function(){if(a.asyncQueue){m++}Gt(Qt);if(a.asyncQueue){var e=(S.$flags$&6)===2?performance.now()+14*Math.ceil(m*(1/10)):Infinity;Yt(Kt,e);Yt(Xt,e);if(Kt.length>0){Xt.push.apply(Xt,Kt);Kt.length=0}if(p=Qt.length+Kt.length+Xt.length>0){S.raf(Zt)}else{m=0}}else{Gt(Kt);if(p=Qt.length>0){S.raf(Zt)}}};var en=function(e){return L().then(e)};var tn=Jt(Qt,false);var nn=Jt(Kt,true);var rn={isDev:a.isDev?true:false,isBrowser:true,isServer:false,isTesting:a.isTesting?true:false}}}}));
@@ -0,0 +1 @@
1
+
@@ -0,0 +1 @@
1
+ System.register([],(function(){"use strict";return{execute:function(){}}}));
@@ -0,0 +1,89 @@
1
+ import { r as registerInstance, h, g as getElement } from './index-516c5188.js';
2
+ import { t } from './index-3e1e5aa3.js';
3
+
4
+ const ku4CarouselControlsCss = ":host{position:relative;display:block}input[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;width:20px;height:20px;margin:0;padding:0;border:solid 1px #888;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;vertical-align:middle}input[type=radio]:checked:after{content:\"\";position:absolute;top:2px;left:2px;width:14px;height:14px;margin:0;padding:0;border:solid 1px #888;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:center;background-color:#333}";
5
+
6
+ const Ku4CarouselControls = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.carousel = document.getElementById(this.for);
10
+ this.handleSlide = this.handleSlide.bind(this);
11
+ this.handleChange = this.handleChange.bind(this);
12
+ }
13
+ get slides() {
14
+ return [].slice.call(this.carousel.children);
15
+ }
16
+ get controls() {
17
+ return [].slice.call(this.host.children);
18
+ }
19
+ handleSlide(e) {
20
+ this.controls.forEach((control) => {
21
+ control.removeAttribute('current');
22
+ control.checked = false;
23
+ });
24
+ try {
25
+ const current = this.controls[e.detail - 1];
26
+ current.setAttribute('current', e.detail);
27
+ current.checked = true;
28
+ }
29
+ catch (e) {
30
+ /* Fail silently */
31
+ }
32
+ }
33
+ async handleChange(e) {
34
+ const { carousel, slides, controls } = this;
35
+ const slideValue = e.target.getAttribute('slide');
36
+ const n = isNaN(slideValue)
37
+ ? slides.findIndex(slide => slide.getAttribute('name') === slideValue) + 1
38
+ : parseInt(slideValue);
39
+ const slide = isNaN(n) ? controls.indexOf(e.target) + 1 : n;
40
+ await carousel.slideTo(slide);
41
+ try {
42
+ e.target.setAttribute('current', slide);
43
+ }
44
+ catch (e) {
45
+ /* Fail silently */
46
+ }
47
+ }
48
+ componentWillLoad() {
49
+ const { carousel, controls } = this;
50
+ try {
51
+ carousel.addEventListener('slide', this.handleSlide, { passive: true });
52
+ controls.forEach((control, i) => {
53
+ if (i === 0) {
54
+ control.setAttribute('current', i + 1);
55
+ }
56
+ if (control.nodeName === 'INPUT') {
57
+ control.addEventListener('change', this.handleChange);
58
+ }
59
+ else {
60
+ control.addEventListener('keyup', this.handleChange);
61
+ control.addEventListener('mouseup', this.handleChange, { passive: true });
62
+ control.addEventListener('touchstart', this.handleChange, { passive: true });
63
+ }
64
+ });
65
+ }
66
+ catch (e) {
67
+ if (!t.exists(carousel)) {
68
+ throw new ReferenceError('ku4-carousel-controls must connect to a ku4-carousel.');
69
+ }
70
+ }
71
+ }
72
+ disconnectedCallback() {
73
+ const { carousel, controls } = this;
74
+ carousel.removeEventListener('slide', this.handleSlide);
75
+ controls.forEach((control) => {
76
+ control.removeEventListener('change', this.handleChange);
77
+ control.removeEventListener('keyup', this.handleChange);
78
+ control.removeEventListener('mouseup', this.handleChange);
79
+ control.removeEventListener('touchstart', this.handleChange);
80
+ });
81
+ }
82
+ render() {
83
+ return h("slot", null);
84
+ }
85
+ get host() { return getElement(this); }
86
+ };
87
+ Ku4CarouselControls.style = ku4CarouselControlsCss;
88
+
89
+ export { Ku4CarouselControls as ku4_carousel_controls };
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function s(e){try{c(r["throw"](e))}catch(t){o(t)}}function c(e){e.done?n(e.value):i(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return c([e,t])}}function c(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(s){a=[6,s];i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./index-fd0c89d0.system.js","./index-380cbe3a.system.js"],(function(e){"use strict";var t,n,r,i;return{setters:[function(e){t=e.r;n=e.h;r=e.g},function(e){i=e.t}],execute:function(){var o=':host{position:relative;display:block}input[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;width:20px;height:20px;margin:0;padding:0;border:solid 1px #888;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;vertical-align:middle}input[type=radio]:checked:after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;margin:0;padding:0;border:solid 1px #888;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:center;background-color:#333}';var a=e("ku4_carousel_controls",function(){function e(e){t(this,e);this.carousel=document.getElementById(this.for);this.handleSlide=this.handleSlide.bind(this);this.handleChange=this.handleChange.bind(this)}Object.defineProperty(e.prototype,"slides",{get:function(){return[].slice.call(this.carousel.children)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"controls",{get:function(){return[].slice.call(this.host.children)},enumerable:false,configurable:true});e.prototype.handleSlide=function(e){this.controls.forEach((function(e){e.removeAttribute("current");e.checked=false}));try{var t=this.controls[e.detail-1];t.setAttribute("current",e.detail);t.checked=true}catch(e){}};e.prototype.handleChange=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,r,i,o,a,s;return __generator(this,(function(c){switch(c.label){case 0:t=this,n=t.carousel,r=t.slides,i=t.controls;o=e.target.getAttribute("slide");a=isNaN(o)?r.findIndex((function(e){return e.getAttribute("name")===o}))+1:parseInt(o);s=isNaN(a)?i.indexOf(e.target)+1:a;return[4,n.slideTo(s)];case 1:c.sent();try{e.target.setAttribute("current",s)}catch(e){}return[2]}}))}))};e.prototype.componentWillLoad=function(){var e=this;var t=this,n=t.carousel,r=t.controls;try{n.addEventListener("slide",this.handleSlide,{passive:true});r.forEach((function(t,n){if(n===0){t.setAttribute("current",n+1)}if(t.nodeName==="INPUT"){t.addEventListener("change",e.handleChange)}else{t.addEventListener("keyup",e.handleChange);t.addEventListener("mouseup",e.handleChange,{passive:true});t.addEventListener("touchstart",e.handleChange,{passive:true})}}))}catch(o){if(!i.exists(n)){throw new ReferenceError("ku4-carousel-controls must connect to a ku4-carousel.")}}};e.prototype.disconnectedCallback=function(){var e=this;var t=this,n=t.carousel,r=t.controls;n.removeEventListener("slide",this.handleSlide);r.forEach((function(t){t.removeEventListener("change",e.handleChange);t.removeEventListener("keyup",e.handleChange);t.removeEventListener("mouseup",e.handleChange);t.removeEventListener("touchstart",e.handleChange)}))};e.prototype.render=function(){return n("slot",null)};Object.defineProperty(e.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());a.style=o}}}));
@@ -0,0 +1,47 @@
1
+ import { r as registerInstance, h, f as Host } from './index-516c5188.js';
2
+
3
+ const ku4CarouselSlideCss = ":host{overflow-x:hidden}";
4
+
5
+ const Ku4CarouselSlide = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.classList = '';
9
+ }
10
+ /**
11
+ * Move this slide in to view.
12
+ * @param {string} direction - Direction to move.
13
+ */
14
+ async slideIn(direction) {
15
+ this.active = true;
16
+ this.classList = `active ${direction}`;
17
+ }
18
+ /**
19
+ * Move this slide out of view.
20
+ * @param {string} direction - Direction to move.
21
+ */
22
+ async slideOut(direction) {
23
+ this.active = false;
24
+ this.classList = `inactive ${direction}`;
25
+ }
26
+ /**
27
+ * Set this slide to active.
28
+ */
29
+ async activate() {
30
+ this.active = true;
31
+ this.classList = 'active';
32
+ }
33
+ /**
34
+ * Set this slide to inactive.
35
+ */
36
+ async deactivate() {
37
+ this.active = false;
38
+ this.classList = '';
39
+ }
40
+ render() {
41
+ const { active, classList } = this;
42
+ return (h(Host, { class: `${classList}`, "aria-hidden": active ? 'false' : 'true', "aria-roledescription": "slide" }, h("slot", null)));
43
+ }
44
+ };
45
+ Ku4CarouselSlide.style = ku4CarouselSlideCss;
46
+
47
+ export { Ku4CarouselSlide as ku4_carousel_slide };
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return u([t,e])}}function u(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(s){a=[6,s];i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./index-fd0c89d0.system.js"],(function(t){"use strict";var e,n,r;return{setters:[function(t){e=t.r;n=t.h;r=t.f}],execute:function(){var i=":host{overflow-x:hidden}";var o=t("ku4_carousel_slide",function(){function t(t){e(this,t);this.classList=""}t.prototype.slideIn=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.active=true;this.classList="active ".concat(t);return[2]}))}))};t.prototype.slideOut=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.active=false;this.classList="inactive ".concat(t);return[2]}))}))};t.prototype.activate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.active=true;this.classList="active";return[2]}))}))};t.prototype.deactivate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.active=false;this.classList="";return[2]}))}))};t.prototype.render=function(){var t=this,e=t.active,i=t.classList;return n(r,{class:"".concat(i),"aria-hidden":e?"false":"true","aria-roledescription":"slide"},n("slot",null))};return t}());o.style=i}}}));