@digipair/skill-web-inputs 0.42.0 → 0.43.2

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.
Files changed (3) hide show
  1. package/index.cjs.js +166 -160
  2. package/index.esm.js +166 -160
  3. package/package.json +1 -1
package/index.cjs.js CHANGED
@@ -46,11 +46,11 @@ function _instanceof$2(left, right) {
46
46
  return left instanceof right;
47
47
  }
48
48
  }
49
- 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$3 = new WeakMap;
49
+ 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;
50
50
  var n$3 = /*#__PURE__*/ function() {
51
51
  function n(t, e, o) {
52
52
  _class_call_check$3(this, n);
53
- if (this._$cssResult$ = !0, o !== s$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
53
+ if (this._$cssResult$ = !0, o !== s$1) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
54
54
  this.cssText = t, this.t = e;
55
55
  }
56
56
  _create_class$3(n, [
@@ -76,8 +76,8 @@ var n$3 = /*#__PURE__*/ function() {
76
76
  return n;
77
77
  }();
78
78
  var r$5 = function(t) {
79
- return new n$3("string" == typeof t ? t : t + "", void 0, s$2);
80
- }, i$2 = function(t) {
79
+ return new n$3("string" == typeof t ? t : t + "", void 0, s$1);
80
+ }, i$3 = function(t) {
81
81
  for(var _len = arguments.length, e = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
82
82
  e[_key - 1] = arguments[_key];
83
83
  }
@@ -88,7 +88,7 @@ var r$5 = function(t) {
88
88
  throw Error("Value passed to 'css' function must be a 'css' function result: " + t + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
89
89
  }(s) + t[o + 1];
90
90
  }, t[0]);
91
- return new n$3(o, t, s$2);
91
+ return new n$3(o, t, s$1);
92
92
  }, S$1 = function(s, o) {
93
93
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
94
94
  if (e$2) s.adoptedStyleSheets = o.map(function(t) {
@@ -461,7 +461,7 @@ var _Symbol, _a, _a1;
461
461
  * @license
462
462
  * Copyright 2017 Google LLC
463
463
  * SPDX-License-Identifier: BSD-3-Clause
464
- */ var i$1 = Object.is, e$1 = Object.defineProperty, r$4 = 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) {
464
+ */ var i$2 = Object.is, e$1 = Object.defineProperty, r$4 = 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) {
465
465
  return t;
466
466
  }, u$1 = {
467
467
  toAttribute: function toAttribute(t, s) {
@@ -495,7 +495,7 @@ var _Symbol, _a, _a1;
495
495
  return i;
496
496
  }
497
497
  }, f$1 = function(t, s) {
498
- return !i$1(t, s);
498
+ return !i$2(t, s);
499
499
  }, y$1 = {
500
500
  attribute: !0,
501
501
  type: String,
@@ -1170,7 +1170,7 @@ function _create_super$1(Derived) {
1170
1170
  };
1171
1171
  }
1172
1172
  var _t;
1173
- var t$1 = globalThis, i = t$1.trustedTypes, s$1 = i ? i.createPolicy("lit-html", {
1173
+ var t$1 = globalThis, i$1 = t$1.trustedTypes, s = i$1 ? i$1.createPolicy("lit-html", {
1174
1174
  createHTML: function(t) {
1175
1175
  return t;
1176
1176
  }
@@ -1191,14 +1191,14 @@ var t$1 = globalThis, i = t$1.trustedTypes, s$1 = i ? i.createPolicy("lit-html",
1191
1191
  values: s
1192
1192
  };
1193
1193
  };
1194
- }, x = y(1), w = Symbol.for("lit-noChange"), T = Symbol.for("lit-nothing"), A = new WeakMap, E = r$3.createTreeWalker(r$3, 129);
1195
- function C(t, i) {
1196
- if (!Array.isArray(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
1197
- return void 0 !== s$1 ? s$1.createHTML(i) : i;
1194
+ }, x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap, C = r$3.createTreeWalker(r$3, 129);
1195
+ function P(t, i) {
1196
+ if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
1197
+ return void 0 !== s ? s.createHTML(i) : i;
1198
1198
  }
1199
- var P = function(t, i) {
1199
+ var V = function(t, i) {
1200
1200
  var s = t.length - 1, o = [];
1201
- var r, l = 2 === i ? "<svg>" : "", c = f;
1201
+ var r, l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "", c = f;
1202
1202
  for(var _$i = 0; _$i < s; _$i++){
1203
1203
  var s1 = t[_$i];
1204
1204
  var a = void 0, u = void 0, d = -1, y = 0;
@@ -1207,24 +1207,24 @@ var P = function(t, i) {
1207
1207
  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);
1208
1208
  }
1209
1209
  return [
1210
- C(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : "")),
1210
+ P(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")),
1211
1211
  o
1212
1212
  ];
1213
1213
  };
1214
- var V = /*#__PURE__*/ function() {
1215
- function V(param, n) {
1214
+ var N = /*#__PURE__*/ function() {
1215
+ function N(param, n) {
1216
1216
  var t = param.strings, s = param._$litType$;
1217
- _class_call_check$1(this, V);
1217
+ _class_call_check$1(this, N);
1218
1218
  var r;
1219
1219
  this.parts = [];
1220
1220
  var c = 0, a = 0;
1221
- var u = t.length - 1, d = this.parts, _P = _sliced_to_array$1(P(t, s), 2), f = _P[0], v = _P[1];
1222
- if (this.el = V.createElement(f, n), E.currentNode = this.el.content, 2 === s) {
1221
+ var u = t.length - 1, d = this.parts, _V = _sliced_to_array$1(V(t, s), 2), f = _V[0], v = _V[1];
1222
+ if (this.el = N.createElement(f, n), C.currentNode = this.el.content, 2 === s || 3 === s) {
1223
1223
  var _t;
1224
1224
  var t1 = this.el.content.firstChild;
1225
1225
  (_t = t1).replaceWith.apply(_t, _to_consumable_array$8(t1.childNodes));
1226
1226
  }
1227
- for(; null !== (r = E.nextNode()) && d.length < u;){
1227
+ for(; null !== (r = C.nextNode()) && d.length < u;){
1228
1228
  if (1 === r.nodeType) {
1229
1229
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1230
1230
  if (r.hasAttributes()) try {
@@ -1237,7 +1237,7 @@ var V = /*#__PURE__*/ function() {
1237
1237
  index: c,
1238
1238
  name: e1[2],
1239
1239
  strings: s1,
1240
- ctor: "." === e1[1] ? k : "?" === e1[1] ? H : "@" === e1[1] ? I : R
1240
+ ctor: "." === e1[1] ? H : "?" === e1[1] ? I : "@" === e1[1] ? L : k
1241
1241
  }), r.removeAttribute(t2);
1242
1242
  } else t2.startsWith(h) && (d.push({
1243
1243
  type: 6,
@@ -1261,8 +1261,8 @@ var V = /*#__PURE__*/ function() {
1261
1261
  if ($.test(r.tagName)) {
1262
1262
  var t3 = r.textContent.split(h), s2 = t3.length - 1;
1263
1263
  if (s2 > 0) {
1264
- r.textContent = i ? i.emptyScript : "";
1265
- for(var i2 = 0; i2 < s2; i2++)r.append(t3[i2], l()), E.nextNode(), d.push({
1264
+ r.textContent = i$1 ? i$1.emptyScript : "";
1265
+ for(var i2 = 0; i2 < s2; i2++)r.append(t3[i2], l()), C.nextNode(), d.push({
1266
1266
  type: 2,
1267
1267
  index: ++c
1268
1268
  });
@@ -1283,7 +1283,7 @@ var V = /*#__PURE__*/ function() {
1283
1283
  c++;
1284
1284
  }
1285
1285
  }
1286
- _create_class$1(V, null, [
1286
+ _create_class$1(N, null, [
1287
1287
  {
1288
1288
  key: "createElement",
1289
1289
  value: function createElement(t, i) {
@@ -1292,24 +1292,24 @@ var V = /*#__PURE__*/ function() {
1292
1292
  }
1293
1293
  }
1294
1294
  ]);
1295
- return V;
1295
+ return N;
1296
1296
  }();
1297
- function N(t, i) {
1297
+ function S(t, i) {
1298
1298
  var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : t, e = arguments.length > 3 ? arguments[3] : void 0;
1299
1299
  var _s__$Co, _h__$AO;
1300
1300
  var _s;
1301
- if (i === w) return i;
1301
+ if (i === T) return i;
1302
1302
  var h = void 0 !== e ? (_s__$Co = s._$Co) === null || _s__$Co === void 0 ? void 0 : _s__$Co[e] : s._$Cl;
1303
1303
  var o = c(i) ? void 0 : i._$litDirective$;
1304
1304
  var __$Co;
1305
- 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 = N(t, h._$AS(t, i.values), h, e)), i;
1305
+ 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;
1306
1306
  }
1307
- var S = /*#__PURE__*/ function() {
1308
- function S(t, i) {
1309
- _class_call_check$1(this, S);
1307
+ var M = /*#__PURE__*/ function() {
1308
+ function M(t, i) {
1309
+ _class_call_check$1(this, M);
1310
1310
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
1311
1311
  }
1312
- _create_class$1(S, [
1312
+ _create_class$1(M, [
1313
1313
  {
1314
1314
  key: "parentNode",
1315
1315
  get: function get() {
@@ -1327,16 +1327,16 @@ var S = /*#__PURE__*/ function() {
1327
1327
  value: function u(t) {
1328
1328
  var _t_creationScope;
1329
1329
  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$3).importNode(i, !0);
1330
- E.currentNode = e;
1331
- var h = E.nextNode(), o = 0, n = 0, l = s[0];
1330
+ C.currentNode = e;
1331
+ var h = C.nextNode(), o = 0, n = 0, l = s[0];
1332
1332
  for(; void 0 !== l;){
1333
1333
  if (o === l.index) {
1334
1334
  var i1 = void 0;
1335
- 2 === l.type ? i1 = new M(h, h.nextSibling, this, t) : 1 === l.type ? i1 = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i1 = new L(h, this, t)), this._$AV.push(i1), l = s[++n];
1335
+ 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];
1336
1336
  }
1337
- o !== (l === null || l === void 0 ? void 0 : l.index) && (h = E.nextNode(), o++);
1337
+ o !== (l === null || l === void 0 ? void 0 : l.index) && (h = C.nextNode(), o++);
1338
1338
  }
1339
- return E.currentNode = r$3, e;
1339
+ return C.currentNode = r$3, e;
1340
1340
  }
1341
1341
  },
1342
1342
  {
@@ -1366,15 +1366,15 @@ var S = /*#__PURE__*/ function() {
1366
1366
  }
1367
1367
  }
1368
1368
  ]);
1369
- return S;
1369
+ return M;
1370
1370
  }();
1371
- var M = /*#__PURE__*/ function() {
1372
- function M(t, i, s, e) {
1373
- _class_call_check$1(this, M);
1371
+ var R = /*#__PURE__*/ function() {
1372
+ function R(t, i, s, e) {
1373
+ _class_call_check$1(this, R);
1374
1374
  var _e_isConnected;
1375
- this.type = 2, this._$AH = T, 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;
1375
+ 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;
1376
1376
  }
1377
- _create_class$1(M, [
1377
+ _create_class$1(R, [
1378
1378
  {
1379
1379
  key: "_$AU",
1380
1380
  get: function get() {
@@ -1407,35 +1407,35 @@ var M = /*#__PURE__*/ function() {
1407
1407
  key: "_$AI",
1408
1408
  value: function _$AI(t) {
1409
1409
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
1410
- t = N(this, t, i), c(t) ? t === T || null == t || "" === t ? (this._$AH !== T && this._$AR(), this._$AH = T) : t !== this._$AH && t !== w && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : u(t) ? this.k(t) : this._(t);
1410
+ 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);
1411
1411
  }
1412
1412
  },
1413
1413
  {
1414
- key: "S",
1415
- value: function S(t) {
1414
+ key: "O",
1415
+ value: function O(t) {
1416
1416
  return this._$AA.parentNode.insertBefore(t, this._$AB);
1417
1417
  }
1418
1418
  },
1419
1419
  {
1420
1420
  key: "T",
1421
1421
  value: function T(t) {
1422
- this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
1422
+ this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
1423
1423
  }
1424
1424
  },
1425
1425
  {
1426
1426
  key: "_",
1427
1427
  value: function _(t) {
1428
- this._$AH !== T && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$3.createTextNode(t)), this._$AH = t;
1428
+ this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$3.createTextNode(t)), this._$AH = t;
1429
1429
  }
1430
1430
  },
1431
1431
  {
1432
1432
  key: "$",
1433
1433
  value: function $(t) {
1434
1434
  var _this__$AH;
1435
- var i = t.values, s = t._$litType$, e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = V.createElement(C(s.h, s.h[0]), this.options)), s);
1435
+ 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);
1436
1436
  if (((_this__$AH = this._$AH) === null || _this__$AH === void 0 ? void 0 : _this__$AH._$AD) === e) this._$AH.p(i);
1437
1437
  else {
1438
- var _$t = new S(e, this), s1 = _$t.u(this.options);
1438
+ var _$t = new M(e, this), s1 = _$t.u(this.options);
1439
1439
  _$t.p(i), this.T(s1), this._$AH = _$t;
1440
1440
  }
1441
1441
  }
@@ -1444,7 +1444,7 @@ var M = /*#__PURE__*/ function() {
1444
1444
  key: "_$AC",
1445
1445
  value: function _$AC(t) {
1446
1446
  var i = A.get(t.strings);
1447
- return void 0 === i && A.set(t.strings, i = new V(t)), i;
1447
+ return void 0 === i && A.set(t.strings, i = new N(t)), i;
1448
1448
  }
1449
1449
  },
1450
1450
  {
@@ -1457,7 +1457,7 @@ var M = /*#__PURE__*/ function() {
1457
1457
  try {
1458
1458
  for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1459
1459
  var h = _step.value;
1460
- e === i.length ? i.push(s = new M(this.S(l()), this.S(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
1460
+ e === i.length ? i.push(s = new R(this.O(l()), this.O(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
1461
1461
  }
1462
1462
  } catch (err) {
1463
1463
  _didIteratorError = true;
@@ -1495,14 +1495,14 @@ var M = /*#__PURE__*/ function() {
1495
1495
  }
1496
1496
  }
1497
1497
  ]);
1498
- return M;
1498
+ return R;
1499
1499
  }();
1500
- var R = /*#__PURE__*/ function() {
1501
- function R(t, i, s, e, h) {
1502
- _class_call_check$1(this, R);
1503
- this.type = 1, this._$AH = T, 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 = T;
1500
+ var k = /*#__PURE__*/ function() {
1501
+ function k(t, i, s, e, h) {
1502
+ _class_call_check$1(this, k);
1503
+ 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;
1504
1504
  }
1505
- _create_class$1(R, [
1505
+ _create_class$1(k, [
1506
1506
  {
1507
1507
  key: "tagName",
1508
1508
  get: function get() {
@@ -1521,11 +1521,11 @@ var R = /*#__PURE__*/ function() {
1521
1521
  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;
1522
1522
  var h = this.strings;
1523
1523
  var o = !1;
1524
- if (void 0 === h) t = N(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== w, o && (this._$AH = t);
1524
+ if (void 0 === h) t = S(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== T, o && (this._$AH = t);
1525
1525
  else {
1526
1526
  var e1 = t;
1527
1527
  var n, r;
1528
- for(t = h[0], n = 0; n < h.length - 1; n++)r = N(this, e1[s + n], i, n), r === w && (r = this._$AH[n]), o || (o = !c(r) || r !== this._$AH[n]), r === T ? t = T : t !== T && (t += (r !== null && r !== void 0 ? r : "") + h[n + 1]), this._$AH[n] = r;
1528
+ 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;
1529
1529
  }
1530
1530
  o && !e && this.j(t);
1531
1531
  }
@@ -1533,71 +1533,71 @@ var R = /*#__PURE__*/ function() {
1533
1533
  {
1534
1534
  key: "j",
1535
1535
  value: function j(t) {
1536
- t === T ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t !== null && t !== void 0 ? t : "");
1536
+ t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t !== null && t !== void 0 ? t : "");
1537
1537
  }
1538
1538
  }
1539
1539
  ]);
1540
- return R;
1540
+ return k;
1541
1541
  }();
1542
- var k = /*#__PURE__*/ function(R) {
1543
- _inherits$1(k, R);
1544
- var _super = _create_super$1(k);
1545
- function k() {
1546
- _class_call_check$1(this, k);
1542
+ var H = /*#__PURE__*/ function(k) {
1543
+ _inherits$1(H, k);
1544
+ var _super = _create_super$1(H);
1545
+ function H() {
1546
+ _class_call_check$1(this, H);
1547
1547
  var _this;
1548
1548
  _this = _super.call.apply(_super, [
1549
1549
  this
1550
1550
  ].concat(Array.prototype.slice.call(arguments))), _this.type = 3;
1551
1551
  return _possible_constructor_return$1(_this);
1552
1552
  }
1553
- _create_class$1(k, [
1553
+ _create_class$1(H, [
1554
1554
  {
1555
1555
  key: "j",
1556
1556
  value: function j(t) {
1557
- this.element[this.name] = t === T ? void 0 : t;
1557
+ this.element[this.name] = t === E ? void 0 : t;
1558
1558
  }
1559
1559
  }
1560
1560
  ]);
1561
- return k;
1562
- }(R);
1563
- var H = /*#__PURE__*/ function(R) {
1564
- _inherits$1(H, R);
1565
- var _super = _create_super$1(H);
1566
- function H() {
1567
- _class_call_check$1(this, H);
1561
+ return H;
1562
+ }(k);
1563
+ var I = /*#__PURE__*/ function(k) {
1564
+ _inherits$1(I, k);
1565
+ var _super = _create_super$1(I);
1566
+ function I() {
1567
+ _class_call_check$1(this, I);
1568
1568
  var _this;
1569
1569
  _this = _super.call.apply(_super, [
1570
1570
  this
1571
1571
  ].concat(Array.prototype.slice.call(arguments))), _this.type = 4;
1572
1572
  return _possible_constructor_return$1(_this);
1573
1573
  }
1574
- _create_class$1(H, [
1574
+ _create_class$1(I, [
1575
1575
  {
1576
1576
  key: "j",
1577
1577
  value: function j(t) {
1578
- this.element.toggleAttribute(this.name, !!t && t !== T);
1578
+ this.element.toggleAttribute(this.name, !!t && t !== E);
1579
1579
  }
1580
1580
  }
1581
1581
  ]);
1582
- return H;
1583
- }(R);
1584
- var I = /*#__PURE__*/ function(R) {
1585
- _inherits$1(I, R);
1586
- var _super = _create_super$1(I);
1587
- function I(t, i, s, e, h) {
1588
- _class_call_check$1(this, I);
1582
+ return I;
1583
+ }(k);
1584
+ var L = /*#__PURE__*/ function(k) {
1585
+ _inherits$1(L, k);
1586
+ var _super = _create_super$1(L);
1587
+ function L(t, i, s, e, h) {
1588
+ _class_call_check$1(this, L);
1589
1589
  var _this;
1590
1590
  _this = _super.call(this, t, i, s, e, h), _this.type = 5;
1591
1591
  return _possible_constructor_return$1(_this);
1592
1592
  }
1593
- _create_class$1(I, [
1593
+ _create_class$1(L, [
1594
1594
  {
1595
1595
  key: "_$AI",
1596
1596
  value: function _$AI(t) {
1597
1597
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
1598
- var _N;
1599
- if ((t = (_N = N(this, t, i, 0)) !== null && _N !== void 0 ? _N : T) === w) return;
1600
- var s = this._$AH, e = t === T && s !== T || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, h = t !== T && (s === T || e);
1598
+ var _S;
1599
+ if ((t = (_S = S(this, t, i, 0)) !== null && _S !== void 0 ? _S : E) === T) return;
1600
+ 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);
1601
1601
  e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
1602
1602
  }
1603
1603
  },
@@ -1610,14 +1610,14 @@ var I = /*#__PURE__*/ function(R) {
1610
1610
  }
1611
1611
  }
1612
1612
  ]);
1613
- return I;
1614
- }(R);
1615
- var L = /*#__PURE__*/ function() {
1616
- function L(t, i, s) {
1617
- _class_call_check$1(this, L);
1613
+ return L;
1614
+ }(k);
1615
+ var z = /*#__PURE__*/ function() {
1616
+ function z(t, i, s) {
1617
+ _class_call_check$1(this, z);
1618
1618
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
1619
1619
  }
1620
- _create_class$1(L, [
1620
+ _create_class$1(z, [
1621
1621
  {
1622
1622
  key: "_$AU",
1623
1623
  get: function get() {
@@ -1627,23 +1627,23 @@ var L = /*#__PURE__*/ function() {
1627
1627
  {
1628
1628
  key: "_$AI",
1629
1629
  value: function _$AI(t) {
1630
- N(this, t);
1630
+ S(this, t);
1631
1631
  }
1632
1632
  }
1633
1633
  ]);
1634
- return L;
1634
+ return z;
1635
1635
  }();
1636
- var Z = t$1.litHtmlPolyfillSupport;
1636
+ var j = t$1.litHtmlPolyfillSupport;
1637
1637
  var _litHtmlVersions;
1638
- Z === null || Z === void 0 ? void 0 : Z(V, M), ((_litHtmlVersions = (_t = t$1).litHtmlVersions) !== null && _litHtmlVersions !== void 0 ? _litHtmlVersions : _t.litHtmlVersions = []).push("3.1.4");
1639
- var j = function(t, i, s) {
1638
+ 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");
1639
+ var B = function(t, i, s) {
1640
1640
  var _s_renderBefore;
1641
1641
  var e = (_s_renderBefore = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore !== void 0 ? _s_renderBefore : i;
1642
1642
  var h = e._$litPart$;
1643
1643
  if (void 0 === h) {
1644
1644
  var _s_renderBefore1;
1645
1645
  var _$t = (_s_renderBefore1 = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore1 !== void 0 ? _s_renderBefore1 : null;
1646
- e._$litPart$ = h = new M(i.insertBefore(l(), _$t), _$t, void 0, s !== null && s !== void 0 ? s : {});
1646
+ e._$litPart$ = h = new R(i.insertBefore(l(), _$t), _$t, void 0, s !== null && s !== void 0 ? s : {});
1647
1647
  }
1648
1648
  return h._$AI(t), h;
1649
1649
  };
@@ -1762,11 +1762,11 @@ var _globalThis1;
1762
1762
  * @license
1763
1763
  * Copyright 2017 Google LLC
1764
1764
  * SPDX-License-Identifier: BSD-3-Clause
1765
- */ var s = /*#__PURE__*/ function(t) {
1766
- _inherits(s, t);
1767
- var _super = _create_super(s);
1768
- function s() {
1769
- _class_call_check(this, s);
1765
+ */ var r$2 = /*#__PURE__*/ function(t) {
1766
+ _inherits(r, t);
1767
+ var _super = _create_super(r);
1768
+ function r() {
1769
+ _class_call_check(this, r);
1770
1770
  var _this;
1771
1771
  _this = _super.call.apply(_super, [
1772
1772
  this
@@ -1775,12 +1775,12 @@ var _globalThis1;
1775
1775
  }, _this._$Do = void 0;
1776
1776
  return _possible_constructor_return(_this);
1777
1777
  }
1778
- _create_class(s, [
1778
+ _create_class(r, [
1779
1779
  {
1780
1780
  key: "createRenderRoot",
1781
1781
  value: function createRenderRoot() {
1782
1782
  var _this_renderOptions;
1783
- var _$t = _get(_get_prototype_of(s.prototype), "createRenderRoot", this).call(this);
1783
+ var _$t = _get(_get_prototype_of(r.prototype), "createRenderRoot", this).call(this);
1784
1784
  var _renderBefore;
1785
1785
  return (_renderBefore = (_this_renderOptions = this.renderOptions).renderBefore) !== null && _renderBefore !== void 0 ? _renderBefore : _this_renderOptions.renderBefore = _$t.firstChild, _$t;
1786
1786
  }
@@ -1788,42 +1788,42 @@ var _globalThis1;
1788
1788
  {
1789
1789
  key: "update",
1790
1790
  value: function update(t) {
1791
- var i = this.render();
1792
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(s.prototype), "update", this).call(this, t), this._$Do = j(i, this.renderRoot, this.renderOptions);
1791
+ var s = this.render();
1792
+ 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);
1793
1793
  }
1794
1794
  },
1795
1795
  {
1796
1796
  key: "connectedCallback",
1797
1797
  value: function connectedCallback() {
1798
1798
  var _this__$Do;
1799
- _get(_get_prototype_of(s.prototype), "connectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!0);
1799
+ _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);
1800
1800
  }
1801
1801
  },
1802
1802
  {
1803
1803
  key: "disconnectedCallback",
1804
1804
  value: function disconnectedCallback() {
1805
1805
  var _this__$Do;
1806
- _get(_get_prototype_of(s.prototype), "disconnectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!1);
1806
+ _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);
1807
1807
  }
1808
1808
  },
1809
1809
  {
1810
1810
  key: "render",
1811
1811
  value: function render() {
1812
- return w;
1812
+ return T;
1813
1813
  }
1814
1814
  }
1815
1815
  ]);
1816
- return s;
1816
+ return r;
1817
1817
  }(b);
1818
- s._$litElement$ = !0, s["finalized"] = !0, (_globalThis_litElementHydrateSupport = (_globalThis = globalThis).litElementHydrateSupport) === null || _globalThis_litElementHydrateSupport === void 0 ? void 0 : _globalThis_litElementHydrateSupport.call(_globalThis, {
1819
- LitElement: s
1818
+ r$2._$litElement$ = !0, r$2["finalized"] = !0, (_globalThis_litElementHydrateSupport = (_globalThis = globalThis).litElementHydrateSupport) === null || _globalThis_litElementHydrateSupport === void 0 ? void 0 : _globalThis_litElementHydrateSupport.call(_globalThis, {
1819
+ LitElement: r$2
1820
1820
  });
1821
- var r$2 = globalThis.litElementPolyfillSupport;
1822
- r$2 === null || r$2 === void 0 ? void 0 : r$2({
1823
- LitElement: s
1821
+ var i = globalThis.litElementPolyfillSupport;
1822
+ i === null || i === void 0 ? void 0 : i({
1823
+ LitElement: r$2
1824
1824
  });
1825
1825
  var _litElementVersions;
1826
- ((_litElementVersions = (_globalThis1 = globalThis).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _globalThis1.litElementVersions = []).push("4.0.6");
1826
+ ((_litElementVersions = (_globalThis1 = globalThis).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _globalThis1.litElementVersions = []).push("4.1.1");
1827
1827
 
1828
1828
  /**
1829
1829
  * @license
@@ -1998,7 +1998,7 @@ function _object_spread_props(target, source) {
1998
1998
  }));
1999
1999
  }
2000
2000
 
2001
- class InputFileElement extends s {
2001
+ class InputFileElement extends r$2 {
2002
2002
  get content() {
2003
2003
  return this._content;
2004
2004
  }
@@ -2054,7 +2054,7 @@ class InputFileElement extends s {
2054
2054
  this._value = '';
2055
2055
  }
2056
2056
  }
2057
- InputFileElement.styles = i$2`
2057
+ InputFileElement.styles = i$3`
2058
2058
  .download {
2059
2059
  padding: 10px 15px;
2060
2060
  margin-bottom: 10px;
@@ -2110,7 +2110,7 @@ InputFileElement = __decorate([
2110
2110
  t('digipair-input-file')
2111
2111
  ], InputFileElement);
2112
2112
 
2113
- class InputJsonElement extends s {
2113
+ class InputJsonElement extends r$2 {
2114
2114
  get content() {
2115
2115
  return this._content;
2116
2116
  }
@@ -2166,7 +2166,7 @@ class InputJsonElement extends s {
2166
2166
  this._value = '';
2167
2167
  }
2168
2168
  }
2169
- InputJsonElement.styles = i$2`
2169
+ InputJsonElement.styles = i$3`
2170
2170
  .download {
2171
2171
  padding: 10px 15px;
2172
2172
  margin-bottom: 10px;
@@ -2222,7 +2222,7 @@ InputJsonElement = __decorate([
2222
2222
  t('digipair-input-json')
2223
2223
  ], InputJsonElement);
2224
2224
 
2225
- class InputTextElement extends s {
2225
+ class InputTextElement extends r$2 {
2226
2226
  get content() {
2227
2227
  return this._content;
2228
2228
  }
@@ -2278,7 +2278,7 @@ class InputTextElement extends s {
2278
2278
  this._value = '';
2279
2279
  }
2280
2280
  }
2281
- InputTextElement.styles = i$2`
2281
+ InputTextElement.styles = i$3`
2282
2282
  .download {
2283
2283
  padding: 10px 15px;
2284
2284
  margin-bottom: 10px;
@@ -2334,7 +2334,7 @@ InputTextElement = __decorate([
2334
2334
  t('digipair-input-text')
2335
2335
  ], InputTextElement);
2336
2336
 
2337
- class DomAttributeElement extends s {
2337
+ class DomAttributeElement extends r$2 {
2338
2338
  get value() {
2339
2339
  return this._value;
2340
2340
  }
@@ -2531,8 +2531,7 @@ var DEFAULT_OPTIONS = {
2531
2531
  */ function sanitizeRoot(input, element) {
2532
2532
  if (isParentNode(input)) {
2533
2533
  if (!input.contains(element)) {
2534
- // eslint-disable-next-line max-len
2535
- showWarning("element root mismatch", "Provided root does not contain the element. This will most likely result in producing a fallback selector using element's real root node. If you plan to use the selector using provided root (e.g. `root.querySelector`), it will nto work as intended.");
2534
+ showWarning("element root mismatch", "Provided root does not contain the element. This will most likely result in producing a fallback selector using element's real root node. If you plan to use the selector using provided root (e.g. `root.querySelector`), it will not work as intended.");
2536
2535
  }
2537
2536
  return input;
2538
2537
  }
@@ -2541,12 +2540,11 @@ var DEFAULT_OPTIONS = {
2541
2540
  });
2542
2541
  if (isParentNode(rootNode)) {
2543
2542
  if (rootNode !== document) {
2544
- // eslint-disable-next-line max-len
2545
2543
  showWarning("shadow root inferred", "You did not provide a root and the element is a child of Shadow DOM. This will produce a selector using ShadowRoot as a root. If you plan to use the selector using document as a root (e.g. `document.querySelector`), it will not work as intended.");
2546
2544
  }
2547
2545
  return rootNode;
2548
2546
  }
2549
- return element.ownerDocument.querySelector(":root");
2547
+ return getRootNode(element);
2550
2548
  }
2551
2549
  /**
2552
2550
  * Makes sure that the output is a number, usable as `maxResults` option in
@@ -2647,7 +2645,6 @@ function _unsupported_iterable_to_array$7(o, minLen) {
2647
2645
  return function(input) {
2648
2646
  var result = item(input);
2649
2647
  if (typeof result !== "boolean") {
2650
- // eslint-disable-next-line max-len
2651
2648
  showWarning("pattern matcher function invalid", "Provided pattern matching function does not return boolean. It's result will be ignored.", item);
2652
2649
  return false;
2653
2650
  }
@@ -2660,7 +2657,6 @@ function _unsupported_iterable_to_array$7(o, minLen) {
2660
2657
  return re.test(input);
2661
2658
  };
2662
2659
  }
2663
- // eslint-disable-next-line max-len
2664
2660
  showWarning("pattern matcher invalid", "Pattern matching only accepts strings, regular expressions and/or functions. This item is invalid and will be ignored.", item);
2665
2661
  return function() {
2666
2662
  return false;
@@ -2703,6 +2699,7 @@ function _unsupported_iterable_to_array$7(o, minLen) {
2703
2699
  /**
2704
2700
  * Returns root node for given element. This needs to be used because of document-less environments, e.g. jsdom.
2705
2701
  */ function getRootNode(element) {
2702
+ // The `:root` selector always returns a parent node. The `null` return value is not applicable here.
2706
2703
  return element.ownerDocument.querySelector(":root");
2707
2704
  }
2708
2705
 
@@ -2771,9 +2768,9 @@ var attributeBlacklistMatch = createPatternMatcher([
2771
2768
  return "[".concat(name, "='").concat(value, "']");
2772
2769
  }
2773
2770
  /**
2774
- * Checks whether attribute should be used as a selector.
2771
+ * Checks whether an attribute should be used as a selector.
2775
2772
  */ function isValidAttributeNode(param, element) {
2776
- var nodeName = param.nodeName;
2773
+ var nodeName = param.nodeName, nodeValue = param.nodeValue;
2777
2774
  // form input value should not be used as a selector
2778
2775
  var tagName = element.tagName.toLowerCase();
2779
2776
  if ([
@@ -2782,6 +2779,10 @@ var attributeBlacklistMatch = createPatternMatcher([
2782
2779
  ].includes(tagName) && nodeName === "value") {
2783
2780
  return false;
2784
2781
  }
2782
+ // ignore Base64-encoded strings as 'src' attribute values (e.g. in tags like img, audio, video, iframe, object, embed).
2783
+ if (nodeName === "src" && (nodeValue === null || nodeValue === void 0 ? void 0 : nodeValue.startsWith("data:"))) {
2784
+ return false;
2785
+ }
2785
2786
  return !attributeBlacklistMatch(nodeName);
2786
2787
  }
2787
2788
  /**
@@ -2790,7 +2791,7 @@ var attributeBlacklistMatch = createPatternMatcher([
2790
2791
  var nodeName = param.nodeName, nodeValue = param.nodeValue;
2791
2792
  return {
2792
2793
  name: sanitizeSelectorItem(nodeName),
2793
- value: sanitizeSelectorItem(nodeValue)
2794
+ value: sanitizeSelectorItem(nodeValue !== null && nodeValue !== void 0 ? nodeValue : undefined)
2794
2795
  };
2795
2796
  }
2796
2797
  /**
@@ -2811,7 +2812,8 @@ var attributeBlacklistMatch = createPatternMatcher([
2811
2812
  /**
2812
2813
  * Get class selectors for an element.
2813
2814
  */ function getElementClassSelectors(element) {
2814
- return (element.getAttribute("class") || "").trim().split(/\s+/).filter(function(item) {
2815
+ var _a;
2816
+ return ((_a = element.getAttribute("class")) !== null && _a !== void 0 ? _a : "").trim().split(/\s+/).filter(function(item) {
2815
2817
  return !INVALID_CLASS_RE.test(item);
2816
2818
  }).map(function(item) {
2817
2819
  return ".".concat(sanitizeSelectorItem(item));
@@ -2827,7 +2829,8 @@ var attributeBlacklistMatch = createPatternMatcher([
2827
2829
  /**
2828
2830
  * Get ID selector for an element.
2829
2831
  * */ function getElementIdSelectors(element) {
2830
- var id = element.getAttribute("id") || "";
2832
+ var _a;
2833
+ var id = (_a = element.getAttribute("id")) !== null && _a !== void 0 ? _a : "";
2831
2834
  var selector = "#".concat(sanitizeSelectorItem(id));
2832
2835
  var rootNode = element.getRootNode({
2833
2836
  composed: false
@@ -2853,7 +2856,7 @@ var attributeBlacklistMatch = createPatternMatcher([
2853
2856
  var elementIndex = siblings.indexOf(element);
2854
2857
  if (elementIndex > -1) {
2855
2858
  return [
2856
- ":nth-child(".concat(elementIndex + 1, ")")
2859
+ ":nth-child(".concat(String(elementIndex + 1), ")")
2857
2860
  ];
2858
2861
  }
2859
2862
  }
@@ -2920,7 +2923,7 @@ function _unsupported_iterable_to_array$5(o, minLen) {
2920
2923
  var elementIndex = siblings.indexOf(element);
2921
2924
  if (elementIndex > -1) {
2922
2925
  return [
2923
- "".concat(tag, ":nth-of-type(").concat(elementIndex + 1, ")")
2926
+ "".concat(tag, ":nth-of-type(").concat(String(elementIndex + 1), ")")
2924
2927
  ];
2925
2928
  }
2926
2929
  }
@@ -3249,8 +3252,9 @@ var ESCAPED_COLON = ":".charCodeAt(0).toString(16).toUpperCase();
3249
3252
  * Escapes special characters used by CSS selector items.
3250
3253
  */ function sanitizeSelectorItem() {
3251
3254
  var input = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
3252
- var _a, _b;
3253
- return (_b = (_a = CSS === null || CSS === void 0 ? void 0 : CSS.escape) === null || _a === void 0 ? void 0 : _a.call(CSS, input)) !== null && _b !== void 0 ? _b : legacySanitizeSelectorItem(input);
3255
+ // This should not be necessary, but just to be sure, let's keep the legacy sanitizer in place, for backwards compatibility.
3256
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
3257
+ return CSS ? CSS.escape(input) : legacySanitizeSelectorItem(input);
3254
3258
  }
3255
3259
  /**
3256
3260
  * Legacy version of escaping utility, originally used for IE11-. Should
@@ -3265,6 +3269,8 @@ var ESCAPED_COLON = ":".charCodeAt(0).toString(16).toUpperCase();
3265
3269
  if (SPECIAL_CHARACTERS_RE.test(character)) {
3266
3270
  return "\\".concat(character);
3267
3271
  }
3272
+ // needed for backwards compatibility
3273
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
3268
3274
  return escape(character).replace(/%/g, "\\");
3269
3275
  }).join("");
3270
3276
  }
@@ -3292,10 +3298,7 @@ var ELEMENT_SELECTOR_TYPE_GETTERS = {
3292
3298
  /**
3293
3299
  * Returns list of selectors of given type for the element.
3294
3300
  */ function getSelectorsByType(elements, selector_type) {
3295
- var _a;
3296
- var getter = (_a = SELECTOR_TYPE_GETTERS[selector_type]) !== null && _a !== void 0 ? _a : function() {
3297
- return [];
3298
- };
3301
+ var getter = SELECTOR_TYPE_GETTERS[selector_type];
3299
3302
  return getter(elements);
3300
3303
  }
3301
3304
  /**
@@ -3355,7 +3358,7 @@ var ELEMENT_SELECTOR_TYPE_GETTERS = {
3355
3358
  * Creates list of selector types that we will need to generate the selector.
3356
3359
  */ function getSelectorsToGet(options) {
3357
3360
  var selectors = options.selectors, includeTag = options.includeTag;
3358
- var selectors_to_get = [].concat(selectors);
3361
+ var selectors_to_get = _to_consumable_array$2(selectors);
3359
3362
  if (includeTag && !selectors_to_get.includes("tag")) {
3360
3363
  selectors_to_get.push("tag");
3361
3364
  }
@@ -3398,7 +3401,7 @@ var ELEMENT_SELECTOR_TYPE_GETTERS = {
3398
3401
  var data = {};
3399
3402
  selector_types.forEach(function(selector_type) {
3400
3403
  var selector_variants = selectors_by_type[selector_type];
3401
- if (selector_variants.length > 0) {
3404
+ if (selector_variants && selector_variants.length > 0) {
3402
3405
  data[selector_type] = selector_variants;
3403
3406
  }
3404
3407
  });
@@ -3440,16 +3443,16 @@ var ELEMENT_SELECTOR_TYPE_GETTERS = {
3440
3443
  return rootSelector === "" ? selectors : generateCandidateCombinations(selectors, rootSelector);
3441
3444
  }
3442
3445
  /**
3443
- * Tries to find an unique CSS selector for element within given parent.
3446
+ * Tries to find a unique CSS selector for element within given parent.
3444
3447
  */ function getSelectorWithinRoot(elements, root) {
3445
3448
  var rootSelector = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "", options = arguments.length > 3 ? arguments[3] : void 0;
3446
- var elementSelectors = getAllSelectors(elements, options.root, options);
3449
+ var elementSelectors = getAllSelectors(elements, root, options);
3447
3450
  var selectorCandidates = generateCandidates(elementSelectors, rootSelector);
3448
3451
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
3449
3452
  try {
3450
3453
  for(var _iterator = selectorCandidates[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
3451
3454
  var candidateSelector = _step.value;
3452
- if (testSelector(elements, candidateSelector, options.root)) {
3455
+ if (testSelector(elements, candidateSelector, root)) {
3453
3456
  return candidateSelector;
3454
3457
  }
3455
3458
  }
@@ -3584,7 +3587,8 @@ function _unsupported_iterable_to_array$1(o, minLen) {
3584
3587
  }
3585
3588
  var selector = "";
3586
3589
  pattern.forEach(function(selectorType) {
3587
- var selectorsOfType = selectors[selectorType] || [];
3590
+ var _a;
3591
+ var selectorsOfType = (_a = selectors[selectorType]) !== null && _a !== void 0 ? _a : [];
3588
3592
  selectorsOfType.forEach(function(param) {
3589
3593
  var value = param.value, include = param.include;
3590
3594
  if (include) {
@@ -3647,10 +3651,12 @@ function _unsupported_iterable_to_array(o, minLen) {
3647
3651
  * Generates unique CSS selector for an element.
3648
3652
  */ function getCssSelector$1(needle) {
3649
3653
  var custom_options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3654
+ var _a;
3650
3655
  var elements = sanitizeSelectorNeedle(needle);
3651
3656
  var options = sanitizeOptions(elements[0], custom_options);
3657
+ var root = (_a = options.root) !== null && _a !== void 0 ? _a : getRootNode(elements[0]);
3652
3658
  var partialSelector = "";
3653
- var currentRoot = options.root;
3659
+ var currentRoot = root;
3654
3660
  /**
3655
3661
  * Utility function to make subsequent calls shorter.
3656
3662
  */ function updateIdentifiableParent() {
@@ -3659,7 +3665,7 @@ function _unsupported_iterable_to_array(o, minLen) {
3659
3665
  var closestIdentifiableParent = updateIdentifiableParent();
3660
3666
  while(closestIdentifiableParent){
3661
3667
  var foundElements = closestIdentifiableParent.foundElements, selector = closestIdentifiableParent.selector;
3662
- if (testSelector(elements, selector, options.root)) {
3668
+ if (testSelector(elements, selector, root)) {
3663
3669
  return selector;
3664
3670
  }
3665
3671
  currentRoot = foundElements[0];
@@ -3684,7 +3690,7 @@ function getCssSelector(element, options = {}) {
3684
3690
  return unescapeCSS(selector);
3685
3691
  }
3686
3692
 
3687
- class ElementElement extends s {
3693
+ class ElementElement extends r$2 {
3688
3694
  get content() {
3689
3695
  return this._content;
3690
3696
  }
@@ -3791,7 +3797,7 @@ class ElementElement extends s {
3791
3797
  blacklist: [
3792
3798
  '.digipair-input-element-selecting'
3793
3799
  ]
3794
- })})` : T}
3800
+ })})` : E}
3795
3801
  </p>` : x` <ui5-icon name="add-document"></ui5-icon>
3796
3802
  <p>${this.label}</p>`}
3797
3803
  </section>
@@ -3808,7 +3814,7 @@ class ElementElement extends s {
3808
3814
  this._value = '';
3809
3815
  }
3810
3816
  }
3811
- ElementElement.styles = i$2`
3817
+ ElementElement.styles = i$3`
3812
3818
  .digipair-input {
3813
3819
  padding: 10px 15px;
3814
3820
  margin-bottom: 10px;
@@ -3864,7 +3870,7 @@ ElementElement = __decorate([
3864
3870
  t('digipair-input-element')
3865
3871
  ], ElementElement);
3866
3872
 
3867
- class FetchElement extends s {
3873
+ class FetchElement extends r$2 {
3868
3874
  get value() {
3869
3875
  return this._value;
3870
3876
  }
@@ -3909,7 +3915,7 @@ FetchElement = __decorate([
3909
3915
  t('digipair-input-fetch')
3910
3916
  ], FetchElement);
3911
3917
 
3912
- class HiddenElement extends s {
3918
+ class HiddenElement extends r$2 {
3913
3919
  render() {
3914
3920
  return x``;
3915
3921
  }