@teselagen/ove 0.5.13 → 0.5.15
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.cjs.js +412 -317
- package/index.es.js +412 -317
- package/index.umd.js +253 -219
- package/package.json +2 -2
- package/src/GlobalDialogUtils.js +4 -1
- package/src/RowItem/Translations/AASliver.js +12 -11
- package/src/RowItem/Translations/Translation.js +41 -9
- package/src/withEditorInteractions/index.js +15 -28
- package/src/withEditorProps/index.js +9 -8
- package/style.css +7 -0
package/index.es.js
CHANGED
|
@@ -2817,7 +2817,7 @@ var followCursor = {
|
|
|
2817
2817
|
}
|
|
2818
2818
|
}
|
|
2819
2819
|
__name(onMouseMove, "onMouseMove");
|
|
2820
|
-
function
|
|
2820
|
+
function create5() {
|
|
2821
2821
|
if (instance.props.followCursor) {
|
|
2822
2822
|
activeInstances.push({
|
|
2823
2823
|
instance,
|
|
@@ -2826,7 +2826,7 @@ var followCursor = {
|
|
|
2826
2826
|
addMouseCoordsListener(doc);
|
|
2827
2827
|
}
|
|
2828
2828
|
}
|
|
2829
|
-
__name(
|
|
2829
|
+
__name(create5, "create");
|
|
2830
2830
|
function destroy2() {
|
|
2831
2831
|
activeInstances = activeInstances.filter(function(data) {
|
|
2832
2832
|
return data.instance !== instance;
|
|
@@ -2839,7 +2839,7 @@ var followCursor = {
|
|
|
2839
2839
|
}
|
|
2840
2840
|
__name(destroy2, "destroy");
|
|
2841
2841
|
return {
|
|
2842
|
-
onCreate:
|
|
2842
|
+
onCreate: create5,
|
|
2843
2843
|
onDestroy: destroy2,
|
|
2844
2844
|
onBeforeUpdate: /* @__PURE__ */ __name(function onBeforeUpdate2() {
|
|
2845
2845
|
prevProps = instance.props;
|
|
@@ -2852,7 +2852,7 @@ var followCursor = {
|
|
|
2852
2852
|
if (followCursor2 !== void 0 && prevProps.followCursor !== followCursor2) {
|
|
2853
2853
|
destroy2();
|
|
2854
2854
|
if (followCursor2) {
|
|
2855
|
-
|
|
2855
|
+
create5();
|
|
2856
2856
|
if (instance.state.isMounted && !wasFocusEvent && !getIsInitialBehavior()) {
|
|
2857
2857
|
addListener();
|
|
2858
2858
|
}
|
|
@@ -14281,10 +14281,10 @@ var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
|
|
|
14281
14281
|
value
|
|
14282
14282
|
};
|
|
14283
14283
|
}, "_propertyDesc");
|
|
14284
|
-
var dP$
|
|
14284
|
+
var dP$1 = require_objectDp();
|
|
14285
14285
|
var createDesc$3 = _propertyDesc;
|
|
14286
14286
|
var _hide = require_descriptors() ? function(object3, key, value) {
|
|
14287
|
-
return dP$
|
|
14287
|
+
return dP$1.f(object3, key, createDesc$3(1, value));
|
|
14288
14288
|
} : function(object3, key, value) {
|
|
14289
14289
|
object3[key] = value;
|
|
14290
14290
|
return object3;
|
|
@@ -14298,7 +14298,7 @@ var core$3 = _coreExports;
|
|
|
14298
14298
|
var ctx$1 = _ctx;
|
|
14299
14299
|
var hide$3 = _hide;
|
|
14300
14300
|
var has$e = _has;
|
|
14301
|
-
var PROTOTYPE$
|
|
14301
|
+
var PROTOTYPE$1 = "prototype";
|
|
14302
14302
|
var $export$8 = /* @__PURE__ */ __name(function(type2, name2, source) {
|
|
14303
14303
|
var IS_FORCED = type2 & $export$8.F;
|
|
14304
14304
|
var IS_GLOBAL = type2 & $export$8.G;
|
|
@@ -14307,8 +14307,8 @@ var $export$8 = /* @__PURE__ */ __name(function(type2, name2, source) {
|
|
|
14307
14307
|
var IS_BIND = type2 & $export$8.B;
|
|
14308
14308
|
var IS_WRAP = type2 & $export$8.W;
|
|
14309
14309
|
var exports2 = IS_GLOBAL ? core$3 : core$3[name2] || (core$3[name2] = {});
|
|
14310
|
-
var expProto = exports2[PROTOTYPE$
|
|
14311
|
-
var target = IS_GLOBAL ? global$5 : IS_STATIC ? global$5[name2] : (global$5[name2] || {})[PROTOTYPE$
|
|
14310
|
+
var expProto = exports2[PROTOTYPE$1];
|
|
14311
|
+
var target = IS_GLOBAL ? global$5 : IS_STATIC ? global$5[name2] : (global$5[name2] || {})[PROTOTYPE$1];
|
|
14312
14312
|
var key, own2, out;
|
|
14313
14313
|
if (IS_GLOBAL)
|
|
14314
14314
|
source = name2;
|
|
@@ -14332,7 +14332,7 @@ var $export$8 = /* @__PURE__ */ __name(function(type2, name2, source) {
|
|
|
14332
14332
|
}
|
|
14333
14333
|
return C.apply(this, arguments);
|
|
14334
14334
|
}, "F");
|
|
14335
|
-
F[PROTOTYPE$
|
|
14335
|
+
F[PROTOTYPE$1] = C[PROTOTYPE$1];
|
|
14336
14336
|
return F;
|
|
14337
14337
|
}(out) : IS_PROTO && typeof out == "function" ? ctx$1(Function.call, out) : out;
|
|
14338
14338
|
if (IS_PROTO) {
|
|
@@ -14355,16 +14355,25 @@ var toString$5 = {}.toString;
|
|
|
14355
14355
|
var _cof = /* @__PURE__ */ __name(function(it) {
|
|
14356
14356
|
return toString$5.call(it).slice(8, -1);
|
|
14357
14357
|
}, "_cof");
|
|
14358
|
-
var
|
|
14359
|
-
var
|
|
14360
|
-
|
|
14361
|
-
|
|
14358
|
+
var _iobject;
|
|
14359
|
+
var hasRequired_iobject;
|
|
14360
|
+
function require_iobject() {
|
|
14361
|
+
if (hasRequired_iobject)
|
|
14362
|
+
return _iobject;
|
|
14363
|
+
hasRequired_iobject = 1;
|
|
14364
|
+
var cof2 = _cof;
|
|
14365
|
+
_iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
|
|
14366
|
+
return cof2(it) == "String" ? it.split("") : Object(it);
|
|
14367
|
+
};
|
|
14368
|
+
return _iobject;
|
|
14369
|
+
}
|
|
14370
|
+
__name(require_iobject, "require_iobject");
|
|
14362
14371
|
var _defined = /* @__PURE__ */ __name(function(it) {
|
|
14363
14372
|
if (it == void 0)
|
|
14364
14373
|
throw TypeError("Can't call method on " + it);
|
|
14365
14374
|
return it;
|
|
14366
14375
|
}, "_defined");
|
|
14367
|
-
var IObject =
|
|
14376
|
+
var IObject = require_iobject();
|
|
14368
14377
|
var defined$2 = _defined;
|
|
14369
14378
|
var _toIobject = /* @__PURE__ */ __name(function(it) {
|
|
14370
14379
|
return IObject(defined$2(it));
|
|
@@ -14437,14 +14446,14 @@ var _sharedKey = /* @__PURE__ */ __name(function(key) {
|
|
|
14437
14446
|
var has$d = _has;
|
|
14438
14447
|
var toIObject$4 = _toIobject;
|
|
14439
14448
|
var arrayIndexOf = _arrayIncludes$1(false);
|
|
14440
|
-
var IE_PROTO$
|
|
14449
|
+
var IE_PROTO$1 = _sharedKey("IE_PROTO");
|
|
14441
14450
|
var _objectKeysInternal = /* @__PURE__ */ __name(function(object3, names2) {
|
|
14442
14451
|
var O2 = toIObject$4(object3);
|
|
14443
14452
|
var i = 0;
|
|
14444
14453
|
var result = [];
|
|
14445
14454
|
var key;
|
|
14446
14455
|
for (key in O2)
|
|
14447
|
-
if (key != IE_PROTO$
|
|
14456
|
+
if (key != IE_PROTO$1)
|
|
14448
14457
|
has$d(O2, key) && result.push(key);
|
|
14449
14458
|
while (names2.length > i)
|
|
14450
14459
|
if (has$d(O2, key = names2[i++])) {
|
|
@@ -14453,10 +14462,10 @@ var _objectKeysInternal = /* @__PURE__ */ __name(function(object3, names2) {
|
|
|
14453
14462
|
return result;
|
|
14454
14463
|
}, "_objectKeysInternal");
|
|
14455
14464
|
var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
|
|
14456
|
-
var $keys$
|
|
14457
|
-
var enumBugKeys
|
|
14465
|
+
var $keys$2 = _objectKeysInternal;
|
|
14466
|
+
var enumBugKeys = _enumBugKeys;
|
|
14458
14467
|
var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
|
|
14459
|
-
return $keys$
|
|
14468
|
+
return $keys$2(O2, enumBugKeys);
|
|
14460
14469
|
}, "keys");
|
|
14461
14470
|
var _objectGops = {};
|
|
14462
14471
|
_objectGops.f = Object.getOwnPropertySymbols;
|
|
@@ -14485,7 +14494,7 @@ function require_objectAssign() {
|
|
|
14485
14494
|
var gOPS2 = _objectGops;
|
|
14486
14495
|
var pIE2 = require_objectPie();
|
|
14487
14496
|
var toObject2 = _toObject;
|
|
14488
|
-
var IObject2 =
|
|
14497
|
+
var IObject2 = require_iobject();
|
|
14489
14498
|
var $assign = Object.assign;
|
|
14490
14499
|
_objectAssign = !$assign || _fails(function() {
|
|
14491
14500
|
var A2 = {};
|
|
@@ -14546,19 +14555,28 @@ var _iterStep = /* @__PURE__ */ __name(function(done, value) {
|
|
|
14546
14555
|
}, "_iterStep");
|
|
14547
14556
|
var _iterators = {};
|
|
14548
14557
|
var _redefine = _hide;
|
|
14549
|
-
var
|
|
14550
|
-
var
|
|
14551
|
-
|
|
14552
|
-
|
|
14553
|
-
|
|
14554
|
-
|
|
14555
|
-
var
|
|
14556
|
-
var
|
|
14557
|
-
var
|
|
14558
|
-
|
|
14559
|
-
|
|
14560
|
-
|
|
14561
|
-
|
|
14558
|
+
var _objectDps;
|
|
14559
|
+
var hasRequired_objectDps;
|
|
14560
|
+
function require_objectDps() {
|
|
14561
|
+
if (hasRequired_objectDps)
|
|
14562
|
+
return _objectDps;
|
|
14563
|
+
hasRequired_objectDps = 1;
|
|
14564
|
+
var dP2 = require_objectDp();
|
|
14565
|
+
var anObject2 = _anObject;
|
|
14566
|
+
var getKeys2 = _objectKeys;
|
|
14567
|
+
_objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties3(O2, Properties2) {
|
|
14568
|
+
anObject2(O2);
|
|
14569
|
+
var keys5 = getKeys2(Properties2);
|
|
14570
|
+
var length = keys5.length;
|
|
14571
|
+
var i = 0;
|
|
14572
|
+
var P2;
|
|
14573
|
+
while (length > i)
|
|
14574
|
+
dP2.f(O2, P2 = keys5[i++], Properties2[P2]);
|
|
14575
|
+
return O2;
|
|
14576
|
+
}, "defineProperties");
|
|
14577
|
+
return _objectDps;
|
|
14578
|
+
}
|
|
14579
|
+
__name(require_objectDps, "require_objectDps");
|
|
14562
14580
|
var _html;
|
|
14563
14581
|
var hasRequired_html;
|
|
14564
14582
|
function require_html() {
|
|
@@ -14570,42 +14588,51 @@ function require_html() {
|
|
|
14570
14588
|
return _html;
|
|
14571
14589
|
}
|
|
14572
14590
|
__name(require_html, "require_html");
|
|
14573
|
-
var
|
|
14574
|
-
var
|
|
14575
|
-
|
|
14576
|
-
|
|
14577
|
-
|
|
14578
|
-
|
|
14579
|
-
var
|
|
14580
|
-
var
|
|
14581
|
-
var
|
|
14582
|
-
var
|
|
14583
|
-
var
|
|
14584
|
-
|
|
14585
|
-
var
|
|
14586
|
-
|
|
14587
|
-
|
|
14588
|
-
|
|
14589
|
-
|
|
14590
|
-
|
|
14591
|
-
|
|
14592
|
-
|
|
14593
|
-
|
|
14594
|
-
|
|
14595
|
-
|
|
14596
|
-
|
|
14597
|
-
|
|
14598
|
-
|
|
14599
|
-
|
|
14600
|
-
|
|
14601
|
-
|
|
14602
|
-
|
|
14603
|
-
|
|
14604
|
-
|
|
14605
|
-
|
|
14606
|
-
|
|
14607
|
-
|
|
14608
|
-
|
|
14591
|
+
var _objectCreate;
|
|
14592
|
+
var hasRequired_objectCreate;
|
|
14593
|
+
function require_objectCreate() {
|
|
14594
|
+
if (hasRequired_objectCreate)
|
|
14595
|
+
return _objectCreate;
|
|
14596
|
+
hasRequired_objectCreate = 1;
|
|
14597
|
+
var anObject2 = _anObject;
|
|
14598
|
+
var dPs = require_objectDps();
|
|
14599
|
+
var enumBugKeys2 = _enumBugKeys;
|
|
14600
|
+
var IE_PROTO2 = _sharedKey("IE_PROTO");
|
|
14601
|
+
var Empty = /* @__PURE__ */ __name(function() {
|
|
14602
|
+
}, "Empty");
|
|
14603
|
+
var PROTOTYPE2 = "prototype";
|
|
14604
|
+
var createDict = /* @__PURE__ */ __name(function() {
|
|
14605
|
+
var iframe = require_domCreate()("iframe");
|
|
14606
|
+
var i = enumBugKeys2.length;
|
|
14607
|
+
var lt = "<";
|
|
14608
|
+
var gt = ">";
|
|
14609
|
+
var iframeDocument;
|
|
14610
|
+
iframe.style.display = "none";
|
|
14611
|
+
require_html().appendChild(iframe);
|
|
14612
|
+
iframe.src = "javascript:";
|
|
14613
|
+
iframeDocument = iframe.contentWindow.document;
|
|
14614
|
+
iframeDocument.open();
|
|
14615
|
+
iframeDocument.write(lt + "script" + gt + "document.F=Object" + lt + "/script" + gt);
|
|
14616
|
+
iframeDocument.close();
|
|
14617
|
+
createDict = iframeDocument.F;
|
|
14618
|
+
while (i--)
|
|
14619
|
+
delete createDict[PROTOTYPE2][enumBugKeys2[i]];
|
|
14620
|
+
return createDict();
|
|
14621
|
+
}, "createDict");
|
|
14622
|
+
_objectCreate = Object.create || /* @__PURE__ */ __name(function create5(O2, Properties2) {
|
|
14623
|
+
var result;
|
|
14624
|
+
if (O2 !== null) {
|
|
14625
|
+
Empty[PROTOTYPE2] = anObject2(O2);
|
|
14626
|
+
result = new Empty();
|
|
14627
|
+
Empty[PROTOTYPE2] = null;
|
|
14628
|
+
result[IE_PROTO2] = O2;
|
|
14629
|
+
} else
|
|
14630
|
+
result = createDict();
|
|
14631
|
+
return Properties2 === void 0 ? result : dPs(result, Properties2);
|
|
14632
|
+
}, "create");
|
|
14633
|
+
return _objectCreate;
|
|
14634
|
+
}
|
|
14635
|
+
__name(require_objectCreate, "require_objectCreate");
|
|
14609
14636
|
var _wks = { exports: {} };
|
|
14610
14637
|
var store$2 = _sharedExports("wks");
|
|
14611
14638
|
var uid$1 = _uid;
|
|
@@ -14623,7 +14650,7 @@ var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
|
|
|
14623
14650
|
if (it && !has$c(it = stat ? it : it.prototype, TAG$1))
|
|
14624
14651
|
def(it, TAG$1, { configurable: true, value: tag });
|
|
14625
14652
|
}, "_setToStringTag");
|
|
14626
|
-
var create$4 =
|
|
14653
|
+
var create$4 = require_objectCreate();
|
|
14627
14654
|
var descriptor = _propertyDesc;
|
|
14628
14655
|
var setToStringTag$2 = _setToStringTag;
|
|
14629
14656
|
var IteratorPrototype = {};
|
|
@@ -15031,7 +15058,7 @@ function _interopRequireDefault$c(obj) {
|
|
|
15031
15058
|
}
|
|
15032
15059
|
__name(_interopRequireDefault$c, "_interopRequireDefault$c");
|
|
15033
15060
|
var _default$7 = /* @__PURE__ */ function() {
|
|
15034
|
-
function
|
|
15061
|
+
function defineProperties3(target, props) {
|
|
15035
15062
|
for (var i = 0; i < props.length; i++) {
|
|
15036
15063
|
var descriptor2 = props[i];
|
|
15037
15064
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -15041,12 +15068,12 @@ var _default$7 = /* @__PURE__ */ function() {
|
|
|
15041
15068
|
(0, _defineProperty2.default)(target, descriptor2.key, descriptor2);
|
|
15042
15069
|
}
|
|
15043
15070
|
}
|
|
15044
|
-
__name(
|
|
15071
|
+
__name(defineProperties3, "defineProperties");
|
|
15045
15072
|
return function(Constructor, protoProps, staticProps) {
|
|
15046
15073
|
if (protoProps)
|
|
15047
|
-
|
|
15074
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
15048
15075
|
if (staticProps)
|
|
15049
|
-
|
|
15076
|
+
defineProperties3(Constructor, staticProps);
|
|
15050
15077
|
return Constructor;
|
|
15051
15078
|
};
|
|
15052
15079
|
}();
|
|
@@ -15075,23 +15102,23 @@ var setMeta = /* @__PURE__ */ __name(function(it) {
|
|
|
15075
15102
|
// weak collections IDs
|
|
15076
15103
|
} });
|
|
15077
15104
|
}, "setMeta");
|
|
15078
|
-
var fastKey = /* @__PURE__ */ __name(function(it,
|
|
15105
|
+
var fastKey = /* @__PURE__ */ __name(function(it, create5) {
|
|
15079
15106
|
if (!isObject$b(it))
|
|
15080
15107
|
return typeof it == "symbol" ? it : (typeof it == "string" ? "S" : "P") + it;
|
|
15081
15108
|
if (!has$a(it, META$1)) {
|
|
15082
15109
|
if (!isExtensible(it))
|
|
15083
15110
|
return "F";
|
|
15084
|
-
if (!
|
|
15111
|
+
if (!create5)
|
|
15085
15112
|
return "E";
|
|
15086
15113
|
setMeta(it);
|
|
15087
15114
|
}
|
|
15088
15115
|
return it[META$1].i;
|
|
15089
15116
|
}, "fastKey");
|
|
15090
|
-
var getWeak = /* @__PURE__ */ __name(function(it,
|
|
15117
|
+
var getWeak = /* @__PURE__ */ __name(function(it, create5) {
|
|
15091
15118
|
if (!has$a(it, META$1)) {
|
|
15092
15119
|
if (!isExtensible(it))
|
|
15093
15120
|
return true;
|
|
15094
|
-
if (!
|
|
15121
|
+
if (!create5)
|
|
15095
15122
|
return false;
|
|
15096
15123
|
setMeta(it);
|
|
15097
15124
|
}
|
|
@@ -15141,13 +15168,21 @@ var _isArray = Array.isArray || /* @__PURE__ */ __name(function isArray(arg) {
|
|
|
15141
15168
|
}, "isArray");
|
|
15142
15169
|
var _objectGopnExt = {};
|
|
15143
15170
|
var _objectGopn = {};
|
|
15144
|
-
var
|
|
15145
|
-
|
|
15146
|
-
|
|
15147
|
-
|
|
15148
|
-
|
|
15171
|
+
var hasRequired_objectGopn;
|
|
15172
|
+
function require_objectGopn() {
|
|
15173
|
+
if (hasRequired_objectGopn)
|
|
15174
|
+
return _objectGopn;
|
|
15175
|
+
hasRequired_objectGopn = 1;
|
|
15176
|
+
var $keys2 = _objectKeysInternal;
|
|
15177
|
+
var hiddenKeys = _enumBugKeys.concat("length", "prototype");
|
|
15178
|
+
_objectGopn.f = Object.getOwnPropertyNames || /* @__PURE__ */ __name(function getOwnPropertyNames4(O2) {
|
|
15179
|
+
return $keys2(O2, hiddenKeys);
|
|
15180
|
+
}, "getOwnPropertyNames");
|
|
15181
|
+
return _objectGopn;
|
|
15182
|
+
}
|
|
15183
|
+
__name(require_objectGopn, "require_objectGopn");
|
|
15149
15184
|
var toIObject$2 = _toIobject;
|
|
15150
|
-
var gOPN$1 =
|
|
15185
|
+
var gOPN$1 = require_objectGopn().f;
|
|
15151
15186
|
var toString$4 = {}.toString;
|
|
15152
15187
|
var windowNames = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
|
|
15153
15188
|
var getWindowNames = /* @__PURE__ */ __name(function(it) {
|
|
@@ -15157,7 +15192,7 @@ var getWindowNames = /* @__PURE__ */ __name(function(it) {
|
|
|
15157
15192
|
return windowNames.slice();
|
|
15158
15193
|
}
|
|
15159
15194
|
}, "getWindowNames");
|
|
15160
|
-
_objectGopnExt.f = /* @__PURE__ */ __name(function
|
|
15195
|
+
_objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames(it) {
|
|
15161
15196
|
return windowNames && toString$4.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
|
|
15162
15197
|
}, "getOwnPropertyNames");
|
|
15163
15198
|
var _objectGopd = {};
|
|
@@ -15200,7 +15235,7 @@ var toObject$1 = _toObject;
|
|
|
15200
15235
|
var toIObject = _toIobject;
|
|
15201
15236
|
var toPrimitive = _toPrimitive$1;
|
|
15202
15237
|
var createDesc = _propertyDesc;
|
|
15203
|
-
var _create$1 =
|
|
15238
|
+
var _create$1 = require_objectCreate();
|
|
15204
15239
|
var gOPNExt = _objectGopnExt;
|
|
15205
15240
|
var $GOPD = _objectGopd;
|
|
15206
15241
|
var $GOPS = _objectGops;
|
|
@@ -15267,7 +15302,7 @@ var $defineProperty$3 = /* @__PURE__ */ __name(function defineProperty3(it, key,
|
|
|
15267
15302
|
}
|
|
15268
15303
|
return dP(it, key, D2);
|
|
15269
15304
|
}, "defineProperty");
|
|
15270
|
-
var $defineProperties = /* @__PURE__ */ __name(function
|
|
15305
|
+
var $defineProperties = /* @__PURE__ */ __name(function defineProperties(it, P2) {
|
|
15271
15306
|
anObject(it);
|
|
15272
15307
|
var keys5 = enumKeys(P2 = toIObject(P2));
|
|
15273
15308
|
var i = 0;
|
|
@@ -15277,7 +15312,7 @@ var $defineProperties = /* @__PURE__ */ __name(function defineProperties2(it, P2
|
|
|
15277
15312
|
$defineProperty$3(it, key = keys5[i++], P2[key]);
|
|
15278
15313
|
return it;
|
|
15279
15314
|
}, "defineProperties");
|
|
15280
|
-
var $create = /* @__PURE__ */ __name(function
|
|
15315
|
+
var $create = /* @__PURE__ */ __name(function create(it, P2) {
|
|
15281
15316
|
return P2 === void 0 ? _create$1(it) : $defineProperties(_create$1(it), P2);
|
|
15282
15317
|
}, "create");
|
|
15283
15318
|
var $propertyIsEnumerable = /* @__PURE__ */ __name(function propertyIsEnumerable(key) {
|
|
@@ -15296,7 +15331,7 @@ var $getOwnPropertyDescriptor = /* @__PURE__ */ __name(function getOwnPropertyDe
|
|
|
15296
15331
|
D2.enumerable = true;
|
|
15297
15332
|
return D2;
|
|
15298
15333
|
}, "getOwnPropertyDescriptor");
|
|
15299
|
-
var $getOwnPropertyNames = /* @__PURE__ */ __name(function
|
|
15334
|
+
var $getOwnPropertyNames = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
|
|
15300
15335
|
var names2 = gOPN(toIObject(it));
|
|
15301
15336
|
var result = [];
|
|
15302
15337
|
var i = 0;
|
|
@@ -15340,7 +15375,7 @@ if (!USE_NATIVE) {
|
|
|
15340
15375
|
}, "toString"));
|
|
15341
15376
|
$GOPD.f = $getOwnPropertyDescriptor;
|
|
15342
15377
|
$DP.f = $defineProperty$3;
|
|
15343
|
-
|
|
15378
|
+
require_objectGopn().f = gOPNExt.f = $getOwnPropertyNames;
|
|
15344
15379
|
require_objectPie().f = $propertyIsEnumerable;
|
|
15345
15380
|
$GOPS.f = $getOwnPropertySymbols;
|
|
15346
15381
|
if (DESCRIPTORS && !_library) {
|
|
@@ -15507,9 +15542,9 @@ $export$1($export$1.S, "Object", { setPrototypeOf: require_setProto().set });
|
|
|
15507
15542
|
var setPrototypeOf$1 = _coreExports.Object.setPrototypeOf;
|
|
15508
15543
|
var setPrototypeOf = { "default": setPrototypeOf$1, __esModule: true };
|
|
15509
15544
|
var $export = _export;
|
|
15510
|
-
$export($export.S, "Object", { create:
|
|
15545
|
+
$export($export.S, "Object", { create: require_objectCreate() });
|
|
15511
15546
|
var $Object$2 = _coreExports.Object;
|
|
15512
|
-
var create$3 = /* @__PURE__ */ __name(function
|
|
15547
|
+
var create$3 = /* @__PURE__ */ __name(function create2(P2, D2) {
|
|
15513
15548
|
return $Object$2.create(P2, D2);
|
|
15514
15549
|
}, "create");
|
|
15515
15550
|
var create$2 = { "default": create$3, __esModule: true };
|
|
@@ -19596,7 +19631,7 @@ function normalizeComponent(Comp) {
|
|
|
19596
19631
|
}
|
|
19597
19632
|
__name(normalizeComponent, "normalizeComponent");
|
|
19598
19633
|
var _createClass$d = /* @__PURE__ */ function() {
|
|
19599
|
-
function
|
|
19634
|
+
function defineProperties3(target, props) {
|
|
19600
19635
|
for (var i = 0; i < props.length; i++) {
|
|
19601
19636
|
var descriptor2 = props[i];
|
|
19602
19637
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -19606,12 +19641,12 @@ var _createClass$d = /* @__PURE__ */ function() {
|
|
|
19606
19641
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
19607
19642
|
}
|
|
19608
19643
|
}
|
|
19609
|
-
__name(
|
|
19644
|
+
__name(defineProperties3, "defineProperties");
|
|
19610
19645
|
return function(Constructor, protoProps, staticProps) {
|
|
19611
19646
|
if (protoProps)
|
|
19612
|
-
|
|
19647
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
19613
19648
|
if (staticProps)
|
|
19614
|
-
|
|
19649
|
+
defineProperties3(Constructor, staticProps);
|
|
19615
19650
|
return Constructor;
|
|
19616
19651
|
};
|
|
19617
19652
|
}();
|
|
@@ -19772,7 +19807,7 @@ var _extends$o = Object.assign || function(target) {
|
|
|
19772
19807
|
return target;
|
|
19773
19808
|
};
|
|
19774
19809
|
var _createClass$c = /* @__PURE__ */ function() {
|
|
19775
|
-
function
|
|
19810
|
+
function defineProperties3(target, props) {
|
|
19776
19811
|
for (var i = 0; i < props.length; i++) {
|
|
19777
19812
|
var descriptor2 = props[i];
|
|
19778
19813
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -19782,12 +19817,12 @@ var _createClass$c = /* @__PURE__ */ function() {
|
|
|
19782
19817
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
19783
19818
|
}
|
|
19784
19819
|
}
|
|
19785
|
-
__name(
|
|
19820
|
+
__name(defineProperties3, "defineProperties");
|
|
19786
19821
|
return function(Constructor, protoProps, staticProps) {
|
|
19787
19822
|
if (protoProps)
|
|
19788
|
-
|
|
19823
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
19789
19824
|
if (staticProps)
|
|
19790
|
-
|
|
19825
|
+
defineProperties3(Constructor, staticProps);
|
|
19791
19826
|
return Constructor;
|
|
19792
19827
|
};
|
|
19793
19828
|
}();
|
|
@@ -20378,7 +20413,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
20378
20413
|
}(Base);
|
|
20379
20414
|
}, "Methods");
|
|
20380
20415
|
var _createClass$b = /* @__PURE__ */ function() {
|
|
20381
|
-
function
|
|
20416
|
+
function defineProperties3(target, props) {
|
|
20382
20417
|
for (var i = 0; i < props.length; i++) {
|
|
20383
20418
|
var descriptor2 = props[i];
|
|
20384
20419
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -20388,12 +20423,12 @@ var _createClass$b = /* @__PURE__ */ function() {
|
|
|
20388
20423
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
20389
20424
|
}
|
|
20390
20425
|
}
|
|
20391
|
-
__name(
|
|
20426
|
+
__name(defineProperties3, "defineProperties");
|
|
20392
20427
|
return function(Constructor, protoProps, staticProps) {
|
|
20393
20428
|
if (protoProps)
|
|
20394
|
-
|
|
20429
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
20395
20430
|
if (staticProps)
|
|
20396
|
-
|
|
20431
|
+
defineProperties3(Constructor, staticProps);
|
|
20397
20432
|
return Constructor;
|
|
20398
20433
|
};
|
|
20399
20434
|
}();
|
|
@@ -21165,7 +21200,7 @@ var _extends$l = Object.assign || function(target) {
|
|
|
21165
21200
|
return target;
|
|
21166
21201
|
};
|
|
21167
21202
|
var _createClass$a = /* @__PURE__ */ function() {
|
|
21168
|
-
function
|
|
21203
|
+
function defineProperties3(target, props) {
|
|
21169
21204
|
for (var i = 0; i < props.length; i++) {
|
|
21170
21205
|
var descriptor2 = props[i];
|
|
21171
21206
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -21175,12 +21210,12 @@ var _createClass$a = /* @__PURE__ */ function() {
|
|
|
21175
21210
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
21176
21211
|
}
|
|
21177
21212
|
}
|
|
21178
|
-
__name(
|
|
21213
|
+
__name(defineProperties3, "defineProperties");
|
|
21179
21214
|
return function(Constructor, protoProps, staticProps) {
|
|
21180
21215
|
if (protoProps)
|
|
21181
|
-
|
|
21216
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
21182
21217
|
if (staticProps)
|
|
21183
|
-
|
|
21218
|
+
defineProperties3(Constructor, staticProps);
|
|
21184
21219
|
return Constructor;
|
|
21185
21220
|
};
|
|
21186
21221
|
}();
|
|
@@ -27504,21 +27539,21 @@ function parse$7(options) {
|
|
|
27504
27539
|
defined: [],
|
|
27505
27540
|
lazy: {},
|
|
27506
27541
|
constructs: constructs2,
|
|
27507
|
-
content:
|
|
27508
|
-
document:
|
|
27509
|
-
flow:
|
|
27510
|
-
string:
|
|
27511
|
-
text:
|
|
27542
|
+
content: create5(content$1),
|
|
27543
|
+
document: create5(document$2),
|
|
27544
|
+
flow: create5(flow$1),
|
|
27545
|
+
string: create5(string$1),
|
|
27546
|
+
text: create5(text$3)
|
|
27512
27547
|
};
|
|
27513
27548
|
return parser;
|
|
27514
|
-
function
|
|
27549
|
+
function create5(initial) {
|
|
27515
27550
|
return creator;
|
|
27516
27551
|
function creator(from3) {
|
|
27517
27552
|
return createTokenizer(parser, initial, from3);
|
|
27518
27553
|
}
|
|
27519
27554
|
__name(creator, "creator");
|
|
27520
27555
|
}
|
|
27521
|
-
__name(
|
|
27556
|
+
__name(create5, "create");
|
|
27522
27557
|
}
|
|
27523
27558
|
__name(parse$7, "parse$7");
|
|
27524
27559
|
const search$1 = /[\0\t\n\r]/g;
|
|
@@ -27929,10 +27964,10 @@ function compiler(options) {
|
|
|
27929
27964
|
return data[key];
|
|
27930
27965
|
}
|
|
27931
27966
|
__name(getData, "getData");
|
|
27932
|
-
function opener(
|
|
27967
|
+
function opener(create5, and) {
|
|
27933
27968
|
return open2;
|
|
27934
27969
|
function open2(token) {
|
|
27935
|
-
enter2.call(this,
|
|
27970
|
+
enter2.call(this, create5(token), token);
|
|
27936
27971
|
if (and)
|
|
27937
27972
|
and.call(this, token);
|
|
27938
27973
|
}
|
|
@@ -35942,6 +35977,7 @@ function getKeyedTagsAndTagOptions(tags) {
|
|
|
35942
35977
|
}
|
|
35943
35978
|
__name(getKeyedTagsAndTagOptions, "getKeyedTagsAndTagOptions");
|
|
35944
35979
|
function getTagColorStyle(color2) {
|
|
35980
|
+
console.log(`color:`, color2);
|
|
35945
35981
|
return color2 ? {
|
|
35946
35982
|
style: {
|
|
35947
35983
|
backgroundColor: color2,
|
|
@@ -36307,22 +36343,6 @@ const _TgSelect = class _TgSelect extends React__default$1.Component {
|
|
|
36307
36343
|
})
|
|
36308
36344
|
}), rest)
|
|
36309
36345
|
);
|
|
36310
|
-
if (backgroundColor) {
|
|
36311
|
-
return /* @__PURE__ */ React__default$1.createElement(
|
|
36312
|
-
"div",
|
|
36313
|
-
{
|
|
36314
|
-
style: {
|
|
36315
|
-
backgroundColor,
|
|
36316
|
-
borderRadius: "4px 4px 4px 4px",
|
|
36317
|
-
overflow: "hidden",
|
|
36318
|
-
width: "fit-content",
|
|
36319
|
-
color: "white",
|
|
36320
|
-
border: "2px solid white"
|
|
36321
|
-
}
|
|
36322
|
-
},
|
|
36323
|
-
toRet
|
|
36324
|
-
);
|
|
36325
|
-
}
|
|
36326
36346
|
return toRet;
|
|
36327
36347
|
}
|
|
36328
36348
|
};
|
|
@@ -36946,11 +36966,11 @@ var implementation$8 = /* @__PURE__ */ __name(function bind(that) {
|
|
|
36946
36966
|
}
|
|
36947
36967
|
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
36948
36968
|
if (target.prototype) {
|
|
36949
|
-
var
|
|
36969
|
+
var Empty = /* @__PURE__ */ __name(function Empty2() {
|
|
36950
36970
|
}, "Empty");
|
|
36951
|
-
|
|
36952
|
-
bound.prototype = new
|
|
36953
|
-
|
|
36971
|
+
Empty.prototype = target.prototype;
|
|
36972
|
+
bound.prototype = new Empty();
|
|
36973
|
+
Empty.prototype = null;
|
|
36954
36974
|
}
|
|
36955
36975
|
return bound;
|
|
36956
36976
|
}, "bind");
|
|
@@ -41301,7 +41321,7 @@ var _extends$f = Object.assign || function(target) {
|
|
|
41301
41321
|
return target;
|
|
41302
41322
|
};
|
|
41303
41323
|
var _createClass$9 = /* @__PURE__ */ function() {
|
|
41304
|
-
function
|
|
41324
|
+
function defineProperties3(target, props) {
|
|
41305
41325
|
for (var i = 0; i < props.length; i++) {
|
|
41306
41326
|
var descriptor2 = props[i];
|
|
41307
41327
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -41311,12 +41331,12 @@ var _createClass$9 = /* @__PURE__ */ function() {
|
|
|
41311
41331
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
41312
41332
|
}
|
|
41313
41333
|
}
|
|
41314
|
-
__name(
|
|
41334
|
+
__name(defineProperties3, "defineProperties");
|
|
41315
41335
|
return function(Constructor, protoProps, staticProps) {
|
|
41316
41336
|
if (protoProps)
|
|
41317
|
-
|
|
41337
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
41318
41338
|
if (staticProps)
|
|
41319
|
-
|
|
41339
|
+
defineProperties3(Constructor, staticProps);
|
|
41320
41340
|
return Constructor;
|
|
41321
41341
|
};
|
|
41322
41342
|
}();
|
|
@@ -41458,7 +41478,7 @@ var Alpha = function(_ref) {
|
|
|
41458
41478
|
return Alpha2;
|
|
41459
41479
|
}(PureComponent || Component);
|
|
41460
41480
|
var _createClass$8 = /* @__PURE__ */ function() {
|
|
41461
|
-
function
|
|
41481
|
+
function defineProperties3(target, props) {
|
|
41462
41482
|
for (var i = 0; i < props.length; i++) {
|
|
41463
41483
|
var descriptor2 = props[i];
|
|
41464
41484
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -41468,12 +41488,12 @@ var _createClass$8 = /* @__PURE__ */ function() {
|
|
|
41468
41488
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
41469
41489
|
}
|
|
41470
41490
|
}
|
|
41471
|
-
__name(
|
|
41491
|
+
__name(defineProperties3, "defineProperties");
|
|
41472
41492
|
return function(Constructor, protoProps, staticProps) {
|
|
41473
41493
|
if (protoProps)
|
|
41474
|
-
|
|
41494
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
41475
41495
|
if (staticProps)
|
|
41476
|
-
|
|
41496
|
+
defineProperties3(Constructor, staticProps);
|
|
41477
41497
|
return Constructor;
|
|
41478
41498
|
};
|
|
41479
41499
|
}();
|
|
@@ -41706,7 +41726,7 @@ var calculateChange$1 = /* @__PURE__ */ __name(function calculateChange2(e2, dir
|
|
|
41706
41726
|
return null;
|
|
41707
41727
|
}, "calculateChange");
|
|
41708
41728
|
var _createClass$7 = /* @__PURE__ */ function() {
|
|
41709
|
-
function
|
|
41729
|
+
function defineProperties3(target, props) {
|
|
41710
41730
|
for (var i = 0; i < props.length; i++) {
|
|
41711
41731
|
var descriptor2 = props[i];
|
|
41712
41732
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -41716,12 +41736,12 @@ var _createClass$7 = /* @__PURE__ */ function() {
|
|
|
41716
41736
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
41717
41737
|
}
|
|
41718
41738
|
}
|
|
41719
|
-
__name(
|
|
41739
|
+
__name(defineProperties3, "defineProperties");
|
|
41720
41740
|
return function(Constructor, protoProps, staticProps) {
|
|
41721
41741
|
if (protoProps)
|
|
41722
|
-
|
|
41742
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
41723
41743
|
if (staticProps)
|
|
41724
|
-
|
|
41744
|
+
defineProperties3(Constructor, staticProps);
|
|
41725
41745
|
return Constructor;
|
|
41726
41746
|
};
|
|
41727
41747
|
}();
|
|
@@ -41958,7 +41978,7 @@ var calculateChange3 = /* @__PURE__ */ __name(function calculateChange4(e2, hsl,
|
|
|
41958
41978
|
};
|
|
41959
41979
|
}, "calculateChange");
|
|
41960
41980
|
var _createClass$6 = /* @__PURE__ */ function() {
|
|
41961
|
-
function
|
|
41981
|
+
function defineProperties3(target, props) {
|
|
41962
41982
|
for (var i = 0; i < props.length; i++) {
|
|
41963
41983
|
var descriptor2 = props[i];
|
|
41964
41984
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -41968,12 +41988,12 @@ var _createClass$6 = /* @__PURE__ */ function() {
|
|
|
41968
41988
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
41969
41989
|
}
|
|
41970
41990
|
}
|
|
41971
|
-
__name(
|
|
41991
|
+
__name(defineProperties3, "defineProperties");
|
|
41972
41992
|
return function(Constructor, protoProps, staticProps) {
|
|
41973
41993
|
if (protoProps)
|
|
41974
|
-
|
|
41994
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
41975
41995
|
if (staticProps)
|
|
41976
|
-
|
|
41996
|
+
defineProperties3(Constructor, staticProps);
|
|
41977
41997
|
return Constructor;
|
|
41978
41998
|
};
|
|
41979
41999
|
}();
|
|
@@ -43211,7 +43231,7 @@ var _extends$e = Object.assign || function(target) {
|
|
|
43211
43231
|
return target;
|
|
43212
43232
|
};
|
|
43213
43233
|
var _createClass$5 = /* @__PURE__ */ function() {
|
|
43214
|
-
function
|
|
43234
|
+
function defineProperties3(target, props) {
|
|
43215
43235
|
for (var i = 0; i < props.length; i++) {
|
|
43216
43236
|
var descriptor2 = props[i];
|
|
43217
43237
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -43221,12 +43241,12 @@ var _createClass$5 = /* @__PURE__ */ function() {
|
|
|
43221
43241
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
43222
43242
|
}
|
|
43223
43243
|
}
|
|
43224
|
-
__name(
|
|
43244
|
+
__name(defineProperties3, "defineProperties");
|
|
43225
43245
|
return function(Constructor, protoProps, staticProps) {
|
|
43226
43246
|
if (protoProps)
|
|
43227
|
-
|
|
43247
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
43228
43248
|
if (staticProps)
|
|
43229
|
-
|
|
43249
|
+
defineProperties3(Constructor, staticProps);
|
|
43230
43250
|
return Constructor;
|
|
43231
43251
|
};
|
|
43232
43252
|
}();
|
|
@@ -43323,7 +43343,7 @@ var _extends$d = Object.assign || function(target) {
|
|
|
43323
43343
|
return target;
|
|
43324
43344
|
};
|
|
43325
43345
|
var _createClass$4 = /* @__PURE__ */ function() {
|
|
43326
|
-
function
|
|
43346
|
+
function defineProperties3(target, props) {
|
|
43327
43347
|
for (var i = 0; i < props.length; i++) {
|
|
43328
43348
|
var descriptor2 = props[i];
|
|
43329
43349
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -43333,12 +43353,12 @@ var _createClass$4 = /* @__PURE__ */ function() {
|
|
|
43333
43353
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
43334
43354
|
}
|
|
43335
43355
|
}
|
|
43336
|
-
__name(
|
|
43356
|
+
__name(defineProperties3, "defineProperties");
|
|
43337
43357
|
return function(Constructor, protoProps, staticProps) {
|
|
43338
43358
|
if (protoProps)
|
|
43339
|
-
|
|
43359
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
43340
43360
|
if (staticProps)
|
|
43341
|
-
|
|
43361
|
+
defineProperties3(Constructor, staticProps);
|
|
43342
43362
|
return Constructor;
|
|
43343
43363
|
};
|
|
43344
43364
|
}();
|
|
@@ -43819,7 +43839,7 @@ var _default$3 = UnfoldMoreHorizontalIcon.default = function(_ref) {
|
|
|
43819
43839
|
);
|
|
43820
43840
|
};
|
|
43821
43841
|
var _createClass$3 = /* @__PURE__ */ function() {
|
|
43822
|
-
function
|
|
43842
|
+
function defineProperties3(target, props) {
|
|
43823
43843
|
for (var i = 0; i < props.length; i++) {
|
|
43824
43844
|
var descriptor2 = props[i];
|
|
43825
43845
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -43829,12 +43849,12 @@ var _createClass$3 = /* @__PURE__ */ function() {
|
|
|
43829
43849
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
43830
43850
|
}
|
|
43831
43851
|
}
|
|
43832
|
-
__name(
|
|
43852
|
+
__name(defineProperties3, "defineProperties");
|
|
43833
43853
|
return function(Constructor, protoProps, staticProps) {
|
|
43834
43854
|
if (protoProps)
|
|
43835
|
-
|
|
43855
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
43836
43856
|
if (staticProps)
|
|
43837
|
-
|
|
43857
|
+
defineProperties3(Constructor, staticProps);
|
|
43838
43858
|
return Constructor;
|
|
43839
43859
|
};
|
|
43840
43860
|
}();
|
|
@@ -45244,7 +45264,7 @@ var PhotoshopPreviews = /* @__PURE__ */ __name(function PhotoshopPreviews2(_ref)
|
|
|
45244
45264
|
);
|
|
45245
45265
|
}, "PhotoshopPreviews");
|
|
45246
45266
|
var _createClass$2 = /* @__PURE__ */ function() {
|
|
45247
|
-
function
|
|
45267
|
+
function defineProperties3(target, props) {
|
|
45248
45268
|
for (var i = 0; i < props.length; i++) {
|
|
45249
45269
|
var descriptor2 = props[i];
|
|
45250
45270
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -45254,12 +45274,12 @@ var _createClass$2 = /* @__PURE__ */ function() {
|
|
|
45254
45274
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
45255
45275
|
}
|
|
45256
45276
|
}
|
|
45257
|
-
__name(
|
|
45277
|
+
__name(defineProperties3, "defineProperties");
|
|
45258
45278
|
return function(Constructor, protoProps, staticProps) {
|
|
45259
45279
|
if (protoProps)
|
|
45260
|
-
|
|
45280
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
45261
45281
|
if (staticProps)
|
|
45262
|
-
|
|
45282
|
+
defineProperties3(Constructor, staticProps);
|
|
45263
45283
|
return Constructor;
|
|
45264
45284
|
};
|
|
45265
45285
|
}();
|
|
@@ -49864,7 +49884,7 @@ var KNOWN_STATICS = {
|
|
|
49864
49884
|
arity: true
|
|
49865
49885
|
};
|
|
49866
49886
|
var defineProperty$3 = Object.defineProperty;
|
|
49867
|
-
var
|
|
49887
|
+
var getOwnPropertyNames3 = Object.getOwnPropertyNames;
|
|
49868
49888
|
var getOwnPropertySymbols3 = Object.getOwnPropertySymbols;
|
|
49869
49889
|
var getOwnPropertyDescriptor3 = Object.getOwnPropertyDescriptor;
|
|
49870
49890
|
var getPrototypeOf = Object.getPrototypeOf;
|
|
@@ -49877,7 +49897,7 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
|
49877
49897
|
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
49878
49898
|
}
|
|
49879
49899
|
}
|
|
49880
|
-
var keys5 =
|
|
49900
|
+
var keys5 = getOwnPropertyNames3(sourceComponent);
|
|
49881
49901
|
if (getOwnPropertySymbols3) {
|
|
49882
49902
|
keys5 = keys5.concat(getOwnPropertySymbols3(sourceComponent));
|
|
49883
49903
|
}
|
|
@@ -69511,7 +69531,7 @@ ObjectWithoutPrototypeCache.prototype.set = function(key, value) {
|
|
|
69511
69531
|
this.cache[key] = value;
|
|
69512
69532
|
};
|
|
69513
69533
|
var cacheDefault = {
|
|
69514
|
-
create: /* @__PURE__ */ __name(function
|
|
69534
|
+
create: /* @__PURE__ */ __name(function create3() {
|
|
69515
69535
|
return new ObjectWithoutPrototypeCache();
|
|
69516
69536
|
}, "create")
|
|
69517
69537
|
};
|
|
@@ -74617,7 +74637,7 @@ __name(requireEmpty, "requireEmpty");
|
|
|
74617
74637
|
}
|
|
74618
74638
|
}, "classCallCheck");
|
|
74619
74639
|
var createClass2 = /* @__PURE__ */ function() {
|
|
74620
|
-
function
|
|
74640
|
+
function defineProperties3(target, props) {
|
|
74621
74641
|
for (var i = 0; i < props.length; i++) {
|
|
74622
74642
|
var descriptor2 = props[i];
|
|
74623
74643
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -74627,12 +74647,12 @@ __name(requireEmpty, "requireEmpty");
|
|
|
74627
74647
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
74628
74648
|
}
|
|
74629
74649
|
}
|
|
74630
|
-
__name(
|
|
74650
|
+
__name(defineProperties3, "defineProperties");
|
|
74631
74651
|
return function(Constructor, protoProps, staticProps) {
|
|
74632
74652
|
if (protoProps)
|
|
74633
|
-
|
|
74653
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
74634
74654
|
if (staticProps)
|
|
74635
|
-
|
|
74655
|
+
defineProperties3(Constructor, staticProps);
|
|
74636
74656
|
return Constructor;
|
|
74637
74657
|
};
|
|
74638
74658
|
}();
|
|
@@ -78447,10 +78467,10 @@ __name(requireEmpty, "requireEmpty");
|
|
|
78447
78467
|
return value;
|
|
78448
78468
|
}
|
|
78449
78469
|
__name(dateReviver, "dateReviver");
|
|
78450
|
-
function
|
|
78470
|
+
function create5(options) {
|
|
78451
78471
|
return new DiffPatcher(options);
|
|
78452
78472
|
}
|
|
78453
|
-
__name(
|
|
78473
|
+
__name(create5, "create");
|
|
78454
78474
|
var defaultInstance$4 = void 0;
|
|
78455
78475
|
function diff() {
|
|
78456
78476
|
if (!defaultInstance$4) {
|
|
@@ -78490,7 +78510,7 @@ __name(requireEmpty, "requireEmpty");
|
|
|
78490
78510
|
exports3.DiffPatcher = DiffPatcher;
|
|
78491
78511
|
exports3.formatters = index2;
|
|
78492
78512
|
exports3.console = console$1;
|
|
78493
|
-
exports3.create =
|
|
78513
|
+
exports3.create = create5;
|
|
78494
78514
|
exports3.dateReviver = dateReviver;
|
|
78495
78515
|
exports3.diff = diff;
|
|
78496
78516
|
exports3.patch = patch2;
|
|
@@ -78874,123 +78894,167 @@ function getAminoAcidFromSequenceTriplet(sequenceString) {
|
|
|
78874
78894
|
return proteinAlphabet[letter.toUpperCase()];
|
|
78875
78895
|
}
|
|
78876
78896
|
__name(getAminoAcidFromSequenceTriplet, "getAminoAcidFromSequenceTriplet");
|
|
78877
|
-
function
|
|
78897
|
+
function getNextTriplet(index2, sequenceString, exonRange) {
|
|
78898
|
+
let triplet = "";
|
|
78899
|
+
let internalIndex;
|
|
78900
|
+
const codonPositions = [];
|
|
78901
|
+
const isBaseInExon = /* @__PURE__ */ __name((baseIndex) => exonRange.some(
|
|
78902
|
+
(r2) => isPositionWithinRange(baseIndex, r2, sequenceString.length, true, false)
|
|
78903
|
+
), "isBaseInExon");
|
|
78904
|
+
for (internalIndex = index2; internalIndex < sequenceString.length; internalIndex++) {
|
|
78905
|
+
if (triplet.length === 3) {
|
|
78906
|
+
break;
|
|
78907
|
+
}
|
|
78908
|
+
if (isBaseInExon(internalIndex)) {
|
|
78909
|
+
triplet += sequenceString[internalIndex];
|
|
78910
|
+
codonPositions.push(internalIndex);
|
|
78911
|
+
}
|
|
78912
|
+
}
|
|
78913
|
+
return { triplet, basesRead: internalIndex - index2, codonPositions };
|
|
78914
|
+
}
|
|
78915
|
+
__name(getNextTriplet, "getNextTriplet");
|
|
78916
|
+
function getTranslatedSequenceProperties(originalSequenceString, forward, optionalSubrangeRange, isProteinSequence) {
|
|
78878
78917
|
const originalSequenceStringLength = isProteinSequence ? originalSequenceString.length * 3 : originalSequenceString.length;
|
|
78879
78918
|
let sequenceString = originalSequenceString;
|
|
78880
|
-
|
|
78919
|
+
const translationRange = { start: 0, end: originalSequenceStringLength - 1 };
|
|
78881
78920
|
if (optionalSubrangeRange) {
|
|
78882
78921
|
sequenceString = getSequenceWithinRange(
|
|
78883
78922
|
optionalSubrangeRange,
|
|
78884
78923
|
originalSequenceString
|
|
78885
78924
|
);
|
|
78886
|
-
|
|
78925
|
+
translationRange.start = optionalSubrangeRange.start;
|
|
78926
|
+
translationRange.end = optionalSubrangeRange.end;
|
|
78887
78927
|
}
|
|
78888
78928
|
const sequenceStringLength = isProteinSequence ? sequenceString.length * 3 : sequenceString.length;
|
|
78889
|
-
|
|
78890
|
-
|
|
78891
|
-
|
|
78892
|
-
|
|
78893
|
-
|
|
78894
|
-
|
|
78895
|
-
|
|
78896
|
-
|
|
78897
|
-
{
|
|
78898
|
-
start: 0,
|
|
78899
|
-
end: revCompGapLength - 1
|
|
78900
|
-
},
|
|
78901
|
-
startOffset,
|
|
78929
|
+
if (!isProteinSequence && !forward) {
|
|
78930
|
+
sequenceString = getReverseComplementSequenceString(sequenceString);
|
|
78931
|
+
}
|
|
78932
|
+
const absoluteExonRange = !isProteinSequence && optionalSubrangeRange && optionalSubrangeRange.locations ? optionalSubrangeRange.locations : [translationRange];
|
|
78933
|
+
const exonRange = absoluteExonRange.map((range2) => {
|
|
78934
|
+
let outputRange = translateRange(
|
|
78935
|
+
range2,
|
|
78936
|
+
-translationRange.start,
|
|
78902
78937
|
originalSequenceStringLength
|
|
78903
78938
|
);
|
|
78904
|
-
if (
|
|
78905
|
-
|
|
78906
|
-
|
|
78907
|
-
|
|
78908
|
-
|
|
78909
|
-
|
|
78910
|
-
aminoAcidIndex,
|
|
78911
|
-
sequenceIndex: codonRange.start + i,
|
|
78912
|
-
codonRange,
|
|
78913
|
-
fullCodon: false
|
|
78914
|
-
});
|
|
78915
|
-
}
|
|
78916
|
-
aminoAcidIndex--;
|
|
78939
|
+
if (!forward) {
|
|
78940
|
+
outputRange = flipRelativeRange(
|
|
78941
|
+
outputRange,
|
|
78942
|
+
{ start: 0, end: sequenceStringLength - 1 },
|
|
78943
|
+
sequenceStringLength
|
|
78944
|
+
);
|
|
78917
78945
|
}
|
|
78946
|
+
return outputRange;
|
|
78947
|
+
});
|
|
78948
|
+
return {
|
|
78949
|
+
sequenceString,
|
|
78950
|
+
translationRange,
|
|
78951
|
+
sequenceStringLength,
|
|
78952
|
+
originalSequenceStringLength,
|
|
78953
|
+
exonRange
|
|
78954
|
+
};
|
|
78955
|
+
}
|
|
78956
|
+
__name(getTranslatedSequenceProperties, "getTranslatedSequenceProperties");
|
|
78957
|
+
function positionInCdsToPositionInMainSequence(index2, forward, translationRange, mainSequenceLength) {
|
|
78958
|
+
let outputRange = translateRange(
|
|
78959
|
+
{ start: index2, end: index2 },
|
|
78960
|
+
translationRange.start,
|
|
78961
|
+
mainSequenceLength
|
|
78962
|
+
);
|
|
78963
|
+
if (!forward) {
|
|
78964
|
+
outputRange = flipRelativeRange(
|
|
78965
|
+
outputRange,
|
|
78966
|
+
translationRange,
|
|
78967
|
+
mainSequenceLength
|
|
78968
|
+
);
|
|
78918
78969
|
}
|
|
78919
|
-
|
|
78970
|
+
return outputRange.start;
|
|
78971
|
+
}
|
|
78972
|
+
__name(positionInCdsToPositionInMainSequence, "positionInCdsToPositionInMainSequence");
|
|
78973
|
+
function getAminoAcidDataForEachBaseOfDna(originalSequenceString, forward, optionalSubrangeRange, isProteinSequence) {
|
|
78974
|
+
const {
|
|
78975
|
+
sequenceString,
|
|
78976
|
+
translationRange,
|
|
78977
|
+
sequenceStringLength,
|
|
78978
|
+
originalSequenceStringLength,
|
|
78979
|
+
exonRange
|
|
78980
|
+
} = getTranslatedSequenceProperties(
|
|
78981
|
+
originalSequenceString,
|
|
78982
|
+
forward,
|
|
78983
|
+
optionalSubrangeRange,
|
|
78984
|
+
isProteinSequence
|
|
78985
|
+
);
|
|
78986
|
+
const aminoAcidDataForEachBaseOfDNA = [];
|
|
78987
|
+
for (let index2 = 0; index2 < sequenceStringLength; index2 += 3) {
|
|
78920
78988
|
let aminoAcid;
|
|
78989
|
+
const aminoAcidIndex = index2 / 3;
|
|
78990
|
+
let codonPositionsInCDS;
|
|
78991
|
+
let basesRead;
|
|
78921
78992
|
if (isProteinSequence) {
|
|
78922
|
-
|
|
78993
|
+
codonPositionsInCDS = [0, 1, 2].map((i) => index2 + i);
|
|
78994
|
+
basesRead = 3;
|
|
78995
|
+
aminoAcid = proteinAlphabet[sequenceString[index2 / 3].toUpperCase()];
|
|
78923
78996
|
} else {
|
|
78924
|
-
|
|
78925
|
-
|
|
78926
|
-
|
|
78927
|
-
|
|
78928
|
-
|
|
78929
|
-
|
|
78930
|
-
|
|
78931
|
-
|
|
78932
|
-
|
|
78933
|
-
|
|
78934
|
-
|
|
78935
|
-
|
|
78936
|
-
|
|
78997
|
+
const {
|
|
78998
|
+
triplet,
|
|
78999
|
+
basesRead: _basesRead,
|
|
79000
|
+
codonPositions
|
|
79001
|
+
} = getNextTriplet(index2, sequenceString, exonRange);
|
|
79002
|
+
basesRead = _basesRead;
|
|
79003
|
+
codonPositionsInCDS = codonPositions;
|
|
79004
|
+
aminoAcid = triplet.length === 3 ? getAminoAcidFromSequenceTriplet(triplet) : getAminoAcidFromSequenceTriplet("xxx");
|
|
79005
|
+
}
|
|
79006
|
+
const absoluteCodonPositions = codonPositionsInCDS.map(
|
|
79007
|
+
(i) => positionInCdsToPositionInMainSequence(
|
|
79008
|
+
i,
|
|
79009
|
+
forward,
|
|
79010
|
+
translationRange,
|
|
79011
|
+
originalSequenceStringLength
|
|
79012
|
+
)
|
|
78937
79013
|
);
|
|
78938
|
-
|
|
78939
|
-
|
|
78940
|
-
|
|
78941
|
-
|
|
78942
|
-
|
|
78943
|
-
|
|
78944
|
-
|
|
78945
|
-
|
|
78946
|
-
|
|
78947
|
-
|
|
78948
|
-
|
|
78949
|
-
|
|
78950
|
-
|
|
78951
|
-
|
|
78952
|
-
|
|
78953
|
-
|
|
78954
|
-
|
|
78955
|
-
|
|
78956
|
-
|
|
78957
|
-
|
|
78958
|
-
|
|
78959
|
-
|
|
78960
|
-
|
|
78961
|
-
|
|
78962
|
-
|
|
78963
|
-
|
|
78964
|
-
|
|
78965
|
-
|
|
78966
|
-
|
|
78967
|
-
|
|
78968
|
-
|
|
79014
|
+
const codonRange = forward ? {
|
|
79015
|
+
start: absoluteCodonPositions[0],
|
|
79016
|
+
end: absoluteCodonPositions[codonPositionsInCDS.length - 1]
|
|
79017
|
+
} : {
|
|
79018
|
+
start: absoluteCodonPositions[codonPositionsInCDS.length - 1],
|
|
79019
|
+
end: absoluteCodonPositions[0]
|
|
79020
|
+
};
|
|
79021
|
+
let positionInCodon = 0;
|
|
79022
|
+
for (let i = 0; i < basesRead; i++) {
|
|
79023
|
+
const posInCds = i + index2;
|
|
79024
|
+
if (codonPositionsInCDS.includes(posInCds)) {
|
|
79025
|
+
aminoAcidDataForEachBaseOfDNA.push({
|
|
79026
|
+
aminoAcid,
|
|
79027
|
+
positionInCodon,
|
|
79028
|
+
aminoAcidIndex,
|
|
79029
|
+
sequenceIndex: absoluteCodonPositions[i],
|
|
79030
|
+
codonRange,
|
|
79031
|
+
fullCodon: codonPositionsInCDS.length === 3
|
|
79032
|
+
});
|
|
79033
|
+
positionInCodon++;
|
|
79034
|
+
} else {
|
|
79035
|
+
aminoAcidDataForEachBaseOfDNA.push({
|
|
79036
|
+
aminoAcid: null,
|
|
79037
|
+
positionInCodon: null,
|
|
79038
|
+
aminoAcidIndex: null,
|
|
79039
|
+
sequenceIndex: positionInCdsToPositionInMainSequence(
|
|
79040
|
+
posInCds,
|
|
79041
|
+
forward,
|
|
79042
|
+
translationRange,
|
|
79043
|
+
originalSequenceStringLength
|
|
79044
|
+
),
|
|
79045
|
+
codonRange: null,
|
|
79046
|
+
fullCodon: null
|
|
79047
|
+
});
|
|
79048
|
+
}
|
|
78969
79049
|
}
|
|
78970
|
-
|
|
78971
|
-
const lengthOfEndBpsNotCoveredByAminoAcids = sequenceStringLength - aminoAcidDataForEachBaseOfDNA.length;
|
|
78972
|
-
codonRange = translateRange(
|
|
78973
|
-
{
|
|
78974
|
-
start: sequenceStringLength - lengthOfEndBpsNotCoveredByAminoAcids,
|
|
78975
|
-
end: sequenceStringLength - 1
|
|
78976
|
-
},
|
|
78977
|
-
startOffset,
|
|
78978
|
-
originalSequenceStringLength
|
|
78979
|
-
);
|
|
78980
|
-
for (let j = 0; j < lengthOfEndBpsNotCoveredByAminoAcids; j++) {
|
|
78981
|
-
aminoAcidDataForEachBaseOfDNA.push({
|
|
78982
|
-
aminoAcid: getAminoAcidFromSequenceTriplet("xxx"),
|
|
78983
|
-
//fake xxx triplet returns the gap amino acid
|
|
78984
|
-
positionInCodon: j,
|
|
78985
|
-
aminoAcidIndex,
|
|
78986
|
-
sequenceIndex: codonRange.start + j,
|
|
78987
|
-
fullCodon: false,
|
|
78988
|
-
codonRange
|
|
78989
|
-
});
|
|
79050
|
+
index2 += basesRead - codonPositionsInCDS.length;
|
|
78990
79051
|
}
|
|
78991
79052
|
if (sequenceStringLength !== aminoAcidDataForEachBaseOfDNA.length) {
|
|
78992
79053
|
throw new Error("something went wrong!");
|
|
78993
79054
|
}
|
|
79055
|
+
if (!forward) {
|
|
79056
|
+
aminoAcidDataForEachBaseOfDNA.reverse();
|
|
79057
|
+
}
|
|
78994
79058
|
return aminoAcidDataForEachBaseOfDNA;
|
|
78995
79059
|
}
|
|
78996
79060
|
__name(getAminoAcidDataForEachBaseOfDna, "getAminoAcidDataForEachBaseOfDna");
|
|
@@ -102920,7 +102984,7 @@ var defineProperty$2 = /* @__PURE__ */ __name(function(object3, name2, value, pr
|
|
|
102920
102984
|
defineDataProperty2(object3, name2, value);
|
|
102921
102985
|
}
|
|
102922
102986
|
}, "defineProperty$2");
|
|
102923
|
-
var
|
|
102987
|
+
var defineProperties2 = /* @__PURE__ */ __name(function(object3, map3) {
|
|
102924
102988
|
var predicates = arguments.length > 2 ? arguments[2] : {};
|
|
102925
102989
|
var props = keys$1(map3);
|
|
102926
102990
|
if (hasSymbols2) {
|
|
@@ -102930,8 +102994,8 @@ var defineProperties3 = /* @__PURE__ */ __name(function(object3, map3) {
|
|
|
102930
102994
|
defineProperty$2(object3, props[i], map3[props[i]], predicates[props[i]]);
|
|
102931
102995
|
}
|
|
102932
102996
|
}, "defineProperties");
|
|
102933
|
-
|
|
102934
|
-
var defineProperties_1 =
|
|
102997
|
+
defineProperties2.supportsDescriptors = !!supportsDescriptors$2;
|
|
102998
|
+
var defineProperties_1 = defineProperties2;
|
|
102935
102999
|
var numberIsNaN = /* @__PURE__ */ __name(function(value) {
|
|
102936
103000
|
return value !== value;
|
|
102937
103001
|
}, "numberIsNaN");
|
|
@@ -105554,7 +105618,7 @@ function showDialog({
|
|
|
105554
105618
|
(_a2 = document.activeElement.closest(".veEditor")) == null ? void 0 : _a2.className.split(" ").forEach((c2) => {
|
|
105555
105619
|
if (!c2.trim())
|
|
105556
105620
|
return;
|
|
105557
|
-
if (!c2.trim().includes("veEditor")) {
|
|
105621
|
+
if (!c2.trim().includes("veEditor") && !c2.trim().includes("previewModeFullscreen")) {
|
|
105558
105622
|
editorName = c2;
|
|
105559
105623
|
}
|
|
105560
105624
|
});
|
|
@@ -106033,18 +106097,19 @@ const withEditorProps = compose(
|
|
|
106033
106097
|
),
|
|
106034
106098
|
withHandlers({
|
|
106035
106099
|
wrappedInsertSequenceDataAtPositionOrRange: (props) => {
|
|
106036
|
-
return (_sequenceDataToInsert, _existingSequenceData, _caretPositionOrRange, _options) => {
|
|
106100
|
+
return (_sequenceDataToInsert, _existingSequenceData, _caretPositionOrRange, _options) => __async(void 0, null, function* () {
|
|
106037
106101
|
const {
|
|
106038
106102
|
sequenceDataToInsert,
|
|
106039
106103
|
existingSequenceData,
|
|
106040
106104
|
caretPositionOrRange,
|
|
106041
106105
|
options
|
|
106042
|
-
} = props.beforeSequenceInsertOrDelete ? props.beforeSequenceInsertOrDelete(
|
|
106106
|
+
} = props.beforeSequenceInsertOrDelete ? (yield props.beforeSequenceInsertOrDelete(
|
|
106043
106107
|
tidyUpSequenceData(_sequenceDataToInsert),
|
|
106044
106108
|
tidyUpSequenceData(_existingSequenceData),
|
|
106045
106109
|
_caretPositionOrRange,
|
|
106046
106110
|
_options
|
|
106047
|
-
) || {} : {};
|
|
106111
|
+
)) || {} : {};
|
|
106112
|
+
console.log(`zoink2`);
|
|
106048
106113
|
return [
|
|
106049
106114
|
insertSequenceDataAtPositionOrRange(
|
|
106050
106115
|
sequenceDataToInsert || _sequenceDataToInsert,
|
|
@@ -106054,7 +106119,7 @@ const withEditorProps = compose(
|
|
|
106054
106119
|
),
|
|
106055
106120
|
options || _options || {}
|
|
106056
106121
|
];
|
|
106057
|
-
};
|
|
106122
|
+
});
|
|
106058
106123
|
},
|
|
106059
106124
|
upsertTranslation: (props) => {
|
|
106060
106125
|
return (translationToUpsert) => __async(void 0, null, function* () {
|
|
@@ -106139,7 +106204,7 @@ const withEditorProps = compose(
|
|
|
106139
106204
|
);
|
|
106140
106205
|
caretPositionUpdate2(0);
|
|
106141
106206
|
},
|
|
106142
|
-
handleReverseComplementSelection: (props) => () => {
|
|
106207
|
+
handleReverseComplementSelection: (props) => () => __async(void 0, null, function* () {
|
|
106143
106208
|
const {
|
|
106144
106209
|
sequenceData: sequenceData2,
|
|
106145
106210
|
updateSequenceData: updateSequenceData2,
|
|
@@ -106155,7 +106220,7 @@ const withEditorProps = compose(
|
|
|
106155
106220
|
range: selectionLayer2
|
|
106156
106221
|
}
|
|
106157
106222
|
);
|
|
106158
|
-
const [newSeqData] = wrappedInsertSequenceDataAtPositionOrRange(
|
|
106223
|
+
const [newSeqData] = yield wrappedInsertSequenceDataAtPositionOrRange(
|
|
106159
106224
|
reversedSeqData,
|
|
106160
106225
|
sequenceData2,
|
|
106161
106226
|
selectionLayer2,
|
|
@@ -106164,8 +106229,8 @@ const withEditorProps = compose(
|
|
|
106164
106229
|
}
|
|
106165
106230
|
);
|
|
106166
106231
|
updateSequenceData2(newSeqData);
|
|
106167
|
-
},
|
|
106168
|
-
handleComplementSelection: (props) => () => {
|
|
106232
|
+
}),
|
|
106233
|
+
handleComplementSelection: (props) => () => __async(void 0, null, function* () {
|
|
106169
106234
|
const {
|
|
106170
106235
|
sequenceData: sequenceData2,
|
|
106171
106236
|
updateSequenceData: updateSequenceData2,
|
|
@@ -106178,7 +106243,7 @@ const withEditorProps = compose(
|
|
|
106178
106243
|
const comp = getComplementSequenceAndAnnotations(sequenceData2, {
|
|
106179
106244
|
range: selectionLayer2
|
|
106180
106245
|
});
|
|
106181
|
-
const [newSeqData] = wrappedInsertSequenceDataAtPositionOrRange(
|
|
106246
|
+
const [newSeqData] = yield wrappedInsertSequenceDataAtPositionOrRange(
|
|
106182
106247
|
comp,
|
|
106183
106248
|
sequenceData2,
|
|
106184
106249
|
selectionLayer2,
|
|
@@ -106187,7 +106252,7 @@ const withEditorProps = compose(
|
|
|
106187
106252
|
}
|
|
106188
106253
|
);
|
|
106189
106254
|
updateSequenceData2(newSeqData);
|
|
106190
|
-
},
|
|
106255
|
+
}),
|
|
106191
106256
|
handleReverseComplementSequence: (props) => () => {
|
|
106192
106257
|
const { sequenceData: sequenceData2, updateSequenceData: updateSequenceData2 } = props;
|
|
106193
106258
|
updateSequenceData2(
|
|
@@ -111693,7 +111758,7 @@ function usePrevious(current) {
|
|
|
111693
111758
|
return ref2;
|
|
111694
111759
|
}
|
|
111695
111760
|
__name(usePrevious, "usePrevious");
|
|
111696
|
-
function
|
|
111761
|
+
function create4() {
|
|
111697
111762
|
let lock = null;
|
|
111698
111763
|
function isClaimed() {
|
|
111699
111764
|
return Boolean(lock);
|
|
@@ -111732,7 +111797,7 @@ function create5() {
|
|
|
111732
111797
|
tryAbandon
|
|
111733
111798
|
};
|
|
111734
111799
|
}
|
|
111735
|
-
__name(
|
|
111800
|
+
__name(create4, "create");
|
|
111736
111801
|
function isDragging(state2) {
|
|
111737
111802
|
if (state2.phase === "IDLE" || state2.phase === "DROP_ANIMATING") {
|
|
111738
111803
|
return false;
|
|
@@ -112775,7 +112840,7 @@ function useSensorMarshal(_ref4) {
|
|
|
112775
112840
|
enableDefaultSensors
|
|
112776
112841
|
} = _ref4;
|
|
112777
112842
|
const useSensors = [...enableDefaultSensors ? defaultSensors : [], ...customSensors || []];
|
|
112778
|
-
const lockAPI = useState(() =>
|
|
112843
|
+
const lockAPI = useState(() => create4())[0];
|
|
112779
112844
|
const tryAbandonLock = useCallback(/* @__PURE__ */ __name(function tryAbandonLock2(previous2, current) {
|
|
112780
112845
|
if (isDragging(previous2) && !isDragging(current)) {
|
|
112781
112846
|
lockAPI.tryAbandon();
|
|
@@ -118604,7 +118669,7 @@ function AASliver(props) {
|
|
|
118604
118669
|
fill: color2 || "gray"
|
|
118605
118670
|
}
|
|
118606
118671
|
)),
|
|
118607
|
-
!isFiller && /* @__PURE__ */ React__default$1.createElement(
|
|
118672
|
+
(!isFiller || isTruncatedEnd && isTruncatedStart) && /* @__PURE__ */ React__default$1.createElement(
|
|
118608
118673
|
"text",
|
|
118609
118674
|
{
|
|
118610
118675
|
fontSize: 25,
|
|
@@ -118681,18 +118746,39 @@ const _Translation = class _Translation extends React__default$1.Component {
|
|
|
118681
118746
|
subrangeStartRelativeToAnnotationStart,
|
|
118682
118747
|
aminoAcids
|
|
118683
118748
|
);
|
|
118749
|
+
let prevAaSliver;
|
|
118750
|
+
let nextAaSliver = aminoAcidsForSubrange[1];
|
|
118751
|
+
const lastIndex = aminoAcidsForSubrange.length - 1;
|
|
118684
118752
|
const translationSVG = aminoAcidsForSubrange.map(
|
|
118685
118753
|
function(aminoAcidSliver, index2) {
|
|
118686
|
-
|
|
118687
|
-
|
|
118688
|
-
|
|
118754
|
+
if (aminoAcidSliver.positionInCodon === null) {
|
|
118755
|
+
prevAaSliver = aminoAcidSliver;
|
|
118756
|
+
nextAaSliver = aminoAcidsForSubrange[index2 + 2];
|
|
118757
|
+
return /* @__PURE__ */ React__default$1.createElement(
|
|
118758
|
+
"rect",
|
|
118759
|
+
{
|
|
118760
|
+
x: index2 * charWidth2,
|
|
118761
|
+
y: height2 / 2 - height2 / 16,
|
|
118762
|
+
width: charWidth2,
|
|
118763
|
+
height: height2 / 8,
|
|
118764
|
+
fill: "grey",
|
|
118765
|
+
stroke: "black",
|
|
118766
|
+
strokeWidth: 1
|
|
118767
|
+
}
|
|
118768
|
+
);
|
|
118769
|
+
}
|
|
118770
|
+
const isEndFiller = (index2 === 0 || (prevAaSliver == null ? void 0 : prevAaSliver.positionInCodon) === null) && aminoAcidSliver.positionInCodon === (annotation.forward ? 2 : 0);
|
|
118771
|
+
const isStartFiller = (index2 === lastIndex || (nextAaSliver == null ? void 0 : nextAaSliver.positionInCodon) === null) && aminoAcidSliver.positionInCodon === (annotation.forward ? 0 : 2);
|
|
118772
|
+
let isTruncatedEnd = (index2 === 0 || (prevAaSliver == null ? void 0 : prevAaSliver.positionInCodon) === null) && aminoAcidSliver.positionInCodon === 1;
|
|
118773
|
+
let isTruncatedStart = (index2 === lastIndex || (nextAaSliver == null ? void 0 : nextAaSliver.positionInCodon) === null) && aminoAcidSliver.positionInCodon === 1;
|
|
118689
118774
|
if (!annotation.forward) {
|
|
118690
118775
|
const holder = isTruncatedEnd;
|
|
118691
118776
|
isTruncatedEnd = isTruncatedStart;
|
|
118692
118777
|
isTruncatedStart = holder;
|
|
118693
118778
|
}
|
|
118694
|
-
const isStartFiller = index2 === aminoAcidsForSubrange.length - 1 && aminoAcidSliver.positionInCodon === (annotation.forward ? 0 : 2);
|
|
118695
118779
|
if (aminoAcidSliver.positionInCodon !== 1 && !isStartFiller && !isEndFiller) {
|
|
118780
|
+
prevAaSliver = aminoAcidSliver;
|
|
118781
|
+
nextAaSliver = aminoAcidsForSubrange[index2 + 2];
|
|
118696
118782
|
return null;
|
|
118697
118783
|
}
|
|
118698
118784
|
const { gapsInside, gapsBefore } = getGaps2(aminoAcidSliver.codonRange);
|
|
@@ -118709,10 +118795,12 @@ const _Translation = class _Translation extends React__default$1.Component {
|
|
|
118709
118795
|
} else {
|
|
118710
118796
|
color2 = aminoAcid.color;
|
|
118711
118797
|
}
|
|
118798
|
+
prevAaSliver = aminoAcidSliver;
|
|
118799
|
+
nextAaSliver = aminoAcidsForSubrange[index2 + 2];
|
|
118712
118800
|
return /* @__PURE__ */ React__default$1.createElement(
|
|
118713
118801
|
AASliver$1,
|
|
118714
118802
|
{
|
|
118715
|
-
isFiller: isEndFiller || isStartFiller,
|
|
118803
|
+
isFiller: isEndFiller || isStartFiller || isTruncatedEnd && isTruncatedStart,
|
|
118716
118804
|
isTruncatedEnd,
|
|
118717
118805
|
isTruncatedStart,
|
|
118718
118806
|
onClick: function(event) {
|
|
@@ -120945,7 +121033,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
120945
121033
|
}
|
|
120946
121034
|
__name(showFileDialog, "showFileDialog");
|
|
120947
121035
|
const name = "@teselagen/ove";
|
|
120948
|
-
const version = "0.5.
|
|
121036
|
+
const version = "0.5.14";
|
|
120949
121037
|
const main = "./src/index.js";
|
|
120950
121038
|
const type = "module";
|
|
120951
121039
|
const exports$1 = {
|
|
@@ -123264,7 +123352,7 @@ var classCallCheck = /* @__PURE__ */ __name(function(instance, Constructor) {
|
|
|
123264
123352
|
}
|
|
123265
123353
|
}, "classCallCheck");
|
|
123266
123354
|
var createClass = /* @__PURE__ */ function() {
|
|
123267
|
-
function
|
|
123355
|
+
function defineProperties3(target, props) {
|
|
123268
123356
|
for (var i = 0; i < props.length; i++) {
|
|
123269
123357
|
var descriptor2 = props[i];
|
|
123270
123358
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -123274,12 +123362,12 @@ var createClass = /* @__PURE__ */ function() {
|
|
|
123274
123362
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
123275
123363
|
}
|
|
123276
123364
|
}
|
|
123277
|
-
__name(
|
|
123365
|
+
__name(defineProperties3, "defineProperties");
|
|
123278
123366
|
return function(Constructor, protoProps, staticProps) {
|
|
123279
123367
|
if (protoProps)
|
|
123280
|
-
|
|
123368
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
123281
123369
|
if (staticProps)
|
|
123282
|
-
|
|
123370
|
+
defineProperties3(Constructor, staticProps);
|
|
123283
123371
|
return Constructor;
|
|
123284
123372
|
};
|
|
123285
123373
|
}();
|
|
@@ -125617,7 +125705,7 @@ function VectorInteractionHOC(Component2) {
|
|
|
125617
125705
|
caretPositionUpdate: this.caretPositionUpdate
|
|
125618
125706
|
});
|
|
125619
125707
|
}, "updateSelectionOrCaret"));
|
|
125620
|
-
__publicField(this, "handlePaste", /* @__PURE__ */ __name((e2) => {
|
|
125708
|
+
__publicField(this, "handlePaste", /* @__PURE__ */ __name((e2) => __async(this, null, function* () {
|
|
125621
125709
|
const {
|
|
125622
125710
|
caretPosition: caretPosition2 = -1,
|
|
125623
125711
|
selectionLayer: selectionLayer2 = { start: -1, end: -1 },
|
|
@@ -125659,13 +125747,13 @@ function VectorInteractionHOC(Component2) {
|
|
|
125659
125747
|
});
|
|
125660
125748
|
if (!seqDataToInsert.sequence.length)
|
|
125661
125749
|
return window.toastr.warning("Sorry no valid base pairs to paste");
|
|
125662
|
-
insertAndSelectHelper({
|
|
125750
|
+
yield insertAndSelectHelper({
|
|
125663
125751
|
seqDataToInsert,
|
|
125664
125752
|
props: this.props
|
|
125665
125753
|
});
|
|
125666
125754
|
window.toastr.success("Sequence Pasted Successfully");
|
|
125667
125755
|
e2.preventDefault();
|
|
125668
|
-
}, "handlePaste"));
|
|
125756
|
+
}), "handlePaste"));
|
|
125669
125757
|
__publicField(this, "handleCutOrCopy", /* @__PURE__ */ __name((isCut) => (e2) => {
|
|
125670
125758
|
const {
|
|
125671
125759
|
onCopy = noop$5,
|
|
@@ -125732,7 +125820,7 @@ function VectorInteractionHOC(Component2) {
|
|
|
125732
125820
|
}, "handleCutOrCopy"));
|
|
125733
125821
|
__publicField(this, "handleCut", this.handleCutOrCopy(true));
|
|
125734
125822
|
__publicField(this, "handleCopy", this.handleCutOrCopy());
|
|
125735
|
-
__publicField(this, "handleDnaInsert", /* @__PURE__ */ __name(({ useEventPositioning })
|
|
125823
|
+
__publicField(this, "handleDnaInsert", /* @__PURE__ */ __name((_0) => __async(this, [_0], function* ({ useEventPositioning }) {
|
|
125736
125824
|
const {
|
|
125737
125825
|
caretPosition: caretPosition2 = -1,
|
|
125738
125826
|
selectionLayer: selectionLayer2 = { start: -1, end: -1 },
|
|
@@ -125759,17 +125847,17 @@ function VectorInteractionHOC(Component2) {
|
|
|
125759
125847
|
selectionLayer: selectionLayer2,
|
|
125760
125848
|
sequenceLength,
|
|
125761
125849
|
caretPosition: caretPosition2,
|
|
125762
|
-
handleInsert: (seqDataToInsert) => {
|
|
125763
|
-
insertAndSelectHelper({
|
|
125850
|
+
handleInsert: (seqDataToInsert) => __async(this, null, function* () {
|
|
125851
|
+
yield insertAndSelectHelper({
|
|
125764
125852
|
props: this.props,
|
|
125765
125853
|
seqDataToInsert
|
|
125766
125854
|
});
|
|
125767
125855
|
window.toastr.success("Sequence Inserted Successfully");
|
|
125768
|
-
}
|
|
125856
|
+
})
|
|
125769
125857
|
});
|
|
125770
125858
|
}
|
|
125771
|
-
}, "handleDnaInsert"));
|
|
125772
|
-
__publicField(this, "handleDnaDelete", /* @__PURE__ */ __name((showToast = true) => {
|
|
125859
|
+
}), "handleDnaInsert"));
|
|
125860
|
+
__publicField(this, "handleDnaDelete", /* @__PURE__ */ __name((showToast = true) => __async(this, null, function* () {
|
|
125773
125861
|
const {
|
|
125774
125862
|
caretPosition: caretPosition2 = -1,
|
|
125775
125863
|
selectionLayer: selectionLayer2 = { start: -1, end: -1 },
|
|
@@ -125810,11 +125898,14 @@ function VectorInteractionHOC(Component2) {
|
|
|
125810
125898
|
isCaretAtEndOfSeq = true;
|
|
125811
125899
|
}
|
|
125812
125900
|
}
|
|
125813
|
-
const [newSeqData] = wrappedInsertSequenceDataAtPositionOrRange(
|
|
125901
|
+
const [newSeqData, { abortSeqChange }] = yield wrappedInsertSequenceDataAtPositionOrRange(
|
|
125814
125902
|
{},
|
|
125815
125903
|
sequenceData2,
|
|
125816
125904
|
rangeToDelete
|
|
125817
125905
|
);
|
|
125906
|
+
console.log(`z3`);
|
|
125907
|
+
if (abortSeqChange)
|
|
125908
|
+
return;
|
|
125818
125909
|
updateSequenceData2(newSeqData);
|
|
125819
125910
|
caretPositionUpdate2(
|
|
125820
125911
|
isCaretAtEndOfSeq ? newSeqData.sequence.length : rangeToDelete.start > newSeqData.sequence.length ? (
|
|
@@ -125828,7 +125919,7 @@ function VectorInteractionHOC(Component2) {
|
|
|
125828
125919
|
if (showToast)
|
|
125829
125920
|
window.toastr.success("Sequence Deleted Successfully");
|
|
125830
125921
|
}
|
|
125831
|
-
}, "handleDnaDelete"));
|
|
125922
|
+
}), "handleDnaDelete"));
|
|
125832
125923
|
__publicField(this, "caretPositionUpdate", /* @__PURE__ */ __name((position2) => {
|
|
125833
125924
|
const { caretPosition: caretPosition2 = -1 } = this.props;
|
|
125834
125925
|
if (caretPosition2 === position2) {
|
|
@@ -126587,7 +126678,7 @@ function getGenbankFromSelection(selectedSeqData, sequenceData2) {
|
|
|
126587
126678
|
});
|
|
126588
126679
|
}
|
|
126589
126680
|
__name(getGenbankFromSelection, "getGenbankFromSelection");
|
|
126590
|
-
const insertAndSelectHelper = /* @__PURE__ */ __name(({ seqDataToInsert, props })
|
|
126681
|
+
const insertAndSelectHelper = /* @__PURE__ */ __name((_0) => __async(void 0, [_0], function* ({ seqDataToInsert, props }) {
|
|
126591
126682
|
const {
|
|
126592
126683
|
updateSequenceData: updateSequenceData2,
|
|
126593
126684
|
wrappedInsertSequenceDataAtPositionOrRange,
|
|
@@ -126597,11 +126688,15 @@ const insertAndSelectHelper = /* @__PURE__ */ __name(({ seqDataToInsert, props }
|
|
|
126597
126688
|
selectionLayer: selectionLayer2,
|
|
126598
126689
|
bpLimit
|
|
126599
126690
|
} = props;
|
|
126600
|
-
const [newSeqData, { maintainOriginSplit }] = wrappedInsertSequenceDataAtPositionOrRange(
|
|
126691
|
+
const [newSeqData, { maintainOriginSplit, abortSeqChange }] = yield wrappedInsertSequenceDataAtPositionOrRange(
|
|
126601
126692
|
seqDataToInsert,
|
|
126602
126693
|
sequenceData2,
|
|
126603
126694
|
caretPosition2 > -1 ? caretPosition2 : selectionLayer2
|
|
126604
126695
|
);
|
|
126696
|
+
console.log(`z4`);
|
|
126697
|
+
if (abortSeqChange) {
|
|
126698
|
+
throw new Error("abortSeqChange");
|
|
126699
|
+
}
|
|
126605
126700
|
if (bpLimit) {
|
|
126606
126701
|
if (newSeqData.sequence.length > bpLimit) {
|
|
126607
126702
|
window.toastr.error(
|
|
@@ -126619,7 +126714,7 @@ const insertAndSelectHelper = /* @__PURE__ */ __name(({ seqDataToInsert, props }
|
|
|
126619
126714
|
start: newSelectionLayerStart,
|
|
126620
126715
|
end: newSelectionLayerEnd % newSeqData.sequence.length
|
|
126621
126716
|
});
|
|
126622
|
-
}, "insertAndSelectHelper");
|
|
126717
|
+
}), "insertAndSelectHelper");
|
|
126623
126718
|
function getEditDeleteHandlers(type2, annotation) {
|
|
126624
126719
|
return [
|
|
126625
126720
|
...annotation.isEditLocked ? [
|