| 14759 | } |
| 14760 | } |
| 14761 | function Qv(t) { |
| 14762 | return !1 === t.aria |
| 14763 | ? { [Pv]: !0 } |
| 14764 | : Vv[t.role] |
| 14765 | ? null |
| 14766 | : Xv[t.role] |
| 14767 | ? (function (t, e) { |
| 14768 | try { |
| 14769 | const n = t.items[0], |
| 14770 | r = e.caption || (() => ""); |
| 14771 | return Gv(e.role || Yv, e.desc, n.description || r(n)); |
| 14772 | } catch (t) { |
| 14773 | return null; |
| 14774 | } |
| 14775 | })(t, Xv[t.role]) |
| 14776 | : (function (t) { |
| 14777 | const e = t.marktype, |
| 14778 | n = |
| 14779 | "group" === e || |
| 14780 | "text" === e || |
| 14781 | t.items.some((t) => null != t.description && !1 !== t.aria); |
| 14782 | return Gv(n ? Hv : Yv, `${e} mark container`, t.description); |
| 14783 | })(t); |
| 14784 | } |
| 14785 | function Kv(t) { |
| 14786 | return V(t.text).join(" "); |
| 14787 | } |