@yoyaflow/yoya-ui 0.2.1 → 0.3.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.ssr.js CHANGED
@@ -457,7 +457,7 @@ var v = class extends h {}, y = [
457
457
  ];
458
458
  function b() {
459
459
  return y.reduce((e, t) => {
460
- let { aliases: n = [], name: r, tagName: i } = en(t), a = g(i, v);
460
+ let { aliases: n = [], name: r, tagName: i } = tn(t), a = g(i, v);
461
461
  return e[r] = a, n.forEach((t) => {
462
462
  e[t] = a;
463
463
  }), e;
@@ -465,8 +465,8 @@ function b() {
465
465
  }
466
466
  var x = b();
467
467
  _(v, x);
468
- var { a: S, abbr: ee, address: te, area: C, article: w, aside: T, audio: E, b: D, base: ne, bdi: re, bdo: ie, blockquote: ae, body: oe, br: se, button: ce, canvas: le, caption: ue, cite: de, code: fe, col: pe, colgroup: me, data: he, datalist: ge, dd: _e, del: ve, details: ye, dfn: be, dialog: xe, div: Se, dl: Ce, dt: we, em: Te, embed: Ee, fieldset: De, figcaption: Oe, figure: ke, footer: Ae, form: je, h1: Me, h2: Ne, h3: Pe, h4: Fe, h5: Ie, h6: Le, head: Re, header: ze, hgroup: Be, hr: Ve, html: He, i: Ue, iframe: We, img: Ge, input: Ke, ins: qe, kbd: Je, label: Ye, legend: Xe, li: Ze, link: Qe, main: $e, map: et, mark: tt, menu: nt, meta: rt, meter: it, nav: at, noscript: ot, object: st, ol: ct, optgroup: lt, option: ut, output: dt, p: ft, picture: pt, pre: mt, progress: ht, q: gt, rp: _t, rt: vt, ruby: yt, s: bt, samp: xt, script: St, search: Ct, section: wt, select: Tt, selectedcontent: Et, slot: Dt, small: Ot, source: kt, span: At, strong: jt, style: Mt, styleTag: Nt, sub: Pt, summary: Ft, sup: It, table: Lt, tbody: Rt, td: zt, template: Bt, textarea: Vt, tfoot: Ht, th: Ut, thead: Wt, time: Gt, title: Kt, tr: qt, track: Jt, u: Yt, ul: Xt, varTag: Zt, video: Qt, wbr: $t } = x;
469
- function en(e) {
468
+ var { a: S, abbr: ee, address: te, area: ne, article: C, aside: w, audio: T, b: E, base: re, bdi: ie, bdo: ae, blockquote: oe, body: se, br: ce, button: le, canvas: ue, caption: de, cite: fe, code: pe, col: me, colgroup: he, data: ge, datalist: _e, dd: ve, del: ye, details: be, dfn: xe, dialog: Se, div: Ce, dl: we, dt: Te, em: Ee, embed: De, fieldset: Oe, figcaption: ke, figure: Ae, footer: je, form: Me, h1: Ne, h2: Pe, h3: Fe, h4: Ie, h5: Le, h6: Re, head: ze, header: Be, hgroup: Ve, hr: He, html: Ue, i: We, iframe: Ge, img: Ke, input: qe, ins: Je, kbd: Ye, label: Xe, legend: Ze, li: Qe, link: $e, main: et, map: tt, mark: nt, menu: rt, meta: it, meter: at, nav: ot, noscript: st, object: ct, ol: lt, optgroup: ut, option: dt, output: ft, p: pt, picture: mt, pre: ht, progress: gt, q: _t, rp: vt, rt: yt, ruby: bt, s: xt, samp: St, script: Ct, search: wt, section: Tt, select: Et, selectedcontent: Dt, slot: Ot, small: kt, source: At, span: jt, strong: Mt, style: Nt, styleTag: Pt, sub: Ft, summary: It, sup: Lt, table: Rt, tbody: zt, td: Bt, template: Vt, textarea: Ht, tfoot: Ut, th: Wt, thead: Gt, time: Kt, title: qt, tr: Jt, track: Yt, u: Xt, ul: Zt, varTag: Qt, video: $t, wbr: en } = x;
469
+ function tn(e) {
470
470
  return typeof e == "string" ? {
471
471
  name: e,
472
472
  tagName: e
@@ -474,19 +474,19 @@ function en(e) {
474
474
  }
475
475
  //#endregion
476
476
  //#region src/svg/index.js
477
- var tn = "http://www.w3.org/2000/svg", nn = /* @__PURE__ */ new Set([
477
+ var nn = "http://www.w3.org/2000/svg", rn = /* @__PURE__ */ new Set([
478
478
  "desc",
479
479
  "metadata",
480
480
  "text",
481
481
  "textPath",
482
482
  "title",
483
483
  "tspan"
484
- ]), rn = class e extends h {
484
+ ]), an = class e extends h {
485
485
  setup(e) {
486
486
  return typeof e == "string" || typeof e == "number" ? this.child(e) : super.setup(e);
487
487
  }
488
488
  text(...e) {
489
- if (nn.has(this._tagName)) {
489
+ if (rn.has(this._tagName)) {
490
490
  let [t, n] = e;
491
491
  return e.length > 0 && this.child(t), n != null && this.setup(n), this;
492
492
  }
@@ -494,10 +494,10 @@ var tn = "http://www.w3.org/2000/svg", nn = /* @__PURE__ */ new Set([
494
494
  }
495
495
  style(...e) {
496
496
  let [t, n] = e;
497
- return this._tagName === "style" && e.length <= 1 ? (e.length === 1 && this.child(t), this) : e.length <= 1 && an(t) ? this._svgChild("style", t) : super.style(t, n);
497
+ return this._tagName === "style" && e.length <= 1 ? (e.length === 1 && this.child(t), this) : e.length <= 1 && on(t) ? this._svgChild("style", t) : super.style(t, n);
498
498
  }
499
499
  renderDom() {
500
- return this._deleted ? null : (this._el || (this._el = document.createElementNS(tn, this._tagName), this._applySnapshotToElement()), this._el);
500
+ return this._deleted ? null : (this._el || (this._el = document.createElementNS(nn, this._tagName), this._applySnapshotToElement()), this._el);
501
501
  }
502
502
  _syncClassName() {
503
503
  let e = [...this._classes].join(" ");
@@ -510,32 +510,32 @@ var tn = "http://www.w3.org/2000/svg", nn = /* @__PURE__ */ new Set([
510
510
  }), this.child(r);
511
511
  }
512
512
  };
513
- function an(e) {
513
+ function on(e) {
514
514
  return e == null || typeof e == "function" || typeof e == "string" || typeof e == "number" || Array.isArray(e);
515
515
  }
516
- var on = /* @__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(".");
517
- function sn(e) {
516
+ var sn = /* @__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(".");
517
+ function cn(e) {
518
518
  return function(...t) {
519
- let n = new rn(e);
519
+ let n = new an(e);
520
520
  return e === "svg" && n.style("display", "block"), t.forEach((e) => {
521
521
  e != null && n.setup(e);
522
522
  }), n;
523
523
  };
524
524
  }
525
- function cn() {
526
- return on.reduce((e, t) => {
527
- let { aliases: n = [], name: r, tagName: i } = dn(t), a = sn(i);
525
+ function ln() {
526
+ return sn.reduce((e, t) => {
527
+ let { aliases: n = [], name: r, tagName: i } = fn(t), a = cn(i);
528
528
  return e[r] = a, n.forEach((t) => {
529
529
  e[t] = a;
530
530
  }), e;
531
531
  }, {});
532
532
  }
533
- var ln = sn("svg"), un = cn();
534
- _(v, { svg: ln }), _(rn, {
535
- svg: ln,
536
- ...un
533
+ var un = cn("svg"), dn = ln();
534
+ _(v, { svg: un }), _(an, {
535
+ svg: un,
536
+ ...dn
537
537
  });
538
- function dn(e) {
538
+ function fn(e) {
539
539
  return typeof e == "string" ? {
540
540
  name: e,
541
541
  tagName: e
@@ -543,8 +543,8 @@ function dn(e) {
543
543
  }
544
544
  //#endregion
545
545
  //#region src/svg/icons.js
546
- function fn() {
547
- return ln((e) => {
546
+ function pn() {
547
+ return un((e) => {
548
548
  e.className("yoya-icon").attr({
549
549
  "aria-hidden": "true",
550
550
  fill: "none",
@@ -561,45 +561,45 @@ function fn() {
561
561
  }
562
562
  //#endregion
563
563
  //#region src/components/shared.js
564
- var pn = "yoya-component";
565
- function O(e, t) {
564
+ var mn = "yoya-component";
565
+ function D(e, t) {
566
566
  return `var(--yoya-${e}, ${t})`;
567
567
  }
568
- function k(e, t, n = "1px") {
569
- return `${n} solid ${O(e, t)}`;
568
+ function O(e, t, n = "1px") {
569
+ return `${n} solid ${D(e, t)}`;
570
570
  }
571
- function A(e = null, t = null, n = null) {
571
+ function k(e = null, t = null, n = null) {
572
572
  return p(e, t, n);
573
573
  }
574
- function mn(e, t) {
574
+ function hn(e, t) {
575
575
  return typeof e.attr == "function" || typeof e.styles == "function" ? m(e, t) : (typeof e.render == "function" && m(e.render(), t), e);
576
576
  }
577
- function j(e, t = null, n = null) {
578
- return mn(e, t), typeof n == "function" && n(e), e;
577
+ function A(e, t = null, n = null) {
578
+ return hn(e, t), typeof n == "function" && n(e), e;
579
579
  }
580
- function hn(e, t = null, n = null, r = null) {
581
- let { first: i, options: a, callback: o } = A(t, n, r);
582
- return j(i instanceof e ? i : new e(i), a, o);
580
+ function gn(e, t = null, n = null, r = null) {
581
+ let { first: i, options: a, callback: o } = k(t, n, r);
582
+ return A(i instanceof e ? i : new e(i), a, o);
583
583
  }
584
- function gn(e, t) {
585
- return t == null ? e : typeof t == "function" ? (t(e), e) : t instanceof c || Array.isArray(t) || typeof t == "string" || typeof t == "number" ? (e.child(t), e) : (vn(t) && e.setup(t), e);
584
+ function _n(e, t) {
585
+ return t == null ? e : typeof t == "function" ? (t(e), e) : t instanceof c || Array.isArray(t) || typeof t == "string" || typeof t == "number" ? (e.child(t), e) : (yn(t) && e.setup(t), e);
586
586
  }
587
- function _n(e) {
587
+ function vn(e) {
588
588
  return e == null ? [] : Array.isArray(e) ? e : [e];
589
589
  }
590
- function M(e, t) {
590
+ function j(e, t) {
591
591
  return e.children().forEach((e) => e.destroy()), e._children = [], e._el && e._el.replaceChildren(), t.length > 0 && e.child(t), e;
592
592
  }
593
- function vn(e) {
593
+ function yn(e) {
594
594
  if (Object.prototype.toString.call(e) !== "[object Object]") return !1;
595
595
  let t = Object.getPrototypeOf(e);
596
596
  return t === Object.prototype || t === null;
597
597
  }
598
598
  //#endregion
599
599
  //#region src/layout/split-panel.js
600
- var yn = class extends v {
600
+ var bn = class extends v {
601
601
  constructor(e = null, t = null, n = null) {
602
- super("div", null), this.className(pn, "yoya-vsplit-panel"), this.styles({
602
+ super("div", null), this.className(mn, "yoya-vsplit-panel"), this.styles({
603
603
  boxSizing: "border-box",
604
604
  display: "flex",
605
605
  minHeight: "0",
@@ -627,13 +627,13 @@ var yn = class extends v {
627
627
  background: "transparent",
628
628
  boxSizing: "border-box",
629
629
  flex: "0 0 auto"
630
- }).on("mousedown", (e) => this._startDrag(e)).on("dblclick", () => this.reset()).on("keydown", (e) => this._handleKeydown(e)).on("mouseenter", () => this._hoverDivider(!0)).on("mouseleave", () => this._hoverDivider(!1)), this.child(this._first, this._divider, this._second), this._sync(), this._setupSplitPanel(e), j(this, t, n);
630
+ }).on("mousedown", (e) => this._startDrag(e)).on("dblclick", () => this.reset()).on("keydown", (e) => this._handleKeydown(e)).on("mouseenter", () => this._hoverDivider(!0)).on("mouseleave", () => this._hoverDivider(!1)), this.child(this._first, this._divider, this._second), this._sync(), this._setupSplitPanel(e), A(this, t, n);
631
631
  }
632
632
  direction(e) {
633
633
  return e === void 0 ? this._direction : (this._direction = e === "vertical" ? "vertical" : "horizontal", this._sync(), this);
634
634
  }
635
635
  size(e) {
636
- return e === void 0 ? this._firstSize : (this._firstSize = xn(e), this._sync(), this);
636
+ return e === void 0 ? this._firstSize : (this._firstSize = Sn(e), this._sync(), this);
637
637
  }
638
638
  minSize(e) {
639
639
  if (e === void 0) return this._minSize;
@@ -644,10 +644,10 @@ var yn = class extends v {
644
644
  return this.size("50%");
645
645
  }
646
646
  first(e) {
647
- return M(this._first, []), typeof e == "function" ? e(this._first) : M(this._first, _n(e)), this;
647
+ return j(this._first, []), typeof e == "function" ? e(this._first) : j(this._first, vn(e)), this;
648
648
  }
649
649
  second(e) {
650
- return M(this._second, []), typeof e == "function" ? e(this._second) : M(this._second, _n(e)), this;
650
+ return j(this._second, []), typeof e == "function" ? e(this._second) : j(this._second, vn(e)), this;
651
651
  }
652
652
  destroy() {
653
653
  return this._endDrag(), super.destroy();
@@ -669,7 +669,7 @@ var yn = class extends v {
669
669
  }), this._divider.attr("aria-orientation", e ? "horizontal" : "vertical"), this;
670
670
  }
671
671
  _hoverDivider(e) {
672
- this._divider.style("background", e ? O("color-primary-subtle", "#eff6ff") : "var(--yoya-color-border-faint, #efefef)");
672
+ this._divider.style("background", e ? D("color-primary-subtle", "#eff6ff") : "var(--yoya-color-border-faint, #efefef)");
673
673
  }
674
674
  _startDrag(e) {
675
675
  if (e.button !== 0 || !this._el) return;
@@ -683,14 +683,14 @@ var yn = class extends v {
683
683
  }
684
684
  _onDrag(e) {
685
685
  if (!this._drag) return;
686
- let t = (this._direction === "horizontal" ? e.clientX : e.clientY) - this._drag.start, n = Sn(this._drag.startSize + t, this._minSize, this._drag.containerSize - this._minSize);
686
+ let t = (this._direction === "horizontal" ? e.clientX : e.clientY) - this._drag.start, n = Cn(this._drag.startSize + t, this._minSize, this._drag.containerSize - this._minSize);
687
687
  this._firstSize = `${Math.round(n)}px`, this._sync();
688
688
  }
689
689
  _handleKeydown(e) {
690
690
  let t = e.key === "ArrowLeft" || e.key === "ArrowUp" ? -16 : e.key === "ArrowRight" || e.key === "ArrowDown" ? 16 : 0;
691
691
  if (!t || !this._el) return;
692
692
  e.preventDefault();
693
- let n = this._direction === "horizontal" ? this._el.offsetWidth : this._el.offsetHeight, r = Sn((Number.parseFloat(this._firstSize) || 0) + t, this._minSize, n - this._minSize);
693
+ let n = this._direction === "horizontal" ? this._el.offsetWidth : this._el.offsetHeight, r = Cn((Number.parseFloat(this._firstSize) || 0) + t, this._minSize, n - this._minSize);
694
694
  this._firstSize = `${Math.round(r)}px`, this._sync();
695
695
  }
696
696
  _endDrag() {
@@ -702,7 +702,7 @@ var yn = class extends v {
702
702
  e(this);
703
703
  return;
704
704
  }
705
- if (vn(e)) {
705
+ if (yn(e)) {
706
706
  let { direction: t, first: n, minSize: r, second: i, size: a, ...o } = e;
707
707
  Object.keys(o).length > 0 && this.setup(o), t !== void 0 && this.direction(t), a !== void 0 && this.size(a), r !== void 0 && this.minSize(r), n !== void 0 && this.first(n), i !== void 0 && this.second(i);
708
708
  return;
@@ -711,21 +711,21 @@ var yn = class extends v {
711
711
  }
712
712
  }
713
713
  };
714
- function bn(e = null, t = null, n = null) {
715
- return hn(yn, e, t, n);
714
+ function xn(e = null, t = null, n = null) {
715
+ return gn(bn, e, t, n);
716
716
  }
717
- _(v, { vSplitPanel: bn });
718
- function xn(e) {
717
+ _(v, { vSplitPanel: xn });
718
+ function Sn(e) {
719
719
  return typeof e == "number" ? `${e}px` : e;
720
720
  }
721
- function Sn(e, t, n) {
721
+ function Cn(e, t, n) {
722
722
  return Number.isNaN(e) ? t : Math.min(Math.max(e, t), Math.max(n, t));
723
723
  }
724
724
  //#endregion
725
725
  //#region src/layout/masonry.js
726
- var Cn = class extends v {
726
+ var wn = class extends v {
727
727
  constructor(e = null) {
728
- super("div", null), this._columns = 3, this._gap = 16, this._minColumnWidth = null, this.className(pn, "yoya-vmasonry"), this.attr({ "data-columns": "3" }), this.styles({
728
+ super("div", null), this._columns = 3, this._gap = 16, this._minColumnWidth = null, this.className(mn, "yoya-vmasonry"), this.attr({ "data-columns": "3" }), this.styles({
729
729
  boxSizing: "border-box",
730
730
  columnCount: "3",
731
731
  columnGap: "16px",
@@ -756,28 +756,28 @@ var Cn = class extends v {
756
756
  e(this);
757
757
  return;
758
758
  }
759
- if (vn(e)) {
759
+ if (yn(e)) {
760
760
  let { columns: t, gap: n, minColumnWidth: r, ...i } = e;
761
761
  Object.keys(i).length > 0 && this.setup(i), t !== void 0 && this.columns(t), n !== void 0 && this.gap(n), r !== void 0 && this.minColumnWidth(r);
762
762
  }
763
763
  }
764
764
  }
765
765
  };
766
- function wn(e = null, t = null, n = null) {
767
- return hn(Cn, e, t, n);
766
+ function Tn(e = null, t = null, n = null) {
767
+ return gn(wn, e, t, n);
768
768
  }
769
769
  //#endregion
770
770
  //#region src/layout/theme-shell.js
771
- var Tn = class extends v {
771
+ var En = class extends v {
772
772
  constructor(e = null) {
773
773
  super("div", null), this.className("yoya-component", "yoya-vtheme-shell"), this.styles({
774
- background: O("color-surface", "#ffffff"),
775
- border: `1px solid ${O("color-border", "#d8dee8")}`,
776
- borderRadius: O("radius-md", "6px"),
774
+ background: D("color-surface", "#ffffff"),
775
+ border: `1px solid ${D("color-border", "#d8dee8")}`,
776
+ borderRadius: D("radius-md", "6px"),
777
777
  boxSizing: "border-box",
778
- color: O("color-text", "#172033"),
778
+ color: D("color-text", "#172033"),
779
779
  minWidth: "0"
780
- }), gn(this, e);
780
+ }), _n(this, e);
781
781
  }
782
782
  _requireSingleShellChild() {
783
783
  let e = this.children();
@@ -818,7 +818,7 @@ var Tn = class extends v {
818
818
  return e === void 0 ? this._styles.background : e === null ? this : (this._styles.background = String(e), this._el && (this._el.style.background = String(e)), this);
819
819
  }
820
820
  backgroundOpacity(e) {
821
- let t = this.background() || O("color-surface", "#ffffff"), n = Math.max(0, Math.min(1, Number(e) || 0));
821
+ let t = this.background() || D("color-surface", "#ffffff"), n = Math.max(0, Math.min(1, Number(e) || 0));
822
822
  return this.background(`color-mix(in srgb, ${t} ${Math.round(n * 100)}%, transparent)`);
823
823
  }
824
824
  radius(e) {
@@ -834,13 +834,13 @@ var Tn = class extends v {
834
834
  return this.styles({ overflow: e ? "auto" : "visible" });
835
835
  }
836
836
  };
837
- function En(e = null, t = null, n = null) {
838
- return hn(Tn, e, t, n);
837
+ function Dn(e = null, t = null, n = null) {
838
+ return gn(En, e, t, n);
839
839
  }
840
- _(h, { vThemeShell: En });
840
+ _(h, { vThemeShell: Dn });
841
841
  //#endregion
842
842
  //#region src/layout/index.js
843
- var Dn = /* @__PURE__ */ new Set(/* @__PURE__ */ "align.areas.asideWidth.autoFlow.breakpoint.columns.direction.drawer.gutter.offset.pull.push.span.xs.sm.md.lg.xl.gap.justify.maxWidth.minColumnWidth.mobileDirection.mobileGap.orientation.padding.paddingInline.rows.safeArea.size.breakpoints.viewport.wrap".split(".")), On = /* @__PURE__ */ new Set(["height", "width"]);
843
+ var On = /* @__PURE__ */ new Set(/* @__PURE__ */ "align.areas.asideWidth.autoFlow.breakpoint.columns.direction.drawer.gutter.offset.pull.push.span.xs.sm.md.lg.xl.gap.justify.maxWidth.minColumnWidth.mobileDirection.mobileGap.orientation.padding.paddingInline.rows.safeArea.size.breakpoints.viewport.wrap".split(".")), M = /* @__PURE__ */ new Set(["height", "width"]);
844
844
  function kn(e = null, t = null, n = null) {
845
845
  return N("flex", { display: "flex" }, e, F, t, n);
846
846
  }
@@ -870,7 +870,7 @@ function Nn(e = null, t = null, n = null) {
870
870
  }, e, F, t, n);
871
871
  }
872
872
  function Pn(e = null, t = null, n = null) {
873
- let r = A(e, t, n), i = new v("div");
873
+ let r = k(e, t, n), i = new v("div");
874
874
  i.className("yoya-layout", "yoya-vrow"), i.styles({
875
875
  boxSizing: "border-box",
876
876
  display: "flex",
@@ -878,37 +878,37 @@ function Pn(e = null, t = null, n = null) {
878
878
  width: "100%"
879
879
  }), i._gutter = null, i.gutter = (e) => e === void 0 ? i._gutter : (i._gutter = z(e), ar(i), i), i.justify = (e) => e === void 0 ? i.style("justifyContent") : (i.style("justifyContent", e), i), i.align = (e) => e === void 0 ? i.style("alignItems") : (i.style("alignItems", e), i), i.wrap = (e) => e === void 0 ? i.style("flexWrap") : (i.style("flexWrap", e === !1 ? "nowrap" : B(e ?? !0)), i);
880
880
  let a = i.child.bind(i);
881
- return i.child = (...e) => (a(...e), ar(i), i), P(i, r.first, or), ar(i), j(i, r.options, r.callback);
881
+ return i.child = (...e) => (a(...e), ar(i), i), P(i, r.first, or), ar(i), A(i, r.options, r.callback);
882
882
  }
883
883
  function Fn(e = null, t = null, n = null) {
884
- let r = A(e, t, n), i = new v("div");
884
+ let r = k(e, t, n), i = new v("div");
885
885
  return i.className("yoya-layout", "yoya-vcol"), i.styles({
886
886
  boxSizing: "border-box",
887
887
  minWidth: "0"
888
888
  }), i._baseCol = I({}), i._responsiveCols = [], i._gutter = null, i.refresh = i._refreshCol = () => {
889
889
  let e = typeof window > "u" ? null : window.innerWidth, t = (e === null ? null : i._responsiveCols.filter((t) => e >= t.minWidth).at(-1))?.props ?? i._baseCol;
890
890
  return i.style("boxSizing", "border-box"), i.style("flex", "0 0 auto"), i.style("left", t.push ? `${R(t.push)}%` : null), i.style("marginLeft", t.offset ? `${R(t.offset)}%` : null), i.style("paddingLeft", i._gutter ? dr(i._gutter) : null), i.style("paddingRight", i._gutter ? dr(i._gutter) : null), i.style("position", t.push || t.pull ? "relative" : null), i.style("right", t.pull ? `${R(t.pull)}%` : null), i.style("width", `${R(t.span)}%`), i;
891
- }, i.span = (e) => e === void 0 ? i._baseCol.span : (i._baseCol.span = L(e), i._refreshCol(), i), i.offset = (e) => e === void 0 ? i._baseCol.offset : (i._baseCol.offset = L(e), i._refreshCol(), i), i.push = (e) => e === void 0 ? i._baseCol.push : (i._baseCol.push = L(e), i._refreshCol(), i), i.pull = (e) => e === void 0 ? i._baseCol.pull : (i._baseCol.pull = L(e), i._refreshCol(), i), i.gutter = (e) => e === void 0 ? i._gutter : (i._gutter = z(e), i._refreshCol(), i), P(i, r.first, sr), i._refreshCol(), i._responsiveCols.length && typeof window < "u" && (i._colResize = () => i._refreshCol(), window.addEventListener("resize", i._colResize), fr(i)), j(i, r.options, r.callback);
891
+ }, i.span = (e) => e === void 0 ? i._baseCol.span : (i._baseCol.span = L(e), i._refreshCol(), i), i.offset = (e) => e === void 0 ? i._baseCol.offset : (i._baseCol.offset = L(e), i._refreshCol(), i), i.push = (e) => e === void 0 ? i._baseCol.push : (i._baseCol.push = L(e), i._refreshCol(), i), i.pull = (e) => e === void 0 ? i._baseCol.pull : (i._baseCol.pull = L(e), i._refreshCol(), i), i.gutter = (e) => e === void 0 ? i._gutter : (i._gutter = z(e), i._refreshCol(), i), P(i, r.first, sr), i._refreshCol(), i._responsiveCols.length && typeof window < "u" && (i._colResize = () => i._refreshCol(), window.addEventListener("resize", i._colResize), fr(i)), A(i, r.options, r.callback);
892
892
  }
893
893
  function In(e = null, t = null, n = null) {
894
894
  return N("grid", { display: "grid" }, e, $n, t, n);
895
895
  }
896
896
  function Ln(e = null, t = null, n = null) {
897
- let r = A(e, t, n), i = N("responsive-grid", { display: "grid" }, r.first, er, r.options, r.callback), a = H(r.first) ? r.first : {};
897
+ let r = k(e, t, n), i = N("responsive-grid", { display: "grid" }, r.first, er, r.options, r.callback), a = H(r.first) ? r.first : {};
898
898
  return i._responsiveGridBreakpoints = Tr(a.breakpoints), i._responsiveGridMinColumnWidth = wr(a.minColumnWidth), i._responsiveGridRefresh = () => {
899
899
  let e = typeof window > "u" ? null : window.innerWidth, t = e === null ? null : i._responsiveGridBreakpoints.filter((t) => e >= t.minWidth).at(-1);
900
900
  return i.style("gridTemplateColumns", t ? `repeat(${t.columns}, minmax(0, 1fr))` : `repeat(auto-fit, minmax(${i._responsiveGridMinColumnWidth}, 1fr))`), i;
901
901
  }, i.refresh = i._responsiveGridRefresh, i.minColumnWidth = (e) => e === void 0 ? i._responsiveGridMinColumnWidth : (i._responsiveGridMinColumnWidth = wr(e), i._responsiveGridRefresh(), i), i.breakpoints = (e) => e === void 0 ? i._responsiveGridBreakpoints : (i._responsiveGridBreakpoints = Tr(e), i._responsiveGridBreakpoints.length && !i._responsiveGridResize && typeof window < "u" && (i._responsiveGridResize = () => i._responsiveGridRefresh(), window.addEventListener("resize", i._responsiveGridResize), Bn(i)), i._responsiveGridRefresh(), i), i._responsiveGridRefresh(), i._responsiveGridBreakpoints.length && typeof window < "u" && (i._responsiveGridResize = () => i._responsiveGridRefresh(), window.addEventListener("resize", i._responsiveGridResize), Bn(i)), i;
902
902
  }
903
903
  function Rn(e = null, t = null, n = null) {
904
- let r = A(e, t, n), i = new v("div"), a = new v("div").className("yoya-vbody-content"), o = i.child.bind(i);
904
+ let r = k(e, t, n), i = new v("div"), a = new v("div").className("yoya-vbody-content"), o = i.child.bind(i);
905
905
  return i.className("yoya-layout", "yoya-vbody"), i.attr("data-page-body", "true"), i.styles({
906
- background: O("color-bg", "#f9f9f9"),
906
+ background: D("color-bg", "#f9f9f9"),
907
907
  boxSizing: "border-box",
908
- color: O("color-text", "#0d0d0d"),
909
- fontFamily: O("font-family", "ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif"),
910
- fontSize: O("font-size", "14px"),
911
- lineHeight: O("line-height", "1.5"),
908
+ color: D("color-text", "#0d0d0d"),
909
+ fontFamily: D("font-family", "ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif"),
910
+ fontSize: D("font-size", "14px"),
911
+ lineHeight: D("line-height", "1.5"),
912
912
  minHeight: "100%",
913
913
  padding: "clamp(16px, 3vw, 32px)",
914
914
  width: "100%"
@@ -919,7 +919,7 @@ function Rn(e = null, t = null, n = null) {
919
919
  marginRight: "auto",
920
920
  maxWidth: "1120px",
921
921
  width: "100%"
922
- }), o(a), i.background = (e) => e === void 0 ? i.style("background") : (i.style("background", e), i), i.maxWidth = (e) => e === void 0 ? a.style("maxWidth") : (a.style("maxWidth", z(e)), i), i.padding = (e) => e === void 0 ? i.style("padding") : (i.style("padding", z(e)), i), i.gap = (e) => e === void 0 ? a.style("gap") : (a.style("gap", z(e)), i), i.minHeight = (e) => e === void 0 ? i.style("minHeight") : (i.style("minHeight", z(e)), i), i.content = (e) => e === void 0 ? a : (typeof e == "function" ? e(a) : a.child(e), i), i.child = (...e) => (a.child(...e), i), tr(i, r.first), j(i, r.options, r.callback);
922
+ }), o(a), i.background = (e) => e === void 0 ? i.style("background") : (i.style("background", e), i), i.maxWidth = (e) => e === void 0 ? a.style("maxWidth") : (a.style("maxWidth", z(e)), i), i.padding = (e) => e === void 0 ? i.style("padding") : (i.style("padding", z(e)), i), i.gap = (e) => e === void 0 ? a.style("gap") : (a.style("gap", z(e)), i), i.minHeight = (e) => e === void 0 ? i.style("minHeight") : (i.style("minHeight", z(e)), i), i.content = (e) => e === void 0 ? a : (typeof e == "function" ? e(a) : a.child(e), i), i.child = (...e) => (a.child(...e), i), tr(i, r.first), A(i, r.options, r.callback);
923
923
  }
924
924
  function zn(e = null, t = null) {
925
925
  let n = Rn(e);
@@ -942,7 +942,7 @@ function Vn(e = null, t = null, n = null) {
942
942
  }, e, nr, t, n);
943
943
  }
944
944
  function Hn(e = null, t = null, n = null) {
945
- let r = A(e, t, n), i = new v("div");
945
+ let r = k(e, t, n), i = new v("div");
946
946
  i.className("yoya-layout", "yoya-vcontainer"), i.styles({
947
947
  boxSizing: "border-box",
948
948
  display: "flex",
@@ -965,10 +965,10 @@ function Hn(e = null, t = null, n = null) {
965
965
  overscrollBehavior: i._scrollable ? "contain" : null
966
966
  }), i), i._autoDirection = () => i.children().some((e) => _r(e)) ? "column" : "row", i._syncContainerDirection = () => (i.style("flexDirection", i._direction || i._autoDirection()), i), i.direction = (e) => e === void 0 ? i._direction || i._autoDirection() : (i._direction = e, i._syncContainerDirection(), i);
967
967
  let a = i.child.bind(i);
968
- return i.child = (...e) => (a(...e), i._syncContainerDirection(), i), P(i, r.first, vr), i._syncContainerDirection(), j(i, r.options, r.callback);
968
+ return i.child = (...e) => (a(...e), i._syncContainerDirection(), i), P(i, r.first, vr), i._syncContainerDirection(), A(i, r.options, r.callback);
969
969
  }
970
970
  function Un(e = null, t = null, n = null) {
971
- let r = A(e, t, n), i = new v("div");
971
+ let r = k(e, t, n), i = new v("div");
972
972
  i.className("yoya-layout", "yoya-mobile-layout", "yoya-vmobile-layout"), i.attr("data-mobile-layout", "false"), i.styles({
973
973
  boxSizing: "border-box",
974
974
  display: "flex",
@@ -978,7 +978,7 @@ function Un(e = null, t = null, n = null) {
978
978
  type: "button",
979
979
  "aria-label": "打开导航",
980
980
  "aria-expanded": "false"
981
- }).style("display", "none").child(fn().styles({
981
+ }).style("display", "none").child(pn().styles({
982
982
  height: "18px",
983
983
  width: "18px"
984
984
  })).on("click", () => i.toggleAside()), i._refreshMobileLayout = () => {
@@ -992,7 +992,7 @@ function Un(e = null, t = null, n = null) {
992
992
  }), i._safeArea ? (i._safeAreaApplied = !0, i.style("paddingLeft", t ? "max(env(safe-area-inset-left), 0px)" : null), i.style("paddingRight", t ? "max(env(safe-area-inset-right), 0px)" : null), i.style("paddingTop", t ? "max(env(safe-area-inset-top), 0px)" : null), i.style("paddingBottom", t ? "max(env(safe-area-inset-bottom), 0px)" : null)) : i._safeAreaApplied && (i._safeAreaApplied = !1, i.style("paddingLeft", null), i.style("paddingRight", null), i.style("paddingTop", null), i.style("paddingBottom", null)), i.children().forEach((e) => mr(i, e)), hr(i), i;
993
993
  }, i.refresh = i._refreshMobileLayout, i.breakpoint = (e) => e === void 0 ? i._breakpoint : (i._breakpoint = Number(e), (!Number.isFinite(i._breakpoint) || i._breakpoint <= 0) && (i._breakpoint = 768), i._refreshMobileLayout(), i), i.direction = (e, t) => e === void 0 ? i._desktopDirection : (i._desktopDirection = e || "row", t !== void 0 && (i._mobileDirection = t || "column"), i._refreshMobileLayout(), i), i.mobileDirection = (e) => e === void 0 ? i._mobileDirection : (i._mobileDirection = e || "column", i._refreshMobileLayout(), i), i.gap = (e, t) => e === void 0 ? i._desktopGap : (i._desktopGap = z(e), t !== void 0 && (i._mobileGap = z(t)), i._refreshMobileLayout(), i), i.mobileGap = (e) => e === void 0 ? i._mobileGap : (i._mobileGap = z(e), i._refreshMobileLayout(), i), i.asideWidth = (e) => e === void 0 ? i._asideWidth : (i._asideWidth = z(e), i._refreshMobileLayout(), i), i.viewport = (e = !0) => e === void 0 ? i._viewport : (i._viewport = !!e, i._refreshMobileLayout(), i), i.safeArea = (e = !0) => e === void 0 ? i._safeArea : (i._safeArea = !!e, i._refreshMobileLayout(), i), i.drawer = (e = !0) => e === void 0 ? i._drawerEnabled : (i._drawerEnabled = !!e, i._drawerEnabled || (i._asideOpen = !1), i._refreshMobileLayout(), i), i.asideOpen = (e) => e === void 0 ? i._asideOpen : (i._asideOpen = !!e, i._refreshMobileLayout(), i), i.openAside = () => i.asideOpen(!0), i.closeAside = () => i.asideOpen(!1), i.toggleAside = () => i.asideOpen(!i._asideOpen), i.mobile = () => i._mobile;
994
994
  let a = i.child.bind(i);
995
- return i.child = (...e) => (a(...e), i._refreshMobileLayout(), i), P(i, r.first, yr), i.child(i._asideBackdrop, i._asideToggle), typeof window < "u" && (i._mobileLayoutResize = () => i._refreshMobileLayout(), window.addEventListener("resize", i._mobileLayoutResize), pr(i)), i._refreshMobileLayout(), j(i, r.options, r.callback);
995
+ return i.child = (...e) => (a(...e), i._refreshMobileLayout(), i), P(i, r.first, yr), i.child(i._asideBackdrop, i._asideToggle), typeof window < "u" && (i._mobileLayoutResize = () => i._refreshMobileLayout(), window.addEventListener("resize", i._mobileLayoutResize), pr(i)), i._refreshMobileLayout(), A(i, r.options, r.callback);
996
996
  }
997
997
  var Wn = Un;
998
998
  function Gn(e = null, t = null, n = null) {
@@ -1001,7 +1001,7 @@ function Gn(e = null, t = null, n = null) {
1001
1001
  flex: "0 0 auto",
1002
1002
  height: "60px",
1003
1003
  width: "100%"
1004
- }, e, br, t, n, "header", On, Zn);
1004
+ }, e, br, t, n, "header", M, Zn);
1005
1005
  }
1006
1006
  function Kn(e = null, t = null, n = null) {
1007
1007
  return N("vaside", {
@@ -1009,7 +1009,7 @@ function Kn(e = null, t = null, n = null) {
1009
1009
  flex: "0 0 auto",
1010
1010
  minWidth: "0",
1011
1011
  width: "300px"
1012
- }, e, xr, t, n, "aside", On, Qn);
1012
+ }, e, xr, t, n, "aside", M, Qn);
1013
1013
  }
1014
1014
  function qn(e = null, t = null, n = null) {
1015
1015
  return N("vmain", {
@@ -1018,7 +1018,7 @@ function qn(e = null, t = null, n = null) {
1018
1018
  minHeight: "0",
1019
1019
  minWidth: "0",
1020
1020
  overflow: "auto"
1021
- }, e, Sr, t, n, "main", On, Qn);
1021
+ }, e, Sr, t, n, "main", M, Qn);
1022
1022
  }
1023
1023
  function Jn(e = null, t = null, n = null) {
1024
1024
  return N("vfooter", {
@@ -1026,7 +1026,7 @@ function Jn(e = null, t = null, n = null) {
1026
1026
  flex: "0 0 auto",
1027
1027
  height: "60px",
1028
1028
  width: "100%"
1029
- }, e, br, t, n, "footer", On, Zn);
1029
+ }, e, br, t, n, "footer", M, Zn);
1030
1030
  }
1031
1031
  function Yn(e = null, t = null, n = null) {
1032
1032
  let r = N("spacer", {
@@ -1047,9 +1047,9 @@ _(v, {
1047
1047
  vFooter: Jn,
1048
1048
  vHeader: Gn,
1049
1049
  vMain: qn,
1050
- vMasonry: wn,
1050
+ vMasonry: Tn,
1051
1051
  vRow: Pn,
1052
- vSplitPanel: bn,
1052
+ vSplitPanel: xn,
1053
1053
  center: Nn,
1054
1054
  container: Vn,
1055
1055
  divider: Xn,
@@ -1065,8 +1065,8 @@ _(v, {
1065
1065
  vstack: jn
1066
1066
  });
1067
1067
  function N(e, t, n, r, i, a, o = "div", s = null, c = null) {
1068
- let l = A(n, i, a), u = new v(o);
1069
- return u.className("yoya-layout", `yoya-${e}`), u.styles(t), c && c(u), P(u, l.first, r, s), j(u, l.options, l.callback);
1068
+ let l = k(n, i, a), u = new v(o);
1069
+ return u.className("yoya-layout", `yoya-${e}`), u.styles(t), c && c(u), P(u, l.first, r, s), A(u, l.options, l.callback);
1070
1070
  }
1071
1071
  function Zn(e) {
1072
1072
  e.sticky = (t = !0) => {
@@ -1366,7 +1366,7 @@ function B(e) {
1366
1366
  if (e !== !1 && e != null) return String(e);
1367
1367
  }
1368
1368
  function Er(e, t = null) {
1369
- let n = t || Dn;
1369
+ let n = t || On;
1370
1370
  return Object.fromEntries(Object.entries(e).filter(([e]) => !n.has(e)));
1371
1371
  }
1372
1372
  function V(e) {
@@ -1758,17 +1758,72 @@ function fi(e = {}) {
1758
1758
  };
1759
1759
  }
1760
1760
  //#endregion
1761
- //#region src/router/router.js
1762
- var q = 8, J = null;
1763
- function pi() {
1761
+ //#region src/core/request.js
1762
+ var pi = null;
1763
+ function mi({ submit: e } = {}) {
1764
+ return pi = typeof e == "function" ? e : null, pi;
1765
+ }
1766
+ var hi = class {
1767
+ method() {
1768
+ return "GET";
1769
+ }
1770
+ headers() {
1771
+ return {};
1772
+ }
1773
+ cookies() {
1774
+ return null;
1775
+ }
1776
+ body() {
1777
+ return null;
1778
+ }
1779
+ params() {
1780
+ return {};
1781
+ }
1782
+ address() {
1783
+ return "";
1784
+ }
1785
+ submit() {
1786
+ if (typeof pi != "function") throw Error("RequestBase: 未注册请求传输,请先 configureRequest({ submit })");
1787
+ return pi(this);
1788
+ }
1789
+ }, gi = class e {
1790
+ 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 } = {}) {
1791
+ 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;
1792
+ }
1793
+ get isSuccess() {
1794
+ return !!this.ok;
1795
+ }
1796
+ get pages() {
1797
+ return this.pageSize > 0 ? Math.ceil((this.total ?? 0) / this.pageSize) : 0;
1798
+ }
1799
+ static from(t, n = {}) {
1800
+ if (!t || t.ok === !1) {
1801
+ let e = Error(t?.msg || "请求失败");
1802
+ throw e.code = t?.code, e.showType = t?.showType, e;
1803
+ }
1804
+ let r = t.data, i = Array.isArray(r) && t.pageNum != null, a = Array.isArray(r);
1805
+ return new e({
1806
+ ok: t.ok,
1807
+ code: t.code,
1808
+ msg: t.msg,
1809
+ showType: t.showType,
1810
+ kind: i ? "page" : a ? "list" : "detail",
1811
+ data: i || a ? (r ?? []).map((e) => n.toItem ? n.toItem(e) : e) : n.toDetail ? n.toDetail(r) : r,
1812
+ pageNum: t.pageNum,
1813
+ pageSize: t.pageSize,
1814
+ total: t.total
1815
+ });
1816
+ }
1817
+ }, q = 8, J = null;
1818
+ function _i() {
1764
1819
  typeof document > "u" || J || (J = document.createElement("style"), J.setAttribute("data-yoya-vrouter-views-popup-style", ""), J.textContent = ".yoya-vrouter-views-titlebar,\n.yoya-vrouter-views-popup {\n -ms-overflow-style: none;\n scrollbar-width: none;\n}\n.yoya-vrouter-views-titlebar::-webkit-scrollbar,\n.yoya-vrouter-views-popup::-webkit-scrollbar {\n display: none;\n height: 0;\n width: 0;\n}\n.yoya-vrouter-views-popup-item:hover {\n background: var(--yoya-color-surface-hover, #eef3f9);\n}\n.yoya-vrouter-views-popup-item[aria-current='true'] {\n background: var(--yoya-color-primary-subtle, #e8f0fe);\n color: var(--yoya-color-primary, #1f6feb);\n}\n.yoya-vrouter-views-popup-close {\n color: var(--yoya-color-text-secondary, #57606a);\n opacity: 0.65;\n}\n.yoya-vrouter-views-popup-item:hover .yoya-vrouter-views-popup-close,\n.yoya-vrouter-views-popup-close:hover {\n color: var(--yoya-color-text-danger, #b91c1c);\n opacity: 1;\n}\n.yoya-vrouter-views-context-item:hover {\n background: var(--yoya-color-surface-hover, #f6f8fa);\n}\n.yoya-vrouter-views-context-separator {\n background: var(--yoya-color-border, #d0d7de);\n height: 1px;\n margin: 4px 6px;\n}", document.head?.appendChild(J));
1765
1820
  }
1766
- function mi(e) {
1821
+ function vi(e) {
1767
1822
  let t = [e._defaultPath || "/", e._routes.map((e) => e.pattern).join("|")].join("::"), n = 0;
1768
1823
  for (let e = 0; e < t.length; e += 1) n = n * 31 + t.charCodeAt(e) | 0;
1769
1824
  return `yoya-ui:router-views:${(n >>> 0).toString(36)}`;
1770
1825
  }
1771
- function hi(e) {
1826
+ function yi(e) {
1772
1827
  if (typeof localStorage > "u") return null;
1773
1828
  try {
1774
1829
  let t = JSON.parse(localStorage.getItem(e) || "null");
@@ -1777,7 +1832,7 @@ function hi(e) {
1777
1832
  return null;
1778
1833
  }
1779
1834
  }
1780
- var gi = class extends h {
1835
+ var bi = class extends h {
1781
1836
  constructor(e = null) {
1782
1837
  super("div"), this._routes = [], this._defaultPath = null, this._notFoundView = null, this._beforeEach = null, this._currentPath = "/", this._currentParams = {}, this._currentQuery = {}, this._currentRoute = null, this._currentView = null, this._loadingView = null, this._errorView = null, this._navigationGeneration = 0, this._outlet = this, this._subscribers = /* @__PURE__ */ new Set(), this._ignoreNextHashPath = null, this._mode = "hash", this._started = !1, this._onHashChange = () => this._handleHashChange(), this._onPopState = () => this._handlePopState(), this.attr("data-yoya-router", ""), e !== null && this.setup(e);
1783
1838
  }
@@ -1795,7 +1850,7 @@ var gi = class extends h {
1795
1850
  return n && this.stop(), this._mode = t, n && this.start(), this;
1796
1851
  }
1797
1852
  route(e, t) {
1798
- let n = wi(e, t);
1853
+ let n = Oi(e, t);
1799
1854
  return this._routes.push(n), this;
1800
1855
  }
1801
1856
  notFound(e) {
@@ -1812,7 +1867,7 @@ var gi = class extends h {
1812
1867
  }
1813
1868
  start() {
1814
1869
  !this._started && typeof window < "u" && (this._mode === "history" ? window.addEventListener("popstate", this._onPopState) : window.addEventListener("hashchange", this._onHashChange), this._started = !0);
1815
- let e = Bi(this._mode);
1870
+ let e = Wi(this._mode);
1816
1871
  return (this._mode === "history" ? e === "/" || e === "/index.html" : !window.location.hash) && this._defaultPath ? this.navigate(this._defaultPath, { replace: !0 }) : this.refresh();
1817
1872
  }
1818
1873
  stop() {
@@ -1820,10 +1875,10 @@ var gi = class extends h {
1820
1875
  }
1821
1876
  navigate(e, t = {}) {
1822
1877
  let n = Z(e), r = this._resolve(n);
1823
- return this._canEnter(r.context) ? (Hi(n, t, this._mode) && !t.replace && this._mode === "hash" && (this._ignoreNextHashPath = n), this._renderResolved(r), this) : this;
1878
+ return this._canEnter(r.context) ? (Ki(n, t, this._mode) && !t.replace && this._mode === "hash" && (this._ignoreNextHashPath = n), this._renderResolved(r), this) : this;
1824
1879
  }
1825
1880
  refresh() {
1826
- let e = Bi(this._mode), t = this._resolve(e);
1881
+ let e = Wi(this._mode), t = this._resolve(e);
1827
1882
  return this._canEnter(t.context) && this._renderResolved(t), this;
1828
1883
  }
1829
1884
  renderPath(e) {
@@ -1869,16 +1924,16 @@ var gi = class extends h {
1869
1924
  _resolve(e) {
1870
1925
  let t = this._routes.map((t) => ({
1871
1926
  route: t,
1872
- match: Li(t.pattern, e)
1927
+ match: Vi(t.pattern, e)
1873
1928
  })).find(({ match: e }) => e);
1874
1929
  if (t) return {
1875
- context: Ri(this, e, t.route, t.match),
1930
+ context: Hi(this, e, t.route, t.match),
1876
1931
  route: t.route,
1877
1932
  view: t.route.view
1878
1933
  };
1879
1934
  let n = Q(e);
1880
1935
  return {
1881
- context: Ri(this, e, null, {
1936
+ context: Hi(this, e, null, {
1882
1937
  params: {},
1883
1938
  pathname: n.pathname,
1884
1939
  query: n.query
@@ -1888,7 +1943,7 @@ var gi = class extends h {
1888
1943
  };
1889
1944
  }
1890
1945
  _handleHashChange() {
1891
- let e = zi();
1946
+ let e = Ui();
1892
1947
  return this._ignoreNextHashPath === e ? (this._ignoreNextHashPath = null, this) : (this._ignoreNextHashPath = null, e === this._currentPath ? this : this.refresh());
1893
1948
  }
1894
1949
  _handlePopState() {
@@ -1905,7 +1960,7 @@ var gi = class extends h {
1905
1960
  }
1906
1961
  _renderResolved(e) {
1907
1962
  let { context: t, route: n, view: r } = e, i = typeof r == "function" ? r(t) : r;
1908
- if (this._navigationGeneration += 1, !Fi(i)) {
1963
+ if (this._navigationGeneration += 1, !zi(i)) {
1909
1964
  this._commitView(e, X(i, t));
1910
1965
  return;
1911
1966
  }
@@ -1926,32 +1981,32 @@ var gi = class extends h {
1926
1981
  this._destroyCurrentView(), i._children = [], i._el && i._el.replaceChildren(), i.child(t), this._currentPath = n.path, this._currentParams = n.params, this._currentQuery = n.query, this._currentRoute = r, this._currentView = t, this._subscribers.forEach((e) => e(n, this));
1927
1982
  }
1928
1983
  _buildLoadingView(e, t) {
1929
- return Ii(e?.loading ?? this._loadingView ?? Ni, [t]);
1984
+ return Bi(e?.loading ?? this._loadingView ?? Li, [t]);
1930
1985
  }
1931
1986
  _buildErrorView(e, t, n) {
1932
- return Ii(e?.error ?? this._errorView ?? Pi, [n, t]);
1987
+ return Bi(e?.error ?? this._errorView ?? Ri, [n, t]);
1933
1988
  }
1934
1989
  _destroyCurrentView() {
1935
1990
  this._currentView?.destroy && this._currentView.destroy(), this._currentView = null;
1936
1991
  }
1937
1992
  };
1938
- function _i(e = null, t = null, n = null) {
1939
- let r = p(e, t, n), i = new gi(r.first);
1993
+ function xi(e = null, t = null, n = null) {
1994
+ let r = p(e, t, n), i = new bi(r.first);
1940
1995
  return m(i, r.options), typeof r.callback == "function" && r.callback(i), i;
1941
1996
  }
1942
- var vi = _i;
1943
- function yi(e, t) {
1997
+ var Si = xi;
1998
+ function Ci(e, t) {
1944
1999
  return {
1945
2000
  config: t,
1946
2001
  pattern: e
1947
2002
  };
1948
2003
  }
1949
- function bi(e = null, t = null, n = null) {
1950
- let r = p(e, t, n), i = new gi();
1951
- return i.vRoute = (e, t) => (i.route(e, t), i), Di(i, r.first), m(i, r.options), typeof r.callback == "function" && r.callback(i), i;
2004
+ function wi(e = null, t = null, n = null) {
2005
+ let r = p(e, t, n), i = new bi();
2006
+ return i.vRoute = (e, t) => (i.route(e, t), i), ji(i, r.first), m(i, r.options), typeof r.callback == "function" && r.callback(i), i;
1952
2007
  }
1953
- function xi(e, t = null, n = null) {
1954
- Ti(e);
2008
+ function Ti(e, t = null, n = null) {
2009
+ ki(e);
1955
2010
  let r = new h("a"), i = {
1956
2011
  exact: !0,
1957
2012
  label: null,
@@ -1960,21 +2015,21 @@ function xi(e, t = null, n = null) {
1960
2015
  replace: !1,
1961
2016
  to: "/"
1962
2017
  }, a = new h("span").className("yoya-vlink-label");
1963
- r.className("yoya-vlink"), r.attr("data-router-link", "true"), r.child(a), r.to = (e) => Y(r, i, "to", e), r.params = (e) => Y(r, i, "params", e || {}), r.query = (e) => Y(r, i, "query", e || {}), r.replace = (e) => Y(r, i, "replace", !!e), r.exact = (e) => Y(r, i, "exact", !!e), r.label = (e) => e === void 0 ? i.label : (i.label = e, M(a, _n(e)), r), Oi(r, i, t), ki(r, i, e), r.on("click", (t) => {
1964
- Mi(t, r) && (t.preventDefault(), e.navigate(Ai(i.to, i.params, i.query), { replace: i.replace }));
2018
+ r.className("yoya-vlink"), r.attr("data-router-link", "true"), r.child(a), r.to = (e) => Y(r, i, "to", e), r.params = (e) => Y(r, i, "params", e || {}), r.query = (e) => Y(r, i, "query", e || {}), r.replace = (e) => Y(r, i, "replace", !!e), r.exact = (e) => Y(r, i, "exact", !!e), r.label = (e) => e === void 0 ? i.label : (i.label = e, j(a, vn(e)), r), Mi(r, i, t), Ni(r, i, e), r.on("click", (t) => {
2019
+ Ii(t, r) && (t.preventDefault(), e.navigate(Pi(i.to, i.params, i.query), { replace: i.replace }));
1965
2020
  });
1966
- let o = e.subscribe(() => ki(r, i, e)), s = r.destroy.bind(r);
2021
+ let o = e.subscribe(() => Ni(r, i, e)), s = r.destroy.bind(r);
1967
2022
  return r.destroy = () => (o(), s()), typeof n == "function" && n(r), r;
1968
2023
  }
1969
- function Si(e, t = null, n = null) {
1970
- Ti(e);
2024
+ function Ei(e, t = null, n = null) {
2025
+ ki(e);
1971
2026
  let r = new h("div");
1972
2027
  r.className("yoya-vrouter-view"), r.attr("data-router-view", "true"), typeof t == "function" ? t(r) : t && r.setup(t), e.outlet(r);
1973
2028
  let i = r.destroy.bind(r);
1974
2029
  return r.destroy = () => (e.outlet() === r && e.outlet(e), i()), typeof n == "function" && n(r), r;
1975
2030
  }
1976
- function Ci(e, t = null, n = null) {
1977
- Ti(e);
2031
+ function Di(e, t = null, n = null) {
2032
+ ki(e);
1978
2033
  let r = new h("div"), i = new h("header").className("yoya-vrouter-views-titlebar").attr({
1979
2034
  role: "tablist",
1980
2035
  "aria-label": "已打开页面"
@@ -1986,7 +2041,7 @@ function Ci(e, t = null, n = null) {
1986
2041
  alignItems: "center",
1987
2042
  background: "transparent",
1988
2043
  border: "0",
1989
- color: O("color-text-secondary", "#57606a"),
2044
+ color: D("color-text-secondary", "#57606a"),
1990
2045
  cursor: "pointer",
1991
2046
  display: "none",
1992
2047
  flexShrink: "0",
@@ -2006,8 +2061,8 @@ function Ci(e, t = null, n = null) {
2006
2061
  role: "menu",
2007
2062
  "aria-label": "已打开页面"
2008
2063
  }).styles({
2009
- background: O("color-surface", "#ffffff"),
2010
- border: k("color-border", "#d0d7de"),
2064
+ background: D("color-surface", "#ffffff"),
2065
+ border: O("color-border", "#d0d7de"),
2011
2066
  borderRadius: "8px",
2012
2067
  boxShadow: "0 12px 28px rgba(15, 23, 42, 0.18)",
2013
2068
  display: "none",
@@ -2025,7 +2080,7 @@ function Ci(e, t = null, n = null) {
2025
2080
  overflow: !1,
2026
2081
  persist: !0,
2027
2082
  popupOpen: !1,
2028
- storageKey: mi(e),
2083
+ storageKey: vi(e),
2029
2084
  suppressPersist: !1,
2030
2085
  tabs: /* @__PURE__ */ new Map(),
2031
2086
  title: "工作区",
@@ -2033,19 +2088,19 @@ function Ci(e, t = null, n = null) {
2033
2088
  titlePosition: "top"
2034
2089
  };
2035
2090
  r.className("yoya-vrouter-views"), r.styles({
2036
- border: k("color-border", "#d0d7de"),
2037
- borderRadius: "8px",
2091
+ border: O("color-border", "#d0d7de"),
2092
+ boxSizing: "border-box",
2038
2093
  overflow: "hidden"
2039
2094
  }), i.styles({
2040
- background: O("color-surface-hover", "#f6f8fa"),
2041
- borderBottom: k("color-border", "#d0d7de"),
2095
+ background: D("color-surface-hover", "#f6f8fa"),
2096
+ borderBottom: O("color-border", "#d0d7de"),
2042
2097
  boxSizing: "border-box",
2043
- color: O("color-text-secondary", "#57606a"),
2098
+ color: D("color-text-secondary", "#57606a"),
2044
2099
  display: "flex",
2045
2100
  flexWrap: "nowrap",
2046
2101
  fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace",
2047
2102
  fontSize: "13px",
2048
- gap: "4px",
2103
+ gap: "0px",
2049
2104
  msOverflowStyle: "none",
2050
2105
  overflowX: "auto",
2051
2106
  overflowY: "hidden",
@@ -2090,25 +2145,25 @@ function Ci(e, t = null, n = null) {
2090
2145
  alignItems: t ? "stretch" : null,
2091
2146
  display: t ? "flex" : null
2092
2147
  }), i.styles({
2093
- background: O("color-surface-hover", "#f6f8fa"),
2094
- borderBottom: t ? null : k("color-border", "#d0d7de"),
2148
+ background: D("color-surface-hover", "#f6f8fa"),
2149
+ borderBottom: t ? null : O("color-border", "#d0d7de"),
2095
2150
  borderLeft: e === "right" ? "1px solid" : null,
2096
- borderLeftColor: e === "right" ? O("color-border", "#d0d7de") : null,
2151
+ borderLeftColor: e === "right" ? D("color-border", "#d0d7de") : null,
2097
2152
  borderLeftStyle: e === "right" ? "solid" : null,
2098
2153
  borderLeftWidth: e === "right" ? "1px" : null,
2099
2154
  borderRight: e === "left" ? "1px solid" : null,
2100
- borderRightColor: e === "left" ? O("color-border", "#d0d7de") : null,
2155
+ borderRightColor: e === "left" ? D("color-border", "#d0d7de") : null,
2101
2156
  borderRightStyle: e === "left" ? "solid" : null,
2102
2157
  borderRightWidth: e === "left" ? "1px" : null,
2103
2158
  boxSizing: "border-box",
2104
- color: O("color-text-secondary", "#57606a"),
2159
+ color: D("color-text-secondary", "#57606a"),
2105
2160
  display: "flex",
2106
2161
  flexDirection: t ? "column" : "row",
2107
2162
  flexShrink: t ? "0" : null,
2108
2163
  flexWrap: "nowrap",
2109
2164
  fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace",
2110
2165
  fontSize: "13px",
2111
- gap: "4px",
2166
+ gap: "0px",
2112
2167
  msOverflowStyle: "none",
2113
2168
  overflowX: t ? "hidden" : "auto",
2114
2169
  overflowY: t ? "auto" : "hidden",
@@ -2142,13 +2197,12 @@ function Ci(e, t = null, n = null) {
2142
2197
  }, m = (e, t) => {
2143
2198
  let n = l.titlePosition, r = n !== "top";
2144
2199
  e.renderDom().querySelector(".yoya-vrouter-views-label")?.setAttribute("aria-selected", String(t)), e.styles({
2145
- background: t ? O("color-surface", "#ffffff") : O("color-surface-active", "#eaeef2"),
2146
- border: k("color-border", "#d0d7de"),
2147
- borderBottomColor: n === "top" && t ? O("color-surface", "#ffffff") : O("color-border", "#d0d7de"),
2148
- borderLeftColor: n === "right" && t ? O("color-surface", "#ffffff") : O("color-border", "#d0d7de"),
2149
- borderRadius: n === "left" ? "6px 0 0 6px" : n === "right" ? "0 6px 6px 0" : "6px 6px 0 0",
2150
- borderRightColor: n === "left" && t ? O("color-surface", "#ffffff") : O("color-border", "#d0d7de"),
2151
- color: t ? O("color-text", "#24292f") : O("color-text-secondary", "#57606a"),
2200
+ background: t ? D("color-surface", "#ffffff") : D("color-surface-active", "#eaeef2"),
2201
+ border: O("color-border", "#d0d7de"),
2202
+ borderBottomColor: n === "top" && t ? D("color-surface", "#ffffff") : D("color-border", "#d0d7de"),
2203
+ borderLeftColor: "transparent",
2204
+ borderRightColor: n === "left" && t ? D("color-surface", "#ffffff") : D("color-border", "#d0d7de"),
2205
+ color: t ? D("color-text", "#24292f") : D("color-text-secondary", "#57606a"),
2152
2206
  fontWeight: t ? "600" : "400",
2153
2207
  marginBottom: n === "top" ? "-9px" : "0",
2154
2208
  marginLeft: n === "right" ? "-9px" : "0",
@@ -2192,7 +2246,7 @@ function Ci(e, t = null, n = null) {
2192
2246
  }).styles({
2193
2247
  alignItems: "center",
2194
2248
  borderRadius: "6px",
2195
- color: O("color-text", "#24292f"),
2249
+ color: D("color-text", "#24292f"),
2196
2250
  cursor: "pointer",
2197
2251
  display: "flex",
2198
2252
  fontSize: "13px",
@@ -2219,8 +2273,8 @@ function Ci(e, t = null, n = null) {
2219
2273
  padding: "2px 4px"
2220
2274
  }).text("×");
2221
2275
  t === e.currentPath() && (i.attr("aria-current", "true"), i.styles({
2222
- background: O("color-primary-subtle", "#e8f0fe"),
2223
- color: O("color-primary", "#1f6feb")
2276
+ background: D("color-primary-subtle", "#e8f0fe"),
2277
+ color: D("color-primary", "#1f6feb")
2224
2278
  }));
2225
2279
  let s = () => {
2226
2280
  x(), e.navigate(t);
@@ -2228,12 +2282,12 @@ function Ci(e, t = null, n = null) {
2228
2282
  i.on("click", s), i.on("keydown", (e) => {
2229
2283
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), s());
2230
2284
  }), o.on("click", (e) => {
2231
- e.stopPropagation(), C(t, e), l.popupOpen && S();
2285
+ e.stopPropagation(), ne(t, e), l.popupOpen && S();
2232
2286
  }), i.child(a, o), c.child(i);
2233
2287
  });
2234
2288
  }, ee = () => {
2235
2289
  if (l.tabs.size === 0) return;
2236
- pi(), S(), l.popupOpen = !0, r.attr("data-title-popup", "true"), s.attr("aria-expanded", "true"), c.styles({ display: "block" }), a();
2290
+ _i(), S(), l.popupOpen = !0, r.attr("data-title-popup", "true"), s.attr("aria-expanded", "true"), c.styles({ display: "block" }), a();
2237
2291
  let e = (e) => {
2238
2292
  !c._el?.contains(e.target) && !s._el?.contains(e.target) && x();
2239
2293
  }, t = (e) => {
@@ -2259,17 +2313,17 @@ function Ci(e, t = null, n = null) {
2259
2313
  });
2260
2314
  let te = r.renderDom.bind(r);
2261
2315
  r.renderDom = () => {
2262
- pi();
2316
+ _i();
2263
2317
  let e = te();
2264
2318
  return _(), e;
2265
2319
  }, r.updateOverflow = _, r.titlePosition = (t) => {
2266
2320
  if (t === void 0) return l.titlePosition;
2267
- let n = Ei(t);
2321
+ let n = Ai(t);
2268
2322
  return l.titlePosition = n, n !== "top" && l.popupOpen && x(), r.attr("data-title-position", l.titlePosition), i.attr("aria-orientation", l.titlePosition === "top" ? "horizontal" : "vertical"), f(l.titlePosition), v(), l.tabs.forEach(({ tab: t }, n) => {
2269
2323
  m(t, n === e.currentPath());
2270
2324
  }), _(), r;
2271
2325
  }, r.titlePosition(l.titlePosition), r.lockTitle = (e = !0) => e === void 0 ? l.lockTitle : (l.lockTitle = !!e, r.attr("data-title-locked", l.lockTitle ? "true" : null), f(l.titlePosition), _(), r), r.titleLocked = r.lockTitle;
2272
- let C = (t, n = null) => {
2326
+ let ne = (t, n = null) => {
2273
2327
  n && n.stopPropagation();
2274
2328
  let r = Array.from(l.tabs.entries()).findIndex(([e]) => e === t), o = l.tabs.get(t);
2275
2329
  if (!o) return;
@@ -2282,12 +2336,12 @@ function Ci(e, t = null, n = null) {
2282
2336
  return;
2283
2337
  }
2284
2338
  a.clearChildren().commit(), e._navigationGeneration += 1, e._currentView = null;
2285
- }, w = new h("div").className("yoya-vrouter-views-context").attr({
2339
+ }, C = new h("div").className("yoya-vrouter-views-context").attr({
2286
2340
  role: "menu",
2287
2341
  "aria-label": "标签页操作"
2288
2342
  }).styles({
2289
- background: O("color-surface", "#ffffff"),
2290
- border: k("color-border", "#d0d7de"),
2343
+ background: D("color-surface", "#ffffff"),
2344
+ border: O("color-border", "#d0d7de"),
2291
2345
  borderRadius: "8px",
2292
2346
  boxShadow: "0 12px 28px rgba(15, 23, 42, 0.18)",
2293
2347
  display: "none",
@@ -2295,9 +2349,9 @@ function Ci(e, t = null, n = null) {
2295
2349
  padding: "6px",
2296
2350
  position: "fixed",
2297
2351
  zIndex: "100"
2298
- }), T = null, E = () => {
2299
- w.styles({ display: "none" }), w.clearChildren(), w._el?.remove(), T &&= (T(), null);
2300
- }, D = (t, n = null) => {
2352
+ }), w = null, T = () => {
2353
+ C.styles({ display: "none" }), C.clearChildren(), C._el?.remove(), w &&= (w(), null);
2354
+ }, E = (t, n = null) => {
2301
2355
  let r = new Set(t), o = Array.from(l.tabs.entries()), s = o.findIndex(([e]) => r.has(e));
2302
2356
  if (o.forEach(([e, t]) => {
2303
2357
  r.has(e) && (l.tabs.delete(e), i._children = i.children().filter((e) => e !== t.tab), i._childrenDirty = !0, t.tab.destroy());
@@ -2309,20 +2363,20 @@ function Ci(e, t = null, n = null) {
2309
2363
  }
2310
2364
  let u = n && l.tabs.has(n) ? n : c[Math.min(Math.max(s, 0), c.length - 1)];
2311
2365
  e.navigate(u, { replace: !0 });
2312
- }, ne = (t) => {
2366
+ }, re = (t) => {
2313
2367
  if (typeof navigator > "u" || !navigator.clipboard) return;
2314
2368
  let n = typeof window > "u" ? "" : window.location.origin, r = typeof window > "u" ? "" : window.location.pathname, i = e.mode() === "history" ? `${n}${r}${t}` : `${n}${r}#${t}`;
2315
2369
  navigator.clipboard.writeText(i).catch(() => {});
2316
- }, re = (t, n) => {
2317
- l.popupOpen && x(), E();
2318
- let r = Array.from(l.tabs.entries()), i = r.findIndex(([e]) => e === t), a = () => D(r.filter(([e]) => e !== t).map(([e]) => e), t), o = () => D(r.slice(0, i).map(([e]) => e), t), s = () => D(r.slice(i + 1).map(([e]) => e), t), c = () => D(r.map(([e]) => e)), u = (e, t, n = !1, r = !1) => {
2370
+ }, ie = (t, n) => {
2371
+ l.popupOpen && x(), T();
2372
+ let r = Array.from(l.tabs.entries()), i = r.findIndex(([e]) => e === t), a = () => E(r.filter(([e]) => e !== t).map(([e]) => e), t), o = () => E(r.slice(0, i).map(([e]) => e), t), s = () => E(r.slice(i + 1).map(([e]) => e), t), c = () => E(r.map(([e]) => e)), u = (e, t, n = !1, r = !1) => {
2319
2373
  let i = new h("div").className("yoya-vrouter-views-context-item").attr({
2320
2374
  role: "menuitem",
2321
2375
  tabIndex: "0"
2322
2376
  }).text(e).styles({
2323
2377
  alignItems: "center",
2324
2378
  borderRadius: "6px",
2325
- color: n ? O("color-text-danger", "#b91c1c") : O("color-text", "#24292f"),
2379
+ color: n ? D("color-text-danger", "#b91c1c") : D("color-text", "#24292f"),
2326
2380
  cursor: r ? "default" : "pointer",
2327
2381
  display: "flex",
2328
2382
  fontSize: "13px",
@@ -2331,24 +2385,24 @@ function Ci(e, t = null, n = null) {
2331
2385
  width: "100%"
2332
2386
  });
2333
2387
  return r ? (i.attr("aria-disabled", "true"), i.styles({ opacity: "0.4" })) : i.on("click", () => {
2334
- E(), t();
2335
- }), w.child(i), i;
2336
- }, d = () => w.child(new h("div").className("yoya-vrouter-views-context-separator"));
2337
- u("刷新", () => e.navigate(t, { replace: !0 })), u("复制链接", () => ne(t)), d(), u("关闭", () => C(t), !0), u("关闭其他", a, !1, r.length <= 1), u("关闭左侧", o, !1, i <= 0), u("关闭右侧", s, !1, i === r.length - 1), d(), u("关闭全部", c, !0, r.length === 0), document.body.appendChild(w.renderDom()), w.styles({ display: "block" });
2338
- let f = w._el.getBoundingClientRect(), p = typeof window > "u" ? 0 : window.innerWidth || 0, m = typeof window > "u" ? 0 : window.innerHeight || 0, g = Math.max(8, Math.min(n.clientX || 0, p - f.width - 8)), _ = Math.max(8, Math.min(n.clientY || 0, m - f.height - 8));
2339
- w.styles({
2388
+ T(), t();
2389
+ }), C.child(i), i;
2390
+ }, d = () => C.child(new h("div").className("yoya-vrouter-views-context-separator"));
2391
+ u("刷新", () => e.navigate(t, { replace: !0 })), u("复制链接", () => re(t)), d(), u("关闭", () => ne(t), !0), u("关闭其他", a, !1, r.length <= 1), u("关闭左侧", o, !1, i <= 0), u("关闭右侧", s, !1, i === r.length - 1), d(), u("关闭全部", c, !0, r.length === 0), document.body.appendChild(C.renderDom()), C.styles({ display: "block" });
2392
+ let f = C._el.getBoundingClientRect(), p = typeof window > "u" ? 0 : window.innerWidth || 0, m = typeof window > "u" ? 0 : window.innerHeight || 0, g = Math.max(8, Math.min(n.clientX || 0, p - f.width - 8)), _ = Math.max(8, Math.min(n.clientY || 0, m - f.height - 8));
2393
+ C.styles({
2340
2394
  left: `${g}px`,
2341
2395
  top: `${_}px`
2342
2396
  });
2343
2397
  let v = (e) => {
2344
- w._el?.contains(e.target) || E();
2398
+ C._el?.contains(e.target) || T();
2345
2399
  }, y = (e) => {
2346
- e.key === "Escape" && E();
2347
- }, b = () => E();
2348
- document.addEventListener("mousedown", v), document.addEventListener("keydown", y), window.addEventListener("scroll", b, !0), window.addEventListener("resize", b), T = () => {
2400
+ e.key === "Escape" && T();
2401
+ }, b = () => T();
2402
+ document.addEventListener("mousedown", v), document.addEventListener("keydown", y), window.addEventListener("scroll", b, !0), window.addEventListener("resize", b), w = () => {
2349
2403
  document.removeEventListener("mousedown", v), document.removeEventListener("keydown", y), window.removeEventListener("scroll", b, !0), window.removeEventListener("resize", b);
2350
2404
  };
2351
- }, ie = (t = {}) => {
2405
+ }, ae = (t = {}) => {
2352
2406
  let n = t.path || e.currentPath(), r = new Set(l.titlePosition === "top" ? Array.from(l.tabs.keys()).slice(0, q) : Array.from(l.tabs.keys())), a = l.tabs.get(n);
2353
2407
  if (a) {
2354
2408
  let e = p(t);
@@ -2383,8 +2437,8 @@ function Ci(e, t = null, n = null) {
2383
2437
  font: "inherit",
2384
2438
  lineHeight: "1",
2385
2439
  padding: "0"
2386
- }), c.text("×"), c.on("click", (e) => C(n, e)), r.on("contextmenu", (e) => {
2387
- e.preventDefault(), e.stopPropagation(), re(n, e);
2440
+ }), c.text("×"), c.on("click", (e) => ne(n, e)), r.on("contextmenu", (e) => {
2441
+ e.preventDefault(), e.stopPropagation(), ie(n, e);
2388
2442
  }), r.child(s, c), i.child(r), m(r, !1), a = {
2389
2443
  closeButton: c,
2390
2444
  tab: r,
@@ -2392,15 +2446,15 @@ function Ci(e, t = null, n = null) {
2392
2446
  }, l.tabs.set(n, a);
2393
2447
  }
2394
2448
  r.has(n) || (l.tabs.delete(n), l.tabs = new Map([[n, a], ...l.tabs])), l.tabs.forEach(({ tab: e }, t) => m(e, t === n)), v(), l.popupOpen && S(), y();
2395
- }, ae = () => {
2449
+ }, oe = () => {
2396
2450
  if (!l.persist) return;
2397
- let t = hi(l.storageKey);
2451
+ let t = yi(l.storageKey);
2398
2452
  if (t) {
2399
2453
  l.suppressPersist = !0;
2400
2454
  try {
2401
2455
  t.paths.slice().reverse().forEach((t) => {
2402
2456
  let n = e._resolve(t);
2403
- ie({
2457
+ ae({
2404
2458
  ...n.context,
2405
2459
  path: t
2406
2460
  });
@@ -2415,42 +2469,42 @@ function Ci(e, t = null, n = null) {
2415
2469
  let { persist: e, storageKey: n, title: i, titlePosition: a, titleResolver: o, ...s } = t;
2416
2470
  i !== void 0 && (l.title = i), e !== void 0 && (l.persist = !!e), n !== void 0 && (l.storageKey = n), a !== void 0 && r.titlePosition(a), typeof o == "function" && (l.titleResolver = o), Object.keys(s).length > 0 && r.setup(s);
2417
2471
  }
2418
- e.outlet(a), ae(), (e.currentRoute() || e.currentPath() !== "/") && ie({
2472
+ e.outlet(a), oe(), (e.currentRoute() || e.currentPath() !== "/") && ae({
2419
2473
  params: e.currentParams(),
2420
2474
  path: e.currentPath(),
2421
2475
  query: e.currentQuery(),
2422
2476
  route: e.currentRoute(),
2423
2477
  router: e
2424
2478
  });
2425
- let oe = e.subscribe((e) => ie(e)), se = () => _();
2426
- typeof window < "u" && window.addEventListener("resize", se);
2427
- let ce = r.destroy.bind(r);
2428
- return r.destroy = () => (l.popupOpen && x(), E(), typeof window < "u" && window.removeEventListener("resize", se), oe(), e.outlet() === a && e.outlet(e), ce()), typeof n == "function" && n(r), r;
2479
+ let se = e.subscribe((e) => ae(e)), ce = () => _();
2480
+ typeof window < "u" && window.addEventListener("resize", ce);
2481
+ let le = r.destroy.bind(r);
2482
+ return r.destroy = () => (l.popupOpen && x(), T(), typeof window < "u" && window.removeEventListener("resize", ce), se(), e.outlet() === a && e.outlet(e), le()), typeof n == "function" && n(r), r;
2429
2483
  }
2430
2484
  _(h, {
2431
- vLink: xi,
2432
- vRouter: bi,
2433
- vRouterView: Si,
2434
- vRouterViews: Ci
2485
+ vLink: Ti,
2486
+ vRouter: wi,
2487
+ vRouterView: Ei,
2488
+ vRouterViews: Di
2435
2489
  });
2436
- function wi(e, t) {
2490
+ function Oi(e, t) {
2437
2491
  let n = {
2438
2492
  beforeEnter: null,
2439
2493
  error: null,
2440
2494
  loading: null,
2441
- pattern: Ui(e),
2495
+ pattern: qi(e),
2442
2496
  title: null,
2443
2497
  view: null
2444
2498
  };
2445
- return typeof t == "function" || t instanceof c || Gi(t) ? (n.view = t, n) : (t && typeof t == "object" && (n.beforeEnter = t.beforeEnter || null, n.error = t.error ?? null, n.loading = t.loading ?? null, n.title = t.title ?? null, n.view = t.view || t.component || null), n);
2499
+ return typeof t == "function" || t instanceof c || Yi(t) ? (n.view = t, n) : (t && typeof t == "object" && (n.beforeEnter = t.beforeEnter || null, n.error = t.error ?? null, n.loading = t.loading ?? null, n.title = t.title ?? null, n.view = t.view || t.component || null), n);
2446
2500
  }
2447
- function Ti(e) {
2448
- if (!(e instanceof gi)) throw TypeError("vLink and vRouterView require a Router instance");
2501
+ function ki(e) {
2502
+ if (!(e instanceof bi)) throw TypeError("vLink and vRouterView require a Router instance");
2449
2503
  }
2450
- function Ei(e) {
2504
+ function Ai(e) {
2451
2505
  return e === "left" || e === "right" ? e : "top";
2452
2506
  }
2453
- function Di(e, t) {
2507
+ function ji(e, t) {
2454
2508
  if (typeof t == "function") return t(e), e;
2455
2509
  if (!t || typeof t != "object") return e;
2456
2510
  let { beforeEach: n, default: r, error: i, loading: a, notFound: o, routes: s = [], ...c } = t;
@@ -2458,7 +2512,7 @@ function Di(e, t) {
2458
2512
  t?.pattern !== void 0 && e.vRoute(t.pattern, t.config);
2459
2513
  }), o !== void 0 && e.notFound(o), e;
2460
2514
  }
2461
- function Oi(e, t, n) {
2515
+ function Mi(e, t, n) {
2462
2516
  if (typeof n == "function") {
2463
2517
  n(e);
2464
2518
  return;
@@ -2473,20 +2527,20 @@ function Oi(e, t, n) {
2473
2527
  }
2474
2528
  function Y(e, t, n, r) {
2475
2529
  if (r === void 0) return t[n];
2476
- t[n] = r, n === "to" && t.label === null && M(e.children()[0], _n(r));
2530
+ t[n] = r, n === "to" && t.label === null && j(e.children()[0], vn(r));
2477
2531
  let i = e._routerInstance;
2478
- return i && ki(e, t, i), e;
2532
+ return i && Ni(e, t, i), e;
2479
2533
  }
2480
- function ki(e, t, n) {
2534
+ function Ni(e, t, n) {
2481
2535
  e._routerInstance = n;
2482
- let r = Ai(t.to, t.params, t.query), i = ji(n.currentPath(), r, t.exact), a = new Set(String(e.attr("class") || "").split(/\s+/).filter(Boolean));
2536
+ let r = Pi(t.to, t.params, t.query), i = Fi(n.currentPath(), r, t.exact), a = new Set(String(e.attr("class") || "").split(/\s+/).filter(Boolean));
2483
2537
  return a.add("yoya-vlink"), i ? a.add("is-active") : a.delete("is-active"), e.attr({
2484
2538
  "aria-current": i ? "page" : null,
2485
2539
  class: [...a].join(" "),
2486
2540
  href: n.mode() === "history" ? r : `#${r}`
2487
2541
  }), e;
2488
2542
  }
2489
- function Ai(e, t, n) {
2543
+ function Pi(e, t, n) {
2490
2544
  let [r, i = ""] = Z(e).split("?"), a = r.replace(/:([A-Za-z0-9_]+)/g, (e, n) => t[n] === void 0 ? e : encodeURIComponent(t[n])), o = new URLSearchParams(i);
2491
2545
  Object.entries(n || {}).forEach(([e, t]) => {
2492
2546
  o.delete(e), Array.isArray(t) ? t.forEach((t) => o.append(e, t)) : t != null && o.set(e, t);
@@ -2494,33 +2548,33 @@ function Ai(e, t, n) {
2494
2548
  let s = o.toString();
2495
2549
  return s ? `${a}?${s}` : a;
2496
2550
  }
2497
- function ji(e, t, n) {
2551
+ function Fi(e, t, n) {
2498
2552
  let r = Z(e), i = Z(t);
2499
2553
  if (n) return r === i;
2500
2554
  let a = Q(r).pathname, o = Q(i).pathname;
2501
2555
  return a === o || a.startsWith(`${o}/`);
2502
2556
  }
2503
- function Mi(e, t) {
2557
+ function Ii(e, t) {
2504
2558
  return !e.defaultPrevented && e.button === 0 && !e.metaKey && !e.ctrlKey && !e.shiftKey && !e.altKey && (!t.attr("target") || t.attr("target") === "_self");
2505
2559
  }
2506
2560
  function X(e, t) {
2507
2561
  if (e instanceof c) return e;
2508
2562
  if (e == null) return d("");
2509
- if (Gi(e)) return d(e);
2563
+ if (Yi(e)) return d(e);
2510
2564
  if (typeof e == "object" && e && e.default !== void 0 && typeof e.render != "function") return X(e.default, t);
2511
2565
  if (typeof e == "function") return X(e(t), t);
2512
2566
  if (typeof e == "object" && typeof e.render == "function") return X(e.render(), t);
2513
2567
  throw TypeError("Router route view must be a ViewNode, string, number, null, undefined, a render() component object, a factory returning one, or a module with a default export");
2514
2568
  }
2515
- var Ni = () => "加载中…", Pi = (e) => `加载失败:${e?.message ?? String(e)}`;
2516
- function Fi(e) {
2569
+ var Li = () => "加载中…", Ri = (e) => `加载失败:${e?.message ?? String(e)}`;
2570
+ function zi(e) {
2517
2571
  return e !== null && (typeof e == "object" || typeof e == "function") && typeof e.then == "function";
2518
2572
  }
2519
- function Ii(e, t) {
2573
+ function Bi(e, t) {
2520
2574
  return X(typeof e == "function" ? e(...t) : e, t[t.length - 1]);
2521
2575
  }
2522
- function Li(e, t) {
2523
- let n = Q(e), r = Q(t), i = Wi(n.pathname), a = Wi(r.pathname);
2576
+ function Vi(e, t) {
2577
+ let n = Q(e), r = Q(t), i = Ji(n.pathname), a = Ji(r.pathname);
2524
2578
  if (i.length !== a.length) return null;
2525
2579
  let o = {};
2526
2580
  for (let e = 0; e < i.length; e += 1) {
@@ -2537,7 +2591,7 @@ function Li(e, t) {
2537
2591
  query: r.query
2538
2592
  };
2539
2593
  }
2540
- function Ri(e, t, n, r) {
2594
+ function Hi(e, t, n, r) {
2541
2595
  return {
2542
2596
  params: { ...r.params },
2543
2597
  path: t,
@@ -2547,24 +2601,24 @@ function Ri(e, t, n, r) {
2547
2601
  router: e
2548
2602
  };
2549
2603
  }
2550
- function zi() {
2604
+ function Ui() {
2551
2605
  return typeof window > "u" ? "/" : Z(window.location.hash.replace(/^#/, "") || "/");
2552
2606
  }
2553
- function Bi(e = "hash") {
2554
- return typeof window > "u" ? "/" : e === "history" ? Z(`${window.location.pathname}${window.location.search}`) : zi();
2607
+ function Wi(e = "hash") {
2608
+ return typeof window > "u" ? "/" : e === "history" ? Z(`${window.location.pathname}${window.location.search}`) : Ui();
2555
2609
  }
2556
- function Vi(e, t = {}) {
2610
+ function Gi(e, t = {}) {
2557
2611
  if (typeof window > "u") return !1;
2558
2612
  let n = `#${e}`;
2559
2613
  return t.replace ? (window.history.replaceState(null, "", n), !0) : window.location.hash !== n && (window.location.hash = n, !0);
2560
2614
  }
2561
- function Hi(e, t = {}, n = "hash") {
2615
+ function Ki(e, t = {}, n = "hash") {
2562
2616
  if (typeof window > "u") return !1;
2563
- if (n !== "history") return Vi(e, t);
2564
- let r = Z(e), i = Bi("history");
2617
+ if (n !== "history") return Gi(e, t);
2618
+ let r = Z(e), i = Wi("history");
2565
2619
  return !t.replace && i === r ? !1 : (t.replace ? window.history.replaceState(null, "", r) : window.history.pushState(null, "", r), !0);
2566
2620
  }
2567
- function Ui(e) {
2621
+ function qi(e) {
2568
2622
  return Z(e).split("?")[0] || "/";
2569
2623
  }
2570
2624
  function Z(e) {
@@ -2578,37 +2632,37 @@ function Q(e) {
2578
2632
  query: Object.fromEntries(new URLSearchParams(n))
2579
2633
  };
2580
2634
  }
2581
- function Wi(e) {
2635
+ function Ji(e) {
2582
2636
  return e.split("/").filter(Boolean);
2583
2637
  }
2584
- function Gi(e) {
2638
+ function Yi(e) {
2585
2639
  return typeof e == "string" || typeof e == "number";
2586
2640
  }
2587
2641
  //#endregion
2588
2642
  //#region src/core/id.js
2589
- var Ki = null;
2590
- function qi() {
2643
+ var Xi = null;
2644
+ function Zi() {
2591
2645
  let e = 0;
2592
2646
  return { next() {
2593
2647
  return e += 1, e;
2594
2648
  } };
2595
2649
  }
2596
- function Ji(e, t) {
2597
- let n = Ki;
2598
- Ki = e;
2650
+ function Qi(e, t) {
2651
+ let n = Xi;
2652
+ Xi = e;
2599
2653
  try {
2600
2654
  return t();
2601
2655
  } finally {
2602
- Ki = n;
2656
+ Xi = n;
2603
2657
  }
2604
2658
  }
2605
2659
  //#endregion
2606
2660
  //#region src/core/ssr.js
2607
- function Yi(e = {}, t = {}) {
2661
+ function $i(e = {}, t = {}) {
2608
2662
  let { cookie: n = "", url: r = "", acceptLanguage: i = "" } = e || {}, { cookieKey: a = "yoya-lang", queryKey: o = "locale", defaultLanguage: s = "zh-CN" } = t;
2609
- return Xi(n, a) || Zi(r, o) || Qi(i) || s;
2663
+ return ea(n, a) || ta(r, o) || na(i) || s;
2610
2664
  }
2611
- function Xi(e, t) {
2665
+ function ea(e, t) {
2612
2666
  if (!e || !t) return null;
2613
2667
  for (let n of String(e).split(";")) {
2614
2668
  let e = n.indexOf("=");
@@ -2623,17 +2677,17 @@ function Xi(e, t) {
2623
2677
  }
2624
2678
  return null;
2625
2679
  }
2626
- function Zi(e, t) {
2680
+ function ta(e, t) {
2627
2681
  if (!e || !t) return null;
2628
2682
  let n = String(e).indexOf("?");
2629
2683
  return n === -1 ? null : new URLSearchParams(String(e).slice(n + 1)).get(t) || null;
2630
2684
  }
2631
- function Qi(e) {
2685
+ function na(e) {
2632
2686
  if (!e) return null;
2633
2687
  let t = String(e).split(",")[0];
2634
2688
  return t && t.split(";")[0].trim() || null;
2635
2689
  }
2636
- function $i(e, t, n) {
2690
+ function ra(e, t, n) {
2637
2691
  return e ? Ir(typeof e == "function" ? e(t) : e, n) : n();
2638
2692
  }
2639
2693
  function $(e, t = null) {
@@ -2642,18 +2696,18 @@ function $(e, t = null) {
2642
2696
  if (e && typeof e.render == "function") return $(e.render(), t);
2643
2697
  throw TypeError("renderToString/mount requires a ViewNode, a component object with render(), or a factory function");
2644
2698
  }
2645
- function ea(e) {
2699
+ function ia(e) {
2646
2700
  let t = 1;
2647
2701
  return typeof e.children == "function" && e.children().forEach((e) => {
2648
- t += ea(e instanceof u ? e._resolve() : e);
2702
+ t += ia(e instanceof u ? e._resolve() : e);
2649
2703
  }), t;
2650
2704
  }
2651
- function ta(e, t = {}) {
2652
- let { maxNodes: n = Infinity, state: r = null, i18n: i = null } = t || {}, a = oa(r);
2653
- return Ji(qi(), () => $i(i, r, () => {
2705
+ function aa(e, t = {}) {
2706
+ let { maxNodes: n = Infinity, state: r = null, i18n: i = null } = t || {}, a = ua(r);
2707
+ return Qi(Zi(), () => ra(i, r, () => {
2654
2708
  let t = typeof e == "function", i = $(e, r), o;
2655
2709
  try {
2656
- o = ea(i) > n ? {
2710
+ o = ia(i) > n ? {
2657
2711
  exceeded: !0,
2658
2712
  html: "",
2659
2713
  state: a
@@ -2668,7 +2722,7 @@ function ta(e, t = {}) {
2668
2722
  return o;
2669
2723
  }));
2670
2724
  }
2671
- var na = class extends v {
2725
+ var oa = class extends v {
2672
2726
  constructor() {
2673
2727
  super("html", null), this._headCallback = null, this._bodyCallback = null;
2674
2728
  }
@@ -2682,26 +2736,26 @@ var na = class extends v {
2682
2736
  return this.body((t) => t.vBody(...e));
2683
2737
  }
2684
2738
  };
2685
- function ra(e) {
2739
+ function sa(e) {
2686
2740
  return String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;");
2687
2741
  }
2688
- function ia(e, t = {}, n = {}) {
2742
+ function ca(e, t = {}, n = {}) {
2689
2743
  let { client: r = "/client.js", containerId: i = "app", i18n: a = null, maxNodes: o = Infinity, messages: s, stateId: c = "__YOYA_DATA__" } = n || {}, l = t || {};
2690
2744
  if (!e || typeof e.page != "function") throw TypeError("renderPage requires { page: (page, state) => {} }");
2691
2745
  let u = a || (s ? () => Nr({
2692
2746
  language: l.lang || "zh-CN",
2693
2747
  messages: s
2694
- }) : null), d = oa(l);
2695
- return Ji(qi(), () => $i(u, l, () => {
2696
- let t = new na();
2748
+ }) : null), d = ua(l);
2749
+ return Qi(Zi(), () => ra(u, l, () => {
2750
+ let t = new oa();
2697
2751
  e.page(t, l);
2698
2752
  let n = new v("head");
2699
2753
  t._headCallback && t._headCallback(n, l);
2700
2754
  let a = new v("body");
2701
2755
  t._bodyCallback && t._bodyCallback(a, l);
2702
- let s = ea(a) > o, u = n.toHTML(), f = `<div id="${ra(i)}">`, p = s ? `${f}</div>` : `${f}${a.toHTML()}</div>`, m = `<script type="application/json" id="${ra(c)}">${d}<\/script>`, h = `<script type="module" src="${ra(r)}"><\/script>`;
2756
+ let s = ia(a) > o, u = n.toHTML(), f = `<div id="${sa(i)}">`, p = s ? `${f}</div>` : `${f}${a.toHTML()}</div>`, m = `<script type="application/json" id="${sa(c)}">${d}<\/script>`, h = `<script type="module" src="${sa(r)}"><\/script>`;
2703
2757
  return n.destroy(), a.destroy(), `<!doctype html>
2704
- <html lang="${ra(l.lang || "zh-CN")}">
2758
+ <html lang="${sa(l.lang || "zh-CN")}">
2705
2759
  ${u}
2706
2760
  <body>
2707
2761
  ${p}
@@ -2711,69 +2765,69 @@ ${h}
2711
2765
  </html>`;
2712
2766
  }));
2713
2767
  }
2714
- function aa(e, t = {}) {
2768
+ function la(e, t = {}) {
2715
2769
  if (typeof document > "u") return null;
2716
- let { messages: r, i18n: i = null, stateId: a = "__YOYA_DATA__", target: o = "#app" } = t || {}, s = document.getElementById(a), c = sa(s ? s.textContent : ""), l = i || (r ? () => Nr({
2770
+ let { messages: r, i18n: i = null, stateId: a = "__YOYA_DATA__", target: o = "#app" } = t || {}, s = document.getElementById(a), c = da(s ? s.textContent : ""), l = i || (r ? () => Nr({
2717
2771
  language: c?.lang || "zh-CN",
2718
2772
  messages: r
2719
2773
  }) : null), u = n(o);
2720
- return u && u.firstElementChild ? la(e, o, c, { i18n: l }) : ca(e, o, c, { i18n: l });
2774
+ return u && u.firstElementChild ? pa(e, o, c, { i18n: l }) : fa(e, o, c, { i18n: l });
2721
2775
  }
2722
- function oa(e) {
2776
+ function ua(e) {
2723
2777
  return e == null ? null : JSON.stringify(e).replace(/</g, "\\u003c");
2724
2778
  }
2725
- function sa(e) {
2779
+ function da(e) {
2726
2780
  return e == null || e === "" ? null : JSON.parse(e);
2727
2781
  }
2728
- function ca(e, t, r = null, i = {}) {
2729
- return Ji(qi(), () => $i(i.i18n, r, () => {
2782
+ function fa(e, t, r = null, i = {}) {
2783
+ return Qi(Zi(), () => ra(i.i18n, r, () => {
2730
2784
  let i = $(e, r), a = n(t);
2731
2785
  return a && (a.replaceChildren(), a.appendChild(i.renderDom())), i;
2732
2786
  }));
2733
2787
  }
2734
- function la(e, t, r = null, i = {}) {
2735
- return Ji(qi(), () => $i(i.i18n, r, () => {
2788
+ function pa(e, t, r = null, i = {}) {
2789
+ return Qi(Zi(), () => ra(i.i18n, r, () => {
2736
2790
  let i = $(e, r), a = n(t);
2737
2791
  if (a) {
2738
2792
  let e = a.firstElementChild;
2739
- e ? (ua(i, e), fa(i), da(i), i.renderDom()) : a.appendChild(i.renderDom());
2793
+ e ? (ma(i, e), ga(i), ha(i), i.renderDom()) : a.appendChild(i.renderDom());
2740
2794
  }
2741
2795
  return i;
2742
2796
  }));
2743
2797
  }
2744
- function ua(e, t) {
2798
+ function ma(e, t) {
2745
2799
  if (e instanceof u) {
2746
- ua(e._resolve(), t);
2800
+ ma(e._resolve(), t);
2747
2801
  return;
2748
2802
  }
2749
2803
  if (e instanceof l) {
2750
- t && t.nodeType === 3 ? (e._textNode = t, e._el = t, t.textContent !== e._content && (t.textContent = e._content)) : pa(t, e.renderDom());
2804
+ t && t.nodeType === 3 ? (e._textNode = t, e._el = t, t.textContent !== e._content && (t.textContent = e._content)) : _a(t, e.renderDom());
2751
2805
  return;
2752
2806
  }
2753
2807
  if (t && t.nodeType === 1 && t.tagName.toLowerCase() === e._tagName) {
2754
2808
  e._el = t, e._hydrated = !0;
2755
2809
  let n = Array.from(t.childNodes);
2756
- e.children().forEach((e, t) => ua(e, n[t]));
2810
+ e.children().forEach((e, t) => ma(e, n[t]));
2757
2811
  return;
2758
2812
  }
2759
- pa(t, e.renderDom());
2813
+ _a(t, e.renderDom());
2760
2814
  }
2761
- function da(e) {
2815
+ function ha(e) {
2762
2816
  if (e instanceof u) {
2763
- da(e._resolve());
2817
+ ha(e._resolve());
2764
2818
  return;
2765
2819
  }
2766
- e instanceof l || (e._el && e._hydrated && e._applyBindingsToElement(), e.children().forEach(da));
2820
+ e instanceof l || (e._el && e._hydrated && e._applyBindingsToElement(), e.children().forEach(ha));
2767
2821
  }
2768
- function fa(e) {
2822
+ function ga(e) {
2769
2823
  if (e instanceof u) {
2770
- fa(e._resolve());
2824
+ ga(e._resolve());
2771
2825
  return;
2772
2826
  }
2773
- e instanceof l || (e.children().forEach(fa), typeof e.hydrateSnapshot == "function" && e.hydrateSnapshot());
2827
+ e instanceof l || (e.children().forEach(ga), typeof e.hydrateSnapshot == "function" && e.hydrateSnapshot());
2774
2828
  }
2775
- function pa(e, t) {
2829
+ function _a(e, t) {
2776
2830
  e && e.parentNode && e.parentNode.replaceChild(t, e);
2777
2831
  }
2778
2832
  //#endregion
2779
- export { Dr as ClientOnlyNode, u as ComponentNode, h as ElementNode, v as HtmlElementNode, jr as I18n, Mr as I18nTextNode, na as PageDocumentNode, gi as Router, l as TextNode, l as VTextNode, l as ViewTextNode, Cn as VMasonry, yn as VSplitPanel, Tn as VThemeShell, c as ViewNode, S as a, ee as abbr, te as address, m as applyElementOptions, C as area, w as article, T as aside, E as audio, D as b, ne as base, re as bdi, ie as bdo, ae as blockquote, oe as body, se as br, ce as button, le as canvas, ue as caption, Nn as center, de as cite, fe as code, pe as col, me as colgroup, Vn as container, g as createElementFactory, b as createHtmlFactories, Nr as createI18n, _i as createRouter, zn as createVBodyPage, he as data, ge as datalist, _e as dd, ve as del, ye as details, be as dfn, xe as dialog, Se as div, Xn as divider, Ce as dl, we as dt, Te as em, Ee as embed, r as escapeHtml, De as fieldset, Oe as figcaption, ke as figure, kn as flex, Ae as footer, je as form, Br as getI18n, Hr as getPersistedI18nLocales, ci as getYoyaMode, di as getYoyaTheme, In as grid, Me as h1, Ne as h2, Pe as h3, Fe as h4, Ie as h5, Le as h6, Re as head, ze as header, Be as hgroup, Ve as hr, Mn as hstack, He as html, la as hydrate, aa as hydrateOrMount, Ue as i, W as i18n, Pr as i18nText, We as iframe, Ge as img, fi as initYoyaTheme, Ke as input, qe as ins, Fr as installI18nStringShortcut, Je as kbd, Ye as label, Xe as legend, Ze as li, Qe as link, Vr as listI18n, $e as main, et as map, tt as mark, nt as menu, rt as meta, it as meter, Un as mobileLayout, ca as mount, at as nav, f as normalizeChild, p as normalizeSetupArguments, ot as noscript, st as object, ct as ol, lt as optgroup, ut as option, dt as output, ft as p, sa as parseState, pt as picture, mt as pre, ht as progress, gt as q, _ as registerChildFactories, Rr as registerI18n, ia as renderPage, ta as renderToString, Yi as resolveLocale, n as resolveTarget, li as resolveYoyaMode, Ln as responsiveGrid, vi as router, _t as rp, vt as rt, yt as ruby, bt as s, xt as samp, St as script, Ct as search, wt as section, Tt as select, Et as selectedcontent, oa as serializeState, si as setYoyaMode, ui as setYoyaTheme, Dt as slot, Ot as small, kt as source, Yn as spacer, At as span, An as stack, jt as strong, Mt as style, Nt as styleTag, Pt as sub, Ft as summary, It as sup, Lt as table, Rt as tbody, zt as td, Bt as template, d as text, d as vText, Vt as textarea, Ht as tfoot, Ut as th, Wt as thead, Gt as time, Kt as title, qt as tr, Jt as track, Yt as u, Xt as ul, zr as unregisterI18n, Kn as vAside, Rn as vBody, Or as vClientOnly, Fn as vCol, Hn as vContainer, Jn as vFooter, Gn as vHeader, xi as vLink, qn as vMain, wn as vMasonry, Wn as vMobileLayout, yi as vRoute, bi as vRouter, Si as vRouterView, Ci as vRouterViews, Pn as vRow, bn as vSplitPanel, ni as vStateNode, En as vThemeShell, Zt as varTag, Qt as video, jn as vstack, $t as wbr, Ir as withI18nStringShortcut };
2833
+ export { Dr as ClientOnlyNode, u as ComponentNode, h as ElementNode, v as HtmlElementNode, jr as I18n, Mr as I18nTextNode, oa as PageDocumentNode, hi as RequestBase, gi as Result, bi as Router, l as TextNode, l as VTextNode, l as ViewTextNode, wn as VMasonry, bn as VSplitPanel, En as VThemeShell, c as ViewNode, S as a, ee as abbr, te as address, m as applyElementOptions, ne as area, C as article, w as aside, T as audio, E as b, re as base, ie as bdi, ae as bdo, oe as blockquote, se as body, ce as br, le as button, ue as canvas, de as caption, Nn as center, fe as cite, pe as code, me as col, he as colgroup, mi as configureRequest, Vn as container, g as createElementFactory, b as createHtmlFactories, Nr as createI18n, xi as createRouter, zn as createVBodyPage, ge as data, _e as datalist, ve as dd, ye as del, be as details, xe as dfn, Se as dialog, Ce as div, Xn as divider, we as dl, Te as dt, Ee as em, De as embed, r as escapeHtml, Oe as fieldset, ke as figcaption, Ae as figure, kn as flex, je as footer, Me as form, Br as getI18n, Hr as getPersistedI18nLocales, ci as getYoyaMode, di as getYoyaTheme, In as grid, Ne as h1, Pe as h2, Fe as h3, Ie as h4, Le as h5, Re as h6, ze as head, Be as header, Ve as hgroup, He as hr, Mn as hstack, Ue as html, pa as hydrate, la as hydrateOrMount, We as i, W as i18n, Pr as i18nText, Ge as iframe, Ke as img, fi as initYoyaTheme, qe as input, Je as ins, Fr as installI18nStringShortcut, Ye as kbd, Xe as label, Ze as legend, Qe as li, $e as link, Vr as listI18n, et as main, tt as map, nt as mark, rt as menu, it as meta, at as meter, Un as mobileLayout, fa as mount, ot as nav, f as normalizeChild, p as normalizeSetupArguments, st as noscript, ct as object, lt as ol, ut as optgroup, dt as option, ft as output, pt as p, da as parseState, mt as picture, ht as pre, gt as progress, _t as q, _ as registerChildFactories, Rr as registerI18n, ca as renderPage, aa as renderToString, $i as resolveLocale, n as resolveTarget, li as resolveYoyaMode, Ln as responsiveGrid, Si as router, vt as rp, yt as rt, bt as ruby, xt as s, St as samp, Ct as script, wt as search, Tt as section, Et as select, Dt as selectedcontent, ua as serializeState, si as setYoyaMode, ui as setYoyaTheme, Ot as slot, kt as small, At as source, Yn as spacer, jt as span, An as stack, Mt as strong, Nt as style, Pt as styleTag, Ft as sub, It as summary, Lt as sup, Rt as table, zt as tbody, Bt as td, Vt as template, d as text, d as vText, Ht as textarea, Ut as tfoot, Wt as th, Gt as thead, Kt as time, qt as title, Jt as tr, Yt as track, Xt as u, Zt as ul, zr as unregisterI18n, Kn as vAside, Rn as vBody, Or as vClientOnly, Fn as vCol, Hn as vContainer, Jn as vFooter, Gn as vHeader, Ti as vLink, qn as vMain, Tn as vMasonry, Wn as vMobileLayout, Ci as vRoute, wi as vRouter, Ei as vRouterView, Di as vRouterViews, Pn as vRow, xn as vSplitPanel, ni as vStateNode, Dn as vThemeShell, Qt as varTag, $t as video, jn as vstack, en as wbr, Ir as withI18nStringShortcut };