@mgdis/stencil-helpers 3.2.4 → 3.2.5

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
@@ -1,205 +1,195 @@
1
- var st = Object.defineProperty;
2
- var de = (e) => {
3
- throw TypeError(e);
4
- };
5
- var nt = (e, t, r) => t in e ? st(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
6
- var $ = (e, t, r) => nt(e, typeof t != "symbol" ? t + "" : t, r), $e = (e, t, r) => t.has(e) || de("Cannot " + r);
7
- var m = (e, t, r) => ($e(e, t, "read from private field"), r ? r.call(e) : t.get(e)), N = (e, t, r) => t.has(e) ? de("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), H = (e, t, r, s) => ($e(e, t, "write to private field"), s ? s.call(e, r) : t.set(e, r), r);
8
- class ur {
1
+ class Yt {
2
+ /**
3
+ * Available classes
4
+ */
5
+ classes;
9
6
  constructor(t = []) {
10
- /**
11
- * Available classes
12
- */
13
- $(this, "classes");
14
- /**
15
- * Add class
16
- * @param className - class name to add
17
- */
18
- $(this, "add", (t) => {
19
- this.has(t) || this.classes.push(t);
20
- });
21
- /**
22
- * Delete class
23
- * @param className - class name to delete
24
- */
25
- $(this, "delete", (t) => {
26
- const r = this.classes.indexOf(t);
27
- r > -1 && this.classes.splice(r, 1);
28
- });
29
- /**
30
- * Check if class exist in list
31
- * @param className - class name to check
32
- * @returns class name is in the list
33
- */
34
- $(this, "has", (t) => this.classes.includes(t));
35
- /**
36
- * Join classes seperated by spaces
37
- * @returns joined values
38
- */
39
- $(this, "join", () => this.classes.join(" "));
40
7
  this.classes = t;
41
8
  }
9
+ /**
10
+ * Add class
11
+ * @param className - class name to add
12
+ */
13
+ add = (t) => {
14
+ this.has(t) || this.classes.push(t);
15
+ };
16
+ /**
17
+ * Delete class
18
+ * @param className - class name to delete
19
+ */
20
+ delete = (t) => {
21
+ const r = this.classes.indexOf(t);
22
+ r > -1 && this.classes.splice(r, 1);
23
+ };
24
+ /**
25
+ * Check if class exist in list
26
+ * @param className - class name to check
27
+ * @returns class name is in the list
28
+ */
29
+ has = (t) => this.classes.includes(t);
30
+ /**
31
+ * Join classes seperated by spaces
32
+ * @returns joined values
33
+ */
34
+ join = () => this.classes.join(" ");
42
35
  }
43
- const Y = (e) => typeof e == "object" && !Array.isArray(e) && e !== null, it = (e, t, r) => {
44
- const s = ".";
45
- if (!Y(e) || typeof t != "string")
36
+ const U = (e) => typeof e == "object" && !Array.isArray(e) && e !== null, qe = (e, t, r) => {
37
+ if (!U(e) || typeof t != "string")
46
38
  return r;
47
- const [n, ...i] = t.split(s);
48
- return i.length ? it(e[n], i.join(s)) : e[n];
49
- }, pr = (e) => Array.isArray(e) && e.every((t) => typeof t == "string"), ot = (e) => typeof e == "string" && e.trim() !== "", gr = (e) => typeof e == "object" ? JSON.stringify(e) : String(e), dr = (e) => typeof e == "string" ? e.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g, "") : e, at = (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, ""), $r = (e = "", t = 10) => {
39
+ const [n, ...i] = t.split(".");
40
+ return i.length ? qe(e[n], i.join("."), r) : e[n] ?? r;
41
+ }, Qt = (e) => Array.isArray(e) && e.every((t) => typeof t == "string"), Ge = (e) => typeof e == "string" && e.trim() !== "", Vt = (e) => typeof e == "object" ? JSON.stringify(e) : String(e), er = (e) => typeof e == "string" ? e.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g, "") : e, Je = (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, ""), tr = (e = "", t = 10) => {
50
42
  const r = new Uint8Array(t);
51
43
  crypto.getRandomValues(r);
52
44
  const s = Array.from(r).map((n) => n.toString(16).padStart(2, "0")).join("").slice(0, t);
53
45
  return e !== "" ? `${e}-${s}` : s;
54
- }, hr = (e) => ot(e) && /^([a-z][a-z0-9]*)(-[a-z0-9]+)*$/.exec(e) !== null, _r = (e) => {
46
+ }, rr = (e) => Ge(e) && /^([a-z][a-z0-9]*)(-[a-z0-9]+)*$/.exec(e) !== null, sr = (e) => {
55
47
  let t;
56
- return typeof e == "string" ? t = e : e && typeof e == "object" && (Y(e) || Array.isArray(e)) ? t = JSON.stringify(e) : e != null && typeof e != "boolean" && typeof e != "object" && (t = String(e)), t && at(t);
57
- }, yr = async (e) => {
48
+ return typeof e == "string" ? t = e : e && typeof e == "object" && (U(e) || Array.isArray(e)) ? t = JSON.stringify(e) : e != null && typeof e != "boolean" && typeof e != "object" && (t = String(e)), t && Je(t);
49
+ }, nr = async (e) => {
58
50
  if (e)
59
51
  return e();
60
- }, br = {
52
+ }, ir = {
61
53
  FIRST: "first",
62
54
  NEXT: "next",
63
55
  PREVIOUS: "previous",
64
56
  LAST: "last"
65
- }, Oe = 10;
66
- class lt {
57
+ }, $e = 10;
58
+ class Ke {
59
+ /**
60
+ * Define items
61
+ */
62
+ items = [];
63
+ /**
64
+ * Define total
65
+ */
66
+ total;
67
+ /**
68
+ * Define top
69
+ */
70
+ top = $e;
71
+ /**
72
+ * Define next
73
+ */
74
+ next;
75
+ /**
76
+ * Define base index
77
+ */
78
+ baseIndex = 1;
67
79
  constructor(t) {
68
- /**
69
- * Define items
70
- */
71
- $(this, "items", []);
72
- /**
73
- * Define total
74
- */
75
- $(this, "total");
76
- /**
77
- * Define top
78
- */
79
- $(this, "top", Oe);
80
- /**
81
- * Define next
82
- */
83
- $(this, "next");
84
- /**
85
- * Define base index
86
- */
87
- $(this, "baseIndex", 1);
88
- /**
89
- * Get index of items from cursor
90
- * @param cursor - cursor to find
91
- * @param oldItem - previous item
92
- * @returns item index
93
- */
94
- $(this, "getIndexFromCursor", (t = "first", r) => {
95
- if (!Array.isArray(this.items) || !this.items.length)
96
- return null;
97
- const n = this.items.length - this.baseIndex;
98
- let i, o = 0;
99
- if (["previous", "next"].includes(t) && r) {
100
- const c = this.items.findIndex((l) => JSON.stringify(l) === JSON.stringify(r));
101
- if (c === -1)
102
- return 0;
103
- o = c;
104
- }
105
- 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;
106
- });
107
- if (Y(t))
80
+ if (U(t))
108
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;
109
82
  else
110
83
  throw new Error("Page - init must match IPage type.");
111
84
  }
85
+ /**
86
+ * Get index of items from cursor
87
+ * @param cursor - cursor to find
88
+ * @param oldItem - previous item
89
+ * @returns item index
90
+ */
91
+ getIndexFromCursor = (t = "first", r) => {
92
+ if (!Array.isArray(this.items) || !this.items.length)
93
+ return null;
94
+ const n = this.items.length - this.baseIndex;
95
+ let i, o = 0;
96
+ if (["previous", "next"].includes(t) && r) {
97
+ const c = this.items.findIndex((l) => JSON.stringify(l) === JSON.stringify(r));
98
+ if (c === -1)
99
+ return 0;
100
+ o = c;
101
+ }
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
+ };
112
104
  }
113
- var O, I, U;
114
- class vr {
105
+ class or {
106
+ /**
107
+ * Define paginated items
108
+ */
109
+ items = [];
110
+ /* Privates */
111
+ #e = $e;
112
+ #t;
113
+ #r;
115
114
  constructor(t, r) {
116
- /**
117
- * Define paginated items
118
- */
119
- $(this, "items", []);
120
- /* Privates */
121
- N(this, O, Oe);
122
- N(this, I);
123
- N(this, U);
124
- /**
125
- * Get page
126
- * @param offset - pagiantion offset
127
- * @param filter - filter methode
128
- * @returns formated page
129
- */
130
- $(this, "getPage", (t = 0, r) => {
131
- const s = typeof r == "function" ? this.items.filter(r) : this.items;
132
- let n;
133
- return m(this, I) ? n = m(this, I) : s.length > t + m(this, O) && (n = () => this.getPage(t + m(this, O), r)), new lt({
134
- items: s.slice(t, t + m(this, O)),
135
- total: m(this, U),
136
- top: m(this, O),
137
- next: n
138
- });
139
- });
140
- Array.isArray(t) && (this.items = t), r && (["string", "function"].includes(typeof r.next) || Y(r.next) && URL.canParse(r.next)) && H(this, I, r.next), typeof (r == null ? void 0 : r.top) == "number" && H(this, O, r.top), typeof (r == null ? void 0 : r.total) == "number" && H(this, U, r.total);
115
+ Array.isArray(t) && (this.items = t), r && (["string", "function"].includes(typeof r.next) || U(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);
141
116
  }
117
+ /**
118
+ * Get page
119
+ * @param offset - pagiantion offset
120
+ * @param filter - filter methode
121
+ * @returns formated page
122
+ */
123
+ getPage = (t = 0, r) => {
124
+ const s = typeof r == "function" ? this.items.filter(r) : this.items;
125
+ let n;
126
+ return this.#t ? n = this.#t : s.length > t + this.#e && (n = () => this.getPage(t + this.#e, r)), new Ke({
127
+ items: s.slice(t, t + this.#e),
128
+ total: this.#r,
129
+ top: this.#e,
130
+ next: n
131
+ });
132
+ };
142
133
  }
143
- O = new WeakMap(), I = new WeakMap(), U = new WeakMap();
144
- const mr = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, wr = (e) => e.toISOString().split("T")[0], xr = (e, t) => t.includes(e == null ? void 0 : e.tagName.toLowerCase()), Er = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button', Sr = (e) => typeof e == "number" && !Number.isNaN(e), Or = (e) => {
145
- const t = ke(e), r = Ae(e);
134
+ const ar = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, lr = (e) => e.toISOString().split("T")[0], cr = (e, t) => t.includes(e?.tagName.toLowerCase()), fr = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button', ur = (e) => typeof e == "number" && !Number.isNaN(e), pr = (e) => {
135
+ const t = he(e), r = _e(e);
146
136
  return [e, ...t, ...r];
147
- }, ke = (e, t = []) => {
137
+ }, he = (e, t = []) => {
148
138
  if (e.self !== e.top)
149
139
  try {
150
140
  const r = e.parent;
151
- return r ? (t.push(r), ke(r, t)) : t;
141
+ return r ? (t.push(r), he(r, t)) : t;
152
142
  } catch (r) {
153
143
  return console.error("Different hosts between iframes:", r), t;
154
144
  }
155
145
  return t;
156
- }, Ae = (e, t = []) => {
146
+ }, _e = (e, t = []) => {
157
147
  if (e.frames.length > 0)
158
148
  for (const r of Array.from(e.frames))
159
- t.push(r), Ae(r, t);
149
+ t.push(r), _e(r, t);
160
150
  return t;
161
151
  };
162
- var ct = Object.defineProperty, ft = (e, t) => {
152
+ var Xe = Object.defineProperty, Ye = (e, t) => {
163
153
  for (var r in t)
164
- ct(e, r, { get: t[r], enumerable: !0 });
165
- }, ut = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), pt = {};
166
- ft(pt, {
167
- err: () => je,
168
- map: () => gt,
169
- ok: () => ee,
170
- unwrap: () => dt,
171
- unwrapErr: () => $t
154
+ Xe(e, r, { get: t[r], enumerable: !0 });
155
+ }, Qe = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Ve = {};
156
+ Ye(Ve, {
157
+ err: () => ye,
158
+ map: () => et,
159
+ ok: () => B,
160
+ unwrap: () => tt,
161
+ unwrapErr: () => rt
172
162
  });
173
- var ee = (e) => ({
163
+ var B = (e) => ({
174
164
  isOk: !0,
175
165
  isErr: !1,
176
166
  value: e
177
- }), je = (e) => ({
167
+ }), ye = (e) => ({
178
168
  isOk: !1,
179
169
  isErr: !0,
180
170
  value: e
181
171
  });
182
- function gt(e, t) {
172
+ function et(e, t) {
183
173
  if (e.isOk) {
184
174
  const r = t(e.value);
185
- return r instanceof Promise ? r.then((s) => ee(s)) : ee(r);
175
+ return r instanceof Promise ? r.then((s) => B(s)) : B(r);
186
176
  }
187
177
  if (e.isErr) {
188
178
  const r = e.value;
189
- return je(r);
179
+ return ye(r);
190
180
  }
191
181
  throw "should never get here";
192
182
  }
193
- var dt = (e) => {
183
+ var tt = (e) => {
194
184
  if (e.isOk)
195
185
  return e.value;
196
186
  throw e.value;
197
- }, $t = (e) => {
187
+ }, rt = (e) => {
198
188
  if (e.isErr)
199
189
  return e.value;
200
190
  throw e.value;
201
- }, oe = (e) => {
202
- const t = ut(e);
191
+ }, Y = (e) => {
192
+ const t = Qe(e);
203
193
  return new RegExp(
204
194
  // First capture group: match any context before the selector that's not inside @supports selector()
205
195
  // Using negative lookahead to avoid matching inside @supports selector(...) condition
@@ -207,18 +197,18 @@ var dt = (e) => {
207
197
  "g"
208
198
  );
209
199
  };
210
- oe("::slotted");
211
- oe(":host");
212
- oe(":host-context");
213
- const Re = (e, t) => {
200
+ Y("::slotted");
201
+ Y(":host");
202
+ Y(":host-context");
203
+ const be = (e, t) => {
214
204
  if (!t)
215
205
  return;
216
206
  const r = t.split("/");
217
207
  return `${e}${r.slice(2, r.length - 1).join("-")}--docs`;
218
- }, ht = (e, t) => {
208
+ }, st = (e, t) => {
219
209
  if (t)
220
210
  return `${e}${t}`;
221
- }, Te = (e) => {
211
+ }, me = (e) => {
222
212
  let t = e.overview ? `${e.overview}
223
213
 
224
214
  ` : "";
@@ -244,9 +234,9 @@ const Re = (e, t) => {
244
234
  `, t += e.slots.map(({ name: n, docs: i }) => `- \`${n}\`: ${i}
245
235
  `).join(""), t += `
246
236
  `), t;
247
- }, te = (e) => `${e.docs}
237
+ }, q = (e) => `${e.docs}
248
238
 
249
- Type: \`${e.type}\``, kr = (e, t, r, s) => ({
239
+ Type: \`${e.type}\``, gr = (e, t, r, s) => ({
250
240
  $schema: "https://json.schemastore.org/web-types",
251
241
  name: e,
252
242
  version: t,
@@ -254,14 +244,14 @@ Type: \`${e.type}\``, kr = (e, t, r, s) => ({
254
244
  contributions: {
255
245
  html: {
256
246
  elements: r.components.map((n) => {
257
- const i = Re(s, n.filePath);
247
+ const i = be(s, n.filePath);
258
248
  return {
259
249
  name: n.tag,
260
- description: Te(n),
250
+ description: me(n),
261
251
  "doc-url": i,
262
252
  attributes: n.props.filter((o) => o.attr).map((o) => ({
263
253
  name: o.attr,
264
- description: te(o),
254
+ description: q(o),
265
255
  "doc-url": i,
266
256
  value: {
267
257
  type: o.type,
@@ -272,7 +262,7 @@ Type: \`${e.type}\``, kr = (e, t, r, s) => ({
272
262
  js: {
273
263
  properties: n.props.map((o) => ({
274
264
  name: o.name,
275
- description: te(o),
265
+ description: q(o),
276
266
  "doc-url": i,
277
267
  value: {
278
268
  type: o.type,
@@ -295,23 +285,23 @@ Type: \`${e.type}\``, kr = (e, t, r, s) => ({
295
285
  })
296
286
  }
297
287
  }
298
- }), _t = (e, t, r) => [
299
- { name: "Storybook", url: Re(e, r) },
300
- { name: "Sources", url: ht(t, r) }
301
- ], yt = (e) => {
288
+ }), nt = (e, t, r) => [
289
+ { name: "Storybook", url: be(e, r) },
290
+ { name: "Sources", url: st(t, r) }
291
+ ], it = (e) => {
302
292
  if (!e.values.some(({ value: t }) => t === void 0))
303
293
  return e.values.map(({ value: t }) => ({ name: t }));
304
- }, Ar = (e, t, r) => ({
294
+ }, dr = (e, t, r) => ({
305
295
  version: 1.1,
306
296
  tags: e.components.map((s) => {
307
- const n = _t(t, r, s.filePath);
297
+ const n = nt(t, r, s.filePath);
308
298
  return {
309
299
  name: s.tag,
310
- description: Te(s),
300
+ description: me(s),
311
301
  attributes: s.props.map((i) => ({
312
302
  name: i.attr ?? i.name,
313
- description: te(i),
314
- values: yt(i),
303
+ description: q(i),
304
+ values: it(i),
315
305
  references: n
316
306
  })),
317
307
  references: n
@@ -319,17 +309,17 @@ Type: \`${e.type}\``, kr = (e, t, r, s) => ({
319
309
  }),
320
310
  globalAttributes: [],
321
311
  valueSets: []
322
- }), jr = (e) => ({
312
+ }), $r = (e) => ({
323
313
  version: 1.1,
324
314
  properties: e.components.flatMap((t) => t.styles.map((r) => ({
325
315
  name: r.name,
326
316
  description: r.docs
327
317
  })))
328
- }), bt = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, Rr = (e) => {
318
+ }), ot = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, hr = (e) => {
329
319
  const t = { value: "2023", pattern: "yyyy" }, r = { value: "12", pattern: "mm" }, s = { value: "24", pattern: "dd" };
330
- return mt([t.value, r.value, s.value].join("-"), e, { timeZone: "UTC" }).replace(t.value, t.pattern).replace(r.value, r.pattern).replace(s.value, s.pattern);
331
- }, vt = (e, t, r) => {
332
- const s = e.closest("[lang]"), n = Intl.NumberFormat.supportedLocalesOf(s == null ? void 0 : s.lang), i = n.length > 0 && typeof n[0] == "string" ? n[0] : navigator.language || r, o = i.split("-").shift();
320
+ return lt([t.value, r.value, s.value].join("-"), e, { timeZone: "UTC" }).replace(t.value, t.pattern).replace(r.value, r.pattern).replace(s.value, s.pattern);
321
+ }, at = (e, t, r) => {
322
+ const s = e.closest("[lang]"), n = Intl.NumberFormat.supportedLocalesOf(s?.lang), i = n.length > 0 && typeof n[0] == "string" ? n[0] : navigator.language || r, o = i.split("-").shift();
333
323
  return Object.keys(t).length === 0 ? {
334
324
  locale: i,
335
325
  messages: { lang: r }
@@ -337,26 +327,26 @@ Type: \`${e.type}\``, kr = (e, t, r, s) => ({
337
327
  locale: i,
338
328
  messages: t[o] ?? t[r] ?? { lang: r }
339
329
  };
340
- }, Tr = (e, t, r) => new Intl.NumberFormat(t, { style: "currency", currency: r }).format(e), Nr = (e, t, r = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: r }).format(Number(e)), zr = (e, t, r = 0) => new Intl.NumberFormat(t, {
330
+ }, _r = (e, t, r) => new Intl.NumberFormat(t, { style: "currency", currency: r }).format(e), yr = (e, t, r = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: r }).format(Number(e)), br = (e, t, r = 0) => new Intl.NumberFormat(t, {
341
331
  style: "percent",
342
332
  minimumFractionDigits: r,
343
333
  maximumFractionDigits: r
344
- }).format(e), Ir = (e, t, r, s = "short", n = 0) => new Intl.NumberFormat(t, {
334
+ }).format(e), mr = (e, t, r, s = "short", n = 0) => new Intl.NumberFormat(t, {
345
335
  style: "unit",
346
336
  unit: r,
347
337
  unitDisplay: s,
348
338
  minimumFractionDigits: n,
349
339
  maximumFractionDigits: n
350
- }).format(e), mt = (e, t, r) => typeof e != "string" || e === "" || !bt.test(e) ? "" : new Intl.DateTimeFormat(t, r).format(new Date(e)), Mr = (e, t) => (r) => vt(r, e, t);
351
- var Q = {
340
+ }).format(e), lt = (e, t, r) => typeof e != "string" || e === "" || !ot.test(e) ? "" : new Intl.DateTimeFormat(t, r).format(new Date(e)), vr = (e, t) => (r) => at(r, e, t);
341
+ var Z = {
352
342
  updatable: !0,
353
343
  slotRelocation: !0,
354
344
  // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
355
345
  experimentalSlotFixes: !1
356
- }, wt = Object.defineProperty, xt = (e, t) => {
346
+ }, ct = Object.defineProperty, ft = (e, t) => {
357
347
  for (var r in t)
358
- wt(e, r, { get: t[r], enumerable: !0 });
359
- }, Et = "http://www.w3.org/2000/svg", St = "http://www.w3.org/1999/xhtml", he = (e, t) => t in e, _e = "http://www.w3.org/1999/xlink", A = typeof window < "u" ? window : {}, M = {
348
+ ct(e, r, { get: t[r], enumerable: !0 });
349
+ }, ut = "http://www.w3.org/2000/svg", pt = "http://www.w3.org/1999/xhtml", ie = (e, t) => t in e, oe = "http://www.w3.org/1999/xlink", S = typeof window < "u" ? window : {}, j = {
360
350
  $flags$: 0,
361
351
  $resourcesUrl$: "",
362
352
  jmp: (e) => e(),
@@ -364,53 +354,53 @@ var Q = {
364
354
  ael: (e, t, r, s) => e.addEventListener(t, r, s),
365
355
  rel: (e, t, r, s) => e.removeEventListener(t, r, s),
366
356
  ce: (e, t) => new CustomEvent(e, t)
367
- }, Ot = (e) => e != null && e !== void 0, Ne = (e) => (e = typeof e, e === "object" || e === "function"), kt = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), At = {};
368
- xt(At, {
369
- err: () => ze,
370
- map: () => jt,
371
- ok: () => re,
372
- unwrap: () => Rt,
373
- unwrapErr: () => Tt
357
+ }, gt = (e) => e != null && e !== void 0, ve = (e) => (e = typeof e, e === "object" || e === "function"), dt = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), $t = {};
358
+ ft($t, {
359
+ err: () => we,
360
+ map: () => ht,
361
+ ok: () => G,
362
+ unwrap: () => _t,
363
+ unwrapErr: () => yt
374
364
  });
375
- var re = (e) => ({
365
+ var G = (e) => ({
376
366
  isOk: !0,
377
367
  isErr: !1,
378
368
  value: e
379
- }), ze = (e) => ({
369
+ }), we = (e) => ({
380
370
  isOk: !1,
381
371
  isErr: !0,
382
372
  value: e
383
373
  });
384
- function jt(e, t) {
374
+ function ht(e, t) {
385
375
  if (e.isOk) {
386
376
  const r = t(e.value);
387
- return r instanceof Promise ? r.then((s) => re(s)) : re(r);
377
+ return r instanceof Promise ? r.then((s) => G(s)) : G(r);
388
378
  }
389
379
  if (e.isErr) {
390
380
  const r = e.value;
391
- return ze(r);
381
+ return we(r);
392
382
  }
393
383
  throw "should never get here";
394
384
  }
395
- var Rt = (e) => {
385
+ var _t = (e) => {
396
386
  if (e.isOk)
397
387
  return e.value;
398
388
  throw e.value;
399
- }, Tt = (e) => {
389
+ }, yt = (e) => {
400
390
  if (e.isErr)
401
391
  return e.value;
402
392
  throw e.value;
403
- }, Ie = (e) => {
404
- const t = be(e, "childNodes");
405
- e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" && Me(t, e.tagName).forEach((s) => {
406
- s.nodeType === 1 && s.tagName === "SLOT-FB" && (zt(s, ae(s), !1).length ? s.hidden = !0 : s.hidden = !1);
393
+ }, xe = (e) => {
394
+ const t = le(e, "childNodes");
395
+ e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" && Ee(t, e.tagName).forEach((s) => {
396
+ s.nodeType === 1 && s.tagName === "SLOT-FB" && (mt(s, Q(s), !1).length ? s.hidden = !0 : s.hidden = !1);
407
397
  });
408
398
  let r = 0;
409
399
  for (r = 0; r < t.length; r++) {
410
400
  const s = t[r];
411
- s.nodeType === 1 && be(s, "childNodes").length && Ie(s);
401
+ s.nodeType === 1 && le(s, "childNodes").length && xe(s);
412
402
  }
413
- }, Nt = (e) => {
403
+ }, bt = (e) => {
414
404
  const t = [];
415
405
  for (let r = 0; r < e.length; r++) {
416
406
  const s = e[r]["s-nr"] || void 0;
@@ -418,32 +408,32 @@ var Rt = (e) => {
418
408
  }
419
409
  return t;
420
410
  };
421
- function Me(e, t, r) {
411
+ function Ee(e, t, r) {
422
412
  let s = 0, n = [], i;
423
413
  for (; s < e.length; s++)
424
- i = e[s], i["s-sr"] && (!t || i["s-hn"] === t) && r === void 0 && n.push(i), n = [...n, ...Me(i.childNodes, t, r)];
414
+ i = e[s], i["s-sr"] && (!t || i["s-hn"] === t) && r === void 0 && n.push(i), n = [...n, ...Ee(i.childNodes, t, r)];
425
415
  return n;
426
416
  }
427
- var zt = (e, t, r = !0) => {
417
+ var mt = (e, t, r = !0) => {
428
418
  const s = [];
429
419
  (r && e["s-sr"] || !e["s-sr"]) && s.push(e);
430
420
  let n = e;
431
421
  for (; n = n.nextSibling; )
432
- ae(n) === t && (r || !n["s-sr"]) && s.push(n);
422
+ Q(n) === t && (r || !n["s-sr"]) && s.push(n);
433
423
  return s;
434
- }, ye = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", ae = (e) => typeof e["s-sn"] == "string" ? e["s-sn"] : e.nodeType === 1 && e.getAttribute("slot") || void 0;
435
- function It(e) {
424
+ }, ae = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", Q = (e) => typeof e["s-sn"] == "string" ? e["s-sn"] : e.nodeType === 1 && e.getAttribute("slot") || void 0;
425
+ function vt(e) {
436
426
  if (e.assignedElements || e.assignedNodes || !e["s-sr"]) return;
437
427
  const t = (r) => (function(s) {
438
428
  const n = [], i = this["s-sn"];
439
- s != null && s.flatten && console.error(`
429
+ s?.flatten && console.error(`
440
430
  Flattening is not supported for Stencil non-shadow slots.
441
431
  You can use \`.childNodes\` to nested slot fallback content.
442
432
  If you have a particular use case, please open an issue on the Stencil repo.
443
433
  `);
444
434
  const o = this["s-cr"].parentElement;
445
- return (o.__childNodes ? o.childNodes : Nt(o.childNodes)).forEach((l) => {
446
- i === ae(l) && n.push(l);
435
+ return (o.__childNodes ? o.childNodes : bt(o.childNodes)).forEach((l) => {
436
+ i === Q(l) && n.push(l);
447
437
  }), r ? n.filter(
448
438
  (l) => l.nodeType === 1
449
439
  /* ElementNode */
@@ -451,23 +441,23 @@ function It(e) {
451
441
  }).bind(e);
452
442
  e.assignedElements = t(!0), e.assignedNodes = t(!1);
453
443
  }
454
- function be(e, t) {
444
+ function le(e, t) {
455
445
  if ("__" + t in e) {
456
446
  const r = e["__" + t];
457
447
  return typeof r != "function" ? r : r.bind(e);
458
448
  } else
459
449
  return typeof e[t] != "function" ? e[t] : e[t].bind(e);
460
450
  }
461
- var Mt = (e, t, ...r) => {
451
+ var wt = (e, t, ...r) => {
462
452
  let s = null, n = null, i = null, o = !1, c = !1;
463
453
  const l = [], u = (a) => {
464
454
  for (let g = 0; g < a.length; g++)
465
- s = a[g], Array.isArray(s) ? u(s) : s != null && typeof s != "boolean" && ((o = !Ne(s)) && (s = String(s)), o && c ? l[l.length - 1].$text$ += s : l.push(o ? se(null, s) : s), c = o);
455
+ s = a[g], Array.isArray(s) ? u(s) : s != null && typeof s != "boolean" && ((o = !ve(s)) && (s = String(s)), o && c ? l[l.length - 1].$text$ += s : l.push(o ? J(null, s) : s), c = o);
466
456
  };
467
457
  u(r);
468
- const p = se(e, null);
458
+ const p = J(e, null);
469
459
  return p.$attrs$ = t, l.length > 0 && (p.$children$ = l), p.$key$ = n, p.$name$ = i, p;
470
- }, se = (e, t) => {
460
+ }, J = (e, t) => {
471
461
  const r = {
472
462
  $flags$: 0,
473
463
  $tag$: e,
@@ -476,8 +466,8 @@ var Mt = (e, t, ...r) => {
476
466
  $children$: null
477
467
  };
478
468
  return r.$attrs$ = null, r.$key$ = null, r.$name$ = null, r;
479
- }, Lt = {}, Ft = (e) => e && e.$tag$ === Lt, le = (e) => {
480
- const t = kt(e);
469
+ }, xt = {}, Et = (e) => e && e.$tag$ === xt, V = (e) => {
470
+ const t = dt(e);
481
471
  return new RegExp(
482
472
  // First capture group: match any context before the selector that's not inside @supports selector()
483
473
  // Using negative lookahead to avoid matching inside @supports selector(...) condition
@@ -485,16 +475,16 @@ var Mt = (e, t, ...r) => {
485
475
  "g"
486
476
  );
487
477
  };
488
- le("::slotted");
489
- le(":host");
490
- le(":host-context");
491
- var ve = (e, t, r, s, n, i, o) => {
478
+ V("::slotted");
479
+ V(":host");
480
+ V(":host-context");
481
+ var ce = (e, t, r, s, n, i, o) => {
492
482
  if (r === s)
493
483
  return;
494
- let c = he(e, t), l = t.toLowerCase();
484
+ let c = ie(e, t), l = t.toLowerCase();
495
485
  if (t === "class") {
496
- const u = e.classList, p = me(r);
497
- let a = me(s);
486
+ const u = e.classList, p = fe(r);
487
+ let a = fe(s);
498
488
  u.remove(...p.filter((g) => g && !a.includes(g))), u.add(...a.filter((g) => g && !p.includes(g)));
499
489
  } else if (t === "style") {
500
490
  for (const u in r)
@@ -504,12 +494,12 @@ var ve = (e, t, r, s, n, i, o) => {
504
494
  } else if (t !== "key") if (t === "ref")
505
495
  s && s(e);
506
496
  else if (!e.__lookupSetter__(t) && t[0] === "o" && t[1] === "n") {
507
- if (t[2] === "-" ? t = t.slice(3) : he(A, l) ? t = l.slice(2) : t = l[2] + t.slice(3), r || s) {
508
- const u = t.endsWith(Le);
509
- t = t.replace(Pt, ""), r && M.rel(e, t, r, u), s && M.ael(e, t, s, u);
497
+ if (t[2] === "-" ? t = t.slice(3) : ie(S, l) ? t = l.slice(2) : t = l[2] + t.slice(3), r || s) {
498
+ const u = t.endsWith(Se);
499
+ t = t.replace(Ot, ""), r && j.rel(e, t, r, u), s && j.ael(e, t, s, u);
510
500
  }
511
501
  } else {
512
- const u = Ne(s);
502
+ const u = ve(s);
513
503
  if ((c || u && s !== null) && !n)
514
504
  try {
515
505
  if (e.tagName.includes("-"))
@@ -521,12 +511,12 @@ var ve = (e, t, r, s, n, i, o) => {
521
511
  } catch {
522
512
  }
523
513
  let p = !1;
524
- l !== (l = l.replace(/^xlink\:?/, "")) && (t = l, p = !0), s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && (p ? e.removeAttributeNS(_e, t) : e.removeAttribute(t)) : (!c || i & 4 || n) && !u && e.nodeType === 1 && (s = s === !0 ? "" : s, p ? e.setAttributeNS(_e, t, s) : e.setAttribute(t, s));
514
+ l !== (l = l.replace(/^xlink\:?/, "")) && (t = l, p = !0), s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && (p ? e.removeAttributeNS(oe, t) : e.removeAttribute(t)) : (!c || i & 4 || n) && !u && e.nodeType === 1 && (s = s === !0 ? "" : s, p ? e.setAttributeNS(oe, t, s) : e.setAttribute(t, s));
525
515
  }
526
- }, Ct = /\s/, me = (e) => (typeof e == "object" && e && "baseVal" in e && (e = e.baseVal), !e || typeof e != "string" ? [] : e.split(Ct)), Le = "Capture", Pt = new RegExp(Le + "$"), ne = (e, t, r, s) => {
516
+ }, St = /\s/, fe = (e) => (typeof e == "object" && e && "baseVal" in e && (e = e.baseVal), !e || typeof e != "string" ? [] : e.split(St)), Se = "Capture", Ot = new RegExp(Se + "$"), K = (e, t, r, s) => {
527
517
  const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, i = e && e.$attrs$ || {}, o = t.$attrs$ || {};
528
- for (const c of we(Object.keys(i)))
529
- c in o || ve(
518
+ for (const c of ue(Object.keys(i)))
519
+ c in o || ce(
530
520
  n,
531
521
  c,
532
522
  i[c],
@@ -534,8 +524,8 @@ var ve = (e, t, r, s, n, i, o) => {
534
524
  r,
535
525
  t.$flags$
536
526
  );
537
- for (const c of we(Object.keys(o)))
538
- ve(
527
+ for (const c of ue(Object.keys(o)))
528
+ ce(
539
529
  n,
540
530
  c,
541
531
  i[c],
@@ -544,7 +534,7 @@ var ve = (e, t, r, s, n, i, o) => {
544
534
  t.$flags$
545
535
  );
546
536
  };
547
- function we(e) {
537
+ function ue(e) {
548
538
  return e.includes("ref") ? (
549
539
  // we need to sort these to ensure that `'ref'` is the last attr
550
540
  [...e.filter((t) => t !== "ref"), "ref"]
@@ -553,11 +543,11 @@ function we(e) {
553
543
  e
554
544
  );
555
545
  }
556
- var q, G, F, ie = !1, J = !1, ce = !1, b = !1, K = (e, t, r) => {
546
+ var F, C, T, X = !1, P = !1, ee = !1, y = !1, W = (e, t, r) => {
557
547
  var s;
558
548
  const n = t.$children$[r];
559
549
  let i = 0, o, c, l;
560
- if (ie || (ce = !0, n.$tag$ === "slot" && (n.$flags$ |= n.$children$ ? (
550
+ if (X || (ee = !0, n.$tag$ === "slot" && (n.$flags$ |= n.$children$ ? (
561
551
  // slot element has fallback content
562
552
  // still create an element that "mocks" the slot element
563
553
  2
@@ -567,46 +557,46 @@ var q, G, F, ie = !1, J = !1, ce = !1, b = !1, K = (e, t, r) => {
567
557
  // where actual slot content should sit next to
568
558
  1
569
559
  ))), n.$text$ !== null)
570
- o = n.$elm$ = A.document.createTextNode(n.$text$);
560
+ o = n.$elm$ = S.document.createTextNode(n.$text$);
571
561
  else if (n.$flags$ & 1)
572
- o = n.$elm$ = A.document.createTextNode(""), ne(null, n, b);
562
+ o = n.$elm$ = S.document.createTextNode(""), K(null, n, y);
573
563
  else {
574
- if (b || (b = n.$tag$ === "svg"), !A.document)
564
+ if (y || (y = n.$tag$ === "svg"), !S.document)
575
565
  throw new Error(
576
566
  "You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
577
567
  );
578
- if (o = n.$elm$ = A.document.createElementNS(
579
- b ? Et : St,
580
- !ie && Q.slotRelocation && n.$flags$ & 2 ? "slot-fb" : n.$tag$
581
- ), b && n.$tag$ === "foreignObject" && (b = !1), ne(null, n, b), Ot(q) && o["s-si"] !== q && o.classList.add(o["s-si"] = q), n.$children$)
568
+ if (o = n.$elm$ = S.document.createElementNS(
569
+ y ? ut : pt,
570
+ !X && Z.slotRelocation && n.$flags$ & 2 ? "slot-fb" : n.$tag$
571
+ ), y && n.$tag$ === "foreignObject" && (y = !1), K(null, n, y), gt(F) && o["s-si"] !== F && o.classList.add(o["s-si"] = F), n.$children$)
582
572
  for (i = 0; i < n.$children$.length; ++i)
583
- c = K(e, n, i), c && o.appendChild(c);
584
- n.$tag$ === "svg" ? b = !1 : o.tagName === "foreignObject" && (b = !0);
573
+ c = W(e, n, i), c && o.appendChild(c);
574
+ n.$tag$ === "svg" ? y = !1 : o.tagName === "foreignObject" && (y = !0);
585
575
  }
586
- return o["s-hn"] = F, n.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = G, o["s-sn"] = n.$name$ || "", o["s-rf"] = (s = n.$attrs$) == null ? void 0 : s.ref, It(o), l = e && e.$children$ && e.$children$[r], l && l.$tag$ === n.$tag$ && e.$elm$ && C(e.$elm$, !1), Ue(G, o, t.$elm$, e == null ? void 0 : e.$elm$)), o;
587
- }, C = (e, t) => {
588
- M.$flags$ |= 1;
576
+ return o["s-hn"] = T, n.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = C, o["s-sn"] = n.$name$ || "", o["s-rf"] = (s = n.$attrs$) == null ? void 0 : s.ref, vt(o), l = e && e.$children$ && e.$children$[r], l && l.$tag$ === n.$tag$ && e.$elm$ && N(e.$elm$, !1), Re(C, o, t.$elm$, e?.$elm$)), o;
577
+ }, N = (e, t) => {
578
+ j.$flags$ |= 1;
589
579
  const r = Array.from(e.__childNodes || e.childNodes);
590
- e["s-sr"] && Q.experimentalSlotFixes;
580
+ e["s-sr"] && Z.experimentalSlotFixes;
591
581
  for (let s = r.length - 1; s >= 0; s--) {
592
582
  const n = r[s];
593
- n["s-hn"] !== F && n["s-ol"] && (R(P(n).parentNode, n, P(n)), n["s-ol"].remove(), n["s-ol"] = void 0, n["s-sh"] = void 0, ce = !0), t && C(n, t);
583
+ n["s-hn"] !== T && n["s-ol"] && (O(z(n).parentNode, n, z(n)), n["s-ol"].remove(), n["s-ol"] = void 0, n["s-sh"] = void 0, ee = !0), t && N(n, t);
594
584
  }
595
- M.$flags$ &= -2;
596
- }, Fe = (e, t, r, s, n, i) => {
585
+ j.$flags$ &= -2;
586
+ }, Oe = (e, t, r, s, n, i) => {
597
587
  let o = e["s-cr"] && e["s-cr"].parentNode || e, c;
598
- for (o.shadowRoot && o.tagName === F && (o = o.shadowRoot); n <= i; ++n)
599
- s[n] && (c = K(null, r, n), c && (s[n].$elm$ = c, R(o, c, P(t))));
600
- }, Ce = (e, t, r) => {
588
+ for (o.shadowRoot && o.tagName === T && (o = o.shadowRoot); n <= i; ++n)
589
+ s[n] && (c = W(null, r, n), c && (s[n].$elm$ = c, O(o, c, z(t))));
590
+ }, Ae = (e, t, r) => {
601
591
  for (let s = t; s <= r; ++s) {
602
592
  const n = e[s];
603
593
  if (n) {
604
594
  const i = n.$elm$;
605
- We(n), i && (J = !0, i["s-ol"] ? i["s-ol"].remove() : C(i, !0), i.remove());
595
+ je(n), i && (P = !0, i["s-ol"] ? i["s-ol"].remove() : N(i, !0), i.remove());
606
596
  }
607
597
  }
608
- }, Wt = (e, t, r, s, n = !1) => {
609
- let i = 0, o = 0, c = 0, l = 0, u = t.length - 1, p = t[0], a = t[u], g = s.length - 1, d = s[0], f = s[g], _, y;
598
+ }, At = (e, t, r, s, n = !1) => {
599
+ let i = 0, o = 0, c = 0, l = 0, u = t.length - 1, p = t[0], a = t[u], g = s.length - 1, d = s[0], f = s[g], h, _;
610
600
  for (; i <= u && o <= g; )
611
601
  if (p == null)
612
602
  p = t[++i];
@@ -616,42 +606,42 @@ var q, G, F, ie = !1, J = !1, ce = !1, b = !1, K = (e, t, r) => {
616
606
  d = s[++o];
617
607
  else if (f == null)
618
608
  f = s[--g];
619
- else if (B(p, d, n))
620
- z(p, d, n), p = t[++i], d = s[++o];
621
- else if (B(a, f, n))
622
- z(a, f, n), a = t[--u], f = s[--g];
623
- else if (B(p, f, n))
624
- (p.$tag$ === "slot" || f.$tag$ === "slot") && C(p.$elm$.parentNode, !1), z(p, f, n), R(e, p.$elm$, a.$elm$.nextSibling), p = t[++i], f = s[--g];
625
- else if (B(a, d, n))
626
- (p.$tag$ === "slot" || f.$tag$ === "slot") && C(a.$elm$.parentNode, !1), z(a, d, n), R(e, a.$elm$, p.$elm$), a = t[--u], d = s[++o];
609
+ else if (M(p, d, n))
610
+ k(p, d, n), p = t[++i], d = s[++o];
611
+ else if (M(a, f, n))
612
+ k(a, f, n), a = t[--u], f = s[--g];
613
+ else if (M(p, f, n))
614
+ (p.$tag$ === "slot" || f.$tag$ === "slot") && N(p.$elm$.parentNode, !1), k(p, f, n), O(e, p.$elm$, a.$elm$.nextSibling), p = t[++i], f = s[--g];
615
+ else if (M(a, d, n))
616
+ (p.$tag$ === "slot" || f.$tag$ === "slot") && N(a.$elm$.parentNode, !1), k(a, d, n), O(e, a.$elm$, p.$elm$), a = t[--u], d = s[++o];
627
617
  else {
628
618
  for (c = -1, l = i; l <= u; ++l)
629
619
  if (t[l] && t[l].$key$ !== null && t[l].$key$ === d.$key$) {
630
620
  c = l;
631
621
  break;
632
622
  }
633
- c >= 0 ? (y = t[c], y.$tag$ !== d.$tag$ ? _ = K(t && t[o], r, c) : (z(y, d, n), t[c] = void 0, _ = y.$elm$), d = s[++o]) : (_ = K(t && t[o], r, o), d = s[++o]), _ && R(
634
- P(p.$elm$).parentNode,
635
- _,
636
- P(p.$elm$)
623
+ c >= 0 ? (_ = t[c], _.$tag$ !== d.$tag$ ? h = W(t && t[o], r, c) : (k(_, d, n), t[c] = void 0, h = _.$elm$), d = s[++o]) : (h = W(t && t[o], r, o), d = s[++o]), h && O(
624
+ z(p.$elm$).parentNode,
625
+ h,
626
+ z(p.$elm$)
637
627
  );
638
628
  }
639
- i > u ? Fe(
629
+ i > u ? Oe(
640
630
  e,
641
631
  s[g + 1] == null ? null : s[g + 1].$elm$,
642
632
  r,
643
633
  s,
644
634
  o,
645
635
  g
646
- ) : o > g && Ce(t, i, u);
647
- }, B = (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, P = (e) => e && e["s-ol"] || e, z = (e, t, r = !1) => {
636
+ ) : o > g && Ae(t, i, u);
637
+ }, M = (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, z = (e) => e && e["s-ol"] || e, k = (e, t, r = !1) => {
648
638
  const s = t.$elm$ = e.$elm$, n = e.$children$, i = t.$children$, o = t.$tag$, c = t.$text$;
649
639
  let l;
650
- c === null ? (b = o === "svg" ? !0 : o === "foreignObject" ? !1 : b, ne(e, t, b), n !== null && i !== null ? Wt(s, n, t, i, r) : i !== null ? (e.$text$ !== null && (s.textContent = ""), Fe(s, null, t, i, 0, i.length - 1)) : (
640
+ c === null ? (y = o === "svg" ? !0 : o === "foreignObject" ? !1 : y, K(e, t, y), n !== null && i !== null ? At(s, n, t, i, r) : i !== null ? (e.$text$ !== null && (s.textContent = ""), Oe(s, null, t, i, 0, i.length - 1)) : (
651
641
  // don't do this on initial render as it can cause non-hydrated content to be removed
652
- !r && Q.updatable && n !== null && Ce(n, 0, n.length - 1)
653
- ), b && o === "svg" && (b = !1)) : (l = s["s-cr"]) ? l.parentNode.textContent = c : e.$text$ !== c && (s.data = c);
654
- }, x = [], Pe = (e) => {
642
+ !r && Z.updatable && n !== null && Ae(n, 0, n.length - 1)
643
+ ), y && o === "svg" && (y = !1)) : (l = s["s-cr"]) ? l.parentNode.textContent = c : e.$text$ !== c && (s.data = c);
644
+ }, m = [], ke = (e) => {
655
645
  let t, r, s;
656
646
  const n = e.__childNodes || e.childNodes;
657
647
  for (const i of n) {
@@ -660,24 +650,24 @@ var q, G, F, ie = !1, J = !1, ce = !1, b = !1, K = (e, t, r) => {
660
650
  const o = i["s-sn"];
661
651
  for (s = r.length - 1; s >= 0; s--)
662
652
  if (t = r[s], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== i["s-hn"])
663
- if (ye(t, o)) {
664
- let c = x.find((l) => l.$nodeToRelocate$ === t);
665
- J = !0, t["s-sn"] = t["s-sn"] || o, c ? (c.$nodeToRelocate$["s-sh"] = i["s-hn"], c.$slotRefNode$ = i) : (t["s-sh"] = i["s-hn"], x.push({
653
+ if (ae(t, o)) {
654
+ let c = m.find((l) => l.$nodeToRelocate$ === t);
655
+ P = !0, t["s-sn"] = t["s-sn"] || o, c ? (c.$nodeToRelocate$["s-sh"] = i["s-hn"], c.$slotRefNode$ = i) : (t["s-sh"] = i["s-hn"], m.push({
666
656
  $slotRefNode$: i,
667
657
  $nodeToRelocate$: t
668
- })), t["s-sr"] && x.map((l) => {
669
- ye(l.$nodeToRelocate$, t["s-sn"]) && (c = x.find((u) => u.$nodeToRelocate$ === t), c && !l.$slotRefNode$ && (l.$slotRefNode$ = c.$slotRefNode$));
658
+ })), t["s-sr"] && m.map((l) => {
659
+ ae(l.$nodeToRelocate$, t["s-sn"]) && (c = m.find((u) => u.$nodeToRelocate$ === t), c && !l.$slotRefNode$ && (l.$slotRefNode$ = c.$slotRefNode$));
670
660
  });
671
- } else x.some((c) => c.$nodeToRelocate$ === t) || x.push({
661
+ } else m.some((c) => c.$nodeToRelocate$ === t) || m.push({
672
662
  $nodeToRelocate$: t
673
663
  });
674
664
  }
675
- i.nodeType === 1 && Pe(i);
665
+ i.nodeType === 1 && ke(i);
676
666
  }
677
- }, We = (e) => {
678
- e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(We);
679
- }, R = (e, t, r) => (typeof t["s-sn"] == "string" && t["s-sr"] && t["s-cr"] && Ue(t["s-cr"], t, e, t.parentElement), e == null ? void 0 : e.insertBefore(t, r));
680
- function Ue(e, t, r, s) {
667
+ }, je = (e) => {
668
+ e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(je);
669
+ }, O = (e, t, r) => (typeof t["s-sn"] == "string" && t["s-sr"] && t["s-cr"] && Re(t["s-cr"], t, e, t.parentElement), e?.insertBefore(t, r));
670
+ function Re(e, t, r, s) {
681
671
  var n, i;
682
672
  let o;
683
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"])) {
@@ -695,61 +685,61 @@ function Ue(e, t, r, s) {
695
685
  }
696
686
  }
697
687
  }
698
- var Ut = (e, t, r = !1) => {
688
+ var kt = (e, t, r = !1) => {
699
689
  var s, n, i, o, c;
700
- const l = e.$hostElement$, u = e.$cmpMeta$, p = e.$vnode$ || se(null, null), g = Ft(t) ? t : Mt(null, null, t);
701
- if (F = l.tagName, u.$attrsToReflect$ && (g.$attrs$ = g.$attrs$ || {}, u.$attrsToReflect$.map(
690
+ const l = e.$hostElement$, u = e.$cmpMeta$, p = e.$vnode$ || J(null, null), g = Et(t) ? t : wt(null, null, t);
691
+ if (T = l.tagName, u.$attrsToReflect$ && (g.$attrs$ = g.$attrs$ || {}, u.$attrsToReflect$.map(
702
692
  ([d, f]) => g.$attrs$[f] = l[d]
703
693
  )), r && g.$attrs$)
704
694
  for (const d of Object.keys(g.$attrs$))
705
695
  l.hasAttribute(d) && !["key", "ref", "style", "class"].includes(d) && (g.$attrs$[d] = l[d]);
706
- g.$tag$ = null, g.$flags$ |= 4, e.$vnode$ = g, g.$elm$ = p.$elm$ = l.shadowRoot || l, q = l["s-sc"], ie = !!(u.$flags$ & 1) && !(u.$flags$ & 128), G = l["s-cr"], J = !1, z(p, g, r);
696
+ g.$tag$ = null, g.$flags$ |= 4, e.$vnode$ = g, g.$elm$ = p.$elm$ = l.shadowRoot || l, F = l["s-sc"], X = !!(u.$flags$ & 1) && !(u.$flags$ & 128), C = l["s-cr"], P = !1, k(p, g, r);
707
697
  {
708
- if (M.$flags$ |= 1, ce) {
709
- Pe(g.$elm$);
710
- for (const d of x) {
698
+ if (j.$flags$ |= 1, ee) {
699
+ ke(g.$elm$);
700
+ for (const d of m) {
711
701
  const f = d.$nodeToRelocate$;
712
- if (!f["s-ol"] && A.document) {
713
- const _ = A.document.createTextNode("");
714
- _["s-nr"] = f, R(f.parentNode, f["s-ol"] = _, f);
702
+ if (!f["s-ol"] && S.document) {
703
+ const h = S.document.createTextNode("");
704
+ h["s-nr"] = f, O(f.parentNode, f["s-ol"] = h, f);
715
705
  }
716
706
  }
717
- for (const d of x) {
718
- const f = d.$nodeToRelocate$, _ = d.$slotRefNode$;
719
- if (_) {
720
- const y = _.parentNode;
721
- let w = _.nextSibling;
707
+ for (const d of m) {
708
+ const f = d.$nodeToRelocate$, h = d.$slotRefNode$;
709
+ if (h) {
710
+ const _ = h.parentNode;
711
+ let x = h.nextSibling;
722
712
  {
723
- let k = (s = f["s-ol"]) == null ? void 0 : s.previousSibling;
724
- for (; k; ) {
725
- let h = (n = k["s-nr"]) != null ? n : null;
726
- if (h && h["s-sn"] === f["s-sn"] && y === (h.__parentNode || h.parentNode)) {
727
- for (h = h.nextSibling; h === f || h != null && h["s-sr"]; )
728
- h = h == null ? void 0 : h.nextSibling;
729
- if (!h || !h["s-nr"]) {
730
- w = h;
713
+ let E = (s = f["s-ol"]) == null ? void 0 : s.previousSibling;
714
+ for (; E; ) {
715
+ let $ = (n = E["s-nr"]) != null ? n : null;
716
+ if ($ && $["s-sn"] === f["s-sn"] && _ === ($.__parentNode || $.parentNode)) {
717
+ for ($ = $.nextSibling; $ === f || $?.["s-sr"]; )
718
+ $ = $?.nextSibling;
719
+ if (!$ || !$["s-nr"]) {
720
+ x = $;
731
721
  break;
732
722
  }
733
723
  }
734
- k = k.previousSibling;
724
+ E = E.previousSibling;
735
725
  }
736
726
  }
737
- const T = f.__parentNode || f.parentNode, pe = f.__nextSibling || f.nextSibling;
738
- (!w && y !== T || pe !== w) && f !== w && (!f["s-hn"] && f["s-ol"] && (f["s-hn"] = f["s-ol"].parentNode.nodeName), R(y, f, w), f.nodeType === 1 && f.tagName !== "SLOT-FB" && (f.hidden = (i = f["s-ih"]) != null ? i : !1)), f && typeof _["s-rf"] == "function" && _["s-rf"](_);
727
+ const A = f.__parentNode || f.parentNode, se = f.__nextSibling || f.nextSibling;
728
+ (!x && _ !== A || se !== x) && f !== x && (!f["s-hn"] && f["s-ol"] && (f["s-hn"] = f["s-ol"].parentNode.nodeName), O(_, f, x), f.nodeType === 1 && f.tagName !== "SLOT-FB" && (f.hidden = (i = f["s-ih"]) != null ? i : !1)), f && typeof h["s-rf"] == "function" && h["s-rf"](h);
739
729
  } else
740
730
  f.nodeType === 1 && (r && (f["s-ih"] = (o = f.hidden) != null ? o : !1), f.hidden = !0);
741
731
  }
742
732
  }
743
- J && Ie(g.$elm$), M.$flags$ &= -2, x.length = 0;
733
+ P && xe(g.$elm$), j.$flags$ &= -2, m.length = 0;
744
734
  }
745
- if (Q.experimentalScopedSlotChanges && u.$flags$ & 2) {
735
+ if (Z.experimentalScopedSlotChanges && u.$flags$ & 2) {
746
736
  const d = g.$elm$.__childNodes || g.$elm$.childNodes;
747
737
  for (const f of d)
748
- f["s-hn"] !== F && !f["s-sh"] && (r && f["s-ih"] == null && (f["s-ih"] = (c = f.hidden) != null ? c : !1), f.hidden = !0);
738
+ f["s-hn"] !== T && !f["s-sh"] && (r && f["s-ih"] == null && (f["s-ih"] = (c = f.hidden) != null ? c : !1), f.hidden = !0);
749
739
  }
750
- G = void 0;
740
+ C = void 0;
751
741
  };
752
- const fe = {
742
+ const te = {
753
743
  content_wrap: 0,
754
744
  ignore: [],
755
745
  ignore_with: "_!i-£___£%_",
@@ -758,7 +748,7 @@ const fe = {
758
748
  tag_wrap: 0,
759
749
  tag_wrap_width: 80,
760
750
  trim: []
761
- }, E = "__!i-£___£%__", S = "!i-£___£%_", Ze = [
751
+ }, v = "__!i-£___£%__", w = "!i-£___£%_", Te = [
762
752
  "area",
763
753
  "base",
764
754
  "br",
@@ -773,11 +763,11 @@ const fe = {
773
763
  "source",
774
764
  "track",
775
765
  "wbr"
776
- ], De = {
766
+ ], Ne = {
777
767
  checked_html: !1,
778
- config: { ...fe },
768
+ config: { ...te },
779
769
  ignored: !1
780
- }, W = () => De, Z = (e) => Object.assign(De, e), ue = (e) => (Z({ 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)), He = (e, t) => {
770
+ }, I = () => Ne, D = (e) => Object.assign(Ne, e), re = (e) => (D({ 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)), ze = (e, t) => {
781
771
  if (!e || !t)
782
772
  throw new Error("Both 'current' and 'updates' must be passed-in to mergeObjects()");
783
773
  let r;
@@ -786,50 +776,49 @@ const fe = {
786
776
  else if (typeof e == "object") {
787
777
  r = { ...e };
788
778
  for (let s of Object.keys(t))
789
- typeof t[s] != "object" ? r[s] = t[s] : r[s] = He(r[s] || {}, t[s]);
779
+ typeof t[s] != "object" ? r[s] = t[s] : r[s] = ze(r[s] || {}, t[s]);
790
780
  }
791
781
  return r;
792
- }, Zt = (e, t) => {
793
- const r = He(e, t);
794
- return Z({ config: r }), r;
795
- }, Dt = (e) => (e = e.replace(/<[\w:\-]+([^>]*[^\/])>/g, (t, r) => t.replace(r, (s) => s.replace(/\n/g, S + "nl!").replace(/\r/g, S + "cr!").replace(/\s/g, S + "ws!"))), e), Ht = (e) => e.replace(/\n/g, E + "nl!").replace(/\r/g, E + "cr!").replace(/\s/g, E + "ws!"), Bt = (e) => {
782
+ }, jt = (e, t) => {
783
+ const r = ze(e, t);
784
+ return D({ config: r }), r;
785
+ }, Rt = (e) => (e = e.replace(/<[\w:\-]+([^>]*[^\/])>/g, (t, r) => t.replace(r, (s) => s.replace(/\n/g, w + "nl!").replace(/\r/g, w + "cr!").replace(/\s/g, w + "ws!"))), e), Tt = (e) => e.replace(/\n/g, v + "nl!").replace(/\r/g, v + "cr!").replace(/\s/g, v + "ws!"), Nt = (e) => {
796
786
  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;
797
787
  return e.replace(t, (r, s, n, i, o) => {
798
788
  const c = n || o;
799
789
  if (!c)
800
790
  return r;
801
- const l = c.replace(/\n/g, E + "nl!").replace(/\r/g, E + "cr!").replace(/\s/g, E + "ws!");
791
+ const l = c.replace(/\n/g, v + "nl!").replace(/\r/g, v + "cr!").replace(/\s/g, v + "ws!");
802
792
  return r.replace(c, l);
803
793
  });
804
- }, qt = (e) => {
794
+ }, zt = (e) => {
805
795
  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;
806
- return e = e.replace(t, (r, s, n) => r.replace(n, (i) => i.replace(/</g, S + "lt!").replace(/>/g, S + "gt!"))), e;
807
- }, Gt = (e, t) => {
796
+ return e = e.replace(t, (r, s, n) => r.replace(n, (i) => i.replace(/</g, w + "lt!").replace(/>/g, w + "gt!"))), e;
797
+ }, It = (e, t) => {
808
798
  for (let r = 0; r < t.length; r++) {
809
799
  const s = new RegExp(`(<${t[r]}[^>]*>)\\s+`, "g"), n = new RegExp(`\\s+(</${t[r]}>)`, "g");
810
800
  e = e.replace(s, "$1").replace(n, "$1");
811
801
  }
812
802
  return e;
813
- }, Jt = (e) => (e = e.replace(/<[\w:\-]+([^>]*[^\/])>/g, (t, r) => t.replace(r, (s) => s.replace(new RegExp(S + "nl!", "g"), `
814
- `).replace(new RegExp(S + "cr!", "g"), "\r").replace(new RegExp(S + "ws!", "g"), " "))), e), Kt = (e) => (e = e.replace(/.*__!i-£___£%__[a-z]{2}!.*/g, (t) => t.replace(/__!i-£___£%__[a-z]{2}!/g, (r) => r.replace(new RegExp(E + "nl!", "g"), `
815
- `).replace(new RegExp(E + "cr!", "g"), "\r").replace(new RegExp(E + "ws!", "g"), " "))), e), Be = S.replace(
803
+ }, Dt = (e) => (e = e.replace(/<[\w:\-]+([^>]*[^\/])>/g, (t, r) => t.replace(r, (s) => s.replace(new RegExp(w + "nl!", "g"), `
804
+ `).replace(new RegExp(w + "cr!", "g"), "\r").replace(new RegExp(w + "ws!", "g"), " "))), e), Lt = (e) => (e = e.replace(/.*__!i-£___£%__[a-z]{2}!.*/g, (t) => t.replace(/__!i-£___£%__[a-z]{2}!/g, (r) => r.replace(new RegExp(v + "nl!", "g"), `
805
+ `).replace(new RegExp(v + "cr!", "g"), "\r").replace(new RegExp(v + "ws!", "g"), " "))), e), Ie = w.replace(
816
806
  /[-\/\\^$*+?.()|[\]{}]/g,
817
807
  "\\$&"
818
- ), Xt = new RegExp(Be + "lt!", "g"), Yt = new RegExp(Be + "gt!", "g"), Qt = (e) => {
808
+ ), Mt = new RegExp(Ie + "lt!", "g"), Ft = new RegExp(Ie + "gt!", "g"), Ct = (e) => {
819
809
  const t = /<([\w:\-]+)([^>]*)>/g;
820
810
  return e.replace(
821
811
  t,
822
812
  (r, s, n) => {
823
- const i = n.replace(Xt, "<").replace(Yt, ">");
813
+ const i = n.replace(Mt, "<").replace(Ft, ">");
824
814
  return `<${s}${i}>`;
825
815
  }
826
816
  );
827
- }, Vt = (e) => {
828
- var n, i;
817
+ }, Pt = (e) => {
829
818
  if (typeof e != "object") throw new Error("Config must be an object.");
830
- const t = { ...fe };
819
+ const t = { ...te };
831
820
  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, "tag_wrap_width") || Object.hasOwn(e, "trim")))
832
- return Z({ config: t }), t;
821
+ return D({ config: t }), t;
833
822
  let s = e.tab_size;
834
823
  if (s) {
835
824
  if (typeof s != "number") throw new Error(`tab_size must be a number, not ${typeof e.tab_size}.`);
@@ -839,7 +828,7 @@ const fe = {
839
828
  }
840
829
  if (Object.hasOwn(e, "content_wrap") && typeof e.content_wrap != "number")
841
830
  throw new Error(`content_wrap config must be a number, not ${typeof e.tag_wrap_width}.`);
842
- if (Object.hasOwn(e, "ignore") && (!Array.isArray(e.ignore) || !((n = e.ignore) != null && n.every((o) => typeof o == "string"))))
831
+ if (Object.hasOwn(e, "ignore") && (!Array.isArray(e.ignore) || !e.ignore?.every((n) => typeof n == "string")))
843
832
  throw new Error("Ignore config must be an array of strings.");
844
833
  if (Object.hasOwn(e, "ignore_with") && typeof e.ignore_with != "string")
845
834
  throw new Error(`Ignore_with config must be a string, not ${typeof e.ignore_with}.`);
@@ -849,10 +838,10 @@ const fe = {
849
838
  throw new Error(`tag_wrap config must be a number, not ${typeof e.tag_wrap}.`);
850
839
  if (Object.hasOwn(e, "tag_wrap_width") && console.warn("tag_wrap_width is deprecated, and will not be supported in v0.9.0+. Use `tag_wrap: <number>` instead; where <number> is the max character width acceptable before wrapping attributes."), Object.hasOwn(e, "tag_wrap_width") && typeof e.tag_wrap_width != "number")
851
840
  throw new Error(`tag_wrap_width config must be a number, not ${typeof e.tag_wrap_width}.`);
852
- if (Object.hasOwn(e, "trim") && (!Array.isArray(e.trim) || !((i = e.trim) != null && i.every((o) => typeof o == "string"))))
841
+ if (Object.hasOwn(e, "trim") && (!Array.isArray(e.trim) || !e.trim?.every((n) => typeof n == "string")))
853
842
  throw new Error("Trim config must be an array of strings.");
854
- return Zt(t, e);
855
- }, er = (e, t, r) => {
843
+ return jt(t, e);
844
+ }, Wt = (e, t, r) => {
856
845
  const s = e.trim().split(/\s+/);
857
846
  if (s.length === 0 || s.length === 1 && s[0] === "")
858
847
  return "";
@@ -870,10 +859,10 @@ const fe = {
870
859
  }), i !== "" && n.push(n.length === 0 ? r + i : o + i);
871
860
  const c = n.join(`
872
861
  `);
873
- return Ht(c);
862
+ return Tt(c);
874
863
  };
875
- function qe(e, t) {
876
- Z({ ignored: !0 });
864
+ function De(e, t) {
865
+ D({ ignored: !0 });
877
866
  let r = e;
878
867
  const s = /* @__PURE__ */ new Map();
879
868
  let n = 0;
@@ -901,127 +890,127 @@ function qe(e, t) {
901
890
  }
902
891
  return { html_with_markers: r, extracted_map: s };
903
892
  }
904
- function Ge(e, t) {
905
- Z({ ignored: !1 });
893
+ function Le(e, t) {
894
+ D({ ignored: !1 });
906
895
  let r = e;
907
896
  for (const [s, n] of t)
908
897
  r = r.split(s).join(n);
909
898
  return r;
910
899
  }
911
- const tr = (e) => {
912
- const { checked_html: t } = W();
913
- return !t && !ue(e) ? e : e.replace(/<([a-zA-Z\-0-9:]+)[^>]*>/g, (r, s) => Ze.indexOf(s) > -1 ? `${r.substring(0, r.length - 1)} />`.replace(/\/\s\//g, "/") : r.replace(/[\s]?\/>/g, `></${s}>`));
914
- }, rr = (e, t = !1) => (e = e.replace(/<textarea[^>]*>((.|\n)*?)<\/textarea>/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(/<textarea[^>]*>((.|\n)*?)<\/textarea>/g, (r, s) => (r = r.replace(s, (n) => n.replace(/\n|\t/g, "").replace(/[a-z]+="\s*"/ig, "").replace(/>\s+</g, "><").replace(/\s+/g, " ")), r = r.replace(/\s+/g, " ").replace(/\s>/g, ">").replace(/>\s/g, ">").replace(/\s</g, "<").replace(/class=["']\s/g, (n) => n.replace(/\s/g, "")).replace(/(class=.*)\s(["'])/g, "$1$2"), r))), e);
915
- let xe;
916
- const sr = (e, t) => {
900
+ const Ut = (e) => {
901
+ const { checked_html: t } = I();
902
+ return !t && !re(e) ? e : e.replace(/<([a-zA-Z\-0-9:]+)[^>]*>/g, (r, s) => Te.indexOf(s) > -1 ? `${r.substring(0, r.length - 1)} />`.replace(/\/\s\//g, "/") : r.replace(/[\s]?\/>/g, `></${s}>`));
903
+ }, Zt = (e, t = !1) => (e = e.replace(/<textarea[^>]*>((.|\n)*?)<\/textarea>/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(/<textarea[^>]*>((.|\n)*?)<\/textarea>/g, (r, s) => (r = r.replace(s, (n) => n.replace(/\n|\t/g, "").replace(/[a-z]+="\s*"/ig, "").replace(/>\s+</g, "><").replace(/\s+/g, " ")), r = r.replace(/\s+/g, " ").replace(/\s>/g, ">").replace(/>\s/g, ">").replace(/\s</g, "<").replace(/class=["']\s/g, (n) => n.replace(/\s/g, "")).replace(/(class=.*)\s(["'])/g, "$1$2"), r))), e);
904
+ let pe;
905
+ const Ht = (e, t) => {
917
906
  let r = !1;
918
- const { checked_html: s, ignored: n } = W();
919
- if (!s && !ue(e)) return e;
920
- const i = W().config, o = i.ignore.length > 0;
907
+ const { checked_html: s, ignored: n } = I();
908
+ if (!s && !re(e)) return e;
909
+ const i = I().config, o = i.ignore.length > 0;
921
910
  if (!n && o) {
922
- const { html_with_markers: c, extracted_map: l } = qe(e, i);
923
- e = c, xe = l, r = !0;
911
+ const { html_with_markers: c, extracted_map: l } = De(e, i);
912
+ e = c, pe = l, r = !0;
924
913
  }
925
- return e = rr(e), 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(/<\s*\//g, "</"), e = e.replace(/ = /g, "="), e = e.replace(
914
+ return e = Zt(e), 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(/<\s*\//g, "</"), e = e.replace(/ = /g, "="), e = e.replace(
926
915
  /([a-zA-Z0-9_-]+)=(['"])(.*?)\2/g,
927
916
  (c, l, u, p) => {
928
917
  const a = p.trim();
929
918
  return `${l}=${u}${a}${u}`;
930
919
  }
931
- ), e = e.trim(), r && (e = Ge(e, xe)), e;
932
- }, L = {
920
+ ), e = e.trim(), r && (e = Le(e, pe)), e;
921
+ }, R = {
933
922
  line: []
934
923
  };
935
- let Ee;
936
- const nr = (e) => {
937
- L.line = [];
924
+ let ge;
925
+ const Bt = (e) => {
926
+ R.line = [];
938
927
  let t = -1;
939
928
  const r = /(<[^>]+>)|([^<]+)/g;
940
- return e = e.replace(r, (s, n, i) => (n ? L.line.push({ type: "tag", value: s }) : i && i.trim().length > 0 && L.line.push({ type: "text", value: s }), t++, `
929
+ return e = e.replace(r, (s, n, i) => (n ? R.line.push({ type: "tag", value: s }) : i && i.trim().length > 0 && R.line.push({ type: "text", value: s }), t++, `
941
930
  [#-# : ${t} : ${s} : #-#]
942
931
  `)), e;
943
- }, ir = (e) => {
944
- e = tr(e);
945
- const { config: t } = W();
946
- return t.trim.length > 0 && (e = Gt(e, t.trim)), e = sr(e), e = nr(e), e;
947
- }, or = (e) => {
932
+ }, qt = (e) => {
933
+ e = Ut(e);
934
+ const { config: t } = I();
935
+ return t.trim.length > 0 && (e = It(e, t.trim)), e = Ht(e), e = Bt(e), e;
936
+ }, Gt = (e) => {
948
937
  const t = " ".repeat(e.tab_size), r = e.tag_wrap, s = e.content_wrap, i = `-${e.ignore_with}`, o = e.strict;
949
938
  let c = "";
950
939
  const l = [], u = /<[A-Za-z]+\b[^>]*(?:.|\n)*?\/?>/g, p = /\s{1}[A-Za-z-]+(?:=".*?")?/g;
951
- L.line.forEach((g, d) => {
940
+ R.line.forEach((g, d) => {
952
941
  let f = g.value;
953
- const _ = f.startsWith(i + "lt--") || f.startsWith(i + "gt--") || f.startsWith(i + "nl--") || f.startsWith(i + "cr--") || f.startsWith(i + "ws--") || f.startsWith(i + "tab--");
954
- let y = 0;
955
- const w = L.line[d - 1], T = (w == null ? void 0 : w.value) ?? "";
956
- c += "0", d === 0 && y++, f.trim().startsWith("</") && y++, T.trim().startsWith("<!doctype") && y++, T.trim().startsWith("<!--") && y++, T.trim().endsWith("/>") && y++, T.trim().startsWith("</") && y++, (w == null ? void 0 : w.type) === "text" && y++;
957
- const k = Math.max(0, c.length - y);
958
- if (c = c.substring(0, k), g.type === "text" && /^[!,;\.]/.test(f))
942
+ const h = f.startsWith(i + "lt--") || f.startsWith(i + "gt--") || f.startsWith(i + "nl--") || f.startsWith(i + "cr--") || f.startsWith(i + "ws--") || f.startsWith(i + "tab--");
943
+ let _ = 0;
944
+ const x = R.line[d - 1], A = x?.value ?? "";
945
+ c += "0", d === 0 && _++, f.trim().startsWith("</") && _++, A.trim().startsWith("<!doctype") && _++, A.trim().startsWith("<!--") && _++, A.trim().endsWith("/>") && _++, A.trim().startsWith("</") && _++, x?.type === "text" && _++;
946
+ const E = Math.max(0, c.length - _);
947
+ if (c = c.substring(0, E), g.type === "text" && /^[!,;\.]/.test(f))
959
948
  if (f.length === 1) {
960
949
  l[l.length - 1] = l.at(-1) + f;
961
950
  return;
962
951
  } else
963
952
  l[l.length - 1] = l.at(-1) + f.charAt(0), f = f.slice(1).trim();
964
- const h = t.repeat(k);
965
- if (_)
953
+ const $ = t.repeat(E);
954
+ if (h)
966
955
  l.push(f);
967
956
  else {
968
957
  if (o && f.trim().startsWith("<!--"))
969
958
  return;
970
- let v = f;
971
- if (g.type === "text" && s > 0 && v.length >= s)
972
- v = er(v, s, h);
973
- else if (r > 0 && v.length > r && u.test(v)) {
959
+ let b = f;
960
+ if (g.type === "text" && s > 0 && b.length >= s)
961
+ b = Wt(b, s, $);
962
+ else if (r > 0 && b.length > r && u.test(b)) {
974
963
  u.lastIndex = 0, p.lastIndex = 0;
975
- const D = v.split(p).filter(Boolean);
976
- if (D.length >= 2) {
977
- const Ke = v.matchAll(p), Xe = h + t;
978
- let V = h + D[0] + `
964
+ const L = b.split(p).filter(Boolean);
965
+ if (L.length >= 2) {
966
+ const Fe = b.matchAll(p), Ce = $ + t;
967
+ let H = $ + L[0] + `
979
968
  `;
980
- for (const tt of Ke) {
981
- const rt = tt[0].trim();
982
- V += Xe + rt + `
969
+ for (const He of Fe) {
970
+ const Be = He[0].trim();
971
+ H += Ce + Be + `
983
972
  `;
984
973
  }
985
- const ge = D[0].match(/<([A-Za-z_:-]+)/), Ye = ge ? ge[1] : "", Qe = Ze.includes(Ye), Ve = D[1].trim(), et = h + (o && Qe ? " " : "");
986
- V += et + Ve, v = V;
974
+ const ne = L[0].match(/<([A-Za-z_:-]+)/), Pe = ne ? ne[1] : "", We = Te.includes(Pe), Ue = L[1].trim(), Ze = $ + (o && We ? " " : "");
975
+ H += Ze + Ue, b = H;
987
976
  } else
988
- v = h + v;
977
+ b = $ + b;
989
978
  } else
990
- v = h + v;
991
- l.push(v);
979
+ b = $ + b;
980
+ l.push(b);
992
981
  }
993
982
  });
994
983
  let a = l.join(`
995
984
  `);
996
- return r > 0 && (a = Dt(a)), s > 0 && /\n[ ]*[^\n]*__!i-£___£%__[^\n]*\n/.test(a) && (a = Bt(a)), a = a.replace(
985
+ return r > 0 && (a = Rt(a)), s > 0 && /\n[ ]*[^\n]*__!i-£___£%__[^\n]*\n/.test(a) && (a = Nt(a)), a = a.replace(
997
986
  /<(?<Element>.+).*>[^<]*?[^><\/\s][^<]*?<\/{1}\k<Element>|<script[^>]*>\s+<\/script>|<(\w+)>\s+<\/(\w+)|<(?:([\w:\._-]+)|([\w:\._-]+)[^>]*[^\/])>\s+<\/([\w:\._-]+)>/g,
998
987
  (g) => g.replace(/\n|\t|\s{2,}/g, "")
999
- ), s > 0 && (a = Kt(a)), r > 0 && (a = Jt(a)), o && (a = a.replace(/\s\/>|\/>/g, ">")), a.startsWith(`
988
+ ), s > 0 && (a = Lt(a)), r > 0 && (a = Dt(a)), o && (a = a.replace(/\s\/>|\/>/g, ">")), a.startsWith(`
1000
989
  `) && (a = a.substring(1)), a.endsWith(`
1001
990
  `) && (a = a.substring(0, a.length - 1)), a;
1002
- }, ar = (e, t) => {
991
+ }, Jt = (e, t) => {
1003
992
  let r = !1;
1004
- const { checked_html: s, ignored: n } = W();
1005
- if (!s && !ue(e)) return e;
1006
- const i = t ? Vt(t) : { ...fe }, o = i.ignore.length > 0;
993
+ const { checked_html: s, ignored: n } = I();
994
+ if (!s && !re(e)) return e;
995
+ const i = t ? Pt(t) : { ...te }, o = i.ignore.length > 0;
1007
996
  if (!n && o) {
1008
- const { html_with_markers: c, extracted_map: l } = qe(e, i);
1009
- e = c, Ee = l, r = !0;
997
+ const { html_with_markers: c, extracted_map: l } = De(e, i);
998
+ e = c, ge = l, r = !0;
1010
999
  }
1011
- return e = qt(e), e = ir(e), e = or(i), e = Qt(e), r && (e = Ge(e, Ee)), e;
1012
- }, lr = (e, t, r) => {
1000
+ return e = zt(e), e = qt(e), e = Gt(i), e = Ct(e), r && (e = Le(e, ge)), e;
1001
+ }, Kt = (e, t, r) => {
1013
1002
  [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);
1014
- }, Je = (e, t, r, s, n) => {
1003
+ }, Me = (e, t, r, s, n) => {
1015
1004
  if (t && typeof t == "string") {
1016
1005
  const i = document.createElement(t);
1017
1006
  Object.keys(r || {}).forEach((o) => {
1018
- lr(i, o, r[o]);
1019
- }), s == null || s.forEach((o) => {
1020
- Je(i, o.$tag$, o.$attrs$, o.$children$, o.$text$);
1021
- }), r != null && r.innerHTML && (i.innerHTML = r.innerHTML), e.appendChild(i);
1007
+ Kt(i, o, r[o]);
1008
+ }), s?.forEach((o) => {
1009
+ Me(i, o.$tag$, o.$attrs$, o.$children$, o.$text$);
1010
+ }), r?.innerHTML && (i.innerHTML = r.innerHTML), e.appendChild(i);
1022
1011
  }
1023
1012
  n && (e.innerHTML = n);
1024
- }, Lr = (e, t, r = []) => {
1013
+ }, wr = (e, t, r = []) => {
1025
1014
  const s = {};
1026
1015
  if (typeof e != "object")
1027
1016
  throw new Error("filterArgs - args isn't an object.");
@@ -1031,185 +1020,182 @@ const nr = (e) => {
1031
1020
  (!t || !Object.keys(t).includes(n) || t[n] !== i) && (s[o] = i);
1032
1021
  }
1033
1022
  return s;
1034
- }, Fr = (e, t) => {
1035
- var s, n;
1023
+ }, xr = (e, t) => {
1036
1024
  const r = document.getElementById("storybook-root");
1037
1025
  if (r !== null)
1038
- return (n = document.querySelector("[lang]")) == null || n.setAttribute("lang", ((s = t.globals) == null ? void 0 : s.locale) || "en"), Ut({
1026
+ return document.querySelector("[lang]")?.setAttribute("lang", t.globals?.locale || "en"), kt({
1039
1027
  $cmpMeta$: {
1040
1028
  $flags$: 0,
1041
1029
  $tagName$: r.tagName
1042
1030
  },
1043
1031
  $hostElement$: r
1044
1032
  }, e(t)), r.children[r.children.length - 1];
1045
- }, Cr = ({ $tag$: e, $attrs$: t, $children$: r, $text$: s }) => {
1033
+ }, Er = ({ $tag$: e, $attrs$: t, $children$: r, $text$: s }) => {
1046
1034
  const n = document.createElement("div");
1047
- return Je(n, e, t, r, s), ar(n.innerHTML, {
1035
+ return Me(n, e, t, r, s), Jt(n.innerHTML, {
1048
1036
  tag_wrap: 40,
1049
1037
  content_wrap: 120
1050
1038
  }).replace(/="true"/g, "");
1051
- }, Se = (e, t) => {
1039
+ }, de = (e, t) => {
1052
1040
  if (!t)
1053
1041
  return;
1054
1042
  const r = t.split("/");
1055
1043
  return `${e}${r.slice(2, r.length - 1).join("-")}--docs`;
1056
1044
  };
1057
- var j, X;
1058
- class Pr {
1045
+ class Sr {
1046
+ /**
1047
+ * JsonDocs
1048
+ */
1049
+ jsonDoc;
1059
1050
  constructor(t) {
1060
- /**
1061
- * JsonDocs
1062
- */
1063
- $(this, "jsonDoc");
1064
- /**
1065
- * Get component data from the jsonDoc
1066
- * @param tagName - tag name we want to get the data from
1067
- * @returns component data
1068
- */
1069
- N(this, j, (t) => this.jsonDoc.components.find((r) => r.tag === t));
1070
- /**
1071
- * Get the control for the given prop
1072
- * Based on https://storybook.js.org/docs/api/arg-types#controltype
1073
- * @param prop - prop to get control for
1074
- * @returns control type and options if applicable
1075
- */
1076
- N(this, X, (t) => {
1077
- const r = t.type.replace(/"([^"]+)"/g, "$1").replace(/\s/g, "").replace(/\(.*?\)/g, (s) => s.replace(/\|/g, " OR ")).split("|").map((s) => s.trim().replace(/ OR /g, "|"));
1078
- return t.type === "string" ? { control: { type: "text" } } : t.type === "number" ? { control: { type: "number" } } : t.type === "boolean" ? { control: { type: "boolean" } } : t.type.startsWith("{") && t.type.endsWith("}") ? { control: { type: "object" } } : r.length > 1 ? r.includes("string") ? { control: { type: "text" } } : r.every((s) => s == null ? void 0 : s.includes("[]")) ? { control: { type: "object" } } : (r.unshift(void 0), { control: { type: "select" }, options: r }) : { control: { type: "object" } };
1079
- });
1080
- /**
1081
- * Extract component arg types from the component data
1082
- * @param tagName - tag name we want to extract the arg types from
1083
- * @returns component arg types
1084
- */
1085
- $(this, "extractArgTypes", (t) => {
1086
- const r = m(this, j).call(this, t), s = r == null ? void 0 : r.props.reduce((p, a) => {
1087
- const { control: g, options: d } = m(this, X).call(this, a);
1088
- return {
1089
- ...p,
1090
- [a.name]: {
1091
- name: a.attr || a.name,
1092
- description: a.docs,
1093
- type: { required: a.required },
1094
- table: {
1095
- category: "props",
1096
- type: { summary: a.type },
1097
- defaultValue: { summary: a.default }
1098
- },
1099
- control: g,
1100
- options: d
1101
- }
1102
- };
1103
- }, {}), n = r == null ? void 0 : r.events.reduce((p, a) => ({
1104
- ...p,
1105
- [a.event]: {
1106
- name: a.event,
1107
- description: a.docs,
1108
- table: {
1109
- category: "events",
1110
- type: { summary: a.detail }
1111
- }
1112
- }
1113
- }), {}), i = r == null ? void 0 : r.methods.reduce((p, a) => ({
1051
+ this.jsonDoc = t;
1052
+ }
1053
+ /**
1054
+ * Get component data from the jsonDoc
1055
+ * @param tagName - tag name we want to get the data from
1056
+ * @returns component data
1057
+ */
1058
+ #e = (t) => this.jsonDoc.components.find((r) => r.tag === t);
1059
+ /**
1060
+ * Get the control for the given prop
1061
+ * Based on https://storybook.js.org/docs/api/arg-types#controltype
1062
+ * @param prop - prop to get control for
1063
+ * @returns control type and options if applicable
1064
+ */
1065
+ #t = (t) => {
1066
+ const r = t.type.replace(/"([^"]+)"/g, "$1").replace(/\s/g, "").replace(/\(.*?\)/g, (s) => s.replace(/\|/g, " OR ")).split("|").map((s) => s.trim().replace(/ OR /g, "|"));
1067
+ return t.type === "string" ? { control: { type: "text" } } : t.type === "number" ? { control: { type: "number" } } : t.type === "boolean" ? { control: { type: "boolean" } } : t.type.startsWith("{") && t.type.endsWith("}") ? { control: { type: "object" } } : r.length > 1 ? r.includes("string") ? { control: { type: "text" } } : r.every((s) => s?.includes("[]")) ? { control: { type: "object" } } : (r.unshift(void 0), { control: { type: "select" }, options: r }) : { control: { type: "object" } };
1068
+ };
1069
+ /**
1070
+ * Extract component arg types from the component data
1071
+ * @param tagName - tag name we want to extract the arg types from
1072
+ * @returns component arg types
1073
+ */
1074
+ extractArgTypes = (t) => {
1075
+ const r = this.#e(t), s = r?.props.reduce((p, a) => {
1076
+ const { control: g, options: d } = this.#t(a);
1077
+ return {
1114
1078
  ...p,
1115
1079
  [a.name]: {
1116
- name: a.name,
1080
+ name: a.attr || a.name,
1117
1081
  description: a.docs,
1082
+ type: { required: a.required },
1118
1083
  table: {
1119
- category: "methods",
1120
- type: { summary: a.signature }
1121
- }
1084
+ category: "props",
1085
+ type: { summary: a.type },
1086
+ defaultValue: { summary: a.default }
1087
+ },
1088
+ control: g,
1089
+ options: d
1090
+ }
1091
+ };
1092
+ }, {}), n = r?.events.reduce((p, a) => ({
1093
+ ...p,
1094
+ [a.event]: {
1095
+ name: a.event,
1096
+ description: a.docs,
1097
+ table: {
1098
+ category: "events",
1099
+ type: { summary: a.detail }
1100
+ }
1101
+ }
1102
+ }), {}), i = r?.methods.reduce((p, a) => ({
1103
+ ...p,
1104
+ [a.name]: {
1105
+ name: a.name,
1106
+ description: a.docs,
1107
+ table: {
1108
+ category: "methods",
1109
+ type: { summary: a.signature }
1110
+ }
1111
+ }
1112
+ }), {}), o = r?.slots.reduce((p, a) => ({
1113
+ ...p,
1114
+ [a.name]: {
1115
+ name: a.name !== "" ? a.name : "default",
1116
+ // default slot are unnamed
1117
+ description: a.docs,
1118
+ table: {
1119
+ category: "slots",
1120
+ type: { summary: void 0 }
1121
+ }
1122
+ }
1123
+ }), {}), c = r?.styles.reduce((p, a) => ({
1124
+ ...p,
1125
+ [a.name]: {
1126
+ name: a.name,
1127
+ description: a.docs,
1128
+ table: {
1129
+ category: "custom properties",
1130
+ type: { summary: void 0 }
1122
1131
  }
1123
- }), {}), o = r == null ? void 0 : r.slots.reduce((p, a) => ({
1132
+ }
1133
+ }), {}), l = r?.dependencies.reduce((p, a) => {
1134
+ const g = this.#e(a);
1135
+ return g ? {
1124
1136
  ...p,
1125
- [a.name]: {
1126
- name: a.name !== "" ? a.name : "default",
1127
- // default slot are unnamed
1128
- description: a.docs,
1137
+ [a]: {
1138
+ name: a,
1139
+ description: `<a href="./?path=/docs/${de("", g?.filePath)}">View Component Documentation</a>`,
1129
1140
  table: {
1130
- category: "slots",
1141
+ category: "depends on",
1131
1142
  type: { summary: void 0 }
1132
1143
  }
1133
1144
  }
1134
- }), {}), c = r == null ? void 0 : r.styles.reduce((p, a) => ({
1145
+ } : p;
1146
+ }, {}), u = r?.dependents.reduce((p, a) => {
1147
+ const g = this.#e(a);
1148
+ return g ? {
1135
1149
  ...p,
1136
- [a.name]: {
1137
- name: a.name,
1138
- description: a.docs,
1150
+ [a]: {
1151
+ name: a,
1152
+ description: `<a href="./?path=/docs/${de("", g?.filePath)}">View Component Documentation</a>`,
1139
1153
  table: {
1140
- category: "custom properties",
1154
+ category: "used by",
1141
1155
  type: { summary: void 0 }
1142
1156
  }
1143
1157
  }
1144
- }), {}), l = r == null ? void 0 : r.dependencies.reduce((p, a) => {
1145
- const g = m(this, j).call(this, a);
1146
- return g ? {
1147
- ...p,
1148
- [a]: {
1149
- name: a,
1150
- description: `<a href="./?path=/docs/${Se("", g == null ? void 0 : g.filePath)}">View Component Documentation</a>`,
1151
- table: {
1152
- category: "depends on",
1153
- type: { summary: void 0 }
1154
- }
1155
- }
1156
- } : p;
1157
- }, {}), u = r == null ? void 0 : r.dependents.reduce((p, a) => {
1158
- const g = m(this, j).call(this, a);
1159
- return g ? {
1160
- ...p,
1161
- [a]: {
1162
- name: a,
1163
- description: `<a href="./?path=/docs/${Se("", g == null ? void 0 : g.filePath)}">View Component Documentation</a>`,
1164
- table: {
1165
- category: "used by",
1166
- type: { summary: void 0 }
1167
- }
1168
- }
1169
- } : p;
1170
- }, {});
1171
- return {
1172
- ...s,
1173
- ...n,
1174
- ...i,
1175
- ...o,
1176
- ...c,
1177
- ...l,
1178
- ...u
1179
- };
1180
- });
1181
- /**
1182
- * Extract component description from the component data
1183
- * @param tagName - tag name we want to extract the description from
1184
- * @returns component description
1185
- */
1186
- $(this, "extractComponentDescription", (t) => {
1187
- const r = m(this, j).call(this, t);
1188
- return (r == null ? void 0 : r.readme) || (r == null ? void 0 : r.docs);
1189
- });
1190
- this.jsonDoc = t;
1191
- }
1158
+ } : p;
1159
+ }, {});
1160
+ return {
1161
+ ...s,
1162
+ ...n,
1163
+ ...i,
1164
+ ...o,
1165
+ ...c,
1166
+ ...l,
1167
+ ...u
1168
+ };
1169
+ };
1170
+ /**
1171
+ * Extract component description from the component data
1172
+ * @param tagName - tag name we want to extract the description from
1173
+ * @returns component description
1174
+ */
1175
+ extractComponentDescription = (t) => {
1176
+ const r = this.#e(t);
1177
+ return r?.readme || r?.docs;
1178
+ };
1192
1179
  }
1193
- j = new WeakMap(), X = new WeakMap();
1194
- const Wr = ({ disconnect: e, observe: t, takeRecords: r }) => {
1180
+ const Or = ({ disconnect: e, observe: t, takeRecords: r }) => {
1195
1181
  class s {
1182
+ /**
1183
+ *
1184
+ */
1185
+ disconnect = e;
1186
+ /**
1187
+ *
1188
+ */
1189
+ observe = t;
1190
+ /**
1191
+ *
1192
+ */
1193
+ takeRecords = r;
1194
+ /**
1195
+ *
1196
+ */
1197
+ cb;
1196
1198
  constructor(i) {
1197
- /**
1198
- *
1199
- */
1200
- $(this, "disconnect", e);
1201
- /**
1202
- *
1203
- */
1204
- $(this, "observe", t);
1205
- /**
1206
- *
1207
- */
1208
- $(this, "takeRecords", r);
1209
- /**
1210
- *
1211
- */
1212
- $(this, "cb");
1213
1199
  this.cb = i;
1214
1200
  }
1215
1201
  }
@@ -1220,25 +1206,25 @@ const Wr = ({ disconnect: e, observe: t, takeRecords: r }) => {
1220
1206
  value: s
1221
1207
  });
1222
1208
  }), s;
1223
- }, Ur = ({ disconnect: e, observe: t }) => {
1209
+ }, Ar = ({ disconnect: e, observe: t }) => {
1224
1210
  class r {
1211
+ /**
1212
+ *
1213
+ */
1214
+ disconnect = e;
1215
+ /**
1216
+ *
1217
+ */
1218
+ observe = t;
1219
+ /**
1220
+ *
1221
+ */
1222
+ unobserve;
1223
+ /**
1224
+ *
1225
+ */
1226
+ cb;
1225
1227
  constructor(n) {
1226
- /**
1227
- *
1228
- */
1229
- $(this, "disconnect", e);
1230
- /**
1231
- *
1232
- */
1233
- $(this, "observe", t);
1234
- /**
1235
- *
1236
- */
1237
- $(this, "unobserve");
1238
- /**
1239
- *
1240
- */
1241
- $(this, "cb");
1242
1228
  this.cb = n;
1243
1229
  }
1244
1230
  }
@@ -1250,18 +1236,15 @@ const Wr = ({ disconnect: e, observe: t, takeRecords: r }) => {
1250
1236
  });
1251
1237
  }), r;
1252
1238
  };
1253
- class cr extends Event {
1254
- constructor() {
1255
- super(...arguments);
1256
- /**
1257
- *
1258
- */
1259
- $(this, "detail");
1260
- }
1239
+ class Xt extends Event {
1240
+ /**
1241
+ *
1242
+ */
1243
+ detail;
1261
1244
  // eslint-disable-line @typescript-eslint/no-explicit-any
1262
1245
  }
1263
- const Zr = () => {
1264
- class e extends cr {
1246
+ const kr = () => {
1247
+ class e extends Xt {
1265
1248
  }
1266
1249
  return [window, global].forEach((t) => {
1267
1250
  Object.defineProperty(t, "SubmitEvent", {
@@ -1270,7 +1253,7 @@ const Zr = () => {
1270
1253
  value: e
1271
1254
  });
1272
1255
  }), e;
1273
- }, Dr = (e) => {
1256
+ }, jr = (e) => {
1274
1257
  const t = (r) => (setTimeout(r, 1), e(), 0);
1275
1258
  return [window, global].forEach((r) => {
1276
1259
  Object.defineProperty(r, "requestAnimationFrame", {
@@ -1281,45 +1264,45 @@ const Zr = () => {
1281
1264
  }), t;
1282
1265
  };
1283
1266
  export {
1284
- ur as ClassList,
1285
- br as Cursor,
1286
- lt as Page,
1287
- vr as Paginate,
1288
- Pr as StorybookPreview,
1289
- pr as allItemsAreString,
1290
- dr as cleanString,
1291
- $r as createID,
1292
- mr as dateRegExp,
1293
- wr as dateToString,
1294
- Mr as defineLocales,
1295
- Lr as filterArgs,
1296
- Er as focusableElements,
1297
- _r as formatID,
1298
- Rr as getLocaleDatePattern,
1299
- it as getObjectValueFromKey,
1300
- ke as getParentWindows,
1301
- Cr as getStoryHTML,
1302
- Se as getStorybookUrl,
1303
- Or as getWindows,
1304
- Y as isObject,
1305
- xr as isTagName,
1306
- Sr as isValidNumber,
1307
- ot as isValidString,
1308
- hr as isValideID,
1309
- Tr as localeCurrency,
1310
- mt as localeDate,
1311
- Nr as localeNumber,
1312
- zr as localePercent,
1313
- Ir as localeUnit,
1314
- yr as nextTick,
1315
- Dr as setUpRequestAnimationFrameMock,
1316
- Wr as setupMutationObserverMock,
1317
- Ur as setupResizeObserverMock,
1318
- Zr as setupSubmitEventMock,
1319
- Fr as stencilWrapper,
1320
- gr as toString,
1321
- jr as vsCodeCssGenerator,
1322
- Ar as vsCodeGenerator,
1323
- kr as webTypesGenerator
1267
+ Yt as ClassList,
1268
+ ir as Cursor,
1269
+ Ke as Page,
1270
+ or as Paginate,
1271
+ Sr as StorybookPreview,
1272
+ Qt as allItemsAreString,
1273
+ er as cleanString,
1274
+ tr as createID,
1275
+ ar as dateRegExp,
1276
+ lr as dateToString,
1277
+ vr as defineLocales,
1278
+ wr as filterArgs,
1279
+ fr as focusableElements,
1280
+ sr as formatID,
1281
+ hr as getLocaleDatePattern,
1282
+ qe as getObjectValueFromKey,
1283
+ he as getParentWindows,
1284
+ Er as getStoryHTML,
1285
+ de as getStorybookUrl,
1286
+ pr as getWindows,
1287
+ U as isObject,
1288
+ cr as isTagName,
1289
+ ur as isValidNumber,
1290
+ Ge as isValidString,
1291
+ rr as isValideID,
1292
+ _r as localeCurrency,
1293
+ lt as localeDate,
1294
+ yr as localeNumber,
1295
+ br as localePercent,
1296
+ mr as localeUnit,
1297
+ nr as nextTick,
1298
+ jr as setUpRequestAnimationFrameMock,
1299
+ Or as setupMutationObserverMock,
1300
+ Ar as setupResizeObserverMock,
1301
+ kr as setupSubmitEventMock,
1302
+ xr as stencilWrapper,
1303
+ Vt as toString,
1304
+ $r as vsCodeCssGenerator,
1305
+ dr as vsCodeGenerator,
1306
+ gr as webTypesGenerator
1324
1307
  };
1325
1308
  //# sourceMappingURL=index.es.js.map