| 2205 | } |
| 2206 | } |
| 2207 | function Go(e) { |
| 2208 | let { |
| 2209 | channel: t, |
| 2210 | fieldDef: n, |
| 2211 | fieldDef2: i, |
| 2212 | markDef: r, |
| 2213 | config: o, |
| 2214 | scaleType: a, |
| 2215 | useVlSizeChannel: s, |
| 2216 | } = e; |
| 2217 | const l = st(t), |
| 2218 | c = En(s ? "size" : l, r, o, { vgChannel: l }); |
| 2219 | if (void 0 !== c) return c; |
| 2220 | if (Zo(n)) { |
| 2221 | const { timeUnit: e, bin: t } = n; |
| 2222 | if (e && !i) return { band: Mn("timeUnitBandSize", r, o) }; |
| 2223 | if (mn(t) && !kr(a)) return { band: 1 }; |
| 2224 | } |
| 2225 | return eo(r.type) |
| 2226 | ? a |
| 2227 | ? kr(a) |
| 2228 | ? o[r.type]?.discreteBandSize || { band: 1 } |
| 2229 | : o[r.type]?.continuousBandSize |
| 2230 | : o[r.type]?.discreteBandSize |
| 2231 | : void 0; |
| 2232 | } |
| 2233 | function Yo(e, t, n, i) { |
| 2234 | return ( |
| 2235 | !!(mn(e.bin) || (e.timeUnit && aa(e) && "temporal" === e.type)) && |