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