@orangelogic/design-system 4.2.0 → 4.4.0

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 (243) hide show
  1. package/library/chunks/{_baseXor.DixEm6JQ.js → _baseXor.BCxbgizO.js} +2 -2
  2. package/library/chunks/{asset-link-format.CVwjA_yf.js → asset-link-format.DTLA2CFh.js} +435 -415
  3. package/library/chunks/{button.D1YIxtv-.js → button.cbDkxJHn.js} +3 -3
  4. package/library/chunks/button.styles.D3GdfF7I.js +5 -0
  5. package/library/chunks/{color-swatch-group.BPXiMxjh.js → color-swatch-group.CZSeCrot.js} +3279 -2903
  6. package/library/chunks/color.CIHdfM_a.js +187 -0
  7. package/library/chunks/{confirm-popover.CJXyEa5A.js → confirm-popover.Dvgoz-oA.js} +4 -4
  8. package/library/chunks/content-builder.CBBdfVOl.js +55 -0
  9. package/library/chunks/{dialog.BbQ4Du0M.js → dialog.BvSMV36r.js} +2 -2
  10. package/library/chunks/{document-viewer.DtBW-p7z.js → document-viewer.BLdEjbza.js} +11 -10
  11. package/library/chunks/{dom.DL-cNKsj.js → dom.D0lSUoEI.js} +1 -1
  12. package/library/chunks/{dot-pagination.CJRAtM51.js → dot-pagination.CukHxNBk.js} +1 -1
  13. package/library/chunks/{folder-select.BAPsI-gg.js → folder-select.DAZQRdLq.js} +5 -5
  14. package/library/chunks/form-control.styles.CHC7Q08Q.js +5 -0
  15. package/library/chunks/{form.DN2v7-DH.js → form.LpappO1d.js} +1 -1
  16. package/library/chunks/{header.BioJzPlg.js → header.2RH_nPmz.js} +132 -90
  17. package/library/chunks/{i18n.rtxrs1c1.js → i18n.BSPmBQ73.js} +94 -12
  18. package/library/chunks/{icon-button.CbUddcgI.js → icon-button.DV5Fks8j.js} +1 -1
  19. package/library/chunks/{iframe.y7iCAVZP.js → iframe.ddX2kGu3.js} +1 -1
  20. package/library/chunks/{image.A2hE1WoV.js → image.BM7bPTub.js} +407 -276
  21. package/library/chunks/index.DKKvxBAi.js +1130 -0
  22. package/library/chunks/{input.D1FFprPl.js → input.7pumTpdu.js} +3 -3
  23. package/library/chunks/{markdown.Dd_GFJK8.js → markdown.LHSzm035.js} +3 -3
  24. package/library/chunks/{menu-item.CbqZ66to.js → menu-item.CqPvDGeN.js} +1 -1
  25. package/library/chunks/{option.CkhHTlpl.js → option.dBUWN4sF.js} +1 -1
  26. package/library/chunks/{pagination.BlQRt932.js → pagination.C2f8lUVb.js} +6 -6
  27. package/library/chunks/{position-picker.DjnhxIKF.js → position-picker.qkbJlboF.js} +12 -0
  28. package/library/chunks/{resizable-component.styles.CAfXABBc.js → resizable-component.styles.kMFDlGgv.js} +2 -2
  29. package/library/chunks/responsive.BmBJSzC4.js +17 -0
  30. package/library/chunks/{string.Demn8Xmk.js → string.CfI2ejyR.js} +3 -3
  31. package/library/chunks/{tab-group.CQfcMVEw.js → tab-group.DOnaT12G.js} +312 -310
  32. package/library/chunks/toast.D3AW3RWv.js +94 -0
  33. package/library/chunks/transformation.Dm-pK2ft.js +352 -0
  34. package/library/chunks/{tree.B7IKBX3n.js → tree.CHQ1WjZV.js} +1 -1
  35. package/library/chunks/{types.MwUT4xFk.js → types.PdpKNndx.js} +77402 -54714
  36. package/library/chunks/typography.BLYdTF0n.js +102 -0
  37. package/library/components/alert.js +2 -2
  38. package/library/components/asset-link-format.js +6 -6
  39. package/library/components/atoms.js +161 -159
  40. package/library/components/audio.js +4 -4
  41. package/library/components/bicolor-picker.js +2 -2
  42. package/library/components/border-input-group.js +2 -2
  43. package/library/components/box.d.ts +3 -0
  44. package/library/components/box.js +22 -0
  45. package/library/components/breadcrumb.js +1 -1
  46. package/library/components/button.js +4 -4
  47. package/library/components/card.js +7 -7
  48. package/library/components/checkbox.js +2 -2
  49. package/library/components/color-picker.js +36 -32
  50. package/library/components/color-swatch-group.js +8 -7
  51. package/library/components/color-swatch.js +246 -22
  52. package/library/components/confirm-popover.js +5 -5
  53. package/library/components/copy-button.js +2 -2
  54. package/library/components/corner-position-input-group.js +3 -3
  55. package/library/components/date-calendar.js +1 -1
  56. package/library/components/details.js +19 -19
  57. package/library/components/dialog.js +3 -3
  58. package/library/components/diff.js +1 -1
  59. package/library/components/document-viewer.js +5 -5
  60. package/library/components/dot-pagination.js +2 -2
  61. package/library/components/drawer.js +2 -2
  62. package/library/components/dropdown.js +2 -2
  63. package/library/components/dynamic-select.js +95 -92
  64. package/library/components/e-chart.js +1 -1
  65. package/library/components/element-clamp.js +2 -2
  66. package/library/components/file-on-demand.js +12 -12
  67. package/library/components/folder-select.js +5 -5
  68. package/library/components/format-bytes.js +1 -1
  69. package/library/components/format-date.js +1 -1
  70. package/library/components/format-number.js +1 -1
  71. package/library/components/format-time.js +1 -1
  72. package/library/components/header.js +6 -3
  73. package/library/components/icon-button.js +2 -2
  74. package/library/components/iframe.js +2 -2
  75. package/library/components/image-comparer.js +1 -1
  76. package/library/components/image.js +5 -4
  77. package/library/components/input-group.js +1 -1
  78. package/library/components/input.js +4 -4
  79. package/library/components/line-clamp.js +1 -1
  80. package/library/components/markdown.js +4 -4
  81. package/library/components/masonry.js +70 -56
  82. package/library/components/menu-item.js +2 -2
  83. package/library/components/menu.js +2 -2
  84. package/library/components/molecules.js +4 -4
  85. package/library/components/mutation-observer.js +25 -23
  86. package/library/components/option.js +2 -2
  87. package/library/components/organisms.js +2 -2
  88. package/library/components/padding-input-group.js +1 -1
  89. package/library/components/pagination.js +7 -7
  90. package/library/components/popup.js +1 -1
  91. package/library/components/position-picker.js +2 -2
  92. package/library/components/progress-bar.js +1 -1
  93. package/library/components/progress-ring.js +1 -1
  94. package/library/components/radio-button.js +1 -1
  95. package/library/components/radio-card.js +1 -1
  96. package/library/components/radio-group.js +2 -2
  97. package/library/components/range.js +3 -3
  98. package/library/components/rating.js +1 -1
  99. package/library/components/relative-time.js +1 -1
  100. package/library/components/select.js +5 -5
  101. package/library/components/shadow-input-group.js +1 -1
  102. package/library/components/share-option-list.js +3 -3
  103. package/library/components/sidebar.js +1 -1
  104. package/library/components/size-input-group.js +3 -3
  105. package/library/components/spinner.js +1 -1
  106. package/library/components/split-panel.js +1 -1
  107. package/library/components/switch.js +2 -2
  108. package/library/components/tab-group.js +6 -6
  109. package/library/components/tab-panel.js +1 -1
  110. package/library/components/tab.js +16 -16
  111. package/library/components/tag.js +2 -2
  112. package/library/components/textarea.js +2 -2
  113. package/library/components/timecode.js +2 -2
  114. package/library/components/tooltip.js +1 -1
  115. package/library/components/tree-item.js +2 -2
  116. package/library/components/tree.js +2 -2
  117. package/library/components/typeface.js +3 -3
  118. package/library/components/types.js +496 -487
  119. package/library/components/typography.js +3 -2
  120. package/library/components/video.js +5277 -5209
  121. package/library/css/ol-base.css +1 -0
  122. package/library/package.json +1 -1
  123. package/library/packages/atoms/src/components/box/box.d.ts +26 -0
  124. package/library/packages/atoms/src/components/box/box.styles.d.ts +7 -0
  125. package/library/packages/atoms/src/components/button/button.d.ts +4 -0
  126. package/library/packages/atoms/src/components/card/card.d.ts +1 -0
  127. package/library/packages/atoms/src/components/color-picker/color-picker.d.ts +11 -0
  128. package/library/packages/atoms/src/components/copy-button/copy-button.d.ts +1 -0
  129. package/library/packages/atoms/src/components/details/details.d.ts +6 -1
  130. package/library/packages/atoms/src/components/header/header.d.ts +38 -2
  131. package/library/packages/atoms/src/components/image/image.d.ts +30 -0
  132. package/library/packages/atoms/src/components/mutation-observer/mutation-observer.d.ts +1 -1
  133. package/library/packages/atoms/src/components/radio-card/radio-card.d.ts +1 -0
  134. package/library/packages/atoms/src/components/tab/tab.d.ts +17 -0
  135. package/library/packages/atoms/src/components/typography/typography.d.ts +31 -0
  136. package/library/packages/atoms/src/components/video/video.d.ts +24 -0
  137. package/library/packages/atoms/src/index.d.ts +1 -0
  138. package/library/packages/events/src/cx-asset-transformation-dialog-confirm.d.ts +2 -0
  139. package/library/packages/events/src/cx-color-swatch-picker-columns-change.d.ts +15 -0
  140. package/library/packages/events/src/events.d.ts +1 -0
  141. package/library/packages/hybrid/table-core/src/table/table.d.ts +10 -1
  142. package/library/packages/molecules/src/color-swatch/color-swatch.d.ts +35 -1
  143. package/library/packages/molecules/src/data-tab-group/data-tab-group.d.ts +30 -1
  144. package/library/packages/molecules/src/details-group/details-group.d.ts +105 -3
  145. package/library/packages/molecules/src/dynamic-select/dynamic-select.d.ts +5 -0
  146. package/library/packages/molecules/src/font-picker/font-picker.d.ts +3 -0
  147. package/library/packages/molecules/src/gallery-item/gallery-item.d.ts +10 -0
  148. package/library/packages/molecules/src/icon-picker/icon-picker.d.ts +5 -6
  149. package/library/packages/molecules/src/index.d.ts +0 -1
  150. package/library/packages/molecules/src/masonry/masonry.d.ts +5 -0
  151. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +6 -0
  152. package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +5 -1
  153. package/library/packages/organisms/src/color-swatch-group/color-swatch-group.constants.d.ts +37 -45
  154. package/library/packages/organisms/src/color-swatch-group/color-swatch-group.d.ts +210 -10
  155. package/library/packages/organisms/src/content-builder/blocks/font-kit-advanced/font-kit-advanced.utils.d.ts +85 -0
  156. package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +32 -9
  157. package/library/packages/organisms/src/content-builder/components/block-picker/block-picker.d.ts +24 -8
  158. package/library/packages/organisms/src/content-builder/components/color-swatch-picker/color-swatch-picker.d.ts +70 -1
  159. package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +1 -22
  160. package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +7 -0
  161. package/library/packages/organisms/src/content-builder/components/gallery-config/gallery-config.d.ts +6 -0
  162. package/library/packages/organisms/src/content-builder/components/gallery-picker/gallery-picker.d.ts +1 -0
  163. package/library/packages/organisms/src/content-builder/configs/accordion.d.ts +7 -0
  164. package/library/packages/organisms/src/content-builder/configs/audio.d.ts +1 -0
  165. package/library/packages/organisms/src/content-builder/configs/button.d.ts +2 -1
  166. package/library/packages/organisms/src/content-builder/configs/carousel.d.ts +11 -1
  167. package/library/packages/organisms/src/content-builder/configs/color-swatches.d.ts +19 -1
  168. package/library/packages/organisms/src/content-builder/configs/column-group.d.ts +11 -2
  169. package/library/packages/organisms/src/content-builder/configs/column.d.ts +13 -3
  170. package/library/packages/organisms/src/content-builder/configs/dam-view.d.ts +1 -0
  171. package/library/packages/organisms/src/content-builder/configs/divider.d.ts +1 -0
  172. package/library/packages/organisms/src/content-builder/configs/document-viewer.d.ts +1 -0
  173. package/library/packages/organisms/src/content-builder/configs/font-kit-advanced.d.ts +19 -0
  174. package/library/packages/organisms/src/content-builder/configs/font-kit.d.ts +2 -0
  175. package/library/packages/organisms/src/content-builder/configs/gallery.d.ts +15 -1
  176. package/library/packages/organisms/src/content-builder/configs/header.d.ts +3 -1
  177. package/library/packages/organisms/src/content-builder/configs/image.d.ts +4 -0
  178. package/library/packages/organisms/src/content-builder/configs/index.d.ts +1 -0
  179. package/library/packages/organisms/src/content-builder/configs/search-box.d.ts +5 -1
  180. package/library/packages/organisms/src/content-builder/configs/tab-group.d.ts +7 -4
  181. package/library/packages/organisms/src/content-builder/configs/timeline.d.ts +1 -0
  182. package/library/packages/organisms/src/content-builder/configs/video.d.ts +3 -0
  183. package/library/packages/organisms/src/content-builder/configs-controller.d.ts +168 -13
  184. package/library/packages/organisms/src/content-builder/content-builder-config.d.ts +60 -0
  185. package/library/packages/organisms/src/content-builder/content-builder-constants.d.ts +27 -0
  186. package/library/packages/organisms/src/content-builder/content-builder.d.ts +122 -2
  187. package/library/packages/organisms/src/content-builder/content-builder.sections.utils.d.ts +78 -0
  188. package/library/packages/organisms/src/content-builder/content-builder.utils.d.ts +33 -2
  189. package/library/packages/organisms/src/content-builder/plugins/font-kit-advanced.d.ts +5 -0
  190. package/library/packages/organisms/src/content-builder/plugins/gallery.d.ts +6 -0
  191. package/library/packages/organisms/src/content-builder/plugins/header.d.ts +7 -1
  192. package/library/packages/organisms/src/content-builder/plugins/index.d.ts +2 -1
  193. package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-bubble-menu/rte-bubble-menu.d.ts +21 -1
  194. package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/index.d.ts +2 -0
  195. package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/rte-configs.d.ts +14 -0
  196. package/library/packages/organisms/src/content-builder/plugins/sections/section-fragment-component.d.ts +22 -0
  197. package/library/packages/organisms/src/content-builder/plugins/sections/section-host-mounting.d.ts +15 -0
  198. package/library/packages/organisms/src/content-builder/plugins/sections/sections-canvas-patches.d.ts +20 -0
  199. package/library/packages/organisms/src/content-builder/plugins/sections/sections-plugin.d.ts +7 -0
  200. package/library/packages/organisms/src/content-builder/plugins/toolbar.d.ts +10 -1
  201. package/library/packages/organisms/src/content-builder/plugins/utils/block-width.d.ts +20 -0
  202. package/library/packages/organisms/src/content-builder/styleController.d.ts +11 -5
  203. package/library/packages/organisms/src/content-builder-viewer/content-builder-viewer.d.ts +1 -0
  204. package/library/packages/organisms/src/form/control-renderer/control-renderer.d.ts +176 -0
  205. package/library/packages/organisms/src/form/control-renderer/control-renderer.styles.d.ts +9 -0
  206. package/library/packages/organisms/src/list-editor/list-editor.d.ts +181 -6
  207. package/library/packages/tools/src/tiptap/extensions/metafield/index.d.ts +12 -0
  208. package/library/packages/tools/src/tiptap/utils/md/schema.d.ts +1 -1
  209. package/library/packages/types/src/asset-link-format.d.ts +0 -1
  210. package/library/packages/types/src/button.d.ts +1 -1
  211. package/library/packages/types/src/color-swatch-group.d.ts +56 -0
  212. package/library/packages/types/src/color-swatch.d.ts +22 -0
  213. package/library/packages/types/src/column.d.ts +13 -0
  214. package/library/packages/types/src/content-builder.d.ts +73 -4
  215. package/library/packages/types/src/details-group.d.ts +80 -0
  216. package/library/packages/types/src/font-kit-advanced.d.ts +28 -0
  217. package/library/packages/types/src/font-kit.d.ts +19 -0
  218. package/library/packages/types/src/font-picker.d.ts +2 -0
  219. package/library/packages/types/src/gallery-item.d.ts +3 -1
  220. package/library/packages/types/src/gallery.d.ts +2 -1
  221. package/library/packages/types/src/index.d.ts +1 -0
  222. package/library/packages/types/src/masonry.d.ts +1 -0
  223. package/library/packages/types/src/position-picker.d.ts +6 -0
  224. package/library/packages/types/src/sb-button.d.ts +7 -0
  225. package/library/packages/types/src/search-box.d.ts +4 -0
  226. package/library/packages/utils/src/color/color.d.ts +27 -3
  227. package/library/packages/utils/src/custom-element/i18n.d.ts +86 -0
  228. package/library/packages/utils/src/font/font.d.ts +12 -0
  229. package/library/packages/utils/src/transformation/transformation.d.ts +11 -3
  230. package/library/react-web-component.d.ts +514 -156
  231. package/library/utils.js +415 -395
  232. package/package.json +1 -1
  233. package/library/chunks/button.styles.BWgHrfLD.js +0 -5
  234. package/library/chunks/color-swatch.DdsUysbF.js +0 -223
  235. package/library/chunks/color.LzSGBy7o.js +0 -164
  236. package/library/chunks/form-control.styles.CaGWmeAS.js +0 -5
  237. package/library/chunks/index.BO_sT6SH.js +0 -20123
  238. package/library/chunks/toast.BOkYwUIj.js +0 -109
  239. package/library/chunks/transformation.B8m0Nbao.js +0 -384
  240. package/library/chunks/typography.T72DuoCa.js +0 -52
  241. package/library/packages/molecules/src/search-box/search-box.d.ts +0 -114
  242. package/library/packages/organisms/src/content-builder/plugins/wrapper-container.d.ts +0 -15
  243. /package/library/packages/{molecules/src/search-box/search-box.styles.d.ts → organisms/src/content-builder-viewer/content-builder-viewer.styles.d.ts} +0 -0
package/library/utils.js CHANGED
@@ -1,47 +1,48 @@
1
- import { b as k } from "./chunks/url.CGdWC06g.js";
2
- import { R as yt, f as xt, g as Et, h as It, U as Lt, a as Rt, d as Ft, c as Ot, i as bt, r as vt, t as Vt, e as _t } from "./chunks/url.CGdWC06g.js";
3
- import { j as Ut, f as Nt, b as Yt, c as Pt, g as Wt, e as Xt, i as Ht, a as Bt, h as Gt, m as $t, d as zt, r as qt, t as Qt } from "./chunks/toast.BOkYwUIj.js";
4
- import { e as jt, a as Jt, f as Kt, g as te, d as ee, b as re, c as ae, i as se, p as oe, s as ne } from "./chunks/browser.BHOCIF_A.js";
5
- import { d as le, C as ce, e as ue, H as me, R as fe, c as he, h as ge, f as de, g as pe, l as De, a as Te, p as Se, b as we } from "./chunks/color.LzSGBy7o.js";
6
- import { a as Ae, g as Ce } from "./chunks/active-elements.jTVWtBDp.js";
7
- import { a as xe, p as Ee, c as Ie, b as Le, s as Re, w as Fe } from "./chunks/event.BeKOsirN.js";
8
- import { t as be } from "./chunks/converters.DkDtLstb.js";
9
- import { c as Ve } from "./chunks/custom-element.L4WJXn1j.js";
10
- import { d as ke } from "./chunks/debounce.DaHuiSGU.js";
11
- import { d as Ne } from "./chunks/default-value.COZopaet.js";
12
- import { d as Pe } from "./chunks/drag.DenOh3AE.js";
13
- import { f as Xe } from "./chunks/focus-when-visible.jWSw9ks0.js";
14
- import { f as U } from "./chunks/form.DN2v7-DH.js";
15
- import { F as Be, c as Ge, g as $e, v as ze, a as qe } from "./chunks/form.DN2v7-DH.js";
16
- import { L as Ze, r as je } from "./chunks/i18n.rtxrs1c1.js";
17
- import { c as Ke, q as tr } from "./chunks/math.DuKzLacZ.js";
18
- import { g as rr } from "./chunks/modal.Ct0bJBSe.js";
19
- import { g as sr, l as or, s as nr, u as ir } from "./chunks/scroll.xtO5yojm.js";
20
- import { k as C } from "./chunks/dom.DL-cNKsj.js";
21
- import { c as cr, d as ur, h as mr, m as fr, a as hr, g as gr, j as dr, b as pr, f as Dr, i as Tr, e as Sr, l as wr, r as Mr, s as Ar } from "./chunks/dom.DL-cNKsj.js";
22
- import { H as yr, a as xr, g as Er } from "./chunks/slot.j5oheLJC.js";
23
- import { a as Lr, g as Rr } from "./chunks/tabbable.BwnZBHrm.js";
24
- import { i as Or } from "./chunks/user-agent.D9aPuOyL.js";
25
- import { w as vr } from "./chunks/watch.DJF5K-8U.js";
26
- import { C as _r } from "./chunks/calendar-grid.BWjcZL5W.js";
27
- import { b as Ur, c as Nr, f as Yr, h as Pr, g as Wr, a as Xr, i as Hr, d as Br, n as Gr, e as $r, p as zr, t as qr } from "./chunks/date.iWq_pkIk.js";
28
- import { f as c, a as u, D as m } from "./chunks/date-picker.BGHn6qg8.js";
29
- import { k as Zr, m as jr, p as Jr, O as Kr, l as ta, a as ea, n as ra, b as aa, g as sa, d as oa, f as na, o as ia, q as la, r as ca, c as ua } from "./chunks/transformation.B8m0Nbao.js";
30
- import { M as fa, c as ha, e as ga, i as da, n as pa, p as Da, b as Ta, s as Sa, d as wa } from "./chunks/gradient.CIzq8fOU.js";
31
- import { c as Aa, f as Ca, e as ya, b as xa, g as Ea, d as Ia, i as La, r as Ra, a as Fa } from "./chunks/image.Y5c_hFx8.js";
32
- import { b as ba, e as va } from "./chunks/waveform.1U9U_0rd.js";
33
- import { c as _a, b as ka, a as Ua, e as Na, d as Ya, f as Pa, g as Wa, r as Xa, s as Ha } from "./chunks/number.Cx2ncfJJ.js";
34
- import { s as Ga } from "./chunks/parse.Cu5nBDTb.js";
35
- import { b as za, n as qa, d as Qa, e as Za, f as ja, y as Ja, o as Ka, g as ts, h as es, l as rs, p as as, z as ss, x as os, a as ns, c as is, s as ls, w as cs, r as us, t as ms, q as fs, v as hs, i as gs, m as ds, u as ps } from "./chunks/string.Demn8Xmk.js";
36
- import { g as Ts, a as Ss } from "./chunks/template.ClovJacp.js";
37
- import { c as Ms, f as As, a as Cs, g as ys } from "./chunks/time.DYWuX2id.js";
1
+ import { b as N } from "./chunks/url.CGdWC06g.js";
2
+ import { R as Et, f as It, g as Lt, h as Ft, U as Rt, a as Ot, d as vt, c as bt, i as Vt, r as _t, t as kt, e as Nt } from "./chunks/url.CGdWC06g.js";
3
+ import { e as Yt, f as Pt, g as Wt, c as Xt, i as Ht, a as Bt, d as Gt, m as $t, b as zt, r as qt, t as Qt } from "./chunks/toast.D3AW3RWv.js";
4
+ import { e as Zt, a as Jt, f as Kt, g as te, d as ee, b as re, c as ae, i as se, p as oe, s as ne } from "./chunks/browser.BHOCIF_A.js";
5
+ import { k as le, e as ce, m as ue, H as fe, R as me, d as he, o as ge, g as de, f as pe, n as De, h as Te, l as Se, i as we, p as Me, j as ye } from "./chunks/color.CIHdfM_a.js";
6
+ import { a as Ae, g as xe } from "./chunks/active-elements.jTVWtBDp.js";
7
+ import { a as Ie, p as Le, c as Fe, b as Re, s as Oe, w as ve } from "./chunks/event.BeKOsirN.js";
8
+ import { t as Ve } from "./chunks/converters.DkDtLstb.js";
9
+ import { c as ke } from "./chunks/custom-element.L4WJXn1j.js";
10
+ import { d as Ue } from "./chunks/debounce.DaHuiSGU.js";
11
+ import { d as Pe } from "./chunks/default-value.COZopaet.js";
12
+ import { d as Xe } from "./chunks/drag.DenOh3AE.js";
13
+ import { f as Be } from "./chunks/focus-when-visible.jWSw9ks0.js";
14
+ import { f as U } from "./chunks/form.LpappO1d.js";
15
+ import { F as $e, c as ze, g as qe, v as Qe, a as je } from "./chunks/form.LpappO1d.js";
16
+ import { L as Je, r as Ke } from "./chunks/i18n.BSPmBQ73.js";
17
+ import { c as er, q as rr } from "./chunks/math.DuKzLacZ.js";
18
+ import { g as sr } from "./chunks/modal.Ct0bJBSe.js";
19
+ import { g as nr, l as ir, s as lr, u as cr } from "./chunks/scroll.xtO5yojm.js";
20
+ import { k as C } from "./chunks/dom.D0lSUoEI.js";
21
+ import { c as fr, d as mr, h as hr, m as gr, a as dr, g as pr, j as Dr, b as Tr, f as Sr, i as wr, e as Mr, l as yr, r as Cr, s as Ar } from "./chunks/dom.D0lSUoEI.js";
22
+ import { H as Er, a as Ir, g as Lr } from "./chunks/slot.j5oheLJC.js";
23
+ import { a as Rr, g as Or } from "./chunks/tabbable.BwnZBHrm.js";
24
+ import { i as br } from "./chunks/user-agent.D9aPuOyL.js";
25
+ import { w as _r } from "./chunks/watch.DJF5K-8U.js";
26
+ import { C as Nr } from "./chunks/calendar-grid.BWjcZL5W.js";
27
+ import { b as Yr, c as Pr, f as Wr, h as Xr, g as Hr, a as Br, i as Gr, d as $r, n as zr, e as qr, p as Qr, t as jr } from "./chunks/date.iWq_pkIk.js";
28
+ import { f as c, a as u, D as f } from "./chunks/date-picker.BGHn6qg8.js";
29
+ import { A as Jr, g as Kr, j as ta, O as ea, S as ra, a as aa, h as sa, b as oa, e as na, d as ia, f as la, i as ca, k as ua, p as fa, r as ma, c as ha } from "./chunks/transformation.Dm-pK2ft.js";
30
+ import { M as da, c as pa, e as Da, i as Ta, n as Sa, p as wa, b as Ma, s as ya, d as Ca } from "./chunks/gradient.CIzq8fOU.js";
31
+ import { c as xa, f as Ea, e as Ia, b as La, g as Fa, d as Ra, i as Oa, r as va, a as ba } from "./chunks/image.Y5c_hFx8.js";
32
+ import { b as _a, e as ka } from "./chunks/waveform.1U9U_0rd.js";
33
+ import { c as Ua, b as Ya, a as Pa, e as Wa, d as Xa, f as Ha, g as Ba, r as Ga, s as $a } from "./chunks/number.Cx2ncfJJ.js";
34
+ import { s as qa } from "./chunks/parse.Cu5nBDTb.js";
35
+ import { g as ja, a as Za } from "./chunks/responsive.BmBJSzC4.js";
36
+ import { b as Ka, n as ts, d as es, e as rs, f as as, y as ss, o as os, g as ns, h as is, l as ls, p as cs, z as us, x as fs, a as ms, c as hs, s as gs, w as ds, r as ps, t as Ds, q as Ts, v as Ss, i as ws, m as Ms, u as ys } from "./chunks/string.CfI2ejyR.js";
37
+ import { g as As, a as xs } from "./chunks/template.ClovJacp.js";
38
+ import { c as Is, f as Ls, a as Fs, g as Rs } from "./chunks/time.DYWuX2id.js";
38
39
  function n(t) {
39
- const e = t.getFullYear(), r = String(t.getMonth() + 1).padStart(2, "0"), s = String(t.getDate()).padStart(2, "0");
40
- return `${e}-${r}-${s}`;
40
+ const e = t.getFullYear(), r = String(t.getMonth() + 1).padStart(2, "0"), a = String(t.getDate()).padStart(2, "0");
41
+ return `${e}-${r}-${a}`;
41
42
  }
42
- function y(t) {
43
- const e = String(t.getHours()).padStart(2, "0"), r = String(t.getMinutes()).padStart(2, "0"), s = String(t.getSeconds()).padStart(2, "0");
44
- return `${e}:${r}:${s}`;
43
+ function A(t) {
44
+ const e = String(t.getHours()).padStart(2, "0"), r = String(t.getMinutes()).padStart(2, "0"), a = String(t.getSeconds()).padStart(2, "0");
45
+ return `${e}:${r}:${a}`;
45
46
  }
46
47
  function h(t, e) {
47
48
  return new Date(t.getFullYear(), t.getMonth(), t.getDate() + e);
@@ -60,11 +61,11 @@ function L(t) {
60
61
  const e = Math.floor(t.getMonth() / 3) * 3;
61
62
  return new Date(t.getFullYear(), e, 1);
62
63
  }
63
- function R(t) {
64
+ function F(t) {
64
65
  const e = Math.floor(t.getMonth() / 3) * 3;
65
66
  return new Date(t.getFullYear(), e + 3, 0);
66
67
  }
67
- function F(t) {
68
+ function R(t) {
68
69
  const e = t.getMonth() < 6 ? 0 : 6;
69
70
  return new Date(t.getFullYear(), e, 1);
70
71
  }
@@ -72,7 +73,7 @@ function O(t) {
72
73
  const e = t.getMonth() < 6 ? 0 : 6;
73
74
  return new Date(t.getFullYear(), e + 6, 0);
74
75
  }
75
- class Q {
76
+ class Z {
76
77
  /**
77
78
  * Computes a date range from a preset value.
78
79
  *
@@ -81,144 +82,144 @@ class Q {
81
82
  * @returns fromDate, toDate (YYYY-MM-DD) and fromTime, toTime (HH:mm:ss).
82
83
  */
83
84
  static getRange(e, r) {
84
- const s = n(r);
85
+ const a = n(r);
85
86
  switch (e) {
86
87
  case c.last30Minutes: {
87
- const a = new Date(r.getTime() - 18e5);
88
+ const s = new Date(r.getTime() - 18e5);
88
89
  return {
89
- fromDate: n(a),
90
- fromTime: y(a),
91
- toDate: s,
92
- toTime: y(r)
90
+ fromDate: n(s),
91
+ fromTime: A(s),
92
+ toDate: a,
93
+ toTime: A(r)
93
94
  };
94
95
  }
95
96
  case c.today:
96
97
  return {
97
- fromDate: s,
98
- fromTime: m,
99
- toDate: s,
98
+ fromDate: a,
99
+ fromTime: f,
100
+ toDate: a,
100
101
  toTime: u
101
102
  };
102
103
  case c.lastDay: {
103
- const a = n(h(r, -1));
104
+ const s = n(h(r, -1));
104
105
  return {
105
- fromDate: a,
106
- fromTime: m,
107
- toDate: a,
106
+ fromDate: s,
107
+ fromTime: f,
108
+ toDate: s,
108
109
  toTime: u
109
110
  };
110
111
  }
111
112
  case c.last2Days:
112
113
  return {
113
114
  fromDate: n(h(r, -1)),
114
- fromTime: m,
115
- toDate: s,
115
+ fromTime: f,
116
+ toDate: a,
116
117
  toTime: u
117
118
  };
118
119
  case c.last3Days:
119
120
  return {
120
121
  fromDate: n(h(r, -2)),
121
- fromTime: m,
122
- toDate: s,
122
+ fromTime: f,
123
+ toDate: a,
123
124
  toTime: u
124
125
  };
125
126
  case c.last30Days:
126
127
  return {
127
128
  fromDate: n(h(r, -29)),
128
- fromTime: m,
129
- toDate: s,
129
+ fromTime: f,
130
+ toDate: a,
130
131
  toTime: u
131
132
  };
132
133
  case c.next30Days:
133
134
  return {
134
- fromDate: s,
135
- fromTime: m,
135
+ fromDate: a,
136
+ fromTime: f,
136
137
  toDate: n(h(r, 30)),
137
138
  toTime: u
138
139
  };
139
140
  case c.thisWeek: {
140
- const a = x(r);
141
+ const s = x(r);
141
142
  return {
142
- fromDate: n(a),
143
- fromTime: m,
144
- toDate: n(h(a, 6)),
143
+ fromDate: n(s),
144
+ fromTime: f,
145
+ toDate: n(h(s, 6)),
145
146
  toTime: u
146
147
  };
147
148
  }
148
149
  case c.lastWeek: {
149
- const a = h(x(r), -7);
150
+ const s = h(x(r), -7);
150
151
  return {
151
- fromDate: n(a),
152
- fromTime: m,
153
- toDate: n(h(a, 6)),
152
+ fromDate: n(s),
153
+ fromTime: f,
154
+ toDate: n(h(s, 6)),
154
155
  toTime: u
155
156
  };
156
157
  }
157
158
  case c.thisMonth:
158
159
  return {
159
160
  fromDate: n(E(r)),
160
- fromTime: m,
161
+ fromTime: f,
161
162
  toDate: n(I(r)),
162
163
  toTime: u
163
164
  };
164
165
  case c.lastMonth: {
165
- const a = new Date(r.getFullYear(), r.getMonth() - 1, 1);
166
+ const s = new Date(r.getFullYear(), r.getMonth() - 1, 1);
166
167
  return {
167
- fromDate: n(E(a)),
168
- fromTime: m,
169
- toDate: n(I(a)),
168
+ fromDate: n(E(s)),
169
+ fromTime: f,
170
+ toDate: n(I(s)),
170
171
  toTime: u
171
172
  };
172
173
  }
173
174
  case c.thisQuarter:
174
175
  return {
175
176
  fromDate: n(L(r)),
176
- fromTime: m,
177
- toDate: n(R(r)),
177
+ fromTime: f,
178
+ toDate: n(F(r)),
178
179
  toTime: u
179
180
  };
180
181
  case c.lastQuarter: {
181
- const a = new Date(
182
+ const s = new Date(
182
183
  r.getFullYear(),
183
184
  r.getMonth() - 3,
184
185
  1
185
186
  );
186
187
  return {
187
- fromDate: n(L(a)),
188
- fromTime: m,
189
- toDate: n(R(a)),
188
+ fromDate: n(L(s)),
189
+ fromTime: f,
190
+ toDate: n(F(s)),
190
191
  toTime: u
191
192
  };
192
193
  }
193
194
  case c.thisHalfYear:
194
195
  return {
195
- fromDate: n(F(r)),
196
- fromTime: m,
196
+ fromDate: n(R(r)),
197
+ fromTime: f,
197
198
  toDate: n(O(r)),
198
199
  toTime: u
199
200
  };
200
201
  case c.lastHalfYear: {
201
- const a = new Date(r.getFullYear(), r.getMonth() - 6, 1);
202
+ const s = new Date(r.getFullYear(), r.getMonth() - 6, 1);
202
203
  return {
203
- fromDate: n(F(a)),
204
- fromTime: m,
205
- toDate: n(O(a)),
204
+ fromDate: n(R(s)),
205
+ fromTime: f,
206
+ toDate: n(O(s)),
206
207
  toTime: u
207
208
  };
208
209
  }
209
210
  case c.thisYear:
210
211
  return {
211
212
  fromDate: `${r.getFullYear()}-01-01`,
212
- fromTime: m,
213
+ fromTime: f,
213
214
  toDate: `${r.getFullYear()}-12-31`,
214
215
  toTime: u
215
216
  };
216
217
  case c.lastYear: {
217
- const a = r.getFullYear() - 1;
218
+ const s = r.getFullYear() - 1;
218
219
  return {
219
- fromDate: `${a}-01-01`,
220
- fromTime: m,
221
- toDate: `${a}-12-31`,
220
+ fromDate: `${s}-01-01`,
221
+ fromTime: f,
222
+ toDate: `${s}-12-31`,
222
223
  toTime: u
223
224
  };
224
225
  }
@@ -226,18 +227,18 @@ class Q {
226
227
  throw new Error(`Unsupported date range preset: ${e}`);
227
228
  }
228
229
  }
229
- function Z(t) {
230
+ function J(t) {
230
231
  const e = /* @__PURE__ */ new Date(`${t}T00:00:00Z`);
231
232
  if (Number.isNaN(e.getTime()))
232
233
  return 0;
233
234
  const r = new Date(
234
235
  Date.UTC(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate())
235
- ), s = r.getUTCDay() || 7;
236
- r.setUTCDate(r.getUTCDate() + 4 - s);
237
- const a = new Date(Date.UTC(r.getUTCFullYear(), 0, 1)), o = (r.getTime() - a.getTime()) / 864e5;
236
+ ), a = r.getUTCDay() || 7;
237
+ r.setUTCDate(r.getUTCDate() + 4 - a);
238
+ const s = new Date(Date.UTC(r.getUTCFullYear(), 0, 1)), o = (r.getTime() - s.getTime()) / 864e5;
238
239
  return Math.ceil((o + 1) / 7);
239
240
  }
240
- function j(t) {
241
+ function K(t) {
241
242
  if (!this.ownerDocument.defaultView?.Matrix3 || !t)
242
243
  return;
243
244
  const e = this.ownerDocument.defaultView?.location.origin;
@@ -249,7 +250,7 @@ function j(t) {
249
250
  e
250
251
  );
251
252
  }
252
- function J(t) {
253
+ function tt(t) {
253
254
  if (!this.ownerDocument.defaultView?.Matrix3 || !t)
254
255
  return;
255
256
  const e = this.ownerDocument.defaultView?.location.origin;
@@ -261,13 +262,13 @@ function J(t) {
261
262
  e
262
263
  );
263
264
  }
264
- function K(t, e = void 0) {
265
+ function et(t, e = void 0) {
265
266
  !this.ownerDocument.defaultView?.Matrix3 || !t || this.ownerDocument.defaultView?.open(
266
- k(t, "https://", !0),
267
+ N(t, "https://", !0),
267
268
  e ?? "_blank"
268
269
  );
269
270
  }
270
- function tt(t) {
271
+ function rt(t) {
271
272
  if (!this.ownerDocument.defaultView?.Matrix3 || !t)
272
273
  return;
273
274
  const e = this.ownerDocument.defaultView?.location.origin;
@@ -279,16 +280,16 @@ function tt(t) {
279
280
  e
280
281
  );
281
282
  }
282
- function et(t, e) {
283
+ function at(t, e) {
283
284
  if (!this.ownerDocument.defaultView?.Matrix3 || !t)
284
285
  return;
285
- const r = e || {}, s = this.ownerDocument.defaultView?.location.origin;
286
- s && this.ownerDocument?.defaultView?.postMessage(
286
+ const r = e || {}, a = this.ownerDocument.defaultView?.location.origin;
287
+ a && this.ownerDocument?.defaultView?.postMessage(
287
288
  { detail: { assetIds: t, formats: r }, type: "cx-cms5-download-assets" },
288
- s
289
+ a
289
290
  );
290
291
  }
291
- class rt {
292
+ class st {
292
293
  constructor(e) {
293
294
  this.currentZIndex = C(), (this.host = e).addController(this);
294
295
  }
@@ -300,7 +301,7 @@ class rt {
300
301
  this.currentZIndex = C();
301
302
  }
302
303
  }
303
- class at {
304
+ class ot {
304
305
  constructor(e, r = {}) {
305
306
  this.element = e, this.noChildDrag = r.noChildDrag ?? !1, this.dragThreshold = r.dragThreshold ?? 5, this.isDragging = !1, this.hasDragged = !1, this.startX = 0, this.startY = 0, this.lastClientX = 0, this.lastClientY = 0, this.onMouseDown = this.onMouseDown.bind(this), this.onMouseMove = this.onMouseMove.bind(this), this.onMouseUp = this.onMouseUp.bind(this), this.onClick = this.onClick.bind(this), this.attach();
306
307
  }
@@ -316,8 +317,8 @@ class at {
316
317
  onMouseMove(e) {
317
318
  if (!this.isDragging)
318
319
  return;
319
- const r = e.clientX - this.lastClientX, s = e.clientY - this.lastClientY;
320
- !this.hasDragged && (Math.abs(e.clientX - this.startX) > this.dragThreshold || Math.abs(e.clientY - this.startY) > this.dragThreshold) && (this.hasDragged = !0), this.element.scrollLeft -= r, this.element.scrollTop -= s, this.lastClientX = e.clientX, this.lastClientY = e.clientY;
320
+ const r = e.clientX - this.lastClientX, a = e.clientY - this.lastClientY;
321
+ !this.hasDragged && (Math.abs(e.clientX - this.startX) > this.dragThreshold || Math.abs(e.clientY - this.startY) > this.dragThreshold) && (this.hasDragged = !0), this.element.scrollLeft -= r, this.element.scrollTop -= a, this.lastClientX = e.clientX, this.lastClientY = e.clientY;
321
322
  }
322
323
  onMouseUp() {
323
324
  this.isDragging = !1;
@@ -326,94 +327,109 @@ class at {
326
327
  this.hasDragged && (e.stopImmediatePropagation(), e.preventDefault());
327
328
  }
328
329
  }
329
- const st = (t) => t.ctrlKey || t.metaKey;
330
- function b(t) {
330
+ const nt = (t) => t.ctrlKey || t.metaKey;
331
+ function v(t) {
331
332
  return t.replaceAll(" ", "_");
332
333
  }
333
- function ot(t) {
334
- return t.value ?? b(t.typeface);
334
+ function it(t) {
335
+ return t.value ?? v(t.typeface);
335
336
  }
336
- function nt(t) {
337
+ function lt(t) {
337
338
  const e = [
338
339
  t.value || t.name,
339
340
  t.fontStyle,
340
341
  t.fontWeight
341
342
  ].filter((r) => r != null && r !== "").join("_");
342
- return b(e);
343
+ return v(e);
343
344
  }
344
- function v(t) {
345
+ function b(t) {
345
346
  return t.length >= 2 && (t.startsWith("'") && t.endsWith("'") || t.startsWith('"') && t.endsWith('"'));
346
347
  }
347
- function N(t) {
348
- return v(t) || !t.includes(" ") ? t : `'${t.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'`;
348
+ function Y(t) {
349
+ return b(t) || !t.includes(" ") ? t : `'${t.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'`;
349
350
  }
350
- function it(t) {
351
- return v(t) ? t.slice(1, -1).replace(/\\(.)/g, "$1") : t;
351
+ function P(t) {
352
+ return b(t) ? t.slice(1, -1).replace(/\\(.)/g, "$1") : t;
352
353
  }
353
354
  function V(t, e) {
354
355
  if (!t?.document)
355
356
  return !1;
356
- const r = "mmmmmmmmmmwwwwwww", s = "32px", o = t.document.createElement("canvas").getContext("2d"), i = (f) => o ? (o.font = `${s} ${N(f)}, monospace`, o.measureText(r).width) : 0, l = i("monospace");
357
+ const r = "mmmmmmmmmmwwwwwww", a = "32px", o = t.document.createElement("canvas").getContext("2d"), i = (m) => o ? (o.font = `${a} ${Y(m)}, monospace`, o.measureText(r).width) : 0, l = i("monospace");
357
358
  return i(e) !== l;
358
359
  }
359
- function lt(t, e) {
360
+ function ct(t, e) {
360
361
  if (!t?.document?.fonts)
361
362
  return !1;
362
363
  let r = !1;
363
- return t.document.fonts.forEach((s) => {
364
- s.family.replace(/['"]/g, "").toLowerCase() === e.toLowerCase() && (r = !0);
364
+ return t.document.fonts.forEach((a) => {
365
+ a.family.replace(/['"]/g, "").toLowerCase() === e.toLowerCase() && (r = !0);
365
366
  }), r ? !0 : V(t, e);
366
367
  }
367
- function Y(t) {
368
- const e = /\bitalic\b/i, r = /\b(semi[-\s]?condensed|condensed)\b/i, s = (a) => {
369
- const o = a.fontFamily.toLowerCase(), i = a.fontStyle.toLowerCase(), l = e.test(i), p = r.test(o);
370
- let f = 0;
371
- return l && (f = 1), p && (f = l ? 3 : 2), {
372
- family: a.fontFamily,
373
- styleRank: f,
374
- weight: Number(a.fontWeight)
368
+ function _(t) {
369
+ const e = /\bitalic\b/i, r = /\b(semi[-\s]?condensed|condensed)\b/i, a = (s) => {
370
+ const o = s.fontFamily.toLowerCase(), i = s.fontStyle.toLowerCase(), l = e.test(i), p = r.test(o);
371
+ let m = 0;
372
+ return l && (m = 1), p && (m = l ? 3 : 2), {
373
+ family: s.fontFamily,
374
+ styleRank: m,
375
+ weight: Number(s.fontWeight)
375
376
  };
376
377
  };
377
- return [...t].sort((a, o) => {
378
- const i = s(a), l = s(o);
378
+ return [...t].sort((s, o) => {
379
+ const i = a(s), l = a(o);
379
380
  return i.weight !== l.weight ? i.weight - l.weight : i.styleRank !== l.styleRank ? i.styleRank - l.styleRank : i.family.localeCompare(l.family);
380
381
  });
381
382
  }
382
- function ct(t, e, r = [300, 400, 500, 700, 900], s = ["normal", "italic"]) {
383
- const a = [];
383
+ function ut(t, e, r = [300, 400, 500, 700, 900], a = ["normal", "italic"]) {
384
+ const s = [];
384
385
  if (V(t, e))
385
386
  for (const o of r)
386
- for (const i of s)
387
- a.push({
387
+ for (const i of a)
388
+ s.push({
388
389
  fontFamily: e,
389
390
  fontStyle: i,
390
391
  fontWeight: o.toString(),
391
392
  src: ""
392
393
  });
393
- return Y(a);
394
+ return _(s);
395
+ }
396
+ function W(t, e) {
397
+ const r = P(e);
398
+ return t.find((a) => a.families.length > 0 && (a.typeface === r || a.value === r || a.families.some((s) => s.value === r)));
399
+ }
400
+ function ft(t, e) {
401
+ const r = W(t, e);
402
+ return r ? _(
403
+ r.families.map((a) => ({
404
+ fontFamily: a.value ?? r.typeface,
405
+ fontStyle: a.fontStyle || "normal",
406
+ fontWeight: String(a.fontWeight ?? 400),
407
+ src: ""
408
+ }))
409
+ ) : [];
394
410
  }
395
- function ut(t) {
411
+ function mt(t) {
396
412
  const e = new FormData(t), r = {};
397
- return e.forEach((s, a) => {
398
- if (Reflect.has(r, a)) {
399
- const o = r[a];
400
- Array.isArray(o) ? o.push(s) : r[a] = [r[a], s];
413
+ return e.forEach((a, s) => {
414
+ if (Reflect.has(r, s)) {
415
+ const o = r[s];
416
+ Array.isArray(o) ? o.push(a) : r[s] = [r[s], a];
401
417
  } else
402
- r[a] = s;
418
+ r[s] = a;
403
419
  }), r;
404
420
  }
405
- function P(t) {
406
- const r = [...t.getRootNode().querySelectorAll("*")], s = [...t.elements], a = U.get(t), o = a ? Array.from(a) : [];
407
- return [...s, ...o].sort(
421
+ function X(t) {
422
+ const r = [...t.getRootNode().querySelectorAll("*")], a = [...t.elements], s = U.get(t), o = s ? Array.from(s) : [];
423
+ return [...a, ...o].sort(
408
424
  (i, l) => r.indexOf(i) < r.indexOf(l) ? -1 : r.indexOf(i) > r.indexOf(l) ? 1 : 0
409
425
  );
410
426
  }
411
- function mt(t) {
412
- return P(t).some(
427
+ function ht(t) {
428
+ return X(t).some(
413
429
  (r) => r.hasAttribute("data-user-valid") || r.hasAttribute("data-user-invalid")
414
430
  );
415
431
  }
416
- class ft {
432
+ class gt {
417
433
  constructor(e = null) {
418
434
  this.history = e !== null ? [e] : [], this.redoStack = [];
419
435
  }
@@ -450,20 +466,20 @@ class ft {
450
466
  return [...this.history];
451
467
  }
452
468
  }
453
- var W = /* @__PURE__ */ ((t) => (t.ArrowDown = "ArrowDown", t.ArrowLeft = "ArrowLeft", t.ArrowRight = "ArrowRight", t.ArrowUp = "ArrowUp", t.Enter = "Enter", t.Escape = "Escape", t.Tab = "Tab", t))(W || {});
454
- function ht(t, e) {
455
- const r = {}, s = new Set(e);
456
- return Object.keys(t).forEach((a) => {
457
- s.has(a) || (r[a] = t[a]);
469
+ var H = /* @__PURE__ */ ((t) => (t.ArrowDown = "ArrowDown", t.ArrowLeft = "ArrowLeft", t.ArrowRight = "ArrowRight", t.ArrowUp = "ArrowUp", t.Enter = "Enter", t.Escape = "Escape", t.Tab = "Tab", t))(H || {});
470
+ function dt(t, e) {
471
+ const r = {}, a = new Set(e);
472
+ return Object.keys(t).forEach((s) => {
473
+ a.has(s) || (r[s] = t[s]);
458
474
  }), r;
459
475
  }
460
- function gt(t, e) {
476
+ function pt(t, e) {
461
477
  const r = {};
462
- return e.forEach((s) => {
463
- s in t && (r[s] = t[s]);
478
+ return e.forEach((a) => {
479
+ a in t && (r[a] = t[a]);
464
480
  }), r;
465
481
  }
466
- function dt(t) {
482
+ function Dt(t) {
467
483
  if (!t)
468
484
  return {};
469
485
  let e;
@@ -474,7 +490,7 @@ function dt(t) {
474
490
  }
475
491
  return typeof e != "object" ? {} : e;
476
492
  }
477
- function pt(t, e = !0) {
493
+ function Tt(t, e = !0) {
478
494
  if (!t)
479
495
  return [];
480
496
  let r;
@@ -483,72 +499,72 @@ function pt(t, e = !0) {
483
499
  } catch {
484
500
  return [];
485
501
  }
486
- return Array.isArray(r) ? e ? r.filter((s) => typeof s == "string") : r : [];
502
+ return Array.isArray(r) ? e ? r.filter((a) => typeof a == "string") : r : [];
487
503
  }
488
- function Dt(t, e) {
504
+ function St(t, e) {
489
505
  return typeof Storage < "u" && localStorage.getItem(t) !== null ? localStorage.getItem(t) : e;
490
506
  }
491
- function Tt(t, e) {
507
+ function wt(t, e) {
492
508
  typeof Storage < "u" && localStorage.setItem(t, e.toString());
493
509
  }
494
- const X = 10;
495
- function St(t, e) {
496
- let r = 0, s = t.length;
497
- for (; r < s; ) {
498
- const a = Math.floor((r + s) / 2);
499
- t[a].time < e.time ? r = a + 1 : s = a;
510
+ const B = 10;
511
+ function Mt(t, e) {
512
+ let r = 0, a = t.length;
513
+ for (; r < a; ) {
514
+ const s = Math.floor((r + a) / 2);
515
+ t[s].time < e.time ? r = s + 1 : a = s;
500
516
  }
501
517
  t.splice(r, 0, e);
502
518
  }
503
- function H(t, e, r) {
519
+ function G(t, e, r) {
504
520
  return t.find(
505
- (s) => s.col === e && s.row === r
521
+ (a) => a.col === e && a.row === r
506
522
  ) ?? null;
507
523
  }
508
- function B(t, e, r) {
509
- return new Promise((s) => {
524
+ function $(t, e, r) {
525
+ return new Promise((a) => {
510
526
  if (e > 0 && Math.abs(t.currentTime - e) < 1e-3) {
511
- s();
527
+ a();
512
528
  return;
513
529
  }
514
530
  if (e === 0) {
515
- const a = () => {
516
- t.removeEventListener("seeked", a);
531
+ const s = () => {
532
+ t.removeEventListener("seeked", s);
517
533
  const o = () => {
518
- t.removeEventListener("seeked", o), s();
534
+ t.removeEventListener("seeked", o), a();
519
535
  };
520
536
  t.addEventListener("seeked", o), t.currentTime = 0;
521
537
  };
522
- t.addEventListener("seeked", a), t.currentTime = r;
538
+ t.addEventListener("seeked", s), t.currentTime = r;
523
539
  } else {
524
- const a = () => {
525
- t.removeEventListener("seeked", a), s();
540
+ const s = () => {
541
+ t.removeEventListener("seeked", s), a();
526
542
  };
527
- t.addEventListener("seeked", a), t.currentTime = e;
543
+ t.addEventListener("seeked", s), t.currentTime = e;
528
544
  }
529
545
  });
530
546
  }
531
- async function* wt({
547
+ async function* yt({
532
548
  cache: t,
533
549
  canvas: e,
534
550
  duration: r,
535
- maxInterval: s,
536
- src: a,
551
+ maxInterval: a,
552
+ src: s,
537
553
  video: o
538
554
  }) {
539
555
  if (!e)
540
556
  throw new Error("Canvas is required");
541
557
  if (!o)
542
558
  throw new Error("Video is required");
543
- const { columns: i, frameHeight: l, frameWidth: p, rows: f, spriteCtx: _ } = e;
559
+ const { columns: i, frameHeight: l, frameWidth: p, rows: m, spriteCtx: k } = e;
544
560
  try {
545
- for (let g = 0; g < f; g++)
561
+ for (let g = 0; g < m; g++)
546
562
  for (let d = 0; d < i; d++) {
547
- const T = g * i + d, D = T * s;
563
+ const T = g * i + d, D = T * a;
548
564
  if (D >= r)
549
565
  continue;
550
- const S = d * p, w = g * l, M = H(t[a] ?? [], d, g), A = d === i - 1 && g === f - 1 || D + s >= r;
551
- M ? yield { ...M, isLastFrame: A } : (await B(o, D, s), _.drawImage(
566
+ const S = d * p, w = g * l, M = G(t[s] ?? [], d, g), y = d === i - 1 && g === m - 1 || D + a >= r;
567
+ M ? yield { ...M, isLastFrame: y } : (await $(o, D, a), k.drawImage(
552
568
  o,
553
569
  S,
554
570
  w,
@@ -560,10 +576,10 @@ async function* wt({
560
576
  frameHeight: l,
561
577
  frameWidth: p,
562
578
  index: T,
563
- isLastFrame: A,
579
+ isLastFrame: y,
564
580
  row: g,
565
- rows: f,
566
- time: Number(D.toFixed(X)),
581
+ rows: m,
582
+ time: Number(D.toFixed(B)),
567
583
  x: S,
568
584
  y: w
569
585
  }), await new Promise(requestAnimationFrame);
@@ -571,236 +587,240 @@ async function* wt({
571
587
  } catch {
572
588
  }
573
589
  }
574
- function Mt({
590
+ function Ct({
575
591
  duration: t,
576
592
  frameWidth: e,
577
593
  playbackSpeed: r,
578
- scale: s
594
+ scale: a
579
595
  }) {
580
- let a = e * r / s;
581
- return a > t && (a = t / 2), a;
596
+ let s = e * r / a;
597
+ return s > t && (s = t / 2), s;
582
598
  }
583
599
  export {
584
- Zr as AUTO_FALLBACK_FORMAT,
585
- jr as AUTO_FORMAT_EXTENSION,
586
- Jr as AUTO_ORIGINAL_FORMAT_MAX_BYTES,
600
+ Jr as AUTO_FALLBACK_FORMAT,
601
+ Kr as AUTO_FORMAT_EXTENSION,
602
+ ta as AUTO_ORIGINAL_FORMAT_MAX_BYTES,
587
603
  le as CMYK_VALIDATION_REGEX,
588
- _r as CalendarGrid,
604
+ Nr as CalendarGrid,
589
605
  ce as ColorType,
590
- rt as CortexPopupController,
591
- Q as DateRangePresets,
592
- at as DragScroll,
593
- Be as FormControlController,
606
+ st as CortexPopupController,
607
+ Z as DateRangePresets,
608
+ ot as DragScroll,
609
+ $e as FormControlController,
594
610
  ue as HEX_ALPHA_VALIDATION_REGEX,
595
- me as HEX_VALIDATION_REGEX,
596
- yr as HasSlotController,
597
- ft as HistoryManager,
598
- W as KeyboardKey,
599
- Ze as LocalizeController,
600
- fa as MIN_GRADIENT_STOPS,
601
- Kr as ORIGINAL_FORMAT,
602
- X as PRECISION,
603
- yt as RELATIVE_URL_REGEX,
604
- fe as RGB_VALIDATION_REGEX,
605
- ta as SRCSET_WIDTH_LADDER,
606
- xt as URL_DOMAIN_VALIDATION_REGEX,
607
- Et as URL_INTRANET_DOMAIN_VALIDATION_REGEX,
608
- It as URL_PROTOCOL_VALIDATION_REGEX,
609
- Lt as URL_VALIDATION_REGEX,
611
+ fe as HEX_VALIDATION_REGEX,
612
+ Er as HasSlotController,
613
+ gt as HistoryManager,
614
+ H as KeyboardKey,
615
+ Je as LocalizeController,
616
+ da as MIN_GRADIENT_STOPS,
617
+ ea as ORIGINAL_FORMAT,
618
+ B as PRECISION,
619
+ Et as RELATIVE_URL_REGEX,
620
+ me as RGB_VALIDATION_REGEX,
621
+ ra as SRCSET_WIDTH_LADDER,
622
+ It as URL_DOMAIN_VALIDATION_REGEX,
623
+ Lt as URL_INTRANET_DOMAIN_VALIDATION_REGEX,
624
+ Ft as URL_PROTOCOL_VALIDATION_REGEX,
625
+ Rt as URL_VALIDATION_REGEX,
610
626
  Ae as activeElements,
611
- Ur as addMonths,
612
- Ut as adjustRelativeValues,
613
- xe as animateTo,
614
- k as appendProtocol,
615
- Rt as appendQueryParam,
616
- ea as applyTransformationsToUrl,
617
- ra as applyWidthToAssetUrl,
618
- aa as buildAssetSrcset,
619
- sa as buildSizesFromDisplayWidth,
620
- oa as buildTransformationString,
621
- ba as buildWaveformPath,
622
- Aa as calculateAspectRatioFit,
623
- Ke as clamp,
624
- Ca as cleanImageFileName,
625
- Ms as clearZeroDurationParts,
627
+ Yr as addMonths,
628
+ Yt as adjustRelativeValues,
629
+ Ie as animateTo,
630
+ N as appendProtocol,
631
+ Ot as appendQueryParam,
632
+ aa as applyTransformationsToUrl,
633
+ sa as applyWidthToAssetUrl,
634
+ oa as buildAssetSrcset,
635
+ na as buildSizesFromDisplayWidth,
636
+ ia as buildTransformationString,
637
+ _a as buildWaveformPath,
638
+ xa as calculateAspectRatioFit,
639
+ er as clamp,
640
+ Ea as cleanImageFileName,
641
+ Is as clearZeroDurationParts,
626
642
  he as convertColor,
627
- _a as convertDataUnits,
628
- ka as convertDurationToMilliseconds,
629
- Ua as convertPixelsToAspectRatio,
630
- ya as convertSrcToBlob,
631
- ha as createStopId,
632
- xa as cropImage,
633
- cr as cssValueToPx,
634
- Ve as customElement,
635
- Ge as customErrorValidityState,
636
- ke as debounce,
637
- Ne as defaultValue,
638
- et as downloadAsset,
639
- Pe as drag,
640
- za as emptyToSpace,
641
- qa as escapeXML,
643
+ Ua as convertDataUnits,
644
+ Ya as convertDurationToMilliseconds,
645
+ Pa as convertPixelsToAspectRatio,
646
+ Ia as convertSrcToBlob,
647
+ pa as createStopId,
648
+ La as cropImage,
649
+ fr as cssValueToPx,
650
+ ke as customElement,
651
+ ze as customErrorValidityState,
652
+ Ue as debounce,
653
+ Pe as defaultValue,
654
+ at as downloadAsset,
655
+ Xe as drag,
656
+ Ka as emptyToSpace,
657
+ ts as escapeXML,
642
658
  ge as extractColor,
643
- Qa as extractExtension,
644
- wt as extractFrames,
645
- Za as extractRootData,
646
- Na as extractValueAndUnit,
647
- va as extractWaveformPeaks,
648
- na as fetchCortexApi,
649
- jt as findAncestorWithBuggyStyle,
659
+ es as extractExtension,
660
+ yt as extractFrames,
661
+ rs as extractRootData,
662
+ Wa as extractValueAndUnit,
663
+ ka as extractWaveformPeaks,
664
+ la as fetchCortexApi,
665
+ Zt as findAncestorWithBuggyStyle,
650
666
  Jt as findContainingBlock,
651
667
  Kt as findCuttingAncestor,
652
- H as findFrameByColAndRow,
653
- Nt as findIndexByProp,
654
- Xe as focusWhenVisible,
668
+ G as findFrameByColAndRow,
669
+ Pt as findIndexByProp,
670
+ Be as focusWhenVisible,
655
671
  U as formCollections,
656
- Ya as formatAspectRatioString,
657
- As as formatDurationPartsManually,
658
- Nr as formatIsoToDisplay,
659
- Yr as formatMonthYearLabel,
660
- Pa as formatNumberWithGrouping,
661
- ja as formatSecondsToTime,
662
- Ja as formatTimeToSeconds,
663
- Cs as formatWithIntlDurationFormat,
664
- Wa as gcd,
665
- ur as getActiveElement,
666
- rr as getActiveModals,
667
- $e as getAssociatedForm,
668
- mr as getAttributes,
669
- Ka as getAttributesString,
670
- Yt as getBreakpointsFromCSS,
671
- ct as getBrowserFontVariants,
672
- de as getColorType,
673
- Ea as getContainedImageSize,
674
- fr as getCortexPopupLayer,
672
+ Xa as formatAspectRatioString,
673
+ de as formatColorCodeSeparator,
674
+ Ls as formatDurationPartsManually,
675
+ pe as formatHexCode,
676
+ Pr as formatIsoToDisplay,
677
+ Wr as formatMonthYearLabel,
678
+ Ha as formatNumberWithGrouping,
679
+ as as formatSecondsToTime,
680
+ ss as formatTimeToSeconds,
681
+ Fs as formatWithIntlDurationFormat,
682
+ Ba as gcd,
683
+ mr as getActiveElement,
684
+ sr as getActiveModals,
685
+ qe as getAssociatedForm,
686
+ hr as getAttributes,
687
+ os as getAttributesString,
688
+ ja as getBreakpointsFromCSS,
689
+ ut as getBrowserFontVariants,
690
+ De as getColorType,
691
+ Fa as getContainedImageSize,
692
+ gr as getCortexPopupLayer,
675
693
  C as getCurrentZIndex,
676
- Pr as getDateMask,
677
- Ce as getDeepestActiveElement,
678
- Pt as getDeviceType,
679
- ys as getDurationPartsByUnitsFormat,
680
- hr as getElementFromHTMLString,
681
- gr as getElementFromTemplate,
682
- Wr as getFirstDayOfWeek,
683
- nt as getFontFamilyOptionValue,
684
- P as getFormControls,
685
- Ts as getHighlightedTitle,
686
- Ss as getHighlightedTitleHtml,
687
- xr as getInnerHTML,
688
- Mt as getInterval,
689
- pe as getLightDarkCssString,
690
- Ia as getNaturalWidthHeight,
691
- dr as getNeededPaddingForBoxShadow,
694
+ Xr as getDateMask,
695
+ xe as getDeepestActiveElement,
696
+ Za as getDeviceType,
697
+ Rs as getDurationPartsByUnitsFormat,
698
+ dr as getElementFromHTMLString,
699
+ pr as getElementFromTemplate,
700
+ Hr as getFirstDayOfWeek,
701
+ lt as getFontFamilyOptionValue,
702
+ ft as getFontFamilyVariants,
703
+ X as getFormControls,
704
+ As as getHighlightedTitle,
705
+ xs as getHighlightedTitleHtml,
706
+ Ir as getInnerHTML,
707
+ Ct as getInterval,
708
+ Te as getLightDarkCssString,
709
+ Ra as getNaturalWidthHeight,
710
+ Dr as getNeededPaddingForBoxShadow,
692
711
  te as getNextAncestor,
693
- sr as getOffset,
694
- pr as getRelativeClickPercentage,
695
- ts as getRootIDString,
696
- Lr as getTabbableBoundary,
697
- Rr as getTabbableElements,
698
- Er as getTextContent,
699
- Xr as getTodayIsoDate,
700
- ot as getTypefaceOptionValue,
712
+ nr as getOffset,
713
+ Tr as getRelativeClickPercentage,
714
+ ns as getRootIDString,
715
+ Rr as getTabbableBoundary,
716
+ Or as getTabbableElements,
717
+ Lr as getTextContent,
718
+ Br as getTodayIsoDate,
719
+ it as getTypefaceOptionValue,
701
720
  Wt as groupBy,
702
- ia as hasTransformSegment,
703
- es as htmlToPlainText,
721
+ ca as hasTransformSegment,
722
+ is as htmlToPlainText,
704
723
  Xt as insertAtIndex,
705
- St as insertFrameToCache,
724
+ Mt as insertFrameToCache,
706
725
  Ht as insertMultipleAtIndex,
707
- ga as interpolateStopColor,
726
+ Da as interpolateStopColor,
708
727
  ee as isChrome,
709
- Or as isCortexAdobePlugin,
710
- Dr as isDomElement,
711
- Tr as isElementInHorizontalView,
712
- Ft as isExpiredAssetUrl,
728
+ br as isCortexAdobePlugin,
729
+ Sr as isDomElement,
730
+ wr as isElementInHorizontalView,
731
+ vt as isExpiredAssetUrl,
713
732
  re as isFirefox,
714
- lt as isFontFamilyAvailable,
715
- mt as isFormInteracted,
716
- rs as isGalleryItemCardType,
717
- da as isGradientString,
733
+ ct as isFontFamilyAvailable,
734
+ ht as isFormInteracted,
735
+ ls as isGalleryItemCardType,
736
+ Ta as isGradientString,
718
737
  ae as isIOS,
719
- Sr as isInElement,
720
- st as isModKey,
738
+ Mr as isInElement,
739
+ nt as isModKey,
721
740
  se as isSafari,
722
- La as isSaveSrcValid,
723
- Ot as isValidDomainOrIntranetUrl,
724
- Hr as isValidIsoDate,
725
- bt as isValidUrl,
726
- Br as isoToDate,
727
- Z as isoWeekNumber,
728
- wr as loadScript,
729
- or as lockBodyScrolling,
730
- De as luminanceTextColor,
741
+ Oa as isSaveSrcValid,
742
+ bt as isValidDomainOrIntranetUrl,
743
+ Gr as isValidIsoDate,
744
+ Vt as isValidUrl,
745
+ $r as isoToDate,
746
+ J as isoWeekNumber,
747
+ yr as loadScript,
748
+ ir as lockBodyScrolling,
749
+ Se as luminanceTextColor,
731
750
  Bt as moveMultipleToIndex,
732
751
  Gt as moveToIndex,
733
752
  $t as multiSelectTo,
734
- pa as normalizeAngle,
735
- Gr as normalizeToIsoDate,
736
- ht as omit,
737
- j as openAssetOverview,
738
- J as openFolderOverview,
739
- K as openLink,
740
- as as padPath,
741
- ss as parseBooleanString,
742
- Te as parseBorder,
743
- $r as parseDisplayToIso,
744
- Ee as parseDuration,
745
- la as parseFileSizeToBytes,
746
- Da as parseGradient,
747
- zr as parseIsoDate,
748
- dt as parseJsonString,
749
- Se as parseLightDark,
750
- pt as parseListString,
751
- we as parseShadow,
752
- gt as pick,
753
+ Sa as normalizeAngle,
754
+ zr as normalizeToIsoDate,
755
+ dt as omit,
756
+ K as openAssetOverview,
757
+ tt as openFolderOverview,
758
+ et as openLink,
759
+ cs as padPath,
760
+ us as parseBooleanString,
761
+ we as parseBorder,
762
+ qr as parseDisplayToIso,
763
+ Le as parseDuration,
764
+ ua as parseFileSizeToBytes,
765
+ wa as parseGradient,
766
+ Qr as parseIsoDate,
767
+ Dt as parseJsonString,
768
+ Me as parseLightDark,
769
+ Tt as parseListString,
770
+ ye as parseShadow,
771
+ fa as parseTransformations,
772
+ pt as pick,
753
773
  oe as popoverSupported,
754
- Ie as prefersReducedMotion,
755
- tr as quantizeLargestRemainder,
756
- N as quoteFontFamily,
757
- Dt as readLocalStorageValue,
758
- Mr as readSearchConsistency,
759
- os as reducePathToDirectChild,
760
- je as registerTranslation,
774
+ Fe as prefersReducedMotion,
775
+ rr as quantizeLargestRemainder,
776
+ Y as quoteFontFamily,
777
+ St as readLocalStorageValue,
778
+ Cr as readSearchConsistency,
779
+ fs as reducePathToDirectChild,
780
+ Ke as registerTranslation,
761
781
  zt as removeAtIndex,
762
782
  qt as removeMultipleAtIndex,
763
- Ra as resizeImage,
764
- ca as resolveAutoFormat,
765
- ua as resolveAutoMaxWidth,
766
- vt as resolveSpaceUrl,
767
- Xa as rotateBox,
768
- Fa as rotateImage,
769
- ns as safeExtension,
770
- is as safeString,
771
- ls as sanitizeHTML,
772
- Ha as sanitizeRotation,
773
- nr as scrollIntoView,
774
- ut as serialize,
775
- Ta as serializeGradient,
776
- tt as shareAsset,
777
- Le as shimKeyframesHeightAuto,
783
+ va as resizeImage,
784
+ ma as resolveAutoFormat,
785
+ ha as resolveAutoMaxWidth,
786
+ _t as resolveSpaceUrl,
787
+ Ga as rotateBox,
788
+ ba as rotateImage,
789
+ ms as safeExtension,
790
+ hs as safeString,
791
+ gs as sanitizeHTML,
792
+ $a as sanitizeRotation,
793
+ lr as scrollIntoView,
794
+ mt as serialize,
795
+ Ma as serializeGradient,
796
+ rt as shareAsset,
797
+ Re as shimKeyframesHeightAuto,
778
798
  Ar as sortByTopPosition,
779
- Sa as sortStops,
780
- Y as sortTypefaceVariants,
781
- Ga as splitBoxValues,
782
- cs as splitCamelCaseFormatted,
783
- wa as splitTopLevel,
784
- Re as stopAnimations,
799
+ ya as sortStops,
800
+ _ as sortTypefaceVariants,
801
+ qa as splitBoxValues,
802
+ ds as splitCamelCaseFormatted,
803
+ Ca as splitTopLevel,
804
+ Oe as stopAnimations,
785
805
  ne as supportHLS,
786
806
  V as testFontAvailability,
787
- be as timecodeConverter,
788
- us as toCamelCase,
789
- qr as toIsoDate,
790
- ms as toKebabCase,
791
- fs as toPascalCase,
792
- Vt as toRelativeUrl,
793
- hs as toTitleCase,
794
- _t as toUrlPathKey,
807
+ Ve as timecodeConverter,
808
+ ps as toCamelCase,
809
+ jr as toIsoDate,
810
+ Ds as toKebabCase,
811
+ Ts as toPascalCase,
812
+ kt as toRelativeUrl,
813
+ Ss as toTitleCase,
814
+ Nt as toUrlPathKey,
795
815
  Qt as toast,
796
- gs as truncateTextMiddle,
797
- ds as unescapeXML,
798
- ir as unlockBodyScrolling,
799
- it as unquoteFontFamily,
800
- ps as upperFirst,
801
- ze as validValidityState,
802
- qe as valueMissingValidityState,
803
- Fe as waitForEvent,
804
- vr as watch,
805
- Tt as writeLocalStorageValue
816
+ ws as truncateTextMiddle,
817
+ Ms as unescapeXML,
818
+ cr as unlockBodyScrolling,
819
+ P as unquoteFontFamily,
820
+ ys as upperFirst,
821
+ Qe as validValidityState,
822
+ je as valueMissingValidityState,
823
+ ve as waitForEvent,
824
+ _r as watch,
825
+ wt as writeLocalStorageValue
806
826
  };