| 32442 | t, |
| 32443 | ); |
| 32444 | function hU(t, e) { |
| 32445 | const n = e.config, |
| 32446 | r = XN((e.root = e.add(VN()))), |
| 32447 | i = (function (t, e) { |
| 32448 | const n = (n) => oO(t[n], e[n]), |
| 32449 | r = [ |
| 32450 | dU("background", n("background")), |
| 32451 | dU("autosize", iN(n("autosize"))), |
| 32452 | dU("padding", sN(n("padding"))), |
| 32453 | dU("width", n("width") || 0), |
| 32454 | dU("height", n("height") || 0), |
| 32455 | ], |
| 32456 | i = r.reduce((t, e) => ((t[e.name] = e), t), {}), |
| 32457 | o = {}; |
| 32458 | return ( |
| 32459 | V(t.signals).forEach((t) => { |
| 32460 | (ut(i, t.name) ? (t = ot(i[t.name], t)) : r.push(t), |
| 32461 | (o[t.name] = t)); |
| 32462 | }), |
| 32463 | V(e.signals).forEach((t) => { |
| 32464 | ut(o, t.name) || ut(i, t.name) || r.push(t); |
| 32465 | }), |
| 32466 | r |
| 32467 | ); |
| 32468 | })(t, n); |
| 32469 | (i.forEach((t) => HN(t, e)), |
| 32470 | (e.description = t.description || n.description), |
| 32471 | (e.eventConfig = n.events), |
| 32472 | (e.legends = e.objectProperty(n.legend && n.legend.layout)), |
| 32473 | (e.locale = n.locale)); |
| 32474 | const o = e.add(xO()), |
| 32475 | a = e.add(kO(UN(fU(t.encode), BR, pN, t.style, e, { pulse: XN(o) }))), |
| 32476 | s = e.add( |
| 32477 | IO({ |
| 32478 | layout: e.objectProperty(t.layout), |
| 32479 | legends: e.legends, |
| 32480 | autosize: e.signalRef("autosize"), |
| 32481 | mark: r, |
| 32482 | pulse: XN(a), |
| 32483 | }), |
| 32484 | ); |
| 32485 | (e.operators.pop(), |
| 32486 | e.pushState(XN(a), XN(s), null), |
| 32487 | cU(t, e, i), |
| 32488 | e.operators.push(s)); |
| 32489 | let u = e.add(_O({ mark: r, pulse: XN(s) })); |
| 32490 | return ( |
| 32491 | (u = e.add(UO({ pulse: XN(u) }))), |
| 32492 | (u = e.add(PO({ pulse: XN(u) }))), |
| 32493 | e.addData("root", new kL(e, o, o, u)), |
| 32494 | e |
| 32495 | ); |
| 32496 | } |
| 32497 | function dU(t, e) { |
| 32498 | return e && e.signal |
| 32499 | ? { name: t, update: e.signal } |