@asgard-js/react 0.2.60 → 0.2.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -110,17 +110,17 @@ function hI(e) {
110
110
  onSseError: c,
111
111
  onBeforeSendMessage: f,
112
112
  onChannelReady: d
113
- } = e, h = !t, [p, g] = ve(null), [m, y] = ve(n ?? !0), [_, b] = ve(!1), [v, x] = ve(!1), [E, w] = ve(null), S = xe(
114
- () => h ? new u1({ messages: new Map(s?.map((k) => [k.messageId, k])) }) : null,
113
+ } = e, h = !t, [p, g] = ve(null), [m, y] = ve(n ?? !0), [_, b] = ve(!1), [v, x] = ve(!1), [E, w] = ve(null), k = xe(
114
+ () => h ? new u1({ messages: new Map(s?.map((S) => [S.messageId, S])) }) : null,
115
115
  [h, s]
116
116
  ), $ = re(
117
- async (k) => {
117
+ async (S) => {
118
118
  if (h || !t) return;
119
119
  const T = new u1({
120
120
  messages: new Map(s?.map((O) => [O.messageId, O]))
121
121
  });
122
122
  b(!0), x(!0), w(T);
123
- const R = f ? f({ text: k?.text ?? "", payload: k?.payload }) : k, P = await sk.reset(
123
+ const R = f ? f({ text: S?.text ?? "", payload: S?.payload }) : S, P = await sk.reset(
124
124
  {
125
125
  client: t,
126
126
  customChannelId: i,
@@ -166,26 +166,26 @@ function hI(e) {
166
166
  ]
167
167
  ), A = re(() => {
168
168
  if (h || !t) return;
169
- const k = new u1({
169
+ const S = new u1({
170
170
  messages: new Map(s?.map((R) => [R.messageId, R]))
171
171
  });
172
- w(k);
172
+ w(S);
173
173
  const T = sk.create({
174
174
  client: t,
175
175
  customChannelId: i,
176
176
  customMessageId: o,
177
- conversation: k,
177
+ conversation: S,
178
178
  statesObserver: (R) => {
179
179
  x(R.isConnecting), w(R.conversation);
180
180
  }
181
181
  });
182
182
  y(!0), g(T);
183
183
  }, [h, t, i, o, s]), N = re(() => {
184
- g((k) => (k?.close(), null)), y(!1), b(!1), x(!1), w(null);
184
+ g((S) => (S?.close(), null)), y(!1), b(!1), x(!1), w(null);
185
185
  }, []), F = re(
186
- async (k) => {
186
+ async (S) => {
187
187
  await p?.sendMessage(
188
- { ...k, customMessageId: o },
188
+ { ...S, customMessageId: o },
189
189
  {
190
190
  onSseMessage(T) {
191
191
  l?.(T, {
@@ -202,11 +202,11 @@ function hI(e) {
202
202
  },
203
203
  [p, o, l, u, c, E]
204
204
  ), D = re(
205
- async (k, T) => {
205
+ async (S, T) => {
206
206
  t?.debugMode && console.log(
207
207
  `[consent] use-channel.replyToolCallConsents · channel=${p ? "SET" : "NULL ← reply 會被丟掉!"}`
208
208
  ), await p?.replyToolCallConsents(
209
- k,
209
+ S,
210
210
  {
211
211
  onSseMessage(R) {
212
212
  l?.(R, {
@@ -230,7 +230,7 @@ function hI(e) {
230
230
  isOpen: !0,
231
231
  isResetting: !1,
232
232
  isConnecting: !1,
233
- conversation: S
233
+ conversation: k
234
234
  } : {
235
235
  isOpen: m,
236
236
  isResetting: _,
@@ -243,7 +243,7 @@ function hI(e) {
243
243
  },
244
244
  [
245
245
  h,
246
- S,
246
+ k,
247
247
  m,
248
248
  _,
249
249
  v,
@@ -806,7 +806,7 @@ function bI(e) {
806
806
  autoResetChannel: _,
807
807
  keepConnectionOnUnmount: b,
808
808
  onChannelReady: v
809
- } = e, x = rt(null), E = rt(null), [w, S] = ve(null), [$, A] = ve(!0), N = re((nt) => {
809
+ } = e, x = rt(null), E = rt(null), [w, k] = ve(null), [$, A] = ve(!0), N = re((nt) => {
810
810
  A(nt);
811
811
  }, []), F = re((nt) => {
812
812
  const _t = E.current;
@@ -821,7 +821,7 @@ function bI(e) {
821
821
  F(nt);
822
822
  },
823
823
  [F]
824
- ), k = dI({ config: o, keepConnectionOnUnmount: b }), {
824
+ ), S = dI({ config: o, keepConnectionOnUnmount: b }), {
825
825
  isOpen: T,
826
826
  isResetting: R,
827
827
  isConnecting: P,
@@ -831,7 +831,7 @@ function bI(e) {
831
831
  closeChannel: ie,
832
832
  replyToolCallConsents: oe
833
833
  } = hI({
834
- client: k,
834
+ client: S,
835
835
  customChannelId: f,
836
836
  initMessages: d,
837
837
  autoResetChannel: _,
@@ -861,7 +861,7 @@ function bI(e) {
861
861
  () => ({
862
862
  avatar: t,
863
863
  title: n,
864
- client: k,
864
+ client: S,
865
865
  customChannelId: f,
866
866
  isOpen: T,
867
867
  isResetting: R,
@@ -884,12 +884,12 @@ function bI(e) {
884
884
  scrollToBottom: D,
885
885
  programmaticScrollToBottom: M,
886
886
  pendingInputValue: w,
887
- setPendingInputValue: S
887
+ setPendingInputValue: k
888
888
  }),
889
889
  [
890
890
  t,
891
891
  n,
892
- k,
892
+ S,
893
893
  f,
894
894
  T,
895
895
  R,
@@ -914,7 +914,7 @@ function bI(e) {
914
914
  );
915
915
  return iI(i, () => ({
916
916
  serviceContext: ut,
917
- setInputValue: (nt) => S(nt)
917
+ setInputValue: (nt) => k(nt)
918
918
  })), /* @__PURE__ */ C(mT.Provider, { value: ut, children: r });
919
919
  }
920
920
  function Ot() {
@@ -2515,16 +2515,16 @@ function Pz(e) {
2515
2515
  function v() {
2516
2516
  if (_) return d1;
2517
2517
  if (b) return b = !1, xk;
2518
- var E, w = g, S;
2518
+ var E, w = g, k;
2519
2519
  if (f.charCodeAt(w) === h1) {
2520
2520
  for (; g++ < p && f.charCodeAt(g) !== h1 || f.charCodeAt(++g) === h1; ) ;
2521
- return (E = g) >= p ? _ = !0 : (S = f.charCodeAt(g++)) === _c ? b = !0 : S === p1 && (b = !0, f.charCodeAt(g) === _c && ++g), f.slice(w + 1, E - 1).replace(/""/g, '"');
2521
+ return (E = g) >= p ? _ = !0 : (k = f.charCodeAt(g++)) === _c ? b = !0 : k === p1 && (b = !0, f.charCodeAt(g) === _c && ++g), f.slice(w + 1, E - 1).replace(/""/g, '"');
2522
2522
  }
2523
2523
  for (; g < p; ) {
2524
- if ((S = f.charCodeAt(E = g++)) === _c) b = !0;
2525
- else if (S === p1)
2524
+ if ((k = f.charCodeAt(E = g++)) === _c) b = !0;
2525
+ else if (k === p1)
2526
2526
  b = !0, f.charCodeAt(g) === _c && ++g;
2527
- else if (S !== n) continue;
2527
+ else if (k !== n) continue;
2528
2528
  return f.slice(w, E);
2529
2529
  }
2530
2530
  return _ = !0, f.slice(w, p);
@@ -3137,19 +3137,19 @@ function FN(e) {
3137
3137
  f = Fa(f);
3138
3138
  var h = f.fill, p = f.align, g = f.sign, m = f.symbol, y = f.zero, _ = f.width, b = f.comma, v = f.precision, x = f.trim, E = f.type;
3139
3139
  E === "n" ? (b = !0, E = "g") : Sk[E] || (v === void 0 && (v = 12), x = !0, E = "g"), (y || h === "0" && p === "=") && (y = !0, h = "0", p = "=");
3140
- var w = (d && d.prefix !== void 0 ? d.prefix : "") + (m === "$" ? n : m === "#" && /[boxX]/.test(E) ? "0" + E.toLowerCase() : ""), S = (m === "$" ? r : /[%p]/.test(E) ? s : "") + (d && d.suffix !== void 0 ? d.suffix : ""), $ = Sk[E], A = /[defgprs%]/.test(E);
3140
+ var w = (d && d.prefix !== void 0 ? d.prefix : "") + (m === "$" ? n : m === "#" && /[boxX]/.test(E) ? "0" + E.toLowerCase() : ""), k = (m === "$" ? r : /[%p]/.test(E) ? s : "") + (d && d.suffix !== void 0 ? d.suffix : ""), $ = Sk[E], A = /[defgprs%]/.test(E);
3141
3141
  v = v === void 0 ? 6 : /[gprs]/.test(E) ? Math.max(1, Math.min(21, v)) : Math.max(0, Math.min(20, v));
3142
3142
  function N(F) {
3143
- var D = w, M = S, k, T, R;
3143
+ var D = w, M = k, S, T, R;
3144
3144
  if (E === "c")
3145
3145
  M = $(F) + M, F = "";
3146
3146
  else {
3147
3147
  F = +F;
3148
3148
  var P = F < 0 || 1 / F < 0;
3149
3149
  if (F = isNaN(F) ? l : $(Math.abs(F), v), x && (F = hB(F)), P && +F == 0 && g !== "+" && (P = !1), D = (P ? g === "(" ? g : a : g === "-" || g === "(" ? "" : g) + D, M = (E === "s" && !isNaN(F) && kp !== void 0 ? Mk[8 + kp / 3] : "") + M + (P && g === "(" ? ")" : ""), A) {
3150
- for (k = -1, T = F.length; ++k < T; )
3151
- if (R = F.charCodeAt(k), 48 > R || R > 57) {
3152
- M = (R === 46 ? i + F.slice(k + 1) : F.slice(k)) + M, F = F.slice(0, k);
3150
+ for (S = -1, T = F.length; ++S < T; )
3151
+ if (R = F.charCodeAt(S), 48 > R || R > 57) {
3152
+ M = (R === 46 ? i + F.slice(S + 1) : F.slice(S)) + M, F = F.slice(0, S);
3153
3153
  break;
3154
3154
  }
3155
3155
  }
@@ -3700,7 +3700,7 @@ function r5(e) {
3700
3700
  V: VB,
3701
3701
  w: WB,
3702
3702
  W: YB,
3703
- x: k,
3703
+ x: S,
3704
3704
  X: T,
3705
3705
  y: Ok,
3706
3706
  Y: Rk,
@@ -3718,7 +3718,7 @@ function r5(e) {
3718
3718
  }
3719
3719
  function w(te, _e) {
3720
3720
  return function(ge) {
3721
- var j = xc(1900, void 0, 1), ot = S(j, te, ge += "", 0), Ie, bt;
3721
+ var j = xc(1900, void 0, 1), ot = k(j, te, ge += "", 0), Ie, bt;
3722
3722
  if (ot != ge.length) return null;
3723
3723
  if ("Q" in j) return new Date(j.Q);
3724
3724
  if ("s" in j) return new Date(j.s * 1e3 + ("L" in j ? j.L : 0));
@@ -3729,7 +3729,7 @@ function r5(e) {
3729
3729
  return "Z" in j ? (j.H += j.Z / 100 | 0, j.M += j.Z % 100, v1(j)) : b1(j);
3730
3730
  };
3731
3731
  }
3732
- function S(te, _e, ge, j) {
3732
+ function k(te, _e, ge, j) {
3733
3733
  for (var ot = 0, Ie = _e.length, bt = ge.length, Tt, En; ot < Ie; ) {
3734
3734
  if (j >= bt) return -1;
3735
3735
  if (Tt = _e.charCodeAt(ot++), Tt === 37) {
@@ -3760,13 +3760,13 @@ function r5(e) {
3760
3760
  return j ? (te.m = m.get(j[0].toLowerCase()), ge + j[0].length) : -1;
3761
3761
  }
3762
3762
  function M(te, _e, ge) {
3763
- return S(te, t, _e, ge);
3763
+ return k(te, t, _e, ge);
3764
3764
  }
3765
- function k(te, _e, ge) {
3766
- return S(te, n, _e, ge);
3765
+ function S(te, _e, ge) {
3766
+ return k(te, n, _e, ge);
3767
3767
  }
3768
3768
  function T(te, _e, ge) {
3769
- return S(te, r, _e, ge);
3769
+ return k(te, r, _e, ge);
3770
3770
  }
3771
3771
  function R(te) {
3772
3772
  return s[te.getDay()];
@@ -5892,13 +5892,13 @@ function q5(e, t, n, r) {
5892
5892
  const p = [0, u - 1];
5893
5893
  for (let m = 0; m < l; ++m) {
5894
5894
  const y = i[m], _ = p[0], b = p[1], v = y - i[_] > i[b] - y ? _ : b;
5895
- let x = 0, E = 0, w = 0, S = 0, $ = 0;
5895
+ let x = 0, E = 0, w = 0, k = 0, $ = 0;
5896
5896
  const A = 1 / Math.abs(i[v] - y || 1);
5897
5897
  for (let D = _; D <= b; ++D) {
5898
- const M = i[D], k = o[D], T = Zj(Math.abs(y - M) * A) * d[D], R = M * T;
5899
- x += T, E += R, w += k * T, S += k * R, $ += M * R;
5898
+ const M = i[D], S = o[D], T = Zj(Math.abs(y - M) * A) * d[D], R = M * T;
5899
+ x += T, E += R, w += S * T, k += S * R, $ += M * R;
5900
5900
  }
5901
- const [N, F] = ad(E / x, w / x, S / x, $ / x);
5901
+ const [N, F] = ad(E / x, w / x, k / x, $ / x);
5902
5902
  c[m] = N + F * y, f[m] = Math.abs(o[m] - c[m]), Jj(i, m + 1, p);
5903
5903
  }
5904
5904
  if (h === Jk)
@@ -8265,13 +8265,13 @@ function Jq(e, t, n, r, i, o, s, a) {
8265
8265
  return d = (c * (t - o) - f * (e - i)) / d, [e + d * l, t + d * u];
8266
8266
  }
8267
8267
  function ah(e, t, n, r, i, o, s) {
8268
- var a = e - n, l = t - r, u = (s ? o : -o) / ya(a * a + l * l), c = u * l, f = -u * a, d = e + c, h = t + f, p = n + c, g = r + f, m = (d + p) / 2, y = (h + g) / 2, _ = p - d, b = g - h, v = _ * _ + b * b, x = i - o, E = d * g - p * h, w = (b < 0 ? -1 : 1) * ya(qq(0, x * x * v - E * E)), S = (E * b - _ * w) / v, $ = (-E * _ - b * w) / v, A = (E * b + _ * w) / v, N = (-E * _ + b * w) / v, F = S - m, D = $ - y, M = A - m, k = N - y;
8269
- return F * F + D * D > M * M + k * k && (S = A, $ = N), {
8270
- cx: S,
8268
+ var a = e - n, l = t - r, u = (s ? o : -o) / ya(a * a + l * l), c = u * l, f = -u * a, d = e + c, h = t + f, p = n + c, g = r + f, m = (d + p) / 2, y = (h + g) / 2, _ = p - d, b = g - h, v = _ * _ + b * b, x = i - o, E = d * g - p * h, w = (b < 0 ? -1 : 1) * ya(qq(0, x * x * v - E * E)), k = (E * b - _ * w) / v, $ = (-E * _ - b * w) / v, A = (E * b + _ * w) / v, N = (-E * _ + b * w) / v, F = k - m, D = $ - y, M = A - m, S = N - y;
8269
+ return F * F + D * D > M * M + S * S && (k = A, $ = N), {
8270
+ cx: k,
8271
8271
  cy: $,
8272
8272
  x01: -c,
8273
8273
  y01: -f,
8274
- x11: S * (i / x - 1),
8274
+ x11: k * (i / x - 1),
8275
8275
  y11: $ * (i / x - 1)
8276
8276
  };
8277
8277
  }
@@ -8283,10 +8283,10 @@ function Qq() {
8283
8283
  else if (m > yF - fn)
8284
8284
  a.moveTo(h * Ks(p), h * bi(p)), a.arc(0, 0, h, p, g, !y), d > fn && (a.moveTo(d * Ks(g), d * bi(g)), a.arc(0, 0, d, g, p, y));
8285
8285
  else {
8286
- var _ = p, b = g, v = p, x = g, E = m, w = m, S = s.apply(this, arguments) / 2, $ = S > fn && (r ? +r.apply(this, arguments) : ya(d * d + h * h)), A = C1(nS(h - d) / 2, +n.apply(this, arguments)), N = A, F = A, D, M;
8286
+ var _ = p, b = g, v = p, x = g, E = m, w = m, k = s.apply(this, arguments) / 2, $ = k > fn && (r ? +r.apply(this, arguments) : ya(d * d + h * h)), A = C1(nS(h - d) / 2, +n.apply(this, arguments)), N = A, F = A, D, M;
8287
8287
  if ($ > fn) {
8288
- var k = rS($ / d * bi(S)), T = rS($ / h * bi(S));
8289
- (E -= k * 2) > fn ? (k *= y ? 1 : -1, v += k, x -= k) : (E = 0, v = x = (p + g) / 2), (w -= T * 2) > fn ? (T *= y ? 1 : -1, _ += T, b -= T) : (w = 0, _ = b = (p + g) / 2);
8288
+ var S = rS($ / d * bi(k)), T = rS($ / h * bi(k));
8289
+ (E -= S * 2) > fn ? (S *= y ? 1 : -1, v += S, x -= S) : (E = 0, v = x = (p + g) / 2), (w -= T * 2) > fn ? (T *= y ? 1 : -1, _ += T, b -= T) : (w = 0, _ = b = (p + g) / 2);
8290
8290
  }
8291
8291
  var R = h * Ks(_), P = h * bi(_), O = d * Ks(x), W = d * bi(x);
8292
8292
  if (A > fn) {
@@ -9840,11 +9840,11 @@ const XW = (function e(t, n, r) {
9840
9840
  else {
9841
9841
  var _ = Math.sqrt(g), b = (d * d - u * u + r * g) / (2 * u * n * _), v = (d * d - u * u - r * g) / (2 * d * n * _), x = Math.log(Math.sqrt(b * b + 1) - b), E = Math.log(Math.sqrt(v * v + 1) - v);
9842
9842
  y = (E - x) / t, m = function(w) {
9843
- var S = w * y, $ = vS(x), A = u / (n * _) * ($ * YW(t * S + x) - VW(x));
9843
+ var k = w * y, $ = vS(x), A = u / (n * _) * ($ * YW(t * k + x) - VW(x));
9844
9844
  return [
9845
9845
  a + A * h,
9846
9846
  l + A * p,
9847
- u * $ / vS(t * S + x)
9847
+ u * $ / vS(t * k + x)
9848
9848
  ];
9849
9849
  };
9850
9850
  }
@@ -10972,11 +10972,11 @@ function pG(e, t, n, r, i, o, s, a, l) {
10972
10972
  let A = Math.sqrt($);
10973
10973
  o == i && (A = -A);
10974
10974
  const N = 0.5 * (v + E) - A * (w - x), F = 0.5 * (x + w) + A * (E - v), D = Math.atan2(x - F, v - N);
10975
- let k = Math.atan2(w - F, E - N) - D;
10976
- k < 0 && o === 1 ? k += Ai : k > 0 && o === 0 && (k -= Ai);
10977
- const T = Math.ceil(Math.abs(k / (ha + 1e-3))), R = [];
10975
+ let S = Math.atan2(w - F, E - N) - D;
10976
+ S < 0 && o === 1 ? S += Ai : S > 0 && o === 0 && (S -= Ai);
10977
+ const T = Math.ceil(Math.abs(S / (ha + 1e-3))), R = [];
10978
10978
  for (let P = 0; P < T; ++P) {
10979
- const O = D + P * k / T, W = D + (P + 1) * k / T;
10979
+ const O = D + P * S / T, W = D + (P + 1) * S / T;
10980
10980
  R[P] = [N, F, O, W, n, r, f, d];
10981
10981
  }
10982
10982
  return F1[u] = R;
@@ -10986,8 +10986,8 @@ function gG(e) {
10986
10986
  if (D1[t])
10987
10987
  return D1[t];
10988
10988
  var n = e[0], r = e[1], i = e[2], o = e[3], s = e[4], a = e[5], l = e[6], u = e[7];
10989
- const c = u * s, f = -l * a, d = l * s, h = u * a, p = Math.cos(i), g = Math.sin(i), m = Math.cos(o), y = Math.sin(o), _ = 0.5 * (o - i), b = Math.sin(_ * 0.5), v = 8 / 3 * b * b / Math.sin(_), x = n + p - v * g, E = r + g + v * p, w = n + m, S = r + y, $ = w + v * y, A = S - v * m;
10990
- return D1[t] = [c * x + f * E, d * x + h * E, c * $ + f * A, d * $ + h * A, c * w + f * S, d * w + h * S];
10989
+ const c = u * s, f = -l * a, d = l * s, h = u * a, p = Math.cos(i), g = Math.sin(i), m = Math.cos(o), y = Math.sin(o), _ = 0.5 * (o - i), b = Math.sin(_ * 0.5), v = 8 / 3 * b * b / Math.sin(_), x = n + p - v * g, E = r + g + v * p, w = n + m, k = r + y, $ = w + v * y, A = k - v * m;
10990
+ return D1[t] = [c * x + f * E, d * x + h * E, c * $ + f * A, d * $ + h * A, c * w + f * k, d * w + h * k];
10991
10991
  }
10992
10992
  const br = ["l", 0, 0, 0, 0, 0, 0, 0];
10993
10993
  function mG(e, t, n) {
@@ -11221,8 +11221,8 @@ function Y4() {
11221
11221
  if (l || (l = h = Cm()), b <= 0 && v <= 0 && x <= 0 && E <= 0)
11222
11222
  l.rect(p, g, m, y);
11223
11223
  else {
11224
- var w = p + m, S = g + y;
11225
- l.moveTo(p + b, g), l.lineTo(w - v, g), l.bezierCurveTo(w - Ho * v, g, w, g + Ho * v, w, g + v), l.lineTo(w, S - E), l.bezierCurveTo(w, S - Ho * E, w - Ho * E, S, w - E, S), l.lineTo(p + x, S), l.bezierCurveTo(p + Ho * x, S, p, S - Ho * x, p, S - x), l.lineTo(p, g + b), l.bezierCurveTo(p, g + Ho * b, p + Ho * b, g, p + b, g), l.closePath();
11224
+ var w = p + m, k = g + y;
11225
+ l.moveTo(p + b, g), l.lineTo(w - v, g), l.bezierCurveTo(w - Ho * v, g, w, g + Ho * v, w, g + v), l.lineTo(w, k - E), l.bezierCurveTo(w, k - Ho * E, w - Ho * E, k, w - E, k), l.lineTo(p + x, k), l.bezierCurveTo(p + Ho * x, k, p, k - Ho * x, p, k - x), l.lineTo(p, g + b), l.bezierCurveTo(p, g + Ho * b, p + Ho * b, g, p + b, g), l.closePath();
11226
11226
  }
11227
11227
  if (h)
11228
11228
  return l = null, h + "" || null;
@@ -13804,19 +13804,19 @@ function u$(e) {
13804
13804
  return e < 0 ? Math.ceil(-e) : 0;
13805
13805
  }
13806
13806
  function aD(e, t, n) {
13807
- var r = !n.nodirty, i = n.bounds === J2 ? rX : iX, o = dn.set(0, 0, 0, 0), s = ct(n.align, ss), a = ct(n.align, as), l = ct(n.padding, ss), u = ct(n.padding, as), c = n.columns || t.length, f = c <= 0 ? 1 : Math.ceil(t.length / c), d = t.length, h = Array(d), p = Array(c), g = 0, m = Array(d), y = Array(f), _ = 0, b = Array(d), v = Array(d), x = Array(d), E, w, S, $, A, N, F, D, M, k, T;
13807
+ var r = !n.nodirty, i = n.bounds === J2 ? rX : iX, o = dn.set(0, 0, 0, 0), s = ct(n.align, ss), a = ct(n.align, as), l = ct(n.padding, ss), u = ct(n.padding, as), c = n.columns || t.length, f = c <= 0 ? 1 : Math.ceil(t.length / c), d = t.length, h = Array(d), p = Array(c), g = 0, m = Array(d), y = Array(f), _ = 0, b = Array(d), v = Array(d), x = Array(d), E, w, k, $, A, N, F, D, M, S, T;
13808
13808
  for (w = 0; w < c; ++w) p[w] = 0;
13809
13809
  for (w = 0; w < f; ++w) y[w] = 0;
13810
13810
  for (w = 0; w < d; ++w)
13811
- N = t[w], A = x[w] = i(N), N.x = N.x || 0, b[w] = 0, N.y = N.y || 0, v[w] = 0, S = w % c, $ = ~~(w / c), g = Math.max(g, F = Math.ceil(A.x2)), _ = Math.max(_, D = Math.ceil(A.y2)), p[S] = Math.max(p[S], F), y[$] = Math.max(y[$], D), h[w] = l + u$(A.x1), m[w] = u + u$(A.y1), r && e.dirty(t[w]);
13811
+ N = t[w], A = x[w] = i(N), N.x = N.x || 0, b[w] = 0, N.y = N.y || 0, v[w] = 0, k = w % c, $ = ~~(w / c), g = Math.max(g, F = Math.ceil(A.x2)), _ = Math.max(_, D = Math.ceil(A.y2)), p[k] = Math.max(p[k], F), y[$] = Math.max(y[$], D), h[w] = l + u$(A.x1), m[w] = u + u$(A.y1), r && e.dirty(t[w]);
13812
13812
  for (w = 0; w < d; ++w)
13813
13813
  w % c === 0 && (h[w] = 0), w < c && (m[w] = 0);
13814
13814
  if (s === q_)
13815
- for (S = 1; S < c; ++S) {
13816
- for (T = 0, w = S; w < d; w += c)
13815
+ for (k = 1; k < c; ++k) {
13816
+ for (T = 0, w = k; w < d; w += c)
13817
13817
  T < h[w] && (T = h[w]);
13818
- for (w = S; w < d; w += c)
13819
- h[w] = T + p[S - 1];
13818
+ for (w = k; w < d; w += c)
13819
+ h[w] = T + p[k - 1];
13820
13820
  }
13821
13821
  else if (s === dh) {
13822
13822
  for (T = 0, w = 0; w < d; ++w)
@@ -13824,9 +13824,9 @@ function aD(e, t, n) {
13824
13824
  for (w = 0; w < d; ++w)
13825
13825
  w % c && (h[w] = T + g);
13826
13826
  } else
13827
- for (s = !1, S = 1; S < c; ++S)
13828
- for (w = S; w < d; w += c)
13829
- h[w] += p[S - 1];
13827
+ for (s = !1, k = 1; k < c; ++k)
13828
+ for (w = k; w < d; w += c)
13829
+ h[w] += p[k - 1];
13830
13830
  if (a === q_)
13831
13831
  for ($ = 1; $ < f; ++$) {
13832
13832
  for (T = 0, w = $ * c, E = w + c; w < E; ++w)
@@ -13845,18 +13845,18 @@ function aD(e, t, n) {
13845
13845
  m[w] += y[$ - 1];
13846
13846
  for (M = 0, w = 0; w < d; ++w)
13847
13847
  M = h[w] + (w % c ? M : 0), b[w] += M - t[w].x;
13848
- for (S = 0; S < c; ++S)
13849
- for (k = 0, w = S; w < d; w += c)
13850
- k += m[w], v[w] += k - t[w].y;
13848
+ for (k = 0; k < c; ++k)
13849
+ for (S = 0, w = k; w < d; w += c)
13850
+ S += m[w], v[w] += S - t[w].y;
13851
13851
  if (s && ct(n.center, ss) && f > 1)
13852
13852
  for (w = 0; w < d; ++w)
13853
13853
  A = s === dh ? g : p[w % c], M = A - x[w].x2 - t[w].x - b[w], M > 0 && (b[w] += M / 2);
13854
13854
  if (a && ct(n.center, as) && c !== 1)
13855
13855
  for (w = 0; w < d; ++w)
13856
- A = a === dh ? _ : y[~~(w / c)], k = A - x[w].y2 - t[w].y - v[w], k > 0 && (v[w] += k / 2);
13856
+ A = a === dh ? _ : y[~~(w / c)], S = A - x[w].y2 - t[w].y - v[w], S > 0 && (v[w] += S / 2);
13857
13857
  for (w = 0; w < d; ++w)
13858
13858
  o.union(x[w].translate(b[w], v[w]));
13859
- switch (M = ct(n.anchor, jY), k = ct(n.anchor, qY), ct(n.anchor, ss)) {
13859
+ switch (M = ct(n.anchor, jY), S = ct(n.anchor, qY), ct(n.anchor, ss)) {
13860
13860
  case $n:
13861
13861
  M -= o.width();
13862
13862
  break;
@@ -13865,15 +13865,15 @@ function aD(e, t, n) {
13865
13865
  }
13866
13866
  switch (ct(n.anchor, as)) {
13867
13867
  case $n:
13868
- k -= o.height();
13868
+ S -= o.height();
13869
13869
  break;
13870
13870
  case j_:
13871
- k -= o.height() / 2;
13871
+ S -= o.height() / 2;
13872
13872
  }
13873
- for (M = Math.round(M), k = Math.round(k), o.clear(), w = 0; w < d; ++w)
13873
+ for (M = Math.round(M), S = Math.round(S), o.clear(), w = 0; w < d; ++w)
13874
13874
  t[w].mark.bounds.clear();
13875
13875
  for (w = 0; w < d; ++w)
13876
- N = t[w], N.x += b[w] += M, N.y += v[w] += k, o.union(N.mark.bounds.union(N.bounds.translate(b[w], v[w]))), r && e.dirty(N);
13876
+ N = t[w], N.x += b[w] += M, N.y += v[w] += S, o.union(N.mark.bounds.union(N.bounds.translate(b[w], v[w]))), r && e.dirty(N);
13877
13877
  return o;
13878
13878
  }
13879
13879
  function oX(e, t, n) {
@@ -13888,7 +13888,7 @@ function aX(e, t) {
13888
13888
  return e.bounds[t];
13889
13889
  }
13890
13890
  function gh(e, t, n, r, i, o, s, a, l, u, c, f, d, h) {
13891
- var p = n.length, g = 0, m = 0, y, _, b, v, x, E, w, S, $;
13891
+ var p = n.length, g = 0, m = 0, y, _, b, v, x, E, w, k, $;
13892
13892
  if (!p) return g;
13893
13893
  for (y = c; y < p; y += f)
13894
13894
  n[y] && (g = s(g, l(n[y], u)));
@@ -13897,7 +13897,7 @@ function gh(e, t, n, r, i, o, s, a, l, u, c, f, d, h) {
13897
13897
  e.dirty(t[_]), t[_].mark.bounds.clear();
13898
13898
  for (y = c, _ = 0, v = t.length; _ < v; ++_, y += f) {
13899
13899
  for (E = t[_], x = E.mark.bounds, b = y; b >= 0 && (w = n[b]) == null; b -= d) ;
13900
- a ? (S = h == null ? w.x : Math.round(w.bounds.x1 + h * w.bounds.width()), $ = g) : (S = g, $ = h == null ? w.y : Math.round(w.bounds.y1 + h * w.bounds.height())), x.union(E.bounds.translate(S - (E.x || 0), $ - (E.y || 0))), E.x = S, E.y = $, e.dirty(E), m = s(m, x[u]);
13900
+ a ? (k = h == null ? w.x : Math.round(w.bounds.x1 + h * w.bounds.width()), $ = g) : (k = g, $ = h == null ? w.y : Math.round(w.bounds.y1 + h * w.bounds.height())), x.union(E.bounds.translate(k - (E.x || 0), $ - (E.y || 0))), E.x = k, E.y = $, e.dirty(E), m = s(m, x[u]);
13901
13901
  }
13902
13902
  return m;
13903
13903
  }
@@ -14963,14 +14963,14 @@ function pK(e, t) {
14963
14963
  for (var u = 0, c = e.length; u < c; ++u)
14964
14964
  if (d = (f = e[u]).length)
14965
14965
  for (var f, d, h = f[d - 1], p = U1(h), g = h[1] / 2 + eg, m = fe(g), y = he(g), _ = 0; _ < d; ++_, p = v, m = E, y = w, h = b) {
14966
- var b = f[_], v = U1(b), x = b[1] / 2 + eg, E = fe(x), w = he(x), S = v - p, $ = S >= 0 ? 1 : -1, A = $ * S, N = A > Oe, F = m * E;
14967
- if (l.add(Lr(F * $ * fe(A), y * w + F * he(A))), s += N ? S + $ * Ln : S, N ^ p >= n ^ v >= n) {
14966
+ var b = f[_], v = U1(b), x = b[1] / 2 + eg, E = fe(x), w = he(x), k = v - p, $ = k >= 0 ? 1 : -1, A = $ * k, N = A > Oe, F = m * E;
14967
+ if (l.add(Lr(F * $ * fe(A), y * w + F * he(A))), s += N ? k + $ * Ln : k, N ^ p >= n ^ v >= n) {
14968
14968
  var D = _u(Ia(h), Ia(b));
14969
14969
  sg(D);
14970
14970
  var M = _u(o, D);
14971
14971
  sg(M);
14972
- var k = (N ^ S >= 0 ? -1 : 1) * Zn(M[2]);
14973
- (r > k || r === k && (D[0] || D[1])) && (a += N ^ S >= 0 ? 1 : -1);
14972
+ var S = (N ^ k >= 0 ? -1 : 1) * Zn(M[2]);
14973
+ (r > S || r === S && (D[0] || D[1])) && (a += N ^ k >= 0 ? 1 : -1);
14974
14974
  }
14975
14975
  }
14976
14976
  return (s < -de || s < de && l < -Qp) ^ a & 1;
@@ -15013,11 +15013,11 @@ function PD(e, t, n, r) {
15013
15013
  }
15014
15014
  function b() {
15015
15015
  y(f[0][0], f[0][1]), a.lineEnd();
15016
- var v = a.clean(), x = s.result(), E, w = x.length, S, $, A;
15016
+ var v = a.clean(), x = s.result(), E, w = x.length, k, $, A;
15017
15017
  if (f.pop(), u.push(f), f = null, !!w) {
15018
15018
  if (v & 1) {
15019
- if ($ = x[0], (S = $.length - 1) > 0) {
15020
- for (l || (i.polygonStart(), l = !0), i.lineStart(), E = 0; E < S; ++E) i.point((A = $[E])[0], A[1]);
15019
+ if ($ = x[0], (k = $.length - 1) > 0) {
15020
+ for (l || (i.polygonStart(), l = !0), i.lineStart(), E = 0; E < k; ++E) i.point((A = $[E])[0], A[1]);
15021
15021
  i.lineEnd();
15022
15022
  }
15023
15023
  return;
@@ -15111,16 +15111,16 @@ function vK(e) {
15111
15111
  function l(c, f, d) {
15112
15112
  var h = Ia(c), p = Ia(f), g = [1, 0, 0], m = _u(h, p), y = yh(m, m), _ = m[0], b = y - _ * _;
15113
15113
  if (!b) return !d && c;
15114
- var v = t * y / b, x = -t * _ / b, E = _u(g, m), w = _h(g, v), S = _h(m, x);
15115
- B1(w, S);
15114
+ var v = t * y / b, x = -t * _ / b, E = _u(g, m), w = _h(g, v), k = _h(m, x);
15115
+ B1(w, k);
15116
15116
  var $ = E, A = yh(w, $), N = yh($, $), F = A * A - N * (yh(w, w) - 1);
15117
15117
  if (!(F < 0)) {
15118
15118
  var D = In(F), M = _h($, (-A - D) / N);
15119
15119
  if (B1(M, w), M = og(M), !d) return M;
15120
- var k = c[0], T = f[0], R = c[1], P = f[1], O;
15121
- T < k && (O = k, k = T, T = O);
15122
- var W = T - k, le = ze(W - Oe) < de, ie = le || W < de;
15123
- if (!le && P < R && (O = R, R = P, P = O), ie ? le ? R + P > 0 ^ M[1] < (ze(M[0] - k) < de ? R : P) : R <= M[1] && M[1] <= P : W > Oe ^ (k <= M[0] && M[0] <= T)) {
15120
+ var S = c[0], T = f[0], R = c[1], P = f[1], O;
15121
+ T < S && (O = S, S = T, T = O);
15122
+ var W = T - S, le = ze(W - Oe) < de, ie = le || W < de;
15123
+ if (!le && P < R && (O = R, R = P, P = O), ie ? le ? R + P > 0 ^ M[1] < (ze(M[0] - S) < de ? R : P) : R <= M[1] && M[1] <= P : W > Oe ^ (S <= M[0] && M[0] <= T)) {
15124
15124
  var oe = _h($, (-A + D) / N);
15125
15125
  return B1(oe, w), [M, og(oe)];
15126
15126
  }
@@ -15198,44 +15198,44 @@ function zD(e, t, n, r) {
15198
15198
  }
15199
15199
  return function(u) {
15200
15200
  var c = u, f = LD(), d, h, p, g, m, y, _, b, v, x, E, w = {
15201
- point: S,
15201
+ point: k,
15202
15202
  lineStart: F,
15203
15203
  lineEnd: D,
15204
15204
  polygonStart: A,
15205
15205
  polygonEnd: N
15206
15206
  };
15207
- function S(k, T) {
15208
- i(k, T) && c.point(k, T);
15207
+ function k(S, T) {
15208
+ i(S, T) && c.point(S, T);
15209
15209
  }
15210
15210
  function $() {
15211
- for (var k = 0, T = 0, R = h.length; T < R; ++T)
15211
+ for (var S = 0, T = 0, R = h.length; T < R; ++T)
15212
15212
  for (var P = h[T], O = 1, W = P.length, le = P[0], ie, oe, Pe = le[0], pe = le[1]; O < W; ++O)
15213
- ie = Pe, oe = pe, le = P[O], Pe = le[0], pe = le[1], oe <= r ? pe > r && (Pe - ie) * (r - oe) > (pe - oe) * (e - ie) && ++k : pe <= r && (Pe - ie) * (r - oe) < (pe - oe) * (e - ie) && --k;
15214
- return k;
15213
+ ie = Pe, oe = pe, le = P[O], Pe = le[0], pe = le[1], oe <= r ? pe > r && (Pe - ie) * (r - oe) > (pe - oe) * (e - ie) && ++S : pe <= r && (Pe - ie) * (r - oe) < (pe - oe) * (e - ie) && --S;
15214
+ return S;
15215
15215
  }
15216
15216
  function A() {
15217
15217
  c = f, d = [], h = [], E = !0;
15218
15218
  }
15219
15219
  function N() {
15220
- var k = $(), T = E && k, R = (d = TN(d)).length;
15221
- (T || R) && (u.polygonStart(), T && (u.lineStart(), o(null, null, 1, u), u.lineEnd()), R && ID(d, a, k, o, u), u.polygonEnd()), c = u, d = h = p = null;
15220
+ var S = $(), T = E && S, R = (d = TN(d)).length;
15221
+ (T || R) && (u.polygonStart(), T && (u.lineStart(), o(null, null, 1, u), u.lineEnd()), R && ID(d, a, S, o, u), u.polygonEnd()), c = u, d = h = p = null;
15222
15222
  }
15223
15223
  function F() {
15224
15224
  w.point = M, h && h.push(p = []), x = !0, v = !1, _ = b = NaN;
15225
15225
  }
15226
15226
  function D() {
15227
- d && (M(g, m), y && v && f.rejoin(), d.push(f.result())), w.point = S, v && c.lineEnd();
15227
+ d && (M(g, m), y && v && f.rejoin(), d.push(f.result())), w.point = k, v && c.lineEnd();
15228
15228
  }
15229
- function M(k, T) {
15230
- var R = i(k, T);
15231
- if (h && p.push([k, T]), x)
15232
- g = k, m = T, y = R, x = !1, R && (c.lineStart(), c.point(k, T));
15233
- else if (R && v) c.point(k, T);
15229
+ function M(S, T) {
15230
+ var R = i(S, T);
15231
+ if (h && p.push([S, T]), x)
15232
+ g = S, m = T, y = R, x = !1, R && (c.lineStart(), c.point(S, T));
15233
+ else if (R && v) c.point(S, T);
15234
15234
  else {
15235
- var P = [_ = Math.max(vh, Math.min(Qc, _)), b = Math.max(vh, Math.min(Qc, b))], O = [k = Math.max(vh, Math.min(Qc, k)), T = Math.max(vh, Math.min(Qc, T))];
15236
- xK(P, O, e, t, n, r) ? (v || (c.lineStart(), c.point(P[0], P[1])), c.point(O[0], O[1]), R || c.lineEnd(), E = !1) : R && (c.lineStart(), c.point(k, T), E = !1);
15235
+ var P = [_ = Math.max(vh, Math.min(Qc, _)), b = Math.max(vh, Math.min(Qc, b))], O = [S = Math.max(vh, Math.min(Qc, S)), T = Math.max(vh, Math.min(Qc, T))];
15236
+ xK(P, O, e, t, n, r) ? (v || (c.lineStart(), c.point(P[0], P[1])), c.point(O[0], O[1]), R || c.lineEnd(), E = !1) : R && (c.lineStart(), c.point(S, T), E = !1);
15237
15237
  }
15238
- _ = k, b = T, v = R;
15238
+ _ = S, b = T, v = R;
15239
15239
  }
15240
15240
  return w;
15241
15241
  };
@@ -15614,8 +15614,8 @@ function LK(e, t) {
15614
15614
  function n(r, i, o, s, a, l, u, c, f, d, h, p, g, m) {
15615
15615
  var y = u - r, _ = c - i, b = y * y + _ * _;
15616
15616
  if (b > 4 * t && g--) {
15617
- var v = s + d, x = a + h, E = l + p, w = In(v * v + x * x + E * E), S = Zn(E /= w), $ = ze(ze(E) - 1) < de || ze(o - f) < de ? (o + f) / 2 : Lr(x, v), A = e($, S), N = A[0], F = A[1], D = N - r, M = F - i, k = _ * D - y * M;
15618
- (k * k / b > t || ze((y * D + _ * M) / b - 0.5) > 0.3 || s * d + a * h + l * p < RK) && (n(r, i, o, s, a, l, N, F, $, v /= w, x /= w, E, g, m), m.point(N, F), n(N, F, $, v, x, E, u, c, f, d, h, p, g, m));
15617
+ var v = s + d, x = a + h, E = l + p, w = In(v * v + x * x + E * E), k = Zn(E /= w), $ = ze(ze(E) - 1) < de || ze(o - f) < de ? (o + f) / 2 : Lr(x, v), A = e($, k), N = A[0], F = A[1], D = N - r, M = F - i, S = _ * D - y * M;
15618
+ (S * S / b > t || ze((y * D + _ * M) / b - 0.5) > 0.3 || s * d + a * h + l * p < RK) && (n(r, i, o, s, a, l, N, F, $, v /= w, x /= w, E, g, m), m.point(N, F), n(N, F, $, v, x, E, u, c, f, d, h, p, g, m));
15619
15619
  }
15620
15620
  }
15621
15621
  return function(r) {
@@ -15630,15 +15630,15 @@ function LK(e, t) {
15630
15630
  r.polygonEnd(), m.lineStart = _;
15631
15631
  }
15632
15632
  };
15633
- function y(S, $) {
15634
- S = e(S, $), r.point(S[0], S[1]);
15633
+ function y(k, $) {
15634
+ k = e(k, $), r.point(k[0], k[1]);
15635
15635
  }
15636
15636
  function _() {
15637
15637
  f = NaN, m.point = b, r.lineStart();
15638
15638
  }
15639
- function b(S, $) {
15640
- var A = Ia([S, $]), N = e(S, $);
15641
- n(f, d, c, h, p, g, f = N[0], d = N[1], c = S, h = A[0], p = A[1], g = A[2], L$, r), r.point(f, d);
15639
+ function b(k, $) {
15640
+ var A = Ia([k, $]), N = e(k, $);
15641
+ n(f, d, c, h, p, g, f = N[0], d = N[1], c = k, h = A[0], p = A[1], g = A[2], L$, r), r.point(f, d);
15642
15642
  }
15643
15643
  function v() {
15644
15644
  m.point = y, r.lineEnd();
@@ -15646,8 +15646,8 @@ function LK(e, t) {
15646
15646
  function x() {
15647
15647
  _(), m.point = E, m.lineEnd = w;
15648
15648
  }
15649
- function E(S, $) {
15650
- b(i = S, $), o = f, s = d, a = h, l = p, u = g, m.point = b;
15649
+ function E(k, $) {
15650
+ b(i = k, $), o = f, s = d, a = h, l = p, u = g, m.point = b;
15651
15651
  }
15652
15652
  function w() {
15653
15653
  n(f, d, c, h, p, g, o, s, i, a, l, u, L$, r), m.lineEnd = v, v();
@@ -15692,51 +15692,51 @@ function Zi(e) {
15692
15692
  })();
15693
15693
  }
15694
15694
  function JD(e) {
15695
- var t, n = 150, r = 480, i = 250, o = 0, s = 0, a = 0, l = 0, u = 0, c, f = 0, d = 1, h = 1, p = null, g = $$, m = null, y, _, b, v = Pf, x = 0.5, E, w, S, $, A;
15696
- function N(k) {
15697
- return S(k[0] * Ne, k[1] * Ne);
15698
- }
15699
- function F(k) {
15700
- return k = S.invert(k[0], k[1]), k && [k[0] * St, k[1] * St];
15701
- }
15702
- N.stream = function(k) {
15703
- return $ && A === k ? $ : $ = IK(PK(c)(g(E(v(A = k)))));
15704
- }, N.preclip = function(k) {
15705
- return arguments.length ? (g = k, p = void 0, M()) : g;
15706
- }, N.postclip = function(k) {
15707
- return arguments.length ? (v = k, m = y = _ = b = null, M()) : v;
15708
- }, N.clipAngle = function(k) {
15709
- return arguments.length ? (g = +k ? vK(p = k * Ne) : (p = null, $$), M()) : p * St;
15710
- }, N.clipExtent = function(k) {
15711
- return arguments.length ? (v = k == null ? (m = y = _ = b = null, Pf) : zD(m = +k[0][0], y = +k[0][1], _ = +k[1][0], b = +k[1][1]), M()) : m == null ? null : [[m, y], [_, b]];
15712
- }, N.scale = function(k) {
15713
- return arguments.length ? (n = +k, D()) : n;
15714
- }, N.translate = function(k) {
15715
- return arguments.length ? (r = +k[0], i = +k[1], D()) : [r, i];
15716
- }, N.center = function(k) {
15717
- return arguments.length ? (o = k[0] % 360 * Ne, s = k[1] % 360 * Ne, D()) : [o * St, s * St];
15718
- }, N.rotate = function(k) {
15719
- return arguments.length ? (a = k[0] % 360 * Ne, l = k[1] % 360 * Ne, u = k.length > 2 ? k[2] % 360 * Ne : 0, D()) : [a * St, l * St, u * St];
15720
- }, N.angle = function(k) {
15721
- return arguments.length ? (f = k % 360 * Ne, D()) : f * St;
15722
- }, N.reflectX = function(k) {
15723
- return arguments.length ? (d = k ? -1 : 1, D()) : d < 0;
15724
- }, N.reflectY = function(k) {
15725
- return arguments.length ? (h = k ? -1 : 1, D()) : h < 0;
15726
- }, N.precision = function(k) {
15727
- return arguments.length ? (E = I$(w, x = k * k), M()) : In(x);
15728
- }, N.fitExtent = function(k, T) {
15729
- return Zm(N, k, T);
15730
- }, N.fitSize = function(k, T) {
15731
- return sw(N, k, T);
15732
- }, N.fitWidth = function(k, T) {
15733
- return aw(N, k, T);
15734
- }, N.fitHeight = function(k, T) {
15735
- return lw(N, k, T);
15695
+ var t, n = 150, r = 480, i = 250, o = 0, s = 0, a = 0, l = 0, u = 0, c, f = 0, d = 1, h = 1, p = null, g = $$, m = null, y, _, b, v = Pf, x = 0.5, E, w, k, $, A;
15696
+ function N(S) {
15697
+ return k(S[0] * Ne, S[1] * Ne);
15698
+ }
15699
+ function F(S) {
15700
+ return S = k.invert(S[0], S[1]), S && [S[0] * St, S[1] * St];
15701
+ }
15702
+ N.stream = function(S) {
15703
+ return $ && A === S ? $ : $ = IK(PK(c)(g(E(v(A = S)))));
15704
+ }, N.preclip = function(S) {
15705
+ return arguments.length ? (g = S, p = void 0, M()) : g;
15706
+ }, N.postclip = function(S) {
15707
+ return arguments.length ? (v = S, m = y = _ = b = null, M()) : v;
15708
+ }, N.clipAngle = function(S) {
15709
+ return arguments.length ? (g = +S ? vK(p = S * Ne) : (p = null, $$), M()) : p * St;
15710
+ }, N.clipExtent = function(S) {
15711
+ return arguments.length ? (v = S == null ? (m = y = _ = b = null, Pf) : zD(m = +S[0][0], y = +S[0][1], _ = +S[1][0], b = +S[1][1]), M()) : m == null ? null : [[m, y], [_, b]];
15712
+ }, N.scale = function(S) {
15713
+ return arguments.length ? (n = +S, D()) : n;
15714
+ }, N.translate = function(S) {
15715
+ return arguments.length ? (r = +S[0], i = +S[1], D()) : [r, i];
15716
+ }, N.center = function(S) {
15717
+ return arguments.length ? (o = S[0] % 360 * Ne, s = S[1] % 360 * Ne, D()) : [o * St, s * St];
15718
+ }, N.rotate = function(S) {
15719
+ return arguments.length ? (a = S[0] % 360 * Ne, l = S[1] % 360 * Ne, u = S.length > 2 ? S[2] % 360 * Ne : 0, D()) : [a * St, l * St, u * St];
15720
+ }, N.angle = function(S) {
15721
+ return arguments.length ? (f = S % 360 * Ne, D()) : f * St;
15722
+ }, N.reflectX = function(S) {
15723
+ return arguments.length ? (d = S ? -1 : 1, D()) : d < 0;
15724
+ }, N.reflectY = function(S) {
15725
+ return arguments.length ? (h = S ? -1 : 1, D()) : h < 0;
15726
+ }, N.precision = function(S) {
15727
+ return arguments.length ? (E = I$(w, x = S * S), M()) : In(x);
15728
+ }, N.fitExtent = function(S, T) {
15729
+ return Zm(N, S, T);
15730
+ }, N.fitSize = function(S, T) {
15731
+ return sw(N, S, T);
15732
+ }, N.fitWidth = function(S, T) {
15733
+ return aw(N, S, T);
15734
+ }, N.fitHeight = function(S, T) {
15735
+ return lw(N, S, T);
15736
15736
  };
15737
15737
  function D() {
15738
- var k = P$(n, 0, 0, d, h, f).apply(null, t(o, s)), T = P$(n, r - k[0], i - k[1], d, h, f);
15739
- return c = OD(a, l, u), w = eb(t, T), S = eb(c, w), E = I$(w, x), M();
15738
+ var S = P$(n, 0, 0, d, h, f).apply(null, t(o, s)), T = P$(n, r - S[0], i - S[1], d, h, f);
15739
+ return c = OD(a, l, u), w = eb(t, T), k = eb(c, w), E = I$(w, x), M();
15740
15740
  }
15741
15741
  function M() {
15742
15742
  return $ = A = null, N;
@@ -16197,18 +16197,18 @@ function dR() {
16197
16197
  _ = y, y = l[p * e + h + 1] >= u, ao[y << 2 | _ << 3].forEach(b);
16198
16198
  ao[y << 3].forEach(b);
16199
16199
  function b(v) {
16200
- var x = [v[0][0] + h, v[0][1] + p], E = [v[1][0] + h, v[1][1] + p], w = s(x), S = s(E), $, A;
16201
- ($ = d[w]) ? (A = f[S]) ? (delete d[$.end], delete f[A.start], $ === A ? ($.ring.push(E), c($.ring)) : f[$.start] = d[A.end] = {
16200
+ var x = [v[0][0] + h, v[0][1] + p], E = [v[1][0] + h, v[1][1] + p], w = s(x), k = s(E), $, A;
16201
+ ($ = d[w]) ? (A = f[k]) ? (delete d[$.end], delete f[A.start], $ === A ? ($.ring.push(E), c($.ring)) : f[$.start] = d[A.end] = {
16202
16202
  start: $.start,
16203
16203
  end: A.end,
16204
16204
  ring: $.ring.concat(A.ring)
16205
- }) : (delete d[$.end], $.ring.push(E), d[$.end = S] = $) : ($ = f[S]) ? (A = d[w]) ? (delete f[$.start], delete d[A.end], $ === A ? ($.ring.push(E), c($.ring)) : f[A.start] = d[$.end] = {
16205
+ }) : (delete d[$.end], $.ring.push(E), d[$.end = k] = $) : ($ = f[k]) ? (A = d[w]) ? (delete f[$.start], delete d[A.end], $ === A ? ($.ring.push(E), c($.ring)) : f[A.start] = d[$.end] = {
16206
16206
  start: A.start,
16207
16207
  end: $.end,
16208
16208
  ring: A.ring.concat($.ring)
16209
- }) : (delete f[$.start], $.ring.unshift(x), f[$.start = w] = $) : f[w] = d[S] = {
16209
+ }) : (delete f[$.start], $.ring.unshift(x), f[$.start = w] = $) : f[w] = d[k] = {
16210
16210
  start: w,
16211
- end: S,
16211
+ end: k,
16212
16212
  ring: [x, E]
16213
16213
  };
16214
16214
  }
@@ -17102,11 +17102,11 @@ function nJ(e) {
17102
17102
  for (f = xw(t, eJ, tJ).visitAfter(a), u = 0; u < c; ++u)
17103
17103
  d = t[u], g = n[d.index], m = g * g, h = d.x + d.vx, p = d.y + d.vy, f.visit(_);
17104
17104
  function _(b, v, x, E, w) {
17105
- var S = b.data, $ = b.r, A = g + $;
17106
- if (S) {
17107
- if (S.index > d.index) {
17108
- var N = h - S.x - S.vx, F = p - S.y - S.vy, D = N * N + F * F;
17109
- D < A * A && (N === 0 && (N = ls(r), D += N * N), F === 0 && (F = ls(r), D += F * F), D = (A - (D = Math.sqrt(D))) / D * i, d.vx += (N *= D) * (A = ($ *= $) / (m + $)), d.vy += (F *= D) * A, S.vx -= N * (A = 1 - A), S.vy -= F * A);
17105
+ var k = b.data, $ = b.r, A = g + $;
17106
+ if (k) {
17107
+ if (k.index > d.index) {
17108
+ var N = h - k.x - k.vx, F = p - k.y - k.vy, D = N * N + F * F;
17109
+ D < A * A && (N === 0 && (N = ls(r), D += N * N), F === 0 && (F = ls(r), D += F * F), D = (A - (D = Math.sqrt(D))) / D * i, d.vx += (N *= D) * (A = ($ *= $) / (m + $)), d.vy += (F *= D) * A, k.vx -= N * (A = 1 - A), k.vy -= F * A);
17110
17110
  }
17111
17111
  return;
17112
17112
  }
@@ -17150,8 +17150,8 @@ function iJ(e) {
17150
17150
  }
17151
17151
  function d(m) {
17152
17152
  for (var y = 0, _ = e.length; y < c; ++y)
17153
- for (var b = 0, v, x, E, w, S, $, A; b < _; ++b)
17154
- v = e[b], x = v.source, E = v.target, w = E.x + E.vx - x.x - x.vx || ls(u), S = E.y + E.vy - x.y - x.vy || ls(u), $ = Math.sqrt(w * w + S * S), $ = ($ - o[b]) / $ * m * r[b], w *= $, S *= $, E.vx -= w * (A = l[b]), E.vy -= S * A, x.vx += w * (A = 1 - A), x.vy += S * A;
17153
+ for (var b = 0, v, x, E, w, k, $, A; b < _; ++b)
17154
+ v = e[b], x = v.source, E = v.target, w = E.x + E.vx - x.x - x.vx || ls(u), k = E.y + E.vy - x.y - x.vy || ls(u), $ = Math.sqrt(w * w + k * k), $ = ($ - o[b]) / $ * m * r[b], w *= $, k *= $, E.vx -= w * (A = l[b]), E.vy -= k * A, x.vx += w * (A = 1 - A), x.vy += k * A;
17155
17155
  }
17156
17156
  function h() {
17157
17157
  if (s) {
@@ -17385,10 +17385,10 @@ function vJ(e) {
17385
17385
  return arguments.length > 1 ? (m == null ? a.delete(g) : a.set(g, p(m)), t) : a.get(g);
17386
17386
  },
17387
17387
  find: function(g, m, y) {
17388
- var _ = 0, b = e.length, v, x, E, w, S;
17388
+ var _ = 0, b = e.length, v, x, E, w, k;
17389
17389
  for (y == null ? y = 1 / 0 : y *= y, _ = 0; _ < b; ++_)
17390
- w = e[_], v = g - w.x, x = m - w.y, E = v * v + x * x, E < y && (S = w, y = E);
17391
- return S;
17390
+ w = e[_], v = g - w.x, x = m - w.y, E = v * v + x * x, E < y && (k = w, y = E);
17391
+ return k;
17392
17392
  },
17393
17393
  on: function(g, m) {
17394
17394
  return arguments.length > 1 ? (u.on(g, m), t) : u.on(g);
@@ -17974,10 +17974,10 @@ function lf(e, t) {
17974
17974
  };
17975
17975
  }
17976
17976
  function MR(e, t, n) {
17977
- var r = e.x, i = e.y, o = e.r, s = t.x, a = t.y, l = t.r, u = n.x, c = n.y, f = n.r, d = r - s, h = r - u, p = i - a, g = i - c, m = l - o, y = f - o, _ = r * r + i * i - o * o, b = _ - s * s - a * a + l * l, v = _ - u * u - c * c + f * f, x = h * p - d * g, E = (p * v - g * b) / (x * 2) - r, w = (g * m - p * y) / x, S = (h * b - d * v) / (x * 2) - i, $ = (d * y - h * m) / x, A = w * w + $ * $ - 1, N = 2 * (o + E * w + S * $), F = E * E + S * S - o * o, D = -(Math.abs(A) > 1e-6 ? (N + Math.sqrt(N * N - 4 * A * F)) / (2 * A) : F / N);
17977
+ var r = e.x, i = e.y, o = e.r, s = t.x, a = t.y, l = t.r, u = n.x, c = n.y, f = n.r, d = r - s, h = r - u, p = i - a, g = i - c, m = l - o, y = f - o, _ = r * r + i * i - o * o, b = _ - s * s - a * a + l * l, v = _ - u * u - c * c + f * f, x = h * p - d * g, E = (p * v - g * b) / (x * 2) - r, w = (g * m - p * y) / x, k = (h * b - d * v) / (x * 2) - i, $ = (d * y - h * m) / x, A = w * w + $ * $ - 1, N = 2 * (o + E * w + k * $), F = E * E + k * k - o * o, D = -(Math.abs(A) > 1e-6 ? (N + Math.sqrt(N * N - 4 * A * F)) / (2 * A) : F / N);
17978
17978
  return {
17979
17979
  x: r + E + w * D,
17980
- y: i + S + $ * D,
17980
+ y: i + k + $ * D,
17981
17981
  r: D
17982
17982
  };
17983
17983
  }
@@ -18318,13 +18318,13 @@ function AQ(e, t, n, r, i) {
18318
18318
  u[w] < v ? x = w + 1 : E = w;
18319
18319
  }
18320
18320
  v - u[x - 1] < u[x] - v && f + 1 < x && --x;
18321
- var S = u[x] - b, $ = h - S;
18321
+ var k = u[x] - b, $ = h - k;
18322
18322
  if (m - p > y - g) {
18323
- var A = h ? (p * $ + m * S) / h : m;
18324
- c(f, x, S, p, g, A, y), c(x, d, $, A, g, m, y);
18323
+ var A = h ? (p * $ + m * k) / h : m;
18324
+ c(f, x, k, p, g, A, y), c(x, d, $, A, g, m, y);
18325
18325
  } else {
18326
- var N = h ? (g * $ + y * S) / h : y;
18327
- c(f, x, S, p, g, m, N), c(x, d, $, p, N, m, y);
18326
+ var N = h ? (g * $ + y * k) / h : y;
18327
+ c(f, x, k, p, g, m, N), c(x, d, $, p, N, m, y);
18328
18328
  }
18329
18329
  }
18330
18330
  }
@@ -18743,7 +18743,7 @@ function IQ(e, t) {
18743
18743
  }
18744
18744
  function PQ(e, t, n, r, i) {
18745
18745
  const o = e.width, s = e.height, a = r || i, l = ps(o, s).getContext("2d"), u = ps(o, s).getContext("2d"), c = a && ps(o, s).getContext("2d");
18746
- n.forEach((S) => lp(l, S, !1)), lp(u, t, !1), a && lp(c, t, !0);
18746
+ n.forEach((k) => lp(l, k, !1)), lp(u, t, !1), a && lp(c, t, !0);
18747
18747
  const f = Z1(l, o, s), d = Z1(u, o, s), h = a && Z1(c, o, s), p = e.bitmap(), g = a && e.bitmap();
18748
18748
  let m, y, _, b, v, x, E, w;
18749
18749
  for (y = 0; y < s; ++y)
@@ -18867,14 +18867,14 @@ function qQ(e, t, n, r) {
18867
18867
  }
18868
18868
  return function(u) {
18869
18869
  const c = u.datum.datum.items[r].items, f = c.length, d = u.datum.fontSize, h = fr.width(u.datum, u.datum.text);
18870
- let p = n ? d : 0, g = !1, m = !1, y = 0, _, b, v, x, E, w, S, $, A, N, F, D, M, k, T, R, P;
18870
+ let p = n ? d : 0, g = !1, m = !1, y = 0, _, b, v, x, E, w, k, $, A, N, F, D, M, S, T, R, P;
18871
18871
  for (let O = 0; O < f; ++O) {
18872
- for (_ = c[O].x, v = c[O].y, b = c[O].x2 === void 0 ? _ : c[O].x2, x = c[O].y2 === void 0 ? v : c[O].y2, _ > b && (P = _, _ = b, b = P), v > x && (P = v, v = x, x = P), A = e(_), F = e(b), N = ~~((A + F) / 2), D = e(v), k = e(x), M = ~~((D + k) / 2), S = N; S >= A; --S)
18872
+ for (_ = c[O].x, v = c[O].y, b = c[O].x2 === void 0 ? _ : c[O].x2, x = c[O].y2 === void 0 ? v : c[O].y2, _ > b && (P = _, _ = b, b = P), v > x && (P = v, v = x, x = P), A = e(_), F = e(b), N = ~~((A + F) / 2), D = e(v), S = e(x), M = ~~((D + S) / 2), k = N; k >= A; --k)
18873
18873
  for ($ = M; $ >= D; --$)
18874
- R = l(S, $, p, h, d), R && ([u.x, u.y, p, g] = R);
18875
- for (S = N; S <= F; ++S)
18876
- for ($ = M; $ <= k; ++$)
18877
- R = l(S, $, p, h, d), R && ([u.x, u.y, p, g] = R);
18874
+ R = l(k, $, p, h, d), R && ([u.x, u.y, p, g] = R);
18875
+ for (k = N; k <= F; ++k)
18876
+ for ($ = M; $ <= S; ++$)
18877
+ R = l(k, $, p, h, d), R && ([u.x, u.y, p, g] = R);
18878
18878
  !g && !n && (T = Math.abs(b - _ + x - v), E = (_ + b) / 2, w = (v + x) / 2, T >= y && !Ag(E, w, h, d, i, o) && !us(e, E, w, d, h, d, s, null) && (y = T, u.x = E, u.y = w, m = !0));
18879
18879
  }
18880
18880
  return g || m ? (E = h / 2, w = d / 2, s.setRange(e(u.x - E), e(u.y - w), e(u.x + E), e(u.y + w)), u.align = "center", u.baseline = "middle", !0) : !1;
@@ -18885,22 +18885,22 @@ function GQ(e, t, n, r) {
18885
18885
  const i = e.width, o = e.height, s = t[0], a = t[1], l = e.bitmap();
18886
18886
  return function(u) {
18887
18887
  const c = u.datum.datum.items[r].items, f = c.length, d = u.datum.fontSize, h = fr.width(u.datum, u.datum.text), p = [];
18888
- let g = n ? d : 0, m = !1, y = !1, _ = 0, b, v, x, E, w, S, $, A, N, F, D, M;
18889
- for (let k = 0; k < f; ++k) {
18890
- for (b = c[k].x, x = c[k].y, v = c[k].x2 === void 0 ? b : c[k].x2, E = c[k].y2 === void 0 ? x : c[k].y2, p.push([e((b + v) / 2), e((x + E) / 2)]); p.length; )
18888
+ let g = n ? d : 0, m = !1, y = !1, _ = 0, b, v, x, E, w, k, $, A, N, F, D, M;
18889
+ for (let S = 0; S < f; ++S) {
18890
+ for (b = c[S].x, x = c[S].y, v = c[S].x2 === void 0 ? b : c[S].x2, E = c[S].y2 === void 0 ? x : c[S].y2, p.push([e((b + v) / 2), e((x + E) / 2)]); p.length; )
18891
18891
  if ([$, A] = p.pop(), !(s.get($, A) || a.get($, A) || l.get($, A))) {
18892
18892
  l.set($, A);
18893
18893
  for (let T = 0; T < 4; ++T)
18894
- w = $ + WQ[T], S = A + HQ[T], l.outOfBounds(w, S, w, S) || p.push([w, S]);
18895
- if (w = e.invert($), S = e.invert(A), N = g, F = o, !Ag(w, S, h, d, i, o) && !us(e, w, S, d, h, N, s, a) && !us(e, w, S, d, h, d, s, null)) {
18894
+ w = $ + WQ[T], k = A + HQ[T], l.outOfBounds(w, k, w, k) || p.push([w, k]);
18895
+ if (w = e.invert($), k = e.invert(A), N = g, F = o, !Ag(w, k, h, d, i, o) && !us(e, w, k, d, h, N, s, a) && !us(e, w, k, d, h, d, s, null)) {
18896
18896
  for (; F - N >= 1; )
18897
- D = (N + F) / 2, us(e, w, S, d, h, D, s, a) ? F = D : N = D;
18898
- N > g && (u.x = w, u.y = S, g = N, m = !0);
18897
+ D = (N + F) / 2, us(e, w, k, d, h, D, s, a) ? F = D : N = D;
18898
+ N > g && (u.x = w, u.y = k, g = N, m = !0);
18899
18899
  }
18900
18900
  }
18901
- !m && !n && (M = Math.abs(v - b + E - x), w = (b + v) / 2, S = (x + E) / 2, M >= _ && !Ag(w, S, h, d, i, o) && !us(e, w, S, d, h, d, s, null) && (_ = M, u.x = w, u.y = S, y = !0));
18901
+ !m && !n && (M = Math.abs(v - b + E - x), w = (b + v) / 2, k = (x + E) / 2, M >= _ && !Ag(w, k, h, d, i, o) && !us(e, w, k, d, h, d, s, null) && (_ = M, u.x = w, u.y = k, y = !0));
18902
18902
  }
18903
- return m || y ? (w = h / 2, S = d / 2, s.setRange(e(u.x - w), e(u.y - S), e(u.x + w), e(u.y + S)), u.align = "center", u.baseline = "middle", !0) : !1;
18903
+ return m || y ? (w = h / 2, k = d / 2, s.setRange(e(u.x - w), e(u.y - k), e(u.x + w), e(u.y + k)), u.align = "center", u.baseline = "middle", !0) : !1;
18904
18904
  };
18905
18905
  }
18906
18906
  const VQ = ["right", "center", "left"], YQ = ["bottom", "middle", "top"];
@@ -18910,15 +18910,15 @@ function XQ(e, t, n, r) {
18910
18910
  const c = u.boundary, f = u.datum.fontSize;
18911
18911
  if (c[2] < 0 || c[5] < 0 || c[0] > i || c[3] > o)
18912
18912
  return !1;
18913
- let d = u.textWidth ?? 0, h, p, g, m, y, _, b, v, x, E, w, S, $, A, N;
18913
+ let d = u.textWidth ?? 0, h, p, g, m, y, _, b, v, x, E, w, k, $, A, N;
18914
18914
  for (let F = 0; F < l; ++F) {
18915
- if (h = (n[F] & 3) - 1, p = (n[F] >>> 2 & 3) - 1, g = h === 0 && p === 0 || r[F] < 0, m = h && p ? Math.SQRT1_2 : 1, y = r[F] < 0 ? -1 : 1, _ = c[1 + h] + r[F] * h * m, w = c[4 + p] + y * f * p / 2 + r[F] * p * m, v = w - f / 2, x = w + f / 2, S = e(_), A = e(v), N = e(x), !d)
18916
- if (sA(S, S, A, N, s, a, _, _, v, x, c, g))
18915
+ if (h = (n[F] & 3) - 1, p = (n[F] >>> 2 & 3) - 1, g = h === 0 && p === 0 || r[F] < 0, m = h && p ? Math.SQRT1_2 : 1, y = r[F] < 0 ? -1 : 1, _ = c[1 + h] + r[F] * h * m, w = c[4 + p] + y * f * p / 2 + r[F] * p * m, v = w - f / 2, x = w + f / 2, k = e(_), A = e(v), N = e(x), !d)
18916
+ if (sA(k, k, A, N, s, a, _, _, v, x, c, g))
18917
18917
  d = fr.width(u.datum, u.datum.text);
18918
18918
  else
18919
18919
  continue;
18920
- if (E = _ + y * d * h / 2, _ = E - d / 2, b = E + d / 2, S = e(_), $ = e(b), sA(S, $, A, N, s, a, _, b, v, x, c, g))
18921
- return u.x = h ? h * y < 0 ? b : _ : E, u.y = p ? p * y < 0 ? x : v : w, u.align = VQ[h * y + 1], u.baseline = YQ[p * y + 1], s.setRange(S, A, $, N), !0;
18920
+ if (E = _ + y * d * h / 2, _ = E - d / 2, b = E + d / 2, k = e(_), $ = e(b), sA(k, $, A, N, s, a, _, b, v, x, c, g))
18921
+ return u.x = h ? h * y < 0 ? b : _ : E, u.y = p ? p * y < 0 ? x : v : w, u.align = VQ[h * y + 1], u.baseline = YQ[p * y + 1], s.setRange(k, A, $, N), !0;
18922
18922
  }
18923
18923
  return !1;
18924
18924
  };
@@ -18960,16 +18960,16 @@ function JQ(e, t, n, r, i, o, s, a, l, u, c) {
18960
18960
  });
18961
18961
  u = u === null || u === 1 / 0 ? Math.max(v, x) + Math.max(...r) : u;
18962
18962
  const w = UQ(t[0], t[1], u);
18963
- let S;
18963
+ let k;
18964
18964
  if (!b) {
18965
18965
  n && E.sort((F, D) => n(F.datum, D.datum));
18966
18966
  let A = !1;
18967
18967
  for (let F = 0; F < h.length && !A; ++F)
18968
18968
  A = h[F] === 5 || d[F] < 0;
18969
18969
  const N = (p && s || m) && e.map((F) => F.datum);
18970
- S = o.length || N ? PQ(w, N || [], o, A, m) : IQ(w, s && E);
18970
+ k = o.length || N ? PQ(w, N || [], o, A, m) : IQ(w, s && E);
18971
18971
  }
18972
- const $ = m ? ZQ[c](w, S, s, l) : XQ(w, S, h, d);
18972
+ const $ = m ? ZQ[c](w, k, s, l) : XQ(w, k, h, d);
18973
18973
  return E.forEach((A) => A.opacity = +$(A)), E;
18974
18974
  }
18975
18975
  function QQ(e, t) {
@@ -19253,16 +19253,16 @@ function Md(e) {
19253
19253
  }
19254
19254
  const lee = (3 + 16 * Co) * Co, uee = (2 + 12 * Co) * Co, cee = (9 + 64 * Co) * Co * Co, Tl = Md(4), aA = Md(8), lA = Md(12), uA = Md(16), kn = Md(4);
19255
19255
  function fee(e, t, n, r, i, o, s) {
19256
- let a, l, u, c, f, d, h, p, g, m, y, _, b, v, x, E, w, S;
19256
+ let a, l, u, c, f, d, h, p, g, m, y, _, b, v, x, E, w, k;
19257
19257
  const $ = e - i, A = n - i, N = t - o, F = r - o;
19258
- v = $ * F, d = cn * $, h = d - (d - $), p = $ - h, d = cn * F, g = d - (d - F), m = F - g, x = p * m - (v - h * g - p * g - h * m), E = N * A, d = cn * N, h = d - (d - N), p = N - h, d = cn * A, g = d - (d - A), m = A - g, w = p * m - (E - h * g - p * g - h * m), y = x - w, f = x - y, Tl[0] = x - (y + f) + (f - w), _ = v + y, f = _ - v, b = v - (_ - f) + (y - f), y = b - E, f = b - y, Tl[1] = b - (y + f) + (f - E), S = _ + y, f = S - _, Tl[2] = _ - (S - f) + (y - f), Tl[3] = S;
19258
+ v = $ * F, d = cn * $, h = d - (d - $), p = $ - h, d = cn * F, g = d - (d - F), m = F - g, x = p * m - (v - h * g - p * g - h * m), E = N * A, d = cn * N, h = d - (d - N), p = N - h, d = cn * A, g = d - (d - A), m = A - g, w = p * m - (E - h * g - p * g - h * m), y = x - w, f = x - y, Tl[0] = x - (y + f) + (f - w), _ = v + y, f = _ - v, b = v - (_ - f) + (y - f), y = b - E, f = b - y, Tl[1] = b - (y + f) + (f - E), k = _ + y, f = k - _, Tl[2] = _ - (k - f) + (y - f), Tl[3] = k;
19259
19259
  let D = aee(4, Tl), M = uee * s;
19260
19260
  if (D >= M || -D >= M || (f = e - $, a = e - ($ + f) + (f - i), f = n - A, u = n - (A + f) + (f - i), f = t - N, l = t - (N + f) + (f - o), f = r - F, c = r - (F + f) + (f - o), a === 0 && l === 0 && u === 0 && c === 0) || (M = cee * s + see * Math.abs(D), D += $ * c + F * a - (N * u + A * l), D >= M || -D >= M)) return D;
19261
- v = a * F, d = cn * a, h = d - (d - a), p = a - h, d = cn * F, g = d - (d - F), m = F - g, x = p * m - (v - h * g - p * g - h * m), E = l * A, d = cn * l, h = d - (d - l), p = l - h, d = cn * A, g = d - (d - A), m = A - g, w = p * m - (E - h * g - p * g - h * m), y = x - w, f = x - y, kn[0] = x - (y + f) + (f - w), _ = v + y, f = _ - v, b = v - (_ - f) + (y - f), y = b - E, f = b - y, kn[1] = b - (y + f) + (f - E), S = _ + y, f = S - _, kn[2] = _ - (S - f) + (y - f), kn[3] = S;
19262
- const k = iy(4, Tl, 4, kn, aA);
19263
- v = $ * c, d = cn * $, h = d - (d - $), p = $ - h, d = cn * c, g = d - (d - c), m = c - g, x = p * m - (v - h * g - p * g - h * m), E = N * u, d = cn * N, h = d - (d - N), p = N - h, d = cn * u, g = d - (d - u), m = u - g, w = p * m - (E - h * g - p * g - h * m), y = x - w, f = x - y, kn[0] = x - (y + f) + (f - w), _ = v + y, f = _ - v, b = v - (_ - f) + (y - f), y = b - E, f = b - y, kn[1] = b - (y + f) + (f - E), S = _ + y, f = S - _, kn[2] = _ - (S - f) + (y - f), kn[3] = S;
19264
- const T = iy(k, aA, 4, kn, lA);
19265
- v = a * c, d = cn * a, h = d - (d - a), p = a - h, d = cn * c, g = d - (d - c), m = c - g, x = p * m - (v - h * g - p * g - h * m), E = l * u, d = cn * l, h = d - (d - l), p = l - h, d = cn * u, g = d - (d - u), m = u - g, w = p * m - (E - h * g - p * g - h * m), y = x - w, f = x - y, kn[0] = x - (y + f) + (f - w), _ = v + y, f = _ - v, b = v - (_ - f) + (y - f), y = b - E, f = b - y, kn[1] = b - (y + f) + (f - E), S = _ + y, f = S - _, kn[2] = _ - (S - f) + (y - f), kn[3] = S;
19261
+ v = a * F, d = cn * a, h = d - (d - a), p = a - h, d = cn * F, g = d - (d - F), m = F - g, x = p * m - (v - h * g - p * g - h * m), E = l * A, d = cn * l, h = d - (d - l), p = l - h, d = cn * A, g = d - (d - A), m = A - g, w = p * m - (E - h * g - p * g - h * m), y = x - w, f = x - y, kn[0] = x - (y + f) + (f - w), _ = v + y, f = _ - v, b = v - (_ - f) + (y - f), y = b - E, f = b - y, kn[1] = b - (y + f) + (f - E), k = _ + y, f = k - _, kn[2] = _ - (k - f) + (y - f), kn[3] = k;
19262
+ const S = iy(4, Tl, 4, kn, aA);
19263
+ v = $ * c, d = cn * $, h = d - (d - $), p = $ - h, d = cn * c, g = d - (d - c), m = c - g, x = p * m - (v - h * g - p * g - h * m), E = N * u, d = cn * N, h = d - (d - N), p = N - h, d = cn * u, g = d - (d - u), m = u - g, w = p * m - (E - h * g - p * g - h * m), y = x - w, f = x - y, kn[0] = x - (y + f) + (f - w), _ = v + y, f = _ - v, b = v - (_ - f) + (y - f), y = b - E, f = b - y, kn[1] = b - (y + f) + (f - E), k = _ + y, f = k - _, kn[2] = _ - (k - f) + (y - f), kn[3] = k;
19264
+ const T = iy(S, aA, 4, kn, lA);
19265
+ v = a * c, d = cn * a, h = d - (d - a), p = a - h, d = cn * c, g = d - (d - c), m = c - g, x = p * m - (v - h * g - p * g - h * m), E = l * u, d = cn * l, h = d - (d - l), p = l - h, d = cn * u, g = d - (d - u), m = u - g, w = p * m - (E - h * g - p * g - h * m), y = x - w, f = x - y, kn[0] = x - (y + f) + (f - w), _ = v + y, f = _ - v, b = v - (_ - f) + (y - f), y = b - E, f = b - y, kn[1] = b - (y + f) + (f - E), k = _ + y, f = k - _, kn[2] = _ - (k - f) + (y - f), kn[3] = k;
19266
19266
  const R = iy(T, lA, 4, kn, uA);
19267
19267
  return uA[R - 1];
19268
19268
  }
@@ -19335,34 +19335,34 @@ class Mg {
19335
19335
  for (let $ = 0; $ < s; $++)
19336
19336
  this._dists[$] = oy(t[2 * $], t[2 * $ + 1], w.x, w.y);
19337
19337
  Wl(this._ids, this._dists, 0, s - 1), this._hullStart = h;
19338
- let S = 3;
19338
+ let k = 3;
19339
19339
  r[h] = n[g] = p, r[p] = n[h] = g, r[g] = n[p] = h, i[h] = 0, i[p] = 1, i[g] = 2, o.fill(-1), o[this._hashKey(m, y)] = h, o[this._hashKey(_, b)] = p, o[this._hashKey(x, E)] = g, this.trianglesLen = 0, this._addTriangle(h, p, g, -1, -1, -1);
19340
19340
  for (let $ = 0, A, N; $ < this._ids.length; $++) {
19341
19341
  const F = this._ids[$], D = t[2 * F], M = t[2 * F + 1];
19342
19342
  if ($ > 0 && Math.abs(D - A) <= cA && Math.abs(M - N) <= cA || (A = D, N = M, F === h || F === p || F === g)) continue;
19343
- let k = 0;
19344
- for (let W = 0, le = this._hashKey(D, M); W < this._hashSize && (k = o[(le + W) % this._hashSize], !(k !== -1 && k !== r[k])); W++)
19343
+ let S = 0;
19344
+ for (let W = 0, le = this._hashKey(D, M); W < this._hashSize && (S = o[(le + W) % this._hashSize], !(S !== -1 && S !== r[S])); W++)
19345
19345
  ;
19346
- k = n[k];
19347
- let T = k, R;
19346
+ S = n[S];
19347
+ let T = S, R;
19348
19348
  for (; R = r[T], Ch(D, M, t[2 * T], t[2 * T + 1], t[2 * R], t[2 * R + 1]) >= 0; )
19349
- if (T = R, T === k) {
19349
+ if (T = R, T === S) {
19350
19350
  T = -1;
19351
19351
  break;
19352
19352
  }
19353
19353
  if (T === -1) continue;
19354
19354
  let P = this._addTriangle(T, F, r[T], -1, -1, i[T]);
19355
- i[F] = this._legalize(P + 2), i[T] = P, S++;
19355
+ i[F] = this._legalize(P + 2), i[T] = P, k++;
19356
19356
  let O = r[T];
19357
19357
  for (; R = r[O], Ch(D, M, t[2 * O], t[2 * O + 1], t[2 * R], t[2 * R + 1]) < 0; )
19358
- P = this._addTriangle(O, F, R, i[F], -1, i[O]), i[F] = this._legalize(P + 2), r[O] = O, S--, O = R;
19359
- if (T === k)
19358
+ P = this._addTriangle(O, F, R, i[F], -1, i[O]), i[F] = this._legalize(P + 2), r[O] = O, k--, O = R;
19359
+ if (T === S)
19360
19360
  for (; R = n[T], Ch(D, M, t[2 * R], t[2 * R + 1], t[2 * T], t[2 * T + 1]) < 0; )
19361
- P = this._addTriangle(R, F, T, -1, i[T], i[R]), this._legalize(P + 2), i[R] = P, r[T] = T, S--, T = R;
19361
+ P = this._addTriangle(R, F, T, -1, i[T], i[R]), this._legalize(P + 2), i[R] = P, r[T] = T, k--, T = R;
19362
19362
  this._hullStart = n[F] = T, r[T] = n[O] = F, r[F] = O, o[this._hashKey(D, M)] = F, o[this._hashKey(t[2 * T], t[2 * T + 1])] = T;
19363
19363
  }
19364
- this.hull = new Uint32Array(S);
19365
- for (let $ = 0, A = this._hullStart; $ < S; $++)
19364
+ this.hull = new Uint32Array(k);
19365
+ for (let $ = 0, A = this._hullStart; $ < k; $++)
19366
19366
  this.hull[$] = A, A = r[A];
19367
19367
  this.triangles = this._triangles.subarray(0, this.trianglesLen), this.halfedges = this._halfedges.subarray(0, this.trianglesLen);
19368
19368
  }
@@ -19535,18 +19535,18 @@ let _ee = class {
19535
19535
  let o, s;
19536
19536
  const a = this.circumcenters = this._circumcenters.subarray(0, r.length / 3 * 2);
19537
19537
  for (let g = 0, m = 0, y = r.length, _, b; g < y; g += 3, m += 2) {
19538
- const v = r[g] * 2, x = r[g + 1] * 2, E = r[g + 2] * 2, w = t[v], S = t[v + 1], $ = t[x], A = t[x + 1], N = t[E], F = t[E + 1], D = $ - w, M = A - S, k = N - w, T = F - S, R = (D * T - M * k) * 2;
19538
+ const v = r[g] * 2, x = r[g + 1] * 2, E = r[g + 2] * 2, w = t[v], k = t[v + 1], $ = t[x], A = t[x + 1], N = t[E], F = t[E + 1], D = $ - w, M = A - k, S = N - w, T = F - k, R = (D * T - M * S) * 2;
19539
19539
  if (Math.abs(R) < 1e-9) {
19540
19540
  if (o === void 0) {
19541
19541
  o = s = 0;
19542
19542
  for (const O of n) o += t[O * 2], s += t[O * 2 + 1];
19543
19543
  o /= n.length, s /= n.length;
19544
19544
  }
19545
- const P = 1e9 * Math.sign((o - w) * T - (s - S) * k);
19546
- _ = (w + N) / 2 - P * T, b = (S + F) / 2 + P * k;
19545
+ const P = 1e9 * Math.sign((o - w) * T - (s - k) * S);
19546
+ _ = (w + N) / 2 - P * T, b = (k + F) / 2 + P * S;
19547
19547
  } else {
19548
- const P = 1 / R, O = D * D + M * M, W = k * k + T * T;
19549
- _ = w + (T * O - M * W) * P, b = S + (D * W - k * O) * P;
19548
+ const P = 1 / R, O = D * D + M * M, W = S * S + T * T;
19549
+ _ = w + (T * O - M * W) * P, b = k + (D * W - S * O) * P;
19550
19550
  }
19551
19551
  a[m] = _, a[m + 1] = b;
19552
19552
  }
@@ -20019,12 +20019,12 @@ function Tee() {
20019
20019
  };
20020
20020
  }
20021
20021
  function h(p, g, m) {
20022
- for (var y = g.x, _ = g.y, b = Math.hypot(e[0], e[1]), v = l(e), x = c() < 0.5 ? 1 : -1, E = -x, w, S, $; (w = v(E += x)) && (S = ~~w[0], $ = ~~w[1], !(Math.min(Math.abs(S), Math.abs($)) >= b)); )
20023
- if (g.x = y + S, g.y = _ + $, !(g.x + g.x0 < 0 || g.y + g.y0 < 0 || g.x + g.x1 > e[0] || g.y + g.y1 > e[1]) && (!m || !Fee(g, p, e[0])) && (!m || Ree(g, m))) {
20024
- for (var A = g.sprite, N = g.width >> 5, F = e[0] >> 5, D = g.x - (N << 4), M = D & 127, k = 32 - M, T = g.y1 - g.y0, R = (g.y + g.y0) * F + (D >> 5), P, O = 0; O < T; O++) {
20022
+ for (var y = g.x, _ = g.y, b = Math.hypot(e[0], e[1]), v = l(e), x = c() < 0.5 ? 1 : -1, E = -x, w, k, $; (w = v(E += x)) && (k = ~~w[0], $ = ~~w[1], !(Math.min(Math.abs(k), Math.abs($)) >= b)); )
20023
+ if (g.x = y + k, g.y = _ + $, !(g.x + g.x0 < 0 || g.y + g.y0 < 0 || g.x + g.x1 > e[0] || g.y + g.y1 > e[1]) && (!m || !Fee(g, p, e[0])) && (!m || Ree(g, m))) {
20024
+ for (var A = g.sprite, N = g.width >> 5, F = e[0] >> 5, D = g.x - (N << 4), M = D & 127, S = 32 - M, T = g.y1 - g.y0, R = (g.y + g.y0) * F + (D >> 5), P, O = 0; O < T; O++) {
20025
20025
  P = 0;
20026
20026
  for (var W = 0; W <= N; W++)
20027
- p[R + W] |= P << k | (W < N ? (P = A[O * N + W]) >>> M : 0);
20027
+ p[R + W] |= P << S | (W < N ? (P = A[O * N + W]) >>> M : 0);
20028
20028
  R += F;
20029
20029
  }
20030
20030
  return g.sprite = null, !0;
@@ -20074,15 +20074,15 @@ function Nee(e, t, n, r) {
20074
20074
  for (c = t.width, f = c >> 5, d = t.y1 - t.y0, h = 0; h < d * f; h++) E[h] = 0;
20075
20075
  if (s = t.xoff, s == null) return;
20076
20076
  a = t.yoff;
20077
- var w = 0, S = -1;
20077
+ var w = 0, k = -1;
20078
20078
  for (p = 0; p < d; p++) {
20079
20079
  for (h = 0; h < c; h++) {
20080
20080
  var $ = f * p + (h >> 5), A = x[(a + p) * (uf << 5) + (s + h) << 2] ? 1 << 31 - h % 32 : 0;
20081
20081
  E[$] |= A, w |= A;
20082
20082
  }
20083
- w ? S = p : (t.y0++, d--, p--, a++);
20083
+ w ? k = p : (t.y0++, d--, p--, a++);
20084
20084
  }
20085
- t.y1 = t.y0 + S, t.sprite = E.slice(0, (t.y1 - t.y0) * f);
20085
+ t.y1 = t.y0 + k, t.sprite = E.slice(0, (t.y1 - t.y0) * f);
20086
20086
  }
20087
20087
  }
20088
20088
  }
@@ -21452,20 +21452,20 @@ function bne(e, t, n, r) {
21452
21452
  if (u = o[v], d = u.unit, c = u.fields, f = u.values, c && f) {
21453
21453
  for (x = 0, E = c.length; x < E; ++x)
21454
21454
  h = c[x], g = s[h.field] || (s[h.field] = {}), m = g[d] || (g[d] = []), l[h.field] = y = h.type.charAt(0), _ = cy[`${y}_union`], g[d] = _(m, ee(f[x]));
21455
- n && (m = a[d] || (a[d] = []), m.push(ee(f).reduce((w, S, $) => (w[c[$].field] = S, w), {})));
21455
+ n && (m = a[d] || (a[d] = []), m.push(ee(f).reduce((w, k, $) => (w[c[$].field] = k, w), {})));
21456
21456
  } else
21457
21457
  h = $i, p = Hf(u), g = s[h] || (s[h] = {}), m = g[d] || (g[d] = []), m.push(p), n && (m = a[d] || (a[d] = []), m.push({
21458
21458
  [$i]: p
21459
21459
  }));
21460
21460
  if (t = t || wA, s[$i] ? s[$i] = cy[`${$i}_${t}`](...Object.values(s[$i])) : Object.keys(s).forEach((w) => {
21461
- s[w] = Object.keys(s[w]).map((S) => s[w][S]).reduce((S, $) => S === void 0 ? $ : cy[`${l[w]}_${t}`](S, $));
21461
+ s[w] = Object.keys(s[w]).map((k) => s[w][k]).reduce((k, $) => k === void 0 ? $ : cy[`${l[w]}_${t}`](k, $));
21462
21462
  }), o = Object.keys(a), n && o.length) {
21463
21463
  const w = r ? tne : ene;
21464
21464
  s[w] = t === wA ? {
21465
- [EA]: o.reduce((S, $) => (S.push(...a[$]), S), [])
21465
+ [EA]: o.reduce((k, $) => (k.push(...a[$]), k), [])
21466
21466
  } : {
21467
- [nne]: o.map((S) => ({
21468
- [EA]: a[S]
21467
+ [nne]: o.map((k) => ({
21468
+ [EA]: a[k]
21469
21469
  }))
21470
21470
  };
21471
21471
  }
@@ -23756,13 +23756,13 @@ function Gse(e, t, n, r, i) {
23756
23756
  from: f,
23757
23757
  clip: u ? !0 : void 0,
23758
23758
  encode: m
23759
- }, n.symbols), S = Vt(c);
23760
- S.offset = o("labelOffset"), m = {
23759
+ }, n.symbols), k = Vt(c);
23760
+ k.offset = o("labelOffset"), m = {
23761
23761
  enter: y = {
23762
23762
  opacity: Ue,
23763
23763
  x: {
23764
23764
  signal: d,
23765
- offset: S
23765
+ offset: k
23766
23766
  },
23767
23767
  y: h
23768
23768
  },
@@ -24142,8 +24142,8 @@ function m0(e, t) {
24142
24142
  mod: !1,
24143
24143
  pulse: y
24144
24144
  }))), l.params.parent = t.encode(), e.transform && e.transform.forEach((E) => {
24145
- const w = pE(E, t), S = w.metadata;
24146
- (S.generates || S.changes) && I("Mark transforms should not generate new data."), S.nomod || (c.params.mod = !0), w.params.pulse = ue(l), t.add(l = w);
24145
+ const w = pE(E, t), k = w.metadata;
24146
+ (k.generates || k.changes) && I("Mark transforms should not generate new data."), k.nomod || (c.params.mod = !0), w.params.pulse = ue(l), t.add(l = w);
24147
24147
  }), e.sort && (l = t.add(use({
24148
24148
  sort: t.compareRef(e.sort),
24149
24149
  pulse: ue(l)
@@ -24743,10 +24743,10 @@ function jae(e, t, n, r, i, o) {
24743
24743
  baseline: h
24744
24744
  });
24745
24745
  const w = s("labelBound");
24746
- let S = s("labelOverlap");
24747
- return S = S || w ? {
24746
+ let k = s("labelOverlap");
24747
+ return k = k || w ? {
24748
24748
  separation: s("labelSeparation"),
24749
- method: S,
24749
+ method: k,
24750
24750
  order: "datum.index",
24751
24751
  bound: w ? {
24752
24752
  scale: l,
@@ -24760,7 +24760,7 @@ function jae(e, t, n, r, i, o) {
24760
24760
  key: Mr,
24761
24761
  from: r,
24762
24762
  encode: E,
24763
- overlap: S
24763
+ overlap: k
24764
24764
  }, n);
24765
24765
  }
24766
24766
  function qae(e, t, n, r) {
@@ -29326,13 +29326,13 @@ function z9(e, { config: t }) {
29326
29326
  a,
29327
29327
  // TODO: https://github.com/vega/vega-lite/issues/6245
29328
29328
  t
29329
- ), c = a.invalid, f = P9(l), { bins: d, timeUnits: h, transform: p, continuousAxisChannelDef: g, continuousAxis: m, groupby: y, aggregate: _, encodingWithoutContinuousAxis: b, ticksOrient: v, boxOrient: x, customTooltipWithoutAggregatedField: E } = Rfe(e, l, t), w = ic(g.field), { color: S, size: $, ...A } = b, N = (En) => fC(a, m, g, En, t.boxplot), F = N(A), D = N(b), M = (J(t.boxplot.box) ? t.boxplot.box.color : t.mark.color) || "#4c78a8", k = N({
29329
+ ), c = a.invalid, f = P9(l), { bins: d, timeUnits: h, transform: p, continuousAxisChannelDef: g, continuousAxis: m, groupby: y, aggregate: _, encodingWithoutContinuousAxis: b, ticksOrient: v, boxOrient: x, customTooltipWithoutAggregatedField: E } = Rfe(e, l, t), w = ic(g.field), { color: k, size: $, ...A } = b, N = (En) => fC(a, m, g, En, t.boxplot), F = N(A), D = N(b), M = (J(t.boxplot.box) ? t.boxplot.box.color : t.mark.color) || "#4c78a8", S = N({
29330
29330
  ...A,
29331
29331
  ...$ ? { size: $ } : {},
29332
29332
  color: {
29333
29333
  condition: {
29334
29334
  test: `${Xe(`lower_box_${g.field}`)} >= ${Xe(`upper_box_${g.field}`)}`,
29335
- ...S || { value: M }
29335
+ ...k || { value: M }
29336
29336
  }
29337
29337
  }
29338
29338
  }), T = Xb([
@@ -29389,7 +29389,7 @@ function z9(e, { config: t }) {
29389
29389
  endPositionPrefix: "upper_box",
29390
29390
  extraEncoding: T
29391
29391
  }),
29392
- ...k({
29392
+ ...S({
29393
29393
  partName: "median",
29394
29394
  mark: {
29395
29395
  type: "tick",
@@ -29458,7 +29458,7 @@ function z9(e, { config: t }) {
29458
29458
  ...j !== void 0 ? { axis: j } : {}
29459
29459
  },
29460
29460
  ..._e,
29461
- ...S ? { color: S } : {},
29461
+ ...k ? { color: k } : {},
29462
29462
  ...E ? { tooltip: E } : {}
29463
29463
  }
29464
29464
  })[0];
@@ -29650,16 +29650,16 @@ function Bfe(e) {
29650
29650
  function j9(e, t, n) {
29651
29651
  const { mark: r, encoding: i, params: o, projection: s, ...a } = e, l = Hi(r) ? r : { type: r };
29652
29652
  o && G(R8(t));
29653
- const { orient: u, inputType: c } = Ife(e, t), { continuousAxisChannelDef: f, continuousAxisChannelDef2: d, continuousAxisChannelDefError: h, continuousAxisChannelDefError2: p, continuousAxis: g } = L9(e, u, t), { errorBarSpecificAggregate: m, postAggregateCalculates: y, tooltipSummary: _, tooltipTitleWithFieldName: b } = Ufe(l, f, d, h, p, c, t, n), { [g]: v, [g === "x" ? "x2" : "y2"]: x, [g === "x" ? "xError" : "yError"]: E, [g === "x" ? "xError2" : "yError2"]: w, ...S } = i, { bins: $, timeUnits: A, aggregate: N, groupby: F, encoding: D } = D9(S, n), M = [...N, ...m], k = c !== "raw" ? [] : F, T = Xb(_, f, D, b);
29653
+ const { orient: u, inputType: c } = Ife(e, t), { continuousAxisChannelDef: f, continuousAxisChannelDef2: d, continuousAxisChannelDefError: h, continuousAxisChannelDefError2: p, continuousAxis: g } = L9(e, u, t), { errorBarSpecificAggregate: m, postAggregateCalculates: y, tooltipSummary: _, tooltipTitleWithFieldName: b } = Ufe(l, f, d, h, p, c, t, n), { [g]: v, [g === "x" ? "x2" : "y2"]: x, [g === "x" ? "xError" : "yError"]: E, [g === "x" ? "xError2" : "yError2"]: w, ...k } = i, { bins: $, timeUnits: A, aggregate: N, groupby: F, encoding: D } = D9(k, n), M = [...N, ...m], S = c !== "raw" ? [] : F, T = Xb(_, f, D, b);
29654
29654
  return {
29655
29655
  transform: [
29656
29656
  ...a.transform ?? [],
29657
29657
  ...$,
29658
29658
  ...A,
29659
- ...M.length === 0 ? [] : [{ aggregate: M, groupby: k }],
29659
+ ...M.length === 0 ? [] : [{ aggregate: M, groupby: S }],
29660
29660
  ...y
29661
29661
  ],
29662
- groupby: k,
29662
+ groupby: S,
29663
29663
  continuousAxisChannelDef: f,
29664
29664
  continuousAxis: g,
29665
29665
  encodingWithoutContinuousAxis: D,
@@ -32589,7 +32589,7 @@ function Rhe(e, t, n) {
32589
32589
  m = m || {
32590
32590
  [c]: Dhe(c, h || l, p || u, o, _, !!e, r.type)
32591
32591
  };
32592
- const b = (u || p)?.get("type") === "band" && Xa(_) && !y ? "top" : "middle", v = $L(t, r, o, b), x = v === "xc" || v === "yc", { offset: E, offsetType: w } = Ou({ channel: t, markDef: r, encoding: i, model: n, bandPosition: x ? 0.5 : 0 }), S = tC({
32592
+ const b = (u || p)?.get("type") === "band" && Xa(_) && !y ? "top" : "middle", v = $L(t, r, o, b), x = v === "xc" || v === "yc", { offset: E, offsetType: w } = Ou({ channel: t, markDef: r, encoding: i, model: n, bandPosition: x ? 0.5 : 0 }), k = tC({
32593
32593
  channel: t,
32594
32594
  channelDef: e,
32595
32595
  markDef: r,
@@ -32602,14 +32602,14 @@ function Rhe(e, t, n) {
32602
32602
  bandPosition: x ? w === "encoding" ? 0 : 0.5 : ae(_) ? { signal: `(1-${_})/2` } : Xa(_) ? (1 - _.band) / 2 : 0
32603
32603
  });
32604
32604
  if (c)
32605
- return { [v]: S, ...m };
32605
+ return { [v]: k, ...m };
32606
32606
  {
32607
32607
  const $ = Ms(f), A = m[c], N = E ? { ...A, offset: E } : A;
32608
32608
  return {
32609
- [v]: S,
32609
+ [v]: k,
32610
32610
  // posRef might be an array that wraps position invalid test
32611
- [$]: B(S) ? [S[0], { ...S[1], offset: N }] : {
32612
- ...S,
32611
+ [$]: B(k) ? [k[0], { ...k[1], offset: N }] : {
32612
+ ...k,
32613
32613
  offset: N
32614
32614
  }
32615
32615
  };
@@ -32628,21 +32628,21 @@ function H3(e, t, n, r, i, o, s) {
32628
32628
  return i = i || 0, r + (n ? -i - l : +i + l);
32629
32629
  }
32630
32630
  function Ohe({ fieldDef: e, fieldDef2: t, channel: n, model: r }) {
32631
- const { config: i, markDef: o, encoding: s } = r, a = r.getScaleComponent(n), l = r.scaleName(n), u = a ? a.get("type") : void 0, c = a.get("reverse"), f = y9({ channel: n, fieldDef: e, markDef: o, config: i, scaleType: u }), h = r.component.axes[n]?.[0]?.get("translate") ?? 0.5, p = At(n) ? Ye("binSpacing", o, i) ?? 0 : 0, g = ro(n), m = Ms(n), y = Ms(g), _ = Wi("minBandSize", o, i), { offset: b } = Ou({ channel: n, markDef: o, encoding: s, model: r, bandPosition: 0 }), { offset: v } = Ou({ channel: g, markDef: o, encoding: s, model: r, bandPosition: 0 }), x = ofe({ fieldDef: e, scaleName: l }), E = H3(n, p, c, h, b, _, x), w = H3(g, p, c, h, v ?? b, _, x), S = ae(f) ? { signal: `(1-${f.signal})/2` } : Xa(f) ? (1 - f.band) / 2 : 0.5, $ = Ts({ fieldDef: e, fieldDef2: t, markDef: o, config: i });
32631
+ const { config: i, markDef: o, encoding: s } = r, a = r.getScaleComponent(n), l = r.scaleName(n), u = a ? a.get("type") : void 0, c = a.get("reverse"), f = y9({ channel: n, fieldDef: e, markDef: o, config: i, scaleType: u }), h = r.component.axes[n]?.[0]?.get("translate") ?? 0.5, p = At(n) ? Ye("binSpacing", o, i) ?? 0 : 0, g = ro(n), m = Ms(n), y = Ms(g), _ = Wi("minBandSize", o, i), { offset: b } = Ou({ channel: n, markDef: o, encoding: s, model: r, bandPosition: 0 }), { offset: v } = Ou({ channel: g, markDef: o, encoding: s, model: r, bandPosition: 0 }), x = ofe({ fieldDef: e, scaleName: l }), E = H3(n, p, c, h, b, _, x), w = H3(g, p, c, h, v ?? b, _, x), k = ae(f) ? { signal: `(1-${f.signal})/2` } : Xa(f) ? (1 - f.band) / 2 : 0.5, $ = Ts({ fieldDef: e, fieldDef2: t, markDef: o, config: i });
32632
32632
  if (it(e.bin) || e.timeUnit) {
32633
32633
  const A = e.timeUnit && $ !== 0.5;
32634
32634
  return {
32635
32635
  [y]: G3({
32636
32636
  fieldDef: e,
32637
32637
  scaleName: l,
32638
- bandPosition: S,
32638
+ bandPosition: k,
32639
32639
  offset: w,
32640
32640
  useRectOffsetField: A
32641
32641
  }),
32642
32642
  [m]: G3({
32643
32643
  fieldDef: e,
32644
32644
  scaleName: l,
32645
- bandPosition: ae(S) ? { signal: `1-${S.signal}` } : 1 - S,
32645
+ bandPosition: ae(k) ? { signal: `1-${k.signal}` } : 1 - k,
32646
32646
  offset: E,
32647
32647
  useRectOffsetField: A
32648
32648
  })
@@ -33125,10 +33125,10 @@ function ff(e, t, n, r = { header: !1 }) {
33125
33125
  if (_) {
33126
33126
  const { vgProp: b, part: v } = _, x = [
33127
33127
  ...y.map((E) => {
33128
- const { test: w, ...S } = E;
33128
+ const { test: w, ...k } = E;
33129
33129
  return {
33130
33130
  test: Xg(null, w),
33131
- ...S
33131
+ ...k
33132
33132
  };
33133
33133
  }),
33134
33134
  m
@@ -40681,12 +40681,12 @@ function B7() {
40681
40681
  KM = 1;
40682
40682
  const e = /\s+/g;
40683
40683
  class t {
40684
- constructor(k, T) {
40685
- if (T = i(T), k instanceof t)
40686
- return k.loose === !!T.loose && k.includePrerelease === !!T.includePrerelease ? k : new t(k.raw, T);
40687
- if (k instanceof o)
40688
- return this.raw = k.value, this.set = [[k]], this.formatted = void 0, this;
40689
- if (this.options = T, this.loose = !!T.loose, this.includePrerelease = !!T.includePrerelease, this.raw = k.trim().replace(e, " "), this.set = this.raw.split("||").map((R) => this.parseRange(R.trim())).filter((R) => R.length), !this.set.length)
40684
+ constructor(S, T) {
40685
+ if (T = i(T), S instanceof t)
40686
+ return S.loose === !!T.loose && S.includePrerelease === !!T.includePrerelease ? S : new t(S.raw, T);
40687
+ if (S instanceof o)
40688
+ return this.raw = S.value, this.set = [[S]], this.formatted = void 0, this;
40689
+ if (this.options = T, this.loose = !!T.loose, this.includePrerelease = !!T.includePrerelease, this.raw = S.trim().replace(e, " "), this.set = this.raw.split("||").map((R) => this.parseRange(R.trim())).filter((R) => R.length), !this.set.length)
40690
40690
  throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
40691
40691
  if (this.set.length > 1) {
40692
40692
  const R = this.set[0];
@@ -40705,9 +40705,9 @@ function B7() {
40705
40705
  get range() {
40706
40706
  if (this.formatted === void 0) {
40707
40707
  this.formatted = "";
40708
- for (let k = 0; k < this.set.length; k++) {
40709
- k > 0 && (this.formatted += "||");
40710
- const T = this.set[k];
40708
+ for (let S = 0; S < this.set.length; S++) {
40709
+ S > 0 && (this.formatted += "||");
40710
+ const T = this.set[S];
40711
40711
  for (let R = 0; R < T.length; R++)
40712
40712
  R > 0 && (this.formatted += " "), this.formatted += T[R].toString().trim();
40713
40713
  }
@@ -40720,13 +40720,13 @@ function B7() {
40720
40720
  toString() {
40721
40721
  return this.range;
40722
40722
  }
40723
- parseRange(k) {
40724
- const R = ((this.options.includePrerelease && h) | (this.options.loose && p)) + ":" + k, P = r.get(R);
40723
+ parseRange(S) {
40724
+ const R = ((this.options.includePrerelease && h) | (this.options.loose && p)) + ":" + S, P = r.get(R);
40725
40725
  if (P)
40726
40726
  return P;
40727
40727
  const O = this.options.loose, W = O ? l[u.HYPHENRANGELOOSE] : l[u.HYPHENRANGE];
40728
- k = k.replace(W, F(this.options.includePrerelease)), s("hyphen replace", k), k = k.replace(l[u.COMPARATORTRIM], c), s("comparator trim", k), k = k.replace(l[u.TILDETRIM], f), s("tilde trim", k), k = k.replace(l[u.CARETTRIM], d), s("caret trim", k);
40729
- let le = k.split(" ").map((pe) => _(pe, this.options)).join(" ").split(/\s+/).map((pe) => N(pe, this.options));
40728
+ S = S.replace(W, F(this.options.includePrerelease)), s("hyphen replace", S), S = S.replace(l[u.COMPARATORTRIM], c), s("comparator trim", S), S = S.replace(l[u.TILDETRIM], f), s("tilde trim", S), S = S.replace(l[u.CARETTRIM], d), s("caret trim", S);
40729
+ let le = S.split(" ").map((pe) => _(pe, this.options)).join(" ").split(/\s+/).map((pe) => N(pe, this.options));
40730
40730
  O && (le = le.filter((pe) => (s("loose invalid filter", pe, this.options), !!pe.match(l[u.COMPARATORLOOSE])))), s("range list", le);
40731
40731
  const ie = /* @__PURE__ */ new Map(), oe = le.map((pe) => new o(pe, this.options));
40732
40732
  for (const pe of oe) {
@@ -40738,23 +40738,23 @@ function B7() {
40738
40738
  const Pe = [...ie.values()];
40739
40739
  return r.set(R, Pe), Pe;
40740
40740
  }
40741
- intersects(k, T) {
40742
- if (!(k instanceof t))
40741
+ intersects(S, T) {
40742
+ if (!(S instanceof t))
40743
40743
  throw new TypeError("a Range is required");
40744
- return this.set.some((R) => y(R, T) && k.set.some((P) => y(P, T) && R.every((O) => P.every((W) => O.intersects(W, T)))));
40744
+ return this.set.some((R) => y(R, T) && S.set.some((P) => y(P, T) && R.every((O) => P.every((W) => O.intersects(W, T)))));
40745
40745
  }
40746
40746
  // if ANY of the sets match ALL of its comparators, then pass
40747
- test(k) {
40748
- if (!k)
40747
+ test(S) {
40748
+ if (!S)
40749
40749
  return !1;
40750
- if (typeof k == "string")
40750
+ if (typeof S == "string")
40751
40751
  try {
40752
- k = new a(k, this.options);
40752
+ S = new a(S, this.options);
40753
40753
  } catch {
40754
40754
  return !1;
40755
40755
  }
40756
40756
  for (let T = 0; T < this.set.length; T++)
40757
- if (D(this.set[T], k, this.options))
40757
+ if (D(this.set[T], S, this.options))
40758
40758
  return !0;
40759
40759
  return !1;
40760
40760
  }
@@ -40766,45 +40766,45 @@ function B7() {
40766
40766
  comparatorTrimReplace: c,
40767
40767
  tildeTrimReplace: f,
40768
40768
  caretTrimReplace: d
40769
- } = KC(), { FLAG_INCLUDE_PRERELEASE: h, FLAG_LOOSE: p } = XC(), g = (M) => M.value === "<0.0.0-0", m = (M) => M.value === "", y = (M, k) => {
40769
+ } = KC(), { FLAG_INCLUDE_PRERELEASE: h, FLAG_LOOSE: p } = XC(), g = (M) => M.value === "<0.0.0-0", m = (M) => M.value === "", y = (M, S) => {
40770
40770
  let T = !0;
40771
40771
  const R = M.slice();
40772
40772
  let P = R.pop();
40773
40773
  for (; T && R.length; )
40774
- T = R.every((O) => P.intersects(O, k)), P = R.pop();
40774
+ T = R.every((O) => P.intersects(O, S)), P = R.pop();
40775
40775
  return T;
40776
- }, _ = (M, k) => (s("comp", M, k), M = E(M, k), s("caret", M), M = v(M, k), s("tildes", M), M = S(M, k), s("xrange", M), M = A(M, k), s("stars", M), M), b = (M) => !M || M.toLowerCase() === "x" || M === "*", v = (M, k) => M.trim().split(/\s+/).map((T) => x(T, k)).join(" "), x = (M, k) => {
40777
- const T = k.loose ? l[u.TILDELOOSE] : l[u.TILDE];
40776
+ }, _ = (M, S) => (s("comp", M, S), M = E(M, S), s("caret", M), M = v(M, S), s("tildes", M), M = k(M, S), s("xrange", M), M = A(M, S), s("stars", M), M), b = (M) => !M || M.toLowerCase() === "x" || M === "*", v = (M, S) => M.trim().split(/\s+/).map((T) => x(T, S)).join(" "), x = (M, S) => {
40777
+ const T = S.loose ? l[u.TILDELOOSE] : l[u.TILDE];
40778
40778
  return M.replace(T, (R, P, O, W, le) => {
40779
40779
  s("tilde", M, R, P, O, W, le);
40780
40780
  let ie;
40781
40781
  return b(P) ? ie = "" : b(O) ? ie = `>=${P}.0.0 <${+P + 1}.0.0-0` : b(W) ? ie = `>=${P}.${O}.0 <${P}.${+O + 1}.0-0` : le ? (s("replaceTilde pr", le), ie = `>=${P}.${O}.${W}-${le} <${P}.${+O + 1}.0-0`) : ie = `>=${P}.${O}.${W} <${P}.${+O + 1}.0-0`, s("tilde return", ie), ie;
40782
40782
  });
40783
- }, E = (M, k) => M.trim().split(/\s+/).map((T) => w(T, k)).join(" "), w = (M, k) => {
40784
- s("caret", M, k);
40785
- const T = k.loose ? l[u.CARETLOOSE] : l[u.CARET], R = k.includePrerelease ? "-0" : "";
40783
+ }, E = (M, S) => M.trim().split(/\s+/).map((T) => w(T, S)).join(" "), w = (M, S) => {
40784
+ s("caret", M, S);
40785
+ const T = S.loose ? l[u.CARETLOOSE] : l[u.CARET], R = S.includePrerelease ? "-0" : "";
40786
40786
  return M.replace(T, (P, O, W, le, ie) => {
40787
40787
  s("caret", M, P, O, W, le, ie);
40788
40788
  let oe;
40789
40789
  return b(O) ? oe = "" : b(W) ? oe = `>=${O}.0.0${R} <${+O + 1}.0.0-0` : b(le) ? O === "0" ? oe = `>=${O}.${W}.0${R} <${O}.${+W + 1}.0-0` : oe = `>=${O}.${W}.0${R} <${+O + 1}.0.0-0` : ie ? (s("replaceCaret pr", ie), O === "0" ? W === "0" ? oe = `>=${O}.${W}.${le}-${ie} <${O}.${W}.${+le + 1}-0` : oe = `>=${O}.${W}.${le}-${ie} <${O}.${+W + 1}.0-0` : oe = `>=${O}.${W}.${le}-${ie} <${+O + 1}.0.0-0`) : (s("no pr"), O === "0" ? W === "0" ? oe = `>=${O}.${W}.${le}${R} <${O}.${W}.${+le + 1}-0` : oe = `>=${O}.${W}.${le}${R} <${O}.${+W + 1}.0-0` : oe = `>=${O}.${W}.${le} <${+O + 1}.0.0-0`), s("caret return", oe), oe;
40790
40790
  });
40791
- }, S = (M, k) => (s("replaceXRanges", M, k), M.split(/\s+/).map((T) => $(T, k)).join(" ")), $ = (M, k) => {
40791
+ }, k = (M, S) => (s("replaceXRanges", M, S), M.split(/\s+/).map((T) => $(T, S)).join(" ")), $ = (M, S) => {
40792
40792
  M = M.trim();
40793
- const T = k.loose ? l[u.XRANGELOOSE] : l[u.XRANGE];
40793
+ const T = S.loose ? l[u.XRANGELOOSE] : l[u.XRANGE];
40794
40794
  return M.replace(T, (R, P, O, W, le, ie) => {
40795
40795
  s("xRange", M, R, P, O, W, le, ie);
40796
40796
  const oe = b(O), Pe = oe || b(W), pe = Pe || b(le), ut = pe;
40797
- return P === "=" && ut && (P = ""), ie = k.includePrerelease ? "-0" : "", oe ? P === ">" || P === "<" ? R = "<0.0.0-0" : R = "*" : P && ut ? (Pe && (W = 0), le = 0, P === ">" ? (P = ">=", Pe ? (O = +O + 1, W = 0, le = 0) : (W = +W + 1, le = 0)) : P === "<=" && (P = "<", Pe ? O = +O + 1 : W = +W + 1), P === "<" && (ie = "-0"), R = `${P + O}.${W}.${le}${ie}`) : Pe ? R = `>=${O}.0.0${ie} <${+O + 1}.0.0-0` : pe && (R = `>=${O}.${W}.0${ie} <${O}.${+W + 1}.0-0`), s("xRange return", R), R;
40797
+ return P === "=" && ut && (P = ""), ie = S.includePrerelease ? "-0" : "", oe ? P === ">" || P === "<" ? R = "<0.0.0-0" : R = "*" : P && ut ? (Pe && (W = 0), le = 0, P === ">" ? (P = ">=", Pe ? (O = +O + 1, W = 0, le = 0) : (W = +W + 1, le = 0)) : P === "<=" && (P = "<", Pe ? O = +O + 1 : W = +W + 1), P === "<" && (ie = "-0"), R = `${P + O}.${W}.${le}${ie}`) : Pe ? R = `>=${O}.0.0${ie} <${+O + 1}.0.0-0` : pe && (R = `>=${O}.${W}.0${ie} <${O}.${+W + 1}.0-0`), s("xRange return", R), R;
40798
40798
  });
40799
- }, A = (M, k) => (s("replaceStars", M, k), M.trim().replace(l[u.STAR], "")), N = (M, k) => (s("replaceGTE0", M, k), M.trim().replace(l[k.includePrerelease ? u.GTE0PRE : u.GTE0], "")), F = (M) => (k, T, R, P, O, W, le, ie, oe, Pe, pe, ut) => (b(R) ? T = "" : b(P) ? T = `>=${R}.0.0${M ? "-0" : ""}` : b(O) ? T = `>=${R}.${P}.0${M ? "-0" : ""}` : W ? T = `>=${T}` : T = `>=${T}${M ? "-0" : ""}`, b(oe) ? ie = "" : b(Pe) ? ie = `<${+oe + 1}.0.0-0` : b(pe) ? ie = `<${oe}.${+Pe + 1}.0-0` : ut ? ie = `<=${oe}.${Pe}.${pe}-${ut}` : M ? ie = `<${oe}.${Pe}.${+pe + 1}-0` : ie = `<=${ie}`, `${T} ${ie}`.trim()), D = (M, k, T) => {
40799
+ }, A = (M, S) => (s("replaceStars", M, S), M.trim().replace(l[u.STAR], "")), N = (M, S) => (s("replaceGTE0", M, S), M.trim().replace(l[S.includePrerelease ? u.GTE0PRE : u.GTE0], "")), F = (M) => (S, T, R, P, O, W, le, ie, oe, Pe, pe, ut) => (b(R) ? T = "" : b(P) ? T = `>=${R}.0.0${M ? "-0" : ""}` : b(O) ? T = `>=${R}.${P}.0${M ? "-0" : ""}` : W ? T = `>=${T}` : T = `>=${T}${M ? "-0" : ""}`, b(oe) ? ie = "" : b(Pe) ? ie = `<${+oe + 1}.0.0-0` : b(pe) ? ie = `<${oe}.${+Pe + 1}.0-0` : ut ? ie = `<=${oe}.${Pe}.${pe}-${ut}` : M ? ie = `<${oe}.${Pe}.${+pe + 1}-0` : ie = `<=${ie}`, `${T} ${ie}`.trim()), D = (M, S, T) => {
40800
40800
  for (let R = 0; R < M.length; R++)
40801
- if (!M[R].test(k))
40801
+ if (!M[R].test(S))
40802
40802
  return !1;
40803
- if (k.prerelease.length && !T.includePrerelease) {
40803
+ if (S.prerelease.length && !T.includePrerelease) {
40804
40804
  for (let R = 0; R < M.length; R++)
40805
40805
  if (s(M[R].semver), M[R].semver !== o.ANY && M[R].semver.prerelease.length > 0) {
40806
40806
  const P = M[R].semver;
40807
- if (P.major === k.major && P.minor === k.minor && P.patch === k.patch)
40807
+ if (P.major === S.major && P.minor === S.minor && P.patch === S.patch)
40808
40808
  return !0;
40809
40809
  }
40810
40810
  return !1;
@@ -41052,8 +41052,8 @@ async function D1e(e, t, n = {}, r) {
41052
41052
  if (n.defaultStyle !== !1) {
41053
41053
  const x = "vega-embed-style", { root: E, rootContainer: w } = F1e(c);
41054
41054
  if (!E.getElementById(x)) {
41055
- const S = document.createElement("style");
41056
- S.id = x, S.innerHTML = n.defaultStyle === void 0 || n.defaultStyle === !0 ? x1e.toString() : n.defaultStyle, w.appendChild(S);
41055
+ const k = document.createElement("style");
41056
+ k.id = x, k.innerHTML = n.defaultStyle === void 0 || n.defaultStyle === !0 ? x1e.toString() : n.defaultStyle, w.appendChild(k);
41057
41057
  }
41058
41058
  }
41059
41059
  const f = M1e(t, l, n.mode);
@@ -41084,11 +41084,11 @@ async function D1e(e, t, n = {}, r) {
41084
41084
  const { type: w } = E;
41085
41085
  w == "fit-x" ? (h.classList.add("fit-x"), h.classList.remove("fit-y")) : w == "fit-y" ? (h.classList.remove("fit-x"), h.classList.add("fit-y")) : w == "fit" ? h.classList.add("fit-x", "fit-y") : h.classList.remove("fit-x", "fit-y");
41086
41086
  }), n.tooltip !== !1) {
41087
- const { loader: x, tooltip: E } = n, w = x && !q7(x) ? x?.baseURL : void 0, S = A1e(E) ? E : (
41087
+ const { loader: x, tooltip: E } = n, w = x && !q7(x) ? x?.baseURL : void 0, k = A1e(E) ? E : (
41088
41088
  // user provided boolean true or tooltip options
41089
41089
  new H0e({ baseURL: w, ...E === !0 ? {} : E }).call
41090
41090
  );
41091
- y.tooltip(S);
41091
+ y.tooltip(k);
41092
41092
  }
41093
41093
  let { hover: _ } = n;
41094
41094
  if (_ === void 0 && (_ = f === "vega"), _) {
@@ -41102,8 +41102,8 @@ async function D1e(e, t, n = {}, r) {
41102
41102
  if (n.defaultStyle !== !1 || n.forceActionsMenu) {
41103
41103
  const w = document.createElement("details");
41104
41104
  w.title = s.CLICK_TO_VIEW_ACTIONS, c.append(w), x = w;
41105
- const S = document.createElement("summary");
41106
- S.innerHTML = S1e, w.append(S), b = ($) => {
41105
+ const k = document.createElement("summary");
41106
+ k.innerHTML = S1e, w.append(k), b = ($) => {
41107
41107
  w.contains($.target) || w.removeAttribute("open");
41108
41108
  }, document.addEventListener("click", b);
41109
41109
  }
@@ -41111,8 +41111,8 @@ async function D1e(e, t, n = {}, r) {
41111
41111
  if (x.append(E), E.classList.add("vega-actions"), o === !0 || o.export !== !1) {
41112
41112
  for (const w of ["svg", "png"])
41113
41113
  if (o === !0 || o.export === !0 || o.export[w]) {
41114
- const S = s[`${w.toUpperCase()}_ACTION`], $ = document.createElement("a"), A = J(n.scaleFactor) ? n.scaleFactor[w] : n.scaleFactor;
41115
- $.text = S, $.href = "#", $.target = "_blank", $.download = `${u}.${w}`, $.addEventListener("mousedown", async function(N) {
41114
+ const k = s[`${w.toUpperCase()}_ACTION`], $ = document.createElement("a"), A = J(n.scaleFactor) ? n.scaleFactor[w] : n.scaleFactor;
41115
+ $.text = k, $.href = "#", $.target = "_blank", $.download = `${u}.${w}`, $.addEventListener("mousedown", async function(N) {
41116
41116
  N.preventDefault();
41117
41117
  const F = await y.toImageURL(w, A);
41118
41118
  this.href = F;
@@ -41121,26 +41121,26 @@ async function D1e(e, t, n = {}, r) {
41121
41121
  }
41122
41122
  if (o === !0 || o.source !== !1) {
41123
41123
  const w = document.createElement("a");
41124
- w.text = s.SOURCE_ACTION, w.href = "#", w.addEventListener("click", function(S) {
41125
- QM(f1(t), n.sourceHeader ?? "", n.sourceFooter ?? "", f), S.preventDefault();
41124
+ w.text = s.SOURCE_ACTION, w.href = "#", w.addEventListener("click", function(k) {
41125
+ QM(f1(t), n.sourceHeader ?? "", n.sourceFooter ?? "", f), k.preventDefault();
41126
41126
  }), E.append(w);
41127
41127
  }
41128
41128
  if (f === "vega-lite" && (o === !0 || o.compiled !== !1)) {
41129
41129
  const w = document.createElement("a");
41130
- w.text = s.COMPILED_ACTION, w.href = "#", w.addEventListener("click", function(S) {
41131
- QM(f1(d), n.sourceHeader ?? "", n.sourceFooter ?? "", "vega"), S.preventDefault();
41130
+ w.text = s.COMPILED_ACTION, w.href = "#", w.addEventListener("click", function(k) {
41131
+ QM(f1(d), n.sourceHeader ?? "", n.sourceFooter ?? "", "vega"), k.preventDefault();
41132
41132
  }), E.append(w);
41133
41133
  }
41134
41134
  if (o === !0 || o.editor !== !1) {
41135
- const w = n.editorUrl ?? "https://vega.github.io/editor/", S = document.createElement("a");
41136
- S.text = s.EDITOR_ACTION, S.href = "#", S.addEventListener("click", function($) {
41135
+ const w = n.editorUrl ?? "https://vega.github.io/editor/", k = document.createElement("a");
41136
+ k.text = s.EDITOR_ACTION, k.href = "#", k.addEventListener("click", function($) {
41137
41137
  v1e(window, w, {
41138
41138
  config: i,
41139
41139
  mode: p ? "vega" : f,
41140
41140
  renderer: a,
41141
41141
  spec: f1(p ? d : t)
41142
41142
  }), $.preventDefault();
41143
- }), E.append(S);
41143
+ }), E.append(k);
41144
41144
  }
41145
41145
  }
41146
41146
  function v() {
@@ -41371,7 +41371,7 @@ function uye(e) {
41371
41371
  }, 50);
41372
41372
  }, v = xe(() => aye(i), [i]), x = xe(() => H7(i), [i]), E = xe(() => x ? lye(x) : null, [x]), w = () => {
41373
41373
  c(!0), !v && f.current && f.current.play();
41374
- }, S = (N) => {
41374
+ }, k = (N) => {
41375
41375
  const F = Math.floor(N / 1e3), D = Math.floor(F / 60), M = F % 60;
41376
41376
  return `${D}:${M.toString().padStart(2, "0")}`;
41377
41377
  };
@@ -41407,8 +41407,8 @@ function uye(e) {
41407
41407
  v && p({ width: 16, height: 9 });
41408
41408
  }, [v]);
41409
41409
  const A = xe(() => {
41410
- const N = g || window.innerWidth, F = y || window.innerHeight, M = h || { width: 16, height: 9 }, { width: k, height: T } = M, R = k / T;
41411
- if (k > T) {
41410
+ const N = g || window.innerWidth, F = y || window.innerHeight, M = h || { width: 16, height: 9 }, { width: S, height: T } = M, R = S / T;
41411
+ if (S > T) {
41412
41412
  const O = N * 0.76, W = O / R;
41413
41413
  return {
41414
41414
  width: `${O}px`,
@@ -41467,7 +41467,7 @@ function uye(e) {
41467
41467
  /* @__PURE__ */ C("circle", { cx: "24", cy: "24", r: "24", fill: "rgba(0, 0, 0, 0.6)" }),
41468
41468
  /* @__PURE__ */ C("path", { d: "M18 14L18 34L32 24L18 14Z", fill: "white" })
41469
41469
  ] }) }),
41470
- o && /* @__PURE__ */ C("div", { className: aa.duration_badge, children: S(o) })
41470
+ o && /* @__PURE__ */ C("div", { className: aa.duration_badge, children: k(o) })
41471
41471
  ] }) })
41472
41472
  }
41473
41473
  )
@@ -41996,10 +41996,10 @@ function Q_e(e) {
41996
41996
  visible: !1,
41997
41997
  fileName: "",
41998
41998
  blobUrl: null
41999
- }), E = a?.size ?? s.length, w = Math.ceil(s.length / E), S = xe(() => {
41999
+ }), E = a?.size ?? s.length, w = Math.ceil(s.length / E), k = xe(() => {
42000
42000
  if (!a) return s;
42001
- const k = (_ - 1) * E, T = k + E;
42002
- return s.slice(k, T);
42001
+ const S = (_ - 1) * E, T = S + E;
42002
+ return s.slice(S, T);
42003
42003
  }, [s, a, _, E]), $ = xe(
42004
42004
  () => ({
42005
42005
  color: h?.color,
@@ -42007,12 +42007,12 @@ function Q_e(e) {
42007
42007
  }),
42008
42008
  [h]
42009
42009
  ), A = () => {
42010
- b((k) => Math.max(1, k - 1));
42010
+ b((S) => Math.max(1, S - 1));
42011
42011
  }, N = () => {
42012
- b((k) => Math.min(w, k + 1));
42012
+ b((S) => Math.min(w, S + 1));
42013
42013
  }, F = re(
42014
- (k) => {
42015
- const T = k === "jsonl" ? K_e(o, s, l) : `\uFEFF${X_e(o, s, l)}`, R = k === "jsonl" ? "application/x-ndjson;charset=utf-8;" : "text/csv;charset=utf-8;", P = new Blob([T], { type: R }), O = URL.createObjectURL(P), W = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10), ie = `${(i || "table").replace(/[^a-zA-Z0-9\u4e00-\u9fff]/g, "_")}_${W}.${k}`, oe = document.createElement("a");
42014
+ (S) => {
42015
+ const T = S === "jsonl" ? K_e(o, s, l) : `\uFEFF${X_e(o, s, l)}`, R = S === "jsonl" ? "application/x-ndjson;charset=utf-8;" : "text/csv;charset=utf-8;", P = new Blob([T], { type: R }), O = URL.createObjectURL(P), W = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10), ie = `${(i || "table").replace(/[^a-zA-Z0-9\u4e00-\u9fff]/g, "_")}_${W}.${S}`, oe = document.createElement("a");
42016
42016
  oe.href = O, oe.download = ie, document.body.appendChild(oe), oe.click(), document.body.removeChild(oe), y(!1), x({ visible: !0, fileName: ie, blobUrl: O });
42017
42017
  },
42018
42018
  [o, s, l, i]
@@ -42023,10 +42023,10 @@ function Q_e(e) {
42023
42023
  }, [v.blobUrl]);
42024
42024
  return Fe(() => {
42025
42025
  if (v.visible) {
42026
- const k = setTimeout(() => {
42026
+ const S = setTimeout(() => {
42027
42027
  M();
42028
42028
  }, 5e3);
42029
- return () => clearTimeout(k);
42029
+ return () => clearTimeout(S);
42030
42030
  }
42031
42031
  }, [v.visible, M]), /* @__PURE__ */ U(
42032
42032
  on,
@@ -42066,7 +42066,7 @@ function Q_e(e) {
42066
42066
  "button",
42067
42067
  {
42068
42068
  className: Re.download_button,
42069
- onClick: () => y((k) => !k),
42069
+ onClick: () => y((S) => !S),
42070
42070
  "aria-label": "Download",
42071
42071
  "aria-haspopup": "menu",
42072
42072
  "aria-expanded": m,
@@ -42106,12 +42106,12 @@ ${u}
42106
42106
  c && /* @__PURE__ */ C("div", { className: Re.sql_explanation, children: /* @__PURE__ */ C(bp, { children: c }) })
42107
42107
  ] }) : s.length === 0 ? /* @__PURE__ */ C("div", { className: Re.empty_state, children: "No data available" }) : /* @__PURE__ */ U(ys, { children: [
42108
42108
  /* @__PURE__ */ C("div", { className: Re.table_wrapper, children: /* @__PURE__ */ U("table", { className: Re.table, children: [
42109
- /* @__PURE__ */ C("thead", { className: Re.table_header, children: /* @__PURE__ */ C("tr", { children: o.map((k, T) => /* @__PURE__ */ C("th", { className: Re.table_header_cell, children: /* @__PURE__ */ U("div", { className: Re.header_cell_content, children: [
42110
- /* @__PURE__ */ C("span", { className: Re.header_label, children: k.header }),
42111
- l === "OBJECT" && k.key && /* @__PURE__ */ C("span", { className: Re.header_key, children: k.key })
42109
+ /* @__PURE__ */ C("thead", { className: Re.table_header, children: /* @__PURE__ */ C("tr", { children: o.map((S, T) => /* @__PURE__ */ C("th", { className: Re.table_header_cell, children: /* @__PURE__ */ U("div", { className: Re.header_cell_content, children: [
42110
+ /* @__PURE__ */ C("span", { className: Re.header_label, children: S.header }),
42111
+ l === "OBJECT" && S.key && /* @__PURE__ */ C("span", { className: Re.header_key, children: S.key })
42112
42112
  ] }) }, T)) }) }),
42113
- /* @__PURE__ */ C("tbody", { children: S.map((k, T) => /* @__PURE__ */ C("tr", { className: Re.table_row, children: o.map((R, P) => {
42114
- const O = JC(k, R, P, l), W = K7(O, R.format);
42113
+ /* @__PURE__ */ C("tbody", { children: k.map((S, T) => /* @__PURE__ */ C("tr", { className: Re.table_row, children: o.map((R, P) => {
42114
+ const O = JC(S, R, P, l), W = K7(O, R.format);
42115
42115
  return /* @__PURE__ */ C("td", { className: Re.table_cell, children: W }, P);
42116
42116
  }) }, T)) })
42117
42117
  ] }) }),
@@ -42127,18 +42127,18 @@ ${u}
42127
42127
  }
42128
42128
  ),
42129
42129
  Z_e(_, w).map(
42130
- (k, T) => k === "ellipsis" ? /* @__PURE__ */ C("span", { className: Re.pagination_ellipsis, children: "…" }, `ellipsis-${T}`) : /* @__PURE__ */ C(
42130
+ (S, T) => S === "ellipsis" ? /* @__PURE__ */ C("span", { className: Re.pagination_ellipsis, children: "…" }, `ellipsis-${T}`) : /* @__PURE__ */ C(
42131
42131
  "button",
42132
42132
  {
42133
42133
  className: Ce(
42134
42134
  Re.pagination_page,
42135
- k === _ && Re["pagination_page--active"]
42135
+ S === _ && Re["pagination_page--active"]
42136
42136
  ),
42137
- onClick: () => b(k),
42138
- "aria-current": k === _ ? "page" : void 0,
42139
- children: k
42137
+ onClick: () => b(S),
42138
+ "aria-current": S === _ ? "page" : void 0,
42139
+ children: S
42140
42140
  },
42141
- k
42141
+ S
42142
42142
  )
42143
42143
  ),
42144
42144
  /* @__PURE__ */ C(
@@ -42656,7 +42656,7 @@ function nve({ footerEndActions: e } = {}) {
42656
42656
  programmaticScrollToBottom: f,
42657
42657
  pendingInputValue: d,
42658
42658
  setPendingInputValue: h
42659
- } = Ot(), { data: p } = Ev(), g = yt(), { chatbot: m } = g, y = xe(() => s !== void 0 ? s : p.annotations?.embedConfig?.enableUpload ?? !1, [s, p.annotations?.embedConfig?.enableUpload]), _ = xe(() => a !== void 0 ? a : p.annotations?.embedConfig?.enableExport ?? !1, [a, p.annotations?.embedConfig?.enableExport]), b = xe(() => l !== void 0 ? l : p.annotations?.embedConfig?.enableDocumentUpload ?? !1, [l, p.annotations?.embedConfig?.enableDocumentUpload]), v = xe(() => p.annotations?.embedConfig?.title || c || "Bot", [p.annotations?.embedConfig?.title, c]), [x, E] = ve(""), [w, S] = ve(!1), [$, A] = ve([]), [N, F] = ve(null), [D, M] = ve([]), [k, T] = ve(!1), R = rt(null), P = rt(null), O = rt(null), W = rt(null), le = xe(
42659
+ } = Ot(), { data: p } = Ev(), g = yt(), { chatbot: m } = g, y = xe(() => s !== void 0 ? s : p.annotations?.embedConfig?.enableUpload ?? !1, [s, p.annotations?.embedConfig?.enableUpload]), _ = xe(() => a !== void 0 ? a : p.annotations?.embedConfig?.enableExport ?? !1, [a, p.annotations?.embedConfig?.enableExport]), b = xe(() => l !== void 0 ? l : p.annotations?.embedConfig?.enableDocumentUpload ?? !1, [l, p.annotations?.embedConfig?.enableDocumentUpload]), v = xe(() => p.annotations?.embedConfig?.title || c || "Bot", [p.annotations?.embedConfig?.title, c]), [x, E] = ve(""), [w, k] = ve(!1), [$, A] = ve([]), [N, F] = ve(null), [D, M] = ve([]), [S, T] = ve(!1), R = rt(null), P = rt(null), O = rt(null), W = rt(null), le = xe(
42660
42660
  () => $.some((Y) => Y.uploadStatus === "uploading"),
42661
42661
  [$]
42662
42662
  ), ie = xe(
@@ -42703,10 +42703,10 @@ function nve({ footerEndActions: e } = {}) {
42703
42703
  const Y = (be) => {
42704
42704
  O.current && !O.current.contains(be.target) && T(!1);
42705
42705
  };
42706
- return k && document.addEventListener("mousedown", Y), () => {
42706
+ return S && document.addEventListener("mousedown", Y), () => {
42707
42707
  document.removeEventListener("mousedown", Y);
42708
42708
  };
42709
- }, [k]);
42709
+ }, [S]);
42710
42710
  const ge = re((Y) => {
42711
42711
  const be = W.current?.parentElement?.clientHeight ?? 0, $e = be > 0 ? Math.max(96, Math.round(be * 0.4)) : 240;
42712
42712
  Y.style.height = "40px", Y.style.height = `${Math.min(Y.scrollHeight, $e)}px`, Y.style.overflowY = Y.scrollHeight > $e ? "auto" : "hidden";
@@ -43066,12 +43066,12 @@ function nve({ footerEndActions: e } = {}) {
43066
43066
  {
43067
43067
  className: me.attachment_button,
43068
43068
  style: m.footer?.attachmentButton?.style,
43069
- onClick: () => T(!k),
43069
+ onClick: () => T(!S),
43070
43070
  title: "更多選項",
43071
43071
  children: /* @__PURE__ */ C(Vbe, {})
43072
43072
  }
43073
43073
  ),
43074
- k && /* @__PURE__ */ U(
43074
+ S && /* @__PURE__ */ U(
43075
43075
  "div",
43076
43076
  {
43077
43077
  className: me.attachment_menu,
@@ -43172,8 +43172,8 @@ function nve({ footerEndActions: e } = {}) {
43172
43172
  onPaste: tI,
43173
43173
  onFocus: bt,
43174
43174
  onAnimationEnd: Tt,
43175
- onCompositionStart: () => S(!0),
43176
- onCompositionEnd: () => S(!1)
43175
+ onCompositionStart: () => k(!0),
43176
+ onCompositionEnd: () => k(!1)
43177
43177
  }
43178
43178
  ),
43179
43179
  /* @__PURE__ */ U("div", { className: me.send_zone, children: [
@@ -43253,8 +43253,8 @@ function sve(e) {
43253
43253
  }, p = (g) => {
43254
43254
  const y = g.target.closest('[data-scrollable="true"]'), _ = g.touches[0].clientY, b = f - _;
43255
43255
  if (y) {
43256
- const { scrollTop: v, scrollHeight: x, clientHeight: E } = y, w = v === 0 && b < 0, S = v + E >= x && b > 0;
43257
- (w || S) && g.preventDefault();
43256
+ const { scrollTop: v, scrollHeight: x, clientHeight: E } = y, w = v === 0 && b < 0, k = v + E >= x && b > 0;
43257
+ (w || k) && g.preventDefault();
43258
43258
  } else
43259
43259
  g.preventDefault();
43260
43260
  };
@@ -43286,14 +43286,14 @@ function uT(e) {
43286
43286
  const _ = (x) => {
43287
43287
  const w = x.target.closest('[data-scrollable="true"]');
43288
43288
  if (w) {
43289
- const { scrollTop: S, scrollHeight: $, clientHeight: A } = w, N = S === 0 && x.deltaY < 0, F = S + A >= $ && x.deltaY > 0;
43289
+ const { scrollTop: k, scrollHeight: $, clientHeight: A } = w, N = k === 0 && x.deltaY < 0, F = k + A >= $ && x.deltaY > 0;
43290
43290
  (N || F) && x.preventDefault();
43291
43291
  } else
43292
43292
  x.preventDefault();
43293
43293
  }, b = (x) => {
43294
43294
  y = x.touches[0].clientY;
43295
43295
  }, v = (x) => {
43296
- const w = x.target.closest('[data-scrollable="true"]'), S = x.touches[0].clientY, $ = y - S;
43296
+ const w = x.target.closest('[data-scrollable="true"]'), k = x.touches[0].clientY, $ = y - k;
43297
43297
  if (w) {
43298
43298
  const { scrollTop: A, scrollHeight: N, clientHeight: F } = w, D = A === 0 && $ < 0, M = A + F >= N && $ > 0;
43299
43299
  (D || M) && x.preventDefault();
@@ -43394,42 +43394,43 @@ function Rve({ className: e }) {
43394
43394
  return /* @__PURE__ */ C("svg", { className: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ C("path", { d: "M9 18l6-6-6-6" }) });
43395
43395
  }
43396
43396
  function Ove(e) {
43397
- const { pendingCall: t, totalCount: n, currentIndex: r, onDecide: i, onDismiss: o } = e, [s, a] = ve(!1), [l, u] = ve(!1), [c, f] = ve(""), { chatbot: d } = yt(), h = d?.primaryComponent?.secondaryColor ?? d?.secondaryColor, p = d?.inactiveColor, g = d?.backgroundColor, m = d?.borderColor, y = xe(
43397
+ const { pendingCall: t, totalCount: n, currentIndex: r, onDecide: i, onDismiss: o } = e, [s, a] = ve(!1), [l, u] = ve(!1), [c, f] = ve(""), d = yt(), { chatbot: h } = d, p = h?.primaryComponent?.mainColor ?? h?.mainColor ?? d.userMessage?.backgroundColor, g = h?.primaryComponent?.secondaryColor ?? h?.secondaryColor, m = h?.inactiveColor, y = h?.backgroundColor, _ = h?.borderColor, b = xe(
43398
43398
  () => ({
43399
- ...h && {
43400
- "--asgard-consent-modal-accent": h,
43401
- "--asgard-consent-modal-accent-hover": `color-mix(in srgb, ${h} 85%, black)`
43399
+ ...p && {
43400
+ "--asgard-consent-modal-accent": p,
43401
+ "--asgard-consent-modal-accent-hover": `color-mix(in srgb, ${p} 85%, black)`
43402
43402
  },
43403
- ...g && {
43404
- "--asgard-consent-modal-bg": g,
43405
- "--asgard-consent-modal-input-bg": g
43403
+ ...g && { "--asgard-consent-modal-primary-fg": g },
43404
+ ...y && {
43405
+ "--asgard-consent-modal-bg": y,
43406
+ "--asgard-consent-modal-input-bg": y
43406
43407
  },
43407
- ...m && { "--asgard-consent-modal-border": m },
43408
- ...p && { "--asgard-consent-modal-muted": p }
43408
+ ..._ && { "--asgard-consent-modal-border": _ },
43409
+ ...m && { "--asgard-consent-modal-muted": m }
43409
43410
  }),
43410
- [h, g, m, p]
43411
+ [p, g, y, _, m]
43411
43412
  );
43412
43413
  Fe(() => {
43413
43414
  a(!1), u(!1), f("");
43414
43415
  }, [t.toolCallId]), Fe(() => {
43415
- const E = document.body.style.overflow;
43416
+ const k = document.body.style.overflow;
43416
43417
  return document.body.style.overflow = "hidden", () => {
43417
- document.body.style.overflow = E;
43418
+ document.body.style.overflow = k;
43418
43419
  };
43419
43420
  }, []);
43420
- const _ = re(() => i({ result: "ALLOW_ONCE" }), [i]), b = re(() => i({ result: "ALLOW_ALWAYS" }), [i]), v = re(() => {
43421
+ const v = re(() => i({ result: "ALLOW_ONCE" }), [i]), x = re(() => i({ result: "ALLOW_ALWAYS" }), [i]), E = re(() => {
43421
43422
  if (!l) {
43422
43423
  u(!0);
43423
43424
  return;
43424
43425
  }
43425
43426
  i({ result: "DENY_ONCE", denyReason: c.trim() });
43426
- }, [l, c, i]), x = re(
43427
- (E) => {
43428
- E.target === E.currentTarget && o?.();
43427
+ }, [l, c, i]), w = re(
43428
+ (k) => {
43429
+ k.target === k.currentTarget && o?.();
43429
43430
  },
43430
43431
  [o]
43431
43432
  );
43432
- return /* @__PURE__ */ C("div", { className: kt.backdrop, onClick: x, style: y, children: /* @__PURE__ */ U("div", { className: kt.modal, role: "dialog", "aria-modal": "true", children: [
43433
+ return /* @__PURE__ */ C("div", { className: kt.backdrop, onClick: w, style: b, children: /* @__PURE__ */ U("div", { className: kt.modal, role: "dialog", "aria-modal": "true", children: [
43433
43434
  /* @__PURE__ */ U("div", { className: kt.header, children: [
43434
43435
  /* @__PURE__ */ U("div", { className: kt.title, children: [
43435
43436
  "允許使用工具 ",
@@ -43459,7 +43460,7 @@ function Ove(e) {
43459
43460
  {
43460
43461
  type: "button",
43461
43462
  className: Ce(kt.input_toggle, s && kt.input_toggle_expanded),
43462
- onClick: () => a((E) => !E),
43463
+ onClick: () => a((k) => !k),
43463
43464
  children: [
43464
43465
  /* @__PURE__ */ C(Rve, {}),
43465
43466
  /* @__PURE__ */ C("span", { children: "輸入內容" })
@@ -43475,7 +43476,7 @@ function Ove(e) {
43475
43476
  {
43476
43477
  id: "asgard-consent-deny-reason",
43477
43478
  value: c,
43478
- onChange: (E) => f(E.target.value),
43479
+ onChange: (k) => f(k.target.value),
43479
43480
  placeholder: "告訴 AI 你為什麼拒絕此次工具呼叫。"
43480
43481
  }
43481
43482
  )
@@ -43488,9 +43489,9 @@ function Ove(e) {
43488
43489
  " 個待處理工具呼叫"
43489
43490
  ] }),
43490
43491
  /* @__PURE__ */ U("div", { className: kt.actions, children: [
43491
- /* @__PURE__ */ C("button", { type: "button", className: Ce(kt.action_btn, kt.action_primary), onClick: b, children: "本次對話皆允許" }),
43492
- /* @__PURE__ */ C("button", { type: "button", className: Ce(kt.action_btn, kt.action_secondary), onClick: _, children: "僅此次允許" }),
43493
- /* @__PURE__ */ C("button", { type: "button", className: Ce(kt.action_btn, kt.action_danger), onClick: v, children: l ? "送出拒絕" : "拒絕" })
43492
+ /* @__PURE__ */ C("button", { type: "button", className: Ce(kt.action_btn, kt.action_primary), onClick: x, children: "本次對話皆允許" }),
43493
+ /* @__PURE__ */ C("button", { type: "button", className: Ce(kt.action_btn, kt.action_secondary), onClick: v, children: "僅此次允許" }),
43494
+ /* @__PURE__ */ C("button", { type: "button", className: Ce(kt.action_btn, kt.action_danger), onClick: E, children: l ? "送出拒絕" : "拒絕" })
43494
43495
  ] })
43495
43496
  ] }) });
43496
43497
  }
@@ -43631,14 +43632,14 @@ const Ive = "_chatbot__auth_state_container_1hs4h_1", Pve = "_chatbot__error_sta
43631
43632
  onReset: x,
43632
43633
  onClose: E,
43633
43634
  onTemplateBtnClick: w,
43634
- onErrorClick: S,
43635
+ onErrorClick: k,
43635
43636
  errorMessageRenderer: $,
43636
43637
  messageActions: A,
43637
43638
  onMessageAction: N,
43638
43639
  renderMessageContent: F,
43639
43640
  className: D,
43640
43641
  style: M,
43641
- defaultLinkTarget: k,
43642
+ defaultLinkTarget: S,
43642
43643
  authState: T = "authenticated",
43643
43644
  onApiKeySubmit: R,
43644
43645
  onAuthError: P,
@@ -43719,10 +43720,10 @@ const Ive = "_chatbot__auth_state_container_1hs4h_1", Pve = "_chatbot__error_sta
43719
43720
  /* @__PURE__ */ C(
43720
43721
  vI,
43721
43722
  {
43722
- onErrorClick: S,
43723
+ onErrorClick: k,
43723
43724
  errorMessageRenderer: $,
43724
43725
  onTemplateBtnClick: w,
43725
- defaultLinkTarget: k,
43726
+ defaultLinkTarget: S,
43726
43727
  messageActions: A,
43727
43728
  onMessageAction: N,
43728
43729
  renderMessageContent: F,