@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.esm.js CHANGED
@@ -42,11 +42,11 @@ function _instanceof$2(left, right) {
42
42
  return left instanceof right;
43
43
  }
44
44
  }
45
- 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;
45
+ 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;
46
46
  var n$3 = /*#__PURE__*/ function() {
47
47
  function n(t, e, o) {
48
48
  _class_call_check$3(this, n);
49
- if (this._$cssResult$ = !0, o !== s$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
49
+ if (this._$cssResult$ = !0, o !== s$1) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
50
50
  this.cssText = t, this.t = e;
51
51
  }
52
52
  _create_class$3(n, [
@@ -72,8 +72,8 @@ var n$3 = /*#__PURE__*/ function() {
72
72
  return n;
73
73
  }();
74
74
  var r$5 = function(t) {
75
- return new n$3("string" == typeof t ? t : t + "", void 0, s$2);
76
- }, i$2 = function(t) {
75
+ return new n$3("string" == typeof t ? t : t + "", void 0, s$1);
76
+ }, i$3 = function(t) {
77
77
  for(var _len = arguments.length, e = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
78
78
  e[_key - 1] = arguments[_key];
79
79
  }
@@ -84,7 +84,7 @@ var r$5 = function(t) {
84
84
  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.");
85
85
  }(s) + t[o + 1];
86
86
  }, t[0]);
87
- return new n$3(o, t, s$2);
87
+ return new n$3(o, t, s$1);
88
88
  }, S$1 = function(s, o) {
89
89
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
90
90
  if (e$2) s.adoptedStyleSheets = o.map(function(t) {
@@ -457,7 +457,7 @@ var _Symbol, _a, _a1;
457
457
  * @license
458
458
  * Copyright 2017 Google LLC
459
459
  * SPDX-License-Identifier: BSD-3-Clause
460
- */ 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) {
460
+ */ 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) {
461
461
  return t;
462
462
  }, u$1 = {
463
463
  toAttribute: function toAttribute(t, s) {
@@ -491,7 +491,7 @@ var _Symbol, _a, _a1;
491
491
  return i;
492
492
  }
493
493
  }, f$1 = function(t, s) {
494
- return !i$1(t, s);
494
+ return !i$2(t, s);
495
495
  }, y$1 = {
496
496
  attribute: !0,
497
497
  type: String,
@@ -1166,7 +1166,7 @@ function _create_super$1(Derived) {
1166
1166
  };
1167
1167
  }
1168
1168
  var _t;
1169
- var t$1 = globalThis, i = t$1.trustedTypes, s$1 = i ? i.createPolicy("lit-html", {
1169
+ var t$1 = globalThis, i$1 = t$1.trustedTypes, s = i$1 ? i$1.createPolicy("lit-html", {
1170
1170
  createHTML: function(t) {
1171
1171
  return t;
1172
1172
  }
@@ -1187,14 +1187,14 @@ var t$1 = globalThis, i = t$1.trustedTypes, s$1 = i ? i.createPolicy("lit-html",
1187
1187
  values: s
1188
1188
  };
1189
1189
  };
1190
- }, x = y(1), w = Symbol.for("lit-noChange"), T = Symbol.for("lit-nothing"), A = new WeakMap, E = r$3.createTreeWalker(r$3, 129);
1191
- function C(t, i) {
1192
- if (!Array.isArray(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
1193
- return void 0 !== s$1 ? s$1.createHTML(i) : i;
1190
+ }, x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap, C = r$3.createTreeWalker(r$3, 129);
1191
+ function P(t, i) {
1192
+ if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
1193
+ return void 0 !== s ? s.createHTML(i) : i;
1194
1194
  }
1195
- var P = function(t, i) {
1195
+ var V = function(t, i) {
1196
1196
  var s = t.length - 1, o = [];
1197
- var r, l = 2 === i ? "<svg>" : "", c = f;
1197
+ var r, l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "", c = f;
1198
1198
  for(var _$i = 0; _$i < s; _$i++){
1199
1199
  var s1 = t[_$i];
1200
1200
  var a = void 0, u = void 0, d = -1, y = 0;
@@ -1203,24 +1203,24 @@ var P = function(t, i) {
1203
1203
  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);
1204
1204
  }
1205
1205
  return [
1206
- C(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : "")),
1206
+ P(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")),
1207
1207
  o
1208
1208
  ];
1209
1209
  };
1210
- var V = /*#__PURE__*/ function() {
1211
- function V(param, n) {
1210
+ var N = /*#__PURE__*/ function() {
1211
+ function N(param, n) {
1212
1212
  var t = param.strings, s = param._$litType$;
1213
- _class_call_check$1(this, V);
1213
+ _class_call_check$1(this, N);
1214
1214
  var r;
1215
1215
  this.parts = [];
1216
1216
  var c = 0, a = 0;
1217
- var u = t.length - 1, d = this.parts, _P = _sliced_to_array$1(P(t, s), 2), f = _P[0], v = _P[1];
1218
- if (this.el = V.createElement(f, n), E.currentNode = this.el.content, 2 === s) {
1217
+ var u = t.length - 1, d = this.parts, _V = _sliced_to_array$1(V(t, s), 2), f = _V[0], v = _V[1];
1218
+ if (this.el = N.createElement(f, n), C.currentNode = this.el.content, 2 === s || 3 === s) {
1219
1219
  var _t;
1220
1220
  var t1 = this.el.content.firstChild;
1221
1221
  (_t = t1).replaceWith.apply(_t, _to_consumable_array$8(t1.childNodes));
1222
1222
  }
1223
- for(; null !== (r = E.nextNode()) && d.length < u;){
1223
+ for(; null !== (r = C.nextNode()) && d.length < u;){
1224
1224
  if (1 === r.nodeType) {
1225
1225
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1226
1226
  if (r.hasAttributes()) try {
@@ -1233,7 +1233,7 @@ var V = /*#__PURE__*/ function() {
1233
1233
  index: c,
1234
1234
  name: e1[2],
1235
1235
  strings: s1,
1236
- ctor: "." === e1[1] ? k : "?" === e1[1] ? H : "@" === e1[1] ? I : R
1236
+ ctor: "." === e1[1] ? H : "?" === e1[1] ? I : "@" === e1[1] ? L : k
1237
1237
  }), r.removeAttribute(t2);
1238
1238
  } else t2.startsWith(h) && (d.push({
1239
1239
  type: 6,
@@ -1257,8 +1257,8 @@ var V = /*#__PURE__*/ function() {
1257
1257
  if ($.test(r.tagName)) {
1258
1258
  var t3 = r.textContent.split(h), s2 = t3.length - 1;
1259
1259
  if (s2 > 0) {
1260
- r.textContent = i ? i.emptyScript : "";
1261
- for(var i2 = 0; i2 < s2; i2++)r.append(t3[i2], l()), E.nextNode(), d.push({
1260
+ r.textContent = i$1 ? i$1.emptyScript : "";
1261
+ for(var i2 = 0; i2 < s2; i2++)r.append(t3[i2], l()), C.nextNode(), d.push({
1262
1262
  type: 2,
1263
1263
  index: ++c
1264
1264
  });
@@ -1279,7 +1279,7 @@ var V = /*#__PURE__*/ function() {
1279
1279
  c++;
1280
1280
  }
1281
1281
  }
1282
- _create_class$1(V, null, [
1282
+ _create_class$1(N, null, [
1283
1283
  {
1284
1284
  key: "createElement",
1285
1285
  value: function createElement(t, i) {
@@ -1288,24 +1288,24 @@ var V = /*#__PURE__*/ function() {
1288
1288
  }
1289
1289
  }
1290
1290
  ]);
1291
- return V;
1291
+ return N;
1292
1292
  }();
1293
- function N(t, i) {
1293
+ function S(t, i) {
1294
1294
  var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : t, e = arguments.length > 3 ? arguments[3] : void 0;
1295
1295
  var _s__$Co, _h__$AO;
1296
1296
  var _s;
1297
- if (i === w) return i;
1297
+ if (i === T) return i;
1298
1298
  var h = void 0 !== e ? (_s__$Co = s._$Co) === null || _s__$Co === void 0 ? void 0 : _s__$Co[e] : s._$Cl;
1299
1299
  var o = c(i) ? void 0 : i._$litDirective$;
1300
1300
  var __$Co;
1301
- 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;
1301
+ 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;
1302
1302
  }
1303
- var S = /*#__PURE__*/ function() {
1304
- function S(t, i) {
1305
- _class_call_check$1(this, S);
1303
+ var M = /*#__PURE__*/ function() {
1304
+ function M(t, i) {
1305
+ _class_call_check$1(this, M);
1306
1306
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
1307
1307
  }
1308
- _create_class$1(S, [
1308
+ _create_class$1(M, [
1309
1309
  {
1310
1310
  key: "parentNode",
1311
1311
  get: function get() {
@@ -1323,16 +1323,16 @@ var S = /*#__PURE__*/ function() {
1323
1323
  value: function u(t) {
1324
1324
  var _t_creationScope;
1325
1325
  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);
1326
- E.currentNode = e;
1327
- var h = E.nextNode(), o = 0, n = 0, l = s[0];
1326
+ C.currentNode = e;
1327
+ var h = C.nextNode(), o = 0, n = 0, l = s[0];
1328
1328
  for(; void 0 !== l;){
1329
1329
  if (o === l.index) {
1330
1330
  var i1 = void 0;
1331
- 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];
1331
+ 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];
1332
1332
  }
1333
- o !== (l === null || l === void 0 ? void 0 : l.index) && (h = E.nextNode(), o++);
1333
+ o !== (l === null || l === void 0 ? void 0 : l.index) && (h = C.nextNode(), o++);
1334
1334
  }
1335
- return E.currentNode = r$3, e;
1335
+ return C.currentNode = r$3, e;
1336
1336
  }
1337
1337
  },
1338
1338
  {
@@ -1362,15 +1362,15 @@ var S = /*#__PURE__*/ function() {
1362
1362
  }
1363
1363
  }
1364
1364
  ]);
1365
- return S;
1365
+ return M;
1366
1366
  }();
1367
- var M = /*#__PURE__*/ function() {
1368
- function M(t, i, s, e) {
1369
- _class_call_check$1(this, M);
1367
+ var R = /*#__PURE__*/ function() {
1368
+ function R(t, i, s, e) {
1369
+ _class_call_check$1(this, R);
1370
1370
  var _e_isConnected;
1371
- 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;
1371
+ 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;
1372
1372
  }
1373
- _create_class$1(M, [
1373
+ _create_class$1(R, [
1374
1374
  {
1375
1375
  key: "_$AU",
1376
1376
  get: function get() {
@@ -1403,35 +1403,35 @@ var M = /*#__PURE__*/ function() {
1403
1403
  key: "_$AI",
1404
1404
  value: function _$AI(t) {
1405
1405
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
1406
- 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);
1406
+ 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);
1407
1407
  }
1408
1408
  },
1409
1409
  {
1410
- key: "S",
1411
- value: function S(t) {
1410
+ key: "O",
1411
+ value: function O(t) {
1412
1412
  return this._$AA.parentNode.insertBefore(t, this._$AB);
1413
1413
  }
1414
1414
  },
1415
1415
  {
1416
1416
  key: "T",
1417
1417
  value: function T(t) {
1418
- this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
1418
+ this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
1419
1419
  }
1420
1420
  },
1421
1421
  {
1422
1422
  key: "_",
1423
1423
  value: function _(t) {
1424
- this._$AH !== T && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$3.createTextNode(t)), this._$AH = t;
1424
+ this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$3.createTextNode(t)), this._$AH = t;
1425
1425
  }
1426
1426
  },
1427
1427
  {
1428
1428
  key: "$",
1429
1429
  value: function $(t) {
1430
1430
  var _this__$AH;
1431
- 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);
1431
+ 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);
1432
1432
  if (((_this__$AH = this._$AH) === null || _this__$AH === void 0 ? void 0 : _this__$AH._$AD) === e) this._$AH.p(i);
1433
1433
  else {
1434
- var _$t = new S(e, this), s1 = _$t.u(this.options);
1434
+ var _$t = new M(e, this), s1 = _$t.u(this.options);
1435
1435
  _$t.p(i), this.T(s1), this._$AH = _$t;
1436
1436
  }
1437
1437
  }
@@ -1440,7 +1440,7 @@ var M = /*#__PURE__*/ function() {
1440
1440
  key: "_$AC",
1441
1441
  value: function _$AC(t) {
1442
1442
  var i = A.get(t.strings);
1443
- return void 0 === i && A.set(t.strings, i = new V(t)), i;
1443
+ return void 0 === i && A.set(t.strings, i = new N(t)), i;
1444
1444
  }
1445
1445
  },
1446
1446
  {
@@ -1453,7 +1453,7 @@ var M = /*#__PURE__*/ function() {
1453
1453
  try {
1454
1454
  for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1455
1455
  var h = _step.value;
1456
- e === i.length ? i.push(s = new M(this.S(l()), this.S(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
1456
+ e === i.length ? i.push(s = new R(this.O(l()), this.O(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
1457
1457
  }
1458
1458
  } catch (err) {
1459
1459
  _didIteratorError = true;
@@ -1491,14 +1491,14 @@ var M = /*#__PURE__*/ function() {
1491
1491
  }
1492
1492
  }
1493
1493
  ]);
1494
- return M;
1494
+ return R;
1495
1495
  }();
1496
- var R = /*#__PURE__*/ function() {
1497
- function R(t, i, s, e, h) {
1498
- _class_call_check$1(this, R);
1499
- 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;
1496
+ var k = /*#__PURE__*/ function() {
1497
+ function k(t, i, s, e, h) {
1498
+ _class_call_check$1(this, k);
1499
+ 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;
1500
1500
  }
1501
- _create_class$1(R, [
1501
+ _create_class$1(k, [
1502
1502
  {
1503
1503
  key: "tagName",
1504
1504
  get: function get() {
@@ -1517,11 +1517,11 @@ var R = /*#__PURE__*/ function() {
1517
1517
  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;
1518
1518
  var h = this.strings;
1519
1519
  var o = !1;
1520
- if (void 0 === h) t = N(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== w, o && (this._$AH = t);
1520
+ if (void 0 === h) t = S(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== T, o && (this._$AH = t);
1521
1521
  else {
1522
1522
  var e1 = t;
1523
1523
  var n, r;
1524
- 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;
1524
+ 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;
1525
1525
  }
1526
1526
  o && !e && this.j(t);
1527
1527
  }
@@ -1529,71 +1529,71 @@ var R = /*#__PURE__*/ function() {
1529
1529
  {
1530
1530
  key: "j",
1531
1531
  value: function j(t) {
1532
- t === T ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t !== null && t !== void 0 ? t : "");
1532
+ t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t !== null && t !== void 0 ? t : "");
1533
1533
  }
1534
1534
  }
1535
1535
  ]);
1536
- return R;
1536
+ return k;
1537
1537
  }();
1538
- var k = /*#__PURE__*/ function(R) {
1539
- _inherits$1(k, R);
1540
- var _super = _create_super$1(k);
1541
- function k() {
1542
- _class_call_check$1(this, k);
1538
+ var H = /*#__PURE__*/ function(k) {
1539
+ _inherits$1(H, k);
1540
+ var _super = _create_super$1(H);
1541
+ function H() {
1542
+ _class_call_check$1(this, H);
1543
1543
  var _this;
1544
1544
  _this = _super.call.apply(_super, [
1545
1545
  this
1546
1546
  ].concat(Array.prototype.slice.call(arguments))), _this.type = 3;
1547
1547
  return _possible_constructor_return$1(_this);
1548
1548
  }
1549
- _create_class$1(k, [
1549
+ _create_class$1(H, [
1550
1550
  {
1551
1551
  key: "j",
1552
1552
  value: function j(t) {
1553
- this.element[this.name] = t === T ? void 0 : t;
1553
+ this.element[this.name] = t === E ? void 0 : t;
1554
1554
  }
1555
1555
  }
1556
1556
  ]);
1557
- return k;
1558
- }(R);
1559
- var H = /*#__PURE__*/ function(R) {
1560
- _inherits$1(H, R);
1561
- var _super = _create_super$1(H);
1562
- function H() {
1563
- _class_call_check$1(this, H);
1557
+ return H;
1558
+ }(k);
1559
+ var I = /*#__PURE__*/ function(k) {
1560
+ _inherits$1(I, k);
1561
+ var _super = _create_super$1(I);
1562
+ function I() {
1563
+ _class_call_check$1(this, I);
1564
1564
  var _this;
1565
1565
  _this = _super.call.apply(_super, [
1566
1566
  this
1567
1567
  ].concat(Array.prototype.slice.call(arguments))), _this.type = 4;
1568
1568
  return _possible_constructor_return$1(_this);
1569
1569
  }
1570
- _create_class$1(H, [
1570
+ _create_class$1(I, [
1571
1571
  {
1572
1572
  key: "j",
1573
1573
  value: function j(t) {
1574
- this.element.toggleAttribute(this.name, !!t && t !== T);
1574
+ this.element.toggleAttribute(this.name, !!t && t !== E);
1575
1575
  }
1576
1576
  }
1577
1577
  ]);
1578
- return H;
1579
- }(R);
1580
- var I = /*#__PURE__*/ function(R) {
1581
- _inherits$1(I, R);
1582
- var _super = _create_super$1(I);
1583
- function I(t, i, s, e, h) {
1584
- _class_call_check$1(this, I);
1578
+ return I;
1579
+ }(k);
1580
+ var L = /*#__PURE__*/ function(k) {
1581
+ _inherits$1(L, k);
1582
+ var _super = _create_super$1(L);
1583
+ function L(t, i, s, e, h) {
1584
+ _class_call_check$1(this, L);
1585
1585
  var _this;
1586
1586
  _this = _super.call(this, t, i, s, e, h), _this.type = 5;
1587
1587
  return _possible_constructor_return$1(_this);
1588
1588
  }
1589
- _create_class$1(I, [
1589
+ _create_class$1(L, [
1590
1590
  {
1591
1591
  key: "_$AI",
1592
1592
  value: function _$AI(t) {
1593
1593
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
1594
- var _N;
1595
- if ((t = (_N = N(this, t, i, 0)) !== null && _N !== void 0 ? _N : T) === w) return;
1596
- 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);
1594
+ var _S;
1595
+ if ((t = (_S = S(this, t, i, 0)) !== null && _S !== void 0 ? _S : E) === T) return;
1596
+ 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);
1597
1597
  e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
1598
1598
  }
1599
1599
  },
@@ -1606,14 +1606,14 @@ var I = /*#__PURE__*/ function(R) {
1606
1606
  }
1607
1607
  }
1608
1608
  ]);
1609
- return I;
1610
- }(R);
1611
- var L = /*#__PURE__*/ function() {
1612
- function L(t, i, s) {
1613
- _class_call_check$1(this, L);
1609
+ return L;
1610
+ }(k);
1611
+ var z = /*#__PURE__*/ function() {
1612
+ function z(t, i, s) {
1613
+ _class_call_check$1(this, z);
1614
1614
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
1615
1615
  }
1616
- _create_class$1(L, [
1616
+ _create_class$1(z, [
1617
1617
  {
1618
1618
  key: "_$AU",
1619
1619
  get: function get() {
@@ -1623,23 +1623,23 @@ var L = /*#__PURE__*/ function() {
1623
1623
  {
1624
1624
  key: "_$AI",
1625
1625
  value: function _$AI(t) {
1626
- N(this, t);
1626
+ S(this, t);
1627
1627
  }
1628
1628
  }
1629
1629
  ]);
1630
- return L;
1630
+ return z;
1631
1631
  }();
1632
- var Z = t$1.litHtmlPolyfillSupport;
1632
+ var j = t$1.litHtmlPolyfillSupport;
1633
1633
  var _litHtmlVersions;
1634
- 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");
1635
- var j = function(t, i, s) {
1634
+ 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");
1635
+ var B = function(t, i, s) {
1636
1636
  var _s_renderBefore;
1637
1637
  var e = (_s_renderBefore = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore !== void 0 ? _s_renderBefore : i;
1638
1638
  var h = e._$litPart$;
1639
1639
  if (void 0 === h) {
1640
1640
  var _s_renderBefore1;
1641
1641
  var _$t = (_s_renderBefore1 = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore1 !== void 0 ? _s_renderBefore1 : null;
1642
- e._$litPart$ = h = new M(i.insertBefore(l(), _$t), _$t, void 0, s !== null && s !== void 0 ? s : {});
1642
+ e._$litPart$ = h = new R(i.insertBefore(l(), _$t), _$t, void 0, s !== null && s !== void 0 ? s : {});
1643
1643
  }
1644
1644
  return h._$AI(t), h;
1645
1645
  };
@@ -1758,11 +1758,11 @@ var _globalThis1;
1758
1758
  * @license
1759
1759
  * Copyright 2017 Google LLC
1760
1760
  * SPDX-License-Identifier: BSD-3-Clause
1761
- */ var s = /*#__PURE__*/ function(t) {
1762
- _inherits(s, t);
1763
- var _super = _create_super(s);
1764
- function s() {
1765
- _class_call_check(this, s);
1761
+ */ var r$2 = /*#__PURE__*/ function(t) {
1762
+ _inherits(r, t);
1763
+ var _super = _create_super(r);
1764
+ function r() {
1765
+ _class_call_check(this, r);
1766
1766
  var _this;
1767
1767
  _this = _super.call.apply(_super, [
1768
1768
  this
@@ -1771,12 +1771,12 @@ var _globalThis1;
1771
1771
  }, _this._$Do = void 0;
1772
1772
  return _possible_constructor_return(_this);
1773
1773
  }
1774
- _create_class(s, [
1774
+ _create_class(r, [
1775
1775
  {
1776
1776
  key: "createRenderRoot",
1777
1777
  value: function createRenderRoot() {
1778
1778
  var _this_renderOptions;
1779
- var _$t = _get(_get_prototype_of(s.prototype), "createRenderRoot", this).call(this);
1779
+ var _$t = _get(_get_prototype_of(r.prototype), "createRenderRoot", this).call(this);
1780
1780
  var _renderBefore;
1781
1781
  return (_renderBefore = (_this_renderOptions = this.renderOptions).renderBefore) !== null && _renderBefore !== void 0 ? _renderBefore : _this_renderOptions.renderBefore = _$t.firstChild, _$t;
1782
1782
  }
@@ -1784,42 +1784,42 @@ var _globalThis1;
1784
1784
  {
1785
1785
  key: "update",
1786
1786
  value: function update(t) {
1787
- var i = this.render();
1788
- 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);
1787
+ var s = this.render();
1788
+ 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);
1789
1789
  }
1790
1790
  },
1791
1791
  {
1792
1792
  key: "connectedCallback",
1793
1793
  value: function connectedCallback() {
1794
1794
  var _this__$Do;
1795
- _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);
1795
+ _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);
1796
1796
  }
1797
1797
  },
1798
1798
  {
1799
1799
  key: "disconnectedCallback",
1800
1800
  value: function disconnectedCallback() {
1801
1801
  var _this__$Do;
1802
- _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);
1802
+ _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);
1803
1803
  }
1804
1804
  },
1805
1805
  {
1806
1806
  key: "render",
1807
1807
  value: function render() {
1808
- return w;
1808
+ return T;
1809
1809
  }
1810
1810
  }
1811
1811
  ]);
1812
- return s;
1812
+ return r;
1813
1813
  }(b);
1814
- s._$litElement$ = !0, s["finalized"] = !0, (_globalThis_litElementHydrateSupport = (_globalThis = globalThis).litElementHydrateSupport) === null || _globalThis_litElementHydrateSupport === void 0 ? void 0 : _globalThis_litElementHydrateSupport.call(_globalThis, {
1815
- LitElement: s
1814
+ r$2._$litElement$ = !0, r$2["finalized"] = !0, (_globalThis_litElementHydrateSupport = (_globalThis = globalThis).litElementHydrateSupport) === null || _globalThis_litElementHydrateSupport === void 0 ? void 0 : _globalThis_litElementHydrateSupport.call(_globalThis, {
1815
+ LitElement: r$2
1816
1816
  });
1817
- var r$2 = globalThis.litElementPolyfillSupport;
1818
- r$2 === null || r$2 === void 0 ? void 0 : r$2({
1819
- LitElement: s
1817
+ var i = globalThis.litElementPolyfillSupport;
1818
+ i === null || i === void 0 ? void 0 : i({
1819
+ LitElement: r$2
1820
1820
  });
1821
1821
  var _litElementVersions;
1822
- ((_litElementVersions = (_globalThis1 = globalThis).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _globalThis1.litElementVersions = []).push("4.0.6");
1822
+ ((_litElementVersions = (_globalThis1 = globalThis).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _globalThis1.litElementVersions = []).push("4.1.1");
1823
1823
 
1824
1824
  /**
1825
1825
  * @license
@@ -1994,7 +1994,7 @@ function _object_spread_props(target, source) {
1994
1994
  }));
1995
1995
  }
1996
1996
 
1997
- class InputFileElement extends s {
1997
+ class InputFileElement extends r$2 {
1998
1998
  get content() {
1999
1999
  return this._content;
2000
2000
  }
@@ -2050,7 +2050,7 @@ class InputFileElement extends s {
2050
2050
  this._value = '';
2051
2051
  }
2052
2052
  }
2053
- InputFileElement.styles = i$2`
2053
+ InputFileElement.styles = i$3`
2054
2054
  .download {
2055
2055
  padding: 10px 15px;
2056
2056
  margin-bottom: 10px;
@@ -2106,7 +2106,7 @@ InputFileElement = __decorate([
2106
2106
  t('digipair-input-file')
2107
2107
  ], InputFileElement);
2108
2108
 
2109
- class InputJsonElement extends s {
2109
+ class InputJsonElement extends r$2 {
2110
2110
  get content() {
2111
2111
  return this._content;
2112
2112
  }
@@ -2162,7 +2162,7 @@ class InputJsonElement extends s {
2162
2162
  this._value = '';
2163
2163
  }
2164
2164
  }
2165
- InputJsonElement.styles = i$2`
2165
+ InputJsonElement.styles = i$3`
2166
2166
  .download {
2167
2167
  padding: 10px 15px;
2168
2168
  margin-bottom: 10px;
@@ -2218,7 +2218,7 @@ InputJsonElement = __decorate([
2218
2218
  t('digipair-input-json')
2219
2219
  ], InputJsonElement);
2220
2220
 
2221
- class InputTextElement extends s {
2221
+ class InputTextElement extends r$2 {
2222
2222
  get content() {
2223
2223
  return this._content;
2224
2224
  }
@@ -2274,7 +2274,7 @@ class InputTextElement extends s {
2274
2274
  this._value = '';
2275
2275
  }
2276
2276
  }
2277
- InputTextElement.styles = i$2`
2277
+ InputTextElement.styles = i$3`
2278
2278
  .download {
2279
2279
  padding: 10px 15px;
2280
2280
  margin-bottom: 10px;
@@ -2330,7 +2330,7 @@ InputTextElement = __decorate([
2330
2330
  t('digipair-input-text')
2331
2331
  ], InputTextElement);
2332
2332
 
2333
- class DomAttributeElement extends s {
2333
+ class DomAttributeElement extends r$2 {
2334
2334
  get value() {
2335
2335
  return this._value;
2336
2336
  }
@@ -2527,8 +2527,7 @@ var DEFAULT_OPTIONS = {
2527
2527
  */ function sanitizeRoot(input, element) {
2528
2528
  if (isParentNode(input)) {
2529
2529
  if (!input.contains(element)) {
2530
- // eslint-disable-next-line max-len
2531
- 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.");
2530
+ 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.");
2532
2531
  }
2533
2532
  return input;
2534
2533
  }
@@ -2537,12 +2536,11 @@ var DEFAULT_OPTIONS = {
2537
2536
  });
2538
2537
  if (isParentNode(rootNode)) {
2539
2538
  if (rootNode !== document) {
2540
- // eslint-disable-next-line max-len
2541
2539
  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.");
2542
2540
  }
2543
2541
  return rootNode;
2544
2542
  }
2545
- return element.ownerDocument.querySelector(":root");
2543
+ return getRootNode(element);
2546
2544
  }
2547
2545
  /**
2548
2546
  * Makes sure that the output is a number, usable as `maxResults` option in
@@ -2643,7 +2641,6 @@ function _unsupported_iterable_to_array$7(o, minLen) {
2643
2641
  return function(input) {
2644
2642
  var result = item(input);
2645
2643
  if (typeof result !== "boolean") {
2646
- // eslint-disable-next-line max-len
2647
2644
  showWarning("pattern matcher function invalid", "Provided pattern matching function does not return boolean. It's result will be ignored.", item);
2648
2645
  return false;
2649
2646
  }
@@ -2656,7 +2653,6 @@ function _unsupported_iterable_to_array$7(o, minLen) {
2656
2653
  return re.test(input);
2657
2654
  };
2658
2655
  }
2659
- // eslint-disable-next-line max-len
2660
2656
  showWarning("pattern matcher invalid", "Pattern matching only accepts strings, regular expressions and/or functions. This item is invalid and will be ignored.", item);
2661
2657
  return function() {
2662
2658
  return false;
@@ -2699,6 +2695,7 @@ function _unsupported_iterable_to_array$7(o, minLen) {
2699
2695
  /**
2700
2696
  * Returns root node for given element. This needs to be used because of document-less environments, e.g. jsdom.
2701
2697
  */ function getRootNode(element) {
2698
+ // The `:root` selector always returns a parent node. The `null` return value is not applicable here.
2702
2699
  return element.ownerDocument.querySelector(":root");
2703
2700
  }
2704
2701
 
@@ -2767,9 +2764,9 @@ var attributeBlacklistMatch = createPatternMatcher([
2767
2764
  return "[".concat(name, "='").concat(value, "']");
2768
2765
  }
2769
2766
  /**
2770
- * Checks whether attribute should be used as a selector.
2767
+ * Checks whether an attribute should be used as a selector.
2771
2768
  */ function isValidAttributeNode(param, element) {
2772
- var nodeName = param.nodeName;
2769
+ var nodeName = param.nodeName, nodeValue = param.nodeValue;
2773
2770
  // form input value should not be used as a selector
2774
2771
  var tagName = element.tagName.toLowerCase();
2775
2772
  if ([
@@ -2778,6 +2775,10 @@ var attributeBlacklistMatch = createPatternMatcher([
2778
2775
  ].includes(tagName) && nodeName === "value") {
2779
2776
  return false;
2780
2777
  }
2778
+ // ignore Base64-encoded strings as 'src' attribute values (e.g. in tags like img, audio, video, iframe, object, embed).
2779
+ if (nodeName === "src" && (nodeValue === null || nodeValue === void 0 ? void 0 : nodeValue.startsWith("data:"))) {
2780
+ return false;
2781
+ }
2781
2782
  return !attributeBlacklistMatch(nodeName);
2782
2783
  }
2783
2784
  /**
@@ -2786,7 +2787,7 @@ var attributeBlacklistMatch = createPatternMatcher([
2786
2787
  var nodeName = param.nodeName, nodeValue = param.nodeValue;
2787
2788
  return {
2788
2789
  name: sanitizeSelectorItem(nodeName),
2789
- value: sanitizeSelectorItem(nodeValue)
2790
+ value: sanitizeSelectorItem(nodeValue !== null && nodeValue !== void 0 ? nodeValue : undefined)
2790
2791
  };
2791
2792
  }
2792
2793
  /**
@@ -2807,7 +2808,8 @@ var attributeBlacklistMatch = createPatternMatcher([
2807
2808
  /**
2808
2809
  * Get class selectors for an element.
2809
2810
  */ function getElementClassSelectors(element) {
2810
- return (element.getAttribute("class") || "").trim().split(/\s+/).filter(function(item) {
2811
+ var _a;
2812
+ return ((_a = element.getAttribute("class")) !== null && _a !== void 0 ? _a : "").trim().split(/\s+/).filter(function(item) {
2811
2813
  return !INVALID_CLASS_RE.test(item);
2812
2814
  }).map(function(item) {
2813
2815
  return ".".concat(sanitizeSelectorItem(item));
@@ -2823,7 +2825,8 @@ var attributeBlacklistMatch = createPatternMatcher([
2823
2825
  /**
2824
2826
  * Get ID selector for an element.
2825
2827
  * */ function getElementIdSelectors(element) {
2826
- var id = element.getAttribute("id") || "";
2828
+ var _a;
2829
+ var id = (_a = element.getAttribute("id")) !== null && _a !== void 0 ? _a : "";
2827
2830
  var selector = "#".concat(sanitizeSelectorItem(id));
2828
2831
  var rootNode = element.getRootNode({
2829
2832
  composed: false
@@ -2849,7 +2852,7 @@ var attributeBlacklistMatch = createPatternMatcher([
2849
2852
  var elementIndex = siblings.indexOf(element);
2850
2853
  if (elementIndex > -1) {
2851
2854
  return [
2852
- ":nth-child(".concat(elementIndex + 1, ")")
2855
+ ":nth-child(".concat(String(elementIndex + 1), ")")
2853
2856
  ];
2854
2857
  }
2855
2858
  }
@@ -2916,7 +2919,7 @@ function _unsupported_iterable_to_array$5(o, minLen) {
2916
2919
  var elementIndex = siblings.indexOf(element);
2917
2920
  if (elementIndex > -1) {
2918
2921
  return [
2919
- "".concat(tag, ":nth-of-type(").concat(elementIndex + 1, ")")
2922
+ "".concat(tag, ":nth-of-type(").concat(String(elementIndex + 1), ")")
2920
2923
  ];
2921
2924
  }
2922
2925
  }
@@ -3245,8 +3248,9 @@ var ESCAPED_COLON = ":".charCodeAt(0).toString(16).toUpperCase();
3245
3248
  * Escapes special characters used by CSS selector items.
3246
3249
  */ function sanitizeSelectorItem() {
3247
3250
  var input = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
3248
- var _a, _b;
3249
- 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);
3251
+ // This should not be necessary, but just to be sure, let's keep the legacy sanitizer in place, for backwards compatibility.
3252
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
3253
+ return CSS ? CSS.escape(input) : legacySanitizeSelectorItem(input);
3250
3254
  }
3251
3255
  /**
3252
3256
  * Legacy version of escaping utility, originally used for IE11-. Should
@@ -3261,6 +3265,8 @@ var ESCAPED_COLON = ":".charCodeAt(0).toString(16).toUpperCase();
3261
3265
  if (SPECIAL_CHARACTERS_RE.test(character)) {
3262
3266
  return "\\".concat(character);
3263
3267
  }
3268
+ // needed for backwards compatibility
3269
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
3264
3270
  return escape(character).replace(/%/g, "\\");
3265
3271
  }).join("");
3266
3272
  }
@@ -3288,10 +3294,7 @@ var ELEMENT_SELECTOR_TYPE_GETTERS = {
3288
3294
  /**
3289
3295
  * Returns list of selectors of given type for the element.
3290
3296
  */ function getSelectorsByType(elements, selector_type) {
3291
- var _a;
3292
- var getter = (_a = SELECTOR_TYPE_GETTERS[selector_type]) !== null && _a !== void 0 ? _a : function() {
3293
- return [];
3294
- };
3297
+ var getter = SELECTOR_TYPE_GETTERS[selector_type];
3295
3298
  return getter(elements);
3296
3299
  }
3297
3300
  /**
@@ -3351,7 +3354,7 @@ var ELEMENT_SELECTOR_TYPE_GETTERS = {
3351
3354
  * Creates list of selector types that we will need to generate the selector.
3352
3355
  */ function getSelectorsToGet(options) {
3353
3356
  var selectors = options.selectors, includeTag = options.includeTag;
3354
- var selectors_to_get = [].concat(selectors);
3357
+ var selectors_to_get = _to_consumable_array$2(selectors);
3355
3358
  if (includeTag && !selectors_to_get.includes("tag")) {
3356
3359
  selectors_to_get.push("tag");
3357
3360
  }
@@ -3394,7 +3397,7 @@ var ELEMENT_SELECTOR_TYPE_GETTERS = {
3394
3397
  var data = {};
3395
3398
  selector_types.forEach(function(selector_type) {
3396
3399
  var selector_variants = selectors_by_type[selector_type];
3397
- if (selector_variants.length > 0) {
3400
+ if (selector_variants && selector_variants.length > 0) {
3398
3401
  data[selector_type] = selector_variants;
3399
3402
  }
3400
3403
  });
@@ -3436,16 +3439,16 @@ var ELEMENT_SELECTOR_TYPE_GETTERS = {
3436
3439
  return rootSelector === "" ? selectors : generateCandidateCombinations(selectors, rootSelector);
3437
3440
  }
3438
3441
  /**
3439
- * Tries to find an unique CSS selector for element within given parent.
3442
+ * Tries to find a unique CSS selector for element within given parent.
3440
3443
  */ function getSelectorWithinRoot(elements, root) {
3441
3444
  var rootSelector = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "", options = arguments.length > 3 ? arguments[3] : void 0;
3442
- var elementSelectors = getAllSelectors(elements, options.root, options);
3445
+ var elementSelectors = getAllSelectors(elements, root, options);
3443
3446
  var selectorCandidates = generateCandidates(elementSelectors, rootSelector);
3444
3447
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
3445
3448
  try {
3446
3449
  for(var _iterator = selectorCandidates[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
3447
3450
  var candidateSelector = _step.value;
3448
- if (testSelector(elements, candidateSelector, options.root)) {
3451
+ if (testSelector(elements, candidateSelector, root)) {
3449
3452
  return candidateSelector;
3450
3453
  }
3451
3454
  }
@@ -3580,7 +3583,8 @@ function _unsupported_iterable_to_array$1(o, minLen) {
3580
3583
  }
3581
3584
  var selector = "";
3582
3585
  pattern.forEach(function(selectorType) {
3583
- var selectorsOfType = selectors[selectorType] || [];
3586
+ var _a;
3587
+ var selectorsOfType = (_a = selectors[selectorType]) !== null && _a !== void 0 ? _a : [];
3584
3588
  selectorsOfType.forEach(function(param) {
3585
3589
  var value = param.value, include = param.include;
3586
3590
  if (include) {
@@ -3643,10 +3647,12 @@ function _unsupported_iterable_to_array(o, minLen) {
3643
3647
  * Generates unique CSS selector for an element.
3644
3648
  */ function getCssSelector$1(needle) {
3645
3649
  var custom_options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3650
+ var _a;
3646
3651
  var elements = sanitizeSelectorNeedle(needle);
3647
3652
  var options = sanitizeOptions(elements[0], custom_options);
3653
+ var root = (_a = options.root) !== null && _a !== void 0 ? _a : getRootNode(elements[0]);
3648
3654
  var partialSelector = "";
3649
- var currentRoot = options.root;
3655
+ var currentRoot = root;
3650
3656
  /**
3651
3657
  * Utility function to make subsequent calls shorter.
3652
3658
  */ function updateIdentifiableParent() {
@@ -3655,7 +3661,7 @@ function _unsupported_iterable_to_array(o, minLen) {
3655
3661
  var closestIdentifiableParent = updateIdentifiableParent();
3656
3662
  while(closestIdentifiableParent){
3657
3663
  var foundElements = closestIdentifiableParent.foundElements, selector = closestIdentifiableParent.selector;
3658
- if (testSelector(elements, selector, options.root)) {
3664
+ if (testSelector(elements, selector, root)) {
3659
3665
  return selector;
3660
3666
  }
3661
3667
  currentRoot = foundElements[0];
@@ -3680,7 +3686,7 @@ function getCssSelector(element, options = {}) {
3680
3686
  return unescapeCSS(selector);
3681
3687
  }
3682
3688
 
3683
- class ElementElement extends s {
3689
+ class ElementElement extends r$2 {
3684
3690
  get content() {
3685
3691
  return this._content;
3686
3692
  }
@@ -3787,7 +3793,7 @@ class ElementElement extends s {
3787
3793
  blacklist: [
3788
3794
  '.digipair-input-element-selecting'
3789
3795
  ]
3790
- })})` : T}
3796
+ })})` : E}
3791
3797
  </p>` : x` <ui5-icon name="add-document"></ui5-icon>
3792
3798
  <p>${this.label}</p>`}
3793
3799
  </section>
@@ -3804,7 +3810,7 @@ class ElementElement extends s {
3804
3810
  this._value = '';
3805
3811
  }
3806
3812
  }
3807
- ElementElement.styles = i$2`
3813
+ ElementElement.styles = i$3`
3808
3814
  .digipair-input {
3809
3815
  padding: 10px 15px;
3810
3816
  margin-bottom: 10px;
@@ -3860,7 +3866,7 @@ ElementElement = __decorate([
3860
3866
  t('digipair-input-element')
3861
3867
  ], ElementElement);
3862
3868
 
3863
- class FetchElement extends s {
3869
+ class FetchElement extends r$2 {
3864
3870
  get value() {
3865
3871
  return this._value;
3866
3872
  }
@@ -3905,7 +3911,7 @@ FetchElement = __decorate([
3905
3911
  t('digipair-input-fetch')
3906
3912
  ], FetchElement);
3907
3913
 
3908
- class HiddenElement extends s {
3914
+ class HiddenElement extends r$2 {
3909
3915
  render() {
3910
3916
  return x``;
3911
3917
  }