@teselagen/ove 0.3.31 → 0.3.44

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.umd.js CHANGED
@@ -10336,11 +10336,11 @@ var __async = (__this, __arguments, generator) => {
10336
10336
  }
10337
10337
  bound = Function("binder", "return function (" + boundArgs.join(",") + "){ return binder.apply(this,arguments); }")(binder);
10338
10338
  if (target.prototype) {
10339
- var Empty2 = /* @__PURE__ */ __name(function Empty3() {
10339
+ var Empty = /* @__PURE__ */ __name(function Empty2() {
10340
10340
  }, "Empty");
10341
- Empty2.prototype = target.prototype;
10342
- bound.prototype = new Empty2();
10343
- Empty2.prototype = null;
10341
+ Empty.prototype = target.prototype;
10342
+ bound.prototype = new Empty();
10343
+ Empty.prototype = null;
10344
10344
  }
10345
10345
  return bound;
10346
10346
  }, "bind");
@@ -27120,10 +27120,10 @@ var __async = (__this, __arguments, generator) => {
27120
27120
  /* istanbul ignore next */
27121
27121
  Object.getOwnPropertyNames
27122
27122
  );
27123
- function toPrimitive$2(value) {
27123
+ function toPrimitive$3(value) {
27124
27124
  return value === null ? null : typeof value === "object" ? "" + value : value;
27125
27125
  }
27126
- __name(toPrimitive$2, "toPrimitive$2");
27126
+ __name(toPrimitive$3, "toPrimitive$3");
27127
27127
  function hasProp(target, prop2) {
27128
27128
  return objectPrototype$2.hasOwnProperty.call(target, prop2);
27129
27129
  }
@@ -28020,7 +28020,7 @@ var __async = (__this, __arguments, generator) => {
28020
28020
  return this.name_ + "[" + this.value_ + "]";
28021
28021
  }, "toString");
28022
28022
  _proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
28023
- return toPrimitive$2(this.get());
28023
+ return toPrimitive$3(this.get());
28024
28024
  }, "valueOf");
28025
28025
  _proto[_Symbol$toPrimitive] = function() {
28026
28026
  return this.valueOf();
@@ -28205,7 +28205,7 @@ var __async = (__this, __arguments, generator) => {
28205
28205
  return this.name_ + "[" + this.derivation.toString() + "]";
28206
28206
  }, "toString");
28207
28207
  _proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
28208
- return toPrimitive$2(this.get());
28208
+ return toPrimitive$3(this.get());
28209
28209
  }, "valueOf");
28210
28210
  _proto[_Symbol$toPrimitive$1] = function() {
28211
28211
  return this.valueOf();
@@ -44864,20 +44864,11 @@ ${latestSubscriptionCallbackError.current.stack}
44864
44864
  return true;
44865
44865
  }
44866
44866
  }, "_fails");
44867
- var _descriptors;
44868
- var hasRequired_descriptors;
44869
- function require_descriptors() {
44870
- if (hasRequired_descriptors)
44871
- return _descriptors;
44872
- hasRequired_descriptors = 1;
44873
- _descriptors = !_fails(function() {
44874
- return Object.defineProperty({}, "a", { get: function() {
44875
- return 7;
44876
- } }).a != 7;
44877
- });
44878
- return _descriptors;
44879
- }
44880
- __name(require_descriptors, "require_descriptors");
44867
+ var _descriptors = !_fails(function() {
44868
+ return Object.defineProperty({}, "a", { get: function() {
44869
+ return 7;
44870
+ } }).a != 7;
44871
+ });
44881
44872
  var _domCreate;
44882
44873
  var hasRequired_domCreate;
44883
44874
  function require_domCreate() {
@@ -44893,20 +44884,11 @@ ${latestSubscriptionCallbackError.current.stack}
44893
44884
  return _domCreate;
44894
44885
  }
44895
44886
  __name(require_domCreate, "require_domCreate");
44896
- var _ie8DomDefine;
44897
- var hasRequired_ie8DomDefine;
44898
- function require_ie8DomDefine() {
44899
- if (hasRequired_ie8DomDefine)
44900
- return _ie8DomDefine;
44901
- hasRequired_ie8DomDefine = 1;
44902
- _ie8DomDefine = !require_descriptors() && !_fails(function() {
44903
- return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
44904
- return 7;
44905
- } }).a != 7;
44906
- });
44907
- return _ie8DomDefine;
44908
- }
44909
- __name(require_ie8DomDefine, "require_ie8DomDefine");
44887
+ var _ie8DomDefine = !_descriptors && !_fails(function() {
44888
+ return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
44889
+ return 7;
44890
+ } }).a != 7;
44891
+ });
44910
44892
  var isObject$6 = _isObject;
44911
44893
  var _toPrimitive$1 = /* @__PURE__ */ __name(function(it, S2) {
44912
44894
  if (!isObject$6(it))
@@ -44920,33 +44902,25 @@ ${latestSubscriptionCallbackError.current.stack}
44920
44902
  return val2;
44921
44903
  throw TypeError("Can't convert object to primitive value");
44922
44904
  }, "_toPrimitive$1");
44923
- var hasRequired_objectDp;
44924
- function require_objectDp() {
44925
- if (hasRequired_objectDp)
44926
- return _objectDp;
44927
- hasRequired_objectDp = 1;
44928
- var anObject2 = _anObject;
44929
- var IE8_DOM_DEFINE2 = require_ie8DomDefine();
44930
- var toPrimitive2 = _toPrimitive$1;
44931
- var dP2 = Object.defineProperty;
44932
- _objectDp.f = require_descriptors() ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty2(O2, P2, Attributes) {
44933
- anObject2(O2);
44934
- P2 = toPrimitive2(P2, true);
44935
- anObject2(Attributes);
44936
- if (IE8_DOM_DEFINE2)
44937
- try {
44938
- return dP2(O2, P2, Attributes);
44939
- } catch (e2) {
44940
- }
44941
- if ("get" in Attributes || "set" in Attributes)
44942
- throw TypeError("Accessors not supported!");
44943
- if ("value" in Attributes)
44944
- O2[P2] = Attributes.value;
44945
- return O2;
44946
- }, "defineProperty");
44947
- return _objectDp;
44948
- }
44949
- __name(require_objectDp, "require_objectDp");
44905
+ var anObject$3 = _anObject;
44906
+ var IE8_DOM_DEFINE$1 = _ie8DomDefine;
44907
+ var toPrimitive$2 = _toPrimitive$1;
44908
+ var dP$2 = Object.defineProperty;
44909
+ _objectDp.f = _descriptors ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty2(O2, P2, Attributes) {
44910
+ anObject$3(O2);
44911
+ P2 = toPrimitive$2(P2, true);
44912
+ anObject$3(Attributes);
44913
+ if (IE8_DOM_DEFINE$1)
44914
+ try {
44915
+ return dP$2(O2, P2, Attributes);
44916
+ } catch (e2) {
44917
+ }
44918
+ if ("get" in Attributes || "set" in Attributes)
44919
+ throw TypeError("Accessors not supported!");
44920
+ if ("value" in Attributes)
44921
+ O2[P2] = Attributes.value;
44922
+ return O2;
44923
+ }, "defineProperty");
44950
44924
  var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
44951
44925
  return {
44952
44926
  enumerable: !(bitmap & 1),
@@ -44955,10 +44929,10 @@ ${latestSubscriptionCallbackError.current.stack}
44955
44929
  value
44956
44930
  };
44957
44931
  }, "_propertyDesc");
44958
- var dP$2 = require_objectDp();
44932
+ var dP$1 = _objectDp;
44959
44933
  var createDesc$3 = _propertyDesc;
44960
- var _hide = require_descriptors() ? function(object2, key2, value) {
44961
- return dP$2.f(object2, key2, createDesc$3(1, value));
44934
+ var _hide = _descriptors ? function(object2, key2, value) {
44935
+ return dP$1.f(object2, key2, createDesc$3(1, value));
44962
44936
  } : function(object2, key2, value) {
44963
44937
  object2[key2] = value;
44964
44938
  return object2;
@@ -44972,7 +44946,7 @@ ${latestSubscriptionCallbackError.current.stack}
44972
44946
  var ctx$1 = _ctx;
44973
44947
  var hide$2 = _hide;
44974
44948
  var has$d = _has;
44975
- var PROTOTYPE$2 = "prototype";
44949
+ var PROTOTYPE$1 = "prototype";
44976
44950
  var $export$8 = /* @__PURE__ */ __name(function(type, name2, source) {
44977
44951
  var IS_FORCED = type & $export$8.F;
44978
44952
  var IS_GLOBAL = type & $export$8.G;
@@ -44981,8 +44955,8 @@ ${latestSubscriptionCallbackError.current.stack}
44981
44955
  var IS_BIND = type & $export$8.B;
44982
44956
  var IS_WRAP = type & $export$8.W;
44983
44957
  var exports3 = IS_GLOBAL ? core$3 : core$3[name2] || (core$3[name2] = {});
44984
- var expProto = exports3[PROTOTYPE$2];
44985
- var target = IS_GLOBAL ? global$4 : IS_STATIC ? global$4[name2] : (global$4[name2] || {})[PROTOTYPE$2];
44958
+ var expProto = exports3[PROTOTYPE$1];
44959
+ var target = IS_GLOBAL ? global$4 : IS_STATIC ? global$4[name2] : (global$4[name2] || {})[PROTOTYPE$1];
44986
44960
  var key2, own2, out;
44987
44961
  if (IS_GLOBAL)
44988
44962
  source = name2;
@@ -45006,7 +44980,7 @@ ${latestSubscriptionCallbackError.current.stack}
45006
44980
  }
45007
44981
  return C2.apply(this, arguments);
45008
44982
  }, "F");
45009
- F2[PROTOTYPE$2] = C2[PROTOTYPE$2];
44983
+ F2[PROTOTYPE$1] = C2[PROTOTYPE$1];
45010
44984
  return F2;
45011
44985
  }(out) : IS_PROTO && typeof out == "function" ? ctx$1(Function.call, out) : out;
45012
44986
  if (IS_PROTO) {
@@ -45029,25 +45003,16 @@ ${latestSubscriptionCallbackError.current.stack}
45029
45003
  var _cof = /* @__PURE__ */ __name(function(it) {
45030
45004
  return toString$4.call(it).slice(8, -1);
45031
45005
  }, "_cof");
45032
- var _iobject;
45033
- var hasRequired_iobject;
45034
- function require_iobject() {
45035
- if (hasRequired_iobject)
45036
- return _iobject;
45037
- hasRequired_iobject = 1;
45038
- var cof2 = _cof;
45039
- _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
45040
- return cof2(it) == "String" ? it.split("") : Object(it);
45041
- };
45042
- return _iobject;
45043
- }
45044
- __name(require_iobject, "require_iobject");
45006
+ var cof$2 = _cof;
45007
+ var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
45008
+ return cof$2(it) == "String" ? it.split("") : Object(it);
45009
+ };
45045
45010
  var _defined = /* @__PURE__ */ __name(function(it) {
45046
45011
  if (it == void 0)
45047
45012
  throw TypeError("Can't call method on " + it);
45048
45013
  return it;
45049
45014
  }, "_defined");
45050
- var IObject = require_iobject();
45015
+ var IObject = _iobject;
45051
45016
  var defined$2 = _defined;
45052
45017
  var _toIobject = /* @__PURE__ */ __name(function(it) {
45053
45018
  return IObject(defined$2(it));
@@ -45120,14 +45085,14 @@ ${latestSubscriptionCallbackError.current.stack}
45120
45085
  var has$c = _has;
45121
45086
  var toIObject$4 = _toIobject;
45122
45087
  var arrayIndexOf = _arrayIncludes$1(false);
45123
- var IE_PROTO$2 = _sharedKey("IE_PROTO");
45088
+ var IE_PROTO$1 = _sharedKey("IE_PROTO");
45124
45089
  var _objectKeysInternal = /* @__PURE__ */ __name(function(object2, names2) {
45125
45090
  var O2 = toIObject$4(object2);
45126
45091
  var i2 = 0;
45127
45092
  var result = [];
45128
45093
  var key2;
45129
45094
  for (key2 in O2)
45130
- if (key2 != IE_PROTO$2)
45095
+ if (key2 != IE_PROTO$1)
45131
45096
  has$c(O2, key2) && result.push(key2);
45132
45097
  while (names2.length > i2)
45133
45098
  if (has$c(O2, key2 = names2[i2++])) {
@@ -45136,23 +45101,15 @@ ${latestSubscriptionCallbackError.current.stack}
45136
45101
  return result;
45137
45102
  }, "_objectKeysInternal");
45138
45103
  var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
45139
- var $keys$3 = _objectKeysInternal;
45140
- var enumBugKeys$1 = _enumBugKeys;
45104
+ var $keys$2 = _objectKeysInternal;
45105
+ var enumBugKeys = _enumBugKeys;
45141
45106
  var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys2(O2) {
45142
- return $keys$3(O2, enumBugKeys$1);
45107
+ return $keys$2(O2, enumBugKeys);
45143
45108
  }, "keys");
45144
45109
  var _objectGops = {};
45145
45110
  _objectGops.f = Object.getOwnPropertySymbols;
45146
45111
  var _objectPie = {};
45147
- var hasRequired_objectPie;
45148
- function require_objectPie() {
45149
- if (hasRequired_objectPie)
45150
- return _objectPie;
45151
- hasRequired_objectPie = 1;
45152
- _objectPie.f = {}.propertyIsEnumerable;
45153
- return _objectPie;
45154
- }
45155
- __name(require_objectPie, "require_objectPie");
45112
+ _objectPie.f = {}.propertyIsEnumerable;
45156
45113
  var defined$1 = _defined;
45157
45114
  var _toObject = /* @__PURE__ */ __name(function(it) {
45158
45115
  return Object(defined$1(it));
@@ -45163,12 +45120,12 @@ ${latestSubscriptionCallbackError.current.stack}
45163
45120
  if (hasRequired_objectAssign)
45164
45121
  return _objectAssign;
45165
45122
  hasRequired_objectAssign = 1;
45166
- var DESCRIPTORS2 = require_descriptors();
45123
+ var DESCRIPTORS2 = _descriptors;
45167
45124
  var getKeys2 = _objectKeys;
45168
45125
  var gOPS2 = _objectGops;
45169
- var pIE2 = require_objectPie();
45126
+ var pIE2 = _objectPie;
45170
45127
  var toObject2 = _toObject;
45171
- var IObject2 = require_iobject();
45128
+ var IObject2 = _iobject;
45172
45129
  var $assign = Object.assign;
45173
45130
  _objectAssign = !$assign || _fails(function() {
45174
45131
  var A2 = {};
@@ -45229,19 +45186,28 @@ ${latestSubscriptionCallbackError.current.stack}
45229
45186
  }, "_iterStep");
45230
45187
  var _iterators = {};
45231
45188
  var _redefine = _hide;
45232
- var dP$1 = require_objectDp();
45233
- var anObject$4 = _anObject;
45234
- var getKeys$1 = _objectKeys;
45235
- var _objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties2(O2, Properties2) {
45236
- anObject$4(O2);
45237
- var keys2 = getKeys$1(Properties2);
45238
- var length = keys2.length;
45239
- var i2 = 0;
45240
- var P2;
45241
- while (length > i2)
45242
- dP$1.f(O2, P2 = keys2[i2++], Properties2[P2]);
45243
- return O2;
45244
- }, "defineProperties");
45189
+ var _objectDps;
45190
+ var hasRequired_objectDps;
45191
+ function require_objectDps() {
45192
+ if (hasRequired_objectDps)
45193
+ return _objectDps;
45194
+ hasRequired_objectDps = 1;
45195
+ var dP2 = _objectDp;
45196
+ var anObject2 = _anObject;
45197
+ var getKeys2 = _objectKeys;
45198
+ _objectDps = _descriptors ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties2(O2, Properties2) {
45199
+ anObject2(O2);
45200
+ var keys2 = getKeys2(Properties2);
45201
+ var length = keys2.length;
45202
+ var i2 = 0;
45203
+ var P2;
45204
+ while (length > i2)
45205
+ dP2.f(O2, P2 = keys2[i2++], Properties2[P2]);
45206
+ return O2;
45207
+ }, "defineProperties");
45208
+ return _objectDps;
45209
+ }
45210
+ __name(require_objectDps, "require_objectDps");
45245
45211
  var _html;
45246
45212
  var hasRequired_html;
45247
45213
  function require_html() {
@@ -45253,42 +45219,51 @@ ${latestSubscriptionCallbackError.current.stack}
45253
45219
  return _html;
45254
45220
  }
45255
45221
  __name(require_html, "require_html");
45256
- var anObject$3 = _anObject;
45257
- var dPs = _objectDps;
45258
- var enumBugKeys = _enumBugKeys;
45259
- var IE_PROTO$1 = _sharedKey("IE_PROTO");
45260
- var Empty = /* @__PURE__ */ __name(function() {
45261
- }, "Empty");
45262
- var PROTOTYPE$1 = "prototype";
45263
- var createDict = /* @__PURE__ */ __name(function() {
45264
- var iframe = require_domCreate()("iframe");
45265
- var i2 = enumBugKeys.length;
45266
- var lt = "<";
45267
- var gt = ">";
45268
- var iframeDocument;
45269
- iframe.style.display = "none";
45270
- require_html().appendChild(iframe);
45271
- iframe.src = "javascript:";
45272
- iframeDocument = iframe.contentWindow.document;
45273
- iframeDocument.open();
45274
- iframeDocument.write(lt + "script" + gt + "document.F=Object" + lt + "/script" + gt);
45275
- iframeDocument.close();
45276
- createDict = iframeDocument.F;
45277
- while (i2--)
45278
- delete createDict[PROTOTYPE$1][enumBugKeys[i2]];
45279
- return createDict();
45280
- }, "createDict");
45281
- var _objectCreate = Object.create || /* @__PURE__ */ __name(function create2(O2, Properties2) {
45282
- var result;
45283
- if (O2 !== null) {
45284
- Empty[PROTOTYPE$1] = anObject$3(O2);
45285
- result = new Empty();
45286
- Empty[PROTOTYPE$1] = null;
45287
- result[IE_PROTO$1] = O2;
45288
- } else
45289
- result = createDict();
45290
- return Properties2 === void 0 ? result : dPs(result, Properties2);
45291
- }, "create");
45222
+ var _objectCreate;
45223
+ var hasRequired_objectCreate;
45224
+ function require_objectCreate() {
45225
+ if (hasRequired_objectCreate)
45226
+ return _objectCreate;
45227
+ hasRequired_objectCreate = 1;
45228
+ var anObject2 = _anObject;
45229
+ var dPs = require_objectDps();
45230
+ var enumBugKeys2 = _enumBugKeys;
45231
+ var IE_PROTO2 = _sharedKey("IE_PROTO");
45232
+ var Empty = /* @__PURE__ */ __name(function() {
45233
+ }, "Empty");
45234
+ var PROTOTYPE2 = "prototype";
45235
+ var createDict = /* @__PURE__ */ __name(function() {
45236
+ var iframe = require_domCreate()("iframe");
45237
+ var i2 = enumBugKeys2.length;
45238
+ var lt = "<";
45239
+ var gt = ">";
45240
+ var iframeDocument;
45241
+ iframe.style.display = "none";
45242
+ require_html().appendChild(iframe);
45243
+ iframe.src = "javascript:";
45244
+ iframeDocument = iframe.contentWindow.document;
45245
+ iframeDocument.open();
45246
+ iframeDocument.write(lt + "script" + gt + "document.F=Object" + lt + "/script" + gt);
45247
+ iframeDocument.close();
45248
+ createDict = iframeDocument.F;
45249
+ while (i2--)
45250
+ delete createDict[PROTOTYPE2][enumBugKeys2[i2]];
45251
+ return createDict();
45252
+ }, "createDict");
45253
+ _objectCreate = Object.create || /* @__PURE__ */ __name(function create2(O2, Properties2) {
45254
+ var result;
45255
+ if (O2 !== null) {
45256
+ Empty[PROTOTYPE2] = anObject2(O2);
45257
+ result = new Empty();
45258
+ Empty[PROTOTYPE2] = null;
45259
+ result[IE_PROTO2] = O2;
45260
+ } else
45261
+ result = createDict();
45262
+ return Properties2 === void 0 ? result : dPs(result, Properties2);
45263
+ }, "create");
45264
+ return _objectCreate;
45265
+ }
45266
+ __name(require_objectCreate, "require_objectCreate");
45292
45267
  var _wks = { exports: {} };
45293
45268
  var store$2 = _sharedExports("wks");
45294
45269
  var uid$1 = _uid;
@@ -45299,14 +45274,14 @@ ${latestSubscriptionCallbackError.current.stack}
45299
45274
  };
45300
45275
  $exports.store = store$2;
45301
45276
  var _wksExports = _wks.exports;
45302
- var def = require_objectDp().f;
45277
+ var def = _objectDp.f;
45303
45278
  var has$b = _has;
45304
45279
  var TAG$1 = _wksExports("toStringTag");
45305
45280
  var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
45306
45281
  if (it && !has$b(it = stat ? it : it.prototype, TAG$1))
45307
45282
  def(it, TAG$1, { configurable: true, value: tag });
45308
45283
  }, "_setToStringTag");
45309
- var create$4 = _objectCreate;
45284
+ var create$4 = require_objectCreate();
45310
45285
  var descriptor = _propertyDesc;
45311
45286
  var setToStringTag$2 = _setToStringTag;
45312
45287
  var IteratorPrototype = {};
@@ -45572,7 +45547,7 @@ ${latestSubscriptionCallbackError.current.stack}
45572
45547
  var _isArrayIter = /* @__PURE__ */ __name(function(it) {
45573
45548
  return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
45574
45549
  }, "_isArrayIter");
45575
- var $defineProperty$1 = require_objectDp();
45550
+ var $defineProperty$1 = _objectDp;
45576
45551
  var createDesc$2 = _propertyDesc;
45577
45552
  var _createProperty = /* @__PURE__ */ __name(function(object2, index2, value) {
45578
45553
  if (index2 in object2)
@@ -45701,7 +45676,7 @@ ${latestSubscriptionCallbackError.current.stack}
45701
45676
  }
45702
45677
  }, "_default$8");
45703
45678
  var $export$3 = _export;
45704
- $export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: require_objectDp().f });
45679
+ $export$3($export$3.S + $export$3.F * !_descriptors, "Object", { defineProperty: _objectDp.f });
45705
45680
  var $Object$1 = _coreExports.Object;
45706
45681
  var defineProperty$6 = /* @__PURE__ */ __name(function defineProperty2(it, key2, desc) {
45707
45682
  return $Object$1.defineProperty(it, key2, desc);
@@ -45742,7 +45717,7 @@ ${latestSubscriptionCallbackError.current.stack}
45742
45717
  var META$1 = _uid("meta");
45743
45718
  var isObject$5 = _isObject;
45744
45719
  var has$9 = _has;
45745
- var setDesc = require_objectDp().f;
45720
+ var setDesc = _objectDp.f;
45746
45721
  var id$1 = 0;
45747
45722
  var isExtensible = Object.isExtensible || function() {
45748
45723
  return true;
@@ -45795,7 +45770,7 @@ ${latestSubscriptionCallbackError.current.stack}
45795
45770
  var _metaExports = _meta.exports;
45796
45771
  var core = _coreExports;
45797
45772
  var wksExt$1 = _wksExt;
45798
- var defineProperty$4 = require_objectDp().f;
45773
+ var defineProperty$4 = _objectDp.f;
45799
45774
  var _wksDefine = /* @__PURE__ */ __name(function(name2) {
45800
45775
  var $Symbol2 = core.Symbol || (core.Symbol = {});
45801
45776
  if (name2.charAt(0) != "_" && !(name2 in $Symbol2))
@@ -45803,7 +45778,7 @@ ${latestSubscriptionCallbackError.current.stack}
45803
45778
  }, "_wksDefine");
45804
45779
  var getKeys = _objectKeys;
45805
45780
  var gOPS$1 = _objectGops;
45806
- var pIE$1 = require_objectPie();
45781
+ var pIE$1 = _objectPie;
45807
45782
  var _enumKeys = /* @__PURE__ */ __name(function(it) {
45808
45783
  var result = getKeys(it);
45809
45784
  var getSymbols2 = gOPS$1.f;
@@ -45824,13 +45799,21 @@ ${latestSubscriptionCallbackError.current.stack}
45824
45799
  }, "isArray");
45825
45800
  var _objectGopnExt = {};
45826
45801
  var _objectGopn = {};
45827
- var $keys$2 = _objectKeysInternal;
45828
- var hiddenKeys = _enumBugKeys.concat("length", "prototype");
45829
- _objectGopn.f = Object.getOwnPropertyNames || /* @__PURE__ */ __name(function getOwnPropertyNames2(O2) {
45830
- return $keys$2(O2, hiddenKeys);
45831
- }, "getOwnPropertyNames");
45802
+ var hasRequired_objectGopn;
45803
+ function require_objectGopn() {
45804
+ if (hasRequired_objectGopn)
45805
+ return _objectGopn;
45806
+ hasRequired_objectGopn = 1;
45807
+ var $keys2 = _objectKeysInternal;
45808
+ var hiddenKeys = _enumBugKeys.concat("length", "prototype");
45809
+ _objectGopn.f = Object.getOwnPropertyNames || /* @__PURE__ */ __name(function getOwnPropertyNames2(O2) {
45810
+ return $keys2(O2, hiddenKeys);
45811
+ }, "getOwnPropertyNames");
45812
+ return _objectGopn;
45813
+ }
45814
+ __name(require_objectGopn, "require_objectGopn");
45832
45815
  var toIObject$2 = _toIobject;
45833
- var gOPN$1 = _objectGopn.f;
45816
+ var gOPN$1 = require_objectGopn().f;
45834
45817
  var toString$3 = {}.toString;
45835
45818
  var windowNames = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
45836
45819
  var getWindowNames = /* @__PURE__ */ __name(function(it) {
@@ -45844,14 +45827,14 @@ ${latestSubscriptionCallbackError.current.stack}
45844
45827
  return windowNames && toString$3.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
45845
45828
  }, "getOwnPropertyNames");
45846
45829
  var _objectGopd = {};
45847
- var pIE = require_objectPie();
45830
+ var pIE = _objectPie;
45848
45831
  var createDesc$1 = _propertyDesc;
45849
45832
  var toIObject$1 = _toIobject;
45850
45833
  var toPrimitive$1 = _toPrimitive$1;
45851
45834
  var has$8 = _has;
45852
- var IE8_DOM_DEFINE = require_ie8DomDefine();
45835
+ var IE8_DOM_DEFINE = _ie8DomDefine;
45853
45836
  var gOPD$2 = Object.getOwnPropertyDescriptor;
45854
- _objectGopd.f = require_descriptors() ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor2(O2, P2) {
45837
+ _objectGopd.f = _descriptors ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor2(O2, P2) {
45855
45838
  O2 = toIObject$1(O2);
45856
45839
  P2 = toPrimitive$1(P2, true);
45857
45840
  if (IE8_DOM_DEFINE)
@@ -45864,7 +45847,7 @@ ${latestSubscriptionCallbackError.current.stack}
45864
45847
  }, "getOwnPropertyDescriptor");
45865
45848
  var global$1 = _globalExports;
45866
45849
  var has$7 = _has;
45867
- var DESCRIPTORS = require_descriptors();
45850
+ var DESCRIPTORS = _descriptors;
45868
45851
  var $export$2 = _export;
45869
45852
  var redefine = _redefine;
45870
45853
  var META = _metaExports.KEY;
@@ -45883,11 +45866,11 @@ ${latestSubscriptionCallbackError.current.stack}
45883
45866
  var toIObject = _toIobject;
45884
45867
  var toPrimitive = _toPrimitive$1;
45885
45868
  var createDesc = _propertyDesc;
45886
- var _create$1 = _objectCreate;
45869
+ var _create$1 = require_objectCreate();
45887
45870
  var gOPNExt = _objectGopnExt;
45888
45871
  var $GOPD = _objectGopd;
45889
45872
  var $GOPS = _objectGops;
45890
- var $DP = require_objectDp();
45873
+ var $DP = _objectDp;
45891
45874
  var $keys$1 = _objectKeys;
45892
45875
  var gOPD$1 = $GOPD.f;
45893
45876
  var dP = $DP.f;
@@ -46023,8 +46006,8 @@ ${latestSubscriptionCallbackError.current.stack}
46023
46006
  }, "toString"));
46024
46007
  $GOPD.f = $getOwnPropertyDescriptor;
46025
46008
  $DP.f = $defineProperty;
46026
- _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
46027
- require_objectPie().f = $propertyIsEnumerable;
46009
+ require_objectGopn().f = gOPNExt.f = $getOwnPropertyNames;
46010
+ _objectPie.f = $propertyIsEnumerable;
46028
46011
  $GOPS.f = $getOwnPropertySymbols;
46029
46012
  if (DESCRIPTORS && !_library) {
46030
46013
  redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable);
@@ -46190,7 +46173,7 @@ ${latestSubscriptionCallbackError.current.stack}
46190
46173
  var setPrototypeOf$1 = _coreExports.Object.setPrototypeOf;
46191
46174
  var setPrototypeOf = { "default": setPrototypeOf$1, __esModule: true };
46192
46175
  var $export = _export;
46193
- $export($export.S, "Object", { create: _objectCreate });
46176
+ $export($export.S, "Object", { create: require_objectCreate() });
46194
46177
  var $Object = _coreExports.Object;
46195
46178
  var create$3 = /* @__PURE__ */ __name(function create2(P2, D2) {
46196
46179
  return $Object.create(P2, D2);
@@ -107748,6 +107731,7 @@ ${latestSubscriptionCallbackError.current.stack}
107748
107731
  minimumOrfSizeUpdate
107749
107732
  }, Symbol.toStringTag, { value: "Module" }));
107750
107733
  const protein_letters = "ACDEFGHIKLMNPQRSTVWY";
107734
+ const protein_letters_withUandX = "ACDEFGHIKLMNPQRSTVWYUX";
107751
107735
  const extended_protein_letters = "ACDEFGHIKLMNPQRSTVWYBXZJUO.*-";
107752
107736
  const ambiguous_dna_letters = "GATCRYWSMKHBVDN";
107753
107737
  const unambiguous_dna_letters = "GATC";
@@ -107816,6 +107800,7 @@ ${latestSubscriptionCallbackError.current.stack}
107816
107800
  extended_protein_letters,
107817
107801
  extended_protein_values,
107818
107802
  protein_letters,
107803
+ protein_letters_withUandX,
107819
107804
  unambiguous_dna_letters,
107820
107805
  unambiguous_rna_letters
107821
107806
  }, Symbol.toStringTag, { value: "Module" }));
@@ -113834,20 +113819,91 @@ ${latestSubscriptionCallbackError.current.stack}
113834
113819
  "primers",
113835
113820
  "guides"
113836
113821
  ];
113837
- function filterSequenceString(sequenceString, additionalValidChars = "", charOverrides) {
113838
- if (sequenceString) {
113839
- return sequenceString.replace(
113840
- new RegExp(
113841
- `[^${charOverrides || `atgcyrswkmbvdhnu${additionalValidChars.split("").join("\\")}`}]`,
113842
- "gi"
113843
- ),
113844
- ""
113822
+ function filterSequenceString(sequenceString, {
113823
+ additionalValidChars = "",
113824
+ isOligo: isOligo2,
113825
+ name: name2,
113826
+ isProtein: isProtein2,
113827
+ isRna: isRna2,
113828
+ isMixedRnaAndDna,
113829
+ includeStopCodon
113830
+ } = {}) {
113831
+ const acceptedChars = getAcceptedChars({
113832
+ isOligo: isOligo2,
113833
+ isProtein: isProtein2,
113834
+ isRna: isRna2,
113835
+ isMixedRnaAndDna,
113836
+ includeStopCodon
113837
+ });
113838
+ const replaceChars = getReplaceChars({
113839
+ isOligo: isOligo2,
113840
+ isProtein: isProtein2,
113841
+ isRna: isRna2,
113842
+ isMixedRnaAndDna
113843
+ });
113844
+ let sanitizedVal = "";
113845
+ const invalidChars = [];
113846
+ const chars2 = `${acceptedChars}${additionalValidChars.split("").join("\\")}`;
113847
+ const warnings = [];
113848
+ const replaceCount = {};
113849
+ sequenceString.split("").forEach((letter) => {
113850
+ const lowerLetter = letter.toLowerCase();
113851
+ if (replaceChars && replaceChars[lowerLetter]) {
113852
+ if (!replaceCount[lowerLetter]) {
113853
+ replaceCount[lowerLetter] = 0;
113854
+ }
113855
+ replaceCount[lowerLetter]++;
113856
+ const isUpper = lowerLetter !== letter;
113857
+ sanitizedVal += isUpper ? replaceChars[lowerLetter].toUpperCase() : replaceChars[lowerLetter];
113858
+ } else if (chars2.includes(lowerLetter)) {
113859
+ sanitizedVal += letter;
113860
+ } else {
113861
+ invalidChars.push(letter);
113862
+ }
113863
+ });
113864
+ Object.keys(replaceCount).forEach((letter) => {
113865
+ warnings.push(
113866
+ `Replaced "${letter}" with "${replaceChars[letter]}"${replaceCount[letter] > 1 ? ` ${replaceCount[letter]} times` : ""}`
113867
+ );
113868
+ });
113869
+ if (sequenceString.length !== sanitizedVal.length) {
113870
+ warnings.push(
113871
+ `${name2 ? `Sequence ${name2}: ` : ""}Invalid character(s) detected and removed: ${invalidChars.slice(0, 100).join(", ")} `
113845
113872
  );
113846
- } else {
113847
- return sequenceString;
113848
113873
  }
113874
+ if (typeof window !== "undefined" && window.toastr && warnings.length) {
113875
+ warnings.forEach((warning2) => {
113876
+ window.toastr.warning(warning2);
113877
+ });
113878
+ }
113879
+ return [sanitizedVal, warnings];
113849
113880
  }
113850
113881
  __name(filterSequenceString, "filterSequenceString");
113882
+ function getAcceptedChars({
113883
+ isOligo: isOligo2,
113884
+ isProtein: isProtein2,
113885
+ isRna: isRna2,
113886
+ isMixedRnaAndDna,
113887
+ includeStopCodon
113888
+ } = {}) {
113889
+ return isProtein2 ? `${protein_letters_withUandX.toLowerCase()}${includeStopCodon ? "*." : ""}}` : isOligo2 ? ambiguous_rna_letters.toLowerCase() + "t" : isRna2 ? ambiguous_rna_letters.toLowerCase() + "t" : isMixedRnaAndDna ? ambiguous_rna_letters.toLowerCase() + ambiguous_dna_letters.toLowerCase() : (
113890
+ //just plain old dna
113891
+ ambiguous_rna_letters.toLowerCase() + ambiguous_dna_letters.toLowerCase()
113892
+ );
113893
+ }
113894
+ __name(getAcceptedChars, "getAcceptedChars");
113895
+ function getReplaceChars({
113896
+ isOligo: isOligo2,
113897
+ isProtein: isProtein2,
113898
+ isRna: isRna2,
113899
+ isMixedRnaAndDna
113900
+ } = {}) {
113901
+ return isProtein2 ? {} : isOligo2 ? {} : isRna2 ? { t: "u" } : isMixedRnaAndDna ? {} : (
113902
+ //just plain old dna
113903
+ {}
113904
+ );
113905
+ }
113906
+ __name(getReplaceChars, "getReplaceChars");
113851
113907
  function tidyUpAnnotation(_annotation, {
113852
113908
  sequenceData: sequenceData2 = {},
113853
113909
  convertAnnotationsFromAAIndices,
@@ -113976,14 +114032,6 @@ ${latestSubscriptionCallbackError.current.stack}
113976
114032
  }
113977
114033
  }
113978
114034
  __name(coerceLocation, "coerceLocation");
113979
- function filterAminoAcidSequenceString(sequenceString, options) {
113980
- options = options || {};
113981
- if (options.includeStopCodon) {
113982
- return sequenceString == null ? void 0 : sequenceString.replace(/[^xtgalmfwkqespvicyhrndu.*]/gi, "");
113983
- }
113984
- return sequenceString == null ? void 0 : sequenceString.replace(/[^xtgalmfwkqespvicyhrndu]/gi, "");
113985
- }
113986
- __name(filterAminoAcidSequenceString, "filterAminoAcidSequenceString");
113987
114035
  function getDegenerateDnaStringFromAAString(aaString) {
113988
114036
  return aaString.split("").map((char2) => aminoAcidToDegenerateDnaMap[char2.toLowerCase()] || "nnn").join("");
113989
114037
  }
@@ -113995,11 +114043,10 @@ ${latestSubscriptionCallbackError.current.stack}
113995
114043
  removeUnwantedChars,
113996
114044
  additionalValidChars,
113997
114045
  noTranslationData,
113998
- charOverrides,
113999
114046
  doNotProvideIdsForAnnotations,
114000
- proteinFilterOptions,
114001
114047
  noCdsTranslations,
114002
- convertAnnotationsFromAAIndices
114048
+ convertAnnotationsFromAAIndices,
114049
+ topLevelSeqData
114003
114050
  } = options;
114004
114051
  let seqData = lodashExports.cloneDeep(pSeqData);
114005
114052
  const response = {
@@ -114029,16 +114076,15 @@ ${latestSubscriptionCallbackError.current.stack}
114029
114076
  }
114030
114077
  if (removeUnwantedChars) {
114031
114078
  if (seqData.isProtein) {
114032
- seqData.proteinSequence = filterAminoAcidSequenceString(
114033
- seqData.proteinSequence,
114034
- __spreadValues({ includeStopCodon: true }, proteinFilterOptions)
114035
- );
114079
+ const [newSeq] = filterSequenceString(seqData.proteinSequence, __spreadValues({
114080
+ includeStopCodon: true
114081
+ }, topLevelSeqData || seqData));
114082
+ seqData.proteinSequence = newSeq;
114036
114083
  } else {
114037
- seqData.sequence = filterSequenceString(
114038
- seqData.sequence,
114039
- `${additionalValidChars || ""}${seqData.isRna || seqData.isMixedRnaAndDna ? "u" : ""}`,
114040
- charOverrides
114041
- );
114084
+ const [newSeq] = filterSequenceString(seqData.sequence, __spreadValues({
114085
+ additionalValidChars
114086
+ }, topLevelSeqData || seqData));
114087
+ seqData.sequence = newSeq;
114042
114088
  }
114043
114089
  }
114044
114090
  if (seqData.isProtein) {
@@ -123385,7 +123431,8 @@ ${latestSubscriptionCallbackError.current.stack}
123385
123431
  inclusive1BasedEnd,
123386
123432
  additionalValidChars,
123387
123433
  allowOverflowAnnotations,
123388
- coerceFeatureTypes
123434
+ coerceFeatureTypes,
123435
+ includeStopCodon
123389
123436
  } = options;
123390
123437
  [
123391
123438
  "isDNA",
@@ -123435,7 +123482,6 @@ ${latestSubscriptionCallbackError.current.stack}
123435
123482
  response.messages.push("No sequence detected");
123436
123483
  sequence2.sequence = "";
123437
123484
  }
123438
- let validChars;
123439
123485
  if (sequence2.isProtein === void 0 && guessIfProtein) {
123440
123486
  sequence2.isProtein = !guessIfSequenceIsDnaAndNotProtein(
123441
123487
  sequence2.sequence,
@@ -123443,12 +123489,15 @@ ${latestSubscriptionCallbackError.current.stack}
123443
123489
  );
123444
123490
  }
123445
123491
  if (sequence2.isProtein) {
123446
- validChars = filterAminoAcidSequenceString(sequence2.sequence);
123492
+ const [validChars, warnings] = filterSequenceString(sequence2.sequence, {
123493
+ name: sequence2.name,
123494
+ isProtein: true,
123495
+ additionalValidChars,
123496
+ includeStopCodon
123497
+ });
123447
123498
  if (validChars !== sequence2.sequence) {
123448
123499
  sequence2.sequence = validChars;
123449
- response.messages.push(
123450
- "Import Error: Illegal character(s) detected and removed from amino acid sequence. Allowed characters are: xtgalmfwkqespvicyhrndu"
123451
- );
123500
+ response.messages.push(...warnings);
123452
123501
  }
123453
123502
  sequence2.type = "PROTEIN";
123454
123503
  sequence2.isProtein = true;
@@ -123470,12 +123519,12 @@ ${latestSubscriptionCallbackError.current.stack}
123470
123519
  } else {
123471
123520
  sequence2.type = "DNA";
123472
123521
  }
123473
- validChars = filterSequenceString(sequence2.sequence, additionalValidChars);
123522
+ const [validChars, warnings] = filterSequenceString(sequence2.sequence, __spreadValues({
123523
+ additionalValidChars
123524
+ }, sequence2));
123474
123525
  if (validChars !== sequence2.sequence) {
123475
123526
  sequence2.sequence = validChars;
123476
- response.messages.push(
123477
- "Import Error: Illegal character(s) detected and removed from sequence. Allowed characters are: atgcyrswkmbvdhn"
123478
- );
123527
+ response.messages.push(...warnings);
123479
123528
  }
123480
123529
  }
123481
123530
  if (!sequence2.size) {
@@ -138363,18 +138412,6 @@ ${seq.sequence}
138363
138412
  return selToUse;
138364
138413
  }
138365
138414
  __name(getSelFromWrappedAddon, "getSelFromWrappedAddon");
138366
- function getAcceptedChars({
138367
- isOligo: isOligo2,
138368
- isProtein: isProtein2,
138369
- isRna: isRna2,
138370
- isMixedRnaAndDna
138371
- } = {}) {
138372
- return isProtein2 ? extended_protein_letters.toLowerCase() : isOligo2 ? ambiguous_rna_letters.toLowerCase() + "t" : isRna2 ? ambiguous_rna_letters.toLowerCase() : isMixedRnaAndDna ? ambiguous_rna_letters.toLowerCase() + ambiguous_dna_letters.toLowerCase() : (
138373
- //just plain old dna
138374
- ambiguous_dna_letters.toLowerCase()
138375
- );
138376
- }
138377
- __name(getAcceptedChars, "getAcceptedChars");
138378
138415
  function getStripedPattern({ color: color2 }) {
138379
138416
  return /* @__PURE__ */ React$2.createElement(
138380
138417
  "pattern",
@@ -154960,7 +154997,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
154960
154997
  }
154961
154998
  __name(showFileDialog, "showFileDialog");
154962
154999
  const name = "@teselagen/ove";
154963
- const version = "0.3.30";
155000
+ const version = "0.3.43";
154964
155001
  const main = "./src/index.js";
154965
155002
  const exports$1 = {
154966
155003
  ".": {
@@ -157107,9 +157144,8 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
157107
157144
  selectionLayer: selectionLayer2,
157108
157145
  sequenceLength,
157109
157146
  isProtein: isProtein2,
157110
- replaceChars,
157111
157147
  caretPosition: caretPosition2,
157112
- acceptedChars,
157148
+ sequenceData: sequenceData2,
157113
157149
  maxInsertSize
157114
157150
  } = this.props;
157115
157151
  const { charsToInsert, hasTempError } = this.state;
@@ -157142,17 +157178,13 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
157142
157178
  autoFocus: true,
157143
157179
  style: hasTempError ? { borderColor: "red" } : {},
157144
157180
  onChange: (e2) => {
157145
- let sanitizedVal = "";
157146
- e2.target.value.split("").forEach((letter) => {
157147
- const lowerLetter = letter.toLowerCase();
157148
- if (replaceChars && replaceChars[lowerLetter]) {
157149
- const isUpper = lowerLetter !== letter;
157150
- sanitizedVal += isUpper ? replaceChars[lowerLetter].toUpperCase() : replaceChars[lowerLetter];
157151
- } else if (acceptedChars.includes(lowerLetter)) {
157152
- sanitizedVal += letter;
157153
- }
157154
- });
157155
- if (e2.target.value.length !== sanitizedVal.length) {
157181
+ const [sanitizedVal, warnings] = filterSequenceString(
157182
+ e2.target.value,
157183
+ __spreadProps(__spreadValues({}, sequenceData2), {
157184
+ name: void 0
157185
+ })
157186
+ );
157187
+ if (warnings.length) {
157156
157188
  this.setState({
157157
157189
  hasTempError: true
157158
157190
  });
@@ -158027,7 +158059,8 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
158027
158059
  selectionLayer: selectionLayer2 = { start: -1, end: -1 },
158028
158060
  readOnly: readOnly2,
158029
158061
  onPaste,
158030
- disableBpEditing
158062
+ disableBpEditing,
158063
+ sequenceData: sequenceData2
158031
158064
  } = this.props;
158032
158065
  if (disableBpEditing) {
158033
158066
  return window.toastr.warning("Sorry the underlying sequence is locked");
@@ -158052,6 +158085,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
158052
158085
  };
158053
158086
  }
158054
158087
  seqDataToInsert = tidyUpSequenceData(seqDataToInsert, {
158088
+ topLevelSeqData: sequenceData2,
158055
158089
  provideNewIdsForAnnotations: true,
158056
158090
  annotationsAsObjects: true,
158057
158091
  removeUnwantedChars: true,
@@ -158147,8 +158181,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
158147
158181
  createSequenceInputPopup({
158148
158182
  useEventPositioning,
158149
158183
  isReplace,
158150
- replaceChars: sequenceData2.isRna ? { t: "u" } : void 0,
158151
- acceptedChars: getAcceptedChars(sequenceData2),
158184
+ sequenceData: sequenceData2,
158152
158185
  isProtein: sequenceData2.isProtein,
158153
158186
  selectionLayer: selectionLayer2,
158154
158187
  sequenceLength,
@@ -169641,14 +169674,8 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
169641
169674
  const newVal2 = e2.target.innerText;
169642
169675
  const savedCaretPosition = EditCaretPositioning.saveSelection(e2.currentTarget);
169643
169676
  setCaretPosition(savedCaretPosition);
169644
- const acceptedChars = getAcceptedChars(sequenceData2);
169645
- let newBases = "";
169646
- newVal2.split("").forEach((letter) => {
169647
- if (acceptedChars.includes(letter.toLowerCase())) {
169648
- newBases += letter;
169649
- }
169650
- });
169651
- if (newVal2.length !== newBases.length) {
169677
+ const [newBases, warnings] = filterSequenceString(newVal2, sequenceData2);
169678
+ if (warnings.length) {
169652
169679
  setTempError(true);
169653
169680
  setTimeout(() => {
169654
169681
  setTempError(false);