| 4576 | var h, y; |
| 4577 | } |
| 4578 | function fl(e, t, n) { |
| 4579 | const i = bn(e), |
| 4580 | r = En("orient", i, n); |
| 4581 | if ( |
| 4582 | ((i.orient = (function (e, t, n) { |
| 4583 | switch (e) { |
| 4584 | case Br: |
| 4585 | case Qr: |
| 4586 | case Jr: |
| 4587 | case Gr: |
| 4588 | case Vr: |
| 4589 | case Wr: |
| 4590 | return; |
| 4591 | } |
| 4592 | const { x: i, y: r, x2: o, y2: a } = t; |
| 4593 | switch (e) { |
| 4594 | case Ur: |
| 4595 | if (Zo(i) && (pn(i.bin) || (Zo(r) && r.aggregate && !i.aggregate))) |
| 4596 | return "vertical"; |
| 4597 | if (Zo(r) && (pn(r.bin) || (Zo(i) && i.aggregate && !r.aggregate))) |
| 4598 | return "horizontal"; |
| 4599 | if (a || o) { |
| 4600 | if (n) return n; |
| 4601 | if (!o) |
| 4602 | return ((Zo(i) && i.type === sr && !mn(i.bin)) || ra(i)) && |
| 4603 | Zo(r) && |
| 4604 | pn(r.bin) |
| 4605 | ? "horizontal" |
| 4606 | : "vertical"; |
| 4607 | if (!a) |
| 4608 | return ((Zo(r) && r.type === sr && !mn(r.bin)) || ra(r)) && |
| 4609 | Zo(i) && |
| 4610 | pn(i.bin) |
| 4611 | ? "vertical" |
| 4612 | : "horizontal"; |
| 4613 | } |
| 4614 | case Hr: |
| 4615 | if (o && (!Zo(i) || !pn(i.bin)) && a && (!Zo(r) || !pn(r.bin))) |
| 4616 | return; |
| 4617 | case qr: |
| 4618 | if (a) return Zo(r) && pn(r.bin) ? "horizontal" : "vertical"; |
| 4619 | if (o) return Zo(i) && pn(i.bin) ? "vertical" : "horizontal"; |
| 4620 | if (e === Hr) { |
| 4621 | if (i && !r) return "vertical"; |
| 4622 | if (r && !i) return "horizontal"; |
| 4623 | } |
| 4624 | case Ir: |
| 4625 | case Yr: { |
| 4626 | const t = ia(i), |
| 4627 | o = ia(r); |
| 4628 | if (n) return n; |
| 4629 | if (t && !o) return "tick" !== e ? "horizontal" : "vertical"; |
| 4630 | if (!t && o) return "tick" !== e ? "vertical" : "horizontal"; |
| 4631 | if (t && o) return "vertical"; |
| 4632 | { |
| 4633 | const e = aa(i) && i.type === cr, |
| 4634 | t = aa(r) && r.type === cr; |
| 4635 | if (e && !t) return "vertical"; |