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