@dropi/ui 0.1.51 → 0.1.53

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 (716) hide show
  1. package/dist/cjs/dropi-accordion-item.cjs.entry.js +2 -2
  2. package/dist/cjs/dropi-accordion.cjs.entry.js +2 -2
  3. package/dist/cjs/dropi-alert-legacy.cjs.entry.js +2 -2
  4. package/dist/cjs/dropi-alert-modal.cjs.entry.js +4 -14
  5. package/dist/cjs/dropi-alert.cjs.entry.js +2 -2
  6. package/dist/cjs/dropi-avatars.cjs.entry.js +2 -2
  7. package/dist/cjs/dropi-badge-legacy.cjs.entry.js +2 -2
  8. package/dist/cjs/dropi-badge.cjs.entry.js +2 -2
  9. package/dist/cjs/dropi-banner-external.cjs.entry.js +2 -2
  10. package/dist/cjs/dropi-breadcrumb.cjs.entry.js +2 -2
  11. package/dist/cjs/dropi-button.cjs.entry.js +2 -2
  12. package/dist/cjs/dropi-card-checkbox.cjs.entry.js +2 -2
  13. package/dist/cjs/dropi-card-product.cjs.entry.js +2 -2
  14. package/dist/cjs/dropi-card-section.cjs.entry.js +2 -2
  15. package/dist/cjs/dropi-carousel.cjs.entry.js +2 -2
  16. package/dist/cjs/dropi-checkbox-selection-list.cjs.entry.js +2 -2
  17. package/dist/cjs/dropi-checkbox.cjs.entry.js +2 -2
  18. package/dist/cjs/dropi-chips.cjs.entry.js +2 -2
  19. package/dist/cjs/dropi-city-selector.cjs.entry.js +2 -2
  20. package/dist/cjs/dropi-color-picker.cjs.entry.js +2 -2
  21. package/dist/cjs/dropi-country-flags.cjs.entry.js +2 -2
  22. package/dist/cjs/dropi-country-selector.cjs.entry.js +2 -2
  23. package/dist/cjs/dropi-date-picker-range.cjs.entry.js +93 -21
  24. package/dist/cjs/dropi-date-picker.cjs.entry.js +141 -56
  25. package/dist/cjs/dropi-drawer.cjs.entry.js +4 -4
  26. package/dist/cjs/dropi-dropdown.cjs.entry.js +2 -2
  27. package/dist/cjs/dropi-empty-state.cjs.entry.js +3 -3
  28. package/dist/cjs/dropi-favorite-button.cjs.entry.js +3 -3
  29. package/dist/cjs/dropi-file-upload-progress-bar.cjs.entry.js +3 -3
  30. package/dist/cjs/dropi-file-upload.cjs.entry.js +3 -3
  31. package/dist/cjs/dropi-icon.cjs.entry.js +2 -2
  32. package/dist/cjs/dropi-ilustration-icon.cjs.entry.js +2 -2
  33. package/dist/cjs/dropi-image-miniature.cjs.entry.js +3 -3
  34. package/dist/cjs/dropi-image-overlay.cjs.entry.js +2 -2
  35. package/dist/cjs/dropi-input_3.cjs.entry.js +6 -6
  36. package/dist/cjs/dropi-languages-selector.cjs.entry.js +2 -2
  37. package/dist/cjs/dropi-logo.cjs.entry.js +3 -3
  38. package/dist/cjs/dropi-lottie-loader.cjs.entry.js +2 -2
  39. package/dist/cjs/dropi-media-player.cjs.entry.js +2 -2
  40. package/dist/cjs/dropi-modal.cjs.entry.js +2 -2
  41. package/dist/cjs/dropi-navbar.cjs.entry.js +4 -4
  42. package/dist/cjs/dropi-otp-send-code.cjs.entry.js +4 -4
  43. package/dist/cjs/dropi-phone-input.cjs.entry.js +4 -4
  44. package/dist/cjs/dropi-progress-bar.cjs.entry.js +3 -3
  45. package/dist/cjs/dropi-radio-button.cjs.entry.js +3 -3
  46. package/dist/cjs/dropi-radio-selection-list.cjs.entry.js +2 -2
  47. package/dist/cjs/dropi-read-more.cjs.entry.js +3 -3
  48. package/dist/cjs/dropi-search.cjs.entry.js +2 -2
  49. package/dist/cjs/dropi-select.cjs.entry.js +3 -3
  50. package/dist/cjs/dropi-sidebar.cjs.entry.js +2 -2
  51. package/dist/cjs/dropi-simple-stepper.cjs.entry.js +2 -2
  52. package/dist/cjs/dropi-skeleton.cjs.entry.js +2 -2
  53. package/dist/cjs/dropi-steps.cjs.entry.js +13 -3
  54. package/dist/cjs/dropi-switch.cjs.entry.js +3 -3
  55. package/dist/cjs/dropi-table.cjs.entry.js +2 -2
  56. package/dist/cjs/dropi-tabs.cjs.entry.js +2 -2
  57. package/dist/cjs/dropi-tag-type-product.cjs.entry.js +3 -3
  58. package/dist/cjs/dropi-text-area.cjs.entry.js +2 -2
  59. package/dist/cjs/dropi-time-line.cjs.entry.js +2 -2
  60. package/dist/cjs/dropi-toast.cjs.entry.js +9 -11
  61. package/dist/cjs/dropi-tooltip-v2.cjs.entry.js +2 -2
  62. package/dist/cjs/dropi-tooltip.cjs.entry.js +3 -3
  63. package/dist/cjs/dropi-ui.cjs.js +2 -2
  64. package/dist/cjs/dropi-vertical-steps.cjs.entry.js +2 -2
  65. package/dist/cjs/dropi-youtube-lazy-video.cjs.entry.js +3 -3
  66. package/dist/cjs/index-eMp8lMK1.js +2809 -0
  67. package/dist/cjs/loader.cjs.js +2 -2
  68. package/dist/cjs/lottie-map.generated-BVDAlLPd.js +14 -0
  69. package/dist/collection/components/dropi-accordion/dropi-accordion-item.css +22 -7
  70. package/dist/collection/components/dropi-accordion/dropi-accordion.css +2 -1
  71. package/dist/collection/components/dropi-alert/dropi-alert.css +2 -1
  72. package/dist/collection/components/dropi-alert-legacy/dropi-alert-legacy.css +1 -0
  73. package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.css +1 -0
  74. package/dist/collection/components/dropi-avatars/dropi-avatars.css +1 -0
  75. package/dist/collection/components/dropi-badge/dropi-badge.css +1 -0
  76. package/dist/collection/components/dropi-badge-legacy/dropi-badge-legacy.css +1 -0
  77. package/dist/collection/components/dropi-banner-external/dropi-banner-external.css +1 -0
  78. package/dist/collection/components/dropi-breadcrumb/dropi-breadcrumb.css +1 -0
  79. package/dist/collection/components/dropi-button/dropi-button.css +2 -0
  80. package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.css +1 -0
  81. package/dist/collection/components/dropi-card-product/dropi-card-product.css +9 -8
  82. package/dist/collection/components/dropi-card-section/dropi-card-section.css +2 -1
  83. package/dist/collection/components/dropi-carousel/dropi-carousel.css +1 -0
  84. package/dist/collection/components/dropi-checkbox/dropi-checkbox.css +1 -0
  85. package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.css +2 -1
  86. package/dist/collection/components/dropi-chips/dropi-chips.css +2 -1
  87. package/dist/collection/components/dropi-city-selector/dropi-city-selector.css +4 -3
  88. package/dist/collection/components/dropi-color-picker/dropi-color-picker.css +1 -0
  89. package/dist/collection/components/dropi-country-flags/dropi-country-flags.css +1 -0
  90. package/dist/collection/components/dropi-country-selector/dropi-country-selector.css +5 -4
  91. package/dist/collection/components/dropi-date-picker/dropi-date-picker.css +122 -74
  92. package/dist/collection/components/dropi-date-picker/dropi-date-picker.js +169 -62
  93. package/dist/collection/components/dropi-date-picker-range/dropi-date-picker-range.css +64 -7
  94. package/dist/collection/components/dropi-date-picker-range/dropi-date-picker-range.js +96 -23
  95. package/dist/collection/components/dropi-drawer/dropi-drawer.css +2 -1
  96. package/dist/collection/components/dropi-drawer/dropi-drawer.js +2 -2
  97. package/dist/collection/components/dropi-dropdown/dropi-dropdown.css +1 -0
  98. package/dist/collection/components/dropi-empty-state/dropi-empty-state.css +1 -0
  99. package/dist/collection/components/dropi-empty-state/dropi-empty-state.js +1 -1
  100. package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.css +1 -0
  101. package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.js +1 -1
  102. package/dist/collection/components/dropi-file-upload/dropi-file-upload.css +1 -0
  103. package/dist/collection/components/dropi-file-upload/dropi-file-upload.js +1 -1
  104. package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.css +1 -0
  105. package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.js +1 -1
  106. package/dist/collection/components/dropi-icon/dropi-icon.css +1 -0
  107. package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.css +1 -0
  108. package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.css +2 -1
  109. package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.js +1 -1
  110. package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.css +2 -1
  111. package/dist/collection/components/dropi-input/dropi-input.css +2 -1
  112. package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.css +2 -1
  113. package/dist/collection/components/dropi-logo/dropi-logo.css +1 -0
  114. package/dist/collection/components/dropi-logo/dropi-logo.js +1 -1
  115. package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.css +1 -0
  116. package/dist/collection/components/dropi-media-player/dropi-media-player.css +4 -3
  117. package/dist/collection/components/dropi-modal/dropi-modal.css +2 -1
  118. package/dist/collection/components/dropi-navbar/dropi-navbar.css +3 -2
  119. package/dist/collection/components/dropi-navbar/dropi-navbar.js +2 -2
  120. package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.css +2 -1
  121. package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.js +2 -2
  122. package/dist/collection/components/dropi-paginator/dropi-paginator.css +3 -2
  123. package/dist/collection/components/dropi-paginator/dropi-paginator.js +2 -2
  124. package/dist/collection/components/dropi-phone-input/dropi-phone-input.css +5 -4
  125. package/dist/collection/components/dropi-phone-input/dropi-phone-input.js +2 -2
  126. package/dist/collection/components/dropi-progress-bar/dropi-progress-bar.css +1 -0
  127. package/dist/collection/components/dropi-progress-bar/dropi-progress-bar.js +1 -1
  128. package/dist/collection/components/dropi-radio-button/dropi-radio-button.css +1 -0
  129. package/dist/collection/components/dropi-radio-button/dropi-radio-button.js +1 -1
  130. package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.css +2 -1
  131. package/dist/collection/components/dropi-read-more/dropi-read-more.css +3 -2
  132. package/dist/collection/components/dropi-read-more/dropi-read-more.js +1 -1
  133. package/dist/collection/components/dropi-search/dropi-search.css +2 -1
  134. package/dist/collection/components/dropi-select/dropi-select.css +4 -3
  135. package/dist/collection/components/dropi-select/dropi-select.js +1 -1
  136. package/dist/collection/components/dropi-sidebar/dropi-sidebar.css +1 -0
  137. package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.css +1 -0
  138. package/dist/collection/components/dropi-skeleton/dropi-skeleton.css +1 -0
  139. package/dist/collection/components/dropi-steps/dropi-steps.css +52 -35
  140. package/dist/collection/components/dropi-steps/dropi-steps.js +11 -1
  141. package/dist/collection/components/dropi-switch/dropi-switch.css +1 -0
  142. package/dist/collection/components/dropi-switch/dropi-switch.js +1 -1
  143. package/dist/collection/components/dropi-table/dropi-table.css +2 -1
  144. package/dist/collection/components/dropi-tabs/dropi-tabs.css +2 -1
  145. package/dist/collection/components/dropi-tag/dropi-tag.css +1 -0
  146. package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.css +1 -0
  147. package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.js +1 -1
  148. package/dist/collection/components/dropi-text-area/dropi-text-area.css +2 -1
  149. package/dist/collection/components/dropi-time-line/dropi-time-line.css +1 -0
  150. package/dist/collection/components/dropi-toast/dropi-toast.css +40 -49
  151. package/dist/collection/components/dropi-toast/dropi-toast.js +7 -10
  152. package/dist/collection/components/dropi-tooltip/dropi-tooltip.css +1 -0
  153. package/dist/collection/components/dropi-tooltip/dropi-tooltip.js +1 -1
  154. package/dist/collection/components/dropi-tooltip-v2/dropi-tooltip.css +1 -0
  155. package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.css +1 -0
  156. package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.css +1 -0
  157. package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.js +1 -1
  158. package/dist/components/dropi-accordion-item.js +1 -1
  159. package/dist/components/dropi-accordion.js +1 -1
  160. package/dist/components/dropi-alert-legacy.js +1 -1
  161. package/dist/components/dropi-alert-modal.js +1 -1
  162. package/dist/components/dropi-alert.js +1 -1
  163. package/dist/components/dropi-avatars.js +1 -1
  164. package/dist/components/dropi-badge-legacy.js +1 -1
  165. package/dist/components/dropi-badge.js +1 -1
  166. package/dist/components/dropi-banner-external.js +1 -1
  167. package/dist/components/dropi-breadcrumb.js +1 -1
  168. package/dist/components/dropi-button.js +1 -1
  169. package/dist/components/dropi-card-checkbox.js +1 -1
  170. package/dist/components/dropi-card-product.js +1 -1
  171. package/dist/components/dropi-card-section.js +1 -1
  172. package/dist/components/dropi-carousel.js +1 -1
  173. package/dist/components/dropi-checkbox-selection-list.js +1 -1
  174. package/dist/components/dropi-checkbox.js +1 -1
  175. package/dist/components/dropi-chips.js +1 -1
  176. package/dist/components/dropi-city-selector.js +1 -1
  177. package/dist/components/dropi-color-picker.js +1 -1
  178. package/dist/components/dropi-country-flags.js +1 -1
  179. package/dist/components/dropi-country-selector.js +1 -1
  180. package/dist/components/dropi-date-picker-range.js +1 -1
  181. package/dist/components/dropi-date-picker.js +1 -1
  182. package/dist/components/dropi-drawer.js +1 -1
  183. package/dist/components/dropi-dropdown.js +1 -1
  184. package/dist/components/dropi-empty-state.js +1 -1
  185. package/dist/components/dropi-favorite-button.js +1 -1
  186. package/dist/components/dropi-file-upload-progress-bar.js +1 -1
  187. package/dist/components/dropi-file-upload.js +1 -1
  188. package/dist/components/dropi-icon.js +1 -1
  189. package/dist/components/dropi-ilustration-icon.js +1 -1
  190. package/dist/components/dropi-image-miniature.js +1 -1
  191. package/dist/components/dropi-image-overlay.js +1 -1
  192. package/dist/components/dropi-input.js +1 -1
  193. package/dist/components/dropi-languages-selector.js +1 -1
  194. package/dist/components/dropi-logo.js +1 -1
  195. package/dist/components/dropi-lottie-loader.js +1 -1
  196. package/dist/components/dropi-media-player.js +1 -1
  197. package/dist/components/dropi-modal.js +1 -1
  198. package/dist/components/dropi-navbar.js +1 -1
  199. package/dist/components/dropi-otp-send-code.js +1 -1
  200. package/dist/components/dropi-paginator.js +1 -1
  201. package/dist/components/dropi-phone-input.js +1 -1
  202. package/dist/components/dropi-progress-bar.js +1 -1
  203. package/dist/components/dropi-radio-button.js +1 -1
  204. package/dist/components/dropi-radio-selection-list.js +1 -1
  205. package/dist/components/dropi-read-more.js +1 -1
  206. package/dist/components/dropi-search.js +1 -1
  207. package/dist/components/dropi-select.js +1 -1
  208. package/dist/components/dropi-sidebar.js +1 -1
  209. package/dist/components/dropi-simple-stepper.js +1 -1
  210. package/dist/components/dropi-skeleton.js +1 -1
  211. package/dist/components/dropi-steps.js +1 -1
  212. package/dist/components/dropi-switch.js +1 -1
  213. package/dist/components/dropi-table.js +1 -1
  214. package/dist/components/dropi-tabs.js +1 -1
  215. package/dist/components/dropi-tag-type-product.js +1 -1
  216. package/dist/components/dropi-tag.js +1 -1
  217. package/dist/components/dropi-text-area.js +1 -1
  218. package/dist/components/dropi-time-line.js +1 -1
  219. package/dist/components/dropi-toast.js +1 -1
  220. package/dist/components/dropi-tooltip-v2.js +1 -1
  221. package/dist/components/dropi-tooltip.js +1 -1
  222. package/dist/components/dropi-vertical-steps.js +1 -1
  223. package/dist/components/dropi-youtube-lazy-video.js +1 -1
  224. package/dist/components/index.js +1 -1
  225. package/dist/components/p-34gP610W.js +1 -0
  226. package/dist/components/p-3AT7ASH9.js +1 -0
  227. package/dist/components/p-B-1G8T4u.js +1 -0
  228. package/dist/components/p-BEs9gbju.js +1 -0
  229. package/dist/components/p-BGS_Fnts.js +1 -0
  230. package/dist/components/p-BKTe33ng.js +1 -0
  231. package/dist/components/p-BfQEGsBq.js +1 -0
  232. package/dist/components/p-BhQK2SnE.js +1 -0
  233. package/dist/components/p-BieZ2Zwa.js +1 -0
  234. package/dist/components/p-BjWB6xTy.js +1 -0
  235. package/dist/components/p-BtbO4Qj2.js +1 -0
  236. package/dist/components/p-ByEQybUd.js +1 -0
  237. package/dist/components/p-BzFB0tnJ.js +1 -0
  238. package/dist/components/p-Bzgg_L80.js +1 -0
  239. package/dist/components/p-CY_Pmg81.js +1 -0
  240. package/dist/components/p-Ccl4kD95.js +1 -0
  241. package/dist/components/p-ChU-v5Jl.js +1 -0
  242. package/dist/components/p-Ckpdx21D.js +1 -0
  243. package/dist/components/p-CmLj_aqH.js +1 -0
  244. package/dist/components/p-Cq3-SLWU.js +1 -0
  245. package/dist/components/p-CqTImUhL.js +1 -0
  246. package/dist/components/p-CrSepiFP.js +1 -0
  247. package/dist/components/p-D-KVcD87.js +1 -0
  248. package/dist/components/p-D76mTEoh.js +1 -0
  249. package/dist/components/p-DdM0zO53.js +1 -0
  250. package/dist/components/p-DgOazwmC.js +1 -0
  251. package/dist/components/p-EW_Hn93v.js +1 -0
  252. package/dist/components/p-StcKvTC_.js +1 -0
  253. package/dist/components/p-WAEYEj9V.js +1 -0
  254. package/dist/components/p-_ScZTnhj.js +1 -0
  255. package/dist/components/p-egLr0oVg.js +1 -0
  256. package/dist/components/p-eusoHxve.js +1 -0
  257. package/dist/components/p-fPJmM1qh.js +1 -0
  258. package/dist/components/p-u5UtrV7_.js +1 -0
  259. package/dist/docs.json +41 -12
  260. package/dist/dropi-ui/dropi-accordion-item.entry.js +3 -3
  261. package/dist/dropi-ui/dropi-accordion-item.entry.js.map +1 -1
  262. package/dist/dropi-ui/dropi-accordion.entry.js +3 -3
  263. package/dist/dropi-ui/dropi-accordion.entry.js.map +1 -1
  264. package/dist/dropi-ui/dropi-alert-legacy.entry.js +2 -2
  265. package/dist/dropi-ui/dropi-alert-legacy.entry.js.map +1 -1
  266. package/dist/dropi-ui/dropi-alert-modal.entry.js +6 -10
  267. package/dist/dropi-ui/dropi-alert-modal.entry.js.map +1 -1
  268. package/dist/dropi-ui/dropi-alert.entry.js +2 -2
  269. package/dist/dropi-ui/dropi-alert.entry.js.map +1 -1
  270. package/dist/dropi-ui/dropi-avatars.entry.js +3 -3
  271. package/dist/dropi-ui/dropi-avatars.entry.js.map +1 -1
  272. package/dist/dropi-ui/dropi-badge-legacy.entry.js +3 -3
  273. package/dist/dropi-ui/dropi-badge-legacy.entry.js.map +1 -1
  274. package/dist/dropi-ui/dropi-badge.entry.js +3 -3
  275. package/dist/dropi-ui/dropi-badge.entry.js.map +1 -1
  276. package/dist/dropi-ui/dropi-banner-external.entry.js +2 -2
  277. package/dist/dropi-ui/dropi-banner-external.entry.js.map +1 -1
  278. package/dist/dropi-ui/dropi-breadcrumb.entry.js +3 -3
  279. package/dist/dropi-ui/dropi-breadcrumb.entry.js.map +1 -1
  280. package/dist/dropi-ui/dropi-button.entry.js +4 -4
  281. package/dist/dropi-ui/dropi-button.entry.js.map +1 -1
  282. package/dist/dropi-ui/dropi-card-checkbox.entry.js +4 -4
  283. package/dist/dropi-ui/dropi-card-checkbox.entry.js.map +1 -1
  284. package/dist/dropi-ui/dropi-card-product.entry.js +6 -6
  285. package/dist/dropi-ui/dropi-card-product.entry.js.map +1 -1
  286. package/dist/dropi-ui/dropi-card-section.entry.js +4 -4
  287. package/dist/dropi-ui/dropi-card-section.entry.js.map +1 -1
  288. package/dist/dropi-ui/dropi-carousel.entry.js +2 -2
  289. package/dist/dropi-ui/dropi-carousel.entry.js.map +1 -1
  290. package/dist/dropi-ui/dropi-checkbox-selection-list.entry.js +5 -5
  291. package/dist/dropi-ui/dropi-checkbox-selection-list.entry.js.map +1 -1
  292. package/dist/dropi-ui/dropi-checkbox.entry.js +5 -5
  293. package/dist/dropi-ui/dropi-checkbox.entry.js.map +1 -1
  294. package/dist/dropi-ui/dropi-chips.entry.js +3 -3
  295. package/dist/dropi-ui/dropi-chips.entry.js.map +1 -1
  296. package/dist/dropi-ui/dropi-city-selector.entry.js +3 -3
  297. package/dist/dropi-ui/dropi-city-selector.entry.js.map +1 -1
  298. package/dist/dropi-ui/dropi-color-picker.entry.js +4 -4
  299. package/dist/dropi-ui/dropi-color-picker.entry.js.map +1 -1
  300. package/dist/dropi-ui/dropi-country-flags.entry.js +3 -3
  301. package/dist/dropi-ui/dropi-country-flags.entry.js.map +1 -1
  302. package/dist/dropi-ui/dropi-country-selector.entry.js +5 -5
  303. package/dist/dropi-ui/dropi-country-selector.entry.js.map +1 -1
  304. package/dist/dropi-ui/dropi-date-picker-range.entry.js +211 -32
  305. package/dist/dropi-ui/dropi-date-picker-range.entry.js.map +1 -1
  306. package/dist/dropi-ui/dropi-date-picker.entry.js +142 -57
  307. package/dist/dropi-ui/dropi-date-picker.entry.js.map +1 -1
  308. package/dist/dropi-ui/dropi-drawer.entry.js +4 -4
  309. package/dist/dropi-ui/dropi-drawer.entry.js.map +1 -1
  310. package/dist/dropi-ui/dropi-dropdown.entry.js +4 -4
  311. package/dist/dropi-ui/dropi-dropdown.entry.js.map +1 -1
  312. package/dist/dropi-ui/dropi-empty-state.entry.js +89 -12
  313. package/dist/dropi-ui/dropi-empty-state.entry.js.map +1 -1
  314. package/dist/dropi-ui/dropi-favorite-button.entry.js +3 -3
  315. package/dist/dropi-ui/dropi-favorite-button.entry.js.map +1 -1
  316. package/dist/dropi-ui/dropi-file-upload-progress-bar.entry.js +3 -3
  317. package/dist/dropi-ui/dropi-file-upload-progress-bar.entry.js.map +1 -1
  318. package/dist/dropi-ui/dropi-file-upload.entry.js +3 -3
  319. package/dist/dropi-ui/dropi-file-upload.entry.js.map +1 -1
  320. package/dist/dropi-ui/dropi-icon.entry.js +296 -25
  321. package/dist/dropi-ui/dropi-icon.entry.js.map +1 -1
  322. package/dist/dropi-ui/dropi-ilustration-icon.entry.js +8 -6
  323. package/dist/dropi-ui/dropi-ilustration-icon.entry.js.map +1 -1
  324. package/dist/dropi-ui/dropi-image-miniature.entry.js +3 -3
  325. package/dist/dropi-ui/dropi-image-miniature.entry.js.map +1 -1
  326. package/dist/dropi-ui/dropi-image-overlay.entry.js +2 -2
  327. package/dist/dropi-ui/dropi-image-overlay.entry.js.map +1 -1
  328. package/dist/dropi-ui/dropi-input.entry.js +9 -7
  329. package/dist/dropi-ui/dropi-input.entry.js.map +1 -1
  330. package/dist/dropi-ui/dropi-languages-selector.entry.js +2 -2
  331. package/dist/dropi-ui/dropi-languages-selector.entry.js.map +1 -1
  332. package/dist/dropi-ui/dropi-logo.entry.js +3 -3
  333. package/dist/dropi-ui/dropi-logo.entry.js.map +1 -1
  334. package/dist/dropi-ui/dropi-lottie-loader.entry.js +3 -3
  335. package/dist/dropi-ui/dropi-lottie-loader.entry.js.map +1 -1
  336. package/dist/dropi-ui/dropi-media-player.entry.js +2 -2
  337. package/dist/dropi-ui/dropi-media-player.entry.js.map +1 -1
  338. package/dist/dropi-ui/dropi-modal.entry.js +3 -3
  339. package/dist/dropi-ui/dropi-modal.entry.js.map +1 -1
  340. package/dist/dropi-ui/dropi-navbar.entry.js +4 -4
  341. package/dist/dropi-ui/dropi-navbar.entry.js.map +1 -1
  342. package/dist/dropi-ui/dropi-otp-send-code.entry.js +15 -5
  343. package/dist/dropi-ui/dropi-otp-send-code.entry.js.map +1 -1
  344. package/dist/dropi-ui/dropi-paginator.entry.js +4 -4
  345. package/dist/dropi-ui/dropi-paginator.entry.js.map +1 -1
  346. package/dist/dropi-ui/dropi-phone-input.entry.js +5 -5
  347. package/dist/dropi-ui/dropi-phone-input.entry.js.map +1 -1
  348. package/dist/dropi-ui/dropi-progress-bar.entry.js +3 -3
  349. package/dist/dropi-ui/dropi-progress-bar.entry.js.map +1 -1
  350. package/dist/dropi-ui/dropi-radio-button.entry.js +5 -5
  351. package/dist/dropi-ui/dropi-radio-button.entry.js.map +1 -1
  352. package/dist/dropi-ui/dropi-radio-selection-list.entry.js +4 -4
  353. package/dist/dropi-ui/dropi-radio-selection-list.entry.js.map +1 -1
  354. package/dist/dropi-ui/dropi-read-more.entry.js +3 -3
  355. package/dist/dropi-ui/dropi-read-more.entry.js.map +1 -1
  356. package/dist/dropi-ui/dropi-search.entry.js +4 -4
  357. package/dist/dropi-ui/dropi-search.entry.js.map +1 -1
  358. package/dist/dropi-ui/dropi-select.entry.js +4 -4
  359. package/dist/dropi-ui/dropi-select.entry.js.map +1 -1
  360. package/dist/dropi-ui/dropi-sidebar.entry.js +3 -3
  361. package/dist/dropi-ui/dropi-sidebar.entry.js.map +1 -1
  362. package/dist/dropi-ui/dropi-simple-stepper.entry.js +3 -3
  363. package/dist/dropi-ui/dropi-simple-stepper.entry.js.map +1 -1
  364. package/dist/dropi-ui/dropi-skeleton.entry.js +2 -2
  365. package/dist/dropi-ui/dropi-skeleton.entry.js.map +1 -1
  366. package/dist/dropi-ui/dropi-steps.entry.js +14 -4
  367. package/dist/dropi-ui/dropi-steps.entry.js.map +1 -1
  368. package/dist/dropi-ui/dropi-switch.entry.js +4 -4
  369. package/dist/dropi-ui/dropi-switch.entry.js.map +1 -1
  370. package/dist/dropi-ui/dropi-table.entry.js +5 -5
  371. package/dist/dropi-ui/dropi-table.entry.js.map +1 -1
  372. package/dist/dropi-ui/dropi-tabs.entry.js +3 -3
  373. package/dist/dropi-ui/dropi-tabs.entry.js.map +1 -1
  374. package/dist/dropi-ui/dropi-tag-type-product.entry.js +3 -3
  375. package/dist/dropi-ui/dropi-tag-type-product.entry.js.map +1 -1
  376. package/dist/dropi-ui/dropi-tag.entry.js +4 -4
  377. package/dist/dropi-ui/dropi-tag.entry.js.map +1 -1
  378. package/dist/dropi-ui/dropi-text-area.entry.js +9 -9
  379. package/dist/dropi-ui/dropi-text-area.entry.js.map +1 -1
  380. package/dist/dropi-ui/dropi-time-line.entry.js +3 -3
  381. package/dist/dropi-ui/dropi-time-line.entry.js.map +1 -1
  382. package/dist/dropi-ui/dropi-toast.entry.js +9 -11
  383. package/dist/dropi-ui/dropi-toast.entry.js.map +1 -1
  384. package/dist/dropi-ui/dropi-tooltip-v2.entry.js +4 -4
  385. package/dist/dropi-ui/dropi-tooltip-v2.entry.js.map +1 -1
  386. package/dist/dropi-ui/dropi-tooltip.entry.js +3 -3
  387. package/dist/dropi-ui/dropi-tooltip.entry.js.map +1 -1
  388. package/dist/dropi-ui/dropi-ui.css +1 -1
  389. package/dist/dropi-ui/dropi-ui.esm.js +50 -1
  390. package/dist/dropi-ui/dropi-ui.esm.js.map +1 -1
  391. package/dist/dropi-ui/dropi-vertical-steps.entry.js +3 -3
  392. package/dist/dropi-ui/dropi-vertical-steps.entry.js.map +1 -1
  393. package/dist/dropi-ui/dropi-youtube-lazy-video.entry.js +3 -3
  394. package/dist/dropi-ui/dropi-youtube-lazy-video.entry.js.map +1 -1
  395. package/dist/dropi-ui/index-BKkSRXlb.js +4625 -0
  396. package/dist/dropi-ui/index-BKkSRXlb.js.map +1 -0
  397. package/dist/dropi-ui/index-CPacpXAJ.js +4625 -0
  398. package/dist/dropi-ui/index-CPacpXAJ.js.map +1 -0
  399. package/dist/dropi-ui/index-DrzVsORR.js +4625 -0
  400. package/dist/dropi-ui/index-DrzVsORR.js.map +1 -0
  401. package/dist/dropi-ui/lottie-map.generated-BEs9gbju.js +15 -0
  402. package/dist/dropi-ui/lottie-map.generated-BEs9gbju.js.map +1 -0
  403. package/dist/dropi-ui/p-01027049.entry.js +1 -0
  404. package/dist/dropi-ui/p-0190a96b.entry.js +1 -0
  405. package/dist/dropi-ui/p-02172dc2.entry.js +1 -0
  406. package/dist/dropi-ui/p-021f55e5.entry.js +1 -0
  407. package/dist/dropi-ui/p-02e0f8cc.entry.js +1 -0
  408. package/dist/dropi-ui/p-0393dfc9.entry.js +1 -0
  409. package/dist/dropi-ui/p-0551c30a.entry.js +1 -0
  410. package/dist/dropi-ui/p-05541247.entry.js +1 -0
  411. package/dist/dropi-ui/p-07cc280c.entry.js +1 -0
  412. package/dist/dropi-ui/p-090817e4.entry.js +1 -0
  413. package/dist/dropi-ui/p-094ab555.entry.js +1 -0
  414. package/dist/dropi-ui/p-0d3cabe9.entry.js +1 -0
  415. package/dist/dropi-ui/p-0d8ff50d.entry.js +1 -0
  416. package/dist/dropi-ui/p-0ee1edcd.entry.js +1 -0
  417. package/dist/dropi-ui/p-0f20c87c.entry.js +1 -0
  418. package/dist/dropi-ui/p-0fefc0c8.entry.js +1 -0
  419. package/dist/dropi-ui/p-113516f7.entry.js +1 -0
  420. package/dist/dropi-ui/p-11833072.entry.js +1 -0
  421. package/dist/dropi-ui/p-119a353b.entry.js +1 -0
  422. package/dist/dropi-ui/p-13ae29ad.entry.js +1 -0
  423. package/dist/dropi-ui/p-13e1c3a4.entry.js +1 -0
  424. package/dist/dropi-ui/p-14124aee.entry.js +1 -0
  425. package/dist/dropi-ui/p-149c92ba.entry.js +1 -0
  426. package/dist/dropi-ui/p-1633c2df.entry.js +1 -0
  427. package/dist/dropi-ui/p-16d0400d.entry.js +1 -0
  428. package/dist/dropi-ui/p-17133bc1.entry.js +1 -0
  429. package/dist/dropi-ui/p-181b2d76.entry.js +1 -0
  430. package/dist/dropi-ui/p-184442f6.entry.js +1 -0
  431. package/dist/dropi-ui/p-1901806b.entry.js +1 -0
  432. package/dist/dropi-ui/p-1976985d.entry.js +1 -0
  433. package/dist/dropi-ui/p-1a222047.entry.js +1 -0
  434. package/dist/dropi-ui/p-1a874d9f.entry.js +1 -0
  435. package/dist/dropi-ui/p-1cc30188.entry.js +1 -0
  436. package/dist/dropi-ui/p-2076bc28.entry.js +1 -0
  437. package/dist/dropi-ui/p-24e17d9c.entry.js +1 -0
  438. package/dist/dropi-ui/p-267fda26.entry.js +1 -0
  439. package/dist/dropi-ui/p-26c997a4.entry.js +1 -0
  440. package/dist/dropi-ui/p-27d5b554.entry.js +1 -0
  441. package/dist/dropi-ui/p-280c5731.entry.js +1 -0
  442. package/dist/dropi-ui/p-287a3a81.entry.js +1 -0
  443. package/dist/dropi-ui/p-29a3389a.entry.js +1 -0
  444. package/dist/dropi-ui/p-29e4dacf.entry.js +1 -0
  445. package/dist/dropi-ui/p-2ad5dbd2.entry.js +1 -0
  446. package/dist/dropi-ui/p-2af47f62.entry.js +1 -0
  447. package/dist/dropi-ui/p-2d1a6f05.entry.js +1 -0
  448. package/dist/dropi-ui/p-2ed8b556.entry.js +1 -0
  449. package/dist/dropi-ui/p-2f6b96de.entry.js +1 -0
  450. package/dist/dropi-ui/p-32512758.entry.js +1 -0
  451. package/dist/dropi-ui/p-3277ea55.entry.js +1 -0
  452. package/dist/dropi-ui/p-32c71a16.entry.js +1 -0
  453. package/dist/dropi-ui/p-32f144b2.entry.js +1 -0
  454. package/dist/dropi-ui/p-34f2e28d.entry.js +1 -0
  455. package/dist/dropi-ui/p-356ab2c5.entry.js +1 -0
  456. package/dist/dropi-ui/p-3769ad78.entry.js +1 -0
  457. package/dist/dropi-ui/p-3843cba5.entry.js +1 -0
  458. package/dist/dropi-ui/p-3a9cd930.entry.js +1 -0
  459. package/dist/dropi-ui/p-3b1bb32e.entry.js +1 -0
  460. package/dist/dropi-ui/p-3b47c86f.entry.js +1 -0
  461. package/dist/dropi-ui/p-3b7060e1.entry.js +1 -0
  462. package/dist/dropi-ui/p-3f75523b.entry.js +1 -0
  463. package/dist/dropi-ui/p-40376329.entry.js +1 -0
  464. package/dist/dropi-ui/p-4158d4b7.entry.js +1 -0
  465. package/dist/dropi-ui/p-42854929.entry.js +1 -0
  466. package/dist/dropi-ui/p-436f196f.entry.js +1 -0
  467. package/dist/dropi-ui/p-4390c849.entry.js +1 -0
  468. package/dist/dropi-ui/p-440e6f67.entry.js +1 -0
  469. package/dist/dropi-ui/p-4432c17d.entry.js +1 -0
  470. package/dist/dropi-ui/p-46a1d393.entry.js +1 -0
  471. package/dist/dropi-ui/p-492b8a1f.entry.js +1 -0
  472. package/dist/dropi-ui/p-492f9d36.entry.js +1 -0
  473. package/dist/dropi-ui/p-496893e8.entry.js +1 -0
  474. package/dist/dropi-ui/p-49fb5900.entry.js +1 -0
  475. package/dist/dropi-ui/p-4a39e574.entry.js +1 -0
  476. package/dist/dropi-ui/p-4f0f060c.entry.js +1 -0
  477. package/dist/dropi-ui/p-4f4b4a39.entry.js +1 -0
  478. package/dist/dropi-ui/p-51a44cdc.entry.js +1 -0
  479. package/dist/dropi-ui/p-52e6a495.entry.js +1 -0
  480. package/dist/dropi-ui/p-5415ed33.entry.js +1 -0
  481. package/dist/dropi-ui/p-542d0b9c.entry.js +1 -0
  482. package/dist/dropi-ui/p-54d243db.entry.js +1 -0
  483. package/dist/dropi-ui/p-58093c18.entry.js +1 -0
  484. package/dist/dropi-ui/p-59caf3ac.entry.js +1 -0
  485. package/dist/dropi-ui/p-5bd0bb86.entry.js +1 -0
  486. package/dist/dropi-ui/p-5db953ba.entry.js +1 -0
  487. package/dist/dropi-ui/p-5e0b54e3.entry.js +1 -0
  488. package/dist/dropi-ui/p-6018f6a1.entry.js +1 -0
  489. package/dist/dropi-ui/p-63356807.entry.js +1 -0
  490. package/dist/dropi-ui/p-64dd3db0.entry.js +1 -0
  491. package/dist/dropi-ui/p-65e31926.entry.js +1 -0
  492. package/dist/dropi-ui/p-66595a21.entry.js +1 -0
  493. package/dist/dropi-ui/p-66cf3dbe.entry.js +1 -0
  494. package/dist/dropi-ui/p-6a6171ba.entry.js +1 -0
  495. package/dist/dropi-ui/p-6aaf5a93.entry.js +1 -0
  496. package/dist/dropi-ui/p-6d9b61a9.entry.js +1 -0
  497. package/dist/dropi-ui/p-6def424b.entry.js +1 -0
  498. package/dist/dropi-ui/p-6ea74d84.entry.js +1 -0
  499. package/dist/dropi-ui/p-6efa35f2.entry.js +1 -0
  500. package/dist/dropi-ui/p-70295204.entry.js +1 -0
  501. package/dist/dropi-ui/p-71ad00c8.entry.js +1 -0
  502. package/dist/dropi-ui/p-76651c16.entry.js +1 -0
  503. package/dist/dropi-ui/p-769929eb.entry.js +1 -0
  504. package/dist/dropi-ui/p-788b7388.entry.js +1 -0
  505. package/dist/dropi-ui/p-7a78e38d.entry.js +1 -0
  506. package/dist/dropi-ui/p-7a9628df.entry.js +1 -0
  507. package/dist/dropi-ui/p-7ac0c653.entry.js +1 -0
  508. package/dist/dropi-ui/p-7be214a0.entry.js +1 -0
  509. package/dist/dropi-ui/p-7cb27020.entry.js +1 -0
  510. package/dist/dropi-ui/p-7ce74f7f.entry.js +1 -0
  511. package/dist/dropi-ui/p-7d61faf2.entry.js +1 -0
  512. package/dist/dropi-ui/p-7e0783d3.entry.js +1 -0
  513. package/dist/dropi-ui/p-7f538bbf.entry.js +1 -0
  514. package/dist/dropi-ui/p-7f6f757b.entry.js +1 -0
  515. package/dist/dropi-ui/p-7f85578a.entry.js +1 -0
  516. package/dist/dropi-ui/p-7fd2db00.entry.js +1 -0
  517. package/dist/dropi-ui/p-8089116b.entry.js +1 -0
  518. package/dist/dropi-ui/p-80ebe1e0.entry.js +1 -0
  519. package/dist/dropi-ui/p-81e8b29e.entry.js +1 -0
  520. package/dist/dropi-ui/p-83fa5e18.entry.js +1 -0
  521. package/dist/dropi-ui/p-8465f52d.entry.js +1 -0
  522. package/dist/dropi-ui/p-870846af.entry.js +1 -0
  523. package/dist/dropi-ui/p-87167578.entry.js +1 -0
  524. package/dist/dropi-ui/p-8782862b.entry.js +1 -0
  525. package/dist/dropi-ui/p-879f79cf.entry.js +1 -0
  526. package/dist/dropi-ui/p-8ac5a31d.entry.js +1 -0
  527. package/dist/dropi-ui/p-8adb80a4.entry.js +1 -0
  528. package/dist/dropi-ui/p-8eb0ebff.entry.js +1 -0
  529. package/dist/dropi-ui/p-8feee3fd.entry.js +1 -0
  530. package/dist/dropi-ui/p-910af7cf.entry.js +1 -0
  531. package/dist/dropi-ui/p-92879d0d.entry.js +1 -0
  532. package/dist/dropi-ui/p-93cd9afe.entry.js +1 -0
  533. package/dist/dropi-ui/p-94ec77fc.entry.js +1 -0
  534. package/dist/dropi-ui/p-964ba5de.entry.js +1 -0
  535. package/dist/dropi-ui/p-97aa4446.entry.js +1 -0
  536. package/dist/dropi-ui/p-97b9fed2.entry.js +1 -0
  537. package/dist/dropi-ui/p-97de6718.entry.js +1 -0
  538. package/dist/dropi-ui/p-98156424.entry.js +1 -0
  539. package/dist/dropi-ui/p-992134d3.entry.js +1 -0
  540. package/dist/dropi-ui/p-998b016a.entry.js +1 -0
  541. package/dist/dropi-ui/p-99f48203.entry.js +1 -0
  542. package/dist/dropi-ui/p-9b6fe588.entry.js +1 -0
  543. package/dist/dropi-ui/p-9b7810f9.entry.js +1 -0
  544. package/dist/dropi-ui/p-9bfd53be.entry.js +1 -0
  545. package/dist/dropi-ui/p-9c9c6274.entry.js +1 -0
  546. package/dist/dropi-ui/p-BEs9gbju.js +1 -0
  547. package/dist/dropi-ui/p-CWoV_bQo.js +2 -0
  548. package/dist/dropi-ui/p-a0135272.entry.js +1 -0
  549. package/dist/dropi-ui/p-a0a87272.entry.js +1 -0
  550. package/dist/dropi-ui/p-a1471797.entry.js +1 -0
  551. package/dist/dropi-ui/p-a2b4ba6d.entry.js +1 -0
  552. package/dist/dropi-ui/p-a469a6d4.entry.js +1 -0
  553. package/dist/dropi-ui/p-a50e6592.entry.js +1 -0
  554. package/dist/dropi-ui/p-a5b3548c.entry.js +1 -0
  555. package/dist/dropi-ui/p-a5e4bd7a.entry.js +1 -0
  556. package/dist/dropi-ui/p-a6a73485.entry.js +1 -0
  557. package/dist/dropi-ui/p-a82ecdd5.entry.js +1 -0
  558. package/dist/dropi-ui/p-a91d8b2c.entry.js +1 -0
  559. package/dist/dropi-ui/p-a9682999.entry.js +1 -0
  560. package/dist/dropi-ui/p-aa63edd4.entry.js +1 -0
  561. package/dist/dropi-ui/p-aaeccf21.entry.js +1 -0
  562. package/dist/dropi-ui/p-ab9ec519.entry.js +1 -0
  563. package/dist/dropi-ui/p-ad1e0e62.entry.js +1 -0
  564. package/dist/dropi-ui/p-ad7ea336.entry.js +1 -0
  565. package/dist/dropi-ui/p-ae423d39.entry.js +1 -0
  566. package/dist/dropi-ui/p-aeaa39f6.entry.js +1 -0
  567. package/dist/dropi-ui/p-b063716d.entry.js +1 -0
  568. package/dist/dropi-ui/p-b0930601.entry.js +1 -0
  569. package/dist/dropi-ui/p-b2000dcb.entry.js +1 -0
  570. package/dist/dropi-ui/p-b2739793.entry.js +1 -0
  571. package/dist/dropi-ui/p-b4227dd5.entry.js +1 -0
  572. package/dist/dropi-ui/p-b4bcfc25.entry.js +1 -0
  573. package/dist/dropi-ui/p-b4e9dba6.entry.js +1 -0
  574. package/dist/dropi-ui/p-b66d88bf.entry.js +1 -0
  575. package/dist/dropi-ui/p-b7f9592b.entry.js +1 -0
  576. package/dist/dropi-ui/p-b801e55f.entry.js +1 -0
  577. package/dist/dropi-ui/p-b941ee31.entry.js +1 -0
  578. package/dist/dropi-ui/p-b94b7199.entry.js +1 -0
  579. package/dist/dropi-ui/p-ba87a663.entry.js +1 -0
  580. package/dist/dropi-ui/p-baaf86d8.entry.js +1 -0
  581. package/dist/dropi-ui/p-bb6b09b7.entry.js +1 -0
  582. package/dist/dropi-ui/p-bc5447d7.entry.js +1 -0
  583. package/dist/dropi-ui/p-bd2c7bbc.entry.js +1 -0
  584. package/dist/dropi-ui/p-beb4b2d7.entry.js +1 -0
  585. package/dist/dropi-ui/p-bf7f2bf6.entry.js +1 -0
  586. package/dist/dropi-ui/p-bfaac1cc.entry.js +1 -0
  587. package/dist/dropi-ui/p-c31dbf7d.entry.js +1 -0
  588. package/dist/dropi-ui/p-c424a77c.entry.js +1 -0
  589. package/dist/dropi-ui/p-c5c3b146.entry.js +1 -0
  590. package/dist/dropi-ui/p-c6c40748.entry.js +1 -0
  591. package/dist/dropi-ui/p-c6fd796c.entry.js +1 -0
  592. package/dist/dropi-ui/p-c7260931.entry.js +1 -0
  593. package/dist/dropi-ui/p-c72650a6.entry.js +1 -0
  594. package/dist/dropi-ui/p-ca5dbffd.entry.js +1 -0
  595. package/dist/dropi-ui/p-cb48cb42.entry.js +1 -0
  596. package/dist/dropi-ui/p-cc53f78b.entry.js +1 -0
  597. package/dist/dropi-ui/p-cd30d613.entry.js +1 -0
  598. package/dist/dropi-ui/p-d0e3de92.entry.js +1 -0
  599. package/dist/dropi-ui/p-d104c97d.entry.js +1 -0
  600. package/dist/dropi-ui/p-d136695a.entry.js +1 -0
  601. package/dist/dropi-ui/p-d286adf0.entry.js +1 -0
  602. package/dist/dropi-ui/p-d46058e1.entry.js +1 -0
  603. package/dist/dropi-ui/p-d65aeab2.entry.js +1 -0
  604. package/dist/dropi-ui/p-d6ab011e.entry.js +1 -0
  605. package/dist/dropi-ui/p-d7d7b98b.entry.js +1 -0
  606. package/dist/dropi-ui/p-d8c02ec8.entry.js +1 -0
  607. package/dist/dropi-ui/p-d93f31c2.entry.js +1 -0
  608. package/dist/dropi-ui/p-d9f7e521.entry.js +1 -0
  609. package/dist/dropi-ui/p-debe6fa2.entry.js +1 -0
  610. package/dist/dropi-ui/p-df89c528.entry.js +1 -0
  611. package/dist/dropi-ui/p-e0641dc8.entry.js +1 -0
  612. package/dist/dropi-ui/p-e07c21c8.entry.js +1 -0
  613. package/dist/dropi-ui/p-e0d43ef4.entry.js +1 -0
  614. package/dist/dropi-ui/p-e2413d09.entry.js +1 -0
  615. package/dist/dropi-ui/p-e3224f3e.entry.js +1 -0
  616. package/dist/dropi-ui/p-e3339048.entry.js +1 -0
  617. package/dist/dropi-ui/p-e67161f6.entry.js +1 -0
  618. package/dist/dropi-ui/p-e6f708e9.entry.js +1 -0
  619. package/dist/dropi-ui/p-e824d439.entry.js +1 -0
  620. package/dist/dropi-ui/p-e842be74.entry.js +1 -0
  621. package/dist/dropi-ui/p-ea15ac20.entry.js +1 -0
  622. package/dist/dropi-ui/p-eac3194d.entry.js +1 -0
  623. package/dist/dropi-ui/p-eb98ac81.entry.js +1 -0
  624. package/dist/dropi-ui/p-eed4f130.entry.js +1 -0
  625. package/dist/dropi-ui/p-f0362230.entry.js +1 -0
  626. package/dist/dropi-ui/p-f03f0bf3.entry.js +1 -0
  627. package/dist/dropi-ui/p-f1457004.entry.js +1 -0
  628. package/dist/dropi-ui/p-f18f8a8e.entry.js +1 -0
  629. package/dist/dropi-ui/p-f46d7df1.entry.js +1 -0
  630. package/dist/dropi-ui/p-f50b982c.entry.js +1 -0
  631. package/dist/dropi-ui/p-f61e0ed7.entry.js +1 -0
  632. package/dist/dropi-ui/p-f699688a.entry.js +1 -0
  633. package/dist/dropi-ui/p-f73d5969.entry.js +1 -0
  634. package/dist/dropi-ui/p-f87589c0.entry.js +1 -0
  635. package/dist/dropi-ui/p-fce82770.entry.js +1 -0
  636. package/dist/dropi-ui/p-fd0448a7.entry.js +1 -0
  637. package/dist/dropi-ui/p-fff4eb31.entry.js +1 -0
  638. package/dist/esm/dropi-accordion-item.entry.js +2 -2
  639. package/dist/esm/dropi-accordion.entry.js +2 -2
  640. package/dist/esm/dropi-alert-legacy.entry.js +2 -2
  641. package/dist/esm/dropi-alert-modal.entry.js +3 -13
  642. package/dist/esm/dropi-alert.entry.js +2 -2
  643. package/dist/esm/dropi-avatars.entry.js +2 -2
  644. package/dist/esm/dropi-badge-legacy.entry.js +2 -2
  645. package/dist/esm/dropi-badge.entry.js +2 -2
  646. package/dist/esm/dropi-banner-external.entry.js +2 -2
  647. package/dist/esm/dropi-breadcrumb.entry.js +2 -2
  648. package/dist/esm/dropi-button.entry.js +2 -2
  649. package/dist/esm/dropi-card-checkbox.entry.js +2 -2
  650. package/dist/esm/dropi-card-product.entry.js +2 -2
  651. package/dist/esm/dropi-card-section.entry.js +2 -2
  652. package/dist/esm/dropi-carousel.entry.js +2 -2
  653. package/dist/esm/dropi-checkbox-selection-list.entry.js +2 -2
  654. package/dist/esm/dropi-checkbox.entry.js +2 -2
  655. package/dist/esm/dropi-chips.entry.js +2 -2
  656. package/dist/esm/dropi-city-selector.entry.js +2 -2
  657. package/dist/esm/dropi-color-picker.entry.js +2 -2
  658. package/dist/esm/dropi-country-flags.entry.js +2 -2
  659. package/dist/esm/dropi-country-selector.entry.js +2 -2
  660. package/dist/esm/dropi-date-picker-range.entry.js +93 -21
  661. package/dist/esm/dropi-date-picker.entry.js +141 -56
  662. package/dist/esm/dropi-drawer.entry.js +4 -4
  663. package/dist/esm/dropi-dropdown.entry.js +2 -2
  664. package/dist/esm/dropi-empty-state.entry.js +3 -3
  665. package/dist/esm/dropi-favorite-button.entry.js +3 -3
  666. package/dist/esm/dropi-file-upload-progress-bar.entry.js +3 -3
  667. package/dist/esm/dropi-file-upload.entry.js +3 -3
  668. package/dist/esm/dropi-icon.entry.js +2 -2
  669. package/dist/esm/dropi-ilustration-icon.entry.js +2 -2
  670. package/dist/esm/dropi-image-miniature.entry.js +3 -3
  671. package/dist/esm/dropi-image-overlay.entry.js +2 -2
  672. package/dist/esm/dropi-input_3.entry.js +6 -6
  673. package/dist/esm/dropi-languages-selector.entry.js +2 -2
  674. package/dist/esm/dropi-logo.entry.js +3 -3
  675. package/dist/esm/dropi-lottie-loader.entry.js +2 -2
  676. package/dist/esm/dropi-media-player.entry.js +2 -2
  677. package/dist/esm/dropi-modal.entry.js +2 -2
  678. package/dist/esm/dropi-navbar.entry.js +4 -4
  679. package/dist/esm/dropi-otp-send-code.entry.js +4 -4
  680. package/dist/esm/dropi-phone-input.entry.js +4 -4
  681. package/dist/esm/dropi-progress-bar.entry.js +3 -3
  682. package/dist/esm/dropi-radio-button.entry.js +3 -3
  683. package/dist/esm/dropi-radio-selection-list.entry.js +2 -2
  684. package/dist/esm/dropi-read-more.entry.js +3 -3
  685. package/dist/esm/dropi-search.entry.js +2 -2
  686. package/dist/esm/dropi-select.entry.js +3 -3
  687. package/dist/esm/dropi-sidebar.entry.js +2 -2
  688. package/dist/esm/dropi-simple-stepper.entry.js +2 -2
  689. package/dist/esm/dropi-skeleton.entry.js +2 -2
  690. package/dist/esm/dropi-steps.entry.js +13 -3
  691. package/dist/esm/dropi-switch.entry.js +3 -3
  692. package/dist/esm/dropi-table.entry.js +2 -2
  693. package/dist/esm/dropi-tabs.entry.js +2 -2
  694. package/dist/esm/dropi-tag-type-product.entry.js +3 -3
  695. package/dist/esm/dropi-text-area.entry.js +2 -2
  696. package/dist/esm/dropi-time-line.entry.js +2 -2
  697. package/dist/esm/dropi-toast.entry.js +9 -11
  698. package/dist/esm/dropi-tooltip-v2.entry.js +2 -2
  699. package/dist/esm/dropi-tooltip.entry.js +3 -3
  700. package/dist/esm/dropi-ui.js +3 -3
  701. package/dist/esm/dropi-vertical-steps.entry.js +2 -2
  702. package/dist/esm/dropi-youtube-lazy-video.entry.js +3 -3
  703. package/dist/esm/index-CWoV_bQo.js +2798 -0
  704. package/dist/esm/loader.js +3 -3
  705. package/dist/esm/lottie-map.generated-BEs9gbju.js +12 -0
  706. package/dist/types/components/dropi-date-picker/dropi-date-picker.d.ts +22 -9
  707. package/dist/types/components/dropi-date-picker-range/dropi-date-picker-range.d.ts +11 -5
  708. package/dist/types/components/dropi-ilustration-icon/dropi-ilustration-icon.d.ts +1 -1
  709. package/dist/types/components/dropi-otp-send-code/dropi-otp-send-code.d.ts +4 -0
  710. package/dist/types/components/dropi-toast/dropi-toast.d.ts +1 -2
  711. package/dist/types/components.d.ts +29 -26
  712. package/hydrate/index.js +408 -232
  713. package/hydrate/index.mjs +408 -232
  714. package/package.json +2 -2
  715. package/scripts/setup.js +2 -17
  716. package/scripts/strip-use-client.mjs +20 -0
@@ -0,0 +1,2798 @@
1
+ const NAMESPACE = 'dropi-ui';
2
+ const BUILD = /* dropi-ui */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, slotRelocation: true, state: true, updatable: true};
3
+
4
+ const globalScripts = () => {};
5
+ const globalStyles = "@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');:root{--dropi-font-family:'Inter', sans-serif;--Primary-Primary-50:#fef8f2;--Primary-Primary-100:#ffecda;--Primary-Primary-200:#fcddbd;--Primary-Primary-300:#f2bc85;--Primary-Primary-400:#f7b46f;--Primary-Primary-500:#f49a3d;--Primary-Primary-600:#e58017;--Primary-Primary-700:#99540f;--Primary-Primary-800:#66380a;--Primary-Primary-900:#331c05;--Secondary-Secondary-50:#f0fafc;--Secondary-Secondary-100:#cee8f2;--Secondary-Secondary-200:#95d0e5;--Secondary-Secondary-300:#62bad9;--Secondary-Secondary-400:#33a4cc;--Secondary-Secondary-500:#008dbf;--Secondary-Secondary-600:#007199;--Secondary-Secondary-700:#005573;--Secondary-Secondary-800:#00384d;--Secondary-Secondary-900:#001c26;--Neutral-White:#ffffff;--Neutral-Black:#000000;--Gray-Gray-50:#f7f8fa;--Gray-Gray-100:#e6eaf2;--Gray-Gray-200:#c3c9d9;--Gray-Gray-300:#a3abbf;--Gray-Gray-400:#858ea6;--Gray-Gray-500:#69738c;--Gray-Gray-600:#475066;--Gray-Gray-700:#32394d;--Gray-Gray-800:#1f2433;--Gray-Gray-900:#0e111a;--Success-Success-50:#e7f8f3;--Success-Success-100:#b3eada;--Success-Success-200:#8ee0c8;--Success-Success-300:#5bd1af;--Success-Success-400:#3bc99f;--Success-Success-500:#0abb87;--Success-Success-600:#09aa7b;--Success-Success-700:#078560;--Success-Success-800:#06674a;--Success-Success-900:#044f39;--Error-Error-50:#fef0f0;--Error-Error-100:#fcd1d1;--Error-Error-200:#fababb;--Error-Error-300:#f89b9c;--Error-Error-400:#f68889;--Error-Error-500:#f46a6b;--Error-Error-600:#de6061;--Error-Error-700:#ad4b4c;--Error-Error-800:#863a3b;--Error-Error-900:#662d2d;--Info-Info-50:#eef6fe;--Info-Info-100:#c9e3fb;--Info-Info-200:#afd6f9;--Info-Info-300:#8ac3f6;--Info-Info-400:#73b7f4;--Info-Info-500:#50a5f1;--Info-Info-600:#4996db;--Info-Info-700:#3975ab;--Info-Info-800:#2c5b85;--Info-Info-900:#224565;--Warning-Warning-50:#fef8ed;--Warning-Warning-100:#fbe8c8;--Warning-Warning-200:#f9ddad;--Warning-Warning-300:#f6cd87;--Warning-Warning-400:#f4c370;--Warning-Warning-500:#f1b44c;--Warning-Warning-600:#dba445;--Warning-Warning-700:#ab8036;--Warning-Warning-800:#85632a;--Warning-Warning-900:#654c20;--Orange-orange-50:#fef5ec;--Orange-orange-500:#f49a3d;--Size-1:4px;--Size-2:8px;--Size-3:12px;--Size-4:16px;--Size-5:24px;--Size-6:32px;--Size-7:40px;--Size-8:48px;--Size-9:56px;--Size-10:64px;--Border-1:4px;--Border-2:8px;--Border-3:12px;--Border-4:24px;--Border-5:32px;--Border-full:9999px;--font-size-xxxxl:36px;--font-size-xxxl:30px;--font-size-xxl:24px;--font-size-xl:20px;--font-size-l:18px;--font-size-m:16px;--font-size-s:14px;--font-size-xs:12px;--font-size-xxs:10px;--lineheight-simple:110%;--lineheight-large:150%;--font-weight-bold:700;--font-weight-semibold:600;--font-weight-medium:500;--font-weight-regular:400;--font-weight-light:300;--font-family-01:'Inter', sans-serif;--breakpoint-extra-small:576px;--breakpoint-small:600px;--breakpoint-medium:1000px;--breakpoint-large:1200px;--breakpoint-extra-large:1536px;--breakpoint-full-width:1920px;--Shadow-small:0px 0px 12px rgba(0, 0, 0, 0.04);--Shadow-medium:0.5px 4px 8px rgba(0, 0, 0, 0.08);--Shadow-large:0px 4px 16px rgba(0, 0, 0, 0.16);--Shadow-icon:0px 0px 4px rgba(0, 0, 0, 0.16);--Interrapidisimo:#383637;--Domina:#464ffe;--Coordinadora:#2686c5;--Servientrega:#1ba558;--99-minutos:#9cd453;--TCC:#f8dd49;--Veloces:#dc2e76;--Envia:#e7484e;--Restlogix:#90dd92;--Tiui:#0596a5;--Fedex:#4d148c;--Laarcourier:#faf063;--Gintracom:#ff3939;--Blue-express:#1542a3;--Lulu:#f03a3e;--Urbano:#e53237;--Tipsa:#1d3681;--dropi-z-index-base:0;--dropi-z-index-sticky:100;--dropi-z-index-navbar:1000;--dropi-z-index-modal:9999;--dropi-z-index-drawer:9999;--dropi-z-index-overlay:11000;--dropi-z-index-toast:12000}@media (max-width: 600px){:root{--font-size-xxxxl:32px;--font-size-xxxl:26px;--font-size-xxl:20px;--font-size-xl:18px;--font-size-l:16px;--font-size-m:16px;--font-size-s:14px;--font-size-xs:12px;--font-size-xxs:10px}}*{font-family:var(--font-family-01);box-sizing:border-box;text-align:left}h1{color:var(--Gray-Gray-700);font-size:var(--font-size-xxxxl);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}h2{color:var(--Gray-Gray-700);font-size:var(--font-size-xxxl);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}h3{color:var(--Gray-Gray-700);font-size:var(--font-size-xxl);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}h4{color:var(--Gray-Gray-700);font-size:var(--font-size-xl);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}h5{color:var(--Gray-Gray-700);font-size:var(--font-size-l);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}.Body-L-Medium{color:var(--Gray-Gray-700);font-size:var(--font-size-m);font-weight:var(--font-weight-medium);line-height:var(--lineheight-large)}.Body-L-Regular{color:var(--Gray-Gray-600);font-size:var(--font-size-m);font-weight:var(--font-weight-regular);line-height:var(--lineheight-large)}.Body-M-Medium{color:var(--Gray-Gray-700);font-size:var(--font-size-s);font-weight:var(--font-weight-medium);line-height:var(--lineheight-large)}.Body-M-Regular{color:var(--Gray-Gray-600);font-size:var(--font-size-s);font-weight:var(--font-weight-regular);line-height:var(--lineheight-large)}.Body-S-Medium{color:var(--Gray-Gray-700);font-size:var(--font-size-xs);font-weight:var(--font-weight-medium);line-height:var(--lineheight-large)}.Body-S-Regular{color:var(--Gray-Gray-600);font-size:var(--font-size-xs);font-weight:var(--font-weight-regular);line-height:var(--lineheight-large)}.Caption-M{color:var(--Gray-Gray-700);font-size:var(--font-size-xs);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}.Caption-S{color:var(--Gray-Gray-700);font-size:var(--font-size-xxs);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}.Label-L{color:var(--Gray-Gray-700);font-size:var(--font-size-m);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}.Label-M{color:var(--Gray-Gray-700);font-size:var(--font-size-s);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}.Label-S{color:var(--Gray-Gray-700);font-size:var(--font-size-xs);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}body.dropi-modal-open{overflow:hidden !important}dropi-icon:not(:defined){display:inline-flex;width:24px;height:24px;overflow:hidden}";
6
+
7
+ /*
8
+ Stencil Client Platform v4.43.4 | MIT Licensed | https://stenciljs.com
9
+ */
10
+
11
+ var Build = {
12
+ isBrowser: true};
13
+
14
+ // src/utils/constants.ts
15
+ var SVG_NS = "http://www.w3.org/2000/svg";
16
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
17
+ var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
18
+ PrimitiveType2["Undefined"] = "undefined";
19
+ PrimitiveType2["Null"] = "null";
20
+ PrimitiveType2["String"] = "string";
21
+ PrimitiveType2["Number"] = "number";
22
+ PrimitiveType2["SpecialNumber"] = "number";
23
+ PrimitiveType2["Boolean"] = "boolean";
24
+ PrimitiveType2["BigInt"] = "bigint";
25
+ return PrimitiveType2;
26
+ })(PrimitiveType || {});
27
+ var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
28
+ NonPrimitiveType2["Array"] = "array";
29
+ NonPrimitiveType2["Date"] = "date";
30
+ NonPrimitiveType2["Map"] = "map";
31
+ NonPrimitiveType2["Object"] = "object";
32
+ NonPrimitiveType2["RegularExpression"] = "regexp";
33
+ NonPrimitiveType2["Set"] = "set";
34
+ NonPrimitiveType2["Channel"] = "channel";
35
+ NonPrimitiveType2["Symbol"] = "symbol";
36
+ return NonPrimitiveType2;
37
+ })(NonPrimitiveType || {});
38
+ var TYPE_CONSTANT = "type";
39
+ var VALUE_CONSTANT = "value";
40
+ var SERIALIZED_PREFIX = "serialized:";
41
+
42
+ // src/utils/get-prop-descriptor.ts
43
+ function getPropertyDescriptor(obj, memberName, getOnly) {
44
+ const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
45
+ while (obj && obj !== stopAt) {
46
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
47
+ if (desc && (!getOnly || desc.get)) return desc;
48
+ obj = Object.getPrototypeOf(obj);
49
+ }
50
+ return void 0;
51
+ }
52
+
53
+ // src/utils/es2022-rewire-class-members.ts
54
+ var reWireGetterSetter = (instance, hostRef) => {
55
+ var _a;
56
+ const cmpMeta = hostRef.$cmpMeta$;
57
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
58
+ members.map(([memberName, [memberFlags]]) => {
59
+ if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
60
+ const ogValue = instance[memberName];
61
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
62
+ if (ogDescriptor) {
63
+ Object.defineProperty(instance, memberName, {
64
+ get() {
65
+ return ogDescriptor.get.call(this);
66
+ },
67
+ set(newValue) {
68
+ ogDescriptor.set.call(this, newValue);
69
+ },
70
+ configurable: true,
71
+ enumerable: true
72
+ });
73
+ }
74
+ if (hostRef.$instanceValues$.has(memberName)) {
75
+ instance[memberName] = hostRef.$instanceValues$.get(memberName);
76
+ } else if (ogValue !== void 0) {
77
+ instance[memberName] = ogValue;
78
+ }
79
+ }
80
+ });
81
+ };
82
+
83
+ // src/client/client-host-ref.ts
84
+ var getHostRef = (ref) => {
85
+ if (ref.__stencil__getHostRef) {
86
+ return ref.__stencil__getHostRef();
87
+ }
88
+ return void 0;
89
+ };
90
+ var registerInstance = (lazyInstance, hostRef) => {
91
+ if (!hostRef) return;
92
+ lazyInstance.__stencil__getHostRef = () => hostRef;
93
+ hostRef.$lazyInstance$ = lazyInstance;
94
+ if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
95
+ reWireGetterSetter(lazyInstance, hostRef);
96
+ }
97
+ };
98
+ var registerHost = (hostElement, cmpMeta) => {
99
+ const hostRef = {
100
+ $flags$: 0,
101
+ $hostElement$: hostElement,
102
+ $cmpMeta$: cmpMeta,
103
+ $instanceValues$: /* @__PURE__ */ new Map(),
104
+ $serializerValues$: /* @__PURE__ */ new Map()
105
+ };
106
+ {
107
+ hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
108
+ }
109
+ {
110
+ hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
111
+ hostElement["s-p"] = [];
112
+ hostElement["s-rc"] = [];
113
+ }
114
+ {
115
+ hostRef.$fetchedCbList$ = [];
116
+ }
117
+ const ref = hostRef;
118
+ hostElement.__stencil__getHostRef = () => ref;
119
+ return ref;
120
+ };
121
+ var isMemberInElement = (elm, memberName) => memberName in elm;
122
+ var consoleError = (e, el) => (0, console.error)(e, el);
123
+
124
+ // src/client/client-load-module.ts
125
+ var cmpModules = /* @__PURE__ */ new Map();
126
+ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
127
+ const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
128
+ const bundleId = cmpMeta.$lazyBundleId$;
129
+ if (!bundleId) {
130
+ return void 0;
131
+ }
132
+ const module = cmpModules.get(bundleId) ;
133
+ if (module) {
134
+ return module[exportName];
135
+ }
136
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
137
+ return import(
138
+ /* @vite-ignore */
139
+ /* webpackInclude: /\.entry\.js$/ */
140
+ /* webpackExclude: /\.system\.entry\.js$/ */
141
+ /* webpackMode: "lazy" */
142
+ `./${bundleId}.entry.js${""}`
143
+ ).then(
144
+ (importedModule) => {
145
+ {
146
+ cmpModules.set(bundleId, importedModule);
147
+ }
148
+ return importedModule[exportName];
149
+ },
150
+ (e) => {
151
+ consoleError(e, hostRef.$hostElement$);
152
+ }
153
+ );
154
+ };
155
+
156
+ // src/client/client-style.ts
157
+ var styles = /* @__PURE__ */ new Map();
158
+
159
+ // src/runtime/runtime-constants.ts
160
+ var CONTENT_REF_ID = "r";
161
+ var ORG_LOCATION_ID = "o";
162
+ var SLOT_NODE_ID = "s";
163
+ var TEXT_NODE_ID = "t";
164
+ var COMMENT_NODE_ID = "c";
165
+ var HYDRATE_ID = "s-id";
166
+ var HYDRATED_STYLE_ID = "sty-id";
167
+ var HYDRATE_CHILD_ID = "c-id";
168
+ var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
169
+ var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
170
+ var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
171
+ "formAssociatedCallback",
172
+ "formResetCallback",
173
+ "formDisabledCallback",
174
+ "formStateRestoreCallback"
175
+ ];
176
+ var win = typeof window !== "undefined" ? window : {};
177
+ var plt = {
178
+ $flags$: 0,
179
+ $resourcesUrl$: "",
180
+ jmp: (h2) => h2(),
181
+ raf: (h2) => requestAnimationFrame(h2),
182
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
183
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
184
+ ce: (eventName, opts) => new CustomEvent(eventName, opts)
185
+ };
186
+ var supportsListenerOptions = /* @__PURE__ */ (() => {
187
+ var _a;
188
+ let supportsListenerOptions2 = false;
189
+ try {
190
+ (_a = win.document) == null ? void 0 : _a.addEventListener(
191
+ "e",
192
+ null,
193
+ Object.defineProperty({}, "passive", {
194
+ get() {
195
+ supportsListenerOptions2 = true;
196
+ }
197
+ })
198
+ );
199
+ } catch (e) {
200
+ }
201
+ return supportsListenerOptions2;
202
+ })();
203
+ var promiseResolve = (v) => Promise.resolve(v);
204
+ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
205
+ try {
206
+ if (!win.document.adoptedStyleSheets) {
207
+ return false;
208
+ }
209
+ new CSSStyleSheet();
210
+ return typeof new CSSStyleSheet().replaceSync === "function";
211
+ } catch (e) {
212
+ }
213
+ return false;
214
+ })() ;
215
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
216
+ var queuePending = false;
217
+ var queueDomReads = [];
218
+ var queueDomWrites = [];
219
+ var queueTask = (queue, write) => (cb) => {
220
+ queue.push(cb);
221
+ if (!queuePending) {
222
+ queuePending = true;
223
+ if (write && plt.$flags$ & 4 /* queueSync */) {
224
+ nextTick(flush);
225
+ } else {
226
+ plt.raf(flush);
227
+ }
228
+ }
229
+ };
230
+ var consume = (queue) => {
231
+ for (let i2 = 0; i2 < queue.length; i2++) {
232
+ try {
233
+ queue[i2](performance.now());
234
+ } catch (e) {
235
+ consoleError(e);
236
+ }
237
+ }
238
+ queue.length = 0;
239
+ };
240
+ var flush = () => {
241
+ consume(queueDomReads);
242
+ {
243
+ consume(queueDomWrites);
244
+ if (queuePending = queueDomReads.length > 0) {
245
+ plt.raf(flush);
246
+ }
247
+ }
248
+ };
249
+ var nextTick = (cb) => promiseResolve().then(cb);
250
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
251
+
252
+ // src/utils/style.ts
253
+ function createStyleSheetIfNeededAndSupported(styles2) {
254
+ if (!supportsConstructableStylesheets) return void 0;
255
+ const sheet = new CSSStyleSheet();
256
+ sheet.replaceSync(styles2);
257
+ return sheet;
258
+ }
259
+
260
+ // src/utils/shadow-root.ts
261
+ var globalStyleSheet;
262
+ function createShadowRoot(cmpMeta) {
263
+ var _a;
264
+ const opts = { mode: "open" };
265
+ const shadowRoot = this.attachShadow(opts);
266
+ if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported(globalStyles)) != null ? _a : null;
267
+ if (globalStyleSheet) {
268
+ if (supportsMutableAdoptedStyleSheets) {
269
+ shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
270
+ } else {
271
+ shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
272
+ }
273
+ } else if (!supportsConstructableStylesheets) {
274
+ const styleElm = document.createElement("style");
275
+ styleElm.innerHTML = globalStyles;
276
+ shadowRoot.prepend(styleElm);
277
+ }
278
+ }
279
+ var updateFallbackSlotVisibility = (elm) => {
280
+ const childNodes = internalCall(elm, "childNodes");
281
+ if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
282
+ getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
283
+ if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
284
+ if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
285
+ slotNode.hidden = true;
286
+ } else {
287
+ slotNode.hidden = false;
288
+ }
289
+ }
290
+ });
291
+ }
292
+ let i2 = 0;
293
+ for (i2 = 0; i2 < childNodes.length; i2++) {
294
+ const childNode = childNodes[i2];
295
+ if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
296
+ updateFallbackSlotVisibility(childNode);
297
+ }
298
+ }
299
+ };
300
+ var getSlottedChildNodes = (childNodes) => {
301
+ const result = [];
302
+ for (let i2 = 0; i2 < childNodes.length; i2++) {
303
+ const slottedNode = childNodes[i2]["s-nr"] || void 0;
304
+ if (slottedNode && slottedNode.isConnected) {
305
+ result.push(slottedNode);
306
+ }
307
+ }
308
+ return result;
309
+ };
310
+ function getHostSlotNodes(childNodes, hostName, slotName) {
311
+ let i2 = 0;
312
+ let slottedNodes = [];
313
+ let childNode;
314
+ for (; i2 < childNodes.length; i2++) {
315
+ childNode = childNodes[i2];
316
+ if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {
317
+ slottedNodes.push(childNode);
318
+ if (typeof slotName !== "undefined") return slottedNodes;
319
+ }
320
+ slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
321
+ }
322
+ return slottedNodes;
323
+ }
324
+ var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
325
+ const childNodes = [];
326
+ if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
327
+ let node = slot;
328
+ while (node = node.nextSibling) {
329
+ if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
330
+ }
331
+ return childNodes;
332
+ };
333
+ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
334
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
335
+ if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
336
+ return true;
337
+ }
338
+ if (nodeToRelocate.getAttribute("slot") === slotName) {
339
+ return true;
340
+ }
341
+ return false;
342
+ }
343
+ if (nodeToRelocate["s-sn"] === slotName) {
344
+ return true;
345
+ }
346
+ return slotName === "";
347
+ };
348
+ var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
349
+ if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
350
+ return;
351
+ }
352
+ const slottedNodeLocation = document.createTextNode("");
353
+ slottedNodeLocation["s-nr"] = newChild;
354
+ if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
355
+ const parent = slotNode["s-cr"].parentNode;
356
+ const appendMethod = internalCall(parent, "appendChild");
357
+ if (typeof position !== "undefined") {
358
+ slottedNodeLocation["s-oo"] = position;
359
+ const childNodes = internalCall(parent, "childNodes");
360
+ const slotRelocateNodes = [slottedNodeLocation];
361
+ childNodes.forEach((n) => {
362
+ if (n["s-nr"]) slotRelocateNodes.push(n);
363
+ });
364
+ slotRelocateNodes.sort((a, b) => {
365
+ if (!a["s-oo"] || a["s-oo"] < (b["s-oo"] || 0)) return -1;
366
+ else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
367
+ return 0;
368
+ });
369
+ slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
370
+ } else {
371
+ appendMethod.call(parent, slottedNodeLocation);
372
+ }
373
+ newChild["s-ol"] = slottedNodeLocation;
374
+ newChild["s-sh"] = slotNode["s-hn"];
375
+ };
376
+ var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
377
+ function patchSlotNode(node) {
378
+ if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
379
+ const assignedFactory = (elementsOnly) => (function(opts) {
380
+ const toReturn = [];
381
+ const slotName = this["s-sn"];
382
+ if (opts == null ? void 0 : opts.flatten) {
383
+ console.error(`
384
+ Flattening is not supported for Stencil non-shadow slots.
385
+ You can use \`.childNodes\` to nested slot fallback content.
386
+ If you have a particular use case, please open an issue on the Stencil repo.
387
+ `);
388
+ }
389
+ const parent = this["s-cr"].parentElement;
390
+ const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
391
+ slottedNodes.forEach((n) => {
392
+ if (slotName === getSlotName(n)) {
393
+ toReturn.push(n);
394
+ }
395
+ });
396
+ if (elementsOnly) {
397
+ return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
398
+ }
399
+ return toReturn;
400
+ }).bind(node);
401
+ node.assignedElements = assignedFactory(true);
402
+ node.assignedNodes = assignedFactory(false);
403
+ }
404
+ function dispatchSlotChangeEvent(elm) {
405
+ elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
406
+ }
407
+ function findSlotFromSlottedNode(slottedNode, parentHost) {
408
+ var _a;
409
+ parentHost = parentHost || ((_a = slottedNode["s-ol"]) == null ? void 0 : _a.parentElement);
410
+ if (!parentHost) return { slotNode: null, slotName: "" };
411
+ const slotName = slottedNode["s-sn"] = getSlotName(slottedNode) || "";
412
+ const childNodes = internalCall(parentHost, "childNodes");
413
+ const slotNode = getHostSlotNodes(childNodes, parentHost.tagName, slotName)[0];
414
+ return { slotNode, slotName };
415
+ }
416
+ function internalCall(node, method) {
417
+ if ("__" + method in node) {
418
+ const toReturn = node["__" + method];
419
+ if (typeof toReturn !== "function") return toReturn;
420
+ return toReturn.bind(node);
421
+ } else {
422
+ if (typeof node[method] !== "function") return node[method];
423
+ return node[method].bind(node);
424
+ }
425
+ }
426
+ var createTime = (fnName, tagName = "") => {
427
+ {
428
+ return () => {
429
+ return;
430
+ };
431
+ }
432
+ };
433
+ var uniqueTime = (key, measureText) => {
434
+ {
435
+ return () => {
436
+ return;
437
+ };
438
+ }
439
+ };
440
+
441
+ // src/utils/query-nonce-meta-tag-content.ts
442
+ function queryNonceMetaTagContent(doc) {
443
+ var _a, _b, _c;
444
+ return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
445
+ }
446
+
447
+ // src/runtime/styles.ts
448
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
449
+ var registerStyle = (scopeId2, cssText, allowCS) => {
450
+ let style = styles.get(scopeId2);
451
+ if (supportsConstructableStylesheets && allowCS) {
452
+ style = style || new CSSStyleSheet();
453
+ if (typeof style === "string") {
454
+ style = cssText;
455
+ } else {
456
+ style.replaceSync(cssText);
457
+ }
458
+ } else {
459
+ style = cssText;
460
+ }
461
+ styles.set(scopeId2, style);
462
+ };
463
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
464
+ var _a, _b, _c;
465
+ const scopeId2 = getScopeId(cmpMeta);
466
+ const style = styles.get(scopeId2);
467
+ if (!win.document) {
468
+ return scopeId2;
469
+ }
470
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
471
+ if (style) {
472
+ if (typeof style === "string") {
473
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
474
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
475
+ let styleElm;
476
+ if (!appliedStyles) {
477
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
478
+ }
479
+ const existingStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
480
+ if (existingStyleElm) {
481
+ existingStyleElm.textContent = style;
482
+ } else if (!appliedStyles.has(scopeId2)) {
483
+ styleElm = win.document.createElement("style");
484
+ styleElm.textContent = style;
485
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
486
+ if (nonce != null) {
487
+ styleElm.setAttribute("nonce", nonce);
488
+ }
489
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
490
+ if (styleContainerNode.nodeName === "HEAD") {
491
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
492
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
493
+ styleContainerNode.insertBefore(
494
+ styleElm,
495
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
496
+ );
497
+ } else if ("host" in styleContainerNode) {
498
+ if (supportsConstructableStylesheets) {
499
+ const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
500
+ const stylesheet = new currentWindow.CSSStyleSheet();
501
+ stylesheet.replaceSync(style);
502
+ if (supportsMutableAdoptedStyleSheets) {
503
+ styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
504
+ } else {
505
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
506
+ }
507
+ } else {
508
+ const existingStyleContainer = styleContainerNode.querySelector("style");
509
+ if (existingStyleContainer && true) {
510
+ existingStyleContainer.textContent = style + existingStyleContainer.textContent;
511
+ } else {
512
+ styleContainerNode.prepend(styleElm);
513
+ }
514
+ }
515
+ } else {
516
+ styleContainerNode.append(styleElm);
517
+ }
518
+ }
519
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
520
+ styleContainerNode.insertBefore(styleElm, null);
521
+ }
522
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
523
+ styleElm.textContent += SLOT_FB_CSS;
524
+ }
525
+ if (appliedStyles) {
526
+ appliedStyles.add(scopeId2);
527
+ }
528
+ }
529
+ } else {
530
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
531
+ if (!appliedStyles) {
532
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
533
+ }
534
+ if (!appliedStyles.has(scopeId2)) {
535
+ const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
536
+ let stylesheet;
537
+ if (style.constructor === currentWindow.CSSStyleSheet) {
538
+ stylesheet = style;
539
+ } else {
540
+ stylesheet = new currentWindow.CSSStyleSheet();
541
+ for (let i2 = 0; i2 < style.cssRules.length; i2++) {
542
+ stylesheet.insertRule(style.cssRules[i2].cssText, i2);
543
+ }
544
+ }
545
+ if (supportsMutableAdoptedStyleSheets) {
546
+ styleContainerNode.adoptedStyleSheets.push(stylesheet);
547
+ } else {
548
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
549
+ }
550
+ appliedStyles.add(scopeId2);
551
+ if ("host" in styleContainerNode) {
552
+ const ssrStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
553
+ if (ssrStyleElm) {
554
+ writeTask(() => ssrStyleElm.remove());
555
+ }
556
+ }
557
+ }
558
+ }
559
+ }
560
+ return scopeId2;
561
+ };
562
+ var attachStyles = (hostRef) => {
563
+ const cmpMeta = hostRef.$cmpMeta$;
564
+ const elm = hostRef.$hostElement$;
565
+ const flags = cmpMeta.$flags$;
566
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
567
+ const scopeId2 = addStyle(
568
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
569
+ cmpMeta);
570
+ if (flags & 10 /* needsScopedEncapsulation */) {
571
+ elm["s-sc"] = scopeId2;
572
+ elm.classList.add(scopeId2 + "-h");
573
+ }
574
+ endAttachStyles();
575
+ };
576
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
577
+ var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
578
+ var hydrateScopedToShadow = () => {
579
+ if (!win.document) {
580
+ return;
581
+ }
582
+ const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
583
+ let i2 = 0;
584
+ for (; i2 < styles2.length; i2++) {
585
+ registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
586
+ }
587
+ };
588
+ var isComplexType = (o) => {
589
+ o = typeof o;
590
+ return o === "object" || o === "function";
591
+ };
592
+
593
+ // src/runtime/vdom/h.ts
594
+ var h = (nodeName, vnodeData, ...children) => {
595
+ if (typeof nodeName === "string") {
596
+ nodeName = transformTag(nodeName);
597
+ }
598
+ let child = null;
599
+ let key = null;
600
+ let slotName = null;
601
+ let simple = false;
602
+ let lastSimple = false;
603
+ const vNodeChildren = [];
604
+ const walk = (c) => {
605
+ for (let i2 = 0; i2 < c.length; i2++) {
606
+ child = c[i2];
607
+ if (Array.isArray(child)) {
608
+ walk(child);
609
+ } else if (child != null && typeof child !== "boolean") {
610
+ if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
611
+ child = String(child);
612
+ }
613
+ if (simple && lastSimple) {
614
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
615
+ } else {
616
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
617
+ }
618
+ lastSimple = simple;
619
+ }
620
+ }
621
+ };
622
+ walk(children);
623
+ if (vnodeData) {
624
+ if (vnodeData.key) {
625
+ key = vnodeData.key;
626
+ }
627
+ if (vnodeData.name) {
628
+ slotName = vnodeData.name;
629
+ }
630
+ {
631
+ const classData = vnodeData.className || vnodeData.class;
632
+ if (classData) {
633
+ vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
634
+ }
635
+ }
636
+ }
637
+ const vnode = newVNode(nodeName, null);
638
+ vnode.$attrs$ = vnodeData;
639
+ if (vNodeChildren.length > 0) {
640
+ vnode.$children$ = vNodeChildren;
641
+ }
642
+ {
643
+ vnode.$key$ = key;
644
+ }
645
+ {
646
+ vnode.$name$ = slotName;
647
+ }
648
+ return vnode;
649
+ };
650
+ var newVNode = (tag, text) => {
651
+ const vnode = {
652
+ $flags$: 0,
653
+ $tag$: tag,
654
+ // Normalize undefined to null to prevent rendering "undefined" as text
655
+ $text$: text != null ? text : null,
656
+ $elm$: null,
657
+ $children$: null
658
+ };
659
+ {
660
+ vnode.$attrs$ = null;
661
+ }
662
+ {
663
+ vnode.$key$ = null;
664
+ }
665
+ {
666
+ vnode.$name$ = null;
667
+ }
668
+ return vnode;
669
+ };
670
+ var Host = {};
671
+ var isHost = (node) => node && node.$tag$ === Host;
672
+
673
+ // src/runtime/client-hydrate.ts
674
+ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
675
+ var _a, _b, _c, _d;
676
+ const endHydrate = createTime("hydrateClient", tagName);
677
+ const shadowRoot = hostElm.shadowRoot;
678
+ const childRenderNodes = [];
679
+ const slotNodes = [];
680
+ const slottedNodes = [];
681
+ const shadowRootNodes = shadowRoot ? [] : null;
682
+ const vnode = newVNode(tagName, null);
683
+ vnode.$elm$ = hostElm;
684
+ if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
685
+ initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
686
+ }
687
+ hostElm[HYDRATE_ID] = hostId;
688
+ hostElm.removeAttribute(HYDRATE_ID);
689
+ hostRef.$vnode$ = clientHydrate(
690
+ vnode,
691
+ childRenderNodes,
692
+ slotNodes,
693
+ shadowRootNodes,
694
+ hostElm,
695
+ hostElm,
696
+ hostId,
697
+ slottedNodes
698
+ );
699
+ let crIndex = 0;
700
+ const crLength = childRenderNodes.length;
701
+ let childRenderNode;
702
+ for (crIndex; crIndex < crLength; crIndex++) {
703
+ childRenderNode = childRenderNodes[crIndex];
704
+ const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
705
+ const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
706
+ const node = childRenderNode.$elm$;
707
+ if (!shadowRoot) {
708
+ node["s-hn"] = transformTag(tagName).toUpperCase();
709
+ if (childRenderNode.$tag$ === "slot") {
710
+ node["s-cr"] = hostElm["s-cr"];
711
+ }
712
+ } else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
713
+ const cmpMeta = getHostRef(childRenderNode.$elm$);
714
+ if (cmpMeta) {
715
+ const scopeId3 = getScopeId(
716
+ cmpMeta.$cmpMeta$);
717
+ const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
718
+ if (styleSheet) {
719
+ shadowRootNodes.unshift(styleSheet.cloneNode(true));
720
+ }
721
+ }
722
+ }
723
+ if (childRenderNode.$tag$ === "slot") {
724
+ childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
725
+ if (childRenderNode.$children$) {
726
+ childRenderNode.$flags$ |= 2 /* isSlotFallback */;
727
+ if (!childRenderNode.$elm$.childNodes.length) {
728
+ childRenderNode.$children$.forEach((c) => {
729
+ childRenderNode.$elm$.appendChild(c.$elm$);
730
+ });
731
+ }
732
+ } else {
733
+ childRenderNode.$flags$ |= 1 /* isSlotReference */;
734
+ }
735
+ }
736
+ if (orgLocationNode && orgLocationNode.isConnected) {
737
+ if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
738
+ orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
739
+ }
740
+ orgLocationNode.parentNode.removeChild(orgLocationNode);
741
+ if (!shadowRoot) {
742
+ node["s-oo"] = parseInt(childRenderNode.$nodeId$);
743
+ }
744
+ }
745
+ if (orgLocationNode && !orgLocationNode["s-id"]) {
746
+ plt.$orgLocNodes$.delete(orgLocationId);
747
+ }
748
+ }
749
+ const hosts = [];
750
+ const snLen = slottedNodes.length;
751
+ let snIndex = 0;
752
+ let slotGroup;
753
+ let snGroupIdx;
754
+ let snGroupLen;
755
+ let slottedItem;
756
+ let currentPos = 0;
757
+ for (snIndex; snIndex < snLen; snIndex++) {
758
+ slotGroup = slottedNodes[snIndex];
759
+ if (!slotGroup || !slotGroup.length) continue;
760
+ snGroupLen = slotGroup.length;
761
+ snGroupIdx = 0;
762
+ for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
763
+ slottedItem = slotGroup[snGroupIdx];
764
+ if (!hosts[slottedItem.hostId]) {
765
+ hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
766
+ }
767
+ if (!hosts[slottedItem.hostId]) continue;
768
+ const hostEle = hosts[slottedItem.hostId];
769
+ if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
770
+ hostEle.insertBefore(slottedItem.node, (_c = (_b = slotGroup[snGroupIdx - 1]) == null ? void 0 : _b.node) == null ? void 0 : _c.nextSibling);
771
+ }
772
+ if (!hostEle.shadowRoot || !shadowRoot) {
773
+ if (!slottedItem.slot["s-cr"]) {
774
+ slottedItem.slot["s-cr"] = hostEle["s-cr"];
775
+ if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
776
+ slottedItem.slot["s-cr"] = hostEle;
777
+ } else {
778
+ slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
779
+ }
780
+ }
781
+ addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"] || currentPos);
782
+ if (((_d = slottedItem.node.parentElement) == null ? void 0 : _d.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
783
+ slottedItem.node.removeAttribute("slot");
784
+ }
785
+ }
786
+ currentPos = (slottedItem.node["s-oo"] || currentPos) + 1;
787
+ }
788
+ }
789
+ if (shadowRoot && !shadowRoot.childNodes.length) {
790
+ let rnIdex = 0;
791
+ const rnLen = shadowRootNodes.length;
792
+ if (rnLen) {
793
+ for (rnIdex; rnIdex < rnLen; rnIdex++) {
794
+ const node = shadowRootNodes[rnIdex];
795
+ if (node) {
796
+ shadowRoot.appendChild(node);
797
+ }
798
+ }
799
+ Array.from(hostElm.childNodes).forEach((node) => {
800
+ if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
801
+ if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
802
+ node.removeAttribute("hidden");
803
+ } else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue) {
804
+ node.parentNode.removeChild(node);
805
+ }
806
+ }
807
+ });
808
+ }
809
+ }
810
+ hostRef.$hostElement$ = hostElm;
811
+ endHydrate();
812
+ };
813
+ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
814
+ let childNodeType;
815
+ let childIdSplt;
816
+ let childVNode;
817
+ let i2;
818
+ if (node.nodeType === 1 /* ElementNode */) {
819
+ childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
820
+ if (childNodeType) {
821
+ childIdSplt = childNodeType.split(".");
822
+ if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
823
+ childVNode = createSimpleVNode({
824
+ $flags$: 0,
825
+ $hostId$: childIdSplt[0],
826
+ $nodeId$: childIdSplt[1],
827
+ $depth$: childIdSplt[2],
828
+ $index$: childIdSplt[3],
829
+ $tag$: node.tagName.toLowerCase(),
830
+ $elm$: node,
831
+ // If we don't add the initial classes to the VNode, the first `vdom-render.ts` patch
832
+ // won't try to reconcile them. Classes set on the node will be blown away.
833
+ $attrs$: { class: node.className || "" }
834
+ });
835
+ childRenderNodes.push(childVNode);
836
+ node.removeAttribute(HYDRATE_CHILD_ID);
837
+ if (!parentVNode.$children$) {
838
+ parentVNode.$children$ = [];
839
+ }
840
+ const slotName = childVNode.$elm$.getAttribute("s-sn");
841
+ if (typeof slotName === "string") {
842
+ if (childVNode.$tag$ === "slot-fb") {
843
+ addSlot(
844
+ slotName,
845
+ childIdSplt[2],
846
+ childVNode,
847
+ node,
848
+ parentVNode,
849
+ childRenderNodes,
850
+ slotNodes,
851
+ shadowRootNodes,
852
+ slottedNodes
853
+ );
854
+ }
855
+ childVNode.$elm$["s-sn"] = slotName;
856
+ childVNode.$elm$.removeAttribute("s-sn");
857
+ }
858
+ if (childVNode.$index$ !== void 0) {
859
+ parentVNode.$children$[childVNode.$index$] = childVNode;
860
+ }
861
+ parentVNode = childVNode;
862
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
863
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
864
+ }
865
+ }
866
+ }
867
+ if (node.shadowRoot) {
868
+ for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
869
+ clientHydrate(
870
+ parentVNode,
871
+ childRenderNodes,
872
+ slotNodes,
873
+ shadowRootNodes,
874
+ hostElm,
875
+ node.shadowRoot.childNodes[i2],
876
+ hostId,
877
+ slottedNodes
878
+ );
879
+ }
880
+ }
881
+ const nonShadowNodes = node.__childNodes || node.childNodes;
882
+ for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
883
+ clientHydrate(
884
+ parentVNode,
885
+ childRenderNodes,
886
+ slotNodes,
887
+ shadowRootNodes,
888
+ hostElm,
889
+ nonShadowNodes[i2],
890
+ hostId,
891
+ slottedNodes
892
+ );
893
+ }
894
+ } else if (node.nodeType === 8 /* CommentNode */) {
895
+ childIdSplt = node.nodeValue.split(".");
896
+ if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
897
+ childNodeType = childIdSplt[0];
898
+ childVNode = createSimpleVNode({
899
+ $hostId$: childIdSplt[1],
900
+ $nodeId$: childIdSplt[2],
901
+ $depth$: childIdSplt[3],
902
+ $index$: childIdSplt[4] || "0",
903
+ $elm$: node,
904
+ $attrs$: null,
905
+ $children$: null,
906
+ $key$: null,
907
+ $name$: null,
908
+ $tag$: null,
909
+ $text$: null
910
+ });
911
+ if (childNodeType === TEXT_NODE_ID) {
912
+ childVNode.$elm$ = findCorrespondingNode(node, 3 /* TextNode */);
913
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
914
+ childVNode.$text$ = childVNode.$elm$.textContent;
915
+ childRenderNodes.push(childVNode);
916
+ node.remove();
917
+ if (hostId === childVNode.$hostId$) {
918
+ if (!parentVNode.$children$) {
919
+ parentVNode.$children$ = [];
920
+ }
921
+ parentVNode.$children$[childVNode.$index$] = childVNode;
922
+ }
923
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
924
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
925
+ }
926
+ }
927
+ } else if (childNodeType === COMMENT_NODE_ID) {
928
+ childVNode.$elm$ = findCorrespondingNode(node, 8 /* CommentNode */);
929
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
930
+ childRenderNodes.push(childVNode);
931
+ node.remove();
932
+ }
933
+ } else if (childVNode.$hostId$ === hostId) {
934
+ if (childNodeType === SLOT_NODE_ID) {
935
+ const slotName = node["s-sn"] = childIdSplt[5] || "";
936
+ addSlot(
937
+ slotName,
938
+ childIdSplt[2],
939
+ childVNode,
940
+ node,
941
+ parentVNode,
942
+ childRenderNodes,
943
+ slotNodes,
944
+ shadowRootNodes,
945
+ slottedNodes
946
+ );
947
+ } else if (childNodeType === CONTENT_REF_ID) {
948
+ if (shadowRootNodes) {
949
+ node.remove();
950
+ } else {
951
+ hostElm["s-cr"] = node;
952
+ node["s-cn"] = true;
953
+ }
954
+ }
955
+ }
956
+ }
957
+ } else if (parentVNode && parentVNode.$tag$ === "style") {
958
+ const vnode = newVNode(null, node.textContent);
959
+ vnode.$elm$ = node;
960
+ vnode.$index$ = "0";
961
+ parentVNode.$children$ = [vnode];
962
+ }
963
+ return parentVNode;
964
+ };
965
+ var initializeDocumentHydrate = (node, orgLocNodes) => {
966
+ if (node.nodeType === 1 /* ElementNode */) {
967
+ const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
968
+ if (componentId) {
969
+ orgLocNodes.set(componentId, node);
970
+ }
971
+ let i2 = 0;
972
+ if (node.shadowRoot) {
973
+ for (; i2 < node.shadowRoot.childNodes.length; i2++) {
974
+ initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
975
+ }
976
+ }
977
+ const nonShadowNodes = node.__childNodes || node.childNodes;
978
+ for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
979
+ initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
980
+ }
981
+ } else if (node.nodeType === 8 /* CommentNode */) {
982
+ const childIdSplt = node.nodeValue.split(".");
983
+ if (childIdSplt[0] === ORG_LOCATION_ID) {
984
+ orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
985
+ node.nodeValue = "";
986
+ node["s-en"] = childIdSplt[3];
987
+ }
988
+ }
989
+ };
990
+ var createSimpleVNode = (vnode) => {
991
+ const defaultVNode = {
992
+ $flags$: 0,
993
+ $hostId$: null,
994
+ $nodeId$: null,
995
+ $depth$: null,
996
+ $index$: "0",
997
+ $elm$: null,
998
+ $attrs$: null,
999
+ $children$: null,
1000
+ $key$: null,
1001
+ $name$: null,
1002
+ $tag$: null,
1003
+ $text$: null
1004
+ };
1005
+ return { ...defaultVNode, ...vnode };
1006
+ };
1007
+ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
1008
+ node["s-sr"] = true;
1009
+ childVNode.$name$ = slotName || null;
1010
+ childVNode.$tag$ = "slot";
1011
+ const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
1012
+ if (shadowRootNodes && win.document) {
1013
+ const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
1014
+ if (childVNode.$name$) {
1015
+ childVNode.$elm$.setAttribute("name", slotName);
1016
+ }
1017
+ if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
1018
+ internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
1019
+ } else {
1020
+ internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
1021
+ }
1022
+ addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
1023
+ node.remove();
1024
+ if (childVNode.$depth$ === "0") {
1025
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1026
+ }
1027
+ } else {
1028
+ const slot = childVNode.$elm$;
1029
+ const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
1030
+ addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
1031
+ patchSlotNode(node);
1032
+ if (shouldMove) {
1033
+ parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1034
+ }
1035
+ }
1036
+ childRenderNodes.push(childVNode);
1037
+ slotNodes.push(childVNode);
1038
+ if (!parentVNode.$children$) {
1039
+ parentVNode.$children$ = [];
1040
+ }
1041
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1042
+ }
1043
+ var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1044
+ var _a, _b;
1045
+ let slottedNode = slotNode.nextSibling;
1046
+ slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1047
+ if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
1048
+ do {
1049
+ if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
1050
+ slottedNode["s-sn"] = slotName;
1051
+ slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1052
+ }
1053
+ slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
1054
+ } while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
1055
+ };
1056
+ var findCorrespondingNode = (node, type) => {
1057
+ let sibling = node;
1058
+ do {
1059
+ sibling = sibling.nextSibling;
1060
+ } while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
1061
+ return sibling;
1062
+ };
1063
+
1064
+ // src/runtime/normalize-watchers.ts
1065
+ var normalizeWatchers = (raw) => {
1066
+ if (!raw) return void 0;
1067
+ const keys = Object.keys(raw);
1068
+ if (keys.length === 0) return void 0;
1069
+ let hasLegacy = false;
1070
+ for (const propName of keys) {
1071
+ if (hasLegacy) break;
1072
+ for (const h2 of raw[propName]) {
1073
+ if (typeof h2 === "string") {
1074
+ hasLegacy = true;
1075
+ break;
1076
+ }
1077
+ }
1078
+ }
1079
+ if (!hasLegacy) return raw;
1080
+ const out = {};
1081
+ for (const propName of keys) {
1082
+ out[propName] = raw[propName].map(
1083
+ (h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
1084
+ );
1085
+ }
1086
+ return out;
1087
+ };
1088
+
1089
+ // src/utils/remote-value.ts
1090
+ var RemoteValue = class _RemoteValue {
1091
+ /**
1092
+ * Deserializes a LocalValue serialized object back to its original JavaScript representation
1093
+ *
1094
+ * @param serialized The serialized LocalValue object
1095
+ * @returns The original JavaScript value/object
1096
+ */
1097
+ static fromLocalValue(serialized) {
1098
+ const type = serialized[TYPE_CONSTANT];
1099
+ const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
1100
+ switch (type) {
1101
+ case "string" /* String */:
1102
+ return value;
1103
+ case "boolean" /* Boolean */:
1104
+ return value;
1105
+ case "bigint" /* BigInt */:
1106
+ return BigInt(value);
1107
+ case "undefined" /* Undefined */:
1108
+ return void 0;
1109
+ case "null" /* Null */:
1110
+ return null;
1111
+ case "number" /* Number */:
1112
+ if (value === "NaN") return NaN;
1113
+ if (value === "-0") return -0;
1114
+ if (value === "Infinity") return Infinity;
1115
+ if (value === "-Infinity") return -Infinity;
1116
+ return value;
1117
+ case "array" /* Array */:
1118
+ return value.map((item) => _RemoteValue.fromLocalValue(item));
1119
+ case "date" /* Date */:
1120
+ return new Date(value);
1121
+ case "map" /* Map */:
1122
+ const map = /* @__PURE__ */ new Map();
1123
+ for (const [key, val] of value) {
1124
+ const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
1125
+ const deserializedValue = _RemoteValue.fromLocalValue(val);
1126
+ map.set(deserializedKey, deserializedValue);
1127
+ }
1128
+ return map;
1129
+ case "object" /* Object */:
1130
+ const obj = {};
1131
+ for (const [key, val] of value) {
1132
+ obj[key] = _RemoteValue.fromLocalValue(val);
1133
+ }
1134
+ return obj;
1135
+ case "regexp" /* RegularExpression */:
1136
+ const { pattern, flags } = value;
1137
+ return new RegExp(pattern, flags);
1138
+ case "set" /* Set */:
1139
+ const set = /* @__PURE__ */ new Set();
1140
+ for (const item of value) {
1141
+ set.add(_RemoteValue.fromLocalValue(item));
1142
+ }
1143
+ return set;
1144
+ case "symbol" /* Symbol */:
1145
+ return Symbol(value);
1146
+ default:
1147
+ throw new Error(`Unsupported type: ${type}`);
1148
+ }
1149
+ }
1150
+ /**
1151
+ * Utility method to deserialize multiple LocalValues at once
1152
+ *
1153
+ * @param serializedValues Array of serialized LocalValue objects
1154
+ * @returns Array of deserialized JavaScript values
1155
+ */
1156
+ static fromLocalValueArray(serializedValues) {
1157
+ return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
1158
+ }
1159
+ /**
1160
+ * Verifies if the given object matches the structure of a serialized LocalValue
1161
+ *
1162
+ * @param obj Object to verify
1163
+ * @returns boolean indicating if the object has LocalValue structure
1164
+ */
1165
+ static isLocalValueObject(obj) {
1166
+ if (typeof obj !== "object" || obj === null) {
1167
+ return false;
1168
+ }
1169
+ if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
1170
+ return false;
1171
+ }
1172
+ const type = obj[TYPE_CONSTANT];
1173
+ const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
1174
+ if (!hasTypeProperty) {
1175
+ return false;
1176
+ }
1177
+ if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
1178
+ return obj.hasOwnProperty(VALUE_CONSTANT);
1179
+ }
1180
+ return true;
1181
+ }
1182
+ };
1183
+
1184
+ // src/utils/serialize.ts
1185
+ function decodeBase64Unicode(base64) {
1186
+ const binary = atob(base64);
1187
+ const bytes = new Uint8Array(binary.length);
1188
+ for (let i2 = 0; i2 < binary.length; i2++) {
1189
+ bytes[i2] = binary.charCodeAt(i2);
1190
+ }
1191
+ return new TextDecoder().decode(bytes);
1192
+ }
1193
+ function deserializeProperty(value) {
1194
+ if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
1195
+ return value;
1196
+ }
1197
+ return RemoteValue.fromLocalValue(JSON.parse(decodeBase64Unicode(value.slice(SERIALIZED_PREFIX.length))));
1198
+ }
1199
+
1200
+ // src/runtime/parse-property-value.ts
1201
+ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
1202
+ if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
1203
+ propValue = deserializeProperty(propValue);
1204
+ return propValue;
1205
+ }
1206
+ if (propValue != null && !isComplexType(propValue)) {
1207
+ if (propType & 4 /* Boolean */) {
1208
+ if (isFormAssociated && typeof propValue === "string") {
1209
+ return propValue === "" || !!propValue;
1210
+ } else {
1211
+ return propValue === "false" ? false : propValue === "" || !!propValue;
1212
+ }
1213
+ }
1214
+ if (propType & 2 /* Number */) {
1215
+ return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
1216
+ }
1217
+ if (propType & 1 /* String */) {
1218
+ return String(propValue);
1219
+ }
1220
+ return propValue;
1221
+ }
1222
+ return propValue;
1223
+ };
1224
+ var getElement = (ref) => {
1225
+ var _a;
1226
+ return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
1227
+ };
1228
+
1229
+ // src/runtime/event-emitter.ts
1230
+ var createEvent = (ref, name, flags) => {
1231
+ const elm = getElement(ref);
1232
+ return {
1233
+ emit: (detail) => {
1234
+ return emitEvent(elm, name, {
1235
+ bubbles: true,
1236
+ composed: true,
1237
+ cancelable: true,
1238
+ detail
1239
+ });
1240
+ }
1241
+ };
1242
+ };
1243
+ var emitEvent = (elm, name, opts) => {
1244
+ const ev = plt.ce(name, opts);
1245
+ elm.dispatchEvent(ev);
1246
+ return ev;
1247
+ };
1248
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
1249
+ if (oldValue === newValue) {
1250
+ return;
1251
+ }
1252
+ let isProp = isMemberInElement(elm, memberName);
1253
+ let ln = memberName.toLowerCase();
1254
+ if (memberName === "class") {
1255
+ const classList = elm.classList;
1256
+ const oldClasses = parseClassList(oldValue);
1257
+ let newClasses = parseClassList(newValue);
1258
+ if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
1259
+ const scopeId2 = elm["s-sc"] || elm["s-si"];
1260
+ newClasses.push(scopeId2);
1261
+ oldClasses.forEach((c) => {
1262
+ if (c.startsWith(scopeId2)) newClasses.push(c);
1263
+ });
1264
+ newClasses = [...new Set(newClasses)].filter((c) => c);
1265
+ classList.add(...newClasses);
1266
+ } else {
1267
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
1268
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
1269
+ }
1270
+ } else if (memberName === "style") {
1271
+ {
1272
+ for (const prop in oldValue) {
1273
+ if (!newValue || newValue[prop] == null) {
1274
+ if (prop.includes("-")) {
1275
+ elm.style.removeProperty(prop);
1276
+ } else {
1277
+ elm.style[prop] = "";
1278
+ }
1279
+ }
1280
+ }
1281
+ }
1282
+ for (const prop in newValue) {
1283
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
1284
+ if (prop.includes("-")) {
1285
+ elm.style.setProperty(prop, newValue[prop]);
1286
+ } else {
1287
+ elm.style[prop] = newValue[prop];
1288
+ }
1289
+ }
1290
+ }
1291
+ } else if (memberName === "key") ; else if (memberName === "ref") {
1292
+ if (newValue) {
1293
+ queueRefAttachment(newValue, elm);
1294
+ }
1295
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
1296
+ if (memberName[2] === "-") {
1297
+ memberName = memberName.slice(3);
1298
+ } else if (isMemberInElement(win, ln)) {
1299
+ memberName = ln.slice(2);
1300
+ } else {
1301
+ memberName = ln[2] + memberName.slice(3);
1302
+ }
1303
+ if (oldValue || newValue) {
1304
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
1305
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
1306
+ if (oldValue) {
1307
+ plt.rel(elm, memberName, oldValue, capture);
1308
+ }
1309
+ if (newValue) {
1310
+ plt.ael(elm, memberName, newValue, capture);
1311
+ }
1312
+ }
1313
+ } else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
1314
+ const propName = memberName.slice(5);
1315
+ let attrName;
1316
+ {
1317
+ const hostRef = getHostRef(elm);
1318
+ if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
1319
+ const memberMeta = hostRef.$cmpMeta$.$members$[propName];
1320
+ if (memberMeta && memberMeta[1]) {
1321
+ attrName = memberMeta[1];
1322
+ }
1323
+ }
1324
+ }
1325
+ if (!attrName) {
1326
+ attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1327
+ }
1328
+ if (newValue == null || newValue === false) {
1329
+ if (newValue !== false || elm.getAttribute(attrName) === "") {
1330
+ elm.removeAttribute(attrName);
1331
+ }
1332
+ } else {
1333
+ elm.setAttribute(attrName, newValue === true ? "" : newValue);
1334
+ }
1335
+ return;
1336
+ } else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
1337
+ const propName = memberName.slice(5);
1338
+ try {
1339
+ elm[propName] = newValue;
1340
+ } catch (e) {
1341
+ }
1342
+ return;
1343
+ } else {
1344
+ const isComplex = isComplexType(newValue);
1345
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
1346
+ try {
1347
+ if (!elm.tagName.includes("-")) {
1348
+ const n = newValue == null ? "" : newValue;
1349
+ if (memberName === "list") {
1350
+ isProp = false;
1351
+ } else if (oldValue == null || elm[memberName] !== n) {
1352
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
1353
+ elm[memberName] = n;
1354
+ } else {
1355
+ elm.setAttribute(memberName, n);
1356
+ }
1357
+ }
1358
+ } else if (elm[memberName] !== newValue) {
1359
+ elm[memberName] = newValue;
1360
+ }
1361
+ } catch (e) {
1362
+ }
1363
+ }
1364
+ if (newValue == null || newValue === false) {
1365
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
1366
+ {
1367
+ elm.removeAttribute(memberName);
1368
+ }
1369
+ }
1370
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
1371
+ newValue = newValue === true ? "" : newValue;
1372
+ {
1373
+ elm.setAttribute(memberName, newValue);
1374
+ }
1375
+ }
1376
+ }
1377
+ };
1378
+ var parseClassListRegex = /\s/;
1379
+ var parseClassList = (value) => {
1380
+ if (typeof value === "object" && value && "baseVal" in value) {
1381
+ value = value.baseVal;
1382
+ }
1383
+ if (!value || typeof value !== "string") {
1384
+ return [];
1385
+ }
1386
+ return value.split(parseClassListRegex);
1387
+ };
1388
+ var CAPTURE_EVENT_SUFFIX = "Capture";
1389
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
1390
+
1391
+ // src/runtime/vdom/update-element.ts
1392
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
1393
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
1394
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
1395
+ const newVnodeAttrs = newVnode.$attrs$ || {};
1396
+ {
1397
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
1398
+ if (!(memberName in newVnodeAttrs)) {
1399
+ setAccessor(
1400
+ elm,
1401
+ memberName,
1402
+ oldVnodeAttrs[memberName],
1403
+ void 0,
1404
+ isSvgMode2,
1405
+ newVnode.$flags$,
1406
+ isInitialRender
1407
+ );
1408
+ }
1409
+ }
1410
+ }
1411
+ for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
1412
+ setAccessor(
1413
+ elm,
1414
+ memberName,
1415
+ oldVnodeAttrs[memberName],
1416
+ newVnodeAttrs[memberName],
1417
+ isSvgMode2,
1418
+ newVnode.$flags$,
1419
+ isInitialRender
1420
+ );
1421
+ }
1422
+ };
1423
+ function sortedAttrNames(attrNames) {
1424
+ return attrNames.includes("ref") ? (
1425
+ // we need to sort these to ensure that `'ref'` is the last attr
1426
+ [...attrNames.filter((attr) => attr !== "ref"), "ref"]
1427
+ ) : (
1428
+ // no need to sort, return the original array
1429
+ attrNames
1430
+ );
1431
+ }
1432
+ var contentRef;
1433
+ var hostTagName;
1434
+ var useNativeShadowDom = false;
1435
+ var checkSlotFallbackVisibility = false;
1436
+ var checkSlotRelocate = false;
1437
+ var isSvgMode = false;
1438
+ var refCallbacksToRemove = [];
1439
+ var refCallbacksToAttach = [];
1440
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
1441
+ var _a;
1442
+ const newVNode2 = newParentVNode.$children$[childIndex];
1443
+ let i2 = 0;
1444
+ let elm;
1445
+ let childNode;
1446
+ let oldVNode;
1447
+ if (!useNativeShadowDom) {
1448
+ checkSlotRelocate = true;
1449
+ if (newVNode2.$tag$ === "slot") {
1450
+ newVNode2.$flags$ |= newVNode2.$children$ ? (
1451
+ // slot element has fallback content
1452
+ // still create an element that "mocks" the slot element
1453
+ 2 /* isSlotFallback */
1454
+ ) : (
1455
+ // slot element does not have fallback content
1456
+ // create an html comment we'll use to always reference
1457
+ // where actual slot content should sit next to
1458
+ 1 /* isSlotReference */
1459
+ );
1460
+ }
1461
+ }
1462
+ if (newVNode2.$text$ != null) {
1463
+ elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
1464
+ } else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
1465
+ elm = newVNode2.$elm$ = win.document.createTextNode("");
1466
+ {
1467
+ updateElement(null, newVNode2, isSvgMode);
1468
+ }
1469
+ } else {
1470
+ if (!isSvgMode) {
1471
+ isSvgMode = newVNode2.$tag$ === "svg";
1472
+ }
1473
+ if (!win.document) {
1474
+ throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
1475
+ }
1476
+ elm = newVNode2.$elm$ = win.document.createElementNS(
1477
+ isSvgMode ? SVG_NS : HTML_NS,
1478
+ !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
1479
+ ) ;
1480
+ if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
1481
+ isSvgMode = false;
1482
+ }
1483
+ {
1484
+ updateElement(null, newVNode2, isSvgMode);
1485
+ }
1486
+ if (newVNode2.$children$) {
1487
+ const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
1488
+ for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
1489
+ childNode = createElm(oldParentVNode, newVNode2, i2);
1490
+ if (childNode) {
1491
+ appendTarget.appendChild(childNode);
1492
+ }
1493
+ }
1494
+ }
1495
+ {
1496
+ if (newVNode2.$tag$ === "svg") {
1497
+ isSvgMode = false;
1498
+ } else if (elm.tagName === "foreignObject") {
1499
+ isSvgMode = true;
1500
+ }
1501
+ }
1502
+ }
1503
+ elm["s-hn"] = hostTagName;
1504
+ {
1505
+ if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
1506
+ elm["s-sr"] = true;
1507
+ elm["s-cr"] = contentRef;
1508
+ elm["s-sn"] = newVNode2.$name$ || "";
1509
+ elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
1510
+ patchSlotNode(elm);
1511
+ oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
1512
+ if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
1513
+ relocateToHostRoot(oldParentVNode.$elm$);
1514
+ }
1515
+ }
1516
+ }
1517
+ return elm;
1518
+ };
1519
+ var relocateToHostRoot = (parentElm) => {
1520
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
1521
+ const host = parentElm.closest(hostTagName.toLowerCase());
1522
+ if (host != null) {
1523
+ const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
1524
+ (ref) => ref["s-cr"]
1525
+ );
1526
+ const childNodeArray = Array.from(
1527
+ parentElm.__childNodes || parentElm.childNodes
1528
+ );
1529
+ for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
1530
+ if (childNode["s-sh"] != null) {
1531
+ insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
1532
+ childNode["s-sh"] = void 0;
1533
+ checkSlotRelocate = true;
1534
+ }
1535
+ }
1536
+ }
1537
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
1538
+ };
1539
+ var putBackInOriginalLocation = (parentElm, recursive) => {
1540
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
1541
+ const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
1542
+ if (parentElm["s-sr"]) {
1543
+ let node = parentElm;
1544
+ while (node = node.nextSibling) {
1545
+ if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
1546
+ oldSlotChildNodes.push(node);
1547
+ }
1548
+ }
1549
+ }
1550
+ for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
1551
+ const childNode = oldSlotChildNodes[i2];
1552
+ if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
1553
+ insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
1554
+ childNode["s-ol"].remove();
1555
+ childNode["s-ol"] = void 0;
1556
+ childNode["s-sh"] = void 0;
1557
+ checkSlotRelocate = true;
1558
+ }
1559
+ if (recursive) {
1560
+ putBackInOriginalLocation(childNode, recursive);
1561
+ }
1562
+ }
1563
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
1564
+ };
1565
+ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
1566
+ let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
1567
+ let childNode;
1568
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
1569
+ containerElm = containerElm.shadowRoot;
1570
+ }
1571
+ if (parentVNode.$tag$ === "template") {
1572
+ containerElm = containerElm.content;
1573
+ }
1574
+ for (; startIdx <= endIdx; ++startIdx) {
1575
+ if (vnodes[startIdx]) {
1576
+ childNode = createElm(null, parentVNode, startIdx);
1577
+ if (childNode) {
1578
+ vnodes[startIdx].$elm$ = childNode;
1579
+ insertBefore(containerElm, childNode, referenceNode(before) );
1580
+ }
1581
+ }
1582
+ }
1583
+ };
1584
+ var removeVnodes = (vnodes, startIdx, endIdx) => {
1585
+ for (let index = startIdx; index <= endIdx; ++index) {
1586
+ const vnode = vnodes[index];
1587
+ if (vnode) {
1588
+ const elm = vnode.$elm$;
1589
+ nullifyVNodeRefs(vnode);
1590
+ if (elm) {
1591
+ {
1592
+ checkSlotFallbackVisibility = true;
1593
+ if (elm["s-ol"]) {
1594
+ elm["s-ol"].remove();
1595
+ } else {
1596
+ putBackInOriginalLocation(elm, true);
1597
+ }
1598
+ }
1599
+ elm.remove();
1600
+ }
1601
+ }
1602
+ }
1603
+ };
1604
+ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
1605
+ let oldStartIdx = 0;
1606
+ let newStartIdx = 0;
1607
+ let idxInOld = 0;
1608
+ let i2 = 0;
1609
+ let oldEndIdx = oldCh.length - 1;
1610
+ let oldStartVnode = oldCh[0];
1611
+ let oldEndVnode = oldCh[oldEndIdx];
1612
+ let newEndIdx = newCh.length - 1;
1613
+ let newStartVnode = newCh[0];
1614
+ let newEndVnode = newCh[newEndIdx];
1615
+ let node;
1616
+ let elmToMove;
1617
+ const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
1618
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
1619
+ if (oldStartVnode == null) {
1620
+ oldStartVnode = oldCh[++oldStartIdx];
1621
+ } else if (oldEndVnode == null) {
1622
+ oldEndVnode = oldCh[--oldEndIdx];
1623
+ } else if (newStartVnode == null) {
1624
+ newStartVnode = newCh[++newStartIdx];
1625
+ } else if (newEndVnode == null) {
1626
+ newEndVnode = newCh[--newEndIdx];
1627
+ } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
1628
+ patch(oldStartVnode, newStartVnode, isInitialRender);
1629
+ oldStartVnode = oldCh[++oldStartIdx];
1630
+ newStartVnode = newCh[++newStartIdx];
1631
+ } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
1632
+ patch(oldEndVnode, newEndVnode, isInitialRender);
1633
+ oldEndVnode = oldCh[--oldEndIdx];
1634
+ newEndVnode = newCh[--newEndIdx];
1635
+ } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
1636
+ if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
1637
+ putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
1638
+ }
1639
+ patch(oldStartVnode, newEndVnode, isInitialRender);
1640
+ insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
1641
+ oldStartVnode = oldCh[++oldStartIdx];
1642
+ newEndVnode = newCh[--newEndIdx];
1643
+ } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
1644
+ if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
1645
+ putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
1646
+ }
1647
+ patch(oldEndVnode, newStartVnode, isInitialRender);
1648
+ insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
1649
+ oldEndVnode = oldCh[--oldEndIdx];
1650
+ newStartVnode = newCh[++newStartIdx];
1651
+ } else {
1652
+ idxInOld = -1;
1653
+ {
1654
+ for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
1655
+ if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
1656
+ idxInOld = i2;
1657
+ break;
1658
+ }
1659
+ }
1660
+ }
1661
+ if (idxInOld >= 0) {
1662
+ elmToMove = oldCh[idxInOld];
1663
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
1664
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
1665
+ } else {
1666
+ patch(elmToMove, newStartVnode, isInitialRender);
1667
+ oldCh[idxInOld] = void 0;
1668
+ node = elmToMove.$elm$;
1669
+ }
1670
+ newStartVnode = newCh[++newStartIdx];
1671
+ } else {
1672
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
1673
+ newStartVnode = newCh[++newStartIdx];
1674
+ }
1675
+ if (node) {
1676
+ {
1677
+ insertBefore(
1678
+ referenceNode(oldStartVnode.$elm$).parentNode,
1679
+ node,
1680
+ referenceNode(oldStartVnode.$elm$)
1681
+ );
1682
+ }
1683
+ }
1684
+ }
1685
+ }
1686
+ if (oldStartIdx > oldEndIdx) {
1687
+ addVnodes(
1688
+ parentElm,
1689
+ newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
1690
+ newVNode2,
1691
+ newCh,
1692
+ newStartIdx,
1693
+ newEndIdx
1694
+ );
1695
+ } else if (newStartIdx > newEndIdx) {
1696
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
1697
+ }
1698
+ };
1699
+ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
1700
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
1701
+ if (leftVNode.$tag$ === "slot") {
1702
+ return leftVNode.$name$ === rightVNode.$name$;
1703
+ }
1704
+ if (!isInitialRender) {
1705
+ return leftVNode.$key$ === rightVNode.$key$;
1706
+ }
1707
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
1708
+ leftVNode.$key$ = rightVNode.$key$;
1709
+ }
1710
+ return true;
1711
+ }
1712
+ return false;
1713
+ };
1714
+ var referenceNode = (node) => node && node["s-ol"] || node;
1715
+ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1716
+ const elm = newVNode2.$elm$ = oldVNode.$elm$;
1717
+ const oldChildren = oldVNode.$children$;
1718
+ const newChildren = newVNode2.$children$;
1719
+ const tag = newVNode2.$tag$;
1720
+ const text = newVNode2.$text$;
1721
+ let defaultHolder;
1722
+ if (text == null) {
1723
+ {
1724
+ isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
1725
+ }
1726
+ {
1727
+ if (tag === "slot" && !useNativeShadowDom) {
1728
+ if (oldVNode.$name$ !== newVNode2.$name$) {
1729
+ newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
1730
+ relocateToHostRoot(newVNode2.$elm$.parentElement);
1731
+ }
1732
+ }
1733
+ updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
1734
+ }
1735
+ if (oldChildren !== null && newChildren !== null) {
1736
+ updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
1737
+ } else if (newChildren !== null) {
1738
+ if (oldVNode.$text$ !== null) {
1739
+ elm.textContent = "";
1740
+ }
1741
+ addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
1742
+ } else if (
1743
+ // don't do this on initial render as it can cause non-hydrated content to be removed
1744
+ !isInitialRender && BUILD.updatable && oldChildren !== null
1745
+ ) {
1746
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
1747
+ } else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
1748
+ newVNode2.$children$ = oldChildren;
1749
+ }
1750
+ if (isSvgMode && tag === "svg") {
1751
+ isSvgMode = false;
1752
+ }
1753
+ } else if ((defaultHolder = elm["s-cr"])) {
1754
+ defaultHolder.parentNode.textContent = text;
1755
+ } else if (oldVNode.$text$ !== text) {
1756
+ elm.data = text;
1757
+ }
1758
+ };
1759
+ var relocateNodes = [];
1760
+ var markSlotContentForRelocation = (elm) => {
1761
+ let node;
1762
+ let hostContentNodes;
1763
+ let j;
1764
+ const children = elm.__childNodes || elm.childNodes;
1765
+ for (const childNode of children) {
1766
+ if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
1767
+ hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
1768
+ const slotName = childNode["s-sn"];
1769
+ for (j = hostContentNodes.length - 1; j >= 0; j--) {
1770
+ node = hostContentNodes[j];
1771
+ if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!node["s-sh"] || node["s-sh"] !== childNode["s-hn"])) {
1772
+ if (isNodeLocatedInSlot(node, slotName)) {
1773
+ let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1774
+ checkSlotFallbackVisibility = true;
1775
+ node["s-sn"] = node["s-sn"] || slotName;
1776
+ if (relocateNodeData) {
1777
+ relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
1778
+ relocateNodeData.$slotRefNode$ = childNode;
1779
+ } else {
1780
+ node["s-sh"] = childNode["s-hn"];
1781
+ relocateNodes.push({
1782
+ $slotRefNode$: childNode,
1783
+ $nodeToRelocate$: node
1784
+ });
1785
+ }
1786
+ if (node["s-sr"]) {
1787
+ relocateNodes.map((relocateNode) => {
1788
+ if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
1789
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1790
+ if (relocateNodeData && !relocateNode.$slotRefNode$) {
1791
+ relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1792
+ }
1793
+ }
1794
+ });
1795
+ }
1796
+ } else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1797
+ relocateNodes.push({
1798
+ $nodeToRelocate$: node
1799
+ });
1800
+ }
1801
+ }
1802
+ }
1803
+ }
1804
+ if (childNode.nodeType === 1 /* ElementNode */) {
1805
+ markSlotContentForRelocation(childNode);
1806
+ }
1807
+ }
1808
+ };
1809
+ var nullifyVNodeRefs = (vNode) => {
1810
+ {
1811
+ if (vNode.$attrs$ && vNode.$attrs$.ref) {
1812
+ refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
1813
+ }
1814
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1815
+ }
1816
+ };
1817
+ var queueRefAttachment = (refCallback, elm) => {
1818
+ {
1819
+ refCallbacksToAttach.push(() => refCallback(elm));
1820
+ }
1821
+ };
1822
+ var flushQueuedRefCallbacks = () => {
1823
+ {
1824
+ refCallbacksToRemove.forEach((cb) => cb());
1825
+ refCallbacksToRemove.length = 0;
1826
+ refCallbacksToAttach.forEach((cb) => cb());
1827
+ refCallbacksToAttach.length = 0;
1828
+ }
1829
+ };
1830
+ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
1831
+ {
1832
+ if (typeof newNode["s-sn"] === "string") {
1833
+ parent.insertBefore(newNode, reference);
1834
+ const { slotNode } = findSlotFromSlottedNode(newNode);
1835
+ if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
1836
+ return newNode;
1837
+ }
1838
+ }
1839
+ if (parent.__insertBefore) {
1840
+ return parent.__insertBefore(newNode, reference);
1841
+ } else {
1842
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
1843
+ }
1844
+ };
1845
+ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1846
+ var _a, _b, _c, _d, _e;
1847
+ const hostElm = hostRef.$hostElement$;
1848
+ const cmpMeta = hostRef.$cmpMeta$;
1849
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1850
+ const isHostElement = isHost(renderFnResults);
1851
+ const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
1852
+ hostTagName = hostElm.tagName;
1853
+ if (cmpMeta.$attrsToReflect$) {
1854
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1855
+ cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
1856
+ {
1857
+ rootVnode.$attrs$[attribute] = hostElm[propName];
1858
+ }
1859
+ });
1860
+ }
1861
+ if (isInitialLoad && rootVnode.$attrs$) {
1862
+ for (const key of Object.keys(rootVnode.$attrs$)) {
1863
+ if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
1864
+ rootVnode.$attrs$[key] = hostElm[key];
1865
+ }
1866
+ }
1867
+ }
1868
+ rootVnode.$tag$ = null;
1869
+ rootVnode.$flags$ |= 4 /* isHost */;
1870
+ hostRef.$vnode$ = rootVnode;
1871
+ rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
1872
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
1873
+ {
1874
+ contentRef = hostElm["s-cr"];
1875
+ checkSlotFallbackVisibility = false;
1876
+ }
1877
+ patch(oldVNode, rootVnode, isInitialLoad);
1878
+ {
1879
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
1880
+ if (checkSlotRelocate) {
1881
+ markSlotContentForRelocation(rootVnode.$elm$);
1882
+ for (const relocateData of relocateNodes) {
1883
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
1884
+ if (!nodeToRelocate["s-ol"] && win.document) {
1885
+ const orgLocationNode = win.document.createTextNode("");
1886
+ orgLocationNode["s-nr"] = nodeToRelocate;
1887
+ insertBefore(
1888
+ nodeToRelocate.parentNode,
1889
+ nodeToRelocate["s-ol"] = orgLocationNode,
1890
+ nodeToRelocate,
1891
+ isInitialLoad
1892
+ );
1893
+ }
1894
+ }
1895
+ for (const relocateData of relocateNodes) {
1896
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
1897
+ const slotRefNode = relocateData.$slotRefNode$;
1898
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {
1899
+ nodeToRelocate["s-ih"] = (_a = nodeToRelocate.hidden) != null ? _a : false;
1900
+ }
1901
+ if (slotRefNode) {
1902
+ const parentNodeRef = slotRefNode.parentNode;
1903
+ let insertBeforeNode = slotRefNode.nextSibling;
1904
+ if (insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
1905
+ let orgLocationNode = (_b = nodeToRelocate["s-ol"]) == null ? void 0 : _b.previousSibling;
1906
+ while (orgLocationNode) {
1907
+ let refNode = (_c = orgLocationNode["s-nr"]) != null ? _c : null;
1908
+ if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
1909
+ refNode = refNode.nextSibling;
1910
+ while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
1911
+ refNode = refNode == null ? void 0 : refNode.nextSibling;
1912
+ }
1913
+ if (!refNode || !refNode["s-nr"]) {
1914
+ insertBeforeNode = refNode;
1915
+ break;
1916
+ }
1917
+ }
1918
+ orgLocationNode = orgLocationNode.previousSibling;
1919
+ }
1920
+ }
1921
+ const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
1922
+ const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
1923
+ if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
1924
+ if (nodeToRelocate !== insertBeforeNode) {
1925
+ insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode, isInitialLoad);
1926
+ if (nodeToRelocate.nodeType === 8 /* CommentNode */ && nodeToRelocate.nodeValue.startsWith("s-nt-")) {
1927
+ const textNode = win.document.createTextNode(nodeToRelocate.nodeValue.replace(/^s-nt-/, ""));
1928
+ textNode["s-hn"] = nodeToRelocate["s-hn"];
1929
+ textNode["s-sn"] = nodeToRelocate["s-sn"];
1930
+ textNode["s-sh"] = nodeToRelocate["s-sh"];
1931
+ textNode["s-sr"] = nodeToRelocate["s-sr"];
1932
+ textNode["s-ol"] = nodeToRelocate["s-ol"];
1933
+ textNode["s-ol"]["s-nr"] = textNode;
1934
+ insertBefore(nodeToRelocate.parentNode, textNode, nodeToRelocate, isInitialLoad);
1935
+ nodeToRelocate.parentNode.removeChild(nodeToRelocate);
1936
+ }
1937
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
1938
+ nodeToRelocate.hidden = (_d = nodeToRelocate["s-ih"]) != null ? _d : false;
1939
+ }
1940
+ }
1941
+ }
1942
+ nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
1943
+ } else if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1944
+ nodeToRelocate.hidden = true;
1945
+ }
1946
+ }
1947
+ }
1948
+ if (checkSlotFallbackVisibility) {
1949
+ updateFallbackSlotVisibility(rootVnode.$elm$);
1950
+ }
1951
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
1952
+ relocateNodes.length = 0;
1953
+ }
1954
+ if (!useNativeShadowDom && !(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && hostElm["s-cr"]) {
1955
+ const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
1956
+ for (const childNode of children) {
1957
+ if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
1958
+ if (isInitialLoad && childNode["s-ih"] == null) {
1959
+ childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
1960
+ }
1961
+ if (childNode.nodeType === 1 /* ElementNode */) {
1962
+ childNode.hidden = true;
1963
+ } else if (childNode.nodeType === 3 /* TextNode */ && !!childNode.nodeValue.trim()) {
1964
+ const textCommentNode = win.document.createComment("s-nt-" + childNode.nodeValue);
1965
+ textCommentNode["s-sn"] = childNode["s-sn"];
1966
+ insertBefore(childNode.parentNode, textCommentNode, childNode, isInitialLoad);
1967
+ childNode.parentNode.removeChild(childNode);
1968
+ }
1969
+ }
1970
+ }
1971
+ }
1972
+ contentRef = void 0;
1973
+ flushQueuedRefCallbacks();
1974
+ };
1975
+
1976
+ // src/runtime/update-component.ts
1977
+ var attachToAncestor = (hostRef, ancestorComponent) => {
1978
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
1979
+ const index = ancestorComponent["s-p"].push(
1980
+ new Promise(
1981
+ (r) => hostRef.$onRenderResolve$ = () => {
1982
+ ancestorComponent["s-p"].splice(index - 1, 1);
1983
+ r();
1984
+ }
1985
+ )
1986
+ );
1987
+ }
1988
+ };
1989
+ var scheduleUpdate = (hostRef, isInitialLoad) => {
1990
+ {
1991
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1992
+ }
1993
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1994
+ hostRef.$flags$ |= 512 /* needsRerender */;
1995
+ return;
1996
+ }
1997
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1998
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1999
+ if (isInitialLoad) {
2000
+ queueMicrotask(() => {
2001
+ dispatch();
2002
+ });
2003
+ return;
2004
+ }
2005
+ return writeTask(dispatch) ;
2006
+ };
2007
+ var dispatchHooks = (hostRef, isInitialLoad) => {
2008
+ const elm = hostRef.$hostElement$;
2009
+ const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
2010
+ const instance = hostRef.$lazyInstance$ ;
2011
+ if (!instance) {
2012
+ throw new Error(
2013
+ `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`
2014
+ );
2015
+ }
2016
+ let maybePromise;
2017
+ if (isInitialLoad) {
2018
+ {
2019
+ if (hostRef.$deferredConnectedCallback$) {
2020
+ hostRef.$deferredConnectedCallback$ = false;
2021
+ safeCall(instance, "connectedCallback", void 0, elm);
2022
+ }
2023
+ {
2024
+ hostRef.$flags$ |= 256 /* isListenReady */;
2025
+ if (hostRef.$queuedListeners$) {
2026
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
2027
+ hostRef.$queuedListeners$ = void 0;
2028
+ }
2029
+ }
2030
+ if (hostRef.$fetchedCbList$.length) {
2031
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
2032
+ }
2033
+ }
2034
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
2035
+ } else {
2036
+ maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
2037
+ }
2038
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
2039
+ endSchedule();
2040
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
2041
+ };
2042
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
2043
+ console.error(err);
2044
+ fn();
2045
+ }) : fn();
2046
+ var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
2047
+ var updateComponent = async (hostRef, instance, isInitialLoad) => {
2048
+ var _a;
2049
+ const elm = hostRef.$hostElement$;
2050
+ const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
2051
+ const rc = elm["s-rc"];
2052
+ if (isInitialLoad) {
2053
+ attachStyles(hostRef);
2054
+ }
2055
+ const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
2056
+ {
2057
+ callRender(hostRef, instance, elm, isInitialLoad);
2058
+ }
2059
+ if (rc) {
2060
+ rc.map((cb) => cb());
2061
+ elm["s-rc"] = void 0;
2062
+ }
2063
+ endRender();
2064
+ endUpdate();
2065
+ {
2066
+ const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
2067
+ const postUpdate = () => postUpdateComponent(hostRef);
2068
+ if (childrenPromises.length === 0) {
2069
+ postUpdate();
2070
+ } else {
2071
+ Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
2072
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
2073
+ childrenPromises.length = 0;
2074
+ }
2075
+ }
2076
+ };
2077
+ var callRender = (hostRef, instance, elm, isInitialLoad) => {
2078
+ try {
2079
+ instance = instance.render() ;
2080
+ {
2081
+ hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
2082
+ }
2083
+ {
2084
+ hostRef.$flags$ |= 2 /* hasRendered */;
2085
+ }
2086
+ {
2087
+ {
2088
+ {
2089
+ renderVdom(hostRef, instance, isInitialLoad);
2090
+ }
2091
+ }
2092
+ }
2093
+ } catch (e) {
2094
+ consoleError(e, hostRef.$hostElement$);
2095
+ }
2096
+ return null;
2097
+ };
2098
+ var postUpdateComponent = (hostRef) => {
2099
+ const tagName = hostRef.$cmpMeta$.$tagName$;
2100
+ const elm = hostRef.$hostElement$;
2101
+ const endPostUpdate = createTime("postUpdate", tagName);
2102
+ const instance = hostRef.$lazyInstance$ ;
2103
+ const ancestorComponent = hostRef.$ancestorComponent$;
2104
+ safeCall(instance, "componentDidRender", void 0, elm);
2105
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
2106
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
2107
+ {
2108
+ addHydratedFlag(elm);
2109
+ }
2110
+ safeCall(instance, "componentDidLoad", void 0, elm);
2111
+ endPostUpdate();
2112
+ {
2113
+ hostRef.$onReadyResolve$(elm);
2114
+ if (!ancestorComponent) {
2115
+ appDidLoad();
2116
+ }
2117
+ }
2118
+ } else {
2119
+ safeCall(instance, "componentDidUpdate", void 0, elm);
2120
+ endPostUpdate();
2121
+ }
2122
+ {
2123
+ hostRef.$onInstanceResolve$(elm);
2124
+ }
2125
+ {
2126
+ if (hostRef.$onRenderResolve$) {
2127
+ hostRef.$onRenderResolve$();
2128
+ hostRef.$onRenderResolve$ = void 0;
2129
+ }
2130
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
2131
+ nextTick(() => scheduleUpdate(hostRef, false));
2132
+ }
2133
+ hostRef.$flags$ &= -517;
2134
+ }
2135
+ };
2136
+ var appDidLoad = (who) => {
2137
+ var _a;
2138
+ nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
2139
+ {
2140
+ if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
2141
+ plt.$orgLocNodes$.clear();
2142
+ }
2143
+ }
2144
+ };
2145
+ var safeCall = (instance, method, arg, elm) => {
2146
+ if (instance && instance[method]) {
2147
+ try {
2148
+ return instance[method](arg);
2149
+ } catch (e) {
2150
+ consoleError(e, elm);
2151
+ }
2152
+ }
2153
+ return void 0;
2154
+ };
2155
+ var addHydratedFlag = (elm) => {
2156
+ var _a;
2157
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
2158
+ };
2159
+
2160
+ // src/runtime/set-value.ts
2161
+ var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
2162
+ var setValue = (ref, propName, newVal, cmpMeta) => {
2163
+ const hostRef = getHostRef(ref);
2164
+ if (!hostRef) {
2165
+ return;
2166
+ }
2167
+ if (!hostRef) {
2168
+ throw new Error(
2169
+ `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/stenciljs/core/issues/5457).`
2170
+ );
2171
+ }
2172
+ const elm = hostRef.$hostElement$ ;
2173
+ const oldVal = hostRef.$instanceValues$.get(propName);
2174
+ const flags = hostRef.$flags$;
2175
+ const instance = hostRef.$lazyInstance$ ;
2176
+ newVal = parsePropertyValue(
2177
+ newVal,
2178
+ cmpMeta.$members$[propName][0],
2179
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
2180
+ );
2181
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
2182
+ const didValueChange = newVal !== oldVal && !areBothNaN;
2183
+ if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
2184
+ hostRef.$instanceValues$.set(propName, newVal);
2185
+ if (cmpMeta.$watchers$) {
2186
+ const watchMethods = cmpMeta.$watchers$[propName];
2187
+ if (watchMethods) {
2188
+ watchMethods.map((watcher) => {
2189
+ try {
2190
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
2191
+ if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
2192
+ if (!instance) {
2193
+ hostRef.$fetchedCbList$.push(() => {
2194
+ hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
2195
+ });
2196
+ } else {
2197
+ instance[watchMethodName](newVal, oldVal, propName);
2198
+ }
2199
+ }
2200
+ } catch (e) {
2201
+ consoleError(e, elm);
2202
+ }
2203
+ });
2204
+ }
2205
+ }
2206
+ if (flags & 2 /* hasRendered */) {
2207
+ if (instance.componentShouldUpdate) {
2208
+ const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
2209
+ if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
2210
+ return;
2211
+ }
2212
+ }
2213
+ if (!(flags & 16 /* isQueuedForUpdate */)) {
2214
+ scheduleUpdate(hostRef, false);
2215
+ }
2216
+ }
2217
+ }
2218
+ };
2219
+
2220
+ // src/runtime/proxy-component.ts
2221
+ var proxyComponent = (Cstr, cmpMeta, flags) => {
2222
+ var _a, _b;
2223
+ const prototype = Cstr.prototype;
2224
+ if (cmpMeta.$flags$ & 64 /* formAssociated */ && flags & 1 /* isElementConstructor */) {
2225
+ FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((cbName) => {
2226
+ Object.defineProperty(prototype, cbName, {
2227
+ value(...args) {
2228
+ var _a2;
2229
+ const hostRef = getHostRef(this);
2230
+ const instance = hostRef == null ? void 0 : hostRef.$lazyInstance$ ;
2231
+ if (!instance) {
2232
+ (_a2 = hostRef == null ? void 0 : hostRef.$onReadyPromise$) == null ? void 0 : _a2.then((asyncInstance) => {
2233
+ const cb = asyncInstance[cbName];
2234
+ typeof cb === "function" && cb.call(asyncInstance, ...args);
2235
+ });
2236
+ } else {
2237
+ const cb = instance[cbName] ;
2238
+ typeof cb === "function" && cb.call(instance, ...args);
2239
+ }
2240
+ }
2241
+ });
2242
+ });
2243
+ }
2244
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
2245
+ {
2246
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
2247
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
2248
+ }
2249
+ if (Cstr.deserializers && !cmpMeta.$deserializers$) {
2250
+ cmpMeta.$deserializers$ = Cstr.deserializers;
2251
+ }
2252
+ if (Cstr.serializers && !cmpMeta.$serializers$) {
2253
+ cmpMeta.$serializers$ = Cstr.serializers;
2254
+ }
2255
+ }
2256
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
2257
+ members.map(([memberName, [memberFlags]]) => {
2258
+ if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
2259
+ const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
2260
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
2261
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
2262
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
2263
+ Object.defineProperty(prototype, memberName, {
2264
+ get() {
2265
+ {
2266
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
2267
+ return getValue(this, memberName);
2268
+ }
2269
+ const ref = getHostRef(this);
2270
+ const instance = ref ? ref.$lazyInstance$ : prototype;
2271
+ if (!instance) return;
2272
+ return instance[memberName];
2273
+ }
2274
+ },
2275
+ configurable: true,
2276
+ enumerable: true
2277
+ });
2278
+ }
2279
+ Object.defineProperty(prototype, memberName, {
2280
+ set(newValue) {
2281
+ const ref = getHostRef(this);
2282
+ if (!ref) {
2283
+ return;
2284
+ }
2285
+ if (origSetter) {
2286
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
2287
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
2288
+ newValue = ref.$instanceValues$.get(memberName);
2289
+ }
2290
+ origSetter.apply(this, [
2291
+ parsePropertyValue(
2292
+ newValue,
2293
+ memberFlags,
2294
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
2295
+ )
2296
+ ]);
2297
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
2298
+ setValue(this, memberName, newValue, cmpMeta);
2299
+ return;
2300
+ }
2301
+ {
2302
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
2303
+ setValue(this, memberName, newValue, cmpMeta);
2304
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
2305
+ ref.$fetchedCbList$.push(() => {
2306
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
2307
+ ref.$lazyInstance$[memberName] = newValue;
2308
+ }
2309
+ });
2310
+ }
2311
+ return;
2312
+ }
2313
+ const setterSetVal = () => {
2314
+ const currentValue = ref.$lazyInstance$[memberName];
2315
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
2316
+ ref.$instanceValues$.set(memberName, currentValue);
2317
+ }
2318
+ ref.$lazyInstance$[memberName] = parsePropertyValue(
2319
+ newValue,
2320
+ memberFlags,
2321
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
2322
+ );
2323
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
2324
+ };
2325
+ if (ref.$lazyInstance$) {
2326
+ setterSetVal();
2327
+ } else {
2328
+ ref.$fetchedCbList$.push(() => {
2329
+ setterSetVal();
2330
+ });
2331
+ }
2332
+ }
2333
+ }
2334
+ });
2335
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
2336
+ Object.defineProperty(prototype, memberName, {
2337
+ value(...args) {
2338
+ var _a2;
2339
+ const ref = getHostRef(this);
2340
+ return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
2341
+ var _a3;
2342
+ return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
2343
+ });
2344
+ }
2345
+ });
2346
+ }
2347
+ });
2348
+ if ((flags & 1 /* isElementConstructor */)) {
2349
+ const attrNameToPropName = /* @__PURE__ */ new Map();
2350
+ prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
2351
+ plt.jmp(() => {
2352
+ var _a2;
2353
+ const propName = attrNameToPropName.get(attrName);
2354
+ const hostRef = getHostRef(this);
2355
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
2356
+ newValue = this[propName];
2357
+ delete this[propName];
2358
+ }
2359
+ if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
2360
+ this[propName] == newValue) {
2361
+ return;
2362
+ } else if (propName == null) {
2363
+ const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
2364
+ if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
2365
+ const instance = hostRef.$lazyInstance$ ;
2366
+ const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
2367
+ entry == null ? void 0 : entry.forEach((watcher) => {
2368
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
2369
+ if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
2370
+ instance[watchMethodName].call(instance, newValue, oldValue, attrName);
2371
+ }
2372
+ });
2373
+ }
2374
+ return;
2375
+ }
2376
+ const propFlags = members.find(([m]) => m === propName);
2377
+ const isBooleanTarget = propFlags && propFlags[1][0] & 4 /* Boolean */;
2378
+ const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
2379
+ if (isBooleanTarget) {
2380
+ newValue = newValue === null || newValue === "false" ? false : true;
2381
+ }
2382
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
2383
+ if (!isSpuriousBooleanRemoval && newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
2384
+ this[propName] = newValue;
2385
+ }
2386
+ });
2387
+ };
2388
+ Cstr.observedAttributes = Array.from(
2389
+ /* @__PURE__ */ new Set([
2390
+ ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
2391
+ ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
2392
+ var _a2;
2393
+ const attrName = m[1] || propName;
2394
+ attrNameToPropName.set(attrName, propName);
2395
+ if (m[0] & 512 /* ReflectAttr */) {
2396
+ (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
2397
+ }
2398
+ return attrName;
2399
+ })
2400
+ ])
2401
+ );
2402
+ }
2403
+ }
2404
+ return Cstr;
2405
+ };
2406
+
2407
+ // src/runtime/initialize-component.ts
2408
+ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
2409
+ let Cstr;
2410
+ try {
2411
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
2412
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
2413
+ const bundleId = cmpMeta.$lazyBundleId$;
2414
+ if (bundleId) {
2415
+ const CstrImport = loadModule(cmpMeta, hostRef);
2416
+ if (CstrImport && "then" in CstrImport) {
2417
+ const endLoad = uniqueTime();
2418
+ Cstr = await CstrImport;
2419
+ endLoad();
2420
+ } else {
2421
+ Cstr = CstrImport;
2422
+ }
2423
+ if (!Cstr) {
2424
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
2425
+ }
2426
+ if (!Cstr.isProxied) {
2427
+ {
2428
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
2429
+ cmpMeta.$serializers$ = Cstr.serializers;
2430
+ cmpMeta.$deserializers$ = Cstr.deserializers;
2431
+ }
2432
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
2433
+ Cstr.isProxied = true;
2434
+ }
2435
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
2436
+ {
2437
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
2438
+ }
2439
+ try {
2440
+ new Cstr(hostRef);
2441
+ } catch (e) {
2442
+ consoleError(e, elm);
2443
+ }
2444
+ {
2445
+ hostRef.$flags$ &= -9 /* isConstructingInstance */;
2446
+ }
2447
+ {
2448
+ hostRef.$flags$ |= 128 /* isWatchReady */;
2449
+ }
2450
+ endNewInstance();
2451
+ const needsDeferredCallback = cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
2452
+ if (!needsDeferredCallback) {
2453
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
2454
+ } else {
2455
+ hostRef.$deferredConnectedCallback$ = true;
2456
+ }
2457
+ } else {
2458
+ Cstr = elm.constructor;
2459
+ const cmpTag = elm.localName;
2460
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
2461
+ }
2462
+ if (Cstr && Cstr.style) {
2463
+ let style;
2464
+ if (typeof Cstr.style === "string") {
2465
+ style = Cstr.style;
2466
+ }
2467
+ const scopeId2 = getScopeId(cmpMeta);
2468
+ if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
2469
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
2470
+ registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
2471
+ endRegisterStyles();
2472
+ }
2473
+ }
2474
+ }
2475
+ const ancestorComponent = hostRef.$ancestorComponent$;
2476
+ const schedule = () => scheduleUpdate(hostRef, true);
2477
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
2478
+ ancestorComponent["s-rc"].push(schedule);
2479
+ } else {
2480
+ schedule();
2481
+ }
2482
+ } catch (e) {
2483
+ consoleError(e, elm);
2484
+ if (hostRef.$onRenderResolve$) {
2485
+ hostRef.$onRenderResolve$();
2486
+ hostRef.$onRenderResolve$ = void 0;
2487
+ }
2488
+ if (hostRef.$onReadyResolve$) {
2489
+ hostRef.$onReadyResolve$(elm);
2490
+ }
2491
+ }
2492
+ };
2493
+ var fireConnectedCallback = (instance, elm) => {
2494
+ {
2495
+ safeCall(instance, "connectedCallback", void 0, elm);
2496
+ }
2497
+ };
2498
+
2499
+ // src/runtime/connected-callback.ts
2500
+ var connectedCallback = (elm) => {
2501
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2502
+ const hostRef = getHostRef(elm);
2503
+ if (!hostRef) {
2504
+ return;
2505
+ }
2506
+ const cmpMeta = hostRef.$cmpMeta$;
2507
+ const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
2508
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
2509
+ hostRef.$flags$ |= 1 /* hasConnected */;
2510
+ let hostId;
2511
+ {
2512
+ hostId = elm.getAttribute(HYDRATE_ID);
2513
+ if (hostId) {
2514
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2515
+ const scopeId2 = addStyle(elm.shadowRoot, cmpMeta);
2516
+ elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
2517
+ }
2518
+ initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
2519
+ }
2520
+ }
2521
+ if (!hostId) {
2522
+ if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
2523
+ cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
2524
+ setContentReference(elm);
2525
+ }
2526
+ }
2527
+ {
2528
+ let ancestorComponent = elm;
2529
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
2530
+ if (ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
2531
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
2532
+ break;
2533
+ }
2534
+ }
2535
+ }
2536
+ if (cmpMeta.$members$) {
2537
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
2538
+ if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
2539
+ const value = elm[memberName];
2540
+ delete elm[memberName];
2541
+ elm[memberName] = value;
2542
+ }
2543
+ });
2544
+ }
2545
+ {
2546
+ initializeComponent(elm, hostRef, cmpMeta);
2547
+ }
2548
+ } else {
2549
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
2550
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
2551
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
2552
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2553
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
2554
+ }
2555
+ }
2556
+ endConnected();
2557
+ }
2558
+ };
2559
+ var setContentReference = (elm) => {
2560
+ if (!win.document) {
2561
+ return;
2562
+ }
2563
+ const contentRefElm = elm["s-cr"] = win.document.createComment(
2564
+ ""
2565
+ );
2566
+ contentRefElm["s-cn"] = true;
2567
+ insertBefore(elm, contentRefElm, elm.firstChild);
2568
+ };
2569
+ var disconnectInstance = (instance, elm) => {
2570
+ {
2571
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
2572
+ }
2573
+ };
2574
+ var disconnectedCallback = async (elm) => {
2575
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2576
+ const hostRef = getHostRef(elm);
2577
+ {
2578
+ if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
2579
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
2580
+ hostRef.$rmListeners$ = void 0;
2581
+ }
2582
+ }
2583
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
2584
+ disconnectInstance(hostRef.$lazyInstance$, elm);
2585
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2586
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
2587
+ }
2588
+ }
2589
+ if (rootAppliedStyles.has(elm)) {
2590
+ rootAppliedStyles.delete(elm);
2591
+ }
2592
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
2593
+ rootAppliedStyles.delete(elm.shadowRoot);
2594
+ }
2595
+ };
2596
+
2597
+ // src/runtime/bootstrap-lazy.ts
2598
+ var bootstrapLazy = (lazyBundles, options = {}) => {
2599
+ var _a;
2600
+ if (!win.document) {
2601
+ console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
2602
+ return;
2603
+ }
2604
+ const endBootstrap = createTime();
2605
+ const cmpTags = [];
2606
+ const exclude = options.exclude || [];
2607
+ const customElements2 = win.customElements;
2608
+ const head = win.document.head;
2609
+ const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
2610
+ const dataStyles = /* @__PURE__ */ win.document.createElement("style");
2611
+ const deferredConnectedCallbacks = [];
2612
+ let appLoadFallback;
2613
+ let isBootstrapping = true;
2614
+ Object.assign(plt, options);
2615
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
2616
+ {
2617
+ plt.$flags$ |= 2 /* appLoaded */;
2618
+ }
2619
+ {
2620
+ hydrateScopedToShadow();
2621
+ }
2622
+ let hasSlotRelocation = false;
2623
+ lazyBundles.map((lazyBundle) => {
2624
+ lazyBundle[1].map((compactMeta) => {
2625
+ var _a2, _b;
2626
+ const cmpMeta = {
2627
+ $flags$: compactMeta[0],
2628
+ $tagName$: compactMeta[1],
2629
+ $members$: compactMeta[2],
2630
+ $listeners$: compactMeta[3]
2631
+ };
2632
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
2633
+ hasSlotRelocation = true;
2634
+ }
2635
+ {
2636
+ cmpMeta.$members$ = compactMeta[2];
2637
+ }
2638
+ {
2639
+ cmpMeta.$listeners$ = compactMeta[3];
2640
+ }
2641
+ {
2642
+ cmpMeta.$attrsToReflect$ = [];
2643
+ }
2644
+ {
2645
+ cmpMeta.$watchers$ = normalizeWatchers(compactMeta[4]);
2646
+ cmpMeta.$serializers$ = (_a2 = compactMeta[5]) != null ? _a2 : {};
2647
+ cmpMeta.$deserializers$ = (_b = compactMeta[6]) != null ? _b : {};
2648
+ }
2649
+ const tagName = transformTag(cmpMeta.$tagName$);
2650
+ const HostElement = class extends HTMLElement {
2651
+ ["s-p"];
2652
+ ["s-rc"];
2653
+ hasRegisteredEventListeners = false;
2654
+ // StencilLazyHost
2655
+ constructor(self) {
2656
+ super(self);
2657
+ self = this;
2658
+ registerHost(self, cmpMeta);
2659
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2660
+ {
2661
+ if (!self.shadowRoot) {
2662
+ createShadowRoot.call(self, cmpMeta);
2663
+ } else {
2664
+ if (self.shadowRoot.mode !== "open") {
2665
+ throw new Error(
2666
+ `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
2667
+ );
2668
+ }
2669
+ }
2670
+ }
2671
+ }
2672
+ }
2673
+ connectedCallback() {
2674
+ const hostRef = getHostRef(this);
2675
+ if (!hostRef) {
2676
+ return;
2677
+ }
2678
+ if (!this.hasRegisteredEventListeners) {
2679
+ this.hasRegisteredEventListeners = true;
2680
+ addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
2681
+ }
2682
+ if (appLoadFallback) {
2683
+ clearTimeout(appLoadFallback);
2684
+ appLoadFallback = null;
2685
+ }
2686
+ if (isBootstrapping) {
2687
+ deferredConnectedCallbacks.push(this);
2688
+ } else {
2689
+ plt.jmp(() => connectedCallback(this));
2690
+ }
2691
+ }
2692
+ disconnectedCallback() {
2693
+ plt.jmp(() => disconnectedCallback(this));
2694
+ plt.raf(() => {
2695
+ var _a3;
2696
+ const hostRef = getHostRef(this);
2697
+ if (!hostRef) {
2698
+ return;
2699
+ }
2700
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
2701
+ if (i2 > -1) {
2702
+ deferredConnectedCallbacks.splice(i2, 1);
2703
+ }
2704
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
2705
+ delete hostRef.$vnode$.$elm$;
2706
+ }
2707
+ });
2708
+ }
2709
+ componentOnReady() {
2710
+ var _a3;
2711
+ return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
2712
+ }
2713
+ };
2714
+ if (cmpMeta.$flags$ & 64 /* formAssociated */) {
2715
+ HostElement.formAssociated = true;
2716
+ }
2717
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
2718
+ if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
2719
+ cmpTags.push(tagName);
2720
+ customElements2.define(
2721
+ tagName,
2722
+ proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
2723
+ );
2724
+ }
2725
+ });
2726
+ });
2727
+ if (cmpTags.length > 0) {
2728
+ if (hasSlotRelocation) {
2729
+ dataStyles.textContent += SLOT_FB_CSS;
2730
+ }
2731
+ {
2732
+ dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
2733
+ }
2734
+ if (dataStyles.innerHTML.length) {
2735
+ dataStyles.setAttribute("data-styles", "");
2736
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
2737
+ if (nonce != null) {
2738
+ dataStyles.setAttribute("nonce", nonce);
2739
+ }
2740
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
2741
+ }
2742
+ }
2743
+ isBootstrapping = false;
2744
+ if (deferredConnectedCallbacks.length) {
2745
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
2746
+ } else {
2747
+ {
2748
+ plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
2749
+ }
2750
+ }
2751
+ endBootstrap();
2752
+ };
2753
+ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
2754
+ if (listeners && win.document) {
2755
+ listeners.map(([flags, name, method]) => {
2756
+ const target = getHostListenerTarget(win.document, elm, flags) ;
2757
+ const handler = hostListenerProxy(hostRef, method);
2758
+ const opts = hostListenerOpts(flags);
2759
+ plt.ael(target, name, handler, opts);
2760
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
2761
+ });
2762
+ }
2763
+ };
2764
+ var hostListenerProxy = (hostRef, methodName) => (ev) => {
2765
+ var _a;
2766
+ try {
2767
+ {
2768
+ if (hostRef.$flags$ & 256 /* isListenReady */) {
2769
+ (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
2770
+ } else {
2771
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
2772
+ }
2773
+ }
2774
+ } catch (e) {
2775
+ consoleError(e, hostRef.$hostElement$);
2776
+ }
2777
+ };
2778
+ var getHostListenerTarget = (doc, elm, flags) => {
2779
+ if (flags & 4 /* TargetDocument */) {
2780
+ return doc;
2781
+ }
2782
+ if (flags & 8 /* TargetWindow */) {
2783
+ return win;
2784
+ }
2785
+ return elm;
2786
+ };
2787
+ var hostListenerOpts = (flags) => supportsListenerOptions ? {
2788
+ passive: (flags & 1 /* Passive */) !== 0,
2789
+ capture: (flags & 2 /* Capture */) !== 0
2790
+ } : (flags & 2 /* Capture */) !== 0;
2791
+
2792
+ // src/runtime/nonce.ts
2793
+ var setNonce = (nonce) => plt.$nonce$ = nonce;
2794
+ function transformTag(tag) {
2795
+ return tag;
2796
+ }
2797
+
2798
+ export { Build as B, Host as H, getElement as a, bootstrapLazy as b, createEvent as c, globalScripts as g, h, promiseResolve as p, registerInstance as r, setNonce as s };