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