| 14172 | selection = []; |
| 14173 | children = []; |
| 14174 | constructor(e, n, i) { |
| 14175 | let r = |
| 14176 | arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}, |
| 14177 | o = arguments.length > 4 ? arguments[4] : void 0; |
| 14178 | super(e, "unit", n, i, o, void 0, Ls(e) ? e.view : void 0); |
| 14179 | const a = no(e.mark) ? { ...e.mark } : { type: e.mark }, |
| 14180 | s = a.type; |
| 14181 | void 0 === a.filled && |
| 14182 | (a.filled = (function (e, t, n) { |
| 14183 | let { graticule: i } = n; |
| 14184 | if (i) return !1; |
| 14185 | const r = Mn("filled", e, t), |
| 14186 | o = e.type; |
| 14187 | return U(r, o !== Br && o !== Ir && o !== Hr); |
| 14188 | })(a, o, { graticule: e.data && vc(e.data) })); |
| 14189 | const l = (this.encoding = (function (e, n, i, r) { |
| 14190 | const o = {}; |
| 14191 | for (const t of D(e)) |
| 14192 | tt(t) || |
| 14193 | Si( |
| 14194 | `${(a = t)}-encoding is dropped as ${a} is not a valid encoding channel.`, |
| 14195 | ); |
| 14196 | var a; |
| 14197 | for (let a of ft) { |
| 14198 | if (!e[a]) continue; |
| 14199 | const s = e[a]; |
| 14200 | if (jt(a)) { |
| 14201 | const e = ut(a), |
| 14202 | t = o[e]; |
| 14203 | if (Zo(t) && or(t.type) && Zo(s) && !t.timeUnit) { |
| 14204 | Si(ri(e)); |
| 14205 | continue; |
| 14206 | } |
| 14207 | } |
| 14208 | if ( |
| 14209 | ("angle" !== a || |
| 14210 | "arc" !== n || |
| 14211 | e.theta || |
| 14212 | (Si( |
| 14213 | "Arc marks uses theta channel rather than angle, replacing angle with theta.", |
| 14214 | ), |
| 14215 | (a = ce)), |
| 14216 | Ya(e, a, n)) |
| 14217 | ) { |
| 14218 | if (a === xe && "line" === n) { |
| 14219 | const t = wa(e[a]); |
| 14220 | if (t?.aggregate) { |
| 14221 | Si( |
| 14222 | "Line marks cannot encode size with a non-groupby field. You may want to use trail marks instead.", |
| 14223 | ); |
| 14224 | continue; |
| 14225 | } |
| 14226 | } |
| 14227 | if (a === he && (i ? "fill" in e : "stroke" in e)) |
| 14228 | Si(ai("encoding", { fill: "fill" in e, stroke: "stroke" in e })); |
| 14229 | else if ( |
| 14230 | a === Ce || |
| 14231 | (a === ze && !t.isArray(s) && !sa(s)) || |