@yoyaflow/yoya-ui 0.3.3 → 0.4.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/yoya.core.js CHANGED
@@ -1,2338 +1,3 @@
1
- //#region src/core/access.js
2
- var e = null, t = null;
3
- function n(e) {
4
- if (!e) return null;
5
- if (typeof e == "object" && e.code) return {
6
- code: e.code,
7
- level: e.level === "write" ? "write" : "read"
8
- };
9
- let t = String(e).trim();
10
- return t ? t.startsWith("w.") ? {
11
- code: t.slice(2),
12
- level: "write"
13
- } : t.startsWith("r.") ? {
14
- code: t.slice(2),
15
- level: "read"
16
- } : {
17
- code: t,
18
- level: "write"
19
- } : null;
20
- }
21
- function r(e) {
22
- let t = n(e);
23
- return t ? t.code : String(e ?? "");
24
- }
25
- function i({ permissions: e = [], roles: t = [], superAdmins: n = ["super_admin"] } = {}) {
26
- let i = {
27
- permissions: [...e || []],
28
- roles: [...t || []],
29
- superAdmins: [...n || []]
30
- }, a = new Set(i.permissions), o = /* @__PURE__ */ new Set(), s = () => i.superAdmins.some((e) => i.roles.includes(e));
31
- function c(e, t) {
32
- return s() ? !0 : t === "write" ? a.has(`w.${e}`) || a.has(e) : a.has(`r.${e}`) || a.has(`w.${e}`) || a.has(e);
33
- }
34
- function l(e, t) {
35
- return c(r(e), t);
36
- }
37
- let u = {
38
- roles() {
39
- return i.roles.slice();
40
- },
41
- permissions() {
42
- return i.permissions.slice();
43
- },
44
- isSuper: s,
45
- has(e) {
46
- let t = r(e);
47
- return s() || a.has(`r.${t}`) || a.has(`w.${t}`) || a.has(t);
48
- },
49
- canRead(e) {
50
- return l(e, "read");
51
- },
52
- canWrite(e) {
53
- return l(e, "write");
54
- },
55
- setPermissions(e) {
56
- return i.permissions = [...e || []], a.clear(), (e || []).forEach((e) => a.add(e)), o.forEach((e) => e()), u;
57
- },
58
- subscribe(e) {
59
- return o.add(e), () => o.delete(e);
60
- }
61
- };
62
- return u;
63
- }
64
- function a(t, n) {
65
- let r = e;
66
- e = t || r;
67
- try {
68
- return n();
69
- } finally {
70
- e = r;
71
- }
72
- }
73
- function o(e) {
74
- return t = e || null, t;
75
- }
76
- function s() {
77
- return e || t;
78
- }
79
- //#endregion
80
- //#region src/core/node.js
81
- var c = Symbol.for("yoya.devtools.bridge");
82
- function l() {
83
- return typeof globalThis > "u" ? null : globalThis[c] || null;
84
- }
85
- function u() {
86
- let e = l();
87
- return e ? e.enabled() : !1;
88
- }
89
- function ee(e) {
90
- let t = l();
91
- t && t.emit(e);
92
- }
93
- function te(e) {
94
- let t = l();
95
- t && t.unregister(e);
96
- }
97
- function ne(e) {
98
- let t = l();
99
- t && t.captureScope(e);
100
- }
101
- function d(e) {
102
- let t = l();
103
- return t ? t.ensureId(e) : void 0;
104
- }
105
- function f(e, t, n) {
106
- let r = l();
107
- r && r.notify(e, t, n);
108
- }
109
- function re(e) {
110
- let t = l();
111
- t && t.commit(e);
112
- }
113
- var ie = /* @__PURE__ */ new Set([
114
- "checked",
115
- "disabled",
116
- "readonly",
117
- "selected"
118
- ]), ae = /* @__PURE__ */ new Set([
119
- "input",
120
- "select",
121
- "textarea",
122
- "button",
123
- "fieldset",
124
- "option",
125
- "optgroup",
126
- "keygen"
127
- ]), oe = /* @__PURE__ */ new Set(["input", "textarea"]), p = [];
128
- function m() {
129
- return p.length > 0 ? p[p.length - 1] : null;
130
- }
131
- function h(e, t) {
132
- p.push(e);
133
- try {
134
- return t();
135
- } finally {
136
- p.pop();
137
- }
138
- }
139
- var g = null;
140
- function se(e, t) {
141
- let n = g;
142
- g = e;
143
- try {
144
- return t();
145
- } finally {
146
- g = n;
147
- }
148
- }
149
- function _(e, t, n, r) {
150
- if (!g) throw TypeError(`vStateNode binding scope required for function value (${e}${t ? ` "${t}"` : ""})`);
151
- let i = g;
152
- i.bindings.push({
153
- commit: r,
154
- committed: !1,
155
- evaluate: () => n(i.getState()),
156
- key: t,
157
- kind: e,
158
- last: void 0
159
- });
160
- }
161
- var ce = /* @__PURE__ */ new Set([
162
- "area",
163
- "base",
164
- "br",
165
- "col",
166
- "embed",
167
- "hr",
168
- "img",
169
- "input",
170
- "link",
171
- "meta",
172
- "param",
173
- "source",
174
- "track",
175
- "wbr"
176
- ]);
177
- function le(e) {
178
- return typeof e == "string" ? document.querySelector(e) : e;
179
- }
180
- function v(e) {
181
- return String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
182
- }
183
- function y(e) {
184
- return ie.has(e);
185
- }
186
- function ue(e, t, n) {
187
- if (n == null || n === !1) {
188
- if (e.removeAttribute(t), t in e) try {
189
- e[t] = !1;
190
- } catch {}
191
- return;
192
- }
193
- if (n === !0 || y(t)) {
194
- if (e.setAttribute(t, t), t in e) try {
195
- e[t] = !0;
196
- } catch {}
197
- return;
198
- }
199
- if (e.setAttribute(t, String(n)), t in e) try {
200
- e[t] = n;
201
- } catch {}
202
- }
203
- function de(e) {
204
- return Object.entries(e).filter(([, e]) => e != null && e !== "").map(([e, t]) => `${fe(e)}:${v(t)}`).join("; ");
205
- }
206
- function fe(e) {
207
- return String(e).replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`);
208
- }
209
- function pe(e, t) {
210
- return e === t ? !0 : !e || !t || typeof e != "object" || typeof t != "object" ? !1 : !!e.capture == !!t.capture && !!e.once == !!t.once && !!e.passive == !!t.passive;
211
- }
212
- var b = class e {
213
- constructor(e = null) {
214
- this._children = [], this._childKeys = /* @__PURE__ */ new Map(), this._events = /* @__PURE__ */ new Map(), this._domAdapters = /* @__PURE__ */ new Map(), this._cleanup = [], this._states = {}, this._stateTypes = {}, this._stateHandlers = /* @__PURE__ */ new Map(), this._pendingRemovals = /* @__PURE__ */ new Set(), this._childrenDirty = !1, this._deleted = !1, this._access = null, this._accessContext = s(), u() && ne(this), e !== null && this.setup(e);
215
- }
216
- setup(t) {
217
- return typeof t == "function" ? t(this) : t instanceof e ? this.child(t) : typeof t == "string" || typeof t == "number" ? this.text(t) : t && typeof t == "object" && this._setupObject(t), this;
218
- }
219
- access(e) {
220
- let t = n(e);
221
- return this._access = t ? {
222
- code: t.code,
223
- level: "write"
224
- } : null, this;
225
- }
226
- _permissionState() {
227
- let e = this._access ?? m();
228
- if (!e) return "active";
229
- let t = this._accessContext || s();
230
- return t ? t.canRead(e.code) ? e.level === "write" && !t.canWrite(e.code) ? "readonly" : "active" : "hidden" : "active";
231
- }
232
- _applyAccessState(e) {}
233
- _setupObject(e) {
234
- e.children && this.child(e.children);
235
- }
236
- children() {
237
- return [...this._children];
238
- }
239
- clearChildren() {
240
- let e = this._el && u() && !this._devtoolsRendering ? this._children.map((e) => d(e)) : [];
241
- return this._dropChildKeys(this._children), this._children.forEach((e) => {
242
- this._pendingRemovals.add(e);
243
- }), this._children = [], this._childrenDirty = !0, e.length > 0 && !this._devtoolsRendering && f(this, "child", { removed: e }), this;
244
- }
245
- addChild(e, t) {
246
- let n = String(e);
247
- if (this._childKeys.has(n)) throw TypeError(`duplicate key "${n}"`);
248
- let r = S(t);
249
- if (this._childKeys.set(n, r), typeof r.attr == "function" && r.attr("data-row-key", n), this._pendingRemovals.delete(r), this._children.push(r), this._childrenDirty = !0, this._el) {
250
- let e = h(this._access ?? m(), () => r.renderDom());
251
- e && e.parentNode !== this._el && this._el.appendChild(e), u() && !this._devtoolsRendering && f(this, "child", { added: [d(r)] });
252
- }
253
- return this;
254
- }
255
- getChild(e) {
256
- return this._childKeys.get(String(e)) || null;
257
- }
258
- removeChild(e) {
259
- let t = String(e), n = this._childKeys.get(t);
260
- if (!n) return this;
261
- this._childKeys.delete(t);
262
- let r = this._children.indexOf(n);
263
- r !== -1 && this._children.splice(r, 1), this._childrenDirty = !0;
264
- let i = this._el && u() && !this._devtoolsRendering ? d(n) : null;
265
- return n.destroy(), i !== null && f(this, "child", { removed: [i] }), this;
266
- }
267
- _dropChildKeys(e) {
268
- let t = new Set(e);
269
- this._childKeys.forEach((e, n) => {
270
- t.has(e) && this._childKeys.delete(n);
271
- });
272
- }
273
- child(...e) {
274
- return e.flat(Infinity).forEach((e) => {
275
- if (e == null) return;
276
- let t = S(e);
277
- this._pendingRemovals.delete(t), this._children.push(t), this._childrenDirty = !0;
278
- }), this;
279
- }
280
- text(e) {
281
- return this.child(new x(e));
282
- }
283
- on(e, t, n) {
284
- if (typeof t != "function") throw TypeError("ViewNode event handler must be a function");
285
- let r = this._events.get(e);
286
- return this._events.set(e, {
287
- handler: t,
288
- options: n
289
- }), this._el && this._bindDomAdapter(e, r?.options, n), this;
290
- }
291
- off(e) {
292
- this._events.delete(e);
293
- let t = this._domAdapters.get(e);
294
- return t && (t.cleanup(), this._removeCleanup(t.cleanup), this._domAdapters.delete(e)), this;
295
- }
296
- _bindDomAdapter(e, t, n) {
297
- let r = this._domAdapters.get(e);
298
- if (r) {
299
- if (pe(t, n)) return;
300
- r.cleanup(), this._removeCleanup(r.cleanup), this._domAdapters.delete(e);
301
- }
302
- let i = (t) => {
303
- let n = this._events.get(e);
304
- !n || typeof n.handler != "function" || (n.handler.call(this, t), n.options?.once && this.off(e));
305
- }, a = () => {
306
- this._el && this._el.removeEventListener(e, i, n);
307
- };
308
- this._el.addEventListener(e, i, n), this._domAdapters.set(e, { cleanup: a }), this._cleanup.push(a);
309
- }
310
- _removeCleanup(e) {
311
- let t = this._cleanup.indexOf(e);
312
- t !== -1 && this._cleanup.splice(t, 1);
313
- }
314
- registerStateAttrs(...e) {
315
- return e.forEach((e) => {
316
- if (typeof e == "string") {
317
- this._stateTypes[e] = "boolean";
318
- return;
319
- }
320
- e && typeof e == "object" && Object.entries(e).forEach(([e, t]) => {
321
- this._stateTypes[e] = t || "boolean";
322
- });
323
- }), this;
324
- }
325
- registerStateHandler(e, t) {
326
- return this._stateHandlers.has(e) || this._stateHandlers.set(e, []), this._stateHandlers.get(e).push(t), this;
327
- }
328
- setState(e, t = !0) {
329
- let n = this._states[e];
330
- return this._states[e] = t, (this._stateHandlers.get(e) || []).forEach((e) => e(t, this, n)), this;
331
- }
332
- getState(e) {
333
- return this._states[e];
334
- }
335
- getBooleanState(e) {
336
- return !!this.getState(e);
337
- }
338
- getStringState(e) {
339
- let t = this.getState(e);
340
- return t == null ? "" : String(t);
341
- }
342
- getNumberState(e) {
343
- return Number(this.getState(e) || 0);
344
- }
345
- renderDom() {
346
- return null;
347
- }
348
- commit() {
349
- return this.renderDom();
350
- }
351
- _commitChildren() {
352
- this._pendingRemovals.forEach((e) => e.destroy()), this._pendingRemovals.clear(), this._childrenDirty = !1;
353
- }
354
- bindTo(e) {
355
- let t = le(e), n = this.renderDom();
356
- return t && n && t.appendChild(n), this;
357
- }
358
- destroy() {
359
- return u() && (ee({
360
- type: "destroy",
361
- node: this
362
- }), te(this)), this._deleted = !0, this._cleanup.forEach((e) => e()), this._cleanup = [], this._children.forEach((e) => e.destroy()), this._pendingRemovals.forEach((e) => e.destroy()), this._pendingRemovals.clear(), this._children = [], this._childKeys.clear(), this._el?.parentNode && this._el.parentNode.removeChild(this._el), this;
363
- }
364
- toHTML() {
365
- return "";
366
- }
367
- hydrateSnapshot() {
368
- return this;
369
- }
370
- }, x = class extends b {
371
- constructor(e = "") {
372
- if (super(null), this._content = "", this._textNode = null, typeof e == "function") {
373
- _("text", null, e, (e) => this.textContent(e));
374
- return;
375
- }
376
- this._content = String(e);
377
- }
378
- textContent(e) {
379
- if (e === void 0) return this._content;
380
- if (typeof e == "function") return _("text", null, e, (e) => this.textContent(e)), this;
381
- let t = this._content;
382
- return this._content = String(e), this._textNode && (this._textNode.textContent = this._content), this._textNode && u() && !Object.is(t, this._content) && f(this, "text", {
383
- from: t,
384
- to: this._content
385
- }), this;
386
- }
387
- renderDom() {
388
- return this._deleted || this._permissionState() === "hidden" ? null : (this._textNode || (this._textNode = document.createTextNode(this._content), this._el = this._textNode), this._textNode);
389
- }
390
- toHTML() {
391
- return this._deleted || this._permissionState() === "hidden" ? "" : v(this._content);
392
- }
393
- }, me = class extends b {
394
- constructor(e) {
395
- super(null), this._component = e, this._resolved = null, this._resolvedList = null, this._roots = null, this._fragmentDom = null;
396
- }
397
- _resolve() {
398
- if (this._resolvedList) return this._resolved;
399
- let e = a(this._accessContext || s(), () => typeof this._component == "function" ? this._component() : this._component.render()), t = Array.isArray(e) ? e.slice() : [e];
400
- return t.forEach((e) => {
401
- if (!(e instanceof b)) throw TypeError("Component render must return a ViewNode or an array of ViewNodes");
402
- }), this._resolvedList = t, this._resolved = t[0] || null, this._roots = Array.isArray(e) ? t : null, this._component && typeof this._component == "object" && typeof this._component._attachHost == "function" && this._component._attachHost(this), this._resolved;
403
- }
404
- _resolveList() {
405
- return this._resolve(), this._resolvedList || [];
406
- }
407
- _replaceResolved(e) {
408
- let t = this._resolvedList || [], n = Array.isArray(e) ? e.slice() : [e];
409
- if (n.forEach((e) => {
410
- if (!(e instanceof b)) throw TypeError("Component render must return a ViewNode or an array of ViewNodes");
411
- }), t.length === n.length && t.every((e, t) => e === n[t])) return;
412
- let r = [];
413
- if (this._fragmentDom && this._fragmentDom.length > 0) r.push(...this._fragmentDom);
414
- else if (t.length > 0) {
415
- let e = t[0]._el;
416
- e && e.parentNode && r.push(e);
417
- }
418
- if (this._resolvedList = n, this._resolved = n[0] || null, this._roots = Array.isArray(e) ? n : null, this._fragmentDom = null, r.length === 0) {
419
- t.forEach((e) => e.destroy());
420
- return;
421
- }
422
- let i = m(), a = r[0].parentNode, o = [];
423
- n.forEach((e) => {
424
- let t = h(this._access ?? i, () => e.renderDom());
425
- t && o.push(t);
426
- }), o.length > 0 && a && o.forEach((e) => a.insertBefore(e, r[0])), r.forEach((e) => {
427
- e.parentNode === a && a.removeChild(e);
428
- }), this._roots ? this._fragmentDom = o : this._el = o[0] || null, t.forEach((e) => e.destroy());
429
- }
430
- children() {
431
- return this._resolvedList ? this._roots ? this._resolvedList.flatMap((e) => e.children()) : this._resolvedList[0] ? this._resolvedList[0].children() : [] : [];
432
- }
433
- textContent() {
434
- return this._resolveList().map((e) => typeof e.textContent == "function" ? e.textContent() : "").join("");
435
- }
436
- renderDom() {
437
- if (this._deleted || this._permissionState() === "hidden") return null;
438
- let e = m(), t = this._resolveList();
439
- if (this._roots) {
440
- if (this._fragmentDom) return null;
441
- let n = [];
442
- t.forEach((t) => {
443
- let r = h(this._access ?? e, () => t.renderDom());
444
- r && n.push(r);
445
- }), this._fragmentDom = n;
446
- let r = document.createDocumentFragment();
447
- return n.forEach((e) => r.appendChild(e)), r;
448
- }
449
- let n = t[0];
450
- return h(this._access ?? e, () => {
451
- let e = n.renderDom();
452
- return this._el = e, e;
453
- });
454
- }
455
- toHTML() {
456
- if (this._deleted || this._permissionState() === "hidden") return "";
457
- let e = m(), t = this._resolveList();
458
- return h(this._access ?? e, () => t.map((e) => e.toHTML()).join(""));
459
- }
460
- destroy() {
461
- return this._component && typeof this._component == "object" && typeof this._component.destroy == "function" && this._component.destroy(), (this._resolvedList || []).forEach((e) => e.destroy()), this._fragmentDom = null, super.destroy();
462
- }
463
- };
464
- function he(e = "") {
465
- return new x(e);
466
- }
467
- function S(e) {
468
- if (e instanceof b) return e;
469
- if (typeof e == "function" || e && typeof e == "object" && typeof e.render == "function") return new me(e);
470
- if (typeof e == "string" || typeof e == "number") return new x(e);
471
- throw TypeError("ViewNode child must be a ViewNode, component, string, or number");
472
- }
473
- function ge(e = null, t = null, n = null) {
474
- return typeof t == "function" && n == null ? {
475
- first: e,
476
- options: null,
477
- callback: t
478
- } : {
479
- first: e,
480
- options: t,
481
- callback: n
482
- };
483
- }
484
- function _e(e, t) {
485
- return !t || typeof t != "object" || Array.isArray(t) ? e : (t.attrs && typeof e.attr == "function" && e.attr(t.attrs), t.style && typeof e.styles == "function" && e.styles(t.style), e);
486
- }
487
- var C = class extends b {
488
- constructor(e, t = null) {
489
- super(null), this._tagName = e, this._attrs = {}, this._styles = {}, this._classes = /* @__PURE__ */ new Set(), this._el = null, t !== null && this.setup(t);
490
- }
491
- _setupObject(e) {
492
- Object.entries(e).forEach(([e, t]) => {
493
- if (e === "class" || e === "className") {
494
- this.className(t);
495
- return;
496
- }
497
- if (e === "attrs") {
498
- this.attr(t);
499
- return;
500
- }
501
- if (e === "style") {
502
- this.styles(t);
503
- return;
504
- }
505
- if (e === "children") {
506
- this.child(t);
507
- return;
508
- }
509
- if (e.startsWith("on") && typeof t == "function") {
510
- this.on(e.slice(2).toLowerCase(), t);
511
- return;
512
- }
513
- if (typeof this[e] == "function") {
514
- this[e](t);
515
- return;
516
- }
517
- typeof t != "function" && this.attr(e, t);
518
- });
519
- }
520
- tagName() {
521
- return this._tagName;
522
- }
523
- textContent() {
524
- return this._children.map((e) => typeof e.textContent == "function" ? e.textContent() : "").join("");
525
- }
526
- attr(e, t) {
527
- if (t === void 0 && typeof e == "string") return this._attrs[e];
528
- if (e && typeof e == "object") return Object.entries(e).forEach(([e, t]) => this.attr(e, t)), this;
529
- if (typeof t == "function") return _("attr", e, t, (t) => this.attr(e, t)), this;
530
- let n = this._attrs[e];
531
- return t == null || t === !1 ? delete this._attrs[e] : this._attrs[e] = t, this._el && ue(this._el, e, t), this._el && u() && !this._devtoolsRendering && !Object.is(n, t) && f(this, "attr", {
532
- name: e,
533
- previous: n,
534
- next: t
535
- }), this;
536
- }
537
- id(e) {
538
- return e === void 0 ? this.attr("id") : this.attr("id", e);
539
- }
540
- name(e) {
541
- return e === void 0 ? this.attr("name") : this.attr("name", e);
542
- }
543
- className(...e) {
544
- return e.length === 0 ? [...this._classes].join(" ") : (e.flat(Infinity).forEach((e) => {
545
- e && String(e).split(/\s+/).filter(Boolean).forEach((e) => this._classes.add(e));
546
- }), this._syncClassName(), this);
547
- }
548
- class(...e) {
549
- return this.className(...e);
550
- }
551
- replaceClassName(e, t, n = !1) {
552
- return !e || !t || e === t ? this : this._classes.has(e) ? (this._classes.delete(e), this.className(t)) : n ? this.className(t) : this;
553
- }
554
- style(e, t) {
555
- if (t === void 0 && typeof e == "string") return this._styles[e];
556
- if (e && typeof e == "object") return this.styles(e);
557
- if (typeof t == "function") return _("style", e, t, (t) => this.style(e, t)), this;
558
- let n = this._styles[e];
559
- return t == null || t === "" ? delete this._styles[e] : this._styles[e] = t, this._el && (this._el.style[e] = t || ""), this._el && u() && !this._devtoolsRendering && !Object.is(n, t) && f(this, "style", {
560
- name: e,
561
- previous: n,
562
- next: t
563
- }), this;
564
- }
565
- styles(e) {
566
- return Object.entries(e || {}).forEach(([e, t]) => this.style(e, t)), this;
567
- }
568
- child(...e) {
569
- let t = this._el && u() && !this._devtoolsRendering ? [] : null;
570
- return e.flat(Infinity).forEach((e) => {
571
- if (e == null) return;
572
- let n = S(e);
573
- if (this._pendingRemovals.delete(n), this._children.push(n), this._childrenDirty = !0, this._el) {
574
- let e = h(this._access ?? m(), () => n.renderDom());
575
- e && e.parentNode !== this._el && this._el.appendChild(e), t && t.push(d(n));
576
- }
577
- }), t && t.length > 0 && f(this, "child", { added: t }), this;
578
- }
579
- _applyAccessState(e) {
580
- if (e === "readonly") {
581
- this._accessAttrsApplied = !0;
582
- let e = this._tagName;
583
- ae.has(e) && this.attr("disabled", !0), oe.has(e) && this.attr("readonly", !0), this.attr("aria-disabled", "true");
584
- return;
585
- }
586
- this._accessAttrsApplied && (this._accessAttrsApplied = !1, this.attr("disabled", null), this.attr("readonly", null), this.attr("aria-disabled", null));
587
- }
588
- renderDom() {
589
- if (this._deleted) return null;
590
- let e = this._permissionState();
591
- if (e === "hidden") return null;
592
- let t = this._access ?? m();
593
- u() && (this._devtoolsRendering = !0);
594
- try {
595
- return this._el || (this._el = document.createElement(this._tagName), h(t, () => this._applySnapshotToElement())), this._applyAccessState(e), this._commitChildren(), this._children.forEach((e) => {
596
- h(t, () => {
597
- let t = e.renderDom();
598
- t && t.parentNode !== this._el ? this._el.appendChild(t) : !t && e._el && e._el.parentNode === this._el && this._el.removeChild(e._el);
599
- });
600
- }), u() && re(this), this._el;
601
- } finally {
602
- this._devtoolsRendering = !1;
603
- }
604
- }
605
- toHTML() {
606
- if (this._deleted) return "";
607
- let e = this._permissionState();
608
- return e === "hidden" ? "" : (this._applyAccessState(e), h(this._access ?? m(), () => {
609
- let e = this._serializeAttributes(), t = e ? `<${this._tagName} ${e}>` : `<${this._tagName}>`;
610
- return ce.has(this._tagName) ? t : `${t}${this._children.map((e) => e.toHTML()).join("")}</${this._tagName}>`;
611
- }));
612
- }
613
- _applyBindingsToElement() {
614
- Object.entries(this._attrs).forEach(([e, t]) => ue(this._el, e, t)), this._syncClassName(), Object.entries(this._styles).forEach(([e, t]) => {
615
- this._el.style[e] = t;
616
- }), this._events.forEach((e, t) => {
617
- this._bindDomAdapter(t, void 0, e.options);
618
- });
619
- }
620
- _applySnapshotToElement() {
621
- this._applyBindingsToElement(), this._children.forEach((e) => {
622
- let t = e.renderDom();
623
- t && this._el.appendChild(t);
624
- });
625
- }
626
- _syncClassName() {
627
- let e = this._attrs.class, t = [...this._classes].join(" ");
628
- t ? this._attrs.class = t : delete this._attrs.class, this._el && (t ? this._el.className = t : this._el.removeAttribute("class"), u() && !this._devtoolsRendering && !Object.is(e, t) && f(this, "attr", {
629
- name: "class",
630
- previous: e,
631
- next: t || void 0
632
- }));
633
- }
634
- _serializeAttributes() {
635
- let e = { ...this._attrs }, t = this._serializeStyles();
636
- return t && (e.style = e.style ? `${e.style}; ${t}` : t), Object.entries(e).filter(([, e]) => e != null && e !== !1).map(([e, t]) => t === !0 || y(e) ? `${e}="${e}"` : `${e}="${v(t)}"`).join(" ");
637
- }
638
- _serializeStyles() {
639
- return de(this._styles);
640
- }
641
- };
642
- function ve(e, t = C) {
643
- return function(n = null, r = null, i = null) {
644
- let a = ge(n, r, i), o = new t(e, a.first);
645
- return _e(o, a.options), typeof a.callback == "function" && a.callback(o), o;
646
- };
647
- }
648
- function w(e, t, n = {}) {
649
- let { override: r = !1 } = n;
650
- Object.entries(t).forEach(([t, n]) => {
651
- !r && e.prototype[t] || (e.prototype[t] = function(...e) {
652
- return this.child(n(...e));
653
- });
654
- });
655
- }
656
- //#endregion
657
- //#region src/core/client-only.js
658
- var ye = class extends b {
659
- constructor(e) {
660
- super(null), this._loader = e, this._resolved = null;
661
- }
662
- _resolve() {
663
- return this._resolved ||= T(this._loader), this._resolved;
664
- }
665
- toHTML() {
666
- return this._deleted ? "" : "<div class=\"yoya-client-only\" data-client-only=\"true\"></div>";
667
- }
668
- renderDom() {
669
- if (this._deleted) return null;
670
- let e = this._resolve().renderDom();
671
- return this._el && this._el !== e && this._el.parentNode && this._el.parentNode.replaceChild(e, this._el), this._el = e, e;
672
- }
673
- children() {
674
- return this._resolved ? this._resolved.children() : [];
675
- }
676
- textContent() {
677
- return this._resolved && typeof this._resolved.textContent == "function" ? this._resolved.textContent() : "";
678
- }
679
- destroy() {
680
- return this._resolved && this._resolved.destroy(), super.destroy();
681
- }
682
- };
683
- function be(e) {
684
- return new ye(e);
685
- }
686
- function T(e) {
687
- if (e instanceof b) return e;
688
- if (typeof e == "function") return T(e());
689
- if (e && typeof e.render == "function") return T(e.render());
690
- throw TypeError("vClientOnly loader must return a ViewNode or a component object");
691
- }
692
- //#endregion
693
- //#region src/core/document-events.js
694
- function xe(e, t, n = void 0) {
695
- return typeof document > "u" ? () => {} : (document.addEventListener(e, t, n), () => {
696
- document.removeEventListener(e, t, n);
697
- });
698
- }
699
- function Se(e, t, n = void 0) {
700
- typeof document > "u" || document.removeEventListener(e, t, n);
701
- }
702
- function Ce(e, t, n = void 0) {
703
- return typeof window > "u" ? () => {} : (window.addEventListener(e, t, n), () => {
704
- window.removeEventListener(e, t, n);
705
- });
706
- }
707
- function we(e, t = null) {
708
- if (typeof document > "u") return null;
709
- if (t) {
710
- let e = document.querySelector(`[${t}]`);
711
- if (e) return e;
712
- }
713
- let n = document.createElement("style");
714
- return t && n.setAttribute(t, ""), n.textContent = e, document.head?.appendChild(n), n;
715
- }
716
- //#endregion
717
- //#region src/core/i18n.js
718
- var Te = "yoya-ui:i18n", E = /* @__PURE__ */ new Map(), Ee = class {
719
- constructor(e = {}) {
720
- let t = e.language || "zh-CN";
721
- this._key = e.key || null, this._storage = Ge(e.storage), this._storageKey = e.storageKey || null, this._sharedStorageKey = this._key ? Te : null, this._fallbackLanguage = e.fallbackLanguage || t, this._language = this._readStoredLanguage(t), this._messages = {}, this._listeners = /* @__PURE__ */ new Set(), this.registerMessages(e.messages || {}), this._key && Ne(this);
722
- }
723
- key() {
724
- return this._key;
725
- }
726
- getLanguage() {
727
- return this._language;
728
- }
729
- setLanguage(e) {
730
- return !e || e === this._language ? this : (this._language = e, this._persistLanguage(), this._notify(), this);
731
- }
732
- getFallbackLanguage() {
733
- return this._fallbackLanguage;
734
- }
735
- setFallbackLanguage(e) {
736
- return e ? (this._fallbackLanguage = e, this._notify(), this) : this;
737
- }
738
- clearPersistedLanguage() {
739
- if (!this._storageKey) {
740
- if (!this._sharedStorageKey) return this;
741
- let e = A(this._storage, this._sharedStorageKey);
742
- return delete e[this._key], j(this._storage, this._sharedStorageKey, e), this;
743
- }
744
- try {
745
- this._storage.removeItem(this._storageKey);
746
- } catch {}
747
- return this;
748
- }
749
- registerLocale(e, t) {
750
- if (!e || typeof t != "function") return Promise.reject(/* @__PURE__ */ TypeError("registerLocale requires a language name and a loader"));
751
- let n;
752
- try {
753
- n = t();
754
- } catch (e) {
755
- return Promise.reject(e);
756
- }
757
- return Promise.resolve(n).then((t) => (this.register(e, t || {}), this));
758
- }
759
- register(e, t = {}) {
760
- return e ? (R(t).forEach((t) => {
761
- this._messages[e] = F(this._messages[e] || {}, t);
762
- }), this._notify(), this) : this;
763
- }
764
- registerMessages(e = {}) {
765
- return L(e).forEach((e) => {
766
- if (e.language) {
767
- this.register(e.language, e.messages || {});
768
- return;
769
- }
770
- Object.entries(e).forEach(([e, t]) => {
771
- this.register(e, t);
772
- });
773
- }), this;
774
- }
775
- t(e, t = {}, n = void 0) {
776
- let r = M(this._messages[this._language], e) ?? M(this._messages[this._fallbackLanguage], e) ?? n ?? e;
777
- return N(typeof r == "function" ? r(t, this) : r, t, this);
778
- }
779
- text(e, t = {}, n = void 0) {
780
- return new De(this, e, t, n);
781
- }
782
- subscribe(e) {
783
- return this._listeners.add(e), () => {
784
- this._listeners.delete(e);
785
- };
786
- }
787
- _readStoredLanguage(e) {
788
- if (this._storageKey) try {
789
- return this._storage.getItem(this._storageKey) || e;
790
- } catch {
791
- return e;
792
- }
793
- return this._sharedStorageKey && A(this._storage, this._sharedStorageKey)[this._key] || e;
794
- }
795
- _persistLanguage() {
796
- if (this._storageKey) {
797
- try {
798
- this._storage.setItem(this._storageKey, this._language);
799
- } catch {}
800
- return;
801
- }
802
- if (this._sharedStorageKey) {
803
- let e = A(this._storage, this._sharedStorageKey);
804
- e[this._key] = this._language, j(this._storage, this._sharedStorageKey, e);
805
- }
806
- }
807
- _notify() {
808
- this._listeners.forEach((e) => e(this));
809
- }
810
- }, De = class extends x {
811
- constructor(e, t, n = {}, r = void 0) {
812
- super(e.t(t, n, r)), this._i18n = e, this._key = t, this._params = n || {}, this._defaultValue = r, this._unsubscribe = e.subscribe(() => this.refresh());
813
- }
814
- key(e) {
815
- return e === void 0 ? this._key : (this._key = e, this.refresh());
816
- }
817
- params(e) {
818
- return e === void 0 ? { ...this._params } : (this._params = e || {}, this.refresh());
819
- }
820
- defaultValue(e) {
821
- return e === void 0 ? this._defaultValue : (this._defaultValue = e, this.refresh());
822
- }
823
- refresh() {
824
- return this.textContent(this._i18n.t(this._key, this._params, this._defaultValue)), this;
825
- }
826
- destroy() {
827
- return this._unsubscribe &&= (this._unsubscribe(), null), super.destroy();
828
- }
829
- };
830
- function Oe(e = {}) {
831
- return new Ee(e);
832
- }
833
- var D = Oe();
834
- function ke(e, t = {}) {
835
- return D.text(e, t);
836
- }
837
- var O = D;
838
- function Ae(e = D) {
839
- return O = e, String.prototype._yoyaUiStringShortcutInstalled ? e : (Object.defineProperty(String.prototype, "_yoyaUiStringShortcutInstalled", {
840
- configurable: !0,
841
- enumerable: !1,
842
- value: !0
843
- }), Object.defineProperty(String.prototype, "s", {
844
- configurable: !0,
845
- enumerable: !1,
846
- value: function(e, t, n) {
847
- let r = String(this), i = {}, a = O;
848
- return Me(t) ? a = t : typeof t == "string" ? a = k(t) || O : (i = t || {}, Me(n) ? a = n : typeof n == "string" && (a = k(n) || O)), a.text(e || r, i, r);
849
- }
850
- }), e);
851
- }
852
- function je(e, t) {
853
- let n = O;
854
- O = e || n;
855
- try {
856
- return t();
857
- } finally {
858
- O = n;
859
- }
860
- }
861
- function Me(e) {
862
- return !!(e && typeof e.text == "function");
863
- }
864
- function Ne(e) {
865
- let t = e?.key?.();
866
- return t ? (E.set(t, e), () => {
867
- E.get(t) === e && E.delete(t);
868
- }) : () => {};
869
- }
870
- function Pe(e) {
871
- let t = typeof e == "string" ? e : e?.key?.();
872
- return t && E.delete(t), t;
873
- }
874
- function k(e) {
875
- return e && E.get(e) || null;
876
- }
877
- function Fe() {
878
- return new Map(E);
879
- }
880
- function Ie(e) {
881
- return A(e || Ge(), Te);
882
- }
883
- function A(e, t) {
884
- if (!e) return {};
885
- try {
886
- let n = e.getItem(t);
887
- if (!n) return {};
888
- let r = JSON.parse(n);
889
- return r && typeof r == "object" ? r : {};
890
- } catch {
891
- return {};
892
- }
893
- }
894
- function j(e, t, n) {
895
- if (e) try {
896
- e.setItem(t, JSON.stringify(n));
897
- } catch {}
898
- }
899
- Ae(D);
900
- function M(e, t) {
901
- if (!(!e || !t)) return Object.prototype.hasOwnProperty.call(e, t) ? e[t] : String(t).split(".").reduce((e, t) => {
902
- if (e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, t)) return e[t];
903
- }, e);
904
- }
905
- function N(e, t, n) {
906
- let r = String(e), i = [], a = 0;
907
- for (; a < r.length;) {
908
- let e = r.charAt(a);
909
- if (e === "{") {
910
- let e = Le(r, a), o = r.slice(a + 1, e).trim();
911
- i.push(Re(o, t, n, r.slice(a, e + 1))), a = e + 1;
912
- } else i.push(e), a += 1;
913
- }
914
- return i.join("");
915
- }
916
- function Le(e, t) {
917
- let n = 0;
918
- for (let r = t; r < e.length; r += 1) {
919
- let t = e.charAt(r);
920
- if (t === "{") n += 1;
921
- else if (t === "}" && (--n, n === 0)) return r;
922
- }
923
- return e.length - 1;
924
- }
925
- function Re(e, t, n, r) {
926
- let i = ze(e);
927
- if (i.length === 1) return P(t, i[0], r);
928
- let [a, o, ...s] = i, c = P(t, a, void 0);
929
- if (c == null) return r;
930
- let l = n?.getLanguage?.() || "zh-CN";
931
- if (/^number$/i.test(o || "")) return He(c, l);
932
- if (/^date$/i.test(o || "")) return We(c, l, s[0]);
933
- if (/^plural$/i.test(o || "")) {
934
- let e = Ve(c, l), a = Be(i.slice(2).join(","));
935
- return N(a[`=${c}`] ?? a[e] ?? a.other ?? r, t, n);
936
- }
937
- return r;
938
- }
939
- function ze(e) {
940
- let t = [], n = 0, r = "";
941
- for (let i of String(e)) i === "{" ? n += 1 : i === "}" && --n, i === "," && n === 0 ? (t.push(r.trim()), r = "") : r += i;
942
- return r && t.push(r.trim()), t;
943
- }
944
- function P(e, t, n) {
945
- let r = e?.[t];
946
- return r === void 0 ? n : r;
947
- }
948
- function Be(e) {
949
- let t = {}, n = /([^\s{}]+)\s*\{([^{}]*(?:\{[^{}]*\}[^{}]*)*)\}/g, r;
950
- for (; r = n.exec(e);) t[r[1].trim()] = r[2].trim();
951
- return t;
952
- }
953
- function Ve(e, t) {
954
- let n = Number(e);
955
- if (typeof Intl > "u" || typeof Intl.PluralRules != "function") return n === 1 ? "one" : "other";
956
- try {
957
- return new Intl.PluralRules(t).select(n);
958
- } catch {
959
- return n === 1 ? "one" : "other";
960
- }
961
- }
962
- function He(e, t) {
963
- if (typeof Intl > "u" || typeof Intl.NumberFormat != "function") return String(e);
964
- try {
965
- return new Intl.NumberFormat(t).format(e);
966
- } catch {
967
- return String(e);
968
- }
969
- }
970
- var Ue = /* @__PURE__ */ new Set([
971
- "full",
972
- "long",
973
- "medium",
974
- "short"
975
- ]);
976
- function We(e, t, n = "medium") {
977
- if (typeof Intl > "u" || typeof Intl.DateTimeFormat != "function") return String(e);
978
- try {
979
- return new Intl.DateTimeFormat(t, { dateStyle: Ue.has(n) ? n : "medium" }).format(new Date(e));
980
- } catch {
981
- return String(e);
982
- }
983
- }
984
- function F(e, t) {
985
- let n = { ...e };
986
- return Object.entries(t || {}).forEach(([e, t]) => {
987
- I(t) && I(n[e]) ? n[e] = F(n[e], t) : n[e] = t;
988
- }), n;
989
- }
990
- function I(e) {
991
- return Object.prototype.toString.call(e) === "[object Object]";
992
- }
993
- function L(e) {
994
- return Array.isArray(e) ? e.flatMap((e) => L(e)) : [e || {}];
995
- }
996
- function R(e) {
997
- return Array.isArray(e) ? e.flatMap((e) => R(e)) : [e || {}];
998
- }
999
- function Ge(e) {
1000
- if (e) return e;
1001
- try {
1002
- if (typeof globalThis < "u" && globalThis.localStorage) return globalThis.localStorage;
1003
- } catch {}
1004
- return Ke();
1005
- }
1006
- var z = /* @__PURE__ */ new Map();
1007
- function Ke() {
1008
- return {
1009
- getItem(e) {
1010
- return z.has(e) ? z.get(e) : null;
1011
- },
1012
- setItem(e, t) {
1013
- z.set(e, String(t));
1014
- },
1015
- removeItem(e) {
1016
- z.delete(e);
1017
- }
1018
- };
1019
- }
1020
- //#endregion
1021
- //#region src/core/context.js
1022
- var B = [], V = null;
1023
- function qe(e, t) {
1024
- if (!e || typeof e != "object") return t();
1025
- B.push(e);
1026
- try {
1027
- return t();
1028
- } finally {
1029
- B.pop();
1030
- }
1031
- }
1032
- function Je(e) {
1033
- return V = e && typeof e == "object" ? e : null, V;
1034
- }
1035
- function Ye() {
1036
- return V = null, null;
1037
- }
1038
- function Xe(e, t = void 0) {
1039
- for (let t = B.length - 1; t >= 0; --t) {
1040
- let n = B[t];
1041
- if (n && Object.prototype.hasOwnProperty.call(n, e)) return n[e];
1042
- }
1043
- return V && Object.prototype.hasOwnProperty.call(V, e) ? V[e] : t;
1044
- }
1045
- function Ze() {
1046
- let e = { ...V || {} };
1047
- return B.forEach((t) => Object.assign(e, t)), e;
1048
- }
1049
- //#endregion
1050
- //#region src/core/devtools.js
1051
- var Qe = !1, H = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new Map(), et = 1;
1052
- function tt() {
1053
- return Qe;
1054
- }
1055
- function nt(e) {}
1056
- function rt(e) {
1057
- let t = H.get(e);
1058
- return t === void 0 && (t = et, et += 1, H.set(e, t)), $e.set(t, e), t;
1059
- }
1060
- function it(e) {
1061
- let t = H.get(e);
1062
- t !== void 0 && $e.delete(t);
1063
- }
1064
- function at(e) {
1065
- let t = Ze();
1066
- e._devtoolsContext = Object.keys(t).length > 0 ? t : null;
1067
- }
1068
- function ot(e) {
1069
- return rt(e);
1070
- }
1071
- function st(e, t, n) {}
1072
- function ct(e) {}
1073
- var lt = Symbol.for("yoya.devtools.bridge");
1074
- function ut() {
1075
- typeof globalThis > "u" || (globalThis[lt] = {
1076
- captureScope: at,
1077
- commit: ct,
1078
- emit: nt,
1079
- enabled: () => Qe,
1080
- ensureId: ot,
1081
- notify: st,
1082
- unregister: it
1083
- });
1084
- }
1085
- ut();
1086
- //#endregion
1087
- //#region src/core/state-node.js
1088
- var dt = /* @__PURE__ */ new Set([
1089
- "state",
1090
- "render",
1091
- "update"
1092
- ]), ft = /* @__PURE__ */ new Set([
1093
- "_attachHost",
1094
- "destroy",
1095
- "getState",
1096
- "setState",
1097
- "subscribe"
1098
- ]);
1099
- function pt(e = {}) {
1100
- if (typeof e.render != "function") throw TypeError("vStateNode requires a render function");
1101
- let t = typeof e.state == "function" ? e.state() : { ...e.state || {} }, n = /* @__PURE__ */ new Set(), r = !1, i = null, a = null, o = [], s = {
1102
- _attachHost(e) {
1103
- return a = e, s;
1104
- },
1105
- destroy() {
1106
- if (r) return s;
1107
- if (r = !0, o = [], n.clear(), a = null, i) {
1108
- let e = i;
1109
- i = null, e.forEach((e) => e.destroy());
1110
- }
1111
- return s;
1112
- },
1113
- getState() {
1114
- return s.state();
1115
- },
1116
- render() {
1117
- return r || i || c(), l();
1118
- },
1119
- setState(e) {
1120
- if (r || e == null) return s;
1121
- let a = typeof e == "function" ? e({ ...t }) : e;
1122
- if (!a || typeof a != "object") return s;
1123
- let o = /* @__PURE__ */ new Set(), c = tt() ? {} : null;
1124
- return Object.entries(a).forEach(([e, n]) => {
1125
- t[e] !== n && (c && (c[e] = {
1126
- from: t[e],
1127
- to: n
1128
- }), t[e] = n, o.add(e));
1129
- }), o.size > 0 && (i && ee(o), n.forEach((e) => e(t, s)), tt() && c && { ...t }), s;
1130
- },
1131
- state() {
1132
- return { ...t };
1133
- },
1134
- subscribe(e) {
1135
- if (typeof e != "function") throw TypeError("vStateNode subscriber must be a function");
1136
- return n.add(e), () => n.delete(e);
1137
- }
1138
- };
1139
- for (let t of Object.keys(e)) if (!(dt.has(t) || typeof e[t] != "function")) {
1140
- if (ft.has(t)) throw TypeError(`vStateNode config key "${t}" conflicts with the built-in API`);
1141
- s[t] = e[t];
1142
- }
1143
- return s;
1144
- function c() {
1145
- let n = i || [];
1146
- o = [];
1147
- let r = se({
1148
- bindings: o,
1149
- getState: () => t
1150
- }, () => e.render.call(s, t, s)), c = Array.isArray(r) ? r.slice() : [r];
1151
- if (c.forEach((e) => {
1152
- if (!(e instanceof b)) throw TypeError("vStateNode render must return a ViewNode or an array of ViewNodes");
1153
- }), i = c, u(), a) {
1154
- a._replaceResolved(l());
1155
- return;
1156
- }
1157
- if (n.length > 0) {
1158
- let e = n.length === 1 ? n[0] : null;
1159
- if (e && e._el && e._el.parentNode && c.length === 1) {
1160
- let t = c[0].renderDom();
1161
- t && e._el.parentNode.replaceChild(t, e._el);
1162
- }
1163
- n.forEach((e) => e.destroy());
1164
- }
1165
- }
1166
- function l() {
1167
- return i ? i.length === 1 ? i[0] : i : null;
1168
- }
1169
- function u() {
1170
- o.forEach((e) => {
1171
- let t = e.evaluate();
1172
- (!e.committed || !Object.is(t, e.last)) && (e.committed = !0, e.last = t, e.commit(t));
1173
- });
1174
- }
1175
- function ee(n) {
1176
- return typeof e.update == "function" ? e.update.call(s, t, s, n) === !0 ? (c(), "rebuild") : o.length > 0 ? (u(), "bindings") : "update" : o.length > 0 ? (u(), "bindings") : (c(), "rebuild");
1177
- }
1178
- }
1179
- w(C, { vStateNode: pt });
1180
- //#endregion
1181
- //#region src/core/a11y.js
1182
- var mt = [
1183
- "a[href]",
1184
- "button:not([disabled])",
1185
- "input:not([disabled])",
1186
- "select:not([disabled])",
1187
- "textarea:not([disabled])",
1188
- "[tabindex]:not([tabindex=\"-1\"])"
1189
- ].join(", "), ht = "data-yoya-live";
1190
- function U(e) {
1191
- return !e || typeof e.querySelectorAll != "function" ? [] : Array.from(e.querySelectorAll(mt)).filter((e) => e.getAttribute && e.getAttribute("tabindex") !== "-1");
1192
- }
1193
- function gt(e, t = {}) {
1194
- let { onEscape: n = null, restoreFocus: r = !0 } = t;
1195
- if (typeof document > "u" || !e) return {
1196
- activate() {},
1197
- destroy() {}
1198
- };
1199
- let i = !1, a = null, o = null, s = (t) => {
1200
- if (!i) return;
1201
- if (t.key === "Escape") {
1202
- n && n(t);
1203
- return;
1204
- }
1205
- if (t.key !== "Tab") return;
1206
- let r = U(e);
1207
- if (r.length === 0) {
1208
- t.preventDefault();
1209
- return;
1210
- }
1211
- let a = document.activeElement, o = r.indexOf(a), s;
1212
- s = t.shiftKey ? o <= 0 ? r.length - 1 : o - 1 : o === -1 || o === r.length - 1 ? 0 : o + 1, t.preventDefault(), r[s].focus();
1213
- };
1214
- return {
1215
- activate: () => {
1216
- if (i) return;
1217
- i = !0, a = document.activeElement, o = xe("keydown", s);
1218
- let t = U(e)[0];
1219
- t && t.focus();
1220
- },
1221
- destroy: () => {
1222
- i && (i = !1, o &&= (o(), null), r && a && typeof a.isConnected == "boolean" && a.isConnected && typeof a.focus == "function" && a.focus());
1223
- }
1224
- };
1225
- }
1226
- function _t(e, t = {}) {
1227
- if (typeof document > "u") return null;
1228
- let { politeness: n = "polite", dedupeKey: r = "yoya-announce" } = t, i = document.querySelector(`[${ht}="${r}"]`);
1229
- return i || (i = document.createElement("div"), i.setAttribute(ht, r), i.setAttribute("aria-live", n), i.setAttribute("aria-atomic", "true"), i.className = "yoya-a11y-live", i.style.cssText = "position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;padding:0;margin:-1px;", document.body.appendChild(i)), i.textContent = "", queueMicrotask(() => {
1230
- i.textContent = String(e);
1231
- }), i;
1232
- }
1233
- function vt({ key: e, items: t, currentIndex: n = -1, shiftKey: r = !1 }) {
1234
- let i = t?.length || 0;
1235
- if (i === 0) return -1;
1236
- let a = i - 1, o = n >= 0 && n < i ? n : -1;
1237
- return e === "Home" ? 0 : e === "End" ? a : e === "ArrowDown" ? r ? -1 : o === a ? 0 : o + 1 : e === "ArrowUp" ? r || o <= 0 ? a : o - 1 : o;
1238
- }
1239
- //#endregion
1240
- //#region src/core/theme.js
1241
- var W = [
1242
- "light",
1243
- "dark",
1244
- "system"
1245
- ], yt = "yoya-theme-mode", G = "yoya-theme-name";
1246
- function K() {
1247
- return typeof document > "u" ? null : document.documentElement;
1248
- }
1249
- function q() {
1250
- try {
1251
- return typeof localStorage < "u" && localStorage !== null;
1252
- } catch {
1253
- return !1;
1254
- }
1255
- }
1256
- function bt(e = "light", t = {}) {
1257
- let n = W.includes(e) ? e : "light", r = K();
1258
- if (r && (r.dataset.yoyaMode = n), t.persist && q()) try {
1259
- localStorage.setItem(yt, n);
1260
- } catch {}
1261
- return n;
1262
- }
1263
- function J() {
1264
- let e = K(), t = e && e.dataset.yoyaMode;
1265
- return W.includes(t) ? t : "light";
1266
- }
1267
- function xt() {
1268
- let e = J();
1269
- return e === "system" ? typeof window > "u" || typeof window.matchMedia != "function" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : e;
1270
- }
1271
- function St(e = "", t = {}) {
1272
- let n = K();
1273
- if (!e) {
1274
- if (n && delete n.dataset.yoyaTheme, t.persist && q()) try {
1275
- localStorage.removeItem(G);
1276
- } catch {}
1277
- return "";
1278
- }
1279
- if (n && (n.dataset.yoyaTheme = e), t.persist && q()) try {
1280
- localStorage.setItem(G, e);
1281
- } catch {}
1282
- return e;
1283
- }
1284
- function Ct() {
1285
- let e = K();
1286
- return e && e.dataset.yoyaTheme || "";
1287
- }
1288
- function wt(e = {}) {
1289
- let t = e.mode, n = e.theme;
1290
- if (t === void 0 && q()) {
1291
- let e = localStorage.getItem(yt);
1292
- W.includes(e) && (t = e);
1293
- }
1294
- return n === void 0 && q() && (n = localStorage.getItem(G) || ""), t !== void 0 && bt(t, { persist: e.persist }), n !== void 0 && St(n, { persist: e.persist }), {
1295
- mode: J(),
1296
- theme: Ct()
1297
- };
1298
- }
1299
- //#endregion
1300
- //#region src/core/request.js
1301
- var Y = null;
1302
- function Tt({ submit: e } = {}) {
1303
- return Y = typeof e == "function" ? e : null, Y;
1304
- }
1305
- var Et = class {
1306
- method() {
1307
- return "GET";
1308
- }
1309
- headers() {
1310
- return {};
1311
- }
1312
- cookies() {
1313
- return null;
1314
- }
1315
- body() {
1316
- return null;
1317
- }
1318
- params() {
1319
- return {};
1320
- }
1321
- address() {
1322
- return "";
1323
- }
1324
- submit() {
1325
- if (typeof Y != "function") throw Error("RequestBase: 未注册请求传输,请先 configureRequest({ submit })");
1326
- return Y(this);
1327
- }
1328
- }, Dt = class e {
1329
- constructor({ ok: e = !0, code: t = "0", msg: n = null, showType: r = 0, data: i = null, kind: a = "detail", pageNum: o = null, pageSize: s = null, total: c = null } = {}) {
1330
- this.ok = e, this.code = t, this.msg = n, this.showType = r, this.data = i, this.kind = a, this.pageNum = o, this.pageSize = s, this.total = c;
1331
- }
1332
- get isSuccess() {
1333
- return !!this.ok;
1334
- }
1335
- get pages() {
1336
- return this.pageSize > 0 ? Math.ceil((this.total ?? 0) / this.pageSize) : 0;
1337
- }
1338
- static from(t, n = {}) {
1339
- if (!t || t.ok === !1) {
1340
- let e = Error(t?.msg || "请求失败");
1341
- throw e.code = t?.code, e.showType = t?.showType, e;
1342
- }
1343
- let r = t.data, i = Array.isArray(r) && t.pageNum != null, a = Array.isArray(r);
1344
- return new e({
1345
- ok: t.ok,
1346
- code: t.code,
1347
- msg: t.msg,
1348
- showType: t.showType,
1349
- kind: i ? "page" : a ? "list" : "detail",
1350
- data: i || a ? (r ?? []).map((e) => n.toItem ? n.toItem(e) : e) : n.toDetail ? n.toDetail(r) : r,
1351
- pageNum: t.pageNum,
1352
- pageSize: t.pageSize,
1353
- total: t.total
1354
- });
1355
- }
1356
- }, X = class extends C {}, Ot = [
1357
- "a",
1358
- "abbr",
1359
- "address",
1360
- "area",
1361
- "article",
1362
- "aside",
1363
- "audio",
1364
- "b",
1365
- "base",
1366
- "bdi",
1367
- "bdo",
1368
- "blockquote",
1369
- "body",
1370
- "br",
1371
- "button",
1372
- "canvas",
1373
- "caption",
1374
- "cite",
1375
- "code",
1376
- "col",
1377
- "colgroup",
1378
- "data",
1379
- "datalist",
1380
- "dd",
1381
- "del",
1382
- "details",
1383
- "dfn",
1384
- "dialog",
1385
- "div",
1386
- "dl",
1387
- "dt",
1388
- "em",
1389
- "embed",
1390
- "fieldset",
1391
- "figcaption",
1392
- "figure",
1393
- "footer",
1394
- "form",
1395
- "h1",
1396
- "h2",
1397
- "h3",
1398
- "h4",
1399
- "h5",
1400
- "h6",
1401
- "head",
1402
- "header",
1403
- "hgroup",
1404
- "hr",
1405
- "html",
1406
- "i",
1407
- "iframe",
1408
- "img",
1409
- "input",
1410
- "ins",
1411
- "kbd",
1412
- "label",
1413
- "legend",
1414
- "li",
1415
- "link",
1416
- "main",
1417
- "map",
1418
- "mark",
1419
- "menu",
1420
- "meta",
1421
- "meter",
1422
- "nav",
1423
- "noscript",
1424
- "object",
1425
- "ol",
1426
- "optgroup",
1427
- "option",
1428
- "output",
1429
- "p",
1430
- "picture",
1431
- "pre",
1432
- "progress",
1433
- "q",
1434
- "rp",
1435
- "rt",
1436
- "ruby",
1437
- "s",
1438
- "samp",
1439
- "script",
1440
- "search",
1441
- "section",
1442
- "select",
1443
- "selectedcontent",
1444
- "slot",
1445
- "small",
1446
- "source",
1447
- "span",
1448
- "strong",
1449
- {
1450
- name: "style",
1451
- tagName: "style",
1452
- aliases: ["styleTag"]
1453
- },
1454
- "sub",
1455
- "summary",
1456
- "sup",
1457
- "table",
1458
- "tbody",
1459
- "td",
1460
- "template",
1461
- "textarea",
1462
- "tfoot",
1463
- "th",
1464
- "thead",
1465
- "time",
1466
- "title",
1467
- "tr",
1468
- "track",
1469
- "u",
1470
- "ul",
1471
- {
1472
- name: "varTag",
1473
- tagName: "var"
1474
- },
1475
- "video",
1476
- "wbr"
1477
- ];
1478
- function Z() {
1479
- return Ot.reduce((e, t) => {
1480
- let { aliases: n = [], name: r, tagName: i } = Lr(t), a = ve(i, X);
1481
- return e[r] = a, n.forEach((t) => {
1482
- e[t] = a;
1483
- }), e;
1484
- }, {});
1485
- }
1486
- var kt = Z();
1487
- w(X, kt);
1488
- var { a: At, abbr: jt, address: Mt, area: Nt, article: Pt, aside: Ft, audio: It, b: Lt, base: Rt, bdi: zt, bdo: Bt, blockquote: Vt, body: Ht, br: Ut, button: Wt, canvas: Gt, caption: Kt, cite: qt, code: Jt, col: Yt, colgroup: Xt, data: Zt, datalist: Qt, dd: $t, del: en, details: tn, dfn: nn, dialog: rn, div: an, dl: on, dt: sn, em: cn, embed: ln, fieldset: un, figcaption: dn, figure: fn, footer: pn, form: mn, h1: hn, h2: gn, h3: _n, h4: vn, h5: yn, h6: bn, head: xn, header: Sn, hgroup: Cn, hr: wn, html: Tn, i: En, iframe: Dn, img: On, input: kn, ins: An, kbd: jn, label: Mn, legend: Nn, li: Pn, link: Fn, main: In, map: Ln, mark: Rn, menu: zn, meta: Bn, meter: Vn, nav: Hn, noscript: Un, object: Wn, ol: Gn, optgroup: Kn, option: qn, output: Jn, p: Yn, picture: Xn, pre: Zn, progress: Qn, q: $n, rp: er, rt: tr, ruby: nr, s: rr, samp: ir, script: ar, search: or, section: sr, select: cr, selectedcontent: lr, slot: ur, small: dr, source: fr, span: pr, strong: mr, style: hr, styleTag: gr, sub: _r, summary: vr, sup: yr, table: br, tbody: xr, td: Sr, template: Cr, textarea: wr, tfoot: Tr, th: Er, thead: Dr, time: Or, title: kr, tr: Ar, track: jr, u: Mr, ul: Nr, varTag: Pr, video: Fr, wbr: Ir } = kt;
1489
- function Lr(e) {
1490
- return typeof e == "string" ? {
1491
- name: e,
1492
- tagName: e
1493
- } : e;
1494
- }
1495
- //#endregion
1496
- //#region src/svg/icons.js
1497
- function Rr() {
1498
- return $((e) => {
1499
- e.className("yoya-icon").attr({
1500
- "aria-hidden": "true",
1501
- fill: "none",
1502
- stroke: "currentColor",
1503
- "stroke-linecap": "round",
1504
- "stroke-linejoin": "round",
1505
- "stroke-width": "2",
1506
- viewBox: "0 0 24 24"
1507
- }).styles({
1508
- height: "24px",
1509
- width: "24px"
1510
- }), e.path({ d: "M12 5v14" }), e.path({ d: "m19 12-7 7-7-7" });
1511
- });
1512
- }
1513
- function zr() {
1514
- return $((e) => {
1515
- e.className("yoya-icon").attr({
1516
- "aria-hidden": "true",
1517
- fill: "none",
1518
- stroke: "currentColor",
1519
- "stroke-linecap": "round",
1520
- "stroke-linejoin": "round",
1521
- "stroke-width": "2",
1522
- viewBox: "0 0 24 24"
1523
- }).styles({
1524
- height: "24px",
1525
- width: "24px"
1526
- }), e.path({ d: "M19 12H5" }), e.path({ d: "m12 19-7-7 7-7" });
1527
- });
1528
- }
1529
- function Br() {
1530
- return $((e) => {
1531
- e.className("yoya-icon").attr({
1532
- "aria-hidden": "true",
1533
- fill: "none",
1534
- stroke: "currentColor",
1535
- "stroke-linecap": "round",
1536
- "stroke-linejoin": "round",
1537
- "stroke-width": "2",
1538
- viewBox: "0 0 24 24"
1539
- }).styles({
1540
- height: "24px",
1541
- width: "24px"
1542
- }), e.path({ d: "M5 12h14" }), e.path({ d: "m12 5 7 7-7 7" });
1543
- });
1544
- }
1545
- function Vr() {
1546
- return $((e) => {
1547
- e.className("yoya-icon").attr({
1548
- "aria-hidden": "true",
1549
- fill: "none",
1550
- stroke: "currentColor",
1551
- "stroke-linecap": "round",
1552
- "stroke-linejoin": "round",
1553
- "stroke-width": "2",
1554
- viewBox: "0 0 24 24"
1555
- }).styles({
1556
- height: "24px",
1557
- width: "24px"
1558
- }), e.path({ d: "M12 19V5" }), e.path({ d: "m5 12 7-7 7 7" });
1559
- });
1560
- }
1561
- function Hr() {
1562
- return $((e) => {
1563
- e.className("yoya-icon").attr({
1564
- "aria-hidden": "true",
1565
- fill: "none",
1566
- stroke: "currentColor",
1567
- "stroke-linecap": "round",
1568
- "stroke-linejoin": "round",
1569
- "stroke-width": "2",
1570
- viewBox: "0 0 24 24"
1571
- }).styles({
1572
- height: "24px",
1573
- width: "24px"
1574
- }), e.path({ d: "M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9" }), e.path({ d: "M10.3 21a1.94 1.94 0 0 0 3.4 0" });
1575
- });
1576
- }
1577
- function Ur() {
1578
- return $((e) => {
1579
- e.className("yoya-icon").attr({
1580
- "aria-hidden": "true",
1581
- fill: "none",
1582
- stroke: "currentColor",
1583
- "stroke-linecap": "round",
1584
- "stroke-linejoin": "round",
1585
- "stroke-width": "2",
1586
- viewBox: "0 0 24 24"
1587
- }).styles({
1588
- height: "24px",
1589
- width: "24px"
1590
- }), e.rect({
1591
- height: "18",
1592
- rx: "2",
1593
- width: "18",
1594
- x: "3",
1595
- y: "4"
1596
- }), e.path({ d: "M16 2v4" }), e.path({ d: "M8 2v4" }), e.path({ d: "M3 10h18" });
1597
- });
1598
- }
1599
- function Wr() {
1600
- return $((e) => {
1601
- e.className("yoya-icon").attr({
1602
- "aria-hidden": "true",
1603
- fill: "none",
1604
- stroke: "currentColor",
1605
- "stroke-linecap": "round",
1606
- "stroke-linejoin": "round",
1607
- "stroke-width": "2",
1608
- viewBox: "0 0 24 24"
1609
- }).styles({
1610
- height: "24px",
1611
- width: "24px"
1612
- }), e.path({ d: "M20 6 9 17l-5-5" });
1613
- });
1614
- }
1615
- function Gr() {
1616
- return $((e) => {
1617
- e.className("yoya-icon").attr({
1618
- "aria-hidden": "true",
1619
- fill: "none",
1620
- stroke: "currentColor",
1621
- "stroke-linecap": "round",
1622
- "stroke-linejoin": "round",
1623
- "stroke-width": "2",
1624
- viewBox: "0 0 24 24"
1625
- }).styles({
1626
- height: "24px",
1627
- width: "24px"
1628
- }), e.path({ d: "m6 9 6 6 6-6" });
1629
- });
1630
- }
1631
- function Kr() {
1632
- return $((e) => {
1633
- e.className("yoya-icon").attr({
1634
- "aria-hidden": "true",
1635
- fill: "none",
1636
- stroke: "currentColor",
1637
- "stroke-linecap": "round",
1638
- "stroke-linejoin": "round",
1639
- "stroke-width": "2",
1640
- viewBox: "0 0 24 24"
1641
- }).styles({
1642
- height: "24px",
1643
- width: "24px"
1644
- }), e.path({ d: "m15 18-6-6 6-6" });
1645
- });
1646
- }
1647
- function qr() {
1648
- return $((e) => {
1649
- e.className("yoya-icon").attr({
1650
- "aria-hidden": "true",
1651
- fill: "none",
1652
- stroke: "currentColor",
1653
- "stroke-linecap": "round",
1654
- "stroke-linejoin": "round",
1655
- "stroke-width": "2",
1656
- viewBox: "0 0 24 24"
1657
- }).styles({
1658
- height: "24px",
1659
- width: "24px"
1660
- }), e.path({ d: "m9 18 6-6-6-6" });
1661
- });
1662
- }
1663
- function Jr() {
1664
- return $((e) => {
1665
- e.className("yoya-icon").attr({
1666
- "aria-hidden": "true",
1667
- fill: "none",
1668
- stroke: "currentColor",
1669
- "stroke-linecap": "round",
1670
- "stroke-linejoin": "round",
1671
- "stroke-width": "2",
1672
- viewBox: "0 0 24 24"
1673
- }).styles({
1674
- height: "24px",
1675
- width: "24px"
1676
- }), e.path({ d: "m18 15-6-6-6 6" });
1677
- });
1678
- }
1679
- function Yr() {
1680
- return $((e) => {
1681
- e.className("yoya-icon").attr({
1682
- "aria-hidden": "true",
1683
- fill: "none",
1684
- stroke: "currentColor",
1685
- "stroke-linecap": "round",
1686
- "stroke-linejoin": "round",
1687
- "stroke-width": "2",
1688
- viewBox: "0 0 24 24"
1689
- }).styles({
1690
- height: "24px",
1691
- width: "24px"
1692
- }), e.path({ d: "M18 6 6 18" }), e.path({ d: "m6 6 12 12" });
1693
- });
1694
- }
1695
- function Xr() {
1696
- return $((e) => {
1697
- e.className("yoya-icon").attr({
1698
- "aria-hidden": "true",
1699
- fill: "none",
1700
- stroke: "currentColor",
1701
- "stroke-linecap": "round",
1702
- "stroke-linejoin": "round",
1703
- "stroke-width": "2",
1704
- viewBox: "0 0 24 24"
1705
- }).styles({
1706
- height: "24px",
1707
- width: "24px"
1708
- }), e.path({ d: "m16 18 6-6-6-6" }), e.path({ d: "m8 6-6 6 6 6" });
1709
- });
1710
- }
1711
- function Zr() {
1712
- return $((e) => {
1713
- e.className("yoya-icon").attr({
1714
- "aria-hidden": "true",
1715
- fill: "none",
1716
- stroke: "currentColor",
1717
- "stroke-linecap": "round",
1718
- "stroke-linejoin": "round",
1719
- "stroke-width": "2",
1720
- viewBox: "0 0 24 24"
1721
- }).styles({
1722
- height: "24px",
1723
- width: "24px"
1724
- }), e.rect({
1725
- height: "14",
1726
- rx: "2",
1727
- width: "14",
1728
- x: "8",
1729
- y: "8"
1730
- }), e.path({ d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" });
1731
- });
1732
- }
1733
- function Qr() {
1734
- return $((e) => {
1735
- e.className("yoya-icon").attr({
1736
- "aria-hidden": "true",
1737
- fill: "none",
1738
- stroke: "currentColor",
1739
- "stroke-linecap": "round",
1740
- "stroke-linejoin": "round",
1741
- "stroke-width": "2",
1742
- viewBox: "0 0 24 24"
1743
- }).styles({
1744
- height: "24px",
1745
- width: "24px"
1746
- }), e.path({ d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }), e.path({ d: "m7 10 5 5 5-5" }), e.path({ d: "M12 15V3" });
1747
- });
1748
- }
1749
- function $r() {
1750
- return $((e) => {
1751
- e.className("yoya-icon").attr({
1752
- "aria-hidden": "true",
1753
- fill: "none",
1754
- stroke: "currentColor",
1755
- "stroke-linecap": "round",
1756
- "stroke-linejoin": "round",
1757
- "stroke-width": "2",
1758
- viewBox: "0 0 24 24"
1759
- }).styles({
1760
- height: "24px",
1761
- width: "24px"
1762
- }), e.path({ d: "M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z" });
1763
- });
1764
- }
1765
- function ei() {
1766
- return $((e) => {
1767
- e.className("yoya-icon").attr({
1768
- "aria-hidden": "true",
1769
- fill: "none",
1770
- stroke: "currentColor",
1771
- "stroke-linecap": "round",
1772
- "stroke-linejoin": "round",
1773
- "stroke-width": "2",
1774
- viewBox: "0 0 24 24"
1775
- }).styles({
1776
- height: "24px",
1777
- width: "24px"
1778
- }), e.path({ d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }), e.path({ d: "m15 3 6 6" }), e.path({ d: "m21 3-9 9" });
1779
- });
1780
- }
1781
- function ti() {
1782
- return $((e) => {
1783
- e.className("yoya-icon").attr({
1784
- "aria-hidden": "true",
1785
- fill: "none",
1786
- stroke: "currentColor",
1787
- "stroke-linecap": "round",
1788
- "stroke-linejoin": "round",
1789
- "stroke-width": "2",
1790
- viewBox: "0 0 24 24"
1791
- }).styles({
1792
- height: "24px",
1793
- width: "24px"
1794
- }), e.path({ d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }), e.circle({
1795
- cx: "12",
1796
- cy: "12",
1797
- r: "3"
1798
- });
1799
- });
1800
- }
1801
- function ni() {
1802
- return $((e) => {
1803
- e.className("yoya-icon").attr({
1804
- "aria-hidden": "true",
1805
- fill: "none",
1806
- stroke: "currentColor",
1807
- "stroke-linecap": "round",
1808
- "stroke-linejoin": "round",
1809
- "stroke-width": "2",
1810
- viewBox: "0 0 24 24"
1811
- }).styles({
1812
- height: "24px",
1813
- width: "24px"
1814
- }), e.path({ d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }), e.path({ d: "M14 2v4a2 2 0 0 0 2 2h4" });
1815
- });
1816
- }
1817
- function ri() {
1818
- return $((e) => {
1819
- e.className("yoya-icon").attr({
1820
- "aria-hidden": "true",
1821
- fill: "none",
1822
- stroke: "currentColor",
1823
- "stroke-linecap": "round",
1824
- "stroke-linejoin": "round",
1825
- "stroke-width": "2",
1826
- viewBox: "0 0 24 24"
1827
- }).styles({
1828
- height: "24px",
1829
- width: "24px"
1830
- }), e.rect({
1831
- height: "18",
1832
- rx: "2",
1833
- width: "18",
1834
- x: "3",
1835
- y: "3"
1836
- }), e.circle({
1837
- cx: "9",
1838
- cy: "9",
1839
- r: "2"
1840
- }), e.path({ d: "m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21" });
1841
- });
1842
- }
1843
- function ii() {
1844
- return $((e) => {
1845
- e.className("yoya-icon").attr({
1846
- "aria-hidden": "true",
1847
- fill: "none",
1848
- stroke: "currentColor",
1849
- "stroke-linecap": "round",
1850
- "stroke-linejoin": "round",
1851
- "stroke-width": "2",
1852
- viewBox: "0 0 24 24"
1853
- }).styles({
1854
- height: "24px",
1855
- width: "24px"
1856
- }), e.path({ d: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" });
1857
- });
1858
- }
1859
- function ai() {
1860
- return $((e) => {
1861
- e.className("yoya-icon").attr({
1862
- "aria-hidden": "true",
1863
- fill: "none",
1864
- stroke: "currentColor",
1865
- "stroke-linecap": "round",
1866
- "stroke-linejoin": "round",
1867
- "stroke-width": "2",
1868
- viewBox: "0 0 24 24"
1869
- }).styles({
1870
- height: "24px",
1871
- width: "24px"
1872
- }), e.path({ d: "m6 14 1.45-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.55 6a2 2 0 0 1-1.94 1.5H4a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.93a2 2 0 0 1 1.66.9l.82 1.2a2 2 0 0 0 1.66.9H18a2 2 0 0 1 2 2v2" });
1873
- });
1874
- }
1875
- function oi() {
1876
- return $((e) => {
1877
- e.className("yoya-icon").attr({
1878
- "aria-hidden": "true",
1879
- fill: "none",
1880
- stroke: "currentColor",
1881
- "stroke-linecap": "round",
1882
- "stroke-linejoin": "round",
1883
- "stroke-width": "2",
1884
- viewBox: "0 0 24 24"
1885
- }).styles({
1886
- height: "24px",
1887
- width: "24px"
1888
- }), e.path({ d: "M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z" });
1889
- });
1890
- }
1891
- function si() {
1892
- return $((e) => {
1893
- e.className("yoya-icon").attr({
1894
- "aria-hidden": "true",
1895
- fill: "none",
1896
- stroke: "currentColor",
1897
- "stroke-linecap": "round",
1898
- "stroke-linejoin": "round",
1899
- "stroke-width": "2",
1900
- viewBox: "0 0 24 24"
1901
- }).styles({
1902
- height: "24px",
1903
- width: "24px"
1904
- }), e.path({ d: "m3 9.5 9-6.5 9 6.5" }), e.path({ d: "M5 10v10h5v-6h4v6h5V10" });
1905
- });
1906
- }
1907
- function ci() {
1908
- return $((e) => {
1909
- e.className("yoya-icon").attr({
1910
- "aria-hidden": "true",
1911
- fill: "none",
1912
- stroke: "currentColor",
1913
- "stroke-linecap": "round",
1914
- "stroke-linejoin": "round",
1915
- "stroke-width": "2",
1916
- viewBox: "0 0 24 24"
1917
- }).styles({
1918
- height: "24px",
1919
- width: "24px"
1920
- }), e.circle({
1921
- cx: "12",
1922
- cy: "12",
1923
- r: "10"
1924
- }), e.path({ d: "M12 16v-4" }), e.path({ d: "M12 8h.01" });
1925
- });
1926
- }
1927
- function li() {
1928
- return $((e) => {
1929
- e.className("yoya-icon").attr({
1930
- "aria-hidden": "true",
1931
- fill: "none",
1932
- stroke: "currentColor",
1933
- "stroke-linecap": "round",
1934
- "stroke-linejoin": "round",
1935
- "stroke-width": "2",
1936
- viewBox: "0 0 24 24"
1937
- }).styles({
1938
- height: "24px",
1939
- width: "24px"
1940
- }), e.rect({
1941
- height: "11",
1942
- rx: "2",
1943
- width: "18",
1944
- x: "3",
1945
- y: "11"
1946
- }), e.path({ d: "M7 11V7a5 5 0 0 1 10 0v4" });
1947
- });
1948
- }
1949
- function ui() {
1950
- return $((e) => {
1951
- e.className("yoya-icon").attr({
1952
- "aria-hidden": "true",
1953
- fill: "none",
1954
- stroke: "currentColor",
1955
- "stroke-linecap": "round",
1956
- "stroke-linejoin": "round",
1957
- "stroke-width": "2",
1958
- viewBox: "0 0 24 24"
1959
- }).styles({
1960
- height: "24px",
1961
- width: "24px"
1962
- }), e.path({ d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" }), e.path({ d: "m16 17 5-5-5-5" }), e.path({ d: "M21 12H9" });
1963
- });
1964
- }
1965
- function di() {
1966
- return $((e) => {
1967
- e.className("yoya-icon").attr({
1968
- "aria-hidden": "true",
1969
- fill: "none",
1970
- stroke: "currentColor",
1971
- "stroke-linecap": "round",
1972
- "stroke-linejoin": "round",
1973
- "stroke-width": "2",
1974
- viewBox: "0 0 24 24"
1975
- }).styles({
1976
- height: "24px",
1977
- width: "24px"
1978
- }), e.rect({
1979
- height: "16",
1980
- rx: "2",
1981
- width: "20",
1982
- x: "2",
1983
- y: "4"
1984
- }), e.path({ d: "m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" });
1985
- });
1986
- }
1987
- function fi() {
1988
- return $((e) => {
1989
- e.className("yoya-icon").attr({
1990
- "aria-hidden": "true",
1991
- fill: "none",
1992
- stroke: "currentColor",
1993
- "stroke-linecap": "round",
1994
- "stroke-linejoin": "round",
1995
- "stroke-width": "2",
1996
- viewBox: "0 0 24 24"
1997
- }).styles({
1998
- height: "24px",
1999
- width: "24px"
2000
- }), e.path({ d: "M4 6h16" }), e.path({ d: "M4 12h16" }), e.path({ d: "M4 18h16" });
2001
- });
2002
- }
2003
- function pi() {
2004
- return $((e) => {
2005
- e.className("yoya-icon").attr({
2006
- "aria-hidden": "true",
2007
- fill: "none",
2008
- stroke: "currentColor",
2009
- "stroke-linecap": "round",
2010
- "stroke-linejoin": "round",
2011
- "stroke-width": "2",
2012
- viewBox: "0 0 24 24"
2013
- }).styles({
2014
- height: "24px",
2015
- width: "24px"
2016
- }), e.path({ d: "M5 12h14" });
2017
- });
2018
- }
2019
- function mi() {
2020
- return $((e) => {
2021
- e.className("yoya-icon").attr({
2022
- "aria-hidden": "true",
2023
- fill: "none",
2024
- stroke: "currentColor",
2025
- "stroke-linecap": "round",
2026
- "stroke-linejoin": "round",
2027
- "stroke-width": "2",
2028
- viewBox: "0 0 24 24"
2029
- }).styles({
2030
- height: "24px",
2031
- width: "24px"
2032
- }), e.circle({
2033
- cx: "5",
2034
- cy: "12",
2035
- r: "1",
2036
- fill: "currentColor"
2037
- }), e.circle({
2038
- cx: "12",
2039
- cy: "12",
2040
- r: "1",
2041
- fill: "currentColor"
2042
- }), e.circle({
2043
- cx: "19",
2044
- cy: "12",
2045
- r: "1",
2046
- fill: "currentColor"
2047
- });
2048
- });
2049
- }
2050
- function hi() {
2051
- return $((e) => {
2052
- e.className("yoya-icon").attr({
2053
- "aria-hidden": "true",
2054
- fill: "none",
2055
- stroke: "currentColor",
2056
- "stroke-linecap": "round",
2057
- "stroke-linejoin": "round",
2058
- "stroke-width": "2",
2059
- viewBox: "0 0 24 24"
2060
- }).styles({
2061
- height: "24px",
2062
- width: "24px"
2063
- }), e.path({ d: "M5 12h14" }), e.path({ d: "M12 5v14" });
2064
- });
2065
- }
2066
- function gi() {
2067
- return $((e) => {
2068
- e.className("yoya-icon").attr({
2069
- "aria-hidden": "true",
2070
- fill: "none",
2071
- stroke: "currentColor",
2072
- "stroke-linecap": "round",
2073
- "stroke-linejoin": "round",
2074
- "stroke-width": "2",
2075
- viewBox: "0 0 24 24"
2076
- }).styles({
2077
- height: "24px",
2078
- width: "24px"
2079
- }), e.path({ d: "M3 12a9 9 0 0 1 15-6.7L21 8" }), e.path({ d: "M21 3v5h-5" }), e.path({ d: "M21 12a9 9 0 0 1-15 6.7L3 16" }), e.path({ d: "M3 21v-5h5" });
2080
- });
2081
- }
2082
- function _i() {
2083
- return $((e) => {
2084
- e.className("yoya-icon").attr({
2085
- "aria-hidden": "true",
2086
- fill: "none",
2087
- stroke: "currentColor",
2088
- "stroke-linecap": "round",
2089
- "stroke-linejoin": "round",
2090
- "stroke-width": "2",
2091
- viewBox: "0 0 24 24"
2092
- }).styles({
2093
- height: "24px",
2094
- width: "24px"
2095
- }), e.circle({
2096
- cx: "11",
2097
- cy: "11",
2098
- r: "7"
2099
- }), e.path({ d: "m20 20-4-4" });
2100
- });
2101
- }
2102
- function vi() {
2103
- return $((e) => {
2104
- e.className("yoya-icon").attr({
2105
- "aria-hidden": "true",
2106
- fill: "none",
2107
- stroke: "currentColor",
2108
- "stroke-linecap": "round",
2109
- "stroke-linejoin": "round",
2110
- "stroke-width": "2",
2111
- viewBox: "0 0 24 24"
2112
- }).styles({
2113
- height: "24px",
2114
- width: "24px"
2115
- }), e.circle({
2116
- cx: "12",
2117
- cy: "12",
2118
- r: "3"
2119
- }), e.path({ d: "M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2Z" });
2120
- });
2121
- }
2122
- function yi() {
2123
- return $((e) => {
2124
- e.className("yoya-icon").attr({
2125
- "aria-hidden": "true",
2126
- fill: "none",
2127
- stroke: "currentColor",
2128
- "stroke-linecap": "round",
2129
- "stroke-linejoin": "round",
2130
- "stroke-width": "2",
2131
- viewBox: "0 0 24 24"
2132
- }).styles({
2133
- height: "24px",
2134
- width: "24px"
2135
- }), e.path({
2136
- d: "m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z",
2137
- fill: "currentColor",
2138
- stroke: "none"
2139
- });
2140
- });
2141
- }
2142
- function bi() {
2143
- return $((e) => {
2144
- e.className("yoya-icon").attr({
2145
- "aria-hidden": "true",
2146
- fill: "none",
2147
- stroke: "currentColor",
2148
- "stroke-linecap": "round",
2149
- "stroke-linejoin": "round",
2150
- "stroke-width": "2",
2151
- viewBox: "0 0 24 24"
2152
- }).styles({
2153
- height: "24px",
2154
- width: "24px"
2155
- }), e.path({ d: "M3 6h18" }), e.path({ d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }), e.path({ d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }), e.path({ d: "M10 10v6" }), e.path({ d: "M14 10v6" });
2156
- });
2157
- }
2158
- function xi() {
2159
- return $((e) => {
2160
- e.className("yoya-icon").attr({
2161
- "aria-hidden": "true",
2162
- fill: "none",
2163
- stroke: "currentColor",
2164
- "stroke-linecap": "round",
2165
- "stroke-linejoin": "round",
2166
- "stroke-width": "2",
2167
- viewBox: "0 0 24 24"
2168
- }).styles({
2169
- height: "24px",
2170
- width: "24px"
2171
- }), e.path({ d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }), e.path({ d: "m17 8-5-5-5 5" }), e.path({ d: "M12 3v12" });
2172
- });
2173
- }
2174
- function Si() {
2175
- return $((e) => {
2176
- e.className("yoya-icon").attr({
2177
- "aria-hidden": "true",
2178
- fill: "none",
2179
- stroke: "currentColor",
2180
- "stroke-linecap": "round",
2181
- "stroke-linejoin": "round",
2182
- "stroke-width": "2",
2183
- viewBox: "0 0 24 24"
2184
- }).styles({
2185
- height: "24px",
2186
- width: "24px"
2187
- }), e.path({ d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }), e.circle({
2188
- cx: "12",
2189
- cy: "7",
2190
- r: "4"
2191
- });
2192
- });
2193
- }
2194
- function Ci() {
2195
- return $((e) => {
2196
- e.className("yoya-icon").attr({
2197
- "aria-hidden": "true",
2198
- fill: "none",
2199
- stroke: "currentColor",
2200
- "stroke-linecap": "round",
2201
- "stroke-linejoin": "round",
2202
- "stroke-width": "2",
2203
- viewBox: "0 0 24 24"
2204
- }).styles({
2205
- height: "24px",
2206
- width: "24px"
2207
- }), e.path({ d: "M21.73 18 13.34 3.7a2 2 0 0 0-3.44 0L2.27 18A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z" }), e.path({ d: "M12 9v4" }), e.path({ d: "M12 17h.01" });
2208
- });
2209
- }
2210
- function wi() {
2211
- return $((e) => {
2212
- e.className("yoya-icon").attr({
2213
- "aria-hidden": "true",
2214
- fill: "none",
2215
- stroke: "currentColor",
2216
- "stroke-linecap": "round",
2217
- "stroke-linejoin": "round",
2218
- "stroke-width": "2",
2219
- viewBox: "0 0 24 24"
2220
- }).styles({
2221
- height: "24px",
2222
- width: "24px"
2223
- }), e.circle({
2224
- cx: "12",
2225
- cy: "12",
2226
- r: "4"
2227
- }), e.path({ d: "M12 2v2" }), e.path({ d: "M12 20v2" }), e.path({ d: "m4.93 4.93 1.41 1.41" }), e.path({ d: "m17.66 17.66 1.41 1.41" }), e.path({ d: "M2 12h2" }), e.path({ d: "M20 12h2" }), e.path({ d: "m6.34 17.66-1.41 1.41" }), e.path({ d: "m19.07 4.93-1.41 1.41" });
2228
- });
2229
- }
2230
- function Ti() {
2231
- return $((e) => {
2232
- e.className("yoya-icon").attr({
2233
- "aria-hidden": "true",
2234
- fill: "none",
2235
- stroke: "currentColor",
2236
- "stroke-linecap": "round",
2237
- "stroke-linejoin": "round",
2238
- "stroke-width": "2",
2239
- viewBox: "0 0 24 24"
2240
- }).styles({
2241
- height: "24px",
2242
- width: "24px"
2243
- }), e.path({ d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" });
2244
- });
2245
- }
2246
- function Ei() {
2247
- return $((e) => {
2248
- e.className("yoya-icon").attr({
2249
- "aria-hidden": "true",
2250
- fill: "none",
2251
- stroke: "currentColor",
2252
- "stroke-linecap": "round",
2253
- "stroke-linejoin": "round",
2254
- "stroke-width": "2",
2255
- viewBox: "0 0 24 24"
2256
- }).styles({
2257
- height: "24px",
2258
- width: "24px"
2259
- }), e.rect({
2260
- height: "14",
2261
- rx: "2",
2262
- width: "20",
2263
- x: "2",
2264
- y: "3"
2265
- }), e.path({ d: "M8 21h8" }), e.path({ d: "M12 17v4" });
2266
- });
2267
- }
2268
- //#endregion
2269
- //#region src/svg/index.js
2270
- var Di = "http://www.w3.org/2000/svg", Oi = /* @__PURE__ */ new Set([
2271
- "desc",
2272
- "metadata",
2273
- "text",
2274
- "textPath",
2275
- "title",
2276
- "tspan"
2277
- ]), Q = class e extends C {
2278
- setup(e) {
2279
- return typeof e == "string" || typeof e == "number" ? this.child(e) : super.setup(e);
2280
- }
2281
- text(...e) {
2282
- if (Oi.has(this._tagName)) {
2283
- let [t, n] = e;
2284
- return e.length > 0 && this.child(t), n != null && this.setup(n), this;
2285
- }
2286
- return this._svgChild("text", ...e);
2287
- }
2288
- style(...e) {
2289
- let [t, n] = e;
2290
- return this._tagName === "style" && e.length <= 1 ? (e.length === 1 && this.child(t), this) : e.length <= 1 && ki(t) ? this._svgChild("style", t) : super.style(t, n);
2291
- }
2292
- renderDom() {
2293
- return this._deleted ? null : (this._el || (this._el = document.createElementNS(Di, this._tagName), this._applySnapshotToElement()), this._el);
2294
- }
2295
- _syncClassName() {
2296
- let e = [...this._classes].join(" ");
2297
- e ? this._attrs.class = e : delete this._attrs.class, this._el && (e ? this._el.setAttribute("class", e) : this._el.removeAttribute("class"));
2298
- }
2299
- _svgChild(t, ...n) {
2300
- let r = new e(t);
2301
- return n.forEach((e) => {
2302
- e != null && r.setup(e);
2303
- }), this.child(r);
2304
- }
2305
- };
2306
- function ki(e) {
2307
- return e == null || typeof e == "function" || typeof e == "string" || typeof e == "number" || Array.isArray(e);
2308
- }
2309
- var Ai = /* @__PURE__ */ "animate.animateMotion.animateTransform.circle.clipPath.defs.desc.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.foreignObject.g.image.line.linearGradient.marker.mask.metadata.mpath.path.pattern.polygon.polyline.radialGradient.rect.set.stop.a.script.style.switch.text.title.symbol.textPath.tspan.use.view".split(".");
2310
- function ji(e) {
2311
- return function(...t) {
2312
- let n = new Q(e);
2313
- return e === "svg" && n.style("display", "block"), t.forEach((e) => {
2314
- e != null && n.setup(e);
2315
- }), n;
2316
- };
2317
- }
2318
- function Mi() {
2319
- return Ai.reduce((e, t) => {
2320
- let { aliases: n = [], name: r, tagName: i } = Pi(t), a = ji(i);
2321
- return e[r] = a, n.forEach((t) => {
2322
- e[t] = a;
2323
- }), e;
2324
- }, {});
2325
- }
2326
- var $ = ji("svg"), Ni = Mi();
2327
- w(X, { svg: $ }), w(Q, {
2328
- svg: $,
2329
- ...Ni
2330
- });
2331
- function Pi(e) {
2332
- return typeof e == "string" ? {
2333
- name: e,
2334
- tagName: e
2335
- } : e;
2336
- }
2337
- //#endregion
2338
- export { Rr as ArrowDownOutlined, zr as ArrowLeftOutlined, Br as ArrowRightOutlined, Vr as ArrowUpOutlined, Hr as BellOutlined, Ur as CalendarOutlined, Wr as CheckOutlined, Gr as ChevronDownOutlined, Kr as ChevronLeftOutlined, qr as ChevronRightOutlined, Jr as ChevronUpOutlined, ye as ClientOnlyNode, Yr as CloseOutlined, Xr as CodeOutlined, me as ComponentNode, Zr as CopyOutlined, Qr as DownloadOutlined, $r as EditOutlined, C as ElementNode, ei as ExternalOutlined, ti as EyeOutlined, ni as FileOutlined, ai as FolderOpenOutlined, ii as FolderOutlined, oi as HeartOutlined, si as HomeOutlined, X as HtmlElementNode, Ee as I18n, De as I18nTextNode, ri as ImageOutlined, ci as InfoOutlined, li as LockOutlined, ui as LogoutOutlined, di as MailOutlined, fi as MenuOutlined, pi as MinusOutlined, Ei as MonitorOutlined, Ti as MoonOutlined, mi as MoreHorizontalOutlined, hi as PlusOutlined, gi as RefreshOutlined, Et as RequestBase, Dt as Result, Di as SVG_NAMESPACE, _i as SearchOutlined, vi as SettingsOutlined, yi as StarOutlined, wi as SunOutlined, Q as SvgElementNode, x as TextNode, x as VTextNode, x as ViewTextNode, bi as TrashOutlined, xi as UploadOutlined, Si as UserOutlined, b as ViewNode, Ci as WarningOutlined, At as a, jt as abbr, Mt as address, _t as announce, _e as applyElementOptions, Nt as area, Pt as article, Ft as aside, It as audio, Lt as b, Rt as base, zt as bdi, Bt as bdo, xe as bindDocumentEvent, Ce as bindWindowEvent, Vt as blockquote, Ht as body, Ut as br, Wt as button, Gt as canvas, Kt as caption, qt as cite, Ye as clearInstalledContext, Jt as code, Yt as col, Xt as colgroup, Tt as configureRequest, i as createAccess, ve as createElementFactory, gt as createFocusTrap, Z as createHtmlFactories, Oe as createI18n, s as currentAccess, Xe as currentContext, Zt as data, Qt as datalist, $t as dd, en as del, tn as details, nn as dfn, rn as dialog, an as div, on as dl, sn as dt, cn as em, ln as embed, v as escapeHtml, un as fieldset, dn as figcaption, fn as figure, pn as footer, mn as form, U as getFocusableElements, k as getI18n, Ie as getPersistedI18nLocales, J as getYoyaMode, Ct as getYoyaTheme, hn as h1, gn as h2, _n as h3, vn as h4, yn as h5, bn as h6, xn as head, Sn as header, Cn as hgroup, wn as hr, Tn as html, En as i, D as i18n, ke as i18nText, Dn as iframe, On as img, wt as initYoyaTheme, we as injectDocumentStyle, kn as input, An as ins, o as installAccess, Je as installContext, Ae as installI18nStringShortcut, jn as kbd, Mn as label, Nn as legend, Pn as li, Fn as link, Fe as listI18n, In as main, Ln as map, Rn as mark, zn as menu, Bn as meta, Vn as meter, vt as moveByKey, Hn as nav, S as normalizeChild, ge as normalizeSetupArguments, Un as noscript, Wn as object, Gn as ol, Kn as optgroup, qn as option, Jn as output, Yn as p, n as parseAccessSpec, Xn as picture, Zn as pre, Qn as progress, $n as q, w as registerChildFactories, Ne as registerI18n, le as resolveTarget, xt as resolveYoyaMode, er as rp, tr as rt, nr as ruby, rr as s, ir as samp, ar as script, or as search, sr as section, cr as select, lr as selectedcontent, bt as setYoyaMode, St as setYoyaTheme, ur as slot, dr as small, Ze as snapshotContext, fr as source, pr as span, r as stripAccessCode, mr as strong, hr as style, gr as styleTag, _r as sub, vr as summary, yr as sup, $ as svg, br as table, xr as tbody, Sr as td, Cr as template, he as text, he as vText, wr as textarea, Tr as tfoot, Er as th, Dr as thead, Or as time, kr as title, Ar as tr, jr as track, Mr as u, Nr as ul, Se as unbindDocumentEvent, Pe as unregisterI18n, be as vClientOnly, pt as vStateNode, Pr as varTag, Fr as video, Ir as wbr, a as withAccess, qe as withContext, je as withI18nStringShortcut };
1
+ import { $ as FileOutlined, $n as s, $t as dfn, Ai as normalizeChild, An as li, Ar as varTag, At as article, B as CalendarOutlined, Bi as withAccess, Bn as object, Br as setYoyaMode, Bt as button, Ci as ComponentNode, Cn as iframe, Cr as thead, Ct as WarningOutlined, Di as applyElementOptions, Dn as kbd, Dr as track, Dt as abbr, Ei as ViewNode, En as ins, Er as tr, Et as a, F as ArrowDownOutlined, Fi as createAccess, Fn as menu, Fr as configureRequest, Ft as bdi, G as ChevronUpOutlined, Gn as p, Gr as moveByKey, Gt as col, H as ChevronDownOutlined, Hn as optgroup, Hr as announce, Ht as caption, I as ArrowLeftOutlined, Ii as currentAccess, In as meta, Ir as getYoyaMode, It as bdo, J as CopyOutlined, Jn as progress, Jt as data, K as CloseOutlined, Kn as picture, Kr as vStateNode, Kt as colgroup, L as ArrowRightOutlined, Li as installAccess, Ln as meter, Lr as getYoyaTheme, Lt as blockquote, M as SVG_NAMESPACE, Mi as registerChildFactories, Mn as main, Mr as wbr, Mt as audio, N as SvgElementNode, Ni as resolveTarget, Nn as map, Nr as Result, Nt as b, Oi as createElementFactory, On as label, Or as u, Ot as address, P as svg, Pi as vText, Pn as mark, Pr as RequestBase, Pt as base, Q as EyeOutlined, Qn as ruby, Qt as details, R as ArrowUpOutlined, Ri as parseAccessSpec, Rn as nav, Rr as initYoyaTheme, Rt as body, Si as vClientOnly, Sn as i, Sr as th, St as UserOutlined, Ti as VTextNode, Tn as input, Tr as title, Tt as HtmlElementNode, U as ChevronLeftOutlined, Un as option, Ur as createFocusTrap, Ut as cite, V as CheckOutlined, Vn as ol, Vr as setYoyaTheme, Vt as canvas, W as ChevronRightOutlined, Wn as output, Wr as getFocusableElements, Wt as code, X as EditOutlined, Xn as rp, Xt as dd, Y as DownloadOutlined, Yn as q, Yt as datalist, Z as ExternalOutlined, Zn as rt, Zt as del, _i as bindDocumentEvent, _n as head, _r as tbody, _t as SettingsOutlined, ai as I18n, an as embed, ar as selectedcontent, at as InfoOutlined, bi as unbindDocumentEvent, bn as hr, br as textarea, bt as TrashOutlined, ci as getI18n, cn as figure, cr as source, ct as MailOutlined, di as i18nText, dn as h1, dr as style, dt as MonitorOutlined, ei as clearInstalledContext, en as dialog, er as samp, et as FolderOpenOutlined, fi as installI18nStringShortcut, fn as h2, fr as styleTag, ft as MoonOutlined, gi as withI18nStringShortcut, gn as h6, gr as table, gt as SearchOutlined, hi as unregisterI18n, hn as h5, hr as sup, ht as RefreshOutlined, ii as withContext, in as em, ir as select, it as ImageOutlined, ji as normalizeSetupArguments, jn as link, jr as video, jt as aside, ki as escapeHtml, kn as legend, kr as ul, kt as area, li as getPersistedI18nLocales, ln as footer, lr as span, lt as MenuOutlined, mi as registerI18n, mn as h4, mr as summary, mt as PlusOutlined, ni as installContext, nn as dl, nr as search, nt as HeartOutlined, oi as I18nTextNode, on as fieldset, or as slot, ot as LockOutlined, pi as listI18n, pn as h3, pr as sub, pt as MoreHorizontalOutlined, q as CodeOutlined, qn as pre, qt as createHtmlFactories, ri as snapshotContext, rn as dt, rr as section, rt as HomeOutlined, si as createI18n, sn as figcaption, sr as small, st as LogoutOutlined, ti as currentContext, tn as div, tr as script, tt as FolderOutlined, ui as i18n, un as form, ur as strong, ut as MinusOutlined, vi as bindWindowEvent, vn as header, vr as td, vt as StarOutlined, wi as ElementNode, wn as img, wr as time, xi as ClientOnlyNode, xn as html, xr as tfoot, xt as UploadOutlined, yi as injectDocumentStyle, yn as hgroup, yr as template, yt as SunOutlined, z as BellOutlined, zi as stripAccessCode, zn as noscript, zr as resolveYoyaMode, zt as br } from "./yoya.core.chunk.js";
2
+
3
+ export { ArrowDownOutlined, ArrowLeftOutlined, ArrowRightOutlined, ArrowUpOutlined, BellOutlined, CalendarOutlined, CheckOutlined, ChevronDownOutlined, ChevronLeftOutlined, ChevronRightOutlined, ChevronUpOutlined, ClientOnlyNode, CloseOutlined, CodeOutlined, ComponentNode, CopyOutlined, DownloadOutlined, EditOutlined, ElementNode, ExternalOutlined, EyeOutlined, FileOutlined, FolderOpenOutlined, FolderOutlined, HeartOutlined, HomeOutlined, HtmlElementNode, I18n, I18nTextNode, ImageOutlined, InfoOutlined, LockOutlined, LogoutOutlined, MailOutlined, MenuOutlined, MinusOutlined, MonitorOutlined, MoonOutlined, MoreHorizontalOutlined, PlusOutlined, RefreshOutlined, RequestBase, Result, SVG_NAMESPACE, SearchOutlined, SettingsOutlined, StarOutlined, SunOutlined, SvgElementNode, VTextNode as TextNode, VTextNode, VTextNode as ViewTextNode, TrashOutlined, UploadOutlined, UserOutlined, ViewNode, WarningOutlined, a, abbr, address, announce, applyElementOptions, area, article, aside, audio, b, base, bdi, bdo, bindDocumentEvent, bindWindowEvent, blockquote, body, br, button, canvas, caption, cite, clearInstalledContext, code, col, colgroup, configureRequest, createAccess, createElementFactory, createFocusTrap, createHtmlFactories, createI18n, currentAccess, currentContext, data, datalist, dd, del, details, dfn, dialog, div, dl, dt, em, embed, escapeHtml, fieldset, figcaption, figure, footer, form, getFocusableElements, getI18n, getPersistedI18nLocales, getYoyaMode, getYoyaTheme, h1, h2, h3, h4, h5, h6, head, header, hgroup, hr, html, i, i18n, i18nText, iframe, img, initYoyaTheme, injectDocumentStyle, input, ins, installAccess, installContext, installI18nStringShortcut, kbd, label, legend, li, link, listI18n, main, map, mark, menu, meta, meter, moveByKey, nav, normalizeChild, normalizeSetupArguments, noscript, object, ol, optgroup, option, output, p, parseAccessSpec, picture, pre, progress, q, registerChildFactories, registerI18n, resolveTarget, resolveYoyaMode, rp, rt, ruby, s, samp, script, search, section, select, selectedcontent, setYoyaMode, setYoyaTheme, slot, small, snapshotContext, source, span, stripAccessCode, strong, style, styleTag, sub, summary, sup, svg, table, tbody, td, template, vText as text, vText, textarea, tfoot, th, thead, time, title, tr, track, u, ul, unbindDocumentEvent, unregisterI18n, vClientOnly, vStateNode, varTag, video, wbr, withAccess, withContext, withI18nStringShortcut };