@fallen-8/studio 0.0.35 → 0.0.37

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.
Files changed (50) hide show
  1. package/dist-lib/{Canvas3D-C5og4ZIQ.js → Canvas3D-CmDAo5BT.js} +1 -1
  2. package/dist-lib/{F8GraphCanvas-Db7vzDtJ.js → F8GraphCanvas-COQKIUas.js} +826 -812
  3. package/dist-lib/canvas.js +1 -1
  4. package/dist-lib/{cssMode-C_3o84wD.js → cssMode-Cm-p9yGb.js} +1 -1
  5. package/dist-lib/f8-studio.css +1 -1
  6. package/dist-lib/f8-studio.js +2 -2
  7. package/dist-lib/{freemarker2-2fqgZiA6.js → freemarker2-DU-Ctapi.js} +1 -1
  8. package/dist-lib/{handlebars-CpHr0qpx.js → handlebars-BsqZtC5a.js} +1 -1
  9. package/dist-lib/{html-Bug9RG5l.js → html-CUyknR5b.js} +1 -1
  10. package/dist-lib/{htmlMode-Ml4537rc.js → htmlMode-DjyPljE2.js} +1 -1
  11. package/dist-lib/{index-B9b5xEwe.js → index-BQbFjItv.js} +26366 -25874
  12. package/dist-lib/{javascript-DvuxCyB4.js → javascript-CVQBymBa.js} +1 -1
  13. package/dist-lib/{jsonMode-BU3w8kmM.js → jsonMode-B3hcJ0l3.js} +1 -1
  14. package/dist-lib/{liquid-r_J0hX64.js → liquid-DLrt4Cls.js} +1 -1
  15. package/dist-lib/{mdx-5vg3Qy8b.js → mdx-DePkemui.js} +1 -1
  16. package/dist-lib/{python-DlLCDuTf.js → python-CUe0bWsE.js} +1 -1
  17. package/dist-lib/{razor-D-OmEXY0.js → razor-DD_zUh3z.js} +1 -1
  18. package/dist-lib/{tsMode-Dophy2cR.js → tsMode-Ae3UtOmp.js} +1 -1
  19. package/dist-lib/types/api/client.d.ts +40 -0
  20. package/dist-lib/types/api/endpoints.d.ts +28 -2
  21. package/dist-lib/types/api/types.d.ts +96 -2
  22. package/dist-lib/types/app/namespaceSignals.d.ts +41 -0
  23. package/dist-lib/types/app/nav.d.ts +2 -12
  24. package/dist-lib/types/app/routes.d.ts +7 -2
  25. package/dist-lib/types/app/scopedRoute.d.ts +24 -0
  26. package/dist-lib/types/components/DurabilityNotice.d.ts +22 -7
  27. package/dist-lib/types/components/FileDropzone.d.ts +7 -2
  28. package/dist-lib/types/components/Stat.d.ts +1 -1
  29. package/dist-lib/types/components/StoredQueriesPanel.d.ts +16 -11
  30. package/dist-lib/types/components/StoredQueryControls.d.ts +3 -4
  31. package/dist-lib/types/delegate/nl/useNlRun.d.ts +7 -0
  32. package/dist-lib/types/firstrun/FirstRunOverlay.d.ts +37 -4
  33. package/dist-lib/types/firstrun/FirstRunShow.d.ts +4 -4
  34. package/dist-lib/types/instances/registry.d.ts +8 -2
  35. package/dist-lib/types/lib/embeddingProperties.d.ts +22 -0
  36. package/dist-lib/types/lib/findSimilar.d.ts +21 -0
  37. package/dist-lib/types/lib/pollIntervals.d.ts +13 -0
  38. package/dist-lib/types/lib/samples.d.ts +1 -1
  39. package/dist-lib/types/lib/storedQueries.d.ts +10 -0
  40. package/dist-lib/types/screens/IntegrationsScreen.d.ts +4 -3
  41. package/dist-lib/types/screens/PathScreen.d.ts +3 -0
  42. package/dist-lib/types/screens/SamplesScreen.d.ts +3 -3
  43. package/dist-lib/types/screens/TraverseScreen.d.ts +1 -0
  44. package/dist-lib/types/state/instanceStore.d.ts +51 -0
  45. package/dist-lib/types/state/status.d.ts +20 -1
  46. package/dist-lib/{typescript-oqqsXxrY.js → typescript-LNGesWYR.js} +1 -1
  47. package/dist-lib/{xml-pmqwhaBA.js → xml-BuD_-6ib.js} +1 -1
  48. package/dist-lib/{yaml-DN1I59zm.js → yaml-DCzPbyTS.js} +1 -1
  49. package/package.json +1 -1
  50. package/dist-lib/types/screens/DashboardScreen.d.ts +0 -13
@@ -1,5 +1,5 @@
1
- import { jsxs as va, jsx as We } from "react/jsx-runtime";
2
- import Dt, { createContext as hi, useContext as di, useRef as Be, useEffect as Qe, useImperativeHandle as fi, lazy as ma, useMemo as an, Suspense as ya } from "react";
1
+ import { jsxs as ma, jsx as We } from "react/jsx-runtime";
2
+ import Dt, { createContext as di, useContext as fi, useRef as Be, useEffect as Qe, useImperativeHandle as gi, lazy as ya, useMemo as an, Suspense as ba } from "react";
3
3
  const on = (n) => {
4
4
  let r;
5
5
  const t = /* @__PURE__ */ new Set(), e = (l, c) => {
@@ -10,8 +10,8 @@ const on = (n) => {
10
10
  }
11
11
  }, i = () => r, s = { setState: e, getState: i, getInitialState: () => u, subscribe: (l) => (t.add(l), () => t.delete(l)) }, u = r = n(e, i, s);
12
12
  return s;
13
- }, ba = ((n) => n ? on(n) : on), wa = (n) => n;
14
- function Ea(n, r = wa) {
13
+ }, wa = ((n) => n ? on(n) : on), Ea = (n) => n;
14
+ function _a(n, r = Ea) {
15
15
  const t = Dt.useSyncExternalStore(
16
16
  n.subscribe,
17
17
  Dt.useCallback(() => r(n.getState()), [n, r]),
@@ -19,11 +19,11 @@ function Ea(n, r = wa) {
19
19
  );
20
20
  return Dt.useDebugValue(t), t;
21
21
  }
22
- const _a = (n) => {
23
- const r = ba(n), t = (e) => Ea(r, e);
22
+ const Ta = (n) => {
23
+ const r = wa(n), t = (e) => _a(r, e);
24
24
  return Object.assign(t, r), t;
25
- }, gi = ((n) => _a);
26
- function Ta(n, r) {
25
+ }, pi = ((n) => Ta);
26
+ function Sa(n, r) {
27
27
  let t;
28
28
  try {
29
29
  t = n();
@@ -61,9 +61,9 @@ const _r = (n) => (r) => {
61
61
  }
62
62
  };
63
63
  }
64
- }, Sa = (n, r) => (t, e, i) => {
64
+ }, Ra = (n, r) => (t, e, i) => {
65
65
  let a = {
66
- storage: Ta(() => window.localStorage),
66
+ storage: Sa(() => window.localStorage),
67
67
  partialize: (w) => w,
68
68
  version: 0,
69
69
  merge: (w, k) => ({
@@ -160,7 +160,7 @@ const _r = (n) => (r) => {
160
160
  l.delete(w);
161
161
  })
162
162
  }, a.skipHydration || R(), b || y;
163
- }, Ra = Sa, Tr = {
163
+ }, Aa = Ra, Tr = {
164
164
  renderer: "2d",
165
165
  layout2d: "force",
166
166
  layout3d: "force",
@@ -181,7 +181,7 @@ const _r = (n) => (r) => {
181
181
  // persisted copy winning, so a magnitude written here would be frozen into every existing
182
182
  // workspace's local storage and would then outrank the documented default forever.
183
183
  };
184
- function Aa(n) {
184
+ function ka(n) {
185
185
  const r = n.trim();
186
186
  if (!r) return { ok: !1, error: "empty" };
187
187
  let t;
@@ -211,20 +211,20 @@ const $r = {
211
211
  queryText: "",
212
212
  embeddingName: "default",
213
213
  metric: "Cosine"
214
- }, pi = {
214
+ }, vi = {
215
215
  ...$r,
216
216
  enabled: !1,
217
217
  minScoreEnabled: !1,
218
218
  minScore: "0.7",
219
219
  costBySimilarity: !1
220
220
  };
221
- function ec(n) {
221
+ function nc(n) {
222
222
  return n.enabled && (n.minScoreEnabled || n.costBySimilarity);
223
223
  }
224
- function tc(n) {
224
+ function ic(n) {
225
225
  return n.enabled && n.costBySimilarity;
226
226
  }
227
- function ka(n, r) {
227
+ function Ca(n, r) {
228
228
  const t = {
229
229
  embeddingName: n.embeddingName.trim() || void 0,
230
230
  metric: n.metric
@@ -239,31 +239,31 @@ function ka(n, r) {
239
239
  return { ok: !1, error: "enter query text (or switch to a pasted vector)." };
240
240
  t.queryText = n.queryText;
241
241
  } else {
242
- const e = Aa(n.vectorText);
242
+ const e = ka(n.vectorText);
243
243
  if (!e.ok)
244
244
  return { ok: !1, error: `query vector: ${e.error}.` };
245
245
  t.queryVector = e.vector;
246
246
  }
247
247
  return { ok: !0, spec: t };
248
248
  }
249
- function rc(n) {
249
+ function ac(n) {
250
250
  const r = n.trim();
251
251
  if (!r)
252
252
  return;
253
253
  const t = Number(r);
254
254
  return Number.isFinite(t) ? t : void 0;
255
255
  }
256
- function nc(n) {
256
+ function oc(n) {
257
257
  const r = n.metric === "L2" ? "≤" : "≥", t = [`${n.metric} over '${n.embeddingName}' (d=${n.dimension})`];
258
258
  n.minScore != null && t.push(`pre-filter ${r} ${n.minScore}`);
259
259
  for (const e of n.patternThresholds ?? [])
260
260
  t.push(`step ${e.pattern} ${r} ${e.minScore}`);
261
261
  return n.queryText && t.push(`from text "${n.queryText}"`), t.push("bound at creation — recalculate reuses the stored vector"), t.join(" · ");
262
262
  }
263
- function ic(n, r) {
263
+ function sc(n, r) {
264
264
  if (!n.enabled)
265
265
  return { ok: !0, spec: void 0 };
266
- const t = ka(n, { providerEnabled: r.providerEnabled });
266
+ const t = Ca(n, { providerEnabled: r.providerEnabled });
267
267
  if (!t.ok)
268
268
  return t;
269
269
  const e = t.spec;
@@ -298,13 +298,13 @@ const Sr = [
298
298
  labels: [],
299
299
  keys: []
300
300
  };
301
- function ac(n, r) {
301
+ function uc(n, r) {
302
302
  return n.kind === "resync" ? !0 : !(!r.kinds.includes(n.kind) || n.element !== void 0 && !r.elements.includes(n.element) || r.labels.length > 0 && (n.label === void 0 || !r.labels.includes(n.label)) || r.keys.length > 0 && (n.key === void 0 || !r.keys.includes(n.key)));
303
303
  }
304
- function oc(n) {
304
+ function lc(n) {
305
305
  return n.kinds.length > 0 && n.elements.length > 0;
306
306
  }
307
- function sc(n) {
307
+ function cc(n) {
308
308
  return {
309
309
  kinds: n.kinds.length === Sr.length ? void 0 : Sr.filter((r) => n.kinds.includes(r)),
310
310
  elements: n.elements.length === Rr.length ? void 0 : Rr.filter((r) => n.elements.includes(r)),
@@ -316,10 +316,10 @@ function He(n, r) {
316
316
  const t = r === void 0 ? n : `${n}/${r}`;
317
317
  return t.endsWith("/default") ? t.slice(0, -8) : t;
318
318
  }
319
- const Ca = 100;
320
- let xa = 0;
321
- function Da() {
322
- return gi()((n) => ({
319
+ const xa = 100;
320
+ let Da = 0;
321
+ function La() {
322
+ return pi()((n) => ({
323
323
  entries: [],
324
324
  unread: 0,
325
325
  resyncSinceOpen: !1,
@@ -327,9 +327,9 @@ function Da() {
327
327
  lastEventId: null,
328
328
  record: (r, t) => n((e) => ({
329
329
  entries: [
330
- { key: ++xa, event: r, receivedAt: Date.now() },
330
+ { key: ++Da, event: r, receivedAt: Date.now() },
331
331
  ...e.entries
332
- ].slice(0, Ca),
332
+ ].slice(0, xa),
333
333
  unread: !e.panelOpen && r.kind !== "resync" && t ? e.unread + 1 : e.unread,
334
334
  resyncSinceOpen: !e.panelOpen && r.kind === "resync" ? !0 : e.resyncSinceOpen
335
335
  })),
@@ -339,26 +339,26 @@ function Da() {
339
339
  }));
340
340
  }
341
341
  const xe = /* @__PURE__ */ new Map();
342
- function uc(n, r) {
342
+ function hc(n, r) {
343
343
  const t = He(n, r);
344
344
  let e = xe.get(t);
345
- return e || (e = Da(), xe.set(t, e)), e;
345
+ return e || (e = La(), xe.set(t, e)), e;
346
346
  }
347
- function La(n, r) {
347
+ function Ga(n, r) {
348
348
  const t = He(n, r);
349
349
  xe.get(t)?.getState().clear(), xe.delete(t);
350
350
  }
351
- function Ga(n) {
351
+ function Pa(n) {
352
352
  for (const [r, t] of [...xe.entries()])
353
353
  (r === n || r.startsWith(`${n}/`)) && (t.getState().clear(), xe.delete(r));
354
354
  }
355
- function Pa(n, r, t) {
355
+ function Ia(n, r, t) {
356
356
  const e = He(n, r), i = He(n, t);
357
357
  if (e === i) return;
358
358
  const a = xe.get(e);
359
359
  xe.get(i)?.getState().clear(), xe.delete(e), xe.delete(i), a && xe.set(i, a);
360
360
  }
361
- const Ia = {
361
+ const Fa = {
362
362
  ink: "--color-ink",
363
363
  panel: "--color-panel",
364
364
  panel2: "--color-panel-2",
@@ -373,17 +373,17 @@ const Ia = {
373
373
  fontMono: "--font-mono"
374
374
  };
375
375
  let _t = {}, wt = 0;
376
- function lc() {
376
+ function dc() {
377
377
  return _t;
378
378
  }
379
- function cc(n) {
379
+ function fc(n) {
380
380
  if (wt > 0 && n !== _t)
381
381
  throw new Error(
382
382
  "F8 Studio is already mounted. Two simultaneous Studio embeds are not supported (they share one instance registry and one set of persisted keys); unmount the first, or run the second in its own realm (iframe/worker)."
383
383
  );
384
384
  _t = n;
385
385
  }
386
- function hc() {
386
+ function gc() {
387
387
  if (wt > 0)
388
388
  throw new Error(
389
389
  "F8 Studio is already mounted. Two simultaneous Studio embeds are not supported (they share one instance registry and one set of persisted keys); unmount the first, or run the second in its own realm (iframe/worker)."
@@ -394,31 +394,31 @@ function hc() {
394
394
  n || (n = !0, wt -= 1);
395
395
  };
396
396
  }
397
- function dc() {
397
+ function pc() {
398
398
  wt === 0 && (_t = {});
399
399
  }
400
- function Fa(n) {
400
+ function Oa(n) {
401
401
  return `${_t.storageNamespace ?? ""}${n}`;
402
402
  }
403
- function Oa(n) {
403
+ function za(n) {
404
404
  const r = {};
405
405
  if (!n) return r;
406
406
  for (const [t, e] of Object.entries(n))
407
- e && (r[Ia[t]] = e);
407
+ e && (r[Fa[t]] = e);
408
408
  return r;
409
409
  }
410
- const za = hi({});
411
- function fc() {
412
- return di(za);
410
+ const Na = di({});
411
+ function vc() {
412
+ return fi(Na);
413
413
  }
414
- const Na = hi(void 0);
415
- function gc() {
416
- return di(Na);
414
+ const Ua = di(void 0);
415
+ function mc() {
416
+ return fi(Ua);
417
417
  }
418
- function Xe(n) {
419
- return Fa(`f8.workspace.${n}`);
418
+ function Ke(n) {
419
+ return Oa(`f8.workspace.${n}`);
420
420
  }
421
- function vi(n) {
421
+ function mi(n) {
422
422
  return n.label ?? n.edgePropertyId ?? null;
423
423
  }
424
424
  const un = 200;
@@ -430,7 +430,7 @@ function ln(n) {
430
430
  }
431
431
  return r;
432
432
  }
433
- function Ua(n, r, t) {
433
+ function $a(n, r, t) {
434
434
  const e = { ...t?.nodes ?? {} }, i = { ...t?.edges ?? {} };
435
435
  for (const a of n)
436
436
  e[a.id] = {
@@ -449,7 +449,7 @@ function Ua(n, r, t) {
449
449
  };
450
450
  return { nodes: e, edges: i };
451
451
  }
452
- const qt = {
452
+ const Ma = ["path", "subgraph", "stored"], cn = "path", Ba = (n) => typeof n == "string" && Ma.includes(n), yc = (n) => n === "SubGraph" ? "subgraph" : "path", qt = {
453
453
  from: "",
454
454
  to: "",
455
455
  algorithm: "BLS",
@@ -463,8 +463,8 @@ const qt = {
463
463
  edgeCost: "",
464
464
  filterSource: "inline",
465
465
  storedQuery: "",
466
- semantic: { ...pi }
467
- }, Xt = {
466
+ semantic: { ...vi }
467
+ }, Kt = {
468
468
  mode: "property",
469
469
  propertyScope: "key",
470
470
  propertyId: "",
@@ -499,7 +499,7 @@ const qt = {
499
499
  filterSource: "inline",
500
500
  storedQuery: "",
501
501
  semanticQuery: { ...$r }
502
- }, Kt = {
502
+ }, Xt = {
503
503
  idInput: "",
504
504
  lookupKind: "graphelement",
505
505
  maxElements: 1e3,
@@ -518,7 +518,7 @@ const qt = {
518
518
  showWriteBack: !1,
519
519
  writeBack: !1,
520
520
  writeBackKey: ""
521
- }, cn = {
521
+ }, hn = {
522
522
  tab: "style",
523
523
  findTerm: "",
524
524
  findLabel: "",
@@ -526,9 +526,9 @@ const qt = {
526
526
  connectMaxDepth: 3,
527
527
  connectScope: "all"
528
528
  };
529
- function $a(n) {
530
- return gi()(
531
- Ra(
529
+ function Wa(n) {
530
+ return pi()(
531
+ Aa(
532
532
  (r) => ({
533
533
  canvasNodes: {},
534
534
  canvasEdges: {},
@@ -537,16 +537,18 @@ function $a(n) {
537
537
  wholeGraphTruncation: null,
538
538
  resultSets: [],
539
539
  pathDraft: { ...qt },
540
- queryDraft: { ...Xt },
540
+ queryDraft: { ...Kt },
541
541
  subgraphDraft: { ...Lt },
542
- browserDraft: { ...Kt },
542
+ browserDraft: { ...Xt },
543
543
  analyticsDraft: { ...Yt },
544
- canvasToolsDraft: { ...cn },
544
+ canvasToolsDraft: { ...hn },
545
+ traverseTab: cn,
545
546
  scanPrefill: null,
546
547
  feedFilter: { ...sn },
547
548
  inspectPrefill: null,
549
+ integrationWatch: null,
548
550
  mergeIntoCanvas: (t, e) => r((i) => {
549
- const a = Ua(t, e, {
551
+ const a = $a(t, e, {
550
552
  nodes: i.canvasNodes,
551
553
  edges: i.canvasEdges
552
554
  });
@@ -590,20 +592,22 @@ function $a(n) {
590
592
  setPathDraft: (t) => r((e) => ({ pathDraft: { ...e.pathDraft, ...t } })),
591
593
  resetPathDraft: () => r({ pathDraft: { ...qt } }),
592
594
  setQueryDraft: (t) => r((e) => ({ queryDraft: { ...e.queryDraft, ...t } })),
593
- resetQueryDraft: () => r({ queryDraft: { ...Xt } }),
595
+ resetQueryDraft: () => r({ queryDraft: { ...Kt } }),
594
596
  setSubgraphDraft: (t) => r((e) => ({ subgraphDraft: { ...e.subgraphDraft, ...t } })),
595
597
  resetSubgraphDraft: () => r({ subgraphDraft: { ...Lt } }),
596
598
  setBrowserDraft: (t) => r((e) => ({ browserDraft: { ...e.browserDraft, ...t } })),
597
- resetBrowserDraft: () => r({ browserDraft: { ...Kt } }),
599
+ resetBrowserDraft: () => r({ browserDraft: { ...Xt } }),
598
600
  setAnalyticsDraft: (t) => r((e) => ({ analyticsDraft: { ...e.analyticsDraft, ...t } })),
599
601
  resetAnalyticsDraft: () => r({ analyticsDraft: { ...Yt } }),
600
602
  setCanvasToolsDraft: (t) => r((e) => ({ canvasToolsDraft: { ...e.canvasToolsDraft, ...t } })),
603
+ setTraverseTab: (t) => r({ traverseTab: t }),
601
604
  setScanPrefill: (t) => r({ scanPrefill: t }),
602
605
  setFeedFilter: (t) => r((e) => ({ feedFilter: { ...e.feedFilter, ...t } })),
603
- setInspectPrefill: (t) => r({ inspectPrefill: t })
606
+ setInspectPrefill: (t) => r({ inspectPrefill: t }),
607
+ setIntegrationWatch: (t) => r({ integrationWatch: t })
604
608
  }),
605
609
  {
606
- name: Xe(n),
610
+ name: Ke(n),
607
611
  // One-shot navigation intents are session state: persisted, a never-consumed
608
612
  // one would fire a surprise lookup on a later session's first visit.
609
613
  partialize: ({ scanPrefill: r, inspectPrefill: t, ...e }) => e,
@@ -619,9 +623,9 @@ function $a(n) {
619
623
  ...e.pathDraft ?? {},
620
624
  // Nested draft added after some state was persisted: deep-default it too, so
621
625
  // an older pathDraft picks up every semantic field instead of a partial.
622
- semantic: { ...pi, ...e.pathDraft?.semantic ?? {} }
626
+ semantic: { ...vi, ...e.pathDraft?.semantic ?? {} }
623
627
  },
624
- queryDraft: { ...Xt, ...e.queryDraft ?? {} },
628
+ queryDraft: { ...Kt, ...e.queryDraft ?? {} },
625
629
  // A subgraph draft persisted before the slot-mode restructure (feature
626
630
  // subgraph-semantic-thresholds) carried a block-local `semantic` object and no
627
631
  // slot modes; it is RESET rather than migrated - a draft is a session
@@ -634,15 +638,22 @@ function $a(n) {
634
638
  ...e.subgraphDraft?.semanticQuery ?? {}
635
639
  }
636
640
  },
637
- browserDraft: { ...Kt, ...e.browserDraft ?? {} },
641
+ browserDraft: { ...Xt, ...e.browserDraft ?? {} },
638
642
  analyticsDraft: { ...Yt, ...e.analyticsDraft ?? {} },
639
- canvasToolsDraft: { ...cn, ...e.canvasToolsDraft ?? {} },
643
+ canvasToolsDraft: { ...hn, ...e.canvasToolsDraft ?? {} },
644
+ // Normalized, not trusted: a tab id this build does not know (hand-edited storage,
645
+ // a renamed tab) would leave the Traverse screen with every panel hidden.
646
+ traverseTab: Ba(e.traverseTab) ? e.traverseTab : cn,
640
647
  styleConfig: { ...Tr, ...e.styleConfig ?? {} },
641
648
  feedFilter: { ...sn, ...e.feedFilter ?? {} },
642
649
  // One-shots never rehydrate (see partialize); this also drops values
643
650
  // persisted before the partialize existed.
644
651
  scanPrefill: null,
645
652
  inspectPrefill: null
653
+ // integrationWatch is deliberately NOT reset here. It is not a one-shot: a run outlives the
654
+ // request that started it and can take hours, so surviving a reload is the whole point of
655
+ // persisting it. Nulling it here silently defeated that - the field was written to storage by
656
+ // partialize and thrown away on the way back in.
646
657
  };
647
658
  }
648
659
  }
@@ -650,34 +661,34 @@ function $a(n) {
650
661
  );
651
662
  }
652
663
  const je = /* @__PURE__ */ new Map();
653
- function pc(n, r) {
664
+ function bc(n, r) {
654
665
  const t = He(n, r);
655
666
  let e = je.get(t);
656
- return e || (e = $a(t), je.set(t, e)), e;
667
+ return e || (e = Wa(t), je.set(t, e)), e;
657
668
  }
658
- function vc(n, r) {
669
+ function wc(n, r) {
659
670
  const t = He(n, r);
660
- je.delete(t), localStorage.removeItem(Xe(t)), La(n, r);
671
+ je.delete(t), localStorage.removeItem(Ke(t)), Ga(n, r);
661
672
  }
662
- function mc(n) {
673
+ function Ec(n) {
663
674
  for (const r of [...je.keys()])
664
675
  (r === n || r.startsWith(`${n}/`)) && je.delete(r);
665
676
  for (let r = localStorage.length - 1; r >= 0; r--) {
666
677
  const t = localStorage.key(r);
667
- (t === Xe(n) || t?.startsWith(Xe(`${n}/`))) && localStorage.removeItem(t);
678
+ (t === Ke(n) || t?.startsWith(Ke(`${n}/`))) && localStorage.removeItem(t);
668
679
  }
669
- Ga(n);
680
+ Pa(n);
670
681
  }
671
- function yc(n, r, t) {
682
+ function _c(n, r, t) {
672
683
  const e = He(n, r), i = He(n, t);
673
684
  if (e === i) return;
674
- const a = localStorage.getItem(Xe(e));
675
- a !== null && (localStorage.setItem(Xe(i), a), localStorage.removeItem(Xe(e))), je.delete(e), je.delete(i), Pa(n, r, t);
685
+ const a = localStorage.getItem(Ke(e));
686
+ a !== null && (localStorage.setItem(Ke(i), a), localStorage.removeItem(Ke(e))), je.delete(e), je.delete(i), Ia(n, r, t);
676
687
  }
677
- function bc() {
688
+ function Tc() {
678
689
  je.clear();
679
690
  }
680
- const hn = [
691
+ const dn = [
681
692
  "#4cc38a",
682
693
  // green
683
694
  "#58a6ff",
@@ -704,22 +715,22 @@ function Mt(n) {
704
715
  let r = 0;
705
716
  for (let t = 0; t < n.length; t++)
706
717
  r = r * 31 + n.charCodeAt(t) | 0;
707
- return hn[Math.abs(r) % hn.length];
718
+ return dn[Math.abs(r) % dn.length];
708
719
  }
709
- function mi(n) {
720
+ function yi(n) {
710
721
  return n == null || n === "" ? Tt : Mt(String(n));
711
722
  }
712
- const wc = "#39c5cf", Ec = "#f778ba";
713
- function Ma(n) {
723
+ const Sc = "#39c5cf", Rc = "#f778ba";
724
+ function Ha(n) {
714
725
  const r = Math.min(1, Math.max(0, n)), t = [57, 197, 207], e = [247, 120, 186];
715
726
  return `#${t.map((a, o) => Math.round(a + (e[o] - a) * r)).map((a) => a.toString(16).padStart(2, "0")).join("")}`;
716
727
  }
717
- const Ba = 5e3, Wa = {
728
+ const ja = 5e3, Va = {
718
729
  nodeIds: /* @__PURE__ */ new Set(),
719
730
  edgeIds: /* @__PURE__ */ new Set(),
720
731
  active: !1,
721
732
  dim: !1
722
- }, Mr = 5, Ha = [3, 14], ja = 1, Va = [0.5, 5], qa = 11, Xa = 9, Ka = 8, Ya = 3, Za = "#4cc38a", Qa = "#2a3240", Ja = "#1a2029", eo = "#2c3543";
733
+ }, Mr = 5, qa = [3, 14], Ka = 1, Xa = [0.5, 5], Ya = 11, Za = 9, Qa = 8, Ja = 3, eo = "#4cc38a", to = "#2a3240", ro = "#1a2029", no = "#2c3543";
723
734
  function tt(n, r) {
724
735
  return (n.props ?? {})[r];
725
736
  }
@@ -731,7 +742,7 @@ function St(n) {
731
742
  }
732
743
  return null;
733
744
  }
734
- function to(n) {
745
+ function io(n) {
735
746
  if (n == null || typeof n == "boolean") return null;
736
747
  const r = String(n).trim();
737
748
  return r ? /^(https?:\/\/|data:)/i.test(r) ? { kind: "url", value: r } : { kind: "emoji", value: [...r].slice(0, 8).join("") } : null;
@@ -750,7 +761,7 @@ function Ar(n, r, t) {
750
761
  }
751
762
  return { kind: "categorical", property: t };
752
763
  }
753
- function dn(n, r, t) {
764
+ function fn(n, r, t) {
754
765
  if (n.kind === "label") return t;
755
766
  const e = tt(r, n.property);
756
767
  if (e === void 0 || e === "") return Tt;
@@ -758,11 +769,11 @@ function dn(n, r, t) {
758
769
  const i = St(e);
759
770
  if (i === null) return Tt;
760
771
  const a = n.max - n.min;
761
- return Ma(a === 0 ? 0.5 : (i - n.min) / a);
772
+ return Ha(a === 0 ? 0.5 : (i - n.min) / a);
762
773
  }
763
- return mi(e);
774
+ return yi(e);
764
775
  }
765
- function fn(n, r, t) {
776
+ function gn(n, r, t) {
766
777
  const e = n.filter((u) => u !== null);
767
778
  if (e.length === 0) return () => t;
768
779
  const i = Math.min(...e), a = Math.max(...e), [o, s] = r;
@@ -778,32 +789,32 @@ function Rt(n) {
778
789
  function Gt(n, r) {
779
790
  return Rt(n) ? n : r;
780
791
  }
781
- function gn(n, r) {
792
+ function pn(n, r) {
782
793
  if (!n) return r;
783
794
  const [t, e] = n;
784
795
  return Rt(t) && Rt(e) ? n : r;
785
796
  }
786
- function ro(n, r) {
797
+ function ao(n, r) {
787
798
  const [t, e] = r;
788
799
  return Math.min(Math.max(n, Math.min(t, e)), Math.max(t, e));
789
800
  }
790
- function pn(n, r, t) {
791
- return Rt(n) ? r : ro(r, t);
801
+ function vn(n, r, t) {
802
+ return Rt(n) ? r : ao(r, t);
792
803
  }
793
- function no(n) {
794
- const r = Gt(n.nodeSize, Mr), t = gn(n.nodeSizeRange, Ha), e = Gt(n.edgeWidth, ja), i = gn(n.edgeWidthRange, Va);
804
+ function oo(n) {
805
+ const r = Gt(n.nodeSize, Mr), t = pn(n.nodeSizeRange, qa), e = Gt(n.edgeWidth, Ka), i = pn(n.edgeWidthRange, Xa);
795
806
  return {
796
807
  nodeSize: r,
797
808
  nodeSizeRange: t,
798
- nodeSizeFallback: pn(n.nodeSize, r, t),
809
+ nodeSizeFallback: vn(n.nodeSize, r, t),
799
810
  edgeWidth: e,
800
811
  edgeWidthRange: i,
801
- edgeWidthFallback: pn(n.edgeWidth, e, i),
802
- labelSize: Gt(n.labelSize, qa),
803
- edgeLabelSize: Gt(n.edgeLabelSize, Xa)
812
+ edgeWidthFallback: vn(n.edgeWidth, e, i),
813
+ labelSize: Gt(n.labelSize, Ya),
814
+ edgeLabelSize: Gt(n.edgeLabelSize, Za)
804
815
  };
805
816
  }
806
- function io(n) {
817
+ function so(n) {
807
818
  const r = /* @__PURE__ */ new Map(), t = (e) => {
808
819
  let i = r.get(e);
809
820
  return i || (i = { in: 0, out: 0 }, r.set(e, i)), i;
@@ -812,8 +823,8 @@ function io(n) {
812
823
  t(e.source).out++, t(e.target).in++;
813
824
  return r;
814
825
  }
815
- function ao(n, r, t, e) {
816
- const i = Object.values(n), a = Object.values(r), o = no(e), s = Ar(i, e.nodeColorMode, e.nodeColorProperty), u = Ar(a, e.edgeColorMode, e.edgeColorProperty), l = e.nodeSizeMode === "in-degree" || e.nodeSizeMode === "out-degree" || e.nodeSizeMode === "degree" ? io(a) : null, c = (w) => {
826
+ function uo(n, r, t, e) {
827
+ const i = Object.values(n), a = Object.values(r), o = oo(e), s = Ar(i, e.nodeColorMode, e.nodeColorProperty), u = Ar(a, e.edgeColorMode, e.edgeColorProperty), l = e.nodeSizeMode === "in-degree" || e.nodeSizeMode === "out-degree" || e.nodeSizeMode === "degree" ? so(a) : null, c = (w) => {
817
828
  switch (e.nodeSizeMode) {
818
829
  case "property":
819
830
  return e.nodeSizeProperty ? St(tt(w, e.nodeSizeProperty)) : null;
@@ -828,12 +839,12 @@ function ao(n, r, t, e) {
828
839
  default:
829
840
  return null;
830
841
  }
831
- }, h = e.nodeSizeMode === "fixed" ? () => o.nodeSize : fn(i.map(c), o.nodeSizeRange, o.nodeSizeFallback), v = (w) => e.edgeWidthMode === "property" && e.edgeWidthProperty ? St(tt(w, e.edgeWidthProperty)) : null, y = e.edgeWidthMode === "fixed" ? () => o.edgeWidth : fn(a.map(v), o.edgeWidthRange, o.edgeWidthFallback), b = {};
842
+ }, h = e.nodeSizeMode === "fixed" ? () => o.nodeSize : gn(i.map(c), o.nodeSizeRange, o.nodeSizeFallback), v = (w) => e.edgeWidthMode === "property" && e.edgeWidthProperty ? St(tt(w, e.edgeWidthProperty)) : null, y = e.edgeWidthMode === "fixed" ? () => o.edgeWidth : gn(a.map(v), o.edgeWidthRange, o.edgeWidthFallback), b = {};
832
843
  for (const w of i) {
833
- const k = t.nodeIds.has(w.id), E = t.active && t.dim && !k, m = h(c(w)), p = e.nodeImageProperty ? to(tt(w, e.nodeImageProperty)) : null;
844
+ const k = t.nodeIds.has(w.id), E = t.active && t.dim && !k, m = h(c(w)), p = e.nodeImageProperty ? io(tt(w, e.nodeImageProperty)) : null;
834
845
  b[w.id] = {
835
- color: E ? Qa : dn(s, w, Mt(w.label)),
836
- size: k ? Math.max(m, Ka) : m,
846
+ color: E ? to : fn(s, w, Mt(w.label)),
847
+ size: k ? Math.max(m, Qa) : m,
837
848
  // A dimmed image would still pop against the dim palette — suppress it (FR-9).
838
849
  image: E ? null : p,
839
850
  zIndex: k ? 2 : 1,
@@ -842,18 +853,18 @@ function ao(n, r, t, e) {
842
853
  }
843
854
  const R = {};
844
855
  for (const w of a) {
845
- const k = t.edgeIds.has(w.id), E = t.active && t.dim && !k, m = y(v(w)), p = vi(w), C = p ? Mt(p) : eo;
856
+ const k = t.edgeIds.has(w.id), E = t.active && t.dim && !k, m = y(v(w)), p = mi(w), C = p ? Mt(p) : no;
846
857
  R[w.id] = {
847
- color: k ? Za : E ? Ja : dn(u, w, C),
848
- width: k ? Math.max(m, Ya) : m,
858
+ color: k ? eo : E ? ro : fn(u, w, C),
859
+ width: k ? Math.max(m, Ja) : m,
849
860
  zIndex: k ? 2 : 0,
850
861
  dimmed: E
851
862
  };
852
863
  }
853
864
  return { nodes: b, edges: R, magnitudes: o };
854
865
  }
855
- const oo = 12;
856
- function _c(n, r) {
866
+ const lo = 12;
867
+ function Ac(n, r) {
857
868
  const t = Object.values(n), e = Ar(t, r.nodeColorMode, r.nodeColorProperty);
858
869
  if (e.kind === "gradient")
859
870
  return { kind: "gradient", title: e.property, min: e.min, max: e.max };
@@ -862,20 +873,20 @@ function _c(n, r) {
862
873
  let s, u;
863
874
  if (e.kind === "categorical") {
864
875
  const c = tt(o, e.property);
865
- s = c === void 0 || c === "" ? "(missing)" : String(c), u = c === void 0 || c === "" ? Tt : mi(c);
876
+ s = c === void 0 || c === "" ? "(missing)" : String(c), u = c === void 0 || c === "" ? Tt : yi(c);
866
877
  } else
867
878
  s = o.label ?? "(unlabeled)", u = Mt(o.label);
868
879
  const l = i.get(s);
869
880
  l ? l.count++ : i.set(s, { color: u, count: 1 });
870
881
  }
871
- const a = [...i.entries()].map(([o, { color: s, count: u }]) => ({ key: o, color: s, count: u })).sort((o, s) => s.count - o.count).slice(0, oo);
882
+ const a = [...i.entries()].map(([o, { color: s, count: u }]) => ({ key: o, color: s, count: u })).sort((o, s) => s.count - o.count).slice(0, lo);
872
883
  return {
873
884
  kind: "categorical",
874
885
  title: e.kind === "categorical" ? e.property : "labels",
875
886
  entries: a
876
887
  };
877
888
  }
878
- function Tc(n) {
889
+ function kc(n) {
879
890
  const r = /* @__PURE__ */ new Set();
880
891
  for (const t of n)
881
892
  for (const e of Object.keys(t.props ?? {})) r.add(e);
@@ -884,10 +895,10 @@ function Tc(n) {
884
895
  function Br(n) {
885
896
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
886
897
  }
887
- var Pt = { exports: {} }, vn;
888
- function so() {
889
- if (vn) return Pt.exports;
890
- vn = 1;
898
+ var Pt = { exports: {} }, mn;
899
+ function co() {
900
+ if (mn) return Pt.exports;
901
+ mn = 1;
891
902
  var n = typeof Reflect == "object" ? Reflect : null, r = n && typeof n.apply == "function" ? n.apply : function(C, L, g) {
892
903
  return Function.prototype.apply.call(C, L, g);
893
904
  }, t;
@@ -1096,15 +1107,15 @@ function so() {
1096
1107
  }
1097
1108
  return Pt.exports;
1098
1109
  }
1099
- var Wr = so();
1100
- function uo() {
1110
+ var Wr = co();
1111
+ function ho() {
1101
1112
  const n = arguments[0];
1102
1113
  for (let r = 1, t = arguments.length; r < t; r++)
1103
1114
  if (arguments[r])
1104
1115
  for (const e in arguments[r]) n[e] = arguments[r][e];
1105
1116
  return n;
1106
1117
  }
1107
- let ue = uo;
1118
+ let ue = ho;
1108
1119
  typeof Object.assign == "function" && (ue = Object.assign);
1109
1120
  function _e(n, r, t, e) {
1110
1121
  const i = n._nodes.get(r);
@@ -1114,7 +1125,7 @@ function _e(n, r, t, e) {
1114
1125
  function he(n) {
1115
1126
  return typeof n == "object" && n !== null;
1116
1127
  }
1117
- function yi(n) {
1128
+ function bi(n) {
1118
1129
  let r;
1119
1130
  for (r in n) return !1;
1120
1131
  return !0;
@@ -1134,10 +1145,10 @@ function Ae(n, r, t) {
1134
1145
  };
1135
1146
  typeof t == "function" ? e.get = t : (e.value = t, e.writable = !1), Object.defineProperty(n, r, e);
1136
1147
  }
1137
- function mn(n) {
1148
+ function yn(n) {
1138
1149
  return !(!he(n) || n.attributes && !Array.isArray(n.attributes));
1139
1150
  }
1140
- function lo() {
1151
+ function fo() {
1141
1152
  let n = Math.floor(Math.random() * 256) & 255;
1142
1153
  return () => n++;
1143
1154
  }
@@ -1198,22 +1209,22 @@ class Q extends Hr {
1198
1209
  super(r), this.name = "UsageGraphError", typeof Error.captureStackTrace == "function" && Error.captureStackTrace(this, Q.prototype.constructor);
1199
1210
  }
1200
1211
  }
1201
- function bi(n, r) {
1212
+ function wi(n, r) {
1202
1213
  this.key = n, this.attributes = r, this.clear();
1203
1214
  }
1204
- bi.prototype.clear = function() {
1215
+ wi.prototype.clear = function() {
1205
1216
  this.inDegree = 0, this.outDegree = 0, this.undirectedDegree = 0, this.undirectedLoops = 0, this.directedLoops = 0, this.in = {}, this.out = {}, this.undirected = {};
1206
1217
  };
1207
- function wi(n, r) {
1218
+ function Ei(n, r) {
1208
1219
  this.key = n, this.attributes = r, this.clear();
1209
1220
  }
1210
- wi.prototype.clear = function() {
1221
+ Ei.prototype.clear = function() {
1211
1222
  this.inDegree = 0, this.outDegree = 0, this.directedLoops = 0, this.in = {}, this.out = {};
1212
1223
  };
1213
- function Ei(n, r) {
1224
+ function _i(n, r) {
1214
1225
  this.key = n, this.attributes = r, this.clear();
1215
1226
  }
1216
- Ei.prototype.clear = function() {
1227
+ _i.prototype.clear = function() {
1217
1228
  this.undirectedDegree = 0, this.undirectedLoops = 0, this.undirected = {};
1218
1229
  };
1219
1230
  function ut(n, r, t, e, i) {
@@ -1246,16 +1257,16 @@ ut.prototype.detachMulti = function() {
1246
1257
  let t = "out", e = "in";
1247
1258
  this.undirected && (t = e = "undirected"), this.previous === void 0 ? this.next === void 0 ? (delete this.source[t][r], delete this.target[e][n]) : (this.next.previous = void 0, this.source[t][r] = this.next, this.target[e][n] = this.next) : (this.previous.next = this.next, this.next !== void 0 && (this.next.previous = this.previous));
1248
1259
  };
1249
- const _i = 0, Ti = 1, co = 2, Si = 3;
1260
+ const Ti = 0, Si = 1, go = 2, Ri = 3;
1250
1261
  function Ne(n, r, t, e, i, a, o) {
1251
1262
  let s, u, l, c;
1252
- if (e = "" + e, t === _i) {
1263
+ if (e = "" + e, t === Ti) {
1253
1264
  if (s = n._nodes.get(e), !s)
1254
1265
  throw new M(
1255
1266
  `Graph.${r}: could not find the "${e}" node in the graph.`
1256
1267
  );
1257
1268
  l = i, c = a;
1258
- } else if (t === Si) {
1269
+ } else if (t === Ri) {
1259
1270
  if (i = "" + i, u = n._edges.get(i), !u)
1260
1271
  throw new M(
1261
1272
  `Graph.${r}: could not find the "${i}" edge in the graph.`
@@ -1275,11 +1286,11 @@ function Ne(n, r, t, e, i, a, o) {
1275
1286
  throw new M(
1276
1287
  `Graph.${r}: could not find the "${e}" edge in the graph.`
1277
1288
  );
1278
- t === Ti ? s = u.source : s = u.target, l = i, c = a;
1289
+ t === Si ? s = u.source : s = u.target, l = i, c = a;
1279
1290
  }
1280
1291
  return [s, l, c];
1281
1292
  }
1282
- function ho(n, r, t) {
1293
+ function po(n, r, t) {
1283
1294
  n.prototype[r] = function(e, i, a) {
1284
1295
  const [o, s] = Ne(
1285
1296
  this,
@@ -1292,7 +1303,7 @@ function ho(n, r, t) {
1292
1303
  return o.attributes[s];
1293
1304
  };
1294
1305
  }
1295
- function fo(n, r, t) {
1306
+ function vo(n, r, t) {
1296
1307
  n.prototype[r] = function(e, i) {
1297
1308
  const [a] = Ne(
1298
1309
  this,
@@ -1304,7 +1315,7 @@ function fo(n, r, t) {
1304
1315
  return a.attributes;
1305
1316
  };
1306
1317
  }
1307
- function go(n, r, t) {
1318
+ function mo(n, r, t) {
1308
1319
  n.prototype[r] = function(e, i, a) {
1309
1320
  const [o, s] = Ne(
1310
1321
  this,
@@ -1317,7 +1328,7 @@ function go(n, r, t) {
1317
1328
  return o.attributes.hasOwnProperty(s);
1318
1329
  };
1319
1330
  }
1320
- function po(n, r, t) {
1331
+ function yo(n, r, t) {
1321
1332
  n.prototype[r] = function(e, i, a, o) {
1322
1333
  const [s, u, l] = Ne(
1323
1334
  this,
@@ -1336,7 +1347,7 @@ function po(n, r, t) {
1336
1347
  }), this;
1337
1348
  };
1338
1349
  }
1339
- function vo(n, r, t) {
1350
+ function bo(n, r, t) {
1340
1351
  n.prototype[r] = function(e, i, a, o) {
1341
1352
  const [s, u, l] = Ne(
1342
1353
  this,
@@ -1360,7 +1371,7 @@ function vo(n, r, t) {
1360
1371
  }), this;
1361
1372
  };
1362
1373
  }
1363
- function mo(n, r, t) {
1374
+ function wo(n, r, t) {
1364
1375
  n.prototype[r] = function(e, i, a) {
1365
1376
  const [o, s] = Ne(
1366
1377
  this,
@@ -1378,7 +1389,7 @@ function mo(n, r, t) {
1378
1389
  }), this;
1379
1390
  };
1380
1391
  }
1381
- function yo(n, r, t) {
1392
+ function Eo(n, r, t) {
1382
1393
  n.prototype[r] = function(e, i, a) {
1383
1394
  const [o, s] = Ne(
1384
1395
  this,
@@ -1399,7 +1410,7 @@ function yo(n, r, t) {
1399
1410
  }), this;
1400
1411
  };
1401
1412
  }
1402
- function bo(n, r, t) {
1413
+ function _o(n, r, t) {
1403
1414
  n.prototype[r] = function(e, i, a) {
1404
1415
  const [o, s] = Ne(
1405
1416
  this,
@@ -1421,7 +1432,7 @@ function bo(n, r, t) {
1421
1432
  }), this;
1422
1433
  };
1423
1434
  }
1424
- function wo(n, r, t) {
1435
+ function To(n, r, t) {
1425
1436
  n.prototype[r] = function(e, i, a) {
1426
1437
  const [o, s] = Ne(
1427
1438
  this,
@@ -1442,50 +1453,50 @@ function wo(n, r, t) {
1442
1453
  }), this;
1443
1454
  };
1444
1455
  }
1445
- const Eo = [
1456
+ const So = [
1446
1457
  {
1447
1458
  name: (n) => `get${n}Attribute`,
1448
- attacher: ho
1459
+ attacher: po
1449
1460
  },
1450
1461
  {
1451
1462
  name: (n) => `get${n}Attributes`,
1452
- attacher: fo
1463
+ attacher: vo
1453
1464
  },
1454
1465
  {
1455
1466
  name: (n) => `has${n}Attribute`,
1456
- attacher: go
1467
+ attacher: mo
1457
1468
  },
1458
1469
  {
1459
1470
  name: (n) => `set${n}Attribute`,
1460
- attacher: po
1471
+ attacher: yo
1461
1472
  },
1462
1473
  {
1463
1474
  name: (n) => `update${n}Attribute`,
1464
- attacher: vo
1475
+ attacher: bo
1465
1476
  },
1466
1477
  {
1467
1478
  name: (n) => `remove${n}Attribute`,
1468
- attacher: mo
1479
+ attacher: wo
1469
1480
  },
1470
1481
  {
1471
1482
  name: (n) => `replace${n}Attributes`,
1472
- attacher: yo
1483
+ attacher: Eo
1473
1484
  },
1474
1485
  {
1475
1486
  name: (n) => `merge${n}Attributes`,
1476
- attacher: bo
1487
+ attacher: _o
1477
1488
  },
1478
1489
  {
1479
1490
  name: (n) => `update${n}Attributes`,
1480
- attacher: wo
1491
+ attacher: To
1481
1492
  }
1482
1493
  ];
1483
- function _o(n) {
1484
- Eo.forEach(function({ name: r, attacher: t }) {
1485
- t(n, r("Node"), _i), t(n, r("Source"), Ti), t(n, r("Target"), co), t(n, r("Opposite"), Si);
1494
+ function Ro(n) {
1495
+ So.forEach(function({ name: r, attacher: t }) {
1496
+ t(n, r("Node"), Ti), t(n, r("Source"), Si), t(n, r("Target"), go), t(n, r("Opposite"), Ri);
1486
1497
  });
1487
1498
  }
1488
- function To(n, r, t) {
1499
+ function Ao(n, r, t) {
1489
1500
  n.prototype[r] = function(e, i) {
1490
1501
  let a;
1491
1502
  if (this.type !== "mixed" && t !== "mixed" && t !== this.type)
@@ -1515,7 +1526,7 @@ function To(n, r, t) {
1515
1526
  return a.attributes[i];
1516
1527
  };
1517
1528
  }
1518
- function So(n, r, t) {
1529
+ function ko(n, r, t) {
1519
1530
  n.prototype[r] = function(e) {
1520
1531
  let i;
1521
1532
  if (this.type !== "mixed" && t !== "mixed" && t !== this.type)
@@ -1545,7 +1556,7 @@ function So(n, r, t) {
1545
1556
  return i.attributes;
1546
1557
  };
1547
1558
  }
1548
- function Ro(n, r, t) {
1559
+ function Co(n, r, t) {
1549
1560
  n.prototype[r] = function(e, i) {
1550
1561
  let a;
1551
1562
  if (this.type !== "mixed" && t !== "mixed" && t !== this.type)
@@ -1575,7 +1586,7 @@ function Ro(n, r, t) {
1575
1586
  return a.attributes.hasOwnProperty(i);
1576
1587
  };
1577
1588
  }
1578
- function Ao(n, r, t) {
1589
+ function xo(n, r, t) {
1579
1590
  n.prototype[r] = function(e, i, a) {
1580
1591
  let o;
1581
1592
  if (this.type !== "mixed" && t !== "mixed" && t !== this.type)
@@ -1610,7 +1621,7 @@ function Ao(n, r, t) {
1610
1621
  }), this;
1611
1622
  };
1612
1623
  }
1613
- function ko(n, r, t) {
1624
+ function Do(n, r, t) {
1614
1625
  n.prototype[r] = function(e, i, a) {
1615
1626
  let o;
1616
1627
  if (this.type !== "mixed" && t !== "mixed" && t !== this.type)
@@ -1649,7 +1660,7 @@ function ko(n, r, t) {
1649
1660
  }), this;
1650
1661
  };
1651
1662
  }
1652
- function Co(n, r, t) {
1663
+ function Lo(n, r, t) {
1653
1664
  n.prototype[r] = function(e, i) {
1654
1665
  let a;
1655
1666
  if (this.type !== "mixed" && t !== "mixed" && t !== this.type)
@@ -1684,7 +1695,7 @@ function Co(n, r, t) {
1684
1695
  }), this;
1685
1696
  };
1686
1697
  }
1687
- function xo(n, r, t) {
1698
+ function Go(n, r, t) {
1688
1699
  n.prototype[r] = function(e, i) {
1689
1700
  let a;
1690
1701
  if (this.type !== "mixed" && t !== "mixed" && t !== this.type)
@@ -1722,7 +1733,7 @@ function xo(n, r, t) {
1722
1733
  }), this;
1723
1734
  };
1724
1735
  }
1725
- function Do(n, r, t) {
1736
+ function Po(n, r, t) {
1726
1737
  n.prototype[r] = function(e, i) {
1727
1738
  let a;
1728
1739
  if (this.type !== "mixed" && t !== "mixed" && t !== this.type)
@@ -1761,7 +1772,7 @@ function Do(n, r, t) {
1761
1772
  }), this;
1762
1773
  };
1763
1774
  }
1764
- function Lo(n, r, t) {
1775
+ function Io(n, r, t) {
1765
1776
  n.prototype[r] = function(e, i) {
1766
1777
  let a;
1767
1778
  if (this.type !== "mixed" && t !== "mixed" && t !== this.type)
@@ -1799,50 +1810,50 @@ function Lo(n, r, t) {
1799
1810
  }), this;
1800
1811
  };
1801
1812
  }
1802
- const Go = [
1813
+ const Fo = [
1803
1814
  {
1804
1815
  name: (n) => `get${n}Attribute`,
1805
- attacher: To
1816
+ attacher: Ao
1806
1817
  },
1807
1818
  {
1808
1819
  name: (n) => `get${n}Attributes`,
1809
- attacher: So
1820
+ attacher: ko
1810
1821
  },
1811
1822
  {
1812
1823
  name: (n) => `has${n}Attribute`,
1813
- attacher: Ro
1824
+ attacher: Co
1814
1825
  },
1815
1826
  {
1816
1827
  name: (n) => `set${n}Attribute`,
1817
- attacher: Ao
1828
+ attacher: xo
1818
1829
  },
1819
1830
  {
1820
1831
  name: (n) => `update${n}Attribute`,
1821
- attacher: ko
1832
+ attacher: Do
1822
1833
  },
1823
1834
  {
1824
1835
  name: (n) => `remove${n}Attribute`,
1825
- attacher: Co
1836
+ attacher: Lo
1826
1837
  },
1827
1838
  {
1828
1839
  name: (n) => `replace${n}Attributes`,
1829
- attacher: xo
1840
+ attacher: Go
1830
1841
  },
1831
1842
  {
1832
1843
  name: (n) => `merge${n}Attributes`,
1833
- attacher: Do
1844
+ attacher: Po
1834
1845
  },
1835
1846
  {
1836
1847
  name: (n) => `update${n}Attributes`,
1837
- attacher: Lo
1848
+ attacher: Io
1838
1849
  }
1839
1850
  ];
1840
- function Po(n) {
1841
- Go.forEach(function({ name: r, attacher: t }) {
1851
+ function Oo(n) {
1852
+ Fo.forEach(function({ name: r, attacher: t }) {
1842
1853
  t(n, r("Edge"), "mixed"), t(n, r("DirectedEdge"), "directed"), t(n, r("UndirectedEdge"), "undirected");
1843
1854
  });
1844
1855
  }
1845
- const Io = [
1856
+ const zo = [
1846
1857
  {
1847
1858
  name: "edges",
1848
1859
  type: "mixed"
@@ -1876,7 +1887,7 @@ const Io = [
1876
1887
  type: "undirected"
1877
1888
  }
1878
1889
  ];
1879
- function Fo(n, r, t, e) {
1890
+ function No(n, r, t, e) {
1880
1891
  let i = !1;
1881
1892
  for (const a in r) {
1882
1893
  if (a === e) continue;
@@ -1892,7 +1903,7 @@ function Fo(n, r, t, e) {
1892
1903
  ), n && i) return o.key;
1893
1904
  }
1894
1905
  }
1895
- function Oo(n, r, t, e) {
1906
+ function Uo(n, r, t, e) {
1896
1907
  let i, a, o, s = !1;
1897
1908
  for (const u in r)
1898
1909
  if (u !== e) {
@@ -1947,7 +1958,7 @@ function Zt(n, r) {
1947
1958
  }
1948
1959
  };
1949
1960
  }
1950
- function zo(n, r, t, e) {
1961
+ function $o(n, r, t, e) {
1951
1962
  const i = r[t];
1952
1963
  if (!i) return;
1953
1964
  const a = i.source, o = i.target;
@@ -1962,7 +1973,7 @@ function zo(n, r, t, e) {
1962
1973
  ) && n)
1963
1974
  return i.key;
1964
1975
  }
1965
- function No(n, r, t, e) {
1976
+ function Mo(n, r, t, e) {
1966
1977
  let i = r[t];
1967
1978
  if (!i) return;
1968
1979
  let a = !1;
@@ -2024,7 +2035,7 @@ function Qt(n, r) {
2024
2035
  }
2025
2036
  };
2026
2037
  }
2027
- function Uo(n, r) {
2038
+ function Bo(n, r) {
2028
2039
  if (n.size === 0) return [];
2029
2040
  if (r === "mixed" || r === n.type)
2030
2041
  return Array.from(n._edges.keys());
@@ -2034,7 +2045,7 @@ function Uo(n, r) {
2034
2045
  u = s.value, u.undirected === i && (e[o++] = u.key);
2035
2046
  return e;
2036
2047
  }
2037
- function Ri(n, r, t, e) {
2048
+ function Ai(n, r, t, e) {
2038
2049
  if (r.size === 0) return;
2039
2050
  const i = t !== "mixed" && t !== r.type, a = t === "undirected";
2040
2051
  let o, s, u = !1;
@@ -2053,7 +2064,7 @@ function Ri(n, r, t, e) {
2053
2064
  ), n && u) return c;
2054
2065
  }
2055
2066
  }
2056
- function $o(n, r) {
2067
+ function Wo(n, r) {
2057
2068
  if (n.size === 0) return st();
2058
2069
  const t = r !== "mixed" && r !== n.type, e = r === "undirected", i = n._edges.values();
2059
2070
  return {
@@ -2080,7 +2091,7 @@ function $o(n, r) {
2080
2091
  };
2081
2092
  }
2082
2093
  function jr(n, r, t, e, i, a) {
2083
- const o = r ? Oo : Fo;
2094
+ const o = r ? Uo : No;
2084
2095
  let s;
2085
2096
  if (t !== "undirected" && (e !== "out" && (s = o(n, i.in, a), n && s) || e !== "in" && (s = o(
2086
2097
  n,
@@ -2090,13 +2101,13 @@ function jr(n, r, t, e, i, a) {
2090
2101
  ), n && s)) || t !== "directed" && (s = o(n, i.undirected, a), n && s))
2091
2102
  return s;
2092
2103
  }
2093
- function Mo(n, r, t, e) {
2104
+ function Ho(n, r, t, e) {
2094
2105
  const i = [];
2095
2106
  return jr(!1, n, r, t, e, function(a) {
2096
2107
  i.push(a);
2097
2108
  }), i;
2098
2109
  }
2099
- function Bo(n, r, t) {
2110
+ function jo(n, r, t) {
2100
2111
  let e = st();
2101
2112
  return n !== "undirected" && (r !== "out" && typeof t.in < "u" && (e = ze(e, Zt(t.in))), r !== "in" && typeof t.out < "u" && (e = ze(
2102
2113
  e,
@@ -2104,12 +2115,12 @@ function Bo(n, r, t) {
2104
2115
  ))), n !== "directed" && typeof t.undirected < "u" && (e = ze(e, Zt(t.undirected))), e;
2105
2116
  }
2106
2117
  function Vr(n, r, t, e, i, a, o) {
2107
- const s = t ? No : zo;
2118
+ const s = t ? Mo : $o;
2108
2119
  let u;
2109
2120
  if (r !== "undirected" && (typeof i.in < "u" && e !== "out" && (u = s(n, i.in, a, o), n && u) || typeof i.out < "u" && e !== "in" && (e || i.key !== a) && (u = s(n, i.out, a, o), n && u)) || r !== "directed" && typeof i.undirected < "u" && (u = s(n, i.undirected, a, o), n && u))
2110
2121
  return u;
2111
2122
  }
2112
- function Wo(n, r, t, e, i) {
2123
+ function Vo(n, r, t, e, i) {
2113
2124
  const a = [];
2114
2125
  return Vr(
2115
2126
  !1,
@@ -2123,19 +2134,19 @@ function Wo(n, r, t, e, i) {
2123
2134
  }
2124
2135
  ), a;
2125
2136
  }
2126
- function Ho(n, r, t, e) {
2137
+ function qo(n, r, t, e) {
2127
2138
  let i = st();
2128
2139
  return n !== "undirected" && (typeof t.in < "u" && r !== "out" && e in t.in && (i = ze(i, Qt(t.in, e))), typeof t.out < "u" && r !== "in" && e in t.out && (r || t.key !== e) && (i = ze(i, Qt(t.out, e)))), n !== "directed" && typeof t.undirected < "u" && e in t.undirected && (i = ze(
2129
2140
  i,
2130
2141
  Qt(t.undirected, e)
2131
2142
  )), i;
2132
2143
  }
2133
- function jo(n, r) {
2144
+ function Ko(n, r) {
2134
2145
  const { name: t, type: e, direction: i } = r;
2135
2146
  n.prototype[t] = function(a, o) {
2136
2147
  if (e !== "mixed" && this.type !== "mixed" && e !== this.type)
2137
2148
  return [];
2138
- if (!arguments.length) return Uo(this, e);
2149
+ if (!arguments.length) return Bo(this, e);
2139
2150
  if (arguments.length === 1) {
2140
2151
  a = "" + a;
2141
2152
  const s = this._nodes.get(a);
@@ -2143,7 +2154,7 @@ function jo(n, r) {
2143
2154
  throw new M(
2144
2155
  `Graph.${t}: could not find the "${a}" node in the graph.`
2145
2156
  );
2146
- return Mo(
2157
+ return Ho(
2147
2158
  this.multi,
2148
2159
  e === "mixed" ? this.type : e,
2149
2160
  i,
@@ -2161,7 +2172,7 @@ function jo(n, r) {
2161
2172
  throw new M(
2162
2173
  `Graph.${t}: could not find the "${o}" target node in the graph.`
2163
2174
  );
2164
- return Wo(
2175
+ return Vo(
2165
2176
  e,
2166
2177
  this.multi,
2167
2178
  i,
@@ -2174,12 +2185,12 @@ function jo(n, r) {
2174
2185
  );
2175
2186
  };
2176
2187
  }
2177
- function Vo(n, r) {
2188
+ function Xo(n, r) {
2178
2189
  const { name: t, type: e, direction: i } = r, a = "forEach" + t[0].toUpperCase() + t.slice(1, -1);
2179
2190
  n.prototype[a] = function(l, c, h) {
2180
2191
  if (!(e !== "mixed" && this.type !== "mixed" && e !== this.type)) {
2181
2192
  if (arguments.length === 1)
2182
- return h = l, Ri(!1, this, e, h);
2193
+ return h = l, Ai(!1, this, e, h);
2183
2194
  if (arguments.length === 2) {
2184
2195
  l = "" + l, h = c;
2185
2196
  const v = this._nodes.get(l);
@@ -2265,13 +2276,13 @@ function Vo(n, r) {
2265
2276
  }), this[a].apply(this, l), v;
2266
2277
  };
2267
2278
  }
2268
- function qo(n, r) {
2279
+ function Yo(n, r) {
2269
2280
  const { name: t, type: e, direction: i } = r, a = "find" + t[0].toUpperCase() + t.slice(1, -1);
2270
2281
  n.prototype[a] = function(u, l, c) {
2271
2282
  if (e !== "mixed" && this.type !== "mixed" && e !== this.type)
2272
2283
  return !1;
2273
2284
  if (arguments.length === 1)
2274
- return c = u, Ri(!0, this, e, c);
2285
+ return c = u, Ai(!0, this, e, c);
2275
2286
  if (arguments.length === 2) {
2276
2287
  u = "" + u, c = l;
2277
2288
  const h = this._nodes.get(u);
@@ -2324,12 +2335,12 @@ function qo(n, r) {
2324
2335
  return u.push((h, v, y, b, R, w, k) => !l(h, v, y, b, R, w, k)), !this[a].apply(this, u);
2325
2336
  };
2326
2337
  }
2327
- function Xo(n, r) {
2338
+ function Zo(n, r) {
2328
2339
  const { name: t, type: e, direction: i } = r, a = t.slice(0, -1) + "Entries";
2329
2340
  n.prototype[a] = function(o, s) {
2330
2341
  if (e !== "mixed" && this.type !== "mixed" && e !== this.type)
2331
2342
  return st();
2332
- if (!arguments.length) return $o(this, e);
2343
+ if (!arguments.length) return Wo(this, e);
2333
2344
  if (arguments.length === 1) {
2334
2345
  o = "" + o;
2335
2346
  const u = this._nodes.get(o);
@@ -2337,7 +2348,7 @@ function Xo(n, r) {
2337
2348
  throw new M(
2338
2349
  `Graph.${a}: could not find the "${o}" node in the graph.`
2339
2350
  );
2340
- return Bo(e, i, u);
2351
+ return jo(e, i, u);
2341
2352
  }
2342
2353
  if (arguments.length === 2) {
2343
2354
  o = "" + o, s = "" + s;
@@ -2350,19 +2361,19 @@ function Xo(n, r) {
2350
2361
  throw new M(
2351
2362
  `Graph.${a}: could not find the "${s}" target node in the graph.`
2352
2363
  );
2353
- return Ho(e, i, u, s);
2364
+ return qo(e, i, u, s);
2354
2365
  }
2355
2366
  throw new H(
2356
2367
  `Graph.${a}: too many arguments (expecting 0, 1 or 2 and got ${arguments.length}).`
2357
2368
  );
2358
2369
  };
2359
2370
  }
2360
- function Ko(n) {
2361
- Io.forEach((r) => {
2362
- jo(n, r), Vo(n, r), qo(n, r), Xo(n, r);
2371
+ function Qo(n) {
2372
+ zo.forEach((r) => {
2373
+ Ko(n, r), Xo(n, r), Yo(n, r), Zo(n, r);
2363
2374
  });
2364
2375
  }
2365
- const Yo = [
2376
+ const Jo = [
2366
2377
  {
2367
2378
  name: "neighbors",
2368
2379
  type: "mixed"
@@ -2465,7 +2476,7 @@ function qr(n, r, t, e, i) {
2465
2476
  ), n && o))
2466
2477
  return o;
2467
2478
  }
2468
- function Zo(n, r, t) {
2479
+ function es(n, r, t) {
2469
2480
  if (n !== "mixed") {
2470
2481
  if (n === "undirected") return Object.keys(t.undirected);
2471
2482
  if (typeof r == "string") return Object.keys(t[r]);
@@ -2500,7 +2511,7 @@ function dt(n, r, t) {
2500
2511
  }
2501
2512
  };
2502
2513
  }
2503
- function Qo(n, r, t) {
2514
+ function ts(n, r, t) {
2504
2515
  if (n !== "mixed") {
2505
2516
  if (n === "undirected")
2506
2517
  return dt(null, t, t.undirected);
@@ -2520,7 +2531,7 @@ function Qo(n, r, t) {
2520
2531
  dt(i, t, t.undirected)
2521
2532
  )), e;
2522
2533
  }
2523
- function Jo(n, r) {
2534
+ function rs(n, r) {
2524
2535
  const { name: t, type: e, direction: i } = r;
2525
2536
  n.prototype[t] = function(a) {
2526
2537
  if (e !== "mixed" && this.type !== "mixed" && e !== this.type)
@@ -2531,14 +2542,14 @@ function Jo(n, r) {
2531
2542
  throw new M(
2532
2543
  `Graph.${t}: could not find the "${a}" node in the graph.`
2533
2544
  );
2534
- return Zo(
2545
+ return es(
2535
2546
  e === "mixed" ? this.type : e,
2536
2547
  i,
2537
2548
  o
2538
2549
  );
2539
2550
  };
2540
2551
  }
2541
- function es(n, r) {
2552
+ function ns(n, r) {
2542
2553
  const { name: t, type: e, direction: i } = r, a = "forEach" + t[0].toUpperCase() + t.slice(1, -1);
2543
2554
  n.prototype[a] = function(l, c) {
2544
2555
  if (e !== "mixed" && this.type !== "mixed" && e !== this.type) return;
@@ -2582,7 +2593,7 @@ function es(n, r) {
2582
2593
  }), v;
2583
2594
  };
2584
2595
  }
2585
- function ts(n, r) {
2596
+ function is(n, r) {
2586
2597
  const { name: t, type: e, direction: i } = r, a = t[0].toUpperCase() + t.slice(1, -1), o = "find" + a;
2587
2598
  n.prototype[o] = function(l, c) {
2588
2599
  if (e !== "mixed" && this.type !== "mixed" && e !== this.type) return;
@@ -2609,7 +2620,7 @@ function ts(n, r) {
2609
2620
  return !this[o](l, (v, y) => !c(v, y));
2610
2621
  };
2611
2622
  }
2612
- function rs(n, r) {
2623
+ function as(n, r) {
2613
2624
  const { name: t, type: e, direction: i } = r, a = t.slice(0, -1) + "Entries";
2614
2625
  n.prototype[a] = function(o) {
2615
2626
  if (e !== "mixed" && this.type !== "mixed" && e !== this.type)
@@ -2620,16 +2631,16 @@ function rs(n, r) {
2620
2631
  throw new M(
2621
2632
  `Graph.${a}: could not find the "${o}" node in the graph.`
2622
2633
  );
2623
- return Qo(
2634
+ return ts(
2624
2635
  e === "mixed" ? this.type : e,
2625
2636
  i,
2626
2637
  s
2627
2638
  );
2628
2639
  };
2629
2640
  }
2630
- function ns(n) {
2631
- Yo.forEach((r) => {
2632
- Jo(n, r), es(n, r), ts(n, r), rs(n, r);
2641
+ function os(n) {
2642
+ Jo.forEach((r) => {
2643
+ rs(n, r), ns(n, r), is(n, r), as(n, r);
2633
2644
  });
2634
2645
  }
2635
2646
  function It(n, r, t, e, i) {
@@ -2683,19 +2694,19 @@ function It(n, r, t, e, i) {
2683
2694
  );
2684
2695
  }
2685
2696
  }
2686
- function is(n, r) {
2697
+ function ss(n, r) {
2687
2698
  const t = { key: n };
2688
- return yi(r.attributes) || (t.attributes = ue({}, r.attributes)), t;
2699
+ return bi(r.attributes) || (t.attributes = ue({}, r.attributes)), t;
2689
2700
  }
2690
- function as(n, r, t) {
2701
+ function us(n, r, t) {
2691
2702
  const e = {
2692
2703
  key: r,
2693
2704
  source: t.source.key,
2694
2705
  target: t.target.key
2695
2706
  };
2696
- return yi(t.attributes) || (e.attributes = ue({}, t.attributes)), n === "mixed" && t.undirected && (e.undirected = !0), e;
2707
+ return bi(t.attributes) || (e.attributes = ue({}, t.attributes)), n === "mixed" && t.undirected && (e.undirected = !0), e;
2697
2708
  }
2698
- function os(n) {
2709
+ function ls(n) {
2699
2710
  if (!he(n))
2700
2711
  throw new H(
2701
2712
  'Graph.import: invalid serialized node. A serialized node should be a plain object with at least a "key" property.'
@@ -2709,7 +2720,7 @@ function os(n) {
2709
2720
  "Graph.import: invalid attributes. Attributes should be a plain object, null or omitted."
2710
2721
  );
2711
2722
  }
2712
- function ss(n) {
2723
+ function cs(n) {
2713
2724
  if (!he(n))
2714
2725
  throw new H(
2715
2726
  'Graph.import: invalid serialized edge. A serialized edge should be a plain object with at least a "source" & "target" property.'
@@ -2731,12 +2742,12 @@ function ss(n) {
2731
2742
  "Graph.import: invalid undirectedness information. Undirected should be boolean or omitted."
2732
2743
  );
2733
2744
  }
2734
- const us = lo(), ls = /* @__PURE__ */ new Set(["directed", "undirected", "mixed"]), yn = /* @__PURE__ */ new Set([
2745
+ const hs = fo(), ds = /* @__PURE__ */ new Set(["directed", "undirected", "mixed"]), bn = /* @__PURE__ */ new Set([
2735
2746
  "domain",
2736
2747
  "_events",
2737
2748
  "_eventsCount",
2738
2749
  "_maxListeners"
2739
- ]), cs = [
2750
+ ]), fs = [
2740
2751
  {
2741
2752
  name: (n) => `${n}Edge`,
2742
2753
  generateKey: !0
@@ -2762,12 +2773,12 @@ const us = lo(), ls = /* @__PURE__ */ new Set(["directed", "undirected", "mixed"
2762
2773
  name: (n) => `${n}UndirectedEdgeWithKey`,
2763
2774
  type: "undirected"
2764
2775
  }
2765
- ], hs = {
2776
+ ], gs = {
2766
2777
  allowSelfLoops: !0,
2767
2778
  multi: !1,
2768
2779
  type: "mixed"
2769
2780
  };
2770
- function ds(n, r, t) {
2781
+ function ps(n, r, t) {
2771
2782
  if (t && !he(t))
2772
2783
  throw new H(
2773
2784
  `Graph.addNode: invalid attributes. Expecting an object but got "${t}"`
@@ -2782,14 +2793,14 @@ function ds(n, r, t) {
2782
2793
  attributes: t
2783
2794
  }), e;
2784
2795
  }
2785
- function bn(n, r, t) {
2796
+ function wn(n, r, t) {
2786
2797
  const e = new n.NodeDataClass(r, t);
2787
2798
  return n._nodes.set(r, e), n.emit("nodeAdded", {
2788
2799
  key: r,
2789
2800
  attributes: t
2790
2801
  }), e;
2791
2802
  }
2792
- function Ai(n, r, t, e, i, a, o, s) {
2803
+ function ki(n, r, t, e, i, a, o, s) {
2793
2804
  if (!e && n.type === "undirected")
2794
2805
  throw new Q(
2795
2806
  `Graph.${r}: you cannot add a directed edge to an undirected graph. Use the #.addEdge or #.addUndirectedEdge instead.`
@@ -2843,7 +2854,7 @@ function Ai(n, r, t, e, i, a, o, s) {
2843
2854
  const v = a === o;
2844
2855
  return e ? (u.undirectedDegree++, l.undirectedDegree++, v && (u.undirectedLoops++, n._undirectedSelfLoopCount++)) : (u.outDegree++, l.inDegree++, v && (u.directedLoops++, n._directedSelfLoopCount++)), n.multi ? h.attachMulti() : h.attach(), e ? n._undirectedSize++ : n._directedSize++, c.key = i, n.emit("edgeAdded", c), i;
2845
2856
  }
2846
- function fs(n, r, t, e, i, a, o, s, u) {
2857
+ function vs(n, r, t, e, i, a, o, s, u) {
2847
2858
  if (!e && n.type === "undirected")
2848
2859
  throw new Q(
2849
2860
  `Graph.${r}: you cannot merge/update a directed edge to an undirected graph. Use the #.mergeEdge/#.updateEdge or #.addUndirectedEdge instead.`
@@ -2911,7 +2922,7 @@ function fs(n, r, t, e, i, a, o, s, u) {
2911
2922
  `Graph.${r}: the "${i}" edge already exists in the graph.`
2912
2923
  );
2913
2924
  let R = !1, w = !1;
2914
- c || (c = bn(n, a, {}), R = !0, a === o && (h = c, w = !0)), h || (h = bn(n, o, {}), w = !0), v = new ut(e, i, c, h, s), n._edges.set(i, v);
2925
+ c || (c = wn(n, a, {}), R = !0, a === o && (h = c, w = !0)), h || (h = wn(n, o, {}), w = !0), v = new ut(e, i, c, h, s), n._edges.set(i, v);
2915
2926
  const k = a === o;
2916
2927
  return e ? (c.undirectedDegree++, h.undirectedDegree++, k && (c.undirectedLoops++, n._undirectedSelfLoopCount++)) : (c.outDegree++, h.inDegree++, k && (c.directedLoops++, n._directedSelfLoopCount++)), n.multi ? v.attachMulti() : v.attach(), e ? n._undirectedSize++ : n._directedSize++, b.key = i, n.emit("edgeAdded", b), [i, !0, R, w];
2917
2928
  }
@@ -2928,11 +2939,11 @@ function Je(n, r) {
2928
2939
  }
2929
2940
  class ae extends Wr.EventEmitter {
2930
2941
  constructor(r) {
2931
- if (super(), r = ue({}, hs, r), typeof r.multi != "boolean")
2942
+ if (super(), r = ue({}, gs, r), typeof r.multi != "boolean")
2932
2943
  throw new H(
2933
2944
  `Graph.constructor: invalid 'multi' option. Expecting a boolean but got "${r.multi}".`
2934
2945
  );
2935
- if (!ls.has(r.type))
2946
+ if (!ds.has(r.type))
2936
2947
  throw new H(
2937
2948
  `Graph.constructor: invalid 'type' option. Should be one of "mixed", "directed" or "undirected" but got "${r.type}".`
2938
2949
  );
@@ -2940,9 +2951,9 @@ class ae extends Wr.EventEmitter {
2940
2951
  throw new H(
2941
2952
  `Graph.constructor: invalid 'allowSelfLoops' option. Expecting a boolean but got "${r.allowSelfLoops}".`
2942
2953
  );
2943
- const t = r.type === "mixed" ? bi : r.type === "directed" ? wi : Ei;
2954
+ const t = r.type === "mixed" ? wi : r.type === "directed" ? Ei : _i;
2944
2955
  Ee(this, "NodeDataClass", t);
2945
- const e = "geid_" + us() + "_";
2956
+ const e = "geid_" + hs() + "_";
2946
2957
  let i = 0;
2947
2958
  const a = () => {
2948
2959
  let o;
@@ -2951,7 +2962,7 @@ class ae extends Wr.EventEmitter {
2951
2962
  while (this._edges.has(o));
2952
2963
  return o;
2953
2964
  };
2954
- Ee(this, "_attributes", {}), Ee(this, "_nodes", /* @__PURE__ */ new Map()), Ee(this, "_edges", /* @__PURE__ */ new Map()), Ee(this, "_directedSize", 0), Ee(this, "_undirectedSize", 0), Ee(this, "_directedSelfLoopCount", 0), Ee(this, "_undirectedSelfLoopCount", 0), Ee(this, "_edgeKeyGenerator", a), Ee(this, "_options", r), yn.forEach((o) => Ee(this, o, this[o])), Ae(this, "order", () => this._nodes.size), Ae(this, "size", () => this._edges.size), Ae(this, "directedSize", () => this._directedSize), Ae(this, "undirectedSize", () => this._undirectedSize), Ae(
2965
+ Ee(this, "_attributes", {}), Ee(this, "_nodes", /* @__PURE__ */ new Map()), Ee(this, "_edges", /* @__PURE__ */ new Map()), Ee(this, "_directedSize", 0), Ee(this, "_undirectedSize", 0), Ee(this, "_directedSelfLoopCount", 0), Ee(this, "_undirectedSelfLoopCount", 0), Ee(this, "_edgeKeyGenerator", a), Ee(this, "_options", r), bn.forEach((o) => Ee(this, o, this[o])), Ae(this, "order", () => this._nodes.size), Ae(this, "size", () => this._edges.size), Ae(this, "directedSize", () => this._directedSize), Ae(this, "undirectedSize", () => this._undirectedSize), Ae(
2955
2966
  this,
2956
2967
  "selfLoopCount",
2957
2968
  () => this._directedSelfLoopCount + this._undirectedSelfLoopCount
@@ -3680,7 +3691,7 @@ class ae extends Wr.EventEmitter {
3680
3691
  * @throws {Error} - Will throw if the given attributes are not an object.
3681
3692
  */
3682
3693
  addNode(r, t) {
3683
- return ds(this, r, t).key;
3694
+ return ps(this, r, t).key;
3684
3695
  }
3685
3696
  /**
3686
3697
  * Method used to merge a node into the graph.
@@ -4023,7 +4034,7 @@ class ae extends Wr.EventEmitter {
4023
4034
  throw new H(
4024
4035
  "Graph.updateEachNodeAttributes: expecting an updater function."
4025
4036
  );
4026
- if (t && !mn(t))
4037
+ if (t && !yn(t))
4027
4038
  throw new H(
4028
4039
  "Graph.updateEachNodeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}"
4029
4040
  );
@@ -4046,7 +4057,7 @@ class ae extends Wr.EventEmitter {
4046
4057
  throw new H(
4047
4058
  "Graph.updateEachEdgeAttributes: expecting an updater function."
4048
4059
  );
4049
- if (t && !mn(t))
4060
+ if (t && !yn(t))
4050
4061
  throw new H(
4051
4062
  "Graph.updateEachEdgeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}"
4052
4063
  );
@@ -4270,11 +4281,11 @@ class ae extends Wr.EventEmitter {
4270
4281
  const r = new Array(this._nodes.size);
4271
4282
  let t = 0;
4272
4283
  this._nodes.forEach((i, a) => {
4273
- r[t++] = is(a, i);
4284
+ r[t++] = ss(a, i);
4274
4285
  });
4275
4286
  const e = new Array(this._edges.size);
4276
4287
  return t = 0, this._edges.forEach((i, a) => {
4277
- e[t++] = as(this.type, a, i);
4288
+ e[t++] = us(this.type, a, i);
4278
4289
  }), {
4279
4290
  options: {
4280
4291
  type: this.type,
@@ -4318,7 +4329,7 @@ class ae extends Wr.EventEmitter {
4318
4329
  "Graph.import: invalid nodes. Expecting an array."
4319
4330
  );
4320
4331
  for (e = 0, i = a.length; e < i; e++) {
4321
- o = a[e], os(o);
4332
+ o = a[e], ls(o);
4322
4333
  const { key: u, attributes: l } = o;
4323
4334
  t ? this.mergeNode(u, l) : this.addNode(u, l);
4324
4335
  }
@@ -4330,7 +4341,7 @@ class ae extends Wr.EventEmitter {
4330
4341
  "Graph.import: invalid edges. Expecting an array."
4331
4342
  );
4332
4343
  for (e = 0, i = a.length; e < i; e++) {
4333
- s = a[e], ss(s);
4344
+ s = a[e], cs(s);
4334
4345
  const {
4335
4346
  source: l,
4336
4347
  target: c,
@@ -4394,7 +4405,7 @@ class ae extends Wr.EventEmitter {
4394
4405
  const t = this.emptyCopy(r), e = this._edges.values();
4395
4406
  let i, a;
4396
4407
  for (; i = e.next(), i.done !== !0; )
4397
- a = i.value, Ai(
4408
+ a = i.value, ki(
4398
4409
  t,
4399
4410
  "copy",
4400
4411
  !1,
@@ -4444,14 +4455,14 @@ class ae extends Wr.EventEmitter {
4444
4455
  });
4445
4456
  const i = {};
4446
4457
  for (const a in this)
4447
- this.hasOwnProperty(a) && !yn.has(a) && typeof this[a] != "function" && typeof a != "symbol" && (i[a] = this[a]);
4458
+ this.hasOwnProperty(a) && !bn.has(a) && typeof this[a] != "function" && typeof a != "symbol" && (i[a] = this[a]);
4448
4459
  return i.attributes = this._attributes, i.nodes = r, i.edges = t, Ee(i, "constructor", this.constructor), i;
4449
4460
  }
4450
4461
  }
4451
4462
  typeof Symbol < "u" && (ae.prototype[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = ae.prototype.inspect);
4452
- cs.forEach((n) => {
4463
+ fs.forEach((n) => {
4453
4464
  ["add", "merge", "update"].forEach((r) => {
4454
- const t = n.name(r), e = r === "add" ? Ai : fs;
4465
+ const t = n.name(r), e = r === "add" ? ki : vs;
4455
4466
  n.generateKey ? ae.prototype[t] = function(i, a, o) {
4456
4467
  return e(
4457
4468
  this,
@@ -4479,11 +4490,11 @@ cs.forEach((n) => {
4479
4490
  };
4480
4491
  });
4481
4492
  });
4482
- _o(ae);
4483
- Po(ae);
4484
- Ko(ae);
4485
- ns(ae);
4486
- class ki extends ae {
4493
+ Ro(ae);
4494
+ Oo(ae);
4495
+ Qo(ae);
4496
+ os(ae);
4497
+ class Ci extends ae {
4487
4498
  constructor(r) {
4488
4499
  const t = ue({ type: "directed" }, r);
4489
4500
  if ("multi" in t && t.multi !== !1)
@@ -4497,7 +4508,7 @@ class ki extends ae {
4497
4508
  super(t);
4498
4509
  }
4499
4510
  }
4500
- class Ci extends ae {
4511
+ class xi extends ae {
4501
4512
  constructor(r) {
4502
4513
  const t = ue({ type: "undirected" }, r);
4503
4514
  if ("multi" in t && t.multi !== !1)
@@ -4511,7 +4522,7 @@ class Ci extends ae {
4511
4522
  super(t);
4512
4523
  }
4513
4524
  }
4514
- class xi extends ae {
4525
+ class Di extends ae {
4515
4526
  constructor(r) {
4516
4527
  const t = ue({ multi: !0 }, r);
4517
4528
  if ("multi" in t && t.multi !== !0)
@@ -4521,7 +4532,7 @@ class xi extends ae {
4521
4532
  super(t);
4522
4533
  }
4523
4534
  }
4524
- class Di extends ae {
4535
+ class Li extends ae {
4525
4536
  constructor(r) {
4526
4537
  const t = ue({ type: "directed", multi: !0 }, r);
4527
4538
  if ("multi" in t && t.multi !== !0)
@@ -4535,7 +4546,7 @@ class Di extends ae {
4535
4546
  super(t);
4536
4547
  }
4537
4548
  }
4538
- class Li extends ae {
4549
+ class Gi extends ae {
4539
4550
  constructor(r) {
4540
4551
  const t = ue({ type: "undirected", multi: !0 }, r);
4541
4552
  if ("multi" in t && t.multi !== !0)
@@ -4556,21 +4567,21 @@ function lt(n) {
4556
4567
  };
4557
4568
  }
4558
4569
  lt(ae);
4559
- lt(ki);
4560
4570
  lt(Ci);
4561
4571
  lt(xi);
4562
4572
  lt(Di);
4563
4573
  lt(Li);
4574
+ lt(Gi);
4564
4575
  ae.Graph = ae;
4565
- ae.DirectedGraph = ki;
4566
- ae.UndirectedGraph = Ci;
4567
- ae.MultiGraph = xi;
4568
- ae.MultiDirectedGraph = Di;
4569
- ae.MultiUndirectedGraph = Li;
4576
+ ae.DirectedGraph = Ci;
4577
+ ae.UndirectedGraph = xi;
4578
+ ae.MultiGraph = Di;
4579
+ ae.MultiDirectedGraph = Li;
4580
+ ae.MultiUndirectedGraph = Gi;
4570
4581
  ae.InvalidArgumentsGraphError = H;
4571
4582
  ae.NotFoundGraphError = M;
4572
4583
  ae.UsageGraphError = Q;
4573
- function gs(n, r) {
4584
+ function ms(n, r) {
4574
4585
  if (typeof n != "object" || !n) return n;
4575
4586
  var t = n[Symbol.toPrimitive];
4576
4587
  if (t !== void 0) {
@@ -4581,20 +4592,20 @@ function gs(n, r) {
4581
4592
  return String(n);
4582
4593
  }
4583
4594
  function Et(n) {
4584
- var r = gs(n, "string");
4595
+ var r = ms(n, "string");
4585
4596
  return typeof r == "symbol" ? r : r + "";
4586
4597
  }
4587
4598
  function ge(n, r) {
4588
4599
  if (!(n instanceof r)) throw new TypeError("Cannot call a class as a function");
4589
4600
  }
4590
- function wn(n, r) {
4601
+ function En(n, r) {
4591
4602
  for (var t = 0; t < r.length; t++) {
4592
4603
  var e = r[t];
4593
4604
  e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, Et(e.key), e);
4594
4605
  }
4595
4606
  }
4596
4607
  function pe(n, r, t) {
4597
- return r && wn(n.prototype, r), t && wn(n, t), Object.defineProperty(n, "prototype", {
4608
+ return r && En(n.prototype, r), t && En(n, t), Object.defineProperty(n, "prototype", {
4598
4609
  writable: !1
4599
4610
  }), n;
4600
4611
  }
@@ -4603,27 +4614,27 @@ function nt(n) {
4603
4614
  return r.__proto__ || Object.getPrototypeOf(r);
4604
4615
  }, nt(n);
4605
4616
  }
4606
- function Gi() {
4617
+ function Pi() {
4607
4618
  try {
4608
4619
  var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
4609
4620
  }));
4610
4621
  } catch {
4611
4622
  }
4612
- return (Gi = function() {
4623
+ return (Pi = function() {
4613
4624
  return !!n;
4614
4625
  })();
4615
4626
  }
4616
- function ps(n) {
4627
+ function ys(n) {
4617
4628
  if (n === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4618
4629
  return n;
4619
4630
  }
4620
- function vs(n, r) {
4631
+ function bs(n, r) {
4621
4632
  if (r && (typeof r == "object" || typeof r == "function")) return r;
4622
4633
  if (r !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
4623
- return ps(n);
4634
+ return ys(n);
4624
4635
  }
4625
4636
  function Te(n, r, t) {
4626
- return r = nt(r), vs(n, Gi() ? Reflect.construct(r, t || [], nt(n).constructor) : r.apply(n, t));
4637
+ return r = nt(r), bs(n, Pi() ? Reflect.construct(r, t || [], nt(n).constructor) : r.apply(n, t));
4627
4638
  }
4628
4639
  function kr(n, r) {
4629
4640
  return kr = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
@@ -4642,10 +4653,10 @@ function Se(n, r) {
4642
4653
  writable: !1
4643
4654
  }), r && kr(n, r);
4644
4655
  }
4645
- function ms(n) {
4656
+ function ws(n) {
4646
4657
  if (Array.isArray(n)) return n;
4647
4658
  }
4648
- function ys(n, r) {
4659
+ function Es(n, r) {
4649
4660
  var t = n == null ? null : typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
4650
4661
  if (t != null) {
4651
4662
  var e, i, a, o, s = [], u = !0, l = !1;
@@ -4671,19 +4682,19 @@ function Cr(n, r) {
4671
4682
  for (var t = 0, e = Array(r); t < r; t++) e[t] = n[t];
4672
4683
  return e;
4673
4684
  }
4674
- function Pi(n, r) {
4685
+ function Ii(n, r) {
4675
4686
  if (n) {
4676
4687
  if (typeof n == "string") return Cr(n, r);
4677
4688
  var t = {}.toString.call(n).slice(8, -1);
4678
4689
  return t === "Object" && n.constructor && (t = n.constructor.name), t === "Map" || t === "Set" ? Array.from(n) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Cr(n, r) : void 0;
4679
4690
  }
4680
4691
  }
4681
- function bs() {
4692
+ function _s() {
4682
4693
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4683
4694
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
4684
4695
  }
4685
4696
  function it(n, r) {
4686
- return ms(n) || ys(n, r) || Pi(n, r) || bs();
4697
+ return ws(n) || Es(n, r) || Ii(n, r) || _s();
4687
4698
  }
4688
4699
  var Jt = {
4689
4700
  black: "#000000",
@@ -4834,13 +4845,13 @@ var Jt = {
4834
4845
  snow: "#FFFAFA",
4835
4846
  lightyellow: "#FFFFE0",
4836
4847
  ivory: "#FFFFF0"
4837
- }, Ii = new Int8Array(4), er = new Int32Array(Ii.buffer, 0, 1), ws = new Float32Array(Ii.buffer, 0, 1), Es = /^\s*rgba?\s*\(/, _s = /^\s*rgba?\s*\(\s*([0-9]*)\s*,\s*([0-9]*)\s*,\s*([0-9]*)(?:\s*,\s*(.*)?)?\)\s*$/;
4838
- function Ts(n) {
4848
+ }, Fi = new Int8Array(4), er = new Int32Array(Fi.buffer, 0, 1), Ts = new Float32Array(Fi.buffer, 0, 1), Ss = /^\s*rgba?\s*\(/, Rs = /^\s*rgba?\s*\(\s*([0-9]*)\s*,\s*([0-9]*)\s*,\s*([0-9]*)(?:\s*,\s*(.*)?)?\)\s*$/;
4849
+ function As(n) {
4839
4850
  var r = 0, t = 0, e = 0, i = 1;
4840
4851
  if (n[0] === "#")
4841
4852
  n.length === 4 ? (r = parseInt(n.charAt(1) + n.charAt(1), 16), t = parseInt(n.charAt(2) + n.charAt(2), 16), e = parseInt(n.charAt(3) + n.charAt(3), 16)) : (r = parseInt(n.charAt(1) + n.charAt(2), 16), t = parseInt(n.charAt(3) + n.charAt(4), 16), e = parseInt(n.charAt(5) + n.charAt(6), 16)), n.length === 9 && (i = parseInt(n.charAt(7) + n.charAt(8), 16) / 255);
4842
- else if (Es.test(n)) {
4843
- var a = n.match(_s);
4853
+ else if (Ss.test(n)) {
4854
+ var a = n.match(Rs);
4844
4855
  a && (r = +a[1], t = +a[2], e = +a[3], a[4] && (i = +a[4]));
4845
4856
  }
4846
4857
  return {
@@ -4853,26 +4864,26 @@ function Ts(n) {
4853
4864
  var rt = {};
4854
4865
  for (var Ft in Jt)
4855
4866
  rt[Ft] = Ye(Jt[Ft]), rt[Jt[Ft]] = rt[Ft];
4856
- function Fi(n, r, t, e, i) {
4857
- return er[0] = e << 24 | t << 16 | r << 8 | n, er[0] = er[0] & 4278190079, ws[0];
4867
+ function Oi(n, r, t, e, i) {
4868
+ return er[0] = e << 24 | t << 16 | r << 8 | n, er[0] = er[0] & 4278190079, Ts[0];
4858
4869
  }
4859
4870
  function Ye(n) {
4860
4871
  if (n = n.toLowerCase(), typeof rt[n] < "u") return rt[n];
4861
- var r = Ts(n), t = r.r, e = r.g, i = r.b, a = r.a;
4872
+ var r = As(n), t = r.r, e = r.g, i = r.b, a = r.a;
4862
4873
  a = a * 255 | 0;
4863
- var o = Fi(t, e, i, a);
4874
+ var o = Oi(t, e, i, a);
4864
4875
  return rt[n] = o, o;
4865
4876
  }
4866
4877
  var tr = {};
4867
- function Oi(n) {
4878
+ function zi(n) {
4868
4879
  if (typeof tr[n] < "u") return tr[n];
4869
- var r = (n & 16711680) >>> 16, t = (n & 65280) >>> 8, e = n & 255, i = 255, a = Fi(r, t, e, i);
4880
+ var r = (n & 16711680) >>> 16, t = (n & 65280) >>> 8, e = n & 255, i = 255, a = Oi(r, t, e, i);
4870
4881
  return tr[n] = a, a;
4871
4882
  }
4872
- function En(n, r, t, e) {
4883
+ function _n(n, r, t, e) {
4873
4884
  return t + (r << 8) + (n << 16);
4874
4885
  }
4875
- function _n(n, r, t, e, i, a) {
4886
+ function Tn(n, r, t, e, i, a) {
4876
4887
  var o = Math.floor(t / a * i), s = Math.floor(n.drawingBufferHeight / a - e / a * i), u = new Uint8Array(4);
4877
4888
  n.bindFramebuffer(n.FRAMEBUFFER, r), n.readPixels(o, s, 1, 1, n.RGBA, n.UNSIGNED_BYTE, u);
4878
4889
  var l = it(u, 4), c = l[0], h = l[1], v = l[2], y = l[3];
@@ -4886,7 +4897,7 @@ function N(n, r, t) {
4886
4897
  writable: !0
4887
4898
  }) : n[r] = t, n;
4888
4899
  }
4889
- function Tn(n, r) {
4900
+ function Sn(n, r) {
4890
4901
  var t = Object.keys(n);
4891
4902
  if (Object.getOwnPropertySymbols) {
4892
4903
  var e = Object.getOwnPropertySymbols(n);
@@ -4899,43 +4910,43 @@ function Tn(n, r) {
4899
4910
  function j(n) {
4900
4911
  for (var r = 1; r < arguments.length; r++) {
4901
4912
  var t = arguments[r] != null ? arguments[r] : {};
4902
- r % 2 ? Tn(Object(t), !0).forEach(function(e) {
4913
+ r % 2 ? Sn(Object(t), !0).forEach(function(e) {
4903
4914
  N(n, e, t[e]);
4904
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : Tn(Object(t)).forEach(function(e) {
4915
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : Sn(Object(t)).forEach(function(e) {
4905
4916
  Object.defineProperty(n, e, Object.getOwnPropertyDescriptor(t, e));
4906
4917
  });
4907
4918
  }
4908
4919
  return n;
4909
4920
  }
4910
- function Ss(n, r) {
4921
+ function ks(n, r) {
4911
4922
  for (; !{}.hasOwnProperty.call(n, r) && (n = nt(n)) !== null; ) ;
4912
4923
  return n;
4913
4924
  }
4914
4925
  function xr() {
4915
4926
  return xr = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(n, r, t) {
4916
- var e = Ss(n, r);
4927
+ var e = ks(n, r);
4917
4928
  if (e) {
4918
4929
  var i = Object.getOwnPropertyDescriptor(e, r);
4919
4930
  return i.get ? i.get.call(arguments.length < 3 ? n : t) : i.value;
4920
4931
  }
4921
4932
  }, xr.apply(null, arguments);
4922
4933
  }
4923
- function zi(n, r, t, e) {
4934
+ function Ni(n, r, t, e) {
4924
4935
  var i = xr(nt(n.prototype), r, t);
4925
4936
  return typeof i == "function" ? function(a) {
4926
4937
  return i.apply(t, a);
4927
4938
  } : i;
4928
4939
  }
4929
- function Rs(n) {
4940
+ function Cs(n) {
4930
4941
  return n.normalized ? 1 : n.size;
4931
4942
  }
4932
4943
  function rr(n) {
4933
4944
  var r = 0;
4934
4945
  return n.forEach(function(t) {
4935
- return r += Rs(t);
4946
+ return r += Cs(t);
4936
4947
  }), r;
4937
4948
  }
4938
- function Ni(n, r, t) {
4949
+ function Ui(n, r, t) {
4939
4950
  var e = n === "VERTEX" ? r.VERTEX_SHADER : r.FRAGMENT_SHADER, i = r.createShader(e);
4940
4951
  if (i === null)
4941
4952
  throw new Error("loadShader: error while creating the shader");
@@ -4949,13 +4960,13 @@ function Ni(n, r, t) {
4949
4960
  }
4950
4961
  return i;
4951
4962
  }
4952
- function As(n, r) {
4953
- return Ni("VERTEX", n, r);
4963
+ function xs(n, r) {
4964
+ return Ui("VERTEX", n, r);
4954
4965
  }
4955
- function ks(n, r) {
4956
- return Ni("FRAGMENT", n, r);
4966
+ function Ds(n, r) {
4967
+ return Ui("FRAGMENT", n, r);
4957
4968
  }
4958
- function Cs(n, r) {
4969
+ function Ls(n, r) {
4959
4970
  var t = n.createProgram();
4960
4971
  if (t === null)
4961
4972
  throw new Error("loadProgram: error while creating the program.");
@@ -4969,16 +4980,16 @@ function Cs(n, r) {
4969
4980
  }
4970
4981
  return t;
4971
4982
  }
4972
- function Sn(n) {
4983
+ function Rn(n) {
4973
4984
  var r = n.gl, t = n.buffer, e = n.program, i = n.vertexShader, a = n.fragmentShader;
4974
4985
  r.deleteShader(i), r.deleteShader(a), r.deleteProgram(e), r.deleteBuffer(t);
4975
4986
  }
4976
- var Rn = `#define PICKING_MODE
4977
- `, xs = N(N(N(N(N(N(N(N({}, WebGL2RenderingContext.BOOL, 1), WebGL2RenderingContext.BYTE, 1), WebGL2RenderingContext.UNSIGNED_BYTE, 1), WebGL2RenderingContext.SHORT, 2), WebGL2RenderingContext.UNSIGNED_SHORT, 2), WebGL2RenderingContext.INT, 4), WebGL2RenderingContext.UNSIGNED_INT, 4), WebGL2RenderingContext.FLOAT, 4), Ui = /* @__PURE__ */ (function() {
4987
+ var An = `#define PICKING_MODE
4988
+ `, Gs = N(N(N(N(N(N(N(N({}, WebGL2RenderingContext.BOOL, 1), WebGL2RenderingContext.BYTE, 1), WebGL2RenderingContext.UNSIGNED_BYTE, 1), WebGL2RenderingContext.SHORT, 2), WebGL2RenderingContext.UNSIGNED_SHORT, 2), WebGL2RenderingContext.INT, 4), WebGL2RenderingContext.UNSIGNED_INT, 4), WebGL2RenderingContext.FLOAT, 4), $i = /* @__PURE__ */ (function() {
4978
4989
  function n(r, t, e) {
4979
4990
  ge(this, n), N(this, "array", new Float32Array()), N(this, "constantArray", new Float32Array()), N(this, "capacity", 0), N(this, "verticesCount", 0);
4980
4991
  var i = this.getDefinition();
4981
- if (this.VERTICES = i.VERTICES, this.VERTEX_SHADER_SOURCE = i.VERTEX_SHADER_SOURCE, this.FRAGMENT_SHADER_SOURCE = i.FRAGMENT_SHADER_SOURCE, this.UNIFORMS = i.UNIFORMS, this.ATTRIBUTES = i.ATTRIBUTES, this.METHOD = i.METHOD, this.CONSTANT_ATTRIBUTES = "CONSTANT_ATTRIBUTES" in i ? i.CONSTANT_ATTRIBUTES : [], this.CONSTANT_DATA = "CONSTANT_DATA" in i ? i.CONSTANT_DATA : [], this.isInstanced = "CONSTANT_ATTRIBUTES" in i, this.ATTRIBUTES_ITEMS_COUNT = rr(this.ATTRIBUTES), this.STRIDE = this.VERTICES * this.ATTRIBUTES_ITEMS_COUNT, this.renderer = e, this.normalProgram = this.getProgramInfo("normal", r, i.VERTEX_SHADER_SOURCE, i.FRAGMENT_SHADER_SOURCE, null), this.pickProgram = t ? this.getProgramInfo("pick", r, Rn + i.VERTEX_SHADER_SOURCE, Rn + i.FRAGMENT_SHADER_SOURCE, t) : null, this.isInstanced) {
4992
+ if (this.VERTICES = i.VERTICES, this.VERTEX_SHADER_SOURCE = i.VERTEX_SHADER_SOURCE, this.FRAGMENT_SHADER_SOURCE = i.FRAGMENT_SHADER_SOURCE, this.UNIFORMS = i.UNIFORMS, this.ATTRIBUTES = i.ATTRIBUTES, this.METHOD = i.METHOD, this.CONSTANT_ATTRIBUTES = "CONSTANT_ATTRIBUTES" in i ? i.CONSTANT_ATTRIBUTES : [], this.CONSTANT_DATA = "CONSTANT_DATA" in i ? i.CONSTANT_DATA : [], this.isInstanced = "CONSTANT_ATTRIBUTES" in i, this.ATTRIBUTES_ITEMS_COUNT = rr(this.ATTRIBUTES), this.STRIDE = this.VERTICES * this.ATTRIBUTES_ITEMS_COUNT, this.renderer = e, this.normalProgram = this.getProgramInfo("normal", r, i.VERTEX_SHADER_SOURCE, i.FRAGMENT_SHADER_SOURCE, null), this.pickProgram = t ? this.getProgramInfo("pick", r, An + i.VERTEX_SHADER_SOURCE, An + i.FRAGMENT_SHADER_SOURCE, t) : null, this.isInstanced) {
4982
4993
  var a = rr(this.CONSTANT_ATTRIBUTES);
4983
4994
  if (this.CONSTANT_DATA.length !== this.VERTICES) throw new Error("Program: error while getting constant data (expected ".concat(this.VERTICES, " items, received ").concat(this.CONSTANT_DATA.length, " instead)"));
4984
4995
  this.constantArray = new Float32Array(this.CONSTANT_DATA.length * a);
@@ -4993,14 +5004,14 @@ var Rn = `#define PICKING_MODE
4993
5004
  return pe(n, [{
4994
5005
  key: "kill",
4995
5006
  value: function() {
4996
- Sn(this.normalProgram), this.pickProgram && (Sn(this.pickProgram), this.pickProgram = null);
5007
+ Rn(this.normalProgram), this.pickProgram && (Rn(this.pickProgram), this.pickProgram = null);
4997
5008
  }
4998
5009
  }, {
4999
5010
  key: "getProgramInfo",
5000
5011
  value: function(t, e, i, a, o) {
5001
5012
  var s = this.getDefinition(), u = e.createBuffer();
5002
5013
  if (u === null) throw new Error("Program: error while creating the WebGL buffer.");
5003
- var l = As(e, i), c = ks(e, a), h = Cs(e, [l, c]), v = {};
5014
+ var l = xs(e, i), c = Ds(e, a), h = Ls(e, [l, c]), v = {};
5004
5015
  s.UNIFORMS.forEach(function(R) {
5005
5016
  var w = e.getUniformLocation(h, R);
5006
5017
  w && (v[R] = w);
@@ -5055,7 +5066,7 @@ var Rn = `#define PICKING_MODE
5055
5066
  }, {
5056
5067
  key: "bindAttribute",
5057
5068
  value: function(t, e, i, a) {
5058
- var o = xs[t.type];
5069
+ var o = Gs[t.type];
5059
5070
  if (typeof o != "number") throw new Error('Program.bind: yet unsupported attribute type "'.concat(t.type, '"'));
5060
5071
  var s = e.attributeLocations[t.name], u = e.gl;
5061
5072
  if (s !== -1) {
@@ -5120,14 +5131,14 @@ var Rn = `#define PICKING_MODE
5120
5131
  }
5121
5132
  }
5122
5133
  }]);
5123
- })(), $i = /* @__PURE__ */ (function(n) {
5134
+ })(), Mi = /* @__PURE__ */ (function(n) {
5124
5135
  function r() {
5125
5136
  return ge(this, r), Te(this, r, arguments);
5126
5137
  }
5127
5138
  return Se(r, n), pe(r, [{
5128
5139
  key: "kill",
5129
5140
  value: function() {
5130
- zi(r, "kill", this)([]);
5141
+ Ni(r, "kill", this)([]);
5131
5142
  }
5132
5143
  }, {
5133
5144
  key: "process",
@@ -5138,10 +5149,10 @@ var Rn = `#define PICKING_MODE
5138
5149
  this.array[o] = 0;
5139
5150
  return;
5140
5151
  }
5141
- return this.processVisibleItem(Oi(e), o, a);
5152
+ return this.processVisibleItem(zi(e), o, a);
5142
5153
  }
5143
5154
  }]);
5144
- })(Ui), Ht = /* @__PURE__ */ (function(n) {
5155
+ })($i), Ht = /* @__PURE__ */ (function(n) {
5145
5156
  function r() {
5146
5157
  var t;
5147
5158
  ge(this, r);
@@ -5152,7 +5163,7 @@ var Rn = `#define PICKING_MODE
5152
5163
  return Se(r, n), pe(r, [{
5153
5164
  key: "kill",
5154
5165
  value: function() {
5155
- zi(r, "kill", this)([]);
5166
+ Ni(r, "kill", this)([]);
5156
5167
  }
5157
5168
  }, {
5158
5169
  key: "process",
@@ -5163,11 +5174,11 @@ var Rn = `#define PICKING_MODE
5163
5174
  this.array[u] = 0;
5164
5175
  return;
5165
5176
  }
5166
- return this.processVisibleItem(Oi(e), u, a, o, s);
5177
+ return this.processVisibleItem(zi(e), u, a, o, s);
5167
5178
  }
5168
5179
  }]);
5169
- })(Ui);
5170
- function Ds(n, r) {
5180
+ })($i);
5181
+ function Ps(n, r) {
5171
5182
  return /* @__PURE__ */ (function() {
5172
5183
  function t(e, i, a) {
5173
5184
  ge(this, t), N(this, "drawLabel", r), this.programs = n.map(function(o) {
@@ -5205,7 +5216,7 @@ function Ds(n, r) {
5205
5216
  }]);
5206
5217
  })();
5207
5218
  }
5208
- function Ls(n, r, t, e, i) {
5219
+ function Is(n, r, t, e, i) {
5209
5220
  var a = i.edgeLabelSize, o = i.edgeLabelFont, s = i.edgeLabelWeight, u = i.edgeLabelColor.attribute ? r[i.edgeLabelColor.attribute] || i.edgeLabelColor.color || "#000" : i.edgeLabelColor.color, l = r.label;
5210
5221
  if (l) {
5211
5222
  n.fillStyle = u, n.font = "".concat(s, " ").concat(a, "px ").concat(o);
@@ -5224,13 +5235,13 @@ function Ls(n, r, t, e, i) {
5224
5235
  }
5225
5236
  }
5226
5237
  }
5227
- function Mi(n, r, t) {
5238
+ function Bi(n, r, t) {
5228
5239
  if (r.label) {
5229
5240
  var e = t.labelSize, i = t.labelFont, a = t.labelWeight, o = t.labelColor.attribute ? r[t.labelColor.attribute] || t.labelColor.color || "#000" : t.labelColor.color;
5230
5241
  n.fillStyle = o, n.font = "".concat(a, " ").concat(e, "px ").concat(i), n.fillText(r.label, r.x + r.size + 3, r.y + e / 3);
5231
5242
  }
5232
5243
  }
5233
- function Gs(n, r, t) {
5244
+ function Fs(n, r, t) {
5234
5245
  var e = t.labelSize, i = t.labelFont, a = t.labelWeight;
5235
5246
  n.font = "".concat(a, " ").concat(e, "px ").concat(i), n.fillStyle = "#FFF", n.shadowOffsetX = 0, n.shadowOffsetY = 0, n.shadowBlur = 8, n.shadowColor = "#000";
5236
5247
  var o = 2;
@@ -5239,9 +5250,9 @@ function Gs(n, r, t) {
5239
5250
  n.beginPath(), n.moveTo(r.x + v, r.y + l / 2), n.lineTo(r.x + c + u, r.y + l / 2), n.lineTo(r.x + c + u, r.y - l / 2), n.lineTo(r.x + v, r.y - l / 2), n.arc(r.x, r.y, c, h, -h), n.closePath(), n.fill();
5240
5251
  } else
5241
5252
  n.beginPath(), n.arc(r.x, r.y, r.size + o, 0, Math.PI * 2), n.closePath(), n.fill();
5242
- n.shadowOffsetX = 0, n.shadowOffsetY = 0, n.shadowBlur = 0, Mi(n, r, t);
5253
+ n.shadowOffsetX = 0, n.shadowOffsetY = 0, n.shadowBlur = 0, Bi(n, r, t);
5243
5254
  }
5244
- var Ps = (
5255
+ var Os = (
5245
5256
  /*glsl*/
5246
5257
  `
5247
5258
  precision highp float;
@@ -5276,7 +5287,7 @@ void main(void) {
5276
5287
  #endif
5277
5288
  }
5278
5289
  `
5279
- ), Is = Ps, Fs = (
5290
+ ), zs = Os, Ns = (
5280
5291
  /*glsl*/
5281
5292
  `
5282
5293
  attribute vec4 a_id;
@@ -5320,7 +5331,7 @@ void main() {
5320
5331
  v_color.a *= bias;
5321
5332
  }
5322
5333
  `
5323
- ), Os = Fs, Bi = WebGLRenderingContext, An = Bi.UNSIGNED_BYTE, nr = Bi.FLOAT, zs = ["u_sizeRatio", "u_correctionRatio", "u_matrix"], At = /* @__PURE__ */ (function(n) {
5334
+ ), Us = Ns, Wi = WebGLRenderingContext, kn = Wi.UNSIGNED_BYTE, nr = Wi.FLOAT, $s = ["u_sizeRatio", "u_correctionRatio", "u_matrix"], At = /* @__PURE__ */ (function(n) {
5324
5335
  function r() {
5325
5336
  return ge(this, r), Te(this, r, arguments);
5326
5337
  }
@@ -5329,10 +5340,10 @@ void main() {
5329
5340
  value: function() {
5330
5341
  return {
5331
5342
  VERTICES: 3,
5332
- VERTEX_SHADER_SOURCE: Os,
5333
- FRAGMENT_SHADER_SOURCE: Is,
5343
+ VERTEX_SHADER_SOURCE: Us,
5344
+ FRAGMENT_SHADER_SOURCE: zs,
5334
5345
  METHOD: WebGLRenderingContext.TRIANGLES,
5335
- UNIFORMS: zs,
5346
+ UNIFORMS: $s,
5336
5347
  ATTRIBUTES: [{
5337
5348
  name: "a_position",
5338
5349
  size: 2,
@@ -5344,12 +5355,12 @@ void main() {
5344
5355
  }, {
5345
5356
  name: "a_color",
5346
5357
  size: 4,
5347
- type: An,
5358
+ type: kn,
5348
5359
  normalized: !0
5349
5360
  }, {
5350
5361
  name: "a_id",
5351
5362
  size: 4,
5352
- type: An,
5363
+ type: kn,
5353
5364
  normalized: !0
5354
5365
  }],
5355
5366
  CONSTANT_ATTRIBUTES: [{
@@ -5373,11 +5384,11 @@ void main() {
5373
5384
  a.uniform1f(u, e.correctionRatio), a.uniform1f(s, e.sizeRatio), a.uniformMatrix3fv(l, !1, e.matrix);
5374
5385
  }
5375
5386
  }]);
5376
- })($i);
5387
+ })(Mi);
5377
5388
  N(At, "ANGLE_1", 0);
5378
5389
  N(At, "ANGLE_2", 2 * Math.PI / 3);
5379
5390
  N(At, "ANGLE_3", 4 * Math.PI / 3);
5380
- var Ns = (
5391
+ var Ms = (
5381
5392
  /*glsl*/
5382
5393
  `
5383
5394
  precision mediump float;
@@ -5388,7 +5399,7 @@ void main(void) {
5388
5399
  gl_FragColor = v_color;
5389
5400
  }
5390
5401
  `
5391
- ), Us = Ns, $s = (
5402
+ ), Bs = Ms, Ws = (
5392
5403
  /*glsl*/
5393
5404
  `
5394
5405
  attribute vec2 a_position;
@@ -5457,12 +5468,12 @@ void main() {
5457
5468
  v_color.a *= bias;
5458
5469
  }
5459
5470
  `
5460
- ), Ms = $s, Wi = WebGLRenderingContext, kn = Wi.UNSIGNED_BYTE, Ot = Wi.FLOAT, Bs = ["u_matrix", "u_sizeRatio", "u_correctionRatio", "u_minEdgeThickness", "u_lengthToThicknessRatio", "u_widenessToThicknessRatio"], jt = {
5471
+ ), Hs = Ws, Hi = WebGLRenderingContext, Cn = Hi.UNSIGNED_BYTE, Ot = Hi.FLOAT, js = ["u_matrix", "u_sizeRatio", "u_correctionRatio", "u_minEdgeThickness", "u_lengthToThicknessRatio", "u_widenessToThicknessRatio"], jt = {
5461
5472
  extremity: "target",
5462
5473
  lengthToThicknessRatio: 2.5,
5463
5474
  widenessToThicknessRatio: 2
5464
5475
  };
5465
- function Hi(n) {
5476
+ function ji(n) {
5466
5477
  var r = j(j({}, jt), {});
5467
5478
  return /* @__PURE__ */ (function(t) {
5468
5479
  function e() {
@@ -5473,10 +5484,10 @@ function Hi(n) {
5473
5484
  value: function() {
5474
5485
  return {
5475
5486
  VERTICES: 3,
5476
- VERTEX_SHADER_SOURCE: Ms,
5477
- FRAGMENT_SHADER_SOURCE: Us,
5487
+ VERTEX_SHADER_SOURCE: Hs,
5488
+ FRAGMENT_SHADER_SOURCE: Bs,
5478
5489
  METHOD: WebGLRenderingContext.TRIANGLES,
5479
- UNIFORMS: Bs,
5490
+ UNIFORMS: js,
5480
5491
  ATTRIBUTES: [{
5481
5492
  name: "a_position",
5482
5493
  size: 2,
@@ -5492,12 +5503,12 @@ function Hi(n) {
5492
5503
  }, {
5493
5504
  name: "a_color",
5494
5505
  size: 4,
5495
- type: kn,
5506
+ type: Cn,
5496
5507
  normalized: !0
5497
5508
  }, {
5498
5509
  name: "a_id",
5499
5510
  size: 4,
5500
- type: kn,
5511
+ type: Cn,
5501
5512
  normalized: !0
5502
5513
  }],
5503
5514
  CONSTANT_ATTRIBUTES: [{
@@ -5529,8 +5540,8 @@ function Hi(n) {
5529
5540
  }]);
5530
5541
  })(Ht);
5531
5542
  }
5532
- Hi();
5533
- var Ws = (
5543
+ ji();
5544
+ var Vs = (
5534
5545
  /*glsl*/
5535
5546
  `
5536
5547
  precision mediump float;
@@ -5559,7 +5570,7 @@ void main(void) {
5559
5570
  #endif
5560
5571
  }
5561
5572
  `
5562
- ), ji = Ws, Hs = (
5573
+ ), Vi = Vs, qs = (
5563
5574
  /*glsl*/
5564
5575
  `
5565
5576
  attribute vec4 a_id;
@@ -5630,11 +5641,11 @@ void main() {
5630
5641
  v_color.a *= bias;
5631
5642
  }
5632
5643
  `
5633
- ), js = Hs, Vi = WebGLRenderingContext, Cn = Vi.UNSIGNED_BYTE, qe = Vi.FLOAT, Vs = ["u_matrix", "u_zoomRatio", "u_sizeRatio", "u_correctionRatio", "u_pixelRatio", "u_feather", "u_minEdgeThickness", "u_lengthToThicknessRatio"], qs = {
5644
+ ), Ks = qs, qi = WebGLRenderingContext, xn = qi.UNSIGNED_BYTE, qe = qi.FLOAT, Xs = ["u_matrix", "u_zoomRatio", "u_sizeRatio", "u_correctionRatio", "u_pixelRatio", "u_feather", "u_minEdgeThickness", "u_lengthToThicknessRatio"], Ys = {
5634
5645
  lengthToThicknessRatio: jt.lengthToThicknessRatio
5635
5646
  };
5636
- function qi(n) {
5637
- var r = j(j({}, qs), {});
5647
+ function Ki(n) {
5648
+ var r = j(j({}, Ys), {});
5638
5649
  return /* @__PURE__ */ (function(t) {
5639
5650
  function e() {
5640
5651
  return ge(this, e), Te(this, e, arguments);
@@ -5644,10 +5655,10 @@ function qi(n) {
5644
5655
  value: function() {
5645
5656
  return {
5646
5657
  VERTICES: 6,
5647
- VERTEX_SHADER_SOURCE: js,
5648
- FRAGMENT_SHADER_SOURCE: ji,
5658
+ VERTEX_SHADER_SOURCE: Ks,
5659
+ FRAGMENT_SHADER_SOURCE: Vi,
5649
5660
  METHOD: WebGLRenderingContext.TRIANGLES,
5650
- UNIFORMS: Vs,
5661
+ UNIFORMS: Xs,
5651
5662
  ATTRIBUTES: [{
5652
5663
  name: "a_positionStart",
5653
5664
  size: 2,
@@ -5663,12 +5674,12 @@ function qi(n) {
5663
5674
  }, {
5664
5675
  name: "a_color",
5665
5676
  size: 4,
5666
- type: Cn,
5677
+ type: xn,
5667
5678
  normalized: !0
5668
5679
  }, {
5669
5680
  name: "a_id",
5670
5681
  size: 4,
5671
- type: Cn,
5682
+ type: xn,
5672
5683
  normalized: !0
5673
5684
  }, {
5674
5685
  name: "a_radius",
@@ -5714,11 +5725,11 @@ function qi(n) {
5714
5725
  }]);
5715
5726
  })(Ht);
5716
5727
  }
5717
- qi();
5718
- function Xs(n) {
5719
- return Ds([qi(), Hi()]);
5728
+ Ki();
5729
+ function Zs(n) {
5730
+ return Ps([Ki(), ji()]);
5720
5731
  }
5721
- var Ks = Xs(), Xi = Ks, Ys = (
5732
+ var Qs = Zs(), Xi = Qs, Js = (
5722
5733
  /*glsl*/
5723
5734
  `
5724
5735
  attribute vec4 a_id;
@@ -5786,7 +5797,7 @@ void main() {
5786
5797
  v_color.a *= bias;
5787
5798
  }
5788
5799
  `
5789
- ), Zs = Ys, Ki = WebGLRenderingContext, xn = Ki.UNSIGNED_BYTE, ft = Ki.FLOAT, Qs = ["u_matrix", "u_zoomRatio", "u_sizeRatio", "u_correctionRatio", "u_pixelRatio", "u_feather", "u_minEdgeThickness"], Yi = /* @__PURE__ */ (function(n) {
5800
+ ), eu = Js, Yi = WebGLRenderingContext, Dn = Yi.UNSIGNED_BYTE, ft = Yi.FLOAT, tu = ["u_matrix", "u_zoomRatio", "u_sizeRatio", "u_correctionRatio", "u_pixelRatio", "u_feather", "u_minEdgeThickness"], Zi = /* @__PURE__ */ (function(n) {
5790
5801
  function r() {
5791
5802
  return ge(this, r), Te(this, r, arguments);
5792
5803
  }
@@ -5795,10 +5806,10 @@ void main() {
5795
5806
  value: function() {
5796
5807
  return {
5797
5808
  VERTICES: 6,
5798
- VERTEX_SHADER_SOURCE: Zs,
5799
- FRAGMENT_SHADER_SOURCE: ji,
5809
+ VERTEX_SHADER_SOURCE: eu,
5810
+ FRAGMENT_SHADER_SOURCE: Vi,
5800
5811
  METHOD: WebGLRenderingContext.TRIANGLES,
5801
- UNIFORMS: Qs,
5812
+ UNIFORMS: tu,
5802
5813
  ATTRIBUTES: [{
5803
5814
  name: "a_positionStart",
5804
5815
  size: 2,
@@ -5814,12 +5825,12 @@ void main() {
5814
5825
  }, {
5815
5826
  name: "a_color",
5816
5827
  size: 4,
5817
- type: xn,
5828
+ type: Dn,
5818
5829
  normalized: !0
5819
5830
  }, {
5820
5831
  name: "a_id",
5821
5832
  size: 4,
5822
- type: xn,
5833
+ type: Dn,
5823
5834
  normalized: !0
5824
5835
  }],
5825
5836
  CONSTANT_ATTRIBUTES: [
@@ -5854,43 +5865,43 @@ void main() {
5854
5865
  a.uniformMatrix3fv(s, !1, e.matrix), a.uniform1f(u, e.zoomRatio), a.uniform1f(v, e.sizeRatio), a.uniform1f(h, e.correctionRatio), a.uniform1f(c, e.pixelRatio), a.uniform1f(l, e.antiAliasingFeather), a.uniform1f(y, e.minEdgeThickness);
5855
5866
  }
5856
5867
  }]);
5857
- })(Ht), Xr = /* @__PURE__ */ (function(n) {
5868
+ })(Ht), Kr = /* @__PURE__ */ (function(n) {
5858
5869
  function r() {
5859
5870
  var t;
5860
5871
  return ge(this, r), t = Te(this, r), t.rawEmitter = t, t;
5861
5872
  }
5862
5873
  return Se(r, n), pe(r);
5863
- })(Wr.EventEmitter), ir, Dn;
5874
+ })(Wr.EventEmitter), ir, Ln;
5864
5875
  function Ze() {
5865
- return Dn || (Dn = 1, ir = function(r) {
5876
+ return Ln || (Ln = 1, ir = function(r) {
5866
5877
  return r !== null && typeof r == "object" && typeof r.addUndirectedEdgeWithKey == "function" && typeof r.dropNode == "function" && typeof r.multi == "boolean";
5867
5878
  }), ir;
5868
5879
  }
5869
- var Js = Ze();
5870
- const eu = /* @__PURE__ */ Br(Js);
5871
- var tu = function(r) {
5880
+ var ru = Ze();
5881
+ const nu = /* @__PURE__ */ Br(ru);
5882
+ var iu = function(r) {
5872
5883
  return r;
5873
- }, ru = function(r) {
5884
+ }, au = function(r) {
5874
5885
  return r * r;
5875
- }, nu = function(r) {
5886
+ }, ou = function(r) {
5876
5887
  return r * (2 - r);
5877
- }, iu = function(r) {
5888
+ }, su = function(r) {
5878
5889
  return (r *= 2) < 1 ? 0.5 * r * r : -0.5 * (--r * (r - 2) - 1);
5879
- }, au = function(r) {
5890
+ }, uu = function(r) {
5880
5891
  return r * r * r;
5881
- }, ou = function(r) {
5892
+ }, lu = function(r) {
5882
5893
  return --r * r * r + 1;
5883
- }, su = function(r) {
5894
+ }, cu = function(r) {
5884
5895
  return (r *= 2) < 1 ? 0.5 * r * r * r : 0.5 * ((r -= 2) * r * r + 2);
5885
- }, uu = {
5886
- linear: tu,
5887
- quadraticIn: ru,
5888
- quadraticOut: nu,
5889
- quadraticInOut: iu,
5890
- cubicIn: au,
5891
- cubicOut: ou,
5892
- cubicInOut: su
5893
- }, lu = {
5896
+ }, hu = {
5897
+ linear: iu,
5898
+ quadraticIn: au,
5899
+ quadraticOut: ou,
5900
+ quadraticInOut: su,
5901
+ cubicIn: uu,
5902
+ cubicOut: lu,
5903
+ cubicInOut: cu
5904
+ }, du = {
5894
5905
  easing: "quadraticInOut",
5895
5906
  duration: 150
5896
5907
  };
@@ -5900,11 +5911,11 @@ function ke() {
5900
5911
  function zt(n, r, t) {
5901
5912
  return n[0] = r, n[4] = typeof t == "number" ? t : r, n;
5902
5913
  }
5903
- function Ln(n, r) {
5914
+ function Gn(n, r) {
5904
5915
  var t = Math.sin(r), e = Math.cos(r);
5905
5916
  return n[0] = e, n[1] = t, n[3] = -t, n[4] = e, n;
5906
5917
  }
5907
- function Gn(n, r, t) {
5918
+ function Pn(n, r, t) {
5908
5919
  return n[6] = r, n[7] = t, n;
5909
5920
  }
5910
5921
  function $e(n, r) {
@@ -5918,22 +5929,22 @@ function Dr(n, r) {
5918
5929
  y: l * i + c * o + u * t
5919
5930
  };
5920
5931
  }
5921
- function cu(n, r) {
5932
+ function fu(n, r) {
5922
5933
  var t = n.height / n.width, e = r.height / r.width;
5923
5934
  return t < 1 && e > 1 || t > 1 && e < 1 ? 1 : Math.min(Math.max(e, 1 / e), Math.max(1 / t, t));
5924
5935
  }
5925
5936
  function gt(n, r, t, e, i) {
5926
- var a = n.angle, o = n.ratio, s = n.x, u = n.y, l = r.width, c = r.height, h = ke(), v = Math.min(l, c) - 2 * e, y = cu(r, t);
5927
- return i ? ($e(h, Gn(ke(), s, u)), $e(h, zt(ke(), o)), $e(h, Ln(ke(), a)), $e(h, zt(ke(), l / v / 2 / y, c / v / 2 / y))) : ($e(h, zt(ke(), 2 * (v / l) * y, 2 * (v / c) * y)), $e(h, Ln(ke(), -a)), $e(h, zt(ke(), 1 / o)), $e(h, Gn(ke(), -s, -u))), h;
5937
+ var a = n.angle, o = n.ratio, s = n.x, u = n.y, l = r.width, c = r.height, h = ke(), v = Math.min(l, c) - 2 * e, y = fu(r, t);
5938
+ return i ? ($e(h, Pn(ke(), s, u)), $e(h, zt(ke(), o)), $e(h, Gn(ke(), a)), $e(h, zt(ke(), l / v / 2 / y, c / v / 2 / y))) : ($e(h, zt(ke(), 2 * (v / l) * y, 2 * (v / c) * y)), $e(h, Gn(ke(), -a)), $e(h, zt(ke(), 1 / o)), $e(h, Pn(ke(), -s, -u))), h;
5928
5939
  }
5929
- function hu(n, r, t) {
5940
+ function gu(n, r, t) {
5930
5941
  var e = Dr(n, {
5931
5942
  x: Math.cos(r.angle),
5932
5943
  y: Math.sin(r.angle)
5933
5944
  }, 0), i = e.x, a = e.y;
5934
5945
  return 1 / Math.sqrt(Math.pow(i, 2) + Math.pow(a, 2)) / t.width;
5935
5946
  }
5936
- function du(n) {
5947
+ function pu(n) {
5937
5948
  if (!n.order) return {
5938
5949
  x: [0, 1],
5939
5950
  y: [0, 1]
@@ -5947,14 +5958,14 @@ function du(n) {
5947
5958
  y: [e, i]
5948
5959
  };
5949
5960
  }
5950
- function fu(n) {
5951
- if (!eu(n)) throw new Error("Sigma: invalid graph instance.");
5961
+ function vu(n) {
5962
+ if (!nu(n)) throw new Error("Sigma: invalid graph instance.");
5952
5963
  n.forEachNode(function(r, t) {
5953
5964
  if (!Number.isFinite(t.x) || !Number.isFinite(t.y))
5954
5965
  throw new Error("Sigma: Coordinates of node ".concat(r, " are invalid. A node must have a numeric 'x' and 'y' attribute."));
5955
5966
  });
5956
5967
  }
5957
- function gu(n, r, t) {
5968
+ function mu(n, r, t) {
5958
5969
  var e = document.createElement(n);
5959
5970
  if (r)
5960
5971
  for (var i in r)
@@ -5964,16 +5975,16 @@ function gu(n, r, t) {
5964
5975
  e.setAttribute(a, t[a]);
5965
5976
  return e;
5966
5977
  }
5967
- function Pn() {
5978
+ function In() {
5968
5979
  return typeof window.devicePixelRatio < "u" ? window.devicePixelRatio : 1;
5969
5980
  }
5970
- function In(n, r, t) {
5981
+ function Fn(n, r, t) {
5971
5982
  return t.sort(function(e, i) {
5972
5983
  var a = r(e) || 0, o = r(i) || 0;
5973
5984
  return a < o ? -1 : a > o ? 1 : 0;
5974
5985
  });
5975
5986
  }
5976
- function Fn(n) {
5987
+ function On(n) {
5977
5988
  var r = it(n.x, 2), t = r[0], e = r[1], i = it(n.y, 2), a = i[0], o = i[1], s = Math.max(e - t, o - a), u = (e + t) / 2, l = (o + a) / 2;
5978
5989
  (s === 0 || Math.abs(s) === 1 / 0 || isNaN(s)) && (s = 1), isNaN(u) && (u = 0), isNaN(l) && (l = 0);
5979
5990
  var c = function(v) {
@@ -5999,7 +6010,7 @@ function Lr(n) {
5999
6010
  return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
6000
6011
  }, Lr(n);
6001
6012
  }
6002
- function On(n, r) {
6013
+ function zn(n, r) {
6003
6014
  var t = r.size;
6004
6015
  if (t !== 0) {
6005
6016
  var e = n.length;
@@ -6018,7 +6029,7 @@ function ar(n) {
6018
6029
  }
6019
6030
  return n;
6020
6031
  }
6021
- var Kr = {
6032
+ var Xr = {
6022
6033
  // Performance
6023
6034
  hideEdgesOnMove: !1,
6024
6035
  hideLabelsOnMove: !1,
@@ -6043,9 +6054,9 @@ var Kr = {
6043
6054
  attribute: "color"
6044
6055
  },
6045
6056
  stagePadding: 30,
6046
- defaultDrawEdgeLabel: Ls,
6047
- defaultDrawNodeLabel: Mi,
6048
- defaultDrawNodeHover: Gs,
6057
+ defaultDrawEdgeLabel: Is,
6058
+ defaultDrawNodeLabel: Bi,
6059
+ defaultDrawNodeHover: Fs,
6049
6060
  minEdgeThickness: 1.7,
6050
6061
  antiAliasingFeather: 1,
6051
6062
  // Mouse and touch settings
@@ -6085,11 +6096,11 @@ var Kr = {
6085
6096
  nodeProgramClasses: {},
6086
6097
  nodeHoverProgramClasses: {},
6087
6098
  edgeProgramClasses: {}
6088
- }, pu = {
6099
+ }, yu = {
6089
6100
  circle: At
6090
- }, vu = {
6101
+ }, bu = {
6091
6102
  arrow: Xi,
6092
- line: Yi
6103
+ line: Zi
6093
6104
  };
6094
6105
  function or(n) {
6095
6106
  if (typeof n.labelDensity != "number" || n.labelDensity < 0)
@@ -6098,11 +6109,11 @@ function or(n) {
6098
6109
  if (typeof r == "number" && typeof t == "number" && t < r)
6099
6110
  throw new Error("Settings: invalid camera ratio boundaries. Expecting `maxCameraRatio` to be greater than `minCameraRatio`.");
6100
6111
  }
6101
- function mu(n) {
6102
- var r = ar({}, Kr, n);
6103
- return r.nodeProgramClasses = ar({}, pu, r.nodeProgramClasses), r.edgeProgramClasses = ar({}, vu, r.edgeProgramClasses), r;
6112
+ function wu(n) {
6113
+ var r = ar({}, Xr, n);
6114
+ return r.nodeProgramClasses = ar({}, yu, r.nodeProgramClasses), r.edgeProgramClasses = ar({}, bu, r.edgeProgramClasses), r;
6104
6115
  }
6105
- var Nt = 1.5, zn = /* @__PURE__ */ (function(n) {
6116
+ var Nt = 1.5, Nn = /* @__PURE__ */ (function(n) {
6106
6117
  function r() {
6107
6118
  var t;
6108
6119
  return ge(this, r), t = Te(this, r), N(t, "x", 0.5), N(t, "y", 0.5), N(t, "angle", 0), N(t, "ratio", 1), N(t, "minRatio", null), N(t, "maxRatio", null), N(t, "enabledZooming", !0), N(t, "enabledPanning", !0), N(t, "enabledRotation", !0), N(t, "clean", null), N(t, "nextFrame", null), N(t, "previousState", null), N(t, "enabled", !0), t.previousState = t.getState(), t;
@@ -6216,7 +6227,7 @@ var Nt = 1.5, zn = /* @__PURE__ */ (function(n) {
6216
6227
  return i.animate(e, a, y);
6217
6228
  });
6218
6229
  if (this.enabled) {
6219
- var s = j(j({}, lu), a), u = this.validateState(e), l = typeof s.easing == "function" ? s.easing : uu[s.easing], c = Date.now(), h = this.getState(), v = function() {
6230
+ var s = j(j({}, du), a), u = this.validateState(e), l = typeof s.easing == "function" ? s.easing : hu[s.easing], c = Date.now(), h = this.getState(), v = function() {
6220
6231
  var b = (Date.now() - c) / s.duration;
6221
6232
  if (b >= 1) {
6222
6233
  i.nextFrame = null, i.setState(u), i.animationCallback && (i.animationCallback.call(null), i.animationCallback = void 0);
@@ -6284,7 +6295,7 @@ var Nt = 1.5, zn = /* @__PURE__ */ (function(n) {
6284
6295
  return i.setState(e);
6285
6296
  }
6286
6297
  }]);
6287
- })(Xr);
6298
+ })(Kr);
6288
6299
  function De(n, r) {
6289
6300
  var t = r.getBoundingClientRect();
6290
6301
  return {
@@ -6312,14 +6323,14 @@ function pt(n) {
6312
6323
  });
6313
6324
  return r;
6314
6325
  }
6315
- function yu(n, r) {
6326
+ function Eu(n, r) {
6316
6327
  return j(j({}, Fe(n, r)), {}, {
6317
- delta: Zi(n)
6328
+ delta: Qi(n)
6318
6329
  });
6319
6330
  }
6320
- var bu = 2;
6331
+ var _u = 2;
6321
6332
  function Ut(n) {
6322
- for (var r = [], t = 0, e = Math.min(n.length, bu); t < e; t++) r.push(n[t]);
6333
+ for (var r = [], t = 0, e = Math.min(n.length, _u); t < e; t++) r.push(n[t]);
6323
6334
  return r;
6324
6335
  }
6325
6336
  function vt(n, r, t) {
@@ -6338,23 +6349,23 @@ function vt(n, r, t) {
6338
6349
  };
6339
6350
  return e;
6340
6351
  }
6341
- function Zi(n) {
6352
+ function Qi(n) {
6342
6353
  if (typeof n.deltaY < "u") return n.deltaY * -3 / 360;
6343
6354
  if (typeof n.detail < "u") return n.detail / -9;
6344
6355
  throw new Error("Captor: could not extract delta from event.");
6345
6356
  }
6346
- var Qi = /* @__PURE__ */ (function(n) {
6357
+ var Ji = /* @__PURE__ */ (function(n) {
6347
6358
  function r(t, e) {
6348
6359
  var i;
6349
6360
  return ge(this, r), i = Te(this, r), i.container = t, i.renderer = e, i;
6350
6361
  }
6351
6362
  return Se(r, n), pe(r);
6352
- })(Xr), wu = ["doubleClickTimeout", "doubleClickZoomingDuration", "doubleClickZoomingRatio", "dragTimeout", "draggedEventsTolerance", "inertiaDuration", "inertiaRatio", "zoomDuration", "zoomingRatio"], Eu = wu.reduce(function(n, r) {
6353
- return j(j({}, n), {}, N({}, r, Kr[r]));
6354
- }, {}), _u = /* @__PURE__ */ (function(n) {
6363
+ })(Kr), Tu = ["doubleClickTimeout", "doubleClickZoomingDuration", "doubleClickZoomingRatio", "dragTimeout", "draggedEventsTolerance", "inertiaDuration", "inertiaRatio", "zoomDuration", "zoomingRatio"], Su = Tu.reduce(function(n, r) {
6364
+ return j(j({}, n), {}, N({}, r, Xr[r]));
6365
+ }, {}), Ru = /* @__PURE__ */ (function(n) {
6355
6366
  function r(t, e) {
6356
6367
  var i;
6357
- return ge(this, r), i = Te(this, r, [t, e]), N(i, "enabled", !0), N(i, "draggedEvents", 0), N(i, "downStartTime", null), N(i, "lastMouseX", null), N(i, "lastMouseY", null), N(i, "isMouseDown", !1), N(i, "isMoving", !1), N(i, "movingTimeout", null), N(i, "startCameraState", null), N(i, "clicks", 0), N(i, "doubleClickTimeout", null), N(i, "currentWheelDirection", 0), N(i, "settings", Eu), i.handleClick = i.handleClick.bind(i), i.handleRightClick = i.handleRightClick.bind(i), i.handleDown = i.handleDown.bind(i), i.handleUp = i.handleUp.bind(i), i.handleMove = i.handleMove.bind(i), i.handleWheel = i.handleWheel.bind(i), i.handleLeave = i.handleLeave.bind(i), i.handleEnter = i.handleEnter.bind(i), t.addEventListener("click", i.handleClick, {
6368
+ return ge(this, r), i = Te(this, r, [t, e]), N(i, "enabled", !0), N(i, "draggedEvents", 0), N(i, "downStartTime", null), N(i, "lastMouseX", null), N(i, "lastMouseY", null), N(i, "isMouseDown", !1), N(i, "isMoving", !1), N(i, "movingTimeout", null), N(i, "startCameraState", null), N(i, "clicks", 0), N(i, "doubleClickTimeout", null), N(i, "currentWheelDirection", 0), N(i, "settings", Su), i.handleClick = i.handleClick.bind(i), i.handleRightClick = i.handleRightClick.bind(i), i.handleDown = i.handleDown.bind(i), i.handleUp = i.handleUp.bind(i), i.handleMove = i.handleMove.bind(i), i.handleWheel = i.handleWheel.bind(i), i.handleLeave = i.handleLeave.bind(i), i.handleEnter = i.handleEnter.bind(i), t.addEventListener("click", i.handleClick, {
6358
6369
  capture: !1
6359
6370
  }), t.addEventListener("contextmenu", i.handleRightClick, {
6360
6371
  capture: !1
@@ -6487,9 +6498,9 @@ var Qi = /* @__PURE__ */ (function(n) {
6487
6498
  value: function(e) {
6488
6499
  var i = this, a = this.renderer.getCamera();
6489
6500
  if (!(!this.enabled || !a.enabledZooming)) {
6490
- var o = Zi(e);
6501
+ var o = Qi(e);
6491
6502
  if (o) {
6492
- var s = yu(e, this.container);
6503
+ var s = Eu(e, this.container);
6493
6504
  if (this.emit("wheel", s), s.sigmaDefaultPrevented) {
6494
6505
  e.preventDefault(), e.stopPropagation();
6495
6506
  return;
@@ -6510,12 +6521,12 @@ var Qi = /* @__PURE__ */ (function(n) {
6510
6521
  this.settings = e;
6511
6522
  }
6512
6523
  }]);
6513
- })(Qi), Tu = ["dragTimeout", "inertiaDuration", "inertiaRatio", "doubleClickTimeout", "doubleClickZoomingRatio", "doubleClickZoomingDuration", "tapMoveTolerance"], Su = Tu.reduce(function(n, r) {
6514
- return j(j({}, n), {}, N({}, r, Kr[r]));
6515
- }, {}), Ru = /* @__PURE__ */ (function(n) {
6524
+ })(Ji), Au = ["dragTimeout", "inertiaDuration", "inertiaRatio", "doubleClickTimeout", "doubleClickZoomingRatio", "doubleClickZoomingDuration", "tapMoveTolerance"], ku = Au.reduce(function(n, r) {
6525
+ return j(j({}, n), {}, N({}, r, Xr[r]));
6526
+ }, {}), Cu = /* @__PURE__ */ (function(n) {
6516
6527
  function r(t, e) {
6517
6528
  var i;
6518
- return ge(this, r), i = Te(this, r, [t, e]), N(i, "enabled", !0), N(i, "isMoving", !1), N(i, "hasMoved", !1), N(i, "touchMode", 0), N(i, "startTouchesPositions", []), N(i, "lastTouches", []), N(i, "lastTap", null), N(i, "settings", Su), i.handleStart = i.handleStart.bind(i), i.handleLeave = i.handleLeave.bind(i), i.handleMove = i.handleMove.bind(i), t.addEventListener("touchstart", i.handleStart, {
6529
+ return ge(this, r), i = Te(this, r, [t, e]), N(i, "enabled", !0), N(i, "isMoving", !1), N(i, "hasMoved", !1), N(i, "touchMode", 0), N(i, "startTouchesPositions", []), N(i, "lastTouches", []), N(i, "lastTap", null), N(i, "settings", ku), i.handleStart = i.handleStart.bind(i), i.handleLeave = i.handleLeave.bind(i), i.handleMove = i.handleMove.bind(i), t.addEventListener("touchstart", i.handleStart, {
6519
6530
  capture: !1
6520
6531
  }), t.addEventListener("touchcancel", i.handleLeave, {
6521
6532
  capture: !1
@@ -6648,7 +6659,7 @@ var Qi = /* @__PURE__ */ (function(n) {
6648
6659
  E.ratio = O, E.angle = c.angle + S;
6649
6660
  var I = this.getDimensions(), _ = this.renderer.viewportToFramedGraph((this.startTouchesPositions || [])[0], {
6650
6661
  cameraState: c
6651
- }), W = Math.min(I.width, I.height) - 2 * h, X = W / I.width, T = W / I.height, f = O / W, d = p - W / 2 / X, U = C - W / 2 / T, $ = [d * Math.cos(-E.angle) - U * Math.sin(-E.angle), U * Math.cos(-E.angle) + d * Math.sin(-E.angle)];
6662
+ }), W = Math.min(I.width, I.height) - 2 * h, K = W / I.width, T = W / I.height, f = O / W, d = p - W / 2 / K, U = C - W / 2 / T, $ = [d * Math.cos(-E.angle) - U * Math.sin(-E.angle), U * Math.cos(-E.angle) + d * Math.sin(-E.angle)];
6652
6663
  d = $[0], U = $[1], E.x = _.x - d * f, E.y = _.y + U * f, l.setState(E);
6653
6664
  break;
6654
6665
  }
@@ -6662,21 +6673,21 @@ var Qi = /* @__PURE__ */ (function(n) {
6662
6673
  this.settings = e;
6663
6674
  }
6664
6675
  }]);
6665
- })(Qi);
6666
- function Au(n) {
6676
+ })(Ji);
6677
+ function xu(n) {
6667
6678
  if (Array.isArray(n)) return Cr(n);
6668
6679
  }
6669
- function ku(n) {
6680
+ function Du(n) {
6670
6681
  if (typeof Symbol < "u" && n[Symbol.iterator] != null || n["@@iterator"] != null) return Array.from(n);
6671
6682
  }
6672
- function Cu() {
6683
+ function Lu() {
6673
6684
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
6674
6685
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
6675
6686
  }
6676
- function Nn(n) {
6677
- return Au(n) || ku(n) || Pi(n) || Cu();
6687
+ function Un(n) {
6688
+ return xu(n) || Du(n) || Ii(n) || Lu();
6678
6689
  }
6679
- function xu(n, r) {
6690
+ function Gu(n, r) {
6680
6691
  if (n == null) return {};
6681
6692
  var t = {};
6682
6693
  for (var e in n) if ({}.hasOwnProperty.call(n, e)) {
@@ -6687,14 +6698,14 @@ function xu(n, r) {
6687
6698
  }
6688
6699
  function sr(n, r) {
6689
6700
  if (n == null) return {};
6690
- var t, e, i = xu(n, r);
6701
+ var t, e, i = Gu(n, r);
6691
6702
  if (Object.getOwnPropertySymbols) {
6692
6703
  var a = Object.getOwnPropertySymbols(n);
6693
6704
  for (e = 0; e < a.length; e++) t = a[e], r.indexOf(t) === -1 && {}.propertyIsEnumerable.call(n, t) && (i[t] = n[t]);
6694
6705
  }
6695
6706
  return i;
6696
6707
  }
6697
- var Un = /* @__PURE__ */ (function() {
6708
+ var $n = /* @__PURE__ */ (function() {
6698
6709
  function n(r, t) {
6699
6710
  ge(this, n), this.key = r, this.size = t;
6700
6711
  }
@@ -6704,7 +6715,7 @@ var Un = /* @__PURE__ */ (function() {
6704
6715
  return t.size > e.size ? -1 : t.size < e.size || t.key > e.key ? 1 : -1;
6705
6716
  }
6706
6717
  }]);
6707
- })(), $n = /* @__PURE__ */ (function() {
6718
+ })(), Mn = /* @__PURE__ */ (function() {
6708
6719
  function n() {
6709
6720
  ge(this, n), N(this, "width", 0), N(this, "height", 0), N(this, "cellSize", 0), N(this, "columns", 0), N(this, "rows", 0), N(this, "cells", {});
6710
6721
  }
@@ -6722,7 +6733,7 @@ var Un = /* @__PURE__ */ (function() {
6722
6733
  }, {
6723
6734
  key: "add",
6724
6735
  value: function(t, e, i) {
6725
- var a = new Un(t, e), o = this.getIndex(i), s = this.cells[o];
6736
+ var a = new $n(t, e), o = this.getIndex(i), s = this.cells[o];
6726
6737
  s || (s = [], this.cells[o] = s), s.push(a);
6727
6738
  }
6728
6739
  }, {
@@ -6730,7 +6741,7 @@ var Un = /* @__PURE__ */ (function() {
6730
6741
  value: function() {
6731
6742
  for (var t in this.cells) {
6732
6743
  var e = this.cells[t];
6733
- e.sort(Un.compare);
6744
+ e.sort($n.compare);
6734
6745
  }
6735
6746
  }
6736
6747
  }, {
@@ -6744,30 +6755,30 @@ var Un = /* @__PURE__ */ (function() {
6744
6755
  }
6745
6756
  }]);
6746
6757
  })();
6747
- function Du(n) {
6758
+ function Pu(n) {
6748
6759
  var r = n.graph, t = n.hoveredNode, e = n.highlightedNodes, i = n.displayedNodeLabels, a = [];
6749
6760
  return r.forEachEdge(function(o, s, u, l) {
6750
6761
  (u === t || l === t || e.has(u) || e.has(l) || i.has(u) && i.has(l)) && a.push(o);
6751
6762
  }), a;
6752
6763
  }
6753
- var Mn = 150, Bn = 50, Oe = Object.prototype.hasOwnProperty;
6754
- function Lu(n, r, t) {
6764
+ var Bn = 150, Wn = 50, Oe = Object.prototype.hasOwnProperty;
6765
+ function Iu(n, r, t) {
6755
6766
  if (!Oe.call(t, "x") || !Oe.call(t, "y")) throw new Error('Sigma: could not find a valid position (x, y) for node "'.concat(r, '". All your nodes must have a number "x" and "y". Maybe your forgot to apply a layout or your "nodeReducer" is not returning the correct data?'));
6756
6767
  return t.color || (t.color = n.defaultNodeColor), !t.label && t.label !== "" && (t.label = null), t.label !== void 0 && t.label !== null ? t.label = "" + t.label : t.label = null, t.size || (t.size = 2), Oe.call(t, "hidden") || (t.hidden = !1), Oe.call(t, "highlighted") || (t.highlighted = !1), Oe.call(t, "forceLabel") || (t.forceLabel = !1), (!t.type || t.type === "") && (t.type = n.defaultNodeType), t.zIndex || (t.zIndex = 0), t;
6757
6768
  }
6758
- function Gu(n, r, t) {
6769
+ function Fu(n, r, t) {
6759
6770
  return t.color || (t.color = n.defaultEdgeColor), t.label || (t.label = ""), t.size || (t.size = 0.5), Oe.call(t, "hidden") || (t.hidden = !1), Oe.call(t, "forceLabel") || (t.forceLabel = !1), (!t.type || t.type === "") && (t.type = n.defaultEdgeType), t.zIndex || (t.zIndex = 0), t;
6760
6771
  }
6761
- var Pu = /* @__PURE__ */ (function(n) {
6772
+ var Ou = /* @__PURE__ */ (function(n) {
6762
6773
  function r(t, e) {
6763
6774
  var i, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
6764
- if (ge(this, r), i = Te(this, r), N(i, "elements", {}), N(i, "canvasContexts", {}), N(i, "webGLContexts", {}), N(i, "pickingLayers", /* @__PURE__ */ new Set()), N(i, "textures", {}), N(i, "frameBuffers", {}), N(i, "activeListeners", {}), N(i, "labelGrid", new $n()), N(i, "nodeDataCache", {}), N(i, "edgeDataCache", {}), N(i, "nodeProgramIndex", {}), N(i, "edgeProgramIndex", {}), N(i, "nodesWithForcedLabels", /* @__PURE__ */ new Set()), N(i, "edgesWithForcedLabels", /* @__PURE__ */ new Set()), N(i, "nodeExtent", {
6775
+ if (ge(this, r), i = Te(this, r), N(i, "elements", {}), N(i, "canvasContexts", {}), N(i, "webGLContexts", {}), N(i, "pickingLayers", /* @__PURE__ */ new Set()), N(i, "textures", {}), N(i, "frameBuffers", {}), N(i, "activeListeners", {}), N(i, "labelGrid", new Mn()), N(i, "nodeDataCache", {}), N(i, "edgeDataCache", {}), N(i, "nodeProgramIndex", {}), N(i, "edgeProgramIndex", {}), N(i, "nodesWithForcedLabels", /* @__PURE__ */ new Set()), N(i, "edgesWithForcedLabels", /* @__PURE__ */ new Set()), N(i, "nodeExtent", {
6765
6776
  x: [0, 1],
6766
6777
  y: [0, 1]
6767
- }), N(i, "nodeZExtent", [1 / 0, -1 / 0]), N(i, "edgeZExtent", [1 / 0, -1 / 0]), N(i, "matrix", ke()), N(i, "invMatrix", ke()), N(i, "correctionRatio", 1), N(i, "customBBox", null), N(i, "normalizationFunction", Fn({
6778
+ }), N(i, "nodeZExtent", [1 / 0, -1 / 0]), N(i, "edgeZExtent", [1 / 0, -1 / 0]), N(i, "matrix", ke()), N(i, "invMatrix", ke()), N(i, "correctionRatio", 1), N(i, "customBBox", null), N(i, "normalizationFunction", On({
6768
6779
  x: [0, 1],
6769
6780
  y: [0, 1]
6770
- })), N(i, "graphToViewportRatio", 1), N(i, "itemIDsIndex", {}), N(i, "nodeIndices", {}), N(i, "edgeIndices", {}), N(i, "width", 0), N(i, "height", 0), N(i, "pixelRatio", Pn()), N(i, "pickingDownSizingRatio", 2 * i.pixelRatio), N(i, "displayedNodeLabels", /* @__PURE__ */ new Set()), N(i, "displayedEdgeLabels", /* @__PURE__ */ new Set()), N(i, "highlightedNodes", /* @__PURE__ */ new Set()), N(i, "hoveredNode", null), N(i, "hoveredEdge", null), N(i, "renderFrame", null), N(i, "renderHighlightedNodesFrame", null), N(i, "needToProcess", !1), N(i, "checkEdgesEventsFrame", null), N(i, "nodePrograms", {}), N(i, "nodeHoverPrograms", {}), N(i, "edgePrograms", {}), i.settings = mu(a), or(i.settings), fu(t), !(e instanceof HTMLElement)) throw new Error("Sigma: container should be an html element.");
6781
+ })), N(i, "graphToViewportRatio", 1), N(i, "itemIDsIndex", {}), N(i, "nodeIndices", {}), N(i, "edgeIndices", {}), N(i, "width", 0), N(i, "height", 0), N(i, "pixelRatio", In()), N(i, "pickingDownSizingRatio", 2 * i.pixelRatio), N(i, "displayedNodeLabels", /* @__PURE__ */ new Set()), N(i, "displayedEdgeLabels", /* @__PURE__ */ new Set()), N(i, "highlightedNodes", /* @__PURE__ */ new Set()), N(i, "hoveredNode", null), N(i, "hoveredEdge", null), N(i, "renderFrame", null), N(i, "renderHighlightedNodesFrame", null), N(i, "needToProcess", !1), N(i, "checkEdgesEventsFrame", null), N(i, "nodePrograms", {}), N(i, "nodeHoverPrograms", {}), N(i, "edgePrograms", {}), i.settings = wu(a), or(i.settings), vu(t), !(e instanceof HTMLElement)) throw new Error("Sigma: container should be an html element.");
6771
6782
  i.graph = t, i.container = e, i.createWebGLContext("edges", {
6772
6783
  picking: a.enableEdgeEvents
6773
6784
  }), i.createCanvasContext("edgeLabels"), i.createWebGLContext("nodes", {
@@ -6782,7 +6793,7 @@ var Pu = /* @__PURE__ */ (function(n) {
6782
6793
  i.registerNodeProgram(o, i.settings.nodeProgramClasses[o], i.settings.nodeHoverProgramClasses[o]);
6783
6794
  for (var s in i.settings.edgeProgramClasses)
6784
6795
  i.registerEdgeProgram(s, i.settings.edgeProgramClasses[s]);
6785
- return i.camera = new zn(), i.bindCameraHandlers(), i.mouseCaptor = new _u(i.elements.mouse, i), i.mouseCaptor.setSettings(i.settings), i.touchCaptor = new Ru(i.elements.mouse, i), i.touchCaptor.setSettings(i.settings), i.bindEventHandlers(), i.bindGraphHandlers(), i.handleSettingsUpdate(), i.refresh(), i;
6796
+ return i.camera = new Nn(), i.bindCameraHandlers(), i.mouseCaptor = new Ru(i.elements.mouse, i), i.mouseCaptor.setSettings(i.settings), i.touchCaptor = new Cu(i.elements.mouse, i), i.touchCaptor.setSettings(i.settings), i.bindEventHandlers(), i.bindGraphHandlers(), i.handleSettingsUpdate(), i.refresh(), i;
6786
6797
  }
6787
6798
  return Se(r, n), pe(r, [{
6788
6799
  key: "registerNodeProgram",
@@ -6877,7 +6888,7 @@ var Pu = /* @__PURE__ */ (function(n) {
6877
6888
  }, {
6878
6889
  key: "getNodeAtPosition",
6879
6890
  value: function(e) {
6880
- var i = e.x, a = e.y, o = _n(this.webGLContexts.nodes, this.frameBuffers.nodes, i, a, this.pixelRatio, this.pickingDownSizingRatio), s = En.apply(void 0, Nn(o)), u = this.itemIDsIndex[s];
6891
+ var i = e.x, a = e.y, o = Tn(this.webGLContexts.nodes, this.frameBuffers.nodes, i, a, this.pixelRatio, this.pickingDownSizingRatio), s = _n.apply(void 0, Un(o)), u = this.itemIDsIndex[s];
6881
6892
  return u && u.type === "node" ? u.id : null;
6882
6893
  }
6883
6894
  /**
@@ -7084,7 +7095,7 @@ var Pu = /* @__PURE__ */ (function(n) {
7084
7095
  }, {
7085
7096
  key: "getEdgeAtPoint",
7086
7097
  value: function(e, i) {
7087
- var a = _n(this.webGLContexts.edges, this.frameBuffers.edges, e, i, this.pixelRatio, this.pickingDownSizingRatio), o = En.apply(void 0, Nn(a)), s = this.itemIDsIndex[o];
7098
+ var a = Tn(this.webGLContexts.edges, this.frameBuffers.edges, e, i, this.pixelRatio, this.pickingDownSizingRatio), o = _n.apply(void 0, Un(a)), s = this.itemIDsIndex[o];
7088
7099
  return s && s.type === "edge" ? s.id : null;
7089
7100
  }
7090
7101
  /**
@@ -7102,15 +7113,15 @@ var Pu = /* @__PURE__ */ (function(n) {
7102
7113
  var e = this;
7103
7114
  this.emit("beforeProcess");
7104
7115
  var i = this.graph, a = this.settings, o = this.getDimensions();
7105
- if (this.nodeExtent = du(this.graph), !this.settings.autoRescale) {
7116
+ if (this.nodeExtent = pu(this.graph), !this.settings.autoRescale) {
7106
7117
  var s = o.width, u = o.height, l = this.nodeExtent, c = l.x, h = l.y;
7107
7118
  this.nodeExtent = {
7108
7119
  x: [(c[0] + c[1]) / 2 - s / 2, (c[0] + c[1]) / 2 + s / 2],
7109
7120
  y: [(h[0] + h[1]) / 2 - u / 2, (h[0] + h[1]) / 2 + u / 2]
7110
7121
  };
7111
7122
  }
7112
- this.normalizationFunction = Fn(this.customBBox || this.nodeExtent);
7113
- var v = new zn(), y = gt(v.getState(), o, this.getGraphDimensions(), this.getStagePadding());
7123
+ this.normalizationFunction = On(this.customBBox || this.nodeExtent);
7124
+ var v = new Nn(), y = gt(v.getState(), o, this.getGraphDimensions(), this.getStagePadding());
7114
7125
  this.labelGrid.resizeAndClear(o, a.labelGridCellSize);
7115
7126
  for (var b = {}, R = {}, w = {}, k = {}, E = 1, m = i.nodes(), p = 0, C = m.length; p < C; p++) {
7116
7127
  var L = m[p], g = this.nodeDataCache[L], x = i.getNodeAttributes(L);
@@ -7124,7 +7135,7 @@ var Pu = /* @__PURE__ */ (function(n) {
7124
7135
  throw new Error('Sigma: could not find a suitable program for node type "'.concat(S, '"!'));
7125
7136
  this.nodePrograms[S].reallocate(b[S] || 0), b[S] = 0;
7126
7137
  }
7127
- this.settings.zIndex && this.nodeZExtent[0] !== this.nodeZExtent[1] && (m = In(this.nodeZExtent, function(te) {
7138
+ this.settings.zIndex && this.nodeZExtent[0] !== this.nodeZExtent[1] && (m = Fn(this.nodeZExtent, function(te) {
7128
7139
  return e.nodeDataCache[te].zIndex;
7129
7140
  }, m));
7130
7141
  for (var D = 0, O = m.length; D < O; D++) {
@@ -7136,20 +7147,20 @@ var Pu = /* @__PURE__ */ (function(n) {
7136
7147
  var _ = this.nodeDataCache[I];
7137
7148
  this.addNodeToProgram(I, R[I], b[_.type]++);
7138
7149
  }
7139
- for (var W = {}, X = i.edges(), T = 0, f = X.length; T < f; T++) {
7140
- var d = X[T], U = this.edgeDataCache[d];
7150
+ for (var W = {}, K = i.edges(), T = 0, f = K.length; T < f; T++) {
7151
+ var d = K[T], U = this.edgeDataCache[d];
7141
7152
  W[U.type] = (W[U.type] || 0) + 1;
7142
7153
  }
7143
- this.settings.zIndex && this.edgeZExtent[0] !== this.edgeZExtent[1] && (X = In(this.edgeZExtent, function(te) {
7154
+ this.settings.zIndex && this.edgeZExtent[0] !== this.edgeZExtent[1] && (K = Fn(this.edgeZExtent, function(te) {
7144
7155
  return e.edgeDataCache[te].zIndex;
7145
- }, X));
7156
+ }, K));
7146
7157
  for (var $ in this.edgePrograms) {
7147
7158
  if (!Oe.call(this.edgePrograms, $))
7148
7159
  throw new Error('Sigma: could not find a suitable program for edge type "'.concat($, '"!'));
7149
7160
  this.edgePrograms[$].reallocate(W[$] || 0), W[$] = 0;
7150
7161
  }
7151
- for (var P = 0, A = X.length; P < A; P++) {
7152
- var z = X[P];
7162
+ for (var P = 0, A = K.length; P < A; P++) {
7163
+ var z = K[P];
7153
7164
  w[z] = E, k[w[z]] = {
7154
7165
  type: "edge",
7155
7166
  id: z
@@ -7210,8 +7221,8 @@ var Pu = /* @__PURE__ */ (function(n) {
7210
7221
  cameraState: e
7211
7222
  })], k = 1 / 0, E = -1 / 0, m = 1 / 0, p = -1 / 0;
7212
7223
  w.forEach(function(W) {
7213
- var X = W.x, T = W.y;
7214
- k = Math.min(k, X), E = Math.max(E, X), m = Math.min(m, T), p = Math.max(p, T);
7224
+ var K = W.x, T = W.y;
7225
+ k = Math.min(k, K), E = Math.max(E, K), m = Math.min(m, T), p = Math.max(p, T);
7215
7226
  });
7216
7227
  var C = E - k, L = p - m, g = this.getDimensions(), x = g.width, S = g.height, D = 0, O = 0;
7217
7228
  if (C >= x ? E < x - o ? D = E - (x - o) : k > o && (D = k - o) : E > x + o ? D = E - (x + o) : k < -o && (D = k + o), L >= S ? p < S - o ? O = p - (S - o) : m > o && (O = m - o) : p > S + o ? O = p - (S + o) : m < -o && (O = m + o), D || O) {
@@ -7240,12 +7251,12 @@ var Pu = /* @__PURE__ */ (function(n) {
7240
7251
  value: function() {
7241
7252
  if (!this.settings.renderLabels) return this;
7242
7253
  var e = this.camera.getState(), i = this.labelGrid.getLabelsToDisplay(e.ratio, this.settings.labelDensity);
7243
- On(i, this.nodesWithForcedLabels), this.displayedNodeLabels = /* @__PURE__ */ new Set();
7254
+ zn(i, this.nodesWithForcedLabels), this.displayedNodeLabels = /* @__PURE__ */ new Set();
7244
7255
  for (var a = this.canvasContexts.labels, o = 0, s = i.length; o < s; o++) {
7245
7256
  var u = i[o], l = this.nodeDataCache[u];
7246
7257
  if (!this.displayedNodeLabels.has(u) && !l.hidden) {
7247
7258
  var c = this.framedGraphToViewport(l), h = c.x, v = c.y, y = this.scaleSize(l.size);
7248
- if (!(!l.forceLabel && y < this.settings.labelRenderedSizeThreshold) && !(h < -Mn || h > this.width + Mn || v < -Bn || v > this.height + Bn)) {
7259
+ if (!(!l.forceLabel && y < this.settings.labelRenderedSizeThreshold) && !(h < -Bn || h > this.width + Bn || v < -Wn || v > this.height + Wn)) {
7249
7260
  this.displayedNodeLabels.add(u);
7250
7261
  var b = this.settings.defaultDrawNodeLabel, R = this.nodePrograms[l.type], w = R?.drawLabel || b;
7251
7262
  w(a, j(j({
@@ -7272,13 +7283,13 @@ var Pu = /* @__PURE__ */ (function(n) {
7272
7283
  if (!this.settings.renderEdgeLabels) return this;
7273
7284
  var e = this.canvasContexts.edgeLabels;
7274
7285
  e.clearRect(0, 0, this.width, this.height);
7275
- var i = Du({
7286
+ var i = Pu({
7276
7287
  graph: this.graph,
7277
7288
  hoveredNode: this.hoveredNode,
7278
7289
  displayedNodeLabels: this.displayedNodeLabels,
7279
7290
  highlightedNodes: this.highlightedNodes
7280
7291
  });
7281
- On(i, this.edgesWithForcedLabels);
7292
+ zn(i, this.edgesWithForcedLabels);
7282
7293
  for (var a = /* @__PURE__ */ new Set(), o = 0, s = i.length; o < s; o++) {
7283
7294
  var u = i[o], l = this.graph.extremities(u), c = this.nodeDataCache[l[0]], h = this.nodeDataCache[l[1]], v = this.edgeDataCache[u];
7284
7295
  if (!a.has(u) && !(v.hidden || c.hidden || h.hidden)) {
@@ -7371,7 +7382,7 @@ var Pu = /* @__PURE__ */ (function(n) {
7371
7382
  return e.resetWebGLTexture(w);
7372
7383
  }), !this.graph.order) return i();
7373
7384
  var a = this.mouseCaptor, o = this.camera.isAnimated() || a.isMoving || a.draggedEvents || a.currentWheelDirection, s = this.camera.getState(), u = this.getDimensions(), l = this.getGraphDimensions(), c = this.getStagePadding();
7374
- this.matrix = gt(s, u, l, c), this.invMatrix = gt(s, u, l, c, !0), this.correctionRatio = hu(this.matrix, s, u), this.graphToViewportRatio = this.getGraphToViewportRatio();
7385
+ this.matrix = gt(s, u, l, c), this.invMatrix = gt(s, u, l, c, !0), this.correctionRatio = gu(this.matrix, s, u), this.graphToViewportRatio = this.getGraphToViewportRatio();
7375
7386
  var h = this.getRenderParams();
7376
7387
  for (var v in this.nodePrograms) {
7377
7388
  var y = this.nodePrograms[v];
@@ -7394,7 +7405,7 @@ var Pu = /* @__PURE__ */ (function(n) {
7394
7405
  value: function(e) {
7395
7406
  var i = Object.assign({}, this.graph.getNodeAttributes(e));
7396
7407
  this.settings.nodeReducer && (i = this.settings.nodeReducer(e, i));
7397
- var a = Lu(this.settings, e, i);
7408
+ var a = Iu(this.settings, e, i);
7398
7409
  this.nodeDataCache[e] = a, this.nodesWithForcedLabels.delete(e), a.forceLabel && !a.hidden && this.nodesWithForcedLabels.add(e), this.highlightedNodes.delete(e), a.highlighted && !a.hidden && this.highlightedNodes.add(e), this.settings.zIndex && (a.zIndex < this.nodeZExtent[0] && (this.nodeZExtent[0] = a.zIndex), a.zIndex > this.nodeZExtent[1] && (this.nodeZExtent[1] = a.zIndex));
7399
7410
  }
7400
7411
  /**
@@ -7429,7 +7440,7 @@ var Pu = /* @__PURE__ */ (function(n) {
7429
7440
  value: function(e) {
7430
7441
  var i = Object.assign({}, this.graph.getEdgeAttributes(e));
7431
7442
  this.settings.edgeReducer && (i = this.settings.edgeReducer(e, i));
7432
- var a = Gu(this.settings, e, i);
7443
+ var a = Fu(this.settings, e, i);
7433
7444
  this.edgeDataCache[e] = a, this.edgesWithForcedLabels.delete(e), a.forceLabel && !a.hidden && this.edgesWithForcedLabels.add(e), this.settings.zIndex && (a.zIndex < this.edgeZExtent[0] && (this.edgeZExtent[0] = a.zIndex), a.zIndex > this.edgeZExtent[1] && (this.edgeZExtent[1] = a.zIndex));
7434
7445
  }
7435
7446
  /**
@@ -7459,7 +7470,7 @@ var Pu = /* @__PURE__ */ (function(n) {
7459
7470
  }, {
7460
7471
  key: "clearNodeIndices",
7461
7472
  value: function() {
7462
- this.labelGrid = new $n(), this.nodeExtent = {
7473
+ this.labelGrid = new Mn(), this.nodeExtent = {
7463
7474
  x: [0, 1],
7464
7475
  y: [0, 1]
7465
7476
  }, this.nodeDataCache = {}, this.edgeProgramIndex = {}, this.nodesWithForcedLabels = /* @__PURE__ */ new Set(), this.nodeZExtent = [1 / 0, -1 / 0], this.highlightedNodes = /* @__PURE__ */ new Set();
@@ -7589,7 +7600,7 @@ var Pu = /* @__PURE__ */ (function(n) {
7589
7600
  value: function(e, i) {
7590
7601
  var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
7591
7602
  if (this.elements[e]) throw new Error('Sigma: a layer named "'.concat(e, '" already exists'));
7592
- var o = gu(i, {
7603
+ var o = mu(i, {
7593
7604
  position: "absolute"
7594
7605
  }, {
7595
7606
  class: "sigma-".concat(e)
@@ -7884,7 +7895,7 @@ var Pu = /* @__PURE__ */ (function(n) {
7884
7895
  key: "resize",
7885
7896
  value: function(e) {
7886
7897
  var i = this.width, a = this.height;
7887
- if (this.width = this.container.offsetWidth, this.height = this.container.offsetHeight, this.pixelRatio = Pn(), this.width === 0)
7898
+ if (this.width = this.container.offsetWidth, this.height = this.container.offsetHeight, this.pixelRatio = In(), this.width === 0)
7888
7899
  if (this.settings.allowInvalidContainer) this.width = 1;
7889
7900
  else throw new Error("Sigma: Container has no width. You can set the allowInvalidContainer setting to true to stop seeing this error.");
7890
7901
  if (this.height === 0)
@@ -8204,36 +8215,36 @@ var Pu = /* @__PURE__ */ (function(n) {
8204
8215
  return e;
8205
8216
  }
8206
8217
  }]);
8207
- })(Xr), Iu = Pu;
8218
+ })(Kr), zu = Ou;
8208
8219
  function Gr(n, r) {
8209
8220
  (r == null || r > n.length) && (r = n.length);
8210
8221
  for (var t = 0, e = Array(r); t < r; t++) e[t] = n[t];
8211
8222
  return e;
8212
8223
  }
8213
- function Fu(n) {
8224
+ function Nu(n) {
8214
8225
  if (Array.isArray(n)) return Gr(n);
8215
8226
  }
8216
- function Ou(n) {
8227
+ function Uu(n) {
8217
8228
  if (typeof Symbol < "u" && n[Symbol.iterator] != null || n["@@iterator"] != null) return Array.from(n);
8218
8229
  }
8219
- function zu(n, r) {
8230
+ function $u(n, r) {
8220
8231
  if (n) {
8221
8232
  if (typeof n == "string") return Gr(n, r);
8222
8233
  var t = {}.toString.call(n).slice(8, -1);
8223
8234
  return t === "Object" && n.constructor && (t = n.constructor.name), t === "Map" || t === "Set" ? Array.from(n) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Gr(n, r) : void 0;
8224
8235
  }
8225
8236
  }
8226
- function Nu() {
8237
+ function Mu() {
8227
8238
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
8228
8239
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
8229
8240
  }
8230
8241
  function Yr(n) {
8231
- return Fu(n) || Ou(n) || zu(n) || Nu();
8242
+ return Nu(n) || Uu(n) || $u(n) || Mu();
8232
8243
  }
8233
8244
  function Zr(n, r) {
8234
8245
  if (!(n instanceof r)) throw new TypeError("Cannot call a class as a function");
8235
8246
  }
8236
- function Uu(n, r) {
8247
+ function Bu(n, r) {
8237
8248
  if (typeof n != "object" || !n) return n;
8238
8249
  var t = n[Symbol.toPrimitive];
8239
8250
  if (t !== void 0) {
@@ -8243,18 +8254,18 @@ function Uu(n, r) {
8243
8254
  }
8244
8255
  return (r === "string" ? String : Number)(n);
8245
8256
  }
8246
- function Ji(n) {
8247
- var r = Uu(n, "string");
8257
+ function ea(n) {
8258
+ var r = Bu(n, "string");
8248
8259
  return typeof r == "symbol" ? r : r + "";
8249
8260
  }
8250
- function $u(n, r) {
8261
+ function Wu(n, r) {
8251
8262
  for (var t = 0; t < r.length; t++) {
8252
8263
  var e = r[t];
8253
- e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, Ji(e.key), e);
8264
+ e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, ea(e.key), e);
8254
8265
  }
8255
8266
  }
8256
8267
  function Qr(n, r, t) {
8257
- return r && $u(n.prototype, r), Object.defineProperty(n, "prototype", {
8268
+ return r && Wu(n.prototype, r), Object.defineProperty(n, "prototype", {
8258
8269
  writable: !1
8259
8270
  }), n;
8260
8271
  }
@@ -8263,13 +8274,13 @@ function at(n) {
8263
8274
  return r.__proto__ || Object.getPrototypeOf(r);
8264
8275
  }, at(n);
8265
8276
  }
8266
- function ea() {
8277
+ function ta() {
8267
8278
  try {
8268
8279
  var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
8269
8280
  }));
8270
8281
  } catch {
8271
8282
  }
8272
- return (ea = function() {
8283
+ return (ta = function() {
8273
8284
  return !!n;
8274
8285
  })();
8275
8286
  }
@@ -8277,28 +8288,28 @@ function Ce(n) {
8277
8288
  if (n === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
8278
8289
  return n;
8279
8290
  }
8280
- function Mu(n, r) {
8291
+ function Hu(n, r) {
8281
8292
  if (r && (typeof r == "object" || typeof r == "function")) return r;
8282
8293
  if (r !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
8283
8294
  return Ce(n);
8284
8295
  }
8285
- function ta(n, r, t) {
8286
- return r = at(r), Mu(n, ea() ? Reflect.construct(r, t || [], at(n).constructor) : r.apply(n, t));
8296
+ function ra(n, r, t) {
8297
+ return r = at(r), Hu(n, ta() ? Reflect.construct(r, t || [], at(n).constructor) : r.apply(n, t));
8287
8298
  }
8288
- function Bu(n, r) {
8299
+ function ju(n, r) {
8289
8300
  for (; !{}.hasOwnProperty.call(n, r) && (n = at(n)) !== null; ) ;
8290
8301
  return n;
8291
8302
  }
8292
8303
  function Pr() {
8293
8304
  return Pr = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(n, r, t) {
8294
- var e = Bu(n, r);
8305
+ var e = ju(n, r);
8295
8306
  if (e) {
8296
8307
  var i = Object.getOwnPropertyDescriptor(e, r);
8297
8308
  return i.get ? i.get.call(arguments.length < 3 ? n : t) : i.value;
8298
8309
  }
8299
8310
  }, Pr.apply(null, arguments);
8300
8311
  }
8301
- function Wn(n, r, t, e) {
8312
+ function Hn(n, r, t, e) {
8302
8313
  var i = Pr(at(n.prototype), r, t);
8303
8314
  return typeof i == "function" ? function(a) {
8304
8315
  return i.apply(t, a);
@@ -8309,7 +8320,7 @@ function Ir(n, r) {
8309
8320
  return t.__proto__ = e, t;
8310
8321
  }, Ir(n, r);
8311
8322
  }
8312
- function ra(n, r) {
8323
+ function na(n, r) {
8313
8324
  if (typeof r != "function" && r !== null) throw new TypeError("Super expression must either be null or a function");
8314
8325
  n.prototype = Object.create(r && r.prototype, {
8315
8326
  constructor: {
@@ -8322,14 +8333,14 @@ function ra(n, r) {
8322
8333
  }), r && Ir(n, r);
8323
8334
  }
8324
8335
  function fe(n, r, t) {
8325
- return (r = Ji(r)) in n ? Object.defineProperty(n, r, {
8336
+ return (r = ea(r)) in n ? Object.defineProperty(n, r, {
8326
8337
  value: t,
8327
8338
  enumerable: !0,
8328
8339
  configurable: !0,
8329
8340
  writable: !0
8330
8341
  }) : n[r] = t, n;
8331
8342
  }
8332
- function Wu(n, r) {
8343
+ function Vu(n, r) {
8333
8344
  if (n == null) return {};
8334
8345
  var t = {};
8335
8346
  for (var e in n) if ({}.hasOwnProperty.call(n, e)) {
@@ -8338,16 +8349,16 @@ function Wu(n, r) {
8338
8349
  }
8339
8350
  return t;
8340
8351
  }
8341
- function Hu(n, r) {
8352
+ function qu(n, r) {
8342
8353
  if (n == null) return {};
8343
- var t, e, i = Wu(n, r);
8354
+ var t, e, i = Vu(n, r);
8344
8355
  if (Object.getOwnPropertySymbols) {
8345
8356
  var a = Object.getOwnPropertySymbols(n);
8346
8357
  for (e = 0; e < a.length; e++) t = a[e], r.includes(t) || {}.propertyIsEnumerable.call(n, t) && (i[t] = n[t]);
8347
8358
  }
8348
8359
  return i;
8349
8360
  }
8350
- function Hn(n, r) {
8361
+ function jn(n, r) {
8351
8362
  var t = Object.keys(n);
8352
8363
  if (Object.getOwnPropertySymbols) {
8353
8364
  var e = Object.getOwnPropertySymbols(n);
@@ -8360,15 +8371,15 @@ function Hn(n, r) {
8360
8371
  function me(n) {
8361
8372
  for (var r = 1; r < arguments.length; r++) {
8362
8373
  var t = arguments[r] != null ? arguments[r] : {};
8363
- r % 2 ? Hn(Object(t), !0).forEach(function(e) {
8374
+ r % 2 ? jn(Object(t), !0).forEach(function(e) {
8364
8375
  fe(n, e, t[e]);
8365
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : Hn(Object(t)).forEach(function(e) {
8376
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : jn(Object(t)).forEach(function(e) {
8366
8377
  Object.defineProperty(n, e, Object.getOwnPropertyDescriptor(t, e));
8367
8378
  });
8368
8379
  }
8369
8380
  return n;
8370
8381
  }
8371
- function ju(n) {
8382
+ function Ku(n) {
8372
8383
  var r = n.texturesCount, t = (
8373
8384
  /*glsl*/
8374
8385
  `
@@ -8475,7 +8486,7 @@ void main(void) {
8475
8486
  );
8476
8487
  return t;
8477
8488
  }
8478
- var Vu = (
8489
+ var Xu = (
8479
8490
  /*glsl*/
8480
8491
  `
8481
8492
  attribute vec4 a_id;
@@ -8527,9 +8538,9 @@ void main() {
8527
8538
  v_color.a *= bias;
8528
8539
  }
8529
8540
  `
8530
- ), qu = Vu;
8531
- function Ke() {
8532
- Ke = function() {
8541
+ ), Yu = Xu;
8542
+ function Xe() {
8543
+ Xe = function() {
8533
8544
  return r;
8534
8545
  };
8535
8546
  var n, r = {}, t = Object.prototype, e = t.hasOwnProperty, i = Object.defineProperty || function(T, f, d) {
@@ -8581,7 +8592,7 @@ function Ke() {
8581
8592
  l(p, o, function() {
8582
8593
  return this;
8583
8594
  });
8584
- var C = Object.getPrototypeOf, L = C && C(C(X([])));
8595
+ var C = Object.getPrototypeOf, L = C && C(C(K([])));
8585
8596
  L && L !== t && e.call(L, o) && (p = L);
8586
8597
  var g = m.prototype = k.prototype = Object.create(p);
8587
8598
  function x(T) {
@@ -8681,7 +8692,7 @@ function Ke() {
8681
8692
  tryLoc: "root"
8682
8693
  }], T.forEach(I, this), this.reset(!0);
8683
8694
  }
8684
- function X(T) {
8695
+ function K(T) {
8685
8696
  if (T || T === "") {
8686
8697
  var f = T[o];
8687
8698
  if (f) return f.call(T);
@@ -8733,7 +8744,7 @@ function Ke() {
8733
8744
  }
8734
8745
  return $.done = !0, $;
8735
8746
  };
8736
- }, r.values = X, W.prototype = {
8747
+ }, r.values = K, W.prototype = {
8737
8748
  constructor: W,
8738
8749
  reset: function(T) {
8739
8750
  if (this.prev = 0, this.next = 0, this.sent = this._sent = n, this.done = !1, this.delegate = null, this.method = "next", this.arg = n, this.tryEntries.forEach(_), !T) for (var f in this) f.charAt(0) === "t" && e.call(this, f) && !isNaN(+f.slice(1)) && (this[f] = n);
@@ -8805,14 +8816,14 @@ function Ke() {
8805
8816
  },
8806
8817
  delegateYield: function(T, f, d) {
8807
8818
  return this.delegate = {
8808
- iterator: X(T),
8819
+ iterator: K(T),
8809
8820
  resultName: f,
8810
8821
  nextLoc: d
8811
8822
  }, this.method === "next" && (this.arg = n), w;
8812
8823
  }
8813
8824
  }, r;
8814
8825
  }
8815
- function jn(n, r, t, e, i, a, o) {
8826
+ function Vn(n, r, t, e, i, a, o) {
8816
8827
  try {
8817
8828
  var s = n[a](o), u = s.value;
8818
8829
  } catch (l) {
@@ -8826,10 +8837,10 @@ function Jr(n) {
8826
8837
  return new Promise(function(e, i) {
8827
8838
  var a = n.apply(r, t);
8828
8839
  function o(u) {
8829
- jn(a, e, i, o, s, "next", u);
8840
+ Vn(a, e, i, o, s, "next", u);
8830
8841
  }
8831
8842
  function s(u) {
8832
- jn(a, e, i, o, s, "throw", u);
8843
+ Vn(a, e, i, o, s, "throw", u);
8833
8844
  }
8834
8845
  o(void 0);
8835
8846
  });
@@ -8845,7 +8856,7 @@ var en = {
8845
8856
  maxTextureSize: 4096,
8846
8857
  debounceTimeout: 500,
8847
8858
  crossOrigin: "anonymous"
8848
- }, Xu = 1;
8859
+ }, Zu = 1;
8849
8860
  function Fr(n) {
8850
8861
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = r.crossOrigin;
8851
8862
  return new Promise(function(e, i) {
@@ -8861,13 +8872,13 @@ function Fr(n) {
8861
8872
  }), t && a.setAttribute("crossOrigin", t), a.src = n;
8862
8873
  });
8863
8874
  }
8864
- function Ku(n) {
8875
+ function Qu(n) {
8865
8876
  return Or.apply(this, arguments);
8866
8877
  }
8867
8878
  function Or() {
8868
- return Or = Jr(/* @__PURE__ */ Ke().mark(function n(r) {
8879
+ return Or = Jr(/* @__PURE__ */ Xe().mark(function n(r) {
8869
8880
  var t, e, i, a, o, s, u, l, c, h, v, y, b, R = arguments;
8870
- return Ke().wrap(function(k) {
8881
+ return Xe().wrap(function(k) {
8871
8882
  for (; ; ) switch (k.prev = k.next) {
8872
8883
  case 0:
8873
8884
  if (t = R.length > 1 && R[1] !== void 0 ? R[1] : {}, e = t.size, i = t.crossOrigin, i !== "use-credentials") {
@@ -8905,20 +8916,20 @@ function Or() {
8905
8916
  }, n);
8906
8917
  })), Or.apply(this, arguments);
8907
8918
  }
8908
- function Yu(n) {
8919
+ function Ju(n) {
8909
8920
  return zr.apply(this, arguments);
8910
8921
  }
8911
8922
  function zr() {
8912
- return zr = Jr(/* @__PURE__ */ Ke().mark(function n(r) {
8923
+ return zr = Jr(/* @__PURE__ */ Xe().mark(function n(r) {
8913
8924
  var t, e, i, a, o, s, u = arguments;
8914
- return Ke().wrap(function(c) {
8925
+ return Xe().wrap(function(c) {
8915
8926
  for (; ; ) switch (c.prev = c.next) {
8916
8927
  case 0:
8917
8928
  if (e = u.length > 1 && u[1] !== void 0 ? u[1] : {}, i = e.size, a = e.crossOrigin, o = ((t = r.split(/[#?]/)[0].split(".").pop()) === null || t === void 0 ? void 0 : t.trim().toLowerCase()) === "svg", !(o && i)) {
8918
8929
  c.next = 16;
8919
8930
  break;
8920
8931
  }
8921
- return c.prev = 3, c.next = 6, Ku(r, {
8932
+ return c.prev = 3, c.next = 6, Qu(r, {
8922
8933
  size: i,
8923
8934
  crossOrigin: a
8924
8935
  });
@@ -8949,7 +8960,7 @@ function zr() {
8949
8960
  }, n, null, [[3, 9]]);
8950
8961
  })), zr.apply(this, arguments);
8951
8962
  }
8952
- function Zu(n, r, t) {
8963
+ function el(n, r, t) {
8953
8964
  var e = t.objectFit, i = t.size, a = t.correctCentering, o = e === "contain" ? Math.max(n.width, n.height) : Math.min(n.width, n.height), s = i.mode === "auto" ? o : i.mode === "force" ? i.value : Math.min(i.value, o), u = (n.width - o) / 2, l = (n.height - o) / 2;
8954
8965
  if (a) {
8955
8966
  var c = r.getCorrectionOffset(n, o);
@@ -8962,9 +8973,9 @@ function Zu(n, r, t) {
8962
8973
  destinationSize: s
8963
8974
  };
8964
8975
  }
8965
- function Qu(n, r, t) {
8976
+ function tl(n, r, t) {
8966
8977
  for (var e = r.canvas, i = e.width, a = e.height, o = [], s = t.x, u = t.y, l = t.rowHeight, c = t.maxRowWidth, h = {}, v = 0, y = n.length; v < y; v++) {
8967
- var b = n[v], R = b.key, w = b.image, k = b.sourceSize, E = b.sourceX, m = b.sourceY, p = b.destinationSize, C = p + Xu;
8978
+ var b = n[v], R = b.key, w = b.image, k = b.sourceSize, E = b.sourceX, m = b.sourceY, p = b.destinationSize, C = p + Zu;
8968
8979
  u + C > a || s + C > i && u + C + l > a || (s + C > i && (c = Math.max(c, s), s = 0, u += l, l = C), o.push({
8969
8980
  key: R,
8970
8981
  image: w,
@@ -8982,8 +8993,8 @@ function Qu(n, r, t) {
8982
8993
  }
8983
8994
  c = Math.max(c, s);
8984
8995
  for (var L = c, g = u + l, x = 0, S = o.length; x < S; x++) {
8985
- var D = o[x], O = D.image, I = D.sourceSize, _ = D.sourceX, W = D.sourceY, X = D.destinationSize, T = D.destinationX, f = D.destinationY;
8986
- r.drawImage(O, _, W, I, I, T, f, X, X);
8996
+ var D = o[x], O = D.image, I = D.sourceSize, _ = D.sourceX, W = D.sourceY, K = D.destinationSize, T = D.destinationX, f = D.destinationY;
8997
+ r.drawImage(O, _, W, I, I, T, f, K, K);
8987
8998
  }
8988
8999
  return {
8989
9000
  atlas: h,
@@ -8996,7 +9007,7 @@ function Qu(n, r, t) {
8996
9007
  }
8997
9008
  };
8998
9009
  }
8999
- function Ju(n, r, t) {
9010
+ function rl(n, r, t) {
9000
9011
  var e = n.atlas, i = n.textures, a = n.cursor, o = {
9001
9012
  atlas: me({}, e),
9002
9013
  textures: Yr(i.slice(0, -1)),
@@ -9012,7 +9023,7 @@ function Ju(n, r, t) {
9012
9023
  }
9013
9024
  }
9014
9025
  for (var v = function() {
9015
- var b = Qu(s, t, o.cursor), R = b.atlas, w = b.texture, k = b.cursor;
9026
+ var b = tl(s, t, o.cursor), R = b.atlas, w = b.texture, k = b.cursor;
9016
9027
  o.cursor = k;
9017
9028
  var E = [];
9018
9029
  s.forEach(function(m) {
@@ -9029,7 +9040,7 @@ function Ju(n, r, t) {
9029
9040
  v();
9030
9041
  return o;
9031
9042
  }
9032
- var el = /* @__PURE__ */ (function() {
9043
+ var nl = /* @__PURE__ */ (function() {
9033
9044
  function n() {
9034
9045
  Zr(this, n), this.canvas = document.createElement("canvas"), this.context = this.canvas.getContext("2d", {
9035
9046
  willReadFrequently: !0
@@ -9054,12 +9065,12 @@ var el = /* @__PURE__ */ (function() {
9054
9065
  }
9055
9066
  }]), n;
9056
9067
  })(), $t = /* @__PURE__ */ (function(n) {
9057
- ra(r, n);
9068
+ na(r, n);
9058
9069
  function r() {
9059
9070
  var t, e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
9060
- return Zr(this, r), t = ta(this, r), fe(Ce(t), "canvas", document.createElement("canvas")), fe(Ce(t), "ctx", t.canvas.getContext("2d", {
9071
+ return Zr(this, r), t = ra(this, r), fe(Ce(t), "canvas", document.createElement("canvas")), fe(Ce(t), "ctx", t.canvas.getContext("2d", {
9061
9072
  willReadFrequently: !0
9062
- })), fe(Ce(t), "corrector", new el()), fe(Ce(t), "imageStates", {}), fe(Ce(t), "textures", [t.ctx.getImageData(0, 0, 1, 1)]), fe(Ce(t), "lastTextureCursor", {
9073
+ })), fe(Ce(t), "corrector", new nl()), fe(Ce(t), "imageStates", {}), fe(Ce(t), "textures", [t.ctx.getImageData(0, 0, 1, 1)]), fe(Ce(t), "lastTextureCursor", {
9063
9074
  x: 0,
9064
9075
  y: 0,
9065
9076
  rowHeight: 0,
@@ -9077,7 +9088,7 @@ var el = /* @__PURE__ */ (function() {
9077
9088
  }, {
9078
9089
  key: "generateTextures",
9079
9090
  value: function() {
9080
- var e = Ju({
9091
+ var e = rl({
9081
9092
  atlas: this.atlas,
9082
9093
  textures: this.textures,
9083
9094
  cursor: this.lastTextureCursor
@@ -9091,9 +9102,9 @@ var el = /* @__PURE__ */ (function() {
9091
9102
  }, {
9092
9103
  key: "registerImage",
9093
9104
  value: (function() {
9094
- var t = Jr(/* @__PURE__ */ Ke().mark(function i(a) {
9105
+ var t = Jr(/* @__PURE__ */ Xe().mark(function i(a) {
9095
9106
  var o, s;
9096
- return Ke().wrap(function(l) {
9107
+ return Xe().wrap(function(l) {
9097
9108
  for (; ; ) switch (l.prev = l.next) {
9098
9109
  case 0:
9099
9110
  if (!this.imageStates[a]) {
@@ -9104,7 +9115,7 @@ var el = /* @__PURE__ */ (function() {
9104
9115
  case 2:
9105
9116
  return this.imageStates[a] = {
9106
9117
  status: "loading"
9107
- }, l.prev = 3, o = this.options.size, l.next = 7, Yu(a, {
9118
+ }, l.prev = 3, o = this.options.size, l.next = 7, Ju(a, {
9108
9119
  size: o.mode === "force" ? o.value : void 0,
9109
9120
  crossOrigin: this.options.crossOrigin || void 0
9110
9121
  });
@@ -9112,7 +9123,7 @@ var el = /* @__PURE__ */ (function() {
9112
9123
  s = l.sent, this.imageStates[a] = me({
9113
9124
  status: "ready",
9114
9125
  image: s
9115
- }, Zu(s, this.corrector, this.options)), this.scheduleGenerateTexture(), l.next = 15;
9126
+ }, el(s, this.corrector, this.options)), this.scheduleGenerateTexture(), l.next = 15;
9116
9127
  break;
9117
9128
  case 12:
9118
9129
  l.prev = 12, l.t0 = l.catch(3), this.imageStates[a] = {
@@ -9142,7 +9153,7 @@ var el = /* @__PURE__ */ (function() {
9142
9153
  }]), r;
9143
9154
  })(Wr.EventEmitter);
9144
9155
  fe($t, "NEW_TEXTURE_EVENT", "newTexture");
9145
- var tl = ["drawHover", "drawLabel", "drawingMode", "keepWithinCircle", "padding", "colorAttribute", "imageAttribute"], na = WebGLRenderingContext, Vn = na.UNSIGNED_BYTE, mt = na.FLOAT, rl = me(me({}, en), {}, {
9156
+ var il = ["drawHover", "drawLabel", "drawingMode", "keepWithinCircle", "padding", "colorAttribute", "imageAttribute"], ia = WebGLRenderingContext, qn = ia.UNSIGNED_BYTE, mt = ia.FLOAT, al = me(me({}, en), {}, {
9146
9157
  drawingMode: "background",
9147
9158
  keepWithinCircle: !0,
9148
9159
  drawLabel: void 0,
@@ -9150,18 +9161,18 @@ var tl = ["drawHover", "drawLabel", "drawingMode", "keepWithinCircle", "padding"
9150
9161
  padding: 0,
9151
9162
  colorAttribute: "color",
9152
9163
  imageAttribute: "image"
9153
- }), nl = ["u_sizeRatio", "u_correctionRatio", "u_cameraAngle", "u_percentagePadding", "u_matrix", "u_colorizeImages", "u_keepWithinCircle", "u_atlas"];
9164
+ }), ol = ["u_sizeRatio", "u_correctionRatio", "u_cameraAngle", "u_percentagePadding", "u_matrix", "u_colorizeImages", "u_keepWithinCircle", "u_atlas"];
9154
9165
  function tn(n) {
9155
9166
  var r, t = document.createElement("canvas").getContext("webgl"), e = Math.min(t.getParameter(t.MAX_TEXTURE_SIZE), en.maxTextureSize);
9156
9167
  t.canvas.remove();
9157
- var i = me(me(me({}, rl), {
9168
+ var i = me(me(me({}, al), {
9158
9169
  maxTextureSize: e
9159
- }), n || {}), a = i.drawHover, o = i.drawLabel, s = i.drawingMode, u = i.keepWithinCircle, l = i.padding, c = i.colorAttribute, h = i.imageAttribute, v = Hu(i, tl), y = new $t(v);
9170
+ }), n || {}), a = i.drawHover, o = i.drawLabel, s = i.drawingMode, u = i.keepWithinCircle, l = i.padding, c = i.colorAttribute, h = i.imageAttribute, v = qu(i, il), y = new $t(v);
9160
9171
  return r = /* @__PURE__ */ (function(b) {
9161
- ra(R, b);
9172
+ na(R, b);
9162
9173
  function R(w, k, E) {
9163
9174
  var m;
9164
- return Zr(this, R), m = ta(this, R, [w, k, E]), fe(Ce(m), "drawLabel", o), fe(Ce(m), "drawHover", a), fe(Ce(m), "textureManagerCallback", null), m.textureManagerCallback = function(p) {
9175
+ return Zr(this, R), m = ra(this, R, [w, k, E]), fe(Ce(m), "drawLabel", o), fe(Ce(m), "drawHover", a), fe(Ce(m), "textureManagerCallback", null), m.textureManagerCallback = function(p) {
9165
9176
  var C = p.atlas, L = p.textures, g = L.length !== m.textures.length;
9166
9177
  m.atlas = C, m.textureImages = L, g && m.upgradeShaders(), m.bindTextures(), m.latestRenderParams && m.render(m.latestRenderParams), m.renderer && m.renderer.refresh && m.renderer.refresh();
9167
9178
  }, y.on($t.NEW_TEXTURE_EVENT, m.textureManagerCallback), m.atlas = y.getAtlas(), m.textureImages = y.getTextures(), m.textures = m.textureImages.map(function() {
@@ -9173,12 +9184,12 @@ function tn(n) {
9173
9184
  value: function() {
9174
9185
  return {
9175
9186
  VERTICES: 3,
9176
- VERTEX_SHADER_SOURCE: qu,
9177
- FRAGMENT_SHADER_SOURCE: ju({
9187
+ VERTEX_SHADER_SOURCE: Yu,
9188
+ FRAGMENT_SHADER_SOURCE: Ku({
9178
9189
  texturesCount: y.getTextures().length
9179
9190
  }),
9180
9191
  METHOD: WebGLRenderingContext.TRIANGLES,
9181
- UNIFORMS: nl,
9192
+ UNIFORMS: ol,
9182
9193
  ATTRIBUTES: [{
9183
9194
  name: "a_position",
9184
9195
  size: 2,
@@ -9190,12 +9201,12 @@ function tn(n) {
9190
9201
  }, {
9191
9202
  name: "a_color",
9192
9203
  size: 4,
9193
- type: Vn,
9204
+ type: qn,
9194
9205
  normalized: !0
9195
9206
  }, {
9196
9207
  name: "a_id",
9197
9208
  size: 4,
9198
- type: Vn,
9209
+ type: qn,
9199
9210
  normalized: !0
9200
9211
  }, {
9201
9212
  name: "a_texture",
@@ -9227,7 +9238,7 @@ function tn(n) {
9227
9238
  if (E)
9228
9239
  for (var m = 0; m < this.textures.length; m++)
9229
9240
  E.deleteTexture(this.textures[m]);
9230
- this.textureManagerCallback && (y.off($t.NEW_TEXTURE_EVENT, this.textureManagerCallback), this.textureManagerCallback = null), Wn(R, "kill", this)([]);
9241
+ this.textureManagerCallback && (y.off($t.NEW_TEXTURE_EVENT, this.textureManagerCallback), this.textureManagerCallback = null), Hn(R, "kill", this)([]);
9231
9242
  }
9232
9243
  }, {
9233
9244
  key: "bindTextures",
@@ -9246,7 +9257,7 @@ function tn(n) {
9246
9257
  if (!E.isPicking)
9247
9258
  for (var m = E.gl, p = 0; p < this.textureImages.length; p++)
9248
9259
  m.activeTexture(m.TEXTURE0 + p), m.bindTexture(m.TEXTURE_2D, this.textures[p]);
9249
- Wn(R, "renderProgram", this)([k, E]);
9260
+ Hn(R, "renderProgram", this)([k, E]);
9250
9261
  }
9251
9262
  }, {
9252
9263
  key: "processVisibleItem",
@@ -9267,7 +9278,7 @@ function tn(n) {
9267
9278
  })), m.uniform1i(S, s === "color" ? 1 : 0), m.uniform1i(D, u ? 1 : 0);
9268
9279
  }
9269
9280
  }]), R;
9270
- })($i), fe(r, "ANGLE_1", 0), fe(r, "ANGLE_2", 2 * Math.PI / 3), fe(r, "ANGLE_3", 4 * Math.PI / 3), fe(r, "textureManager", y), r;
9281
+ })(Mi), fe(r, "ANGLE_1", 0), fe(r, "ANGLE_2", 2 * Math.PI / 3), fe(r, "ANGLE_3", 4 * Math.PI / 3), fe(r, "textureManager", y), r;
9271
9282
  }
9272
9283
  tn();
9273
9284
  tn({
@@ -9279,7 +9290,7 @@ tn({
9279
9290
  drawingMode: "color",
9280
9291
  correctCentering: !0
9281
9292
  });
9282
- function il(n, r) {
9293
+ function sl(n, r) {
9283
9294
  if (typeof n != "object" || !n) return n;
9284
9295
  var t = n[Symbol.toPrimitive];
9285
9296
  if (t !== void 0) {
@@ -9289,19 +9300,19 @@ function il(n, r) {
9289
9300
  }
9290
9301
  return (r === "string" ? String : Number)(n);
9291
9302
  }
9292
- function ia(n) {
9293
- var r = il(n, "string");
9303
+ function aa(n) {
9304
+ var r = sl(n, "string");
9294
9305
  return typeof r == "symbol" ? r : r + "";
9295
9306
  }
9296
- function aa(n, r, t) {
9297
- return (r = ia(r)) in n ? Object.defineProperty(n, r, {
9307
+ function oa(n, r, t) {
9308
+ return (r = aa(r)) in n ? Object.defineProperty(n, r, {
9298
9309
  value: t,
9299
9310
  enumerable: !0,
9300
9311
  configurable: !0,
9301
9312
  writable: !0
9302
9313
  }) : n[r] = t, n;
9303
9314
  }
9304
- function qn(n, r) {
9315
+ function Kn(n, r) {
9305
9316
  var t = Object.keys(n);
9306
9317
  if (Object.getOwnPropertySymbols) {
9307
9318
  var e = Object.getOwnPropertySymbols(n);
@@ -9314,25 +9325,25 @@ function qn(n, r) {
9314
9325
  function ot(n) {
9315
9326
  for (var r = 1; r < arguments.length; r++) {
9316
9327
  var t = arguments[r] != null ? arguments[r] : {};
9317
- r % 2 ? qn(Object(t), !0).forEach(function(e) {
9318
- aa(n, e, t[e]);
9319
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : qn(Object(t)).forEach(function(e) {
9328
+ r % 2 ? Kn(Object(t), !0).forEach(function(e) {
9329
+ oa(n, e, t[e]);
9330
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : Kn(Object(t)).forEach(function(e) {
9320
9331
  Object.defineProperty(n, e, Object.getOwnPropertyDescriptor(t, e));
9321
9332
  });
9322
9333
  }
9323
9334
  return n;
9324
9335
  }
9325
- function al(n, r) {
9336
+ function ul(n, r) {
9326
9337
  if (!(n instanceof r)) throw new TypeError("Cannot call a class as a function");
9327
9338
  }
9328
- function ol(n, r) {
9339
+ function ll(n, r) {
9329
9340
  for (var t = 0; t < r.length; t++) {
9330
9341
  var e = r[t];
9331
- e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, ia(e.key), e);
9342
+ e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, aa(e.key), e);
9332
9343
  }
9333
9344
  }
9334
- function sl(n, r, t) {
9335
- return r && ol(n.prototype, r), Object.defineProperty(n, "prototype", {
9345
+ function cl(n, r, t) {
9346
+ return r && ll(n.prototype, r), Object.defineProperty(n, "prototype", {
9336
9347
  writable: !1
9337
9348
  }), n;
9338
9349
  }
@@ -9341,34 +9352,34 @@ function Bt(n) {
9341
9352
  return r.__proto__ || Object.getPrototypeOf(r);
9342
9353
  }, Bt(n);
9343
9354
  }
9344
- function oa() {
9355
+ function sa() {
9345
9356
  try {
9346
9357
  var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
9347
9358
  }));
9348
9359
  } catch {
9349
9360
  }
9350
- return (oa = function() {
9361
+ return (sa = function() {
9351
9362
  return !!n;
9352
9363
  })();
9353
9364
  }
9354
- function sa(n) {
9365
+ function ua(n) {
9355
9366
  if (n === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
9356
9367
  return n;
9357
9368
  }
9358
- function ul(n, r) {
9369
+ function hl(n, r) {
9359
9370
  if (r && (typeof r == "object" || typeof r == "function")) return r;
9360
9371
  if (r !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
9361
- return sa(n);
9372
+ return ua(n);
9362
9373
  }
9363
- function ll(n, r, t) {
9364
- return r = Bt(r), ul(n, oa() ? Reflect.construct(r, t || [], Bt(n).constructor) : r.apply(n, t));
9374
+ function dl(n, r, t) {
9375
+ return r = Bt(r), hl(n, sa() ? Reflect.construct(r, t || [], Bt(n).constructor) : r.apply(n, t));
9365
9376
  }
9366
9377
  function Nr(n, r) {
9367
9378
  return Nr = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
9368
9379
  return t.__proto__ = e, t;
9369
9380
  }, Nr(n, r);
9370
9381
  }
9371
- function cl(n, r) {
9382
+ function fl(n, r) {
9372
9383
  if (typeof r != "function" && r !== null) throw new TypeError("Super expression must either be null or a function");
9373
9384
  n.prototype = Object.create(r && r.prototype, {
9374
9385
  constructor: {
@@ -9385,41 +9396,41 @@ function Ur(n, r) {
9385
9396
  for (var t = 0, e = Array(r); t < r; t++) e[t] = n[t];
9386
9397
  return e;
9387
9398
  }
9388
- function hl(n) {
9399
+ function gl(n) {
9389
9400
  if (Array.isArray(n)) return Ur(n);
9390
9401
  }
9391
- function dl(n) {
9402
+ function pl(n) {
9392
9403
  if (typeof Symbol < "u" && n[Symbol.iterator] != null || n["@@iterator"] != null) return Array.from(n);
9393
9404
  }
9394
- function fl(n, r) {
9405
+ function vl(n, r) {
9395
9406
  if (n) {
9396
9407
  if (typeof n == "string") return Ur(n, r);
9397
9408
  var t = {}.toString.call(n).slice(8, -1);
9398
9409
  return t === "Object" && n.constructor && (t = n.constructor.name), t === "Map" || t === "Set" ? Array.from(n) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Ur(n, r) : void 0;
9399
9410
  }
9400
9411
  }
9401
- function gl() {
9412
+ function ml() {
9402
9413
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
9403
9414
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
9404
9415
  }
9405
9416
  function ur(n) {
9406
- return hl(n) || dl(n) || fl(n) || gl();
9417
+ return gl(n) || pl(n) || vl(n) || ml();
9407
9418
  }
9408
- function ua(n, r, t, e) {
9419
+ function la(n, r, t, e) {
9409
9420
  var i = Math.pow(1 - n, 2) * r.x + 2 * (1 - n) * n * t.x + Math.pow(n, 2) * e.x, a = Math.pow(1 - n, 2) * r.y + 2 * (1 - n) * n * t.y + Math.pow(n, 2) * e.y;
9410
9421
  return {
9411
9422
  x: i,
9412
9423
  y: a
9413
9424
  };
9414
9425
  }
9415
- function pl(n, r, t) {
9426
+ function yl(n, r, t) {
9416
9427
  for (var e = 20, i = 0, a = n, o = 0; o < e; o++) {
9417
- var s = ua((o + 1) / e, n, r, t);
9428
+ var s = la((o + 1) / e, n, r, t);
9418
9429
  i += Math.sqrt(Math.pow(a.x - s.x, 2) + Math.pow(a.y - s.y, 2)), a = s;
9419
9430
  }
9420
9431
  return i;
9421
9432
  }
9422
- function vl(n) {
9433
+ function bl(n) {
9423
9434
  var r = n.curvatureAttribute, t = n.defaultCurvature, e = n.keepLabelUpright, i = e === void 0 ? !0 : e;
9424
9435
  return function(a, o, s, u, l) {
9425
9436
  var c = l.edgeLabelSize, h = o[r] || t, v = l.edgeLabelFont, y = l.edgeLabelWeight, b = l.edgeLabelColor.attribute ? o[l.edgeLabelColor.attribute] || l.edgeLabelColor.color || "#000" : l.edgeLabelColor.color, R = o.label;
@@ -9428,11 +9439,11 @@ function vl(n) {
9428
9439
  var w = !i || s.x < u.x, k = w ? s.x : u.x, E = w ? s.y : u.y, m = w ? u.x : s.x, p = w ? u.y : s.y, C = (k + m) / 2, L = (E + p) / 2, g = m - k, x = p - E, S = Math.sqrt(Math.pow(g, 2) + Math.pow(x, 2)), D = w ? 1 : -1, O = C + x * h * D, I = L - g * h * D, _ = o.size * 0.7 + 5, W = {
9429
9440
  x: I - E,
9430
9441
  y: -(O - k)
9431
- }, X = Math.sqrt(Math.pow(W.x, 2) + Math.pow(W.y, 2)), T = {
9442
+ }, K = Math.sqrt(Math.pow(W.x, 2) + Math.pow(W.y, 2)), T = {
9432
9443
  x: p - I,
9433
9444
  y: -(m - O)
9434
9445
  }, f = Math.sqrt(Math.pow(T.x, 2) + Math.pow(T.y, 2));
9435
- k += _ * W.x / X, E += _ * W.y / X, m += _ * T.x / f, p += _ * T.y / f, O += _ * x / S, I -= _ * g / S;
9446
+ k += _ * W.x / K, E += _ * W.y / K, m += _ * T.x / f, p += _ * T.y / f, O += _ * x / S, I -= _ * g / S;
9436
9447
  var d = {
9437
9448
  x: O,
9438
9449
  y: I
@@ -9442,7 +9453,7 @@ function vl(n) {
9442
9453
  }, $ = {
9443
9454
  x: m,
9444
9455
  y: p
9445
- }, P = pl(U, d, $);
9456
+ }, P = yl(U, d, $);
9446
9457
  if (!(P < s.size + u.size)) {
9447
9458
  var A = a.measureText(R).width, z = P - s.size - u.size;
9448
9459
  if (A > z) {
@@ -9456,14 +9467,14 @@ function vl(n) {
9456
9467
  te[V] || (te[V] = a.measureText(V).width * (1 + h * 0.35));
9457
9468
  }
9458
9469
  for (var se = 0.5 - A / P / 2, ee = 0, re = R.length; ee < re; ee++) {
9459
- var J = R[ee], le = ua(se, U, d, $), q = 2 * (1 - se) * (O - k) + 2 * se * (m - O), B = 2 * (1 - se) * (I - E) + 2 * se * (p - I), G = Math.atan2(B, q);
9470
+ var J = R[ee], le = la(se, U, d, $), q = 2 * (1 - se) * (O - k) + 2 * se * (m - O), B = 2 * (1 - se) * (I - E) + 2 * se * (p - I), G = Math.atan2(B, q);
9460
9471
  a.save(), a.translate(le.x, le.y), a.rotate(G), a.fillText(J, 0, 0), a.restore(), se += te[J] / P;
9461
9472
  }
9462
9473
  }
9463
9474
  }
9464
9475
  };
9465
9476
  }
9466
- function ml(n) {
9477
+ function wl(n) {
9467
9478
  var r = n.arrowHead, t = r?.extremity === "target" || r?.extremity === "both", e = r?.extremity === "source" || r?.extremity === "both", i = (
9468
9479
  /*glsl*/
9469
9480
  `
@@ -9545,7 +9556,7 @@ void main(void) {
9545
9556
  );
9546
9557
  return i;
9547
9558
  }
9548
- function yl(n) {
9559
+ function El(n) {
9549
9560
  var r = n.arrowHead, t = r?.extremity === "target" || r?.extremity === "both", e = r?.extremity === "source" || r?.extremity === "both", i = (
9550
9561
  /*glsl*/
9551
9562
  `
@@ -9662,17 +9673,17 @@ void main() {
9662
9673
  );
9663
9674
  return i;
9664
9675
  }
9665
- var rn = 0.25, bl = {
9676
+ var rn = 0.25, _l = {
9666
9677
  arrowHead: null,
9667
9678
  curvatureAttribute: "curvature",
9668
9679
  defaultCurvature: rn
9669
- }, wl = {
9680
+ }, Tl = {
9670
9681
  edgeIndexAttribute: "parallelIndex",
9671
9682
  edgeMinIndexAttribute: "parallelMinIndex",
9672
9683
  edgeMaxIndexAttribute: "parallelMaxIndex"
9673
9684
  };
9674
- function El(n, r) {
9675
- var t = ot(ot({}, wl), {}), e = {}, i = {}, a = {}, o = 0;
9685
+ function Sl(n, r) {
9686
+ var t = ot(ot({}, Tl), {}), e = {}, i = {}, a = {}, o = 0;
9676
9687
  n.forEachNode(function(L) {
9677
9688
  e[L] = ++o + "";
9678
9689
  }), n.forEachEdge(function(L, g, x, S) {
@@ -9704,25 +9715,25 @@ function El(n, r) {
9704
9715
  }
9705
9716
  }
9706
9717
  }
9707
- var la = WebGLRenderingContext, Xn = la.UNSIGNED_BYTE, Me = la.FLOAT;
9718
+ var ca = WebGLRenderingContext, Xn = ca.UNSIGNED_BYTE, Me = ca.FLOAT;
9708
9719
  function nn(n) {
9709
- var r = ot(ot({}, bl), n || {}), t = r, e = t.arrowHead, i = t.curvatureAttribute, a = t.drawLabel, o = e?.extremity === "target" || e?.extremity === "both", s = e?.extremity === "source" || e?.extremity === "both", u = ["u_matrix", "u_sizeRatio", "u_dimensions", "u_pixelRatio", "u_feather", "u_minEdgeThickness"].concat(ur(e ? ["u_lengthToThicknessRatio", "u_widenessToThicknessRatio"] : []));
9720
+ var r = ot(ot({}, _l), n || {}), t = r, e = t.arrowHead, i = t.curvatureAttribute, a = t.drawLabel, o = e?.extremity === "target" || e?.extremity === "both", s = e?.extremity === "source" || e?.extremity === "both", u = ["u_matrix", "u_sizeRatio", "u_dimensions", "u_pixelRatio", "u_feather", "u_minEdgeThickness"].concat(ur(e ? ["u_lengthToThicknessRatio", "u_widenessToThicknessRatio"] : []));
9710
9721
  return /* @__PURE__ */ (function(l) {
9711
- cl(c, l);
9722
+ fl(c, l);
9712
9723
  function c() {
9713
9724
  var h;
9714
- al(this, c);
9725
+ ul(this, c);
9715
9726
  for (var v = arguments.length, y = new Array(v), b = 0; b < v; b++)
9716
9727
  y[b] = arguments[b];
9717
- return h = ll(this, c, [].concat(y)), aa(sa(h), "drawLabel", a || vl(r)), h;
9728
+ return h = dl(this, c, [].concat(y)), oa(ua(h), "drawLabel", a || bl(r)), h;
9718
9729
  }
9719
- return sl(c, [{
9730
+ return cl(c, [{
9720
9731
  key: "getDefinition",
9721
9732
  value: function() {
9722
9733
  return {
9723
9734
  VERTICES: 6,
9724
- VERTEX_SHADER_SOURCE: yl(r),
9725
- FRAGMENT_SHADER_SOURCE: ml(r),
9735
+ VERTEX_SHADER_SOURCE: El(r),
9736
+ FRAGMENT_SHADER_SOURCE: wl(r),
9726
9737
  METHOD: WebGLRenderingContext.TRIANGLES,
9727
9738
  UNIFORMS: u,
9728
9739
  ATTRIBUTES: [{
@@ -9795,7 +9806,7 @@ function nn(n) {
9795
9806
  }]), c;
9796
9807
  })(Ht);
9797
9808
  }
9798
- var _l = nn(), Tl = nn({
9809
+ var Rl = nn(), Al = nn({
9799
9810
  arrowHead: jt
9800
9811
  });
9801
9812
  nn({
@@ -9803,10 +9814,10 @@ nn({
9803
9814
  extremity: "both"
9804
9815
  })
9805
9816
  });
9806
- var et = {}, lr, Kn;
9817
+ var et = {}, lr, Yn;
9807
9818
  function Vt() {
9808
- if (Kn) return lr;
9809
- Kn = 1;
9819
+ if (Yn) return lr;
9820
+ Yn = 1;
9810
9821
  function n(t) {
9811
9822
  return !t || typeof t != "object" || typeof t == "function" || Array.isArray(t) || t instanceof Set || t instanceof Map || t instanceof RegExp || t instanceof Date;
9812
9823
  }
@@ -9825,10 +9836,10 @@ function Vt() {
9825
9836
  }
9826
9837
  return lr = r, lr;
9827
9838
  }
9828
- var cr, Yn;
9829
- function Sl() {
9830
- if (Yn) return cr;
9831
- Yn = 1;
9839
+ var cr, Zn;
9840
+ function kl() {
9841
+ if (Zn) return cr;
9842
+ Zn = 1;
9832
9843
  function n(t) {
9833
9844
  return function(e, i) {
9834
9845
  return e + Math.floor(t() * (i - e + 1));
@@ -9837,11 +9848,11 @@ function Sl() {
9837
9848
  var r = n(Math.random);
9838
9849
  return r.createRandom = n, cr = r, cr;
9839
9850
  }
9840
- var hr, Zn;
9841
- function Rl() {
9842
- if (Zn) return hr;
9843
- Zn = 1;
9844
- var n = Sl().createRandom;
9851
+ var hr, Qn;
9852
+ function Cl() {
9853
+ if (Qn) return hr;
9854
+ Qn = 1;
9855
+ var n = kl().createRandom;
9845
9856
  function r(e) {
9846
9857
  var i = n(e);
9847
9858
  return function(a) {
@@ -9854,11 +9865,11 @@ function Rl() {
9854
9865
  var t = r(Math.random);
9855
9866
  return t.createShuffleInPlace = r, hr = t, hr;
9856
9867
  }
9857
- var dr, Qn;
9858
- function Al() {
9859
- if (Qn) return dr;
9860
- Qn = 1;
9861
- var n = Vt(), r = Ze(), t = Rl(), e = {
9868
+ var dr, Jn;
9869
+ function xl() {
9870
+ if (Jn) return dr;
9871
+ Jn = 1;
9872
+ var n = Vt(), r = Ze(), t = Cl(), e = {
9862
9873
  attributes: {
9863
9874
  x: "x",
9864
9875
  y: "y"
@@ -9914,16 +9925,16 @@ function Al() {
9914
9925
  return new i(null, g.x, g.y, g.r);
9915
9926
  }
9916
9927
  function c(g, x) {
9917
- var S = g.x, D = g.y, O = g.r, I = x.x, _ = x.y, W = x.r, X = I - S, T = _ - D, f = W - O, d = Math.sqrt(X * X + T * T);
9928
+ var S = g.x, D = g.y, O = g.r, I = x.x, _ = x.y, W = x.r, K = I - S, T = _ - D, f = W - O, d = Math.sqrt(K * K + T * T);
9918
9929
  return new i(
9919
9930
  null,
9920
- (S + I + X / d * f) / 2,
9931
+ (S + I + K / d * f) / 2,
9921
9932
  (D + _ + T / d * f) / 2,
9922
9933
  (d + O + W) / 2
9923
9934
  );
9924
9935
  }
9925
9936
  function h(g, x, S) {
9926
- var D = g.x, O = g.y, I = g.r, _ = x.x, W = x.y, X = x.r, T = S.x, f = S.y, d = S.r, U = D - _, $ = D - T, P = O - W, A = O - f, z = X - I, Z = d - I, te = D * D + O * O - I * I, oe = te - _ * _ - W * W + X * X, ne = te - T * T - f * f + d * d, V = $ * P - U * A, se = (P * ne - A * oe) / (V * 2) - D, ee = (A * z - P * Z) / V, re = ($ * oe - U * ne) / (V * 2) - O, J = (U * Z - $ * z) / V, le = ee * ee + J * J - 1, q = 2 * (I + se * ee + re * J), B = se * se + re * re - I * I, G = -(le ? (q + Math.sqrt(q * q - 4 * le * B)) / (2 * le) : B / q);
9937
+ var D = g.x, O = g.y, I = g.r, _ = x.x, W = x.y, K = x.r, T = S.x, f = S.y, d = S.r, U = D - _, $ = D - T, P = O - W, A = O - f, z = K - I, Z = d - I, te = D * D + O * O - I * I, oe = te - _ * _ - W * W + K * K, ne = te - T * T - f * f + d * d, V = $ * P - U * A, se = (P * ne - A * oe) / (V * 2) - D, ee = (A * z - P * Z) / V, re = ($ * oe - U * ne) / (V * 2) - O, J = (U * Z - $ * z) / V, le = ee * ee + J * J - 1, q = 2 * (I + se * ee + re * J), B = se * se + re * re - I * I, G = -(le ? (q + Math.sqrt(q * q - 4 * le * B)) / (2 * le) : B / q);
9927
9938
  return new i(null, D + se + ee * G, O + re + J * G, G);
9928
9939
  }
9929
9940
  function v(g) {
@@ -9963,8 +9974,8 @@ function Al() {
9963
9974
  return W;
9964
9975
  }
9965
9976
  function w(g, x, S) {
9966
- var D = g.x - x.x, O, I, _ = g.y - x.y, W, X, T = D * D + _ * _;
9967
- T ? (I = x.r + S.r, I *= I, X = g.r + S.r, X *= X, I > X ? (O = (T + X - I) / (2 * T), W = Math.sqrt(Math.max(0, X / T - O * O)), S.x = g.x - O * D - W * _, S.y = g.y - O * _ + W * D) : (O = (T + I - X) / (2 * T), W = Math.sqrt(Math.max(0, I / T - O * O)), S.x = x.x + O * D - W * _, S.y = x.y + O * _ + W * D)) : (S.x = x.x + S.r, S.y = x.y);
9977
+ var D = g.x - x.x, O, I, _ = g.y - x.y, W, K, T = D * D + _ * _;
9978
+ T ? (I = x.r + S.r, I *= I, K = g.r + S.r, K *= K, I > K ? (O = (T + K - I) / (2 * T), W = Math.sqrt(Math.max(0, K / T - O * O)), S.x = g.x - O * D - W * _, S.y = g.y - O * _ + W * D) : (O = (T + I - K) / (2 * T), W = Math.sqrt(Math.max(0, I / T - O * O)), S.x = x.x + O * D - W * _, S.y = x.y + O * _ + W * D)) : (S.x = x.x + S.r, S.y = x.y);
9968
9979
  }
9969
9980
  function k(g, x) {
9970
9981
  var S = g.r + x.r - 1e-6, D = x.x - g.x, O = x.y - g.y;
@@ -9973,22 +9984,22 @@ function Al() {
9973
9984
  function E(g, x) {
9974
9985
  var S = g.length;
9975
9986
  if (S === 0) return 0;
9976
- var D, O, I, _, W, X, T, f, d, U;
9987
+ var D, O, I, _, W, K, T, f, d, U;
9977
9988
  if (D = g[0], D.x = 0, D.y = 0, S <= 1) return D.r;
9978
9989
  if (O = g[1], D.x = -O.r, O.x = D.r, O.y = 0, S <= 2) return D.r + O.r;
9979
9990
  I = g[2], w(O, D, I), D = new i(null, null, null, null, D), O = new i(null, null, null, null, O), I = new i(null, null, null, null, I), D.next = I.previous = O, O.next = D.previous = I, I.next = O.previous = D;
9980
- e: for (X = 3; X < S; ++X) {
9981
- I = g[X], w(D.wrappedCircle, O.wrappedCircle, I), I = new i(null, null, null, null, I), T = O.next, f = D.previous, d = O.wrappedCircle.r, U = D.wrappedCircle.r;
9991
+ e: for (K = 3; K < S; ++K) {
9992
+ I = g[K], w(D.wrappedCircle, O.wrappedCircle, I), I = new i(null, null, null, null, I), T = O.next, f = D.previous, d = O.wrappedCircle.r, U = D.wrappedCircle.r;
9982
9993
  do
9983
9994
  if (d <= U) {
9984
9995
  if (k(T.wrappedCircle, I.wrappedCircle)) {
9985
- O = T, D.next = O, O.previous = D, --X;
9996
+ O = T, D.next = O, O.previous = D, --K;
9986
9997
  continue e;
9987
9998
  }
9988
9999
  d += T.wrappedCircle.r, T = T.next;
9989
10000
  } else {
9990
10001
  if (k(f.wrappedCircle, I.wrappedCircle)) {
9991
- D = f, D.next = O, O.previous = D, --X;
10002
+ D = f, D.next = O, O.previous = D, --K;
9992
10003
  continue e;
9993
10004
  }
9994
10005
  U += f.wrappedCircle.r, f = f.previous;
@@ -10001,8 +10012,8 @@ function Al() {
10001
10012
  D = [O.wrappedCircle], I = O;
10002
10013
  for (var $ = 1e4; (I = I.next) !== O && --$ !== 0; )
10003
10014
  D.push(I.wrappedCircle);
10004
- for (I = R(D, x), X = 0; X < S; ++X)
10005
- D = g[X], D.x -= I.x, D.y -= I.y;
10015
+ for (I = R(D, x), K = 0; K < S; ++K)
10016
+ D = g[K], D.x -= I.x, D.y -= I.y;
10006
10017
  return I.r;
10007
10018
  }
10008
10019
  function m(g, x) {
@@ -10029,14 +10040,14 @@ function Al() {
10029
10040
  "graphology-layout/circlepack: the given graph is not a valid graphology instance."
10030
10041
  );
10031
10042
  S = n(S, e);
10032
- var D = {}, O = {}, I = x.nodes(), _ = S.center, W = S.hierarchyAttributes, X = t.createShuffleInPlace(S.rng), T = S.scale, f = new i();
10043
+ var D = {}, O = {}, I = x.nodes(), _ = S.center, W = S.hierarchyAttributes, K = t.createShuffleInPlace(S.rng), T = S.scale, f = new i();
10033
10044
  x.forEachNode(function(z, Z) {
10034
10045
  var te = Z.size ? Z.size : 1, oe = new i(z, null, null, te), ne = f;
10035
10046
  W.forEach(function(V) {
10036
10047
  var se = Z[V];
10037
10048
  ne = ne.getChild(se);
10038
10049
  }), ne.addChild(z, oe);
10039
- }), p(f, X), a(x, f, D);
10050
+ }), p(f, K), a(x, f, D);
10040
10051
  var d = I.length, U, $, P;
10041
10052
  for (P = 0; P < d; P++) {
10042
10053
  var A = I[P];
@@ -10050,10 +10061,10 @@ function Al() {
10050
10061
  var L = C.bind(null, !1);
10051
10062
  return L.assign = C.bind(null, !0), dr = L, dr;
10052
10063
  }
10053
- var fr, Jn;
10054
- function kl() {
10055
- if (Jn) return fr;
10056
- Jn = 1;
10064
+ var fr, ei;
10065
+ function Dl() {
10066
+ if (ei) return fr;
10067
+ ei = 1;
10057
10068
  var n = Vt(), r = Ze(), t = {
10058
10069
  dimensions: ["x", "y"],
10059
10070
  center: 0.5,
@@ -10091,10 +10102,10 @@ function kl() {
10091
10102
  var i = e.bind(null, !1);
10092
10103
  return i.assign = e.bind(null, !0), fr = i, fr;
10093
10104
  }
10094
- var gr, ei;
10095
- function Cl() {
10096
- if (ei) return gr;
10097
- ei = 1;
10105
+ var gr, ti;
10106
+ function Ll() {
10107
+ if (ti) return gr;
10108
+ ti = 1;
10098
10109
  var n = Vt(), r = Ze(), t = {
10099
10110
  dimensions: ["x", "y"],
10100
10111
  center: 0.5,
@@ -10134,10 +10145,10 @@ function Cl() {
10134
10145
  var i = e.bind(null, !1);
10135
10146
  return i.assign = e.bind(null, !0), gr = i, gr;
10136
10147
  }
10137
- var pr, ti;
10138
- function xl() {
10139
- if (ti) return pr;
10140
- ti = 1;
10148
+ var pr, ri;
10149
+ function Gl() {
10150
+ if (ri) return pr;
10151
+ ri = 1;
10141
10152
  var n = Vt(), r = Ze(), t = Math.PI / 180, e = {
10142
10153
  dimensions: ["x", "y"],
10143
10154
  centeredOnZero: !1,
@@ -10186,18 +10197,18 @@ function xl() {
10186
10197
  var a = i.bind(null, !1);
10187
10198
  return a.assign = i.bind(null, !0), pr = a, pr;
10188
10199
  }
10189
- var ri;
10190
- function Dl() {
10191
- return ri || (ri = 1, et.circlepack = Al(), et.circular = kl(), et.random = Cl(), et.rotation = xl()), et;
10200
+ var ni;
10201
+ function Pl() {
10202
+ return ni || (ni = 1, et.circlepack = xl(), et.circular = Dl(), et.random = Ll(), et.rotation = Gl()), et;
10192
10203
  }
10193
- var vr = Dl(), mr, ni;
10194
- function Ll() {
10195
- return ni || (ni = 1, mr = function() {
10204
+ var vr = Pl(), mr, ii;
10205
+ function Il() {
10206
+ return ii || (ii = 1, mr = function() {
10196
10207
  var r, t, e = {};
10197
10208
  (function() {
10198
- var a = 0, o = 1, s = 2, u = 3, l = 4, c = 5, h = 6, v = 7, y = 8, b = 9, R = 0, w = 1, k = 2, E = 0, m = 1, p = 2, C = 3, L = 4, g = 5, x = 6, S = 7, D = 8, O = 3, I = 10, _ = 3, W = 9, X = 10;
10209
+ var a = 0, o = 1, s = 2, u = 3, l = 4, c = 5, h = 6, v = 7, y = 8, b = 9, R = 0, w = 1, k = 2, E = 0, m = 1, p = 2, C = 3, L = 4, g = 5, x = 6, S = 7, D = 8, O = 3, I = 10, _ = 3, W = 9, K = 10;
10199
10210
  e.exports = function(f, d, U) {
10200
- var $, P, A, z, Z, te, oe, ne, V, se, ee = d.length, re = U.length, J = f.adjustSizes, le = f.barnesHutTheta * f.barnesHutTheta, q, B, G, ie, de, Y, K, F = [];
10211
+ var $, P, A, z, Z, te, oe, ne, V, se, ee = d.length, re = U.length, J = f.adjustSizes, le = f.barnesHutTheta * f.barnesHutTheta, q, B, G, ie, de, Y, X, F = [];
10201
10212
  for (A = 0; A < ee; A += I)
10202
10213
  d[A + l] = d[A + s], d[A + c] = d[A + u], d[A + s] = 0, d[A + u] = 0;
10203
10214
  if (f.outboundAttractionDistribution) {
@@ -10242,30 +10253,30 @@ function Ll() {
10242
10253
  d[A + o] - F[P + D],
10243
10254
  2
10244
10255
  ), se = F[P + C], 4 * se * se / Y < le) {
10245
- if (G = d[A + a] - F[P + S], ie = d[A + o] - F[P + D], J === !0 ? Y > 0 ? (K = B * d[A + h] * F[P + x] / Y, d[A + s] += G * K, d[A + u] += ie * K) : Y < 0 && (K = -B * d[A + h] * F[P + x] / Math.sqrt(Y), d[A + s] += G * K, d[A + u] += ie * K) : Y > 0 && (K = B * d[A + h] * F[P + x] / Y, d[A + s] += G * K, d[A + u] += ie * K), P = F[P + L], P < 0) break;
10256
+ if (G = d[A + a] - F[P + S], ie = d[A + o] - F[P + D], J === !0 ? Y > 0 ? (X = B * d[A + h] * F[P + x] / Y, d[A + s] += G * X, d[A + u] += ie * X) : Y < 0 && (X = -B * d[A + h] * F[P + x] / Math.sqrt(Y), d[A + s] += G * X, d[A + u] += ie * X) : Y > 0 && (X = B * d[A + h] * F[P + x] / Y, d[A + s] += G * X, d[A + u] += ie * X), P = F[P + L], P < 0) break;
10246
10257
  continue;
10247
10258
  } else {
10248
10259
  P = F[P + g];
10249
10260
  continue;
10250
10261
  }
10251
10262
  else {
10252
- if (te = F[P + E], te >= 0 && te !== A && (G = d[A + a] - d[te + a], ie = d[A + o] - d[te + o], Y = G * G + ie * ie, J === !0 ? Y > 0 ? (K = B * d[A + h] * d[te + h] / Y, d[A + s] += G * K, d[A + u] += ie * K) : Y < 0 && (K = -B * d[A + h] * d[te + h] / Math.sqrt(Y), d[A + s] += G * K, d[A + u] += ie * K) : Y > 0 && (K = B * d[A + h] * d[te + h] / Y, d[A + s] += G * K, d[A + u] += ie * K)), P = F[P + L], P < 0) break;
10263
+ if (te = F[P + E], te >= 0 && te !== A && (G = d[A + a] - d[te + a], ie = d[A + o] - d[te + o], Y = G * G + ie * ie, J === !0 ? Y > 0 ? (X = B * d[A + h] * d[te + h] / Y, d[A + s] += G * X, d[A + u] += ie * X) : Y < 0 && (X = -B * d[A + h] * d[te + h] / Math.sqrt(Y), d[A + s] += G * X, d[A + u] += ie * X) : Y > 0 && (X = B * d[A + h] * d[te + h] / Y, d[A + s] += G * X, d[A + u] += ie * X)), P = F[P + L], P < 0) break;
10253
10264
  continue;
10254
10265
  }
10255
10266
  else
10256
10267
  for (B = f.scalingRatio, z = 0; z < ee; z += I)
10257
10268
  for (Z = 0; Z < z; Z += I)
10258
- G = d[z + a] - d[Z + a], ie = d[z + o] - d[Z + o], J === !0 ? (Y = Math.sqrt(G * G + ie * ie) - d[z + y] - d[Z + y], Y > 0 ? (K = B * d[z + h] * d[Z + h] / Y / Y, d[z + s] += G * K, d[z + u] += ie * K, d[Z + s] -= G * K, d[Z + u] -= ie * K) : Y < 0 && (K = 100 * B * d[z + h] * d[Z + h], d[z + s] += G * K, d[z + u] += ie * K, d[Z + s] -= G * K, d[Z + u] -= ie * K)) : (Y = Math.sqrt(G * G + ie * ie), Y > 0 && (K = B * d[z + h] * d[Z + h] / Y / Y, d[z + s] += G * K, d[z + u] += ie * K, d[Z + s] -= G * K, d[Z + u] -= ie * K));
10269
+ G = d[z + a] - d[Z + a], ie = d[z + o] - d[Z + o], J === !0 ? (Y = Math.sqrt(G * G + ie * ie) - d[z + y] - d[Z + y], Y > 0 ? (X = B * d[z + h] * d[Z + h] / Y / Y, d[z + s] += G * X, d[z + u] += ie * X, d[Z + s] -= G * X, d[Z + u] -= ie * X) : Y < 0 && (X = 100 * B * d[z + h] * d[Z + h], d[z + s] += G * X, d[z + u] += ie * X, d[Z + s] -= G * X, d[Z + u] -= ie * X)) : (Y = Math.sqrt(G * G + ie * ie), Y > 0 && (X = B * d[z + h] * d[Z + h] / Y / Y, d[z + s] += G * X, d[z + u] += ie * X, d[Z + s] -= G * X, d[Z + u] -= ie * X));
10259
10270
  for (V = f.gravity / f.scalingRatio, B = f.scalingRatio, A = 0; A < ee; A += I)
10260
- K = 0, G = d[A + a], ie = d[A + o], Y = Math.sqrt(Math.pow(G, 2) + Math.pow(ie, 2)), f.strongGravityMode ? Y > 0 && (K = B * d[A + h] * V) : Y > 0 && (K = B * d[A + h] * V / Y), d[A + s] -= G * K, d[A + u] -= ie * K;
10271
+ X = 0, G = d[A + a], ie = d[A + o], Y = Math.sqrt(Math.pow(G, 2) + Math.pow(ie, 2)), f.strongGravityMode ? Y > 0 && (X = B * d[A + h] * V) : Y > 0 && (X = B * d[A + h] * V / Y), d[A + s] -= G * X, d[A + u] -= ie * X;
10261
10272
  for (B = 1 * (f.outboundAttractionDistribution ? q : 1), oe = 0; oe < re; oe += _)
10262
- z = U[oe + R], Z = U[oe + w], ne = U[oe + k], de = Math.pow(ne, f.edgeWeightInfluence), G = d[z + a] - d[Z + a], ie = d[z + o] - d[Z + o], J === !0 ? (Y = Math.sqrt(G * G + ie * ie) - d[z + y] - d[Z + y], f.linLogMode ? f.outboundAttractionDistribution ? Y > 0 && (K = -B * de * Math.log(1 + Y) / Y / d[z + h]) : Y > 0 && (K = -B * de * Math.log(1 + Y) / Y) : f.outboundAttractionDistribution ? Y > 0 && (K = -B * de / d[z + h]) : Y > 0 && (K = -B * de)) : (Y = Math.sqrt(Math.pow(G, 2) + Math.pow(ie, 2)), f.linLogMode ? f.outboundAttractionDistribution ? Y > 0 && (K = -B * de * Math.log(1 + Y) / Y / d[z + h]) : Y > 0 && (K = -B * de * Math.log(1 + Y) / Y) : f.outboundAttractionDistribution ? (Y = 1, K = -B * de / d[z + h]) : (Y = 1, K = -B * de)), Y > 0 && (d[z + s] += G * K, d[z + u] += ie * K, d[Z + s] -= G * K, d[Z + u] -= ie * K);
10273
+ z = U[oe + R], Z = U[oe + w], ne = U[oe + k], de = Math.pow(ne, f.edgeWeightInfluence), G = d[z + a] - d[Z + a], ie = d[z + o] - d[Z + o], J === !0 ? (Y = Math.sqrt(G * G + ie * ie) - d[z + y] - d[Z + y], f.linLogMode ? f.outboundAttractionDistribution ? Y > 0 && (X = -B * de * Math.log(1 + Y) / Y / d[z + h]) : Y > 0 && (X = -B * de * Math.log(1 + Y) / Y) : f.outboundAttractionDistribution ? Y > 0 && (X = -B * de / d[z + h]) : Y > 0 && (X = -B * de)) : (Y = Math.sqrt(Math.pow(G, 2) + Math.pow(ie, 2)), f.linLogMode ? f.outboundAttractionDistribution ? Y > 0 && (X = -B * de * Math.log(1 + Y) / Y / d[z + h]) : Y > 0 && (X = -B * de * Math.log(1 + Y) / Y) : f.outboundAttractionDistribution ? (Y = 1, X = -B * de / d[z + h]) : (Y = 1, X = -B * de)), Y > 0 && (d[z + s] += G * X, d[z + u] += ie * X, d[Z + s] -= G * X, d[Z + u] -= ie * X);
10263
10274
  var Pe, ct, kt, Ve, Ct, xt;
10264
10275
  if (J === !0)
10265
10276
  for (A = 0; A < ee; A += I)
10266
10277
  d[A + b] !== 1 && (Pe = Math.sqrt(
10267
10278
  Math.pow(d[A + s], 2) + Math.pow(d[A + u], 2)
10268
- ), Pe > X && (d[A + s] = d[A + s] * X / Pe, d[A + u] = d[A + u] * X / Pe), ct = d[A + h] * Math.sqrt(
10279
+ ), Pe > K && (d[A + s] = d[A + s] * K / Pe, d[A + u] = d[A + u] * K / Pe), ct = d[A + h] * Math.sqrt(
10269
10280
  (d[A + l] - d[A + s]) * (d[A + l] - d[A + s]) + (d[A + c] - d[A + u]) * (d[A + c] - d[A + u])
10270
10281
  ), kt = Math.sqrt(
10271
10282
  (d[A + l] + d[A + s]) * (d[A + l] + d[A + s]) + (d[A + c] + d[A + u]) * (d[A + c] + d[A + u])
@@ -10297,10 +10308,10 @@ function Ll() {
10297
10308
  });
10298
10309
  }), mr;
10299
10310
  }
10300
- var yt = {}, ii;
10301
- function ca() {
10302
- if (ii) return yt;
10303
- ii = 1;
10311
+ var yt = {}, ai;
10312
+ function ha() {
10313
+ if (ai) return yt;
10314
+ ai = 1;
10304
10315
  function n(e) {
10305
10316
  return typeof e != "number" || isNaN(e) ? 1 : e;
10306
10317
  }
@@ -10373,10 +10384,10 @@ function ca() {
10373
10384
  return t(e, n);
10374
10385
  }, yt;
10375
10386
  }
10376
- var Ie = {}, ai;
10377
- function ha() {
10378
- if (ai) return Ie;
10379
- ai = 1;
10387
+ var Ie = {}, oi;
10388
+ function da() {
10389
+ if (oi) return Ie;
10390
+ oi = 1;
10380
10391
  var n = 10, r = 3;
10381
10392
  return Ie.assign = function(t) {
10382
10393
  t = t || {};
@@ -10435,9 +10446,9 @@ function ha() {
10435
10446
  return i.revokeObjectURL(o), s;
10436
10447
  }, Ie;
10437
10448
  }
10438
- var yr, oi;
10439
- function da() {
10440
- return oi || (oi = 1, yr = {
10449
+ var yr, si;
10450
+ function fa() {
10451
+ return si || (si = 1, yr = {
10441
10452
  linLogMode: !1,
10442
10453
  outboundAttractionDistribution: !1,
10443
10454
  adjustSizes: !1,
@@ -10450,11 +10461,11 @@ function da() {
10450
10461
  barnesHutTheta: 0.5
10451
10462
  }), yr;
10452
10463
  }
10453
- var br, si;
10454
- function Gl() {
10455
- if (si) return br;
10456
- si = 1;
10457
- var n = Ll(), r = Ze(), t = ca().createEdgeWeightGetter, e = ha(), i = da();
10464
+ var br, ui;
10465
+ function Fl() {
10466
+ if (ui) return br;
10467
+ ui = 1;
10468
+ var n = Il(), r = Ze(), t = ha().createEdgeWeightGetter, e = da(), i = fa();
10458
10469
  function a(o, s) {
10459
10470
  if (s = s || {}, !r(o))
10460
10471
  throw new Error(
@@ -10503,15 +10514,15 @@ function Gl() {
10503
10514
  this.running = !1, this.killed = !0, this.matrices = null, this.worker.terminate(), this.graph.removeListener("nodeAdded", this.handleGraphUpdate), this.graph.removeListener("edgeAdded", this.handleGraphUpdate), this.graph.removeListener("nodeDropped", this.handleGraphUpdate), this.graph.removeListener("edgeDropped", this.handleGraphUpdate);
10504
10515
  }, br = a, br;
10505
10516
  }
10506
- var Pl = Gl();
10507
- const Il = /* @__PURE__ */ Br(Pl);
10508
- var wr, ui;
10509
- function Fl() {
10510
- if (ui) return wr;
10511
- ui = 1;
10517
+ var Ol = Fl();
10518
+ const zl = /* @__PURE__ */ Br(Ol);
10519
+ var wr, li;
10520
+ function Nl() {
10521
+ if (li) return wr;
10522
+ li = 1;
10512
10523
  var n = 0, r = 1, t = 2, e = 3, i = 4, a = 5, o = 6, s = 7, u = 8, l = 9, c = 0, h = 1, v = 2, y = 0, b = 1, R = 2, w = 3, k = 4, E = 5, m = 6, p = 7, C = 8, L = 3, g = 10, x = 3, S = 9, D = 10;
10513
10524
  return wr = function(I, _, W) {
10514
- var X, T, f, d, U, $, P, A, z, Z, te = _.length, oe = W.length, ne = I.adjustSizes, V = I.barnesHutTheta * I.barnesHutTheta, se, ee, re, J, le, q, B, G = [];
10525
+ var K, T, f, d, U, $, P, A, z, Z, te = _.length, oe = W.length, ne = I.adjustSizes, V = I.barnesHutTheta * I.barnesHutTheta, se, ee, re, J, le, q, B, G = [];
10515
10526
  for (f = 0; f < te; f += g)
10516
10527
  _[f + i] = _[f + t], _[f + a] = _[f + e], _[f + t] = 0, _[f + e] = 0;
10517
10528
  if (I.outboundAttractionDistribution) {
@@ -10520,11 +10531,11 @@ function Fl() {
10520
10531
  se /= te / g;
10521
10532
  }
10522
10533
  if (I.barnesHutOptimize) {
10523
- var ie = 1 / 0, de = -1 / 0, Y = 1 / 0, K = -1 / 0, F, ve, Le;
10534
+ var ie = 1 / 0, de = -1 / 0, Y = 1 / 0, X = -1 / 0, F, ve, Le;
10524
10535
  for (f = 0; f < te; f += g)
10525
- ie = Math.min(ie, _[f + n]), de = Math.max(de, _[f + n]), Y = Math.min(Y, _[f + r]), K = Math.max(K, _[f + r]);
10526
- var ye = de - ie, Re = K - Y;
10527
- for (ye > Re ? (Y -= (ye - Re) / 2, K = Y + ye) : (ie -= (Re - ye) / 2, de = ie + Re), G[0 + y] = -1, G[0 + b] = (ie + de) / 2, G[0 + R] = (Y + K) / 2, G[0 + w] = Math.max(de - ie, K - Y), G[0 + k] = -1, G[0 + E] = -1, G[0 + m] = 0, G[0 + p] = 0, G[0 + C] = 0, X = 1, f = 0; f < te; f += g)
10536
+ ie = Math.min(ie, _[f + n]), de = Math.max(de, _[f + n]), Y = Math.min(Y, _[f + r]), X = Math.max(X, _[f + r]);
10537
+ var ye = de - ie, Re = X - Y;
10538
+ for (ye > Re ? (Y -= (ye - Re) / 2, X = Y + ye) : (ie -= (Re - ye) / 2, de = ie + Re), G[0 + y] = -1, G[0 + b] = (ie + de) / 2, G[0 + R] = (Y + X) / 2, G[0 + w] = Math.max(de - ie, X - Y), G[0 + k] = -1, G[0 + E] = -1, G[0 + m] = 0, G[0 + p] = 0, G[0 + C] = 0, K = 1, f = 0; f < te; f += g)
10528
10539
  for (T = 0, Le = L; ; )
10529
10540
  if (G[T + E] >= 0) {
10530
10541
  _[f + n] < G[T + b] ? _[f + r] < G[T + R] ? F = G[T + E] : F = G[T + E] + S : _[f + r] < G[T + R] ? F = G[T + E] + S * 2 : F = G[T + E] + S * 3, G[T + p] = (G[T + p] * G[T + m] + _[f + n] * _[f + o]) / (G[T + m] + _[f + o]), G[T + C] = (G[T + C] * G[T + m] + _[f + r] * _[f + o]) / (G[T + m] + _[f + o]), G[T + m] += _[f + o], T = F;
@@ -10533,7 +10544,7 @@ function Fl() {
10533
10544
  G[T + y] = f;
10534
10545
  break;
10535
10546
  } else {
10536
- if (G[T + E] = X * S, A = G[T + w] / 2, z = G[T + E], G[z + y] = -1, G[z + b] = G[T + b] - A, G[z + R] = G[T + R] - A, G[z + w] = A, G[z + k] = z + S, G[z + E] = -1, G[z + m] = 0, G[z + p] = 0, G[z + C] = 0, z += S, G[z + y] = -1, G[z + b] = G[T + b] - A, G[z + R] = G[T + R] + A, G[z + w] = A, G[z + k] = z + S, G[z + E] = -1, G[z + m] = 0, G[z + p] = 0, G[z + C] = 0, z += S, G[z + y] = -1, G[z + b] = G[T + b] + A, G[z + R] = G[T + R] - A, G[z + w] = A, G[z + k] = z + S, G[z + E] = -1, G[z + m] = 0, G[z + p] = 0, G[z + C] = 0, z += S, G[z + y] = -1, G[z + b] = G[T + b] + A, G[z + R] = G[T + R] + A, G[z + w] = A, G[z + k] = G[T + k], G[z + E] = -1, G[z + m] = 0, G[z + p] = 0, G[z + C] = 0, X += 4, _[G[T + y] + n] < G[T + b] ? _[G[T + y] + r] < G[T + R] ? F = G[T + E] : F = G[T + E] + S : _[G[T + y] + r] < G[T + R] ? F = G[T + E] + S * 2 : F = G[T + E] + S * 3, G[T + m] = _[G[T + y] + o], G[T + p] = _[G[T + y] + n], G[T + C] = _[G[T + y] + r], G[F + y] = G[T + y], G[T + y] = -1, _[f + n] < G[T + b] ? _[f + r] < G[T + R] ? ve = G[T + E] : ve = G[T + E] + S : _[f + r] < G[T + R] ? ve = G[T + E] + S * 2 : ve = G[T + E] + S * 3, F === ve)
10547
+ if (G[T + E] = K * S, A = G[T + w] / 2, z = G[T + E], G[z + y] = -1, G[z + b] = G[T + b] - A, G[z + R] = G[T + R] - A, G[z + w] = A, G[z + k] = z + S, G[z + E] = -1, G[z + m] = 0, G[z + p] = 0, G[z + C] = 0, z += S, G[z + y] = -1, G[z + b] = G[T + b] - A, G[z + R] = G[T + R] + A, G[z + w] = A, G[z + k] = z + S, G[z + E] = -1, G[z + m] = 0, G[z + p] = 0, G[z + C] = 0, z += S, G[z + y] = -1, G[z + b] = G[T + b] + A, G[z + R] = G[T + R] - A, G[z + w] = A, G[z + k] = z + S, G[z + E] = -1, G[z + m] = 0, G[z + p] = 0, G[z + C] = 0, z += S, G[z + y] = -1, G[z + b] = G[T + b] + A, G[z + R] = G[T + R] + A, G[z + w] = A, G[z + k] = G[T + k], G[z + E] = -1, G[z + m] = 0, G[z + p] = 0, G[z + C] = 0, K += 4, _[G[T + y] + n] < G[T + b] ? _[G[T + y] + r] < G[T + R] ? F = G[T + E] : F = G[T + E] + S : _[G[T + y] + r] < G[T + R] ? F = G[T + E] + S * 2 : F = G[T + E] + S * 3, G[T + m] = _[G[T + y] + o], G[T + p] = _[G[T + y] + n], G[T + C] = _[G[T + y] + r], G[F + y] = G[T + y], G[T + y] = -1, _[f + n] < G[T + b] ? _[f + r] < G[T + R] ? ve = G[T + E] : ve = G[T + E] + S : _[f + r] < G[T + R] ? ve = G[T + E] + S * 2 : ve = G[T + E] + S * 3, F === ve)
10537
10548
  if (Le--) {
10538
10549
  T = F;
10539
10550
  continue;
@@ -10599,11 +10610,11 @@ function Fl() {
10599
10610
  return {};
10600
10611
  }, wr;
10601
10612
  }
10602
- var Er, li;
10603
- function Ol() {
10604
- if (li) return Er;
10605
- li = 1;
10606
- var n = Ze(), r = ca().createEdgeWeightGetter, t = Fl(), e = ha(), i = da();
10613
+ var Er, ci;
10614
+ function Ul() {
10615
+ if (ci) return Er;
10616
+ ci = 1;
10617
+ var n = Ze(), r = ha().createEdgeWeightGetter, t = Nl(), e = da(), i = fa();
10607
10618
  function a(u, l, c) {
10608
10619
  if (!n(l))
10609
10620
  throw new Error(
@@ -10648,9 +10659,9 @@ function Ol() {
10648
10659
  var s = a.bind(null, !1);
10649
10660
  return s.assign = a.bind(null, !0), s.inferSettings = o, Er = s, Er;
10650
10661
  }
10651
- var zl = Ol();
10652
- const Nl = /* @__PURE__ */ Br(zl), bt = 64, ci = /* @__PURE__ */ new Map();
10653
- function Ul(n) {
10662
+ var $l = Ul();
10663
+ const Ml = /* @__PURE__ */ Br($l), bt = 64, hi = /* @__PURE__ */ new Map();
10664
+ function Bl(n) {
10654
10665
  const r = document.createElement("canvas");
10655
10666
  r.width = bt, r.height = bt;
10656
10667
  const t = r.getContext("2d");
@@ -10658,39 +10669,39 @@ function Ul(n) {
10658
10669
  const e = [...n].length, i = Math.floor(bt * (e <= 2 ? 0.78 : e <= 4 ? 0.4 : 0.22));
10659
10670
  return t.font = `${i}px "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif`, t.textAlign = "center", t.textBaseline = "middle", t.fillStyle = "#cdd6e4", t.fillText(n, bt / 2, bt / 2 + 2), r.toDataURL("image/png");
10660
10671
  }
10661
- function $l(n) {
10672
+ function Wl(n) {
10662
10673
  if (n.kind === "url") return n.value;
10663
- let r = ci.get(n.value);
10664
- return r === void 0 && (r = Ul(n.value), ci.set(n.value, r)), r;
10674
+ let r = hi.get(n.value);
10675
+ return r === void 0 && (r = Bl(n.value), hi.set(n.value, r)), r;
10665
10676
  }
10666
- const Ml = 9;
10667
- function Bl(n) {
10668
- return Math.max(n, Ml);
10677
+ const Hl = 9;
10678
+ function jl(n) {
10679
+ return Math.max(n, Hl);
10669
10680
  }
10670
- const fa = 4;
10671
- function Wl(n) {
10672
- return Math.cbrt(Math.max(n, 0)) * fa;
10681
+ const ga = 4;
10682
+ function Vl(n) {
10683
+ return Math.cbrt(Math.max(n, 0)) * ga;
10673
10684
  }
10674
- function Sc(n, r, t, e) {
10685
+ function Cc(n, r, t, e) {
10675
10686
  if (n <= 0) return 0;
10676
10687
  const i = t * Math.PI / 360, a = e / (2 * Math.tan(i));
10677
10688
  return r / n * a;
10678
10689
  }
10679
- function Rc(n) {
10690
+ function xc(n) {
10680
10691
  return Math.pow(n / Mr, 3);
10681
10692
  }
10682
- const Ac = 2 * fa / Mr, kc = 50, Hl = 60;
10683
- function jl(n, r, t) {
10684
- const e = Math.min(n.width, n.height), i = Number.isFinite(t) ? t : r, a = Math.min(Math.max(i, 0), Math.max(r, ga(e))), o = e - 2 * r, s = e - 2 * a;
10693
+ const Dc = 2 * ga / Mr, Lc = 50, ql = 60;
10694
+ function Kl(n, r, t) {
10695
+ const e = Math.min(n.width, n.height), i = Number.isFinite(t) ? t : r, a = Math.min(Math.max(i, 0), Math.max(r, pa(e))), o = e - 2 * r, s = e - 2 * a;
10685
10696
  return o > 0 && s > 0 ? o / s : 1;
10686
10697
  }
10687
- function Cc(n, r, t, e, i) {
10698
+ function Gc(n, r, t, e, i) {
10688
10699
  if (!(t > 0) || !(e > 0)) return 0;
10689
10700
  let a = 0;
10690
10701
  for (const l of n) {
10691
10702
  const { x: c = Number.NaN, y: h = Number.NaN, z: v = Number.NaN } = l;
10692
10703
  if (!Number.isFinite(c) || !Number.isFinite(h) || !Number.isFinite(v)) continue;
10693
- const y = Wl(l.val);
10704
+ const y = Vl(l.val);
10694
10705
  a = Math.max(
10695
10706
  a,
10696
10707
  Math.abs(c) + y,
@@ -10707,32 +10718,32 @@ function Cc(n, r, t, e, i) {
10707
10718
  );
10708
10719
  return Number.isFinite(u) ? u : 0;
10709
10720
  }
10710
- function xc(n, r) {
10721
+ function Pc(n, r) {
10711
10722
  const t = Math.hypot(n.x, n.y, n.z);
10712
10723
  if (!(t > 0)) return { x: 0, y: 0, z: r };
10713
10724
  const e = r / t;
10714
10725
  return { x: n.x * e, y: n.y * e, z: n.z * e };
10715
10726
  }
10716
- function ga(n) {
10727
+ function pa(n) {
10717
10728
  return Math.max(n, 0) * 0.4;
10718
10729
  }
10719
- function Dc(n, r) {
10720
- const t = Number.isFinite(n) ? n : Hl;
10721
- return Math.min(Math.max(t, 0), ga(r));
10730
+ function Ic(n, r) {
10731
+ const t = Number.isFinite(n) ? n : ql;
10732
+ return Math.min(Math.max(t, 0), pa(r));
10722
10733
  }
10723
- function Vl(n, r, t) {
10734
+ function Xl(n, r, t) {
10724
10735
  const e = Number.isFinite(n) ? n : r;
10725
10736
  return Math.max(e, t);
10726
10737
  }
10727
- function ql(n) {
10738
+ function Yl(n) {
10728
10739
  return Rt(n);
10729
10740
  }
10730
- function pa(n, r) {
10731
- if (n < 0) return -pa(-n, r);
10741
+ function va(n, r) {
10742
+ if (n < 0) return -va(-n, r);
10732
10743
  const t = 3.5, e = t * (1 - Math.exp(-r / t)) * rn;
10733
10744
  return r === 0 ? 0 : e * n / r;
10734
10745
  }
10735
- function Xl({
10746
+ function Zl({
10736
10747
  nodes: n,
10737
10748
  edges: r,
10738
10749
  styles: t,
@@ -10747,7 +10758,7 @@ function Xl({
10747
10758
  }, [a]), Qe(() => {
10748
10759
  const b = s.current;
10749
10760
  if (!b) return;
10750
- const R = h.current, w = new Iu(R, b, {
10761
+ const R = h.current, w = new zu(R, b, {
10751
10762
  allowInvalidContainer: !0,
10752
10763
  // Off by default in Sigma v3 - without it clickEdge never fires, breaking edge
10753
10764
  // selection on the canvas and edge hops in the adjacency preview.
@@ -10769,10 +10780,10 @@ function Xl({
10769
10780
  image: tn()
10770
10781
  },
10771
10782
  edgeProgramClasses: {
10772
- line: Yi,
10783
+ line: Zi,
10773
10784
  arrow: Xi,
10774
- curved: _l,
10775
- curvedArrow: Tl
10785
+ curved: Rl,
10786
+ curvedArrow: Al
10776
10787
  }
10777
10788
  });
10778
10789
  u.current = w, w.on("clickNode", ({ node: E }) => v.current({ kind: "node", id: Number(E) })), w.on("clickEdge", ({ edge: E }) => {
@@ -10784,11 +10795,11 @@ function Xl({
10784
10795
  k.disconnect(), l.current?.kill(), l.current = null, w.kill(), u.current = null;
10785
10796
  };
10786
10797
  }, []), Qe(() => {
10787
- const b = h.current, w = Object.keys(n).length + Object.keys(r).length <= Ba, k = /* @__PURE__ */ new Set();
10798
+ const b = h.current, w = Object.keys(n).length + Object.keys(r).length <= ja, k = /* @__PURE__ */ new Set();
10788
10799
  for (const m of Object.values(n)) {
10789
10800
  const p = String(m.id);
10790
10801
  k.add(p);
10791
- const C = t.nodes[m.id], L = C.image ? $l(C.image) : null, g = {
10802
+ const C = t.nodes[m.id], L = C.image ? Wl(C.image) : null, g = {
10792
10803
  label: w && e.showNodeLabels ? m.label ? `${m.label} #${m.id}` : `#${m.id}` : null,
10793
10804
  color: C.color,
10794
10805
  size: C.size,
@@ -10813,7 +10824,7 @@ function Xl({
10813
10824
  E.add(p);
10814
10825
  const g = t.edges[m.id], x = {
10815
10826
  elementId: m.id,
10816
- label: w && e.showEdgeLabels ? vi(m) ?? void 0 : void 0,
10827
+ label: w && e.showEdgeLabels ? mi(m) ?? void 0 : void 0,
10817
10828
  color: g.color,
10818
10829
  size: g.width,
10819
10830
  zIndex: g.zIndex
@@ -10822,33 +10833,33 @@ function Xl({
10822
10833
  }
10823
10834
  for (const m of b.edges())
10824
10835
  E.has(m) || b.dropEdge(m);
10825
- El(b), b.forEachEdge((m, p) => {
10836
+ Sl(b), b.forEachEdge((m, p) => {
10826
10837
  const C = p.parallelIndex, L = p.parallelMaxIndex;
10827
10838
  typeof C == "number" ? b.mergeEdgeAttributes(m, {
10828
10839
  type: e.edgeArrows ? "curvedArrow" : "curved",
10829
- curvature: pa(C, L ?? 1)
10840
+ curvature: va(C, L ?? 1)
10830
10841
  }) : b.mergeEdgeAttributes(m, {
10831
10842
  type: e.edgeArrows ? "arrow" : "line",
10832
10843
  curvature: 0
10833
10844
  });
10834
10845
  }), u.current?.refresh();
10835
- }, [n, r, t, e.showNodeLabels, e.showEdgeLabels, e.edgeArrows]), fi(
10846
+ }, [n, r, t, e.showNodeLabels, e.showEdgeLabels, e.edgeArrows]), gi(
10836
10847
  o,
10837
10848
  () => ({
10838
10849
  fitToView(b, R) {
10839
10850
  const w = u.current;
10840
10851
  if (!w) return;
10841
10852
  w.resize();
10842
- const k = w.getStagePadding(), E = jl(w.getDimensions(), k, R ?? k);
10853
+ const k = w.getStagePadding(), E = Kl(w.getDimensions(), k, R ?? k);
10843
10854
  w.getCamera().animate(
10844
10855
  { x: 0.5, y: 0.5, ratio: E, angle: 0 },
10845
10856
  // Floor of 1: sigma cannot take a zero duration (fitDurationMs says why).
10846
- { duration: Vl(b, Kl, 1) }
10857
+ { duration: Xl(b, Ql, 1) }
10847
10858
  ), w.scheduleRender();
10848
10859
  },
10849
10860
  getCameraRatio: () => u.current?.getCamera().ratio ?? 1,
10850
10861
  setCameraRatio: (b) => {
10851
- ql(b) && u.current?.getCamera().animate({ ratio: b }, { duration: 1 });
10862
+ Yl(b) && u.current?.getCamera().animate({ ratio: b }, { duration: 1 });
10852
10863
  }
10853
10864
  }),
10854
10865
  []
@@ -10887,8 +10898,8 @@ function Xl({
10887
10898
  }
10888
10899
  if (b.order === 0) return;
10889
10900
  if (!l.current) {
10890
- const w = Nl.inferSettings(b);
10891
- l.current = new Il(b, { settings: w });
10901
+ const w = Ml.inferSettings(b);
10902
+ l.current = new zl(b, { settings: w });
10892
10903
  }
10893
10904
  l.current.start();
10894
10905
  const R = window.setTimeout(() => l.current?.stop(), 5e3);
@@ -10905,7 +10916,7 @@ function Xl({
10905
10916
  if (!k || !E)
10906
10917
  b.style.display = "none";
10907
10918
  else {
10908
- const { x: m, y: p } = k.framedGraphToViewport({ x: E.x, y: E.y }), C = Bl(k.scaleSize(E.size));
10919
+ const { x: m, y: p } = k.framedGraphToViewport({ x: E.x, y: E.y }), C = jl(k.scaleSize(E.size));
10909
10920
  b.style.display = "block", b.style.left = `${m}px`, b.style.top = `${p}px`, b.style.setProperty("--eclipse-r", `${C}px`);
10910
10921
  }
10911
10922
  R = requestAnimationFrame(w);
@@ -10913,7 +10924,7 @@ function Xl({
10913
10924
  return R = requestAnimationFrame(w), () => {
10914
10925
  cancelAnimationFrame(R), b.style.display = "none";
10915
10926
  };
10916
- }, [i]), /* @__PURE__ */ va("div", { className: "relative h-full w-full", children: [
10927
+ }, [i]), /* @__PURE__ */ ma("div", { className: "relative h-full w-full", children: [
10917
10928
  /* @__PURE__ */ We(
10918
10929
  "div",
10919
10930
  {
@@ -10927,8 +10938,8 @@ function Xl({
10927
10938
  /* @__PURE__ */ We("div", { ref: c, className: "eclipse-highlight", style: { display: "none" }, "aria-hidden": !0 })
10928
10939
  ] });
10929
10940
  }
10930
- const Kl = 600, Yl = ma(() => import("./Canvas3D-C5og4ZIQ.js").then((n) => ({ default: n.Canvas3D })));
10931
- function Zl({
10941
+ const Ql = 600, Jl = ya(() => import("./Canvas3D-CmDAo5BT.js").then((n) => ({ default: n.Canvas3D })));
10942
+ function ec({
10932
10943
  nodes: n,
10933
10944
  edges: r,
10934
10945
  config: t,
@@ -10950,17 +10961,17 @@ function Zl({
10950
10961
  edgeIds: new Set(i.edgeIds),
10951
10962
  active: !0,
10952
10963
  dim: !1
10953
- } : Wa;
10964
+ } : Va;
10954
10965
  }, [e, i]), c = an(
10955
- () => ao(n, r, l, t),
10966
+ () => uo(n, r, l, t),
10956
10967
  [n, r, l, t]
10957
10968
  );
10958
10969
  return t.renderer === "3d" ? /* @__PURE__ */ We(
10959
- ya,
10970
+ ba,
10960
10971
  {
10961
10972
  fallback: /* @__PURE__ */ We("div", { className: "bg-ink text-fg-faint flex h-full w-full items-center justify-center text-[11px]", children: "loading 3D renderer…" }),
10962
10973
  children: /* @__PURE__ */ We(
10963
- Yl,
10974
+ Jl,
10964
10975
  {
10965
10976
  nodes: n,
10966
10977
  edges: r,
@@ -10973,7 +10984,7 @@ function Zl({
10973
10984
  )
10974
10985
  }
10975
10986
  ) : /* @__PURE__ */ We(
10976
- Xl,
10987
+ Zl,
10977
10988
  {
10978
10989
  nodes: n,
10979
10990
  edges: r,
@@ -10985,7 +10996,7 @@ function Zl({
10985
10996
  }
10986
10997
  );
10987
10998
  }
10988
- function Lc({
10999
+ function Fc({
10989
11000
  nodes: n,
10990
11001
  edges: r,
10991
11002
  config: t = Tr,
@@ -10996,7 +11007,7 @@ function Lc({
10996
11007
  ref: s
10997
11008
  }) {
10998
11009
  const u = Be(null);
10999
- return fi(
11010
+ return gi(
11000
11011
  s,
11001
11012
  () => ({
11002
11013
  fitToView: (l, c) => u.current?.fitToView(l, c),
@@ -11004,8 +11015,8 @@ function Lc({
11004
11015
  setCameraRatio: (l) => u.current?.setCameraRatio(l)
11005
11016
  }),
11006
11017
  []
11007
- ), /* @__PURE__ */ We("div", { className: "f8-studio", style: Oa(o), children: /* @__PURE__ */ We(
11008
- Zl,
11018
+ ), /* @__PURE__ */ We("div", { className: "f8-studio", style: za(o), children: /* @__PURE__ */ We(
11019
+ ec,
11009
11020
  {
11010
11021
  nodes: n,
11011
11022
  edges: r,
@@ -11019,67 +11030,70 @@ function Lc({
11019
11030
  ) });
11020
11031
  }
11021
11032
  export {
11022
- Tc as $,
11023
- sc as A,
11024
- oc as B,
11025
- gc as C,
11033
+ Ma as $,
11034
+ cc as A,
11035
+ lc as B,
11036
+ mc as C,
11026
11037
  Tr as D,
11027
- Xa as E,
11028
- Lc as F,
11038
+ Za as E,
11039
+ Fc as F,
11029
11040
  Sr as G,
11030
11041
  Rr as H,
11031
- Ca as I,
11032
- fc as J,
11033
- vc as K,
11034
- qa as L,
11035
- yc as M,
11042
+ xa as I,
11043
+ vc as J,
11044
+ wc as K,
11045
+ Ya as L,
11046
+ _c as M,
11036
11047
  Mr as N,
11037
- mc as O,
11038
- Ya as P,
11039
- Ua as Q,
11040
- Zl as R,
11041
- Ac as S,
11042
- Aa as T,
11043
- rc as U,
11044
- ic as V,
11045
- ec as W,
11046
- tc as X,
11047
- ka as Y,
11048
- nc as Z,
11049
- _c as _,
11050
- ja as a,
11051
- wc as a0,
11052
- Ec as a1,
11053
- cc as a2,
11054
- bc as a3,
11055
- dc as a4,
11056
- hc as a5,
11057
- za as a6,
11058
- Na as a7,
11059
- Oa as a8,
11060
- Va as b,
11061
- Ha as c,
11062
- Ka as d,
11063
- Cc as e,
11064
- Dc as f,
11048
+ Ec as O,
11049
+ Ja as P,
11050
+ $a as Q,
11051
+ ec as R,
11052
+ Dc as S,
11053
+ ka as T,
11054
+ ac as U,
11055
+ sc as V,
11056
+ nc as W,
11057
+ ic as X,
11058
+ Ca as Y,
11059
+ oc as Z,
11060
+ Ba as _,
11061
+ Ka as a,
11062
+ yc as a0,
11063
+ Ac as a1,
11064
+ kc as a2,
11065
+ Sc as a3,
11066
+ Rc as a4,
11067
+ fc as a5,
11068
+ Tc as a6,
11069
+ pc as a7,
11070
+ gc as a8,
11071
+ Na as a9,
11072
+ Ua as aa,
11073
+ za as ab,
11074
+ Xa as b,
11075
+ qa as c,
11076
+ Qa as d,
11077
+ Gc as e,
11078
+ Ic as f,
11065
11079
  Br as g,
11066
- Hl as h,
11067
- kc as i,
11068
- Vl as j,
11069
- ql as k,
11070
- Rc as l,
11071
- $l as m,
11072
- vi as n,
11073
- Kl as o,
11074
- Bl as p,
11075
- Sc as q,
11076
- gi as r,
11077
- xc as s,
11078
- Ra as t,
11079
- Fa as u,
11080
- lc as v,
11081
- Wl as w,
11082
- pc as x,
11083
- uc as y,
11084
- ac as z
11080
+ ql as h,
11081
+ Lc as i,
11082
+ Xl as j,
11083
+ Yl as k,
11084
+ xc as l,
11085
+ Wl as m,
11086
+ mi as n,
11087
+ Ql as o,
11088
+ jl as p,
11089
+ Cc as q,
11090
+ pi as r,
11091
+ Pc as s,
11092
+ Aa as t,
11093
+ Oa as u,
11094
+ dc as v,
11095
+ Vl as w,
11096
+ bc as x,
11097
+ hc as y,
11098
+ uc as z
11085
11099
  };