@dropi/ui 0.1.55 → 999.0.0

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 (1414) hide show
  1. package/package.json +2 -83
  2. package/LICENSE +0 -21
  3. package/dist/cjs/dropi-accordion-item.cjs.entry.js +0 -54
  4. package/dist/cjs/dropi-accordion.cjs.entry.js +0 -19
  5. package/dist/cjs/dropi-alert-legacy.cjs.entry.js +0 -39
  6. package/dist/cjs/dropi-alert-modal.cjs.entry.js +0 -128
  7. package/dist/cjs/dropi-alert.cjs.entry.js +0 -64
  8. package/dist/cjs/dropi-avatars.cjs.entry.js +0 -31
  9. package/dist/cjs/dropi-badge-legacy.cjs.entry.js +0 -30
  10. package/dist/cjs/dropi-badge.cjs.entry.js +0 -37
  11. package/dist/cjs/dropi-banner-external.cjs.entry.js +0 -63
  12. package/dist/cjs/dropi-breadcrumb.cjs.entry.js +0 -48
  13. package/dist/cjs/dropi-button.cjs.entry.js +0 -104
  14. package/dist/cjs/dropi-card-checkbox.cjs.entry.js +0 -48
  15. package/dist/cjs/dropi-card-product.cjs.entry.js +0 -78
  16. package/dist/cjs/dropi-card-section.cjs.entry.js +0 -38
  17. package/dist/cjs/dropi-carousel.cjs.entry.js +0 -153
  18. package/dist/cjs/dropi-checkbox-selection-list.cjs.entry.js +0 -73
  19. package/dist/cjs/dropi-checkbox.cjs.entry.js +0 -57
  20. package/dist/cjs/dropi-chips.cjs.entry.js +0 -30
  21. package/dist/cjs/dropi-city-selector.cjs.entry.js +0 -104
  22. package/dist/cjs/dropi-color-picker.cjs.entry.js +0 -319
  23. package/dist/cjs/dropi-country-flags.cjs.entry.js +0 -37
  24. package/dist/cjs/dropi-country-selector.cjs.entry.js +0 -298
  25. package/dist/cjs/dropi-date-picker-range.cjs.entry.js +0 -294
  26. package/dist/cjs/dropi-date-picker.cjs.entry.js +0 -344
  27. package/dist/cjs/dropi-drawer.cjs.entry.js +0 -79
  28. package/dist/cjs/dropi-dropdown.cjs.entry.js +0 -65
  29. package/dist/cjs/dropi-empty-state.cjs.entry.js +0 -113
  30. package/dist/cjs/dropi-favorite-button.cjs.entry.js +0 -27
  31. package/dist/cjs/dropi-file-upload-progress-bar.cjs.entry.js +0 -77
  32. package/dist/cjs/dropi-file-upload.cjs.entry.js +0 -237
  33. package/dist/cjs/dropi-icon.cjs.entry.js +0 -350
  34. package/dist/cjs/dropi-ilustration-icon.cjs.entry.js +0 -43
  35. package/dist/cjs/dropi-image-miniature.cjs.entry.js +0 -44
  36. package/dist/cjs/dropi-image-overlay.cjs.entry.js +0 -63
  37. package/dist/cjs/dropi-input_3.cjs.entry.js +0 -424
  38. package/dist/cjs/dropi-languages-selector.cjs.entry.js +0 -61
  39. package/dist/cjs/dropi-logo.cjs.entry.js +0 -37
  40. package/dist/cjs/dropi-lottie-loader.cjs.entry.js +0 -27
  41. package/dist/cjs/dropi-media-player.cjs.entry.js +0 -192
  42. package/dist/cjs/dropi-modal.cjs.entry.js +0 -147
  43. package/dist/cjs/dropi-navbar.cjs.entry.js +0 -54
  44. package/dist/cjs/dropi-otp-send-code.cjs.entry.js +0 -135
  45. package/dist/cjs/dropi-phone-input.cjs.entry.js +0 -220
  46. package/dist/cjs/dropi-progress-bar.cjs.entry.js +0 -43
  47. package/dist/cjs/dropi-radio-button.cjs.entry.js +0 -64
  48. package/dist/cjs/dropi-radio-selection-list.cjs.entry.js +0 -60
  49. package/dist/cjs/dropi-read-more.cjs.entry.js +0 -40
  50. package/dist/cjs/dropi-search.cjs.entry.js +0 -124
  51. package/dist/cjs/dropi-select.cjs.entry.js +0 -410
  52. package/dist/cjs/dropi-sidebar.cjs.entry.js +0 -78
  53. package/dist/cjs/dropi-simple-stepper.cjs.entry.js +0 -53
  54. package/dist/cjs/dropi-skeleton.cjs.entry.js +0 -57
  55. package/dist/cjs/dropi-steps.cjs.entry.js +0 -62
  56. package/dist/cjs/dropi-switch.cjs.entry.js +0 -51
  57. package/dist/cjs/dropi-table.cjs.entry.js +0 -307
  58. package/dist/cjs/dropi-tabs.cjs.entry.js +0 -51
  59. package/dist/cjs/dropi-tag-type-product.cjs.entry.js +0 -19
  60. package/dist/cjs/dropi-text-area.cjs.entry.js +0 -134
  61. package/dist/cjs/dropi-time-line.cjs.entry.js +0 -34
  62. package/dist/cjs/dropi-toast.cjs.entry.js +0 -54
  63. package/dist/cjs/dropi-tooltip-v2.cjs.entry.js +0 -131
  64. package/dist/cjs/dropi-tooltip.cjs.entry.js +0 -21
  65. package/dist/cjs/dropi-ui.cjs.js +0 -24
  66. package/dist/cjs/dropi-vertical-steps.cjs.entry.js +0 -55
  67. package/dist/cjs/dropi-youtube-lazy-video.cjs.entry.js +0 -33
  68. package/dist/cjs/index-C8kwDvpf.js +0 -2773
  69. package/dist/cjs/index-CEWSDq65.js +0 -2773
  70. package/dist/cjs/index-DKMSaf7l.js +0 -2809
  71. package/dist/cjs/index-DydfpGMc.js +0 -2773
  72. package/dist/cjs/index-eMp8lMK1.js +0 -2809
  73. package/dist/cjs/index.cjs.js +0 -2
  74. package/dist/cjs/loader.cjs.js +0 -12
  75. package/dist/cjs/lottie-map.generated-BVDAlLPd.js +0 -14
  76. package/dist/collection/assets/icons/symbol/svg/sprite.css.svg +0 -1
  77. package/dist/collection/collection-manifest.json +0 -78
  78. package/dist/collection/components/dropi-accordion/dropi-accordion-item.css +0 -60
  79. package/dist/collection/components/dropi-accordion/dropi-accordion-item.js +0 -172
  80. package/dist/collection/components/dropi-accordion/dropi-accordion.css +0 -22
  81. package/dist/collection/components/dropi-accordion/dropi-accordion.js +0 -48
  82. package/dist/collection/components/dropi-alert/dropi-alert.css +0 -129
  83. package/dist/collection/components/dropi-alert/dropi-alert.js +0 -371
  84. package/dist/collection/components/dropi-alert-legacy/dropi-alert-legacy.css +0 -32
  85. package/dist/collection/components/dropi-alert-legacy/dropi-alert-legacy.js +0 -128
  86. package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.css +0 -106
  87. package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.js +0 -546
  88. package/dist/collection/components/dropi-avatars/dropi-avatars.css +0 -56
  89. package/dist/collection/components/dropi-avatars/dropi-avatars.js +0 -126
  90. package/dist/collection/components/dropi-badge/dropi-badge.css +0 -42
  91. package/dist/collection/components/dropi-badge/dropi-badge.js +0 -71
  92. package/dist/collection/components/dropi-badge-legacy/dropi-badge-legacy.css +0 -18
  93. package/dist/collection/components/dropi-badge-legacy/dropi-badge-legacy.js +0 -119
  94. package/dist/collection/components/dropi-banner-external/dropi-banner-external.css +0 -57
  95. package/dist/collection/components/dropi-banner-external/dropi-banner-external.js +0 -254
  96. package/dist/collection/components/dropi-breadcrumb/dropi-breadcrumb.css +0 -70
  97. package/dist/collection/components/dropi-breadcrumb/dropi-breadcrumb.js +0 -171
  98. package/dist/collection/components/dropi-button/dropi-button.css +0 -182
  99. package/dist/collection/components/dropi-button/dropi-button.js +0 -360
  100. package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.css +0 -93
  101. package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.js +0 -222
  102. package/dist/collection/components/dropi-card-product/dropi-card-product.css +0 -236
  103. package/dist/collection/components/dropi-card-product/dropi-card-product.js +0 -386
  104. package/dist/collection/components/dropi-card-section/dropi-card-section.css +0 -43
  105. package/dist/collection/components/dropi-card-section/dropi-card-section.js +0 -178
  106. package/dist/collection/components/dropi-carousel/dropi-carousel.css +0 -149
  107. package/dist/collection/components/dropi-carousel/dropi-carousel.js +0 -379
  108. package/dist/collection/components/dropi-checkbox/dropi-checkbox.css +0 -48
  109. package/dist/collection/components/dropi-checkbox/dropi-checkbox.js +0 -138
  110. package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.css +0 -45
  111. package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.js +0 -267
  112. package/dist/collection/components/dropi-chips/dropi-chips.css +0 -69
  113. package/dist/collection/components/dropi-chips/dropi-chips.js +0 -169
  114. package/dist/collection/components/dropi-city-selector/dropi-city-selector.css +0 -219
  115. package/dist/collection/components/dropi-city-selector/dropi-city-selector.js +0 -242
  116. package/dist/collection/components/dropi-color-picker/dropi-color-picker.css +0 -211
  117. package/dist/collection/components/dropi-color-picker/dropi-color-picker.js +0 -393
  118. package/dist/collection/components/dropi-country-flags/dropi-country-flags.css +0 -31
  119. package/dist/collection/components/dropi-country-flags/dropi-country-flags.js +0 -129
  120. package/dist/collection/components/dropi-country-selector/dropi-country-selector.css +0 -212
  121. package/dist/collection/components/dropi-country-selector/dropi-country-selector.js +0 -563
  122. package/dist/collection/components/dropi-date-picker/dropi-date-picker.css +0 -263
  123. package/dist/collection/components/dropi-date-picker/dropi-date-picker.js +0 -673
  124. package/dist/collection/components/dropi-date-picker-range/dropi-date-picker-range.css +0 -286
  125. package/dist/collection/components/dropi-date-picker-range/dropi-date-picker-range.js +0 -541
  126. package/dist/collection/components/dropi-drawer/dropi-drawer.css +0 -130
  127. package/dist/collection/components/dropi-drawer/dropi-drawer.js +0 -287
  128. package/dist/collection/components/dropi-dropdown/dropi-dropdown.css +0 -52
  129. package/dist/collection/components/dropi-dropdown/dropi-dropdown.js +0 -209
  130. package/dist/collection/components/dropi-empty-state/dropi-empty-state.css +0 -60
  131. package/dist/collection/components/dropi-empty-state/dropi-empty-state.js +0 -223
  132. package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.css +0 -25
  133. package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.js +0 -78
  134. package/dist/collection/components/dropi-file-upload/dropi-file-upload.css +0 -465
  135. package/dist/collection/components/dropi-file-upload/dropi-file-upload.js +0 -517
  136. package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.css +0 -116
  137. package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.js +0 -258
  138. package/dist/collection/components/dropi-icon/dropi-icon.css +0 -27
  139. package/dist/collection/components/dropi-icon/dropi-icon.js +0 -186
  140. package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.css +0 -92
  141. package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.js +0 -174
  142. package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.css +0 -46
  143. package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.js +0 -150
  144. package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.css +0 -128
  145. package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.js +0 -156
  146. package/dist/collection/components/dropi-input/dropi-input.css +0 -194
  147. package/dist/collection/components/dropi-input/dropi-input.js +0 -830
  148. package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.css +0 -80
  149. package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.js +0 -158
  150. package/dist/collection/components/dropi-logo/dropi-logo.css +0 -27
  151. package/dist/collection/components/dropi-logo/dropi-logo.js +0 -107
  152. package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.css +0 -57
  153. package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.js +0 -116
  154. package/dist/collection/components/dropi-media-player/dropi-media-player.css +0 -321
  155. package/dist/collection/components/dropi-media-player/dropi-media-player.js +0 -394
  156. package/dist/collection/components/dropi-modal/dropi-modal.css +0 -147
  157. package/dist/collection/components/dropi-modal/dropi-modal.js +0 -700
  158. package/dist/collection/components/dropi-navbar/dropi-navbar.css +0 -167
  159. package/dist/collection/components/dropi-navbar/dropi-navbar.js +0 -302
  160. package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.css +0 -68
  161. package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.js +0 -312
  162. package/dist/collection/components/dropi-paginator/dropi-paginator.css +0 -104
  163. package/dist/collection/components/dropi-paginator/dropi-paginator.js +0 -215
  164. package/dist/collection/components/dropi-phone-input/dropi-phone-input.css +0 -210
  165. package/dist/collection/components/dropi-phone-input/dropi-phone-input.js +0 -478
  166. package/dist/collection/components/dropi-progress-bar/dropi-progress-bar.css +0 -36
  167. package/dist/collection/components/dropi-progress-bar/dropi-progress-bar.js +0 -168
  168. package/dist/collection/components/dropi-radio-button/dropi-radio-button.css +0 -63
  169. package/dist/collection/components/dropi-radio-button/dropi-radio-button.js +0 -183
  170. package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.css +0 -65
  171. package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.js +0 -259
  172. package/dist/collection/components/dropi-read-more/dropi-read-more.css +0 -26
  173. package/dist/collection/components/dropi-read-more/dropi-read-more.js +0 -154
  174. package/dist/collection/components/dropi-search/dropi-search.css +0 -113
  175. package/dist/collection/components/dropi-search/dropi-search.js +0 -526
  176. package/dist/collection/components/dropi-select/dropi-select.css +0 -371
  177. package/dist/collection/components/dropi-select/dropi-select.js +0 -1077
  178. package/dist/collection/components/dropi-select/select.types.js +0 -1
  179. package/dist/collection/components/dropi-sidebar/dropi-sidebar.css +0 -77
  180. package/dist/collection/components/dropi-sidebar/dropi-sidebar.js +0 -143
  181. package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.css +0 -95
  182. package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.js +0 -194
  183. package/dist/collection/components/dropi-skeleton/dropi-skeleton.css +0 -28
  184. package/dist/collection/components/dropi-skeleton/dropi-skeleton.js +0 -192
  185. package/dist/collection/components/dropi-steps/dropi-steps.css +0 -112
  186. package/dist/collection/components/dropi-steps/dropi-steps.js +0 -183
  187. package/dist/collection/components/dropi-switch/dropi-switch.css +0 -58
  188. package/dist/collection/components/dropi-switch/dropi-switch.js +0 -131
  189. package/dist/collection/components/dropi-table/dropi-table.css +0 -541
  190. package/dist/collection/components/dropi-table/dropi-table.js +0 -981
  191. package/dist/collection/components/dropi-tabs/dropi-tabs.css +0 -48
  192. package/dist/collection/components/dropi-tabs/dropi-tabs.js +0 -181
  193. package/dist/collection/components/dropi-tag/dropi-tag.css +0 -49
  194. package/dist/collection/components/dropi-tag/dropi-tag.js +0 -244
  195. package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.css +0 -15
  196. package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.js +0 -48
  197. package/dist/collection/components/dropi-text-area/dropi-text-area.css +0 -101
  198. package/dist/collection/components/dropi-text-area/dropi-text-area.js +0 -510
  199. package/dist/collection/components/dropi-time-line/dropi-time-line.css +0 -109
  200. package/dist/collection/components/dropi-time-line/dropi-time-line.js +0 -69
  201. package/dist/collection/components/dropi-toast/dropi-toast.css +0 -54
  202. package/dist/collection/components/dropi-toast/dropi-toast.js +0 -162
  203. package/dist/collection/components/dropi-tooltip/dropi-tooltip.css +0 -33
  204. package/dist/collection/components/dropi-tooltip/dropi-tooltip.js +0 -70
  205. package/dist/collection/components/dropi-tooltip-v2/dropi-tooltip.css +0 -68
  206. package/dist/collection/components/dropi-tooltip-v2/dropi-tooltip.js +0 -468
  207. package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.css +0 -96
  208. package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.js +0 -167
  209. package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.css +0 -74
  210. package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.js +0 -110
  211. package/dist/collection/index.js +0 -1
  212. package/dist/collection/utils/icon-map.generated.js +0 -271
  213. package/dist/collection/utils/illustration-map.generated.js +0 -73
  214. package/dist/collection/utils/lottie-map.generated.js +0 -10
  215. package/dist/collection/utils/utils.js +0 -3
  216. package/dist/collection/utils/utils.unit.test.js +0 -16
  217. package/dist/components/dropi-accordion-item.d.ts +0 -11
  218. package/dist/components/dropi-accordion-item.js +0 -1
  219. package/dist/components/dropi-accordion.d.ts +0 -11
  220. package/dist/components/dropi-accordion.js +0 -1
  221. package/dist/components/dropi-alert-legacy.d.ts +0 -11
  222. package/dist/components/dropi-alert-legacy.js +0 -1
  223. package/dist/components/dropi-alert-modal.d.ts +0 -11
  224. package/dist/components/dropi-alert-modal.js +0 -1
  225. package/dist/components/dropi-alert.d.ts +0 -11
  226. package/dist/components/dropi-alert.js +0 -1
  227. package/dist/components/dropi-avatars.d.ts +0 -11
  228. package/dist/components/dropi-avatars.js +0 -1
  229. package/dist/components/dropi-badge-legacy.d.ts +0 -11
  230. package/dist/components/dropi-badge-legacy.js +0 -1
  231. package/dist/components/dropi-badge.d.ts +0 -11
  232. package/dist/components/dropi-badge.js +0 -1
  233. package/dist/components/dropi-banner-external.d.ts +0 -11
  234. package/dist/components/dropi-banner-external.js +0 -1
  235. package/dist/components/dropi-breadcrumb.d.ts +0 -11
  236. package/dist/components/dropi-breadcrumb.js +0 -1
  237. package/dist/components/dropi-button.d.ts +0 -11
  238. package/dist/components/dropi-button.js +0 -1
  239. package/dist/components/dropi-card-checkbox.d.ts +0 -11
  240. package/dist/components/dropi-card-checkbox.js +0 -1
  241. package/dist/components/dropi-card-product.d.ts +0 -11
  242. package/dist/components/dropi-card-product.js +0 -1
  243. package/dist/components/dropi-card-section.d.ts +0 -11
  244. package/dist/components/dropi-card-section.js +0 -1
  245. package/dist/components/dropi-carousel.d.ts +0 -11
  246. package/dist/components/dropi-carousel.js +0 -1
  247. package/dist/components/dropi-checkbox-selection-list.d.ts +0 -11
  248. package/dist/components/dropi-checkbox-selection-list.js +0 -1
  249. package/dist/components/dropi-checkbox.d.ts +0 -11
  250. package/dist/components/dropi-checkbox.js +0 -1
  251. package/dist/components/dropi-chips.d.ts +0 -11
  252. package/dist/components/dropi-chips.js +0 -1
  253. package/dist/components/dropi-city-selector.d.ts +0 -11
  254. package/dist/components/dropi-city-selector.js +0 -1
  255. package/dist/components/dropi-color-picker.d.ts +0 -11
  256. package/dist/components/dropi-color-picker.js +0 -1
  257. package/dist/components/dropi-country-flags.d.ts +0 -11
  258. package/dist/components/dropi-country-flags.js +0 -1
  259. package/dist/components/dropi-country-selector.d.ts +0 -11
  260. package/dist/components/dropi-country-selector.js +0 -1
  261. package/dist/components/dropi-date-picker-range.d.ts +0 -11
  262. package/dist/components/dropi-date-picker-range.js +0 -1
  263. package/dist/components/dropi-date-picker.d.ts +0 -11
  264. package/dist/components/dropi-date-picker.js +0 -1
  265. package/dist/components/dropi-drawer.d.ts +0 -11
  266. package/dist/components/dropi-drawer.js +0 -1
  267. package/dist/components/dropi-dropdown.d.ts +0 -11
  268. package/dist/components/dropi-dropdown.js +0 -1
  269. package/dist/components/dropi-empty-state.d.ts +0 -11
  270. package/dist/components/dropi-empty-state.js +0 -1
  271. package/dist/components/dropi-favorite-button.d.ts +0 -11
  272. package/dist/components/dropi-favorite-button.js +0 -1
  273. package/dist/components/dropi-file-upload-progress-bar.d.ts +0 -11
  274. package/dist/components/dropi-file-upload-progress-bar.js +0 -1
  275. package/dist/components/dropi-file-upload.d.ts +0 -11
  276. package/dist/components/dropi-file-upload.js +0 -1
  277. package/dist/components/dropi-icon.d.ts +0 -11
  278. package/dist/components/dropi-icon.js +0 -1
  279. package/dist/components/dropi-ilustration-icon.d.ts +0 -11
  280. package/dist/components/dropi-ilustration-icon.js +0 -1
  281. package/dist/components/dropi-image-miniature.d.ts +0 -11
  282. package/dist/components/dropi-image-miniature.js +0 -1
  283. package/dist/components/dropi-image-overlay.d.ts +0 -11
  284. package/dist/components/dropi-image-overlay.js +0 -1
  285. package/dist/components/dropi-input.d.ts +0 -11
  286. package/dist/components/dropi-input.js +0 -1
  287. package/dist/components/dropi-languages-selector.d.ts +0 -11
  288. package/dist/components/dropi-languages-selector.js +0 -1
  289. package/dist/components/dropi-logo.d.ts +0 -11
  290. package/dist/components/dropi-logo.js +0 -1
  291. package/dist/components/dropi-lottie-loader.d.ts +0 -11
  292. package/dist/components/dropi-lottie-loader.js +0 -1
  293. package/dist/components/dropi-media-player.d.ts +0 -11
  294. package/dist/components/dropi-media-player.js +0 -1
  295. package/dist/components/dropi-modal.d.ts +0 -11
  296. package/dist/components/dropi-modal.js +0 -1
  297. package/dist/components/dropi-navbar.d.ts +0 -11
  298. package/dist/components/dropi-navbar.js +0 -1
  299. package/dist/components/dropi-otp-send-code.d.ts +0 -11
  300. package/dist/components/dropi-otp-send-code.js +0 -1
  301. package/dist/components/dropi-paginator.d.ts +0 -11
  302. package/dist/components/dropi-paginator.js +0 -1
  303. package/dist/components/dropi-phone-input.d.ts +0 -11
  304. package/dist/components/dropi-phone-input.js +0 -1
  305. package/dist/components/dropi-progress-bar.d.ts +0 -11
  306. package/dist/components/dropi-progress-bar.js +0 -1
  307. package/dist/components/dropi-radio-button.d.ts +0 -11
  308. package/dist/components/dropi-radio-button.js +0 -1
  309. package/dist/components/dropi-radio-selection-list.d.ts +0 -11
  310. package/dist/components/dropi-radio-selection-list.js +0 -1
  311. package/dist/components/dropi-read-more.d.ts +0 -11
  312. package/dist/components/dropi-read-more.js +0 -1
  313. package/dist/components/dropi-search.d.ts +0 -11
  314. package/dist/components/dropi-search.js +0 -1
  315. package/dist/components/dropi-select.d.ts +0 -11
  316. package/dist/components/dropi-select.js +0 -1
  317. package/dist/components/dropi-sidebar.d.ts +0 -11
  318. package/dist/components/dropi-sidebar.js +0 -1
  319. package/dist/components/dropi-simple-stepper.d.ts +0 -11
  320. package/dist/components/dropi-simple-stepper.js +0 -1
  321. package/dist/components/dropi-skeleton.d.ts +0 -11
  322. package/dist/components/dropi-skeleton.js +0 -1
  323. package/dist/components/dropi-steps.d.ts +0 -11
  324. package/dist/components/dropi-steps.js +0 -1
  325. package/dist/components/dropi-switch.d.ts +0 -11
  326. package/dist/components/dropi-switch.js +0 -1
  327. package/dist/components/dropi-table.d.ts +0 -11
  328. package/dist/components/dropi-table.js +0 -1
  329. package/dist/components/dropi-tabs.d.ts +0 -11
  330. package/dist/components/dropi-tabs.js +0 -1
  331. package/dist/components/dropi-tag-type-product.d.ts +0 -11
  332. package/dist/components/dropi-tag-type-product.js +0 -1
  333. package/dist/components/dropi-tag.d.ts +0 -11
  334. package/dist/components/dropi-tag.js +0 -1
  335. package/dist/components/dropi-text-area.d.ts +0 -11
  336. package/dist/components/dropi-text-area.js +0 -1
  337. package/dist/components/dropi-time-line.d.ts +0 -11
  338. package/dist/components/dropi-time-line.js +0 -1
  339. package/dist/components/dropi-toast.d.ts +0 -11
  340. package/dist/components/dropi-toast.js +0 -1
  341. package/dist/components/dropi-tooltip-v2.d.ts +0 -11
  342. package/dist/components/dropi-tooltip-v2.js +0 -1
  343. package/dist/components/dropi-tooltip.d.ts +0 -11
  344. package/dist/components/dropi-tooltip.js +0 -1
  345. package/dist/components/dropi-vertical-steps.d.ts +0 -11
  346. package/dist/components/dropi-vertical-steps.js +0 -1
  347. package/dist/components/dropi-youtube-lazy-video.d.ts +0 -11
  348. package/dist/components/dropi-youtube-lazy-video.js +0 -1
  349. package/dist/components/index.d.ts +0 -35
  350. package/dist/components/index.js +0 -1
  351. package/dist/components/p-1YjHPRto.js +0 -1
  352. package/dist/components/p-1znuv59D.js +0 -1
  353. package/dist/components/p-2YgFOle2.js +0 -1
  354. package/dist/components/p-34gP610W.js +0 -1
  355. package/dist/components/p-3AT7ASH9.js +0 -1
  356. package/dist/components/p-9CkX3ALN.js +0 -1
  357. package/dist/components/p-B-1G8T4u.js +0 -1
  358. package/dist/components/p-B9-h_ikq.js +0 -1
  359. package/dist/components/p-B9R8Apw7.js +0 -1
  360. package/dist/components/p-B9rJd-Rf.js +0 -1
  361. package/dist/components/p-BDYn1JDe.js +0 -1
  362. package/dist/components/p-BEs9gbju.js +0 -1
  363. package/dist/components/p-BGS_Fnts.js +0 -1
  364. package/dist/components/p-BGb7xtJN.js +0 -1
  365. package/dist/components/p-BHV6BYSS.js +0 -1
  366. package/dist/components/p-BKTMBQVw.js +0 -1
  367. package/dist/components/p-BKTe33ng.js +0 -1
  368. package/dist/components/p-BSB5Ar-y.js +0 -1
  369. package/dist/components/p-BSHROiHb.js +0 -1
  370. package/dist/components/p-BT99axEq.js +0 -1
  371. package/dist/components/p-BVgUVZyu.js +0 -1
  372. package/dist/components/p-BYPkJN1-.js +0 -1
  373. package/dist/components/p-BfQEGsBq.js +0 -1
  374. package/dist/components/p-BhQK2SnE.js +0 -1
  375. package/dist/components/p-BhRjfHZ3.js +0 -1
  376. package/dist/components/p-BieZ2Zwa.js +0 -1
  377. package/dist/components/p-Bimspdte.js +0 -1
  378. package/dist/components/p-BjWB6xTy.js +0 -1
  379. package/dist/components/p-BmuWhHN-.js +0 -1
  380. package/dist/components/p-BqJ52YOH.js +0 -1
  381. package/dist/components/p-BrR1YjVi.js +0 -1
  382. package/dist/components/p-BrnGRyf0.js +0 -1
  383. package/dist/components/p-BtbO4Qj2.js +0 -1
  384. package/dist/components/p-BtkDdEAq.js +0 -1
  385. package/dist/components/p-Btsw7sPN.js +0 -1
  386. package/dist/components/p-BvIwy9Yl.js +0 -1
  387. package/dist/components/p-Bw8zPxUl.js +0 -1
  388. package/dist/components/p-Bxs1HOVS.js +0 -1
  389. package/dist/components/p-ByEQybUd.js +0 -1
  390. package/dist/components/p-BzCPv3ND.js +0 -1
  391. package/dist/components/p-BzFB0tnJ.js +0 -1
  392. package/dist/components/p-Bzgg_L80.js +0 -1
  393. package/dist/components/p-C44-ijf2.js +0 -1
  394. package/dist/components/p-CCZ6rIo5.js +0 -1
  395. package/dist/components/p-CHb992Wr.js +0 -1
  396. package/dist/components/p-CJ4s6SQT.js +0 -1
  397. package/dist/components/p-CKflT57p.js +0 -1
  398. package/dist/components/p-CQqWa7Kz.js +0 -1
  399. package/dist/components/p-CV_oz45O.js +0 -1
  400. package/dist/components/p-CWT7wT9m.js +0 -1
  401. package/dist/components/p-CWWFRdg7.js +0 -1
  402. package/dist/components/p-CWwDNt3V.js +0 -1
  403. package/dist/components/p-CXUiN3Rj.js +0 -1
  404. package/dist/components/p-CY6yN7wx.js +0 -1
  405. package/dist/components/p-CY_Pmg81.js +0 -1
  406. package/dist/components/p-C_zOkGR5.js +0 -1
  407. package/dist/components/p-Ccl4kD95.js +0 -1
  408. package/dist/components/p-CgRY3n1J.js +0 -1
  409. package/dist/components/p-ChU-v5Jl.js +0 -1
  410. package/dist/components/p-Cjq4FTif.js +0 -1
  411. package/dist/components/p-Ckpdx21D.js +0 -1
  412. package/dist/components/p-CmLj_aqH.js +0 -1
  413. package/dist/components/p-Cq3-SLWU.js +0 -1
  414. package/dist/components/p-CqTImUhL.js +0 -1
  415. package/dist/components/p-CrSepiFP.js +0 -1
  416. package/dist/components/p-Cujt3jky.js +0 -1
  417. package/dist/components/p-D-KVcD87.js +0 -1
  418. package/dist/components/p-D5UeShUa.js +0 -1
  419. package/dist/components/p-D76mTEoh.js +0 -1
  420. package/dist/components/p-D7GP-lmt.js +0 -1
  421. package/dist/components/p-DBUBcpw5.js +0 -1
  422. package/dist/components/p-DFNI0UID.js +0 -1
  423. package/dist/components/p-DG5fe-Ke.js +0 -1
  424. package/dist/components/p-DGUfr98Z.js +0 -1
  425. package/dist/components/p-DKWuIsc_.js +0 -1
  426. package/dist/components/p-DLyzE3Kh.js +0 -1
  427. package/dist/components/p-DN_IcU8H.js +0 -1
  428. package/dist/components/p-DON3zW51.js +0 -1
  429. package/dist/components/p-DQzskhll.js +0 -1
  430. package/dist/components/p-DYAsdhfM.js +0 -1
  431. package/dist/components/p-DYYToiO9.js +0 -1
  432. package/dist/components/p-Dd1g1gjR.js +0 -1
  433. package/dist/components/p-DdM0zO53.js +0 -1
  434. package/dist/components/p-DehWQyi5.js +0 -1
  435. package/dist/components/p-DfSe-tBr.js +0 -1
  436. package/dist/components/p-DfdhNT9F.js +0 -1
  437. package/dist/components/p-DgOazwmC.js +0 -1
  438. package/dist/components/p-Dgeh9Yg8.js +0 -1
  439. package/dist/components/p-DlaiuH5K.js +0 -1
  440. package/dist/components/p-Dnx3uXgo.js +0 -1
  441. package/dist/components/p-DqAyyLAT.js +0 -1
  442. package/dist/components/p-DskHH-sZ.js +0 -1
  443. package/dist/components/p-DvLWbKsf.js +0 -1
  444. package/dist/components/p-DvaFep4Y.js +0 -1
  445. package/dist/components/p-Dz9uN5Nw.js +0 -1
  446. package/dist/components/p-ETg0qC-7.js +0 -1
  447. package/dist/components/p-EW_Hn93v.js +0 -1
  448. package/dist/components/p-FAhcOdS-.js +0 -1
  449. package/dist/components/p-HCtk4_Dq.js +0 -1
  450. package/dist/components/p-QezfyBk4.js +0 -1
  451. package/dist/components/p-Qrac2GRu.js +0 -1
  452. package/dist/components/p-RD09_3LO.js +0 -1
  453. package/dist/components/p-RQjw5hdz.js +0 -1
  454. package/dist/components/p-StcKvTC_.js +0 -1
  455. package/dist/components/p-WAEYEj9V.js +0 -1
  456. package/dist/components/p-_ScZTnhj.js +0 -1
  457. package/dist/components/p-a-hGQrJd.js +0 -1
  458. package/dist/components/p-dbZuh0Uq.js +0 -1
  459. package/dist/components/p-egLr0oVg.js +0 -1
  460. package/dist/components/p-emzVHCws.js +0 -1
  461. package/dist/components/p-eusoHxve.js +0 -1
  462. package/dist/components/p-fPJmM1qh.js +0 -1
  463. package/dist/components/p-im7kgtnS.js +0 -1
  464. package/dist/components/p-kC6NU5nP.js +0 -1
  465. package/dist/components/p-l48cENKO.js +0 -1
  466. package/dist/components/p-lX2uCKEi.js +0 -1
  467. package/dist/components/p-ndQSfLKF.js +0 -1
  468. package/dist/components/p-plWZwD4h.js +0 -1
  469. package/dist/components/p-t0lkpFmw.js +0 -1
  470. package/dist/components/p-u5UtrV7_.js +0 -1
  471. package/dist/components/p-ujToMKti.js +0 -1
  472. package/dist/docs.d.ts +0 -480
  473. package/dist/docs.json +0 -18764
  474. package/dist/dropi-ui/dropi-accordion-item.entry.js +0 -58
  475. package/dist/dropi-ui/dropi-accordion-item.entry.js.map +0 -1
  476. package/dist/dropi-ui/dropi-accordion.entry.js +0 -20
  477. package/dist/dropi-ui/dropi-accordion.entry.js.map +0 -1
  478. package/dist/dropi-ui/dropi-alert-legacy.entry.js +0 -40
  479. package/dist/dropi-ui/dropi-alert-legacy.entry.js.map +0 -1
  480. package/dist/dropi-ui/dropi-alert-modal.entry.js +0 -129
  481. package/dist/dropi-ui/dropi-alert-modal.entry.js.map +0 -1
  482. package/dist/dropi-ui/dropi-alert.entry.js +0 -65
  483. package/dist/dropi-ui/dropi-alert.entry.js.map +0 -1
  484. package/dist/dropi-ui/dropi-avatars.entry.js +0 -32
  485. package/dist/dropi-ui/dropi-avatars.entry.js.map +0 -1
  486. package/dist/dropi-ui/dropi-badge-legacy.entry.js +0 -31
  487. package/dist/dropi-ui/dropi-badge-legacy.entry.js.map +0 -1
  488. package/dist/dropi-ui/dropi-badge.entry.js +0 -38
  489. package/dist/dropi-ui/dropi-badge.entry.js.map +0 -1
  490. package/dist/dropi-ui/dropi-banner-external.entry.js +0 -64
  491. package/dist/dropi-ui/dropi-banner-external.entry.js.map +0 -1
  492. package/dist/dropi-ui/dropi-breadcrumb.entry.js +0 -49
  493. package/dist/dropi-ui/dropi-breadcrumb.entry.js.map +0 -1
  494. package/dist/dropi-ui/dropi-button.entry.js +0 -105
  495. package/dist/dropi-ui/dropi-button.entry.js.map +0 -1
  496. package/dist/dropi-ui/dropi-card-checkbox.entry.js +0 -49
  497. package/dist/dropi-ui/dropi-card-checkbox.entry.js.map +0 -1
  498. package/dist/dropi-ui/dropi-card-product.entry.js +0 -79
  499. package/dist/dropi-ui/dropi-card-product.entry.js.map +0 -1
  500. package/dist/dropi-ui/dropi-card-section.entry.js +0 -39
  501. package/dist/dropi-ui/dropi-card-section.entry.js.map +0 -1
  502. package/dist/dropi-ui/dropi-carousel.entry.js +0 -154
  503. package/dist/dropi-ui/dropi-carousel.entry.js.map +0 -1
  504. package/dist/dropi-ui/dropi-checkbox-selection-list.entry.js +0 -74
  505. package/dist/dropi-ui/dropi-checkbox-selection-list.entry.js.map +0 -1
  506. package/dist/dropi-ui/dropi-checkbox.entry.js +0 -58
  507. package/dist/dropi-ui/dropi-checkbox.entry.js.map +0 -1
  508. package/dist/dropi-ui/dropi-chips.entry.js +0 -31
  509. package/dist/dropi-ui/dropi-chips.entry.js.map +0 -1
  510. package/dist/dropi-ui/dropi-city-selector.entry.js +0 -105
  511. package/dist/dropi-ui/dropi-city-selector.entry.js.map +0 -1
  512. package/dist/dropi-ui/dropi-color-picker.entry.js +0 -320
  513. package/dist/dropi-ui/dropi-color-picker.entry.js.map +0 -1
  514. package/dist/dropi-ui/dropi-country-flags.entry.js +0 -38
  515. package/dist/dropi-ui/dropi-country-flags.entry.js.map +0 -1
  516. package/dist/dropi-ui/dropi-country-selector.entry.js +0 -299
  517. package/dist/dropi-ui/dropi-country-selector.entry.js.map +0 -1
  518. package/dist/dropi-ui/dropi-date-picker-range.entry.js +0 -295
  519. package/dist/dropi-ui/dropi-date-picker-range.entry.js.map +0 -1
  520. package/dist/dropi-ui/dropi-date-picker.entry.js +0 -345
  521. package/dist/dropi-ui/dropi-date-picker.entry.js.map +0 -1
  522. package/dist/dropi-ui/dropi-drawer.entry.js +0 -80
  523. package/dist/dropi-ui/dropi-drawer.entry.js.map +0 -1
  524. package/dist/dropi-ui/dropi-dropdown.entry.js +0 -66
  525. package/dist/dropi-ui/dropi-dropdown.entry.js.map +0 -1
  526. package/dist/dropi-ui/dropi-empty-state.entry.js +0 -114
  527. package/dist/dropi-ui/dropi-empty-state.entry.js.map +0 -1
  528. package/dist/dropi-ui/dropi-favorite-button.entry.js +0 -28
  529. package/dist/dropi-ui/dropi-favorite-button.entry.js.map +0 -1
  530. package/dist/dropi-ui/dropi-file-upload-progress-bar.entry.js +0 -78
  531. package/dist/dropi-ui/dropi-file-upload-progress-bar.entry.js.map +0 -1
  532. package/dist/dropi-ui/dropi-file-upload.entry.js +0 -238
  533. package/dist/dropi-ui/dropi-file-upload.entry.js.map +0 -1
  534. package/dist/dropi-ui/dropi-icon.entry.js +0 -351
  535. package/dist/dropi-ui/dropi-icon.entry.js.map +0 -1
  536. package/dist/dropi-ui/dropi-ilustration-icon.entry.js +0 -42
  537. package/dist/dropi-ui/dropi-ilustration-icon.entry.js.map +0 -1
  538. package/dist/dropi-ui/dropi-image-miniature.entry.js +0 -45
  539. package/dist/dropi-ui/dropi-image-miniature.entry.js.map +0 -1
  540. package/dist/dropi-ui/dropi-image-overlay.entry.js +0 -64
  541. package/dist/dropi-ui/dropi-image-overlay.entry.js.map +0 -1
  542. package/dist/dropi-ui/dropi-input.entry.js +0 -268
  543. package/dist/dropi-ui/dropi-input.entry.js.map +0 -1
  544. package/dist/dropi-ui/dropi-languages-selector.entry.js +0 -62
  545. package/dist/dropi-ui/dropi-languages-selector.entry.js.map +0 -1
  546. package/dist/dropi-ui/dropi-logo.entry.js +0 -38
  547. package/dist/dropi-ui/dropi-logo.entry.js.map +0 -1
  548. package/dist/dropi-ui/dropi-lottie-loader.entry.js +0 -28
  549. package/dist/dropi-ui/dropi-lottie-loader.entry.js.map +0 -1
  550. package/dist/dropi-ui/dropi-media-player.entry.js +0 -193
  551. package/dist/dropi-ui/dropi-media-player.entry.js.map +0 -1
  552. package/dist/dropi-ui/dropi-modal.entry.js +0 -148
  553. package/dist/dropi-ui/dropi-modal.entry.js.map +0 -1
  554. package/dist/dropi-ui/dropi-navbar.entry.js +0 -55
  555. package/dist/dropi-ui/dropi-navbar.entry.js.map +0 -1
  556. package/dist/dropi-ui/dropi-otp-send-code.entry.js +0 -146
  557. package/dist/dropi-ui/dropi-otp-send-code.entry.js.map +0 -1
  558. package/dist/dropi-ui/dropi-paginator.entry.js +0 -70
  559. package/dist/dropi-ui/dropi-paginator.entry.js.map +0 -1
  560. package/dist/dropi-ui/dropi-phone-input.entry.js +0 -221
  561. package/dist/dropi-ui/dropi-phone-input.entry.js.map +0 -1
  562. package/dist/dropi-ui/dropi-progress-bar.entry.js +0 -44
  563. package/dist/dropi-ui/dropi-progress-bar.entry.js.map +0 -1
  564. package/dist/dropi-ui/dropi-radio-button.entry.js +0 -65
  565. package/dist/dropi-ui/dropi-radio-button.entry.js.map +0 -1
  566. package/dist/dropi-ui/dropi-radio-selection-list.entry.js +0 -61
  567. package/dist/dropi-ui/dropi-radio-selection-list.entry.js.map +0 -1
  568. package/dist/dropi-ui/dropi-read-more.entry.js +0 -41
  569. package/dist/dropi-ui/dropi-read-more.entry.js.map +0 -1
  570. package/dist/dropi-ui/dropi-search.entry.js +0 -125
  571. package/dist/dropi-ui/dropi-search.entry.js.map +0 -1
  572. package/dist/dropi-ui/dropi-select.entry.js +0 -411
  573. package/dist/dropi-ui/dropi-select.entry.js.map +0 -1
  574. package/dist/dropi-ui/dropi-sidebar.entry.js +0 -79
  575. package/dist/dropi-ui/dropi-sidebar.entry.js.map +0 -1
  576. package/dist/dropi-ui/dropi-simple-stepper.entry.js +0 -54
  577. package/dist/dropi-ui/dropi-simple-stepper.entry.js.map +0 -1
  578. package/dist/dropi-ui/dropi-skeleton.entry.js +0 -58
  579. package/dist/dropi-ui/dropi-skeleton.entry.js.map +0 -1
  580. package/dist/dropi-ui/dropi-steps.entry.js +0 -63
  581. package/dist/dropi-ui/dropi-steps.entry.js.map +0 -1
  582. package/dist/dropi-ui/dropi-switch.entry.js +0 -52
  583. package/dist/dropi-ui/dropi-switch.entry.js.map +0 -1
  584. package/dist/dropi-ui/dropi-table.entry.js +0 -308
  585. package/dist/dropi-ui/dropi-table.entry.js.map +0 -1
  586. package/dist/dropi-ui/dropi-tabs.entry.js +0 -52
  587. package/dist/dropi-ui/dropi-tabs.entry.js.map +0 -1
  588. package/dist/dropi-ui/dropi-tag-type-product.entry.js +0 -20
  589. package/dist/dropi-ui/dropi-tag-type-product.entry.js.map +0 -1
  590. package/dist/dropi-ui/dropi-tag.entry.js +0 -97
  591. package/dist/dropi-ui/dropi-tag.entry.js.map +0 -1
  592. package/dist/dropi-ui/dropi-text-area.entry.js +0 -135
  593. package/dist/dropi-ui/dropi-text-area.entry.js.map +0 -1
  594. package/dist/dropi-ui/dropi-time-line.entry.js +0 -35
  595. package/dist/dropi-ui/dropi-time-line.entry.js.map +0 -1
  596. package/dist/dropi-ui/dropi-toast.entry.js +0 -55
  597. package/dist/dropi-ui/dropi-toast.entry.js.map +0 -1
  598. package/dist/dropi-ui/dropi-tooltip-v2.entry.js +0 -132
  599. package/dist/dropi-ui/dropi-tooltip-v2.entry.js.map +0 -1
  600. package/dist/dropi-ui/dropi-tooltip.entry.js +0 -22
  601. package/dist/dropi-ui/dropi-tooltip.entry.js.map +0 -1
  602. package/dist/dropi-ui/dropi-ui.css +0 -1
  603. package/dist/dropi-ui/dropi-ui.esm.js +0 -50
  604. package/dist/dropi-ui/dropi-ui.esm.js.map +0 -1
  605. package/dist/dropi-ui/dropi-vertical-steps.entry.js +0 -56
  606. package/dist/dropi-ui/dropi-vertical-steps.entry.js.map +0 -1
  607. package/dist/dropi-ui/dropi-youtube-lazy-video.entry.js +0 -34
  608. package/dist/dropi-ui/dropi-youtube-lazy-video.entry.js.map +0 -1
  609. package/dist/dropi-ui/index-BKkSRXlb.js +0 -4625
  610. package/dist/dropi-ui/index-BKkSRXlb.js.map +0 -1
  611. package/dist/dropi-ui/index-CPacpXAJ.js +0 -4625
  612. package/dist/dropi-ui/index-CPacpXAJ.js.map +0 -1
  613. package/dist/dropi-ui/index-Cvp2LQOM.js +0 -4585
  614. package/dist/dropi-ui/index-Cvp2LQOM.js.map +0 -1
  615. package/dist/dropi-ui/index-D0Z06C2b.js +0 -4585
  616. package/dist/dropi-ui/index-D0Z06C2b.js.map +0 -1
  617. package/dist/dropi-ui/index-DrzVsORR.js +0 -4625
  618. package/dist/dropi-ui/index-DrzVsORR.js.map +0 -1
  619. package/dist/dropi-ui/index.esm.js +0 -0
  620. package/dist/dropi-ui/index.esm.js.map +0 -1
  621. package/dist/dropi-ui/lottie-map.generated-BEs9gbju.js +0 -15
  622. package/dist/dropi-ui/lottie-map.generated-BEs9gbju.js.map +0 -1
  623. package/dist/dropi-ui/p-01027049.entry.js +0 -1
  624. package/dist/dropi-ui/p-0190a96b.entry.js +0 -1
  625. package/dist/dropi-ui/p-019c2c37.entry.js +0 -1
  626. package/dist/dropi-ui/p-01c57627.entry.js +0 -1
  627. package/dist/dropi-ui/p-01e4fe42.entry.js +0 -1
  628. package/dist/dropi-ui/p-02172dc2.entry.js +0 -1
  629. package/dist/dropi-ui/p-021f55e5.entry.js +0 -1
  630. package/dist/dropi-ui/p-02e0f8cc.entry.js +0 -1
  631. package/dist/dropi-ui/p-03515548.entry.js +0 -1
  632. package/dist/dropi-ui/p-0366349e.entry.js +0 -1
  633. package/dist/dropi-ui/p-0393dfc9.entry.js +0 -1
  634. package/dist/dropi-ui/p-04cd97a1.entry.js +0 -1
  635. package/dist/dropi-ui/p-0551c30a.entry.js +0 -1
  636. package/dist/dropi-ui/p-05541247.entry.js +0 -1
  637. package/dist/dropi-ui/p-06bdd006.entry.js +0 -1
  638. package/dist/dropi-ui/p-07cc280c.entry.js +0 -1
  639. package/dist/dropi-ui/p-086a6f5f.entry.js +0 -1
  640. package/dist/dropi-ui/p-088616e6.entry.js +0 -1
  641. package/dist/dropi-ui/p-08bc8fb2.entry.js +0 -1
  642. package/dist/dropi-ui/p-090817e4.entry.js +0 -1
  643. package/dist/dropi-ui/p-09462f7b.entry.js +0 -1
  644. package/dist/dropi-ui/p-0946a1f7.entry.js +0 -1
  645. package/dist/dropi-ui/p-094ab555.entry.js +0 -1
  646. package/dist/dropi-ui/p-099f4475.entry.js +0 -1
  647. package/dist/dropi-ui/p-09aa9a3c.entry.js +0 -1
  648. package/dist/dropi-ui/p-09cf560a.entry.js +0 -1
  649. package/dist/dropi-ui/p-0a76c15c.entry.js +0 -1
  650. package/dist/dropi-ui/p-0d03e548.entry.js +0 -1
  651. package/dist/dropi-ui/p-0d188f2c.entry.js +0 -1
  652. package/dist/dropi-ui/p-0d3cabe9.entry.js +0 -1
  653. package/dist/dropi-ui/p-0d877866.entry.js +0 -1
  654. package/dist/dropi-ui/p-0d8ff50d.entry.js +0 -1
  655. package/dist/dropi-ui/p-0e026afe.entry.js +0 -1
  656. package/dist/dropi-ui/p-0ee1edcd.entry.js +0 -1
  657. package/dist/dropi-ui/p-0ef73e45.entry.js +0 -1
  658. package/dist/dropi-ui/p-0f1b13e5.entry.js +0 -1
  659. package/dist/dropi-ui/p-0f20c87c.entry.js +0 -1
  660. package/dist/dropi-ui/p-0fefc0c8.entry.js +0 -1
  661. package/dist/dropi-ui/p-1107c210.entry.js +0 -1
  662. package/dist/dropi-ui/p-113516f7.entry.js +0 -1
  663. package/dist/dropi-ui/p-11833072.entry.js +0 -1
  664. package/dist/dropi-ui/p-119a353b.entry.js +0 -1
  665. package/dist/dropi-ui/p-13a6dd72.entry.js +0 -1
  666. package/dist/dropi-ui/p-13ae29ad.entry.js +0 -1
  667. package/dist/dropi-ui/p-13e1c3a4.entry.js +0 -1
  668. package/dist/dropi-ui/p-14124aee.entry.js +0 -1
  669. package/dist/dropi-ui/p-149c92ba.entry.js +0 -1
  670. package/dist/dropi-ui/p-1558c22f.entry.js +0 -1
  671. package/dist/dropi-ui/p-1633c2df.entry.js +0 -1
  672. package/dist/dropi-ui/p-16674c7c.entry.js +0 -1
  673. package/dist/dropi-ui/p-16d0400d.entry.js +0 -1
  674. package/dist/dropi-ui/p-17133bc1.entry.js +0 -1
  675. package/dist/dropi-ui/p-17b16a74.entry.js +0 -1
  676. package/dist/dropi-ui/p-17c53e19.entry.js +0 -1
  677. package/dist/dropi-ui/p-17c56074.entry.js +0 -1
  678. package/dist/dropi-ui/p-181b2d76.entry.js +0 -1
  679. package/dist/dropi-ui/p-184442f6.entry.js +0 -1
  680. package/dist/dropi-ui/p-1901806b.entry.js +0 -1
  681. package/dist/dropi-ui/p-19031bf8.entry.js +0 -1
  682. package/dist/dropi-ui/p-1976985d.entry.js +0 -1
  683. package/dist/dropi-ui/p-1a07b3a6.entry.js +0 -1
  684. package/dist/dropi-ui/p-1a222047.entry.js +0 -1
  685. package/dist/dropi-ui/p-1a874d9f.entry.js +0 -1
  686. package/dist/dropi-ui/p-1cc30188.entry.js +0 -1
  687. package/dist/dropi-ui/p-1cd4d630.entry.js +0 -1
  688. package/dist/dropi-ui/p-1ce00757.entry.js +0 -1
  689. package/dist/dropi-ui/p-1d3d6a32.entry.js +0 -1
  690. package/dist/dropi-ui/p-1d75dff6.entry.js +0 -1
  691. package/dist/dropi-ui/p-1e3f0220.entry.js +0 -1
  692. package/dist/dropi-ui/p-2076bc28.entry.js +0 -1
  693. package/dist/dropi-ui/p-20a6a2aa.entry.js +0 -1
  694. package/dist/dropi-ui/p-229dddb0.entry.js +0 -1
  695. package/dist/dropi-ui/p-2464f664.entry.js +0 -1
  696. package/dist/dropi-ui/p-24e17d9c.entry.js +0 -1
  697. package/dist/dropi-ui/p-256bf069.entry.js +0 -1
  698. package/dist/dropi-ui/p-258f147a.entry.js +0 -1
  699. package/dist/dropi-ui/p-25f0c2c9.entry.js +0 -1
  700. package/dist/dropi-ui/p-260d2559.entry.js +0 -1
  701. package/dist/dropi-ui/p-26663648.entry.js +0 -1
  702. package/dist/dropi-ui/p-267fda26.entry.js +0 -1
  703. package/dist/dropi-ui/p-26c997a4.entry.js +0 -1
  704. package/dist/dropi-ui/p-278281d2.entry.js +0 -1
  705. package/dist/dropi-ui/p-27d5b554.entry.js +0 -1
  706. package/dist/dropi-ui/p-280c5731.entry.js +0 -1
  707. package/dist/dropi-ui/p-287a3a81.entry.js +0 -1
  708. package/dist/dropi-ui/p-28f960a1.entry.js +0 -1
  709. package/dist/dropi-ui/p-29a3389a.entry.js +0 -1
  710. package/dist/dropi-ui/p-29dbfb9a.entry.js +0 -1
  711. package/dist/dropi-ui/p-29e4dacf.entry.js +0 -1
  712. package/dist/dropi-ui/p-2ad5dbd2.entry.js +0 -1
  713. package/dist/dropi-ui/p-2ad8d3c1.entry.js +0 -1
  714. package/dist/dropi-ui/p-2af47f62.entry.js +0 -1
  715. package/dist/dropi-ui/p-2b5ce062.entry.js +0 -1
  716. package/dist/dropi-ui/p-2b8e9056.entry.js +0 -1
  717. package/dist/dropi-ui/p-2d1a6f05.entry.js +0 -1
  718. package/dist/dropi-ui/p-2d356767.entry.js +0 -1
  719. package/dist/dropi-ui/p-2d9978c1.entry.js +0 -1
  720. package/dist/dropi-ui/p-2ed8b556.entry.js +0 -1
  721. package/dist/dropi-ui/p-2f6b96de.entry.js +0 -1
  722. package/dist/dropi-ui/p-2f9072e7.entry.js +0 -1
  723. package/dist/dropi-ui/p-30377b7e.entry.js +0 -1
  724. package/dist/dropi-ui/p-32512758.entry.js +0 -1
  725. package/dist/dropi-ui/p-3277ea55.entry.js +0 -1
  726. package/dist/dropi-ui/p-32bc1d2a.entry.js +0 -1
  727. package/dist/dropi-ui/p-32c71a16.entry.js +0 -1
  728. package/dist/dropi-ui/p-32f144b2.entry.js +0 -1
  729. package/dist/dropi-ui/p-342eaf9e.entry.js +0 -1
  730. package/dist/dropi-ui/p-3496cc01.entry.js +0 -1
  731. package/dist/dropi-ui/p-34f2e28d.entry.js +0 -1
  732. package/dist/dropi-ui/p-356ab2c5.entry.js +0 -1
  733. package/dist/dropi-ui/p-35b37d1a.entry.js +0 -1
  734. package/dist/dropi-ui/p-35ce96a3.entry.js +0 -1
  735. package/dist/dropi-ui/p-369a069e.entry.js +0 -1
  736. package/dist/dropi-ui/p-3721a73a.entry.js +0 -1
  737. package/dist/dropi-ui/p-372a5023.entry.js +0 -1
  738. package/dist/dropi-ui/p-3769ad78.entry.js +0 -1
  739. package/dist/dropi-ui/p-378b165b.entry.js +0 -1
  740. package/dist/dropi-ui/p-37a91ebb.entry.js +0 -1
  741. package/dist/dropi-ui/p-37bdbadc.entry.js +0 -1
  742. package/dist/dropi-ui/p-37d60102.entry.js +0 -1
  743. package/dist/dropi-ui/p-3843cba5.entry.js +0 -1
  744. package/dist/dropi-ui/p-38bb4b42.entry.js +0 -1
  745. package/dist/dropi-ui/p-38ea66e4.entry.js +0 -1
  746. package/dist/dropi-ui/p-393867c2.entry.js +0 -1
  747. package/dist/dropi-ui/p-3a28b79c.entry.js +0 -1
  748. package/dist/dropi-ui/p-3a9cd930.entry.js +0 -1
  749. package/dist/dropi-ui/p-3aefce2b.entry.js +0 -1
  750. package/dist/dropi-ui/p-3b1bb32e.entry.js +0 -1
  751. package/dist/dropi-ui/p-3b47c86f.entry.js +0 -1
  752. package/dist/dropi-ui/p-3b7060e1.entry.js +0 -1
  753. package/dist/dropi-ui/p-3d6fecfa.entry.js +0 -1
  754. package/dist/dropi-ui/p-3e36c8b8.entry.js +0 -1
  755. package/dist/dropi-ui/p-3ebc9b7b.entry.js +0 -1
  756. package/dist/dropi-ui/p-3ec6620c.entry.js +0 -1
  757. package/dist/dropi-ui/p-3f75523b.entry.js +0 -1
  758. package/dist/dropi-ui/p-3f76c680.entry.js +0 -1
  759. package/dist/dropi-ui/p-40376329.entry.js +0 -1
  760. package/dist/dropi-ui/p-4158d4b7.entry.js +0 -1
  761. package/dist/dropi-ui/p-42854929.entry.js +0 -1
  762. package/dist/dropi-ui/p-42a85ce5.entry.js +0 -1
  763. package/dist/dropi-ui/p-4337fd7a.entry.js +0 -1
  764. package/dist/dropi-ui/p-436f196f.entry.js +0 -1
  765. package/dist/dropi-ui/p-4390c849.entry.js +0 -1
  766. package/dist/dropi-ui/p-43e21ed8.entry.js +0 -1
  767. package/dist/dropi-ui/p-440e6f67.entry.js +0 -1
  768. package/dist/dropi-ui/p-4432c17d.entry.js +0 -1
  769. package/dist/dropi-ui/p-44c9fb4e.entry.js +0 -1
  770. package/dist/dropi-ui/p-4531453d.entry.js +0 -1
  771. package/dist/dropi-ui/p-46a1d393.entry.js +0 -1
  772. package/dist/dropi-ui/p-4759c782.entry.js +0 -1
  773. package/dist/dropi-ui/p-488a3113.entry.js +0 -1
  774. package/dist/dropi-ui/p-492b8a1f.entry.js +0 -1
  775. package/dist/dropi-ui/p-492f9d36.entry.js +0 -1
  776. package/dist/dropi-ui/p-496893e8.entry.js +0 -1
  777. package/dist/dropi-ui/p-497e4eff.entry.js +0 -1
  778. package/dist/dropi-ui/p-4986f584.entry.js +0 -1
  779. package/dist/dropi-ui/p-49fb5900.entry.js +0 -1
  780. package/dist/dropi-ui/p-4a39e574.entry.js +0 -1
  781. package/dist/dropi-ui/p-4a72e4c8.entry.js +0 -1
  782. package/dist/dropi-ui/p-4b169817.entry.js +0 -1
  783. package/dist/dropi-ui/p-4b5775bd.entry.js +0 -1
  784. package/dist/dropi-ui/p-4d31eab8.entry.js +0 -1
  785. package/dist/dropi-ui/p-4e401fbc.entry.js +0 -1
  786. package/dist/dropi-ui/p-4f0f060c.entry.js +0 -1
  787. package/dist/dropi-ui/p-4f498d26.entry.js +0 -1
  788. package/dist/dropi-ui/p-4f4b4a39.entry.js +0 -1
  789. package/dist/dropi-ui/p-508cfd38.entry.js +0 -1
  790. package/dist/dropi-ui/p-50e851b7.entry.js +0 -1
  791. package/dist/dropi-ui/p-51028e22.entry.js +0 -1
  792. package/dist/dropi-ui/p-510ad065.entry.js +0 -1
  793. package/dist/dropi-ui/p-51a44cdc.entry.js +0 -1
  794. package/dist/dropi-ui/p-52e6a495.entry.js +0 -1
  795. package/dist/dropi-ui/p-532136cc.entry.js +0 -1
  796. package/dist/dropi-ui/p-53a7a37d.entry.js +0 -1
  797. package/dist/dropi-ui/p-53d2905c.entry.js +0 -1
  798. package/dist/dropi-ui/p-5415ed33.entry.js +0 -1
  799. package/dist/dropi-ui/p-542d0b9c.entry.js +0 -1
  800. package/dist/dropi-ui/p-54ab9e77.entry.js +0 -1
  801. package/dist/dropi-ui/p-54bfb072.entry.js +0 -1
  802. package/dist/dropi-ui/p-54d243db.entry.js +0 -1
  803. package/dist/dropi-ui/p-5662edbf.entry.js +0 -1
  804. package/dist/dropi-ui/p-5730ca4e.entry.js +0 -1
  805. package/dist/dropi-ui/p-575e1951.entry.js +0 -1
  806. package/dist/dropi-ui/p-57c3b667.entry.js +0 -1
  807. package/dist/dropi-ui/p-58093c18.entry.js +0 -1
  808. package/dist/dropi-ui/p-5915d227.entry.js +0 -1
  809. package/dist/dropi-ui/p-59caf3ac.entry.js +0 -1
  810. package/dist/dropi-ui/p-5a6e3420.entry.js +0 -1
  811. package/dist/dropi-ui/p-5bd0bb86.entry.js +0 -1
  812. package/dist/dropi-ui/p-5c0cd221.entry.js +0 -1
  813. package/dist/dropi-ui/p-5cee6721.entry.js +0 -1
  814. package/dist/dropi-ui/p-5db953ba.entry.js +0 -1
  815. package/dist/dropi-ui/p-5e0b54e3.entry.js +0 -1
  816. package/dist/dropi-ui/p-5e0da387.entry.js +0 -1
  817. package/dist/dropi-ui/p-5eb75ddf.entry.js +0 -1
  818. package/dist/dropi-ui/p-5f5c0a5c.entry.js +0 -1
  819. package/dist/dropi-ui/p-5f735166.entry.js +0 -1
  820. package/dist/dropi-ui/p-6018f6a1.entry.js +0 -1
  821. package/dist/dropi-ui/p-60901aa7.entry.js +0 -1
  822. package/dist/dropi-ui/p-61f8905c.entry.js +0 -1
  823. package/dist/dropi-ui/p-62847b6f.entry.js +0 -1
  824. package/dist/dropi-ui/p-63356807.entry.js +0 -1
  825. package/dist/dropi-ui/p-647bab57.entry.js +0 -1
  826. package/dist/dropi-ui/p-648e5340.entry.js +0 -1
  827. package/dist/dropi-ui/p-64c37ff6.entry.js +0 -1
  828. package/dist/dropi-ui/p-64dd3db0.entry.js +0 -1
  829. package/dist/dropi-ui/p-650a7679.entry.js +0 -1
  830. package/dist/dropi-ui/p-65e31926.entry.js +0 -1
  831. package/dist/dropi-ui/p-66595a21.entry.js +0 -1
  832. package/dist/dropi-ui/p-66cf3dbe.entry.js +0 -1
  833. package/dist/dropi-ui/p-66d7d67b.entry.js +0 -1
  834. package/dist/dropi-ui/p-673a5cfd.entry.js +0 -1
  835. package/dist/dropi-ui/p-67ba7d35.entry.js +0 -1
  836. package/dist/dropi-ui/p-67fbe7e4.entry.js +0 -1
  837. package/dist/dropi-ui/p-68cae74b.entry.js +0 -1
  838. package/dist/dropi-ui/p-692b665a.entry.js +0 -1
  839. package/dist/dropi-ui/p-69cf66c1.entry.js +0 -1
  840. package/dist/dropi-ui/p-69f07cca.entry.js +0 -1
  841. package/dist/dropi-ui/p-6a148627.entry.js +0 -1
  842. package/dist/dropi-ui/p-6a51f80c.entry.js +0 -1
  843. package/dist/dropi-ui/p-6a6171ba.entry.js +0 -1
  844. package/dist/dropi-ui/p-6aaf5a93.entry.js +0 -1
  845. package/dist/dropi-ui/p-6b925a36.entry.js +0 -1
  846. package/dist/dropi-ui/p-6c45c910.entry.js +0 -1
  847. package/dist/dropi-ui/p-6ca312e3.entry.js +0 -1
  848. package/dist/dropi-ui/p-6cb6cfe0.entry.js +0 -1
  849. package/dist/dropi-ui/p-6d9b61a9.entry.js +0 -1
  850. package/dist/dropi-ui/p-6dbce3d3.entry.js +0 -1
  851. package/dist/dropi-ui/p-6def424b.entry.js +0 -1
  852. package/dist/dropi-ui/p-6e4f08eb.entry.js +0 -1
  853. package/dist/dropi-ui/p-6ea74d84.entry.js +0 -1
  854. package/dist/dropi-ui/p-6ef4affd.entry.js +0 -1
  855. package/dist/dropi-ui/p-6efa35f2.entry.js +0 -1
  856. package/dist/dropi-ui/p-70295204.entry.js +0 -1
  857. package/dist/dropi-ui/p-704c6619.entry.js +0 -1
  858. package/dist/dropi-ui/p-70f75e92.entry.js +0 -1
  859. package/dist/dropi-ui/p-7140309a.entry.js +0 -1
  860. package/dist/dropi-ui/p-719a01cb.entry.js +0 -1
  861. package/dist/dropi-ui/p-71ad00c8.entry.js +0 -1
  862. package/dist/dropi-ui/p-721ef2b1.entry.js +0 -1
  863. package/dist/dropi-ui/p-72c6e0c4.entry.js +0 -1
  864. package/dist/dropi-ui/p-72ec96d0.entry.js +0 -1
  865. package/dist/dropi-ui/p-7369b3b4.entry.js +0 -1
  866. package/dist/dropi-ui/p-7450d195.entry.js +0 -1
  867. package/dist/dropi-ui/p-74fcbc88.entry.js +0 -1
  868. package/dist/dropi-ui/p-754aed1c.entry.js +0 -1
  869. package/dist/dropi-ui/p-7664b8f9.entry.js +0 -1
  870. package/dist/dropi-ui/p-76651c16.entry.js +0 -1
  871. package/dist/dropi-ui/p-769929eb.entry.js +0 -1
  872. package/dist/dropi-ui/p-76b33901.entry.js +0 -1
  873. package/dist/dropi-ui/p-76fa02a1.entry.js +0 -1
  874. package/dist/dropi-ui/p-770b0195.entry.js +0 -1
  875. package/dist/dropi-ui/p-774aab1a.entry.js +0 -1
  876. package/dist/dropi-ui/p-77cd2fcb.entry.js +0 -1
  877. package/dist/dropi-ui/p-7822b081.entry.js +0 -1
  878. package/dist/dropi-ui/p-78282471.entry.js +0 -1
  879. package/dist/dropi-ui/p-788b7388.entry.js +0 -1
  880. package/dist/dropi-ui/p-78aa7fb3.entry.js +0 -1
  881. package/dist/dropi-ui/p-7a18b7a0.entry.js +0 -1
  882. package/dist/dropi-ui/p-7a25f595.entry.js +0 -1
  883. package/dist/dropi-ui/p-7a78e38d.entry.js +0 -1
  884. package/dist/dropi-ui/p-7a9628df.entry.js +0 -1
  885. package/dist/dropi-ui/p-7ac0c653.entry.js +0 -1
  886. package/dist/dropi-ui/p-7bc18f39.entry.js +0 -1
  887. package/dist/dropi-ui/p-7be214a0.entry.js +0 -1
  888. package/dist/dropi-ui/p-7c0f959f.entry.js +0 -1
  889. package/dist/dropi-ui/p-7c3aa4bc.entry.js +0 -1
  890. package/dist/dropi-ui/p-7c5ea4c5.entry.js +0 -1
  891. package/dist/dropi-ui/p-7cb27020.entry.js +0 -1
  892. package/dist/dropi-ui/p-7ce74f7f.entry.js +0 -1
  893. package/dist/dropi-ui/p-7d61faf2.entry.js +0 -1
  894. package/dist/dropi-ui/p-7e0783d3.entry.js +0 -1
  895. package/dist/dropi-ui/p-7e4d0691.entry.js +0 -1
  896. package/dist/dropi-ui/p-7e526178.entry.js +0 -1
  897. package/dist/dropi-ui/p-7e99d4c4.entry.js +0 -1
  898. package/dist/dropi-ui/p-7f02ae47.entry.js +0 -1
  899. package/dist/dropi-ui/p-7f0f828d.entry.js +0 -1
  900. package/dist/dropi-ui/p-7f538bbf.entry.js +0 -1
  901. package/dist/dropi-ui/p-7f6f757b.entry.js +0 -1
  902. package/dist/dropi-ui/p-7f85578a.entry.js +0 -1
  903. package/dist/dropi-ui/p-7fc195ee.entry.js +0 -1
  904. package/dist/dropi-ui/p-7fd2db00.entry.js +0 -1
  905. package/dist/dropi-ui/p-7fe30856.entry.js +0 -1
  906. package/dist/dropi-ui/p-803ab87b.entry.js +0 -1
  907. package/dist/dropi-ui/p-8089116b.entry.js +0 -1
  908. package/dist/dropi-ui/p-80ebe1e0.entry.js +0 -1
  909. package/dist/dropi-ui/p-80f0f6e6.entry.js +0 -1
  910. package/dist/dropi-ui/p-813678a2.entry.js +0 -1
  911. package/dist/dropi-ui/p-819d810e.entry.js +0 -1
  912. package/dist/dropi-ui/p-81e8b29e.entry.js +0 -1
  913. package/dist/dropi-ui/p-82909f07.entry.js +0 -1
  914. package/dist/dropi-ui/p-83887880.entry.js +0 -1
  915. package/dist/dropi-ui/p-83dbc407.entry.js +0 -1
  916. package/dist/dropi-ui/p-83fa5e18.entry.js +0 -1
  917. package/dist/dropi-ui/p-84019422.entry.js +0 -1
  918. package/dist/dropi-ui/p-8465f52d.entry.js +0 -1
  919. package/dist/dropi-ui/p-84c63ece.entry.js +0 -1
  920. package/dist/dropi-ui/p-850b92f0.entry.js +0 -1
  921. package/dist/dropi-ui/p-85444414.entry.js +0 -1
  922. package/dist/dropi-ui/p-85c637bd.entry.js +0 -1
  923. package/dist/dropi-ui/p-85ee6d6a.entry.js +0 -1
  924. package/dist/dropi-ui/p-86283e99.entry.js +0 -1
  925. package/dist/dropi-ui/p-870846af.entry.js +0 -1
  926. package/dist/dropi-ui/p-87167578.entry.js +0 -1
  927. package/dist/dropi-ui/p-8782862b.entry.js +0 -1
  928. package/dist/dropi-ui/p-879f79cf.entry.js +0 -1
  929. package/dist/dropi-ui/p-87cc4dcd.entry.js +0 -1
  930. package/dist/dropi-ui/p-899089f0.entry.js +0 -1
  931. package/dist/dropi-ui/p-8ac5a31d.entry.js +0 -1
  932. package/dist/dropi-ui/p-8adb80a4.entry.js +0 -1
  933. package/dist/dropi-ui/p-8b8dc399.entry.js +0 -1
  934. package/dist/dropi-ui/p-8c0ff5e6.entry.js +0 -1
  935. package/dist/dropi-ui/p-8c107dbe.entry.js +0 -1
  936. package/dist/dropi-ui/p-8cf27f13.entry.js +0 -1
  937. package/dist/dropi-ui/p-8d6313c0.entry.js +0 -1
  938. package/dist/dropi-ui/p-8dbc6bc8.entry.js +0 -1
  939. package/dist/dropi-ui/p-8eb0ebff.entry.js +0 -1
  940. package/dist/dropi-ui/p-8f4b21e8.entry.js +0 -1
  941. package/dist/dropi-ui/p-8fc3dbcb.entry.js +0 -1
  942. package/dist/dropi-ui/p-8feee3fd.entry.js +0 -1
  943. package/dist/dropi-ui/p-9032ba00.entry.js +0 -1
  944. package/dist/dropi-ui/p-90abda79.entry.js +0 -1
  945. package/dist/dropi-ui/p-910af7cf.entry.js +0 -1
  946. package/dist/dropi-ui/p-92185d67.entry.js +0 -1
  947. package/dist/dropi-ui/p-92291873.entry.js +0 -1
  948. package/dist/dropi-ui/p-92879d0d.entry.js +0 -1
  949. package/dist/dropi-ui/p-928b59e8.entry.js +0 -1
  950. package/dist/dropi-ui/p-929bc2b6.entry.js +0 -1
  951. package/dist/dropi-ui/p-92c9e3c5.entry.js +0 -1
  952. package/dist/dropi-ui/p-93cd9afe.entry.js +0 -1
  953. package/dist/dropi-ui/p-94144382.entry.js +0 -1
  954. package/dist/dropi-ui/p-94a58087.entry.js +0 -1
  955. package/dist/dropi-ui/p-94ec77fc.entry.js +0 -1
  956. package/dist/dropi-ui/p-95808559.entry.js +0 -1
  957. package/dist/dropi-ui/p-95b7abf3.entry.js +0 -1
  958. package/dist/dropi-ui/p-9645d628.entry.js +0 -1
  959. package/dist/dropi-ui/p-964ba5de.entry.js +0 -1
  960. package/dist/dropi-ui/p-96f72e50.entry.js +0 -1
  961. package/dist/dropi-ui/p-9733212c.entry.js +0 -1
  962. package/dist/dropi-ui/p-97aa4446.entry.js +0 -1
  963. package/dist/dropi-ui/p-97b9fed2.entry.js +0 -1
  964. package/dist/dropi-ui/p-97de6718.entry.js +0 -1
  965. package/dist/dropi-ui/p-98156424.entry.js +0 -1
  966. package/dist/dropi-ui/p-992134d3.entry.js +0 -1
  967. package/dist/dropi-ui/p-998b016a.entry.js +0 -1
  968. package/dist/dropi-ui/p-99f48203.entry.js +0 -1
  969. package/dist/dropi-ui/p-9a569a4e.entry.js +0 -1
  970. package/dist/dropi-ui/p-9ac8caea.entry.js +0 -1
  971. package/dist/dropi-ui/p-9b037086.entry.js +0 -1
  972. package/dist/dropi-ui/p-9b24e8fd.entry.js +0 -1
  973. package/dist/dropi-ui/p-9b288982.entry.js +0 -1
  974. package/dist/dropi-ui/p-9b55c8ad.entry.js +0 -1
  975. package/dist/dropi-ui/p-9b6fe588.entry.js +0 -1
  976. package/dist/dropi-ui/p-9b7810f9.entry.js +0 -1
  977. package/dist/dropi-ui/p-9bcde3a5.entry.js +0 -1
  978. package/dist/dropi-ui/p-9bfd53be.entry.js +0 -1
  979. package/dist/dropi-ui/p-9c734a8f.entry.js +0 -1
  980. package/dist/dropi-ui/p-9c73b4ce.entry.js +0 -1
  981. package/dist/dropi-ui/p-9c7698ef.entry.js +0 -1
  982. package/dist/dropi-ui/p-9c9c6274.entry.js +0 -1
  983. package/dist/dropi-ui/p-9e0129cc.entry.js +0 -1
  984. package/dist/dropi-ui/p-9e62ff06.entry.js +0 -1
  985. package/dist/dropi-ui/p-9e8615de.entry.js +0 -1
  986. package/dist/dropi-ui/p-9ffec3f7.entry.js +0 -1
  987. package/dist/dropi-ui/p-B-h7fjQz.js +0 -2
  988. package/dist/dropi-ui/p-BEs9gbju.js +0 -1
  989. package/dist/dropi-ui/p-CWoV_bQo.js +0 -2
  990. package/dist/dropi-ui/p-D5SAM1O2.js +0 -2
  991. package/dist/dropi-ui/p-K5v4Q5tq.js +0 -2
  992. package/dist/dropi-ui/p-a0135272.entry.js +0 -1
  993. package/dist/dropi-ui/p-a0a87272.entry.js +0 -1
  994. package/dist/dropi-ui/p-a0ade2e7.entry.js +0 -1
  995. package/dist/dropi-ui/p-a1471797.entry.js +0 -1
  996. package/dist/dropi-ui/p-a2b4ba6d.entry.js +0 -1
  997. package/dist/dropi-ui/p-a2fb4CHk.js +0 -2
  998. package/dist/dropi-ui/p-a3b729fe.entry.js +0 -1
  999. package/dist/dropi-ui/p-a3c3e479.entry.js +0 -1
  1000. package/dist/dropi-ui/p-a3c4d677.entry.js +0 -1
  1001. package/dist/dropi-ui/p-a3d602fd.entry.js +0 -1
  1002. package/dist/dropi-ui/p-a457e8ca.entry.js +0 -1
  1003. package/dist/dropi-ui/p-a469a6d4.entry.js +0 -1
  1004. package/dist/dropi-ui/p-a470a24a.entry.js +0 -1
  1005. package/dist/dropi-ui/p-a4e1df5e.entry.js +0 -1
  1006. package/dist/dropi-ui/p-a50c8339.entry.js +0 -1
  1007. package/dist/dropi-ui/p-a50e6592.entry.js +0 -1
  1008. package/dist/dropi-ui/p-a524ef3d.entry.js +0 -1
  1009. package/dist/dropi-ui/p-a580e8c8.entry.js +0 -1
  1010. package/dist/dropi-ui/p-a5b3548c.entry.js +0 -1
  1011. package/dist/dropi-ui/p-a5e4bd7a.entry.js +0 -1
  1012. package/dist/dropi-ui/p-a62c691f.entry.js +0 -1
  1013. package/dist/dropi-ui/p-a6a73485.entry.js +0 -1
  1014. package/dist/dropi-ui/p-a745529a.entry.js +0 -1
  1015. package/dist/dropi-ui/p-a805fbad.entry.js +0 -1
  1016. package/dist/dropi-ui/p-a82ecdd5.entry.js +0 -1
  1017. package/dist/dropi-ui/p-a8f24270.entry.js +0 -1
  1018. package/dist/dropi-ui/p-a91d8b2c.entry.js +0 -1
  1019. package/dist/dropi-ui/p-a9213e90.entry.js +0 -1
  1020. package/dist/dropi-ui/p-a9682999.entry.js +0 -1
  1021. package/dist/dropi-ui/p-a96c54ed.entry.js +0 -1
  1022. package/dist/dropi-ui/p-a9f8fc5e.entry.js +0 -1
  1023. package/dist/dropi-ui/p-a9f93e82.entry.js +0 -1
  1024. package/dist/dropi-ui/p-aa0f5964.entry.js +0 -1
  1025. package/dist/dropi-ui/p-aa48e5cb.entry.js +0 -1
  1026. package/dist/dropi-ui/p-aa63edd4.entry.js +0 -1
  1027. package/dist/dropi-ui/p-aadd5863.entry.js +0 -1
  1028. package/dist/dropi-ui/p-aaeccf21.entry.js +0 -1
  1029. package/dist/dropi-ui/p-ab06bceb.entry.js +0 -1
  1030. package/dist/dropi-ui/p-ab3c52a4.entry.js +0 -1
  1031. package/dist/dropi-ui/p-ab9ec519.entry.js +0 -1
  1032. package/dist/dropi-ui/p-abd327ed.entry.js +0 -1
  1033. package/dist/dropi-ui/p-ac79e805.entry.js +0 -1
  1034. package/dist/dropi-ui/p-ac9d2149.entry.js +0 -1
  1035. package/dist/dropi-ui/p-ad1e0e62.entry.js +0 -1
  1036. package/dist/dropi-ui/p-ad73631e.entry.js +0 -1
  1037. package/dist/dropi-ui/p-ad7ea336.entry.js +0 -1
  1038. package/dist/dropi-ui/p-ae35d538.entry.js +0 -1
  1039. package/dist/dropi-ui/p-ae423d39.entry.js +0 -1
  1040. package/dist/dropi-ui/p-aeaa39f6.entry.js +0 -1
  1041. package/dist/dropi-ui/p-af1e778b.entry.js +0 -1
  1042. package/dist/dropi-ui/p-b063716d.entry.js +0 -1
  1043. package/dist/dropi-ui/p-b0930601.entry.js +0 -1
  1044. package/dist/dropi-ui/p-b1059e6f.entry.js +0 -1
  1045. package/dist/dropi-ui/p-b14f6889.entry.js +0 -1
  1046. package/dist/dropi-ui/p-b2000dcb.entry.js +0 -1
  1047. package/dist/dropi-ui/p-b20f7dde.entry.js +0 -1
  1048. package/dist/dropi-ui/p-b25faf92.entry.js +0 -1
  1049. package/dist/dropi-ui/p-b2623a5c.entry.js +0 -1
  1050. package/dist/dropi-ui/p-b2739793.entry.js +0 -1
  1051. package/dist/dropi-ui/p-b2bcb723.entry.js +0 -1
  1052. package/dist/dropi-ui/p-b2e7cf4f.entry.js +0 -1
  1053. package/dist/dropi-ui/p-b2e8c0e2.entry.js +0 -1
  1054. package/dist/dropi-ui/p-b320ca5a.entry.js +0 -1
  1055. package/dist/dropi-ui/p-b325f7cf.entry.js +0 -1
  1056. package/dist/dropi-ui/p-b3d3c72e.entry.js +0 -1
  1057. package/dist/dropi-ui/p-b4227dd5.entry.js +0 -1
  1058. package/dist/dropi-ui/p-b4bcfc25.entry.js +0 -1
  1059. package/dist/dropi-ui/p-b4e9dba6.entry.js +0 -1
  1060. package/dist/dropi-ui/p-b605d3d9.entry.js +0 -1
  1061. package/dist/dropi-ui/p-b63f5d03.entry.js +0 -1
  1062. package/dist/dropi-ui/p-b66d88bf.entry.js +0 -1
  1063. package/dist/dropi-ui/p-b7748488.entry.js +0 -1
  1064. package/dist/dropi-ui/p-b7f9592b.entry.js +0 -1
  1065. package/dist/dropi-ui/p-b801e55f.entry.js +0 -1
  1066. package/dist/dropi-ui/p-b8050ef5.entry.js +0 -1
  1067. package/dist/dropi-ui/p-b941ee31.entry.js +0 -1
  1068. package/dist/dropi-ui/p-b94b7199.entry.js +0 -1
  1069. package/dist/dropi-ui/p-b99fee29.entry.js +0 -1
  1070. package/dist/dropi-ui/p-b9ddcabc.entry.js +0 -1
  1071. package/dist/dropi-ui/p-ba3779a2.entry.js +0 -1
  1072. package/dist/dropi-ui/p-ba87a663.entry.js +0 -1
  1073. package/dist/dropi-ui/p-baac546d.entry.js +0 -1
  1074. package/dist/dropi-ui/p-baaf86d8.entry.js +0 -1
  1075. package/dist/dropi-ui/p-baf66950.entry.js +0 -1
  1076. package/dist/dropi-ui/p-bafb043e.entry.js +0 -1
  1077. package/dist/dropi-ui/p-bb6a2bdd.entry.js +0 -1
  1078. package/dist/dropi-ui/p-bb6b09b7.entry.js +0 -1
  1079. package/dist/dropi-ui/p-bbb5e0ae.entry.js +0 -1
  1080. package/dist/dropi-ui/p-bbf374d6.entry.js +0 -1
  1081. package/dist/dropi-ui/p-bc5447d7.entry.js +0 -1
  1082. package/dist/dropi-ui/p-bc6bb893.entry.js +0 -1
  1083. package/dist/dropi-ui/p-bd06eb80.entry.js +0 -1
  1084. package/dist/dropi-ui/p-bd0d1a29.entry.js +0 -1
  1085. package/dist/dropi-ui/p-bd2c7bbc.entry.js +0 -1
  1086. package/dist/dropi-ui/p-beb4b2d7.entry.js +0 -1
  1087. package/dist/dropi-ui/p-bef43920.entry.js +0 -1
  1088. package/dist/dropi-ui/p-bf7f2bf6.entry.js +0 -1
  1089. package/dist/dropi-ui/p-bfaac1cc.entry.js +0 -1
  1090. package/dist/dropi-ui/p-bfd43bdf.entry.js +0 -1
  1091. package/dist/dropi-ui/p-c08b8995.entry.js +0 -1
  1092. package/dist/dropi-ui/p-c173db8c.entry.js +0 -1
  1093. package/dist/dropi-ui/p-c1d5d4ab.entry.js +0 -1
  1094. package/dist/dropi-ui/p-c218524f.entry.js +0 -1
  1095. package/dist/dropi-ui/p-c31dbf7d.entry.js +0 -1
  1096. package/dist/dropi-ui/p-c424a77c.entry.js +0 -1
  1097. package/dist/dropi-ui/p-c4d2881d.entry.js +0 -1
  1098. package/dist/dropi-ui/p-c4e24d47.entry.js +0 -1
  1099. package/dist/dropi-ui/p-c4fbbb5a.entry.js +0 -1
  1100. package/dist/dropi-ui/p-c51fcf75.entry.js +0 -1
  1101. package/dist/dropi-ui/p-c567fd6b.entry.js +0 -1
  1102. package/dist/dropi-ui/p-c5c3b146.entry.js +0 -1
  1103. package/dist/dropi-ui/p-c662bce3.entry.js +0 -1
  1104. package/dist/dropi-ui/p-c66941cf.entry.js +0 -1
  1105. package/dist/dropi-ui/p-c6926604.entry.js +0 -1
  1106. package/dist/dropi-ui/p-c6ac1b6d.entry.js +0 -1
  1107. package/dist/dropi-ui/p-c6c40748.entry.js +0 -1
  1108. package/dist/dropi-ui/p-c6fd796c.entry.js +0 -1
  1109. package/dist/dropi-ui/p-c7260931.entry.js +0 -1
  1110. package/dist/dropi-ui/p-c72650a6.entry.js +0 -1
  1111. package/dist/dropi-ui/p-c8d0727a.entry.js +0 -1
  1112. package/dist/dropi-ui/p-ca020035.entry.js +0 -1
  1113. package/dist/dropi-ui/p-ca2e462a.entry.js +0 -1
  1114. package/dist/dropi-ui/p-ca5dbffd.entry.js +0 -1
  1115. package/dist/dropi-ui/p-ca90e108.entry.js +0 -1
  1116. package/dist/dropi-ui/p-caa6ba65.entry.js +0 -1
  1117. package/dist/dropi-ui/p-cb48cb42.entry.js +0 -1
  1118. package/dist/dropi-ui/p-cb4ad8d2.entry.js +0 -1
  1119. package/dist/dropi-ui/p-cb87d3c7.entry.js +0 -1
  1120. package/dist/dropi-ui/p-cbf5367e.entry.js +0 -1
  1121. package/dist/dropi-ui/p-cc53f78b.entry.js +0 -1
  1122. package/dist/dropi-ui/p-cc954850.entry.js +0 -1
  1123. package/dist/dropi-ui/p-cd30d613.entry.js +0 -1
  1124. package/dist/dropi-ui/p-cf1ffef1.entry.js +0 -1
  1125. package/dist/dropi-ui/p-cf7cd408.entry.js +0 -1
  1126. package/dist/dropi-ui/p-d02dfc6a.entry.js +0 -1
  1127. package/dist/dropi-ui/p-d0e3de92.entry.js +0 -1
  1128. package/dist/dropi-ui/p-d104c97d.entry.js +0 -1
  1129. package/dist/dropi-ui/p-d11524ca.entry.js +0 -1
  1130. package/dist/dropi-ui/p-d136695a.entry.js +0 -1
  1131. package/dist/dropi-ui/p-d1aeb373.entry.js +0 -1
  1132. package/dist/dropi-ui/p-d205db7d.entry.js +0 -1
  1133. package/dist/dropi-ui/p-d286adf0.entry.js +0 -1
  1134. package/dist/dropi-ui/p-d384f4e9.entry.js +0 -1
  1135. package/dist/dropi-ui/p-d3f3bb91.entry.js +0 -1
  1136. package/dist/dropi-ui/p-d42d4ef7.entry.js +0 -1
  1137. package/dist/dropi-ui/p-d45feb08.entry.js +0 -1
  1138. package/dist/dropi-ui/p-d46058e1.entry.js +0 -1
  1139. package/dist/dropi-ui/p-d46f3328.entry.js +0 -1
  1140. package/dist/dropi-ui/p-d5ab501d.entry.js +0 -1
  1141. package/dist/dropi-ui/p-d65aeab2.entry.js +0 -1
  1142. package/dist/dropi-ui/p-d693bbb8.entry.js +0 -1
  1143. package/dist/dropi-ui/p-d6ab011e.entry.js +0 -1
  1144. package/dist/dropi-ui/p-d6b3784b.entry.js +0 -1
  1145. package/dist/dropi-ui/p-d724ced4.entry.js +0 -1
  1146. package/dist/dropi-ui/p-d7d7b98b.entry.js +0 -1
  1147. package/dist/dropi-ui/p-d813969b.entry.js +0 -1
  1148. package/dist/dropi-ui/p-d886b045.entry.js +0 -1
  1149. package/dist/dropi-ui/p-d899d4e1.entry.js +0 -1
  1150. package/dist/dropi-ui/p-d8c02ec8.entry.js +0 -1
  1151. package/dist/dropi-ui/p-d93f31c2.entry.js +0 -1
  1152. package/dist/dropi-ui/p-d9f7e521.entry.js +0 -1
  1153. package/dist/dropi-ui/p-d9f90650.entry.js +0 -1
  1154. package/dist/dropi-ui/p-da038b5d.entry.js +0 -1
  1155. package/dist/dropi-ui/p-db6af92e.entry.js +0 -1
  1156. package/dist/dropi-ui/p-db71d065.entry.js +0 -1
  1157. package/dist/dropi-ui/p-dc53a798.entry.js +0 -1
  1158. package/dist/dropi-ui/p-dc920aff.entry.js +0 -1
  1159. package/dist/dropi-ui/p-deb3a0e3.entry.js +0 -1
  1160. package/dist/dropi-ui/p-debe6fa2.entry.js +0 -1
  1161. package/dist/dropi-ui/p-df89c528.entry.js +0 -1
  1162. package/dist/dropi-ui/p-e0641dc8.entry.js +0 -1
  1163. package/dist/dropi-ui/p-e07c21c8.entry.js +0 -1
  1164. package/dist/dropi-ui/p-e0d43ef4.entry.js +0 -1
  1165. package/dist/dropi-ui/p-e1126498.entry.js +0 -1
  1166. package/dist/dropi-ui/p-e163bf7f.entry.js +0 -1
  1167. package/dist/dropi-ui/p-e1b3c9a3.entry.js +0 -1
  1168. package/dist/dropi-ui/p-e1b40bda.entry.js +0 -1
  1169. package/dist/dropi-ui/p-e22a3b45.entry.js +0 -1
  1170. package/dist/dropi-ui/p-e2413d09.entry.js +0 -1
  1171. package/dist/dropi-ui/p-e3224f3e.entry.js +0 -1
  1172. package/dist/dropi-ui/p-e3339048.entry.js +0 -1
  1173. package/dist/dropi-ui/p-e36d5e9f.entry.js +0 -1
  1174. package/dist/dropi-ui/p-e3c120ba.entry.js +0 -1
  1175. package/dist/dropi-ui/p-e40db21a.entry.js +0 -1
  1176. package/dist/dropi-ui/p-e423406c.entry.js +0 -1
  1177. package/dist/dropi-ui/p-e524fed1.entry.js +0 -1
  1178. package/dist/dropi-ui/p-e53b23dd.entry.js +0 -1
  1179. package/dist/dropi-ui/p-e629fdc7.entry.js +0 -1
  1180. package/dist/dropi-ui/p-e67161f6.entry.js +0 -1
  1181. package/dist/dropi-ui/p-e6f708e9.entry.js +0 -1
  1182. package/dist/dropi-ui/p-e824d439.entry.js +0 -1
  1183. package/dist/dropi-ui/p-e842be74.entry.js +0 -1
  1184. package/dist/dropi-ui/p-e97d3704.entry.js +0 -1
  1185. package/dist/dropi-ui/p-e9a64ecc.entry.js +0 -1
  1186. package/dist/dropi-ui/p-ea13bfee.entry.js +0 -1
  1187. package/dist/dropi-ui/p-ea15ac20.entry.js +0 -1
  1188. package/dist/dropi-ui/p-eaa10fe8.entry.js +0 -1
  1189. package/dist/dropi-ui/p-eac3194d.entry.js +0 -1
  1190. package/dist/dropi-ui/p-eb98ac81.entry.js +0 -1
  1191. package/dist/dropi-ui/p-ebaa1574.entry.js +0 -1
  1192. package/dist/dropi-ui/p-ebb81172.entry.js +0 -1
  1193. package/dist/dropi-ui/p-ec263862.entry.js +0 -1
  1194. package/dist/dropi-ui/p-edcf5623.entry.js +0 -1
  1195. package/dist/dropi-ui/p-edeacd44.entry.js +0 -1
  1196. package/dist/dropi-ui/p-edef4506.entry.js +0 -1
  1197. package/dist/dropi-ui/p-edf796ee.entry.js +0 -1
  1198. package/dist/dropi-ui/p-eec49ea3.entry.js +0 -1
  1199. package/dist/dropi-ui/p-eed4f130.entry.js +0 -1
  1200. package/dist/dropi-ui/p-f0362230.entry.js +0 -1
  1201. package/dist/dropi-ui/p-f03f0bf3.entry.js +0 -1
  1202. package/dist/dropi-ui/p-f057bd98.entry.js +0 -1
  1203. package/dist/dropi-ui/p-f0893459.entry.js +0 -1
  1204. package/dist/dropi-ui/p-f0ace417.entry.js +0 -1
  1205. package/dist/dropi-ui/p-f1457004.entry.js +0 -1
  1206. package/dist/dropi-ui/p-f18f8a8e.entry.js +0 -1
  1207. package/dist/dropi-ui/p-f1e08f03.entry.js +0 -1
  1208. package/dist/dropi-ui/p-f23e1df7.entry.js +0 -1
  1209. package/dist/dropi-ui/p-f2527a45.entry.js +0 -1
  1210. package/dist/dropi-ui/p-f3d0d25b.entry.js +0 -1
  1211. package/dist/dropi-ui/p-f3f27534.entry.js +0 -1
  1212. package/dist/dropi-ui/p-f42337d9.entry.js +0 -1
  1213. package/dist/dropi-ui/p-f426e0fc.entry.js +0 -1
  1214. package/dist/dropi-ui/p-f46d7df1.entry.js +0 -1
  1215. package/dist/dropi-ui/p-f4bd8568.entry.js +0 -1
  1216. package/dist/dropi-ui/p-f50b982c.entry.js +0 -1
  1217. package/dist/dropi-ui/p-f61e0ed7.entry.js +0 -1
  1218. package/dist/dropi-ui/p-f6653da2.entry.js +0 -1
  1219. package/dist/dropi-ui/p-f699688a.entry.js +0 -1
  1220. package/dist/dropi-ui/p-f6c9057d.entry.js +0 -1
  1221. package/dist/dropi-ui/p-f6ed3cbb.entry.js +0 -1
  1222. package/dist/dropi-ui/p-f6f026c7.entry.js +0 -1
  1223. package/dist/dropi-ui/p-f73d5969.entry.js +0 -1
  1224. package/dist/dropi-ui/p-f7a605f8.entry.js +0 -1
  1225. package/dist/dropi-ui/p-f7df0f43.entry.js +0 -1
  1226. package/dist/dropi-ui/p-f7fd7832.entry.js +0 -1
  1227. package/dist/dropi-ui/p-f80fa01d.entry.js +0 -1
  1228. package/dist/dropi-ui/p-f87589c0.entry.js +0 -1
  1229. package/dist/dropi-ui/p-f9084a2c.entry.js +0 -1
  1230. package/dist/dropi-ui/p-f9888cea.entry.js +0 -1
  1231. package/dist/dropi-ui/p-f9af2041.entry.js +0 -1
  1232. package/dist/dropi-ui/p-f9d05b69.entry.js +0 -1
  1233. package/dist/dropi-ui/p-faa59cd8.entry.js +0 -1
  1234. package/dist/dropi-ui/p-fb39dfdc.entry.js +0 -1
  1235. package/dist/dropi-ui/p-fb4856ea.entry.js +0 -1
  1236. package/dist/dropi-ui/p-fcba49ca.entry.js +0 -1
  1237. package/dist/dropi-ui/p-fce82770.entry.js +0 -1
  1238. package/dist/dropi-ui/p-fd0448a7.entry.js +0 -1
  1239. package/dist/dropi-ui/p-fdbdedd0.entry.js +0 -1
  1240. package/dist/dropi-ui/p-fdfd0842.entry.js +0 -1
  1241. package/dist/dropi-ui/p-fea1be78.entry.js +0 -1
  1242. package/dist/dropi-ui/p-fef3673d.entry.js +0 -1
  1243. package/dist/dropi-ui/p-ff084c1c.entry.js +0 -1
  1244. package/dist/dropi-ui/p-ffd415a2.entry.js +0 -1
  1245. package/dist/dropi-ui/p-fff4eb31.entry.js +0 -1
  1246. package/dist/esm/dropi-accordion-item.entry.js +0 -52
  1247. package/dist/esm/dropi-accordion.entry.js +0 -17
  1248. package/dist/esm/dropi-alert-legacy.entry.js +0 -37
  1249. package/dist/esm/dropi-alert-modal.entry.js +0 -126
  1250. package/dist/esm/dropi-alert.entry.js +0 -62
  1251. package/dist/esm/dropi-avatars.entry.js +0 -29
  1252. package/dist/esm/dropi-badge-legacy.entry.js +0 -28
  1253. package/dist/esm/dropi-badge.entry.js +0 -35
  1254. package/dist/esm/dropi-banner-external.entry.js +0 -61
  1255. package/dist/esm/dropi-breadcrumb.entry.js +0 -46
  1256. package/dist/esm/dropi-button.entry.js +0 -102
  1257. package/dist/esm/dropi-card-checkbox.entry.js +0 -46
  1258. package/dist/esm/dropi-card-product.entry.js +0 -76
  1259. package/dist/esm/dropi-card-section.entry.js +0 -36
  1260. package/dist/esm/dropi-carousel.entry.js +0 -151
  1261. package/dist/esm/dropi-checkbox-selection-list.entry.js +0 -71
  1262. package/dist/esm/dropi-checkbox.entry.js +0 -55
  1263. package/dist/esm/dropi-chips.entry.js +0 -28
  1264. package/dist/esm/dropi-city-selector.entry.js +0 -102
  1265. package/dist/esm/dropi-color-picker.entry.js +0 -317
  1266. package/dist/esm/dropi-country-flags.entry.js +0 -35
  1267. package/dist/esm/dropi-country-selector.entry.js +0 -296
  1268. package/dist/esm/dropi-date-picker-range.entry.js +0 -292
  1269. package/dist/esm/dropi-date-picker.entry.js +0 -342
  1270. package/dist/esm/dropi-drawer.entry.js +0 -77
  1271. package/dist/esm/dropi-dropdown.entry.js +0 -63
  1272. package/dist/esm/dropi-empty-state.entry.js +0 -111
  1273. package/dist/esm/dropi-favorite-button.entry.js +0 -25
  1274. package/dist/esm/dropi-file-upload-progress-bar.entry.js +0 -75
  1275. package/dist/esm/dropi-file-upload.entry.js +0 -235
  1276. package/dist/esm/dropi-icon.entry.js +0 -348
  1277. package/dist/esm/dropi-ilustration-icon.entry.js +0 -41
  1278. package/dist/esm/dropi-image-miniature.entry.js +0 -42
  1279. package/dist/esm/dropi-image-overlay.entry.js +0 -61
  1280. package/dist/esm/dropi-input_3.entry.js +0 -420
  1281. package/dist/esm/dropi-languages-selector.entry.js +0 -59
  1282. package/dist/esm/dropi-logo.entry.js +0 -35
  1283. package/dist/esm/dropi-lottie-loader.entry.js +0 -25
  1284. package/dist/esm/dropi-media-player.entry.js +0 -190
  1285. package/dist/esm/dropi-modal.entry.js +0 -145
  1286. package/dist/esm/dropi-navbar.entry.js +0 -52
  1287. package/dist/esm/dropi-otp-send-code.entry.js +0 -133
  1288. package/dist/esm/dropi-phone-input.entry.js +0 -218
  1289. package/dist/esm/dropi-progress-bar.entry.js +0 -41
  1290. package/dist/esm/dropi-radio-button.entry.js +0 -62
  1291. package/dist/esm/dropi-radio-selection-list.entry.js +0 -58
  1292. package/dist/esm/dropi-read-more.entry.js +0 -38
  1293. package/dist/esm/dropi-search.entry.js +0 -122
  1294. package/dist/esm/dropi-select.entry.js +0 -408
  1295. package/dist/esm/dropi-sidebar.entry.js +0 -76
  1296. package/dist/esm/dropi-simple-stepper.entry.js +0 -51
  1297. package/dist/esm/dropi-skeleton.entry.js +0 -55
  1298. package/dist/esm/dropi-steps.entry.js +0 -60
  1299. package/dist/esm/dropi-switch.entry.js +0 -49
  1300. package/dist/esm/dropi-table.entry.js +0 -305
  1301. package/dist/esm/dropi-tabs.entry.js +0 -49
  1302. package/dist/esm/dropi-tag-type-product.entry.js +0 -17
  1303. package/dist/esm/dropi-text-area.entry.js +0 -132
  1304. package/dist/esm/dropi-time-line.entry.js +0 -32
  1305. package/dist/esm/dropi-toast.entry.js +0 -52
  1306. package/dist/esm/dropi-tooltip-v2.entry.js +0 -129
  1307. package/dist/esm/dropi-tooltip.entry.js +0 -19
  1308. package/dist/esm/dropi-ui.js +0 -20
  1309. package/dist/esm/dropi-vertical-steps.entry.js +0 -53
  1310. package/dist/esm/dropi-youtube-lazy-video.entry.js +0 -31
  1311. package/dist/esm/index-B-h7fjQz.js +0 -2763
  1312. package/dist/esm/index-CWoV_bQo.js +0 -2798
  1313. package/dist/esm/index-D5SAM1O2.js +0 -2763
  1314. package/dist/esm/index-K5v4Q5tq.js +0 -2798
  1315. package/dist/esm/index-a2fb4CHk.js +0 -2763
  1316. package/dist/esm/index.js +0 -1
  1317. package/dist/esm/loader.js +0 -10
  1318. package/dist/esm/lottie-map.generated-BEs9gbju.js +0 -12
  1319. package/dist/index.cjs.js +0 -1
  1320. package/dist/index.js +0 -1
  1321. package/dist/types/components/dropi-accordion/dropi-accordion-item.d.ts +0 -24
  1322. package/dist/types/components/dropi-accordion/dropi-accordion.d.ts +0 -9
  1323. package/dist/types/components/dropi-alert/dropi-alert.d.ts +0 -41
  1324. package/dist/types/components/dropi-alert-legacy/dropi-alert-legacy.d.ts +0 -18
  1325. package/dist/types/components/dropi-alert-modal/dropi-alert-modal.d.ts +0 -70
  1326. package/dist/types/components/dropi-avatars/dropi-avatars.d.ts +0 -17
  1327. package/dist/types/components/dropi-badge/dropi-badge.d.ts +0 -12
  1328. package/dist/types/components/dropi-badge-legacy/dropi-badge-legacy.d.ts +0 -15
  1329. package/dist/types/components/dropi-banner-external/dropi-banner-external.d.ts +0 -38
  1330. package/dist/types/components/dropi-breadcrumb/dropi-breadcrumb.d.ts +0 -31
  1331. package/dist/types/components/dropi-button/dropi-button.d.ts +0 -43
  1332. package/dist/types/components/dropi-card-checkbox/dropi-card-checkbox.d.ts +0 -34
  1333. package/dist/types/components/dropi-card-product/dropi-card-product.d.ts +0 -43
  1334. package/dist/types/components/dropi-card-section/dropi-card-section.d.ts +0 -22
  1335. package/dist/types/components/dropi-carousel/dropi-carousel.d.ts +0 -44
  1336. package/dist/types/components/dropi-checkbox/dropi-checkbox.d.ts +0 -21
  1337. package/dist/types/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.d.ts +0 -39
  1338. package/dist/types/components/dropi-chips/dropi-chips.d.ts +0 -23
  1339. package/dist/types/components/dropi-city-selector/dropi-city-selector.d.ts +0 -48
  1340. package/dist/types/components/dropi-color-picker/dropi-color-picker.d.ts +0 -56
  1341. package/dist/types/components/dropi-country-flags/dropi-country-flags.d.ts +0 -19
  1342. package/dist/types/components/dropi-country-selector/dropi-country-selector.d.ts +0 -63
  1343. package/dist/types/components/dropi-date-picker/dropi-date-picker.d.ts +0 -74
  1344. package/dist/types/components/dropi-date-picker-range/dropi-date-picker-range.d.ts +0 -69
  1345. package/dist/types/components/dropi-drawer/dropi-drawer.d.ts +0 -31
  1346. package/dist/types/components/dropi-dropdown/dropi-dropdown.d.ts +0 -34
  1347. package/dist/types/components/dropi-empty-state/dropi-empty-state.d.ts +0 -20
  1348. package/dist/types/components/dropi-favorite-button/dropi-favorite-button.d.ts +0 -14
  1349. package/dist/types/components/dropi-file-upload/dropi-file-upload.d.ts +0 -76
  1350. package/dist/types/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.d.ts +0 -33
  1351. package/dist/types/components/dropi-icon/dropi-icon.d.ts +0 -20
  1352. package/dist/types/components/dropi-ilustration-icon/dropi-ilustration-icon.d.ts +0 -26
  1353. package/dist/types/components/dropi-image-miniature/dropi-image-miniature.d.ts +0 -23
  1354. package/dist/types/components/dropi-image-overlay/dropi-image-overlay.d.ts +0 -26
  1355. package/dist/types/components/dropi-input/dropi-input.d.ts +0 -104
  1356. package/dist/types/components/dropi-languages-selector/dropi-languages-selector.d.ts +0 -31
  1357. package/dist/types/components/dropi-logo/dropi-logo.d.ts +0 -16
  1358. package/dist/types/components/dropi-lottie-loader/dropi-lottie-loader.d.ts +0 -15
  1359. package/dist/types/components/dropi-media-player/dropi-media-player.d.ts +0 -51
  1360. package/dist/types/components/dropi-modal/dropi-modal.d.ts +0 -57
  1361. package/dist/types/components/dropi-navbar/dropi-navbar.d.ts +0 -42
  1362. package/dist/types/components/dropi-otp-send-code/dropi-otp-send-code.d.ts +0 -46
  1363. package/dist/types/components/dropi-paginator/dropi-paginator.d.ts +0 -24
  1364. package/dist/types/components/dropi-phone-input/dropi-phone-input.d.ts +0 -54
  1365. package/dist/types/components/dropi-progress-bar/dropi-progress-bar.d.ts +0 -16
  1366. package/dist/types/components/dropi-radio-button/dropi-radio-button.d.ts +0 -28
  1367. package/dist/types/components/dropi-radio-selection-list/dropi-radio-selection-list.d.ts +0 -41
  1368. package/dist/types/components/dropi-read-more/dropi-read-more.d.ts +0 -21
  1369. package/dist/types/components/dropi-search/dropi-search.d.ts +0 -63
  1370. package/dist/types/components/dropi-select/dropi-select.d.ts +0 -119
  1371. package/dist/types/components/dropi-select/select.types.d.ts +0 -23
  1372. package/dist/types/components/dropi-sidebar/dropi-sidebar.d.ts +0 -41
  1373. package/dist/types/components/dropi-simple-stepper/dropi-simple-stepper.d.ts +0 -22
  1374. package/dist/types/components/dropi-skeleton/dropi-skeleton.d.ts +0 -22
  1375. package/dist/types/components/dropi-steps/dropi-steps.d.ts +0 -24
  1376. package/dist/types/components/dropi-switch/dropi-switch.d.ts +0 -20
  1377. package/dist/types/components/dropi-table/dropi-table.d.ts +0 -133
  1378. package/dist/types/components/dropi-tabs/dropi-tabs.d.ts +0 -40
  1379. package/dist/types/components/dropi-tag/dropi-tag.d.ts +0 -30
  1380. package/dist/types/components/dropi-tag-type-product/dropi-tag-type-product.d.ts +0 -9
  1381. package/dist/types/components/dropi-text-area/dropi-text-area.d.ts +0 -74
  1382. package/dist/types/components/dropi-time-line/dropi-time-line.d.ts +0 -18
  1383. package/dist/types/components/dropi-toast/dropi-toast.d.ts +0 -37
  1384. package/dist/types/components/dropi-tooltip/dropi-tooltip.d.ts +0 -11
  1385. package/dist/types/components/dropi-tooltip-v2/dropi-tooltip.d.ts +0 -59
  1386. package/dist/types/components/dropi-vertical-steps/dropi-vertical-steps.d.ts +0 -24
  1387. package/dist/types/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.d.ts +0 -19
  1388. package/dist/types/components.d.ts +0 -8424
  1389. package/dist/types/index.d.ts +0 -9
  1390. package/dist/types/stencil-public-runtime.d.ts +0 -1860
  1391. package/dist/types/utils/icon-map.generated.d.ts +0 -4
  1392. package/dist/types/utils/illustration-map.generated.d.ts +0 -1
  1393. package/dist/types/utils/lottie-map.generated.d.ts +0 -1
  1394. package/dist/types/utils/utils.d.ts +0 -1
  1395. package/dist/types/utils/utils.unit.test.d.ts +0 -1
  1396. package/hydrate/index.d.ts +0 -287
  1397. package/hydrate/index.js +0 -31570
  1398. package/hydrate/index.mjs +0 -31560
  1399. package/hydrate/package.json +0 -12
  1400. package/loader/cdn.js +0 -1
  1401. package/loader/index.cjs.js +0 -1
  1402. package/loader/index.d.ts +0 -24
  1403. package/loader/index.es2017.js +0 -1
  1404. package/loader/index.js +0 -2
  1405. package/readme.md +0 -1112
  1406. package/scripts/generate-icon-map.js +0 -37
  1407. package/scripts/generate-illustration-map.js +0 -37
  1408. package/scripts/generate-lottie-map.js +0 -46
  1409. package/scripts/postinstall.js +0 -38
  1410. package/scripts/setup.js +0 -586
  1411. package/scripts/strip-use-client.mjs +0 -20
  1412. package/skills/install-dropi-ui/cursor.mdc +0 -5
  1413. package/skills/install-dropi-ui/skill.md +0 -70
  1414. package/skills/update-context/skill.md +0 -37
@@ -1,4625 +0,0 @@
1
- const NAMESPACE = 'dropi-ui';
2
- const BUILD = /* dropi-ui */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: false, cssAnnotations: true, deserializer: false, devTools: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: true, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: true, hydrateClientSide: true, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: true, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: true, prop: true, propBoolean: true, propChangeCallback: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, serializer: false, shadowDelegatesFocus: false, shadowDom: true, shadowSlotAssignmentManual: false, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false };
3
- const Env = /* dropi-ui */ {};
4
-
5
- const globalScripts = () => {};
6
- const globalStyles = "@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');\n\n/* ============================================================\n DROPI DESIGN SYSTEM — TOKENS GLOBALES\n Fuente: tokens.scss + variables_system_design.scss\n ============================================================ */\n\n:root {\n --dropi-font-family: 'Inter', sans-serif;\n /* ── Brand: Primary ─────────────────────────────────────── */\n --Primary-Primary-50: #fef8f2;\n --Primary-Primary-100: #ffecda;\n --Primary-Primary-200: #fcddbd;\n --Primary-Primary-300: #f2bc85;\n --Primary-Primary-400: #f7b46f;\n --Primary-Primary-500: #f49a3d;\n --Primary-Primary-600: #e58017;\n --Primary-Primary-700: #99540f;\n --Primary-Primary-800: #66380a;\n --Primary-Primary-900: #331c05;\n\n /* ── Brand: Secondary ───────────────────────────────────── */\n --Secondary-Secondary-50: #f0fafc;\n --Secondary-Secondary-100: #cee8f2;\n --Secondary-Secondary-200: #95d0e5;\n --Secondary-Secondary-300: #62bad9;\n --Secondary-Secondary-400: #33a4cc;\n --Secondary-Secondary-500: #008dbf;\n --Secondary-Secondary-600: #007199;\n --Secondary-Secondary-700: #005573;\n --Secondary-Secondary-800: #00384d;\n --Secondary-Secondary-900: #001c26;\n\n /* ── Neutral ─────────────────────────────────────────────── */\n --Neutral-White: #ffffff;\n --Neutral-Black: #000000;\n\n /* ── Gray ────────────────────────────────────────────────── */\n --Gray-Gray-50: #f7f8fa;\n --Gray-Gray-100: #e6eaf2;\n --Gray-Gray-200: #c3c9d9;\n --Gray-Gray-300: #a3abbf;\n --Gray-Gray-400: #858ea6;\n --Gray-Gray-500: #69738c;\n --Gray-Gray-600: #475066;\n --Gray-Gray-700: #32394d;\n --Gray-Gray-800: #1f2433;\n --Gray-Gray-900: #0e111a;\n\n /* ── Success ─────────────────────────────────────────────── */\n --Success-Success-50: #e7f8f3;\n --Success-Success-100: #b3eada;\n --Success-Success-200: #8ee0c8;\n --Success-Success-300: #5bd1af;\n --Success-Success-400: #3bc99f;\n --Success-Success-500: #0abb87;\n --Success-Success-600: #09aa7b;\n --Success-Success-700: #078560;\n --Success-Success-800: #06674a;\n --Success-Success-900: #044f39;\n\n /* ── Error ───────────────────────────────────────────────── */\n --Error-Error-50: #fef0f0;\n --Error-Error-100: #fcd1d1;\n --Error-Error-200: #fababb;\n --Error-Error-300: #f89b9c;\n --Error-Error-400: #f68889;\n --Error-Error-500: #f46a6b;\n --Error-Error-600: #de6061;\n --Error-Error-700: #ad4b4c;\n --Error-Error-800: #863a3b;\n --Error-Error-900: #662d2d;\n\n /* ── Info ────────────────────────────────────────────────── */\n --Info-Info-50: #eef6fe;\n --Info-Info-100: #c9e3fb;\n --Info-Info-200: #afd6f9;\n --Info-Info-300: #8ac3f6;\n --Info-Info-400: #73b7f4;\n --Info-Info-500: #50a5f1;\n --Info-Info-600: #4996db;\n --Info-Info-700: #3975ab;\n --Info-Info-800: #2c5b85;\n --Info-Info-900: #224565;\n\n /* ── Warning ─────────────────────────────────────────────── */\n --Warning-Warning-50: #fef8ed;\n --Warning-Warning-100: #fbe8c8;\n --Warning-Warning-200: #f9ddad;\n --Warning-Warning-300: #f6cd87;\n --Warning-Warning-400: #f4c370;\n --Warning-Warning-500: #f1b44c;\n --Warning-Warning-600: #dba445;\n --Warning-Warning-700: #ab8036;\n --Warning-Warning-800: #85632a;\n --Warning-Warning-900: #654c20;\n\n /* ── Orange ──────────────────────────────────────────────── */\n --Orange-orange-50: #fef5ec;\n --Orange-orange-500: #f49a3d;\n\n /* ── Spacing ─────────────────────────────────────────────── */\n --Size-1: 4px;\n --Size-2: 8px;\n --Size-3: 12px;\n --Size-4: 16px;\n --Size-5: 24px;\n --Size-6: 32px;\n --Size-7: 40px;\n --Size-8: 48px;\n --Size-9: 56px;\n --Size-10: 64px;\n\n /* ── Border Radius ───────────────────────────────────────── */\n --Border-1: 4px;\n --Border-2: 8px;\n --Border-3: 12px;\n --Border-4: 24px;\n --Border-5: 32px;\n --Border-full: 9999px;\n\n /* ── Font Size ───────────────────────────────────────────── */\n --font-size-xxxxl: 36px;\n --font-size-xxxl: 30px;\n --font-size-xxl: 24px;\n --font-size-xl: 20px;\n --font-size-l: 18px;\n --font-size-m: 16px;\n --font-size-s: 14px;\n --font-size-xs: 12px;\n --font-size-xxs: 10px;\n\n /* ── Line Height ─────────────────────────────────────────── */\n --lineheight-simple: 110%;\n --lineheight-large: 150%;\n\n /* ── Font Weight ─────────────────────────────────────────── */\n --font-weight-bold: 700;\n --font-weight-semibold: 600;\n --font-weight-medium: 500;\n --font-weight-regular: 400;\n --font-weight-light: 300;\n\n /* ── Font Family ─────────────────────────────────────────── */\n --font-family-01: 'Inter', sans-serif;\n\n /* ── Breakpoints ─────────────────────────────────────────── */\n --breakpoint-extra-small: 576px;\n --breakpoint-small: 600px;\n --breakpoint-medium: 1000px;\n --breakpoint-large: 1200px;\n --breakpoint-extra-large: 1536px;\n --breakpoint-full-width: 1920px;\n\n /* ── Shadows ─────────────────────────────────────────────── */\n --Shadow-small: 0px 0px 12px rgba(0, 0, 0, 0.04);\n --Shadow-medium: 0.5px 4px 8px rgba(0, 0, 0, 0.08);\n --Shadow-large: 0px 4px 16px rgba(0, 0, 0, 0.16);\n --Shadow-icon: 0px 0px 4px rgba(0, 0, 0, 0.16);\n\n /* ── Transportadoras ─────────────────────────────────────── */\n --Interrapidisimo: #383637;\n --Domina: #464ffe;\n --Coordinadora: #2686c5;\n --Servientrega: #1ba558;\n --99-minutos: #9cd453;\n --TCC: #f8dd49;\n --Veloces: #dc2e76;\n --Envia: #e7484e;\n --Restlogix: #90dd92;\n --Tiui: #0596a5;\n --Fedex: #4d148c;\n --Laarcourier: #faf063;\n --Gintracom: #ff3939;\n --Blue-express: #1542a3;\n --Lulu: #f03a3e;\n --Urbano: #e53237;\n --Tipsa: #1d3681;\n\n /* ── Z-Index ────────────────────────────────────────────── */\n --dropi-z-index-base: 0;\n --dropi-z-index-sticky: 100;\n --dropi-z-index-navbar: 1000;\n --dropi-z-index-modal: 9999;\n --dropi-z-index-drawer: 9999;\n --dropi-z-index-overlay: 11000;\n --dropi-z-index-toast: 12000;\n}\n\n/* ── Responsive Font Sizes (mobile) ─────────────────────── */\n@media (max-width: 600px) {\n :root {\n --font-size-xxxxl: 32px;\n --font-size-xxxl: 26px;\n --font-size-xxl: 20px;\n --font-size-xl: 18px;\n --font-size-l: 16px;\n --font-size-m: 16px;\n --font-size-s: 14px;\n --font-size-xs: 12px;\n --font-size-xxs: 10px;\n }\n}\n\n/* ── Base ────────────────────────────────────────────────── */\n* {\n font-family: var(--font-family-01);\n box-sizing: border-box;\n text-align: left;\n}\n\n/* ── Headings ────────────────────────────────────────────── */\nh1 {\n color: var(--Gray-Gray-700);\n font-size: var(--font-size-xxxxl);\n font-weight: var(--font-weight-bold);\n line-height: var(--lineheight-simple);\n}\nh2 {\n color: var(--Gray-Gray-700);\n font-size: var(--font-size-xxxl);\n font-weight: var(--font-weight-bold);\n line-height: var(--lineheight-simple);\n}\nh3 {\n color: var(--Gray-Gray-700);\n font-size: var(--font-size-xxl);\n font-weight: var(--font-weight-bold);\n line-height: var(--lineheight-simple);\n}\nh4 {\n color: var(--Gray-Gray-700);\n font-size: var(--font-size-xl);\n font-weight: var(--font-weight-bold);\n line-height: var(--lineheight-simple);\n}\nh5 {\n color: var(--Gray-Gray-700);\n font-size: var(--font-size-l);\n font-weight: var(--font-weight-bold);\n line-height: var(--lineheight-simple);\n}\n\n/* ── Typography Utility Classes ──────────────────────────── */\n.Body-L-Medium {\n color: var(--Gray-Gray-700);\n font-size: var(--font-size-m);\n font-weight: var(--font-weight-medium);\n line-height: var(--lineheight-large);\n}\n.Body-L-Regular {\n color: var(--Gray-Gray-600);\n font-size: var(--font-size-m);\n font-weight: var(--font-weight-regular);\n line-height: var(--lineheight-large);\n}\n.Body-M-Medium {\n color: var(--Gray-Gray-700);\n font-size: var(--font-size-s);\n font-weight: var(--font-weight-medium);\n line-height: var(--lineheight-large);\n}\n.Body-M-Regular {\n color: var(--Gray-Gray-600);\n font-size: var(--font-size-s);\n font-weight: var(--font-weight-regular);\n line-height: var(--lineheight-large);\n}\n.Body-S-Medium {\n color: var(--Gray-Gray-700);\n font-size: var(--font-size-xs);\n font-weight: var(--font-weight-medium);\n line-height: var(--lineheight-large);\n}\n.Body-S-Regular {\n color: var(--Gray-Gray-600);\n font-size: var(--font-size-xs);\n font-weight: var(--font-weight-regular);\n line-height: var(--lineheight-large);\n}\n.Caption-M {\n color: var(--Gray-Gray-700);\n font-size: var(--font-size-xs);\n font-weight: var(--font-weight-bold);\n line-height: var(--lineheight-simple);\n}\n.Caption-S {\n color: var(--Gray-Gray-700);\n font-size: var(--font-size-xxs);\n font-weight: var(--font-weight-bold);\n line-height: var(--lineheight-simple);\n}\n.Label-L {\n color: var(--Gray-Gray-700);\n font-size: var(--font-size-m);\n font-weight: var(--font-weight-bold);\n line-height: var(--lineheight-simple);\n}\n.Label-M {\n color: var(--Gray-Gray-700);\n font-size: var(--font-size-s);\n font-weight: var(--font-weight-bold);\n line-height: var(--lineheight-simple);\n}\n.Label-S {\n color: var(--Gray-Gray-700);\n font-size: var(--font-size-xs);\n font-weight: var(--font-weight-bold);\n line-height: var(--lineheight-simple);\n}\n\n/* Support for scroll locking in modals/drawers without direct style manipulation (SSR safe) */\nbody.dropi-modal-open {\n overflow: hidden !important;\n}\n\n/* Prevent dropi-icon from flashing at full size before the component is defined */\ndropi-icon:not(:defined) {\n display: inline-flex;\n width: 24px;\n height: 24px;\n overflow: hidden;\n}\n";
7
-
8
- /*
9
- Stencil Client Platform v4.43.4 | MIT Licensed | https://stenciljs.com
10
- */
11
-
12
- var Build = {
13
- isDev: BUILD.isDev ? true : false,
14
- isBrowser: true,
15
- isServer: false,
16
- isTesting: BUILD.isTesting ? true : false
17
- };
18
-
19
- // src/utils/constants.ts
20
- var SVG_NS = "http://www.w3.org/2000/svg";
21
- var HTML_NS = "http://www.w3.org/1999/xhtml";
22
- var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
23
- PrimitiveType2["Undefined"] = "undefined";
24
- PrimitiveType2["Null"] = "null";
25
- PrimitiveType2["String"] = "string";
26
- PrimitiveType2["Number"] = "number";
27
- PrimitiveType2["SpecialNumber"] = "number";
28
- PrimitiveType2["Boolean"] = "boolean";
29
- PrimitiveType2["BigInt"] = "bigint";
30
- return PrimitiveType2;
31
- })(PrimitiveType || {});
32
- var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
33
- NonPrimitiveType2["Array"] = "array";
34
- NonPrimitiveType2["Date"] = "date";
35
- NonPrimitiveType2["Map"] = "map";
36
- NonPrimitiveType2["Object"] = "object";
37
- NonPrimitiveType2["RegularExpression"] = "regexp";
38
- NonPrimitiveType2["Set"] = "set";
39
- NonPrimitiveType2["Channel"] = "channel";
40
- NonPrimitiveType2["Symbol"] = "symbol";
41
- return NonPrimitiveType2;
42
- })(NonPrimitiveType || {});
43
- var TYPE_CONSTANT = "type";
44
- var VALUE_CONSTANT = "value";
45
- var SERIALIZED_PREFIX = "serialized:";
46
-
47
- // src/utils/get-prop-descriptor.ts
48
- function getPropertyDescriptor(obj, memberName, getOnly) {
49
- const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
50
- while (obj && obj !== stopAt) {
51
- const desc = Object.getOwnPropertyDescriptor(obj, memberName);
52
- if (desc && (!getOnly || desc.get)) return desc;
53
- obj = Object.getPrototypeOf(obj);
54
- }
55
- return void 0;
56
- }
57
-
58
- // src/utils/es2022-rewire-class-members.ts
59
- var reWireGetterSetter = (instance, hostRef) => {
60
- var _a;
61
- const cmpMeta = hostRef.$cmpMeta$;
62
- const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
63
- members.map(([memberName, [memberFlags]]) => {
64
- if ((BUILD.state || BUILD.prop) && (memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
65
- const ogValue = instance[memberName];
66
- const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
67
- if (ogDescriptor) {
68
- Object.defineProperty(instance, memberName, {
69
- get() {
70
- return ogDescriptor.get.call(this);
71
- },
72
- set(newValue) {
73
- ogDescriptor.set.call(this, newValue);
74
- },
75
- configurable: true,
76
- enumerable: true
77
- });
78
- }
79
- if (hostRef.$instanceValues$.has(memberName)) {
80
- instance[memberName] = hostRef.$instanceValues$.get(memberName);
81
- } else if (ogValue !== void 0) {
82
- instance[memberName] = ogValue;
83
- }
84
- }
85
- });
86
- };
87
-
88
- // src/client/client-host-ref.ts
89
- var getHostRef = (ref) => {
90
- if (ref.__stencil__getHostRef) {
91
- return ref.__stencil__getHostRef();
92
- }
93
- return void 0;
94
- };
95
- var registerInstance = (lazyInstance, hostRef) => {
96
- if (!hostRef) return;
97
- lazyInstance.__stencil__getHostRef = () => hostRef;
98
- hostRef.$lazyInstance$ = lazyInstance;
99
- if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state || BUILD.prop)) {
100
- reWireGetterSetter(lazyInstance, hostRef);
101
- }
102
- };
103
- var registerHost = (hostElement, cmpMeta) => {
104
- const hostRef = {
105
- $flags$: 0,
106
- $hostElement$: hostElement,
107
- $cmpMeta$: cmpMeta,
108
- $instanceValues$: /* @__PURE__ */ new Map(),
109
- $serializerValues$: /* @__PURE__ */ new Map()
110
- };
111
- if (BUILD.isDev) {
112
- hostRef.$renderCount$ = 0;
113
- }
114
- if (BUILD.method && BUILD.lazyLoad) {
115
- hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
116
- }
117
- if (BUILD.asyncLoading) {
118
- hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
119
- hostElement["s-p"] = [];
120
- hostElement["s-rc"] = [];
121
- }
122
- if (BUILD.lazyLoad) {
123
- hostRef.$fetchedCbList$ = [];
124
- }
125
- const ref = hostRef;
126
- hostElement.__stencil__getHostRef = () => ref;
127
- if (!BUILD.lazyLoad && cmpMeta.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state || BUILD.prop)) {
128
- reWireGetterSetter(hostElement, hostRef);
129
- }
130
- return ref;
131
- };
132
- var isMemberInElement = (elm, memberName) => memberName in elm;
133
- var customError;
134
- var consoleError = (e, el) => (customError || console.error)(e, el);
135
- var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
136
- "%cstencil",
137
- "color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
138
- ];
139
- var consoleDevError = (...m) => console.error(...STENCIL_DEV_MODE, ...m);
140
- var consoleDevWarn = (...m) => console.warn(...STENCIL_DEV_MODE, ...m);
141
- var consoleDevInfo = (...m) => console.info(...STENCIL_DEV_MODE, ...m);
142
- var setErrorHandler = (handler) => customError = handler;
143
-
144
- // src/client/client-load-module.ts
145
- var cmpModules = /* @__PURE__ */ new Map();
146
- var MODULE_IMPORT_PREFIX = "./";
147
- var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
148
- const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
149
- const bundleId = cmpMeta.$lazyBundleId$;
150
- if (BUILD.isDev && typeof bundleId !== "string") {
151
- consoleDevError(
152
- `Trying to lazily load component <${cmpMeta.$tagName$}> with style mode "${hostRef.$modeName$}", but it does not exist.`
153
- );
154
- return void 0;
155
- } else if (!bundleId) {
156
- return void 0;
157
- }
158
- const module = !BUILD.hotModuleReplacement ? cmpModules.get(bundleId) : false;
159
- if (module) {
160
- return module[exportName];
161
- }
162
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
163
- return import(
164
- /* @vite-ignore */
165
- /* webpackInclude: /\.entry\.js$/ */
166
- /* webpackExclude: /\.system\.entry\.js$/ */
167
- /* webpackMode: "lazy" */
168
- `./${bundleId}.entry.js${BUILD.hotModuleReplacement && hmrVersionId ? "?s-hmr=" + hmrVersionId : ""}`
169
- ).then(
170
- (importedModule) => {
171
- if (!BUILD.hotModuleReplacement) {
172
- cmpModules.set(bundleId, importedModule);
173
- }
174
- return importedModule[exportName];
175
- },
176
- (e) => {
177
- consoleError(e, hostRef.$hostElement$);
178
- }
179
- );
180
- };
181
-
182
- // src/client/client-style.ts
183
- var styles = /* @__PURE__ */ new Map();
184
- var modeResolutionChain = [];
185
- var setScopedSSR = (_opts) => {
186
- };
187
- var needsScopedSSR = () => false;
188
-
189
- // src/runtime/runtime-constants.ts
190
- var CONTENT_REF_ID = "r";
191
- var ORG_LOCATION_ID = "o";
192
- var SLOT_NODE_ID = "s";
193
- var TEXT_NODE_ID = "t";
194
- var COMMENT_NODE_ID = "c";
195
- var HYDRATE_ID = "s-id";
196
- var HYDRATED_STYLE_ID = "sty-id";
197
- var HYDRATE_CHILD_ID = "c-id";
198
- var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
199
- var STENCIL_DOC_DATA = "_stencilDocData";
200
- var DEFAULT_DOC_DATA = {
201
- hostIds: 0,
202
- rootLevelIds: 0,
203
- staticComponents: /* @__PURE__ */ new Set()
204
- };
205
- var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
206
- var XLINK_NS = "http://www.w3.org/1999/xlink";
207
- var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
208
- "formAssociatedCallback",
209
- "formResetCallback",
210
- "formDisabledCallback",
211
- "formStateRestoreCallback"
212
- ];
213
- var win = typeof window !== "undefined" ? window : {};
214
- var H = win.HTMLElement || class {
215
- };
216
- var plt = {
217
- $flags$: 0,
218
- $resourcesUrl$: "",
219
- jmp: (h2) => h2(),
220
- raf: (h2) => requestAnimationFrame(h2),
221
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
222
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
223
- ce: (eventName, opts) => new CustomEvent(eventName, opts)
224
- };
225
- var setPlatformHelpers = (helpers) => {
226
- Object.assign(plt, helpers);
227
- };
228
- var supportsShadow = BUILD.shadowDom;
229
- var supportsListenerOptions = /* @__PURE__ */ (() => {
230
- var _a;
231
- let supportsListenerOptions2 = false;
232
- try {
233
- (_a = win.document) == null ? void 0 : _a.addEventListener(
234
- "e",
235
- null,
236
- Object.defineProperty({}, "passive", {
237
- get() {
238
- supportsListenerOptions2 = true;
239
- }
240
- })
241
- );
242
- } catch (e) {
243
- }
244
- return supportsListenerOptions2;
245
- })();
246
- var promiseResolve = (v) => Promise.resolve(v);
247
- var supportsConstructableStylesheets = BUILD.constructableCSS ? /* @__PURE__ */ (() => {
248
- try {
249
- if (!win.document.adoptedStyleSheets) {
250
- return false;
251
- }
252
- new CSSStyleSheet();
253
- return typeof new CSSStyleSheet().replaceSync === "function";
254
- } catch (e) {
255
- }
256
- return false;
257
- })() : false;
258
- var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
259
-
260
- // src/client/client-task-queue.ts
261
- var queueCongestion = 0;
262
- var queuePending = false;
263
- var queueDomReads = [];
264
- var queueDomWrites = [];
265
- var queueDomWritesLow = [];
266
- var queueTask = (queue, write) => (cb) => {
267
- queue.push(cb);
268
- if (!queuePending) {
269
- queuePending = true;
270
- if (write && plt.$flags$ & 4 /* queueSync */) {
271
- nextTick(flush);
272
- } else {
273
- plt.raf(flush);
274
- }
275
- }
276
- };
277
- var consume = (queue) => {
278
- for (let i2 = 0; i2 < queue.length; i2++) {
279
- try {
280
- queue[i2](performance.now());
281
- } catch (e) {
282
- consoleError(e);
283
- }
284
- }
285
- queue.length = 0;
286
- };
287
- var consumeTimeout = (queue, timeout) => {
288
- let i2 = 0;
289
- let ts = 0;
290
- while (i2 < queue.length && (ts = performance.now()) < timeout) {
291
- try {
292
- queue[i2++](ts);
293
- } catch (e) {
294
- consoleError(e);
295
- }
296
- }
297
- if (i2 === queue.length) {
298
- queue.length = 0;
299
- } else if (i2 !== 0) {
300
- queue.splice(0, i2);
301
- }
302
- };
303
- var flush = () => {
304
- if (BUILD.asyncQueue) {
305
- queueCongestion++;
306
- }
307
- consume(queueDomReads);
308
- if (BUILD.asyncQueue) {
309
- const timeout = (plt.$flags$ & 6 /* queueMask */) === 2 /* appLoaded */ ? performance.now() + 14 * Math.ceil(queueCongestion * (1 / 10)) : Infinity;
310
- consumeTimeout(queueDomWrites, timeout);
311
- consumeTimeout(queueDomWritesLow, timeout);
312
- if (queueDomWrites.length > 0) {
313
- queueDomWritesLow.push(...queueDomWrites);
314
- queueDomWrites.length = 0;
315
- }
316
- if (queuePending = queueDomReads.length + queueDomWrites.length + queueDomWritesLow.length > 0) {
317
- plt.raf(flush);
318
- } else {
319
- queueCongestion = 0;
320
- }
321
- } else {
322
- consume(queueDomWrites);
323
- if (queuePending = queueDomReads.length > 0) {
324
- plt.raf(flush);
325
- }
326
- }
327
- };
328
- var nextTick = (cb) => promiseResolve().then(cb);
329
- var readTask = /* @__PURE__ */ queueTask(queueDomReads, false);
330
- var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
331
-
332
- // src/runtime/asset-path.ts
333
- var getAssetPath = (path) => {
334
- const assetUrl = new URL(path, plt.$resourcesUrl$);
335
- return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
336
- };
337
- var setAssetPath = (path) => plt.$resourcesUrl$ = path;
338
-
339
- // src/utils/style.ts
340
- function createStyleSheetIfNeededAndSupported(styles2) {
341
- if (!styles2 || !supportsConstructableStylesheets) return void 0;
342
- const sheet = new CSSStyleSheet();
343
- sheet.replaceSync(styles2);
344
- return sheet;
345
- }
346
-
347
- // src/utils/shadow-root.ts
348
- var globalStyleSheet;
349
- var GLOBAL_STYLE_ID = "sc-global";
350
- function createShadowRoot(cmpMeta) {
351
- var _a;
352
- const opts = { mode: "open" };
353
- if (BUILD.shadowDelegatesFocus) {
354
- opts.delegatesFocus = !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */);
355
- }
356
- if (BUILD.shadowSlotAssignmentManual) {
357
- const isManual = !!(cmpMeta.$flags$ & 1024 /* shadowSlotAssignmentManual */);
358
- if (isManual) {
359
- opts.slotAssignment = "manual";
360
- }
361
- }
362
- const shadowRoot = this.attachShadow(opts);
363
- if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported(globalStyles)) != null ? _a : null;
364
- if (globalStyleSheet) {
365
- if (supportsMutableAdoptedStyleSheets) {
366
- shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
367
- } else {
368
- shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
369
- }
370
- } else if (globalStyles && !supportsConstructableStylesheets) {
371
- const styleElm = document.createElement("style");
372
- styleElm.innerHTML = globalStyles;
373
- if (BUILD.hotModuleReplacement) {
374
- styleElm.setAttribute(HYDRATED_STYLE_ID, GLOBAL_STYLE_ID);
375
- }
376
- shadowRoot.prepend(styleElm);
377
- }
378
- }
379
- var updateFallbackSlotVisibility = (elm) => {
380
- const childNodes = internalCall(elm, "childNodes");
381
- if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
382
- getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
383
- if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
384
- if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
385
- slotNode.hidden = true;
386
- } else {
387
- slotNode.hidden = false;
388
- }
389
- }
390
- });
391
- }
392
- let i2 = 0;
393
- for (i2 = 0; i2 < childNodes.length; i2++) {
394
- const childNode = childNodes[i2];
395
- if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
396
- updateFallbackSlotVisibility(childNode);
397
- }
398
- }
399
- };
400
- var getSlottedChildNodes = (childNodes) => {
401
- const result = [];
402
- for (let i2 = 0; i2 < childNodes.length; i2++) {
403
- const slottedNode = childNodes[i2]["s-nr"] || void 0;
404
- if (slottedNode && slottedNode.isConnected) {
405
- result.push(slottedNode);
406
- }
407
- }
408
- return result;
409
- };
410
- function getHostSlotNodes(childNodes, hostName, slotName) {
411
- let i2 = 0;
412
- let slottedNodes = [];
413
- let childNode;
414
- for (; i2 < childNodes.length; i2++) {
415
- childNode = childNodes[i2];
416
- if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {
417
- slottedNodes.push(childNode);
418
- if (typeof slotName !== "undefined") return slottedNodes;
419
- }
420
- slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
421
- }
422
- return slottedNodes;
423
- }
424
- var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
425
- const childNodes = [];
426
- if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
427
- let node = slot;
428
- while (node = node.nextSibling) {
429
- if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
430
- }
431
- return childNodes;
432
- };
433
- var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
434
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
435
- if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
436
- return true;
437
- }
438
- if (nodeToRelocate.getAttribute("slot") === slotName) {
439
- return true;
440
- }
441
- return false;
442
- }
443
- if (nodeToRelocate["s-sn"] === slotName) {
444
- return true;
445
- }
446
- return slotName === "";
447
- };
448
- var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
449
- if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
450
- return;
451
- }
452
- const slottedNodeLocation = document.createTextNode("");
453
- slottedNodeLocation["s-nr"] = newChild;
454
- if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
455
- const parent = slotNode["s-cr"].parentNode;
456
- const appendMethod = prepend ? internalCall(parent, "prepend") : internalCall(parent, "appendChild");
457
- if (BUILD.hydrateClientSide && typeof position !== "undefined") {
458
- slottedNodeLocation["s-oo"] = position;
459
- const childNodes = internalCall(parent, "childNodes");
460
- const slotRelocateNodes = [slottedNodeLocation];
461
- childNodes.forEach((n) => {
462
- if (n["s-nr"]) slotRelocateNodes.push(n);
463
- });
464
- slotRelocateNodes.sort((a, b) => {
465
- if (!a["s-oo"] || a["s-oo"] < (b["s-oo"] || 0)) return -1;
466
- else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
467
- return 0;
468
- });
469
- slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
470
- } else {
471
- appendMethod.call(parent, slottedNodeLocation);
472
- }
473
- newChild["s-ol"] = slottedNodeLocation;
474
- newChild["s-sh"] = slotNode["s-hn"];
475
- };
476
- var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
477
- function patchSlotNode(node) {
478
- if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
479
- const assignedFactory = (elementsOnly) => (function(opts) {
480
- const toReturn = [];
481
- const slotName = this["s-sn"];
482
- if (opts == null ? void 0 : opts.flatten) {
483
- console.error(`
484
- Flattening is not supported for Stencil non-shadow slots.
485
- You can use \`.childNodes\` to nested slot fallback content.
486
- If you have a particular use case, please open an issue on the Stencil repo.
487
- `);
488
- }
489
- const parent = this["s-cr"].parentElement;
490
- const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
491
- slottedNodes.forEach((n) => {
492
- if (slotName === getSlotName(n)) {
493
- toReturn.push(n);
494
- }
495
- });
496
- if (elementsOnly) {
497
- return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
498
- }
499
- return toReturn;
500
- }).bind(node);
501
- node.assignedElements = assignedFactory(true);
502
- node.assignedNodes = assignedFactory(false);
503
- }
504
- function dispatchSlotChangeEvent(elm) {
505
- elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
506
- }
507
- function findSlotFromSlottedNode(slottedNode, parentHost) {
508
- var _a;
509
- parentHost = parentHost || ((_a = slottedNode["s-ol"]) == null ? void 0 : _a.parentElement);
510
- if (!parentHost) return { slotNode: null, slotName: "" };
511
- const slotName = slottedNode["s-sn"] = getSlotName(slottedNode) || "";
512
- const childNodes = internalCall(parentHost, "childNodes");
513
- const slotNode = getHostSlotNodes(childNodes, parentHost.tagName, slotName)[0];
514
- return { slotNode, slotName };
515
- }
516
-
517
- // src/runtime/dom-extras.ts
518
- var patchPseudoShadowDom = (hostElementPrototype) => {
519
- patchCloneNode(hostElementPrototype);
520
- patchSlotAppendChild(hostElementPrototype);
521
- patchSlotAppend(hostElementPrototype);
522
- patchSlotPrepend(hostElementPrototype);
523
- patchSlotInsertAdjacentElement(hostElementPrototype);
524
- patchSlotInsertAdjacentHTML(hostElementPrototype);
525
- patchSlotInsertAdjacentText(hostElementPrototype);
526
- patchInsertBefore(hostElementPrototype);
527
- patchTextContent(hostElementPrototype);
528
- patchChildSlotNodes(hostElementPrototype);
529
- patchSlotRemoveChild(hostElementPrototype);
530
- };
531
- var patchCloneNode = (HostElementPrototype) => {
532
- if (HostElementPrototype.__cloneNode) return;
533
- const orgCloneNode = HostElementPrototype.__cloneNode = HostElementPrototype.cloneNode;
534
- HostElementPrototype.cloneNode = function(deep) {
535
- const srcNode = this;
536
- const isShadowDom = BUILD.shadowDom ? srcNode.shadowRoot && supportsShadow : false;
537
- const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
538
- if (BUILD.slot && !isShadowDom && deep) {
539
- let i2 = 0;
540
- let slotted, nonStencilNode;
541
- const stencilPrivates = [
542
- "s-id",
543
- "s-cr",
544
- "s-lr",
545
- "s-rc",
546
- "s-sc",
547
- "s-p",
548
- "s-cn",
549
- "s-sr",
550
- "s-sn",
551
- "s-hn",
552
- "s-ol",
553
- "s-nr",
554
- "s-si",
555
- "s-rf",
556
- "s-scs"
557
- ];
558
- const childNodes = this.__childNodes || this.childNodes;
559
- for (; i2 < childNodes.length; i2++) {
560
- slotted = childNodes[i2]["s-nr"];
561
- nonStencilNode = stencilPrivates.every((privateField) => !childNodes[i2][privateField]);
562
- if (slotted) {
563
- if (BUILD.appendChildSlotFix && clonedNode.__appendChild) {
564
- clonedNode.__appendChild(slotted.cloneNode(true));
565
- } else {
566
- clonedNode.appendChild(slotted.cloneNode(true));
567
- }
568
- }
569
- if (nonStencilNode) {
570
- clonedNode.appendChild(childNodes[i2].cloneNode(true));
571
- }
572
- }
573
- }
574
- return clonedNode;
575
- };
576
- };
577
- var patchSlotAppendChild = (HostElementPrototype) => {
578
- if (HostElementPrototype.__appendChild) return;
579
- HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
580
- HostElementPrototype.appendChild = function(newChild) {
581
- const { slotName, slotNode } = findSlotFromSlottedNode(newChild, this);
582
- if (slotNode) {
583
- addSlotRelocateNode(newChild, slotNode);
584
- const slotChildNodes = getSlotChildSiblings(slotNode, slotName);
585
- const appendAfter = slotChildNodes[slotChildNodes.length - 1];
586
- const parent = internalCall(appendAfter, "parentNode");
587
- const insertedNode = internalCall(parent, "insertBefore")(newChild, appendAfter.nextSibling);
588
- dispatchSlotChangeEvent(slotNode);
589
- updateFallbackSlotVisibility(this);
590
- return insertedNode;
591
- }
592
- return this.__appendChild(newChild);
593
- };
594
- };
595
- var patchSlotRemoveChild = (ElementPrototype) => {
596
- if (ElementPrototype.__removeChild) return;
597
- ElementPrototype.__removeChild = ElementPrototype.removeChild;
598
- ElementPrototype.removeChild = function(toRemove) {
599
- if (toRemove && typeof toRemove["s-sn"] !== "undefined") {
600
- const childNodes = this.__childNodes || this.childNodes;
601
- const slotNode = getHostSlotNodes(childNodes, this.tagName, toRemove["s-sn"]);
602
- if (slotNode && toRemove.isConnected) {
603
- toRemove.remove();
604
- updateFallbackSlotVisibility(this);
605
- return;
606
- }
607
- }
608
- return this.__removeChild(toRemove);
609
- };
610
- };
611
- var patchSlotPrepend = (HostElementPrototype) => {
612
- if (HostElementPrototype.__prepend) return;
613
- HostElementPrototype.__prepend = HostElementPrototype.prepend;
614
- HostElementPrototype.prepend = function(...newChildren) {
615
- newChildren.forEach((newChild) => {
616
- if (typeof newChild === "string") {
617
- newChild = this.ownerDocument.createTextNode(newChild);
618
- }
619
- const slotName = (newChild["s-sn"] = getSlotName(newChild)) || "";
620
- const childNodes = internalCall(this, "childNodes");
621
- const slotNode = getHostSlotNodes(childNodes, this.tagName, slotName)[0];
622
- if (slotNode) {
623
- addSlotRelocateNode(newChild, slotNode, true);
624
- const slotChildNodes = getSlotChildSiblings(slotNode, slotName);
625
- const appendAfter = slotChildNodes[0];
626
- const parent = internalCall(appendAfter, "parentNode");
627
- const toReturn = internalCall(parent, "insertBefore")(newChild, internalCall(appendAfter, "nextSibling"));
628
- dispatchSlotChangeEvent(slotNode);
629
- return toReturn;
630
- }
631
- if (newChild.nodeType === 1 && !!newChild.getAttribute("slot")) {
632
- newChild.hidden = true;
633
- }
634
- return HostElementPrototype.__prepend(newChild);
635
- });
636
- };
637
- };
638
- var patchSlotAppend = (HostElementPrototype) => {
639
- if (HostElementPrototype.__append) return;
640
- HostElementPrototype.__append = HostElementPrototype.append;
641
- HostElementPrototype.append = function(...newChildren) {
642
- newChildren.forEach((newChild) => {
643
- if (typeof newChild === "string") {
644
- newChild = this.ownerDocument.createTextNode(newChild);
645
- }
646
- this.appendChild(newChild);
647
- });
648
- };
649
- };
650
- var patchSlotInsertAdjacentHTML = (HostElementPrototype) => {
651
- if (HostElementPrototype.__insertAdjacentHTML) return;
652
- const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;
653
- HostElementPrototype.insertAdjacentHTML = function(position, text) {
654
- if (position !== "afterbegin" && position !== "beforeend") {
655
- return originalInsertAdjacentHtml.call(this, position, text);
656
- }
657
- const container = this.ownerDocument.createElement("_");
658
- let node;
659
- container.innerHTML = text;
660
- if (position === "afterbegin") {
661
- while (node = container.firstChild) {
662
- this.prepend(node);
663
- }
664
- } else if (position === "beforeend") {
665
- while (node = container.firstChild) {
666
- this.append(node);
667
- }
668
- }
669
- };
670
- };
671
- var patchSlotInsertAdjacentText = (HostElementPrototype) => {
672
- HostElementPrototype.insertAdjacentText = function(position, text) {
673
- this.insertAdjacentHTML(position, text);
674
- };
675
- };
676
- var patchInsertBefore = (HostElementPrototype) => {
677
- if (HostElementPrototype.__insertBefore) return;
678
- const eleProto = HostElementPrototype;
679
- if (eleProto.__insertBefore) return;
680
- eleProto.__insertBefore = HostElementPrototype.insertBefore;
681
- HostElementPrototype.insertBefore = function(newChild, currentChild) {
682
- const { slotName, slotNode } = findSlotFromSlottedNode(newChild, this);
683
- const slottedNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
684
- if (slotNode) {
685
- let found = false;
686
- slottedNodes.forEach((childNode) => {
687
- if (childNode === currentChild || currentChild === null) {
688
- found = true;
689
- if (currentChild === null || slotName !== currentChild["s-sn"]) {
690
- this.appendChild(newChild);
691
- return;
692
- }
693
- if (slotName === currentChild["s-sn"]) {
694
- addSlotRelocateNode(newChild, slotNode);
695
- const parent = internalCall(currentChild, "parentNode");
696
- internalCall(parent, "insertBefore")(newChild, currentChild);
697
- dispatchSlotChangeEvent(slotNode);
698
- }
699
- return;
700
- }
701
- });
702
- if (found) return newChild;
703
- }
704
- const parentNode = currentChild == null ? void 0 : currentChild.__parentNode;
705
- if (parentNode && !this.isSameNode(parentNode)) {
706
- return this.appendChild(newChild);
707
- }
708
- return this.__insertBefore(newChild, currentChild);
709
- };
710
- };
711
- var patchSlotInsertAdjacentElement = (HostElementPrototype) => {
712
- if (HostElementPrototype.__insertAdjacentElement) return;
713
- const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;
714
- HostElementPrototype.insertAdjacentElement = function(position, element) {
715
- if (position !== "afterbegin" && position !== "beforeend") {
716
- return originalInsertAdjacentElement.call(this, position, element);
717
- }
718
- if (position === "afterbegin") {
719
- this.prepend(element);
720
- return element;
721
- } else if (position === "beforeend") {
722
- this.append(element);
723
- return element;
724
- }
725
- return element;
726
- };
727
- };
728
- var patchTextContent = (hostElementPrototype) => {
729
- patchHostOriginalAccessor("textContent", hostElementPrototype);
730
- Object.defineProperty(hostElementPrototype, "textContent", {
731
- get: function() {
732
- let text = "";
733
- const childNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
734
- childNodes.forEach((node) => text += node.textContent || "");
735
- return text;
736
- },
737
- set: function(value) {
738
- const childNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
739
- childNodes.forEach((node) => {
740
- if (node["s-ol"]) node["s-ol"].remove();
741
- node.remove();
742
- });
743
- this.insertAdjacentHTML("beforeend", value);
744
- }
745
- });
746
- };
747
- var patchChildSlotNodes = (elm) => {
748
- class FakeNodeList extends Array {
749
- item(n) {
750
- return this[n];
751
- }
752
- }
753
- patchHostOriginalAccessor("children", elm);
754
- Object.defineProperty(elm, "children", {
755
- get() {
756
- return this.childNodes.filter((n) => n.nodeType === 1);
757
- }
758
- });
759
- Object.defineProperty(elm, "childElementCount", {
760
- get() {
761
- return this.children.length;
762
- }
763
- });
764
- patchHostOriginalAccessor("firstChild", elm);
765
- Object.defineProperty(elm, "firstChild", {
766
- get() {
767
- return this.childNodes[0];
768
- }
769
- });
770
- patchHostOriginalAccessor("lastChild", elm);
771
- Object.defineProperty(elm, "lastChild", {
772
- get() {
773
- return this.childNodes[this.childNodes.length - 1];
774
- }
775
- });
776
- patchHostOriginalAccessor("childNodes", elm);
777
- Object.defineProperty(elm, "childNodes", {
778
- get() {
779
- const result = new FakeNodeList();
780
- result.push(...getSlottedChildNodes(this.__childNodes));
781
- return result;
782
- }
783
- });
784
- };
785
- var patchSlottedNode = (node) => {
786
- if (!node || node.__nextSibling !== void 0 || !globalThis.Node) return;
787
- patchNextSibling(node);
788
- patchPreviousSibling(node);
789
- patchParentNode(node);
790
- if (node.nodeType === Node.ELEMENT_NODE) {
791
- patchNextElementSibling(node);
792
- patchPreviousElementSibling(node);
793
- }
794
- };
795
- var patchNextSibling = (node) => {
796
- if (!node || node.__nextSibling) return;
797
- patchHostOriginalAccessor("nextSibling", node);
798
- Object.defineProperty(node, "nextSibling", {
799
- get: function() {
800
- var _a;
801
- const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
802
- const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
803
- if (parentNodes && index > -1) {
804
- return parentNodes[index + 1];
805
- }
806
- return this.__nextSibling;
807
- }
808
- });
809
- };
810
- var patchNextElementSibling = (element) => {
811
- if (!element || element.__nextElementSibling) return;
812
- patchHostOriginalAccessor("nextElementSibling", element);
813
- Object.defineProperty(element, "nextElementSibling", {
814
- get: function() {
815
- var _a;
816
- const parentEles = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
817
- const index = parentEles == null ? void 0 : parentEles.indexOf(this);
818
- if (parentEles && index > -1) {
819
- return parentEles[index + 1];
820
- }
821
- return this.__nextElementSibling;
822
- }
823
- });
824
- };
825
- var patchPreviousSibling = (node) => {
826
- if (!node || node.__previousSibling) return;
827
- patchHostOriginalAccessor("previousSibling", node);
828
- Object.defineProperty(node, "previousSibling", {
829
- get: function() {
830
- var _a;
831
- const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
832
- const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
833
- if (parentNodes && index > -1) {
834
- return parentNodes[index - 1];
835
- }
836
- return this.__previousSibling;
837
- }
838
- });
839
- };
840
- var patchPreviousElementSibling = (element) => {
841
- if (!element || element.__previousElementSibling) return;
842
- patchHostOriginalAccessor("previousElementSibling", element);
843
- Object.defineProperty(element, "previousElementSibling", {
844
- get: function() {
845
- var _a;
846
- const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
847
- const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
848
- if (parentNodes && index > -1) {
849
- return parentNodes[index - 1];
850
- }
851
- return this.__previousElementSibling;
852
- }
853
- });
854
- };
855
- var patchParentNode = (node) => {
856
- if (!node || node.__parentNode) return;
857
- patchHostOriginalAccessor("parentNode", node);
858
- Object.defineProperty(node, "parentNode", {
859
- get: function() {
860
- var _a;
861
- return ((_a = this["s-ol"]) == null ? void 0 : _a.parentNode) || this.__parentNode;
862
- },
863
- set: function(value) {
864
- this.__parentNode = value;
865
- }
866
- });
867
- };
868
- var validElementPatches = ["children", "nextElementSibling", "previousElementSibling"];
869
- var validNodesPatches = [
870
- "childNodes",
871
- "firstChild",
872
- "lastChild",
873
- "nextSibling",
874
- "previousSibling",
875
- "textContent",
876
- "parentNode"
877
- ];
878
- function patchHostOriginalAccessor(accessorName, node) {
879
- if (!globalThis.Node || !globalThis.Element) {
880
- return;
881
- }
882
- let accessor;
883
- if (validElementPatches.includes(accessorName)) {
884
- accessor = Object.getOwnPropertyDescriptor(Element.prototype, accessorName);
885
- } else if (validNodesPatches.includes(accessorName)) {
886
- accessor = Object.getOwnPropertyDescriptor(Node.prototype, accessorName);
887
- }
888
- if (!accessor) {
889
- accessor = Object.getOwnPropertyDescriptor(node, accessorName);
890
- }
891
- if (accessor) Object.defineProperty(node, "__" + accessorName, accessor);
892
- }
893
- function internalCall(node, method) {
894
- if ("__" + method in node) {
895
- const toReturn = node["__" + method];
896
- if (typeof toReturn !== "function") return toReturn;
897
- return toReturn.bind(node);
898
- } else {
899
- if (typeof node[method] !== "function") return node[method];
900
- return node[method].bind(node);
901
- }
902
- }
903
- var i = 0;
904
- var createTime = (fnName, tagName = "") => {
905
- if (BUILD.profile && performance.mark) {
906
- const key = `st:${fnName}:${tagName}:${i++}`;
907
- performance.mark(key);
908
- return () => performance.measure(`[Stencil] ${fnName}() <${tagName}>`, key);
909
- } else {
910
- return () => {
911
- return;
912
- };
913
- }
914
- };
915
- var uniqueTime = (key, measureText) => {
916
- if (BUILD.profile && performance.mark) {
917
- if (performance.getEntriesByName(key, "mark").length === 0) {
918
- performance.mark(key);
919
- }
920
- return () => {
921
- if (performance.getEntriesByName(measureText, "measure").length === 0) {
922
- performance.measure(measureText, key);
923
- }
924
- };
925
- } else {
926
- return () => {
927
- return;
928
- };
929
- }
930
- };
931
- var inspect = (ref) => {
932
- const hostRef = getHostRef(ref);
933
- if (!hostRef) {
934
- return void 0;
935
- }
936
- const flags = hostRef.$flags$;
937
- const hostElement = hostRef.$hostElement$;
938
- return {
939
- renderCount: hostRef.$renderCount$,
940
- flags: {
941
- hasRendered: !!(flags & 2 /* hasRendered */),
942
- hasConnected: !!(flags & 1 /* hasConnected */),
943
- isWaitingForChildren: !!(flags & 4 /* isWaitingForChildren */),
944
- isConstructingInstance: !!(flags & 8 /* isConstructingInstance */),
945
- isQueuedForUpdate: !!(flags & 16 /* isQueuedForUpdate */),
946
- hasInitializedComponent: !!(flags & 32 /* hasInitializedComponent */),
947
- hasLoadedComponent: !!(flags & 64 /* hasLoadedComponent */),
948
- isWatchReady: !!(flags & 128 /* isWatchReady */),
949
- isListenReady: !!(flags & 256 /* isListenReady */),
950
- needsRerender: !!(flags & 512 /* needsRerender */)
951
- },
952
- instanceValues: hostRef.$instanceValues$,
953
- serializerValues: hostRef.$serializerValues$,
954
- ancestorComponent: hostRef.$ancestorComponent$,
955
- hostElement,
956
- lazyInstance: hostRef.$lazyInstance$,
957
- vnode: hostRef.$vnode$,
958
- modeName: hostRef.$modeName$,
959
- fetchedCbList: hostRef.$fetchedCbList$,
960
- onReadyPromise: hostRef.$onReadyPromise$,
961
- onReadyResolve: hostRef.$onReadyResolve$,
962
- onInstancePromise: hostRef.$onInstancePromise$,
963
- onInstanceResolve: hostRef.$onInstanceResolve$,
964
- onRenderResolve: hostRef.$onRenderResolve$,
965
- queuedListeners: hostRef.$queuedListeners$,
966
- rmListeners: hostRef.$rmListeners$,
967
- ["s-id"]: hostElement["s-id"],
968
- ["s-cr"]: hostElement["s-cr"],
969
- ["s-lr"]: hostElement["s-lr"],
970
- ["s-p"]: hostElement["s-p"],
971
- ["s-rc"]: hostElement["s-rc"],
972
- ["s-sc"]: hostElement["s-sc"]
973
- };
974
- };
975
- var installDevTools = () => {
976
- if (BUILD.devTools) {
977
- const stencil = win.stencil = win.stencil || {};
978
- const originalInspect = stencil.inspect;
979
- stencil.inspect = (ref) => {
980
- let result = inspect(ref);
981
- if (!result && typeof originalInspect === "function") {
982
- result = originalInspect(ref);
983
- }
984
- return result;
985
- };
986
- }
987
- };
988
-
989
- // src/utils/query-nonce-meta-tag-content.ts
990
- function queryNonceMetaTagContent(doc) {
991
- var _a, _b, _c;
992
- 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;
993
- }
994
-
995
- // src/runtime/styles.ts
996
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
997
- var registerStyle = (scopeId2, cssText, allowCS) => {
998
- let style = styles.get(scopeId2);
999
- if (supportsConstructableStylesheets && allowCS) {
1000
- style = style || new CSSStyleSheet();
1001
- if (typeof style === "string") {
1002
- style = cssText;
1003
- } else {
1004
- style.replaceSync(cssText);
1005
- }
1006
- } else {
1007
- style = cssText;
1008
- }
1009
- styles.set(scopeId2, style);
1010
- };
1011
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
1012
- var _a, _b, _c;
1013
- const scopeId2 = getScopeId(cmpMeta, mode);
1014
- const style = styles.get(scopeId2);
1015
- if (!BUILD.attachStyles || !win.document) {
1016
- return scopeId2;
1017
- }
1018
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
1019
- if (style) {
1020
- if (typeof style === "string") {
1021
- styleContainerNode = styleContainerNode.head || styleContainerNode;
1022
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
1023
- let styleElm;
1024
- if (!appliedStyles) {
1025
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
1026
- }
1027
- const existingStyleElm = (BUILD.hydrateClientSide || BUILD.hotModuleReplacement) && styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
1028
- if (existingStyleElm) {
1029
- existingStyleElm.textContent = style;
1030
- } else if (!appliedStyles.has(scopeId2)) {
1031
- styleElm = win.document.createElement("style");
1032
- styleElm.textContent = style;
1033
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
1034
- if (nonce != null) {
1035
- styleElm.setAttribute("nonce", nonce);
1036
- }
1037
- if ((BUILD.hydrateServerSide || BUILD.hotModuleReplacement) && (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */ || cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */ || cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
1038
- styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
1039
- }
1040
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
1041
- if (styleContainerNode.nodeName === "HEAD") {
1042
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
1043
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
1044
- styleContainerNode.insertBefore(
1045
- styleElm,
1046
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
1047
- );
1048
- } else if ("host" in styleContainerNode) {
1049
- if (supportsConstructableStylesheets) {
1050
- const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
1051
- const stylesheet = new currentWindow.CSSStyleSheet();
1052
- stylesheet.replaceSync(style);
1053
- if (supportsMutableAdoptedStyleSheets) {
1054
- styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
1055
- } else {
1056
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
1057
- }
1058
- } else {
1059
- const existingStyleContainer = styleContainerNode.querySelector("style");
1060
- if (existingStyleContainer && !BUILD.hotModuleReplacement) {
1061
- existingStyleContainer.textContent = style + existingStyleContainer.textContent;
1062
- } else {
1063
- styleContainerNode.prepend(styleElm);
1064
- }
1065
- }
1066
- } else {
1067
- styleContainerNode.append(styleElm);
1068
- }
1069
- }
1070
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1071
- styleContainerNode.insertBefore(styleElm, null);
1072
- }
1073
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1074
- styleElm.textContent += SLOT_FB_CSS;
1075
- }
1076
- if (appliedStyles) {
1077
- appliedStyles.add(scopeId2);
1078
- }
1079
- }
1080
- } else if (BUILD.constructableCSS) {
1081
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
1082
- if (!appliedStyles) {
1083
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
1084
- }
1085
- if (!appliedStyles.has(scopeId2)) {
1086
- const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
1087
- let stylesheet;
1088
- if (style.constructor === currentWindow.CSSStyleSheet) {
1089
- stylesheet = style;
1090
- } else {
1091
- stylesheet = new currentWindow.CSSStyleSheet();
1092
- for (let i2 = 0; i2 < style.cssRules.length; i2++) {
1093
- stylesheet.insertRule(style.cssRules[i2].cssText, i2);
1094
- }
1095
- }
1096
- if (supportsMutableAdoptedStyleSheets) {
1097
- styleContainerNode.adoptedStyleSheets.push(stylesheet);
1098
- } else {
1099
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
1100
- }
1101
- appliedStyles.add(scopeId2);
1102
- if (BUILD.hydrateClientSide && "host" in styleContainerNode) {
1103
- const ssrStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
1104
- if (ssrStyleElm) {
1105
- writeTask(() => ssrStyleElm.remove());
1106
- }
1107
- }
1108
- }
1109
- }
1110
- }
1111
- return scopeId2;
1112
- };
1113
- var attachStyles = (hostRef) => {
1114
- const cmpMeta = hostRef.$cmpMeta$;
1115
- const elm = hostRef.$hostElement$;
1116
- const flags = cmpMeta.$flags$;
1117
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
1118
- const scopeId2 = addStyle(
1119
- BUILD.shadowDom && supportsShadow && elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
1120
- cmpMeta,
1121
- hostRef.$modeName$
1122
- );
1123
- if ((BUILD.shadowDom || BUILD.scoped) && BUILD.cssAnnotations && flags & 10 /* needsScopedEncapsulation */) {
1124
- elm["s-sc"] = scopeId2;
1125
- elm.classList.add(scopeId2 + "-h");
1126
- }
1127
- endAttachStyles();
1128
- };
1129
- var getScopeId = (cmp, mode) => "sc-" + (BUILD.mode && mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
1130
- var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
1131
- var hydrateScopedToShadow = () => {
1132
- if (!win.document) {
1133
- return;
1134
- }
1135
- const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
1136
- let i2 = 0;
1137
- for (; i2 < styles2.length; i2++) {
1138
- registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
1139
- }
1140
- };
1141
-
1142
- // src/utils/helpers.ts
1143
- var isDef = (v) => v != null && v !== void 0;
1144
- var isComplexType = (o) => {
1145
- o = typeof o;
1146
- return o === "object" || o === "function";
1147
- };
1148
-
1149
- // src/runtime/vdom/h.ts
1150
- var h = (nodeName, vnodeData, ...children) => {
1151
- if (typeof nodeName === "string") {
1152
- nodeName = transformTag(nodeName);
1153
- }
1154
- let child = null;
1155
- let key = null;
1156
- let slotName = null;
1157
- let simple = false;
1158
- let lastSimple = false;
1159
- const vNodeChildren = [];
1160
- const walk = (c) => {
1161
- for (let i2 = 0; i2 < c.length; i2++) {
1162
- child = c[i2];
1163
- if (Array.isArray(child)) {
1164
- walk(child);
1165
- } else if (child != null && typeof child !== "boolean") {
1166
- if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
1167
- child = String(child);
1168
- } else if (BUILD.isDev && typeof nodeName !== "function" && child.$flags$ === void 0) {
1169
- consoleDevError(`vNode passed as children has unexpected type.
1170
- Make sure it's using the correct h() function.
1171
- Empty objects can also be the cause, look for JSX comments that became objects.`);
1172
- }
1173
- if (simple && lastSimple) {
1174
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
1175
- } else {
1176
- vNodeChildren.push(simple ? newVNode(null, child) : child);
1177
- }
1178
- lastSimple = simple;
1179
- }
1180
- }
1181
- };
1182
- walk(children);
1183
- if (vnodeData) {
1184
- if (BUILD.isDev && nodeName === "input") {
1185
- validateInputProperties(vnodeData);
1186
- }
1187
- if (BUILD.vdomKey && vnodeData.key) {
1188
- key = vnodeData.key;
1189
- }
1190
- if (BUILD.slotRelocation && vnodeData.name) {
1191
- slotName = vnodeData.name;
1192
- }
1193
- if (BUILD.vdomClass) {
1194
- const classData = vnodeData.className || vnodeData.class;
1195
- if (classData) {
1196
- vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
1197
- }
1198
- }
1199
- }
1200
- if (BUILD.isDev && vNodeChildren.some(isHost)) {
1201
- consoleDevError(`The <Host> must be the single root component. Make sure:
1202
- - You are NOT using hostData() and <Host> in the same component.
1203
- - <Host> is used once, and it's the single root component of the render() function.`);
1204
- }
1205
- if (BUILD.vdomFunctional && typeof nodeName === "function") {
1206
- return nodeName(
1207
- vnodeData === null ? {} : vnodeData,
1208
- vNodeChildren,
1209
- vdomFnUtils
1210
- );
1211
- }
1212
- const vnode = newVNode(nodeName, null);
1213
- vnode.$attrs$ = vnodeData;
1214
- if (vNodeChildren.length > 0) {
1215
- vnode.$children$ = vNodeChildren;
1216
- }
1217
- if (BUILD.vdomKey) {
1218
- vnode.$key$ = key;
1219
- }
1220
- if (BUILD.slotRelocation) {
1221
- vnode.$name$ = slotName;
1222
- }
1223
- return vnode;
1224
- };
1225
- var newVNode = (tag, text) => {
1226
- const vnode = {
1227
- $flags$: 0,
1228
- $tag$: tag,
1229
- // Normalize undefined to null to prevent rendering "undefined" as text
1230
- $text$: text != null ? text : null,
1231
- $elm$: null,
1232
- $children$: null
1233
- };
1234
- if (BUILD.vdomAttribute) {
1235
- vnode.$attrs$ = null;
1236
- }
1237
- if (BUILD.vdomKey) {
1238
- vnode.$key$ = null;
1239
- }
1240
- if (BUILD.slotRelocation) {
1241
- vnode.$name$ = null;
1242
- }
1243
- return vnode;
1244
- };
1245
- var Host = {};
1246
- var isHost = (node) => node && node.$tag$ === Host;
1247
- var vdomFnUtils = {
1248
- forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
1249
- map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
1250
- };
1251
- var convertToPublic = (node) => ({
1252
- vattrs: node.$attrs$,
1253
- vchildren: node.$children$,
1254
- vkey: node.$key$,
1255
- vname: node.$name$,
1256
- vtag: node.$tag$,
1257
- vtext: node.$text$
1258
- });
1259
- var convertToPrivate = (node) => {
1260
- if (typeof node.vtag === "function") {
1261
- const vnodeData = { ...node.vattrs };
1262
- if (node.vkey) {
1263
- vnodeData.key = node.vkey;
1264
- }
1265
- if (node.vname) {
1266
- vnodeData.name = node.vname;
1267
- }
1268
- return h(node.vtag, vnodeData, ...node.vchildren || []);
1269
- }
1270
- const vnode = newVNode(node.vtag, node.vtext);
1271
- vnode.$attrs$ = node.vattrs;
1272
- vnode.$children$ = node.vchildren;
1273
- vnode.$key$ = node.vkey;
1274
- vnode.$name$ = node.vname;
1275
- return vnode;
1276
- };
1277
- var validateInputProperties = (inputElm) => {
1278
- const props = Object.keys(inputElm);
1279
- const value = props.indexOf("value");
1280
- if (value === -1) {
1281
- return;
1282
- }
1283
- const typeIndex = props.indexOf("type");
1284
- const minIndex = props.indexOf("min");
1285
- const maxIndex = props.indexOf("max");
1286
- const stepIndex = props.indexOf("step");
1287
- if (value < typeIndex || value < minIndex || value < maxIndex || value < stepIndex) {
1288
- consoleDevWarn(`The "value" prop of <input> should be set after "min", "max", "type" and "step"`);
1289
- }
1290
- };
1291
-
1292
- // src/runtime/client-hydrate.ts
1293
- var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
1294
- var _a, _b, _c, _d;
1295
- const endHydrate = createTime("hydrateClient", tagName);
1296
- const shadowRoot = hostElm.shadowRoot;
1297
- const childRenderNodes = [];
1298
- const slotNodes = [];
1299
- const slottedNodes = [];
1300
- const shadowRootNodes = BUILD.shadowDom && shadowRoot ? [] : null;
1301
- const vnode = newVNode(tagName, null);
1302
- vnode.$elm$ = hostElm;
1303
- let scopeId2;
1304
- if (BUILD.scoped) {
1305
- const cmpMeta = hostRef.$cmpMeta$;
1306
- if (cmpMeta && cmpMeta.$flags$ & 10 /* needsScopedEncapsulation */ && hostElm["s-sc"]) {
1307
- scopeId2 = hostElm["s-sc"];
1308
- hostElm.classList.add(scopeId2 + "-h");
1309
- } else if (hostElm["s-sc"]) {
1310
- delete hostElm["s-sc"];
1311
- }
1312
- }
1313
- if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
1314
- initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
1315
- }
1316
- hostElm[HYDRATE_ID] = hostId;
1317
- hostElm.removeAttribute(HYDRATE_ID);
1318
- hostRef.$vnode$ = clientHydrate(
1319
- vnode,
1320
- childRenderNodes,
1321
- slotNodes,
1322
- shadowRootNodes,
1323
- hostElm,
1324
- hostElm,
1325
- hostId,
1326
- slottedNodes
1327
- );
1328
- let crIndex = 0;
1329
- const crLength = childRenderNodes.length;
1330
- let childRenderNode;
1331
- for (crIndex; crIndex < crLength; crIndex++) {
1332
- childRenderNode = childRenderNodes[crIndex];
1333
- const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
1334
- const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
1335
- const node = childRenderNode.$elm$;
1336
- if (!shadowRoot) {
1337
- node["s-hn"] = transformTag(tagName).toUpperCase();
1338
- if (childRenderNode.$tag$ === "slot") {
1339
- node["s-cr"] = hostElm["s-cr"];
1340
- }
1341
- } else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
1342
- const cmpMeta = getHostRef(childRenderNode.$elm$);
1343
- if (cmpMeta) {
1344
- const scopeId3 = getScopeId(
1345
- cmpMeta.$cmpMeta$,
1346
- BUILD.mode ? childRenderNode.$elm$.getAttribute("s-mode") : void 0
1347
- );
1348
- const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
1349
- if (styleSheet) {
1350
- shadowRootNodes.unshift(styleSheet.cloneNode(true));
1351
- }
1352
- }
1353
- }
1354
- if (childRenderNode.$tag$ === "slot") {
1355
- childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
1356
- if (childRenderNode.$children$) {
1357
- childRenderNode.$flags$ |= 2 /* isSlotFallback */;
1358
- if (!childRenderNode.$elm$.childNodes.length) {
1359
- childRenderNode.$children$.forEach((c) => {
1360
- childRenderNode.$elm$.appendChild(c.$elm$);
1361
- });
1362
- }
1363
- } else {
1364
- childRenderNode.$flags$ |= 1 /* isSlotReference */;
1365
- }
1366
- }
1367
- if (orgLocationNode && orgLocationNode.isConnected) {
1368
- if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
1369
- orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
1370
- }
1371
- orgLocationNode.parentNode.removeChild(orgLocationNode);
1372
- if (!shadowRoot) {
1373
- node["s-oo"] = parseInt(childRenderNode.$nodeId$);
1374
- }
1375
- }
1376
- if (orgLocationNode && !orgLocationNode["s-id"]) {
1377
- plt.$orgLocNodes$.delete(orgLocationId);
1378
- }
1379
- }
1380
- const hosts = [];
1381
- const snLen = slottedNodes.length;
1382
- let snIndex = 0;
1383
- let slotGroup;
1384
- let snGroupIdx;
1385
- let snGroupLen;
1386
- let slottedItem;
1387
- let currentPos = 0;
1388
- for (snIndex; snIndex < snLen; snIndex++) {
1389
- slotGroup = slottedNodes[snIndex];
1390
- if (!slotGroup || !slotGroup.length) continue;
1391
- snGroupLen = slotGroup.length;
1392
- snGroupIdx = 0;
1393
- for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
1394
- slottedItem = slotGroup[snGroupIdx];
1395
- if (!hosts[slottedItem.hostId]) {
1396
- hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
1397
- }
1398
- if (!hosts[slottedItem.hostId]) continue;
1399
- const hostEle = hosts[slottedItem.hostId];
1400
- if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
1401
- hostEle.insertBefore(slottedItem.node, (_c = (_b = slotGroup[snGroupIdx - 1]) == null ? void 0 : _b.node) == null ? void 0 : _c.nextSibling);
1402
- }
1403
- if (!hostEle.shadowRoot || !shadowRoot) {
1404
- if (!slottedItem.slot["s-cr"]) {
1405
- slottedItem.slot["s-cr"] = hostEle["s-cr"];
1406
- if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
1407
- slottedItem.slot["s-cr"] = hostEle;
1408
- } else {
1409
- slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
1410
- }
1411
- }
1412
- addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"] || currentPos);
1413
- if (((_d = slottedItem.node.parentElement) == null ? void 0 : _d.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
1414
- slottedItem.node.removeAttribute("slot");
1415
- }
1416
- if (BUILD.experimentalSlotFixes) {
1417
- patchSlottedNode(slottedItem.node);
1418
- }
1419
- }
1420
- currentPos = (slottedItem.node["s-oo"] || currentPos) + 1;
1421
- }
1422
- }
1423
- if (BUILD.scoped && scopeId2 && slotNodes.length) {
1424
- slotNodes.forEach((slot) => {
1425
- slot.$elm$.parentElement.classList.add(scopeId2 + "-s");
1426
- });
1427
- }
1428
- if (BUILD.shadowDom && shadowRoot && !shadowRoot.childNodes.length) {
1429
- let rnIdex = 0;
1430
- const rnLen = shadowRootNodes.length;
1431
- if (rnLen) {
1432
- for (rnIdex; rnIdex < rnLen; rnIdex++) {
1433
- const node = shadowRootNodes[rnIdex];
1434
- if (node) {
1435
- shadowRoot.appendChild(node);
1436
- }
1437
- }
1438
- Array.from(hostElm.childNodes).forEach((node) => {
1439
- if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
1440
- if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
1441
- node.removeAttribute("hidden");
1442
- } else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue) {
1443
- node.parentNode.removeChild(node);
1444
- }
1445
- }
1446
- });
1447
- }
1448
- }
1449
- hostRef.$hostElement$ = hostElm;
1450
- endHydrate();
1451
- };
1452
- var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
1453
- let childNodeType;
1454
- let childIdSplt;
1455
- let childVNode;
1456
- let i2;
1457
- const scopeId2 = hostElm["s-sc"];
1458
- if (node.nodeType === 1 /* ElementNode */) {
1459
- childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
1460
- if (childNodeType) {
1461
- childIdSplt = childNodeType.split(".");
1462
- if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
1463
- childVNode = createSimpleVNode({
1464
- $flags$: 0,
1465
- $hostId$: childIdSplt[0],
1466
- $nodeId$: childIdSplt[1],
1467
- $depth$: childIdSplt[2],
1468
- $index$: childIdSplt[3],
1469
- $tag$: node.tagName.toLowerCase(),
1470
- $elm$: node,
1471
- // If we don't add the initial classes to the VNode, the first `vdom-render.ts` patch
1472
- // won't try to reconcile them. Classes set on the node will be blown away.
1473
- $attrs$: { class: node.className || "" }
1474
- });
1475
- childRenderNodes.push(childVNode);
1476
- node.removeAttribute(HYDRATE_CHILD_ID);
1477
- if (!parentVNode.$children$) {
1478
- parentVNode.$children$ = [];
1479
- }
1480
- if (BUILD.scoped && scopeId2 && childIdSplt[0] === hostId) {
1481
- node["s-si"] = scopeId2;
1482
- childVNode.$attrs$.class += " " + scopeId2;
1483
- }
1484
- const slotName = childVNode.$elm$.getAttribute("s-sn");
1485
- if (typeof slotName === "string") {
1486
- if (childVNode.$tag$ === "slot-fb") {
1487
- addSlot(
1488
- slotName,
1489
- childIdSplt[2],
1490
- childVNode,
1491
- node,
1492
- parentVNode,
1493
- childRenderNodes,
1494
- slotNodes,
1495
- shadowRootNodes,
1496
- slottedNodes
1497
- );
1498
- if (BUILD.scoped && scopeId2) {
1499
- node.classList.add(scopeId2);
1500
- }
1501
- }
1502
- childVNode.$elm$["s-sn"] = slotName;
1503
- childVNode.$elm$.removeAttribute("s-sn");
1504
- }
1505
- if (childVNode.$index$ !== void 0) {
1506
- parentVNode.$children$[childVNode.$index$] = childVNode;
1507
- }
1508
- parentVNode = childVNode;
1509
- if (shadowRootNodes && childVNode.$depth$ === "0") {
1510
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1511
- }
1512
- }
1513
- }
1514
- if (node.shadowRoot) {
1515
- for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
1516
- clientHydrate(
1517
- parentVNode,
1518
- childRenderNodes,
1519
- slotNodes,
1520
- shadowRootNodes,
1521
- hostElm,
1522
- node.shadowRoot.childNodes[i2],
1523
- hostId,
1524
- slottedNodes
1525
- );
1526
- }
1527
- }
1528
- const nonShadowNodes = node.__childNodes || node.childNodes;
1529
- for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
1530
- clientHydrate(
1531
- parentVNode,
1532
- childRenderNodes,
1533
- slotNodes,
1534
- shadowRootNodes,
1535
- hostElm,
1536
- nonShadowNodes[i2],
1537
- hostId,
1538
- slottedNodes
1539
- );
1540
- }
1541
- } else if (node.nodeType === 8 /* CommentNode */) {
1542
- childIdSplt = node.nodeValue.split(".");
1543
- if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
1544
- childNodeType = childIdSplt[0];
1545
- childVNode = createSimpleVNode({
1546
- $hostId$: childIdSplt[1],
1547
- $nodeId$: childIdSplt[2],
1548
- $depth$: childIdSplt[3],
1549
- $index$: childIdSplt[4] || "0",
1550
- $elm$: node,
1551
- $attrs$: null,
1552
- $children$: null,
1553
- $key$: null,
1554
- $name$: null,
1555
- $tag$: null,
1556
- $text$: null
1557
- });
1558
- if (childNodeType === TEXT_NODE_ID) {
1559
- childVNode.$elm$ = findCorrespondingNode(node, 3 /* TextNode */);
1560
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
1561
- childVNode.$text$ = childVNode.$elm$.textContent;
1562
- childRenderNodes.push(childVNode);
1563
- node.remove();
1564
- if (hostId === childVNode.$hostId$) {
1565
- if (!parentVNode.$children$) {
1566
- parentVNode.$children$ = [];
1567
- }
1568
- parentVNode.$children$[childVNode.$index$] = childVNode;
1569
- }
1570
- if (shadowRootNodes && childVNode.$depth$ === "0") {
1571
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1572
- }
1573
- }
1574
- } else if (childNodeType === COMMENT_NODE_ID) {
1575
- childVNode.$elm$ = findCorrespondingNode(node, 8 /* CommentNode */);
1576
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
1577
- childRenderNodes.push(childVNode);
1578
- node.remove();
1579
- }
1580
- } else if (childVNode.$hostId$ === hostId) {
1581
- if (childNodeType === SLOT_NODE_ID) {
1582
- const slotName = node["s-sn"] = childIdSplt[5] || "";
1583
- addSlot(
1584
- slotName,
1585
- childIdSplt[2],
1586
- childVNode,
1587
- node,
1588
- parentVNode,
1589
- childRenderNodes,
1590
- slotNodes,
1591
- shadowRootNodes,
1592
- slottedNodes
1593
- );
1594
- } else if (childNodeType === CONTENT_REF_ID) {
1595
- if (BUILD.shadowDom && shadowRootNodes) {
1596
- node.remove();
1597
- } else if (BUILD.slotRelocation) {
1598
- hostElm["s-cr"] = node;
1599
- node["s-cn"] = true;
1600
- }
1601
- }
1602
- }
1603
- }
1604
- } else if (parentVNode && parentVNode.$tag$ === "style") {
1605
- const vnode = newVNode(null, node.textContent);
1606
- vnode.$elm$ = node;
1607
- vnode.$index$ = "0";
1608
- parentVNode.$children$ = [vnode];
1609
- }
1610
- return parentVNode;
1611
- };
1612
- var initializeDocumentHydrate = (node, orgLocNodes) => {
1613
- if (node.nodeType === 1 /* ElementNode */) {
1614
- const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
1615
- if (componentId) {
1616
- orgLocNodes.set(componentId, node);
1617
- }
1618
- let i2 = 0;
1619
- if (node.shadowRoot) {
1620
- for (; i2 < node.shadowRoot.childNodes.length; i2++) {
1621
- initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
1622
- }
1623
- }
1624
- const nonShadowNodes = node.__childNodes || node.childNodes;
1625
- for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
1626
- initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
1627
- }
1628
- } else if (node.nodeType === 8 /* CommentNode */) {
1629
- const childIdSplt = node.nodeValue.split(".");
1630
- if (childIdSplt[0] === ORG_LOCATION_ID) {
1631
- orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
1632
- node.nodeValue = "";
1633
- node["s-en"] = childIdSplt[3];
1634
- }
1635
- }
1636
- };
1637
- var createSimpleVNode = (vnode) => {
1638
- const defaultVNode = {
1639
- $flags$: 0,
1640
- $hostId$: null,
1641
- $nodeId$: null,
1642
- $depth$: null,
1643
- $index$: "0",
1644
- $elm$: null,
1645
- $attrs$: null,
1646
- $children$: null,
1647
- $key$: null,
1648
- $name$: null,
1649
- $tag$: null,
1650
- $text$: null
1651
- };
1652
- return { ...defaultVNode, ...vnode };
1653
- };
1654
- function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
1655
- node["s-sr"] = true;
1656
- childVNode.$name$ = slotName || null;
1657
- childVNode.$tag$ = "slot";
1658
- const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
1659
- if (BUILD.shadowDom && shadowRootNodes && win.document) {
1660
- const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
1661
- if (childVNode.$name$) {
1662
- childVNode.$elm$.setAttribute("name", slotName);
1663
- }
1664
- if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
1665
- internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
1666
- } else {
1667
- internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
1668
- }
1669
- addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
1670
- node.remove();
1671
- if (childVNode.$depth$ === "0") {
1672
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1673
- }
1674
- } else {
1675
- const slot = childVNode.$elm$;
1676
- const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
1677
- addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
1678
- patchSlotNode(node);
1679
- if (shouldMove) {
1680
- parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1681
- }
1682
- }
1683
- childRenderNodes.push(childVNode);
1684
- slotNodes.push(childVNode);
1685
- if (!parentVNode.$children$) {
1686
- parentVNode.$children$ = [];
1687
- }
1688
- parentVNode.$children$[childVNode.$index$] = childVNode;
1689
- }
1690
- var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1691
- var _a, _b;
1692
- let slottedNode = slotNode.nextSibling;
1693
- slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1694
- if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
1695
- do {
1696
- 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 */))) {
1697
- slottedNode["s-sn"] = slotName;
1698
- slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1699
- }
1700
- slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
1701
- } while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
1702
- };
1703
- var findCorrespondingNode = (node, type) => {
1704
- let sibling = node;
1705
- do {
1706
- sibling = sibling.nextSibling;
1707
- } while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
1708
- return sibling;
1709
- };
1710
-
1711
- // src/utils/regular-expression.ts
1712
- var escapeRegExpSpecialCharacters = (text) => {
1713
- return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1714
- };
1715
-
1716
- // src/utils/shadow-css.ts
1717
- /**
1718
- * @license
1719
- * Copyright Google Inc. All Rights Reserved.
1720
- *
1721
- * Use of this source code is governed by an MIT-style license that can be
1722
- * found in the LICENSE file at https://angular.io/license
1723
- *
1724
- * This file is a port of shadowCSS from `webcomponents.js` to TypeScript.
1725
- * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
1726
- * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
1727
- */
1728
- var safeSelector = (selector) => {
1729
- const placeholders = [];
1730
- let index = 0;
1731
- selector = selector.replace(/(\[\s*part~=\s*("[^"]*"|'[^']*')\s*\])/g, (_, keep) => {
1732
- const replaceBy = `__part-${index}__`;
1733
- placeholders.push(keep);
1734
- index++;
1735
- return replaceBy;
1736
- });
1737
- selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
1738
- const replaceBy = `__ph-${index}__`;
1739
- placeholders.push(keep);
1740
- index++;
1741
- return replaceBy;
1742
- });
1743
- const content = selector.replace(/(:nth-[-\w]+)(\([^)]+\))/g, (_, pseudo, exp) => {
1744
- const replaceBy = `__ph-${index}__`;
1745
- placeholders.push(exp);
1746
- index++;
1747
- return pseudo + replaceBy;
1748
- });
1749
- const ss = {
1750
- content,
1751
- placeholders
1752
- };
1753
- return ss;
1754
- };
1755
- var restoreSafeSelector = (placeholders, content) => {
1756
- content = content.replace(/__part-(\d+)__/g, (_, index) => placeholders[+index]);
1757
- return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
1758
- };
1759
- var _polyfillHost = "-shadowcsshost";
1760
- var _polyfillSlotted = "-shadowcssslotted";
1761
- var _polyfillHostContext = "-shadowcsscontext";
1762
- var _parenSuffix = ")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";
1763
- var _cssColonHostRe = new RegExp("(" + _polyfillHost + _parenSuffix, "gim");
1764
- var _cssColonHostContextRe = new RegExp("(" + _polyfillHostContext + _parenSuffix, "gim");
1765
- var _cssColonSlottedRe = new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim");
1766
- var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
1767
- var _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
1768
- var _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
1769
- var _safePartRe = /__part-(\d+)__/g;
1770
- var _selectorReSuffix = "([>\\s~+[.,{:][\\s\\S]*)?$";
1771
- var _polyfillHostRe = /-shadowcsshost/gim;
1772
- var createSupportsRuleRe = (selector) => {
1773
- const safeSelector2 = escapeRegExpSpecialCharacters(selector);
1774
- return new RegExp(
1775
- // First capture group: match any context before the selector that's not inside @supports selector()
1776
- // Using negative lookahead to avoid matching inside @supports selector(...) condition
1777
- `(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
1778
- "g"
1779
- );
1780
- };
1781
- var _commentRe = /\/\*\s*[\s\S]*?\*\//g;
1782
- var stripComments = (input) => {
1783
- return input.replace(_commentRe, "");
1784
- };
1785
- var _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;
1786
- var extractCommentsWithHash = (input) => {
1787
- return input.match(_commentWithHashRe) || [];
1788
- };
1789
- var _ruleRe = /(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;
1790
- var _curlyRe = /([{}])/g;
1791
- var _selectorPartsRe = /(^.*?[^\\])??((:+)(.*)|$)/;
1792
- var OPEN_CURLY = "{";
1793
- var CLOSE_CURLY = "}";
1794
- var BLOCK_PLACEHOLDER = "%BLOCK%";
1795
- var processRules = (input, ruleCallback) => {
1796
- const inputWithEscapedBlocks = escapeBlocks(input);
1797
- let nextBlockIndex = 0;
1798
- return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {
1799
- const selector = m[2];
1800
- let content = "";
1801
- let suffix = m[4];
1802
- let contentPrefix = "";
1803
- if (suffix && suffix.startsWith("{" + BLOCK_PLACEHOLDER)) {
1804
- content = inputWithEscapedBlocks.blocks[nextBlockIndex++];
1805
- suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);
1806
- contentPrefix = "{";
1807
- }
1808
- const cssRule = {
1809
- selector,
1810
- content
1811
- };
1812
- const rule = ruleCallback(cssRule);
1813
- return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;
1814
- });
1815
- };
1816
- var escapeBlocks = (input) => {
1817
- const inputParts = input.split(_curlyRe);
1818
- const resultParts = [];
1819
- const escapedBlocks = [];
1820
- let bracketCount = 0;
1821
- let currentBlockParts = [];
1822
- for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {
1823
- const part = inputParts[partIndex];
1824
- if (part === CLOSE_CURLY) {
1825
- bracketCount--;
1826
- }
1827
- if (bracketCount > 0) {
1828
- currentBlockParts.push(part);
1829
- } else {
1830
- if (currentBlockParts.length > 0) {
1831
- escapedBlocks.push(currentBlockParts.join(""));
1832
- resultParts.push(BLOCK_PLACEHOLDER);
1833
- currentBlockParts = [];
1834
- }
1835
- resultParts.push(part);
1836
- }
1837
- if (part === OPEN_CURLY) {
1838
- bracketCount++;
1839
- }
1840
- }
1841
- if (currentBlockParts.length > 0) {
1842
- escapedBlocks.push(currentBlockParts.join(""));
1843
- resultParts.push(BLOCK_PLACEHOLDER);
1844
- }
1845
- const strEscapedBlocks = {
1846
- escapedString: resultParts.join(""),
1847
- blocks: escapedBlocks
1848
- };
1849
- return strEscapedBlocks;
1850
- };
1851
- var insertPolyfillHostInCssText = (cssText) => {
1852
- const supportsBlocks = [];
1853
- cssText = cssText.replace(/@supports\s+selector\s*\(\s*([^)]*)\s*\)/g, (_, selectorContent) => {
1854
- const placeholder = `__supports_${supportsBlocks.length}__`;
1855
- supportsBlocks.push(selectorContent);
1856
- return `@supports selector(${placeholder})`;
1857
- });
1858
- const _colonSlottedRe = createSupportsRuleRe("::slotted");
1859
- const _colonHostRe = createSupportsRuleRe(":host");
1860
- const _colonHostContextRe = createSupportsRuleRe(":host-context");
1861
- cssText = cssText.replace(_colonHostContextRe, `$1${_polyfillHostContext}`).replace(_colonHostRe, `$1${_polyfillHost}`).replace(_colonSlottedRe, `$1${_polyfillSlotted}`);
1862
- supportsBlocks.forEach((originalSelector, index) => {
1863
- cssText = cssText.replace(`__supports_${index}__`, originalSelector);
1864
- });
1865
- return cssText;
1866
- };
1867
- var convertColonRule = (cssText, regExp, partReplacer) => {
1868
- return cssText.replace(regExp, (...m) => {
1869
- if (m[2]) {
1870
- const parts = m[2].split(",");
1871
- const r = [];
1872
- for (let i2 = 0; i2 < parts.length; i2++) {
1873
- const p = parts[i2].trim();
1874
- if (!p) break;
1875
- r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));
1876
- }
1877
- return r.join(",");
1878
- } else {
1879
- return _polyfillHostNoCombinator + m[3];
1880
- }
1881
- });
1882
- };
1883
- var colonHostPartReplacer = (host, part, suffix) => {
1884
- return host + part.replace(_polyfillHost, "") + suffix;
1885
- };
1886
- var convertColonHost = (cssText) => {
1887
- return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);
1888
- };
1889
- var colonHostContextPartReplacer = (host, part, suffix) => {
1890
- if (part.indexOf(_polyfillHost) > -1) {
1891
- return colonHostPartReplacer(host, part, suffix);
1892
- } else {
1893
- return host + part + suffix + ", " + part + " " + host + suffix;
1894
- }
1895
- };
1896
- var convertColonSlotted = (cssText, slotScopeId) => {
1897
- const slotClass = "." + slotScopeId + " > ";
1898
- const selectors = [];
1899
- cssText = cssText.replace(_cssColonSlottedRe, (...m) => {
1900
- if (m[2]) {
1901
- const compound = m[2].trim();
1902
- const suffix = m[3];
1903
- const slottedSelector = slotClass + compound + suffix;
1904
- let prefixSelector = "";
1905
- for (let i2 = m[4] - 1; i2 >= 0; i2--) {
1906
- const char = m[5][i2];
1907
- if (char === "}" || char === ",") {
1908
- break;
1909
- }
1910
- prefixSelector = char + prefixSelector;
1911
- }
1912
- const orgSelector = (prefixSelector + slottedSelector).trim();
1913
- const addedSelector = `${prefixSelector.trimEnd()}${slottedSelector.trim()}`.trim();
1914
- if (orgSelector !== addedSelector) {
1915
- const updatedSelector = `${addedSelector}, ${orgSelector}`;
1916
- selectors.push({
1917
- orgSelector,
1918
- updatedSelector
1919
- });
1920
- }
1921
- return slottedSelector;
1922
- } else {
1923
- return _polyfillHostNoCombinator + m[3];
1924
- }
1925
- });
1926
- return {
1927
- selectors,
1928
- cssText
1929
- };
1930
- };
1931
- var convertColonHostContext = (cssText) => {
1932
- return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);
1933
- };
1934
- var convertShadowDOMSelectors = (cssText) => {
1935
- return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, " "), cssText);
1936
- };
1937
- var makeScopeMatcher = (scopeSelector2) => {
1938
- const lre = /\[/g;
1939
- const rre = /\]/g;
1940
- scopeSelector2 = scopeSelector2.replace(lre, "\\[").replace(rre, "\\]");
1941
- return new RegExp("^(" + scopeSelector2 + ")" + _selectorReSuffix, "m");
1942
- };
1943
- var selectorNeedsScoping = (selector, scopeSelector2) => {
1944
- const re = makeScopeMatcher(scopeSelector2);
1945
- return !re.test(selector);
1946
- };
1947
- var injectScopingSelector = (selector, scopingSelector) => {
1948
- return selector.replace(_selectorPartsRe, (_, before = "", _colonGroup, colon = "", after = "") => {
1949
- return before + scopingSelector + colon + after;
1950
- });
1951
- };
1952
- var applySimpleSelectorScope = (selector, scopeSelector2, hostSelector) => {
1953
- _polyfillHostRe.lastIndex = 0;
1954
- if (_polyfillHostRe.test(selector)) {
1955
- const replaceBy = `.${hostSelector}`;
1956
- return selector.replace(_polyfillHostNoCombinatorRe, (_, selector2) => injectScopingSelector(selector2, replaceBy)).replace(_polyfillHostRe, replaceBy + " ");
1957
- }
1958
- return scopeSelector2 + " " + selector;
1959
- };
1960
- var applyStrictSelectorScope = (selector, scopeSelector2, hostSelector) => {
1961
- const isRe = /\[is=([^\]]*)\]/g;
1962
- scopeSelector2 = scopeSelector2.replace(isRe, (_, ...parts) => parts[0]);
1963
- const className = "." + scopeSelector2;
1964
- const _scopeSelectorPart = (p) => {
1965
- let scopedP = p.trim();
1966
- if (!scopedP) {
1967
- return "";
1968
- }
1969
- if (p.indexOf(_polyfillHostNoCombinator) > -1) {
1970
- scopedP = applySimpleSelectorScope(p, scopeSelector2, hostSelector);
1971
- } else {
1972
- const t = p.replace(_polyfillHostRe, "");
1973
- if (t.length > 0) {
1974
- scopedP = injectScopingSelector(t, className);
1975
- }
1976
- }
1977
- return scopedP;
1978
- };
1979
- const safeContent = safeSelector(selector);
1980
- selector = safeContent.content;
1981
- let scopedSelector = "";
1982
- let startIndex = 0;
1983
- let res;
1984
- const sep = /( |>|\+|~(?!=))(?=(?:[^()]*\([^()]*\))*[^()]*$)\s*/g;
1985
- const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
1986
- let shouldScope = !hasHost;
1987
- while ((res = sep.exec(selector)) !== null) {
1988
- const separator = res[1];
1989
- const part2 = selector.slice(startIndex, res.index).trim();
1990
- shouldScope = shouldScope || part2.indexOf(_polyfillHostNoCombinator) > -1;
1991
- const scopedPart = shouldScope ? _scopeSelectorPart(part2) : part2;
1992
- scopedSelector += `${scopedPart} ${separator} `;
1993
- startIndex = sep.lastIndex;
1994
- }
1995
- const part = selector.substring(startIndex);
1996
- shouldScope = !part.match(_safePartRe) && (shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1);
1997
- scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
1998
- return restoreSafeSelector(safeContent.placeholders, scopedSelector);
1999
- };
2000
- var scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {
2001
- return selector.split(",").map((shallowPart) => {
2002
- if (slotSelector && shallowPart.indexOf("." + slotSelector) > -1) {
2003
- return shallowPart.trim();
2004
- }
2005
- if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {
2006
- return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();
2007
- } else {
2008
- return shallowPart.trim();
2009
- }
2010
- }).join(", ");
2011
- };
2012
- var scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
2013
- return processRules(cssText, (rule) => {
2014
- let selector = rule.selector;
2015
- let content = rule.content;
2016
- if (rule.selector[0] !== "@") {
2017
- selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);
2018
- } else if (rule.selector.startsWith("@media") || rule.selector.startsWith("@supports") || rule.selector.startsWith("@page") || rule.selector.startsWith("@document")) {
2019
- content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector);
2020
- }
2021
- const cssRule = {
2022
- selector: selector.replace(/\s{2,}/g, " ").trim(),
2023
- content
2024
- };
2025
- return cssRule;
2026
- });
2027
- };
2028
- var scopeCssText = (cssText, scopeId2, hostScopeId, slotScopeId, commentOriginalSelector) => {
2029
- cssText = insertPolyfillHostInCssText(cssText);
2030
- cssText = convertColonHost(cssText);
2031
- cssText = convertColonHostContext(cssText);
2032
- const slotted = convertColonSlotted(cssText, slotScopeId);
2033
- cssText = slotted.cssText;
2034
- cssText = convertShadowDOMSelectors(cssText);
2035
- if (scopeId2) {
2036
- cssText = scopeSelectors(cssText, scopeId2, hostScopeId, slotScopeId, commentOriginalSelector);
2037
- }
2038
- cssText = replaceShadowCssHost(cssText, hostScopeId);
2039
- cssText = cssText.replace(/>\s*\*\s+([^{, ]+)/gm, " $1 ");
2040
- return {
2041
- cssText: cssText.trim(),
2042
- // We need to replace the shadow CSS host string in each of these selectors since we created
2043
- // them prior to the replacement happening in the components CSS text.
2044
- slottedSelectors: slotted.selectors.map((ref) => ({
2045
- orgSelector: replaceShadowCssHost(ref.orgSelector, hostScopeId),
2046
- updatedSelector: replaceShadowCssHost(ref.updatedSelector, hostScopeId)
2047
- }))
2048
- };
2049
- };
2050
- var replaceShadowCssHost = (cssText, hostScopeId) => {
2051
- return cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
2052
- };
2053
- var expandPartSelectors = (cssText) => {
2054
- const partSelectorRe = /([^\s,{][^,{]*?)::part\(\s*([^)]+?)\s*\)((?:[:.][^,{]*)*)/g;
2055
- return processRules(cssText, (rule) => {
2056
- if (rule.selector[0] === "@") {
2057
- return rule;
2058
- }
2059
- const selectors = rule.selector.split(",").map((sel) => {
2060
- const out = [sel.trim()];
2061
- let m;
2062
- while ((m = partSelectorRe.exec(sel)) !== null) {
2063
- const before = m[1].trimEnd();
2064
- const partNames = m[2].trim().split(/\s+/);
2065
- const after = m[3] || "";
2066
- const partAttr = partNames.flatMap((p) => {
2067
- if (!rule.selector.includes(`[part~="${p}"]`)) {
2068
- return [`[part~="${p}"]`];
2069
- }
2070
- return [];
2071
- }).join("");
2072
- const expanded = `${before} ${partAttr}${after}`;
2073
- if (!!partAttr && expanded !== sel.trim()) {
2074
- out.push(expanded);
2075
- }
2076
- }
2077
- return out.join(", ");
2078
- });
2079
- rule.selector = selectors.join(", ");
2080
- return rule;
2081
- });
2082
- };
2083
- var scopeCss = (cssText, scopeId2, commentOriginalSelector) => {
2084
- const hostScopeId = scopeId2 + "-h";
2085
- const slotScopeId = scopeId2 + "-s";
2086
- const commentsWithHash = extractCommentsWithHash(cssText);
2087
- cssText = stripComments(cssText);
2088
- const orgSelectors = [];
2089
- if (commentOriginalSelector) {
2090
- const processCommentedSelector = (rule) => {
2091
- const placeholder = `/*!@___${orgSelectors.length}___*/`;
2092
- const comment = `/*!@${rule.selector}*/`;
2093
- orgSelectors.push({ placeholder, comment });
2094
- rule.selector = placeholder + rule.selector;
2095
- return rule;
2096
- };
2097
- cssText = processRules(cssText, (rule) => {
2098
- if (rule.selector[0] !== "@") {
2099
- return processCommentedSelector(rule);
2100
- } else if (rule.selector.startsWith("@media") || rule.selector.startsWith("@supports") || rule.selector.startsWith("@page") || rule.selector.startsWith("@document")) {
2101
- rule.content = processRules(rule.content, processCommentedSelector);
2102
- return rule;
2103
- }
2104
- return rule;
2105
- });
2106
- }
2107
- const scoped = scopeCssText(cssText, scopeId2, hostScopeId, slotScopeId, commentOriginalSelector);
2108
- cssText = [scoped.cssText, ...commentsWithHash].join("\n");
2109
- if (commentOriginalSelector) {
2110
- orgSelectors.forEach(({ placeholder, comment }) => {
2111
- cssText = cssText.replace(placeholder, comment);
2112
- });
2113
- }
2114
- scoped.slottedSelectors.forEach((slottedSelector) => {
2115
- const regex = new RegExp(escapeRegExpSpecialCharacters(slottedSelector.orgSelector) + "(?=\\s*[,{]|$)", "g");
2116
- cssText = cssText.replace(regex, slottedSelector.updatedSelector);
2117
- });
2118
- cssText = expandPartSelectors(cssText);
2119
- return cssText;
2120
- };
2121
-
2122
- // src/runtime/mode.ts
2123
- var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
2124
- var setMode = (handler) => modeResolutionChain.push(handler);
2125
- var getMode = (ref) => {
2126
- var _a;
2127
- return (_a = getHostRef(ref)) == null ? void 0 : _a.$modeName$;
2128
- };
2129
-
2130
- // src/runtime/normalize-watchers.ts
2131
- var normalizeWatchers = (raw) => {
2132
- if (!raw) return void 0;
2133
- const keys = Object.keys(raw);
2134
- if (keys.length === 0) return void 0;
2135
- let hasLegacy = false;
2136
- for (const propName of keys) {
2137
- if (hasLegacy) break;
2138
- for (const h2 of raw[propName]) {
2139
- if (typeof h2 === "string") {
2140
- hasLegacy = true;
2141
- break;
2142
- }
2143
- }
2144
- }
2145
- if (!hasLegacy) return raw;
2146
- const out = {};
2147
- for (const propName of keys) {
2148
- out[propName] = raw[propName].map(
2149
- (h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
2150
- );
2151
- }
2152
- return out;
2153
- };
2154
-
2155
- // src/utils/remote-value.ts
2156
- var RemoteValue = class _RemoteValue {
2157
- /**
2158
- * Deserializes a LocalValue serialized object back to its original JavaScript representation
2159
- *
2160
- * @param serialized The serialized LocalValue object
2161
- * @returns The original JavaScript value/object
2162
- */
2163
- static fromLocalValue(serialized) {
2164
- const type = serialized[TYPE_CONSTANT];
2165
- const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
2166
- switch (type) {
2167
- case "string" /* String */:
2168
- return value;
2169
- case "boolean" /* Boolean */:
2170
- return value;
2171
- case "bigint" /* BigInt */:
2172
- return BigInt(value);
2173
- case "undefined" /* Undefined */:
2174
- return void 0;
2175
- case "null" /* Null */:
2176
- return null;
2177
- case "number" /* Number */:
2178
- if (value === "NaN") return NaN;
2179
- if (value === "-0") return -0;
2180
- if (value === "Infinity") return Infinity;
2181
- if (value === "-Infinity") return -Infinity;
2182
- return value;
2183
- case "array" /* Array */:
2184
- return value.map((item) => _RemoteValue.fromLocalValue(item));
2185
- case "date" /* Date */:
2186
- return new Date(value);
2187
- case "map" /* Map */:
2188
- const map = /* @__PURE__ */ new Map();
2189
- for (const [key, val] of value) {
2190
- const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
2191
- const deserializedValue = _RemoteValue.fromLocalValue(val);
2192
- map.set(deserializedKey, deserializedValue);
2193
- }
2194
- return map;
2195
- case "object" /* Object */:
2196
- const obj = {};
2197
- for (const [key, val] of value) {
2198
- obj[key] = _RemoteValue.fromLocalValue(val);
2199
- }
2200
- return obj;
2201
- case "regexp" /* RegularExpression */:
2202
- const { pattern, flags } = value;
2203
- return new RegExp(pattern, flags);
2204
- case "set" /* Set */:
2205
- const set = /* @__PURE__ */ new Set();
2206
- for (const item of value) {
2207
- set.add(_RemoteValue.fromLocalValue(item));
2208
- }
2209
- return set;
2210
- case "symbol" /* Symbol */:
2211
- return Symbol(value);
2212
- default:
2213
- throw new Error(`Unsupported type: ${type}`);
2214
- }
2215
- }
2216
- /**
2217
- * Utility method to deserialize multiple LocalValues at once
2218
- *
2219
- * @param serializedValues Array of serialized LocalValue objects
2220
- * @returns Array of deserialized JavaScript values
2221
- */
2222
- static fromLocalValueArray(serializedValues) {
2223
- return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
2224
- }
2225
- /**
2226
- * Verifies if the given object matches the structure of a serialized LocalValue
2227
- *
2228
- * @param obj Object to verify
2229
- * @returns boolean indicating if the object has LocalValue structure
2230
- */
2231
- static isLocalValueObject(obj) {
2232
- if (typeof obj !== "object" || obj === null) {
2233
- return false;
2234
- }
2235
- if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
2236
- return false;
2237
- }
2238
- const type = obj[TYPE_CONSTANT];
2239
- const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
2240
- if (!hasTypeProperty) {
2241
- return false;
2242
- }
2243
- if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
2244
- return obj.hasOwnProperty(VALUE_CONSTANT);
2245
- }
2246
- return true;
2247
- }
2248
- };
2249
-
2250
- // src/utils/serialize.ts
2251
- function decodeBase64Unicode(base64) {
2252
- const binary = atob(base64);
2253
- const bytes = new Uint8Array(binary.length);
2254
- for (let i2 = 0; i2 < binary.length; i2++) {
2255
- bytes[i2] = binary.charCodeAt(i2);
2256
- }
2257
- return new TextDecoder().decode(bytes);
2258
- }
2259
- function deserializeProperty(value) {
2260
- if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
2261
- return value;
2262
- }
2263
- return RemoteValue.fromLocalValue(JSON.parse(decodeBase64Unicode(value.slice(SERIALIZED_PREFIX.length))));
2264
- }
2265
-
2266
- // src/runtime/parse-property-value.ts
2267
- var parsePropertyValue = (propValue, propType, isFormAssociated) => {
2268
- if ((BUILD.hydrateClientSide || BUILD.hydrateServerSide) && typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
2269
- propValue = deserializeProperty(propValue);
2270
- return propValue;
2271
- }
2272
- if (propValue != null && !isComplexType(propValue)) {
2273
- if (BUILD.propBoolean && propType & 4 /* Boolean */) {
2274
- if (BUILD.formAssociated && isFormAssociated && typeof propValue === "string") {
2275
- return propValue === "" || !!propValue;
2276
- } else {
2277
- return propValue === "false" ? false : propValue === "" || !!propValue;
2278
- }
2279
- }
2280
- if (BUILD.propNumber && propType & 2 /* Number */) {
2281
- return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
2282
- }
2283
- if (BUILD.propString && propType & 1 /* String */) {
2284
- return String(propValue);
2285
- }
2286
- return propValue;
2287
- }
2288
- return propValue;
2289
- };
2290
- var getElement = (ref) => {
2291
- var _a;
2292
- return BUILD.lazyLoad ? (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ : ref;
2293
- };
2294
-
2295
- // src/runtime/event-emitter.ts
2296
- var createEvent = (ref, name, flags) => {
2297
- const elm = getElement(ref);
2298
- return {
2299
- emit: (detail) => {
2300
- if (BUILD.isDev && !elm.isConnected) {
2301
- consoleDevWarn(`The "${name}" event was emitted, but the dispatcher node is no longer connected to the dom.`);
2302
- }
2303
- return emitEvent(elm, name, {
2304
- bubbles: !!(flags & 4 /* Bubbles */),
2305
- composed: !!(flags & 2 /* Composed */),
2306
- cancelable: !!(flags & 1 /* Cancellable */),
2307
- detail
2308
- });
2309
- }
2310
- };
2311
- };
2312
- var emitEvent = (elm, name, opts) => {
2313
- const ev = plt.ce(name, opts);
2314
- elm.dispatchEvent(ev);
2315
- return ev;
2316
- };
2317
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
2318
- if (oldValue === newValue) {
2319
- return;
2320
- }
2321
- let isProp = isMemberInElement(elm, memberName);
2322
- let ln = memberName.toLowerCase();
2323
- if (BUILD.vdomClass && memberName === "class") {
2324
- const classList = elm.classList;
2325
- const oldClasses = parseClassList(oldValue);
2326
- let newClasses = parseClassList(newValue);
2327
- if (BUILD.hydrateClientSide && (elm["s-si"] || elm["s-sc"]) && initialRender) {
2328
- const scopeId2 = elm["s-sc"] || elm["s-si"];
2329
- newClasses.push(scopeId2);
2330
- oldClasses.forEach((c) => {
2331
- if (c.startsWith(scopeId2)) newClasses.push(c);
2332
- });
2333
- newClasses = [...new Set(newClasses)].filter((c) => c);
2334
- classList.add(...newClasses);
2335
- } else {
2336
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
2337
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
2338
- }
2339
- } else if (BUILD.vdomStyle && memberName === "style") {
2340
- if (BUILD.updatable) {
2341
- for (const prop in oldValue) {
2342
- if (!newValue || newValue[prop] == null) {
2343
- if (!BUILD.hydrateServerSide && prop.includes("-")) {
2344
- elm.style.removeProperty(prop);
2345
- } else {
2346
- elm.style[prop] = "";
2347
- }
2348
- }
2349
- }
2350
- }
2351
- for (const prop in newValue) {
2352
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
2353
- if (!BUILD.hydrateServerSide && prop.includes("-")) {
2354
- elm.style.setProperty(prop, newValue[prop]);
2355
- } else {
2356
- elm.style[prop] = newValue[prop];
2357
- }
2358
- }
2359
- }
2360
- } else if (BUILD.vdomKey && memberName === "key") {
2361
- } else if (BUILD.vdomRef && memberName === "ref") {
2362
- if (newValue) {
2363
- queueRefAttachment(newValue, elm);
2364
- }
2365
- } else if (BUILD.vdomListener && (BUILD.lazyLoad ? !isProp : !elm.__lookupSetter__(memberName)) && memberName[0] === "o" && memberName[1] === "n") {
2366
- if (memberName[2] === "-") {
2367
- memberName = memberName.slice(3);
2368
- } else if (isMemberInElement(win, ln)) {
2369
- memberName = ln.slice(2);
2370
- } else {
2371
- memberName = ln[2] + memberName.slice(3);
2372
- }
2373
- if (oldValue || newValue) {
2374
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
2375
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
2376
- if (oldValue) {
2377
- plt.rel(elm, memberName, oldValue, capture);
2378
- }
2379
- if (newValue) {
2380
- plt.ael(elm, memberName, newValue, capture);
2381
- }
2382
- }
2383
- } else if (BUILD.vdomPropOrAttr && memberName[0] === "a" && memberName.startsWith("attr:")) {
2384
- const propName = memberName.slice(5);
2385
- let attrName;
2386
- if (BUILD.member) {
2387
- const hostRef = getHostRef(elm);
2388
- if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
2389
- const memberMeta = hostRef.$cmpMeta$.$members$[propName];
2390
- if (memberMeta && memberMeta[1]) {
2391
- attrName = memberMeta[1];
2392
- }
2393
- }
2394
- }
2395
- if (!attrName) {
2396
- attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
2397
- }
2398
- if (newValue == null || newValue === false) {
2399
- if (newValue !== false || elm.getAttribute(attrName) === "") {
2400
- elm.removeAttribute(attrName);
2401
- }
2402
- } else {
2403
- elm.setAttribute(attrName, newValue === true ? "" : newValue);
2404
- }
2405
- return;
2406
- } else if (BUILD.vdomPropOrAttr && memberName[0] === "p" && memberName.startsWith("prop:")) {
2407
- const propName = memberName.slice(5);
2408
- try {
2409
- elm[propName] = newValue;
2410
- } catch (e) {
2411
- }
2412
- return;
2413
- } else if (BUILD.vdomPropOrAttr) {
2414
- const isComplex = isComplexType(newValue);
2415
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
2416
- try {
2417
- if (!elm.tagName.includes("-")) {
2418
- const n = newValue == null ? "" : newValue;
2419
- if (memberName === "list") {
2420
- isProp = false;
2421
- } else if (oldValue == null || elm[memberName] !== n) {
2422
- if (typeof elm.__lookupSetter__(memberName) === "function") {
2423
- elm[memberName] = n;
2424
- } else {
2425
- elm.setAttribute(memberName, n);
2426
- }
2427
- }
2428
- } else if (elm[memberName] !== newValue) {
2429
- elm[memberName] = newValue;
2430
- }
2431
- } catch (e) {
2432
- }
2433
- }
2434
- let xlink = false;
2435
- if (BUILD.vdomXlink) {
2436
- if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
2437
- memberName = ln;
2438
- xlink = true;
2439
- }
2440
- }
2441
- if (newValue == null || newValue === false) {
2442
- if (newValue !== false || elm.getAttribute(memberName) === "") {
2443
- if (BUILD.vdomXlink && xlink) {
2444
- elm.removeAttributeNS(XLINK_NS, memberName);
2445
- } else {
2446
- elm.removeAttribute(memberName);
2447
- }
2448
- }
2449
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
2450
- newValue = newValue === true ? "" : newValue;
2451
- if (BUILD.vdomXlink && xlink) {
2452
- elm.setAttributeNS(XLINK_NS, memberName, newValue);
2453
- } else {
2454
- elm.setAttribute(memberName, newValue);
2455
- }
2456
- }
2457
- }
2458
- };
2459
- var parseClassListRegex = /\s/;
2460
- var parseClassList = (value) => {
2461
- if (typeof value === "object" && value && "baseVal" in value) {
2462
- value = value.baseVal;
2463
- }
2464
- if (!value || typeof value !== "string") {
2465
- return [];
2466
- }
2467
- return value.split(parseClassListRegex);
2468
- };
2469
- var CAPTURE_EVENT_SUFFIX = "Capture";
2470
- var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
2471
-
2472
- // src/runtime/vdom/update-element.ts
2473
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
2474
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
2475
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
2476
- const newVnodeAttrs = newVnode.$attrs$ || {};
2477
- if (BUILD.updatable) {
2478
- for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
2479
- if (!(memberName in newVnodeAttrs)) {
2480
- setAccessor(
2481
- elm,
2482
- memberName,
2483
- oldVnodeAttrs[memberName],
2484
- void 0,
2485
- isSvgMode2,
2486
- newVnode.$flags$,
2487
- isInitialRender
2488
- );
2489
- }
2490
- }
2491
- }
2492
- for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
2493
- setAccessor(
2494
- elm,
2495
- memberName,
2496
- oldVnodeAttrs[memberName],
2497
- newVnodeAttrs[memberName],
2498
- isSvgMode2,
2499
- newVnode.$flags$,
2500
- isInitialRender
2501
- );
2502
- }
2503
- };
2504
- function sortedAttrNames(attrNames) {
2505
- return attrNames.includes("ref") ? (
2506
- // we need to sort these to ensure that `'ref'` is the last attr
2507
- [...attrNames.filter((attr) => attr !== "ref"), "ref"]
2508
- ) : (
2509
- // no need to sort, return the original array
2510
- attrNames
2511
- );
2512
- }
2513
-
2514
- // src/runtime/vdom/vdom-render.ts
2515
- var scopeId;
2516
- var contentRef;
2517
- var hostTagName;
2518
- var useNativeShadowDom = false;
2519
- var checkSlotFallbackVisibility = false;
2520
- var checkSlotRelocate = false;
2521
- var isSvgMode = false;
2522
- var refCallbacksToRemove = [];
2523
- var refCallbacksToAttach = [];
2524
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
2525
- var _a;
2526
- const newVNode2 = newParentVNode.$children$[childIndex];
2527
- let i2 = 0;
2528
- let elm;
2529
- let childNode;
2530
- let oldVNode;
2531
- if (BUILD.slotRelocation && !useNativeShadowDom) {
2532
- checkSlotRelocate = true;
2533
- if (newVNode2.$tag$ === "slot") {
2534
- newVNode2.$flags$ |= newVNode2.$children$ ? (
2535
- // slot element has fallback content
2536
- // still create an element that "mocks" the slot element
2537
- 2 /* isSlotFallback */
2538
- ) : (
2539
- // slot element does not have fallback content
2540
- // create an html comment we'll use to always reference
2541
- // where actual slot content should sit next to
2542
- 1 /* isSlotReference */
2543
- );
2544
- }
2545
- }
2546
- if (BUILD.isDev && newVNode2.$elm$) {
2547
- consoleDevError(
2548
- `The JSX ${newVNode2.$text$ !== null ? `"${newVNode2.$text$}" text` : `"${newVNode2.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`
2549
- );
2550
- }
2551
- if (BUILD.vdomText && newVNode2.$text$ != null) {
2552
- elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
2553
- } else if (BUILD.slotRelocation && newVNode2.$flags$ & 1 /* isSlotReference */) {
2554
- elm = newVNode2.$elm$ = BUILD.isDebug || BUILD.hydrateServerSide ? slotReferenceDebugNode(newVNode2) : win.document.createTextNode("");
2555
- if (BUILD.vdomAttribute) {
2556
- updateElement(null, newVNode2, isSvgMode);
2557
- }
2558
- } else {
2559
- if (BUILD.svg && !isSvgMode) {
2560
- isSvgMode = newVNode2.$tag$ === "svg";
2561
- }
2562
- if (!win.document) {
2563
- throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
2564
- }
2565
- elm = newVNode2.$elm$ = BUILD.svg ? win.document.createElementNS(
2566
- isSvgMode ? SVG_NS : HTML_NS,
2567
- !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
2568
- ) : win.document.createElement(
2569
- !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
2570
- );
2571
- if (BUILD.svg && isSvgMode && newVNode2.$tag$ === "foreignObject") {
2572
- isSvgMode = false;
2573
- }
2574
- if (BUILD.vdomAttribute) {
2575
- updateElement(null, newVNode2, isSvgMode);
2576
- }
2577
- if ((BUILD.scoped || BUILD.hydrateServerSide && 128 /* shadowNeedsScopedCss */) && isDef(scopeId) && elm["s-si"] !== scopeId) {
2578
- elm.classList.add(elm["s-si"] = scopeId);
2579
- }
2580
- if (newVNode2.$children$) {
2581
- const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
2582
- for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
2583
- childNode = createElm(oldParentVNode, newVNode2, i2);
2584
- if (childNode) {
2585
- appendTarget.appendChild(childNode);
2586
- }
2587
- }
2588
- }
2589
- if (BUILD.svg) {
2590
- if (newVNode2.$tag$ === "svg") {
2591
- isSvgMode = false;
2592
- } else if (elm.tagName === "foreignObject") {
2593
- isSvgMode = true;
2594
- }
2595
- }
2596
- }
2597
- elm["s-hn"] = hostTagName;
2598
- if (BUILD.slotRelocation) {
2599
- if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
2600
- elm["s-sr"] = true;
2601
- elm["s-cr"] = contentRef;
2602
- elm["s-sn"] = newVNode2.$name$ || "";
2603
- elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
2604
- patchSlotNode(elm);
2605
- oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
2606
- if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
2607
- relocateToHostRoot(oldParentVNode.$elm$);
2608
- }
2609
- if (BUILD.scoped || BUILD.hydrateServerSide && 128 /* shadowNeedsScopedCss */) {
2610
- addRemoveSlotScopedClass(contentRef, elm, newParentVNode.$elm$, oldParentVNode == null ? void 0 : oldParentVNode.$elm$);
2611
- }
2612
- }
2613
- }
2614
- return elm;
2615
- };
2616
- var relocateToHostRoot = (parentElm) => {
2617
- plt.$flags$ |= 1 /* isTmpDisconnected */;
2618
- const host = parentElm.closest(hostTagName.toLowerCase());
2619
- if (host != null) {
2620
- const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
2621
- (ref) => ref["s-cr"]
2622
- );
2623
- const childNodeArray = Array.from(
2624
- parentElm.__childNodes || parentElm.childNodes
2625
- );
2626
- for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
2627
- if (childNode["s-sh"] != null) {
2628
- insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
2629
- childNode["s-sh"] = void 0;
2630
- checkSlotRelocate = true;
2631
- }
2632
- }
2633
- }
2634
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
2635
- };
2636
- var putBackInOriginalLocation = (parentElm, recursive) => {
2637
- plt.$flags$ |= 1 /* isTmpDisconnected */;
2638
- const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
2639
- if (parentElm["s-sr"]) {
2640
- let node = parentElm;
2641
- while (node = node.nextSibling) {
2642
- if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
2643
- oldSlotChildNodes.push(node);
2644
- }
2645
- }
2646
- }
2647
- for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
2648
- const childNode = oldSlotChildNodes[i2];
2649
- if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
2650
- insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
2651
- childNode["s-ol"].remove();
2652
- childNode["s-ol"] = void 0;
2653
- childNode["s-sh"] = void 0;
2654
- checkSlotRelocate = true;
2655
- }
2656
- if (recursive) {
2657
- putBackInOriginalLocation(childNode, recursive);
2658
- }
2659
- }
2660
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
2661
- };
2662
- var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
2663
- let containerElm = BUILD.slotRelocation && parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
2664
- let childNode;
2665
- if (BUILD.shadowDom && containerElm.shadowRoot && containerElm.tagName === hostTagName) {
2666
- containerElm = containerElm.shadowRoot;
2667
- }
2668
- if (parentVNode.$tag$ === "template") {
2669
- containerElm = containerElm.content;
2670
- }
2671
- for (; startIdx <= endIdx; ++startIdx) {
2672
- if (vnodes[startIdx]) {
2673
- childNode = createElm(null, parentVNode, startIdx);
2674
- if (childNode) {
2675
- vnodes[startIdx].$elm$ = childNode;
2676
- insertBefore(containerElm, childNode, BUILD.slotRelocation ? referenceNode(before) : before);
2677
- }
2678
- }
2679
- }
2680
- };
2681
- var removeVnodes = (vnodes, startIdx, endIdx) => {
2682
- for (let index = startIdx; index <= endIdx; ++index) {
2683
- const vnode = vnodes[index];
2684
- if (vnode) {
2685
- const elm = vnode.$elm$;
2686
- nullifyVNodeRefs(vnode);
2687
- if (elm) {
2688
- if (BUILD.slotRelocation) {
2689
- checkSlotFallbackVisibility = true;
2690
- if (elm["s-ol"]) {
2691
- elm["s-ol"].remove();
2692
- } else {
2693
- putBackInOriginalLocation(elm, true);
2694
- }
2695
- }
2696
- elm.remove();
2697
- }
2698
- }
2699
- }
2700
- };
2701
- var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
2702
- let oldStartIdx = 0;
2703
- let newStartIdx = 0;
2704
- let idxInOld = 0;
2705
- let i2 = 0;
2706
- let oldEndIdx = oldCh.length - 1;
2707
- let oldStartVnode = oldCh[0];
2708
- let oldEndVnode = oldCh[oldEndIdx];
2709
- let newEndIdx = newCh.length - 1;
2710
- let newStartVnode = newCh[0];
2711
- let newEndVnode = newCh[newEndIdx];
2712
- let node;
2713
- let elmToMove;
2714
- const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
2715
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
2716
- if (oldStartVnode == null) {
2717
- oldStartVnode = oldCh[++oldStartIdx];
2718
- } else if (oldEndVnode == null) {
2719
- oldEndVnode = oldCh[--oldEndIdx];
2720
- } else if (newStartVnode == null) {
2721
- newStartVnode = newCh[++newStartIdx];
2722
- } else if (newEndVnode == null) {
2723
- newEndVnode = newCh[--newEndIdx];
2724
- } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
2725
- patch(oldStartVnode, newStartVnode, isInitialRender);
2726
- oldStartVnode = oldCh[++oldStartIdx];
2727
- newStartVnode = newCh[++newStartIdx];
2728
- } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
2729
- patch(oldEndVnode, newEndVnode, isInitialRender);
2730
- oldEndVnode = oldCh[--oldEndIdx];
2731
- newEndVnode = newCh[--newEndIdx];
2732
- } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
2733
- if (BUILD.slotRelocation && (oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
2734
- putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
2735
- }
2736
- patch(oldStartVnode, newEndVnode, isInitialRender);
2737
- insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
2738
- oldStartVnode = oldCh[++oldStartIdx];
2739
- newEndVnode = newCh[--newEndIdx];
2740
- } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
2741
- if (BUILD.slotRelocation && (oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
2742
- putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
2743
- }
2744
- patch(oldEndVnode, newStartVnode, isInitialRender);
2745
- insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
2746
- oldEndVnode = oldCh[--oldEndIdx];
2747
- newStartVnode = newCh[++newStartIdx];
2748
- } else {
2749
- idxInOld = -1;
2750
- if (BUILD.vdomKey) {
2751
- for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
2752
- if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
2753
- idxInOld = i2;
2754
- break;
2755
- }
2756
- }
2757
- }
2758
- if (BUILD.vdomKey && idxInOld >= 0) {
2759
- elmToMove = oldCh[idxInOld];
2760
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
2761
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
2762
- } else {
2763
- patch(elmToMove, newStartVnode, isInitialRender);
2764
- oldCh[idxInOld] = void 0;
2765
- node = elmToMove.$elm$;
2766
- }
2767
- newStartVnode = newCh[++newStartIdx];
2768
- } else {
2769
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
2770
- newStartVnode = newCh[++newStartIdx];
2771
- }
2772
- if (node) {
2773
- if (BUILD.slotRelocation) {
2774
- insertBefore(
2775
- referenceNode(oldStartVnode.$elm$).parentNode,
2776
- node,
2777
- referenceNode(oldStartVnode.$elm$)
2778
- );
2779
- } else {
2780
- insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
2781
- }
2782
- }
2783
- }
2784
- }
2785
- if (oldStartIdx > oldEndIdx) {
2786
- addVnodes(
2787
- parentElm,
2788
- newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
2789
- newVNode2,
2790
- newCh,
2791
- newStartIdx,
2792
- newEndIdx
2793
- );
2794
- } else if (BUILD.updatable && newStartIdx > newEndIdx) {
2795
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
2796
- }
2797
- };
2798
- var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
2799
- if (leftVNode.$tag$ === rightVNode.$tag$) {
2800
- if (BUILD.slotRelocation && leftVNode.$tag$ === "slot") {
2801
- return leftVNode.$name$ === rightVNode.$name$;
2802
- }
2803
- if (BUILD.vdomKey && !isInitialRender) {
2804
- return leftVNode.$key$ === rightVNode.$key$;
2805
- }
2806
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
2807
- leftVNode.$key$ = rightVNode.$key$;
2808
- }
2809
- return true;
2810
- }
2811
- return false;
2812
- };
2813
- var referenceNode = (node) => node && node["s-ol"] || node;
2814
- var patch = (oldVNode, newVNode2, isInitialRender = false) => {
2815
- const elm = newVNode2.$elm$ = oldVNode.$elm$;
2816
- const oldChildren = oldVNode.$children$;
2817
- const newChildren = newVNode2.$children$;
2818
- const tag = newVNode2.$tag$;
2819
- const text = newVNode2.$text$;
2820
- let defaultHolder;
2821
- if (!BUILD.vdomText || text == null) {
2822
- if (BUILD.svg) {
2823
- isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
2824
- }
2825
- if (BUILD.vdomAttribute || BUILD.reflect) {
2826
- if (BUILD.slot && tag === "slot" && !useNativeShadowDom) {
2827
- if (oldVNode.$name$ !== newVNode2.$name$) {
2828
- newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
2829
- relocateToHostRoot(newVNode2.$elm$.parentElement);
2830
- }
2831
- }
2832
- updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
2833
- }
2834
- if (BUILD.updatable && oldChildren !== null && newChildren !== null) {
2835
- updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
2836
- } else if (newChildren !== null) {
2837
- if (BUILD.updatable && BUILD.vdomText && oldVNode.$text$ !== null) {
2838
- elm.textContent = "";
2839
- }
2840
- addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
2841
- } else if (
2842
- // don't do this on initial render as it can cause non-hydrated content to be removed
2843
- !isInitialRender && BUILD.updatable && oldChildren !== null
2844
- ) {
2845
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
2846
- } else if (BUILD.hydrateClientSide && isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
2847
- newVNode2.$children$ = oldChildren;
2848
- }
2849
- if (BUILD.svg && isSvgMode && tag === "svg") {
2850
- isSvgMode = false;
2851
- }
2852
- } else if (BUILD.vdomText && BUILD.slotRelocation && (defaultHolder = elm["s-cr"])) {
2853
- defaultHolder.parentNode.textContent = text;
2854
- } else if (BUILD.vdomText && oldVNode.$text$ !== text) {
2855
- elm.data = text;
2856
- }
2857
- };
2858
- var relocateNodes = [];
2859
- var markSlotContentForRelocation = (elm) => {
2860
- let node;
2861
- let hostContentNodes;
2862
- let j;
2863
- const children = elm.__childNodes || elm.childNodes;
2864
- for (const childNode of children) {
2865
- if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
2866
- hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
2867
- const slotName = childNode["s-sn"];
2868
- for (j = hostContentNodes.length - 1; j >= 0; j--) {
2869
- node = hostContentNodes[j];
2870
- if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!node["s-sh"] || node["s-sh"] !== childNode["s-hn"])) {
2871
- if (isNodeLocatedInSlot(node, slotName)) {
2872
- let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
2873
- checkSlotFallbackVisibility = true;
2874
- node["s-sn"] = node["s-sn"] || slotName;
2875
- if (relocateNodeData) {
2876
- relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
2877
- relocateNodeData.$slotRefNode$ = childNode;
2878
- } else {
2879
- node["s-sh"] = childNode["s-hn"];
2880
- relocateNodes.push({
2881
- $slotRefNode$: childNode,
2882
- $nodeToRelocate$: node
2883
- });
2884
- }
2885
- if (node["s-sr"]) {
2886
- relocateNodes.map((relocateNode) => {
2887
- if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
2888
- relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
2889
- if (relocateNodeData && !relocateNode.$slotRefNode$) {
2890
- relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
2891
- }
2892
- }
2893
- });
2894
- }
2895
- } else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
2896
- relocateNodes.push({
2897
- $nodeToRelocate$: node
2898
- });
2899
- }
2900
- }
2901
- }
2902
- }
2903
- if (childNode.nodeType === 1 /* ElementNode */) {
2904
- markSlotContentForRelocation(childNode);
2905
- }
2906
- }
2907
- };
2908
- var nullifyVNodeRefs = (vNode) => {
2909
- if (BUILD.vdomRef) {
2910
- if (vNode.$attrs$ && vNode.$attrs$.ref) {
2911
- refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
2912
- }
2913
- vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
2914
- }
2915
- };
2916
- var queueRefAttachment = (refCallback, elm) => {
2917
- if (BUILD.vdomRef) {
2918
- refCallbacksToAttach.push(() => refCallback(elm));
2919
- }
2920
- };
2921
- var flushQueuedRefCallbacks = () => {
2922
- if (BUILD.vdomRef) {
2923
- refCallbacksToRemove.forEach((cb) => cb());
2924
- refCallbacksToRemove.length = 0;
2925
- refCallbacksToAttach.forEach((cb) => cb());
2926
- refCallbacksToAttach.length = 0;
2927
- }
2928
- };
2929
- var insertBefore = (parent, newNode, reference, isInitialLoad) => {
2930
- if (BUILD.slotRelocation) {
2931
- if (BUILD.scoped && typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) {
2932
- addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
2933
- } else if (typeof newNode["s-sn"] === "string") {
2934
- if (BUILD.experimentalSlotFixes && parent.getRootNode().nodeType !== 11 /* DOCUMENT_FRAGMENT_NODE */) {
2935
- patchParentNode(newNode);
2936
- }
2937
- parent.insertBefore(newNode, reference);
2938
- const { slotNode } = findSlotFromSlottedNode(newNode);
2939
- if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
2940
- return newNode;
2941
- }
2942
- }
2943
- if (parent.__insertBefore) {
2944
- return parent.__insertBefore(newNode, reference);
2945
- } else {
2946
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
2947
- }
2948
- };
2949
- function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
2950
- var _a, _b;
2951
- let scopeId2;
2952
- if (reference && typeof slotNode["s-sn"] === "string" && !!slotNode["s-sr"] && reference.parentNode && reference.parentNode["s-sc"] && (scopeId2 = slotNode["s-si"] || reference.parentNode["s-sc"])) {
2953
- const scopeName = slotNode["s-sn"];
2954
- const hostName = slotNode["s-hn"];
2955
- (_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + "-s");
2956
- if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + "-s"))) {
2957
- let child = (oldParent.__childNodes || oldParent.childNodes)[0];
2958
- let found = false;
2959
- while (child) {
2960
- if (child["s-sn"] !== scopeName && child["s-hn"] === hostName && !!child["s-sr"]) {
2961
- found = true;
2962
- break;
2963
- }
2964
- child = child.nextSibling;
2965
- }
2966
- if (!found) oldParent.classList.remove(scopeId2 + "-s");
2967
- }
2968
- }
2969
- }
2970
- var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
2971
- var _a, _b, _c, _d, _e;
2972
- const hostElm = hostRef.$hostElement$;
2973
- const cmpMeta = hostRef.$cmpMeta$;
2974
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
2975
- const isHostElement = isHost(renderFnResults);
2976
- const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
2977
- hostTagName = hostElm.tagName;
2978
- if (BUILD.isDev && Array.isArray(renderFnResults) && renderFnResults.some(isHost)) {
2979
- throw new Error(`The <Host> must be the single root component.
2980
- Looks like the render() function of "${hostTagName.toLowerCase()}" is returning an array that contains the <Host>.
2981
-
2982
- The render() function should look like this instead:
2983
-
2984
- render() {
2985
- // Do not return an array
2986
- return (
2987
- <Host>{content}</Host>
2988
- );
2989
- }
2990
- `);
2991
- }
2992
- if (BUILD.reflect && cmpMeta.$attrsToReflect$) {
2993
- rootVnode.$attrs$ = rootVnode.$attrs$ || {};
2994
- cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
2995
- if (BUILD.serializer && hostRef.$serializerValues$.has(propName)) {
2996
- rootVnode.$attrs$[attribute] = hostRef.$serializerValues$.get(propName);
2997
- } else {
2998
- rootVnode.$attrs$[attribute] = hostElm[propName];
2999
- }
3000
- });
3001
- }
3002
- if (isInitialLoad && rootVnode.$attrs$) {
3003
- for (const key of Object.keys(rootVnode.$attrs$)) {
3004
- if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
3005
- rootVnode.$attrs$[key] = hostElm[key];
3006
- }
3007
- }
3008
- }
3009
- rootVnode.$tag$ = null;
3010
- rootVnode.$flags$ |= 4 /* isHost */;
3011
- hostRef.$vnode$ = rootVnode;
3012
- rootVnode.$elm$ = oldVNode.$elm$ = BUILD.shadowDom ? hostElm.shadowRoot || hostElm : hostElm;
3013
- if (BUILD.scoped || BUILD.shadowDom) {
3014
- scopeId = hostElm["s-sc"];
3015
- }
3016
- useNativeShadowDom = supportsShadow && !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
3017
- if (BUILD.slotRelocation) {
3018
- contentRef = hostElm["s-cr"];
3019
- checkSlotFallbackVisibility = false;
3020
- }
3021
- patch(oldVNode, rootVnode, isInitialLoad);
3022
- if (BUILD.slotRelocation) {
3023
- plt.$flags$ |= 1 /* isTmpDisconnected */;
3024
- if (checkSlotRelocate) {
3025
- markSlotContentForRelocation(rootVnode.$elm$);
3026
- for (const relocateData of relocateNodes) {
3027
- const nodeToRelocate = relocateData.$nodeToRelocate$;
3028
- if (!nodeToRelocate["s-ol"] && win.document) {
3029
- const orgLocationNode = BUILD.isDebug || BUILD.hydrateServerSide ? originalLocationDebugNode(nodeToRelocate) : win.document.createTextNode("");
3030
- orgLocationNode["s-nr"] = nodeToRelocate;
3031
- insertBefore(
3032
- nodeToRelocate.parentNode,
3033
- nodeToRelocate["s-ol"] = orgLocationNode,
3034
- nodeToRelocate,
3035
- isInitialLoad
3036
- );
3037
- }
3038
- }
3039
- for (const relocateData of relocateNodes) {
3040
- const nodeToRelocate = relocateData.$nodeToRelocate$;
3041
- const slotRefNode = relocateData.$slotRefNode$;
3042
- if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {
3043
- nodeToRelocate["s-ih"] = (_a = nodeToRelocate.hidden) != null ? _a : false;
3044
- }
3045
- if (slotRefNode) {
3046
- const parentNodeRef = slotRefNode.parentNode;
3047
- let insertBeforeNode = slotRefNode.nextSibling;
3048
- if (!BUILD.hydrateServerSide && insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
3049
- let orgLocationNode = (_b = nodeToRelocate["s-ol"]) == null ? void 0 : _b.previousSibling;
3050
- while (orgLocationNode) {
3051
- let refNode = (_c = orgLocationNode["s-nr"]) != null ? _c : null;
3052
- if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
3053
- refNode = refNode.nextSibling;
3054
- while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
3055
- refNode = refNode == null ? void 0 : refNode.nextSibling;
3056
- }
3057
- if (!refNode || !refNode["s-nr"]) {
3058
- insertBeforeNode = refNode;
3059
- break;
3060
- }
3061
- }
3062
- orgLocationNode = orgLocationNode.previousSibling;
3063
- }
3064
- }
3065
- const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
3066
- const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
3067
- if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
3068
- if (nodeToRelocate !== insertBeforeNode) {
3069
- insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode, isInitialLoad);
3070
- if (nodeToRelocate.nodeType === 8 /* CommentNode */ && nodeToRelocate.nodeValue.startsWith("s-nt-")) {
3071
- const textNode = win.document.createTextNode(nodeToRelocate.nodeValue.replace(/^s-nt-/, ""));
3072
- textNode["s-hn"] = nodeToRelocate["s-hn"];
3073
- textNode["s-sn"] = nodeToRelocate["s-sn"];
3074
- textNode["s-sh"] = nodeToRelocate["s-sh"];
3075
- textNode["s-sr"] = nodeToRelocate["s-sr"];
3076
- textNode["s-ol"] = nodeToRelocate["s-ol"];
3077
- textNode["s-ol"]["s-nr"] = textNode;
3078
- insertBefore(nodeToRelocate.parentNode, textNode, nodeToRelocate, isInitialLoad);
3079
- nodeToRelocate.parentNode.removeChild(nodeToRelocate);
3080
- }
3081
- if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
3082
- nodeToRelocate.hidden = (_d = nodeToRelocate["s-ih"]) != null ? _d : false;
3083
- }
3084
- }
3085
- }
3086
- nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
3087
- } else if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
3088
- nodeToRelocate.hidden = true;
3089
- }
3090
- }
3091
- }
3092
- if (checkSlotFallbackVisibility) {
3093
- updateFallbackSlotVisibility(rootVnode.$elm$);
3094
- }
3095
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
3096
- relocateNodes.length = 0;
3097
- }
3098
- if (BUILD.slotRelocation && !useNativeShadowDom && !(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && hostElm["s-cr"]) {
3099
- const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
3100
- for (const childNode of children) {
3101
- if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
3102
- if (isInitialLoad && childNode["s-ih"] == null) {
3103
- childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
3104
- }
3105
- if (childNode.nodeType === 1 /* ElementNode */) {
3106
- childNode.hidden = true;
3107
- } else if (childNode.nodeType === 3 /* TextNode */ && !!childNode.nodeValue.trim()) {
3108
- const textCommentNode = win.document.createComment("s-nt-" + childNode.nodeValue);
3109
- textCommentNode["s-sn"] = childNode["s-sn"];
3110
- insertBefore(childNode.parentNode, textCommentNode, childNode, isInitialLoad);
3111
- childNode.parentNode.removeChild(childNode);
3112
- }
3113
- }
3114
- }
3115
- }
3116
- contentRef = void 0;
3117
- flushQueuedRefCallbacks();
3118
- };
3119
- var slotReferenceDebugNode = (slotVNode) => {
3120
- var _a;
3121
- return (_a = win.document) == null ? void 0 : _a.createComment(
3122
- `<slot${slotVNode.$name$ ? ' name="' + slotVNode.$name$ + '"' : ""}> (host=${hostTagName.toLowerCase()})`
3123
- );
3124
- };
3125
- var originalLocationDebugNode = (nodeToRelocate) => {
3126
- var _a;
3127
- return (_a = win.document) == null ? void 0 : _a.createComment(
3128
- `org-location for ` + (nodeToRelocate.localName ? `<${nodeToRelocate.localName}> (host=${nodeToRelocate["s-hn"]})` : `[${nodeToRelocate.textContent}]`)
3129
- );
3130
- };
3131
-
3132
- // src/runtime/update-component.ts
3133
- var attachToAncestor = (hostRef, ancestorComponent) => {
3134
- if (BUILD.asyncLoading && ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
3135
- const index = ancestorComponent["s-p"].push(
3136
- new Promise(
3137
- (r) => hostRef.$onRenderResolve$ = () => {
3138
- ancestorComponent["s-p"].splice(index - 1, 1);
3139
- r();
3140
- }
3141
- )
3142
- );
3143
- }
3144
- };
3145
- var scheduleUpdate = (hostRef, isInitialLoad) => {
3146
- if (BUILD.taskQueue && BUILD.updatable) {
3147
- hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
3148
- }
3149
- if (BUILD.asyncLoading && hostRef.$flags$ & 4 /* isWaitingForChildren */) {
3150
- hostRef.$flags$ |= 512 /* needsRerender */;
3151
- return;
3152
- }
3153
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
3154
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
3155
- if (isInitialLoad) {
3156
- queueMicrotask(() => {
3157
- dispatch();
3158
- });
3159
- return;
3160
- }
3161
- return BUILD.taskQueue ? writeTask(dispatch) : dispatch();
3162
- };
3163
- var dispatchHooks = (hostRef, isInitialLoad) => {
3164
- const elm = hostRef.$hostElement$;
3165
- const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
3166
- const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
3167
- if (!instance) {
3168
- throw new Error(
3169
- `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`
3170
- );
3171
- }
3172
- let maybePromise;
3173
- if (isInitialLoad) {
3174
- if (BUILD.lazyLoad) {
3175
- if (BUILD.slotRelocation && hostRef.$deferredConnectedCallback$) {
3176
- hostRef.$deferredConnectedCallback$ = false;
3177
- safeCall(instance, "connectedCallback", void 0, elm);
3178
- }
3179
- if (BUILD.hostListener) {
3180
- hostRef.$flags$ |= 256 /* isListenReady */;
3181
- if (hostRef.$queuedListeners$) {
3182
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
3183
- hostRef.$queuedListeners$ = void 0;
3184
- }
3185
- }
3186
- if (hostRef.$fetchedCbList$.length) {
3187
- hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
3188
- }
3189
- }
3190
- emitLifecycleEvent(elm, "componentWillLoad");
3191
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
3192
- } else {
3193
- emitLifecycleEvent(elm, "componentWillUpdate");
3194
- maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
3195
- }
3196
- emitLifecycleEvent(elm, "componentWillRender");
3197
- maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
3198
- endSchedule();
3199
- return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
3200
- };
3201
- var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
3202
- console.error(err);
3203
- fn();
3204
- }) : fn();
3205
- var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
3206
- var updateComponent = async (hostRef, instance, isInitialLoad) => {
3207
- var _a;
3208
- const elm = hostRef.$hostElement$;
3209
- const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
3210
- const rc = elm["s-rc"];
3211
- if (BUILD.style && isInitialLoad) {
3212
- attachStyles(hostRef);
3213
- }
3214
- const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
3215
- if (BUILD.isDev) {
3216
- hostRef.$flags$ |= 1024 /* devOnRender */;
3217
- }
3218
- if (BUILD.hydrateServerSide) {
3219
- await callRender(hostRef, instance, elm, isInitialLoad);
3220
- } else {
3221
- callRender(hostRef, instance, elm, isInitialLoad);
3222
- }
3223
- if (BUILD.isDev) {
3224
- hostRef.$renderCount$ = hostRef.$renderCount$ === void 0 ? 1 : hostRef.$renderCount$ + 1;
3225
- hostRef.$flags$ &= ~1024 /* devOnRender */;
3226
- }
3227
- if (BUILD.hydrateServerSide) {
3228
- try {
3229
- serverSideConnected(elm);
3230
- if (isInitialLoad) {
3231
- if (hostRef.$cmpMeta$.$flags$ & 1 /* shadowDomEncapsulation */) {
3232
- elm["s-en"] = "";
3233
- } else if (hostRef.$cmpMeta$.$flags$ & 2 /* scopedCssEncapsulation */) {
3234
- elm["s-en"] = "c";
3235
- }
3236
- }
3237
- } catch (e) {
3238
- consoleError(e, elm);
3239
- }
3240
- }
3241
- if (BUILD.asyncLoading && rc) {
3242
- rc.map((cb) => cb());
3243
- elm["s-rc"] = void 0;
3244
- }
3245
- endRender();
3246
- endUpdate();
3247
- if (BUILD.asyncLoading) {
3248
- const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
3249
- const postUpdate = () => postUpdateComponent(hostRef);
3250
- if (childrenPromises.length === 0) {
3251
- postUpdate();
3252
- } else {
3253
- Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
3254
- hostRef.$flags$ |= 4 /* isWaitingForChildren */;
3255
- childrenPromises.length = 0;
3256
- }
3257
- } else {
3258
- postUpdateComponent(hostRef);
3259
- }
3260
- };
3261
- var renderingRef = null;
3262
- var callRender = (hostRef, instance, elm, isInitialLoad) => {
3263
- const allRenderFn = BUILD.allRenderFn ? true : false;
3264
- const lazyLoad = BUILD.lazyLoad ? true : false;
3265
- const taskQueue = BUILD.taskQueue ? true : false;
3266
- const updatable = BUILD.updatable ? true : false;
3267
- try {
3268
- renderingRef = instance;
3269
- instance = allRenderFn ? instance.render() : instance.render && instance.render();
3270
- if (updatable && taskQueue) {
3271
- hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
3272
- }
3273
- if (updatable || lazyLoad) {
3274
- hostRef.$flags$ |= 2 /* hasRendered */;
3275
- }
3276
- if (BUILD.hasRenderFn || BUILD.reflect) {
3277
- if (BUILD.vdomRender || BUILD.reflect) {
3278
- if (BUILD.hydrateServerSide) {
3279
- return Promise.resolve(instance).then((value) => renderVdom(hostRef, value, isInitialLoad));
3280
- } else {
3281
- renderVdom(hostRef, instance, isInitialLoad);
3282
- }
3283
- } else {
3284
- const shadowRoot = elm.shadowRoot;
3285
- if (hostRef.$cmpMeta$.$flags$ & 1 /* shadowDomEncapsulation */) {
3286
- shadowRoot.textContent = instance;
3287
- } else {
3288
- elm.textContent = instance;
3289
- }
3290
- }
3291
- }
3292
- } catch (e) {
3293
- consoleError(e, hostRef.$hostElement$);
3294
- }
3295
- renderingRef = null;
3296
- return null;
3297
- };
3298
- var getRenderingRef = () => renderingRef;
3299
- var postUpdateComponent = (hostRef) => {
3300
- const tagName = hostRef.$cmpMeta$.$tagName$;
3301
- const elm = hostRef.$hostElement$;
3302
- const endPostUpdate = createTime("postUpdate", tagName);
3303
- const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
3304
- const ancestorComponent = hostRef.$ancestorComponent$;
3305
- if (BUILD.isDev) {
3306
- hostRef.$flags$ |= 1024 /* devOnRender */;
3307
- }
3308
- safeCall(instance, "componentDidRender", void 0, elm);
3309
- if (BUILD.isDev) {
3310
- hostRef.$flags$ &= ~1024 /* devOnRender */;
3311
- }
3312
- emitLifecycleEvent(elm, "componentDidRender");
3313
- if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
3314
- hostRef.$flags$ |= 64 /* hasLoadedComponent */;
3315
- if (BUILD.asyncLoading && BUILD.cssAnnotations) {
3316
- addHydratedFlag(elm);
3317
- }
3318
- if (BUILD.isDev) {
3319
- hostRef.$flags$ |= 2048 /* devOnDidLoad */;
3320
- }
3321
- safeCall(instance, "componentDidLoad", void 0, elm);
3322
- if (BUILD.isDev) {
3323
- hostRef.$flags$ &= ~2048 /* devOnDidLoad */;
3324
- }
3325
- emitLifecycleEvent(elm, "componentDidLoad");
3326
- endPostUpdate();
3327
- if (BUILD.asyncLoading) {
3328
- hostRef.$onReadyResolve$(elm);
3329
- if (!ancestorComponent) {
3330
- appDidLoad(tagName);
3331
- }
3332
- }
3333
- } else {
3334
- if (BUILD.isDev) {
3335
- hostRef.$flags$ |= 1024 /* devOnRender */;
3336
- }
3337
- safeCall(instance, "componentDidUpdate", void 0, elm);
3338
- if (BUILD.isDev) {
3339
- hostRef.$flags$ &= ~1024 /* devOnRender */;
3340
- }
3341
- emitLifecycleEvent(elm, "componentDidUpdate");
3342
- endPostUpdate();
3343
- }
3344
- if (BUILD.method && BUILD.lazyLoad) {
3345
- hostRef.$onInstanceResolve$(elm);
3346
- }
3347
- if (BUILD.asyncLoading) {
3348
- if (hostRef.$onRenderResolve$) {
3349
- hostRef.$onRenderResolve$();
3350
- hostRef.$onRenderResolve$ = void 0;
3351
- }
3352
- if (hostRef.$flags$ & 512 /* needsRerender */) {
3353
- nextTick(() => scheduleUpdate(hostRef, false));
3354
- }
3355
- hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
3356
- }
3357
- };
3358
- var forceUpdate = (ref) => {
3359
- var _a;
3360
- if (BUILD.updatable && (Build.isBrowser || Build.isTesting)) {
3361
- const hostRef = getHostRef(ref);
3362
- const isConnected = (_a = hostRef == null ? void 0 : hostRef.$hostElement$) == null ? void 0 : _a.isConnected;
3363
- if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
3364
- scheduleUpdate(hostRef, false);
3365
- }
3366
- return isConnected;
3367
- }
3368
- return false;
3369
- };
3370
- var appDidLoad = (who) => {
3371
- var _a;
3372
- if (BUILD.asyncQueue) {
3373
- plt.$flags$ |= 2 /* appLoaded */;
3374
- }
3375
- nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
3376
- if (BUILD.hydrateClientSide) {
3377
- if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
3378
- plt.$orgLocNodes$.clear();
3379
- }
3380
- }
3381
- if (BUILD.profile && performance.measure) {
3382
- performance.measure(`[Stencil] ${NAMESPACE} initial load (by ${who})`, "st:app:start");
3383
- }
3384
- };
3385
- var safeCall = (instance, method, arg, elm) => {
3386
- if (instance && instance[method]) {
3387
- try {
3388
- return instance[method](arg);
3389
- } catch (e) {
3390
- consoleError(e, elm);
3391
- }
3392
- }
3393
- return void 0;
3394
- };
3395
- var emitLifecycleEvent = (elm, lifecycleName) => {
3396
- if (BUILD.lifecycleDOMEvents) {
3397
- emitEvent(elm, "stencil_" + lifecycleName, {
3398
- bubbles: true,
3399
- composed: true,
3400
- detail: {
3401
- namespace: NAMESPACE
3402
- }
3403
- });
3404
- }
3405
- };
3406
- var addHydratedFlag = (elm) => {
3407
- var _a, _b;
3408
- return BUILD.hydratedClass ? elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") : BUILD.hydratedAttribute ? elm.setAttribute((_b = BUILD.hydratedSelectorName) != null ? _b : "hydrated", "") : void 0;
3409
- };
3410
- var serverSideConnected = (elm) => {
3411
- const children = elm.children;
3412
- if (children != null) {
3413
- for (let i2 = 0, ii = children.length; i2 < ii; i2++) {
3414
- const childElm = children[i2];
3415
- if (typeof childElm.connectedCallback === "function") {
3416
- childElm.connectedCallback();
3417
- }
3418
- serverSideConnected(childElm);
3419
- }
3420
- }
3421
- };
3422
-
3423
- // src/runtime/set-value.ts
3424
- var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
3425
- var setValue = (ref, propName, newVal, cmpMeta) => {
3426
- const hostRef = getHostRef(ref);
3427
- if (!hostRef) {
3428
- return;
3429
- }
3430
- if (BUILD.lazyLoad && !hostRef) {
3431
- throw new Error(
3432
- `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).`
3433
- );
3434
- }
3435
- if (BUILD.serializer && hostRef.$serializerValues$.has(propName) && hostRef.$serializerValues$.get(propName) === newVal) {
3436
- return;
3437
- }
3438
- const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : ref;
3439
- const oldVal = hostRef.$instanceValues$.get(propName);
3440
- const flags = hostRef.$flags$;
3441
- const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
3442
- newVal = parsePropertyValue(
3443
- newVal,
3444
- cmpMeta.$members$[propName][0],
3445
- BUILD.formAssociated && !!(cmpMeta.$flags$ & 64 /* formAssociated */)
3446
- );
3447
- const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
3448
- const didValueChange = newVal !== oldVal && !areBothNaN;
3449
- if ((!BUILD.lazyLoad || !(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
3450
- hostRef.$instanceValues$.set(propName, newVal);
3451
- if (BUILD.serializer && BUILD.reflect && cmpMeta.$attrsToReflect$) {
3452
- if (cmpMeta.$serializers$ && cmpMeta.$serializers$[propName]) {
3453
- const runSerializer = (inst) => {
3454
- let attrVal = newVal;
3455
- for (const serializer of cmpMeta.$serializers$[propName]) {
3456
- const [[methodName]] = Object.entries(serializer);
3457
- attrVal = inst[methodName](attrVal, propName);
3458
- }
3459
- hostRef.$serializerValues$.set(propName, attrVal);
3460
- };
3461
- if (instance) {
3462
- runSerializer(instance);
3463
- } else {
3464
- hostRef.$fetchedCbList$.push(() => {
3465
- runSerializer(hostRef.$lazyInstance$);
3466
- });
3467
- }
3468
- }
3469
- }
3470
- if (BUILD.isDev) {
3471
- if (hostRef.$flags$ & 1024 /* devOnRender */) {
3472
- consoleDevWarn(
3473
- `The state/prop "${propName}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,
3474
- "\nElement",
3475
- elm,
3476
- "\nNew value",
3477
- newVal,
3478
- "\nOld value",
3479
- oldVal
3480
- );
3481
- } else if (hostRef.$flags$ & 2048 /* devOnDidLoad */) {
3482
- consoleDevWarn(
3483
- `The state/prop "${propName}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,
3484
- "\nElement",
3485
- elm,
3486
- "\nNew value",
3487
- newVal,
3488
- "\nOld value",
3489
- oldVal
3490
- );
3491
- }
3492
- }
3493
- if (BUILD.propChangeCallback && cmpMeta.$watchers$) {
3494
- const watchMethods = cmpMeta.$watchers$[propName];
3495
- if (watchMethods) {
3496
- watchMethods.map((watcher) => {
3497
- try {
3498
- const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
3499
- if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
3500
- if (!instance) {
3501
- hostRef.$fetchedCbList$.push(() => {
3502
- hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
3503
- });
3504
- } else {
3505
- instance[watchMethodName](newVal, oldVal, propName);
3506
- }
3507
- }
3508
- } catch (e) {
3509
- consoleError(e, elm);
3510
- }
3511
- });
3512
- }
3513
- }
3514
- if (BUILD.updatable && flags & 2 /* hasRendered */) {
3515
- if (instance.componentShouldUpdate) {
3516
- const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
3517
- if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
3518
- return;
3519
- }
3520
- }
3521
- if (!(flags & 16 /* isQueuedForUpdate */)) {
3522
- scheduleUpdate(hostRef, false);
3523
- }
3524
- }
3525
- }
3526
- };
3527
-
3528
- // src/runtime/proxy-component.ts
3529
- var proxyComponent = (Cstr, cmpMeta, flags) => {
3530
- var _a, _b;
3531
- const prototype = Cstr.prototype;
3532
- if (BUILD.isTesting) {
3533
- if (prototype.__stencilAugmented) {
3534
- return;
3535
- }
3536
- prototype.__stencilAugmented = true;
3537
- }
3538
- if (BUILD.formAssociated && cmpMeta.$flags$ & 64 /* formAssociated */ && flags & 1 /* isElementConstructor */) {
3539
- FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((cbName) => {
3540
- const originalFormAssociatedCallback = prototype[cbName];
3541
- Object.defineProperty(prototype, cbName, {
3542
- value(...args) {
3543
- var _a2;
3544
- const hostRef = getHostRef(this);
3545
- const instance = BUILD.lazyLoad ? hostRef == null ? void 0 : hostRef.$lazyInstance$ : this;
3546
- if (!instance) {
3547
- (_a2 = hostRef == null ? void 0 : hostRef.$onReadyPromise$) == null ? void 0 : _a2.then((asyncInstance) => {
3548
- const cb = asyncInstance[cbName];
3549
- typeof cb === "function" && cb.call(asyncInstance, ...args);
3550
- });
3551
- } else {
3552
- const cb = BUILD.lazyLoad ? instance[cbName] : originalFormAssociatedCallback;
3553
- typeof cb === "function" && cb.call(instance, ...args);
3554
- }
3555
- }
3556
- });
3557
- });
3558
- }
3559
- if (BUILD.member && cmpMeta.$members$ || BUILD.propChangeCallback) {
3560
- if (BUILD.propChangeCallback) {
3561
- if (Cstr.watchers && !cmpMeta.$watchers$) {
3562
- cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
3563
- }
3564
- if (Cstr.deserializers && !cmpMeta.$deserializers$) {
3565
- cmpMeta.$deserializers$ = Cstr.deserializers;
3566
- }
3567
- if (Cstr.serializers && !cmpMeta.$serializers$) {
3568
- cmpMeta.$serializers$ = Cstr.serializers;
3569
- }
3570
- }
3571
- const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
3572
- members.map(([memberName, [memberFlags]]) => {
3573
- if ((BUILD.prop || BUILD.state) && (memberFlags & 31 /* Prop */ || (!BUILD.lazyLoad || flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
3574
- const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
3575
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
3576
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
3577
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
3578
- Object.defineProperty(prototype, memberName, {
3579
- get() {
3580
- if (BUILD.lazyLoad) {
3581
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
3582
- return getValue(this, memberName);
3583
- }
3584
- const ref = getHostRef(this);
3585
- const instance = ref ? ref.$lazyInstance$ : prototype;
3586
- if (!instance) return;
3587
- return instance[memberName];
3588
- }
3589
- if (!BUILD.lazyLoad) {
3590
- return origGetter ? origGetter.apply(this) : getValue(this, memberName);
3591
- }
3592
- },
3593
- configurable: true,
3594
- enumerable: true
3595
- });
3596
- }
3597
- Object.defineProperty(prototype, memberName, {
3598
- set(newValue) {
3599
- const ref = getHostRef(this);
3600
- if (!ref) {
3601
- return;
3602
- }
3603
- if (BUILD.isDev) {
3604
- if (
3605
- // we are proxying the instance (not element)
3606
- (flags & 1 /* isElementConstructor */) === 0 && // if the class has a setter, then the Element can update instance values, so ignore
3607
- (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0 && // the element is not constructing
3608
- (ref && ref.$flags$ & 8 /* isConstructingInstance */) === 0 && // the member is a prop
3609
- (memberFlags & 31 /* Prop */) !== 0 && // the member is not mutable
3610
- (memberFlags & 1024 /* Mutable */) === 0
3611
- ) {
3612
- consoleDevWarn(
3613
- `@Prop() "${memberName}" on <${cmpMeta.$tagName$}> is immutable but was modified from within the component.
3614
- More information: https://stenciljs.com/docs/properties#prop-mutability`
3615
- );
3616
- }
3617
- }
3618
- if (origSetter) {
3619
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
3620
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
3621
- newValue = ref.$instanceValues$.get(memberName);
3622
- }
3623
- origSetter.apply(this, [
3624
- parsePropertyValue(
3625
- newValue,
3626
- memberFlags,
3627
- BUILD.formAssociated && !!(cmpMeta.$flags$ & 64 /* formAssociated */)
3628
- )
3629
- ]);
3630
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
3631
- setValue(this, memberName, newValue, cmpMeta);
3632
- return;
3633
- }
3634
- if (!BUILD.lazyLoad) {
3635
- setValue(this, memberName, newValue, cmpMeta);
3636
- return;
3637
- }
3638
- if (BUILD.lazyLoad) {
3639
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
3640
- setValue(this, memberName, newValue, cmpMeta);
3641
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
3642
- ref.$fetchedCbList$.push(() => {
3643
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
3644
- ref.$lazyInstance$[memberName] = newValue;
3645
- }
3646
- });
3647
- }
3648
- return;
3649
- }
3650
- const setterSetVal = () => {
3651
- const currentValue = ref.$lazyInstance$[memberName];
3652
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
3653
- ref.$instanceValues$.set(memberName, currentValue);
3654
- }
3655
- ref.$lazyInstance$[memberName] = parsePropertyValue(
3656
- newValue,
3657
- memberFlags,
3658
- BUILD.formAssociated && !!(cmpMeta.$flags$ & 64 /* formAssociated */)
3659
- );
3660
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
3661
- };
3662
- if (ref.$lazyInstance$) {
3663
- setterSetVal();
3664
- } else {
3665
- ref.$fetchedCbList$.push(() => {
3666
- setterSetVal();
3667
- });
3668
- }
3669
- }
3670
- }
3671
- });
3672
- } else if (BUILD.lazyLoad && BUILD.method && flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
3673
- Object.defineProperty(prototype, memberName, {
3674
- value(...args) {
3675
- var _a2;
3676
- const ref = getHostRef(this);
3677
- return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
3678
- var _a3;
3679
- return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
3680
- });
3681
- }
3682
- });
3683
- }
3684
- });
3685
- if (BUILD.observeAttribute && (!BUILD.lazyLoad || flags & 1 /* isElementConstructor */)) {
3686
- const attrNameToPropName = /* @__PURE__ */ new Map();
3687
- prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
3688
- plt.jmp(() => {
3689
- var _a2;
3690
- const propName = attrNameToPropName.get(attrName);
3691
- const hostRef = getHostRef(this);
3692
- if (BUILD.serializer && hostRef.$serializerValues$.has(propName) && hostRef.$serializerValues$.get(propName) === newValue) {
3693
- return;
3694
- }
3695
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
3696
- newValue = this[propName];
3697
- delete this[propName];
3698
- }
3699
- if (BUILD.deserializer && cmpMeta.$deserializers$ && cmpMeta.$deserializers$[propName]) {
3700
- const setVal = (methodName, instance) => {
3701
- const deserializeVal = instance == null ? void 0 : instance[methodName](newValue, propName);
3702
- if (deserializeVal !== this[propName]) {
3703
- this[propName] = deserializeVal;
3704
- }
3705
- };
3706
- for (const deserializer of cmpMeta.$deserializers$[propName]) {
3707
- const [[methodName]] = Object.entries(deserializer);
3708
- if (BUILD.lazyLoad) {
3709
- if (hostRef.$lazyInstance$) {
3710
- setVal(methodName, hostRef.$lazyInstance$);
3711
- } else {
3712
- hostRef.$fetchedCbList$.push(() => {
3713
- setVal(methodName, hostRef.$lazyInstance$);
3714
- });
3715
- }
3716
- } else {
3717
- setVal(methodName, this);
3718
- }
3719
- }
3720
- return;
3721
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
3722
- this[propName] == newValue) {
3723
- return;
3724
- } else if (propName == null) {
3725
- const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
3726
- if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
3727
- const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : this;
3728
- const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
3729
- const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
3730
- entry == null ? void 0 : entry.forEach((watcher) => {
3731
- const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
3732
- if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
3733
- instance[watchMethodName].call(instance, newValue, oldValue, attrName);
3734
- }
3735
- });
3736
- }
3737
- return;
3738
- }
3739
- const propFlags = members.find(([m]) => m === propName);
3740
- const isBooleanTarget = propFlags && propFlags[1][0] & 4 /* Boolean */;
3741
- const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
3742
- if (isBooleanTarget) {
3743
- newValue = newValue === null || newValue === "false" ? false : true;
3744
- }
3745
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
3746
- if (!isSpuriousBooleanRemoval && newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
3747
- this[propName] = newValue;
3748
- }
3749
- });
3750
- };
3751
- Cstr.observedAttributes = Array.from(
3752
- /* @__PURE__ */ new Set([
3753
- ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
3754
- ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
3755
- var _a2;
3756
- const attrName = m[1] || propName;
3757
- attrNameToPropName.set(attrName, propName);
3758
- if (BUILD.reflect && m[0] & 512 /* ReflectAttr */) {
3759
- (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
3760
- }
3761
- return attrName;
3762
- })
3763
- ])
3764
- );
3765
- }
3766
- }
3767
- return Cstr;
3768
- };
3769
-
3770
- // src/runtime/initialize-component.ts
3771
- var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
3772
- let Cstr;
3773
- try {
3774
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
3775
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
3776
- const bundleId = cmpMeta.$lazyBundleId$;
3777
- if (BUILD.lazyLoad && bundleId) {
3778
- const CstrImport = loadModule(cmpMeta, hostRef, hmrVersionId);
3779
- if (CstrImport && "then" in CstrImport) {
3780
- const endLoad = uniqueTime(
3781
- `st:load:${cmpMeta.$tagName$}:${hostRef.$modeName$}`,
3782
- `[Stencil] Load module for <${cmpMeta.$tagName$}>`
3783
- );
3784
- Cstr = await CstrImport;
3785
- endLoad();
3786
- } else {
3787
- Cstr = CstrImport;
3788
- }
3789
- if (!Cstr) {
3790
- throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
3791
- }
3792
- if (BUILD.member && !Cstr.isProxied) {
3793
- if (BUILD.propChangeCallback) {
3794
- cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
3795
- cmpMeta.$serializers$ = Cstr.serializers;
3796
- cmpMeta.$deserializers$ = Cstr.deserializers;
3797
- }
3798
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
3799
- Cstr.isProxied = true;
3800
- }
3801
- const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
3802
- if (BUILD.member) {
3803
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
3804
- }
3805
- try {
3806
- new Cstr(hostRef);
3807
- } catch (e) {
3808
- consoleError(e, elm);
3809
- }
3810
- if (BUILD.member) {
3811
- hostRef.$flags$ &= ~8 /* isConstructingInstance */;
3812
- }
3813
- if (BUILD.propChangeCallback) {
3814
- hostRef.$flags$ |= 128 /* isWatchReady */;
3815
- }
3816
- endNewInstance();
3817
- const needsDeferredCallback = BUILD.slotRelocation && cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
3818
- if (!needsDeferredCallback) {
3819
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
3820
- } else {
3821
- hostRef.$deferredConnectedCallback$ = true;
3822
- }
3823
- } else {
3824
- Cstr = elm.constructor;
3825
- const cmpTag = elm.localName;
3826
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
3827
- }
3828
- if (BUILD.style && Cstr && Cstr.style) {
3829
- let style;
3830
- if (typeof Cstr.style === "string") {
3831
- style = Cstr.style;
3832
- } else if (BUILD.mode && typeof Cstr.style !== "string") {
3833
- hostRef.$modeName$ = computeMode(elm);
3834
- if (hostRef.$modeName$) {
3835
- style = Cstr.style[hostRef.$modeName$];
3836
- }
3837
- if (BUILD.hydrateServerSide && hostRef.$modeName$) {
3838
- elm.setAttribute("s-mode", hostRef.$modeName$);
3839
- }
3840
- }
3841
- const scopeId2 = getScopeId(cmpMeta, hostRef.$modeName$);
3842
- if (!styles.has(scopeId2) || BUILD.hotModuleReplacement && hmrVersionId) {
3843
- const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
3844
- if (BUILD.hydrateServerSide && BUILD.shadowDom) {
3845
- if (cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */) {
3846
- style = scopeCss(style, scopeId2, true);
3847
- } else if (needsScopedSSR()) {
3848
- style = expandPartSelectors(style);
3849
- }
3850
- }
3851
- registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
3852
- endRegisterStyles();
3853
- }
3854
- }
3855
- }
3856
- const ancestorComponent = hostRef.$ancestorComponent$;
3857
- const schedule = () => scheduleUpdate(hostRef, true);
3858
- if (BUILD.asyncLoading && ancestorComponent && ancestorComponent["s-rc"]) {
3859
- ancestorComponent["s-rc"].push(schedule);
3860
- } else {
3861
- schedule();
3862
- }
3863
- } catch (e) {
3864
- consoleError(e, elm);
3865
- if (BUILD.asyncLoading && hostRef.$onRenderResolve$) {
3866
- hostRef.$onRenderResolve$();
3867
- hostRef.$onRenderResolve$ = void 0;
3868
- }
3869
- if (BUILD.asyncLoading && hostRef.$onReadyResolve$) {
3870
- hostRef.$onReadyResolve$(elm);
3871
- }
3872
- }
3873
- };
3874
- var fireConnectedCallback = (instance, elm) => {
3875
- if (BUILD.lazyLoad) {
3876
- safeCall(instance, "connectedCallback", void 0, elm);
3877
- }
3878
- };
3879
-
3880
- // src/runtime/connected-callback.ts
3881
- var connectedCallback = (elm) => {
3882
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
3883
- const hostRef = getHostRef(elm);
3884
- if (!hostRef) {
3885
- return;
3886
- }
3887
- const cmpMeta = hostRef.$cmpMeta$;
3888
- const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
3889
- if (BUILD.hostListenerTargetParent) {
3890
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, true);
3891
- }
3892
- if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
3893
- hostRef.$flags$ |= 1 /* hasConnected */;
3894
- let hostId;
3895
- if (BUILD.hydrateClientSide) {
3896
- hostId = elm.getAttribute(HYDRATE_ID);
3897
- if (hostId) {
3898
- if (BUILD.shadowDom && supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
3899
- const scopeId2 = BUILD.mode ? addStyle(elm.shadowRoot, cmpMeta, elm.getAttribute("s-mode")) : addStyle(elm.shadowRoot, cmpMeta);
3900
- elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
3901
- } else if (BUILD.scoped && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
3902
- const scopeId2 = getScopeId(cmpMeta, BUILD.mode ? elm.getAttribute("s-mode") : void 0);
3903
- elm["s-sc"] = scopeId2;
3904
- }
3905
- initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
3906
- }
3907
- }
3908
- if (BUILD.slotRelocation && !hostId) {
3909
- if (BUILD.hydrateServerSide || (BUILD.slot || BUILD.shadowDom) && // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
3910
- cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
3911
- setContentReference(elm);
3912
- }
3913
- }
3914
- if (BUILD.asyncLoading) {
3915
- let ancestorComponent = elm;
3916
- while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
3917
- if (BUILD.hydrateClientSide && ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
3918
- attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
3919
- break;
3920
- }
3921
- }
3922
- }
3923
- if (BUILD.prop && !BUILD.hydrateServerSide && cmpMeta.$members$) {
3924
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
3925
- if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
3926
- const value = elm[memberName];
3927
- delete elm[memberName];
3928
- elm[memberName] = value;
3929
- }
3930
- });
3931
- }
3932
- if (BUILD.initializeNextTick) {
3933
- nextTick(() => initializeComponent(elm, hostRef, cmpMeta));
3934
- } else {
3935
- initializeComponent(elm, hostRef, cmpMeta);
3936
- }
3937
- } else {
3938
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, false);
3939
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
3940
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
3941
- } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
3942
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
3943
- }
3944
- }
3945
- endConnected();
3946
- }
3947
- };
3948
- var setContentReference = (elm) => {
3949
- if (!win.document) {
3950
- return;
3951
- }
3952
- const contentRefElm = elm["s-cr"] = win.document.createComment(
3953
- BUILD.isDebug ? `content-ref (host=${elm.localName})` : ""
3954
- );
3955
- contentRefElm["s-cn"] = true;
3956
- insertBefore(elm, contentRefElm, elm.firstChild);
3957
- };
3958
- var disconnectInstance = (instance, elm) => {
3959
- if (BUILD.lazyLoad) {
3960
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
3961
- }
3962
- };
3963
- var disconnectedCallback = async (elm) => {
3964
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
3965
- const hostRef = getHostRef(elm);
3966
- if (BUILD.hostListener) {
3967
- if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
3968
- hostRef.$rmListeners$.map((rmListener) => rmListener());
3969
- hostRef.$rmListeners$ = void 0;
3970
- }
3971
- }
3972
- if (!BUILD.lazyLoad) {
3973
- disconnectInstance(elm);
3974
- } else if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
3975
- disconnectInstance(hostRef.$lazyInstance$, elm);
3976
- } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
3977
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
3978
- }
3979
- }
3980
- if (rootAppliedStyles.has(elm)) {
3981
- rootAppliedStyles.delete(elm);
3982
- }
3983
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
3984
- rootAppliedStyles.delete(elm.shadowRoot);
3985
- }
3986
- };
3987
-
3988
- // src/runtime/bootstrap-custom-element.ts
3989
- var defineCustomElement = (Cstr, compactMeta) => {
3990
- customElements.define(
3991
- transformTag(compactMeta[1]),
3992
- proxyCustomElement(Cstr, compactMeta)
3993
- );
3994
- };
3995
- var proxyCustomElement = (Cstr, compactMeta) => {
3996
- const cmpMeta = {
3997
- $flags$: compactMeta[0],
3998
- $tagName$: compactMeta[1]
3999
- };
4000
- try {
4001
- if (BUILD.member) {
4002
- cmpMeta.$members$ = compactMeta[2];
4003
- }
4004
- if (BUILD.hostListener) {
4005
- cmpMeta.$listeners$ = compactMeta[3];
4006
- }
4007
- if (BUILD.propChangeCallback) {
4008
- cmpMeta.$watchers$ = normalizeWatchers(Cstr.$watchers$);
4009
- cmpMeta.$deserializers$ = Cstr.$deserializers$;
4010
- cmpMeta.$serializers$ = Cstr.$serializers$;
4011
- }
4012
- if (BUILD.reflect) {
4013
- cmpMeta.$attrsToReflect$ = [];
4014
- }
4015
- if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
4016
- cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
4017
- }
4018
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && cmpMeta.$flags$ & 256 /* hasSlot */) {
4019
- if (BUILD.experimentalSlotFixes) {
4020
- patchPseudoShadowDom(Cstr.prototype);
4021
- } else {
4022
- if (BUILD.slotChildNodesFix) {
4023
- patchChildSlotNodes(Cstr.prototype);
4024
- }
4025
- if (BUILD.cloneNodeFix) {
4026
- patchCloneNode(Cstr.prototype);
4027
- }
4028
- if (BUILD.appendChildSlotFix) {
4029
- patchSlotAppendChild(Cstr.prototype);
4030
- }
4031
- if (BUILD.scopedSlotTextContentFix && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
4032
- patchTextContent(Cstr.prototype);
4033
- }
4034
- }
4035
- } else if (BUILD.cloneNodeFix) {
4036
- patchCloneNode(Cstr.prototype);
4037
- }
4038
- if (BUILD.hydrateClientSide && BUILD.shadowDom) {
4039
- hydrateScopedToShadow();
4040
- }
4041
- const originalConnectedCallback = Cstr.prototype.connectedCallback;
4042
- const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
4043
- Object.assign(Cstr.prototype, {
4044
- __hasHostListenerAttached: false,
4045
- __registerHost() {
4046
- registerHost(this, cmpMeta);
4047
- },
4048
- connectedCallback() {
4049
- if (!this.__hasHostListenerAttached) {
4050
- const hostRef = getHostRef(this);
4051
- if (!hostRef) {
4052
- return;
4053
- }
4054
- addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);
4055
- this.__hasHostListenerAttached = true;
4056
- }
4057
- connectedCallback(this);
4058
- if (originalConnectedCallback) {
4059
- originalConnectedCallback.call(this);
4060
- }
4061
- },
4062
- disconnectedCallback() {
4063
- disconnectedCallback(this);
4064
- if (originalDisconnectedCallback) {
4065
- originalDisconnectedCallback.call(this);
4066
- }
4067
- },
4068
- __attachShadow() {
4069
- if (supportsShadow) {
4070
- if (!this.shadowRoot) {
4071
- createShadowRoot.call(this, cmpMeta);
4072
- } else {
4073
- if (this.shadowRoot.mode !== "open") {
4074
- throw new Error(
4075
- `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`
4076
- );
4077
- }
4078
- }
4079
- } else {
4080
- this.shadowRoot = this;
4081
- }
4082
- }
4083
- });
4084
- Object.defineProperty(Cstr, "is", {
4085
- value: cmpMeta.$tagName$,
4086
- configurable: true
4087
- });
4088
- return proxyComponent(Cstr, cmpMeta, 1 /* isElementConstructor */ | 2 /* proxyState */);
4089
- } catch (e) {
4090
- consoleError(e);
4091
- return Cstr;
4092
- }
4093
- };
4094
- var forceModeUpdate = (elm) => {
4095
- if (BUILD.style && BUILD.mode && !BUILD.lazyLoad) {
4096
- const mode = computeMode(elm);
4097
- const hostRef = getHostRef(elm);
4098
- if (hostRef && hostRef.$modeName$ !== mode) {
4099
- const cmpMeta = hostRef.$cmpMeta$;
4100
- const oldScopeId = elm["s-sc"];
4101
- const scopeId2 = getScopeId(cmpMeta, mode);
4102
- const style = elm.constructor.style[mode];
4103
- const flags = cmpMeta.$flags$;
4104
- if (style) {
4105
- if (!styles.has(scopeId2)) {
4106
- registerStyle(scopeId2, style, !!(flags & 1 /* shadowDomEncapsulation */));
4107
- }
4108
- hostRef.$modeName$ = mode;
4109
- elm.classList.remove(oldScopeId + "-h", oldScopeId + "-s");
4110
- attachStyles(hostRef);
4111
- forceUpdate(elm);
4112
- }
4113
- }
4114
- }
4115
- };
4116
-
4117
- // src/runtime/hmr-component.ts
4118
- var hmrStart = (hostElement, cmpMeta, hmrVersionId) => {
4119
- const hostRef = getHostRef(hostElement);
4120
- if (!hostRef) {
4121
- return;
4122
- }
4123
- hostRef.$flags$ = 1 /* hasConnected */;
4124
- initializeComponent(hostElement, hostRef, cmpMeta, hmrVersionId);
4125
- };
4126
-
4127
- // src/runtime/bootstrap-lazy.ts
4128
- var bootstrapLazy = (lazyBundles, options = {}) => {
4129
- var _a;
4130
- if (BUILD.profile && performance.mark) {
4131
- performance.mark("st:app:start");
4132
- }
4133
- installDevTools();
4134
- if (!win.document) {
4135
- console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
4136
- return;
4137
- }
4138
- const endBootstrap = createTime("bootstrapLazy");
4139
- const cmpTags = [];
4140
- const exclude = options.exclude || [];
4141
- const customElements2 = win.customElements;
4142
- const head = win.document.head;
4143
- const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
4144
- const dataStyles = /* @__PURE__ */ win.document.createElement("style");
4145
- const deferredConnectedCallbacks = [];
4146
- let appLoadFallback;
4147
- let isBootstrapping = true;
4148
- Object.assign(plt, options);
4149
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
4150
- if (BUILD.asyncQueue) {
4151
- if (options.syncQueue) {
4152
- plt.$flags$ |= 4 /* queueSync */;
4153
- }
4154
- }
4155
- if (BUILD.hydrateClientSide) {
4156
- plt.$flags$ |= 2 /* appLoaded */;
4157
- }
4158
- if (BUILD.hydrateClientSide && BUILD.shadowDom) {
4159
- hydrateScopedToShadow();
4160
- }
4161
- let hasSlotRelocation = false;
4162
- lazyBundles.map((lazyBundle) => {
4163
- lazyBundle[1].map((compactMeta) => {
4164
- var _a2, _b;
4165
- const cmpMeta = {
4166
- $flags$: compactMeta[0],
4167
- $tagName$: compactMeta[1],
4168
- $members$: compactMeta[2],
4169
- $listeners$: compactMeta[3]
4170
- };
4171
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
4172
- hasSlotRelocation = true;
4173
- }
4174
- if (BUILD.member) {
4175
- cmpMeta.$members$ = compactMeta[2];
4176
- }
4177
- if (BUILD.hostListener) {
4178
- cmpMeta.$listeners$ = compactMeta[3];
4179
- }
4180
- if (BUILD.reflect) {
4181
- cmpMeta.$attrsToReflect$ = [];
4182
- }
4183
- if (BUILD.propChangeCallback) {
4184
- cmpMeta.$watchers$ = normalizeWatchers(compactMeta[4]);
4185
- cmpMeta.$serializers$ = (_a2 = compactMeta[5]) != null ? _a2 : {};
4186
- cmpMeta.$deserializers$ = (_b = compactMeta[6]) != null ? _b : {};
4187
- }
4188
- if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
4189
- cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
4190
- }
4191
- const tagName = BUILD.transformTagName && options.transformTagName ? options.transformTagName(cmpMeta.$tagName$) : transformTag(cmpMeta.$tagName$);
4192
- const HostElement = class extends HTMLElement {
4193
- ["s-p"];
4194
- ["s-rc"];
4195
- hasRegisteredEventListeners = false;
4196
- // StencilLazyHost
4197
- constructor(self) {
4198
- super(self);
4199
- self = this;
4200
- registerHost(self, cmpMeta);
4201
- if (BUILD.shadowDom && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
4202
- if (supportsShadow) {
4203
- if (!self.shadowRoot) {
4204
- createShadowRoot.call(self, cmpMeta);
4205
- } else {
4206
- if (self.shadowRoot.mode !== "open") {
4207
- throw new Error(
4208
- `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
4209
- );
4210
- }
4211
- }
4212
- } else if (!BUILD.hydrateServerSide && !("shadowRoot" in self)) {
4213
- self.shadowRoot = self;
4214
- }
4215
- }
4216
- }
4217
- connectedCallback() {
4218
- const hostRef = getHostRef(this);
4219
- if (!hostRef) {
4220
- return;
4221
- }
4222
- if (!this.hasRegisteredEventListeners) {
4223
- this.hasRegisteredEventListeners = true;
4224
- addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);
4225
- }
4226
- if (appLoadFallback) {
4227
- clearTimeout(appLoadFallback);
4228
- appLoadFallback = null;
4229
- }
4230
- if (isBootstrapping) {
4231
- deferredConnectedCallbacks.push(this);
4232
- } else {
4233
- plt.jmp(() => connectedCallback(this));
4234
- }
4235
- }
4236
- disconnectedCallback() {
4237
- plt.jmp(() => disconnectedCallback(this));
4238
- plt.raf(() => {
4239
- var _a3;
4240
- const hostRef = getHostRef(this);
4241
- if (!hostRef) {
4242
- return;
4243
- }
4244
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
4245
- if (i2 > -1) {
4246
- deferredConnectedCallbacks.splice(i2, 1);
4247
- }
4248
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
4249
- delete hostRef.$vnode$.$elm$;
4250
- }
4251
- });
4252
- }
4253
- componentOnReady() {
4254
- var _a3;
4255
- return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
4256
- }
4257
- };
4258
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && cmpMeta.$flags$ & 256 /* hasSlot */) {
4259
- if (BUILD.experimentalSlotFixes) {
4260
- patchPseudoShadowDom(HostElement.prototype);
4261
- } else {
4262
- if (BUILD.slotChildNodesFix) {
4263
- patchChildSlotNodes(HostElement.prototype);
4264
- }
4265
- if (BUILD.cloneNodeFix) {
4266
- patchCloneNode(HostElement.prototype);
4267
- }
4268
- if (BUILD.appendChildSlotFix) {
4269
- patchSlotAppendChild(HostElement.prototype);
4270
- }
4271
- if (BUILD.scopedSlotTextContentFix && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
4272
- patchTextContent(HostElement.prototype);
4273
- }
4274
- }
4275
- } else if (BUILD.cloneNodeFix) {
4276
- patchCloneNode(HostElement.prototype);
4277
- }
4278
- if (BUILD.formAssociated && cmpMeta.$flags$ & 64 /* formAssociated */) {
4279
- HostElement.formAssociated = true;
4280
- }
4281
- if (BUILD.hotModuleReplacement) {
4282
- HostElement.prototype["s-hmr"] = function(hmrVersionId) {
4283
- hmrStart(this, cmpMeta, hmrVersionId);
4284
- };
4285
- }
4286
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
4287
- if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
4288
- cmpTags.push(tagName);
4289
- customElements2.define(
4290
- tagName,
4291
- proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
4292
- );
4293
- }
4294
- });
4295
- });
4296
- if (cmpTags.length > 0) {
4297
- if (BUILD.slotRelocation && hasSlotRelocation) {
4298
- dataStyles.textContent += SLOT_FB_CSS;
4299
- }
4300
- if (BUILD.invisiblePrehydration && (BUILD.hydratedClass || BUILD.hydratedAttribute)) {
4301
- dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
4302
- }
4303
- if (dataStyles.innerHTML.length) {
4304
- dataStyles.setAttribute("data-styles", "");
4305
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
4306
- if (nonce != null) {
4307
- dataStyles.setAttribute("nonce", nonce);
4308
- }
4309
- head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
4310
- }
4311
- }
4312
- isBootstrapping = false;
4313
- if (deferredConnectedCallbacks.length) {
4314
- deferredConnectedCallbacks.map((host) => host.connectedCallback());
4315
- } else {
4316
- if (BUILD.profile) {
4317
- plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30, "timeout"));
4318
- } else {
4319
- plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
4320
- }
4321
- }
4322
- endBootstrap();
4323
- };
4324
-
4325
- // src/runtime/fragment.ts
4326
- var Fragment = (_, children) => children;
4327
- var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
4328
- if (BUILD.hostListener && listeners && win.document) {
4329
- if (BUILD.hostListenerTargetParent) {
4330
- if (attachParentListeners) {
4331
- listeners = listeners.filter(([flags]) => flags & 32 /* TargetParent */);
4332
- } else {
4333
- listeners = listeners.filter(([flags]) => !(flags & 32 /* TargetParent */));
4334
- }
4335
- }
4336
- listeners.map(([flags, name, method]) => {
4337
- const target = BUILD.hostListenerTarget ? getHostListenerTarget(win.document, elm, flags) : elm;
4338
- const handler = hostListenerProxy(hostRef, method);
4339
- const opts = hostListenerOpts(flags);
4340
- plt.ael(target, name, handler, opts);
4341
- (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
4342
- });
4343
- }
4344
- };
4345
- var hostListenerProxy = (hostRef, methodName) => (ev) => {
4346
- var _a;
4347
- try {
4348
- if (BUILD.lazyLoad) {
4349
- if (hostRef.$flags$ & 256 /* isListenReady */) {
4350
- (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
4351
- } else {
4352
- (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
4353
- }
4354
- } else {
4355
- hostRef.$hostElement$[methodName](ev);
4356
- }
4357
- } catch (e) {
4358
- consoleError(e, hostRef.$hostElement$);
4359
- }
4360
- };
4361
- var getHostListenerTarget = (doc, elm, flags) => {
4362
- if (BUILD.hostListenerTargetDocument && flags & 4 /* TargetDocument */) {
4363
- return doc;
4364
- }
4365
- if (BUILD.hostListenerTargetWindow && flags & 8 /* TargetWindow */) {
4366
- return win;
4367
- }
4368
- if (BUILD.hostListenerTargetBody && flags & 16 /* TargetBody */) {
4369
- return doc.body;
4370
- }
4371
- if (BUILD.hostListenerTargetParent && flags & 32 /* TargetParent */ && elm.parentElement) {
4372
- return elm.parentElement;
4373
- }
4374
- return elm;
4375
- };
4376
- var hostListenerOpts = (flags) => supportsListenerOptions ? {
4377
- passive: (flags & 1 /* Passive */) !== 0,
4378
- capture: (flags & 2 /* Capture */) !== 0
4379
- } : (flags & 2 /* Capture */) !== 0;
4380
- var baseClass = BUILD.lazyLoad ? class {
4381
- } : globalThis.HTMLElement || class {
4382
- };
4383
- function Mixin(...mixins) {
4384
- return mixins.reduceRight((acc, mixin) => mixin(acc), baseClass);
4385
- }
4386
-
4387
- // src/runtime/nonce.ts
4388
- var setNonce = (nonce) => plt.$nonce$ = nonce;
4389
-
4390
- // src/runtime/platform-options.ts
4391
- var setPlatformOptions = (opts) => Object.assign(plt, opts);
4392
-
4393
- // src/runtime/render.ts
4394
- var hostRefCache = /* @__PURE__ */ new WeakMap();
4395
- function render(vnode, container) {
4396
- let ref = hostRefCache.get(container);
4397
- if (!ref) {
4398
- const cmpMeta = {
4399
- $flags$: 0,
4400
- $tagName$: container.tagName
4401
- };
4402
- ref = {
4403
- $flags$: 0,
4404
- $cmpMeta$: cmpMeta,
4405
- $hostElement$: container
4406
- };
4407
- hostRefCache.set(container, ref);
4408
- }
4409
- renderVdom(ref, vnode);
4410
- }
4411
-
4412
- // src/runtime/tag-transform.ts
4413
- var tagTransformer = void 0;
4414
- function transformTag(tag) {
4415
- if (!tagTransformer) return tag;
4416
- return tagTransformer(tag);
4417
- }
4418
- function setTagTransformer(transformer) {
4419
- if (tagTransformer) {
4420
- console.warn(`
4421
- A tagTransformer has already been set.
4422
- Overwriting it may lead to error and unexpected results if your components have already been defined.
4423
- `);
4424
- }
4425
- tagTransformer = transformer;
4426
- }
4427
-
4428
- // src/runtime/vdom/jsx-dev-runtime.ts
4429
- function jsxDEV(type, props, key, _isStaticChildren, _source, _self) {
4430
- const propsObj = props || {};
4431
- const { children, ...rest } = propsObj;
4432
- let vnodeData = rest;
4433
- if (key !== void 0 && !("key" in rest)) {
4434
- vnodeData = { ...rest, key };
4435
- }
4436
- if (vnodeData && Object.keys(vnodeData).length === 0) {
4437
- vnodeData = null;
4438
- }
4439
- if (children !== void 0) {
4440
- if (Array.isArray(children)) {
4441
- return h(type, vnodeData, ...children);
4442
- }
4443
- if (typeof children === "object" && children !== null && "$flags$" in children) {
4444
- return h(type, vnodeData, children);
4445
- }
4446
- return h(type, vnodeData, children);
4447
- }
4448
- return h(type, vnodeData);
4449
- }
4450
-
4451
- // src/runtime/vdom/jsx-runtime.ts
4452
- function jsx(type, props, key) {
4453
- const propsObj = props || {};
4454
- const { children, ...rest } = propsObj;
4455
- let vnodeData = rest;
4456
- if (key !== void 0 && !("key" in rest)) {
4457
- vnodeData = { ...rest, key };
4458
- }
4459
- if (vnodeData && Object.keys(vnodeData).length === 0) {
4460
- vnodeData = null;
4461
- }
4462
- if (children !== void 0) {
4463
- if (Array.isArray(children)) {
4464
- return h(type, vnodeData, ...children);
4465
- }
4466
- if (typeof children === "object" && children !== null && "$flags$" in children) {
4467
- return h(type, vnodeData, children);
4468
- }
4469
- return h(type, vnodeData, children);
4470
- }
4471
- return h(type, vnodeData);
4472
- }
4473
- function jsxs(type, props, key) {
4474
- return jsx(type, props, key);
4475
- }
4476
-
4477
- // src/runtime/vdom/vdom-annotations.ts
4478
- var insertVdomAnnotations = (doc, staticComponents) => {
4479
- if (doc != null) {
4480
- const docData = STENCIL_DOC_DATA in doc ? doc[STENCIL_DOC_DATA] : { ...DEFAULT_DOC_DATA };
4481
- docData.staticComponents = new Set(staticComponents);
4482
- const orgLocationNodes = [];
4483
- parseVNodeAnnotations(doc, doc.body, docData, orgLocationNodes);
4484
- orgLocationNodes.forEach((orgLocationNode) => {
4485
- var _a;
4486
- if (orgLocationNode != null && orgLocationNode["s-nr"]) {
4487
- const nodeRef = orgLocationNode["s-nr"];
4488
- let hostId = nodeRef["s-host-id"];
4489
- let nodeId = nodeRef["s-node-id"];
4490
- let childId = `${hostId}.${nodeId}`;
4491
- if (hostId == null) {
4492
- hostId = 0;
4493
- docData.rootLevelIds++;
4494
- nodeId = docData.rootLevelIds;
4495
- childId = `${hostId}.${nodeId}`;
4496
- if (nodeRef.nodeType === 1 /* ElementNode */) {
4497
- nodeRef.setAttribute(HYDRATE_CHILD_ID, childId);
4498
- if (typeof nodeRef["s-sn"] === "string" && !nodeRef.getAttribute("slot")) {
4499
- nodeRef.setAttribute("s-sn", nodeRef["s-sn"]);
4500
- }
4501
- } else if (nodeRef.nodeType === 3 /* TextNode */) {
4502
- if (hostId === 0) {
4503
- const textContent = (_a = nodeRef.nodeValue) == null ? void 0 : _a.trim();
4504
- if (textContent === "") {
4505
- orgLocationNode.remove();
4506
- return;
4507
- }
4508
- }
4509
- const commentBeforeTextNode = doc.createComment(childId);
4510
- commentBeforeTextNode.nodeValue = `${TEXT_NODE_ID}.${childId}`;
4511
- insertBefore(nodeRef.parentNode, commentBeforeTextNode, nodeRef);
4512
- } else if (nodeRef.nodeType === 8 /* CommentNode */) {
4513
- const commentBeforeTextNode = doc.createComment(childId);
4514
- commentBeforeTextNode.nodeValue = `${COMMENT_NODE_ID}.${childId}`;
4515
- nodeRef.parentNode.insertBefore(commentBeforeTextNode, nodeRef);
4516
- }
4517
- }
4518
- let orgLocationNodeId = `${ORG_LOCATION_ID}.${childId}`;
4519
- const orgLocationParentNode = orgLocationNode.parentElement;
4520
- if (orgLocationParentNode) {
4521
- if (orgLocationParentNode["s-en"] === "") {
4522
- orgLocationNodeId += `.`;
4523
- } else if (orgLocationParentNode["s-en"] === "c") {
4524
- orgLocationNodeId += `.c`;
4525
- }
4526
- }
4527
- orgLocationNode.nodeValue = orgLocationNodeId;
4528
- }
4529
- });
4530
- }
4531
- };
4532
- var parseVNodeAnnotations = (doc, node, docData, orgLocationNodes) => {
4533
- var _a;
4534
- if (node == null) {
4535
- return;
4536
- }
4537
- if (node["s-nr"] != null) {
4538
- orgLocationNodes.push(node);
4539
- }
4540
- if (node.nodeType === 1 /* ElementNode */) {
4541
- const childNodes = [...Array.from(node.childNodes), ...Array.from(((_a = node.shadowRoot) == null ? void 0 : _a.childNodes) || [])];
4542
- childNodes.forEach((childNode) => {
4543
- const hostRef = getHostRef(childNode);
4544
- if (hostRef != null && !docData.staticComponents.has(childNode.nodeName.toLowerCase())) {
4545
- const cmpData = {
4546
- nodeIds: 0
4547
- };
4548
- insertVNodeAnnotations(doc, childNode, hostRef.$vnode$, docData, cmpData);
4549
- }
4550
- parseVNodeAnnotations(doc, childNode, docData, orgLocationNodes);
4551
- });
4552
- }
4553
- };
4554
- var insertVNodeAnnotations = (doc, hostElm, vnode, docData, cmpData) => {
4555
- if (vnode != null) {
4556
- const hostId = ++docData.hostIds;
4557
- hostElm.setAttribute(HYDRATE_ID, hostId);
4558
- if (hostElm["s-cr"] != null) {
4559
- hostElm["s-cr"].nodeValue = `${CONTENT_REF_ID}.${hostId}`;
4560
- }
4561
- if (vnode.$children$ != null) {
4562
- const depth = 0;
4563
- vnode.$children$.forEach((vnodeChild, index) => {
4564
- insertChildVNodeAnnotations(doc, vnodeChild, cmpData, hostId, depth, index);
4565
- });
4566
- }
4567
- if (hostElm && vnode && vnode.$elm$ && !hostElm.hasAttribute(HYDRATE_CHILD_ID)) {
4568
- const parent = hostElm.parentElement;
4569
- if (parent && parent.childNodes) {
4570
- const parentChildNodes = Array.from(parent.childNodes);
4571
- const comment = parentChildNodes.find(
4572
- (node) => node.nodeType === 8 /* CommentNode */ && node["s-sr"]
4573
- );
4574
- if (comment) {
4575
- const index = parentChildNodes.indexOf(hostElm) - 1;
4576
- vnode.$elm$.setAttribute(
4577
- HYDRATE_CHILD_ID,
4578
- `${comment["s-host-id"]}.${comment["s-node-id"]}.0.${index}`
4579
- );
4580
- }
4581
- }
4582
- }
4583
- }
4584
- };
4585
- var insertChildVNodeAnnotations = (doc, vnodeChild, cmpData, hostId, depth, index) => {
4586
- const childElm = vnodeChild.$elm$;
4587
- if (childElm == null) {
4588
- return;
4589
- }
4590
- const nodeId = cmpData.nodeIds++;
4591
- const childId = `${hostId}.${nodeId}.${depth}.${index}`;
4592
- childElm["s-host-id"] = hostId;
4593
- childElm["s-node-id"] = nodeId;
4594
- if (childElm.nodeType === 1 /* ElementNode */) {
4595
- childElm.setAttribute(HYDRATE_CHILD_ID, childId);
4596
- if (typeof childElm["s-sn"] === "string" && !childElm.getAttribute("slot")) {
4597
- childElm.setAttribute("s-sn", childElm["s-sn"]);
4598
- }
4599
- } else if (childElm.nodeType === 3 /* TextNode */) {
4600
- const parentNode = childElm.parentNode;
4601
- const nodeName = parentNode == null ? void 0 : parentNode.nodeName;
4602
- if (nodeName !== "STYLE" && nodeName !== "SCRIPT") {
4603
- const textNodeId = `${TEXT_NODE_ID}.${childId}`;
4604
- const commentBeforeTextNode = doc.createComment(textNodeId);
4605
- insertBefore(parentNode, commentBeforeTextNode, childElm);
4606
- }
4607
- } else if (childElm.nodeType === 8 /* CommentNode */) {
4608
- if (childElm["s-sr"]) {
4609
- const slotName = childElm["s-sn"] || "";
4610
- const slotNodeId = `${SLOT_NODE_ID}.${childId}.${slotName}`;
4611
- childElm.nodeValue = slotNodeId;
4612
- }
4613
- }
4614
- if (vnodeChild.$children$ != null) {
4615
- const childDepth = depth + 1;
4616
- vnodeChild.$children$.forEach((vnode, index2) => {
4617
- insertChildVNodeAnnotations(doc, vnode, cmpData, hostId, childDepth, index2);
4618
- });
4619
- }
4620
- };
4621
-
4622
- export { BUILD as B, H, NAMESPACE as N, getElement as a, bootstrapLazy as b, consoleDevInfo as c, createEvent as d, Build as e, Host as f, globalScripts as g, h, promiseResolve as p, registerInstance as r, setNonce as s, win as w };
4623
- //# sourceMappingURL=index-BKkSRXlb.js.map
4624
-
4625
- //# sourceMappingURL=index-BKkSRXlb.js.map