@mgdis/stencil-helpers 1.0.3 → 1.1.0
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/ide/index.d.ts +88 -0
- package/dist/ide/index.d.ts.map +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +404 -296
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +23 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/storybook/index.d.ts +1 -1
- package/dist/storybook/index.d.ts.map +1 -1
- package/package.json +8 -8
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,180 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
const
|
|
1
|
+
var ie = Object.defineProperty;
|
|
2
|
+
var ce = (t, e, n) => e in t ? ie(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var p = (t, e, n) => (ce(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
+
const Re = (t = "", e = 10) => {
|
|
5
|
+
const n = new Uint8Array(e);
|
|
6
|
+
crypto.getRandomValues(n);
|
|
7
|
+
const r = Array.from(n).map((s) => s.toString(16).padStart(2, "0")).join("").slice(0, e);
|
|
8
|
+
return t !== "" ? `${t}-${r}` : r;
|
|
9
|
+
};
|
|
10
|
+
class Me {
|
|
11
|
+
constructor(e = []) {
|
|
12
|
+
/**
|
|
13
|
+
* Available classes
|
|
14
|
+
*/
|
|
15
|
+
p(this, "classes");
|
|
16
|
+
/**
|
|
17
|
+
* Add class
|
|
18
|
+
* @param className - class name to add
|
|
19
|
+
*/
|
|
20
|
+
p(this, "add", (e) => {
|
|
21
|
+
this.has(e) || this.classes.push(e);
|
|
22
|
+
});
|
|
23
|
+
/**
|
|
24
|
+
* Delete class
|
|
25
|
+
* @param className - class name to delete
|
|
26
|
+
*/
|
|
27
|
+
p(this, "delete", (e) => {
|
|
28
|
+
const n = this.classes.indexOf(e);
|
|
29
|
+
n > -1 && this.classes.splice(n, 1);
|
|
30
|
+
});
|
|
31
|
+
/**
|
|
32
|
+
* Check if class exist in list
|
|
33
|
+
* @param className - class name to check
|
|
34
|
+
* @returns class name is in the list
|
|
35
|
+
*/
|
|
36
|
+
p(this, "has", (e) => this.classes.includes(e));
|
|
37
|
+
/**
|
|
38
|
+
* Join classes seperated by spaces
|
|
39
|
+
* @returns joined values
|
|
40
|
+
*/
|
|
41
|
+
p(this, "join", () => this.classes.join(" "));
|
|
42
|
+
this.classes = e;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
const Oe = (t) => Array.isArray(t) && t.every((e) => typeof e == "string"), Fe = (t, e) => e.includes(t == null ? void 0 : t.tagName.toLowerCase()), De = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button', _e = (t) => {
|
|
46
|
+
const e = G(t), n = I(t);
|
|
47
|
+
return [t, ...e, ...n];
|
|
48
|
+
}, G = (t, e = []) => {
|
|
49
|
+
if (t.self !== t.top)
|
|
50
|
+
try {
|
|
51
|
+
const n = t.parent;
|
|
52
|
+
return n ? (e.push(n), G(n, e)) : e;
|
|
53
|
+
} catch (n) {
|
|
54
|
+
return console.error("Different hosts between iframes:", n), e;
|
|
55
|
+
}
|
|
56
|
+
return e;
|
|
57
|
+
}, I = (t, e = []) => {
|
|
58
|
+
if (t.frames.length > 0)
|
|
59
|
+
for (const n of Array.from(t.frames))
|
|
60
|
+
e.push(n), I(n, e);
|
|
61
|
+
return e;
|
|
62
|
+
}, Be = (t) => typeof t == "string" && t.trim() !== "", Ne = (t) => typeof t == "string" ? t.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g, "") : t, Ue = async (t) => t(), X = (t, e) => {
|
|
63
|
+
if (!e)
|
|
64
|
+
return;
|
|
65
|
+
const n = e.split("/");
|
|
66
|
+
return `${t}${n.slice(2, n.length - 1).join("-")}--docs`;
|
|
67
|
+
}, ae = (t, e) => {
|
|
68
|
+
if (e)
|
|
69
|
+
return `${t}${e}`;
|
|
70
|
+
}, K = (t) => {
|
|
71
|
+
let e = t.overview ? `${t.overview}
|
|
72
|
+
|
|
73
|
+
` : "";
|
|
74
|
+
const n = t.props.filter(({ attr: s }) => s !== void 0);
|
|
75
|
+
n.length && (e += `Attributes:
|
|
76
|
+
`, e += n.map(({ attr: s, docs: o }) => `- \`${s}\`: ${o}
|
|
77
|
+
`).join(""), e += `
|
|
78
|
+
`);
|
|
79
|
+
const r = t.props.filter(({ attr: s }) => s === void 0);
|
|
80
|
+
return r.length && (e += `Properties:
|
|
81
|
+
`, e += r.map(({ name: s, docs: o }) => `- \`${s}\`: ${o}
|
|
82
|
+
`).join(""), e += `
|
|
83
|
+
`), t.methods.length && (e += `Methods:
|
|
84
|
+
`, e += t.methods.map(({ name: s, docs: o }) => `- \`${s}\`: ${o}
|
|
85
|
+
`).join(""), e += `
|
|
86
|
+
`), t.events.length && (e += `Events:
|
|
87
|
+
`, e += t.events.map(({ event: s, docs: o }) => `- \`${s}\`: ${o}
|
|
88
|
+
`).join(""), e += `
|
|
89
|
+
`), t.listeners.length && (e += `Listeners:
|
|
90
|
+
`, e += t.listeners.map(({ event: s }) => `- \`${s}\`
|
|
91
|
+
`).join(""), e += `
|
|
92
|
+
`), t.slots.length && (e += `Slots:
|
|
93
|
+
`, e += t.slots.map(({ name: s, docs: o }) => `- \`${s}\`: ${o}
|
|
94
|
+
`).join(""), e += `
|
|
95
|
+
`), e;
|
|
96
|
+
}, F = (t) => `${t.docs}
|
|
97
|
+
|
|
98
|
+
Type: \`${t.type}\``, Ce = (t, e, n, r) => ({
|
|
99
|
+
$schema: "https://json.schemastore.org/web-types",
|
|
100
|
+
name: t,
|
|
101
|
+
version: e,
|
|
102
|
+
"description-markup": "markdown",
|
|
103
|
+
contributions: {
|
|
104
|
+
html: {
|
|
105
|
+
elements: n.components.map((s) => {
|
|
106
|
+
const o = X(r, s.filePath);
|
|
107
|
+
return {
|
|
108
|
+
name: s.tag,
|
|
109
|
+
description: K(s),
|
|
110
|
+
"doc-url": o,
|
|
111
|
+
attributes: s.props.filter((l) => l.attr).map((l) => ({
|
|
112
|
+
name: l.attr,
|
|
113
|
+
description: F(l),
|
|
114
|
+
"doc-url": o,
|
|
115
|
+
value: {
|
|
116
|
+
type: l.type,
|
|
117
|
+
default: l.default,
|
|
118
|
+
required: l.required
|
|
119
|
+
}
|
|
120
|
+
})),
|
|
121
|
+
js: {
|
|
122
|
+
properties: s.props.map((l) => ({
|
|
123
|
+
name: l.name,
|
|
124
|
+
description: F(l),
|
|
125
|
+
"doc-url": o,
|
|
126
|
+
value: {
|
|
127
|
+
type: l.type,
|
|
128
|
+
default: l.default,
|
|
129
|
+
required: l.required
|
|
130
|
+
}
|
|
131
|
+
})),
|
|
132
|
+
events: s.events.map((l) => ({
|
|
133
|
+
name: l.event,
|
|
134
|
+
description: l.docs
|
|
135
|
+
}))
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
})
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}), fe = (t, e, n) => {
|
|
142
|
+
if (n)
|
|
143
|
+
return [
|
|
144
|
+
{ name: "Storybook", url: X(t, n) },
|
|
145
|
+
{ name: "Sources", url: ae(e, n) }
|
|
146
|
+
];
|
|
147
|
+
}, $e = (t) => {
|
|
148
|
+
if (!t.values.some(({ value: e }) => e === void 0))
|
|
149
|
+
return t.values.map(({ value: e }) => ({ name: e }));
|
|
150
|
+
}, He = (t, e, n, r) => ({
|
|
151
|
+
version: t,
|
|
152
|
+
tags: e.components.map((s) => {
|
|
153
|
+
const o = fe(n, r, s.filePath);
|
|
154
|
+
return {
|
|
155
|
+
name: s.tag,
|
|
156
|
+
description: K(s),
|
|
157
|
+
attributes: s.props.map((l) => ({
|
|
158
|
+
name: l.attr || l.name,
|
|
159
|
+
description: F(l),
|
|
160
|
+
values: $e(l),
|
|
161
|
+
references: o
|
|
162
|
+
})),
|
|
163
|
+
references: o
|
|
164
|
+
};
|
|
165
|
+
}),
|
|
166
|
+
globalAttributes: [],
|
|
167
|
+
valueSets: []
|
|
168
|
+
}), Pe = (t) => {
|
|
169
|
+
const e = { value: "2023", pattern: "yyyy" }, n = { value: "12", pattern: "mm" }, r = { value: "24", pattern: "dd" };
|
|
170
|
+
return ge([e.value, n.value, r.value].join("-"), t).replace(e.value, e.pattern).replace(n.value, n.pattern).replace(r.value, r.pattern);
|
|
171
|
+
}, We = (t) => t.toISOString().split("T")[0], ue = (t, e, n) => {
|
|
172
|
+
const r = t.closest("[lang]"), s = Intl.NumberFormat.supportedLocalesOf(r == null ? void 0 : r.lang), o = s.length > 0 && typeof s[0] == "string" ? s[0] : navigator.language || n, l = o.split("-").shift();
|
|
173
|
+
return {
|
|
174
|
+
locale: o,
|
|
175
|
+
messages: e[l] || e[n]
|
|
176
|
+
};
|
|
177
|
+
}, ze = (t, e, n) => new Intl.NumberFormat(e, { style: "currency", currency: n }).format(t), qe = (t, e) => new Intl.NumberFormat(e).format(t), de = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, ge = (t, e) => typeof t != "string" || t === "" || !de.test(t) ? "" : new Intl.DateTimeFormat(e).format(new Date(t)), we = (t, e) => (n) => ue(n, t, e), Q = {
|
|
5
178
|
allRenderFn: !1,
|
|
6
179
|
cmpDidLoad: !0,
|
|
7
180
|
cmpDidUnload: !1,
|
|
@@ -90,25 +263,25 @@ const X = {
|
|
|
90
263
|
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
91
264
|
experimentalSlotFixes: !1
|
|
92
265
|
};
|
|
93
|
-
let
|
|
94
|
-
const
|
|
95
|
-
let
|
|
96
|
-
const i = [], d = (
|
|
97
|
-
for (let $ = 0; $ <
|
|
98
|
-
|
|
266
|
+
let k, D, x, _ = !1, R = !1, B = !1, h = !1;
|
|
267
|
+
const C = "http://www.w3.org/1999/xlink", H = {}, pe = "http://www.w3.org/2000/svg", he = "http://www.w3.org/1999/xhtml", ye = (t) => t != null, J = (t) => (t = typeof t, t === "object" || t === "function"), Y = (t, e, ...n) => {
|
|
268
|
+
let r = null, s = null, o = null, l = !1, c = !1;
|
|
269
|
+
const i = [], d = (a) => {
|
|
270
|
+
for (let $ = 0; $ < a.length; $++)
|
|
271
|
+
r = a[$], Array.isArray(r) ? d(r) : r != null && typeof r != "boolean" && ((l = typeof t != "function" && !J(r)) && (r = String(r)), l && c ? i[i.length - 1].$text$ += r : i.push(l ? M(null, r) : r), c = l);
|
|
99
272
|
};
|
|
100
273
|
if (d(n), e) {
|
|
101
|
-
e.key && (
|
|
274
|
+
e.key && (s = e.key), e.name && (o = e.name);
|
|
102
275
|
{
|
|
103
|
-
const
|
|
104
|
-
|
|
276
|
+
const a = e.className || e.class;
|
|
277
|
+
a && (e.class = typeof a != "object" ? a : Object.keys(a).filter(($) => a[$]).join(" "));
|
|
105
278
|
}
|
|
106
279
|
}
|
|
107
280
|
if (typeof t == "function")
|
|
108
|
-
return t(e === null ? {} : e, i,
|
|
109
|
-
const u =
|
|
110
|
-
return u.$attrs$ = e, i.length > 0 && (u.$children$ = i), u.$key$ =
|
|
111
|
-
},
|
|
281
|
+
return t(e === null ? {} : e, i, Se);
|
|
282
|
+
const u = M(t, null);
|
|
283
|
+
return u.$attrs$ = e, i.length > 0 && (u.$children$ = i), u.$key$ = s, u.$name$ = o, u;
|
|
284
|
+
}, M = (t, e) => {
|
|
112
285
|
const n = {
|
|
113
286
|
$flags$: 0,
|
|
114
287
|
$tag$: t,
|
|
@@ -117,9 +290,9 @@ const H = "http://www.w3.org/1999/xlink", C = {}, re = "http://www.w3.org/2000/s
|
|
|
117
290
|
$children$: null
|
|
118
291
|
};
|
|
119
292
|
return n.$attrs$ = null, n.$key$ = null, n.$name$ = null, n;
|
|
120
|
-
},
|
|
293
|
+
}, ve = {}, be = (t) => t && t.$tag$ === ve, Se = {
|
|
121
294
|
forEach: (t, e) => t.map(P).forEach(e),
|
|
122
|
-
map: (t, e) => t.map(P).map(e).map(
|
|
295
|
+
map: (t, e) => t.map(P).map(e).map(ke)
|
|
123
296
|
}, P = (t) => ({
|
|
124
297
|
vattrs: t.$attrs$,
|
|
125
298
|
vchildren: t.$children$,
|
|
@@ -127,254 +300,254 @@ const H = "http://www.w3.org/1999/xlink", C = {}, re = "http://www.w3.org/2000/s
|
|
|
127
300
|
vname: t.$name$,
|
|
128
301
|
vtag: t.$tag$,
|
|
129
302
|
vtext: t.$text$
|
|
130
|
-
}),
|
|
303
|
+
}), ke = (t) => {
|
|
131
304
|
if (typeof t.vtag == "function") {
|
|
132
305
|
const n = Object.assign({}, t.vattrs);
|
|
133
|
-
return t.vkey && (n.key = t.vkey), t.vname && (n.name = t.vname),
|
|
306
|
+
return t.vkey && (n.key = t.vkey), t.vname && (n.name = t.vname), Y(t.vtag, n, ...t.vchildren || []);
|
|
134
307
|
}
|
|
135
|
-
const e =
|
|
308
|
+
const e = M(t.vtag, t.vtext);
|
|
136
309
|
return e.$attrs$ = t.vattrs, e.$children$ = t.vchildren, e.$key$ = t.vkey, e.$name$ = t.vname, e;
|
|
137
|
-
},
|
|
138
|
-
if (n !==
|
|
139
|
-
let
|
|
310
|
+
}, W = (t, e, n, r, s, o) => {
|
|
311
|
+
if (n !== r) {
|
|
312
|
+
let l = w(t, e), c = e.toLowerCase();
|
|
140
313
|
if (e === "class") {
|
|
141
|
-
const i = t.classList, d =
|
|
142
|
-
i.remove(...d.filter((
|
|
314
|
+
const i = t.classList, d = z(n), u = z(r);
|
|
315
|
+
i.remove(...d.filter((a) => a && !u.includes(a))), i.add(...u.filter((a) => a && !d.includes(a)));
|
|
143
316
|
} else if (e === "style") {
|
|
144
317
|
for (const i in n)
|
|
145
|
-
(!
|
|
146
|
-
for (const i in
|
|
147
|
-
(!n ||
|
|
318
|
+
(!r || r[i] == null) && (i.includes("-") ? t.style.removeProperty(i) : t.style[i] = "");
|
|
319
|
+
for (const i in r)
|
|
320
|
+
(!n || r[i] !== n[i]) && (i.includes("-") ? t.style.setProperty(i, r[i]) : t.style[i] = r[i]);
|
|
148
321
|
} else if (e !== "key")
|
|
149
322
|
if (e === "ref")
|
|
150
|
-
|
|
323
|
+
r && r(t);
|
|
151
324
|
else if (!t.__lookupSetter__(e) && e[0] === "o" && e[1] === "n") {
|
|
152
|
-
if (e[2] === "-" ? e = e.slice(3) :
|
|
153
|
-
const i = e.endsWith(
|
|
154
|
-
e = e.replace(
|
|
325
|
+
if (e[2] === "-" ? e = e.slice(3) : w(U, c) ? e = c.slice(2) : e = c[2] + e.slice(3), n || r) {
|
|
326
|
+
const i = e.endsWith(Z);
|
|
327
|
+
e = e.replace(Te, ""), n && T.rel(t, e, n, i), r && T.ael(t, e, r, i);
|
|
155
328
|
}
|
|
156
329
|
} else {
|
|
157
|
-
const i =
|
|
158
|
-
if ((
|
|
330
|
+
const i = J(r);
|
|
331
|
+
if ((l || i && r !== null) && !s)
|
|
159
332
|
try {
|
|
160
333
|
if (t.tagName.includes("-"))
|
|
161
|
-
t[e] =
|
|
334
|
+
t[e] = r;
|
|
162
335
|
else {
|
|
163
|
-
const u =
|
|
164
|
-
e === "list" ?
|
|
336
|
+
const u = r ?? "";
|
|
337
|
+
e === "list" ? l = !1 : (n == null || t[e] != u) && (t[e] = u);
|
|
165
338
|
}
|
|
166
339
|
} catch {
|
|
167
340
|
}
|
|
168
341
|
let d = !1;
|
|
169
|
-
c !== (c = c.replace(/^xlink\:?/, "")) && (e = c, d = !0),
|
|
342
|
+
c !== (c = c.replace(/^xlink\:?/, "")) && (e = c, d = !0), r == null || r === !1 ? (r !== !1 || t.getAttribute(e) === "") && (d ? t.removeAttributeNS(C, e) : t.removeAttribute(e)) : (!l || o & 4 || s) && !i && (r = r === !0 ? "" : r, d ? t.setAttributeNS(C, e, r) : t.setAttribute(e, r));
|
|
170
343
|
}
|
|
171
344
|
}
|
|
172
|
-
},
|
|
173
|
-
const
|
|
174
|
-
for (
|
|
175
|
-
|
|
176
|
-
for (
|
|
177
|
-
|
|
178
|
-
},
|
|
179
|
-
const
|
|
180
|
-
let
|
|
181
|
-
if (
|
|
345
|
+
}, me = /\s/, z = (t) => t ? t.split(me) : [], Z = "Capture", Te = new RegExp(Z + "$"), V = (t, e, n, r) => {
|
|
346
|
+
const s = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, o = t && t.$attrs$ || H, l = e.$attrs$ || H;
|
|
347
|
+
for (r in o)
|
|
348
|
+
r in l || W(s, r, o[r], void 0, n, e.$flags$);
|
|
349
|
+
for (r in l)
|
|
350
|
+
W(s, r, o[r], l[r], n, e.$flags$);
|
|
351
|
+
}, O = (t, e, n, r) => {
|
|
352
|
+
const s = e.$children$[n];
|
|
353
|
+
let o = 0, l, c, i;
|
|
354
|
+
if (_ || (B = !0, s.$tag$ === "slot" && (k && r.classList.add(k + "-s"), s.$flags$ |= s.$children$ ? (
|
|
182
355
|
// slot element has fallback content
|
|
183
356
|
2
|
|
184
357
|
) : (
|
|
185
358
|
// slot element does not have fallback content
|
|
186
359
|
1
|
|
187
|
-
))),
|
|
188
|
-
|
|
189
|
-
else if (
|
|
190
|
-
|
|
360
|
+
))), s.$text$ !== null)
|
|
361
|
+
l = s.$elm$ = j.createTextNode(s.$text$);
|
|
362
|
+
else if (s.$flags$ & 1)
|
|
363
|
+
l = s.$elm$ = j.createTextNode("");
|
|
191
364
|
else {
|
|
192
|
-
if (h || (h =
|
|
193
|
-
for (
|
|
194
|
-
c =
|
|
195
|
-
|
|
365
|
+
if (h || (h = s.$tag$ === "svg"), l = s.$elm$ = j.createElementNS(h ? pe : he, s.$flags$ & 2 ? "slot-fb" : s.$tag$), h && s.$tag$ === "foreignObject" && (h = !1), V(null, s, h), ye(k) && l["s-si"] !== k && l.classList.add(l["s-si"] = k), s.$children$)
|
|
366
|
+
for (o = 0; o < s.$children$.length; ++o)
|
|
367
|
+
c = O(t, s, o, l), c && l.appendChild(c);
|
|
368
|
+
s.$tag$ === "svg" ? h = !1 : l.tagName === "foreignObject" && (h = !0);
|
|
196
369
|
}
|
|
197
|
-
return
|
|
198
|
-
},
|
|
199
|
-
|
|
370
|
+
return l["s-hn"] = x, s.$flags$ & 3 && (l["s-sr"] = !0, l["s-cr"] = D, l["s-sn"] = s.$name$ || "", i = t && t.$children$ && t.$children$[n], i && i.$tag$ === s.$tag$ && t.$elm$ && E(t.$elm$, !1)), l;
|
|
371
|
+
}, E = (t, e) => {
|
|
372
|
+
T.$flags$ |= 1;
|
|
200
373
|
const n = t.childNodes;
|
|
201
|
-
for (let
|
|
202
|
-
const
|
|
203
|
-
|
|
374
|
+
for (let r = n.length - 1; r >= 0; r--) {
|
|
375
|
+
const s = n[r];
|
|
376
|
+
s["s-hn"] !== x && s["s-ol"] && (se(s).insertBefore(s, N(s)), s["s-ol"].remove(), s["s-ol"] = void 0, s["s-sh"] = void 0, B = !0), e && E(s, e);
|
|
204
377
|
}
|
|
205
|
-
|
|
206
|
-
},
|
|
207
|
-
let
|
|
208
|
-
for (
|
|
209
|
-
s
|
|
210
|
-
},
|
|
211
|
-
for (let
|
|
212
|
-
const
|
|
213
|
-
if (
|
|
214
|
-
const
|
|
215
|
-
|
|
378
|
+
T.$flags$ &= -2;
|
|
379
|
+
}, ee = (t, e, n, r, s, o) => {
|
|
380
|
+
let l = t["s-cr"] && t["s-cr"].parentNode || t, c;
|
|
381
|
+
for (l.shadowRoot && l.tagName === x && (l = l.shadowRoot); s <= o; ++s)
|
|
382
|
+
r[s] && (c = O(null, n, s, t), c && (r[s].$elm$ = c, l.insertBefore(c, N(e))));
|
|
383
|
+
}, te = (t, e, n) => {
|
|
384
|
+
for (let r = e; r <= n; ++r) {
|
|
385
|
+
const s = t[r];
|
|
386
|
+
if (s) {
|
|
387
|
+
const o = s.$elm$;
|
|
388
|
+
le(s), o && (R = !0, o["s-ol"] ? o["s-ol"].remove() : E(o, !0), o.remove());
|
|
216
389
|
}
|
|
217
390
|
}
|
|
218
|
-
},
|
|
219
|
-
let
|
|
220
|
-
for (;
|
|
391
|
+
}, xe = (t, e, n, r, s = !1) => {
|
|
392
|
+
let o = 0, l = 0, c = 0, i = 0, d = e.length - 1, u = e[0], a = e[d], $ = r.length - 1, f = r[0], g = r[$], v, y;
|
|
393
|
+
for (; o <= d && l <= $; )
|
|
221
394
|
if (u == null)
|
|
222
|
-
u = e[++
|
|
223
|
-
else if (f == null)
|
|
224
|
-
f = e[--d];
|
|
395
|
+
u = e[++o];
|
|
225
396
|
else if (a == null)
|
|
226
|
-
a =
|
|
227
|
-
else if (
|
|
228
|
-
|
|
229
|
-
else if (
|
|
230
|
-
|
|
231
|
-
else if (A(
|
|
232
|
-
|
|
233
|
-
else if (A(
|
|
234
|
-
(
|
|
235
|
-
else if (A(
|
|
236
|
-
(u.$tag$ === "slot" ||
|
|
397
|
+
a = e[--d];
|
|
398
|
+
else if (f == null)
|
|
399
|
+
f = r[++l];
|
|
400
|
+
else if (g == null)
|
|
401
|
+
g = r[--$];
|
|
402
|
+
else if (A(u, f, s))
|
|
403
|
+
m(u, f, s), u = e[++o], f = r[++l];
|
|
404
|
+
else if (A(a, g, s))
|
|
405
|
+
m(a, g, s), a = e[--d], g = r[--$];
|
|
406
|
+
else if (A(u, g, s))
|
|
407
|
+
(u.$tag$ === "slot" || g.$tag$ === "slot") && E(u.$elm$.parentNode, !1), m(u, g, s), t.insertBefore(u.$elm$, a.$elm$.nextSibling), u = e[++o], g = r[--$];
|
|
408
|
+
else if (A(a, f, s))
|
|
409
|
+
(u.$tag$ === "slot" || g.$tag$ === "slot") && E(a.$elm$.parentNode, !1), m(a, f, s), t.insertBefore(a.$elm$, u.$elm$), a = e[--d], f = r[++l];
|
|
237
410
|
else {
|
|
238
|
-
for (c = -1, i =
|
|
239
|
-
if (e[i] && e[i].$key$ !== null && e[i].$key$ ===
|
|
411
|
+
for (c = -1, i = o; i <= d; ++i)
|
|
412
|
+
if (e[i] && e[i].$key$ !== null && e[i].$key$ === f.$key$) {
|
|
240
413
|
c = i;
|
|
241
414
|
break;
|
|
242
415
|
}
|
|
243
|
-
c >= 0 ? (y = e[c], y.$tag$ !==
|
|
416
|
+
c >= 0 ? (y = e[c], y.$tag$ !== f.$tag$ ? v = O(e && e[l], n, c, t) : (m(y, f, s), e[c] = void 0, v = y.$elm$), f = r[++l]) : (v = O(e && e[l], n, l, t), f = r[++l]), v && se(u.$elm$).insertBefore(v, N(u.$elm$));
|
|
244
417
|
}
|
|
245
|
-
|
|
246
|
-
}, A = (t, e, n = !1) => t.$tag$ === e.$tag$ ? t.$tag$ === "slot" ? t.$name$ === e.$name$ : n ? !0 : t.$key$ === e.$key$ : !1,
|
|
247
|
-
const
|
|
418
|
+
o > d ? ee(t, r[$ + 1] == null ? null : r[$ + 1].$elm$, n, r, l, $) : l > $ && te(e, o, d);
|
|
419
|
+
}, A = (t, e, n = !1) => t.$tag$ === e.$tag$ ? t.$tag$ === "slot" ? t.$name$ === e.$name$ : n ? !0 : t.$key$ === e.$key$ : !1, N = (t) => t && t["s-ol"] || t, se = (t) => (t["s-ol"] ? t["s-ol"] : t).parentNode, m = (t, e, n = !1) => {
|
|
420
|
+
const r = e.$elm$ = t.$elm$, s = t.$children$, o = e.$children$, l = e.$tag$, c = e.$text$;
|
|
248
421
|
let i;
|
|
249
|
-
c === null ? (h =
|
|
250
|
-
},
|
|
422
|
+
c === null ? (h = l === "svg" ? !0 : l === "foreignObject" ? !1 : h, l === "slot" && !_ || V(t, e, h), s !== null && o !== null ? xe(r, s, e, o, n) : o !== null ? (t.$text$ !== null && (r.textContent = ""), ee(r, null, e, o, 0, o.length - 1)) : s !== null && te(s, 0, s.length - 1), h && l === "svg" && (h = !1)) : (i = r["s-cr"]) ? i.parentNode.textContent = c : t.$text$ !== c && (r.data = c);
|
|
423
|
+
}, ne = (t) => {
|
|
251
424
|
const e = t.childNodes;
|
|
252
425
|
for (const n of e)
|
|
253
426
|
if (n.nodeType === 1) {
|
|
254
427
|
if (n["s-sr"]) {
|
|
255
|
-
const
|
|
428
|
+
const r = n["s-sn"];
|
|
256
429
|
n.hidden = !1;
|
|
257
|
-
for (const
|
|
258
|
-
if (
|
|
259
|
-
if (
|
|
260
|
-
if (
|
|
430
|
+
for (const s of e)
|
|
431
|
+
if (s !== n) {
|
|
432
|
+
if (s["s-hn"] !== n["s-hn"] || r !== "") {
|
|
433
|
+
if (s.nodeType === 1 && (r === s.getAttribute("slot") || r === s["s-sn"])) {
|
|
261
434
|
n.hidden = !0;
|
|
262
435
|
break;
|
|
263
436
|
}
|
|
264
|
-
} else if (
|
|
437
|
+
} else if (s.nodeType === 1 || s.nodeType === 3 && s.textContent.trim() !== "") {
|
|
265
438
|
n.hidden = !0;
|
|
266
439
|
break;
|
|
267
440
|
}
|
|
268
441
|
}
|
|
269
442
|
}
|
|
270
|
-
|
|
443
|
+
ne(n);
|
|
271
444
|
}
|
|
272
|
-
},
|
|
273
|
-
let e, n,
|
|
274
|
-
for (const
|
|
275
|
-
if (
|
|
445
|
+
}, b = [], re = (t) => {
|
|
446
|
+
let e, n, r;
|
|
447
|
+
for (const s of t.childNodes) {
|
|
448
|
+
if (s["s-sr"] && (e = s["s-cr"]) && e.parentNode) {
|
|
276
449
|
n = e.parentNode.childNodes;
|
|
277
|
-
const
|
|
278
|
-
for (
|
|
279
|
-
if (e = n[
|
|
280
|
-
if (
|
|
281
|
-
let
|
|
282
|
-
|
|
283
|
-
$slotRefNode$:
|
|
450
|
+
const o = s["s-sn"];
|
|
451
|
+
for (r = n.length - 1; r >= 0; r--)
|
|
452
|
+
if (e = n[r], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== s["s-hn"] && !Q.experimentalSlotFixes)
|
|
453
|
+
if (q(e, o)) {
|
|
454
|
+
let l = b.find((c) => c.$nodeToRelocate$ === e);
|
|
455
|
+
R = !0, e["s-sn"] = e["s-sn"] || o, l ? (l.$nodeToRelocate$["s-sh"] = s["s-hn"], l.$slotRefNode$ = s) : (e["s-sh"] = s["s-hn"], b.push({
|
|
456
|
+
$slotRefNode$: s,
|
|
284
457
|
$nodeToRelocate$: e
|
|
285
|
-
})), e["s-sr"] &&
|
|
286
|
-
|
|
458
|
+
})), e["s-sr"] && b.map((c) => {
|
|
459
|
+
q(c.$nodeToRelocate$, e["s-sn"]) && (l = b.find((i) => i.$nodeToRelocate$ === e), l && !c.$slotRefNode$ && (c.$slotRefNode$ = l.$slotRefNode$));
|
|
287
460
|
});
|
|
288
461
|
} else
|
|
289
|
-
|
|
462
|
+
b.some((l) => l.$nodeToRelocate$ === e) || b.push({
|
|
290
463
|
$nodeToRelocate$: e
|
|
291
464
|
});
|
|
292
465
|
}
|
|
293
|
-
|
|
466
|
+
s.nodeType === 1 && re(s);
|
|
294
467
|
}
|
|
295
|
-
},
|
|
296
|
-
t.$attrs$ && t.$attrs$.ref && t.$attrs$.ref(null), t.$children$ && t.$children$.map(
|
|
297
|
-
},
|
|
298
|
-
var
|
|
299
|
-
const i = t.$hostElement$, d = t.$cmpMeta$, u = t.$vnode$ ||
|
|
300
|
-
if (
|
|
301
|
-
for (const $ of Object.keys(
|
|
302
|
-
i.hasAttribute($) && !["key", "ref", "style", "class"].includes($) && (
|
|
303
|
-
|
|
468
|
+
}, q = (t, e) => t.nodeType === 1 ? t.getAttribute("slot") === null && e === "" || t.getAttribute("slot") === e : t["s-sn"] === e ? !0 : e === "", le = (t) => {
|
|
469
|
+
t.$attrs$ && t.$attrs$.ref && t.$attrs$.ref(null), t.$children$ && t.$children$.map(le);
|
|
470
|
+
}, Ee = (t, e, n = !1) => {
|
|
471
|
+
var r, s, o, l, c;
|
|
472
|
+
const i = t.$hostElement$, d = t.$cmpMeta$, u = t.$vnode$ || M(null, null), a = be(e) ? e : Y(null, null, e);
|
|
473
|
+
if (x = i.tagName, d.$attrsToReflect$ && (a.$attrs$ = a.$attrs$ || {}, d.$attrsToReflect$.map(([$, f]) => a.$attrs$[f] = i[$])), n && a.$attrs$)
|
|
474
|
+
for (const $ of Object.keys(a.$attrs$))
|
|
475
|
+
i.hasAttribute($) && !["key", "ref", "style", "class"].includes($) && (a.$attrs$[$] = i[$]);
|
|
476
|
+
a.$tag$ = null, a.$flags$ |= 4, t.$vnode$ = a, a.$elm$ = u.$elm$ = i.shadowRoot || i, k = i["s-sc"], _ = (d.$flags$ & 1) !== 0, D = i["s-cr"], R = !1, m(u, a, n);
|
|
304
477
|
{
|
|
305
|
-
if (
|
|
306
|
-
|
|
307
|
-
for (const $ of
|
|
308
|
-
const
|
|
309
|
-
if (!
|
|
310
|
-
const
|
|
311
|
-
|
|
478
|
+
if (T.$flags$ |= 1, B) {
|
|
479
|
+
re(a.$elm$);
|
|
480
|
+
for (const $ of b) {
|
|
481
|
+
const f = $.$nodeToRelocate$;
|
|
482
|
+
if (!f["s-ol"]) {
|
|
483
|
+
const g = j.createTextNode("");
|
|
484
|
+
g["s-nr"] = f, f.parentNode.insertBefore(f["s-ol"] = g, f);
|
|
312
485
|
}
|
|
313
486
|
}
|
|
314
|
-
for (const $ of
|
|
315
|
-
const
|
|
316
|
-
if (
|
|
317
|
-
const v =
|
|
318
|
-
let y =
|
|
487
|
+
for (const $ of b) {
|
|
488
|
+
const f = $.$nodeToRelocate$, g = $.$slotRefNode$;
|
|
489
|
+
if (g) {
|
|
490
|
+
const v = g.parentNode;
|
|
491
|
+
let y = g.nextSibling;
|
|
319
492
|
{
|
|
320
|
-
let
|
|
321
|
-
for (;
|
|
322
|
-
let
|
|
323
|
-
if (
|
|
324
|
-
y =
|
|
493
|
+
let L = (r = f["s-ol"]) === null || r === void 0 ? void 0 : r.previousSibling;
|
|
494
|
+
for (; L; ) {
|
|
495
|
+
let S = (s = L["s-nr"]) !== null && s !== void 0 ? s : null;
|
|
496
|
+
if (S && S["s-sn"] === f["s-sn"] && v === S.parentNode && (S = S.nextSibling, !S || !S["s-nr"])) {
|
|
497
|
+
y = S;
|
|
325
498
|
break;
|
|
326
499
|
}
|
|
327
|
-
|
|
500
|
+
L = L.previousSibling;
|
|
328
501
|
}
|
|
329
502
|
}
|
|
330
|
-
(!y && v !==
|
|
503
|
+
(!y && v !== f.parentNode || f.nextSibling !== y) && f !== y && (!f["s-hn"] && f["s-ol"] && (f["s-hn"] = f["s-ol"].parentNode.nodeName), v.insertBefore(f, y), f.nodeType === 1 && (f.hidden = (o = f["s-ih"]) !== null && o !== void 0 ? o : !1));
|
|
331
504
|
} else
|
|
332
|
-
|
|
505
|
+
f.nodeType === 1 && (n && (f["s-ih"] = (l = f.hidden) !== null && l !== void 0 ? l : !1), f.hidden = !0);
|
|
333
506
|
}
|
|
334
507
|
}
|
|
335
|
-
|
|
508
|
+
R && ne(a.$elm$), T.$flags$ &= -2, b.length = 0;
|
|
336
509
|
}
|
|
337
|
-
if (
|
|
338
|
-
for (const $ of
|
|
339
|
-
$["s-hn"] !==
|
|
340
|
-
|
|
341
|
-
},
|
|
342
|
-
|
|
343
|
-
const
|
|
510
|
+
if (Q.experimentalScopedSlotChanges && d.$flags$ & 2)
|
|
511
|
+
for (const $ of a.$elm$.childNodes)
|
|
512
|
+
$["s-hn"] !== x && !$["s-sh"] && (n && $["s-ih"] == null && ($["s-ih"] = (c = $.hidden) !== null && c !== void 0 ? c : !1), $.hidden = !0);
|
|
513
|
+
D = void 0;
|
|
514
|
+
}, w = (t, e) => e in t, U = typeof window < "u" ? window : {}, j = U.document || { head: {} };
|
|
515
|
+
U.HTMLElement;
|
|
516
|
+
const T = {
|
|
344
517
|
$flags$: 0,
|
|
345
518
|
$resourcesUrl$: "",
|
|
346
519
|
jmp: (t) => t(),
|
|
347
520
|
raf: (t) => requestAnimationFrame(t),
|
|
348
|
-
ael: (t, e, n,
|
|
349
|
-
rel: (t, e, n,
|
|
521
|
+
ael: (t, e, n, r) => t.addEventListener(e, n, r),
|
|
522
|
+
rel: (t, e, n, r) => t.removeEventListener(e, n, r),
|
|
350
523
|
ce: (t, e) => new CustomEvent(t, e)
|
|
351
|
-
},
|
|
524
|
+
}, Le = (t, e, n) => {
|
|
352
525
|
[null, void 0, "", !1].includes(n) || ["innerHTML", "style"].includes(e) || t.setAttribute(e, ["object", "function"].includes(typeof n) ? "/!\\ Object props are not rendered in the code example" : n);
|
|
353
|
-
},
|
|
526
|
+
}, oe = (t, e, n, r, s) => {
|
|
354
527
|
if (e && typeof e == "string") {
|
|
355
|
-
const
|
|
356
|
-
Object.keys(n || {}).forEach((
|
|
357
|
-
|
|
358
|
-
}),
|
|
359
|
-
|
|
360
|
-
}), n != null && n.innerHTML && (
|
|
528
|
+
const o = document.createElement(e);
|
|
529
|
+
Object.keys(n || {}).forEach((l) => {
|
|
530
|
+
Le(o, l, n[l]);
|
|
531
|
+
}), r == null || r.forEach((l) => {
|
|
532
|
+
oe(o, l.$tag$, l.$attrs$, l.$children$, l.$text$);
|
|
533
|
+
}), n != null && n.innerHTML && (o.innerHTML = n.innerHTML), t.appendChild(o);
|
|
361
534
|
}
|
|
362
|
-
|
|
363
|
-
},
|
|
535
|
+
s && (t.innerHTML = s);
|
|
536
|
+
}, Ge = (t, e) => {
|
|
364
537
|
const n = {};
|
|
365
538
|
if (typeof t != "object")
|
|
366
539
|
throw new Error("filterArgs - args isn't an object.");
|
|
367
|
-
for (const
|
|
368
|
-
if (!
|
|
369
|
-
const
|
|
370
|
-
(!e || !Object.keys(e).includes(
|
|
540
|
+
for (const r in t)
|
|
541
|
+
if (!r.startsWith("slot")) {
|
|
542
|
+
const s = t[r], o = r.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
543
|
+
(!e || !Object.keys(e).includes(r) || e[r] !== s) && (n[o] = s);
|
|
371
544
|
}
|
|
372
545
|
return n;
|
|
373
|
-
},
|
|
374
|
-
var
|
|
546
|
+
}, Ie = (t, e) => {
|
|
547
|
+
var r, s;
|
|
375
548
|
const n = document.getElementById("storybook-root");
|
|
376
549
|
if (n)
|
|
377
|
-
return (
|
|
550
|
+
return (s = document.querySelector("[lang]")) == null || s.setAttribute("lang", ((r = e.globals) == null ? void 0 : r.locale) || "en"), Ee(
|
|
378
551
|
{
|
|
379
552
|
$ancestorComponent$: void 0,
|
|
380
553
|
$flags$: 0,
|
|
@@ -387,147 +560,80 @@ const x = {
|
|
|
387
560
|
},
|
|
388
561
|
t(e)
|
|
389
562
|
), n.children[n.children.length - 1];
|
|
390
|
-
},
|
|
391
|
-
const
|
|
392
|
-
return
|
|
393
|
-
},
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
}, Ae = (t) => t.toISOString().split("T")[0], ve = (t, e, n) => {
|
|
397
|
-
const s = t.closest("[lang]"), l = Intl.NumberFormat.supportedLocalesOf(s == null ? void 0 : s.lang), r = l.length > 0 && typeof l[0] == "string" ? l[0] : navigator.language || n, o = r.split("-").shift();
|
|
398
|
-
return {
|
|
399
|
-
locale: r,
|
|
400
|
-
messages: e[o] || e[n]
|
|
401
|
-
};
|
|
402
|
-
}, Re = (t, e, n) => new Intl.NumberFormat(e, { style: "currency", currency: n }).format(t), Me = (t, e) => new Intl.NumberFormat(e).format(t), Se = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, be = (t, e) => typeof t != "string" || t === "" || !Se.test(t) ? "" : new Intl.DateTimeFormat(e).format(new Date(t)), Oe = (t, e) => (n) => ve(n, t, e), je = (t = "", e = 10) => {
|
|
403
|
-
const n = new Uint8Array(e);
|
|
404
|
-
crypto.getRandomValues(n);
|
|
405
|
-
const s = Array.from(n).map((l) => l.toString(16).padStart(2, "0")).join("").slice(0, e);
|
|
406
|
-
return t !== "" ? `${t}-${s}` : s;
|
|
407
|
-
};
|
|
408
|
-
class Fe {
|
|
409
|
-
constructor(e = []) {
|
|
410
|
-
/**
|
|
411
|
-
* Available classes
|
|
412
|
-
*/
|
|
413
|
-
g(this, "classes");
|
|
414
|
-
/**
|
|
415
|
-
* Add class
|
|
416
|
-
* @param className - class name to add
|
|
417
|
-
*/
|
|
418
|
-
g(this, "add", (e) => {
|
|
419
|
-
this.has(e) || this.classes.push(e);
|
|
420
|
-
});
|
|
421
|
-
/**
|
|
422
|
-
* Delete class
|
|
423
|
-
* @param className - class name to delete
|
|
424
|
-
*/
|
|
425
|
-
g(this, "delete", (e) => {
|
|
426
|
-
const n = this.classes.indexOf(e);
|
|
427
|
-
n > -1 && this.classes.splice(n, 1);
|
|
428
|
-
});
|
|
429
|
-
/**
|
|
430
|
-
* Check if class exist in list
|
|
431
|
-
* @param className - class name to check
|
|
432
|
-
* @returns class name is in the list
|
|
433
|
-
*/
|
|
434
|
-
g(this, "has", (e) => this.classes.includes(e));
|
|
435
|
-
/**
|
|
436
|
-
* Join classes seperated by spaces
|
|
437
|
-
* @returns joined values
|
|
438
|
-
*/
|
|
439
|
-
g(this, "join", () => this.classes.join(" "));
|
|
440
|
-
this.classes = e;
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
const De = (t) => Array.isArray(t) && t.every((e) => typeof e == "string"), _e = (t, e) => e.includes(t == null ? void 0 : t.tagName.toLowerCase()), Be = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button', Ne = (t) => {
|
|
444
|
-
const e = se(t), n = ne(t);
|
|
445
|
-
return [t, ...e, ...n];
|
|
446
|
-
}, se = (t, e = []) => {
|
|
447
|
-
if (t.self !== t.top)
|
|
448
|
-
try {
|
|
449
|
-
const n = t.parent;
|
|
450
|
-
return n ? (e.push(n), se(n, e)) : e;
|
|
451
|
-
} catch (n) {
|
|
452
|
-
return console.error("Different hosts between iframes:", n), e;
|
|
453
|
-
}
|
|
454
|
-
return e;
|
|
455
|
-
}, ne = (t, e = []) => {
|
|
456
|
-
if (t.frames.length > 0)
|
|
457
|
-
for (const n of Array.from(t.frames))
|
|
458
|
-
e.push(n), ne(n, e);
|
|
459
|
-
return e;
|
|
460
|
-
}, He = (t) => typeof t == "string" && t.trim() !== "", Ce = (t) => typeof t == "string" ? t.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g, "") : t, Pe = async (t) => t(), Ue = ({ disconnect: t, observe: e, takeRecords: n }) => {
|
|
461
|
-
class s {
|
|
462
|
-
constructor(r) {
|
|
563
|
+
}, Xe = ({ $tag$: t, $attrs$: e, $children$: n, $text$: r }) => {
|
|
564
|
+
const s = document.createElement("div");
|
|
565
|
+
return oe(s, t, e, n, r), s.innerHTML;
|
|
566
|
+
}, Ke = ({ disconnect: t, observe: e, takeRecords: n }) => {
|
|
567
|
+
class r {
|
|
568
|
+
constructor(o) {
|
|
463
569
|
/**
|
|
464
570
|
*
|
|
465
571
|
*/
|
|
466
|
-
|
|
572
|
+
p(this, "disconnect", t);
|
|
467
573
|
/**
|
|
468
574
|
*
|
|
469
575
|
*/
|
|
470
|
-
|
|
576
|
+
p(this, "observe", e);
|
|
471
577
|
/**
|
|
472
578
|
*
|
|
473
579
|
*/
|
|
474
|
-
|
|
580
|
+
p(this, "takeRecords", n);
|
|
475
581
|
/**
|
|
476
582
|
*
|
|
477
583
|
*/
|
|
478
|
-
|
|
479
|
-
this.cb =
|
|
584
|
+
p(this, "cb");
|
|
585
|
+
this.cb = o;
|
|
480
586
|
}
|
|
481
587
|
}
|
|
482
|
-
return [window, global].forEach((
|
|
483
|
-
Object.defineProperty(
|
|
588
|
+
return [window, global].forEach((s) => {
|
|
589
|
+
Object.defineProperty(s, "MutationObserver", {
|
|
484
590
|
writable: !0,
|
|
485
591
|
configurable: !0,
|
|
486
|
-
value:
|
|
592
|
+
value: r
|
|
487
593
|
});
|
|
488
|
-
}),
|
|
489
|
-
},
|
|
594
|
+
}), r;
|
|
595
|
+
}, Qe = ({ disconnect: t, observe: e }) => {
|
|
490
596
|
class n {
|
|
491
|
-
constructor(
|
|
597
|
+
constructor(s) {
|
|
492
598
|
/**
|
|
493
599
|
*
|
|
494
600
|
*/
|
|
495
|
-
|
|
601
|
+
p(this, "disconnect", t);
|
|
496
602
|
/**
|
|
497
603
|
*
|
|
498
604
|
*/
|
|
499
|
-
|
|
605
|
+
p(this, "observe", e);
|
|
500
606
|
/**
|
|
501
607
|
*
|
|
502
608
|
*/
|
|
503
|
-
|
|
609
|
+
p(this, "unobserve");
|
|
504
610
|
/**
|
|
505
611
|
*
|
|
506
612
|
*/
|
|
507
|
-
|
|
508
|
-
this.cb =
|
|
613
|
+
p(this, "cb");
|
|
614
|
+
this.cb = s;
|
|
509
615
|
}
|
|
510
616
|
}
|
|
511
|
-
return [window, global].forEach((
|
|
512
|
-
Object.defineProperty(
|
|
617
|
+
return [window, global].forEach((r) => {
|
|
618
|
+
Object.defineProperty(r, "ResizeObserver", {
|
|
513
619
|
writable: !0,
|
|
514
620
|
configurable: !0,
|
|
515
621
|
value: n
|
|
516
622
|
});
|
|
517
623
|
}), n;
|
|
518
624
|
};
|
|
519
|
-
class
|
|
625
|
+
class Ae extends Event {
|
|
520
626
|
constructor() {
|
|
521
627
|
super(...arguments);
|
|
522
628
|
/**
|
|
523
629
|
*
|
|
524
630
|
*/
|
|
525
631
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
526
|
-
|
|
632
|
+
p(this, "detail");
|
|
527
633
|
}
|
|
528
634
|
}
|
|
529
|
-
const
|
|
530
|
-
class t extends
|
|
635
|
+
const Je = () => {
|
|
636
|
+
class t extends Ae {
|
|
531
637
|
}
|
|
532
638
|
return [window, global].forEach((e) => {
|
|
533
639
|
Object.defineProperty(e, "SubmitEvent", {
|
|
@@ -538,28 +644,30 @@ const ze = () => {
|
|
|
538
644
|
}), t;
|
|
539
645
|
};
|
|
540
646
|
export {
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
647
|
+
Me as ClassList,
|
|
648
|
+
Oe as allItemsAreString,
|
|
649
|
+
Ne as cleanString,
|
|
650
|
+
Re as createID,
|
|
651
|
+
de as dateRegExp,
|
|
652
|
+
We as dateToString,
|
|
653
|
+
we as defineLocales,
|
|
654
|
+
Ge as filterArgs,
|
|
655
|
+
De as focusableElements,
|
|
656
|
+
Pe as getLocaleDatePattern,
|
|
657
|
+
G as getParentWindows,
|
|
658
|
+
Xe as getStoryHTML,
|
|
659
|
+
_e as getWindows,
|
|
660
|
+
Fe as isTagName,
|
|
661
|
+
Be as isValidString,
|
|
662
|
+
ze as localeCurrency,
|
|
663
|
+
ge as localeDate,
|
|
664
|
+
qe as localeNumber,
|
|
665
|
+
Ue as nextTick,
|
|
666
|
+
Ke as setupMutationObserverMock,
|
|
667
|
+
Qe as setupResizeObserverMock,
|
|
668
|
+
Je as setupSubmitEventMock,
|
|
669
|
+
Ie as stencilWrapper,
|
|
670
|
+
He as vsCodeGenerator,
|
|
671
|
+
Ce as webTypesGenerator
|
|
564
672
|
};
|
|
565
673
|
//# sourceMappingURL=index.es.js.map
|