@digipair/skill-web-editor 0.113.1 → 0.114.1
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/README.md +7 -0
- package/{blockly-to-json.cjs.js → dist/blockly-to-json.cjs.js} +4 -6
- package/{blockly-to-json.esm.js → dist/blockly-to-json.esm.js} +4 -6
- package/{index.cjs2.js → dist/index.cjs.js} +155 -224
- package/{index.esm2.js → dist/index.esm.js} +156 -224
- package/{pins-to-blockly.cjs.js → dist/pins-to-blockly.cjs.js} +87 -95
- package/{pins-to-blockly.esm.js → dist/pins-to-blockly.esm.js} +87 -95
- package/{libs/skill-web-editor → dist}/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -0
- package/{libs/skill-web-editor → dist}/src/lib/blocks/json.d.ts +1 -0
- package/dist/src/lib/blocks/json.d.ts.map +1 -0
- package/{libs/skill-web-editor → dist}/src/lib/editor.element.d.ts +1 -0
- package/dist/src/lib/editor.element.d.ts.map +1 -0
- package/dist/src/lib/generator/blockly-to-json.d.ts +2 -0
- package/dist/src/lib/generator/blockly-to-json.d.ts.map +1 -0
- package/{libs/skill-web-editor → dist}/src/lib/generator/json-to-blockly.d.ts +1 -0
- package/dist/src/lib/generator/json-to-blockly.d.ts.map +1 -0
- package/{libs/skill-web-editor → dist}/src/lib/generator/pins-to-blockly.d.ts +1 -0
- package/dist/src/lib/generator/pins-to-blockly.d.ts.map +1 -0
- package/{libs/skill-web-editor → dist}/src/lib/schemas/web.fr.schema.d.ts +1 -0
- package/dist/src/lib/schemas/web.fr.schema.d.ts.map +1 -0
- package/{libs/skill-web-editor → dist}/src/lib/schemas/web.schema.d.ts +1 -0
- package/dist/src/lib/schemas/web.schema.d.ts.map +1 -0
- package/dist/src/lib/skill-web-editor.d.ts +2 -0
- package/dist/src/lib/skill-web-editor.d.ts.map +1 -0
- package/package.json +30 -5
- package/index.cjs.js +0 -12
- package/index.d.ts +0 -1
- package/index.esm.js +0 -1
- package/libs/skill-web-editor/src/lib/generator/blockly-to-json.d.ts +0 -1
- package/libs/skill-web-editor/src/lib/skill-web-editor.d.ts +0 -1
- /package/{index.cjs.d.ts → dist/index.d.ts} +0 -0
- /package/{schema.fr.json → dist/schema.fr.json} +0 -0
- /package/{schema.json → dist/schema.json} +0 -0
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
function _extends() {
|
|
4
|
-
_extends = Object.assign || function assign(target) {
|
|
5
|
-
for(var i = 1; i < arguments.length; i++){
|
|
6
|
-
var source = arguments[i];
|
|
7
|
-
for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
8
|
-
}
|
|
9
|
-
return target;
|
|
10
|
-
};
|
|
11
|
-
return _extends.apply(this, arguments);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
3
|
function __decorate(decorators, target, key, desc) {
|
|
15
4
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
5
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -20,7 +9,7 @@ function __decorate(decorators, target, key, desc) {
|
|
|
20
9
|
function __metadata(metadataKey, metadataValue) {
|
|
21
10
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
22
11
|
}
|
|
23
|
-
typeof SuppressedError === "function" ? SuppressedError : function
|
|
12
|
+
typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
24
13
|
var e = new Error(message);
|
|
25
14
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
26
15
|
};
|
|
@@ -45,7 +34,6 @@ function _defineProperties$3(target, props) {
|
|
|
45
34
|
}
|
|
46
35
|
function _create_class$3(Constructor, protoProps, staticProps) {
|
|
47
36
|
if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
|
|
48
|
-
if (staticProps) _defineProperties$3(Constructor, staticProps);
|
|
49
37
|
return Constructor;
|
|
50
38
|
}
|
|
51
39
|
function _instanceof(left, right) {
|
|
@@ -55,11 +43,11 @@ function _instanceof(left, right) {
|
|
|
55
43
|
return left instanceof right;
|
|
56
44
|
}
|
|
57
45
|
}
|
|
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$
|
|
46
|
+
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$2 = Symbol(), o$4 = new WeakMap;
|
|
59
47
|
var n$3 = /*#__PURE__*/ function() {
|
|
60
48
|
function n(t, e, o) {
|
|
61
49
|
_class_call_check$3(this, n);
|
|
62
|
-
if (this._$cssResult$ =
|
|
50
|
+
if (this._$cssResult$ = true, o !== s$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
63
51
|
this.cssText = t, this.t = e;
|
|
64
52
|
}
|
|
65
53
|
_create_class$3(n, [
|
|
@@ -70,7 +58,7 @@ var n$3 = /*#__PURE__*/ function() {
|
|
|
70
58
|
var s = this.t;
|
|
71
59
|
if (e$2 && void 0 === t) {
|
|
72
60
|
var e1 = void 0 !== s && 1 === s.length;
|
|
73
|
-
e1 && (t = o$
|
|
61
|
+
e1 && (t = o$4.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet).replaceSync(this.cssText), e1 && o$4.set(s, t));
|
|
74
62
|
}
|
|
75
63
|
return t;
|
|
76
64
|
}
|
|
@@ -84,8 +72,8 @@ var n$3 = /*#__PURE__*/ function() {
|
|
|
84
72
|
]);
|
|
85
73
|
return n;
|
|
86
74
|
}();
|
|
87
|
-
var r$
|
|
88
|
-
return new n$3("string" == typeof t ? t : t + "", void 0, s$
|
|
75
|
+
var r$3 = function(t) {
|
|
76
|
+
return new n$3("string" == typeof t ? t : t + "", void 0, s$2);
|
|
89
77
|
}, S$1 = function(s, o) {
|
|
90
78
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
91
79
|
if (e$2) s.adoptedStyleSheets = o.map(function(t) {
|
|
@@ -136,7 +124,7 @@ var r$4 = function(t) {
|
|
|
136
124
|
}
|
|
137
125
|
}
|
|
138
126
|
}
|
|
139
|
-
return r$
|
|
127
|
+
return r$3(e);
|
|
140
128
|
}(t) : t;
|
|
141
129
|
};
|
|
142
130
|
|
|
@@ -278,7 +266,7 @@ function _non_iterable_spread$1() {
|
|
|
278
266
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
279
267
|
}
|
|
280
268
|
function _possible_constructor_return$2(self, call) {
|
|
281
|
-
if (call && (_type_of$
|
|
269
|
+
if (call && (_type_of$3(call) === "object" || typeof call === "function")) {
|
|
282
270
|
return call;
|
|
283
271
|
}
|
|
284
272
|
return _assert_this_initialized$2(self);
|
|
@@ -296,7 +284,7 @@ function _sliced_to_array$1(arr, i) {
|
|
|
296
284
|
function _to_consumable_array$1(arr) {
|
|
297
285
|
return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$1(arr) || _non_iterable_spread$1();
|
|
298
286
|
}
|
|
299
|
-
function _type_of$
|
|
287
|
+
function _type_of$3(obj) {
|
|
300
288
|
"@swc/helpers - typeof";
|
|
301
289
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
302
290
|
}
|
|
@@ -458,7 +446,7 @@ var _Symbol, _a, _a1;
|
|
|
458
446
|
* @license
|
|
459
447
|
* Copyright 2017 Google LLC
|
|
460
448
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
461
|
-
*/ var i$2 = Object.is, e$1 = Object.defineProperty,
|
|
449
|
+
*/ var i$2 = Object.is, e$1 = Object.defineProperty, h$1 = Object.getOwnPropertyDescriptor, r$2 = Object.getOwnPropertyNames, o$3 = 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
450
|
return t;
|
|
463
451
|
}, u$1 = {
|
|
464
452
|
toAttribute: function toAttribute(t, s) {
|
|
@@ -493,25 +481,26 @@ var _Symbol, _a, _a1;
|
|
|
493
481
|
}
|
|
494
482
|
}, f$1 = function(t, s) {
|
|
495
483
|
return !i$2(t, s);
|
|
496
|
-
},
|
|
497
|
-
attribute:
|
|
484
|
+
}, b = {
|
|
485
|
+
attribute: true,
|
|
498
486
|
type: String,
|
|
499
487
|
converter: u$1,
|
|
500
|
-
reflect:
|
|
488
|
+
reflect: false,
|
|
489
|
+
useDefault: false,
|
|
501
490
|
hasChanged: f$1
|
|
502
491
|
};
|
|
503
492
|
var _metadata, _litPropertyMetadata;
|
|
504
493
|
(_metadata = (_Symbol = Symbol).metadata) !== null && _metadata !== void 0 ? _metadata : _Symbol.metadata = Symbol("metadata"), (_litPropertyMetadata = (_a = a$1).litPropertyMetadata) !== null && _litPropertyMetadata !== void 0 ? _litPropertyMetadata : _a.litPropertyMetadata = new WeakMap;
|
|
505
|
-
var
|
|
506
|
-
_inherits$2(
|
|
507
|
-
var _super = _create_super$2(
|
|
508
|
-
function
|
|
509
|
-
_class_call_check$2(this,
|
|
494
|
+
var y$1 = /*#__PURE__*/ function(HTMLElement1) {
|
|
495
|
+
_inherits$2(y, HTMLElement1);
|
|
496
|
+
var _super = _create_super$2(y);
|
|
497
|
+
function y() {
|
|
498
|
+
_class_call_check$2(this, y);
|
|
510
499
|
var _this;
|
|
511
|
-
_this = _super.call(this), _this._$Ep = void 0, _this.isUpdatePending =
|
|
500
|
+
_this = _super.call(this), _this._$Ep = void 0, _this.isUpdatePending = false, _this.hasUpdated = false, _this._$Em = null, _this._$Ev();
|
|
512
501
|
return _possible_constructor_return$2(_this);
|
|
513
502
|
}
|
|
514
|
-
_create_class$2(
|
|
503
|
+
_create_class$2(y, [
|
|
515
504
|
{
|
|
516
505
|
key: "_$Ev",
|
|
517
506
|
value: function _$Ev() {
|
|
@@ -579,7 +568,7 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
579
568
|
value: function connectedCallback() {
|
|
580
569
|
var _this__$EO;
|
|
581
570
|
var _this_renderRoot;
|
|
582
|
-
(_this_renderRoot = this.renderRoot) !== null && _this_renderRoot !== void 0 ? _this_renderRoot : this.renderRoot = this.createRenderRoot(), this.enableUpdating(
|
|
571
|
+
(_this_renderRoot = this.renderRoot) !== null && _this_renderRoot !== void 0 ? _this_renderRoot : this.renderRoot = this.createRenderRoot(), this.enableUpdating(true), (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
|
|
583
572
|
var _t_hostConnected;
|
|
584
573
|
return (_t_hostConnected = t.hostConnected) === null || _t_hostConnected === void 0 ? void 0 : _t_hostConnected.call(t);
|
|
585
574
|
});
|
|
@@ -606,13 +595,13 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
606
595
|
}
|
|
607
596
|
},
|
|
608
597
|
{
|
|
609
|
-
key: "_$
|
|
610
|
-
value: function _$
|
|
598
|
+
key: "_$ET",
|
|
599
|
+
value: function _$ET(t, s) {
|
|
611
600
|
var i = this.constructor.elementProperties.get(t), e = this.constructor._$Eu(t, i);
|
|
612
|
-
if (void 0 !== e &&
|
|
601
|
+
if (void 0 !== e && true === i.reflect) {
|
|
613
602
|
var _i_converter;
|
|
614
|
-
var
|
|
615
|
-
this._$Em = t, null ==
|
|
603
|
+
var h = (void 0 !== ((_i_converter = i.converter) === null || _i_converter === void 0 ? void 0 : _i_converter.toAttribute) ? i.converter : u$1).toAttribute(s, i.type);
|
|
604
|
+
this._$Em = t, null == h ? this.removeAttribute(e) : this.setAttribute(e, h), this._$Em = null;
|
|
616
605
|
}
|
|
617
606
|
}
|
|
618
607
|
},
|
|
@@ -621,11 +610,14 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
621
610
|
value: function _$AK(t, s) {
|
|
622
611
|
var i = this.constructor, e = i._$Eh.get(t);
|
|
623
612
|
if (void 0 !== e && this._$Em !== e) {
|
|
624
|
-
var _t_converter;
|
|
625
|
-
var _$t = i.getPropertyOptions(e),
|
|
613
|
+
var _t_converter, _this__$Ej;
|
|
614
|
+
var _$t = i.getPropertyOptions(e), h = "function" == typeof _$t.converter ? {
|
|
626
615
|
fromAttribute: _$t.converter
|
|
627
616
|
} : void 0 !== ((_t_converter = _$t.converter) === null || _t_converter === void 0 ? void 0 : _t_converter.fromAttribute) ? _$t.converter : u$1;
|
|
628
|
-
this._$Em = e
|
|
617
|
+
this._$Em = e;
|
|
618
|
+
var r = h.fromAttribute(s, _$t.type);
|
|
619
|
+
var _ref;
|
|
620
|
+
this[e] = (_ref = r !== null && r !== void 0 ? r : (_this__$Ej = this._$Ej) === null || _this__$Ej === void 0 ? void 0 : _this__$Ej.get(e)) !== null && _ref !== void 0 ? _ref : r, this._$Em = null;
|
|
629
621
|
}
|
|
630
622
|
}
|
|
631
623
|
},
|
|
@@ -633,30 +625,33 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
633
625
|
key: "requestUpdate",
|
|
634
626
|
value: function requestUpdate(t, s, i) {
|
|
635
627
|
if (void 0 !== t) {
|
|
628
|
+
var _this__$Ej;
|
|
629
|
+
var e = this.constructor, h = this[t];
|
|
636
630
|
var _i_hasChanged;
|
|
637
|
-
if (i !== null && i !== void 0 ? i : i =
|
|
638
|
-
this.
|
|
631
|
+
if (i !== null && i !== void 0 ? i : i = e.getPropertyOptions(t), !(((_i_hasChanged = i.hasChanged) !== null && _i_hasChanged !== void 0 ? _i_hasChanged : f$1)(h, s) || i.useDefault && i.reflect && h === ((_this__$Ej = this._$Ej) === null || _this__$Ej === void 0 ? void 0 : _this__$Ej.get(t)) && !this.hasAttribute(e._$Eu(t, i)))) return;
|
|
632
|
+
this.C(t, s, i);
|
|
639
633
|
}
|
|
640
|
-
|
|
634
|
+
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
641
635
|
}
|
|
642
636
|
},
|
|
643
637
|
{
|
|
644
|
-
key: "
|
|
645
|
-
value: function
|
|
646
|
-
var
|
|
647
|
-
|
|
638
|
+
key: "C",
|
|
639
|
+
value: function C(t, s, param, r) {
|
|
640
|
+
var i = param.useDefault, e = param.reflect, h = param.wrapped;
|
|
641
|
+
var _this__$Ej, _ref, _this__$Eq;
|
|
642
|
+
i && !((_this__$Ej = this._$Ej) !== null && _this__$Ej !== void 0 ? _this__$Ej : this._$Ej = new Map).has(t) && (this._$Ej.set(t, (_ref = r !== null && r !== void 0 ? r : s) !== null && _ref !== void 0 ? _ref : this[t]), true !== h || void 0 !== r) || (this._$AL.has(t) || (this.hasUpdated || i || (s = void 0), this._$AL.set(t, s)), true === e && this._$Em !== t && ((_this__$Eq = this._$Eq) !== null && _this__$Eq !== void 0 ? _this__$Eq : this._$Eq = new Set).add(t));
|
|
648
643
|
}
|
|
649
644
|
},
|
|
650
645
|
{
|
|
651
|
-
key: "_$
|
|
652
|
-
value: function _$
|
|
646
|
+
key: "_$EP",
|
|
647
|
+
value: function _$EP() {
|
|
653
648
|
var _this = this;
|
|
654
649
|
return _async_to_generator(function() {
|
|
655
650
|
var t, _$t, _tmp;
|
|
656
651
|
return _ts_generator(this, function(_state) {
|
|
657
652
|
switch(_state.label){
|
|
658
653
|
case 0:
|
|
659
|
-
_this.isUpdatePending =
|
|
654
|
+
_this.isUpdatePending = true;
|
|
660
655
|
_state.label = 1;
|
|
661
656
|
case 1:
|
|
662
657
|
_state.trys.push([
|
|
@@ -746,7 +741,8 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
746
741
|
if (t1.size > 0) try {
|
|
747
742
|
for(var _iterator1 = t1[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
748
743
|
var _step_value1 = _sliced_to_array$1(_step1.value, 2), _$s1 = _step_value1[0], i = _step_value1[1];
|
|
749
|
-
|
|
744
|
+
var t2 = i.wrapped, e = this[_$s1];
|
|
745
|
+
!0 !== t2 || this._$AL.has(_$s1) || void 0 === e || this.C(_$s1, void 0, i, e);
|
|
750
746
|
}
|
|
751
747
|
} catch (err) {
|
|
752
748
|
_didIteratorError1 = true;
|
|
@@ -763,18 +759,18 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
763
759
|
}
|
|
764
760
|
}
|
|
765
761
|
}
|
|
766
|
-
var
|
|
762
|
+
var t3 = false;
|
|
767
763
|
var _$s2 = this._$AL;
|
|
768
764
|
try {
|
|
769
765
|
var _this__$EO;
|
|
770
|
-
|
|
766
|
+
t3 = this.shouldUpdate(_$s2), t3 ? (this.willUpdate(_$s2), (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
|
|
771
767
|
var _t_hostUpdate;
|
|
772
768
|
return (_t_hostUpdate = t.hostUpdate) === null || _t_hostUpdate === void 0 ? void 0 : _t_hostUpdate.call(t);
|
|
773
|
-
}), this.update(_$s2)) : this._$
|
|
769
|
+
}), this.update(_$s2)) : this._$EM();
|
|
774
770
|
} catch (s) {
|
|
775
|
-
throw
|
|
771
|
+
throw t3 = false, this._$EM(), s;
|
|
776
772
|
}
|
|
777
|
-
|
|
773
|
+
t3 && this._$AE(_$s2);
|
|
778
774
|
}
|
|
779
775
|
},
|
|
780
776
|
{
|
|
@@ -788,13 +784,13 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
788
784
|
(_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
|
|
789
785
|
var _t_hostUpdated;
|
|
790
786
|
return (_t_hostUpdated = t.hostUpdated) === null || _t_hostUpdated === void 0 ? void 0 : _t_hostUpdated.call(t);
|
|
791
|
-
}), this.hasUpdated || (this.hasUpdated =
|
|
787
|
+
}), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t)), this.updated(t);
|
|
792
788
|
}
|
|
793
789
|
},
|
|
794
790
|
{
|
|
795
|
-
key: "_$
|
|
796
|
-
value: function _$
|
|
797
|
-
this._$AL = new Map, this.isUpdatePending =
|
|
791
|
+
key: "_$EM",
|
|
792
|
+
value: function _$EM() {
|
|
793
|
+
this._$AL = new Map, this.isUpdatePending = false;
|
|
798
794
|
}
|
|
799
795
|
},
|
|
800
796
|
{
|
|
@@ -812,16 +808,16 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
812
808
|
{
|
|
813
809
|
key: "shouldUpdate",
|
|
814
810
|
value: function shouldUpdate(t) {
|
|
815
|
-
return
|
|
811
|
+
return true;
|
|
816
812
|
}
|
|
817
813
|
},
|
|
818
814
|
{
|
|
819
815
|
key: "update",
|
|
820
816
|
value: function update(t) {
|
|
821
817
|
var _this = this;
|
|
822
|
-
this._$
|
|
823
|
-
return _this._$
|
|
824
|
-
})), this._$
|
|
818
|
+
this._$Eq && (this._$Eq = this._$Eq.forEach(function(t) {
|
|
819
|
+
return _this._$ET(t, _this[t]);
|
|
820
|
+
})), this._$EM();
|
|
825
821
|
}
|
|
826
822
|
},
|
|
827
823
|
{
|
|
@@ -849,35 +845,33 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
849
845
|
{
|
|
850
846
|
key: "createProperty",
|
|
851
847
|
value: function createProperty(t) {
|
|
852
|
-
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
853
|
-
if (s.state && (s.attribute =
|
|
854
|
-
var i = Symbol(),
|
|
855
|
-
void 0 !==
|
|
848
|
+
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : b;
|
|
849
|
+
if (s.state && (s.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t) && ((s = Object.create(s)).wrapped = true), this.elementProperties.set(t, s), !s.noAccessor) {
|
|
850
|
+
var i = Symbol(), h = this.getPropertyDescriptor(t, i, s);
|
|
851
|
+
void 0 !== h && e$1(this.prototype, t, h);
|
|
856
852
|
}
|
|
857
853
|
}
|
|
858
854
|
},
|
|
859
855
|
{
|
|
860
856
|
key: "getPropertyDescriptor",
|
|
861
857
|
value: function getPropertyDescriptor(t, s, i) {
|
|
862
|
-
var
|
|
863
|
-
var _ref = (
|
|
858
|
+
var _h;
|
|
859
|
+
var _ref = (_h = h$1(this.prototype, t)) !== null && _h !== void 0 ? _h : {
|
|
864
860
|
get: function get() {
|
|
865
861
|
return this[s];
|
|
866
862
|
},
|
|
867
863
|
set: function set(t) {
|
|
868
864
|
this[s] = t;
|
|
869
865
|
}
|
|
870
|
-
}, e = _ref.get,
|
|
866
|
+
}, e = _ref.get, r = _ref.set;
|
|
871
867
|
return {
|
|
872
|
-
get:
|
|
873
|
-
return e === null || e === void 0 ? void 0 : e.call(this);
|
|
874
|
-
},
|
|
868
|
+
get: e,
|
|
875
869
|
set: function set(s) {
|
|
876
|
-
var
|
|
877
|
-
|
|
870
|
+
var h = e === null || e === void 0 ? void 0 : e.call(this);
|
|
871
|
+
r === null || r === void 0 ? void 0 : r.call(this, s), this.requestUpdate(t, h, i);
|
|
878
872
|
},
|
|
879
|
-
configurable:
|
|
880
|
-
enumerable:
|
|
873
|
+
configurable: true,
|
|
874
|
+
enumerable: true
|
|
881
875
|
};
|
|
882
876
|
}
|
|
883
877
|
},
|
|
@@ -885,7 +879,7 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
885
879
|
key: "getPropertyOptions",
|
|
886
880
|
value: function getPropertyOptions(t) {
|
|
887
881
|
var _this_elementProperties_get;
|
|
888
|
-
return (_this_elementProperties_get = this.elementProperties.get(t)) !== null && _this_elementProperties_get !== void 0 ? _this_elementProperties_get :
|
|
882
|
+
return (_this_elementProperties_get = this.elementProperties.get(t)) !== null && _this_elementProperties_get !== void 0 ? _this_elementProperties_get : b;
|
|
889
883
|
}
|
|
890
884
|
},
|
|
891
885
|
{
|
|
@@ -900,8 +894,8 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
900
894
|
key: "finalize",
|
|
901
895
|
value: function finalize() {
|
|
902
896
|
if (this.hasOwnProperty(d$1("finalized"))) return;
|
|
903
|
-
if (this.finalized =
|
|
904
|
-
var t = this.properties, s = _to_consumable_array$1(
|
|
897
|
+
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
|
|
898
|
+
var t = this.properties, s = _to_consumable_array$1(r$2(t)).concat(_to_consumable_array$1(o$3(t)));
|
|
905
899
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
906
900
|
try {
|
|
907
901
|
for(var _iterator = s[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
@@ -1006,18 +1000,18 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
1006
1000
|
key: "_$Eu",
|
|
1007
1001
|
value: function _$Eu(t, s) {
|
|
1008
1002
|
var i = s.attribute;
|
|
1009
|
-
return
|
|
1003
|
+
return false === i ? void 0 : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : void 0;
|
|
1010
1004
|
}
|
|
1011
1005
|
}
|
|
1012
1006
|
]);
|
|
1013
|
-
return
|
|
1007
|
+
return y;
|
|
1014
1008
|
}(_wrap_native_super(HTMLElement));
|
|
1015
1009
|
var _reactiveElementVersions;
|
|
1016
|
-
|
|
1010
|
+
y$1.elementStyles = [], y$1.shadowRootOptions = {
|
|
1017
1011
|
mode: "open"
|
|
1018
|
-
},
|
|
1019
|
-
ReactiveElement:
|
|
1020
|
-
}), ((_reactiveElementVersions = (_a1 = a$1).reactiveElementVersions) !== null && _reactiveElementVersions !== void 0 ? _reactiveElementVersions : _a1.reactiveElementVersions = []).push("2.
|
|
1012
|
+
}, y$1[d$1("elementProperties")] = new Map, y$1[d$1("finalized")] = new Map, p$1 === null || p$1 === void 0 ? void 0 : p$1({
|
|
1013
|
+
ReactiveElement: y$1
|
|
1014
|
+
}), ((_reactiveElementVersions = (_a1 = a$1).reactiveElementVersions) !== null && _reactiveElementVersions !== void 0 ? _reactiveElementVersions : _a1.reactiveElementVersions = []).push("2.1.1");
|
|
1021
1015
|
|
|
1022
1016
|
/**
|
|
1023
1017
|
* @license
|
|
@@ -1112,7 +1106,7 @@ function _non_iterable_spread() {
|
|
|
1112
1106
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1113
1107
|
}
|
|
1114
1108
|
function _possible_constructor_return$1(self, call) {
|
|
1115
|
-
if (call && (_type_of$
|
|
1109
|
+
if (call && (_type_of$2(call) === "object" || typeof call === "function")) {
|
|
1116
1110
|
return call;
|
|
1117
1111
|
}
|
|
1118
1112
|
return _assert_this_initialized$1(self);
|
|
@@ -1130,7 +1124,7 @@ function _sliced_to_array(arr, i) {
|
|
|
1130
1124
|
function _to_consumable_array(arr) {
|
|
1131
1125
|
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
1132
1126
|
}
|
|
1133
|
-
function _type_of$
|
|
1127
|
+
function _type_of$2(obj) {
|
|
1134
1128
|
"@swc/helpers - typeof";
|
|
1135
1129
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
1136
1130
|
}
|
|
@@ -1167,17 +1161,17 @@ function _create_super$1(Derived) {
|
|
|
1167
1161
|
};
|
|
1168
1162
|
}
|
|
1169
1163
|
var _t;
|
|
1170
|
-
var t$1 = globalThis, i$1 = t$1.trustedTypes, s = i$1 ? i$1.createPolicy("lit-html", {
|
|
1164
|
+
var t$1 = globalThis, i$1 = t$1.trustedTypes, s$1 = i$1 ? i$1.createPolicy("lit-html", {
|
|
1171
1165
|
createHTML: function(t) {
|
|
1172
1166
|
return t;
|
|
1173
1167
|
}
|
|
1174
|
-
}) : void 0, e = "$lit$", h = "lit$".concat(Math.random().toFixed(9).slice(2), "$"), o$
|
|
1175
|
-
return r$
|
|
1168
|
+
}) : void 0, e = "$lit$", h = "lit$".concat(Math.random().toFixed(9).slice(2), "$"), o$2 = "?" + h, n$1 = "<".concat(o$2, ">"), r$1 = document, l = function() {
|
|
1169
|
+
return r$1.createComment("");
|
|
1176
1170
|
}, c = function(t) {
|
|
1177
|
-
return null === t || "object" != typeof t && "function" != typeof t;
|
|
1171
|
+
return null === t || "object" != (typeof t === "undefined" ? "undefined" : _type_of$2(t)) && "function" != typeof t;
|
|
1178
1172
|
}, a = Array.isArray, u = function(t) {
|
|
1179
1173
|
return a(t) || "function" == typeof (t === null || t === void 0 ? void 0 : t[Symbol.iterator]);
|
|
1180
|
-
}, d = "[
|
|
1174
|
+
}, d = "[ \t\n\f\r]", f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v = /-->/g, _ = />/g, m = RegExp(">|".concat(d, "(?:([^\\s\"'>=/]+)(").concat(d, "*=").concat(d, "*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)"), "g"), p = /'/g, g = /"/g, $ = /^(?:script|style|textarea|title)$/i, y = function(t) {
|
|
1181
1175
|
return function(i) {
|
|
1182
1176
|
for(var _len = arguments.length, s = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
|
|
1183
1177
|
s[_key - 1] = arguments[_key];
|
|
@@ -1188,10 +1182,10 @@ var t$1 = globalThis, i$1 = t$1.trustedTypes, s = i$1 ? i$1.createPolicy("lit-ht
|
|
|
1188
1182
|
values: s
|
|
1189
1183
|
};
|
|
1190
1184
|
};
|
|
1191
|
-
}, x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap, C = r$
|
|
1185
|
+
}, x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap, C = r$1.createTreeWalker(r$1, 129);
|
|
1192
1186
|
function P(t, i) {
|
|
1193
1187
|
if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1194
|
-
return void 0 !== s ? s.createHTML(i) : i;
|
|
1188
|
+
return void 0 !== s$1 ? s$1.createHTML(i) : i;
|
|
1195
1189
|
}
|
|
1196
1190
|
var V = function(t, i) {
|
|
1197
1191
|
var s = t.length - 1, o = [];
|
|
@@ -1266,7 +1260,7 @@ var N = /*#__PURE__*/ function() {
|
|
|
1266
1260
|
r.append(t3[s2], l());
|
|
1267
1261
|
}
|
|
1268
1262
|
}
|
|
1269
|
-
} else if (8 === r.nodeType) if (r.data === o$
|
|
1263
|
+
} else if (8 === r.nodeType) if (r.data === o$2) d.push({
|
|
1270
1264
|
type: 2,
|
|
1271
1265
|
index: c
|
|
1272
1266
|
});
|
|
@@ -1284,7 +1278,7 @@ var N = /*#__PURE__*/ function() {
|
|
|
1284
1278
|
{
|
|
1285
1279
|
key: "createElement",
|
|
1286
1280
|
value: function createElement(t, i) {
|
|
1287
|
-
var s = r$
|
|
1281
|
+
var s = r$1.createElement("template");
|
|
1288
1282
|
return s.innerHTML = t, s;
|
|
1289
1283
|
}
|
|
1290
1284
|
}
|
|
@@ -1299,7 +1293,7 @@ function S(t, i) {
|
|
|
1299
1293
|
var h = void 0 !== e ? (_s__$Co = s._$Co) === null || _s__$Co === void 0 ? void 0 : _s__$Co[e] : s._$Cl;
|
|
1300
1294
|
var o = c(i) ? void 0 : i._$litDirective$;
|
|
1301
1295
|
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,
|
|
1296
|
+
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, false), 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
1297
|
}
|
|
1304
1298
|
var M = /*#__PURE__*/ function() {
|
|
1305
1299
|
function M(t, i) {
|
|
@@ -1323,7 +1317,7 @@ var M = /*#__PURE__*/ function() {
|
|
|
1323
1317
|
key: "u",
|
|
1324
1318
|
value: function u(t) {
|
|
1325
1319
|
var _t_creationScope;
|
|
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$
|
|
1320
|
+
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$1).importNode(i, true);
|
|
1327
1321
|
C.currentNode = e;
|
|
1328
1322
|
var h = C.nextNode(), o = 0, n = 0, l = s[0];
|
|
1329
1323
|
for(; void 0 !== l;){
|
|
@@ -1333,7 +1327,7 @@ var M = /*#__PURE__*/ function() {
|
|
|
1333
1327
|
}
|
|
1334
1328
|
o !== (l === null || l === void 0 ? void 0 : l.index) && (h = C.nextNode(), o++);
|
|
1335
1329
|
}
|
|
1336
|
-
return C.currentNode = r$
|
|
1330
|
+
return C.currentNode = r$1, e;
|
|
1337
1331
|
}
|
|
1338
1332
|
},
|
|
1339
1333
|
{
|
|
@@ -1369,7 +1363,7 @@ var R = /*#__PURE__*/ function() {
|
|
|
1369
1363
|
function R(t, i, s, e) {
|
|
1370
1364
|
_class_call_check$1(this, R);
|
|
1371
1365
|
var _e_isConnected;
|
|
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 :
|
|
1366
|
+
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 : true;
|
|
1373
1367
|
}
|
|
1374
1368
|
_create_class$1(R, [
|
|
1375
1369
|
{
|
|
@@ -1422,7 +1416,7 @@ var R = /*#__PURE__*/ function() {
|
|
|
1422
1416
|
{
|
|
1423
1417
|
key: "_",
|
|
1424
1418
|
value: function _(t) {
|
|
1425
|
-
this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$
|
|
1419
|
+
this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$1.createTextNode(t)), this._$AH = t;
|
|
1426
1420
|
}
|
|
1427
1421
|
},
|
|
1428
1422
|
{
|
|
@@ -1478,7 +1472,7 @@ var R = /*#__PURE__*/ function() {
|
|
|
1478
1472
|
value: function _$AR() {
|
|
1479
1473
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this._$AA.nextSibling, i = arguments.length > 1 ? arguments[1] : void 0;
|
|
1480
1474
|
var _this__$AP, _this;
|
|
1481
|
-
for((_this__$AP = (_this = this)._$AP) === null || _this__$AP === void 0 ? void 0 : _this__$AP.call(_this,
|
|
1475
|
+
for((_this__$AP = (_this = this)._$AP) === null || _this__$AP === void 0 ? void 0 : _this__$AP.call(_this, false, true, i); t !== this._$AB;){
|
|
1482
1476
|
var i1 = t.nextSibling;
|
|
1483
1477
|
t.remove(), t = i1;
|
|
1484
1478
|
}
|
|
@@ -1517,7 +1511,7 @@ var k = /*#__PURE__*/ function() {
|
|
|
1517
1511
|
value: function _$AI(t) {
|
|
1518
1512
|
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
1513
|
var h = this.strings;
|
|
1520
|
-
var o =
|
|
1514
|
+
var o = false;
|
|
1521
1515
|
if (void 0 === h) t = S(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== T, o && (this._$AH = t);
|
|
1522
1516
|
else {
|
|
1523
1517
|
var e1 = t;
|
|
@@ -1632,7 +1626,7 @@ var z = /*#__PURE__*/ function() {
|
|
|
1632
1626
|
}();
|
|
1633
1627
|
var j = t$1.litHtmlPolyfillSupport;
|
|
1634
1628
|
var _litHtmlVersions;
|
|
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.
|
|
1629
|
+
j === null || j === void 0 ? void 0 : j(N, R), ((_litHtmlVersions = (_t = t$1).litHtmlVersions) !== null && _litHtmlVersions !== void 0 ? _litHtmlVersions : _t.litHtmlVersions = []).push("3.3.1");
|
|
1636
1630
|
var B = function(t, i, s) {
|
|
1637
1631
|
var _s_renderBefore;
|
|
1638
1632
|
var e = (_s_renderBefore = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore !== void 0 ? _s_renderBefore : i;
|
|
@@ -1667,7 +1661,6 @@ function _defineProperties(target, props) {
|
|
|
1667
1661
|
}
|
|
1668
1662
|
function _create_class(Constructor, protoProps, staticProps) {
|
|
1669
1663
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
1670
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
1671
1664
|
return Constructor;
|
|
1672
1665
|
}
|
|
1673
1666
|
function _get(target, property, receiver) {
|
|
@@ -1706,7 +1699,7 @@ function _inherits(subClass, superClass) {
|
|
|
1706
1699
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
1707
1700
|
}
|
|
1708
1701
|
function _possible_constructor_return(self, call) {
|
|
1709
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
1702
|
+
if (call && (_type_of$1(call) === "object" || typeof call === "function")) {
|
|
1710
1703
|
return call;
|
|
1711
1704
|
}
|
|
1712
1705
|
return _assert_this_initialized(self);
|
|
@@ -1725,7 +1718,7 @@ function _super_prop_base(object, property) {
|
|
|
1725
1718
|
}
|
|
1726
1719
|
return object;
|
|
1727
1720
|
}
|
|
1728
|
-
function _type_of(obj) {
|
|
1721
|
+
function _type_of$1(obj) {
|
|
1729
1722
|
"@swc/helpers - typeof";
|
|
1730
1723
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
1731
1724
|
}
|
|
@@ -1753,17 +1746,18 @@ function _create_super(Derived) {
|
|
|
1753
1746
|
return _possible_constructor_return(this, result);
|
|
1754
1747
|
};
|
|
1755
1748
|
}
|
|
1756
|
-
var
|
|
1757
|
-
var
|
|
1749
|
+
var _s_litElementHydrateSupport;
|
|
1750
|
+
var _s;
|
|
1758
1751
|
/**
|
|
1759
1752
|
* @license
|
|
1760
1753
|
* Copyright 2017 Google LLC
|
|
1761
1754
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1762
|
-
*/ var
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1755
|
+
*/ var s = globalThis;
|
|
1756
|
+
var i = /*#__PURE__*/ function(t) {
|
|
1757
|
+
_inherits(i, t);
|
|
1758
|
+
var _super = _create_super(i);
|
|
1759
|
+
function i() {
|
|
1760
|
+
_class_call_check(this, i);
|
|
1767
1761
|
var _this;
|
|
1768
1762
|
_this = _super.call.apply(_super, [
|
|
1769
1763
|
this
|
|
@@ -1772,12 +1766,12 @@ var _globalThis1;
|
|
|
1772
1766
|
}, _this._$Do = void 0;
|
|
1773
1767
|
return _possible_constructor_return(_this);
|
|
1774
1768
|
}
|
|
1775
|
-
_create_class(
|
|
1769
|
+
_create_class(i, [
|
|
1776
1770
|
{
|
|
1777
1771
|
key: "createRenderRoot",
|
|
1778
1772
|
value: function createRenderRoot() {
|
|
1779
1773
|
var _this_renderOptions;
|
|
1780
|
-
var _$t = _get(_get_prototype_of(
|
|
1774
|
+
var _$t = _get(_get_prototype_of(i.prototype), "createRenderRoot", this).call(this);
|
|
1781
1775
|
var _renderBefore;
|
|
1782
1776
|
return (_renderBefore = (_this_renderOptions = this.renderOptions).renderBefore) !== null && _renderBefore !== void 0 ? _renderBefore : _this_renderOptions.renderBefore = _$t.firstChild, _$t;
|
|
1783
1777
|
}
|
|
@@ -1785,22 +1779,22 @@ var _globalThis1;
|
|
|
1785
1779
|
{
|
|
1786
1780
|
key: "update",
|
|
1787
1781
|
value: function update(t) {
|
|
1788
|
-
var
|
|
1789
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(
|
|
1782
|
+
var r = this.render();
|
|
1783
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(i.prototype), "update", this).call(this, t), this._$Do = B(r, this.renderRoot, this.renderOptions);
|
|
1790
1784
|
}
|
|
1791
1785
|
},
|
|
1792
1786
|
{
|
|
1793
1787
|
key: "connectedCallback",
|
|
1794
1788
|
value: function connectedCallback() {
|
|
1795
1789
|
var _this__$Do;
|
|
1796
|
-
_get(_get_prototype_of(
|
|
1790
|
+
_get(_get_prototype_of(i.prototype), "connectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(true);
|
|
1797
1791
|
}
|
|
1798
1792
|
},
|
|
1799
1793
|
{
|
|
1800
1794
|
key: "disconnectedCallback",
|
|
1801
1795
|
value: function disconnectedCallback() {
|
|
1802
1796
|
var _this__$Do;
|
|
1803
|
-
_get(_get_prototype_of(
|
|
1797
|
+
_get(_get_prototype_of(i.prototype), "disconnectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(false);
|
|
1804
1798
|
}
|
|
1805
1799
|
},
|
|
1806
1800
|
{
|
|
@@ -1810,17 +1804,17 @@ var _globalThis1;
|
|
|
1810
1804
|
}
|
|
1811
1805
|
}
|
|
1812
1806
|
]);
|
|
1813
|
-
return
|
|
1814
|
-
}(
|
|
1815
|
-
|
|
1816
|
-
LitElement:
|
|
1807
|
+
return i;
|
|
1808
|
+
}(y$1);
|
|
1809
|
+
i._$litElement$ = true, i["finalized"] = true, (_s_litElementHydrateSupport = s.litElementHydrateSupport) === null || _s_litElementHydrateSupport === void 0 ? void 0 : _s_litElementHydrateSupport.call(s, {
|
|
1810
|
+
LitElement: i
|
|
1817
1811
|
});
|
|
1818
|
-
var
|
|
1819
|
-
|
|
1820
|
-
LitElement:
|
|
1812
|
+
var o$1 = s.litElementPolyfillSupport;
|
|
1813
|
+
o$1 === null || o$1 === void 0 ? void 0 : o$1({
|
|
1814
|
+
LitElement: i
|
|
1821
1815
|
});
|
|
1822
1816
|
var _litElementVersions;
|
|
1823
|
-
((_litElementVersions = (
|
|
1817
|
+
((_litElementVersions = (_s = s).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _s.litElementVersions = []).push("4.2.1");
|
|
1824
1818
|
|
|
1825
1819
|
/**
|
|
1826
1820
|
* @license
|
|
@@ -1834,73 +1828,25 @@ var _litElementVersions;
|
|
|
1834
1828
|
};
|
|
1835
1829
|
};
|
|
1836
1830
|
|
|
1837
|
-
function
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
value: value,
|
|
1841
|
-
enumerable: true,
|
|
1842
|
-
configurable: true,
|
|
1843
|
-
writable: true
|
|
1844
|
-
});
|
|
1845
|
-
} else {
|
|
1846
|
-
obj[key] = value;
|
|
1847
|
-
}
|
|
1848
|
-
return obj;
|
|
1849
|
-
}
|
|
1850
|
-
function _object_spread(target) {
|
|
1851
|
-
for(var i = 1; i < arguments.length; i++){
|
|
1852
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
1853
|
-
var ownKeys = Object.keys(source);
|
|
1854
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
1855
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
1856
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
1857
|
-
}));
|
|
1858
|
-
}
|
|
1859
|
-
ownKeys.forEach(function(key) {
|
|
1860
|
-
_define_property(target, key, source[key]);
|
|
1861
|
-
});
|
|
1862
|
-
}
|
|
1863
|
-
return target;
|
|
1864
|
-
}
|
|
1865
|
-
function ownKeys(object, enumerableOnly) {
|
|
1866
|
-
var keys = Object.keys(object);
|
|
1867
|
-
if (Object.getOwnPropertySymbols) {
|
|
1868
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
1869
|
-
if (enumerableOnly) {
|
|
1870
|
-
symbols = symbols.filter(function(sym) {
|
|
1871
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
1872
|
-
});
|
|
1873
|
-
}
|
|
1874
|
-
keys.push.apply(keys, symbols);
|
|
1875
|
-
}
|
|
1876
|
-
return keys;
|
|
1877
|
-
}
|
|
1878
|
-
function _object_spread_props(target, source) {
|
|
1879
|
-
source = source != null ? source : {};
|
|
1880
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
1881
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1882
|
-
} else {
|
|
1883
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
1884
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1885
|
-
});
|
|
1886
|
-
}
|
|
1887
|
-
return target;
|
|
1831
|
+
function _type_of(obj) {
|
|
1832
|
+
"@swc/helpers - typeof";
|
|
1833
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
1888
1834
|
}
|
|
1889
1835
|
/**
|
|
1890
1836
|
* @license
|
|
1891
1837
|
* Copyright 2017 Google LLC
|
|
1892
1838
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1893
1839
|
*/ var o = {
|
|
1894
|
-
attribute:
|
|
1840
|
+
attribute: true,
|
|
1895
1841
|
type: String,
|
|
1896
1842
|
converter: u$1,
|
|
1897
|
-
reflect:
|
|
1843
|
+
reflect: false,
|
|
1898
1844
|
hasChanged: f$1
|
|
1899
1845
|
}, r = function() {
|
|
1900
1846
|
var _$t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : o, _$e = arguments.length > 1 ? arguments[1] : void 0, r = arguments.length > 2 ? arguments[2] : void 0;
|
|
1901
1847
|
var n = r.kind, i = r.metadata;
|
|
1902
1848
|
var s = globalThis.litPropertyMetadata.get(i);
|
|
1903
|
-
if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = new Map), s.set(r.name, _$t), "accessor" === n) {
|
|
1849
|
+
if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = new Map), "setter" === n && ((_$t = Object.create(_$t)).wrapped = true), s.set(r.name, _$t), "accessor" === n) {
|
|
1904
1850
|
var o1 = r.name;
|
|
1905
1851
|
return {
|
|
1906
1852
|
set: function set(r) {
|
|
@@ -1908,7 +1854,7 @@ function _object_spread_props(target, source) {
|
|
|
1908
1854
|
_$e.set.call(this, r), this.requestUpdate(o1, n, _$t);
|
|
1909
1855
|
},
|
|
1910
1856
|
init: function init(e) {
|
|
1911
|
-
return void 0 !== e && this.
|
|
1857
|
+
return void 0 !== e && this.C(o1, void 0, _$t, e), e;
|
|
1912
1858
|
}
|
|
1913
1859
|
};
|
|
1914
1860
|
}
|
|
@@ -1923,11 +1869,9 @@ function _object_spread_props(target, source) {
|
|
|
1923
1869
|
};
|
|
1924
1870
|
function n(t) {
|
|
1925
1871
|
return function(e, o) {
|
|
1926
|
-
return "object" == typeof o ? r(t, e, o) : function(t, e, o) {
|
|
1872
|
+
return "object" == (typeof o === "undefined" ? "undefined" : _type_of(o)) ? r(t, e, o) : function(t, e, o) {
|
|
1927
1873
|
var r = e.hasOwnProperty(o);
|
|
1928
|
-
return e.constructor.createProperty(o, r ?
|
|
1929
|
-
wrapped: !0
|
|
1930
|
-
}) : t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
|
|
1874
|
+
return e.constructor.createProperty(o, t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
|
|
1931
1875
|
}(t, e, o);
|
|
1932
1876
|
};
|
|
1933
1877
|
}
|
|
@@ -2085,7 +2029,6 @@ function initializeWorkspaceFromPinsAndLibraries(pinsSettings, workspace, librar
|
|
|
2085
2029
|
generateSceneBlock(pinsSettings, workspace);
|
|
2086
2030
|
}
|
|
2087
2031
|
function generateSceneBlock(pinsSettings, workspace) {
|
|
2088
|
-
var _sceneBlock_getInput;
|
|
2089
2032
|
let sceneBlockName = '';
|
|
2090
2033
|
let sceneBlockLibrary = '';
|
|
2091
2034
|
let hasSceneBlock = false;
|
|
@@ -2109,11 +2052,9 @@ function generateSceneBlock(pinsSettings, workspace) {
|
|
|
2109
2052
|
for (const [metadataKey, metadataValue] of Object.entries(pinsSettings.metadata)){
|
|
2110
2053
|
const inputName = 'metadata--' + metadataKey;
|
|
2111
2054
|
if (sceneBlock.getInput(inputName)) {
|
|
2112
|
-
|
|
2113
|
-
const parameter = (_foundLibrary_xsceneblocks_sceneBlockName_metadata = foundLibrary['x-scene-blocks'][sceneBlockName].metadata) == null ? void 0 : _foundLibrary_xsceneblocks_sceneBlockName_metadata.find((p)=>p.name === metadataKey);
|
|
2055
|
+
const parameter = foundLibrary['x-scene-blocks'][sceneBlockName].metadata?.find((p)=>p.name === metadataKey);
|
|
2114
2056
|
if (parameter) {
|
|
2115
|
-
|
|
2116
|
-
if (parameter.schema.type === 'array' && ((_parameter_schema_items = parameter.schema.items) == null ? void 0 : _parameter_schema_items.$ref)) {
|
|
2057
|
+
if (parameter.schema.type === 'array' && parameter.schema.items?.$ref) {
|
|
2117
2058
|
const parameterType = getParameterType(parameter.schema.items);
|
|
2118
2059
|
if (typeof metadataValue === 'string') {
|
|
2119
2060
|
const metadataBlock = generateParameterBlock({
|
|
@@ -2145,11 +2086,9 @@ function generateSceneBlock(pinsSettings, workspace) {
|
|
|
2145
2086
|
for (const [key, value] of Object.entries(pinsSettings.properties)){
|
|
2146
2087
|
const inputName = key;
|
|
2147
2088
|
if (sceneBlock.getInput(inputName)) {
|
|
2148
|
-
|
|
2149
|
-
const parameter = (_foundLibrary_xsceneblocks_sceneBlockName_parameters = foundLibrary['x-scene-blocks'][sceneBlockName].parameters) == null ? void 0 : _foundLibrary_xsceneblocks_sceneBlockName_parameters.find((p)=>p.name === inputName);
|
|
2089
|
+
const parameter = foundLibrary['x-scene-blocks'][sceneBlockName].parameters?.find((p)=>p.name === inputName);
|
|
2150
2090
|
if (parameter) {
|
|
2151
|
-
|
|
2152
|
-
if (parameter.schema.type === 'array' && ((_parameter_schema_items1 = parameter.schema.items) == null ? void 0 : _parameter_schema_items1.$ref)) {
|
|
2091
|
+
if (parameter.schema.type === 'array' && parameter.schema.items?.$ref) {
|
|
2153
2092
|
const parameterType = getParameterType(parameter.schema.items);
|
|
2154
2093
|
if (typeof value === 'string') {
|
|
2155
2094
|
const metadataBlock = generateParameterBlock({
|
|
@@ -2189,7 +2128,7 @@ function generateSceneBlock(pinsSettings, workspace) {
|
|
|
2189
2128
|
const sceneInputConnection = sceneBlock.getInput('METADATA_INPUT').connection;
|
|
2190
2129
|
connectBlock(metadataBlock, sceneInputConnection);
|
|
2191
2130
|
}
|
|
2192
|
-
const pinsConnection =
|
|
2131
|
+
const pinsConnection = sceneBlock.getInput('EXECUTE_PINS')?.connection;
|
|
2193
2132
|
if (pinsConnection) {
|
|
2194
2133
|
const reversedPins = [
|
|
2195
2134
|
...pinsSettings.pins || []
|
|
@@ -2203,7 +2142,6 @@ function generateSceneBlock(pinsSettings, workspace) {
|
|
|
2203
2142
|
return sceneBlock;
|
|
2204
2143
|
}
|
|
2205
2144
|
function generateBlockFromPins(pinsSettings, workspace) {
|
|
2206
|
-
var _library_paths_;
|
|
2207
2145
|
const blockPath = pinsSettings.library + '/__PINS__/' + pinsSettings.element;
|
|
2208
2146
|
const library = getLibraryFromName(pinsSettings.library);
|
|
2209
2147
|
if (!library) {
|
|
@@ -2213,7 +2151,7 @@ function generateBlockFromPins(pinsSettings, workspace) {
|
|
|
2213
2151
|
pinsBlock.render();
|
|
2214
2152
|
return pinsBlock;
|
|
2215
2153
|
}
|
|
2216
|
-
const pinsDefinition =
|
|
2154
|
+
const pinsDefinition = library.paths['/' + pinsSettings.element]?.post;
|
|
2217
2155
|
if (!pinsDefinition) {
|
|
2218
2156
|
const pinsBlock = workspace.newBlock('unknown-pins');
|
|
2219
2157
|
console.log('[generateBlockFromPins] - Pins not existing in library', pinsSettings.element, pinsSettings.library);
|
|
@@ -2239,12 +2177,11 @@ function generateBlockFromPins(pinsSettings, workspace) {
|
|
|
2239
2177
|
}
|
|
2240
2178
|
}
|
|
2241
2179
|
for (const parameter of pinsDefinition.parameters){
|
|
2242
|
-
var _parameter_schema_items;
|
|
2243
2180
|
if (!pinsSettings.properties || !Object.prototype.hasOwnProperty.call(pinsSettings.properties, parameter.name)) {
|
|
2244
2181
|
continue;
|
|
2245
2182
|
}
|
|
2246
2183
|
const valueToLoad = pinsSettings.properties[parameter.name];
|
|
2247
|
-
if (parameter.schema.type === 'array' &&
|
|
2184
|
+
if (parameter.schema.type === 'array' && parameter.schema.items?.$ref) {
|
|
2248
2185
|
const parameterType = getParameterType(parameter.schema.items);
|
|
2249
2186
|
if (typeof valueToLoad === 'string') {
|
|
2250
2187
|
const parameterBlock = generateParameterBlock({
|
|
@@ -2294,12 +2231,11 @@ function generateBlockFromPins(pinsSettings, workspace) {
|
|
|
2294
2231
|
}
|
|
2295
2232
|
];
|
|
2296
2233
|
for (const parameter of conditions){
|
|
2297
|
-
var _parameter_schema_items1;
|
|
2298
2234
|
if (!pinsSettings.conditions || !Object.prototype.hasOwnProperty.call(pinsSettings.conditions, parameter.name)) {
|
|
2299
2235
|
continue;
|
|
2300
2236
|
}
|
|
2301
2237
|
const valueToLoad = pinsSettings.conditions[parameter.name];
|
|
2302
|
-
if (parameter.schema.type === 'array' &&
|
|
2238
|
+
if (parameter.schema.type === 'array' && parameter.schema.items?.$ref) {
|
|
2303
2239
|
const parameterType = getParameterType(parameter.schema.items);
|
|
2304
2240
|
if (typeof valueToLoad === 'string') {
|
|
2305
2241
|
const parameterBlock = generateParameterBlock({
|
|
@@ -2340,12 +2276,11 @@ function generateBlockFromComponent(componentSettings, workspace, library, compo
|
|
|
2340
2276
|
componentBlock.initSvg();
|
|
2341
2277
|
componentBlock.render();
|
|
2342
2278
|
for (const [propertyKey, schema] of Object.entries(componentDefinition.properties)){
|
|
2343
|
-
var _schema_items;
|
|
2344
2279
|
if (!Object.prototype.hasOwnProperty.call(componentSettings, propertyKey)) {
|
|
2345
2280
|
continue;
|
|
2346
2281
|
}
|
|
2347
2282
|
const valueToLoad = componentSettings[propertyKey];
|
|
2348
|
-
if (schema.type === 'array' &&
|
|
2283
|
+
if (schema.type === 'array' && schema.items?.$ref) {
|
|
2349
2284
|
const parameterType = getParameterType(schema.items);
|
|
2350
2285
|
if (typeof valueToLoad === 'string') {
|
|
2351
2286
|
const parameterBlock = generateParameterBlock({
|
|
@@ -2464,11 +2399,11 @@ function getLibraryFromName(name) {
|
|
|
2464
2399
|
}
|
|
2465
2400
|
function connectBlock(targetBlock, parentConnection) {
|
|
2466
2401
|
if (parentConnection) {
|
|
2467
|
-
const childConnection =
|
|
2402
|
+
const childConnection = targetBlock?.outputConnection || targetBlock?.previousConnection;
|
|
2468
2403
|
parentConnection.connect(childConnection);
|
|
2469
2404
|
}
|
|
2470
|
-
targetBlock
|
|
2471
|
-
targetBlock
|
|
2405
|
+
targetBlock?.initSvg();
|
|
2406
|
+
targetBlock?.render();
|
|
2472
2407
|
}
|
|
2473
2408
|
function generateBlockFromJson(json_structure, workspace) {
|
|
2474
2409
|
if (json_structure === null) {
|
|
@@ -2539,11 +2474,10 @@ function itemListFromPinsSettings(pinsSettings, pinsDefinition) {
|
|
|
2539
2474
|
}
|
|
2540
2475
|
if (pinsDefinition.parameters && pinsSettings.properties) {
|
|
2541
2476
|
for (const parameter of pinsDefinition.parameters){
|
|
2542
|
-
var _parameter_schema, _parameter_schema_items, _parameter_schema_items_$ref, _parameter_schema_items1;
|
|
2543
2477
|
if (!Object.prototype.hasOwnProperty.call(pinsSettings.properties, parameter.name)) {
|
|
2544
2478
|
continue;
|
|
2545
2479
|
}
|
|
2546
|
-
const isEvaluate =
|
|
2480
|
+
const isEvaluate = parameter.schema?.type === 'array' && typeof pinsSettings.properties[parameter.name] === 'string' && (parameter.schema.items?.$ref === 'https://schemas.digipair.ai/pinsSettings' || parameter.schema.items?.$ref?.includes('#/components/schemas/'));
|
|
2547
2481
|
const name = isEvaluate ? parameter.name + '__EVALUATE' : parameter.name;
|
|
2548
2482
|
const summary = isEvaluate ? (parameter.summary || parameter.name) + ' (evaluate)' : parameter.summary || parameter.name;
|
|
2549
2483
|
inputArray.push({
|
|
@@ -2588,11 +2522,10 @@ function itemListFromPinsSettings(pinsSettings, pinsDefinition) {
|
|
|
2588
2522
|
function itemListFromComponentSettings(componentSettings, componentDefinition) {
|
|
2589
2523
|
const inputArray = [];
|
|
2590
2524
|
for (const [propertyKey, propertyValue] of Object.entries(componentDefinition.properties)){
|
|
2591
|
-
var _propertyValue_items, _propertyValue_items_$ref, _propertyValue_items1;
|
|
2592
2525
|
if (!Object.prototype.hasOwnProperty.call(componentSettings, propertyKey) || propertyValue.type === 'array' && (!componentSettings[propertyKey] || componentSettings[propertyKey].length === 0)) {
|
|
2593
2526
|
continue;
|
|
2594
2527
|
}
|
|
2595
|
-
const isEvaluate = propertyValue.type === 'array' && typeof componentSettings[propertyKey] === 'string' && (
|
|
2528
|
+
const isEvaluate = propertyValue.type === 'array' && typeof componentSettings[propertyKey] === 'string' && (propertyValue.items?.$ref === 'https://schemas.digipair.ai/pinsSettings' || propertyValue.items?.$ref?.includes('#/components/schemas/'));
|
|
2596
2529
|
const name = isEvaluate ? propertyKey + '__EVALUATE' : propertyKey;
|
|
2597
2530
|
const summary = isEvaluate ? (propertyValue.summary || propertyKey) + ' (evaluate)' : propertyValue.summary || propertyKey;
|
|
2598
2531
|
inputArray.push({
|
|
@@ -2606,11 +2539,10 @@ function itemListFromSceneSettings(sceneSettings, sceneDefinition) {
|
|
|
2606
2539
|
const inputArray = [];
|
|
2607
2540
|
if (sceneDefinition.parameters && sceneSettings.properties) {
|
|
2608
2541
|
for (const parameter of sceneDefinition.parameters){
|
|
2609
|
-
var _parameter_schema, _parameter_schema_items, _parameter_schema_items_$ref, _parameter_schema_items1;
|
|
2610
2542
|
if (!Object.prototype.hasOwnProperty.call(sceneSettings.properties, parameter.name)) {
|
|
2611
2543
|
continue;
|
|
2612
2544
|
}
|
|
2613
|
-
const isEvaluate =
|
|
2545
|
+
const isEvaluate = parameter.schema?.type === 'array' && typeof sceneSettings.properties[parameter.name] === 'string' && (parameter.schema.items?.$ref === 'https://schemas.digipair.ai/pinsSettings' || parameter.schema.items?.$ref?.includes('#/components/schemas/'));
|
|
2614
2546
|
const name = isEvaluate ? parameter.name + '__EVALUATE' : parameter.name;
|
|
2615
2547
|
const summary = isEvaluate ? (parameter.summary || parameter.name) + ' (evaluate)' : parameter.summary || parameter.name;
|
|
2616
2548
|
inputArray.push({
|
|
@@ -72363,7 +72295,7 @@ const schemas = {
|
|
|
72363
72295
|
};
|
|
72364
72296
|
|
|
72365
72297
|
let jsonGenerator, generateBlocklyBlockFromLibraries, generateToolboxFromLibraries, initializeMutator;
|
|
72366
|
-
class EditorElement extends
|
|
72298
|
+
class EditorElement extends i {
|
|
72367
72299
|
createRenderRoot() {
|
|
72368
72300
|
return this;
|
|
72369
72301
|
}
|
|
@@ -72432,21 +72364,21 @@ class EditorElement extends r$1 {
|
|
|
72432
72364
|
verifyCanSaveAndGetCode() {
|
|
72433
72365
|
const code = jsonGenerator.workspaceToCode(this.workspace);
|
|
72434
72366
|
try {
|
|
72435
|
-
this.codeInWorkspace =
|
|
72367
|
+
this.codeInWorkspace = {
|
|
72436
72368
|
description: this.reasoning.description,
|
|
72437
|
-
summary: this.reasoning.summary
|
|
72438
|
-
|
|
72369
|
+
summary: this.reasoning.summary,
|
|
72370
|
+
...JSON.parse(code)
|
|
72371
|
+
};
|
|
72439
72372
|
return true;
|
|
72440
72373
|
} catch (e) {
|
|
72441
72374
|
return false;
|
|
72442
72375
|
}
|
|
72443
72376
|
}
|
|
72444
72377
|
loadBlockly(scene) {
|
|
72445
|
-
var _this_librariesToLoad_find_xsceneblocks_, _this_librariesToLoad_find_xsceneblocks, _this_librariesToLoad_find;
|
|
72446
72378
|
initializeMutator();
|
|
72447
72379
|
const generatedBlocks = generateBlocklyBlockFromLibraries(this.librariesToLoad, blocksLegacy);
|
|
72448
72380
|
this.blocks = Blockly.common.createBlockDefinitionsFromJsonArray(generatedBlocks);
|
|
72449
|
-
const tags =
|
|
72381
|
+
const tags = this.librariesToLoad.find((library)=>library.info.title === scene.library)?.['x-scene-blocks']?.[`/${scene.element}`]?.tags || [];
|
|
72450
72382
|
this.toolbox = generateToolboxFromLibraries(this.librariesToLoad, tags);
|
|
72451
72383
|
Blockly.common.defineBlocks(this.blocks);
|
|
72452
72384
|
const container = this.renderRoot.querySelector('[data-scene]');
|
|
@@ -72613,4 +72545,3 @@ EditorElement = __decorate([
|
|
|
72613
72545
|
], EditorElement);
|
|
72614
72546
|
|
|
72615
72547
|
exports.EditorElement = EditorElement;
|
|
72616
|
-
exports._extends = _extends;
|