@editora/ui-core 0.1.8 → 0.1.10

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 (551) hide show
  1. package/README.md +35 -0
  2. package/dist/ElementBase-1b301e7f.js +1 -0
  3. package/dist/ElementBase-909688f3.mjs +79 -0
  4. package/dist/ElementBase.d.ts.map +1 -1
  5. package/dist/__tests__/setup.d.ts +2 -0
  6. package/dist/__tests__/setup.d.ts.map +1 -1
  7. package/dist/accordion.cjs.js +360 -0
  8. package/dist/accordion.esm.js +647 -0
  9. package/dist/alert-dialog.cjs.js +567 -0
  10. package/dist/alert-dialog.esm.js +1043 -0
  11. package/dist/alert.cjs.js +351 -0
  12. package/dist/alert.esm.js +450 -0
  13. package/dist/anchor.cjs.js +30 -0
  14. package/dist/anchor.esm.js +62 -0
  15. package/dist/animated-beam.cjs.js +720 -0
  16. package/dist/animated-beam.esm.js +1540 -0
  17. package/dist/animated-list.cjs.js +672 -0
  18. package/dist/animated-list.esm.js +1137 -0
  19. package/dist/animated-text.cjs.js +683 -0
  20. package/dist/animated-text.esm.js +1020 -0
  21. package/dist/app-header.cjs.js +345 -0
  22. package/dist/app-header.esm.js +398 -0
  23. package/dist/aspect-ratio.cjs.js +294 -0
  24. package/dist/aspect-ratio.esm.js +416 -0
  25. package/dist/avatar.cjs.js +365 -0
  26. package/dist/avatar.esm.js +513 -0
  27. package/dist/badge.cjs.js +432 -0
  28. package/dist/badge.esm.js +554 -0
  29. package/dist/block-controls.cjs.js +347 -0
  30. package/dist/block-controls.esm.js +556 -0
  31. package/dist/box.cjs.js +226 -0
  32. package/dist/box.esm.js +556 -0
  33. package/dist/breadcrumb.cjs.js +288 -0
  34. package/dist/breadcrumb.esm.js +523 -0
  35. package/dist/button.cjs.js +521 -0
  36. package/dist/button.esm.js +671 -0
  37. package/dist/calendar-2c11b824.mjs +1685 -0
  38. package/dist/calendar-a8735e40.js +741 -0
  39. package/dist/calendar.cjs.js +1 -0
  40. package/dist/calendar.esm.js +11 -0
  41. package/dist/card.cjs.js +306 -0
  42. package/dist/card.esm.js +378 -0
  43. package/dist/chart.cjs.js +783 -0
  44. package/dist/chart.esm.js +1369 -0
  45. package/dist/checkbox.cjs.js +338 -0
  46. package/dist/checkbox.esm.js +455 -0
  47. package/dist/collapsible.cjs.js +381 -0
  48. package/dist/collapsible.esm.js +548 -0
  49. package/dist/collection-a1aac0c6.mjs +56 -0
  50. package/dist/collection-a2969ad2.js +1 -0
  51. package/dist/collection.cjs.js +1 -0
  52. package/dist/collection.esm.js +136 -0
  53. package/dist/color-picker.cjs.js +803 -0
  54. package/dist/color-picker.esm.js +1809 -0
  55. package/dist/combobox.cjs.js +525 -0
  56. package/dist/combobox.esm.js +1023 -0
  57. package/dist/command-palette.cjs.js +67 -0
  58. package/dist/command-palette.esm.js +181 -0
  59. package/dist/command.cjs.js +130 -0
  60. package/dist/command.esm.js +307 -0
  61. package/dist/components/date-time-utils.d.ts.map +1 -1
  62. package/dist/components/ui-anchor.d.ts +7 -0
  63. package/dist/components/ui-anchor.d.ts.map +1 -1
  64. package/dist/components/ui-data-table.d.ts.map +1 -1
  65. package/dist/components/ui-date-picker.d.ts.map +1 -1
  66. package/dist/components/ui-date-range-picker.d.ts.map +1 -1
  67. package/dist/components/ui-date-time-picker.d.ts.map +1 -1
  68. package/dist/components/ui-drawer.d.ts.map +1 -1
  69. package/dist/components/ui-form.d.ts +0 -1
  70. package/dist/components/ui-form.d.ts.map +1 -1
  71. package/dist/components/ui-listbox.d.ts +3 -0
  72. package/dist/components/ui-listbox.d.ts.map +1 -1
  73. package/dist/components/ui-number-ticker.d.ts.map +1 -1
  74. package/dist/components/ui-portal.d.ts +1 -0
  75. package/dist/components/ui-portal.d.ts.map +1 -1
  76. package/dist/components/ui-sidebar.d.ts.map +1 -1
  77. package/dist/components/ui-sortable.d.ts +192 -0
  78. package/dist/components/ui-sortable.d.ts.map +1 -0
  79. package/dist/components/ui-tooltip.d.ts.map +1 -1
  80. package/dist/components/ui-transfer-list.d.ts +5 -0
  81. package/dist/components/ui-transfer-list.d.ts.map +1 -1
  82. package/dist/container.cjs.js +115 -0
  83. package/dist/container.esm.js +156 -0
  84. package/dist/context-menu.cjs.js +357 -0
  85. package/dist/context-menu.esm.js +1204 -0
  86. package/dist/control-group.cjs.js +80 -0
  87. package/dist/control-group.esm.js +110 -0
  88. package/dist/data-table.cjs.js +682 -0
  89. package/dist/data-table.esm.js +1660 -0
  90. package/dist/date-field.cjs.js +142 -0
  91. package/dist/date-field.esm.js +384 -0
  92. package/dist/date-picker.cjs.js +570 -0
  93. package/dist/date-picker.esm.js +1067 -0
  94. package/dist/date-range-picker.cjs.js +455 -0
  95. package/dist/date-range-picker.esm.js +973 -0
  96. package/dist/date-range-time-picker.cjs.js +573 -0
  97. package/dist/date-range-time-picker.esm.js +1137 -0
  98. package/dist/date-time-picker.cjs.js +495 -0
  99. package/dist/date-time-picker.esm.js +1062 -0
  100. package/dist/date-time-utils-5cf58cd0.js +1 -0
  101. package/dist/date-time-utils-bdceb7af.mjs +273 -0
  102. package/dist/description.cjs.js +85 -0
  103. package/dist/description.esm.js +136 -0
  104. package/dist/dialog.cjs.js +406 -0
  105. package/dist/dialog.esm.js +822 -0
  106. package/dist/direction-provider.cjs.js +30 -0
  107. package/dist/direction-provider.esm.js +74 -0
  108. package/dist/dismissable-layer-193e3bed.js +1 -0
  109. package/dist/dismissable-layer-9c7e6b58.mjs +112 -0
  110. package/dist/dismissable-layer.cjs.js +6 -0
  111. package/dist/dismissable-layer.esm.js +115 -0
  112. package/dist/dock.cjs.js +347 -0
  113. package/dist/dock.esm.js +826 -0
  114. package/dist/drawer.cjs.js +538 -0
  115. package/dist/drawer.esm.js +872 -0
  116. package/dist/dropdown.cjs.js +511 -0
  117. package/dist/dropdown.esm.js +1084 -0
  118. package/dist/dropzone.cjs.js +1 -0
  119. package/dist/dropzone.esm.js +11 -0
  120. package/dist/empty-state.cjs.js +169 -0
  121. package/dist/empty-state.esm.js +199 -0
  122. package/dist/field-error.cjs.js +74 -0
  123. package/dist/field-error.esm.js +125 -0
  124. package/dist/field.cjs.js +398 -0
  125. package/dist/field.esm.js +542 -0
  126. package/dist/fieldset.cjs.js +214 -0
  127. package/dist/fieldset.esm.js +298 -0
  128. package/dist/file-upload.cjs.js +353 -0
  129. package/dist/file-upload.esm.js +740 -0
  130. package/dist/flex.cjs.js +54 -0
  131. package/dist/flex.esm.js +168 -0
  132. package/dist/floating-toolbar.cjs.js +223 -0
  133. package/dist/floating-toolbar.esm.js +513 -0
  134. package/dist/focus-scope-103833ee.mjs +147 -0
  135. package/dist/focus-scope-2b12b4e7.js +1 -0
  136. package/dist/focus-scope.cjs.js +6 -0
  137. package/dist/focus-scope.esm.js +97 -0
  138. package/dist/form.cjs.js +377 -0
  139. package/dist/form.esm.js +862 -0
  140. package/dist/gantt.cjs.js +157 -0
  141. package/dist/gantt.esm.js +214 -0
  142. package/dist/grid.cjs.js +67 -0
  143. package/dist/grid.esm.js +211 -0
  144. package/dist/hover-card.cjs.js +284 -0
  145. package/dist/hover-card.esm.js +470 -0
  146. package/dist/icon-9ed13093.mjs +364 -0
  147. package/dist/icon-cloud.cjs.js +495 -0
  148. package/dist/icon-cloud.esm.js +828 -0
  149. package/dist/icon-eaa486b3.js +207 -0
  150. package/dist/icon.cjs.js +1 -0
  151. package/dist/icon.esm.js +6 -0
  152. package/dist/index.cjs.js +1 -35924
  153. package/dist/index.d.ts +3 -0
  154. package/dist/index.d.ts.map +1 -1
  155. package/dist/index.esm.js +440 -68558
  156. package/dist/inline-edit.cjs.js +118 -0
  157. package/dist/inline-edit.esm.js +206 -0
  158. package/dist/input.cjs.js +535 -0
  159. package/dist/input.esm.js +790 -0
  160. package/dist/label.cjs.js +195 -0
  161. package/dist/label.esm.js +301 -0
  162. package/dist/layout.cjs.js +266 -0
  163. package/dist/layout.esm.js +408 -0
  164. package/dist/listbox-308789a0.mjs +210 -0
  165. package/dist/listbox-ef2f708e.js +46 -0
  166. package/dist/listbox.cjs.js +1 -0
  167. package/dist/listbox.esm.js +6 -0
  168. package/dist/marquee.cjs.js +513 -0
  169. package/dist/marquee.esm.js +767 -0
  170. package/dist/masonry-grid.cjs.js +65 -0
  171. package/dist/masonry-grid.esm.js +180 -0
  172. package/dist/menu-item-styles-27fdbac4.mjs +181 -0
  173. package/dist/menu-item-styles-83ad1e22.js +152 -0
  174. package/dist/menu.cjs.js +275 -0
  175. package/dist/menu.esm.js +743 -0
  176. package/dist/menubar.cjs.js +455 -0
  177. package/dist/menubar.esm.js +1195 -0
  178. package/dist/meter.cjs.js +241 -0
  179. package/dist/meter.esm.js +334 -0
  180. package/dist/multi-select.cjs.js +549 -0
  181. package/dist/multi-select.esm.js +914 -0
  182. package/dist/navigation-menu.cjs.js +382 -0
  183. package/dist/navigation-menu.esm.js +614 -0
  184. package/dist/number-field.cjs.js +351 -0
  185. package/dist/number-field.esm.js +771 -0
  186. package/dist/number-ticker.cjs.js +209 -0
  187. package/dist/number-ticker.esm.js +749 -0
  188. package/dist/odometer.cjs.js +313 -0
  189. package/dist/odometer.esm.js +565 -0
  190. package/dist/orbiter.cjs.js +495 -0
  191. package/dist/orbiter.esm.js +831 -0
  192. package/dist/overlayManager-86454af7.mjs +58 -0
  193. package/dist/overlayManager-ece06517.js +1 -0
  194. package/dist/pagination.cjs.js +201 -0
  195. package/dist/pagination.esm.js +297 -0
  196. package/dist/panel-group-40254cdd.js +36 -0
  197. package/dist/panel-group-a376cc5e.mjs +326 -0
  198. package/dist/panel-group.cjs.js +1 -0
  199. package/dist/panel-group.esm.js +7 -0
  200. package/dist/panel.cjs.js +22 -0
  201. package/dist/panel.esm.js +46 -0
  202. package/dist/password-field.cjs.js +626 -0
  203. package/dist/password-field.esm.js +925 -0
  204. package/dist/pin-input.cjs.js +185 -0
  205. package/dist/pin-input.esm.js +412 -0
  206. package/dist/placement-grid.cjs.js +99 -0
  207. package/dist/placement-grid.esm.js +486 -0
  208. package/dist/plugin-panel.cjs.js +131 -0
  209. package/dist/plugin-panel.esm.js +173 -0
  210. package/dist/popover.cjs.js +286 -0
  211. package/dist/popover.esm.js +483 -0
  212. package/dist/portal-1cf392ca.mjs +114 -0
  213. package/dist/portal-d8d7fbca.js +1 -0
  214. package/dist/portal.cjs.js +39 -0
  215. package/dist/portal.d.ts.map +1 -1
  216. package/dist/portal.esm.js +187 -0
  217. package/dist/positioner-accc6e5f.js +1 -0
  218. package/dist/positioner-fbd61bf1.mjs +132 -0
  219. package/dist/positioner.cjs.js +6 -0
  220. package/dist/positioner.esm.js +137 -0
  221. package/dist/presence.cjs.js +164 -0
  222. package/dist/presence.esm.js +301 -0
  223. package/dist/progress.cjs.js +329 -0
  224. package/dist/progress.esm.js +453 -0
  225. package/dist/quick-actions.cjs.js +202 -0
  226. package/dist/quick-actions.esm.js +357 -0
  227. package/dist/radio-group.cjs.js +257 -0
  228. package/dist/radio-group.esm.js +477 -0
  229. package/dist/rating.cjs.js +355 -0
  230. package/dist/rating.esm.js +637 -0
  231. package/dist/roving-focus-group-4350c9a7.mjs +50 -0
  232. package/dist/roving-focus-group-5c059bf9.js +1 -0
  233. package/dist/roving-focus-group.cjs.js +1 -0
  234. package/dist/roving-focus-group.esm.js +72 -0
  235. package/dist/runtime-4ac0107b.mjs +1954 -0
  236. package/dist/runtime-5f282bc8.js +1 -0
  237. package/dist/runtime.cjs.js +1 -0
  238. package/dist/runtime.d.ts +9 -0
  239. package/dist/runtime.d.ts.map +1 -0
  240. package/dist/runtime.esm.js +26 -0
  241. package/dist/scroll-area.cjs.js +294 -0
  242. package/dist/scroll-area.esm.js +478 -0
  243. package/dist/scroll-lock-48793569.js +1 -0
  244. package/dist/scroll-lock-9de6d328.mjs +53 -0
  245. package/dist/section.cjs.js +167 -0
  246. package/dist/section.esm.js +202 -0
  247. package/dist/select.cjs.js +799 -0
  248. package/dist/select.esm.js +1266 -0
  249. package/dist/selection-popup.cjs.js +203 -0
  250. package/dist/selection-popup.esm.js +392 -0
  251. package/dist/separator.cjs.js +221 -0
  252. package/dist/separator.esm.js +241 -0
  253. package/dist/sidebar.cjs.js +769 -0
  254. package/dist/sidebar.esm.js +1219 -0
  255. package/dist/skeleton.cjs.js +205 -0
  256. package/dist/skeleton.esm.js +249 -0
  257. package/dist/slider.cjs.js +493 -0
  258. package/dist/slider.esm.js +694 -0
  259. package/dist/slot.cjs.js +159 -0
  260. package/dist/slot.esm.js +227 -0
  261. package/dist/sortable.cjs.js +855 -0
  262. package/dist/sortable.d.ts +4 -0
  263. package/dist/sortable.d.ts.map +1 -0
  264. package/dist/sortable.esm.js +2178 -0
  265. package/dist/spinning-text.cjs.js +395 -0
  266. package/dist/spinning-text.esm.js +635 -0
  267. package/dist/split-button.cjs.js +410 -0
  268. package/dist/split-button.esm.js +619 -0
  269. package/dist/splitter.cjs.js +70 -0
  270. package/dist/splitter.esm.js +105 -0
  271. package/dist/standalone/accordion.d.ts +2 -0
  272. package/dist/standalone/accordion.d.ts.map +1 -0
  273. package/dist/standalone/alert-dialog.d.ts +2 -0
  274. package/dist/standalone/alert-dialog.d.ts.map +1 -0
  275. package/dist/standalone/alert.d.ts +2 -0
  276. package/dist/standalone/alert.d.ts.map +1 -0
  277. package/dist/standalone/anchor.d.ts +2 -0
  278. package/dist/standalone/anchor.d.ts.map +1 -0
  279. package/dist/standalone/animated-beam.d.ts +2 -0
  280. package/dist/standalone/animated-beam.d.ts.map +1 -0
  281. package/dist/standalone/animated-list.d.ts +2 -0
  282. package/dist/standalone/animated-list.d.ts.map +1 -0
  283. package/dist/standalone/animated-text.d.ts +2 -0
  284. package/dist/standalone/animated-text.d.ts.map +1 -0
  285. package/dist/standalone/app-header.d.ts +2 -0
  286. package/dist/standalone/app-header.d.ts.map +1 -0
  287. package/dist/standalone/aspect-ratio.d.ts +2 -0
  288. package/dist/standalone/aspect-ratio.d.ts.map +1 -0
  289. package/dist/standalone/avatar.d.ts +2 -0
  290. package/dist/standalone/avatar.d.ts.map +1 -0
  291. package/dist/standalone/badge.d.ts +2 -0
  292. package/dist/standalone/badge.d.ts.map +1 -0
  293. package/dist/standalone/block-controls.d.ts +2 -0
  294. package/dist/standalone/block-controls.d.ts.map +1 -0
  295. package/dist/standalone/box.d.ts +2 -0
  296. package/dist/standalone/box.d.ts.map +1 -0
  297. package/dist/standalone/breadcrumb.d.ts +2 -0
  298. package/dist/standalone/breadcrumb.d.ts.map +1 -0
  299. package/dist/standalone/button.d.ts +2 -0
  300. package/dist/standalone/button.d.ts.map +1 -0
  301. package/dist/standalone/calendar.d.ts +2 -0
  302. package/dist/standalone/calendar.d.ts.map +1 -0
  303. package/dist/standalone/card.d.ts +2 -0
  304. package/dist/standalone/card.d.ts.map +1 -0
  305. package/dist/standalone/chart.d.ts +2 -0
  306. package/dist/standalone/chart.d.ts.map +1 -0
  307. package/dist/standalone/checkbox.d.ts +2 -0
  308. package/dist/standalone/checkbox.d.ts.map +1 -0
  309. package/dist/standalone/collapsible.d.ts +2 -0
  310. package/dist/standalone/collapsible.d.ts.map +1 -0
  311. package/dist/standalone/collection.d.ts +2 -0
  312. package/dist/standalone/collection.d.ts.map +1 -0
  313. package/dist/standalone/color-picker.d.ts +2 -0
  314. package/dist/standalone/color-picker.d.ts.map +1 -0
  315. package/dist/standalone/combobox.d.ts +2 -0
  316. package/dist/standalone/combobox.d.ts.map +1 -0
  317. package/dist/standalone/command-palette.d.ts +2 -0
  318. package/dist/standalone/command-palette.d.ts.map +1 -0
  319. package/dist/standalone/command.d.ts +2 -0
  320. package/dist/standalone/command.d.ts.map +1 -0
  321. package/dist/standalone/container.d.ts +2 -0
  322. package/dist/standalone/container.d.ts.map +1 -0
  323. package/dist/standalone/context-menu.d.ts +2 -0
  324. package/dist/standalone/context-menu.d.ts.map +1 -0
  325. package/dist/standalone/control-group.d.ts +2 -0
  326. package/dist/standalone/control-group.d.ts.map +1 -0
  327. package/dist/standalone/data-table.d.ts +2 -0
  328. package/dist/standalone/data-table.d.ts.map +1 -0
  329. package/dist/standalone/date-field.d.ts +2 -0
  330. package/dist/standalone/date-field.d.ts.map +1 -0
  331. package/dist/standalone/date-picker.d.ts +2 -0
  332. package/dist/standalone/date-picker.d.ts.map +1 -0
  333. package/dist/standalone/date-range-picker.d.ts +2 -0
  334. package/dist/standalone/date-range-picker.d.ts.map +1 -0
  335. package/dist/standalone/date-range-time-picker.d.ts +2 -0
  336. package/dist/standalone/date-range-time-picker.d.ts.map +1 -0
  337. package/dist/standalone/date-time-picker.d.ts +2 -0
  338. package/dist/standalone/date-time-picker.d.ts.map +1 -0
  339. package/dist/standalone/description.d.ts +2 -0
  340. package/dist/standalone/description.d.ts.map +1 -0
  341. package/dist/standalone/dialog.d.ts +2 -0
  342. package/dist/standalone/dialog.d.ts.map +1 -0
  343. package/dist/standalone/direction-provider.d.ts +2 -0
  344. package/dist/standalone/direction-provider.d.ts.map +1 -0
  345. package/dist/standalone/dismissable-layer.d.ts +2 -0
  346. package/dist/standalone/dismissable-layer.d.ts.map +1 -0
  347. package/dist/standalone/dock.d.ts +2 -0
  348. package/dist/standalone/dock.d.ts.map +1 -0
  349. package/dist/standalone/drawer.d.ts +2 -0
  350. package/dist/standalone/drawer.d.ts.map +1 -0
  351. package/dist/standalone/dropdown.d.ts +2 -0
  352. package/dist/standalone/dropdown.d.ts.map +1 -0
  353. package/dist/standalone/dropzone.d.ts +2 -0
  354. package/dist/standalone/dropzone.d.ts.map +1 -0
  355. package/dist/standalone/empty-state.d.ts +2 -0
  356. package/dist/standalone/empty-state.d.ts.map +1 -0
  357. package/dist/standalone/field-error.d.ts +2 -0
  358. package/dist/standalone/field-error.d.ts.map +1 -0
  359. package/dist/standalone/field.d.ts +2 -0
  360. package/dist/standalone/field.d.ts.map +1 -0
  361. package/dist/standalone/fieldset.d.ts +2 -0
  362. package/dist/standalone/fieldset.d.ts.map +1 -0
  363. package/dist/standalone/file-upload.d.ts +2 -0
  364. package/dist/standalone/file-upload.d.ts.map +1 -0
  365. package/dist/standalone/flex.d.ts +2 -0
  366. package/dist/standalone/flex.d.ts.map +1 -0
  367. package/dist/standalone/floating-toolbar.d.ts +2 -0
  368. package/dist/standalone/floating-toolbar.d.ts.map +1 -0
  369. package/dist/standalone/focus-scope.d.ts +2 -0
  370. package/dist/standalone/focus-scope.d.ts.map +1 -0
  371. package/dist/standalone/form.d.ts +2 -0
  372. package/dist/standalone/form.d.ts.map +1 -0
  373. package/dist/standalone/gantt.d.ts +2 -0
  374. package/dist/standalone/gantt.d.ts.map +1 -0
  375. package/dist/standalone/grid.d.ts +2 -0
  376. package/dist/standalone/grid.d.ts.map +1 -0
  377. package/dist/standalone/hover-card.d.ts +2 -0
  378. package/dist/standalone/hover-card.d.ts.map +1 -0
  379. package/dist/standalone/icon-cloud.d.ts +2 -0
  380. package/dist/standalone/icon-cloud.d.ts.map +1 -0
  381. package/dist/standalone/icon.d.ts +2 -0
  382. package/dist/standalone/icon.d.ts.map +1 -0
  383. package/dist/standalone/inline-edit.d.ts +2 -0
  384. package/dist/standalone/inline-edit.d.ts.map +1 -0
  385. package/dist/standalone/input.d.ts +2 -0
  386. package/dist/standalone/input.d.ts.map +1 -0
  387. package/dist/standalone/label.d.ts +2 -0
  388. package/dist/standalone/label.d.ts.map +1 -0
  389. package/dist/standalone/layout.d.ts +2 -0
  390. package/dist/standalone/layout.d.ts.map +1 -0
  391. package/dist/standalone/listbox.d.ts +2 -0
  392. package/dist/standalone/listbox.d.ts.map +1 -0
  393. package/dist/standalone/marquee.d.ts +2 -0
  394. package/dist/standalone/marquee.d.ts.map +1 -0
  395. package/dist/standalone/masonry-grid.d.ts +2 -0
  396. package/dist/standalone/masonry-grid.d.ts.map +1 -0
  397. package/dist/standalone/menu.d.ts +2 -0
  398. package/dist/standalone/menu.d.ts.map +1 -0
  399. package/dist/standalone/menubar.d.ts +2 -0
  400. package/dist/standalone/menubar.d.ts.map +1 -0
  401. package/dist/standalone/meter.d.ts +2 -0
  402. package/dist/standalone/meter.d.ts.map +1 -0
  403. package/dist/standalone/multi-select.d.ts +2 -0
  404. package/dist/standalone/multi-select.d.ts.map +1 -0
  405. package/dist/standalone/navigation-menu.d.ts +2 -0
  406. package/dist/standalone/navigation-menu.d.ts.map +1 -0
  407. package/dist/standalone/number-field.d.ts +2 -0
  408. package/dist/standalone/number-field.d.ts.map +1 -0
  409. package/dist/standalone/number-ticker.d.ts +2 -0
  410. package/dist/standalone/number-ticker.d.ts.map +1 -0
  411. package/dist/standalone/odometer.d.ts +2 -0
  412. package/dist/standalone/odometer.d.ts.map +1 -0
  413. package/dist/standalone/orbiter.d.ts +2 -0
  414. package/dist/standalone/orbiter.d.ts.map +1 -0
  415. package/dist/standalone/pagination.d.ts +2 -0
  416. package/dist/standalone/pagination.d.ts.map +1 -0
  417. package/dist/standalone/panel-group.d.ts +2 -0
  418. package/dist/standalone/panel-group.d.ts.map +1 -0
  419. package/dist/standalone/panel.d.ts +2 -0
  420. package/dist/standalone/panel.d.ts.map +1 -0
  421. package/dist/standalone/password-field.d.ts +2 -0
  422. package/dist/standalone/password-field.d.ts.map +1 -0
  423. package/dist/standalone/pin-input.d.ts +2 -0
  424. package/dist/standalone/pin-input.d.ts.map +1 -0
  425. package/dist/standalone/placement-grid.d.ts +2 -0
  426. package/dist/standalone/placement-grid.d.ts.map +1 -0
  427. package/dist/standalone/plugin-panel.d.ts +2 -0
  428. package/dist/standalone/plugin-panel.d.ts.map +1 -0
  429. package/dist/standalone/popover.d.ts +2 -0
  430. package/dist/standalone/popover.d.ts.map +1 -0
  431. package/dist/standalone/portal.d.ts +2 -0
  432. package/dist/standalone/portal.d.ts.map +1 -0
  433. package/dist/standalone/positioner.d.ts +2 -0
  434. package/dist/standalone/positioner.d.ts.map +1 -0
  435. package/dist/standalone/presence.d.ts +2 -0
  436. package/dist/standalone/presence.d.ts.map +1 -0
  437. package/dist/standalone/progress.d.ts +2 -0
  438. package/dist/standalone/progress.d.ts.map +1 -0
  439. package/dist/standalone/quick-actions.d.ts +2 -0
  440. package/dist/standalone/quick-actions.d.ts.map +1 -0
  441. package/dist/standalone/radio-group.d.ts +2 -0
  442. package/dist/standalone/radio-group.d.ts.map +1 -0
  443. package/dist/standalone/rating.d.ts +2 -0
  444. package/dist/standalone/rating.d.ts.map +1 -0
  445. package/dist/standalone/roving-focus-group.d.ts +2 -0
  446. package/dist/standalone/roving-focus-group.d.ts.map +1 -0
  447. package/dist/standalone/scroll-area.d.ts +2 -0
  448. package/dist/standalone/scroll-area.d.ts.map +1 -0
  449. package/dist/standalone/section.d.ts +2 -0
  450. package/dist/standalone/section.d.ts.map +1 -0
  451. package/dist/standalone/select.d.ts +2 -0
  452. package/dist/standalone/select.d.ts.map +1 -0
  453. package/dist/standalone/selection-popup.d.ts +2 -0
  454. package/dist/standalone/selection-popup.d.ts.map +1 -0
  455. package/dist/standalone/separator.d.ts +2 -0
  456. package/dist/standalone/separator.d.ts.map +1 -0
  457. package/dist/standalone/sidebar.d.ts +2 -0
  458. package/dist/standalone/sidebar.d.ts.map +1 -0
  459. package/dist/standalone/skeleton.d.ts +2 -0
  460. package/dist/standalone/skeleton.d.ts.map +1 -0
  461. package/dist/standalone/slider.d.ts +2 -0
  462. package/dist/standalone/slider.d.ts.map +1 -0
  463. package/dist/standalone/slot.d.ts +2 -0
  464. package/dist/standalone/slot.d.ts.map +1 -0
  465. package/dist/standalone/spinning-text.d.ts +2 -0
  466. package/dist/standalone/spinning-text.d.ts.map +1 -0
  467. package/dist/standalone/split-button.d.ts +2 -0
  468. package/dist/standalone/split-button.d.ts.map +1 -0
  469. package/dist/standalone/splitter.d.ts +2 -0
  470. package/dist/standalone/splitter.d.ts.map +1 -0
  471. package/dist/standalone/stepper.d.ts +2 -0
  472. package/dist/standalone/stepper.d.ts.map +1 -0
  473. package/dist/standalone/switch.d.ts +2 -0
  474. package/dist/standalone/switch.d.ts.map +1 -0
  475. package/dist/standalone/table.d.ts +2 -0
  476. package/dist/standalone/table.d.ts.map +1 -0
  477. package/dist/standalone/tabs.d.ts +2 -0
  478. package/dist/standalone/tabs.d.ts.map +1 -0
  479. package/dist/standalone/tags-input.d.ts +2 -0
  480. package/dist/standalone/tags-input.d.ts.map +1 -0
  481. package/dist/standalone/textarea.d.ts +2 -0
  482. package/dist/standalone/textarea.d.ts.map +1 -0
  483. package/dist/standalone/time-field.d.ts +2 -0
  484. package/dist/standalone/time-field.d.ts.map +1 -0
  485. package/dist/standalone/time-picker.d.ts +2 -0
  486. package/dist/standalone/time-picker.d.ts.map +1 -0
  487. package/dist/standalone/timeline.d.ts +2 -0
  488. package/dist/standalone/timeline.d.ts.map +1 -0
  489. package/dist/standalone/toast.d.ts +2 -0
  490. package/dist/standalone/toast.d.ts.map +1 -0
  491. package/dist/standalone/toggle-group.d.ts +2 -0
  492. package/dist/standalone/toggle-group.d.ts.map +1 -0
  493. package/dist/standalone/toggle.d.ts +2 -0
  494. package/dist/standalone/toggle.d.ts.map +1 -0
  495. package/dist/standalone/toolbar.d.ts +2 -0
  496. package/dist/standalone/toolbar.d.ts.map +1 -0
  497. package/dist/standalone/tooltip.d.ts +2 -0
  498. package/dist/standalone/tooltip.d.ts.map +1 -0
  499. package/dist/standalone/transfer-list.d.ts +2 -0
  500. package/dist/standalone/transfer-list.d.ts.map +1 -0
  501. package/dist/standalone/tree-item.d.ts +2 -0
  502. package/dist/standalone/tree-item.d.ts.map +1 -0
  503. package/dist/standalone/tree.d.ts +2 -0
  504. package/dist/standalone/tree.d.ts.map +1 -0
  505. package/dist/standalone/visually-hidden.d.ts +2 -0
  506. package/dist/standalone/visually-hidden.d.ts.map +1 -0
  507. package/dist/standalone/wizard.d.ts +2 -0
  508. package/dist/standalone/wizard.d.ts.map +1 -0
  509. package/dist/stepper.cjs.js +337 -0
  510. package/dist/stepper.esm.js +578 -0
  511. package/dist/switch.cjs.js +397 -0
  512. package/dist/switch.esm.js +543 -0
  513. package/dist/table.cjs.js +212 -0
  514. package/dist/table.esm.js +432 -0
  515. package/dist/tabs.cjs.js +515 -0
  516. package/dist/tabs.esm.js +808 -0
  517. package/dist/tags-input.cjs.js +202 -0
  518. package/dist/tags-input.esm.js +436 -0
  519. package/dist/textarea.cjs.js +329 -0
  520. package/dist/textarea.esm.js +520 -0
  521. package/dist/theme.d.ts +1 -1
  522. package/dist/theme.d.ts.map +1 -1
  523. package/dist/time-field.cjs.js +142 -0
  524. package/dist/time-field.esm.js +387 -0
  525. package/dist/time-picker.cjs.js +284 -0
  526. package/dist/time-picker.esm.js +686 -0
  527. package/dist/timeline.cjs.js +198 -0
  528. package/dist/timeline.esm.js +248 -0
  529. package/dist/toast.cjs.js +234 -0
  530. package/dist/toast.esm.js +399 -0
  531. package/dist/toggle-group.cjs.js +131 -0
  532. package/dist/toggle-group.esm.js +382 -0
  533. package/dist/toggle.cjs.js +237 -0
  534. package/dist/toggle.esm.js +346 -0
  535. package/dist/toolbar.cjs.js +126 -0
  536. package/dist/toolbar.esm.js +240 -0
  537. package/dist/tooltip.cjs.js +159 -0
  538. package/dist/tooltip.esm.js +376 -0
  539. package/dist/transfer-list.cjs.js +734 -0
  540. package/dist/transfer-list.esm.js +969 -0
  541. package/dist/tree-0a7a8d05.js +39 -0
  542. package/dist/tree-dcd74a4a.mjs +294 -0
  543. package/dist/tree-item.cjs.js +103 -0
  544. package/dist/tree-item.esm.js +143 -0
  545. package/dist/tree.cjs.js +1 -0
  546. package/dist/tree.esm.js +7 -0
  547. package/dist/visually-hidden.cjs.js +42 -0
  548. package/dist/visually-hidden.esm.js +68 -0
  549. package/dist/wizard.cjs.js +677 -0
  550. package/dist/wizard.esm.js +1068 -0
  551. package/package.json +20 -1
@@ -0,0 +1,1540 @@
1
+ import { E as pe } from "./ElementBase-909688f3.mjs";
2
+ const ie = 3200, ne = 0, oe = 0, se = 3, re = 4, de = 0.18, me = 3, D = "#8b5cf6", q = "#f59e0b", fe = "rgba(148, 163, 184, 0.34)", j = 2, ge = /* @__PURE__ */ new Set(["none", "sm", "md", "lg", "full"]), ue = /* @__PURE__ */ new Set(["brand", "neutral", "info", "success", "warning", "danger"]), xe = /* @__PURE__ */ new Set(["calm", "smooth", "snappy", "surge", "pulse", "heartbeat"]), Y = /* @__PURE__ */ new Set(["auto", "straight", "soft", "arc"]), X = /* @__PURE__ */ new Set(["forward", "reverse"]), ye = /* @__PURE__ */ new Set(["none", "glow", "pulse", "ring", "shake"]), K = [
3
+ "node-id",
4
+ "column",
5
+ "row",
6
+ "size",
7
+ "from",
8
+ "to",
9
+ "curve",
10
+ "direction",
11
+ "reverse",
12
+ "duration",
13
+ "delay",
14
+ "tone",
15
+ "color-start",
16
+ "color-end",
17
+ "beam-factor",
18
+ "trail-width",
19
+ "beam-width",
20
+ "id"
21
+ ], b = {
22
+ xxs: {
23
+ nodeSize: 36,
24
+ hubSize: 50,
25
+ columnGap: 72,
26
+ rowGap: 28,
27
+ padding: 12,
28
+ minHeight: 160,
29
+ radius: 16
30
+ },
31
+ xs: {
32
+ nodeSize: 46,
33
+ hubSize: 62,
34
+ columnGap: 88,
35
+ rowGap: 36,
36
+ padding: 16,
37
+ minHeight: 190,
38
+ radius: 18
39
+ },
40
+ sm: {
41
+ nodeSize: 56,
42
+ hubSize: 74,
43
+ columnGap: 108,
44
+ rowGap: 48,
45
+ padding: 20,
46
+ minHeight: 220,
47
+ radius: 22
48
+ },
49
+ md: {
50
+ nodeSize: 84,
51
+ hubSize: 116,
52
+ columnGap: 156,
53
+ rowGap: 72,
54
+ padding: 32,
55
+ minHeight: 320,
56
+ radius: 28
57
+ },
58
+ lg: {
59
+ nodeSize: 98,
60
+ hubSize: 132,
61
+ columnGap: 188,
62
+ rowGap: 88,
63
+ padding: 40,
64
+ minHeight: 400,
65
+ radius: 34
66
+ }
67
+ }, v = {
68
+ calm: {
69
+ durationScale: 1.18,
70
+ glowOpacity: 0.26,
71
+ glowBlur: 9,
72
+ beamFactor: 0.15,
73
+ pattern: "progress"
74
+ },
75
+ smooth: {
76
+ durationScale: 1,
77
+ glowOpacity: 0.34,
78
+ glowBlur: 11,
79
+ beamFactor: de,
80
+ pattern: "progress"
81
+ },
82
+ snappy: {
83
+ durationScale: 0.82,
84
+ glowOpacity: 0.38,
85
+ glowBlur: 10,
86
+ beamFactor: 0.2,
87
+ pattern: "progress"
88
+ },
89
+ surge: {
90
+ durationScale: 0.68,
91
+ glowOpacity: 0.44,
92
+ glowBlur: 13,
93
+ beamFactor: 0.24,
94
+ pattern: "progress"
95
+ },
96
+ pulse: {
97
+ durationScale: 0.92,
98
+ glowOpacity: 0.42,
99
+ glowBlur: 14,
100
+ beamFactor: 0.22,
101
+ pattern: "pulse"
102
+ },
103
+ heartbeat: {
104
+ durationScale: 0.86,
105
+ glowOpacity: 0.48,
106
+ glowBlur: 15,
107
+ beamFactor: 0.18,
108
+ pattern: "heartbeat"
109
+ }
110
+ }, E = {
111
+ brand: { start: D, end: q },
112
+ neutral: { start: "#64748b", end: "#cbd5e1" },
113
+ info: { start: "#38bdf8", end: "#6366f1" },
114
+ success: { start: "#22c55e", end: "#14b8a6" },
115
+ warning: { start: "#f59e0b", end: "#f97316" },
116
+ danger: { start: "#ef4444", end: "#f97316" }
117
+ }, _e = `
118
+ :host {
119
+ --ui-animated-beam-required-width: 0px;
120
+ --ui-animated-beam-duration: ${ie}ms;
121
+ --ui-animated-beam-delay: ${ne}ms;
122
+ --ui-animated-beam-stagger: ${oe}ms;
123
+ --ui-animated-beam-padding: ${b.md.padding}px;
124
+ --ui-animated-beam-column-gap: ${b.md.columnGap}px;
125
+ --ui-animated-beam-row-gap: ${b.md.rowGap}px;
126
+ --ui-animated-beam-node-size: ${b.md.nodeSize}px;
127
+ --ui-animated-beam-hub-size: ${b.md.hubSize}px;
128
+ --ui-animated-beam-min-height: ${b.md.minHeight}px;
129
+ --ui-animated-beam-columns: ${me};
130
+ --ui-animated-beam-radius: ${b.md.radius}px;
131
+ --ui-animated-beam-trail-width: ${se}px;
132
+ --ui-animated-beam-beam-width: ${re}px;
133
+ --ui-animated-beam-beam-factor: ${de};
134
+ --ui-animated-beam-accent: ${D};
135
+ --ui-animated-beam-accent-end: ${q};
136
+ --ui-animated-beam-path-color: ${fe};
137
+ --ui-animated-beam-bg: transparent;
138
+ --ui-animated-beam-color: var(--ui-color-text, #0f172a);
139
+ --ui-animated-beam-border-color:
140
+ color-mix(in srgb, var(--ui-color-border, rgba(15, 23, 42, 0.16)) 82%, transparent);
141
+ --ui-animated-beam-border: 1px solid transparent;
142
+ --ui-animated-beam-shadow: none;
143
+ --ui-animated-beam-backdrop: none;
144
+ --ui-animated-beam-node-bg:
145
+ linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
146
+ --ui-animated-beam-node-color: inherit;
147
+ --ui-animated-beam-node-border:
148
+ 1px solid color-mix(in srgb, var(--ui-animated-beam-accent) 12%, rgba(15, 23, 42, 0.1));
149
+ --ui-animated-beam-node-shadow:
150
+ 0 1px 2px rgba(15, 23, 42, 0.06),
151
+ 0 14px 28px rgba(15, 23, 42, 0.1);
152
+ --ui-animated-beam-node-backdrop: none;
153
+ --ui-animated-beam-hub-bg:
154
+ linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.96));
155
+ --ui-animated-beam-hub-border:
156
+ 1px solid color-mix(in srgb, var(--ui-animated-beam-accent) 14%, rgba(15, 23, 42, 0.1));
157
+ --ui-animated-beam-hub-shadow:
158
+ 0 1px 2px rgba(15, 23, 42, 0.08),
159
+ 0 18px 34px rgba(15, 23, 42, 0.12);
160
+ --ui-animated-beam-glow-opacity: ${v.smooth.glowOpacity};
161
+ --ui-animated-beam-glow-blur: ${v.smooth.glowBlur}px;
162
+ --ui-animated-beam-core-opacity: 0.96;
163
+ --ui-animated-beam-trail-opacity: 0.72;
164
+ --ui-animated-beam-focus-ring: var(--ui-color-focus-ring, var(--ui-focus-ring, #2563eb));
165
+ display: block;
166
+ min-inline-size: var(--ui-animated-beam-required-width);
167
+ color: var(--ui-animated-beam-color);
168
+ color-scheme: light dark;
169
+ font-family: "IBM Plex Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
170
+ box-sizing: border-box;
171
+ }
172
+
173
+ :host([size="xxs"]),
174
+ :host([size="0"]) {
175
+ --ui-animated-beam-padding: ${b.xxs.padding}px;
176
+ --ui-animated-beam-column-gap: ${b.xxs.columnGap}px;
177
+ --ui-animated-beam-row-gap: ${b.xxs.rowGap}px;
178
+ --ui-animated-beam-node-size: ${b.xxs.nodeSize}px;
179
+ --ui-animated-beam-hub-size: ${b.xxs.hubSize}px;
180
+ --ui-animated-beam-min-height: ${b.xxs.minHeight}px;
181
+ --ui-animated-beam-radius: ${b.xxs.radius}px;
182
+ }
183
+
184
+ :host([size="xs"]) {
185
+ --ui-animated-beam-padding: ${b.xs.padding}px;
186
+ --ui-animated-beam-column-gap: ${b.xs.columnGap}px;
187
+ --ui-animated-beam-row-gap: ${b.xs.rowGap}px;
188
+ --ui-animated-beam-node-size: ${b.xs.nodeSize}px;
189
+ --ui-animated-beam-hub-size: ${b.xs.hubSize}px;
190
+ --ui-animated-beam-min-height: ${b.xs.minHeight}px;
191
+ --ui-animated-beam-radius: ${b.xs.radius}px;
192
+ }
193
+
194
+ :host([size="sm"]),
195
+ :host([size="1"]) {
196
+ --ui-animated-beam-padding: ${b.sm.padding}px;
197
+ --ui-animated-beam-column-gap: ${b.sm.columnGap}px;
198
+ --ui-animated-beam-row-gap: ${b.sm.rowGap}px;
199
+ --ui-animated-beam-node-size: ${b.sm.nodeSize}px;
200
+ --ui-animated-beam-hub-size: ${b.sm.hubSize}px;
201
+ --ui-animated-beam-min-height: ${b.sm.minHeight}px;
202
+ --ui-animated-beam-radius: ${b.sm.radius}px;
203
+ }
204
+
205
+ :host(:not([size])),
206
+ :host([size="md"]),
207
+ :host([size="2"]) {
208
+ --ui-animated-beam-padding: ${b.md.padding}px;
209
+ --ui-animated-beam-column-gap: ${b.md.columnGap}px;
210
+ --ui-animated-beam-row-gap: ${b.md.rowGap}px;
211
+ --ui-animated-beam-node-size: ${b.md.nodeSize}px;
212
+ --ui-animated-beam-hub-size: ${b.md.hubSize}px;
213
+ --ui-animated-beam-min-height: ${b.md.minHeight}px;
214
+ --ui-animated-beam-radius: ${b.md.radius}px;
215
+ }
216
+
217
+ :host([size="lg"]),
218
+ :host([size="3"]) {
219
+ --ui-animated-beam-padding: ${b.lg.padding}px;
220
+ --ui-animated-beam-column-gap: ${b.lg.columnGap}px;
221
+ --ui-animated-beam-row-gap: ${b.lg.rowGap}px;
222
+ --ui-animated-beam-node-size: ${b.lg.nodeSize}px;
223
+ --ui-animated-beam-hub-size: ${b.lg.hubSize}px;
224
+ --ui-animated-beam-min-height: ${b.lg.minHeight}px;
225
+ --ui-animated-beam-radius: ${b.lg.radius}px;
226
+ }
227
+
228
+ :host([tone="neutral"]) {
229
+ --ui-animated-beam-accent: ${E.neutral.start};
230
+ --ui-animated-beam-accent-end: ${E.neutral.end};
231
+ }
232
+
233
+ :host([tone="info"]) {
234
+ --ui-animated-beam-accent: ${E.info.start};
235
+ --ui-animated-beam-accent-end: ${E.info.end};
236
+ }
237
+
238
+ :host([tone="success"]) {
239
+ --ui-animated-beam-accent: ${E.success.start};
240
+ --ui-animated-beam-accent-end: ${E.success.end};
241
+ }
242
+
243
+ :host([tone="warning"]) {
244
+ --ui-animated-beam-accent: ${E.warning.start};
245
+ --ui-animated-beam-accent-end: ${E.warning.end};
246
+ }
247
+
248
+ :host([tone="danger"]) {
249
+ --ui-animated-beam-accent: ${E.danger.start};
250
+ --ui-animated-beam-accent-end: ${E.danger.end};
251
+ }
252
+
253
+ :host([variant="surface"]) {
254
+ --ui-animated-beam-bg:
255
+ radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
256
+ --ui-animated-beam-border: 1px solid var(--ui-animated-beam-border-color);
257
+ --ui-animated-beam-shadow:
258
+ 0 1px 2px rgba(15, 23, 42, 0.04),
259
+ 0 20px 36px rgba(15, 23, 42, 0.08);
260
+ --ui-animated-beam-trail-opacity: 0.7;
261
+ }
262
+
263
+ :host([variant="soft"]) {
264
+ --ui-animated-beam-bg:
265
+ radial-gradient(
266
+ circle at 50% 50%,
267
+ color-mix(in srgb, var(--ui-animated-beam-accent) 5%, rgba(255, 255, 255, 0.98)),
268
+ color-mix(in srgb, var(--ui-animated-beam-accent) 2%, rgba(248, 250, 252, 0.92))
269
+ );
270
+ --ui-animated-beam-border: 1px solid color-mix(in srgb, var(--ui-animated-beam-accent) 16%, transparent);
271
+ --ui-animated-beam-shadow: none;
272
+ --ui-animated-beam-trail-opacity: 0.62;
273
+ --ui-animated-beam-core-opacity: 0.9;
274
+ }
275
+
276
+ :host([variant="solid"]) {
277
+ --ui-animated-beam-bg:
278
+ linear-gradient(
279
+ 180deg,
280
+ color-mix(in srgb, var(--ui-animated-beam-accent) 12%, rgba(255, 255, 255, 0.98)),
281
+ color-mix(in srgb, var(--ui-animated-beam-accent-end) 8%, rgba(248, 250, 252, 0.94))
282
+ );
283
+ --ui-animated-beam-border: 1px solid color-mix(in srgb, var(--ui-animated-beam-accent) 20%, transparent);
284
+ --ui-animated-beam-shadow:
285
+ 0 1px 2px rgba(15, 23, 42, 0.04),
286
+ 0 24px 42px color-mix(in srgb, var(--ui-animated-beam-accent) 8%, rgba(15, 23, 42, 0.08));
287
+ --ui-animated-beam-trail-opacity: 0.76;
288
+ }
289
+
290
+ :host([variant="glass"]) {
291
+ --ui-animated-beam-bg:
292
+ linear-gradient(
293
+ 180deg,
294
+ color-mix(in srgb, rgba(255, 255, 255, 0.96) 88%, transparent),
295
+ color-mix(in srgb, rgba(255, 255, 255, 0.86) 72%, transparent)
296
+ );
297
+ --ui-animated-beam-border: 1px solid color-mix(in srgb, #ffffff 28%, var(--ui-animated-beam-border-color));
298
+ --ui-animated-beam-shadow:
299
+ 0 1px 2px rgba(15, 23, 42, 0.06),
300
+ 0 26px 48px rgba(15, 23, 42, 0.12);
301
+ --ui-animated-beam-backdrop: blur(16px) saturate(1.08);
302
+ --ui-animated-beam-node-backdrop: blur(10px) saturate(1.04);
303
+ --ui-animated-beam-trail-opacity: 0.64;
304
+ }
305
+
306
+ :host([variant="contrast"]) {
307
+ --ui-animated-beam-bg:
308
+ linear-gradient(
309
+ 180deg,
310
+ color-mix(in srgb, #07162d 92%, var(--ui-animated-beam-accent) 8%),
311
+ color-mix(in srgb, #0f2d57 84%, var(--ui-animated-beam-accent-end) 16%)
312
+ );
313
+ --ui-animated-beam-color: #f8fbff;
314
+ --ui-animated-beam-border: 1px solid color-mix(in srgb, #9ec5ff 20%, transparent);
315
+ --ui-animated-beam-shadow: 0 26px 54px rgba(2, 6, 23, 0.32);
316
+ --ui-animated-beam-node-bg: color-mix(in srgb, #ffffff 8%, transparent);
317
+ --ui-animated-beam-node-border: 1px solid color-mix(in srgb, #ffffff 16%, transparent);
318
+ --ui-animated-beam-node-color: #f8fbff;
319
+ --ui-animated-beam-node-shadow: 0 12px 22px rgba(2, 6, 23, 0.22);
320
+ --ui-animated-beam-hub-bg: color-mix(in srgb, #ffffff 10%, transparent);
321
+ --ui-animated-beam-hub-border: 1px solid color-mix(in srgb, #ffffff 18%, transparent);
322
+ --ui-animated-beam-hub-shadow: 0 18px 30px rgba(2, 6, 23, 0.24);
323
+ --ui-animated-beam-path-color: color-mix(in srgb, #ffffff 20%, transparent);
324
+ --ui-animated-beam-trail-opacity: 0.92;
325
+ --ui-animated-beam-core-opacity: 1;
326
+ }
327
+
328
+ :host(:not([variant])),
329
+ :host([variant="minimal"]) {
330
+ --ui-animated-beam-bg: transparent;
331
+ --ui-animated-beam-border: 1px solid transparent;
332
+ --ui-animated-beam-shadow: none;
333
+ --ui-animated-beam-trail-opacity: 0.68;
334
+ }
335
+
336
+ :host([radius="none"]) {
337
+ --ui-animated-beam-radius: 0px;
338
+ }
339
+
340
+ :host([radius="sm"]) {
341
+ --ui-animated-beam-radius: 18px;
342
+ }
343
+
344
+ :host([radius="md"]) {
345
+ --ui-animated-beam-radius: 24px;
346
+ }
347
+
348
+ :host([radius="lg"]) {
349
+ --ui-animated-beam-radius: 32px;
350
+ }
351
+
352
+ :host([radius="full"]) {
353
+ --ui-animated-beam-radius: 999px;
354
+ }
355
+
356
+ :host([elevation="none"]) {
357
+ --ui-animated-beam-shadow: none;
358
+ --ui-animated-beam-node-shadow: none;
359
+ --ui-animated-beam-hub-shadow: none;
360
+ }
361
+
362
+ :host([elevation="high"]) {
363
+ --ui-animated-beam-shadow:
364
+ 0 1px 2px rgba(15, 23, 42, 0.06),
365
+ 0 30px 58px rgba(15, 23, 42, 0.14);
366
+ --ui-animated-beam-node-shadow:
367
+ 0 1px 3px rgba(15, 23, 42, 0.08),
368
+ 0 18px 34px rgba(15, 23, 42, 0.14);
369
+ --ui-animated-beam-hub-shadow:
370
+ 0 1px 3px rgba(15, 23, 42, 0.08),
371
+ 0 24px 42px rgba(15, 23, 42, 0.16);
372
+ }
373
+
374
+ :host([animation="calm"]) {
375
+ --ui-animated-beam-glow-opacity: ${v.calm.glowOpacity};
376
+ --ui-animated-beam-glow-blur: ${v.calm.glowBlur}px;
377
+ --ui-animated-beam-beam-factor: ${v.calm.beamFactor};
378
+ }
379
+
380
+ :host(:not([animation])),
381
+ :host([animation="smooth"]) {
382
+ --ui-animated-beam-glow-opacity: ${v.smooth.glowOpacity};
383
+ --ui-animated-beam-glow-blur: ${v.smooth.glowBlur}px;
384
+ --ui-animated-beam-beam-factor: ${v.smooth.beamFactor};
385
+ }
386
+
387
+ :host([animation="snappy"]) {
388
+ --ui-animated-beam-glow-opacity: ${v.snappy.glowOpacity};
389
+ --ui-animated-beam-glow-blur: ${v.snappy.glowBlur}px;
390
+ --ui-animated-beam-beam-factor: ${v.snappy.beamFactor};
391
+ }
392
+
393
+ :host([animation="surge"]) {
394
+ --ui-animated-beam-glow-opacity: ${v.surge.glowOpacity};
395
+ --ui-animated-beam-glow-blur: ${v.surge.glowBlur}px;
396
+ --ui-animated-beam-beam-factor: ${v.surge.beamFactor};
397
+ }
398
+
399
+ :host([animation="pulse"]) {
400
+ --ui-animated-beam-glow-opacity: ${v.pulse.glowOpacity};
401
+ --ui-animated-beam-glow-blur: ${v.pulse.glowBlur}px;
402
+ --ui-animated-beam-beam-factor: ${v.pulse.beamFactor};
403
+ }
404
+
405
+ :host([animation="heartbeat"]) {
406
+ --ui-animated-beam-glow-opacity: ${v.heartbeat.glowOpacity};
407
+ --ui-animated-beam-glow-blur: ${v.heartbeat.glowBlur}px;
408
+ --ui-animated-beam-beam-factor: ${v.heartbeat.beamFactor};
409
+ }
410
+
411
+ .root {
412
+ display: block;
413
+ min-inline-size: var(--ui-animated-beam-required-width);
414
+ }
415
+
416
+ .surface {
417
+ position: relative;
418
+ min-inline-size: var(--ui-animated-beam-required-width);
419
+ inline-size: max(100%, var(--ui-animated-beam-required-width));
420
+ border-radius: var(--ui-animated-beam-radius);
421
+ border: var(--ui-animated-beam-border);
422
+ background: var(--ui-animated-beam-bg);
423
+ color: var(--ui-animated-beam-color);
424
+ box-shadow: var(--ui-animated-beam-shadow);
425
+ backdrop-filter: var(--ui-animated-beam-backdrop);
426
+ transition:
427
+ background-color 180ms cubic-bezier(0.2, 0.9, 0.24, 1),
428
+ border-color 180ms cubic-bezier(0.2, 0.9, 0.24, 1),
429
+ box-shadow 180ms cubic-bezier(0.2, 0.9, 0.24, 1),
430
+ color 180ms cubic-bezier(0.2, 0.9, 0.24, 1),
431
+ backdrop-filter 180ms cubic-bezier(0.2, 0.9, 0.24, 1);
432
+ }
433
+
434
+ .canvas {
435
+ position: relative;
436
+ min-inline-size: var(--ui-animated-beam-required-width);
437
+ inline-size: max(100%, var(--ui-animated-beam-required-width));
438
+ min-block-size: var(--ui-animated-beam-min-height);
439
+ overflow: visible;
440
+ isolation: isolate;
441
+ }
442
+
443
+ .svg {
444
+ position: absolute;
445
+ inset: 0;
446
+ inline-size: 100%;
447
+ block-size: 100%;
448
+ overflow: visible;
449
+ pointer-events: none;
450
+ }
451
+
452
+ .connection {
453
+ fill: none;
454
+ }
455
+
456
+ .trail,
457
+ .beam-glow,
458
+ .beam-core {
459
+ fill: none;
460
+ stroke-linecap: round;
461
+ stroke-linejoin: round;
462
+ vector-effect: non-scaling-stroke;
463
+ }
464
+
465
+ .trail {
466
+ stroke: var(--ui-animated-beam-path-color);
467
+ opacity: var(--ui-animated-beam-trail-opacity);
468
+ }
469
+
470
+ :host([data-path-visible="false"]) .trail {
471
+ opacity: 0;
472
+ }
473
+
474
+ .beam-glow,
475
+ .beam-core {
476
+ stroke-dasharray: 0 var(--ui-animated-beam-travel-distance, 320);
477
+ stroke-dashoffset: var(--ui-animated-beam-progress-offset, 0);
478
+ animation-duration: var(--ui-animated-beam-cycle-duration, var(--ui-animated-beam-connection-duration, var(--ui-animated-beam-duration)));
479
+ animation-timing-function: linear;
480
+ animation-iteration-count: var(--ui-animated-beam-iteration-count, infinite);
481
+ animation-fill-mode: both;
482
+ }
483
+
484
+ .beam-glow {
485
+ opacity: 0;
486
+ filter: blur(var(--ui-animated-beam-glow-blur));
487
+ }
488
+
489
+ :host([glow="false"]) .beam-glow {
490
+ display: none;
491
+ }
492
+
493
+ .beam-core {
494
+ opacity: 0;
495
+ }
496
+
497
+ :host([data-state="paused"]) .beam-glow,
498
+ :host([data-state="paused"]) .beam-core {
499
+ animation-play-state: paused;
500
+ }
501
+
502
+ :host([data-state="paused"]) ::slotted([data-ui-animated-beam-node]),
503
+ :host([data-state="paused"]) ::slotted([data-ui-animated-beam-hub]) {
504
+ animation-play-state: paused;
505
+ }
506
+
507
+ :host([data-reduced-motion="true"]) .beam-glow,
508
+ :host([data-reduced-motion="true"]) .beam-core {
509
+ animation: none;
510
+ stroke-dasharray: var(--ui-animated-beam-travel-distance, 320) 0;
511
+ }
512
+
513
+ :host([data-reduced-motion="true"]) .beam-glow {
514
+ opacity: var(--ui-animated-beam-glow-opacity);
515
+ }
516
+
517
+ :host([data-reduced-motion="true"]) .beam-core {
518
+ opacity: var(--ui-animated-beam-core-opacity);
519
+ }
520
+
521
+ :host([data-reduced-motion="true"]) ::slotted([data-ui-animated-beam-node]),
522
+ :host([data-reduced-motion="true"]) ::slotted([data-ui-animated-beam-hub]) {
523
+ animation: none !important;
524
+ }
525
+
526
+ slot[name="hub"],
527
+ slot[name="connections"] {
528
+ display: contents;
529
+ }
530
+
531
+ .connections-meta {
532
+ display: none;
533
+ }
534
+
535
+ ::slotted([data-ui-animated-beam-node]),
536
+ ::slotted([data-ui-animated-beam-hub]) {
537
+ --ui-animated-beam-node-base-shadow: var(--ui-animated-beam-node-shadow);
538
+ --ui-animated-beam-node-effect-ring:
539
+ color-mix(in srgb, var(--ui-animated-beam-accent-end) 26%, transparent);
540
+ --ui-animated-beam-node-effect-glow:
541
+ color-mix(in srgb, var(--ui-animated-beam-accent) 32%, transparent);
542
+ position: absolute !important;
543
+ inset: auto;
544
+ transform: translate(-50%, -50%);
545
+ inline-size: var(--ui-animated-beam-render-size, var(--ui-animated-beam-node-size));
546
+ block-size: var(--ui-animated-beam-render-size, var(--ui-animated-beam-node-size));
547
+ display: grid !important;
548
+ place-items: center;
549
+ box-sizing: border-box;
550
+ border-radius: 999px;
551
+ padding: calc(var(--ui-animated-beam-render-size, var(--ui-animated-beam-node-size)) * 0.1);
552
+ font-size: calc(var(--ui-animated-beam-render-size, var(--ui-animated-beam-node-size)) * 0.32);
553
+ color: var(--ui-animated-beam-node-color);
554
+ background: var(--ui-animated-beam-node-bg);
555
+ border: var(--ui-animated-beam-node-border);
556
+ box-shadow: var(--ui-animated-beam-node-shadow);
557
+ backdrop-filter: var(--ui-animated-beam-node-backdrop);
558
+ text-align: center;
559
+ z-index: 1;
560
+ animation-name: var(--ui-animated-beam-node-effect-name, none);
561
+ animation-duration: var(--ui-animated-beam-node-effect-cycle, 0ms);
562
+ animation-timing-function: linear;
563
+ animation-iteration-count: var(--ui-animated-beam-node-effect-iterations, 1);
564
+ animation-fill-mode: both;
565
+ transition:
566
+ border-color 180ms cubic-bezier(0.2, 0.9, 0.24, 1),
567
+ box-shadow 180ms cubic-bezier(0.2, 0.9, 0.24, 1),
568
+ background-color 180ms cubic-bezier(0.2, 0.9, 0.24, 1),
569
+ transform 180ms cubic-bezier(0.2, 0.9, 0.24, 1);
570
+ }
571
+
572
+ ::slotted([data-ui-animated-beam-hub]) {
573
+ --ui-animated-beam-node-base-shadow: var(--ui-animated-beam-hub-shadow);
574
+ inline-size: var(--ui-animated-beam-render-size, var(--ui-animated-beam-hub-size));
575
+ block-size: var(--ui-animated-beam-render-size, var(--ui-animated-beam-hub-size));
576
+ padding: calc(var(--ui-animated-beam-render-size, var(--ui-animated-beam-hub-size)) * 0.12);
577
+ font-size: calc(var(--ui-animated-beam-render-size, var(--ui-animated-beam-hub-size)) * 0.26);
578
+ background: var(--ui-animated-beam-hub-bg);
579
+ border: var(--ui-animated-beam-hub-border);
580
+ box-shadow: var(--ui-animated-beam-hub-shadow);
581
+ z-index: 2;
582
+ }
583
+
584
+ ::slotted([data-ui-animated-beam-node]:focus-visible),
585
+ ::slotted([data-ui-animated-beam-hub]:focus-visible) {
586
+ outline: none;
587
+ border-color: color-mix(in srgb, var(--ui-animated-beam-focus-ring) 26%, transparent);
588
+ box-shadow:
589
+ 0 0 0 3px color-mix(in srgb, var(--ui-animated-beam-focus-ring) 18%, transparent),
590
+ var(--ui-animated-beam-node-shadow);
591
+ }
592
+
593
+ ::slotted([slot="connections"]) {
594
+ display: none !important;
595
+ }
596
+
597
+ ::slotted([data-ui-animated-beam-node] > svg),
598
+ ::slotted([data-ui-animated-beam-hub] > svg) {
599
+ inline-size: 62%;
600
+ block-size: 62%;
601
+ }
602
+
603
+ @media (prefers-reduced-motion: reduce) {
604
+ .beam-glow,
605
+ .beam-core {
606
+ animation: none;
607
+ }
608
+ }
609
+
610
+ @media (forced-colors: active) {
611
+ :host {
612
+ --ui-animated-beam-bg: Canvas;
613
+ --ui-animated-beam-color: CanvasText;
614
+ --ui-animated-beam-border: 1px solid CanvasText;
615
+ --ui-animated-beam-shadow: none;
616
+ --ui-animated-beam-node-bg: Canvas;
617
+ --ui-animated-beam-node-color: CanvasText;
618
+ --ui-animated-beam-node-border: 1px solid CanvasText;
619
+ --ui-animated-beam-node-shadow: none;
620
+ --ui-animated-beam-hub-bg: Canvas;
621
+ --ui-animated-beam-hub-border: 1px solid CanvasText;
622
+ --ui-animated-beam-hub-shadow: none;
623
+ --ui-animated-beam-path-color: CanvasText;
624
+ }
625
+ }
626
+ `;
627
+ class ve extends pe {
628
+ constructor() {
629
+ super(...arguments), this._nodeSlot = null, this._hubSlot = null, this._connectionSlot = null, this._surfaceEl = null, this._canvasEl = null, this._svgEl = null, this._defsEl = null, this._pathsEl = null, this._animationStyleEl = null, this._nodes = [], this._connections = [], this._nodeEffectAnimations = /* @__PURE__ */ new Map(), this._lastLayoutMetrics = null, this._resizeObserver = null, this._mutationObserver = null, this._mediaQuery = null, this._observedResizeElements = /* @__PURE__ */ new Set(), this._uid = `ui-animated-beam-${Math.random().toString(36).slice(2, 10)}`, this._boundSlotChange = this._handleSlotChange.bind(this), this._boundReducedMotionChange = this._handleReducedMotionChange.bind(this), this._boundResize = this._handleResize.bind(this), this._refreshScheduled = !1;
630
+ }
631
+ static get observedAttributes() {
632
+ return [
633
+ "animation",
634
+ "variant",
635
+ "tone",
636
+ "size",
637
+ "radius",
638
+ "elevation",
639
+ "columns",
640
+ "rows",
641
+ "padding",
642
+ "column-gap",
643
+ "row-gap",
644
+ "min-height",
645
+ "node-size",
646
+ "hub-size",
647
+ "duration",
648
+ "delay",
649
+ "stagger",
650
+ "trail-width",
651
+ "beam-width",
652
+ "beam-factor",
653
+ "path",
654
+ "glow",
655
+ "node-effect",
656
+ "auto-fit",
657
+ "paused",
658
+ "repeat",
659
+ "direction",
660
+ "reverse",
661
+ "color-start",
662
+ "color-end",
663
+ "trail-color",
664
+ "curve"
665
+ ];
666
+ }
667
+ connectedCallback() {
668
+ super.connectedCallback(), this._bindReducedMotionWatcher(), this._ensureResizeObserver(), this._ensureMutationObserver();
669
+ }
670
+ disconnectedCallback() {
671
+ var e, t, s, o;
672
+ this._clearNodeEffectAnimations(), this._disconnectResizeObserver(), this._disconnectMutationObserver(), (t = (e = this._mediaQuery) == null ? void 0 : e.removeEventListener) == null || t.call(e, "change", this._boundReducedMotionChange), (o = (s = this._mediaQuery) == null ? void 0 : s.removeListener) == null || o.call(s, this._boundReducedMotionChange), this._mediaQuery = null, super.disconnectedCallback();
673
+ }
674
+ attributeChangedCallback(e, t, s) {
675
+ if (!(t === s || !this.isConnected)) {
676
+ if (e === "paused") {
677
+ this._syncState();
678
+ return;
679
+ }
680
+ this._syncRuntimeStyles(), this._refreshScene();
681
+ }
682
+ }
683
+ play() {
684
+ this.hasAttribute("paused") && this.removeAttribute("paused"), this._syncState();
685
+ }
686
+ pause() {
687
+ this.hasAttribute("paused") || this.setAttribute("paused", ""), this._syncState();
688
+ }
689
+ refresh() {
690
+ this._clearNodeEffectAnimations(), this._syncRuntimeStyles(), this._syncNodes(), this._syncConnections(), this._layoutNodes(), this._renderConnections(), this._syncObservedResizeElements(), this._syncState();
691
+ }
692
+ render() {
693
+ var e, t, s;
694
+ this.setContent(`
695
+ <style>${_e}</style>
696
+ <style data-ui-animated-beam-animations></style>
697
+ <div class="root" part="root">
698
+ <div class="surface" part="surface">
699
+ <div class="canvas" part="canvas">
700
+ <svg class="svg" part="svg" aria-hidden="true" focusable="false" preserveAspectRatio="none">
701
+ <defs></defs>
702
+ <g class="paths" part="paths"></g>
703
+ </svg>
704
+ <slot name="hub"></slot>
705
+ <slot></slot>
706
+ <div class="connections-meta" aria-hidden="true">
707
+ <slot name="connections"></slot>
708
+ </div>
709
+ </div>
710
+ </div>
711
+ </div>
712
+ `), this._surfaceEl = this.root.querySelector(".surface"), this._canvasEl = this.root.querySelector(".canvas"), this._svgEl = this.root.querySelector(".svg"), this._defsEl = this.root.querySelector("defs"), this._pathsEl = this.root.querySelector(".paths"), this._animationStyleEl = this.root.querySelector("style[data-ui-animated-beam-animations]"), this._nodeSlot = this.root.querySelector("slot:not([name])"), this._hubSlot = this.root.querySelector('slot[name="hub"]'), this._connectionSlot = this.root.querySelector('slot[name="connections"]'), (e = this._nodeSlot) == null || e.addEventListener("slotchange", this._boundSlotChange), (t = this._hubSlot) == null || t.addEventListener("slotchange", this._boundSlotChange), (s = this._connectionSlot) == null || s.addEventListener("slotchange", this._boundSlotChange), this._syncRuntimeStyles(), this.refresh();
713
+ }
714
+ shouldRenderOnAttributeChange() {
715
+ return !1;
716
+ }
717
+ _handleSlotChange() {
718
+ this._refreshScene();
719
+ }
720
+ _handleReducedMotionChange() {
721
+ this._syncState();
722
+ }
723
+ _handleResize() {
724
+ this._refreshScene();
725
+ }
726
+ _refreshScene() {
727
+ this._refreshScheduled || (this._refreshScheduled = !0, queueMicrotask(() => {
728
+ this._refreshScheduled = !1, this.isConnected && this.refresh();
729
+ }));
730
+ }
731
+ _bindReducedMotionWatcher() {
732
+ var e, t, s, o;
733
+ typeof window > "u" || typeof window.matchMedia != "function" || this._mediaQuery || (this._mediaQuery = window.matchMedia("(prefers-reduced-motion: reduce)"), (t = (e = this._mediaQuery).addEventListener) == null || t.call(e, "change", this._boundReducedMotionChange), (o = (s = this._mediaQuery).addListener) == null || o.call(s, this._boundReducedMotionChange));
734
+ }
735
+ _prefersReducedMotion() {
736
+ var e;
737
+ return !!((e = this._mediaQuery) != null && e.matches);
738
+ }
739
+ _ensureResizeObserver() {
740
+ this._resizeObserver || typeof ResizeObserver > "u" || (this._resizeObserver = new ResizeObserver(this._boundResize), this._syncObservedResizeElements());
741
+ }
742
+ _disconnectResizeObserver() {
743
+ this._resizeObserver && (this._resizeObserver.disconnect(), this._resizeObserver = null, this._observedResizeElements.clear());
744
+ }
745
+ _syncObservedResizeElements() {
746
+ if (!this._resizeObserver)
747
+ return;
748
+ const e = /* @__PURE__ */ new Set();
749
+ this._canvasEl && e.add(this._canvasEl), e.add(this);
750
+ for (const t of this._nodes)
751
+ e.add(t.el);
752
+ for (const t of this._observedResizeElements)
753
+ e.has(t) || this._resizeObserver.unobserve(t);
754
+ for (const t of e)
755
+ this._observedResizeElements.has(t) || this._resizeObserver.observe(t);
756
+ this._observedResizeElements = e;
757
+ }
758
+ _ensureMutationObserver() {
759
+ this._mutationObserver || typeof MutationObserver > "u" || (this._mutationObserver = new MutationObserver((e) => {
760
+ for (const t of e) {
761
+ if (t.type === "childList") {
762
+ this._refreshScene();
763
+ return;
764
+ }
765
+ if (t.type === "attributes" && t.target instanceof HTMLElement && K.includes(t.attributeName || "")) {
766
+ this._refreshScene();
767
+ return;
768
+ }
769
+ }
770
+ }), this._mutationObserver.observe(this, {
771
+ childList: !0,
772
+ subtree: !0,
773
+ attributes: !0,
774
+ attributeFilter: K
775
+ }));
776
+ }
777
+ _disconnectMutationObserver() {
778
+ var e;
779
+ (e = this._mutationObserver) == null || e.disconnect(), this._mutationObserver = null;
780
+ }
781
+ _syncRuntimeStyles() {
782
+ const e = this._sizePreset(), t = this._motionPreset();
783
+ this.style.setProperty("--ui-animated-beam-required-width", `${this._autoFit() ? 0 : this._requiredWidthPx(e)}px`), this.style.setProperty("--ui-animated-beam-duration", `${this._durationMs() * t.durationScale}ms`), this.style.setProperty("--ui-animated-beam-delay", `${this._delayMs()}ms`), this.style.setProperty("--ui-animated-beam-stagger", `${this._staggerMs()}ms`), this.style.setProperty("--ui-animated-beam-columns", String(this._columns())), this.style.setProperty("--ui-animated-beam-padding", `${this._paddingPx(e)}px`), this.style.setProperty("--ui-animated-beam-column-gap", `${this._columnGapPx(e)}px`), this.style.setProperty("--ui-animated-beam-row-gap", `${this._rowGapPx(e)}px`), this.style.setProperty("--ui-animated-beam-node-size", `${this._nodeSizePx(e)}px`), this.style.setProperty("--ui-animated-beam-hub-size", `${this._hubSizePx(e)}px`), this.style.setProperty("--ui-animated-beam-min-height", `${this._minHeightPx(e)}px`), this.style.setProperty("--ui-animated-beam-trail-width", `${this._trailWidthPx()}px`), this.style.setProperty("--ui-animated-beam-beam-width", `${this._beamWidthPx()}px`), this.style.setProperty("--ui-animated-beam-beam-factor", String(this._beamFactor(t))), this.style.setProperty("--ui-animated-beam-glow-opacity", String(t.glowOpacity)), this.style.setProperty("--ui-animated-beam-glow-blur", `${t.glowBlur}px`);
784
+ const s = this.getAttribute("radius");
785
+ if (s && !ge.has(s.trim())) {
786
+ const i = le(s);
787
+ i ? this.style.setProperty("--ui-animated-beam-radius", i) : this.style.removeProperty("--ui-animated-beam-radius");
788
+ } else
789
+ this.style.removeProperty("--ui-animated-beam-radius");
790
+ const o = this.getAttribute("color-start"), n = this.getAttribute("color-end");
791
+ o ? this.style.setProperty("--ui-animated-beam-accent", o) : this.style.removeProperty("--ui-animated-beam-accent"), n ? this.style.setProperty("--ui-animated-beam-accent-end", n) : this.style.removeProperty("--ui-animated-beam-accent-end");
792
+ const r = this.getAttribute("trail-color");
793
+ r ? this.style.setProperty("--ui-animated-beam-path-color", r) : this.style.removeProperty("--ui-animated-beam-path-color");
794
+ }
795
+ _nodesFromSlot() {
796
+ return this._nodeSlot ? this._nodeSlot.assignedElements({ flatten: !0 }).filter((e) => e instanceof HTMLElement) : [];
797
+ }
798
+ _hubsFromSlot() {
799
+ return this._hubSlot ? this._hubSlot.assignedElements({ flatten: !0 }).filter((e) => e instanceof HTMLElement) : [];
800
+ }
801
+ _connectionsFromSlot() {
802
+ return this._connectionSlot ? this._connectionSlot.assignedElements({ flatten: !0 }).filter((e) => e instanceof HTMLElement) : [];
803
+ }
804
+ _syncNodes() {
805
+ const e = this._sizePreset(), t = this._columns(), s = this._declaredRows(), o = this._nodesFromSlot(), n = this._hubsFromSlot(), r = /* @__PURE__ */ new Set([...o, ...n]);
806
+ for (const p of this._nodes)
807
+ r.has(p.el) || Pe(p.el);
808
+ const i = [];
809
+ o.forEach((p, h) => {
810
+ i.push(this._buildNodeRecord(p, "node", h, t, s, e));
811
+ }), n.forEach((p, h) => {
812
+ i.push(this._buildNodeRecord(p, "hub", h, t, s, e));
813
+ }), this._nodes = i, this.setAttribute("data-node-count", String(o.length)), this.setAttribute("data-hub-count", String(n.length));
814
+ }
815
+ _buildNodeRecord(e, t, s, o, n, r) {
816
+ const i = t === "hub" ? "data-ui-animated-beam-hub" : "data-ui-animated-beam-node";
817
+ e.hasAttribute(i) || e.setAttribute(i, ""), e.hasAttribute("data-ui-animated-beam-managed") || e.setAttribute("data-ui-animated-beam-managed", ""), e.hasAttribute("data-ui-animated-beam-node-id-owned") || e.removeAttribute("data-ui-animated-beam-node-id-owned"), t === "hub" && e.getAttribute("slot") !== "hub" && e.setAttribute("slot", "hub");
818
+ const p = this._nodeIdForElement(e, t, s), h = n ? Math.max(1, Math.ceil(n / 2)) : t === "hub" ? 2 : s + 1, d = O(L(e.getAttribute("row"), h), 1, Math.max(n || h, h)), m = t === "hub" ? Math.ceil(o / 2) : O(s + 1, 1, o), c = O(L(e.getAttribute("column"), m), 1, o), f = t === "hub" ? r.hubSize : r.nodeSize, g = P(e.getAttribute("size"), f);
819
+ return {
820
+ el: e,
821
+ nodeId: p,
822
+ kind: t,
823
+ column: c,
824
+ row: d,
825
+ sizePx: g,
826
+ centerX: 0,
827
+ centerY: 0,
828
+ radiusPx: g / 2
829
+ };
830
+ }
831
+ _nodeIdForElement(e, t, s) {
832
+ const o = e.getAttribute("node-id") || e.id;
833
+ if (o)
834
+ return o;
835
+ const n = `${t}-${s + 1}`;
836
+ return e.setAttribute("node-id", n), e.setAttribute("data-ui-animated-beam-node-id-owned", ""), n;
837
+ }
838
+ _syncConnections() {
839
+ const e = this._motionPreset(), t = this._connectionsFromSlot(), s = new Set(t);
840
+ for (const i of this._connections)
841
+ s.has(i.el) || ke(i.el);
842
+ const o = this._tone(), n = [], r = /* @__PURE__ */ new Map();
843
+ t.forEach((i, p) => {
844
+ i.getAttribute("slot") !== "connections" && i.setAttribute("slot", "connections"), i.hasAttribute("data-ui-animated-beam-connection") || i.setAttribute("data-ui-animated-beam-connection", ""), i.hasAttribute("data-ui-animated-beam-managed") || i.setAttribute("data-ui-animated-beam-managed", "");
845
+ const h = i.getAttribute("from"), d = i.getAttribute("to");
846
+ if (!h || !d)
847
+ return;
848
+ const m = Ce(i.getAttribute("tone")), c = F(i.getAttribute("duration"), this._durationMs()), f = i.getAttribute("delay"), g = r.get(h) || 0;
849
+ r.set(h, g + 1), n.push({
850
+ el: i,
851
+ from: h,
852
+ to: d,
853
+ index: p,
854
+ curve: this._curveForConnection(i),
855
+ reverse: this._directionForConnection(i) === "reverse",
856
+ tone: m,
857
+ durationMs: c * e.durationScale,
858
+ hasExplicitDelay: f != null && f.trim() !== "",
859
+ localDelayMs: F(f, 0),
860
+ delayMs: 0,
861
+ siblingIndex: g,
862
+ beamFactor: _(ae(i.getAttribute("beam-factor"), this._beamFactor(e)), 0.06, 0.48),
863
+ trailWidthPx: P(i.getAttribute("trail-width"), this._trailWidthPx()),
864
+ beamWidthPx: P(i.getAttribute("beam-width"), this._beamWidthPx()),
865
+ colorStart: i.getAttribute("color-start") || E[m || o].start,
866
+ colorEnd: i.getAttribute("color-end") || E[m || o].end
867
+ });
868
+ }), this._connections = n, this.setAttribute("data-connection-count", String(this._connections.length));
869
+ }
870
+ _curveForConnection(e) {
871
+ const t = e.getAttribute("curve");
872
+ if (t && Y.has(t))
873
+ return t;
874
+ const s = this.getAttribute("curve");
875
+ return s && Y.has(s) ? s : "auto";
876
+ }
877
+ _directionForConnection(e) {
878
+ const t = e.getAttribute("direction");
879
+ if (t && X.has(t))
880
+ return t;
881
+ if (e.hasAttribute("reverse"))
882
+ return "reverse";
883
+ const s = this.getAttribute("direction");
884
+ return s && X.has(s) ? s : this.hasAttribute("reverse") ? "reverse" : "forward";
885
+ }
886
+ _layoutNodes() {
887
+ if (!this._canvasEl || !this._svgEl)
888
+ return;
889
+ const e = this._layoutMetrics();
890
+ this._lastLayoutMetrics = e;
891
+ const t = this._resolvedRowCount(), s = e.columns > 1 ? (e.width - e.padding * 2 - e.columnGap * (e.columns - 1)) / e.columns : e.width - e.padding * 2, o = t > 1 ? (e.height - e.padding * 2 - e.rowGap * (t - 1)) / t : e.height - e.padding * 2;
892
+ for (const n of this._nodes) {
893
+ const r = n.sizePx * e.scale, i = e.padding + s * (n.column - 0.5) + e.columnGap * (n.column - 1), p = e.padding + o * (n.row - 0.5) + e.rowGap * (n.row - 1);
894
+ n.centerX = i, n.centerY = p, n.radiusPx = r / 2, n.el.style.left = `${i}px`, n.el.style.top = `${p}px`, n.el.style.inlineSize = `${r}px`, n.el.style.blockSize = `${r}px`, n.el.style.zIndex = n.kind === "hub" ? "2" : "1", n.el.style.setProperty("--ui-animated-beam-render-size", `${r}px`);
895
+ }
896
+ this._svgEl.setAttribute("viewBox", `0 0 ${e.width} ${e.height}`), this._canvasEl.style.minHeight = `${e.height}px`, this.setAttribute("data-row-count", String(t)), this.setAttribute("data-column-count", String(e.columns));
897
+ }
898
+ _renderConnections() {
899
+ if (!this._defsEl || !this._pathsEl || !this._animationStyleEl)
900
+ return;
901
+ const e = this._lastLayoutMetrics || this._layoutMetrics(), t = _(e.scale, 0.72, 1), s = this._nodeEffect(), o = this._motionPreset(), n = new Map(this._nodes.map((y) => [y.nodeId, y])), r = [], i = [], p = [];
902
+ this._connections.forEach((y) => {
903
+ const u = n.get(y.from), w = n.get(y.to);
904
+ if (!u || !w)
905
+ return;
906
+ const x = we(u, w, y.curve);
907
+ r.push({
908
+ connection: y,
909
+ geometry: x,
910
+ travelDistance: x.length
911
+ });
912
+ });
913
+ const h = Se(r, this._delayMs(), this._staggerMs()), d = Math.max(
914
+ 1,
915
+ ...r.map((y) => (h.get(y.connection) ?? this._delayMs()) + y.connection.durationMs)
916
+ ), m = s === "none" ? 0 : J(d), c = this._repeat() ? "infinite" : "1", f = [], g = /* @__PURE__ */ new Map();
917
+ r.forEach((y) => {
918
+ const w = (h.get(y.connection) ?? this._delayMs()) + y.connection.durationMs, x = ce(y.connection);
919
+ g.set(x, Math.max(g.get(x) ?? 0, w));
920
+ });
921
+ const $ = Math.max(
922
+ d,
923
+ ...Array.from(g.values(), (y) => y + m)
924
+ );
925
+ r.forEach((y) => {
926
+ const { connection: u, geometry: w, travelDistance: x } = y, z = u.reverse ? $e(w) : w, k = `${this._uid}-gradient-${u.index}`, A = Math.max(1, u.trailWidthPx * t), M = Math.max(1.5, u.beamWidthPx * t), C = A.toFixed(2), T = M.toFixed(2), R = Math.max(M * 2, M + 4 * t), H = R.toFixed(2), N = z.start, G = z.end, I = 0, U = _(x * u.beamFactor, M * 6, x * 0.72);
927
+ u.delayMs = h.get(u) ?? this._delayMs();
928
+ const V = `${this._uid}-glow-${u.index}`, Q = `${this._uid}-core-${u.index}`;
929
+ f.push(
930
+ Z(
931
+ V,
932
+ $,
933
+ u.delayMs,
934
+ u.durationMs,
935
+ "var(--ui-animated-beam-glow-opacity)",
936
+ o.pattern,
937
+ x,
938
+ R,
939
+ R * 1.18,
940
+ U
941
+ )
942
+ ), f.push(
943
+ Z(
944
+ Q,
945
+ $,
946
+ u.delayMs,
947
+ u.durationMs,
948
+ "var(--ui-animated-beam-core-opacity)",
949
+ o.pattern,
950
+ x,
951
+ M,
952
+ M * 1.22,
953
+ U
954
+ )
955
+ ), i.push(`
956
+ <linearGradient id="${k}" gradientUnits="userSpaceOnUse" x1="${N.x}" y1="${N.y}" x2="${G.x}" y2="${G.y}">
957
+ <stop offset="0%" stop-color="${B(u.colorStart || D)}"></stop>
958
+ <stop offset="100%" stop-color="${B(u.colorEnd || q)}"></stop>
959
+ </linearGradient>
960
+ `), p.push(`
961
+ <g
962
+ class="connection"
963
+ part="connection"
964
+ data-from="${B(u.from)}"
965
+ data-to="${B(u.to)}"
966
+ style="
967
+ --ui-animated-beam-travel-distance:${x};
968
+ --ui-animated-beam-connection-duration:${u.durationMs}ms;
969
+ --ui-animated-beam-connection-delay:${u.delayMs}ms;
970
+ --ui-animated-beam-cycle-duration:${$}ms;
971
+ --ui-animated-beam-iteration-count:${c};
972
+ --ui-animated-beam-progress-offset:${I};
973
+ "
974
+ >
975
+ <path
976
+ class="trail"
977
+ part="trail"
978
+ d="${w.d}"
979
+ stroke-width="${C}"
980
+ ></path>
981
+ <path
982
+ class="beam-glow"
983
+ part="beam beam-glow"
984
+ d="${z.d}"
985
+ stroke="url(#${k})"
986
+ stroke-width="${H}"
987
+ style="animation-name:${V};"
988
+ ></path>
989
+ <path
990
+ class="beam-core"
991
+ part="beam beam-core"
992
+ d="${z.d}"
993
+ stroke="url(#${k})"
994
+ stroke-width="${T}"
995
+ style="animation-name:${Q};"
996
+ ></path>
997
+ </g>
998
+ `);
999
+ }), this._applyNodeEffectStyles(s, g, $, c, f), this._defsEl.innerHTML = i.join(""), this._pathsEl.innerHTML = p.join(""), this._animationStyleEl.textContent = f.join(`
1000
+ `), this.setAttribute("data-path-visible", this._pathVisible() ? "true" : "false");
1001
+ }
1002
+ _applyNodeEffectStyles(e, t, s, o, n) {
1003
+ const r = J(s);
1004
+ this._nodes.forEach((i, p) => {
1005
+ var m;
1006
+ const h = t.get(i.nodeId);
1007
+ if (e === "none" || h == null) {
1008
+ (m = this._nodeEffectAnimations.get(i.el)) == null || m.cancel(), this._nodeEffectAnimations.delete(i.el), be(i.el);
1009
+ return;
1010
+ }
1011
+ const d = `${this._uid}-node-effect-${p}`;
1012
+ n.push(Ae(d, s, h, r, e)), i.el.style.setProperty("--ui-animated-beam-node-effect-name", d), i.el.style.setProperty("--ui-animated-beam-node-effect-cycle", `${s}ms`), i.el.style.setProperty("--ui-animated-beam-node-effect-iterations", o), this._startNodeEffectAnimation(i.el, e, s, h, r, o);
1013
+ });
1014
+ }
1015
+ _syncState() {
1016
+ const e = this.hasAttribute("paused") || this._prefersReducedMotion();
1017
+ this.setAttribute("data-state", e ? "paused" : "running"), this.setAttribute("data-reduced-motion", this._prefersReducedMotion() ? "true" : "false"), this.setAttribute("data-path-visible", this._pathVisible() ? "true" : "false"), this._syncNodeEffectAnimationState(e);
1018
+ }
1019
+ _startNodeEffectAnimation(e, t, s, o, n, r) {
1020
+ var f;
1021
+ if (typeof e.animate != "function" || this._prefersReducedMotion() || t === "none")
1022
+ return;
1023
+ (f = this._nodeEffectAnimations.get(e)) == null || f.cancel();
1024
+ const i = Math.max(s, 1), p = _(o / i, 0, 1), h = _((o + n * 0.35) / i, p, 1), d = _((o + n * 0.72) / i, h, 1), m = _((o + n) / i, d, 1), c = e.animate(Me(t, p, h, d, m), {
1025
+ duration: s,
1026
+ iterations: r === "infinite" ? 1 / 0 : 1,
1027
+ fill: "both",
1028
+ easing: "linear",
1029
+ delay: 0
1030
+ });
1031
+ (this.hasAttribute("paused") || this._prefersReducedMotion()) && c.pause(), this._nodeEffectAnimations.set(e, c);
1032
+ }
1033
+ _syncNodeEffectAnimationState(e) {
1034
+ this._nodeEffectAnimations.forEach((t) => {
1035
+ e ? t.pause() : t.play();
1036
+ });
1037
+ }
1038
+ _clearNodeEffectAnimations() {
1039
+ this._nodeEffectAnimations.forEach((e) => e.cancel()), this._nodeEffectAnimations.clear();
1040
+ }
1041
+ _layoutMetrics() {
1042
+ var C;
1043
+ const e = this._sizePreset(), t = this._columns(), s = this._resolvedRowCount(), o = this._paddingPx(e), n = this._columnGapPx(e), r = this._rowGapPx(e), i = this._nodeSizePx(e), p = this._hubSizePx(e), h = this._minHeightPx(e), d = Math.max(i, Math.round(p * 0.86)), m = o * 2 + t * d + Math.max(0, t - 1) * n, c = (C = this._canvasEl) == null ? void 0 : C.getBoundingClientRect(), f = (c == null ? void 0 : c.width) || this.clientWidth || 0, g = this._autoFit() && f > 0 && m > 0 ? _(f / m, 0.2, 1) : 1, $ = o * g, y = n * g, u = r * g, w = i * g, x = p * g, z = h * g, k = Math.max(
1044
+ z,
1045
+ $ * 2 + s * Math.max(w, Math.round(x * 0.86)) + Math.max(0, s - 1) * u
1046
+ ), A = this._autoFit() && f > 0 ? f : Math.max(f, m), M = Math.max((c == null ? void 0 : c.height) || this.clientHeight || 0, k);
1047
+ return {
1048
+ width: A,
1049
+ height: M,
1050
+ scale: g,
1051
+ padding: $,
1052
+ columns: t,
1053
+ rows: s,
1054
+ columnGap: y,
1055
+ rowGap: u,
1056
+ nodeSize: w,
1057
+ hubSize: x
1058
+ };
1059
+ }
1060
+ _resolvedRowCount() {
1061
+ const e = this._declaredRows(), t = this._nodes.reduce((s, o) => Math.max(s, o.row), 1);
1062
+ return Math.max(1, e || t);
1063
+ }
1064
+ _declaredRows() {
1065
+ const e = L(this.getAttribute("rows"), NaN);
1066
+ return Number.isFinite(e) ? O(e, 1, 12) : null;
1067
+ }
1068
+ _columns() {
1069
+ return O(L(this.getAttribute("columns"), me), 1, 6);
1070
+ }
1071
+ _paddingPx(e) {
1072
+ return P(this.getAttribute("padding"), e.padding);
1073
+ }
1074
+ _columnGapPx(e) {
1075
+ return P(this.getAttribute("column-gap"), e.columnGap);
1076
+ }
1077
+ _rowGapPx(e) {
1078
+ return P(this.getAttribute("row-gap"), e.rowGap);
1079
+ }
1080
+ _nodeSizePx(e) {
1081
+ return P(this.getAttribute("node-size"), e.nodeSize);
1082
+ }
1083
+ _hubSizePx(e) {
1084
+ return P(this.getAttribute("hub-size"), e.hubSize);
1085
+ }
1086
+ _minHeightPx(e) {
1087
+ return P(this.getAttribute("min-height"), e.minHeight);
1088
+ }
1089
+ _requiredWidthPx(e) {
1090
+ const t = this._columns(), s = this._paddingPx(e), o = this._columnGapPx(e), n = this._nodeSizePx(e), r = this._hubSizePx(e), i = Math.max(n, Math.round(r * 0.86));
1091
+ return s * 2 + t * i + Math.max(0, t - 1) * o;
1092
+ }
1093
+ _autoFit() {
1094
+ const e = this.getAttribute("auto-fit");
1095
+ return e == null ? !1 : W(e, !0);
1096
+ }
1097
+ _trailWidthPx() {
1098
+ return P(this.getAttribute("trail-width"), se);
1099
+ }
1100
+ _beamWidthPx() {
1101
+ return P(this.getAttribute("beam-width"), re);
1102
+ }
1103
+ _durationMs() {
1104
+ return F(this.getAttribute("duration"), ie);
1105
+ }
1106
+ _delayMs() {
1107
+ return F(this.getAttribute("delay"), ne);
1108
+ }
1109
+ _staggerMs() {
1110
+ return F(this.getAttribute("stagger"), oe);
1111
+ }
1112
+ _beamFactor(e) {
1113
+ return _(ae(this.getAttribute("beam-factor"), e.beamFactor), 0.06, 0.48);
1114
+ }
1115
+ _sizePreset() {
1116
+ const e = this.getAttribute("size");
1117
+ return e === "xxs" || e === "0" ? b.xxs : e === "xs" ? b.xs : e === "sm" || e === "1" ? b.sm : e === "lg" || e === "3" ? b.lg : b.md;
1118
+ }
1119
+ _motionPreset() {
1120
+ const e = this.getAttribute("animation");
1121
+ return e && xe.has(e) ? v[e] : v.smooth;
1122
+ }
1123
+ _tone() {
1124
+ const e = this.getAttribute("tone");
1125
+ return e && ue.has(e) ? e : "brand";
1126
+ }
1127
+ _pathVisible() {
1128
+ const e = this.getAttribute("path");
1129
+ return e == null ? !0 : W(e, !0);
1130
+ }
1131
+ _repeat() {
1132
+ const e = this.getAttribute("repeat");
1133
+ return e == null ? !0 : W(e, !0);
1134
+ }
1135
+ _nodeEffect() {
1136
+ const e = this.getAttribute("node-effect");
1137
+ return e && ye.has(e) ? e : "none";
1138
+ }
1139
+ }
1140
+ function we(a, e, t) {
1141
+ const s = { x: a.centerX, y: a.centerY }, o = { x: e.centerX, y: e.centerY }, n = Math.atan2(o.y - s.y, o.x - s.x), r = te(s, n, Math.max(0, a.radiusPx - j)), i = te(o, n + Math.PI, Math.max(0, e.radiusPx - j)), p = i.x - r.x, h = i.y - r.y, d = Math.abs(p), m = Math.abs(h);
1142
+ if (t === "straight" || t === "auto" && m < Math.max(8, Math.min(a.radiusPx, e.radiusPx) * 0.28))
1143
+ return {
1144
+ kind: "line",
1145
+ start: r,
1146
+ end: i,
1147
+ d: `M ${l(r.x)} ${l(r.y)} L ${l(i.x)} ${l(i.y)}`,
1148
+ length: he(r, i)
1149
+ };
1150
+ const c = t === "arc" ? 0.56 : t === "soft" ? 0.34 : m > d * 0.45 ? 0.48 : 0.4;
1151
+ if (d >= m) {
1152
+ const y = Math.max(d * c, 44), u = { x: r.x + Math.sign(p || 1) * y, y: r.y }, w = { x: i.x - Math.sign(p || 1) * y, y: i.y };
1153
+ return {
1154
+ kind: "cubic",
1155
+ start: r,
1156
+ end: i,
1157
+ c1: u,
1158
+ c2: w,
1159
+ d: `M ${l(r.x)} ${l(r.y)} C ${l(u.x)} ${l(u.y)} ${l(w.x)} ${l(w.y)} ${l(i.x)} ${l(i.y)}`,
1160
+ length: ee(r, u, w, i)
1161
+ };
1162
+ }
1163
+ const f = Math.max(m * c, 44), g = { x: r.x, y: r.y + Math.sign(h || 1) * f }, $ = { x: i.x, y: i.y - Math.sign(h || 1) * f };
1164
+ return {
1165
+ kind: "cubic",
1166
+ start: r,
1167
+ end: i,
1168
+ c1: g,
1169
+ c2: $,
1170
+ d: `M ${l(r.x)} ${l(r.y)} C ${l(g.x)} ${l(g.y)} ${l($.x)} ${l($.y)} ${l(i.x)} ${l(i.y)}`,
1171
+ length: ee(r, g, $, i)
1172
+ };
1173
+ }
1174
+ function $e(a) {
1175
+ if (a.kind === "line")
1176
+ return {
1177
+ kind: "line",
1178
+ start: a.end,
1179
+ end: a.start,
1180
+ d: `M ${l(a.end.x)} ${l(a.end.y)} L ${l(a.start.x)} ${l(a.start.y)}`,
1181
+ length: a.length
1182
+ };
1183
+ const e = a.c2, t = a.c1;
1184
+ return {
1185
+ kind: "cubic",
1186
+ start: a.end,
1187
+ end: a.start,
1188
+ c1: e,
1189
+ c2: t,
1190
+ d: `M ${l(a.end.x)} ${l(a.end.y)} C ${l(e.x)} ${l(e.y)} ${l(t.x)} ${l(t.y)} ${l(a.start.x)} ${l(a.start.y)}`,
1191
+ length: a.length
1192
+ };
1193
+ }
1194
+ function Se(a, e, t) {
1195
+ const s = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
1196
+ for (const d of a) {
1197
+ const m = ce(d.connection), c = s.get(m);
1198
+ c ? c.push(d) : s.set(m, [d]);
1199
+ }
1200
+ const p = (d) => {
1201
+ const m = o.get(d);
1202
+ if (m != null)
1203
+ return m;
1204
+ if (r.has(d))
1205
+ return e;
1206
+ r.add(d);
1207
+ const c = s.get(d);
1208
+ let f = e;
1209
+ return c != null && c.length && (f = c.reduce((g, $) => {
1210
+ const y = h($.connection);
1211
+ return Math.max(g, y + $.connection.durationMs);
1212
+ }, e)), r.delete(d), o.set(d, f), f;
1213
+ }, h = (d) => {
1214
+ const m = n.get(d);
1215
+ if (m != null)
1216
+ return m;
1217
+ if (i.has(d))
1218
+ return e;
1219
+ i.add(d);
1220
+ const c = p(ze(d)), f = d.hasExplicitDelay ? 0 : d.siblingIndex * t, g = c + f + d.localDelayMs;
1221
+ return i.delete(d), n.set(d, g), g;
1222
+ };
1223
+ for (const d of a)
1224
+ n.set(d.connection, h(d.connection));
1225
+ return n;
1226
+ }
1227
+ function Z(a, e, t, s, o, n, r, i, p, h) {
1228
+ const d = Math.max(e, 1), m = _(t / d * 100, 0, 100), c = _((t + s) / d * 100, m, 100), f = _(m + Math.max(s / d * 100 * 0.02, 0.01), m, c), g = S(m), $ = S(f), y = S(c), u = l(i), w = l(p), x = l(r), z = l(h);
1229
+ if (n === "pulse") {
1230
+ const k = _(m + (c - m) * 0.42, f, c), A = _(m + (c - m) * 0.82, k, c), M = S(k), C = S(A);
1231
+ return `
1232
+ @keyframes ${a} {
1233
+ 0%, ${g}% {
1234
+ opacity: 0;
1235
+ stroke-dasharray: ${z} ${x};
1236
+ stroke-dashoffset: 0;
1237
+ stroke-width: ${u};
1238
+ }
1239
+ ${$}% {
1240
+ opacity: calc(${o} * 0.72);
1241
+ stroke-dasharray: ${z} ${x};
1242
+ stroke-dashoffset: 0;
1243
+ stroke-width: ${u};
1244
+ }
1245
+ ${M}% {
1246
+ opacity: ${o};
1247
+ stroke-dasharray: ${z} ${x};
1248
+ stroke-dashoffset: ${l(-r * 0.44)};
1249
+ stroke-width: ${w};
1250
+ }
1251
+ ${C}% {
1252
+ opacity: calc(${o} * 0.68);
1253
+ stroke-dasharray: ${z} ${x};
1254
+ stroke-dashoffset: ${l(-r * 0.84)};
1255
+ stroke-width: ${u};
1256
+ }
1257
+ ${y}%,
1258
+ 100% {
1259
+ opacity: 0;
1260
+ stroke-dasharray: ${z} ${x};
1261
+ stroke-dashoffset: ${l(-r)};
1262
+ stroke-width: ${u};
1263
+ }
1264
+ }
1265
+ `;
1266
+ }
1267
+ if (n === "heartbeat") {
1268
+ const k = _(h * 0.72, i * 4.5, r * 0.42), A = l(k), M = _(m + (c - m) * 0.24, f, c), C = _(m + (c - m) * 0.34, M, c), T = _(m + (c - m) * 0.48, C, c), R = _(m + (c - m) * 0.82, T, c), H = S(M), N = S(C), G = S(T), I = S(R);
1269
+ return `
1270
+ @keyframes ${a} {
1271
+ 0%, ${g}% {
1272
+ opacity: 0;
1273
+ stroke-dasharray: ${A} ${x};
1274
+ stroke-dashoffset: 0;
1275
+ stroke-width: ${u};
1276
+ }
1277
+ ${$}% {
1278
+ opacity: calc(${o} * 0.7);
1279
+ stroke-dasharray: ${A} ${x};
1280
+ stroke-dashoffset: 0;
1281
+ stroke-width: ${u};
1282
+ }
1283
+ ${H}% {
1284
+ opacity: calc(${o} * 0.88);
1285
+ stroke-dasharray: ${A} ${x};
1286
+ stroke-dashoffset: ${l(-r * 0.24)};
1287
+ stroke-width: ${l(i * 1.08)};
1288
+ }
1289
+ ${N}% {
1290
+ opacity: calc(${o} * 0.5);
1291
+ stroke-dasharray: ${A} ${x};
1292
+ stroke-dashoffset: ${l(-r * 0.34)};
1293
+ stroke-width: ${u};
1294
+ }
1295
+ ${G}% {
1296
+ opacity: ${o};
1297
+ stroke-dasharray: ${A} ${x};
1298
+ stroke-dashoffset: ${l(-r * 0.5)};
1299
+ stroke-width: ${w};
1300
+ }
1301
+ ${I}% {
1302
+ opacity: calc(${o} * 0.7);
1303
+ stroke-dasharray: ${A} ${x};
1304
+ stroke-dashoffset: ${l(-r * 0.84)};
1305
+ stroke-width: ${u};
1306
+ }
1307
+ ${y}%,
1308
+ 100% {
1309
+ opacity: 0;
1310
+ stroke-dasharray: ${A} ${x};
1311
+ stroke-dashoffset: ${l(-r)};
1312
+ stroke-width: ${u};
1313
+ }
1314
+ }
1315
+ `;
1316
+ }
1317
+ return `
1318
+ @keyframes ${a} {
1319
+ 0%, ${g}% {
1320
+ opacity: 0;
1321
+ stroke-dasharray: 0 ${x};
1322
+ stroke-width: ${u};
1323
+ }
1324
+ ${$}% {
1325
+ opacity: ${o};
1326
+ stroke-dasharray: 0 ${x};
1327
+ stroke-width: ${u};
1328
+ }
1329
+ ${y}%, 100% {
1330
+ opacity: ${o};
1331
+ stroke-dasharray: ${x} 0;
1332
+ stroke-width: ${u};
1333
+ }
1334
+ }
1335
+ `;
1336
+ }
1337
+ function ze(a) {
1338
+ return a.reverse ? a.to : a.from;
1339
+ }
1340
+ function ce(a) {
1341
+ return a.reverse ? a.from : a.to;
1342
+ }
1343
+ function J(a) {
1344
+ return _(a * 0.16, 360, 900);
1345
+ }
1346
+ function Ae(a, e, t, s, o) {
1347
+ const n = Math.max(e, 1), r = _(t / n * 100, 0, 100), i = _((t + s * 0.35) / n * 100, r, 100), p = _((t + s * 0.72) / n * 100, i, 100), h = _((t + s) / n * 100, p, 100), d = S(r), m = S(i), c = S(p), f = S(h);
1348
+ if (o === "shake") {
1349
+ const u = _(r + (i - r) * 0.3, r, i), w = _(r + (i - r) * 0.65, u, i), x = S(u), z = S(w);
1350
+ return `
1351
+ @keyframes ${a} {
1352
+ 0%, ${d}%, 100% {
1353
+ transform: translate(-50%, -50%) scale(1);
1354
+ box-shadow: var(--ui-animated-beam-node-base-shadow);
1355
+ border-color: color-mix(in srgb, var(--ui-animated-beam-accent) 12%, rgba(15, 23, 42, 0.1));
1356
+ }
1357
+ ${x}% {
1358
+ transform: translate(calc(-50% - 2px), calc(-50% + 1px)) scale(1.02) rotate(-2deg);
1359
+ box-shadow:
1360
+ var(--ui-animated-beam-node-base-shadow),
1361
+ 0 0 0 5px var(--ui-animated-beam-node-effect-ring);
1362
+ border-color: color-mix(in srgb, var(--ui-animated-beam-accent-end) 30%, transparent);
1363
+ }
1364
+ ${z}% {
1365
+ transform: translate(calc(-50% + 2px), calc(-50% - 1px)) scale(1.03) rotate(2deg);
1366
+ }
1367
+ ${m}% {
1368
+ transform: translate(-50%, -50%) scale(1.03);
1369
+ box-shadow:
1370
+ var(--ui-animated-beam-node-base-shadow),
1371
+ 0 0 0 6px var(--ui-animated-beam-node-effect-ring),
1372
+ 0 0 24px var(--ui-animated-beam-node-effect-glow);
1373
+ }
1374
+ ${c}%,
1375
+ ${f}% {
1376
+ transform: translate(-50%, -50%) scale(1);
1377
+ box-shadow: var(--ui-animated-beam-node-base-shadow);
1378
+ border-color: color-mix(in srgb, var(--ui-animated-beam-accent) 12%, rgba(15, 23, 42, 0.1));
1379
+ }
1380
+ }
1381
+ `;
1382
+ }
1383
+ return `
1384
+ @keyframes ${a} {
1385
+ 0%, ${d}%, 100% {
1386
+ transform: translate(-50%, -50%) scale(1);
1387
+ box-shadow: var(--ui-animated-beam-node-base-shadow);
1388
+ border-color: color-mix(in srgb, var(--ui-animated-beam-accent) 12%, rgba(15, 23, 42, 0.1));
1389
+ }
1390
+ ${m}% {
1391
+ transform: ${o === "pulse" ? "translate(-50%, -50%) scale(1.08)" : o === "ring" ? "translate(-50%, -50%) scale(1.04)" : "translate(-50%, -50%) scale(1.03)"};
1392
+ box-shadow: ${o === "ring" ? "var(--ui-animated-beam-node-base-shadow), 0 0 0 7px var(--ui-animated-beam-node-effect-ring)" : o === "pulse" ? "var(--ui-animated-beam-node-base-shadow), 0 0 0 6px var(--ui-animated-beam-node-effect-ring), 0 0 20px var(--ui-animated-beam-node-effect-glow)" : "var(--ui-animated-beam-node-base-shadow), 0 0 0 5px var(--ui-animated-beam-node-effect-ring), 0 0 28px var(--ui-animated-beam-node-effect-glow)"};
1393
+ border-color: ${o === "ring" ? "color-mix(in srgb, var(--ui-animated-beam-accent-end) 34%, transparent)" : "color-mix(in srgb, var(--ui-animated-beam-accent) 28%, transparent)"};
1394
+ }
1395
+ ${c}%,
1396
+ ${f}% {
1397
+ transform: translate(-50%, -50%) scale(1);
1398
+ box-shadow: var(--ui-animated-beam-node-base-shadow);
1399
+ border-color: color-mix(in srgb, var(--ui-animated-beam-accent) 12%, rgba(15, 23, 42, 0.1));
1400
+ }
1401
+ }
1402
+ `;
1403
+ }
1404
+ function Me(a, e = 0, t = 0.1, s = 0.16, o = 0.2) {
1405
+ const n = {
1406
+ offset: 0,
1407
+ transform: "translate(-50%, -50%) scale(1)",
1408
+ boxShadow: "var(--ui-animated-beam-node-base-shadow)",
1409
+ borderColor: "color-mix(in srgb, var(--ui-animated-beam-accent) 12%, rgba(15, 23, 42, 0.1))"
1410
+ };
1411
+ if (a === "shake") {
1412
+ const h = e + (t - e) * 0.3, d = e + (t - e) * 0.65;
1413
+ return [
1414
+ { ...n, offset: 0 },
1415
+ { ...n, offset: e },
1416
+ {
1417
+ offset: h,
1418
+ transform: "translate(calc(-50% - 2px), calc(-50% + 1px)) scale(1.02) rotate(-2deg)",
1419
+ boxShadow: "var(--ui-animated-beam-node-base-shadow), 0 0 0 5px var(--ui-animated-beam-node-effect-ring)",
1420
+ borderColor: "color-mix(in srgb, var(--ui-animated-beam-accent-end) 30%, transparent)"
1421
+ },
1422
+ {
1423
+ offset: d,
1424
+ transform: "translate(calc(-50% + 2px), calc(-50% - 1px)) scale(1.03) rotate(2deg)",
1425
+ boxShadow: "var(--ui-animated-beam-node-base-shadow), 0 0 0 5px var(--ui-animated-beam-node-effect-ring)",
1426
+ borderColor: "color-mix(in srgb, var(--ui-animated-beam-accent-end) 30%, transparent)"
1427
+ },
1428
+ {
1429
+ offset: t,
1430
+ transform: "translate(-50%, -50%) scale(1.03)",
1431
+ boxShadow: "var(--ui-animated-beam-node-base-shadow), 0 0 0 6px var(--ui-animated-beam-node-effect-ring), 0 0 24px var(--ui-animated-beam-node-effect-glow)",
1432
+ borderColor: "color-mix(in srgb, var(--ui-animated-beam-accent-end) 30%, transparent)"
1433
+ },
1434
+ { ...n, offset: s },
1435
+ { ...n, offset: o },
1436
+ { ...n, offset: 1 }
1437
+ ];
1438
+ }
1439
+ const r = a === "pulse" ? "translate(-50%, -50%) scale(1.08)" : a === "ring" ? "translate(-50%, -50%) scale(1.04)" : "translate(-50%, -50%) scale(1.03)", i = a === "ring" ? "var(--ui-animated-beam-node-base-shadow), 0 0 0 7px var(--ui-animated-beam-node-effect-ring)" : a === "pulse" ? "var(--ui-animated-beam-node-base-shadow), 0 0 0 6px var(--ui-animated-beam-node-effect-ring), 0 0 20px var(--ui-animated-beam-node-effect-glow)" : "var(--ui-animated-beam-node-base-shadow), 0 0 0 5px var(--ui-animated-beam-node-effect-ring), 0 0 28px var(--ui-animated-beam-node-effect-glow)", p = a === "ring" ? "color-mix(in srgb, var(--ui-animated-beam-accent-end) 34%, transparent)" : "color-mix(in srgb, var(--ui-animated-beam-accent) 28%, transparent)";
1440
+ return [
1441
+ { ...n, offset: 0 },
1442
+ { ...n, offset: e },
1443
+ {
1444
+ offset: t,
1445
+ transform: r,
1446
+ boxShadow: i,
1447
+ borderColor: p
1448
+ },
1449
+ { ...n, offset: s },
1450
+ { ...n, offset: o },
1451
+ { ...n, offset: 1 }
1452
+ ];
1453
+ }
1454
+ function ee(a, e, t, s) {
1455
+ let o = 0, n = a;
1456
+ const r = 18;
1457
+ for (let i = 1; i <= r; i += 1) {
1458
+ const p = i / r, h = Ee(a, e, t, s, p);
1459
+ o += he(n, h), n = h;
1460
+ }
1461
+ return o;
1462
+ }
1463
+ function Ee(a, e, t, s, o) {
1464
+ const n = 1 - o, r = n * n * n * a.x + 3 * n * n * o * e.x + 3 * n * o * o * t.x + o * o * o * s.x, i = n * n * n * a.y + 3 * n * n * o * e.y + 3 * n * o * o * t.y + o * o * o * s.y;
1465
+ return { x: r, y: i };
1466
+ }
1467
+ function te(a, e, t) {
1468
+ return {
1469
+ x: a.x + Math.cos(e) * t,
1470
+ y: a.y + Math.sin(e) * t
1471
+ };
1472
+ }
1473
+ function Pe(a) {
1474
+ a.removeAttribute("data-ui-animated-beam-managed"), a.removeAttribute("data-ui-animated-beam-node"), a.removeAttribute("data-ui-animated-beam-hub"), a.hasAttribute("data-ui-animated-beam-node-id-owned") && (a.removeAttribute("node-id"), a.removeAttribute("data-ui-animated-beam-node-id-owned")), a.style.removeProperty("left"), a.style.removeProperty("top"), a.style.removeProperty("inline-size"), a.style.removeProperty("block-size"), a.style.removeProperty("z-index"), a.style.removeProperty("--ui-animated-beam-render-size"), be(a);
1475
+ }
1476
+ function ke(a) {
1477
+ a.removeAttribute("data-ui-animated-beam-managed"), a.removeAttribute("data-ui-animated-beam-connection");
1478
+ }
1479
+ function be(a) {
1480
+ a.style.removeProperty("--ui-animated-beam-node-effect-name"), a.style.removeProperty("--ui-animated-beam-node-effect-cycle"), a.style.removeProperty("--ui-animated-beam-node-effect-iterations");
1481
+ }
1482
+ function Ce(a) {
1483
+ return a && ue.has(a) ? a : null;
1484
+ }
1485
+ function le(a) {
1486
+ return a ? /^-?\d+(\.\d+)?$/.test(a.trim()) ? `${a.trim()}px` : a : null;
1487
+ }
1488
+ function P(a, e) {
1489
+ const t = le(a);
1490
+ if (!t)
1491
+ return e;
1492
+ const s = t.match(/-?\d+(\.\d+)?/);
1493
+ return s ? Number.parseFloat(s[0]) : e;
1494
+ }
1495
+ function F(a, e) {
1496
+ if (!a)
1497
+ return e;
1498
+ const t = a.trim();
1499
+ return t ? /^-?\d+(\.\d+)?$/.test(t) ? Number.parseFloat(t) : t.endsWith("ms") ? Number.parseFloat(t.slice(0, -2)) || e : t.endsWith("s") ? (Number.parseFloat(t.slice(0, -1)) || e / 1e3) * 1e3 : e : e;
1500
+ }
1501
+ function W(a, e) {
1502
+ if (a == null)
1503
+ return e;
1504
+ const t = a.trim().toLowerCase();
1505
+ return t ? t === "false" || t === "0" || t === "off" || t === "no" ? !1 : t === "true" || t === "1" || t === "on" || t === "yes" ? !0 : e : !0;
1506
+ }
1507
+ function L(a, e) {
1508
+ if (a == null)
1509
+ return e;
1510
+ const t = Number.parseInt(a, 10);
1511
+ return Number.isFinite(t) ? t : e;
1512
+ }
1513
+ function ae(a, e) {
1514
+ if (a == null)
1515
+ return e;
1516
+ const t = Number.parseFloat(a);
1517
+ return Number.isFinite(t) ? t : e;
1518
+ }
1519
+ function O(a, e, t) {
1520
+ return Math.min(t, Math.max(e, Math.round(a)));
1521
+ }
1522
+ function _(a, e, t) {
1523
+ return Math.min(t, Math.max(e, a));
1524
+ }
1525
+ function he(a, e) {
1526
+ return Math.hypot(e.x - a.x, e.y - a.y);
1527
+ }
1528
+ function l(a) {
1529
+ return a.toFixed(2);
1530
+ }
1531
+ function S(a) {
1532
+ return a.toFixed(4).replace(/\.?0+$/, "");
1533
+ }
1534
+ function B(a) {
1535
+ return a.split("&").join("&amp;").split('"').join("&quot;").split("<").join("&lt;").split(">").join("&gt;");
1536
+ }
1537
+ typeof customElements < "u" && !customElements.get("ui-animated-beam") && customElements.define("ui-animated-beam", ve);
1538
+ export {
1539
+ ve as UIAnimatedBeam
1540
+ };