@wsxjs/wsx-marked-components 0.0.24 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.js +1040 -1170
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,117 +1,117 @@
|
|
|
1
1
|
import { autoRegister as W, LightComponent as q, jsx as G } from "@wsxjs/wsx-core";
|
|
2
|
-
import { marked as
|
|
2
|
+
import { marked as le } from "marked";
|
|
3
3
|
const ue = "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
|
|
5
|
-
let
|
|
6
|
-
function
|
|
7
|
-
return (t =
|
|
4
|
+
var Ae;
|
|
5
|
+
let Se, Te;
|
|
6
|
+
function re(e, t, r) {
|
|
7
|
+
return (t = _e(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
function
|
|
11
|
-
return function(
|
|
12
|
-
return
|
|
9
|
+
function tt(e, t, r, i, T, P) {
|
|
10
|
+
function S(n, c, d) {
|
|
11
|
+
return function(l, a) {
|
|
12
|
+
return d && d(l), n[c].call(l, a);
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
for (var
|
|
17
|
-
return
|
|
15
|
+
function E(n, c) {
|
|
16
|
+
for (var d = 0; d < n.length; d++) n[d].call(c);
|
|
17
|
+
return c;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
if (typeof
|
|
21
|
-
return
|
|
19
|
+
function w(n, c, d, l) {
|
|
20
|
+
if (typeof n != "function" && (l || n !== void 0)) throw new TypeError(c + " must " + (d || "be") + " a function" + (l ? "" : " or undefined"));
|
|
21
|
+
return n;
|
|
22
22
|
}
|
|
23
|
-
function D(
|
|
24
|
-
function
|
|
25
|
-
if (!b(
|
|
23
|
+
function D(n, c, d, l, a, s, p, g, k, h, m, u, b) {
|
|
24
|
+
function A(f) {
|
|
25
|
+
if (!b(f)) throw new TypeError("Attempted to access private element on non-instance");
|
|
26
26
|
}
|
|
27
|
-
var
|
|
28
|
-
if (
|
|
29
|
-
|
|
30
|
-
var
|
|
31
|
-
h ? (
|
|
27
|
+
var x, F = c[0], I = c[3], $ = !g;
|
|
28
|
+
if (!$) {
|
|
29
|
+
d || Array.isArray(F) || (F = [F]);
|
|
30
|
+
var o = {}, R = [], v = a === 3 ? "get" : a === 4 || u ? "set" : "value";
|
|
31
|
+
h ? (m || u ? o = { get: ce(function() {
|
|
32
32
|
return I(this);
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
} } :
|
|
33
|
+
}, l, "get"), set: function(f) {
|
|
34
|
+
c[4](this, f);
|
|
35
|
+
} } : o[v] = I, m || ce(o[v], l, a === 2 ? "" : v)) : m || (o = Object.getOwnPropertyDescriptor(n, l));
|
|
36
36
|
}
|
|
37
|
-
for (var
|
|
38
|
-
var Z =
|
|
39
|
-
if (
|
|
40
|
-
|
|
37
|
+
for (var y = n, M = F.length - 1; M >= 0; M -= d ? 2 : 1) {
|
|
38
|
+
var Z = F[M], B = d ? F[M - 1] : void 0, X = {}, C = { kind: ["field", "accessor", "method", "getter", "setter", "class"][a], name: l, metadata: s, addInitializer: (function(f, O) {
|
|
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
41
|
}).bind(null, X) };
|
|
42
42
|
try {
|
|
43
|
-
if (
|
|
43
|
+
if ($) (x = w(Z.call(B, y, C), "class decorators", "return")) && (y = x);
|
|
44
44
|
else {
|
|
45
|
-
var
|
|
46
|
-
|
|
47
|
-
return
|
|
48
|
-
} : (a < 4 && (
|
|
49
|
-
return
|
|
50
|
-
}, (a < 2 || a === 4) && (z = function(
|
|
51
|
-
|
|
45
|
+
var j, z;
|
|
46
|
+
C.static = k, C.private = h, h ? a === 2 ? j = function(f) {
|
|
47
|
+
return A(f), o.value;
|
|
48
|
+
} : (a < 4 && (j = S(o, "get", A)), a !== 3 && (z = S(o, "set", A))) : (j = function(f) {
|
|
49
|
+
return f[l];
|
|
50
|
+
}, (a < 2 || a === 4) && (z = function(f, O) {
|
|
51
|
+
f[l] = O;
|
|
52
52
|
}));
|
|
53
|
-
var Y =
|
|
54
|
-
return
|
|
53
|
+
var Y = C.access = { has: h ? b.bind() : function(f) {
|
|
54
|
+
return l in f;
|
|
55
55
|
} };
|
|
56
|
-
if (
|
|
57
|
-
if (typeof
|
|
58
|
-
else if (
|
|
59
|
-
} else
|
|
56
|
+
if (j && (Y.get = j), z && (Y.set = z), y = Z.call(B, u ? { get: o.get, set: o.set } : o[v], C), u) {
|
|
57
|
+
if (typeof y == "object" && y) (x = w(y.get, "accessor.get")) && (o.get = x), (x = w(y.set, "accessor.set")) && (o.set = x), (x = w(y.init, "accessor.init")) && R.push(x);
|
|
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) : o[v] = y);
|
|
60
60
|
}
|
|
61
61
|
} finally {
|
|
62
62
|
X.v = !0;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
return (
|
|
66
|
-
for (var H =
|
|
65
|
+
return (m || u) && g.push(function(f, O) {
|
|
66
|
+
for (var H = R.length - 1; H >= 0; H--) O = R[H].call(f, O);
|
|
67
67
|
return O;
|
|
68
|
-
}),
|
|
68
|
+
}), m || $ || (h ? u ? g.push(S(o, "get"), S(o, "set")) : g.push(a === 2 ? o[v] : S.call.bind(o[v])) : Object.defineProperty(n, l, o)), y;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
return Object.defineProperty(
|
|
70
|
+
function L(n, c) {
|
|
71
|
+
return Object.defineProperty(n, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: c });
|
|
72
72
|
}
|
|
73
|
-
if (arguments.length >= 6) var
|
|
74
|
-
var N = Object.create(
|
|
75
|
-
var a,
|
|
76
|
-
return
|
|
77
|
-
},
|
|
78
|
-
function h(
|
|
79
|
-
|
|
73
|
+
if (arguments.length >= 6) var _ = P[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
74
|
+
var N = Object.create(_ ?? null), U = function(n, c, d, l) {
|
|
75
|
+
var a, s, p = [], g = function(v) {
|
|
76
|
+
return at(v) === n;
|
|
77
|
+
}, k = /* @__PURE__ */ new Map();
|
|
78
|
+
function h(v) {
|
|
79
|
+
v && p.push(E.bind(null, v));
|
|
80
80
|
}
|
|
81
|
-
for (var
|
|
82
|
-
var
|
|
83
|
-
if (Array.isArray(
|
|
84
|
-
var b =
|
|
85
|
-
if (
|
|
86
|
-
var
|
|
87
|
-
if (
|
|
88
|
-
|
|
81
|
+
for (var m = 0; m < c.length; m++) {
|
|
82
|
+
var u = c[m];
|
|
83
|
+
if (Array.isArray(u)) {
|
|
84
|
+
var b = u[1], A = u[2], x = u.length > 3, F = 16 & b, I = !!(8 & b), $ = (b &= 7) == 0, o = A + "/" + I;
|
|
85
|
+
if (!$ && !x) {
|
|
86
|
+
var R = k.get(o);
|
|
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
|
+
k.set(o, !(b > 2) || b);
|
|
89
89
|
}
|
|
90
|
-
D(I ?
|
|
90
|
+
D(I ? n : n.prototype, u, F, x ? "#" + A : _e(A), b, l, I ? s = s || [] : a = a || [], p, I, x, $, b === 1, I && x ? g : d);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
return h(a), h(
|
|
93
|
+
return h(a), h(s), p;
|
|
94
94
|
}(e, t, T, N);
|
|
95
|
-
return r.length ||
|
|
96
|
-
var
|
|
97
|
-
return r.length && [
|
|
95
|
+
return r.length || L(e, N), { e: U, get c() {
|
|
96
|
+
var n = [];
|
|
97
|
+
return r.length && [L(D(e, [r], i, e.name, 5, N, n), N), E.bind(null, n, e)];
|
|
98
98
|
} };
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
var t =
|
|
100
|
+
function _e(e) {
|
|
101
|
+
var t = rt(e, "string");
|
|
102
102
|
return typeof t == "symbol" ? t : t + "";
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function rt(e, t) {
|
|
105
105
|
if (typeof e != "object" || !e) return e;
|
|
106
106
|
var r = e[Symbol.toPrimitive];
|
|
107
107
|
if (r !== void 0) {
|
|
108
|
-
var
|
|
109
|
-
if (typeof
|
|
108
|
+
var i = r.call(e, t);
|
|
109
|
+
if (typeof i != "object") return i;
|
|
110
110
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
111
111
|
}
|
|
112
112
|
return String(e);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function ce(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,40 +119,40 @@ function de(e, t, r) {
|
|
|
119
119
|
}
|
|
120
120
|
return e;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function at(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
|
-
|
|
126
|
+
Te = [W({
|
|
127
127
|
tagName: "wsx-marked-heading"
|
|
128
128
|
})];
|
|
129
|
-
let
|
|
130
|
-
class
|
|
129
|
+
let nt;
|
|
130
|
+
class ot extends q {
|
|
131
131
|
constructor() {
|
|
132
132
|
super({
|
|
133
133
|
styles: ue,
|
|
134
134
|
styleName: "wsx-marked-heading"
|
|
135
|
-
}),
|
|
135
|
+
}), re(this, "_autoStyles", ue), re(this, "level", 1), re(this, "text", "");
|
|
136
136
|
}
|
|
137
137
|
static get observedAttributes() {
|
|
138
138
|
return ["level", "text"];
|
|
139
139
|
}
|
|
140
|
-
attributeChangedCallback(t, r,
|
|
141
|
-
t === "level" ? this.level = parseInt(
|
|
140
|
+
attributeChangedCallback(t, r, i) {
|
|
141
|
+
t === "level" ? this.level = parseInt(i, 10) || 1 : t === "text" && (this.text = i), this.rerender();
|
|
142
142
|
}
|
|
143
143
|
render() {
|
|
144
144
|
return this.level === 1 ? /* @__PURE__ */ G("h1", null, this.text) : this.level === 2 ? /* @__PURE__ */ G("h2", null, this.text) : this.level === 3 ? /* @__PURE__ */ G("h3", null, this.text) : this.level === 4 ? /* @__PURE__ */ G("h4", null, this.text) : this.level === 5 ? /* @__PURE__ */ G("h5", null, this.text) : /* @__PURE__ */ G("h6", null, this.text);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
|
|
148
|
-
[
|
|
149
|
-
|
|
150
|
-
const ge = "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}}";
|
|
151
|
-
var
|
|
152
|
-
function
|
|
147
|
+
Ae = ot;
|
|
148
|
+
[nt, Se] = tt(Ae, [], Te, 0, void 0, q).c;
|
|
149
|
+
Se();
|
|
150
|
+
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}}";
|
|
151
|
+
var ge = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
152
|
+
function st(e) {
|
|
153
153
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
154
154
|
}
|
|
155
|
-
var
|
|
155
|
+
var Fe = { exports: {} };
|
|
156
156
|
(function(e) {
|
|
157
157
|
var t = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
|
|
158
158
|
/**
|
|
@@ -163,8 +163,8 @@ var Ie = { exports: {} };
|
|
|
163
163
|
* @namespace
|
|
164
164
|
* @public
|
|
165
165
|
*/
|
|
166
|
-
var r = function(
|
|
167
|
-
var T = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,
|
|
166
|
+
var r = function(i) {
|
|
167
|
+
var T = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, P = 0, S = {}, E = {
|
|
168
168
|
/**
|
|
169
169
|
* By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
|
|
170
170
|
* current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
|
|
@@ -186,7 +186,7 @@ var Ie = { exports: {} };
|
|
|
186
186
|
* @memberof Prism
|
|
187
187
|
* @public
|
|
188
188
|
*/
|
|
189
|
-
manual:
|
|
189
|
+
manual: i.Prism && i.Prism.manual,
|
|
190
190
|
/**
|
|
191
191
|
* By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses
|
|
192
192
|
* `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your
|
|
@@ -208,7 +208,7 @@ var Ie = { exports: {} };
|
|
|
208
208
|
* @memberof Prism
|
|
209
209
|
* @public
|
|
210
210
|
*/
|
|
211
|
-
disableWorkerMessageHandler:
|
|
211
|
+
disableWorkerMessageHandler: i.Prism && i.Prism.disableWorkerMessageHandler,
|
|
212
212
|
/**
|
|
213
213
|
* A namespace for utility methods.
|
|
214
214
|
*
|
|
@@ -219,8 +219,8 @@ var Ie = { exports: {} };
|
|
|
219
219
|
* @memberof Prism
|
|
220
220
|
*/
|
|
221
221
|
util: {
|
|
222
|
-
encode: function a(
|
|
223
|
-
return
|
|
222
|
+
encode: function a(s) {
|
|
223
|
+
return s instanceof w ? new w(s.type, a(s.content), s.alias) : Array.isArray(s) ? s.map(a) : s.replace(/&/g, "&").replace(/</g, "<").replace(/\u00a0/g, " ");
|
|
224
224
|
},
|
|
225
225
|
/**
|
|
226
226
|
* Returns the name of the type of the given value.
|
|
@@ -248,7 +248,7 @@ var Ie = { exports: {} };
|
|
|
248
248
|
* @returns {number}
|
|
249
249
|
*/
|
|
250
250
|
objId: function(a) {
|
|
251
|
-
return a.__id || Object.defineProperty(a, "__id", { value:
|
|
251
|
+
return a.__id || Object.defineProperty(a, "__id", { value: ++P }), a.__id;
|
|
252
252
|
},
|
|
253
253
|
/**
|
|
254
254
|
* Creates a deep clone of the given object.
|
|
@@ -260,30 +260,30 @@ var Ie = { exports: {} };
|
|
|
260
260
|
* @returns {T}
|
|
261
261
|
* @template T
|
|
262
262
|
*/
|
|
263
|
-
clone: function a(
|
|
263
|
+
clone: function a(s, p) {
|
|
264
264
|
p = p || {};
|
|
265
|
-
var g,
|
|
266
|
-
switch (
|
|
265
|
+
var g, k;
|
|
266
|
+
switch (E.util.type(s)) {
|
|
267
267
|
case "Object":
|
|
268
|
-
if (
|
|
269
|
-
return p[
|
|
268
|
+
if (k = E.util.objId(s), p[k])
|
|
269
|
+
return p[k];
|
|
270
270
|
g = /** @type {Record<string, any>} */
|
|
271
|
-
{}, p[
|
|
272
|
-
for (var h in
|
|
273
|
-
|
|
271
|
+
{}, p[k] = g;
|
|
272
|
+
for (var h in s)
|
|
273
|
+
s.hasOwnProperty(h) && (g[h] = a(s[h], p));
|
|
274
274
|
return (
|
|
275
275
|
/** @type {any} */
|
|
276
276
|
g
|
|
277
277
|
);
|
|
278
278
|
case "Array":
|
|
279
|
-
return
|
|
279
|
+
return k = E.util.objId(s), p[k] ? p[k] : (g = [], p[k] = g, /** @type {Array} */
|
|
280
280
|
/** @type {any} */
|
|
281
|
-
|
|
282
|
-
g[
|
|
281
|
+
s.forEach(function(m, u) {
|
|
282
|
+
g[u] = a(m, p);
|
|
283
283
|
}), /** @type {any} */
|
|
284
284
|
g);
|
|
285
285
|
default:
|
|
286
|
-
return
|
|
286
|
+
return s;
|
|
287
287
|
}
|
|
288
288
|
},
|
|
289
289
|
/**
|
|
@@ -296,9 +296,9 @@ var Ie = { exports: {} };
|
|
|
296
296
|
*/
|
|
297
297
|
getLanguage: function(a) {
|
|
298
298
|
for (; a; ) {
|
|
299
|
-
var
|
|
300
|
-
if (
|
|
301
|
-
return
|
|
299
|
+
var s = T.exec(a.className);
|
|
300
|
+
if (s)
|
|
301
|
+
return s[1].toLowerCase();
|
|
302
302
|
a = a.parentElement;
|
|
303
303
|
}
|
|
304
304
|
return "none";
|
|
@@ -310,8 +310,8 @@ var Ie = { exports: {} };
|
|
|
310
310
|
* @param {string} language
|
|
311
311
|
* @returns {void}
|
|
312
312
|
*/
|
|
313
|
-
setLanguage: function(a,
|
|
314
|
-
a.className = a.className.replace(RegExp(T, "gi"), ""), a.classList.add("language-" +
|
|
313
|
+
setLanguage: function(a, s) {
|
|
314
|
+
a.className = a.className.replace(RegExp(T, "gi"), ""), a.classList.add("language-" + s);
|
|
315
315
|
},
|
|
316
316
|
/**
|
|
317
317
|
* Returns the script element that is currently executing.
|
|
@@ -333,10 +333,10 @@ var Ie = { exports: {} };
|
|
|
333
333
|
} catch (g) {
|
|
334
334
|
var a = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(g.stack) || [])[1];
|
|
335
335
|
if (a) {
|
|
336
|
-
var
|
|
337
|
-
for (var p in
|
|
338
|
-
if (
|
|
339
|
-
return
|
|
336
|
+
var s = document.getElementsByTagName("script");
|
|
337
|
+
for (var p in s)
|
|
338
|
+
if (s[p].src == a)
|
|
339
|
+
return s[p];
|
|
340
340
|
}
|
|
341
341
|
return null;
|
|
342
342
|
}
|
|
@@ -360,12 +360,12 @@ var Ie = { exports: {} };
|
|
|
360
360
|
* @param {boolean} [defaultActivation=false]
|
|
361
361
|
* @returns {boolean}
|
|
362
362
|
*/
|
|
363
|
-
isActive: function(a,
|
|
364
|
-
for (var g = "no-" +
|
|
365
|
-
var
|
|
366
|
-
if (
|
|
363
|
+
isActive: function(a, s, p) {
|
|
364
|
+
for (var g = "no-" + s; a; ) {
|
|
365
|
+
var k = a.classList;
|
|
366
|
+
if (k.contains(s))
|
|
367
367
|
return !0;
|
|
368
|
-
if (
|
|
368
|
+
if (k.contains(g))
|
|
369
369
|
return !1;
|
|
370
370
|
a = a.parentElement;
|
|
371
371
|
}
|
|
@@ -383,10 +383,10 @@ var Ie = { exports: {} };
|
|
|
383
383
|
/**
|
|
384
384
|
* The grammar for plain, unformatted text.
|
|
385
385
|
*/
|
|
386
|
-
plain:
|
|
387
|
-
plaintext:
|
|
388
|
-
text:
|
|
389
|
-
txt:
|
|
386
|
+
plain: S,
|
|
387
|
+
plaintext: S,
|
|
388
|
+
text: S,
|
|
389
|
+
txt: S,
|
|
390
390
|
/**
|
|
391
391
|
* Creates a deep copy of the language with the given id and appends the given tokens.
|
|
392
392
|
*
|
|
@@ -415,10 +415,10 @@ var Ie = { exports: {} };
|
|
|
415
415
|
* 'color': /\b(?:red|green|blue)\b/
|
|
416
416
|
* });
|
|
417
417
|
*/
|
|
418
|
-
extend: function(a,
|
|
419
|
-
var p =
|
|
420
|
-
for (var g in
|
|
421
|
-
p[g] =
|
|
418
|
+
extend: function(a, s) {
|
|
419
|
+
var p = E.util.clone(E.languages[a]);
|
|
420
|
+
for (var g in s)
|
|
421
|
+
p[g] = s[g];
|
|
422
422
|
return p;
|
|
423
423
|
},
|
|
424
424
|
/**
|
|
@@ -496,31 +496,31 @@ var Ie = { exports: {} };
|
|
|
496
496
|
* @returns {Grammar} The new grammar object.
|
|
497
497
|
* @public
|
|
498
498
|
*/
|
|
499
|
-
insertBefore: function(a,
|
|
499
|
+
insertBefore: function(a, s, p, g) {
|
|
500
500
|
g = g || /** @type {any} */
|
|
501
|
-
|
|
502
|
-
var
|
|
503
|
-
for (var
|
|
504
|
-
if (
|
|
505
|
-
if (
|
|
506
|
-
for (var
|
|
507
|
-
p.hasOwnProperty(
|
|
508
|
-
p.hasOwnProperty(
|
|
501
|
+
E.languages;
|
|
502
|
+
var k = g[a], h = {};
|
|
503
|
+
for (var m in k)
|
|
504
|
+
if (k.hasOwnProperty(m)) {
|
|
505
|
+
if (m == s)
|
|
506
|
+
for (var u in p)
|
|
507
|
+
p.hasOwnProperty(u) && (h[u] = p[u]);
|
|
508
|
+
p.hasOwnProperty(m) || (h[m] = k[m]);
|
|
509
509
|
}
|
|
510
510
|
var b = g[a];
|
|
511
|
-
return g[a] = h,
|
|
512
|
-
|
|
511
|
+
return g[a] = h, E.languages.DFS(E.languages, function(A, x) {
|
|
512
|
+
x === b && A != a && (this[A] = h);
|
|
513
513
|
}), h;
|
|
514
514
|
},
|
|
515
515
|
// Traverse a language definition with Depth First Search
|
|
516
|
-
DFS: function a(
|
|
517
|
-
|
|
518
|
-
var h =
|
|
519
|
-
for (var
|
|
520
|
-
if (
|
|
521
|
-
p.call(
|
|
522
|
-
var
|
|
523
|
-
b === "Object" && !
|
|
516
|
+
DFS: function a(s, p, g, k) {
|
|
517
|
+
k = k || {};
|
|
518
|
+
var h = E.util.objId;
|
|
519
|
+
for (var m in s)
|
|
520
|
+
if (s.hasOwnProperty(m)) {
|
|
521
|
+
p.call(s, m, s[m], g || m);
|
|
522
|
+
var u = s[m], b = E.util.type(u);
|
|
523
|
+
b === "Object" && !k[h(u)] ? (k[h(u)] = !0, a(u, p, null, k)) : b === "Array" && !k[h(u)] && (k[h(u)] = !0, a(u, p, m, k));
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
526
|
},
|
|
@@ -537,8 +537,8 @@ var Ie = { exports: {} };
|
|
|
537
537
|
* @memberof Prism
|
|
538
538
|
* @public
|
|
539
539
|
*/
|
|
540
|
-
highlightAll: function(a,
|
|
541
|
-
|
|
540
|
+
highlightAll: function(a, s) {
|
|
541
|
+
E.highlightAllUnder(document, a, s);
|
|
542
542
|
},
|
|
543
543
|
/**
|
|
544
544
|
* Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
|
|
@@ -555,15 +555,15 @@ var Ie = { exports: {} };
|
|
|
555
555
|
* @memberof Prism
|
|
556
556
|
* @public
|
|
557
557
|
*/
|
|
558
|
-
highlightAllUnder: function(a,
|
|
558
|
+
highlightAllUnder: function(a, s, p) {
|
|
559
559
|
var g = {
|
|
560
560
|
callback: p,
|
|
561
561
|
container: a,
|
|
562
562
|
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
|
|
563
563
|
};
|
|
564
|
-
|
|
565
|
-
for (var
|
|
566
|
-
|
|
564
|
+
E.hooks.run("before-highlightall", g), g.elements = Array.prototype.slice.apply(g.container.querySelectorAll(g.selector)), E.hooks.run("before-all-elements-highlight", g);
|
|
565
|
+
for (var k = 0, h; h = g.elements[k++]; )
|
|
566
|
+
E.highlightElement(h, s === !0, g.callback);
|
|
567
567
|
},
|
|
568
568
|
/**
|
|
569
569
|
* Highlights the code inside a single element.
|
|
@@ -593,39 +593,39 @@ var Ie = { exports: {} };
|
|
|
593
593
|
* @memberof Prism
|
|
594
594
|
* @public
|
|
595
595
|
*/
|
|
596
|
-
highlightElement: function(a,
|
|
597
|
-
var g =
|
|
598
|
-
|
|
596
|
+
highlightElement: function(a, s, p) {
|
|
597
|
+
var g = E.util.getLanguage(a), k = E.languages[g];
|
|
598
|
+
E.util.setLanguage(a, g);
|
|
599
599
|
var h = a.parentElement;
|
|
600
|
-
h && h.nodeName.toLowerCase() === "pre" &&
|
|
601
|
-
var
|
|
600
|
+
h && h.nodeName.toLowerCase() === "pre" && E.util.setLanguage(h, g);
|
|
601
|
+
var m = a.textContent, u = {
|
|
602
602
|
element: a,
|
|
603
603
|
language: g,
|
|
604
|
-
grammar:
|
|
605
|
-
code:
|
|
604
|
+
grammar: k,
|
|
605
|
+
code: m
|
|
606
606
|
};
|
|
607
|
-
function b(
|
|
608
|
-
|
|
607
|
+
function b(x) {
|
|
608
|
+
u.highlightedCode = x, E.hooks.run("before-insert", u), u.element.innerHTML = u.highlightedCode, E.hooks.run("after-highlight", u), E.hooks.run("complete", u), p && p.call(u.element);
|
|
609
609
|
}
|
|
610
|
-
if (
|
|
611
|
-
|
|
610
|
+
if (E.hooks.run("before-sanity-check", u), h = u.element.parentElement, h && h.nodeName.toLowerCase() === "pre" && !h.hasAttribute("tabindex") && h.setAttribute("tabindex", "0"), !u.code) {
|
|
611
|
+
E.hooks.run("complete", u), p && p.call(u.element);
|
|
612
612
|
return;
|
|
613
613
|
}
|
|
614
|
-
if (
|
|
615
|
-
b(
|
|
614
|
+
if (E.hooks.run("before-highlight", u), !u.grammar) {
|
|
615
|
+
b(E.util.encode(u.code));
|
|
616
616
|
return;
|
|
617
617
|
}
|
|
618
|
-
if (
|
|
619
|
-
var
|
|
620
|
-
|
|
621
|
-
b(
|
|
622
|
-
},
|
|
623
|
-
language:
|
|
624
|
-
code:
|
|
618
|
+
if (s && i.Worker) {
|
|
619
|
+
var A = new Worker(E.filename);
|
|
620
|
+
A.onmessage = function(x) {
|
|
621
|
+
b(x.data);
|
|
622
|
+
}, A.postMessage(JSON.stringify({
|
|
623
|
+
language: u.language,
|
|
624
|
+
code: u.code,
|
|
625
625
|
immediateClose: !0
|
|
626
626
|
}));
|
|
627
627
|
} else
|
|
628
|
-
b(
|
|
628
|
+
b(E.highlight(u.code, u.grammar, u.language));
|
|
629
629
|
},
|
|
630
630
|
/**
|
|
631
631
|
* Low-level function, only use if you know what you’re doing. It accepts a string of text as input
|
|
@@ -647,15 +647,15 @@ var Ie = { exports: {} };
|
|
|
647
647
|
* @example
|
|
648
648
|
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
|
|
649
649
|
*/
|
|
650
|
-
highlight: function(a,
|
|
650
|
+
highlight: function(a, s, p) {
|
|
651
651
|
var g = {
|
|
652
652
|
code: a,
|
|
653
|
-
grammar:
|
|
653
|
+
grammar: s,
|
|
654
654
|
language: p
|
|
655
655
|
};
|
|
656
|
-
if (
|
|
656
|
+
if (E.hooks.run("before-tokenize", g), !g.grammar)
|
|
657
657
|
throw new Error('The language "' + g.language + '" has no grammar.');
|
|
658
|
-
return g.tokens =
|
|
658
|
+
return g.tokens = E.tokenize(g.code, g.grammar), E.hooks.run("after-tokenize", g), w.stringify(E.util.encode(g.tokens), g.language);
|
|
659
659
|
},
|
|
660
660
|
/**
|
|
661
661
|
* This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
|
|
@@ -681,15 +681,15 @@ var Ie = { exports: {} };
|
|
|
681
681
|
* }
|
|
682
682
|
* });
|
|
683
683
|
*/
|
|
684
|
-
tokenize: function(a,
|
|
685
|
-
var p =
|
|
684
|
+
tokenize: function(a, s) {
|
|
685
|
+
var p = s.rest;
|
|
686
686
|
if (p) {
|
|
687
687
|
for (var g in p)
|
|
688
|
-
|
|
689
|
-
delete
|
|
688
|
+
s[g] = p[g];
|
|
689
|
+
delete s.rest;
|
|
690
690
|
}
|
|
691
|
-
var
|
|
692
|
-
return N(
|
|
691
|
+
var k = new _();
|
|
692
|
+
return N(k, k.head, a), L(a, k, s, k.head, 0), n(k);
|
|
693
693
|
},
|
|
694
694
|
/**
|
|
695
695
|
* @namespace
|
|
@@ -710,9 +710,9 @@ var Ie = { exports: {} };
|
|
|
710
710
|
* @param {HookCallback} callback The callback function which is given environment variables.
|
|
711
711
|
* @public
|
|
712
712
|
*/
|
|
713
|
-
add: function(a,
|
|
714
|
-
var p =
|
|
715
|
-
p[a] = p[a] || [], p[a].push(
|
|
713
|
+
add: function(a, s) {
|
|
714
|
+
var p = E.hooks.all;
|
|
715
|
+
p[a] = p[a] || [], p[a].push(s);
|
|
716
716
|
},
|
|
717
717
|
/**
|
|
718
718
|
* Runs a hook invoking all registered callbacks with the given environment variables.
|
|
@@ -723,135 +723,135 @@ var Ie = { exports: {} };
|
|
|
723
723
|
* @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
|
|
724
724
|
* @public
|
|
725
725
|
*/
|
|
726
|
-
run: function(a,
|
|
727
|
-
var p =
|
|
726
|
+
run: function(a, s) {
|
|
727
|
+
var p = E.hooks.all[a];
|
|
728
728
|
if (!(!p || !p.length))
|
|
729
|
-
for (var g = 0,
|
|
730
|
-
|
|
729
|
+
for (var g = 0, k; k = p[g++]; )
|
|
730
|
+
k(s);
|
|
731
731
|
}
|
|
732
732
|
},
|
|
733
|
-
Token:
|
|
733
|
+
Token: w
|
|
734
734
|
};
|
|
735
|
-
|
|
736
|
-
function
|
|
737
|
-
this.type = a, this.content =
|
|
735
|
+
i.Prism = E;
|
|
736
|
+
function w(a, s, p, g) {
|
|
737
|
+
this.type = a, this.content = s, this.alias = p, this.length = (g || "").length | 0;
|
|
738
738
|
}
|
|
739
|
-
|
|
740
|
-
if (typeof
|
|
741
|
-
return
|
|
742
|
-
if (Array.isArray(
|
|
739
|
+
w.stringify = function a(s, p) {
|
|
740
|
+
if (typeof s == "string")
|
|
741
|
+
return s;
|
|
742
|
+
if (Array.isArray(s)) {
|
|
743
743
|
var g = "";
|
|
744
|
-
return
|
|
744
|
+
return s.forEach(function(b) {
|
|
745
745
|
g += a(b, p);
|
|
746
746
|
}), g;
|
|
747
747
|
}
|
|
748
|
-
var
|
|
749
|
-
type:
|
|
750
|
-
content: a(
|
|
748
|
+
var k = {
|
|
749
|
+
type: s.type,
|
|
750
|
+
content: a(s.content, p),
|
|
751
751
|
tag: "span",
|
|
752
|
-
classes: ["token",
|
|
752
|
+
classes: ["token", s.type],
|
|
753
753
|
attributes: {},
|
|
754
754
|
language: p
|
|
755
|
-
}, h =
|
|
756
|
-
h && (Array.isArray(h) ? Array.prototype.push.apply(
|
|
757
|
-
var
|
|
758
|
-
for (var
|
|
759
|
-
|
|
760
|
-
return "<" +
|
|
755
|
+
}, h = s.alias;
|
|
756
|
+
h && (Array.isArray(h) ? Array.prototype.push.apply(k.classes, h) : k.classes.push(h)), E.hooks.run("wrap", k);
|
|
757
|
+
var m = "";
|
|
758
|
+
for (var u in k.attributes)
|
|
759
|
+
m += " " + u + '="' + (k.attributes[u] || "").replace(/"/g, """) + '"';
|
|
760
|
+
return "<" + k.tag + ' class="' + k.classes.join(" ") + '"' + m + ">" + k.content + "</" + k.tag + ">";
|
|
761
761
|
};
|
|
762
|
-
function D(a,
|
|
763
|
-
a.lastIndex =
|
|
764
|
-
var
|
|
765
|
-
if (
|
|
766
|
-
var h =
|
|
767
|
-
|
|
762
|
+
function D(a, s, p, g) {
|
|
763
|
+
a.lastIndex = s;
|
|
764
|
+
var k = a.exec(p);
|
|
765
|
+
if (k && g && k[1]) {
|
|
766
|
+
var h = k[1].length;
|
|
767
|
+
k.index += h, k[0] = k[0].slice(h);
|
|
768
768
|
}
|
|
769
|
-
return
|
|
769
|
+
return k;
|
|
770
770
|
}
|
|
771
|
-
function
|
|
772
|
-
for (var
|
|
773
|
-
if (!(!p.hasOwnProperty(
|
|
774
|
-
var
|
|
775
|
-
|
|
776
|
-
for (var b = 0; b <
|
|
777
|
-
if (h && h.cause ==
|
|
771
|
+
function L(a, s, p, g, k, h) {
|
|
772
|
+
for (var m in p)
|
|
773
|
+
if (!(!p.hasOwnProperty(m) || !p[m])) {
|
|
774
|
+
var u = p[m];
|
|
775
|
+
u = Array.isArray(u) ? u : [u];
|
|
776
|
+
for (var b = 0; b < u.length; ++b) {
|
|
777
|
+
if (h && h.cause == m + "," + b)
|
|
778
778
|
return;
|
|
779
|
-
var
|
|
780
|
-
if (I && !
|
|
781
|
-
var
|
|
782
|
-
|
|
779
|
+
var A = u[b], x = A.inside, F = !!A.lookbehind, I = !!A.greedy, $ = A.alias;
|
|
780
|
+
if (I && !A.pattern.global) {
|
|
781
|
+
var o = A.pattern.toString().match(/[imsuy]*$/)[0];
|
|
782
|
+
A.pattern = RegExp(A.pattern.source, o + "g");
|
|
783
783
|
}
|
|
784
|
-
for (var
|
|
785
|
-
var
|
|
786
|
-
if (
|
|
784
|
+
for (var R = A.pattern || A, v = g.next, y = k; v !== s.tail && !(h && y >= h.reach); y += v.value.length, v = v.next) {
|
|
785
|
+
var M = v.value;
|
|
786
|
+
if (s.length > a.length)
|
|
787
787
|
return;
|
|
788
|
-
if (!(
|
|
788
|
+
if (!(M instanceof w)) {
|
|
789
789
|
var Z = 1, B;
|
|
790
790
|
if (I) {
|
|
791
|
-
if (B = D(
|
|
791
|
+
if (B = D(R, y, a, F), !B || B.index >= a.length)
|
|
792
792
|
break;
|
|
793
|
-
var z = B.index, X = B.index + B[0].length,
|
|
794
|
-
for (
|
|
795
|
-
|
|
796
|
-
if (
|
|
793
|
+
var z = B.index, X = B.index + B[0].length, C = y;
|
|
794
|
+
for (C += v.value.length; z >= C; )
|
|
795
|
+
v = v.next, C += v.value.length;
|
|
796
|
+
if (C -= v.value.length, y = C, v.value instanceof w)
|
|
797
797
|
continue;
|
|
798
|
-
for (var
|
|
799
|
-
Z++,
|
|
800
|
-
Z--,
|
|
801
|
-
} else if (B = D(
|
|
798
|
+
for (var j = v; j !== s.tail && (C < X || typeof j.value == "string"); j = j.next)
|
|
799
|
+
Z++, C += j.value.length;
|
|
800
|
+
Z--, M = a.slice(y, C), B.index -= y;
|
|
801
|
+
} else if (B = D(R, 0, M, F), !B)
|
|
802
802
|
continue;
|
|
803
|
-
var z = B.index, Y = B[0],
|
|
803
|
+
var z = B.index, Y = B[0], f = M.slice(0, z), O = M.slice(z + Y.length), H = y + M.length;
|
|
804
804
|
h && H > h.reach && (h.reach = H);
|
|
805
|
-
var
|
|
806
|
-
|
|
807
|
-
var
|
|
808
|
-
if (
|
|
809
|
-
var
|
|
810
|
-
cause:
|
|
805
|
+
var ee = v.prev;
|
|
806
|
+
f && (ee = N(s, ee, f), y += f.length), U(s, ee, Z);
|
|
807
|
+
var et = new w(m, x ? E.tokenize(Y, x) : Y, $, Y);
|
|
808
|
+
if (v = N(s, ee, et), O && N(s, v, O), Z > 1) {
|
|
809
|
+
var te = {
|
|
810
|
+
cause: m + "," + b,
|
|
811
811
|
reach: H
|
|
812
812
|
};
|
|
813
|
-
|
|
813
|
+
L(a, s, p, v.prev, y, te), h && te.reach > h.reach && (h.reach = te.reach);
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
816
|
}
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
819
|
}
|
|
820
|
-
function
|
|
821
|
-
var a = { value: null, prev: null, next: null },
|
|
822
|
-
a.next =
|
|
820
|
+
function _() {
|
|
821
|
+
var a = { value: null, prev: null, next: null }, s = { value: null, prev: a, next: null };
|
|
822
|
+
a.next = s, this.head = a, this.tail = s, this.length = 0;
|
|
823
823
|
}
|
|
824
|
-
function N(a,
|
|
825
|
-
var g =
|
|
826
|
-
return
|
|
824
|
+
function N(a, s, p) {
|
|
825
|
+
var g = s.next, k = { value: p, prev: s, next: g };
|
|
826
|
+
return s.next = k, g.prev = k, a.length++, k;
|
|
827
827
|
}
|
|
828
|
-
function U(a,
|
|
829
|
-
for (var g =
|
|
828
|
+
function U(a, s, p) {
|
|
829
|
+
for (var g = s.next, k = 0; k < p && g !== a.tail; k++)
|
|
830
830
|
g = g.next;
|
|
831
|
-
|
|
831
|
+
s.next = g, g.prev = s, a.length -= k;
|
|
832
832
|
}
|
|
833
|
-
function
|
|
834
|
-
for (var
|
|
835
|
-
|
|
836
|
-
return
|
|
833
|
+
function n(a) {
|
|
834
|
+
for (var s = [], p = a.head.next; p !== a.tail; )
|
|
835
|
+
s.push(p.value), p = p.next;
|
|
836
|
+
return s;
|
|
837
837
|
}
|
|
838
|
-
if (!
|
|
839
|
-
return
|
|
840
|
-
var
|
|
841
|
-
|
|
842
|
-
}, !1)),
|
|
843
|
-
var
|
|
844
|
-
|
|
845
|
-
function
|
|
846
|
-
|
|
838
|
+
if (!i.document)
|
|
839
|
+
return i.addEventListener && (E.disableWorkerMessageHandler || i.addEventListener("message", function(a) {
|
|
840
|
+
var s = JSON.parse(a.data), p = s.language, g = s.code, k = s.immediateClose;
|
|
841
|
+
i.postMessage(E.highlight(g, E.languages[p], p)), k && i.close();
|
|
842
|
+
}, !1)), E;
|
|
843
|
+
var c = E.util.currentScript();
|
|
844
|
+
c && (E.filename = c.src, c.hasAttribute("data-manual") && (E.manual = !0));
|
|
845
|
+
function d() {
|
|
846
|
+
E.manual || E.highlightAll();
|
|
847
847
|
}
|
|
848
|
-
if (!
|
|
849
|
-
var
|
|
850
|
-
|
|
848
|
+
if (!E.manual) {
|
|
849
|
+
var l = document.readyState;
|
|
850
|
+
l === "loading" || l === "interactive" && c && c.defer ? document.addEventListener("DOMContentLoaded", d) : window.requestAnimationFrame ? window.requestAnimationFrame(d) : window.setTimeout(d, 16);
|
|
851
851
|
}
|
|
852
|
-
return
|
|
852
|
+
return E;
|
|
853
853
|
}(t);
|
|
854
|
-
e.exports && (e.exports = r), typeof
|
|
854
|
+
e.exports && (e.exports = r), typeof ge < "u" && (ge.Prism = r), r.languages.markup = {
|
|
855
855
|
comment: {
|
|
856
856
|
pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
|
|
857
857
|
greedy: !0
|
|
@@ -928,8 +928,8 @@ var Ie = { exports: {} };
|
|
|
928
928
|
},
|
|
929
929
|
/&#x?[\da-f]{1,8};/i
|
|
930
930
|
]
|
|
931
|
-
}, r.languages.markup.tag.inside["attr-value"].inside.entity = r.languages.markup.entity, r.languages.markup.doctype.inside["internal-subset"].inside = r.languages.markup, r.hooks.add("wrap", function(
|
|
932
|
-
|
|
931
|
+
}, r.languages.markup.tag.inside["attr-value"].inside.entity = r.languages.markup.entity, r.languages.markup.doctype.inside["internal-subset"].inside = r.languages.markup, r.hooks.add("wrap", function(i) {
|
|
932
|
+
i.type === "entity" && (i.attributes.title = i.content.replace(/&/, "&"));
|
|
933
933
|
}), Object.defineProperty(r.languages.markup.tag, "addInlined", {
|
|
934
934
|
/**
|
|
935
935
|
* Adds an inlined language to markup.
|
|
@@ -942,32 +942,32 @@ var Ie = { exports: {} };
|
|
|
942
942
|
* @example
|
|
943
943
|
* addInlined('style', 'css');
|
|
944
944
|
*/
|
|
945
|
-
value: function(T,
|
|
946
|
-
var
|
|
947
|
-
|
|
945
|
+
value: function(T, P) {
|
|
946
|
+
var S = {};
|
|
947
|
+
S["language-" + P] = {
|
|
948
948
|
pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
|
|
949
949
|
lookbehind: !0,
|
|
950
|
-
inside: r.languages[
|
|
951
|
-
},
|
|
952
|
-
var
|
|
950
|
+
inside: r.languages[P]
|
|
951
|
+
}, S.cdata = /^<!\[CDATA\[|\]\]>$/i;
|
|
952
|
+
var E = {
|
|
953
953
|
"included-cdata": {
|
|
954
954
|
pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
|
|
955
|
-
inside:
|
|
955
|
+
inside: S
|
|
956
956
|
}
|
|
957
957
|
};
|
|
958
|
-
|
|
958
|
+
E["language-" + P] = {
|
|
959
959
|
pattern: /[\s\S]+/,
|
|
960
|
-
inside: r.languages[
|
|
960
|
+
inside: r.languages[P]
|
|
961
961
|
};
|
|
962
|
-
var
|
|
963
|
-
|
|
962
|
+
var w = {};
|
|
963
|
+
w[T] = {
|
|
964
964
|
pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
|
|
965
965
|
return T;
|
|
966
966
|
}), "i"),
|
|
967
967
|
lookbehind: !0,
|
|
968
968
|
greedy: !0,
|
|
969
|
-
inside:
|
|
970
|
-
}, r.languages.insertBefore("markup", "cdata",
|
|
969
|
+
inside: E
|
|
970
|
+
}, r.languages.insertBefore("markup", "cdata", w);
|
|
971
971
|
}
|
|
972
972
|
}), Object.defineProperty(r.languages.markup.tag, "addAttribute", {
|
|
973
973
|
/**
|
|
@@ -981,10 +981,10 @@ var Ie = { exports: {} };
|
|
|
981
981
|
* @example
|
|
982
982
|
* addAttribute('style', 'css');
|
|
983
983
|
*/
|
|
984
|
-
value: function(
|
|
984
|
+
value: function(i, T) {
|
|
985
985
|
r.languages.markup.tag.inside["special-attr"].push({
|
|
986
986
|
pattern: RegExp(
|
|
987
|
-
/(^|["'\s])/.source + "(?:" +
|
|
987
|
+
/(^|["'\s])/.source + "(?:" + i + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
|
|
988
988
|
"i"
|
|
989
989
|
),
|
|
990
990
|
lookbehind: !0,
|
|
@@ -1011,9 +1011,9 @@ var Ie = { exports: {} };
|
|
|
1011
1011
|
}
|
|
1012
1012
|
});
|
|
1013
1013
|
}
|
|
1014
|
-
}), 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(
|
|
1014
|
+
}), 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(i) {
|
|
1015
1015
|
var T = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
1016
|
-
|
|
1016
|
+
i.languages.css = {
|
|
1017
1017
|
comment: /\/\*[\s\S]*?\*\//,
|
|
1018
1018
|
atrule: {
|
|
1019
1019
|
pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + T.source + ")*?" + /(?:;|(?=\s*\{))/.source),
|
|
@@ -1062,9 +1062,9 @@ var Ie = { exports: {} };
|
|
|
1062
1062
|
lookbehind: !0
|
|
1063
1063
|
},
|
|
1064
1064
|
punctuation: /[(){};:,]/
|
|
1065
|
-
},
|
|
1066
|
-
var
|
|
1067
|
-
|
|
1065
|
+
}, i.languages.css.atrule.inside.rest = i.languages.css;
|
|
1066
|
+
var P = i.languages.markup;
|
|
1067
|
+
P && (P.tag.addInlined("style", "css"), P.tag.addAttribute("style", "css"));
|
|
1068
1068
|
}(r), r.languages.clike = {
|
|
1069
1069
|
comment: [
|
|
1070
1070
|
{
|
|
@@ -1229,9 +1229,9 @@ var Ie = { exports: {} };
|
|
|
1229
1229
|
if (typeof r > "u" || typeof document > "u")
|
|
1230
1230
|
return;
|
|
1231
1231
|
Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
|
|
1232
|
-
var
|
|
1233
|
-
return "✖ Error " +
|
|
1234
|
-
},
|
|
1232
|
+
var i = "Loading…", T = function(c, d) {
|
|
1233
|
+
return "✖ Error " + c + " while fetching file: " + d;
|
|
1234
|
+
}, P = "✖ Error: File does not exist or is empty", S = {
|
|
1235
1235
|
js: "javascript",
|
|
1236
1236
|
py: "python",
|
|
1237
1237
|
rb: "ruby",
|
|
@@ -1241,52 +1241,52 @@ var Ie = { exports: {} };
|
|
|
1241
1241
|
bat: "batch",
|
|
1242
1242
|
h: "c",
|
|
1243
1243
|
tex: "latex"
|
|
1244
|
-
},
|
|
1245
|
-
function N(
|
|
1244
|
+
}, E = "data-src-status", w = "loading", D = "loaded", L = "failed", _ = "pre[data-src]:not([" + E + '="' + D + '"]):not([' + E + '="' + w + '"])';
|
|
1245
|
+
function N(c, d, l) {
|
|
1246
1246
|
var a = new XMLHttpRequest();
|
|
1247
|
-
a.open("GET",
|
|
1248
|
-
a.readyState == 4 && (a.status < 400 && a.responseText ?
|
|
1247
|
+
a.open("GET", c, !0), a.onreadystatechange = function() {
|
|
1248
|
+
a.readyState == 4 && (a.status < 400 && a.responseText ? d(a.responseText) : a.status >= 400 ? l(T(a.status, a.statusText)) : l(P));
|
|
1249
1249
|
}, a.send(null);
|
|
1250
1250
|
}
|
|
1251
|
-
function U(
|
|
1252
|
-
var
|
|
1253
|
-
if (
|
|
1254
|
-
var
|
|
1255
|
-
return a ?
|
|
1251
|
+
function U(c) {
|
|
1252
|
+
var d = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(c || "");
|
|
1253
|
+
if (d) {
|
|
1254
|
+
var l = Number(d[1]), a = d[2], s = d[3];
|
|
1255
|
+
return a ? s ? [l, Number(s)] : [l, void 0] : [l, l];
|
|
1256
1256
|
}
|
|
1257
1257
|
}
|
|
1258
|
-
r.hooks.add("before-highlightall", function(
|
|
1259
|
-
|
|
1260
|
-
}), r.hooks.add("before-sanity-check", function(
|
|
1261
|
-
var
|
|
1258
|
+
r.hooks.add("before-highlightall", function(c) {
|
|
1259
|
+
c.selector += ", " + _;
|
|
1260
|
+
}), r.hooks.add("before-sanity-check", function(c) {
|
|
1261
|
+
var d = (
|
|
1262
1262
|
/** @type {HTMLPreElement} */
|
|
1263
|
-
|
|
1263
|
+
c.element
|
|
1264
1264
|
);
|
|
1265
|
-
if (
|
|
1266
|
-
|
|
1267
|
-
var
|
|
1268
|
-
|
|
1269
|
-
var a =
|
|
1270
|
-
if (
|
|
1265
|
+
if (d.matches(_)) {
|
|
1266
|
+
c.code = "", d.setAttribute(E, w);
|
|
1267
|
+
var l = d.appendChild(document.createElement("CODE"));
|
|
1268
|
+
l.textContent = i;
|
|
1269
|
+
var a = d.getAttribute("data-src"), s = c.language;
|
|
1270
|
+
if (s === "none") {
|
|
1271
1271
|
var p = (/\.(\w+)$/.exec(a) || [, "none"])[1];
|
|
1272
|
-
|
|
1272
|
+
s = S[p] || p;
|
|
1273
1273
|
}
|
|
1274
|
-
r.util.setLanguage(
|
|
1274
|
+
r.util.setLanguage(l, s), r.util.setLanguage(d, s);
|
|
1275
1275
|
var g = r.plugins.autoloader;
|
|
1276
|
-
g && g.loadLanguages(
|
|
1276
|
+
g && g.loadLanguages(s), N(
|
|
1277
1277
|
a,
|
|
1278
|
-
function(
|
|
1279
|
-
|
|
1280
|
-
var h = U(
|
|
1278
|
+
function(k) {
|
|
1279
|
+
d.setAttribute(E, D);
|
|
1280
|
+
var h = U(d.getAttribute("data-range"));
|
|
1281
1281
|
if (h) {
|
|
1282
|
-
var
|
|
1283
|
-
|
|
1284
|
-
`),
|
|
1282
|
+
var m = k.split(/\r\n?|\n/g), u = h[0], b = h[1] == null ? m.length : h[1];
|
|
1283
|
+
u < 0 && (u += m.length), u = Math.max(0, Math.min(u - 1, m.length)), b < 0 && (b += m.length), b = Math.max(0, Math.min(b, m.length)), k = m.slice(u, b).join(`
|
|
1284
|
+
`), d.hasAttribute("data-start") || d.setAttribute("data-start", String(u + 1));
|
|
1285
1285
|
}
|
|
1286
|
-
|
|
1286
|
+
l.textContent = k, r.highlightElement(l);
|
|
1287
1287
|
},
|
|
1288
|
-
function(
|
|
1289
|
-
|
|
1288
|
+
function(k) {
|
|
1289
|
+
d.setAttribute(E, L), l.textContent = k;
|
|
1290
1290
|
}
|
|
1291
1291
|
);
|
|
1292
1292
|
}
|
|
@@ -1298,19 +1298,19 @@ var Ie = { exports: {} };
|
|
|
1298
1298
|
*
|
|
1299
1299
|
* @param {ParentNode} [container=document]
|
|
1300
1300
|
*/
|
|
1301
|
-
highlight: function(
|
|
1302
|
-
for (var
|
|
1303
|
-
r.highlightElement(
|
|
1301
|
+
highlight: function(d) {
|
|
1302
|
+
for (var l = (d || document).querySelectorAll(_), a = 0, s; s = l[a++]; )
|
|
1303
|
+
r.highlightElement(s);
|
|
1304
1304
|
}
|
|
1305
1305
|
};
|
|
1306
|
-
var
|
|
1306
|
+
var n = !1;
|
|
1307
1307
|
r.fileHighlight = function() {
|
|
1308
|
-
|
|
1308
|
+
n || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), n = !0), r.plugins.fileHighlight.highlight.apply(this, arguments);
|
|
1309
1309
|
};
|
|
1310
1310
|
}();
|
|
1311
|
-
})(
|
|
1312
|
-
var
|
|
1313
|
-
const K = /* @__PURE__ */
|
|
1311
|
+
})(Fe);
|
|
1312
|
+
var it = Fe.exports;
|
|
1313
|
+
const K = /* @__PURE__ */ st(it);
|
|
1314
1314
|
Prism.languages.markup = {
|
|
1315
1315
|
comment: {
|
|
1316
1316
|
pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
|
|
@@ -1407,31 +1407,31 @@ Object.defineProperty(Prism.languages.markup.tag, "addInlined", {
|
|
|
1407
1407
|
* addInlined('style', 'css');
|
|
1408
1408
|
*/
|
|
1409
1409
|
value: function(t, r) {
|
|
1410
|
-
var
|
|
1411
|
-
|
|
1410
|
+
var i = {};
|
|
1411
|
+
i["language-" + r] = {
|
|
1412
1412
|
pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
|
|
1413
1413
|
lookbehind: !0,
|
|
1414
1414
|
inside: Prism.languages[r]
|
|
1415
|
-
},
|
|
1415
|
+
}, i.cdata = /^<!\[CDATA\[|\]\]>$/i;
|
|
1416
1416
|
var T = {
|
|
1417
1417
|
"included-cdata": {
|
|
1418
1418
|
pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
|
|
1419
|
-
inside:
|
|
1419
|
+
inside: i
|
|
1420
1420
|
}
|
|
1421
1421
|
};
|
|
1422
1422
|
T["language-" + r] = {
|
|
1423
1423
|
pattern: /[\s\S]+/,
|
|
1424
1424
|
inside: Prism.languages[r]
|
|
1425
1425
|
};
|
|
1426
|
-
var
|
|
1427
|
-
|
|
1426
|
+
var P = {};
|
|
1427
|
+
P[t] = {
|
|
1428
1428
|
pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
|
|
1429
1429
|
return t;
|
|
1430
1430
|
}), "i"),
|
|
1431
1431
|
lookbehind: !0,
|
|
1432
1432
|
greedy: !0,
|
|
1433
1433
|
inside: T
|
|
1434
|
-
}, Prism.languages.insertBefore("markup", "cdata",
|
|
1434
|
+
}, Prism.languages.insertBefore("markup", "cdata", P);
|
|
1435
1435
|
}
|
|
1436
1436
|
});
|
|
1437
1437
|
Object.defineProperty(Prism.languages.markup.tag, "addAttribute", {
|
|
@@ -1709,7 +1709,7 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
1709
1709
|
// this looks reasonably well in all themes
|
|
1710
1710
|
inside: null
|
|
1711
1711
|
// see below
|
|
1712
|
-
},
|
|
1712
|
+
}, i = {
|
|
1713
1713
|
bash: r,
|
|
1714
1714
|
environment: {
|
|
1715
1715
|
pattern: RegExp("\\$" + t),
|
|
@@ -1821,7 +1821,7 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
1821
1821
|
pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
|
|
1822
1822
|
lookbehind: !0,
|
|
1823
1823
|
greedy: !0,
|
|
1824
|
-
inside:
|
|
1824
|
+
inside: i
|
|
1825
1825
|
},
|
|
1826
1826
|
// Here-document with quotes around the tag
|
|
1827
1827
|
// → No expansion (so no “inside”).
|
|
@@ -1839,7 +1839,7 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
1839
1839
|
pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
|
|
1840
1840
|
lookbehind: !0,
|
|
1841
1841
|
greedy: !0,
|
|
1842
|
-
inside:
|
|
1842
|
+
inside: i
|
|
1843
1843
|
},
|
|
1844
1844
|
{
|
|
1845
1845
|
// https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
|
|
@@ -1852,7 +1852,7 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
1852
1852
|
pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
|
|
1853
1853
|
greedy: !0,
|
|
1854
1854
|
inside: {
|
|
1855
|
-
entity:
|
|
1855
|
+
entity: i.entity
|
|
1856
1856
|
}
|
|
1857
1857
|
}
|
|
1858
1858
|
],
|
|
@@ -1860,7 +1860,7 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
1860
1860
|
pattern: RegExp("\\$?" + t),
|
|
1861
1861
|
alias: "constant"
|
|
1862
1862
|
},
|
|
1863
|
-
variable:
|
|
1863
|
+
variable: i.variable,
|
|
1864
1864
|
function: {
|
|
1865
1865
|
pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
|
|
1866
1866
|
lookbehind: !0
|
|
@@ -1916,8 +1916,8 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
1916
1916
|
"operator",
|
|
1917
1917
|
"punctuation",
|
|
1918
1918
|
"number"
|
|
1919
|
-
],
|
|
1920
|
-
|
|
1919
|
+
], P = i.variable[1].inside, S = 0; S < T.length; S++)
|
|
1920
|
+
P[T[S]] = e.languages.bash[T[S]];
|
|
1921
1921
|
e.languages.sh = e.languages.bash, e.languages.shell = e.languages.bash;
|
|
1922
1922
|
})(Prism);
|
|
1923
1923
|
Prism.languages.sql = {
|
|
@@ -1954,22 +1954,22 @@ Prism.languages.sql = {
|
|
|
1954
1954
|
punctuation: /[;[\]()`,.]/
|
|
1955
1955
|
};
|
|
1956
1956
|
(function(e) {
|
|
1957
|
-
var t = /[*&][^\s[\]{},]+/, r = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,
|
|
1957
|
+
var t = /[*&][^\s[\]{},]+/, r = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, i = "(?:" + 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() {
|
|
1958
1958
|
return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
|
|
1959
|
-
}),
|
|
1960
|
-
function
|
|
1961
|
-
|
|
1959
|
+
}), P = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
|
|
1960
|
+
function S(E, w) {
|
|
1961
|
+
w = (w || "").replace(/m/g, "") + "m";
|
|
1962
1962
|
var D = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
|
|
1963
|
-
return
|
|
1963
|
+
return i;
|
|
1964
1964
|
}).replace(/<<value>>/g, function() {
|
|
1965
|
-
return
|
|
1965
|
+
return E;
|
|
1966
1966
|
});
|
|
1967
|
-
return RegExp(D,
|
|
1967
|
+
return RegExp(D, w);
|
|
1968
1968
|
}
|
|
1969
1969
|
e.languages.yaml = {
|
|
1970
1970
|
scalar: {
|
|
1971
1971
|
pattern: RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g, function() {
|
|
1972
|
-
return
|
|
1972
|
+
return i;
|
|
1973
1973
|
})),
|
|
1974
1974
|
lookbehind: !0,
|
|
1975
1975
|
alias: "string"
|
|
@@ -1977,9 +1977,9 @@ Prism.languages.sql = {
|
|
|
1977
1977
|
comment: /#.*/,
|
|
1978
1978
|
key: {
|
|
1979
1979
|
pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
|
|
1980
|
-
return
|
|
1980
|
+
return i;
|
|
1981
1981
|
}).replace(/<<key>>/g, function() {
|
|
1982
|
-
return "(?:" + T + "|" +
|
|
1982
|
+
return "(?:" + T + "|" + P + ")";
|
|
1983
1983
|
})),
|
|
1984
1984
|
lookbehind: !0,
|
|
1985
1985
|
greedy: !0,
|
|
@@ -1991,27 +1991,27 @@ Prism.languages.sql = {
|
|
|
1991
1991
|
alias: "important"
|
|
1992
1992
|
},
|
|
1993
1993
|
datetime: {
|
|
1994
|
-
pattern:
|
|
1994
|
+
pattern: S(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),
|
|
1995
1995
|
lookbehind: !0,
|
|
1996
1996
|
alias: "number"
|
|
1997
1997
|
},
|
|
1998
1998
|
boolean: {
|
|
1999
|
-
pattern:
|
|
1999
|
+
pattern: S(/false|true/.source, "i"),
|
|
2000
2000
|
lookbehind: !0,
|
|
2001
2001
|
alias: "important"
|
|
2002
2002
|
},
|
|
2003
2003
|
null: {
|
|
2004
|
-
pattern:
|
|
2004
|
+
pattern: S(/null|~/.source, "i"),
|
|
2005
2005
|
lookbehind: !0,
|
|
2006
2006
|
alias: "important"
|
|
2007
2007
|
},
|
|
2008
2008
|
string: {
|
|
2009
|
-
pattern:
|
|
2009
|
+
pattern: S(P),
|
|
2010
2010
|
lookbehind: !0,
|
|
2011
2011
|
greedy: !0
|
|
2012
2012
|
},
|
|
2013
2013
|
number: {
|
|
2014
|
-
pattern:
|
|
2014
|
+
pattern: S(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"),
|
|
2015
2015
|
lookbehind: !0
|
|
2016
2016
|
},
|
|
2017
2017
|
tag: r,
|
|
@@ -2097,14 +2097,14 @@ Prism.languages.insertBefore("c", "function", {
|
|
|
2097
2097
|
delete Prism.languages.c.boolean;
|
|
2098
2098
|
(function(e) {
|
|
2099
2099
|
var t = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
|
|
2100
|
-
function r(
|
|
2101
|
-
return
|
|
2100
|
+
function r(L) {
|
|
2101
|
+
return L = L.replace(/<inner>/g, function() {
|
|
2102
2102
|
return t;
|
|
2103
|
-
}), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" +
|
|
2103
|
+
}), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + L + ")");
|
|
2104
2104
|
}
|
|
2105
|
-
var
|
|
2106
|
-
return
|
|
2107
|
-
}),
|
|
2105
|
+
var i = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, T = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
|
|
2106
|
+
return i;
|
|
2107
|
+
}), P = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;
|
|
2108
2108
|
e.languages.markdown = e.languages.extend("markup", {}), e.languages.insertBefore("markdown", "prolog", {
|
|
2109
2109
|
"front-matter-block": {
|
|
2110
2110
|
pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,
|
|
@@ -2125,21 +2125,21 @@ delete Prism.languages.c.boolean;
|
|
|
2125
2125
|
alias: "punctuation"
|
|
2126
2126
|
},
|
|
2127
2127
|
table: {
|
|
2128
|
-
pattern: RegExp("^" + T +
|
|
2128
|
+
pattern: RegExp("^" + T + P + "(?:" + T + ")*", "m"),
|
|
2129
2129
|
inside: {
|
|
2130
2130
|
"table-data-rows": {
|
|
2131
|
-
pattern: RegExp("^(" + T +
|
|
2131
|
+
pattern: RegExp("^(" + T + P + ")(?:" + T + ")*$"),
|
|
2132
2132
|
lookbehind: !0,
|
|
2133
2133
|
inside: {
|
|
2134
2134
|
"table-data": {
|
|
2135
|
-
pattern: RegExp(
|
|
2135
|
+
pattern: RegExp(i),
|
|
2136
2136
|
inside: e.languages.markdown
|
|
2137
2137
|
},
|
|
2138
2138
|
punctuation: /\|/
|
|
2139
2139
|
}
|
|
2140
2140
|
},
|
|
2141
2141
|
"table-line": {
|
|
2142
|
-
pattern: RegExp("^(" + T + ")" +
|
|
2142
|
+
pattern: RegExp("^(" + T + ")" + P + "$"),
|
|
2143
2143
|
lookbehind: !0,
|
|
2144
2144
|
inside: {
|
|
2145
2145
|
punctuation: /\||:?-{3,}:?/
|
|
@@ -2149,7 +2149,7 @@ delete Prism.languages.c.boolean;
|
|
|
2149
2149
|
pattern: RegExp("^" + T + "$"),
|
|
2150
2150
|
inside: {
|
|
2151
2151
|
"table-header": {
|
|
2152
|
-
pattern: RegExp(
|
|
2152
|
+
pattern: RegExp(i),
|
|
2153
2153
|
alias: "important",
|
|
2154
2154
|
inside: e.languages.markdown
|
|
2155
2155
|
},
|
|
@@ -2329,69 +2329,69 @@ delete Prism.languages.c.boolean;
|
|
|
2329
2329
|
}
|
|
2330
2330
|
}
|
|
2331
2331
|
}
|
|
2332
|
-
}), ["url", "bold", "italic", "strike"].forEach(function(
|
|
2333
|
-
["url", "bold", "italic", "strike", "code-snippet"].forEach(function(
|
|
2334
|
-
|
|
2332
|
+
}), ["url", "bold", "italic", "strike"].forEach(function(L) {
|
|
2333
|
+
["url", "bold", "italic", "strike", "code-snippet"].forEach(function(_) {
|
|
2334
|
+
L !== _ && (e.languages.markdown[L].inside.content.inside[_] = e.languages.markdown[_]);
|
|
2335
2335
|
});
|
|
2336
|
-
}), e.hooks.add("after-tokenize", function(
|
|
2337
|
-
if (
|
|
2336
|
+
}), e.hooks.add("after-tokenize", function(L) {
|
|
2337
|
+
if (L.language !== "markdown" && L.language !== "md")
|
|
2338
2338
|
return;
|
|
2339
|
-
function
|
|
2339
|
+
function _(N) {
|
|
2340
2340
|
if (!(!N || typeof N == "string"))
|
|
2341
|
-
for (var U = 0,
|
|
2342
|
-
var
|
|
2343
|
-
if (
|
|
2344
|
-
|
|
2341
|
+
for (var U = 0, n = N.length; U < n; U++) {
|
|
2342
|
+
var c = N[U];
|
|
2343
|
+
if (c.type !== "code") {
|
|
2344
|
+
_(c.content);
|
|
2345
2345
|
continue;
|
|
2346
2346
|
}
|
|
2347
|
-
var
|
|
2348
|
-
if (
|
|
2349
|
-
var a =
|
|
2347
|
+
var d = c.content[1], l = c.content[3];
|
|
2348
|
+
if (d && l && d.type === "code-language" && l.type === "code-block" && typeof d.content == "string") {
|
|
2349
|
+
var a = d.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
|
|
2350
2350
|
a = (/[a-z][\w-]*/i.exec(a) || [""])[0].toLowerCase();
|
|
2351
|
-
var
|
|
2352
|
-
|
|
2351
|
+
var s = "language-" + a;
|
|
2352
|
+
l.alias ? typeof l.alias == "string" ? l.alias = [l.alias, s] : l.alias.push(s) : l.alias = [s];
|
|
2353
2353
|
}
|
|
2354
2354
|
}
|
|
2355
2355
|
}
|
|
2356
|
-
|
|
2357
|
-
}), e.hooks.add("wrap", function(
|
|
2358
|
-
if (
|
|
2359
|
-
for (var
|
|
2360
|
-
var
|
|
2361
|
-
if (
|
|
2362
|
-
|
|
2356
|
+
_(L.tokens);
|
|
2357
|
+
}), e.hooks.add("wrap", function(L) {
|
|
2358
|
+
if (L.type === "code-block") {
|
|
2359
|
+
for (var _ = "", N = 0, U = L.classes.length; N < U; N++) {
|
|
2360
|
+
var n = L.classes[N], c = /language-(.+)/.exec(n);
|
|
2361
|
+
if (c) {
|
|
2362
|
+
_ = c[1];
|
|
2363
2363
|
break;
|
|
2364
2364
|
}
|
|
2365
2365
|
}
|
|
2366
|
-
var
|
|
2367
|
-
if (
|
|
2368
|
-
|
|
2369
|
-
else if (
|
|
2370
|
-
var
|
|
2371
|
-
|
|
2372
|
-
var a = document.getElementById(
|
|
2373
|
-
a && (a.innerHTML = e.highlight(a.textContent, e.languages[
|
|
2366
|
+
var d = e.languages[_];
|
|
2367
|
+
if (d)
|
|
2368
|
+
L.content = e.highlight(D(L.content), d, _);
|
|
2369
|
+
else if (_ && _ !== "none" && e.plugins.autoloader) {
|
|
2370
|
+
var l = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 1e16);
|
|
2371
|
+
L.attributes.id = l, e.plugins.autoloader.loadLanguages(_, function() {
|
|
2372
|
+
var a = document.getElementById(l);
|
|
2373
|
+
a && (a.innerHTML = e.highlight(a.textContent, e.languages[_], _));
|
|
2374
2374
|
});
|
|
2375
2375
|
}
|
|
2376
2376
|
}
|
|
2377
2377
|
});
|
|
2378
|
-
var
|
|
2378
|
+
var S = RegExp(e.languages.markup.tag.pattern.source, "gi"), E = {
|
|
2379
2379
|
amp: "&",
|
|
2380
2380
|
lt: "<",
|
|
2381
2381
|
gt: ">",
|
|
2382
2382
|
quot: '"'
|
|
2383
|
-
},
|
|
2384
|
-
function D(
|
|
2385
|
-
var
|
|
2386
|
-
return
|
|
2383
|
+
}, w = String.fromCodePoint || String.fromCharCode;
|
|
2384
|
+
function D(L) {
|
|
2385
|
+
var _ = L.replace(S, "");
|
|
2386
|
+
return _ = _.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(N, U) {
|
|
2387
2387
|
if (U = U.toLowerCase(), U[0] === "#") {
|
|
2388
|
-
var
|
|
2389
|
-
return U[1] === "x" ?
|
|
2388
|
+
var n;
|
|
2389
|
+
return U[1] === "x" ? n = parseInt(U.slice(2), 16) : n = Number(U.slice(1)), w(n);
|
|
2390
2390
|
} else {
|
|
2391
|
-
var
|
|
2392
|
-
return
|
|
2391
|
+
var c = E[U];
|
|
2392
|
+
return c || N;
|
|
2393
2393
|
}
|
|
2394
|
-
}),
|
|
2394
|
+
}), _;
|
|
2395
2395
|
}
|
|
2396
2396
|
e.languages.md = e.languages.markdown;
|
|
2397
2397
|
})(Prism);
|
|
@@ -2459,7 +2459,7 @@ Prism.languages.python = {
|
|
|
2459
2459
|
Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest = Prism.languages.python;
|
|
2460
2460
|
Prism.languages.py = Prism.languages.python;
|
|
2461
2461
|
(function(e) {
|
|
2462
|
-
var t = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/, r = /(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,
|
|
2462
|
+
var t = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/, r = /(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source, i = {
|
|
2463
2463
|
pattern: RegExp(/(^|[^\w.])/.source + r + /[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),
|
|
2464
2464
|
lookbehind: !0,
|
|
2465
2465
|
inside: {
|
|
@@ -2479,20 +2479,20 @@ Prism.languages.py = Prism.languages.python;
|
|
|
2479
2479
|
greedy: !0
|
|
2480
2480
|
},
|
|
2481
2481
|
"class-name": [
|
|
2482
|
-
|
|
2482
|
+
i,
|
|
2483
2483
|
{
|
|
2484
2484
|
// variables, parameters, and constructor references
|
|
2485
2485
|
// this to support class names (or generic parameters) which do not contain a lower case letter (also works for methods)
|
|
2486
2486
|
pattern: RegExp(/(^|[^\w.])/.source + r + /[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),
|
|
2487
2487
|
lookbehind: !0,
|
|
2488
|
-
inside:
|
|
2488
|
+
inside: i.inside
|
|
2489
2489
|
},
|
|
2490
2490
|
{
|
|
2491
2491
|
// class names based on keyword
|
|
2492
2492
|
// this to support class names (or generic parameters) which do not contain a lower case letter (also works for methods)
|
|
2493
2493
|
pattern: RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source + r + /[A-Z]\w*\b/.source),
|
|
2494
2494
|
lookbehind: !0,
|
|
2495
|
-
inside:
|
|
2495
|
+
inside: i.inside
|
|
2496
2496
|
}
|
|
2497
2497
|
],
|
|
2498
2498
|
keyword: t,
|
|
@@ -2529,7 +2529,7 @@ Prism.languages.py = Prism.languages.python;
|
|
|
2529
2529
|
generics: {
|
|
2530
2530
|
pattern: /<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,
|
|
2531
2531
|
inside: {
|
|
2532
|
-
"class-name":
|
|
2532
|
+
"class-name": i,
|
|
2533
2533
|
keyword: t,
|
|
2534
2534
|
punctuation: /[<>(),.:]/,
|
|
2535
2535
|
operator: /[?&|]/
|
|
@@ -2540,7 +2540,7 @@ Prism.languages.py = Prism.languages.python;
|
|
|
2540
2540
|
pattern: RegExp(/(\bimport\s+)/.source + r + /(?:[A-Z]\w*|\*)(?=\s*;)/.source),
|
|
2541
2541
|
lookbehind: !0,
|
|
2542
2542
|
inside: {
|
|
2543
|
-
namespace:
|
|
2543
|
+
namespace: i.inside.namespace,
|
|
2544
2544
|
punctuation: /\./,
|
|
2545
2545
|
operator: /\*/,
|
|
2546
2546
|
"class-name": /\w+/
|
|
@@ -2551,7 +2551,7 @@ Prism.languages.py = Prism.languages.python;
|
|
|
2551
2551
|
lookbehind: !0,
|
|
2552
2552
|
alias: "static",
|
|
2553
2553
|
inside: {
|
|
2554
|
-
namespace:
|
|
2554
|
+
namespace: i.inside.namespace,
|
|
2555
2555
|
static: /\b\w+$/,
|
|
2556
2556
|
punctuation: /\./,
|
|
2557
2557
|
operator: /\*/,
|
|
@@ -2760,27 +2760,27 @@ delete Prism.languages.go["class-name"];
|
|
|
2760
2760
|
}), e.languages.ts = e.languages.typescript;
|
|
2761
2761
|
})(Prism);
|
|
2762
2762
|
(function(e) {
|
|
2763
|
-
var t = e.util.clone(e.languages.javascript), r = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,
|
|
2764
|
-
function
|
|
2765
|
-
return
|
|
2763
|
+
var t = e.util.clone(e.languages.javascript), r = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, i = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, T = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
|
|
2764
|
+
function P(w, D) {
|
|
2765
|
+
return w = w.replace(/<S>/g, function() {
|
|
2766
2766
|
return r;
|
|
2767
2767
|
}).replace(/<BRACES>/g, function() {
|
|
2768
|
-
return
|
|
2768
|
+
return i;
|
|
2769
2769
|
}).replace(/<SPREAD>/g, function() {
|
|
2770
2770
|
return T;
|
|
2771
|
-
}), RegExp(
|
|
2771
|
+
}), RegExp(w, D);
|
|
2772
2772
|
}
|
|
2773
|
-
T =
|
|
2773
|
+
T = P(T).source, e.languages.jsx = e.languages.extend("markup", t), e.languages.jsx.tag.pattern = P(
|
|
2774
2774
|
/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source
|
|
2775
2775
|
), 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", {
|
|
2776
2776
|
spread: {
|
|
2777
|
-
pattern:
|
|
2777
|
+
pattern: P(/<SPREAD>/.source),
|
|
2778
2778
|
inside: e.languages.jsx
|
|
2779
2779
|
}
|
|
2780
2780
|
}, e.languages.jsx.tag), e.languages.insertBefore("inside", "special-attr", {
|
|
2781
2781
|
script: {
|
|
2782
2782
|
// Allow for two levels of nesting
|
|
2783
|
-
pattern:
|
|
2783
|
+
pattern: P(/=<BRACES>/.source),
|
|
2784
2784
|
alias: "language-javascript",
|
|
2785
2785
|
inside: {
|
|
2786
2786
|
"script-punctuation": {
|
|
@@ -2791,23 +2791,23 @@ delete Prism.languages.go["class-name"];
|
|
|
2791
2791
|
}
|
|
2792
2792
|
}
|
|
2793
2793
|
}, e.languages.jsx.tag);
|
|
2794
|
-
var
|
|
2795
|
-
return
|
|
2796
|
-
},
|
|
2797
|
-
for (var D = [],
|
|
2798
|
-
var
|
|
2799
|
-
if (typeof
|
|
2800
|
-
tagName:
|
|
2794
|
+
var S = function(w) {
|
|
2795
|
+
return w ? typeof w == "string" ? w : typeof w.content == "string" ? w.content : w.content.map(S).join("") : "";
|
|
2796
|
+
}, E = function(w) {
|
|
2797
|
+
for (var D = [], L = 0; L < w.length; L++) {
|
|
2798
|
+
var _ = w[L], N = !1;
|
|
2799
|
+
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({
|
|
2800
|
+
tagName: S(_.content[0].content[1]),
|
|
2801
2801
|
openedBraces: 0
|
|
2802
|
-
}) : D.length > 0 &&
|
|
2803
|
-
var U =
|
|
2804
|
-
|
|
2802
|
+
}) : 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) {
|
|
2803
|
+
var U = S(_);
|
|
2804
|
+
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);
|
|
2805
2805
|
}
|
|
2806
|
-
|
|
2806
|
+
_.content && typeof _.content != "string" && E(_.content);
|
|
2807
2807
|
}
|
|
2808
2808
|
};
|
|
2809
|
-
e.hooks.add("after-tokenize", function(
|
|
2810
|
-
|
|
2809
|
+
e.hooks.add("after-tokenize", function(w) {
|
|
2810
|
+
w.language !== "jsx" && w.language !== "tsx" || E(w.tokens);
|
|
2811
2811
|
});
|
|
2812
2812
|
})(Prism);
|
|
2813
2813
|
(function(e) {
|
|
@@ -2901,7 +2901,7 @@ delete Prism.languages.go["class-name"];
|
|
|
2901
2901
|
var r = e.languages.tsx.tag;
|
|
2902
2902
|
r.pattern = RegExp(/(^|[^\w$]|(?=<\/))/.source + "(?:" + r.pattern.source + ")", r.pattern.flags), r.lookbehind = !0;
|
|
2903
2903
|
})(Prism);
|
|
2904
|
-
function
|
|
2904
|
+
function lt() {
|
|
2905
2905
|
K.languages.wsx || (K.languages.wsx = K.languages.extend("tsx", {
|
|
2906
2906
|
// WSX-specific decorators (e.g., @autoRegister, @state)
|
|
2907
2907
|
decorator: {
|
|
@@ -2934,113 +2934,113 @@ function ct() {
|
|
|
2934
2934
|
}
|
|
2935
2935
|
}), K.languages.WSX = K.languages.wsx);
|
|
2936
2936
|
}
|
|
2937
|
-
|
|
2938
|
-
var
|
|
2939
|
-
let Re,
|
|
2940
|
-
function
|
|
2941
|
-
return (t =
|
|
2937
|
+
lt();
|
|
2938
|
+
var Ie;
|
|
2939
|
+
let Re, Oe;
|
|
2940
|
+
function Q(e, t, r) {
|
|
2941
|
+
return (t = Le(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
2942
2942
|
}
|
|
2943
|
-
function ut(e, t, r,
|
|
2944
|
-
function
|
|
2945
|
-
return function(
|
|
2946
|
-
return
|
|
2943
|
+
function ut(e, t, r, i, T, P) {
|
|
2944
|
+
function S(n, c, d) {
|
|
2945
|
+
return function(l, a) {
|
|
2946
|
+
return d && d(l), n[c].call(l, a);
|
|
2947
2947
|
};
|
|
2948
2948
|
}
|
|
2949
|
-
function
|
|
2950
|
-
for (var
|
|
2951
|
-
return
|
|
2949
|
+
function E(n, c) {
|
|
2950
|
+
for (var d = 0; d < n.length; d++) n[d].call(c);
|
|
2951
|
+
return c;
|
|
2952
2952
|
}
|
|
2953
|
-
function
|
|
2954
|
-
if (typeof
|
|
2955
|
-
return
|
|
2953
|
+
function w(n, c, d, l) {
|
|
2954
|
+
if (typeof n != "function" && (l || n !== void 0)) throw new TypeError(c + " must " + (d || "be") + " a function" + (l ? "" : " or undefined"));
|
|
2955
|
+
return n;
|
|
2956
2956
|
}
|
|
2957
|
-
function D(
|
|
2958
|
-
function
|
|
2959
|
-
if (!b(
|
|
2957
|
+
function D(n, c, d, l, a, s, p, g, k, h, m, u, b) {
|
|
2958
|
+
function A(f) {
|
|
2959
|
+
if (!b(f)) throw new TypeError("Attempted to access private element on non-instance");
|
|
2960
2960
|
}
|
|
2961
|
-
var
|
|
2962
|
-
if (
|
|
2963
|
-
|
|
2964
|
-
var
|
|
2965
|
-
h ? (
|
|
2961
|
+
var x, F = c[0], I = c[3], $ = !g;
|
|
2962
|
+
if (!$) {
|
|
2963
|
+
d || Array.isArray(F) || (F = [F]);
|
|
2964
|
+
var o = {}, R = [], v = a === 3 ? "get" : a === 4 || u ? "set" : "value";
|
|
2965
|
+
h ? (m || u ? o = { get: pe(function() {
|
|
2966
2966
|
return I(this);
|
|
2967
|
-
},
|
|
2968
|
-
|
|
2969
|
-
} } :
|
|
2967
|
+
}, l, "get"), set: function(f) {
|
|
2968
|
+
c[4](this, f);
|
|
2969
|
+
} } : o[v] = I, m || pe(o[v], l, a === 2 ? "" : v)) : m || (o = Object.getOwnPropertyDescriptor(n, l));
|
|
2970
2970
|
}
|
|
2971
|
-
for (var
|
|
2972
|
-
var Z =
|
|
2973
|
-
if (
|
|
2974
|
-
|
|
2971
|
+
for (var y = n, M = F.length - 1; M >= 0; M -= d ? 2 : 1) {
|
|
2972
|
+
var Z = F[M], B = d ? F[M - 1] : void 0, X = {}, C = { kind: ["field", "accessor", "method", "getter", "setter", "class"][a], name: l, metadata: s, addInitializer: (function(f, O) {
|
|
2973
|
+
if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
2974
|
+
w(O, "An initializer", "be", !0), p.push(O);
|
|
2975
2975
|
}).bind(null, X) };
|
|
2976
2976
|
try {
|
|
2977
|
-
if (
|
|
2977
|
+
if ($) (x = w(Z.call(B, y, C), "class decorators", "return")) && (y = x);
|
|
2978
2978
|
else {
|
|
2979
|
-
var
|
|
2980
|
-
|
|
2981
|
-
return
|
|
2982
|
-
} : (a < 4 && (
|
|
2983
|
-
return
|
|
2984
|
-
}, (a < 2 || a === 4) && (z = function(
|
|
2985
|
-
|
|
2979
|
+
var j, z;
|
|
2980
|
+
C.static = k, C.private = h, h ? a === 2 ? j = function(f) {
|
|
2981
|
+
return A(f), o.value;
|
|
2982
|
+
} : (a < 4 && (j = S(o, "get", A)), a !== 3 && (z = S(o, "set", A))) : (j = function(f) {
|
|
2983
|
+
return f[l];
|
|
2984
|
+
}, (a < 2 || a === 4) && (z = function(f, O) {
|
|
2985
|
+
f[l] = O;
|
|
2986
2986
|
}));
|
|
2987
|
-
var Y =
|
|
2988
|
-
return
|
|
2987
|
+
var Y = C.access = { has: h ? b.bind() : function(f) {
|
|
2988
|
+
return l in f;
|
|
2989
2989
|
} };
|
|
2990
|
-
if (
|
|
2991
|
-
if (typeof
|
|
2992
|
-
else if (
|
|
2993
|
-
} else
|
|
2990
|
+
if (j && (Y.get = j), z && (Y.set = z), y = Z.call(B, u ? { get: o.get, set: o.set } : o[v], C), u) {
|
|
2991
|
+
if (typeof y == "object" && y) (x = w(y.get, "accessor.get")) && (o.get = x), (x = w(y.set, "accessor.set")) && (o.set = x), (x = w(y.init, "accessor.init")) && R.push(x);
|
|
2992
|
+
else if (y !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
2993
|
+
} else w(y, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(y) : o[v] = y);
|
|
2994
2994
|
}
|
|
2995
2995
|
} finally {
|
|
2996
2996
|
X.v = !0;
|
|
2997
2997
|
}
|
|
2998
2998
|
}
|
|
2999
|
-
return (
|
|
3000
|
-
for (var H =
|
|
2999
|
+
return (m || u) && g.push(function(f, O) {
|
|
3000
|
+
for (var H = R.length - 1; H >= 0; H--) O = R[H].call(f, O);
|
|
3001
3001
|
return O;
|
|
3002
|
-
}),
|
|
3002
|
+
}), m || $ || (h ? u ? g.push(S(o, "get"), S(o, "set")) : g.push(a === 2 ? o[v] : S.call.bind(o[v])) : Object.defineProperty(n, l, o)), y;
|
|
3003
3003
|
}
|
|
3004
|
-
function
|
|
3005
|
-
return Object.defineProperty(
|
|
3004
|
+
function L(n, c) {
|
|
3005
|
+
return Object.defineProperty(n, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: c });
|
|
3006
3006
|
}
|
|
3007
|
-
if (arguments.length >= 6) var
|
|
3008
|
-
var N = Object.create(
|
|
3009
|
-
var a,
|
|
3010
|
-
return
|
|
3011
|
-
},
|
|
3012
|
-
function h(
|
|
3013
|
-
|
|
3007
|
+
if (arguments.length >= 6) var _ = P[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
3008
|
+
var N = Object.create(_ ?? null), U = function(n, c, d, l) {
|
|
3009
|
+
var a, s, p = [], g = function(v) {
|
|
3010
|
+
return dt(v) === n;
|
|
3011
|
+
}, k = /* @__PURE__ */ new Map();
|
|
3012
|
+
function h(v) {
|
|
3013
|
+
v && p.push(E.bind(null, v));
|
|
3014
3014
|
}
|
|
3015
|
-
for (var
|
|
3016
|
-
var
|
|
3017
|
-
if (Array.isArray(
|
|
3018
|
-
var b =
|
|
3019
|
-
if (
|
|
3020
|
-
var
|
|
3021
|
-
if (
|
|
3022
|
-
|
|
3015
|
+
for (var m = 0; m < c.length; m++) {
|
|
3016
|
+
var u = c[m];
|
|
3017
|
+
if (Array.isArray(u)) {
|
|
3018
|
+
var b = u[1], A = u[2], x = u.length > 3, F = 16 & b, I = !!(8 & b), $ = (b &= 7) == 0, o = A + "/" + I;
|
|
3019
|
+
if (!$ && !x) {
|
|
3020
|
+
var R = k.get(o);
|
|
3021
|
+
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);
|
|
3022
|
+
k.set(o, !(b > 2) || b);
|
|
3023
3023
|
}
|
|
3024
|
-
D(I ?
|
|
3024
|
+
D(I ? n : n.prototype, u, F, x ? "#" + A : Le(A), b, l, I ? s = s || [] : a = a || [], p, I, x, $, b === 1, I && x ? g : d);
|
|
3025
3025
|
}
|
|
3026
3026
|
}
|
|
3027
|
-
return h(a), h(
|
|
3027
|
+
return h(a), h(s), p;
|
|
3028
3028
|
}(e, t, T, N);
|
|
3029
|
-
return r.length ||
|
|
3030
|
-
var
|
|
3031
|
-
return r.length && [
|
|
3029
|
+
return r.length || L(e, N), { e: U, get c() {
|
|
3030
|
+
var n = [];
|
|
3031
|
+
return r.length && [L(D(e, [r], i, e.name, 5, N, n), N), E.bind(null, n, e)];
|
|
3032
3032
|
} };
|
|
3033
3033
|
}
|
|
3034
|
-
function
|
|
3035
|
-
var t =
|
|
3034
|
+
function Le(e) {
|
|
3035
|
+
var t = ct(e, "string");
|
|
3036
3036
|
return typeof t == "symbol" ? t : t + "";
|
|
3037
3037
|
}
|
|
3038
|
-
function
|
|
3038
|
+
function ct(e, t) {
|
|
3039
3039
|
if (typeof e != "object" || !e) return e;
|
|
3040
3040
|
var r = e[Symbol.toPrimitive];
|
|
3041
3041
|
if (r !== void 0) {
|
|
3042
|
-
var
|
|
3043
|
-
if (typeof
|
|
3042
|
+
var i = r.call(e, t);
|
|
3043
|
+
if (typeof i != "object") return i;
|
|
3044
3044
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3045
3045
|
}
|
|
3046
3046
|
return String(e);
|
|
@@ -3053,11 +3053,11 @@ function pe(e, t, r) {
|
|
|
3053
3053
|
}
|
|
3054
3054
|
return e;
|
|
3055
3055
|
}
|
|
3056
|
-
function
|
|
3056
|
+
function dt(e) {
|
|
3057
3057
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e !== null ? typeof e : "null"));
|
|
3058
3058
|
return e;
|
|
3059
3059
|
}
|
|
3060
|
-
const
|
|
3060
|
+
const gt = {
|
|
3061
3061
|
js: "javascript",
|
|
3062
3062
|
ts: "typescript",
|
|
3063
3063
|
py: "python",
|
|
@@ -3076,24 +3076,24 @@ const pt = {
|
|
|
3076
3076
|
};
|
|
3077
3077
|
function me(e) {
|
|
3078
3078
|
const t = e.toLowerCase().trim();
|
|
3079
|
-
return
|
|
3079
|
+
return gt[t] || t;
|
|
3080
3080
|
}
|
|
3081
|
-
|
|
3081
|
+
Oe = [W({
|
|
3082
3082
|
tagName: "wsx-marked-code"
|
|
3083
3083
|
})];
|
|
3084
|
-
let
|
|
3085
|
-
class
|
|
3084
|
+
let pt;
|
|
3085
|
+
class mt extends q {
|
|
3086
3086
|
constructor() {
|
|
3087
3087
|
super({
|
|
3088
|
-
styles:
|
|
3088
|
+
styles: de,
|
|
3089
3089
|
styleName: "wsx-marked-code"
|
|
3090
|
-
}),
|
|
3090
|
+
}), Q(this, "_autoStyles", de), Q(this, "code", ""), Q(this, "language", ""), Q(this, "codeElement", null), Q(this, "isHighlighting", !1);
|
|
3091
3091
|
}
|
|
3092
3092
|
static get observedAttributes() {
|
|
3093
3093
|
return ["code", "language"];
|
|
3094
3094
|
}
|
|
3095
|
-
attributeChangedCallback(t, r,
|
|
3096
|
-
t === "code" ? this.code =
|
|
3095
|
+
attributeChangedCallback(t, r, i) {
|
|
3096
|
+
t === "code" ? this.code = i || "" : t === "language" && (this.language = i || ""), this.rerender();
|
|
3097
3097
|
}
|
|
3098
3098
|
onRendered() {
|
|
3099
3099
|
var t;
|
|
@@ -3173,123 +3173,123 @@ class ft extends q {
|
|
|
3173
3173
|
*/
|
|
3174
3174
|
hashCode(t) {
|
|
3175
3175
|
let r = 0;
|
|
3176
|
-
for (let
|
|
3177
|
-
const T = t.charCodeAt(
|
|
3176
|
+
for (let i = 0; i < t.length; i++) {
|
|
3177
|
+
const T = t.charCodeAt(i);
|
|
3178
3178
|
r = (r << 5) - r + T, r = r & r;
|
|
3179
3179
|
}
|
|
3180
3180
|
return r.toString(36);
|
|
3181
3181
|
}
|
|
3182
3182
|
}
|
|
3183
|
-
|
|
3184
|
-
[
|
|
3183
|
+
Ie = mt;
|
|
3184
|
+
[pt, Re] = ut(Ie, [], Oe, 0, void 0, q).c;
|
|
3185
3185
|
Re();
|
|
3186
3186
|
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)}";
|
|
3187
3187
|
var Ne;
|
|
3188
3188
|
let $e, Ce;
|
|
3189
|
-
function
|
|
3189
|
+
function ft(e, t, r) {
|
|
3190
3190
|
return (t = De(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
3191
3191
|
}
|
|
3192
|
-
function
|
|
3193
|
-
function
|
|
3194
|
-
return function(
|
|
3195
|
-
return
|
|
3192
|
+
function ht(e, t, r, i, T, P) {
|
|
3193
|
+
function S(n, c, d) {
|
|
3194
|
+
return function(l, a) {
|
|
3195
|
+
return d && d(l), n[c].call(l, a);
|
|
3196
3196
|
};
|
|
3197
3197
|
}
|
|
3198
|
-
function
|
|
3199
|
-
for (var
|
|
3200
|
-
return
|
|
3198
|
+
function E(n, c) {
|
|
3199
|
+
for (var d = 0; d < n.length; d++) n[d].call(c);
|
|
3200
|
+
return c;
|
|
3201
3201
|
}
|
|
3202
|
-
function
|
|
3203
|
-
if (typeof
|
|
3204
|
-
return
|
|
3202
|
+
function w(n, c, d, l) {
|
|
3203
|
+
if (typeof n != "function" && (l || n !== void 0)) throw new TypeError(c + " must " + (d || "be") + " a function" + (l ? "" : " or undefined"));
|
|
3204
|
+
return n;
|
|
3205
3205
|
}
|
|
3206
|
-
function D(
|
|
3207
|
-
function
|
|
3208
|
-
if (!b(
|
|
3206
|
+
function D(n, c, d, l, a, s, p, g, k, h, m, u, b) {
|
|
3207
|
+
function A(f) {
|
|
3208
|
+
if (!b(f)) throw new TypeError("Attempted to access private element on non-instance");
|
|
3209
3209
|
}
|
|
3210
|
-
var
|
|
3211
|
-
if (
|
|
3212
|
-
|
|
3213
|
-
var
|
|
3214
|
-
h ? (
|
|
3210
|
+
var x, F = c[0], I = c[3], $ = !g;
|
|
3211
|
+
if (!$) {
|
|
3212
|
+
d || Array.isArray(F) || (F = [F]);
|
|
3213
|
+
var o = {}, R = [], v = a === 3 ? "get" : a === 4 || u ? "set" : "value";
|
|
3214
|
+
h ? (m || u ? o = { get: he(function() {
|
|
3215
3215
|
return I(this);
|
|
3216
|
-
},
|
|
3217
|
-
|
|
3218
|
-
} } :
|
|
3216
|
+
}, l, "get"), set: function(f) {
|
|
3217
|
+
c[4](this, f);
|
|
3218
|
+
} } : o[v] = I, m || he(o[v], l, a === 2 ? "" : v)) : m || (o = Object.getOwnPropertyDescriptor(n, l));
|
|
3219
3219
|
}
|
|
3220
|
-
for (var
|
|
3221
|
-
var Z =
|
|
3222
|
-
if (
|
|
3223
|
-
|
|
3220
|
+
for (var y = n, M = F.length - 1; M >= 0; M -= d ? 2 : 1) {
|
|
3221
|
+
var Z = F[M], B = d ? F[M - 1] : void 0, X = {}, C = { kind: ["field", "accessor", "method", "getter", "setter", "class"][a], name: l, metadata: s, addInitializer: (function(f, O) {
|
|
3222
|
+
if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
3223
|
+
w(O, "An initializer", "be", !0), p.push(O);
|
|
3224
3224
|
}).bind(null, X) };
|
|
3225
3225
|
try {
|
|
3226
|
-
if (
|
|
3226
|
+
if ($) (x = w(Z.call(B, y, C), "class decorators", "return")) && (y = x);
|
|
3227
3227
|
else {
|
|
3228
|
-
var
|
|
3229
|
-
|
|
3230
|
-
return
|
|
3231
|
-
} : (a < 4 && (
|
|
3232
|
-
return
|
|
3233
|
-
}, (a < 2 || a === 4) && (z = function(
|
|
3234
|
-
|
|
3228
|
+
var j, z;
|
|
3229
|
+
C.static = k, C.private = h, h ? a === 2 ? j = function(f) {
|
|
3230
|
+
return A(f), o.value;
|
|
3231
|
+
} : (a < 4 && (j = S(o, "get", A)), a !== 3 && (z = S(o, "set", A))) : (j = function(f) {
|
|
3232
|
+
return f[l];
|
|
3233
|
+
}, (a < 2 || a === 4) && (z = function(f, O) {
|
|
3234
|
+
f[l] = O;
|
|
3235
3235
|
}));
|
|
3236
|
-
var Y =
|
|
3237
|
-
return
|
|
3236
|
+
var Y = C.access = { has: h ? b.bind() : function(f) {
|
|
3237
|
+
return l in f;
|
|
3238
3238
|
} };
|
|
3239
|
-
if (
|
|
3240
|
-
if (typeof
|
|
3241
|
-
else if (
|
|
3242
|
-
} else
|
|
3239
|
+
if (j && (Y.get = j), z && (Y.set = z), y = Z.call(B, u ? { get: o.get, set: o.set } : o[v], C), u) {
|
|
3240
|
+
if (typeof y == "object" && y) (x = w(y.get, "accessor.get")) && (o.get = x), (x = w(y.set, "accessor.set")) && (o.set = x), (x = w(y.init, "accessor.init")) && R.push(x);
|
|
3241
|
+
else if (y !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
3242
|
+
} else w(y, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(y) : o[v] = y);
|
|
3243
3243
|
}
|
|
3244
3244
|
} finally {
|
|
3245
3245
|
X.v = !0;
|
|
3246
3246
|
}
|
|
3247
3247
|
}
|
|
3248
|
-
return (
|
|
3249
|
-
for (var H =
|
|
3248
|
+
return (m || u) && g.push(function(f, O) {
|
|
3249
|
+
for (var H = R.length - 1; H >= 0; H--) O = R[H].call(f, O);
|
|
3250
3250
|
return O;
|
|
3251
|
-
}),
|
|
3251
|
+
}), m || $ || (h ? u ? g.push(S(o, "get"), S(o, "set")) : g.push(a === 2 ? o[v] : S.call.bind(o[v])) : Object.defineProperty(n, l, o)), y;
|
|
3252
3252
|
}
|
|
3253
|
-
function
|
|
3254
|
-
return Object.defineProperty(
|
|
3253
|
+
function L(n, c) {
|
|
3254
|
+
return Object.defineProperty(n, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: c });
|
|
3255
3255
|
}
|
|
3256
|
-
if (arguments.length >= 6) var
|
|
3257
|
-
var N = Object.create(
|
|
3258
|
-
var a,
|
|
3259
|
-
return
|
|
3260
|
-
},
|
|
3261
|
-
function h(
|
|
3262
|
-
|
|
3256
|
+
if (arguments.length >= 6) var _ = P[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
3257
|
+
var N = Object.create(_ ?? null), U = function(n, c, d, l) {
|
|
3258
|
+
var a, s, p = [], g = function(v) {
|
|
3259
|
+
return kt(v) === n;
|
|
3260
|
+
}, k = /* @__PURE__ */ new Map();
|
|
3261
|
+
function h(v) {
|
|
3262
|
+
v && p.push(E.bind(null, v));
|
|
3263
3263
|
}
|
|
3264
|
-
for (var
|
|
3265
|
-
var
|
|
3266
|
-
if (Array.isArray(
|
|
3267
|
-
var b =
|
|
3268
|
-
if (
|
|
3269
|
-
var
|
|
3270
|
-
if (
|
|
3271
|
-
|
|
3264
|
+
for (var m = 0; m < c.length; m++) {
|
|
3265
|
+
var u = c[m];
|
|
3266
|
+
if (Array.isArray(u)) {
|
|
3267
|
+
var b = u[1], A = u[2], x = u.length > 3, F = 16 & b, I = !!(8 & b), $ = (b &= 7) == 0, o = A + "/" + I;
|
|
3268
|
+
if (!$ && !x) {
|
|
3269
|
+
var R = k.get(o);
|
|
3270
|
+
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);
|
|
3271
|
+
k.set(o, !(b > 2) || b);
|
|
3272
3272
|
}
|
|
3273
|
-
D(I ?
|
|
3273
|
+
D(I ? n : n.prototype, u, F, x ? "#" + A : De(A), b, l, I ? s = s || [] : a = a || [], p, I, x, $, b === 1, I && x ? g : d);
|
|
3274
3274
|
}
|
|
3275
3275
|
}
|
|
3276
|
-
return h(a), h(
|
|
3276
|
+
return h(a), h(s), p;
|
|
3277
3277
|
}(e, t, T, N);
|
|
3278
|
-
return r.length ||
|
|
3279
|
-
var
|
|
3280
|
-
return r.length && [
|
|
3278
|
+
return r.length || L(e, N), { e: U, get c() {
|
|
3279
|
+
var n = [];
|
|
3280
|
+
return r.length && [L(D(e, [r], i, e.name, 5, N, n), N), E.bind(null, n, e)];
|
|
3281
3281
|
} };
|
|
3282
3282
|
}
|
|
3283
3283
|
function De(e) {
|
|
3284
|
-
var t =
|
|
3284
|
+
var t = bt(e, "string");
|
|
3285
3285
|
return typeof t == "symbol" ? t : t + "";
|
|
3286
3286
|
}
|
|
3287
|
-
function
|
|
3287
|
+
function bt(e, t) {
|
|
3288
3288
|
if (typeof e != "object" || !e) return e;
|
|
3289
3289
|
var r = e[Symbol.toPrimitive];
|
|
3290
3290
|
if (r !== void 0) {
|
|
3291
|
-
var
|
|
3292
|
-
if (typeof
|
|
3291
|
+
var i = r.call(e, t);
|
|
3292
|
+
if (typeof i != "object") return i;
|
|
3293
3293
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3294
3294
|
}
|
|
3295
3295
|
return String(e);
|
|
@@ -3302,134 +3302,134 @@ function he(e, t, r) {
|
|
|
3302
3302
|
}
|
|
3303
3303
|
return e;
|
|
3304
3304
|
}
|
|
3305
|
-
function
|
|
3305
|
+
function kt(e) {
|
|
3306
3306
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e !== null ? typeof e : "null"));
|
|
3307
3307
|
return e;
|
|
3308
3308
|
}
|
|
3309
3309
|
Ce = [W({
|
|
3310
3310
|
tagName: "wsx-marked-blockquote"
|
|
3311
3311
|
})];
|
|
3312
|
-
let
|
|
3313
|
-
class
|
|
3312
|
+
let yt;
|
|
3313
|
+
class vt extends q {
|
|
3314
3314
|
constructor() {
|
|
3315
3315
|
super({
|
|
3316
3316
|
styles: fe,
|
|
3317
3317
|
styleName: "wsx-marked-blockquote"
|
|
3318
|
-
}),
|
|
3318
|
+
}), ft(this, "_autoStyles", fe);
|
|
3319
3319
|
}
|
|
3320
3320
|
render() {
|
|
3321
3321
|
return /* @__PURE__ */ G("blockquote", null, /* @__PURE__ */ G("slot", null));
|
|
3322
3322
|
}
|
|
3323
3323
|
}
|
|
3324
|
-
Ne =
|
|
3325
|
-
[
|
|
3324
|
+
Ne = vt;
|
|
3325
|
+
[yt, $e] = ht(Ne, [], Ce, 0, void 0, q).c;
|
|
3326
3326
|
$e();
|
|
3327
3327
|
var Pe;
|
|
3328
|
-
let
|
|
3328
|
+
let je, Me;
|
|
3329
3329
|
function xt(e, t, r) {
|
|
3330
|
-
return (t =
|
|
3330
|
+
return (t = ze(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
3331
3331
|
}
|
|
3332
|
-
function
|
|
3333
|
-
function
|
|
3334
|
-
return function(
|
|
3335
|
-
return
|
|
3332
|
+
function wt(e, t, r, i, T, P) {
|
|
3333
|
+
function S(n, c, d) {
|
|
3334
|
+
return function(l, a) {
|
|
3335
|
+
return d && d(l), n[c].call(l, a);
|
|
3336
3336
|
};
|
|
3337
3337
|
}
|
|
3338
|
-
function
|
|
3339
|
-
for (var
|
|
3340
|
-
return
|
|
3338
|
+
function E(n, c) {
|
|
3339
|
+
for (var d = 0; d < n.length; d++) n[d].call(c);
|
|
3340
|
+
return c;
|
|
3341
3341
|
}
|
|
3342
|
-
function
|
|
3343
|
-
if (typeof
|
|
3344
|
-
return
|
|
3342
|
+
function w(n, c, d, l) {
|
|
3343
|
+
if (typeof n != "function" && (l || n !== void 0)) throw new TypeError(c + " must " + (d || "be") + " a function" + (l ? "" : " or undefined"));
|
|
3344
|
+
return n;
|
|
3345
3345
|
}
|
|
3346
|
-
function D(
|
|
3347
|
-
function
|
|
3348
|
-
if (!b(
|
|
3346
|
+
function D(n, c, d, l, a, s, p, g, k, h, m, u, b) {
|
|
3347
|
+
function A(f) {
|
|
3348
|
+
if (!b(f)) throw new TypeError("Attempted to access private element on non-instance");
|
|
3349
3349
|
}
|
|
3350
|
-
var
|
|
3351
|
-
if (
|
|
3352
|
-
|
|
3353
|
-
var
|
|
3354
|
-
h ? (
|
|
3350
|
+
var x, F = c[0], I = c[3], $ = !g;
|
|
3351
|
+
if (!$) {
|
|
3352
|
+
d || Array.isArray(F) || (F = [F]);
|
|
3353
|
+
var o = {}, R = [], v = a === 3 ? "get" : a === 4 || u ? "set" : "value";
|
|
3354
|
+
h ? (m || u ? o = { get: be(function() {
|
|
3355
3355
|
return I(this);
|
|
3356
|
-
},
|
|
3357
|
-
|
|
3358
|
-
} } :
|
|
3356
|
+
}, l, "get"), set: function(f) {
|
|
3357
|
+
c[4](this, f);
|
|
3358
|
+
} } : o[v] = I, m || be(o[v], l, a === 2 ? "" : v)) : m || (o = Object.getOwnPropertyDescriptor(n, l));
|
|
3359
3359
|
}
|
|
3360
|
-
for (var
|
|
3361
|
-
var Z =
|
|
3362
|
-
if (
|
|
3363
|
-
|
|
3360
|
+
for (var y = n, M = F.length - 1; M >= 0; M -= d ? 2 : 1) {
|
|
3361
|
+
var Z = F[M], B = d ? F[M - 1] : void 0, X = {}, C = { kind: ["field", "accessor", "method", "getter", "setter", "class"][a], name: l, metadata: s, addInitializer: (function(f, O) {
|
|
3362
|
+
if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
3363
|
+
w(O, "An initializer", "be", !0), p.push(O);
|
|
3364
3364
|
}).bind(null, X) };
|
|
3365
3365
|
try {
|
|
3366
|
-
if (
|
|
3366
|
+
if ($) (x = w(Z.call(B, y, C), "class decorators", "return")) && (y = x);
|
|
3367
3367
|
else {
|
|
3368
|
-
var
|
|
3369
|
-
|
|
3370
|
-
return
|
|
3371
|
-
} : (a < 4 && (
|
|
3372
|
-
return
|
|
3373
|
-
}, (a < 2 || a === 4) && (z = function(
|
|
3374
|
-
|
|
3368
|
+
var j, z;
|
|
3369
|
+
C.static = k, C.private = h, h ? a === 2 ? j = function(f) {
|
|
3370
|
+
return A(f), o.value;
|
|
3371
|
+
} : (a < 4 && (j = S(o, "get", A)), a !== 3 && (z = S(o, "set", A))) : (j = function(f) {
|
|
3372
|
+
return f[l];
|
|
3373
|
+
}, (a < 2 || a === 4) && (z = function(f, O) {
|
|
3374
|
+
f[l] = O;
|
|
3375
3375
|
}));
|
|
3376
|
-
var Y =
|
|
3377
|
-
return
|
|
3376
|
+
var Y = C.access = { has: h ? b.bind() : function(f) {
|
|
3377
|
+
return l in f;
|
|
3378
3378
|
} };
|
|
3379
|
-
if (
|
|
3380
|
-
if (typeof
|
|
3381
|
-
else if (
|
|
3382
|
-
} else
|
|
3379
|
+
if (j && (Y.get = j), z && (Y.set = z), y = Z.call(B, u ? { get: o.get, set: o.set } : o[v], C), u) {
|
|
3380
|
+
if (typeof y == "object" && y) (x = w(y.get, "accessor.get")) && (o.get = x), (x = w(y.set, "accessor.set")) && (o.set = x), (x = w(y.init, "accessor.init")) && R.push(x);
|
|
3381
|
+
else if (y !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
3382
|
+
} else w(y, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(y) : o[v] = y);
|
|
3383
3383
|
}
|
|
3384
3384
|
} finally {
|
|
3385
3385
|
X.v = !0;
|
|
3386
3386
|
}
|
|
3387
3387
|
}
|
|
3388
|
-
return (
|
|
3389
|
-
for (var H =
|
|
3388
|
+
return (m || u) && g.push(function(f, O) {
|
|
3389
|
+
for (var H = R.length - 1; H >= 0; H--) O = R[H].call(f, O);
|
|
3390
3390
|
return O;
|
|
3391
|
-
}),
|
|
3391
|
+
}), m || $ || (h ? u ? g.push(S(o, "get"), S(o, "set")) : g.push(a === 2 ? o[v] : S.call.bind(o[v])) : Object.defineProperty(n, l, o)), y;
|
|
3392
3392
|
}
|
|
3393
|
-
function
|
|
3394
|
-
return Object.defineProperty(
|
|
3393
|
+
function L(n, c) {
|
|
3394
|
+
return Object.defineProperty(n, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: c });
|
|
3395
3395
|
}
|
|
3396
|
-
if (arguments.length >= 6) var
|
|
3397
|
-
var N = Object.create(
|
|
3398
|
-
var a,
|
|
3399
|
-
return
|
|
3400
|
-
},
|
|
3401
|
-
function h(
|
|
3402
|
-
|
|
3396
|
+
if (arguments.length >= 6) var _ = P[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
3397
|
+
var N = Object.create(_ ?? null), U = function(n, c, d, l) {
|
|
3398
|
+
var a, s, p = [], g = function(v) {
|
|
3399
|
+
return At(v) === n;
|
|
3400
|
+
}, k = /* @__PURE__ */ new Map();
|
|
3401
|
+
function h(v) {
|
|
3402
|
+
v && p.push(E.bind(null, v));
|
|
3403
3403
|
}
|
|
3404
|
-
for (var
|
|
3405
|
-
var
|
|
3406
|
-
if (Array.isArray(
|
|
3407
|
-
var b =
|
|
3408
|
-
if (
|
|
3409
|
-
var
|
|
3410
|
-
if (
|
|
3411
|
-
|
|
3404
|
+
for (var m = 0; m < c.length; m++) {
|
|
3405
|
+
var u = c[m];
|
|
3406
|
+
if (Array.isArray(u)) {
|
|
3407
|
+
var b = u[1], A = u[2], x = u.length > 3, F = 16 & b, I = !!(8 & b), $ = (b &= 7) == 0, o = A + "/" + I;
|
|
3408
|
+
if (!$ && !x) {
|
|
3409
|
+
var R = k.get(o);
|
|
3410
|
+
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);
|
|
3411
|
+
k.set(o, !(b > 2) || b);
|
|
3412
3412
|
}
|
|
3413
|
-
D(I ?
|
|
3413
|
+
D(I ? n : n.prototype, u, F, x ? "#" + A : ze(A), b, l, I ? s = s || [] : a = a || [], p, I, x, $, b === 1, I && x ? g : d);
|
|
3414
3414
|
}
|
|
3415
3415
|
}
|
|
3416
|
-
return h(a), h(
|
|
3416
|
+
return h(a), h(s), p;
|
|
3417
3417
|
}(e, t, T, N);
|
|
3418
|
-
return r.length ||
|
|
3419
|
-
var
|
|
3420
|
-
return r.length && [
|
|
3418
|
+
return r.length || L(e, N), { e: U, get c() {
|
|
3419
|
+
var n = [];
|
|
3420
|
+
return r.length && [L(D(e, [r], i, e.name, 5, N, n), N), E.bind(null, n, e)];
|
|
3421
3421
|
} };
|
|
3422
3422
|
}
|
|
3423
|
-
function
|
|
3424
|
-
var t =
|
|
3423
|
+
function ze(e) {
|
|
3424
|
+
var t = Et(e, "string");
|
|
3425
3425
|
return typeof t == "symbol" ? t : t + "";
|
|
3426
3426
|
}
|
|
3427
|
-
function
|
|
3427
|
+
function Et(e, t) {
|
|
3428
3428
|
if (typeof e != "object" || !e) return e;
|
|
3429
3429
|
var r = e[Symbol.toPrimitive];
|
|
3430
3430
|
if (r !== void 0) {
|
|
3431
|
-
var
|
|
3432
|
-
if (typeof
|
|
3431
|
+
var i = r.call(e, t);
|
|
3432
|
+
if (typeof i != "object") return i;
|
|
3433
3433
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3434
3434
|
}
|
|
3435
3435
|
return String(e);
|
|
@@ -3442,15 +3442,15 @@ function be(e, t, r) {
|
|
|
3442
3442
|
}
|
|
3443
3443
|
return e;
|
|
3444
3444
|
}
|
|
3445
|
-
function
|
|
3445
|
+
function At(e) {
|
|
3446
3446
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e !== null ? typeof e : "null"));
|
|
3447
3447
|
return e;
|
|
3448
3448
|
}
|
|
3449
|
-
|
|
3449
|
+
Me = [W({
|
|
3450
3450
|
tagName: "wsx-marked-paragraph"
|
|
3451
3451
|
})];
|
|
3452
|
-
let
|
|
3453
|
-
class
|
|
3452
|
+
let St;
|
|
3453
|
+
class Tt extends q {
|
|
3454
3454
|
constructor() {
|
|
3455
3455
|
super({
|
|
3456
3456
|
styleName: "wsx-marked-paragraph"
|
|
@@ -3466,110 +3466,110 @@ class _t extends q {
|
|
|
3466
3466
|
static get observedAttributes() {
|
|
3467
3467
|
return ["content"];
|
|
3468
3468
|
}
|
|
3469
|
-
attributeChangedCallback(t, r,
|
|
3470
|
-
t === "content" && (this.content =
|
|
3469
|
+
attributeChangedCallback(t, r, i) {
|
|
3470
|
+
t === "content" && (this.content = i || "");
|
|
3471
3471
|
}
|
|
3472
3472
|
render() {
|
|
3473
3473
|
return /* @__PURE__ */ G("p", { class: "marked-paragraph" }, this.content);
|
|
3474
3474
|
}
|
|
3475
3475
|
}
|
|
3476
|
-
Pe =
|
|
3477
|
-
[
|
|
3478
|
-
|
|
3479
|
-
var
|
|
3476
|
+
Pe = Tt;
|
|
3477
|
+
[St, je] = wt(Pe, [], Me, 0, void 0, q).c;
|
|
3478
|
+
je();
|
|
3479
|
+
var Ue;
|
|
3480
3480
|
let Be, He;
|
|
3481
3481
|
function ke(e, t, r) {
|
|
3482
3482
|
return (t = Ge(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
3483
3483
|
}
|
|
3484
|
-
function
|
|
3485
|
-
function
|
|
3486
|
-
return function(
|
|
3487
|
-
return
|
|
3484
|
+
function _t(e, t, r, i, T, P) {
|
|
3485
|
+
function S(n, c, d) {
|
|
3486
|
+
return function(l, a) {
|
|
3487
|
+
return d && d(l), n[c].call(l, a);
|
|
3488
3488
|
};
|
|
3489
3489
|
}
|
|
3490
|
-
function
|
|
3491
|
-
for (var
|
|
3492
|
-
return
|
|
3490
|
+
function E(n, c) {
|
|
3491
|
+
for (var d = 0; d < n.length; d++) n[d].call(c);
|
|
3492
|
+
return c;
|
|
3493
3493
|
}
|
|
3494
|
-
function
|
|
3495
|
-
if (typeof
|
|
3496
|
-
return
|
|
3494
|
+
function w(n, c, d, l) {
|
|
3495
|
+
if (typeof n != "function" && (l || n !== void 0)) throw new TypeError(c + " must " + (d || "be") + " a function" + (l ? "" : " or undefined"));
|
|
3496
|
+
return n;
|
|
3497
3497
|
}
|
|
3498
|
-
function D(
|
|
3499
|
-
function
|
|
3500
|
-
if (!b(
|
|
3498
|
+
function D(n, c, d, l, a, s, p, g, k, h, m, u, b) {
|
|
3499
|
+
function A(f) {
|
|
3500
|
+
if (!b(f)) throw new TypeError("Attempted to access private element on non-instance");
|
|
3501
3501
|
}
|
|
3502
|
-
var
|
|
3503
|
-
if (
|
|
3504
|
-
|
|
3505
|
-
var
|
|
3506
|
-
h ? (
|
|
3502
|
+
var x, F = c[0], I = c[3], $ = !g;
|
|
3503
|
+
if (!$) {
|
|
3504
|
+
d || Array.isArray(F) || (F = [F]);
|
|
3505
|
+
var o = {}, R = [], v = a === 3 ? "get" : a === 4 || u ? "set" : "value";
|
|
3506
|
+
h ? (m || u ? o = { get: ye(function() {
|
|
3507
3507
|
return I(this);
|
|
3508
|
-
},
|
|
3509
|
-
|
|
3510
|
-
} } :
|
|
3508
|
+
}, l, "get"), set: function(f) {
|
|
3509
|
+
c[4](this, f);
|
|
3510
|
+
} } : o[v] = I, m || ye(o[v], l, a === 2 ? "" : v)) : m || (o = Object.getOwnPropertyDescriptor(n, l));
|
|
3511
3511
|
}
|
|
3512
|
-
for (var
|
|
3513
|
-
var Z =
|
|
3514
|
-
if (
|
|
3515
|
-
|
|
3512
|
+
for (var y = n, M = F.length - 1; M >= 0; M -= d ? 2 : 1) {
|
|
3513
|
+
var Z = F[M], B = d ? F[M - 1] : void 0, X = {}, C = { kind: ["field", "accessor", "method", "getter", "setter", "class"][a], name: l, metadata: s, addInitializer: (function(f, O) {
|
|
3514
|
+
if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
3515
|
+
w(O, "An initializer", "be", !0), p.push(O);
|
|
3516
3516
|
}).bind(null, X) };
|
|
3517
3517
|
try {
|
|
3518
|
-
if (
|
|
3518
|
+
if ($) (x = w(Z.call(B, y, C), "class decorators", "return")) && (y = x);
|
|
3519
3519
|
else {
|
|
3520
|
-
var
|
|
3521
|
-
|
|
3522
|
-
return
|
|
3523
|
-
} : (a < 4 && (
|
|
3524
|
-
return
|
|
3525
|
-
}, (a < 2 || a === 4) && (z = function(
|
|
3526
|
-
|
|
3520
|
+
var j, z;
|
|
3521
|
+
C.static = k, C.private = h, h ? a === 2 ? j = function(f) {
|
|
3522
|
+
return A(f), o.value;
|
|
3523
|
+
} : (a < 4 && (j = S(o, "get", A)), a !== 3 && (z = S(o, "set", A))) : (j = function(f) {
|
|
3524
|
+
return f[l];
|
|
3525
|
+
}, (a < 2 || a === 4) && (z = function(f, O) {
|
|
3526
|
+
f[l] = O;
|
|
3527
3527
|
}));
|
|
3528
|
-
var Y =
|
|
3529
|
-
return
|
|
3528
|
+
var Y = C.access = { has: h ? b.bind() : function(f) {
|
|
3529
|
+
return l in f;
|
|
3530
3530
|
} };
|
|
3531
|
-
if (
|
|
3532
|
-
if (typeof
|
|
3533
|
-
else if (
|
|
3534
|
-
} else
|
|
3531
|
+
if (j && (Y.get = j), z && (Y.set = z), y = Z.call(B, u ? { get: o.get, set: o.set } : o[v], C), u) {
|
|
3532
|
+
if (typeof y == "object" && y) (x = w(y.get, "accessor.get")) && (o.get = x), (x = w(y.set, "accessor.set")) && (o.set = x), (x = w(y.init, "accessor.init")) && R.push(x);
|
|
3533
|
+
else if (y !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
3534
|
+
} else w(y, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(y) : o[v] = y);
|
|
3535
3535
|
}
|
|
3536
3536
|
} finally {
|
|
3537
3537
|
X.v = !0;
|
|
3538
3538
|
}
|
|
3539
3539
|
}
|
|
3540
|
-
return (
|
|
3541
|
-
for (var H =
|
|
3540
|
+
return (m || u) && g.push(function(f, O) {
|
|
3541
|
+
for (var H = R.length - 1; H >= 0; H--) O = R[H].call(f, O);
|
|
3542
3542
|
return O;
|
|
3543
|
-
}),
|
|
3543
|
+
}), m || $ || (h ? u ? g.push(S(o, "get"), S(o, "set")) : g.push(a === 2 ? o[v] : S.call.bind(o[v])) : Object.defineProperty(n, l, o)), y;
|
|
3544
3544
|
}
|
|
3545
|
-
function
|
|
3546
|
-
return Object.defineProperty(
|
|
3545
|
+
function L(n, c) {
|
|
3546
|
+
return Object.defineProperty(n, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: c });
|
|
3547
3547
|
}
|
|
3548
|
-
if (arguments.length >= 6) var
|
|
3549
|
-
var N = Object.create(
|
|
3550
|
-
var a,
|
|
3551
|
-
return
|
|
3552
|
-
},
|
|
3553
|
-
function h(
|
|
3554
|
-
|
|
3548
|
+
if (arguments.length >= 6) var _ = P[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
3549
|
+
var N = Object.create(_ ?? null), U = function(n, c, d, l) {
|
|
3550
|
+
var a, s, p = [], g = function(v) {
|
|
3551
|
+
return It(v) === n;
|
|
3552
|
+
}, k = /* @__PURE__ */ new Map();
|
|
3553
|
+
function h(v) {
|
|
3554
|
+
v && p.push(E.bind(null, v));
|
|
3555
3555
|
}
|
|
3556
|
-
for (var
|
|
3557
|
-
var
|
|
3558
|
-
if (Array.isArray(
|
|
3559
|
-
var b =
|
|
3560
|
-
if (
|
|
3561
|
-
var
|
|
3562
|
-
if (
|
|
3563
|
-
|
|
3556
|
+
for (var m = 0; m < c.length; m++) {
|
|
3557
|
+
var u = c[m];
|
|
3558
|
+
if (Array.isArray(u)) {
|
|
3559
|
+
var b = u[1], A = u[2], x = u.length > 3, F = 16 & b, I = !!(8 & b), $ = (b &= 7) == 0, o = A + "/" + I;
|
|
3560
|
+
if (!$ && !x) {
|
|
3561
|
+
var R = k.get(o);
|
|
3562
|
+
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);
|
|
3563
|
+
k.set(o, !(b > 2) || b);
|
|
3564
3564
|
}
|
|
3565
|
-
D(I ?
|
|
3565
|
+
D(I ? n : n.prototype, u, F, x ? "#" + A : Ge(A), b, l, I ? s = s || [] : a = a || [], p, I, x, $, b === 1, I && x ? g : d);
|
|
3566
3566
|
}
|
|
3567
3567
|
}
|
|
3568
|
-
return h(a), h(
|
|
3568
|
+
return h(a), h(s), p;
|
|
3569
3569
|
}(e, t, T, N);
|
|
3570
|
-
return r.length ||
|
|
3571
|
-
var
|
|
3572
|
-
return r.length && [
|
|
3570
|
+
return r.length || L(e, N), { e: U, get c() {
|
|
3571
|
+
var n = [];
|
|
3572
|
+
return r.length && [L(D(e, [r], i, e.name, 5, N, n), N), E.bind(null, n, e)];
|
|
3573
3573
|
} };
|
|
3574
3574
|
}
|
|
3575
3575
|
function Ge(e) {
|
|
@@ -3580,8 +3580,8 @@ function Ft(e, t) {
|
|
|
3580
3580
|
if (typeof e != "object" || !e) return e;
|
|
3581
3581
|
var r = e[Symbol.toPrimitive];
|
|
3582
3582
|
if (r !== void 0) {
|
|
3583
|
-
var
|
|
3584
|
-
if (typeof
|
|
3583
|
+
var i = r.call(e, t);
|
|
3584
|
+
if (typeof i != "object") return i;
|
|
3585
3585
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3586
3586
|
}
|
|
3587
3587
|
return String(e);
|
|
@@ -3594,14 +3594,14 @@ function ye(e, t, r) {
|
|
|
3594
3594
|
}
|
|
3595
3595
|
return e;
|
|
3596
3596
|
}
|
|
3597
|
-
function
|
|
3597
|
+
function It(e) {
|
|
3598
3598
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e !== null ? typeof e : "null"));
|
|
3599
3599
|
return e;
|
|
3600
3600
|
}
|
|
3601
3601
|
He = [W({
|
|
3602
3602
|
tagName: "wsx-marked-list"
|
|
3603
3603
|
})];
|
|
3604
|
-
let
|
|
3604
|
+
let Rt;
|
|
3605
3605
|
class Ot extends q {
|
|
3606
3606
|
constructor() {
|
|
3607
3607
|
super(), ke(this, "ordered", void 0), ke(this, "items", void 0);
|
|
@@ -3612,11 +3612,11 @@ class Ot extends q {
|
|
|
3612
3612
|
enumerable: !0,
|
|
3613
3613
|
configurable: !0
|
|
3614
3614
|
});
|
|
3615
|
-
let
|
|
3615
|
+
let i = this.reactive([]);
|
|
3616
3616
|
Object.defineProperty(this, "items", {
|
|
3617
|
-
get: () =>
|
|
3617
|
+
get: () => i,
|
|
3618
3618
|
set: (T) => {
|
|
3619
|
-
|
|
3619
|
+
i = T !== null && typeof T < "u" && (Array.isArray(T) || typeof T == "object") ? this.reactive(T) : T, this.scheduleRerender();
|
|
3620
3620
|
},
|
|
3621
3621
|
enumerable: !0,
|
|
3622
3622
|
configurable: !0
|
|
@@ -3626,115 +3626,115 @@ class Ot extends q {
|
|
|
3626
3626
|
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)));
|
|
3627
3627
|
}
|
|
3628
3628
|
}
|
|
3629
|
-
|
|
3630
|
-
[
|
|
3629
|
+
Ue = Ot;
|
|
3630
|
+
[Rt, Be] = _t(Ue, [], He, 0, void 0, q).c;
|
|
3631
3631
|
Be();
|
|
3632
3632
|
var Ze;
|
|
3633
3633
|
let Ye, Xe;
|
|
3634
|
-
function
|
|
3634
|
+
function Lt(e, t, r) {
|
|
3635
3635
|
return (t = qe(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
3636
3636
|
}
|
|
3637
|
-
function
|
|
3638
|
-
function
|
|
3639
|
-
return function(
|
|
3640
|
-
return
|
|
3637
|
+
function Nt(e, t, r, i, T, P) {
|
|
3638
|
+
function S(n, c, d) {
|
|
3639
|
+
return function(l, a) {
|
|
3640
|
+
return d && d(l), n[c].call(l, a);
|
|
3641
3641
|
};
|
|
3642
3642
|
}
|
|
3643
|
-
function
|
|
3644
|
-
for (var
|
|
3645
|
-
return
|
|
3643
|
+
function E(n, c) {
|
|
3644
|
+
for (var d = 0; d < n.length; d++) n[d].call(c);
|
|
3645
|
+
return c;
|
|
3646
3646
|
}
|
|
3647
|
-
function
|
|
3648
|
-
if (typeof
|
|
3649
|
-
return
|
|
3647
|
+
function w(n, c, d, l) {
|
|
3648
|
+
if (typeof n != "function" && (l || n !== void 0)) throw new TypeError(c + " must " + (d || "be") + " a function" + (l ? "" : " or undefined"));
|
|
3649
|
+
return n;
|
|
3650
3650
|
}
|
|
3651
|
-
function D(
|
|
3652
|
-
function
|
|
3653
|
-
if (!b(
|
|
3651
|
+
function D(n, c, d, l, a, s, p, g, k, h, m, u, b) {
|
|
3652
|
+
function A(f) {
|
|
3653
|
+
if (!b(f)) throw new TypeError("Attempted to access private element on non-instance");
|
|
3654
3654
|
}
|
|
3655
|
-
var
|
|
3656
|
-
if (
|
|
3657
|
-
|
|
3658
|
-
var
|
|
3659
|
-
h ? (
|
|
3655
|
+
var x, F = c[0], I = c[3], $ = !g;
|
|
3656
|
+
if (!$) {
|
|
3657
|
+
d || Array.isArray(F) || (F = [F]);
|
|
3658
|
+
var o = {}, R = [], v = a === 3 ? "get" : a === 4 || u ? "set" : "value";
|
|
3659
|
+
h ? (m || u ? o = { get: ve(function() {
|
|
3660
3660
|
return I(this);
|
|
3661
|
-
},
|
|
3662
|
-
|
|
3663
|
-
} } :
|
|
3661
|
+
}, l, "get"), set: function(f) {
|
|
3662
|
+
c[4](this, f);
|
|
3663
|
+
} } : o[v] = I, m || ve(o[v], l, a === 2 ? "" : v)) : m || (o = Object.getOwnPropertyDescriptor(n, l));
|
|
3664
3664
|
}
|
|
3665
|
-
for (var
|
|
3666
|
-
var Z =
|
|
3667
|
-
if (
|
|
3668
|
-
|
|
3665
|
+
for (var y = n, M = F.length - 1; M >= 0; M -= d ? 2 : 1) {
|
|
3666
|
+
var Z = F[M], B = d ? F[M - 1] : void 0, X = {}, C = { kind: ["field", "accessor", "method", "getter", "setter", "class"][a], name: l, metadata: s, addInitializer: (function(f, O) {
|
|
3667
|
+
if (f.v) throw se("attempted to call addInitializer after decoration was finished");
|
|
3668
|
+
w(O, "An initializer", "be", !0), p.push(O);
|
|
3669
3669
|
}).bind(null, X) };
|
|
3670
3670
|
try {
|
|
3671
|
-
if (
|
|
3671
|
+
if ($) (x = w(Z.call(B, y, C), "class decorators", "return")) && (y = x);
|
|
3672
3672
|
else {
|
|
3673
|
-
var
|
|
3674
|
-
|
|
3675
|
-
return
|
|
3676
|
-
} : (a < 4 && (
|
|
3677
|
-
return
|
|
3678
|
-
}, (a < 2 || a === 4) && (z = function(
|
|
3679
|
-
|
|
3673
|
+
var j, z;
|
|
3674
|
+
C.static = k, C.private = h, h ? a === 2 ? j = function(f) {
|
|
3675
|
+
return A(f), o.value;
|
|
3676
|
+
} : (a < 4 && (j = S(o, "get", A)), a !== 3 && (z = S(o, "set", A))) : (j = function(f) {
|
|
3677
|
+
return f[l];
|
|
3678
|
+
}, (a < 2 || a === 4) && (z = function(f, O) {
|
|
3679
|
+
f[l] = O;
|
|
3680
3680
|
}));
|
|
3681
|
-
var Y =
|
|
3682
|
-
return
|
|
3681
|
+
var Y = C.access = { has: h ? b.bind() : function(f) {
|
|
3682
|
+
return l in f;
|
|
3683
3683
|
} };
|
|
3684
|
-
if (
|
|
3685
|
-
if (typeof
|
|
3686
|
-
else if (
|
|
3687
|
-
} else
|
|
3684
|
+
if (j && (Y.get = j), z && (Y.set = z), y = Z.call(B, u ? { get: o.get, set: o.set } : o[v], C), u) {
|
|
3685
|
+
if (typeof y == "object" && y) (x = w(y.get, "accessor.get")) && (o.get = x), (x = w(y.set, "accessor.set")) && (o.set = x), (x = w(y.init, "accessor.init")) && R.push(x);
|
|
3686
|
+
else if (y !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
3687
|
+
} else w(y, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(y) : o[v] = y);
|
|
3688
3688
|
}
|
|
3689
3689
|
} finally {
|
|
3690
3690
|
X.v = !0;
|
|
3691
3691
|
}
|
|
3692
3692
|
}
|
|
3693
|
-
return (
|
|
3694
|
-
for (var H =
|
|
3693
|
+
return (m || u) && g.push(function(f, O) {
|
|
3694
|
+
for (var H = R.length - 1; H >= 0; H--) O = R[H].call(f, O);
|
|
3695
3695
|
return O;
|
|
3696
|
-
}),
|
|
3696
|
+
}), m || $ || (h ? u ? g.push(S(o, "get"), S(o, "set")) : g.push(a === 2 ? o[v] : S.call.bind(o[v])) : Object.defineProperty(n, l, o)), y;
|
|
3697
3697
|
}
|
|
3698
|
-
function
|
|
3699
|
-
return Object.defineProperty(
|
|
3698
|
+
function L(n, c) {
|
|
3699
|
+
return Object.defineProperty(n, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: c });
|
|
3700
3700
|
}
|
|
3701
|
-
if (arguments.length >= 6) var
|
|
3702
|
-
var N = Object.create(
|
|
3703
|
-
var a,
|
|
3704
|
-
return
|
|
3705
|
-
},
|
|
3706
|
-
function h(
|
|
3707
|
-
|
|
3701
|
+
if (arguments.length >= 6) var _ = P[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
3702
|
+
var N = Object.create(_ ?? null), U = function(n, c, d, l) {
|
|
3703
|
+
var a, s, p = [], g = function(v) {
|
|
3704
|
+
return Ct(v) === n;
|
|
3705
|
+
}, k = /* @__PURE__ */ new Map();
|
|
3706
|
+
function h(v) {
|
|
3707
|
+
v && p.push(E.bind(null, v));
|
|
3708
3708
|
}
|
|
3709
|
-
for (var
|
|
3710
|
-
var
|
|
3711
|
-
if (Array.isArray(
|
|
3712
|
-
var b =
|
|
3713
|
-
if (
|
|
3714
|
-
var
|
|
3715
|
-
if (
|
|
3716
|
-
|
|
3709
|
+
for (var m = 0; m < c.length; m++) {
|
|
3710
|
+
var u = c[m];
|
|
3711
|
+
if (Array.isArray(u)) {
|
|
3712
|
+
var b = u[1], A = u[2], x = u.length > 3, F = 16 & b, I = !!(8 & b), $ = (b &= 7) == 0, o = A + "/" + I;
|
|
3713
|
+
if (!$ && !x) {
|
|
3714
|
+
var R = k.get(o);
|
|
3715
|
+
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);
|
|
3716
|
+
k.set(o, !(b > 2) || b);
|
|
3717
3717
|
}
|
|
3718
|
-
D(I ?
|
|
3718
|
+
D(I ? n : n.prototype, u, F, x ? "#" + A : qe(A), b, l, I ? s = s || [] : a = a || [], p, I, x, $, b === 1, I && x ? g : d);
|
|
3719
3719
|
}
|
|
3720
3720
|
}
|
|
3721
|
-
return h(a), h(
|
|
3721
|
+
return h(a), h(s), p;
|
|
3722
3722
|
}(e, t, T, N);
|
|
3723
|
-
return r.length ||
|
|
3724
|
-
var
|
|
3725
|
-
return r.length && [
|
|
3723
|
+
return r.length || L(e, N), { e: U, get c() {
|
|
3724
|
+
var n = [];
|
|
3725
|
+
return r.length && [L(D(e, [r], i, e.name, 5, N, n), N), E.bind(null, n, e)];
|
|
3726
3726
|
} };
|
|
3727
3727
|
}
|
|
3728
3728
|
function qe(e) {
|
|
3729
|
-
var t =
|
|
3729
|
+
var t = $t(e, "string");
|
|
3730
3730
|
return typeof t == "symbol" ? t : t + "";
|
|
3731
3731
|
}
|
|
3732
|
-
function
|
|
3732
|
+
function $t(e, t) {
|
|
3733
3733
|
if (typeof e != "object" || !e) return e;
|
|
3734
3734
|
var r = e[Symbol.toPrimitive];
|
|
3735
3735
|
if (r !== void 0) {
|
|
3736
|
-
var
|
|
3737
|
-
if (typeof
|
|
3736
|
+
var i = r.call(e, t);
|
|
3737
|
+
if (typeof i != "object") return i;
|
|
3738
3738
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3739
3739
|
}
|
|
3740
3740
|
return String(e);
|
|
@@ -3747,284 +3747,154 @@ function ve(e, t, r) {
|
|
|
3747
3747
|
}
|
|
3748
3748
|
return e;
|
|
3749
3749
|
}
|
|
3750
|
-
function
|
|
3750
|
+
function Ct(e) {
|
|
3751
3751
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e !== null ? typeof e : "null"));
|
|
3752
3752
|
return e;
|
|
3753
3753
|
}
|
|
3754
3754
|
Xe = [W({
|
|
3755
3755
|
tagName: "wsx-marked-error"
|
|
3756
3756
|
})];
|
|
3757
|
-
let
|
|
3757
|
+
let Dt, se = class extends q {
|
|
3758
3758
|
constructor() {
|
|
3759
3759
|
super({
|
|
3760
3760
|
styleName: "wsx-marked-error"
|
|
3761
|
-
}),
|
|
3761
|
+
}), Lt(this, "message", "");
|
|
3762
3762
|
}
|
|
3763
3763
|
static get observedAttributes() {
|
|
3764
3764
|
return ["message"];
|
|
3765
3765
|
}
|
|
3766
|
-
attributeChangedCallback(t, r,
|
|
3767
|
-
t === "message" && (this.message =
|
|
3766
|
+
attributeChangedCallback(t, r, i) {
|
|
3767
|
+
t === "message" && (this.message = i || "", this.rerender());
|
|
3768
3768
|
}
|
|
3769
3769
|
render() {
|
|
3770
3770
|
return /* @__PURE__ */ G("div", { class: "error" }, this.message);
|
|
3771
3771
|
}
|
|
3772
3772
|
};
|
|
3773
|
-
Ze =
|
|
3774
|
-
[
|
|
3773
|
+
Ze = se;
|
|
3774
|
+
[Dt, Ye] = Nt(Ze, [], Xe, 0, void 0, q).c;
|
|
3775
3775
|
Ye();
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
"trace",
|
|
3784
|
-
"debug",
|
|
3785
|
-
"info",
|
|
3786
|
-
"warn",
|
|
3787
|
-
"error"
|
|
3788
|
-
], $ = {}, A = null;
|
|
3789
|
-
function S(s, c) {
|
|
3790
|
-
var n = s[c];
|
|
3791
|
-
if (typeof n.bind == "function")
|
|
3792
|
-
return n.bind(s);
|
|
3793
|
-
try {
|
|
3794
|
-
return Function.prototype.bind.call(n, s);
|
|
3795
|
-
} catch {
|
|
3796
|
-
return function() {
|
|
3797
|
-
return Function.prototype.apply.apply(n, [s, arguments]);
|
|
3798
|
-
};
|
|
3799
|
-
}
|
|
3800
|
-
}
|
|
3801
|
-
function E() {
|
|
3802
|
-
console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
|
|
3803
|
-
}
|
|
3804
|
-
function D(s) {
|
|
3805
|
-
return s === "debug" && (s = "log"), typeof console === r ? !1 : s === "trace" && l ? E : console[s] !== void 0 ? S(console, s) : console.log !== void 0 ? S(console, "log") : t;
|
|
3806
|
-
}
|
|
3807
|
-
function F() {
|
|
3808
|
-
for (var s = this.getLevel(), c = 0; c < T.length; c++) {
|
|
3809
|
-
var n = T[c];
|
|
3810
|
-
this[n] = c < s ? t : this.methodFactory(n, s, this.name);
|
|
3811
|
-
}
|
|
3812
|
-
if (this.log = this.debug, typeof console === r && s < this.levels.SILENT)
|
|
3813
|
-
return "No console available for logging";
|
|
3814
|
-
}
|
|
3815
|
-
function R(s) {
|
|
3816
|
-
return function() {
|
|
3817
|
-
typeof console !== r && (F.call(this), this[s].apply(this, arguments));
|
|
3818
|
-
};
|
|
3819
|
-
}
|
|
3820
|
-
function N(s, c, n) {
|
|
3821
|
-
return D(s) || R.apply(this, arguments);
|
|
3822
|
-
}
|
|
3823
|
-
function U(s, c) {
|
|
3824
|
-
var n = this, a, i, p, g = "loglevel";
|
|
3825
|
-
typeof s == "string" ? g += ":" + s : typeof s == "symbol" && (g = void 0);
|
|
3826
|
-
function y(x) {
|
|
3827
|
-
var m = (T[x] || "silent").toUpperCase();
|
|
3828
|
-
if (!(typeof window === r || !g)) {
|
|
3829
|
-
try {
|
|
3830
|
-
window.localStorage[g] = m;
|
|
3831
|
-
return;
|
|
3832
|
-
} catch {
|
|
3833
|
-
}
|
|
3834
|
-
try {
|
|
3835
|
-
window.document.cookie = encodeURIComponent(g) + "=" + m + ";";
|
|
3836
|
-
} catch {
|
|
3837
|
-
}
|
|
3838
|
-
}
|
|
3839
|
-
}
|
|
3840
|
-
function h() {
|
|
3841
|
-
var x;
|
|
3842
|
-
if (!(typeof window === r || !g)) {
|
|
3843
|
-
try {
|
|
3844
|
-
x = window.localStorage[g];
|
|
3845
|
-
} catch {
|
|
3846
|
-
}
|
|
3847
|
-
if (typeof x === r)
|
|
3848
|
-
try {
|
|
3849
|
-
var m = window.document.cookie, _ = encodeURIComponent(g), I = m.indexOf(_ + "=");
|
|
3850
|
-
I !== -1 && (x = /^([^;]+)/.exec(
|
|
3851
|
-
m.slice(I + _.length + 1)
|
|
3852
|
-
)[1]);
|
|
3853
|
-
} catch {
|
|
3854
|
-
}
|
|
3855
|
-
return n.levels[x] === void 0 && (x = void 0), x;
|
|
3856
|
-
}
|
|
3857
|
-
}
|
|
3858
|
-
function f() {
|
|
3859
|
-
if (!(typeof window === r || !g)) {
|
|
3860
|
-
try {
|
|
3861
|
-
window.localStorage.removeItem(g);
|
|
3862
|
-
} catch {
|
|
3863
|
-
}
|
|
3864
|
-
try {
|
|
3865
|
-
window.document.cookie = encodeURIComponent(g) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
|
|
3866
|
-
} catch {
|
|
3867
|
-
}
|
|
3868
|
-
}
|
|
3869
|
-
}
|
|
3870
|
-
function d(x) {
|
|
3871
|
-
var m = x;
|
|
3872
|
-
if (typeof m == "string" && n.levels[m.toUpperCase()] !== void 0 && (m = n.levels[m.toUpperCase()]), typeof m == "number" && m >= 0 && m <= n.levels.SILENT)
|
|
3873
|
-
return m;
|
|
3874
|
-
throw new TypeError("log.setLevel() called with invalid level: " + x);
|
|
3875
|
-
}
|
|
3876
|
-
n.name = s, n.levels = {
|
|
3877
|
-
TRACE: 0,
|
|
3878
|
-
DEBUG: 1,
|
|
3879
|
-
INFO: 2,
|
|
3880
|
-
WARN: 3,
|
|
3881
|
-
ERROR: 4,
|
|
3882
|
-
SILENT: 5
|
|
3883
|
-
}, n.methodFactory = c || N, n.getLevel = function() {
|
|
3884
|
-
return p ?? i ?? a;
|
|
3885
|
-
}, n.setLevel = function(x, m) {
|
|
3886
|
-
return p = d(x), m !== !1 && y(p), F.call(n);
|
|
3887
|
-
}, n.setDefaultLevel = function(x) {
|
|
3888
|
-
i = d(x), h() || n.setLevel(x, !1);
|
|
3889
|
-
}, n.resetLevel = function() {
|
|
3890
|
-
p = null, f(), F.call(n);
|
|
3891
|
-
}, n.enableAll = function(x) {
|
|
3892
|
-
n.setLevel(n.levels.TRACE, x);
|
|
3893
|
-
}, n.disableAll = function(x) {
|
|
3894
|
-
n.setLevel(n.levels.SILENT, x);
|
|
3895
|
-
}, n.rebuild = function() {
|
|
3896
|
-
if (A !== n && (a = d(A.getLevel())), F.call(n), A === n)
|
|
3897
|
-
for (var x in $)
|
|
3898
|
-
$[x].rebuild();
|
|
3899
|
-
}, a = d(
|
|
3900
|
-
A ? A.getLevel() : "WARN"
|
|
3901
|
-
);
|
|
3902
|
-
var b = h();
|
|
3903
|
-
b != null && (p = d(b)), F.call(n);
|
|
3904
|
-
}
|
|
3905
|
-
A = new U(), A.getLogger = function(c) {
|
|
3906
|
-
if (typeof c != "symbol" && typeof c != "string" || c === "")
|
|
3907
|
-
throw new TypeError("You must supply a name when creating a logger.");
|
|
3908
|
-
var n = $[c];
|
|
3909
|
-
return n || (n = $[c] = new U(
|
|
3910
|
-
c,
|
|
3911
|
-
A.methodFactory
|
|
3912
|
-
)), n;
|
|
3913
|
-
};
|
|
3914
|
-
var o = typeof window !== r ? window.log : void 0;
|
|
3915
|
-
return A.noConflict = function() {
|
|
3916
|
-
return typeof window !== r && window.log === A && (window.log = o), A;
|
|
3917
|
-
}, A.getLoggers = function() {
|
|
3918
|
-
return $;
|
|
3919
|
-
}, A.default = A, A;
|
|
3920
|
-
});
|
|
3921
|
-
})(Ke);
|
|
3922
|
-
var Mt = Ke.exports;
|
|
3923
|
-
const jt = /* @__PURE__ */ _e(Mt), We = {
|
|
3924
|
-
trace: "trace",
|
|
3925
|
-
debug: "debug",
|
|
3926
|
-
info: "info",
|
|
3927
|
-
warn: "warn",
|
|
3928
|
-
error: "error",
|
|
3929
|
-
silent: "silent"
|
|
3930
|
-
}, Ut = {
|
|
3931
|
-
0: "trace",
|
|
3932
|
-
1: "debug",
|
|
3933
|
-
2: "info",
|
|
3934
|
-
3: "warn",
|
|
3935
|
-
4: "error",
|
|
3936
|
-
5: "silent"
|
|
3776
|
+
const ae = {
|
|
3777
|
+
trace: 0,
|
|
3778
|
+
debug: 1,
|
|
3779
|
+
info: 2,
|
|
3780
|
+
warn: 3,
|
|
3781
|
+
error: 4,
|
|
3782
|
+
silent: 5
|
|
3937
3783
|
};
|
|
3938
|
-
function
|
|
3784
|
+
function ie() {
|
|
3939
3785
|
var e, t;
|
|
3940
3786
|
if (typeof process < "u")
|
|
3941
3787
|
return process.env.NODE_ENV === "production" || process.env.MODE === "production";
|
|
3942
3788
|
try {
|
|
3943
3789
|
const r = globalThis;
|
|
3944
3790
|
if ((t = (e = r.import) == null ? void 0 : e.meta) != null && t.env) {
|
|
3945
|
-
const
|
|
3946
|
-
return
|
|
3791
|
+
const i = r.import.meta.env;
|
|
3792
|
+
return i.MODE === "production" || i.PROD === !0;
|
|
3947
3793
|
}
|
|
3948
3794
|
} catch {
|
|
3949
3795
|
}
|
|
3950
3796
|
return !1;
|
|
3951
3797
|
}
|
|
3952
|
-
const
|
|
3798
|
+
const xe = {
|
|
3953
3799
|
name: "WSX",
|
|
3954
|
-
level:
|
|
3955
|
-
pretty: !
|
|
3800
|
+
level: ie() ? "info" : "debug",
|
|
3801
|
+
pretty: !ie()
|
|
3956
3802
|
};
|
|
3957
|
-
function zt(e = {}) {
|
|
3958
|
-
const { name: t, level: r } = { ...Q, ...e }, l = t || Q.name, T = jt.getLogger(l), $ = r || Q.level;
|
|
3959
|
-
return T.setLevel(We[$]), T;
|
|
3960
|
-
}
|
|
3961
3803
|
function V(e, t) {
|
|
3962
3804
|
return e ? `[${e}] ${t}` : t;
|
|
3963
3805
|
}
|
|
3964
|
-
class
|
|
3965
|
-
constructor(t
|
|
3966
|
-
this.
|
|
3806
|
+
class Pt {
|
|
3807
|
+
constructor(t, r) {
|
|
3808
|
+
this.name = t, this.level = r, this.levelValue = ae[r], this.isProd = ie();
|
|
3809
|
+
}
|
|
3810
|
+
/**
|
|
3811
|
+
* Check if a log level should be logged
|
|
3812
|
+
*/
|
|
3813
|
+
shouldLog(t) {
|
|
3814
|
+
return this.level === "silent" ? !1 : ae[t] >= this.levelValue;
|
|
3815
|
+
}
|
|
3816
|
+
trace(t, ...r) {
|
|
3817
|
+
if (!this.isProd || this.shouldLog("trace")) {
|
|
3818
|
+
const i = V(this.name, t);
|
|
3819
|
+
r.length > 0 ? console.debug(i, ...r) : console.debug(i);
|
|
3820
|
+
}
|
|
3967
3821
|
}
|
|
3968
3822
|
debug(t, ...r) {
|
|
3969
3823
|
if (!this.isProd || this.shouldLog("debug")) {
|
|
3970
|
-
const
|
|
3971
|
-
r.length > 0 ?
|
|
3824
|
+
const i = V(this.name, t);
|
|
3825
|
+
r.length > 0 ? console.debug(i, ...r) : console.debug(i);
|
|
3972
3826
|
}
|
|
3973
3827
|
}
|
|
3974
3828
|
info(t, ...r) {
|
|
3975
3829
|
if (this.shouldLog("info")) {
|
|
3976
|
-
const
|
|
3977
|
-
r.length > 0 ?
|
|
3830
|
+
const i = V(this.name, t);
|
|
3831
|
+
r.length > 0 ? console.info(i, ...r) : console.info(i);
|
|
3978
3832
|
}
|
|
3979
3833
|
}
|
|
3980
3834
|
warn(t, ...r) {
|
|
3981
|
-
|
|
3982
|
-
|
|
3835
|
+
if (this.shouldLog("warn")) {
|
|
3836
|
+
const i = V(this.name, t);
|
|
3837
|
+
r.length > 0 ? console.warn(i, ...r) : console.warn(i);
|
|
3838
|
+
}
|
|
3983
3839
|
}
|
|
3984
3840
|
error(t, ...r) {
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
fatal(t, ...r) {
|
|
3989
|
-
const l = V(this.name, t);
|
|
3990
|
-
r.length > 0 ? this.logInstance.error(`[FATAL] ${l}`, ...r) : this.logInstance.error(`[FATAL] ${l}`);
|
|
3991
|
-
}
|
|
3992
|
-
trace(t, ...r) {
|
|
3993
|
-
if (!this.isProd || this.shouldLog("trace")) {
|
|
3994
|
-
const l = V(this.name, t);
|
|
3995
|
-
r.length > 0 ? this.logInstance.trace(l, ...r) : this.logInstance.trace(l);
|
|
3841
|
+
if (this.shouldLog("error")) {
|
|
3842
|
+
const i = V(this.name, t);
|
|
3843
|
+
r.length > 0 ? console.error(i, ...r) : console.error(i);
|
|
3996
3844
|
}
|
|
3997
3845
|
}
|
|
3998
3846
|
/**
|
|
3999
|
-
*
|
|
3847
|
+
* Set the log level dynamically
|
|
4000
3848
|
*/
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
return r.indexOf(t) >= l;
|
|
3849
|
+
setLevel(t) {
|
|
3850
|
+
this.level = t, this.levelValue = ae[t];
|
|
4004
3851
|
}
|
|
4005
3852
|
/**
|
|
4006
|
-
* Get the
|
|
3853
|
+
* Get the current log level
|
|
4007
3854
|
*/
|
|
4008
|
-
|
|
4009
|
-
return this.
|
|
3855
|
+
getLevel() {
|
|
3856
|
+
return this.level;
|
|
3857
|
+
}
|
|
3858
|
+
}
|
|
3859
|
+
class Ke {
|
|
3860
|
+
constructor(t = {}) {
|
|
3861
|
+
this.name = t.name || xe.name, this.currentLevel = t.level || xe.level, this.nativeLogger = new Pt(this.name, this.currentLevel);
|
|
3862
|
+
}
|
|
3863
|
+
debug(t, ...r) {
|
|
3864
|
+
this.nativeLogger.debug(t, ...r);
|
|
3865
|
+
}
|
|
3866
|
+
info(t, ...r) {
|
|
3867
|
+
this.nativeLogger.info(t, ...r);
|
|
3868
|
+
}
|
|
3869
|
+
warn(t, ...r) {
|
|
3870
|
+
this.nativeLogger.warn(t, ...r);
|
|
3871
|
+
}
|
|
3872
|
+
error(t, ...r) {
|
|
3873
|
+
this.nativeLogger.error(t, ...r);
|
|
3874
|
+
}
|
|
3875
|
+
fatal(t, ...r) {
|
|
3876
|
+
const i = V(this.name, `[FATAL] ${t}`);
|
|
3877
|
+
r.length > 0 ? console.error(i, ...r) : console.error(i);
|
|
3878
|
+
}
|
|
3879
|
+
trace(t, ...r) {
|
|
3880
|
+
this.nativeLogger.trace(t, ...r);
|
|
4010
3881
|
}
|
|
4011
3882
|
/**
|
|
4012
3883
|
* Set the log level dynamically
|
|
4013
3884
|
*/
|
|
4014
3885
|
setLevel(t) {
|
|
4015
|
-
this.currentLevel = t, this.
|
|
3886
|
+
this.currentLevel = t, this.nativeLogger.setLevel(t);
|
|
4016
3887
|
}
|
|
4017
3888
|
/**
|
|
4018
3889
|
* Get the current log level
|
|
4019
3890
|
*/
|
|
4020
3891
|
getLevel() {
|
|
4021
|
-
|
|
4022
|
-
return Ut[t] || this.currentLevel;
|
|
3892
|
+
return this.nativeLogger.getLevel();
|
|
4023
3893
|
}
|
|
4024
3894
|
}
|
|
4025
|
-
new
|
|
4026
|
-
function
|
|
4027
|
-
return new
|
|
3895
|
+
new Ke();
|
|
3896
|
+
function jt(e, t = {}) {
|
|
3897
|
+
return new Ke({
|
|
4028
3898
|
...t,
|
|
4029
3899
|
name: t.name || `WSX:${e}`
|
|
4030
3900
|
});
|
|
@@ -4033,33 +3903,33 @@ function we(e) {
|
|
|
4033
3903
|
const t = document.createElement("div");
|
|
4034
3904
|
return t.textContent = e, t.innerHTML;
|
|
4035
3905
|
}
|
|
4036
|
-
function
|
|
3906
|
+
function qt(e) {
|
|
4037
3907
|
if (!e || !Array.isArray(e))
|
|
4038
3908
|
return [];
|
|
4039
3909
|
const t = [];
|
|
4040
3910
|
return e.forEach((r) => {
|
|
4041
3911
|
if (r.type === "paragraph") {
|
|
4042
|
-
const
|
|
4043
|
-
|
|
3912
|
+
const i = r;
|
|
3913
|
+
i.tokens && Array.isArray(i.tokens) && t.push(...i.tokens);
|
|
4044
3914
|
} else (r.type === "text" || r.type === "strong" || r.type === "em" || r.type === "link" || r.type === "code" || r.type === "br") && t.push(r);
|
|
4045
3915
|
}), t;
|
|
4046
3916
|
}
|
|
4047
|
-
function
|
|
3917
|
+
function J(e) {
|
|
4048
3918
|
return !e || !Array.isArray(e) ? "" : e.map((t) => {
|
|
4049
3919
|
switch (t.type) {
|
|
4050
3920
|
case "text":
|
|
4051
3921
|
return t.text || "";
|
|
4052
3922
|
case "strong": {
|
|
4053
|
-
const r = t,
|
|
4054
|
-
return `<strong>${
|
|
3923
|
+
const r = t, i = r.tokens && Array.isArray(r.tokens) ? r.tokens : [];
|
|
3924
|
+
return `<strong>${J(i)}</strong>`;
|
|
4055
3925
|
}
|
|
4056
3926
|
case "em": {
|
|
4057
|
-
const r = t,
|
|
4058
|
-
return `<em>${
|
|
3927
|
+
const r = t, i = r.tokens && Array.isArray(r.tokens) ? r.tokens : [];
|
|
3928
|
+
return `<em>${J(i)}</em>`;
|
|
4059
3929
|
}
|
|
4060
3930
|
case "link": {
|
|
4061
|
-
const r = t,
|
|
4062
|
-
return `<a href="${r.href || "#"}"${
|
|
3931
|
+
const r = t, i = r.title ? ` title="${we(r.title)}"` : "", T = r.tokens && Array.isArray(r.tokens) ? r.tokens : [];
|
|
3932
|
+
return `<a href="${r.href || "#"}"${i}>${J(T)}</a>`;
|
|
4063
3933
|
}
|
|
4064
3934
|
case "code":
|
|
4065
3935
|
return `<code>${we(t.text || "")}</code>`;
|
|
@@ -4070,118 +3940,118 @@ function ee(e) {
|
|
|
4070
3940
|
}
|
|
4071
3941
|
}).join("");
|
|
4072
3942
|
}
|
|
4073
|
-
const
|
|
4074
|
-
var
|
|
4075
|
-
let
|
|
3943
|
+
const Mt = "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}";
|
|
3944
|
+
var We;
|
|
3945
|
+
let Ve, Qe;
|
|
4076
3946
|
function ne(e, t, r) {
|
|
4077
|
-
return (t =
|
|
3947
|
+
return (t = Je(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
4078
3948
|
}
|
|
4079
|
-
function
|
|
4080
|
-
function
|
|
4081
|
-
return function(
|
|
4082
|
-
return
|
|
3949
|
+
function zt(e, t, r, i, T, P) {
|
|
3950
|
+
function S(n, c, d) {
|
|
3951
|
+
return function(l, a) {
|
|
3952
|
+
return d && d(l), n[c].call(l, a);
|
|
4083
3953
|
};
|
|
4084
3954
|
}
|
|
4085
|
-
function
|
|
4086
|
-
for (var
|
|
4087
|
-
return
|
|
3955
|
+
function E(n, c) {
|
|
3956
|
+
for (var d = 0; d < n.length; d++) n[d].call(c);
|
|
3957
|
+
return c;
|
|
4088
3958
|
}
|
|
4089
|
-
function
|
|
4090
|
-
if (typeof
|
|
4091
|
-
return
|
|
3959
|
+
function w(n, c, d, l) {
|
|
3960
|
+
if (typeof n != "function" && (l || n !== void 0)) throw new TypeError(c + " must " + (d || "be") + " a function" + (l ? "" : " or undefined"));
|
|
3961
|
+
return n;
|
|
4092
3962
|
}
|
|
4093
|
-
function D(
|
|
4094
|
-
function
|
|
4095
|
-
if (!b(
|
|
3963
|
+
function D(n, c, d, l, a, s, p, g, k, h, m, u, b) {
|
|
3964
|
+
function A(f) {
|
|
3965
|
+
if (!b(f)) throw new TypeError("Attempted to access private element on non-instance");
|
|
4096
3966
|
}
|
|
4097
|
-
var
|
|
4098
|
-
if (
|
|
4099
|
-
|
|
4100
|
-
var
|
|
4101
|
-
h ? (
|
|
3967
|
+
var x, F = c[0], I = c[3], $ = !g;
|
|
3968
|
+
if (!$) {
|
|
3969
|
+
d || Array.isArray(F) || (F = [F]);
|
|
3970
|
+
var o = {}, R = [], v = a === 3 ? "get" : a === 4 || u ? "set" : "value";
|
|
3971
|
+
h ? (m || u ? o = { get: Ee(function() {
|
|
4102
3972
|
return I(this);
|
|
4103
|
-
},
|
|
4104
|
-
|
|
4105
|
-
} } :
|
|
3973
|
+
}, l, "get"), set: function(f) {
|
|
3974
|
+
c[4](this, f);
|
|
3975
|
+
} } : o[v] = I, m || Ee(o[v], l, a === 2 ? "" : v)) : m || (o = Object.getOwnPropertyDescriptor(n, l));
|
|
4106
3976
|
}
|
|
4107
|
-
for (var
|
|
4108
|
-
var Z =
|
|
4109
|
-
if (
|
|
4110
|
-
|
|
3977
|
+
for (var y = n, M = F.length - 1; M >= 0; M -= d ? 2 : 1) {
|
|
3978
|
+
var Z = F[M], B = d ? F[M - 1] : void 0, X = {}, C = { kind: ["field", "accessor", "method", "getter", "setter", "class"][a], name: l, metadata: s, addInitializer: (function(f, O) {
|
|
3979
|
+
if (f.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
3980
|
+
w(O, "An initializer", "be", !0), p.push(O);
|
|
4111
3981
|
}).bind(null, X) };
|
|
4112
3982
|
try {
|
|
4113
|
-
if (
|
|
3983
|
+
if ($) (x = w(Z.call(B, y, C), "class decorators", "return")) && (y = x);
|
|
4114
3984
|
else {
|
|
4115
|
-
var
|
|
4116
|
-
|
|
4117
|
-
return
|
|
4118
|
-
} : (a < 4 && (
|
|
4119
|
-
return
|
|
4120
|
-
}, (a < 2 || a === 4) && (z = function(
|
|
4121
|
-
|
|
3985
|
+
var j, z;
|
|
3986
|
+
C.static = k, C.private = h, h ? a === 2 ? j = function(f) {
|
|
3987
|
+
return A(f), o.value;
|
|
3988
|
+
} : (a < 4 && (j = S(o, "get", A)), a !== 3 && (z = S(o, "set", A))) : (j = function(f) {
|
|
3989
|
+
return f[l];
|
|
3990
|
+
}, (a < 2 || a === 4) && (z = function(f, O) {
|
|
3991
|
+
f[l] = O;
|
|
4122
3992
|
}));
|
|
4123
|
-
var Y =
|
|
4124
|
-
return
|
|
3993
|
+
var Y = C.access = { has: h ? b.bind() : function(f) {
|
|
3994
|
+
return l in f;
|
|
4125
3995
|
} };
|
|
4126
|
-
if (
|
|
4127
|
-
if (typeof
|
|
4128
|
-
else if (
|
|
4129
|
-
} else
|
|
3996
|
+
if (j && (Y.get = j), z && (Y.set = z), y = Z.call(B, u ? { get: o.get, set: o.set } : o[v], C), u) {
|
|
3997
|
+
if (typeof y == "object" && y) (x = w(y.get, "accessor.get")) && (o.get = x), (x = w(y.set, "accessor.set")) && (o.set = x), (x = w(y.init, "accessor.init")) && R.push(x);
|
|
3998
|
+
else if (y !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
3999
|
+
} else w(y, (m ? "field" : "method") + " decorators", "return") && (m ? R.push(y) : o[v] = y);
|
|
4130
4000
|
}
|
|
4131
4001
|
} finally {
|
|
4132
4002
|
X.v = !0;
|
|
4133
4003
|
}
|
|
4134
4004
|
}
|
|
4135
|
-
return (
|
|
4136
|
-
for (var H =
|
|
4005
|
+
return (m || u) && g.push(function(f, O) {
|
|
4006
|
+
for (var H = R.length - 1; H >= 0; H--) O = R[H].call(f, O);
|
|
4137
4007
|
return O;
|
|
4138
|
-
}),
|
|
4008
|
+
}), m || $ || (h ? u ? g.push(S(o, "get"), S(o, "set")) : g.push(a === 2 ? o[v] : S.call.bind(o[v])) : Object.defineProperty(n, l, o)), y;
|
|
4139
4009
|
}
|
|
4140
|
-
function
|
|
4141
|
-
return Object.defineProperty(
|
|
4010
|
+
function L(n, c) {
|
|
4011
|
+
return Object.defineProperty(n, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: c });
|
|
4142
4012
|
}
|
|
4143
|
-
if (arguments.length >= 6) var
|
|
4144
|
-
var N = Object.create(
|
|
4145
|
-
var a,
|
|
4146
|
-
return
|
|
4147
|
-
},
|
|
4148
|
-
function h(
|
|
4149
|
-
|
|
4013
|
+
if (arguments.length >= 6) var _ = P[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
4014
|
+
var N = Object.create(_ ?? null), U = function(n, c, d, l) {
|
|
4015
|
+
var a, s, p = [], g = function(v) {
|
|
4016
|
+
return Bt(v) === n;
|
|
4017
|
+
}, k = /* @__PURE__ */ new Map();
|
|
4018
|
+
function h(v) {
|
|
4019
|
+
v && p.push(E.bind(null, v));
|
|
4150
4020
|
}
|
|
4151
|
-
for (var
|
|
4152
|
-
var
|
|
4153
|
-
if (Array.isArray(
|
|
4154
|
-
var b =
|
|
4155
|
-
if (
|
|
4156
|
-
var
|
|
4157
|
-
if (
|
|
4158
|
-
|
|
4021
|
+
for (var m = 0; m < c.length; m++) {
|
|
4022
|
+
var u = c[m];
|
|
4023
|
+
if (Array.isArray(u)) {
|
|
4024
|
+
var b = u[1], A = u[2], x = u.length > 3, F = 16 & b, I = !!(8 & b), $ = (b &= 7) == 0, o = A + "/" + I;
|
|
4025
|
+
if (!$ && !x) {
|
|
4026
|
+
var R = k.get(o);
|
|
4027
|
+
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);
|
|
4028
|
+
k.set(o, !(b > 2) || b);
|
|
4159
4029
|
}
|
|
4160
|
-
D(I ?
|
|
4030
|
+
D(I ? n : n.prototype, u, F, x ? "#" + A : Je(A), b, l, I ? s = s || [] : a = a || [], p, I, x, $, b === 1, I && x ? g : d);
|
|
4161
4031
|
}
|
|
4162
4032
|
}
|
|
4163
|
-
return h(a), h(
|
|
4033
|
+
return h(a), h(s), p;
|
|
4164
4034
|
}(e, t, T, N);
|
|
4165
|
-
return r.length ||
|
|
4166
|
-
var
|
|
4167
|
-
return r.length && [
|
|
4035
|
+
return r.length || L(e, N), { e: U, get c() {
|
|
4036
|
+
var n = [];
|
|
4037
|
+
return r.length && [L(D(e, [r], i, e.name, 5, N, n), N), E.bind(null, n, e)];
|
|
4168
4038
|
} };
|
|
4169
4039
|
}
|
|
4170
|
-
function
|
|
4171
|
-
var t =
|
|
4040
|
+
function Je(e) {
|
|
4041
|
+
var t = Ut(e, "string");
|
|
4172
4042
|
return typeof t == "symbol" ? t : t + "";
|
|
4173
4043
|
}
|
|
4174
|
-
function
|
|
4044
|
+
function Ut(e, t) {
|
|
4175
4045
|
if (typeof e != "object" || !e) return e;
|
|
4176
4046
|
var r = e[Symbol.toPrimitive];
|
|
4177
4047
|
if (r !== void 0) {
|
|
4178
|
-
var
|
|
4179
|
-
if (typeof
|
|
4048
|
+
var i = r.call(e, t);
|
|
4049
|
+
if (typeof i != "object") return i;
|
|
4180
4050
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
4181
4051
|
}
|
|
4182
4052
|
return String(e);
|
|
4183
4053
|
}
|
|
4184
|
-
function
|
|
4054
|
+
function Ee(e, t, r) {
|
|
4185
4055
|
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
4186
4056
|
try {
|
|
4187
4057
|
Object.defineProperty(e, "name", { configurable: !0, value: r ? r + " " + t : t });
|
|
@@ -4189,18 +4059,18 @@ function xe(e, t, r) {
|
|
|
4189
4059
|
}
|
|
4190
4060
|
return e;
|
|
4191
4061
|
}
|
|
4192
|
-
function
|
|
4062
|
+
function Bt(e) {
|
|
4193
4063
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e !== null ? typeof e : "null"));
|
|
4194
4064
|
return e;
|
|
4195
4065
|
}
|
|
4196
|
-
const oe =
|
|
4197
|
-
|
|
4066
|
+
const oe = jt("Markdown");
|
|
4067
|
+
Qe = [W({
|
|
4198
4068
|
tagName: "wsx-markdown"
|
|
4199
4069
|
})];
|
|
4200
|
-
let
|
|
4201
|
-
class
|
|
4070
|
+
let Ht;
|
|
4071
|
+
class Gt extends q {
|
|
4202
4072
|
constructor() {
|
|
4203
|
-
super(), ne(this, "_autoStyles",
|
|
4073
|
+
super(), ne(this, "_autoStyles", Mt), ne(this, "markdown", void 0), ne(this, "customRenderers", {});
|
|
4204
4074
|
const [t, r] = this.useState("markdown", "");
|
|
4205
4075
|
Object.defineProperty(this, "markdown", {
|
|
4206
4076
|
get: t,
|
|
@@ -4247,7 +4117,7 @@ class qt extends q {
|
|
|
4247
4117
|
if (!this.markdown)
|
|
4248
4118
|
return /* @__PURE__ */ G("div", { class: "marked-content" });
|
|
4249
4119
|
try {
|
|
4250
|
-
const t = this.stripFrontmatter(this.markdown), r =
|
|
4120
|
+
const t = this.stripFrontmatter(this.markdown), r = le.lexer(t);
|
|
4251
4121
|
return /* @__PURE__ */ G("div", { class: "marked-content" }, this.renderTokens(r));
|
|
4252
4122
|
} catch (t) {
|
|
4253
4123
|
return oe.error("Failed to render markdown", t), /* @__PURE__ */ G("div", { class: "marked-content" }, /* @__PURE__ */ G("wsx-marked-error", { message: `Error: ${t}` }));
|
|
@@ -4266,9 +4136,9 @@ class qt extends q {
|
|
|
4266
4136
|
renderToken(t) {
|
|
4267
4137
|
const r = this.customRenderers[t.type];
|
|
4268
4138
|
if (r) {
|
|
4269
|
-
const
|
|
4270
|
-
if (
|
|
4271
|
-
return
|
|
4139
|
+
const i = r(t, () => this.defaultRenderToken(t));
|
|
4140
|
+
if (i !== null)
|
|
4141
|
+
return i;
|
|
4272
4142
|
}
|
|
4273
4143
|
return this.defaultRenderToken(t);
|
|
4274
4144
|
}
|
|
@@ -4280,7 +4150,7 @@ class qt extends q {
|
|
|
4280
4150
|
switch (t.type) {
|
|
4281
4151
|
case "heading": {
|
|
4282
4152
|
const r = t;
|
|
4283
|
-
return /* @__PURE__ */ G("wsx-marked-heading", { level: r.depth.toString(), text:
|
|
4153
|
+
return /* @__PURE__ */ G("wsx-marked-heading", { level: r.depth.toString(), text: J(r.tokens) });
|
|
4284
4154
|
}
|
|
4285
4155
|
case "code": {
|
|
4286
4156
|
const r = t;
|
|
@@ -4291,27 +4161,27 @@ class qt extends q {
|
|
|
4291
4161
|
return /* @__PURE__ */ G("wsx-marked-blockquote", null, this.renderTokens(r.tokens));
|
|
4292
4162
|
}
|
|
4293
4163
|
case "paragraph":
|
|
4294
|
-
return /* @__PURE__ */ G("wsx-marked-paragraph", { content:
|
|
4164
|
+
return /* @__PURE__ */ G("wsx-marked-paragraph", { content: J(t.tokens) });
|
|
4295
4165
|
case "list": {
|
|
4296
|
-
const r = t,
|
|
4166
|
+
const r = t, i = r.items.map((T) => {
|
|
4297
4167
|
if (!T.tokens || !Array.isArray(T.tokens))
|
|
4298
4168
|
return oe.warn("List item has no tokens or tokens is not an array", {
|
|
4299
4169
|
item: T
|
|
4300
4170
|
}), "";
|
|
4301
|
-
const
|
|
4302
|
-
if (
|
|
4171
|
+
const P = this.renderTokens(T.tokens);
|
|
4172
|
+
if (P.length === 0)
|
|
4303
4173
|
return "";
|
|
4304
|
-
const
|
|
4305
|
-
|
|
4306
|
-
|
|
4174
|
+
const S = document.createElement("div");
|
|
4175
|
+
P.forEach((w) => {
|
|
4176
|
+
w && S.appendChild(w);
|
|
4307
4177
|
});
|
|
4308
|
-
const
|
|
4309
|
-
return
|
|
4310
|
-
renderedElementsCount:
|
|
4178
|
+
const E = S.innerHTML;
|
|
4179
|
+
return E || oe.warn("tempContainer.innerHTML is empty after appending elements", {
|
|
4180
|
+
renderedElementsCount: P.length,
|
|
4311
4181
|
itemTokens: T.tokens
|
|
4312
|
-
}),
|
|
4182
|
+
}), E;
|
|
4313
4183
|
});
|
|
4314
|
-
return /* @__PURE__ */ G("wsx-marked-list", { ordered: r.ordered ? "true" : "false", items:
|
|
4184
|
+
return /* @__PURE__ */ G("wsx-marked-list", { ordered: r.ordered ? "true" : "false", items: i });
|
|
4315
4185
|
}
|
|
4316
4186
|
case "html":
|
|
4317
4187
|
return /* @__PURE__ */ G("div", null, t.text);
|
|
@@ -4322,25 +4192,25 @@ class qt extends q {
|
|
|
4322
4192
|
case "text":
|
|
4323
4193
|
return /* @__PURE__ */ G("span", null, t.text || "");
|
|
4324
4194
|
default: {
|
|
4325
|
-
const
|
|
4195
|
+
const i = new le.Renderer()[t.type], T = (i == null ? void 0 : i(t)) || "";
|
|
4326
4196
|
return T ? /* @__PURE__ */ G("div", null, T) : null;
|
|
4327
4197
|
}
|
|
4328
4198
|
}
|
|
4329
4199
|
}
|
|
4330
4200
|
}
|
|
4331
|
-
|
|
4332
|
-
[
|
|
4333
|
-
|
|
4201
|
+
We = Gt;
|
|
4202
|
+
[Ht, Ve] = zt(We, [], Qe, 0, void 0, q).c;
|
|
4203
|
+
Ve();
|
|
4334
4204
|
export {
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4205
|
+
yt as Blockquote,
|
|
4206
|
+
pt as Code,
|
|
4207
|
+
Dt as Error,
|
|
4208
|
+
nt as Heading,
|
|
4209
|
+
Rt as List,
|
|
4210
|
+
Ht as Markdown,
|
|
4211
|
+
St as Paragraph,
|
|
4342
4212
|
we as escapeHtml,
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4213
|
+
qt as extractInlineTokens,
|
|
4214
|
+
lt as registerWsxLanguage,
|
|
4215
|
+
J as renderInlineTokens
|
|
4346
4216
|
};
|