@wsxjs/wsx-marked-components 0.0.28 → 0.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import { autoRegister as W, LightComponent as q, jsx as G } from "@wsxjs/wsx-core";
2
- import { marked as le } from "marked";
3
- const ce = "wsx-marked-heading{display:block}wsx-marked-heading h1{font-size:2.5rem;font-weight:700;margin:1.5rem 0 1rem;color:var(--text-primary, #2c3e50);border-bottom:2px solid var(--primary-red, #dc2626);padding-bottom:.5rem}wsx-marked-heading h2{font-size:2rem;font-weight:600;margin:1.25rem 0 .75rem;color:var(--text-primary, #2c3e50)}wsx-marked-heading h3{font-size:1.5rem;font-weight:600;margin:1rem 0 .5rem;color:var(--text-primary, #2c3e50)}wsx-marked-heading h4,wsx-marked-heading h5,wsx-marked-heading h6{font-size:1.25rem;font-weight:600;margin:.75rem 0 .5rem;color:var(--text-primary, #2c3e50)}";
4
- var Ae;
5
- let Se, _e;
1
+ import { autoRegister as W, LightComponent as q, jsx as G, Fragment as ne, parseHTMLToNodes as ue } from "@wsxjs/wsx-core";
2
+ import { marked as de } from "marked";
3
+ const ge = "wsx-marked-heading{display:block}wsx-marked-heading h1{font-size:2.5rem;font-weight:700;margin:1.5rem 0 1rem;color:var(--text-primary, #2c3e50);border-bottom:2px solid var(--primary-red, #dc2626);padding-bottom:.5rem}wsx-marked-heading h2{font-size:2rem;font-weight:600;margin:1.25rem 0 .75rem;color:var(--text-primary, #2c3e50)}wsx-marked-heading h3{font-size:1.5rem;font-weight:600;margin:1rem 0 .5rem;color:var(--text-primary, #2c3e50)}wsx-marked-heading h4,wsx-marked-heading h5,wsx-marked-heading h6{font-size:1.25rem;font-weight:600;margin:.75rem 0 .5rem;color:var(--text-primary, #2c3e50)}";
4
+ var Te;
5
+ let _e, Ie;
6
6
  function te(e, t, r) {
7
- return (t = Te(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
7
+ return (t = Fe(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
8
8
  }
9
- function tt(e, t, r, o, _, P) {
9
+ function at(e, t, r, o, T, P) {
10
10
  function S(n, u, d) {
11
11
  return function(l, a) {
12
12
  return d && d(l), n[u].call(l, a);
@@ -16,7 +16,7 @@ function tt(e, t, r, o, _, P) {
16
16
  for (var d = 0; d < n.length; d++) n[d].call(u);
17
17
  return u;
18
18
  }
19
- function w(n, u, d, l) {
19
+ function v(n, u, d, l) {
20
20
  if (typeof n != "function" && (l || n !== void 0)) throw new TypeError(u + " must " + (d || "be") + " a function" + (l ? "" : " or undefined"));
21
21
  return n;
22
22
  }
@@ -27,20 +27,20 @@ function tt(e, t, r, o, _, P) {
27
27
  var x, I = u[0], F = u[3], $ = !g;
28
28
  if (!$) {
29
29
  d || Array.isArray(I) || (I = [I]);
30
- var s = {}, R = [], v = a === 3 ? "get" : a === 4 || c ? "set" : "value";
31
- h ? (m || c ? s = { get: ue(function() {
30
+ var s = {}, R = [], w = a === 3 ? "get" : a === 4 || c ? "set" : "value";
31
+ h ? (m || c ? s = { get: pe(function() {
32
32
  return F(this);
33
33
  }, l, "get"), set: function(f) {
34
34
  u[4](this, f);
35
- } } : s[v] = F, m || ue(s[v], l, a === 2 ? "" : v)) : m || (s = Object.getOwnPropertyDescriptor(n, l));
35
+ } } : s[w] = F, m || pe(s[w], l, a === 2 ? "" : w)) : m || (s = Object.getOwnPropertyDescriptor(n, l));
36
36
  }
37
37
  for (var y = n, M = I.length - 1; M >= 0; M -= d ? 2 : 1) {
38
- var Z = I[M], B = d ? I[M - 1] : void 0, X = {}, C = { kind: ["field", "accessor", "method", "getter", "setter", "class"][a], name: l, metadata: i, addInitializer: (function(f, O) {
38
+ var Z = I[M], B = d ? I[M - 1] : void 0, Y = {}, C = { kind: ["field", "accessor", "method", "getter", "setter", "class"][a], name: l, metadata: i, addInitializer: (function(f, O) {
39
39
  if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
40
- w(O, "An initializer", "be", !0), p.push(O);
41
- }).bind(null, X) };
40
+ v(O, "An initializer", "be", !0), p.push(O);
41
+ }).bind(null, Y) };
42
42
  try {
43
- if ($) (x = w(Z.call(B, y, C), "class decorators", "return")) && (y = x);
43
+ if ($) (x = v(Z.call(B, y, C), "class decorators", "return")) && (y = x);
44
44
  else {
45
45
  var j, z;
46
46
  C.static = k, C.private = h, h ? a === 2 ? j = function(f) {
@@ -50,33 +50,33 @@ function tt(e, t, r, o, _, P) {
50
50
  }, (a < 2 || a === 4) && (z = function(f, O) {
51
51
  f[l] = O;
52
52
  }));
53
- var Y = C.access = { has: h ? b.bind() : function(f) {
53
+ var X = C.access = { has: h ? b.bind() : function(f) {
54
54
  return l in f;
55
55
  } };
56
- if (j && (Y.get = j), z && (Y.set = z), y = Z.call(B, c ? { get: s.get, set: s.set } : s[v], C), c) {
57
- if (typeof y == "object" && y) (x = w(y.get, "accessor.get")) && (s.get = x), (x = w(y.set, "accessor.set")) && (s.set = x), (x = w(y.init, "accessor.init")) && R.push(x);
56
+ if (j && (X.get = j), z && (X.set = z), y = Z.call(B, c ? { get: s.get, set: s.set } : s[w], C), c) {
57
+ if (typeof y == "object" && y) (x = v(y.get, "accessor.get")) && (s.get = x), (x = v(y.set, "accessor.set")) && (s.set = x), (x = v(y.init, "accessor.init")) && R.push(x);
58
58
  else if (y !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
59
- } else w(y, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(y) : s[v] = y);
59
+ } else v(y, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(y) : s[w] = y);
60
60
  }
61
61
  } finally {
62
- X.v = !0;
62
+ Y.v = !0;
63
63
  }
64
64
  }
65
65
  return (m || c) && g.push(function(f, O) {
66
66
  for (var H = R.length - 1; H >= 0; H--) O = R[H].call(f, O);
67
67
  return O;
68
- }), m || $ || (h ? c ? g.push(S(s, "get"), S(s, "set")) : g.push(a === 2 ? s[v] : S.call.bind(s[v])) : Object.defineProperty(n, l, s)), y;
68
+ }), m || $ || (h ? c ? g.push(S(s, "get"), S(s, "set")) : g.push(a === 2 ? s[w] : S.call.bind(s[w])) : Object.defineProperty(n, l, s)), y;
69
69
  }
70
70
  function L(n, u) {
71
71
  return Object.defineProperty(n, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: u });
72
72
  }
73
- if (arguments.length >= 6) var T = P[Symbol.metadata || Symbol.for("Symbol.metadata")];
74
- var N = Object.create(T ?? null), U = function(n, u, d, l) {
75
- var a, i, p = [], g = function(v) {
76
- return at(v) === n;
73
+ if (arguments.length >= 6) var _ = P[Symbol.metadata || Symbol.for("Symbol.metadata")];
74
+ var N = Object.create(_ ?? null), U = function(n, u, d, l) {
75
+ var a, i, p = [], g = function(w) {
76
+ return ot(w) === n;
77
77
  }, k = /* @__PURE__ */ new Map();
78
- function h(v) {
79
- v && p.push(E.bind(null, v));
78
+ function h(w) {
79
+ w && p.push(E.bind(null, w));
80
80
  }
81
81
  for (var m = 0; m < u.length; m++) {
82
82
  var c = u[m];
@@ -87,21 +87,21 @@ function tt(e, t, r, o, _, P) {
87
87
  if (R === !0 || R === 3 && b !== 4 || R === 4 && b !== 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: " + A);
88
88
  k.set(s, !(b > 2) || b);
89
89
  }
90
- D(F ? n : n.prototype, c, I, x ? "#" + A : Te(A), b, l, F ? i = i || [] : a = a || [], p, F, x, $, b === 1, F && x ? g : d);
90
+ D(F ? n : n.prototype, c, I, x ? "#" + A : Fe(A), b, l, F ? i = i || [] : a = a || [], p, F, x, $, b === 1, F && x ? g : d);
91
91
  }
92
92
  }
93
93
  return h(a), h(i), p;
94
- }(e, t, _, N);
94
+ }(e, t, T, N);
95
95
  return r.length || L(e, N), { e: U, get c() {
96
96
  var n = [];
97
97
  return r.length && [L(D(e, [r], o, e.name, 5, N, n), N), E.bind(null, n, e)];
98
98
  } };
99
99
  }
100
- function Te(e) {
101
- var t = rt(e, "string");
100
+ function Fe(e) {
101
+ var t = nt(e, "string");
102
102
  return typeof t == "symbol" ? t : t + "";
103
103
  }
104
- function rt(e, t) {
104
+ function nt(e, t) {
105
105
  if (typeof e != "object" || !e) return e;
106
106
  var r = e[Symbol.toPrimitive];
107
107
  if (r !== void 0) {
@@ -111,7 +111,7 @@ function rt(e, t) {
111
111
  }
112
112
  return String(e);
113
113
  }
114
- function ue(e, t, r) {
114
+ function pe(e, t, r) {
115
115
  typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
116
116
  try {
117
117
  Object.defineProperty(e, "name", { configurable: !0, value: r ? r + " " + t : t });
@@ -119,20 +119,20 @@ function ue(e, t, r) {
119
119
  }
120
120
  return e;
121
121
  }
122
- function at(e) {
122
+ function ot(e) {
123
123
  if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e !== null ? typeof e : "null"));
124
124
  return e;
125
125
  }
126
- _e = [W({
126
+ Ie = [W({
127
127
  tagName: "wsx-marked-heading"
128
128
  })];
129
- let nt;
130
- class ot extends q {
129
+ let st;
130
+ class it extends q {
131
131
  constructor() {
132
132
  super({
133
- styles: ce,
133
+ styles: ge,
134
134
  styleName: "wsx-marked-heading"
135
- }), te(this, "_autoStyles", ce), te(this, "level", 1), te(this, "text", ""), te(this, "anchorId", void 0);
135
+ }), te(this, "_autoStyles", ge), te(this, "level", 1), te(this, "text", ""), te(this, "anchorId", void 0);
136
136
  const [t, r] = this.useState("anchorId", "");
137
137
  Object.defineProperty(this, "anchorId", {
138
138
  get: t,
@@ -151,15 +151,15 @@ class ot extends q {
151
151
  return this.level === 1 ? /* @__PURE__ */ G("h1", { id: this.anchorId }, this.text) : this.level === 2 ? /* @__PURE__ */ G("h2", { id: this.anchorId }, this.text) : this.level === 3 ? /* @__PURE__ */ G("h3", { id: this.anchorId }, this.text) : this.level === 4 ? /* @__PURE__ */ G("h4", { id: this.anchorId }, this.text) : this.level === 5 ? /* @__PURE__ */ G("h5", { id: this.anchorId }, this.text) : /* @__PURE__ */ G("h6", { id: this.anchorId }, this.text);
152
152
  }
153
153
  }
154
- Ae = ot;
155
- [nt, Se] = tt(Ae, [], _e, 0, void 0, q).c;
156
- Se();
157
- const de = "wsx-marked-code{display:block;width:100%;margin:1rem 0;position:relative}.code-container{display:flex;flex-direction:column;width:100%;background:var(--bg-secondary, #fde8d1);border-radius:12px;overflow:hidden;box-shadow:0 8px 30px #0000001a;border:1px solid var(--border-color, #fed7aa)}wsx-marked-code .language-label{display:block;padding:.75rem 1.5rem;background:var(--bg-primary, #fef2e5);border-bottom:1px solid var(--border-color, #fed7aa);color:var(--text-primary, #2c3e50);font-weight:600;font-size:.9rem;text-transform:uppercase;letter-spacing:.5px}wsx-marked-code pre{padding:1.5rem;margin:0;background:var(--bg-primary, #fef2e5);color:var(--text-primary, #2c3e50);font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.9rem;line-height:1.6;overflow-x:auto;position:relative}wsx-marked-code code{display:block;background:transparent;padding:0;border:none;font-family:inherit;font-size:inherit;white-space:pre;word-wrap:normal;word-break:normal;tab-size:4;-moz-tab-size:4;-o-tab-size:4}@media (prefers-color-scheme: dark){.code-container{background:var(--bg-secondary, #2d2d2d);border-color:var(--border-color, #404040)}wsx-marked-code .language-label{background:var(--bg-primary, #1a1a1a);border-color:var(--border-color, #404040);color:var(--text-primary, #ffffff)}wsx-marked-code pre{background:#2d2d2d;color:#f8f8f2}}.light .code-container,[data-theme=light] .code-container{background:var(--bg-secondary, #fde8d1);border-color:var(--border-color, #fed7aa)}.light wsx-marked-code .language-label,[data-theme=light] wsx-marked-code .language-label{background:var(--bg-primary, #fef2e5);border-color:var(--border-color, #fed7aa);color:var(--text-primary, #2c3e50)}.light wsx-marked-code pre,[data-theme=light] wsx-marked-code pre{background:var(--bg-primary, #fef2e5);color:var(--text-primary, #2c3e50)}[data-theme=dark] .code-container,.dark .code-container{background:var(--bg-secondary, #2d2d2d);border-color:var(--border-color, #404040)}[data-theme=dark] wsx-marked-code .language-label,.dark wsx-marked-code .language-label{background:var(--bg-primary, #1a1a1a);border-color:var(--border-color, #404040);color:var(--text-primary, #ffffff)}[data-theme=dark] wsx-marked-code pre,.dark wsx-marked-code pre{background:#2d2d2d;color:#f8f8f2}.light wsx-marked-code code[class*=language-],[data-theme=light] wsx-marked-code code[class*=language-]{background:transparent;color:#1f2937}.light wsx-marked-code .token.comment,.light wsx-marked-code .token.prolog,.light wsx-marked-code .token.doctype,.light wsx-marked-code .token.cdata,[data-theme=light] wsx-marked-code .token.comment,[data-theme=light] wsx-marked-code .token.prolog,[data-theme=light] wsx-marked-code .token.doctype,[data-theme=light] wsx-marked-code .token.cdata{color:#4b5563;font-style:italic}.light wsx-marked-code .token.punctuation,[data-theme=light] wsx-marked-code .token.punctuation{color:#111827}.light wsx-marked-code .token.property,.light wsx-marked-code .token.tag,.light wsx-marked-code .token.boolean,.light wsx-marked-code .token.number,.light wsx-marked-code .token.constant,.light wsx-marked-code .token.symbol,.light wsx-marked-code .token.deleted,[data-theme=light] wsx-marked-code .token.property,[data-theme=light] wsx-marked-code .token.tag,[data-theme=light] wsx-marked-code .token.boolean,[data-theme=light] wsx-marked-code .token.number,[data-theme=light] wsx-marked-code .token.constant,[data-theme=light] wsx-marked-code .token.symbol,[data-theme=light] wsx-marked-code .token.deleted{color:#be185d}.light wsx-marked-code .token.selector,.light wsx-marked-code .token.attr-name,.light wsx-marked-code .token.string,.light wsx-marked-code .token.char,.light wsx-marked-code .token.builtin,.light wsx-marked-code .token.inserted,[data-theme=light] wsx-marked-code .token.selector,[data-theme=light] wsx-marked-code .token.attr-name,[data-theme=light] wsx-marked-code .token.string,[data-theme=light] wsx-marked-code .token.char,[data-theme=light] wsx-marked-code .token.builtin,[data-theme=light] wsx-marked-code .token.inserted{color:#059669}.light wsx-marked-code .token.operator,.light wsx-marked-code .token.entity,.light wsx-marked-code .token.url,.light wsx-marked-code .language-css .token.string,.light wsx-marked-code .style .token.string,[data-theme=light] wsx-marked-code .token.operator,[data-theme=light] wsx-marked-code .token.entity,[data-theme=light] wsx-marked-code .token.url,[data-theme=light] wsx-marked-code .language-css .token.string,[data-theme=light] wsx-marked-code .style .token.string{color:#111827}.light wsx-marked-code .token.atrule,.light wsx-marked-code .token.attr-value,.light wsx-marked-code .token.keyword,[data-theme=light] wsx-marked-code .token.atrule,[data-theme=light] wsx-marked-code .token.attr-value,[data-theme=light] wsx-marked-code .token.keyword{color:#7c3aed;font-weight:600}.light wsx-marked-code .token.function,.light wsx-marked-code .token.class-name,[data-theme=light] wsx-marked-code .token.function,[data-theme=light] wsx-marked-code .token.class-name{color:#0369a1}.light wsx-marked-code .token.regex,.light wsx-marked-code .token.important,.light wsx-marked-code .token.variable,[data-theme=light] wsx-marked-code .token.regex,[data-theme=light] wsx-marked-code .token.important,[data-theme=light] wsx-marked-code .token.variable{color:#c2410c}.light wsx-marked-code .token.decorator,.light wsx-marked-code .token.decorator-name,[data-theme=light] wsx-marked-code .token.decorator,[data-theme=light] wsx-marked-code .token.decorator-name{color:#c2410c}.light wsx-marked-code .token.web-component,.light wsx-marked-code .token.tag-name,[data-theme=light] wsx-marked-code .token.web-component,[data-theme=light] wsx-marked-code .token.tag-name{color:#0369a1}wsx-marked-code code[class*=language-]{background:transparent;color:#24292e}wsx-marked-code .token.comment,wsx-marked-code .token.prolog,wsx-marked-code .token.doctype,wsx-marked-code .token.cdata{color:#5a6268;font-style:italic}wsx-marked-code .token.punctuation{color:#1a1a1a}wsx-marked-code .token.property,wsx-marked-code .token.tag,wsx-marked-code .token.boolean,wsx-marked-code .token.number,wsx-marked-code .token.constant,wsx-marked-code .token.symbol,wsx-marked-code .token.deleted{color:#c7254e}wsx-marked-code .token.selector,wsx-marked-code .token.attr-name,wsx-marked-code .token.string,wsx-marked-code .token.char,wsx-marked-code .token.builtin,wsx-marked-code .token.inserted{color:#005cc5}wsx-marked-code .token.operator,wsx-marked-code .token.entity,wsx-marked-code .token.url,wsx-marked-code .language-css .token.string,wsx-marked-code .style .token.string{color:#1a1a1a}wsx-marked-code .token.atrule,wsx-marked-code .token.attr-value,wsx-marked-code .token.keyword{color:#d73a49;font-weight:600}wsx-marked-code .token.function,wsx-marked-code .token.class-name{color:#6f42c1}wsx-marked-code .token.regex,wsx-marked-code .token.important,wsx-marked-code .token.variable{color:#e36209}wsx-marked-code .token.decorator,wsx-marked-code .token.decorator-name{color:#e36209}wsx-marked-code .token.web-component,wsx-marked-code .token.tag-name{color:#6f42c1}@media (prefers-color-scheme: dark){wsx-marked-code code[class*=language-]{color:#f8f8f2}wsx-marked-code .token.comment,wsx-marked-code .token.prolog,wsx-marked-code .token.doctype,wsx-marked-code .token.cdata{color:#75715e;font-style:italic}wsx-marked-code .token.punctuation{color:#f8f8f2}wsx-marked-code .token.property,wsx-marked-code .token.tag,wsx-marked-code .token.boolean,wsx-marked-code .token.number,wsx-marked-code .token.constant,wsx-marked-code .token.symbol,wsx-marked-code .token.deleted{color:#f92672}wsx-marked-code .token.selector,wsx-marked-code .token.attr-name,wsx-marked-code .token.string,wsx-marked-code .token.char,wsx-marked-code .token.builtin,wsx-marked-code .token.inserted{color:#e6db74}wsx-marked-code .token.operator,wsx-marked-code .token.entity,wsx-marked-code .token.url,wsx-marked-code .language-css .token.string,wsx-marked-code .style .token.string{color:#f8f8f2}wsx-marked-code .token.atrule,wsx-marked-code .token.attr-value,wsx-marked-code .token.keyword{color:#66d9ef;font-weight:500}wsx-marked-code .token.function,wsx-marked-code .token.class-name{color:#a6e22e}wsx-marked-code .token.regex,wsx-marked-code .token.important,wsx-marked-code .token.variable{color:#fd971f}wsx-marked-code .token.decorator,wsx-marked-code .token.decorator-name{color:#fd971f}wsx-marked-code .token.web-component,wsx-marked-code .token.tag-name{color:#a6e22e}}[data-theme=dark] wsx-marked-code code[class*=language-],.dark wsx-marked-code code[class*=language-]{color:#f8f8f2}[data-theme=dark] wsx-marked-code .token.comment,[data-theme=dark] wsx-marked-code .token.prolog,[data-theme=dark] wsx-marked-code .token.doctype,[data-theme=dark] wsx-marked-code .token.cdata,.dark wsx-marked-code .token.comment,.dark wsx-marked-code .token.prolog,.dark wsx-marked-code .token.doctype,.dark wsx-marked-code .token.cdata{color:#75715e;font-style:italic}[data-theme=dark] wsx-marked-code .token.punctuation,.dark wsx-marked-code .token.punctuation{color:#f8f8f2}[data-theme=dark] wsx-marked-code .token.property,[data-theme=dark] wsx-marked-code .token.tag,[data-theme=dark] wsx-marked-code .token.boolean,[data-theme=dark] wsx-marked-code .token.number,[data-theme=dark] wsx-marked-code .token.constant,[data-theme=dark] wsx-marked-code .token.symbol,[data-theme=dark] wsx-marked-code .token.deleted,.dark wsx-marked-code .token.property,.dark wsx-marked-code .token.tag,.dark wsx-marked-code .token.boolean,.dark wsx-marked-code .token.number,.dark wsx-marked-code .token.constant,.dark wsx-marked-code .token.symbol,.dark wsx-marked-code .token.deleted{color:#f92672}[data-theme=dark] wsx-marked-code .token.selector,[data-theme=dark] wsx-marked-code .token.attr-name,[data-theme=dark] wsx-marked-code .token.string,[data-theme=dark] wsx-marked-code .token.char,[data-theme=dark] wsx-marked-code .token.builtin,[data-theme=dark] wsx-marked-code .token.inserted,.dark wsx-marked-code .token.selector,.dark wsx-marked-code .token.attr-name,.dark wsx-marked-code .token.string,.dark wsx-marked-code .token.char,.dark wsx-marked-code .token.builtin,.dark wsx-marked-code .token.inserted{color:#e6db74}[data-theme=dark] wsx-marked-code .token.operator,[data-theme=dark] wsx-marked-code .token.entity,[data-theme=dark] wsx-marked-code .token.url,[data-theme=dark] wsx-marked-code .language-css .token.string,[data-theme=dark] wsx-marked-code .style .token.string,.dark wsx-marked-code .token.operator,.dark wsx-marked-code .token.entity,.dark wsx-marked-code .token.url,.dark wsx-marked-code .language-css .token.string,.dark wsx-marked-code .style .token.string{color:#f8f8f2}[data-theme=dark] wsx-marked-code .token.atrule,[data-theme=dark] wsx-marked-code .token.attr-value,[data-theme=dark] wsx-marked-code .token.keyword,.dark wsx-marked-code .token.atrule,.dark wsx-marked-code .token.attr-value,.dark wsx-marked-code .token.keyword{color:#66d9ef;font-weight:500}[data-theme=dark] wsx-marked-code .token.function,[data-theme=dark] wsx-marked-code .token.class-name,.dark wsx-marked-code .token.function,.dark wsx-marked-code .token.class-name{color:#a6e22e}[data-theme=dark] wsx-marked-code .token.regex,[data-theme=dark] wsx-marked-code .token.important,[data-theme=dark] wsx-marked-code .token.variable,.dark wsx-marked-code .token.regex,.dark wsx-marked-code .token.important,.dark wsx-marked-code .token.variable{color:#fd971f}[data-theme=dark] wsx-marked-code .token.decorator,[data-theme=dark] wsx-marked-code .token.decorator-name,.dark wsx-marked-code .token.decorator,.dark wsx-marked-code .token.decorator-name{color:#fd971f}[data-theme=dark] wsx-marked-code .token.web-component,[data-theme=dark] wsx-marked-code .token.tag-name,.dark wsx-marked-code .token.web-component,.dark wsx-marked-code .token.tag-name{color:#a6e22e}wsx-marked-code .token.namespace{opacity:.7}wsx-marked-code .token.important{font-weight:700}wsx-marked-code .token.bold{font-weight:700}wsx-marked-code .token.italic{font-style:italic}wsx-marked-code pre::-webkit-scrollbar{height:8px}wsx-marked-code pre::-webkit-scrollbar-track{background:transparent}wsx-marked-code pre::-webkit-scrollbar-thumb{background:var(--border-color, #e5e7eb);border-radius:4px}wsx-marked-code pre::-webkit-scrollbar-thumb:hover{background:var(--text-secondary, #6b7280)}@media (max-width: 768px){wsx-marked-code .language-label{padding:.5rem 1rem;font-size:.8rem}wsx-marked-code pre{padding:1rem;font-size:.85rem}}";
158
- var ge = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
159
- function st(e) {
154
+ Te = it;
155
+ [st, _e] = at(Te, [], Ie, 0, void 0, q).c;
156
+ _e();
157
+ const me = "wsx-marked-code{display:block;width:100%;margin:1rem 0;position:relative}.code-container{display:flex;flex-direction:column;width:100%;background:var(--bg-secondary, #fde8d1);border-radius:12px;overflow:hidden;box-shadow:0 8px 30px #0000001a;border:1px solid var(--border-color, #fed7aa)}wsx-marked-code .language-label{display:block;padding:.75rem 1.5rem;background:var(--bg-primary, #fef2e5);border-bottom:1px solid var(--border-color, #fed7aa);color:var(--text-primary, #2c3e50);font-weight:600;font-size:.9rem;text-transform:uppercase;letter-spacing:.5px}wsx-marked-code pre{padding:1.5rem;margin:0;background:var(--bg-primary, #fef2e5);color:var(--text-primary, #2c3e50);font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.9rem;line-height:1.6;overflow-x:auto;position:relative}wsx-marked-code code{display:block;background:transparent;padding:0;border:none;font-family:inherit;font-size:inherit;white-space:pre;word-wrap:normal;word-break:normal;tab-size:4;-moz-tab-size:4;-o-tab-size:4}@media (prefers-color-scheme: dark){.code-container{background:var(--bg-secondary, #2d2d2d);border-color:var(--border-color, #404040)}wsx-marked-code .language-label{background:var(--bg-primary, #1a1a1a);border-color:var(--border-color, #404040);color:var(--text-primary, #ffffff)}wsx-marked-code pre{background:#2d2d2d;color:#f8f8f2}}.light .code-container,[data-theme=light] .code-container{background:var(--bg-secondary, #fde8d1);border-color:var(--border-color, #fed7aa)}.light wsx-marked-code .language-label,[data-theme=light] wsx-marked-code .language-label{background:var(--bg-primary, #fef2e5);border-color:var(--border-color, #fed7aa);color:var(--text-primary, #2c3e50)}.light wsx-marked-code pre,[data-theme=light] wsx-marked-code pre{background:var(--bg-primary, #fef2e5);color:var(--text-primary, #2c3e50)}[data-theme=dark] .code-container,.dark .code-container{background:var(--bg-secondary, #2d2d2d);border-color:var(--border-color, #404040)}[data-theme=dark] wsx-marked-code .language-label,.dark wsx-marked-code .language-label{background:var(--bg-primary, #1a1a1a);border-color:var(--border-color, #404040);color:var(--text-primary, #ffffff)}[data-theme=dark] wsx-marked-code pre,.dark wsx-marked-code pre{background:#2d2d2d;color:#f8f8f2}.light wsx-marked-code code[class*=language-],[data-theme=light] wsx-marked-code code[class*=language-]{background:transparent;color:#1f2937}.light wsx-marked-code .token.comment,.light wsx-marked-code .token.prolog,.light wsx-marked-code .token.doctype,.light wsx-marked-code .token.cdata,[data-theme=light] wsx-marked-code .token.comment,[data-theme=light] wsx-marked-code .token.prolog,[data-theme=light] wsx-marked-code .token.doctype,[data-theme=light] wsx-marked-code .token.cdata{color:#4b5563;font-style:italic}.light wsx-marked-code .token.punctuation,[data-theme=light] wsx-marked-code .token.punctuation{color:#111827}.light wsx-marked-code .token.property,.light wsx-marked-code .token.tag,.light wsx-marked-code .token.boolean,.light wsx-marked-code .token.number,.light wsx-marked-code .token.constant,.light wsx-marked-code .token.symbol,.light wsx-marked-code .token.deleted,[data-theme=light] wsx-marked-code .token.property,[data-theme=light] wsx-marked-code .token.tag,[data-theme=light] wsx-marked-code .token.boolean,[data-theme=light] wsx-marked-code .token.number,[data-theme=light] wsx-marked-code .token.constant,[data-theme=light] wsx-marked-code .token.symbol,[data-theme=light] wsx-marked-code .token.deleted{color:#be185d}.light wsx-marked-code .token.selector,.light wsx-marked-code .token.attr-name,.light wsx-marked-code .token.string,.light wsx-marked-code .token.char,.light wsx-marked-code .token.builtin,.light wsx-marked-code .token.inserted,[data-theme=light] wsx-marked-code .token.selector,[data-theme=light] wsx-marked-code .token.attr-name,[data-theme=light] wsx-marked-code .token.string,[data-theme=light] wsx-marked-code .token.char,[data-theme=light] wsx-marked-code .token.builtin,[data-theme=light] wsx-marked-code .token.inserted{color:#059669}.light wsx-marked-code .token.operator,.light wsx-marked-code .token.entity,.light wsx-marked-code .token.url,.light wsx-marked-code .language-css .token.string,.light wsx-marked-code .style .token.string,[data-theme=light] wsx-marked-code .token.operator,[data-theme=light] wsx-marked-code .token.entity,[data-theme=light] wsx-marked-code .token.url,[data-theme=light] wsx-marked-code .language-css .token.string,[data-theme=light] wsx-marked-code .style .token.string{color:#111827}.light wsx-marked-code .token.atrule,.light wsx-marked-code .token.attr-value,.light wsx-marked-code .token.keyword,[data-theme=light] wsx-marked-code .token.atrule,[data-theme=light] wsx-marked-code .token.attr-value,[data-theme=light] wsx-marked-code .token.keyword{color:#7c3aed;font-weight:600}.light wsx-marked-code .token.function,.light wsx-marked-code .token.class-name,[data-theme=light] wsx-marked-code .token.function,[data-theme=light] wsx-marked-code .token.class-name{color:#0369a1}.light wsx-marked-code .token.regex,.light wsx-marked-code .token.important,.light wsx-marked-code .token.variable,[data-theme=light] wsx-marked-code .token.regex,[data-theme=light] wsx-marked-code .token.important,[data-theme=light] wsx-marked-code .token.variable{color:#c2410c}.light wsx-marked-code .token.decorator,.light wsx-marked-code .token.decorator-name,[data-theme=light] wsx-marked-code .token.decorator,[data-theme=light] wsx-marked-code .token.decorator-name{color:#c2410c}.light wsx-marked-code .token.web-component,.light wsx-marked-code .token.tag-name,[data-theme=light] wsx-marked-code .token.web-component,[data-theme=light] wsx-marked-code .token.tag-name{color:#0369a1}wsx-marked-code code[class*=language-]{background:transparent;color:#24292e}wsx-marked-code .token.comment,wsx-marked-code .token.prolog,wsx-marked-code .token.doctype,wsx-marked-code .token.cdata{color:#5a6268;font-style:italic}wsx-marked-code .token.punctuation{color:#1a1a1a}wsx-marked-code .token.property,wsx-marked-code .token.tag,wsx-marked-code .token.boolean,wsx-marked-code .token.number,wsx-marked-code .token.constant,wsx-marked-code .token.symbol,wsx-marked-code .token.deleted{color:#c7254e}wsx-marked-code .token.selector,wsx-marked-code .token.attr-name,wsx-marked-code .token.string,wsx-marked-code .token.char,wsx-marked-code .token.builtin,wsx-marked-code .token.inserted{color:#005cc5}wsx-marked-code .token.operator,wsx-marked-code .token.entity,wsx-marked-code .token.url,wsx-marked-code .language-css .token.string,wsx-marked-code .style .token.string{color:#1a1a1a}wsx-marked-code .token.atrule,wsx-marked-code .token.attr-value,wsx-marked-code .token.keyword{color:#d73a49;font-weight:600}wsx-marked-code .token.function,wsx-marked-code .token.class-name{color:#6f42c1}wsx-marked-code .token.regex,wsx-marked-code .token.important,wsx-marked-code .token.variable{color:#e36209}wsx-marked-code .token.decorator,wsx-marked-code .token.decorator-name{color:#e36209}wsx-marked-code .token.web-component,wsx-marked-code .token.tag-name{color:#6f42c1}@media (prefers-color-scheme: dark){wsx-marked-code code[class*=language-]{color:#f8f8f2}wsx-marked-code .token.comment,wsx-marked-code .token.prolog,wsx-marked-code .token.doctype,wsx-marked-code .token.cdata{color:#75715e;font-style:italic}wsx-marked-code .token.punctuation{color:#f8f8f2}wsx-marked-code .token.property,wsx-marked-code .token.tag,wsx-marked-code .token.boolean,wsx-marked-code .token.number,wsx-marked-code .token.constant,wsx-marked-code .token.symbol,wsx-marked-code .token.deleted{color:#f92672}wsx-marked-code .token.selector,wsx-marked-code .token.attr-name,wsx-marked-code .token.string,wsx-marked-code .token.char,wsx-marked-code .token.builtin,wsx-marked-code .token.inserted{color:#e6db74}wsx-marked-code .token.operator,wsx-marked-code .token.entity,wsx-marked-code .token.url,wsx-marked-code .language-css .token.string,wsx-marked-code .style .token.string{color:#f8f8f2}wsx-marked-code .token.atrule,wsx-marked-code .token.attr-value,wsx-marked-code .token.keyword{color:#66d9ef;font-weight:500}wsx-marked-code .token.function,wsx-marked-code .token.class-name{color:#a6e22e}wsx-marked-code .token.regex,wsx-marked-code .token.important,wsx-marked-code .token.variable{color:#fd971f}wsx-marked-code .token.decorator,wsx-marked-code .token.decorator-name{color:#fd971f}wsx-marked-code .token.web-component,wsx-marked-code .token.tag-name{color:#a6e22e}}[data-theme=dark] wsx-marked-code code[class*=language-],.dark wsx-marked-code code[class*=language-]{color:#f8f8f2}[data-theme=dark] wsx-marked-code .token.comment,[data-theme=dark] wsx-marked-code .token.prolog,[data-theme=dark] wsx-marked-code .token.doctype,[data-theme=dark] wsx-marked-code .token.cdata,.dark wsx-marked-code .token.comment,.dark wsx-marked-code .token.prolog,.dark wsx-marked-code .token.doctype,.dark wsx-marked-code .token.cdata{color:#75715e;font-style:italic}[data-theme=dark] wsx-marked-code .token.punctuation,.dark wsx-marked-code .token.punctuation{color:#f8f8f2}[data-theme=dark] wsx-marked-code .token.property,[data-theme=dark] wsx-marked-code .token.tag,[data-theme=dark] wsx-marked-code .token.boolean,[data-theme=dark] wsx-marked-code .token.number,[data-theme=dark] wsx-marked-code .token.constant,[data-theme=dark] wsx-marked-code .token.symbol,[data-theme=dark] wsx-marked-code .token.deleted,.dark wsx-marked-code .token.property,.dark wsx-marked-code .token.tag,.dark wsx-marked-code .token.boolean,.dark wsx-marked-code .token.number,.dark wsx-marked-code .token.constant,.dark wsx-marked-code .token.symbol,.dark wsx-marked-code .token.deleted{color:#f92672}[data-theme=dark] wsx-marked-code .token.selector,[data-theme=dark] wsx-marked-code .token.attr-name,[data-theme=dark] wsx-marked-code .token.string,[data-theme=dark] wsx-marked-code .token.char,[data-theme=dark] wsx-marked-code .token.builtin,[data-theme=dark] wsx-marked-code .token.inserted,.dark wsx-marked-code .token.selector,.dark wsx-marked-code .token.attr-name,.dark wsx-marked-code .token.string,.dark wsx-marked-code .token.char,.dark wsx-marked-code .token.builtin,.dark wsx-marked-code .token.inserted{color:#e6db74}[data-theme=dark] wsx-marked-code .token.operator,[data-theme=dark] wsx-marked-code .token.entity,[data-theme=dark] wsx-marked-code .token.url,[data-theme=dark] wsx-marked-code .language-css .token.string,[data-theme=dark] wsx-marked-code .style .token.string,.dark wsx-marked-code .token.operator,.dark wsx-marked-code .token.entity,.dark wsx-marked-code .token.url,.dark wsx-marked-code .language-css .token.string,.dark wsx-marked-code .style .token.string{color:#f8f8f2}[data-theme=dark] wsx-marked-code .token.atrule,[data-theme=dark] wsx-marked-code .token.attr-value,[data-theme=dark] wsx-marked-code .token.keyword,.dark wsx-marked-code .token.atrule,.dark wsx-marked-code .token.attr-value,.dark wsx-marked-code .token.keyword{color:#66d9ef;font-weight:500}[data-theme=dark] wsx-marked-code .token.function,[data-theme=dark] wsx-marked-code .token.class-name,.dark wsx-marked-code .token.function,.dark wsx-marked-code .token.class-name{color:#a6e22e}[data-theme=dark] wsx-marked-code .token.regex,[data-theme=dark] wsx-marked-code .token.important,[data-theme=dark] wsx-marked-code .token.variable,.dark wsx-marked-code .token.regex,.dark wsx-marked-code .token.important,.dark wsx-marked-code .token.variable{color:#fd971f}[data-theme=dark] wsx-marked-code .token.decorator,[data-theme=dark] wsx-marked-code .token.decorator-name,.dark wsx-marked-code .token.decorator,.dark wsx-marked-code .token.decorator-name{color:#fd971f}[data-theme=dark] wsx-marked-code .token.web-component,[data-theme=dark] wsx-marked-code .token.tag-name,.dark wsx-marked-code .token.web-component,.dark wsx-marked-code .token.tag-name{color:#a6e22e}wsx-marked-code .token.namespace{opacity:.7}wsx-marked-code .token.important{font-weight:700}wsx-marked-code .token.bold{font-weight:700}wsx-marked-code .token.italic{font-style:italic}wsx-marked-code pre::-webkit-scrollbar{height:8px}wsx-marked-code pre::-webkit-scrollbar-track{background:transparent}wsx-marked-code pre::-webkit-scrollbar-thumb{background:var(--border-color, #e5e7eb);border-radius:4px}wsx-marked-code pre::-webkit-scrollbar-thumb:hover{background:var(--text-secondary, #6b7280)}@media (max-width: 768px){wsx-marked-code .language-label{padding:.5rem 1rem;font-size:.8rem}wsx-marked-code pre{padding:1rem;font-size:.85rem}}";
158
+ var fe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
159
+ function lt(e) {
160
160
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
161
161
  }
162
- var Ie = { exports: {} };
162
+ var Re = { exports: {} };
163
163
  (function(e) {
164
164
  var t = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
165
165
  /**
@@ -171,7 +171,7 @@ var Ie = { exports: {} };
171
171
  * @public
172
172
  */
173
173
  var r = function(o) {
174
- var _ = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, P = 0, S = {}, E = {
174
+ var T = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, P = 0, S = {}, E = {
175
175
  /**
176
176
  * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
177
177
  * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
@@ -227,7 +227,7 @@ var Ie = { exports: {} };
227
227
  */
228
228
  util: {
229
229
  encode: function a(i) {
230
- return i instanceof w ? new w(i.type, a(i.content), i.alias) : Array.isArray(i) ? i.map(a) : i.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
230
+ return i instanceof v ? new v(i.type, a(i.content), i.alias) : Array.isArray(i) ? i.map(a) : i.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
231
231
  },
232
232
  /**
233
233
  * Returns the name of the type of the given value.
@@ -303,7 +303,7 @@ var Ie = { exports: {} };
303
303
  */
304
304
  getLanguage: function(a) {
305
305
  for (; a; ) {
306
- var i = _.exec(a.className);
306
+ var i = T.exec(a.className);
307
307
  if (i)
308
308
  return i[1].toLowerCase();
309
309
  a = a.parentElement;
@@ -318,7 +318,7 @@ var Ie = { exports: {} };
318
318
  * @returns {void}
319
319
  */
320
320
  setLanguage: function(a, i) {
321
- a.className = a.className.replace(RegExp(_, "gi"), ""), a.classList.add("language-" + i);
321
+ a.className = a.className.replace(RegExp(T, "gi"), ""), a.classList.add("language-" + i);
322
322
  },
323
323
  /**
324
324
  * Returns the script element that is currently executing.
@@ -662,7 +662,7 @@ var Ie = { exports: {} };
662
662
  };
663
663
  if (E.hooks.run("before-tokenize", g), !g.grammar)
664
664
  throw new Error('The language "' + g.language + '" has no grammar.');
665
- return g.tokens = E.tokenize(g.code, g.grammar), E.hooks.run("after-tokenize", g), w.stringify(E.util.encode(g.tokens), g.language);
665
+ return g.tokens = E.tokenize(g.code, g.grammar), E.hooks.run("after-tokenize", g), v.stringify(E.util.encode(g.tokens), g.language);
666
666
  },
667
667
  /**
668
668
  * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
@@ -695,7 +695,7 @@ var Ie = { exports: {} };
695
695
  i[g] = p[g];
696
696
  delete i.rest;
697
697
  }
698
- var k = new T();
698
+ var k = new _();
699
699
  return N(k, k.head, a), L(a, k, i, k.head, 0), n(k);
700
700
  },
701
701
  /**
@@ -737,13 +737,13 @@ var Ie = { exports: {} };
737
737
  k(i);
738
738
  }
739
739
  },
740
- Token: w
740
+ Token: v
741
741
  };
742
742
  o.Prism = E;
743
- function w(a, i, p, g) {
743
+ function v(a, i, p, g) {
744
744
  this.type = a, this.content = i, this.alias = p, this.length = (g || "").length | 0;
745
745
  }
746
- w.stringify = function a(i, p) {
746
+ v.stringify = function a(i, p) {
747
747
  if (typeof i == "string")
748
748
  return i;
749
749
  if (Array.isArray(i)) {
@@ -788,43 +788,43 @@ var Ie = { exports: {} };
788
788
  var s = A.pattern.toString().match(/[imsuy]*$/)[0];
789
789
  A.pattern = RegExp(A.pattern.source, s + "g");
790
790
  }
791
- for (var R = A.pattern || A, v = g.next, y = k; v !== i.tail && !(h && y >= h.reach); y += v.value.length, v = v.next) {
792
- var M = v.value;
791
+ for (var R = A.pattern || A, w = g.next, y = k; w !== i.tail && !(h && y >= h.reach); y += w.value.length, w = w.next) {
792
+ var M = w.value;
793
793
  if (i.length > a.length)
794
794
  return;
795
- if (!(M instanceof w)) {
795
+ if (!(M instanceof v)) {
796
796
  var Z = 1, B;
797
797
  if (F) {
798
798
  if (B = D(R, y, a, I), !B || B.index >= a.length)
799
799
  break;
800
- var z = B.index, X = B.index + B[0].length, C = y;
801
- for (C += v.value.length; z >= C; )
802
- v = v.next, C += v.value.length;
803
- if (C -= v.value.length, y = C, v.value instanceof w)
800
+ var z = B.index, Y = B.index + B[0].length, C = y;
801
+ for (C += w.value.length; z >= C; )
802
+ w = w.next, C += w.value.length;
803
+ if (C -= w.value.length, y = C, w.value instanceof v)
804
804
  continue;
805
- for (var j = v; j !== i.tail && (C < X || typeof j.value == "string"); j = j.next)
805
+ for (var j = w; j !== i.tail && (C < Y || typeof j.value == "string"); j = j.next)
806
806
  Z++, C += j.value.length;
807
807
  Z--, M = a.slice(y, C), B.index -= y;
808
808
  } else if (B = D(R, 0, M, I), !B)
809
809
  continue;
810
- var z = B.index, Y = B[0], f = M.slice(0, z), O = M.slice(z + Y.length), H = y + M.length;
810
+ var z = B.index, X = B[0], f = M.slice(0, z), O = M.slice(z + X.length), H = y + M.length;
811
811
  h && H > h.reach && (h.reach = H);
812
- var ee = v.prev;
812
+ var ee = w.prev;
813
813
  f && (ee = N(i, ee, f), y += f.length), U(i, ee, Z);
814
- var et = new w(m, x ? E.tokenize(Y, x) : Y, $, Y);
815
- if (v = N(i, ee, et), O && N(i, v, O), Z > 1) {
816
- var re = {
814
+ var rt = new v(m, x ? E.tokenize(X, x) : X, $, X);
815
+ if (w = N(i, ee, rt), O && N(i, w, O), Z > 1) {
816
+ var ae = {
817
817
  cause: m + "," + b,
818
818
  reach: H
819
819
  };
820
- L(a, i, p, v.prev, y, re), h && re.reach > h.reach && (h.reach = re.reach);
820
+ L(a, i, p, w.prev, y, ae), h && ae.reach > h.reach && (h.reach = ae.reach);
821
821
  }
822
822
  }
823
823
  }
824
824
  }
825
825
  }
826
826
  }
827
- function T() {
827
+ function _() {
828
828
  var a = { value: null, prev: null, next: null }, i = { value: null, prev: a, next: null };
829
829
  a.next = i, this.head = a, this.tail = i, this.length = 0;
830
830
  }
@@ -858,7 +858,7 @@ var Ie = { exports: {} };
858
858
  }
859
859
  return E;
860
860
  }(t);
861
- e.exports && (e.exports = r), typeof ge < "u" && (ge.Prism = r), r.languages.markup = {
861
+ e.exports && (e.exports = r), typeof fe < "u" && (fe.Prism = r), r.languages.markup = {
862
862
  comment: {
863
863
  pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
864
864
  greedy: !0
@@ -949,7 +949,7 @@ var Ie = { exports: {} };
949
949
  * @example
950
950
  * addInlined('style', 'css');
951
951
  */
952
- value: function(_, P) {
952
+ value: function(T, P) {
953
953
  var S = {};
954
954
  S["language-" + P] = {
955
955
  pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
@@ -966,15 +966,15 @@ var Ie = { exports: {} };
966
966
  pattern: /[\s\S]+/,
967
967
  inside: r.languages[P]
968
968
  };
969
- var w = {};
970
- w[_] = {
969
+ var v = {};
970
+ v[T] = {
971
971
  pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
972
- return _;
972
+ return T;
973
973
  }), "i"),
974
974
  lookbehind: !0,
975
975
  greedy: !0,
976
976
  inside: E
977
- }, r.languages.insertBefore("markup", "cdata", w);
977
+ }, r.languages.insertBefore("markup", "cdata", v);
978
978
  }
979
979
  }), Object.defineProperty(r.languages.markup.tag, "addAttribute", {
980
980
  /**
@@ -988,7 +988,7 @@ var Ie = { exports: {} };
988
988
  * @example
989
989
  * addAttribute('style', 'css');
990
990
  */
991
- value: function(o, _) {
991
+ value: function(o, T) {
992
992
  r.languages.markup.tag.inside["special-attr"].push({
993
993
  pattern: RegExp(
994
994
  /(^|["'\s])/.source + "(?:" + o + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
@@ -1003,8 +1003,8 @@ var Ie = { exports: {} };
1003
1003
  value: {
1004
1004
  pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
1005
1005
  lookbehind: !0,
1006
- alias: [_, "language-" + _],
1007
- inside: r.languages[_]
1006
+ alias: [T, "language-" + T],
1007
+ inside: r.languages[T]
1008
1008
  },
1009
1009
  punctuation: [
1010
1010
  {
@@ -1019,11 +1019,11 @@ var Ie = { exports: {} };
1019
1019
  });
1020
1020
  }
1021
1021
  }), r.languages.html = r.languages.markup, r.languages.mathml = r.languages.markup, r.languages.svg = r.languages.markup, r.languages.xml = r.languages.extend("markup", {}), r.languages.ssml = r.languages.xml, r.languages.atom = r.languages.xml, r.languages.rss = r.languages.xml, function(o) {
1022
- var _ = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
1022
+ var T = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
1023
1023
  o.languages.css = {
1024
1024
  comment: /\/\*[\s\S]*?\*\//,
1025
1025
  atrule: {
1026
- pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + _.source + ")*?" + /(?:;|(?=\s*\{))/.source),
1026
+ pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + T.source + ")*?" + /(?:;|(?=\s*\{))/.source),
1027
1027
  inside: {
1028
1028
  rule: /^@[\w-]+/,
1029
1029
  "selector-function-argument": {
@@ -1040,23 +1040,23 @@ var Ie = { exports: {} };
1040
1040
  },
1041
1041
  url: {
1042
1042
  // https://drafts.csswg.org/css-values-3/#urls
1043
- pattern: RegExp("\\burl\\((?:" + _.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"),
1043
+ pattern: RegExp("\\burl\\((?:" + T.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"),
1044
1044
  greedy: !0,
1045
1045
  inside: {
1046
1046
  function: /^url/i,
1047
1047
  punctuation: /^\(|\)$/,
1048
1048
  string: {
1049
- pattern: RegExp("^" + _.source + "$"),
1049
+ pattern: RegExp("^" + T.source + "$"),
1050
1050
  alias: "url"
1051
1051
  }
1052
1052
  }
1053
1053
  },
1054
1054
  selector: {
1055
- pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + _.source + ")*(?=\\s*\\{)"),
1055
+ pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + T.source + ")*(?=\\s*\\{)"),
1056
1056
  lookbehind: !0
1057
1057
  },
1058
1058
  string: {
1059
- pattern: _,
1059
+ pattern: T,
1060
1060
  greedy: !0
1061
1061
  },
1062
1062
  property: {
@@ -1236,7 +1236,7 @@ var Ie = { exports: {} };
1236
1236
  if (typeof r > "u" || typeof document > "u")
1237
1237
  return;
1238
1238
  Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
1239
- var o = "Loading…", _ = function(u, d) {
1239
+ var o = "Loading…", T = function(u, d) {
1240
1240
  return "✖ Error " + u + " while fetching file: " + d;
1241
1241
  }, P = "✖ Error: File does not exist or is empty", S = {
1242
1242
  js: "javascript",
@@ -1248,11 +1248,11 @@ var Ie = { exports: {} };
1248
1248
  bat: "batch",
1249
1249
  h: "c",
1250
1250
  tex: "latex"
1251
- }, E = "data-src-status", w = "loading", D = "loaded", L = "failed", T = "pre[data-src]:not([" + E + '="' + D + '"]):not([' + E + '="' + w + '"])';
1251
+ }, E = "data-src-status", v = "loading", D = "loaded", L = "failed", _ = "pre[data-src]:not([" + E + '="' + D + '"]):not([' + E + '="' + v + '"])';
1252
1252
  function N(u, d, l) {
1253
1253
  var a = new XMLHttpRequest();
1254
1254
  a.open("GET", u, !0), a.onreadystatechange = function() {
1255
- a.readyState == 4 && (a.status < 400 && a.responseText ? d(a.responseText) : a.status >= 400 ? l(_(a.status, a.statusText)) : l(P));
1255
+ a.readyState == 4 && (a.status < 400 && a.responseText ? d(a.responseText) : a.status >= 400 ? l(T(a.status, a.statusText)) : l(P));
1256
1256
  }, a.send(null);
1257
1257
  }
1258
1258
  function U(u) {
@@ -1263,14 +1263,14 @@ var Ie = { exports: {} };
1263
1263
  }
1264
1264
  }
1265
1265
  r.hooks.add("before-highlightall", function(u) {
1266
- u.selector += ", " + T;
1266
+ u.selector += ", " + _;
1267
1267
  }), r.hooks.add("before-sanity-check", function(u) {
1268
1268
  var d = (
1269
1269
  /** @type {HTMLPreElement} */
1270
1270
  u.element
1271
1271
  );
1272
- if (d.matches(T)) {
1273
- u.code = "", d.setAttribute(E, w);
1272
+ if (d.matches(_)) {
1273
+ u.code = "", d.setAttribute(E, v);
1274
1274
  var l = d.appendChild(document.createElement("CODE"));
1275
1275
  l.textContent = o;
1276
1276
  var a = d.getAttribute("data-src"), i = u.language;
@@ -1306,7 +1306,7 @@ var Ie = { exports: {} };
1306
1306
  * @param {ParentNode} [container=document]
1307
1307
  */
1308
1308
  highlight: function(d) {
1309
- for (var l = (d || document).querySelectorAll(T), a = 0, i; i = l[a++]; )
1309
+ for (var l = (d || document).querySelectorAll(_), a = 0, i; i = l[a++]; )
1310
1310
  r.highlightElement(i);
1311
1311
  }
1312
1312
  };
@@ -1315,9 +1315,9 @@ var Ie = { exports: {} };
1315
1315
  n || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), n = !0), r.plugins.fileHighlight.highlight.apply(this, arguments);
1316
1316
  };
1317
1317
  }();
1318
- })(Ie);
1319
- var it = Ie.exports;
1320
- const K = /* @__PURE__ */ st(it);
1318
+ })(Re);
1319
+ var ct = Re.exports;
1320
+ const K = /* @__PURE__ */ lt(ct);
1321
1321
  Prism.languages.markup = {
1322
1322
  comment: {
1323
1323
  pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
@@ -1420,13 +1420,13 @@ Object.defineProperty(Prism.languages.markup.tag, "addInlined", {
1420
1420
  lookbehind: !0,
1421
1421
  inside: Prism.languages[r]
1422
1422
  }, o.cdata = /^<!\[CDATA\[|\]\]>$/i;
1423
- var _ = {
1423
+ var T = {
1424
1424
  "included-cdata": {
1425
1425
  pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
1426
1426
  inside: o
1427
1427
  }
1428
1428
  };
1429
- _["language-" + r] = {
1429
+ T["language-" + r] = {
1430
1430
  pattern: /[\s\S]+/,
1431
1431
  inside: Prism.languages[r]
1432
1432
  };
@@ -1437,7 +1437,7 @@ Object.defineProperty(Prism.languages.markup.tag, "addInlined", {
1437
1437
  }), "i"),
1438
1438
  lookbehind: !0,
1439
1439
  greedy: !0,
1440
- inside: _
1440
+ inside: T
1441
1441
  }, Prism.languages.insertBefore("markup", "cdata", P);
1442
1442
  }
1443
1443
  });
@@ -1907,7 +1907,7 @@ Prism.languages.webmanifest = Prism.languages.json;
1907
1907
  lookbehind: !0
1908
1908
  }
1909
1909
  }, r.inside = e.languages.bash;
1910
- for (var _ = [
1910
+ for (var T = [
1911
1911
  "comment",
1912
1912
  "function-name",
1913
1913
  "for-or-select",
@@ -1923,8 +1923,8 @@ Prism.languages.webmanifest = Prism.languages.json;
1923
1923
  "operator",
1924
1924
  "punctuation",
1925
1925
  "number"
1926
- ], P = o.variable[1].inside, S = 0; S < _.length; S++)
1927
- P[_[S]] = e.languages.bash[_[S]];
1926
+ ], P = o.variable[1].inside, S = 0; S < T.length; S++)
1927
+ P[T[S]] = e.languages.bash[T[S]];
1928
1928
  e.languages.sh = e.languages.bash, e.languages.shell = e.languages.bash;
1929
1929
  })(Prism);
1930
1930
  Prism.languages.sql = {
@@ -1961,17 +1961,17 @@ Prism.languages.sql = {
1961
1961
  punctuation: /[;[\]()`,.]/
1962
1962
  };
1963
1963
  (function(e) {
1964
- var t = /[*&][^\s[\]{},]+/, r = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, o = "(?:" + r.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + r.source + ")?)", _ = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
1964
+ var t = /[*&][^\s[\]{},]+/, r = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, o = "(?:" + r.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + r.source + ")?)", T = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
1965
1965
  return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
1966
1966
  }), P = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
1967
- function S(E, w) {
1968
- w = (w || "").replace(/m/g, "") + "m";
1967
+ function S(E, v) {
1968
+ v = (v || "").replace(/m/g, "") + "m";
1969
1969
  var D = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
1970
1970
  return o;
1971
1971
  }).replace(/<<value>>/g, function() {
1972
1972
  return E;
1973
1973
  });
1974
- return RegExp(D, w);
1974
+ return RegExp(D, v);
1975
1975
  }
1976
1976
  e.languages.yaml = {
1977
1977
  scalar: {
@@ -1986,7 +1986,7 @@ Prism.languages.sql = {
1986
1986
  pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
1987
1987
  return o;
1988
1988
  }).replace(/<<key>>/g, function() {
1989
- return "(?:" + _ + "|" + P + ")";
1989
+ return "(?:" + T + "|" + P + ")";
1990
1990
  })),
1991
1991
  lookbehind: !0,
1992
1992
  greedy: !0,
@@ -2109,7 +2109,7 @@ delete Prism.languages.c.boolean;
2109
2109
  return t;
2110
2110
  }), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + L + ")");
2111
2111
  }
2112
- var o = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, _ = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
2112
+ var o = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, T = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
2113
2113
  return o;
2114
2114
  }), P = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;
2115
2115
  e.languages.markdown = e.languages.extend("markup", {}), e.languages.insertBefore("markdown", "prolog", {
@@ -2132,10 +2132,10 @@ delete Prism.languages.c.boolean;
2132
2132
  alias: "punctuation"
2133
2133
  },
2134
2134
  table: {
2135
- pattern: RegExp("^" + _ + P + "(?:" + _ + ")*", "m"),
2135
+ pattern: RegExp("^" + T + P + "(?:" + T + ")*", "m"),
2136
2136
  inside: {
2137
2137
  "table-data-rows": {
2138
- pattern: RegExp("^(" + _ + P + ")(?:" + _ + ")*$"),
2138
+ pattern: RegExp("^(" + T + P + ")(?:" + T + ")*$"),
2139
2139
  lookbehind: !0,
2140
2140
  inside: {
2141
2141
  "table-data": {
@@ -2146,14 +2146,14 @@ delete Prism.languages.c.boolean;
2146
2146
  }
2147
2147
  },
2148
2148
  "table-line": {
2149
- pattern: RegExp("^(" + _ + ")" + P + "$"),
2149
+ pattern: RegExp("^(" + T + ")" + P + "$"),
2150
2150
  lookbehind: !0,
2151
2151
  inside: {
2152
2152
  punctuation: /\||:?-{3,}:?/
2153
2153
  }
2154
2154
  },
2155
2155
  "table-header-row": {
2156
- pattern: RegExp("^" + _ + "$"),
2156
+ pattern: RegExp("^" + T + "$"),
2157
2157
  inside: {
2158
2158
  "table-header": {
2159
2159
  pattern: RegExp(o),
@@ -2337,18 +2337,18 @@ delete Prism.languages.c.boolean;
2337
2337
  }
2338
2338
  }
2339
2339
  }), ["url", "bold", "italic", "strike"].forEach(function(L) {
2340
- ["url", "bold", "italic", "strike", "code-snippet"].forEach(function(T) {
2341
- L !== T && (e.languages.markdown[L].inside.content.inside[T] = e.languages.markdown[T]);
2340
+ ["url", "bold", "italic", "strike", "code-snippet"].forEach(function(_) {
2341
+ L !== _ && (e.languages.markdown[L].inside.content.inside[_] = e.languages.markdown[_]);
2342
2342
  });
2343
2343
  }), e.hooks.add("after-tokenize", function(L) {
2344
2344
  if (L.language !== "markdown" && L.language !== "md")
2345
2345
  return;
2346
- function T(N) {
2346
+ function _(N) {
2347
2347
  if (!(!N || typeof N == "string"))
2348
2348
  for (var U = 0, n = N.length; U < n; U++) {
2349
2349
  var u = N[U];
2350
2350
  if (u.type !== "code") {
2351
- T(u.content);
2351
+ _(u.content);
2352
2352
  continue;
2353
2353
  }
2354
2354
  var d = u.content[1], l = u.content[3];
@@ -2360,24 +2360,24 @@ delete Prism.languages.c.boolean;
2360
2360
  }
2361
2361
  }
2362
2362
  }
2363
- T(L.tokens);
2363
+ _(L.tokens);
2364
2364
  }), e.hooks.add("wrap", function(L) {
2365
2365
  if (L.type === "code-block") {
2366
- for (var T = "", N = 0, U = L.classes.length; N < U; N++) {
2366
+ for (var _ = "", N = 0, U = L.classes.length; N < U; N++) {
2367
2367
  var n = L.classes[N], u = /language-(.+)/.exec(n);
2368
2368
  if (u) {
2369
- T = u[1];
2369
+ _ = u[1];
2370
2370
  break;
2371
2371
  }
2372
2372
  }
2373
- var d = e.languages[T];
2373
+ var d = e.languages[_];
2374
2374
  if (d)
2375
- L.content = e.highlight(D(L.content), d, T);
2376
- else if (T && T !== "none" && e.plugins.autoloader) {
2375
+ L.content = e.highlight(D(L.content), d, _);
2376
+ else if (_ && _ !== "none" && e.plugins.autoloader) {
2377
2377
  var l = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 1e16);
2378
- L.attributes.id = l, e.plugins.autoloader.loadLanguages(T, function() {
2378
+ L.attributes.id = l, e.plugins.autoloader.loadLanguages(_, function() {
2379
2379
  var a = document.getElementById(l);
2380
- a && (a.innerHTML = e.highlight(a.textContent, e.languages[T], T));
2380
+ a && (a.innerHTML = e.highlight(a.textContent, e.languages[_], _));
2381
2381
  });
2382
2382
  }
2383
2383
  }
@@ -2387,18 +2387,18 @@ delete Prism.languages.c.boolean;
2387
2387
  lt: "<",
2388
2388
  gt: ">",
2389
2389
  quot: '"'
2390
- }, w = String.fromCodePoint || String.fromCharCode;
2390
+ }, v = String.fromCodePoint || String.fromCharCode;
2391
2391
  function D(L) {
2392
- var T = L.replace(S, "");
2393
- return T = T.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(N, U) {
2392
+ var _ = L.replace(S, "");
2393
+ return _ = _.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(N, U) {
2394
2394
  if (U = U.toLowerCase(), U[0] === "#") {
2395
2395
  var n;
2396
- return U[1] === "x" ? n = parseInt(U.slice(2), 16) : n = Number(U.slice(1)), w(n);
2396
+ return U[1] === "x" ? n = parseInt(U.slice(2), 16) : n = Number(U.slice(1)), v(n);
2397
2397
  } else {
2398
2398
  var u = E[U];
2399
2399
  return u || N;
2400
2400
  }
2401
- }), T;
2401
+ }), _;
2402
2402
  }
2403
2403
  e.languages.md = e.languages.markdown;
2404
2404
  })(Prism);
@@ -2767,17 +2767,17 @@ delete Prism.languages.go["class-name"];
2767
2767
  }), e.languages.ts = e.languages.typescript;
2768
2768
  })(Prism);
2769
2769
  (function(e) {
2770
- var t = e.util.clone(e.languages.javascript), r = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, o = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, _ = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
2771
- function P(w, D) {
2772
- return w = w.replace(/<S>/g, function() {
2770
+ var t = e.util.clone(e.languages.javascript), r = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, o = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, T = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
2771
+ function P(v, D) {
2772
+ return v = v.replace(/<S>/g, function() {
2773
2773
  return r;
2774
2774
  }).replace(/<BRACES>/g, function() {
2775
2775
  return o;
2776
2776
  }).replace(/<SPREAD>/g, function() {
2777
- return _;
2778
- }), RegExp(w, D);
2777
+ return T;
2778
+ }), RegExp(v, D);
2779
2779
  }
2780
- _ = P(_).source, e.languages.jsx = e.languages.extend("markup", t), e.languages.jsx.tag.pattern = P(
2780
+ T = P(T).source, e.languages.jsx = e.languages.extend("markup", t), e.languages.jsx.tag.pattern = P(
2781
2781
  /<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source
2782
2782
  ), e.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, e.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, e.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, e.languages.jsx.tag.inside.comment = t.comment, e.languages.insertBefore("inside", "attr-name", {
2783
2783
  spread: {
@@ -2798,23 +2798,23 @@ delete Prism.languages.go["class-name"];
2798
2798
  }
2799
2799
  }
2800
2800
  }, e.languages.jsx.tag);
2801
- var S = function(w) {
2802
- return w ? typeof w == "string" ? w : typeof w.content == "string" ? w.content : w.content.map(S).join("") : "";
2803
- }, E = function(w) {
2804
- for (var D = [], L = 0; L < w.length; L++) {
2805
- var T = w[L], N = !1;
2806
- if (typeof T != "string" && (T.type === "tag" && T.content[0] && T.content[0].type === "tag" ? T.content[0].content[0].content === "</" ? D.length > 0 && D[D.length - 1].tagName === S(T.content[0].content[1]) && D.pop() : T.content[T.content.length - 1].content === "/>" || D.push({
2807
- tagName: S(T.content[0].content[1]),
2801
+ var S = function(v) {
2802
+ return v ? typeof v == "string" ? v : typeof v.content == "string" ? v.content : v.content.map(S).join("") : "";
2803
+ }, E = function(v) {
2804
+ for (var D = [], L = 0; L < v.length; L++) {
2805
+ var _ = v[L], N = !1;
2806
+ if (typeof _ != "string" && (_.type === "tag" && _.content[0] && _.content[0].type === "tag" ? _.content[0].content[0].content === "</" ? D.length > 0 && D[D.length - 1].tagName === S(_.content[0].content[1]) && D.pop() : _.content[_.content.length - 1].content === "/>" || D.push({
2807
+ tagName: S(_.content[0].content[1]),
2808
2808
  openedBraces: 0
2809
- }) : D.length > 0 && T.type === "punctuation" && T.content === "{" ? D[D.length - 1].openedBraces++ : D.length > 0 && D[D.length - 1].openedBraces > 0 && T.type === "punctuation" && T.content === "}" ? D[D.length - 1].openedBraces-- : N = !0), (N || typeof T == "string") && D.length > 0 && D[D.length - 1].openedBraces === 0) {
2810
- var U = S(T);
2811
- L < w.length - 1 && (typeof w[L + 1] == "string" || w[L + 1].type === "plain-text") && (U += S(w[L + 1]), w.splice(L + 1, 1)), L > 0 && (typeof w[L - 1] == "string" || w[L - 1].type === "plain-text") && (U = S(w[L - 1]) + U, w.splice(L - 1, 1), L--), w[L] = new e.Token("plain-text", U, null, U);
2809
+ }) : D.length > 0 && _.type === "punctuation" && _.content === "{" ? D[D.length - 1].openedBraces++ : D.length > 0 && D[D.length - 1].openedBraces > 0 && _.type === "punctuation" && _.content === "}" ? D[D.length - 1].openedBraces-- : N = !0), (N || typeof _ == "string") && D.length > 0 && D[D.length - 1].openedBraces === 0) {
2810
+ var U = S(_);
2811
+ L < v.length - 1 && (typeof v[L + 1] == "string" || v[L + 1].type === "plain-text") && (U += S(v[L + 1]), v.splice(L + 1, 1)), L > 0 && (typeof v[L - 1] == "string" || v[L - 1].type === "plain-text") && (U = S(v[L - 1]) + U, v.splice(L - 1, 1), L--), v[L] = new e.Token("plain-text", U, null, U);
2812
2812
  }
2813
- T.content && typeof T.content != "string" && E(T.content);
2813
+ _.content && typeof _.content != "string" && E(_.content);
2814
2814
  }
2815
2815
  };
2816
- e.hooks.add("after-tokenize", function(w) {
2817
- w.language !== "jsx" && w.language !== "tsx" || E(w.tokens);
2816
+ e.hooks.add("after-tokenize", function(v) {
2817
+ v.language !== "jsx" && v.language !== "tsx" || E(v.tokens);
2818
2818
  });
2819
2819
  })(Prism);
2820
2820
  (function(e) {
@@ -2908,7 +2908,7 @@ delete Prism.languages.go["class-name"];
2908
2908
  var r = e.languages.tsx.tag;
2909
2909
  r.pattern = RegExp(/(^|[^\w$]|(?=<\/))/.source + "(?:" + r.pattern.source + ")", r.pattern.flags), r.lookbehind = !0;
2910
2910
  })(Prism);
2911
- function lt() {
2911
+ function ut() {
2912
2912
  K.languages.wsx || (K.languages.wsx = K.languages.extend("tsx", {
2913
2913
  // WSX-specific decorators (e.g., @autoRegister, @state)
2914
2914
  decorator: {
@@ -2941,13 +2941,13 @@ function lt() {
2941
2941
  }
2942
2942
  }), K.languages.WSX = K.languages.wsx);
2943
2943
  }
2944
- lt();
2945
- var Fe;
2946
- let Re, Oe;
2944
+ ut();
2945
+ var Oe;
2946
+ let Le, Ne;
2947
2947
  function Q(e, t, r) {
2948
- return (t = Le(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
2948
+ return (t = $e(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
2949
2949
  }
2950
- function ct(e, t, r, o, _, P) {
2950
+ function dt(e, t, r, o, T, P) {
2951
2951
  function S(n, u, d) {
2952
2952
  return function(l, a) {
2953
2953
  return d && d(l), n[u].call(l, a);
@@ -2957,7 +2957,7 @@ function ct(e, t, r, o, _, P) {
2957
2957
  for (var d = 0; d < n.length; d++) n[d].call(u);
2958
2958
  return u;
2959
2959
  }
2960
- function w(n, u, d, l) {
2960
+ function v(n, u, d, l) {
2961
2961
  if (typeof n != "function" && (l || n !== void 0)) throw new TypeError(u + " must " + (d || "be") + " a function" + (l ? "" : " or undefined"));
2962
2962
  return n;
2963
2963
  }
@@ -2968,20 +2968,20 @@ function ct(e, t, r, o, _, P) {
2968
2968
  var x, I = u[0], F = u[3], $ = !g;
2969
2969
  if (!$) {
2970
2970
  d || Array.isArray(I) || (I = [I]);
2971
- var s = {}, R = [], v = a === 3 ? "get" : a === 4 || c ? "set" : "value";
2972
- h ? (m || c ? s = { get: pe(function() {
2971
+ var s = {}, R = [], w = a === 3 ? "get" : a === 4 || c ? "set" : "value";
2972
+ h ? (m || c ? s = { get: he(function() {
2973
2973
  return F(this);
2974
2974
  }, l, "get"), set: function(f) {
2975
2975
  u[4](this, f);
2976
- } } : s[v] = F, m || pe(s[v], l, a === 2 ? "" : v)) : m || (s = Object.getOwnPropertyDescriptor(n, l));
2976
+ } } : s[w] = F, m || he(s[w], l, a === 2 ? "" : w)) : m || (s = Object.getOwnPropertyDescriptor(n, l));
2977
2977
  }
2978
2978
  for (var y = n, M = I.length - 1; M >= 0; M -= d ? 2 : 1) {
2979
- var Z = I[M], B = d ? I[M - 1] : void 0, X = {}, C = { kind: ["field", "accessor", "method", "getter", "setter", "class"][a], name: l, metadata: i, addInitializer: (function(f, O) {
2979
+ var Z = I[M], B = d ? I[M - 1] : void 0, Y = {}, C = { kind: ["field", "accessor", "method", "getter", "setter", "class"][a], name: l, metadata: i, addInitializer: (function(f, O) {
2980
2980
  if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
2981
- w(O, "An initializer", "be", !0), p.push(O);
2982
- }).bind(null, X) };
2981
+ v(O, "An initializer", "be", !0), p.push(O);
2982
+ }).bind(null, Y) };
2983
2983
  try {
2984
- if ($) (x = w(Z.call(B, y, C), "class decorators", "return")) && (y = x);
2984
+ if ($) (x = v(Z.call(B, y, C), "class decorators", "return")) && (y = x);
2985
2985
  else {
2986
2986
  var j, z;
2987
2987
  C.static = k, C.private = h, h ? a === 2 ? j = function(f) {
@@ -2991,33 +2991,33 @@ function ct(e, t, r, o, _, P) {
2991
2991
  }, (a < 2 || a === 4) && (z = function(f, O) {
2992
2992
  f[l] = O;
2993
2993
  }));
2994
- var Y = C.access = { has: h ? b.bind() : function(f) {
2994
+ var X = C.access = { has: h ? b.bind() : function(f) {
2995
2995
  return l in f;
2996
2996
  } };
2997
- if (j && (Y.get = j), z && (Y.set = z), y = Z.call(B, c ? { get: s.get, set: s.set } : s[v], C), c) {
2998
- if (typeof y == "object" && y) (x = w(y.get, "accessor.get")) && (s.get = x), (x = w(y.set, "accessor.set")) && (s.set = x), (x = w(y.init, "accessor.init")) && R.push(x);
2997
+ if (j && (X.get = j), z && (X.set = z), y = Z.call(B, c ? { get: s.get, set: s.set } : s[w], C), c) {
2998
+ if (typeof y == "object" && y) (x = v(y.get, "accessor.get")) && (s.get = x), (x = v(y.set, "accessor.set")) && (s.set = x), (x = v(y.init, "accessor.init")) && R.push(x);
2999
2999
  else if (y !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
3000
- } else w(y, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(y) : s[v] = y);
3000
+ } else v(y, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(y) : s[w] = y);
3001
3001
  }
3002
3002
  } finally {
3003
- X.v = !0;
3003
+ Y.v = !0;
3004
3004
  }
3005
3005
  }
3006
3006
  return (m || c) && g.push(function(f, O) {
3007
3007
  for (var H = R.length - 1; H >= 0; H--) O = R[H].call(f, O);
3008
3008
  return O;
3009
- }), m || $ || (h ? c ? g.push(S(s, "get"), S(s, "set")) : g.push(a === 2 ? s[v] : S.call.bind(s[v])) : Object.defineProperty(n, l, s)), y;
3009
+ }), m || $ || (h ? c ? g.push(S(s, "get"), S(s, "set")) : g.push(a === 2 ? s[w] : S.call.bind(s[w])) : Object.defineProperty(n, l, s)), y;
3010
3010
  }
3011
3011
  function L(n, u) {
3012
3012
  return Object.defineProperty(n, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: u });
3013
3013
  }
3014
- if (arguments.length >= 6) var T = P[Symbol.metadata || Symbol.for("Symbol.metadata")];
3015
- var N = Object.create(T ?? null), U = function(n, u, d, l) {
3016
- var a, i, p = [], g = function(v) {
3017
- return dt(v) === n;
3014
+ if (arguments.length >= 6) var _ = P[Symbol.metadata || Symbol.for("Symbol.metadata")];
3015
+ var N = Object.create(_ ?? null), U = function(n, u, d, l) {
3016
+ var a, i, p = [], g = function(w) {
3017
+ return pt(w) === n;
3018
3018
  }, k = /* @__PURE__ */ new Map();
3019
- function h(v) {
3020
- v && p.push(E.bind(null, v));
3019
+ function h(w) {
3020
+ w && p.push(E.bind(null, w));
3021
3021
  }
3022
3022
  for (var m = 0; m < u.length; m++) {
3023
3023
  var c = u[m];
@@ -3028,21 +3028,21 @@ function ct(e, t, r, o, _, P) {
3028
3028
  if (R === !0 || R === 3 && b !== 4 || R === 4 && b !== 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: " + A);
3029
3029
  k.set(s, !(b > 2) || b);
3030
3030
  }
3031
- D(F ? n : n.prototype, c, I, x ? "#" + A : Le(A), b, l, F ? i = i || [] : a = a || [], p, F, x, $, b === 1, F && x ? g : d);
3031
+ D(F ? n : n.prototype, c, I, x ? "#" + A : $e(A), b, l, F ? i = i || [] : a = a || [], p, F, x, $, b === 1, F && x ? g : d);
3032
3032
  }
3033
3033
  }
3034
3034
  return h(a), h(i), p;
3035
- }(e, t, _, N);
3035
+ }(e, t, T, N);
3036
3036
  return r.length || L(e, N), { e: U, get c() {
3037
3037
  var n = [];
3038
3038
  return r.length && [L(D(e, [r], o, e.name, 5, N, n), N), E.bind(null, n, e)];
3039
3039
  } };
3040
3040
  }
3041
- function Le(e) {
3042
- var t = ut(e, "string");
3041
+ function $e(e) {
3042
+ var t = gt(e, "string");
3043
3043
  return typeof t == "symbol" ? t : t + "";
3044
3044
  }
3045
- function ut(e, t) {
3045
+ function gt(e, t) {
3046
3046
  if (typeof e != "object" || !e) return e;
3047
3047
  var r = e[Symbol.toPrimitive];
3048
3048
  if (r !== void 0) {
@@ -3052,7 +3052,7 @@ function ut(e, t) {
3052
3052
  }
3053
3053
  return String(e);
3054
3054
  }
3055
- function pe(e, t, r) {
3055
+ function he(e, t, r) {
3056
3056
  typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
3057
3057
  try {
3058
3058
  Object.defineProperty(e, "name", { configurable: !0, value: r ? r + " " + t : t });
@@ -3060,11 +3060,11 @@ function pe(e, t, r) {
3060
3060
  }
3061
3061
  return e;
3062
3062
  }
3063
- function dt(e) {
3063
+ function pt(e) {
3064
3064
  if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e !== null ? typeof e : "null"));
3065
3065
  return e;
3066
3066
  }
3067
- const gt = {
3067
+ const mt = {
3068
3068
  js: "javascript",
3069
3069
  ts: "typescript",
3070
3070
  py: "python",
@@ -3081,20 +3081,20 @@ const gt = {
3081
3081
  plain: "text",
3082
3082
  txt: "text"
3083
3083
  };
3084
- function me(e) {
3084
+ function be(e) {
3085
3085
  const t = e.toLowerCase().trim();
3086
- return gt[t] || t;
3086
+ return mt[t] || t;
3087
3087
  }
3088
- Oe = [W({
3088
+ Ne = [W({
3089
3089
  tagName: "wsx-marked-code"
3090
3090
  })];
3091
- let pt;
3092
- class mt extends q {
3091
+ let ft;
3092
+ class ht extends q {
3093
3093
  constructor() {
3094
3094
  super({
3095
- styles: de,
3095
+ styles: me,
3096
3096
  styleName: "wsx-marked-code"
3097
- }), Q(this, "_autoStyles", de), Q(this, "code", ""), Q(this, "language", ""), Q(this, "codeElement", null), Q(this, "isHighlighting", !1);
3097
+ }), Q(this, "_autoStyles", me), Q(this, "code", ""), Q(this, "language", ""), Q(this, "codeElement", null), Q(this, "isHighlighting", !1);
3098
3098
  }
3099
3099
  static get observedAttributes() {
3100
3100
  return ["code", "language"];
@@ -3107,7 +3107,7 @@ class mt extends q {
3107
3107
  (t = super.onRendered) == null || t.call(this), !this.isHighlighting && this.codeElement && this.highlightCode();
3108
3108
  }
3109
3109
  render() {
3110
- const t = me(this.language);
3110
+ const t = be(this.language);
3111
3111
  return /* @__PURE__ */ G("div", { class: "code-container" }, this.language && /* @__PURE__ */ G("span", { class: "language-label" }, this.language), /* @__PURE__ */ G("pre", null, /* @__PURE__ */ G("code", { class: t ? `language-${t}` : "", ref: (r) => {
3112
3112
  this.codeElement = r;
3113
3113
  } })));
@@ -3131,7 +3131,7 @@ class mt extends q {
3131
3131
  return;
3132
3132
  }
3133
3133
  this.codeElement.textContent = this.code;
3134
- const t = me(this.language);
3134
+ const t = be(this.language);
3135
3135
  if (t && K.languages[t])
3136
3136
  this.codeElement.className = `language-${t}`, K.highlightElement(this.codeElement);
3137
3137
  else if (t && t !== "text") {
@@ -3181,22 +3181,22 @@ class mt extends q {
3181
3181
  hashCode(t) {
3182
3182
  let r = 0;
3183
3183
  for (let o = 0; o < t.length; o++) {
3184
- const _ = t.charCodeAt(o);
3185
- r = (r << 5) - r + _, r = r & r;
3184
+ const T = t.charCodeAt(o);
3185
+ r = (r << 5) - r + T, r = r & r;
3186
3186
  }
3187
3187
  return r.toString(36);
3188
3188
  }
3189
3189
  }
3190
- Fe = mt;
3191
- [pt, Re] = ct(Fe, [], Oe, 0, void 0, q).c;
3192
- Re();
3193
- const fe = "wsx-marked-blockquote{display:block;margin:1rem 0;padding:1rem 1.5rem;border-left:4px solid var(--primary-red, #dc2626);background:var(--bg-secondary, #f9f9f9);border-radius:4px;font-style:italic;color:var(--text-secondary, #666)}";
3194
- var Ne;
3195
- let $e, Ce;
3196
- function ft(e, t, r) {
3197
- return (t = De(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
3190
+ Oe = ht;
3191
+ [ft, Le] = dt(Oe, [], Ne, 0, void 0, q).c;
3192
+ Le();
3193
+ const ke = "wsx-marked-blockquote{display:block;margin:1rem 0;padding:1rem 1.5rem;border-left:4px solid var(--primary-red, #dc2626);background:var(--bg-secondary, #f9f9f9);border-radius:4px;font-style:italic;color:var(--text-secondary, #666)}";
3194
+ var Ce;
3195
+ let De, Pe;
3196
+ function bt(e, t, r) {
3197
+ return (t = je(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
3198
3198
  }
3199
- function ht(e, t, r, o, _, P) {
3199
+ function kt(e, t, r, o, T, P) {
3200
3200
  function S(n, u, d) {
3201
3201
  return function(l, a) {
3202
3202
  return d && d(l), n[u].call(l, a);
@@ -3206,7 +3206,7 @@ function ht(e, t, r, o, _, P) {
3206
3206
  for (var d = 0; d < n.length; d++) n[d].call(u);
3207
3207
  return u;
3208
3208
  }
3209
- function w(n, u, d, l) {
3209
+ function v(n, u, d, l) {
3210
3210
  if (typeof n != "function" && (l || n !== void 0)) throw new TypeError(u + " must " + (d || "be") + " a function" + (l ? "" : " or undefined"));
3211
3211
  return n;
3212
3212
  }
@@ -3217,20 +3217,20 @@ function ht(e, t, r, o, _, P) {
3217
3217
  var x, I = u[0], F = u[3], $ = !g;
3218
3218
  if (!$) {
3219
3219
  d || Array.isArray(I) || (I = [I]);
3220
- var s = {}, R = [], v = a === 3 ? "get" : a === 4 || c ? "set" : "value";
3221
- h ? (m || c ? s = { get: he(function() {
3220
+ var s = {}, R = [], w = a === 3 ? "get" : a === 4 || c ? "set" : "value";
3221
+ h ? (m || c ? s = { get: ye(function() {
3222
3222
  return F(this);
3223
3223
  }, l, "get"), set: function(f) {
3224
3224
  u[4](this, f);
3225
- } } : s[v] = F, m || he(s[v], l, a === 2 ? "" : v)) : m || (s = Object.getOwnPropertyDescriptor(n, l));
3225
+ } } : s[w] = F, m || ye(s[w], l, a === 2 ? "" : w)) : m || (s = Object.getOwnPropertyDescriptor(n, l));
3226
3226
  }
3227
3227
  for (var y = n, M = I.length - 1; M >= 0; M -= d ? 2 : 1) {
3228
- var Z = I[M], B = d ? I[M - 1] : void 0, X = {}, C = { kind: ["field", "accessor", "method", "getter", "setter", "class"][a], name: l, metadata: i, addInitializer: (function(f, O) {
3228
+ var Z = I[M], B = d ? I[M - 1] : void 0, Y = {}, C = { kind: ["field", "accessor", "method", "getter", "setter", "class"][a], name: l, metadata: i, addInitializer: (function(f, O) {
3229
3229
  if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
3230
- w(O, "An initializer", "be", !0), p.push(O);
3231
- }).bind(null, X) };
3230
+ v(O, "An initializer", "be", !0), p.push(O);
3231
+ }).bind(null, Y) };
3232
3232
  try {
3233
- if ($) (x = w(Z.call(B, y, C), "class decorators", "return")) && (y = x);
3233
+ if ($) (x = v(Z.call(B, y, C), "class decorators", "return")) && (y = x);
3234
3234
  else {
3235
3235
  var j, z;
3236
3236
  C.static = k, C.private = h, h ? a === 2 ? j = function(f) {
@@ -3240,33 +3240,33 @@ function ht(e, t, r, o, _, P) {
3240
3240
  }, (a < 2 || a === 4) && (z = function(f, O) {
3241
3241
  f[l] = O;
3242
3242
  }));
3243
- var Y = C.access = { has: h ? b.bind() : function(f) {
3243
+ var X = C.access = { has: h ? b.bind() : function(f) {
3244
3244
  return l in f;
3245
3245
  } };
3246
- if (j && (Y.get = j), z && (Y.set = z), y = Z.call(B, c ? { get: s.get, set: s.set } : s[v], C), c) {
3247
- if (typeof y == "object" && y) (x = w(y.get, "accessor.get")) && (s.get = x), (x = w(y.set, "accessor.set")) && (s.set = x), (x = w(y.init, "accessor.init")) && R.push(x);
3246
+ if (j && (X.get = j), z && (X.set = z), y = Z.call(B, c ? { get: s.get, set: s.set } : s[w], C), c) {
3247
+ if (typeof y == "object" && y) (x = v(y.get, "accessor.get")) && (s.get = x), (x = v(y.set, "accessor.set")) && (s.set = x), (x = v(y.init, "accessor.init")) && R.push(x);
3248
3248
  else if (y !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
3249
- } else w(y, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(y) : s[v] = y);
3249
+ } else v(y, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(y) : s[w] = y);
3250
3250
  }
3251
3251
  } finally {
3252
- X.v = !0;
3252
+ Y.v = !0;
3253
3253
  }
3254
3254
  }
3255
3255
  return (m || c) && g.push(function(f, O) {
3256
3256
  for (var H = R.length - 1; H >= 0; H--) O = R[H].call(f, O);
3257
3257
  return O;
3258
- }), m || $ || (h ? c ? g.push(S(s, "get"), S(s, "set")) : g.push(a === 2 ? s[v] : S.call.bind(s[v])) : Object.defineProperty(n, l, s)), y;
3258
+ }), m || $ || (h ? c ? g.push(S(s, "get"), S(s, "set")) : g.push(a === 2 ? s[w] : S.call.bind(s[w])) : Object.defineProperty(n, l, s)), y;
3259
3259
  }
3260
3260
  function L(n, u) {
3261
3261
  return Object.defineProperty(n, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: u });
3262
3262
  }
3263
- if (arguments.length >= 6) var T = P[Symbol.metadata || Symbol.for("Symbol.metadata")];
3264
- var N = Object.create(T ?? null), U = function(n, u, d, l) {
3265
- var a, i, p = [], g = function(v) {
3266
- return kt(v) === n;
3263
+ if (arguments.length >= 6) var _ = P[Symbol.metadata || Symbol.for("Symbol.metadata")];
3264
+ var N = Object.create(_ ?? null), U = function(n, u, d, l) {
3265
+ var a, i, p = [], g = function(w) {
3266
+ return vt(w) === n;
3267
3267
  }, k = /* @__PURE__ */ new Map();
3268
- function h(v) {
3269
- v && p.push(E.bind(null, v));
3268
+ function h(w) {
3269
+ w && p.push(E.bind(null, w));
3270
3270
  }
3271
3271
  for (var m = 0; m < u.length; m++) {
3272
3272
  var c = u[m];
@@ -3277,21 +3277,21 @@ function ht(e, t, r, o, _, P) {
3277
3277
  if (R === !0 || R === 3 && b !== 4 || R === 4 && b !== 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: " + A);
3278
3278
  k.set(s, !(b > 2) || b);
3279
3279
  }
3280
- D(F ? n : n.prototype, c, I, x ? "#" + A : De(A), b, l, F ? i = i || [] : a = a || [], p, F, x, $, b === 1, F && x ? g : d);
3280
+ D(F ? n : n.prototype, c, I, x ? "#" + A : je(A), b, l, F ? i = i || [] : a = a || [], p, F, x, $, b === 1, F && x ? g : d);
3281
3281
  }
3282
3282
  }
3283
3283
  return h(a), h(i), p;
3284
- }(e, t, _, N);
3284
+ }(e, t, T, N);
3285
3285
  return r.length || L(e, N), { e: U, get c() {
3286
3286
  var n = [];
3287
3287
  return r.length && [L(D(e, [r], o, e.name, 5, N, n), N), E.bind(null, n, e)];
3288
3288
  } };
3289
3289
  }
3290
- function De(e) {
3291
- var t = bt(e, "string");
3290
+ function je(e) {
3291
+ var t = yt(e, "string");
3292
3292
  return typeof t == "symbol" ? t : t + "";
3293
3293
  }
3294
- function bt(e, t) {
3294
+ function yt(e, t) {
3295
3295
  if (typeof e != "object" || !e) return e;
3296
3296
  var r = e[Symbol.toPrimitive];
3297
3297
  if (r !== void 0) {
@@ -3301,7 +3301,7 @@ function bt(e, t) {
3301
3301
  }
3302
3302
  return String(e);
3303
3303
  }
3304
- function he(e, t, r) {
3304
+ function ye(e, t, r) {
3305
3305
  typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
3306
3306
  try {
3307
3307
  Object.defineProperty(e, "name", { configurable: !0, value: r ? r + " " + t : t });
@@ -3309,34 +3309,34 @@ function he(e, t, r) {
3309
3309
  }
3310
3310
  return e;
3311
3311
  }
3312
- function kt(e) {
3312
+ function vt(e) {
3313
3313
  if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e !== null ? typeof e : "null"));
3314
3314
  return e;
3315
3315
  }
3316
- Ce = [W({
3316
+ Pe = [W({
3317
3317
  tagName: "wsx-marked-blockquote"
3318
3318
  })];
3319
- let yt;
3320
- class vt extends q {
3319
+ let wt;
3320
+ class xt extends q {
3321
3321
  constructor() {
3322
3322
  super({
3323
- styles: fe,
3323
+ styles: ke,
3324
3324
  styleName: "wsx-marked-blockquote"
3325
- }), ft(this, "_autoStyles", fe);
3325
+ }), bt(this, "_autoStyles", ke);
3326
3326
  }
3327
3327
  render() {
3328
3328
  return /* @__PURE__ */ G("blockquote", null, /* @__PURE__ */ G("slot", null));
3329
3329
  }
3330
3330
  }
3331
- Ne = vt;
3332
- [yt, $e] = ht(Ne, [], Ce, 0, void 0, q).c;
3333
- $e();
3334
- var Pe;
3335
- let je, Me;
3336
- function xt(e, t, r) {
3337
- return (t = ze(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
3331
+ Ce = xt;
3332
+ [wt, De] = kt(Ce, [], Pe, 0, void 0, q).c;
3333
+ De();
3334
+ var Me;
3335
+ let ze, Ue;
3336
+ function Et(e, t, r) {
3337
+ return (t = Be(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
3338
3338
  }
3339
- function wt(e, t, r, o, _, P) {
3339
+ function At(e, t, r, o, T, P) {
3340
3340
  function S(n, u, d) {
3341
3341
  return function(l, a) {
3342
3342
  return d && d(l), n[u].call(l, a);
@@ -3346,7 +3346,7 @@ function wt(e, t, r, o, _, P) {
3346
3346
  for (var d = 0; d < n.length; d++) n[d].call(u);
3347
3347
  return u;
3348
3348
  }
3349
- function w(n, u, d, l) {
3349
+ function v(n, u, d, l) {
3350
3350
  if (typeof n != "function" && (l || n !== void 0)) throw new TypeError(u + " must " + (d || "be") + " a function" + (l ? "" : " or undefined"));
3351
3351
  return n;
3352
3352
  }
@@ -3357,20 +3357,20 @@ function wt(e, t, r, o, _, P) {
3357
3357
  var x, I = u[0], F = u[3], $ = !g;
3358
3358
  if (!$) {
3359
3359
  d || Array.isArray(I) || (I = [I]);
3360
- var s = {}, R = [], v = a === 3 ? "get" : a === 4 || c ? "set" : "value";
3361
- h ? (m || c ? s = { get: be(function() {
3360
+ var s = {}, R = [], w = a === 3 ? "get" : a === 4 || c ? "set" : "value";
3361
+ h ? (m || c ? s = { get: ve(function() {
3362
3362
  return F(this);
3363
3363
  }, l, "get"), set: function(f) {
3364
3364
  u[4](this, f);
3365
- } } : s[v] = F, m || be(s[v], l, a === 2 ? "" : v)) : m || (s = Object.getOwnPropertyDescriptor(n, l));
3365
+ } } : s[w] = F, m || ve(s[w], l, a === 2 ? "" : w)) : m || (s = Object.getOwnPropertyDescriptor(n, l));
3366
3366
  }
3367
3367
  for (var y = n, M = I.length - 1; M >= 0; M -= d ? 2 : 1) {
3368
- var Z = I[M], B = d ? I[M - 1] : void 0, X = {}, C = { kind: ["field", "accessor", "method", "getter", "setter", "class"][a], name: l, metadata: i, addInitializer: (function(f, O) {
3368
+ var Z = I[M], B = d ? I[M - 1] : void 0, Y = {}, C = { kind: ["field", "accessor", "method", "getter", "setter", "class"][a], name: l, metadata: i, addInitializer: (function(f, O) {
3369
3369
  if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
3370
- w(O, "An initializer", "be", !0), p.push(O);
3371
- }).bind(null, X) };
3370
+ v(O, "An initializer", "be", !0), p.push(O);
3371
+ }).bind(null, Y) };
3372
3372
  try {
3373
- if ($) (x = w(Z.call(B, y, C), "class decorators", "return")) && (y = x);
3373
+ if ($) (x = v(Z.call(B, y, C), "class decorators", "return")) && (y = x);
3374
3374
  else {
3375
3375
  var j, z;
3376
3376
  C.static = k, C.private = h, h ? a === 2 ? j = function(f) {
@@ -3380,33 +3380,33 @@ function wt(e, t, r, o, _, P) {
3380
3380
  }, (a < 2 || a === 4) && (z = function(f, O) {
3381
3381
  f[l] = O;
3382
3382
  }));
3383
- var Y = C.access = { has: h ? b.bind() : function(f) {
3383
+ var X = C.access = { has: h ? b.bind() : function(f) {
3384
3384
  return l in f;
3385
3385
  } };
3386
- if (j && (Y.get = j), z && (Y.set = z), y = Z.call(B, c ? { get: s.get, set: s.set } : s[v], C), c) {
3387
- if (typeof y == "object" && y) (x = w(y.get, "accessor.get")) && (s.get = x), (x = w(y.set, "accessor.set")) && (s.set = x), (x = w(y.init, "accessor.init")) && R.push(x);
3386
+ if (j && (X.get = j), z && (X.set = z), y = Z.call(B, c ? { get: s.get, set: s.set } : s[w], C), c) {
3387
+ if (typeof y == "object" && y) (x = v(y.get, "accessor.get")) && (s.get = x), (x = v(y.set, "accessor.set")) && (s.set = x), (x = v(y.init, "accessor.init")) && R.push(x);
3388
3388
  else if (y !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
3389
- } else w(y, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(y) : s[v] = y);
3389
+ } else v(y, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(y) : s[w] = y);
3390
3390
  }
3391
3391
  } finally {
3392
- X.v = !0;
3392
+ Y.v = !0;
3393
3393
  }
3394
3394
  }
3395
3395
  return (m || c) && g.push(function(f, O) {
3396
3396
  for (var H = R.length - 1; H >= 0; H--) O = R[H].call(f, O);
3397
3397
  return O;
3398
- }), m || $ || (h ? c ? g.push(S(s, "get"), S(s, "set")) : g.push(a === 2 ? s[v] : S.call.bind(s[v])) : Object.defineProperty(n, l, s)), y;
3398
+ }), m || $ || (h ? c ? g.push(S(s, "get"), S(s, "set")) : g.push(a === 2 ? s[w] : S.call.bind(s[w])) : Object.defineProperty(n, l, s)), y;
3399
3399
  }
3400
3400
  function L(n, u) {
3401
3401
  return Object.defineProperty(n, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: u });
3402
3402
  }
3403
- if (arguments.length >= 6) var T = P[Symbol.metadata || Symbol.for("Symbol.metadata")];
3404
- var N = Object.create(T ?? null), U = function(n, u, d, l) {
3405
- var a, i, p = [], g = function(v) {
3406
- return At(v) === n;
3403
+ if (arguments.length >= 6) var _ = P[Symbol.metadata || Symbol.for("Symbol.metadata")];
3404
+ var N = Object.create(_ ?? null), U = function(n, u, d, l) {
3405
+ var a, i, p = [], g = function(w) {
3406
+ return Tt(w) === n;
3407
3407
  }, k = /* @__PURE__ */ new Map();
3408
- function h(v) {
3409
- v && p.push(E.bind(null, v));
3408
+ function h(w) {
3409
+ w && p.push(E.bind(null, w));
3410
3410
  }
3411
3411
  for (var m = 0; m < u.length; m++) {
3412
3412
  var c = u[m];
@@ -3417,21 +3417,21 @@ function wt(e, t, r, o, _, P) {
3417
3417
  if (R === !0 || R === 3 && b !== 4 || R === 4 && b !== 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: " + A);
3418
3418
  k.set(s, !(b > 2) || b);
3419
3419
  }
3420
- D(F ? n : n.prototype, c, I, x ? "#" + A : ze(A), b, l, F ? i = i || [] : a = a || [], p, F, x, $, b === 1, F && x ? g : d);
3420
+ D(F ? n : n.prototype, c, I, x ? "#" + A : Be(A), b, l, F ? i = i || [] : a = a || [], p, F, x, $, b === 1, F && x ? g : d);
3421
3421
  }
3422
3422
  }
3423
3423
  return h(a), h(i), p;
3424
- }(e, t, _, N);
3424
+ }(e, t, T, N);
3425
3425
  return r.length || L(e, N), { e: U, get c() {
3426
3426
  var n = [];
3427
3427
  return r.length && [L(D(e, [r], o, e.name, 5, N, n), N), E.bind(null, n, e)];
3428
3428
  } };
3429
3429
  }
3430
- function ze(e) {
3431
- var t = Et(e, "string");
3430
+ function Be(e) {
3431
+ var t = St(e, "string");
3432
3432
  return typeof t == "symbol" ? t : t + "";
3433
3433
  }
3434
- function Et(e, t) {
3434
+ function St(e, t) {
3435
3435
  if (typeof e != "object" || !e) return e;
3436
3436
  var r = e[Symbol.toPrimitive];
3437
3437
  if (r !== void 0) {
@@ -3441,7 +3441,7 @@ function Et(e, t) {
3441
3441
  }
3442
3442
  return String(e);
3443
3443
  }
3444
- function be(e, t, r) {
3444
+ function ve(e, t, r) {
3445
3445
  typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
3446
3446
  try {
3447
3447
  Object.defineProperty(e, "name", { configurable: !0, value: r ? r + " " + t : t });
@@ -3449,19 +3449,19 @@ function be(e, t, r) {
3449
3449
  }
3450
3450
  return e;
3451
3451
  }
3452
- function At(e) {
3452
+ function Tt(e) {
3453
3453
  if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e !== null ? typeof e : "null"));
3454
3454
  return e;
3455
3455
  }
3456
- Me = [W({
3456
+ Ue = [W({
3457
3457
  tagName: "wsx-marked-paragraph"
3458
3458
  })];
3459
- let St;
3460
- class _t extends q {
3459
+ let _t;
3460
+ class It extends q {
3461
3461
  constructor() {
3462
3462
  super({
3463
3463
  styleName: "wsx-marked-paragraph"
3464
- }), xt(this, "content", void 0);
3464
+ }), Et(this, "content", void 0);
3465
3465
  const [t, r] = this.useState("content", "");
3466
3466
  Object.defineProperty(this, "content", {
3467
3467
  get: t,
@@ -3480,15 +3480,15 @@ class _t extends q {
3480
3480
  return /* @__PURE__ */ G("p", { class: "marked-paragraph" }, this.content);
3481
3481
  }
3482
3482
  }
3483
- Pe = _t;
3484
- [St, je] = wt(Pe, [], Me, 0, void 0, q).c;
3485
- je();
3486
- var Ue;
3487
- let Be, He;
3488
- function ke(e, t, r) {
3489
- return (t = Ge(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
3483
+ Me = It;
3484
+ [_t, ze] = At(Me, [], Ue, 0, void 0, q).c;
3485
+ ze();
3486
+ var He;
3487
+ let Ge, Ze;
3488
+ function we(e, t, r) {
3489
+ return (t = Xe(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
3490
3490
  }
3491
- function Tt(e, t, r, o, _, P) {
3491
+ function Ft(e, t, r, o, T, P) {
3492
3492
  function S(n, u, d) {
3493
3493
  return function(l, a) {
3494
3494
  return d && d(l), n[u].call(l, a);
@@ -3498,7 +3498,7 @@ function Tt(e, t, r, o, _, P) {
3498
3498
  for (var d = 0; d < n.length; d++) n[d].call(u);
3499
3499
  return u;
3500
3500
  }
3501
- function w(n, u, d, l) {
3501
+ function v(n, u, d, l) {
3502
3502
  if (typeof n != "function" && (l || n !== void 0)) throw new TypeError(u + " must " + (d || "be") + " a function" + (l ? "" : " or undefined"));
3503
3503
  return n;
3504
3504
  }
@@ -3509,20 +3509,20 @@ function Tt(e, t, r, o, _, P) {
3509
3509
  var x, I = u[0], F = u[3], $ = !g;
3510
3510
  if (!$) {
3511
3511
  d || Array.isArray(I) || (I = [I]);
3512
- var s = {}, R = [], v = a === 3 ? "get" : a === 4 || c ? "set" : "value";
3513
- h ? (m || c ? s = { get: ye(function() {
3512
+ var s = {}, R = [], w = a === 3 ? "get" : a === 4 || c ? "set" : "value";
3513
+ h ? (m || c ? s = { get: xe(function() {
3514
3514
  return F(this);
3515
3515
  }, l, "get"), set: function(f) {
3516
3516
  u[4](this, f);
3517
- } } : s[v] = F, m || ye(s[v], l, a === 2 ? "" : v)) : m || (s = Object.getOwnPropertyDescriptor(n, l));
3517
+ } } : s[w] = F, m || xe(s[w], l, a === 2 ? "" : w)) : m || (s = Object.getOwnPropertyDescriptor(n, l));
3518
3518
  }
3519
3519
  for (var y = n, M = I.length - 1; M >= 0; M -= d ? 2 : 1) {
3520
- var Z = I[M], B = d ? I[M - 1] : void 0, X = {}, C = { kind: ["field", "accessor", "method", "getter", "setter", "class"][a], name: l, metadata: i, addInitializer: (function(f, O) {
3520
+ var Z = I[M], B = d ? I[M - 1] : void 0, Y = {}, C = { kind: ["field", "accessor", "method", "getter", "setter", "class"][a], name: l, metadata: i, addInitializer: (function(f, O) {
3521
3521
  if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
3522
- w(O, "An initializer", "be", !0), p.push(O);
3523
- }).bind(null, X) };
3522
+ v(O, "An initializer", "be", !0), p.push(O);
3523
+ }).bind(null, Y) };
3524
3524
  try {
3525
- if ($) (x = w(Z.call(B, y, C), "class decorators", "return")) && (y = x);
3525
+ if ($) (x = v(Z.call(B, y, C), "class decorators", "return")) && (y = x);
3526
3526
  else {
3527
3527
  var j, z;
3528
3528
  C.static = k, C.private = h, h ? a === 2 ? j = function(f) {
@@ -3532,33 +3532,33 @@ function Tt(e, t, r, o, _, P) {
3532
3532
  }, (a < 2 || a === 4) && (z = function(f, O) {
3533
3533
  f[l] = O;
3534
3534
  }));
3535
- var Y = C.access = { has: h ? b.bind() : function(f) {
3535
+ var X = C.access = { has: h ? b.bind() : function(f) {
3536
3536
  return l in f;
3537
3537
  } };
3538
- if (j && (Y.get = j), z && (Y.set = z), y = Z.call(B, c ? { get: s.get, set: s.set } : s[v], C), c) {
3539
- if (typeof y == "object" && y) (x = w(y.get, "accessor.get")) && (s.get = x), (x = w(y.set, "accessor.set")) && (s.set = x), (x = w(y.init, "accessor.init")) && R.push(x);
3538
+ if (j && (X.get = j), z && (X.set = z), y = Z.call(B, c ? { get: s.get, set: s.set } : s[w], C), c) {
3539
+ if (typeof y == "object" && y) (x = v(y.get, "accessor.get")) && (s.get = x), (x = v(y.set, "accessor.set")) && (s.set = x), (x = v(y.init, "accessor.init")) && R.push(x);
3540
3540
  else if (y !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
3541
- } else w(y, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(y) : s[v] = y);
3541
+ } else v(y, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(y) : s[w] = y);
3542
3542
  }
3543
3543
  } finally {
3544
- X.v = !0;
3544
+ Y.v = !0;
3545
3545
  }
3546
3546
  }
3547
3547
  return (m || c) && g.push(function(f, O) {
3548
3548
  for (var H = R.length - 1; H >= 0; H--) O = R[H].call(f, O);
3549
3549
  return O;
3550
- }), m || $ || (h ? c ? g.push(S(s, "get"), S(s, "set")) : g.push(a === 2 ? s[v] : S.call.bind(s[v])) : Object.defineProperty(n, l, s)), y;
3550
+ }), m || $ || (h ? c ? g.push(S(s, "get"), S(s, "set")) : g.push(a === 2 ? s[w] : S.call.bind(s[w])) : Object.defineProperty(n, l, s)), y;
3551
3551
  }
3552
3552
  function L(n, u) {
3553
3553
  return Object.defineProperty(n, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: u });
3554
3554
  }
3555
- if (arguments.length >= 6) var T = P[Symbol.metadata || Symbol.for("Symbol.metadata")];
3556
- var N = Object.create(T ?? null), U = function(n, u, d, l) {
3557
- var a, i, p = [], g = function(v) {
3558
- return Ft(v) === n;
3555
+ if (arguments.length >= 6) var _ = P[Symbol.metadata || Symbol.for("Symbol.metadata")];
3556
+ var N = Object.create(_ ?? null), U = function(n, u, d, l) {
3557
+ var a, i, p = [], g = function(w) {
3558
+ return Ot(w) === n;
3559
3559
  }, k = /* @__PURE__ */ new Map();
3560
- function h(v) {
3561
- v && p.push(E.bind(null, v));
3560
+ function h(w) {
3561
+ w && p.push(E.bind(null, w));
3562
3562
  }
3563
3563
  for (var m = 0; m < u.length; m++) {
3564
3564
  var c = u[m];
@@ -3569,21 +3569,21 @@ function Tt(e, t, r, o, _, P) {
3569
3569
  if (R === !0 || R === 3 && b !== 4 || R === 4 && b !== 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: " + A);
3570
3570
  k.set(s, !(b > 2) || b);
3571
3571
  }
3572
- D(F ? n : n.prototype, c, I, x ? "#" + A : Ge(A), b, l, F ? i = i || [] : a = a || [], p, F, x, $, b === 1, F && x ? g : d);
3572
+ D(F ? n : n.prototype, c, I, x ? "#" + A : Xe(A), b, l, F ? i = i || [] : a = a || [], p, F, x, $, b === 1, F && x ? g : d);
3573
3573
  }
3574
3574
  }
3575
3575
  return h(a), h(i), p;
3576
- }(e, t, _, N);
3576
+ }(e, t, T, N);
3577
3577
  return r.length || L(e, N), { e: U, get c() {
3578
3578
  var n = [];
3579
3579
  return r.length && [L(D(e, [r], o, e.name, 5, N, n), N), E.bind(null, n, e)];
3580
3580
  } };
3581
3581
  }
3582
- function Ge(e) {
3583
- var t = It(e, "string");
3582
+ function Xe(e) {
3583
+ var t = Rt(e, "string");
3584
3584
  return typeof t == "symbol" ? t : t + "";
3585
3585
  }
3586
- function It(e, t) {
3586
+ function Rt(e, t) {
3587
3587
  if (typeof e != "object" || !e) return e;
3588
3588
  var r = e[Symbol.toPrimitive];
3589
3589
  if (r !== void 0) {
@@ -3593,7 +3593,7 @@ function It(e, t) {
3593
3593
  }
3594
3594
  return String(e);
3595
3595
  }
3596
- function ye(e, t, r) {
3596
+ function xe(e, t, r) {
3597
3597
  typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
3598
3598
  try {
3599
3599
  Object.defineProperty(e, "name", { configurable: !0, value: r ? r + " " + t : t });
@@ -3601,17 +3601,17 @@ function ye(e, t, r) {
3601
3601
  }
3602
3602
  return e;
3603
3603
  }
3604
- function Ft(e) {
3604
+ function Ot(e) {
3605
3605
  if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e !== null ? typeof e : "null"));
3606
3606
  return e;
3607
3607
  }
3608
- He = [W({
3608
+ Ze = [W({
3609
3609
  tagName: "wsx-marked-list"
3610
3610
  })];
3611
- let Rt;
3612
- class Ot extends q {
3611
+ let Lt;
3612
+ class Nt extends q {
3613
3613
  constructor() {
3614
- super(), ke(this, "ordered", void 0), ke(this, "items", void 0);
3614
+ super(), we(this, "ordered", void 0), we(this, "items", void 0);
3615
3615
  const [t, r] = this.useState("ordered", !1);
3616
3616
  Object.defineProperty(this, "ordered", {
3617
3617
  get: t,
@@ -3622,8 +3622,8 @@ class Ot extends q {
3622
3622
  let o = this.reactive([]);
3623
3623
  Object.defineProperty(this, "items", {
3624
3624
  get: () => o,
3625
- set: (_) => {
3626
- o = _ !== null && typeof _ < "u" && (Array.isArray(_) || typeof _ == "object") ? this.reactive(_) : _, this.scheduleRerender();
3625
+ set: (T) => {
3626
+ o = T !== null && typeof T < "u" && (Array.isArray(T) || typeof T == "object") ? this.reactive(T) : T, this.scheduleRerender();
3627
3627
  },
3628
3628
  enumerable: !0,
3629
3629
  configurable: !0
@@ -3633,15 +3633,15 @@ class Ot extends q {
3633
3633
  return this.ordered ? /* @__PURE__ */ G("ol", { class: "marked-list" }, this.items.map((t, r) => /* @__PURE__ */ G("li", { key: r, class: "marked-list-item" }, t))) : /* @__PURE__ */ G("ul", { class: "marked-list" }, this.items.map((t, r) => /* @__PURE__ */ G("li", { key: r, class: "marked-list-item" }, t)));
3634
3634
  }
3635
3635
  }
3636
- Ue = Ot;
3637
- [Rt, Be] = Tt(Ue, [], He, 0, void 0, q).c;
3638
- Be();
3639
- var Ze;
3640
- let Ye, Xe;
3641
- function Lt(e, t, r) {
3642
- return (t = qe(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
3636
+ He = Nt;
3637
+ [Lt, Ge] = Ft(He, [], Ze, 0, void 0, q).c;
3638
+ Ge();
3639
+ var Ye;
3640
+ let qe, Ke;
3641
+ function $t(e, t, r) {
3642
+ return (t = We(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
3643
3643
  }
3644
- function Nt(e, t, r, o, _, P) {
3644
+ function Ct(e, t, r, o, T, P) {
3645
3645
  function S(n, u, d) {
3646
3646
  return function(l, a) {
3647
3647
  return d && d(l), n[u].call(l, a);
@@ -3651,7 +3651,7 @@ function Nt(e, t, r, o, _, P) {
3651
3651
  for (var d = 0; d < n.length; d++) n[d].call(u);
3652
3652
  return u;
3653
3653
  }
3654
- function w(n, u, d, l) {
3654
+ function v(n, u, d, l) {
3655
3655
  if (typeof n != "function" && (l || n !== void 0)) throw new TypeError(u + " must " + (d || "be") + " a function" + (l ? "" : " or undefined"));
3656
3656
  return n;
3657
3657
  }
@@ -3662,20 +3662,20 @@ function Nt(e, t, r, o, _, P) {
3662
3662
  var x, I = u[0], F = u[3], $ = !g;
3663
3663
  if (!$) {
3664
3664
  d || Array.isArray(I) || (I = [I]);
3665
- var s = {}, R = [], v = a === 3 ? "get" : a === 4 || c ? "set" : "value";
3666
- h ? (m || c ? s = { get: ve(function() {
3665
+ var s = {}, R = [], w = a === 3 ? "get" : a === 4 || c ? "set" : "value";
3666
+ h ? (m || c ? s = { get: Ee(function() {
3667
3667
  return F(this);
3668
3668
  }, l, "get"), set: function(f) {
3669
3669
  u[4](this, f);
3670
- } } : s[v] = F, m || ve(s[v], l, a === 2 ? "" : v)) : m || (s = Object.getOwnPropertyDescriptor(n, l));
3670
+ } } : s[w] = F, m || Ee(s[w], l, a === 2 ? "" : w)) : m || (s = Object.getOwnPropertyDescriptor(n, l));
3671
3671
  }
3672
3672
  for (var y = n, M = I.length - 1; M >= 0; M -= d ? 2 : 1) {
3673
- var Z = I[M], B = d ? I[M - 1] : void 0, X = {}, C = { kind: ["field", "accessor", "method", "getter", "setter", "class"][a], name: l, metadata: i, addInitializer: (function(f, O) {
3674
- if (f.v) throw se("attempted to call addInitializer after decoration was finished");
3675
- w(O, "An initializer", "be", !0), p.push(O);
3676
- }).bind(null, X) };
3673
+ var Z = I[M], B = d ? I[M - 1] : void 0, Y = {}, C = { kind: ["field", "accessor", "method", "getter", "setter", "class"][a], name: l, metadata: i, addInitializer: (function(f, O) {
3674
+ if (f.v) throw le("attempted to call addInitializer after decoration was finished");
3675
+ v(O, "An initializer", "be", !0), p.push(O);
3676
+ }).bind(null, Y) };
3677
3677
  try {
3678
- if ($) (x = w(Z.call(B, y, C), "class decorators", "return")) && (y = x);
3678
+ if ($) (x = v(Z.call(B, y, C), "class decorators", "return")) && (y = x);
3679
3679
  else {
3680
3680
  var j, z;
3681
3681
  C.static = k, C.private = h, h ? a === 2 ? j = function(f) {
@@ -3685,33 +3685,33 @@ function Nt(e, t, r, o, _, P) {
3685
3685
  }, (a < 2 || a === 4) && (z = function(f, O) {
3686
3686
  f[l] = O;
3687
3687
  }));
3688
- var Y = C.access = { has: h ? b.bind() : function(f) {
3688
+ var X = C.access = { has: h ? b.bind() : function(f) {
3689
3689
  return l in f;
3690
3690
  } };
3691
- if (j && (Y.get = j), z && (Y.set = z), y = Z.call(B, c ? { get: s.get, set: s.set } : s[v], C), c) {
3692
- if (typeof y == "object" && y) (x = w(y.get, "accessor.get")) && (s.get = x), (x = w(y.set, "accessor.set")) && (s.set = x), (x = w(y.init, "accessor.init")) && R.push(x);
3691
+ if (j && (X.get = j), z && (X.set = z), y = Z.call(B, c ? { get: s.get, set: s.set } : s[w], C), c) {
3692
+ if (typeof y == "object" && y) (x = v(y.get, "accessor.get")) && (s.get = x), (x = v(y.set, "accessor.set")) && (s.set = x), (x = v(y.init, "accessor.init")) && R.push(x);
3693
3693
  else if (y !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
3694
- } else w(y, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(y) : s[v] = y);
3694
+ } else v(y, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(y) : s[w] = y);
3695
3695
  }
3696
3696
  } finally {
3697
- X.v = !0;
3697
+ Y.v = !0;
3698
3698
  }
3699
3699
  }
3700
3700
  return (m || c) && g.push(function(f, O) {
3701
3701
  for (var H = R.length - 1; H >= 0; H--) O = R[H].call(f, O);
3702
3702
  return O;
3703
- }), m || $ || (h ? c ? g.push(S(s, "get"), S(s, "set")) : g.push(a === 2 ? s[v] : S.call.bind(s[v])) : Object.defineProperty(n, l, s)), y;
3703
+ }), m || $ || (h ? c ? g.push(S(s, "get"), S(s, "set")) : g.push(a === 2 ? s[w] : S.call.bind(s[w])) : Object.defineProperty(n, l, s)), y;
3704
3704
  }
3705
3705
  function L(n, u) {
3706
3706
  return Object.defineProperty(n, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: u });
3707
3707
  }
3708
- if (arguments.length >= 6) var T = P[Symbol.metadata || Symbol.for("Symbol.metadata")];
3709
- var N = Object.create(T ?? null), U = function(n, u, d, l) {
3710
- var a, i, p = [], g = function(v) {
3711
- return Ct(v) === n;
3708
+ if (arguments.length >= 6) var _ = P[Symbol.metadata || Symbol.for("Symbol.metadata")];
3709
+ var N = Object.create(_ ?? null), U = function(n, u, d, l) {
3710
+ var a, i, p = [], g = function(w) {
3711
+ return Pt(w) === n;
3712
3712
  }, k = /* @__PURE__ */ new Map();
3713
- function h(v) {
3714
- v && p.push(E.bind(null, v));
3713
+ function h(w) {
3714
+ w && p.push(E.bind(null, w));
3715
3715
  }
3716
3716
  for (var m = 0; m < u.length; m++) {
3717
3717
  var c = u[m];
@@ -3719,24 +3719,24 @@ function Nt(e, t, r, o, _, P) {
3719
3719
  var b = c[1], A = c[2], x = c.length > 3, I = 16 & b, F = !!(8 & b), $ = (b &= 7) == 0, s = A + "/" + F;
3720
3720
  if (!$ && !x) {
3721
3721
  var R = k.get(s);
3722
- if (R === !0 || R === 3 && b !== 4 || R === 4 && b !== 3) throw se("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: " + A);
3722
+ if (R === !0 || R === 3 && b !== 4 || R === 4 && b !== 3) throw le("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: " + A);
3723
3723
  k.set(s, !(b > 2) || b);
3724
3724
  }
3725
- D(F ? n : n.prototype, c, I, x ? "#" + A : qe(A), b, l, F ? i = i || [] : a = a || [], p, F, x, $, b === 1, F && x ? g : d);
3725
+ D(F ? n : n.prototype, c, I, x ? "#" + A : We(A), b, l, F ? i = i || [] : a = a || [], p, F, x, $, b === 1, F && x ? g : d);
3726
3726
  }
3727
3727
  }
3728
3728
  return h(a), h(i), p;
3729
- }(e, t, _, N);
3729
+ }(e, t, T, N);
3730
3730
  return r.length || L(e, N), { e: U, get c() {
3731
3731
  var n = [];
3732
3732
  return r.length && [L(D(e, [r], o, e.name, 5, N, n), N), E.bind(null, n, e)];
3733
3733
  } };
3734
3734
  }
3735
- function qe(e) {
3736
- var t = $t(e, "string");
3735
+ function We(e) {
3736
+ var t = Dt(e, "string");
3737
3737
  return typeof t == "symbol" ? t : t + "";
3738
3738
  }
3739
- function $t(e, t) {
3739
+ function Dt(e, t) {
3740
3740
  if (typeof e != "object" || !e) return e;
3741
3741
  var r = e[Symbol.toPrimitive];
3742
3742
  if (r !== void 0) {
@@ -3746,7 +3746,7 @@ function $t(e, t) {
3746
3746
  }
3747
3747
  return String(e);
3748
3748
  }
3749
- function ve(e, t, r) {
3749
+ function Ee(e, t, r) {
3750
3750
  typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
3751
3751
  try {
3752
3752
  Object.defineProperty(e, "name", { configurable: !0, value: r ? r + " " + t : t });
@@ -3754,18 +3754,18 @@ function ve(e, t, r) {
3754
3754
  }
3755
3755
  return e;
3756
3756
  }
3757
- function Ct(e) {
3757
+ function Pt(e) {
3758
3758
  if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e !== null ? typeof e : "null"));
3759
3759
  return e;
3760
3760
  }
3761
- Xe = [W({
3761
+ Ke = [W({
3762
3762
  tagName: "wsx-marked-error"
3763
3763
  })];
3764
- let Dt, se = class extends q {
3764
+ let jt, le = class extends q {
3765
3765
  constructor() {
3766
3766
  super({
3767
3767
  styleName: "wsx-marked-error"
3768
- }), Lt(this, "message", "");
3768
+ }), $t(this, "message", "");
3769
3769
  }
3770
3770
  static get observedAttributes() {
3771
3771
  return ["message"];
@@ -3777,10 +3777,10 @@ let Dt, se = class extends q {
3777
3777
  return /* @__PURE__ */ G("div", { class: "error" }, this.message);
3778
3778
  }
3779
3779
  };
3780
- Ze = se;
3781
- [Dt, Ye] = Nt(Ze, [], Xe, 0, void 0, q).c;
3782
- Ye();
3783
- const ae = {
3780
+ Ye = le;
3781
+ [jt, qe] = Ct(Ye, [], Ke, 0, void 0, q).c;
3782
+ qe();
3783
+ const oe = {
3784
3784
  trace: 0,
3785
3785
  debug: 1,
3786
3786
  info: 2,
@@ -3788,7 +3788,7 @@ const ae = {
3788
3788
  error: 4,
3789
3789
  silent: 5
3790
3790
  };
3791
- function ie() {
3791
+ function ce() {
3792
3792
  var e, t;
3793
3793
  if (typeof process < "u")
3794
3794
  return process.env.NODE_ENV === "production" || process.env.MODE === "production";
@@ -3802,23 +3802,23 @@ function ie() {
3802
3802
  }
3803
3803
  return !1;
3804
3804
  }
3805
- const xe = {
3805
+ const Ae = {
3806
3806
  name: "WSX",
3807
- level: ie() ? "info" : "debug",
3808
- pretty: !ie()
3807
+ level: ce() ? "info" : "debug",
3808
+ pretty: !ce()
3809
3809
  };
3810
3810
  function V(e, t) {
3811
3811
  return e ? `[${e}] ${t}` : t;
3812
3812
  }
3813
- class Pt {
3813
+ class Mt {
3814
3814
  constructor(t, r) {
3815
- this.name = t, this.level = r, this.levelValue = ae[r], this.isProd = ie();
3815
+ this.name = t, this.level = r, this.levelValue = oe[r], this.isProd = ce();
3816
3816
  }
3817
3817
  /**
3818
3818
  * Check if a log level should be logged
3819
3819
  */
3820
3820
  shouldLog(t) {
3821
- return this.level === "silent" ? !1 : ae[t] >= this.levelValue;
3821
+ return this.level === "silent" ? !1 : oe[t] >= this.levelValue;
3822
3822
  }
3823
3823
  trace(t, ...r) {
3824
3824
  if (!this.isProd || this.shouldLog("trace")) {
@@ -3854,7 +3854,7 @@ class Pt {
3854
3854
  * Set the log level dynamically
3855
3855
  */
3856
3856
  setLevel(t) {
3857
- this.level = t, this.levelValue = ae[t];
3857
+ this.level = t, this.levelValue = oe[t];
3858
3858
  }
3859
3859
  /**
3860
3860
  * Get the current log level
@@ -3863,9 +3863,9 @@ class Pt {
3863
3863
  return this.level;
3864
3864
  }
3865
3865
  }
3866
- class Ke {
3866
+ class Ve {
3867
3867
  constructor(t = {}) {
3868
- this.name = t.name || xe.name, this.currentLevel = t.level || xe.level, this.nativeLogger = new Pt(this.name, this.currentLevel);
3868
+ this.name = t.name || Ae.name, this.currentLevel = t.level || Ae.level, this.nativeLogger = new Mt(this.name, this.currentLevel);
3869
3869
  }
3870
3870
  debug(t, ...r) {
3871
3871
  this.nativeLogger.debug(t, ...r);
@@ -3899,18 +3899,18 @@ class Ke {
3899
3899
  return this.nativeLogger.getLevel();
3900
3900
  }
3901
3901
  }
3902
- new Ke();
3903
- function jt(e, t = {}) {
3904
- return new Ke({
3902
+ new Ve();
3903
+ function zt(e, t = {}) {
3904
+ return new Ve({
3905
3905
  ...t,
3906
3906
  name: t.name || `WSX:${e}`
3907
3907
  });
3908
3908
  }
3909
- function we(e) {
3909
+ function se(e) {
3910
3910
  const t = document.createElement("div");
3911
3911
  return t.textContent = e, t.innerHTML;
3912
3912
  }
3913
- function Kt(e) {
3913
+ function Vt(e) {
3914
3914
  if (!e || !Array.isArray(e))
3915
3915
  return [];
3916
3916
  const t = [];
@@ -3918,7 +3918,7 @@ function Kt(e) {
3918
3918
  if (r.type === "paragraph") {
3919
3919
  const o = r;
3920
3920
  o.tokens && Array.isArray(o.tokens) && t.push(...o.tokens);
3921
- } else (r.type === "text" || r.type === "strong" || r.type === "em" || r.type === "link" || r.type === "code" || r.type === "br") && t.push(r);
3921
+ } else (r.type === "text" || r.type === "strong" || r.type === "em" || r.type === "link" || r.type === "code" || r.type === "codespan" || r.type === "br") && t.push(r);
3922
3922
  }), t;
3923
3923
  }
3924
3924
  function J(e) {
@@ -3935,11 +3935,13 @@ function J(e) {
3935
3935
  return `<em>${J(o)}</em>`;
3936
3936
  }
3937
3937
  case "link": {
3938
- const r = t, o = r.title ? ` title="${we(r.title)}"` : "", _ = r.tokens && Array.isArray(r.tokens) ? r.tokens : [];
3939
- return `<a href="${r.href || "#"}"${o}>${J(_)}</a>`;
3938
+ const r = t, o = r.title ? ` title="${se(r.title)}"` : "", T = r.tokens && Array.isArray(r.tokens) ? r.tokens : [];
3939
+ return `<a href="${r.href || "#"}"${o}>${J(T)}</a>`;
3940
3940
  }
3941
3941
  case "code":
3942
- return `<code>${we(t.text || "")}</code>`;
3942
+ return `<code>${se(t.text || "")}</code>`;
3943
+ case "codespan":
3944
+ return `<code>${se(t.text || "")}</code>`;
3943
3945
  case "br":
3944
3946
  return "<br>";
3945
3947
  default:
@@ -3947,16 +3949,16 @@ function J(e) {
3947
3949
  }
3948
3950
  }).join("");
3949
3951
  }
3950
- function Mt(e) {
3952
+ function Ut(e) {
3951
3953
  return e.toLowerCase().replace(/\s+/g, "-").replace(/[^\p{L}\p{N}-]/gu, "").replace(/-+/g, "-").replace(/^-+|-+$/g, "");
3952
3954
  }
3953
- const zt = "wsx-markdown{display:block}.marked-content{line-height:1.7;color:var(--text-primary, #2c3e50)}.marked-content .marked-paragraph{margin:1rem 0;line-height:1.7}.marked-content .marked-list{margin:1rem 0;padding-left:2rem}.marked-content .marked-list-item{margin:.5rem 0;line-height:1.6}.marked-content a{color:var(--primary-red, #dc2626);text-decoration:none;border-bottom:1px solid transparent;transition:border-color .2s ease}.marked-content a:hover{border-bottom-color:var(--primary-red, #dc2626)}.marked-content strong{font-weight:600;color:var(--text-primary, #2c3e50)}.marked-content em{font-style:italic}.marked-content hr{border:none;border-top:2px solid var(--border-color, #e0e0e0);margin:2rem 0}.marked-content img{max-width:100%;height:auto;border-radius:8px;margin:1rem 0}.error{color:#dc2626;padding:1rem;background:#fee2e2;border-radius:6px;border:1px solid #fecaca}";
3954
- var We;
3955
- let Ve, Qe;
3956
- function ne(e, t, r) {
3957
- return (t = Je(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
3955
+ const Bt = "wsx-markdown{display:block}.marked-content{line-height:1.7;color:var(--text-primary, #2c3e50)}.marked-content .marked-paragraph{margin:1rem 0;line-height:1.7}.marked-content .marked-list{margin:1rem 0;padding-left:2rem}.marked-content .marked-list-item{margin:.5rem 0;line-height:1.6}.marked-content a{color:var(--primary-red, #dc2626);text-decoration:none;border-bottom:1px solid transparent;transition:border-color .2s ease}.marked-content a:hover{border-bottom-color:var(--primary-red, #dc2626)}.marked-content strong{font-weight:600;color:var(--text-primary, #2c3e50)}.marked-content em{font-style:italic}.marked-content hr{border:none;border-top:2px solid var(--border-color, #e0e0e0);margin:2rem 0}.marked-content img{max-width:100%;height:auto;border-radius:8px;margin:1rem 0}.error{color:#dc2626;padding:1rem;background:#fee2e2;border-radius:6px;border:1px solid #fecaca}";
3956
+ var Qe;
3957
+ let Je, et;
3958
+ function ie(e, t, r) {
3959
+ return (t = tt(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
3958
3960
  }
3959
- function Ut(e, t, r, o, _, P) {
3961
+ function Ht(e, t, r, o, T, P) {
3960
3962
  function S(n, u, d) {
3961
3963
  return function(l, a) {
3962
3964
  return d && d(l), n[u].call(l, a);
@@ -3966,7 +3968,7 @@ function Ut(e, t, r, o, _, P) {
3966
3968
  for (var d = 0; d < n.length; d++) n[d].call(u);
3967
3969
  return u;
3968
3970
  }
3969
- function w(n, u, d, l) {
3971
+ function v(n, u, d, l) {
3970
3972
  if (typeof n != "function" && (l || n !== void 0)) throw new TypeError(u + " must " + (d || "be") + " a function" + (l ? "" : " or undefined"));
3971
3973
  return n;
3972
3974
  }
@@ -3977,20 +3979,20 @@ function Ut(e, t, r, o, _, P) {
3977
3979
  var x, I = u[0], F = u[3], $ = !g;
3978
3980
  if (!$) {
3979
3981
  d || Array.isArray(I) || (I = [I]);
3980
- var s = {}, R = [], v = a === 3 ? "get" : a === 4 || c ? "set" : "value";
3981
- h ? (m || c ? s = { get: Ee(function() {
3982
+ var s = {}, R = [], w = a === 3 ? "get" : a === 4 || c ? "set" : "value";
3983
+ h ? (m || c ? s = { get: Se(function() {
3982
3984
  return F(this);
3983
3985
  }, l, "get"), set: function(f) {
3984
3986
  u[4](this, f);
3985
- } } : s[v] = F, m || Ee(s[v], l, a === 2 ? "" : v)) : m || (s = Object.getOwnPropertyDescriptor(n, l));
3987
+ } } : s[w] = F, m || Se(s[w], l, a === 2 ? "" : w)) : m || (s = Object.getOwnPropertyDescriptor(n, l));
3986
3988
  }
3987
3989
  for (var y = n, M = I.length - 1; M >= 0; M -= d ? 2 : 1) {
3988
- var Z = I[M], B = d ? I[M - 1] : void 0, X = {}, C = { kind: ["field", "accessor", "method", "getter", "setter", "class"][a], name: l, metadata: i, addInitializer: (function(f, O) {
3990
+ var Z = I[M], B = d ? I[M - 1] : void 0, Y = {}, C = { kind: ["field", "accessor", "method", "getter", "setter", "class"][a], name: l, metadata: i, addInitializer: (function(f, O) {
3989
3991
  if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
3990
- w(O, "An initializer", "be", !0), p.push(O);
3991
- }).bind(null, X) };
3992
+ v(O, "An initializer", "be", !0), p.push(O);
3993
+ }).bind(null, Y) };
3992
3994
  try {
3993
- if ($) (x = w(Z.call(B, y, C), "class decorators", "return")) && (y = x);
3995
+ if ($) (x = v(Z.call(B, y, C), "class decorators", "return")) && (y = x);
3994
3996
  else {
3995
3997
  var j, z;
3996
3998
  C.static = k, C.private = h, h ? a === 2 ? j = function(f) {
@@ -4000,33 +4002,33 @@ function Ut(e, t, r, o, _, P) {
4000
4002
  }, (a < 2 || a === 4) && (z = function(f, O) {
4001
4003
  f[l] = O;
4002
4004
  }));
4003
- var Y = C.access = { has: h ? b.bind() : function(f) {
4005
+ var X = C.access = { has: h ? b.bind() : function(f) {
4004
4006
  return l in f;
4005
4007
  } };
4006
- if (j && (Y.get = j), z && (Y.set = z), y = Z.call(B, c ? { get: s.get, set: s.set } : s[v], C), c) {
4007
- if (typeof y == "object" && y) (x = w(y.get, "accessor.get")) && (s.get = x), (x = w(y.set, "accessor.set")) && (s.set = x), (x = w(y.init, "accessor.init")) && R.push(x);
4008
+ if (j && (X.get = j), z && (X.set = z), y = Z.call(B, c ? { get: s.get, set: s.set } : s[w], C), c) {
4009
+ if (typeof y == "object" && y) (x = v(y.get, "accessor.get")) && (s.get = x), (x = v(y.set, "accessor.set")) && (s.set = x), (x = v(y.init, "accessor.init")) && R.push(x);
4008
4010
  else if (y !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
4009
- } else w(y, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(y) : s[v] = y);
4011
+ } else v(y, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(y) : s[w] = y);
4010
4012
  }
4011
4013
  } finally {
4012
- X.v = !0;
4014
+ Y.v = !0;
4013
4015
  }
4014
4016
  }
4015
4017
  return (m || c) && g.push(function(f, O) {
4016
4018
  for (var H = R.length - 1; H >= 0; H--) O = R[H].call(f, O);
4017
4019
  return O;
4018
- }), m || $ || (h ? c ? g.push(S(s, "get"), S(s, "set")) : g.push(a === 2 ? s[v] : S.call.bind(s[v])) : Object.defineProperty(n, l, s)), y;
4020
+ }), m || $ || (h ? c ? g.push(S(s, "get"), S(s, "set")) : g.push(a === 2 ? s[w] : S.call.bind(s[w])) : Object.defineProperty(n, l, s)), y;
4019
4021
  }
4020
4022
  function L(n, u) {
4021
4023
  return Object.defineProperty(n, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: u });
4022
4024
  }
4023
- if (arguments.length >= 6) var T = P[Symbol.metadata || Symbol.for("Symbol.metadata")];
4024
- var N = Object.create(T ?? null), U = function(n, u, d, l) {
4025
- var a, i, p = [], g = function(v) {
4026
- return Ht(v) === n;
4025
+ if (arguments.length >= 6) var _ = P[Symbol.metadata || Symbol.for("Symbol.metadata")];
4026
+ var N = Object.create(_ ?? null), U = function(n, u, d, l) {
4027
+ var a, i, p = [], g = function(w) {
4028
+ return Zt(w) === n;
4027
4029
  }, k = /* @__PURE__ */ new Map();
4028
- function h(v) {
4029
- v && p.push(E.bind(null, v));
4030
+ function h(w) {
4031
+ w && p.push(E.bind(null, w));
4030
4032
  }
4031
4033
  for (var m = 0; m < u.length; m++) {
4032
4034
  var c = u[m];
@@ -4037,21 +4039,21 @@ function Ut(e, t, r, o, _, P) {
4037
4039
  if (R === !0 || R === 3 && b !== 4 || R === 4 && b !== 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: " + A);
4038
4040
  k.set(s, !(b > 2) || b);
4039
4041
  }
4040
- D(F ? n : n.prototype, c, I, x ? "#" + A : Je(A), b, l, F ? i = i || [] : a = a || [], p, F, x, $, b === 1, F && x ? g : d);
4042
+ D(F ? n : n.prototype, c, I, x ? "#" + A : tt(A), b, l, F ? i = i || [] : a = a || [], p, F, x, $, b === 1, F && x ? g : d);
4041
4043
  }
4042
4044
  }
4043
4045
  return h(a), h(i), p;
4044
- }(e, t, _, N);
4046
+ }(e, t, T, N);
4045
4047
  return r.length || L(e, N), { e: U, get c() {
4046
4048
  var n = [];
4047
4049
  return r.length && [L(D(e, [r], o, e.name, 5, N, n), N), E.bind(null, n, e)];
4048
4050
  } };
4049
4051
  }
4050
- function Je(e) {
4051
- var t = Bt(e, "string");
4052
+ function tt(e) {
4053
+ var t = Gt(e, "string");
4052
4054
  return typeof t == "symbol" ? t : t + "";
4053
4055
  }
4054
- function Bt(e, t) {
4056
+ function Gt(e, t) {
4055
4057
  if (typeof e != "object" || !e) return e;
4056
4058
  var r = e[Symbol.toPrimitive];
4057
4059
  if (r !== void 0) {
@@ -4061,7 +4063,7 @@ function Bt(e, t) {
4061
4063
  }
4062
4064
  return String(e);
4063
4065
  }
4064
- function Ee(e, t, r) {
4066
+ function Se(e, t, r) {
4065
4067
  typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
4066
4068
  try {
4067
4069
  Object.defineProperty(e, "name", { configurable: !0, value: r ? r + " " + t : t });
@@ -4069,18 +4071,18 @@ function Ee(e, t, r) {
4069
4071
  }
4070
4072
  return e;
4071
4073
  }
4072
- function Ht(e) {
4074
+ function Zt(e) {
4073
4075
  if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e !== null ? typeof e : "null"));
4074
4076
  return e;
4075
4077
  }
4076
- const oe = jt("Markdown");
4077
- Qe = [W({
4078
+ const re = zt("Markdown");
4079
+ et = [W({
4078
4080
  tagName: "wsx-markdown"
4079
4081
  })];
4080
- let Gt;
4081
- class Zt extends q {
4082
+ let Xt;
4083
+ class Yt extends q {
4082
4084
  constructor() {
4083
- super(), ne(this, "_autoStyles", zt), ne(this, "markdown", void 0), ne(this, "customRenderers", {});
4085
+ super(), ie(this, "_autoStyles", Bt), ie(this, "markdown", void 0), ie(this, "customRenderers", {});
4084
4086
  const [t, r] = this.useState("markdown", "");
4085
4087
  Object.defineProperty(this, "markdown", {
4086
4088
  get: t,
@@ -4127,10 +4129,10 @@ class Zt extends q {
4127
4129
  if (!this.markdown)
4128
4130
  return /* @__PURE__ */ G("div", { class: "marked-content" });
4129
4131
  try {
4130
- const t = this.stripFrontmatter(this.markdown), r = le.lexer(t);
4132
+ const t = this.stripFrontmatter(this.markdown), r = de.lexer(t);
4131
4133
  return /* @__PURE__ */ G("div", { class: "marked-content" }, this.renderTokens(r));
4132
4134
  } catch (t) {
4133
- return oe.error("Failed to render markdown", t), /* @__PURE__ */ G("div", { class: "marked-content" }, /* @__PURE__ */ G("wsx-marked-error", { message: `Error: ${t}` }));
4135
+ return re.error("Failed to render markdown", t), /* @__PURE__ */ G("div", { class: "marked-content" }, /* @__PURE__ */ G("wsx-marked-error", { message: `Error: ${t}` }));
4134
4136
  }
4135
4137
  }
4136
4138
  /**
@@ -4159,8 +4161,8 @@ class Zt extends q {
4159
4161
  defaultRenderToken(t) {
4160
4162
  switch (t.type) {
4161
4163
  case "heading": {
4162
- const r = t, o = J(r.tokens), _ = Mt(o);
4163
- return /* @__PURE__ */ G("wsx-marked-heading", { level: r.depth.toString(), text: o, "anchor-id": _ });
4164
+ const r = t, o = J(r.tokens), T = Ut(o);
4165
+ return /* @__PURE__ */ G("wsx-marked-heading", { level: r.depth.toString(), text: o, "anchor-id": T });
4164
4166
  }
4165
4167
  case "code": {
4166
4168
  const r = t;
@@ -4173,55 +4175,57 @@ class Zt extends q {
4173
4175
  case "paragraph":
4174
4176
  return /* @__PURE__ */ G("wsx-marked-paragraph", { content: J(t.tokens) });
4175
4177
  case "list": {
4176
- const r = t, o = r.items.map((_) => {
4177
- if (!_.tokens || !Array.isArray(_.tokens))
4178
- return oe.warn("List item has no tokens or tokens is not an array", {
4179
- item: _
4178
+ const r = t, o = r.items.map((T) => {
4179
+ if (!T.tokens || !Array.isArray(T.tokens))
4180
+ return re.warn("List item has no tokens or tokens is not an array", {
4181
+ item: T
4180
4182
  }), "";
4181
- const P = this.renderTokens(_.tokens);
4183
+ const P = this.renderTokens(T.tokens);
4182
4184
  if (P.length === 0)
4183
4185
  return "";
4184
4186
  const S = document.createElement("div");
4185
- P.forEach((w) => {
4186
- w && S.appendChild(w);
4187
+ P.forEach((v) => {
4188
+ v && (typeof v == "string" || typeof v == "number" ? S.appendChild(document.createTextNode(String(v))) : (v instanceof HTMLElement || v instanceof SVGElement || v instanceof DocumentFragment) && S.appendChild(v.cloneNode(!0)));
4187
4189
  });
4188
4190
  const E = S.innerHTML;
4189
- return E || oe.warn("tempContainer.innerHTML is empty after appending elements", {
4191
+ return E || re.warn("tempContainer.innerHTML is empty after appending elements", {
4190
4192
  renderedElementsCount: P.length,
4191
- itemTokens: _.tokens
4193
+ itemTokens: T.tokens
4192
4194
  }), E;
4193
4195
  });
4194
4196
  return /* @__PURE__ */ G("wsx-marked-list", { ordered: r.ordered ? "true" : "false", items: o });
4195
4197
  }
4196
4198
  case "html":
4197
- return /* @__PURE__ */ G("div", null, t.text);
4199
+ return /* @__PURE__ */ G(ne, null, ue(t.text));
4198
4200
  case "hr":
4199
4201
  return /* @__PURE__ */ G("hr", null);
4200
4202
  case "space":
4201
4203
  return null;
4202
- case "text":
4203
- return /* @__PURE__ */ G("span", null, t.text || "");
4204
+ case "text": {
4205
+ const r = t;
4206
+ return r.tokens && r.tokens.length > 0 ? /* @__PURE__ */ G(ne, null, this.renderTokens(r.tokens)) : r.text || "";
4207
+ }
4204
4208
  default: {
4205
- const o = new le.Renderer()[t.type], _ = (o == null ? void 0 : o(t)) || "";
4206
- return _ ? /* @__PURE__ */ G("div", null, _) : null;
4209
+ const o = new de.Renderer()[t.type], T = (o == null ? void 0 : o(t)) || "";
4210
+ return T ? /* @__PURE__ */ G(ne, null, ue(T)) : (re.warn(`[WSX-Markdown] Unknown token type: ${t.type}`), null);
4207
4211
  }
4208
4212
  }
4209
4213
  }
4210
4214
  }
4211
- We = Zt;
4212
- [Gt, Ve] = Ut(We, [], Qe, 0, void 0, q).c;
4213
- Ve();
4215
+ Qe = Yt;
4216
+ [Xt, Je] = Ht(Qe, [], et, 0, void 0, q).c;
4217
+ Je();
4214
4218
  export {
4215
- yt as Blockquote,
4216
- pt as Code,
4217
- Dt as Error,
4218
- nt as Heading,
4219
- Rt as List,
4220
- Gt as Markdown,
4221
- St as Paragraph,
4222
- we as escapeHtml,
4223
- Kt as extractInlineTokens,
4224
- Mt as generateId,
4225
- lt as registerWsxLanguage,
4219
+ wt as Blockquote,
4220
+ ft as Code,
4221
+ jt as Error,
4222
+ st as Heading,
4223
+ Lt as List,
4224
+ Xt as Markdown,
4225
+ _t as Paragraph,
4226
+ se as escapeHtml,
4227
+ Vt as extractInlineTokens,
4228
+ Ut as generateId,
4229
+ ut as registerWsxLanguage,
4226
4230
  J as renderInlineTokens
4227
4231
  };