@digipair/skill-web-heygen 0.136.3 → 0.136.4
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/dist/index.esm.js
CHANGED
|
@@ -479,7 +479,7 @@ var _Symbol, _a, _a1;
|
|
|
479
479
|
}
|
|
480
480
|
}, f$1 = function(t, s) {
|
|
481
481
|
return !i$2(t, s);
|
|
482
|
-
}, b
|
|
482
|
+
}, b = {
|
|
483
483
|
attribute: true,
|
|
484
484
|
type: String,
|
|
485
485
|
converter: u$1,
|
|
@@ -622,12 +622,11 @@ var y$1 = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
622
622
|
{
|
|
623
623
|
key: "requestUpdate",
|
|
624
624
|
value: function requestUpdate(t, s, i) {
|
|
625
|
-
var e = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false, h = arguments.length > 4 ? arguments[4] : void 0;
|
|
626
625
|
if (void 0 !== t) {
|
|
627
626
|
var _this__$Ej;
|
|
628
|
-
var
|
|
627
|
+
var e = this.constructor, h = this[t];
|
|
629
628
|
var _i_hasChanged;
|
|
630
|
-
if (
|
|
629
|
+
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;
|
|
631
630
|
this.C(t, s, i);
|
|
632
631
|
}
|
|
633
632
|
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
@@ -844,7 +843,7 @@ var y$1 = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
844
843
|
{
|
|
845
844
|
key: "createProperty",
|
|
846
845
|
value: function createProperty(t) {
|
|
847
|
-
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : b
|
|
846
|
+
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : b;
|
|
848
847
|
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) {
|
|
849
848
|
var i = Symbol(), h = this.getPropertyDescriptor(t, i, s);
|
|
850
849
|
void 0 !== h && e$3(this.prototype, t, h);
|
|
@@ -878,7 +877,7 @@ var y$1 = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
878
877
|
key: "getPropertyOptions",
|
|
879
878
|
value: function getPropertyOptions(t) {
|
|
880
879
|
var _this_elementProperties_get;
|
|
881
|
-
return (_this_elementProperties_get = this.elementProperties.get(t)) !== null && _this_elementProperties_get !== void 0 ? _this_elementProperties_get : b
|
|
880
|
+
return (_this_elementProperties_get = this.elementProperties.get(t)) !== null && _this_elementProperties_get !== void 0 ? _this_elementProperties_get : b;
|
|
882
881
|
}
|
|
883
882
|
},
|
|
884
883
|
{
|
|
@@ -1010,7 +1009,7 @@ y$1.elementStyles = [], y$1.shadowRootOptions = {
|
|
|
1010
1009
|
mode: "open"
|
|
1011
1010
|
}, 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({
|
|
1012
1011
|
ReactiveElement: y$1
|
|
1013
|
-
}), ((_reactiveElementVersions = (_a1 = a$1).reactiveElementVersions) !== null && _reactiveElementVersions !== void 0 ? _reactiveElementVersions : _a1.reactiveElementVersions = []).push("2.1.
|
|
1012
|
+
}), ((_reactiveElementVersions = (_a1 = a$1).reactiveElementVersions) !== null && _reactiveElementVersions !== void 0 ? _reactiveElementVersions : _a1.reactiveElementVersions = []).push("2.1.1");
|
|
1014
1013
|
|
|
1015
1014
|
/**
|
|
1016
1015
|
* @license
|
|
@@ -1160,19 +1159,17 @@ function _create_super$1(Derived) {
|
|
|
1160
1159
|
};
|
|
1161
1160
|
}
|
|
1162
1161
|
var _t;
|
|
1163
|
-
var t$1 = globalThis, i$1 =
|
|
1164
|
-
return t;
|
|
1165
|
-
}, s$1 = t$1.trustedTypes, e$2 = s$1 ? s$1.createPolicy("lit-html", {
|
|
1162
|
+
var t$1 = globalThis, i$1 = t$1.trustedTypes, s$1 = i$1 ? i$1.createPolicy("lit-html", {
|
|
1166
1163
|
createHTML: function(t) {
|
|
1167
1164
|
return t;
|
|
1168
1165
|
}
|
|
1169
|
-
}) : void 0,
|
|
1170
|
-
return
|
|
1171
|
-
},
|
|
1166
|
+
}) : void 0, e$2 = "$lit$", h = "lit$".concat(Math.random().toFixed(9).slice(2), "$"), o$2 = "?" + h, n$1 = "<".concat(o$2, ">"), r$1 = document, l = function() {
|
|
1167
|
+
return r$1.createComment("");
|
|
1168
|
+
}, c = function(t) {
|
|
1172
1169
|
return null === t || "object" != (typeof t === "undefined" ? "undefined" : _type_of$3(t)) && "function" != typeof t;
|
|
1173
|
-
},
|
|
1174
|
-
return
|
|
1175
|
-
},
|
|
1170
|
+
}, a = Array.isArray, u = function(t) {
|
|
1171
|
+
return a(t) || "function" == typeof (t === null || t === void 0 ? void 0 : t[Symbol.iterator]);
|
|
1172
|
+
}, 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) {
|
|
1176
1173
|
return function(i) {
|
|
1177
1174
|
for(var _len = arguments.length, s = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
|
|
1178
1175
|
s[_key - 1] = arguments[_key];
|
|
@@ -1183,57 +1180,57 @@ var t$1 = globalThis, i$1 = function(t) {
|
|
|
1183
1180
|
values: s
|
|
1184
1181
|
};
|
|
1185
1182
|
};
|
|
1186
|
-
},
|
|
1187
|
-
function
|
|
1188
|
-
if (!
|
|
1189
|
-
return void 0 !==
|
|
1190
|
-
}
|
|
1191
|
-
var
|
|
1192
|
-
var s = t.length - 1,
|
|
1193
|
-
var
|
|
1183
|
+
}, x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap, C = r$1.createTreeWalker(r$1, 129);
|
|
1184
|
+
function P(t, i) {
|
|
1185
|
+
if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1186
|
+
return void 0 !== s$1 ? s$1.createHTML(i) : i;
|
|
1187
|
+
}
|
|
1188
|
+
var V = function(t, i) {
|
|
1189
|
+
var s = t.length - 1, o = [];
|
|
1190
|
+
var r, l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "", c = f;
|
|
1194
1191
|
for(var _$i = 0; _$i < s; _$i++){
|
|
1195
1192
|
var s1 = t[_$i];
|
|
1196
|
-
var a = void 0, u = void 0, d = -1,
|
|
1197
|
-
for(;
|
|
1198
|
-
var x = c ===
|
|
1199
|
-
l += c ===
|
|
1193
|
+
var a = void 0, u = void 0, d = -1, y = 0;
|
|
1194
|
+
for(; y < s1.length && (c.lastIndex = y, u = c.exec(s1), null !== u);)y = c.lastIndex, c === f ? "!--" === u[1] ? c = v : void 0 !== u[1] ? c = _ : void 0 !== u[2] ? ($.test(u[2]) && (r = RegExp("</" + u[2], "g")), c = m) : void 0 !== u[3] && (c = m) : c === m ? ">" === u[0] ? (c = r !== null && r !== void 0 ? r : f, d = -1) : void 0 === u[1] ? d = -2 : (d = c.lastIndex - u[2].length, a = u[1], c = void 0 === u[3] ? m : '"' === u[3] ? g : p) : c === g || c === p ? c = m : c === v || c === _ ? c = f : (c = m, r = void 0);
|
|
1195
|
+
var x = c === m && t[_$i + 1].startsWith("/>") ? " " : "";
|
|
1196
|
+
l += c === f ? s1 + n$1 : d >= 0 ? (o.push(a), s1.slice(0, d) + e$2 + s1.slice(d) + h + x) : s1 + h + (-2 === d ? _$i : x);
|
|
1200
1197
|
}
|
|
1201
1198
|
return [
|
|
1202
|
-
|
|
1203
|
-
|
|
1199
|
+
P(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")),
|
|
1200
|
+
o
|
|
1204
1201
|
];
|
|
1205
1202
|
};
|
|
1206
|
-
var
|
|
1207
|
-
function
|
|
1208
|
-
var t = param.strings,
|
|
1209
|
-
_class_call_check$1(this,
|
|
1203
|
+
var N = /*#__PURE__*/ function() {
|
|
1204
|
+
function N(param, n) {
|
|
1205
|
+
var t = param.strings, s = param._$litType$;
|
|
1206
|
+
_class_call_check$1(this, N);
|
|
1210
1207
|
var r;
|
|
1211
1208
|
this.parts = [];
|
|
1212
|
-
var
|
|
1213
|
-
var u = t.length - 1, d = this.parts,
|
|
1214
|
-
if (this.el =
|
|
1209
|
+
var c = 0, a = 0;
|
|
1210
|
+
var u = t.length - 1, d = this.parts, _V = _sliced_to_array(V(t, s), 2), f = _V[0], v = _V[1];
|
|
1211
|
+
if (this.el = N.createElement(f, n), C.currentNode = this.el.content, 2 === s || 3 === s) {
|
|
1215
1212
|
var _t;
|
|
1216
1213
|
var t1 = this.el.content.firstChild;
|
|
1217
1214
|
(_t = t1).replaceWith.apply(_t, _to_consumable_array(t1.childNodes));
|
|
1218
1215
|
}
|
|
1219
|
-
for(; null !== (r =
|
|
1216
|
+
for(; null !== (r = C.nextNode()) && d.length < u;){
|
|
1220
1217
|
if (1 === r.nodeType) {
|
|
1221
1218
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1222
1219
|
if (r.hasAttributes()) try {
|
|
1223
1220
|
for(var _iterator = r.getAttributeNames()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1224
1221
|
var t2 = _step.value;
|
|
1225
|
-
if (t2.endsWith(
|
|
1226
|
-
var i1 = v[a++], s1 = r.getAttribute(t2).split(
|
|
1222
|
+
if (t2.endsWith(e$2)) {
|
|
1223
|
+
var i1 = v[a++], s1 = r.getAttribute(t2).split(h), e1 = /([.?@])?(.*)/.exec(i1);
|
|
1227
1224
|
d.push({
|
|
1228
1225
|
type: 1,
|
|
1229
|
-
index:
|
|
1230
|
-
name:
|
|
1226
|
+
index: c,
|
|
1227
|
+
name: e1[2],
|
|
1231
1228
|
strings: s1,
|
|
1232
|
-
ctor: "." ===
|
|
1229
|
+
ctor: "." === e1[1] ? H : "?" === e1[1] ? I : "@" === e1[1] ? L : k
|
|
1233
1230
|
}), r.removeAttribute(t2);
|
|
1234
|
-
} else t2.startsWith(
|
|
1231
|
+
} else t2.startsWith(h) && (d.push({
|
|
1235
1232
|
type: 6,
|
|
1236
|
-
index:
|
|
1233
|
+
index: c
|
|
1237
1234
|
}), r.removeAttribute(t2));
|
|
1238
1235
|
}
|
|
1239
1236
|
} catch (err) {
|
|
@@ -1250,58 +1247,58 @@ var S = /*#__PURE__*/ function() {
|
|
|
1250
1247
|
}
|
|
1251
1248
|
}
|
|
1252
1249
|
}
|
|
1253
|
-
if (
|
|
1254
|
-
var t3 = r.textContent.split(
|
|
1255
|
-
if (
|
|
1256
|
-
r.textContent =
|
|
1257
|
-
for(var
|
|
1250
|
+
if ($.test(r.tagName)) {
|
|
1251
|
+
var t3 = r.textContent.split(h), s2 = t3.length - 1;
|
|
1252
|
+
if (s2 > 0) {
|
|
1253
|
+
r.textContent = i$1 ? i$1.emptyScript : "";
|
|
1254
|
+
for(var i2 = 0; i2 < s2; i2++)r.append(t3[i2], l()), C.nextNode(), d.push({
|
|
1258
1255
|
type: 2,
|
|
1259
|
-
index: ++
|
|
1256
|
+
index: ++c
|
|
1260
1257
|
});
|
|
1261
|
-
r.append(t3[
|
|
1258
|
+
r.append(t3[s2], l());
|
|
1262
1259
|
}
|
|
1263
1260
|
}
|
|
1264
|
-
} else if (8 === r.nodeType) if (r.data ===
|
|
1261
|
+
} else if (8 === r.nodeType) if (r.data === o$2) d.push({
|
|
1265
1262
|
type: 2,
|
|
1266
|
-
index:
|
|
1263
|
+
index: c
|
|
1267
1264
|
});
|
|
1268
1265
|
else {
|
|
1269
1266
|
var t4 = -1;
|
|
1270
|
-
for(; -1 !== (t4 = r.data.indexOf(
|
|
1267
|
+
for(; -1 !== (t4 = r.data.indexOf(h, t4 + 1));)d.push({
|
|
1271
1268
|
type: 7,
|
|
1272
|
-
index:
|
|
1273
|
-
}), t4 +=
|
|
1269
|
+
index: c
|
|
1270
|
+
}), t4 += h.length - 1;
|
|
1274
1271
|
}
|
|
1275
|
-
|
|
1272
|
+
c++;
|
|
1276
1273
|
}
|
|
1277
1274
|
}
|
|
1278
|
-
_create_class$1(
|
|
1275
|
+
_create_class$1(N, null, [
|
|
1279
1276
|
{
|
|
1280
1277
|
key: "createElement",
|
|
1281
1278
|
value: function createElement(t, i) {
|
|
1282
|
-
var s =
|
|
1279
|
+
var s = r$1.createElement("template");
|
|
1283
1280
|
return s.innerHTML = t, s;
|
|
1284
1281
|
}
|
|
1285
1282
|
}
|
|
1286
1283
|
]);
|
|
1287
|
-
return
|
|
1284
|
+
return N;
|
|
1288
1285
|
}();
|
|
1289
|
-
function
|
|
1286
|
+
function S(t, i) {
|
|
1290
1287
|
var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : t, e = arguments.length > 3 ? arguments[3] : void 0;
|
|
1291
1288
|
var _s__$Co, _h__$AO;
|
|
1292
1289
|
var _s;
|
|
1293
|
-
if (i ===
|
|
1290
|
+
if (i === T) return i;
|
|
1294
1291
|
var h = void 0 !== e ? (_s__$Co = s._$Co) === null || _s__$Co === void 0 ? void 0 : _s__$Co[e] : s._$Cl;
|
|
1295
|
-
var o =
|
|
1292
|
+
var o = c(i) ? void 0 : i._$litDirective$;
|
|
1296
1293
|
var __$Co;
|
|
1297
|
-
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 =
|
|
1294
|
+
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;
|
|
1298
1295
|
}
|
|
1299
|
-
var
|
|
1300
|
-
function
|
|
1301
|
-
_class_call_check$1(this,
|
|
1296
|
+
var M = /*#__PURE__*/ function() {
|
|
1297
|
+
function M(t, i) {
|
|
1298
|
+
_class_call_check$1(this, M);
|
|
1302
1299
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
|
|
1303
1300
|
}
|
|
1304
|
-
_create_class$1(
|
|
1301
|
+
_create_class$1(M, [
|
|
1305
1302
|
{
|
|
1306
1303
|
key: "parentNode",
|
|
1307
1304
|
get: function get() {
|
|
@@ -1318,17 +1315,17 @@ var R = /*#__PURE__*/ function() {
|
|
|
1318
1315
|
key: "u",
|
|
1319
1316
|
value: function u(t) {
|
|
1320
1317
|
var _t_creationScope;
|
|
1321
|
-
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 :
|
|
1322
|
-
|
|
1323
|
-
var h =
|
|
1324
|
-
for(; void 0 !==
|
|
1325
|
-
if (o ===
|
|
1318
|
+
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);
|
|
1319
|
+
C.currentNode = e;
|
|
1320
|
+
var h = C.nextNode(), o = 0, n = 0, l = s[0];
|
|
1321
|
+
for(; void 0 !== l;){
|
|
1322
|
+
if (o === l.index) {
|
|
1326
1323
|
var i1 = void 0;
|
|
1327
|
-
2 ===
|
|
1324
|
+
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];
|
|
1328
1325
|
}
|
|
1329
|
-
o !== (
|
|
1326
|
+
o !== (l === null || l === void 0 ? void 0 : l.index) && (h = C.nextNode(), o++);
|
|
1330
1327
|
}
|
|
1331
|
-
return
|
|
1328
|
+
return C.currentNode = r$1, e;
|
|
1332
1329
|
}
|
|
1333
1330
|
},
|
|
1334
1331
|
{
|
|
@@ -1358,15 +1355,15 @@ var R = /*#__PURE__*/ function() {
|
|
|
1358
1355
|
}
|
|
1359
1356
|
}
|
|
1360
1357
|
]);
|
|
1361
|
-
return
|
|
1358
|
+
return M;
|
|
1362
1359
|
}();
|
|
1363
|
-
var
|
|
1364
|
-
function
|
|
1365
|
-
_class_call_check$1(this,
|
|
1360
|
+
var R = /*#__PURE__*/ function() {
|
|
1361
|
+
function R(t, i, s, e) {
|
|
1362
|
+
_class_call_check$1(this, R);
|
|
1366
1363
|
var _e_isConnected;
|
|
1367
|
-
this.type = 2, this._$AH =
|
|
1364
|
+
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;
|
|
1368
1365
|
}
|
|
1369
|
-
_create_class$1(
|
|
1366
|
+
_create_class$1(R, [
|
|
1370
1367
|
{
|
|
1371
1368
|
key: "_$AU",
|
|
1372
1369
|
get: function get() {
|
|
@@ -1399,7 +1396,7 @@ var k = /*#__PURE__*/ function() {
|
|
|
1399
1396
|
key: "_$AI",
|
|
1400
1397
|
value: function _$AI(t) {
|
|
1401
1398
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
|
|
1402
|
-
t =
|
|
1399
|
+
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);
|
|
1403
1400
|
}
|
|
1404
1401
|
},
|
|
1405
1402
|
{
|
|
@@ -1417,17 +1414,17 @@ var k = /*#__PURE__*/ function() {
|
|
|
1417
1414
|
{
|
|
1418
1415
|
key: "_",
|
|
1419
1416
|
value: function _(t) {
|
|
1420
|
-
this._$AH !==
|
|
1417
|
+
this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$1.createTextNode(t)), this._$AH = t;
|
|
1421
1418
|
}
|
|
1422
1419
|
},
|
|
1423
1420
|
{
|
|
1424
1421
|
key: "$",
|
|
1425
1422
|
value: function $(t) {
|
|
1426
1423
|
var _this__$AH;
|
|
1427
|
-
var i = t.values, s = t._$litType$, e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el =
|
|
1424
|
+
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);
|
|
1428
1425
|
if (((_this__$AH = this._$AH) === null || _this__$AH === void 0 ? void 0 : _this__$AH._$AD) === e) this._$AH.p(i);
|
|
1429
1426
|
else {
|
|
1430
|
-
var _$t = new
|
|
1427
|
+
var _$t = new M(e, this), s1 = _$t.u(this.options);
|
|
1431
1428
|
_$t.p(i), this.T(s1), this._$AH = _$t;
|
|
1432
1429
|
}
|
|
1433
1430
|
}
|
|
@@ -1435,21 +1432,21 @@ var k = /*#__PURE__*/ function() {
|
|
|
1435
1432
|
{
|
|
1436
1433
|
key: "_$AC",
|
|
1437
1434
|
value: function _$AC(t) {
|
|
1438
|
-
var i =
|
|
1439
|
-
return void 0 === i &&
|
|
1435
|
+
var i = A.get(t.strings);
|
|
1436
|
+
return void 0 === i && A.set(t.strings, i = new N(t)), i;
|
|
1440
1437
|
}
|
|
1441
1438
|
},
|
|
1442
1439
|
{
|
|
1443
1440
|
key: "k",
|
|
1444
|
-
value: function
|
|
1445
|
-
|
|
1441
|
+
value: function k(t) {
|
|
1442
|
+
a(this._$AH) || (this._$AH = [], this._$AR());
|
|
1446
1443
|
var i = this._$AH;
|
|
1447
1444
|
var s, e = 0;
|
|
1448
1445
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1449
1446
|
try {
|
|
1450
1447
|
for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1451
1448
|
var h = _step.value;
|
|
1452
|
-
e === i.length ? i.push(s = new
|
|
1449
|
+
e === i.length ? i.push(s = new R(this.O(l()), this.O(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
|
|
1453
1450
|
}
|
|
1454
1451
|
} catch (err) {
|
|
1455
1452
|
_didIteratorError = true;
|
|
@@ -1471,11 +1468,11 @@ var k = /*#__PURE__*/ function() {
|
|
|
1471
1468
|
{
|
|
1472
1469
|
key: "_$AR",
|
|
1473
1470
|
value: function _$AR() {
|
|
1474
|
-
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this._$AA.nextSibling,
|
|
1471
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this._$AA.nextSibling, i = arguments.length > 1 ? arguments[1] : void 0;
|
|
1475
1472
|
var _this__$AP, _this;
|
|
1476
|
-
for((_this__$AP = (_this = this)._$AP) === null || _this__$AP === void 0 ? void 0 : _this__$AP.call(_this, false, true,
|
|
1477
|
-
var
|
|
1478
|
-
|
|
1473
|
+
for((_this__$AP = (_this = this)._$AP) === null || _this__$AP === void 0 ? void 0 : _this__$AP.call(_this, false, true, i); t !== this._$AB;){
|
|
1474
|
+
var i1 = t.nextSibling;
|
|
1475
|
+
t.remove(), t = i1;
|
|
1479
1476
|
}
|
|
1480
1477
|
}
|
|
1481
1478
|
},
|
|
@@ -1487,14 +1484,14 @@ var k = /*#__PURE__*/ function() {
|
|
|
1487
1484
|
}
|
|
1488
1485
|
}
|
|
1489
1486
|
]);
|
|
1490
|
-
return
|
|
1487
|
+
return R;
|
|
1491
1488
|
}();
|
|
1492
|
-
var
|
|
1493
|
-
function
|
|
1494
|
-
_class_call_check$1(this,
|
|
1495
|
-
this.type = 1, this._$AH =
|
|
1489
|
+
var k = /*#__PURE__*/ function() {
|
|
1490
|
+
function k(t, i, s, e, h) {
|
|
1491
|
+
_class_call_check$1(this, k);
|
|
1492
|
+
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;
|
|
1496
1493
|
}
|
|
1497
|
-
_create_class$1(
|
|
1494
|
+
_create_class$1(k, [
|
|
1498
1495
|
{
|
|
1499
1496
|
key: "tagName",
|
|
1500
1497
|
get: function get() {
|
|
@@ -1513,11 +1510,11 @@ var H = /*#__PURE__*/ function() {
|
|
|
1513
1510
|
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;
|
|
1514
1511
|
var h = this.strings;
|
|
1515
1512
|
var o = false;
|
|
1516
|
-
if (void 0 === h) t =
|
|
1513
|
+
if (void 0 === h) t = S(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== T, o && (this._$AH = t);
|
|
1517
1514
|
else {
|
|
1518
1515
|
var e1 = t;
|
|
1519
1516
|
var n, r;
|
|
1520
|
-
for(t = h[0], n = 0; n < h.length - 1; n++)r =
|
|
1517
|
+
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;
|
|
1521
1518
|
}
|
|
1522
1519
|
o && !e && this.j(t);
|
|
1523
1520
|
}
|
|
@@ -1525,71 +1522,71 @@ var H = /*#__PURE__*/ function() {
|
|
|
1525
1522
|
{
|
|
1526
1523
|
key: "j",
|
|
1527
1524
|
value: function j(t) {
|
|
1528
|
-
t ===
|
|
1525
|
+
t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t !== null && t !== void 0 ? t : "");
|
|
1529
1526
|
}
|
|
1530
1527
|
}
|
|
1531
1528
|
]);
|
|
1532
|
-
return
|
|
1529
|
+
return k;
|
|
1533
1530
|
}();
|
|
1534
|
-
var
|
|
1535
|
-
_inherits$1(
|
|
1536
|
-
var _super = _create_super$1(
|
|
1537
|
-
function
|
|
1538
|
-
_class_call_check$1(this,
|
|
1531
|
+
var H = /*#__PURE__*/ function(k) {
|
|
1532
|
+
_inherits$1(H, k);
|
|
1533
|
+
var _super = _create_super$1(H);
|
|
1534
|
+
function H() {
|
|
1535
|
+
_class_call_check$1(this, H);
|
|
1539
1536
|
var _this;
|
|
1540
1537
|
_this = _super.call.apply(_super, [
|
|
1541
1538
|
this
|
|
1542
1539
|
].concat(Array.prototype.slice.call(arguments))), _this.type = 3;
|
|
1543
1540
|
return _possible_constructor_return$1(_this);
|
|
1544
1541
|
}
|
|
1545
|
-
_create_class$1(
|
|
1542
|
+
_create_class$1(H, [
|
|
1546
1543
|
{
|
|
1547
1544
|
key: "j",
|
|
1548
1545
|
value: function j(t) {
|
|
1549
|
-
this.element[this.name] = t ===
|
|
1546
|
+
this.element[this.name] = t === E ? void 0 : t;
|
|
1550
1547
|
}
|
|
1551
1548
|
}
|
|
1552
1549
|
]);
|
|
1553
|
-
return
|
|
1554
|
-
}(
|
|
1555
|
-
var
|
|
1556
|
-
_inherits$1(
|
|
1557
|
-
var _super = _create_super$1(
|
|
1558
|
-
function
|
|
1559
|
-
_class_call_check$1(this,
|
|
1550
|
+
return H;
|
|
1551
|
+
}(k);
|
|
1552
|
+
var I = /*#__PURE__*/ function(k) {
|
|
1553
|
+
_inherits$1(I, k);
|
|
1554
|
+
var _super = _create_super$1(I);
|
|
1555
|
+
function I() {
|
|
1556
|
+
_class_call_check$1(this, I);
|
|
1560
1557
|
var _this;
|
|
1561
1558
|
_this = _super.call.apply(_super, [
|
|
1562
1559
|
this
|
|
1563
1560
|
].concat(Array.prototype.slice.call(arguments))), _this.type = 4;
|
|
1564
1561
|
return _possible_constructor_return$1(_this);
|
|
1565
1562
|
}
|
|
1566
|
-
_create_class$1(
|
|
1563
|
+
_create_class$1(I, [
|
|
1567
1564
|
{
|
|
1568
1565
|
key: "j",
|
|
1569
1566
|
value: function j(t) {
|
|
1570
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
|
1567
|
+
this.element.toggleAttribute(this.name, !!t && t !== E);
|
|
1571
1568
|
}
|
|
1572
1569
|
}
|
|
1573
1570
|
]);
|
|
1574
|
-
return
|
|
1575
|
-
}(
|
|
1576
|
-
var
|
|
1577
|
-
_inherits$1(
|
|
1578
|
-
var _super = _create_super$1(
|
|
1579
|
-
function
|
|
1580
|
-
_class_call_check$1(this,
|
|
1571
|
+
return I;
|
|
1572
|
+
}(k);
|
|
1573
|
+
var L = /*#__PURE__*/ function(k) {
|
|
1574
|
+
_inherits$1(L, k);
|
|
1575
|
+
var _super = _create_super$1(L);
|
|
1576
|
+
function L(t, i, s, e, h) {
|
|
1577
|
+
_class_call_check$1(this, L);
|
|
1581
1578
|
var _this;
|
|
1582
1579
|
_this = _super.call(this, t, i, s, e, h), _this.type = 5;
|
|
1583
1580
|
return _possible_constructor_return$1(_this);
|
|
1584
1581
|
}
|
|
1585
|
-
_create_class$1(
|
|
1582
|
+
_create_class$1(L, [
|
|
1586
1583
|
{
|
|
1587
1584
|
key: "_$AI",
|
|
1588
1585
|
value: function _$AI(t) {
|
|
1589
1586
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
|
|
1590
|
-
var
|
|
1591
|
-
if ((t = (
|
|
1592
|
-
var s = this._$AH, e = t ===
|
|
1587
|
+
var _S;
|
|
1588
|
+
if ((t = (_S = S(this, t, i, 0)) !== null && _S !== void 0 ? _S : E) === T) return;
|
|
1589
|
+
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);
|
|
1593
1590
|
e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
1594
1591
|
}
|
|
1595
1592
|
},
|
|
@@ -1602,14 +1599,14 @@ var z = /*#__PURE__*/ function(H) {
|
|
|
1602
1599
|
}
|
|
1603
1600
|
}
|
|
1604
1601
|
]);
|
|
1605
|
-
return
|
|
1606
|
-
}(
|
|
1607
|
-
var
|
|
1608
|
-
function
|
|
1609
|
-
_class_call_check$1(this,
|
|
1602
|
+
return L;
|
|
1603
|
+
}(k);
|
|
1604
|
+
var z = /*#__PURE__*/ function() {
|
|
1605
|
+
function z(t, i, s) {
|
|
1606
|
+
_class_call_check$1(this, z);
|
|
1610
1607
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
|
|
1611
1608
|
}
|
|
1612
|
-
_create_class$1(
|
|
1609
|
+
_create_class$1(z, [
|
|
1613
1610
|
{
|
|
1614
1611
|
key: "_$AU",
|
|
1615
1612
|
get: function get() {
|
|
@@ -1619,23 +1616,23 @@ var Z = /*#__PURE__*/ function() {
|
|
|
1619
1616
|
{
|
|
1620
1617
|
key: "_$AI",
|
|
1621
1618
|
value: function _$AI(t) {
|
|
1622
|
-
|
|
1619
|
+
S(this, t);
|
|
1623
1620
|
}
|
|
1624
1621
|
}
|
|
1625
1622
|
]);
|
|
1626
|
-
return
|
|
1623
|
+
return z;
|
|
1627
1624
|
}();
|
|
1628
|
-
var
|
|
1625
|
+
var j = t$1.litHtmlPolyfillSupport;
|
|
1629
1626
|
var _litHtmlVersions;
|
|
1630
|
-
|
|
1631
|
-
var
|
|
1627
|
+
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");
|
|
1628
|
+
var B = function(t, i, s) {
|
|
1632
1629
|
var _s_renderBefore;
|
|
1633
1630
|
var e = (_s_renderBefore = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore !== void 0 ? _s_renderBefore : i;
|
|
1634
1631
|
var h = e._$litPart$;
|
|
1635
1632
|
if (void 0 === h) {
|
|
1636
1633
|
var _s_renderBefore1;
|
|
1637
1634
|
var _$t = (_s_renderBefore1 = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore1 !== void 0 ? _s_renderBefore1 : null;
|
|
1638
|
-
e._$litPart$ = h = new
|
|
1635
|
+
e._$litPart$ = h = new R(i.insertBefore(l(), _$t), _$t, void 0, s !== null && s !== void 0 ? s : {});
|
|
1639
1636
|
}
|
|
1640
1637
|
return h._$AI(t), h;
|
|
1641
1638
|
};
|
|
@@ -1781,7 +1778,7 @@ var i = /*#__PURE__*/ function(t) {
|
|
|
1781
1778
|
key: "update",
|
|
1782
1779
|
value: function update(t) {
|
|
1783
1780
|
var r = this.render();
|
|
1784
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(i.prototype), "update", this).call(this, t), this._$Do =
|
|
1781
|
+
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);
|
|
1785
1782
|
}
|
|
1786
1783
|
},
|
|
1787
1784
|
{
|
|
@@ -1801,7 +1798,7 @@ var i = /*#__PURE__*/ function(t) {
|
|
|
1801
1798
|
{
|
|
1802
1799
|
key: "render",
|
|
1803
1800
|
value: function render() {
|
|
1804
|
-
return
|
|
1801
|
+
return T;
|
|
1805
1802
|
}
|
|
1806
1803
|
}
|
|
1807
1804
|
]);
|
|
@@ -1815,7 +1812,7 @@ o$1 === null || o$1 === void 0 ? void 0 : o$1({
|
|
|
1815
1812
|
LitElement: i
|
|
1816
1813
|
});
|
|
1817
1814
|
var _litElementVersions;
|
|
1818
|
-
((_litElementVersions = (_s = s).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _s.litElementVersions = []).push("4.2.
|
|
1815
|
+
((_litElementVersions = (_s = s).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _s.litElementVersions = []).push("4.2.1");
|
|
1819
1816
|
|
|
1820
1817
|
/**
|
|
1821
1818
|
* @license
|
|
@@ -1852,7 +1849,7 @@ function _type_of$1(obj) {
|
|
|
1852
1849
|
return {
|
|
1853
1850
|
set: function set(r) {
|
|
1854
1851
|
var n = _$e.get.call(this);
|
|
1855
|
-
_$e.set.call(this, r), this.requestUpdate(o1, n, _$t
|
|
1852
|
+
_$e.set.call(this, r), this.requestUpdate(o1, n, _$t);
|
|
1856
1853
|
},
|
|
1857
1854
|
init: function init(e) {
|
|
1858
1855
|
return void 0 !== e && this.C(o1, void 0, _$t, e), e;
|
|
@@ -1863,7 +1860,7 @@ function _type_of$1(obj) {
|
|
|
1863
1860
|
var o2 = r.name;
|
|
1864
1861
|
return function r(r) {
|
|
1865
1862
|
var n = this[o2];
|
|
1866
|
-
_$e.call(this, r), this.requestUpdate(o2, n, _$t
|
|
1863
|
+
_$e.call(this, r), this.requestUpdate(o2, n, _$t);
|
|
1867
1864
|
};
|
|
1868
1865
|
}
|
|
1869
1866
|
throw Error("Unsupported decorator location: " + n);
|
|
@@ -1980,7 +1977,7 @@ class HeygenElement extends i {
|
|
|
1980
1977
|
this.updateStatus('SESSION_STOPPED');
|
|
1981
1978
|
}
|
|
1982
1979
|
render() {
|
|
1983
|
-
return
|
|
1980
|
+
return x` <video style=${this.videoStyle} autoplay></video> `;
|
|
1984
1981
|
}
|
|
1985
1982
|
constructor(...args){
|
|
1986
1983
|
super(...args);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class HeygenElement extends LitElement {
|
|
3
|
+
videoStyle: string;
|
|
4
|
+
mediaElement: HTMLVideoElement;
|
|
5
|
+
private peerConnection;
|
|
6
|
+
private updateStatus;
|
|
7
|
+
start(sessionInfo: any): Promise<{
|
|
8
|
+
sessionId: any;
|
|
9
|
+
sdp: RTCSessionDescriptionInit;
|
|
10
|
+
}>;
|
|
11
|
+
stop(): Promise<void>;
|
|
12
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=skill-web-heygen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-web-heygen.d.ts","sourceRoot":"","sources":["../../../src/lib/skill-web-heygen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAGvC,qBACa,aAAc,SAAQ,UAAU;IAE3C,UAAU,SAAM;IAEA,YAAY,EAAG,gBAAgB,CAAC;IAEhD,OAAO,CAAC,cAAc,CAAqB;IAE3C,OAAO,CAAC,YAAY;IAId,KAAK,CAAC,WAAW,EAAE,GAAG;;;;IA8DtB,IAAI;IAKD,MAAM;CAGhB"}
|