@govbr-ds/webcomponents 2.0.0-next.25 → 2.0.0-next.27

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 (439) hide show
  1. package/{dist/README.md → README.md} +64 -16
  2. package/package.json +4 -13
  3. package/dist/cjs/app-globals-1c41bab0.js +0 -10
  4. package/dist/cjs/app-globals-1c41bab0.js.map +0 -1
  5. package/dist/cjs/br-avatar.cjs.entry.js +0 -72
  6. package/dist/cjs/br-avatar.cjs.entry.js.map +0 -1
  7. package/dist/cjs/br-button_2.cjs.entry.js +0 -2605
  8. package/dist/cjs/br-button_2.cjs.entry.js.map +0 -1
  9. package/dist/cjs/br-checkbox.cjs.entry.js +0 -77
  10. package/dist/cjs/br-checkbox.cjs.entry.js.map +0 -1
  11. package/dist/cjs/br-checkgroup.cjs.entry.js +0 -93
  12. package/dist/cjs/br-checkgroup.cjs.entry.js.map +0 -1
  13. package/dist/cjs/br-dropdown.cjs.entry.js +0 -101
  14. package/dist/cjs/br-dropdown.cjs.entry.js.map +0 -1
  15. package/dist/cjs/br-input_3.cjs.entry.js +0 -335
  16. package/dist/cjs/br-input_3.cjs.entry.js.map +0 -1
  17. package/dist/cjs/br-item.cjs.entry.js +0 -181
  18. package/dist/cjs/br-item.cjs.entry.js.map +0 -1
  19. package/dist/cjs/br-loading.cjs.entry.js +0 -39
  20. package/dist/cjs/br-loading.cjs.entry.js.map +0 -1
  21. package/dist/cjs/br-message.cjs.entry.js +0 -69
  22. package/dist/cjs/br-message.cjs.entry.js.map +0 -1
  23. package/dist/cjs/br-select.cjs.entry.js +0 -272
  24. package/dist/cjs/br-select.cjs.entry.js.map +0 -1
  25. package/dist/cjs/br-switch.cjs.entry.js +0 -86
  26. package/dist/cjs/br-switch.cjs.entry.js.map +0 -1
  27. package/dist/cjs/br-tag.cjs.entry.js +0 -83
  28. package/dist/cjs/br-tag.cjs.entry.js.map +0 -1
  29. package/dist/cjs/br-textarea.cjs.entry.js +0 -88
  30. package/dist/cjs/br-textarea.cjs.entry.js.map +0 -1
  31. package/dist/cjs/br-upload.cjs.entry.js +0 -116
  32. package/dist/cjs/br-upload.cjs.entry.js.map +0 -1
  33. package/dist/cjs/index-38d8aa64.js +0 -2090
  34. package/dist/cjs/index-38d8aa64.js.map +0 -1
  35. package/dist/cjs/index.cjs.js +0 -7
  36. package/dist/cjs/index.cjs.js.map +0 -1
  37. package/dist/cjs/loader.cjs.js +0 -20
  38. package/dist/cjs/loader.cjs.js.map +0 -1
  39. package/dist/cjs/webcomponents.cjs.js +0 -51
  40. package/dist/cjs/webcomponents.cjs.js.map +0 -1
  41. package/dist/collection/assets/wc.svg +0 -1
  42. package/dist/collection/collection-manifest.json +0 -28
  43. package/dist/collection/components/avatar/avatar.css +0 -1
  44. package/dist/collection/components/avatar/avatar.js +0 -258
  45. package/dist/collection/components/avatar/avatar.js.map +0 -1
  46. package/dist/collection/components/button/button.css +0 -1
  47. package/dist/collection/components/button/button.js +0 -276
  48. package/dist/collection/components/button/button.js.map +0 -1
  49. package/dist/collection/components/checkbox/checkbox.css +0 -1
  50. package/dist/collection/components/checkbox/checkbox.js +0 -303
  51. package/dist/collection/components/checkbox/checkbox.js.map +0 -1
  52. package/dist/collection/components/checkgroup/checkgroup.css +0 -1
  53. package/dist/collection/components/checkgroup/checkgroup.js +0 -214
  54. package/dist/collection/components/checkgroup/checkgroup.js.map +0 -1
  55. package/dist/collection/components/dropdown/dropdown.css +0 -1
  56. package/dist/collection/components/dropdown/dropdown.js +0 -213
  57. package/dist/collection/components/dropdown/dropdown.js.map +0 -1
  58. package/dist/collection/components/icon/icon.css +0 -1
  59. package/dist/collection/components/icon/icon.js +0 -211
  60. package/dist/collection/components/icon/icon.js.map +0 -1
  61. package/dist/collection/components/input/input.css +0 -1
  62. package/dist/collection/components/input/input.js +0 -677
  63. package/dist/collection/components/input/input.js.map +0 -1
  64. package/dist/collection/components/item/item.css +0 -1
  65. package/dist/collection/components/item/item.js +0 -462
  66. package/dist/collection/components/item/item.js.map +0 -1
  67. package/dist/collection/components/list/list.css +0 -1
  68. package/dist/collection/components/list/list.js +0 -165
  69. package/dist/collection/components/list/list.js.map +0 -1
  70. package/dist/collection/components/loading/loading.css +0 -1
  71. package/dist/collection/components/loading/loading.js +0 -148
  72. package/dist/collection/components/loading/loading.js.map +0 -1
  73. package/dist/collection/components/message/message.css +0 -1
  74. package/dist/collection/components/message/message.js +0 -271
  75. package/dist/collection/components/message/message.js.map +0 -1
  76. package/dist/collection/components/radio/radio.css +0 -1
  77. package/dist/collection/components/radio/radio.js +0 -296
  78. package/dist/collection/components/radio/radio.js.map +0 -1
  79. package/dist/collection/components/select/select.css +0 -1
  80. package/dist/collection/components/select/select.js +0 -506
  81. package/dist/collection/components/select/select.js.map +0 -1
  82. package/dist/collection/components/switch/switch.css +0 -1
  83. package/dist/collection/components/switch/switch.js +0 -351
  84. package/dist/collection/components/switch/switch.js.map +0 -1
  85. package/dist/collection/components/tag/tag.css +0 -1
  86. package/dist/collection/components/tag/tag.js +0 -275
  87. package/dist/collection/components/tag/tag.js.map +0 -1
  88. package/dist/collection/components/textarea/textarea.css +0 -1
  89. package/dist/collection/components/textarea/textarea.js +0 -340
  90. package/dist/collection/components/textarea/textarea.js.map +0 -1
  91. package/dist/collection/components/upload/upload.css +0 -1
  92. package/dist/collection/components/upload/upload.js +0 -229
  93. package/dist/collection/components/upload/upload.js.map +0 -1
  94. package/dist/collection/index.js +0 -2
  95. package/dist/collection/index.js.map +0 -1
  96. package/dist/collection/pages/components/button/index.js +0 -18
  97. package/dist/collection/pages/components/checkbox/index.js +0 -18
  98. package/dist/collection/pages/components/checkgroup/index.js +0 -20
  99. package/dist/collection/pages/components/dropdown/index.js +0 -18
  100. package/dist/collection/pages/components/icon/index.js +0 -18
  101. package/dist/collection/pages/components/input/index.js +0 -27
  102. package/dist/collection/pages/components/item/index.js +0 -18
  103. package/dist/collection/pages/components/list/index.js +0 -19
  104. package/dist/collection/pages/components/message/index.js +0 -18
  105. package/dist/collection/pages/components/radio/index.js +0 -19
  106. package/dist/collection/pages/components/select/index.js +0 -18
  107. package/dist/collection/pages/components/switch/index.js +0 -18
  108. package/dist/collection/pages/components/tag/index.js +0 -18
  109. package/dist/collection/pages/components/textarea/index.js +0 -19
  110. package/dist/collection/pages/components/upload/index.js +0 -19
  111. package/dist/collection/pages/scripts/menu.js +0 -246
  112. package/dist/collection/pages/scripts/pageLoader.js +0 -180
  113. package/dist/collection/utils/interfaces.js +0 -2
  114. package/dist/collection/utils/interfaces.js.map +0 -1
  115. package/dist/collection/value-accessors/angular-value-accessor-config.js +0 -42
  116. package/dist/collection/value-accessors/angular-value-accessor-config.js.map +0 -1
  117. package/dist/collection/value-accessors/index.js +0 -6
  118. package/dist/collection/value-accessors/index.js.map +0 -1
  119. package/dist/collection/value-accessors/vue-model-config.js +0 -16
  120. package/dist/collection/value-accessors/vue-model-config.js.map +0 -1
  121. package/dist/components/br-avatar.d.ts +0 -11
  122. package/dist/components/br-avatar.js +0 -148
  123. package/dist/components/br-avatar.js.map +0 -1
  124. package/dist/components/br-button.d.ts +0 -11
  125. package/dist/components/br-button.js +0 -11
  126. package/dist/components/br-button.js.map +0 -1
  127. package/dist/components/br-checkbox.d.ts +0 -11
  128. package/dist/components/br-checkbox.js +0 -11
  129. package/dist/components/br-checkbox.js.map +0 -1
  130. package/dist/components/br-checkgroup.d.ts +0 -11
  131. package/dist/components/br-checkgroup.js +0 -154
  132. package/dist/components/br-checkgroup.js.map +0 -1
  133. package/dist/components/br-dropdown.d.ts +0 -11
  134. package/dist/components/br-dropdown.js +0 -157
  135. package/dist/components/br-dropdown.js.map +0 -1
  136. package/dist/components/br-icon.d.ts +0 -11
  137. package/dist/components/br-icon.js +0 -11
  138. package/dist/components/br-icon.js.map +0 -1
  139. package/dist/components/br-input.d.ts +0 -11
  140. package/dist/components/br-input.js +0 -11
  141. package/dist/components/br-input.js.map +0 -1
  142. package/dist/components/br-item.d.ts +0 -11
  143. package/dist/components/br-item.js +0 -244
  144. package/dist/components/br-item.js.map +0 -1
  145. package/dist/components/br-list.d.ts +0 -11
  146. package/dist/components/br-list.js +0 -11
  147. package/dist/components/br-list.js.map +0 -1
  148. package/dist/components/br-loading.d.ts +0 -11
  149. package/dist/components/br-loading.js +0 -98
  150. package/dist/components/br-loading.js.map +0 -1
  151. package/dist/components/br-message.d.ts +0 -11
  152. package/dist/components/br-message.js +0 -153
  153. package/dist/components/br-message.js.map +0 -1
  154. package/dist/components/br-radio.d.ts +0 -11
  155. package/dist/components/br-radio.js +0 -11
  156. package/dist/components/br-radio.js.map +0 -1
  157. package/dist/components/br-select.d.ts +0 -11
  158. package/dist/components/br-select.js +0 -408
  159. package/dist/components/br-select.js.map +0 -1
  160. package/dist/components/br-switch.d.ts +0 -11
  161. package/dist/components/br-switch.js +0 -143
  162. package/dist/components/br-switch.js.map +0 -1
  163. package/dist/components/br-tag.d.ts +0 -11
  164. package/dist/components/br-tag.js +0 -159
  165. package/dist/components/br-tag.js.map +0 -1
  166. package/dist/components/br-textarea.d.ts +0 -11
  167. package/dist/components/br-textarea.js +0 -165
  168. package/dist/components/br-textarea.js.map +0 -1
  169. package/dist/components/br-upload.d.ts +0 -11
  170. package/dist/components/br-upload.js +0 -217
  171. package/dist/components/br-upload.js.map +0 -1
  172. package/dist/components/index.d.ts +0 -70
  173. package/dist/components/index.js +0 -39
  174. package/dist/components/index.js.map +0 -1
  175. package/dist/components/p-37223c41.js +0 -299
  176. package/dist/components/p-37223c41.js.map +0 -1
  177. package/dist/components/p-596c9250.js +0 -1973
  178. package/dist/components/p-596c9250.js.map +0 -1
  179. package/dist/components/p-6b65d09e.js +0 -117
  180. package/dist/components/p-6b65d09e.js.map +0 -1
  181. package/dist/components/p-8b746a9a.js +0 -2536
  182. package/dist/components/p-8b746a9a.js.map +0 -1
  183. package/dist/components/p-971f7fbf.js +0 -121
  184. package/dist/components/p-971f7fbf.js.map +0 -1
  185. package/dist/components/p-c0095860.js +0 -113
  186. package/dist/components/p-c0095860.js.map +0 -1
  187. package/dist/components/p-f86640a9.js +0 -133
  188. package/dist/components/p-f86640a9.js.map +0 -1
  189. package/dist/custom-docs/docs-utils.js +0 -123
  190. package/dist/custom-docs/docs-utils.js.map +0 -1
  191. package/dist/custom-docs/markdown-css-props.js +0 -25
  192. package/dist/custom-docs/markdown-css-props.js.map +0 -1
  193. package/dist/custom-docs/markdown-dependencies.js +0 -58
  194. package/dist/custom-docs/markdown-dependencies.js.map +0 -1
  195. package/dist/custom-docs/markdown-events-all.js +0 -28
  196. package/dist/custom-docs/markdown-events-all.js.map +0 -1
  197. package/dist/custom-docs/markdown-events.js +0 -33
  198. package/dist/custom-docs/markdown-events.js.map +0 -1
  199. package/dist/custom-docs/markdown-examples.js +0 -22
  200. package/dist/custom-docs/markdown-examples.js.map +0 -1
  201. package/dist/custom-docs/markdown-methods-all.js +0 -27
  202. package/dist/custom-docs/markdown-methods-all.js.map +0 -1
  203. package/dist/custom-docs/markdown-methods.js +0 -55
  204. package/dist/custom-docs/markdown-methods.js.map +0 -1
  205. package/dist/custom-docs/markdown-overview.js +0 -20
  206. package/dist/custom-docs/markdown-overview.js.map +0 -1
  207. package/dist/custom-docs/markdown-parts.js +0 -29
  208. package/dist/custom-docs/markdown-parts.js.map +0 -1
  209. package/dist/custom-docs/markdown-props-all.js +0 -53
  210. package/dist/custom-docs/markdown-props-all.js.map +0 -1
  211. package/dist/custom-docs/markdown-props.js +0 -56
  212. package/dist/custom-docs/markdown-props.js.map +0 -1
  213. package/dist/custom-docs/markdown-sections.js +0 -29
  214. package/dist/custom-docs/markdown-sections.js.map +0 -1
  215. package/dist/custom-docs/markdown-slots-all.js +0 -21
  216. package/dist/custom-docs/markdown-slots-all.js.map +0 -1
  217. package/dist/custom-docs/markdown-slots.js +0 -29
  218. package/dist/custom-docs/markdown-slots.js.map +0 -1
  219. package/dist/custom-docs/output-docs.js +0 -150
  220. package/dist/custom-docs/output-docs.js.map +0 -1
  221. package/dist/custom-docs/path.js +0 -188
  222. package/dist/custom-docs/path.js.map +0 -1
  223. package/dist/custom-docs/sort-markdown-tables.js +0 -31
  224. package/dist/custom-docs/sort-markdown-tables.js.map +0 -1
  225. package/dist/esm/app-globals-85a24810.js +0 -8
  226. package/dist/esm/app-globals-85a24810.js.map +0 -1
  227. package/dist/esm/br-avatar.entry.js +0 -68
  228. package/dist/esm/br-avatar.entry.js.map +0 -1
  229. package/dist/esm/br-button_2.entry.js +0 -2600
  230. package/dist/esm/br-button_2.entry.js.map +0 -1
  231. package/dist/esm/br-checkbox.entry.js +0 -73
  232. package/dist/esm/br-checkbox.entry.js.map +0 -1
  233. package/dist/esm/br-checkgroup.entry.js +0 -89
  234. package/dist/esm/br-checkgroup.entry.js.map +0 -1
  235. package/dist/esm/br-dropdown.entry.js +0 -97
  236. package/dist/esm/br-dropdown.entry.js.map +0 -1
  237. package/dist/esm/br-input_3.entry.js +0 -329
  238. package/dist/esm/br-input_3.entry.js.map +0 -1
  239. package/dist/esm/br-item.entry.js +0 -177
  240. package/dist/esm/br-item.entry.js.map +0 -1
  241. package/dist/esm/br-loading.entry.js +0 -35
  242. package/dist/esm/br-loading.entry.js.map +0 -1
  243. package/dist/esm/br-message.entry.js +0 -65
  244. package/dist/esm/br-message.entry.js.map +0 -1
  245. package/dist/esm/br-select.entry.js +0 -268
  246. package/dist/esm/br-select.entry.js.map +0 -1
  247. package/dist/esm/br-switch.entry.js +0 -82
  248. package/dist/esm/br-switch.entry.js.map +0 -1
  249. package/dist/esm/br-tag.entry.js +0 -79
  250. package/dist/esm/br-tag.entry.js.map +0 -1
  251. package/dist/esm/br-textarea.entry.js +0 -84
  252. package/dist/esm/br-textarea.entry.js.map +0 -1
  253. package/dist/esm/br-upload.entry.js +0 -112
  254. package/dist/esm/br-upload.entry.js.map +0 -1
  255. package/dist/esm/index-cf439c7a.js +0 -2060
  256. package/dist/esm/index-cf439c7a.js.map +0 -1
  257. package/dist/esm/index.js +0 -5
  258. package/dist/esm/index.js.map +0 -1
  259. package/dist/esm/loader.js +0 -16
  260. package/dist/esm/loader.js.map +0 -1
  261. package/dist/esm/polyfills/core-js.js +0 -11
  262. package/dist/esm/polyfills/dom.js +0 -79
  263. package/dist/esm/polyfills/es5-html-element.js +0 -1
  264. package/dist/esm/polyfills/index.js +0 -34
  265. package/dist/esm/polyfills/system.js +0 -6
  266. package/dist/esm/webcomponents.js +0 -46
  267. package/dist/esm/webcomponents.js.map +0 -1
  268. package/dist/esm-es5/app-globals-85a24810.js +0 -8
  269. package/dist/esm-es5/app-globals-85a24810.js.map +0 -1
  270. package/dist/esm-es5/br-avatar.entry.js +0 -114
  271. package/dist/esm-es5/br-avatar.entry.js.map +0 -1
  272. package/dist/esm-es5/br-button_2.entry.js +0 -2670
  273. package/dist/esm-es5/br-button_2.entry.js.map +0 -1
  274. package/dist/esm-es5/br-checkbox.entry.js +0 -223
  275. package/dist/esm-es5/br-checkbox.entry.js.map +0 -1
  276. package/dist/esm-es5/br-checkgroup.entry.js +0 -136
  277. package/dist/esm-es5/br-checkgroup.entry.js.map +0 -1
  278. package/dist/esm-es5/br-dropdown.entry.js +0 -266
  279. package/dist/esm-es5/br-dropdown.entry.js.map +0 -1
  280. package/dist/esm-es5/br-input_3.entry.js +0 -590
  281. package/dist/esm-es5/br-input_3.entry.js.map +0 -1
  282. package/dist/esm-es5/br-item.entry.js +0 -232
  283. package/dist/esm-es5/br-item.entry.js.map +0 -1
  284. package/dist/esm-es5/br-loading.entry.js +0 -79
  285. package/dist/esm-es5/br-loading.entry.js.map +0 -1
  286. package/dist/esm-es5/br-message.entry.js +0 -117
  287. package/dist/esm-es5/br-message.entry.js.map +0 -1
  288. package/dist/esm-es5/br-select.entry.js +0 -496
  289. package/dist/esm-es5/br-select.entry.js.map +0 -1
  290. package/dist/esm-es5/br-switch.entry.js +0 -236
  291. package/dist/esm-es5/br-switch.entry.js.map +0 -1
  292. package/dist/esm-es5/br-tag.entry.js +0 -120
  293. package/dist/esm-es5/br-tag.entry.js.map +0 -1
  294. package/dist/esm-es5/br-textarea.entry.js +0 -278
  295. package/dist/esm-es5/br-textarea.entry.js.map +0 -1
  296. package/dist/esm-es5/br-upload.entry.js +0 -201
  297. package/dist/esm-es5/br-upload.entry.js.map +0 -1
  298. package/dist/esm-es5/index-cf439c7a.js +0 -2539
  299. package/dist/esm-es5/index-cf439c7a.js.map +0 -1
  300. package/dist/esm-es5/index.js +0 -6
  301. package/dist/esm-es5/index.js.map +0 -1
  302. package/dist/esm-es5/loader.js +0 -344
  303. package/dist/esm-es5/loader.js.map +0 -1
  304. package/dist/esm-es5/webcomponents.js +0 -374
  305. package/dist/esm-es5/webcomponents.js.map +0 -1
  306. package/dist/hydrate/index.d.ts +0 -242
  307. package/dist/hydrate/index.js +0 -22744
  308. package/dist/hydrate/index.mjs +0 -22736
  309. package/dist/hydrate/package.json +0 -12
  310. package/dist/index.cjs.js +0 -1
  311. package/dist/index.js +0 -1
  312. package/dist/loader/cdn.js +0 -5
  313. package/dist/loader/index.cjs.js +0 -5
  314. package/dist/loader/index.d.ts +0 -24
  315. package/dist/loader/index.es2017.js +0 -5
  316. package/dist/loader/index.js +0 -6
  317. package/dist/loader/package.json +0 -11
  318. package/dist/playwright.config.js +0 -38
  319. package/dist/playwright.config.js.map +0 -1
  320. package/dist/stencil.config.js +0 -155
  321. package/dist/stencil.config.js.map +0 -1
  322. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/packages/webcomponents/.stencil/packages/webcomponents/custom-docs/docs-utils.d.ts +0 -7
  323. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/packages/webcomponents/.stencil/packages/webcomponents/custom-docs/markdown-css-props.d.ts +0 -2
  324. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/packages/webcomponents/.stencil/packages/webcomponents/custom-docs/markdown-dependencies.d.ts +0 -2
  325. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/packages/webcomponents/.stencil/packages/webcomponents/custom-docs/markdown-events-all.d.ts +0 -2
  326. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/packages/webcomponents/.stencil/packages/webcomponents/custom-docs/markdown-events.d.ts +0 -2
  327. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/packages/webcomponents/.stencil/packages/webcomponents/custom-docs/markdown-examples.d.ts +0 -2
  328. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/packages/webcomponents/.stencil/packages/webcomponents/custom-docs/markdown-methods-all.d.ts +0 -2
  329. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/packages/webcomponents/.stencil/packages/webcomponents/custom-docs/markdown-methods.d.ts +0 -2
  330. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/packages/webcomponents/.stencil/packages/webcomponents/custom-docs/markdown-overview.d.ts +0 -6
  331. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/packages/webcomponents/.stencil/packages/webcomponents/custom-docs/markdown-parts.d.ts +0 -7
  332. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/packages/webcomponents/.stencil/packages/webcomponents/custom-docs/markdown-props-all.d.ts +0 -2
  333. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/packages/webcomponents/.stencil/packages/webcomponents/custom-docs/markdown-props.d.ts +0 -2
  334. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/packages/webcomponents/.stencil/packages/webcomponents/custom-docs/markdown-sections.d.ts +0 -2
  335. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/packages/webcomponents/.stencil/packages/webcomponents/custom-docs/markdown-slots-all.d.ts +0 -2
  336. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/packages/webcomponents/.stencil/packages/webcomponents/custom-docs/markdown-slots.d.ts +0 -7
  337. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/packages/webcomponents/.stencil/packages/webcomponents/custom-docs/output-docs.d.ts +0 -2
  338. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/packages/webcomponents/.stencil/packages/webcomponents/custom-docs/path.d.ts +0 -36
  339. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/packages/webcomponents/.stencil/packages/webcomponents/custom-docs/sort-markdown-tables.d.ts +0 -1
  340. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/packages/webcomponents/.stencil/packages/webcomponents/playwright.config.d.ts +0 -5
  341. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/packages/webcomponents/.stencil/packages/webcomponents/stencil.config.d.ts +0 -2
  342. package/dist/types/components/avatar/avatar.d.ts +0 -63
  343. package/dist/types/components/button/button.d.ts +0 -67
  344. package/dist/types/components/checkbox/checkbox.d.ts +0 -77
  345. package/dist/types/components/checkgroup/checkgroup.d.ts +0 -52
  346. package/dist/types/components/dropdown/dropdown.d.ts +0 -67
  347. package/dist/types/components/icon/icon.d.ts +0 -61
  348. package/dist/types/components/input/input.d.ts +0 -158
  349. package/dist/types/components/item/item.d.ts +0 -102
  350. package/dist/types/components/list/list.d.ts +0 -37
  351. package/dist/types/components/loading/loading.d.ts +0 -37
  352. package/dist/types/components/message/message.d.ts +0 -75
  353. package/dist/types/components/radio/radio.d.ts +0 -77
  354. package/dist/types/components/select/select.d.ts +0 -93
  355. package/dist/types/components/switch/switch.d.ts +0 -80
  356. package/dist/types/components/tag/tag.d.ts +0 -69
  357. package/dist/types/components/textarea/textarea.d.ts +0 -70
  358. package/dist/types/components/upload/upload.d.ts +0 -66
  359. package/dist/types/components.d.ts +0 -1864
  360. package/dist/types/index.d.ts +0 -10
  361. package/dist/types/stencil-public-runtime.d.ts +0 -1680
  362. package/dist/types/utils/interfaces.d.ts +0 -3
  363. package/dist/types/value-accessors/angular-value-accessor-config.d.ts +0 -6
  364. package/dist/types/value-accessors/index.d.ts +0 -2
  365. package/dist/types/value-accessors/vue-model-config.d.ts +0 -2
  366. package/dist/webcomponents/index.esm.js +0 -5
  367. package/dist/webcomponents/index.esm.js.map +0 -1
  368. package/dist/webcomponents/p-0f563c6d.system.js +0 -383
  369. package/dist/webcomponents/p-0f563c6d.system.js.map +0 -1
  370. package/dist/webcomponents/p-10985792.system.entry.js +0 -230
  371. package/dist/webcomponents/p-10985792.system.entry.js.map +0 -1
  372. package/dist/webcomponents/p-14a384f2.entry.js +0 -109
  373. package/dist/webcomponents/p-14a384f2.entry.js.map +0 -1
  374. package/dist/webcomponents/p-155ec097.entry.js +0 -95
  375. package/dist/webcomponents/p-155ec097.entry.js.map +0 -1
  376. package/dist/webcomponents/p-179b51f2.js +0 -7
  377. package/dist/webcomponents/p-179b51f2.js.map +0 -1
  378. package/dist/webcomponents/p-1db3ac45.entry.js +0 -111
  379. package/dist/webcomponents/p-1db3ac45.entry.js.map +0 -1
  380. package/dist/webcomponents/p-1f892306.entry.js +0 -175
  381. package/dist/webcomponents/p-1f892306.entry.js.map +0 -1
  382. package/dist/webcomponents/p-1fce4e35.system.entry.js +0 -2529
  383. package/dist/webcomponents/p-1fce4e35.system.entry.js.map +0 -1
  384. package/dist/webcomponents/p-25ce77ce.entry.js +0 -69
  385. package/dist/webcomponents/p-25ce77ce.entry.js.map +0 -1
  386. package/dist/webcomponents/p-2912177b.system.js +0 -11
  387. package/dist/webcomponents/p-2912177b.system.js.map +0 -1
  388. package/dist/webcomponents/p-3303bca8.system.js +0 -2340
  389. package/dist/webcomponents/p-3303bca8.system.js.map +0 -1
  390. package/dist/webcomponents/p-353f7a8d.entry.js +0 -107
  391. package/dist/webcomponents/p-353f7a8d.entry.js.map +0 -1
  392. package/dist/webcomponents/p-4494271d.system.entry.js +0 -273
  393. package/dist/webcomponents/p-4494271d.system.entry.js.map +0 -1
  394. package/dist/webcomponents/p-46b03580.system.entry.js +0 -587
  395. package/dist/webcomponents/p-46b03580.system.entry.js.map +0 -1
  396. package/dist/webcomponents/p-47dc547d.system.entry.js +0 -126
  397. package/dist/webcomponents/p-47dc547d.system.entry.js.map +0 -1
  398. package/dist/webcomponents/p-48acc4df.entry.js +0 -132
  399. package/dist/webcomponents/p-48acc4df.entry.js.map +0 -1
  400. package/dist/webcomponents/p-4ae4d905.system.js +0 -13
  401. package/dist/webcomponents/p-4ae4d905.system.js.map +0 -1
  402. package/dist/webcomponents/p-4b224106.system.entry.js +0 -243
  403. package/dist/webcomponents/p-4b224106.system.entry.js.map +0 -1
  404. package/dist/webcomponents/p-4f5174af.entry.js +0 -114
  405. package/dist/webcomponents/p-4f5174af.entry.js.map +0 -1
  406. package/dist/webcomponents/p-595446b3.entry.js +0 -433
  407. package/dist/webcomponents/p-595446b3.entry.js.map +0 -1
  408. package/dist/webcomponents/p-5f5dc571.system.entry.js +0 -502
  409. package/dist/webcomponents/p-5f5dc571.system.entry.js.map +0 -1
  410. package/dist/webcomponents/p-758d622a.system.entry.js +0 -206
  411. package/dist/webcomponents/p-758d622a.system.entry.js.map +0 -1
  412. package/dist/webcomponents/p-78f72c1c.entry.js +0 -120
  413. package/dist/webcomponents/p-78f72c1c.entry.js.map +0 -1
  414. package/dist/webcomponents/p-89082a8e.system.entry.js +0 -142
  415. package/dist/webcomponents/p-89082a8e.system.entry.js.map +0 -1
  416. package/dist/webcomponents/p-90ed54f3.entry.js +0 -324
  417. package/dist/webcomponents/p-90ed54f3.entry.js.map +0 -1
  418. package/dist/webcomponents/p-93dc120b.system.entry.js +0 -124
  419. package/dist/webcomponents/p-93dc120b.system.entry.js.map +0 -1
  420. package/dist/webcomponents/p-b61b6b8c.system.entry.js +0 -85
  421. package/dist/webcomponents/p-b61b6b8c.system.entry.js.map +0 -1
  422. package/dist/webcomponents/p-bde61e4e.js +0 -2092
  423. package/dist/webcomponents/p-bde61e4e.js.map +0 -1
  424. package/dist/webcomponents/p-ca959987.system.entry.js +0 -239
  425. package/dist/webcomponents/p-ca959987.system.entry.js.map +0 -1
  426. package/dist/webcomponents/p-e7abbcad.system.entry.js +0 -120
  427. package/dist/webcomponents/p-e7abbcad.system.entry.js.map +0 -1
  428. package/dist/webcomponents/p-ecd2abe7.entry.js +0 -132
  429. package/dist/webcomponents/p-ecd2abe7.entry.js.map +0 -1
  430. package/dist/webcomponents/p-f0cfa247.entry.js +0 -210
  431. package/dist/webcomponents/p-f0cfa247.entry.js.map +0 -1
  432. package/dist/webcomponents/p-f3417a97.entry.js +0 -2589
  433. package/dist/webcomponents/p-f3417a97.entry.js.map +0 -1
  434. package/dist/webcomponents/p-f466c5b5.system.entry.js +0 -285
  435. package/dist/webcomponents/p-f466c5b5.system.entry.js.map +0 -1
  436. package/dist/webcomponents/webcomponents.esm.js +0 -246
  437. package/dist/webcomponents/webcomponents.esm.js.map +0 -1
  438. package/dist/webcomponents/webcomponents.js +0 -127
  439. /package/{dist/LICENSE → LICENSE} +0 -0
@@ -1,2092 +0,0 @@
1
- /*!
2
- * Construído com @govbr-ds/webcomponents
3
- */
4
- const e = "webcomponents";
5
-
6
- const t = /* webcomponents */ {
7
- allRenderFn: true,
8
- appendChildSlotFix: true,
9
- asyncLoading: true,
10
- asyncQueue: false,
11
- attachStyles: true,
12
- cloneNodeFix: true,
13
- cmpDidLoad: true,
14
- cmpDidRender: false,
15
- cmpDidUnload: false,
16
- cmpDidUpdate: false,
17
- cmpShouldUpdate: false,
18
- cmpWillLoad: true,
19
- cmpWillRender: false,
20
- cmpWillUpdate: false,
21
- connectedCallback: true,
22
- constructableCSS: true,
23
- cssAnnotations: true,
24
- devTools: false,
25
- disconnectedCallback: true,
26
- element: false,
27
- event: true,
28
- experimentalScopedSlotChanges: false,
29
- experimentalSlotFixes: false,
30
- formAssociated: true,
31
- hasRenderFn: true,
32
- hostListener: true,
33
- hostListenerTarget: true,
34
- hostListenerTargetBody: false,
35
- hostListenerTargetDocument: true,
36
- hostListenerTargetParent: false,
37
- hostListenerTargetWindow: true,
38
- hotModuleReplacement: false,
39
- hydrateClientSide: true,
40
- hydrateServerSide: false,
41
- hydratedAttribute: false,
42
- hydratedClass: true,
43
- hydratedSelectorName: "hydrated",
44
- initializeNextTick: false,
45
- invisiblePrehydration: true,
46
- isDebug: true,
47
- isDev: false,
48
- isTesting: false,
49
- lazyLoad: true,
50
- lifecycle: true,
51
- lifecycleDOMEvents: true,
52
- member: true,
53
- method: true,
54
- mode: false,
55
- observeAttribute: true,
56
- profile: false,
57
- prop: true,
58
- propBoolean: true,
59
- propMutable: true,
60
- propNumber: true,
61
- propString: true,
62
- reflect: true,
63
- scoped: false,
64
- scopedSlotTextContentFix: false,
65
- scriptDataOpts: false,
66
- shadowDelegatesFocus: false,
67
- shadowDom: true,
68
- slot: true,
69
- slotChildNodesFix: false,
70
- slotRelocation: false,
71
- state: true,
72
- style: true,
73
- svg: false,
74
- taskQueue: true,
75
- transformTagName: false,
76
- updatable: true,
77
- vdomAttribute: true,
78
- vdomClass: true,
79
- vdomFunctional: true,
80
- vdomKey: true,
81
- vdomListener: true,
82
- vdomPropOrAttr: true,
83
- vdomRef: true,
84
- vdomRender: true,
85
- vdomStyle: true,
86
- vdomText: true,
87
- vdomXlink: true,
88
- watchCallback: true
89
- };
90
-
91
- /*
92
- Stencil Client Platform v4.23.0 | MIT Licensed | https://stenciljs.com
93
- */ var n = Object.defineProperty;
94
-
95
- var __export = (e, t) => {
96
- for (var s in t) n(e, s, {
97
- get: t[s],
98
- enumerable: true
99
- });
100
- };
101
-
102
- var s = new WeakMap;
103
-
104
- var getHostRef = e => s.get(e);
105
-
106
- var registerInstance = (e, t) => s.set(t._$$lazyInstance$$_ = e, t);
107
-
108
- var registerHost = (e, t) => {
109
- const n = {
110
- _$$flags$$_: 0,
111
- $hostElement$: e,
112
- _$$cmpMeta$$_: t,
113
- _$$instanceValues$$_: new Map
114
- };
115
- {
116
- n._$$onInstancePromise$$_ = new Promise((e => n._$$onInstanceResolve$$_ = e));
117
- }
118
- {
119
- n._$$onReadyPromise$$_ = new Promise((e => n._$$onReadyResolve$$_ = e));
120
- e["s-p"] = [];
121
- e["s-rc"] = [];
122
- }
123
- return s.set(e, n);
124
- };
125
-
126
- var isMemberInElement = (e, t) => t in e;
127
-
128
- var consoleError = (e, t) => (0, console.error)(e, t)
129
- // src/client/client-load-module.ts
130
- ;
131
-
132
- var r = new Map;
133
-
134
- var loadModule = (e, t, n) => {
135
- const s = e._$$tagName$$_.replace(/-/g, "_");
136
- const l = e._$$lazyBundleId$$_;
137
- if (!l) {
138
- return void 0;
139
- }
140
- const o = r.get(l);
141
- if (o) {
142
- return o[s];
143
- }
144
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/ return import(
145
- /* @vite-ignore */
146
- /* webpackInclude: /\.entry\.js$/ */
147
- /* webpackExclude: /\.system\.entry\.js$/ */
148
- /* webpackMode: "lazy" */
149
- `./${l}.entry.js${""}`).then((e => {
150
- {
151
- r.set(l, e);
152
- }
153
- return e[s];
154
- }), consoleError);
155
- };
156
-
157
- // src/client/client-style.ts
158
- var l = new Map;
159
-
160
- // src/runtime/runtime-constants.ts
161
- var o = "r";
162
-
163
- var i = "o";
164
-
165
- var a = "s";
166
-
167
- var f = "t";
168
-
169
- var c = "c";
170
-
171
- var u = "s-id";
172
-
173
- var d = "sty-id";
174
-
175
- var v = "c-id";
176
-
177
- var p = "{visibility:hidden}.hydrated{visibility:inherit}";
178
-
179
- var m = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
180
-
181
- var $ = "http://www.w3.org/1999/xlink";
182
-
183
- var y = [ "formAssociatedCallback", "formResetCallback", "formDisabledCallback", "formStateRestoreCallback" ];
184
-
185
- var b = typeof window !== "undefined" ? window : {};
186
-
187
- var w = b.document || {
188
- head: {}
189
- };
190
-
191
- var g = b.HTMLElement || class {};
192
-
193
- var S = {
194
- _$$flags$$_: 0,
195
- _$$resourcesUrl$$_: "",
196
- jmp: e => e(),
197
- raf: e => requestAnimationFrame(e),
198
- ael: (e, t, n, s) => e.addEventListener(t, n, s),
199
- rel: (e, t, n, s) => e.removeEventListener(t, n, s),
200
- ce: (e, t) => new CustomEvent(e, t)
201
- };
202
-
203
- var k = t.shadowDom;
204
-
205
- var C = (() => {
206
- let e = false;
207
- try {
208
- w.addEventListener("e", null, Object.defineProperty({}, "passive", {
209
- get() {
210
- e = true;
211
- }
212
- }));
213
- } catch (e) {}
214
- return e;
215
- })();
216
-
217
- var promiseResolve = e => Promise.resolve(e);
218
-
219
- var x = (() => {
220
- try {
221
- new CSSStyleSheet;
222
- return typeof (new CSSStyleSheet).replaceSync === "function";
223
- } catch (e) {}
224
- return false;
225
- })();
226
-
227
- var j = false;
228
-
229
- var O = [];
230
-
231
- var D = [];
232
-
233
- var queueTask = (e, t) => n => {
234
- e.push(n);
235
- if (!j) {
236
- j = true;
237
- if (t && S._$$flags$$_ & 4 /* queueSync */) {
238
- nextTick(flush);
239
- } else {
240
- S.raf(flush);
241
- }
242
- }
243
- };
244
-
245
- var consume = e => {
246
- for (let t = 0; t < e.length; t++) {
247
- try {
248
- e[t](performance.now());
249
- } catch (e) {
250
- consoleError(e);
251
- }
252
- }
253
- e.length = 0;
254
- };
255
-
256
- var flush = () => {
257
- consume(O);
258
- {
259
- consume(D);
260
- if (j = O.length > 0) {
261
- S.raf(flush);
262
- }
263
- }
264
- };
265
-
266
- var nextTick = e => promiseResolve().then(e);
267
-
268
- var T = queueTask(D, true);
269
-
270
- // src/utils/constants.ts
271
- var L = {};
272
-
273
- // src/utils/helpers.ts
274
- var isDef = e => e != null;
275
-
276
- var isComplexType = e => {
277
- e = typeof e;
278
- return e === "object" || e === "function";
279
- };
280
-
281
- // src/utils/query-nonce-meta-tag-content.ts
282
- function queryNonceMetaTagContent(e) {
283
- var t, n, s;
284
- return (s = (n = (t = e.head) == null ? void 0 : t.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : n.getAttribute("content")) != null ? s : void 0;
285
- }
286
-
287
- // src/utils/result.ts
288
- var M = {};
289
-
290
- __export(M, {
291
- err: () => err,
292
- map: () => map,
293
- ok: () => ok,
294
- unwrap: () => unwrap,
295
- unwrapErr: () => unwrapErr
296
- });
297
-
298
- var ok = e => ({
299
- isOk: true,
300
- isErr: false,
301
- value: e
302
- });
303
-
304
- var err = e => ({
305
- isOk: false,
306
- isErr: true,
307
- value: e
308
- });
309
-
310
- function map(e, t) {
311
- if (e.isOk) {
312
- const n = t(e.value);
313
- if (n instanceof Promise) {
314
- return n.then((e => ok(e)));
315
- } else {
316
- return ok(n);
317
- }
318
- }
319
- if (e.isErr) {
320
- const t = e.value;
321
- return err(t);
322
- }
323
- throw "should never get here";
324
- }
325
-
326
- var unwrap = e => {
327
- if (e.isOk) {
328
- return e.value;
329
- } else {
330
- throw e.value;
331
- }
332
- };
333
-
334
- var unwrapErr = e => {
335
- if (e.isErr) {
336
- return e.value;
337
- } else {
338
- throw e.value;
339
- }
340
- };
341
-
342
- var h = (e, t, ...n) => {
343
- let s = null;
344
- let r = null;
345
- let l = false;
346
- let o = false;
347
- const i = [];
348
- const walk = t => {
349
- for (let n = 0; n < t.length; n++) {
350
- s = t[n];
351
- if (Array.isArray(s)) {
352
- walk(s);
353
- } else if (s != null && typeof s !== "boolean") {
354
- if (l = typeof e !== "function" && !isComplexType(s)) {
355
- s = String(s);
356
- }
357
- if (l && o) {
358
- i[i.length - 1]._$$text$$_ += s;
359
- } else {
360
- i.push(l ? newVNode(null, s) : s);
361
- }
362
- o = l;
363
- }
364
- }
365
- };
366
- walk(n);
367
- if (t) {
368
- if (t.key) {
369
- r = t.key;
370
- }
371
- {
372
- const e = t.className || t.class;
373
- if (e) {
374
- t.class = typeof e !== "object" ? e : Object.keys(e).filter((t => e[t])).join(" ");
375
- }
376
- }
377
- }
378
- if (typeof e === "function") {
379
- return e(t === null ? {} : t, i, E);
380
- }
381
- const a = newVNode(e, null);
382
- a._$$attrs$$_ = t;
383
- if (i.length > 0) {
384
- a._$$children$$_ = i;
385
- }
386
- {
387
- a._$$key$$_ = r;
388
- }
389
- return a;
390
- };
391
-
392
- var newVNode = (e, t) => {
393
- const n = {
394
- _$$flags$$_: 0,
395
- _$$tag$$_: e,
396
- _$$text$$_: t,
397
- _$$elm$$_: null,
398
- _$$children$$_: null
399
- };
400
- {
401
- n._$$attrs$$_ = null;
402
- }
403
- {
404
- n._$$key$$_ = null;
405
- }
406
- return n;
407
- };
408
-
409
- var A = {};
410
-
411
- var isHost = e => e && e._$$tag$$_ === A;
412
-
413
- var E = {
414
- forEach: (e, t) => e.map(convertToPublic).forEach(t),
415
- map: (e, t) => e.map(convertToPublic).map(t).map(convertToPrivate)
416
- };
417
-
418
- var convertToPublic = e => ({
419
- vattrs: e._$$attrs$$_,
420
- vchildren: e._$$children$$_,
421
- vkey: e._$$key$$_,
422
- vname: e._$$name$$_,
423
- vtag: e._$$tag$$_,
424
- vtext: e._$$text$$_
425
- });
426
-
427
- var convertToPrivate = e => {
428
- if (typeof e.vtag === "function") {
429
- const t = {
430
- ...e.vattrs
431
- };
432
- if (e.vkey) {
433
- t.key = e.vkey;
434
- }
435
- if (e.vname) {
436
- t.name = e.vname;
437
- }
438
- return h(e.vtag, t, ...e.vchildren || []);
439
- }
440
- const t = newVNode(e.vtag, e.vtext);
441
- t._$$attrs$$_ = e.vattrs;
442
- t._$$children$$_ = e.vchildren;
443
- t._$$key$$_ = e.vkey;
444
- t._$$name$$_ = e.vname;
445
- return t;
446
- };
447
-
448
- var setAccessor = (e, t, n, s, r, l) => {
449
- if (n !== s) {
450
- let o = isMemberInElement(e, t);
451
- let i = t.toLowerCase();
452
- if (t === "class") {
453
- const t = e.classList;
454
- const r = parseClassList(n);
455
- const l = parseClassList(s);
456
- if (e["s-si"] && l.indexOf(e["s-si"]) < 0) {
457
- l.push(e["s-si"]);
458
- }
459
- t.remove(...r.filter((e => e && !l.includes(e))));
460
- t.add(...l.filter((e => e && !r.includes(e))));
461
- } else if (t === "style") {
462
- {
463
- for (const t in n) {
464
- if (!s || s[t] == null) {
465
- if (t.includes("-")) {
466
- e.style.removeProperty(t);
467
- } else {
468
- e.style[t] = "";
469
- }
470
- }
471
- }
472
- }
473
- for (const t in s) {
474
- if (!n || s[t] !== n[t]) {
475
- if (t.includes("-")) {
476
- e.style.setProperty(t, s[t]);
477
- } else {
478
- e.style[t] = s[t];
479
- }
480
- }
481
- }
482
- } else if (t === "key") ; else if (t === "ref") {
483
- if (s) {
484
- s(e);
485
- }
486
- } else if (!o && t[0] === "o" && t[1] === "n") {
487
- if (t[2] === "-") {
488
- t = t.slice(3);
489
- } else if (isMemberInElement(b, i)) {
490
- t = i.slice(2);
491
- } else {
492
- t = i[2] + t.slice(3);
493
- }
494
- if (n || s) {
495
- const r = t.endsWith(N);
496
- t = t.replace(F, "");
497
- if (n) {
498
- S.rel(e, t, n, r);
499
- }
500
- if (s) {
501
- S.ael(e, t, s, r);
502
- }
503
- }
504
- } else {
505
- const a = isComplexType(s);
506
- if ((o || a && s !== null) && !r) {
507
- try {
508
- if (!e.tagName.includes("-")) {
509
- const r = s == null ? "" : s;
510
- if (t === "list") {
511
- o = false;
512
- } else if (n == null || e[t] != r) {
513
- if (typeof e.__lookupSetter__(t) === "function") {
514
- e[t] = r;
515
- } else {
516
- e.setAttribute(t, r);
517
- }
518
- }
519
- } else {
520
- e[t] = s;
521
- }
522
- } catch (e) {}
523
- }
524
- let f = false;
525
- {
526
- if (i !== (i = i.replace(/^xlink\:?/, ""))) {
527
- t = i;
528
- f = true;
529
- }
530
- }
531
- if (s == null || s === false) {
532
- if (s !== false || e.getAttribute(t) === "") {
533
- if (f) {
534
- e.removeAttributeNS($, t);
535
- } else {
536
- e.removeAttribute(t);
537
- }
538
- }
539
- } else if ((!o || l & 4 /* isHost */ || r) && !a) {
540
- s = s === true ? "" : s;
541
- if (f) {
542
- e.setAttributeNS($, t, s);
543
- } else {
544
- e.setAttribute(t, s);
545
- }
546
- }
547
- }
548
- }
549
- };
550
-
551
- var R = /\s/;
552
-
553
- var parseClassList = e => !e ? [] : e.split(R);
554
-
555
- var N = "Capture";
556
-
557
- var F = new RegExp(N + "$");
558
-
559
- // src/runtime/vdom/update-element.ts
560
- var updateElement = (e, t, n) => {
561
- const s = t._$$elm$$_.nodeType === 11 /* DocumentFragment */ && t._$$elm$$_.host ? t._$$elm$$_.host : t._$$elm$$_;
562
- const r = e && e._$$attrs$$_ || L;
563
- const l = t._$$attrs$$_ || L;
564
- {
565
- for (const e of sortedAttrNames(Object.keys(r))) {
566
- if (!(e in l)) {
567
- setAccessor(s, e, r[e], void 0, n, t._$$flags$$_);
568
- }
569
- }
570
- }
571
- for (const e of sortedAttrNames(Object.keys(l))) {
572
- setAccessor(s, e, r[e], l[e], n, t._$$flags$$_);
573
- }
574
- };
575
-
576
- function sortedAttrNames(e) {
577
- return e.includes("ref") ?
578
- // we need to sort these to ensure that `'ref'` is the last attr
579
- [ ...e.filter((e => e !== "ref")), "ref" ] :
580
- // no need to sort, return the original array
581
- e;
582
- }
583
-
584
- // src/runtime/vdom/vdom-render.ts
585
- var P;
586
-
587
- var U;
588
-
589
- var W = false;
590
-
591
- var I = false;
592
-
593
- var createElm = (e, n, s, r) => {
594
- const l = n._$$children$$_[s];
595
- let o = 0;
596
- let i;
597
- let a;
598
- if (l._$$text$$_ !== null) {
599
- i = l._$$elm$$_ = w.createTextNode(l._$$text$$_);
600
- } else {
601
- i = l._$$elm$$_ = w.createElement(!W && t.slotRelocation && l._$$flags$$_ & 2 /* isSlotFallback */ ? "slot-fb" : l._$$tag$$_);
602
- {
603
- updateElement(null, l, I);
604
- }
605
- const n = i.getRootNode();
606
- const s = !n.querySelector("body");
607
- if (!s && t.scoped && isDef(P) && i["s-si"] !== P) {
608
- i.classList.add(i["s-si"] = P);
609
- }
610
- if (l._$$children$$_) {
611
- for (o = 0; o < l._$$children$$_.length; ++o) {
612
- a = createElm(e, l, o);
613
- if (a) {
614
- i.appendChild(a);
615
- }
616
- }
617
- }
618
- }
619
- i["s-hn"] = U;
620
- return i;
621
- };
622
-
623
- var addVnodes = (e, t, n, s, r, l) => {
624
- let o = e;
625
- let i;
626
- if (o.shadowRoot && o.tagName === U) {
627
- o = o.shadowRoot;
628
- }
629
- for (;r <= l; ++r) {
630
- if (s[r]) {
631
- i = createElm(null, n, r);
632
- if (i) {
633
- s[r]._$$elm$$_ = i;
634
- insertBefore(o, i, t);
635
- }
636
- }
637
- }
638
- };
639
-
640
- var removeVnodes = (e, t, n) => {
641
- for (let s = t; s <= n; ++s) {
642
- const t = e[s];
643
- if (t) {
644
- const e = t._$$elm$$_;
645
- nullifyVNodeRefs(t);
646
- if (e) {
647
- e.remove();
648
- }
649
- }
650
- }
651
- };
652
-
653
- var updateChildren = (e, t, n, s, r = false) => {
654
- let l = 0;
655
- let o = 0;
656
- let i = 0;
657
- let a = 0;
658
- let f = t.length - 1;
659
- let c = t[0];
660
- let u = t[f];
661
- let d = s.length - 1;
662
- let v = s[0];
663
- let p = s[d];
664
- let m;
665
- let $;
666
- while (l <= f && o <= d) {
667
- if (c == null) {
668
- c = t[++l];
669
- } else if (u == null) {
670
- u = t[--f];
671
- } else if (v == null) {
672
- v = s[++o];
673
- } else if (p == null) {
674
- p = s[--d];
675
- } else if (isSameVnode(c, v, r)) {
676
- patch(c, v, r);
677
- c = t[++l];
678
- v = s[++o];
679
- } else if (isSameVnode(u, p, r)) {
680
- patch(u, p, r);
681
- u = t[--f];
682
- p = s[--d];
683
- } else if (isSameVnode(c, p, r)) {
684
- patch(c, p, r);
685
- insertBefore(e, c._$$elm$$_, u._$$elm$$_.nextSibling);
686
- c = t[++l];
687
- p = s[--d];
688
- } else if (isSameVnode(u, v, r)) {
689
- patch(u, v, r);
690
- insertBefore(e, u._$$elm$$_, c._$$elm$$_);
691
- u = t[--f];
692
- v = s[++o];
693
- } else {
694
- i = -1;
695
- {
696
- for (a = l; a <= f; ++a) {
697
- if (t[a] && t[a]._$$key$$_ !== null && t[a]._$$key$$_ === v._$$key$$_) {
698
- i = a;
699
- break;
700
- }
701
- }
702
- }
703
- if (i >= 0) {
704
- $ = t[i];
705
- if ($._$$tag$$_ !== v._$$tag$$_) {
706
- m = createElm(t && t[o], n, i);
707
- } else {
708
- patch($, v, r);
709
- t[i] = void 0;
710
- m = $._$$elm$$_;
711
- }
712
- v = s[++o];
713
- } else {
714
- m = createElm(t && t[o], n, o);
715
- v = s[++o];
716
- }
717
- if (m) {
718
- {
719
- insertBefore(c._$$elm$$_.parentNode, m, c._$$elm$$_);
720
- }
721
- }
722
- }
723
- }
724
- if (l > f) {
725
- addVnodes(e, s[d + 1] == null ? null : s[d + 1]._$$elm$$_, n, s, o, d);
726
- } else if (o > d) {
727
- removeVnodes(t, l, f);
728
- }
729
- };
730
-
731
- var isSameVnode = (e, t, n = false) => {
732
- if (e._$$tag$$_ === t._$$tag$$_) {
733
- if (!n) {
734
- return e._$$key$$_ === t._$$key$$_;
735
- }
736
- return true;
737
- }
738
- return false;
739
- };
740
-
741
- var patch = (e, n, s = false) => {
742
- const r = n._$$elm$$_ = e._$$elm$$_;
743
- const l = e._$$children$$_;
744
- const o = n._$$children$$_;
745
- const i = n._$$tag$$_;
746
- const a = n._$$text$$_;
747
- if (a === null) {
748
- {
749
- if (i === "slot" && !W) ; else {
750
- updateElement(e, n, I);
751
- }
752
- }
753
- if (l !== null && o !== null) {
754
- updateChildren(r, l, n, o, s);
755
- } else if (o !== null) {
756
- if (e._$$text$$_ !== null) {
757
- r.textContent = "";
758
- }
759
- addVnodes(r, null, n, o, 0, o.length - 1);
760
- } else if (
761
- // don't do this on initial render as it can cause non-hydrated content to be removed
762
- !s && t.updatable && l !== null) {
763
- removeVnodes(l, 0, l.length - 1);
764
- }
765
- } else if (e._$$text$$_ !== a) {
766
- r.data = a;
767
- }
768
- };
769
-
770
- var updateFallbackSlotVisibility = e => {
771
- const t = e.__childNodes || e.childNodes;
772
- for (const e of t) {
773
- if (e.nodeType === 1 /* ElementNode */) {
774
- if (e["s-sr"]) {
775
- const n = e["s-sn"];
776
- e.hidden = false;
777
- for (const s of t) {
778
- if (s !== e) {
779
- if (s["s-hn"] !== e["s-hn"] || n !== "") {
780
- if (s.nodeType === 1 /* ElementNode */ && (n === s.getAttribute("slot") || n === s["s-sn"]) || s.nodeType === 3 /* TextNode */ && n === s["s-sn"]) {
781
- e.hidden = true;
782
- break;
783
- }
784
- } else if (n === s["s-sn"]) {
785
- if (s.nodeType === 1 /* ElementNode */ || s.nodeType === 3 /* TextNode */ && s.textContent.trim() !== "") {
786
- e.hidden = true;
787
- break;
788
- }
789
- }
790
- }
791
- }
792
- }
793
- updateFallbackSlotVisibility(e);
794
- }
795
- }
796
- };
797
-
798
- var nullifyVNodeRefs = e => {
799
- {
800
- e._$$attrs$$_ && e._$$attrs$$_.ref && e._$$attrs$$_.ref(null);
801
- e._$$children$$_ && e._$$children$$_.map(nullifyVNodeRefs);
802
- }
803
- };
804
-
805
- var insertBefore = (e, t, n) => {
806
- const s = e == null ? void 0 : e.insertBefore(t, n);
807
- return s;
808
- };
809
-
810
- var renderVdom = (e, t, n = false) => {
811
- const s = e.$hostElement$;
812
- const r = e._$$cmpMeta$$_;
813
- const l = e._$$vnode$$_ || newVNode(null, null);
814
- const o = isHost(t) ? t : h(null, null, t);
815
- U = s.tagName;
816
- if (r._$$attrsToReflect$$_) {
817
- o._$$attrs$$_ = o._$$attrs$$_ || {};
818
- r._$$attrsToReflect$$_.map((([e, t]) => o._$$attrs$$_[t] = s[e]));
819
- }
820
- if (n && o._$$attrs$$_) {
821
- for (const e of Object.keys(o._$$attrs$$_)) {
822
- if (s.hasAttribute(e) && ![ "key", "ref", "style", "class" ].includes(e)) {
823
- o._$$attrs$$_[e] = s[e];
824
- }
825
- }
826
- }
827
- o._$$tag$$_ = null;
828
- o._$$flags$$_ |= 4 /* isHost */;
829
- e._$$vnode$$_ = o;
830
- o._$$elm$$_ = l._$$elm$$_ = s.shadowRoot || s;
831
- {
832
- P = s["s-sc"];
833
- }
834
- W = (r._$$flags$$_ & 1 /* shadowDomEncapsulation */) !== 0;
835
- patch(l, o, n);
836
- };
837
-
838
- var patchCloneNode = e => {
839
- const t = e.cloneNode;
840
- e.cloneNode = function(e) {
841
- const n = this;
842
- const s = n.shadowRoot && k;
843
- const r = t.call(n, s ? e : false);
844
- if (!s && e) {
845
- let e = 0;
846
- let t, n;
847
- const s = [ "s-id", "s-cr", "s-lr", "s-rc", "s-sc", "s-p", "s-cn", "s-sr", "s-sn", "s-hn", "s-ol", "s-nr", "s-si", "s-rf", "s-scs" ];
848
- const l = this.__childNodes || this.childNodes;
849
- for (;e < l.length; e++) {
850
- t = l[e]["s-nr"];
851
- n = s.every((t => !l[e][t]));
852
- if (t) {
853
- if (r.__appendChild) {
854
- r.__appendChild(t.cloneNode(true));
855
- } else {
856
- r.appendChild(t.cloneNode(true));
857
- }
858
- }
859
- if (n) {
860
- r.appendChild(l[e].cloneNode(true));
861
- }
862
- }
863
- }
864
- return r;
865
- };
866
- };
867
-
868
- var patchSlotAppendChild = e => {
869
- e.__appendChild = e.appendChild;
870
- e.appendChild = function(e) {
871
- const t = e["s-sn"] = getSlotName(e);
872
- const n = getHostSlotNode(this.__childNodes || this.childNodes, t, this.tagName);
873
- if (n) {
874
- addSlotRelocateNode(e, n);
875
- const s = getHostSlotChildNodes(n, t);
876
- const r = s[s.length - 1];
877
- const l = insertBefore(r.parentNode, e, r.nextSibling);
878
- updateFallbackSlotVisibility(this);
879
- return l;
880
- }
881
- return this.__appendChild(e);
882
- };
883
- };
884
-
885
- var addSlotRelocateNode = (e, t, n, s) => {
886
- let r;
887
- if (e["s-ol"] && e["s-ol"].isConnected) {
888
- r = e["s-ol"];
889
- } else {
890
- r = document.createTextNode("");
891
- r["s-nr"] = e;
892
- }
893
- if (!t["s-cr"] || !t["s-cr"].parentNode) return;
894
- const l = t["s-cr"].parentNode;
895
- const o = n ? l.__prepend || l.prepend : l.__appendChild || l.appendChild;
896
- if (typeof s !== "undefined") {
897
- {
898
- r["s-oo"] = s;
899
- const e = l.__childNodes || l.childNodes;
900
- const t = [ r ];
901
- e.forEach((e => {
902
- if (e["s-nr"]) t.push(e);
903
- }));
904
- t.sort(((e, t) => {
905
- if (!e["s-oo"] || e["s-oo"] < t["s-oo"]) return -1; else if (!t["s-oo"] || t["s-oo"] < e["s-oo"]) return 1;
906
- return 0;
907
- }));
908
- t.forEach((e => o.call(l, e)));
909
- }
910
- } else {
911
- o.call(l, r);
912
- }
913
- e["s-ol"] = r;
914
- e["s-sh"] = t["s-hn"];
915
- };
916
-
917
- var getSlotName = e => e["s-sn"] || e.nodeType === 1 && e.getAttribute("slot") || "";
918
-
919
- var getHostSlotNode = (e, t, n) => {
920
- let s = 0;
921
- let r;
922
- for (;s < e.length; s++) {
923
- r = e[s];
924
- if (r["s-sr"] && r["s-sn"] === t && r["s-hn"] === n) {
925
- return r;
926
- }
927
- r = getHostSlotNode(r.childNodes, t, n);
928
- if (r) {
929
- return r;
930
- }
931
- }
932
- return null;
933
- };
934
-
935
- var getHostSlotChildNodes = (e, t) => {
936
- const n = [ e ];
937
- while ((e = e.nextSibling) && e["s-sn"] === t) {
938
- n.push(e);
939
- }
940
- return n;
941
- };
942
-
943
- var createTime = (e, t = "") => {
944
- {
945
- return () => {};
946
- }
947
- };
948
-
949
- var uniqueTime = (e, t) => {
950
- {
951
- return () => {};
952
- }
953
- };
954
-
955
- // src/runtime/client-hydrate.ts
956
- var initializeClientHydrate = (e, t, n, s) => {
957
- const r = createTime("hydrateClient", t);
958
- const l = e.shadowRoot;
959
- const o = [];
960
- const i = [];
961
- const a = [];
962
- const f = l ? [] : null;
963
- const c = newVNode(t, null);
964
- c._$$elm$$_ = e;
965
- if (!S._$$orgLocNodes$$_) {
966
- initializeDocumentHydrate(w.body, S._$$orgLocNodes$$_ = new Map);
967
- }
968
- e[u] = n;
969
- e.removeAttribute(u);
970
- s._$$vnode$$_ = clientHydrate(c, o, i, f, e, e, n, a);
971
- let d = 0;
972
- const v = o.length;
973
- let p;
974
- for (d; d < v; d++) {
975
- p = o[d];
976
- const n = p._$$hostId$$_ + "." + p._$$nodeId$$_;
977
- const s = S._$$orgLocNodes$$_.get(n);
978
- const r = p._$$elm$$_;
979
- if (!l) {
980
- r["s-hn"] = t.toUpperCase();
981
- if (p._$$tag$$_ === "slot") {
982
- r["s-cr"] = e["s-cr"];
983
- }
984
- }
985
- if (s && s.isConnected) {
986
- if (l && s["s-en"] === "") {
987
- s.parentNode.insertBefore(r, s.nextSibling);
988
- }
989
- s.parentNode.removeChild(s);
990
- if (!l) {
991
- r["s-oo"] = parseInt(p._$$nodeId$$_);
992
- }
993
- }
994
- S._$$orgLocNodes$$_.delete(n);
995
- }
996
- const m = [];
997
- let $ = 0;
998
- const y = a.length;
999
- let b;
1000
- let g;
1001
- let k;
1002
- let C;
1003
- for ($; $ < y; $++) {
1004
- b = a[$];
1005
- if (!b || !b.length) continue;
1006
- k = b.length;
1007
- g = 0;
1008
- for (g; g < k; g++) {
1009
- C = b[g];
1010
- if (!m[C.hostId]) {
1011
- m[C.hostId] = S._$$orgLocNodes$$_.get(C.hostId);
1012
- }
1013
- if (!m[C.hostId]) continue;
1014
- const e = m[C.hostId];
1015
- if (!e.shadowRoot || !l) {
1016
- C.slot["s-cr"] = e["s-cr"];
1017
- if (!C.slot["s-cr"] && e.shadowRoot) {
1018
- C.slot["s-cr"] = e;
1019
- } else {
1020
- const t = e.__childNodes || e.childNodes;
1021
- C.slot["s-cr"] = t[0];
1022
- }
1023
- addSlotRelocateNode(C.node, C.slot, false, C.node["s-oo"]);
1024
- }
1025
- if (e.shadowRoot && C.node.parentElement !== e) {
1026
- e.appendChild(C.node);
1027
- }
1028
- }
1029
- }
1030
- if (l) {
1031
- let t = 0;
1032
- const n = f.length;
1033
- for (t; t < n; t++) {
1034
- l.appendChild(f[t]);
1035
- }
1036
- Array.from(e.childNodes).forEach((e => {
1037
- if (e.nodeType === 8 /* CommentNode */ && typeof e["s-sn"] !== "string") {
1038
- e.parentNode.removeChild(e);
1039
- }
1040
- }));
1041
- }
1042
- s.$hostElement$ = e;
1043
- r();
1044
- };
1045
-
1046
- var clientHydrate = (e, t, n, s, r, l, i, u = []) => {
1047
- let d;
1048
- let p;
1049
- let m;
1050
- let $;
1051
- const y = r["s-sc"];
1052
- if (l.nodeType === 1 /* ElementNode */) {
1053
- d = l.getAttribute(v);
1054
- if (d) {
1055
- p = d.split(".");
1056
- if (p[0] === i || p[0] === "0") {
1057
- m = createSimpleVNode({
1058
- _$$flags$$_: 0,
1059
- _$$hostId$$_: p[0],
1060
- _$$nodeId$$_: p[1],
1061
- _$$depth$$_: p[2],
1062
- _$$index$$_: p[3],
1063
- _$$tag$$_: l.tagName.toLowerCase(),
1064
- _$$elm$$_: l,
1065
- // If we don't add the initial classes to the VNode, the first `vdom-render.ts` reconciliation will fail:
1066
- // client side changes before componentDidLoad will be ignored, `set-accessor.ts` will just take the element's initial classes
1067
- _$$attrs$$_: {
1068
- class: l.className
1069
- }
1070
- });
1071
- t.push(m);
1072
- l.removeAttribute(v);
1073
- if (!e._$$children$$_) {
1074
- e._$$children$$_ = [];
1075
- }
1076
- const r = m._$$elm$$_.getAttribute("s-sn");
1077
- if (typeof r === "string") {
1078
- if (m._$$tag$$_ === "slot-fb") {
1079
- addSlot(r, p[2], m, l, e, t, n, s, u);
1080
- }
1081
- m._$$elm$$_["s-sn"] = r;
1082
- m._$$elm$$_.removeAttribute("s-sn");
1083
- }
1084
- if (m._$$index$$_ !== void 0) {
1085
- e._$$children$$_[m._$$index$$_] = m;
1086
- }
1087
- if (y) l["s-si"] = y;
1088
- e = m;
1089
- if (s && m._$$depth$$_ === "0") {
1090
- s[m._$$index$$_] = m._$$elm$$_;
1091
- }
1092
- }
1093
- }
1094
- if (l.shadowRoot) {
1095
- for ($ = l.shadowRoot.childNodes.length - 1; $ >= 0; $--) {
1096
- clientHydrate(e, t, n, s, r, l.shadowRoot.childNodes[$], i, u);
1097
- }
1098
- }
1099
- const o = l.__childNodes || l.childNodes;
1100
- for ($ = o.length - 1; $ >= 0; $--) {
1101
- clientHydrate(e, t, n, s, r, o[$], i, u);
1102
- }
1103
- } else if (l.nodeType === 8 /* CommentNode */) {
1104
- p = l.nodeValue.split(".");
1105
- if (p[1] === i || p[1] === "0") {
1106
- d = p[0];
1107
- m = createSimpleVNode({
1108
- _$$hostId$$_: p[1],
1109
- _$$nodeId$$_: p[2],
1110
- _$$depth$$_: p[3],
1111
- _$$index$$_: p[4] || "0",
1112
- _$$elm$$_: l,
1113
- _$$attrs$$_: null,
1114
- _$$children$$_: null,
1115
- _$$key$$_: null,
1116
- _$$name$$_: null,
1117
- _$$tag$$_: null,
1118
- _$$text$$_: null
1119
- });
1120
- if (d === f) {
1121
- m._$$elm$$_ = l.nextSibling;
1122
- if (m._$$elm$$_ && m._$$elm$$_.nodeType === 3 /* TextNode */) {
1123
- m._$$text$$_ = m._$$elm$$_.textContent;
1124
- t.push(m);
1125
- l.remove();
1126
- if (i === m._$$hostId$$_) {
1127
- if (!e._$$children$$_) {
1128
- e._$$children$$_ = [];
1129
- }
1130
- e._$$children$$_[m._$$index$$_] = m;
1131
- }
1132
- if (s && m._$$depth$$_ === "0") {
1133
- s[m._$$index$$_] = m._$$elm$$_;
1134
- }
1135
- }
1136
- } else if (d === c) {
1137
- m._$$elm$$_ = l.nextSibling;
1138
- if (m._$$elm$$_ && m._$$elm$$_.nodeType === 8 /* CommentNode */) {
1139
- t.push(m);
1140
- l.remove();
1141
- }
1142
- } else if (m._$$hostId$$_ === i) {
1143
- if (d === a) {
1144
- m._$$tag$$_ = "slot";
1145
- const r = l["s-sn"] = m._$$name$$_ = p[5] || "";
1146
- addSlot(r, p[2], m, l, e, t, n, s, u);
1147
- } else if (d === o) {
1148
- if (s) {
1149
- l.remove();
1150
- }
1151
- }
1152
- }
1153
- }
1154
- } else if (e && e._$$tag$$_ === "style") {
1155
- const t = newVNode(null, l.textContent);
1156
- t._$$elm$$_ = l;
1157
- t._$$index$$_ = "0";
1158
- e._$$children$$_ = [ t ];
1159
- }
1160
- return e;
1161
- };
1162
-
1163
- var initializeDocumentHydrate = (e, t) => {
1164
- if (e.nodeType === 1 /* ElementNode */) {
1165
- const n = e[u] || e.getAttribute(u);
1166
- if (n) {
1167
- t.set(n, e);
1168
- }
1169
- let s = 0;
1170
- if (e.shadowRoot) {
1171
- for (;s < e.shadowRoot.childNodes.length; s++) {
1172
- initializeDocumentHydrate(e.shadowRoot.childNodes[s], t);
1173
- }
1174
- }
1175
- const r = e.__childNodes || e.childNodes;
1176
- for (s = 0; s < r.length; s++) {
1177
- initializeDocumentHydrate(r[s], t);
1178
- }
1179
- } else if (e.nodeType === 8 /* CommentNode */) {
1180
- const n = e.nodeValue.split(".");
1181
- if (n[0] === i) {
1182
- t.set(n[1] + "." + n[2], e);
1183
- e.nodeValue = "";
1184
- e["s-en"] = n[3];
1185
- }
1186
- }
1187
- };
1188
-
1189
- var createSimpleVNode = e => {
1190
- const t = {
1191
- _$$flags$$_: 0,
1192
- _$$hostId$$_: null,
1193
- _$$nodeId$$_: null,
1194
- _$$depth$$_: null,
1195
- _$$index$$_: "0",
1196
- _$$elm$$_: null,
1197
- _$$attrs$$_: null,
1198
- _$$children$$_: null,
1199
- _$$key$$_: null,
1200
- _$$name$$_: null,
1201
- _$$tag$$_: null,
1202
- _$$text$$_: null
1203
- };
1204
- return {
1205
- ...t,
1206
- ...e
1207
- };
1208
- };
1209
-
1210
- function addSlot(e, t, n, s, r, l, o, i, a) {
1211
- s["s-sr"] = true;
1212
- const f = (r == null ? void 0 : r._$$elm$$_) ? r._$$elm$$_["s-id"] || r._$$elm$$_.getAttribute("s-id") : "";
1213
- if (i) {
1214
- const l = n._$$elm$$_ = w.createElement(n._$$tag$$_);
1215
- if (n._$$name$$_) {
1216
- n._$$elm$$_.setAttribute("name", e);
1217
- }
1218
- if (f && f !== n._$$hostId$$_) {
1219
- r._$$elm$$_.insertBefore(l, r._$$elm$$_.children[0]);
1220
- } else {
1221
- s.parentNode.insertBefore(n._$$elm$$_, s);
1222
- }
1223
- addSlottedNodes(a, t, e, s, n._$$hostId$$_);
1224
- s.remove();
1225
- if (n._$$depth$$_ === "0") {
1226
- i[n._$$index$$_] = n._$$elm$$_;
1227
- }
1228
- } else {
1229
- const o = n._$$elm$$_;
1230
- const i = f && f !== n._$$hostId$$_ && r._$$elm$$_.shadowRoot;
1231
- addSlottedNodes(a, t, e, s, i ? f : n._$$hostId$$_);
1232
- if (i) {
1233
- r._$$elm$$_.insertBefore(o, r._$$elm$$_.children[0]);
1234
- }
1235
- l.push(n);
1236
- }
1237
- o.push(n);
1238
- if (!r._$$children$$_) {
1239
- r._$$children$$_ = [];
1240
- }
1241
- r._$$children$$_[n._$$index$$_] = n;
1242
- }
1243
-
1244
- var addSlottedNodes = (e, t, n, s, r) => {
1245
- let l = s.nextSibling;
1246
- e[t] = e[t] || [];
1247
- while (l && ((l["getAttribute"] && l.getAttribute("slot") || l["s-sn"]) === n || n === "" && !l["s-sn"] && (l.nodeType === 8 /* CommentNode */ && l.nodeValue.indexOf(".") !== 1 || l.nodeType === 3 /* TextNode */))) {
1248
- l["s-sn"] = n;
1249
- e[t].push({
1250
- slot: s,
1251
- node: l,
1252
- hostId: r
1253
- });
1254
- l = l.nextSibling;
1255
- }
1256
- };
1257
-
1258
- var parsePropertyValue = (e, t) => {
1259
- if (e != null && !isComplexType(e)) {
1260
- if (t & 4 /* Boolean */) {
1261
- return e === "false" ? false : e === "" || !!e;
1262
- }
1263
- if (t & 2 /* Number */) {
1264
- return parseFloat(e);
1265
- }
1266
- if (t & 1 /* String */) {
1267
- return String(e);
1268
- }
1269
- return e;
1270
- }
1271
- return e;
1272
- };
1273
-
1274
- var getElement = e => getHostRef(e).$hostElement$
1275
- // src/runtime/event-emitter.ts
1276
- ;
1277
-
1278
- var createEvent = (e, t, n) => {
1279
- const s = getElement(e);
1280
- return {
1281
- emit: e => emitEvent(s, t, {
1282
- bubbles: !!(n & 4 /* Bubbles */),
1283
- composed: !!(n & 2 /* Composed */),
1284
- cancelable: !!(n & 1 /* Cancellable */),
1285
- detail: e
1286
- })
1287
- };
1288
- };
1289
-
1290
- var emitEvent = (e, t, n) => {
1291
- const s = S.ce(t, n);
1292
- e.dispatchEvent(s);
1293
- return s;
1294
- };
1295
-
1296
- var q = new WeakMap;
1297
-
1298
- var registerStyle = (e, t, n) => {
1299
- let s = l.get(e);
1300
- if (x && n) {
1301
- s = s || new CSSStyleSheet;
1302
- if (typeof s === "string") {
1303
- s = t;
1304
- } else {
1305
- s.replaceSync(t);
1306
- }
1307
- } else {
1308
- s = t;
1309
- }
1310
- l.set(e, s);
1311
- };
1312
-
1313
- var addStyle = (e, t, n) => {
1314
- var s;
1315
- const r = getScopeId(t);
1316
- const o = l.get(r);
1317
- e = e.nodeType === 11 /* DocumentFragment */ ? e : w;
1318
- if (o) {
1319
- if (typeof o === "string") {
1320
- e = e.head || e;
1321
- let n = q.get(e);
1322
- let l;
1323
- if (!n) {
1324
- q.set(e, n = new Set);
1325
- }
1326
- if (!n.has(r)) {
1327
- if (e.host && (l = e.querySelector(`[${d}="${r}"]`))) {
1328
- l.innerHTML = o;
1329
- } else {
1330
- l = w.createElement("style");
1331
- l.innerHTML = o;
1332
- const n = (s = S._$$nonce$$_) != null ? s : queryNonceMetaTagContent(w);
1333
- if (n != null) {
1334
- l.setAttribute("nonce", n);
1335
- }
1336
- if (!(t._$$flags$$_ & 1 /* shadowDomEncapsulation */)) {
1337
- if (e.nodeName === "HEAD") {
1338
- const t = e.querySelectorAll("link[rel=preconnect]");
1339
- const n = t.length > 0 ? t[t.length - 1].nextSibling : e.querySelector("style");
1340
- e.insertBefore(l, n);
1341
- } else if ("host" in e) {
1342
- if (x) {
1343
- const t = new CSSStyleSheet;
1344
- t.replaceSync(o);
1345
- e.adoptedStyleSheets = [ t, ...e.adoptedStyleSheets ];
1346
- } else {
1347
- const t = e.querySelector("style");
1348
- if (t) {
1349
- t.innerHTML = o + t.innerHTML;
1350
- } else {
1351
- e.prepend(l);
1352
- }
1353
- }
1354
- } else {
1355
- e.append(l);
1356
- }
1357
- }
1358
- if (t._$$flags$$_ & 1 /* shadowDomEncapsulation */ && e.nodeName !== "HEAD") {
1359
- e.insertBefore(l, null);
1360
- }
1361
- }
1362
- if (t._$$flags$$_ & 4 /* hasSlotRelocation */) {
1363
- l.innerHTML += m;
1364
- }
1365
- if (n) {
1366
- n.add(r);
1367
- }
1368
- }
1369
- } else if (!e.adoptedStyleSheets.includes(o)) {
1370
- e.adoptedStyleSheets = [ ...e.adoptedStyleSheets, o ];
1371
- }
1372
- }
1373
- return r;
1374
- };
1375
-
1376
- var attachStyles = e => {
1377
- const t = e._$$cmpMeta$$_;
1378
- const n = e.$hostElement$;
1379
- const s = t._$$flags$$_;
1380
- const r = createTime("attachStyles", t._$$tagName$$_);
1381
- const l = addStyle(n.shadowRoot ? n.shadowRoot : n.getRootNode(), t);
1382
- if (s & 10 /* needsScopedEncapsulation */ && s & 2 /* scopedCssEncapsulation */) {
1383
- n["s-sc"] = l;
1384
- n.classList.add(l + "-h");
1385
- }
1386
- r();
1387
- };
1388
-
1389
- var getScopeId = (e, t) => "sc-" + e._$$tagName$$_
1390
- // src/runtime/update-component.ts
1391
- ;
1392
-
1393
- var attachToAncestor = (e, t) => {
1394
- if (t && !e._$$onRenderResolve$$_ && t["s-p"]) {
1395
- t["s-p"].push(new Promise((t => e._$$onRenderResolve$$_ = t)));
1396
- }
1397
- };
1398
-
1399
- var scheduleUpdate = (e, t) => {
1400
- {
1401
- e._$$flags$$_ |= 16 /* isQueuedForUpdate */;
1402
- }
1403
- if (e._$$flags$$_ & 4 /* isWaitingForChildren */) {
1404
- e._$$flags$$_ |= 512 /* needsRerender */;
1405
- return;
1406
- }
1407
- attachToAncestor(e, e._$$ancestorComponent$$_);
1408
- const dispatch = () => dispatchHooks(e, t);
1409
- return T(dispatch);
1410
- };
1411
-
1412
- var dispatchHooks = (e, t) => {
1413
- const n = e.$hostElement$;
1414
- const s = createTime("scheduleUpdate", e._$$cmpMeta$$_._$$tagName$$_);
1415
- const r = e._$$lazyInstance$$_;
1416
- if (!r) {
1417
- throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);
1418
- }
1419
- let l;
1420
- if (t) {
1421
- {
1422
- e._$$flags$$_ |= 256 /* isListenReady */;
1423
- if (e._$$queuedListeners$$_) {
1424
- e._$$queuedListeners$$_.map((([e, t]) => safeCall(r, e, t)));
1425
- e._$$queuedListeners$$_ = void 0;
1426
- }
1427
- }
1428
- emitLifecycleEvent(n, "componentWillLoad");
1429
- {
1430
- l = safeCall(r, "componentWillLoad");
1431
- }
1432
- } else {
1433
- emitLifecycleEvent(n, "componentWillUpdate");
1434
- }
1435
- emitLifecycleEvent(n, "componentWillRender");
1436
- s();
1437
- return enqueue(l, (() => updateComponent(e, r, t)));
1438
- };
1439
-
1440
- var enqueue = (e, t) => isPromisey(e) ? e.then(t).catch((e => {
1441
- console.error(e);
1442
- t();
1443
- })) : t();
1444
-
1445
- var isPromisey = e => e instanceof Promise || e && e.then && typeof e.then === "function";
1446
-
1447
- var updateComponent = async (e, t, n) => {
1448
- var s;
1449
- const r = e.$hostElement$;
1450
- const l = createTime("update", e._$$cmpMeta$$_._$$tagName$$_);
1451
- const o = r["s-rc"];
1452
- if (n) {
1453
- attachStyles(e);
1454
- }
1455
- const i = createTime("render", e._$$cmpMeta$$_._$$tagName$$_);
1456
- {
1457
- callRender(e, t, r, n);
1458
- }
1459
- if (o) {
1460
- o.map((e => e()));
1461
- r["s-rc"] = void 0;
1462
- }
1463
- i();
1464
- l();
1465
- {
1466
- const t = (s = r["s-p"]) != null ? s : [];
1467
- const postUpdate = () => postUpdateComponent(e);
1468
- if (t.length === 0) {
1469
- postUpdate();
1470
- } else {
1471
- Promise.all(t).then(postUpdate);
1472
- e._$$flags$$_ |= 4 /* isWaitingForChildren */;
1473
- t.length = 0;
1474
- }
1475
- }
1476
- };
1477
-
1478
- var callRender = (e, t, n, s) => {
1479
- try {
1480
- t = t.render();
1481
- {
1482
- e._$$flags$$_ &= ~16 /* isQueuedForUpdate */;
1483
- }
1484
- {
1485
- e._$$flags$$_ |= 2 /* hasRendered */;
1486
- }
1487
- {
1488
- {
1489
- {
1490
- renderVdom(e, t, s);
1491
- }
1492
- }
1493
- }
1494
- } catch (t) {
1495
- consoleError(t, e.$hostElement$);
1496
- }
1497
- return null;
1498
- };
1499
-
1500
- var postUpdateComponent = e => {
1501
- const t = e._$$cmpMeta$$_._$$tagName$$_;
1502
- const n = e.$hostElement$;
1503
- const s = createTime("postUpdate", t);
1504
- const r = e._$$lazyInstance$$_;
1505
- const l = e._$$ancestorComponent$$_;
1506
- emitLifecycleEvent(n, "componentDidRender");
1507
- if (!(e._$$flags$$_ & 64 /* hasLoadedComponent */)) {
1508
- e._$$flags$$_ |= 64 /* hasLoadedComponent */;
1509
- {
1510
- addHydratedFlag(n);
1511
- }
1512
- {
1513
- safeCall(r, "componentDidLoad");
1514
- }
1515
- emitLifecycleEvent(n, "componentDidLoad");
1516
- s();
1517
- {
1518
- e._$$onReadyResolve$$_(n);
1519
- if (!l) {
1520
- appDidLoad();
1521
- }
1522
- }
1523
- } else {
1524
- emitLifecycleEvent(n, "componentDidUpdate");
1525
- s();
1526
- }
1527
- {
1528
- e._$$onInstanceResolve$$_(n);
1529
- }
1530
- {
1531
- if (e._$$onRenderResolve$$_) {
1532
- e._$$onRenderResolve$$_();
1533
- e._$$onRenderResolve$$_ = void 0;
1534
- }
1535
- if (e._$$flags$$_ & 512 /* needsRerender */) {
1536
- nextTick((() => scheduleUpdate(e, false)));
1537
- }
1538
- e._$$flags$$_ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
1539
- }
1540
- };
1541
-
1542
- var appDidLoad = t => {
1543
- {
1544
- addHydratedFlag(w.documentElement);
1545
- }
1546
- nextTick((() => emitEvent(b, "appload", {
1547
- detail: {
1548
- namespace: e
1549
- }
1550
- })));
1551
- };
1552
-
1553
- var safeCall = (e, t, n) => {
1554
- if (e && e[t]) {
1555
- try {
1556
- return e[t](n);
1557
- } catch (e) {
1558
- consoleError(e);
1559
- }
1560
- }
1561
- return void 0;
1562
- };
1563
-
1564
- var emitLifecycleEvent = (t, n) => {
1565
- {
1566
- emitEvent(t, "stencil_" + n, {
1567
- bubbles: true,
1568
- composed: true,
1569
- detail: {
1570
- namespace: e
1571
- }
1572
- });
1573
- }
1574
- };
1575
-
1576
- var addHydratedFlag = e => {
1577
- var n;
1578
- return e.classList.add((n = t.hydratedSelectorName) != null ? n : "hydrated");
1579
- };
1580
-
1581
- // src/runtime/set-value.ts
1582
- var getValue = (e, t) => getHostRef(e)._$$instanceValues$$_.get(t);
1583
-
1584
- var setValue = (e, t, n, s) => {
1585
- const r = getHostRef(e);
1586
- if (!r) {
1587
- throw new Error(`Couldn't find host element for "${s._$$tagName$$_}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);
1588
- }
1589
- const l = r.$hostElement$;
1590
- const o = r._$$instanceValues$$_.get(t);
1591
- const i = r._$$flags$$_;
1592
- const a = r._$$lazyInstance$$_;
1593
- n = parsePropertyValue(n, s._$$members$$_[t][0]);
1594
- const f = Number.isNaN(o) && Number.isNaN(n);
1595
- const c = n !== o && !f;
1596
- if ((!(i & 8 /* isConstructingInstance */) || o === void 0) && c) {
1597
- r._$$instanceValues$$_.set(t, n);
1598
- if (a) {
1599
- if (s._$$watchers$$_ && i & 128 /* isWatchReady */) {
1600
- const e = s._$$watchers$$_[t];
1601
- if (e) {
1602
- e.map((e => {
1603
- try {
1604
- a[e](n, o, t);
1605
- } catch (e) {
1606
- consoleError(e, l);
1607
- }
1608
- }));
1609
- }
1610
- }
1611
- if ((i & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1612
- scheduleUpdate(r, false);
1613
- }
1614
- }
1615
- }
1616
- };
1617
-
1618
- // src/runtime/proxy-component.ts
1619
- var proxyComponent = (e, t, n) => {
1620
- var s, r;
1621
- const l = e.prototype;
1622
- if (t._$$flags$$_ & 64 /* formAssociated */ && n & 1 /* isElementConstructor */) {
1623
- y.forEach((e => {
1624
- Object.defineProperty(l, e, {
1625
- value(...t) {
1626
- const n = getHostRef(this);
1627
- const s = n._$$lazyInstance$$_;
1628
- if (!s) {
1629
- n._$$onReadyPromise$$_.then((n => {
1630
- const s = n[e];
1631
- typeof s === "function" && s.call(n, ...t);
1632
- }));
1633
- } else {
1634
- const n = s[e];
1635
- typeof n === "function" && n.call(s, ...t);
1636
- }
1637
- }
1638
- });
1639
- }));
1640
- }
1641
- if (t._$$members$$_ || (t._$$watchers$$_ || e.watchers)) {
1642
- if (e.watchers && !t._$$watchers$$_) {
1643
- t._$$watchers$$_ = e.watchers;
1644
- }
1645
- const o = Object.entries((s = t._$$members$$_) != null ? s : {});
1646
- o.map((([e, [s]]) => {
1647
- if (s & 31 /* Prop */ || n & 2 /* proxyState */ && s & 32 /* State */) {
1648
- if ((s & 2048 /* Getter */) === 0) {
1649
- Object.defineProperty(l, e, {
1650
- get() {
1651
- return getValue(this, e);
1652
- },
1653
- set(n) {
1654
- setValue(this, e, n, t);
1655
- },
1656
- configurable: true,
1657
- enumerable: true
1658
- });
1659
- } else if (n & 1 /* isElementConstructor */ && s & 2048 /* Getter */) {
1660
- {
1661
- Object.defineProperty(l, e, {
1662
- get() {
1663
- const t = getHostRef(this);
1664
- const n = t ? t._$$lazyInstance$$_ : l;
1665
- if (!n) return;
1666
- return n[e];
1667
- },
1668
- configurable: true,
1669
- enumerable: true
1670
- });
1671
- }
1672
- if (s & 4096 /* Setter */) {
1673
- const n = Object.getOwnPropertyDescriptor(l, e).set;
1674
- Object.defineProperty(l, e, {
1675
- set(s) {
1676
- const r = getHostRef(this);
1677
- if (n) {
1678
- const l = r.$hostElement$[e];
1679
- if (!r._$$instanceValues$$_.get(e) && l) {
1680
- r._$$instanceValues$$_.set(e, l);
1681
- }
1682
- n.apply(this, [ parsePropertyValue(s, t._$$members$$_[e][0]) ]);
1683
- setValue(this, e, r.$hostElement$[e], t);
1684
- return;
1685
- }
1686
- if (!r) return;
1687
- const setterSetVal = () => {
1688
- const n = r._$$lazyInstance$$_[e];
1689
- if (!r._$$instanceValues$$_.get(e) && n) {
1690
- r._$$instanceValues$$_.set(e, n);
1691
- }
1692
- r._$$lazyInstance$$_[e] = parsePropertyValue(s, t._$$members$$_[e][0]);
1693
- setValue(this, e, r._$$lazyInstance$$_[e], t);
1694
- };
1695
- if (r._$$lazyInstance$$_) {
1696
- setterSetVal();
1697
- } else {
1698
- r._$$onReadyPromise$$_.then((() => setterSetVal()));
1699
- }
1700
- }
1701
- });
1702
- }
1703
- }
1704
- } else if (n & 1 /* isElementConstructor */ && s & 64 /* Method */) {
1705
- Object.defineProperty(l, e, {
1706
- value(...t) {
1707
- var n;
1708
- const s = getHostRef(this);
1709
- return (n = s == null ? void 0 : s._$$onInstancePromise$$_) == null ? void 0 : n.then((() => {
1710
- var n;
1711
- return (n = s._$$lazyInstance$$_) == null ? void 0 : n[e](...t);
1712
- }));
1713
- }
1714
- });
1715
- }
1716
- }));
1717
- if (n & 1 /* isElementConstructor */) {
1718
- const n = new Map;
1719
- l.attributeChangedCallback = function(e, s, r) {
1720
- S.jmp((() => {
1721
- var o;
1722
- const i = n.get(e);
1723
- if (this.hasOwnProperty(i)) {
1724
- r = this[i];
1725
- delete this[i];
1726
- } else if (l.hasOwnProperty(i) && typeof this[i] === "number" && // cast type to number to avoid TS compiler issues
1727
- this[i] == r) {
1728
- return;
1729
- } else if (i == null) {
1730
- const n = getHostRef(this);
1731
- const l = n == null ? void 0 : n._$$flags$$_;
1732
- if (l && !(l & 8 /* isConstructingInstance */) && l & 128 /* isWatchReady */ && r !== s) {
1733
- const l = n._$$lazyInstance$$_;
1734
- const i = (o = t._$$watchers$$_) == null ? void 0 : o[e];
1735
- i == null ? void 0 : i.forEach((t => {
1736
- if (l[t] != null) {
1737
- l[t].call(l, r, s, e);
1738
- }
1739
- }));
1740
- }
1741
- return;
1742
- }
1743
- const a = Object.getOwnPropertyDescriptor(l, i);
1744
- if (!a.get || !!a.set) {
1745
- this[i] = r === null && typeof this[i] === "boolean" ? false : r;
1746
- }
1747
- }));
1748
- };
1749
- e.observedAttributes = Array.from(
1750
- new Set([ ...Object.keys((r = t._$$watchers$$_) != null ? r : {}), ...o.filter((([e, t]) => t[0] & 15 /* HasAttribute */)).map((([e, s]) => {
1751
- var r;
1752
- const l = s[1] || e;
1753
- n.set(l, e);
1754
- if (s[0] & 512 /* ReflectAttr */) {
1755
- (r = t._$$attrsToReflect$$_) == null ? void 0 : r.push([ e, l ]);
1756
- }
1757
- return l;
1758
- })) ]));
1759
- }
1760
- }
1761
- return e;
1762
- };
1763
-
1764
- // src/runtime/initialize-component.ts
1765
- var initializeComponent = async (e, t, n, s) => {
1766
- let r;
1767
- if ((t._$$flags$$_ & 32 /* hasInitializedComponent */) === 0) {
1768
- t._$$flags$$_ |= 32 /* hasInitializedComponent */;
1769
- const s = n._$$lazyBundleId$$_;
1770
- if (s) {
1771
- const e = loadModule(n);
1772
- if (e && "then" in e) {
1773
- const t = uniqueTime();
1774
- r = await e;
1775
- t();
1776
- } else {
1777
- r = e;
1778
- }
1779
- if (!r) {
1780
- throw new Error(`Constructor for "${n._$$tagName$$_}#${t._$$modeName$$_}" was not found`);
1781
- }
1782
- if (!r.isProxied) {
1783
- {
1784
- n._$$watchers$$_ = r.watchers;
1785
- }
1786
- proxyComponent(r, n, 2 /* proxyState */);
1787
- r.isProxied = true;
1788
- }
1789
- const s = createTime("createInstance", n._$$tagName$$_);
1790
- {
1791
- t._$$flags$$_ |= 8 /* isConstructingInstance */;
1792
- }
1793
- try {
1794
- new r(t);
1795
- } catch (e) {
1796
- consoleError(e);
1797
- }
1798
- {
1799
- t._$$flags$$_ &= ~8 /* isConstructingInstance */;
1800
- }
1801
- {
1802
- t._$$flags$$_ |= 128 /* isWatchReady */;
1803
- }
1804
- s();
1805
- fireConnectedCallback(t._$$lazyInstance$$_);
1806
- } else {
1807
- r = e.constructor;
1808
- const n = e.localName;
1809
- customElements.whenDefined(n).then((() => t._$$flags$$_ |= 128 /* isWatchReady */));
1810
- }
1811
- if (r && r.style) {
1812
- let e;
1813
- if (typeof r.style === "string") {
1814
- e = r.style;
1815
- }
1816
- const t = getScopeId(n);
1817
- if (!l.has(t)) {
1818
- const s = createTime("registerStyles", n._$$tagName$$_);
1819
- registerStyle(t, e, !!(n._$$flags$$_ & 1 /* shadowDomEncapsulation */));
1820
- s();
1821
- }
1822
- }
1823
- }
1824
- const o = t._$$ancestorComponent$$_;
1825
- const schedule = () => scheduleUpdate(t, true);
1826
- if (o && o["s-rc"]) {
1827
- o["s-rc"].push(schedule);
1828
- } else {
1829
- schedule();
1830
- }
1831
- };
1832
-
1833
- var fireConnectedCallback = e => {
1834
- {
1835
- safeCall(e, "connectedCallback");
1836
- }
1837
- };
1838
-
1839
- // src/runtime/connected-callback.ts
1840
- var connectedCallback = e => {
1841
- if ((S._$$flags$$_ & 1 /* isTmpDisconnected */) === 0) {
1842
- const t = getHostRef(e);
1843
- const n = t._$$cmpMeta$$_;
1844
- const s = createTime("connectedCallback", n._$$tagName$$_);
1845
- if (!(t._$$flags$$_ & 1 /* hasConnected */)) {
1846
- t._$$flags$$_ |= 1 /* hasConnected */;
1847
- let s;
1848
- {
1849
- s = e.getAttribute(u);
1850
- if (s) {
1851
- if (n._$$flags$$_ & 1 /* shadowDomEncapsulation */) {
1852
- const t = addStyle(e.shadowRoot, n);
1853
- e.classList.remove(t + "-h", t + "-s");
1854
- }
1855
- initializeClientHydrate(e, n._$$tagName$$_, s, t);
1856
- }
1857
- }
1858
- {
1859
- let n = e;
1860
- while (n = n.parentNode || n.host) {
1861
- if (n.nodeType === 1 /* ElementNode */ && n.hasAttribute("s-id") && n["s-p"] || n["s-p"]) {
1862
- attachToAncestor(t, t._$$ancestorComponent$$_ = n);
1863
- break;
1864
- }
1865
- }
1866
- }
1867
- if (n._$$members$$_) {
1868
- Object.entries(n._$$members$$_).map((([t, [n]]) => {
1869
- if (n & 31 /* Prop */ && e.hasOwnProperty(t)) {
1870
- const n = e[t];
1871
- delete e[t];
1872
- e[t] = n;
1873
- }
1874
- }));
1875
- }
1876
- {
1877
- initializeComponent(e, t, n);
1878
- }
1879
- } else {
1880
- addHostEventListeners(e, t, n._$$listeners$$_);
1881
- if (t == null ? void 0 : t._$$lazyInstance$$_) {
1882
- fireConnectedCallback(t._$$lazyInstance$$_);
1883
- } else if (t == null ? void 0 : t._$$onReadyPromise$$_) {
1884
- t._$$onReadyPromise$$_.then((() => fireConnectedCallback(t._$$lazyInstance$$_)));
1885
- }
1886
- }
1887
- s();
1888
- }
1889
- };
1890
-
1891
- var disconnectInstance = e => {
1892
- {
1893
- safeCall(e, "disconnectedCallback");
1894
- }
1895
- };
1896
-
1897
- var disconnectedCallback = async e => {
1898
- if ((S._$$flags$$_ & 1 /* isTmpDisconnected */) === 0) {
1899
- const t = getHostRef(e);
1900
- {
1901
- if (t._$$rmListeners$$_) {
1902
- t._$$rmListeners$$_.map((e => e()));
1903
- t._$$rmListeners$$_ = void 0;
1904
- }
1905
- }
1906
- if (t == null ? void 0 : t._$$lazyInstance$$_) {
1907
- disconnectInstance(t._$$lazyInstance$$_);
1908
- } else if (t == null ? void 0 : t._$$onReadyPromise$$_) {
1909
- t._$$onReadyPromise$$_.then((() => disconnectInstance(t._$$lazyInstance$$_)));
1910
- }
1911
- }
1912
- };
1913
-
1914
- // src/runtime/bootstrap-lazy.ts
1915
- var bootstrapLazy = (e, t = {}) => {
1916
- var n;
1917
- const s = createTime();
1918
- const r = [];
1919
- const l = t.exclude || [];
1920
- const o = b.customElements;
1921
- const i = w.head;
1922
- const a = i.querySelector("meta[charset]");
1923
- const f = w.createElement("style");
1924
- const c = [];
1925
- let u;
1926
- let d = true;
1927
- Object.assign(S, t);
1928
- S._$$resourcesUrl$$_ = new URL(t.resourcesUrl || "./", w.baseURI).href;
1929
- {
1930
- S._$$flags$$_ |= 2 /* appLoaded */;
1931
- }
1932
- let v = false;
1933
- e.map((e => {
1934
- e[1].map((t => {
1935
- var n;
1936
- const s = {
1937
- _$$flags$$_: t[0],
1938
- _$$tagName$$_: t[1],
1939
- _$$members$$_: t[2],
1940
- _$$listeners$$_: t[3]
1941
- };
1942
- if (s._$$flags$$_ & 4 /* hasSlotRelocation */) {
1943
- v = true;
1944
- }
1945
- {
1946
- s._$$members$$_ = t[2];
1947
- }
1948
- {
1949
- s._$$listeners$$_ = t[3];
1950
- }
1951
- {
1952
- s._$$attrsToReflect$$_ = [];
1953
- }
1954
- {
1955
- s._$$watchers$$_ = (n = t[4]) != null ? n : {};
1956
- }
1957
- const i = s._$$tagName$$_;
1958
- const a = class extends HTMLElement {
1959
- // StencilLazyHost
1960
- constructor(e) {
1961
- super(e);
1962
- this.hasRegisteredEventListeners = false;
1963
- e = this;
1964
- registerHost(e, s);
1965
- if (s._$$flags$$_ & 1 /* shadowDomEncapsulation */) {
1966
- {
1967
- if (!e.shadowRoot) {
1968
- {
1969
- e.attachShadow({
1970
- mode: "open"
1971
- });
1972
- }
1973
- } else {
1974
- if (e.shadowRoot.mode !== "open") {
1975
- throw new Error(`Unable to re-use existing shadow root for ${s._$$tagName$$_}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`);
1976
- }
1977
- }
1978
- }
1979
- }
1980
- }
1981
- connectedCallback() {
1982
- const e = getHostRef(this);
1983
- if (!this.hasRegisteredEventListeners) {
1984
- this.hasRegisteredEventListeners = true;
1985
- addHostEventListeners(this, e, s._$$listeners$$_);
1986
- }
1987
- if (u) {
1988
- clearTimeout(u);
1989
- u = null;
1990
- }
1991
- if (d) {
1992
- c.push(this);
1993
- } else {
1994
- S.jmp((() => connectedCallback(this)));
1995
- }
1996
- }
1997
- disconnectedCallback() {
1998
- S.jmp((() => disconnectedCallback(this)));
1999
- }
2000
- componentOnReady() {
2001
- return getHostRef(this)._$$onReadyPromise$$_;
2002
- }
2003
- };
2004
- {
2005
- {
2006
- patchCloneNode(a.prototype);
2007
- }
2008
- {
2009
- patchSlotAppendChild(a.prototype);
2010
- }
2011
- }
2012
- if (s._$$flags$$_ & 64 /* formAssociated */) {
2013
- a.formAssociated = true;
2014
- }
2015
- s._$$lazyBundleId$$_ = e[0];
2016
- if (!l.includes(i) && !o.get(i)) {
2017
- r.push(i);
2018
- o.define(i, proxyComponent(a, s, 1 /* isElementConstructor */));
2019
- }
2020
- }));
2021
- }));
2022
- if (r.length > 0) {
2023
- if (v) {
2024
- f.textContent += m;
2025
- }
2026
- {
2027
- f.textContent += r.sort() + p;
2028
- }
2029
- if (f.innerHTML.length) {
2030
- f.setAttribute("data-styles", "");
2031
- const e = (n = S._$$nonce$$_) != null ? n : queryNonceMetaTagContent(w);
2032
- if (e != null) {
2033
- f.setAttribute("nonce", e);
2034
- }
2035
- i.insertBefore(f, a ? a.nextSibling : i.firstChild);
2036
- }
2037
- }
2038
- d = false;
2039
- if (c.length) {
2040
- c.map((e => e.connectedCallback()));
2041
- } else {
2042
- {
2043
- S.jmp((() => u = setTimeout(appDidLoad, 30)));
2044
- }
2045
- }
2046
- s();
2047
- };
2048
-
2049
- var addHostEventListeners = (e, t, n, s) => {
2050
- if (n) {
2051
- n.map((([n, s, r]) => {
2052
- const l = getHostListenerTarget(e, n);
2053
- const o = hostListenerProxy(t, r);
2054
- const i = hostListenerOpts(n);
2055
- S.ael(l, s, o, i);
2056
- (t._$$rmListeners$$_ = t._$$rmListeners$$_ || []).push((() => S.rel(l, s, o, i)));
2057
- }));
2058
- }
2059
- };
2060
-
2061
- var hostListenerProxy = (e, t) => n => {
2062
- var s;
2063
- try {
2064
- {
2065
- if (e._$$flags$$_ & 256 /* isListenReady */) {
2066
- (s = e._$$lazyInstance$$_) == null ? void 0 : s[t](n);
2067
- } else {
2068
- (e._$$queuedListeners$$_ = e._$$queuedListeners$$_ || []).push([ t, n ]);
2069
- }
2070
- }
2071
- } catch (e) {
2072
- consoleError(e);
2073
- }
2074
- };
2075
-
2076
- var getHostListenerTarget = (e, t) => {
2077
- if (t & 4 /* TargetDocument */) return w;
2078
- if (t & 8 /* TargetWindow */) return b;
2079
- return e;
2080
- };
2081
-
2082
- var hostListenerOpts = e => C ? {
2083
- passive: (e & 1 /* Passive */) !== 0,
2084
- capture: (e & 2 /* Capture */) !== 0
2085
- } : (e & 2 /* Capture */) !== 0
2086
- // src/runtime/nonce.ts
2087
- ;
2088
-
2089
- var setNonce = e => S._$$nonce$$_ = e;
2090
-
2091
- export { g as H, A as a, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
2092
- //# sourceMappingURL=p-bde61e4e.js.map