@digipair/skill-web-editor 0.42.0 → 0.43.3
Sign up to get free protection for your applications and to get access to all the features.
- package/index.cjs2.js +120 -120
- package/index.esm2.js +120 -120
- package/package.json +1 -1
package/index.cjs2.js
CHANGED
@@ -55,11 +55,11 @@ function _instanceof(left, right) {
|
|
55
55
|
return left instanceof right;
|
56
56
|
}
|
57
57
|
}
|
58
|
-
var t$2 = globalThis, e$2 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$
|
58
|
+
var t$2 = globalThis, e$2 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$1 = Symbol(), o$3 = new WeakMap;
|
59
59
|
var n$3 = /*#__PURE__*/ function() {
|
60
60
|
function n(t, e, o) {
|
61
61
|
_class_call_check$3(this, n);
|
62
|
-
if (this._$cssResult$ = !0, o !== s$
|
62
|
+
if (this._$cssResult$ = !0, o !== s$1) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
63
63
|
this.cssText = t, this.t = e;
|
64
64
|
}
|
65
65
|
_create_class$3(n, [
|
@@ -85,7 +85,7 @@ var n$3 = /*#__PURE__*/ function() {
|
|
85
85
|
return n;
|
86
86
|
}();
|
87
87
|
var r$4 = function(t) {
|
88
|
-
return new n$3("string" == typeof t ? t : t + "", void 0, s$
|
88
|
+
return new n$3("string" == typeof t ? t : t + "", void 0, s$1);
|
89
89
|
}, S$1 = function(s, o) {
|
90
90
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
91
91
|
if (e$2) s.adoptedStyleSheets = o.map(function(t) {
|
@@ -458,7 +458,7 @@ var _Symbol, _a, _a1;
|
|
458
458
|
* @license
|
459
459
|
* Copyright 2017 Google LLC
|
460
460
|
* SPDX-License-Identifier: BSD-3-Clause
|
461
|
-
*/ var i$
|
461
|
+
*/ var i$2 = Object.is, e$1 = Object.defineProperty, r$3 = Object.getOwnPropertyDescriptor, h$1 = Object.getOwnPropertyNames, o$2 = Object.getOwnPropertySymbols, n$2 = Object.getPrototypeOf, a$1 = globalThis, c$1 = a$1.trustedTypes, l$1 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$1 = function(t, s) {
|
462
462
|
return t;
|
463
463
|
}, u$1 = {
|
464
464
|
toAttribute: function toAttribute(t, s) {
|
@@ -492,7 +492,7 @@ var _Symbol, _a, _a1;
|
|
492
492
|
return i;
|
493
493
|
}
|
494
494
|
}, f$1 = function(t, s) {
|
495
|
-
return !i$
|
495
|
+
return !i$2(t, s);
|
496
496
|
}, y$1 = {
|
497
497
|
attribute: !0,
|
498
498
|
type: String,
|
@@ -1167,7 +1167,7 @@ function _create_super$1(Derived) {
|
|
1167
1167
|
};
|
1168
1168
|
}
|
1169
1169
|
var _t;
|
1170
|
-
var t$1 = globalThis, i = t$1.trustedTypes, s
|
1170
|
+
var t$1 = globalThis, i$1 = t$1.trustedTypes, s = i$1 ? i$1.createPolicy("lit-html", {
|
1171
1171
|
createHTML: function(t) {
|
1172
1172
|
return t;
|
1173
1173
|
}
|
@@ -1188,14 +1188,14 @@ var t$1 = globalThis, i = t$1.trustedTypes, s$1 = i ? i.createPolicy("lit-html",
|
|
1188
1188
|
values: s
|
1189
1189
|
};
|
1190
1190
|
};
|
1191
|
-
}, x = y(1),
|
1192
|
-
function
|
1193
|
-
if (!
|
1194
|
-
return void 0 !== s
|
1191
|
+
}, x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap, C = r$2.createTreeWalker(r$2, 129);
|
1192
|
+
function P(t, i) {
|
1193
|
+
if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
1194
|
+
return void 0 !== s ? s.createHTML(i) : i;
|
1195
1195
|
}
|
1196
|
-
var
|
1196
|
+
var V = function(t, i) {
|
1197
1197
|
var s = t.length - 1, o = [];
|
1198
|
-
var r, l = 2 === i ? "<svg>" : "", c = f;
|
1198
|
+
var r, l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "", c = f;
|
1199
1199
|
for(var _$i = 0; _$i < s; _$i++){
|
1200
1200
|
var s1 = t[_$i];
|
1201
1201
|
var a = void 0, u = void 0, d = -1, y = 0;
|
@@ -1204,24 +1204,24 @@ var P = function(t, i) {
|
|
1204
1204
|
l += c === f ? s1 + n$1 : d >= 0 ? (o.push(a), s1.slice(0, d) + e + s1.slice(d) + h + x) : s1 + h + (-2 === d ? _$i : x);
|
1205
1205
|
}
|
1206
1206
|
return [
|
1207
|
-
|
1207
|
+
P(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")),
|
1208
1208
|
o
|
1209
1209
|
];
|
1210
1210
|
};
|
1211
|
-
var
|
1212
|
-
function
|
1211
|
+
var N = /*#__PURE__*/ function() {
|
1212
|
+
function N(param, n) {
|
1213
1213
|
var t = param.strings, s = param._$litType$;
|
1214
|
-
_class_call_check$1(this,
|
1214
|
+
_class_call_check$1(this, N);
|
1215
1215
|
var r;
|
1216
1216
|
this.parts = [];
|
1217
1217
|
var c = 0, a = 0;
|
1218
|
-
var u = t.length - 1, d = this.parts,
|
1219
|
-
if (this.el =
|
1218
|
+
var u = t.length - 1, d = this.parts, _V = _sliced_to_array(V(t, s), 2), f = _V[0], v = _V[1];
|
1219
|
+
if (this.el = N.createElement(f, n), C.currentNode = this.el.content, 2 === s || 3 === s) {
|
1220
1220
|
var _t;
|
1221
1221
|
var t1 = this.el.content.firstChild;
|
1222
1222
|
(_t = t1).replaceWith.apply(_t, _to_consumable_array(t1.childNodes));
|
1223
1223
|
}
|
1224
|
-
for(; null !== (r =
|
1224
|
+
for(; null !== (r = C.nextNode()) && d.length < u;){
|
1225
1225
|
if (1 === r.nodeType) {
|
1226
1226
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
1227
1227
|
if (r.hasAttributes()) try {
|
@@ -1234,7 +1234,7 @@ var V = /*#__PURE__*/ function() {
|
|
1234
1234
|
index: c,
|
1235
1235
|
name: e1[2],
|
1236
1236
|
strings: s1,
|
1237
|
-
ctor: "." === e1[1] ?
|
1237
|
+
ctor: "." === e1[1] ? H : "?" === e1[1] ? I : "@" === e1[1] ? L : k
|
1238
1238
|
}), r.removeAttribute(t2);
|
1239
1239
|
} else t2.startsWith(h) && (d.push({
|
1240
1240
|
type: 6,
|
@@ -1258,8 +1258,8 @@ var V = /*#__PURE__*/ function() {
|
|
1258
1258
|
if ($.test(r.tagName)) {
|
1259
1259
|
var t3 = r.textContent.split(h), s2 = t3.length - 1;
|
1260
1260
|
if (s2 > 0) {
|
1261
|
-
r.textContent = i ? i.emptyScript : "";
|
1262
|
-
for(var i2 = 0; i2 < s2; i2++)r.append(t3[i2], l()),
|
1261
|
+
r.textContent = i$1 ? i$1.emptyScript : "";
|
1262
|
+
for(var i2 = 0; i2 < s2; i2++)r.append(t3[i2], l()), C.nextNode(), d.push({
|
1263
1263
|
type: 2,
|
1264
1264
|
index: ++c
|
1265
1265
|
});
|
@@ -1280,7 +1280,7 @@ var V = /*#__PURE__*/ function() {
|
|
1280
1280
|
c++;
|
1281
1281
|
}
|
1282
1282
|
}
|
1283
|
-
_create_class$1(
|
1283
|
+
_create_class$1(N, null, [
|
1284
1284
|
{
|
1285
1285
|
key: "createElement",
|
1286
1286
|
value: function createElement(t, i) {
|
@@ -1289,24 +1289,24 @@ var V = /*#__PURE__*/ function() {
|
|
1289
1289
|
}
|
1290
1290
|
}
|
1291
1291
|
]);
|
1292
|
-
return
|
1292
|
+
return N;
|
1293
1293
|
}();
|
1294
|
-
function
|
1294
|
+
function S(t, i) {
|
1295
1295
|
var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : t, e = arguments.length > 3 ? arguments[3] : void 0;
|
1296
1296
|
var _s__$Co, _h__$AO;
|
1297
1297
|
var _s;
|
1298
|
-
if (i ===
|
1298
|
+
if (i === T) return i;
|
1299
1299
|
var h = void 0 !== e ? (_s__$Co = s._$Co) === null || _s__$Co === void 0 ? void 0 : _s__$Co[e] : s._$Cl;
|
1300
1300
|
var o = c(i) ? void 0 : i._$litDirective$;
|
1301
1301
|
var __$Co;
|
1302
|
-
return (h === null || h === void 0 ? void 0 : h.constructor) !== o && (h === null || h === void 0 ? void 0 : (_h__$AO = h._$AO) === null || _h__$AO === void 0 ? void 0 : _h__$AO.call(h, !1), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? ((__$Co = (_s = s)._$Co) !== null && __$Co !== void 0 ? __$Co : _s._$Co = [])[e] = h : s._$Cl = h), void 0 !== h && (i =
|
1302
|
+
return (h === null || h === void 0 ? void 0 : h.constructor) !== o && (h === null || h === void 0 ? void 0 : (_h__$AO = h._$AO) === null || _h__$AO === void 0 ? void 0 : _h__$AO.call(h, !1), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? ((__$Co = (_s = s)._$Co) !== null && __$Co !== void 0 ? __$Co : _s._$Co = [])[e] = h : s._$Cl = h), void 0 !== h && (i = S(t, h._$AS(t, i.values), h, e)), i;
|
1303
1303
|
}
|
1304
|
-
var
|
1305
|
-
function
|
1306
|
-
_class_call_check$1(this,
|
1304
|
+
var M = /*#__PURE__*/ function() {
|
1305
|
+
function M(t, i) {
|
1306
|
+
_class_call_check$1(this, M);
|
1307
1307
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
|
1308
1308
|
}
|
1309
|
-
_create_class$1(
|
1309
|
+
_create_class$1(M, [
|
1310
1310
|
{
|
1311
1311
|
key: "parentNode",
|
1312
1312
|
get: function get() {
|
@@ -1324,16 +1324,16 @@ var S = /*#__PURE__*/ function() {
|
|
1324
1324
|
value: function u(t) {
|
1325
1325
|
var _t_creationScope;
|
1326
1326
|
var _this__$AD = this._$AD, _this__$AD_el = _this__$AD.el, i = _this__$AD_el.content, s = _this__$AD.parts, e = ((_t_creationScope = t === null || t === void 0 ? void 0 : t.creationScope) !== null && _t_creationScope !== void 0 ? _t_creationScope : r$2).importNode(i, !0);
|
1327
|
-
|
1328
|
-
var h =
|
1327
|
+
C.currentNode = e;
|
1328
|
+
var h = C.nextNode(), o = 0, n = 0, l = s[0];
|
1329
1329
|
for(; void 0 !== l;){
|
1330
1330
|
if (o === l.index) {
|
1331
1331
|
var i1 = void 0;
|
1332
|
-
2 === l.type ? i1 = new
|
1332
|
+
2 === l.type ? i1 = new R(h, h.nextSibling, this, t) : 1 === l.type ? i1 = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i1 = new z(h, this, t)), this._$AV.push(i1), l = s[++n];
|
1333
1333
|
}
|
1334
|
-
o !== (l === null || l === void 0 ? void 0 : l.index) && (h =
|
1334
|
+
o !== (l === null || l === void 0 ? void 0 : l.index) && (h = C.nextNode(), o++);
|
1335
1335
|
}
|
1336
|
-
return
|
1336
|
+
return C.currentNode = r$2, e;
|
1337
1337
|
}
|
1338
1338
|
},
|
1339
1339
|
{
|
@@ -1363,15 +1363,15 @@ var S = /*#__PURE__*/ function() {
|
|
1363
1363
|
}
|
1364
1364
|
}
|
1365
1365
|
]);
|
1366
|
-
return
|
1366
|
+
return M;
|
1367
1367
|
}();
|
1368
|
-
var
|
1369
|
-
function
|
1370
|
-
_class_call_check$1(this,
|
1368
|
+
var R = /*#__PURE__*/ function() {
|
1369
|
+
function R(t, i, s, e) {
|
1370
|
+
_class_call_check$1(this, R);
|
1371
1371
|
var _e_isConnected;
|
1372
|
-
this.type = 2, this._$AH =
|
1372
|
+
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = (_e_isConnected = e === null || e === void 0 ? void 0 : e.isConnected) !== null && _e_isConnected !== void 0 ? _e_isConnected : !0;
|
1373
1373
|
}
|
1374
|
-
_create_class$1(
|
1374
|
+
_create_class$1(R, [
|
1375
1375
|
{
|
1376
1376
|
key: "_$AU",
|
1377
1377
|
get: function get() {
|
@@ -1404,35 +1404,35 @@ var M = /*#__PURE__*/ function() {
|
|
1404
1404
|
key: "_$AI",
|
1405
1405
|
value: function _$AI(t) {
|
1406
1406
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
|
1407
|
-
t =
|
1407
|
+
t = S(this, t, i), c(t) ? t === E || null == t || "" === t ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== T && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : u(t) ? this.k(t) : this._(t);
|
1408
1408
|
}
|
1409
1409
|
},
|
1410
1410
|
{
|
1411
|
-
key: "
|
1412
|
-
value: function
|
1411
|
+
key: "O",
|
1412
|
+
value: function O(t) {
|
1413
1413
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
1414
1414
|
}
|
1415
1415
|
},
|
1416
1416
|
{
|
1417
1417
|
key: "T",
|
1418
1418
|
value: function T(t) {
|
1419
|
-
this._$AH !== t && (this._$AR(), this._$AH = this.
|
1419
|
+
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
1420
1420
|
}
|
1421
1421
|
},
|
1422
1422
|
{
|
1423
1423
|
key: "_",
|
1424
1424
|
value: function _(t) {
|
1425
|
-
this._$AH !==
|
1425
|
+
this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$2.createTextNode(t)), this._$AH = t;
|
1426
1426
|
}
|
1427
1427
|
},
|
1428
1428
|
{
|
1429
1429
|
key: "$",
|
1430
1430
|
value: function $(t) {
|
1431
1431
|
var _this__$AH;
|
1432
|
-
var i = t.values, s = t._$litType$, e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el =
|
1432
|
+
var i = t.values, s = t._$litType$, e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = N.createElement(P(s.h, s.h[0]), this.options)), s);
|
1433
1433
|
if (((_this__$AH = this._$AH) === null || _this__$AH === void 0 ? void 0 : _this__$AH._$AD) === e) this._$AH.p(i);
|
1434
1434
|
else {
|
1435
|
-
var _$t = new
|
1435
|
+
var _$t = new M(e, this), s1 = _$t.u(this.options);
|
1436
1436
|
_$t.p(i), this.T(s1), this._$AH = _$t;
|
1437
1437
|
}
|
1438
1438
|
}
|
@@ -1441,7 +1441,7 @@ var M = /*#__PURE__*/ function() {
|
|
1441
1441
|
key: "_$AC",
|
1442
1442
|
value: function _$AC(t) {
|
1443
1443
|
var i = A.get(t.strings);
|
1444
|
-
return void 0 === i && A.set(t.strings, i = new
|
1444
|
+
return void 0 === i && A.set(t.strings, i = new N(t)), i;
|
1445
1445
|
}
|
1446
1446
|
},
|
1447
1447
|
{
|
@@ -1454,7 +1454,7 @@ var M = /*#__PURE__*/ function() {
|
|
1454
1454
|
try {
|
1455
1455
|
for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
1456
1456
|
var h = _step.value;
|
1457
|
-
e === i.length ? i.push(s = new
|
1457
|
+
e === i.length ? i.push(s = new R(this.O(l()), this.O(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
|
1458
1458
|
}
|
1459
1459
|
} catch (err) {
|
1460
1460
|
_didIteratorError = true;
|
@@ -1492,14 +1492,14 @@ var M = /*#__PURE__*/ function() {
|
|
1492
1492
|
}
|
1493
1493
|
}
|
1494
1494
|
]);
|
1495
|
-
return
|
1495
|
+
return R;
|
1496
1496
|
}();
|
1497
|
-
var
|
1498
|
-
function
|
1499
|
-
_class_call_check$1(this,
|
1500
|
-
this.type = 1, this._$AH =
|
1497
|
+
var k = /*#__PURE__*/ function() {
|
1498
|
+
function k(t, i, s, e, h) {
|
1499
|
+
_class_call_check$1(this, k);
|
1500
|
+
this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String), this.strings = s) : this._$AH = E;
|
1501
1501
|
}
|
1502
|
-
_create_class$1(
|
1502
|
+
_create_class$1(k, [
|
1503
1503
|
{
|
1504
1504
|
key: "tagName",
|
1505
1505
|
get: function get() {
|
@@ -1518,11 +1518,11 @@ var R = /*#__PURE__*/ function() {
|
|
1518
1518
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this, s = arguments.length > 2 ? arguments[2] : void 0, e = arguments.length > 3 ? arguments[3] : void 0;
|
1519
1519
|
var h = this.strings;
|
1520
1520
|
var o = !1;
|
1521
|
-
if (void 0 === h) t =
|
1521
|
+
if (void 0 === h) t = S(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== T, o && (this._$AH = t);
|
1522
1522
|
else {
|
1523
1523
|
var e1 = t;
|
1524
1524
|
var n, r;
|
1525
|
-
for(t = h[0], n = 0; n < h.length - 1; n++)r =
|
1525
|
+
for(t = h[0], n = 0; n < h.length - 1; n++)r = S(this, e1[s + n], i, n), r === T && (r = this._$AH[n]), o || (o = !c(r) || r !== this._$AH[n]), r === E ? t = E : t !== E && (t += (r !== null && r !== void 0 ? r : "") + h[n + 1]), this._$AH[n] = r;
|
1526
1526
|
}
|
1527
1527
|
o && !e && this.j(t);
|
1528
1528
|
}
|
@@ -1530,71 +1530,71 @@ var R = /*#__PURE__*/ function() {
|
|
1530
1530
|
{
|
1531
1531
|
key: "j",
|
1532
1532
|
value: function j(t) {
|
1533
|
-
t ===
|
1533
|
+
t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t !== null && t !== void 0 ? t : "");
|
1534
1534
|
}
|
1535
1535
|
}
|
1536
1536
|
]);
|
1537
|
-
return
|
1537
|
+
return k;
|
1538
1538
|
}();
|
1539
|
-
var
|
1540
|
-
_inherits$1(
|
1541
|
-
var _super = _create_super$1(
|
1542
|
-
function
|
1543
|
-
_class_call_check$1(this,
|
1539
|
+
var H = /*#__PURE__*/ function(k) {
|
1540
|
+
_inherits$1(H, k);
|
1541
|
+
var _super = _create_super$1(H);
|
1542
|
+
function H() {
|
1543
|
+
_class_call_check$1(this, H);
|
1544
1544
|
var _this;
|
1545
1545
|
_this = _super.call.apply(_super, [
|
1546
1546
|
this
|
1547
1547
|
].concat(Array.prototype.slice.call(arguments))), _this.type = 3;
|
1548
1548
|
return _possible_constructor_return$1(_this);
|
1549
1549
|
}
|
1550
|
-
_create_class$1(
|
1550
|
+
_create_class$1(H, [
|
1551
1551
|
{
|
1552
1552
|
key: "j",
|
1553
1553
|
value: function j(t) {
|
1554
|
-
this.element[this.name] = t ===
|
1554
|
+
this.element[this.name] = t === E ? void 0 : t;
|
1555
1555
|
}
|
1556
1556
|
}
|
1557
1557
|
]);
|
1558
|
-
return
|
1559
|
-
}(
|
1560
|
-
var
|
1561
|
-
_inherits$1(
|
1562
|
-
var _super = _create_super$1(
|
1563
|
-
function
|
1564
|
-
_class_call_check$1(this,
|
1558
|
+
return H;
|
1559
|
+
}(k);
|
1560
|
+
var I = /*#__PURE__*/ function(k) {
|
1561
|
+
_inherits$1(I, k);
|
1562
|
+
var _super = _create_super$1(I);
|
1563
|
+
function I() {
|
1564
|
+
_class_call_check$1(this, I);
|
1565
1565
|
var _this;
|
1566
1566
|
_this = _super.call.apply(_super, [
|
1567
1567
|
this
|
1568
1568
|
].concat(Array.prototype.slice.call(arguments))), _this.type = 4;
|
1569
1569
|
return _possible_constructor_return$1(_this);
|
1570
1570
|
}
|
1571
|
-
_create_class$1(
|
1571
|
+
_create_class$1(I, [
|
1572
1572
|
{
|
1573
1573
|
key: "j",
|
1574
1574
|
value: function j(t) {
|
1575
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
1575
|
+
this.element.toggleAttribute(this.name, !!t && t !== E);
|
1576
1576
|
}
|
1577
1577
|
}
|
1578
1578
|
]);
|
1579
|
-
return
|
1580
|
-
}(
|
1581
|
-
var
|
1582
|
-
_inherits$1(
|
1583
|
-
var _super = _create_super$1(
|
1584
|
-
function
|
1585
|
-
_class_call_check$1(this,
|
1579
|
+
return I;
|
1580
|
+
}(k);
|
1581
|
+
var L = /*#__PURE__*/ function(k) {
|
1582
|
+
_inherits$1(L, k);
|
1583
|
+
var _super = _create_super$1(L);
|
1584
|
+
function L(t, i, s, e, h) {
|
1585
|
+
_class_call_check$1(this, L);
|
1586
1586
|
var _this;
|
1587
1587
|
_this = _super.call(this, t, i, s, e, h), _this.type = 5;
|
1588
1588
|
return _possible_constructor_return$1(_this);
|
1589
1589
|
}
|
1590
|
-
_create_class$1(
|
1590
|
+
_create_class$1(L, [
|
1591
1591
|
{
|
1592
1592
|
key: "_$AI",
|
1593
1593
|
value: function _$AI(t) {
|
1594
1594
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
|
1595
|
-
var
|
1596
|
-
if ((t = (
|
1597
|
-
var s = this._$AH, e = t ===
|
1595
|
+
var _S;
|
1596
|
+
if ((t = (_S = S(this, t, i, 0)) !== null && _S !== void 0 ? _S : E) === T) return;
|
1597
|
+
var s = this._$AH, e = t === E && s !== E || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, h = t !== E && (s === E || e);
|
1598
1598
|
e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
1599
1599
|
}
|
1600
1600
|
},
|
@@ -1607,14 +1607,14 @@ var I = /*#__PURE__*/ function(R) {
|
|
1607
1607
|
}
|
1608
1608
|
}
|
1609
1609
|
]);
|
1610
|
-
return
|
1611
|
-
}(
|
1612
|
-
var
|
1613
|
-
function
|
1614
|
-
_class_call_check$1(this,
|
1610
|
+
return L;
|
1611
|
+
}(k);
|
1612
|
+
var z = /*#__PURE__*/ function() {
|
1613
|
+
function z(t, i, s) {
|
1614
|
+
_class_call_check$1(this, z);
|
1615
1615
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
|
1616
1616
|
}
|
1617
|
-
_create_class$1(
|
1617
|
+
_create_class$1(z, [
|
1618
1618
|
{
|
1619
1619
|
key: "_$AU",
|
1620
1620
|
get: function get() {
|
@@ -1624,23 +1624,23 @@ var L = /*#__PURE__*/ function() {
|
|
1624
1624
|
{
|
1625
1625
|
key: "_$AI",
|
1626
1626
|
value: function _$AI(t) {
|
1627
|
-
|
1627
|
+
S(this, t);
|
1628
1628
|
}
|
1629
1629
|
}
|
1630
1630
|
]);
|
1631
|
-
return
|
1631
|
+
return z;
|
1632
1632
|
}();
|
1633
|
-
var
|
1633
|
+
var j = t$1.litHtmlPolyfillSupport;
|
1634
1634
|
var _litHtmlVersions;
|
1635
|
-
|
1636
|
-
var
|
1635
|
+
j === null || j === void 0 ? void 0 : j(N, R), ((_litHtmlVersions = (_t = t$1).litHtmlVersions) !== null && _litHtmlVersions !== void 0 ? _litHtmlVersions : _t.litHtmlVersions = []).push("3.2.1");
|
1636
|
+
var B = function(t, i, s) {
|
1637
1637
|
var _s_renderBefore;
|
1638
1638
|
var e = (_s_renderBefore = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore !== void 0 ? _s_renderBefore : i;
|
1639
1639
|
var h = e._$litPart$;
|
1640
1640
|
if (void 0 === h) {
|
1641
1641
|
var _s_renderBefore1;
|
1642
1642
|
var _$t = (_s_renderBefore1 = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore1 !== void 0 ? _s_renderBefore1 : null;
|
1643
|
-
e._$litPart$ = h = new
|
1643
|
+
e._$litPart$ = h = new R(i.insertBefore(l(), _$t), _$t, void 0, s !== null && s !== void 0 ? s : {});
|
1644
1644
|
}
|
1645
1645
|
return h._$AI(t), h;
|
1646
1646
|
};
|
@@ -1759,11 +1759,11 @@ var _globalThis1;
|
|
1759
1759
|
* @license
|
1760
1760
|
* Copyright 2017 Google LLC
|
1761
1761
|
* SPDX-License-Identifier: BSD-3-Clause
|
1762
|
-
*/ var
|
1763
|
-
_inherits(
|
1764
|
-
var _super = _create_super(
|
1765
|
-
function
|
1766
|
-
_class_call_check(this,
|
1762
|
+
*/ var r$1 = /*#__PURE__*/ function(t) {
|
1763
|
+
_inherits(r, t);
|
1764
|
+
var _super = _create_super(r);
|
1765
|
+
function r() {
|
1766
|
+
_class_call_check(this, r);
|
1767
1767
|
var _this;
|
1768
1768
|
_this = _super.call.apply(_super, [
|
1769
1769
|
this
|
@@ -1772,12 +1772,12 @@ var _globalThis1;
|
|
1772
1772
|
}, _this._$Do = void 0;
|
1773
1773
|
return _possible_constructor_return(_this);
|
1774
1774
|
}
|
1775
|
-
_create_class(
|
1775
|
+
_create_class(r, [
|
1776
1776
|
{
|
1777
1777
|
key: "createRenderRoot",
|
1778
1778
|
value: function createRenderRoot() {
|
1779
1779
|
var _this_renderOptions;
|
1780
|
-
var _$t = _get(_get_prototype_of(
|
1780
|
+
var _$t = _get(_get_prototype_of(r.prototype), "createRenderRoot", this).call(this);
|
1781
1781
|
var _renderBefore;
|
1782
1782
|
return (_renderBefore = (_this_renderOptions = this.renderOptions).renderBefore) !== null && _renderBefore !== void 0 ? _renderBefore : _this_renderOptions.renderBefore = _$t.firstChild, _$t;
|
1783
1783
|
}
|
@@ -1785,42 +1785,42 @@ var _globalThis1;
|
|
1785
1785
|
{
|
1786
1786
|
key: "update",
|
1787
1787
|
value: function update(t) {
|
1788
|
-
var
|
1789
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(
|
1788
|
+
var s = this.render();
|
1789
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(r.prototype), "update", this).call(this, t), this._$Do = B(s, this.renderRoot, this.renderOptions);
|
1790
1790
|
}
|
1791
1791
|
},
|
1792
1792
|
{
|
1793
1793
|
key: "connectedCallback",
|
1794
1794
|
value: function connectedCallback() {
|
1795
1795
|
var _this__$Do;
|
1796
|
-
_get(_get_prototype_of(
|
1796
|
+
_get(_get_prototype_of(r.prototype), "connectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!0);
|
1797
1797
|
}
|
1798
1798
|
},
|
1799
1799
|
{
|
1800
1800
|
key: "disconnectedCallback",
|
1801
1801
|
value: function disconnectedCallback() {
|
1802
1802
|
var _this__$Do;
|
1803
|
-
_get(_get_prototype_of(
|
1803
|
+
_get(_get_prototype_of(r.prototype), "disconnectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!1);
|
1804
1804
|
}
|
1805
1805
|
},
|
1806
1806
|
{
|
1807
1807
|
key: "render",
|
1808
1808
|
value: function render() {
|
1809
|
-
return
|
1809
|
+
return T;
|
1810
1810
|
}
|
1811
1811
|
}
|
1812
1812
|
]);
|
1813
|
-
return
|
1813
|
+
return r;
|
1814
1814
|
}(b);
|
1815
|
-
|
1816
|
-
LitElement:
|
1815
|
+
r$1._$litElement$ = !0, r$1["finalized"] = !0, (_globalThis_litElementHydrateSupport = (_globalThis = globalThis).litElementHydrateSupport) === null || _globalThis_litElementHydrateSupport === void 0 ? void 0 : _globalThis_litElementHydrateSupport.call(_globalThis, {
|
1816
|
+
LitElement: r$1
|
1817
1817
|
});
|
1818
|
-
var
|
1819
|
-
|
1820
|
-
LitElement:
|
1818
|
+
var i = globalThis.litElementPolyfillSupport;
|
1819
|
+
i === null || i === void 0 ? void 0 : i({
|
1820
|
+
LitElement: r$1
|
1821
1821
|
});
|
1822
1822
|
var _litElementVersions;
|
1823
|
-
((_litElementVersions = (_globalThis1 = globalThis).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _globalThis1.litElementVersions = []).push("4.
|
1823
|
+
((_litElementVersions = (_globalThis1 = globalThis).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _globalThis1.litElementVersions = []).push("4.1.1");
|
1824
1824
|
|
1825
1825
|
/**
|
1826
1826
|
* @license
|
@@ -2881,7 +2881,7 @@ const schemas = {
|
|
2881
2881
|
const BASE_URL = 'https://cdn.jsdelivr.net/npm';
|
2882
2882
|
const BLOCKLY_VERSION = '10.4.3';
|
2883
2883
|
let jsonGenerator, generateBlocklyBlockFromLibraries, generateToolboxFromLibraries, initializeMutator;
|
2884
|
-
class EditorElement extends
|
2884
|
+
class EditorElement extends r$1 {
|
2885
2885
|
createRenderRoot() {
|
2886
2886
|
return this;
|
2887
2887
|
}
|
package/index.esm2.js
CHANGED
@@ -53,11 +53,11 @@ function _instanceof(left, right) {
|
|
53
53
|
return left instanceof right;
|
54
54
|
}
|
55
55
|
}
|
56
|
-
var t$2 = globalThis, e$2 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$
|
56
|
+
var t$2 = globalThis, e$2 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$1 = Symbol(), o$3 = new WeakMap;
|
57
57
|
var n$3 = /*#__PURE__*/ function() {
|
58
58
|
function n(t, e, o) {
|
59
59
|
_class_call_check$3(this, n);
|
60
|
-
if (this._$cssResult$ = !0, o !== s$
|
60
|
+
if (this._$cssResult$ = !0, o !== s$1) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
61
61
|
this.cssText = t, this.t = e;
|
62
62
|
}
|
63
63
|
_create_class$3(n, [
|
@@ -83,7 +83,7 @@ var n$3 = /*#__PURE__*/ function() {
|
|
83
83
|
return n;
|
84
84
|
}();
|
85
85
|
var r$4 = function(t) {
|
86
|
-
return new n$3("string" == typeof t ? t : t + "", void 0, s$
|
86
|
+
return new n$3("string" == typeof t ? t : t + "", void 0, s$1);
|
87
87
|
}, S$1 = function(s, o) {
|
88
88
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
89
89
|
if (e$2) s.adoptedStyleSheets = o.map(function(t) {
|
@@ -456,7 +456,7 @@ var _Symbol, _a, _a1;
|
|
456
456
|
* @license
|
457
457
|
* Copyright 2017 Google LLC
|
458
458
|
* SPDX-License-Identifier: BSD-3-Clause
|
459
|
-
*/ var i$
|
459
|
+
*/ var i$2 = Object.is, e$1 = Object.defineProperty, r$3 = Object.getOwnPropertyDescriptor, h$1 = Object.getOwnPropertyNames, o$2 = Object.getOwnPropertySymbols, n$2 = Object.getPrototypeOf, a$1 = globalThis, c$1 = a$1.trustedTypes, l$1 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$1 = function(t, s) {
|
460
460
|
return t;
|
461
461
|
}, u$1 = {
|
462
462
|
toAttribute: function toAttribute(t, s) {
|
@@ -490,7 +490,7 @@ var _Symbol, _a, _a1;
|
|
490
490
|
return i;
|
491
491
|
}
|
492
492
|
}, f$1 = function(t, s) {
|
493
|
-
return !i$
|
493
|
+
return !i$2(t, s);
|
494
494
|
}, y$1 = {
|
495
495
|
attribute: !0,
|
496
496
|
type: String,
|
@@ -1165,7 +1165,7 @@ function _create_super$1(Derived) {
|
|
1165
1165
|
};
|
1166
1166
|
}
|
1167
1167
|
var _t;
|
1168
|
-
var t$1 = globalThis, i = t$1.trustedTypes, s
|
1168
|
+
var t$1 = globalThis, i$1 = t$1.trustedTypes, s = i$1 ? i$1.createPolicy("lit-html", {
|
1169
1169
|
createHTML: function(t) {
|
1170
1170
|
return t;
|
1171
1171
|
}
|
@@ -1186,14 +1186,14 @@ var t$1 = globalThis, i = t$1.trustedTypes, s$1 = i ? i.createPolicy("lit-html",
|
|
1186
1186
|
values: s
|
1187
1187
|
};
|
1188
1188
|
};
|
1189
|
-
}, x = y(1),
|
1190
|
-
function
|
1191
|
-
if (!
|
1192
|
-
return void 0 !== s
|
1189
|
+
}, x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap, C = r$2.createTreeWalker(r$2, 129);
|
1190
|
+
function P(t, i) {
|
1191
|
+
if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
1192
|
+
return void 0 !== s ? s.createHTML(i) : i;
|
1193
1193
|
}
|
1194
|
-
var
|
1194
|
+
var V = function(t, i) {
|
1195
1195
|
var s = t.length - 1, o = [];
|
1196
|
-
var r, l = 2 === i ? "<svg>" : "", c = f;
|
1196
|
+
var r, l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "", c = f;
|
1197
1197
|
for(var _$i = 0; _$i < s; _$i++){
|
1198
1198
|
var s1 = t[_$i];
|
1199
1199
|
var a = void 0, u = void 0, d = -1, y = 0;
|
@@ -1202,24 +1202,24 @@ var P = function(t, i) {
|
|
1202
1202
|
l += c === f ? s1 + n$1 : d >= 0 ? (o.push(a), s1.slice(0, d) + e + s1.slice(d) + h + x) : s1 + h + (-2 === d ? _$i : x);
|
1203
1203
|
}
|
1204
1204
|
return [
|
1205
|
-
|
1205
|
+
P(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")),
|
1206
1206
|
o
|
1207
1207
|
];
|
1208
1208
|
};
|
1209
|
-
var
|
1210
|
-
function
|
1209
|
+
var N = /*#__PURE__*/ function() {
|
1210
|
+
function N(param, n) {
|
1211
1211
|
var t = param.strings, s = param._$litType$;
|
1212
|
-
_class_call_check$1(this,
|
1212
|
+
_class_call_check$1(this, N);
|
1213
1213
|
var r;
|
1214
1214
|
this.parts = [];
|
1215
1215
|
var c = 0, a = 0;
|
1216
|
-
var u = t.length - 1, d = this.parts,
|
1217
|
-
if (this.el =
|
1216
|
+
var u = t.length - 1, d = this.parts, _V = _sliced_to_array(V(t, s), 2), f = _V[0], v = _V[1];
|
1217
|
+
if (this.el = N.createElement(f, n), C.currentNode = this.el.content, 2 === s || 3 === s) {
|
1218
1218
|
var _t;
|
1219
1219
|
var t1 = this.el.content.firstChild;
|
1220
1220
|
(_t = t1).replaceWith.apply(_t, _to_consumable_array(t1.childNodes));
|
1221
1221
|
}
|
1222
|
-
for(; null !== (r =
|
1222
|
+
for(; null !== (r = C.nextNode()) && d.length < u;){
|
1223
1223
|
if (1 === r.nodeType) {
|
1224
1224
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
1225
1225
|
if (r.hasAttributes()) try {
|
@@ -1232,7 +1232,7 @@ var V = /*#__PURE__*/ function() {
|
|
1232
1232
|
index: c,
|
1233
1233
|
name: e1[2],
|
1234
1234
|
strings: s1,
|
1235
|
-
ctor: "." === e1[1] ?
|
1235
|
+
ctor: "." === e1[1] ? H : "?" === e1[1] ? I : "@" === e1[1] ? L : k
|
1236
1236
|
}), r.removeAttribute(t2);
|
1237
1237
|
} else t2.startsWith(h) && (d.push({
|
1238
1238
|
type: 6,
|
@@ -1256,8 +1256,8 @@ var V = /*#__PURE__*/ function() {
|
|
1256
1256
|
if ($.test(r.tagName)) {
|
1257
1257
|
var t3 = r.textContent.split(h), s2 = t3.length - 1;
|
1258
1258
|
if (s2 > 0) {
|
1259
|
-
r.textContent = i ? i.emptyScript : "";
|
1260
|
-
for(var i2 = 0; i2 < s2; i2++)r.append(t3[i2], l()),
|
1259
|
+
r.textContent = i$1 ? i$1.emptyScript : "";
|
1260
|
+
for(var i2 = 0; i2 < s2; i2++)r.append(t3[i2], l()), C.nextNode(), d.push({
|
1261
1261
|
type: 2,
|
1262
1262
|
index: ++c
|
1263
1263
|
});
|
@@ -1278,7 +1278,7 @@ var V = /*#__PURE__*/ function() {
|
|
1278
1278
|
c++;
|
1279
1279
|
}
|
1280
1280
|
}
|
1281
|
-
_create_class$1(
|
1281
|
+
_create_class$1(N, null, [
|
1282
1282
|
{
|
1283
1283
|
key: "createElement",
|
1284
1284
|
value: function createElement(t, i) {
|
@@ -1287,24 +1287,24 @@ var V = /*#__PURE__*/ function() {
|
|
1287
1287
|
}
|
1288
1288
|
}
|
1289
1289
|
]);
|
1290
|
-
return
|
1290
|
+
return N;
|
1291
1291
|
}();
|
1292
|
-
function
|
1292
|
+
function S(t, i) {
|
1293
1293
|
var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : t, e = arguments.length > 3 ? arguments[3] : void 0;
|
1294
1294
|
var _s__$Co, _h__$AO;
|
1295
1295
|
var _s;
|
1296
|
-
if (i ===
|
1296
|
+
if (i === T) return i;
|
1297
1297
|
var h = void 0 !== e ? (_s__$Co = s._$Co) === null || _s__$Co === void 0 ? void 0 : _s__$Co[e] : s._$Cl;
|
1298
1298
|
var o = c(i) ? void 0 : i._$litDirective$;
|
1299
1299
|
var __$Co;
|
1300
|
-
return (h === null || h === void 0 ? void 0 : h.constructor) !== o && (h === null || h === void 0 ? void 0 : (_h__$AO = h._$AO) === null || _h__$AO === void 0 ? void 0 : _h__$AO.call(h, !1), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? ((__$Co = (_s = s)._$Co) !== null && __$Co !== void 0 ? __$Co : _s._$Co = [])[e] = h : s._$Cl = h), void 0 !== h && (i =
|
1300
|
+
return (h === null || h === void 0 ? void 0 : h.constructor) !== o && (h === null || h === void 0 ? void 0 : (_h__$AO = h._$AO) === null || _h__$AO === void 0 ? void 0 : _h__$AO.call(h, !1), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? ((__$Co = (_s = s)._$Co) !== null && __$Co !== void 0 ? __$Co : _s._$Co = [])[e] = h : s._$Cl = h), void 0 !== h && (i = S(t, h._$AS(t, i.values), h, e)), i;
|
1301
1301
|
}
|
1302
|
-
var
|
1303
|
-
function
|
1304
|
-
_class_call_check$1(this,
|
1302
|
+
var M = /*#__PURE__*/ function() {
|
1303
|
+
function M(t, i) {
|
1304
|
+
_class_call_check$1(this, M);
|
1305
1305
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
|
1306
1306
|
}
|
1307
|
-
_create_class$1(
|
1307
|
+
_create_class$1(M, [
|
1308
1308
|
{
|
1309
1309
|
key: "parentNode",
|
1310
1310
|
get: function get() {
|
@@ -1322,16 +1322,16 @@ var S = /*#__PURE__*/ function() {
|
|
1322
1322
|
value: function u(t) {
|
1323
1323
|
var _t_creationScope;
|
1324
1324
|
var _this__$AD = this._$AD, _this__$AD_el = _this__$AD.el, i = _this__$AD_el.content, s = _this__$AD.parts, e = ((_t_creationScope = t === null || t === void 0 ? void 0 : t.creationScope) !== null && _t_creationScope !== void 0 ? _t_creationScope : r$2).importNode(i, !0);
|
1325
|
-
|
1326
|
-
var h =
|
1325
|
+
C.currentNode = e;
|
1326
|
+
var h = C.nextNode(), o = 0, n = 0, l = s[0];
|
1327
1327
|
for(; void 0 !== l;){
|
1328
1328
|
if (o === l.index) {
|
1329
1329
|
var i1 = void 0;
|
1330
|
-
2 === l.type ? i1 = new
|
1330
|
+
2 === l.type ? i1 = new R(h, h.nextSibling, this, t) : 1 === l.type ? i1 = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i1 = new z(h, this, t)), this._$AV.push(i1), l = s[++n];
|
1331
1331
|
}
|
1332
|
-
o !== (l === null || l === void 0 ? void 0 : l.index) && (h =
|
1332
|
+
o !== (l === null || l === void 0 ? void 0 : l.index) && (h = C.nextNode(), o++);
|
1333
1333
|
}
|
1334
|
-
return
|
1334
|
+
return C.currentNode = r$2, e;
|
1335
1335
|
}
|
1336
1336
|
},
|
1337
1337
|
{
|
@@ -1361,15 +1361,15 @@ var S = /*#__PURE__*/ function() {
|
|
1361
1361
|
}
|
1362
1362
|
}
|
1363
1363
|
]);
|
1364
|
-
return
|
1364
|
+
return M;
|
1365
1365
|
}();
|
1366
|
-
var
|
1367
|
-
function
|
1368
|
-
_class_call_check$1(this,
|
1366
|
+
var R = /*#__PURE__*/ function() {
|
1367
|
+
function R(t, i, s, e) {
|
1368
|
+
_class_call_check$1(this, R);
|
1369
1369
|
var _e_isConnected;
|
1370
|
-
this.type = 2, this._$AH =
|
1370
|
+
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = (_e_isConnected = e === null || e === void 0 ? void 0 : e.isConnected) !== null && _e_isConnected !== void 0 ? _e_isConnected : !0;
|
1371
1371
|
}
|
1372
|
-
_create_class$1(
|
1372
|
+
_create_class$1(R, [
|
1373
1373
|
{
|
1374
1374
|
key: "_$AU",
|
1375
1375
|
get: function get() {
|
@@ -1402,35 +1402,35 @@ var M = /*#__PURE__*/ function() {
|
|
1402
1402
|
key: "_$AI",
|
1403
1403
|
value: function _$AI(t) {
|
1404
1404
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
|
1405
|
-
t =
|
1405
|
+
t = S(this, t, i), c(t) ? t === E || null == t || "" === t ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== T && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : u(t) ? this.k(t) : this._(t);
|
1406
1406
|
}
|
1407
1407
|
},
|
1408
1408
|
{
|
1409
|
-
key: "
|
1410
|
-
value: function
|
1409
|
+
key: "O",
|
1410
|
+
value: function O(t) {
|
1411
1411
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
1412
1412
|
}
|
1413
1413
|
},
|
1414
1414
|
{
|
1415
1415
|
key: "T",
|
1416
1416
|
value: function T(t) {
|
1417
|
-
this._$AH !== t && (this._$AR(), this._$AH = this.
|
1417
|
+
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
1418
1418
|
}
|
1419
1419
|
},
|
1420
1420
|
{
|
1421
1421
|
key: "_",
|
1422
1422
|
value: function _(t) {
|
1423
|
-
this._$AH !==
|
1423
|
+
this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$2.createTextNode(t)), this._$AH = t;
|
1424
1424
|
}
|
1425
1425
|
},
|
1426
1426
|
{
|
1427
1427
|
key: "$",
|
1428
1428
|
value: function $(t) {
|
1429
1429
|
var _this__$AH;
|
1430
|
-
var i = t.values, s = t._$litType$, e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el =
|
1430
|
+
var i = t.values, s = t._$litType$, e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = N.createElement(P(s.h, s.h[0]), this.options)), s);
|
1431
1431
|
if (((_this__$AH = this._$AH) === null || _this__$AH === void 0 ? void 0 : _this__$AH._$AD) === e) this._$AH.p(i);
|
1432
1432
|
else {
|
1433
|
-
var _$t = new
|
1433
|
+
var _$t = new M(e, this), s1 = _$t.u(this.options);
|
1434
1434
|
_$t.p(i), this.T(s1), this._$AH = _$t;
|
1435
1435
|
}
|
1436
1436
|
}
|
@@ -1439,7 +1439,7 @@ var M = /*#__PURE__*/ function() {
|
|
1439
1439
|
key: "_$AC",
|
1440
1440
|
value: function _$AC(t) {
|
1441
1441
|
var i = A.get(t.strings);
|
1442
|
-
return void 0 === i && A.set(t.strings, i = new
|
1442
|
+
return void 0 === i && A.set(t.strings, i = new N(t)), i;
|
1443
1443
|
}
|
1444
1444
|
},
|
1445
1445
|
{
|
@@ -1452,7 +1452,7 @@ var M = /*#__PURE__*/ function() {
|
|
1452
1452
|
try {
|
1453
1453
|
for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
1454
1454
|
var h = _step.value;
|
1455
|
-
e === i.length ? i.push(s = new
|
1455
|
+
e === i.length ? i.push(s = new R(this.O(l()), this.O(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
|
1456
1456
|
}
|
1457
1457
|
} catch (err) {
|
1458
1458
|
_didIteratorError = true;
|
@@ -1490,14 +1490,14 @@ var M = /*#__PURE__*/ function() {
|
|
1490
1490
|
}
|
1491
1491
|
}
|
1492
1492
|
]);
|
1493
|
-
return
|
1493
|
+
return R;
|
1494
1494
|
}();
|
1495
|
-
var
|
1496
|
-
function
|
1497
|
-
_class_call_check$1(this,
|
1498
|
-
this.type = 1, this._$AH =
|
1495
|
+
var k = /*#__PURE__*/ function() {
|
1496
|
+
function k(t, i, s, e, h) {
|
1497
|
+
_class_call_check$1(this, k);
|
1498
|
+
this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String), this.strings = s) : this._$AH = E;
|
1499
1499
|
}
|
1500
|
-
_create_class$1(
|
1500
|
+
_create_class$1(k, [
|
1501
1501
|
{
|
1502
1502
|
key: "tagName",
|
1503
1503
|
get: function get() {
|
@@ -1516,11 +1516,11 @@ var R = /*#__PURE__*/ function() {
|
|
1516
1516
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this, s = arguments.length > 2 ? arguments[2] : void 0, e = arguments.length > 3 ? arguments[3] : void 0;
|
1517
1517
|
var h = this.strings;
|
1518
1518
|
var o = !1;
|
1519
|
-
if (void 0 === h) t =
|
1519
|
+
if (void 0 === h) t = S(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== T, o && (this._$AH = t);
|
1520
1520
|
else {
|
1521
1521
|
var e1 = t;
|
1522
1522
|
var n, r;
|
1523
|
-
for(t = h[0], n = 0; n < h.length - 1; n++)r =
|
1523
|
+
for(t = h[0], n = 0; n < h.length - 1; n++)r = S(this, e1[s + n], i, n), r === T && (r = this._$AH[n]), o || (o = !c(r) || r !== this._$AH[n]), r === E ? t = E : t !== E && (t += (r !== null && r !== void 0 ? r : "") + h[n + 1]), this._$AH[n] = r;
|
1524
1524
|
}
|
1525
1525
|
o && !e && this.j(t);
|
1526
1526
|
}
|
@@ -1528,71 +1528,71 @@ var R = /*#__PURE__*/ function() {
|
|
1528
1528
|
{
|
1529
1529
|
key: "j",
|
1530
1530
|
value: function j(t) {
|
1531
|
-
t ===
|
1531
|
+
t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t !== null && t !== void 0 ? t : "");
|
1532
1532
|
}
|
1533
1533
|
}
|
1534
1534
|
]);
|
1535
|
-
return
|
1535
|
+
return k;
|
1536
1536
|
}();
|
1537
|
-
var
|
1538
|
-
_inherits$1(
|
1539
|
-
var _super = _create_super$1(
|
1540
|
-
function
|
1541
|
-
_class_call_check$1(this,
|
1537
|
+
var H = /*#__PURE__*/ function(k) {
|
1538
|
+
_inherits$1(H, k);
|
1539
|
+
var _super = _create_super$1(H);
|
1540
|
+
function H() {
|
1541
|
+
_class_call_check$1(this, H);
|
1542
1542
|
var _this;
|
1543
1543
|
_this = _super.call.apply(_super, [
|
1544
1544
|
this
|
1545
1545
|
].concat(Array.prototype.slice.call(arguments))), _this.type = 3;
|
1546
1546
|
return _possible_constructor_return$1(_this);
|
1547
1547
|
}
|
1548
|
-
_create_class$1(
|
1548
|
+
_create_class$1(H, [
|
1549
1549
|
{
|
1550
1550
|
key: "j",
|
1551
1551
|
value: function j(t) {
|
1552
|
-
this.element[this.name] = t ===
|
1552
|
+
this.element[this.name] = t === E ? void 0 : t;
|
1553
1553
|
}
|
1554
1554
|
}
|
1555
1555
|
]);
|
1556
|
-
return
|
1557
|
-
}(
|
1558
|
-
var
|
1559
|
-
_inherits$1(
|
1560
|
-
var _super = _create_super$1(
|
1561
|
-
function
|
1562
|
-
_class_call_check$1(this,
|
1556
|
+
return H;
|
1557
|
+
}(k);
|
1558
|
+
var I = /*#__PURE__*/ function(k) {
|
1559
|
+
_inherits$1(I, k);
|
1560
|
+
var _super = _create_super$1(I);
|
1561
|
+
function I() {
|
1562
|
+
_class_call_check$1(this, I);
|
1563
1563
|
var _this;
|
1564
1564
|
_this = _super.call.apply(_super, [
|
1565
1565
|
this
|
1566
1566
|
].concat(Array.prototype.slice.call(arguments))), _this.type = 4;
|
1567
1567
|
return _possible_constructor_return$1(_this);
|
1568
1568
|
}
|
1569
|
-
_create_class$1(
|
1569
|
+
_create_class$1(I, [
|
1570
1570
|
{
|
1571
1571
|
key: "j",
|
1572
1572
|
value: function j(t) {
|
1573
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
1573
|
+
this.element.toggleAttribute(this.name, !!t && t !== E);
|
1574
1574
|
}
|
1575
1575
|
}
|
1576
1576
|
]);
|
1577
|
-
return
|
1578
|
-
}(
|
1579
|
-
var
|
1580
|
-
_inherits$1(
|
1581
|
-
var _super = _create_super$1(
|
1582
|
-
function
|
1583
|
-
_class_call_check$1(this,
|
1577
|
+
return I;
|
1578
|
+
}(k);
|
1579
|
+
var L = /*#__PURE__*/ function(k) {
|
1580
|
+
_inherits$1(L, k);
|
1581
|
+
var _super = _create_super$1(L);
|
1582
|
+
function L(t, i, s, e, h) {
|
1583
|
+
_class_call_check$1(this, L);
|
1584
1584
|
var _this;
|
1585
1585
|
_this = _super.call(this, t, i, s, e, h), _this.type = 5;
|
1586
1586
|
return _possible_constructor_return$1(_this);
|
1587
1587
|
}
|
1588
|
-
_create_class$1(
|
1588
|
+
_create_class$1(L, [
|
1589
1589
|
{
|
1590
1590
|
key: "_$AI",
|
1591
1591
|
value: function _$AI(t) {
|
1592
1592
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
|
1593
|
-
var
|
1594
|
-
if ((t = (
|
1595
|
-
var s = this._$AH, e = t ===
|
1593
|
+
var _S;
|
1594
|
+
if ((t = (_S = S(this, t, i, 0)) !== null && _S !== void 0 ? _S : E) === T) return;
|
1595
|
+
var s = this._$AH, e = t === E && s !== E || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, h = t !== E && (s === E || e);
|
1596
1596
|
e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
1597
1597
|
}
|
1598
1598
|
},
|
@@ -1605,14 +1605,14 @@ var I = /*#__PURE__*/ function(R) {
|
|
1605
1605
|
}
|
1606
1606
|
}
|
1607
1607
|
]);
|
1608
|
-
return
|
1609
|
-
}(
|
1610
|
-
var
|
1611
|
-
function
|
1612
|
-
_class_call_check$1(this,
|
1608
|
+
return L;
|
1609
|
+
}(k);
|
1610
|
+
var z = /*#__PURE__*/ function() {
|
1611
|
+
function z(t, i, s) {
|
1612
|
+
_class_call_check$1(this, z);
|
1613
1613
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
|
1614
1614
|
}
|
1615
|
-
_create_class$1(
|
1615
|
+
_create_class$1(z, [
|
1616
1616
|
{
|
1617
1617
|
key: "_$AU",
|
1618
1618
|
get: function get() {
|
@@ -1622,23 +1622,23 @@ var L = /*#__PURE__*/ function() {
|
|
1622
1622
|
{
|
1623
1623
|
key: "_$AI",
|
1624
1624
|
value: function _$AI(t) {
|
1625
|
-
|
1625
|
+
S(this, t);
|
1626
1626
|
}
|
1627
1627
|
}
|
1628
1628
|
]);
|
1629
|
-
return
|
1629
|
+
return z;
|
1630
1630
|
}();
|
1631
|
-
var
|
1631
|
+
var j = t$1.litHtmlPolyfillSupport;
|
1632
1632
|
var _litHtmlVersions;
|
1633
|
-
|
1634
|
-
var
|
1633
|
+
j === null || j === void 0 ? void 0 : j(N, R), ((_litHtmlVersions = (_t = t$1).litHtmlVersions) !== null && _litHtmlVersions !== void 0 ? _litHtmlVersions : _t.litHtmlVersions = []).push("3.2.1");
|
1634
|
+
var B = function(t, i, s) {
|
1635
1635
|
var _s_renderBefore;
|
1636
1636
|
var e = (_s_renderBefore = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore !== void 0 ? _s_renderBefore : i;
|
1637
1637
|
var h = e._$litPart$;
|
1638
1638
|
if (void 0 === h) {
|
1639
1639
|
var _s_renderBefore1;
|
1640
1640
|
var _$t = (_s_renderBefore1 = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore1 !== void 0 ? _s_renderBefore1 : null;
|
1641
|
-
e._$litPart$ = h = new
|
1641
|
+
e._$litPart$ = h = new R(i.insertBefore(l(), _$t), _$t, void 0, s !== null && s !== void 0 ? s : {});
|
1642
1642
|
}
|
1643
1643
|
return h._$AI(t), h;
|
1644
1644
|
};
|
@@ -1757,11 +1757,11 @@ var _globalThis1;
|
|
1757
1757
|
* @license
|
1758
1758
|
* Copyright 2017 Google LLC
|
1759
1759
|
* SPDX-License-Identifier: BSD-3-Clause
|
1760
|
-
*/ var
|
1761
|
-
_inherits(
|
1762
|
-
var _super = _create_super(
|
1763
|
-
function
|
1764
|
-
_class_call_check(this,
|
1760
|
+
*/ var r$1 = /*#__PURE__*/ function(t) {
|
1761
|
+
_inherits(r, t);
|
1762
|
+
var _super = _create_super(r);
|
1763
|
+
function r() {
|
1764
|
+
_class_call_check(this, r);
|
1765
1765
|
var _this;
|
1766
1766
|
_this = _super.call.apply(_super, [
|
1767
1767
|
this
|
@@ -1770,12 +1770,12 @@ var _globalThis1;
|
|
1770
1770
|
}, _this._$Do = void 0;
|
1771
1771
|
return _possible_constructor_return(_this);
|
1772
1772
|
}
|
1773
|
-
_create_class(
|
1773
|
+
_create_class(r, [
|
1774
1774
|
{
|
1775
1775
|
key: "createRenderRoot",
|
1776
1776
|
value: function createRenderRoot() {
|
1777
1777
|
var _this_renderOptions;
|
1778
|
-
var _$t = _get(_get_prototype_of(
|
1778
|
+
var _$t = _get(_get_prototype_of(r.prototype), "createRenderRoot", this).call(this);
|
1779
1779
|
var _renderBefore;
|
1780
1780
|
return (_renderBefore = (_this_renderOptions = this.renderOptions).renderBefore) !== null && _renderBefore !== void 0 ? _renderBefore : _this_renderOptions.renderBefore = _$t.firstChild, _$t;
|
1781
1781
|
}
|
@@ -1783,42 +1783,42 @@ var _globalThis1;
|
|
1783
1783
|
{
|
1784
1784
|
key: "update",
|
1785
1785
|
value: function update(t) {
|
1786
|
-
var
|
1787
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(
|
1786
|
+
var s = this.render();
|
1787
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(r.prototype), "update", this).call(this, t), this._$Do = B(s, this.renderRoot, this.renderOptions);
|
1788
1788
|
}
|
1789
1789
|
},
|
1790
1790
|
{
|
1791
1791
|
key: "connectedCallback",
|
1792
1792
|
value: function connectedCallback() {
|
1793
1793
|
var _this__$Do;
|
1794
|
-
_get(_get_prototype_of(
|
1794
|
+
_get(_get_prototype_of(r.prototype), "connectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!0);
|
1795
1795
|
}
|
1796
1796
|
},
|
1797
1797
|
{
|
1798
1798
|
key: "disconnectedCallback",
|
1799
1799
|
value: function disconnectedCallback() {
|
1800
1800
|
var _this__$Do;
|
1801
|
-
_get(_get_prototype_of(
|
1801
|
+
_get(_get_prototype_of(r.prototype), "disconnectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!1);
|
1802
1802
|
}
|
1803
1803
|
},
|
1804
1804
|
{
|
1805
1805
|
key: "render",
|
1806
1806
|
value: function render() {
|
1807
|
-
return
|
1807
|
+
return T;
|
1808
1808
|
}
|
1809
1809
|
}
|
1810
1810
|
]);
|
1811
|
-
return
|
1811
|
+
return r;
|
1812
1812
|
}(b);
|
1813
|
-
|
1814
|
-
LitElement:
|
1813
|
+
r$1._$litElement$ = !0, r$1["finalized"] = !0, (_globalThis_litElementHydrateSupport = (_globalThis = globalThis).litElementHydrateSupport) === null || _globalThis_litElementHydrateSupport === void 0 ? void 0 : _globalThis_litElementHydrateSupport.call(_globalThis, {
|
1814
|
+
LitElement: r$1
|
1815
1815
|
});
|
1816
|
-
var
|
1817
|
-
|
1818
|
-
LitElement:
|
1816
|
+
var i = globalThis.litElementPolyfillSupport;
|
1817
|
+
i === null || i === void 0 ? void 0 : i({
|
1818
|
+
LitElement: r$1
|
1819
1819
|
});
|
1820
1820
|
var _litElementVersions;
|
1821
|
-
((_litElementVersions = (_globalThis1 = globalThis).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _globalThis1.litElementVersions = []).push("4.
|
1821
|
+
((_litElementVersions = (_globalThis1 = globalThis).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _globalThis1.litElementVersions = []).push("4.1.1");
|
1822
1822
|
|
1823
1823
|
/**
|
1824
1824
|
* @license
|
@@ -2879,7 +2879,7 @@ const schemas = {
|
|
2879
2879
|
const BASE_URL = 'https://cdn.jsdelivr.net/npm';
|
2880
2880
|
const BLOCKLY_VERSION = '10.4.3';
|
2881
2881
|
let jsonGenerator, generateBlocklyBlockFromLibraries, generateToolboxFromLibraries, initializeMutator;
|
2882
|
-
class EditorElement extends
|
2882
|
+
class EditorElement extends r$1 {
|
2883
2883
|
createRenderRoot() {
|
2884
2884
|
return this;
|
2885
2885
|
}
|