@mgdis/stencil-helpers 3.2.8 → 3.2.9

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.es.js CHANGED
@@ -33,19 +33,19 @@ class qt {
33
33
  */
34
34
  join = () => this.classes.join(" ");
35
35
  }
36
- const F = (e) => typeof e == "object" && !Array.isArray(e) && e !== null, Me = (e, t, r) => {
37
- if (!F(e) || typeof t != "string")
36
+ const M = (e) => typeof e == "object" && !Array.isArray(e) && e !== null, Ge = (e, t, r) => {
37
+ if (!M(e) || typeof t != "string")
38
38
  return r;
39
39
  const [n, ...i] = t.split(".");
40
- return i.length ? Me(e[n], i.join("."), r) : e[n] ?? r;
41
- }, Jt = (e) => Array.isArray(e) && e.every((t) => typeof t == "string"), Ue = (e) => typeof e == "string" && e.trim() !== "", Kt = (e) => typeof e == "object" ? JSON.stringify(e) : String(e), Xt = (e) => typeof e == "string" ? e.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g, "") : e, Be = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (t, r) => (r > 0 ? "-" : "") + t.toLowerCase()).replace(/[^a-z0-9-]+/g, "-").replace(/--+/g, "-").replace(/(?:^-)|(?:-$)/g, ""), Yt = (e = "", t = 10) => {
40
+ return i.length ? Ge(e[n], i.join("."), r) : e[n] ?? r;
41
+ }, Jt = (e) => Array.isArray(e) && e.every((t) => typeof t == "string"), Ue = (e) => typeof e == "string" && e.trim() !== "", Yt = (e) => typeof e == "object" ? JSON.stringify(e) : String(e), Kt = (e) => typeof e == "string" ? e.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g, "") : e, Be = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (t, r) => (r > 0 ? "-" : "") + t.toLowerCase()).replace(/[^a-z0-9-]+/g, "-").replace(/--+/g, "-").replace(/(?:^-)|(?:-$)/g, ""), Xt = (e = "", t = 10) => {
42
42
  const r = new Uint8Array(t);
43
43
  crypto.getRandomValues(r);
44
44
  const s = Array.from(r).map((n) => n.toString(16).padStart(2, "0")).join("").slice(0, t);
45
45
  return e !== "" ? `${e}-${s}` : s;
46
46
  }, Qt = (e) => Ue(e) && /^([a-z][a-z0-9]*)(-[a-z0-9]+)*$/.exec(e) !== null, Vt = (e) => {
47
47
  let t;
48
- return typeof e == "string" ? t = e : e && typeof e == "object" && (F(e) || Array.isArray(e)) ? t = JSON.stringify(e) : e != null && typeof e != "boolean" && typeof e != "object" && (t = String(e)), t && Be(t);
48
+ return typeof e == "string" ? t = e : e && typeof e == "object" && (M(e) || Array.isArray(e)) ? t = JSON.stringify(e) : e != null && typeof e != "boolean" && typeof e != "object" && (t = String(e)), t && Be(t);
49
49
  }, er = async (e) => {
50
50
  if (e)
51
51
  return e();
@@ -55,7 +55,7 @@ const F = (e) => typeof e == "object" && !Array.isArray(e) && e !== null, Me = (
55
55
  PREVIOUS: "previous",
56
56
  LAST: "last"
57
57
  }, ue = 10;
58
- class We {
58
+ class Ze {
59
59
  /**
60
60
  * Define items
61
61
  */
@@ -77,7 +77,7 @@ class We {
77
77
  */
78
78
  baseIndex = 1;
79
79
  constructor(t) {
80
- if (F(t))
80
+ if (M(t))
81
81
  Array.isArray(t.items) && (this.items = t.items), typeof t.top == "number" && (this.top = t.top), this.total = typeof t.total == "number" ? t.total : this.items.length, this.next = t.next;
82
82
  else
83
83
  throw new Error("Page - init must match IPage type.");
@@ -94,10 +94,10 @@ class We {
94
94
  const n = this.items.length - this.baseIndex;
95
95
  let i, o = 0;
96
96
  if (["previous", "next"].includes(t) && r) {
97
- const a = this.items.findIndex((l) => JSON.stringify(l) === JSON.stringify(r));
98
- if (a === -1)
97
+ const l = this.items.findIndex((c) => JSON.stringify(c) === JSON.stringify(r));
98
+ if (l === -1)
99
99
  return 0;
100
- o = a;
100
+ o = l;
101
101
  }
102
102
  return t === "first" ? i = 0 : t === "last" ? i = n : t === "previous" ? i = JSON.stringify(this.items[o]) === JSON.stringify(this.items[0]) ? n : o - this.baseIndex : t === "next" ? i = JSON.stringify(this.items[o]) === JSON.stringify(this.items[n]) ? 0 : o + this.baseIndex : i = 0, i;
103
103
  };
@@ -112,7 +112,7 @@ class rr {
112
112
  #t;
113
113
  #r;
114
114
  constructor(t, r) {
115
- Array.isArray(t) && (this.items = t), r && (["string", "function"].includes(typeof r.next) || F(r.next) && URL.canParse(r.next)) && (this.#t = r.next), typeof r?.top == "number" && (this.#e = r.top), typeof r?.total == "number" && (this.#r = r.total);
115
+ Array.isArray(t) && (this.items = t), r && (["string", "function"].includes(typeof r.next) || M(r.next) && URL.canParse(r.next)) && (this.#t = r.next), typeof r?.top == "number" && (this.#e = r.top), typeof r?.total == "number" && (this.#r = r.total);
116
116
  }
117
117
  /**
118
118
  * Get page
@@ -123,7 +123,7 @@ class rr {
123
123
  getPage = (t = 0, r) => {
124
124
  const s = typeof r == "function" ? this.items.filter(r) : this.items;
125
125
  let n;
126
- return this.#t ? n = this.#t : s.length > t + this.#e && (n = () => this.getPage(t + this.#e, r)), new We({
126
+ return this.#t ? n = this.#t : s.length > t + this.#e && (n = () => this.getPage(t + this.#e, r)), new Ze({
127
127
  items: s.slice(t, t + this.#e),
128
128
  total: this.#r,
129
129
  top: this.#e,
@@ -149,15 +149,15 @@ const sr = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, nr = (e) => e.toISOS
149
149
  t.push(r), ge(r, t);
150
150
  return t;
151
151
  };
152
- var Ze = Object.defineProperty, qe = (e, t) => {
152
+ var We = Object.defineProperty, qe = (e, t) => {
153
153
  for (var r in t)
154
- Ze(e, r, { get: t[r], enumerable: !0 });
155
- }, Je = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Ke = {};
156
- qe(Ke, {
154
+ We(e, r, { get: t[r], enumerable: !0 });
155
+ }, Je = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Ye = {};
156
+ qe(Ye, {
157
157
  err: () => $e,
158
- map: () => Xe,
158
+ map: () => Ke,
159
159
  ok: () => U,
160
- unwrap: () => Ye,
160
+ unwrap: () => Xe,
161
161
  unwrapErr: () => Qe
162
162
  });
163
163
  var U = (e) => ({
@@ -169,7 +169,7 @@ var U = (e) => ({
169
169
  isErr: !0,
170
170
  value: e
171
171
  });
172
- function Xe(e, t) {
172
+ function Ke(e, t) {
173
173
  if (e.isOk) {
174
174
  const r = t(e.value);
175
175
  return r instanceof Promise ? r.then((s) => U(s)) : U(r);
@@ -180,7 +180,7 @@ function Xe(e, t) {
180
180
  }
181
181
  throw "should never get here";
182
182
  }
183
- var Ye = (e) => {
183
+ var Xe = (e) => {
184
184
  if (e.isOk)
185
185
  return e.value;
186
186
  throw e.value;
@@ -188,7 +188,7 @@ var Ye = (e) => {
188
188
  if (e.isErr)
189
189
  return e.value;
190
190
  throw e.value;
191
- }, K = (e) => {
191
+ }, Y = (e) => {
192
192
  const t = Je(e);
193
193
  return new RegExp(
194
194
  // First capture group: match any context before the selector that's not inside @supports selector()
@@ -197,9 +197,9 @@ var Ye = (e) => {
197
197
  "g"
198
198
  );
199
199
  };
200
- K("::slotted");
201
- K(":host");
202
- K(":host-context");
200
+ Y("::slotted");
201
+ Y(":host");
202
+ Y(":host-context");
203
203
  const de = (e, t) => {
204
204
  if (!t)
205
205
  return;
@@ -346,7 +346,7 @@ var L = {
346
346
  }, it = Object.defineProperty, ot = (e, t) => {
347
347
  for (var r in t)
348
348
  it(e, r, { get: t[r], enumerable: !0 });
349
- }, at = "http://www.w3.org/2000/svg", lt = "http://www.w3.org/1999/xhtml", te = (e, t) => t in e, re = "http://www.w3.org/1999/xlink", O = typeof window < "u" ? window : {}, A = {
349
+ }, at = "http://www.w3.org/2000/svg", lt = "http://www.w3.org/1999/xhtml", te = (e, t) => t in e, re = "http://www.w3.org/1999/xlink", O = typeof window < "u" ? window : {}, x = {
350
350
  $flags$: 0,
351
351
  $resourcesUrl$: "",
352
352
  jmp: (e) => e(),
@@ -358,11 +358,11 @@ var L = {
358
358
  ot(ut, {
359
359
  err: () => Ee,
360
360
  map: () => pt,
361
- ok: () => W,
361
+ ok: () => Z,
362
362
  unwrap: () => gt,
363
363
  unwrapErr: () => $t
364
364
  });
365
- var W = (e) => ({
365
+ var Z = (e) => ({
366
366
  isOk: !0,
367
367
  isErr: !1,
368
368
  value: e
@@ -374,7 +374,7 @@ var W = (e) => ({
374
374
  function pt(e, t) {
375
375
  if (e.isOk) {
376
376
  const r = t(e.value);
377
- return r instanceof Promise ? r.then((s) => W(s)) : W(r);
377
+ return r instanceof Promise ? r.then((s) => Z(s)) : Z(r);
378
378
  }
379
379
  if (e.isErr) {
380
380
  const r = e.value;
@@ -393,7 +393,7 @@ var gt = (e) => {
393
393
  }, ye = (e) => {
394
394
  const t = ne(e, "childNodes");
395
395
  e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" && be(t, e.tagName).forEach((s) => {
396
- s.nodeType === 1 && s.tagName === "SLOT-FB" && (_t(s, X(s), !1).length ? s.hidden = !0 : s.hidden = !1);
396
+ s.nodeType === 1 && s.tagName === "SLOT-FB" && (_t(s, K(s), !1).length ? s.hidden = !0 : s.hidden = !1);
397
397
  });
398
398
  let r = 0;
399
399
  for (r = 0; r < t.length; r++) {
@@ -419,9 +419,9 @@ var _t = (e, t, r = !0) => {
419
419
  (r && e["s-sr"] || !e["s-sr"]) && s.push(e);
420
420
  let n = e;
421
421
  for (; n = n.nextSibling; )
422
- X(n) === t && (r || !n["s-sr"]) && s.push(n);
422
+ K(n) === t && (r || !n["s-sr"]) && s.push(n);
423
423
  return s;
424
- }, se = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", X = (e) => typeof e["s-sn"] == "string" ? e["s-sn"] : e.nodeType === 1 && e.getAttribute("slot") || void 0;
424
+ }, se = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", K = (e) => typeof e["s-sn"] == "string" ? e["s-sn"] : e.nodeType === 1 && e.getAttribute("slot") || void 0;
425
425
  function ht(e) {
426
426
  if (e.assignedElements || e.assignedNodes || !e["s-sr"]) return;
427
427
  const t = (r) => (function(s) {
@@ -432,10 +432,10 @@ function ht(e) {
432
432
  If you have a particular use case, please open an issue on the Stencil repo.
433
433
  `);
434
434
  const o = this["s-cr"].parentElement;
435
- return (o.__childNodes ? o.childNodes : dt(o.childNodes)).forEach((l) => {
436
- i === X(l) && n.push(l);
435
+ return (o.__childNodes ? o.childNodes : dt(o.childNodes)).forEach((c) => {
436
+ i === K(c) && n.push(c);
437
437
  }), r ? n.filter(
438
- (l) => l.nodeType === 1
438
+ (c) => c.nodeType === 1
439
439
  /* ElementNode */
440
440
  ) : n;
441
441
  }).bind(e);
@@ -449,15 +449,15 @@ function ne(e, t) {
449
449
  return typeof e[t] != "function" ? e[t] : e[t].bind(e);
450
450
  }
451
451
  var Et = (e, t, ...r) => {
452
- let s = null, n = null, i = null, o = !1, a = !1;
453
- const l = [], u = (f) => {
452
+ let s = null, n = null, i = null, o = !1, l = !1;
453
+ const c = [], u = (f) => {
454
454
  for (let p = 0; p < f.length; p++)
455
- s = f[p], Array.isArray(s) ? u(s) : s != null && typeof s != "boolean" && ((o = !he(s)) && (s = String(s)), o && a ? l[l.length - 1].$text$ += s : l.push(o ? Z(null, s) : s), a = o);
455
+ s = f[p], Array.isArray(s) ? u(s) : s != null && typeof s != "boolean" && ((o = !he(s)) && (s = String(s)), o && l ? c[c.length - 1].$text$ += s : c.push(o ? W(null, s) : s), l = o);
456
456
  };
457
457
  u(r);
458
- const c = Z(e, null);
459
- return c.$attrs$ = t, l.length > 0 && (c.$children$ = l), c.$key$ = n, c.$name$ = i, c;
460
- }, Z = (e, t) => {
458
+ const a = W(e, null);
459
+ return a.$attrs$ = t, c.length > 0 && (a.$children$ = c), a.$key$ = n, a.$name$ = i, a;
460
+ }, W = (e, t) => {
461
461
  const r = {
462
462
  $flags$: 0,
463
463
  $tag$: e,
@@ -466,7 +466,7 @@ var Et = (e, t, ...r) => {
466
466
  $children$: null
467
467
  };
468
468
  return r.$attrs$ = null, r.$key$ = null, r.$name$ = null, r;
469
- }, yt = {}, bt = (e) => e && e.$tag$ === yt, Y = (e) => {
469
+ }, yt = {}, bt = (e) => e && e.$tag$ === yt, X = (e) => {
470
470
  const t = ft(e);
471
471
  return new RegExp(
472
472
  // First capture group: match any context before the selector that's not inside @supports selector()
@@ -475,17 +475,17 @@ var Et = (e, t, ...r) => {
475
475
  "g"
476
476
  );
477
477
  };
478
- Y("::slotted");
479
- Y(":host");
480
- Y(":host-context");
478
+ X("::slotted");
479
+ X(":host");
480
+ X(":host-context");
481
481
  var ie = (e, t, r, s, n, i, o) => {
482
482
  if (r === s)
483
483
  return;
484
- let a = te(e, t), l = t.toLowerCase();
484
+ let l = te(e, t), c = t.toLowerCase();
485
485
  if (t === "class") {
486
- const u = e.classList, c = oe(r);
486
+ const u = e.classList, a = oe(r);
487
487
  let f = oe(s);
488
- u.remove(...c.filter((p) => p && !f.includes(p))), u.add(...f.filter((p) => p && !c.includes(p)));
488
+ u.remove(...a.filter((p) => p && !f.includes(p))), u.add(...f.filter((p) => p && !a.includes(p)));
489
489
  } else if (t === "style") {
490
490
  for (const u in r)
491
491
  (!s || s[u] == null) && (u.includes("-") ? e.style.removeProperty(u) : e.style[u] = "");
@@ -494,42 +494,42 @@ var ie = (e, t, r, s, n, i, o) => {
494
494
  } else if (t !== "key") if (t === "ref")
495
495
  s && s(e);
496
496
  else if (!e.__lookupSetter__(t) && t[0] === "o" && t[1] === "n") {
497
- if (t[2] === "-" ? t = t.slice(3) : te(O, l) ? t = l.slice(2) : t = l[2] + t.slice(3), r || s) {
498
- const u = t.endsWith(me);
499
- t = t.replace(vt, ""), r && A.rel(e, t, r, u), s && A.ael(e, t, s, u);
497
+ if (t[2] === "-" ? t = t.slice(3) : te(O, c) ? t = c.slice(2) : t = c[2] + t.slice(3), r || s) {
498
+ const u = t.endsWith(ve);
499
+ t = t.replace(mt, ""), r && x.rel(e, t, r, u), s && x.ael(e, t, s, u);
500
500
  }
501
501
  } else {
502
502
  const u = he(s);
503
- if ((a || u && s !== null) && !n)
503
+ if ((l || u && s !== null) && !n)
504
504
  try {
505
505
  if (e.tagName.includes("-"))
506
506
  e[t] !== s && (e[t] = s);
507
507
  else {
508
508
  const f = s ?? "";
509
- t === "list" ? a = !1 : (r == null || e[t] != f) && (typeof e.__lookupSetter__(t) == "function" ? e[t] = f : e.setAttribute(t, f));
509
+ t === "list" ? l = !1 : (r == null || e[t] != f) && (typeof e.__lookupSetter__(t) == "function" ? e[t] = f : e.setAttribute(t, f));
510
510
  }
511
511
  } catch {
512
512
  }
513
- let c = !1;
514
- l !== (l = l.replace(/^xlink\:?/, "")) && (t = l, c = !0), s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && (c ? e.removeAttributeNS(re, t) : e.removeAttribute(t)) : (!a || i & 4 || n) && !u && e.nodeType === 1 && (s = s === !0 ? "" : s, c ? e.setAttributeNS(re, t, s) : e.setAttribute(t, s));
513
+ let a = !1;
514
+ c !== (c = c.replace(/^xlink\:?/, "")) && (t = c, a = !0), s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && (a ? e.removeAttributeNS(re, t) : e.removeAttribute(t)) : (!l || i & 4 || n) && !u && e.nodeType === 1 && (s = s === !0 ? "" : s, a ? e.setAttributeNS(re, t, s) : e.setAttribute(t, s));
515
515
  }
516
- }, mt = /\s/, oe = (e) => (typeof e == "object" && e && "baseVal" in e && (e = e.baseVal), !e || typeof e != "string" ? [] : e.split(mt)), me = "Capture", vt = new RegExp(me + "$"), q = (e, t, r, s) => {
516
+ }, vt = /\s/, oe = (e) => (typeof e == "object" && e && "baseVal" in e && (e = e.baseVal), !e || typeof e != "string" ? [] : e.split(vt)), ve = "Capture", mt = new RegExp(ve + "$"), q = (e, t, r, s) => {
517
517
  const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, i = e && e.$attrs$ || {}, o = t.$attrs$ || {};
518
- for (const a of ae(Object.keys(i)))
519
- a in o || ie(
518
+ for (const l of ae(Object.keys(i)))
519
+ l in o || ie(
520
520
  n,
521
- a,
522
- i[a],
521
+ l,
522
+ i[l],
523
523
  void 0,
524
524
  r,
525
525
  t.$flags$
526
526
  );
527
- for (const a of ae(Object.keys(o)))
527
+ for (const l of ae(Object.keys(o)))
528
528
  ie(
529
529
  n,
530
- a,
531
- i[a],
532
- o[a],
530
+ l,
531
+ i[l],
532
+ o[l],
533
533
  r,
534
534
  t.$flags$
535
535
  );
@@ -543,10 +543,10 @@ function ae(e) {
543
543
  e
544
544
  );
545
545
  }
546
- var P, z, N, J = !1, H = !1, Q = !1, h = !1, G = (e, t, r) => {
546
+ var P, z, N, J = !1, H = !1, Q = !1, h = !1, F = (e, t, r) => {
547
547
  var s;
548
548
  const n = t.$children$[r];
549
- let i = 0, o, a, l;
549
+ let i = 0, o, l, c;
550
550
  if (J || (Q = !0, n.$tag$ === "slot" && (n.$flags$ |= n.$children$ ? (
551
551
  // slot element has fallback content
552
552
  // still create an element that "mocks" the slot element
@@ -570,63 +570,63 @@ var P, z, N, J = !1, H = !1, Q = !1, h = !1, G = (e, t, r) => {
570
570
  !J && L.slotRelocation && n.$flags$ & 2 ? "slot-fb" : n.$tag$
571
571
  ), h && n.$tag$ === "foreignObject" && (h = !1), q(null, n, h), ct(P) && o["s-si"] !== P && o.classList.add(o["s-si"] = P), n.$children$)
572
572
  for (i = 0; i < n.$children$.length; ++i)
573
- a = G(e, n, i), a && o.appendChild(a);
573
+ l = F(e, n, i), l && o.appendChild(l);
574
574
  n.$tag$ === "svg" ? h = !1 : o.tagName === "foreignObject" && (h = !0);
575
575
  }
576
- return o["s-hn"] = N, n.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = z, o["s-sn"] = n.$name$ || "", o["s-rf"] = (s = n.$attrs$) == null ? void 0 : s.ref, ht(o), l = e && e.$children$ && e.$children$[r], l && l.$tag$ === n.$tag$ && e.$elm$ && k(e.$elm$, !1), Ae(z, o, t.$elm$, e?.$elm$)), o;
577
- }, k = (e, t) => {
578
- A.$flags$ |= 1;
576
+ return o["s-hn"] = N, n.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = z, o["s-sn"] = n.$name$ || "", o["s-rf"] = (s = n.$attrs$) == null ? void 0 : s.ref, ht(o), c = e && e.$children$ && e.$children$[r], c && c.$tag$ === n.$tag$ && e.$elm$ && I(e.$elm$, !1), xe(z, o, t.$elm$, e?.$elm$)), o;
577
+ }, I = (e, t) => {
578
+ x.$flags$ |= 1;
579
579
  const r = Array.from(e.__childNodes || e.childNodes);
580
580
  e["s-sr"] && L.experimentalSlotFixes;
581
581
  for (let s = r.length - 1; s >= 0; s--) {
582
582
  const n = r[s];
583
- n["s-hn"] !== N && n["s-ol"] && (x(I(n).parentNode, n, I(n)), n["s-ol"].remove(), n["s-ol"] = void 0, n["s-sh"] = void 0, Q = !0), t && k(n, t);
583
+ n["s-hn"] !== N && n["s-ol"] && (A(k(n).parentNode, n, k(n)), n["s-ol"].remove(), n["s-ol"] = void 0, n["s-sh"] = void 0, Q = !0), t && I(n, t);
584
584
  }
585
- A.$flags$ &= -2;
586
- }, ve = (e, t, r, s, n, i) => {
587
- let o = e["s-cr"] && e["s-cr"].parentNode || e, a;
585
+ x.$flags$ &= -2;
586
+ }, me = (e, t, r, s, n, i) => {
587
+ let o = e["s-cr"] && e["s-cr"].parentNode || e, l;
588
588
  for (o.shadowRoot && o.tagName === N && (o = o.shadowRoot); n <= i; ++n)
589
- s[n] && (a = G(null, r, n), a && (s[n].$elm$ = a, x(o, a, I(t))));
589
+ s[n] && (l = F(null, r, n), l && (s[n].$elm$ = l, A(o, l, k(t))));
590
590
  }, Oe = (e, t, r) => {
591
591
  for (let s = t; s <= r; ++s) {
592
592
  const n = e[s];
593
593
  if (n) {
594
594
  const i = n.$elm$;
595
- Re(n), i && (H = !0, i["s-ol"] ? i["s-ol"].remove() : k(i, !0), i.remove());
595
+ Re(n), i && (H = !0, i["s-ol"] ? i["s-ol"].remove() : I(i, !0), i.remove());
596
596
  }
597
597
  }
598
598
  }, Ot = (e, t, r, s, n = !1) => {
599
- let i = 0, o = 0, a = 0, l = 0, u = t.length - 1, c = t[0], f = t[u], p = s.length - 1, $ = s[0], g = s[p], _, y;
599
+ let i = 0, o = 0, l = 0, c = 0, u = t.length - 1, a = t[0], f = t[u], p = s.length - 1, $ = s[0], g = s[p], _, y;
600
600
  for (; i <= u && o <= p; )
601
- if (c == null)
602
- c = t[++i];
601
+ if (a == null)
602
+ a = t[++i];
603
603
  else if (f == null)
604
604
  f = t[--u];
605
605
  else if ($ == null)
606
606
  $ = s[++o];
607
607
  else if (g == null)
608
608
  g = s[--p];
609
- else if (D(c, $, n))
610
- R(c, $, n), c = t[++i], $ = s[++o];
611
- else if (D(f, g, n))
609
+ else if (j(a, $, n))
610
+ R(a, $, n), a = t[++i], $ = s[++o];
611
+ else if (j(f, g, n))
612
612
  R(f, g, n), f = t[--u], g = s[--p];
613
- else if (D(c, g, n))
614
- (c.$tag$ === "slot" || g.$tag$ === "slot") && k(c.$elm$.parentNode, !1), R(c, g, n), x(e, c.$elm$, f.$elm$.nextSibling), c = t[++i], g = s[--p];
615
- else if (D(f, $, n))
616
- (c.$tag$ === "slot" || g.$tag$ === "slot") && k(f.$elm$.parentNode, !1), R(f, $, n), x(e, f.$elm$, c.$elm$), f = t[--u], $ = s[++o];
613
+ else if (j(a, g, n))
614
+ (a.$tag$ === "slot" || g.$tag$ === "slot") && I(a.$elm$.parentNode, !1), R(a, g, n), A(e, a.$elm$, f.$elm$.nextSibling), a = t[++i], g = s[--p];
615
+ else if (j(f, $, n))
616
+ (a.$tag$ === "slot" || g.$tag$ === "slot") && I(f.$elm$.parentNode, !1), R(f, $, n), A(e, f.$elm$, a.$elm$), f = t[--u], $ = s[++o];
617
617
  else {
618
- for (a = -1, l = i; l <= u; ++l)
619
- if (t[l] && t[l].$key$ !== null && t[l].$key$ === $.$key$) {
620
- a = l;
618
+ for (l = -1, c = i; c <= u; ++c)
619
+ if (t[c] && t[c].$key$ !== null && t[c].$key$ === $.$key$) {
620
+ l = c;
621
621
  break;
622
622
  }
623
- a >= 0 ? (y = t[a], y.$tag$ !== $.$tag$ ? _ = G(t && t[o], r, a) : (R(y, $, n), t[a] = void 0, _ = y.$elm$), $ = s[++o]) : (_ = G(t && t[o], r, o), $ = s[++o]), _ && x(
624
- I(c.$elm$).parentNode,
623
+ l >= 0 ? (y = t[l], y.$tag$ !== $.$tag$ ? _ = F(t && t[o], r, l) : (R(y, $, n), t[l] = void 0, _ = y.$elm$), $ = s[++o]) : (_ = F(t && t[o], r, o), $ = s[++o]), _ && A(
624
+ k(a.$elm$).parentNode,
625
625
  _,
626
- I(c.$elm$)
626
+ k(a.$elm$)
627
627
  );
628
628
  }
629
- i > u ? ve(
629
+ i > u ? me(
630
630
  e,
631
631
  s[p + 1] == null ? null : s[p + 1].$elm$,
632
632
  r,
@@ -634,14 +634,14 @@ var P, z, N, J = !1, H = !1, Q = !1, h = !1, G = (e, t, r) => {
634
634
  o,
635
635
  p
636
636
  ) : o > p && Oe(t, i, u);
637
- }, D = (e, t, r = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : r ? (r && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1, I = (e) => e && e["s-ol"] || e, R = (e, t, r = !1) => {
638
- const s = t.$elm$ = e.$elm$, n = e.$children$, i = t.$children$, o = t.$tag$, a = t.$text$;
639
- let l;
640
- a === null ? (h = o === "svg" ? !0 : o === "foreignObject" ? !1 : h, q(e, t, h), n !== null && i !== null ? Ot(s, n, t, i, r) : i !== null ? (e.$text$ !== null && (s.textContent = ""), ve(s, null, t, i, 0, i.length - 1)) : (
637
+ }, j = (e, t, r = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : r ? (r && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1, k = (e) => e && e["s-ol"] || e, R = (e, t, r = !1) => {
638
+ const s = t.$elm$ = e.$elm$, n = e.$children$, i = t.$children$, o = t.$tag$, l = t.$text$;
639
+ let c;
640
+ l === null ? (h = o === "svg" ? !0 : o === "foreignObject" ? !1 : h, q(e, t, h), n !== null && i !== null ? Ot(s, n, t, i, r) : i !== null ? (e.$text$ !== null && (s.textContent = ""), me(s, null, t, i, 0, i.length - 1)) : (
641
641
  // don't do this on initial render as it can cause non-hydrated content to be removed
642
642
  !r && L.updatable && n !== null && Oe(n, 0, n.length - 1)
643
- ), h && o === "svg" && (h = !1)) : (l = s["s-cr"]) ? l.parentNode.textContent = a : e.$text$ !== a && (s.data = a);
644
- }, v = [], xe = (e) => {
643
+ ), h && o === "svg" && (h = !1)) : (c = s["s-cr"]) ? c.parentNode.textContent = l : e.$text$ !== l && (s.data = l);
644
+ }, m = [], Ae = (e) => {
645
645
  let t, r, s;
646
646
  const n = e.__childNodes || e.childNodes;
647
647
  for (const i of n) {
@@ -651,68 +651,68 @@ var P, z, N, J = !1, H = !1, Q = !1, h = !1, G = (e, t, r) => {
651
651
  for (s = r.length - 1; s >= 0; s--)
652
652
  if (t = r[s], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== i["s-hn"])
653
653
  if (se(t, o)) {
654
- let a = v.find((l) => l.$nodeToRelocate$ === t);
655
- H = !0, t["s-sn"] = t["s-sn"] || o, a ? (a.$nodeToRelocate$["s-sh"] = i["s-hn"], a.$slotRefNode$ = i) : (t["s-sh"] = i["s-hn"], v.push({
654
+ let l = m.find((c) => c.$nodeToRelocate$ === t);
655
+ H = !0, t["s-sn"] = t["s-sn"] || o, l ? (l.$nodeToRelocate$["s-sh"] = i["s-hn"], l.$slotRefNode$ = i) : (t["s-sh"] = i["s-hn"], m.push({
656
656
  $slotRefNode$: i,
657
657
  $nodeToRelocate$: t
658
- })), t["s-sr"] && v.map((l) => {
659
- se(l.$nodeToRelocate$, t["s-sn"]) && (a = v.find((u) => u.$nodeToRelocate$ === t), a && !l.$slotRefNode$ && (l.$slotRefNode$ = a.$slotRefNode$));
658
+ })), t["s-sr"] && m.map((c) => {
659
+ se(c.$nodeToRelocate$, t["s-sn"]) && (l = m.find((u) => u.$nodeToRelocate$ === t), l && !c.$slotRefNode$ && (c.$slotRefNode$ = l.$slotRefNode$));
660
660
  });
661
- } else v.some((a) => a.$nodeToRelocate$ === t) || v.push({
661
+ } else m.some((l) => l.$nodeToRelocate$ === t) || m.push({
662
662
  $nodeToRelocate$: t
663
663
  });
664
664
  }
665
- i.nodeType === 1 && xe(i);
665
+ i.nodeType === 1 && Ae(i);
666
666
  }
667
667
  }, Re = (e) => {
668
668
  e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(Re);
669
- }, x = (e, t, r) => (typeof t["s-sn"] == "string" && t["s-sr"] && t["s-cr"] && Ae(t["s-cr"], t, e, t.parentElement), e?.insertBefore(t, r));
670
- function Ae(e, t, r, s) {
669
+ }, A = (e, t, r) => (typeof t["s-sn"] == "string" && t["s-sr"] && t["s-cr"] && xe(t["s-cr"], t, e, t.parentElement), e?.insertBefore(t, r));
670
+ function xe(e, t, r, s) {
671
671
  var n, i;
672
672
  let o;
673
673
  if (e && typeof t["s-sn"] == "string" && t["s-sr"] && e.parentNode && e.parentNode["s-sc"] && (o = t["s-si"] || e.parentNode["s-sc"])) {
674
- const a = t["s-sn"], l = t["s-hn"];
674
+ const l = t["s-sn"], c = t["s-hn"];
675
675
  if ((n = r.classList) == null || n.add(o + "-s"), s && ((i = s.classList) != null && i.contains(o + "-s"))) {
676
- let u = (s.__childNodes || s.childNodes)[0], c = !1;
676
+ let u = (s.__childNodes || s.childNodes)[0], a = !1;
677
677
  for (; u; ) {
678
- if (u["s-sn"] !== a && u["s-hn"] === l && u["s-sr"]) {
679
- c = !0;
678
+ if (u["s-sn"] !== l && u["s-hn"] === c && u["s-sr"]) {
679
+ a = !0;
680
680
  break;
681
681
  }
682
682
  u = u.nextSibling;
683
683
  }
684
- c || s.classList.remove(o + "-s");
684
+ a || s.classList.remove(o + "-s");
685
685
  }
686
686
  }
687
687
  }
688
- var xt = (e, t, r = !1) => {
689
- var s, n, i, o, a;
690
- const l = e.$hostElement$, u = e.$cmpMeta$, c = e.$vnode$ || Z(null, null), p = bt(t) ? t : Et(null, null, t);
691
- if (N = l.tagName, u.$attrsToReflect$ && (p.$attrs$ = p.$attrs$ || {}, u.$attrsToReflect$.forEach(([$, g]) => {
692
- L.serializer && e.$serializerValues$.has($) ? p.$attrs$[g] = e.$serializerValues$.get($) : p.$attrs$[g] = l[$];
688
+ var At = (e, t, r = !1) => {
689
+ var s, n, i, o, l;
690
+ const c = e.$hostElement$, u = e.$cmpMeta$, a = e.$vnode$ || W(null, null), p = bt(t) ? t : Et(null, null, t);
691
+ if (N = c.tagName, u.$attrsToReflect$ && (p.$attrs$ = p.$attrs$ || {}, u.$attrsToReflect$.forEach(([$, g]) => {
692
+ L.serializer && e.$serializerValues$.has($) ? p.$attrs$[g] = e.$serializerValues$.get($) : p.$attrs$[g] = c[$];
693
693
  })), r && p.$attrs$)
694
694
  for (const $ of Object.keys(p.$attrs$))
695
- l.hasAttribute($) && !["key", "ref", "style", "class"].includes($) && (p.$attrs$[$] = l[$]);
696
- p.$tag$ = null, p.$flags$ |= 4, e.$vnode$ = p, p.$elm$ = c.$elm$ = l.shadowRoot || l, P = l["s-sc"], J = !!(u.$flags$ & 1) && !(u.$flags$ & 128), z = l["s-cr"], H = !1, R(c, p, r);
695
+ c.hasAttribute($) && !["key", "ref", "style", "class"].includes($) && (p.$attrs$[$] = c[$]);
696
+ p.$tag$ = null, p.$flags$ |= 4, e.$vnode$ = p, p.$elm$ = a.$elm$ = c.shadowRoot || c, P = c["s-sc"], J = !!(u.$flags$ & 1) && !(u.$flags$ & 128), z = c["s-cr"], H = !1, R(a, p, r);
697
697
  {
698
- if (A.$flags$ |= 1, Q) {
699
- xe(p.$elm$);
700
- for (const $ of v) {
698
+ if (x.$flags$ |= 1, Q) {
699
+ Ae(p.$elm$);
700
+ for (const $ of m) {
701
701
  const g = $.$nodeToRelocate$;
702
702
  if (!g["s-ol"] && O.document) {
703
703
  const _ = O.document.createTextNode("");
704
- _["s-nr"] = g, x(g.parentNode, g["s-ol"] = _, g);
704
+ _["s-nr"] = g, A(g.parentNode, g["s-ol"] = _, g);
705
705
  }
706
706
  }
707
- for (const $ of v) {
707
+ for (const $ of m) {
708
708
  const g = $.$nodeToRelocate$, _ = $.$slotRefNode$;
709
709
  if (_) {
710
710
  const y = _.parentNode;
711
711
  let b = _.nextSibling;
712
712
  {
713
- let m = (s = g["s-ol"]) == null ? void 0 : s.previousSibling;
714
- for (; m; ) {
715
- let d = (n = m["s-nr"]) != null ? n : null;
713
+ let v = (s = g["s-ol"]) == null ? void 0 : s.previousSibling;
714
+ for (; v; ) {
715
+ let d = (n = v["s-nr"]) != null ? n : null;
716
716
  if (d && d["s-sn"] === g["s-sn"] && y === (d.__parentNode || d.parentNode)) {
717
717
  for (d = d.nextSibling; d === g || d?.["s-sr"]; )
718
718
  d = d?.nextSibling;
@@ -721,25 +721,25 @@ var xt = (e, t, r = !1) => {
721
721
  break;
722
722
  }
723
723
  }
724
- m = m.previousSibling;
724
+ v = v.previousSibling;
725
725
  }
726
726
  }
727
- const V = g.__parentNode || g.parentNode, j = g.__nextSibling || g.nextSibling;
728
- (!b && y !== V || j !== b) && g !== b && (!g["s-hn"] && g["s-ol"] && (g["s-hn"] = g["s-ol"].parentNode.nodeName), x(y, g, b), g.nodeType === 1 && g.tagName !== "SLOT-FB" && (g.hidden = (i = g["s-ih"]) != null ? i : !1)), g && typeof _["s-rf"] == "function" && _["s-rf"](_);
727
+ const V = g.__parentNode || g.parentNode, D = g.__nextSibling || g.nextSibling;
728
+ (!b && y !== V || D !== b) && g !== b && (!g["s-hn"] && g["s-ol"] && (g["s-hn"] = g["s-ol"].parentNode.nodeName), A(y, g, b), g.nodeType === 1 && g.tagName !== "SLOT-FB" && (g.hidden = (i = g["s-ih"]) != null ? i : !1)), g && typeof _["s-rf"] == "function" && _["s-rf"](_);
729
729
  } else
730
730
  g.nodeType === 1 && (r && (g["s-ih"] = (o = g.hidden) != null ? o : !1), g.hidden = !0);
731
731
  }
732
732
  }
733
- H && ye(p.$elm$), A.$flags$ &= -2, v.length = 0;
733
+ H && ye(p.$elm$), x.$flags$ &= -2, m.length = 0;
734
734
  }
735
735
  if (L.experimentalScopedSlotChanges && u.$flags$ & 2) {
736
736
  const $ = p.$elm$.__childNodes || p.$elm$.childNodes;
737
737
  for (const g of $)
738
- g["s-hn"] !== N && !g["s-sh"] && (r && g["s-ih"] == null && (g["s-ih"] = (a = g.hidden) != null ? a : !1), g.hidden = !0);
738
+ g["s-hn"] !== N && !g["s-sh"] && (r && g["s-ih"] == null && (g["s-ih"] = (l = g.hidden) != null ? l : !1), g.hidden = !0);
739
739
  }
740
740
  z = void 0;
741
741
  };
742
- const T = {
742
+ const w = {
743
743
  content_wrap: 0,
744
744
  ignore: [],
745
745
  ignore_with: "!i-£___£%_",
@@ -747,7 +747,7 @@ const T = {
747
747
  tab_size: 2,
748
748
  tag_wrap: 0,
749
749
  trim: []
750
- }, we = [
750
+ }, Te = [
751
751
  "area",
752
752
  "base",
753
753
  "br",
@@ -762,16 +762,16 @@ const T = {
762
762
  "source",
763
763
  "track",
764
764
  "wbr"
765
- ], Te = {
765
+ ], we = {
766
766
  checked_html: !1,
767
- config: { ...T },
767
+ config: { ...w },
768
768
  ignored: !1,
769
769
  constants: {
770
- CONTENT_IGNORE_PLACEHOLDER: `${T.ignore_with}_`,
771
- SELF_CLOSING_PLACEHOLDER: `${T.ignore_with}/_>`,
772
- ATTRIBUTE_IGNORE_PLACEHOLDER: `${T.ignore_with}=_`
770
+ CONTENT_IGNORE_PLACEHOLDER: `${w.ignore_with}_`,
771
+ SELF_CLOSING_PLACEHOLDER: `${w.ignore_with}/_>`,
772
+ ATTRIBUTE_IGNORE_PLACEHOLDER: `${w.ignore_with}=_`
773
773
  }
774
- }, E = () => Te, C = (e) => Object.assign(Te, e), Se = (e) => (C({ checked_html: !0 }), /<(?:[A-Za-z]+[A-Za-z0-9]*)(?:\s+.*?)*?\/{0,1}>/.test(e) || /<(?<Element>(?:[A-Za-z]+[A-Za-z0-9]*:)?(?:[A-Za-z]+[A-Za-z0-9]*))(?:\s+.*?)*?>(?:.|\n)*?<\/{1}\k<Element>>/.test(e) || /<(?<Element>(?:[a-z][a-z0-9._]*:)?[a-z][a-z0-9._]*-[a-z0-9._-]+)(?:\s+.*?)*?>(?:.|\n)*?<\/{1}\k<Element>>/.test(e)), Le = (e, t) => {
774
+ }, E = () => we, C = (e) => Object.assign(we, e), Se = (e) => (C({ checked_html: !0 }), /<(?:[A-Za-z]+[A-Za-z0-9]*)(?:\s+.*?)*?\/{0,1}>/.test(e) || /<(?<Element>(?:[A-Za-z]+[A-Za-z0-9]*:)?(?:[A-Za-z]+[A-Za-z0-9]*))(?:\s+.*?)*?>(?:.|\n)*?<\/{1}\k<Element>>/.test(e) || /<(?<Element>(?:[a-z][a-z0-9._]*:)?[a-z][a-z0-9._]*-[a-z0-9._-]+)(?:\s+.*?)*?>(?:.|\n)*?<\/{1}\k<Element>>/.test(e)), Le = (e, t) => {
775
775
  if (!e || !t)
776
776
  throw new Error("Both 'current' and 'updates' must be passed-in to mergeObjects()");
777
777
  let r;
@@ -793,20 +793,20 @@ const T = {
793
793
  ATTRIBUTE_IGNORE_PLACEHOLDER: `${r.ignore_with}=_`
794
794
  }
795
795
  }), r;
796
- }, At = (e) => {
796
+ }, xt = (e) => {
797
797
  const { constants: t } = E();
798
798
  return e = e.replace(/<[\w:\-]+([^>]*[^\/])>/g, (r, s) => r.replace(s, (n) => n.replace(/\n/g, t.ATTRIBUTE_IGNORE_PLACEHOLDER + "nl!").replace(/\r/g, t.ATTRIBUTE_IGNORE_PLACEHOLDER + "cr!").replace(/\s/g, t.ATTRIBUTE_IGNORE_PLACEHOLDER + "ws!"))), e;
799
- }, wt = (e) => {
799
+ }, Tt = (e) => {
800
800
  const { constants: t } = E();
801
801
  return e.replace(/\n/g, t.CONTENT_IGNORE_PLACEHOLDER + "nl!").replace(/\r/g, t.CONTENT_IGNORE_PLACEHOLDER + "cr!").replace(/\s/g, t.CONTENT_IGNORE_PLACEHOLDER + "ws!");
802
- }, Tt = (e) => {
802
+ }, wt = (e) => {
803
803
  const t = /\s*<([a-zA-Z0-9:-]+)[^>]*>\n\s*<\/\1>(?=\n[ ]*[^\n]*__!i-£___£%__[^\n]*\n)(\n[ ]*\S[^\n]*\n)|<([a-zA-Z0-9:-]+)[^>]*>(?=\n[ ]*[^\n]*__!i-£___£%__[^\n]*\n)(\n[ ]*\S[^\n]*\n\s*)<\/\3>/g, { constants: r } = E();
804
- return e.replace(t, (s, n, i, o, a) => {
805
- const l = i || a;
806
- if (!l)
804
+ return e.replace(t, (s, n, i, o, l) => {
805
+ const c = i || l;
806
+ if (!c)
807
807
  return s;
808
- const u = l.replace(/\n/g, r.CONTENT_IGNORE_PLACEHOLDER + "nl!").replace(/\r/g, r.CONTENT_IGNORE_PLACEHOLDER + "cr!").replace(/\s/g, r.CONTENT_IGNORE_PLACEHOLDER + "ws!");
809
- return s.replace(l, u);
808
+ const u = c.replace(/\n/g, r.CONTENT_IGNORE_PLACEHOLDER + "nl!").replace(/\r/g, r.CONTENT_IGNORE_PLACEHOLDER + "cr!").replace(/\s/g, r.CONTENT_IGNORE_PLACEHOLDER + "ws!");
809
+ return s.replace(c, u);
810
810
  });
811
811
  }, St = (e) => {
812
812
  const t = /<([A-Za-z][A-Za-z0-9]*|[a-z][a-z0-9._]*-[a-z0-9._-]+)((?:\s+[A-Za-z0-9_-]+="[^"]*"|\s*[a-z]*)*)>/g, { constants: r } = E();
@@ -821,25 +821,25 @@ const T = {
821
821
  const { constants: t } = E();
822
822
  return e = e.replace(/<[\w:\-]+([^>]*[^\/])>/g, (r, s) => r.replace(s, (n) => n.replace(new RegExp(t.ATTRIBUTE_IGNORE_PLACEHOLDER + "nl!", "g"), `
823
823
  `).replace(new RegExp(t.ATTRIBUTE_IGNORE_PLACEHOLDER + "cr!", "g"), "\r").replace(new RegExp(t.ATTRIBUTE_IGNORE_PLACEHOLDER + "ws!", "g"), " "))), e;
824
- }, kt = (e) => {
824
+ }, It = (e) => {
825
825
  const { constants: t } = E();
826
826
  return e = e.replace(new RegExp(`.*${t.CONTENT_IGNORE_PLACEHOLDER}[a-z]{2}!.*`, "g"), (r) => r.replace(new RegExp(`${t.CONTENT_IGNORE_PLACEHOLDER}[a-z]{2}!`, "g"), (s) => s.replace(new RegExp(t.CONTENT_IGNORE_PLACEHOLDER + "nl!", "g"), `
827
827
  `).replace(new RegExp(t.CONTENT_IGNORE_PLACEHOLDER + "cr!", "g"), "\r").replace(new RegExp(t.CONTENT_IGNORE_PLACEHOLDER + "ws!", "g"), " "))), e;
828
- }, It = (e) => {
828
+ }, kt = (e) => {
829
829
  const t = /<([\w:\-]+)([^>]*)>/g, { constants: r } = E(), s = r.ATTRIBUTE_IGNORE_PLACEHOLDER.replace(
830
830
  /[-\/\\^$*+?.()|[\]{}]/g,
831
831
  "\\$&"
832
832
  ), n = new RegExp(s + "lt!", "g"), i = new RegExp(s + "gt!", "g");
833
833
  return e.replace(
834
834
  t,
835
- (o, a, l) => {
836
- const u = l.replace(n, "<").replace(i, ">");
837
- return `<${a}${u}>`;
835
+ (o, l, c) => {
836
+ const u = c.replace(n, "<").replace(i, ">");
837
+ return `<${l}${u}>`;
838
838
  }
839
839
  );
840
840
  }, Ct = (e) => {
841
841
  if (typeof e != "object") throw new Error("Config must be an object.");
842
- const t = { ...T };
842
+ const t = { ...w };
843
843
  if (!(Object.hasOwn(e, "content_wrap") || Object.hasOwn(e, "ignore") || Object.hasOwn(e, "ignore_with") || Object.hasOwn(e, "strict") || Object.hasOwn(e, "tab_size") || Object.hasOwn(e, "tag_wrap") || Object.hasOwn(e, "trim")))
844
844
  return C({ config: t }), t;
845
845
  let s = e.tab_size;
@@ -866,25 +866,25 @@ const T = {
866
866
  if (Object.hasOwn(e, "trim") && (!Array.isArray(e.trim) || !e.trim?.every((n) => typeof n == "string")))
867
867
  throw new Error("Trim config must be an array of strings.");
868
868
  return Rt(t, e);
869
- }, jt = (e, t, r) => {
869
+ }, Dt = (e, t, r) => {
870
870
  const s = e.trim().split(/\s+/);
871
871
  if (s.length === 0 || s.length === 1 && s[0] === "")
872
872
  return "";
873
873
  const n = [];
874
874
  let i = "";
875
875
  const o = r;
876
- s.forEach((l) => {
877
- if (l === "") return;
878
- if (l.length >= t) {
879
- i !== "" && n.push(n.length === 0 ? r + i : o + i), n.push(n.length === 0 ? r + l : o + l), i = "";
876
+ s.forEach((c) => {
877
+ if (c === "") return;
878
+ if (c.length >= t) {
879
+ i !== "" && n.push(n.length === 0 ? r + i : o + i), n.push(n.length === 0 ? r + c : o + c), i = "";
880
880
  return;
881
881
  }
882
- const u = i === "" ? l : i + " " + l;
883
- u.length <= t ? i = u : (i !== "" && n.push(n.length === 0 ? r + i : o + i), i = l);
882
+ const u = i === "" ? c : i + " " + c;
883
+ u.length <= t ? i = u : (i !== "" && n.push(n.length === 0 ? r + i : o + i), i = c);
884
884
  }), i !== "" && n.push(n.length === 0 ? r + i : o + i);
885
- const a = n.join(`
885
+ const l = n.join(`
886
886
  `);
887
- return wt(a);
887
+ return Tt(l);
888
888
  };
889
889
  function Ne(e) {
890
890
  C({ ignored: !0 });
@@ -894,16 +894,16 @@ function Ne(e) {
894
894
  let n = 0;
895
895
  const i = "___HTMLFY_SPECIAL_IGNORE_MARKER_";
896
896
  for (const o of t.ignore) {
897
- const a = o.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"), l = new RegExp(
898
- `(<\\s*${a}[^>]*>)(.*?)(<\\s*/\\s*${a}\\s*>)`,
897
+ const l = o.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"), c = new RegExp(
898
+ `(<\\s*${l}[^>]*>)(.*?)(<\\s*/\\s*${l}\\s*>)`,
899
899
  "gs"
900
900
  // global and dotAll
901
901
  );
902
902
  let u;
903
- const c = [];
904
- for (; (u = l.exec(r)) !== null; ) {
903
+ const a = [];
904
+ for (; (u = c.exec(r)) !== null; ) {
905
905
  const f = `${i}${n++}___`;
906
- s.set(f, u[2]), c.push({
906
+ s.set(f, u[2]), a.push({
907
907
  start: u.index + u[1].length,
908
908
  // start of content
909
909
  end: u.index + u[1].length + u[2].length,
@@ -911,26 +911,26 @@ function Ne(e) {
911
911
  marker: f
912
912
  });
913
913
  }
914
- for (let f = c.length - 1; f >= 0; f--) {
915
- const p = c[f];
914
+ for (let f = a.length - 1; f >= 0; f--) {
915
+ const p = a[f];
916
916
  r = r.substring(0, p.start) + p.marker + r.substring(p.end);
917
917
  }
918
918
  }
919
919
  return { html_with_markers: r, extracted_map: s };
920
920
  }
921
- function ke(e, t) {
921
+ function Ie(e, t) {
922
922
  C({ ignored: !1 });
923
923
  let r = e;
924
924
  for (const [s, n] of t)
925
925
  r = r.split(s).join(n);
926
926
  return r;
927
927
  }
928
- const Dt = new RegExp(`<(${we.join("|")})(?:\\s(?:[^/>]|/(?!>))*)*>`, "g");
928
+ const jt = new RegExp(`<(${Te.join("|")})(?:\\s(?:[^/>]|/(?!>))*)*>`, "g");
929
929
  function Pt(e) {
930
930
  const { constants: t } = E();
931
931
  return e.replace(
932
932
  // match only void elements that are not self-closing
933
- Dt,
933
+ jt,
934
934
  (r) => r.replace(/>$/, t.SELF_CLOSING_PLACEHOLDER)
935
935
  );
936
936
  }
@@ -938,30 +938,36 @@ function zt(e) {
938
938
  const { constants: t } = E();
939
939
  return e.replace(t.SELF_CLOSING_PLACEHOLDER, ">");
940
940
  }
941
- const Ht = (e, t = !1) => (e = e.replace(/<\s*textarea[^>]*>((.|\n)*?)<s*\/\s*textarea\s*>/g, (r, s) => r.replace(s, (n) => n.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/\n/g, "&#10;").replace(/\r/g, "&#13;").replace(/\s/g, "&nbsp;"))), t && (e = e.replace(/<\s*textarea[^>]*>(.|\n)*?<\s*\/\s*textarea\s*>/g, (r) => r.replace(/\s+/g, " ").replace(/\s>/g, ">").replace(/>\s/g, ">").replace(/\s</g, "<").replace(/<\s/g, "<").replace(/<\/\s/g, "</").replace(/class=["']\s/g, (s) => s.replace(/\s/g, "")).replace(/(class=.*)\s(["'])/g, "$1$2"))), e), Gt = (e) => e = e.replace(/<textarea[^>]*>((.|\n)*?)<\/textarea>/g, (t, r) => t.replace(r, (s) => (s = s.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, '"').replace(/&apos;/g, "'").replace(/&#10;/g, `
941
+ const Ht = (e, t = !1) => (e = e.replace(/<\s*textarea[^>]*>((.|\n)*?)<s*\/\s*textarea\s*>/g, (r, s) => r.replace(s, (n) => n.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/\n/g, "&#10;").replace(/\r/g, "&#13;").replace(/\s/g, "&nbsp;"))), t && (e = e.replace(/<\s*textarea[^>]*>(.|\n)*?<\s*\/\s*textarea\s*>/g, (r) => r.replace(/\s+/g, " ").replace(/\s>/g, ">").replace(/>\s/g, ">").replace(/\s</g, "<").replace(/<\s/g, "<").replace(/<\/\s/g, "</").replace(/class=["']\s/g, (s) => s.replace(/\s/g, "")).replace(/(class=.*)\s(["'])/g, "$1$2"))), e), Ft = (e) => e = e.replace(/<textarea[^>]*>((.|\n)*?)<\/textarea>/g, (t, r) => t.replace(r, (s) => (s = s.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, '"').replace(/&apos;/g, "'").replace(/&#10;/g, `
942
942
  `).replace(/&#13;/g, "\r").replace(/&nbsp;/g, " ").replace(/\s+/g, " "), s)));
943
943
  let le;
944
- const Ft = (e, t) => {
944
+ const Mt = (e, t) => {
945
945
  let r = !1;
946
- const { checked_html: s, ignored: n } = E();
946
+ const { checked_html: s, ignored: n, constants: i } = E();
947
947
  if (!s && !Se(e)) return e;
948
- const o = E().config.ignore.length > 0;
949
- if (!n && o) {
950
- const { html_with_markers: a, extracted_map: l } = Ne(e);
951
- e = a, le = l, r = !0;
948
+ const l = E().config.ignore.length > 0;
949
+ if (!n && l) {
950
+ const { html_with_markers: c, extracted_map: u } = Ne(e);
951
+ e = c, le = u, r = !0;
952
952
  }
953
- return e = Ht(e, !0), e = e.replace(/\n|\t/g, ""), e = e.replace(/>\s+</g, "><"), e = e.replace(/ {2,}/g, " "), e = e.replace(/ >/g, ">"), e = e.replace(/ </g, "<"), e = e.replace(/> /g, ">"), e = e.replace(/< /g, "<"), e = e.replace(/<\s+\//g, "</"), e = e.replace(/<\/\s+/g, "</"), e = e.replace(/ = /g, "="), e = e.replace(
953
+ return e = Ht(e, !0), e = e.replace(/\n|\t/g, ""), e = e.replace(/>\s+</g, "><"), e = e.replace(/ {2,}/g, " "), e = e.replace(
954
+ /(\S) (<[a-zA-Z][a-zA-Z0-9_:-]*)/g,
955
+ "$1___MINIFY-PROTECTED-SPACE___$2"
956
+ ), e = e.replace(
957
+ /(<\/[a-zA-Z][a-zA-Z0-9_:-]*>) (\S)/g,
958
+ "$1___MINIFY-PROTECTED-SPACE___$2"
959
+ ), e = e.replace(/ >/g, ">"), e = e.replace(/ </g, "<"), e = e.replace(/> /g, ">"), e = e.replace(/< /g, "<"), e = e.replace(/<\s+\//g, "</"), e = e.replace(/<\/\s+/g, "</"), e = e.replace(new RegExp("___MINIFY-PROTECTED-SPACE___", "g"), " "), e = e.replace(/ = /g, "="), e = e.replace(
954
960
  /([a-zA-Z0-9_-]+)=(['"])(.*?)\2/g,
955
- (a, l, u, c) => {
956
- const f = c.trim();
957
- return `${l}=${u}${f}${u}`;
961
+ (c, u, a, f) => {
962
+ const p = f.trim();
963
+ return `${u}=${a}${p}${a}`;
958
964
  }
959
- ), e = e.trim(), e = Gt(e), r && (e = ke(e, le)), e;
965
+ ), e = e.trim(), e = Ft(e), r && (e = Ie(e, le)), e;
960
966
  }, S = {
961
967
  line: []
962
968
  };
963
969
  let ce;
964
- const Mt = (e) => {
970
+ const Gt = (e) => {
965
971
  S.line = [];
966
972
  let t = -1;
967
973
  const r = /(<[^>]+>)|([^<]+)/g;
@@ -971,77 +977,77 @@ const Mt = (e) => {
971
977
  }, Ut = () => {
972
978
  const { config: e, constants: t } = E(), r = " ".repeat(e.tab_size), s = e.tag_wrap, n = e.content_wrap, i = e.strict;
973
979
  let o = "";
974
- const a = [], l = /<[A-Za-z]+\b[^>]*(?:.|\n)*?\/?>/g, u = /\s{1}[A-Za-z-]+(?:=".*?")?/g;
980
+ const l = [], c = /<[A-Za-z]+\b[^>]*(?:.|\n)*?\/?>/g, u = /\s{1}[A-Za-z-]+(?:=".*?")?/g;
975
981
  S.line.forEach((f, p) => {
976
982
  let $ = f.value;
977
983
  const g = $.startsWith("___HTMLFY_SPECIAL_IGNORE_MARKER_");
978
984
  let _ = 0;
979
985
  const y = S.line[p - 1], b = y?.value ?? "";
980
986
  o += "0", p === 0 && _++, $.trim().startsWith("</") && _++, b.trim().startsWith("<!doctype") && _++, b.trim().startsWith("<!--") && _++, (b.trim().endsWith("/>") || b.trim().endsWith(t.SELF_CLOSING_PLACEHOLDER)) && _++, b.trim().startsWith("</") && _++, y?.type === "text" && _++;
981
- const j = Math.max(0, o.length - _);
982
- if (o = o.substring(0, j), f.type === "text" && /^[!,;\.]/.test($))
987
+ const D = Math.max(0, o.length - _);
988
+ if (o = o.substring(0, D), f.type === "text" && /^[!,;\.]/.test($)) {
983
989
  if ($.length === 1) {
984
- a[a.length - 1] = a.at(-1) + $;
990
+ l[l.length - 1] = l.at(-1) + $;
985
991
  return;
986
- } else
987
- a[a.length - 1] = a.at(-1) + $.charAt(0), $ = $.slice(1).trim();
988
- const m = r.repeat(j);
992
+ } else if (l[l.length - 1] = l.at(-1) + $.charAt(0), $ = $.slice(1).trim(), $.length === 0) return;
993
+ }
994
+ const v = r.repeat(D);
989
995
  if (g)
990
- a.push($);
996
+ l.push($);
991
997
  else {
992
998
  if (i && $.trim().startsWith("<!--"))
993
999
  return;
994
1000
  let d = $;
995
1001
  if (d = zt(d), f.type === "text" && n > 0 && d.length >= n)
996
- d = jt(d, n, m);
997
- else if (s > 0 && d.length > s && l.test(d)) {
998
- l.lastIndex = 0, u.lastIndex = 0;
999
- const w = d.split(u).filter(Boolean);
1000
- if (w.length >= 2) {
1001
- const Ce = d.matchAll(u), je = m + r;
1002
- let M = m + w[0] + `
1002
+ d = Dt(d, n, v);
1003
+ else if (s > 0 && d.length > s && c.test(d)) {
1004
+ c.lastIndex = 0, u.lastIndex = 0;
1005
+ const T = d.split(u).filter(Boolean);
1006
+ if (T.length >= 2) {
1007
+ const Ce = d.matchAll(u), De = v + r;
1008
+ let G = v + T[0] + `
1003
1009
  `;
1004
- for (const Ge of Ce) {
1005
- const Fe = Ge[0].trim();
1006
- M += je + Fe + `
1010
+ for (const Fe of Ce) {
1011
+ const Me = Fe[0].trim();
1012
+ G += De + Me + `
1007
1013
  `;
1008
1014
  }
1009
- const ee = w[0].match(/<([A-Za-z_:-]+)/), De = ee ? ee[1] : "", Pe = w.at(-1)?.endsWith("/>") && we.includes(De), ze = w[1].trim(), He = m + (i && Pe ? " " : "");
1010
- M += He + ze, d = M;
1015
+ const ee = T[0].match(/<([A-Za-z_:-]+)/), je = ee ? ee[1] : "", Pe = T.at(-1)?.endsWith("/>") && Te.includes(je), ze = T[1].trim(), He = v + (i && Pe ? " " : "");
1016
+ G += He + ze, d = G;
1011
1017
  } else
1012
- d = m + d;
1018
+ d = v + d;
1013
1019
  } else
1014
- d = m + d;
1015
- a.push(d);
1020
+ d = v + d;
1021
+ l.push(d);
1016
1022
  }
1017
1023
  });
1018
- let c = a.join(`
1024
+ let a = l.join(`
1019
1025
  `);
1020
- return s > 0 && (c = At(c)), n > 0 && new RegExp(`/\\n[ ]*[^\\n]*${t.CONTENT_IGNORE_PLACEHOLDER}[^\\n]*\\n/`).test(c) && (c = Tt(c)), c = c.replace(
1026
+ return s > 0 && (a = xt(a)), n > 0 && new RegExp(`/\\n[ ]*[^\\n]*${t.CONTENT_IGNORE_PLACEHOLDER}[^\\n]*\\n/`).test(a) && (a = wt(a)), a = a.replace(
1021
1027
  /<(?<Element>[^>\s]+)[^>]*>[^<]*?[^><\/\s][^<]*?<\/\k<Element>>|<script[^>]*>[\s]*<\/script>|<([\w:\._-]+)([^>]*)><\/\2>|<([\w:\._-]+)([^>]*)>[\s]+<\/\4>/g,
1022
1028
  (f) => f.includes(t.SELF_CLOSING_PLACEHOLDER) || f.includes(t.CONTENT_IGNORE_PLACEHOLDER) ? f : f.replace(/\n|\t|\s{2,}/g, "")
1023
- ), n > 0 && (c = kt(c)), s > 0 && (c = Nt(c)), i && (c = c.replace(/\s\/>|\/>/g, ">")), c.startsWith(`
1024
- `) && (c = c.substring(1)), c.endsWith(`
1025
- `) && (c = c.substring(0, c.length - 1)), c;
1029
+ ), n > 0 && (a = It(a)), s > 0 && (a = Nt(a)), i && (a = a.replace(/\s\/>|\/>/g, ">")), a.startsWith(`
1030
+ `) && (a = a.substring(1)), a.endsWith(`
1031
+ `) && (a = a.substring(0, a.length - 1)), a;
1026
1032
  }, Bt = (e, t) => {
1027
1033
  let r = !1;
1028
1034
  const { checked_html: s, ignored: n } = E();
1029
1035
  if (!s && !Se(e)) return e;
1030
1036
  const i = Ct(t || {}), o = i.ignore.length > 0;
1031
1037
  if (i.trim.length > 0 && (e = Lt(e, i.trim)), !n && o) {
1032
- const { html_with_markers: a, extracted_map: l } = Ne(e);
1033
- e = a, ce = l, r = !0;
1038
+ const { html_with_markers: l, extracted_map: c } = Ne(e);
1039
+ e = l, ce = c, r = !0;
1034
1040
  }
1035
- return e = St(e), e = Pt(e), e = Ft(e), Mt(e), e = Ut(), e = It(e), r && (e = ke(e, ce)), e;
1036
- }, Wt = (e, t, r) => {
1041
+ return e = St(e), e = Pt(e), e = Mt(e), Gt(e), e = Ut(), e = kt(e), r && (e = Ie(e, ce)), e;
1042
+ }, Zt = (e, t, r) => {
1037
1043
  [null, void 0, "", !1].includes(r) || ["innerHTML", "style", ""].includes(t) || e.setAttribute(t, ["object", "function"].includes(typeof r) ? "⚠️ Property must be set through a script or a framework-specific syntax." : r);
1038
- }, Ie = (e, t, r, s, n) => {
1044
+ }, ke = (e, t, r, s, n) => {
1039
1045
  if (t && typeof t == "string") {
1040
1046
  const i = document.createElement(t);
1041
1047
  Object.keys(r || {}).forEach((o) => {
1042
- Wt(i, o, r[o]);
1048
+ Zt(i, o, r[o]);
1043
1049
  }), s?.forEach((o) => {
1044
- Ie(i, o.$tag$, o.$attrs$, o.$children$, o.$text$);
1050
+ ke(i, o.$tag$, o.$attrs$, o.$children$, o.$text$);
1045
1051
  }), r?.innerHTML && (i.innerHTML = r.innerHTML), e.appendChild(i);
1046
1052
  }
1047
1053
  n && (e.innerHTML = n);
@@ -1058,7 +1064,7 @@ const Mt = (e) => {
1058
1064
  }, yr = (e, t) => {
1059
1065
  const r = document.getElementById("storybook-root");
1060
1066
  if (r !== null)
1061
- return document.querySelector("[lang]")?.setAttribute("lang", t.globals?.locale || "en"), xt({
1067
+ return document.querySelector("[lang]")?.setAttribute("lang", t.globals?.locale || "en"), At({
1062
1068
  $cmpMeta$: {
1063
1069
  $flags$: 0,
1064
1070
  $tagName$: r.tagName
@@ -1067,7 +1073,7 @@ const Mt = (e) => {
1067
1073
  }, e(t)), r.children[r.children.length - 1];
1068
1074
  }, br = ({ $tag$: e, $attrs$: t, $children$: r, $text$: s }) => {
1069
1075
  const n = document.createElement("div");
1070
- return Ie(n, e, t, r, s), Bt(n.innerHTML, {
1076
+ return ke(n, e, t, r, s), Bt(n.innerHTML, {
1071
1077
  tag_wrap: 40,
1072
1078
  content_wrap: 120
1073
1079
  }).replace(/="true"/g, "");
@@ -1077,7 +1083,7 @@ const Mt = (e) => {
1077
1083
  const r = t.split("/");
1078
1084
  return `${e}${r.slice(2, r.length - 1).join("-")}--docs`;
1079
1085
  };
1080
- class mr {
1086
+ class vr {
1081
1087
  /**
1082
1088
  * JsonDocs
1083
1089
  */
@@ -1107,10 +1113,10 @@ class mr {
1107
1113
  * @returns component arg types
1108
1114
  */
1109
1115
  extractArgTypes = (t) => {
1110
- const r = this.#e(t), s = r?.props.reduce((c, f) => {
1116
+ const r = this.#e(t), s = r?.props.reduce((a, f) => {
1111
1117
  const { control: p, options: $ } = this.#t(f);
1112
1118
  return {
1113
- ...c,
1119
+ ...a,
1114
1120
  [f.name]: {
1115
1121
  name: f.attr || f.name,
1116
1122
  description: f.docs,
@@ -1124,8 +1130,8 @@ class mr {
1124
1130
  options: $
1125
1131
  }
1126
1132
  };
1127
- }, {}), n = r?.events.reduce((c, f) => ({
1128
- ...c,
1133
+ }, {}), n = r?.events.reduce((a, f) => ({
1134
+ ...a,
1129
1135
  [f.event]: {
1130
1136
  name: f.event,
1131
1137
  description: f.docs,
@@ -1134,8 +1140,8 @@ class mr {
1134
1140
  type: { summary: f.detail }
1135
1141
  }
1136
1142
  }
1137
- }), {}), i = r?.methods.reduce((c, f) => ({
1138
- ...c,
1143
+ }), {}), i = r?.methods.reduce((a, f) => ({
1144
+ ...a,
1139
1145
  [f.name]: {
1140
1146
  name: f.name,
1141
1147
  description: f.docs,
@@ -1144,8 +1150,8 @@ class mr {
1144
1150
  type: { summary: f.signature }
1145
1151
  }
1146
1152
  }
1147
- }), {}), o = r?.slots.reduce((c, f) => ({
1148
- ...c,
1153
+ }), {}), o = r?.slots.reduce((a, f) => ({
1154
+ ...a,
1149
1155
  [f.name]: {
1150
1156
  name: f.name !== "" ? f.name : "default",
1151
1157
  // default slot are unnamed
@@ -1155,8 +1161,8 @@ class mr {
1155
1161
  type: { summary: void 0 }
1156
1162
  }
1157
1163
  }
1158
- }), {}), a = r?.styles.reduce((c, f) => ({
1159
- ...c,
1164
+ }), {}), l = r?.styles.reduce((a, f) => ({
1165
+ ...a,
1160
1166
  [f.name]: {
1161
1167
  name: f.name,
1162
1168
  description: f.docs,
@@ -1165,10 +1171,10 @@ class mr {
1165
1171
  type: { summary: void 0 }
1166
1172
  }
1167
1173
  }
1168
- }), {}), l = r?.dependencies.reduce((c, f) => {
1174
+ }), {}), c = r?.dependencies.reduce((a, f) => {
1169
1175
  const p = this.#e(f);
1170
1176
  return p ? {
1171
- ...c,
1177
+ ...a,
1172
1178
  [f]: {
1173
1179
  name: f,
1174
1180
  description: `<a href="./?path=/docs/${fe("", p?.filePath)}">View Component Documentation</a>`,
@@ -1177,11 +1183,11 @@ class mr {
1177
1183
  type: { summary: void 0 }
1178
1184
  }
1179
1185
  }
1180
- } : c;
1181
- }, {}), u = r?.dependents.reduce((c, f) => {
1186
+ } : a;
1187
+ }, {}), u = r?.dependents.reduce((a, f) => {
1182
1188
  const p = this.#e(f);
1183
1189
  return p ? {
1184
- ...c,
1190
+ ...a,
1185
1191
  [f]: {
1186
1192
  name: f,
1187
1193
  description: `<a href="./?path=/docs/${fe("", p?.filePath)}">View Component Documentation</a>`,
@@ -1190,15 +1196,15 @@ class mr {
1190
1196
  type: { summary: void 0 }
1191
1197
  }
1192
1198
  }
1193
- } : c;
1199
+ } : a;
1194
1200
  }, {});
1195
1201
  return {
1196
1202
  ...s,
1197
1203
  ...n,
1198
1204
  ...i,
1199
1205
  ...o,
1200
- ...a,
1201
1206
  ...l,
1207
+ ...c,
1202
1208
  ...u
1203
1209
  };
1204
1210
  };
@@ -1212,7 +1218,7 @@ class mr {
1212
1218
  return r?.readme || r?.docs;
1213
1219
  };
1214
1220
  }
1215
- const vr = ({ disconnect: e, observe: t, takeRecords: r }) => {
1221
+ const mr = ({ disconnect: e, observe: t, takeRecords: r }) => {
1216
1222
  class s {
1217
1223
  /**
1218
1224
  *
@@ -1271,15 +1277,15 @@ const vr = ({ disconnect: e, observe: t, takeRecords: r }) => {
1271
1277
  });
1272
1278
  }), r;
1273
1279
  };
1274
- class Zt extends Event {
1280
+ class Wt extends Event {
1275
1281
  /**
1276
1282
  *
1277
1283
  */
1278
1284
  detail;
1279
1285
  // eslint-disable-line @typescript-eslint/no-explicit-any
1280
1286
  }
1281
- const xr = () => {
1282
- class e extends Zt {
1287
+ const Ar = () => {
1288
+ class e extends Wt {
1283
1289
  }
1284
1290
  return [window, global].forEach((t) => {
1285
1291
  Object.defineProperty(t, "SubmitEvent", {
@@ -1301,12 +1307,12 @@ const xr = () => {
1301
1307
  export {
1302
1308
  qt as ClassList,
1303
1309
  tr as Cursor,
1304
- We as Page,
1310
+ Ze as Page,
1305
1311
  rr as Paginate,
1306
- mr as StorybookPreview,
1312
+ vr as StorybookPreview,
1307
1313
  Jt as allItemsAreString,
1308
- Xt as cleanString,
1309
- Yt as createID,
1314
+ Kt as cleanString,
1315
+ Xt as createID,
1310
1316
  sr as dateRegExp,
1311
1317
  nr as dateToString,
1312
1318
  hr as defineLocales,
@@ -1314,12 +1320,12 @@ export {
1314
1320
  or as focusableElements,
1315
1321
  Vt as formatID,
1316
1322
  pr as getLocaleDatePattern,
1317
- Me as getObjectValueFromKey,
1323
+ Ge as getObjectValueFromKey,
1318
1324
  pe as getParentWindows,
1319
1325
  br as getStoryHTML,
1320
1326
  fe as getStorybookUrl,
1321
1327
  lr as getWindows,
1322
- F as isObject,
1328
+ M as isObject,
1323
1329
  ir as isTagName,
1324
1330
  ar as isValidNumber,
1325
1331
  Ue as isValidString,
@@ -1331,11 +1337,11 @@ export {
1331
1337
  _r as localeUnit,
1332
1338
  er as nextTick,
1333
1339
  Rr as setUpRequestAnimationFrameMock,
1334
- vr as setupMutationObserverMock,
1340
+ mr as setupMutationObserverMock,
1335
1341
  Or as setupResizeObserverMock,
1336
- xr as setupSubmitEventMock,
1342
+ Ar as setupSubmitEventMock,
1337
1343
  yr as stencilWrapper,
1338
- Kt as toString,
1344
+ Yt as toString,
1339
1345
  ur as vsCodeCssGenerator,
1340
1346
  fr as vsCodeGenerator,
1341
1347
  cr as webTypesGenerator