@nine-lab/nine-ux 0.1.189 → 0.1.191

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.
@@ -3232,7 +3232,7 @@ class yp {
3232
3232
  }
3233
3233
  }
3234
3234
  const Fx = /* @__PURE__ */ Object.create(null);
3235
- class Cs {
3235
+ class Es {
3236
3236
  /**
3237
3237
  Get the step map that represents the changes made by this step,
3238
3238
  and which can be used to transform between positions in the old
@@ -3315,7 +3315,7 @@ function Zk(n, t, e) {
3315
3315
  }
3316
3316
  return He.fromArray(r);
3317
3317
  }
3318
- class Kl extends Cs {
3318
+ class Kl extends Es {
3319
3319
  /**
3320
3320
  Create a mark step.
3321
3321
  */
@@ -3353,8 +3353,8 @@ class Kl extends Cs {
3353
3353
  return new Kl(e.from, e.to, t.markFromJSON(e.mark));
3354
3354
  }
3355
3355
  }
3356
- Cs.jsonID("addMark", Kl);
3357
- class va extends Cs {
3356
+ Es.jsonID("addMark", Kl);
3357
+ class va extends Es {
3358
3358
  /**
3359
3359
  Create a mark-removing step.
3360
3360
  */
@@ -3392,8 +3392,8 @@ class va extends Cs {
3392
3392
  return new va(e.from, e.to, t.markFromJSON(e.mark));
3393
3393
  }
3394
3394
  }
3395
- Cs.jsonID("removeMark", va);
3396
- class Xl extends Cs {
3395
+ Es.jsonID("removeMark", va);
3396
+ class Xl extends Es {
3397
3397
  /**
3398
3398
  Create a node mark step.
3399
3399
  */
@@ -3436,8 +3436,8 @@ class Xl extends Cs {
3436
3436
  return new Xl(e.pos, t.markFromJSON(e.mark));
3437
3437
  }
3438
3438
  }
3439
- Cs.jsonID("addNodeMark", Xl);
3440
- class xu extends Cs {
3439
+ Es.jsonID("addNodeMark", Xl);
3440
+ class xu extends Es {
3441
3441
  /**
3442
3442
  Create a mark-removing step.
3443
3443
  */
@@ -3471,8 +3471,8 @@ class xu extends Cs {
3471
3471
  return new xu(e.pos, t.markFromJSON(e.mark));
3472
3472
  }
3473
3473
  }
3474
- Cs.jsonID("removeNodeMark", xu);
3475
- class Sn extends Cs {
3474
+ Es.jsonID("removeNodeMark", xu);
3475
+ class Sn extends Es {
3476
3476
  /**
3477
3477
  The given `slice` should fit the 'gap' between `from` and
3478
3478
  `to`—the depths must line up, and the surrounding nodes must be
@@ -3524,8 +3524,8 @@ class Sn extends Cs {
3524
3524
  }
3525
3525
  }
3526
3526
  Sn.MAP_BIAS = 1;
3527
- Cs.jsonID("replace", Sn);
3528
- class Fn extends Cs {
3527
+ Es.jsonID("replace", Sn);
3528
+ class Fn extends Es {
3529
3529
  /**
3530
3530
  Create a replace-around step with the given range and gap.
3531
3531
  `insert` should be the point in the slice into which the content
@@ -3582,7 +3582,7 @@ class Fn extends Cs {
3582
3582
  return new Fn(e.from, e.to, e.gapFrom, e.gapTo, dt.fromJSON(t, e.slice), e.insert, !!e.structure);
3583
3583
  }
3584
3584
  }
3585
- Cs.jsonID("replaceAround", Fn);
3585
+ Es.jsonID("replaceAround", Fn);
3586
3586
  function uS(n, t, e) {
3587
3587
  let r = n.resolve(t), s = e - t, i = r.depth;
3588
3588
  for (; s > 0 && i > 0 && r.indexAfter(i) == r.node(i).childCount; )
@@ -4184,7 +4184,7 @@ function V5(n, t) {
4184
4184
  }
4185
4185
  return e;
4186
4186
  }
4187
- class gd extends Cs {
4187
+ class gd extends Es {
4188
4188
  /**
4189
4189
  Construct an attribute step.
4190
4190
  */
@@ -4221,8 +4221,8 @@ class gd extends Cs {
4221
4221
  return new gd(e.pos, e.attr, e.value);
4222
4222
  }
4223
4223
  }
4224
- Cs.jsonID("attr", gd);
4225
- class wp extends Cs {
4224
+ Es.jsonID("attr", gd);
4225
+ class wp extends Es {
4226
4226
  /**
4227
4227
  Construct an attribute step.
4228
4228
  */
@@ -4255,7 +4255,7 @@ class wp extends Cs {
4255
4255
  return new wp(e.attr, e.value);
4256
4256
  }
4257
4257
  }
4258
- Cs.jsonID("docAttr", wp);
4258
+ Es.jsonID("docAttr", wp);
4259
4259
  let Bh = class extends Error {
4260
4260
  };
4261
4261
  Bh = function n(t) {
@@ -5430,7 +5430,7 @@ function N9(n, t, e) {
5430
5430
  }
5431
5431
  const oo = typeof navigator < "u" ? navigator : null, RC = typeof document < "u" ? document : null, gc = oo && oo.userAgent || "", hS = /Edge\/(\d+)/.exec(gc), X5 = /MSIE \d/.exec(gc), fS = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(gc), ni = !!(X5 || fS || hS), Ql = X5 ? document.documentMode : fS ? +fS[1] : hS ? +hS[1] : 0, Ki = !ni && /gecko\/(\d+)/i.test(gc);
5432
5432
  Ki && +(/Firefox\/(\d+)/.exec(gc) || [0, 0])[1];
5433
- const pS = !ni && /Chrome\/(\d+)/.exec(gc), us = !!pS, Y5 = pS ? +pS[1] : 0, ks = !ni && !!oo && /Apple Computer/.test(oo.vendor), zh = ks && (/Mobile\/\w+/.test(gc) || !!oo && oo.maxTouchPoints > 2), Wi = zh || (oo ? /Mac/.test(oo.platform) : !1), J5 = oo ? /Win/.test(oo.platform) : !1, Ho = /Android \d/.test(gc), Gb = !!RC && "webkitFontSmoothing" in RC.documentElement.style, P9 = Gb ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
5433
+ const pS = !ni && /Chrome\/(\d+)/.exec(gc), us = !!pS, Y5 = pS ? +pS[1] : 0, Ss = !ni && !!oo && /Apple Computer/.test(oo.vendor), zh = Ss && (/Mobile\/\w+/.test(gc) || !!oo && oo.maxTouchPoints > 2), Wi = zh || (oo ? /Mac/.test(oo.platform) : !1), J5 = oo ? /Win/.test(oo.platform) : !1, Ho = /Android \d/.test(gc), Gb = !!RC && "webkitFontSmoothing" in RC.documentElement.style, P9 = Gb ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
5434
5434
  function $9(n) {
5435
5435
  let t = n.defaultView && n.defaultView.visualViewport;
5436
5436
  return t ? {
@@ -5618,7 +5618,7 @@ function U9(n, t) {
5618
5618
  if (!tE(t, c) || (a = t6(n.dom, t, c), !a))
5619
5619
  return null;
5620
5620
  }
5621
- if (ks)
5621
+ if (Ss)
5622
5622
  for (let c = a; r && c; c = Fh(c))
5623
5623
  c.draggable && (r = void 0);
5624
5624
  if (a = z9(a, t), r) {
@@ -6026,7 +6026,7 @@ class Kb {
6026
6026
  p = m;
6027
6027
  }
6028
6028
  let o = this.domFromPos(t, t ? -1 : 1), l = e == t ? o : this.domFromPos(e, e ? -1 : 1), c = r.root.getSelection(), u = r.domSelectionRange(), h = !1;
6029
- if ((Ki || ks) && t == e) {
6029
+ if ((Ki || Ss) && t == e) {
6030
6030
  let { node: f, offset: p } = o;
6031
6031
  if (f.nodeType == 3) {
6032
6032
  if (h = !!(p && f.nodeValue[p - 1] == `
@@ -6049,7 +6049,7 @@ class Kb {
6049
6049
  let f = u.focusNode.childNodes[u.focusOffset];
6050
6050
  f && f.contentEditable == "false" && (s = !0);
6051
6051
  }
6052
- if (!(s || h && ks) && Su(o.node, o.offset, u.anchorNode, u.anchorOffset) && Su(l.node, l.offset, u.focusNode, u.focusOffset))
6052
+ if (!(s || h && Ss) && Su(o.node, o.offset, u.anchorNode, u.anchorOffset) && Su(l.node, l.offset, u.focusNode, u.focusOffset))
6053
6053
  return;
6054
6054
  let d = !1;
6055
6055
  if ((c.extend || t == e) && !(h && Ki)) {
@@ -6655,7 +6655,7 @@ class Q9 {
6655
6655
  for (; t instanceof ku; )
6656
6656
  e = t, t = e.children[e.children.length - 1];
6657
6657
  (!t || // Empty textblock
6658
- !(t instanceof M_) || /\n$/.test(t.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(t.node.text)) && ((ks || us) && t && t.dom.contentEditable == "false" && this.addHackNode("IMG", e), this.addHackNode("BR", this.top));
6658
+ !(t instanceof M_) || /\n$/.test(t.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(t.node.text)) && ((Ss || us) && t && t.dom.contentEditable == "false" && this.addHackNode("IMG", e), this.addHackNode("BR", this.top));
6659
6659
  }
6660
6660
  addHackNode(t, e) {
6661
6661
  if (e == this.top && this.index < e.children.length && e.children[this.index].matchesHack(t))
@@ -6847,10 +6847,10 @@ function Wo(n, t = !1) {
6847
6847
  n.domObserver.setCurSelection(), n.domObserver.connectSelection();
6848
6848
  }
6849
6849
  }
6850
- const DC = ks || us && Y5 < 63;
6850
+ const DC = Ss || us && Y5 < 63;
6851
6851
  function BC(n, t) {
6852
6852
  let { node: e, offset: r } = n.docView.domFromPos(t, 0), s = r < e.childNodes.length ? e.childNodes[r] : null, i = r ? e.childNodes[r - 1] : null;
6853
- if (ks && s && s.contentEditable == "false")
6853
+ if (Ss && s && s.contentEditable == "false")
6854
6854
  return Gx(s);
6855
6855
  if ((!s || s.contentEditable == "false") && (!i || i.contentEditable == "false")) {
6856
6856
  if (s)
@@ -6860,7 +6860,7 @@ function BC(n, t) {
6860
6860
  }
6861
6861
  }
6862
6862
  function Gx(n) {
6863
- return n.contentEditable = "true", ks && n.draggable && (n.draggable = !1, n.wasDraggable = !0), n;
6863
+ return n.contentEditable = "true", Ss && n.draggable && (n.draggable = !1, n.wasDraggable = !0), n;
6864
6864
  }
6865
6865
  function FC(n) {
6866
6866
  n.contentEditable = "false", n.wasDraggable && (n.draggable = !0, n.wasDraggable = null);
@@ -7127,7 +7127,7 @@ function GC(n, t, e) {
7127
7127
  n.domObserver.stop(), t.contentEditable = e, n.domObserver.start();
7128
7128
  }
7129
7129
  function hP(n) {
7130
- if (!ks || n.state.selection.$head.parentOffset > 0)
7130
+ if (!Ss || n.state.selection.$head.parentOffset > 0)
7131
7131
  return !1;
7132
7132
  let { focusNode: t, focusOffset: e } = n.domSelectionRange();
7133
7133
  if (t && t.nodeType == 1 && e == 0 && t.firstChild && t.firstChild.contentEditable == "false") {
@@ -7367,7 +7367,7 @@ function SP(n) {
7367
7367
  EP(n, r) && !iE(n, r) && (n.editable || !(r.type in Ds)) && e(n, r);
7368
7368
  }, _P[t] ? { passive: !0 } : void 0);
7369
7369
  }
7370
- ks && n.dom.addEventListener("input", () => null), vS(n);
7370
+ Ss && n.dom.addEventListener("input", () => null), vS(n);
7371
7371
  }
7372
7372
  function Yl(n, t) {
7373
7373
  n.input.lastSelectionOrigin = t, n.input.lastSelectionTime = Date.now();
@@ -7542,7 +7542,7 @@ class PP {
7542
7542
  return;
7543
7543
  let e = this.pos;
7544
7544
  this.view.state.doc != this.startDoc && (e = this.view.posAtCoords(I_(t))), this.updateAllowDefault(t), this.allowDefault || !e ? Yl(this.view, "pointer") : OP(this.view, e.pos, e.inside, t, this.selectNode) ? t.preventDefault() : t.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
7545
- ks && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
7545
+ Ss && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
7546
7546
  // cursor, but still report that the node is selected
7547
7547
  // when asked through getSelection. You'll then get a
7548
7548
  // situation where clicking at the point where that
@@ -7566,7 +7566,7 @@ js.touchmove = (n) => {
7566
7566
  };
7567
7567
  js.contextmenu = (n) => oE(n);
7568
7568
  function v6(n, t) {
7569
- return n.composing ? !0 : ks && Math.abs(t.timeStamp - n.input.compositionEndedAt) < 500 ? (n.input.compositionEndedAt = -2e8, !0) : !1;
7569
+ return n.composing ? !0 : Ss && Math.abs(t.timeStamp - n.input.compositionEndedAt) < 500 ? (n.input.compositionEndedAt = -2e8, !0) : !1;
7570
7570
  }
7571
7571
  const $P = Ho ? 5e3 : -1;
7572
7572
  Ds.compositionstart = Ds.compositionupdate = (n) => {
@@ -7953,7 +7953,7 @@ class fn {
7953
7953
  you must make a copy if you want need to preserve that.
7954
7954
  */
7955
7955
  static create(t, e) {
7956
- return e.length ? S0(e, t, 0, bu) : _s;
7956
+ return e.length ? S0(e, t, 0, bu) : vs;
7957
7957
  }
7958
7958
  /**
7959
7959
  Find all decorations in this set which touch the given range
@@ -7983,7 +7983,7 @@ class fn {
7983
7983
  document.
7984
7984
  */
7985
7985
  map(t, e, r) {
7986
- return this == _s || t.maps.length == 0 ? this : this.mapInner(t, e, 0, 0, r || bu);
7986
+ return this == vs || t.maps.length == 0 ? this : this.mapInner(t, e, 0, 0, r || bu);
7987
7987
  }
7988
7988
  /**
7989
7989
  @internal
@@ -7994,7 +7994,7 @@ class fn {
7994
7994
  let l = this.local[o].map(t, r, s);
7995
7995
  l && l.type.valid(e, l) ? (a || (a = [])).push(l) : i.onRemove && i.onRemove(this.local[o].spec);
7996
7996
  }
7997
- return this.children.length ? UP(this.children, a || [], t, e, r, s, i) : a ? new fn(a.sort(yu), nd) : _s;
7997
+ return this.children.length ? UP(this.children, a || [], t, e, r, s, i) : a ? new fn(a.sort(yu), nd) : vs;
7998
7998
  }
7999
7999
  /**
8000
8000
  Add the given array of decorations to the ones in the set,
@@ -8003,7 +8003,7 @@ class fn {
8003
8003
  structure.
8004
8004
  */
8005
8005
  add(t, e) {
8006
- return e.length ? this == _s ? fn.create(t, e) : this.addInner(t, e, 0) : this;
8006
+ return e.length ? this == vs ? fn.create(t, e) : this.addInner(t, e, 0) : this;
8007
8007
  }
8008
8008
  addInner(t, e, r) {
8009
8009
  let s, i = 0;
@@ -8025,7 +8025,7 @@ class fn {
8025
8025
  the ones in the given array.
8026
8026
  */
8027
8027
  remove(t) {
8028
- return t.length == 0 || this == _s ? this : this.removeInner(t, 0);
8028
+ return t.length == 0 || this == vs ? this : this.removeInner(t, 0);
8029
8029
  }
8030
8030
  removeInner(t, e) {
8031
8031
  let r = this.children, s = this.local;
@@ -8037,7 +8037,7 @@ class fn {
8037
8037
  continue;
8038
8038
  r == this.children && (r = this.children.slice());
8039
8039
  let c = r[i + 2].removeInner(a, o + 1);
8040
- c != _s ? r[i + 2] = c : (r.splice(i, 3), i -= 3);
8040
+ c != vs ? r[i + 2] = c : (r.splice(i, 3), i -= 3);
8041
8041
  }
8042
8042
  if (s.length) {
8043
8043
  for (let i = 0, a; i < t.length; i++)
@@ -8045,10 +8045,10 @@ class fn {
8045
8045
  for (let o = 0; o < s.length; o++)
8046
8046
  s[o].eq(a, e) && (s == this.local && (s = this.local.slice()), s.splice(o--, 1));
8047
8047
  }
8048
- return r == this.children && s == this.local ? this : s.length || r.length ? new fn(s, r) : _s;
8048
+ return r == this.children && s == this.local ? this : s.length || r.length ? new fn(s, r) : vs;
8049
8049
  }
8050
8050
  forChild(t, e) {
8051
- if (this == _s)
8051
+ if (this == vs)
8052
8052
  return this;
8053
8053
  if (e.isLeaf)
8054
8054
  return fn.empty;
@@ -8070,7 +8070,7 @@ class fn {
8070
8070
  let o = new fn(s.sort(yu), nd);
8071
8071
  return r ? new yl([o, r]) : o;
8072
8072
  }
8073
- return r || _s;
8073
+ return r || vs;
8074
8074
  }
8075
8075
  /**
8076
8076
  @internal
@@ -8098,7 +8098,7 @@ class fn {
8098
8098
  @internal
8099
8099
  */
8100
8100
  localsInner(t) {
8101
- if (this == _s)
8101
+ if (this == vs)
8102
8102
  return nd;
8103
8103
  if (t.inlineContent || !this.local.some(tc.is))
8104
8104
  return this.local;
@@ -8113,7 +8113,7 @@ class fn {
8113
8113
  }
8114
8114
  fn.empty = new fn([], []);
8115
8115
  fn.removeOverlap = cE;
8116
- const _s = fn.empty;
8116
+ const vs = fn.empty;
8117
8117
  class yl {
8118
8118
  constructor(t) {
8119
8119
  this.members = t;
@@ -8128,7 +8128,7 @@ class yl {
8128
8128
  let r = [];
8129
8129
  for (let s = 0; s < this.members.length; s++) {
8130
8130
  let i = this.members[s].forChild(t, e);
8131
- i != _s && (i instanceof yl ? r = r.concat(i.members) : r.push(i));
8131
+ i != vs && (i instanceof yl ? r = r.concat(i.members) : r.push(i));
8132
8132
  }
8133
8133
  return yl.from(r);
8134
8134
  }
@@ -8160,7 +8160,7 @@ class yl {
8160
8160
  static from(t) {
8161
8161
  switch (t.length) {
8162
8162
  case 0:
8163
- return _s;
8163
+ return vs;
8164
8164
  case 1:
8165
8165
  return t[0];
8166
8166
  default:
@@ -8203,7 +8203,7 @@ function UP(n, t, e, r, s, i, a) {
8203
8203
  let d = e.map(n[c + 1] + i, -1), f = d - s, { index: p, offset: g } = r.content.findIndex(h), m = r.maybeChild(p);
8204
8204
  if (m && g == h && g + m.nodeSize == f) {
8205
8205
  let b = o[c + 2].mapInner(e, m, u + 1, n[c] + i + 1, a);
8206
- b != _s ? (o[c] = h, o[c + 1] = f, o[c + 2] = b) : (o[c + 1] = -2, l = !0);
8206
+ b != vs ? (o[c] = h, o[c + 1] = f, o[c + 2] = b) : (o[c + 1] = -2, l = !0);
8207
8207
  } else
8208
8208
  l = !0;
8209
8209
  }
@@ -8265,13 +8265,13 @@ function S0(n, t, e, r) {
8265
8265
  if (c) {
8266
8266
  i = !0;
8267
8267
  let u = S0(c, o, e + l + 1, r);
8268
- u != _s && s.push(l, l + o.nodeSize, u);
8268
+ u != vs && s.push(l, l + o.nodeSize, u);
8269
8269
  }
8270
8270
  });
8271
8271
  let a = C6(i ? A6(n) : n, -e).sort(yu);
8272
8272
  for (let o = 0; o < a.length; o++)
8273
8273
  a[o].type.valid(t, a[o]) || (r.onRemove && r.onRemove(a[o].spec), a.splice(o--, 1));
8274
- return a.length || s.length ? new fn(a, s) : _s;
8274
+ return a.length || s.length ? new fn(a, s) : vs;
8275
8275
  }
8276
8276
  function yu(n, t) {
8277
8277
  return n.from - t.from || n.to - t.to;
@@ -8303,7 +8303,7 @@ function Xx(n) {
8303
8303
  let t = [];
8304
8304
  return n.someProp("decorations", (e) => {
8305
8305
  let r = e(n.state);
8306
- r && r != _s && t.push(r);
8306
+ r && r != vs && t.push(r);
8307
8307
  }), n.cursorWrapper && t.push(fn.create(n.state.doc, [n.cursorWrapper.deco])), yl.from(t);
8308
8308
  }
8309
8309
  const WP = {
@@ -8333,7 +8333,7 @@ class XP {
8333
8333
  this.view = t, this.handleDOMChange = e, this.queue = [], this.flushingSoon = -1, this.observer = null, this.currentSelection = new KP(), this.onCharData = null, this.suppressingSelectionUpdates = !1, this.lastChangedTextNode = null, this.observer = window.MutationObserver && new window.MutationObserver((r) => {
8334
8334
  for (let s = 0; s < r.length; s++)
8335
8335
  this.queue.push(r[s]);
8336
- ni && Ql <= 11 && r.some((s) => s.type == "childList" && s.removedNodes.length || s.type == "characterData" && s.oldValue.length > s.target.nodeValue.length) ? this.flushSoon() : ks && t.composing && r.some((s) => s.type == "childList" && s.target.nodeName == "TR") ? (t.input.badSafariComposition = !0, this.flushSoon()) : this.flush();
8336
+ ni && Ql <= 11 && r.some((s) => s.type == "childList" && s.removedNodes.length || s.type == "characterData" && s.oldValue.length > s.target.nodeValue.length) ? this.flushSoon() : Ss && t.composing && r.some((s) => s.type == "childList" && s.target.nodeName == "TR") ? (t.input.badSafariComposition = !0, this.flushSoon()) : this.flush();
8337
8337
  }), GP && (this.onCharData = (r) => {
8338
8338
  this.queue.push({ target: r.target, type: "characterData", oldValue: r.prevValue }), this.flushSoon();
8339
8339
  }), this.onSelectionChange = this.onSelectionChange.bind(this);
@@ -8569,10 +8569,10 @@ function t7(n) {
8569
8569
  if (t)
8570
8570
  return t.parseRule();
8571
8571
  if (n.nodeName == "BR" && n.parentNode) {
8572
- if (ks && /^(ul|ol)$/i.test(n.parentNode.nodeName)) {
8572
+ if (Ss && /^(ul|ol)$/i.test(n.parentNode.nodeName)) {
8573
8573
  let e = document.createElement("div");
8574
8574
  return e.appendChild(document.createElement("li")), { skip: e };
8575
- } else if (n.parentNode.lastChild == n || ks && /^(tr|table)$/i.test(n.parentNode.nodeName))
8575
+ } else if (n.parentNode.lastChild == n || Ss && /^(tr|table)$/i.test(n.parentNode.nodeName))
8576
8576
  return { ignore: !0 };
8577
8577
  } else if (n.nodeName == "IMG" && n.getAttribute("mark-placeholder"))
8578
8578
  return { ignore: !0 };
@@ -9051,7 +9051,7 @@ class uE {
9051
9051
  */
9052
9052
  domSelectionRange() {
9053
9053
  let t = this.domSelection();
9054
- return t ? ks && this.root.nodeType === 11 && I9(this.dom.ownerDocument) == this.dom && JP(this, t) || t : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
9054
+ return t ? Ss && this.root.nodeType === 11 && I9(this.dom.ownerDocument) == this.dom && JP(this, t) || t : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
9055
9055
  }
9056
9056
  /**
9057
9057
  @internal
@@ -14087,7 +14087,7 @@ AS = function() {
14087
14087
  const e = rS.getComponentCssPath("nineEditor.css"), r = e ? `@import "${e}";` : "";
14088
14088
  this.shadowRoot.innerHTML = `
14089
14089
  <style>
14090
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@0.1.189/dist/css/nineEditor.css";
14090
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@0.1.191/dist/css/nineEditor.css";
14091
14091
  ${r}
14092
14092
  </style>
14093
14093
 
@@ -14202,18 +14202,18 @@ const ko = typeof window < "u" && window.nine ? window.nine : Dh, _T = {
14202
14202
  });
14203
14203
  };
14204
14204
  Sj();
14205
- var bs, Xp, Pw, $w;
14205
+ var Ms, Xp, Pw, $w;
14206
14206
  class kj extends HTMLElement {
14207
14207
  constructor() {
14208
14208
  super();
14209
- Q(this, bs);
14209
+ Q(this, Ms);
14210
14210
  Q(this, Xp);
14211
14211
  Q(this, Pw, () => {
14212
14212
  this.innerHTML = "";
14213
14213
  const e = Dh.cssPath ? `@import "${Dh.cssPath}/nineCollapse.css";` : "", r = document.createElement("template");
14214
14214
  r.innerHTML = `
14215
14215
  <style>
14216
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@0.1.189/dist/css/nineCollapse.css";
14216
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@0.1.191/dist/css/nineCollapse.css";
14217
14217
  ${e}
14218
14218
  </style>
14219
14219
 
@@ -14221,11 +14221,11 @@ class kj extends HTMLElement {
14221
14221
  `, this.shadowRoot.appendChild(r.content.cloneNode(!0));
14222
14222
  });
14223
14223
  Q(this, $w, () => {
14224
- if (y(this, bs) && y(this, bs)) {
14224
+ if (y(this, Ms)) {
14225
14225
  const e = document.createElement("span");
14226
14226
  e.className = "collapse-toggle";
14227
- const r = y(this, bs).shadowRoot;
14228
- (r || y(this, bs)).appendChild(e);
14227
+ const r = y(this, Ms).shadowRoot;
14228
+ (r || y(this, Ms)).appendChild(e);
14229
14229
  const s = document.createElement("style");
14230
14230
  s.textContent = `
14231
14231
  span.collapse-toggle {
@@ -14284,19 +14284,19 @@ class kj extends HTMLElement {
14284
14284
  transform-origin: top right;
14285
14285
  }
14286
14286
  }
14287
- `, (r || y(this, bs)).appendChild(s), e.addEventListener("click", () => {
14288
- y(this, bs).classList.add("nx-collapse"), setTimeout(() => {
14287
+ `, (r || y(this, Ms)).appendChild(s), e.addEventListener("click", () => {
14288
+ y(this, Ms).classList.add("nx-collapse"), setTimeout(() => {
14289
14289
  this.classList.add("nx-collapse");
14290
14290
  }, 100), setTimeout(() => {
14291
- ae(this, Xp, y(this, bs).style.display), y(this, bs).style.display = "none";
14291
+ ae(this, Xp, y(this, Ms).style.display), y(this, Ms).style.display = "none";
14292
14292
  }, 500);
14293
14293
  });
14294
14294
  }
14295
14295
  this.shadowRoot.querySelector("button").addEventListener("click", () => {
14296
- y(this, bs).style.display = y(this, Xp), y(this, bs).classList.remove("nx-collapse"), y(this, bs).classList.add("nx-expand"), setTimeout(() => {
14296
+ y(this, Ms).style.display = y(this, Xp), y(this, Ms).classList.remove("nx-collapse"), y(this, Ms).classList.add("nx-expand"), setTimeout(() => {
14297
14297
  this.classList.remove("nx-collapse"), this.classList.add("nx-expand");
14298
14298
  }, 100), setTimeout(() => {
14299
- y(this, bs).classList.remove("nx-expand"), this.classList.remove("nx-expand");
14299
+ y(this, Ms).classList.remove("nx-expand"), this.classList.remove("nx-expand");
14300
14300
  }, 600);
14301
14301
  });
14302
14302
  });
@@ -14304,10 +14304,10 @@ class kj extends HTMLElement {
14304
14304
  }
14305
14305
  connectedCallback() {
14306
14306
  const e = this.getAttribute("target");
14307
- ae(this, bs, document.querySelector(e)), y(this, Pw).call(this), y(this, $w).call(this);
14307
+ ae(this, Ms, document.querySelector(e)), y(this, Pw).call(this), y(this, $w).call(this);
14308
14308
  }
14309
14309
  }
14310
- bs = new WeakMap(), Xp = new WeakMap(), Pw = new WeakMap(), $w = new WeakMap();
14310
+ Ms = new WeakMap(), Xp = new WeakMap(), Pw = new WeakMap(), $w = new WeakMap();
14311
14311
  customElements.get("nine-collapse") || customElements.define("nine-collapse", kj);
14312
14312
  var yd, wd, _a, bR, Rf, yR;
14313
14313
  class Ej extends HTMLElement {
@@ -14341,7 +14341,7 @@ yd = new WeakMap(), wd = new WeakMap(), _a = new WeakSet(), bR = async function(
14341
14341
  const e = this.getAttribute("lang") || "Bash", r = this.getAttribute("code") || this.textContent.trim() || "", s = this.getAttribute("css-path");
14342
14342
  y(this, wd).innerHTML = `
14343
14343
  <style>
14344
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@0.1.189/dist/css/nine-code-block.css";
14344
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@0.1.191/dist/css/nine-code-block.css";
14345
14345
  ${s ? `@import "${s}";` : ""}
14346
14346
  </style>
14347
14347
 
@@ -14380,7 +14380,7 @@ class Tj extends HTMLElement {
14380
14380
  const e = Dh.cssPath ? `@import "${Dh.cssPath}/nineTab.css";` : "";
14381
14381
  this.shadowRoot.innerHTML = `
14382
14382
  <style>
14383
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@0.1.189/dist/css/nineTab.css";
14383
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@0.1.191/dist/css/nineTab.css";
14384
14384
  ${e}
14385
14385
  </style>
14386
14386
 
@@ -14989,7 +14989,7 @@ var xR = { exports: {} };
14989
14989
  return !!ut.parentNode;
14990
14990
  }
14991
14991
  ) : function(ut, vr, Xt) {
14992
- var tr, _r, Ut, nn, Hs, ms = nt !== ct ? "nextSibling" : "previousSibling", Li = ut.parentNode, Pa = kt && ut.nodeName.toLowerCase(), Vu = !Xt && !kt, As = !1;
14992
+ var tr, _r, Ut, nn, Hs, ms = nt !== ct ? "nextSibling" : "previousSibling", Li = ut.parentNode, Pa = kt && ut.nodeName.toLowerCase(), Vu = !Xt && !kt, Ts = !1;
14993
14993
  if (Li) {
14994
14994
  if (nt) {
14995
14995
  for (; ms; ) {
@@ -15001,16 +15001,16 @@ var xR = { exports: {} };
15001
15001
  return !0;
15002
15002
  }
15003
15003
  if (Hs = [ct ? Li.firstChild : Li.lastChild], ct && Vu) {
15004
- for (_r = Li[Fe] || (Li[Fe] = {}), tr = _r[fe] || [], nn = tr[0] === Me && tr[1], As = nn && tr[2], Ut = nn && Li.childNodes[nn]; Ut = ++nn && Ut && Ut[ms] || // Fallback to seeking `elem` from the start
15005
- (As = nn = 0) || Hs.pop(); )
15006
- if (Ut.nodeType === 1 && ++As && Ut === ut) {
15007
- _r[fe] = [Me, nn, As];
15004
+ for (_r = Li[Fe] || (Li[Fe] = {}), tr = _r[fe] || [], nn = tr[0] === Me && tr[1], Ts = nn && tr[2], Ut = nn && Li.childNodes[nn]; Ut = ++nn && Ut && Ut[ms] || // Fallback to seeking `elem` from the start
15005
+ (Ts = nn = 0) || Hs.pop(); )
15006
+ if (Ut.nodeType === 1 && ++Ts && Ut === ut) {
15007
+ _r[fe] = [Me, nn, Ts];
15008
15008
  break;
15009
15009
  }
15010
- } else if (Vu && (_r = ut[Fe] || (ut[Fe] = {}), tr = _r[fe] || [], nn = tr[0] === Me && tr[1], As = nn), As === !1)
15011
- for (; (Ut = ++nn && Ut && Ut[ms] || (As = nn = 0) || Hs.pop()) && !((kt ? H(Ut, Pa) : Ut.nodeType === 1) && ++As && (Vu && (_r = Ut[Fe] || (Ut[Fe] = {}), _r[fe] = [Me, As]), Ut === ut)); )
15010
+ } else if (Vu && (_r = ut[Fe] || (ut[Fe] = {}), tr = _r[fe] || [], nn = tr[0] === Me && tr[1], Ts = nn), Ts === !1)
15011
+ for (; (Ut = ++nn && Ut && Ut[ms] || (Ts = nn = 0) || Hs.pop()) && !((kt ? H(Ut, Pa) : Ut.nodeType === 1) && ++Ts && (Vu && (_r = Ut[Fe] || (Ut[Fe] = {}), _r[fe] = [Me, Ts]), Ut === ut)); )
15012
15012
  ;
15013
- return As -= Be, As === Ne || As % Ne === 0 && As / Ne >= 0;
15013
+ return Ts -= Be, Ts === Ne || Ts % Ne === 0 && Ts / Ne >= 0;
15014
15014
  }
15015
15015
  };
15016
15016
  },
@@ -15294,8 +15294,8 @@ var xR = { exports: {} };
15294
15294
  }
15295
15295
  function SN(fe, _e) {
15296
15296
  var Re = _e.length > 0, Ne = fe.length > 0, Be = function(nt, ct, kt, ut, vr) {
15297
- var Xt, tr, _r, Ut = 0, nn = "0", Hs = nt && [], ms = [], Li = K, Pa = nt || Ne && z.find.TAG("*", vr), Vu = Me += Li == null ? 1 : Math.random() || 0.1, As = Pa.length;
15298
- for (vr && (K = ct == oe || ct || vr); nn !== As && (Xt = Pa[nn]) != null; nn++) {
15297
+ var Xt, tr, _r, Ut = 0, nn = "0", Hs = nt && [], ms = [], Li = K, Pa = nt || Ne && z.find.TAG("*", vr), Vu = Me += Li == null ? 1 : Math.random() || 0.1, Ts = Pa.length;
15298
+ for (vr && (K = ct == oe || ct || vr); nn !== Ts && (Xt = Pa[nn]) != null; nn++) {
15299
15299
  if (Ne && Xt) {
15300
15300
  for (tr = 0, !ct && Xt.ownerDocument != oe && (il(Xt), kt = !pe); _r = fe[tr++]; )
15301
15301
  if (_r(Xt, ct || oe, kt)) {
@@ -17169,7 +17169,7 @@ var xR = { exports: {} };
17169
17169
  return re || (be = Ra[pe], Ra[pe] = oe, oe = K(Z, te, re) != null ? pe : null, Ra[pe] = be), oe;
17170
17170
  };
17171
17171
  });
17172
- var Ts = /^(?:input|select|textarea|button)$/i, ta = /^(?:a|area)$/i;
17172
+ var Cs = /^(?:input|select|textarea|button)$/i, ta = /^(?:a|area)$/i;
17173
17173
  A.fn.extend({
17174
17174
  prop: function(R, z) {
17175
17175
  return me(this, A.prop, R, z, arguments.length > 1);
@@ -17189,7 +17189,7 @@ var xR = { exports: {} };
17189
17189
  tabIndex: {
17190
17190
  get: function(R) {
17191
17191
  var z = A.find.attr(R, "tabindex");
17192
- return z ? parseInt(z, 10) : Ts.test(R.nodeName) || ta.test(R.nodeName) && R.href ? 0 : -1;
17192
+ return z ? parseInt(z, 10) : Cs.test(R.nodeName) || ta.test(R.nodeName) && R.href ? 0 : -1;
17193
17193
  }
17194
17194
  }
17195
17195
  },
@@ -19039,10 +19039,10 @@ class $j {
19039
19039
  }
19040
19040
  }
19041
19041
  En = new WeakMap(), Bw = new WeakMap(), Fw = new WeakMap(), zw = new WeakMap(), Hw = new WeakMap();
19042
- var Lt, qw, vd, vl, _l, _d, xl, xd, Qp, Sd, kd, Es, SR, kR, jj, ER, CR, TR, Dj, AR, Bc, Ed, em, tm, rm, nm;
19042
+ var Lt, qw, vd, vl, _l, _d, xl, xd, Qp, Sd, kd, ks, SR, kR, jj, ER, CR, TR, Dj, AR, Bc, Ed, em, tm, rm, nm;
19043
19043
  class Lj {
19044
19044
  constructor(t) {
19045
- Q(this, Es);
19045
+ Q(this, ks);
19046
19046
  Q(this, Lt);
19047
19047
  Q(this, qw);
19048
19048
  Q(this, vd);
@@ -19195,7 +19195,7 @@ class Lj {
19195
19195
  if (!t) return;
19196
19196
  ae(this, qw, y(this, vd)), ae(this, vd, t), t.focus();
19197
19197
  var e = t.closest("tr");
19198
- ae(this, Es, parseInt(e.dataset.row) * y(this, Lt).template.length + e.sectionRowIndex % y(this, Lt).template.length, kR), ae(this, Es, parseInt(t.dataset.col), TR), ae(this, Es, t.cellIndex, ER), ae(this, Es, t.dataset.bind, AR), e.closest("tbody.fixed") || (y(this, Lt).row.at = t.dataset.row), y(this, Lt).selection.selectCell(y(this, Es, SR), y(this, Es, CR));
19198
+ ae(this, ks, parseInt(e.dataset.row) * y(this, Lt).template.length + e.sectionRowIndex % y(this, Lt).template.length, kR), ae(this, ks, parseInt(t.dataset.col), TR), ae(this, ks, t.cellIndex, ER), ae(this, ks, t.dataset.bind, AR), e.closest("tbody.fixed") || (y(this, Lt).row.at = t.dataset.row), y(this, Lt).selection.selectCell(y(this, ks, SR), y(this, ks, CR));
19199
19199
  const r = t, s = parseInt(r.dataset.row), i = parseInt(r.dataset.matrixRow) % parseInt(r.dataset.row), a = parseInt(r.dataset.col), o = r.cellIndex, l = parseInt(y(this, vl) / y(this, Lt).template.length), c = parseInt(y(this, vl)) % parseInt(y(this, vl) / y(this, Lt).template.length), u = y(this, _d), h = y(this, Qp);
19200
19200
  if (s != l || i != c || a != u) {
19201
19201
  const d = new CustomEvent(W.EVENT.CELL_POS_CHANGED, { bubbles: !0, detail: {} });
@@ -19220,7 +19220,7 @@ class Lj {
19220
19220
  }
19221
19221
  }
19222
19222
  }
19223
- Lt = new WeakMap(), qw = new WeakMap(), vd = new WeakMap(), vl = new WeakMap(), _l = new WeakMap(), _d = new WeakMap(), xl = new WeakMap(), xd = new WeakMap(), Qp = new WeakMap(), Sd = new WeakMap(), kd = new WeakMap(), Es = new WeakSet(), SR = function() {
19223
+ Lt = new WeakMap(), qw = new WeakMap(), vd = new WeakMap(), vl = new WeakMap(), _l = new WeakMap(), _d = new WeakMap(), xl = new WeakMap(), xd = new WeakMap(), Qp = new WeakMap(), Sd = new WeakMap(), kd = new WeakMap(), ks = new WeakSet(), SR = function() {
19224
19224
  return y(this, _l);
19225
19225
  }, kR = function(t) {
19226
19226
  ae(this, vl, y(this, _l)), ae(this, _l, parseInt(t));
@@ -39722,7 +39722,7 @@ var RR = { exports: {} };
39722
39722
  var Or = Dt(Ye), Ir = Dt(Ze), sr = "[object Array]", qr = "[object Array]";
39723
39723
  Or || (sr = (sr = pr(Ye)) == a ? l : sr), Ir || (qr = (qr = pr(Ze)) == a ? l : qr);
39724
39724
  var dn = sr == l && !V(Ye), Jn = qr == l && !V(Ze), li = sr == qr;
39725
- if (li && !dn) return $t || ($t = new vt()), Or || ln(Ye) ? Fr(Ye, Ze, br, nr, lr, $t) : function(jr, Er, kn, Aa, Ra, Ts, ta) {
39725
+ if (li && !dn) return $t || ($t = new vt()), Or || ln(Ye) ? Fr(Ye, Ze, br, nr, lr, $t) : function(jr, Er, kn, Aa, Ra, Cs, ta) {
39726
39726
  switch (kn) {
39727
39727
  case "[object DataView]":
39728
39728
  if (jr.byteLength != Er.byteLength || jr.byteOffset != Er.byteOffset) return !1;
@@ -39741,12 +39741,12 @@ var RR = { exports: {} };
39741
39741
  case o:
39742
39742
  var ps = O;
39743
39743
  case c:
39744
- var ci = 2 & Ts;
39744
+ var ci = 2 & Cs;
39745
39745
  if (ps || (ps = N), jr.size != Er.size && !ci) return !1;
39746
39746
  var el = ta.get(jr);
39747
39747
  if (el) return el == Er;
39748
- Ts |= 1, ta.set(jr, Er);
39749
- var tl = Fr(ps(jr), ps(Er), Aa, Ra, Ts, ta);
39748
+ Cs |= 1, ta.set(jr, Er);
39749
+ var tl = Fr(ps(jr), ps(Er), Aa, Ra, Cs, ta);
39750
39750
  return ta.delete(jr), tl;
39751
39751
  case "[object Symbol]":
39752
39752
  if (Pe) return Pe.call(jr) == Pe.call(Er);
@@ -39760,22 +39760,22 @@ var RR = { exports: {} };
39760
39760
  return $t || ($t = new vt()), br(ea, po, nr, lr, $t);
39761
39761
  }
39762
39762
  }
39763
- return li ? ($t || ($t = new vt()), function(jr, Er, kn, Aa, Ra, Ts) {
39763
+ return li ? ($t || ($t = new vt()), function(jr, Er, kn, Aa, Ra, Cs) {
39764
39764
  var ta = 2 & Ra, ps = mn(jr), ci = ps.length, el = mn(Er).length;
39765
39765
  if (ci != el && !ta) return !1;
39766
39766
  for (var tl = ci; tl--; ) {
39767
39767
  var zs = ps[tl];
39768
39768
  if (!(ta ? zs in Er : J.call(Er, zs))) return !1;
39769
39769
  }
39770
- var ff = Ts.get(jr);
39771
- if (ff && Ts.get(Er)) return ff == Er;
39770
+ var ff = Cs.get(jr);
39771
+ if (ff && Cs.get(Er)) return ff == Er;
39772
39772
  var rl = !0;
39773
- Ts.set(jr, Er), Ts.set(Er, jr);
39773
+ Cs.set(jr, Er), Cs.set(Er, jr);
39774
39774
  for (var Fu = ta; ++tl < ci; ) {
39775
39775
  zs = ps[tl];
39776
39776
  var yc = jr[zs], zu = Er[zs];
39777
- if (Aa) var pf = ta ? Aa(zu, yc, zs, Er, jr, Ts) : Aa(yc, zu, zs, jr, Er, Ts);
39778
- if (!(pf === void 0 ? yc === zu || kn(yc, zu, Aa, Ra, Ts) : pf)) {
39777
+ if (Aa) var pf = ta ? Aa(zu, yc, zs, Er, jr, Cs) : Aa(yc, zu, zs, jr, Er, Cs);
39778
+ if (!(pf === void 0 ? yc === zu || kn(yc, zu, Aa, Ra, Cs) : pf)) {
39779
39779
  rl = !1;
39780
39780
  break;
39781
39781
  }
@@ -39785,7 +39785,7 @@ var RR = { exports: {} };
39785
39785
  var Hu = jr.constructor, qu = Er.constructor;
39786
39786
  Hu == qu || !("constructor" in jr) || !("constructor" in Er) || typeof Hu == "function" && Hu instanceof Hu && typeof qu == "function" && qu instanceof qu || (rl = !1);
39787
39787
  }
39788
- return Ts.delete(jr), Ts.delete(Er), rl;
39788
+ return Cs.delete(jr), Cs.delete(Er), rl;
39789
39789
  }(Ye, Ze, br, nr, lr, $t)) : !1;
39790
39790
  }(he, Te, Rr, ze, qe, mt));
39791
39791
  }
@@ -44743,27 +44743,27 @@ class OR extends HTMLElement {
44743
44743
  }
44744
44744
  Gc = new WeakMap(), eh = new WeakMap(), Xm = new WeakMap(), Gk = new WeakMap(), Kk = new WeakMap(), wv = new WeakMap();
44745
44745
  customElements.get("ng-export") || customElements.define("ng-export", OR);
44746
- var Ym, ys, Jm, vv;
44746
+ var Ym, bs, Jm, vv;
44747
44747
  class cD {
44748
44748
  constructor(t) {
44749
44749
  Q(this, Ym);
44750
- Q(this, ys);
44750
+ Q(this, bs);
44751
44751
  de(this, "add", (t) => {
44752
- y(this, ys).push(...t), y(this, Jm).call(this);
44752
+ y(this, bs).push(...t), y(this, Jm).call(this);
44753
44753
  });
44754
44754
  Q(this, Jm, () => {
44755
- ae(this, ys, [...new Set(y(this, ys))]), ["", "__ng"].forEach((t) => {
44756
- const e = y(this, ys).indexOf(t);
44757
- e > -1 && y(this, ys).splice(e, 1);
44758
- }), y(this, ys).sort((t, e) => t.length < e.length ? 1 : -1);
44755
+ ae(this, bs, [...new Set(y(this, bs))]), ["", "__ng"].forEach((t) => {
44756
+ const e = y(this, bs).indexOf(t);
44757
+ e > -1 && y(this, bs).splice(e, 1);
44758
+ }), y(this, bs).sort((t, e) => t.length < e.length ? 1 : -1);
44759
44759
  });
44760
44760
  Q(this, vv, () => {
44761
- ae(this, ys, []);
44761
+ ae(this, bs, []);
44762
44762
  const t = y(this, Ym).shadowRoot.querySelector("ng-foot").shadowRoot.querySelector("ng-layout");
44763
44763
  if (t) {
44764
44764
  for (const e of t.tables)
44765
44765
  $("[data-bind]", e).each((r, s) => {
44766
- y(this, ys).push(s.dataset.bind);
44766
+ y(this, bs).push(s.dataset.bind);
44767
44767
  }), ["data-expr", "background-color", "color", "tooltip", "visible", "readonly", "enable-button", "enable-check", "class-expr", "icon-color", "icon-src"].forEach((r) => {
44768
44768
  $(`[${r}]`, e).each((s, i) => {
44769
44769
  var a = i.getAttribute(r);
@@ -44779,7 +44779,7 @@ class cD {
44779
44779
  a.split("data.").forEach((o) => {
44780
44780
  if (o.trim() != "") {
44781
44781
  const l = o.search(/[^_A-Za-z0-9]/g);
44782
- l >= 0 ? y(this, ys).push(o.substring(0, l)) : a.startsWith("data.") && y(this, ys).push(o.replace("data.", ""));
44782
+ l >= 0 ? y(this, bs).push(o.substring(0, l)) : a.startsWith("data.") && y(this, bs).push(o.replace("data.", ""));
44783
44783
  }
44784
44784
  });
44785
44785
  });
@@ -44790,16 +44790,16 @@ class cD {
44790
44790
  ae(this, Ym, t), y(this, vv).call(this);
44791
44791
  }
44792
44792
  get() {
44793
- return y(this, ys);
44793
+ return y(this, bs);
44794
44794
  }
44795
44795
  indexOf(t) {
44796
- return y(this, ys).indexOf(t);
44796
+ return y(this, bs).indexOf(t);
44797
44797
  }
44798
44798
  includes(t) {
44799
- return y(this, ys).includes(t);
44799
+ return y(this, bs).includes(t);
44800
44800
  }
44801
44801
  }
44802
- Ym = new WeakMap(), ys = new WeakMap(), Jm = new WeakMap(), vv = new WeakMap();
44802
+ Ym = new WeakMap(), bs = new WeakMap(), Jm = new WeakMap(), vv = new WeakMap();
44803
44803
  var _v;
44804
44804
  class uD extends HTMLElement {
44805
44805
  constructor() {
@@ -46032,17 +46032,17 @@ class ND extends Pi {
46032
46032
  }
46033
46033
  }
46034
46034
  Bv = new WeakMap();
46035
- var Wn, ws, Qc;
46035
+ var Wn, ys, Qc;
46036
46036
  class PD extends HTMLElement {
46037
46037
  constructor() {
46038
46038
  super();
46039
46039
  Q(this, Wn);
46040
- Q(this, ws);
46040
+ Q(this, ys);
46041
46041
  Q(this, Qc);
46042
46042
  de(this, "popup", (e) => {
46043
46043
  var r = y(this, Wn).body.querySelector(`tr[data-row="${e}"]`).data;
46044
46044
  ae(this, Qc, r.__ng._[W.ROW.INDEX]), $(".title", this.shadowRoot).html(y(this, Wn).getAttribute("caption") || "Details"), $(".sub-title", this.shadowRoot).html(`(${(Number(e) + 1).toLocaleString()} of ${y(this, Wn).data.count().toLocaleString()})`);
46045
- var s = $("colgroup", y(this, ws)), i = 500, a = $(".ng-container-body thead tr", y(this, Wn).body).not(".col-indicator-rowgroup").length, o = y(this, Wn).template.length, l = 0;
46045
+ var s = $("colgroup", y(this, ys)), i = 500, a = $(".ng-container-body thead tr", y(this, Wn).body).not(".col-indicator-rowgroup").length, o = y(this, Wn).template.length, l = 0;
46046
46046
  $(`tr [data-row=${e}]`, y(this, Wn).body).not(".dummy").not(".first").not(".last").each((f, p) => {
46047
46047
  l = Math.max(l, parseInt(p.getAttribute("data-col")) + parseInt(p.getAttribute("colspan") || 1));
46048
46048
  });
@@ -46075,20 +46075,20 @@ class PD extends HTMLElement {
46075
46075
  _.setAttribute("data-row", 0), _.setAttribute("rowspan", w), _.setAttribute("colspan", b), _.removeAttribute("fixed"), p.append(_);
46076
46076
  for (const T of m.children) {
46077
46077
  const M = T.getAttribute("data-source");
46078
- M && (y(this, ws)[M] = y(this, Wn)[M]);
46078
+ M && (y(this, ys)[M] = y(this, Wn)[M]);
46079
46079
  }
46080
46080
  }
46081
46081
  }
46082
- p && p.html() && $("tbody.bindable tr.nodata", y(this, ws).shadowRoot).before(p);
46082
+ p && p.html() && $("tbody.bindable tr.nodata", y(this, ys).shadowRoot).before(p);
46083
46083
  }
46084
- $("ng-row-indicator", y(this, ws)).closest("tr").remove();
46084
+ $("ng-row-indicator", y(this, ys)).closest("tr").remove();
46085
46085
  var d = 0;
46086
- $("tbody.bindable tr:not(.nodata)", y(this, ws).shadowRoot).each((f, p) => {
46086
+ $("tbody.bindable tr:not(.nodata)", y(this, ys).shadowRoot).each((f, p) => {
46087
46087
  $("th,td", p).each((g, m) => {
46088
46088
  m.dataset.col = d, d += m.colSpan || 1;
46089
46089
  });
46090
- }), y(this, ws).shadowRoot.querySelector(".ng-body").style.height = "100vh", y(this, ws).createTemplate(), this.shadowRoot.querySelector("dialog").showModal(), setTimeout(() => {
46091
- y(this, ws).data.source = [Object.assign({}, y(this, Wn).data.getNF(y(this, Qc)))];
46090
+ }), y(this, ys).shadowRoot.querySelector(".ng-body").style.height = "100vh", y(this, ys).createTemplate(), this.shadowRoot.querySelector("dialog").showModal(), setTimeout(() => {
46091
+ y(this, ys).data.source = [Object.assign({}, y(this, Wn).data.getNF(y(this, Qc)))];
46092
46092
  });
46093
46093
  });
46094
46094
  this.attachShadow({ mode: "open" });
@@ -46114,19 +46114,19 @@ class PD extends HTMLElement {
46114
46114
  </table>
46115
46115
  </nine-grid>
46116
46116
  </nx-dialog>
46117
- `, ae(this, ws, this.shadowRoot.querySelector("nine-grid")), y(this, ws).fields.add(y(this, Wn).fields.get()), $(".reset", this.shadowRoot).on("click", (r) => {
46118
- y(this, ws).data.set(y(this, Wn).data.getNF(y(this, Qc)));
46117
+ `, ae(this, ys, this.shadowRoot.querySelector("nine-grid")), y(this, ys).fields.add(y(this, Wn).fields.get()), $(".reset", this.shadowRoot).on("click", (r) => {
46118
+ y(this, ys).data.set(y(this, Wn).data.getNF(y(this, Qc)));
46119
46119
  }), $(".apply", this.shadowRoot).on("click", (r) => {
46120
- y(this, Wn).data.all.update(y(this, ws).data.get(0), y(this, Qc)), this.shadowRoot.querySelector("dialog").close();
46120
+ y(this, Wn).data.all.update(y(this, ys).data.get(0), y(this, Qc)), this.shadowRoot.querySelector("dialog").close();
46121
46121
  }), $(".close", this.shadowRoot).onFirst("click", (r) => {
46122
- y(this, ws).data.isChanged() && (r.stopImmediatePropagation(), W.confirm(`There is changed data.
46122
+ y(this, ys).data.isChanged() && (r.stopImmediatePropagation(), W.confirm(`There is changed data.
46123
46123
  Do you want to save it?`, "SAVE", { class: "rgb", "true-text": "Yes", "false-text": "No" }).then((s) => {
46124
46124
  s && $(".apply", this.shadowRoot).trigger("click"), this.shadowRoot.querySelector("nx-dialog").close();
46125
46125
  }));
46126
46126
  });
46127
46127
  }
46128
46128
  }
46129
- Wn = new WeakMap(), ws = new WeakMap(), Qc = new WeakMap();
46129
+ Wn = new WeakMap(), ys = new WeakMap(), Qc = new WeakMap();
46130
46130
  customElements.get("ng-row-detail") || customElements.define("ng-row-detail", ND);
46131
46131
  customElements.get("ng-row-detail-popup") || customElements.define("ng-row-detail-popup", PD);
46132
46132
  var Fv;
@@ -49366,11 +49366,11 @@ Array.prototype.nineBinarySearch = function(n) {
49366
49366
  }
49367
49367
  return -1;
49368
49368
  };
49369
- var vs, bb, L1;
49369
+ var ws, bb, L1;
49370
49370
  class mB extends HTMLElement {
49371
49371
  constructor() {
49372
49372
  super();
49373
- Q(this, vs);
49373
+ Q(this, ws);
49374
49374
  Q(this, bb);
49375
49375
  Q(this, L1, () => {
49376
49376
  this.innerHTML.trim(), this.innerHTML = "";
@@ -49382,11 +49382,11 @@ class mB extends HTMLElement {
49382
49382
  </style>
49383
49383
 
49384
49384
  <button></button>
49385
- `, this.shadowRoot.appendChild(e.content.cloneNode(!0)), y(this, vs) && y(this, vs)) {
49385
+ `, this.shadowRoot.appendChild(e.content.cloneNode(!0)), y(this, ws) && y(this, ws)) {
49386
49386
  const r = document.createElement("span");
49387
49387
  r.className = "collapse-toggle";
49388
- const s = y(this, vs).shadowRoot;
49389
- (s || y(this, vs)).appendChild(r);
49388
+ const s = y(this, ws).shadowRoot;
49389
+ (s || y(this, ws)).appendChild(r);
49390
49390
  const i = document.createElement("style");
49391
49391
  i.textContent = `
49392
49392
  span.collapse-toggle {
@@ -49445,19 +49445,19 @@ class mB extends HTMLElement {
49445
49445
  transform-origin: top right;
49446
49446
  }
49447
49447
  }
49448
- `, (s || y(this, vs)).appendChild(i), r.addEventListener("click", () => {
49449
- y(this, vs).classList.add("nx-collapse"), setTimeout(() => {
49448
+ `, (s || y(this, ws)).appendChild(i), r.addEventListener("click", () => {
49449
+ y(this, ws).classList.add("nx-collapse"), setTimeout(() => {
49450
49450
  this.classList.add("nx-collapse");
49451
49451
  }, 100), setTimeout(() => {
49452
- ae(this, bb, y(this, vs).style.display), y(this, vs).style.display = "none";
49452
+ ae(this, bb, y(this, ws).style.display), y(this, ws).style.display = "none";
49453
49453
  }, 500);
49454
49454
  });
49455
49455
  }
49456
49456
  this.shadowRoot.querySelector("button").addEventListener("click", () => {
49457
- y(this, vs).style.display = y(this, bb), y(this, vs).classList.remove("nx-collapse"), y(this, vs).classList.add("nx-expand"), setTimeout(() => {
49457
+ y(this, ws).style.display = y(this, bb), y(this, ws).classList.remove("nx-collapse"), y(this, ws).classList.add("nx-expand"), setTimeout(() => {
49458
49458
  this.classList.remove("nx-collapse"), this.classList.add("nx-expand");
49459
49459
  }, 100), setTimeout(() => {
49460
- y(this, vs).classList.remove("nx-expand"), this.classList.remove("nx-expand");
49460
+ y(this, ws).classList.remove("nx-expand"), this.classList.remove("nx-expand");
49461
49461
  }, 600);
49462
49462
  });
49463
49463
  });
@@ -49465,10 +49465,10 @@ class mB extends HTMLElement {
49465
49465
  }
49466
49466
  connectedCallback() {
49467
49467
  const e = this.getAttribute("target");
49468
- ae(this, vs, W.querySelector(e)), y(this, L1).call(this);
49468
+ ae(this, ws, W.querySelector(e)), y(this, L1).call(this);
49469
49469
  }
49470
49470
  }
49471
- vs = new WeakMap(), bb = new WeakMap(), L1 = new WeakMap();
49471
+ ws = new WeakMap(), bb = new WeakMap(), L1 = new WeakMap();
49472
49472
  customElements.get("nx-collapse") || customElements.define("nx-collapse", mB);
49473
49473
  var Qh, PR, $R, j1;
49474
49474
  class gB extends HTMLElement {
@@ -58129,24 +58129,24 @@ var e4;
58129
58129
  * See the License for the specific language governing permissions and
58130
58130
  * limitations under the License.
58131
58131
  */
58132
- class xs extends Error {
58132
+ class _s extends Error {
58133
58133
  constructor(t) {
58134
58134
  super(`[GoogleGenerativeAI Error]: ${t}`);
58135
58135
  }
58136
58136
  }
58137
- class Ku extends xs {
58137
+ class Ku extends _s {
58138
58138
  constructor(t, e) {
58139
58139
  super(t), this.response = e;
58140
58140
  }
58141
58141
  }
58142
- class V8 extends xs {
58142
+ class V8 extends _s {
58143
58143
  constructor(t, e, r, s) {
58144
58144
  super(t), this.status = e, this.statusText = r, this.errorDetails = s;
58145
58145
  }
58146
58146
  }
58147
- class rc extends xs {
58147
+ class rc extends _s {
58148
58148
  }
58149
- class W8 extends xs {
58149
+ class W8 extends _s {
58150
58150
  }
58151
58151
  /**
58152
58152
  * @license
@@ -58228,7 +58228,7 @@ async function Tq(n, t, e = fetch) {
58228
58228
  }
58229
58229
  function Aq(n, t) {
58230
58230
  let e = n;
58231
- throw e.name === "AbortError" ? (e = new W8(`Request aborted when fetching ${t.toString()}: ${n.message}`), e.stack = n.stack) : n instanceof V8 || n instanceof rc || (e = new xs(`Error fetching from ${t.toString()}: ${n.message}`), e.stack = n.stack), e;
58231
+ throw e.name === "AbortError" ? (e = new W8(`Request aborted when fetching ${t.toString()}: ${n.message}`), e.stack = n.stack) : n instanceof V8 || n instanceof rc || (e = new _s(`Error fetching from ${t.toString()}: ${n.message}`), e.stack = n.stack), e;
58232
58232
  }
58233
58233
  async function Rq(n, t) {
58234
58234
  let e = "", r;
@@ -58417,7 +58417,7 @@ function jq(n) {
58417
58417
  return t.read().then(({ value: a, done: o }) => {
58418
58418
  if (o) {
58419
58419
  if (s.trim()) {
58420
- r.error(new xs("Failed to parse stream"));
58420
+ r.error(new _s("Failed to parse stream"));
58421
58421
  return;
58422
58422
  }
58423
58423
  r.close();
@@ -58429,7 +58429,7 @@ function jq(n) {
58429
58429
  try {
58430
58430
  c = JSON.parse(l[1]);
58431
58431
  } catch {
58432
- r.error(new xs(`Error parsing JSON response: "${l[1]}"`));
58432
+ r.error(new _s(`Error parsing JSON response: "${l[1]}"`));
58433
58433
  return;
58434
58434
  }
58435
58435
  r.enqueue(c), s = s.substring(l[0].length), l = s.match(r4);
@@ -58437,7 +58437,7 @@ function jq(n) {
58437
58437
  return i();
58438
58438
  }).catch((a) => {
58439
58439
  let o = a;
58440
- throw o.stack = a.stack, o.name === "AbortError" ? o = new W8("Request aborted when reading from the stream") : o = new xs("Error reading from the stream"), o;
58440
+ throw o.stack = a.stack, o.name === "AbortError" ? o = new W8("Request aborted when reading from the stream") : o = new _s("Error reading from the stream"), o;
58441
58441
  });
58442
58442
  }
58443
58443
  }
@@ -58551,9 +58551,9 @@ function Bq(n) {
58551
58551
  for (const i of n)
58552
58552
  "functionResponse" in i ? (e.parts.push(i), s = !0) : (t.parts.push(i), r = !0);
58553
58553
  if (r && s)
58554
- throw new xs("Within a single message, FunctionResponse cannot be mixed with other type of part in the request for sending chat message.");
58554
+ throw new _s("Within a single message, FunctionResponse cannot be mixed with other type of part in the request for sending chat message.");
58555
58555
  if (!r && !s)
58556
- throw new xs("No content is provided for sending chat message.");
58556
+ throw new _s("No content is provided for sending chat message.");
58557
58557
  return r ? t : e;
58558
58558
  }
58559
58559
  function Fq(n, t) {
@@ -58623,13 +58623,13 @@ function qq(n) {
58623
58623
  for (const e of n) {
58624
58624
  const { role: r, parts: s } = e;
58625
58625
  if (!t && r !== "user")
58626
- throw new xs(`First content should be with role 'user', got ${r}`);
58626
+ throw new _s(`First content should be with role 'user', got ${r}`);
58627
58627
  if (!KT.includes(r))
58628
- throw new xs(`Each item should include role field. Got ${r} but valid roles are: ${JSON.stringify(KT)}`);
58628
+ throw new _s(`Each item should include role field. Got ${r} but valid roles are: ${JSON.stringify(KT)}`);
58629
58629
  if (!Array.isArray(s))
58630
- throw new xs("Content should have 'parts' property with an array of Parts");
58630
+ throw new _s("Content should have 'parts' property with an array of Parts");
58631
58631
  if (s.length === 0)
58632
- throw new xs("Each Content should have at least one part");
58632
+ throw new _s("Each Content should have at least one part");
58633
58633
  const i = {
58634
58634
  text: 0,
58635
58635
  inlineData: 0,
@@ -58645,7 +58645,7 @@ function qq(n) {
58645
58645
  const a = Hq[r];
58646
58646
  for (const o of s4)
58647
58647
  if (!a.includes(o) && i[o] > 0)
58648
- throw new xs(`Content with role '${r}' can't contain '${o}' part`);
58648
+ throw new _s(`Content with role '${r}' can't contain '${o}' part`);
58649
58649
  t = !0;
58650
58650
  }
58651
58651
  }
@@ -58932,7 +58932,7 @@ class l4 {
58932
58932
  */
58933
58933
  getGenerativeModel(t, e) {
58934
58934
  if (!t.model)
58935
- throw new xs("Must provide a model name. Example: genai.getGenerativeModel({ model: 'my-model-name' })");
58935
+ throw new _s("Must provide a model name. Example: genai.getGenerativeModel({ model: 'my-model-name' })");
58936
58936
  return new o4(this.apiKey, t, e);
58937
58937
  }
58938
58938
  /**
@@ -69003,7 +69003,7 @@ p3.exports;
69003
69003
  })(p3);
69004
69004
  var uK = p3.exports;
69005
69005
  const jO = /* @__PURE__ */ Xb(uK);
69006
- function Rs(n, t) {
69006
+ function As(n, t) {
69007
69007
  return `${n.open}${t}${n.close}`;
69008
69008
  }
69009
69009
  function Di(n, t) {
@@ -69068,9 +69068,9 @@ class cA extends ry {
69068
69068
  getBreadcrumbs(t) {
69069
69069
  const r = [...this.getParents(t).reverse(), t].map((s, i, a) => {
69070
69070
  const o = `${s.execution_order}:${s.run_type}:${s.name}`;
69071
- return i === a.length - 1 ? Rs(jO.bold, o) : o;
69071
+ return i === a.length - 1 ? As(jO.bold, o) : o;
69072
69072
  }).join(" > ");
69073
- return Rs(qs.grey, r);
69073
+ return As(qs.grey, r);
69074
69074
  }
69075
69075
  // logging methods
69076
69076
  /**
@@ -69080,7 +69080,7 @@ class cA extends ry {
69080
69080
  */
69081
69081
  onChainStart(t) {
69082
69082
  const e = this.getBreadcrumbs(t);
69083
- console.log(`${Rs(qs.green, "[chain/start]")} [${e}] Entering Chain run with input: ${Di(t.inputs, "[inputs]")}`);
69083
+ console.log(`${As(qs.green, "[chain/start]")} [${e}] Entering Chain run with input: ${Di(t.inputs, "[inputs]")}`);
69084
69084
  }
69085
69085
  /**
69086
69086
  * Method used to log the end of a chain run.
@@ -69089,7 +69089,7 @@ class cA extends ry {
69089
69089
  */
69090
69090
  onChainEnd(t) {
69091
69091
  const e = this.getBreadcrumbs(t);
69092
- console.log(`${Rs(qs.cyan, "[chain/end]")} [${e}] [${ll(t)}] Exiting Chain run with output: ${Di(t.outputs, "[outputs]")}`);
69092
+ console.log(`${As(qs.cyan, "[chain/end]")} [${e}] [${ll(t)}] Exiting Chain run with output: ${Di(t.outputs, "[outputs]")}`);
69093
69093
  }
69094
69094
  /**
69095
69095
  * Method used to log any errors of a chain run.
@@ -69098,7 +69098,7 @@ class cA extends ry {
69098
69098
  */
69099
69099
  onChainError(t) {
69100
69100
  const e = this.getBreadcrumbs(t);
69101
- console.log(`${Rs(qs.red, "[chain/error]")} [${e}] [${ll(t)}] Chain run errored with error: ${Di(t.error, "[error]")}`);
69101
+ console.log(`${As(qs.red, "[chain/error]")} [${e}] [${ll(t)}] Chain run errored with error: ${Di(t.error, "[error]")}`);
69102
69102
  }
69103
69103
  /**
69104
69104
  * Method used to log the start of an LLM run.
@@ -69107,7 +69107,7 @@ class cA extends ry {
69107
69107
  */
69108
69108
  onLLMStart(t) {
69109
69109
  const e = this.getBreadcrumbs(t), r = "prompts" in t.inputs ? { prompts: t.inputs.prompts.map((s) => s.trim()) } : t.inputs;
69110
- console.log(`${Rs(qs.green, "[llm/start]")} [${e}] Entering LLM run with input: ${Di(r, "[inputs]")}`);
69110
+ console.log(`${As(qs.green, "[llm/start]")} [${e}] Entering LLM run with input: ${Di(r, "[inputs]")}`);
69111
69111
  }
69112
69112
  /**
69113
69113
  * Method used to log the end of an LLM run.
@@ -69116,7 +69116,7 @@ class cA extends ry {
69116
69116
  */
69117
69117
  onLLMEnd(t) {
69118
69118
  const e = this.getBreadcrumbs(t);
69119
- console.log(`${Rs(qs.cyan, "[llm/end]")} [${e}] [${ll(t)}] Exiting LLM run with output: ${Di(t.outputs, "[response]")}`);
69119
+ console.log(`${As(qs.cyan, "[llm/end]")} [${e}] [${ll(t)}] Exiting LLM run with output: ${Di(t.outputs, "[response]")}`);
69120
69120
  }
69121
69121
  /**
69122
69122
  * Method used to log any errors of an LLM run.
@@ -69125,7 +69125,7 @@ class cA extends ry {
69125
69125
  */
69126
69126
  onLLMError(t) {
69127
69127
  const e = this.getBreadcrumbs(t);
69128
- console.log(`${Rs(qs.red, "[llm/error]")} [${e}] [${ll(t)}] LLM run errored with error: ${Di(t.error, "[error]")}`);
69128
+ console.log(`${As(qs.red, "[llm/error]")} [${e}] [${ll(t)}] LLM run errored with error: ${Di(t.error, "[error]")}`);
69129
69129
  }
69130
69130
  /**
69131
69131
  * Method used to log the start of a tool run.
@@ -69134,7 +69134,7 @@ class cA extends ry {
69134
69134
  */
69135
69135
  onToolStart(t) {
69136
69136
  const e = this.getBreadcrumbs(t);
69137
- console.log(`${Rs(qs.green, "[tool/start]")} [${e}] Entering Tool run with input: "${lA(t.inputs.input)}"`);
69137
+ console.log(`${As(qs.green, "[tool/start]")} [${e}] Entering Tool run with input: "${lA(t.inputs.input)}"`);
69138
69138
  }
69139
69139
  /**
69140
69140
  * Method used to log the end of a tool run.
@@ -69144,7 +69144,7 @@ class cA extends ry {
69144
69144
  onToolEnd(t) {
69145
69145
  var r;
69146
69146
  const e = this.getBreadcrumbs(t);
69147
- console.log(`${Rs(qs.cyan, "[tool/end]")} [${e}] [${ll(t)}] Exiting Tool run with output: "${lA((r = t.outputs) == null ? void 0 : r.output)}"`);
69147
+ console.log(`${As(qs.cyan, "[tool/end]")} [${e}] [${ll(t)}] Exiting Tool run with output: "${lA((r = t.outputs) == null ? void 0 : r.output)}"`);
69148
69148
  }
69149
69149
  /**
69150
69150
  * Method used to log any errors of a tool run.
@@ -69153,7 +69153,7 @@ class cA extends ry {
69153
69153
  */
69154
69154
  onToolError(t) {
69155
69155
  const e = this.getBreadcrumbs(t);
69156
- console.log(`${Rs(qs.red, "[tool/error]")} [${e}] [${ll(t)}] Tool run errored with error: ${Di(t.error, "[error]")}`);
69156
+ console.log(`${As(qs.red, "[tool/error]")} [${e}] [${ll(t)}] Tool run errored with error: ${Di(t.error, "[error]")}`);
69157
69157
  }
69158
69158
  /**
69159
69159
  * Method used to log the start of a retriever run.
@@ -69162,7 +69162,7 @@ class cA extends ry {
69162
69162
  */
69163
69163
  onRetrieverStart(t) {
69164
69164
  const e = this.getBreadcrumbs(t);
69165
- console.log(`${Rs(qs.green, "[retriever/start]")} [${e}] Entering Retriever run with input: ${Di(t.inputs, "[inputs]")}`);
69165
+ console.log(`${As(qs.green, "[retriever/start]")} [${e}] Entering Retriever run with input: ${Di(t.inputs, "[inputs]")}`);
69166
69166
  }
69167
69167
  /**
69168
69168
  * Method used to log the end of a retriever run.
@@ -69171,7 +69171,7 @@ class cA extends ry {
69171
69171
  */
69172
69172
  onRetrieverEnd(t) {
69173
69173
  const e = this.getBreadcrumbs(t);
69174
- console.log(`${Rs(qs.cyan, "[retriever/end]")} [${e}] [${ll(t)}] Exiting Retriever run with output: ${Di(t.outputs, "[outputs]")}`);
69174
+ console.log(`${As(qs.cyan, "[retriever/end]")} [${e}] [${ll(t)}] Exiting Retriever run with output: ${Di(t.outputs, "[outputs]")}`);
69175
69175
  }
69176
69176
  /**
69177
69177
  * Method used to log any errors of a retriever run.
@@ -69180,7 +69180,7 @@ class cA extends ry {
69180
69180
  */
69181
69181
  onRetrieverError(t) {
69182
69182
  const e = this.getBreadcrumbs(t);
69183
- console.log(`${Rs(qs.red, "[retriever/error]")} [${e}] [${ll(t)}] Retriever run errored with error: ${Di(t.error, "[error]")}`);
69183
+ console.log(`${As(qs.red, "[retriever/error]")} [${e}] [${ll(t)}] Retriever run errored with error: ${Di(t.error, "[error]")}`);
69184
69184
  }
69185
69185
  /**
69186
69186
  * Method used to log the action selected by the agent.
@@ -69189,7 +69189,7 @@ class cA extends ry {
69189
69189
  */
69190
69190
  onAgentAction(t) {
69191
69191
  const e = t, r = this.getBreadcrumbs(t);
69192
- console.log(`${Rs(qs.blue, "[agent/action]")} [${r}] Agent selected action: ${Di(e.actions[e.actions.length - 1], "[action]")}`);
69192
+ console.log(`${As(qs.blue, "[agent/action]")} [${r}] Agent selected action: ${Di(e.actions[e.actions.length - 1], "[action]")}`);
69193
69193
  }
69194
69194
  }
69195
69195
  let I2;
@@ -69924,7 +69924,7 @@ function Ur(n) {
69924
69924
  }
69925
69925
  return e;
69926
69926
  }
69927
- function Ss(n = {}, { callbacks: t, maxConcurrency: e, recursionLimit: r, runName: s, configurable: i, runId: a } = {}) {
69927
+ function xs(n = {}, { callbacks: t, maxConcurrency: e, recursionLimit: r, runName: s, configurable: i, runId: a } = {}) {
69928
69928
  const o = Ur(n);
69929
69929
  return t !== void 0 && (delete o.runName, o.callbacks = t), r !== void 0 && (o.recursionLimit = r), e !== void 0 && (o.maxConcurrency = e), s !== void 0 && (o.runName = s), i !== void 0 && (o.configurable = { ...o.configurable, ...i }), a !== void 0 && delete o.runId, o;
69930
69930
  }
@@ -72154,7 +72154,7 @@ function YO(n, t) {
72154
72154
  ia(e, "idn-email", r.message, t);
72155
72155
  break;
72156
72156
  case "pattern:zod":
72157
- Os(e, sa.email, r.message, t);
72157
+ Rs(e, sa.email, r.message, t);
72158
72158
  break;
72159
72159
  }
72160
72160
  break;
@@ -72165,19 +72165,19 @@ function YO(n, t) {
72165
72165
  ia(e, "uuid", r.message, t);
72166
72166
  break;
72167
72167
  case "regex":
72168
- Os(e, r.regex, r.message, t);
72168
+ Rs(e, r.regex, r.message, t);
72169
72169
  break;
72170
72170
  case "cuid":
72171
- Os(e, sa.cuid, r.message, t);
72171
+ Rs(e, sa.cuid, r.message, t);
72172
72172
  break;
72173
72173
  case "cuid2":
72174
- Os(e, sa.cuid2, r.message, t);
72174
+ Rs(e, sa.cuid2, r.message, t);
72175
72175
  break;
72176
72176
  case "startsWith":
72177
- Os(e, RegExp(`^${j2(r.value, t)}`), r.message, t);
72177
+ Rs(e, RegExp(`^${j2(r.value, t)}`), r.message, t);
72178
72178
  break;
72179
72179
  case "endsWith":
72180
- Os(e, RegExp(`${j2(r.value, t)}$`), r.message, t);
72180
+ Rs(e, RegExp(`${j2(r.value, t)}$`), r.message, t);
72181
72181
  break;
72182
72182
  case "datetime":
72183
72183
  ia(e, "date-time", r.message, t);
@@ -72195,7 +72195,7 @@ function YO(n, t) {
72195
72195
  Kr(e, "minLength", typeof e.minLength == "number" ? Math.max(e.minLength, r.value) : r.value, r.message, t), Kr(e, "maxLength", typeof e.maxLength == "number" ? Math.min(e.maxLength, r.value) : r.value, r.message, t);
72196
72196
  break;
72197
72197
  case "includes": {
72198
- Os(e, RegExp(j2(r.value, t)), r.message, t);
72198
+ Rs(e, RegExp(j2(r.value, t)), r.message, t);
72199
72199
  break;
72200
72200
  }
72201
72201
  case "ip": {
@@ -72203,20 +72203,20 @@ function YO(n, t) {
72203
72203
  break;
72204
72204
  }
72205
72205
  case "base64url":
72206
- Os(e, sa.base64url, r.message, t);
72206
+ Rs(e, sa.base64url, r.message, t);
72207
72207
  break;
72208
72208
  case "jwt":
72209
- Os(e, sa.jwt, r.message, t);
72209
+ Rs(e, sa.jwt, r.message, t);
72210
72210
  break;
72211
72211
  case "cidr": {
72212
- r.version !== "v6" && Os(e, sa.ipv4Cidr, r.message, t), r.version !== "v4" && Os(e, sa.ipv6Cidr, r.message, t);
72212
+ r.version !== "v6" && Rs(e, sa.ipv4Cidr, r.message, t), r.version !== "v4" && Rs(e, sa.ipv6Cidr, r.message, t);
72213
72213
  break;
72214
72214
  }
72215
72215
  case "emoji":
72216
- Os(e, sa.emoji(), r.message, t);
72216
+ Rs(e, sa.emoji(), r.message, t);
72217
72217
  break;
72218
72218
  case "ulid": {
72219
- Os(e, sa.ulid, r.message, t);
72219
+ Rs(e, sa.ulid, r.message, t);
72220
72220
  break;
72221
72221
  }
72222
72222
  case "base64": {
@@ -72230,14 +72230,14 @@ function YO(n, t) {
72230
72230
  break;
72231
72231
  }
72232
72232
  case "pattern:zod": {
72233
- Os(e, sa.base64, r.message, t);
72233
+ Rs(e, sa.base64, r.message, t);
72234
72234
  break;
72235
72235
  }
72236
72236
  }
72237
72237
  break;
72238
72238
  }
72239
72239
  case "nanoid":
72240
- Os(e, sa.nanoid, r.message, t);
72240
+ Rs(e, sa.nanoid, r.message, t);
72241
72241
  }
72242
72242
  return e;
72243
72243
  }
@@ -72263,7 +72263,7 @@ function ia(n, t, e, r) {
72263
72263
  ...e && r.errorMessages && { errorMessage: { format: e } }
72264
72264
  })) : Kr(n, "format", t, e, r);
72265
72265
  }
72266
- function Os(n, t, e, r) {
72266
+ function Rs(n, t, e, r) {
72267
72267
  var s;
72268
72268
  n.pattern || (s = n.allOf) != null && s.some((i) => i.pattern) ? (n.allOf || (n.allOf = []), n.pattern && (n.allOf.push({
72269
72269
  pattern: n.pattern,
@@ -73915,7 +73915,7 @@ class vw extends zn {
73915
73915
  * @returns A promise that resolves to the output of the runnable.
73916
73916
  */
73917
73917
  async _invoke(t, e, r) {
73918
- return this.bound.batch(t, Ss(e, { callbacks: r == null ? void 0 : r.getChild() }));
73918
+ return this.bound.batch(t, xs(e, { callbacks: r == null ? void 0 : r.getChild() }));
73919
73919
  }
73920
73920
  /**
73921
73921
  * Bind lifecycle listeners to a Runnable, returning a new Runnable.
@@ -73959,7 +73959,7 @@ class tM extends vu {
73959
73959
  }
73960
73960
  _patchConfigForRetry(t, e, r) {
73961
73961
  const s = t > 1 ? `retry:attempt:${t}` : void 0;
73962
- return Ss(e, { callbacks: r == null ? void 0 : r.getChild(s) });
73962
+ return xs(e, { callbacks: r == null ? void 0 : r.getChild(s) });
73963
73963
  }
73964
73964
  async _invoke(t, e, r) {
73965
73965
  return ik((s) => super.invoke(t, this._patchConfigForRetry(s, e, r)), {
@@ -74063,14 +74063,14 @@ class so extends zn {
74063
74063
  try {
74064
74064
  const c = [this.first, ...this.middle];
74065
74065
  for (let u = 0; u < c.length; u += 1) {
74066
- const d = c[u].invoke(a, Ss(r, {
74066
+ const d = c[u].invoke(a, xs(r, {
74067
74067
  callbacks: i == null ? void 0 : i.getChild(this.omitSequenceTags ? void 0 : `seq:step:${u + 1}`)
74068
74068
  }));
74069
74069
  a = await hc(d, e == null ? void 0 : e.signal);
74070
74070
  }
74071
74071
  if ((l = e == null ? void 0 : e.signal) != null && l.aborted)
74072
74072
  throw new Error("Aborted");
74073
- o = await this.last.invoke(a, Ss(r, {
74073
+ o = await this.last.invoke(a, xs(r, {
74074
74074
  callbacks: i == null ? void 0 : i.getChild(this.omitSequenceTags ? void 0 : `seq:step:${this.steps.length}`)
74075
74075
  }));
74076
74076
  } catch (c) {
@@ -74089,7 +74089,7 @@ class so extends zn {
74089
74089
  for (let c = 0; c < this.steps.length; c += 1) {
74090
74090
  const h = this.steps[c].batch(o, a.map((d, f) => {
74091
74091
  const p = d == null ? void 0 : d.getChild(this.omitSequenceTags ? void 0 : `seq:step:${c + 1}`);
74092
- return Ss(s[f], { callbacks: p });
74092
+ return xs(s[f], { callbacks: p });
74093
74093
  }), r);
74094
74094
  o = await hc(h, (l = s[0]) == null ? void 0 : l.signal);
74095
74095
  }
@@ -74110,11 +74110,11 @@ class so extends zn {
74110
74110
  yield t;
74111
74111
  }
74112
74112
  try {
74113
- let d = o[0].transform(u(), Ss(i, {
74113
+ let d = o[0].transform(u(), xs(i, {
74114
74114
  callbacks: a == null ? void 0 : a.getChild(this.omitSequenceTags ? void 0 : "seq:step:1")
74115
74115
  }));
74116
74116
  for (let f = 1; f < o.length; f += 1)
74117
- d = await o[f].transform(d, Ss(i, {
74117
+ d = await o[f].transform(d, xs(i, {
74118
74118
  callbacks: a == null ? void 0 : a.getChild(this.omitSequenceTags ? void 0 : `seq:step:${f + 1}`)
74119
74119
  }));
74120
74120
  for await (const f of d)
@@ -74214,7 +74214,7 @@ class lf extends zn {
74214
74214
  const a = {};
74215
74215
  try {
74216
74216
  const o = Object.entries(this.steps).map(async ([l, c]) => {
74217
- a[l] = await c.invoke(t, Ss(r, {
74217
+ a[l] = await c.invoke(t, xs(r, {
74218
74218
  callbacks: i == null ? void 0 : i.getChild(`map:key:${l}`)
74219
74219
  }));
74220
74220
  });
@@ -74226,7 +74226,7 @@ class lf extends zn {
74226
74226
  }
74227
74227
  async *_transform(t, e, r) {
74228
74228
  const s = { ...this.steps }, i = FO(t, Object.keys(s).length), a = new Map(Object.entries(s).map(([o, l], c) => {
74229
- const u = l.transform(i[c], Ss(r, {
74229
+ const u = l.transform(i[c], xs(r, {
74230
74230
  callbacks: e == null ? void 0 : e.getChild(`map:key:${o}`)
74231
74231
  }));
74232
74232
  return [o, u.next().then((h) => ({ key: o, gen: u, result: h }))];
@@ -74272,7 +74272,7 @@ class b3 extends zn {
74272
74272
  this.func = t.func;
74273
74273
  }
74274
74274
  async invoke(t, e) {
74275
- const [r] = this._getOptionsList(e ?? {}, 1), s = await Sa(r), i = this.func(Ss(r, { callbacks: s }), t);
74275
+ const [r] = this._getOptionsList(e ?? {}, 1), s = await Sa(r), i = this.func(xs(r, { callbacks: s }), t);
74276
74276
  return hc(i, r == null ? void 0 : r.signal);
74277
74277
  }
74278
74278
  async *_streamIterator(t, e) {
@@ -74329,7 +74329,7 @@ class cf extends zn {
74329
74329
  }
74330
74330
  async _invoke(t, e, r) {
74331
74331
  return new Promise((s, i) => {
74332
- const a = Ss(e, {
74332
+ const a = xs(e, {
74333
74333
  callbacks: r == null ? void 0 : r.getChild(),
74334
74334
  recursionLimit: ((e == null ? void 0 : e.recursionLimit) ?? N2) - 1
74335
74335
  });
@@ -74401,7 +74401,7 @@ class cf extends zn {
74401
74401
  } catch {
74402
74402
  s = c;
74403
74403
  }
74404
- const i = Ss(r, {
74404
+ const i = xs(r, {
74405
74405
  callbacks: e == null ? void 0 : e.getChild(),
74406
74406
  recursionLimit: ((r == null ? void 0 : r.recursionLimit) ?? N2) - 1
74407
74407
  }), a = await new Promise((c, u) => {
@@ -74479,7 +74479,7 @@ class XX extends zn {
74479
74479
  yield t;
74480
74480
  }
74481
74481
  async invoke(t, e) {
74482
- const r = Ur(e), s = await Sa(r), { runId: i, ...a } = r, o = await (s == null ? void 0 : s.handleChainStart(this.toJSON(), Gn(t, "input"), i, void 0, void 0, void 0, a == null ? void 0 : a.runName)), l = Ss(a, {
74482
+ const r = Ur(e), s = await Sa(r), { runId: i, ...a } = r, o = await (s == null ? void 0 : s.handleChainStart(this.toJSON(), Gn(t, "input"), i, void 0, void 0, void 0, a == null ? void 0 : a.runName)), l = xs(a, {
74483
74483
  callbacks: o == null ? void 0 : o.getChild()
74484
74484
  });
74485
74485
  return await dc.runWithConfig(l, async () => {
@@ -74503,7 +74503,7 @@ class XX extends zn {
74503
74503
  let l, c;
74504
74504
  for (const d of this.runnables()) {
74505
74505
  (h = r == null ? void 0 : r.signal) == null || h.throwIfAborted();
74506
- const f = Ss(a, {
74506
+ const f = xs(a, {
74507
74507
  callbacks: o == null ? void 0 : o.getChild()
74508
74508
  });
74509
74509
  try {
@@ -74545,7 +74545,7 @@ class XX extends zn {
74545
74545
  for (const c of this.runnables()) {
74546
74546
  (l = s[0].signal) == null || l.throwIfAborted();
74547
74547
  try {
74548
- const u = await c.batch(t, a.map((h, d) => Ss(s[d], {
74548
+ const u = await c.batch(t, a.map((h, d) => xs(s[d], {
74549
74549
  callbacks: h == null ? void 0 : h.getChild()
74550
74550
  })), r);
74551
74551
  return await Promise.all(a.map((h, d) => h == null ? void 0 : h.handleChainEnd(Gn(u[d], "output")))), u;
@@ -74602,7 +74602,7 @@ class rM extends zn {
74602
74602
  };
74603
74603
  }
74604
74604
  async *_transform(t, e, r) {
74605
- const s = this.mapper.getStepsKeys(), [i, a] = FO(t), o = this.mapper.transform(a, Ss(r, { callbacks: e == null ? void 0 : e.getChild() })), l = o.next();
74605
+ const s = this.mapper.getStepsKeys(), [i, a] = FO(t), o = this.mapper.transform(a, xs(r, { callbacks: e == null ? void 0 : e.getChild() })), l = o.next();
74606
74606
  for await (const c of i) {
74607
74607
  if (typeof c != "object" || Array.isArray(c))
74608
74608
  throw new Error(`RunnableAssign can only be used with objects as input, got ${typeof c}`);
@@ -79745,11 +79745,11 @@ a0 = /* @__PURE__ */ new WeakMap(), o0 = /* @__PURE__ */ new WeakMap(), Hf = /*
79745
79745
  function hZ(n) {
79746
79746
  return typeof n.parse == "function";
79747
79747
  }
79748
- var Ms, Ok, Cw, Mk, Ik, Nk, XM, YM;
79748
+ var Os, Ok, Cw, Mk, Ik, Nk, XM, YM;
79749
79749
  const fZ = 10;
79750
79750
  class JM extends A3 {
79751
79751
  constructor() {
79752
- super(...arguments), Ms.add(this), this._chatCompletions = [], this.messages = [];
79752
+ super(...arguments), Os.add(this), this._chatCompletions = [], this.messages = [];
79753
79753
  }
79754
79754
  _addChatCompletion(t) {
79755
79755
  var r;
@@ -79782,27 +79782,27 @@ class JM extends A3 {
79782
79782
  * if an error occurred or the stream ended prematurely without producing a ChatCompletionMessage.
79783
79783
  */
79784
79784
  async finalContent() {
79785
- return await this.done(), Oe(this, Ms, "m", Ok).call(this);
79785
+ return await this.done(), Oe(this, Os, "m", Ok).call(this);
79786
79786
  }
79787
79787
  /**
79788
79788
  * @returns a promise that resolves with the the final assistant ChatCompletionMessage response,
79789
79789
  * or rejects if an error occurred or the stream ended prematurely without producing a ChatCompletionMessage.
79790
79790
  */
79791
79791
  async finalMessage() {
79792
- return await this.done(), Oe(this, Ms, "m", Cw).call(this);
79792
+ return await this.done(), Oe(this, Os, "m", Cw).call(this);
79793
79793
  }
79794
79794
  /**
79795
79795
  * @returns a promise that resolves with the content of the final FunctionCall, or rejects
79796
79796
  * if an error occurred or the stream ended prematurely without producing a ChatCompletionMessage.
79797
79797
  */
79798
79798
  async finalFunctionToolCall() {
79799
- return await this.done(), Oe(this, Ms, "m", Mk).call(this);
79799
+ return await this.done(), Oe(this, Os, "m", Mk).call(this);
79800
79800
  }
79801
79801
  async finalFunctionToolCallResult() {
79802
- return await this.done(), Oe(this, Ms, "m", Ik).call(this);
79802
+ return await this.done(), Oe(this, Os, "m", Ik).call(this);
79803
79803
  }
79804
79804
  async totalUsage() {
79805
- return await this.done(), Oe(this, Ms, "m", Nk).call(this);
79805
+ return await this.done(), Oe(this, Os, "m", Nk).call(this);
79806
79806
  }
79807
79807
  allChatCompletions() {
79808
79808
  return [...this._chatCompletions];
@@ -79810,18 +79810,18 @@ class JM extends A3 {
79810
79810
  _emitFinal() {
79811
79811
  const t = this._chatCompletions[this._chatCompletions.length - 1];
79812
79812
  t && this._emit("finalChatCompletion", t);
79813
- const e = Oe(this, Ms, "m", Cw).call(this);
79813
+ const e = Oe(this, Os, "m", Cw).call(this);
79814
79814
  e && this._emit("finalMessage", e);
79815
- const r = Oe(this, Ms, "m", Ok).call(this);
79815
+ const r = Oe(this, Os, "m", Ok).call(this);
79816
79816
  r && this._emit("finalContent", r);
79817
- const s = Oe(this, Ms, "m", Mk).call(this);
79817
+ const s = Oe(this, Os, "m", Mk).call(this);
79818
79818
  s && this._emit("finalFunctionToolCall", s);
79819
- const i = Oe(this, Ms, "m", Ik).call(this);
79820
- i != null && this._emit("finalFunctionToolCallResult", i), this._chatCompletions.some((a) => a.usage) && this._emit("totalUsage", Oe(this, Ms, "m", Nk).call(this));
79819
+ const i = Oe(this, Os, "m", Ik).call(this);
79820
+ i != null && this._emit("finalFunctionToolCallResult", i), this._chatCompletions.some((a) => a.usage) && this._emit("totalUsage", Oe(this, Os, "m", Nk).call(this));
79821
79821
  }
79822
79822
  async _createChatCompletion(t, e, r) {
79823
79823
  const s = r == null ? void 0 : r.signal;
79824
- s && (s.aborted && this.controller.abort(), s.addEventListener("abort", () => this.controller.abort())), Oe(this, Ms, "m", XM).call(this, e);
79824
+ s && (s.aborted && this.controller.abort(), s.addEventListener("abort", () => this.controller.abort())), Oe(this, Os, "m", XM).call(this, e);
79825
79825
  const i = await t.chat.completions.create({ ...e, stream: !1 }, { ...r, signal: this.controller.signal });
79826
79826
  return this._connected(), this._addChatCompletion(T3(i, e));
79827
79827
  }
@@ -79897,15 +79897,15 @@ class JM extends A3 {
79897
79897
  this._addMessage({ role: s, tool_call_id: T, content: V });
79898
79898
  continue;
79899
79899
  }
79900
- const H = await A.function(B, this), U = Oe(this, Ms, "m", YM).call(this, H);
79900
+ const H = await A.function(B, this), U = Oe(this, Os, "m", YM).call(this, H);
79901
79901
  if (this._addMessage({ role: s, tool_call_id: T, content: U }), l)
79902
79902
  return;
79903
79903
  }
79904
79904
  }
79905
79905
  }
79906
79906
  }
79907
- Ms = /* @__PURE__ */ new WeakSet(), Ok = function() {
79908
- return Oe(this, Ms, "m", Cw).call(this).content ?? null;
79907
+ Os = /* @__PURE__ */ new WeakSet(), Ok = function() {
79908
+ return Oe(this, Os, "m", Cw).call(this).content ?? null;
79909
79909
  }, Cw = function() {
79910
79910
  let t = this.messages.length;
79911
79911
  for (; t-- > 0; ) {
@@ -88203,7 +88203,7 @@ class dee extends zn {
88203
88203
  return e.deserialize({ ...t, _type: "prompt" });
88204
88204
  }
88205
88205
  case "few_shot": {
88206
- const { FewShotPromptTemplate: e } = await import("./few_shot-CSwrD6jC.js");
88206
+ const { FewShotPromptTemplate: e } = await import("./few_shot-CmgWQjdE.js");
88207
88207
  return e.deserialize(t);
88208
88208
  }
88209
88209
  default:
@@ -89116,7 +89116,7 @@ class jee extends HTMLElement {
89116
89116
  const r = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
89117
89117
  this.shadowRoot.innerHTML = `
89118
89118
  <style>
89119
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@0.1.189/dist/css/nineMenu.css";
89119
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@0.1.191/dist/css/nineMenu.css";
89120
89120
  ${r}
89121
89121
 
89122
89122
  :host {