@weng-lab/genomebrowser 1.7.6 → 1.7.7

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.
@@ -1,4 +1,4 @@
1
- import Ve, { useMemo as xe, createContext as zh, useContext as Tr, useEffect as Ue, useRef as rt, useState as Me, useCallback as Lt, createElement as No, Fragment as Vh, useLayoutEffect as $h } from "react";
1
+ import Ve, { useMemo as xe, createContext as zh, useContext as Dr, useEffect as Ue, useRef as rt, useState as Me, useCallback as Lt, createElement as No, Fragment as Vh, useLayoutEffect as $h } from "react";
2
2
  import kl, { createPortal as Tl } from "react-dom";
3
3
  function Wh(e, t) {
4
4
  for (var r = 0; r < t.length; r++) {
@@ -338,12 +338,12 @@ function Jh(e, t = Zh) {
338
338
  const Is = (e) => {
339
339
  const t = Xh(e), r = (n) => Jh(t, n);
340
340
  return Object.assign(r, t), r;
341
- }, Dr = ((e) => e ? Is(e) : Is), x1 = Dl;
341
+ }, Cr = ((e) => e ? Is(e) : Is), x1 = Dl;
342
342
  function Kh(e) {
343
343
  return xe(() => Dl(), e ?? []);
344
344
  }
345
345
  function Dl() {
346
- return Dr((e, t) => ({
346
+ return Cr((e, t) => ({
347
347
  trackData: /* @__PURE__ */ new Map(),
348
348
  isFetching: !1,
349
349
  setTrackData: (r, n) => e((i) => {
@@ -362,7 +362,7 @@ function Dl() {
362
362
  }));
363
363
  }
364
364
  function Cl() {
365
- return Dr((e) => ({
365
+ return Cr((e) => ({
366
366
  open: !1,
367
367
  id: null,
368
368
  x: 0,
@@ -372,7 +372,7 @@ function Cl() {
372
372
  }
373
373
  Cl();
374
374
  function Ol() {
375
- return Dr((e) => ({
375
+ return Cr((e) => ({
376
376
  id: "",
377
377
  position: { x: 0, y: 0 },
378
378
  open: !1,
@@ -382,7 +382,7 @@ function Ol() {
382
382
  }
383
383
  Ol();
384
384
  function Il() {
385
- return Dr((e) => ({
385
+ return Cr((e) => ({
386
386
  show: !1,
387
387
  content: void 0,
388
388
  x: 0,
@@ -395,7 +395,7 @@ function Il() {
395
395
  }
396
396
  Il();
397
397
  function Rl() {
398
- return Dr((e) => ({
398
+ return Cr((e) => ({
399
399
  background: "#ffffff",
400
400
  text: "#000000",
401
401
  setBackground: (t) => {
@@ -413,43 +413,43 @@ function td({ children: e, value: t }) {
413
413
  return /* @__PURE__ */ k.jsx(vr.Provider, { value: t, children: e });
414
414
  }
415
415
  function we(e) {
416
- const t = Tr(vr);
416
+ const t = Dr(vr);
417
417
  if (!t)
418
418
  throw new Error("useBrowserStore must be used within a Browser component");
419
419
  return t.browserStore(e);
420
420
  }
421
421
  function De(e) {
422
- const t = Tr(vr);
422
+ const t = Dr(vr);
423
423
  if (!t)
424
424
  throw new Error("useTrackStore must be used within a Browser component");
425
425
  return t.trackStore(e);
426
426
  }
427
427
  function It(e) {
428
- const t = Tr(vr);
428
+ const t = Dr(vr);
429
429
  if (!t)
430
430
  throw new Error("useDataStore must be used within a Browser component");
431
431
  return t.dataStore(e);
432
432
  }
433
433
  function Fr(e) {
434
- const t = Tr(vr);
434
+ const t = Dr(vr);
435
435
  if (!t)
436
436
  throw new Error("useContextMenuStore must be used within a Browser component");
437
437
  return t.contextMenuStore(e);
438
438
  }
439
439
  function Sn(e) {
440
- const t = Tr(vr);
440
+ const t = Dr(vr);
441
441
  if (!t)
442
442
  throw new Error("useModalStore must be used within a Browser component");
443
443
  return t.modalStore(e);
444
444
  }
445
445
  function Ur(e) {
446
- const t = Tr(vr);
446
+ const t = Dr(vr);
447
447
  if (!t)
448
448
  throw new Error("useTooltipStore must be used within a Browser component");
449
449
  return t.tooltipStore(e);
450
450
  }
451
451
  function wt(e) {
452
- const t = Tr(vr);
452
+ const t = Dr(vr);
453
453
  if (!t)
454
454
  throw new Error("useTheme must be used within a Browser component");
455
455
  return t.themeStore(e);
@@ -593,7 +593,7 @@ var qi = "Invariant Violation", Rs = Object.setPrototypeOf, rd = Rs === void 0 ?
593
593
  return t;
594
594
  })(Error)
595
595
  );
596
- function xr(e, t) {
596
+ function _r(e, t) {
597
597
  if (!e)
598
598
  throw new Ll(t);
599
599
  }
@@ -608,7 +608,7 @@ function Yn(e) {
608
608
  }
609
609
  (function(e) {
610
610
  e.debug = Yn("debug"), e.log = Yn("log"), e.warn = Yn("warn"), e.error = Yn("error");
611
- })(xr || (xr = {}));
611
+ })(_r || (_r = {}));
612
612
  var Po = "3.14.0";
613
613
  function Ot(e) {
614
614
  try {
@@ -659,12 +659,12 @@ function Xn(e) {
659
659
  var ce = Object.assign(function(t, r) {
660
660
  for (var n = [], i = 2; i < arguments.length; i++)
661
661
  n[i - 2] = arguments[i];
662
- t || xr(t, Fo(r, n) || Bo(r, n));
662
+ t || _r(t, Fo(r, n) || Bo(r, n));
663
663
  }, {
664
- debug: Xn(xr.debug),
665
- log: Xn(xr.log),
666
- warn: Xn(xr.warn),
667
- error: Xn(xr.error)
664
+ debug: Xn(_r.debug),
665
+ log: Xn(_r.log),
666
+ warn: Xn(_r.warn),
667
+ error: Xn(_r.error)
668
668
  });
669
669
  function pt(e) {
670
670
  for (var t = [], r = 1; r < arguments.length; r++)
@@ -1162,7 +1162,7 @@ function Ul(e) {
1162
1162
  function zl(e) {
1163
1163
  return e >= 56320 && e <= 57343;
1164
1164
  }
1165
- function Er(e, t) {
1165
+ function Sr(e, t) {
1166
1166
  const r = e.source.body.codePointAt(t);
1167
1167
  if (r === void 0)
1168
1168
  return te.EOF;
@@ -1267,7 +1267,7 @@ function gd(e, t) {
1267
1267
  throw tt(
1268
1268
  e.source,
1269
1269
  i,
1270
- a === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : rn(a) || ki(r, i) ? `Unexpected character: ${Er(e, i)}.` : `Invalid character: ${Er(e, i)}.`
1270
+ a === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : rn(a) || ki(r, i) ? `Unexpected character: ${Sr(e, i)}.` : `Invalid character: ${Sr(e, i)}.`
1271
1271
  );
1272
1272
  }
1273
1273
  return Ke(e, te.EOF, n, n);
@@ -1302,7 +1302,7 @@ function bd(e, t, r) {
1302
1302
  throw tt(
1303
1303
  e.source,
1304
1304
  i,
1305
- `Invalid number, unexpected digit after 0: ${Er(
1305
+ `Invalid number, unexpected digit after 0: ${Sr(
1306
1306
  e,
1307
1307
  i
1308
1308
  )}.`
@@ -1313,7 +1313,7 @@ function bd(e, t, r) {
1313
1313
  throw tt(
1314
1314
  e.source,
1315
1315
  i,
1316
- `Invalid number, expected digit but got: ${Er(
1316
+ `Invalid number, expected digit but got: ${Sr(
1317
1317
  e,
1318
1318
  i
1319
1319
  )}.`
@@ -1331,7 +1331,7 @@ function Ui(e, t, r) {
1331
1331
  throw tt(
1332
1332
  e.source,
1333
1333
  t,
1334
- `Invalid number, expected digit but got: ${Er(
1334
+ `Invalid number, expected digit but got: ${Sr(
1335
1335
  e,
1336
1336
  t
1337
1337
  )}.`
@@ -1365,7 +1365,7 @@ function xd(e, t) {
1365
1365
  throw tt(
1366
1366
  e.source,
1367
1367
  i,
1368
- `Invalid character within String: ${Er(
1368
+ `Invalid character within String: ${Sr(
1369
1369
  e,
1370
1370
  i
1371
1371
  )}.`
@@ -1514,7 +1514,7 @@ function Sd(e, t) {
1514
1514
  throw tt(
1515
1515
  e.source,
1516
1516
  a,
1517
- `Invalid character within String: ${Er(
1517
+ `Invalid character within String: ${Sr(
1518
1518
  e,
1519
1519
  a
1520
1520
  )}.`
@@ -3471,7 +3471,7 @@ function Jd(e) {
3471
3471
  }
3472
3472
  var Hl = Ot(function() {
3473
3473
  return navigator.product;
3474
- }) == "ReactNative", Cr = typeof WeakMap == "function" && !(Hl && !globalThis.HermesInternal), zo = typeof WeakSet == "function", Vo = typeof Symbol == "function" && typeof Symbol.for == "function", Ci = Vo && Symbol.asyncIterator, Ql = typeof Ot(function() {
3474
+ }) == "ReactNative", Or = typeof WeakMap == "function" && !(Hl && !globalThis.HermesInternal), zo = typeof WeakSet == "function", Vo = typeof Symbol == "function" && typeof Symbol.for == "function", Ci = Vo && Symbol.asyncIterator, Ql = typeof Ot(function() {
3475
3475
  return window.document.createElement;
3476
3476
  }) == "function", Kd = (
3477
3477
  // Following advice found in this comment from @domenic (maintainer of jsdom):
@@ -3680,9 +3680,9 @@ var $o = function(e, t) {
3680
3680
  var a = io.prototype.set.call(this, n, i);
3681
3681
  return Gl(this), a;
3682
3682
  }, r;
3683
- }, l0 = Symbol.for("apollo.cacheSize"), Bt = z({}, gi[l0]), br = {};
3683
+ }, l0 = Symbol.for("apollo.cacheSize"), Bt = z({}, gi[l0]), xr = {};
3684
3684
  function Wo(e, t) {
3685
- br[e] = t;
3685
+ xr[e] = t;
3686
3686
  }
3687
3687
  var f0 = globalThis.__DEV__ !== !1 ? v0 : void 0, h0 = globalThis.__DEV__ !== !1 ? m0 : void 0, d0 = globalThis.__DEV__ !== !1 ? Yl : void 0;
3688
3688
  function p0() {
@@ -3716,7 +3716,7 @@ function v0() {
3716
3716
  throw new Error("only supported in development mode");
3717
3717
  return {
3718
3718
  limits: p0(),
3719
- sizes: z({ print: (e = br.print) === null || e === void 0 ? void 0 : e.call(br), parser: (t = br.parser) === null || t === void 0 ? void 0 : t.call(br), canonicalStringify: (r = br.canonicalStringify) === null || r === void 0 ? void 0 : r.call(br), links: so(this.link), queryManager: {
3719
+ sizes: z({ print: (e = xr.print) === null || e === void 0 ? void 0 : e.call(xr), parser: (t = xr.parser) === null || t === void 0 ? void 0 : t.call(xr), canonicalStringify: (r = xr.canonicalStringify) === null || r === void 0 ? void 0 : r.call(xr), links: so(this.link), queryManager: {
3720
3720
  getDocumentInfo: this.queryManager.transformCache.size,
3721
3721
  documentTransforms: Zl(this.queryManager.documentTransform)
3722
3722
  } }, (i = (n = this.cache).getMemoryInternals) === null || i === void 0 ? void 0 : i.call(n))
@@ -3960,7 +3960,7 @@ function an(e) {
3960
3960
  });
3961
3961
  return ce(t.length <= 1, 118, t.length), e;
3962
3962
  }
3963
- function Sr(e) {
3963
+ function kr(e) {
3964
3964
  return an(e), e.definitions.filter(function(t) {
3965
3965
  return t.kind === "OperationDefinition";
3966
3966
  })[0];
@@ -3978,7 +3978,7 @@ function on(e) {
3978
3978
  });
3979
3979
  }
3980
3980
  function Kl(e) {
3981
- var t = Sr(e);
3981
+ var t = kr(e);
3982
3982
  return ce(t && t.operation === "query", 119), t;
3983
3983
  }
3984
3984
  function ef(e) {
@@ -4355,7 +4355,7 @@ var df = (
4355
4355
  }, e.prototype.resetCache = function() {
4356
4356
  var t = this;
4357
4357
  if (this.cached) {
4358
- var r = new Jt(Cr);
4358
+ var r = new Jt(Or);
4359
4359
  this.performWork = Fn(e.prototype.performWork.bind(this), {
4360
4360
  makeCacheKey: function(n) {
4361
4361
  var i = t.getCacheKey(n);
@@ -4387,7 +4387,7 @@ var df = (
4387
4387
  });
4388
4388
  }, e;
4389
4389
  })()
4390
- ), On, _r = Object.assign(function(e) {
4390
+ ), On, wr = Object.assign(function(e) {
4391
4391
  var t = On.get(e);
4392
4392
  return t || (t = zd(e), On.set(e, t)), t;
4393
4393
  }, {
@@ -4398,7 +4398,7 @@ var df = (
4398
4398
  );
4399
4399
  }
4400
4400
  });
4401
- _r.reset();
4401
+ wr.reset();
4402
4402
  globalThis.__DEV__ !== !1 && Wo("print", function() {
4403
4403
  return On ? On.size : 0;
4404
4404
  });
@@ -4419,7 +4419,7 @@ function pf(e, t) {
4419
4419
  });
4420
4420
  }
4421
4421
  function W0(e) {
4422
- return pf(Sr(e) || ef(e), nn(on(e))) ? null : e;
4422
+ return pf(kr(e) || ef(e), nn(on(e))) ? null : e;
4423
4423
  }
4424
4424
  function H0(e) {
4425
4425
  var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
@@ -5329,7 +5329,7 @@ function ho(e) {
5329
5329
  r.errors && t.push.apply(t, r.errors);
5330
5330
  }), t;
5331
5331
  }
5332
- function kr() {
5332
+ function Tr() {
5333
5333
  for (var e = [], t = 0; t < arguments.length; t++)
5334
5334
  e[t] = arguments[t];
5335
5335
  var r = /* @__PURE__ */ Object.create(null);
@@ -5341,8 +5341,8 @@ function kr() {
5341
5341
  }), r;
5342
5342
  }
5343
5343
  function Yr(e, t) {
5344
- return kr(e, t, t.variables && {
5345
- variables: kr(z(z({}, e && e.variables), t.variables))
5344
+ return Tr(e, t, t.variables && {
5345
+ variables: Tr(z(z({}, e && e.variables), t.variables))
5346
5346
  });
5347
5347
  }
5348
5348
  function Gi(e) {
@@ -5773,7 +5773,7 @@ function qp(e, t) {
5773
5773
  i = z(z(z({}, i), f.options), { headers: z(z({}, i.headers), f.headers) }), f.credentials && (i.credentials = f.credentials), a = z(z({}, a), f.http);
5774
5774
  }), i.headers && (i.headers = Up(i.headers, a.preserveHeaderCase));
5775
5775
  var o = e.operationName, s = e.extensions, c = e.variables, u = e.query, l = { operationName: o, variables: c };
5776
- return a.includeExtensions && (l.extensions = s), a.includeQuery && (l.query = t(u, _r)), {
5776
+ return a.includeExtensions && (l.extensions = s), a.includeQuery && (l.query = t(u, wr)), {
5777
5777
  options: i,
5778
5778
  body: l
5779
5779
  };
@@ -6081,7 +6081,7 @@ function sc(e) {
6081
6081
  function Xp(e) {
6082
6082
  return e.name.value === "nonreactive";
6083
6083
  }
6084
- var Cf = Cr ? WeakMap : Map, Of = zo ? WeakSet : Set, rs = new sn(), cc = !1;
6084
+ var Cf = Or ? WeakMap : Map, Of = zo ? WeakSet : Set, rs = new sn(), cc = !1;
6085
6085
  function If() {
6086
6086
  cc || (cc = !0, globalThis.__DEV__ !== !1 && ce.warn(64));
6087
6087
  }
@@ -6179,7 +6179,7 @@ function Kp(e, t, r) {
6179
6179
  var n;
6180
6180
  if (!r.fragmentMatches)
6181
6181
  return globalThis.__DEV__ !== !1 && If(), e;
6182
- var i = Sr(t);
6182
+ var i = kr(t);
6183
6183
  return ce(i, 63), e == null ? e : Rf(e, i.selectionSet, {
6184
6184
  operationType: i.operation,
6185
6185
  operationName: (n = i.name) === null || n === void 0 ? void 0 : n.value,
@@ -6326,7 +6326,7 @@ var jf = {
6326
6326
  canonizeResults: !1
6327
6327
  };
6328
6328
  function ev(e) {
6329
- return kr(jf, e);
6329
+ return Tr(jf, e);
6330
6330
  }
6331
6331
  function Pf(e) {
6332
6332
  var t = e.canonizeResults;
@@ -6565,7 +6565,7 @@ var pi = /* @__PURE__ */ Object.create(null), Yi = function() {
6565
6565
  r === void 0 && (r = null), this.caching = t, this.parent = r, this.d = null, this.resetCaching();
6566
6566
  }
6567
6567
  return e.prototype.resetCaching = function() {
6568
- this.d = this.caching ? hf() : null, this.keyMaker = new Jt(Cr);
6568
+ this.d = this.caching ? hf() : null, this.keyMaker = new Jt(Or);
6569
6569
  }, e.prototype.depend = function(t, r) {
6570
6570
  if (this.d) {
6571
6571
  this.d(Xi(t, r));
@@ -6600,7 +6600,7 @@ function lc(e, t) {
6600
6600
  Ut(n, r);
6601
6601
  function n(i) {
6602
6602
  var a = i.policies, o = i.resultCaching, s = o === void 0 ? !0 : o, c = i.seed, u = r.call(this, a, new qf(s)) || this;
6603
- return u.stump = new nv(u), u.storageTrie = new Jt(Cr), c && u.replace(c), u;
6603
+ return u.stump = new nv(u), u.storageTrie = new Jt(Or), c && u.replace(c), u;
6604
6604
  }
6605
6605
  return n.prototype.addLayer = function(i, a) {
6606
6606
  return this.stump.addLayer(i, a);
@@ -6677,7 +6677,7 @@ var fc = (
6677
6677
  /** @class */
6678
6678
  (function() {
6679
6679
  function e() {
6680
- this.known = new (zo ? WeakSet : Set)(), this.pool = new Jt(Cr), this.passes = /* @__PURE__ */ new WeakMap(), this.keysByJSON = /* @__PURE__ */ new Map(), this.empty = this.admit({});
6680
+ this.known = new (zo ? WeakSet : Set)(), this.pool = new Jt(Or), this.passes = /* @__PURE__ */ new WeakMap(), this.keysByJSON = /* @__PURE__ */ new Map(), this.empty = this.admit({});
6681
6681
  }
6682
6682
  return e.prototype.isKnown = function(t) {
6683
6683
  return Ge(t) && this.known.has(t);
@@ -6749,7 +6749,7 @@ var ov = (
6749
6749
  (function() {
6750
6750
  function e(t) {
6751
6751
  var r = this;
6752
- this.knownResults = new (Cr ? WeakMap : Map)(), this.config = kr(t, {
6752
+ this.knownResults = new (Or ? WeakMap : Map)(), this.config = Tr(t, {
6753
6753
  addTypename: t.addTypename !== !1,
6754
6754
  canonizeResults: Pf(t)
6755
6755
  }), this.canon = t.canon || new fc(), this.executeSelectionSet = Fn(function(n) {
@@ -7325,7 +7325,7 @@ var pv = (
7325
7325
  this.cache = t, this.reader = r, this.fragments = n;
7326
7326
  }
7327
7327
  return e.prototype.writeToStore = function(t, r) {
7328
- var n = this, i = r.query, a = r.result, o = r.dataId, s = r.variables, c = r.overwrite, u = Sr(i), l = rv();
7328
+ var n = this, i = r.query, a = r.result, o = r.dataId, s = r.variables, c = r.overwrite, u = kr(i), l = rv();
7329
7329
  s = z(z({}, Ho(u)), s);
7330
7330
  var f = z(z({ store: t, written: /* @__PURE__ */ Object.create(null), merge: function(h, x) {
7331
7331
  return l.merge(h, x);
@@ -7666,7 +7666,7 @@ var Hf = (
7666
7666
  n.watches.delete(r) && !n.watches.size && pc(n), n.maybeBroadcastWatch.forget(r);
7667
7667
  };
7668
7668
  }, t.prototype.gc = function(r) {
7669
- globalThis.__DEV__ !== !1 && We(r || {}, "resetResultIdentities", "cache.gc", "First ensure all usages of `canonizeResults` are removed, then remove this option."), lr.reset(), _r.reset();
7669
+ globalThis.__DEV__ !== !1 && We(r || {}, "resetResultIdentities", "cache.gc", "First ensure all usages of `canonizeResults` are removed, then remove this option."), lr.reset(), wr.reset();
7670
7670
  var n = this.optimisticData.gc();
7671
7671
  return r && !this.txCount && (r.resetResultCache ? this.resetResultCache(r.resetResultIdentities) : r.resetResultIdentities && this.storeReader.resetCanon()), n;
7672
7672
  }, t.prototype.retain = function(r, n) {
@@ -7789,7 +7789,7 @@ var kc = Object.assign, mv = Object.hasOwnProperty, Mn = (
7789
7789
  // case options.fetchPolicy was not provided.
7790
7790
  fetchPolicy: h
7791
7791
  }), o.queryId = i.queryId || n.generateQueryId();
7792
- var _ = Sr(o.query);
7792
+ var _ = kr(o.query);
7793
7793
  return o.queryName = _ && _.name && _.name.value, o;
7794
7794
  }
7795
7795
  return Object.defineProperty(t.prototype, "query", {
@@ -7970,7 +7970,7 @@ var kc = Object.assign, mv = Object.hasOwnProperty, Mn = (
7970
7970
  globalThis.__DEV__ !== !1 && ce.warn(31);
7971
7971
  })), this.reobserve(r);
7972
7972
  }, t.prototype.silentSetOptions = function(r) {
7973
- var n = kr(this.options, r || {});
7973
+ var n = Tr(this.options, r || {});
7974
7974
  kc(this.options, n);
7975
7975
  }, t.prototype.setVariables = function(r) {
7976
7976
  var n = this;
@@ -8062,7 +8062,7 @@ var kc = Object.assign, mv = Object.hasOwnProperty, Mn = (
8062
8062
  n === Ie.fetchMore || // Polling uses a disposable Concast so the polling options (which force
8063
8063
  // fetchPolicy to be "network-only" or "no-cache") won't override the original options.
8064
8064
  n === Ie.poll
8065
- ), o = this.options.variables, s = this.options.fetchPolicy, c = kr(this.options, r || {}), u = a ? (
8065
+ ), o = this.options.variables, s = this.options.fetchPolicy, c = Tr(this.options, r || {}), u = a ? (
8066
8066
  // Disposable Concast fetches receive a shallow copy of this.options
8067
8067
  // (merged with newOptions), leaving this.options unmodified.
8068
8068
  c
@@ -8167,7 +8167,7 @@ function Qf(e) {
8167
8167
  function Ji(e) {
8168
8168
  return e === "network-only" || e === "no-cache" || e === "standby";
8169
8169
  }
8170
- var Hr = new (Cr ? WeakMap : Map)();
8170
+ var Hr = new (Or ? WeakMap : Map)();
8171
8171
  function Ki(e, t) {
8172
8172
  var r = e[t];
8173
8173
  typeof r == "function" && (e[t] = function() {
@@ -8556,7 +8556,7 @@ var yv = Object.prototype.hasOwnProperty, Tc = /* @__PURE__ */ Object.create(nul
8556
8556
  { name: "nonreactive" },
8557
8557
  { name: "unmask" }
8558
8558
  ], t),
8559
- defaultVars: Ho(Sr(t)),
8559
+ defaultVars: Ho(kr(t)),
8560
8560
  // Transform any mutation or subscription operations to query operations
8561
8561
  // so we can read/write them from/to the cache.
8562
8562
  asQuery: z(z({}, t), { definitions: t.definitions.map(function(i) {
@@ -8620,7 +8620,7 @@ var yv = Object.prototype.hasOwnProperty, Tc = /* @__PURE__ */ Object.create(nul
8620
8620
  if (typeof s == "string")
8621
8621
  i.set(s, s), a.set(s, !1);
8622
8622
  else if (x0(s)) {
8623
- var c = _r(r.transform(s));
8623
+ var c = wr(r.transform(s));
8624
8624
  i.set(c, Tn(s)), a.set(c, !1);
8625
8625
  } else Ge(s) && s.query && o.add(s);
8626
8626
  }), this.queries.forEach(function(s, c) {
@@ -8633,7 +8633,7 @@ var yv = Object.prototype.hasOwnProperty, Tc = /* @__PURE__ */ Object.create(nul
8633
8633
  var f = u.queryName, d = u.options.fetchPolicy;
8634
8634
  if (d === "standby" || t === "active" && !u.hasObservers())
8635
8635
  return;
8636
- (t === "active" || f && a.has(f) || l && a.has(_r(l))) && (n.set(c, u), f && a.set(f, !0), l && a.set(_r(l), !0));
8636
+ (t === "active" || f && a.has(f) || l && a.has(wr(l))) && (n.set(c, u), f && a.set(f, !0), l && a.set(wr(l), !0));
8637
8637
  }
8638
8638
  }), o.size && o.forEach(function(s) {
8639
8639
  var c = eo("legacyOneTimeQuery"), u = r.getOrCreateQuery(c).init({
@@ -8720,7 +8720,7 @@ var yv = Object.prototype.hasOwnProperty, Tc = /* @__PURE__ */ Object.create(nul
8720
8720
  extensions: i
8721
8721
  };
8722
8722
  if (r = S.context, a) {
8723
- var _ = _r(l), b = lr(n), m = h.lookup(_, b);
8723
+ var _ = wr(l), b = lr(n), m = h.lookup(_, b);
8724
8724
  if (c = m.observable, !c) {
8725
8725
  var y = new qr([
8726
8726
  vo(x, S)
@@ -8875,7 +8875,7 @@ var yv = Object.prototype.hasOwnProperty, Tc = /* @__PURE__ */ Object.create(nul
8875
8875
  }, e.prototype.maskOperation = function(t) {
8876
8876
  var r, n, i, a = t.document, o = t.data;
8877
8877
  if (globalThis.__DEV__ !== !1) {
8878
- var s = t.fetchPolicy, c = t.id, u = (r = Sr(a)) === null || r === void 0 ? void 0 : r.operation, l = ((n = u == null ? void 0 : u[0]) !== null && n !== void 0 ? n : "o") + c;
8878
+ var s = t.fetchPolicy, c = t.id, u = (r = kr(a)) === null || r === void 0 ? void 0 : r.operation, l = ((n = u == null ? void 0 : u[0]) !== null && n !== void 0 ? n : "o") + c;
8879
8879
  this.dataMasking && s === "no-cache" && !r0(a) && !this.noCacheWarningsByQueryId.has(l) && (this.noCacheWarningsByQueryId.add(l), globalThis.__DEV__ !== !1 && ce.warn(
8880
8880
  45,
8881
8881
  (i = Tn(a)) !== null && i !== void 0 ? i : "Unnamed ".concat(u ?? "operation")
@@ -9487,7 +9487,7 @@ var Gt;
9487
9487
  (function(e) {
9488
9488
  e[e.Query = 0] = "Query", e[e.Mutation = 1] = "Mutation", e[e.Subscription = 2] = "Subscription";
9489
9489
  })(Gt || (Gt = {}));
9490
- var wr;
9490
+ var Er;
9491
9491
  function Rc(e) {
9492
9492
  var t;
9493
9493
  switch (e) {
@@ -9506,11 +9506,11 @@ function Rc(e) {
9506
9506
  function Kf(e) {
9507
9507
  cr("parser", function() {
9508
9508
  globalThis.__DEV__ !== !1 && ce.warn(94);
9509
- }), wr || (wr = new $o(
9509
+ }), Er || (Er = new $o(
9510
9510
  Bt.parser || 1e3
9511
9511
  /* defaultCacheSizes.parser */
9512
9512
  ));
9513
- var t = wr.get(e);
9513
+ var t = Er.get(e);
9514
9514
  if (t)
9515
9515
  return t;
9516
9516
  var r, n, i;
@@ -9547,13 +9547,13 @@ function Kf(e) {
9547
9547
  var h = d[0];
9548
9548
  r = h.variableDefinitions || [], h.name && h.name.kind === "Name" ? i = h.name.value : i = "data";
9549
9549
  var x = { name: i, type: n, variables: r };
9550
- return wr.set(e, x), x;
9550
+ return Er.set(e, x), x;
9551
9551
  }
9552
9552
  Kf.resetCache = function() {
9553
- wr = void 0;
9553
+ Er = void 0;
9554
9554
  };
9555
9555
  globalThis.__DEV__ !== !1 && Wo("parser", function() {
9556
- return wr ? wr.size : 0;
9556
+ return Er ? Er.size : 0;
9557
9557
  });
9558
9558
  function Nv(e, t) {
9559
9559
  var r = at("parser", Kf, [e]), n = Rc(t), i = Rc(r.type);
@@ -9765,7 +9765,7 @@ function th(e, t, r, n) {
9765
9765
  }
9766
9766
  function cs(e, t, r, n) {
9767
9767
  var i = [], a = t.defaultOptions.watchQuery;
9768
- return a && i.push(a), r.defaultOptions && i.push(r.defaultOptions), i.push(kr(e && e.options, n)), i.reduce(Yr);
9768
+ return a && i.push(a), r.defaultOptions && i.push(r.defaultOptions), i.push(Tr(e && e.options, n)), i.reduce(Yr);
9769
9769
  }
9770
9770
  function So(e, t, r, n, i, a, o) {
9771
9771
  var s = t.current;
@@ -12221,9 +12221,9 @@ function mr() {
12221
12221
  }, e.setTyped(t);
12222
12222
  })(Ra)), Ra;
12223
12223
  }
12224
- var Rr = {}, Dt = {}, gr = {}, pu;
12224
+ var Rr = {}, Dt = {}, yr = {}, pu;
12225
12225
  function Im() {
12226
- if (pu) return gr;
12226
+ if (pu) return yr;
12227
12227
  pu = 1;
12228
12228
  var e = mr(), t = 4, r = 0, n = 1, i = 2;
12229
12229
  function a(T) {
@@ -12466,7 +12466,7 @@ function Im() {
12466
12466
  function N(T, P, U) {
12467
12467
  return T.pending_buf[T.d_buf + T.last_lit * 2] = P >>> 8 & 255, T.pending_buf[T.d_buf + T.last_lit * 2 + 1] = P & 255, T.pending_buf[T.l_buf + T.last_lit] = U & 255, T.last_lit++, P === 0 ? T.dyn_ltree[U * 2]++ : (T.matches++, P--, T.dyn_ltree[(re[U] + d + 1) * 2]++, T.dyn_dtree[ue(P) * 2]++), T.last_lit === T.lit_bufsize - 1;
12468
12468
  }
12469
- return gr._tr_init = er, gr._tr_stored_block = R, gr._tr_flush_block = g, gr._tr_tally = N, gr._tr_align = v, gr;
12469
+ return yr._tr_init = er, yr._tr_stored_block = R, yr._tr_flush_block = g, yr._tr_tally = N, yr._tr_align = v, yr;
12470
12470
  }
12471
12471
  var La, vu;
12472
12472
  function lh() {
@@ -12837,9 +12837,9 @@ function Rm() {
12837
12837
  }
12838
12838
  return Dt.deflateInit = G, Dt.deflateInit2 = B, Dt.deflateReset = U, Dt.deflateResetKeep = P, Dt.deflateSetHeader = ie, Dt.deflate = O, Dt.deflateEnd = ee, Dt.deflateSetDictionary = Ee, Dt.deflateInfo = "pako deflate (from Nodeca project)", Dt;
12839
12839
  }
12840
- var yr = {}, bu;
12840
+ var br = {}, bu;
12841
12841
  function hh() {
12842
- if (bu) return yr;
12842
+ if (bu) return br;
12843
12843
  bu = 1;
12844
12844
  var e = mr(), t = !0, r = !0;
12845
12845
  try {
@@ -12854,7 +12854,7 @@ function hh() {
12854
12854
  }
12855
12855
  for (var n = new e.Buf8(256), i = 0; i < 256; i++)
12856
12856
  n[i] = i >= 252 ? 6 : i >= 248 ? 5 : i >= 240 ? 4 : i >= 224 ? 3 : i >= 192 ? 2 : 1;
12857
- n[254] = n[254] = 1, yr.string2buf = function(o) {
12857
+ n[254] = n[254] = 1, br.string2buf = function(o) {
12858
12858
  var s, c, u, l, f, d = o.length, h = 0;
12859
12859
  for (l = 0; l < d; l++)
12860
12860
  c = o.charCodeAt(l), (c & 64512) === 55296 && l + 1 < d && (u = o.charCodeAt(l + 1), (u & 64512) === 56320 && (c = 65536 + (c - 55296 << 10) + (u - 56320), l++)), h += c < 128 ? 1 : c < 2048 ? 2 : c < 65536 ? 3 : 4;
@@ -12869,13 +12869,13 @@ function hh() {
12869
12869
  c += String.fromCharCode(o[u]);
12870
12870
  return c;
12871
12871
  }
12872
- return yr.buf2binstring = function(o) {
12872
+ return br.buf2binstring = function(o) {
12873
12873
  return a(o, o.length);
12874
- }, yr.binstring2buf = function(o) {
12874
+ }, br.binstring2buf = function(o) {
12875
12875
  for (var s = new e.Buf8(o.length), c = 0, u = s.length; c < u; c++)
12876
12876
  s[c] = o.charCodeAt(c);
12877
12877
  return s;
12878
- }, yr.buf2string = function(o, s) {
12878
+ }, br.buf2string = function(o, s) {
12879
12879
  var c, u, l, f, d = s || o.length, h = new Array(d * 2);
12880
12880
  for (u = 0, c = 0; c < d; ) {
12881
12881
  if (l = o[c++], l < 128) {
@@ -12895,12 +12895,12 @@ function hh() {
12895
12895
  l < 65536 ? h[u++] = l : (l -= 65536, h[u++] = 55296 | l >> 10 & 1023, h[u++] = 56320 | l & 1023);
12896
12896
  }
12897
12897
  return a(h, u);
12898
- }, yr.utf8border = function(o, s) {
12898
+ }, br.utf8border = function(o, s) {
12899
12899
  var c;
12900
12900
  for (s = s || o.length, s > o.length && (s = o.length), c = s - 1; c >= 0 && (o[c] & 192) === 128; )
12901
12901
  c--;
12902
12902
  return c < 0 || c === 0 ? s : c + n[o[c]] > s ? c : s;
12903
- }, yr;
12903
+ }, br;
12904
12904
  }
12905
12905
  var Na, xu;
12906
12906
  function dh() {
@@ -15098,7 +15098,7 @@ function zt(e) {
15098
15098
  const a = xe(() => To(r, e), [e, r]), o = xe(() => fg(r, e), [e, r]);
15099
15099
  return { x: a, reverseX: o };
15100
15100
  }
15101
- const Or = ({ width: e, height: t, id: r }) => /* @__PURE__ */ k.jsx("clipPath", { id: r, children: /* @__PURE__ */ k.jsx("rect", { x: 0, y: 0, width: e, height: t }) });
15101
+ const gr = ({ width: e, height: t, id: r }) => /* @__PURE__ */ k.jsx("clipPath", { id: r, children: /* @__PURE__ */ k.jsx("rect", { x: 0, y: 0, width: e, height: t }) });
15102
15102
  function Ni(e, t, r, n = 10) {
15103
15103
  return r = r || 0, e.reduce((i, a) => {
15104
15104
  let o = !1;
@@ -15176,7 +15176,7 @@ function xh({
15176
15176
  });
15177
15177
  return /* @__PURE__ */ k.jsxs("g", { width: l, height: r, clipPath: `url(#${e})`, transform: `translate(-${f}, 0)`, children: [
15178
15178
  /* @__PURE__ */ k.jsx("rect", { width: l, height: r, fill: "transparent" }),
15179
- /* @__PURE__ */ k.jsx("defs", { children: /* @__PURE__ */ k.jsx(Or, { id: e, width: l, height: r }) }),
15179
+ /* @__PURE__ */ k.jsx("defs", { children: /* @__PURE__ */ k.jsx(gr, { id: e, width: l, height: r }) }),
15180
15180
  x.map((m, y) => {
15181
15181
  const w = bh(m, h), E = r * (1 - 2 * a), C = r * a;
15182
15182
  return /* @__PURE__ */ k.jsx(
@@ -17130,7 +17130,8 @@ function jg({
17130
17130
  }
17131
17131
  ),
17132
17132
  /* @__PURE__ */ k.jsx("rect", { x: 0, y: 0, width: c / 15, height: r, stroke: "#000000", strokeWidth: 0.5, fill: n }),
17133
- /* @__PURE__ */ k.jsx("text", { fill: A, fontSize: `${u}px`, y: r / 2, x: c / 10, alignmentBaseline: "middle", children: e }),
17133
+ /* @__PURE__ */ k.jsx(gr, { id: `margin-clip-${t}`, width: c * 0.85, height: r }),
17134
+ /* @__PURE__ */ k.jsx("g", { clipPath: `url(#margin-clip-${t})`, children: /* @__PURE__ */ k.jsx("text", { fill: A, fontSize: `${u}px`, y: r / 2, x: c / 10, alignmentBaseline: "middle", children: e }) }),
17134
17135
  /* @__PURE__ */ k.jsxs("g", { id: `margin-buttons-${t}`, children: [
17135
17136
  t !== "ruler" && /* @__PURE__ */ k.jsxs("g", { ref: f, onClick: m, style: { cursor: "pointer" }, children: [
17136
17137
  /* @__PURE__ */ k.jsx(Mg, { x: c / 10, y: r / 2 + 2, height: 15, width: 15, fill: A }),
@@ -17500,7 +17501,7 @@ function Qg({
17500
17501
  });
17501
17502
  return /* @__PURE__ */ k.jsxs("g", { width: u, height: r, clipPath: `url(#${e})`, transform: `translate(-${l}, 0)`, children: [
17502
17503
  /* @__PURE__ */ k.jsx("rect", { width: u, height: r, fill: "transparent" }),
17503
- /* @__PURE__ */ k.jsx("defs", { children: /* @__PURE__ */ k.jsx(Or, { id: e, width: u, height: r }) }),
17504
+ /* @__PURE__ */ k.jsx("defs", { children: /* @__PURE__ */ k.jsx(gr, { id: e, width: u, height: r }) }),
17504
17505
  h.map((m, y) => /* @__PURE__ */ k.jsx("g", { transform: `translate(0, ${y * x})`, children: m.map((w, E) => {
17505
17506
  const C = bh(w, d);
17506
17507
  return /* @__PURE__ */ k.jsx(
@@ -17664,7 +17665,7 @@ function ty({
17664
17665
  });
17665
17666
  return /* @__PURE__ */ k.jsxs("g", { width: d, height: n, transform: `translate(-${h},0)`, children: [
17666
17667
  /* @__PURE__ */ k.jsx("rect", { width: d, height: n, fill: "transparent" }),
17667
- /* @__PURE__ */ k.jsx("defs", { children: /* @__PURE__ */ k.jsx(Or, { id: e, width: d, height: m.length * y }) }),
17668
+ /* @__PURE__ */ k.jsx("defs", { children: /* @__PURE__ */ k.jsx(gr, { id: e, width: d, height: m.length * y }) }),
17668
17669
  w.map((I, A) => /* @__PURE__ */ k.jsx(
17669
17670
  "g",
17670
17671
  {
@@ -17743,7 +17744,7 @@ function ry({
17743
17744
  });
17744
17745
  return /* @__PURE__ */ k.jsxs("g", { width: d, height: n, transform: `translate(-${h},0)`, children: [
17745
17746
  /* @__PURE__ */ k.jsx("rect", { width: d, height: n, fill: "transparent" }),
17746
- /* @__PURE__ */ k.jsx("defs", { children: /* @__PURE__ */ k.jsx(Or, { id: e, width: d, height: m.length * y }) }),
17747
+ /* @__PURE__ */ k.jsx("defs", { children: /* @__PURE__ */ k.jsx(gr, { id: e, width: d, height: m.length * y }) }),
17747
17748
  w.map((I, A) => /* @__PURE__ */ k.jsx(
17748
17749
  "g",
17749
17750
  {
@@ -18815,7 +18816,7 @@ function Qb({
18815
18816
  });
18816
18817
  return /* @__PURE__ */ k.jsxs("g", { id: e, height: r, width: l, clipPath: `url(#${e})`, transform: `translate(-${f}, 0)`, children: [
18817
18818
  /* @__PURE__ */ k.jsx("rect", { width: l, height: r, fill: "transparent" }),
18818
- /* @__PURE__ */ k.jsx("defs", { children: /* @__PURE__ */ k.jsx(Or, { id: e, width: l, height: r }) }),
18819
+ /* @__PURE__ */ k.jsx("defs", { children: /* @__PURE__ */ k.jsx(gr, { id: e, width: l, height: r }) }),
18819
18820
  x.map((m, y) => /* @__PURE__ */ k.jsx(
18820
18821
  "rect",
18821
18822
  {
@@ -18867,7 +18868,7 @@ function Gb({
18867
18868
  });
18868
18869
  return /* @__PURE__ */ k.jsxs("g", { width: l, height: r, clipPath: `url(#${e})`, transform: `translate(-${f}, 0)`, children: [
18869
18870
  /* @__PURE__ */ k.jsx("rect", { width: l, height: r, fill: "transparent" }),
18870
- /* @__PURE__ */ k.jsx("defs", { children: /* @__PURE__ */ k.jsx(Or, { id: e, width: l, height: r }) }),
18871
+ /* @__PURE__ */ k.jsx("defs", { children: /* @__PURE__ */ k.jsx(gr, { id: e, width: l, height: r }) }),
18871
18872
  x.map((y, w) => /* @__PURE__ */ k.jsx("g", { transform: `translate(0, ${w * S})`, children: y.map((E, C) => /* @__PURE__ */ k.jsx(
18872
18873
  "rect",
18873
18874
  {
@@ -19132,7 +19133,7 @@ function tx({ data: e, customRange: t, id: r, height: n, color: i, dimensions: a
19132
19133
  tooltip: o
19133
19134
  });
19134
19135
  return /* @__PURE__ */ k.jsxs("g", { width: c, height: n, clipPath: `url(#${r})`, transform: `translate(-${s}, 0)`, children: [
19135
- /* @__PURE__ */ k.jsx("defs", { children: /* @__PURE__ */ k.jsx(Or, { id: r, width: c, height: n }) }),
19136
+ /* @__PURE__ */ k.jsx("defs", { children: /* @__PURE__ */ k.jsx(gr, { id: r, width: c, height: n }) }),
19136
19137
  b,
19137
19138
  !f && E && /* @__PURE__ */ k.jsx("line", { stroke: C, x1: E, x2: E, y1: 0, y2: n }),
19138
19139
  /* @__PURE__ */ k.jsx(
@@ -20655,7 +20656,7 @@ function j1(e, t) {
20655
20656
  return xe(() => qh(e), t ?? []);
20656
20657
  }
20657
20658
  function qh(e) {
20658
- return Dr((t, r) => ({
20659
+ return Cr((t, r) => ({
20659
20660
  domain: e.domain,
20660
20661
  delta: 0,
20661
20662
  svgRef: null,
@@ -20718,7 +20719,7 @@ function F1(e, t) {
20718
20719
  return xe(() => Uh(e), t ?? []);
20719
20720
  }
20720
20721
  function Uh(e = []) {
20721
- return Dr((t, r) => ({
20722
+ return Cr((t, r) => ({
20722
20723
  tracks: e,
20723
20724
  ids: e.map((n) => n.id),
20724
20725
  setTracks: (n) => t({ tracks: n, ids: n.map((i) => i.id) }),