@threadlabs/looma 0.2.5 → 0.2.7

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 (427) hide show
  1. package/dist/chunk-3HMMDK27.js +2914 -0
  2. package/dist/chunk-3K45IWIJ.js +4733 -0
  3. package/dist/chunk-MLKGABMK.js +9 -0
  4. package/dist/declarative-generated.cjs +135 -0
  5. package/dist/declarative-generated.d.cts +10 -0
  6. package/dist/declarative-generated.d.ts +10 -0
  7. package/dist/declarative-generated.js +111 -0
  8. package/dist/declarative.cjs +2942 -0
  9. package/dist/declarative.d.cts +27 -0
  10. package/dist/declarative.d.ts +27 -0
  11. package/dist/declarative.js +13 -0
  12. package/dist/index.cjs +7478 -6457
  13. package/dist/index.d.cts +4 -58
  14. package/dist/index.d.ts +4 -58
  15. package/dist/index.js +15 -27
  16. package/dist/loader.cjs +7652 -0
  17. package/dist/loader.d.cts +4 -0
  18. package/dist/loader.d.ts +4 -0
  19. package/dist/loader.js +16 -0
  20. package/dist/valibot.cjs +31 -0
  21. package/dist/valibot.d.cts +10 -0
  22. package/dist/valibot.d.ts +1 -43
  23. package/dist/valibot.js +2 -0
  24. package/dist/{types/field/validation.d.ts → validation-bxcou-l-.d.cts} +13 -11
  25. package/dist/validation-bxcou-l-.d.ts +58 -0
  26. package/editor/{chunk-B5WVJOPV.js → chunk-BXICJBWS.js} +118 -8
  27. package/editor/{chunk-ZOUKEZ77.js → chunk-JK53ENSG.js} +8 -21
  28. package/editor/chunk-WI7ZA44X.js +2558 -0
  29. package/editor/extensions/index.d.ts +11 -2
  30. package/editor/extensions/index.js +9 -7
  31. package/editor/index.d.ts +1 -1
  32. package/editor/index.js +10 -8
  33. package/editor/ui.js +2 -2
  34. package/editor.css +32 -0
  35. package/layout/index.cjs +466 -400
  36. package/layout/index.d.cts +1 -2
  37. package/layout/index.d.ts +1 -2
  38. package/layout/index.js +471 -395
  39. package/package.json +14 -5
  40. package/vue/chunk-4DPYH3IT.js +3538 -0
  41. package/vue/editor/index.d.ts +17 -7
  42. package/vue/editor/index.js +53 -35
  43. package/vue/index.d.ts +48 -31
  44. package/vue/index.js +1 -1
  45. package/dist/chunk-24OTMNIU.js +0 -1617
  46. package/dist/chunk-D5WRORG6.js +0 -366
  47. package/dist/chunk-HNFCGIBP.js +0 -8
  48. package/dist/chunk-NB6DBRXQ.js +0 -323
  49. package/dist/chunk-OF57X5AR.js +0 -10
  50. package/dist/chunk-TL4FIE7X.js +0 -93
  51. package/dist/chunk-UL7UIUJZ.js +0 -20
  52. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -5
  53. package/dist/cjs/controlled-state-BFya8rAX.js +0 -9
  54. package/dist/cjs/events-TcQIzpNv.js +0 -19
  55. package/dist/cjs/icons-BAdjrnhS.js +0 -680
  56. package/dist/cjs/id-CYbKpaYr.js +0 -9
  57. package/dist/cjs/index-BHG9Rpil.js +0 -1602
  58. package/dist/cjs/index.cjs.js +0 -2
  59. package/dist/cjs/loader.cjs.js +0 -13
  60. package/dist/cjs/looma.cjs.js +0 -25
  61. package/dist/cjs/manager-Ce25WRtl.js +0 -95
  62. package/dist/cjs/positioning-CCR6ifPj.js +0 -426
  63. package/dist/cjs/ui-affordance-scope.cjs.entry.js +0 -43
  64. package/dist/cjs/ui-avatar-group.cjs.entry.js +0 -43
  65. package/dist/cjs/ui-avatar.cjs.entry.js +0 -50
  66. package/dist/cjs/ui-badge.cjs.entry.js +0 -19
  67. package/dist/cjs/ui-button.cjs.entry.js +0 -75
  68. package/dist/cjs/ui-callout.cjs.entry.js +0 -27
  69. package/dist/cjs/ui-checkbox.cjs.entry.js +0 -97
  70. package/dist/cjs/ui-chip_2.cjs.entry.js +0 -258
  71. package/dist/cjs/ui-combobox.cjs.entry.js +0 -708
  72. package/dist/cjs/ui-context-menu.cjs.entry.js +0 -239
  73. package/dist/cjs/ui-dialog.cjs.entry.js +0 -131
  74. package/dist/cjs/ui-disclosure.cjs.entry.js +0 -112
  75. package/dist/cjs/ui-editable.cjs.entry.js +0 -100
  76. package/dist/cjs/ui-floating-action-button.cjs.entry.js +0 -20
  77. package/dist/cjs/ui-form-field.cjs.entry.js +0 -114
  78. package/dist/cjs/ui-icon-button.cjs.entry.js +0 -23
  79. package/dist/cjs/ui-input.cjs.entry.js +0 -106
  80. package/dist/cjs/ui-menu-item.cjs.entry.js +0 -19
  81. package/dist/cjs/ui-menu.cjs.entry.js +0 -182
  82. package/dist/cjs/ui-popover.cjs.entry.js +0 -135
  83. package/dist/cjs/ui-radio-group.cjs.entry.js +0 -134
  84. package/dist/cjs/ui-radio.cjs.entry.js +0 -94
  85. package/dist/cjs/ui-search-result-row.cjs.entry.js +0 -47
  86. package/dist/cjs/ui-search-shell.cjs.entry.js +0 -39
  87. package/dist/cjs/ui-select.cjs.entry.js +0 -108
  88. package/dist/cjs/ui-switch.cjs.entry.js +0 -74
  89. package/dist/cjs/ui-tabs.cjs.entry.js +0 -118
  90. package/dist/cjs/ui-textarea.cjs.entry.js +0 -110
  91. package/dist/cjs/ui-toast-region.cjs.entry.js +0 -93
  92. package/dist/cjs/ui-top-bar.cjs.entry.js +0 -43
  93. package/dist/cjs/ui-tree-item.cjs.entry.js +0 -135
  94. package/dist/cjs/ui-tree.cjs.entry.js +0 -500
  95. package/dist/collection/collection-manifest.json +0 -45
  96. package/dist/collection/components/ui-affordance-scope/ui-affordance-scope.css +0 -8
  97. package/dist/collection/components/ui-affordance-scope/ui-affordance-scope.js +0 -70
  98. package/dist/collection/components/ui-avatar/ui-avatar.css +0 -35
  99. package/dist/collection/components/ui-avatar/ui-avatar.js +0 -130
  100. package/dist/collection/components/ui-avatar-group/ui-avatar-group.css +0 -32
  101. package/dist/collection/components/ui-avatar-group/ui-avatar-group.js +0 -95
  102. package/dist/collection/components/ui-badge/ui-badge.css +0 -90
  103. package/dist/collection/components/ui-badge/ui-badge.js +0 -62
  104. package/dist/collection/components/ui-button/ui-button.css +0 -121
  105. package/dist/collection/components/ui-button/ui-button.js +0 -141
  106. package/dist/collection/components/ui-callout/ui-callout.css +0 -74
  107. package/dist/collection/components/ui-callout/ui-callout.js +0 -59
  108. package/dist/collection/components/ui-checkbox/ui-checkbox.css +0 -24
  109. package/dist/collection/components/ui-checkbox/ui-checkbox.js +0 -228
  110. package/dist/collection/components/ui-chip/ui-chip.css +0 -57
  111. package/dist/collection/components/ui-chip/ui-chip.js +0 -67
  112. package/dist/collection/components/ui-combobox/ui-combobox.css +0 -47
  113. package/dist/collection/components/ui-combobox/ui-combobox.js +0 -1295
  114. package/dist/collection/components/ui-context-menu/ui-context-menu.css +0 -34
  115. package/dist/collection/components/ui-context-menu/ui-context-menu.js +0 -311
  116. package/dist/collection/components/ui-dialog/ui-dialog.css +0 -72
  117. package/dist/collection/components/ui-dialog/ui-dialog.js +0 -242
  118. package/dist/collection/components/ui-disclosure/ui-disclosure.css +0 -7
  119. package/dist/collection/components/ui-disclosure/ui-disclosure.js +0 -184
  120. package/dist/collection/components/ui-editable/ui-editable.css +0 -2
  121. package/dist/collection/components/ui-editable/ui-editable.js +0 -196
  122. package/dist/collection/components/ui-floating-action-button/ui-floating-action-button.css +0 -73
  123. package/dist/collection/components/ui-floating-action-button/ui-floating-action-button.js +0 -85
  124. package/dist/collection/components/ui-form-field/ui-form-field.css +0 -25
  125. package/dist/collection/components/ui-form-field/ui-form-field.js +0 -180
  126. package/dist/collection/components/ui-icon-button/ui-icon-button.css +0 -145
  127. package/dist/collection/components/ui-icon-button/ui-icon-button.js +0 -128
  128. package/dist/collection/components/ui-input/ui-input.css +0 -48
  129. package/dist/collection/components/ui-input/ui-input.js +0 -217
  130. package/dist/collection/components/ui-menu/ui-menu.css +0 -73
  131. package/dist/collection/components/ui-menu/ui-menu.js +0 -280
  132. package/dist/collection/components/ui-menu-item/ui-menu-item.css +0 -32
  133. package/dist/collection/components/ui-menu-item/ui-menu-item.js +0 -64
  134. package/dist/collection/components/ui-popover/ui-popover.css +0 -58
  135. package/dist/collection/components/ui-popover/ui-popover.js +0 -232
  136. package/dist/collection/components/ui-radio/ui-radio.css +0 -22
  137. package/dist/collection/components/ui-radio/ui-radio.js +0 -226
  138. package/dist/collection/components/ui-radio-group/ui-radio-group.css +0 -10
  139. package/dist/collection/components/ui-radio-group/ui-radio-group.js +0 -247
  140. package/dist/collection/components/ui-search-result-row/ui-search-result-row.css +0 -80
  141. package/dist/collection/components/ui-search-result-row/ui-search-result-row.js +0 -100
  142. package/dist/collection/components/ui-search-shell/ui-search-shell.css +0 -63
  143. package/dist/collection/components/ui-search-shell/ui-search-shell.js +0 -46
  144. package/dist/collection/components/ui-select/ui-select.css +0 -64
  145. package/dist/collection/components/ui-select/ui-select.js +0 -218
  146. package/dist/collection/components/ui-switch/ui-switch.css +0 -63
  147. package/dist/collection/components/ui-switch/ui-switch.js +0 -185
  148. package/dist/collection/components/ui-tabs/ui-tabs.css +0 -68
  149. package/dist/collection/components/ui-tabs/ui-tabs.js +0 -190
  150. package/dist/collection/components/ui-textarea/ui-textarea.css +0 -49
  151. package/dist/collection/components/ui-textarea/ui-textarea.js +0 -241
  152. package/dist/collection/components/ui-toast-region/ui-toast-region.css +0 -59
  153. package/dist/collection/components/ui-toast-region/ui-toast-region.js +0 -126
  154. package/dist/collection/components/ui-tooltip/ui-tooltip.css +0 -43
  155. package/dist/collection/components/ui-tooltip/ui-tooltip.js +0 -430
  156. package/dist/collection/components/ui-top-bar/ui-top-bar.css +0 -51
  157. package/dist/collection/components/ui-top-bar/ui-top-bar.js +0 -52
  158. package/dist/collection/components/ui-tree/ui-tree.css +0 -12
  159. package/dist/collection/components/ui-tree/ui-tree.js +0 -515
  160. package/dist/collection/components/ui-tree-item/ui-tree-item.css +0 -217
  161. package/dist/collection/components/ui-tree-item/ui-tree-item.js +0 -406
  162. package/dist/collection/field/combobox.js +0 -4
  163. package/dist/collection/field/editable.js +0 -1
  164. package/dist/collection/field/multi-combobox.js +0 -1
  165. package/dist/collection/field/valibot.js +0 -5
  166. package/dist/collection/field/validation.js +0 -62
  167. package/dist/collection/icons.js +0 -71
  168. package/dist/collection/input-modality.js +0 -24
  169. package/dist/collection/overlay/manager.js +0 -92
  170. package/dist/collection/overlay/positioning.js +0 -424
  171. package/dist/collection/utils/controlled-state.js +0 -4
  172. package/dist/collection/utils/drag-drop.js +0 -51
  173. package/dist/collection/utils/events.js +0 -13
  174. package/dist/collection/utils/id.js +0 -5
  175. package/dist/collection/utils/initials.js +0 -11
  176. package/dist/components/index.d.ts +0 -102
  177. package/dist/components/index.js +0 -1
  178. package/dist/components/p-6SWSrfmW.js +0 -1
  179. package/dist/components/p-B_DaIVEY.js +0 -1
  180. package/dist/components/p-Bh_1GxOD.js +0 -1
  181. package/dist/components/p-BnGhGgTH.js +0 -1
  182. package/dist/components/p-BzaB_bXo.js +0 -1
  183. package/dist/components/p-C-0syqXZ.js +0 -1
  184. package/dist/components/p-CoFximGM.js +0 -13
  185. package/dist/components/p-JwSoedEO.js +0 -1
  186. package/dist/components/p-Vc4ExHFc.js +0 -1
  187. package/dist/components/p-hgBUJRDa.js +0 -1
  188. package/dist/components/ui-affordance-scope.d.ts +0 -11
  189. package/dist/components/ui-affordance-scope.js +0 -1
  190. package/dist/components/ui-avatar-group.d.ts +0 -11
  191. package/dist/components/ui-avatar-group.js +0 -1
  192. package/dist/components/ui-avatar.d.ts +0 -11
  193. package/dist/components/ui-avatar.js +0 -1
  194. package/dist/components/ui-badge.d.ts +0 -11
  195. package/dist/components/ui-badge.js +0 -1
  196. package/dist/components/ui-button.d.ts +0 -11
  197. package/dist/components/ui-button.js +0 -1
  198. package/dist/components/ui-callout.d.ts +0 -11
  199. package/dist/components/ui-callout.js +0 -1
  200. package/dist/components/ui-checkbox.d.ts +0 -11
  201. package/dist/components/ui-checkbox.js +0 -1
  202. package/dist/components/ui-chip.d.ts +0 -11
  203. package/dist/components/ui-chip.js +0 -1
  204. package/dist/components/ui-combobox.d.ts +0 -11
  205. package/dist/components/ui-combobox.js +0 -1
  206. package/dist/components/ui-context-menu.d.ts +0 -11
  207. package/dist/components/ui-context-menu.js +0 -1
  208. package/dist/components/ui-dialog.d.ts +0 -11
  209. package/dist/components/ui-dialog.js +0 -1
  210. package/dist/components/ui-disclosure.d.ts +0 -11
  211. package/dist/components/ui-disclosure.js +0 -1
  212. package/dist/components/ui-editable.d.ts +0 -11
  213. package/dist/components/ui-editable.js +0 -1
  214. package/dist/components/ui-floating-action-button.d.ts +0 -11
  215. package/dist/components/ui-floating-action-button.js +0 -1
  216. package/dist/components/ui-form-field.d.ts +0 -11
  217. package/dist/components/ui-form-field.js +0 -1
  218. package/dist/components/ui-icon-button.d.ts +0 -11
  219. package/dist/components/ui-icon-button.js +0 -1
  220. package/dist/components/ui-input.d.ts +0 -11
  221. package/dist/components/ui-input.js +0 -1
  222. package/dist/components/ui-menu-item.d.ts +0 -11
  223. package/dist/components/ui-menu-item.js +0 -1
  224. package/dist/components/ui-menu.d.ts +0 -11
  225. package/dist/components/ui-menu.js +0 -1
  226. package/dist/components/ui-popover.d.ts +0 -11
  227. package/dist/components/ui-popover.js +0 -1
  228. package/dist/components/ui-radio-group.d.ts +0 -11
  229. package/dist/components/ui-radio-group.js +0 -1
  230. package/dist/components/ui-radio.d.ts +0 -11
  231. package/dist/components/ui-radio.js +0 -1
  232. package/dist/components/ui-search-result-row.d.ts +0 -11
  233. package/dist/components/ui-search-result-row.js +0 -1
  234. package/dist/components/ui-search-shell.d.ts +0 -11
  235. package/dist/components/ui-search-shell.js +0 -1
  236. package/dist/components/ui-select.d.ts +0 -11
  237. package/dist/components/ui-select.js +0 -1
  238. package/dist/components/ui-switch.d.ts +0 -11
  239. package/dist/components/ui-switch.js +0 -1
  240. package/dist/components/ui-tabs.d.ts +0 -11
  241. package/dist/components/ui-tabs.js +0 -1
  242. package/dist/components/ui-textarea.d.ts +0 -11
  243. package/dist/components/ui-textarea.js +0 -1
  244. package/dist/components/ui-toast-region.d.ts +0 -11
  245. package/dist/components/ui-toast-region.js +0 -1
  246. package/dist/components/ui-tooltip.d.ts +0 -11
  247. package/dist/components/ui-tooltip.js +0 -1
  248. package/dist/components/ui-top-bar.d.ts +0 -11
  249. package/dist/components/ui-top-bar.js +0 -1
  250. package/dist/components/ui-tree-item.d.ts +0 -11
  251. package/dist/components/ui-tree-item.js +0 -1
  252. package/dist/components/ui-tree.d.ts +0 -11
  253. package/dist/components/ui-tree.js +0 -1
  254. package/dist/esm/app-globals-DQuL1Twl.js +0 -3
  255. package/dist/esm/controlled-state-BnGhGgTH.js +0 -6
  256. package/dist/esm/events-JwSoedEO.js +0 -15
  257. package/dist/esm/icons-CoFximGM.js +0 -678
  258. package/dist/esm/id-hgBUJRDa.js +0 -7
  259. package/dist/esm/index-8BGiMGQ0.js +0 -1593
  260. package/dist/esm/index.js +0 -1
  261. package/dist/esm/loader.js +0 -11
  262. package/dist/esm/looma.js +0 -21
  263. package/dist/esm/manager-C-0syqXZ.js +0 -91
  264. package/dist/esm/positioning-ZOr-2PSe.js +0 -421
  265. package/dist/esm/ui-affordance-scope.entry.js +0 -41
  266. package/dist/esm/ui-avatar-group.entry.js +0 -41
  267. package/dist/esm/ui-avatar.entry.js +0 -48
  268. package/dist/esm/ui-badge.entry.js +0 -17
  269. package/dist/esm/ui-button.entry.js +0 -73
  270. package/dist/esm/ui-callout.entry.js +0 -25
  271. package/dist/esm/ui-checkbox.entry.js +0 -95
  272. package/dist/esm/ui-chip_2.entry.js +0 -255
  273. package/dist/esm/ui-combobox.entry.js +0 -706
  274. package/dist/esm/ui-context-menu.entry.js +0 -237
  275. package/dist/esm/ui-dialog.entry.js +0 -129
  276. package/dist/esm/ui-disclosure.entry.js +0 -110
  277. package/dist/esm/ui-editable.entry.js +0 -98
  278. package/dist/esm/ui-floating-action-button.entry.js +0 -18
  279. package/dist/esm/ui-form-field.entry.js +0 -112
  280. package/dist/esm/ui-icon-button.entry.js +0 -21
  281. package/dist/esm/ui-input.entry.js +0 -104
  282. package/dist/esm/ui-menu-item.entry.js +0 -17
  283. package/dist/esm/ui-menu.entry.js +0 -180
  284. package/dist/esm/ui-popover.entry.js +0 -133
  285. package/dist/esm/ui-radio-group.entry.js +0 -132
  286. package/dist/esm/ui-radio.entry.js +0 -92
  287. package/dist/esm/ui-search-result-row.entry.js +0 -45
  288. package/dist/esm/ui-search-shell.entry.js +0 -37
  289. package/dist/esm/ui-select.entry.js +0 -106
  290. package/dist/esm/ui-switch.entry.js +0 -72
  291. package/dist/esm/ui-tabs.entry.js +0 -116
  292. package/dist/esm/ui-textarea.entry.js +0 -108
  293. package/dist/esm/ui-toast-region.entry.js +0 -91
  294. package/dist/esm/ui-top-bar.entry.js +0 -41
  295. package/dist/esm/ui-tree-item.entry.js +0 -133
  296. package/dist/esm/ui-tree.entry.js +0 -498
  297. package/dist/index.cjs.js +0 -1
  298. package/dist/looma/index.esm.js +0 -0
  299. package/dist/looma/looma.esm.js +0 -1
  300. package/dist/looma/p-08f80207.entry.js +0 -1
  301. package/dist/looma/p-0b5b8d9e.entry.js +0 -1
  302. package/dist/looma/p-1249a806.entry.js +0 -1
  303. package/dist/looma/p-16e0669d.entry.js +0 -1
  304. package/dist/looma/p-1c00670f.entry.js +0 -1
  305. package/dist/looma/p-1c5a7522.entry.js +0 -1
  306. package/dist/looma/p-22842f8c.entry.js +0 -1
  307. package/dist/looma/p-2915d5c0.entry.js +0 -1
  308. package/dist/looma/p-3b2961a6.entry.js +0 -1
  309. package/dist/looma/p-3f60f4c8.entry.js +0 -1
  310. package/dist/looma/p-424d6719.entry.js +0 -1
  311. package/dist/looma/p-4caccfce.entry.js +0 -1
  312. package/dist/looma/p-5fdcee1d.entry.js +0 -1
  313. package/dist/looma/p-6d8b99ee.entry.js +0 -1
  314. package/dist/looma/p-6f20d470.entry.js +0 -1
  315. package/dist/looma/p-7c0b5364.entry.js +0 -1
  316. package/dist/looma/p-8BGiMGQ0.js +0 -2
  317. package/dist/looma/p-8bdd9495.entry.js +0 -1
  318. package/dist/looma/p-99116a72.entry.js +0 -1
  319. package/dist/looma/p-9cfbf722.entry.js +0 -1
  320. package/dist/looma/p-9d2662ca.entry.js +0 -1
  321. package/dist/looma/p-9ff2fa19.entry.js +0 -1
  322. package/dist/looma/p-BnGhGgTH.js +0 -1
  323. package/dist/looma/p-C-0syqXZ.js +0 -1
  324. package/dist/looma/p-CoFximGM.js +0 -13
  325. package/dist/looma/p-DQuL1Twl.js +0 -1
  326. package/dist/looma/p-JwSoedEO.js +0 -1
  327. package/dist/looma/p-ZOr-2PSe.js +0 -1
  328. package/dist/looma/p-a2dd4c6c.entry.js +0 -1
  329. package/dist/looma/p-add67e4c.entry.js +0 -1
  330. package/dist/looma/p-b6ede6bb.entry.js +0 -1
  331. package/dist/looma/p-b76e2111.entry.js +0 -1
  332. package/dist/looma/p-ca2a54fd.entry.js +0 -1
  333. package/dist/looma/p-d372b0db.entry.js +0 -1
  334. package/dist/looma/p-d4825822.entry.js +0 -1
  335. package/dist/looma/p-d56571a2.entry.js +0 -1
  336. package/dist/looma/p-d5c3954f.entry.js +0 -1
  337. package/dist/looma/p-e604e906.entry.js +0 -1
  338. package/dist/looma/p-f1f7c5cb.entry.js +0 -1
  339. package/dist/looma/p-hgBUJRDa.js +0 -1
  340. package/dist/types/components/ui-affordance-scope/ui-affordance-scope.d.ts +0 -11
  341. package/dist/types/components/ui-avatar/ui-avatar.d.ts +0 -11
  342. package/dist/types/components/ui-avatar-group/ui-avatar-group.d.ts +0 -11
  343. package/dist/types/components/ui-badge/ui-badge.d.ts +0 -5
  344. package/dist/types/components/ui-button/ui-button.d.ts +0 -13
  345. package/dist/types/components/ui-callout/ui-callout.d.ts +0 -6
  346. package/dist/types/components/ui-checkbox/ui-checkbox.d.ts +0 -20
  347. package/dist/types/components/ui-chip/ui-chip.d.ts +0 -8
  348. package/dist/types/components/ui-combobox/ui-combobox.d.ts +0 -128
  349. package/dist/types/components/ui-context-menu/ui-context-menu.d.ts +0 -43
  350. package/dist/types/components/ui-dialog/ui-dialog.d.ts +0 -27
  351. package/dist/types/components/ui-disclosure/ui-disclosure.d.ts +0 -21
  352. package/dist/types/components/ui-editable/ui-editable.d.ts +0 -24
  353. package/dist/types/components/ui-floating-action-button/ui-floating-action-button.d.ts +0 -6
  354. package/dist/types/components/ui-form-field/ui-form-field.d.ts +0 -18
  355. package/dist/types/components/ui-icon-button/ui-icon-button.d.ts +0 -9
  356. package/dist/types/components/ui-input/ui-input.d.ts +0 -19
  357. package/dist/types/components/ui-menu/ui-menu.d.ts +0 -28
  358. package/dist/types/components/ui-menu-item/ui-menu-item.d.ts +0 -5
  359. package/dist/types/components/ui-popover/ui-popover.d.ts +0 -26
  360. package/dist/types/components/ui-radio/ui-radio.d.ts +0 -20
  361. package/dist/types/components/ui-radio-group/ui-radio-group.d.ts +0 -21
  362. package/dist/types/components/ui-search-result-row/ui-search-result-row.d.ts +0 -15
  363. package/dist/types/components/ui-search-shell/ui-search-shell.d.ts +0 -9
  364. package/dist/types/components/ui-select/ui-select.d.ts +0 -20
  365. package/dist/types/components/ui-switch/ui-switch.d.ts +0 -16
  366. package/dist/types/components/ui-tabs/ui-tabs.d.ts +0 -18
  367. package/dist/types/components/ui-textarea/ui-textarea.d.ts +0 -20
  368. package/dist/types/components/ui-toast-region/ui-toast-region.d.ts +0 -16
  369. package/dist/types/components/ui-tooltip/ui-tooltip.d.ts +0 -57
  370. package/dist/types/components/ui-top-bar/ui-top-bar.d.ts +0 -12
  371. package/dist/types/components/ui-tree/ui-tree.d.ts +0 -53
  372. package/dist/types/components/ui-tree-item/ui-tree-item.d.ts +0 -44
  373. package/dist/types/components.d.ts +0 -1889
  374. package/dist/types/field/combobox.d.ts +0 -46
  375. package/dist/types/field/editable.d.ts +0 -5
  376. package/dist/types/field/multi-combobox.d.ts +0 -11
  377. package/dist/types/field/valibot.d.ts +0 -7
  378. package/dist/types/icons.d.ts +0 -53
  379. package/dist/types/input-modality.d.ts +0 -6
  380. package/dist/types/overlay/manager.d.ts +0 -17
  381. package/dist/types/overlay/positioning.d.ts +0 -74
  382. package/dist/types/stencil-public-runtime.d.ts +0 -1860
  383. package/dist/types/utils/controlled-state.d.ts +0 -4
  384. package/dist/types/utils/drag-drop.d.ts +0 -15
  385. package/dist/types/utils/events.d.ts +0 -4
  386. package/dist/types/utils/id.d.ts +0 -1
  387. package/dist/types/utils/initials.d.ts +0 -1
  388. package/dist/ui-affordance-scope.entry-L6TIXYOP.js +0 -54
  389. package/dist/ui-avatar-group.entry-TCAA6P72.js +0 -51
  390. package/dist/ui-avatar.entry-52DQ7VXA.js +0 -51
  391. package/dist/ui-badge.entry-2XCAA6LL.js +0 -22
  392. package/dist/ui-button.entry-MNFBMNSX.js +0 -83
  393. package/dist/ui-callout.entry-SSHT5TH2.js +0 -32
  394. package/dist/ui-checkbox.entry-LOWIWIWI.js +0 -111
  395. package/dist/ui-chip_2.entry-BIMTSF6C.js +0 -272
  396. package/dist/ui-combobox.entry-25Z4MN7N.js +0 -717
  397. package/dist/ui-context-menu.entry-YZDL5Y4M.js +0 -248
  398. package/dist/ui-dialog.entry-HIXZX5AB.js +0 -146
  399. package/dist/ui-disclosure.entry-2JZHZNDQ.js +0 -126
  400. package/dist/ui-editable.entry-U3VR3XPT.js +0 -110
  401. package/dist/ui-floating-action-button.entry-6S3QN3KJ.js +0 -23
  402. package/dist/ui-form-field.entry-GQOSMLHT.js +0 -120
  403. package/dist/ui-icon-button.entry-QJXKVDM6.js +0 -26
  404. package/dist/ui-input.entry-UWMQ6JMP.js +0 -114
  405. package/dist/ui-menu-item.entry-NHNZKKJS.js +0 -22
  406. package/dist/ui-menu.entry-D53RUJND.js +0 -192
  407. package/dist/ui-popover.entry-7ZSIWCFQ.js +0 -152
  408. package/dist/ui-radio-group.entry-37MSYIH4.js +0 -142
  409. package/dist/ui-radio.entry-7YGCDHXT.js +0 -108
  410. package/dist/ui-search-result-row.entry-6FCCLGAS.js +0 -50
  411. package/dist/ui-search-shell.entry-HSBEXPER.js +0 -41
  412. package/dist/ui-select.entry-GIDIAYRD.js +0 -117
  413. package/dist/ui-switch.entry-MYAL6XPC.js +0 -87
  414. package/dist/ui-tabs.entry-R4TEXQSD.js +0 -128
  415. package/dist/ui-textarea.entry-FW32JNDV.js +0 -119
  416. package/dist/ui-toast-region.entry-BTMFPKZF.js +0 -104
  417. package/dist/ui-top-bar.entry-5DQGJF3B.js +0 -49
  418. package/dist/ui-tree-item.entry-ADT7DSOS.js +0 -145
  419. package/dist/ui-tree.entry-7PYQ5RIN.js +0 -470
  420. package/editor/chunk-64GLF274.js +0 -1271
  421. package/layout/index.css +0 -387
  422. package/loader/cdn.js +0 -1
  423. package/loader/index.cjs.js +0 -1
  424. package/loader/index.d.ts +0 -24
  425. package/loader/index.es2017.js +0 -1
  426. package/loader/index.js +0 -2
  427. package/vue/chunk-ROMBQS2L.js +0 -352
@@ -1,1593 +0,0 @@
1
- const NAMESPACE = 'looma';
2
- const BUILD = /* looma */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, state: true, updatable: true};
3
-
4
- /*
5
- Stencil Client Platform v4.43.2 | MIT Licensed | https://stenciljs.com
6
- */
7
-
8
-
9
- // src/utils/get-prop-descriptor.ts
10
- function getPropertyDescriptor(obj, memberName, getOnly) {
11
- const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
12
- while (obj && obj !== stopAt) {
13
- const desc = Object.getOwnPropertyDescriptor(obj, memberName);
14
- if (desc && (!getOnly || desc.get)) return desc;
15
- obj = Object.getPrototypeOf(obj);
16
- }
17
- return void 0;
18
- }
19
-
20
- // src/utils/es2022-rewire-class-members.ts
21
- var reWireGetterSetter = (instance, hostRef) => {
22
- var _a;
23
- const cmpMeta = hostRef.$cmpMeta$;
24
- const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
25
- members.map(([memberName, [memberFlags]]) => {
26
- if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
27
- const ogValue = instance[memberName];
28
- const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
29
- if (ogDescriptor) {
30
- Object.defineProperty(instance, memberName, {
31
- get() {
32
- return ogDescriptor.get.call(this);
33
- },
34
- set(newValue) {
35
- ogDescriptor.set.call(this, newValue);
36
- },
37
- configurable: true,
38
- enumerable: true
39
- });
40
- }
41
- if (hostRef.$instanceValues$.has(memberName)) {
42
- instance[memberName] = hostRef.$instanceValues$.get(memberName);
43
- } else if (ogValue !== void 0) {
44
- instance[memberName] = ogValue;
45
- }
46
- }
47
- });
48
- };
49
-
50
- // src/client/client-host-ref.ts
51
- var getHostRef = (ref) => {
52
- if (ref.__stencil__getHostRef) {
53
- return ref.__stencil__getHostRef();
54
- }
55
- return void 0;
56
- };
57
- var registerInstance = (lazyInstance, hostRef) => {
58
- if (!hostRef) return;
59
- lazyInstance.__stencil__getHostRef = () => hostRef;
60
- hostRef.$lazyInstance$ = lazyInstance;
61
- if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
62
- reWireGetterSetter(lazyInstance, hostRef);
63
- }
64
- };
65
- var registerHost = (hostElement, cmpMeta) => {
66
- const hostRef = {
67
- $flags$: 0,
68
- $hostElement$: hostElement,
69
- $cmpMeta$: cmpMeta,
70
- $instanceValues$: /* @__PURE__ */ new Map(),
71
- $serializerValues$: /* @__PURE__ */ new Map()
72
- };
73
- {
74
- hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
75
- }
76
- {
77
- hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
78
- hostElement["s-p"] = [];
79
- hostElement["s-rc"] = [];
80
- }
81
- {
82
- hostRef.$fetchedCbList$ = [];
83
- }
84
- const ref = hostRef;
85
- hostElement.__stencil__getHostRef = () => ref;
86
- return ref;
87
- };
88
- var isMemberInElement = (elm, memberName) => memberName in elm;
89
- var consoleError = (e, el) => (0, console.error)(e, el);
90
-
91
- // src/client/client-load-module.ts
92
- var cmpModules = /* @__PURE__ */ new Map();
93
- var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
94
- const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
95
- const bundleId = cmpMeta.$lazyBundleId$;
96
- if (!bundleId) {
97
- return void 0;
98
- }
99
- const module = cmpModules.get(bundleId) ;
100
- if (module) {
101
- return module[exportName];
102
- }
103
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
104
- return import(
105
- /* @vite-ignore */
106
- /* webpackInclude: /\.entry\.js$/ */
107
- /* webpackExclude: /\.system\.entry\.js$/ */
108
- /* webpackMode: "lazy" */
109
- `./${bundleId}.entry.js${""}`
110
- ).then(
111
- (importedModule) => {
112
- {
113
- cmpModules.set(bundleId, importedModule);
114
- }
115
- return importedModule[exportName];
116
- },
117
- (e) => {
118
- consoleError(e, hostRef.$hostElement$);
119
- }
120
- );
121
- };
122
-
123
- // src/client/client-style.ts
124
- var styles = /* @__PURE__ */ new Map();
125
- var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
126
- var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
127
- var win = typeof window !== "undefined" ? window : {};
128
- var plt = {
129
- $flags$: 0,
130
- $resourcesUrl$: "",
131
- jmp: (h2) => h2(),
132
- raf: (h2) => requestAnimationFrame(h2),
133
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
134
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
135
- ce: (eventName, opts) => new CustomEvent(eventName, opts)
136
- };
137
- var promiseResolve = (v) => Promise.resolve(v);
138
- var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
139
- try {
140
- if (!win.document.adoptedStyleSheets) {
141
- return false;
142
- }
143
- new CSSStyleSheet();
144
- return typeof new CSSStyleSheet().replaceSync === "function";
145
- } catch (e) {
146
- }
147
- return false;
148
- })() ;
149
- var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
150
- var queuePending = false;
151
- var queueDomReads = [];
152
- var queueDomWrites = [];
153
- var queueTask = (queue, write) => (cb) => {
154
- queue.push(cb);
155
- if (!queuePending) {
156
- queuePending = true;
157
- if (write && plt.$flags$ & 4 /* queueSync */) {
158
- nextTick(flush);
159
- } else {
160
- plt.raf(flush);
161
- }
162
- }
163
- };
164
- var consume = (queue) => {
165
- for (let i2 = 0; i2 < queue.length; i2++) {
166
- try {
167
- queue[i2](performance.now());
168
- } catch (e) {
169
- consoleError(e);
170
- }
171
- }
172
- queue.length = 0;
173
- };
174
- var flush = () => {
175
- consume(queueDomReads);
176
- {
177
- consume(queueDomWrites);
178
- if (queuePending = queueDomReads.length > 0) {
179
- plt.raf(flush);
180
- }
181
- }
182
- };
183
- var nextTick = (cb) => promiseResolve().then(cb);
184
- var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
185
-
186
- // src/utils/style.ts
187
- function createStyleSheetIfNeededAndSupported(styles2) {
188
- return void 0;
189
- }
190
-
191
- // src/utils/shadow-root.ts
192
- var globalStyleSheet;
193
- function createShadowRoot(cmpMeta) {
194
- var _a;
195
- const opts = { mode: "open" };
196
- const shadowRoot = this.attachShadow(opts);
197
- if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
198
- if (globalStyleSheet) {
199
- if (supportsMutableAdoptedStyleSheets) {
200
- shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
201
- } else {
202
- shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
203
- }
204
- }
205
- }
206
- var createTime = (fnName, tagName = "") => {
207
- {
208
- return () => {
209
- return;
210
- };
211
- }
212
- };
213
- var uniqueTime = (key, measureText) => {
214
- {
215
- return () => {
216
- return;
217
- };
218
- }
219
- };
220
-
221
- // src/utils/query-nonce-meta-tag-content.ts
222
- function queryNonceMetaTagContent(doc) {
223
- var _a, _b, _c;
224
- return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
225
- }
226
-
227
- // src/runtime/styles.ts
228
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
229
- var registerStyle = (scopeId2, cssText, allowCS) => {
230
- let style = styles.get(scopeId2);
231
- if (supportsConstructableStylesheets && allowCS) {
232
- style = style || new CSSStyleSheet();
233
- if (typeof style === "string") {
234
- style = cssText;
235
- } else {
236
- style.replaceSync(cssText);
237
- }
238
- } else {
239
- style = cssText;
240
- }
241
- styles.set(scopeId2, style);
242
- };
243
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
244
- var _a, _b, _c;
245
- const scopeId2 = getScopeId(cmpMeta);
246
- const style = styles.get(scopeId2);
247
- if (!win.document) {
248
- return scopeId2;
249
- }
250
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
251
- if (style) {
252
- if (typeof style === "string") {
253
- styleContainerNode = styleContainerNode.head || styleContainerNode;
254
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
255
- let styleElm;
256
- if (!appliedStyles) {
257
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
258
- }
259
- if (!appliedStyles.has(scopeId2)) {
260
- styleElm = win.document.createElement("style");
261
- styleElm.textContent = style;
262
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
263
- if (nonce != null) {
264
- styleElm.setAttribute("nonce", nonce);
265
- }
266
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
267
- if (styleContainerNode.nodeName === "HEAD") {
268
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
269
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
270
- styleContainerNode.insertBefore(
271
- styleElm,
272
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
273
- );
274
- } else if ("host" in styleContainerNode) {
275
- if (supportsConstructableStylesheets) {
276
- const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
277
- const stylesheet = new currentWindow.CSSStyleSheet();
278
- stylesheet.replaceSync(style);
279
- if (supportsMutableAdoptedStyleSheets) {
280
- styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
281
- } else {
282
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
283
- }
284
- } else {
285
- const existingStyleContainer = styleContainerNode.querySelector("style");
286
- if (existingStyleContainer && true) {
287
- existingStyleContainer.textContent = style + existingStyleContainer.textContent;
288
- } else {
289
- styleContainerNode.prepend(styleElm);
290
- }
291
- }
292
- } else {
293
- styleContainerNode.append(styleElm);
294
- }
295
- }
296
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
297
- styleContainerNode.insertBefore(styleElm, null);
298
- }
299
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
300
- styleElm.textContent += SLOT_FB_CSS;
301
- }
302
- if (appliedStyles) {
303
- appliedStyles.add(scopeId2);
304
- }
305
- }
306
- } else {
307
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
308
- if (!appliedStyles) {
309
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
310
- }
311
- if (!appliedStyles.has(scopeId2)) {
312
- const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
313
- let stylesheet;
314
- if (style.constructor === currentWindow.CSSStyleSheet) {
315
- stylesheet = style;
316
- } else {
317
- stylesheet = new currentWindow.CSSStyleSheet();
318
- for (let i2 = 0; i2 < style.cssRules.length; i2++) {
319
- stylesheet.insertRule(style.cssRules[i2].cssText, i2);
320
- }
321
- }
322
- if (supportsMutableAdoptedStyleSheets) {
323
- styleContainerNode.adoptedStyleSheets.push(stylesheet);
324
- } else {
325
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
326
- }
327
- appliedStyles.add(scopeId2);
328
- }
329
- }
330
- }
331
- return scopeId2;
332
- };
333
- var attachStyles = (hostRef) => {
334
- const cmpMeta = hostRef.$cmpMeta$;
335
- const elm = hostRef.$hostElement$;
336
- const flags = cmpMeta.$flags$;
337
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
338
- const scopeId2 = addStyle(
339
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
340
- cmpMeta);
341
- if (flags & 10 /* needsScopedEncapsulation */) {
342
- elm["s-sc"] = scopeId2;
343
- elm.classList.add(scopeId2 + "-h");
344
- }
345
- endAttachStyles();
346
- };
347
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
348
- var isComplexType = (o) => {
349
- o = typeof o;
350
- return o === "object" || o === "function";
351
- };
352
-
353
- // src/runtime/vdom/h.ts
354
- var h = (nodeName, vnodeData, ...children) => {
355
- if (typeof nodeName === "string") {
356
- nodeName = transformTag(nodeName);
357
- }
358
- let child = null;
359
- let key = null;
360
- let simple = false;
361
- let lastSimple = false;
362
- const vNodeChildren = [];
363
- const walk = (c) => {
364
- for (let i2 = 0; i2 < c.length; i2++) {
365
- child = c[i2];
366
- if (Array.isArray(child)) {
367
- walk(child);
368
- } else if (child != null && typeof child !== "boolean") {
369
- if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
370
- child = String(child);
371
- }
372
- if (simple && lastSimple) {
373
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
374
- } else {
375
- vNodeChildren.push(simple ? newVNode(null, child) : child);
376
- }
377
- lastSimple = simple;
378
- }
379
- }
380
- };
381
- walk(children);
382
- if (vnodeData) {
383
- if (vnodeData.key) {
384
- key = vnodeData.key;
385
- }
386
- {
387
- const classData = vnodeData.className || vnodeData.class;
388
- if (classData) {
389
- vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
390
- }
391
- }
392
- }
393
- const vnode = newVNode(nodeName, null);
394
- vnode.$attrs$ = vnodeData;
395
- if (vNodeChildren.length > 0) {
396
- vnode.$children$ = vNodeChildren;
397
- }
398
- {
399
- vnode.$key$ = key;
400
- }
401
- return vnode;
402
- };
403
- var newVNode = (tag, text) => {
404
- const vnode = {
405
- $flags$: 0,
406
- $tag$: tag,
407
- // Normalize undefined to null to prevent rendering "undefined" as text
408
- $text$: text != null ? text : null,
409
- $elm$: null,
410
- $children$: null
411
- };
412
- {
413
- vnode.$attrs$ = null;
414
- }
415
- {
416
- vnode.$key$ = null;
417
- }
418
- return vnode;
419
- };
420
- var Host = {};
421
- var isHost = (node) => node && node.$tag$ === Host;
422
-
423
- // src/runtime/parse-property-value.ts
424
- var parsePropertyValue = (propValue, propType, isFormAssociated) => {
425
- if (propValue != null && !isComplexType(propValue)) {
426
- if (propType & 4 /* Boolean */) {
427
- {
428
- return propValue === "false" ? false : propValue === "" || !!propValue;
429
- }
430
- }
431
- if (propType & 2 /* Number */) {
432
- return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
433
- }
434
- if (propType & 1 /* String */) {
435
- return String(propValue);
436
- }
437
- return propValue;
438
- }
439
- return propValue;
440
- };
441
- var getElement = (ref) => {
442
- var _a;
443
- return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
444
- };
445
-
446
- // src/runtime/event-emitter.ts
447
- var createEvent = (ref, name, flags) => {
448
- const elm = getElement(ref);
449
- return {
450
- emit: (detail) => {
451
- return emitEvent(elm, name, {
452
- bubbles: true,
453
- composed: true,
454
- cancelable: true,
455
- detail
456
- });
457
- }
458
- };
459
- };
460
- var emitEvent = (elm, name, opts) => {
461
- const ev = plt.ce(name, opts);
462
- elm.dispatchEvent(ev);
463
- return ev;
464
- };
465
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
466
- if (oldValue === newValue) {
467
- return;
468
- }
469
- let isProp = isMemberInElement(elm, memberName);
470
- let ln = memberName.toLowerCase();
471
- if (memberName === "class") {
472
- const classList = elm.classList;
473
- const oldClasses = parseClassList(oldValue);
474
- let newClasses = parseClassList(newValue);
475
- {
476
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
477
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
478
- }
479
- } else if (memberName === "style") {
480
- {
481
- for (const prop in oldValue) {
482
- if (!newValue || newValue[prop] == null) {
483
- if (prop.includes("-")) {
484
- elm.style.removeProperty(prop);
485
- } else {
486
- elm.style[prop] = "";
487
- }
488
- }
489
- }
490
- }
491
- for (const prop in newValue) {
492
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
493
- if (prop.includes("-")) {
494
- elm.style.setProperty(prop, newValue[prop]);
495
- } else {
496
- elm.style[prop] = newValue[prop];
497
- }
498
- }
499
- }
500
- } else if (memberName === "key") ; else if (memberName === "ref") {
501
- if (newValue) {
502
- queueRefAttachment(newValue, elm);
503
- }
504
- } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
505
- if (memberName[2] === "-") {
506
- memberName = memberName.slice(3);
507
- } else if (isMemberInElement(win, ln)) {
508
- memberName = ln.slice(2);
509
- } else {
510
- memberName = ln[2] + memberName.slice(3);
511
- }
512
- if (oldValue || newValue) {
513
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
514
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
515
- if (oldValue) {
516
- plt.rel(elm, memberName, oldValue, capture);
517
- }
518
- if (newValue) {
519
- plt.ael(elm, memberName, newValue, capture);
520
- }
521
- }
522
- } else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
523
- const propName = memberName.slice(5);
524
- let attrName;
525
- {
526
- const hostRef = getHostRef(elm);
527
- if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
528
- const memberMeta = hostRef.$cmpMeta$.$members$[propName];
529
- if (memberMeta && memberMeta[1]) {
530
- attrName = memberMeta[1];
531
- }
532
- }
533
- }
534
- if (!attrName) {
535
- attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
536
- }
537
- if (newValue == null || newValue === false) {
538
- if (newValue !== false || elm.getAttribute(attrName) === "") {
539
- elm.removeAttribute(attrName);
540
- }
541
- } else {
542
- elm.setAttribute(attrName, newValue === true ? "" : newValue);
543
- }
544
- return;
545
- } else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
546
- const propName = memberName.slice(5);
547
- try {
548
- elm[propName] = newValue;
549
- } catch (e) {
550
- }
551
- return;
552
- } else {
553
- const isComplex = isComplexType(newValue);
554
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
555
- try {
556
- if (!elm.tagName.includes("-")) {
557
- const n = newValue == null ? "" : newValue;
558
- if (memberName === "list") {
559
- isProp = false;
560
- } else if (oldValue == null || elm[memberName] !== n) {
561
- if (typeof elm.__lookupSetter__(memberName) === "function") {
562
- elm[memberName] = n;
563
- } else {
564
- elm.setAttribute(memberName, n);
565
- }
566
- }
567
- } else if (elm[memberName] !== newValue) {
568
- elm[memberName] = newValue;
569
- }
570
- } catch (e) {
571
- }
572
- }
573
- if (newValue == null || newValue === false) {
574
- if (newValue !== false || elm.getAttribute(memberName) === "") {
575
- {
576
- elm.removeAttribute(memberName);
577
- }
578
- }
579
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
580
- newValue = newValue === true ? "" : newValue;
581
- {
582
- elm.setAttribute(memberName, newValue);
583
- }
584
- }
585
- }
586
- };
587
- var parseClassListRegex = /\s/;
588
- var parseClassList = (value) => {
589
- if (typeof value === "object" && value && "baseVal" in value) {
590
- value = value.baseVal;
591
- }
592
- if (!value || typeof value !== "string") {
593
- return [];
594
- }
595
- return value.split(parseClassListRegex);
596
- };
597
- var CAPTURE_EVENT_SUFFIX = "Capture";
598
- var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
599
-
600
- // src/runtime/vdom/update-element.ts
601
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
602
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
603
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
604
- const newVnodeAttrs = newVnode.$attrs$ || {};
605
- {
606
- for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
607
- if (!(memberName in newVnodeAttrs)) {
608
- setAccessor(
609
- elm,
610
- memberName,
611
- oldVnodeAttrs[memberName],
612
- void 0,
613
- isSvgMode2,
614
- newVnode.$flags$);
615
- }
616
- }
617
- }
618
- for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
619
- setAccessor(
620
- elm,
621
- memberName,
622
- oldVnodeAttrs[memberName],
623
- newVnodeAttrs[memberName],
624
- isSvgMode2,
625
- newVnode.$flags$);
626
- }
627
- };
628
- function sortedAttrNames(attrNames) {
629
- return attrNames.includes("ref") ? (
630
- // we need to sort these to ensure that `'ref'` is the last attr
631
- [...attrNames.filter((attr) => attr !== "ref"), "ref"]
632
- ) : (
633
- // no need to sort, return the original array
634
- attrNames
635
- );
636
- }
637
- var hostTagName;
638
- var useNativeShadowDom = false;
639
- var isSvgMode = false;
640
- var refCallbacksToRemove = [];
641
- var refCallbacksToAttach = [];
642
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
643
- const newVNode2 = newParentVNode.$children$[childIndex];
644
- let i2 = 0;
645
- let elm;
646
- let childNode;
647
- if (newVNode2.$text$ != null) {
648
- elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
649
- } else {
650
- if (!win.document) {
651
- throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
652
- }
653
- elm = newVNode2.$elm$ = win.document.createElement(
654
- newVNode2.$tag$
655
- );
656
- {
657
- updateElement(null, newVNode2, isSvgMode);
658
- }
659
- if (newVNode2.$children$) {
660
- const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
661
- for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
662
- childNode = createElm(oldParentVNode, newVNode2, i2);
663
- if (childNode) {
664
- appendTarget.appendChild(childNode);
665
- }
666
- }
667
- }
668
- }
669
- elm["s-hn"] = hostTagName;
670
- return elm;
671
- };
672
- var relocateToHostRoot = (parentElm) => {
673
- plt.$flags$ |= 1 /* isTmpDisconnected */;
674
- const host = parentElm.closest(hostTagName.toLowerCase());
675
- if (host != null) {
676
- const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
677
- (ref) => ref["s-cr"]
678
- );
679
- const childNodeArray = Array.from(
680
- parentElm.__childNodes || parentElm.childNodes
681
- );
682
- for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
683
- if (childNode["s-sh"] != null) {
684
- insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
685
- childNode["s-sh"] = void 0;
686
- }
687
- }
688
- }
689
- plt.$flags$ &= -2 /* isTmpDisconnected */;
690
- };
691
- var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
692
- let containerElm = parentElm;
693
- let childNode;
694
- if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
695
- containerElm = containerElm.shadowRoot;
696
- }
697
- if (parentVNode.$tag$ === "template") {
698
- containerElm = containerElm.content;
699
- }
700
- for (; startIdx <= endIdx; ++startIdx) {
701
- if (vnodes[startIdx]) {
702
- childNode = createElm(null, parentVNode, startIdx);
703
- if (childNode) {
704
- vnodes[startIdx].$elm$ = childNode;
705
- insertBefore(containerElm, childNode, before);
706
- }
707
- }
708
- }
709
- };
710
- var removeVnodes = (vnodes, startIdx, endIdx) => {
711
- for (let index = startIdx; index <= endIdx; ++index) {
712
- const vnode = vnodes[index];
713
- if (vnode) {
714
- const elm = vnode.$elm$;
715
- nullifyVNodeRefs(vnode);
716
- if (elm) {
717
- elm.remove();
718
- }
719
- }
720
- }
721
- };
722
- var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
723
- let oldStartIdx = 0;
724
- let newStartIdx = 0;
725
- let idxInOld = 0;
726
- let i2 = 0;
727
- let oldEndIdx = oldCh.length - 1;
728
- let oldStartVnode = oldCh[0];
729
- let oldEndVnode = oldCh[oldEndIdx];
730
- let newEndIdx = newCh.length - 1;
731
- let newStartVnode = newCh[0];
732
- let newEndVnode = newCh[newEndIdx];
733
- let node;
734
- let elmToMove;
735
- const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
736
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
737
- if (oldStartVnode == null) {
738
- oldStartVnode = oldCh[++oldStartIdx];
739
- } else if (oldEndVnode == null) {
740
- oldEndVnode = oldCh[--oldEndIdx];
741
- } else if (newStartVnode == null) {
742
- newStartVnode = newCh[++newStartIdx];
743
- } else if (newEndVnode == null) {
744
- newEndVnode = newCh[--newEndIdx];
745
- } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
746
- patch(oldStartVnode, newStartVnode, isInitialRender);
747
- oldStartVnode = oldCh[++oldStartIdx];
748
- newStartVnode = newCh[++newStartIdx];
749
- } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
750
- patch(oldEndVnode, newEndVnode, isInitialRender);
751
- oldEndVnode = oldCh[--oldEndIdx];
752
- newEndVnode = newCh[--newEndIdx];
753
- } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
754
- patch(oldStartVnode, newEndVnode, isInitialRender);
755
- insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
756
- oldStartVnode = oldCh[++oldStartIdx];
757
- newEndVnode = newCh[--newEndIdx];
758
- } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
759
- patch(oldEndVnode, newStartVnode, isInitialRender);
760
- insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
761
- oldEndVnode = oldCh[--oldEndIdx];
762
- newStartVnode = newCh[++newStartIdx];
763
- } else {
764
- idxInOld = -1;
765
- {
766
- for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
767
- if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
768
- idxInOld = i2;
769
- break;
770
- }
771
- }
772
- }
773
- if (idxInOld >= 0) {
774
- elmToMove = oldCh[idxInOld];
775
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
776
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
777
- } else {
778
- patch(elmToMove, newStartVnode, isInitialRender);
779
- oldCh[idxInOld] = void 0;
780
- node = elmToMove.$elm$;
781
- }
782
- newStartVnode = newCh[++newStartIdx];
783
- } else {
784
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
785
- newStartVnode = newCh[++newStartIdx];
786
- }
787
- if (node) {
788
- {
789
- insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
790
- }
791
- }
792
- }
793
- }
794
- if (oldStartIdx > oldEndIdx) {
795
- addVnodes(
796
- parentElm,
797
- newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
798
- newVNode2,
799
- newCh,
800
- newStartIdx,
801
- newEndIdx
802
- );
803
- } else if (newStartIdx > newEndIdx) {
804
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
805
- }
806
- };
807
- var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
808
- if (leftVNode.$tag$ === rightVNode.$tag$) {
809
- if (!isInitialRender) {
810
- return leftVNode.$key$ === rightVNode.$key$;
811
- }
812
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
813
- leftVNode.$key$ = rightVNode.$key$;
814
- }
815
- return true;
816
- }
817
- return false;
818
- };
819
- var patch = (oldVNode, newVNode2, isInitialRender = false) => {
820
- const elm = newVNode2.$elm$ = oldVNode.$elm$;
821
- const oldChildren = oldVNode.$children$;
822
- const newChildren = newVNode2.$children$;
823
- const tag = newVNode2.$tag$;
824
- const text = newVNode2.$text$;
825
- if (text == null) {
826
- {
827
- if (tag === "slot" && !useNativeShadowDom) {
828
- if (oldVNode.$name$ !== newVNode2.$name$) {
829
- newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
830
- relocateToHostRoot(newVNode2.$elm$.parentElement);
831
- }
832
- }
833
- updateElement(oldVNode, newVNode2, isSvgMode);
834
- }
835
- if (oldChildren !== null && newChildren !== null) {
836
- updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
837
- } else if (newChildren !== null) {
838
- if (oldVNode.$text$ !== null) {
839
- elm.textContent = "";
840
- }
841
- addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
842
- } else if (
843
- // don't do this on initial render as it can cause non-hydrated content to be removed
844
- !isInitialRender && BUILD.updatable && oldChildren !== null
845
- ) {
846
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
847
- } else ;
848
- } else if (oldVNode.$text$ !== text) {
849
- elm.data = text;
850
- }
851
- };
852
- var nullifyVNodeRefs = (vNode) => {
853
- {
854
- if (vNode.$attrs$ && vNode.$attrs$.ref) {
855
- refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
856
- }
857
- vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
858
- }
859
- };
860
- var queueRefAttachment = (refCallback, elm) => {
861
- {
862
- refCallbacksToAttach.push(() => refCallback(elm));
863
- }
864
- };
865
- var flushQueuedRefCallbacks = () => {
866
- {
867
- refCallbacksToRemove.forEach((cb) => cb());
868
- refCallbacksToRemove.length = 0;
869
- refCallbacksToAttach.forEach((cb) => cb());
870
- refCallbacksToAttach.length = 0;
871
- }
872
- };
873
- var insertBefore = (parent, newNode, reference, isInitialLoad) => {
874
- if (parent.__insertBefore) {
875
- return parent.__insertBefore(newNode, reference);
876
- } else {
877
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
878
- }
879
- };
880
- var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
881
- const hostElm = hostRef.$hostElement$;
882
- const cmpMeta = hostRef.$cmpMeta$;
883
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
884
- const isHostElement = isHost(renderFnResults);
885
- const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
886
- hostTagName = hostElm.tagName;
887
- if (cmpMeta.$attrsToReflect$) {
888
- rootVnode.$attrs$ = rootVnode.$attrs$ || {};
889
- cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
890
- {
891
- rootVnode.$attrs$[attribute] = hostElm[propName];
892
- }
893
- });
894
- }
895
- if (isInitialLoad && rootVnode.$attrs$) {
896
- for (const key of Object.keys(rootVnode.$attrs$)) {
897
- if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
898
- rootVnode.$attrs$[key] = hostElm[key];
899
- }
900
- }
901
- }
902
- rootVnode.$tag$ = null;
903
- rootVnode.$flags$ |= 4 /* isHost */;
904
- hostRef.$vnode$ = rootVnode;
905
- rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
906
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
907
- patch(oldVNode, rootVnode, isInitialLoad);
908
- flushQueuedRefCallbacks();
909
- };
910
-
911
- // src/runtime/update-component.ts
912
- var attachToAncestor = (hostRef, ancestorComponent) => {
913
- if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
914
- const index = ancestorComponent["s-p"].push(
915
- new Promise(
916
- (r) => hostRef.$onRenderResolve$ = () => {
917
- ancestorComponent["s-p"].splice(index - 1, 1);
918
- r();
919
- }
920
- )
921
- );
922
- }
923
- };
924
- var scheduleUpdate = (hostRef, isInitialLoad) => {
925
- {
926
- hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
927
- }
928
- if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
929
- hostRef.$flags$ |= 512 /* needsRerender */;
930
- return;
931
- }
932
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
933
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
934
- if (isInitialLoad) {
935
- queueMicrotask(() => {
936
- dispatch();
937
- });
938
- return;
939
- }
940
- return writeTask(dispatch) ;
941
- };
942
- var dispatchHooks = (hostRef, isInitialLoad) => {
943
- const elm = hostRef.$hostElement$;
944
- const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
945
- const instance = hostRef.$lazyInstance$ ;
946
- if (!instance) {
947
- throw new Error(
948
- `Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
949
- );
950
- }
951
- let maybePromise;
952
- if (isInitialLoad) {
953
- {
954
- if (hostRef.$fetchedCbList$.length) {
955
- hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
956
- }
957
- }
958
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
959
- } else {
960
- maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
961
- }
962
- maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
963
- endSchedule();
964
- return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
965
- };
966
- var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
967
- console.error(err);
968
- fn();
969
- }) : fn();
970
- var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
971
- var updateComponent = async (hostRef, instance, isInitialLoad) => {
972
- var _a;
973
- const elm = hostRef.$hostElement$;
974
- const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
975
- const rc = elm["s-rc"];
976
- if (isInitialLoad) {
977
- attachStyles(hostRef);
978
- }
979
- const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
980
- {
981
- callRender(hostRef, instance, elm, isInitialLoad);
982
- }
983
- if (rc) {
984
- rc.map((cb) => cb());
985
- elm["s-rc"] = void 0;
986
- }
987
- endRender();
988
- endUpdate();
989
- {
990
- const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
991
- const postUpdate = () => postUpdateComponent(hostRef);
992
- if (childrenPromises.length === 0) {
993
- postUpdate();
994
- } else {
995
- Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
996
- hostRef.$flags$ |= 4 /* isWaitingForChildren */;
997
- childrenPromises.length = 0;
998
- }
999
- }
1000
- };
1001
- var callRender = (hostRef, instance, elm, isInitialLoad) => {
1002
- try {
1003
- instance = instance.render() ;
1004
- {
1005
- hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
1006
- }
1007
- {
1008
- hostRef.$flags$ |= 2 /* hasRendered */;
1009
- }
1010
- {
1011
- {
1012
- {
1013
- renderVdom(hostRef, instance, isInitialLoad);
1014
- }
1015
- }
1016
- }
1017
- } catch (e) {
1018
- consoleError(e, hostRef.$hostElement$);
1019
- }
1020
- return null;
1021
- };
1022
- var postUpdateComponent = (hostRef) => {
1023
- const tagName = hostRef.$cmpMeta$.$tagName$;
1024
- const elm = hostRef.$hostElement$;
1025
- const endPostUpdate = createTime("postUpdate", tagName);
1026
- const instance = hostRef.$lazyInstance$ ;
1027
- const ancestorComponent = hostRef.$ancestorComponent$;
1028
- safeCall(instance, "componentDidRender", void 0, elm);
1029
- if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1030
- hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1031
- {
1032
- addHydratedFlag(elm);
1033
- }
1034
- safeCall(instance, "componentDidLoad", void 0, elm);
1035
- endPostUpdate();
1036
- {
1037
- hostRef.$onReadyResolve$(elm);
1038
- if (!ancestorComponent) {
1039
- appDidLoad();
1040
- }
1041
- }
1042
- } else {
1043
- safeCall(instance, "componentDidUpdate", void 0, elm);
1044
- endPostUpdate();
1045
- }
1046
- {
1047
- hostRef.$onInstanceResolve$(elm);
1048
- }
1049
- {
1050
- if (hostRef.$onRenderResolve$) {
1051
- hostRef.$onRenderResolve$();
1052
- hostRef.$onRenderResolve$ = void 0;
1053
- }
1054
- if (hostRef.$flags$ & 512 /* needsRerender */) {
1055
- nextTick(() => scheduleUpdate(hostRef, false));
1056
- }
1057
- hostRef.$flags$ &= -517;
1058
- }
1059
- };
1060
- var appDidLoad = (who) => {
1061
- nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
1062
- };
1063
- var safeCall = (instance, method, arg, elm) => {
1064
- if (instance && instance[method]) {
1065
- try {
1066
- return instance[method](arg);
1067
- } catch (e) {
1068
- consoleError(e, elm);
1069
- }
1070
- }
1071
- return void 0;
1072
- };
1073
- var addHydratedFlag = (elm) => {
1074
- var _a;
1075
- return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
1076
- };
1077
-
1078
- // src/runtime/set-value.ts
1079
- var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1080
- var setValue = (ref, propName, newVal, cmpMeta) => {
1081
- const hostRef = getHostRef(ref);
1082
- if (!hostRef) {
1083
- return;
1084
- }
1085
- if (!hostRef) {
1086
- throw new Error(
1087
- `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
1088
- );
1089
- }
1090
- const elm = hostRef.$hostElement$ ;
1091
- const oldVal = hostRef.$instanceValues$.get(propName);
1092
- const flags = hostRef.$flags$;
1093
- const instance = hostRef.$lazyInstance$ ;
1094
- newVal = parsePropertyValue(
1095
- newVal,
1096
- cmpMeta.$members$[propName][0]);
1097
- const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1098
- const didValueChange = newVal !== oldVal && !areBothNaN;
1099
- if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1100
- hostRef.$instanceValues$.set(propName, newVal);
1101
- if (cmpMeta.$watchers$) {
1102
- const watchMethods = cmpMeta.$watchers$[propName];
1103
- if (watchMethods) {
1104
- watchMethods.map((watcher) => {
1105
- try {
1106
- const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
1107
- if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
1108
- if (!instance) {
1109
- hostRef.$fetchedCbList$.push(() => {
1110
- hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
1111
- });
1112
- } else {
1113
- instance[watchMethodName](newVal, oldVal, propName);
1114
- }
1115
- }
1116
- } catch (e) {
1117
- consoleError(e, elm);
1118
- }
1119
- });
1120
- }
1121
- }
1122
- if (flags & 2 /* hasRendered */) {
1123
- if (instance.componentShouldUpdate) {
1124
- const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
1125
- if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
1126
- return;
1127
- }
1128
- }
1129
- if (!(flags & 16 /* isQueuedForUpdate */)) {
1130
- scheduleUpdate(hostRef, false);
1131
- }
1132
- }
1133
- }
1134
- };
1135
-
1136
- // src/runtime/proxy-component.ts
1137
- var proxyComponent = (Cstr, cmpMeta, flags) => {
1138
- var _a, _b;
1139
- const prototype = Cstr.prototype;
1140
- if (cmpMeta.$members$ || BUILD.propChangeCallback) {
1141
- {
1142
- if (Cstr.watchers && !cmpMeta.$watchers$) {
1143
- cmpMeta.$watchers$ = Cstr.watchers;
1144
- }
1145
- if (Cstr.deserializers && !cmpMeta.$deserializers$) {
1146
- cmpMeta.$deserializers$ = Cstr.deserializers;
1147
- }
1148
- if (Cstr.serializers && !cmpMeta.$serializers$) {
1149
- cmpMeta.$serializers$ = Cstr.serializers;
1150
- }
1151
- }
1152
- const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1153
- members.map(([memberName, [memberFlags]]) => {
1154
- if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1155
- const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
1156
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1157
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1158
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
1159
- Object.defineProperty(prototype, memberName, {
1160
- get() {
1161
- {
1162
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1163
- return getValue(this, memberName);
1164
- }
1165
- const ref = getHostRef(this);
1166
- const instance = ref ? ref.$lazyInstance$ : prototype;
1167
- if (!instance) return;
1168
- return instance[memberName];
1169
- }
1170
- },
1171
- configurable: true,
1172
- enumerable: true
1173
- });
1174
- }
1175
- Object.defineProperty(prototype, memberName, {
1176
- set(newValue) {
1177
- const ref = getHostRef(this);
1178
- if (!ref) {
1179
- return;
1180
- }
1181
- if (origSetter) {
1182
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1183
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1184
- newValue = ref.$instanceValues$.get(memberName);
1185
- }
1186
- origSetter.apply(this, [
1187
- parsePropertyValue(
1188
- newValue,
1189
- memberFlags)
1190
- ]);
1191
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1192
- setValue(this, memberName, newValue, cmpMeta);
1193
- return;
1194
- }
1195
- {
1196
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1197
- setValue(this, memberName, newValue, cmpMeta);
1198
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1199
- ref.$fetchedCbList$.push(() => {
1200
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1201
- ref.$lazyInstance$[memberName] = newValue;
1202
- }
1203
- });
1204
- }
1205
- return;
1206
- }
1207
- const setterSetVal = () => {
1208
- const currentValue = ref.$lazyInstance$[memberName];
1209
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1210
- ref.$instanceValues$.set(memberName, currentValue);
1211
- }
1212
- ref.$lazyInstance$[memberName] = parsePropertyValue(
1213
- newValue,
1214
- memberFlags);
1215
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1216
- };
1217
- if (ref.$lazyInstance$) {
1218
- setterSetVal();
1219
- } else {
1220
- ref.$fetchedCbList$.push(() => {
1221
- setterSetVal();
1222
- });
1223
- }
1224
- }
1225
- }
1226
- });
1227
- } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1228
- Object.defineProperty(prototype, memberName, {
1229
- value(...args) {
1230
- var _a2;
1231
- const ref = getHostRef(this);
1232
- return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
1233
- var _a3;
1234
- return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
1235
- });
1236
- }
1237
- });
1238
- }
1239
- });
1240
- if ((flags & 1 /* isElementConstructor */)) {
1241
- const attrNameToPropName = /* @__PURE__ */ new Map();
1242
- prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
1243
- plt.jmp(() => {
1244
- var _a2;
1245
- const propName = attrNameToPropName.get(attrName);
1246
- const hostRef = getHostRef(this);
1247
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1248
- newValue = this[propName];
1249
- delete this[propName];
1250
- }
1251
- if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1252
- this[propName] == newValue) {
1253
- return;
1254
- } else if (propName == null) {
1255
- const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1256
- if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
1257
- const instance = hostRef.$lazyInstance$ ;
1258
- const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1259
- entry == null ? void 0 : entry.forEach((watcher) => {
1260
- const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
1261
- if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
1262
- instance[watchMethodName].call(instance, newValue, oldValue, attrName);
1263
- }
1264
- });
1265
- }
1266
- return;
1267
- }
1268
- const propFlags = members.find(([m]) => m === propName);
1269
- if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
1270
- newValue = newValue === null || newValue === "false" ? false : true;
1271
- }
1272
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1273
- if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1274
- this[propName] = newValue;
1275
- }
1276
- });
1277
- };
1278
- Cstr.observedAttributes = Array.from(
1279
- /* @__PURE__ */ new Set([
1280
- ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1281
- ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
1282
- var _a2;
1283
- const attrName = m[1] || propName;
1284
- attrNameToPropName.set(attrName, propName);
1285
- if (m[0] & 512 /* ReflectAttr */) {
1286
- (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
1287
- }
1288
- return attrName;
1289
- })
1290
- ])
1291
- );
1292
- }
1293
- }
1294
- return Cstr;
1295
- };
1296
-
1297
- // src/runtime/initialize-component.ts
1298
- var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1299
- let Cstr;
1300
- try {
1301
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1302
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1303
- const bundleId = cmpMeta.$lazyBundleId$;
1304
- if (bundleId) {
1305
- const CstrImport = loadModule(cmpMeta, hostRef);
1306
- if (CstrImport && "then" in CstrImport) {
1307
- const endLoad = uniqueTime();
1308
- Cstr = await CstrImport;
1309
- endLoad();
1310
- } else {
1311
- Cstr = CstrImport;
1312
- }
1313
- if (!Cstr) {
1314
- throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1315
- }
1316
- if (!Cstr.isProxied) {
1317
- {
1318
- cmpMeta.$watchers$ = Cstr.watchers;
1319
- cmpMeta.$serializers$ = Cstr.serializers;
1320
- cmpMeta.$deserializers$ = Cstr.deserializers;
1321
- }
1322
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1323
- Cstr.isProxied = true;
1324
- }
1325
- const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
1326
- {
1327
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
1328
- }
1329
- try {
1330
- new Cstr(hostRef);
1331
- } catch (e) {
1332
- consoleError(e, elm);
1333
- }
1334
- {
1335
- hostRef.$flags$ &= -9 /* isConstructingInstance */;
1336
- }
1337
- {
1338
- hostRef.$flags$ |= 128 /* isWatchReady */;
1339
- }
1340
- endNewInstance();
1341
- {
1342
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1343
- }
1344
- } else {
1345
- Cstr = elm.constructor;
1346
- const cmpTag = elm.localName;
1347
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1348
- }
1349
- if (Cstr && Cstr.style) {
1350
- let style;
1351
- if (typeof Cstr.style === "string") {
1352
- style = Cstr.style;
1353
- }
1354
- const scopeId2 = getScopeId(cmpMeta);
1355
- if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
1356
- const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
1357
- registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1358
- endRegisterStyles();
1359
- }
1360
- }
1361
- }
1362
- const ancestorComponent = hostRef.$ancestorComponent$;
1363
- const schedule = () => scheduleUpdate(hostRef, true);
1364
- if (ancestorComponent && ancestorComponent["s-rc"]) {
1365
- ancestorComponent["s-rc"].push(schedule);
1366
- } else {
1367
- schedule();
1368
- }
1369
- } catch (e) {
1370
- consoleError(e, elm);
1371
- if (hostRef.$onRenderResolve$) {
1372
- hostRef.$onRenderResolve$();
1373
- hostRef.$onRenderResolve$ = void 0;
1374
- }
1375
- if (hostRef.$onReadyResolve$) {
1376
- hostRef.$onReadyResolve$(elm);
1377
- }
1378
- }
1379
- };
1380
- var fireConnectedCallback = (instance, elm) => {
1381
- {
1382
- safeCall(instance, "connectedCallback", void 0, elm);
1383
- }
1384
- };
1385
-
1386
- // src/runtime/connected-callback.ts
1387
- var connectedCallback = (elm) => {
1388
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1389
- const hostRef = getHostRef(elm);
1390
- if (!hostRef) {
1391
- return;
1392
- }
1393
- const cmpMeta = hostRef.$cmpMeta$;
1394
- const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1395
- if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1396
- hostRef.$flags$ |= 1 /* hasConnected */;
1397
- {
1398
- let ancestorComponent = elm;
1399
- while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
1400
- if (ancestorComponent["s-p"]) {
1401
- attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
1402
- break;
1403
- }
1404
- }
1405
- }
1406
- if (cmpMeta.$members$) {
1407
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1408
- if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
1409
- const value = elm[memberName];
1410
- delete elm[memberName];
1411
- elm[memberName] = value;
1412
- }
1413
- });
1414
- }
1415
- {
1416
- initializeComponent(elm, hostRef, cmpMeta);
1417
- }
1418
- } else {
1419
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1420
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1421
- } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1422
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1423
- }
1424
- }
1425
- endConnected();
1426
- }
1427
- };
1428
- var disconnectInstance = (instance, elm) => {
1429
- {
1430
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1431
- }
1432
- };
1433
- var disconnectedCallback = async (elm) => {
1434
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1435
- const hostRef = getHostRef(elm);
1436
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1437
- disconnectInstance(hostRef.$lazyInstance$, elm);
1438
- } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1439
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1440
- }
1441
- }
1442
- if (rootAppliedStyles.has(elm)) {
1443
- rootAppliedStyles.delete(elm);
1444
- }
1445
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1446
- rootAppliedStyles.delete(elm.shadowRoot);
1447
- }
1448
- };
1449
-
1450
- // src/runtime/bootstrap-lazy.ts
1451
- var bootstrapLazy = (lazyBundles, options = {}) => {
1452
- var _a;
1453
- if (!win.document) {
1454
- console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
1455
- return;
1456
- }
1457
- const endBootstrap = createTime();
1458
- const cmpTags = [];
1459
- const exclude = options.exclude || [];
1460
- const customElements2 = win.customElements;
1461
- const head = win.document.head;
1462
- const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
1463
- const dataStyles = /* @__PURE__ */ win.document.createElement("style");
1464
- const deferredConnectedCallbacks = [];
1465
- let appLoadFallback;
1466
- let isBootstrapping = true;
1467
- Object.assign(plt, options);
1468
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
1469
- lazyBundles.map((lazyBundle) => {
1470
- lazyBundle[1].map((compactMeta) => {
1471
- var _a2, _b, _c;
1472
- const cmpMeta = {
1473
- $flags$: compactMeta[0],
1474
- $tagName$: compactMeta[1],
1475
- $members$: compactMeta[2],
1476
- $listeners$: compactMeta[3]
1477
- };
1478
- {
1479
- cmpMeta.$members$ = compactMeta[2];
1480
- }
1481
- {
1482
- cmpMeta.$attrsToReflect$ = [];
1483
- }
1484
- {
1485
- cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1486
- cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
1487
- cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
1488
- }
1489
- const tagName = transformTag(cmpMeta.$tagName$);
1490
- const HostElement = class extends HTMLElement {
1491
- ["s-p"];
1492
- ["s-rc"];
1493
- hasRegisteredEventListeners = false;
1494
- // StencilLazyHost
1495
- constructor(self) {
1496
- super(self);
1497
- self = this;
1498
- registerHost(self, cmpMeta);
1499
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1500
- {
1501
- if (!self.shadowRoot) {
1502
- createShadowRoot.call(self, cmpMeta);
1503
- } else {
1504
- if (self.shadowRoot.mode !== "open") {
1505
- throw new Error(
1506
- `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
1507
- );
1508
- }
1509
- }
1510
- }
1511
- }
1512
- }
1513
- connectedCallback() {
1514
- const hostRef = getHostRef(this);
1515
- if (!hostRef) {
1516
- return;
1517
- }
1518
- if (!this.hasRegisteredEventListeners) {
1519
- this.hasRegisteredEventListeners = true;
1520
- }
1521
- if (appLoadFallback) {
1522
- clearTimeout(appLoadFallback);
1523
- appLoadFallback = null;
1524
- }
1525
- if (isBootstrapping) {
1526
- deferredConnectedCallbacks.push(this);
1527
- } else {
1528
- plt.jmp(() => connectedCallback(this));
1529
- }
1530
- }
1531
- disconnectedCallback() {
1532
- plt.jmp(() => disconnectedCallback(this));
1533
- plt.raf(() => {
1534
- var _a3;
1535
- const hostRef = getHostRef(this);
1536
- if (!hostRef) {
1537
- return;
1538
- }
1539
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1540
- if (i2 > -1) {
1541
- deferredConnectedCallbacks.splice(i2, 1);
1542
- }
1543
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1544
- delete hostRef.$vnode$.$elm$;
1545
- }
1546
- });
1547
- }
1548
- componentOnReady() {
1549
- var _a3;
1550
- return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
1551
- }
1552
- };
1553
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
1554
- if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
1555
- cmpTags.push(tagName);
1556
- customElements2.define(
1557
- tagName,
1558
- proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
1559
- );
1560
- }
1561
- });
1562
- });
1563
- if (cmpTags.length > 0) {
1564
- {
1565
- dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
1566
- }
1567
- if (dataStyles.innerHTML.length) {
1568
- dataStyles.setAttribute("data-styles", "");
1569
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
1570
- if (nonce != null) {
1571
- dataStyles.setAttribute("nonce", nonce);
1572
- }
1573
- head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1574
- }
1575
- }
1576
- isBootstrapping = false;
1577
- if (deferredConnectedCallbacks.length) {
1578
- deferredConnectedCallbacks.map((host) => host.connectedCallback());
1579
- } else {
1580
- {
1581
- plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
1582
- }
1583
- }
1584
- endBootstrap();
1585
- };
1586
-
1587
- // src/runtime/nonce.ts
1588
- var setNonce = (nonce) => plt.$nonce$ = nonce;
1589
- function transformTag(tag) {
1590
- return tag;
1591
- }
1592
-
1593
- export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };