@teselagen/ove 0.3.24 → 0.3.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.es.js CHANGED
@@ -1318,14 +1318,14 @@ function orderModifiers(modifiers2) {
1318
1318
  }, []);
1319
1319
  }
1320
1320
  __name(orderModifiers, "orderModifiers");
1321
- function debounce$3(fn3) {
1321
+ function debounce$3(fn4) {
1322
1322
  var pending;
1323
1323
  return function() {
1324
1324
  if (!pending) {
1325
1325
  pending = new Promise(function(resolve) {
1326
1326
  Promise.resolve().then(function() {
1327
1327
  pending = void 0;
1328
- resolve(fn3());
1328
+ resolve(fn4());
1329
1329
  });
1330
1330
  });
1331
1331
  }
@@ -1429,9 +1429,9 @@ function popperGenerator(generatorOptions) {
1429
1429
  index2 = -1;
1430
1430
  continue;
1431
1431
  }
1432
- var _state$orderedModifie = state2.orderedModifiers[index2], fn3 = _state$orderedModifie.fn, _state$orderedModifie2 = _state$orderedModifie.options, _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2, name2 = _state$orderedModifie.name;
1433
- if (typeof fn3 === "function") {
1434
- state2 = fn3({
1432
+ var _state$orderedModifie = state2.orderedModifiers[index2], fn4 = _state$orderedModifie.fn, _state$orderedModifie2 = _state$orderedModifie.options, _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2, name2 = _state$orderedModifie.name;
1433
+ if (typeof fn4 === "function") {
1434
+ state2 = fn4({
1435
1435
  state: state2,
1436
1436
  options: _options,
1437
1437
  name: name2,
@@ -1479,8 +1479,8 @@ function popperGenerator(generatorOptions) {
1479
1479
  }
1480
1480
  __name(runModifierEffects, "runModifierEffects");
1481
1481
  function cleanupModifierEffects() {
1482
- effectCleanupFns.forEach(function(fn3) {
1483
- return fn3();
1482
+ effectCleanupFns.forEach(function(fn4) {
1483
+ return fn4();
1484
1484
  });
1485
1485
  effectCleanupFns = [];
1486
1486
  }
@@ -1522,15 +1522,15 @@ function invokeWithArgsOrReturn(value, args) {
1522
1522
  return typeof value === "function" ? value.apply(void 0, args) : value;
1523
1523
  }
1524
1524
  __name(invokeWithArgsOrReturn, "invokeWithArgsOrReturn");
1525
- function debounce$2(fn3, ms) {
1525
+ function debounce$2(fn4, ms) {
1526
1526
  if (ms === 0) {
1527
- return fn3;
1527
+ return fn4;
1528
1528
  }
1529
1529
  var timeout;
1530
1530
  return function(arg) {
1531
1531
  clearTimeout(timeout);
1532
1532
  timeout = setTimeout(function() {
1533
- fn3(arg);
1533
+ fn4(arg);
1534
1534
  }, ms);
1535
1535
  };
1536
1536
  }
@@ -2362,7 +2362,7 @@ function createTippy(reference2, passedProps) {
2362
2362
  enabled: true,
2363
2363
  phase: "beforeWrite",
2364
2364
  requires: ["computeStyles"],
2365
- fn: /* @__PURE__ */ __name(function fn3(_ref2) {
2365
+ fn: /* @__PURE__ */ __name(function fn4(_ref2) {
2366
2366
  var state3 = _ref2.state;
2367
2367
  if (getIsDefaultRenderFn()) {
2368
2368
  var _getDefaultTemplateCh = getDefaultTemplateChildren(), box2 = _getDefaultTemplateCh.box;
@@ -2736,11 +2736,174 @@ Object.assign({}, applyStyles$1, {
2736
2736
  }
2737
2737
  }, "effect")
2738
2738
  });
2739
+ var mouseCoords = {
2740
+ clientX: 0,
2741
+ clientY: 0
2742
+ };
2743
+ var activeInstances = [];
2744
+ function storeMouseCoords(_ref) {
2745
+ var clientX = _ref.clientX, clientY = _ref.clientY;
2746
+ mouseCoords = {
2747
+ clientX,
2748
+ clientY
2749
+ };
2750
+ }
2751
+ __name(storeMouseCoords, "storeMouseCoords");
2752
+ function addMouseCoordsListener(doc) {
2753
+ doc.addEventListener("mousemove", storeMouseCoords);
2754
+ }
2755
+ __name(addMouseCoordsListener, "addMouseCoordsListener");
2756
+ function removeMouseCoordsListener(doc) {
2757
+ doc.removeEventListener("mousemove", storeMouseCoords);
2758
+ }
2759
+ __name(removeMouseCoordsListener, "removeMouseCoordsListener");
2760
+ var followCursor = {
2761
+ name: "followCursor",
2762
+ defaultValue: false,
2763
+ fn: /* @__PURE__ */ __name(function fn2(instance) {
2764
+ var reference2 = instance.reference;
2765
+ var doc = getOwnerDocument(instance.props.triggerTarget || reference2);
2766
+ var isInternalUpdate = false;
2767
+ var wasFocusEvent = false;
2768
+ var isUnmounted = true;
2769
+ var prevProps = instance.props;
2770
+ function getIsInitialBehavior() {
2771
+ return instance.props.followCursor === "initial" && instance.state.isVisible;
2772
+ }
2773
+ __name(getIsInitialBehavior, "getIsInitialBehavior");
2774
+ function addListener() {
2775
+ doc.addEventListener("mousemove", onMouseMove);
2776
+ }
2777
+ __name(addListener, "addListener");
2778
+ function removeListener() {
2779
+ doc.removeEventListener("mousemove", onMouseMove);
2780
+ }
2781
+ __name(removeListener, "removeListener");
2782
+ function unsetGetReferenceClientRect() {
2783
+ isInternalUpdate = true;
2784
+ instance.setProps({
2785
+ getReferenceClientRect: null
2786
+ });
2787
+ isInternalUpdate = false;
2788
+ }
2789
+ __name(unsetGetReferenceClientRect, "unsetGetReferenceClientRect");
2790
+ function onMouseMove(event) {
2791
+ var isCursorOverReference = event.target ? reference2.contains(event.target) : true;
2792
+ var followCursor2 = instance.props.followCursor;
2793
+ var clientX = event.clientX, clientY = event.clientY;
2794
+ var rect = reference2.getBoundingClientRect();
2795
+ var relativeX = clientX - rect.left;
2796
+ var relativeY = clientY - rect.top;
2797
+ if (isCursorOverReference || !instance.props.interactive) {
2798
+ instance.setProps({
2799
+ // @ts-ignore - unneeded DOMRect properties
2800
+ getReferenceClientRect: /* @__PURE__ */ __name(function getReferenceClientRect() {
2801
+ var rect2 = reference2.getBoundingClientRect();
2802
+ var x = clientX;
2803
+ var y2 = clientY;
2804
+ if (followCursor2 === "initial") {
2805
+ x = rect2.left + relativeX;
2806
+ y2 = rect2.top + relativeY;
2807
+ }
2808
+ var top2 = followCursor2 === "horizontal" ? rect2.top : y2;
2809
+ var right2 = followCursor2 === "vertical" ? rect2.right : x;
2810
+ var bottom2 = followCursor2 === "horizontal" ? rect2.bottom : y2;
2811
+ var left2 = followCursor2 === "vertical" ? rect2.left : x;
2812
+ return {
2813
+ width: right2 - left2,
2814
+ height: bottom2 - top2,
2815
+ top: top2,
2816
+ right: right2,
2817
+ bottom: bottom2,
2818
+ left: left2
2819
+ };
2820
+ }, "getReferenceClientRect")
2821
+ });
2822
+ }
2823
+ }
2824
+ __name(onMouseMove, "onMouseMove");
2825
+ function create7() {
2826
+ if (instance.props.followCursor) {
2827
+ activeInstances.push({
2828
+ instance,
2829
+ doc
2830
+ });
2831
+ addMouseCoordsListener(doc);
2832
+ }
2833
+ }
2834
+ __name(create7, "create");
2835
+ function destroy2() {
2836
+ activeInstances = activeInstances.filter(function(data) {
2837
+ return data.instance !== instance;
2838
+ });
2839
+ if (activeInstances.filter(function(data) {
2840
+ return data.doc === doc;
2841
+ }).length === 0) {
2842
+ removeMouseCoordsListener(doc);
2843
+ }
2844
+ }
2845
+ __name(destroy2, "destroy");
2846
+ return {
2847
+ onCreate: create7,
2848
+ onDestroy: destroy2,
2849
+ onBeforeUpdate: /* @__PURE__ */ __name(function onBeforeUpdate2() {
2850
+ prevProps = instance.props;
2851
+ }, "onBeforeUpdate"),
2852
+ onAfterUpdate: /* @__PURE__ */ __name(function onAfterUpdate2(_2, _ref2) {
2853
+ var followCursor2 = _ref2.followCursor;
2854
+ if (isInternalUpdate) {
2855
+ return;
2856
+ }
2857
+ if (followCursor2 !== void 0 && prevProps.followCursor !== followCursor2) {
2858
+ destroy2();
2859
+ if (followCursor2) {
2860
+ create7();
2861
+ if (instance.state.isMounted && !wasFocusEvent && !getIsInitialBehavior()) {
2862
+ addListener();
2863
+ }
2864
+ } else {
2865
+ removeListener();
2866
+ unsetGetReferenceClientRect();
2867
+ }
2868
+ }
2869
+ }, "onAfterUpdate"),
2870
+ onMount: /* @__PURE__ */ __name(function onMount2() {
2871
+ if (instance.props.followCursor && !wasFocusEvent) {
2872
+ if (isUnmounted) {
2873
+ onMouseMove(mouseCoords);
2874
+ isUnmounted = false;
2875
+ }
2876
+ if (!getIsInitialBehavior()) {
2877
+ addListener();
2878
+ }
2879
+ }
2880
+ }, "onMount"),
2881
+ onTrigger: /* @__PURE__ */ __name(function onTrigger2(_2, event) {
2882
+ if (isMouseEvent$1(event)) {
2883
+ mouseCoords = {
2884
+ clientX: event.clientX,
2885
+ clientY: event.clientY
2886
+ };
2887
+ }
2888
+ wasFocusEvent = event.type === "focus";
2889
+ }, "onTrigger"),
2890
+ onHidden: /* @__PURE__ */ __name(function onHidden2() {
2891
+ if (instance.props.followCursor) {
2892
+ unsetGetReferenceClientRect();
2893
+ removeListener();
2894
+ isUnmounted = true;
2895
+ }
2896
+ }, "onHidden")
2897
+ };
2898
+ }, "fn")
2899
+ };
2739
2900
  tippy$1.setDefaultProps({
2740
2901
  render: render$1
2741
2902
  });
2742
2903
  const tippy = "";
2743
2904
  let tippys = [];
2905
+ let recentlyHidden = false;
2906
+ let clearMe;
2744
2907
  (function() {
2745
2908
  let lastMouseOverElement = null;
2746
2909
  document.addEventListener("mouseover", function(event) {
@@ -2761,21 +2924,63 @@ let tippys = [];
2761
2924
  lastMouseOverElement = element2;
2762
2925
  const id2 = "tippyEllipsizedEl";
2763
2926
  let innerRun = false;
2764
- const inner2 = /* @__PURE__ */ __name((content2, el2) => {
2927
+ const inner2 = /* @__PURE__ */ __name((content2, el2, { dataTitle, dataAvoid, dataAvoidBackup }) => {
2928
+ var _a3, _b3;
2765
2929
  innerRun = true;
2766
2930
  document.querySelectorAll(`.${id2}`).forEach((elem) => {
2767
2931
  elem.classList.remove(id2);
2768
2932
  });
2769
2933
  el2.classList.add(id2);
2770
- const inst = tippy$1(`.${id2}`, {
2934
+ const inst = tippy$1(`.${id2}`, __spreadValues(__spreadProps(__spreadValues({
2935
+ plugins: [followCursor],
2771
2936
  content: content2,
2772
- delay: [0, 0],
2937
+ delay: dataTitle && !recentlyHidden ? [1300, 1300] : dataTitle ? [150, 150] : [0, 0],
2773
2938
  allowHTML: true
2774
- });
2939
+ }, dataTitle && {
2940
+ followCursor: dataTitle ? "initial" : false
2941
+ }), {
2942
+ onHidden() {
2943
+ recentlyHidden = true;
2944
+ clearMe && clearTimeout(clearMe);
2945
+ clearMe = setTimeout(() => {
2946
+ if (tippys.length === 0)
2947
+ recentlyHidden = false;
2948
+ }, 700);
2949
+ }
2950
+ }), dataAvoid && {
2951
+ popperOptions: {
2952
+ modifiers: [
2953
+ {
2954
+ name: "myModifier",
2955
+ enabled: true,
2956
+ phase: "beforeWrite",
2957
+ requires: ["computeStyles"],
2958
+ requiresIfExists: ["offset"],
2959
+ fn({ state: state2 }) {
2960
+ const customBoundary = document.querySelector(dataAvoid) || document.querySelector(dataAvoidBackup);
2961
+ if (!customBoundary)
2962
+ return;
2963
+ const a2 = customBoundary.getBoundingClientRect();
2964
+ if (a2.top < state2.rects.reference.y) {
2965
+ const b3 = Math.abs(
2966
+ Math.abs(a2.top - state2.rects.reference.y) - 10
2967
+ );
2968
+ state2.styles.popper.bottom = b3 + "px";
2969
+ }
2970
+ }
2971
+ }
2972
+ ]
2973
+ }
2974
+ }));
2975
+ if (dataTitle) {
2976
+ (_b3 = (_a3 = inst[0]) == null ? void 0 : _a3.popper) == null ? void 0 : _b3.classList.add("isDataTitle");
2977
+ }
2775
2978
  clearOldTippys(...inst);
2776
- inst.forEach((i) => {
2777
- i.show();
2778
- });
2979
+ if (!dataTitle) {
2980
+ inst.forEach((i) => {
2981
+ i.show();
2982
+ });
2983
+ }
2779
2984
  tippys = [...tippys, ...inst];
2780
2985
  if (content2 === el2.getAttribute("title")) {
2781
2986
  el2.removeAttribute("title");
@@ -2790,14 +2995,22 @@ let tippys = [];
2790
2995
  const style2 = window.getComputedStyle(el);
2791
2996
  const whiteSpace = style2.getPropertyValue("white-space");
2792
2997
  const textOverflow = style2.getPropertyValue("text-overflow");
2793
- dataTip = el.getAttribute("data-tip");
2998
+ const dataTitle = el.getAttribute("data-title");
2999
+ const dataAvoid = el.getAttribute("data-avoid");
3000
+ const dataAvoidBackup = el.getAttribute("data-avoid-backup");
3001
+ dataTip = el.getAttribute("data-tip") || dataTitle;
2794
3002
  const isEllipsized = whiteSpace === "nowrap" && textOverflow === "ellipsis";
3003
+ const opts2 = {
3004
+ dataTitle,
3005
+ dataAvoid,
3006
+ dataAvoidBackup
3007
+ };
2795
3008
  if (dataTip) {
2796
- inner2(dataTip, el);
3009
+ inner2(dataTip, el, opts2);
2797
3010
  break;
2798
3011
  } else if (isEllipsized && el.offsetWidth < el.scrollWidth - 4 && //the -4 is adding a teeny bit of tolerance to fix issues with the column headers getting tooltips even when fully visible
2799
3012
  !el.classList.contains("no-data-tip") && el.textContent && ((_b2 = (_a2 = el.textContent) == null ? void 0 : _a2.trim) == null ? void 0 : _b2.call(_a2).length) !== 0) {
2800
- inner2(el.textContent, el);
3013
+ inner2(el.textContent, el, opts2);
2801
3014
  break;
2802
3015
  } else if (isEllipsized && el.offsetWidth >= el.scrollWidth)
2803
3016
  ;
@@ -2861,13 +3074,13 @@ function getAugmentedNamespace(n2) {
2861
3074
  }
2862
3075
  __name(getAugmentedNamespace, "getAugmentedNamespace");
2863
3076
  var axios$3 = { exports: {} };
2864
- var bind$5 = /* @__PURE__ */ __name(function bind(fn3, thisArg) {
3077
+ var bind$5 = /* @__PURE__ */ __name(function bind(fn4, thisArg) {
2865
3078
  return /* @__PURE__ */ __name(function wrap2() {
2866
3079
  var args = new Array(arguments.length);
2867
3080
  for (var i = 0; i < args.length; i++) {
2868
3081
  args[i] = arguments[i];
2869
3082
  }
2870
- return fn3.apply(thisArg, args);
3083
+ return fn4.apply(thisArg, args);
2871
3084
  }, "wrap");
2872
3085
  }, "bind");
2873
3086
  var bind$4 = bind$5;
@@ -2957,7 +3170,7 @@ function isStandardBrowserEnv() {
2957
3170
  return typeof window !== "undefined" && typeof document !== "undefined";
2958
3171
  }
2959
3172
  __name(isStandardBrowserEnv, "isStandardBrowserEnv");
2960
- function forEach$5(obj, fn3) {
3173
+ function forEach$5(obj, fn4) {
2961
3174
  if (obj === null || typeof obj === "undefined") {
2962
3175
  return;
2963
3176
  }
@@ -2966,12 +3179,12 @@ function forEach$5(obj, fn3) {
2966
3179
  }
2967
3180
  if (isArray$r(obj)) {
2968
3181
  for (var i = 0, l2 = obj.length; i < l2; i++) {
2969
- fn3.call(null, obj[i], i, obj);
3182
+ fn4.call(null, obj[i], i, obj);
2970
3183
  }
2971
3184
  } else {
2972
3185
  for (var key in obj) {
2973
3186
  if (Object.prototype.hasOwnProperty.call(obj, key)) {
2974
- fn3.call(null, obj[key], key, obj);
3187
+ fn4.call(null, obj[key], key, obj);
2975
3188
  }
2976
3189
  }
2977
3190
  }
@@ -3103,10 +3316,10 @@ InterceptorManager$1.prototype.eject = /* @__PURE__ */ __name(function eject(id2
3103
3316
  this.handlers[id2] = null;
3104
3317
  }
3105
3318
  }, "eject");
3106
- InterceptorManager$1.prototype.forEach = /* @__PURE__ */ __name(function forEach(fn3) {
3319
+ InterceptorManager$1.prototype.forEach = /* @__PURE__ */ __name(function forEach(fn4) {
3107
3320
  utils$e.forEach(this.handlers, /* @__PURE__ */ __name(function forEachHandler(h2) {
3108
3321
  if (h2 !== null) {
3109
- fn3(h2);
3322
+ fn4(h2);
3110
3323
  }
3111
3324
  }, "forEachHandler"));
3112
3325
  }, "forEach");
@@ -3627,8 +3840,8 @@ var utils$b = utils$g;
3627
3840
  var defaults$5 = defaults_1;
3628
3841
  var transformData$1 = /* @__PURE__ */ __name(function transformData(data, headers, fns) {
3629
3842
  var context = this || defaults$5;
3630
- utils$b.forEach(fns, /* @__PURE__ */ __name(function transform3(fn3) {
3631
- data = fn3.call(context, data, headers);
3843
+ utils$b.forEach(fns, /* @__PURE__ */ __name(function transform3(fn4) {
3844
+ data = fn4.call(context, data, headers);
3632
3845
  }, "transform"));
3633
3846
  return data;
3634
3847
  }, "transformData");
@@ -4921,9 +5134,9 @@ function composeEventHandlers() {
4921
5134
  for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
4922
5135
  args[_key2 - 1] = arguments[_key2];
4923
5136
  }
4924
- return fns.some(function(fn3) {
4925
- if (!isPropagationStopped(event) && fn3) {
4926
- fn3.apply(void 0, [event].concat(args));
5137
+ return fns.some(function(fn4) {
5138
+ if (!isPropagationStopped(event) && fn4) {
5139
+ fn4.apply(void 0, [event].concat(args));
4927
5140
  }
4928
5141
  return isPropagationStopped(event);
4929
5142
  });
@@ -5540,14 +5753,14 @@ function useDropzone() {
5540
5753
  openFileDialog();
5541
5754
  }
5542
5755
  }, [inputRef, noClick, openFileDialog]);
5543
- var composeHandler = /* @__PURE__ */ __name(function composeHandler2(fn3) {
5544
- return disabled ? null : fn3;
5756
+ var composeHandler = /* @__PURE__ */ __name(function composeHandler2(fn4) {
5757
+ return disabled ? null : fn4;
5545
5758
  }, "composeHandler");
5546
- var composeKeyboardHandler = /* @__PURE__ */ __name(function composeKeyboardHandler2(fn3) {
5547
- return noKeyboard ? null : composeHandler(fn3);
5759
+ var composeKeyboardHandler = /* @__PURE__ */ __name(function composeKeyboardHandler2(fn4) {
5760
+ return noKeyboard ? null : composeHandler(fn4);
5548
5761
  }, "composeKeyboardHandler");
5549
- var composeDragHandler = /* @__PURE__ */ __name(function composeDragHandler2(fn3) {
5550
- return noDrag ? null : composeHandler(fn3);
5762
+ var composeDragHandler = /* @__PURE__ */ __name(function composeDragHandler2(fn4) {
5763
+ return noDrag ? null : composeHandler(fn4);
5551
5764
  }, "composeDragHandler");
5552
5765
  var stopPropagation2 = /* @__PURE__ */ __name(function stopPropagation3(event) {
5553
5766
  if (noDragEventsBubbling) {
@@ -6489,8 +6702,8 @@ function once(func) {
6489
6702
  __name(once, "once");
6490
6703
  var noop$5 = /* @__PURE__ */ __name(function noop() {
6491
6704
  }, "noop");
6492
- function isFunction$7(fn3) {
6493
- return typeof fn3 === "function";
6705
+ function isFunction$7(fn4) {
6706
+ return typeof fn4 === "function";
6494
6707
  }
6495
6708
  __name(isFunction$7, "isFunction$7");
6496
6709
  function isStringish(value) {
@@ -6586,10 +6799,10 @@ var ownKeys$7 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownK
6586
6799
  /* istanbul ignore next */
6587
6800
  Object.getOwnPropertyNames
6588
6801
  );
6589
- function toPrimitive$3(value) {
6802
+ function toPrimitive$2(value) {
6590
6803
  return value === null ? null : typeof value === "object" ? "" + value : value;
6591
6804
  }
6592
- __name(toPrimitive$3, "toPrimitive$3");
6805
+ __name(toPrimitive$2, "toPrimitive$2");
6593
6806
  function hasProp(target, prop2) {
6594
6807
  return objectPrototype$1.hasOwnProperty.call(target, prop2);
6595
6808
  }
@@ -7296,12 +7509,12 @@ var tmpNameDescriptor = {
7296
7509
  writable: false,
7297
7510
  enumerable: false
7298
7511
  };
7299
- function createAction$1(actionName, fn3, autoAction2, ref) {
7512
+ function createAction$1(actionName, fn4, autoAction2, ref) {
7300
7513
  if (autoAction2 === void 0) {
7301
7514
  autoAction2 = false;
7302
7515
  }
7303
7516
  function res() {
7304
- return executeAction(actionName, autoAction2, fn3, ref || this, arguments);
7517
+ return executeAction(actionName, autoAction2, fn4, ref || this, arguments);
7305
7518
  }
7306
7519
  __name(res, "res");
7307
7520
  res.isMobxAction = true;
@@ -7312,10 +7525,10 @@ function createAction$1(actionName, fn3, autoAction2, ref) {
7312
7525
  return res;
7313
7526
  }
7314
7527
  __name(createAction$1, "createAction$1");
7315
- function executeAction(actionName, canRunAsDerivation, fn3, scope, args) {
7528
+ function executeAction(actionName, canRunAsDerivation, fn4, scope, args) {
7316
7529
  var runInfo = _startAction(actionName, canRunAsDerivation);
7317
7530
  try {
7318
- return fn3.apply(scope, args);
7531
+ return fn4.apply(scope, args);
7319
7532
  } catch (err2) {
7320
7533
  runInfo.error_ = err2;
7321
7534
  throw err2;
@@ -7486,7 +7699,7 @@ var ObservableValue = /* @__PURE__ */ function(_Atom) {
7486
7699
  return this.name_ + "[" + this.value_ + "]";
7487
7700
  }, "toString");
7488
7701
  _proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
7489
- return toPrimitive$3(this.get());
7702
+ return toPrimitive$2(this.get());
7490
7703
  }, "valueOf");
7491
7704
  _proto[_Symbol$toPrimitive] = function() {
7492
7705
  return this.valueOf();
@@ -7671,7 +7884,7 @@ var ComputedValue = /* @__PURE__ */ function() {
7671
7884
  return this.name_ + "[" + this.derivation.toString() + "]";
7672
7885
  }, "toString");
7673
7886
  _proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
7674
- return toPrimitive$3(this.get());
7887
+ return toPrimitive$2(this.get());
7675
7888
  }, "valueOf");
7676
7889
  _proto[_Symbol$toPrimitive$1] = function() {
7677
7890
  return this.valueOf();
@@ -8100,7 +8313,7 @@ var Reaction = /* @__PURE__ */ function() {
8100
8313
  endBatch();
8101
8314
  }
8102
8315
  }, "runReaction_");
8103
- _proto.track = /* @__PURE__ */ __name(function track2(fn3) {
8316
+ _proto.track = /* @__PURE__ */ __name(function track2(fn4) {
8104
8317
  if (this.isDisposed_) {
8105
8318
  return;
8106
8319
  }
@@ -8108,7 +8321,7 @@ var Reaction = /* @__PURE__ */ function() {
8108
8321
  this.isRunning_ = true;
8109
8322
  var prevReaction = globalState.trackingContext;
8110
8323
  globalState.trackingContext = this;
8111
- var result = trackDerivedFunction(this, fn3, void 0);
8324
+ var result = trackDerivedFunction(this, fn4, void 0);
8112
8325
  globalState.trackingContext = prevReaction;
8113
8326
  this.isRunning_ = false;
8114
8327
  this.isTrackPending_ = false;
@@ -8193,10 +8406,10 @@ function runReactionsHelper() {
8193
8406
  }
8194
8407
  __name(runReactionsHelper, "runReactionsHelper");
8195
8408
  var isReaction = /* @__PURE__ */ createInstanceofPredicate("Reaction", Reaction);
8196
- function setReactionScheduler(fn3) {
8409
+ function setReactionScheduler(fn4) {
8197
8410
  var baseScheduler = reactionScheduler;
8198
8411
  reactionScheduler = /* @__PURE__ */ __name(function reactionScheduler3(f2) {
8199
- return fn3(function() {
8412
+ return fn4(function() {
8200
8413
  return baseScheduler(f2);
8201
8414
  });
8202
8415
  }, "reactionScheduler");
@@ -8507,8 +8720,8 @@ function cancelPromise(promise) {
8507
8720
  }
8508
8721
  }
8509
8722
  __name(cancelPromise, "cancelPromise");
8510
- function isFlow(fn3) {
8511
- return (fn3 == null ? void 0 : fn3.isMobXFlow) === true;
8723
+ function isFlow(fn4) {
8724
+ return (fn4 == null ? void 0 : fn4.isMobXFlow) === true;
8512
8725
  }
8513
8726
  __name(isFlow, "isFlow");
8514
8727
  function _isObservable(value, property2) {
@@ -10191,9 +10404,9 @@ var LegacyObservableArray = /* @__PURE__ */ function(_StubArray, _Symbol$toStrin
10191
10404
  return LegacyObservableArray2;
10192
10405
  }(StubArray, Symbol.toStringTag, Symbol.iterator);
10193
10406
  Object.entries(arrayExtensions).forEach(function(_ref) {
10194
- var prop2 = _ref[0], fn3 = _ref[1];
10407
+ var prop2 = _ref[0], fn4 = _ref[1];
10195
10408
  if (prop2 !== "concat") {
10196
- addHiddenProp(LegacyObservableArray.prototype, prop2, fn3);
10409
+ addHiddenProp(LegacyObservableArray.prototype, prop2, fn4);
10197
10410
  }
10198
10411
  });
10199
10412
  function createArrayEntryDescriptor(index2) {
@@ -10842,13 +11055,13 @@ function wrapper(realMethod, mixins) {
10842
11055
  }
10843
11056
  __name(wrapper, "wrapper");
10844
11057
  function wrapFunction(realMethod, mixins) {
10845
- var fn3 = /* @__PURE__ */ __name(function fn4() {
11058
+ var fn4 = /* @__PURE__ */ __name(function fn5() {
10846
11059
  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
10847
11060
  args[_key2] = arguments[_key2];
10848
11061
  }
10849
11062
  wrapper.call.apply(wrapper, [this, realMethod, mixins].concat(args));
10850
11063
  }, "fn");
10851
- return fn3;
11064
+ return fn4;
10852
11065
  }
10853
11066
  __name(wrapFunction, "wrapFunction");
10854
11067
  function patch$2(target, methodName, mixinMethod) {
@@ -11529,12 +11742,12 @@ var un = function() {
11529
11742
  return o2(n3, t2);
11530
11743
  });
11531
11744
  }, e2;
11532
- }(), an = new un(), fn2 = an.produce, cn = an.produceWithPatches.bind(an), sn = an.setAutoFreeze.bind(an);
11745
+ }(), an = new un(), fn3 = an.produce, cn = an.produceWithPatches.bind(an), sn = an.setAutoFreeze.bind(an);
11533
11746
  an.setUseProxies.bind(an);
11534
11747
  var pn = an.applyPatches.bind(an);
11535
11748
  an.createDraft.bind(an);
11536
11749
  an.finishDraft.bind(an);
11537
- const immer = fn2;
11750
+ const immer = fn3;
11538
11751
  const UploadCsvWizard = "";
11539
11752
  var lodash = { exports: {} };
11540
11753
  /**
@@ -12305,7 +12518,7 @@ lodash.exports;
12305
12518
  "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
12306
12519
  );
12307
12520
  var Buffer2 = moduleExports2 ? context.Buffer : undefined$12, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe2 = Buffer2 ? Buffer2.allocUnsafe : undefined$12, getPrototype2 = overArg2(Object2.getPrototypeOf, Object2), objectCreate2 = Object2.create, propertyIsEnumerable3 = objectProto2.propertyIsEnumerable, splice3 = arrayProto2.splice, spreadableSymbol2 = Symbol2 ? Symbol2.isConcatSpreadable : undefined$12, symIterator = Symbol2 ? Symbol2.iterator : undefined$12, symToStringTag2 = Symbol2 ? Symbol2.toStringTag : undefined$12;
12308
- var defineProperty6 = function() {
12521
+ var defineProperty5 = function() {
12309
12522
  try {
12310
12523
  var func = getNative2(Object2, "defineProperty");
12311
12524
  func({}, "", {});
@@ -12745,8 +12958,8 @@ lodash.exports;
12745
12958
  }
12746
12959
  __name(baseAssignIn2, "baseAssignIn");
12747
12960
  function baseAssignValue2(object3, key, value) {
12748
- if (key == "__proto__" && defineProperty6) {
12749
- defineProperty6(object3, key, {
12961
+ if (key == "__proto__" && defineProperty5) {
12962
+ defineProperty5(object3, key, {
12750
12963
  "configurable": true,
12751
12964
  "enumerable": true,
12752
12965
  "value": value,
@@ -13479,8 +13692,8 @@ lodash.exports;
13479
13692
  metaMap.set(func, data);
13480
13693
  return func;
13481
13694
  };
13482
- var baseSetToString2 = !defineProperty6 ? identity4 : function(func, string2) {
13483
- return defineProperty6(func, "toString", {
13695
+ var baseSetToString2 = !defineProperty5 ? identity4 : function(func, string2) {
13696
+ return defineProperty5(func, "toString", {
13484
13697
  "configurable": true,
13485
13698
  "enumerable": false,
13486
13699
  "value": constant2(string2),
@@ -13913,8 +14126,8 @@ lodash.exports;
13913
14126
  function createBind(func, bitmask, thisArg) {
13914
14127
  var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
13915
14128
  function wrapper2() {
13916
- var fn3 = this && this !== root2 && this instanceof wrapper2 ? Ctor : func;
13917
- return fn3.apply(isBind ? thisArg : this, arguments);
14129
+ var fn4 = this && this !== root2 && this instanceof wrapper2 ? Ctor : func;
14130
+ return fn4.apply(isBind ? thisArg : this, arguments);
13918
14131
  }
13919
14132
  __name(wrapper2, "wrapper");
13920
14133
  return wrapper2;
@@ -13985,8 +14198,8 @@ lodash.exports;
13985
14198
  arity - length
13986
14199
  );
13987
14200
  }
13988
- var fn3 = this && this !== root2 && this instanceof wrapper2 ? Ctor : func;
13989
- return apply2(fn3, this, args);
14201
+ var fn4 = this && this !== root2 && this instanceof wrapper2 ? Ctor : func;
14202
+ return apply2(fn4, this, args);
13990
14203
  }
13991
14204
  __name(wrapper2, "wrapper");
13992
14205
  return wrapper2;
@@ -14078,7 +14291,7 @@ lodash.exports;
14078
14291
  arity - length
14079
14292
  );
14080
14293
  }
14081
- var thisBinding = isBind ? thisArg : this, fn3 = isBindKey ? thisBinding[func] : func;
14294
+ var thisBinding = isBind ? thisArg : this, fn4 = isBindKey ? thisBinding[func] : func;
14082
14295
  length = args.length;
14083
14296
  if (argPos) {
14084
14297
  args = reorder2(args, argPos);
@@ -14089,9 +14302,9 @@ lodash.exports;
14089
14302
  args.length = ary2;
14090
14303
  }
14091
14304
  if (this && this !== root2 && this instanceof wrapper2) {
14092
- fn3 = Ctor || createCtor(fn3);
14305
+ fn4 = Ctor || createCtor(fn4);
14093
14306
  }
14094
- return fn3.apply(thisBinding, args);
14307
+ return fn4.apply(thisBinding, args);
14095
14308
  }
14096
14309
  __name(wrapper2, "wrapper");
14097
14310
  return wrapper2;
@@ -14154,14 +14367,14 @@ lodash.exports;
14154
14367
  function createPartial(func, bitmask, thisArg, partials) {
14155
14368
  var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
14156
14369
  function wrapper2() {
14157
- var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn3 = this && this !== root2 && this instanceof wrapper2 ? Ctor : func;
14370
+ var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn4 = this && this !== root2 && this instanceof wrapper2 ? Ctor : func;
14158
14371
  while (++leftIndex < leftLength) {
14159
14372
  args[leftIndex] = partials[leftIndex];
14160
14373
  }
14161
14374
  while (argsLength--) {
14162
14375
  args[leftIndex++] = arguments[++argsIndex];
14163
14376
  }
14164
- return apply2(fn3, isBind ? thisArg : this, args);
14377
+ return apply2(fn4, isBind ? thisArg : this, args);
14165
14378
  }
14166
14379
  __name(wrapper2, "wrapper");
14167
14380
  return wrapper2;
@@ -17966,26 +18179,26 @@ var _aFunction = /* @__PURE__ */ __name(function(it) {
17966
18179
  return it;
17967
18180
  }, "_aFunction");
17968
18181
  var aFunction = _aFunction;
17969
- var _ctx = /* @__PURE__ */ __name(function(fn3, that, length) {
17970
- aFunction(fn3);
18182
+ var _ctx = /* @__PURE__ */ __name(function(fn4, that, length) {
18183
+ aFunction(fn4);
17971
18184
  if (that === void 0)
17972
- return fn3;
18185
+ return fn4;
17973
18186
  switch (length) {
17974
18187
  case 1:
17975
18188
  return function(a2) {
17976
- return fn3.call(that, a2);
18189
+ return fn4.call(that, a2);
17977
18190
  };
17978
18191
  case 2:
17979
18192
  return function(a2, b3) {
17980
- return fn3.call(that, a2, b3);
18193
+ return fn4.call(that, a2, b3);
17981
18194
  };
17982
18195
  case 3:
17983
18196
  return function(a2, b3, c2) {
17984
- return fn3.call(that, a2, b3, c2);
18197
+ return fn4.call(that, a2, b3, c2);
17985
18198
  };
17986
18199
  }
17987
18200
  return function() {
17988
- return fn3.apply(that, arguments);
18201
+ return fn4.apply(that, arguments);
17989
18202
  };
17990
18203
  }, "_ctx");
17991
18204
  var _objectDp = {};
@@ -18005,11 +18218,20 @@ var _fails = /* @__PURE__ */ __name(function(exec) {
18005
18218
  return true;
18006
18219
  }
18007
18220
  }, "_fails");
18008
- var _descriptors = !_fails(function() {
18009
- return Object.defineProperty({}, "a", { get: function() {
18010
- return 7;
18011
- } }).a != 7;
18012
- });
18221
+ var _descriptors;
18222
+ var hasRequired_descriptors;
18223
+ function require_descriptors() {
18224
+ if (hasRequired_descriptors)
18225
+ return _descriptors;
18226
+ hasRequired_descriptors = 1;
18227
+ _descriptors = !_fails(function() {
18228
+ return Object.defineProperty({}, "a", { get: function() {
18229
+ return 7;
18230
+ } }).a != 7;
18231
+ });
18232
+ return _descriptors;
18233
+ }
18234
+ __name(require_descriptors, "require_descriptors");
18013
18235
  var _domCreate;
18014
18236
  var hasRequired_domCreate;
18015
18237
  function require_domCreate() {
@@ -18025,43 +18247,60 @@ function require_domCreate() {
18025
18247
  return _domCreate;
18026
18248
  }
18027
18249
  __name(require_domCreate, "require_domCreate");
18028
- var _ie8DomDefine = !_descriptors && !_fails(function() {
18029
- return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
18030
- return 7;
18031
- } }).a != 7;
18032
- });
18250
+ var _ie8DomDefine;
18251
+ var hasRequired_ie8DomDefine;
18252
+ function require_ie8DomDefine() {
18253
+ if (hasRequired_ie8DomDefine)
18254
+ return _ie8DomDefine;
18255
+ hasRequired_ie8DomDefine = 1;
18256
+ _ie8DomDefine = !require_descriptors() && !_fails(function() {
18257
+ return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
18258
+ return 7;
18259
+ } }).a != 7;
18260
+ });
18261
+ return _ie8DomDefine;
18262
+ }
18263
+ __name(require_ie8DomDefine, "require_ie8DomDefine");
18033
18264
  var isObject$d = _isObject;
18034
18265
  var _toPrimitive$1 = /* @__PURE__ */ __name(function(it, S2) {
18035
18266
  if (!isObject$d(it))
18036
18267
  return it;
18037
- var fn3, val2;
18038
- if (S2 && typeof (fn3 = it.toString) == "function" && !isObject$d(val2 = fn3.call(it)))
18268
+ var fn4, val2;
18269
+ if (S2 && typeof (fn4 = it.toString) == "function" && !isObject$d(val2 = fn4.call(it)))
18039
18270
  return val2;
18040
- if (typeof (fn3 = it.valueOf) == "function" && !isObject$d(val2 = fn3.call(it)))
18271
+ if (typeof (fn4 = it.valueOf) == "function" && !isObject$d(val2 = fn4.call(it)))
18041
18272
  return val2;
18042
- if (!S2 && typeof (fn3 = it.toString) == "function" && !isObject$d(val2 = fn3.call(it)))
18273
+ if (!S2 && typeof (fn4 = it.toString) == "function" && !isObject$d(val2 = fn4.call(it)))
18043
18274
  return val2;
18044
18275
  throw TypeError("Can't convert object to primitive value");
18045
18276
  }, "_toPrimitive$1");
18046
- var anObject$5 = _anObject;
18047
- var IE8_DOM_DEFINE$1 = _ie8DomDefine;
18048
- var toPrimitive$2 = _toPrimitive$1;
18049
- var dP$3 = Object.defineProperty;
18050
- _objectDp.f = _descriptors ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty2(O2, P2, Attributes) {
18051
- anObject$5(O2);
18052
- P2 = toPrimitive$2(P2, true);
18053
- anObject$5(Attributes);
18054
- if (IE8_DOM_DEFINE$1)
18055
- try {
18056
- return dP$3(O2, P2, Attributes);
18057
- } catch (e2) {
18058
- }
18059
- if ("get" in Attributes || "set" in Attributes)
18060
- throw TypeError("Accessors not supported!");
18061
- if ("value" in Attributes)
18062
- O2[P2] = Attributes.value;
18063
- return O2;
18064
- }, "defineProperty");
18277
+ var hasRequired_objectDp;
18278
+ function require_objectDp() {
18279
+ if (hasRequired_objectDp)
18280
+ return _objectDp;
18281
+ hasRequired_objectDp = 1;
18282
+ var anObject2 = _anObject;
18283
+ var IE8_DOM_DEFINE2 = require_ie8DomDefine();
18284
+ var toPrimitive2 = _toPrimitive$1;
18285
+ var dP2 = Object.defineProperty;
18286
+ _objectDp.f = require_descriptors() ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty5(O2, P2, Attributes) {
18287
+ anObject2(O2);
18288
+ P2 = toPrimitive2(P2, true);
18289
+ anObject2(Attributes);
18290
+ if (IE8_DOM_DEFINE2)
18291
+ try {
18292
+ return dP2(O2, P2, Attributes);
18293
+ } catch (e2) {
18294
+ }
18295
+ if ("get" in Attributes || "set" in Attributes)
18296
+ throw TypeError("Accessors not supported!");
18297
+ if ("value" in Attributes)
18298
+ O2[P2] = Attributes.value;
18299
+ return O2;
18300
+ }, "defineProperty");
18301
+ return _objectDp;
18302
+ }
18303
+ __name(require_objectDp, "require_objectDp");
18065
18304
  var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
18066
18305
  return {
18067
18306
  enumerable: !(bitmap & 1),
@@ -18070,9 +18309,9 @@ var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
18070
18309
  value
18071
18310
  };
18072
18311
  }, "_propertyDesc");
18073
- var dP$2 = _objectDp;
18312
+ var dP$2 = require_objectDp();
18074
18313
  var createDesc$3 = _propertyDesc;
18075
- var _hide = _descriptors ? function(object3, key, value) {
18314
+ var _hide = require_descriptors() ? function(object3, key, value) {
18076
18315
  return dP$2.f(object3, key, createDesc$3(1, value));
18077
18316
  } : function(object3, key, value) {
18078
18317
  object3[key] = value;
@@ -18242,23 +18481,15 @@ var _objectKeysInternal = /* @__PURE__ */ __name(function(object3, names2) {
18242
18481
  return result;
18243
18482
  }, "_objectKeysInternal");
18244
18483
  var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
18245
- var $keys$2 = _objectKeysInternal;
18484
+ var $keys$3 = _objectKeysInternal;
18246
18485
  var enumBugKeys$1 = _enumBugKeys;
18247
18486
  var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
18248
- return $keys$2(O2, enumBugKeys$1);
18487
+ return $keys$3(O2, enumBugKeys$1);
18249
18488
  }, "keys");
18250
18489
  var _objectGops = {};
18251
18490
  _objectGops.f = Object.getOwnPropertySymbols;
18252
18491
  var _objectPie = {};
18253
- var hasRequired_objectPie;
18254
- function require_objectPie() {
18255
- if (hasRequired_objectPie)
18256
- return _objectPie;
18257
- hasRequired_objectPie = 1;
18258
- _objectPie.f = {}.propertyIsEnumerable;
18259
- return _objectPie;
18260
- }
18261
- __name(require_objectPie, "require_objectPie");
18492
+ _objectPie.f = {}.propertyIsEnumerable;
18262
18493
  var defined$1 = _defined;
18263
18494
  var _toObject = /* @__PURE__ */ __name(function(it) {
18264
18495
  return Object(defined$1(it));
@@ -18269,10 +18500,10 @@ function require_objectAssign() {
18269
18500
  if (hasRequired_objectAssign)
18270
18501
  return _objectAssign;
18271
18502
  hasRequired_objectAssign = 1;
18272
- var DESCRIPTORS2 = _descriptors;
18503
+ var DESCRIPTORS2 = require_descriptors();
18273
18504
  var getKeys2 = _objectKeys;
18274
18505
  var gOPS2 = _objectGops;
18275
- var pIE2 = require_objectPie();
18506
+ var pIE2 = _objectPie;
18276
18507
  var toObject2 = _toObject;
18277
18508
  var IObject2 = _iobject;
18278
18509
  var $assign = Object.assign;
@@ -18335,10 +18566,10 @@ var _iterStep = /* @__PURE__ */ __name(function(done, value) {
18335
18566
  }, "_iterStep");
18336
18567
  var _iterators = {};
18337
18568
  var _redefine = _hide;
18338
- var dP$1 = _objectDp;
18569
+ var dP$1 = require_objectDp();
18339
18570
  var anObject$4 = _anObject;
18340
18571
  var getKeys$1 = _objectKeys;
18341
- var _objectDps = _descriptors ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties(O2, Properties2) {
18572
+ var _objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties(O2, Properties2) {
18342
18573
  anObject$4(O2);
18343
18574
  var keys5 = getKeys$1(Properties2);
18344
18575
  var length = keys5.length;
@@ -18405,7 +18636,7 @@ var $exports = _wks.exports = function(name2) {
18405
18636
  };
18406
18637
  $exports.store = store$2;
18407
18638
  var _wksExports = _wks.exports;
18408
- var def = _objectDp.f;
18639
+ var def = require_objectDp().f;
18409
18640
  var has$c = _has;
18410
18641
  var TAG$1 = _wksExports("toStringTag");
18411
18642
  var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
@@ -18662,9 +18893,9 @@ var _default$a = function() {
18662
18893
  };
18663
18894
  }();
18664
18895
  var anObject$1 = _anObject;
18665
- var _iterCall = /* @__PURE__ */ __name(function(iterator2, fn3, value, entries2) {
18896
+ var _iterCall = /* @__PURE__ */ __name(function(iterator2, fn4, value, entries2) {
18666
18897
  try {
18667
- return entries2 ? fn3(anObject$1(value)[0], value[1]) : fn3(value);
18898
+ return entries2 ? fn4(anObject$1(value)[0], value[1]) : fn4(value);
18668
18899
  } catch (e2) {
18669
18900
  var ret = iterator2["return"];
18670
18901
  if (ret !== void 0)
@@ -18678,7 +18909,7 @@ var ArrayProto = Array.prototype;
18678
18909
  var _isArrayIter = /* @__PURE__ */ __name(function(it) {
18679
18910
  return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
18680
18911
  }, "_isArrayIter");
18681
- var $defineProperty$2 = _objectDp;
18912
+ var $defineProperty$2 = require_objectDp();
18682
18913
  var createDesc$2 = _propertyDesc;
18683
18914
  var _createProperty = /* @__PURE__ */ __name(function(object3, index2, value) {
18684
18915
  if (index2 in object3)
@@ -18784,11 +19015,11 @@ var $export$4 = _export;
18784
19015
  var core$1 = _coreExports;
18785
19016
  var fails = _fails;
18786
19017
  var _objectSap = /* @__PURE__ */ __name(function(KEY, exec) {
18787
- var fn3 = (core$1.Object || {})[KEY] || Object[KEY];
19018
+ var fn4 = (core$1.Object || {})[KEY] || Object[KEY];
18788
19019
  var exp = {};
18789
- exp[KEY] = exec(fn3);
19020
+ exp[KEY] = exec(fn4);
18790
19021
  $export$4($export$4.S + $export$4.F * fails(function() {
18791
- fn3(1);
19022
+ fn4(1);
18792
19023
  }), "Object", exp);
18793
19024
  }, "_objectSap");
18794
19025
  var toObject$2 = _toObject;
@@ -18807,9 +19038,9 @@ var _default$8 = /* @__PURE__ */ __name(function(instance, Constructor) {
18807
19038
  }
18808
19039
  }, "_default$8");
18809
19040
  var $export$3 = _export;
18810
- $export$3($export$3.S + $export$3.F * !_descriptors, "Object", { defineProperty: _objectDp.f });
19041
+ $export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: require_objectDp().f });
18811
19042
  var $Object$2 = _coreExports.Object;
18812
- var defineProperty$c = /* @__PURE__ */ __name(function defineProperty3(it, key, desc) {
19043
+ var defineProperty$c = /* @__PURE__ */ __name(function defineProperty2(it, key, desc) {
18813
19044
  return $Object$2.defineProperty(it, key, desc);
18814
19045
  }, "defineProperty");
18815
19046
  var defineProperty$b = { "default": defineProperty$c, __esModule: true };
@@ -18848,7 +19079,7 @@ var _meta = { exports: {} };
18848
19079
  var META$1 = _uid("meta");
18849
19080
  var isObject$c = _isObject;
18850
19081
  var has$a = _has;
18851
- var setDesc = _objectDp.f;
19082
+ var setDesc = require_objectDp().f;
18852
19083
  var id$1 = 0;
18853
19084
  var isExtensible = Object.isExtensible || function() {
18854
19085
  return true;
@@ -18901,7 +19132,7 @@ var meta = _meta.exports = {
18901
19132
  var _metaExports = _meta.exports;
18902
19133
  var core = _coreExports;
18903
19134
  var wksExt$1 = _wksExt;
18904
- var defineProperty$a = _objectDp.f;
19135
+ var defineProperty$a = require_objectDp().f;
18905
19136
  var _wksDefine = /* @__PURE__ */ __name(function(name2) {
18906
19137
  var $Symbol2 = core.Symbol || (core.Symbol = {});
18907
19138
  if (name2.charAt(0) != "_" && !(name2 in $Symbol2))
@@ -18909,7 +19140,7 @@ var _wksDefine = /* @__PURE__ */ __name(function(name2) {
18909
19140
  }, "_wksDefine");
18910
19141
  var getKeys = _objectKeys;
18911
19142
  var gOPS$1 = _objectGops;
18912
- var pIE$1 = require_objectPie();
19143
+ var pIE$1 = _objectPie;
18913
19144
  var _enumKeys = /* @__PURE__ */ __name(function(it) {
18914
19145
  var result = getKeys(it);
18915
19146
  var getSymbols2 = gOPS$1.f;
@@ -18930,21 +19161,13 @@ var _isArray = Array.isArray || /* @__PURE__ */ __name(function isArray(arg) {
18930
19161
  }, "isArray");
18931
19162
  var _objectGopnExt = {};
18932
19163
  var _objectGopn = {};
18933
- var hasRequired_objectGopn;
18934
- function require_objectGopn() {
18935
- if (hasRequired_objectGopn)
18936
- return _objectGopn;
18937
- hasRequired_objectGopn = 1;
18938
- var $keys2 = _objectKeysInternal;
18939
- var hiddenKeys = _enumBugKeys.concat("length", "prototype");
18940
- _objectGopn.f = Object.getOwnPropertyNames || /* @__PURE__ */ __name(function getOwnPropertyNames4(O2) {
18941
- return $keys2(O2, hiddenKeys);
18942
- }, "getOwnPropertyNames");
18943
- return _objectGopn;
18944
- }
18945
- __name(require_objectGopn, "require_objectGopn");
19164
+ var $keys$2 = _objectKeysInternal;
19165
+ var hiddenKeys = _enumBugKeys.concat("length", "prototype");
19166
+ _objectGopn.f = Object.getOwnPropertyNames || /* @__PURE__ */ __name(function getOwnPropertyNames(O2) {
19167
+ return $keys$2(O2, hiddenKeys);
19168
+ }, "getOwnPropertyNames");
18946
19169
  var toIObject$2 = _toIobject;
18947
- var gOPN$1 = require_objectGopn().f;
19170
+ var gOPN$1 = _objectGopn.f;
18948
19171
  var toString$5 = {}.toString;
18949
19172
  var windowNames = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
18950
19173
  var getWindowNames = /* @__PURE__ */ __name(function(it) {
@@ -18954,18 +19177,18 @@ var getWindowNames = /* @__PURE__ */ __name(function(it) {
18954
19177
  return windowNames.slice();
18955
19178
  }
18956
19179
  }, "getWindowNames");
18957
- _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames(it) {
19180
+ _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
18958
19181
  return windowNames && toString$5.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
18959
19182
  }, "getOwnPropertyNames");
18960
19183
  var _objectGopd = {};
18961
- var pIE = require_objectPie();
19184
+ var pIE = _objectPie;
18962
19185
  var createDesc$1 = _propertyDesc;
18963
19186
  var toIObject$1 = _toIobject;
18964
19187
  var toPrimitive$1 = _toPrimitive$1;
18965
19188
  var has$9 = _has;
18966
- var IE8_DOM_DEFINE = _ie8DomDefine;
19189
+ var IE8_DOM_DEFINE = require_ie8DomDefine();
18967
19190
  var gOPD$5 = Object.getOwnPropertyDescriptor;
18968
- _objectGopd.f = _descriptors ? gOPD$5 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
19191
+ _objectGopd.f = require_descriptors() ? gOPD$5 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
18969
19192
  O2 = toIObject$1(O2);
18970
19193
  P2 = toPrimitive$1(P2, true);
18971
19194
  if (IE8_DOM_DEFINE)
@@ -18978,7 +19201,7 @@ _objectGopd.f = _descriptors ? gOPD$5 : /* @__PURE__ */ __name(function getOwnPr
18978
19201
  }, "getOwnPropertyDescriptor");
18979
19202
  var global$2 = _globalExports;
18980
19203
  var has$8 = _has;
18981
- var DESCRIPTORS = _descriptors;
19204
+ var DESCRIPTORS = require_descriptors();
18982
19205
  var $export$2 = _export;
18983
19206
  var redefine = _redefine;
18984
19207
  var META = _metaExports.KEY;
@@ -19001,7 +19224,7 @@ var _create$1 = _objectCreate;
19001
19224
  var gOPNExt = _objectGopnExt;
19002
19225
  var $GOPD = _objectGopd;
19003
19226
  var $GOPS = _objectGops;
19004
- var $DP = _objectDp;
19227
+ var $DP = require_objectDp();
19005
19228
  var $keys$1 = _objectKeys;
19006
19229
  var gOPD$4 = $GOPD.f;
19007
19230
  var dP = $DP.f;
@@ -19044,7 +19267,7 @@ var isSymbol$8 = USE_NATIVE && typeof $Symbol.iterator == "symbol" ? function(it
19044
19267
  } : function(it) {
19045
19268
  return it instanceof $Symbol;
19046
19269
  };
19047
- var $defineProperty$1 = /* @__PURE__ */ __name(function defineProperty4(it, key, D2) {
19270
+ var $defineProperty$1 = /* @__PURE__ */ __name(function defineProperty3(it, key, D2) {
19048
19271
  if (it === ObjectProto)
19049
19272
  $defineProperty$1(OPSymbols, key, D2);
19050
19273
  anObject(it);
@@ -19093,7 +19316,7 @@ var $getOwnPropertyDescriptor = /* @__PURE__ */ __name(function getOwnPropertyDe
19093
19316
  D2.enumerable = true;
19094
19317
  return D2;
19095
19318
  }, "getOwnPropertyDescriptor");
19096
- var $getOwnPropertyNames = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
19319
+ var $getOwnPropertyNames = /* @__PURE__ */ __name(function getOwnPropertyNames3(it) {
19097
19320
  var names2 = gOPN(toIObject(it));
19098
19321
  var result = [];
19099
19322
  var i = 0;
@@ -19137,8 +19360,8 @@ if (!USE_NATIVE) {
19137
19360
  }, "toString"));
19138
19361
  $GOPD.f = $getOwnPropertyDescriptor;
19139
19362
  $DP.f = $defineProperty$1;
19140
- require_objectGopn().f = gOPNExt.f = $getOwnPropertyNames;
19141
- require_objectPie().f = $propertyIsEnumerable;
19363
+ _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
19364
+ _objectPie.f = $propertyIsEnumerable;
19142
19365
  $GOPS.f = $getOwnPropertySymbols;
19143
19366
  if (DESCRIPTORS && !_library) {
19144
19367
  redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable);
@@ -21076,9 +21299,9 @@ var vendorPrefix = function() {
21076
21299
  return pre && pre.length ? pre[0].toUpperCase() + pre.substr(1) : "";
21077
21300
  }
21078
21301
  }();
21079
- function closest$2(el, fn3) {
21302
+ function closest$2(el, fn4) {
21080
21303
  while (el) {
21081
- if (fn3(el))
21304
+ if (fn4(el))
21082
21305
  return el;
21083
21306
  el = el.parentNode;
21084
21307
  }
@@ -22092,9 +22315,9 @@ var getComputedStyleX;
22092
22315
  if (typeof window !== "undefined") {
22093
22316
  getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE;
22094
22317
  }
22095
- function each$2(arr, fn3) {
22318
+ function each$2(arr, fn4) {
22096
22319
  for (var i = 0; i < arr.length; i++) {
22097
- fn3(arr[i]);
22320
+ fn4(arr[i]);
22098
22321
  }
22099
22322
  }
22100
22323
  __name(each$2, "each$2");
@@ -26745,7 +26968,7 @@ function trough() {
26745
26968
  }
26746
26969
  next(null, ...values2);
26747
26970
  function next(error, ...output) {
26748
- const fn3 = fns[++middlewareIndex];
26971
+ const fn4 = fns[++middlewareIndex];
26749
26972
  let index2 = -1;
26750
26973
  if (error) {
26751
26974
  callback2(error);
@@ -26757,8 +26980,8 @@ function trough() {
26757
26980
  }
26758
26981
  }
26759
26982
  values2 = output;
26760
- if (fn3) {
26761
- wrap$1(fn3, next)(...output);
26983
+ if (fn4) {
26984
+ wrap$1(fn4, next)(...output);
26762
26985
  } else {
26763
26986
  callback2(null, ...output);
26764
26987
  }
@@ -38145,9 +38368,9 @@ var swizzle$1 = simpleSwizzle.exports = /* @__PURE__ */ __name(function swizzle(
38145
38368
  }
38146
38369
  return results;
38147
38370
  }, "swizzle");
38148
- swizzle$1.wrap = function(fn3) {
38371
+ swizzle$1.wrap = function(fn4) {
38149
38372
  return function() {
38150
- return fn3(swizzle$1(arguments));
38373
+ return fn4(swizzle$1(arguments));
38151
38374
  };
38152
38375
  };
38153
38376
  var simpleSwizzleExports = simpleSwizzle.exports;
@@ -39231,15 +39454,15 @@ function link$1(from3, to) {
39231
39454
  __name(link$1, "link$1");
39232
39455
  function wrapConversion$1(toModel, graph) {
39233
39456
  var path2 = [graph[toModel].parent, toModel];
39234
- var fn3 = conversions$4[graph[toModel].parent][toModel];
39457
+ var fn4 = conversions$4[graph[toModel].parent][toModel];
39235
39458
  var cur = graph[toModel].parent;
39236
39459
  while (graph[cur].parent) {
39237
39460
  path2.unshift(graph[cur].parent);
39238
- fn3 = link$1(conversions$4[graph[cur].parent][cur], fn3);
39461
+ fn4 = link$1(conversions$4[graph[cur].parent][cur], fn4);
39239
39462
  cur = graph[cur].parent;
39240
39463
  }
39241
- fn3.conversion = path2;
39242
- return fn3;
39464
+ fn4.conversion = path2;
39465
+ return fn4;
39243
39466
  }
39244
39467
  __name(wrapConversion$1, "wrapConversion$1");
39245
39468
  var route$3 = /* @__PURE__ */ __name(function(fromModel) {
@@ -39260,7 +39483,7 @@ var conversions$3 = conversionsExports;
39260
39483
  var route$2 = route$3;
39261
39484
  var convert$4 = {};
39262
39485
  var models$1 = Object.keys(conversions$3);
39263
- function wrapRaw$1(fn3) {
39486
+ function wrapRaw$1(fn4) {
39264
39487
  var wrappedFn = /* @__PURE__ */ __name(function(args) {
39265
39488
  if (args === void 0 || args === null) {
39266
39489
  return args;
@@ -39268,15 +39491,15 @@ function wrapRaw$1(fn3) {
39268
39491
  if (arguments.length > 1) {
39269
39492
  args = Array.prototype.slice.call(arguments);
39270
39493
  }
39271
- return fn3(args);
39494
+ return fn4(args);
39272
39495
  }, "wrappedFn");
39273
- if ("conversion" in fn3) {
39274
- wrappedFn.conversion = fn3.conversion;
39496
+ if ("conversion" in fn4) {
39497
+ wrappedFn.conversion = fn4.conversion;
39275
39498
  }
39276
39499
  return wrappedFn;
39277
39500
  }
39278
39501
  __name(wrapRaw$1, "wrapRaw$1");
39279
- function wrapRounded$1(fn3) {
39502
+ function wrapRounded$1(fn4) {
39280
39503
  var wrappedFn = /* @__PURE__ */ __name(function(args) {
39281
39504
  if (args === void 0 || args === null) {
39282
39505
  return args;
@@ -39284,7 +39507,7 @@ function wrapRounded$1(fn3) {
39284
39507
  if (arguments.length > 1) {
39285
39508
  args = Array.prototype.slice.call(arguments);
39286
39509
  }
39287
- var result = fn3(args);
39510
+ var result = fn4(args);
39288
39511
  if (typeof result === "object") {
39289
39512
  for (var len = result.length, i = 0; i < len; i++) {
39290
39513
  result[i] = Math.round(result[i]);
@@ -39292,8 +39515,8 @@ function wrapRounded$1(fn3) {
39292
39515
  }
39293
39516
  return result;
39294
39517
  }, "wrappedFn");
39295
- if ("conversion" in fn3) {
39296
- wrappedFn.conversion = fn3.conversion;
39518
+ if ("conversion" in fn4) {
39519
+ wrappedFn.conversion = fn4.conversion;
39297
39520
  }
39298
39521
  return wrappedFn;
39299
39522
  }
@@ -39305,9 +39528,9 @@ models$1.forEach(function(fromModel) {
39305
39528
  var routes = route$2(fromModel);
39306
39529
  var routeModels = Object.keys(routes);
39307
39530
  routeModels.forEach(function(toModel) {
39308
- var fn3 = routes[toModel];
39309
- convert$4[fromModel][toModel] = wrapRounded$1(fn3);
39310
- convert$4[fromModel][toModel].raw = wrapRaw$1(fn3);
39531
+ var fn4 = routes[toModel];
39532
+ convert$4[fromModel][toModel] = wrapRounded$1(fn4);
39533
+ convert$4[fromModel][toModel].raw = wrapRaw$1(fn4);
39311
39534
  });
39312
39535
  });
39313
39536
  var colorConvert$1 = convert$4;
@@ -40757,9 +40980,9 @@ var doEval = /* @__PURE__ */ __name(function doEval2(name2) {
40757
40980
  } else if (name2 === "%AsyncGeneratorFunction%") {
40758
40981
  value = getEvalledConstructor("async function* () {}");
40759
40982
  } else if (name2 === "%AsyncGenerator%") {
40760
- var fn3 = doEval2("%AsyncGeneratorFunction%");
40761
- if (fn3) {
40762
- value = fn3.prototype;
40983
+ var fn4 = doEval2("%AsyncGeneratorFunction%");
40984
+ if (fn4) {
40985
+ value = fn4.prototype;
40763
40986
  }
40764
40987
  } else if (name2 === "%AsyncIteratorPrototype%") {
40765
40988
  var gen = doEval2("%AsyncGenerator%");
@@ -41815,15 +42038,15 @@ var isBuffer$4 = /* @__PURE__ */ __name(function isBuffer2(obj) {
41815
42038
  var combine$1 = /* @__PURE__ */ __name(function combine(a2, b3) {
41816
42039
  return [].concat(a2, b3);
41817
42040
  }, "combine");
41818
- var maybeMap = /* @__PURE__ */ __name(function maybeMap2(val2, fn3) {
42041
+ var maybeMap = /* @__PURE__ */ __name(function maybeMap2(val2, fn4) {
41819
42042
  if (isArray$b(val2)) {
41820
42043
  var mapped = [];
41821
42044
  for (var i = 0; i < val2.length; i += 1) {
41822
- mapped.push(fn3(val2[i]));
42045
+ mapped.push(fn4(val2[i]));
41823
42046
  }
41824
42047
  return mapped;
41825
42048
  }
41826
- return fn3(val2);
42049
+ return fn4(val2);
41827
42050
  }, "maybeMap");
41828
42051
  var utils$6 = {
41829
42052
  arrayToObject,
@@ -46447,8 +46670,8 @@ var Saturation = function(_ref) {
46447
46670
  _this.handleMouseUp = function() {
46448
46671
  _this.unbindEventListeners();
46449
46672
  };
46450
- _this.throttle = throttle$1(function(fn3, data, e2) {
46451
- fn3(data, e2);
46673
+ _this.throttle = throttle$1(function(fn4, data, e2) {
46674
+ fn4(data, e2);
46452
46675
  }, 50);
46453
46676
  return _this;
46454
46677
  }
@@ -46820,8 +47043,8 @@ tinycolor.prototype = {
46820
47043
  clone: /* @__PURE__ */ __name(function clone3() {
46821
47044
  return tinycolor(this.toString());
46822
47045
  }, "clone"),
46823
- _applyModification: /* @__PURE__ */ __name(function _applyModification(fn3, args) {
46824
- var color2 = fn3.apply(null, [this].concat([].slice.call(args)));
47046
+ _applyModification: /* @__PURE__ */ __name(function _applyModification(fn4, args) {
47047
+ var color2 = fn4.apply(null, [this].concat([].slice.call(args)));
46825
47048
  this._r = color2._r;
46826
47049
  this._g = color2._g;
46827
47050
  this._b = color2._b;
@@ -46849,8 +47072,8 @@ tinycolor.prototype = {
46849
47072
  spin: /* @__PURE__ */ __name(function spin() {
46850
47073
  return this._applyModification(_spin, arguments);
46851
47074
  }, "spin"),
46852
- _applyCombination: /* @__PURE__ */ __name(function _applyCombination(fn3, args) {
46853
- return fn3.apply(null, [this].concat([].slice.call(args)));
47075
+ _applyCombination: /* @__PURE__ */ __name(function _applyCombination(fn4, args) {
47076
+ return fn4.apply(null, [this].concat([].slice.call(args)));
46854
47077
  }, "_applyCombination"),
46855
47078
  analogous: /* @__PURE__ */ __name(function analogous() {
46856
47079
  return this._applyCombination(_analogous, arguments);
@@ -47770,8 +47993,8 @@ var ColorWrap = /* @__PURE__ */ __name(function ColorWrap2(Picker) {
47770
47993
  }
47771
47994
  };
47772
47995
  _this.state = _extends$e({}, toState(props.color, 0));
47773
- _this.debounce = debounce$1(function(fn3, data, event) {
47774
- fn3(data, event);
47996
+ _this.debounce = debounce$1(function(fn4, data, event) {
47997
+ fn4(data, event);
47775
47998
  }, 100);
47776
47999
  return _this;
47777
48000
  }
@@ -54916,7 +55139,7 @@ var KNOWN_STATICS = {
54916
55139
  arity: true
54917
55140
  };
54918
55141
  var defineProperty$3 = Object.defineProperty;
54919
- var getOwnPropertyNames3 = Object.getOwnPropertyNames;
55142
+ var getOwnPropertyNames4 = Object.getOwnPropertyNames;
54920
55143
  var getOwnPropertySymbols3 = Object.getOwnPropertySymbols;
54921
55144
  var getOwnPropertyDescriptor3 = Object.getOwnPropertyDescriptor;
54922
55145
  var getPrototypeOf = Object.getPrototypeOf;
@@ -54929,7 +55152,7 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
54929
55152
  hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
54930
55153
  }
54931
55154
  }
54932
- var keys5 = getOwnPropertyNames3(sourceComponent);
55155
+ var keys5 = getOwnPropertyNames4(sourceComponent);
54933
55156
  if (getOwnPropertySymbols3) {
54934
55157
  keys5 = keys5.concat(getOwnPropertySymbols3(sourceComponent));
54935
55158
  }
@@ -56510,9 +56733,9 @@ const _DataTable = class _DataTable extends React__default$1.Component {
56510
56733
  return window.toastr.warning("No text to copy");
56511
56734
  this.handleCopyHelper(textToCopy, "Column copied");
56512
56735
  }, "handleCopyColumn"));
56513
- __publicField(this, "updateEntitiesHelper", /* @__PURE__ */ __name((ents, fn3) => {
56736
+ __publicField(this, "updateEntitiesHelper", /* @__PURE__ */ __name((ents, fn4) => {
56514
56737
  const { change: change2, reduxFormEntitiesUndoRedoStack = { currentVersion: 0 } } = this.props;
56515
- const [nextState, patches, inversePatches] = cn(ents, fn3);
56738
+ const [nextState, patches, inversePatches] = cn(ents, fn4);
56516
56739
  if (!inversePatches.length)
56517
56740
  return;
56518
56741
  const thatNewNew = [...nextState];
@@ -58284,8 +58507,8 @@ const _DataTable = class _DataTable extends React__default$1.Component {
58284
58507
  let updateTableDisplayDensityToUse = updateTableDisplayDensity;
58285
58508
  let resetDefaultVisibilityToUse = resetDefaultVisibility;
58286
58509
  if (withDisplayOptions && !syncDisplayOptionsToDb) {
58287
- const wrapUpdate = /* @__PURE__ */ __name((fn3) => (...args) => {
58288
- fn3(...args);
58510
+ const wrapUpdate = /* @__PURE__ */ __name((fn4) => (...args) => {
58511
+ fn4(...args);
58289
58512
  change2("localStorageForceUpdate", Math.random());
58290
58513
  }, "wrapUpdate");
58291
58514
  updateColumnVisibilityToUse = wrapUpdate(updateColumnVisibility);
@@ -58480,12 +58703,13 @@ const _DataTable = class _DataTable extends React__default$1.Component {
58480
58703
  tabIndex: -1,
58481
58704
  onKeyDown: (e2) => {
58482
58705
  var _a2, _b2, _c, _d, _e, _f;
58483
- const isArrowKey = e2.keyCode >= 37 && e2.keyCode <= 40 || e2.keyCode === 9;
58484
- if (isArrowKey && ((_a2 = e2.target) == null ? void 0 : _a2.tagName) !== "INPUT") {
58706
+ const isTabKey = e2.keyCode === 9;
58707
+ const isArrowKey = e2.keyCode >= 37 && e2.keyCode <= 40;
58708
+ if (isArrowKey && ((_a2 = e2.target) == null ? void 0 : _a2.tagName) !== "INPUT" || isTabKey) {
58485
58709
  const { schema: schema22, entities: entities2 } = computePresets(this.props);
58486
58710
  const left2 = e2.keyCode === 37;
58487
58711
  const up = e2.keyCode === 38;
58488
- const down = e2.keyCode === 40;
58712
+ const down = e2.keyCode === 40 || e2.keyCode === 13;
58489
58713
  let cellIdToUse = this.getPrimarySelectedCellId();
58490
58714
  const pathToIndex = getFieldPathToIndex(schema22);
58491
58715
  const entityMap = getEntityIdToEntity(entities2);
@@ -59156,7 +59380,7 @@ const wrapDialog = /* @__PURE__ */ __name((topLevelDialogProps = {}) => (Compone
59156
59380
  /* @__PURE__ */ React__default$1.createElement(Component2, __spreadValues({ hideModal }, otherProps))
59157
59381
  );
59158
59382
  }, "wrapDialog");
59159
- function renderOnDoc(fn3) {
59383
+ function renderOnDoc(fn4) {
59160
59384
  const elemDiv = document.createElement("div");
59161
59385
  elemDiv.style.cssText = "position:absolute;width:100%;height:100%;top:0px;opacity:0.3;z-index:0;";
59162
59386
  document.body.appendChild(elemDiv);
@@ -59166,7 +59390,7 @@ function renderOnDoc(fn3) {
59166
59390
  document.body.removeChild(elemDiv);
59167
59391
  });
59168
59392
  }, "handleClose");
59169
- return ReactDOM$1.render(fn3(handleClose), elemDiv);
59393
+ return ReactDOM$1.render(fn4(handleClose), elemDiv);
59170
59394
  }
59171
59395
  __name(renderOnDoc, "renderOnDoc");
59172
59396
  function showConfirmationDialog(opts2) {
@@ -64498,9 +64722,9 @@ var bluebird = { exports: {} };
64498
64722
  this._schedule = schedule;
64499
64723
  }
64500
64724
  __name(Async, "Async");
64501
- Async.prototype.setScheduler = function(fn3) {
64725
+ Async.prototype.setScheduler = function(fn4) {
64502
64726
  var prev = this._schedule;
64503
- this._schedule = fn3;
64727
+ this._schedule = fn4;
64504
64728
  this._customScheduler = true;
64505
64729
  return prev;
64506
64730
  };
@@ -64518,33 +64742,33 @@ var bluebird = { exports: {} };
64518
64742
  this.throwLater(e2);
64519
64743
  }
64520
64744
  };
64521
- Async.prototype.throwLater = function(fn3, arg) {
64745
+ Async.prototype.throwLater = function(fn4, arg) {
64522
64746
  if (arguments.length === 1) {
64523
- arg = fn3;
64524
- fn3 = /* @__PURE__ */ __name(function() {
64747
+ arg = fn4;
64748
+ fn4 = /* @__PURE__ */ __name(function() {
64525
64749
  throw arg;
64526
64750
  }, "fn");
64527
64751
  }
64528
64752
  if (typeof setTimeout !== "undefined") {
64529
64753
  setTimeout(function() {
64530
- fn3(arg);
64754
+ fn4(arg);
64531
64755
  }, 0);
64532
64756
  } else
64533
64757
  try {
64534
64758
  this._schedule(function() {
64535
- fn3(arg);
64759
+ fn4(arg);
64536
64760
  });
64537
64761
  } catch (e2) {
64538
64762
  throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n");
64539
64763
  }
64540
64764
  };
64541
- function AsyncInvokeLater(fn3, receiver, arg) {
64542
- this._lateQueue.push(fn3, receiver, arg);
64765
+ function AsyncInvokeLater(fn4, receiver, arg) {
64766
+ this._lateQueue.push(fn4, receiver, arg);
64543
64767
  this._queueTick();
64544
64768
  }
64545
64769
  __name(AsyncInvokeLater, "AsyncInvokeLater");
64546
- function AsyncInvoke(fn3, receiver, arg) {
64547
- this._normalQueue.push(fn3, receiver, arg);
64770
+ function AsyncInvoke(fn4, receiver, arg) {
64771
+ this._normalQueue.push(fn4, receiver, arg);
64548
64772
  this._queueTick();
64549
64773
  }
64550
64774
  __name(AsyncInvoke, "AsyncInvoke");
@@ -64563,13 +64787,13 @@ var bluebird = { exports: {} };
64563
64787
  }
64564
64788
  __name(_drainQueue, "_drainQueue");
64565
64789
  function _drainQueueStep(queue) {
64566
- var fn3 = queue.shift();
64567
- if (typeof fn3 !== "function") {
64568
- fn3._settlePromises();
64790
+ var fn4 = queue.shift();
64791
+ if (typeof fn4 !== "function") {
64792
+ fn4._settlePromises();
64569
64793
  } else {
64570
64794
  var receiver = queue.shift();
64571
64795
  var arg = queue.shift();
64572
- fn3.call(receiver, arg);
64796
+ fn4.call(receiver, arg);
64573
64797
  }
64574
64798
  }
64575
64799
  __name(_drainQueueStep, "_drainQueueStep");
@@ -64685,20 +64909,20 @@ var bluebird = { exports: {} };
64685
64909
  util2.isIdentifier;
64686
64910
  var getGetter;
64687
64911
  function ensureMethod(obj, methodName) {
64688
- var fn3;
64912
+ var fn4;
64689
64913
  if (obj != null)
64690
- fn3 = obj[methodName];
64691
- if (typeof fn3 !== "function") {
64914
+ fn4 = obj[methodName];
64915
+ if (typeof fn4 !== "function") {
64692
64916
  var message = "Object " + util2.classString(obj) + " has no method '" + util2.toString(methodName) + "'";
64693
64917
  throw new Promise2.TypeError(message);
64694
64918
  }
64695
- return fn3;
64919
+ return fn4;
64696
64920
  }
64697
64921
  __name(ensureMethod, "ensureMethod");
64698
64922
  function caller(obj) {
64699
64923
  var methodName = this.pop();
64700
- var fn3 = ensureMethod(obj, methodName);
64701
- return fn3.apply(obj, this);
64924
+ var fn4 = ensureMethod(obj, methodName);
64925
+ return fn4.apply(obj, this);
64702
64926
  }
64703
64927
  __name(caller, "caller");
64704
64928
  Promise2.prototype.call = function(methodName) {
@@ -65069,13 +65293,13 @@ var bluebird = { exports: {} };
65069
65293
  Promise2.prototype._warn = function(message, shouldUseOwnTrace, promise) {
65070
65294
  return warn(message, shouldUseOwnTrace, promise || this);
65071
65295
  };
65072
- Promise2.onPossiblyUnhandledRejection = function(fn3) {
65296
+ Promise2.onPossiblyUnhandledRejection = function(fn4) {
65073
65297
  var context = Promise2._getContext();
65074
- possiblyUnhandledRejection = util2.contextBind(context, fn3);
65298
+ possiblyUnhandledRejection = util2.contextBind(context, fn4);
65075
65299
  };
65076
- Promise2.onUnhandledRejectionHandled = function(fn3) {
65300
+ Promise2.onUnhandledRejectionHandled = function(fn4) {
65077
65301
  var context = Promise2._getContext();
65078
- unhandledRejectionHandled = util2.contextBind(context, fn3);
65302
+ unhandledRejectionHandled = util2.contextBind(context, fn4);
65079
65303
  };
65080
65304
  var disableLongStackTraces = /* @__PURE__ */ __name(function() {
65081
65305
  }, "disableLongStackTraces");
@@ -65114,8 +65338,8 @@ var bluebird = { exports: {} };
65114
65338
  util2.global.onunhandledrejection = null;
65115
65339
  return ret;
65116
65340
  },
65117
- after: function(fn3) {
65118
- util2.global.onunhandledrejection = fn3;
65341
+ after: function(fn4) {
65342
+ util2.global.onunhandledrejection = fn4;
65119
65343
  }
65120
65344
  },
65121
65345
  rejectionhandled: {
@@ -65124,20 +65348,20 @@ var bluebird = { exports: {} };
65124
65348
  util2.global.onrejectionhandled = null;
65125
65349
  return ret;
65126
65350
  },
65127
- after: function(fn3) {
65128
- util2.global.onrejectionhandled = fn3;
65351
+ after: function(fn4) {
65352
+ util2.global.onrejectionhandled = fn4;
65129
65353
  }
65130
65354
  }
65131
65355
  };
65132
65356
  var fireDomEvent = function() {
65133
65357
  var dispatch = /* @__PURE__ */ __name(function(legacy, e2) {
65134
65358
  if (legacy) {
65135
- var fn3;
65359
+ var fn4;
65136
65360
  try {
65137
- fn3 = legacy.before();
65361
+ fn4 = legacy.before();
65138
65362
  return !util2.global.dispatchEvent(e2);
65139
65363
  } finally {
65140
- legacy.after(fn3);
65364
+ legacy.after(fn4);
65141
65365
  }
65142
65366
  } else {
65143
65367
  return !util2.global.dispatchEvent(e2);
@@ -66003,18 +66227,18 @@ var bluebird = { exports: {} };
66003
66227
  return PromiseAll(this);
66004
66228
  }
66005
66229
  __name(promiseAllThis, "promiseAllThis");
66006
- function PromiseMapSeries(promises, fn3) {
66007
- return PromiseReduce(promises, fn3, INTERNAL, INTERNAL);
66230
+ function PromiseMapSeries(promises, fn4) {
66231
+ return PromiseReduce(promises, fn4, INTERNAL, INTERNAL);
66008
66232
  }
66009
66233
  __name(PromiseMapSeries, "PromiseMapSeries");
66010
- Promise2.prototype.each = function(fn3) {
66011
- return PromiseReduce(this, fn3, INTERNAL, 0)._then(promiseAllThis, void 0, void 0, this, void 0);
66234
+ Promise2.prototype.each = function(fn4) {
66235
+ return PromiseReduce(this, fn4, INTERNAL, 0)._then(promiseAllThis, void 0, void 0, this, void 0);
66012
66236
  };
66013
- Promise2.prototype.mapSeries = function(fn3) {
66014
- return PromiseReduce(this, fn3, INTERNAL, INTERNAL);
66237
+ Promise2.prototype.mapSeries = function(fn4) {
66238
+ return PromiseReduce(this, fn4, INTERNAL, INTERNAL);
66015
66239
  };
66016
- Promise2.each = function(promises, fn3) {
66017
- return PromiseReduce(promises, fn3, INTERNAL, 0)._then(promiseAllThis, void 0, void 0, promises, void 0);
66240
+ Promise2.each = function(promises, fn4) {
66241
+ return PromiseReduce(promises, fn4, INTERNAL, 0)._then(promiseAllThis, void 0, void 0, promises, void 0);
66018
66242
  };
66019
66243
  Promise2.mapSeries = PromiseMapSeries;
66020
66244
  };
@@ -66203,11 +66427,11 @@ var bluebird = { exports: {} };
66203
66427
  }, {}], 14: [function(_dereq_2, module3, exports3) {
66204
66428
  module3.exports = function(Promise2, INTERNAL) {
66205
66429
  var PromiseMap = Promise2.map;
66206
- Promise2.prototype.filter = function(fn3, options) {
66207
- return PromiseMap(this, fn3, options, INTERNAL);
66430
+ Promise2.prototype.filter = function(fn4, options) {
66431
+ return PromiseMap(this, fn4, options, INTERNAL);
66208
66432
  };
66209
- Promise2.filter = function(promises, fn3, options) {
66210
- return PromiseMap(promises, fn3, options, INTERNAL);
66433
+ Promise2.filter = function(promises, fn4, options) {
66434
+ return PromiseMap(promises, fn4, options, INTERNAL);
66211
66435
  };
66212
66436
  };
66213
66437
  }, {}], 15: [function(_dereq_2, module3, exports3) {
@@ -66553,11 +66777,11 @@ var bluebird = { exports: {} };
66553
66777
  return ret;
66554
66778
  };
66555
66779
  };
66556
- Promise2.coroutine.addYieldHandler = function(fn3) {
66557
- if (typeof fn3 !== "function") {
66558
- throw new TypeError2("expecting a function but got " + util2.classString(fn3));
66780
+ Promise2.coroutine.addYieldHandler = function(fn4) {
66781
+ if (typeof fn4 !== "function") {
66782
+ throw new TypeError2("expecting a function but got " + util2.classString(fn4));
66559
66783
  }
66560
- yieldHandlers.push(fn3);
66784
+ yieldHandlers.push(fn4);
66561
66785
  };
66562
66786
  Promise2.spawn = function(generatorFunction) {
66563
66787
  debug.deprecated("Promise.spawn()", "Promise.coroutine()");
@@ -66578,16 +66802,16 @@ var bluebird = { exports: {} };
66578
66802
  util2.errorObj;
66579
66803
  Promise2.join = function() {
66580
66804
  var last2 = arguments.length - 1;
66581
- var fn3;
66805
+ var fn4;
66582
66806
  if (last2 > 0 && typeof arguments[last2] === "function") {
66583
- fn3 = arguments[last2];
66807
+ fn4 = arguments[last2];
66584
66808
  var ret;
66585
66809
  }
66586
66810
  var args = [].slice.call(arguments);
66587
- if (fn3)
66811
+ if (fn4)
66588
66812
  args.pop();
66589
66813
  var ret = new PromiseArray(args).promise();
66590
- return fn3 !== void 0 ? ret.spread(fn3) : ret;
66814
+ return fn4 !== void 0 ? ret.spread(fn4) : ret;
66591
66815
  };
66592
66816
  };
66593
66817
  }, { "./util": 36 }], 18: [function(_dereq_2, module3, exports3) {
@@ -66596,11 +66820,11 @@ var bluebird = { exports: {} };
66596
66820
  var tryCatch = util2.tryCatch;
66597
66821
  var errorObj = util2.errorObj;
66598
66822
  var async = Promise2._async;
66599
- function MappingPromiseArray(promises, fn3, limit2, _filter) {
66823
+ function MappingPromiseArray(promises, fn4, limit2, _filter) {
66600
66824
  this.constructor$(promises);
66601
66825
  this._promise._captureStackTrace();
66602
66826
  var context = Promise2._getContext();
66603
- this._callback = util2.contextBind(context, fn3);
66827
+ this._callback = util2.contextBind(context, fn4);
66604
66828
  this._preservedValues = _filter === INTERNAL ? new Array(this.length()) : null;
66605
66829
  this._limit = limit2;
66606
66830
  this._inFlight = 0;
@@ -66718,9 +66942,9 @@ var bluebird = { exports: {} };
66718
66942
  MappingPromiseArray.prototype.preservedValues = function() {
66719
66943
  return this._preservedValues;
66720
66944
  };
66721
- function map3(promises, fn3, options, _filter) {
66722
- if (typeof fn3 !== "function") {
66723
- return apiRejection("expecting a function but got " + util2.classString(fn3));
66945
+ function map3(promises, fn4, options, _filter) {
66946
+ if (typeof fn4 !== "function") {
66947
+ return apiRejection("expecting a function but got " + util2.classString(fn4));
66724
66948
  }
66725
66949
  var limit2 = 0;
66726
66950
  if (options !== void 0) {
@@ -66738,29 +66962,29 @@ var bluebird = { exports: {} };
66738
66962
  }
66739
66963
  }
66740
66964
  limit2 = typeof limit2 === "number" && isFinite(limit2) && limit2 >= 1 ? limit2 : 0;
66741
- return new MappingPromiseArray(promises, fn3, limit2, _filter).promise();
66965
+ return new MappingPromiseArray(promises, fn4, limit2, _filter).promise();
66742
66966
  }
66743
66967
  __name(map3, "map");
66744
- Promise2.prototype.map = function(fn3, options) {
66745
- return map3(this, fn3, options, null);
66968
+ Promise2.prototype.map = function(fn4, options) {
66969
+ return map3(this, fn4, options, null);
66746
66970
  };
66747
- Promise2.map = function(promises, fn3, options, _filter) {
66748
- return map3(promises, fn3, options, _filter);
66971
+ Promise2.map = function(promises, fn4, options, _filter) {
66972
+ return map3(promises, fn4, options, _filter);
66749
66973
  };
66750
66974
  };
66751
66975
  }, { "./util": 36 }], 19: [function(_dereq_2, module3, exports3) {
66752
66976
  module3.exports = function(Promise2, INTERNAL, tryConvertToPromise, apiRejection, debug) {
66753
66977
  var util2 = _dereq_2("./util");
66754
66978
  var tryCatch = util2.tryCatch;
66755
- Promise2.method = function(fn3) {
66756
- if (typeof fn3 !== "function") {
66757
- throw new Promise2.TypeError("expecting a function but got " + util2.classString(fn3));
66979
+ Promise2.method = function(fn4) {
66980
+ if (typeof fn4 !== "function") {
66981
+ throw new Promise2.TypeError("expecting a function but got " + util2.classString(fn4));
66758
66982
  }
66759
66983
  return function() {
66760
66984
  var ret = new Promise2(INTERNAL);
66761
66985
  ret._captureStackTrace();
66762
66986
  ret._pushContext();
66763
- var value = tryCatch(fn3).apply(this, arguments);
66987
+ var value = tryCatch(fn4).apply(this, arguments);
66764
66988
  var promiseCreated = ret._popContext();
66765
66989
  debug.checkForgottenReturns(
66766
66990
  value,
@@ -66772,9 +66996,9 @@ var bluebird = { exports: {} };
66772
66996
  return ret;
66773
66997
  };
66774
66998
  };
66775
- Promise2.attempt = Promise2["try"] = function(fn3) {
66776
- if (typeof fn3 !== "function") {
66777
- return apiRejection("expecting a function but got " + util2.classString(fn3));
66999
+ Promise2.attempt = Promise2["try"] = function(fn4) {
67000
+ if (typeof fn4 !== "function") {
67001
+ return apiRejection("expecting a function but got " + util2.classString(fn4));
66778
67002
  }
66779
67003
  var ret = new Promise2(INTERNAL);
66780
67004
  ret._captureStackTrace();
@@ -66784,9 +67008,9 @@ var bluebird = { exports: {} };
66784
67008
  debug.deprecated("calling Promise.try with more than 1 argument");
66785
67009
  var arg = arguments[1];
66786
67010
  var ctx2 = arguments[2];
66787
- value = util2.isArray(arg) ? tryCatch(fn3).apply(ctx2, arg) : tryCatch(fn3).call(ctx2, arg);
67011
+ value = util2.isArray(arg) ? tryCatch(fn4).apply(ctx2, arg) : tryCatch(fn4).call(ctx2, arg);
66788
67012
  } else {
66789
- value = tryCatch(fn3)();
67013
+ value = tryCatch(fn4)();
66790
67014
  }
66791
67015
  var promiseCreated = ret._popContext();
66792
67016
  debug.checkForgottenReturns(
@@ -67025,7 +67249,7 @@ var bluebird = { exports: {} };
67025
67249
  Promise2.prototype.toString = function() {
67026
67250
  return "[object Promise]";
67027
67251
  };
67028
- Promise2.prototype.caught = Promise2.prototype["catch"] = function(fn3) {
67252
+ Promise2.prototype.caught = Promise2.prototype["catch"] = function(fn4) {
67029
67253
  var len = arguments.length;
67030
67254
  if (len > 1) {
67031
67255
  var catchInstances = new Array(len - 1), j = 0, i;
@@ -67038,13 +67262,13 @@ var bluebird = { exports: {} };
67038
67262
  }
67039
67263
  }
67040
67264
  catchInstances.length = j;
67041
- fn3 = arguments[i];
67042
- if (typeof fn3 !== "function") {
67043
- throw new TypeError2("The last argument to .catch() must be a function, got " + util2.toString(fn3));
67265
+ fn4 = arguments[i];
67266
+ if (typeof fn4 !== "function") {
67267
+ throw new TypeError2("The last argument to .catch() must be a function, got " + util2.toString(fn4));
67044
67268
  }
67045
- return this.then(void 0, catchFilter(catchInstances, fn3, this));
67269
+ return this.then(void 0, catchFilter(catchInstances, fn4, this));
67046
67270
  }
67047
- return this.then(void 0, fn3);
67271
+ return this.then(void 0, fn4);
67048
67272
  };
67049
67273
  Promise2.prototype.reflect = function() {
67050
67274
  return this._then(
@@ -67069,11 +67293,11 @@ var bluebird = { exports: {} };
67069
67293
  var promise = this._then(didFulfill, didReject, void 0, void 0, void 0);
67070
67294
  promise._setIsFinal();
67071
67295
  };
67072
- Promise2.prototype.spread = function(fn3) {
67073
- if (typeof fn3 !== "function") {
67074
- return apiRejection("expecting a function but got " + util2.classString(fn3));
67296
+ Promise2.prototype.spread = function(fn4) {
67297
+ if (typeof fn4 !== "function") {
67298
+ return apiRejection("expecting a function but got " + util2.classString(fn4));
67075
67299
  }
67076
- return this.all()._then(fn3, void 0, void 0, APPLY, void 0);
67300
+ return this.all()._then(fn4, void 0, void 0, APPLY, void 0);
67077
67301
  };
67078
67302
  Promise2.prototype.toJSON = function() {
67079
67303
  var ret = {
@@ -67097,18 +67321,18 @@ var bluebird = { exports: {} };
67097
67321
  }
67098
67322
  return new PromiseArray(this).promise();
67099
67323
  };
67100
- Promise2.prototype.error = function(fn3) {
67101
- return this.caught(util2.originatesFromRejection, fn3);
67324
+ Promise2.prototype.error = function(fn4) {
67325
+ return this.caught(util2.originatesFromRejection, fn4);
67102
67326
  };
67103
67327
  Promise2.getNewLibraryCopy = module3.exports;
67104
67328
  Promise2.is = function(val2) {
67105
67329
  return val2 instanceof Promise2;
67106
67330
  };
67107
- Promise2.fromNode = Promise2.fromCallback = function(fn3) {
67331
+ Promise2.fromNode = Promise2.fromCallback = function(fn4) {
67108
67332
  var ret = new Promise2(INTERNAL);
67109
67333
  ret._captureStackTrace();
67110
67334
  var multiArgs = arguments.length > 1 ? !!Object(arguments[1]).multiArgs : false;
67111
- var result = tryCatch(fn3)(nodebackForPromise(ret, multiArgs));
67335
+ var result = tryCatch(fn4)(nodebackForPromise(ret, multiArgs));
67112
67336
  if (result === errorObj) {
67113
67337
  ret._rejectCallback(result.e, true);
67114
67338
  }
@@ -67136,11 +67360,11 @@ var bluebird = { exports: {} };
67136
67360
  ret._rejectCallback(reason, true);
67137
67361
  return ret;
67138
67362
  };
67139
- Promise2.setScheduler = function(fn3) {
67140
- if (typeof fn3 !== "function") {
67141
- throw new TypeError2("expecting a function but got " + util2.classString(fn3));
67363
+ Promise2.setScheduler = function(fn4) {
67364
+ if (typeof fn4 !== "function") {
67365
+ throw new TypeError2("expecting a function but got " + util2.classString(fn4));
67142
67366
  }
67143
- return async.setScheduler(fn3);
67367
+ return async.setScheduler(fn4);
67144
67368
  };
67145
67369
  Promise2.prototype._then = function(didFulfill, didReject, _2, receiver, internalData) {
67146
67370
  var haveInternalData = internalData !== void 0;
@@ -67857,9 +68081,9 @@ var bluebird = { exports: {} };
67857
68081
  return !noCopyPropsPattern.test(key);
67858
68082
  }
67859
68083
  __name(propsFilter, "propsFilter");
67860
- function isPromisified(fn3) {
68084
+ function isPromisified(fn4) {
67861
68085
  try {
67862
- return fn3.__isPromisified__ === true;
68086
+ return fn4.__isPromisified__ === true;
67863
68087
  } catch (e2) {
67864
68088
  return false;
67865
68089
  }
@@ -67907,13 +68131,13 @@ var bluebird = { exports: {} };
67907
68131
  return str.replace(/([$])/, "\\$");
67908
68132
  }, "escapeIdentRegex");
67909
68133
  var makeNodePromisifiedEval;
67910
- function makeNodePromisifiedClosure(callback2, receiver, _2, fn3, __, multiArgs) {
68134
+ function makeNodePromisifiedClosure(callback2, receiver, _2, fn4, __, multiArgs) {
67911
68135
  var defaultThis = function() {
67912
68136
  return this;
67913
68137
  }();
67914
68138
  var method = callback2;
67915
68139
  if (typeof method === "string") {
67916
- callback2 = fn3;
68140
+ callback2 = fn4;
67917
68141
  }
67918
68142
  function promisified() {
67919
68143
  var _receiver = receiver;
@@ -67922,9 +68146,9 @@ var bluebird = { exports: {} };
67922
68146
  var promise = new Promise2(INTERNAL);
67923
68147
  promise._captureStackTrace();
67924
68148
  var cb = typeof method === "string" && this !== defaultThis ? this[method] : callback2;
67925
- var fn4 = nodebackForPromise(promise, multiArgs);
68149
+ var fn5 = nodebackForPromise(promise, multiArgs);
67926
68150
  try {
67927
- cb.apply(_receiver, withAppended(arguments, fn4));
68151
+ cb.apply(_receiver, withAppended(arguments, fn5));
67928
68152
  } catch (e2) {
67929
68153
  promise._rejectCallback(maybeWrapAsError(e2), true, true);
67930
68154
  }
@@ -67943,17 +68167,17 @@ var bluebird = { exports: {} };
67943
68167
  var methods = promisifiableMethods(obj, suffix, suffixRegexp, filter);
67944
68168
  for (var i = 0, len = methods.length; i < len; i += 2) {
67945
68169
  var key = methods[i];
67946
- var fn3 = methods[i + 1];
68170
+ var fn4 = methods[i + 1];
67947
68171
  var promisifiedKey = key + suffix;
67948
68172
  if (promisifier === makeNodePromisified) {
67949
- obj[promisifiedKey] = makeNodePromisified(key, THIS, key, fn3, suffix, multiArgs);
68173
+ obj[promisifiedKey] = makeNodePromisified(key, THIS, key, fn4, suffix, multiArgs);
67950
68174
  } else {
67951
- var promisified = promisifier(fn3, function() {
68175
+ var promisified = promisifier(fn4, function() {
67952
68176
  return makeNodePromisified(
67953
68177
  key,
67954
68178
  THIS,
67955
68179
  key,
67956
- fn3,
68180
+ fn4,
67957
68181
  suffix,
67958
68182
  multiArgs
67959
68183
  );
@@ -67977,18 +68201,18 @@ var bluebird = { exports: {} };
67977
68201
  );
67978
68202
  }
67979
68203
  __name(promisify, "promisify");
67980
- Promise2.promisify = function(fn3, options) {
67981
- if (typeof fn3 !== "function") {
67982
- throw new TypeError2("expecting a function but got " + util2.classString(fn3));
68204
+ Promise2.promisify = function(fn4, options) {
68205
+ if (typeof fn4 !== "function") {
68206
+ throw new TypeError2("expecting a function but got " + util2.classString(fn4));
67983
68207
  }
67984
- if (isPromisified(fn3)) {
67985
- return fn3;
68208
+ if (isPromisified(fn4)) {
68209
+ return fn4;
67986
68210
  }
67987
68211
  options = Object(options);
67988
68212
  var receiver = options.context === void 0 ? THIS : options.context;
67989
68213
  var multiArgs = !!options.multiArgs;
67990
- var ret = promisify(fn3, receiver, multiArgs);
67991
- util2.copyDescriptors(fn3, ret, propsFilter);
68214
+ var ret = promisify(fn4, receiver, multiArgs);
68215
+ util2.copyDescriptors(fn4, ret, propsFilter);
67992
68216
  return ret;
67993
68217
  };
67994
68218
  Promise2.promisifyAll = function(target, options) {
@@ -68163,10 +68387,10 @@ var bluebird = { exports: {} };
68163
68387
  this[i] = arg;
68164
68388
  this._length = length + 1;
68165
68389
  };
68166
- Queue.prototype.push = function(fn3, receiver, arg) {
68390
+ Queue.prototype.push = function(fn4, receiver, arg) {
68167
68391
  var length = this.length() + 3;
68168
68392
  if (this._willBeOverCapacity(length)) {
68169
- this._pushOne(fn3);
68393
+ this._pushOne(fn4);
68170
68394
  this._pushOne(receiver);
68171
68395
  this._pushOne(arg);
68172
68396
  return;
@@ -68174,7 +68398,7 @@ var bluebird = { exports: {} };
68174
68398
  var j = this._front + length - 3;
68175
68399
  this._checkCapacity(length);
68176
68400
  var wrapMask = this._capacity - 1;
68177
- this[j + 0 & wrapMask] = fn3;
68401
+ this[j + 0 & wrapMask] = fn4;
68178
68402
  this[j + 1 & wrapMask] = receiver;
68179
68403
  this[j + 2 & wrapMask] = arg;
68180
68404
  this._length = length;
@@ -68247,10 +68471,10 @@ var bluebird = { exports: {} };
68247
68471
  module3.exports = function(Promise2, PromiseArray, apiRejection, tryConvertToPromise, INTERNAL, debug) {
68248
68472
  var util2 = _dereq_2("./util");
68249
68473
  var tryCatch = util2.tryCatch;
68250
- function ReductionPromiseArray(promises, fn3, initialValue, _each) {
68474
+ function ReductionPromiseArray(promises, fn4, initialValue, _each) {
68251
68475
  this.constructor$(promises);
68252
68476
  var context = Promise2._getContext();
68253
- this._fn = util2.contextBind(context, fn3);
68477
+ this._fn = util2.contextBind(context, fn4);
68254
68478
  if (initialValue !== void 0) {
68255
68479
  initialValue = Promise2.resolve(initialValue);
68256
68480
  initialValue._attachCancellationCallback(this);
@@ -68344,11 +68568,11 @@ var bluebird = { exports: {} };
68344
68568
  }
68345
68569
  value._then(completed, completed, void 0, value, this);
68346
68570
  };
68347
- Promise2.prototype.reduce = function(fn3, initialValue) {
68348
- return reduce(this, fn3, initialValue, null);
68571
+ Promise2.prototype.reduce = function(fn4, initialValue) {
68572
+ return reduce(this, fn4, initialValue, null);
68349
68573
  };
68350
- Promise2.reduce = function(promises, fn3, initialValue, _each) {
68351
- return reduce(promises, fn3, initialValue, _each);
68574
+ Promise2.reduce = function(promises, fn4, initialValue, _each) {
68575
+ return reduce(promises, fn4, initialValue, _each);
68352
68576
  };
68353
68577
  function completed(valueOrReason, array2) {
68354
68578
  if (this.isFulfilled()) {
@@ -68358,11 +68582,11 @@ var bluebird = { exports: {} };
68358
68582
  }
68359
68583
  }
68360
68584
  __name(completed, "completed");
68361
- function reduce(promises, fn3, initialValue, _each) {
68362
- if (typeof fn3 !== "function") {
68363
- return apiRejection("expecting a function but got " + util2.classString(fn3));
68585
+ function reduce(promises, fn4, initialValue, _each) {
68586
+ if (typeof fn4 !== "function") {
68587
+ return apiRejection("expecting a function but got " + util2.classString(fn4));
68364
68588
  }
68365
- var array2 = new ReductionPromiseArray(promises, fn3, initialValue, _each);
68589
+ var array2 = new ReductionPromiseArray(promises, fn4, initialValue, _each);
68366
68590
  return array2.promise();
68367
68591
  }
68368
68592
  __name(reduce, "reduce");
@@ -68381,13 +68605,13 @@ var bluebird = { exports: {} };
68381
68605
  function gotValue(value) {
68382
68606
  var array2 = this.array;
68383
68607
  var promise = array2._promise;
68384
- var fn3 = tryCatch(array2._fn);
68608
+ var fn4 = tryCatch(array2._fn);
68385
68609
  promise._pushContext();
68386
68610
  var ret;
68387
68611
  if (array2._eachValues !== void 0) {
68388
- ret = fn3.call(promise._boundValue(), value, this.index, this.length);
68612
+ ret = fn4.call(promise._boundValue(), value, this.index, this.length);
68389
68613
  } else {
68390
- ret = fn3.call(
68614
+ ret = fn4.call(
68391
68615
  promise._boundValue(),
68392
68616
  this.accum,
68393
68617
  value,
@@ -68419,15 +68643,15 @@ var bluebird = { exports: {} };
68419
68643
  if (util2.isNode && typeof MutationObserver === "undefined") {
68420
68644
  var GlobalSetImmediate = commonjsGlobal.setImmediate;
68421
68645
  var ProcessNextTick = process.nextTick;
68422
- schedule = util2.isRecentNode ? function(fn3) {
68423
- GlobalSetImmediate.call(commonjsGlobal, fn3);
68424
- } : function(fn3) {
68425
- ProcessNextTick.call(process, fn3);
68646
+ schedule = util2.isRecentNode ? function(fn4) {
68647
+ GlobalSetImmediate.call(commonjsGlobal, fn4);
68648
+ } : function(fn4) {
68649
+ ProcessNextTick.call(process, fn4);
68426
68650
  };
68427
68651
  } else if (typeof NativePromise === "function" && typeof NativePromise.resolve === "function") {
68428
68652
  var nativePromise = NativePromise.resolve();
68429
- schedule = /* @__PURE__ */ __name(function(fn3) {
68430
- nativePromise.then(fn3);
68653
+ schedule = /* @__PURE__ */ __name(function(fn4) {
68654
+ nativePromise.then(fn4);
68431
68655
  }, "schedule");
68432
68656
  } else if (typeof MutationObserver !== "undefined" && !(typeof window !== "undefined" && window.navigator && (window.navigator.standalone || window.cordova)) && "classList" in document.documentElement) {
68433
68657
  schedule = function() {
@@ -68446,22 +68670,22 @@ var bluebird = { exports: {} };
68446
68670
  toggleScheduled = true;
68447
68671
  div22.classList.toggle("foo");
68448
68672
  }, "scheduleToggle");
68449
- return /* @__PURE__ */ __name(function schedule2(fn3) {
68673
+ return /* @__PURE__ */ __name(function schedule2(fn4) {
68450
68674
  var o3 = new MutationObserver(function() {
68451
68675
  o3.disconnect();
68452
- fn3();
68676
+ fn4();
68453
68677
  });
68454
68678
  o3.observe(div2, opts2);
68455
68679
  scheduleToggle();
68456
68680
  }, "schedule");
68457
68681
  }();
68458
68682
  } else if (typeof setImmediate !== "undefined") {
68459
- schedule = /* @__PURE__ */ __name(function(fn3) {
68460
- setImmediate(fn3);
68683
+ schedule = /* @__PURE__ */ __name(function(fn4) {
68684
+ setImmediate(fn4);
68461
68685
  }, "schedule");
68462
68686
  } else if (typeof setTimeout !== "undefined") {
68463
- schedule = /* @__PURE__ */ __name(function(fn3) {
68464
- setTimeout(fn3, 0);
68687
+ schedule = /* @__PURE__ */ __name(function(fn4) {
68688
+ setTimeout(fn4, 0);
68465
68689
  }, "schedule");
68466
68690
  } else {
68467
68691
  schedule = noAsyncScheduler;
@@ -68989,14 +69213,14 @@ var bluebird = { exports: {} };
68989
69213
  Disposer.isDisposer = function(d2) {
68990
69214
  return d2 != null && typeof d2.resource === "function" && typeof d2.tryDispose === "function";
68991
69215
  };
68992
- function FunctionDisposer(fn3, promise, context) {
68993
- this.constructor$(fn3, promise, context);
69216
+ function FunctionDisposer(fn4, promise, context) {
69217
+ this.constructor$(fn4, promise, context);
68994
69218
  }
68995
69219
  __name(FunctionDisposer, "FunctionDisposer");
68996
69220
  inherits2(FunctionDisposer, Disposer);
68997
69221
  FunctionDisposer.prototype.doDispose = function(resource, inspection) {
68998
- var fn3 = this.data();
68999
- return fn3.call(resource, resource, inspection);
69222
+ var fn4 = this.data();
69223
+ return fn4.call(resource, resource, inspection);
69000
69224
  };
69001
69225
  function maybeUnwrapDisposer(value) {
69002
69226
  if (Disposer.isDisposer(value)) {
@@ -69027,9 +69251,9 @@ var bluebird = { exports: {} };
69027
69251
  return apiRejection(
69028
69252
  "you must pass at least 2 arguments to Promise.using"
69029
69253
  );
69030
- var fn3 = arguments[len - 1];
69031
- if (typeof fn3 !== "function") {
69032
- return apiRejection("expecting a function but got " + util2.classString(fn3));
69254
+ var fn4 = arguments[len - 1];
69255
+ if (typeof fn4 !== "function") {
69256
+ return apiRejection("expecting a function but got " + util2.classString(fn4));
69033
69257
  }
69034
69258
  var input;
69035
69259
  var spreadArgs = true;
@@ -69076,8 +69300,8 @@ var bluebird = { exports: {} };
69076
69300
  inspections[i2] = inspection.value();
69077
69301
  }
69078
69302
  promise._pushContext();
69079
- fn3 = tryCatch(fn3);
69080
- var ret = spreadArgs ? fn3.apply(void 0, inspections) : fn3(inspections);
69303
+ fn4 = tryCatch(fn4);
69304
+ var ret = spreadArgs ? fn4.apply(void 0, inspections) : fn4(inspections);
69081
69305
  var promiseCreated = promise._popContext();
69082
69306
  debug.checkForgottenReturns(
69083
69307
  ret,
@@ -69109,9 +69333,9 @@ var bluebird = { exports: {} };
69109
69333
  this._bitField = this._bitField & ~131072;
69110
69334
  this._disposer = void 0;
69111
69335
  };
69112
- Promise2.prototype.disposer = function(fn3) {
69113
- if (typeof fn3 === "function") {
69114
- return new FunctionDisposer(fn3, this, createContext());
69336
+ Promise2.prototype.disposer = function(fn4) {
69337
+ if (typeof fn4 === "function") {
69338
+ return new FunctionDisposer(fn4, this, createContext());
69115
69339
  }
69116
69340
  throw new TypeError2();
69117
69341
  };
@@ -69133,8 +69357,8 @@ var bluebird = { exports: {} };
69133
69357
  }
69134
69358
  }
69135
69359
  __name(tryCatcher, "tryCatcher");
69136
- function tryCatch(fn3) {
69137
- tryCatchTarget = fn3;
69360
+ function tryCatch(fn4) {
69361
+ tryCatchTarget = fn4;
69138
69362
  return tryCatcher;
69139
69363
  }
69140
69364
  __name(tryCatch, "tryCatch");
@@ -69271,13 +69495,13 @@ var bluebird = { exports: {} };
69271
69495
  }
69272
69496
  }();
69273
69497
  var thisAssignmentPattern = /this\s*\.\s*\S+\s*=/;
69274
- function isClass(fn3) {
69498
+ function isClass(fn4) {
69275
69499
  try {
69276
- if (typeof fn3 === "function") {
69277
- var keys5 = es5.names(fn3.prototype);
69500
+ if (typeof fn4 === "function") {
69501
+ var keys5 = es5.names(fn4.prototype);
69278
69502
  var hasMethods = es5.isES5 && keys5.length > 1;
69279
69503
  var hasMethodsOtherThanConstructor = keys5.length > 0 && !(keys5.length === 1 && keys5[0] === "constructor");
69280
- var hasThisAssignmentAndStaticMethods = thisAssignmentPattern.test(fn3 + "") && es5.names(fn3).length > 0;
69504
+ var hasThisAssignmentAndStaticMethods = thisAssignmentPattern.test(fn4 + "") && es5.names(fn4).length > 0;
69281
69505
  if (hasMethods || hasMethodsOtherThanConstructor || hasThisAssignmentAndStaticMethods) {
69282
69506
  return true;
69283
69507
  }
@@ -69449,8 +69673,8 @@ var bluebird = { exports: {} };
69449
69673
  }
69450
69674
  __name(contextBind, "contextBind");
69451
69675
  var ret = {
69452
- setReflectHandler: function(fn3) {
69453
- reflectHandler = fn3;
69676
+ setReflectHandler: function(fn4) {
69677
+ reflectHandler = fn4;
69454
69678
  },
69455
69679
  isClass,
69456
69680
  isIdentifier,
@@ -71199,6 +71423,7 @@ function UploaderInner({
71199
71423
  // called when a file link in the filelist is clicked
71200
71424
  dropzoneProps = {},
71201
71425
  overflowList,
71426
+ autoUnzip,
71202
71427
  disabled,
71203
71428
  initializeForm,
71204
71429
  showFilesCount,
@@ -71223,7 +71448,7 @@ function UploaderInner({
71223
71448
  validateAgainstSchema = validateAgainstSchemaStore.current;
71224
71449
  }
71225
71450
  const accept = !_accept ? void 0 : lodashExports.isPlainObject(_accept) ? [_accept] : lodashExports.isArray(_accept) ? _accept : _accept.split(",").map((a2) => ({ type: a2 }));
71226
- if (validateAgainstSchemaStore.current && accept && !accept.some((a2) => a2.type === "zip")) {
71451
+ if ((validateAgainstSchema || autoUnzip) && accept && !accept.some((a2) => a2.type === "zip")) {
71227
71452
  accept == null ? void 0 : accept.unshift({
71228
71453
  type: "zip",
71229
71454
  description: "Any of the following types, just compressed"
@@ -71584,7 +71809,7 @@ function UploaderInner({
71584
71809
  var _a3, _b3;
71585
71810
  let acceptedFiles = [];
71586
71811
  for (const file of _acceptedFiles) {
71587
- if (validateAgainstSchema && isZipFile(file)) {
71812
+ if ((validateAgainstSchema || autoUnzip) && isZipFile(file)) {
71588
71813
  const files = yield filterFilesInZip(
71589
71814
  file,
71590
71815
  ((_a3 = simpleAccept == null ? void 0 : simpleAccept.split(", ")) == null ? void 0 : _a3.map((a2) => a2.startsWith(".") ? a2 : "." + a2)) || []
@@ -71609,9 +71834,7 @@ function UploaderInner({
71609
71834
  if (!acceptedFiles.length)
71610
71835
  return;
71611
71836
  setLoading(true);
71612
- if (fileLimit) {
71613
- acceptedFiles = acceptedFiles.slice(0, fileLimit);
71614
- }
71837
+ acceptedFiles = trimFiles(acceptedFiles, fileLimit);
71615
71838
  acceptedFiles.forEach((file) => {
71616
71839
  file.preview = URL.createObjectURL(file);
71617
71840
  file.loading = true;
@@ -71797,9 +72020,9 @@ function UploaderInner({
71797
72020
  `It looks like there wasn't any data in your file. Please add some data and try again`
71798
72021
  );
71799
72022
  }
71800
- const cleanedFileList = [...toKeep, ...fileListToUse].slice(
71801
- 0,
71802
- fileLimit ? fileLimit : void 0
72023
+ const cleanedFileList = trimFiles(
72024
+ [...toKeep, ...fileListToUse],
72025
+ fileLimit
71803
72026
  );
71804
72027
  handleSecondHalfOfUpload({ acceptedFiles, cleanedFileList });
71805
72028
  })
@@ -72047,6 +72270,18 @@ function stripId(ents = []) {
72047
72270
  __name(stripId, "stripId");
72048
72271
  const manualEnterMessage = "Build CSV File";
72049
72272
  const manualEnterSubMessage = "Paste or type data to build a CSV file";
72273
+ function trimFiles(incomingFiles, fileLimit) {
72274
+ if (fileLimit) {
72275
+ if (fileLimit && incomingFiles.length > fileLimit) {
72276
+ window.toastr && window.toastr.warning(
72277
+ `Detected additional files in your upload that we are ignoring. You can only upload ${fileLimit} file${fileLimit > 1 ? "s" : ""} at a time.`
72278
+ );
72279
+ }
72280
+ return incomingFiles.slice(0, fileLimit);
72281
+ }
72282
+ return incomingFiles;
72283
+ }
72284
+ __name(trimFiles, "trimFiles");
72050
72285
  const style$w = "";
72051
72286
  function DNALoader({ style: style2, className }) {
72052
72287
  return /* @__PURE__ */ React__default$1.createElement("div", { className: classNames("dna-loader", className), style: style2 }, /* @__PURE__ */ React__default$1.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React__default$1.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React__default$1.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React__default$1.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React__default$1.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React__default$1.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React__default$1.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React__default$1.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React__default$1.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React__default$1.createElement("div", { className: "nucleobase" }));
@@ -74079,11 +74314,11 @@ var Resizer = (
74079
74314
  }(React$2.PureComponent)
74080
74315
  );
74081
74316
  var src = { exports: {} };
74082
- function memoize(fn3, options) {
74317
+ function memoize(fn4, options) {
74083
74318
  var cache2 = options && options.cache ? options.cache : cacheDefault;
74084
74319
  var serializer = options && options.serializer ? options.serializer : serializerDefault;
74085
74320
  var strategy = options && options.strategy ? options.strategy : strategyDefault;
74086
- return strategy(fn3, {
74321
+ return strategy(fn4, {
74087
74322
  cache: cache2,
74088
74323
  serializer
74089
74324
  });
@@ -74093,40 +74328,40 @@ function isPrimitive(value) {
74093
74328
  return value == null || typeof value === "number" || typeof value === "boolean";
74094
74329
  }
74095
74330
  __name(isPrimitive, "isPrimitive");
74096
- function monadic(fn3, cache2, serializer, arg) {
74331
+ function monadic(fn4, cache2, serializer, arg) {
74097
74332
  var cacheKey = isPrimitive(arg) ? arg : serializer(arg);
74098
74333
  var computedValue = cache2.get(cacheKey);
74099
74334
  if (typeof computedValue === "undefined") {
74100
- computedValue = fn3.call(this, arg);
74335
+ computedValue = fn4.call(this, arg);
74101
74336
  cache2.set(cacheKey, computedValue);
74102
74337
  }
74103
74338
  return computedValue;
74104
74339
  }
74105
74340
  __name(monadic, "monadic");
74106
- function variadic(fn3, cache2, serializer) {
74341
+ function variadic(fn4, cache2, serializer) {
74107
74342
  var args = Array.prototype.slice.call(arguments, 3);
74108
74343
  var cacheKey = serializer(args);
74109
74344
  var computedValue = cache2.get(cacheKey);
74110
74345
  if (typeof computedValue === "undefined") {
74111
- computedValue = fn3.apply(this, args);
74346
+ computedValue = fn4.apply(this, args);
74112
74347
  cache2.set(cacheKey, computedValue);
74113
74348
  }
74114
74349
  return computedValue;
74115
74350
  }
74116
74351
  __name(variadic, "variadic");
74117
- function assemble(fn3, context, strategy, cache2, serialize2) {
74352
+ function assemble(fn4, context, strategy, cache2, serialize2) {
74118
74353
  return strategy.bind(
74119
74354
  context,
74120
- fn3,
74355
+ fn4,
74121
74356
  cache2,
74122
74357
  serialize2
74123
74358
  );
74124
74359
  }
74125
74360
  __name(assemble, "assemble");
74126
- function strategyDefault(fn3, options) {
74127
- var strategy = fn3.length === 1 ? monadic : variadic;
74361
+ function strategyDefault(fn4, options) {
74362
+ var strategy = fn4.length === 1 ? monadic : variadic;
74128
74363
  return assemble(
74129
- fn3,
74364
+ fn4,
74130
74365
  this,
74131
74366
  strategy,
74132
74367
  options.cache.create(),
@@ -74134,10 +74369,10 @@ function strategyDefault(fn3, options) {
74134
74369
  );
74135
74370
  }
74136
74371
  __name(strategyDefault, "strategyDefault");
74137
- function strategyVariadic(fn3, options) {
74372
+ function strategyVariadic(fn4, options) {
74138
74373
  var strategy = variadic;
74139
74374
  return assemble(
74140
- fn3,
74375
+ fn4,
74141
74376
  this,
74142
74377
  strategy,
74143
74378
  options.cache.create(),
@@ -74145,10 +74380,10 @@ function strategyVariadic(fn3, options) {
74145
74380
  );
74146
74381
  }
74147
74382
  __name(strategyVariadic, "strategyVariadic");
74148
- function strategyMonadic(fn3, options) {
74383
+ function strategyMonadic(fn4, options) {
74149
74384
  var strategy = monadic;
74150
74385
  return assemble(
74151
- fn3,
74386
+ fn4,
74152
74387
  this,
74153
74388
  strategy,
74154
74389
  options.cache.create(),
@@ -80693,8 +80928,8 @@ __name(requireEmpty, "requireEmpty");
80693
80928
  }
80694
80929
  }, "datesDiffFilter");
80695
80930
  diffFilter$2.filterName = "dates";
80696
- function createCommonjsModule(fn3, module3) {
80697
- return module3 = { exports: {} }, fn3(module3, module3.exports), module3.exports;
80931
+ function createCommonjsModule(fn4, module3) {
80932
+ return module3 = { exports: {} }, fn4(module3, module3.exports), module3.exports;
80698
80933
  }
80699
80934
  __name(createCommonjsModule, "createCommonjsModule");
80700
80935
  var diffMatchPatch = createCommonjsModule(function(module3) {
@@ -82406,7 +82641,7 @@ __name(requireEmpty, "requireEmpty");
82406
82641
  }, "formatDeltaChildren")
82407
82642
  }, {
82408
82643
  key: "forEachDeltaKey",
82409
- value: /* @__PURE__ */ __name(function forEachDeltaKey(delta, left2, fn3) {
82644
+ value: /* @__PURE__ */ __name(function forEachDeltaKey(delta, left2, fn4) {
82410
82645
  var keys5 = getObjectKeys(delta);
82411
82646
  var arrayKeys = delta._t === "a";
82412
82647
  var moveDestinations = {};
@@ -82448,7 +82683,7 @@ __name(requireEmpty, "requireEmpty");
82448
82683
  }
82449
82684
  var leftKey = arrayKeys ? typeof key === "number" ? key : parseInt(trimUnderscore(key), 10) : key;
82450
82685
  var isLast = index3 === length - 1;
82451
- fn3(key, leftKey, moveDestinations[leftKey], isLast);
82686
+ fn4(key, leftKey, moveDestinations[leftKey], isLast);
82452
82687
  }
82453
82688
  }, "forEachDeltaKey")
82454
82689
  }, {
@@ -82669,16 +82904,16 @@ __name(requireEmpty, "requireEmpty");
82669
82904
  var textContent = _ref.textContent, innerText = _ref.innerText;
82670
82905
  return textContent || innerText;
82671
82906
  }, "getElementText");
82672
- var eachByQuery = /* @__PURE__ */ __name(function eachByQuery2(el, query, fn3) {
82907
+ var eachByQuery = /* @__PURE__ */ __name(function eachByQuery2(el, query, fn4) {
82673
82908
  var elems = el.querySelectorAll(query);
82674
82909
  for (var i = 0, l2 = elems.length; i < l2; i++) {
82675
- fn3(elems[i]);
82910
+ fn4(elems[i]);
82676
82911
  }
82677
82912
  }, "eachByQuery");
82678
- var eachChildren = /* @__PURE__ */ __name(function eachChildren2(_ref2, fn3) {
82913
+ var eachChildren = /* @__PURE__ */ __name(function eachChildren2(_ref2, fn4) {
82679
82914
  var children = _ref2.children;
82680
82915
  for (var i = 0, l2 = children.length; i < l2; i++) {
82681
- fn3(children[i], i);
82916
+ fn4(children[i], i);
82682
82917
  }
82683
82918
  }, "eachChildren");
82684
82919
  eachByQuery(node2, ".jsondiffpatch-arrow", function(_ref3) {
@@ -83115,8 +83350,8 @@ __name(requireEmpty, "requireEmpty");
83115
83350
  return [];
83116
83351
  });
83117
83352
  return arr.map(function(item) {
83118
- var position2 = fns.map(function(fn3) {
83119
- return fn3(item);
83353
+ var position2 = fns.map(function(fn4) {
83354
+ return fn4(item);
83120
83355
  }).indexOf(true);
83121
83356
  if (position2 < 0) {
83122
83357
  position2 = fns.length;
@@ -100348,8 +100583,8 @@ var buffer$2 = {};
100348
100583
  }
100349
100584
  return table2;
100350
100585
  }();
100351
- function defineBigIntMethod(fn3) {
100352
- return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn3;
100586
+ function defineBigIntMethod(fn4) {
100587
+ return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn4;
100353
100588
  }
100354
100589
  __name(defineBigIntMethod, "defineBigIntMethod");
100355
100590
  function BufferBigIntNotDefined() {
@@ -101280,9 +101515,9 @@ function requireBrowser() {
101280
101515
  return browser;
101281
101516
  hasRequiredBrowser = 1;
101282
101517
  browser = deprecate;
101283
- function deprecate(fn3, msg) {
101518
+ function deprecate(fn4, msg) {
101284
101519
  if (config("noDeprecation")) {
101285
- return fn3;
101520
+ return fn4;
101286
101521
  }
101287
101522
  var warned = false;
101288
101523
  function deprecated2() {
@@ -101296,7 +101531,7 @@ function requireBrowser() {
101296
101531
  }
101297
101532
  warned = true;
101298
101533
  }
101299
- return fn3.apply(this, arguments);
101534
+ return fn4.apply(this, arguments);
101300
101535
  }
101301
101536
  __name(deprecated2, "deprecated");
101302
101537
  return deprecated2;
@@ -102291,15 +102526,15 @@ function require_stream_readable() {
102291
102526
  inherits_browserExports(Readable, Stream2);
102292
102527
  var errorOrDestroy = destroyImpl.errorOrDestroy;
102293
102528
  var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
102294
- function prependListener(emitter, event, fn3) {
102529
+ function prependListener(emitter, event, fn4) {
102295
102530
  if (typeof emitter.prependListener === "function")
102296
- return emitter.prependListener(event, fn3);
102531
+ return emitter.prependListener(event, fn4);
102297
102532
  if (!emitter._events || !emitter._events[event])
102298
- emitter.on(event, fn3);
102533
+ emitter.on(event, fn4);
102299
102534
  else if (Array.isArray(emitter._events[event]))
102300
- emitter._events[event].unshift(fn3);
102535
+ emitter._events[event].unshift(fn4);
102301
102536
  else
102302
- emitter._events[event] = [fn3, emitter._events[event]];
102537
+ emitter._events[event] = [fn4, emitter._events[event]];
102303
102538
  }
102304
102539
  __name(prependListener, "prependListener");
102305
102540
  function ReadableState(options, stream, isDuplex) {
@@ -102815,8 +103050,8 @@ function require_stream_readable() {
102815
103050
  dest.emit("unpipe", this, unpipeInfo);
102816
103051
  return this;
102817
103052
  };
102818
- Readable.prototype.on = function(ev, fn3) {
102819
- var res = Stream2.prototype.on.call(this, ev, fn3);
103053
+ Readable.prototype.on = function(ev, fn4) {
103054
+ var res = Stream2.prototype.on.call(this, ev, fn4);
102820
103055
  var state2 = this._readableState;
102821
103056
  if (ev === "data") {
102822
103057
  state2.readableListening = this.listenerCount("readable") > 0;
@@ -102838,8 +103073,8 @@ function require_stream_readable() {
102838
103073
  return res;
102839
103074
  };
102840
103075
  Readable.prototype.addListener = Readable.prototype.on;
102841
- Readable.prototype.removeListener = function(ev, fn3) {
102842
- var res = Stream2.prototype.removeListener.call(this, ev, fn3);
103076
+ Readable.prototype.removeListener = function(ev, fn4) {
103077
+ var res = Stream2.prototype.removeListener.call(this, ev, fn4);
102843
103078
  if (ev === "readable") {
102844
103079
  process.nextTick(updateReadableListening, this);
102845
103080
  }
@@ -103264,8 +103499,8 @@ function requirePipeline() {
103264
103499
  };
103265
103500
  }
103266
103501
  __name(destroyer, "destroyer");
103267
- function call2(fn3) {
103268
- fn3();
103502
+ function call2(fn4) {
103503
+ fn4();
103269
103504
  }
103270
103505
  __name(call2, "call");
103271
103506
  function pipe(from3, to) {
@@ -104672,9 +104907,9 @@ var slzh = /* @__PURE__ */ __name(function(d2, b3) {
104672
104907
  return b3 + 30 + b2(d2, b3 + 26) + b2(d2, b3 + 28);
104673
104908
  }, "slzh");
104674
104909
  var zh = /* @__PURE__ */ __name(function(d2, b3, z2) {
104675
- var fnl = b2(d2, b3 + 28), fn3 = strFromU8(d2.subarray(b3 + 46, b3 + 46 + fnl), !(b2(d2, b3 + 8) & 2048)), es = b3 + 46 + fnl, bs = b4(d2, b3 + 20);
104910
+ var fnl = b2(d2, b3 + 28), fn4 = strFromU8(d2.subarray(b3 + 46, b3 + 46 + fnl), !(b2(d2, b3 + 8) & 2048)), es = b3 + 46 + fnl, bs = b4(d2, b3 + 20);
104676
104911
  var _a2 = z2 && bs == 4294967295 ? z64e(d2, es) : [bs, b4(d2, b3 + 24), b4(d2, b3 + 42)], sc = _a2[0], su = _a2[1], off2 = _a2[2];
104677
- return [b2(d2, b3 + 10), sc, su, fn3, es + b2(d2, b3 + 30) + b2(d2, b3 + 32), off2];
104912
+ return [b2(d2, b3 + 10), sc, su, fn4, es + b2(d2, b3 + 30) + b2(d2, b3 + 32), off2];
104678
104913
  }, "zh");
104679
104914
  var z64e = /* @__PURE__ */ __name(function(d2, b3) {
104680
104915
  for (; b2(d2, b3) != 1; b3 += 4 + b2(d2, b3 + 2))
@@ -104703,18 +104938,18 @@ function unzipSync(data, opts2) {
104703
104938
  }
104704
104939
  var fltr = opts2 && opts2.filter;
104705
104940
  for (var i = 0; i < c2; ++i) {
104706
- var _a2 = zh(data, o2, z2), c_2 = _a2[0], sc = _a2[1], su = _a2[2], fn3 = _a2[3], no = _a2[4], off2 = _a2[5], b3 = slzh(data, off2);
104941
+ var _a2 = zh(data, o2, z2), c_2 = _a2[0], sc = _a2[1], su = _a2[2], fn4 = _a2[3], no = _a2[4], off2 = _a2[5], b3 = slzh(data, off2);
104707
104942
  o2 = no;
104708
104943
  if (!fltr || fltr({
104709
- name: fn3,
104944
+ name: fn4,
104710
104945
  size: sc,
104711
104946
  originalSize: su,
104712
104947
  compression: c_2
104713
104948
  })) {
104714
104949
  if (!c_2)
104715
- files[fn3] = slc(data, b3, b3 + sc);
104950
+ files[fn4] = slc(data, b3, b3 + sc);
104716
104951
  else if (c_2 == 8)
104717
- files[fn3] = inflateSync(data.subarray(b3, b3 + sc), { out: new u8(su) });
104952
+ files[fn4] = inflateSync(data.subarray(b3, b3 + sc), { out: new u8(su) });
104718
104953
  else
104719
104954
  err(14, "unknown compression type " + c_2);
104720
104955
  }
@@ -105591,15 +105826,15 @@ function link(from3, to) {
105591
105826
  __name(link, "link");
105592
105827
  function wrapConversion(toModel, graph) {
105593
105828
  const path2 = [graph[toModel].parent, toModel];
105594
- let fn3 = conversions$1[graph[toModel].parent][toModel];
105829
+ let fn4 = conversions$1[graph[toModel].parent][toModel];
105595
105830
  let cur = graph[toModel].parent;
105596
105831
  while (graph[cur].parent) {
105597
105832
  path2.unshift(graph[cur].parent);
105598
- fn3 = link(conversions$1[graph[cur].parent][cur], fn3);
105833
+ fn4 = link(conversions$1[graph[cur].parent][cur], fn4);
105599
105834
  cur = graph[cur].parent;
105600
105835
  }
105601
- fn3.conversion = path2;
105602
- return fn3;
105836
+ fn4.conversion = path2;
105837
+ return fn4;
105603
105838
  }
105604
105839
  __name(wrapConversion, "wrapConversion");
105605
105840
  var route$1 = /* @__PURE__ */ __name(function(fromModel) {
@@ -105620,7 +105855,7 @@ const conversions = conversions$2;
105620
105855
  const route = route$1;
105621
105856
  const convert$1 = {};
105622
105857
  const models = Object.keys(conversions);
105623
- function wrapRaw(fn3) {
105858
+ function wrapRaw(fn4) {
105624
105859
  const wrappedFn = /* @__PURE__ */ __name(function(...args) {
105625
105860
  const arg0 = args[0];
105626
105861
  if (arg0 === void 0 || arg0 === null) {
@@ -105629,15 +105864,15 @@ function wrapRaw(fn3) {
105629
105864
  if (arg0.length > 1) {
105630
105865
  args = arg0;
105631
105866
  }
105632
- return fn3(args);
105867
+ return fn4(args);
105633
105868
  }, "wrappedFn");
105634
- if ("conversion" in fn3) {
105635
- wrappedFn.conversion = fn3.conversion;
105869
+ if ("conversion" in fn4) {
105870
+ wrappedFn.conversion = fn4.conversion;
105636
105871
  }
105637
105872
  return wrappedFn;
105638
105873
  }
105639
105874
  __name(wrapRaw, "wrapRaw");
105640
- function wrapRounded(fn3) {
105875
+ function wrapRounded(fn4) {
105641
105876
  const wrappedFn = /* @__PURE__ */ __name(function(...args) {
105642
105877
  const arg0 = args[0];
105643
105878
  if (arg0 === void 0 || arg0 === null) {
@@ -105646,7 +105881,7 @@ function wrapRounded(fn3) {
105646
105881
  if (arg0.length > 1) {
105647
105882
  args = arg0;
105648
105883
  }
105649
- const result = fn3(args);
105884
+ const result = fn4(args);
105650
105885
  if (typeof result === "object") {
105651
105886
  for (let len = result.length, i = 0; i < len; i++) {
105652
105887
  result[i] = Math.round(result[i]);
@@ -105654,8 +105889,8 @@ function wrapRounded(fn3) {
105654
105889
  }
105655
105890
  return result;
105656
105891
  }, "wrappedFn");
105657
- if ("conversion" in fn3) {
105658
- wrappedFn.conversion = fn3.conversion;
105892
+ if ("conversion" in fn4) {
105893
+ wrappedFn.conversion = fn4.conversion;
105659
105894
  }
105660
105895
  return wrappedFn;
105661
105896
  }
@@ -105667,9 +105902,9 @@ models.forEach((fromModel) => {
105667
105902
  const routes = route(fromModel);
105668
105903
  const routeModels = Object.keys(routes);
105669
105904
  routeModels.forEach((toModel) => {
105670
- const fn3 = routes[toModel];
105671
- convert$1[fromModel][toModel] = wrapRounded(fn3);
105672
- convert$1[fromModel][toModel].raw = wrapRaw(fn3);
105905
+ const fn4 = routes[toModel];
105906
+ convert$1[fromModel][toModel] = wrapRounded(fn4);
105907
+ convert$1[fromModel][toModel].raw = wrapRaw(fn4);
105673
105908
  });
105674
105909
  });
105675
105910
  var colorConvert = convert$1;
@@ -107667,8 +107902,8 @@ var hasSymbols2 = typeof Symbol === "function" && typeof Symbol("foo") === "symb
107667
107902
  var toStr$1 = Object.prototype.toString;
107668
107903
  var concat = Array.prototype.concat;
107669
107904
  var origDefineProperty = Object.defineProperty;
107670
- var isFunction$1 = /* @__PURE__ */ __name(function(fn3) {
107671
- return typeof fn3 === "function" && toStr$1.call(fn3) === "[object Function]";
107905
+ var isFunction$1 = /* @__PURE__ */ __name(function(fn4) {
107906
+ return typeof fn4 === "function" && toStr$1.call(fn4) === "[object Function]";
107672
107907
  }, "isFunction$1");
107673
107908
  var hasPropertyDescriptors2 = hasPropertyDescriptors_1();
107674
107909
  var supportsDescriptors$2 = origDefineProperty && hasPropertyDescriptors2;
@@ -111157,7 +111392,7 @@ function doAnySpanOrigin(annotations) {
111157
111392
  });
111158
111393
  }
111159
111394
  __name(doAnySpanOrigin, "doAnySpanOrigin");
111160
- const connectToEditor = /* @__PURE__ */ __name((fn3) => {
111395
+ const connectToEditor = /* @__PURE__ */ __name((fn4) => {
111161
111396
  return connect(
111162
111397
  (state2, ownProps, ...rest) => {
111163
111398
  const editor = state2.VectorEditor[ownProps.editorName] || {};
@@ -111166,7 +111401,7 @@ const connectToEditor = /* @__PURE__ */ __name((fn3) => {
111166
111401
  state2.VectorEditor.__allEditorsOptions.uppercaseSequenceMapFont,
111167
111402
  editor.sequenceData.sequence
111168
111403
  );
111169
- return fn3 ? fn3(editor, ownProps, ...rest, state2) : {};
111404
+ return fn4 ? fn4(editor, ownProps, ...rest, state2) : {};
111170
111405
  },
111171
111406
  mapDispatchToActions
111172
111407
  // function mergeProps(propsFromState, propsFromDispatch) {
@@ -111788,7 +112023,7 @@ function memoizeOne(resultFn, isEqual2) {
111788
112023
  return memoized;
111789
112024
  }
111790
112025
  __name(memoizeOne, "memoizeOne");
111791
- var rafSchd = /* @__PURE__ */ __name(function rafSchd2(fn3) {
112026
+ var rafSchd = /* @__PURE__ */ __name(function rafSchd2(fn4) {
111792
112027
  var lastArgs = [];
111793
112028
  var frameId = null;
111794
112029
  var wrapperFn = /* @__PURE__ */ __name(function wrapperFn2() {
@@ -111801,7 +112036,7 @@ var rafSchd = /* @__PURE__ */ __name(function rafSchd2(fn3) {
111801
112036
  }
111802
112037
  frameId = requestAnimationFrame(function() {
111803
112038
  frameId = null;
111804
- fn3.apply(void 0, lastArgs);
112039
+ fn4.apply(void 0, lastArgs);
111805
112040
  });
111806
112041
  }, "wrapperFn");
111807
112042
  wrapperFn.cancel = function() {
@@ -112030,9 +112265,9 @@ const patch = /* @__PURE__ */ __name(function(line, value, otherValue) {
112030
112265
  }, "patch");
112031
112266
  const distance$1 = /* @__PURE__ */ __name((point1, point2) => Math.sqrt(__pow(point2.x - point1.x, 2) + __pow(point2.y - point1.y, 2)), "distance$1");
112032
112267
  const closest$1 = /* @__PURE__ */ __name((target, points) => Math.min(...points.map((point2) => distance$1(target, point2))), "closest$1");
112033
- const apply = /* @__PURE__ */ __name((fn3) => (point2) => ({
112034
- x: fn3(point2.x),
112035
- y: fn3(point2.y)
112268
+ const apply = /* @__PURE__ */ __name((fn4) => (point2) => ({
112269
+ x: fn4(point2.x),
112270
+ y: fn4(point2.y)
112036
112271
  }), "apply");
112037
112272
  var executeClip = /* @__PURE__ */ __name((frame, subject) => {
112038
112273
  const result = getRect({
@@ -114679,11 +114914,11 @@ var getAsyncMarshal = /* @__PURE__ */ __name(() => {
114679
114914
  const [entry] = entries2.splice(index2, 1);
114680
114915
  entry.callback();
114681
114916
  }, "execute");
114682
- const add3 = /* @__PURE__ */ __name((fn3) => {
114917
+ const add3 = /* @__PURE__ */ __name((fn4) => {
114683
114918
  const timerId = setTimeout(() => execute2(timerId));
114684
114919
  const entry = {
114685
114920
  timerId,
114686
- callback: fn3
114921
+ callback: fn4
114687
114922
  };
114688
114923
  entries2.push(entry);
114689
114924
  }, "add");
@@ -114729,8 +114964,8 @@ const isCriticalEqual = /* @__PURE__ */ __name((first, second) => {
114729
114964
  const isDroppableEqual = first.droppable.id === second.droppable.id && first.droppable.type === second.droppable.type;
114730
114965
  return isDraggableEqual && isDroppableEqual;
114731
114966
  }, "isCriticalEqual");
114732
- const withTimings = /* @__PURE__ */ __name((key, fn3) => {
114733
- fn3();
114967
+ const withTimings = /* @__PURE__ */ __name((key, fn4) => {
114968
+ fn4();
114734
114969
  }, "withTimings");
114735
114970
  const getDragStart = /* @__PURE__ */ __name((critical, mode) => ({
114736
114971
  draggableId: critical.draggable.id,
@@ -114762,22 +114997,22 @@ var getPublisher = /* @__PURE__ */ __name((getResponders, announce) => {
114762
114997
  const beforeCapture = /* @__PURE__ */ __name((draggableId, mode) => {
114763
114998
  !!dragging ? invariant$1(false) : void 0;
114764
114999
  withTimings("onBeforeCapture", () => {
114765
- const fn3 = getResponders().onBeforeCapture;
114766
- if (fn3) {
115000
+ const fn4 = getResponders().onBeforeCapture;
115001
+ if (fn4) {
114767
115002
  const before = {
114768
115003
  draggableId,
114769
115004
  mode
114770
115005
  };
114771
- fn3(before);
115006
+ fn4(before);
114772
115007
  }
114773
115008
  });
114774
115009
  }, "beforeCapture");
114775
115010
  const beforeStart = /* @__PURE__ */ __name((critical, mode) => {
114776
115011
  !!dragging ? invariant$1(false) : void 0;
114777
115012
  withTimings("onBeforeDragStart", () => {
114778
- const fn3 = getResponders().onBeforeDragStart;
114779
- if (fn3) {
114780
- fn3(getDragStart(critical, mode));
115013
+ const fn4 = getResponders().onBeforeDragStart;
115014
+ if (fn4) {
115015
+ fn4(getDragStart(critical, mode));
114781
115016
  }
114782
115017
  });
114783
115018
  }, "beforeStart");
@@ -118235,7 +118470,7 @@ __name(PublicDraggable, "PublicDraggable");
118235
118470
  const isEqual = /* @__PURE__ */ __name((base2) => (value) => base2 === value, "isEqual");
118236
118471
  const isScroll = isEqual("scroll");
118237
118472
  const isAuto$1 = isEqual("auto");
118238
- const isEither = /* @__PURE__ */ __name((overflow2, fn3) => fn3(overflow2.overflowX) || fn3(overflow2.overflowY), "isEither");
118473
+ const isEither = /* @__PURE__ */ __name((overflow2, fn4) => fn4(overflow2.overflowX) || fn4(overflow2.overflowY), "isEither");
118239
118474
  const isElementScrollable = /* @__PURE__ */ __name((el) => {
118240
118475
  const style2 = window.getComputedStyle(el);
118241
118476
  const overflow2 = {
@@ -119826,15 +120061,15 @@ function releaseReactionKeyConnection(reactionsForKey) {
119826
120061
  __name(releaseReactionKeyConnection, "releaseReactionKeyConnection");
119827
120062
  var reactionStack = [];
119828
120063
  var isDebugging$1 = false;
119829
- function runAsReaction(reaction, fn3, context, args) {
120064
+ function runAsReaction(reaction, fn4, context, args) {
119830
120065
  if (reaction.unobserved) {
119831
- return Reflect.apply(fn3, context, args);
120066
+ return Reflect.apply(fn4, context, args);
119832
120067
  }
119833
120068
  if (reactionStack.indexOf(reaction) === -1) {
119834
120069
  releaseReaction(reaction);
119835
120070
  try {
119836
120071
  reactionStack.push(reaction);
119837
- return Reflect.apply(fn3, context, args);
120072
+ return Reflect.apply(fn4, context, args);
119838
120073
  } finally {
119839
120074
  reactionStack.pop();
119840
120075
  }
@@ -119880,11 +120115,11 @@ function hasRunningReaction() {
119880
120115
  }
119881
120116
  __name(hasRunningReaction, "hasRunningReaction");
119882
120117
  var IS_REACTION = Symbol("is reaction");
119883
- function observe(fn3, options) {
120118
+ function observe(fn4, options) {
119884
120119
  if (options === void 0)
119885
120120
  options = {};
119886
- var reaction = fn3[IS_REACTION] ? fn3 : /* @__PURE__ */ __name(function reaction2() {
119887
- return runAsReaction(reaction2, fn3, this, arguments);
120121
+ var reaction = fn4[IS_REACTION] ? fn4 : /* @__PURE__ */ __name(function reaction2() {
120122
+ return runAsReaction(reaction2, fn4, this, arguments);
119888
120123
  }, "reaction");
119889
120124
  reaction.scheduler = options.scheduler;
119890
120125
  reaction.debugger = options.debugger;
@@ -120334,13 +120569,13 @@ const scheduler = {
120334
120569
  scheduler.isOn = false;
120335
120570
  }
120336
120571
  };
120337
- function batch(fn3, ctx2, args) {
120572
+ function batch(fn4, ctx2, args) {
120338
120573
  if (scheduler.isOn) {
120339
- return unstable_batchedUpdates(() => fn3.apply(ctx2, args));
120574
+ return unstable_batchedUpdates(() => fn4.apply(ctx2, args));
120340
120575
  }
120341
120576
  try {
120342
120577
  scheduler.on();
120343
- return unstable_batchedUpdates(() => fn3.apply(ctx2, args));
120578
+ return unstable_batchedUpdates(() => fn4.apply(ctx2, args));
120344
120579
  } finally {
120345
120580
  scheduler.flush();
120346
120581
  scheduler.off();
@@ -120348,18 +120583,18 @@ function batch(fn3, ctx2, args) {
120348
120583
  }
120349
120584
  __name(batch, "batch");
120350
120585
  const cache = /* @__PURE__ */ new WeakMap();
120351
- function batchFn(fn3) {
120352
- if (typeof fn3 !== "function") {
120353
- return fn3;
120586
+ function batchFn(fn4) {
120587
+ if (typeof fn4 !== "function") {
120588
+ return fn4;
120354
120589
  }
120355
- let batched = cache.get(fn3);
120590
+ let batched = cache.get(fn4);
120356
120591
  if (!batched) {
120357
- batched = new Proxy(fn3, {
120592
+ batched = new Proxy(fn4, {
120358
120593
  apply(target, thisArg, args) {
120359
120594
  return batch(target, thisArg, args);
120360
120595
  }
120361
120596
  });
120362
- cache.set(fn3, batched);
120597
+ cache.set(fn4, batched);
120363
120598
  }
120364
120599
  return batched;
120365
120600
  }
@@ -121123,8 +121358,23 @@ const withHover = compose$1(
121123
121358
  }, hoveredAnnotationActions)
121124
121359
  ),
121125
121360
  withHandlers({
121126
- onMouseOver: (props) => (e2) => {
121361
+ onMouseOver: (props) => function(e2) {
121127
121362
  var _a2;
121363
+ const target = e2.target;
121364
+ let alreadyHandled = false;
121365
+ let currentElement = target;
121366
+ while (currentElement) {
121367
+ if (currentElement === e2.currentTarget) {
121368
+ break;
121369
+ }
121370
+ if (currentElement.classList.contains("hoverHelper")) {
121371
+ alreadyHandled = true;
121372
+ break;
121373
+ }
121374
+ currentElement = currentElement.parentElement;
121375
+ }
121376
+ if (alreadyHandled)
121377
+ return;
121128
121378
  const { editorName, id: id2, hoveredAnnotationUpdate: hoveredAnnotationUpdate2 } = props;
121129
121379
  const isIdHashmap = typeof id2 === "object";
121130
121380
  const idToPass = isIdHashmap ? Object.keys(id2)[0] : id2;
@@ -121134,7 +121384,6 @@ const withHover = compose$1(
121134
121384
  }
121135
121385
  if (window.__veDragging || window.__veScrolling)
121136
121386
  return;
121137
- e2.stopPropagation();
121138
121387
  hoveredAnnotationUpdate2 && hoveredAnnotationUpdate2(idToPass, { editorName });
121139
121388
  },
121140
121389
  onMouseLeave: (props) => (e2) => {
@@ -125674,7 +125923,7 @@ function showFileDialog({ multiple = false, onSelect }) {
125674
125923
  }
125675
125924
  __name(showFileDialog, "showFileDialog");
125676
125925
  const name = "@teselagen/ove";
125677
- const version = "0.3.23";
125926
+ const version = "0.3.25";
125678
125927
  const main = "./src/index.js";
125679
125928
  const exports$1 = {
125680
125929
  ".": {
@@ -126427,8 +126676,7 @@ const getNewTranslationHandler = /* @__PURE__ */ __name((isReverse) => ({
126427
126676
  });
126428
126677
  props.annotationVisibilityShow("translations");
126429
126678
  },
126430
- isHidden: (props) => isProtein(props) || !props.annotationsToSupport || // props.readOnly ||
126431
- !props.annotationsToSupport.translations,
126679
+ isHidden: (props) => isProtein(props) || !props.annotationsToSupport || props.readOnly || !props.annotationsToSupport.translations,
126432
126680
  isDisabled: (props) => (
126433
126681
  /* (props.readOnly && readOnlyDisabledTooltip) || */
126434
126682
  props.sequenceLength === 0 || noSelection(props)
@@ -127790,7 +128038,7 @@ var timeoutDuration = function() {
127790
128038
  }
127791
128039
  return 0;
127792
128040
  }();
127793
- function microtaskDebounce(fn3) {
128041
+ function microtaskDebounce(fn4) {
127794
128042
  var called = false;
127795
128043
  return function() {
127796
128044
  if (called) {
@@ -127799,19 +128047,19 @@ function microtaskDebounce(fn3) {
127799
128047
  called = true;
127800
128048
  window.Promise.resolve().then(function() {
127801
128049
  called = false;
127802
- fn3();
128050
+ fn4();
127803
128051
  });
127804
128052
  };
127805
128053
  }
127806
128054
  __name(microtaskDebounce, "microtaskDebounce");
127807
- function taskDebounce(fn3) {
128055
+ function taskDebounce(fn4) {
127808
128056
  var scheduled = false;
127809
128057
  return function() {
127810
128058
  if (!scheduled) {
127811
128059
  scheduled = true;
127812
128060
  setTimeout(function() {
127813
128061
  scheduled = false;
127814
- fn3();
128062
+ fn4();
127815
128063
  }, timeoutDuration);
127816
128064
  }
127817
128065
  };
@@ -128002,7 +128250,7 @@ var createClass = function() {
128002
128250
  return Constructor;
128003
128251
  };
128004
128252
  }();
128005
- var defineProperty5 = /* @__PURE__ */ __name(function(obj, key, value) {
128253
+ var defineProperty4 = /* @__PURE__ */ __name(function(obj, key, value) {
128006
128254
  if (key in obj) {
128007
128255
  Object.defineProperty(obj, key, {
128008
128256
  value,
@@ -128307,11 +128555,11 @@ function runModifiers(modifiers2, data, ends) {
128307
128555
  if (modifier["function"]) {
128308
128556
  console.warn("`modifier.function` is deprecated, use `modifier.fn`!");
128309
128557
  }
128310
- var fn3 = modifier["function"] || modifier.fn;
128311
- if (modifier.enabled && isFunction(fn3)) {
128558
+ var fn4 = modifier["function"] || modifier.fn;
128559
+ if (modifier.enabled && isFunction(fn4)) {
128312
128560
  data.offsets.popper = getClientRect(data.offsets.popper);
128313
128561
  data.offsets.reference = getClientRect(data.offsets.reference);
128314
- data = fn3(data, modifier);
128562
+ data = fn4(data, modifier);
128315
128563
  }
128316
128564
  });
128317
128565
  return data;
@@ -128613,7 +128861,7 @@ function arrow(data, options) {
128613
128861
  var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide;
128614
128862
  sideValue = Math.max(Math.min(popper2[len] - arrowElementSize, sideValue), 0);
128615
128863
  data.arrowElement = arrowElement;
128616
- data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty5(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty5(_data$offsets$arrow, altSide, ""), _data$offsets$arrow);
128864
+ data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty4(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty4(_data$offsets$arrow, altSide, ""), _data$offsets$arrow);
128617
128865
  return data;
128618
128866
  }
128619
128867
  __name(arrow, "arrow");
@@ -128844,7 +129092,7 @@ function preventOverflow(data, options) {
128844
129092
  if (popper2[placement] < boundaries[placement] && !options.escapeWithReference) {
128845
129093
  value = Math.max(popper2[placement], boundaries[placement]);
128846
129094
  }
128847
- return defineProperty5({}, placement, value);
129095
+ return defineProperty4({}, placement, value);
128848
129096
  }, "primary"),
128849
129097
  secondary: /* @__PURE__ */ __name(function secondary(placement) {
128850
129098
  var mainSide = placement === "right" ? "left" : "top";
@@ -128852,7 +129100,7 @@ function preventOverflow(data, options) {
128852
129100
  if (popper2[placement] > boundaries[placement] && !options.escapeWithReference) {
128853
129101
  value = Math.min(popper2[mainSide], boundaries[placement] - (placement === "right" ? popper2.width : popper2.height));
128854
129102
  }
128855
- return defineProperty5({}, mainSide, value);
129103
+ return defineProperty4({}, mainSide, value);
128856
129104
  }, "secondary")
128857
129105
  };
128858
129106
  order2.forEach(function(placement) {
@@ -128873,8 +129121,8 @@ function shift3(data) {
128873
129121
  var side = isVertical ? "left" : "top";
128874
129122
  var measurement = isVertical ? "width" : "height";
128875
129123
  var shiftOffsets = {
128876
- start: defineProperty5({}, side, reference2[side]),
128877
- end: defineProperty5({}, side, reference2[side] + reference2[measurement] - popper2[measurement])
129124
+ start: defineProperty4({}, side, reference2[side]),
129125
+ end: defineProperty4({}, side, reference2[side] + reference2[measurement] - popper2[measurement])
128878
129126
  };
128879
129127
  data.offsets.popper = _extends$1({}, popper2, shiftOffsets[shiftvariation]);
128880
129128
  }
@@ -131640,8 +131888,8 @@ function chain(...fns) {
131640
131888
  return fns[0];
131641
131889
  return function() {
131642
131890
  let result;
131643
- for (const fn3 of fns) {
131644
- result = fn3.apply(this, arguments) || result;
131891
+ for (const fn4 of fns) {
131892
+ result = fn4.apply(this, arguments) || result;
131645
131893
  }
131646
131894
  return result;
131647
131895
  };
@@ -132861,9 +133109,9 @@ const _UncontrolledSliderWithPlusMinusBtns = class _UncontrolledSliderWithPlusMi
132861
133109
  const { min: min2, max: max2 } = this.props;
132862
133110
  const stepSize = this.props.stepSize || (max2 - min2) / 10;
132863
133111
  if (bindOutsideChangeHelper) {
132864
- bindOutsideChangeHelper.triggerChange = (fn3) => {
133112
+ bindOutsideChangeHelper.triggerChange = (fn4) => {
132865
133113
  const valToPass = lodashExports.isNumber(value) && !isNaN(value) ? value : initialValue;
132866
- return fn3({
133114
+ return fn4({
132867
133115
  value: valToPass,
132868
133116
  changeValue: (newVal2) => {
132869
133117
  const newnew = lodashExports.clamp(newVal2, min2, max2);
@@ -134170,438 +134418,18 @@ function combineLabels(labels, numberOfBuckets) {
134170
134418
  }
134171
134419
  __name(combineLabels, "combineLabels");
134172
134420
  const style$f = "";
134173
- const fontWidthToFontSize = 1.75;
134174
- const getTextLength = /* @__PURE__ */ __name((text2) => {
134175
- let len = (text2 || "Unlabeled").length;
134176
- const nonEnInputReg = /[^\x00-\xff]+/g;
134177
- const nonEnStrings = (text2 || "Unlabeled").match(nonEnInputReg) || [];
134178
- nonEnStrings.forEach((str) => len += str.length * 0.5);
134179
- return len;
134180
- }, "getTextLength");
134181
- function Labels({
134182
- labels = [],
134183
- extraSideSpace,
134184
- smartCircViewLabelRender,
134185
- radius: outerRadius,
134186
- editorName,
134187
- noRedux,
134188
- rotationRadians,
134189
- textScalingFactor,
134190
- labelLineIntensity: labelLineIntensity2,
134191
- labelSize: labelSize2 = 8,
134192
- fontHeightMultiplier = 2.4,
134193
- circularViewWidthVsHeightRatio,
134194
- //width of the circular view
134195
- condenseOverflowingXLabels = true
134196
- //set to true to make labels tha
134197
- }) {
134198
- if (!labels.length) {
134199
- return {
134200
- component: null,
134201
- height: 15
134202
- };
134203
- }
134204
- const originalOuterRadius = outerRadius;
134205
- outerRadius += smartCircViewLabelRender ? 10 : 25;
134206
- const radius = outerRadius;
134207
- const outerPointRadius = outerRadius - 20;
134208
- const fontWidth = labelSize2 * (textScalingFactor < 1 ? textScalingFactor : 1);
134209
- const fontHeight = fontWidth * lodashExports.clamp(fontHeightMultiplier, 1.5, 3.5);
134210
- const labelPoints = labels.map(function(label) {
134211
- const {
134212
- annotationCenterAngle: _annotationCenterAngle,
134213
- annotationCenterRadius
134214
- } = label;
134215
- const annotationCenterAngle = _annotationCenterAngle + (rotationRadians || 0);
134216
- return __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, label), {
134217
- width: getTextLength(label.text) * fontWidth,
134218
- //three points define the label:
134219
- innerPoint: __spreadProps(__spreadValues({}, polarToSpecialCartesian$1(
134220
- annotationCenterRadius,
134221
- annotationCenterAngle
134222
- )), {
134223
- radius: annotationCenterRadius,
134224
- angle: annotationCenterAngle
134225
- }),
134226
- truncatedInnerPoint: __spreadProps(__spreadValues({}, polarToSpecialCartesian$1(
134227
- outerPointRadius - 15,
134228
- annotationCenterAngle
134229
- )), {
134230
- radius: outerPointRadius - 15,
134231
- angle: annotationCenterAngle
134232
- }),
134233
- outerPoint: __spreadProps(__spreadValues({}, polarToSpecialCartesian$1(outerPointRadius, annotationCenterAngle)), {
134234
- radius: outerPointRadius,
134235
- angle: annotationCenterAngle
134236
- })
134237
- }), polarToSpecialCartesian$1(radius, annotationCenterAngle)), {
134238
- radius: radius + 10,
134239
- angle: annotationCenterAngle
134240
- });
134241
- }).map(function(label) {
134242
- label.labelAndSublabels = [label];
134243
- label.labelIds = { [label.id]: true };
134244
- return label;
134245
- });
134246
- let maxRadius = 1;
134247
- const groupedLabels = relaxLabelAngles(labelPoints, fontHeight, outerRadius).filter((l2) => !!l2).map((originalLabel) => {
134248
- if (smartCircViewLabelRender) {
134249
- const newR = Math.sqrt(
134250
- Math.pow(
134251
- Math.abs(originalLabel.x) + Math.max(0, originalLabel.text.length * 11 - extraSideSpace / 2),
134252
- 2
134253
- ) + Math.pow(Math.abs(originalLabel.y), 2)
134254
- );
134255
- if (newR > maxRadius)
134256
- maxRadius = newR;
134257
- }
134258
- if (originalLabel.highPriorityLabel) {
134259
- return originalLabel;
134260
- }
134261
- const _highPrioritySublabel = originalLabel.labelAndSublabels.find(
134262
- (l2) => l2.highPriorityLabel
134263
- );
134264
- if (_highPrioritySublabel) {
134265
- const highPrioritySublabel = lodashExports.cloneDeep(_highPrioritySublabel);
134266
- [
134267
- "angle",
134268
- "annotationCenterAngle",
134269
- "annotationCenterRadius",
134270
- "innerPoint",
134271
- "labelAndSublabels",
134272
- "labelIds",
134273
- "outerPoint",
134274
- "radius",
134275
- "truncatedInnerPoint",
134276
- "x",
134277
- "y"
134278
- ].forEach((k2) => {
134279
- highPrioritySublabel[k2] = originalLabel[k2];
134280
- });
134281
- delete originalLabel.labelAndSublabels;
134282
- return highPrioritySublabel;
134283
- }
134284
- return originalLabel;
134285
- });
134286
- window.isLabelGroupOpen = false;
134287
- return {
134288
- component: /* @__PURE__ */ React__default$1.createElement(
134289
- "g",
134290
- {
134291
- key: "veLabels",
134292
- className: "veLabels ve-monospace-font",
134293
- transform: `rotate(-${rotationRadians * 180 / Math.PI})`
134294
- },
134295
- /* @__PURE__ */ React__default$1.createElement(
134296
- DrawGroupedLabels,
134297
- __spreadValues({}, {
134298
- editorName,
134299
- noRedux,
134300
- groupedLabels,
134301
- circularViewWidthVsHeightRatio,
134302
- fontWidth,
134303
- fontHeight,
134304
- condenseOverflowingXLabels,
134305
- outerRadius,
134306
- labelLineIntensity: labelLineIntensity2
134307
- })
134308
- )
134309
- ),
134310
- //we use the <use> tag to position the hovered label group at the top of the stack
134311
- //point events: none is to fix a click bug..
134312
- //http://stackoverflow.com/questions/24078524/svg-click-events-not-firing-bubbling-when-using-use-element
134313
- height: smartCircViewLabelRender ? Math.min(105, maxRadius - originalOuterRadius) : 120
134314
- };
134315
- }
134316
- __name(Labels, "Labels");
134317
- const DrawLabelGroup = withHover(function({
134318
- hovered,
134319
- className,
134320
- label,
134321
- labelAndSublabels,
134322
- fontWidth,
134323
- noRedux,
134324
- fontHeight,
134325
- outerRadius,
134326
- onMouseLeave,
134327
- onMouseOver,
134328
- editorName,
134329
- circularViewWidthVsHeightRatio,
134330
- condenseOverflowingXLabels,
134331
- hoveredId,
134332
- labelLineIntensity: labelLineIntensity2,
134333
- // labelIds,
134334
- multipleLabels
134335
- // isIdHashmap,
134336
- }) {
134337
- let { text: text2 = "Unlabeled" } = label;
134338
- const textLength = getTextLength(text2);
134339
- let groupLabelXStart;
134340
- if (label.labelAndSublabels && label.labelAndSublabels.length > 1) {
134341
- text2 = "+" + (label.labelAndSublabels.length - 1) + "," + text2;
134342
- }
134343
- const labelLength = textLength * fontWidth;
134344
- const maxLabelLength = labelAndSublabels.reduce(function(currentLength, { text: text22 = "Unlabeled" }) {
134345
- const _textLength = getTextLength(text22);
134346
- if (_textLength > currentLength) {
134347
- return _textLength;
134348
- }
134349
- return currentLength;
134350
- }, 0);
134351
- const maxLabelWidth = maxLabelLength * fontWidth;
134352
- const labelOnLeft = label.angle > Math.PI;
134353
- let labelXStart = label.x - (labelOnLeft ? labelLength : 0);
134354
- if (condenseOverflowingXLabels) {
134355
- const distancePastBoundary = Math.abs(label.x + (labelOnLeft ? -labelLength : labelLength)) - (outerRadius + 90) * Math.max(1, circularViewWidthVsHeightRatio);
134356
- if (distancePastBoundary > 0) {
134357
- const numberOfCharsToChop = Math.ceil(distancePastBoundary / fontWidth) + 2;
134358
- text2 = text2.slice(0, -numberOfCharsToChop) + "..";
134359
- groupLabelXStart = labelXStart + (labelOnLeft ? distancePastBoundary : -distancePastBoundary);
134360
- labelXStart += labelOnLeft ? distancePastBoundary : 0;
134361
- }
134362
- }
134363
- const dy = fontHeight;
134364
- const textYStart = label.y + dy / 2;
134365
- let content2;
134366
- const labelClass = ` veLabelText veCircularViewLabelText clickable ${label.color} `;
134367
- if ((multipleLabels || groupLabelXStart !== void 0) && hovered) {
134368
- window.isLabelGroupOpen = true;
134369
- let hoveredLabel;
134370
- if (groupLabelXStart !== void 0) {
134371
- labelXStart = groupLabelXStart;
134372
- }
134373
- labelAndSublabels.some(function(label2) {
134374
- if (label2.id === hoveredId) {
134375
- hoveredLabel = label2;
134376
- return true;
134377
- }
134378
- return false;
134379
- });
134380
- if (!hoveredLabel) {
134381
- hoveredLabel = label;
134382
- }
134383
- let labelYStart = label.y;
134384
- const labelGroupHeight = labelAndSublabels.length * dy;
134385
- const labelGroupBottom = label.y + labelGroupHeight;
134386
- if (labelGroupBottom > outerRadius + 20) {
134387
- labelYStart -= (label.labelAndSublabels.length - 1) * dy;
134388
- }
134389
- const line = LabelLine(
134390
- [
134391
- hoveredLabel.innerPoint,
134392
- // hoveredLabel.labelAndSublabels &&
134393
- // hoveredLabel.labelAndSublabels.length > 0
134394
- // ? hoveredLabel.outerPoint
134395
- // : {},
134396
- label
134397
- ],
134398
- { style: { opacity: 1 }, strokeWidth: 2 }
134399
- );
134400
- content2 = [
134401
- line,
134402
- /* @__PURE__ */ React__default$1.createElement(PutMyParentOnTop, { editorName, key: "gGroup" }, /* @__PURE__ */ React__default$1.createElement("g", { className: className + " topLevelLabelGroup" }, /* @__PURE__ */ React__default$1.createElement(
134403
- "rect",
134404
- {
134405
- onMouseOver: cancelFn,
134406
- x: labelXStart - 4,
134407
- y: labelYStart - dy / 2,
134408
- width: maxLabelWidth + 24,
134409
- height: labelGroupHeight + 4,
134410
- fill: "white",
134411
- stroke: "black"
134412
- }
134413
- ), /* @__PURE__ */ React__default$1.createElement(
134414
- "text",
134415
- {
134416
- x: labelXStart,
134417
- y: labelYStart,
134418
- style: {
134419
- fontSize: fontWidth * fontWidthToFontSize,
134420
- fontStyle: label.fontStyle
134421
- }
134422
- },
134423
- labelAndSublabels.map(function(label2, index2) {
134424
- return /* @__PURE__ */ React__default$1.createElement(
134425
- DrawGroupInnerLabel,
134426
- __spreadValues({
134427
- isSubLabel: true,
134428
- noRedux,
134429
- editorName,
134430
- logHover: true,
134431
- key: "labelItem" + index2,
134432
- className: (label2.className || "") + labelClass + " veDrawGroupInnerLabel",
134433
- id: label2.id
134434
- }, { labelXStart, label: label2, fontWidth, index: index2, dy })
134435
- );
134436
- })
134437
- )))
134438
- ];
134439
- } else {
134440
- content2 = [
134441
- /* @__PURE__ */ React__default$1.createElement("title", { key: "labeltitle" }, label.title || label.text),
134442
- /* @__PURE__ */ React__default$1.createElement(
134443
- "text",
134444
- {
134445
- key: "text",
134446
- x: labelXStart,
134447
- textLength: getTextLength(text2) * fontWidth,
134448
- lengthAdjust: "spacing",
134449
- className: labelClass + label.className + (hovered ? " veAnnotationHovered" : ""),
134450
- y: textYStart,
134451
- style: {
134452
- fontSize: fontWidth * fontWidthToFontSize,
134453
- fontStyle: label.fontStyle,
134454
- fill: label.color || "black"
134455
- // stroke: label.color ? label.color : "black"
134456
- }
134457
- },
134458
- text2
134459
- ),
134460
- LabelLine(
134461
- [
134462
- label.innerPoint,
134463
- // hovered || label.annotationType === "part" //because parts live on the outside of the sequence, we don't need to show the truncated point, we can just point to them directly
134464
- // ? label.innerPoint
134465
- // : label.truncatedInnerPoint,
134466
- label.outerPoint,
134467
- label
134468
- ],
134469
- hovered ? { style: { opacity: 1 }, strokeWidth: 2 } : { style: { opacity: labelLineIntensity2 } }
134470
- )
134471
- ];
134472
- }
134473
- return /* @__PURE__ */ React__default$1.createElement(
134474
- "g",
134475
- __spreadValues(__spreadValues({}, { onMouseLeave, onMouseOver }), {
134476
- onClick: label.onClick,
134477
- onDoubleClick: label.onDoubleClick || lodashExports.noop,
134478
- onContextMenu: label.onContextMenu || lodashExports.noop
134479
- }),
134480
- content2
134481
- );
134482
- });
134483
- function LabelLine(pointArray, options) {
134484
- let points = "";
134485
- pointArray.forEach(function({ x, y: y2 }) {
134486
- if (!x && x !== 0)
134487
- return;
134488
- points += `${x},${y2} `;
134489
- });
134490
- return /* @__PURE__ */ React__default$1.createElement(React__default$1.Fragment, { key: "labelLine" }, /* @__PURE__ */ React__default$1.createElement(
134491
- "polyline",
134492
- __spreadValues({}, __spreadValues({
134493
- key: "polyline-long",
134494
- points,
134495
- stroke: "black",
134496
- fill: "none",
134497
- strokeWidth: 1,
134498
- className: "veLabelLine"
134499
- }, options))
134500
- ));
134501
- }
134502
- __name(LabelLine, "LabelLine");
134503
- const DrawGroupInnerLabel = withHover(
134504
- ({ className, labelXStart, label, fontWidth, onMouseOver, index: index2, dy }) => {
134505
- return /* @__PURE__ */ React__default$1.createElement(
134506
- "tspan",
134507
- __spreadProps(__spreadValues({
134508
- x: labelXStart,
134509
- textLength: getTextLength(label.text) * fontWidth,
134510
- lengthAdjust: "spacing",
134511
- onClick: label.onClick,
134512
- onDoubleClick: (e2) => {
134513
- e2.stopPropagation();
134514
- label.onDoubleClick && label.onDoubleClick(e2);
134515
- },
134516
- onContextMenu: label.onContextMenu,
134517
- dy: index2 === 0 ? dy / 2 : dy,
134518
- style: {
134519
- fill: label.color ? label.color : "black",
134520
- fontStyle: label.fontStyle
134521
- }
134522
- }, { onMouseOver }), {
134523
- className
134524
- }),
134525
- /* @__PURE__ */ React__default$1.createElement("title", null, label.title),
134526
- label.text
134527
- );
134528
- }
134529
- );
134530
- const DrawGroupedLabels = /* @__PURE__ */ __name(function DrawGroupedLabelsInner({
134531
- groupedLabels,
134532
- circularViewWidthVsHeightRatio,
134533
- fontWidth,
134534
- noRedux,
134535
- fontHeight,
134536
- condenseOverflowingXLabels,
134537
- outerRadius,
134538
- editorName,
134539
- labelLineIntensity: labelLineIntensity2
134540
- }) {
134541
- return groupedLabels.map(function(label, i) {
134542
- const { labelAndSublabels, labelIds } = label;
134543
- const multipleLabels = labelAndSublabels.length > 1;
134544
- return /* @__PURE__ */ React__default$1.createElement(
134545
- DrawLabelGroup,
134546
- __spreadValues({
134547
- key: i,
134548
- id: labelIds
134549
- }, {
134550
- label,
134551
- noRedux,
134552
- passHoveredId: true,
134553
- //needed to get the hoveredId
134554
- isLabelGroup: true,
134555
- className: "DrawLabelGroup",
134556
- multipleLabels,
134557
- labelAndSublabels,
134558
- labelIds,
134559
- circularViewWidthVsHeightRatio,
134560
- fontWidth,
134561
- editorName,
134562
- fontHeight,
134563
- condenseOverflowingXLabels,
134564
- outerRadius,
134565
- labelLineIntensity: labelLineIntensity2
134566
- })
134567
- );
134568
- });
134569
- }, "DrawGroupedLabelsInner");
134570
- function cancelFn(e2) {
134571
- e2.stopPropagation();
134572
- }
134573
- __name(cancelFn, "cancelFn");
134574
- const _PutMyParentOnTop = class _PutMyParentOnTop extends React__default$1.Component {
134575
- componentDidMount() {
134576
- const { editorName } = this.props;
134577
- try {
134578
- const el = document.querySelector(
134579
- `.veEditor.${editorName} .topLevelLabelGroup`
134580
- );
134581
- const parent2 = el.parentElement.parentElement;
134582
- const i = Array.prototype.indexOf.call(parent2.children, el.parentElement);
134583
- parent2.insertBefore(parent2.children[i], null);
134584
- } catch (error) {
134585
- console.warn(
134586
- "OVE-975239 - hit an error trying to re-order labels:",
134587
- error
134588
- );
134589
- }
134590
- }
134591
- render() {
134592
- return this.props.children;
134593
- }
134594
- };
134595
- __name(_PutMyParentOnTop, "PutMyParentOnTop");
134596
- let PutMyParentOnTop = _PutMyParentOnTop;
134597
- var baseGetTag = _baseGetTag, isObjectLike = isObjectLike_1;
134598
- var numberTag = "[object Number]";
134599
- function isNumber(value) {
134600
- return typeof value == "number" || isObjectLike(value) && baseGetTag(value) == numberTag;
134421
+ function getRangeAnglesSpecial() {
134422
+ const _a2 = getRangeAngles.apply(
134423
+ this,
134424
+ arguments
134425
+ ), { endAngle, totalAngle } = _a2, rest = __objRest(_a2, ["endAngle", "totalAngle"]);
134426
+ return __spreadValues({
134427
+ endAngle: endAngle - 1e-5,
134428
+ //we subtract a tiny amount because an angle of 2PI will cause nothing to be drawn!
134429
+ totalAngle: totalAngle - 1e-5
134430
+ }, rest);
134601
134431
  }
134602
- __name(isNumber, "isNumber");
134603
- var isNumber_1 = isNumber;
134604
- const isNumber$1 = /* @__PURE__ */ getDefaultExportFromCjs(isNumber_1);
134432
+ __name(getRangeAnglesSpecial, "getRangeAnglesSpecial");
134605
134433
  function PositionAnnotationOnCircle(_z) {
134606
134434
  var _A = _z, {
134607
134435
  children,
@@ -134632,60 +134460,6 @@ function PositionAnnotationOnCircle(_z) {
134632
134460
  return React__default$1.cloneElement(children, props);
134633
134461
  }
134634
134462
  __name(PositionAnnotationOnCircle, "PositionAnnotationOnCircle");
134635
- function Caret({
134636
- caretPosition: caretPosition2,
134637
- sequenceLength,
134638
- className,
134639
- onClick,
134640
- isSelection,
134641
- innerRadius,
134642
- outerRadius,
134643
- isProtein: isProtein2,
134644
- selectionMessage
134645
- }) {
134646
- const { startAngle, endAngle } = getRangeAngles(
134647
- { start: caretPosition2, end: caretPosition2 },
134648
- sequenceLength || 1
134649
- );
134650
- if (!isNumber$1(startAngle)) {
134651
- console.error("we've got a problem!");
134652
- }
134653
- const { transform: transform3 } = PositionAnnotationOnCircle({
134654
- sAngle: startAngle,
134655
- eAngle: endAngle,
134656
- height: 0
134657
- });
134658
- return /* @__PURE__ */ React__default$1.createElement(
134659
- "g",
134660
- {
134661
- onClick,
134662
- transform: transform3,
134663
- className: className + " veCaret " + draggableClassnames.caret
134664
- },
134665
- /* @__PURE__ */ React__default$1.createElement("title", null, selectionMessage || getSelectionMessage({ caretPosition: caretPosition2, isProtein: isProtein2, sequenceLength })),
134666
- /* @__PURE__ */ React__default$1.createElement(
134667
- "line",
134668
- {
134669
- strokeWidth: "1.5px",
134670
- x1: 0,
134671
- y1: -innerRadius,
134672
- x2: 0,
134673
- y2: -outerRadius
134674
- }
134675
- ),
134676
- isSelection ? /* @__PURE__ */ React__default$1.createElement(
134677
- "polygon",
134678
- {
134679
- className: "vePolygonCaretHandle",
134680
- fill: "black",
134681
- points: `0,${-outerRadius + 2} 5,${-outerRadius - 10} -5,${-outerRadius - 10}`
134682
- }
134683
- ) : null
134684
- );
134685
- }
134686
- __name(Caret, "Caret");
134687
- const Caret$1 = pure(Caret);
134688
- var sector$1 = { exports: {} };
134689
134463
  var path = { exports: {} };
134690
134464
  var geom = { exports: {} };
134691
134465
  (function(module2, exports2) {
@@ -135294,407 +135068,6 @@ var geomExports = geom.exports;
135294
135068
  })(path, path.exports);
135295
135069
  var pathExports = path.exports;
135296
135070
  const Path = /* @__PURE__ */ getDefaultExportFromCjs(pathExports);
135297
- var ops = {};
135298
- (function(exports2) {
135299
- Object.defineProperty(exports2, "__esModule", {
135300
- value: true
135301
- });
135302
- var _slicedToArray2 = function() {
135303
- function sliceIterator(arr, i) {
135304
- var _arr = [];
135305
- var _n = true;
135306
- var _d = false;
135307
- var _e = void 0;
135308
- try {
135309
- for (var _i = arr[Symbol.iterator](), _s2; !(_n = (_s2 = _i.next()).done); _n = true) {
135310
- _arr.push(_s2.value);
135311
- if (i && _arr.length === i)
135312
- break;
135313
- }
135314
- } catch (err2) {
135315
- _d = true;
135316
- _e = err2;
135317
- } finally {
135318
- try {
135319
- if (!_n && _i["return"])
135320
- _i["return"]();
135321
- } finally {
135322
- if (_d)
135323
- throw _e;
135324
- }
135325
- }
135326
- return _arr;
135327
- }
135328
- __name(sliceIterator, "sliceIterator");
135329
- return function(arr, i) {
135330
- if (Array.isArray(arr)) {
135331
- return arr;
135332
- } else if (Symbol.iterator in Object(arr)) {
135333
- return sliceIterator(arr, i);
135334
- } else {
135335
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
135336
- }
135337
- };
135338
- }();
135339
- var sum2 = /* @__PURE__ */ __name(function sum3(xs) {
135340
- return xs.reduce(function(a2, b3) {
135341
- return a2 + b3;
135342
- }, 0);
135343
- }, "sum");
135344
- var min2 = /* @__PURE__ */ __name(function min3(xs) {
135345
- return xs.reduce(function(a2, b3) {
135346
- return Math.min(a2, b3);
135347
- });
135348
- }, "min");
135349
- var max2 = /* @__PURE__ */ __name(function max3(xs) {
135350
- return xs.reduce(function(a2, b3) {
135351
- return Math.max(a2, b3);
135352
- });
135353
- }, "max");
135354
- var sumBy = /* @__PURE__ */ __name(function sumBy2(xs, f2) {
135355
- return xs.reduce(function(a2, b3) {
135356
- return a2 + f2(b3);
135357
- }, 0);
135358
- }, "sumBy");
135359
- var minBy = /* @__PURE__ */ __name(function minBy2(xs, f2) {
135360
- return xs.reduce(function(a2, b3) {
135361
- return Math.min(a2, f2(b3));
135362
- }, Infinity);
135363
- }, "minBy");
135364
- var maxBy = /* @__PURE__ */ __name(function maxBy2(xs, f2) {
135365
- return xs.reduce(function(a2, b3) {
135366
- return Math.max(a2, f2(b3));
135367
- }, -Infinity);
135368
- }, "maxBy");
135369
- var plus = /* @__PURE__ */ __name(function plus2(_ref, _ref3) {
135370
- var _ref2 = _slicedToArray2(_ref, 2);
135371
- var a2 = _ref2[0];
135372
- var b3 = _ref2[1];
135373
- var _ref32 = _slicedToArray2(_ref3, 2);
135374
- var c2 = _ref32[0];
135375
- var d2 = _ref32[1];
135376
- return [a2 + c2, b3 + d2];
135377
- }, "plus");
135378
- var minus = /* @__PURE__ */ __name(function minus2(_ref4, _ref5) {
135379
- var _ref42 = _slicedToArray2(_ref4, 2);
135380
- var a2 = _ref42[0];
135381
- var b3 = _ref42[1];
135382
- var _ref52 = _slicedToArray2(_ref5, 2);
135383
- var c2 = _ref52[0];
135384
- var d2 = _ref52[1];
135385
- return [a2 - c2, b3 - d2];
135386
- }, "minus");
135387
- var times = /* @__PURE__ */ __name(function times2(k2, _ref6) {
135388
- var _ref62 = _slicedToArray2(_ref6, 2);
135389
- var a2 = _ref62[0];
135390
- var b3 = _ref62[1];
135391
- return [k2 * a2, k2 * b3];
135392
- }, "times");
135393
- var length = /* @__PURE__ */ __name(function length2(_ref7) {
135394
- var _ref72 = _slicedToArray2(_ref7, 2);
135395
- var a2 = _ref72[0];
135396
- var b3 = _ref72[1];
135397
- return Math.sqrt(a2 * a2 + b3 * b3);
135398
- }, "length");
135399
- var sumVectors = /* @__PURE__ */ __name(function sumVectors2(xs) {
135400
- return xs.reduce(plus, [0, 0]);
135401
- }, "sumVectors");
135402
- var average = /* @__PURE__ */ __name(function average2(points) {
135403
- return times(1 / points.length, points.reduce(plus));
135404
- }, "average");
135405
- var onCircle = /* @__PURE__ */ __name(function onCircle2(r2, angle2) {
135406
- return times(r2, [Math.sin(angle2), -Math.cos(angle2)]);
135407
- }, "onCircle");
135408
- var enhance = /* @__PURE__ */ __name(function enhance2(compute, curve) {
135409
- var obj = compute || {};
135410
- for (var key in obj) {
135411
- var method = obj[key];
135412
- curve[key] = method(curve.index, curve.item, curve.group);
135413
- }
135414
- return curve;
135415
- }, "enhance");
135416
- var range2 = /* @__PURE__ */ __name(function range3(a2, b3, inclusive) {
135417
- var result = [];
135418
- for (var i = a2; i < b3; i++) {
135419
- result.push(i);
135420
- }
135421
- if (inclusive) {
135422
- result.push(b3);
135423
- }
135424
- return result;
135425
- }, "range");
135426
- var mapObject = /* @__PURE__ */ __name(function mapObject2(obj, f2) {
135427
- var result = [];
135428
- var _iteratorNormalCompletion = true;
135429
- var _didIteratorError = false;
135430
- var _iteratorError = void 0;
135431
- try {
135432
- for (var _iterator3 = Object.keys(obj)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator3.next()).done); _iteratorNormalCompletion = true) {
135433
- var k2 = _step.value;
135434
- var v2 = obj[k2];
135435
- result.push(f2(k2, v2));
135436
- }
135437
- } catch (err2) {
135438
- _didIteratorError = true;
135439
- _iteratorError = err2;
135440
- } finally {
135441
- try {
135442
- if (!_iteratorNormalCompletion && _iterator3["return"]) {
135443
- _iterator3["return"]();
135444
- }
135445
- } finally {
135446
- if (_didIteratorError) {
135447
- throw _iteratorError;
135448
- }
135449
- }
135450
- }
135451
- return result;
135452
- }, "mapObject");
135453
- var pairs = /* @__PURE__ */ __name(function pairs2(obj) {
135454
- return mapObject(obj, function(k2, v2) {
135455
- return [k2, v2];
135456
- });
135457
- }, "pairs");
135458
- var id2 = /* @__PURE__ */ __name(function id3(x) {
135459
- return x;
135460
- }, "id");
135461
- exports2.sum = sum2;
135462
- exports2.min = min2;
135463
- exports2.max = max2;
135464
- exports2.sumBy = sumBy;
135465
- exports2.minBy = minBy;
135466
- exports2.maxBy = maxBy;
135467
- exports2.plus = plus;
135468
- exports2.minus = minus;
135469
- exports2.times = times;
135470
- exports2.id = id2;
135471
- exports2.length = length;
135472
- exports2.sumVectors = sumVectors;
135473
- exports2.average = average;
135474
- exports2.onCircle = onCircle;
135475
- exports2.enhance = enhance;
135476
- exports2.range = range2;
135477
- exports2.mapObject = mapObject;
135478
- exports2.pairs = pairs;
135479
- exports2["default"] = {
135480
- sum: sum2,
135481
- min: min2,
135482
- max: max2,
135483
- sumBy,
135484
- minBy,
135485
- maxBy,
135486
- plus,
135487
- minus,
135488
- times,
135489
- id: id2,
135490
- length,
135491
- sumVectors,
135492
- average,
135493
- onCircle,
135494
- enhance,
135495
- range: range2,
135496
- mapObject,
135497
- pairs
135498
- };
135499
- })(ops);
135500
- (function(module2, exports2) {
135501
- Object.defineProperty(exports2, "__esModule", {
135502
- value: true
135503
- });
135504
- function _interopRequireDefault2(obj) {
135505
- return obj && obj.__esModule ? obj : { "default": obj };
135506
- }
135507
- __name(_interopRequireDefault2, "_interopRequireDefault");
135508
- function _toConsumableArray2(arr) {
135509
- if (Array.isArray(arr)) {
135510
- for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++)
135511
- arr2[i] = arr[i];
135512
- return arr2;
135513
- } else {
135514
- return Array.from(arr);
135515
- }
135516
- }
135517
- __name(_toConsumableArray2, "_toConsumableArray");
135518
- var _path = pathExports;
135519
- var _path2 = _interopRequireDefault2(_path);
135520
- var _ops = ops;
135521
- exports2["default"] = function(_ref) {
135522
- var _Path$moveto$arc$lineto, _Path$moveto$arc, _Path$moveto, _Path;
135523
- var center = _ref.center;
135524
- var r2 = _ref.r;
135525
- var R2 = _ref.R;
135526
- var start2 = _ref.start;
135527
- var end2 = _ref.end;
135528
- var epsilon = 1e-4;
135529
- if (Math.abs(end2 - 2 * Math.PI) < epsilon) {
135530
- end2 = 2 * Math.PI - epsilon;
135531
- }
135532
- var a2 = (0, _ops.plus)(center, (0, _ops.onCircle)(R2, start2));
135533
- var b3 = (0, _ops.plus)(center, (0, _ops.onCircle)(R2, end2));
135534
- var c2 = (0, _ops.plus)(center, (0, _ops.onCircle)(r2, end2));
135535
- var d2 = (0, _ops.plus)(center, (0, _ops.onCircle)(r2, start2));
135536
- var large = end2 - start2 > Math.PI ? 1 : 0;
135537
- var path2 = (_Path$moveto$arc$lineto = (_Path$moveto$arc = (_Path$moveto = (_Path = (0, _path2["default"])()).moveto.apply(_Path, _toConsumableArray2(a2))).arc.apply(_Path$moveto, [R2, R2, 0, large, 1].concat(_toConsumableArray2(b3)))).lineto.apply(_Path$moveto$arc, _toConsumableArray2(c2))).arc.apply(_Path$moveto$arc$lineto, [r2, r2, 0, large, 0].concat(_toConsumableArray2(d2))).closepath();
135538
- var midAngle = (start2 + end2) / 2;
135539
- var midRadius = (r2 + R2) / 2;
135540
- var centroid = (0, _ops.plus)(center, (0, _ops.onCircle)(midRadius, midAngle));
135541
- return {
135542
- path: path2,
135543
- centroid
135544
- };
135545
- };
135546
- module2.exports = exports2["default"];
135547
- })(sector$1, sector$1.exports);
135548
- var sectorExports = sector$1.exports;
135549
- const sector = /* @__PURE__ */ getDefaultExportFromCjs(sectorExports);
135550
- function getRangeAnglesSpecial() {
135551
- const _a2 = getRangeAngles.apply(
135552
- this,
135553
- arguments
135554
- ), { endAngle, totalAngle } = _a2, rest = __objRest(_a2, ["endAngle", "totalAngle"]);
135555
- return __spreadValues({
135556
- endAngle: endAngle - 1e-5,
135557
- //we subtract a tiny amount because an angle of 2PI will cause nothing to be drawn!
135558
- totalAngle: totalAngle - 1e-5
135559
- }, rest);
135560
- }
135561
- __name(getRangeAnglesSpecial, "getRangeAnglesSpecial");
135562
- function SelectionLayer({
135563
- isDraggable,
135564
- selectionLayer: selectionLayer2,
135565
- sequenceLength,
135566
- radius,
135567
- hideTitle,
135568
- innerRadius,
135569
- onRightClicked,
135570
- onClick,
135571
- index: index2,
135572
- isProtein: isProtein2
135573
- }) {
135574
- const {
135575
- color: color2,
135576
- start: start2,
135577
- end: end2,
135578
- hideCarets = false,
135579
- style: style2,
135580
- className
135581
- } = selectionLayer2;
135582
- const { startAngle, endAngle, totalAngle } = getRangeAnglesSpecial(
135583
- selectionLayer2,
135584
- sequenceLength
135585
- );
135586
- const section = sector({
135587
- center: [0, 0],
135588
- //the center is always 0,0 for our annotations :) we rotate later!
135589
- r: innerRadius,
135590
- R: radius,
135591
- start: 0,
135592
- end: totalAngle
135593
- });
135594
- const selectionMessage = getSelectionMessage({
135595
- sequenceLength,
135596
- selectionLayer: selectionLayer2,
135597
- isProtein: isProtein2
135598
- });
135599
- const { transform: transform3 } = PositionAnnotationOnCircle({
135600
- sAngle: startAngle,
135601
- eAngle: endAngle,
135602
- height: 0
135603
- });
135604
- return /* @__PURE__ */ React__default$1.createElement(
135605
- "g",
135606
- {
135607
- onContextMenu: (event) => {
135608
- onRightClicked && onRightClicked({
135609
- annotation: selectionLayer2,
135610
- event
135611
- });
135612
- },
135613
- onClick: onClick ? (event) => {
135614
- onClick({
135615
- annotation: selectionLayer2,
135616
- event
135617
- });
135618
- } : void 0,
135619
- key: "veSelectionLayer" + index2,
135620
- className: "veSelectionLayer " + (className || "")
135621
- },
135622
- !hideTitle && /* @__PURE__ */ React__default$1.createElement("title", null, selectionMessage),
135623
- /* @__PURE__ */ React__default$1.createElement(
135624
- "path",
135625
- {
135626
- transform: transform3,
135627
- className: "selectionLayer",
135628
- style: __spreadValues({ opacity: 0.3 }, style2),
135629
- d: section.path.print(),
135630
- fill: color2
135631
- }
135632
- ),
135633
- !hideCarets && /* @__PURE__ */ React__default$1.createElement(
135634
- Caret$1,
135635
- {
135636
- key: "caret1",
135637
- className: className + " selectionLayerCaret " + (isDraggable ? draggableClassnames.selectionStart : ""),
135638
- isSelection: true,
135639
- onClick: onClick ? noop$4 : preventDefaultStopPropagation,
135640
- selectionMessage,
135641
- caretPosition: start2,
135642
- sequenceLength,
135643
- innerRadius,
135644
- outerRadius: radius
135645
- }
135646
- ),
135647
- !hideCarets && /* @__PURE__ */ React__default$1.createElement(
135648
- Caret$1,
135649
- {
135650
- key: "caret2",
135651
- className: className + " selectionLayerCaret " + (isDraggable ? draggableClassnames.selectionEnd : ""),
135652
- isSelection: true,
135653
- onClick: onClick ? noop$4 : preventDefaultStopPropagation,
135654
- selectionMessage,
135655
- caretPosition: end2 + 1,
135656
- sequenceLength,
135657
- innerRadius,
135658
- outerRadius: radius
135659
- }
135660
- )
135661
- );
135662
- }
135663
- __name(SelectionLayer, "SelectionLayer");
135664
- const SelectionLayer$1 = pure(SelectionLayer);
135665
- function Axis({
135666
- radius,
135667
- showAxisNumbers,
135668
- tickMarkHeight = 5,
135669
- textOffset = 15,
135670
- ringThickness = 4,
135671
- zoomLevel
135672
- }) {
135673
- const height2 = (ringThickness + (showAxisNumbers ? textOffset + tickMarkHeight : 0)) / zoomLevel;
135674
- const radiusToUse = showAxisNumbers ? radius + textOffset + tickMarkHeight : radius;
135675
- const component = /* @__PURE__ */ React__default$1.createElement("g", { key: "veAxis", className: "veAxis" }, /* @__PURE__ */ React__default$1.createElement(
135676
- "circle",
135677
- {
135678
- className: "veAxisLine veAxisOuter",
135679
- key: "circleOuter",
135680
- r: radiusToUse + ringThickness,
135681
- style: { fill: "#ffffff00", stroke: "black", strokeWidth: 0.5 }
135682
- }
135683
- ), /* @__PURE__ */ React__default$1.createElement(
135684
- "circle",
135685
- {
135686
- className: "veAxisLine veAxisInner",
135687
- key: "circle",
135688
- r: radiusToUse,
135689
- style: { fill: "#ffffff00", stroke: "black", strokeWidth: 0.5 }
135690
- }
135691
- ));
135692
- return {
135693
- component,
135694
- height: height2
135695
- };
135696
- }
135697
- __name(Axis, "Axis");
135698
135071
  function polarToSpecialCartesian(radius, angleInRadians) {
135699
135072
  return {
135700
135073
  x: radius * Math.cos(angleInRadians - Math.PI / 2),
@@ -135810,30 +135183,6 @@ function drawDirectedPiePiece({
135810
135183
  return path2;
135811
135184
  }
135812
135185
  __name(drawDirectedPiePiece, "drawDirectedPiePiece");
135813
- function CircularPrimer$1({
135814
- color: color2 = "orange",
135815
- radius,
135816
- annotationHeight,
135817
- totalAngle
135818
- }) {
135819
- return /* @__PURE__ */ React__default$1.createElement(
135820
- "path",
135821
- {
135822
- className: "veOrf",
135823
- strokeWidth: ".5",
135824
- stroke: color2,
135825
- fill: color2,
135826
- d: drawDirectedPiePiece({
135827
- radius,
135828
- annotationHeight,
135829
- totalAngle,
135830
- arrowheadLength: 0.4,
135831
- tailThickness: 0.4
135832
- }).print()
135833
- }
135834
- );
135835
- }
135836
- __name(CircularPrimer$1, "CircularPrimer$1");
135837
135186
  function getInternalLabel({
135838
135187
  ellipsizedName,
135839
135188
  id: id2,
@@ -135947,58 +135296,6 @@ function Feature(props) {
135947
135296
  })));
135948
135297
  }
135949
135298
  __name(Feature, "Feature");
135950
- function CircularPrimer(props) {
135951
- const {
135952
- color: color2 = "orange",
135953
- radius,
135954
- arrowheadLength = 0.5,
135955
- annotationHeight,
135956
- totalAngle,
135957
- id: id2,
135958
- labelNeedsFlip,
135959
- ellipsizedName
135960
- } = props;
135961
- const [path2, textPath] = drawDirectedPiePiece({
135962
- radius,
135963
- annotationHeight,
135964
- totalAngle,
135965
- arrowheadLength,
135966
- tailThickness: 1,
135967
- //feature specific
135968
- returnTextPath: true,
135969
- hasLabel: ellipsizedName,
135970
- labelNeedsFlip
135971
- });
135972
- return /* @__PURE__ */ React__default$1.createElement(React__default$1.Fragment, null, getStripedPattern({ color: color2 }), /* @__PURE__ */ React__default$1.createElement(
135973
- "path",
135974
- {
135975
- className: "vePrimer veCircularViewPrimer",
135976
- id: id2,
135977
- strokeWidth: ".5",
135978
- stroke: "black",
135979
- fill: "url(#diagonalHatch)",
135980
- d: path2.print()
135981
- }
135982
- ), getInternalLabel(__spreadProps(__spreadValues({}, props), { colorToUse: color2, textPath })));
135983
- }
135984
- __name(CircularPrimer, "CircularPrimer");
135985
- function Cutsite({
135986
- annotationHeight,
135987
- radius
135988
- // totalAngle,
135989
- // ...rest
135990
- }) {
135991
- return /* @__PURE__ */ React__default$1.createElement(
135992
- "rect",
135993
- {
135994
- className: "veCutsite",
135995
- width: 1,
135996
- y: -radius - 4,
135997
- height: annotationHeight
135998
- }
135999
- );
136000
- }
136001
- __name(Cutsite, "Cutsite");
136002
135299
  function drawAnnotations(props) {
136003
135300
  const {
136004
135301
  readOnly: readOnly2,
@@ -136279,7 +135576,6 @@ function DrawAnnotationInner({
136279
135576
  onMouseLeave,
136280
135577
  onMouseOver
136281
135578
  };
136282
- const title = /* @__PURE__ */ React__default$1.createElement("title", null, titleText);
136283
135579
  function getInner({
136284
135580
  startAngle: startAngle2,
136285
135581
  endAngle: endAngle2,
@@ -136296,11 +135592,12 @@ function DrawAnnotationInner({
136296
135592
  });
136297
135593
  return /* @__PURE__ */ React__default$1.createElement(
136298
135594
  "g",
136299
- __spreadValues({
135595
+ __spreadValues(__spreadProps(__spreadValues({
136300
135596
  transform: transform3,
135597
+ "data-title": noTitle ? null : titleText
135598
+ }, avoidOverlapWith), {
136301
135599
  key: isNotLocation ? "notLocation" : "location--" + annotation.id + "--" + i
136302
- }, sharedProps),
136303
- noTitle ? null : title,
135600
+ }), sharedProps),
136304
135601
  /* @__PURE__ */ React__default$1.createElement(
136305
135602
  Annotation,
136306
135603
  __spreadValues(__spreadValues(__spreadProps(__spreadValues({}, passAnnotation && { annotation }), {
@@ -136333,6 +135630,964 @@ function DrawAnnotationInner({
136333
135630
  }
136334
135631
  __name(DrawAnnotationInner, "DrawAnnotationInner");
136335
135632
  const DrawAnnotation = withHover(DrawAnnotationInner);
135633
+ const avoidOverlapWith = {
135634
+ "data-avoid": ".topLevelLabelGroup",
135635
+ "data-avoid-backup": ".veLabel.veAnnotationHovered"
135636
+ };
135637
+ const fontWidthToFontSize = 1.75;
135638
+ const getTextLength = /* @__PURE__ */ __name((text2) => {
135639
+ let len = (text2 || "Unlabeled").length;
135640
+ const nonEnInputReg = /[^\x00-\xff]+/g;
135641
+ const nonEnStrings = (text2 || "Unlabeled").match(nonEnInputReg) || [];
135642
+ nonEnStrings.forEach((str) => len += str.length * 0.5);
135643
+ return len;
135644
+ }, "getTextLength");
135645
+ function Labels({
135646
+ labels = [],
135647
+ extraSideSpace,
135648
+ smartCircViewLabelRender,
135649
+ radius: outerRadius,
135650
+ editorName,
135651
+ noRedux,
135652
+ rotationRadians,
135653
+ textScalingFactor,
135654
+ labelLineIntensity: labelLineIntensity2,
135655
+ labelSize: labelSize2 = 8,
135656
+ fontHeightMultiplier = 2.4,
135657
+ circularViewWidthVsHeightRatio,
135658
+ //width of the circular view
135659
+ condenseOverflowingXLabels = true
135660
+ //set to true to make labels tha
135661
+ }) {
135662
+ if (!labels.length) {
135663
+ return {
135664
+ component: null,
135665
+ height: 15
135666
+ };
135667
+ }
135668
+ const originalOuterRadius = outerRadius;
135669
+ outerRadius += smartCircViewLabelRender ? 10 : 25;
135670
+ const radius = outerRadius;
135671
+ const outerPointRadius = outerRadius - 20;
135672
+ const fontWidth = labelSize2 * (textScalingFactor < 1 ? textScalingFactor : 1);
135673
+ const fontHeight = fontWidth * lodashExports.clamp(fontHeightMultiplier, 1.5, 3.5);
135674
+ const labelPoints = labels.map(function(label) {
135675
+ const {
135676
+ annotationCenterAngle: _annotationCenterAngle,
135677
+ annotationCenterRadius
135678
+ } = label;
135679
+ const annotationCenterAngle = _annotationCenterAngle + (rotationRadians || 0);
135680
+ return __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, label), {
135681
+ width: getTextLength(label.text) * fontWidth,
135682
+ //three points define the label:
135683
+ innerPoint: __spreadProps(__spreadValues({}, polarToSpecialCartesian$1(
135684
+ annotationCenterRadius,
135685
+ annotationCenterAngle
135686
+ )), {
135687
+ radius: annotationCenterRadius,
135688
+ angle: annotationCenterAngle
135689
+ }),
135690
+ truncatedInnerPoint: __spreadProps(__spreadValues({}, polarToSpecialCartesian$1(
135691
+ outerPointRadius - 15,
135692
+ annotationCenterAngle
135693
+ )), {
135694
+ radius: outerPointRadius - 15,
135695
+ angle: annotationCenterAngle
135696
+ }),
135697
+ outerPoint: __spreadProps(__spreadValues({}, polarToSpecialCartesian$1(outerPointRadius, annotationCenterAngle)), {
135698
+ radius: outerPointRadius,
135699
+ angle: annotationCenterAngle
135700
+ })
135701
+ }), polarToSpecialCartesian$1(radius, annotationCenterAngle)), {
135702
+ radius: radius + 10,
135703
+ angle: annotationCenterAngle
135704
+ });
135705
+ }).map(function(label) {
135706
+ label.labelAndSublabels = [label];
135707
+ label.labelIds = { [label.id]: true };
135708
+ return label;
135709
+ });
135710
+ let maxRadius = 1;
135711
+ const groupedLabels = relaxLabelAngles(labelPoints, fontHeight, outerRadius).filter((l2) => !!l2).map((originalLabel) => {
135712
+ if (smartCircViewLabelRender) {
135713
+ const newR = Math.sqrt(
135714
+ Math.pow(
135715
+ Math.abs(originalLabel.x) + Math.max(0, originalLabel.text.length * 11 - extraSideSpace / 2),
135716
+ 2
135717
+ ) + Math.pow(Math.abs(originalLabel.y), 2)
135718
+ );
135719
+ if (newR > maxRadius)
135720
+ maxRadius = newR;
135721
+ }
135722
+ if (originalLabel.highPriorityLabel) {
135723
+ return originalLabel;
135724
+ }
135725
+ const _highPrioritySublabel = originalLabel.labelAndSublabels.find(
135726
+ (l2) => l2.highPriorityLabel
135727
+ );
135728
+ if (_highPrioritySublabel) {
135729
+ const highPrioritySublabel = lodashExports.cloneDeep(_highPrioritySublabel);
135730
+ [
135731
+ "angle",
135732
+ "annotationCenterAngle",
135733
+ "annotationCenterRadius",
135734
+ "innerPoint",
135735
+ "labelAndSublabels",
135736
+ "labelIds",
135737
+ "outerPoint",
135738
+ "radius",
135739
+ "truncatedInnerPoint",
135740
+ "x",
135741
+ "y"
135742
+ ].forEach((k2) => {
135743
+ highPrioritySublabel[k2] = originalLabel[k2];
135744
+ });
135745
+ delete originalLabel.labelAndSublabels;
135746
+ return highPrioritySublabel;
135747
+ }
135748
+ return originalLabel;
135749
+ });
135750
+ window.isLabelGroupOpen = false;
135751
+ return {
135752
+ component: /* @__PURE__ */ React__default$1.createElement(
135753
+ "g",
135754
+ {
135755
+ key: "veLabels",
135756
+ className: "veLabels ve-monospace-font",
135757
+ transform: `rotate(-${rotationRadians * 180 / Math.PI})`
135758
+ },
135759
+ /* @__PURE__ */ React__default$1.createElement(
135760
+ DrawGroupedLabels,
135761
+ __spreadValues({}, {
135762
+ editorName,
135763
+ noRedux,
135764
+ groupedLabels,
135765
+ circularViewWidthVsHeightRatio,
135766
+ fontWidth,
135767
+ fontHeight,
135768
+ condenseOverflowingXLabels,
135769
+ outerRadius,
135770
+ labelLineIntensity: labelLineIntensity2
135771
+ })
135772
+ )
135773
+ ),
135774
+ //we use the <use> tag to position the hovered label group at the top of the stack
135775
+ //point events: none is to fix a click bug..
135776
+ //http://stackoverflow.com/questions/24078524/svg-click-events-not-firing-bubbling-when-using-use-element
135777
+ height: smartCircViewLabelRender ? Math.min(105, maxRadius - originalOuterRadius) : 120
135778
+ };
135779
+ }
135780
+ __name(Labels, "Labels");
135781
+ const DrawLabelGroup = withHover(function({
135782
+ hovered,
135783
+ className,
135784
+ label,
135785
+ labelAndSublabels,
135786
+ fontWidth,
135787
+ noRedux,
135788
+ fontHeight,
135789
+ outerRadius,
135790
+ onMouseLeave,
135791
+ onMouseOver,
135792
+ editorName,
135793
+ circularViewWidthVsHeightRatio,
135794
+ condenseOverflowingXLabels,
135795
+ hoveredId,
135796
+ labelLineIntensity: labelLineIntensity2,
135797
+ // labelIds,
135798
+ multipleLabels
135799
+ // isIdHashmap,
135800
+ }) {
135801
+ let { text: text2 = "Unlabeled" } = label;
135802
+ const textLength = getTextLength(text2);
135803
+ let groupLabelXStart;
135804
+ if (label.labelAndSublabels && label.labelAndSublabels.length > 1) {
135805
+ text2 = "+" + (label.labelAndSublabels.length - 1) + "," + text2;
135806
+ }
135807
+ const labelLength = textLength * fontWidth;
135808
+ const maxLabelLength = labelAndSublabels.reduce(function(currentLength, { text: text22 = "Unlabeled" }) {
135809
+ const _textLength = getTextLength(text22);
135810
+ if (_textLength > currentLength) {
135811
+ return _textLength;
135812
+ }
135813
+ return currentLength;
135814
+ }, 0);
135815
+ const maxLabelWidth = maxLabelLength * fontWidth;
135816
+ const labelOnLeft = label.angle > Math.PI;
135817
+ let labelXStart = label.x - (labelOnLeft ? labelLength : 0);
135818
+ if (condenseOverflowingXLabels) {
135819
+ const distancePastBoundary = Math.abs(label.x + (labelOnLeft ? -labelLength : labelLength)) - (outerRadius + 90) * Math.max(1, circularViewWidthVsHeightRatio);
135820
+ if (distancePastBoundary > 0) {
135821
+ const numberOfCharsToChop = Math.ceil(distancePastBoundary / fontWidth) + 2;
135822
+ text2 = text2.slice(0, -numberOfCharsToChop) + "..";
135823
+ groupLabelXStart = labelXStart + (labelOnLeft ? distancePastBoundary : -distancePastBoundary);
135824
+ labelXStart += labelOnLeft ? distancePastBoundary : 0;
135825
+ }
135826
+ }
135827
+ const dy = fontHeight;
135828
+ const textYStart = label.y + dy / 2;
135829
+ let content2;
135830
+ const labelClass = ` veLabelText veLabel veCircularViewLabelText clickable ${label.color} `;
135831
+ if ((multipleLabels || groupLabelXStart !== void 0) && hovered) {
135832
+ window.isLabelGroupOpen = true;
135833
+ let hoveredLabel;
135834
+ if (groupLabelXStart !== void 0) {
135835
+ labelXStart = groupLabelXStart;
135836
+ }
135837
+ labelAndSublabels.some(function(label2) {
135838
+ if (label2.id === hoveredId) {
135839
+ hoveredLabel = label2;
135840
+ return true;
135841
+ }
135842
+ return false;
135843
+ });
135844
+ if (!hoveredLabel) {
135845
+ hoveredLabel = label;
135846
+ }
135847
+ let labelYStart = label.y;
135848
+ const labelGroupHeight = labelAndSublabels.length * dy;
135849
+ const labelGroupBottom = label.y + labelGroupHeight;
135850
+ if (labelGroupBottom > outerRadius + 20) {
135851
+ labelYStart -= (label.labelAndSublabels.length - 1) * dy;
135852
+ }
135853
+ const line = LabelLine(
135854
+ [
135855
+ hoveredLabel.innerPoint,
135856
+ // hoveredLabel.labelAndSublabels &&
135857
+ // hoveredLabel.labelAndSublabels.length > 0
135858
+ // ? hoveredLabel.outerPoint
135859
+ // : {},
135860
+ label
135861
+ ],
135862
+ { style: { opacity: 1 }, strokeWidth: 2 }
135863
+ );
135864
+ content2 = [
135865
+ line,
135866
+ /* @__PURE__ */ React__default$1.createElement(PutMyParentOnTop, { editorName, key: "gGroup" }, /* @__PURE__ */ React__default$1.createElement("g", { className: className + " veLabel topLevelLabelGroup" }, /* @__PURE__ */ React__default$1.createElement(
135867
+ "rect",
135868
+ {
135869
+ onMouseOver: cancelFn,
135870
+ x: labelXStart - 4,
135871
+ y: labelYStart - dy / 2,
135872
+ width: maxLabelWidth + 24,
135873
+ height: labelGroupHeight + 4,
135874
+ fill: "white",
135875
+ stroke: "black"
135876
+ }
135877
+ ), /* @__PURE__ */ React__default$1.createElement(
135878
+ "text",
135879
+ {
135880
+ x: labelXStart,
135881
+ y: labelYStart,
135882
+ style: {
135883
+ fontSize: fontWidth * fontWidthToFontSize,
135884
+ fontStyle: label.fontStyle
135885
+ }
135886
+ },
135887
+ labelAndSublabels.map(function(label2, index2) {
135888
+ return /* @__PURE__ */ React__default$1.createElement(
135889
+ DrawGroupInnerLabel,
135890
+ __spreadValues({
135891
+ isSubLabel: true,
135892
+ noRedux,
135893
+ editorName,
135894
+ logHover: true,
135895
+ key: "labelItem" + index2,
135896
+ className: (label2.className || "") + labelClass + " veDrawGroupInnerLabel",
135897
+ id: label2.id
135898
+ }, { labelXStart, label: label2, fontWidth, index: index2, dy })
135899
+ );
135900
+ })
135901
+ )))
135902
+ ];
135903
+ } else {
135904
+ content2 = [
135905
+ // <title key="labeltitle">{label.title || label.text}</title>,
135906
+ /* @__PURE__ */ React__default$1.createElement(
135907
+ "text",
135908
+ __spreadProps(__spreadValues({
135909
+ key: "text",
135910
+ "data-title": label.title || label.text
135911
+ }, avoidOverlapWith), {
135912
+ x: labelXStart,
135913
+ textLength: getTextLength(text2) * fontWidth,
135914
+ lengthAdjust: "spacing",
135915
+ className: labelClass + label.className + (hovered ? " veAnnotationHovered" : ""),
135916
+ y: textYStart,
135917
+ style: {
135918
+ fontSize: fontWidth * fontWidthToFontSize,
135919
+ fontStyle: label.fontStyle,
135920
+ fill: label.color || "black"
135921
+ // stroke: label.color ? label.color : "black"
135922
+ }
135923
+ }),
135924
+ text2
135925
+ ),
135926
+ LabelLine(
135927
+ [
135928
+ label.innerPoint,
135929
+ // hovered || label.annotationType === "part" //because parts live on the outside of the sequence, we don't need to show the truncated point, we can just point to them directly
135930
+ // ? label.innerPoint
135931
+ // : label.truncatedInnerPoint,
135932
+ label.outerPoint,
135933
+ label
135934
+ ],
135935
+ hovered ? { style: { opacity: 1 }, strokeWidth: 2 } : { style: { opacity: labelLineIntensity2 } }
135936
+ )
135937
+ ];
135938
+ }
135939
+ return /* @__PURE__ */ React__default$1.createElement(
135940
+ "g",
135941
+ __spreadValues(__spreadValues({}, { onMouseLeave, onMouseOver }), {
135942
+ onClick: label.onClick,
135943
+ onDoubleClick: label.onDoubleClick || lodashExports.noop,
135944
+ onContextMenu: label.onContextMenu || lodashExports.noop
135945
+ }),
135946
+ content2
135947
+ );
135948
+ });
135949
+ function LabelLine(pointArray, options) {
135950
+ let points = "";
135951
+ pointArray.forEach(function({ x, y: y2 }) {
135952
+ if (!x && x !== 0)
135953
+ return;
135954
+ points += `${x},${y2} `;
135955
+ });
135956
+ return /* @__PURE__ */ React__default$1.createElement(React__default$1.Fragment, { key: "labelLine" }, /* @__PURE__ */ React__default$1.createElement(
135957
+ "polyline",
135958
+ __spreadValues({}, __spreadValues({
135959
+ key: "polyline-long",
135960
+ points,
135961
+ stroke: "black",
135962
+ fill: "none",
135963
+ strokeWidth: 1,
135964
+ className: "veLabelLine"
135965
+ }, options))
135966
+ ));
135967
+ }
135968
+ __name(LabelLine, "LabelLine");
135969
+ const DrawGroupInnerLabel = withHover(
135970
+ ({ className, labelXStart, label, fontWidth, onMouseOver, index: index2, dy }) => {
135971
+ return /* @__PURE__ */ React__default$1.createElement(
135972
+ "tspan",
135973
+ __spreadProps(__spreadValues(__spreadProps(__spreadValues({
135974
+ "data-title": label.title
135975
+ }, avoidOverlapWith), {
135976
+ x: labelXStart,
135977
+ textLength: getTextLength(label.text) * fontWidth,
135978
+ lengthAdjust: "spacing",
135979
+ onClick: label.onClick,
135980
+ onDoubleClick: (e2) => {
135981
+ e2.stopPropagation();
135982
+ label.onDoubleClick && label.onDoubleClick(e2);
135983
+ },
135984
+ onContextMenu: label.onContextMenu,
135985
+ dy: index2 === 0 ? dy / 2 : dy,
135986
+ style: {
135987
+ fill: label.color ? label.color : "black",
135988
+ fontStyle: label.fontStyle
135989
+ }
135990
+ }), { onMouseOver }), {
135991
+ className
135992
+ }),
135993
+ label.text
135994
+ );
135995
+ }
135996
+ );
135997
+ const DrawGroupedLabels = /* @__PURE__ */ __name(function DrawGroupedLabelsInner({
135998
+ groupedLabels,
135999
+ circularViewWidthVsHeightRatio,
136000
+ fontWidth,
136001
+ noRedux,
136002
+ fontHeight,
136003
+ condenseOverflowingXLabels,
136004
+ outerRadius,
136005
+ editorName,
136006
+ labelLineIntensity: labelLineIntensity2
136007
+ }) {
136008
+ return groupedLabels.map(function(label, i) {
136009
+ const { labelAndSublabels, labelIds } = label;
136010
+ const multipleLabels = labelAndSublabels.length > 1;
136011
+ return /* @__PURE__ */ React__default$1.createElement(
136012
+ DrawLabelGroup,
136013
+ __spreadValues({
136014
+ key: i,
136015
+ id: labelIds
136016
+ }, {
136017
+ label,
136018
+ noRedux,
136019
+ passHoveredId: true,
136020
+ //needed to get the hoveredId
136021
+ isLabelGroup: true,
136022
+ className: "DrawLabelGroup",
136023
+ multipleLabels,
136024
+ labelAndSublabels,
136025
+ labelIds,
136026
+ circularViewWidthVsHeightRatio,
136027
+ fontWidth,
136028
+ editorName,
136029
+ fontHeight,
136030
+ condenseOverflowingXLabels,
136031
+ outerRadius,
136032
+ labelLineIntensity: labelLineIntensity2
136033
+ })
136034
+ );
136035
+ });
136036
+ }, "DrawGroupedLabelsInner");
136037
+ function cancelFn(e2) {
136038
+ e2.stopPropagation();
136039
+ }
136040
+ __name(cancelFn, "cancelFn");
136041
+ const _PutMyParentOnTop = class _PutMyParentOnTop extends React__default$1.Component {
136042
+ componentDidMount() {
136043
+ const { editorName } = this.props;
136044
+ try {
136045
+ const el = document.querySelector(
136046
+ `.veEditor.${editorName} .topLevelLabelGroup`
136047
+ );
136048
+ const parent2 = el.parentElement.parentElement;
136049
+ const i = Array.prototype.indexOf.call(parent2.children, el.parentElement);
136050
+ parent2.insertBefore(parent2.children[i], null);
136051
+ } catch (error) {
136052
+ console.warn(
136053
+ "OVE-975239 - hit an error trying to re-order labels:",
136054
+ error
136055
+ );
136056
+ }
136057
+ }
136058
+ render() {
136059
+ return this.props.children;
136060
+ }
136061
+ };
136062
+ __name(_PutMyParentOnTop, "PutMyParentOnTop");
136063
+ let PutMyParentOnTop = _PutMyParentOnTop;
136064
+ var baseGetTag = _baseGetTag, isObjectLike = isObjectLike_1;
136065
+ var numberTag = "[object Number]";
136066
+ function isNumber(value) {
136067
+ return typeof value == "number" || isObjectLike(value) && baseGetTag(value) == numberTag;
136068
+ }
136069
+ __name(isNumber, "isNumber");
136070
+ var isNumber_1 = isNumber;
136071
+ const isNumber$1 = /* @__PURE__ */ getDefaultExportFromCjs(isNumber_1);
136072
+ function Caret({
136073
+ caretPosition: caretPosition2,
136074
+ sequenceLength,
136075
+ className,
136076
+ onClick,
136077
+ isSelection,
136078
+ innerRadius,
136079
+ outerRadius,
136080
+ isProtein: isProtein2,
136081
+ selectionMessage
136082
+ }) {
136083
+ const { startAngle, endAngle } = getRangeAngles(
136084
+ { start: caretPosition2, end: caretPosition2 },
136085
+ sequenceLength || 1
136086
+ );
136087
+ if (!isNumber$1(startAngle)) {
136088
+ console.error("we've got a problem!");
136089
+ }
136090
+ const { transform: transform3 } = PositionAnnotationOnCircle({
136091
+ sAngle: startAngle,
136092
+ eAngle: endAngle,
136093
+ height: 0
136094
+ });
136095
+ return /* @__PURE__ */ React__default$1.createElement(
136096
+ "g",
136097
+ {
136098
+ onClick,
136099
+ transform: transform3,
136100
+ className: className + " veCaret " + draggableClassnames.caret
136101
+ },
136102
+ /* @__PURE__ */ React__default$1.createElement("title", null, selectionMessage || getSelectionMessage({ caretPosition: caretPosition2, isProtein: isProtein2, sequenceLength })),
136103
+ /* @__PURE__ */ React__default$1.createElement(
136104
+ "line",
136105
+ {
136106
+ strokeWidth: "1.5px",
136107
+ x1: 0,
136108
+ y1: -innerRadius,
136109
+ x2: 0,
136110
+ y2: -outerRadius
136111
+ }
136112
+ ),
136113
+ isSelection ? /* @__PURE__ */ React__default$1.createElement(
136114
+ "polygon",
136115
+ {
136116
+ className: "vePolygonCaretHandle",
136117
+ fill: "black",
136118
+ points: `0,${-outerRadius + 2} 5,${-outerRadius - 10} -5,${-outerRadius - 10}`
136119
+ }
136120
+ ) : null
136121
+ );
136122
+ }
136123
+ __name(Caret, "Caret");
136124
+ const Caret$1 = pure(Caret);
136125
+ var sector$1 = { exports: {} };
136126
+ var ops = {};
136127
+ (function(exports2) {
136128
+ Object.defineProperty(exports2, "__esModule", {
136129
+ value: true
136130
+ });
136131
+ var _slicedToArray2 = function() {
136132
+ function sliceIterator(arr, i) {
136133
+ var _arr = [];
136134
+ var _n = true;
136135
+ var _d = false;
136136
+ var _e = void 0;
136137
+ try {
136138
+ for (var _i = arr[Symbol.iterator](), _s2; !(_n = (_s2 = _i.next()).done); _n = true) {
136139
+ _arr.push(_s2.value);
136140
+ if (i && _arr.length === i)
136141
+ break;
136142
+ }
136143
+ } catch (err2) {
136144
+ _d = true;
136145
+ _e = err2;
136146
+ } finally {
136147
+ try {
136148
+ if (!_n && _i["return"])
136149
+ _i["return"]();
136150
+ } finally {
136151
+ if (_d)
136152
+ throw _e;
136153
+ }
136154
+ }
136155
+ return _arr;
136156
+ }
136157
+ __name(sliceIterator, "sliceIterator");
136158
+ return function(arr, i) {
136159
+ if (Array.isArray(arr)) {
136160
+ return arr;
136161
+ } else if (Symbol.iterator in Object(arr)) {
136162
+ return sliceIterator(arr, i);
136163
+ } else {
136164
+ throw new TypeError("Invalid attempt to destructure non-iterable instance");
136165
+ }
136166
+ };
136167
+ }();
136168
+ var sum2 = /* @__PURE__ */ __name(function sum3(xs) {
136169
+ return xs.reduce(function(a2, b3) {
136170
+ return a2 + b3;
136171
+ }, 0);
136172
+ }, "sum");
136173
+ var min2 = /* @__PURE__ */ __name(function min3(xs) {
136174
+ return xs.reduce(function(a2, b3) {
136175
+ return Math.min(a2, b3);
136176
+ });
136177
+ }, "min");
136178
+ var max2 = /* @__PURE__ */ __name(function max3(xs) {
136179
+ return xs.reduce(function(a2, b3) {
136180
+ return Math.max(a2, b3);
136181
+ });
136182
+ }, "max");
136183
+ var sumBy = /* @__PURE__ */ __name(function sumBy2(xs, f2) {
136184
+ return xs.reduce(function(a2, b3) {
136185
+ return a2 + f2(b3);
136186
+ }, 0);
136187
+ }, "sumBy");
136188
+ var minBy = /* @__PURE__ */ __name(function minBy2(xs, f2) {
136189
+ return xs.reduce(function(a2, b3) {
136190
+ return Math.min(a2, f2(b3));
136191
+ }, Infinity);
136192
+ }, "minBy");
136193
+ var maxBy = /* @__PURE__ */ __name(function maxBy2(xs, f2) {
136194
+ return xs.reduce(function(a2, b3) {
136195
+ return Math.max(a2, f2(b3));
136196
+ }, -Infinity);
136197
+ }, "maxBy");
136198
+ var plus = /* @__PURE__ */ __name(function plus2(_ref, _ref3) {
136199
+ var _ref2 = _slicedToArray2(_ref, 2);
136200
+ var a2 = _ref2[0];
136201
+ var b3 = _ref2[1];
136202
+ var _ref32 = _slicedToArray2(_ref3, 2);
136203
+ var c2 = _ref32[0];
136204
+ var d2 = _ref32[1];
136205
+ return [a2 + c2, b3 + d2];
136206
+ }, "plus");
136207
+ var minus = /* @__PURE__ */ __name(function minus2(_ref4, _ref5) {
136208
+ var _ref42 = _slicedToArray2(_ref4, 2);
136209
+ var a2 = _ref42[0];
136210
+ var b3 = _ref42[1];
136211
+ var _ref52 = _slicedToArray2(_ref5, 2);
136212
+ var c2 = _ref52[0];
136213
+ var d2 = _ref52[1];
136214
+ return [a2 - c2, b3 - d2];
136215
+ }, "minus");
136216
+ var times = /* @__PURE__ */ __name(function times2(k2, _ref6) {
136217
+ var _ref62 = _slicedToArray2(_ref6, 2);
136218
+ var a2 = _ref62[0];
136219
+ var b3 = _ref62[1];
136220
+ return [k2 * a2, k2 * b3];
136221
+ }, "times");
136222
+ var length = /* @__PURE__ */ __name(function length2(_ref7) {
136223
+ var _ref72 = _slicedToArray2(_ref7, 2);
136224
+ var a2 = _ref72[0];
136225
+ var b3 = _ref72[1];
136226
+ return Math.sqrt(a2 * a2 + b3 * b3);
136227
+ }, "length");
136228
+ var sumVectors = /* @__PURE__ */ __name(function sumVectors2(xs) {
136229
+ return xs.reduce(plus, [0, 0]);
136230
+ }, "sumVectors");
136231
+ var average = /* @__PURE__ */ __name(function average2(points) {
136232
+ return times(1 / points.length, points.reduce(plus));
136233
+ }, "average");
136234
+ var onCircle = /* @__PURE__ */ __name(function onCircle2(r2, angle2) {
136235
+ return times(r2, [Math.sin(angle2), -Math.cos(angle2)]);
136236
+ }, "onCircle");
136237
+ var enhance = /* @__PURE__ */ __name(function enhance2(compute, curve) {
136238
+ var obj = compute || {};
136239
+ for (var key in obj) {
136240
+ var method = obj[key];
136241
+ curve[key] = method(curve.index, curve.item, curve.group);
136242
+ }
136243
+ return curve;
136244
+ }, "enhance");
136245
+ var range2 = /* @__PURE__ */ __name(function range3(a2, b3, inclusive) {
136246
+ var result = [];
136247
+ for (var i = a2; i < b3; i++) {
136248
+ result.push(i);
136249
+ }
136250
+ if (inclusive) {
136251
+ result.push(b3);
136252
+ }
136253
+ return result;
136254
+ }, "range");
136255
+ var mapObject = /* @__PURE__ */ __name(function mapObject2(obj, f2) {
136256
+ var result = [];
136257
+ var _iteratorNormalCompletion = true;
136258
+ var _didIteratorError = false;
136259
+ var _iteratorError = void 0;
136260
+ try {
136261
+ for (var _iterator3 = Object.keys(obj)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator3.next()).done); _iteratorNormalCompletion = true) {
136262
+ var k2 = _step.value;
136263
+ var v2 = obj[k2];
136264
+ result.push(f2(k2, v2));
136265
+ }
136266
+ } catch (err2) {
136267
+ _didIteratorError = true;
136268
+ _iteratorError = err2;
136269
+ } finally {
136270
+ try {
136271
+ if (!_iteratorNormalCompletion && _iterator3["return"]) {
136272
+ _iterator3["return"]();
136273
+ }
136274
+ } finally {
136275
+ if (_didIteratorError) {
136276
+ throw _iteratorError;
136277
+ }
136278
+ }
136279
+ }
136280
+ return result;
136281
+ }, "mapObject");
136282
+ var pairs = /* @__PURE__ */ __name(function pairs2(obj) {
136283
+ return mapObject(obj, function(k2, v2) {
136284
+ return [k2, v2];
136285
+ });
136286
+ }, "pairs");
136287
+ var id2 = /* @__PURE__ */ __name(function id3(x) {
136288
+ return x;
136289
+ }, "id");
136290
+ exports2.sum = sum2;
136291
+ exports2.min = min2;
136292
+ exports2.max = max2;
136293
+ exports2.sumBy = sumBy;
136294
+ exports2.minBy = minBy;
136295
+ exports2.maxBy = maxBy;
136296
+ exports2.plus = plus;
136297
+ exports2.minus = minus;
136298
+ exports2.times = times;
136299
+ exports2.id = id2;
136300
+ exports2.length = length;
136301
+ exports2.sumVectors = sumVectors;
136302
+ exports2.average = average;
136303
+ exports2.onCircle = onCircle;
136304
+ exports2.enhance = enhance;
136305
+ exports2.range = range2;
136306
+ exports2.mapObject = mapObject;
136307
+ exports2.pairs = pairs;
136308
+ exports2["default"] = {
136309
+ sum: sum2,
136310
+ min: min2,
136311
+ max: max2,
136312
+ sumBy,
136313
+ minBy,
136314
+ maxBy,
136315
+ plus,
136316
+ minus,
136317
+ times,
136318
+ id: id2,
136319
+ length,
136320
+ sumVectors,
136321
+ average,
136322
+ onCircle,
136323
+ enhance,
136324
+ range: range2,
136325
+ mapObject,
136326
+ pairs
136327
+ };
136328
+ })(ops);
136329
+ (function(module2, exports2) {
136330
+ Object.defineProperty(exports2, "__esModule", {
136331
+ value: true
136332
+ });
136333
+ function _interopRequireDefault2(obj) {
136334
+ return obj && obj.__esModule ? obj : { "default": obj };
136335
+ }
136336
+ __name(_interopRequireDefault2, "_interopRequireDefault");
136337
+ function _toConsumableArray2(arr) {
136338
+ if (Array.isArray(arr)) {
136339
+ for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++)
136340
+ arr2[i] = arr[i];
136341
+ return arr2;
136342
+ } else {
136343
+ return Array.from(arr);
136344
+ }
136345
+ }
136346
+ __name(_toConsumableArray2, "_toConsumableArray");
136347
+ var _path = pathExports;
136348
+ var _path2 = _interopRequireDefault2(_path);
136349
+ var _ops = ops;
136350
+ exports2["default"] = function(_ref) {
136351
+ var _Path$moveto$arc$lineto, _Path$moveto$arc, _Path$moveto, _Path;
136352
+ var center = _ref.center;
136353
+ var r2 = _ref.r;
136354
+ var R2 = _ref.R;
136355
+ var start2 = _ref.start;
136356
+ var end2 = _ref.end;
136357
+ var epsilon = 1e-4;
136358
+ if (Math.abs(end2 - 2 * Math.PI) < epsilon) {
136359
+ end2 = 2 * Math.PI - epsilon;
136360
+ }
136361
+ var a2 = (0, _ops.plus)(center, (0, _ops.onCircle)(R2, start2));
136362
+ var b3 = (0, _ops.plus)(center, (0, _ops.onCircle)(R2, end2));
136363
+ var c2 = (0, _ops.plus)(center, (0, _ops.onCircle)(r2, end2));
136364
+ var d2 = (0, _ops.plus)(center, (0, _ops.onCircle)(r2, start2));
136365
+ var large = end2 - start2 > Math.PI ? 1 : 0;
136366
+ var path2 = (_Path$moveto$arc$lineto = (_Path$moveto$arc = (_Path$moveto = (_Path = (0, _path2["default"])()).moveto.apply(_Path, _toConsumableArray2(a2))).arc.apply(_Path$moveto, [R2, R2, 0, large, 1].concat(_toConsumableArray2(b3)))).lineto.apply(_Path$moveto$arc, _toConsumableArray2(c2))).arc.apply(_Path$moveto$arc$lineto, [r2, r2, 0, large, 0].concat(_toConsumableArray2(d2))).closepath();
136367
+ var midAngle = (start2 + end2) / 2;
136368
+ var midRadius = (r2 + R2) / 2;
136369
+ var centroid = (0, _ops.plus)(center, (0, _ops.onCircle)(midRadius, midAngle));
136370
+ return {
136371
+ path: path2,
136372
+ centroid
136373
+ };
136374
+ };
136375
+ module2.exports = exports2["default"];
136376
+ })(sector$1, sector$1.exports);
136377
+ var sectorExports = sector$1.exports;
136378
+ const sector = /* @__PURE__ */ getDefaultExportFromCjs(sectorExports);
136379
+ function SelectionLayer({
136380
+ isDraggable,
136381
+ selectionLayer: selectionLayer2,
136382
+ sequenceLength,
136383
+ radius,
136384
+ hideTitle,
136385
+ innerRadius,
136386
+ onRightClicked,
136387
+ onClick,
136388
+ index: index2,
136389
+ isProtein: isProtein2
136390
+ }) {
136391
+ const {
136392
+ color: color2,
136393
+ start: start2,
136394
+ end: end2,
136395
+ hideCarets = false,
136396
+ style: style2,
136397
+ className
136398
+ } = selectionLayer2;
136399
+ const { startAngle, endAngle, totalAngle } = getRangeAnglesSpecial(
136400
+ selectionLayer2,
136401
+ sequenceLength
136402
+ );
136403
+ const section = sector({
136404
+ center: [0, 0],
136405
+ //the center is always 0,0 for our annotations :) we rotate later!
136406
+ r: innerRadius,
136407
+ R: radius,
136408
+ start: 0,
136409
+ end: totalAngle
136410
+ });
136411
+ const selectionMessage = getSelectionMessage({
136412
+ sequenceLength,
136413
+ selectionLayer: selectionLayer2,
136414
+ isProtein: isProtein2
136415
+ });
136416
+ const { transform: transform3 } = PositionAnnotationOnCircle({
136417
+ sAngle: startAngle,
136418
+ eAngle: endAngle,
136419
+ height: 0
136420
+ });
136421
+ return /* @__PURE__ */ React__default$1.createElement(
136422
+ "g",
136423
+ {
136424
+ onContextMenu: (event) => {
136425
+ onRightClicked && onRightClicked({
136426
+ annotation: selectionLayer2,
136427
+ event
136428
+ });
136429
+ },
136430
+ onClick: onClick ? (event) => {
136431
+ onClick({
136432
+ annotation: selectionLayer2,
136433
+ event
136434
+ });
136435
+ } : void 0,
136436
+ key: "veSelectionLayer" + index2,
136437
+ className: "veSelectionLayer " + (className || "")
136438
+ },
136439
+ !hideTitle && /* @__PURE__ */ React__default$1.createElement("title", null, selectionMessage),
136440
+ /* @__PURE__ */ React__default$1.createElement(
136441
+ "path",
136442
+ {
136443
+ transform: transform3,
136444
+ className: "selectionLayer",
136445
+ style: __spreadValues({ opacity: 0.3 }, style2),
136446
+ d: section.path.print(),
136447
+ fill: color2
136448
+ }
136449
+ ),
136450
+ !hideCarets && /* @__PURE__ */ React__default$1.createElement(
136451
+ Caret$1,
136452
+ {
136453
+ key: "caret1",
136454
+ className: className + " selectionLayerCaret " + (isDraggable ? draggableClassnames.selectionStart : ""),
136455
+ isSelection: true,
136456
+ onClick: onClick ? noop$4 : preventDefaultStopPropagation,
136457
+ selectionMessage,
136458
+ caretPosition: start2,
136459
+ sequenceLength,
136460
+ innerRadius,
136461
+ outerRadius: radius
136462
+ }
136463
+ ),
136464
+ !hideCarets && /* @__PURE__ */ React__default$1.createElement(
136465
+ Caret$1,
136466
+ {
136467
+ key: "caret2",
136468
+ className: className + " selectionLayerCaret " + (isDraggable ? draggableClassnames.selectionEnd : ""),
136469
+ isSelection: true,
136470
+ onClick: onClick ? noop$4 : preventDefaultStopPropagation,
136471
+ selectionMessage,
136472
+ caretPosition: end2 + 1,
136473
+ sequenceLength,
136474
+ innerRadius,
136475
+ outerRadius: radius
136476
+ }
136477
+ )
136478
+ );
136479
+ }
136480
+ __name(SelectionLayer, "SelectionLayer");
136481
+ const SelectionLayer$1 = pure(SelectionLayer);
136482
+ function Axis({
136483
+ radius,
136484
+ showAxisNumbers,
136485
+ tickMarkHeight = 5,
136486
+ textOffset = 15,
136487
+ ringThickness = 4,
136488
+ zoomLevel
136489
+ }) {
136490
+ const height2 = (ringThickness + (showAxisNumbers ? textOffset + tickMarkHeight : 0)) / zoomLevel;
136491
+ const radiusToUse = showAxisNumbers ? radius + textOffset + tickMarkHeight : radius;
136492
+ const component = /* @__PURE__ */ React__default$1.createElement("g", { key: "veAxis", className: "veAxis" }, /* @__PURE__ */ React__default$1.createElement(
136493
+ "circle",
136494
+ {
136495
+ className: "veAxisLine veAxisOuter",
136496
+ key: "circleOuter",
136497
+ r: radiusToUse + ringThickness,
136498
+ style: { fill: "#ffffff00", stroke: "black", strokeWidth: 0.5 }
136499
+ }
136500
+ ), /* @__PURE__ */ React__default$1.createElement(
136501
+ "circle",
136502
+ {
136503
+ className: "veAxisLine veAxisInner",
136504
+ key: "circle",
136505
+ r: radiusToUse,
136506
+ style: { fill: "#ffffff00", stroke: "black", strokeWidth: 0.5 }
136507
+ }
136508
+ ));
136509
+ return {
136510
+ component,
136511
+ height: height2
136512
+ };
136513
+ }
136514
+ __name(Axis, "Axis");
136515
+ function CircularPrimer$1({
136516
+ color: color2 = "orange",
136517
+ radius,
136518
+ annotationHeight,
136519
+ totalAngle
136520
+ }) {
136521
+ return /* @__PURE__ */ React__default$1.createElement(
136522
+ "path",
136523
+ {
136524
+ className: "veOrf",
136525
+ strokeWidth: ".5",
136526
+ stroke: color2,
136527
+ fill: color2,
136528
+ d: drawDirectedPiePiece({
136529
+ radius,
136530
+ annotationHeight,
136531
+ totalAngle,
136532
+ arrowheadLength: 0.4,
136533
+ tailThickness: 0.4
136534
+ }).print()
136535
+ }
136536
+ );
136537
+ }
136538
+ __name(CircularPrimer$1, "CircularPrimer$1");
136539
+ function CircularPrimer(props) {
136540
+ const {
136541
+ color: color2 = "orange",
136542
+ radius,
136543
+ arrowheadLength = 0.5,
136544
+ annotationHeight,
136545
+ totalAngle,
136546
+ id: id2,
136547
+ labelNeedsFlip,
136548
+ ellipsizedName
136549
+ } = props;
136550
+ const [path2, textPath] = drawDirectedPiePiece({
136551
+ radius,
136552
+ annotationHeight,
136553
+ totalAngle,
136554
+ arrowheadLength,
136555
+ tailThickness: 1,
136556
+ //feature specific
136557
+ returnTextPath: true,
136558
+ hasLabel: ellipsizedName,
136559
+ labelNeedsFlip
136560
+ });
136561
+ return /* @__PURE__ */ React__default$1.createElement(React__default$1.Fragment, null, getStripedPattern({ color: color2 }), /* @__PURE__ */ React__default$1.createElement(
136562
+ "path",
136563
+ {
136564
+ className: "vePrimer veCircularViewPrimer",
136565
+ id: id2,
136566
+ strokeWidth: ".5",
136567
+ stroke: "black",
136568
+ fill: "url(#diagonalHatch)",
136569
+ d: path2.print()
136570
+ }
136571
+ ), getInternalLabel(__spreadProps(__spreadValues({}, props), { colorToUse: color2, textPath })));
136572
+ }
136573
+ __name(CircularPrimer, "CircularPrimer");
136574
+ function Cutsite({
136575
+ annotationHeight,
136576
+ radius
136577
+ // totalAngle,
136578
+ // ...rest
136579
+ }) {
136580
+ return /* @__PURE__ */ React__default$1.createElement(
136581
+ "rect",
136582
+ {
136583
+ className: "veCutsite",
136584
+ width: 1,
136585
+ y: -radius - 4,
136586
+ height: annotationHeight
136587
+ }
136588
+ );
136589
+ }
136590
+ __name(Cutsite, "Cutsite");
136336
136591
  const style$e = "";
136337
136592
  function c(u2, e2, c2) {
136338
136593
  var i = this, a2 = useRef(null), o2 = useRef(0), f2 = useRef(null), l2 = useRef([]), m2 = useRef(), v2 = useRef(), d2 = useRef(u2), p2 = useRef(true);
@@ -142852,7 +143107,7 @@ ${seqDataToCopy}\r
142852
143107
  scrollbarWidth: "none",
142853
143108
  whiteSpace: "nowrap"
142854
143109
  },
142855
- title: name2,
143110
+ "data-title": name2,
142856
143111
  key: i
142857
143112
  },
142858
143113
  /* @__PURE__ */ React__default$1.createElement(
@@ -143652,7 +143907,7 @@ ${seqDataToCopy}\r
143652
143907
  textOverflow: "ellipsis",
143653
143908
  whiteSpace: "nowrap"
143654
143909
  },
143655
- title: this.props.alignmentType || "Unknown Alignment Type"
143910
+ "data-title": this.props.alignmentType || "Unknown Alignment Type"
143656
143911
  },
143657
143912
  this.props.alignmentType || "Unknown Alignment Type"
143658
143913
  )),
@@ -158299,11 +158554,11 @@ var batchProcessor = /* @__PURE__ */ __name(function batchProcessorMaker(options
158299
158554
  var batch2 = Batch();
158300
158555
  var asyncFrameHandler;
158301
158556
  var isProcessing = false;
158302
- function addFunction(level, fn3) {
158557
+ function addFunction(level, fn4) {
158303
158558
  if (!isProcessing && autoProcess && asyncProcess && batch2.size() === 0) {
158304
158559
  processBatchAsync();
158305
158560
  }
158306
- batch2.add(level, fn3);
158561
+ batch2.add(level, fn4);
158307
158562
  }
158308
158563
  __name(addFunction, "addFunction");
158309
158564
  function processBatch() {
@@ -158344,8 +158599,8 @@ var batchProcessor = /* @__PURE__ */ __name(function batchProcessorMaker(options
158344
158599
  }
158345
158600
  __name(cancelFrame, "cancelFrame");
158346
158601
  function requestFrame(callback2) {
158347
- var raf = /* @__PURE__ */ __name(function(fn3) {
158348
- return setTimeout(fn3, 0);
158602
+ var raf = /* @__PURE__ */ __name(function(fn4) {
158603
+ return setTimeout(fn4, 0);
158349
158604
  }, "raf");
158350
158605
  return raf(callback2);
158351
158606
  }
@@ -158360,9 +158615,9 @@ function Batch() {
158360
158615
  var size = 0;
158361
158616
  var topLevel2 = 0;
158362
158617
  var bottomLevel2 = 0;
158363
- function add3(level, fn3) {
158364
- if (!fn3) {
158365
- fn3 = level;
158618
+ function add3(level, fn4) {
158619
+ if (!fn4) {
158620
+ fn4 = level;
158366
158621
  level = 0;
158367
158622
  }
158368
158623
  if (level > topLevel2) {
@@ -158373,7 +158628,7 @@ function Batch() {
158373
158628
  if (!batch2[level]) {
158374
158629
  batch2[level] = [];
158375
158630
  }
158376
- batch2[level].push(fn3);
158631
+ batch2[level].push(fn4);
158377
158632
  size++;
158378
158633
  }
158379
158634
  __name(add3, "add");
@@ -158381,8 +158636,8 @@ function Batch() {
158381
158636
  for (var level = bottomLevel2; level <= topLevel2; level++) {
158382
158637
  var fns = batch2[level];
158383
158638
  for (var i = 0; i < fns.length; i++) {
158384
- var fn3 = fns[i];
158385
- fn3();
158639
+ var fn4 = fns[i];
158640
+ fn4();
158386
158641
  }
158387
158642
  }
158388
158643
  }