@govbr-ds/webcomponents 2.0.0-next.20 → 2.0.0-next.22

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 (375) hide show
  1. package/dist/cjs/br-avatar.cjs.entry.js +2 -2
  2. package/dist/cjs/br-avatar.cjs.entry.js.map +1 -1
  3. package/dist/cjs/br-button_2.cjs.entry.js +175 -56
  4. package/dist/cjs/br-button_2.cjs.entry.js.map +1 -1
  5. package/dist/cjs/br-checkbox.cjs.entry.js +2 -2
  6. package/dist/cjs/br-checkbox.cjs.entry.js.map +1 -1
  7. package/dist/cjs/br-checkgroup.cjs.entry.js +101 -0
  8. package/dist/cjs/br-checkgroup.cjs.entry.js.map +1 -0
  9. package/dist/cjs/br-dropdown.cjs.entry.js +3 -3
  10. package/dist/cjs/br-dropdown.cjs.entry.js.map +1 -1
  11. package/dist/cjs/br-input_3.cjs.entry.js +284 -0
  12. package/dist/cjs/br-input_3.cjs.entry.js.map +1 -0
  13. package/dist/cjs/br-item.cjs.entry.js +40 -20
  14. package/dist/cjs/br-item.cjs.entry.js.map +1 -1
  15. package/dist/cjs/br-loading.cjs.entry.js +3 -3
  16. package/dist/cjs/br-loading.cjs.entry.js.map +1 -1
  17. package/dist/cjs/br-message.cjs.entry.js +3 -3
  18. package/dist/cjs/br-message.cjs.entry.js.map +1 -1
  19. package/dist/cjs/br-select.cjs.entry.js +281 -0
  20. package/dist/cjs/br-select.cjs.entry.js.map +1 -0
  21. package/dist/cjs/br-switch.cjs.entry.js +9 -6
  22. package/dist/cjs/br-switch.cjs.entry.js.map +1 -1
  23. package/dist/cjs/br-tag.cjs.entry.js +3 -3
  24. package/dist/cjs/br-tag.cjs.entry.js.map +1 -1
  25. package/dist/cjs/br-textarea.cjs.entry.js +3 -3
  26. package/dist/cjs/br-textarea.cjs.entry.js.map +1 -1
  27. package/dist/cjs/br-upload.cjs.entry.js +3 -3
  28. package/dist/cjs/br-upload.cjs.entry.js.map +1 -1
  29. package/dist/cjs/{index-81c11ce2.js → index-4fc1aab1.js} +851 -624
  30. package/dist/cjs/index-4fc1aab1.js.map +1 -0
  31. package/dist/cjs/loader.cjs.js +2 -2
  32. package/dist/cjs/webcomponents.cjs.js +3 -3
  33. package/dist/cjs/webcomponents.cjs.js.map +1 -1
  34. package/dist/collection/collection-manifest.json +3 -1
  35. package/dist/collection/components/avatar/avatar.css +11 -1
  36. package/dist/collection/components/avatar/avatar.js +16 -0
  37. package/dist/collection/components/avatar/avatar.js.map +1 -1
  38. package/dist/collection/components/button/button.css +11 -1
  39. package/dist/collection/components/button/button.js +18 -0
  40. package/dist/collection/components/button/button.js.map +1 -1
  41. package/dist/collection/components/checkbox/checkbox.css +11 -1
  42. package/dist/collection/components/checkbox/checkbox.js +18 -0
  43. package/dist/collection/components/checkbox/checkbox.js.map +1 -1
  44. package/dist/collection/components/checkgroup/checkgroup.css +605 -0
  45. package/dist/collection/components/checkgroup/checkgroup.js +197 -0
  46. package/dist/collection/components/checkgroup/checkgroup.js.map +1 -0
  47. package/dist/collection/components/dropdown/dropdown.css +11 -1
  48. package/dist/collection/components/dropdown/dropdown.js +3 -1
  49. package/dist/collection/components/dropdown/dropdown.js.map +1 -1
  50. package/dist/collection/components/icon/icon.css +11 -1
  51. package/dist/collection/components/icon/icon.js +15 -1
  52. package/dist/collection/components/icon/icon.js.map +1 -1
  53. package/dist/collection/components/input/input.css +11 -1
  54. package/dist/collection/components/input/input.js +47 -1
  55. package/dist/collection/components/input/input.js.map +1 -1
  56. package/dist/collection/components/item/item.css +11 -1
  57. package/dist/collection/components/item/item.js +65 -19
  58. package/dist/collection/components/item/item.js.map +1 -1
  59. package/dist/collection/components/list/list.css +11 -1
  60. package/dist/collection/components/list/list.js +7 -1
  61. package/dist/collection/components/list/list.js.map +1 -1
  62. package/dist/collection/components/loading/loading.css +11 -1
  63. package/dist/collection/components/loading/loading.js +9 -1
  64. package/dist/collection/components/loading/loading.js.map +1 -1
  65. package/dist/collection/components/message/message.css +11 -1
  66. package/dist/collection/components/message/message.js +15 -1
  67. package/dist/collection/components/message/message.js.map +1 -1
  68. package/dist/collection/components/radio/radio.css +11 -1
  69. package/dist/collection/components/radio/radio.js +17 -1
  70. package/dist/collection/components/radio/radio.js.map +1 -1
  71. package/dist/collection/components/select/select.css +865 -0
  72. package/dist/collection/components/select/select.js +509 -0
  73. package/dist/collection/components/select/select.js.map +1 -0
  74. package/dist/collection/components/switch/switch.css +11 -1
  75. package/dist/collection/components/switch/switch.js +30 -5
  76. package/dist/collection/components/switch/switch.js.map +1 -1
  77. package/dist/collection/components/tag/tag.css +11 -1
  78. package/dist/collection/components/tag/tag.js +17 -1
  79. package/dist/collection/components/tag/tag.js.map +1 -1
  80. package/dist/collection/components/textarea/textarea.css +11 -1
  81. package/dist/collection/components/textarea/textarea.js +19 -1
  82. package/dist/collection/components/textarea/textarea.js.map +1 -1
  83. package/dist/collection/components/upload/upload.css +11 -1
  84. package/dist/collection/components/upload/upload.js +13 -3
  85. package/dist/collection/components/upload/upload.js.map +1 -1
  86. package/dist/collection/index.js.map +1 -1
  87. package/dist/collection/pages/components/checkgroup/index.js +20 -0
  88. package/dist/collection/pages/components/item/index.js +1 -1
  89. package/dist/collection/pages/components/select/index.js +18 -0
  90. package/dist/collection/pages/components/switch/index.js +1 -1
  91. package/dist/collection/pages/scripts/menu.js +22 -2
  92. package/dist/collection/utils/inherited-attributes.js.map +1 -1
  93. package/dist/collection/utils/interfaces.js.map +1 -1
  94. package/dist/collection/utils/unique-id-generator.js.map +1 -1
  95. package/dist/components/br-avatar.js +1 -1
  96. package/dist/components/br-avatar.js.map +1 -1
  97. package/dist/components/br-button.js +1 -1
  98. package/dist/components/br-checkbox.js +1 -1
  99. package/dist/components/br-checkbox.js.map +1 -1
  100. package/dist/components/br-checkgroup.d.ts +11 -0
  101. package/dist/components/br-checkgroup.js +6 -0
  102. package/dist/components/br-checkgroup.js.map +1 -0
  103. package/dist/components/br-dropdown.js +1 -1
  104. package/dist/components/br-dropdown.js.map +1 -1
  105. package/dist/components/br-icon.js +1 -1
  106. package/dist/components/br-input.js +1 -1
  107. package/dist/components/br-input.js.map +1 -1
  108. package/dist/components/br-item.js +1 -1
  109. package/dist/components/br-item.js.map +1 -1
  110. package/dist/components/br-list.js +1 -1
  111. package/dist/components/br-list.js.map +1 -1
  112. package/dist/components/br-loading.js +1 -1
  113. package/dist/components/br-loading.js.map +1 -1
  114. package/dist/components/br-message.js +1 -1
  115. package/dist/components/br-message.js.map +1 -1
  116. package/dist/components/br-radio.js +1 -1
  117. package/dist/components/br-radio.js.map +1 -1
  118. package/dist/components/br-select.d.ts +11 -0
  119. package/dist/components/br-select.js +6 -0
  120. package/dist/components/br-select.js.map +1 -0
  121. package/dist/components/br-switch.js +1 -1
  122. package/dist/components/br-switch.js.map +1 -1
  123. package/dist/components/br-tag.js +1 -1
  124. package/dist/components/br-tag.js.map +1 -1
  125. package/dist/components/br-textarea.js +1 -1
  126. package/dist/components/br-textarea.js.map +1 -1
  127. package/dist/components/br-upload.js +1 -1
  128. package/dist/components/br-upload.js.map +1 -1
  129. package/dist/components/index.js +1 -1
  130. package/dist/components/p-126ad66d.js +17 -0
  131. package/dist/components/p-126ad66d.js.map +1 -0
  132. package/dist/components/p-184a3074.js +6 -0
  133. package/dist/components/p-184a3074.js.map +1 -0
  134. package/dist/components/p-5cb170a7.js +6 -0
  135. package/dist/components/p-5cb170a7.js.map +1 -0
  136. package/dist/components/p-65616dbd.js +7 -0
  137. package/dist/components/p-65616dbd.js.map +1 -0
  138. package/dist/components/p-65c54cc8.js +6 -0
  139. package/dist/components/p-65c54cc8.js.map +1 -0
  140. package/dist/components/p-a6dcabb0.js +6 -0
  141. package/dist/components/p-a6dcabb0.js.map +1 -0
  142. package/dist/components/p-ace62688.js +6 -0
  143. package/dist/components/p-ace62688.js.map +1 -0
  144. package/dist/esm/br-avatar.entry.js +2 -2
  145. package/dist/esm/br-avatar.entry.js.map +1 -1
  146. package/dist/esm/br-button_2.entry.js +175 -56
  147. package/dist/esm/br-button_2.entry.js.map +1 -1
  148. package/dist/esm/br-checkbox.entry.js +2 -2
  149. package/dist/esm/br-checkbox.entry.js.map +1 -1
  150. package/dist/esm/br-checkgroup.entry.js +97 -0
  151. package/dist/esm/br-checkgroup.entry.js.map +1 -0
  152. package/dist/esm/br-dropdown.entry.js +3 -3
  153. package/dist/esm/br-dropdown.entry.js.map +1 -1
  154. package/dist/esm/br-input_3.entry.js +278 -0
  155. package/dist/esm/br-input_3.entry.js.map +1 -0
  156. package/dist/esm/br-item.entry.js +40 -20
  157. package/dist/esm/br-item.entry.js.map +1 -1
  158. package/dist/esm/br-loading.entry.js +3 -3
  159. package/dist/esm/br-loading.entry.js.map +1 -1
  160. package/dist/esm/br-message.entry.js +3 -3
  161. package/dist/esm/br-message.entry.js.map +1 -1
  162. package/dist/esm/br-select.entry.js +277 -0
  163. package/dist/esm/br-select.entry.js.map +1 -0
  164. package/dist/esm/br-switch.entry.js +9 -6
  165. package/dist/esm/br-switch.entry.js.map +1 -1
  166. package/dist/esm/br-tag.entry.js +3 -3
  167. package/dist/esm/br-tag.entry.js.map +1 -1
  168. package/dist/esm/br-textarea.entry.js +3 -3
  169. package/dist/esm/br-textarea.entry.js.map +1 -1
  170. package/dist/esm/br-upload.entry.js +3 -3
  171. package/dist/esm/br-upload.entry.js.map +1 -1
  172. package/dist/esm/{index-aab4a630.js → index-45af9b53.js} +851 -624
  173. package/dist/esm/index-45af9b53.js.map +1 -0
  174. package/dist/esm/loader.js +3 -3
  175. package/dist/esm/webcomponents.js +4 -4
  176. package/dist/esm/webcomponents.js.map +1 -1
  177. package/dist/esm-es5/br-avatar.entry.js +1 -1
  178. package/dist/esm-es5/br-avatar.entry.js.map +1 -1
  179. package/dist/esm-es5/br-button_2.entry.js +4 -4
  180. package/dist/esm-es5/br-button_2.entry.js.map +1 -1
  181. package/dist/esm-es5/br-checkbox.entry.js +1 -1
  182. package/dist/esm-es5/br-checkbox.entry.js.map +1 -1
  183. package/dist/esm-es5/br-checkgroup.entry.js +6 -0
  184. package/dist/esm-es5/br-checkgroup.entry.js.map +1 -0
  185. package/dist/esm-es5/br-dropdown.entry.js +1 -1
  186. package/dist/esm-es5/br-dropdown.entry.js.map +1 -1
  187. package/dist/esm-es5/br-input_3.entry.js +6 -0
  188. package/dist/esm-es5/br-input_3.entry.js.map +1 -0
  189. package/dist/esm-es5/br-item.entry.js +1 -1
  190. package/dist/esm-es5/br-item.entry.js.map +1 -1
  191. package/dist/esm-es5/br-loading.entry.js +1 -1
  192. package/dist/esm-es5/br-loading.entry.js.map +1 -1
  193. package/dist/esm-es5/br-message.entry.js +1 -1
  194. package/dist/esm-es5/br-message.entry.js.map +1 -1
  195. package/dist/esm-es5/br-select.entry.js +6 -0
  196. package/dist/esm-es5/br-select.entry.js.map +1 -0
  197. package/dist/esm-es5/br-switch.entry.js +2 -2
  198. package/dist/esm-es5/br-switch.entry.js.map +1 -1
  199. package/dist/esm-es5/br-tag.entry.js +1 -1
  200. package/dist/esm-es5/br-tag.entry.js.map +1 -1
  201. package/dist/esm-es5/br-textarea.entry.js +1 -1
  202. package/dist/esm-es5/br-textarea.entry.js.map +1 -1
  203. package/dist/esm-es5/br-upload.entry.js +1 -1
  204. package/dist/esm-es5/br-upload.entry.js.map +1 -1
  205. package/dist/esm-es5/index-45af9b53.js +6 -0
  206. package/dist/esm-es5/index-45af9b53.js.map +1 -0
  207. package/dist/esm-es5/loader.js +2 -2
  208. package/dist/esm-es5/loader.js.map +1 -1
  209. package/dist/esm-es5/webcomponents.js +2 -2
  210. package/dist/esm-es5/webcomponents.js.map +1 -1
  211. package/dist/types/components/checkgroup/checkgroup.d.ts +52 -0
  212. package/dist/types/components/item/item.d.ts +5 -3
  213. package/dist/types/components/select/select.d.ts +98 -0
  214. package/dist/types/components/switch/switch.d.ts +2 -1
  215. package/dist/types/components/upload/upload.d.ts +2 -2
  216. package/dist/types/components.d.ts +171 -6
  217. package/dist/webcomponents/p-04a3d24e.system.entry.js +6 -0
  218. package/dist/webcomponents/{p-71be2e3f.system.entry.js.map → p-04a3d24e.system.entry.js.map} +1 -1
  219. package/dist/webcomponents/p-057dcb7c.system.entry.js +6 -0
  220. package/dist/webcomponents/p-057dcb7c.system.entry.js.map +1 -0
  221. package/dist/webcomponents/p-19b77f11.entry.js +6 -0
  222. package/dist/webcomponents/{p-5539ffa8.entry.js.map → p-19b77f11.entry.js.map} +1 -1
  223. package/dist/webcomponents/p-1acbc680.entry.js +6 -0
  224. package/dist/webcomponents/p-1acbc680.entry.js.map +1 -0
  225. package/dist/webcomponents/p-25d82c85.system.entry.js +6 -0
  226. package/dist/webcomponents/p-25d82c85.system.entry.js.map +1 -0
  227. package/dist/webcomponents/p-27b820ac.system.entry.js +6 -0
  228. package/dist/webcomponents/p-27b820ac.system.entry.js.map +1 -0
  229. package/dist/webcomponents/p-2b0430f4.entry.js +6 -0
  230. package/dist/webcomponents/p-2b0430f4.entry.js.map +1 -0
  231. package/dist/webcomponents/p-2ff5f694.system.entry.js +6 -0
  232. package/dist/webcomponents/p-2ff5f694.system.entry.js.map +1 -0
  233. package/dist/webcomponents/p-357e1105.system.entry.js +6 -0
  234. package/dist/webcomponents/p-357e1105.system.entry.js.map +1 -0
  235. package/dist/webcomponents/p-35f07e4b.entry.js +6 -0
  236. package/dist/webcomponents/p-35f07e4b.entry.js.map +1 -0
  237. package/dist/webcomponents/p-3e449bd5.system.entry.js +6 -0
  238. package/dist/webcomponents/p-3e449bd5.system.entry.js.map +1 -0
  239. package/dist/webcomponents/p-46a75920.system.js +6 -0
  240. package/dist/webcomponents/p-46a75920.system.js.map +1 -0
  241. package/dist/webcomponents/p-491cdd00.entry.js +6 -0
  242. package/dist/webcomponents/p-491cdd00.entry.js.map +1 -0
  243. package/dist/webcomponents/p-52e5bcdd.entry.js +6 -0
  244. package/dist/webcomponents/p-52e5bcdd.entry.js.map +1 -0
  245. package/dist/webcomponents/p-60879543.system.entry.js +6 -0
  246. package/dist/webcomponents/p-60879543.system.entry.js.map +1 -0
  247. package/dist/webcomponents/p-6bfb8eb6.entry.js +6 -0
  248. package/dist/webcomponents/p-6bfb8eb6.entry.js.map +1 -0
  249. package/dist/webcomponents/p-6d0d2846.system.js +7 -0
  250. package/dist/webcomponents/p-6d0d2846.system.js.map +1 -0
  251. package/dist/webcomponents/p-7c3554a7.system.entry.js +17 -0
  252. package/dist/webcomponents/p-7c3554a7.system.entry.js.map +1 -0
  253. package/dist/webcomponents/p-8fd11f97.system.entry.js +6 -0
  254. package/dist/webcomponents/p-8fd11f97.system.entry.js.map +1 -0
  255. package/dist/webcomponents/p-907fab5d.entry.js +6 -0
  256. package/dist/webcomponents/p-907fab5d.entry.js.map +1 -0
  257. package/dist/webcomponents/p-929db2b8.entry.js +17 -0
  258. package/dist/webcomponents/p-929db2b8.entry.js.map +1 -0
  259. package/dist/webcomponents/p-98e6f0c1.system.entry.js +6 -0
  260. package/dist/webcomponents/p-98e6f0c1.system.entry.js.map +1 -0
  261. package/dist/webcomponents/p-9b0f20d7.entry.js +6 -0
  262. package/dist/webcomponents/p-9b0f20d7.entry.js.map +1 -0
  263. package/dist/webcomponents/p-ad5a7b8b.system.entry.js +6 -0
  264. package/dist/webcomponents/{p-f5e674ba.system.entry.js.map → p-ad5a7b8b.system.entry.js.map} +1 -1
  265. package/dist/webcomponents/p-c3811f09.js +7 -0
  266. package/dist/webcomponents/p-c3811f09.js.map +1 -0
  267. package/dist/webcomponents/p-c6a9c8ac.entry.js +6 -0
  268. package/dist/webcomponents/p-c6a9c8ac.entry.js.map +1 -0
  269. package/dist/webcomponents/p-d46495d5.system.entry.js +6 -0
  270. package/dist/webcomponents/p-d46495d5.system.entry.js.map +1 -0
  271. package/dist/webcomponents/p-dc3d284a.entry.js +6 -0
  272. package/dist/webcomponents/p-dc3d284a.entry.js.map +1 -0
  273. package/dist/webcomponents/p-e98418a4.entry.js +6 -0
  274. package/dist/webcomponents/{p-e8b5b14f.entry.js.map → p-e98418a4.entry.js.map} +1 -1
  275. package/dist/webcomponents/p-ef89bcc9.system.entry.js +6 -0
  276. package/dist/webcomponents/p-ef89bcc9.system.entry.js.map +1 -0
  277. package/dist/webcomponents/p-fc11eac9.entry.js +6 -0
  278. package/dist/webcomponents/p-fc11eac9.entry.js.map +1 -0
  279. package/dist/webcomponents/webcomponents.esm.js +1 -1
  280. package/dist/webcomponents/webcomponents.esm.js.map +1 -1
  281. package/dist/webcomponents/webcomponents.js +1 -1
  282. package/hydrate/index.js +1434 -645
  283. package/hydrate/index.mjs +1434 -645
  284. package/package.json +2 -2
  285. package/vscode-data.json +72 -2
  286. package/dist/cjs/br-input.cjs.entry.js +0 -150
  287. package/dist/cjs/br-input.cjs.entry.js.map +0 -1
  288. package/dist/cjs/br-list.cjs.entry.js +0 -82
  289. package/dist/cjs/br-list.cjs.entry.js.map +0 -1
  290. package/dist/cjs/br-radio.cjs.entry.js +0 -79
  291. package/dist/cjs/br-radio.cjs.entry.js.map +0 -1
  292. package/dist/cjs/index-81c11ce2.js.map +0 -1
  293. package/dist/collection/scripts/menu.js +0 -146
  294. package/dist/components/p-2d8e59f6.js +0 -7
  295. package/dist/components/p-2d8e59f6.js.map +0 -1
  296. package/dist/components/p-64831033.js +0 -17
  297. package/dist/components/p-64831033.js.map +0 -1
  298. package/dist/components/p-e4af8eac.js +0 -6
  299. package/dist/components/p-e4af8eac.js.map +0 -1
  300. package/dist/esm/br-input.entry.js +0 -146
  301. package/dist/esm/br-input.entry.js.map +0 -1
  302. package/dist/esm/br-list.entry.js +0 -78
  303. package/dist/esm/br-list.entry.js.map +0 -1
  304. package/dist/esm/br-radio.entry.js +0 -75
  305. package/dist/esm/br-radio.entry.js.map +0 -1
  306. package/dist/esm/index-aab4a630.js.map +0 -1
  307. package/dist/esm-es5/br-input.entry.js +0 -6
  308. package/dist/esm-es5/br-input.entry.js.map +0 -1
  309. package/dist/esm-es5/br-list.entry.js +0 -6
  310. package/dist/esm-es5/br-list.entry.js.map +0 -1
  311. package/dist/esm-es5/br-radio.entry.js +0 -6
  312. package/dist/esm-es5/br-radio.entry.js.map +0 -1
  313. package/dist/esm-es5/index-aab4a630.js +0 -6
  314. package/dist/esm-es5/index-aab4a630.js.map +0 -1
  315. package/dist/playwright.config.js +0 -39
  316. package/dist/playwright.config.js.map +0 -1
  317. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/packages/webcomponents/.stencil/playwright.config.d.ts +0 -5
  318. package/dist/webcomponents/p-05343155.system.entry.js +0 -6
  319. package/dist/webcomponents/p-05343155.system.entry.js.map +0 -1
  320. package/dist/webcomponents/p-183614c8.system.entry.js +0 -6
  321. package/dist/webcomponents/p-183614c8.system.entry.js.map +0 -1
  322. package/dist/webcomponents/p-2083ff7b.entry.js +0 -6
  323. package/dist/webcomponents/p-2083ff7b.entry.js.map +0 -1
  324. package/dist/webcomponents/p-24da392a.entry.js +0 -6
  325. package/dist/webcomponents/p-24da392a.entry.js.map +0 -1
  326. package/dist/webcomponents/p-28476b17.system.entry.js +0 -6
  327. package/dist/webcomponents/p-28476b17.system.entry.js.map +0 -1
  328. package/dist/webcomponents/p-2c2c8629.js +0 -7
  329. package/dist/webcomponents/p-2c2c8629.js.map +0 -1
  330. package/dist/webcomponents/p-3f00a196.entry.js +0 -6
  331. package/dist/webcomponents/p-3f00a196.entry.js.map +0 -1
  332. package/dist/webcomponents/p-430afeb5.system.js +0 -7
  333. package/dist/webcomponents/p-430afeb5.system.js.map +0 -1
  334. package/dist/webcomponents/p-447c8036.entry.js +0 -6
  335. package/dist/webcomponents/p-447c8036.entry.js.map +0 -1
  336. package/dist/webcomponents/p-5539ffa8.entry.js +0 -6
  337. package/dist/webcomponents/p-55604b7f.system.entry.js +0 -6
  338. package/dist/webcomponents/p-55604b7f.system.entry.js.map +0 -1
  339. package/dist/webcomponents/p-61523bc9.entry.js +0 -6
  340. package/dist/webcomponents/p-61523bc9.entry.js.map +0 -1
  341. package/dist/webcomponents/p-626fe2cb.entry.js +0 -6
  342. package/dist/webcomponents/p-626fe2cb.entry.js.map +0 -1
  343. package/dist/webcomponents/p-6a8226b3.system.entry.js +0 -6
  344. package/dist/webcomponents/p-6a8226b3.system.entry.js.map +0 -1
  345. package/dist/webcomponents/p-71be2e3f.system.entry.js +0 -6
  346. package/dist/webcomponents/p-7a4e1265.system.entry.js +0 -6
  347. package/dist/webcomponents/p-7a4e1265.system.entry.js.map +0 -1
  348. package/dist/webcomponents/p-8039a644.system.entry.js +0 -6
  349. package/dist/webcomponents/p-8039a644.system.entry.js.map +0 -1
  350. package/dist/webcomponents/p-842b2513.entry.js +0 -6
  351. package/dist/webcomponents/p-842b2513.entry.js.map +0 -1
  352. package/dist/webcomponents/p-8f156fc4.system.entry.js +0 -6
  353. package/dist/webcomponents/p-8f156fc4.system.entry.js.map +0 -1
  354. package/dist/webcomponents/p-9f0d01d1.entry.js +0 -6
  355. package/dist/webcomponents/p-9f0d01d1.entry.js.map +0 -1
  356. package/dist/webcomponents/p-ae629243.system.entry.js +0 -6
  357. package/dist/webcomponents/p-ae629243.system.entry.js.map +0 -1
  358. package/dist/webcomponents/p-b88a5d9a.system.js +0 -6
  359. package/dist/webcomponents/p-b88a5d9a.system.js.map +0 -1
  360. package/dist/webcomponents/p-b9fd2bc0.system.entry.js +0 -6
  361. package/dist/webcomponents/p-b9fd2bc0.system.entry.js.map +0 -1
  362. package/dist/webcomponents/p-baad00f8.system.entry.js +0 -6
  363. package/dist/webcomponents/p-baad00f8.system.entry.js.map +0 -1
  364. package/dist/webcomponents/p-d174c8cd.entry.js +0 -6
  365. package/dist/webcomponents/p-d174c8cd.entry.js.map +0 -1
  366. package/dist/webcomponents/p-d83e2172.system.entry.js +0 -17
  367. package/dist/webcomponents/p-d83e2172.system.entry.js.map +0 -1
  368. package/dist/webcomponents/p-dcf41d91.entry.js +0 -6
  369. package/dist/webcomponents/p-dcf41d91.entry.js.map +0 -1
  370. package/dist/webcomponents/p-e027fca2.entry.js +0 -6
  371. package/dist/webcomponents/p-e027fca2.entry.js.map +0 -1
  372. package/dist/webcomponents/p-e6d921ef.entry.js +0 -17
  373. package/dist/webcomponents/p-e6d921ef.entry.js.map +0 -1
  374. package/dist/webcomponents/p-e8b5b14f.entry.js +0 -6
  375. package/dist/webcomponents/p-f5e674ba.system.entry.js +0 -6
@@ -28,7 +28,7 @@ const NAMESPACE = 'webcomponents';
28
28
  const BUILD = /* webcomponents */ { allRenderFn: true, appendChildSlotFix: true, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: true, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: true, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: true, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: 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: false, hydrateClientSide: true, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
29
29
 
30
30
  /*
31
- Stencil Client Platform v4.22.2 | MIT Licensed | https://stenciljs.com
31
+ Stencil Client Platform v4.23.0 | MIT Licensed | https://stenciljs.com
32
32
  */
33
33
  var __defProp = Object.defineProperty;
34
34
  var __export = (target, all) => {
@@ -82,26 +82,18 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
82
82
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
83
83
  /* webpackMode: "lazy" */
84
84
  './br-avatar.cjs.entry.js')); }).then(processMod, consoleError);
85
- case 'br-checkbox.cjs':
85
+ case 'br-checkgroup.cjs':
86
86
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
87
87
  /* webpackMode: "lazy" */
88
- './br-checkbox.cjs.entry.js')); }).then(processMod, consoleError);
88
+ './br-checkgroup.cjs.entry.js')); }).then(processMod, consoleError);
89
89
  case 'br-dropdown.cjs':
90
90
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
91
91
  /* webpackMode: "lazy" */
92
92
  './br-dropdown.cjs.entry.js')); }).then(processMod, consoleError);
93
- case 'br-input.cjs':
94
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
95
- /* webpackMode: "lazy" */
96
- './br-input.cjs.entry.js')); }).then(processMod, consoleError);
97
93
  case 'br-item.cjs':
98
94
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
99
95
  /* webpackMode: "lazy" */
100
96
  './br-item.cjs.entry.js')); }).then(processMod, consoleError);
101
- case 'br-list.cjs':
102
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
103
- /* webpackMode: "lazy" */
104
- './br-list.cjs.entry.js')); }).then(processMod, consoleError);
105
97
  case 'br-loading.cjs':
106
98
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
107
99
  /* webpackMode: "lazy" */
@@ -110,10 +102,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
110
102
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
111
103
  /* webpackMode: "lazy" */
112
104
  './br-message.cjs.entry.js')); }).then(processMod, consoleError);
113
- case 'br-radio.cjs':
105
+ case 'br-select.cjs':
114
106
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
115
107
  /* webpackMode: "lazy" */
116
- './br-radio.cjs.entry.js')); }).then(processMod, consoleError);
108
+ './br-select.cjs.entry.js')); }).then(processMod, consoleError);
117
109
  case 'br-switch.cjs':
118
110
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
119
111
  /* webpackMode: "lazy" */
@@ -130,6 +122,14 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
130
122
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
131
123
  /* webpackMode: "lazy" */
132
124
  './br-upload.cjs.entry.js')); }).then(processMod, consoleError);
125
+ case 'br-input_3.cjs':
126
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
127
+ /* webpackMode: "lazy" */
128
+ './br-input_3.cjs.entry.js')); }).then(processMod, consoleError);
129
+ case 'br-checkbox.cjs':
130
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
131
+ /* webpackMode: "lazy" */
132
+ './br-checkbox.cjs.entry.js')); }).then(processMod, consoleError);
133
133
  case 'br-button_2.cjs':
134
134
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
135
135
  /* webpackMode: "lazy" */
@@ -158,6 +158,7 @@ var CONTENT_REF_ID = "r";
158
158
  var ORG_LOCATION_ID = "o";
159
159
  var SLOT_NODE_ID = "s";
160
160
  var TEXT_NODE_ID = "t";
161
+ var COMMENT_NODE_ID = "c";
161
162
  var HYDRATE_ID = "s-id";
162
163
  var HYDRATED_STYLE_ID = "sty-id";
163
164
  var HYDRATE_CHILD_ID = "c-id";
@@ -309,20 +310,6 @@ var unwrapErr = (result) => {
309
310
  throw result.value;
310
311
  }
311
312
  };
312
- var createTime = (fnName, tagName = "") => {
313
- {
314
- return () => {
315
- return;
316
- };
317
- }
318
- };
319
- var uniqueTime = (key, measureText) => {
320
- {
321
- return () => {
322
- return;
323
- };
324
- }
325
- };
326
313
  var h = (nodeName, vnodeData, ...children) => {
327
314
  let child = null;
328
315
  let key = null;
@@ -424,444 +411,128 @@ var convertToPrivate = (node) => {
424
411
  vnode.$name$ = node.vname;
425
412
  return vnode;
426
413
  };
427
-
428
- // src/runtime/client-hydrate.ts
429
- var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
430
- const endHydrate = createTime("hydrateClient", tagName);
431
- const shadowRoot = hostElm.shadowRoot;
432
- const childRenderNodes = [];
433
- const slotNodes = [];
434
- const shadowRootNodes = shadowRoot ? [] : null;
435
- const vnode = hostRef.$vnode$ = newVNode(tagName, null);
436
- if (!plt.$orgLocNodes$) {
437
- initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
438
- }
439
- hostElm[HYDRATE_ID] = hostId;
440
- hostElm.removeAttribute(HYDRATE_ID);
441
- clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
442
- childRenderNodes.map((c) => {
443
- const orgLocationId = c.$hostId$ + "." + c.$nodeId$;
444
- const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
445
- const node = c.$elm$;
446
- if (orgLocationNode && supportsShadow && orgLocationNode["s-en"] === "") {
447
- orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
448
- }
449
- if (!shadowRoot) {
450
- node["s-hn"] = tagName;
451
- if (orgLocationNode) {
452
- node["s-ol"] = orgLocationNode;
453
- node["s-ol"]["s-nr"] = node;
454
- }
455
- }
456
- plt.$orgLocNodes$.delete(orgLocationId);
457
- });
458
- if (shadowRoot) {
459
- shadowRootNodes.map((shadowRootNode) => {
460
- if (shadowRootNode) {
461
- shadowRoot.appendChild(shadowRootNode);
414
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
415
+ if (oldValue !== newValue) {
416
+ let isProp = isMemberInElement(elm, memberName);
417
+ let ln = memberName.toLowerCase();
418
+ if (memberName === "class") {
419
+ const classList = elm.classList;
420
+ const oldClasses = parseClassList(oldValue);
421
+ const newClasses = parseClassList(newValue);
422
+ if (elm["s-si"] && newClasses.indexOf(elm["s-si"]) < 0) {
423
+ newClasses.push(elm["s-si"]);
462
424
  }
463
- });
464
- }
465
- endHydrate();
466
- };
467
- var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
468
- let childNodeType;
469
- let childIdSplt;
470
- let childVNode;
471
- let i2;
472
- if (node.nodeType === 1 /* ElementNode */) {
473
- childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
474
- if (childNodeType) {
475
- childIdSplt = childNodeType.split(".");
476
- if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
477
- childVNode = {
478
- $flags$: 0,
479
- $hostId$: childIdSplt[0],
480
- $nodeId$: childIdSplt[1],
481
- $depth$: childIdSplt[2],
482
- $index$: childIdSplt[3],
483
- $tag$: node.tagName.toLowerCase(),
484
- $elm$: node,
485
- $attrs$: null,
486
- $children$: null,
487
- $key$: null,
488
- $name$: null,
489
- $text$: null
490
- };
491
- childRenderNodes.push(childVNode);
492
- node.removeAttribute(HYDRATE_CHILD_ID);
493
- if (!parentVNode.$children$) {
494
- parentVNode.$children$ = [];
425
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
426
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
427
+ } else if (memberName === "style") {
428
+ {
429
+ for (const prop in oldValue) {
430
+ if (!newValue || newValue[prop] == null) {
431
+ if (prop.includes("-")) {
432
+ elm.style.removeProperty(prop);
433
+ } else {
434
+ elm.style[prop] = "";
435
+ }
436
+ }
495
437
  }
496
- parentVNode.$children$[childVNode.$index$] = childVNode;
497
- parentVNode = childVNode;
498
- if (shadowRootNodes && childVNode.$depth$ === "0") {
499
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
438
+ }
439
+ for (const prop in newValue) {
440
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
441
+ if (prop.includes("-")) {
442
+ elm.style.setProperty(prop, newValue[prop]);
443
+ } else {
444
+ elm.style[prop] = newValue[prop];
445
+ }
500
446
  }
501
447
  }
502
- }
503
- if (node.shadowRoot) {
504
- for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
505
- clientHydrate(
506
- parentVNode,
507
- childRenderNodes,
508
- slotNodes,
509
- shadowRootNodes,
510
- hostElm,
511
- node.shadowRoot.childNodes[i2],
512
- hostId
513
- );
448
+ } else if (memberName === "key") ; else if (memberName === "ref") {
449
+ if (newValue) {
450
+ newValue(elm);
514
451
  }
515
- }
516
- for (i2 = node.childNodes.length - 1; i2 >= 0; i2--) {
517
- clientHydrate(
518
- parentVNode,
519
- childRenderNodes,
520
- slotNodes,
521
- shadowRootNodes,
522
- hostElm,
523
- node.childNodes[i2],
524
- hostId
525
- );
526
- }
527
- } else if (node.nodeType === 8 /* CommentNode */) {
528
- childIdSplt = node.nodeValue.split(".");
529
- if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
530
- childNodeType = childIdSplt[0];
531
- childVNode = {
532
- $flags$: 0,
533
- $hostId$: childIdSplt[1],
534
- $nodeId$: childIdSplt[2],
535
- $depth$: childIdSplt[3],
536
- $index$: childIdSplt[4],
537
- $elm$: node,
538
- $attrs$: null,
539
- $children$: null,
540
- $key$: null,
541
- $name$: null,
542
- $tag$: null,
543
- $text$: null
544
- };
545
- if (childNodeType === TEXT_NODE_ID) {
546
- childVNode.$elm$ = node.nextSibling;
547
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
548
- childVNode.$text$ = childVNode.$elm$.textContent;
549
- childRenderNodes.push(childVNode);
550
- node.remove();
551
- if (!parentVNode.$children$) {
552
- parentVNode.$children$ = [];
553
- }
554
- parentVNode.$children$[childVNode.$index$] = childVNode;
555
- if (shadowRootNodes && childVNode.$depth$ === "0") {
556
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
557
- }
452
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
453
+ if (memberName[2] === "-") {
454
+ memberName = memberName.slice(3);
455
+ } else if (isMemberInElement(win, ln)) {
456
+ memberName = ln.slice(2);
457
+ } else {
458
+ memberName = ln[2] + memberName.slice(3);
459
+ }
460
+ if (oldValue || newValue) {
461
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
462
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
463
+ if (oldValue) {
464
+ plt.rel(elm, memberName, oldValue, capture);
558
465
  }
559
- } else if (childVNode.$hostId$ === hostId) {
560
- if (childNodeType === SLOT_NODE_ID) {
561
- childVNode.$tag$ = "slot";
562
- if (childIdSplt[5]) {
563
- node["s-sn"] = childVNode.$name$ = childIdSplt[5];
564
- } else {
565
- node["s-sn"] = "";
566
- }
567
- node["s-sr"] = true;
568
- if (shadowRootNodes) {
569
- childVNode.$elm$ = doc.createElement(childVNode.$tag$);
570
- if (childVNode.$name$) {
571
- childVNode.$elm$.setAttribute("name", childVNode.$name$);
572
- }
573
- node.parentNode.insertBefore(childVNode.$elm$, node);
574
- node.remove();
575
- if (childVNode.$depth$ === "0") {
576
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
466
+ if (newValue) {
467
+ plt.ael(elm, memberName, newValue, capture);
468
+ }
469
+ }
470
+ } else {
471
+ const isComplex = isComplexType(newValue);
472
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
473
+ try {
474
+ if (!elm.tagName.includes("-")) {
475
+ const n = newValue == null ? "" : newValue;
476
+ if (memberName === "list") {
477
+ isProp = false;
478
+ } else if (oldValue == null || elm[memberName] != n) {
479
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
480
+ elm[memberName] = n;
481
+ } else {
482
+ elm.setAttribute(memberName, n);
483
+ }
577
484
  }
485
+ } else {
486
+ elm[memberName] = newValue;
578
487
  }
579
- slotNodes.push(childVNode);
580
- if (!parentVNode.$children$) {
581
- parentVNode.$children$ = [];
582
- }
583
- parentVNode.$children$[childVNode.$index$] = childVNode;
584
- } else if (childNodeType === CONTENT_REF_ID) {
585
- if (shadowRootNodes) {
586
- node.remove();
488
+ } catch (e) {
489
+ }
490
+ }
491
+ let xlink = false;
492
+ {
493
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
494
+ memberName = ln;
495
+ xlink = true;
496
+ }
497
+ }
498
+ if (newValue == null || newValue === false) {
499
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
500
+ if (xlink) {
501
+ elm.removeAttributeNS(XLINK_NS, memberName);
502
+ } else {
503
+ elm.removeAttribute(memberName);
587
504
  }
588
505
  }
506
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
507
+ newValue = newValue === true ? "" : newValue;
508
+ if (xlink) {
509
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
510
+ } else {
511
+ elm.setAttribute(memberName, newValue);
512
+ }
589
513
  }
590
514
  }
591
- } else if (parentVNode && parentVNode.$tag$ === "style") {
592
- const vnode = newVNode(null, node.textContent);
593
- vnode.$elm$ = node;
594
- vnode.$index$ = "0";
595
- parentVNode.$children$ = [vnode];
596
515
  }
597
516
  };
598
- var initializeDocumentHydrate = (node, orgLocNodes) => {
599
- if (node.nodeType === 1 /* ElementNode */) {
600
- let i2 = 0;
601
- if (node.shadowRoot) {
602
- for (; i2 < node.shadowRoot.childNodes.length; i2++) {
603
- initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
517
+ var parseClassListRegex = /\s/;
518
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
519
+ var CAPTURE_EVENT_SUFFIX = "Capture";
520
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
521
+
522
+ // src/runtime/vdom/update-element.ts
523
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
524
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
525
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
526
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
527
+ {
528
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
529
+ if (!(memberName in newVnodeAttrs)) {
530
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
604
531
  }
605
532
  }
606
- for (i2 = 0; i2 < node.childNodes.length; i2++) {
607
- initializeDocumentHydrate(node.childNodes[i2], orgLocNodes);
608
- }
609
- } else if (node.nodeType === 8 /* CommentNode */) {
610
- const childIdSplt = node.nodeValue.split(".");
611
- if (childIdSplt[0] === ORG_LOCATION_ID) {
612
- orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
613
- node.nodeValue = "";
614
- node["s-en"] = childIdSplt[3];
615
- }
616
- }
617
- };
618
- var parsePropertyValue = (propValue, propType) => {
619
- if (propValue != null && !isComplexType(propValue)) {
620
- if (propType & 4 /* Boolean */) {
621
- return propValue === "false" ? false : propValue === "" || !!propValue;
622
- }
623
- if (propType & 2 /* Number */) {
624
- return parseFloat(propValue);
625
- }
626
- if (propType & 1 /* String */) {
627
- return String(propValue);
628
- }
629
- return propValue;
630
- }
631
- return propValue;
632
- };
633
- var getElement = (ref) => getHostRef(ref).$hostElement$ ;
634
-
635
- // src/runtime/event-emitter.ts
636
- var createEvent = (ref, name, flags) => {
637
- const elm = getElement(ref);
638
- return {
639
- emit: (detail) => {
640
- return emitEvent(elm, name, {
641
- bubbles: !!(flags & 4 /* Bubbles */),
642
- composed: !!(flags & 2 /* Composed */),
643
- cancelable: !!(flags & 1 /* Cancellable */),
644
- detail
645
- });
646
- }
647
- };
648
- };
649
- var emitEvent = (elm, name, opts) => {
650
- const ev = plt.ce(name, opts);
651
- elm.dispatchEvent(ev);
652
- return ev;
653
- };
654
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
655
- var registerStyle = (scopeId2, cssText, allowCS) => {
656
- let style = styles.get(scopeId2);
657
- if (supportsConstructableStylesheets && allowCS) {
658
- style = style || new CSSStyleSheet();
659
- if (typeof style === "string") {
660
- style = cssText;
661
- } else {
662
- style.replaceSync(cssText);
663
- }
664
- } else {
665
- style = cssText;
666
- }
667
- styles.set(scopeId2, style);
668
- };
669
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
670
- var _a;
671
- const scopeId2 = getScopeId(cmpMeta);
672
- const style = styles.get(scopeId2);
673
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
674
- if (style) {
675
- if (typeof style === "string") {
676
- styleContainerNode = styleContainerNode.head || styleContainerNode;
677
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
678
- let styleElm;
679
- if (!appliedStyles) {
680
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
681
- }
682
- if (!appliedStyles.has(scopeId2)) {
683
- if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
684
- styleElm.innerHTML = style;
685
- } else {
686
- styleElm = doc.createElement("style");
687
- styleElm.innerHTML = style;
688
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
689
- if (nonce != null) {
690
- styleElm.setAttribute("nonce", nonce);
691
- }
692
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
693
- if (styleContainerNode.nodeName === "HEAD") {
694
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
695
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
696
- styleContainerNode.insertBefore(styleElm, referenceNode2);
697
- } else if ("host" in styleContainerNode) {
698
- if (supportsConstructableStylesheets) {
699
- const stylesheet = new CSSStyleSheet();
700
- stylesheet.replaceSync(style);
701
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
702
- } else {
703
- const existingStyleContainer = styleContainerNode.querySelector("style");
704
- if (existingStyleContainer) {
705
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
706
- } else {
707
- styleContainerNode.prepend(styleElm);
708
- }
709
- }
710
- } else {
711
- styleContainerNode.append(styleElm);
712
- }
713
- }
714
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
715
- styleContainerNode.insertBefore(styleElm, null);
716
- }
717
- }
718
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
719
- styleElm.innerHTML += SLOT_FB_CSS;
720
- }
721
- if (appliedStyles) {
722
- appliedStyles.add(scopeId2);
723
- }
724
- }
725
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
726
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
727
- }
728
- }
729
- return scopeId2;
730
- };
731
- var attachStyles = (hostRef) => {
732
- const cmpMeta = hostRef.$cmpMeta$;
733
- const elm = hostRef.$hostElement$;
734
- const flags = cmpMeta.$flags$;
735
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
736
- const scopeId2 = addStyle(
737
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
738
- cmpMeta);
739
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
740
- elm["s-sc"] = scopeId2;
741
- elm.classList.add(scopeId2 + "-h");
742
- }
743
- endAttachStyles();
744
- };
745
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
746
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
747
- if (oldValue !== newValue) {
748
- let isProp = isMemberInElement(elm, memberName);
749
- let ln = memberName.toLowerCase();
750
- if (memberName === "class") {
751
- const classList = elm.classList;
752
- const oldClasses = parseClassList(oldValue);
753
- const newClasses = parseClassList(newValue);
754
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
755
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
756
- } else if (memberName === "style") {
757
- {
758
- for (const prop in oldValue) {
759
- if (!newValue || newValue[prop] == null) {
760
- if (prop.includes("-")) {
761
- elm.style.removeProperty(prop);
762
- } else {
763
- elm.style[prop] = "";
764
- }
765
- }
766
- }
767
- }
768
- for (const prop in newValue) {
769
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
770
- if (prop.includes("-")) {
771
- elm.style.setProperty(prop, newValue[prop]);
772
- } else {
773
- elm.style[prop] = newValue[prop];
774
- }
775
- }
776
- }
777
- } else if (memberName === "key") ; else if (memberName === "ref") {
778
- if (newValue) {
779
- newValue(elm);
780
- }
781
- } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
782
- if (memberName[2] === "-") {
783
- memberName = memberName.slice(3);
784
- } else if (isMemberInElement(win, ln)) {
785
- memberName = ln.slice(2);
786
- } else {
787
- memberName = ln[2] + memberName.slice(3);
788
- }
789
- if (oldValue || newValue) {
790
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
791
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
792
- if (oldValue) {
793
- plt.rel(elm, memberName, oldValue, capture);
794
- }
795
- if (newValue) {
796
- plt.ael(elm, memberName, newValue, capture);
797
- }
798
- }
799
- } else {
800
- const isComplex = isComplexType(newValue);
801
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
802
- try {
803
- if (!elm.tagName.includes("-")) {
804
- const n = newValue == null ? "" : newValue;
805
- if (memberName === "list") {
806
- isProp = false;
807
- } else if (oldValue == null || elm[memberName] != n) {
808
- if (typeof elm.__lookupSetter__(memberName) === "function") {
809
- elm[memberName] = n;
810
- } else {
811
- elm.setAttribute(memberName, n);
812
- }
813
- }
814
- } else {
815
- elm[memberName] = newValue;
816
- }
817
- } catch (e) {
818
- }
819
- }
820
- let xlink = false;
821
- {
822
- if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
823
- memberName = ln;
824
- xlink = true;
825
- }
826
- }
827
- if (newValue == null || newValue === false) {
828
- if (newValue !== false || elm.getAttribute(memberName) === "") {
829
- if (xlink) {
830
- elm.removeAttributeNS(XLINK_NS, memberName);
831
- } else {
832
- elm.removeAttribute(memberName);
833
- }
834
- }
835
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
836
- newValue = newValue === true ? "" : newValue;
837
- if (xlink) {
838
- elm.setAttributeNS(XLINK_NS, memberName, newValue);
839
- } else {
840
- elm.setAttribute(memberName, newValue);
841
- }
842
- }
843
- }
844
- }
845
- };
846
- var parseClassListRegex = /\s/;
847
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
848
- var CAPTURE_EVENT_SUFFIX = "Capture";
849
- var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
850
-
851
- // src/runtime/vdom/update-element.ts
852
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
853
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
854
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
855
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
856
- {
857
- for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
858
- if (!(memberName in newVnodeAttrs)) {
859
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
860
- }
861
- }
862
- }
863
- for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
864
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
533
+ }
534
+ for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
535
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
865
536
  }
866
537
  };
867
538
  function sortedAttrNames(attrNames) {
@@ -1043,89 +714,683 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1043
714
  updateElement(oldVNode, newVNode2, isSvgMode);
1044
715
  }
1045
716
  }
1046
- if (oldChildren !== null && newChildren !== null) {
1047
- updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
1048
- } else if (newChildren !== null) {
1049
- if (oldVNode.$text$ !== null) {
1050
- elm.textContent = "";
1051
- }
1052
- addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
1053
- } else if (
1054
- // don't do this on initial render as it can cause non-hydrated content to be removed
1055
- !isInitialRender && BUILD.updatable && oldChildren !== null
1056
- ) {
1057
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
717
+ if (oldChildren !== null && newChildren !== null) {
718
+ updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
719
+ } else if (newChildren !== null) {
720
+ if (oldVNode.$text$ !== null) {
721
+ elm.textContent = "";
722
+ }
723
+ addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
724
+ } else if (
725
+ // don't do this on initial render as it can cause non-hydrated content to be removed
726
+ !isInitialRender && BUILD.updatable && oldChildren !== null
727
+ ) {
728
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
729
+ }
730
+ } else if (oldVNode.$text$ !== text) {
731
+ elm.data = text;
732
+ }
733
+ };
734
+ var updateFallbackSlotVisibility = (elm) => {
735
+ const childNodes = elm.__childNodes || elm.childNodes;
736
+ for (const childNode of childNodes) {
737
+ if (childNode.nodeType === 1 /* ElementNode */) {
738
+ if (childNode["s-sr"]) {
739
+ const slotName = childNode["s-sn"];
740
+ childNode.hidden = false;
741
+ for (const siblingNode of childNodes) {
742
+ if (siblingNode !== childNode) {
743
+ if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
744
+ if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
745
+ childNode.hidden = true;
746
+ break;
747
+ }
748
+ } else if (slotName === siblingNode["s-sn"]) {
749
+ if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
750
+ childNode.hidden = true;
751
+ break;
752
+ }
753
+ }
754
+ }
755
+ }
756
+ }
757
+ updateFallbackSlotVisibility(childNode);
758
+ }
759
+ }
760
+ };
761
+ var nullifyVNodeRefs = (vNode) => {
762
+ {
763
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
764
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
765
+ }
766
+ };
767
+ var insertBefore = (parent, newNode, reference) => {
768
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
769
+ return inserted;
770
+ };
771
+ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
772
+ const hostElm = hostRef.$hostElement$;
773
+ const cmpMeta = hostRef.$cmpMeta$;
774
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
775
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
776
+ hostTagName = hostElm.tagName;
777
+ if (cmpMeta.$attrsToReflect$) {
778
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
779
+ cmpMeta.$attrsToReflect$.map(
780
+ ([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
781
+ );
782
+ }
783
+ if (isInitialLoad && rootVnode.$attrs$) {
784
+ for (const key of Object.keys(rootVnode.$attrs$)) {
785
+ if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
786
+ rootVnode.$attrs$[key] = hostElm[key];
787
+ }
788
+ }
789
+ }
790
+ rootVnode.$tag$ = null;
791
+ rootVnode.$flags$ |= 4 /* isHost */;
792
+ hostRef.$vnode$ = rootVnode;
793
+ rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
794
+ {
795
+ scopeId = hostElm["s-sc"];
796
+ }
797
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
798
+ patch(oldVNode, rootVnode, isInitialLoad);
799
+ };
800
+ var patchCloneNode = (HostElementPrototype) => {
801
+ const orgCloneNode = HostElementPrototype.cloneNode;
802
+ HostElementPrototype.cloneNode = function(deep) {
803
+ const srcNode = this;
804
+ const isShadowDom = srcNode.shadowRoot && supportsShadow ;
805
+ const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
806
+ if (!isShadowDom && deep) {
807
+ let i2 = 0;
808
+ let slotted, nonStencilNode;
809
+ const stencilPrivates = [
810
+ "s-id",
811
+ "s-cr",
812
+ "s-lr",
813
+ "s-rc",
814
+ "s-sc",
815
+ "s-p",
816
+ "s-cn",
817
+ "s-sr",
818
+ "s-sn",
819
+ "s-hn",
820
+ "s-ol",
821
+ "s-nr",
822
+ "s-si",
823
+ "s-rf",
824
+ "s-scs"
825
+ ];
826
+ const childNodes = this.__childNodes || this.childNodes;
827
+ for (; i2 < childNodes.length; i2++) {
828
+ slotted = childNodes[i2]["s-nr"];
829
+ nonStencilNode = stencilPrivates.every((privateField) => !childNodes[i2][privateField]);
830
+ if (slotted) {
831
+ if (clonedNode.__appendChild) {
832
+ clonedNode.__appendChild(slotted.cloneNode(true));
833
+ } else {
834
+ clonedNode.appendChild(slotted.cloneNode(true));
835
+ }
836
+ }
837
+ if (nonStencilNode) {
838
+ clonedNode.appendChild(childNodes[i2].cloneNode(true));
839
+ }
840
+ }
841
+ }
842
+ return clonedNode;
843
+ };
844
+ };
845
+ var patchSlotAppendChild = (HostElementPrototype) => {
846
+ HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
847
+ HostElementPrototype.appendChild = function(newChild) {
848
+ const slotName = newChild["s-sn"] = getSlotName(newChild);
849
+ const slotNode = getHostSlotNode(this.__childNodes || this.childNodes, slotName, this.tagName);
850
+ if (slotNode) {
851
+ addSlotRelocateNode(newChild, slotNode);
852
+ const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
853
+ const appendAfter = slotChildNodes[slotChildNodes.length - 1];
854
+ const insertedNode = insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
855
+ updateFallbackSlotVisibility(this);
856
+ return insertedNode;
857
+ }
858
+ return this.__appendChild(newChild);
859
+ };
860
+ };
861
+ var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
862
+ let slottedNodeLocation;
863
+ if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
864
+ slottedNodeLocation = newChild["s-ol"];
865
+ } else {
866
+ slottedNodeLocation = document.createTextNode("");
867
+ slottedNodeLocation["s-nr"] = newChild;
868
+ }
869
+ if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
870
+ const parent = slotNode["s-cr"].parentNode;
871
+ const appendMethod = prepend ? parent.__prepend || parent.prepend : parent.__appendChild || parent.appendChild;
872
+ if (typeof position !== "undefined") {
873
+ {
874
+ slottedNodeLocation["s-oo"] = position;
875
+ const childNodes = parent.__childNodes || parent.childNodes;
876
+ const slotRelocateNodes = [slottedNodeLocation];
877
+ childNodes.forEach((n) => {
878
+ if (n["s-nr"]) slotRelocateNodes.push(n);
879
+ });
880
+ slotRelocateNodes.sort((a, b) => {
881
+ if (!a["s-oo"] || a["s-oo"] < b["s-oo"]) return -1;
882
+ else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
883
+ return 0;
884
+ });
885
+ slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
886
+ }
887
+ } else {
888
+ appendMethod.call(parent, slottedNodeLocation);
889
+ }
890
+ newChild["s-ol"] = slottedNodeLocation;
891
+ newChild["s-sh"] = slotNode["s-hn"];
892
+ };
893
+ var getSlotName = (node) => node["s-sn"] || node.nodeType === 1 && node.getAttribute("slot") || "";
894
+ var getHostSlotNode = (childNodes, slotName, hostName) => {
895
+ let i2 = 0;
896
+ let childNode;
897
+ for (; i2 < childNodes.length; i2++) {
898
+ childNode = childNodes[i2];
899
+ if (childNode["s-sr"] && childNode["s-sn"] === slotName && childNode["s-hn"] === hostName) {
900
+ return childNode;
901
+ }
902
+ childNode = getHostSlotNode(childNode.childNodes, slotName, hostName);
903
+ if (childNode) {
904
+ return childNode;
905
+ }
906
+ }
907
+ return null;
908
+ };
909
+ var getHostSlotChildNodes = (n, slotName) => {
910
+ const childNodes = [n];
911
+ while ((n = n.nextSibling) && n["s-sn"] === slotName) {
912
+ childNodes.push(n);
913
+ }
914
+ return childNodes;
915
+ };
916
+ var createTime = (fnName, tagName = "") => {
917
+ {
918
+ return () => {
919
+ return;
920
+ };
921
+ }
922
+ };
923
+ var uniqueTime = (key, measureText) => {
924
+ {
925
+ return () => {
926
+ return;
927
+ };
928
+ }
929
+ };
930
+
931
+ // src/runtime/client-hydrate.ts
932
+ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
933
+ const endHydrate = createTime("hydrateClient", tagName);
934
+ const shadowRoot = hostElm.shadowRoot;
935
+ const childRenderNodes = [];
936
+ const slotNodes = [];
937
+ const slottedNodes = [];
938
+ const shadowRootNodes = shadowRoot ? [] : null;
939
+ const vnode = newVNode(tagName, null);
940
+ vnode.$elm$ = hostElm;
941
+ if (!plt.$orgLocNodes$) {
942
+ initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
943
+ }
944
+ hostElm[HYDRATE_ID] = hostId;
945
+ hostElm.removeAttribute(HYDRATE_ID);
946
+ hostRef.$vnode$ = clientHydrate(
947
+ vnode,
948
+ childRenderNodes,
949
+ slotNodes,
950
+ shadowRootNodes,
951
+ hostElm,
952
+ hostElm,
953
+ hostId,
954
+ slottedNodes
955
+ );
956
+ let crIndex = 0;
957
+ const crLength = childRenderNodes.length;
958
+ let childRenderNode;
959
+ for (crIndex; crIndex < crLength; crIndex++) {
960
+ childRenderNode = childRenderNodes[crIndex];
961
+ const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
962
+ const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
963
+ const node = childRenderNode.$elm$;
964
+ if (!shadowRoot) {
965
+ node["s-hn"] = tagName.toUpperCase();
966
+ if (childRenderNode.$tag$ === "slot") {
967
+ node["s-cr"] = hostElm["s-cr"];
968
+ }
969
+ }
970
+ if (orgLocationNode && orgLocationNode.isConnected) {
971
+ if (shadowRoot && orgLocationNode["s-en"] === "") {
972
+ orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
973
+ }
974
+ orgLocationNode.parentNode.removeChild(orgLocationNode);
975
+ if (!shadowRoot) {
976
+ node["s-oo"] = parseInt(childRenderNode.$nodeId$);
977
+ }
978
+ }
979
+ plt.$orgLocNodes$.delete(orgLocationId);
980
+ }
981
+ const hosts = [];
982
+ let snIndex = 0;
983
+ const snLen = slottedNodes.length;
984
+ let slotGroup;
985
+ let snGroupIdx;
986
+ let snGroupLen;
987
+ let slottedItem;
988
+ for (snIndex; snIndex < snLen; snIndex++) {
989
+ slotGroup = slottedNodes[snIndex];
990
+ if (!slotGroup || !slotGroup.length) continue;
991
+ snGroupLen = slotGroup.length;
992
+ snGroupIdx = 0;
993
+ for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
994
+ slottedItem = slotGroup[snGroupIdx];
995
+ if (!hosts[slottedItem.hostId]) {
996
+ hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
997
+ }
998
+ if (!hosts[slottedItem.hostId]) continue;
999
+ const hostEle = hosts[slottedItem.hostId];
1000
+ if (!hostEle.shadowRoot || !shadowRoot) {
1001
+ slottedItem.slot["s-cr"] = hostEle["s-cr"];
1002
+ if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
1003
+ slottedItem.slot["s-cr"] = hostEle;
1004
+ } else {
1005
+ const hostChildren = hostEle.__childNodes || hostEle.childNodes;
1006
+ slottedItem.slot["s-cr"] = hostChildren[0];
1007
+ }
1008
+ addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
1009
+ }
1010
+ if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
1011
+ hostEle.appendChild(slottedItem.node);
1012
+ }
1013
+ }
1014
+ }
1015
+ if (shadowRoot) {
1016
+ let rnIdex = 0;
1017
+ const rnLen = shadowRootNodes.length;
1018
+ for (rnIdex; rnIdex < rnLen; rnIdex++) {
1019
+ shadowRoot.appendChild(shadowRootNodes[rnIdex]);
1020
+ }
1021
+ Array.from(hostElm.childNodes).forEach((node) => {
1022
+ if (node.nodeType === 8 /* CommentNode */ && typeof node["s-sn"] !== "string") {
1023
+ node.parentNode.removeChild(node);
1024
+ }
1025
+ });
1026
+ }
1027
+ hostRef.$hostElement$ = hostElm;
1028
+ endHydrate();
1029
+ };
1030
+ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
1031
+ let childNodeType;
1032
+ let childIdSplt;
1033
+ let childVNode;
1034
+ let i2;
1035
+ const scopeId2 = hostElm["s-sc"];
1036
+ if (node.nodeType === 1 /* ElementNode */) {
1037
+ childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
1038
+ if (childNodeType) {
1039
+ childIdSplt = childNodeType.split(".");
1040
+ if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
1041
+ childVNode = createSimpleVNode({
1042
+ $flags$: 0,
1043
+ $hostId$: childIdSplt[0],
1044
+ $nodeId$: childIdSplt[1],
1045
+ $depth$: childIdSplt[2],
1046
+ $index$: childIdSplt[3],
1047
+ $tag$: node.tagName.toLowerCase(),
1048
+ $elm$: node,
1049
+ // If we don't add the initial classes to the VNode, the first `vdom-render.ts` reconciliation will fail:
1050
+ // client side changes before componentDidLoad will be ignored, `set-accessor.ts` will just take the element's initial classes
1051
+ $attrs$: { class: node.className }
1052
+ });
1053
+ childRenderNodes.push(childVNode);
1054
+ node.removeAttribute(HYDRATE_CHILD_ID);
1055
+ if (!parentVNode.$children$) {
1056
+ parentVNode.$children$ = [];
1057
+ }
1058
+ const slotName = childVNode.$elm$.getAttribute("s-sn");
1059
+ if (typeof slotName === "string") {
1060
+ if (childVNode.$tag$ === "slot-fb") {
1061
+ addSlot(
1062
+ slotName,
1063
+ childIdSplt[2],
1064
+ childVNode,
1065
+ node,
1066
+ parentVNode,
1067
+ childRenderNodes,
1068
+ slotNodes,
1069
+ shadowRootNodes,
1070
+ slottedNodes
1071
+ );
1072
+ }
1073
+ childVNode.$elm$["s-sn"] = slotName;
1074
+ childVNode.$elm$.removeAttribute("s-sn");
1075
+ }
1076
+ if (childVNode.$index$ !== void 0) {
1077
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1078
+ }
1079
+ if (scopeId2) node["s-si"] = scopeId2;
1080
+ parentVNode = childVNode;
1081
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
1082
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1083
+ }
1084
+ }
1085
+ }
1086
+ if (node.shadowRoot) {
1087
+ for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
1088
+ clientHydrate(
1089
+ parentVNode,
1090
+ childRenderNodes,
1091
+ slotNodes,
1092
+ shadowRootNodes,
1093
+ hostElm,
1094
+ node.shadowRoot.childNodes[i2],
1095
+ hostId,
1096
+ slottedNodes
1097
+ );
1098
+ }
1099
+ }
1100
+ const nonShadowNodes = node.__childNodes || node.childNodes;
1101
+ for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
1102
+ clientHydrate(
1103
+ parentVNode,
1104
+ childRenderNodes,
1105
+ slotNodes,
1106
+ shadowRootNodes,
1107
+ hostElm,
1108
+ nonShadowNodes[i2],
1109
+ hostId,
1110
+ slottedNodes
1111
+ );
1112
+ }
1113
+ } else if (node.nodeType === 8 /* CommentNode */) {
1114
+ childIdSplt = node.nodeValue.split(".");
1115
+ if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
1116
+ childNodeType = childIdSplt[0];
1117
+ childVNode = createSimpleVNode({
1118
+ $hostId$: childIdSplt[1],
1119
+ $nodeId$: childIdSplt[2],
1120
+ $depth$: childIdSplt[3],
1121
+ $index$: childIdSplt[4] || "0",
1122
+ $elm$: node,
1123
+ $attrs$: null,
1124
+ $children$: null,
1125
+ $key$: null,
1126
+ $name$: null,
1127
+ $tag$: null,
1128
+ $text$: null
1129
+ });
1130
+ if (childNodeType === TEXT_NODE_ID) {
1131
+ childVNode.$elm$ = node.nextSibling;
1132
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
1133
+ childVNode.$text$ = childVNode.$elm$.textContent;
1134
+ childRenderNodes.push(childVNode);
1135
+ node.remove();
1136
+ if (hostId === childVNode.$hostId$) {
1137
+ if (!parentVNode.$children$) {
1138
+ parentVNode.$children$ = [];
1139
+ }
1140
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1141
+ }
1142
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
1143
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1144
+ }
1145
+ }
1146
+ } else if (childNodeType === COMMENT_NODE_ID) {
1147
+ childVNode.$elm$ = node.nextSibling;
1148
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
1149
+ childRenderNodes.push(childVNode);
1150
+ node.remove();
1151
+ }
1152
+ } else if (childVNode.$hostId$ === hostId) {
1153
+ if (childNodeType === SLOT_NODE_ID) {
1154
+ childVNode.$tag$ = "slot";
1155
+ const slotName = node["s-sn"] = childVNode.$name$ = childIdSplt[5] || "";
1156
+ addSlot(
1157
+ slotName,
1158
+ childIdSplt[2],
1159
+ childVNode,
1160
+ node,
1161
+ parentVNode,
1162
+ childRenderNodes,
1163
+ slotNodes,
1164
+ shadowRootNodes,
1165
+ slottedNodes
1166
+ );
1167
+ } else if (childNodeType === CONTENT_REF_ID) {
1168
+ if (shadowRootNodes) {
1169
+ node.remove();
1170
+ }
1171
+ }
1172
+ }
1173
+ }
1174
+ } else if (parentVNode && parentVNode.$tag$ === "style") {
1175
+ const vnode = newVNode(null, node.textContent);
1176
+ vnode.$elm$ = node;
1177
+ vnode.$index$ = "0";
1178
+ parentVNode.$children$ = [vnode];
1179
+ }
1180
+ return parentVNode;
1181
+ };
1182
+ var initializeDocumentHydrate = (node, orgLocNodes) => {
1183
+ if (node.nodeType === 1 /* ElementNode */) {
1184
+ const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
1185
+ if (componentId) {
1186
+ orgLocNodes.set(componentId, node);
1187
+ }
1188
+ let i2 = 0;
1189
+ if (node.shadowRoot) {
1190
+ for (; i2 < node.shadowRoot.childNodes.length; i2++) {
1191
+ initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
1192
+ }
1193
+ }
1194
+ const nonShadowNodes = node.__childNodes || node.childNodes;
1195
+ for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
1196
+ initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
1197
+ }
1198
+ } else if (node.nodeType === 8 /* CommentNode */) {
1199
+ const childIdSplt = node.nodeValue.split(".");
1200
+ if (childIdSplt[0] === ORG_LOCATION_ID) {
1201
+ orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
1202
+ node.nodeValue = "";
1203
+ node["s-en"] = childIdSplt[3];
1204
+ }
1205
+ }
1206
+ };
1207
+ var createSimpleVNode = (vnode) => {
1208
+ const defaultVNode = {
1209
+ $flags$: 0,
1210
+ $hostId$: null,
1211
+ $nodeId$: null,
1212
+ $depth$: null,
1213
+ $index$: "0",
1214
+ $elm$: null,
1215
+ $attrs$: null,
1216
+ $children$: null,
1217
+ $key$: null,
1218
+ $name$: null,
1219
+ $tag$: null,
1220
+ $text$: null
1221
+ };
1222
+ return { ...defaultVNode, ...vnode };
1223
+ };
1224
+ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
1225
+ node["s-sr"] = true;
1226
+ const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
1227
+ if (shadowRootNodes) {
1228
+ const slot = childVNode.$elm$ = doc.createElement(childVNode.$tag$);
1229
+ if (childVNode.$name$) {
1230
+ childVNode.$elm$.setAttribute("name", slotName);
1231
+ }
1232
+ if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
1233
+ parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1234
+ } else {
1235
+ node.parentNode.insertBefore(childVNode.$elm$, node);
1236
+ }
1237
+ addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
1238
+ node.remove();
1239
+ if (childVNode.$depth$ === "0") {
1240
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1241
+ }
1242
+ } else {
1243
+ const slot = childVNode.$elm$;
1244
+ const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
1245
+ addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
1246
+ if (shouldMove) {
1247
+ parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1248
+ }
1249
+ childRenderNodes.push(childVNode);
1250
+ }
1251
+ slotNodes.push(childVNode);
1252
+ if (!parentVNode.$children$) {
1253
+ parentVNode.$children$ = [];
1254
+ }
1255
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1256
+ }
1257
+ var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1258
+ let slottedNode = slotNode.nextSibling;
1259
+ slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1260
+ while (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (slottedNode.nodeType === 8 /* CommentNode */ && slottedNode.nodeValue.indexOf(".") !== 1 || slottedNode.nodeType === 3 /* TextNode */))) {
1261
+ slottedNode["s-sn"] = slotName;
1262
+ slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1263
+ slottedNode = slottedNode.nextSibling;
1264
+ }
1265
+ };
1266
+ var parsePropertyValue = (propValue, propType) => {
1267
+ if (propValue != null && !isComplexType(propValue)) {
1268
+ if (propType & 4 /* Boolean */) {
1269
+ return propValue === "false" ? false : propValue === "" || !!propValue;
1270
+ }
1271
+ if (propType & 2 /* Number */) {
1272
+ return parseFloat(propValue);
1273
+ }
1274
+ if (propType & 1 /* String */) {
1275
+ return String(propValue);
1276
+ }
1277
+ return propValue;
1278
+ }
1279
+ return propValue;
1280
+ };
1281
+ var getElement = (ref) => getHostRef(ref).$hostElement$ ;
1282
+
1283
+ // src/runtime/event-emitter.ts
1284
+ var createEvent = (ref, name, flags) => {
1285
+ const elm = getElement(ref);
1286
+ return {
1287
+ emit: (detail) => {
1288
+ return emitEvent(elm, name, {
1289
+ bubbles: !!(flags & 4 /* Bubbles */),
1290
+ composed: !!(flags & 2 /* Composed */),
1291
+ cancelable: !!(flags & 1 /* Cancellable */),
1292
+ detail
1293
+ });
1294
+ }
1295
+ };
1296
+ };
1297
+ var emitEvent = (elm, name, opts) => {
1298
+ const ev = plt.ce(name, opts);
1299
+ elm.dispatchEvent(ev);
1300
+ return ev;
1301
+ };
1302
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
1303
+ var registerStyle = (scopeId2, cssText, allowCS) => {
1304
+ let style = styles.get(scopeId2);
1305
+ if (supportsConstructableStylesheets && allowCS) {
1306
+ style = style || new CSSStyleSheet();
1307
+ if (typeof style === "string") {
1308
+ style = cssText;
1309
+ } else {
1310
+ style.replaceSync(cssText);
1058
1311
  }
1059
- } else if (oldVNode.$text$ !== text) {
1060
- elm.data = text;
1312
+ } else {
1313
+ style = cssText;
1061
1314
  }
1315
+ styles.set(scopeId2, style);
1062
1316
  };
1063
- var updateFallbackSlotVisibility = (elm) => {
1064
- const childNodes = elm.childNodes;
1065
- for (const childNode of childNodes) {
1066
- if (childNode.nodeType === 1 /* ElementNode */) {
1067
- if (childNode["s-sr"]) {
1068
- const slotName = childNode["s-sn"];
1069
- childNode.hidden = false;
1070
- for (const siblingNode of childNodes) {
1071
- if (siblingNode !== childNode) {
1072
- if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
1073
- if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
1074
- childNode.hidden = true;
1075
- break;
1317
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
1318
+ var _a;
1319
+ const scopeId2 = getScopeId(cmpMeta);
1320
+ const style = styles.get(scopeId2);
1321
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
1322
+ if (style) {
1323
+ if (typeof style === "string") {
1324
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
1325
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
1326
+ let styleElm;
1327
+ if (!appliedStyles) {
1328
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
1329
+ }
1330
+ if (!appliedStyles.has(scopeId2)) {
1331
+ if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
1332
+ styleElm.innerHTML = style;
1333
+ } else {
1334
+ styleElm = doc.createElement("style");
1335
+ styleElm.innerHTML = style;
1336
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
1337
+ if (nonce != null) {
1338
+ styleElm.setAttribute("nonce", nonce);
1339
+ }
1340
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
1341
+ if (styleContainerNode.nodeName === "HEAD") {
1342
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
1343
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
1344
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
1345
+ } else if ("host" in styleContainerNode) {
1346
+ if (supportsConstructableStylesheets) {
1347
+ const stylesheet = new CSSStyleSheet();
1348
+ stylesheet.replaceSync(style);
1349
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
1350
+ } else {
1351
+ const existingStyleContainer = styleContainerNode.querySelector("style");
1352
+ if (existingStyleContainer) {
1353
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
1354
+ } else {
1355
+ styleContainerNode.prepend(styleElm);
1356
+ }
1076
1357
  }
1077
1358
  } else {
1078
- if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
1079
- childNode.hidden = true;
1080
- break;
1081
- }
1359
+ styleContainerNode.append(styleElm);
1082
1360
  }
1083
1361
  }
1362
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
1363
+ styleContainerNode.insertBefore(styleElm, null);
1364
+ }
1365
+ }
1366
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1367
+ styleElm.innerHTML += SLOT_FB_CSS;
1368
+ }
1369
+ if (appliedStyles) {
1370
+ appliedStyles.add(scopeId2);
1084
1371
  }
1085
1372
  }
1086
- updateFallbackSlotVisibility(childNode);
1373
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
1374
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
1087
1375
  }
1088
1376
  }
1377
+ return scopeId2;
1089
1378
  };
1090
- var nullifyVNodeRefs = (vNode) => {
1091
- {
1092
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1093
- vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1094
- }
1095
- };
1096
- var insertBefore = (parent, newNode, reference) => {
1097
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
1098
- return inserted;
1099
- };
1100
- var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1101
- const hostElm = hostRef.$hostElement$;
1379
+ var attachStyles = (hostRef) => {
1102
1380
  const cmpMeta = hostRef.$cmpMeta$;
1103
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1104
- const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1105
- hostTagName = hostElm.tagName;
1106
- if (cmpMeta.$attrsToReflect$) {
1107
- rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1108
- cmpMeta.$attrsToReflect$.map(
1109
- ([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
1110
- );
1111
- }
1112
- if (isInitialLoad && rootVnode.$attrs$) {
1113
- for (const key of Object.keys(rootVnode.$attrs$)) {
1114
- if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
1115
- rootVnode.$attrs$[key] = hostElm[key];
1116
- }
1117
- }
1118
- }
1119
- rootVnode.$tag$ = null;
1120
- rootVnode.$flags$ |= 4 /* isHost */;
1121
- hostRef.$vnode$ = rootVnode;
1122
- rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
1123
- {
1124
- scopeId = hostElm["s-sc"];
1381
+ const elm = hostRef.$hostElement$;
1382
+ const flags = cmpMeta.$flags$;
1383
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
1384
+ const scopeId2 = addStyle(
1385
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
1386
+ cmpMeta);
1387
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
1388
+ elm["s-sc"] = scopeId2;
1389
+ elm.classList.add(scopeId2 + "-h");
1125
1390
  }
1126
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
1127
- patch(oldVNode, rootVnode, isInitialLoad);
1391
+ endAttachStyles();
1128
1392
  };
1393
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
1129
1394
 
1130
1395
  // src/runtime/update-component.ts
1131
1396
  var attachToAncestor = (hostRef, ancestorComponent) => {
@@ -1346,23 +1611,23 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1346
1611
  var _a, _b;
1347
1612
  const prototype = Cstr.prototype;
1348
1613
  if (cmpMeta.$flags$ & 64 /* formAssociated */ && flags & 1 /* isElementConstructor */) {
1349
- FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach(
1350
- (cbName) => Object.defineProperty(prototype, cbName, {
1614
+ FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((cbName) => {
1615
+ Object.defineProperty(prototype, cbName, {
1351
1616
  value(...args) {
1352
1617
  const hostRef = getHostRef(this);
1353
1618
  const instance = hostRef.$lazyInstance$ ;
1354
1619
  if (!instance) {
1355
- hostRef.$onReadyPromise$.then((instance2) => {
1356
- const cb = instance2[cbName];
1357
- typeof cb === "function" && cb.call(instance2, ...args);
1620
+ hostRef.$onReadyPromise$.then((asyncInstance) => {
1621
+ const cb = asyncInstance[cbName];
1622
+ typeof cb === "function" && cb.call(asyncInstance, ...args);
1358
1623
  });
1359
1624
  } else {
1360
- const cb = instance[cbName];
1625
+ const cb = instance[cbName] ;
1361
1626
  typeof cb === "function" && cb.call(instance, ...args);
1362
1627
  }
1363
1628
  }
1364
- })
1365
- );
1629
+ });
1630
+ });
1366
1631
  }
1367
1632
  if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
1368
1633
  if (Cstr.watchers && !cmpMeta.$watchers$) {
@@ -1371,16 +1636,62 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1371
1636
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1372
1637
  members.map(([memberName, [memberFlags]]) => {
1373
1638
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1374
- Object.defineProperty(prototype, memberName, {
1375
- get() {
1376
- return getValue(this, memberName);
1377
- },
1378
- set(newValue) {
1379
- setValue(this, memberName, newValue, cmpMeta);
1380
- },
1381
- configurable: true,
1382
- enumerable: true
1383
- });
1639
+ if ((memberFlags & 2048 /* Getter */) === 0) {
1640
+ Object.defineProperty(prototype, memberName, {
1641
+ get() {
1642
+ return getValue(this, memberName);
1643
+ },
1644
+ set(newValue) {
1645
+ setValue(this, memberName, newValue, cmpMeta);
1646
+ },
1647
+ configurable: true,
1648
+ enumerable: true
1649
+ });
1650
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
1651
+ {
1652
+ Object.defineProperty(prototype, memberName, {
1653
+ get() {
1654
+ const ref = getHostRef(this);
1655
+ const instance = ref ? ref.$lazyInstance$ : prototype;
1656
+ if (!instance) return;
1657
+ return instance[memberName];
1658
+ },
1659
+ configurable: true,
1660
+ enumerable: true
1661
+ });
1662
+ }
1663
+ if (memberFlags & 4096 /* Setter */) {
1664
+ const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
1665
+ Object.defineProperty(prototype, memberName, {
1666
+ set(newValue) {
1667
+ const ref = getHostRef(this);
1668
+ if (origSetter) {
1669
+ const currentValue = ref.$hostElement$[memberName];
1670
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1671
+ ref.$instanceValues$.set(memberName, currentValue);
1672
+ }
1673
+ origSetter.apply(this, [parsePropertyValue(newValue, cmpMeta.$members$[memberName][0])]);
1674
+ setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
1675
+ return;
1676
+ }
1677
+ if (!ref) return;
1678
+ const setterSetVal = () => {
1679
+ const currentValue = ref.$lazyInstance$[memberName];
1680
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1681
+ ref.$instanceValues$.set(memberName, currentValue);
1682
+ }
1683
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
1684
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1685
+ };
1686
+ if (ref.$lazyInstance$) {
1687
+ setterSetVal();
1688
+ } else {
1689
+ ref.$onReadyPromise$.then(() => setterSetVal());
1690
+ }
1691
+ }
1692
+ });
1693
+ }
1694
+ }
1384
1695
  } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1385
1696
  Object.defineProperty(prototype, memberName, {
1386
1697
  value(...args) {
@@ -1420,7 +1731,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1420
1731
  }
1421
1732
  return;
1422
1733
  }
1423
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1734
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1735
+ if (!propDesc.get || !!propDesc.set) {
1736
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1737
+ }
1424
1738
  });
1425
1739
  };
1426
1740
  Cstr.observedAttributes = Array.from(
@@ -1588,93 +1902,6 @@ var disconnectedCallback = async (elm) => {
1588
1902
  }
1589
1903
  }
1590
1904
  };
1591
- var patchCloneNode = (HostElementPrototype) => {
1592
- const orgCloneNode = HostElementPrototype.cloneNode;
1593
- HostElementPrototype.cloneNode = function(deep) {
1594
- const srcNode = this;
1595
- const isShadowDom = srcNode.shadowRoot && supportsShadow ;
1596
- const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
1597
- if (!isShadowDom && deep) {
1598
- let i2 = 0;
1599
- let slotted, nonStencilNode;
1600
- const stencilPrivates = [
1601
- "s-id",
1602
- "s-cr",
1603
- "s-lr",
1604
- "s-rc",
1605
- "s-sc",
1606
- "s-p",
1607
- "s-cn",
1608
- "s-sr",
1609
- "s-sn",
1610
- "s-hn",
1611
- "s-ol",
1612
- "s-nr",
1613
- "s-si",
1614
- "s-rf",
1615
- "s-scs"
1616
- ];
1617
- for (; i2 < srcNode.childNodes.length; i2++) {
1618
- slotted = srcNode.childNodes[i2]["s-nr"];
1619
- nonStencilNode = stencilPrivates.every((privateField) => !srcNode.childNodes[i2][privateField]);
1620
- if (slotted) {
1621
- if (clonedNode.__appendChild) {
1622
- clonedNode.__appendChild(slotted.cloneNode(true));
1623
- } else {
1624
- clonedNode.appendChild(slotted.cloneNode(true));
1625
- }
1626
- }
1627
- if (nonStencilNode) {
1628
- clonedNode.appendChild(srcNode.childNodes[i2].cloneNode(true));
1629
- }
1630
- }
1631
- }
1632
- return clonedNode;
1633
- };
1634
- };
1635
- var patchSlotAppendChild = (HostElementPrototype) => {
1636
- HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
1637
- HostElementPrototype.appendChild = function(newChild) {
1638
- const slotName = newChild["s-sn"] = getSlotName(newChild);
1639
- const slotNode = getHostSlotNode(this.childNodes, slotName, this.tagName);
1640
- if (slotNode) {
1641
- const slotPlaceholder = document.createTextNode("");
1642
- slotPlaceholder["s-nr"] = newChild;
1643
- slotNode["s-cr"].parentNode.__appendChild(slotPlaceholder);
1644
- newChild["s-ol"] = slotPlaceholder;
1645
- newChild["s-sh"] = slotNode["s-hn"];
1646
- const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
1647
- const appendAfter = slotChildNodes[slotChildNodes.length - 1];
1648
- const insertedNode = insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
1649
- updateFallbackSlotVisibility(this);
1650
- return insertedNode;
1651
- }
1652
- return this.__appendChild(newChild);
1653
- };
1654
- };
1655
- var getSlotName = (node) => node["s-sn"] || node.nodeType === 1 && node.getAttribute("slot") || "";
1656
- var getHostSlotNode = (childNodes, slotName, hostName) => {
1657
- let i2 = 0;
1658
- let childNode;
1659
- for (; i2 < childNodes.length; i2++) {
1660
- childNode = childNodes[i2];
1661
- if (childNode["s-sr"] && childNode["s-sn"] === slotName && childNode["s-hn"] === hostName) {
1662
- return childNode;
1663
- }
1664
- childNode = getHostSlotNode(childNode.childNodes, slotName, hostName);
1665
- if (childNode) {
1666
- return childNode;
1667
- }
1668
- }
1669
- return null;
1670
- };
1671
- var getHostSlotChildNodes = (n, slotName) => {
1672
- const childNodes = [n];
1673
- while ((n = n.nextSibling) && n["s-sn"] === slotName) {
1674
- childNodes.push(n);
1675
- }
1676
- return childNodes;
1677
- };
1678
1905
 
1679
1906
  // src/runtime/bootstrap-lazy.ts
1680
1907
  var bootstrapLazy = (lazyBundles, options = {}) => {
@@ -1861,4 +2088,4 @@ exports.promiseResolve = promiseResolve;
1861
2088
  exports.registerInstance = registerInstance;
1862
2089
  exports.setNonce = setNonce;
1863
2090
 
1864
- //# sourceMappingURL=index-81c11ce2.js.map
2091
+ //# sourceMappingURL=index-4fc1aab1.js.map