@mgdis/stencil-helpers 3.2.2 → 3.2.4

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