@wsxjs/wsx-base-components 0.0.24 → 0.0.25

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.
Files changed (3) hide show
  1. package/dist/index.cjs +6 -6
  2. package/dist/index.js +1328 -1458
  3. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1,106 +1,106 @@
1
- import { autoRegister as te, WebComponent as J, jsx as $, LightComponent as _e } from "@wsxjs/wsx-core";
2
- const yt = ':host{position:relative;display:inline-flex;padding:.25em .625em;box-sizing:border-box;vertical-align:middle;line-height:1.8;overflow:hidden;align-items:center;justify-content:center;font-size:14px;color:var(--fontColor, #333);border-radius:var(--borderRadius, .25em);background:var(--fontColor, #333);transition:background .3s,box-shadow .3s,border-color .3s,color .3s}:host([size="xxxs"]){padding:.03125em .0625em;font-size:6px;line-height:1;min-width:10px;min-height:8px;border-radius:1px}:host([size="xxs"]){padding:.0625em .125em;font-size:8px;line-height:1.1;min-width:14px;min-height:12px;border-radius:2px}:host([size="xs"]){padding:.125em .25em;font-size:10px;line-height:1.2;min-width:18px;min-height:16px;border-radius:3px}:host([size="sm"]){padding:.25em .5em;font-size:12px;line-height:1.4;min-width:24px;min-height:20px;border-radius:4px}:host([size="md"]){padding:.375em .75em;font-size:14px;line-height:1.5;min-width:32px;min-height:28px;border-radius:6px}:host([size="lg"]){padding:.5em 1em;font-size:14px;line-height:1.6;min-width:40px;min-height:32px;border-radius:6px}:host([size="xl"]){padding:.625em 1.25em;font-size:16px;line-height:1.6;min-width:48px;min-height:40px;border-radius:8px}:host([shape="circle"]){border-radius:50%}:host([disabled]),:host([loading]){pointer-events:none;opacity:.6}:host([block]){display:flex}:host([disabled]:not([variant])){background:#0000001a}:host([disabled]) .btn,:host([loading]) .btn{cursor:not-allowed;pointer-events:all}:host(:not([variant="primary"]):not([variant="danger"]):not([disabled]):hover),:host(:not([variant="primary"]):not([variant="danger"]):focus-within),:host([variant="flat"][focus]){color:var(--themeColor, #42b983);border-color:var(--themeColor, #42b983)}:host(:not([variant="primary"]):not([variant="danger"])) .btn:after{background-image:radial-gradient(circle,var(--themeColor, #42b983) 10%,transparent 10.01%)}:host([variant="primary"]){color:#fff;background:var(--themeBackground, var(--themeColor, #42b983))}:host([variant="danger"]){color:#fff;background:var(--themeBackground, var(--dangerColor, #ff7875))}:host([variant="dashed"]){border-style:dashed}:host([variant="flat"]),:host([variant="primary"]),:host([variant="danger"]){border:0;padding:calc(.25em + 1px) calc(.625em + 1px)}:host([variant="flat"]) .btn:before{content:"";position:absolute;background:var(--themeColor, #42b983);pointer-events:none;left:0;right:0;top:0;bottom:0;opacity:0;transition:.3s}:host([variant="flat"]:not([disabled]):hover) .btn:before{opacity:.1}:host(:not([disabled]):hover){z-index:1}:host([variant="flat"]:focus-within) .btn:before,:host([variant="flat"][focus]) .btn:before{opacity:.2}.btn{background:none;outline:0;border:0;position:absolute;left:0;top:0;width:100%;height:100%;padding:0;-webkit-user-select:none;user-select:none;cursor:unset}.loading{margin-right:.35em}::-moz-focus-inner{border:0}.btn:before{content:"";display:block;position:absolute;width:100%;height:100%;left:0;top:0;transition:.2s;background:#fff;opacity:0}:host(:not([disabled]):active) .btn:before{opacity:.2}.btn:after{content:"";display:block;position:absolute;width:100%;height:100%;left:var(--x, 0);top:var(--y, 0);pointer-events:none;background-image:radial-gradient(circle,#fff 10%,transparent 10.01%);background-repeat:no-repeat;background-position:50%;transform:translate(-50%,-50%) scale(10);opacity:0;transition:transform .3s,opacity .8s}.btn:not([disabled]):active:after{transform:translate(-50%,-50%) scale(0);opacity:.3;transition:0s}.icon{margin-right:.35em;transition:none}:host(:empty) .icon{margin:auto}:host(:empty){padding:.65em}:host([type="flat"]:empty),:host([type="primary"]:empty){padding:calc(.65em + 1px)}::slotted(.icon){transition:none}:host([href]){cursor:pointer}';
3
- var Ie;
4
- let Fe, Le;
1
+ import { autoRegister as te, WebComponent as J, jsx as $, LightComponent as Ie } from "@wsxjs/wsx-core";
2
+ const mt = ':host{position:relative;display:inline-flex;padding:.25em .625em;box-sizing:border-box;vertical-align:middle;line-height:1.8;overflow:hidden;align-items:center;justify-content:center;font-size:14px;color:var(--fontColor, #333);border-radius:var(--borderRadius, .25em);background:var(--fontColor, #333);transition:background .3s,box-shadow .3s,border-color .3s,color .3s}:host([size="xxxs"]){padding:.03125em .0625em;font-size:6px;line-height:1;min-width:10px;min-height:8px;border-radius:1px}:host([size="xxs"]){padding:.0625em .125em;font-size:8px;line-height:1.1;min-width:14px;min-height:12px;border-radius:2px}:host([size="xs"]){padding:.125em .25em;font-size:10px;line-height:1.2;min-width:18px;min-height:16px;border-radius:3px}:host([size="sm"]){padding:.25em .5em;font-size:12px;line-height:1.4;min-width:24px;min-height:20px;border-radius:4px}:host([size="md"]){padding:.375em .75em;font-size:14px;line-height:1.5;min-width:32px;min-height:28px;border-radius:6px}:host([size="lg"]){padding:.5em 1em;font-size:14px;line-height:1.6;min-width:40px;min-height:32px;border-radius:6px}:host([size="xl"]){padding:.625em 1.25em;font-size:16px;line-height:1.6;min-width:48px;min-height:40px;border-radius:8px}:host([shape="circle"]){border-radius:50%}:host([disabled]),:host([loading]){pointer-events:none;opacity:.6}:host([block]){display:flex}:host([disabled]:not([variant])){background:#0000001a}:host([disabled]) .btn,:host([loading]) .btn{cursor:not-allowed;pointer-events:all}:host(:not([variant="primary"]):not([variant="danger"]):not([disabled]):hover),:host(:not([variant="primary"]):not([variant="danger"]):focus-within),:host([variant="flat"][focus]){color:var(--themeColor, #42b983);border-color:var(--themeColor, #42b983)}:host(:not([variant="primary"]):not([variant="danger"])) .btn:after{background-image:radial-gradient(circle,var(--themeColor, #42b983) 10%,transparent 10.01%)}:host([variant="primary"]){color:#fff;background:var(--themeBackground, var(--themeColor, #42b983))}:host([variant="danger"]){color:#fff;background:var(--themeBackground, var(--dangerColor, #ff7875))}:host([variant="dashed"]){border-style:dashed}:host([variant="flat"]),:host([variant="primary"]),:host([variant="danger"]){border:0;padding:calc(.25em + 1px) calc(.625em + 1px)}:host([variant="flat"]) .btn:before{content:"";position:absolute;background:var(--themeColor, #42b983);pointer-events:none;left:0;right:0;top:0;bottom:0;opacity:0;transition:.3s}:host([variant="flat"]:not([disabled]):hover) .btn:before{opacity:.1}:host(:not([disabled]):hover){z-index:1}:host([variant="flat"]:focus-within) .btn:before,:host([variant="flat"][focus]) .btn:before{opacity:.2}.btn{background:none;outline:0;border:0;position:absolute;left:0;top:0;width:100%;height:100%;padding:0;-webkit-user-select:none;user-select:none;cursor:unset}.loading{margin-right:.35em}::-moz-focus-inner{border:0}.btn:before{content:"";display:block;position:absolute;width:100%;height:100%;left:0;top:0;transition:.2s;background:#fff;opacity:0}:host(:not([disabled]):active) .btn:before{opacity:.2}.btn:after{content:"";display:block;position:absolute;width:100%;height:100%;left:var(--x, 0);top:var(--y, 0);pointer-events:none;background-image:radial-gradient(circle,#fff 10%,transparent 10.01%);background-repeat:no-repeat;background-position:50%;transform:translate(-50%,-50%) scale(10);opacity:0;transition:transform .3s,opacity .8s}.btn:not([disabled]):active:after{transform:translate(-50%,-50%) scale(0);opacity:.3;transition:0s}.icon{margin-right:.35em;transition:none}:host(:empty) .icon{margin:auto}:host(:empty){padding:.65em}:host([type="flat"]:empty),:host([type="primary"]:empty){padding:calc(.65em + 1px)}::slotted(.icon){transition:none}:host([href]){cursor:pointer}';
3
+ var Fe;
4
+ let Re, Le;
5
5
  function K(t, e, r) {
6
- return (e = Re(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
6
+ return (e = Ne(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
7
7
  }
8
- function kt(t, e, r, o, S, A) {
9
- function b(a, s, c) {
10
- return function(i, n) {
11
- return c && c(i), a[s].call(i, n);
8
+ function vt(t, e, r, o, S, T) {
9
+ function E(i, l, d) {
10
+ return function(a, n) {
11
+ return d && d(a), i[l].call(a, n);
12
12
  };
13
13
  }
14
- function T(a, s) {
15
- for (var c = 0; c < a.length; c++) a[c].call(s);
16
- return s;
14
+ function A(i, l) {
15
+ for (var d = 0; d < i.length; d++) i[d].call(l);
16
+ return l;
17
17
  }
18
- function y(a, s, c, i) {
19
- if (typeof a != "function" && (i || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (i ? "" : " or undefined"));
20
- return a;
18
+ function m(i, l, d, a) {
19
+ if (typeof i != "function" && (a || i !== void 0)) throw new TypeError(l + " must " + (d || "be") + " a function" + (a ? "" : " or undefined"));
20
+ return i;
21
21
  }
22
- function D(a, s, c, i, n, d, h, p, k, x, m, u, v) {
23
- function O(f) {
24
- if (!v(f)) throw new TypeError("Attempted to access private element on non-instance");
22
+ function D(i, l, d, a, n, c, h, p, y, w, b, u, f) {
23
+ function C(g) {
24
+ if (!f(g)) throw new TypeError("Attempted to access private element on non-instance");
25
25
  }
26
- var g, _ = s[0], I = s[3], M = !p;
26
+ var k, _ = l[0], I = l[3], M = !p;
27
27
  if (!M) {
28
- c || Array.isArray(_) || (_ = [_]);
29
- var l = {}, R = [], E = n === 3 ? "get" : n === 4 || u ? "set" : "value";
30
- x ? (m || u ? l = { get: he(function() {
28
+ d || Array.isArray(_) || (_ = [_]);
29
+ var s = {}, F = [], x = n === 3 ? "get" : n === 4 || u ? "set" : "value";
30
+ w ? (b || u ? s = { get: he(function() {
31
31
  return I(this);
32
- }, i, "get"), set: function(f) {
33
- s[4](this, f);
34
- } } : l[E] = I, m || he(l[E], i, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, i));
32
+ }, a, "get"), set: function(g) {
33
+ l[4](this, g);
34
+ } } : s[x] = I, b || he(s[x], a, n === 2 ? "" : x)) : b || (s = Object.getOwnPropertyDescriptor(i, a));
35
35
  }
36
- for (var w = a, B = _.length - 1; B >= 0; B -= c ? 2 : 1) {
37
- var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: i, metadata: d, addInitializer: (function(f, N) {
38
- if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
39
- y(N, "An initializer", "be", !0), h.push(N);
36
+ for (var v = i, B = _.length - 1; B >= 0; B -= d ? 2 : 1) {
37
+ var V = _[B], G = d ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
38
+ if (g.v) throw Error("attempted to call addInitializer after decoration was finished");
39
+ m(R, "An initializer", "be", !0), h.push(R);
40
40
  }).bind(null, Y) };
41
41
  try {
42
- if (M) (g = y(W.call(G, w, z), "class decorators", "return")) && (w = g);
42
+ if (M) (k = m(V.call(G, v, z), "class decorators", "return")) && (v = k);
43
43
  else {
44
- var P, U;
45
- z.static = k, z.private = x, x ? n === 2 ? P = function(f) {
46
- return O(f), l.value;
47
- } : (n < 4 && (P = b(l, "get", O)), n !== 3 && (U = b(l, "set", O))) : (P = function(f) {
48
- return f[i];
49
- }, (n < 2 || n === 4) && (U = function(f, N) {
50
- f[i] = N;
44
+ var P, H;
45
+ z.static = y, z.private = w, w ? n === 2 ? P = function(g) {
46
+ return C(g), s.value;
47
+ } : (n < 4 && (P = E(s, "get", C)), n !== 3 && (H = E(s, "set", C))) : (P = function(g) {
48
+ return g[a];
49
+ }, (n < 2 || n === 4) && (H = function(g, R) {
50
+ g[a] = R;
51
51
  }));
52
- var V = z.access = { has: x ? v.bind() : function(f) {
53
- return i in f;
52
+ var W = z.access = { has: w ? f.bind() : function(g) {
53
+ return a in g;
54
54
  } };
55
- if (P && (V.get = P), U && (V.set = U), w = W.call(G, u ? { get: l.get, set: l.set } : l[E], z), u) {
56
- if (typeof w == "object" && w) (g = y(w.get, "accessor.get")) && (l.get = g), (g = y(w.set, "accessor.set")) && (l.set = g), (g = y(w.init, "accessor.init")) && R.push(g);
57
- else if (w !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
58
- } else y(w, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(w) : l[E] = w);
55
+ if (P && (W.get = P), H && (W.set = H), v = V.call(G, u ? { get: s.get, set: s.set } : s[x], z), u) {
56
+ if (typeof v == "object" && v) (k = m(v.get, "accessor.get")) && (s.get = k), (k = m(v.set, "accessor.set")) && (s.set = k), (k = m(v.init, "accessor.init")) && F.push(k);
57
+ else if (v !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
58
+ } else m(v, (b ? "field" : "method") + " decorators", "return") && (b ? F.push(v) : s[x] = v);
59
59
  }
60
60
  } finally {
61
61
  Y.v = !0;
62
62
  }
63
63
  }
64
- return (m || u) && p.push(function(f, N) {
65
- for (var H = R.length - 1; H >= 0; H--) N = R[H].call(f, N);
66
- return N;
67
- }), m || M || (x ? u ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, i, l)), w;
68
- }
69
- function F(a, s) {
70
- return Object.defineProperty(a, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: s });
71
- }
72
- if (arguments.length >= 6) var C = A[Symbol.metadata || Symbol.for("Symbol.metadata")];
73
- var L = Object.create(C ?? null), j = function(a, s, c, i) {
74
- var n, d, h = [], p = function(E) {
75
- return xt(E) === a;
76
- }, k = /* @__PURE__ */ new Map();
77
- function x(E) {
78
- E && h.push(T.bind(null, E));
64
+ return (b || u) && p.push(function(g, R) {
65
+ for (var U = F.length - 1; U >= 0; U--) R = F[U].call(g, R);
66
+ return R;
67
+ }), b || M || (w ? u ? p.push(E(s, "get"), E(s, "set")) : p.push(n === 2 ? s[x] : E.call.bind(s[x])) : Object.defineProperty(i, a, s)), v;
68
+ }
69
+ function N(i, l) {
70
+ return Object.defineProperty(i, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: l });
71
+ }
72
+ if (arguments.length >= 6) var O = T[Symbol.metadata || Symbol.for("Symbol.metadata")];
73
+ var L = Object.create(O ?? null), j = function(i, l, d, a) {
74
+ var n, c, h = [], p = function(x) {
75
+ return kt(x) === i;
76
+ }, y = /* @__PURE__ */ new Map();
77
+ function w(x) {
78
+ x && h.push(A.bind(null, x));
79
79
  }
80
- for (var m = 0; m < s.length; m++) {
81
- var u = s[m];
80
+ for (var b = 0; b < l.length; b++) {
81
+ var u = l[b];
82
82
  if (Array.isArray(u)) {
83
- var v = u[1], O = u[2], g = u.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = O + "/" + I;
84
- if (!M && !g) {
85
- var R = k.get(l);
86
- if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + O);
87
- k.set(l, !(v > 2) || v);
83
+ var f = u[1], C = u[2], k = u.length > 3, _ = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = C + "/" + I;
84
+ if (!M && !k) {
85
+ var F = y.get(s);
86
+ if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + C);
87
+ y.set(s, !(f > 2) || f);
88
88
  }
89
- D(I ? a : a.prototype, u, _, g ? "#" + O : Re(O), v, i, I ? d = d || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
89
+ D(I ? i : i.prototype, u, _, k ? "#" + C : Ne(C), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
90
90
  }
91
91
  }
92
- return x(n), x(d), h;
92
+ return w(n), w(c), h;
93
93
  }(t, e, S, L);
94
- return r.length || F(t, L), { e: j, get c() {
95
- var a = [];
96
- return r.length && [F(D(t, [r], o, t.name, 5, L, a), L), T.bind(null, a, t)];
94
+ return r.length || N(t, L), { e: j, get c() {
95
+ var i = [];
96
+ return r.length && [N(D(t, [r], o, t.name, 5, L, i), L), A.bind(null, i, t)];
97
97
  } };
98
98
  }
99
- function Re(t) {
100
- var e = wt(t, "string");
99
+ function Ne(t) {
100
+ var e = yt(t, "string");
101
101
  return typeof e == "symbol" ? e : e + "";
102
102
  }
103
- function wt(t, e) {
103
+ function yt(t, e) {
104
104
  if (typeof t != "object" || !t) return t;
105
105
  var r = t[Symbol.toPrimitive];
106
106
  if (r !== void 0) {
@@ -118,15 +118,15 @@ function he(t, e, r) {
118
118
  }
119
119
  return t;
120
120
  }
121
- function xt(t) {
121
+ function kt(t) {
122
122
  if (Object(t) !== t) throw TypeError("right-hand side of 'in' should be an object, got " + (t !== null ? typeof t : "null"));
123
123
  return t;
124
124
  }
125
125
  Le = [te({
126
126
  tagName: "wsx-button"
127
127
  })];
128
- let Et;
129
- class St extends J {
128
+ let xt;
129
+ class wt extends J {
130
130
  static get observedAttributes() {
131
131
  return ["disabled", "icon", "loading", "href", "type", "target", "rel", "download", "toggle", "checked", "variant", "shape", "block", "size"];
132
132
  }
@@ -134,10 +134,10 @@ class St extends J {
134
134
  super({
135
135
  styleName: "wsx-button",
136
136
  ...e
137
- }), K(this, "_autoStyles", yt), K(this, "disabled", !1), K(this, "loading", !1), K(this, "toggle", !1), K(this, "checked", !1), K(this, "icon", null), K(this, "href", null), K(this, "type", null), K(this, "target", "_blank"), K(this, "rel", null), K(this, "download", null), K(this, "variant", "flat"), K(this, "size", "md"), K(this, "btnElement", void 0), K(this, "iconElement", void 0), K(this, "loadingElement", void 0), K(this, "handleMouseDown", (r) => {
137
+ }), K(this, "_autoStyles", mt), K(this, "disabled", !1), K(this, "loading", !1), K(this, "toggle", !1), K(this, "checked", !1), K(this, "icon", null), K(this, "href", null), K(this, "type", null), K(this, "target", "_blank"), K(this, "rel", null), K(this, "download", null), K(this, "variant", "flat"), K(this, "size", "md"), K(this, "btnElement", void 0), K(this, "iconElement", void 0), K(this, "loadingElement", void 0), K(this, "handleMouseDown", (r) => {
138
138
  if (this.disabled) return;
139
- const o = this.getBoundingClientRect(), S = r.clientX - o.left, A = r.clientY - o.top;
140
- this.style.setProperty("--x", `${S}px`), this.style.setProperty("--y", `${A}px`);
139
+ const o = this.getBoundingClientRect(), S = r.clientX - o.left, T = r.clientY - o.top;
140
+ this.style.setProperty("--x", `${S}px`), this.style.setProperty("--y", `${T}px`);
141
141
  }), K(this, "handleKeyDown", (r) => {
142
142
  (r.code === "Enter" || r.code === "Space") && r.stopPropagation();
143
143
  }), K(this, "handleClick", () => {
@@ -258,111 +258,111 @@ class St extends J {
258
258
  e ? this.setAttr("icon", e) : this.removeAttr("icon");
259
259
  }
260
260
  }
261
- Ie = St;
262
- [Et, Fe] = kt(Ie, [], Le, 0, void 0, J).c;
263
- Fe();
264
- const At = ':host{display:inline-flex}::slotted(wsx-button:not(:first-of-type):not(:last-of-type)){border-radius:0}::slotted(wsx-button){margin:0!important}::slotted(wsx-button:not(:first-of-type)){margin-left:-1px!important}::slotted(wsx-button[type]:not([type="dashed"]):not(:first-of-type)){margin-left:1px!important}::slotted(wsx-button:first-of-type){border-top-right-radius:0;border-bottom-right-radius:0}::slotted(wsx-button:last-of-type){border-top-left-radius:0;border-bottom-left-radius:0}';
265
- var Ne;
266
- let $e, De;
267
- function ge(t, e, r) {
268
- return (e = Me(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
261
+ Fe = wt;
262
+ [xt, Re] = vt(Fe, [], Le, 0, void 0, J).c;
263
+ Re();
264
+ const Et = ':host{display:inline-flex}::slotted(wsx-button:not(:first-of-type):not(:last-of-type)){border-radius:0}::slotted(wsx-button){margin:0!important}::slotted(wsx-button:not(:first-of-type)){margin-left:-1px!important}::slotted(wsx-button[type]:not([type="dashed"]):not(:first-of-type)){margin-left:1px!important}::slotted(wsx-button:first-of-type){border-top-right-radius:0;border-bottom-right-radius:0}::slotted(wsx-button:last-of-type){border-top-left-radius:0;border-bottom-left-radius:0}';
265
+ var $e;
266
+ let De, Me;
267
+ function pe(t, e, r) {
268
+ return (e = ze(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
269
269
  }
270
- function Tt(t, e, r, o, S, A) {
271
- function b(a, s, c) {
272
- return function(i, n) {
273
- return c && c(i), a[s].call(i, n);
270
+ function St(t, e, r, o, S, T) {
271
+ function E(i, l, d) {
272
+ return function(a, n) {
273
+ return d && d(a), i[l].call(a, n);
274
274
  };
275
275
  }
276
- function T(a, s) {
277
- for (var c = 0; c < a.length; c++) a[c].call(s);
278
- return s;
276
+ function A(i, l) {
277
+ for (var d = 0; d < i.length; d++) i[d].call(l);
278
+ return l;
279
279
  }
280
- function y(a, s, c, i) {
281
- if (typeof a != "function" && (i || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (i ? "" : " or undefined"));
282
- return a;
280
+ function m(i, l, d, a) {
281
+ if (typeof i != "function" && (a || i !== void 0)) throw new TypeError(l + " must " + (d || "be") + " a function" + (a ? "" : " or undefined"));
282
+ return i;
283
283
  }
284
- function D(a, s, c, i, n, d, h, p, k, x, m, u, v) {
285
- function O(f) {
286
- if (!v(f)) throw new TypeError("Attempted to access private element on non-instance");
284
+ function D(i, l, d, a, n, c, h, p, y, w, b, u, f) {
285
+ function C(g) {
286
+ if (!f(g)) throw new TypeError("Attempted to access private element on non-instance");
287
287
  }
288
- var g, _ = s[0], I = s[3], M = !p;
288
+ var k, _ = l[0], I = l[3], M = !p;
289
289
  if (!M) {
290
- c || Array.isArray(_) || (_ = [_]);
291
- var l = {}, R = [], E = n === 3 ? "get" : n === 4 || u ? "set" : "value";
292
- x ? (m || u ? l = { get: fe(function() {
290
+ d || Array.isArray(_) || (_ = [_]);
291
+ var s = {}, F = [], x = n === 3 ? "get" : n === 4 || u ? "set" : "value";
292
+ w ? (b || u ? s = { get: ge(function() {
293
293
  return I(this);
294
- }, i, "get"), set: function(f) {
295
- s[4](this, f);
296
- } } : l[E] = I, m || fe(l[E], i, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, i));
294
+ }, a, "get"), set: function(g) {
295
+ l[4](this, g);
296
+ } } : s[x] = I, b || ge(s[x], a, n === 2 ? "" : x)) : b || (s = Object.getOwnPropertyDescriptor(i, a));
297
297
  }
298
- for (var w = a, B = _.length - 1; B >= 0; B -= c ? 2 : 1) {
299
- var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: i, metadata: d, addInitializer: (function(f, N) {
300
- if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
301
- y(N, "An initializer", "be", !0), h.push(N);
298
+ for (var v = i, B = _.length - 1; B >= 0; B -= d ? 2 : 1) {
299
+ var V = _[B], G = d ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
300
+ if (g.v) throw Error("attempted to call addInitializer after decoration was finished");
301
+ m(R, "An initializer", "be", !0), h.push(R);
302
302
  }).bind(null, Y) };
303
303
  try {
304
- if (M) (g = y(W.call(G, w, z), "class decorators", "return")) && (w = g);
304
+ if (M) (k = m(V.call(G, v, z), "class decorators", "return")) && (v = k);
305
305
  else {
306
- var P, U;
307
- z.static = k, z.private = x, x ? n === 2 ? P = function(f) {
308
- return O(f), l.value;
309
- } : (n < 4 && (P = b(l, "get", O)), n !== 3 && (U = b(l, "set", O))) : (P = function(f) {
310
- return f[i];
311
- }, (n < 2 || n === 4) && (U = function(f, N) {
312
- f[i] = N;
306
+ var P, H;
307
+ z.static = y, z.private = w, w ? n === 2 ? P = function(g) {
308
+ return C(g), s.value;
309
+ } : (n < 4 && (P = E(s, "get", C)), n !== 3 && (H = E(s, "set", C))) : (P = function(g) {
310
+ return g[a];
311
+ }, (n < 2 || n === 4) && (H = function(g, R) {
312
+ g[a] = R;
313
313
  }));
314
- var V = z.access = { has: x ? v.bind() : function(f) {
315
- return i in f;
314
+ var W = z.access = { has: w ? f.bind() : function(g) {
315
+ return a in g;
316
316
  } };
317
- if (P && (V.get = P), U && (V.set = U), w = W.call(G, u ? { get: l.get, set: l.set } : l[E], z), u) {
318
- if (typeof w == "object" && w) (g = y(w.get, "accessor.get")) && (l.get = g), (g = y(w.set, "accessor.set")) && (l.set = g), (g = y(w.init, "accessor.init")) && R.push(g);
319
- else if (w !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
320
- } else y(w, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(w) : l[E] = w);
317
+ if (P && (W.get = P), H && (W.set = H), v = V.call(G, u ? { get: s.get, set: s.set } : s[x], z), u) {
318
+ if (typeof v == "object" && v) (k = m(v.get, "accessor.get")) && (s.get = k), (k = m(v.set, "accessor.set")) && (s.set = k), (k = m(v.init, "accessor.init")) && F.push(k);
319
+ else if (v !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
320
+ } else m(v, (b ? "field" : "method") + " decorators", "return") && (b ? F.push(v) : s[x] = v);
321
321
  }
322
322
  } finally {
323
323
  Y.v = !0;
324
324
  }
325
325
  }
326
- return (m || u) && p.push(function(f, N) {
327
- for (var H = R.length - 1; H >= 0; H--) N = R[H].call(f, N);
328
- return N;
329
- }), m || M || (x ? u ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, i, l)), w;
330
- }
331
- function F(a, s) {
332
- return Object.defineProperty(a, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: s });
333
- }
334
- if (arguments.length >= 6) var C = A[Symbol.metadata || Symbol.for("Symbol.metadata")];
335
- var L = Object.create(C ?? null), j = function(a, s, c, i) {
336
- var n, d, h = [], p = function(E) {
337
- return Ct(E) === a;
338
- }, k = /* @__PURE__ */ new Map();
339
- function x(E) {
340
- E && h.push(T.bind(null, E));
326
+ return (b || u) && p.push(function(g, R) {
327
+ for (var U = F.length - 1; U >= 0; U--) R = F[U].call(g, R);
328
+ return R;
329
+ }), b || M || (w ? u ? p.push(E(s, "get"), E(s, "set")) : p.push(n === 2 ? s[x] : E.call.bind(s[x])) : Object.defineProperty(i, a, s)), v;
330
+ }
331
+ function N(i, l) {
332
+ return Object.defineProperty(i, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: l });
333
+ }
334
+ if (arguments.length >= 6) var O = T[Symbol.metadata || Symbol.for("Symbol.metadata")];
335
+ var L = Object.create(O ?? null), j = function(i, l, d, a) {
336
+ var n, c, h = [], p = function(x) {
337
+ return Tt(x) === i;
338
+ }, y = /* @__PURE__ */ new Map();
339
+ function w(x) {
340
+ x && h.push(A.bind(null, x));
341
341
  }
342
- for (var m = 0; m < s.length; m++) {
343
- var u = s[m];
342
+ for (var b = 0; b < l.length; b++) {
343
+ var u = l[b];
344
344
  if (Array.isArray(u)) {
345
- var v = u[1], O = u[2], g = u.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = O + "/" + I;
346
- if (!M && !g) {
347
- var R = k.get(l);
348
- if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + O);
349
- k.set(l, !(v > 2) || v);
345
+ var f = u[1], C = u[2], k = u.length > 3, _ = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = C + "/" + I;
346
+ if (!M && !k) {
347
+ var F = y.get(s);
348
+ if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + C);
349
+ y.set(s, !(f > 2) || f);
350
350
  }
351
- D(I ? a : a.prototype, u, _, g ? "#" + O : Me(O), v, i, I ? d = d || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
351
+ D(I ? i : i.prototype, u, _, k ? "#" + C : ze(C), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
352
352
  }
353
353
  }
354
- return x(n), x(d), h;
354
+ return w(n), w(c), h;
355
355
  }(t, e, S, L);
356
- return r.length || F(t, L), { e: j, get c() {
357
- var a = [];
358
- return r.length && [F(D(t, [r], o, t.name, 5, L, a), L), T.bind(null, a, t)];
356
+ return r.length || N(t, L), { e: j, get c() {
357
+ var i = [];
358
+ return r.length && [N(D(t, [r], o, t.name, 5, L, i), L), A.bind(null, i, t)];
359
359
  } };
360
360
  }
361
- function Me(t) {
362
- var e = Ot(t, "string");
361
+ function ze(t) {
362
+ var e = At(t, "string");
363
363
  return typeof e == "symbol" ? e : e + "";
364
364
  }
365
- function Ot(t, e) {
365
+ function At(t, e) {
366
366
  if (typeof t != "object" || !t) return t;
367
367
  var r = t[Symbol.toPrimitive];
368
368
  if (r !== void 0) {
@@ -372,7 +372,7 @@ function Ot(t, e) {
372
372
  }
373
373
  return String(t);
374
374
  }
375
- function fe(t, e, r) {
375
+ function ge(t, e, r) {
376
376
  typeof e == "symbol" && (e = (e = e.description) ? "[" + e + "]" : "");
377
377
  try {
378
378
  Object.defineProperty(t, "name", { configurable: !0, value: r ? r + " " + e : e });
@@ -380,15 +380,15 @@ function fe(t, e, r) {
380
380
  }
381
381
  return t;
382
382
  }
383
- function Ct(t) {
383
+ function Tt(t) {
384
384
  if (Object(t) !== t) throw TypeError("right-hand side of 'in' should be an object, got " + (t !== null ? typeof t : "null"));
385
385
  return t;
386
386
  }
387
- De = [te({
387
+ Me = [te({
388
388
  tagName: "wsx-button-group"
389
389
  })];
390
- let _t;
391
- class It extends J {
390
+ let Ot;
391
+ class Ct extends J {
392
392
  static get observedAttributes() {
393
393
  return ["disabled"];
394
394
  }
@@ -396,7 +396,7 @@ class It extends J {
396
396
  super({
397
397
  styleName: "wsx-button-group",
398
398
  ...e
399
- }), ge(this, "_autoStyles", At), ge(this, "disabled", !1), this.disabled = e.disabled || !1;
399
+ }), pe(this, "_autoStyles", Et), pe(this, "disabled", !1), this.disabled = e.disabled || !1;
400
400
  }
401
401
  render() {
402
402
  return /* @__PURE__ */ $("div", { class: "button-group-container" }, /* @__PURE__ */ $("slot", null));
@@ -461,176 +461,18 @@ class It extends J {
461
461
  });
462
462
  }
463
463
  }
464
- Ne = It;
465
- [_t, $e] = Tt(Ne, [], De, 0, void 0, J).c;
466
- $e();
467
- var ue = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
468
- function ze(t) {
469
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
470
- }
471
- var Pe = { exports: {} };
472
- (function(t) {
473
- (function(e, r) {
474
- t.exports ? t.exports = r() : e.log = r();
475
- })(ue, function() {
476
- var e = function() {
477
- }, r = "undefined", o = typeof window !== r && typeof window.navigator !== r && /Trident\/|MSIE /.test(window.navigator.userAgent), S = [
478
- "trace",
479
- "debug",
480
- "info",
481
- "warn",
482
- "error"
483
- ], A = {}, b = null;
484
- function T(s, c) {
485
- var i = s[c];
486
- if (typeof i.bind == "function")
487
- return i.bind(s);
488
- try {
489
- return Function.prototype.bind.call(i, s);
490
- } catch {
491
- return function() {
492
- return Function.prototype.apply.apply(i, [s, arguments]);
493
- };
494
- }
495
- }
496
- function y() {
497
- console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
498
- }
499
- function D(s) {
500
- return s === "debug" && (s = "log"), typeof console === r ? !1 : s === "trace" && o ? y : console[s] !== void 0 ? T(console, s) : console.log !== void 0 ? T(console, "log") : e;
501
- }
502
- function F() {
503
- for (var s = this.getLevel(), c = 0; c < S.length; c++) {
504
- var i = S[c];
505
- this[i] = c < s ? e : this.methodFactory(i, s, this.name);
506
- }
507
- if (this.log = this.debug, typeof console === r && s < this.levels.SILENT)
508
- return "No console available for logging";
509
- }
510
- function C(s) {
511
- return function() {
512
- typeof console !== r && (F.call(this), this[s].apply(this, arguments));
513
- };
514
- }
515
- function L(s, c, i) {
516
- return D(s) || C.apply(this, arguments);
517
- }
518
- function j(s, c) {
519
- var i = this, n, d, h, p = "loglevel";
520
- typeof s == "string" ? p += ":" + s : typeof s == "symbol" && (p = void 0);
521
- function k(O) {
522
- var g = (S[O] || "silent").toUpperCase();
523
- if (!(typeof window === r || !p)) {
524
- try {
525
- window.localStorage[p] = g;
526
- return;
527
- } catch {
528
- }
529
- try {
530
- window.document.cookie = encodeURIComponent(p) + "=" + g + ";";
531
- } catch {
532
- }
533
- }
534
- }
535
- function x() {
536
- var O;
537
- if (!(typeof window === r || !p)) {
538
- try {
539
- O = window.localStorage[p];
540
- } catch {
541
- }
542
- if (typeof O === r)
543
- try {
544
- var g = window.document.cookie, _ = encodeURIComponent(p), I = g.indexOf(_ + "=");
545
- I !== -1 && (O = /^([^;]+)/.exec(
546
- g.slice(I + _.length + 1)
547
- )[1]);
548
- } catch {
549
- }
550
- return i.levels[O] === void 0 && (O = void 0), O;
551
- }
552
- }
553
- function m() {
554
- if (!(typeof window === r || !p)) {
555
- try {
556
- window.localStorage.removeItem(p);
557
- } catch {
558
- }
559
- try {
560
- window.document.cookie = encodeURIComponent(p) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
561
- } catch {
562
- }
563
- }
564
- }
565
- function u(O) {
566
- var g = O;
567
- if (typeof g == "string" && i.levels[g.toUpperCase()] !== void 0 && (g = i.levels[g.toUpperCase()]), typeof g == "number" && g >= 0 && g <= i.levels.SILENT)
568
- return g;
569
- throw new TypeError("log.setLevel() called with invalid level: " + O);
570
- }
571
- i.name = s, i.levels = {
572
- TRACE: 0,
573
- DEBUG: 1,
574
- INFO: 2,
575
- WARN: 3,
576
- ERROR: 4,
577
- SILENT: 5
578
- }, i.methodFactory = c || L, i.getLevel = function() {
579
- return h ?? d ?? n;
580
- }, i.setLevel = function(O, g) {
581
- return h = u(O), g !== !1 && k(h), F.call(i);
582
- }, i.setDefaultLevel = function(O) {
583
- d = u(O), x() || i.setLevel(O, !1);
584
- }, i.resetLevel = function() {
585
- h = null, m(), F.call(i);
586
- }, i.enableAll = function(O) {
587
- i.setLevel(i.levels.TRACE, O);
588
- }, i.disableAll = function(O) {
589
- i.setLevel(i.levels.SILENT, O);
590
- }, i.rebuild = function() {
591
- if (b !== i && (n = u(b.getLevel())), F.call(i), b === i)
592
- for (var O in A)
593
- A[O].rebuild();
594
- }, n = u(
595
- b ? b.getLevel() : "WARN"
596
- );
597
- var v = x();
598
- v != null && (h = u(v)), F.call(i);
599
- }
600
- b = new j(), b.getLogger = function(c) {
601
- if (typeof c != "symbol" && typeof c != "string" || c === "")
602
- throw new TypeError("You must supply a name when creating a logger.");
603
- var i = A[c];
604
- return i || (i = A[c] = new j(
605
- c,
606
- b.methodFactory
607
- )), i;
608
- };
609
- var a = typeof window !== r ? window.log : void 0;
610
- return b.noConflict = function() {
611
- return typeof window !== r && window.log === b && (window.log = a), b;
612
- }, b.getLoggers = function() {
613
- return A;
614
- }, b.default = b, b;
615
- });
616
- })(Pe);
617
- var Ft = Pe.exports;
618
- const Lt = /* @__PURE__ */ ze(Ft), je = {
619
- trace: "trace",
620
- debug: "debug",
621
- info: "info",
622
- warn: "warn",
623
- error: "error",
624
- silent: "silent"
625
- }, Rt = {
626
- 0: "trace",
627
- 1: "debug",
628
- 2: "info",
629
- 3: "warn",
630
- 4: "error",
631
- 5: "silent"
464
+ $e = Ct;
465
+ [Ot, De] = St($e, [], Me, 0, void 0, J).c;
466
+ De();
467
+ const ce = {
468
+ trace: 0,
469
+ debug: 1,
470
+ info: 2,
471
+ warn: 3,
472
+ error: 4,
473
+ silent: 5
632
474
  };
633
- function pe() {
475
+ function ue() {
634
476
  var t, e;
635
477
  if (typeof process < "u")
636
478
  return process.env.NODE_ENV === "production" || process.env.MODE === "production";
@@ -644,114 +486,138 @@ function pe() {
644
486
  }
645
487
  return !1;
646
488
  }
647
- const ie = {
489
+ const be = {
648
490
  name: "WSX",
649
- level: pe() ? "info" : "debug",
650
- pretty: !pe()
491
+ level: ue() ? "info" : "debug",
492
+ pretty: !ue()
651
493
  };
652
- function Nt(t = {}) {
653
- const { name: e, level: r } = { ...ie, ...t }, o = e || ie.name, S = Lt.getLogger(o), A = r || ie.level;
654
- return S.setLevel(je[A]), S;
655
- }
656
- function re(t, e) {
494
+ function ne(t, e) {
657
495
  return t ? `[${t}] ${e}` : e;
658
496
  }
659
- class Be {
660
- constructor(e = {}) {
661
- this.isProd = pe(), this.name = e.name || ie.name, this.currentLevel = e.level || ie.level, this.logInstance = Nt(e);
497
+ class _t {
498
+ constructor(e, r) {
499
+ this.name = e, this.level = r, this.levelValue = ce[r], this.isProd = ue();
500
+ }
501
+ /**
502
+ * Check if a log level should be logged
503
+ */
504
+ shouldLog(e) {
505
+ return this.level === "silent" ? !1 : ce[e] >= this.levelValue;
506
+ }
507
+ trace(e, ...r) {
508
+ if (!this.isProd || this.shouldLog("trace")) {
509
+ const o = ne(this.name, e);
510
+ r.length > 0 ? console.debug(o, ...r) : console.debug(o);
511
+ }
662
512
  }
663
513
  debug(e, ...r) {
664
514
  if (!this.isProd || this.shouldLog("debug")) {
665
- const o = re(this.name, e);
666
- r.length > 0 ? this.logInstance.debug(o, ...r) : this.logInstance.debug(o);
515
+ const o = ne(this.name, e);
516
+ r.length > 0 ? console.debug(o, ...r) : console.debug(o);
667
517
  }
668
518
  }
669
519
  info(e, ...r) {
670
520
  if (this.shouldLog("info")) {
671
- const o = re(this.name, e);
672
- r.length > 0 ? this.logInstance.info(o, ...r) : this.logInstance.info(o);
521
+ const o = ne(this.name, e);
522
+ r.length > 0 ? console.info(o, ...r) : console.info(o);
673
523
  }
674
524
  }
675
525
  warn(e, ...r) {
676
- const o = re(this.name, e);
677
- r.length > 0 ? this.logInstance.warn(o, ...r) : this.logInstance.warn(o);
526
+ if (this.shouldLog("warn")) {
527
+ const o = ne(this.name, e);
528
+ r.length > 0 ? console.warn(o, ...r) : console.warn(o);
529
+ }
678
530
  }
679
531
  error(e, ...r) {
680
- const o = re(this.name, e);
681
- r.length > 0 ? this.logInstance.error(o, ...r) : this.logInstance.error(o);
682
- }
683
- fatal(e, ...r) {
684
- const o = re(this.name, e);
685
- r.length > 0 ? this.logInstance.error(`[FATAL] ${o}`, ...r) : this.logInstance.error(`[FATAL] ${o}`);
686
- }
687
- trace(e, ...r) {
688
- if (!this.isProd || this.shouldLog("trace")) {
689
- const o = re(this.name, e);
690
- r.length > 0 ? this.logInstance.trace(o, ...r) : this.logInstance.trace(o);
532
+ if (this.shouldLog("error")) {
533
+ const o = ne(this.name, e);
534
+ r.length > 0 ? console.error(o, ...r) : console.error(o);
691
535
  }
692
536
  }
693
537
  /**
694
- * Check if a log level should be logged based on current level
538
+ * Set the log level dynamically
695
539
  */
696
- shouldLog(e) {
697
- const r = ["trace", "debug", "info", "warn", "error", "silent"], o = r.indexOf(this.currentLevel);
698
- return r.indexOf(e) >= o;
540
+ setLevel(e) {
541
+ this.level = e, this.levelValue = ce[e];
699
542
  }
700
543
  /**
701
- * Get the underlying loglevel logger instance
544
+ * Get the current log level
702
545
  */
703
- getLoglevelLogger() {
704
- return this.logInstance;
546
+ getLevel() {
547
+ return this.level;
548
+ }
549
+ }
550
+ class Pe {
551
+ constructor(e = {}) {
552
+ this.name = e.name || be.name, this.currentLevel = e.level || be.level, this.nativeLogger = new _t(this.name, this.currentLevel);
553
+ }
554
+ debug(e, ...r) {
555
+ this.nativeLogger.debug(e, ...r);
556
+ }
557
+ info(e, ...r) {
558
+ this.nativeLogger.info(e, ...r);
559
+ }
560
+ warn(e, ...r) {
561
+ this.nativeLogger.warn(e, ...r);
562
+ }
563
+ error(e, ...r) {
564
+ this.nativeLogger.error(e, ...r);
565
+ }
566
+ fatal(e, ...r) {
567
+ const o = ne(this.name, `[FATAL] ${e}`);
568
+ r.length > 0 ? console.error(o, ...r) : console.error(o);
569
+ }
570
+ trace(e, ...r) {
571
+ this.nativeLogger.trace(e, ...r);
705
572
  }
706
573
  /**
707
574
  * Set the log level dynamically
708
575
  */
709
576
  setLevel(e) {
710
- this.currentLevel = e, this.logInstance.setLevel(je[e]);
577
+ this.currentLevel = e, this.nativeLogger.setLevel(e);
711
578
  }
712
579
  /**
713
580
  * Get the current log level
714
581
  */
715
582
  getLevel() {
716
- const e = this.logInstance.getLevel();
717
- return Rt[e] || this.currentLevel;
583
+ return this.nativeLogger.getLevel();
718
584
  }
719
585
  }
720
- new Be();
721
- function Ue(t, e = {}) {
722
- return new Be({
586
+ new Pe();
587
+ function je(t, e = {}) {
588
+ return new Pe({
723
589
  ...e,
724
590
  name: e.name || `WSX:${t}`
725
591
  });
726
592
  }
727
- const le = "editor-js-text-color-cache";
728
- function $t(t) {
593
+ const se = "editor-js-text-color-cache";
594
+ function It(t) {
729
595
  return t.startsWith("var(") && t.endsWith(")");
730
596
  }
731
- function Dt(t) {
597
+ function Ft(t) {
732
598
  return t.slice(4, -1).trim();
733
599
  }
734
- function Mt(t) {
600
+ function Rt(t) {
735
601
  return getComputedStyle(document.documentElement).getPropertyValue(t).trim() || t;
736
602
  }
737
- function se(t) {
738
- if ($t(t)) {
739
- const e = Dt(t);
740
- return Mt(e);
603
+ function ae(t) {
604
+ if (It(t)) {
605
+ const e = Ft(t);
606
+ return Rt(e);
741
607
  }
742
608
  return t;
743
609
  }
744
- function zt(t, e) {
745
- return sessionStorage.setItem(`${le}-${e}`, JSON.stringify(t)), t;
610
+ function Lt(t, e) {
611
+ return sessionStorage.setItem(`${se}-${e}`, JSON.stringify(t)), t;
746
612
  }
747
- function Pt(t, e) {
748
- sessionStorage.setItem(`${le}-${e}-custom`, JSON.stringify(t));
613
+ function Nt(t, e) {
614
+ sessionStorage.setItem(`${se}-${e}-custom`, JSON.stringify(t));
749
615
  }
750
- function jt(t) {
751
- const e = sessionStorage.getItem(`${le}-${t}-custom`);
616
+ function $t(t) {
617
+ const e = sessionStorage.getItem(`${se}-${t}-custom`);
752
618
  return e ? JSON.parse(e) : null;
753
619
  }
754
- function Bt(t, e) {
620
+ function Dt(t, e) {
755
621
  let r = null;
756
622
  return (...o) => {
757
623
  r || (r = setTimeout(() => {
@@ -759,112 +625,112 @@ function Bt(t, e) {
759
625
  }, e));
760
626
  };
761
627
  }
762
- function _r(t, e) {
763
- const r = sessionStorage.getItem(`${le}-${e}`);
628
+ function Ar(t, e) {
629
+ const r = sessionStorage.getItem(`${se}-${e}`);
764
630
  return r ? JSON.parse(r) : t;
765
631
  }
766
- const Ir = "ce-inline-toolbar__dropdown", Fr = "ce-conversion-toolbar--showed", Ut = '.color-section{display:inline-block;position:relative}.color-popover{display:inline-block;position:relative;overflow:visible}.color-btn{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border:1px solid #e1e5e9;border-radius:3px;background:var(--theme-color, #000);color:transparent;cursor:pointer;transition:all .2s ease;box-sizing:border-box}.color-btn:hover:not(.disabled){border-color:#3f51b5;box-shadow:0 2px 8px #3f51b54d}.color-btn.disabled{opacity:.5;cursor:not-allowed}.color-indicator{font-size:12px;line-height:1;-webkit-user-select:none;user-select:none}.color-panel{position:absolute;top:100%;left:0;z-index:10000;background:#fff;border:1px solid #e1e5e9;border-radius:6px;box-shadow:0 4px 20px #00000026;padding:8px;margin-top:4px;box-sizing:border-box;transform-origin:top left;animation:colorPanelShow .2s ease-out}@keyframes colorPanelShow{0%{opacity:0;transform:scale(.9) translateY(-4px)}to{opacity:1;transform:scale(1) translateY(0)}}.color-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;min-width:160px}.color-cube{width:20px;height:20px;border:1px solid #e1e5e9;border-radius:3px;cursor:pointer;transition:all .2s ease;box-sizing:border-box;background-color:var(--cube-color, #000)}.color-cube:hover{border-color:#3f51b5;transform:scale(1.1);box-shadow:0 2px 8px #3f51b566;z-index:1}.color-cube:active{transform:scale(.95)}.color-cube.custom-picker{background:linear-gradient(45deg,red,#ff8000,#ff0,#80ff00 42%,#0f0 57%,#00ff80,#0ff 85%,#0080ff);position:relative}.color-cube.custom-picker:after{content:"+";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;font-size:12px;font-weight:700;text-shadow:0 0 2px rgba(0,0,0,.8);pointer-events:none}:host([disabled]) .color-btn{opacity:.5;cursor:not-allowed}:host([open]) .color-panel{display:block}:host(:not([open])) .color-panel{display:none}@media (max-width: 768px){.color-panel{position:fixed;top:auto;left:50%;bottom:10px;transform:translate(-50%);width:90vw;max-width:300px}.color-grid{grid-template-columns:repeat(8,1fr);gap:6px}.color-cube{width:24px;height:24px}}@media (prefers-color-scheme: dark){.color-panel{background:#2d2d2d;border-color:#404040;color:#fff}.color-btn,.color-cube{border-color:#404040}}';
767
- var He;
768
- let Ge, We;
632
+ const Tr = "ce-inline-toolbar__dropdown", Or = "ce-conversion-toolbar--showed", Mt = '.color-section{display:inline-block;position:relative}.color-popover{display:inline-block;position:relative;overflow:visible}.color-btn{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border:1px solid #e1e5e9;border-radius:3px;background:var(--theme-color, #000);color:transparent;cursor:pointer;transition:all .2s ease;box-sizing:border-box}.color-btn:hover:not(.disabled){border-color:#3f51b5;box-shadow:0 2px 8px #3f51b54d}.color-btn.disabled{opacity:.5;cursor:not-allowed}.color-indicator{font-size:12px;line-height:1;-webkit-user-select:none;user-select:none}.color-panel{position:absolute;top:100%;left:0;z-index:10000;background:#fff;border:1px solid #e1e5e9;border-radius:6px;box-shadow:0 4px 20px #00000026;padding:8px;margin-top:4px;box-sizing:border-box;transform-origin:top left;animation:colorPanelShow .2s ease-out}@keyframes colorPanelShow{0%{opacity:0;transform:scale(.9) translateY(-4px)}to{opacity:1;transform:scale(1) translateY(0)}}.color-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;min-width:160px}.color-cube{width:20px;height:20px;border:1px solid #e1e5e9;border-radius:3px;cursor:pointer;transition:all .2s ease;box-sizing:border-box;background-color:var(--cube-color, #000)}.color-cube:hover{border-color:#3f51b5;transform:scale(1.1);box-shadow:0 2px 8px #3f51b566;z-index:1}.color-cube:active{transform:scale(.95)}.color-cube.custom-picker{background:linear-gradient(45deg,red,#ff8000,#ff0,#80ff00 42%,#0f0 57%,#00ff80,#0ff 85%,#0080ff);position:relative}.color-cube.custom-picker:after{content:"+";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;font-size:12px;font-weight:700;text-shadow:0 0 2px rgba(0,0,0,.8);pointer-events:none}:host([disabled]) .color-btn{opacity:.5;cursor:not-allowed}:host([open]) .color-panel{display:block}:host(:not([open])) .color-panel{display:none}@media (max-width: 768px){.color-panel{position:fixed;top:auto;left:50%;bottom:10px;transform:translate(-50%);width:90vw;max-width:300px}.color-grid{grid-template-columns:repeat(8,1fr);gap:6px}.color-cube{width:24px;height:24px}}@media (prefers-color-scheme: dark){.color-panel{background:#2d2d2d;border-color:#404040;color:#fff}.color-btn,.color-cube{border-color:#404040}}';
633
+ var Be;
634
+ let He, Ue;
769
635
  function q(t, e, r) {
770
- return (e = Ve(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
636
+ return (e = Ge(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
771
637
  }
772
- function Ht(t, e, r, o, S, A) {
773
- function b(a, s, c) {
774
- return function(i, n) {
775
- return c && c(i), a[s].call(i, n);
638
+ function zt(t, e, r, o, S, T) {
639
+ function E(i, l, d) {
640
+ return function(a, n) {
641
+ return d && d(a), i[l].call(a, n);
776
642
  };
777
643
  }
778
- function T(a, s) {
779
- for (var c = 0; c < a.length; c++) a[c].call(s);
780
- return s;
644
+ function A(i, l) {
645
+ for (var d = 0; d < i.length; d++) i[d].call(l);
646
+ return l;
781
647
  }
782
- function y(a, s, c, i) {
783
- if (typeof a != "function" && (i || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (i ? "" : " or undefined"));
784
- return a;
648
+ function m(i, l, d, a) {
649
+ if (typeof i != "function" && (a || i !== void 0)) throw new TypeError(l + " must " + (d || "be") + " a function" + (a ? "" : " or undefined"));
650
+ return i;
785
651
  }
786
- function D(a, s, c, i, n, d, h, p, k, x, m, u, v) {
787
- function O(f) {
788
- if (!v(f)) throw new TypeError("Attempted to access private element on non-instance");
652
+ function D(i, l, d, a, n, c, h, p, y, w, b, u, f) {
653
+ function C(g) {
654
+ if (!f(g)) throw new TypeError("Attempted to access private element on non-instance");
789
655
  }
790
- var g, _ = s[0], I = s[3], M = !p;
656
+ var k, _ = l[0], I = l[3], M = !p;
791
657
  if (!M) {
792
- c || Array.isArray(_) || (_ = [_]);
793
- var l = {}, R = [], E = n === 3 ? "get" : n === 4 || u ? "set" : "value";
794
- x ? (m || u ? l = { get: be(function() {
658
+ d || Array.isArray(_) || (_ = [_]);
659
+ var s = {}, F = [], x = n === 3 ? "get" : n === 4 || u ? "set" : "value";
660
+ w ? (b || u ? s = { get: fe(function() {
795
661
  return I(this);
796
- }, i, "get"), set: function(f) {
797
- s[4](this, f);
798
- } } : l[E] = I, m || be(l[E], i, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, i));
662
+ }, a, "get"), set: function(g) {
663
+ l[4](this, g);
664
+ } } : s[x] = I, b || fe(s[x], a, n === 2 ? "" : x)) : b || (s = Object.getOwnPropertyDescriptor(i, a));
799
665
  }
800
- for (var w = a, B = _.length - 1; B >= 0; B -= c ? 2 : 1) {
801
- var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: i, metadata: d, addInitializer: (function(f, N) {
802
- if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
803
- y(N, "An initializer", "be", !0), h.push(N);
666
+ for (var v = i, B = _.length - 1; B >= 0; B -= d ? 2 : 1) {
667
+ var V = _[B], G = d ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
668
+ if (g.v) throw Error("attempted to call addInitializer after decoration was finished");
669
+ m(R, "An initializer", "be", !0), h.push(R);
804
670
  }).bind(null, Y) };
805
671
  try {
806
- if (M) (g = y(W.call(G, w, z), "class decorators", "return")) && (w = g);
672
+ if (M) (k = m(V.call(G, v, z), "class decorators", "return")) && (v = k);
807
673
  else {
808
- var P, U;
809
- z.static = k, z.private = x, x ? n === 2 ? P = function(f) {
810
- return O(f), l.value;
811
- } : (n < 4 && (P = b(l, "get", O)), n !== 3 && (U = b(l, "set", O))) : (P = function(f) {
812
- return f[i];
813
- }, (n < 2 || n === 4) && (U = function(f, N) {
814
- f[i] = N;
674
+ var P, H;
675
+ z.static = y, z.private = w, w ? n === 2 ? P = function(g) {
676
+ return C(g), s.value;
677
+ } : (n < 4 && (P = E(s, "get", C)), n !== 3 && (H = E(s, "set", C))) : (P = function(g) {
678
+ return g[a];
679
+ }, (n < 2 || n === 4) && (H = function(g, R) {
680
+ g[a] = R;
815
681
  }));
816
- var V = z.access = { has: x ? v.bind() : function(f) {
817
- return i in f;
682
+ var W = z.access = { has: w ? f.bind() : function(g) {
683
+ return a in g;
818
684
  } };
819
- if (P && (V.get = P), U && (V.set = U), w = W.call(G, u ? { get: l.get, set: l.set } : l[E], z), u) {
820
- if (typeof w == "object" && w) (g = y(w.get, "accessor.get")) && (l.get = g), (g = y(w.set, "accessor.set")) && (l.set = g), (g = y(w.init, "accessor.init")) && R.push(g);
821
- else if (w !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
822
- } else y(w, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(w) : l[E] = w);
685
+ if (P && (W.get = P), H && (W.set = H), v = V.call(G, u ? { get: s.get, set: s.set } : s[x], z), u) {
686
+ if (typeof v == "object" && v) (k = m(v.get, "accessor.get")) && (s.get = k), (k = m(v.set, "accessor.set")) && (s.set = k), (k = m(v.init, "accessor.init")) && F.push(k);
687
+ else if (v !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
688
+ } else m(v, (b ? "field" : "method") + " decorators", "return") && (b ? F.push(v) : s[x] = v);
823
689
  }
824
690
  } finally {
825
691
  Y.v = !0;
826
692
  }
827
693
  }
828
- return (m || u) && p.push(function(f, N) {
829
- for (var H = R.length - 1; H >= 0; H--) N = R[H].call(f, N);
830
- return N;
831
- }), m || M || (x ? u ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, i, l)), w;
832
- }
833
- function F(a, s) {
834
- return Object.defineProperty(a, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: s });
835
- }
836
- if (arguments.length >= 6) var C = A[Symbol.metadata || Symbol.for("Symbol.metadata")];
837
- var L = Object.create(C ?? null), j = function(a, s, c, i) {
838
- var n, d, h = [], p = function(E) {
839
- return Wt(E) === a;
840
- }, k = /* @__PURE__ */ new Map();
841
- function x(E) {
842
- E && h.push(T.bind(null, E));
694
+ return (b || u) && p.push(function(g, R) {
695
+ for (var U = F.length - 1; U >= 0; U--) R = F[U].call(g, R);
696
+ return R;
697
+ }), b || M || (w ? u ? p.push(E(s, "get"), E(s, "set")) : p.push(n === 2 ? s[x] : E.call.bind(s[x])) : Object.defineProperty(i, a, s)), v;
698
+ }
699
+ function N(i, l) {
700
+ return Object.defineProperty(i, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: l });
701
+ }
702
+ if (arguments.length >= 6) var O = T[Symbol.metadata || Symbol.for("Symbol.metadata")];
703
+ var L = Object.create(O ?? null), j = function(i, l, d, a) {
704
+ var n, c, h = [], p = function(x) {
705
+ return jt(x) === i;
706
+ }, y = /* @__PURE__ */ new Map();
707
+ function w(x) {
708
+ x && h.push(A.bind(null, x));
843
709
  }
844
- for (var m = 0; m < s.length; m++) {
845
- var u = s[m];
710
+ for (var b = 0; b < l.length; b++) {
711
+ var u = l[b];
846
712
  if (Array.isArray(u)) {
847
- var v = u[1], O = u[2], g = u.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = O + "/" + I;
848
- if (!M && !g) {
849
- var R = k.get(l);
850
- if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + O);
851
- k.set(l, !(v > 2) || v);
713
+ var f = u[1], C = u[2], k = u.length > 3, _ = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = C + "/" + I;
714
+ if (!M && !k) {
715
+ var F = y.get(s);
716
+ if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + C);
717
+ y.set(s, !(f > 2) || f);
852
718
  }
853
- D(I ? a : a.prototype, u, _, g ? "#" + O : Ve(O), v, i, I ? d = d || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
719
+ D(I ? i : i.prototype, u, _, k ? "#" + C : Ge(C), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
854
720
  }
855
721
  }
856
- return x(n), x(d), h;
722
+ return w(n), w(c), h;
857
723
  }(t, e, S, L);
858
- return r.length || F(t, L), { e: j, get c() {
859
- var a = [];
860
- return r.length && [F(D(t, [r], o, t.name, 5, L, a), L), T.bind(null, a, t)];
724
+ return r.length || N(t, L), { e: j, get c() {
725
+ var i = [];
726
+ return r.length && [N(D(t, [r], o, t.name, 5, L, i), L), A.bind(null, i, t)];
861
727
  } };
862
728
  }
863
- function Ve(t) {
864
- var e = Gt(t, "string");
729
+ function Ge(t) {
730
+ var e = Pt(t, "string");
865
731
  return typeof e == "symbol" ? e : e + "";
866
732
  }
867
- function Gt(t, e) {
733
+ function Pt(t, e) {
868
734
  if (typeof t != "object" || !t) return t;
869
735
  var r = t[Symbol.toPrimitive];
870
736
  if (r !== void 0) {
@@ -874,7 +740,7 @@ function Gt(t, e) {
874
740
  }
875
741
  return String(t);
876
742
  }
877
- function be(t, e, r) {
743
+ function fe(t, e, r) {
878
744
  typeof e == "symbol" && (e = (e = e.description) ? "[" + e + "]" : "");
879
745
  try {
880
746
  Object.defineProperty(t, "name", { configurable: !0, value: r ? r + " " + e : e });
@@ -882,16 +748,16 @@ function be(t, e, r) {
882
748
  }
883
749
  return t;
884
750
  }
885
- function Wt(t) {
751
+ function jt(t) {
886
752
  if (Object(t) !== t) throw TypeError("right-hand side of 'in' should be an object, got " + (t !== null ? typeof t : "null"));
887
753
  return t;
888
754
  }
889
- const oe = Ue("ColorPicker"), Vt = ["#ff1300", "#EC7878", "#9C27B0", "#673AB7", "#3F51B5", "#0070FF", "#03A9F4", "#00BCD4", "#4CAF50", "#8BC34A", "#CDDC39", "#FFE500", "#FFBF00", "#FF9800", "#795548", "#9E9E9E", "#5A5A5A", "#FFF"];
890
- We = [te({
755
+ const oe = je("ColorPicker"), Bt = ["#ff1300", "#EC7878", "#9C27B0", "#673AB7", "#3F51B5", "#0070FF", "#03A9F4", "#00BCD4", "#4CAF50", "#8BC34A", "#CDDC39", "#FFE500", "#FFBF00", "#FF9800", "#795548", "#9E9E9E", "#5A5A5A", "#FFF"];
756
+ Ue = [te({
891
757
  tagName: "color-picker"
892
758
  })];
893
- let Yt;
894
- class Kt extends J {
759
+ let Ht;
760
+ class Ut extends J {
895
761
  static get observedAttributes() {
896
762
  return ["disabled", "selected-color", "open"];
897
763
  }
@@ -899,14 +765,14 @@ class Kt extends J {
899
765
  super({
900
766
  styleName: "base-color-picker",
901
767
  ...e
902
- }), q(this, "_autoStyles", Ut), q(this, "colorCollections", void 0), q(this, "onColorPicked", void 0), q(this, "hasCustomPicker", void 0), q(this, "defaultColor", void 0), q(this, "pluginType", void 0), q(this, "disabled", void 0), q(this, "selectedColor", void 0), q(this, "customColor", void 0), q(this, "isOpen", void 0), q(this, "colorBtn", void 0), q(this, "colorPanel", void 0), q(this, "handleButtonClick", (r) => {
768
+ }), q(this, "_autoStyles", Mt), q(this, "colorCollections", void 0), q(this, "onColorPicked", void 0), q(this, "hasCustomPicker", void 0), q(this, "defaultColor", void 0), q(this, "pluginType", void 0), q(this, "disabled", void 0), q(this, "selectedColor", void 0), q(this, "customColor", void 0), q(this, "isOpen", void 0), q(this, "colorBtn", void 0), q(this, "colorPanel", void 0), q(this, "handleButtonClick", (r) => {
903
769
  r.stopPropagation(), this.togglePanel();
904
770
  }), q(this, "handlePanelClick", (r) => {
905
771
  r.stopPropagation();
906
772
  }), q(this, "handleColorSelect", (r) => {
907
773
  var S;
908
- const o = se(r);
909
- this.setSelectedColor(o), this.closePanel(), zt(o, this.pluginType), (S = this.onColorPicked) == null || S.call(this, o), this.dispatchEvent(new CustomEvent("colorchange", {
774
+ const o = ae(r);
775
+ this.setSelectedColor(o), this.closePanel(), Lt(o, this.pluginType), (S = this.onColorPicked) == null || S.call(this, o), this.dispatchEvent(new CustomEvent("colorchange", {
910
776
  detail: {
911
777
  color: o
912
778
  },
@@ -923,17 +789,17 @@ class Kt extends J {
923
789
  opacity: 0;
924
790
  pointer-events: none;
925
791
  `;
926
- const o = Bt((S) => {
927
- var T;
928
- const A = S.target, b = se(A.value);
929
- this.setSelectedColor(b), this.setCustomColor(b), document.body.removeChild(r), (T = this.onColorPicked) == null || T.call(this, b), this.dispatchEvent(new CustomEvent("colorchange", {
792
+ const o = Dt((S) => {
793
+ var A;
794
+ const T = S.target, E = ae(T.value);
795
+ this.setSelectedColor(E), this.setCustomColor(E), document.body.removeChild(r), (A = this.onColorPicked) == null || A.call(this, E), this.dispatchEvent(new CustomEvent("colorchange", {
930
796
  detail: {
931
- color: b
797
+ color: E
932
798
  },
933
799
  bubbles: !0,
934
800
  composed: !0
935
801
  })), oe.debug("Custom color selected", {
936
- color: b
802
+ color: E
937
803
  });
938
804
  }, 30);
939
805
  r.addEventListener("input", o), document.body.appendChild(r), requestAnimationFrame(() => {
@@ -941,7 +807,7 @@ class Kt extends J {
941
807
  });
942
808
  }), q(this, "handleDocumentClick", (r) => {
943
809
  this.isOpen && !this.contains(r.target) && this.closePanel();
944
- }), this.colorCollections = e.colorCollections || Vt, this.onColorPicked = e.onColorPicked, this.hasCustomPicker = e.hasCustomPicker || !1, this.pluginType = e.pluginType || "text", this.disabled = e.disabled || !1, this.defaultColor = se(e.defaultColor || this.colorCollections[0]), this.selectedColor = this.defaultColor, this.customColor = jt(this.pluginType) || "", this.isOpen = !1, oe.debug("ColorPicker initialized", {
810
+ }), this.colorCollections = e.colorCollections || Bt, this.onColorPicked = e.onColorPicked, this.hasCustomPicker = e.hasCustomPicker || !1, this.pluginType = e.pluginType || "text", this.disabled = e.disabled || !1, this.defaultColor = ae(e.defaultColor || this.colorCollections[0]), this.selectedColor = this.defaultColor, this.customColor = $t(this.pluginType) || "", this.isOpen = !1, oe.debug("ColorPicker initialized", {
945
811
  colorCollections: this.colorCollections.length,
946
812
  hasCustomPicker: this.hasCustomPicker,
947
813
  pluginType: this.pluginType
@@ -1006,7 +872,7 @@ class Kt extends J {
1006
872
  * 设置自定义颜色
1007
873
  */
1008
874
  setCustomColor(e) {
1009
- this.customColor = e, Pt(e, this.pluginType);
875
+ this.customColor = e, Nt(e, this.pluginType);
1010
876
  }
1011
877
  /**
1012
878
  * 设置面板开关状态
@@ -1060,7 +926,7 @@ class Kt extends J {
1060
926
  * 公共API:设置颜色
1061
927
  */
1062
928
  setColor(e) {
1063
- this.setSelectedColor(se(e));
929
+ this.setSelectedColor(ae(e));
1064
930
  }
1065
931
  /**
1066
932
  * 公共API:聚焦组件
@@ -1070,111 +936,111 @@ class Kt extends J {
1070
936
  (e = this.colorBtn) == null || e.focus();
1071
937
  }
1072
938
  }
1073
- He = Kt;
1074
- [Yt, Ge] = Ht(He, [], We, 0, void 0, J).c;
1075
- Ge();
1076
- const Zt = ":host{display:block}.theme-switcher-container{position:relative;display:flex;align-items:center}.theme-switcher-btn{width:var(--theme-switcher-width, 2.5rem);height:var(--theme-switcher-height, 2.5rem);padding:var(--theme-switcher-padding, .5rem);border-radius:var(--theme-switcher-border-radius, 8px);background:var(--theme-switcher-bg, #dc2626);border:var(--theme-switcher-border, none);color:var(--theme-switcher-color, white);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--theme-switcher-transition, .3s ease);box-shadow:var(--theme-switcher-shadow, 0 4px 15px rgba(220, 38, 38, .4));font-weight:var(--theme-switcher-font-weight, 600);font-family:var(--theme-switcher-font-family, inherit)}.theme-switcher-btn:hover{background:var(--theme-switcher-hover-bg, #b91c1c);transform:var(--theme-switcher-hover-transform, translateY(-2px));box-shadow:var(--theme-switcher-hover-shadow, 0 8px 25px rgba(220, 38, 38, .5))}.theme-switcher-btn:active{transform:var(--theme-switcher-active-transform, translateY(0))}.theme-switcher-icon{font-size:var(--theme-switcher-icon-size, 1rem);line-height:1;transition:transform var(--theme-switcher-icon-transition, .3s ease)}.theme-switcher-btn:hover .theme-switcher-icon{transform:var(--theme-switcher-icon-hover-transform, rotate(360deg))}.theme-switcher-btn[data-theme=light]{background:var(--theme-switcher-light-bg, #dc2626);color:var(--theme-switcher-light-color, white)}.theme-switcher-btn[data-theme=light]:hover{background:var(--theme-switcher-light-hover-bg, #b91c1c)}.theme-switcher-btn[data-theme=dark]{background:var(--theme-switcher-dark-bg, #dc2626);color:var(--theme-switcher-dark-color, white)}.theme-switcher-btn[data-theme=dark]:hover{background:var(--theme-switcher-dark-hover-bg, #b91c1c)}.theme-switcher-btn[data-theme=auto]{background:var(--theme-switcher-auto-bg, linear-gradient(135deg, #dc2626, #b91c1c));color:var(--theme-switcher-auto-color, white)}.theme-switcher-btn[data-theme=auto]:hover{background:var(--theme-switcher-auto-hover-bg, linear-gradient(135deg, #b91c1c, #991b1b))}@media (max-width: 768px){.theme-switcher-btn{width:var(--theme-switcher-mobile-width, 2rem);height:var(--theme-switcher-mobile-height, 2rem)}.theme-switcher-icon{font-size:var(--theme-switcher-mobile-icon-size, .9rem)}}";
1077
- var Ye;
1078
- let Ke, Ze;
939
+ Be = Ut;
940
+ [Ht, He] = zt(Be, [], Ue, 0, void 0, J).c;
941
+ He();
942
+ const Gt = ":host{display:block}.theme-switcher-container{position:relative;display:flex;align-items:center}.theme-switcher-btn{width:var(--theme-switcher-width, 2.5rem);height:var(--theme-switcher-height, 2.5rem);padding:var(--theme-switcher-padding, .5rem);border-radius:var(--theme-switcher-border-radius, 8px);background:var(--theme-switcher-bg, #dc2626);border:var(--theme-switcher-border, none);color:var(--theme-switcher-color, white);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--theme-switcher-transition, .3s ease);box-shadow:var(--theme-switcher-shadow, 0 4px 15px rgba(220, 38, 38, .4));font-weight:var(--theme-switcher-font-weight, 600);font-family:var(--theme-switcher-font-family, inherit)}.theme-switcher-btn:hover{background:var(--theme-switcher-hover-bg, #b91c1c);transform:var(--theme-switcher-hover-transform, translateY(-2px));box-shadow:var(--theme-switcher-hover-shadow, 0 8px 25px rgba(220, 38, 38, .5))}.theme-switcher-btn:active{transform:var(--theme-switcher-active-transform, translateY(0))}.theme-switcher-icon{font-size:var(--theme-switcher-icon-size, 1rem);line-height:1;transition:transform var(--theme-switcher-icon-transition, .3s ease)}.theme-switcher-btn:hover .theme-switcher-icon{transform:var(--theme-switcher-icon-hover-transform, rotate(360deg))}.theme-switcher-btn[data-theme=light]{background:var(--theme-switcher-light-bg, #dc2626);color:var(--theme-switcher-light-color, white)}.theme-switcher-btn[data-theme=light]:hover{background:var(--theme-switcher-light-hover-bg, #b91c1c)}.theme-switcher-btn[data-theme=dark]{background:var(--theme-switcher-dark-bg, #dc2626);color:var(--theme-switcher-dark-color, white)}.theme-switcher-btn[data-theme=dark]:hover{background:var(--theme-switcher-dark-hover-bg, #b91c1c)}.theme-switcher-btn[data-theme=auto]{background:var(--theme-switcher-auto-bg, linear-gradient(135deg, #dc2626, #b91c1c));color:var(--theme-switcher-auto-color, white)}.theme-switcher-btn[data-theme=auto]:hover{background:var(--theme-switcher-auto-hover-bg, linear-gradient(135deg, #b91c1c, #991b1b))}@media (max-width: 768px){.theme-switcher-btn{width:var(--theme-switcher-mobile-width, 2rem);height:var(--theme-switcher-mobile-height, 2rem)}.theme-switcher-icon{font-size:var(--theme-switcher-mobile-icon-size, .9rem)}}";
943
+ var Ve;
944
+ let We, Ye;
1079
945
  function de(t, e, r) {
1080
- return (e = Xe(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
946
+ return (e = Ke(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
1081
947
  }
1082
- function Xt(t, e, r, o, S, A) {
1083
- function b(a, s, c) {
1084
- return function(i, n) {
1085
- return c && c(i), a[s].call(i, n);
948
+ function Vt(t, e, r, o, S, T) {
949
+ function E(i, l, d) {
950
+ return function(a, n) {
951
+ return d && d(a), i[l].call(a, n);
1086
952
  };
1087
953
  }
1088
- function T(a, s) {
1089
- for (var c = 0; c < a.length; c++) a[c].call(s);
1090
- return s;
954
+ function A(i, l) {
955
+ for (var d = 0; d < i.length; d++) i[d].call(l);
956
+ return l;
1091
957
  }
1092
- function y(a, s, c, i) {
1093
- if (typeof a != "function" && (i || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (i ? "" : " or undefined"));
1094
- return a;
958
+ function m(i, l, d, a) {
959
+ if (typeof i != "function" && (a || i !== void 0)) throw new TypeError(l + " must " + (d || "be") + " a function" + (a ? "" : " or undefined"));
960
+ return i;
1095
961
  }
1096
- function D(a, s, c, i, n, d, h, p, k, x, m, u, v) {
1097
- function O(f) {
1098
- if (!v(f)) throw new TypeError("Attempted to access private element on non-instance");
962
+ function D(i, l, d, a, n, c, h, p, y, w, b, u, f) {
963
+ function C(g) {
964
+ if (!f(g)) throw new TypeError("Attempted to access private element on non-instance");
1099
965
  }
1100
- var g, _ = s[0], I = s[3], M = !p;
966
+ var k, _ = l[0], I = l[3], M = !p;
1101
967
  if (!M) {
1102
- c || Array.isArray(_) || (_ = [_]);
1103
- var l = {}, R = [], E = n === 3 ? "get" : n === 4 || u ? "set" : "value";
1104
- x ? (m || u ? l = { get: me(function() {
968
+ d || Array.isArray(_) || (_ = [_]);
969
+ var s = {}, F = [], x = n === 3 ? "get" : n === 4 || u ? "set" : "value";
970
+ w ? (b || u ? s = { get: me(function() {
1105
971
  return I(this);
1106
- }, i, "get"), set: function(f) {
1107
- s[4](this, f);
1108
- } } : l[E] = I, m || me(l[E], i, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, i));
972
+ }, a, "get"), set: function(g) {
973
+ l[4](this, g);
974
+ } } : s[x] = I, b || me(s[x], a, n === 2 ? "" : x)) : b || (s = Object.getOwnPropertyDescriptor(i, a));
1109
975
  }
1110
- for (var w = a, B = _.length - 1; B >= 0; B -= c ? 2 : 1) {
1111
- var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: i, metadata: d, addInitializer: (function(f, N) {
1112
- if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
1113
- y(N, "An initializer", "be", !0), h.push(N);
976
+ for (var v = i, B = _.length - 1; B >= 0; B -= d ? 2 : 1) {
977
+ var V = _[B], G = d ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
978
+ if (g.v) throw Error("attempted to call addInitializer after decoration was finished");
979
+ m(R, "An initializer", "be", !0), h.push(R);
1114
980
  }).bind(null, Y) };
1115
981
  try {
1116
- if (M) (g = y(W.call(G, w, z), "class decorators", "return")) && (w = g);
982
+ if (M) (k = m(V.call(G, v, z), "class decorators", "return")) && (v = k);
1117
983
  else {
1118
- var P, U;
1119
- z.static = k, z.private = x, x ? n === 2 ? P = function(f) {
1120
- return O(f), l.value;
1121
- } : (n < 4 && (P = b(l, "get", O)), n !== 3 && (U = b(l, "set", O))) : (P = function(f) {
1122
- return f[i];
1123
- }, (n < 2 || n === 4) && (U = function(f, N) {
1124
- f[i] = N;
984
+ var P, H;
985
+ z.static = y, z.private = w, w ? n === 2 ? P = function(g) {
986
+ return C(g), s.value;
987
+ } : (n < 4 && (P = E(s, "get", C)), n !== 3 && (H = E(s, "set", C))) : (P = function(g) {
988
+ return g[a];
989
+ }, (n < 2 || n === 4) && (H = function(g, R) {
990
+ g[a] = R;
1125
991
  }));
1126
- var V = z.access = { has: x ? v.bind() : function(f) {
1127
- return i in f;
992
+ var W = z.access = { has: w ? f.bind() : function(g) {
993
+ return a in g;
1128
994
  } };
1129
- if (P && (V.get = P), U && (V.set = U), w = W.call(G, u ? { get: l.get, set: l.set } : l[E], z), u) {
1130
- if (typeof w == "object" && w) (g = y(w.get, "accessor.get")) && (l.get = g), (g = y(w.set, "accessor.set")) && (l.set = g), (g = y(w.init, "accessor.init")) && R.push(g);
1131
- else if (w !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
1132
- } else y(w, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(w) : l[E] = w);
995
+ if (P && (W.get = P), H && (W.set = H), v = V.call(G, u ? { get: s.get, set: s.set } : s[x], z), u) {
996
+ if (typeof v == "object" && v) (k = m(v.get, "accessor.get")) && (s.get = k), (k = m(v.set, "accessor.set")) && (s.set = k), (k = m(v.init, "accessor.init")) && F.push(k);
997
+ else if (v !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
998
+ } else m(v, (b ? "field" : "method") + " decorators", "return") && (b ? F.push(v) : s[x] = v);
1133
999
  }
1134
1000
  } finally {
1135
1001
  Y.v = !0;
1136
1002
  }
1137
1003
  }
1138
- return (m || u) && p.push(function(f, N) {
1139
- for (var H = R.length - 1; H >= 0; H--) N = R[H].call(f, N);
1140
- return N;
1141
- }), m || M || (x ? u ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, i, l)), w;
1142
- }
1143
- function F(a, s) {
1144
- return Object.defineProperty(a, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: s });
1145
- }
1146
- if (arguments.length >= 6) var C = A[Symbol.metadata || Symbol.for("Symbol.metadata")];
1147
- var L = Object.create(C ?? null), j = function(a, s, c, i) {
1148
- var n, d, h = [], p = function(E) {
1149
- return Qt(E) === a;
1150
- }, k = /* @__PURE__ */ new Map();
1151
- function x(E) {
1152
- E && h.push(T.bind(null, E));
1004
+ return (b || u) && p.push(function(g, R) {
1005
+ for (var U = F.length - 1; U >= 0; U--) R = F[U].call(g, R);
1006
+ return R;
1007
+ }), b || M || (w ? u ? p.push(E(s, "get"), E(s, "set")) : p.push(n === 2 ? s[x] : E.call.bind(s[x])) : Object.defineProperty(i, a, s)), v;
1008
+ }
1009
+ function N(i, l) {
1010
+ return Object.defineProperty(i, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: l });
1011
+ }
1012
+ if (arguments.length >= 6) var O = T[Symbol.metadata || Symbol.for("Symbol.metadata")];
1013
+ var L = Object.create(O ?? null), j = function(i, l, d, a) {
1014
+ var n, c, h = [], p = function(x) {
1015
+ return Yt(x) === i;
1016
+ }, y = /* @__PURE__ */ new Map();
1017
+ function w(x) {
1018
+ x && h.push(A.bind(null, x));
1153
1019
  }
1154
- for (var m = 0; m < s.length; m++) {
1155
- var u = s[m];
1020
+ for (var b = 0; b < l.length; b++) {
1021
+ var u = l[b];
1156
1022
  if (Array.isArray(u)) {
1157
- var v = u[1], O = u[2], g = u.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = O + "/" + I;
1158
- if (!M && !g) {
1159
- var R = k.get(l);
1160
- if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + O);
1161
- k.set(l, !(v > 2) || v);
1023
+ var f = u[1], C = u[2], k = u.length > 3, _ = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = C + "/" + I;
1024
+ if (!M && !k) {
1025
+ var F = y.get(s);
1026
+ if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + C);
1027
+ y.set(s, !(f > 2) || f);
1162
1028
  }
1163
- D(I ? a : a.prototype, u, _, g ? "#" + O : Xe(O), v, i, I ? d = d || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
1029
+ D(I ? i : i.prototype, u, _, k ? "#" + C : Ke(C), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
1164
1030
  }
1165
1031
  }
1166
- return x(n), x(d), h;
1032
+ return w(n), w(c), h;
1167
1033
  }(t, e, S, L);
1168
- return r.length || F(t, L), { e: j, get c() {
1169
- var a = [];
1170
- return r.length && [F(D(t, [r], o, t.name, 5, L, a), L), T.bind(null, a, t)];
1034
+ return r.length || N(t, L), { e: j, get c() {
1035
+ var i = [];
1036
+ return r.length && [N(D(t, [r], o, t.name, 5, L, i), L), A.bind(null, i, t)];
1171
1037
  } };
1172
1038
  }
1173
- function Xe(t) {
1174
- var e = qt(t, "string");
1039
+ function Ke(t) {
1040
+ var e = Wt(t, "string");
1175
1041
  return typeof e == "symbol" ? e : e + "";
1176
1042
  }
1177
- function qt(t, e) {
1043
+ function Wt(t, e) {
1178
1044
  if (typeof t != "object" || !t) return t;
1179
1045
  var r = t[Symbol.toPrimitive];
1180
1046
  if (r !== void 0) {
@@ -1192,19 +1058,19 @@ function me(t, e, r) {
1192
1058
  }
1193
1059
  return t;
1194
1060
  }
1195
- function Qt(t) {
1061
+ function Yt(t) {
1196
1062
  if (Object(t) !== t) throw TypeError("right-hand side of 'in' should be an object, got " + (t !== null ? typeof t : "null"));
1197
1063
  return t;
1198
1064
  }
1199
- Ze = [te({
1065
+ Ye = [te({
1200
1066
  tagName: "theme-switcher"
1201
1067
  })];
1202
- let Jt;
1203
- class er extends J {
1068
+ let Kt;
1069
+ class Zt extends J {
1204
1070
  constructor() {
1205
1071
  super({
1206
1072
  styleName: "theme-switcher"
1207
- }), de(this, "_autoStyles", Zt), de(this, "currentTheme", "auto"), de(this, "toggleTheme", () => {
1073
+ }), de(this, "_autoStyles", Gt), de(this, "currentTheme", "auto"), de(this, "toggleTheme", () => {
1208
1074
  const e = ["auto", "light", "dark"], o = (e.indexOf(this.currentTheme) + 1) % e.length;
1209
1075
  this.setTheme(e[o]);
1210
1076
  }), this.initTheme();
@@ -1239,111 +1105,111 @@ class er extends J {
1239
1105
  });
1240
1106
  }
1241
1107
  }
1242
- Ye = er;
1243
- [Jt, Ke] = Xt(Ye, [], Ze, 0, void 0, J).c;
1244
- Ke();
1108
+ Ve = Zt;
1109
+ [Kt, We] = Vt(Ve, [], Ye, 0, void 0, J).c;
1110
+ We();
1245
1111
  const ve = ":host{display:inline-block;position:relative}.dropdown-container{position:relative;display:inline-block}.dropdown-button{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.5rem .75rem;min-width:120px;background:var(--dropdown-bg, rgba(255, 255, 255, .1));border:1px solid var(--dropdown-border, rgba(255, 255, 255, .2));border-radius:var(--dropdown-border-radius, .5rem);color:var(--dropdown-color, currentColor);cursor:pointer;font-size:.875rem;font-weight:500;transition:all .2s ease;text-align:left}.dropdown-button:hover:not(.disabled){background:var(--dropdown-hover-bg, rgba(255, 255, 255, .15));border-color:var(--dropdown-hover-border, rgba(255, 255, 255, .3))}.dropdown-button:focus:not(.disabled){outline:2px solid var(--dropdown-focus-color, var(--focus-color, #dc2626));outline-offset:2px}.dropdown-button.open{background:var(--dropdown-open-bg, rgba(255, 255, 255, .2))}.dropdown-button.disabled{opacity:.5;cursor:not-allowed}.dropdown-text{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropdown-arrow{font-size:.625rem;opacity:.7;transition:transform .2s ease;flex-shrink:0}.dropdown-button.open .dropdown-arrow{transform:rotate(180deg)}.dropdown-menu{position:absolute;z-index:1000;min-width:160px;max-width:300px;max-height:300px;overflow-y:auto;background:var(--dropdown-menu-bg, #ffffff);border:1px solid var(--dropdown-menu-border, #e5e7eb);border-radius:var(--dropdown-border-radius, .5rem);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;padding:.25rem;margin:.25rem 0 0}[data-theme=dark] .dropdown-menu{background:var(--dropdown-menu-bg-dark, #1f2937);border-color:var(--dropdown-menu-border-dark, #374151)}.dropdown-menu.dropdown-top{bottom:100%;margin:0 0 .25rem}.dropdown-menu.dropdown-bottom{top:100%;margin:.25rem 0 0}.dropdown-menu.dropdown-left{left:0}.dropdown-menu.dropdown-right{right:0}.dropdown-menu.dropdown-center{left:50%;transform:translate(-50%)}.dropdown-menu.dropdown-top.dropdown-center{transform:translate(-50%) translateY(-100%)}.dropdown-option{display:flex;align-items:center;width:100%;padding:.5rem .75rem;background:transparent;border:none;border-radius:.375rem;color:var(--dropdown-option-color, #1f2937);cursor:pointer;font-size:.875rem;text-align:left;transition:background-color .15s ease}[data-theme=dark] .dropdown-option{color:var(--dropdown-option-color-dark, #f3f4f6)}.dropdown-option:hover:not(.disabled){background:var(--dropdown-option-hover-bg, #f3f4f6)}[data-theme=dark] .dropdown-option:hover:not(.disabled){background:var(--dropdown-option-hover-bg-dark, #374151)}.dropdown-option.selected{background:var(--dropdown-option-selected-bg, #dc2626);color:var(--dropdown-option-selected-color, #ffffff);font-weight:600}.dropdown-option.selected:hover{background:var(--dropdown-option-selected-hover-bg, #b91c1c)}.dropdown-option.disabled{opacity:.5;cursor:not-allowed}.dropdown-empty{padding:.5rem .75rem;color:var(--dropdown-empty-color, #9ca3af);font-size:.875rem;text-align:center}@media (max-width: 768px){.dropdown-button{min-width:100px;padding:.375rem .5rem;font-size:.8125rem}.dropdown-menu{min-width:140px;max-width:200px}}";
1246
- var qe;
1247
- let Qe, Je;
1112
+ var Ze;
1113
+ let Xe, qe;
1248
1114
  function ee(t, e, r) {
1249
- return (e = et(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
1115
+ return (e = Qe(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
1250
1116
  }
1251
- function tr(t, e, r, o, S, A) {
1252
- function b(a, s, c) {
1253
- return function(i, n) {
1254
- return c && c(i), a[s].call(i, n);
1117
+ function Xt(t, e, r, o, S, T) {
1118
+ function E(i, l, d) {
1119
+ return function(a, n) {
1120
+ return d && d(a), i[l].call(a, n);
1255
1121
  };
1256
1122
  }
1257
- function T(a, s) {
1258
- for (var c = 0; c < a.length; c++) a[c].call(s);
1259
- return s;
1123
+ function A(i, l) {
1124
+ for (var d = 0; d < i.length; d++) i[d].call(l);
1125
+ return l;
1260
1126
  }
1261
- function y(a, s, c, i) {
1262
- if (typeof a != "function" && (i || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (i ? "" : " or undefined"));
1263
- return a;
1127
+ function m(i, l, d, a) {
1128
+ if (typeof i != "function" && (a || i !== void 0)) throw new TypeError(l + " must " + (d || "be") + " a function" + (a ? "" : " or undefined"));
1129
+ return i;
1264
1130
  }
1265
- function D(a, s, c, i, n, d, h, p, k, x, m, u, v) {
1266
- function O(f) {
1267
- if (!v(f)) throw new TypeError("Attempted to access private element on non-instance");
1131
+ function D(i, l, d, a, n, c, h, p, y, w, b, u, f) {
1132
+ function C(g) {
1133
+ if (!f(g)) throw new TypeError("Attempted to access private element on non-instance");
1268
1134
  }
1269
- var g, _ = s[0], I = s[3], M = !p;
1135
+ var k, _ = l[0], I = l[3], M = !p;
1270
1136
  if (!M) {
1271
- c || Array.isArray(_) || (_ = [_]);
1272
- var l = {}, R = [], E = n === 3 ? "get" : n === 4 || u ? "set" : "value";
1273
- x ? (m || u ? l = { get: ye(function() {
1137
+ d || Array.isArray(_) || (_ = [_]);
1138
+ var s = {}, F = [], x = n === 3 ? "get" : n === 4 || u ? "set" : "value";
1139
+ w ? (b || u ? s = { get: ye(function() {
1274
1140
  return I(this);
1275
- }, i, "get"), set: function(f) {
1276
- s[4](this, f);
1277
- } } : l[E] = I, m || ye(l[E], i, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, i));
1141
+ }, a, "get"), set: function(g) {
1142
+ l[4](this, g);
1143
+ } } : s[x] = I, b || ye(s[x], a, n === 2 ? "" : x)) : b || (s = Object.getOwnPropertyDescriptor(i, a));
1278
1144
  }
1279
- for (var w = a, B = _.length - 1; B >= 0; B -= c ? 2 : 1) {
1280
- var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: i, metadata: d, addInitializer: (function(f, N) {
1281
- if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
1282
- y(N, "An initializer", "be", !0), h.push(N);
1145
+ for (var v = i, B = _.length - 1; B >= 0; B -= d ? 2 : 1) {
1146
+ var V = _[B], G = d ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
1147
+ if (g.v) throw Error("attempted to call addInitializer after decoration was finished");
1148
+ m(R, "An initializer", "be", !0), h.push(R);
1283
1149
  }).bind(null, Y) };
1284
1150
  try {
1285
- if (M) (g = y(W.call(G, w, z), "class decorators", "return")) && (w = g);
1151
+ if (M) (k = m(V.call(G, v, z), "class decorators", "return")) && (v = k);
1286
1152
  else {
1287
- var P, U;
1288
- z.static = k, z.private = x, x ? n === 2 ? P = function(f) {
1289
- return O(f), l.value;
1290
- } : (n < 4 && (P = b(l, "get", O)), n !== 3 && (U = b(l, "set", O))) : (P = function(f) {
1291
- return f[i];
1292
- }, (n < 2 || n === 4) && (U = function(f, N) {
1293
- f[i] = N;
1153
+ var P, H;
1154
+ z.static = y, z.private = w, w ? n === 2 ? P = function(g) {
1155
+ return C(g), s.value;
1156
+ } : (n < 4 && (P = E(s, "get", C)), n !== 3 && (H = E(s, "set", C))) : (P = function(g) {
1157
+ return g[a];
1158
+ }, (n < 2 || n === 4) && (H = function(g, R) {
1159
+ g[a] = R;
1294
1160
  }));
1295
- var V = z.access = { has: x ? v.bind() : function(f) {
1296
- return i in f;
1161
+ var W = z.access = { has: w ? f.bind() : function(g) {
1162
+ return a in g;
1297
1163
  } };
1298
- if (P && (V.get = P), U && (V.set = U), w = W.call(G, u ? { get: l.get, set: l.set } : l[E], z), u) {
1299
- if (typeof w == "object" && w) (g = y(w.get, "accessor.get")) && (l.get = g), (g = y(w.set, "accessor.set")) && (l.set = g), (g = y(w.init, "accessor.init")) && R.push(g);
1300
- else if (w !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
1301
- } else y(w, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(w) : l[E] = w);
1164
+ if (P && (W.get = P), H && (W.set = H), v = V.call(G, u ? { get: s.get, set: s.set } : s[x], z), u) {
1165
+ if (typeof v == "object" && v) (k = m(v.get, "accessor.get")) && (s.get = k), (k = m(v.set, "accessor.set")) && (s.set = k), (k = m(v.init, "accessor.init")) && F.push(k);
1166
+ else if (v !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
1167
+ } else m(v, (b ? "field" : "method") + " decorators", "return") && (b ? F.push(v) : s[x] = v);
1302
1168
  }
1303
1169
  } finally {
1304
1170
  Y.v = !0;
1305
1171
  }
1306
1172
  }
1307
- return (m || u) && p.push(function(f, N) {
1308
- for (var H = R.length - 1; H >= 0; H--) N = R[H].call(f, N);
1309
- return N;
1310
- }), m || M || (x ? u ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, i, l)), w;
1311
- }
1312
- function F(a, s) {
1313
- return Object.defineProperty(a, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: s });
1314
- }
1315
- if (arguments.length >= 6) var C = A[Symbol.metadata || Symbol.for("Symbol.metadata")];
1316
- var L = Object.create(C ?? null), j = function(a, s, c, i) {
1317
- var n, d, h = [], p = function(E) {
1318
- return nr(E) === a;
1319
- }, k = /* @__PURE__ */ new Map();
1320
- function x(E) {
1321
- E && h.push(T.bind(null, E));
1173
+ return (b || u) && p.push(function(g, R) {
1174
+ for (var U = F.length - 1; U >= 0; U--) R = F[U].call(g, R);
1175
+ return R;
1176
+ }), b || M || (w ? u ? p.push(E(s, "get"), E(s, "set")) : p.push(n === 2 ? s[x] : E.call.bind(s[x])) : Object.defineProperty(i, a, s)), v;
1177
+ }
1178
+ function N(i, l) {
1179
+ return Object.defineProperty(i, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: l });
1180
+ }
1181
+ if (arguments.length >= 6) var O = T[Symbol.metadata || Symbol.for("Symbol.metadata")];
1182
+ var L = Object.create(O ?? null), j = function(i, l, d, a) {
1183
+ var n, c, h = [], p = function(x) {
1184
+ return Qt(x) === i;
1185
+ }, y = /* @__PURE__ */ new Map();
1186
+ function w(x) {
1187
+ x && h.push(A.bind(null, x));
1322
1188
  }
1323
- for (var m = 0; m < s.length; m++) {
1324
- var u = s[m];
1189
+ for (var b = 0; b < l.length; b++) {
1190
+ var u = l[b];
1325
1191
  if (Array.isArray(u)) {
1326
- var v = u[1], O = u[2], g = u.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = O + "/" + I;
1327
- if (!M && !g) {
1328
- var R = k.get(l);
1329
- if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + O);
1330
- k.set(l, !(v > 2) || v);
1192
+ var f = u[1], C = u[2], k = u.length > 3, _ = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = C + "/" + I;
1193
+ if (!M && !k) {
1194
+ var F = y.get(s);
1195
+ if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + C);
1196
+ y.set(s, !(f > 2) || f);
1331
1197
  }
1332
- D(I ? a : a.prototype, u, _, g ? "#" + O : et(O), v, i, I ? d = d || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
1198
+ D(I ? i : i.prototype, u, _, k ? "#" + C : Qe(C), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
1333
1199
  }
1334
1200
  }
1335
- return x(n), x(d), h;
1201
+ return w(n), w(c), h;
1336
1202
  }(t, e, S, L);
1337
- return r.length || F(t, L), { e: j, get c() {
1338
- var a = [];
1339
- return r.length && [F(D(t, [r], o, t.name, 5, L, a), L), T.bind(null, a, t)];
1203
+ return r.length || N(t, L), { e: j, get c() {
1204
+ var i = [];
1205
+ return r.length && [N(D(t, [r], o, t.name, 5, L, i), L), A.bind(null, i, t)];
1340
1206
  } };
1341
1207
  }
1342
- function et(t) {
1343
- var e = rr(t, "string");
1208
+ function Qe(t) {
1209
+ var e = qt(t, "string");
1344
1210
  return typeof e == "symbol" ? e : e + "";
1345
1211
  }
1346
- function rr(t, e) {
1212
+ function qt(t, e) {
1347
1213
  if (typeof t != "object" || !t) return t;
1348
1214
  var r = t[Symbol.toPrimitive];
1349
1215
  if (r !== void 0) {
@@ -1361,15 +1227,15 @@ function ye(t, e, r) {
1361
1227
  }
1362
1228
  return t;
1363
1229
  }
1364
- function nr(t) {
1230
+ function Qt(t) {
1365
1231
  if (Object(t) !== t) throw TypeError("right-hand side of 'in' should be an object, got " + (t !== null ? typeof t : "null"));
1366
1232
  return t;
1367
1233
  }
1368
- Je = [te({
1234
+ qe = [te({
1369
1235
  tagName: "wsx-dropdown"
1370
1236
  })];
1371
- let or;
1372
- class ir extends J {
1237
+ let Jt;
1238
+ class er extends J {
1373
1239
  constructor(e = {}) {
1374
1240
  super({
1375
1241
  styles: ve,
@@ -1382,12 +1248,12 @@ class ir extends J {
1382
1248
  this.config.disabled || this.isOpen || (this.isOpen = !0, this.rerender());
1383
1249
  }), ee(this, "closeDropdown", () => {
1384
1250
  this.isOpen && (this.isOpen = !1, this.rerender(), this.detachOutsideClickHandler());
1385
- }), ee(this, "selectOption", (b) => {
1386
- this.setValue(b), this.config.trigger === "click" && this.closeDropdown();
1251
+ }), ee(this, "selectOption", (E) => {
1252
+ this.setValue(E), this.config.trigger === "click" && this.closeDropdown();
1387
1253
  }), ee(this, "attachOutsideClickHandler", () => {
1388
- this.config.trigger !== "hover" && (this.outsideClickHandler = (b) => {
1389
- const T = b.target;
1390
- this.dropdownElement && this.buttonElement && !this.dropdownElement.contains(T) && !this.buttonElement.contains(T) && this.closeDropdown();
1254
+ this.config.trigger !== "hover" && (this.outsideClickHandler = (E) => {
1255
+ const A = E.target;
1256
+ this.dropdownElement && this.buttonElement && !this.dropdownElement.contains(A) && !this.buttonElement.contains(A) && this.closeDropdown();
1391
1257
  }, document.addEventListener("click", this.outsideClickHandler, !0));
1392
1258
  }), ee(this, "detachOutsideClickHandler", () => {
1393
1259
  this.outsideClickHandler && (document.removeEventListener("click", this.outsideClickHandler, !0), this.outsideClickHandler = void 0);
@@ -1405,10 +1271,10 @@ class ir extends J {
1405
1271
  enumerable: !0,
1406
1272
  configurable: !0
1407
1273
  });
1408
- const [S, A] = this.useState("isOpen", !1);
1274
+ const [S, T] = this.useState("isOpen", !1);
1409
1275
  Object.defineProperty(this, "isOpen", {
1410
1276
  get: S,
1411
- set: A,
1277
+ set: T,
1412
1278
  enumerable: !0,
1413
1279
  configurable: !0
1414
1280
  });
@@ -1448,111 +1314,111 @@ class ir extends J {
1448
1314
  (e = super.onDisconnected) == null || e.call(this), this.detachOutsideClickHandler();
1449
1315
  }
1450
1316
  }
1451
- qe = ir;
1452
- [or, Qe] = tr(qe, [], Je, 0, void 0, J).c;
1453
- Qe();
1317
+ Ze = er;
1318
+ [Jt, Xe] = Xt(Ze, [], qe, 0, void 0, J).c;
1319
+ Xe();
1454
1320
  const ke = ":host{display:inline-block;position:relative}.combobox-container{position:relative;display:inline-block;width:100%}.combobox-input-wrapper{position:relative;display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;min-width:200px;background:var(--combobox-bg, rgba(255, 255, 255, .1));border:1px solid var(--combobox-border, rgba(255, 255, 255, .2));border-radius:var(--combobox-border-radius, .5rem);transition:all .2s ease}.combobox-input-wrapper:focus-within{background:var(--combobox-focus-bg, rgba(255, 255, 255, .15));border-color:var(--combobox-focus-border, var(--focus-color, #dc2626));outline:2px solid var(--combobox-focus-outline, rgba(220, 38, 38, .2));outline-offset:2px}.combobox-tags{display:flex;align-items:center;gap:.25rem;flex-wrap:wrap;flex:1}.combobox-tag{display:inline-flex;align-items:center;gap:.25rem;padding:.25rem .5rem;background:var(--combobox-tag-bg, #dc2626);color:var(--combobox-tag-color, #ffffff);border-radius:.25rem;font-size:.75rem;font-weight:500}.combobox-tag-remove{background:none;border:none;color:var(--combobox-tag-color, #ffffff);cursor:pointer;font-size:1rem;line-height:1;padding:0;width:16px;height:16px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background-color .15s ease}.combobox-tag-remove:hover{background:#fff3}.combobox-tag-more{padding:.25rem .5rem;color:var(--combobox-tag-color, #ffffff);font-size:.75rem;font-weight:500}.combobox-input{flex:1;border:none;background:transparent;color:var(--combobox-color, currentColor);font-size:.875rem;font-weight:500;outline:none;min-width:0}.combobox-input::placeholder{color:var(--combobox-placeholder-color, rgba(255, 255, 255, .5))}.combobox-input:disabled{opacity:.5;cursor:not-allowed}.combobox-arrow{background:none;border:none;color:var(--combobox-arrow-color, currentColor);cursor:pointer;font-size:.625rem;opacity:.7;transition:transform .2s ease;flex-shrink:0;padding:.25rem;display:flex;align-items:center;justify-content:center}.combobox-arrow:hover{opacity:1}.combobox-arrow.open{transform:rotate(180deg)}.combobox-arrow:disabled{opacity:.5;cursor:not-allowed}.combobox-menu{position:absolute;z-index:1000;min-width:100%;max-width:300px;max-height:300px;overflow-y:auto;background:var(--combobox-menu-bg, #ffffff);border:1px solid var(--combobox-menu-border, #e5e7eb);border-radius:var(--combobox-border-radius, .5rem);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;padding:.25rem;margin:.25rem 0 0}[data-theme=dark] .combobox-menu{background:var(--combobox-menu-bg-dark, #1f2937);border-color:var(--combobox-menu-border-dark, #374151)}.combobox-menu.combobox-top{bottom:100%;margin:0 0 .25rem}.combobox-menu.combobox-bottom{top:100%;margin:.25rem 0 0}.combobox-menu.combobox-left{left:0}.combobox-menu.combobox-right{right:0}.combobox-menu.combobox-center{left:50%;transform:translate(-50%)}.combobox-menu.combobox-top.combobox-center{transform:translate(-50%) translateY(-100%)}.combobox-option{display:flex;align-items:center;gap:.5rem;width:100%;padding:.5rem .75rem;background:transparent;border:none;border-radius:.375rem;color:var(--combobox-option-color, #1f2937);cursor:pointer;font-size:.875rem;text-align:left;transition:background-color .15s ease}[data-theme=dark] .combobox-option{color:var(--combobox-option-color-dark, #f3f4f6)}.combobox-option:hover:not(.disabled){background:var(--combobox-option-hover-bg, #f3f4f6)}[data-theme=dark] .combobox-option:hover:not(.disabled){background:var(--combobox-option-hover-bg-dark, #374151)}.combobox-option.selected{background:var(--combobox-option-selected-bg, #dc2626);color:var(--combobox-option-selected-color, #ffffff);font-weight:600}.combobox-option.selected:hover{background:var(--combobox-option-selected-hover-bg, #b91c1c)}.combobox-option.disabled{opacity:.5;cursor:not-allowed}.combobox-checkbox{width:16px;height:16px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:.75rem;font-weight:700}.combobox-empty{padding:.5rem .75rem;color:var(--combobox-empty-color, #9ca3af);font-size:.875rem;text-align:center}@media (max-width: 768px){.combobox-input-wrapper{min-width:150px;padding:.375rem .5rem}.combobox-input{font-size:.8125rem}.combobox-menu{max-width:200px}}";
1455
- var tt;
1456
- let rt, nt;
1321
+ var Je;
1322
+ let et, tt;
1457
1323
  function Q(t, e, r) {
1458
- return (e = ot(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
1324
+ return (e = rt(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
1459
1325
  }
1460
- function ar(t, e, r, o, S, A) {
1461
- function b(a, s, c) {
1462
- return function(i, n) {
1463
- return c && c(i), a[s].call(i, n);
1326
+ function tr(t, e, r, o, S, T) {
1327
+ function E(i, l, d) {
1328
+ return function(a, n) {
1329
+ return d && d(a), i[l].call(a, n);
1464
1330
  };
1465
1331
  }
1466
- function T(a, s) {
1467
- for (var c = 0; c < a.length; c++) a[c].call(s);
1468
- return s;
1332
+ function A(i, l) {
1333
+ for (var d = 0; d < i.length; d++) i[d].call(l);
1334
+ return l;
1469
1335
  }
1470
- function y(a, s, c, i) {
1471
- if (typeof a != "function" && (i || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (i ? "" : " or undefined"));
1472
- return a;
1336
+ function m(i, l, d, a) {
1337
+ if (typeof i != "function" && (a || i !== void 0)) throw new TypeError(l + " must " + (d || "be") + " a function" + (a ? "" : " or undefined"));
1338
+ return i;
1473
1339
  }
1474
- function D(a, s, c, i, n, d, h, p, k, x, m, u, v) {
1475
- function O(f) {
1476
- if (!v(f)) throw new TypeError("Attempted to access private element on non-instance");
1340
+ function D(i, l, d, a, n, c, h, p, y, w, b, u, f) {
1341
+ function C(g) {
1342
+ if (!f(g)) throw new TypeError("Attempted to access private element on non-instance");
1477
1343
  }
1478
- var g, _ = s[0], I = s[3], M = !p;
1344
+ var k, _ = l[0], I = l[3], M = !p;
1479
1345
  if (!M) {
1480
- c || Array.isArray(_) || (_ = [_]);
1481
- var l = {}, R = [], E = n === 3 ? "get" : n === 4 || u ? "set" : "value";
1482
- x ? (m || u ? l = { get: we(function() {
1346
+ d || Array.isArray(_) || (_ = [_]);
1347
+ var s = {}, F = [], x = n === 3 ? "get" : n === 4 || u ? "set" : "value";
1348
+ w ? (b || u ? s = { get: xe(function() {
1483
1349
  return I(this);
1484
- }, i, "get"), set: function(f) {
1485
- s[4](this, f);
1486
- } } : l[E] = I, m || we(l[E], i, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, i));
1350
+ }, a, "get"), set: function(g) {
1351
+ l[4](this, g);
1352
+ } } : s[x] = I, b || xe(s[x], a, n === 2 ? "" : x)) : b || (s = Object.getOwnPropertyDescriptor(i, a));
1487
1353
  }
1488
- for (var w = a, B = _.length - 1; B >= 0; B -= c ? 2 : 1) {
1489
- var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: i, metadata: d, addInitializer: (function(f, N) {
1490
- if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
1491
- y(N, "An initializer", "be", !0), h.push(N);
1354
+ for (var v = i, B = _.length - 1; B >= 0; B -= d ? 2 : 1) {
1355
+ var V = _[B], G = d ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
1356
+ if (g.v) throw Error("attempted to call addInitializer after decoration was finished");
1357
+ m(R, "An initializer", "be", !0), h.push(R);
1492
1358
  }).bind(null, Y) };
1493
1359
  try {
1494
- if (M) (g = y(W.call(G, w, z), "class decorators", "return")) && (w = g);
1360
+ if (M) (k = m(V.call(G, v, z), "class decorators", "return")) && (v = k);
1495
1361
  else {
1496
- var P, U;
1497
- z.static = k, z.private = x, x ? n === 2 ? P = function(f) {
1498
- return O(f), l.value;
1499
- } : (n < 4 && (P = b(l, "get", O)), n !== 3 && (U = b(l, "set", O))) : (P = function(f) {
1500
- return f[i];
1501
- }, (n < 2 || n === 4) && (U = function(f, N) {
1502
- f[i] = N;
1362
+ var P, H;
1363
+ z.static = y, z.private = w, w ? n === 2 ? P = function(g) {
1364
+ return C(g), s.value;
1365
+ } : (n < 4 && (P = E(s, "get", C)), n !== 3 && (H = E(s, "set", C))) : (P = function(g) {
1366
+ return g[a];
1367
+ }, (n < 2 || n === 4) && (H = function(g, R) {
1368
+ g[a] = R;
1503
1369
  }));
1504
- var V = z.access = { has: x ? v.bind() : function(f) {
1505
- return i in f;
1370
+ var W = z.access = { has: w ? f.bind() : function(g) {
1371
+ return a in g;
1506
1372
  } };
1507
- if (P && (V.get = P), U && (V.set = U), w = W.call(G, u ? { get: l.get, set: l.set } : l[E], z), u) {
1508
- if (typeof w == "object" && w) (g = y(w.get, "accessor.get")) && (l.get = g), (g = y(w.set, "accessor.set")) && (l.set = g), (g = y(w.init, "accessor.init")) && R.push(g);
1509
- else if (w !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
1510
- } else y(w, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(w) : l[E] = w);
1373
+ if (P && (W.get = P), H && (W.set = H), v = V.call(G, u ? { get: s.get, set: s.set } : s[x], z), u) {
1374
+ if (typeof v == "object" && v) (k = m(v.get, "accessor.get")) && (s.get = k), (k = m(v.set, "accessor.set")) && (s.set = k), (k = m(v.init, "accessor.init")) && F.push(k);
1375
+ else if (v !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
1376
+ } else m(v, (b ? "field" : "method") + " decorators", "return") && (b ? F.push(v) : s[x] = v);
1511
1377
  }
1512
1378
  } finally {
1513
1379
  Y.v = !0;
1514
1380
  }
1515
1381
  }
1516
- return (m || u) && p.push(function(f, N) {
1517
- for (var H = R.length - 1; H >= 0; H--) N = R[H].call(f, N);
1518
- return N;
1519
- }), m || M || (x ? u ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, i, l)), w;
1520
- }
1521
- function F(a, s) {
1522
- return Object.defineProperty(a, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: s });
1523
- }
1524
- if (arguments.length >= 6) var C = A[Symbol.metadata || Symbol.for("Symbol.metadata")];
1525
- var L = Object.create(C ?? null), j = function(a, s, c, i) {
1526
- var n, d, h = [], p = function(E) {
1527
- return lr(E) === a;
1528
- }, k = /* @__PURE__ */ new Map();
1529
- function x(E) {
1530
- E && h.push(T.bind(null, E));
1382
+ return (b || u) && p.push(function(g, R) {
1383
+ for (var U = F.length - 1; U >= 0; U--) R = F[U].call(g, R);
1384
+ return R;
1385
+ }), b || M || (w ? u ? p.push(E(s, "get"), E(s, "set")) : p.push(n === 2 ? s[x] : E.call.bind(s[x])) : Object.defineProperty(i, a, s)), v;
1386
+ }
1387
+ function N(i, l) {
1388
+ return Object.defineProperty(i, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: l });
1389
+ }
1390
+ if (arguments.length >= 6) var O = T[Symbol.metadata || Symbol.for("Symbol.metadata")];
1391
+ var L = Object.create(O ?? null), j = function(i, l, d, a) {
1392
+ var n, c, h = [], p = function(x) {
1393
+ return nr(x) === i;
1394
+ }, y = /* @__PURE__ */ new Map();
1395
+ function w(x) {
1396
+ x && h.push(A.bind(null, x));
1531
1397
  }
1532
- for (var m = 0; m < s.length; m++) {
1533
- var u = s[m];
1398
+ for (var b = 0; b < l.length; b++) {
1399
+ var u = l[b];
1534
1400
  if (Array.isArray(u)) {
1535
- var v = u[1], O = u[2], g = u.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = O + "/" + I;
1536
- if (!M && !g) {
1537
- var R = k.get(l);
1538
- if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + O);
1539
- k.set(l, !(v > 2) || v);
1401
+ var f = u[1], C = u[2], k = u.length > 3, _ = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = C + "/" + I;
1402
+ if (!M && !k) {
1403
+ var F = y.get(s);
1404
+ if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + C);
1405
+ y.set(s, !(f > 2) || f);
1540
1406
  }
1541
- D(I ? a : a.prototype, u, _, g ? "#" + O : ot(O), v, i, I ? d = d || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
1407
+ D(I ? i : i.prototype, u, _, k ? "#" + C : rt(C), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
1542
1408
  }
1543
1409
  }
1544
- return x(n), x(d), h;
1410
+ return w(n), w(c), h;
1545
1411
  }(t, e, S, L);
1546
- return r.length || F(t, L), { e: j, get c() {
1547
- var a = [];
1548
- return r.length && [F(D(t, [r], o, t.name, 5, L, a), L), T.bind(null, a, t)];
1412
+ return r.length || N(t, L), { e: j, get c() {
1413
+ var i = [];
1414
+ return r.length && [N(D(t, [r], o, t.name, 5, L, i), L), A.bind(null, i, t)];
1549
1415
  } };
1550
1416
  }
1551
- function ot(t) {
1552
- var e = sr(t, "string");
1417
+ function rt(t) {
1418
+ var e = rr(t, "string");
1553
1419
  return typeof e == "symbol" ? e : e + "";
1554
1420
  }
1555
- function sr(t, e) {
1421
+ function rr(t, e) {
1556
1422
  if (typeof t != "object" || !t) return t;
1557
1423
  var r = t[Symbol.toPrimitive];
1558
1424
  if (r !== void 0) {
@@ -1562,7 +1428,7 @@ function sr(t, e) {
1562
1428
  }
1563
1429
  return String(t);
1564
1430
  }
1565
- function we(t, e, r) {
1431
+ function xe(t, e, r) {
1566
1432
  typeof e == "symbol" && (e = (e = e.description) ? "[" + e + "]" : "");
1567
1433
  try {
1568
1434
  Object.defineProperty(t, "name", { configurable: !0, value: r ? r + " " + e : e });
@@ -1570,22 +1436,22 @@ function we(t, e, r) {
1570
1436
  }
1571
1437
  return t;
1572
1438
  }
1573
- function lr(t) {
1439
+ function nr(t) {
1574
1440
  if (Object(t) !== t) throw TypeError("right-hand side of 'in' should be an object, got " + (t !== null ? typeof t : "null"));
1575
1441
  return t;
1576
1442
  }
1577
- nt = [te({
1443
+ tt = [te({
1578
1444
  tagName: "wsx-combobox"
1579
1445
  })];
1580
- let cr;
1581
- class dr extends J {
1446
+ let or;
1447
+ class ir extends J {
1582
1448
  constructor(e = {}) {
1583
1449
  super({
1584
1450
  styles: ke,
1585
1451
  styleName: "wsx-combobox"
1586
- }), Q(this, "_autoStyles", ke), Q(this, "options", []), Q(this, "selectedValue", void 0), Q(this, "searchQuery", void 0), Q(this, "isOpen", void 0), Q(this, "config", {}), Q(this, "inputElement", void 0), Q(this, "dropdownElement", void 0), Q(this, "outsideClickHandler", void 0), Q(this, "handleInput", (y) => {
1452
+ }), Q(this, "_autoStyles", ke), Q(this, "options", []), Q(this, "selectedValue", void 0), Q(this, "searchQuery", void 0), Q(this, "isOpen", void 0), Q(this, "config", {}), Q(this, "inputElement", void 0), Q(this, "dropdownElement", void 0), Q(this, "outsideClickHandler", void 0), Q(this, "handleInput", (m) => {
1587
1453
  if (!this.config.searchable) return;
1588
- const D = y.target;
1454
+ const D = m.target;
1589
1455
  this.searchQuery = D.value, this.rerender();
1590
1456
  }), Q(this, "toggleDropdown", () => {
1591
1457
  this.config.disabled || (this.isOpen = !this.isOpen, this.isOpen && this.config.searchable && this.inputElement && this.inputElement.focus(), this.rerender(), this.isOpen ? setTimeout(() => {
@@ -1597,30 +1463,30 @@ class dr extends J {
1597
1463
  }, 0));
1598
1464
  }), Q(this, "closeDropdown", () => {
1599
1465
  this.isOpen && (this.isOpen = !1, this.searchQuery = "", this.rerender(), this.detachOutsideClickHandler());
1600
- }), Q(this, "selectOption", (y) => {
1466
+ }), Q(this, "selectOption", (m) => {
1601
1467
  if (this.config.multiple) {
1602
- const D = Array.isArray(this.selectedValue) ? this.selectedValue : [], F = D.includes(y) ? D.filter((C) => C !== y) : [...D, y];
1603
- this.selectedValue = F;
1468
+ const D = Array.isArray(this.selectedValue) ? this.selectedValue : [], N = D.includes(m) ? D.filter((O) => O !== m) : [...D, m];
1469
+ this.selectedValue = N;
1604
1470
  } else
1605
- this.selectedValue = y, this.closeDropdown();
1471
+ this.selectedValue = m, this.closeDropdown();
1606
1472
  this.rerender(), this.dispatchEvent(new CustomEvent("change", {
1607
1473
  detail: {
1608
1474
  value: this.selectedValue
1609
1475
  },
1610
1476
  bubbles: !0
1611
1477
  }));
1612
- }), Q(this, "removeValue", (y) => {
1478
+ }), Q(this, "removeValue", (m) => {
1613
1479
  if (!this.config.multiple) return;
1614
1480
  const D = Array.isArray(this.selectedValue) ? this.selectedValue : [];
1615
- this.selectedValue = D.filter((F) => F !== y), this.rerender(), this.dispatchEvent(new CustomEvent("change", {
1481
+ this.selectedValue = D.filter((N) => N !== m), this.rerender(), this.dispatchEvent(new CustomEvent("change", {
1616
1482
  detail: {
1617
1483
  value: this.selectedValue
1618
1484
  },
1619
1485
  bubbles: !0
1620
1486
  }));
1621
1487
  }), Q(this, "attachOutsideClickHandler", () => {
1622
- this.outsideClickHandler = (y) => {
1623
- const D = y.target;
1488
+ this.outsideClickHandler = (m) => {
1489
+ const D = m.target;
1624
1490
  this.dropdownElement && this.inputElement && !this.dropdownElement.contains(D) && !this.inputElement.contains(D) && this.closeDropdown();
1625
1491
  }, document.addEventListener("click", this.outsideClickHandler, !0);
1626
1492
  }), Q(this, "detachOutsideClickHandler", () => {
@@ -1640,17 +1506,17 @@ class dr extends J {
1640
1506
  enumerable: !0,
1641
1507
  configurable: !0
1642
1508
  });
1643
- const [S, A] = this.useState("searchQuery", "");
1509
+ const [S, T] = this.useState("searchQuery", "");
1644
1510
  Object.defineProperty(this, "searchQuery", {
1645
1511
  get: S,
1646
- set: A,
1512
+ set: T,
1647
1513
  enumerable: !0,
1648
1514
  configurable: !0
1649
1515
  });
1650
- const [b, T] = this.useState("isOpen", !1);
1516
+ const [E, A] = this.useState("isOpen", !1);
1651
1517
  Object.defineProperty(this, "isOpen", {
1652
- get: b,
1653
- set: T,
1518
+ get: E,
1519
+ set: A,
1654
1520
  enumerable: !0,
1655
1521
  configurable: !0
1656
1522
  });
@@ -1698,22 +1564,22 @@ class dr extends J {
1698
1564
  if (o.length === 0)
1699
1565
  S = this.config.placeholder || "Select...";
1700
1566
  else if (o.length === 1) {
1701
- const A = this.options.find((b) => b.value === o[0]);
1702
- S = (A == null ? void 0 : A.label) || o[0];
1567
+ const T = this.options.find((E) => E.value === o[0]);
1568
+ S = (T == null ? void 0 : T.label) || o[0];
1703
1569
  } else
1704
1570
  S = `${o.length} selected`;
1705
1571
  else {
1706
- const A = this.options.find((b) => b.value === this.selectedValue);
1707
- S = (A == null ? void 0 : A.label) || this.config.placeholder || "Select...";
1572
+ const T = this.options.find((E) => E.value === this.selectedValue);
1573
+ S = (T == null ? void 0 : T.label) || this.config.placeholder || "Select...";
1708
1574
  }
1709
- return /* @__PURE__ */ $("div", { class: "combobox-container" }, /* @__PURE__ */ $("div", { class: "combobox-input-wrapper" }, r && o.length > 0 && /* @__PURE__ */ $("div", { class: "combobox-tags" }, o.slice(0, 2).map((A) => {
1710
- const b = this.options.find((T) => T.value === A);
1711
- return /* @__PURE__ */ $("span", { key: A, class: "combobox-tag" }, (b == null ? void 0 : b.label) || A, /* @__PURE__ */ $("button", { class: "combobox-tag-remove", onClick: (T) => {
1712
- T.stopPropagation(), this.removeValue(A);
1575
+ return /* @__PURE__ */ $("div", { class: "combobox-container" }, /* @__PURE__ */ $("div", { class: "combobox-input-wrapper" }, r && o.length > 0 && /* @__PURE__ */ $("div", { class: "combobox-tags" }, o.slice(0, 2).map((T) => {
1576
+ const E = this.options.find((A) => A.value === T);
1577
+ return /* @__PURE__ */ $("span", { key: T, class: "combobox-tag" }, (E == null ? void 0 : E.label) || T, /* @__PURE__ */ $("button", { class: "combobox-tag-remove", onClick: (A) => {
1578
+ A.stopPropagation(), this.removeValue(T);
1713
1579
  }, "data-wsx-key": "Combobox-button-text-3" }, "×"));
1714
- }), o.length > 2 && /* @__PURE__ */ $("span", { class: "combobox-tag-more" }, "+", o.length - 2)), /* @__PURE__ */ $("input", { ref: (A) => this.inputElement = A, type: "text", class: "combobox-input", placeholder: S, value: this.config.searchable && this.isOpen ? this.searchQuery : "", onInput: this.handleInput, onFocus: this.openDropdown, onClick: this.openDropdown, disabled: this.config.disabled, readonly: !this.config.searchable, "data-wsx-key": "Combobox-input-text-1-3" }), /* @__PURE__ */ $("button", { class: `combobox-arrow ${this.isOpen ? "open" : ""}`, onClick: this.toggleDropdown, disabled: this.config.disabled, "data-wsx-key": "Combobox-button-text-1-5" }, this.isOpen ? "▲" : "▼")), this.isOpen && /* @__PURE__ */ $("div", { ref: (A) => this.dropdownElement = A, class: `combobox-menu combobox-${this.config.position} combobox-${this.config.align}`, role: "listbox" }, e.length === 0 ? /* @__PURE__ */ $("div", { class: "combobox-empty" }, this.config.searchable && this.searchQuery ? "No results found" : "No options") : e.map((A) => {
1715
- const b = r ? o.includes(A.value) : A.value === this.selectedValue;
1716
- return /* @__PURE__ */ $("button", { key: A.value, class: `combobox-option ${b ? "selected" : ""} ${A.disabled ? "disabled" : ""}`, onClick: () => !A.disabled && this.selectOption(A.value), role: "option", "aria-selected": b, disabled: A.disabled, "data-wsx-key": "Combobox-button-text-0" }, r && /* @__PURE__ */ $("span", { class: "combobox-checkbox" }, b ? "✓" : ""), A.render ? A.render() : /* @__PURE__ */ $("span", null, A.label));
1580
+ }), o.length > 2 && /* @__PURE__ */ $("span", { class: "combobox-tag-more" }, "+", o.length - 2)), /* @__PURE__ */ $("input", { ref: (T) => this.inputElement = T, type: "text", class: "combobox-input", placeholder: S, value: this.config.searchable && this.isOpen ? this.searchQuery : "", onInput: this.handleInput, onFocus: this.openDropdown, onClick: this.openDropdown, disabled: this.config.disabled, readonly: !this.config.searchable, "data-wsx-key": "Combobox-input-text-1-3" }), /* @__PURE__ */ $("button", { class: `combobox-arrow ${this.isOpen ? "open" : ""}`, onClick: this.toggleDropdown, disabled: this.config.disabled, "data-wsx-key": "Combobox-button-text-1-5" }, this.isOpen ? "▲" : "▼")), this.isOpen && /* @__PURE__ */ $("div", { ref: (T) => this.dropdownElement = T, class: `combobox-menu combobox-${this.config.position} combobox-${this.config.align}`, role: "listbox" }, e.length === 0 ? /* @__PURE__ */ $("div", { class: "combobox-empty" }, this.config.searchable && this.searchQuery ? "No results found" : "No options") : e.map((T) => {
1581
+ const E = r ? o.includes(T.value) : T.value === this.selectedValue;
1582
+ return /* @__PURE__ */ $("button", { key: T.value, class: `combobox-option ${E ? "selected" : ""} ${T.disabled ? "disabled" : ""}`, onClick: () => !T.disabled && this.selectOption(T.value), role: "option", "aria-selected": E, disabled: T.disabled, "data-wsx-key": "Combobox-button-text-0" }, r && /* @__PURE__ */ $("span", { class: "combobox-checkbox" }, E ? "✓" : ""), T.render ? T.render() : /* @__PURE__ */ $("span", null, T.label));
1717
1583
  })));
1718
1584
  }
1719
1585
  /**
@@ -1724,10 +1590,10 @@ class dr extends J {
1724
1590
  (e = super.onDisconnected) == null || e.call(this), this.detachOutsideClickHandler();
1725
1591
  }
1726
1592
  }
1727
- tt = dr;
1728
- [cr, rt] = ar(tt, [], nt, 0, void 0, J).c;
1729
- rt();
1730
- class xe {
1593
+ Je = ir;
1594
+ [or, et] = tr(Je, [], tt, 0, void 0, J).c;
1595
+ et();
1596
+ class we {
1731
1597
  /**
1732
1598
  * 检测 overflow 并计算可见/隐藏项
1733
1599
  * @param config 配置对象
@@ -1738,10 +1604,10 @@ class xe {
1738
1604
  container: r,
1739
1605
  items: o,
1740
1606
  gap: S = 16,
1741
- reservedWidth: A = 0,
1742
- overflowButtonWidth: b = 0,
1743
- padding: T = 0,
1744
- minVisibleItems: y = 1
1607
+ reservedWidth: T = 0,
1608
+ overflowButtonWidth: E = 0,
1609
+ padding: A = 0,
1610
+ minVisibleItems: m = 1
1745
1611
  } = e;
1746
1612
  if (!r || o.length === 0)
1747
1613
  return {
@@ -1749,17 +1615,17 @@ class xe {
1749
1615
  hiddenIndices: [],
1750
1616
  needsOverflow: !1
1751
1617
  };
1752
- const F = r.offsetWidth - A - T * 2;
1753
- let C = 0;
1618
+ const N = r.offsetWidth - T - A * 2;
1619
+ let O = 0;
1754
1620
  const L = [], j = [];
1755
- for (let i = 0; i < o.length; i++) {
1756
- const n = o[i];
1621
+ for (let a = 0; a < o.length; a++) {
1622
+ const n = o[a];
1757
1623
  if (!n || n.offsetWidth === 0) {
1758
- L.push(i);
1624
+ L.push(a);
1759
1625
  continue;
1760
1626
  }
1761
- const d = n.offsetWidth + (i > 0 ? S : 0);
1762
- C + d <= F ? (C += d, L.push(i)) : j.push(i);
1627
+ const c = n.offsetWidth + (a > 0 ? S : 0);
1628
+ O + c <= N ? (O += c, L.push(a)) : j.push(a);
1763
1629
  }
1764
1630
  if (j.length === 0)
1765
1631
  return {
@@ -1767,26 +1633,26 @@ class xe {
1767
1633
  hiddenIndices: [],
1768
1634
  needsOverflow: !1
1769
1635
  };
1770
- const a = F - b - S;
1771
- C = 0;
1772
- const s = [], c = [];
1773
- for (let i = 0; i < o.length; i++) {
1774
- const n = o[i];
1636
+ const i = N - E - S;
1637
+ O = 0;
1638
+ const l = [], d = [];
1639
+ for (let a = 0; a < o.length; a++) {
1640
+ const n = o[a];
1775
1641
  if (!n || n.offsetWidth === 0) {
1776
- s.length < y ? s.push(i) : c.push(i);
1642
+ l.length < m ? l.push(a) : d.push(a);
1777
1643
  continue;
1778
1644
  }
1779
- const d = n.offsetWidth + (s.length > 0 ? S : 0);
1780
- C + d <= a ? (C += d, s.push(i)) : c.push(i);
1645
+ const c = n.offsetWidth + (l.length > 0 ? S : 0);
1646
+ O + c <= i ? (O += c, l.push(a)) : d.push(a);
1781
1647
  }
1782
- if (s.length < y && o.length > 0) {
1783
- const i = y - s.length, n = c.splice(0, i);
1784
- s.push(...n), s.sort((d, h) => d - h);
1648
+ if (l.length < m && o.length > 0) {
1649
+ const a = m - l.length, n = d.splice(0, a);
1650
+ l.push(...n), l.sort((c, h) => c - h);
1785
1651
  }
1786
1652
  return {
1787
- visibleIndices: s,
1788
- hiddenIndices: c,
1789
- needsOverflow: c.length > 0
1653
+ visibleIndices: l,
1654
+ hiddenIndices: d,
1655
+ needsOverflow: d.length > 0
1790
1656
  };
1791
1657
  }
1792
1658
  /**
@@ -1796,9 +1662,9 @@ class xe {
1796
1662
  * @returns 总宽度
1797
1663
  */
1798
1664
  static calculateTotalWidth(e, r = 16) {
1799
- return e.length === 0 ? 0 : e.reduce((o, S, A) => {
1800
- const b = S.offsetWidth || 0;
1801
- return o + b + (A > 0 ? r : 0);
1665
+ return e.length === 0 ? 0 : e.reduce((o, S, T) => {
1666
+ const E = S.offsetWidth || 0;
1667
+ return o + E + (T > 0 ? r : 0);
1802
1668
  }, 0);
1803
1669
  }
1804
1670
  /**
@@ -1808,112 +1674,112 @@ class xe {
1808
1674
  */
1809
1675
  static getElementTotalWidth(e) {
1810
1676
  if (!e) return 0;
1811
- const r = window.getComputedStyle(e), o = e.offsetWidth, S = parseFloat(r.marginLeft) || 0, A = parseFloat(r.marginRight) || 0;
1812
- return o + S + A;
1677
+ const r = window.getComputedStyle(e), o = e.offsetWidth, S = parseFloat(r.marginLeft) || 0, T = parseFloat(r.marginRight) || 0;
1678
+ return o + S + T;
1813
1679
  }
1814
1680
  }
1815
1681
  const Ee = ':host{display:block}.responsive-nav{position:fixed;top:0;left:0;right:0;z-index:1000;background:var(--nav-bg, var(--bg-primary));-webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);border-bottom:1px solid var(--nav-border, var(--border-color));transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 1px 3px #0000000d}.responsive-nav.nav-scrolled{background:var(--nav-bg-scrolled, var(--bg-primary));box-shadow:0 4px 24px var(--nav-shadow, var(--card-shadow));border-bottom-color:var(--nav-border, var(--border-color))}.nav-container{max-width:1280px;margin:0 auto;padding:0 2rem;display:flex;align-items:center;justify-content:space-between;height:72px;gap:1.5rem}.nav-brand{display:flex;align-items:center;gap:.75rem;font-weight:800;font-size:1.5rem;color:var(--nav-brand-color, var(--text-primary));flex-shrink:0;transition:transform .2s ease;cursor:pointer}.nav-brand:hover{transform:scale(1.05)}.nav-brand-icon{display:flex;align-items:center;font-size:1.8rem;transition:transform .3s ease}.nav-brand:hover .nav-brand-icon{transform:rotate(5deg) scale(1.1)}.nav-brand-text{background:linear-gradient(135deg,var(--hero-gradient-start, var(--primary-red)),var(--hero-gradient-end, var(--accent-orange)));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;letter-spacing:-.02em;position:relative}.nav-menu{display:flex;align-items:center;gap:.5rem;flex:1;justify-content:flex-end;overflow:visible;padding-right:.5rem}wsx-link.nav-link{display:inline-flex;align-items:center;flex-shrink:0}wsx-link.nav-link::part(link){color:var(--nav-link-color, var(--text-secondary));text-decoration:none!important;font-weight:500;font-size:.95rem;transition:all .25s cubic-bezier(.4,0,.2,1);position:relative;white-space:nowrap;padding:.5rem .75rem;border-radius:.5rem;display:inline-flex;align-items:center}wsx-link.nav-link::part(link):hover{color:var(--nav-link-hover-color, var(--text-primary));background:var(--nav-link-hover-bg, var(--bg-secondary));text-decoration:none!important;transform:translateY(-1px)}wsx-link.nav-link::part(link):after{content:none!important;display:none!important;width:0!important;height:0!important;background:none!important}wsx-link.nav-link::part(link):hover:after{content:none!important;display:none!important;width:0!important;height:0!important;background:none!important}wsx-link.nav-link::part(link):before{display:none}wsx-link.nav-link[active]::part(link),wsx-link.nav-link.nav-link-active::part(link){color:var(--nav-link-active-color, var(--primary-red))!important;font-weight:600;background:var(--nav-link-active-bg, var(--bg-secondary));text-decoration:none!important}wsx-link.nav-link[active]::part(link):after,wsx-link.nav-link.nav-link-active::part(link):after{content:none!important;display:none!important;width:0!important;height:0!important;background:none!important}wsx-link.nav-link[active]::part(link):before,wsx-link.nav-link.nav-link-active::part(link):before{content:"";display:block;position:absolute;bottom:.125rem;left:50%;transform:translate(-50%);width:calc(100% - 1.5rem);height:3px;background:linear-gradient(135deg,var(--hero-gradient-start, var(--primary-red)),var(--hero-gradient-end, var(--accent-orange)));border-radius:2px;z-index:1}.nav-link{color:var(--nav-link-color, var(--text-secondary));text-decoration:none;font-weight:500;font-size:.95rem;transition:all .25s cubic-bezier(.4,0,.2,1);position:relative;white-space:nowrap;flex-shrink:0;padding:.5rem .75rem;border-radius:.5rem;display:inline-flex;align-items:center}.nav-link:hover{color:var(--nav-link-hover-color, var(--text-primary));background:var(--nav-link-hover-bg, var(--bg-secondary));transform:translateY(-1px)}.nav-link:after{content:"";position:absolute;bottom:.25rem;left:50%;transform:translate(-50%);width:0;height:2px;background:linear-gradient(135deg,var(--hero-gradient-start, var(--primary-red)),var(--hero-gradient-end, var(--accent-orange)));border-radius:2px;transition:width .3s cubic-bezier(.4,0,.2,1)}.nav-link:hover:after{width:calc(100% - 1.5rem)}.nav-link-active{color:var(--nav-link-active-color, var(--primary-red))!important;font-weight:600;background:var(--nav-link-active-bg, var(--bg-secondary))}.nav-link-active:after{width:calc(100% - 1.5rem)!important;height:3px!important;bottom:.125rem!important}.nav-overflow{position:relative;flex-shrink:0}.nav-overflow-button{padding:.5rem .875rem;background:var(--nav-overflow-bg, transparent);border:1px solid var(--nav-overflow-border, var(--border-color));border-radius:.5rem;color:var(--nav-link-color, var(--text-secondary));cursor:pointer;font-size:.875rem;font-weight:500;transition:all .25s cubic-bezier(.4,0,.2,1);display:inline-flex;align-items:center;gap:.25rem}.nav-overflow-button:hover{background:var(--nav-overflow-hover-bg, var(--bg-secondary));color:var(--nav-link-hover-color, var(--text-primary));border-color:var(--nav-overflow-hover-border, var(--border-color));transform:translateY(-1px);box-shadow:0 2px 8px var(--card-shadow)}.nav-overflow-menu{position:absolute;top:calc(100% + .75rem);right:0;min-width:180px;background:var(--nav-overflow-menu-bg, var(--bg-primary));border:1px solid var(--nav-overflow-menu-border, var(--border-color));border-radius:.75rem;box-shadow:0 10px 25px -5px #0000001a,0 8px 10px -6px #0000001a;padding:.5rem;z-index:1001;-webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);animation:slideDown .2s cubic-bezier(.4,0,.2,1)}@keyframes slideDown{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}wsx-link.nav-overflow-link::part(link){display:block;padding:.625rem .875rem;color:var(--nav-link-color, var(--text-secondary));text-decoration:none!important;font-weight:500;font-size:.9rem;border-radius:.5rem;transition:all .2s cubic-bezier(.4,0,.2,1);margin-bottom:.25rem;border-left:3px solid transparent}wsx-link.nav-overflow-link::part(link):hover{background:var(--nav-overflow-link-hover-bg, var(--bg-secondary));color:var(--nav-link-hover-color, var(--text-primary));text-decoration:none!important;transform:translate(4px)}wsx-link.nav-overflow-link[active]::part(link),wsx-link.nav-overflow-link.nav-link-active::part(link){background:var(--nav-overflow-link-active-bg, var(--bg-secondary));color:var(--nav-link-active-color, var(--primary-red));font-weight:600;border-left-color:var(--primary-red);padding-left:.625rem}.nav-overflow-link{display:block;padding:.625rem .875rem;color:var(--nav-link-color, var(--text-secondary));text-decoration:none;font-weight:500;font-size:.9rem;border-radius:.5rem;transition:all .2s cubic-bezier(.4,0,.2,1);margin-bottom:.25rem;border-left:3px solid transparent}.nav-overflow-link:hover{background:var(--nav-overflow-link-hover-bg, var(--bg-secondary));color:var(--nav-link-hover-color, var(--text-primary));transform:translate(4px)}.nav-overflow-link.nav-link-active{background:var(--nav-overflow-link-active-bg, var(--bg-secondary));color:var(--nav-link-active-color, var(--primary-red));font-weight:600;border-left-color:var(--primary-red);padding-left:.625rem}.nav-actions{display:flex;align-items:center;gap:.75rem;flex-shrink:0;margin-left:.5rem;z-index:1002;padding-left:.75rem;border-left:1px solid var(--nav-actions-border, var(--border-color))}.nav-action{display:flex;align-items:center;transition:transform .2s ease}.nav-action:hover{transform:scale(1.05)}.nav-toggle{display:none;flex-direction:column;gap:5px;background:var(--nav-toggle-bg, transparent);border:1px solid var(--nav-toggle-border, var(--border-color));border-radius:.5rem;cursor:pointer;padding:.625rem .5rem;z-index:1001;transition:all .25s ease}.nav-toggle:hover{background:var(--nav-toggle-hover-bg, var(--bg-secondary));border-color:var(--nav-toggle-hover-border, var(--border-color))}.nav-toggle-line{width:24px;height:3px;background:var(--nav-toggle-color, var(--text-primary));border-radius:3px;transition:all .3s cubic-bezier(.4,0,.2,1);transform-origin:center}.nav-toggle-line.open:nth-child(1){transform:rotate(45deg) translate(8px,8px)}.nav-toggle-line.open:nth-child(2){opacity:0}.nav-toggle-line.open:nth-child(3){transform:rotate(-45deg) translate(7px,-7px)}.nav-mobile-menu{position:fixed;top:72px;left:0;right:0;background:var(--nav-mobile-bg, var(--bg-primary));-webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);flex-direction:column;padding:1.5rem;gap:.5rem;transform:translateY(-100%);opacity:0;visibility:hidden;transition:all .3s cubic-bezier(.4,0,.2,1);border-bottom:1px solid var(--nav-border, var(--border-color));max-height:calc(100vh - 72px);overflow-y:auto;z-index:999;box-shadow:0 4px 24px #0000001a}.nav-mobile-menu.open{transform:translateY(0);opacity:1;visibility:visible}wsx-link.nav-mobile-link::part(link){display:block;padding:.875rem 1.25rem;color:var(--nav-link-color, var(--text-secondary));text-decoration:none!important;font-weight:500;font-size:1rem;border-radius:.625rem;transition:all .25s cubic-bezier(.4,0,.2,1);border-left:3px solid transparent}wsx-link.nav-mobile-link::part(link):hover{background:var(--nav-mobile-link-hover-bg, var(--bg-secondary));color:var(--nav-link-hover-color, var(--text-primary));text-decoration:none!important;transform:translate(4px);border-left-color:var(--primary-red)}wsx-link.nav-mobile-link[active]::part(link),wsx-link.nav-mobile-link.nav-link-active::part(link){background:var(--nav-mobile-link-active-bg, var(--bg-secondary));color:var(--nav-link-active-color, var(--primary-red));font-weight:600;border-left-color:var(--primary-red);box-shadow:0 2px 8px var(--card-shadow)}.nav-mobile-link{display:block;padding:.875rem 1.25rem;color:var(--nav-link-color, var(--text-secondary));text-decoration:none;font-weight:500;font-size:1rem;border-radius:.625rem;transition:all .25s cubic-bezier(.4,0,.2,1);border-left:3px solid transparent}.nav-mobile-link:hover{background:var(--nav-mobile-link-hover-bg, var(--bg-secondary));color:var(--nav-link-hover-color, var(--text-primary));transform:translate(4px);border-left-color:var(--primary-red)}.nav-mobile-link.nav-link-active{background:var(--nav-mobile-link-active-bg, var(--bg-secondary));color:var(--nav-link-active-color, var(--primary-red));font-weight:600;border-left-color:var(--primary-red);box-shadow:0 2px 8px var(--card-shadow)}@media (max-width: 768px){.nav-container{padding:0 1.25rem;height:68px}.nav-brand{font-size:1.35rem}.nav-menu{display:none}.nav-actions{margin-left:0;gap:.5rem;padding-left:.5rem;border-left:none}.nav-toggle{display:flex;margin-left:.5rem}.nav-mobile-menu{display:flex;top:68px;max-height:calc(100vh - 68px)}}@media (min-width: 769px){.nav-mobile-menu{display:none!important}}@media (prefers-reduced-motion: no-preference){.responsive-nav,.nav-link,.nav-overflow-button,.nav-toggle{transition-duration:.25s}}@media (prefers-reduced-motion: reduce){.responsive-nav,.nav-link,.nav-overflow-button,.nav-toggle,.nav-mobile-menu{transition:none;animation:none}}';
1816
- var it;
1817
- let at, st;
1682
+ var nt;
1683
+ let ot, it;
1818
1684
  function Z(t, e, r) {
1819
- return (e = lt(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
1685
+ return (e = at(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
1820
1686
  }
1821
- function ur(t, e, r, o, S, A) {
1822
- function b(a, s, c) {
1823
- return function(i, n) {
1824
- return c && c(i), a[s].call(i, n);
1687
+ function ar(t, e, r, o, S, T) {
1688
+ function E(i, l, d) {
1689
+ return function(a, n) {
1690
+ return d && d(a), i[l].call(a, n);
1825
1691
  };
1826
1692
  }
1827
- function T(a, s) {
1828
- for (var c = 0; c < a.length; c++) a[c].call(s);
1829
- return s;
1693
+ function A(i, l) {
1694
+ for (var d = 0; d < i.length; d++) i[d].call(l);
1695
+ return l;
1830
1696
  }
1831
- function y(a, s, c, i) {
1832
- if (typeof a != "function" && (i || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (i ? "" : " or undefined"));
1833
- return a;
1697
+ function m(i, l, d, a) {
1698
+ if (typeof i != "function" && (a || i !== void 0)) throw new TypeError(l + " must " + (d || "be") + " a function" + (a ? "" : " or undefined"));
1699
+ return i;
1834
1700
  }
1835
- function D(a, s, c, i, n, d, h, p, k, x, m, u, v) {
1836
- function O(f) {
1837
- if (!v(f)) throw new TypeError("Attempted to access private element on non-instance");
1701
+ function D(i, l, d, a, n, c, h, p, y, w, b, u, f) {
1702
+ function C(g) {
1703
+ if (!f(g)) throw new TypeError("Attempted to access private element on non-instance");
1838
1704
  }
1839
- var g, _ = s[0], I = s[3], M = !p;
1705
+ var k, _ = l[0], I = l[3], M = !p;
1840
1706
  if (!M) {
1841
- c || Array.isArray(_) || (_ = [_]);
1842
- var l = {}, R = [], E = n === 3 ? "get" : n === 4 || u ? "set" : "value";
1843
- x ? (m || u ? l = { get: Se(function() {
1707
+ d || Array.isArray(_) || (_ = [_]);
1708
+ var s = {}, F = [], x = n === 3 ? "get" : n === 4 || u ? "set" : "value";
1709
+ w ? (b || u ? s = { get: Se(function() {
1844
1710
  return I(this);
1845
- }, i, "get"), set: function(f) {
1846
- s[4](this, f);
1847
- } } : l[E] = I, m || Se(l[E], i, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, i));
1711
+ }, a, "get"), set: function(g) {
1712
+ l[4](this, g);
1713
+ } } : s[x] = I, b || Se(s[x], a, n === 2 ? "" : x)) : b || (s = Object.getOwnPropertyDescriptor(i, a));
1848
1714
  }
1849
- for (var w = a, B = _.length - 1; B >= 0; B -= c ? 2 : 1) {
1850
- var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: i, metadata: d, addInitializer: (function(f, N) {
1851
- if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
1852
- y(N, "An initializer", "be", !0), h.push(N);
1715
+ for (var v = i, B = _.length - 1; B >= 0; B -= d ? 2 : 1) {
1716
+ var V = _[B], G = d ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
1717
+ if (g.v) throw Error("attempted to call addInitializer after decoration was finished");
1718
+ m(R, "An initializer", "be", !0), h.push(R);
1853
1719
  }).bind(null, Y) };
1854
1720
  try {
1855
- if (M) (g = y(W.call(G, w, z), "class decorators", "return")) && (w = g);
1721
+ if (M) (k = m(V.call(G, v, z), "class decorators", "return")) && (v = k);
1856
1722
  else {
1857
- var P, U;
1858
- z.static = k, z.private = x, x ? n === 2 ? P = function(f) {
1859
- return O(f), l.value;
1860
- } : (n < 4 && (P = b(l, "get", O)), n !== 3 && (U = b(l, "set", O))) : (P = function(f) {
1861
- return f[i];
1862
- }, (n < 2 || n === 4) && (U = function(f, N) {
1863
- f[i] = N;
1723
+ var P, H;
1724
+ z.static = y, z.private = w, w ? n === 2 ? P = function(g) {
1725
+ return C(g), s.value;
1726
+ } : (n < 4 && (P = E(s, "get", C)), n !== 3 && (H = E(s, "set", C))) : (P = function(g) {
1727
+ return g[a];
1728
+ }, (n < 2 || n === 4) && (H = function(g, R) {
1729
+ g[a] = R;
1864
1730
  }));
1865
- var V = z.access = { has: x ? v.bind() : function(f) {
1866
- return i in f;
1731
+ var W = z.access = { has: w ? f.bind() : function(g) {
1732
+ return a in g;
1867
1733
  } };
1868
- if (P && (V.get = P), U && (V.set = U), w = W.call(G, u ? { get: l.get, set: l.set } : l[E], z), u) {
1869
- if (typeof w == "object" && w) (g = y(w.get, "accessor.get")) && (l.get = g), (g = y(w.set, "accessor.set")) && (l.set = g), (g = y(w.init, "accessor.init")) && R.push(g);
1870
- else if (w !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
1871
- } else y(w, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(w) : l[E] = w);
1734
+ if (P && (W.get = P), H && (W.set = H), v = V.call(G, u ? { get: s.get, set: s.set } : s[x], z), u) {
1735
+ if (typeof v == "object" && v) (k = m(v.get, "accessor.get")) && (s.get = k), (k = m(v.set, "accessor.set")) && (s.set = k), (k = m(v.init, "accessor.init")) && F.push(k);
1736
+ else if (v !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
1737
+ } else m(v, (b ? "field" : "method") + " decorators", "return") && (b ? F.push(v) : s[x] = v);
1872
1738
  }
1873
1739
  } finally {
1874
1740
  Y.v = !0;
1875
1741
  }
1876
1742
  }
1877
- return (m || u) && p.push(function(f, N) {
1878
- for (var H = R.length - 1; H >= 0; H--) N = R[H].call(f, N);
1879
- return N;
1880
- }), m || M || (x ? u ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, i, l)), w;
1881
- }
1882
- function F(a, s) {
1883
- return Object.defineProperty(a, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: s });
1884
- }
1885
- if (arguments.length >= 6) var C = A[Symbol.metadata || Symbol.for("Symbol.metadata")];
1886
- var L = Object.create(C ?? null), j = function(a, s, c, i) {
1887
- var n, d, h = [], p = function(E) {
1888
- return hr(E) === a;
1889
- }, k = /* @__PURE__ */ new Map();
1890
- function x(E) {
1891
- E && h.push(T.bind(null, E));
1743
+ return (b || u) && p.push(function(g, R) {
1744
+ for (var U = F.length - 1; U >= 0; U--) R = F[U].call(g, R);
1745
+ return R;
1746
+ }), b || M || (w ? u ? p.push(E(s, "get"), E(s, "set")) : p.push(n === 2 ? s[x] : E.call.bind(s[x])) : Object.defineProperty(i, a, s)), v;
1747
+ }
1748
+ function N(i, l) {
1749
+ return Object.defineProperty(i, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: l });
1750
+ }
1751
+ if (arguments.length >= 6) var O = T[Symbol.metadata || Symbol.for("Symbol.metadata")];
1752
+ var L = Object.create(O ?? null), j = function(i, l, d, a) {
1753
+ var n, c, h = [], p = function(x) {
1754
+ return lr(x) === i;
1755
+ }, y = /* @__PURE__ */ new Map();
1756
+ function w(x) {
1757
+ x && h.push(A.bind(null, x));
1892
1758
  }
1893
- for (var m = 0; m < s.length; m++) {
1894
- var u = s[m];
1759
+ for (var b = 0; b < l.length; b++) {
1760
+ var u = l[b];
1895
1761
  if (Array.isArray(u)) {
1896
- var v = u[1], O = u[2], g = u.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = O + "/" + I;
1897
- if (!M && !g) {
1898
- var R = k.get(l);
1899
- if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + O);
1900
- k.set(l, !(v > 2) || v);
1762
+ var f = u[1], C = u[2], k = u.length > 3, _ = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = C + "/" + I;
1763
+ if (!M && !k) {
1764
+ var F = y.get(s);
1765
+ if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + C);
1766
+ y.set(s, !(f > 2) || f);
1901
1767
  }
1902
- D(I ? a : a.prototype, u, _, g ? "#" + O : lt(O), v, i, I ? d = d || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
1768
+ D(I ? i : i.prototype, u, _, k ? "#" + C : at(C), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
1903
1769
  }
1904
1770
  }
1905
- return x(n), x(d), h;
1771
+ return w(n), w(c), h;
1906
1772
  }(t, e, S, L);
1907
- return r.length || F(t, L), { e: j, get c() {
1908
- var a = [];
1909
- return r.length && [F(D(t, [r], o, t.name, 5, L, a), L), T.bind(null, a, t)];
1773
+ return r.length || N(t, L), { e: j, get c() {
1774
+ var i = [];
1775
+ return r.length && [N(D(t, [r], o, t.name, 5, L, i), L), A.bind(null, i, t)];
1910
1776
  } };
1911
1777
  }
1912
- function lt(t) {
1913
- var e = pr(t, "string");
1778
+ function at(t) {
1779
+ var e = sr(t, "string");
1914
1780
  return typeof e == "symbol" ? e : e + "";
1915
1781
  }
1916
- function pr(t, e) {
1782
+ function sr(t, e) {
1917
1783
  if (typeof t != "object" || !t) return t;
1918
1784
  var r = t[Symbol.toPrimitive];
1919
1785
  if (r !== void 0) {
@@ -1931,15 +1797,15 @@ function Se(t, e, r) {
1931
1797
  }
1932
1798
  return t;
1933
1799
  }
1934
- function hr(t) {
1800
+ function lr(t) {
1935
1801
  if (Object(t) !== t) throw TypeError("right-hand side of 'in' should be an object, got " + (t !== null ? typeof t : "null"));
1936
1802
  return t;
1937
1803
  }
1938
- st = [te({
1804
+ it = [te({
1939
1805
  tagName: "wsx-responsive-nav"
1940
1806
  })];
1941
- let gr;
1942
- class fr extends J {
1807
+ let cr;
1808
+ class dr extends J {
1943
1809
  constructor(e) {
1944
1810
  super({
1945
1811
  styles: Ee,
@@ -1954,62 +1820,62 @@ class fr extends J {
1954
1820
  }, 0) : document.removeEventListener("click", this.handleOverflowOutsideClick, !0);
1955
1821
  }), Z(this, "closeOverflow", () => {
1956
1822
  this.isOverflowOpen = !1, this.rerender(), document.removeEventListener("click", this.handleOverflowOutsideClick, !0);
1957
- }), Z(this, "handleOverflowOutsideClick", (C) => {
1958
- const L = C.target, j = this.querySelector(".nav-overflow"), a = j == null ? void 0 : j.querySelector(".nav-overflow-menu"), s = j == null ? void 0 : j.querySelector(".nav-overflow-button");
1959
- a && s && !a.contains(L) && !s.contains(L) && this.closeOverflow();
1823
+ }), Z(this, "handleOverflowOutsideClick", (O) => {
1824
+ const L = O.target, j = this.querySelector(".nav-overflow"), i = j == null ? void 0 : j.querySelector(".nav-overflow-menu"), l = j == null ? void 0 : j.querySelector(".nav-overflow-button");
1825
+ i && l && !i.contains(L) && !l.contains(L) && this.closeOverflow();
1960
1826
  }), Z(this, "updateVisibleItems", () => {
1961
- var d;
1827
+ var c;
1962
1828
  if (!this.navigation.autoOverflow || this.isMobile || !this.navMenuElement) {
1963
1829
  if (!this.isMobile) {
1964
- const h = this.navigation.items.map((p, k) => k);
1830
+ const h = this.navigation.items.map((p, y) => y);
1965
1831
  JSON.stringify(h.sort()) !== JSON.stringify(this.visibleItemIndices.sort()) && (this.visibleItemIndices = h, this.hiddenItemIndices = [], this.rerender());
1966
1832
  }
1967
1833
  return;
1968
1834
  }
1969
- const C = [];
1835
+ const O = [];
1970
1836
  for (let h = 0; h < this.navigation.items.length; h++) {
1971
1837
  let p = this.navItemsElements[h];
1972
1838
  if (!p) {
1973
- const k = Array.from(this.navMenuElement.querySelectorAll(".nav-link"));
1974
- k[h] && (p = k[h], this.navItemsElements[h] = p);
1839
+ const y = Array.from(this.navMenuElement.querySelectorAll(".nav-link"));
1840
+ y[h] && (p = y[h], this.navItemsElements[h] = p);
1975
1841
  }
1976
1842
  if (p)
1977
- C.push(p);
1843
+ O.push(p);
1978
1844
  else {
1979
- const k = document.createElement("wsx-link");
1980
- k.textContent = this.navigation.items[h].label, k.style.visibility = "hidden", k.style.position = "absolute", document.body.appendChild(k), C.push(k), setTimeout(() => {
1981
- k.parentElement && k.parentElement.removeChild(k);
1845
+ const y = document.createElement("wsx-link");
1846
+ y.textContent = this.navigation.items[h].label, y.style.visibility = "hidden", y.style.position = "absolute", document.body.appendChild(y), O.push(y), setTimeout(() => {
1847
+ y.parentElement && y.parentElement.removeChild(y);
1982
1848
  }, 0);
1983
1849
  }
1984
1850
  }
1985
- const L = (d = this.navMenuElement.parentElement) == null ? void 0 : d.querySelector(".nav-actions"), j = L ? Array.from(L.children).reduce((h, p) => h + xe.getElementTotalWidth(p), 0) + 8 : 0, c = xe.detect({
1851
+ const L = (c = this.navMenuElement.parentElement) == null ? void 0 : c.querySelector(".nav-actions"), j = L ? Array.from(L.children).reduce((h, p) => h + we.getElementTotalWidth(p), 0) + 8 : 0, d = we.detect({
1986
1852
  container: this.navMenuElement,
1987
- items: C,
1853
+ items: O,
1988
1854
  gap: 16,
1989
1855
  reservedWidth: j,
1990
1856
  overflowButtonWidth: 90,
1991
1857
  padding: 0,
1992
1858
  minVisibleItems: 1
1993
- }), i = c.visibleIndices, n = c.hiddenIndices;
1994
- C.forEach((h) => {
1859
+ }), a = d.visibleIndices, n = d.hiddenIndices;
1860
+ O.forEach((h) => {
1995
1861
  h.parentElement === document.body && document.body.removeChild(h);
1996
- }), (JSON.stringify(i.sort()) !== JSON.stringify(this.visibleItemIndices.sort()) || JSON.stringify(n.sort()) !== JSON.stringify(this.hiddenItemIndices.sort())) && (this.visibleItemIndices = i, this.hiddenItemIndices = n, this.rerender());
1862
+ }), (JSON.stringify(a.sort()) !== JSON.stringify(this.visibleItemIndices.sort()) || JSON.stringify(n.sort()) !== JSON.stringify(this.hiddenItemIndices.sort())) && (this.visibleItemIndices = a, this.hiddenItemIndices = n, this.rerender());
1997
1863
  }), Z(this, "checkMobile", () => {
1998
1864
  var L;
1999
- const C = window.innerWidth <= (((L = this.navigation) == null ? void 0 : L.mobileBreakpoint) || 768);
2000
- C !== this.isMobile && (this.isMobile = C, this.rerender());
1865
+ const O = window.innerWidth <= (((L = this.navigation) == null ? void 0 : L.mobileBreakpoint) || 768);
1866
+ O !== this.isMobile && (this.isMobile = O, this.rerender());
2001
1867
  }), e && (this.navigation = {
2002
1868
  mobileBreakpoint: 768,
2003
1869
  autoOverflow: !0,
2004
1870
  ...e
2005
- }, this.visibleItemIndices = e.items.map((C, L) => L));
1871
+ }, this.visibleItemIndices = e.items.map((O, L) => L));
2006
1872
  let r = this.reactive({
2007
1873
  items: []
2008
1874
  });
2009
1875
  Object.defineProperty(this, "navigation", {
2010
1876
  get: () => r,
2011
- set: (C) => {
2012
- r = C !== null && typeof C < "u" && (Array.isArray(C) || typeof C == "object") ? this.reactive(C) : C, this.scheduleRerender();
1877
+ set: (O) => {
1878
+ r = O !== null && typeof O < "u" && (Array.isArray(O) || typeof O == "object") ? this.reactive(O) : O, this.scheduleRerender();
2013
1879
  },
2014
1880
  enumerable: !0,
2015
1881
  configurable: !0
@@ -2021,35 +1887,35 @@ class fr extends J {
2021
1887
  enumerable: !0,
2022
1888
  configurable: !0
2023
1889
  });
2024
- let A = this.reactive([]);
1890
+ let T = this.reactive([]);
2025
1891
  Object.defineProperty(this, "visibleItemIndices", {
2026
- get: () => A,
2027
- set: (C) => {
2028
- A = C !== null && typeof C < "u" && (Array.isArray(C) || typeof C == "object") ? this.reactive(C) : C, this.scheduleRerender();
1892
+ get: () => T,
1893
+ set: (O) => {
1894
+ T = O !== null && typeof O < "u" && (Array.isArray(O) || typeof O == "object") ? this.reactive(O) : O, this.scheduleRerender();
2029
1895
  },
2030
1896
  enumerable: !0,
2031
1897
  configurable: !0
2032
1898
  });
2033
- let b = this.reactive([]);
1899
+ let E = this.reactive([]);
2034
1900
  Object.defineProperty(this, "hiddenItemIndices", {
2035
- get: () => b,
2036
- set: (C) => {
2037
- b = C !== null && typeof C < "u" && (Array.isArray(C) || typeof C == "object") ? this.reactive(C) : C, this.scheduleRerender();
1901
+ get: () => E,
1902
+ set: (O) => {
1903
+ E = O !== null && typeof O < "u" && (Array.isArray(O) || typeof O == "object") ? this.reactive(O) : O, this.scheduleRerender();
2038
1904
  },
2039
1905
  enumerable: !0,
2040
1906
  configurable: !0
2041
1907
  });
2042
- const [T, y] = this.useState("isMobile", !1);
1908
+ const [A, m] = this.useState("isMobile", !1);
2043
1909
  Object.defineProperty(this, "isMobile", {
2044
- get: T,
2045
- set: y,
1910
+ get: A,
1911
+ set: m,
2046
1912
  enumerable: !0,
2047
1913
  configurable: !0
2048
1914
  });
2049
- const [D, F] = this.useState("isOverflowOpen", !1);
1915
+ const [D, N] = this.useState("isOverflowOpen", !1);
2050
1916
  Object.defineProperty(this, "isOverflowOpen", {
2051
1917
  get: D,
2052
- set: F,
1918
+ set: N,
2053
1919
  enumerable: !0,
2054
1920
  configurable: !0
2055
1921
  });
@@ -2059,15 +1925,15 @@ class fr extends J {
2059
1925
  if (!((r = this.navigation) != null && r.items) || ((o = this.navigation) == null ? void 0 : o.items.length) === 0)
2060
1926
  return /* @__PURE__ */ $("nav", { class: "responsive-nav" });
2061
1927
  const e = this.hiddenItemIndices.map((S) => this.navigation.items[S]);
2062
- return /* @__PURE__ */ $("nav", { class: "responsive-nav" }, /* @__PURE__ */ $("div", { class: "nav-container" }, /* @__PURE__ */ $("div", { class: "nav-brand" }, /* @__PURE__ */ $("slot", { name: "brand-icon" }, this.navigation.brandIcon && typeof this.navigation.brandIcon == "string" && /* @__PURE__ */ $("span", { class: "nav-brand-icon" }, this.navigation.brandIcon)), this.navigation.brand && /* @__PURE__ */ $("span", { class: "nav-brand-text" }, this.navigation.brand)), !this.isMobile && /* @__PURE__ */ $("div", { ref: (S) => this.navMenuElement = S, class: "nav-menu" }, this.navigation.items.map((S, A) => {
2063
- const b = this.visibleItemIndices.includes(A);
2064
- return /* @__PURE__ */ $("wsx-link", { key: `nav-${A}`, ref: (T) => {
2065
- T && (this.navItemsElements[A] = T);
2066
- }, to: S.to, class: `nav-link ${b ? "" : "hidden-item"}`, "active-class": "nav-link-active", exact: S.exact, style: b ? "" : "position: absolute; visibility: hidden; pointer-events: none;" }, S.label);
2067
- }), this.navigation.autoOverflow && e.length > 0 && !this.isMobile && /* @__PURE__ */ $("div", { class: "nav-overflow" }, /* @__PURE__ */ $("button", { class: "nav-overflow-button", onClick: this.toggleOverflow, "data-wsx-key": "ResponsiveNav-button-text-1-1" }, "More ▼"), this.isOverflowOpen && /* @__PURE__ */ $("div", { class: "nav-overflow-menu" }, e.map((S, A) => {
2068
- const b = this.hiddenItemIndices[A];
2069
- return /* @__PURE__ */ $("wsx-link", { key: `overflow-${b}`, to: S.to, class: "nav-overflow-link", "active-class": "nav-link-active", exact: S.exact, onClick: this.closeOverflow }, S.label);
2070
- })))), this.navigation.actionTags && /* @__PURE__ */ $("div", { class: "nav-actions" }, this.navigation.actionTags.map((S, A) => /* @__PURE__ */ $("div", { key: A, class: "nav-action" }, /* @__PURE__ */ $(S, null)))), this.isMobile && /* @__PURE__ */ $("button", { class: "nav-toggle", onClick: this.toggleMobileMenu, "data-wsx-key": "ResponsiveNav-button-text-1" }, /* @__PURE__ */ $("span", { class: `nav-toggle-line ${this.isMobileMenuOpen ? "open" : ""}` }), /* @__PURE__ */ $("span", { class: `nav-toggle-line ${this.isMobileMenuOpen ? "open" : ""}` }), /* @__PURE__ */ $("span", { class: `nav-toggle-line ${this.isMobileMenuOpen ? "open" : ""}` }))), this.isMobile && /* @__PURE__ */ $("div", { class: `nav-mobile-menu ${this.isMobileMenuOpen ? "open" : ""}` }, this.navigation.items.filter((S) => !S.hideOnMobile).map((S, A) => /* @__PURE__ */ $("wsx-link", { key: A, to: S.to, class: "nav-mobile-link", "active-class": "nav-link-active", exact: S.exact, onClick: this.closeMobileMenu }, S.label))));
1928
+ return /* @__PURE__ */ $("nav", { class: "responsive-nav" }, /* @__PURE__ */ $("div", { class: "nav-container" }, /* @__PURE__ */ $("div", { class: "nav-brand" }, /* @__PURE__ */ $("slot", { name: "brand-icon" }, this.navigation.brandIcon && typeof this.navigation.brandIcon == "string" && /* @__PURE__ */ $("span", { class: "nav-brand-icon" }, this.navigation.brandIcon)), this.navigation.brand && /* @__PURE__ */ $("span", { class: "nav-brand-text" }, this.navigation.brand)), !this.isMobile && /* @__PURE__ */ $("div", { ref: (S) => this.navMenuElement = S, class: "nav-menu" }, this.navigation.items.map((S, T) => {
1929
+ const E = this.visibleItemIndices.includes(T);
1930
+ return /* @__PURE__ */ $("wsx-link", { key: `nav-${T}`, ref: (A) => {
1931
+ A && (this.navItemsElements[T] = A);
1932
+ }, to: S.to, class: `nav-link ${E ? "" : "hidden-item"}`, "active-class": "nav-link-active", exact: S.exact, style: E ? "" : "position: absolute; visibility: hidden; pointer-events: none;" }, S.label);
1933
+ }), this.navigation.autoOverflow && e.length > 0 && !this.isMobile && /* @__PURE__ */ $("div", { class: "nav-overflow" }, /* @__PURE__ */ $("button", { class: "nav-overflow-button", onClick: this.toggleOverflow, "data-wsx-key": "ResponsiveNav-button-text-1-1" }, "More ▼"), this.isOverflowOpen && /* @__PURE__ */ $("div", { class: "nav-overflow-menu" }, e.map((S, T) => {
1934
+ const E = this.hiddenItemIndices[T];
1935
+ return /* @__PURE__ */ $("wsx-link", { key: `overflow-${E}`, to: S.to, class: "nav-overflow-link", "active-class": "nav-link-active", exact: S.exact, onClick: this.closeOverflow }, S.label);
1936
+ })))), this.navigation.actionTags && /* @__PURE__ */ $("div", { class: "nav-actions" }, this.navigation.actionTags.map((S, T) => /* @__PURE__ */ $("div", { key: T, class: "nav-action" }, /* @__PURE__ */ $(S, null)))), this.isMobile && /* @__PURE__ */ $("button", { class: "nav-toggle", onClick: this.toggleMobileMenu, "data-wsx-key": "ResponsiveNav-button-text-1" }, /* @__PURE__ */ $("span", { class: `nav-toggle-line ${this.isMobileMenuOpen ? "open" : ""}` }), /* @__PURE__ */ $("span", { class: `nav-toggle-line ${this.isMobileMenuOpen ? "open" : ""}` }), /* @__PURE__ */ $("span", { class: `nav-toggle-line ${this.isMobileMenuOpen ? "open" : ""}` }))), this.isMobile && /* @__PURE__ */ $("div", { class: `nav-mobile-menu ${this.isMobileMenuOpen ? "open" : ""}` }, this.navigation.items.filter((S) => !S.hideOnMobile).map((S, T) => /* @__PURE__ */ $("wsx-link", { key: T, to: S.to, class: "nav-mobile-link", "active-class": "nav-link-active", exact: S.exact, onClick: this.closeMobileMenu }, S.label))));
2071
1937
  }
2072
1938
  /**
2073
1939
  * 组件连接时初始化
@@ -2076,14 +1942,14 @@ class fr extends J {
2076
1942
  var r, o, S;
2077
1943
  if ((r = super.onConnected) == null || r.call(this), !((o = this.navigation) != null && o.items) || ((S = this.navigation) == null ? void 0 : S.items.length) === 0)
2078
1944
  try {
2079
- this.visibleItemIndices = this.navigation.items.map((A, b) => b), this.rerender();
2080
- } catch (A) {
2081
- console.error("Failed to parse ResponsiveNav config:", A);
1945
+ this.visibleItemIndices = this.navigation.items.map((T, E) => E), this.rerender();
1946
+ } catch (T) {
1947
+ console.error("Failed to parse ResponsiveNav config:", T);
2082
1948
  }
2083
1949
  this.checkMobile();
2084
- const e = (A = 0) => {
2085
- A > 10 || setTimeout(() => {
2086
- this.navMenuElement && (this.navigation.items.every((T, y) => this.navItemsElements[y]) || A > 5 ? this.updateVisibleItems() : e(A + 1));
1950
+ const e = (T = 0) => {
1951
+ T > 10 || setTimeout(() => {
1952
+ this.navMenuElement && (this.navigation.items.every((A, m) => this.navItemsElements[m]) || T > 5 ? this.updateVisibleItems() : e(T + 1));
2087
1953
  }, 50);
2088
1954
  };
2089
1955
  e(), this.resizeHandler = () => {
@@ -2106,110 +1972,110 @@ class fr extends J {
2106
1972
  (e = super.onDisconnected) == null || e.call(this), this.resizeHandler && window.removeEventListener("resize", this.resizeHandler), this.resizeObserver && this.resizeObserver.disconnect();
2107
1973
  }
2108
1974
  }
2109
- it = fr;
2110
- [gr, at] = ur(it, [], st, 0, void 0, J).c;
2111
- at();
2112
- var ct;
2113
- let dt, ut;
2114
- function ne(t, e, r) {
2115
- return (e = pt(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
1975
+ nt = dr;
1976
+ [cr, ot] = ar(nt, [], it, 0, void 0, J).c;
1977
+ ot();
1978
+ var st;
1979
+ let lt, ct;
1980
+ function re(t, e, r) {
1981
+ return (e = dt(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
2116
1982
  }
2117
- function br(t, e, r, o, S, A) {
2118
- function b(a, s, c) {
2119
- return function(i, n) {
2120
- return c && c(i), a[s].call(i, n);
1983
+ function ur(t, e, r, o, S, T) {
1984
+ function E(i, l, d) {
1985
+ return function(a, n) {
1986
+ return d && d(a), i[l].call(a, n);
2121
1987
  };
2122
1988
  }
2123
- function T(a, s) {
2124
- for (var c = 0; c < a.length; c++) a[c].call(s);
2125
- return s;
1989
+ function A(i, l) {
1990
+ for (var d = 0; d < i.length; d++) i[d].call(l);
1991
+ return l;
2126
1992
  }
2127
- function y(a, s, c, i) {
2128
- if (typeof a != "function" && (i || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (i ? "" : " or undefined"));
2129
- return a;
1993
+ function m(i, l, d, a) {
1994
+ if (typeof i != "function" && (a || i !== void 0)) throw new TypeError(l + " must " + (d || "be") + " a function" + (a ? "" : " or undefined"));
1995
+ return i;
2130
1996
  }
2131
- function D(a, s, c, i, n, d, h, p, k, x, m, u, v) {
2132
- function O(f) {
2133
- if (!v(f)) throw new TypeError("Attempted to access private element on non-instance");
1997
+ function D(i, l, d, a, n, c, h, p, y, w, b, u, f) {
1998
+ function C(g) {
1999
+ if (!f(g)) throw new TypeError("Attempted to access private element on non-instance");
2134
2000
  }
2135
- var g, _ = s[0], I = s[3], M = !p;
2001
+ var k, _ = l[0], I = l[3], M = !p;
2136
2002
  if (!M) {
2137
- c || Array.isArray(_) || (_ = [_]);
2138
- var l = {}, R = [], E = n === 3 ? "get" : n === 4 || u ? "set" : "value";
2139
- x ? (m || u ? l = { get: Ae(function() {
2003
+ d || Array.isArray(_) || (_ = [_]);
2004
+ var s = {}, F = [], x = n === 3 ? "get" : n === 4 || u ? "set" : "value";
2005
+ w ? (b || u ? s = { get: Ae(function() {
2140
2006
  return I(this);
2141
- }, i, "get"), set: function(f) {
2142
- s[4](this, f);
2143
- } } : l[E] = I, m || Ae(l[E], i, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, i));
2007
+ }, a, "get"), set: function(g) {
2008
+ l[4](this, g);
2009
+ } } : s[x] = I, b || Ae(s[x], a, n === 2 ? "" : x)) : b || (s = Object.getOwnPropertyDescriptor(i, a));
2144
2010
  }
2145
- for (var w = a, B = _.length - 1; B >= 0; B -= c ? 2 : 1) {
2146
- var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: i, metadata: d, addInitializer: (function(f, N) {
2147
- if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
2148
- y(N, "An initializer", "be", !0), h.push(N);
2011
+ for (var v = i, B = _.length - 1; B >= 0; B -= d ? 2 : 1) {
2012
+ var V = _[B], G = d ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
2013
+ if (g.v) throw Error("attempted to call addInitializer after decoration was finished");
2014
+ m(R, "An initializer", "be", !0), h.push(R);
2149
2015
  }).bind(null, Y) };
2150
2016
  try {
2151
- if (M) (g = y(W.call(G, w, z), "class decorators", "return")) && (w = g);
2017
+ if (M) (k = m(V.call(G, v, z), "class decorators", "return")) && (v = k);
2152
2018
  else {
2153
- var P, U;
2154
- z.static = k, z.private = x, x ? n === 2 ? P = function(f) {
2155
- return O(f), l.value;
2156
- } : (n < 4 && (P = b(l, "get", O)), n !== 3 && (U = b(l, "set", O))) : (P = function(f) {
2157
- return f[i];
2158
- }, (n < 2 || n === 4) && (U = function(f, N) {
2159
- f[i] = N;
2019
+ var P, H;
2020
+ z.static = y, z.private = w, w ? n === 2 ? P = function(g) {
2021
+ return C(g), s.value;
2022
+ } : (n < 4 && (P = E(s, "get", C)), n !== 3 && (H = E(s, "set", C))) : (P = function(g) {
2023
+ return g[a];
2024
+ }, (n < 2 || n === 4) && (H = function(g, R) {
2025
+ g[a] = R;
2160
2026
  }));
2161
- var V = z.access = { has: x ? v.bind() : function(f) {
2162
- return i in f;
2027
+ var W = z.access = { has: w ? f.bind() : function(g) {
2028
+ return a in g;
2163
2029
  } };
2164
- if (P && (V.get = P), U && (V.set = U), w = W.call(G, u ? { get: l.get, set: l.set } : l[E], z), u) {
2165
- if (typeof w == "object" && w) (g = y(w.get, "accessor.get")) && (l.get = g), (g = y(w.set, "accessor.set")) && (l.set = g), (g = y(w.init, "accessor.init")) && R.push(g);
2166
- else if (w !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
2167
- } else y(w, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(w) : l[E] = w);
2030
+ if (P && (W.get = P), H && (W.set = H), v = V.call(G, u ? { get: s.get, set: s.set } : s[x], z), u) {
2031
+ if (typeof v == "object" && v) (k = m(v.get, "accessor.get")) && (s.get = k), (k = m(v.set, "accessor.set")) && (s.set = k), (k = m(v.init, "accessor.init")) && F.push(k);
2032
+ else if (v !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
2033
+ } else m(v, (b ? "field" : "method") + " decorators", "return") && (b ? F.push(v) : s[x] = v);
2168
2034
  }
2169
2035
  } finally {
2170
2036
  Y.v = !0;
2171
2037
  }
2172
2038
  }
2173
- return (m || u) && p.push(function(f, N) {
2174
- for (var H = R.length - 1; H >= 0; H--) N = R[H].call(f, N);
2175
- return N;
2176
- }), m || M || (x ? u ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, i, l)), w;
2177
- }
2178
- function F(a, s) {
2179
- return Object.defineProperty(a, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: s });
2180
- }
2181
- if (arguments.length >= 6) var C = A[Symbol.metadata || Symbol.for("Symbol.metadata")];
2182
- var L = Object.create(C ?? null), j = function(a, s, c, i) {
2183
- var n, d, h = [], p = function(E) {
2184
- return vr(E) === a;
2185
- }, k = /* @__PURE__ */ new Map();
2186
- function x(E) {
2187
- E && h.push(T.bind(null, E));
2039
+ return (b || u) && p.push(function(g, R) {
2040
+ for (var U = F.length - 1; U >= 0; U--) R = F[U].call(g, R);
2041
+ return R;
2042
+ }), b || M || (w ? u ? p.push(E(s, "get"), E(s, "set")) : p.push(n === 2 ? s[x] : E.call.bind(s[x])) : Object.defineProperty(i, a, s)), v;
2043
+ }
2044
+ function N(i, l) {
2045
+ return Object.defineProperty(i, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: l });
2046
+ }
2047
+ if (arguments.length >= 6) var O = T[Symbol.metadata || Symbol.for("Symbol.metadata")];
2048
+ var L = Object.create(O ?? null), j = function(i, l, d, a) {
2049
+ var n, c, h = [], p = function(x) {
2050
+ return pr(x) === i;
2051
+ }, y = /* @__PURE__ */ new Map();
2052
+ function w(x) {
2053
+ x && h.push(A.bind(null, x));
2188
2054
  }
2189
- for (var m = 0; m < s.length; m++) {
2190
- var u = s[m];
2055
+ for (var b = 0; b < l.length; b++) {
2056
+ var u = l[b];
2191
2057
  if (Array.isArray(u)) {
2192
- var v = u[1], O = u[2], g = u.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = O + "/" + I;
2193
- if (!M && !g) {
2194
- var R = k.get(l);
2195
- if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + O);
2196
- k.set(l, !(v > 2) || v);
2058
+ var f = u[1], C = u[2], k = u.length > 3, _ = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = C + "/" + I;
2059
+ if (!M && !k) {
2060
+ var F = y.get(s);
2061
+ if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + C);
2062
+ y.set(s, !(f > 2) || f);
2197
2063
  }
2198
- D(I ? a : a.prototype, u, _, g ? "#" + O : pt(O), v, i, I ? d = d || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
2064
+ D(I ? i : i.prototype, u, _, k ? "#" + C : dt(C), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
2199
2065
  }
2200
2066
  }
2201
- return x(n), x(d), h;
2067
+ return w(n), w(c), h;
2202
2068
  }(t, e, S, L);
2203
- return r.length || F(t, L), { e: j, get c() {
2204
- var a = [];
2205
- return r.length && [F(D(t, [r], o, t.name, 5, L, a), L), T.bind(null, a, t)];
2069
+ return r.length || N(t, L), { e: j, get c() {
2070
+ var i = [];
2071
+ return r.length && [N(D(t, [r], o, t.name, 5, L, i), L), A.bind(null, i, t)];
2206
2072
  } };
2207
2073
  }
2208
- function pt(t) {
2209
- var e = mr(t, "string");
2074
+ function dt(t) {
2075
+ var e = hr(t, "string");
2210
2076
  return typeof e == "symbol" ? e : e + "";
2211
2077
  }
2212
- function mr(t, e) {
2078
+ function hr(t, e) {
2213
2079
  if (typeof t != "object" || !t) return t;
2214
2080
  var r = t[Symbol.toPrimitive];
2215
2081
  if (r !== void 0) {
@@ -2227,33 +2093,33 @@ function Ae(t, e, r) {
2227
2093
  }
2228
2094
  return t;
2229
2095
  }
2230
- function vr(t) {
2096
+ function pr(t) {
2231
2097
  if (Object(t) !== t) throw TypeError("right-hand side of 'in' should be an object, got " + (t !== null ? typeof t : "null"));
2232
2098
  return t;
2233
2099
  }
2234
- const Te = Ue("SvgIcon");
2235
- ut = [te({
2100
+ const Te = je("SvgIcon");
2101
+ ct = [te({
2236
2102
  tagName: "svg-icon"
2237
2103
  })];
2238
- let yr;
2239
- class kr extends J {
2104
+ let gr;
2105
+ class br extends J {
2240
2106
  constructor() {
2241
- super(), ne(this, "size", void 0), ne(this, "color", void 0), ne(this, "name", void 0), ne(this, "handleClick", (T) => {
2107
+ super(), re(this, "size", void 0), re(this, "color", void 0), re(this, "name", void 0), re(this, "handleClick", (A) => {
2242
2108
  Te.debug("SVG icon clicked", {
2243
2109
  name: this.name
2244
2110
  }), this.dispatchEvent(new CustomEvent("icon-click", {
2245
2111
  detail: {
2246
2112
  name: this.name,
2247
- originalEvent: T
2113
+ originalEvent: A
2248
2114
  },
2249
2115
  bubbles: !0
2250
2116
  }));
2251
- }), ne(this, "handleMouseEnter", (T) => {
2252
- const y = T.target;
2253
- y.style.transform = "scale(1.1)";
2254
- }), ne(this, "handleMouseLeave", (T) => {
2255
- const y = T.target;
2256
- y.style.transform = "scale(1)";
2117
+ }), re(this, "handleMouseEnter", (A) => {
2118
+ const m = A.target;
2119
+ m.style.transform = "scale(1.1)";
2120
+ }), re(this, "handleMouseLeave", (A) => {
2121
+ const m = A.target;
2122
+ m.style.transform = "scale(1)";
2257
2123
  });
2258
2124
  const [e, r] = this.useState("size", 24);
2259
2125
  Object.defineProperty(this, "size", {
@@ -2269,10 +2135,10 @@ class kr extends J {
2269
2135
  enumerable: !0,
2270
2136
  configurable: !0
2271
2137
  });
2272
- const [A, b] = this.useState("name", "star");
2138
+ const [T, E] = this.useState("name", "star");
2273
2139
  Object.defineProperty(this, "name", {
2274
- get: A,
2275
- set: b,
2140
+ get: T,
2141
+ set: E,
2276
2142
  enumerable: !0,
2277
2143
  configurable: !0
2278
2144
  });
@@ -2286,8 +2152,8 @@ class kr extends J {
2286
2152
  github: "M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22",
2287
2153
  play: "M8 5v14l11-7z",
2288
2154
  settings: "M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6z M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1 1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"
2289
- }, A = S[o] || S.star;
2290
- return /* @__PURE__ */ $("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: r, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "svg-icon", onClick: this.handleClick, style: "cursor: pointer; transition: transform 0.2s ease; display: inline-block;", onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, /* @__PURE__ */ $("path", { d: A, fill: r }));
2155
+ }, T = S[o] || S.star;
2156
+ return /* @__PURE__ */ $("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: r, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "svg-icon", onClick: this.handleClick, style: "cursor: pointer; transition: transform 0.2s ease; display: inline-block;", onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, /* @__PURE__ */ $("path", { d: T, fill: r }));
2291
2157
  }
2292
2158
  static get observedAttributes() {
2293
2159
  return ["name", "size", "color"];
@@ -2296,10 +2162,14 @@ class kr extends J {
2296
2162
  Te.debug(`Attribute ${e} changed from ${r} to ${o}`), this.connected && this.rerender();
2297
2163
  }
2298
2164
  }
2299
- ct = kr;
2300
- [yr, dt] = br(ct, [], ut, 0, void 0, J).c;
2301
- dt();
2302
- var ht = { exports: {} };
2165
+ st = br;
2166
+ [gr, lt] = ur(st, [], ct, 0, void 0, J).c;
2167
+ lt();
2168
+ var Oe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2169
+ function fr(t) {
2170
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
2171
+ }
2172
+ var ut = { exports: {} };
2303
2173
  (function(t) {
2304
2174
  var e = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
2305
2175
  /**
@@ -2311,7 +2181,7 @@ var ht = { exports: {} };
2311
2181
  * @public
2312
2182
  */
2313
2183
  var r = function(o) {
2314
- var S = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, A = 0, b = {}, T = {
2184
+ var S = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, T = 0, E = {}, A = {
2315
2185
  /**
2316
2186
  * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
2317
2187
  * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
@@ -2366,8 +2236,8 @@ var ht = { exports: {} };
2366
2236
  * @memberof Prism
2367
2237
  */
2368
2238
  util: {
2369
- encode: function n(d) {
2370
- return d instanceof y ? new y(d.type, n(d.content), d.alias) : Array.isArray(d) ? d.map(n) : d.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
2239
+ encode: function n(c) {
2240
+ return c instanceof m ? new m(c.type, n(c.content), c.alias) : Array.isArray(c) ? c.map(n) : c.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
2371
2241
  },
2372
2242
  /**
2373
2243
  * Returns the name of the type of the given value.
@@ -2395,7 +2265,7 @@ var ht = { exports: {} };
2395
2265
  * @returns {number}
2396
2266
  */
2397
2267
  objId: function(n) {
2398
- return n.__id || Object.defineProperty(n, "__id", { value: ++A }), n.__id;
2268
+ return n.__id || Object.defineProperty(n, "__id", { value: ++T }), n.__id;
2399
2269
  },
2400
2270
  /**
2401
2271
  * Creates a deep clone of the given object.
@@ -2407,30 +2277,30 @@ var ht = { exports: {} };
2407
2277
  * @returns {T}
2408
2278
  * @template T
2409
2279
  */
2410
- clone: function n(d, h) {
2280
+ clone: function n(c, h) {
2411
2281
  h = h || {};
2412
- var p, k;
2413
- switch (T.util.type(d)) {
2282
+ var p, y;
2283
+ switch (A.util.type(c)) {
2414
2284
  case "Object":
2415
- if (k = T.util.objId(d), h[k])
2416
- return h[k];
2285
+ if (y = A.util.objId(c), h[y])
2286
+ return h[y];
2417
2287
  p = /** @type {Record<string, any>} */
2418
- {}, h[k] = p;
2419
- for (var x in d)
2420
- d.hasOwnProperty(x) && (p[x] = n(d[x], h));
2288
+ {}, h[y] = p;
2289
+ for (var w in c)
2290
+ c.hasOwnProperty(w) && (p[w] = n(c[w], h));
2421
2291
  return (
2422
2292
  /** @type {any} */
2423
2293
  p
2424
2294
  );
2425
2295
  case "Array":
2426
- return k = T.util.objId(d), h[k] ? h[k] : (p = [], h[k] = p, /** @type {Array} */
2296
+ return y = A.util.objId(c), h[y] ? h[y] : (p = [], h[y] = p, /** @type {Array} */
2427
2297
  /** @type {any} */
2428
- d.forEach(function(m, u) {
2429
- p[u] = n(m, h);
2298
+ c.forEach(function(b, u) {
2299
+ p[u] = n(b, h);
2430
2300
  }), /** @type {any} */
2431
2301
  p);
2432
2302
  default:
2433
- return d;
2303
+ return c;
2434
2304
  }
2435
2305
  },
2436
2306
  /**
@@ -2443,9 +2313,9 @@ var ht = { exports: {} };
2443
2313
  */
2444
2314
  getLanguage: function(n) {
2445
2315
  for (; n; ) {
2446
- var d = S.exec(n.className);
2447
- if (d)
2448
- return d[1].toLowerCase();
2316
+ var c = S.exec(n.className);
2317
+ if (c)
2318
+ return c[1].toLowerCase();
2449
2319
  n = n.parentElement;
2450
2320
  }
2451
2321
  return "none";
@@ -2457,8 +2327,8 @@ var ht = { exports: {} };
2457
2327
  * @param {string} language
2458
2328
  * @returns {void}
2459
2329
  */
2460
- setLanguage: function(n, d) {
2461
- n.className = n.className.replace(RegExp(S, "gi"), ""), n.classList.add("language-" + d);
2330
+ setLanguage: function(n, c) {
2331
+ n.className = n.className.replace(RegExp(S, "gi"), ""), n.classList.add("language-" + c);
2462
2332
  },
2463
2333
  /**
2464
2334
  * Returns the script element that is currently executing.
@@ -2480,10 +2350,10 @@ var ht = { exports: {} };
2480
2350
  } catch (p) {
2481
2351
  var n = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(p.stack) || [])[1];
2482
2352
  if (n) {
2483
- var d = document.getElementsByTagName("script");
2484
- for (var h in d)
2485
- if (d[h].src == n)
2486
- return d[h];
2353
+ var c = document.getElementsByTagName("script");
2354
+ for (var h in c)
2355
+ if (c[h].src == n)
2356
+ return c[h];
2487
2357
  }
2488
2358
  return null;
2489
2359
  }
@@ -2507,12 +2377,12 @@ var ht = { exports: {} };
2507
2377
  * @param {boolean} [defaultActivation=false]
2508
2378
  * @returns {boolean}
2509
2379
  */
2510
- isActive: function(n, d, h) {
2511
- for (var p = "no-" + d; n; ) {
2512
- var k = n.classList;
2513
- if (k.contains(d))
2380
+ isActive: function(n, c, h) {
2381
+ for (var p = "no-" + c; n; ) {
2382
+ var y = n.classList;
2383
+ if (y.contains(c))
2514
2384
  return !0;
2515
- if (k.contains(p))
2385
+ if (y.contains(p))
2516
2386
  return !1;
2517
2387
  n = n.parentElement;
2518
2388
  }
@@ -2530,10 +2400,10 @@ var ht = { exports: {} };
2530
2400
  /**
2531
2401
  * The grammar for plain, unformatted text.
2532
2402
  */
2533
- plain: b,
2534
- plaintext: b,
2535
- text: b,
2536
- txt: b,
2403
+ plain: E,
2404
+ plaintext: E,
2405
+ text: E,
2406
+ txt: E,
2537
2407
  /**
2538
2408
  * Creates a deep copy of the language with the given id and appends the given tokens.
2539
2409
  *
@@ -2562,10 +2432,10 @@ var ht = { exports: {} };
2562
2432
  * 'color': /\b(?:red|green|blue)\b/
2563
2433
  * });
2564
2434
  */
2565
- extend: function(n, d) {
2566
- var h = T.util.clone(T.languages[n]);
2567
- for (var p in d)
2568
- h[p] = d[p];
2435
+ extend: function(n, c) {
2436
+ var h = A.util.clone(A.languages[n]);
2437
+ for (var p in c)
2438
+ h[p] = c[p];
2569
2439
  return h;
2570
2440
  },
2571
2441
  /**
@@ -2643,31 +2513,31 @@ var ht = { exports: {} };
2643
2513
  * @returns {Grammar} The new grammar object.
2644
2514
  * @public
2645
2515
  */
2646
- insertBefore: function(n, d, h, p) {
2516
+ insertBefore: function(n, c, h, p) {
2647
2517
  p = p || /** @type {any} */
2648
- T.languages;
2649
- var k = p[n], x = {};
2650
- for (var m in k)
2651
- if (k.hasOwnProperty(m)) {
2652
- if (m == d)
2518
+ A.languages;
2519
+ var y = p[n], w = {};
2520
+ for (var b in y)
2521
+ if (y.hasOwnProperty(b)) {
2522
+ if (b == c)
2653
2523
  for (var u in h)
2654
- h.hasOwnProperty(u) && (x[u] = h[u]);
2655
- h.hasOwnProperty(m) || (x[m] = k[m]);
2524
+ h.hasOwnProperty(u) && (w[u] = h[u]);
2525
+ h.hasOwnProperty(b) || (w[b] = y[b]);
2656
2526
  }
2657
- var v = p[n];
2658
- return p[n] = x, T.languages.DFS(T.languages, function(O, g) {
2659
- g === v && O != n && (this[O] = x);
2660
- }), x;
2527
+ var f = p[n];
2528
+ return p[n] = w, A.languages.DFS(A.languages, function(C, k) {
2529
+ k === f && C != n && (this[C] = w);
2530
+ }), w;
2661
2531
  },
2662
2532
  // Traverse a language definition with Depth First Search
2663
- DFS: function n(d, h, p, k) {
2664
- k = k || {};
2665
- var x = T.util.objId;
2666
- for (var m in d)
2667
- if (d.hasOwnProperty(m)) {
2668
- h.call(d, m, d[m], p || m);
2669
- var u = d[m], v = T.util.type(u);
2670
- v === "Object" && !k[x(u)] ? (k[x(u)] = !0, n(u, h, null, k)) : v === "Array" && !k[x(u)] && (k[x(u)] = !0, n(u, h, m, k));
2533
+ DFS: function n(c, h, p, y) {
2534
+ y = y || {};
2535
+ var w = A.util.objId;
2536
+ for (var b in c)
2537
+ if (c.hasOwnProperty(b)) {
2538
+ h.call(c, b, c[b], p || b);
2539
+ var u = c[b], f = A.util.type(u);
2540
+ f === "Object" && !y[w(u)] ? (y[w(u)] = !0, n(u, h, null, y)) : f === "Array" && !y[w(u)] && (y[w(u)] = !0, n(u, h, b, y));
2671
2541
  }
2672
2542
  }
2673
2543
  },
@@ -2684,8 +2554,8 @@ var ht = { exports: {} };
2684
2554
  * @memberof Prism
2685
2555
  * @public
2686
2556
  */
2687
- highlightAll: function(n, d) {
2688
- T.highlightAllUnder(document, n, d);
2557
+ highlightAll: function(n, c) {
2558
+ A.highlightAllUnder(document, n, c);
2689
2559
  },
2690
2560
  /**
2691
2561
  * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
@@ -2702,15 +2572,15 @@ var ht = { exports: {} };
2702
2572
  * @memberof Prism
2703
2573
  * @public
2704
2574
  */
2705
- highlightAllUnder: function(n, d, h) {
2575
+ highlightAllUnder: function(n, c, h) {
2706
2576
  var p = {
2707
2577
  callback: h,
2708
2578
  container: n,
2709
2579
  selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
2710
2580
  };
2711
- T.hooks.run("before-highlightall", p), p.elements = Array.prototype.slice.apply(p.container.querySelectorAll(p.selector)), T.hooks.run("before-all-elements-highlight", p);
2712
- for (var k = 0, x; x = p.elements[k++]; )
2713
- T.highlightElement(x, d === !0, p.callback);
2581
+ A.hooks.run("before-highlightall", p), p.elements = Array.prototype.slice.apply(p.container.querySelectorAll(p.selector)), A.hooks.run("before-all-elements-highlight", p);
2582
+ for (var y = 0, w; w = p.elements[y++]; )
2583
+ A.highlightElement(w, c === !0, p.callback);
2714
2584
  },
2715
2585
  /**
2716
2586
  * Highlights the code inside a single element.
@@ -2740,39 +2610,39 @@ var ht = { exports: {} };
2740
2610
  * @memberof Prism
2741
2611
  * @public
2742
2612
  */
2743
- highlightElement: function(n, d, h) {
2744
- var p = T.util.getLanguage(n), k = T.languages[p];
2745
- T.util.setLanguage(n, p);
2746
- var x = n.parentElement;
2747
- x && x.nodeName.toLowerCase() === "pre" && T.util.setLanguage(x, p);
2748
- var m = n.textContent, u = {
2613
+ highlightElement: function(n, c, h) {
2614
+ var p = A.util.getLanguage(n), y = A.languages[p];
2615
+ A.util.setLanguage(n, p);
2616
+ var w = n.parentElement;
2617
+ w && w.nodeName.toLowerCase() === "pre" && A.util.setLanguage(w, p);
2618
+ var b = n.textContent, u = {
2749
2619
  element: n,
2750
2620
  language: p,
2751
- grammar: k,
2752
- code: m
2621
+ grammar: y,
2622
+ code: b
2753
2623
  };
2754
- function v(g) {
2755
- u.highlightedCode = g, T.hooks.run("before-insert", u), u.element.innerHTML = u.highlightedCode, T.hooks.run("after-highlight", u), T.hooks.run("complete", u), h && h.call(u.element);
2624
+ function f(k) {
2625
+ u.highlightedCode = k, A.hooks.run("before-insert", u), u.element.innerHTML = u.highlightedCode, A.hooks.run("after-highlight", u), A.hooks.run("complete", u), h && h.call(u.element);
2756
2626
  }
2757
- if (T.hooks.run("before-sanity-check", u), x = u.element.parentElement, x && x.nodeName.toLowerCase() === "pre" && !x.hasAttribute("tabindex") && x.setAttribute("tabindex", "0"), !u.code) {
2758
- T.hooks.run("complete", u), h && h.call(u.element);
2627
+ if (A.hooks.run("before-sanity-check", u), w = u.element.parentElement, w && w.nodeName.toLowerCase() === "pre" && !w.hasAttribute("tabindex") && w.setAttribute("tabindex", "0"), !u.code) {
2628
+ A.hooks.run("complete", u), h && h.call(u.element);
2759
2629
  return;
2760
2630
  }
2761
- if (T.hooks.run("before-highlight", u), !u.grammar) {
2762
- v(T.util.encode(u.code));
2631
+ if (A.hooks.run("before-highlight", u), !u.grammar) {
2632
+ f(A.util.encode(u.code));
2763
2633
  return;
2764
2634
  }
2765
- if (d && o.Worker) {
2766
- var O = new Worker(T.filename);
2767
- O.onmessage = function(g) {
2768
- v(g.data);
2769
- }, O.postMessage(JSON.stringify({
2635
+ if (c && o.Worker) {
2636
+ var C = new Worker(A.filename);
2637
+ C.onmessage = function(k) {
2638
+ f(k.data);
2639
+ }, C.postMessage(JSON.stringify({
2770
2640
  language: u.language,
2771
2641
  code: u.code,
2772
2642
  immediateClose: !0
2773
2643
  }));
2774
2644
  } else
2775
- v(T.highlight(u.code, u.grammar, u.language));
2645
+ f(A.highlight(u.code, u.grammar, u.language));
2776
2646
  },
2777
2647
  /**
2778
2648
  * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
@@ -2794,15 +2664,15 @@ var ht = { exports: {} };
2794
2664
  * @example
2795
2665
  * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
2796
2666
  */
2797
- highlight: function(n, d, h) {
2667
+ highlight: function(n, c, h) {
2798
2668
  var p = {
2799
2669
  code: n,
2800
- grammar: d,
2670
+ grammar: c,
2801
2671
  language: h
2802
2672
  };
2803
- if (T.hooks.run("before-tokenize", p), !p.grammar)
2673
+ if (A.hooks.run("before-tokenize", p), !p.grammar)
2804
2674
  throw new Error('The language "' + p.language + '" has no grammar.');
2805
- return p.tokens = T.tokenize(p.code, p.grammar), T.hooks.run("after-tokenize", p), y.stringify(T.util.encode(p.tokens), p.language);
2675
+ return p.tokens = A.tokenize(p.code, p.grammar), A.hooks.run("after-tokenize", p), m.stringify(A.util.encode(p.tokens), p.language);
2806
2676
  },
2807
2677
  /**
2808
2678
  * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
@@ -2828,15 +2698,15 @@ var ht = { exports: {} };
2828
2698
  * }
2829
2699
  * });
2830
2700
  */
2831
- tokenize: function(n, d) {
2832
- var h = d.rest;
2701
+ tokenize: function(n, c) {
2702
+ var h = c.rest;
2833
2703
  if (h) {
2834
2704
  for (var p in h)
2835
- d[p] = h[p];
2836
- delete d.rest;
2705
+ c[p] = h[p];
2706
+ delete c.rest;
2837
2707
  }
2838
- var k = new C();
2839
- return L(k, k.head, n), F(n, k, d, k.head, 0), a(k);
2708
+ var y = new O();
2709
+ return L(y, y.head, n), N(n, y, c, y.head, 0), i(y);
2840
2710
  },
2841
2711
  /**
2842
2712
  * @namespace
@@ -2857,9 +2727,9 @@ var ht = { exports: {} };
2857
2727
  * @param {HookCallback} callback The callback function which is given environment variables.
2858
2728
  * @public
2859
2729
  */
2860
- add: function(n, d) {
2861
- var h = T.hooks.all;
2862
- h[n] = h[n] || [], h[n].push(d);
2730
+ add: function(n, c) {
2731
+ var h = A.hooks.all;
2732
+ h[n] = h[n] || [], h[n].push(c);
2863
2733
  },
2864
2734
  /**
2865
2735
  * Runs a hook invoking all registered callbacks with the given environment variables.
@@ -2870,135 +2740,135 @@ var ht = { exports: {} };
2870
2740
  * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
2871
2741
  * @public
2872
2742
  */
2873
- run: function(n, d) {
2874
- var h = T.hooks.all[n];
2743
+ run: function(n, c) {
2744
+ var h = A.hooks.all[n];
2875
2745
  if (!(!h || !h.length))
2876
- for (var p = 0, k; k = h[p++]; )
2877
- k(d);
2746
+ for (var p = 0, y; y = h[p++]; )
2747
+ y(c);
2878
2748
  }
2879
2749
  },
2880
- Token: y
2750
+ Token: m
2881
2751
  };
2882
- o.Prism = T;
2883
- function y(n, d, h, p) {
2884
- this.type = n, this.content = d, this.alias = h, this.length = (p || "").length | 0;
2752
+ o.Prism = A;
2753
+ function m(n, c, h, p) {
2754
+ this.type = n, this.content = c, this.alias = h, this.length = (p || "").length | 0;
2885
2755
  }
2886
- y.stringify = function n(d, h) {
2887
- if (typeof d == "string")
2888
- return d;
2889
- if (Array.isArray(d)) {
2756
+ m.stringify = function n(c, h) {
2757
+ if (typeof c == "string")
2758
+ return c;
2759
+ if (Array.isArray(c)) {
2890
2760
  var p = "";
2891
- return d.forEach(function(v) {
2892
- p += n(v, h);
2761
+ return c.forEach(function(f) {
2762
+ p += n(f, h);
2893
2763
  }), p;
2894
2764
  }
2895
- var k = {
2896
- type: d.type,
2897
- content: n(d.content, h),
2765
+ var y = {
2766
+ type: c.type,
2767
+ content: n(c.content, h),
2898
2768
  tag: "span",
2899
- classes: ["token", d.type],
2769
+ classes: ["token", c.type],
2900
2770
  attributes: {},
2901
2771
  language: h
2902
- }, x = d.alias;
2903
- x && (Array.isArray(x) ? Array.prototype.push.apply(k.classes, x) : k.classes.push(x)), T.hooks.run("wrap", k);
2904
- var m = "";
2905
- for (var u in k.attributes)
2906
- m += " " + u + '="' + (k.attributes[u] || "").replace(/"/g, "&quot;") + '"';
2907
- return "<" + k.tag + ' class="' + k.classes.join(" ") + '"' + m + ">" + k.content + "</" + k.tag + ">";
2772
+ }, w = c.alias;
2773
+ w && (Array.isArray(w) ? Array.prototype.push.apply(y.classes, w) : y.classes.push(w)), A.hooks.run("wrap", y);
2774
+ var b = "";
2775
+ for (var u in y.attributes)
2776
+ b += " " + u + '="' + (y.attributes[u] || "").replace(/"/g, "&quot;") + '"';
2777
+ return "<" + y.tag + ' class="' + y.classes.join(" ") + '"' + b + ">" + y.content + "</" + y.tag + ">";
2908
2778
  };
2909
- function D(n, d, h, p) {
2910
- n.lastIndex = d;
2911
- var k = n.exec(h);
2912
- if (k && p && k[1]) {
2913
- var x = k[1].length;
2914
- k.index += x, k[0] = k[0].slice(x);
2779
+ function D(n, c, h, p) {
2780
+ n.lastIndex = c;
2781
+ var y = n.exec(h);
2782
+ if (y && p && y[1]) {
2783
+ var w = y[1].length;
2784
+ y.index += w, y[0] = y[0].slice(w);
2915
2785
  }
2916
- return k;
2786
+ return y;
2917
2787
  }
2918
- function F(n, d, h, p, k, x) {
2919
- for (var m in h)
2920
- if (!(!h.hasOwnProperty(m) || !h[m])) {
2921
- var u = h[m];
2788
+ function N(n, c, h, p, y, w) {
2789
+ for (var b in h)
2790
+ if (!(!h.hasOwnProperty(b) || !h[b])) {
2791
+ var u = h[b];
2922
2792
  u = Array.isArray(u) ? u : [u];
2923
- for (var v = 0; v < u.length; ++v) {
2924
- if (x && x.cause == m + "," + v)
2793
+ for (var f = 0; f < u.length; ++f) {
2794
+ if (w && w.cause == b + "," + f)
2925
2795
  return;
2926
- var O = u[v], g = O.inside, _ = !!O.lookbehind, I = !!O.greedy, M = O.alias;
2927
- if (I && !O.pattern.global) {
2928
- var l = O.pattern.toString().match(/[imsuy]*$/)[0];
2929
- O.pattern = RegExp(O.pattern.source, l + "g");
2796
+ var C = u[f], k = C.inside, _ = !!C.lookbehind, I = !!C.greedy, M = C.alias;
2797
+ if (I && !C.pattern.global) {
2798
+ var s = C.pattern.toString().match(/[imsuy]*$/)[0];
2799
+ C.pattern = RegExp(C.pattern.source, s + "g");
2930
2800
  }
2931
- for (var R = O.pattern || O, E = p.next, w = k; E !== d.tail && !(x && w >= x.reach); w += E.value.length, E = E.next) {
2932
- var B = E.value;
2933
- if (d.length > n.length)
2801
+ for (var F = C.pattern || C, x = p.next, v = y; x !== c.tail && !(w && v >= w.reach); v += x.value.length, x = x.next) {
2802
+ var B = x.value;
2803
+ if (c.length > n.length)
2934
2804
  return;
2935
- if (!(B instanceof y)) {
2936
- var W = 1, G;
2805
+ if (!(B instanceof m)) {
2806
+ var V = 1, G;
2937
2807
  if (I) {
2938
- if (G = D(R, w, n, _), !G || G.index >= n.length)
2808
+ if (G = D(F, v, n, _), !G || G.index >= n.length)
2939
2809
  break;
2940
- var U = G.index, Y = G.index + G[0].length, z = w;
2941
- for (z += E.value.length; U >= z; )
2942
- E = E.next, z += E.value.length;
2943
- if (z -= E.value.length, w = z, E.value instanceof y)
2810
+ var H = G.index, Y = G.index + G[0].length, z = v;
2811
+ for (z += x.value.length; H >= z; )
2812
+ x = x.next, z += x.value.length;
2813
+ if (z -= x.value.length, v = z, x.value instanceof m)
2944
2814
  continue;
2945
- for (var P = E; P !== d.tail && (z < Y || typeof P.value == "string"); P = P.next)
2946
- W++, z += P.value.length;
2947
- W--, B = n.slice(w, z), G.index -= w;
2948
- } else if (G = D(R, 0, B, _), !G)
2815
+ for (var P = x; P !== c.tail && (z < Y || typeof P.value == "string"); P = P.next)
2816
+ V++, z += P.value.length;
2817
+ V--, B = n.slice(v, z), G.index -= v;
2818
+ } else if (G = D(F, 0, B, _), !G)
2949
2819
  continue;
2950
- var U = G.index, V = G[0], f = B.slice(0, U), N = B.slice(U + V.length), H = w + B.length;
2951
- x && H > x.reach && (x.reach = H);
2952
- var ae = E.prev;
2953
- f && (ae = L(d, ae, f), w += f.length), j(d, ae, W);
2954
- var vt = new y(m, g ? T.tokenize(V, g) : V, M, V);
2955
- if (E = L(d, ae, vt), N && L(d, E, N), W > 1) {
2956
- var ce = {
2957
- cause: m + "," + v,
2958
- reach: H
2820
+ var H = G.index, W = G[0], g = B.slice(0, H), R = B.slice(H + W.length), U = v + B.length;
2821
+ w && U > w.reach && (w.reach = U);
2822
+ var ie = x.prev;
2823
+ g && (ie = L(c, ie, g), v += g.length), j(c, ie, V);
2824
+ var ft = new m(b, k ? A.tokenize(W, k) : W, M, W);
2825
+ if (x = L(c, ie, ft), R && L(c, x, R), V > 1) {
2826
+ var le = {
2827
+ cause: b + "," + f,
2828
+ reach: U
2959
2829
  };
2960
- F(n, d, h, E.prev, w, ce), x && ce.reach > x.reach && (x.reach = ce.reach);
2830
+ N(n, c, h, x.prev, v, le), w && le.reach > w.reach && (w.reach = le.reach);
2961
2831
  }
2962
2832
  }
2963
2833
  }
2964
2834
  }
2965
2835
  }
2966
2836
  }
2967
- function C() {
2968
- var n = { value: null, prev: null, next: null }, d = { value: null, prev: n, next: null };
2969
- n.next = d, this.head = n, this.tail = d, this.length = 0;
2837
+ function O() {
2838
+ var n = { value: null, prev: null, next: null }, c = { value: null, prev: n, next: null };
2839
+ n.next = c, this.head = n, this.tail = c, this.length = 0;
2970
2840
  }
2971
- function L(n, d, h) {
2972
- var p = d.next, k = { value: h, prev: d, next: p };
2973
- return d.next = k, p.prev = k, n.length++, k;
2841
+ function L(n, c, h) {
2842
+ var p = c.next, y = { value: h, prev: c, next: p };
2843
+ return c.next = y, p.prev = y, n.length++, y;
2974
2844
  }
2975
- function j(n, d, h) {
2976
- for (var p = d.next, k = 0; k < h && p !== n.tail; k++)
2845
+ function j(n, c, h) {
2846
+ for (var p = c.next, y = 0; y < h && p !== n.tail; y++)
2977
2847
  p = p.next;
2978
- d.next = p, p.prev = d, n.length -= k;
2848
+ c.next = p, p.prev = c, n.length -= y;
2979
2849
  }
2980
- function a(n) {
2981
- for (var d = [], h = n.head.next; h !== n.tail; )
2982
- d.push(h.value), h = h.next;
2983
- return d;
2850
+ function i(n) {
2851
+ for (var c = [], h = n.head.next; h !== n.tail; )
2852
+ c.push(h.value), h = h.next;
2853
+ return c;
2984
2854
  }
2985
2855
  if (!o.document)
2986
- return o.addEventListener && (T.disableWorkerMessageHandler || o.addEventListener("message", function(n) {
2987
- var d = JSON.parse(n.data), h = d.language, p = d.code, k = d.immediateClose;
2988
- o.postMessage(T.highlight(p, T.languages[h], h)), k && o.close();
2989
- }, !1)), T;
2990
- var s = T.util.currentScript();
2991
- s && (T.filename = s.src, s.hasAttribute("data-manual") && (T.manual = !0));
2992
- function c() {
2993
- T.manual || T.highlightAll();
2856
+ return o.addEventListener && (A.disableWorkerMessageHandler || o.addEventListener("message", function(n) {
2857
+ var c = JSON.parse(n.data), h = c.language, p = c.code, y = c.immediateClose;
2858
+ o.postMessage(A.highlight(p, A.languages[h], h)), y && o.close();
2859
+ }, !1)), A;
2860
+ var l = A.util.currentScript();
2861
+ l && (A.filename = l.src, l.hasAttribute("data-manual") && (A.manual = !0));
2862
+ function d() {
2863
+ A.manual || A.highlightAll();
2994
2864
  }
2995
- if (!T.manual) {
2996
- var i = document.readyState;
2997
- i === "loading" || i === "interactive" && s && s.defer ? document.addEventListener("DOMContentLoaded", c) : window.requestAnimationFrame ? window.requestAnimationFrame(c) : window.setTimeout(c, 16);
2865
+ if (!A.manual) {
2866
+ var a = document.readyState;
2867
+ a === "loading" || a === "interactive" && l && l.defer ? document.addEventListener("DOMContentLoaded", d) : window.requestAnimationFrame ? window.requestAnimationFrame(d) : window.setTimeout(d, 16);
2998
2868
  }
2999
- return T;
2869
+ return A;
3000
2870
  }(e);
3001
- t.exports && (t.exports = r), typeof ue < "u" && (ue.Prism = r), r.languages.markup = {
2871
+ t.exports && (t.exports = r), typeof Oe < "u" && (Oe.Prism = r), r.languages.markup = {
3002
2872
  comment: {
3003
2873
  pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
3004
2874
  greedy: !0
@@ -3089,32 +2959,32 @@ var ht = { exports: {} };
3089
2959
  * @example
3090
2960
  * addInlined('style', 'css');
3091
2961
  */
3092
- value: function(S, A) {
3093
- var b = {};
3094
- b["language-" + A] = {
2962
+ value: function(S, T) {
2963
+ var E = {};
2964
+ E["language-" + T] = {
3095
2965
  pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
3096
2966
  lookbehind: !0,
3097
- inside: r.languages[A]
3098
- }, b.cdata = /^<!\[CDATA\[|\]\]>$/i;
3099
- var T = {
2967
+ inside: r.languages[T]
2968
+ }, E.cdata = /^<!\[CDATA\[|\]\]>$/i;
2969
+ var A = {
3100
2970
  "included-cdata": {
3101
2971
  pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
3102
- inside: b
2972
+ inside: E
3103
2973
  }
3104
2974
  };
3105
- T["language-" + A] = {
2975
+ A["language-" + T] = {
3106
2976
  pattern: /[\s\S]+/,
3107
- inside: r.languages[A]
2977
+ inside: r.languages[T]
3108
2978
  };
3109
- var y = {};
3110
- y[S] = {
2979
+ var m = {};
2980
+ m[S] = {
3111
2981
  pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
3112
2982
  return S;
3113
2983
  }), "i"),
3114
2984
  lookbehind: !0,
3115
2985
  greedy: !0,
3116
- inside: T
3117
- }, r.languages.insertBefore("markup", "cdata", y);
2986
+ inside: A
2987
+ }, r.languages.insertBefore("markup", "cdata", m);
3118
2988
  }
3119
2989
  }), Object.defineProperty(r.languages.markup.tag, "addAttribute", {
3120
2990
  /**
@@ -3210,8 +3080,8 @@ var ht = { exports: {} };
3210
3080
  },
3211
3081
  punctuation: /[(){};:,]/
3212
3082
  }, o.languages.css.atrule.inside.rest = o.languages.css;
3213
- var A = o.languages.markup;
3214
- A && (A.tag.addInlined("style", "css"), A.tag.addAttribute("style", "css"));
3083
+ var T = o.languages.markup;
3084
+ T && (T.tag.addInlined("style", "css"), T.tag.addAttribute("style", "css"));
3215
3085
  }(r), r.languages.clike = {
3216
3086
  comment: [
3217
3087
  {
@@ -3376,9 +3246,9 @@ var ht = { exports: {} };
3376
3246
  if (typeof r > "u" || typeof document > "u")
3377
3247
  return;
3378
3248
  Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
3379
- var o = "Loading…", S = function(s, c) {
3380
- return "✖ Error " + s + " while fetching file: " + c;
3381
- }, A = "✖ Error: File does not exist or is empty", b = {
3249
+ var o = "Loading…", S = function(l, d) {
3250
+ return "✖ Error " + l + " while fetching file: " + d;
3251
+ }, T = "✖ Error: File does not exist or is empty", E = {
3382
3252
  js: "javascript",
3383
3253
  py: "python",
3384
3254
  rb: "ruby",
@@ -3388,52 +3258,52 @@ var ht = { exports: {} };
3388
3258
  bat: "batch",
3389
3259
  h: "c",
3390
3260
  tex: "latex"
3391
- }, T = "data-src-status", y = "loading", D = "loaded", F = "failed", C = "pre[data-src]:not([" + T + '="' + D + '"]):not([' + T + '="' + y + '"])';
3392
- function L(s, c, i) {
3261
+ }, A = "data-src-status", m = "loading", D = "loaded", N = "failed", O = "pre[data-src]:not([" + A + '="' + D + '"]):not([' + A + '="' + m + '"])';
3262
+ function L(l, d, a) {
3393
3263
  var n = new XMLHttpRequest();
3394
- n.open("GET", s, !0), n.onreadystatechange = function() {
3395
- n.readyState == 4 && (n.status < 400 && n.responseText ? c(n.responseText) : n.status >= 400 ? i(S(n.status, n.statusText)) : i(A));
3264
+ n.open("GET", l, !0), n.onreadystatechange = function() {
3265
+ n.readyState == 4 && (n.status < 400 && n.responseText ? d(n.responseText) : n.status >= 400 ? a(S(n.status, n.statusText)) : a(T));
3396
3266
  }, n.send(null);
3397
3267
  }
3398
- function j(s) {
3399
- var c = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(s || "");
3400
- if (c) {
3401
- var i = Number(c[1]), n = c[2], d = c[3];
3402
- return n ? d ? [i, Number(d)] : [i, void 0] : [i, i];
3268
+ function j(l) {
3269
+ var d = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(l || "");
3270
+ if (d) {
3271
+ var a = Number(d[1]), n = d[2], c = d[3];
3272
+ return n ? c ? [a, Number(c)] : [a, void 0] : [a, a];
3403
3273
  }
3404
3274
  }
3405
- r.hooks.add("before-highlightall", function(s) {
3406
- s.selector += ", " + C;
3407
- }), r.hooks.add("before-sanity-check", function(s) {
3408
- var c = (
3275
+ r.hooks.add("before-highlightall", function(l) {
3276
+ l.selector += ", " + O;
3277
+ }), r.hooks.add("before-sanity-check", function(l) {
3278
+ var d = (
3409
3279
  /** @type {HTMLPreElement} */
3410
- s.element
3280
+ l.element
3411
3281
  );
3412
- if (c.matches(C)) {
3413
- s.code = "", c.setAttribute(T, y);
3414
- var i = c.appendChild(document.createElement("CODE"));
3415
- i.textContent = o;
3416
- var n = c.getAttribute("data-src"), d = s.language;
3417
- if (d === "none") {
3282
+ if (d.matches(O)) {
3283
+ l.code = "", d.setAttribute(A, m);
3284
+ var a = d.appendChild(document.createElement("CODE"));
3285
+ a.textContent = o;
3286
+ var n = d.getAttribute("data-src"), c = l.language;
3287
+ if (c === "none") {
3418
3288
  var h = (/\.(\w+)$/.exec(n) || [, "none"])[1];
3419
- d = b[h] || h;
3289
+ c = E[h] || h;
3420
3290
  }
3421
- r.util.setLanguage(i, d), r.util.setLanguage(c, d);
3291
+ r.util.setLanguage(a, c), r.util.setLanguage(d, c);
3422
3292
  var p = r.plugins.autoloader;
3423
- p && p.loadLanguages(d), L(
3293
+ p && p.loadLanguages(c), L(
3424
3294
  n,
3425
- function(k) {
3426
- c.setAttribute(T, D);
3427
- var x = j(c.getAttribute("data-range"));
3428
- if (x) {
3429
- var m = k.split(/\r\n?|\n/g), u = x[0], v = x[1] == null ? m.length : x[1];
3430
- u < 0 && (u += m.length), u = Math.max(0, Math.min(u - 1, m.length)), v < 0 && (v += m.length), v = Math.max(0, Math.min(v, m.length)), k = m.slice(u, v).join(`
3431
- `), c.hasAttribute("data-start") || c.setAttribute("data-start", String(u + 1));
3295
+ function(y) {
3296
+ d.setAttribute(A, D);
3297
+ var w = j(d.getAttribute("data-range"));
3298
+ if (w) {
3299
+ var b = y.split(/\r\n?|\n/g), u = w[0], f = w[1] == null ? b.length : w[1];
3300
+ u < 0 && (u += b.length), u = Math.max(0, Math.min(u - 1, b.length)), f < 0 && (f += b.length), f = Math.max(0, Math.min(f, b.length)), y = b.slice(u, f).join(`
3301
+ `), d.hasAttribute("data-start") || d.setAttribute("data-start", String(u + 1));
3432
3302
  }
3433
- i.textContent = k, r.highlightElement(i);
3303
+ a.textContent = y, r.highlightElement(a);
3434
3304
  },
3435
- function(k) {
3436
- c.setAttribute(T, F), i.textContent = k;
3305
+ function(y) {
3306
+ d.setAttribute(A, N), a.textContent = y;
3437
3307
  }
3438
3308
  );
3439
3309
  }
@@ -3445,19 +3315,19 @@ var ht = { exports: {} };
3445
3315
  *
3446
3316
  * @param {ParentNode} [container=document]
3447
3317
  */
3448
- highlight: function(c) {
3449
- for (var i = (c || document).querySelectorAll(C), n = 0, d; d = i[n++]; )
3450
- r.highlightElement(d);
3318
+ highlight: function(d) {
3319
+ for (var a = (d || document).querySelectorAll(O), n = 0, c; c = a[n++]; )
3320
+ r.highlightElement(c);
3451
3321
  }
3452
3322
  };
3453
- var a = !1;
3323
+ var i = !1;
3454
3324
  r.fileHighlight = function() {
3455
- a || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), a = !0), r.plugins.fileHighlight.highlight.apply(this, arguments);
3325
+ i || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), i = !0), r.plugins.fileHighlight.highlight.apply(this, arguments);
3456
3326
  };
3457
3327
  }();
3458
- })(ht);
3459
- var wr = ht.exports;
3460
- const Oe = /* @__PURE__ */ ze(wr);
3328
+ })(ut);
3329
+ var mr = ut.exports;
3330
+ const Ce = /* @__PURE__ */ fr(mr);
3461
3331
  Prism.languages.markup = {
3462
3332
  comment: {
3463
3333
  pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
@@ -3570,15 +3440,15 @@ Object.defineProperty(Prism.languages.markup.tag, "addInlined", {
3570
3440
  pattern: /[\s\S]+/,
3571
3441
  inside: Prism.languages[r]
3572
3442
  };
3573
- var A = {};
3574
- A[e] = {
3443
+ var T = {};
3444
+ T[e] = {
3575
3445
  pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
3576
3446
  return e;
3577
3447
  }), "i"),
3578
3448
  lookbehind: !0,
3579
3449
  greedy: !0,
3580
3450
  inside: S
3581
- }, Prism.languages.insertBefore("markup", "cdata", A);
3451
+ }, Prism.languages.insertBefore("markup", "cdata", T);
3582
3452
  }
3583
3453
  });
3584
3454
  Object.defineProperty(Prism.languages.markup.tag, "addAttribute", {
@@ -4063,8 +3933,8 @@ Prism.languages.webmanifest = Prism.languages.json;
4063
3933
  "operator",
4064
3934
  "punctuation",
4065
3935
  "number"
4066
- ], A = o.variable[1].inside, b = 0; b < S.length; b++)
4067
- A[S[b]] = t.languages.bash[S[b]];
3936
+ ], T = o.variable[1].inside, E = 0; E < S.length; E++)
3937
+ T[S[E]] = t.languages.bash[S[E]];
4068
3938
  t.languages.sh = t.languages.bash, t.languages.shell = t.languages.bash;
4069
3939
  })(Prism);
4070
3940
  Prism.languages.sql = {
@@ -4103,15 +3973,15 @@ Prism.languages.sql = {
4103
3973
  (function(t) {
4104
3974
  var e = /[*&][^\s[\]{},]+/, r = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, o = "(?:" + r.source + "(?:[ ]+" + e.source + ")?|" + e.source + "(?:[ ]+" + r.source + ")?)", S = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
4105
3975
  return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
4106
- }), A = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
4107
- function b(T, y) {
4108
- y = (y || "").replace(/m/g, "") + "m";
3976
+ }), T = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
3977
+ function E(A, m) {
3978
+ m = (m || "").replace(/m/g, "") + "m";
4109
3979
  var D = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
4110
3980
  return o;
4111
3981
  }).replace(/<<value>>/g, function() {
4112
- return T;
3982
+ return A;
4113
3983
  });
4114
- return RegExp(D, y);
3984
+ return RegExp(D, m);
4115
3985
  }
4116
3986
  t.languages.yaml = {
4117
3987
  scalar: {
@@ -4126,7 +3996,7 @@ Prism.languages.sql = {
4126
3996
  pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
4127
3997
  return o;
4128
3998
  }).replace(/<<key>>/g, function() {
4129
- return "(?:" + S + "|" + A + ")";
3999
+ return "(?:" + S + "|" + T + ")";
4130
4000
  })),
4131
4001
  lookbehind: !0,
4132
4002
  greedy: !0,
@@ -4138,27 +4008,27 @@ Prism.languages.sql = {
4138
4008
  alias: "important"
4139
4009
  },
4140
4010
  datetime: {
4141
- pattern: b(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),
4011
+ pattern: E(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),
4142
4012
  lookbehind: !0,
4143
4013
  alias: "number"
4144
4014
  },
4145
4015
  boolean: {
4146
- pattern: b(/false|true/.source, "i"),
4016
+ pattern: E(/false|true/.source, "i"),
4147
4017
  lookbehind: !0,
4148
4018
  alias: "important"
4149
4019
  },
4150
4020
  null: {
4151
- pattern: b(/null|~/.source, "i"),
4021
+ pattern: E(/null|~/.source, "i"),
4152
4022
  lookbehind: !0,
4153
4023
  alias: "important"
4154
4024
  },
4155
4025
  string: {
4156
- pattern: b(A),
4026
+ pattern: E(T),
4157
4027
  lookbehind: !0,
4158
4028
  greedy: !0
4159
4029
  },
4160
4030
  number: {
4161
- pattern: b(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"),
4031
+ pattern: E(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"),
4162
4032
  lookbehind: !0
4163
4033
  },
4164
4034
  tag: r,
@@ -4244,14 +4114,14 @@ Prism.languages.insertBefore("c", "function", {
4244
4114
  delete Prism.languages.c.boolean;
4245
4115
  (function(t) {
4246
4116
  var e = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
4247
- function r(F) {
4248
- return F = F.replace(/<inner>/g, function() {
4117
+ function r(N) {
4118
+ return N = N.replace(/<inner>/g, function() {
4249
4119
  return e;
4250
- }), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + F + ")");
4120
+ }), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + N + ")");
4251
4121
  }
4252
4122
  var o = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, S = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
4253
4123
  return o;
4254
- }), A = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;
4124
+ }), T = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;
4255
4125
  t.languages.markdown = t.languages.extend("markup", {}), t.languages.insertBefore("markdown", "prolog", {
4256
4126
  "front-matter-block": {
4257
4127
  pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,
@@ -4272,10 +4142,10 @@ delete Prism.languages.c.boolean;
4272
4142
  alias: "punctuation"
4273
4143
  },
4274
4144
  table: {
4275
- pattern: RegExp("^" + S + A + "(?:" + S + ")*", "m"),
4145
+ pattern: RegExp("^" + S + T + "(?:" + S + ")*", "m"),
4276
4146
  inside: {
4277
4147
  "table-data-rows": {
4278
- pattern: RegExp("^(" + S + A + ")(?:" + S + ")*$"),
4148
+ pattern: RegExp("^(" + S + T + ")(?:" + S + ")*$"),
4279
4149
  lookbehind: !0,
4280
4150
  inside: {
4281
4151
  "table-data": {
@@ -4286,7 +4156,7 @@ delete Prism.languages.c.boolean;
4286
4156
  }
4287
4157
  },
4288
4158
  "table-line": {
4289
- pattern: RegExp("^(" + S + ")" + A + "$"),
4159
+ pattern: RegExp("^(" + S + ")" + T + "$"),
4290
4160
  lookbehind: !0,
4291
4161
  inside: {
4292
4162
  punctuation: /\||:?-{3,}:?/
@@ -4476,69 +4346,69 @@ delete Prism.languages.c.boolean;
4476
4346
  }
4477
4347
  }
4478
4348
  }
4479
- }), ["url", "bold", "italic", "strike"].forEach(function(F) {
4480
- ["url", "bold", "italic", "strike", "code-snippet"].forEach(function(C) {
4481
- F !== C && (t.languages.markdown[F].inside.content.inside[C] = t.languages.markdown[C]);
4349
+ }), ["url", "bold", "italic", "strike"].forEach(function(N) {
4350
+ ["url", "bold", "italic", "strike", "code-snippet"].forEach(function(O) {
4351
+ N !== O && (t.languages.markdown[N].inside.content.inside[O] = t.languages.markdown[O]);
4482
4352
  });
4483
- }), t.hooks.add("after-tokenize", function(F) {
4484
- if (F.language !== "markdown" && F.language !== "md")
4353
+ }), t.hooks.add("after-tokenize", function(N) {
4354
+ if (N.language !== "markdown" && N.language !== "md")
4485
4355
  return;
4486
- function C(L) {
4356
+ function O(L) {
4487
4357
  if (!(!L || typeof L == "string"))
4488
- for (var j = 0, a = L.length; j < a; j++) {
4489
- var s = L[j];
4490
- if (s.type !== "code") {
4491
- C(s.content);
4358
+ for (var j = 0, i = L.length; j < i; j++) {
4359
+ var l = L[j];
4360
+ if (l.type !== "code") {
4361
+ O(l.content);
4492
4362
  continue;
4493
4363
  }
4494
- var c = s.content[1], i = s.content[3];
4495
- if (c && i && c.type === "code-language" && i.type === "code-block" && typeof c.content == "string") {
4496
- var n = c.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
4364
+ var d = l.content[1], a = l.content[3];
4365
+ if (d && a && d.type === "code-language" && a.type === "code-block" && typeof d.content == "string") {
4366
+ var n = d.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
4497
4367
  n = (/[a-z][\w-]*/i.exec(n) || [""])[0].toLowerCase();
4498
- var d = "language-" + n;
4499
- i.alias ? typeof i.alias == "string" ? i.alias = [i.alias, d] : i.alias.push(d) : i.alias = [d];
4368
+ var c = "language-" + n;
4369
+ a.alias ? typeof a.alias == "string" ? a.alias = [a.alias, c] : a.alias.push(c) : a.alias = [c];
4500
4370
  }
4501
4371
  }
4502
4372
  }
4503
- C(F.tokens);
4504
- }), t.hooks.add("wrap", function(F) {
4505
- if (F.type === "code-block") {
4506
- for (var C = "", L = 0, j = F.classes.length; L < j; L++) {
4507
- var a = F.classes[L], s = /language-(.+)/.exec(a);
4508
- if (s) {
4509
- C = s[1];
4373
+ O(N.tokens);
4374
+ }), t.hooks.add("wrap", function(N) {
4375
+ if (N.type === "code-block") {
4376
+ for (var O = "", L = 0, j = N.classes.length; L < j; L++) {
4377
+ var i = N.classes[L], l = /language-(.+)/.exec(i);
4378
+ if (l) {
4379
+ O = l[1];
4510
4380
  break;
4511
4381
  }
4512
4382
  }
4513
- var c = t.languages[C];
4514
- if (c)
4515
- F.content = t.highlight(D(F.content), c, C);
4516
- else if (C && C !== "none" && t.plugins.autoloader) {
4517
- var i = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 1e16);
4518
- F.attributes.id = i, t.plugins.autoloader.loadLanguages(C, function() {
4519
- var n = document.getElementById(i);
4520
- n && (n.innerHTML = t.highlight(n.textContent, t.languages[C], C));
4383
+ var d = t.languages[O];
4384
+ if (d)
4385
+ N.content = t.highlight(D(N.content), d, O);
4386
+ else if (O && O !== "none" && t.plugins.autoloader) {
4387
+ var a = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 1e16);
4388
+ N.attributes.id = a, t.plugins.autoloader.loadLanguages(O, function() {
4389
+ var n = document.getElementById(a);
4390
+ n && (n.innerHTML = t.highlight(n.textContent, t.languages[O], O));
4521
4391
  });
4522
4392
  }
4523
4393
  }
4524
4394
  });
4525
- var b = RegExp(t.languages.markup.tag.pattern.source, "gi"), T = {
4395
+ var E = RegExp(t.languages.markup.tag.pattern.source, "gi"), A = {
4526
4396
  amp: "&",
4527
4397
  lt: "<",
4528
4398
  gt: ">",
4529
4399
  quot: '"'
4530
- }, y = String.fromCodePoint || String.fromCharCode;
4531
- function D(F) {
4532
- var C = F.replace(b, "");
4533
- return C = C.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(L, j) {
4400
+ }, m = String.fromCodePoint || String.fromCharCode;
4401
+ function D(N) {
4402
+ var O = N.replace(E, "");
4403
+ return O = O.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(L, j) {
4534
4404
  if (j = j.toLowerCase(), j[0] === "#") {
4535
- var a;
4536
- return j[1] === "x" ? a = parseInt(j.slice(2), 16) : a = Number(j.slice(1)), y(a);
4405
+ var i;
4406
+ return j[1] === "x" ? i = parseInt(j.slice(2), 16) : i = Number(j.slice(1)), m(i);
4537
4407
  } else {
4538
- var s = T[j];
4539
- return s || L;
4408
+ var l = A[j];
4409
+ return l || L;
4540
4410
  }
4541
- }), C;
4411
+ }), O;
4542
4412
  }
4543
4413
  t.languages.md = t.languages.markdown;
4544
4414
  })(Prism);
@@ -4908,26 +4778,26 @@ delete Prism.languages.go["class-name"];
4908
4778
  })(Prism);
4909
4779
  (function(t) {
4910
4780
  var e = t.util.clone(t.languages.javascript), r = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, o = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, S = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
4911
- function A(y, D) {
4912
- return y = y.replace(/<S>/g, function() {
4781
+ function T(m, D) {
4782
+ return m = m.replace(/<S>/g, function() {
4913
4783
  return r;
4914
4784
  }).replace(/<BRACES>/g, function() {
4915
4785
  return o;
4916
4786
  }).replace(/<SPREAD>/g, function() {
4917
4787
  return S;
4918
- }), RegExp(y, D);
4788
+ }), RegExp(m, D);
4919
4789
  }
4920
- S = A(S).source, t.languages.jsx = t.languages.extend("markup", e), t.languages.jsx.tag.pattern = A(
4790
+ S = T(S).source, t.languages.jsx = t.languages.extend("markup", e), t.languages.jsx.tag.pattern = T(
4921
4791
  /<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source
4922
4792
  ), t.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, t.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, t.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, t.languages.jsx.tag.inside.comment = e.comment, t.languages.insertBefore("inside", "attr-name", {
4923
4793
  spread: {
4924
- pattern: A(/<SPREAD>/.source),
4794
+ pattern: T(/<SPREAD>/.source),
4925
4795
  inside: t.languages.jsx
4926
4796
  }
4927
4797
  }, t.languages.jsx.tag), t.languages.insertBefore("inside", "special-attr", {
4928
4798
  script: {
4929
4799
  // Allow for two levels of nesting
4930
- pattern: A(/=<BRACES>/.source),
4800
+ pattern: T(/=<BRACES>/.source),
4931
4801
  alias: "language-javascript",
4932
4802
  inside: {
4933
4803
  "script-punctuation": {
@@ -4938,23 +4808,23 @@ delete Prism.languages.go["class-name"];
4938
4808
  }
4939
4809
  }
4940
4810
  }, t.languages.jsx.tag);
4941
- var b = function(y) {
4942
- return y ? typeof y == "string" ? y : typeof y.content == "string" ? y.content : y.content.map(b).join("") : "";
4943
- }, T = function(y) {
4944
- for (var D = [], F = 0; F < y.length; F++) {
4945
- var C = y[F], L = !1;
4946
- if (typeof C != "string" && (C.type === "tag" && C.content[0] && C.content[0].type === "tag" ? C.content[0].content[0].content === "</" ? D.length > 0 && D[D.length - 1].tagName === b(C.content[0].content[1]) && D.pop() : C.content[C.content.length - 1].content === "/>" || D.push({
4947
- tagName: b(C.content[0].content[1]),
4811
+ var E = function(m) {
4812
+ return m ? typeof m == "string" ? m : typeof m.content == "string" ? m.content : m.content.map(E).join("") : "";
4813
+ }, A = function(m) {
4814
+ for (var D = [], N = 0; N < m.length; N++) {
4815
+ var O = m[N], L = !1;
4816
+ if (typeof O != "string" && (O.type === "tag" && O.content[0] && O.content[0].type === "tag" ? O.content[0].content[0].content === "</" ? D.length > 0 && D[D.length - 1].tagName === E(O.content[0].content[1]) && D.pop() : O.content[O.content.length - 1].content === "/>" || D.push({
4817
+ tagName: E(O.content[0].content[1]),
4948
4818
  openedBraces: 0
4949
- }) : D.length > 0 && C.type === "punctuation" && C.content === "{" ? D[D.length - 1].openedBraces++ : D.length > 0 && D[D.length - 1].openedBraces > 0 && C.type === "punctuation" && C.content === "}" ? D[D.length - 1].openedBraces-- : L = !0), (L || typeof C == "string") && D.length > 0 && D[D.length - 1].openedBraces === 0) {
4950
- var j = b(C);
4951
- F < y.length - 1 && (typeof y[F + 1] == "string" || y[F + 1].type === "plain-text") && (j += b(y[F + 1]), y.splice(F + 1, 1)), F > 0 && (typeof y[F - 1] == "string" || y[F - 1].type === "plain-text") && (j = b(y[F - 1]) + j, y.splice(F - 1, 1), F--), y[F] = new t.Token("plain-text", j, null, j);
4819
+ }) : D.length > 0 && O.type === "punctuation" && O.content === "{" ? D[D.length - 1].openedBraces++ : D.length > 0 && D[D.length - 1].openedBraces > 0 && O.type === "punctuation" && O.content === "}" ? D[D.length - 1].openedBraces-- : L = !0), (L || typeof O == "string") && D.length > 0 && D[D.length - 1].openedBraces === 0) {
4820
+ var j = E(O);
4821
+ N < m.length - 1 && (typeof m[N + 1] == "string" || m[N + 1].type === "plain-text") && (j += E(m[N + 1]), m.splice(N + 1, 1)), N > 0 && (typeof m[N - 1] == "string" || m[N - 1].type === "plain-text") && (j = E(m[N - 1]) + j, m.splice(N - 1, 1), N--), m[N] = new t.Token("plain-text", j, null, j);
4952
4822
  }
4953
- C.content && typeof C.content != "string" && T(C.content);
4823
+ O.content && typeof O.content != "string" && A(O.content);
4954
4824
  }
4955
4825
  };
4956
- t.hooks.add("after-tokenize", function(y) {
4957
- y.language !== "jsx" && y.language !== "tsx" || T(y.tokens);
4826
+ t.hooks.add("after-tokenize", function(m) {
4827
+ m.language !== "jsx" && m.language !== "tsx" || A(m.tokens);
4958
4828
  });
4959
4829
  })(Prism);
4960
4830
  (function(t) {
@@ -5048,108 +4918,108 @@ delete Prism.languages.go["class-name"];
5048
4918
  var r = t.languages.tsx.tag;
5049
4919
  r.pattern = RegExp(/(^|[^\w$]|(?=<\/))/.source + "(?:" + r.pattern.source + ")", r.pattern.flags), r.lookbehind = !0;
5050
4920
  })(Prism);
5051
- const xr = ".code-block{background:var(--bg-secondary, #fde8d1);border-radius:12px;overflow:hidden;box-shadow:0 8px 30px #0000001a;border:1px solid var(--border-color, #fed7aa)}.code-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;background:var(--bg-primary, #fef2e5);border-bottom:1px solid var(--border-color, #fed7aa)}.code-title{color:var(--text-primary, #2c3e50);font-weight:600;font-size:.9rem}.code-actions{display:flex;gap:.75rem}.btn-copy,.btn-try{padding:.5rem 1rem;border-radius:6px;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .2s ease;border:none;font-family:inherit}.btn-copy{background:var(--border-color, #fed7aa);color:var(--text-primary, #2c3e50)}.btn-copy:hover{background:var(--text-secondary, #7f8c8d);color:var(--bg-primary, #fef2e5)}.btn-copy.copied{background:#10b981;color:#fff}.btn-try{background:linear-gradient(135deg,#ea580c,#f97316);color:#fff}.btn-try:hover{transform:translateY(-2px);box-shadow:0 4px 15px #ea580c4d}.code-content{padding:2rem;margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.9rem;line-height:1.6;overflow-x:auto;position:relative}.code-segment{margin:0;padding:0;background:transparent}.code-segment:not(:last-child){margin-bottom:1.5rem}.code-content code{display:block;white-space:pre;word-wrap:normal;word-break:normal;tab-size:4;-moz-tab-size:4;-o-tab-size:4}.code-content code[class*=language-]{background:transparent}.code-block.light{background:var(--bg-secondary, #fde8d1);border-color:var(--border-color, #fed7aa)}.code-block.light .code-header{background:var(--bg-primary, #fef2e5);border-color:var(--border-color, #fed7aa)}.code-block.light .code-title{color:var(--text-primary, #2c3e50)}.code-block.light .btn-copy{background:var(--border-color, #fed7aa);color:var(--text-primary, #2c3e50)}.code-block.light .btn-copy:hover{background:var(--text-secondary, #7f8c8d);color:var(--bg-primary, #fef2e5)}.code-block.light .code-content{background:var(--bg-primary, #fef2e5);color:var(--text-primary, #2c3e50)}.code-block.light .code-content code[class*=language-]{color:#1a1a1a!important}.code-block.light .code-content .token.comment,.code-block.light .code-content .token.prolog,.code-block.light .code-content .token.doctype,.code-block.light .code-content .token.cdata{color:#6b5b47!important;font-style:italic}.code-block.light .code-content .token.punctuation{color:#1a1a1a!important}.code-block.light .code-content .token.property,.code-block.light .code-content .token.tag,.code-block.light .code-content .token.boolean,.code-block.light .code-content .token.number,.code-block.light .code-content .token.constant,.code-block.light .code-content .token.symbol,.code-block.light .code-content .token.deleted{color:#9f1239!important}.code-block.light .code-content .token.selector,.code-block.light .code-content .token.attr-name,.code-block.light .code-content .token.string,.code-block.light .code-content .token.char,.code-block.light .code-content .token.builtin,.code-block.light .code-content .token.inserted{color:#166534!important}.code-block.light .code-content .token.operator,.code-block.light .code-content .token.entity,.code-block.light .code-content .token.url,.code-block.light .code-content .language-css .token.string,.code-block.light .code-content .style .token.string{color:#1a1a1a!important}.code-block.light .code-content .token.atrule,.code-block.light .code-content .token.attr-value,.code-block.light .code-content .token.keyword{color:#6d28d9!important;font-weight:600}.code-block.light .code-content .token.function,.code-block.light .code-content .token.class-name{color:#0c4a6e!important}.code-block.light .code-content .token.regex,.code-block.light .code-content .token.important,.code-block.light .code-content .token.variable{color:#9a3412!important}.code-block.dark{background:#1e1e1e;border-color:#374151}.code-block.dark .code-header{background:#2d2d2d;border-color:#374151}.code-block.dark .code-title{color:#e5e7eb}.code-block.dark .btn-copy{background:#374151;color:#e5e7eb}.code-block.dark .btn-copy:hover{background:#4b5563;color:#f3f4f6}.code-block.dark .code-content{background:#2d2d2d;color:#f8f8f2}.code-block.dark .code-content code[class*=language-]{color:#f8f8f2!important}.code-block.dark .code-content .token.comment,.code-block.dark .code-content .token.prolog,.code-block.dark .code-content .token.doctype,.code-block.dark .code-content .token.cdata{color:#75715e!important;font-style:italic}.code-block.dark .code-content .token.punctuation{color:#f8f8f2!important}.code-block.dark .code-content .token.property,.code-block.dark .code-content .token.tag,.code-block.dark .code-content .token.boolean,.code-block.dark .code-content .token.number,.code-block.dark .code-content .token.constant,.code-block.dark .code-content .token.symbol,.code-block.dark .code-content .token.deleted{color:#f92672!important}.code-block.dark .code-content .token.selector,.code-block.dark .code-content .token.attr-name,.code-block.dark .code-content .token.string,.code-block.dark .code-content .token.char,.code-block.dark .code-content .token.builtin,.code-block.dark .code-content .token.inserted{color:#e6db74!important}.code-block.dark .code-content .token.operator,.code-block.dark .code-content .token.entity,.code-block.dark .code-content .token.url,.code-block.dark .code-content .language-css .token.string,.code-block.dark .code-content .style .token.string{color:#f8f8f2!important}.code-block.dark .code-content .token.atrule,.code-block.dark .code-content .token.attr-value,.code-block.dark .code-content .token.keyword{color:#66d9ef!important;font-weight:500}.code-block.dark .code-content .token.function,.code-block.dark .code-content .token.class-name{color:#a6e22e!important}.code-block.dark .code-content .token.regex,.code-block.dark .code-content .token.important,.code-block.dark .code-content .token.variable{color:#fd971f!important}.code-content .token.namespace{opacity:.7}.code-content .token.important,.code-content .token.bold{font-weight:700}.code-content .token.italic{font-style:italic}@media (max-width: 768px){.code-header{flex-direction:column;gap:1rem;align-items:flex-start}.code-actions{width:100%;justify-content:flex-end}.code-content{padding:1.5rem;font-size:.85rem}}";
5052
- var gt;
5053
- let ft, bt;
4921
+ const vr = ".code-block{background:var(--bg-secondary, #fde8d1);border-radius:12px;overflow:hidden;box-shadow:0 8px 30px #0000001a;border:1px solid var(--border-color, #fed7aa)}.code-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;background:var(--bg-primary, #fef2e5);border-bottom:1px solid var(--border-color, #fed7aa)}.code-title{color:var(--text-primary, #2c3e50);font-weight:600;font-size:.9rem}.code-actions{display:flex;gap:.75rem}.btn-copy,.btn-try{padding:.5rem 1rem;border-radius:6px;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .2s ease;border:none;font-family:inherit}.btn-copy{background:var(--border-color, #fed7aa);color:var(--text-primary, #2c3e50)}.btn-copy:hover{background:var(--text-secondary, #7f8c8d);color:var(--bg-primary, #fef2e5)}.btn-copy.copied{background:#10b981;color:#fff}.btn-try{background:linear-gradient(135deg,#ea580c,#f97316);color:#fff}.btn-try:hover{transform:translateY(-2px);box-shadow:0 4px 15px #ea580c4d}.code-content{padding:2rem;margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.9rem;line-height:1.6;overflow-x:auto;position:relative}.code-segment{margin:0;padding:0;background:transparent}.code-segment:not(:last-child){margin-bottom:1.5rem}.code-content code{display:block;white-space:pre;word-wrap:normal;word-break:normal;tab-size:4;-moz-tab-size:4;-o-tab-size:4}.code-content code[class*=language-]{background:transparent}.code-block.light{background:var(--bg-secondary, #fde8d1);border-color:var(--border-color, #fed7aa)}.code-block.light .code-header{background:var(--bg-primary, #fef2e5);border-color:var(--border-color, #fed7aa)}.code-block.light .code-title{color:var(--text-primary, #2c3e50)}.code-block.light .btn-copy{background:var(--border-color, #fed7aa);color:var(--text-primary, #2c3e50)}.code-block.light .btn-copy:hover{background:var(--text-secondary, #7f8c8d);color:var(--bg-primary, #fef2e5)}.code-block.light .code-content{background:var(--bg-primary, #fef2e5);color:var(--text-primary, #2c3e50)}.code-block.light .code-content code[class*=language-]{color:#1a1a1a!important}.code-block.light .code-content .token.comment,.code-block.light .code-content .token.prolog,.code-block.light .code-content .token.doctype,.code-block.light .code-content .token.cdata{color:#6b5b47!important;font-style:italic}.code-block.light .code-content .token.punctuation{color:#1a1a1a!important}.code-block.light .code-content .token.property,.code-block.light .code-content .token.tag,.code-block.light .code-content .token.boolean,.code-block.light .code-content .token.number,.code-block.light .code-content .token.constant,.code-block.light .code-content .token.symbol,.code-block.light .code-content .token.deleted{color:#9f1239!important}.code-block.light .code-content .token.selector,.code-block.light .code-content .token.attr-name,.code-block.light .code-content .token.string,.code-block.light .code-content .token.char,.code-block.light .code-content .token.builtin,.code-block.light .code-content .token.inserted{color:#166534!important}.code-block.light .code-content .token.operator,.code-block.light .code-content .token.entity,.code-block.light .code-content .token.url,.code-block.light .code-content .language-css .token.string,.code-block.light .code-content .style .token.string{color:#1a1a1a!important}.code-block.light .code-content .token.atrule,.code-block.light .code-content .token.attr-value,.code-block.light .code-content .token.keyword{color:#6d28d9!important;font-weight:600}.code-block.light .code-content .token.function,.code-block.light .code-content .token.class-name{color:#0c4a6e!important}.code-block.light .code-content .token.regex,.code-block.light .code-content .token.important,.code-block.light .code-content .token.variable{color:#9a3412!important}.code-block.dark{background:#1e1e1e;border-color:#374151}.code-block.dark .code-header{background:#2d2d2d;border-color:#374151}.code-block.dark .code-title{color:#e5e7eb}.code-block.dark .btn-copy{background:#374151;color:#e5e7eb}.code-block.dark .btn-copy:hover{background:#4b5563;color:#f3f4f6}.code-block.dark .code-content{background:#2d2d2d;color:#f8f8f2}.code-block.dark .code-content code[class*=language-]{color:#f8f8f2!important}.code-block.dark .code-content .token.comment,.code-block.dark .code-content .token.prolog,.code-block.dark .code-content .token.doctype,.code-block.dark .code-content .token.cdata{color:#75715e!important;font-style:italic}.code-block.dark .code-content .token.punctuation{color:#f8f8f2!important}.code-block.dark .code-content .token.property,.code-block.dark .code-content .token.tag,.code-block.dark .code-content .token.boolean,.code-block.dark .code-content .token.number,.code-block.dark .code-content .token.constant,.code-block.dark .code-content .token.symbol,.code-block.dark .code-content .token.deleted{color:#f92672!important}.code-block.dark .code-content .token.selector,.code-block.dark .code-content .token.attr-name,.code-block.dark .code-content .token.string,.code-block.dark .code-content .token.char,.code-block.dark .code-content .token.builtin,.code-block.dark .code-content .token.inserted{color:#e6db74!important}.code-block.dark .code-content .token.operator,.code-block.dark .code-content .token.entity,.code-block.dark .code-content .token.url,.code-block.dark .code-content .language-css .token.string,.code-block.dark .code-content .style .token.string{color:#f8f8f2!important}.code-block.dark .code-content .token.atrule,.code-block.dark .code-content .token.attr-value,.code-block.dark .code-content .token.keyword{color:#66d9ef!important;font-weight:500}.code-block.dark .code-content .token.function,.code-block.dark .code-content .token.class-name{color:#a6e22e!important}.code-block.dark .code-content .token.regex,.code-block.dark .code-content .token.important,.code-block.dark .code-content .token.variable{color:#fd971f!important}.code-content .token.namespace{opacity:.7}.code-content .token.important,.code-content .token.bold{font-weight:700}.code-content .token.italic{font-style:italic}@media (max-width: 768px){.code-header{flex-direction:column;gap:1rem;align-items:flex-start}.code-actions{width:100%;justify-content:flex-end}.code-content{padding:1.5rem;font-size:.85rem}}";
4922
+ var ht;
4923
+ let pt, gt;
5054
4924
  function X(t, e, r) {
5055
- return (e = mt(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
4925
+ return (e = bt(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
5056
4926
  }
5057
- function Er(t, e, r, o, S, A) {
5058
- function b(a, s, c) {
5059
- return function(i, n) {
5060
- return c && c(i), a[s].call(i, n);
4927
+ function yr(t, e, r, o, S, T) {
4928
+ function E(i, l, d) {
4929
+ return function(a, n) {
4930
+ return d && d(a), i[l].call(a, n);
5061
4931
  };
5062
4932
  }
5063
- function T(a, s) {
5064
- for (var c = 0; c < a.length; c++) a[c].call(s);
5065
- return s;
4933
+ function A(i, l) {
4934
+ for (var d = 0; d < i.length; d++) i[d].call(l);
4935
+ return l;
5066
4936
  }
5067
- function y(a, s, c, i) {
5068
- if (typeof a != "function" && (i || a !== void 0)) throw new TypeError(s + " must " + (c || "be") + " a function" + (i ? "" : " or undefined"));
5069
- return a;
4937
+ function m(i, l, d, a) {
4938
+ if (typeof i != "function" && (a || i !== void 0)) throw new TypeError(l + " must " + (d || "be") + " a function" + (a ? "" : " or undefined"));
4939
+ return i;
5070
4940
  }
5071
- function D(a, s, c, i, n, d, h, p, k, x, m, u, v) {
5072
- function O(f) {
5073
- if (!v(f)) throw new TypeError("Attempted to access private element on non-instance");
4941
+ function D(i, l, d, a, n, c, h, p, y, w, b, u, f) {
4942
+ function C(g) {
4943
+ if (!f(g)) throw new TypeError("Attempted to access private element on non-instance");
5074
4944
  }
5075
- var g, _ = s[0], I = s[3], M = !p;
4945
+ var k, _ = l[0], I = l[3], M = !p;
5076
4946
  if (!M) {
5077
- c || Array.isArray(_) || (_ = [_]);
5078
- var l = {}, R = [], E = n === 3 ? "get" : n === 4 || u ? "set" : "value";
5079
- x ? (m || u ? l = { get: Ce(function() {
4947
+ d || Array.isArray(_) || (_ = [_]);
4948
+ var s = {}, F = [], x = n === 3 ? "get" : n === 4 || u ? "set" : "value";
4949
+ w ? (b || u ? s = { get: _e(function() {
5080
4950
  return I(this);
5081
- }, i, "get"), set: function(f) {
5082
- s[4](this, f);
5083
- } } : l[E] = I, m || Ce(l[E], i, n === 2 ? "" : E)) : m || (l = Object.getOwnPropertyDescriptor(a, i));
4951
+ }, a, "get"), set: function(g) {
4952
+ l[4](this, g);
4953
+ } } : s[x] = I, b || _e(s[x], a, n === 2 ? "" : x)) : b || (s = Object.getOwnPropertyDescriptor(i, a));
5084
4954
  }
5085
- for (var w = a, B = _.length - 1; B >= 0; B -= c ? 2 : 1) {
5086
- var W = _[B], G = c ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: i, metadata: d, addInitializer: (function(f, N) {
5087
- if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
5088
- y(N, "An initializer", "be", !0), h.push(N);
4955
+ for (var v = i, B = _.length - 1; B >= 0; B -= d ? 2 : 1) {
4956
+ var V = _[B], G = d ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
4957
+ if (g.v) throw Error("attempted to call addInitializer after decoration was finished");
4958
+ m(R, "An initializer", "be", !0), h.push(R);
5089
4959
  }).bind(null, Y) };
5090
4960
  try {
5091
- if (M) (g = y(W.call(G, w, z), "class decorators", "return")) && (w = g);
4961
+ if (M) (k = m(V.call(G, v, z), "class decorators", "return")) && (v = k);
5092
4962
  else {
5093
- var P, U;
5094
- z.static = k, z.private = x, x ? n === 2 ? P = function(f) {
5095
- return O(f), l.value;
5096
- } : (n < 4 && (P = b(l, "get", O)), n !== 3 && (U = b(l, "set", O))) : (P = function(f) {
5097
- return f[i];
5098
- }, (n < 2 || n === 4) && (U = function(f, N) {
5099
- f[i] = N;
4963
+ var P, H;
4964
+ z.static = y, z.private = w, w ? n === 2 ? P = function(g) {
4965
+ return C(g), s.value;
4966
+ } : (n < 4 && (P = E(s, "get", C)), n !== 3 && (H = E(s, "set", C))) : (P = function(g) {
4967
+ return g[a];
4968
+ }, (n < 2 || n === 4) && (H = function(g, R) {
4969
+ g[a] = R;
5100
4970
  }));
5101
- var V = z.access = { has: x ? v.bind() : function(f) {
5102
- return i in f;
4971
+ var W = z.access = { has: w ? f.bind() : function(g) {
4972
+ return a in g;
5103
4973
  } };
5104
- if (P && (V.get = P), U && (V.set = U), w = W.call(G, u ? { get: l.get, set: l.set } : l[E], z), u) {
5105
- if (typeof w == "object" && w) (g = y(w.get, "accessor.get")) && (l.get = g), (g = y(w.set, "accessor.set")) && (l.set = g), (g = y(w.init, "accessor.init")) && R.push(g);
5106
- else if (w !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
5107
- } else y(w, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(w) : l[E] = w);
4974
+ if (P && (W.get = P), H && (W.set = H), v = V.call(G, u ? { get: s.get, set: s.set } : s[x], z), u) {
4975
+ if (typeof v == "object" && v) (k = m(v.get, "accessor.get")) && (s.get = k), (k = m(v.set, "accessor.set")) && (s.set = k), (k = m(v.init, "accessor.init")) && F.push(k);
4976
+ else if (v !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
4977
+ } else m(v, (b ? "field" : "method") + " decorators", "return") && (b ? F.push(v) : s[x] = v);
5108
4978
  }
5109
4979
  } finally {
5110
4980
  Y.v = !0;
5111
4981
  }
5112
4982
  }
5113
- return (m || u) && p.push(function(f, N) {
5114
- for (var H = R.length - 1; H >= 0; H--) N = R[H].call(f, N);
5115
- return N;
5116
- }), m || M || (x ? u ? p.push(b(l, "get"), b(l, "set")) : p.push(n === 2 ? l[E] : b.call.bind(l[E])) : Object.defineProperty(a, i, l)), w;
5117
- }
5118
- function F(a, s) {
5119
- return Object.defineProperty(a, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: s });
5120
- }
5121
- if (arguments.length >= 6) var C = A[Symbol.metadata || Symbol.for("Symbol.metadata")];
5122
- var L = Object.create(C ?? null), j = function(a, s, c, i) {
5123
- var n, d, h = [], p = function(E) {
5124
- return Ar(E) === a;
5125
- }, k = /* @__PURE__ */ new Map();
5126
- function x(E) {
5127
- E && h.push(T.bind(null, E));
4983
+ return (b || u) && p.push(function(g, R) {
4984
+ for (var U = F.length - 1; U >= 0; U--) R = F[U].call(g, R);
4985
+ return R;
4986
+ }), b || M || (w ? u ? p.push(E(s, "get"), E(s, "set")) : p.push(n === 2 ? s[x] : E.call.bind(s[x])) : Object.defineProperty(i, a, s)), v;
4987
+ }
4988
+ function N(i, l) {
4989
+ return Object.defineProperty(i, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: l });
4990
+ }
4991
+ if (arguments.length >= 6) var O = T[Symbol.metadata || Symbol.for("Symbol.metadata")];
4992
+ var L = Object.create(O ?? null), j = function(i, l, d, a) {
4993
+ var n, c, h = [], p = function(x) {
4994
+ return xr(x) === i;
4995
+ }, y = /* @__PURE__ */ new Map();
4996
+ function w(x) {
4997
+ x && h.push(A.bind(null, x));
5128
4998
  }
5129
- for (var m = 0; m < s.length; m++) {
5130
- var u = s[m];
4999
+ for (var b = 0; b < l.length; b++) {
5000
+ var u = l[b];
5131
5001
  if (Array.isArray(u)) {
5132
- var v = u[1], O = u[2], g = u.length > 3, _ = 16 & v, I = !!(8 & v), M = (v &= 7) == 0, l = O + "/" + I;
5133
- if (!M && !g) {
5134
- var R = k.get(l);
5135
- if (R === !0 || R === 3 && v !== 4 || R === 4 && v !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + O);
5136
- k.set(l, !(v > 2) || v);
5002
+ var f = u[1], C = u[2], k = u.length > 3, _ = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = C + "/" + I;
5003
+ if (!M && !k) {
5004
+ var F = y.get(s);
5005
+ if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + C);
5006
+ y.set(s, !(f > 2) || f);
5137
5007
  }
5138
- D(I ? a : a.prototype, u, _, g ? "#" + O : mt(O), v, i, I ? d = d || [] : n = n || [], h, I, g, M, v === 1, I && g ? p : c);
5008
+ D(I ? i : i.prototype, u, _, k ? "#" + C : bt(C), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
5139
5009
  }
5140
5010
  }
5141
- return x(n), x(d), h;
5011
+ return w(n), w(c), h;
5142
5012
  }(t, e, S, L);
5143
- return r.length || F(t, L), { e: j, get c() {
5144
- var a = [];
5145
- return r.length && [F(D(t, [r], o, t.name, 5, L, a), L), T.bind(null, a, t)];
5013
+ return r.length || N(t, L), { e: j, get c() {
5014
+ var i = [];
5015
+ return r.length && [N(D(t, [r], o, t.name, 5, L, i), L), A.bind(null, i, t)];
5146
5016
  } };
5147
5017
  }
5148
- function mt(t) {
5149
- var e = Sr(t, "string");
5018
+ function bt(t) {
5019
+ var e = kr(t, "string");
5150
5020
  return typeof e == "symbol" ? e : e + "";
5151
5021
  }
5152
- function Sr(t, e) {
5022
+ function kr(t, e) {
5153
5023
  if (typeof t != "object" || !t) return t;
5154
5024
  var r = t[Symbol.toPrimitive];
5155
5025
  if (r !== void 0) {
@@ -5159,7 +5029,7 @@ function Sr(t, e) {
5159
5029
  }
5160
5030
  return String(t);
5161
5031
  }
5162
- function Ce(t, e, r) {
5032
+ function _e(t, e, r) {
5163
5033
  typeof e == "symbol" && (e = (e = e.description) ? "[" + e + "]" : "");
5164
5034
  try {
5165
5035
  Object.defineProperty(t, "name", { configurable: !0, value: r ? r + " " + e : e });
@@ -5167,34 +5037,34 @@ function Ce(t, e, r) {
5167
5037
  }
5168
5038
  return t;
5169
5039
  }
5170
- function Ar(t) {
5040
+ function xr(t) {
5171
5041
  if (Object(t) !== t) throw TypeError("right-hand side of 'in' should be an object, got " + (t !== null ? typeof t : "null"));
5172
5042
  return t;
5173
5043
  }
5174
- bt = [te({
5044
+ gt = [te({
5175
5045
  tagName: "wsx-code-block"
5176
5046
  })];
5177
- let Tr;
5178
- class Or extends _e {
5047
+ let wr;
5048
+ class Er extends Ie {
5179
5049
  constructor() {
5180
- super(), X(this, "_autoStyles", xr), X(this, "copied", void 0), X(this, "highlighted", void 0), X(this, "code", void 0), X(this, "segments", void 0), X(this, "codeTitle", void 0), X(this, "language", void 0), X(this, "showCopy", void 0), X(this, "showTryOnline", void 0), X(this, "tryOnlineUrl", void 0), X(this, "currentTheme", "light"), X(this, "onTryOnlineCallback", void 0), X(this, "codeElements", []), X(this, "isHighlighting", !1), X(this, "themeObserver", null), X(this, "codeBlockElement", null), X(this, "copyCode", async (n) => {
5181
- const d = n || this.code || this.segments.map((h) => h.code).join(`
5050
+ super(), X(this, "_autoStyles", vr), X(this, "copied", void 0), X(this, "highlighted", void 0), X(this, "code", void 0), X(this, "segments", void 0), X(this, "codeTitle", void 0), X(this, "language", void 0), X(this, "showCopy", void 0), X(this, "showTryOnline", void 0), X(this, "tryOnlineUrl", void 0), X(this, "currentTheme", "light"), X(this, "onTryOnlineCallback", void 0), X(this, "codeElements", []), X(this, "isHighlighting", !1), X(this, "themeObserver", null), X(this, "codeBlockElement", null), X(this, "copyCode", async (n) => {
5051
+ const c = n || this.code || this.segments.map((h) => h.code).join(`
5182
5052
 
5183
5053
  `);
5184
5054
  try {
5185
- await navigator.clipboard.writeText(d), this.copied = !0, setTimeout(() => {
5055
+ await navigator.clipboard.writeText(c), this.copied = !0, setTimeout(() => {
5186
5056
  this.copied = !1;
5187
5057
  }, 2e3);
5188
5058
  } catch (h) {
5189
5059
  console.error("Failed to copy code:", h);
5190
5060
  const p = document.createElement("textarea");
5191
- p.value = d, p.style.position = "fixed", p.style.opacity = "0", document.body.appendChild(p), p.select();
5061
+ p.value = c, p.style.position = "fixed", p.style.opacity = "0", document.body.appendChild(p), p.select();
5192
5062
  try {
5193
5063
  document.execCommand("copy"), this.copied = !0, setTimeout(() => {
5194
5064
  this.copied = !1;
5195
5065
  }, 2e3);
5196
- } catch (k) {
5197
- console.error("Fallback copy failed:", k);
5066
+ } catch (y) {
5067
+ console.error("Fallback copy failed:", y);
5198
5068
  }
5199
5069
  document.body.removeChild(p);
5200
5070
  }
@@ -5215,33 +5085,33 @@ class Or extends _e {
5215
5085
  enumerable: !0,
5216
5086
  configurable: !0
5217
5087
  });
5218
- const [A, b] = this.useState("code", "");
5088
+ const [T, E] = this.useState("code", "");
5219
5089
  Object.defineProperty(this, "code", {
5220
- get: A,
5221
- set: b,
5090
+ get: T,
5091
+ set: E,
5222
5092
  enumerable: !0,
5223
5093
  configurable: !0
5224
5094
  });
5225
- let T = this.reactive([]);
5095
+ let A = this.reactive([]);
5226
5096
  Object.defineProperty(this, "segments", {
5227
- get: () => T,
5097
+ get: () => A,
5228
5098
  set: (n) => {
5229
- T = n !== null && typeof n < "u" && (Array.isArray(n) || typeof n == "object") ? this.reactive(n) : n, this.scheduleRerender();
5099
+ A = n !== null && typeof n < "u" && (Array.isArray(n) || typeof n == "object") ? this.reactive(n) : n, this.scheduleRerender();
5230
5100
  },
5231
5101
  enumerable: !0,
5232
5102
  configurable: !0
5233
5103
  });
5234
- const [y, D] = this.useState("codeTitle", "");
5104
+ const [m, D] = this.useState("codeTitle", "");
5235
5105
  Object.defineProperty(this, "codeTitle", {
5236
- get: y,
5106
+ get: m,
5237
5107
  set: D,
5238
5108
  enumerable: !0,
5239
5109
  configurable: !0
5240
5110
  });
5241
- const [F, C] = this.useState("language", "typescript");
5111
+ const [N, O] = this.useState("language", "typescript");
5242
5112
  Object.defineProperty(this, "language", {
5243
- get: F,
5244
- set: C,
5113
+ get: N,
5114
+ set: O,
5245
5115
  enumerable: !0,
5246
5116
  configurable: !0
5247
5117
  });
@@ -5252,17 +5122,17 @@ class Or extends _e {
5252
5122
  enumerable: !0,
5253
5123
  configurable: !0
5254
5124
  });
5255
- const [a, s] = this.useState("showTryOnline", !1);
5125
+ const [i, l] = this.useState("showTryOnline", !1);
5256
5126
  Object.defineProperty(this, "showTryOnline", {
5257
- get: a,
5258
- set: s,
5127
+ get: i,
5128
+ set: l,
5259
5129
  enumerable: !0,
5260
5130
  configurable: !0
5261
5131
  });
5262
- const [c, i] = this.useState("tryOnlineUrl", "");
5132
+ const [d, a] = this.useState("tryOnlineUrl", "");
5263
5133
  Object.defineProperty(this, "tryOnlineUrl", {
5264
- get: c,
5265
- set: i,
5134
+ get: d,
5135
+ set: a,
5266
5136
  enumerable: !0,
5267
5137
  configurable: !0
5268
5138
  });
@@ -5335,8 +5205,8 @@ class Or extends _e {
5335
5205
  `);
5336
5206
  return /* @__PURE__ */ $("div", { class: `code-block ${this.currentTheme}`, ref: (o) => {
5337
5207
  o && (this.codeBlockElement = o);
5338
- } }, (this.codeTitle || this.showCopy || this.showTryOnline) && /* @__PURE__ */ $("div", { class: "code-header" }, this.codeTitle && /* @__PURE__ */ $("span", { class: "code-title" }, this.codeTitle), /* @__PURE__ */ $("div", { class: "code-actions" }, this.showCopy && /* @__PURE__ */ $("button", { onClick: () => this.copyCode(r), class: `btn-copy ${this.copied ? "copied" : ""}`, "data-wsx-key": "CodeBlock-button-text-3" }, this.copied ? "✓ Copied!" : "Copy"), this.showTryOnline && /* @__PURE__ */ $("button", { onClick: this.openPlayground, class: "btn-try", "data-wsx-key": "CodeBlock-button-text-3" }, "Try Online"))), /* @__PURE__ */ $("div", { class: "code-content" }, e.map((o, S) => /* @__PURE__ */ $("pre", { key: S, class: "code-segment" }, /* @__PURE__ */ $("code", { class: `language-${o.language}`, ref: (A) => {
5339
- A && (this.codeElements[S] = A);
5208
+ } }, (this.codeTitle || this.showCopy || this.showTryOnline) && /* @__PURE__ */ $("div", { class: "code-header" }, this.codeTitle && /* @__PURE__ */ $("span", { class: "code-title" }, this.codeTitle), /* @__PURE__ */ $("div", { class: "code-actions" }, this.showCopy && /* @__PURE__ */ $("button", { onClick: () => this.copyCode(r), class: `btn-copy ${this.copied ? "copied" : ""}`, "data-wsx-key": "CodeBlock-button-text-3" }, this.copied ? "✓ Copied!" : "Copy"), this.showTryOnline && /* @__PURE__ */ $("button", { onClick: this.openPlayground, class: "btn-try", "data-wsx-key": "CodeBlock-button-text-3" }, "Try Online"))), /* @__PURE__ */ $("div", { class: "code-content" }, e.map((o, S) => /* @__PURE__ */ $("pre", { key: S, class: "code-segment" }, /* @__PURE__ */ $("code", { class: `language-${o.language}`, ref: (T) => {
5209
+ T && (this.codeElements[S] = T);
5340
5210
  } }, o.code)))));
5341
5211
  }
5342
5212
  /**
@@ -5353,14 +5223,14 @@ class Or extends _e {
5353
5223
  const o = this.codeElements[r] || this.querySelectorAll("code")[r];
5354
5224
  if (o && !o.hasAttribute("data-prism-highlighted")) {
5355
5225
  const S = e.language.toLowerCase();
5356
- o.className = `language-${S}`, Oe.highlightElement(o), o.setAttribute("data-prism-highlighted", "true");
5226
+ o.className = `language-${S}`, Ce.highlightElement(o), o.setAttribute("data-prism-highlighted", "true");
5357
5227
  }
5358
5228
  });
5359
5229
  else if (this.code) {
5360
5230
  const e = this.codeElements[0] || this.querySelector("code");
5361
5231
  if (e && !e.hasAttribute("data-prism-highlighted")) {
5362
5232
  const r = this.language.toLowerCase();
5363
- e.className = `language-${r}`, Oe.highlightElement(e), e.setAttribute("data-prism-highlighted", "true");
5233
+ e.className = `language-${r}`, Ce.highlightElement(e), e.setAttribute("data-prism-highlighted", "true");
5364
5234
  }
5365
5235
  }
5366
5236
  this.highlighted = !0;
@@ -5376,26 +5246,26 @@ class Or extends _e {
5376
5246
  }
5377
5247
  }
5378
5248
  }
5379
- gt = Or;
5380
- [Tr, ft] = Er(gt, [], bt, 0, void 0, _e).c;
5381
- ft();
5249
+ ht = Er;
5250
+ [wr, pt] = yr(ht, [], gt, 0, void 0, Ie).c;
5251
+ pt();
5382
5252
  export {
5383
- Et as Button,
5384
- _t as ButtonGroup,
5385
- Ir as CONVERTER_BTN,
5386
- Fr as CONVERTER_PANEL,
5387
- Tr as CodeBlock,
5388
- Yt as ColorPicker,
5389
- cr as Combobox,
5390
- or as Dropdown,
5391
- xe as OverflowDetector,
5392
- gr as ResponsiveNav,
5393
- yr as SvgIcon,
5394
- Jt as ThemeSwitcher,
5395
- jt as getCustomColorCache,
5396
- _r as getDefaultColorCache,
5397
- se as handleCSSVariables,
5398
- Pt as setCustomColorCache,
5399
- zt as setDefaultColorCache,
5400
- Bt as throttle
5253
+ xt as Button,
5254
+ Ot as ButtonGroup,
5255
+ Tr as CONVERTER_BTN,
5256
+ Or as CONVERTER_PANEL,
5257
+ wr as CodeBlock,
5258
+ Ht as ColorPicker,
5259
+ or as Combobox,
5260
+ Jt as Dropdown,
5261
+ we as OverflowDetector,
5262
+ cr as ResponsiveNav,
5263
+ gr as SvgIcon,
5264
+ Kt as ThemeSwitcher,
5265
+ $t as getCustomColorCache,
5266
+ Ar as getDefaultColorCache,
5267
+ ae as handleCSSVariables,
5268
+ Nt as setCustomColorCache,
5269
+ Lt as setDefaultColorCache,
5270
+ Dt as throttle
5401
5271
  };