@usecapsule/core-components 3.2.0-dev.1 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (384) hide show
  1. package/dist/capsule/capsule.esm.js +1 -1
  2. package/dist/capsule/capsule.esm.js.map +1 -1
  3. package/dist/capsule/index.esm.js.map +1 -1
  4. package/dist/capsule/p-0462f723.js.map +1 -1
  5. package/dist/capsule/p-05cb769b.entry.js +10 -0
  6. package/dist/capsule/p-05cb769b.entry.js.map +1 -0
  7. package/dist/capsule/p-0eea90f8.entry.js +2 -0
  8. package/dist/capsule/{p-6793ef7a.entry.js.map → p-0eea90f8.entry.js.map} +1 -1
  9. package/dist/capsule/{p-b976b6f0.entry.js → p-41bc3c58.entry.js} +2 -2
  10. package/dist/capsule/{p-b976b6f0.entry.js.map → p-41bc3c58.entry.js.map} +1 -1
  11. package/dist/capsule/p-7233228e.entry.js +29 -0
  12. package/dist/capsule/p-7233228e.entry.js.map +1 -0
  13. package/dist/capsule/{p-447d49b9.entry.js → p-742bda0b.entry.js} +2 -2
  14. package/dist/capsule/{p-447d49b9.entry.js.map → p-742bda0b.entry.js.map} +1 -1
  15. package/dist/capsule/{p-f6c74d69.entry.js → p-c1aa1ffb.entry.js} +2 -2
  16. package/dist/capsule/{p-f6c74d69.entry.js.map → p-c1aa1ffb.entry.js.map} +1 -1
  17. package/dist/capsule/p-d351f076.entry.js +2 -0
  18. package/dist/capsule/p-d351f076.entry.js.map +1 -0
  19. package/dist/capsule/{p-452b9998.entry.js → p-dc4591d5.entry.js} +2 -2
  20. package/dist/capsule/{p-452b9998.entry.js.map → p-dc4591d5.entry.js.map} +1 -1
  21. package/dist/capsule/{p-6dcaee48.entry.js → p-de2a16e4.entry.js} +2 -2
  22. package/dist/capsule/{p-6dcaee48.entry.js.map → p-de2a16e4.entry.js.map} +1 -1
  23. package/dist/capsule/p-e1255160.js.map +1 -1
  24. package/dist/capsule/p-f2393be6.js.map +1 -1
  25. package/dist/capsule/p-fa6b7678.js +3 -0
  26. package/dist/capsule/p-fa6b7678.js.map +1 -0
  27. package/dist/cjs/capsule.cjs.js +10 -10
  28. package/dist/cjs/capsule.cjs.js.map +1 -1
  29. package/dist/cjs/{cpsl-alert_34.cjs.entry.js → cpsl-alert_33.cjs.entry.js} +136 -95
  30. package/dist/cjs/cpsl-alert_33.cjs.entry.js.map +1 -0
  31. package/dist/cjs/cpsl-animation.cjs.entry.js +5 -2
  32. package/dist/cjs/cpsl-animation.cjs.entry.js.map +1 -1
  33. package/dist/cjs/cpsl-col.cjs.entry.js +25 -6
  34. package/dist/cjs/cpsl-col.cjs.entry.js.map +1 -1
  35. package/dist/cjs/cpsl-grid.cjs.entry.js +3 -3
  36. package/dist/cjs/cpsl-hero.cjs.entry.js +35 -0
  37. package/dist/cjs/cpsl-hero.cjs.entry.js.map +1 -0
  38. package/dist/cjs/cpsl-identicon.cjs.entry.js +2 -2
  39. package/dist/cjs/cpsl-info-box.cjs.entry.js +2 -2
  40. package/dist/cjs/cpsl-modal-v2.cjs.entry.js +3 -2
  41. package/dist/cjs/cpsl-modal-v2.cjs.entry.js.map +1 -1
  42. package/dist/cjs/cpsl-row.cjs.entry.js +2 -2
  43. package/dist/cjs/index-65f57499.js +1439 -0
  44. package/dist/cjs/index-65f57499.js.map +1 -0
  45. package/dist/cjs/index.cjs.js +10 -2
  46. package/dist/cjs/index.cjs.js.map +1 -1
  47. package/dist/cjs/loader.cjs.js +2 -2
  48. package/dist/collection/assets/icons/index.js +1 -3
  49. package/dist/collection/assets/icons/index.js.map +1 -1
  50. package/dist/collection/collection-manifest.json +2 -2
  51. package/dist/collection/components/cpsl-alert/cpsl-alert.js +2 -2
  52. package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -1
  53. package/dist/collection/components/cpsl-animation/cpsl-animation.js +4 -1
  54. package/dist/collection/components/cpsl-animation/cpsl-animation.js.map +1 -1
  55. package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js +5 -2
  56. package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js.map +1 -1
  57. package/dist/collection/components/cpsl-avatar/cpsl-avatar.js +1 -1
  58. package/dist/collection/components/cpsl-button/cpsl-button.js +5 -2
  59. package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -1
  60. package/dist/collection/components/cpsl-button/cpsl-button.stories.js.map +1 -1
  61. package/dist/collection/components/cpsl-button-group/cpsl-button-group.js +1 -1
  62. package/dist/collection/components/cpsl-card/cpsl-card.js +1 -1
  63. package/dist/collection/components/cpsl-checkbox/cpsl-checkbox.js +1 -1
  64. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +5 -3
  65. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -1
  66. package/dist/collection/components/cpsl-col/cpsl-col.js +21 -5
  67. package/dist/collection/components/cpsl-col/cpsl-col.js.map +1 -1
  68. package/dist/collection/components/cpsl-divider/cpsl-divider.js +1 -1
  69. package/dist/collection/components/cpsl-drawer/cpsl-drawer.js +3 -2
  70. package/dist/collection/components/cpsl-drawer/cpsl-drawer.js.map +1 -1
  71. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +2 -2
  72. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -1
  73. package/dist/collection/components/cpsl-dropdown/dropdown-interface.js.map +1 -1
  74. package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js +6 -1
  75. package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js.map +1 -1
  76. package/dist/collection/components/cpsl-grid/cpsl-grid.js +2 -2
  77. package/dist/collection/components/cpsl-hero/cpsl-hero.js +3 -2
  78. package/dist/collection/components/cpsl-hero/cpsl-hero.js.map +1 -1
  79. package/dist/collection/components/cpsl-hero/cpsl-hero.stories.js.map +1 -1
  80. package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
  81. package/dist/collection/components/cpsl-identicon/cpsl-identicon.js +1 -1
  82. package/dist/collection/components/cpsl-identicon/cpsl-identicon.stories.js.map +1 -1
  83. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
  84. package/dist/collection/components/cpsl-input/cpsl-input.js +36 -2
  85. package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
  86. package/dist/collection/components/cpsl-modal/cpsl-modal.js +1 -1
  87. package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +1 -1
  88. package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js +2 -1
  89. package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js.map +1 -1
  90. package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js +1 -1
  91. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +2 -1
  92. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js.map +1 -1
  93. package/dist/collection/components/cpsl-pagination/cpsl-pagination.js +1 -1
  94. package/dist/collection/components/cpsl-pagination/cpsl-pagination.js.map +1 -1
  95. package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
  96. package/dist/collection/components/cpsl-popover/cpsl-popover.js +18 -6
  97. package/dist/collection/components/cpsl-popover/cpsl-popover.js.map +1 -1
  98. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +1 -1
  99. package/dist/collection/components/cpsl-radio/cpsl-radio.js +1 -1
  100. package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
  101. package/dist/collection/components/cpsl-select/cpsl-select.js +3 -1
  102. package/dist/collection/components/cpsl-select/cpsl-select.js.map +1 -1
  103. package/dist/collection/components/cpsl-select-item/cpsl-select-item.js +1 -1
  104. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +14 -3
  105. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js.map +1 -1
  106. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +2 -2
  107. package/dist/collection/components/cpsl-switch/cpsl-switch.js +1 -1
  108. package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
  109. package/dist/collection/components/cpsl-table/cpsl-table.js +11 -1
  110. package/dist/collection/components/cpsl-table/cpsl-table.js.map +1 -1
  111. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +7 -1
  112. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js.map +1 -1
  113. package/dist/collection/components/cpsl-text/cpsl-text.js +5 -2
  114. package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
  115. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
  116. package/dist/collection/interface.js.map +1 -1
  117. package/dist/collection/utils/media.js +3 -0
  118. package/dist/collection/utils/media.js.map +1 -1
  119. package/dist/collection/utils/theme/generateBorderRadii.js +1 -1
  120. package/dist/collection/utils/theme/generateBorderRadii.js.map +1 -1
  121. package/dist/collection/utils/theme/generatePalette.js +4 -1
  122. package/dist/collection/utils/theme/generatePalette.js.map +1 -1
  123. package/dist/collection/utils/theme/generateTheme.js +4 -0
  124. package/dist/collection/utils/theme/generateTheme.js.map +1 -1
  125. package/dist/collection/utils/theme/utils.js +1 -0
  126. package/dist/collection/utils/theme/utils.js.map +1 -1
  127. package/dist/esm/capsule.js +11 -11
  128. package/dist/esm/capsule.js.map +1 -1
  129. package/dist/esm/{cpsl-alert_34.entry.js → cpsl-alert_33.entry.js} +137 -95
  130. package/dist/esm/cpsl-alert_33.entry.js.map +1 -0
  131. package/dist/esm/cpsl-animation.entry.js +5 -2
  132. package/dist/esm/cpsl-animation.entry.js.map +1 -1
  133. package/dist/esm/cpsl-col.entry.js +25 -6
  134. package/dist/esm/cpsl-col.entry.js.map +1 -1
  135. package/dist/esm/cpsl-grid.entry.js +3 -3
  136. package/dist/esm/cpsl-hero.entry.js +31 -0
  137. package/dist/esm/cpsl-hero.entry.js.map +1 -0
  138. package/dist/esm/cpsl-identicon.entry.js +2 -2
  139. package/dist/esm/cpsl-info-box.entry.js +2 -2
  140. package/dist/esm/cpsl-modal-v2.entry.js +3 -2
  141. package/dist/esm/cpsl-modal-v2.entry.js.map +1 -1
  142. package/dist/esm/cpsl-row.entry.js +2 -2
  143. package/dist/esm/index-91db3414.js +1408 -0
  144. package/dist/esm/index-91db3414.js.map +1 -0
  145. package/dist/esm/index.js +10 -2
  146. package/dist/esm/index.js.map +1 -1
  147. package/dist/esm/loader.js +3 -3
  148. package/dist/loader/cdn.js +1 -3
  149. package/dist/loader/index.cjs.js +1 -3
  150. package/dist/loader/index.d.ts +3 -0
  151. package/dist/loader/index.es2017.js +1 -3
  152. package/dist/loader/index.js +1 -3
  153. package/dist/scripts/buildAssets.js +1 -1
  154. package/dist/types/assets/icons/index.d.ts +0 -2
  155. package/dist/types/components/cpsl-alert/cpsl-alert.d.ts +8 -0
  156. package/dist/types/components/cpsl-animation/cpsl-animation.d.ts +6 -0
  157. package/dist/types/components/cpsl-app-bar/cpsl-app-bar.d.ts +10 -0
  158. package/dist/types/components/cpsl-avatar/cpsl-avatar.d.ts +11 -0
  159. package/dist/types/components/cpsl-button/cpsl-button.d.ts +29 -0
  160. package/dist/types/components/cpsl-button-group/cpsl-button-group.d.ts +3 -0
  161. package/dist/types/components/cpsl-checkbox/cpsl-checkbox.d.ts +6 -0
  162. package/dist/types/components/cpsl-code-input/cpsl-code-input.d.ts +19 -0
  163. package/dist/types/components/cpsl-col/cpsl-col.d.ts +96 -0
  164. package/dist/types/components/cpsl-drawer/cpsl-drawer.d.ts +31 -0
  165. package/dist/types/components/cpsl-dropdown/cpsl-dropdown.d.ts +15 -0
  166. package/dist/types/components/cpsl-dropdown/dropdown-interface.d.ts +1 -1
  167. package/dist/types/components/cpsl-file-upload/cpsl-file-upload.d.ts +43 -0
  168. package/dist/types/components/cpsl-grid/cpsl-grid.d.ts +3 -0
  169. package/dist/types/components/cpsl-hero/cpsl-hero.d.ts +5 -0
  170. package/dist/types/components/cpsl-icon/cpsl-icon.d.ts +6 -0
  171. package/dist/types/components/cpsl-identicon/cpsl-identicon.d.ts +4 -0
  172. package/dist/types/components/cpsl-input/cpsl-input.d.ts +138 -0
  173. package/dist/types/components/cpsl-input/input-interface.d.ts +5 -0
  174. package/dist/types/components/cpsl-modal/cpsl-modal.d.ts +39 -0
  175. package/dist/types/components/cpsl-modal-v2/cpsl-modal-v2.d.ts +32 -0
  176. package/dist/types/components/cpsl-nav-button-group/cpsl-nav-button-group.d.ts +3 -0
  177. package/dist/types/components/cpsl-overlay/cpsl-overlay.d.ts +14 -0
  178. package/dist/types/components/cpsl-pagination/cpsl-pagination.d.ts +15 -0
  179. package/dist/types/components/cpsl-pill/cpsl-pill.d.ts +3 -0
  180. package/dist/types/components/cpsl-popover/cpsl-popover.d.ts +55 -2
  181. package/dist/types/components/cpsl-progress-indicator/cpsl-progress-indicator.d.ts +6 -0
  182. package/dist/types/components/cpsl-qr-code/cpsl-qr-code.d.ts +10 -0
  183. package/dist/types/components/cpsl-radio/cpsl-radio.d.ts +6 -0
  184. package/dist/types/components/cpsl-select/cpsl-select.d.ts +45 -0
  185. package/dist/types/components/cpsl-select-item/cpsl-select-item.d.ts +10 -0
  186. package/dist/types/components/cpsl-slide-button/cpsl-slide-button.d.ts +18 -0
  187. package/dist/types/components/cpsl-spinner/cpsl-spinner.d.ts +8 -0
  188. package/dist/types/components/cpsl-switch/cpsl-switch.d.ts +6 -0
  189. package/dist/types/components/cpsl-tab/cpsl-tab.d.ts +11 -0
  190. package/dist/types/components/cpsl-tabs/cpsl-tabs.d.ts +13 -0
  191. package/dist/types/components/cpsl-text/cpsl-text.d.ts +15 -0
  192. package/dist/types/components/cpsl-tile-button/cpsl-tile-button.d.ts +6 -0
  193. package/dist/types/components.d.ts +28 -6
  194. package/dist/types/stencil-public-runtime.d.ts +3 -10
  195. package/dist/types/utils/theme/generateBorderRadii.d.ts +1 -1
  196. package/dist/types/utils/theme/generatePalette.d.ts +1 -1
  197. package/dist/types/utils/theme/generateTheme.d.ts +4 -0
  198. package/package.json +4 -10
  199. package/readme.md +47 -2
  200. package/dist/capsule/p-303e6e89.entry.js +0 -29
  201. package/dist/capsule/p-303e6e89.entry.js.map +0 -1
  202. package/dist/capsule/p-6793ef7a.entry.js +0 -2
  203. package/dist/capsule/p-7dde3172.js +0 -3
  204. package/dist/capsule/p-7dde3172.js.map +0 -1
  205. package/dist/capsule/p-a6aaf3f4.entry.js +0 -10
  206. package/dist/capsule/p-a6aaf3f4.entry.js.map +0 -1
  207. package/dist/cjs/cpsl-alert_34.cjs.entry.js.map +0 -1
  208. package/dist/cjs/index-528f7428.js +0 -2107
  209. package/dist/cjs/index-528f7428.js.map +0 -1
  210. package/dist/collection/assets/icons/double-arc.svg +0 -13
  211. package/dist/collection/assets/icons/single-arc.svg +0 -11
  212. package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js +0 -29
  213. package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js.map +0 -1
  214. package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js +0 -37
  215. package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js.map +0 -1
  216. package/dist/collection/components/cpsl-animation/test/cpsl-animation.e2e.js +0 -29
  217. package/dist/collection/components/cpsl-animation/test/cpsl-animation.e2e.js.map +0 -1
  218. package/dist/collection/components/cpsl-animation/test/cpsl-animation.spec.js +0 -37
  219. package/dist/collection/components/cpsl-animation/test/cpsl-animation.spec.js.map +0 -1
  220. package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.e2e.js +0 -29
  221. package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.e2e.js.map +0 -1
  222. package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.spec.js +0 -37
  223. package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.spec.js.map +0 -1
  224. package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.e2e.js +0 -29
  225. package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.e2e.js.map +0 -1
  226. package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.spec.js +0 -37
  227. package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.spec.js.map +0 -1
  228. package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js +0 -29
  229. package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js.map +0 -1
  230. package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js +0 -37
  231. package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js.map +0 -1
  232. package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.e2e.js +0 -29
  233. package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.e2e.js.map +0 -1
  234. package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.spec.js +0 -37
  235. package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.spec.js.map +0 -1
  236. package/dist/collection/components/cpsl-card/test/cpsl-card.e2e.js +0 -29
  237. package/dist/collection/components/cpsl-card/test/cpsl-card.e2e.js.map +0 -1
  238. package/dist/collection/components/cpsl-card/test/cpsl-card.spec.js +0 -37
  239. package/dist/collection/components/cpsl-card/test/cpsl-card.spec.js.map +0 -1
  240. package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.e2e.js +0 -29
  241. package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.e2e.js.map +0 -1
  242. package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.spec.js +0 -37
  243. package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.spec.js.map +0 -1
  244. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js +0 -29
  245. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js.map +0 -1
  246. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js +0 -37
  247. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js.map +0 -1
  248. package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js +0 -29
  249. package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js.map +0 -1
  250. package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js +0 -37
  251. package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js.map +0 -1
  252. package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js +0 -29
  253. package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js.map +0 -1
  254. package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js +0 -37
  255. package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js.map +0 -1
  256. package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.e2e.js +0 -29
  257. package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.e2e.js.map +0 -1
  258. package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.spec.js +0 -37
  259. package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.spec.js.map +0 -1
  260. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js +0 -29
  261. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js.map +0 -1
  262. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js +0 -37
  263. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js.map +0 -1
  264. package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.e2e.js +0 -29
  265. package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.e2e.js.map +0 -1
  266. package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.spec.js +0 -37
  267. package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.spec.js.map +0 -1
  268. package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js +0 -29
  269. package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js.map +0 -1
  270. package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js +0 -37
  271. package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js.map +0 -1
  272. package/dist/collection/components/cpsl-hero/test/cpsl-hero.e2e.js +0 -29
  273. package/dist/collection/components/cpsl-hero/test/cpsl-hero.e2e.js.map +0 -1
  274. package/dist/collection/components/cpsl-hero/test/cpsl-hero.spec.js +0 -37
  275. package/dist/collection/components/cpsl-hero/test/cpsl-hero.spec.js.map +0 -1
  276. package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js +0 -29
  277. package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js.map +0 -1
  278. package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js +0 -37
  279. package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js.map +0 -1
  280. package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.e2e.js +0 -29
  281. package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.e2e.js.map +0 -1
  282. package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.spec.js +0 -37
  283. package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.spec.js.map +0 -1
  284. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js +0 -29
  285. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js.map +0 -1
  286. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js +0 -37
  287. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js.map +0 -1
  288. package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js +0 -29
  289. package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js.map +0 -1
  290. package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js +0 -37
  291. package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js.map +0 -1
  292. package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js +0 -29
  293. package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js.map +0 -1
  294. package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js +0 -37
  295. package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js.map +0 -1
  296. package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.e2e.js +0 -29
  297. package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.e2e.js.map +0 -1
  298. package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.spec.js +0 -37
  299. package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.spec.js.map +0 -1
  300. package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.e2e.js +0 -29
  301. package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.e2e.js.map +0 -1
  302. package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.spec.js +0 -37
  303. package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.spec.js.map +0 -1
  304. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js +0 -29
  305. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js.map +0 -1
  306. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js +0 -37
  307. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js.map +0 -1
  308. package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.e2e.js +0 -29
  309. package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.e2e.js.map +0 -1
  310. package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.spec.js +0 -37
  311. package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.spec.js.map +0 -1
  312. package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js +0 -29
  313. package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js.map +0 -1
  314. package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js +0 -37
  315. package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js.map +0 -1
  316. package/dist/collection/components/cpsl-popover/test/cpsl-popover.e2e.js +0 -29
  317. package/dist/collection/components/cpsl-popover/test/cpsl-popover.e2e.js.map +0 -1
  318. package/dist/collection/components/cpsl-popover/test/cpsl-popover.spec.js +0 -37
  319. package/dist/collection/components/cpsl-popover/test/cpsl-popover.spec.js.map +0 -1
  320. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js +0 -29
  321. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js.map +0 -1
  322. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js +0 -37
  323. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js.map +0 -1
  324. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js +0 -29
  325. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js.map +0 -1
  326. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js +0 -37
  327. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js.map +0 -1
  328. package/dist/collection/components/cpsl-radio/test/cpsl-radio.e2e.js +0 -29
  329. package/dist/collection/components/cpsl-radio/test/cpsl-radio.e2e.js.map +0 -1
  330. package/dist/collection/components/cpsl-radio/test/cpsl-radio.spec.js +0 -37
  331. package/dist/collection/components/cpsl-radio/test/cpsl-radio.spec.js.map +0 -1
  332. package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js +0 -29
  333. package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js.map +0 -1
  334. package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js +0 -37
  335. package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js.map +0 -1
  336. package/dist/collection/components/cpsl-select/test/cpsl-select.e2e.js +0 -29
  337. package/dist/collection/components/cpsl-select/test/cpsl-select.e2e.js.map +0 -1
  338. package/dist/collection/components/cpsl-select/test/cpsl-select.spec.js +0 -37
  339. package/dist/collection/components/cpsl-select/test/cpsl-select.spec.js.map +0 -1
  340. package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.e2e.js +0 -29
  341. package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.e2e.js.map +0 -1
  342. package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.spec.js +0 -37
  343. package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.spec.js.map +0 -1
  344. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js +0 -29
  345. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js.map +0 -1
  346. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js +0 -37
  347. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js.map +0 -1
  348. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js +0 -29
  349. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js.map +0 -1
  350. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js +0 -37
  351. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js.map +0 -1
  352. package/dist/collection/components/cpsl-switch/test/cpsl-switch.e2e.js +0 -29
  353. package/dist/collection/components/cpsl-switch/test/cpsl-switch.e2e.js.map +0 -1
  354. package/dist/collection/components/cpsl-switch/test/cpsl-switch.spec.js +0 -37
  355. package/dist/collection/components/cpsl-switch/test/cpsl-switch.spec.js.map +0 -1
  356. package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js +0 -29
  357. package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js.map +0 -1
  358. package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js +0 -37
  359. package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js.map +0 -1
  360. package/dist/collection/components/cpsl-table/test/cpsl-table.e2e.js +0 -29
  361. package/dist/collection/components/cpsl-table/test/cpsl-table.e2e.js.map +0 -1
  362. package/dist/collection/components/cpsl-table/test/cpsl-table.spec.js +0 -37
  363. package/dist/collection/components/cpsl-table/test/cpsl-table.spec.js.map +0 -1
  364. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js +0 -29
  365. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js.map +0 -1
  366. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js +0 -37
  367. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js.map +0 -1
  368. package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js +0 -29
  369. package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js.map +0 -1
  370. package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js +0 -37
  371. package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js.map +0 -1
  372. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js +0 -29
  373. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js.map +0 -1
  374. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js +0 -37
  375. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js.map +0 -1
  376. package/dist/esm/cpsl-alert_34.entry.js.map +0 -1
  377. package/dist/esm/index-b188f201.js +0 -2076
  378. package/dist/esm/index-b188f201.js.map +0 -1
  379. package/dist/esm/polyfills/core-js.js +0 -11
  380. package/dist/esm/polyfills/dom.js +0 -79
  381. package/dist/esm/polyfills/es5-html-element.js +0 -1
  382. package/dist/esm/polyfills/index.js +0 -34
  383. package/dist/esm/polyfills/system.js +0 -6
  384. /package/dist/types/Users/{briancorbin/Documents/Programming/Capsule/component-library/core → norwood/capsule-repos/web-sdk/packages/core-components}/.stencil/scripts/buildAssets.d.ts +0 -0
@@ -0,0 +1,1408 @@
1
+ const NAMESPACE = 'capsule';
2
+ const BUILD = /* capsule */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
3
+
4
+ /*
5
+ Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
6
+ */
7
+ var __defProp = Object.defineProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var hostRefs = /* @__PURE__ */ new WeakMap();
13
+ var getHostRef = (ref) => hostRefs.get(ref);
14
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
15
+ var registerHost = (hostElement, cmpMeta) => {
16
+ const hostRef = {
17
+ $flags$: 0,
18
+ $hostElement$: hostElement,
19
+ $cmpMeta$: cmpMeta,
20
+ $instanceValues$: /* @__PURE__ */ new Map()
21
+ };
22
+ {
23
+ hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
24
+ }
25
+ {
26
+ hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
27
+ hostElement["s-p"] = [];
28
+ hostElement["s-rc"] = [];
29
+ }
30
+ return hostRefs.set(hostElement, hostRef);
31
+ };
32
+ var isMemberInElement = (elm, memberName) => memberName in elm;
33
+ var consoleError = (e, el) => (0, console.error)(e, el);
34
+
35
+ // src/client/client-load-module.ts
36
+ var cmpModules = /* @__PURE__ */ new Map();
37
+ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
38
+ const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
39
+ const bundleId = cmpMeta.$lazyBundleId$;
40
+ if (!bundleId) {
41
+ return void 0;
42
+ }
43
+ const module = cmpModules.get(bundleId) ;
44
+ if (module) {
45
+ return module[exportName];
46
+ }
47
+
48
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
49
+ const processMod = importedModule => {
50
+ cmpModules.set(bundleId, importedModule);
51
+ return importedModule[exportName];
52
+ }
53
+ switch(bundleId) {
54
+
55
+ case 'cpsl-alert_33':
56
+ return import(
57
+ /* webpackMode: "lazy" */
58
+ './cpsl-alert_33.entry.js').then(processMod, consoleError);
59
+ case 'cpsl-animation':
60
+ return import(
61
+ /* webpackMode: "lazy" */
62
+ './cpsl-animation.entry.js').then(processMod, consoleError);
63
+ case 'cpsl-col':
64
+ return import(
65
+ /* webpackMode: "lazy" */
66
+ './cpsl-col.entry.js').then(processMod, consoleError);
67
+ case 'cpsl-grid':
68
+ return import(
69
+ /* webpackMode: "lazy" */
70
+ './cpsl-grid.entry.js').then(processMod, consoleError);
71
+ case 'cpsl-hero':
72
+ return import(
73
+ /* webpackMode: "lazy" */
74
+ './cpsl-hero.entry.js').then(processMod, consoleError);
75
+ case 'cpsl-identicon':
76
+ return import(
77
+ /* webpackMode: "lazy" */
78
+ './cpsl-identicon.entry.js').then(processMod, consoleError);
79
+ case 'cpsl-info-box':
80
+ return import(
81
+ /* webpackMode: "lazy" */
82
+ './cpsl-info-box.entry.js').then(processMod, consoleError);
83
+ case 'cpsl-modal-v2':
84
+ return import(
85
+ /* webpackMode: "lazy" */
86
+ './cpsl-modal-v2.entry.js').then(processMod, consoleError);
87
+ case 'cpsl-row':
88
+ return import(
89
+ /* webpackMode: "lazy" */
90
+ './cpsl-row.entry.js').then(processMod, consoleError);
91
+ }
92
+ }
93
+ return import(
94
+ /* @vite-ignore */
95
+ /* webpackInclude: /\.entry\.js$/ */
96
+ /* webpackExclude: /\.system\.entry\.js$/ */
97
+ /* webpackMode: "lazy" */
98
+ `./${bundleId}.entry.js${""}`
99
+ ).then((importedModule) => {
100
+ {
101
+ cmpModules.set(bundleId, importedModule);
102
+ }
103
+ return importedModule[exportName];
104
+ }, consoleError);
105
+ };
106
+
107
+ // src/client/client-style.ts
108
+ var styles = /* @__PURE__ */ new Map();
109
+ var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
110
+ var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
111
+ var win = typeof window !== "undefined" ? window : {};
112
+ var doc = win.document || { head: {} };
113
+ var plt = {
114
+ $flags$: 0,
115
+ $resourcesUrl$: "",
116
+ jmp: (h2) => h2(),
117
+ raf: (h2) => requestAnimationFrame(h2),
118
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
119
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
120
+ ce: (eventName, opts) => new CustomEvent(eventName, opts)
121
+ };
122
+ var supportsListenerOptions = /* @__PURE__ */ (() => {
123
+ let supportsListenerOptions2 = false;
124
+ try {
125
+ doc.addEventListener(
126
+ "e",
127
+ null,
128
+ Object.defineProperty({}, "passive", {
129
+ get() {
130
+ supportsListenerOptions2 = true;
131
+ }
132
+ })
133
+ );
134
+ } catch (e) {
135
+ }
136
+ return supportsListenerOptions2;
137
+ })();
138
+ var promiseResolve = (v) => Promise.resolve(v);
139
+ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
140
+ try {
141
+ new CSSStyleSheet();
142
+ return typeof new CSSStyleSheet().replaceSync === "function";
143
+ } catch (e) {
144
+ }
145
+ return false;
146
+ })() ;
147
+ var queuePending = false;
148
+ var queueDomReads = [];
149
+ var queueDomWrites = [];
150
+ var queueTask = (queue, write) => (cb) => {
151
+ queue.push(cb);
152
+ if (!queuePending) {
153
+ queuePending = true;
154
+ if (write && plt.$flags$ & 4 /* queueSync */) {
155
+ nextTick(flush);
156
+ } else {
157
+ plt.raf(flush);
158
+ }
159
+ }
160
+ };
161
+ var consume = (queue) => {
162
+ for (let i2 = 0; i2 < queue.length; i2++) {
163
+ try {
164
+ queue[i2](performance.now());
165
+ } catch (e) {
166
+ consoleError(e);
167
+ }
168
+ }
169
+ queue.length = 0;
170
+ };
171
+ var flush = () => {
172
+ consume(queueDomReads);
173
+ {
174
+ consume(queueDomWrites);
175
+ if (queuePending = queueDomReads.length > 0) {
176
+ plt.raf(flush);
177
+ }
178
+ }
179
+ };
180
+ var nextTick = (cb) => promiseResolve().then(cb);
181
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
182
+
183
+ // src/utils/constants.ts
184
+ var EMPTY_OBJ = {};
185
+ var SVG_NS = "http://www.w3.org/2000/svg";
186
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
187
+
188
+ // src/utils/helpers.ts
189
+ var isDef = (v) => v != null;
190
+ var isComplexType = (o) => {
191
+ o = typeof o;
192
+ return o === "object" || o === "function";
193
+ };
194
+
195
+ // src/utils/query-nonce-meta-tag-content.ts
196
+ function queryNonceMetaTagContent(doc2) {
197
+ var _a, _b, _c;
198
+ return (_c = (_b = (_a = doc2.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
199
+ }
200
+
201
+ // src/utils/result.ts
202
+ var result_exports = {};
203
+ __export(result_exports, {
204
+ err: () => err,
205
+ map: () => map,
206
+ ok: () => ok,
207
+ unwrap: () => unwrap,
208
+ unwrapErr: () => unwrapErr
209
+ });
210
+ var ok = (value) => ({
211
+ isOk: true,
212
+ isErr: false,
213
+ value
214
+ });
215
+ var err = (value) => ({
216
+ isOk: false,
217
+ isErr: true,
218
+ value
219
+ });
220
+ function map(result, fn) {
221
+ if (result.isOk) {
222
+ const val = fn(result.value);
223
+ if (val instanceof Promise) {
224
+ return val.then((newVal) => ok(newVal));
225
+ } else {
226
+ return ok(val);
227
+ }
228
+ }
229
+ if (result.isErr) {
230
+ const value = result.value;
231
+ return err(value);
232
+ }
233
+ throw "should never get here";
234
+ }
235
+ var unwrap = (result) => {
236
+ if (result.isOk) {
237
+ return result.value;
238
+ } else {
239
+ throw result.value;
240
+ }
241
+ };
242
+ var unwrapErr = (result) => {
243
+ if (result.isErr) {
244
+ return result.value;
245
+ } else {
246
+ throw result.value;
247
+ }
248
+ };
249
+ var createTime = (fnName, tagName = "") => {
250
+ {
251
+ return () => {
252
+ return;
253
+ };
254
+ }
255
+ };
256
+ var uniqueTime = (key, measureText) => {
257
+ {
258
+ return () => {
259
+ return;
260
+ };
261
+ }
262
+ };
263
+ var h = (nodeName, vnodeData, ...children) => {
264
+ let child = null;
265
+ let key = null;
266
+ let simple = false;
267
+ let lastSimple = false;
268
+ const vNodeChildren = [];
269
+ const walk = (c) => {
270
+ for (let i2 = 0; i2 < c.length; i2++) {
271
+ child = c[i2];
272
+ if (Array.isArray(child)) {
273
+ walk(child);
274
+ } else if (child != null && typeof child !== "boolean") {
275
+ if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
276
+ child = String(child);
277
+ }
278
+ if (simple && lastSimple) {
279
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
280
+ } else {
281
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
282
+ }
283
+ lastSimple = simple;
284
+ }
285
+ }
286
+ };
287
+ walk(children);
288
+ if (vnodeData) {
289
+ if (vnodeData.key) {
290
+ key = vnodeData.key;
291
+ }
292
+ {
293
+ const classData = vnodeData.className || vnodeData.class;
294
+ if (classData) {
295
+ vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
296
+ }
297
+ }
298
+ }
299
+ if (typeof nodeName === "function") {
300
+ return nodeName(
301
+ vnodeData === null ? {} : vnodeData,
302
+ vNodeChildren,
303
+ vdomFnUtils
304
+ );
305
+ }
306
+ const vnode = newVNode(nodeName, null);
307
+ vnode.$attrs$ = vnodeData;
308
+ if (vNodeChildren.length > 0) {
309
+ vnode.$children$ = vNodeChildren;
310
+ }
311
+ {
312
+ vnode.$key$ = key;
313
+ }
314
+ return vnode;
315
+ };
316
+ var newVNode = (tag, text) => {
317
+ const vnode = {
318
+ $flags$: 0,
319
+ $tag$: tag,
320
+ $text$: text,
321
+ $elm$: null,
322
+ $children$: null
323
+ };
324
+ {
325
+ vnode.$attrs$ = null;
326
+ }
327
+ {
328
+ vnode.$key$ = null;
329
+ }
330
+ return vnode;
331
+ };
332
+ var Host = {};
333
+ var isHost = (node) => node && node.$tag$ === Host;
334
+ var vdomFnUtils = {
335
+ forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
336
+ map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
337
+ };
338
+ var convertToPublic = (node) => ({
339
+ vattrs: node.$attrs$,
340
+ vchildren: node.$children$,
341
+ vkey: node.$key$,
342
+ vname: node.$name$,
343
+ vtag: node.$tag$,
344
+ vtext: node.$text$
345
+ });
346
+ var convertToPrivate = (node) => {
347
+ if (typeof node.vtag === "function") {
348
+ const vnodeData = { ...node.vattrs };
349
+ if (node.vkey) {
350
+ vnodeData.key = node.vkey;
351
+ }
352
+ if (node.vname) {
353
+ vnodeData.name = node.vname;
354
+ }
355
+ return h(node.vtag, vnodeData, ...node.vchildren || []);
356
+ }
357
+ const vnode = newVNode(node.vtag, node.vtext);
358
+ vnode.$attrs$ = node.vattrs;
359
+ vnode.$children$ = node.vchildren;
360
+ vnode.$key$ = node.vkey;
361
+ vnode.$name$ = node.vname;
362
+ return vnode;
363
+ };
364
+ var parsePropertyValue = (propValue, propType) => {
365
+ if (propValue != null && !isComplexType(propValue)) {
366
+ if (propType & 4 /* Boolean */) {
367
+ return propValue === "false" ? false : propValue === "" || !!propValue;
368
+ }
369
+ if (propType & 2 /* Number */) {
370
+ return parseFloat(propValue);
371
+ }
372
+ if (propType & 1 /* String */) {
373
+ return String(propValue);
374
+ }
375
+ return propValue;
376
+ }
377
+ return propValue;
378
+ };
379
+ var getElement = (ref) => getHostRef(ref).$hostElement$ ;
380
+
381
+ // src/runtime/event-emitter.ts
382
+ var createEvent = (ref, name, flags) => {
383
+ const elm = getElement(ref);
384
+ return {
385
+ emit: (detail) => {
386
+ return emitEvent(elm, name, {
387
+ bubbles: !!(flags & 4 /* Bubbles */),
388
+ composed: !!(flags & 2 /* Composed */),
389
+ cancelable: !!(flags & 1 /* Cancellable */),
390
+ detail
391
+ });
392
+ }
393
+ };
394
+ };
395
+ var emitEvent = (elm, name, opts) => {
396
+ const ev = plt.ce(name, opts);
397
+ elm.dispatchEvent(ev);
398
+ return ev;
399
+ };
400
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
401
+ var registerStyle = (scopeId2, cssText, allowCS) => {
402
+ let style = styles.get(scopeId2);
403
+ if (supportsConstructableStylesheets && allowCS) {
404
+ style = style || new CSSStyleSheet();
405
+ if (typeof style === "string") {
406
+ style = cssText;
407
+ } else {
408
+ style.replaceSync(cssText);
409
+ }
410
+ } else {
411
+ style = cssText;
412
+ }
413
+ styles.set(scopeId2, style);
414
+ };
415
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
416
+ var _a;
417
+ const scopeId2 = getScopeId(cmpMeta);
418
+ const style = styles.get(scopeId2);
419
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
420
+ if (style) {
421
+ if (typeof style === "string") {
422
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
423
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
424
+ let styleElm;
425
+ if (!appliedStyles) {
426
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
427
+ }
428
+ if (!appliedStyles.has(scopeId2)) {
429
+ {
430
+ styleElm = doc.createElement("style");
431
+ styleElm.innerHTML = style;
432
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
433
+ if (nonce != null) {
434
+ styleElm.setAttribute("nonce", nonce);
435
+ }
436
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
437
+ }
438
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
439
+ styleElm.innerHTML += SLOT_FB_CSS;
440
+ }
441
+ if (appliedStyles) {
442
+ appliedStyles.add(scopeId2);
443
+ }
444
+ }
445
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
446
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
447
+ }
448
+ }
449
+ return scopeId2;
450
+ };
451
+ var attachStyles = (hostRef) => {
452
+ const cmpMeta = hostRef.$cmpMeta$;
453
+ const elm = hostRef.$hostElement$;
454
+ const flags = cmpMeta.$flags$;
455
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
456
+ const scopeId2 = addStyle(
457
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
458
+ cmpMeta);
459
+ if (flags & 10 /* needsScopedEncapsulation */) {
460
+ elm["s-sc"] = scopeId2;
461
+ elm.classList.add(scopeId2 + "-h");
462
+ }
463
+ endAttachStyles();
464
+ };
465
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
466
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
467
+ if (oldValue !== newValue) {
468
+ let isProp = isMemberInElement(elm, memberName);
469
+ let ln = memberName.toLowerCase();
470
+ if (memberName === "class") {
471
+ const classList = elm.classList;
472
+ const oldClasses = parseClassList(oldValue);
473
+ const newClasses = parseClassList(newValue);
474
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
475
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
476
+ } else if (memberName === "style") {
477
+ {
478
+ for (const prop in oldValue) {
479
+ if (!newValue || newValue[prop] == null) {
480
+ if (prop.includes("-")) {
481
+ elm.style.removeProperty(prop);
482
+ } else {
483
+ elm.style[prop] = "";
484
+ }
485
+ }
486
+ }
487
+ }
488
+ for (const prop in newValue) {
489
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
490
+ if (prop.includes("-")) {
491
+ elm.style.setProperty(prop, newValue[prop]);
492
+ } else {
493
+ elm.style[prop] = newValue[prop];
494
+ }
495
+ }
496
+ }
497
+ } else if (memberName === "key") ; else if (memberName === "ref") {
498
+ if (newValue) {
499
+ newValue(elm);
500
+ }
501
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
502
+ if (memberName[2] === "-") {
503
+ memberName = memberName.slice(3);
504
+ } else if (isMemberInElement(win, ln)) {
505
+ memberName = ln.slice(2);
506
+ } else {
507
+ memberName = ln[2] + memberName.slice(3);
508
+ }
509
+ if (oldValue || newValue) {
510
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
511
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
512
+ if (oldValue) {
513
+ plt.rel(elm, memberName, oldValue, capture);
514
+ }
515
+ if (newValue) {
516
+ plt.ael(elm, memberName, newValue, capture);
517
+ }
518
+ }
519
+ } else {
520
+ const isComplex = isComplexType(newValue);
521
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
522
+ try {
523
+ if (!elm.tagName.includes("-")) {
524
+ const n = newValue == null ? "" : newValue;
525
+ if (memberName === "list") {
526
+ isProp = false;
527
+ } else if (oldValue == null || elm[memberName] != n) {
528
+ elm[memberName] = n;
529
+ }
530
+ } else {
531
+ elm[memberName] = newValue;
532
+ }
533
+ } catch (e) {
534
+ }
535
+ }
536
+ if (newValue == null || newValue === false) {
537
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
538
+ {
539
+ elm.removeAttribute(memberName);
540
+ }
541
+ }
542
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
543
+ newValue = newValue === true ? "" : newValue;
544
+ {
545
+ elm.setAttribute(memberName, newValue);
546
+ }
547
+ }
548
+ }
549
+ }
550
+ };
551
+ var parseClassListRegex = /\s/;
552
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
553
+ var CAPTURE_EVENT_SUFFIX = "Capture";
554
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
555
+
556
+ // src/runtime/vdom/update-element.ts
557
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
558
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
559
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
560
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
561
+ {
562
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
563
+ if (!(memberName in newVnodeAttrs)) {
564
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
565
+ }
566
+ }
567
+ }
568
+ for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
569
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
570
+ }
571
+ };
572
+ function sortedAttrNames(attrNames) {
573
+ return attrNames.includes("ref") ? (
574
+ // we need to sort these to ensure that `'ref'` is the last attr
575
+ [...attrNames.filter((attr) => attr !== "ref"), "ref"]
576
+ ) : (
577
+ // no need to sort, return the original array
578
+ attrNames
579
+ );
580
+ }
581
+
582
+ // src/runtime/vdom/vdom-render.ts
583
+ var scopeId;
584
+ var hostTagName;
585
+ var useNativeShadowDom = false;
586
+ var isSvgMode = false;
587
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
588
+ const newVNode2 = newParentVNode.$children$[childIndex];
589
+ let i2 = 0;
590
+ let elm;
591
+ let childNode;
592
+ if (newVNode2.$text$ !== null) {
593
+ elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
594
+ } else {
595
+ if (!isSvgMode) {
596
+ isSvgMode = newVNode2.$tag$ === "svg";
597
+ }
598
+ elm = newVNode2.$elm$ = doc.createElementNS(
599
+ isSvgMode ? SVG_NS : HTML_NS,
600
+ !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
601
+ ) ;
602
+ if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
603
+ isSvgMode = false;
604
+ }
605
+ {
606
+ updateElement(null, newVNode2, isSvgMode);
607
+ }
608
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
609
+ elm.classList.add(elm["s-si"] = scopeId);
610
+ }
611
+ if (newVNode2.$children$) {
612
+ for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
613
+ childNode = createElm(oldParentVNode, newVNode2, i2);
614
+ if (childNode) {
615
+ elm.appendChild(childNode);
616
+ }
617
+ }
618
+ }
619
+ {
620
+ if (newVNode2.$tag$ === "svg") {
621
+ isSvgMode = false;
622
+ } else if (elm.tagName === "foreignObject") {
623
+ isSvgMode = true;
624
+ }
625
+ }
626
+ }
627
+ elm["s-hn"] = hostTagName;
628
+ return elm;
629
+ };
630
+ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
631
+ let containerElm = parentElm;
632
+ let childNode;
633
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
634
+ containerElm = containerElm.shadowRoot;
635
+ }
636
+ for (; startIdx <= endIdx; ++startIdx) {
637
+ if (vnodes[startIdx]) {
638
+ childNode = createElm(null, parentVNode, startIdx);
639
+ if (childNode) {
640
+ vnodes[startIdx].$elm$ = childNode;
641
+ insertBefore(containerElm, childNode, before);
642
+ }
643
+ }
644
+ }
645
+ };
646
+ var removeVnodes = (vnodes, startIdx, endIdx) => {
647
+ for (let index = startIdx; index <= endIdx; ++index) {
648
+ const vnode = vnodes[index];
649
+ if (vnode) {
650
+ const elm = vnode.$elm$;
651
+ nullifyVNodeRefs(vnode);
652
+ if (elm) {
653
+ elm.remove();
654
+ }
655
+ }
656
+ }
657
+ };
658
+ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
659
+ let oldStartIdx = 0;
660
+ let newStartIdx = 0;
661
+ let idxInOld = 0;
662
+ let i2 = 0;
663
+ let oldEndIdx = oldCh.length - 1;
664
+ let oldStartVnode = oldCh[0];
665
+ let oldEndVnode = oldCh[oldEndIdx];
666
+ let newEndIdx = newCh.length - 1;
667
+ let newStartVnode = newCh[0];
668
+ let newEndVnode = newCh[newEndIdx];
669
+ let node;
670
+ let elmToMove;
671
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
672
+ if (oldStartVnode == null) {
673
+ oldStartVnode = oldCh[++oldStartIdx];
674
+ } else if (oldEndVnode == null) {
675
+ oldEndVnode = oldCh[--oldEndIdx];
676
+ } else if (newStartVnode == null) {
677
+ newStartVnode = newCh[++newStartIdx];
678
+ } else if (newEndVnode == null) {
679
+ newEndVnode = newCh[--newEndIdx];
680
+ } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
681
+ patch(oldStartVnode, newStartVnode, isInitialRender);
682
+ oldStartVnode = oldCh[++oldStartIdx];
683
+ newStartVnode = newCh[++newStartIdx];
684
+ } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
685
+ patch(oldEndVnode, newEndVnode, isInitialRender);
686
+ oldEndVnode = oldCh[--oldEndIdx];
687
+ newEndVnode = newCh[--newEndIdx];
688
+ } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
689
+ patch(oldStartVnode, newEndVnode, isInitialRender);
690
+ insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
691
+ oldStartVnode = oldCh[++oldStartIdx];
692
+ newEndVnode = newCh[--newEndIdx];
693
+ } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
694
+ patch(oldEndVnode, newStartVnode, isInitialRender);
695
+ insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
696
+ oldEndVnode = oldCh[--oldEndIdx];
697
+ newStartVnode = newCh[++newStartIdx];
698
+ } else {
699
+ idxInOld = -1;
700
+ {
701
+ for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
702
+ if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
703
+ idxInOld = i2;
704
+ break;
705
+ }
706
+ }
707
+ }
708
+ if (idxInOld >= 0) {
709
+ elmToMove = oldCh[idxInOld];
710
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
711
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
712
+ } else {
713
+ patch(elmToMove, newStartVnode, isInitialRender);
714
+ oldCh[idxInOld] = void 0;
715
+ node = elmToMove.$elm$;
716
+ }
717
+ newStartVnode = newCh[++newStartIdx];
718
+ } else {
719
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
720
+ newStartVnode = newCh[++newStartIdx];
721
+ }
722
+ if (node) {
723
+ {
724
+ insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
725
+ }
726
+ }
727
+ }
728
+ }
729
+ if (oldStartIdx > oldEndIdx) {
730
+ addVnodes(
731
+ parentElm,
732
+ newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
733
+ newVNode2,
734
+ newCh,
735
+ newStartIdx,
736
+ newEndIdx
737
+ );
738
+ } else if (newStartIdx > newEndIdx) {
739
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
740
+ }
741
+ };
742
+ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
743
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
744
+ if (!isInitialRender) {
745
+ return leftVNode.$key$ === rightVNode.$key$;
746
+ }
747
+ return true;
748
+ }
749
+ return false;
750
+ };
751
+ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
752
+ const elm = newVNode2.$elm$ = oldVNode.$elm$;
753
+ const oldChildren = oldVNode.$children$;
754
+ const newChildren = newVNode2.$children$;
755
+ const tag = newVNode2.$tag$;
756
+ const text = newVNode2.$text$;
757
+ if (text === null) {
758
+ {
759
+ isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
760
+ }
761
+ {
762
+ if (tag === "slot" && !useNativeShadowDom) ; else {
763
+ updateElement(oldVNode, newVNode2, isSvgMode);
764
+ }
765
+ }
766
+ if (oldChildren !== null && newChildren !== null) {
767
+ updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
768
+ } else if (newChildren !== null) {
769
+ if (oldVNode.$text$ !== null) {
770
+ elm.textContent = "";
771
+ }
772
+ addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
773
+ } else if (oldChildren !== null) {
774
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
775
+ }
776
+ if (isSvgMode && tag === "svg") {
777
+ isSvgMode = false;
778
+ }
779
+ } else if (oldVNode.$text$ !== text) {
780
+ elm.data = text;
781
+ }
782
+ };
783
+ var nullifyVNodeRefs = (vNode) => {
784
+ {
785
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
786
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
787
+ }
788
+ };
789
+ var insertBefore = (parent, newNode, reference) => {
790
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
791
+ return inserted;
792
+ };
793
+ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
794
+ const hostElm = hostRef.$hostElement$;
795
+ const cmpMeta = hostRef.$cmpMeta$;
796
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
797
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
798
+ hostTagName = hostElm.tagName;
799
+ if (cmpMeta.$attrsToReflect$) {
800
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
801
+ cmpMeta.$attrsToReflect$.map(
802
+ ([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
803
+ );
804
+ }
805
+ if (isInitialLoad && rootVnode.$attrs$) {
806
+ for (const key of Object.keys(rootVnode.$attrs$)) {
807
+ if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
808
+ rootVnode.$attrs$[key] = hostElm[key];
809
+ }
810
+ }
811
+ }
812
+ rootVnode.$tag$ = null;
813
+ rootVnode.$flags$ |= 4 /* isHost */;
814
+ hostRef.$vnode$ = rootVnode;
815
+ rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
816
+ {
817
+ scopeId = hostElm["s-sc"];
818
+ }
819
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
820
+ patch(oldVNode, rootVnode, isInitialLoad);
821
+ };
822
+
823
+ // src/runtime/update-component.ts
824
+ var attachToAncestor = (hostRef, ancestorComponent) => {
825
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
826
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
827
+ }
828
+ };
829
+ var scheduleUpdate = (hostRef, isInitialLoad) => {
830
+ {
831
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
832
+ }
833
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
834
+ hostRef.$flags$ |= 512 /* needsRerender */;
835
+ return;
836
+ }
837
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
838
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
839
+ return writeTask(dispatch) ;
840
+ };
841
+ var dispatchHooks = (hostRef, isInitialLoad) => {
842
+ const elm = hostRef.$hostElement$;
843
+ const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
844
+ const instance = hostRef.$lazyInstance$ ;
845
+ if (!instance) {
846
+ throw new Error(
847
+ `Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
848
+ );
849
+ }
850
+ let maybePromise;
851
+ if (isInitialLoad) {
852
+ {
853
+ hostRef.$flags$ |= 256 /* isListenReady */;
854
+ if (hostRef.$queuedListeners$) {
855
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
856
+ hostRef.$queuedListeners$ = void 0;
857
+ }
858
+ }
859
+ {
860
+ maybePromise = safeCall(instance, "componentWillLoad");
861
+ }
862
+ }
863
+ {
864
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
865
+ }
866
+ endSchedule();
867
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
868
+ };
869
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
870
+ console.error(err2);
871
+ fn();
872
+ }) : fn();
873
+ var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
874
+ var updateComponent = async (hostRef, instance, isInitialLoad) => {
875
+ var _a;
876
+ const elm = hostRef.$hostElement$;
877
+ const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
878
+ const rc = elm["s-rc"];
879
+ if (isInitialLoad) {
880
+ attachStyles(hostRef);
881
+ }
882
+ const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
883
+ {
884
+ callRender(hostRef, instance, elm, isInitialLoad);
885
+ }
886
+ if (rc) {
887
+ rc.map((cb) => cb());
888
+ elm["s-rc"] = void 0;
889
+ }
890
+ endRender();
891
+ endUpdate();
892
+ {
893
+ const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
894
+ const postUpdate = () => postUpdateComponent(hostRef);
895
+ if (childrenPromises.length === 0) {
896
+ postUpdate();
897
+ } else {
898
+ Promise.all(childrenPromises).then(postUpdate);
899
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
900
+ childrenPromises.length = 0;
901
+ }
902
+ }
903
+ };
904
+ var callRender = (hostRef, instance, elm, isInitialLoad) => {
905
+ try {
906
+ instance = instance.render() ;
907
+ {
908
+ hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
909
+ }
910
+ {
911
+ hostRef.$flags$ |= 2 /* hasRendered */;
912
+ }
913
+ {
914
+ {
915
+ {
916
+ renderVdom(hostRef, instance, isInitialLoad);
917
+ }
918
+ }
919
+ }
920
+ } catch (e) {
921
+ consoleError(e, hostRef.$hostElement$);
922
+ }
923
+ return null;
924
+ };
925
+ var postUpdateComponent = (hostRef) => {
926
+ const tagName = hostRef.$cmpMeta$.$tagName$;
927
+ const elm = hostRef.$hostElement$;
928
+ const endPostUpdate = createTime("postUpdate", tagName);
929
+ const instance = hostRef.$lazyInstance$ ;
930
+ const ancestorComponent = hostRef.$ancestorComponent$;
931
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
932
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
933
+ {
934
+ addHydratedFlag(elm);
935
+ }
936
+ {
937
+ safeCall(instance, "componentDidLoad");
938
+ }
939
+ endPostUpdate();
940
+ {
941
+ hostRef.$onReadyResolve$(elm);
942
+ if (!ancestorComponent) {
943
+ appDidLoad();
944
+ }
945
+ }
946
+ } else {
947
+ endPostUpdate();
948
+ }
949
+ {
950
+ hostRef.$onInstanceResolve$(elm);
951
+ }
952
+ {
953
+ if (hostRef.$onRenderResolve$) {
954
+ hostRef.$onRenderResolve$();
955
+ hostRef.$onRenderResolve$ = void 0;
956
+ }
957
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
958
+ nextTick(() => scheduleUpdate(hostRef, false));
959
+ }
960
+ hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
961
+ }
962
+ };
963
+ var forceUpdate = (ref) => {
964
+ {
965
+ const hostRef = getHostRef(ref);
966
+ const isConnected = hostRef.$hostElement$.isConnected;
967
+ if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
968
+ scheduleUpdate(hostRef, false);
969
+ }
970
+ return isConnected;
971
+ }
972
+ };
973
+ var appDidLoad = (who) => {
974
+ {
975
+ addHydratedFlag(doc.documentElement);
976
+ }
977
+ nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
978
+ };
979
+ var safeCall = (instance, method, arg) => {
980
+ if (instance && instance[method]) {
981
+ try {
982
+ return instance[method](arg);
983
+ } catch (e) {
984
+ consoleError(e);
985
+ }
986
+ }
987
+ return void 0;
988
+ };
989
+ var addHydratedFlag = (elm) => {
990
+ var _a;
991
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
992
+ };
993
+
994
+ // src/runtime/set-value.ts
995
+ var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
996
+ var setValue = (ref, propName, newVal, cmpMeta) => {
997
+ const hostRef = getHostRef(ref);
998
+ if (!hostRef) {
999
+ throw new Error(
1000
+ `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
1001
+ );
1002
+ }
1003
+ const elm = hostRef.$hostElement$ ;
1004
+ const oldVal = hostRef.$instanceValues$.get(propName);
1005
+ const flags = hostRef.$flags$;
1006
+ const instance = hostRef.$lazyInstance$ ;
1007
+ newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1008
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1009
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1010
+ if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1011
+ hostRef.$instanceValues$.set(propName, newVal);
1012
+ if (instance) {
1013
+ if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1014
+ const watchMethods = cmpMeta.$watchers$[propName];
1015
+ if (watchMethods) {
1016
+ watchMethods.map((watchMethodName) => {
1017
+ try {
1018
+ instance[watchMethodName](newVal, oldVal, propName);
1019
+ } catch (e) {
1020
+ consoleError(e, elm);
1021
+ }
1022
+ });
1023
+ }
1024
+ }
1025
+ if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1026
+ scheduleUpdate(hostRef, false);
1027
+ }
1028
+ }
1029
+ }
1030
+ };
1031
+
1032
+ // src/runtime/proxy-component.ts
1033
+ var proxyComponent = (Cstr, cmpMeta, flags) => {
1034
+ var _a, _b;
1035
+ const prototype = Cstr.prototype;
1036
+ if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
1037
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
1038
+ cmpMeta.$watchers$ = Cstr.watchers;
1039
+ }
1040
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1041
+ members.map(([memberName, [memberFlags]]) => {
1042
+ if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1043
+ Object.defineProperty(prototype, memberName, {
1044
+ get() {
1045
+ return getValue(this, memberName);
1046
+ },
1047
+ set(newValue) {
1048
+ setValue(this, memberName, newValue, cmpMeta);
1049
+ },
1050
+ configurable: true,
1051
+ enumerable: true
1052
+ });
1053
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1054
+ Object.defineProperty(prototype, memberName, {
1055
+ value(...args) {
1056
+ var _a2;
1057
+ const ref = getHostRef(this);
1058
+ return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
1059
+ var _a3;
1060
+ return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
1061
+ });
1062
+ }
1063
+ });
1064
+ }
1065
+ });
1066
+ if ((flags & 1 /* isElementConstructor */)) {
1067
+ const attrNameToPropName = /* @__PURE__ */ new Map();
1068
+ prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
1069
+ plt.jmp(() => {
1070
+ var _a2;
1071
+ const propName = attrNameToPropName.get(attrName);
1072
+ if (this.hasOwnProperty(propName)) {
1073
+ newValue = this[propName];
1074
+ delete this[propName];
1075
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1076
+ return;
1077
+ } else if (propName == null) {
1078
+ const hostRef = getHostRef(this);
1079
+ const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1080
+ if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1081
+ const instance = hostRef.$lazyInstance$ ;
1082
+ const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1083
+ entry == null ? void 0 : entry.forEach((callbackName) => {
1084
+ if (instance[callbackName] != null) {
1085
+ instance[callbackName].call(instance, newValue, oldValue, attrName);
1086
+ }
1087
+ });
1088
+ }
1089
+ return;
1090
+ }
1091
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1092
+ });
1093
+ };
1094
+ Cstr.observedAttributes = Array.from(
1095
+ /* @__PURE__ */ new Set([
1096
+ ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1097
+ ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
1098
+ var _a2;
1099
+ const attrName = m[1] || propName;
1100
+ attrNameToPropName.set(attrName, propName);
1101
+ if (m[0] & 512 /* ReflectAttr */) {
1102
+ (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
1103
+ }
1104
+ return attrName;
1105
+ })
1106
+ ])
1107
+ );
1108
+ }
1109
+ }
1110
+ return Cstr;
1111
+ };
1112
+
1113
+ // src/runtime/initialize-component.ts
1114
+ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1115
+ let Cstr;
1116
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1117
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1118
+ const bundleId = cmpMeta.$lazyBundleId$;
1119
+ if (bundleId) {
1120
+ const CstrImport = loadModule(cmpMeta);
1121
+ if (CstrImport && "then" in CstrImport) {
1122
+ const endLoad = uniqueTime();
1123
+ Cstr = await CstrImport;
1124
+ endLoad();
1125
+ } else {
1126
+ Cstr = CstrImport;
1127
+ }
1128
+ if (!Cstr) {
1129
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1130
+ }
1131
+ if (!Cstr.isProxied) {
1132
+ {
1133
+ cmpMeta.$watchers$ = Cstr.watchers;
1134
+ }
1135
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1136
+ Cstr.isProxied = true;
1137
+ }
1138
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
1139
+ {
1140
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
1141
+ }
1142
+ try {
1143
+ new Cstr(hostRef);
1144
+ } catch (e) {
1145
+ consoleError(e);
1146
+ }
1147
+ {
1148
+ hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1149
+ }
1150
+ {
1151
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1152
+ }
1153
+ endNewInstance();
1154
+ } else {
1155
+ Cstr = elm.constructor;
1156
+ const cmpTag = elm.localName;
1157
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1158
+ }
1159
+ if (Cstr && Cstr.style) {
1160
+ let style;
1161
+ if (typeof Cstr.style === "string") {
1162
+ style = Cstr.style;
1163
+ }
1164
+ const scopeId2 = getScopeId(cmpMeta);
1165
+ if (!styles.has(scopeId2)) {
1166
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
1167
+ registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1168
+ endRegisterStyles();
1169
+ }
1170
+ }
1171
+ }
1172
+ const ancestorComponent = hostRef.$ancestorComponent$;
1173
+ const schedule = () => scheduleUpdate(hostRef, true);
1174
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
1175
+ ancestorComponent["s-rc"].push(schedule);
1176
+ } else {
1177
+ schedule();
1178
+ }
1179
+ };
1180
+ var fireConnectedCallback = (instance) => {
1181
+ };
1182
+
1183
+ // src/runtime/connected-callback.ts
1184
+ var connectedCallback = (elm) => {
1185
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1186
+ const hostRef = getHostRef(elm);
1187
+ const cmpMeta = hostRef.$cmpMeta$;
1188
+ const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1189
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1190
+ hostRef.$flags$ |= 1 /* hasConnected */;
1191
+ {
1192
+ let ancestorComponent = elm;
1193
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
1194
+ if (ancestorComponent["s-p"]) {
1195
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
1196
+ break;
1197
+ }
1198
+ }
1199
+ }
1200
+ if (cmpMeta.$members$) {
1201
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1202
+ if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1203
+ const value = elm[memberName];
1204
+ delete elm[memberName];
1205
+ elm[memberName] = value;
1206
+ }
1207
+ });
1208
+ }
1209
+ {
1210
+ initializeComponent(elm, hostRef, cmpMeta);
1211
+ }
1212
+ } else {
1213
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1214
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1215
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
1216
+ }
1217
+ }
1218
+ endConnected();
1219
+ }
1220
+ };
1221
+ var disconnectInstance = (instance) => {
1222
+ {
1223
+ safeCall(instance, "disconnectedCallback");
1224
+ }
1225
+ };
1226
+ var disconnectedCallback = async (elm) => {
1227
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1228
+ const hostRef = getHostRef(elm);
1229
+ {
1230
+ if (hostRef.$rmListeners$) {
1231
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
1232
+ hostRef.$rmListeners$ = void 0;
1233
+ }
1234
+ }
1235
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1236
+ disconnectInstance(hostRef.$lazyInstance$);
1237
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1238
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1239
+ }
1240
+ }
1241
+ };
1242
+
1243
+ // src/runtime/bootstrap-lazy.ts
1244
+ var bootstrapLazy = (lazyBundles, options = {}) => {
1245
+ var _a;
1246
+ const endBootstrap = createTime();
1247
+ const cmpTags = [];
1248
+ const exclude = options.exclude || [];
1249
+ const customElements2 = win.customElements;
1250
+ const head = doc.head;
1251
+ const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
1252
+ const dataStyles = /* @__PURE__ */ doc.createElement("style");
1253
+ const deferredConnectedCallbacks = [];
1254
+ let appLoadFallback;
1255
+ let isBootstrapping = true;
1256
+ Object.assign(plt, options);
1257
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
1258
+ let hasSlotRelocation = false;
1259
+ lazyBundles.map((lazyBundle) => {
1260
+ lazyBundle[1].map((compactMeta) => {
1261
+ var _a2;
1262
+ const cmpMeta = {
1263
+ $flags$: compactMeta[0],
1264
+ $tagName$: compactMeta[1],
1265
+ $members$: compactMeta[2],
1266
+ $listeners$: compactMeta[3]
1267
+ };
1268
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1269
+ hasSlotRelocation = true;
1270
+ }
1271
+ {
1272
+ cmpMeta.$members$ = compactMeta[2];
1273
+ }
1274
+ {
1275
+ cmpMeta.$listeners$ = compactMeta[3];
1276
+ }
1277
+ {
1278
+ cmpMeta.$attrsToReflect$ = [];
1279
+ }
1280
+ {
1281
+ cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1282
+ }
1283
+ const tagName = cmpMeta.$tagName$;
1284
+ const HostElement = class extends HTMLElement {
1285
+ // StencilLazyHost
1286
+ constructor(self) {
1287
+ super(self);
1288
+ this.hasRegisteredEventListeners = false;
1289
+ self = this;
1290
+ registerHost(self, cmpMeta);
1291
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1292
+ {
1293
+ if (!self.shadowRoot) {
1294
+ {
1295
+ self.attachShadow({ mode: "open" });
1296
+ }
1297
+ } else {
1298
+ if (self.shadowRoot.mode !== "open") {
1299
+ throw new Error(
1300
+ `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
1301
+ );
1302
+ }
1303
+ }
1304
+ }
1305
+ }
1306
+ }
1307
+ connectedCallback() {
1308
+ const hostRef = getHostRef(this);
1309
+ if (!this.hasRegisteredEventListeners) {
1310
+ this.hasRegisteredEventListeners = true;
1311
+ addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
1312
+ }
1313
+ if (appLoadFallback) {
1314
+ clearTimeout(appLoadFallback);
1315
+ appLoadFallback = null;
1316
+ }
1317
+ if (isBootstrapping) {
1318
+ deferredConnectedCallbacks.push(this);
1319
+ } else {
1320
+ plt.jmp(() => connectedCallback(this));
1321
+ }
1322
+ }
1323
+ disconnectedCallback() {
1324
+ plt.jmp(() => disconnectedCallback(this));
1325
+ }
1326
+ componentOnReady() {
1327
+ return getHostRef(this).$onReadyPromise$;
1328
+ }
1329
+ };
1330
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
1331
+ if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
1332
+ cmpTags.push(tagName);
1333
+ customElements2.define(
1334
+ tagName,
1335
+ proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
1336
+ );
1337
+ }
1338
+ });
1339
+ });
1340
+ if (cmpTags.length > 0) {
1341
+ if (hasSlotRelocation) {
1342
+ dataStyles.textContent += SLOT_FB_CSS;
1343
+ }
1344
+ {
1345
+ dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
1346
+ }
1347
+ if (dataStyles.innerHTML.length) {
1348
+ dataStyles.setAttribute("data-styles", "");
1349
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
1350
+ if (nonce != null) {
1351
+ dataStyles.setAttribute("nonce", nonce);
1352
+ }
1353
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1354
+ }
1355
+ }
1356
+ isBootstrapping = false;
1357
+ if (deferredConnectedCallbacks.length) {
1358
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
1359
+ } else {
1360
+ {
1361
+ plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
1362
+ }
1363
+ }
1364
+ endBootstrap();
1365
+ };
1366
+
1367
+ // src/runtime/fragment.ts
1368
+ var Fragment = (_, children) => children;
1369
+ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
1370
+ if (listeners) {
1371
+ listeners.map(([flags, name, method]) => {
1372
+ const target = getHostListenerTarget(elm, flags) ;
1373
+ const handler = hostListenerProxy(hostRef, method);
1374
+ const opts = hostListenerOpts(flags);
1375
+ plt.ael(target, name, handler, opts);
1376
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
1377
+ });
1378
+ }
1379
+ };
1380
+ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1381
+ var _a;
1382
+ try {
1383
+ {
1384
+ if (hostRef.$flags$ & 256 /* isListenReady */) {
1385
+ (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
1386
+ } else {
1387
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
1388
+ }
1389
+ }
1390
+ } catch (e) {
1391
+ consoleError(e);
1392
+ }
1393
+ };
1394
+ var getHostListenerTarget = (elm, flags) => {
1395
+ if (flags & 8 /* TargetWindow */) return win;
1396
+ return elm;
1397
+ };
1398
+ var hostListenerOpts = (flags) => supportsListenerOptions ? {
1399
+ passive: (flags & 1 /* Passive */) !== 0,
1400
+ capture: (flags & 2 /* Capture */) !== 0
1401
+ } : (flags & 2 /* Capture */) !== 0;
1402
+
1403
+ // src/runtime/nonce.ts
1404
+ var setNonce = (nonce) => plt.$nonce$ = nonce;
1405
+
1406
+ export { Fragment as F, Host as H, bootstrapLazy as b, createEvent as c, forceUpdate as f, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1407
+
1408
+ //# sourceMappingURL=index-91db3414.js.map