@teselagen/ove 0.5.3 → 0.5.5

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
@@ -5527,10 +5527,10 @@ var ownKeys$7 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownK
5527
5527
  /* istanbul ignore next */
5528
5528
  Object.getOwnPropertyNames
5529
5529
  );
5530
- function toPrimitive$2(value) {
5530
+ function toPrimitive$3(value) {
5531
5531
  return value === null ? null : typeof value === "object" ? "" + value : value;
5532
5532
  }
5533
- __name(toPrimitive$2, "toPrimitive$2");
5533
+ __name(toPrimitive$3, "toPrimitive$3");
5534
5534
  function hasProp(target, prop2) {
5535
5535
  return objectPrototype$1.hasOwnProperty.call(target, prop2);
5536
5536
  }
@@ -6549,7 +6549,7 @@ var ObservableValue = /* @__PURE__ */ function(_Atom) {
6549
6549
  return this.name_ + "[" + this.value_ + "]";
6550
6550
  }, "toString2");
6551
6551
  _proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
6552
- return toPrimitive$2(this.get());
6552
+ return toPrimitive$3(this.get());
6553
6553
  }, "valueOf");
6554
6554
  _proto[_Symbol$toPrimitive] = function() {
6555
6555
  return this.valueOf();
@@ -6734,7 +6734,7 @@ var ComputedValue = /* @__PURE__ */ function() {
6734
6734
  return this.name_ + "[" + this.derivation.toString() + "]";
6735
6735
  }, "toString2");
6736
6736
  _proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
6737
- return toPrimitive$2(this.get());
6737
+ return toPrimitive$3(this.get());
6738
6738
  }, "valueOf");
6739
6739
  _proto[_Symbol$toPrimitive$1] = function() {
6740
6740
  return this.valueOf();
@@ -11360,7 +11360,7 @@ lodash.exports;
11360
11360
  "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
11361
11361
  );
11362
11362
  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;
11363
- var defineProperty5 = function() {
11363
+ var defineProperty6 = function() {
11364
11364
  try {
11365
11365
  var func = getNative2(Object2, "defineProperty");
11366
11366
  func({}, "", {});
@@ -11800,8 +11800,8 @@ lodash.exports;
11800
11800
  }
11801
11801
  __name(baseAssignIn2, "baseAssignIn");
11802
11802
  function baseAssignValue2(object3, key, value) {
11803
- if (key == "__proto__" && defineProperty5) {
11804
- defineProperty5(object3, key, {
11803
+ if (key == "__proto__" && defineProperty6) {
11804
+ defineProperty6(object3, key, {
11805
11805
  "configurable": true,
11806
11806
  "enumerable": true,
11807
11807
  "value": value,
@@ -12534,8 +12534,8 @@ lodash.exports;
12534
12534
  metaMap.set(func, data);
12535
12535
  return func;
12536
12536
  };
12537
- var baseSetToString2 = !defineProperty5 ? identity4 : function(func, string2) {
12538
- return defineProperty5(func, "toString", {
12537
+ var baseSetToString2 = !defineProperty6 ? identity4 : function(func, string2) {
12538
+ return defineProperty6(func, "toString", {
12539
12539
  "configurable": true,
12540
12540
  "enumerable": false,
12541
12541
  "value": constant2(string2),
@@ -17059,20 +17059,11 @@ var _fails = /* @__PURE__ */ __name(function(exec) {
17059
17059
  return true;
17060
17060
  }
17061
17061
  }, "_fails");
17062
- var _descriptors;
17063
- var hasRequired_descriptors;
17064
- function require_descriptors() {
17065
- if (hasRequired_descriptors)
17066
- return _descriptors;
17067
- hasRequired_descriptors = 1;
17068
- _descriptors = !_fails(function() {
17069
- return Object.defineProperty({}, "a", { get: function() {
17070
- return 7;
17071
- } }).a != 7;
17072
- });
17073
- return _descriptors;
17074
- }
17075
- __name(require_descriptors, "require_descriptors");
17062
+ var _descriptors = !_fails(function() {
17063
+ return Object.defineProperty({}, "a", { get: function() {
17064
+ return 7;
17065
+ } }).a != 7;
17066
+ });
17076
17067
  var _domCreate;
17077
17068
  var hasRequired_domCreate;
17078
17069
  function require_domCreate() {
@@ -17088,20 +17079,11 @@ function require_domCreate() {
17088
17079
  return _domCreate;
17089
17080
  }
17090
17081
  __name(require_domCreate, "require_domCreate");
17091
- var _ie8DomDefine;
17092
- var hasRequired_ie8DomDefine;
17093
- function require_ie8DomDefine() {
17094
- if (hasRequired_ie8DomDefine)
17095
- return _ie8DomDefine;
17096
- hasRequired_ie8DomDefine = 1;
17097
- _ie8DomDefine = !require_descriptors() && !_fails(function() {
17098
- return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
17099
- return 7;
17100
- } }).a != 7;
17101
- });
17102
- return _ie8DomDefine;
17103
- }
17104
- __name(require_ie8DomDefine, "require_ie8DomDefine");
17082
+ var _ie8DomDefine = !_descriptors && !_fails(function() {
17083
+ return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
17084
+ return 7;
17085
+ } }).a != 7;
17086
+ });
17105
17087
  var isObject$d = _isObject;
17106
17088
  var _toPrimitive$1 = /* @__PURE__ */ __name(function(it, S2) {
17107
17089
  if (!isObject$d(it))
@@ -17115,33 +17097,25 @@ var _toPrimitive$1 = /* @__PURE__ */ __name(function(it, S2) {
17115
17097
  return val2;
17116
17098
  throw TypeError("Can't convert object to primitive value");
17117
17099
  }, "_toPrimitive$1");
17118
- var hasRequired_objectDp;
17119
- function require_objectDp() {
17120
- if (hasRequired_objectDp)
17121
- return _objectDp;
17122
- hasRequired_objectDp = 1;
17123
- var anObject2 = _anObject;
17124
- var IE8_DOM_DEFINE2 = require_ie8DomDefine();
17125
- var toPrimitive2 = _toPrimitive$1;
17126
- var dP2 = Object.defineProperty;
17127
- _objectDp.f = require_descriptors() ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty5(O2, P2, Attributes) {
17128
- anObject2(O2);
17129
- P2 = toPrimitive2(P2, true);
17130
- anObject2(Attributes);
17131
- if (IE8_DOM_DEFINE2)
17132
- try {
17133
- return dP2(O2, P2, Attributes);
17134
- } catch (e2) {
17135
- }
17136
- if ("get" in Attributes || "set" in Attributes)
17137
- throw TypeError("Accessors not supported!");
17138
- if ("value" in Attributes)
17139
- O2[P2] = Attributes.value;
17140
- return O2;
17141
- }, "defineProperty");
17142
- return _objectDp;
17143
- }
17144
- __name(require_objectDp, "require_objectDp");
17100
+ var anObject$5 = _anObject;
17101
+ var IE8_DOM_DEFINE$1 = _ie8DomDefine;
17102
+ var toPrimitive$2 = _toPrimitive$1;
17103
+ var dP$3 = Object.defineProperty;
17104
+ _objectDp.f = _descriptors ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty(O2, P2, Attributes) {
17105
+ anObject$5(O2);
17106
+ P2 = toPrimitive$2(P2, true);
17107
+ anObject$5(Attributes);
17108
+ if (IE8_DOM_DEFINE$1)
17109
+ try {
17110
+ return dP$3(O2, P2, Attributes);
17111
+ } catch (e2) {
17112
+ }
17113
+ if ("get" in Attributes || "set" in Attributes)
17114
+ throw TypeError("Accessors not supported!");
17115
+ if ("value" in Attributes)
17116
+ O2[P2] = Attributes.value;
17117
+ return O2;
17118
+ }, "defineProperty");
17145
17119
  var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
17146
17120
  return {
17147
17121
  enumerable: !(bitmap & 1),
@@ -17150,9 +17124,9 @@ var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
17150
17124
  value
17151
17125
  };
17152
17126
  }, "_propertyDesc");
17153
- var dP$2 = require_objectDp();
17127
+ var dP$2 = _objectDp;
17154
17128
  var createDesc$3 = _propertyDesc;
17155
- var _hide = require_descriptors() ? function(object3, key, value) {
17129
+ var _hide = _descriptors ? function(object3, key, value) {
17156
17130
  return dP$2.f(object3, key, createDesc$3(1, value));
17157
17131
  } : function(object3, key, value) {
17158
17132
  object3[key] = value;
@@ -17358,7 +17332,7 @@ function require_objectAssign() {
17358
17332
  if (hasRequired_objectAssign)
17359
17333
  return _objectAssign;
17360
17334
  hasRequired_objectAssign = 1;
17361
- var DESCRIPTORS2 = require_descriptors();
17335
+ var DESCRIPTORS2 = _descriptors;
17362
17336
  var getKeys2 = _objectKeys;
17363
17337
  var gOPS2 = _objectGops;
17364
17338
  var pIE2 = require_objectPie();
@@ -17424,10 +17398,10 @@ var _iterStep = /* @__PURE__ */ __name(function(done, value) {
17424
17398
  }, "_iterStep");
17425
17399
  var _iterators = {};
17426
17400
  var _redefine = _hide;
17427
- var dP$1 = require_objectDp();
17401
+ var dP$1 = _objectDp;
17428
17402
  var anObject$4 = _anObject;
17429
17403
  var getKeys$1 = _objectKeys;
17430
- var _objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties(O2, Properties2) {
17404
+ var _objectDps = _descriptors ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties(O2, Properties2) {
17431
17405
  anObject$4(O2);
17432
17406
  var keys5 = getKeys$1(Properties2);
17433
17407
  var length = keys5.length;
@@ -17494,7 +17468,7 @@ var $exports = _wks.exports = function(name2) {
17494
17468
  };
17495
17469
  $exports.store = store$2;
17496
17470
  var _wksExports = _wks.exports;
17497
- var def = require_objectDp().f;
17471
+ var def = _objectDp.f;
17498
17472
  var has$c = _has;
17499
17473
  var TAG$1 = _wksExports("toStringTag");
17500
17474
  var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
@@ -17767,7 +17741,7 @@ var ArrayProto = Array.prototype;
17767
17741
  var _isArrayIter = /* @__PURE__ */ __name(function(it) {
17768
17742
  return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
17769
17743
  }, "_isArrayIter");
17770
- var $defineProperty$4 = require_objectDp();
17744
+ var $defineProperty$4 = _objectDp;
17771
17745
  var createDesc$2 = _propertyDesc;
17772
17746
  var _createProperty = /* @__PURE__ */ __name(function(object3, index2, value) {
17773
17747
  if (index2 in object3)
@@ -17896,9 +17870,9 @@ var _default$8 = /* @__PURE__ */ __name(function(instance, Constructor) {
17896
17870
  }
17897
17871
  }, "_default$8");
17898
17872
  var $export$3 = _export;
17899
- $export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: require_objectDp().f });
17873
+ $export$3($export$3.S + $export$3.F * !_descriptors, "Object", { defineProperty: _objectDp.f });
17900
17874
  var $Object$3 = _coreExports.Object;
17901
- var defineProperty$b = /* @__PURE__ */ __name(function defineProperty(it, key, desc) {
17875
+ var defineProperty$b = /* @__PURE__ */ __name(function defineProperty3(it, key, desc) {
17902
17876
  return $Object$3.defineProperty(it, key, desc);
17903
17877
  }, "defineProperty");
17904
17878
  var defineProperty$a = { "default": defineProperty$b, __esModule: true };
@@ -17937,7 +17911,7 @@ var _meta = { exports: {} };
17937
17911
  var META$1 = _uid("meta");
17938
17912
  var isObject$c = _isObject;
17939
17913
  var has$a = _has;
17940
- var setDesc = require_objectDp().f;
17914
+ var setDesc = _objectDp.f;
17941
17915
  var id$1 = 0;
17942
17916
  var isExtensible = Object.isExtensible || function() {
17943
17917
  return true;
@@ -17990,7 +17964,7 @@ var meta = _meta.exports = {
17990
17964
  var _metaExports = _meta.exports;
17991
17965
  var core = _coreExports;
17992
17966
  var wksExt$1 = _wksExt;
17993
- var defineProperty$9 = require_objectDp().f;
17967
+ var defineProperty$9 = _objectDp.f;
17994
17968
  var _wksDefine = /* @__PURE__ */ __name(function(name2) {
17995
17969
  var $Symbol2 = core.Symbol || (core.Symbol = {});
17996
17970
  if (name2.charAt(0) != "_" && !(name2 in $Symbol2))
@@ -18044,9 +18018,9 @@ var createDesc$1 = _propertyDesc;
18044
18018
  var toIObject$1 = _toIobject;
18045
18019
  var toPrimitive$1 = _toPrimitive$1;
18046
18020
  var has$9 = _has;
18047
- var IE8_DOM_DEFINE = require_ie8DomDefine();
18021
+ var IE8_DOM_DEFINE = _ie8DomDefine;
18048
18022
  var gOPD$6 = Object.getOwnPropertyDescriptor;
18049
- _objectGopd.f = require_descriptors() ? gOPD$6 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
18023
+ _objectGopd.f = _descriptors ? gOPD$6 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
18050
18024
  O2 = toIObject$1(O2);
18051
18025
  P2 = toPrimitive$1(P2, true);
18052
18026
  if (IE8_DOM_DEFINE)
@@ -18059,7 +18033,7 @@ _objectGopd.f = require_descriptors() ? gOPD$6 : /* @__PURE__ */ __name(function
18059
18033
  }, "getOwnPropertyDescriptor");
18060
18034
  var global$2 = _globalExports;
18061
18035
  var has$8 = _has;
18062
- var DESCRIPTORS = require_descriptors();
18036
+ var DESCRIPTORS = _descriptors;
18063
18037
  var $export$2 = _export;
18064
18038
  var redefine = _redefine;
18065
18039
  var META = _metaExports.KEY;
@@ -18082,7 +18056,7 @@ var _create$1 = _objectCreate;
18082
18056
  var gOPNExt = _objectGopnExt;
18083
18057
  var $GOPD = _objectGopd;
18084
18058
  var $GOPS = _objectGops;
18085
- var $DP = require_objectDp();
18059
+ var $DP = _objectDp;
18086
18060
  var $keys$1 = _objectKeys;
18087
18061
  var gOPD$5 = $GOPD.f;
18088
18062
  var dP = $DP.f;
@@ -18125,7 +18099,7 @@ var isSymbol$8 = USE_NATIVE && typeof $Symbol.iterator == "symbol" ? function(it
18125
18099
  } : function(it) {
18126
18100
  return it instanceof $Symbol;
18127
18101
  };
18128
- var $defineProperty$3 = /* @__PURE__ */ __name(function defineProperty3(it, key, D2) {
18102
+ var $defineProperty$3 = /* @__PURE__ */ __name(function defineProperty4(it, key, D2) {
18129
18103
  if (it === ObjectProto)
18130
18104
  $defineProperty$3(OPSymbols, key, D2);
18131
18105
  anObject(it);
@@ -52964,31 +52938,36 @@ const renderBlueprintRadioGroup = /* @__PURE__ */ __name((_e) => {
52964
52938
  const optionsToUse = getOptions$1(options);
52965
52939
  if (options.some((opt) => {
52966
52940
  if (opt.value === "true") {
52967
- throw new Error('RadioGroup values cannot be strings of "true" or "false", they must be actual booleans');
52941
+ return true;
52968
52942
  }
52969
- }))
52970
- return /* @__PURE__ */ React__default$1.createElement(
52971
- RadioGroup,
52972
- __spreadProps(__spreadValues(__spreadValues({}, input), removeUnwantedProps(rest)), {
52973
- selectedValue: input.value,
52974
- label: void 0,
52975
- onChange: function(e2) {
52976
- let val2 = e2.target.value;
52977
- if (val2 === "true") {
52978
- val2 = true;
52979
- }
52980
- if (val2 === "false") {
52981
- val2 = false;
52982
- }
52983
- if (val2 === "") {
52984
- val2 = false;
52985
- }
52986
- input.onChange(val2);
52987
- onFieldSubmit(val2);
52988
- },
52989
- options: optionsToUse
52990
- })
52943
+ return false;
52944
+ })) {
52945
+ throw new Error(
52946
+ 'RadioGroup values cannot be strings of "true" or "false", they must be actual booleans'
52991
52947
  );
52948
+ }
52949
+ return /* @__PURE__ */ React__default$1.createElement(
52950
+ RadioGroup,
52951
+ __spreadProps(__spreadValues(__spreadValues({}, input), removeUnwantedProps(rest)), {
52952
+ selectedValue: input.value,
52953
+ label: void 0,
52954
+ onChange: function(e2) {
52955
+ let val2 = e2.target.value;
52956
+ if (val2 === "true") {
52957
+ val2 = true;
52958
+ }
52959
+ if (val2 === "false") {
52960
+ val2 = false;
52961
+ }
52962
+ if (val2 === "") {
52963
+ val2 = false;
52964
+ }
52965
+ input.onChange(val2);
52966
+ onFieldSubmit(val2);
52967
+ },
52968
+ options: optionsToUse
52969
+ })
52970
+ );
52992
52971
  }, "renderBlueprintRadioGroup");
52993
52972
  const _RenderReactColorPicker = class _RenderReactColorPicker extends React__default$1.Component {
52994
52973
  constructor() {
@@ -93510,19 +93489,38 @@ function flattenSequenceArray(parsingResultArray, opts2) {
93510
93489
  return parsingResultArray;
93511
93490
  }
93512
93491
  __name(flattenSequenceArray, "flattenSequenceArray");
93492
+ function wrapOriginSpanningFeatures(locArrayInput, sequenceLength, inclusive1BasedStart, inclusive1BasedEnd) {
93493
+ const locArrayOutput = locArrayInput.map((loc) => __spreadValues({}, loc));
93494
+ for (let i = 0; i < locArrayOutput.length - 1; i++) {
93495
+ const firstFeature = locArrayOutput[i];
93496
+ const secondFeature = locArrayOutput[i + 1];
93497
+ if (firstFeature.end === sequenceLength - (inclusive1BasedEnd ? 0 : 1) && secondFeature.start === 1 - (inclusive1BasedStart ? 0 : 1)) {
93498
+ locArrayOutput[i] = {
93499
+ start: firstFeature.start,
93500
+ end: secondFeature.end
93501
+ };
93502
+ locArrayOutput.splice(i + 1, 1);
93503
+ }
93504
+ }
93505
+ return locArrayOutput;
93506
+ }
93507
+ __name(wrapOriginSpanningFeatures, "wrapOriginSpanningFeatures");
93513
93508
  function parseFeatureLocation(locStr, isProtein2, inclusive1BasedStart, inclusive1BasedEnd, isCircular, sequenceLength) {
93514
93509
  locStr = locStr.trim();
93515
- const locArr = [];
93516
- locStr.replace(/(\d+)/g, function(string2, match2) {
93517
- locArr.push(match2);
93510
+ const positionsArray = [];
93511
+ const locationParts = locStr.split(",");
93512
+ locationParts.forEach((locPart) => {
93513
+ const extractedPositions = locPart.match(/(\d+)/g);
93514
+ if (extractedPositions === null) {
93515
+ return;
93516
+ }
93517
+ positionsArray.push(extractedPositions[0]);
93518
+ positionsArray.push(extractedPositions[1] || extractedPositions[0]);
93518
93519
  });
93519
93520
  const locArray = [];
93520
- for (let i = 0; i < locArr.length; i += 2) {
93521
- const start2 = parseInt(locArr[i], 10) - (inclusive1BasedStart ? 0 : 1);
93522
- let end2 = parseInt(locArr[i + 1], 10) - (inclusive1BasedEnd ? 0 : 1);
93523
- if (isNaN(end2)) {
93524
- end2 = start2;
93525
- }
93521
+ for (let i = 0; i < positionsArray.length; i += 2) {
93522
+ const start2 = parseInt(positionsArray[i], 10) - (inclusive1BasedStart ? 0 : 1);
93523
+ const end2 = parseInt(positionsArray[i + 1], 10) - (inclusive1BasedEnd ? 0 : 1);
93526
93524
  const location2 = {
93527
93525
  start: start2,
93528
93526
  end: end2
@@ -93531,20 +93529,16 @@ function parseFeatureLocation(locStr, isProtein2, inclusive1BasedStart, inclusiv
93531
93529
  isProtein2 ? convertAACaretPositionOrRangeToDna(location2) : location2
93532
93530
  );
93533
93531
  }
93534
- if (isCircular) {
93535
- for (let i = 0; i < locArray.length; i += 2) {
93536
- const firstFeature = locArray[i];
93537
- const secondFeature = locArray[i + 1];
93538
- if (firstFeature.end === sequenceLength - (inclusive1BasedEnd ? 0 : 1) && secondFeature.start === 1 - (inclusive1BasedStart ? 0 : 1)) {
93539
- locArray[i] = {
93540
- start: firstFeature.start,
93541
- end: secondFeature.end
93542
- };
93543
- locArray.splice(i + 1, 1);
93544
- }
93545
- }
93532
+ if (isCircular && sequenceLength) {
93533
+ return wrapOriginSpanningFeatures(
93534
+ locArray,
93535
+ sequenceLength,
93536
+ inclusive1BasedStart,
93537
+ inclusive1BasedEnd
93538
+ );
93539
+ } else {
93540
+ return locArray;
93546
93541
  }
93547
- return locArray;
93548
93542
  }
93549
93543
  __name(parseFeatureLocation, "parseFeatureLocation");
93550
93544
  function genbankToJson(string2, options = {}) {
@@ -93641,7 +93635,7 @@ function genbankToJson(string2, options = {}) {
93641
93635
  parseOrigin(line, key);
93642
93636
  break;
93643
93637
  case genbankAnnotationKey.END_SEQUENCE_TAG:
93644
- endSeq();
93638
+ endSeq(options);
93645
93639
  break;
93646
93640
  case genbankAnnotationKey.DEFINITION_TAG:
93647
93641
  line = line.replace(/DEFINITION/, "");
@@ -93746,9 +93740,9 @@ function genbankToJson(string2, options = {}) {
93746
93740
  }
93747
93741
  });
93748
93742
  return results;
93749
- function endSeq() {
93743
+ function endSeq(options2) {
93750
93744
  hasFoundLocus = false;
93751
- postProcessCurSeq();
93745
+ postProcessCurSeq(options2);
93752
93746
  resultsArray.push(result || { success: false });
93753
93747
  }
93754
93748
  __name(endSeq, "endSeq");
@@ -93762,11 +93756,13 @@ function genbankToJson(string2, options = {}) {
93762
93756
  }
93763
93757
  }
93764
93758
  __name(addMessage, "addMessage");
93765
- function postProcessCurSeq() {
93759
+ function postProcessCurSeq(options2) {
93766
93760
  if (result && result.parsedSequence && result.parsedSequence.features) {
93767
93761
  for (let i = 0; i < result.parsedSequence.features.length; i++) {
93768
93762
  result.parsedSequence.features[i] = postProcessGenbankFeature(
93769
- result.parsedSequence.features[i]
93763
+ result.parsedSequence.features[i],
93764
+ result.parsedSequence,
93765
+ options2
93770
93766
  );
93771
93767
  }
93772
93768
  }
@@ -94012,7 +94008,7 @@ function genbankToJson(string2, options = {}) {
94012
94008
  return runon;
94013
94009
  }
94014
94010
  __name(isKeywordRunon, "isKeywordRunon");
94015
- function postProcessGenbankFeature(feat) {
94011
+ function postProcessGenbankFeature(feat, parsedSequence, options2) {
94016
94012
  if (feat.notes.label) {
94017
94013
  feat.name = feat.notes.label[0];
94018
94014
  } else if (feat.notes.gene) {
@@ -94045,6 +94041,15 @@ function genbankToJson(string2, options = {}) {
94045
94041
  feat.arrowheadType = feat.notes.direction[0].toUpperCase() === "BOTH" ? "BOTH" : feat.notes.direction[0].toUpperCase() === "NONE" ? "NONE" : void 0;
94046
94042
  delete feat.notes.direction;
94047
94043
  }
94044
+ if (parsedSequence.circular) {
94045
+ const { inclusive1BasedStart: inclusive1BasedStart2, inclusive1BasedEnd: inclusive1BasedEnd2 } = options2;
94046
+ feat.locations = wrapOriginSpanningFeatures(
94047
+ feat.locations,
94048
+ parsedSequence.sequence.length,
94049
+ inclusive1BasedStart2,
94050
+ inclusive1BasedEnd2
94051
+ );
94052
+ }
94048
94053
  return feat;
94049
94054
  }
94050
94055
  __name(postProcessGenbankFeature, "postProcessGenbankFeature");
@@ -109956,14 +109961,26 @@ function showDialog({
109956
109961
  props,
109957
109962
  overrideName
109958
109963
  }) {
109964
+ var _a2;
109959
109965
  dialogHolder.dialogType = dialogType;
109960
109966
  if (!dialogHolder.dialogType && ModalComponent) {
109961
109967
  dialogHolder.dialogType = "TGCustomModal";
109962
109968
  }
109969
+ if (document.activeElement && document.activeElement.closest(".veEditor")) {
109970
+ let editorName;
109971
+ (_a2 = document.activeElement.closest(".veEditor")) == null ? void 0 : _a2.className.split(" ").forEach((c2) => {
109972
+ if (!c2.trim())
109973
+ return;
109974
+ if (!c2.trim().includes("veEditor")) {
109975
+ editorName = c2;
109976
+ }
109977
+ });
109978
+ dialogHolder.editorName = editorName;
109979
+ }
109963
109980
  dialogHolder.CustomModalComponent = ModalComponent;
109964
109981
  dialogHolder.props = props;
109965
109982
  dialogHolder.overrideName = overrideName;
109966
- dialogHolder.setUniqKey(uuid());
109983
+ dialogHolder.setUniqKeyToForceRerender(uuid());
109967
109984
  }
109968
109985
  __name(showDialog, "showDialog");
109969
109986
  function hideDialog() {
@@ -109971,7 +109988,7 @@ function hideDialog() {
109971
109988
  delete dialogHolder.CustomModalComponent;
109972
109989
  delete dialogHolder.props;
109973
109990
  delete dialogHolder.overrideName;
109974
- dialogHolder.setUniqKey();
109991
+ dialogHolder.setUniqKeyToForceRerender();
109975
109992
  }
109976
109993
  __name(hideDialog, "hideDialog");
109977
109994
  const typeToDialogType = {
@@ -125345,7 +125362,7 @@ function showFileDialog({ multiple = false, onSelect }) {
125345
125362
  }
125346
125363
  __name(showFileDialog, "showFileDialog");
125347
125364
  const name = "@teselagen/ove";
125348
- const version = "0.5.2";
125365
+ const version = "0.5.4";
125349
125366
  const main = "./src/index.js";
125350
125367
  const exports$1 = {
125351
125368
  ".": {
@@ -127681,7 +127698,7 @@ var createClass = /* @__PURE__ */ function() {
127681
127698
  return Constructor;
127682
127699
  };
127683
127700
  }();
127684
- var defineProperty4 = /* @__PURE__ */ __name(function(obj, key, value) {
127701
+ var defineProperty5 = /* @__PURE__ */ __name(function(obj, key, value) {
127685
127702
  if (key in obj) {
127686
127703
  Object.defineProperty(obj, key, {
127687
127704
  value,
@@ -128292,7 +128309,7 @@ function arrow(data, options) {
128292
128309
  var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide;
128293
128310
  sideValue = Math.max(Math.min(popper2[len] - arrowElementSize, sideValue), 0);
128294
128311
  data.arrowElement = arrowElement;
128295
- data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty4(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty4(_data$offsets$arrow, altSide, ""), _data$offsets$arrow);
128312
+ data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty5(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty5(_data$offsets$arrow, altSide, ""), _data$offsets$arrow);
128296
128313
  return data;
128297
128314
  }
128298
128315
  __name(arrow, "arrow");
@@ -128523,7 +128540,7 @@ function preventOverflow(data, options) {
128523
128540
  if (popper2[placement] < boundaries[placement] && !options.escapeWithReference) {
128524
128541
  value = Math.max(popper2[placement], boundaries[placement]);
128525
128542
  }
128526
- return defineProperty4({}, placement, value);
128543
+ return defineProperty5({}, placement, value);
128527
128544
  }, "primary"),
128528
128545
  secondary: /* @__PURE__ */ __name(function secondary(placement) {
128529
128546
  var mainSide = placement === "right" ? "left" : "top";
@@ -128531,7 +128548,7 @@ function preventOverflow(data, options) {
128531
128548
  if (popper2[placement] > boundaries[placement] && !options.escapeWithReference) {
128532
128549
  value = Math.min(popper2[mainSide], boundaries[placement] - (placement === "right" ? popper2.width : popper2.height));
128533
128550
  }
128534
- return defineProperty4({}, mainSide, value);
128551
+ return defineProperty5({}, mainSide, value);
128535
128552
  }, "secondary")
128536
128553
  };
128537
128554
  order2.forEach(function(placement) {
@@ -128552,8 +128569,8 @@ function shift3(data) {
128552
128569
  var side = isVertical ? "left" : "top";
128553
128570
  var measurement = isVertical ? "width" : "height";
128554
128571
  var shiftOffsets = {
128555
- start: defineProperty4({}, side, reference2[side]),
128556
- end: defineProperty4({}, side, reference2[side] + reference2[measurement] - popper2[measurement])
128572
+ start: defineProperty5({}, side, reference2[side]),
128573
+ end: defineProperty5({}, side, reference2[side] + reference2[measurement] - popper2[measurement])
128557
128574
  };
128558
128575
  data.offsets.popper = _extends$1({}, popper2, shiftOffsets[shiftvariation]);
128559
128576
  }
@@ -141909,14 +141926,17 @@ const Dialogs = {
141909
141926
  AddOrEditPrimerDialog
141910
141927
  };
141911
141928
  function GlobalDialog(props) {
141912
- const { dialogOverrides = {} } = props;
141913
- const [uniqKey, setUniqKey] = useState();
141929
+ const { dialogOverrides = {}, editorName } = props;
141930
+ const [uniqKey, setUniqKeyToForceRerender] = useState();
141914
141931
  useEffect(() => {
141915
141932
  return () => {
141916
141933
  hideDialog();
141917
141934
  };
141918
141935
  }, []);
141919
- dialogHolder.setUniqKey = setUniqKey;
141936
+ if (dialogHolder.editorName && editorName && dialogHolder.editorName !== editorName) {
141937
+ return null;
141938
+ }
141939
+ dialogHolder.setUniqKeyToForceRerender = setUniqKeyToForceRerender;
141920
141940
  const Comp = dialogHolder.CustomModalComponent || dialogOverrides[dialogHolder.overrideName] || Dialogs[dialogHolder.dialogType];
141921
141941
  if (!Comp)
141922
141942
  return null;