@n8n/chat 0.68.5 → 0.68.7
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/chat.bundle.es.js +325 -278
- package/dist/chat.bundle.umd.js +15 -15
- package/dist/chat.es.js +322 -274
- package/dist/chat.umd.js +13 -12
- package/dist/style.css +2 -2
- package/package.json +3 -3
package/dist/chat.bundle.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Package version @n8n/chat@0.68.
|
|
1
|
+
/*! Package version @n8n/chat@0.68.7 */
|
|
2
2
|
var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp$1 = Object.prototype.hasOwnProperty, __esmMin = (e, t) => () => (e && (t = e(e = 0)), t), __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), __export = (e) => {
|
|
3
3
|
let n = {};
|
|
4
4
|
for (var r in e) __defProp$1(n, r, {
|
|
@@ -17,11 +17,10 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
17
17
|
enumerable: !0
|
|
18
18
|
}) : o, n)), __toCommonJS = (e) => __copyProps(__defProp$1({}, "__esModule", { value: !0 }), e);
|
|
19
19
|
/**
|
|
20
|
-
* @vue/shared v3.5.
|
|
20
|
+
* @vue/shared v3.5.40
|
|
21
21
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
22
22
|
* @license MIT
|
|
23
23
|
**/
|
|
24
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
25
24
|
/* @__NO_SIDE_EFFECTS__ */
|
|
26
25
|
function makeMap(e) {
|
|
27
26
|
let t = /* @__PURE__ */ Object.create(null);
|
|
@@ -33,8 +32,8 @@ var EMPTY_OBJ = {}, EMPTY_ARR = [], NOOP = () => {}, NO = () => !1, isOn = (e) =
|
|
|
33
32
|
n > -1 && e.splice(n, 1);
|
|
34
33
|
}, hasOwnProperty$14 = Object.prototype.hasOwnProperty, hasOwn = (e, t) => hasOwnProperty$14.call(e, t), isArray$5 = Array.isArray, isMap = (e) => toTypeString(e) === "[object Map]", isSet = (e) => toTypeString(e) === "[object Set]", isFunction$3 = (e) => typeof e == "function", isString$2 = (e) => typeof e == "string", isSymbol$5 = (e) => typeof e == "symbol", isObject$4 = (e) => typeof e == "object" && !!e, isPromise = (e) => (isObject$4(e) || isFunction$3(e)) && isFunction$3(e.then) && isFunction$3(e.catch), objectToString$3 = Object.prototype.toString, toTypeString = (e) => objectToString$3.call(e), toRawType = (e) => toTypeString(e).slice(8, -1), isPlainObject = (e) => toTypeString(e) === "[object Object]", isIntegerKey = (e) => isString$2(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, isReservedProp = /* @__PURE__ */ makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"), cacheStringFunction$1 = (e) => {
|
|
35
34
|
let t = /* @__PURE__ */ Object.create(null);
|
|
36
|
-
return (n) => t[n] || (t[n] = e(n));
|
|
37
|
-
}, camelizeRE$1 =
|
|
35
|
+
return ((n) => t[n] || (t[n] = e(n)));
|
|
36
|
+
}, camelizeRE$1 = /-\w/g, camelize = cacheStringFunction$1((e) => e.replace(camelizeRE$1, (e) => e.slice(1).toUpperCase())), hyphenateRE$1 = /\B([A-Z])/g, hyphenate$1 = cacheStringFunction$1((e) => e.replace(hyphenateRE$1, "-$1").toLowerCase()), capitalize = cacheStringFunction$1((e) => e.charAt(0).toUpperCase() + e.slice(1)), toHandlerKey = cacheStringFunction$1((e) => e ? `on${capitalize(e)}` : ""), hasChanged = (e, t) => !Object.is(e, t), invokeArrayFns = (e, ...t) => {
|
|
38
37
|
for (let n = 0; n < e.length; n++) e[n](...t);
|
|
39
38
|
}, def = (e, t, n, r = !1) => {
|
|
40
39
|
Object.defineProperty(e, t, {
|
|
@@ -3792,7 +3791,7 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
3792
3791
|
let n = e && e.exec(t);
|
|
3793
3792
|
return n && n.index === 0;
|
|
3794
3793
|
}
|
|
3795
|
-
var O = /\[(?:[^\\\]]|\\.)*\]
|
|
3794
|
+
var O = new RegExp(T(/\[(?:[^\\\]]|\\.)*\]/, /\(\?<(?![=!])[^>]+>/, /\(\?'[^']+'/, /\(\??/, /\\([1-9][0-9]*)/, /\\./));
|
|
3796
3795
|
function k(e, { joinWith: t }) {
|
|
3797
3796
|
let n = 0;
|
|
3798
3797
|
return e.map((e) => {
|
|
@@ -3804,7 +3803,7 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
3804
3803
|
i += r;
|
|
3805
3804
|
break;
|
|
3806
3805
|
}
|
|
3807
|
-
i += r.substring(0, e.index), r = r.substring(e.index + e[0].length), e[0][0] === "\\" && e[1] ? i += "\\" + String(Number(e[1]) + t) : (i += e[0], e[0] === "(" && n++);
|
|
3806
|
+
i += r.substring(0, e.index), r = r.substring(e.index + e[0].length), e[0][0] === "\\" && e[1] ? i += "\\" + String(Number(e[1]) + t) : (i += e[0], (e[0] === "(" || /^\(\?[<']/.test(e[0])) && n++);
|
|
3808
3807
|
}
|
|
3809
3808
|
return i;
|
|
3810
3809
|
}).map((e) => `(${e})`).join(t);
|
|
@@ -3864,18 +3863,14 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
3864
3863
|
begin: F,
|
|
3865
3864
|
relevance: 0
|
|
3866
3865
|
}, f9 = {
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
end: /\]/,
|
|
3876
|
-
relevance: 0,
|
|
3877
|
-
contains: [R]
|
|
3878
|
-
}]
|
|
3866
|
+
scope: "regexp",
|
|
3867
|
+
begin: /\/(?=[^/\n]*\/)/,
|
|
3868
|
+
end: /\/[gimuy]*/,
|
|
3869
|
+
contains: [R, {
|
|
3870
|
+
begin: /\[/,
|
|
3871
|
+
end: /\]/,
|
|
3872
|
+
relevance: 0,
|
|
3873
|
+
contains: [R]
|
|
3879
3874
|
}]
|
|
3880
3875
|
}, p9 = {
|
|
3881
3876
|
scope: "title",
|
|
@@ -3890,29 +3885,15 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
3890
3885
|
relevance: 0
|
|
3891
3886
|
}, g9 = /* @__PURE__ */ Object.freeze({
|
|
3892
3887
|
__proto__: null,
|
|
3893
|
-
MATCH_NOTHING_RE: A,
|
|
3894
|
-
IDENT_RE: j,
|
|
3895
|
-
UNDERSCORE_IDENT_RE: M,
|
|
3896
|
-
NUMBER_RE: N,
|
|
3897
|
-
C_NUMBER_RE: P,
|
|
3898
|
-
BINARY_NUMBER_RE: F,
|
|
3899
|
-
RE_STARTERS_RE: I,
|
|
3900
|
-
SHEBANG: L,
|
|
3901
|
-
BACKSLASH_ESCAPE: R,
|
|
3902
3888
|
APOS_STRING_MODE: z,
|
|
3903
|
-
|
|
3904
|
-
|
|
3889
|
+
BACKSLASH_ESCAPE: R,
|
|
3890
|
+
BINARY_NUMBER_MODE: Y,
|
|
3891
|
+
BINARY_NUMBER_RE: F,
|
|
3905
3892
|
COMMENT: H,
|
|
3906
|
-
C_LINE_COMMENT_MODE: U,
|
|
3907
3893
|
C_BLOCK_COMMENT_MODE: W,
|
|
3908
|
-
|
|
3909
|
-
NUMBER_MODE: K,
|
|
3894
|
+
C_LINE_COMMENT_MODE: U,
|
|
3910
3895
|
C_NUMBER_MODE: J,
|
|
3911
|
-
|
|
3912
|
-
REGEXP_MODE: f9,
|
|
3913
|
-
TITLE_MODE: p9,
|
|
3914
|
-
UNDERSCORE_TITLE_MODE: m9,
|
|
3915
|
-
METHOD_GUARD: h9,
|
|
3896
|
+
C_NUMBER_RE: P,
|
|
3916
3897
|
END_SAME_AS_BEGIN: function(e) {
|
|
3917
3898
|
return Object.assign(e, {
|
|
3918
3899
|
"on:begin": (e, t) => {
|
|
@@ -3922,7 +3903,21 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
3922
3903
|
t.data._beginMatch !== e[1] && t.ignoreMatch();
|
|
3923
3904
|
}
|
|
3924
3905
|
});
|
|
3925
|
-
}
|
|
3906
|
+
},
|
|
3907
|
+
HASH_COMMENT_MODE: G,
|
|
3908
|
+
IDENT_RE: j,
|
|
3909
|
+
MATCH_NOTHING_RE: A,
|
|
3910
|
+
METHOD_GUARD: h9,
|
|
3911
|
+
NUMBER_MODE: K,
|
|
3912
|
+
NUMBER_RE: N,
|
|
3913
|
+
PHRASAL_WORDS_MODE: V,
|
|
3914
|
+
QUOTE_STRING_MODE: B,
|
|
3915
|
+
REGEXP_MODE: f9,
|
|
3916
|
+
RE_STARTERS_RE: I,
|
|
3917
|
+
SHEBANG: L,
|
|
3918
|
+
TITLE_MODE: p9,
|
|
3919
|
+
UNDERSCORE_IDENT_RE: M,
|
|
3920
|
+
UNDERSCORE_TITLE_MODE: m9
|
|
3926
3921
|
});
|
|
3927
3922
|
function X(e, t) {
|
|
3928
3923
|
e.input[e.index - 1] === "." && t.ignoreMatch();
|
|
@@ -4107,7 +4102,7 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
4107
4102
|
return o(e, { variants: null }, t);
|
|
4108
4103
|
})), e.cachedVariants ? e.cachedVariants : L9(e) ? o(e, { starts: e.starts ? o(e.starts) : null }) : Object.isFrozen(e) ? o(e) : e;
|
|
4109
4104
|
}
|
|
4110
|
-
var z9 = "11.
|
|
4105
|
+
var z9 = "11.12.0", B9 = class extends Error {
|
|
4111
4106
|
constructor(e, t) {
|
|
4112
4107
|
super(e), this.name = "HTMLInjectionError", this.html = t;
|
|
4113
4108
|
}
|
|
@@ -4134,10 +4129,10 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
4134
4129
|
t += e.parentNode ? e.parentNode.className : "";
|
|
4135
4130
|
let n = u.languageDetectRe.exec(t);
|
|
4136
4131
|
if (n) {
|
|
4137
|
-
let t =
|
|
4132
|
+
let t = z(n[1]);
|
|
4138
4133
|
return t || (k9(c.replace("{}", n[1])), k9("Falling back to no-highlight mode for this block.", e)), t ? n[1] : "no-highlight";
|
|
4139
4134
|
}
|
|
4140
|
-
return t.split(/\s+/).find((e) => d(e) ||
|
|
4135
|
+
return t.split(/\s+/).find((e) => d(e) || z(e));
|
|
4141
4136
|
}
|
|
4142
4137
|
function _(e, t, n) {
|
|
4143
4138
|
let r = "", i = "";
|
|
@@ -4146,9 +4141,9 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
4146
4141
|
code: r,
|
|
4147
4142
|
language: i
|
|
4148
4143
|
};
|
|
4149
|
-
|
|
4144
|
+
G("before:highlight", o);
|
|
4150
4145
|
let s = o.result ? o.result : w(o.language, o.code, n);
|
|
4151
|
-
return s.code = o.code,
|
|
4146
|
+
return s.code = o.code, G("after:highlight", s), s;
|
|
4152
4147
|
}
|
|
4153
4148
|
function w(e, n, i, o) {
|
|
4154
4149
|
let l = Object.create(null);
|
|
@@ -4157,14 +4152,14 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
4157
4152
|
}
|
|
4158
4153
|
function f() {
|
|
4159
4154
|
if (!I.keywords) {
|
|
4160
|
-
R.addText(
|
|
4155
|
+
R.addText(B);
|
|
4161
4156
|
return;
|
|
4162
4157
|
}
|
|
4163
4158
|
let e = 0;
|
|
4164
4159
|
I.keywordPatternRe.lastIndex = 0;
|
|
4165
|
-
let t = I.keywordPatternRe.exec(
|
|
4160
|
+
let t = I.keywordPatternRe.exec(B), n = "";
|
|
4166
4161
|
for (; t;) {
|
|
4167
|
-
n +=
|
|
4162
|
+
n += B.substring(e, t.index);
|
|
4168
4163
|
let r = N.case_insensitive ? t[0].toLowerCase() : t[0], i = d(I, r);
|
|
4169
4164
|
if (i) {
|
|
4170
4165
|
let [e, o] = i;
|
|
@@ -4174,24 +4169,24 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
4174
4169
|
y(t[0], n);
|
|
4175
4170
|
}
|
|
4176
4171
|
} else n += t[0];
|
|
4177
|
-
e = I.keywordPatternRe.lastIndex, t = I.keywordPatternRe.exec(
|
|
4172
|
+
e = I.keywordPatternRe.lastIndex, t = I.keywordPatternRe.exec(B);
|
|
4178
4173
|
}
|
|
4179
|
-
n +=
|
|
4174
|
+
n += B.substring(e), R.addText(n);
|
|
4180
4175
|
}
|
|
4181
4176
|
function g() {
|
|
4182
|
-
if (
|
|
4177
|
+
if (B === "") return;
|
|
4183
4178
|
let e = null;
|
|
4184
4179
|
if (typeof I.subLanguage == "string") {
|
|
4185
4180
|
if (!t[I.subLanguage]) {
|
|
4186
|
-
R.addText(
|
|
4181
|
+
R.addText(B);
|
|
4187
4182
|
return;
|
|
4188
4183
|
}
|
|
4189
|
-
e = w(I.subLanguage,
|
|
4190
|
-
} else e = O(
|
|
4184
|
+
e = w(I.subLanguage, B, !0, L[I.subLanguage]), L[I.subLanguage] = e._top;
|
|
4185
|
+
} else e = O(B, I.subLanguage.length ? I.subLanguage : null);
|
|
4191
4186
|
I.relevance > 0 && (V += e.relevance), R.__addSublanguage(e._emitter, e.language);
|
|
4192
4187
|
}
|
|
4193
4188
|
function _() {
|
|
4194
|
-
I.subLanguage == null ? f() : g(),
|
|
4189
|
+
I.subLanguage == null ? f() : g(), B = "";
|
|
4195
4190
|
}
|
|
4196
4191
|
function y(e, t) {
|
|
4197
4192
|
e !== "" && (R.startScope(t), R.addText(e), R.endScope());
|
|
@@ -4204,11 +4199,11 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
4204
4199
|
continue;
|
|
4205
4200
|
}
|
|
4206
4201
|
let r = N.classNameAliases[e[n]] || e[n], i = t[n];
|
|
4207
|
-
r ? y(i, r) : (
|
|
4202
|
+
r ? y(i, r) : (B = i, f(), B = ""), n++;
|
|
4208
4203
|
}
|
|
4209
4204
|
}
|
|
4210
4205
|
function S(e, t) {
|
|
4211
|
-
return e.scope && typeof e.scope == "string" && R.openNode(N.classNameAliases[e.scope] || e.scope), e.beginScope && (e.beginScope._wrap ? (y(
|
|
4206
|
+
return e.scope && typeof e.scope == "string" && R.openNode(N.classNameAliases[e.scope] || e.scope), e.beginScope && (e.beginScope._wrap ? (y(B, N.classNameAliases[e.beginScope._wrap] || e.beginScope._wrap), B = "") : e.beginScope._multi && (x(e.beginScope, t), B = "")), I = Object.create(e, { parent: { value: I } }), I;
|
|
4212
4207
|
}
|
|
4213
4208
|
function C(e, t, n) {
|
|
4214
4209
|
let i = D(e.endRe, n);
|
|
@@ -4225,18 +4220,18 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
4225
4220
|
if (e.endsWithParent) return C(e.parent, t, n);
|
|
4226
4221
|
}
|
|
4227
4222
|
function T(e) {
|
|
4228
|
-
return I.matcher.regexIndex === 0 ? (
|
|
4223
|
+
return I.matcher.regexIndex === 0 ? (B += e[0], 1) : (W = !0, 0);
|
|
4229
4224
|
}
|
|
4230
4225
|
function E(e) {
|
|
4231
4226
|
let t = e[0], n = e.rule, i = new r(n), o = [n.__beforeBegin, n["on:begin"]];
|
|
4232
4227
|
for (let n of o) if (n && (n(e, i), i.isMatchIgnored)) return T(t);
|
|
4233
|
-
return n.skip ?
|
|
4228
|
+
return n.skip ? B += t : (n.excludeBegin && (B += t), _(), !n.returnBegin && !n.excludeBegin && (B = t)), S(n, e), n.returnBegin ? 0 : t.length;
|
|
4234
4229
|
}
|
|
4235
4230
|
function k(e) {
|
|
4236
4231
|
let t = e[0], r = n.substring(e.index), i = C(I, e, r);
|
|
4237
4232
|
if (!i) return U9;
|
|
4238
4233
|
let o = I;
|
|
4239
|
-
I.endScope && I.endScope._wrap ? (_(), y(t, I.endScope._wrap)) : I.endScope && I.endScope._multi ? (_(), x(I.endScope, e)) : o.skip ?
|
|
4234
|
+
I.endScope && I.endScope._wrap ? (_(), y(t, I.endScope._wrap)) : I.endScope && I.endScope._multi ? (_(), x(I.endScope, e)) : o.skip ? B += t : (o.returnEnd || o.excludeEnd || (B += t), _(), o.excludeEnd && (B = t));
|
|
4240
4235
|
do
|
|
4241
4236
|
I.scope && R.closeNode(), !I.skip && !I.subLanguage && (V += I.relevance), I = I.parent;
|
|
4242
4237
|
while (I !== i.parent);
|
|
@@ -4250,9 +4245,9 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
4250
4245
|
let j = {};
|
|
4251
4246
|
function M(t, r) {
|
|
4252
4247
|
let o = r && r[0];
|
|
4253
|
-
if (
|
|
4248
|
+
if (B += t, o == null) return _(), 0;
|
|
4254
4249
|
if (j.type === "begin" && r.type === "end" && j.index === r.index && o === "") {
|
|
4255
|
-
if (
|
|
4250
|
+
if (B += n.slice(r.index, r.index + 1), !s) {
|
|
4256
4251
|
let t = /* @__PURE__ */ Error(`0 width match regex (${e})`);
|
|
4257
4252
|
throw t.languageName = e, t.badRule = j.rule, t;
|
|
4258
4253
|
}
|
|
@@ -4266,15 +4261,15 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
4266
4261
|
let e = k(r);
|
|
4267
4262
|
if (e !== U9) return e;
|
|
4268
4263
|
}
|
|
4269
|
-
if (r.type === "illegal" && o === "") return 1;
|
|
4264
|
+
if (r.type === "illegal" && o === "") return r.index === n.length || (B += "\n"), 1;
|
|
4270
4265
|
if (U > 1e5 && U > r.index * 3) throw /* @__PURE__ */ Error("potential infinite loop, way more iterations than matches");
|
|
4271
|
-
return
|
|
4266
|
+
return B += o, o.length;
|
|
4272
4267
|
}
|
|
4273
|
-
let N =
|
|
4268
|
+
let N = z(e);
|
|
4274
4269
|
if (!N) throw O9(c.replace("{}", e)), Error("Unknown language: \"" + e + "\"");
|
|
4275
4270
|
let P = I9(N), F = "", I = o || P, L = {}, R = new u.__emitter(u);
|
|
4276
4271
|
A();
|
|
4277
|
-
let
|
|
4272
|
+
let B = "", V = 0, H = 0, U = 0, W = !1;
|
|
4278
4273
|
try {
|
|
4279
4274
|
if (N.__emitTokens) N.__emitTokens(n, R);
|
|
4280
4275
|
else {
|
|
@@ -4334,13 +4329,13 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
4334
4329
|
}
|
|
4335
4330
|
function O(e, n) {
|
|
4336
4331
|
n = n || u.languages || Object.keys(t);
|
|
4337
|
-
let r = E(e), i = n.filter(
|
|
4332
|
+
let r = E(e), i = n.filter(z).filter(V).map((t) => w(t, e, !1));
|
|
4338
4333
|
i.unshift(r);
|
|
4339
4334
|
let [o, s] = i.sort((e, t) => {
|
|
4340
4335
|
if (e.relevance !== t.relevance) return t.relevance - e.relevance;
|
|
4341
4336
|
if (e.language && t.language) {
|
|
4342
|
-
if (
|
|
4343
|
-
if (
|
|
4337
|
+
if (z(e.language).supersetOf === t.language) return 1;
|
|
4338
|
+
if (z(t.language).supersetOf === e.language) return -1;
|
|
4344
4339
|
}
|
|
4345
4340
|
return 0;
|
|
4346
4341
|
}), c = o;
|
|
@@ -4353,23 +4348,27 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
4353
4348
|
function A(e) {
|
|
4354
4349
|
let t = null, n = f(e);
|
|
4355
4350
|
if (d(n)) return;
|
|
4356
|
-
if (
|
|
4351
|
+
if (G("before:highlightElement", {
|
|
4357
4352
|
el: e,
|
|
4358
4353
|
language: n
|
|
4359
|
-
}), e.
|
|
4354
|
+
}), e.dataset.highlighted) {
|
|
4355
|
+
console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", e);
|
|
4356
|
+
return;
|
|
4357
|
+
}
|
|
4358
|
+
if (e.children.length > 0 && (u.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(e)), u.throwUnescapedHTML)) throw new B9("One of your code blocks includes unescaped HTML.", e.innerHTML);
|
|
4360
4359
|
t = e;
|
|
4361
4360
|
let r = t.textContent, i = n ? _(r, {
|
|
4362
4361
|
language: n,
|
|
4363
4362
|
ignoreIllegals: !0
|
|
4364
4363
|
}) : O(r);
|
|
4365
|
-
e.innerHTML = i.value, k(e, n, i.language), e.result = {
|
|
4364
|
+
e.innerHTML = i.value, e.dataset.highlighted = "yes", k(e, n, i.language), e.result = {
|
|
4366
4365
|
language: i.language,
|
|
4367
4366
|
re: i.relevance,
|
|
4368
4367
|
relevance: i.relevance
|
|
4369
4368
|
}, i.secondBest && (e.secondBest = {
|
|
4370
4369
|
language: i.secondBest.language,
|
|
4371
4370
|
relevance: i.secondBest.relevance
|
|
4372
|
-
}),
|
|
4371
|
+
}), G("after:highlightElement", {
|
|
4373
4372
|
el: e,
|
|
4374
4373
|
result: i,
|
|
4375
4374
|
text: r
|
|
@@ -4386,17 +4385,16 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
4386
4385
|
}
|
|
4387
4386
|
let P = !1;
|
|
4388
4387
|
function F() {
|
|
4388
|
+
function e() {
|
|
4389
|
+
F();
|
|
4390
|
+
}
|
|
4389
4391
|
if (document.readyState === "loading") {
|
|
4390
|
-
P = !0;
|
|
4392
|
+
P || window.addEventListener("DOMContentLoaded", e, !1), P = !0;
|
|
4391
4393
|
return;
|
|
4392
4394
|
}
|
|
4393
4395
|
document.querySelectorAll(u.cssSelector).forEach(A);
|
|
4394
4396
|
}
|
|
4395
|
-
function I() {
|
|
4396
|
-
P && F();
|
|
4397
|
-
}
|
|
4398
|
-
typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", I, !1);
|
|
4399
|
-
function L(n, r) {
|
|
4397
|
+
function I(n, r) {
|
|
4400
4398
|
let i = null;
|
|
4401
4399
|
try {
|
|
4402
4400
|
i = r(e);
|
|
@@ -4405,48 +4403,48 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
4405
4403
|
else throw e;
|
|
4406
4404
|
i = l;
|
|
4407
4405
|
}
|
|
4408
|
-
i.name ||= n, t[n] = i, i.rawDefinition = r.bind(null, e), i.aliases &&
|
|
4406
|
+
i.name ||= n, t[n] = i, i.rawDefinition = r.bind(null, e), i.aliases && B(i.aliases, { languageName: n });
|
|
4409
4407
|
}
|
|
4410
|
-
function
|
|
4408
|
+
function L(e) {
|
|
4411
4409
|
delete t[e];
|
|
4412
4410
|
for (let t of Object.keys(i)) i[t] === e && delete i[t];
|
|
4413
4411
|
}
|
|
4414
|
-
function
|
|
4412
|
+
function R() {
|
|
4415
4413
|
return Object.keys(t);
|
|
4416
4414
|
}
|
|
4417
|
-
function
|
|
4415
|
+
function z(e) {
|
|
4418
4416
|
return e = (e || "").toLowerCase(), t[e] || t[i[e]];
|
|
4419
4417
|
}
|
|
4420
|
-
function
|
|
4418
|
+
function B(e, { languageName: t }) {
|
|
4421
4419
|
typeof e == "string" && (e = [e]), e.forEach((e) => {
|
|
4422
4420
|
i[e.toLowerCase()] = t;
|
|
4423
4421
|
});
|
|
4424
4422
|
}
|
|
4425
|
-
function
|
|
4426
|
-
let t =
|
|
4423
|
+
function V(e) {
|
|
4424
|
+
let t = z(e);
|
|
4427
4425
|
return t && !t.disableAutodetect;
|
|
4428
4426
|
}
|
|
4429
|
-
function
|
|
4427
|
+
function H(e) {
|
|
4430
4428
|
e["before:highlightBlock"] && !e["before:highlightElement"] && (e["before:highlightElement"] = (t) => {
|
|
4431
4429
|
e["before:highlightBlock"](Object.assign({ block: t.el }, t));
|
|
4432
4430
|
}), e["after:highlightBlock"] && !e["after:highlightElement"] && (e["after:highlightElement"] = (t) => {
|
|
4433
4431
|
e["after:highlightBlock"](Object.assign({ block: t.el }, t));
|
|
4434
4432
|
});
|
|
4435
4433
|
}
|
|
4436
|
-
function
|
|
4437
|
-
|
|
4434
|
+
function U(e) {
|
|
4435
|
+
H(e), o.push(e);
|
|
4438
4436
|
}
|
|
4439
|
-
function
|
|
4437
|
+
function W(e) {
|
|
4440
4438
|
let t = o.indexOf(e);
|
|
4441
4439
|
t !== -1 && o.splice(t, 1);
|
|
4442
4440
|
}
|
|
4443
|
-
function
|
|
4441
|
+
function G(e, t) {
|
|
4444
4442
|
let n = e;
|
|
4445
4443
|
o.forEach(function(e) {
|
|
4446
4444
|
e[n] && e[n](t);
|
|
4447
4445
|
});
|
|
4448
4446
|
}
|
|
4449
|
-
function
|
|
4447
|
+
function K(e) {
|
|
4450
4448
|
return A9("10.7.0", "highlightBlock will be removed entirely in v12.0"), A9("10.7.0", "Please use highlightElement now."), A(e);
|
|
4451
4449
|
}
|
|
4452
4450
|
for (let t in Object.assign(e, {
|
|
@@ -4454,19 +4452,19 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
4454
4452
|
highlightAuto: O,
|
|
4455
4453
|
highlightAll: F,
|
|
4456
4454
|
highlightElement: A,
|
|
4457
|
-
highlightBlock:
|
|
4455
|
+
highlightBlock: K,
|
|
4458
4456
|
configure: j,
|
|
4459
4457
|
initHighlighting: M,
|
|
4460
4458
|
initHighlightingOnLoad: N,
|
|
4461
|
-
registerLanguage:
|
|
4462
|
-
unregisterLanguage:
|
|
4463
|
-
listLanguages:
|
|
4464
|
-
getLanguage:
|
|
4465
|
-
registerAliases:
|
|
4466
|
-
autoDetection:
|
|
4459
|
+
registerLanguage: I,
|
|
4460
|
+
unregisterLanguage: L,
|
|
4461
|
+
listLanguages: R,
|
|
4462
|
+
getLanguage: z,
|
|
4463
|
+
registerAliases: B,
|
|
4464
|
+
autoDetection: V,
|
|
4467
4465
|
inherit: H9,
|
|
4468
|
-
addPlugin:
|
|
4469
|
-
removePlugin:
|
|
4466
|
+
addPlugin: U,
|
|
4467
|
+
removePlugin: W
|
|
4470
4468
|
}), e.debugMode = function() {
|
|
4471
4469
|
s = !1;
|
|
4472
4470
|
}, e.safeMode = function() {
|
|
@@ -4481,7 +4479,7 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
4481
4479
|
return Object.assign(e, g9), e;
|
|
4482
4480
|
}, K9 = G9({});
|
|
4483
4481
|
K9.newInstance = () => G9({}), t.exports = K9, K9.HighlightJS = K9, K9.default = K9;
|
|
4484
|
-
})))())).default, IDENT_RE$1 = "[A-Za-z$_][0-9A-Za-z$_]*", KEYWORDS$1 = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends".split("."), LITERALS$1 = [
|
|
4482
|
+
})))())).default, IDENT_RE$1 = "[A-Za-z$_][0-9A-Za-z$_]*", KEYWORDS$1 = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using".split("."), LITERALS$1 = [
|
|
4485
4483
|
"true",
|
|
4486
4484
|
"false",
|
|
4487
4485
|
"null",
|
|
@@ -4525,6 +4523,7 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
4525
4523
|
"localStorage",
|
|
4526
4524
|
"sessionStorage",
|
|
4527
4525
|
"module",
|
|
4526
|
+
"self",
|
|
4528
4527
|
"global"
|
|
4529
4528
|
], BUILT_INS$1 = [].concat(BUILT_IN_GLOBALS$1, TYPES$1, ERROR_TYPES$1);
|
|
4530
4529
|
function javascript(e) {
|
|
@@ -4579,7 +4578,7 @@ function javascript(e) {
|
|
|
4579
4578
|
keywords: c,
|
|
4580
4579
|
contains: []
|
|
4581
4580
|
}, _ = {
|
|
4582
|
-
begin: "html`",
|
|
4581
|
+
begin: ".?html`",
|
|
4583
4582
|
end: "",
|
|
4584
4583
|
starts: {
|
|
4585
4584
|
end: "`",
|
|
@@ -4588,7 +4587,7 @@ function javascript(e) {
|
|
|
4588
4587
|
subLanguage: "xml"
|
|
4589
4588
|
}
|
|
4590
4589
|
}, y = {
|
|
4591
|
-
begin: "css`",
|
|
4590
|
+
begin: ".?css`",
|
|
4592
4591
|
end: "",
|
|
4593
4592
|
starts: {
|
|
4594
4593
|
end: "`",
|
|
@@ -4597,7 +4596,7 @@ function javascript(e) {
|
|
|
4597
4596
|
subLanguage: "css"
|
|
4598
4597
|
}
|
|
4599
4598
|
}, x = {
|
|
4600
|
-
begin: "gql`",
|
|
4599
|
+
begin: ".?gql`",
|
|
4601
4600
|
end: "",
|
|
4602
4601
|
starts: {
|
|
4603
4602
|
end: "`",
|
|
@@ -4664,13 +4663,13 @@ function javascript(e) {
|
|
|
4664
4663
|
contains: ["self"].concat(w)
|
|
4665
4664
|
});
|
|
4666
4665
|
let T = [].concat(C, g.contains), E = T.concat([{
|
|
4667
|
-
begin:
|
|
4666
|
+
begin: /(\s*)\(/,
|
|
4668
4667
|
end: /\)/,
|
|
4669
4668
|
keywords: c,
|
|
4670
4669
|
contains: ["self"].concat(T)
|
|
4671
4670
|
}]), D = {
|
|
4672
4671
|
className: "params",
|
|
4673
|
-
begin:
|
|
4672
|
+
begin: /(\s*)\(/,
|
|
4674
4673
|
end: /\)/,
|
|
4675
4674
|
excludeBegin: !0,
|
|
4676
4675
|
excludeEnd: !0,
|
|
@@ -4738,8 +4737,9 @@ function javascript(e) {
|
|
|
4738
4737
|
match: t.concat(/\b/, N([
|
|
4739
4738
|
...BUILT_IN_GLOBALS$1,
|
|
4740
4739
|
"super",
|
|
4741
|
-
"import"
|
|
4742
|
-
|
|
4740
|
+
"import",
|
|
4741
|
+
"await"
|
|
4742
|
+
].map((e) => `${e}\\s*\\(`)), r, t.lookahead(/\s*\(/)),
|
|
4743
4743
|
className: "title.function",
|
|
4744
4744
|
relevance: 0
|
|
4745
4745
|
}, F = {
|
|
@@ -4791,7 +4791,7 @@ function javascript(e) {
|
|
|
4791
4791
|
PARAMS_CONTAINS: E,
|
|
4792
4792
|
CLASS_REFERENCE: k
|
|
4793
4793
|
},
|
|
4794
|
-
illegal: /#(?![$_A-z])/,
|
|
4794
|
+
illegal: /#(?![$_A-Za-z])/,
|
|
4795
4795
|
contains: [
|
|
4796
4796
|
e.SHEBANG({
|
|
4797
4797
|
label: "shebang",
|
|
@@ -4810,8 +4810,8 @@ function javascript(e) {
|
|
|
4810
4810
|
f,
|
|
4811
4811
|
k,
|
|
4812
4812
|
{
|
|
4813
|
-
|
|
4814
|
-
|
|
4813
|
+
scope: "attr",
|
|
4814
|
+
match: r + t.lookahead(":"),
|
|
4815
4815
|
relevance: 0
|
|
4816
4816
|
},
|
|
4817
4817
|
R,
|
|
@@ -4840,7 +4840,7 @@ function javascript(e) {
|
|
|
4840
4840
|
skip: !0
|
|
4841
4841
|
},
|
|
4842
4842
|
{
|
|
4843
|
-
begin:
|
|
4843
|
+
begin: /(\s*)\(/,
|
|
4844
4844
|
end: /\)/,
|
|
4845
4845
|
excludeBegin: !0,
|
|
4846
4846
|
excludeEnd: !0,
|
|
@@ -5027,7 +5027,7 @@ function xml(e) {
|
|
|
5027
5027
|
starts: {
|
|
5028
5028
|
end: /<\/style>/,
|
|
5029
5029
|
returnEnd: !0,
|
|
5030
|
-
subLanguage:
|
|
5030
|
+
subLanguage: "css"
|
|
5031
5031
|
}
|
|
5032
5032
|
},
|
|
5033
5033
|
{
|
|
@@ -5039,11 +5039,7 @@ function xml(e) {
|
|
|
5039
5039
|
starts: {
|
|
5040
5040
|
end: /<\/script>/,
|
|
5041
5041
|
returnEnd: !0,
|
|
5042
|
-
subLanguage:
|
|
5043
|
-
"javascript",
|
|
5044
|
-
"handlebars",
|
|
5045
|
-
"xml"
|
|
5046
|
-
]
|
|
5042
|
+
subLanguage: "javascript"
|
|
5047
5043
|
}
|
|
5048
5044
|
},
|
|
5049
5045
|
{
|
|
@@ -24072,170 +24068,196 @@ var entities_exports = /* @__PURE__ */ __export({
|
|
|
24072
24068
|
var i, o, s, c = new this.State(e, t, n, r);
|
|
24073
24069
|
for (this.tokenize(c), o = this.ruler2.getRules(""), s = o.length, i = 0; i < s; i++) o[i](c);
|
|
24074
24070
|
}, o.prototype.State = require_state_inline(), t.exports = o;
|
|
24075
|
-
})),
|
|
24076
|
-
|
|
24077
|
-
|
|
24078
|
-
|
|
24071
|
+
})), require_index_cjs$1 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
24072
|
+
e.Any = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, e.Cc = /[\0-\x1F\x7F-\x9F]/, e.Cf = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, e.P = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, e.S = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, e.Z = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;
|
|
24073
|
+
})), require_index_cjs = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
24074
|
+
var n = require_index_cjs$1();
|
|
24075
|
+
function r(e) {
|
|
24076
|
+
let t = {};
|
|
24077
|
+
e ||= {}, t.src_Any = n.Any.source, t.src_Cc = n.Cc.source, t.src_Z = n.Z.source, t.src_P = n.P.source, t.src_ZPCc = [
|
|
24079
24078
|
t.src_Z,
|
|
24080
24079
|
t.src_P,
|
|
24081
24080
|
t.src_Cc
|
|
24082
24081
|
].join("|"), t.src_ZCc = [t.src_Z, t.src_Cc].join("|");
|
|
24083
|
-
|
|
24084
|
-
return t.src_pseudo_letter =
|
|
24085
|
-
}
|
|
24086
|
-
|
|
24087
|
-
function n(e) {
|
|
24082
|
+
let r = "[><|]";
|
|
24083
|
+
return t.src_pseudo_letter = `(?:(?!${r}|${t.src_ZPCc})${t.src_Any})`, t.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", t.src_auth = `(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`, t.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", t.src_host_terminator = `(?=$|${r}|${t.src_ZPCc})(?!${e["---"] ? "-(?!--)|" : "-|"}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`, t.src_path = `(?:[/?#](?:(?!${t.src_ZCc}|${r}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|` + (e["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + `,(?!${t.src_ZCc}|$)|;(?!${t.src_ZCc}|$)|\\!+(?!${t.src_ZCc}|[!]|$)|\\?(?!${t.src_ZCc}|[?]|$))+|\\/)?`, t.src_email_name = "[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\\"\\.a-zA-Z0-9_]{0,63}", t.src_xn = "xn--[a-z0-9\\-]{1,59}", t.src_domain_root = "(?:" + t.src_xn + `|${t.src_pseudo_letter}{1,63})`, t.src_domain = "(?:" + t.src_xn + `|(?:${t.src_pseudo_letter})|(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}))`, t.src_host = `(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`, t.tpl_host_fuzzy = "(?:" + t.src_ip4 + `|(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%)))`, t.tpl_host_no_ip_fuzzy = `(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`, t.src_host_strict = t.src_host + t.src_host_terminator, t.tpl_host_fuzzy_strict = t.tpl_host_fuzzy + t.src_host_terminator, t.src_host_port_strict = t.src_host + t.src_port + t.src_host_terminator, t.tpl_host_port_fuzzy_strict = t.tpl_host_fuzzy + t.src_port + t.src_host_terminator, t.tpl_host_port_no_ip_fuzzy_strict = t.tpl_host_no_ip_fuzzy + t.src_port + t.src_host_terminator, t.tpl_host_fuzzy_test = `localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`, t.tpl_email_fuzzy = `(^|${r}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`, t.tpl_link_fuzzy = `(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_fuzzy_strict}${t.src_path})`, t.tpl_link_no_ip_fuzzy = `(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`, t;
|
|
24084
|
+
}
|
|
24085
|
+
function i(e) {
|
|
24088
24086
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
24089
24087
|
t && Object.keys(t).forEach(function(n) {
|
|
24090
24088
|
e[n] = t[n];
|
|
24091
24089
|
});
|
|
24092
24090
|
}), e;
|
|
24093
24091
|
}
|
|
24094
|
-
function r(e) {
|
|
24095
|
-
return Object.prototype.toString.call(e);
|
|
24096
|
-
}
|
|
24097
|
-
function i(e) {
|
|
24098
|
-
return r(e) === "[object String]";
|
|
24099
|
-
}
|
|
24100
24092
|
function o(e) {
|
|
24101
|
-
return
|
|
24093
|
+
return Object.prototype.toString.call(e);
|
|
24102
24094
|
}
|
|
24103
24095
|
function s(e) {
|
|
24104
|
-
return
|
|
24096
|
+
return o(e) === "[object String]";
|
|
24105
24097
|
}
|
|
24106
24098
|
function c(e) {
|
|
24107
|
-
return
|
|
24099
|
+
return o(e) === "[object Object]";
|
|
24108
24100
|
}
|
|
24109
24101
|
function l(e) {
|
|
24102
|
+
return o(e) === "[object RegExp]";
|
|
24103
|
+
}
|
|
24104
|
+
function u(e) {
|
|
24105
|
+
return o(e) === "[object Function]";
|
|
24106
|
+
}
|
|
24107
|
+
function d(e) {
|
|
24110
24108
|
return e.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
|
24111
24109
|
}
|
|
24112
|
-
var
|
|
24110
|
+
var f = {
|
|
24113
24111
|
fuzzyLink: !0,
|
|
24114
24112
|
fuzzyEmail: !0,
|
|
24115
24113
|
fuzzyIP: !1
|
|
24116
24114
|
};
|
|
24117
|
-
function
|
|
24115
|
+
function g(e) {
|
|
24118
24116
|
return Object.keys(e || {}).reduce(function(e, t) {
|
|
24119
|
-
return e ||
|
|
24117
|
+
return e || f.hasOwnProperty(t);
|
|
24120
24118
|
}, !1);
|
|
24121
24119
|
}
|
|
24122
|
-
var
|
|
24120
|
+
var _ = {
|
|
24123
24121
|
"http:": { validate: function(e, t, n) {
|
|
24124
|
-
|
|
24125
|
-
return n.re.http || (n.re.http = RegExp(
|
|
24122
|
+
let r = e.slice(t);
|
|
24123
|
+
return n.re.http || (n.re.http = RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`, "i")), n.re.http.test(r) ? r.match(n.re.http)[0].length : 0;
|
|
24126
24124
|
} },
|
|
24127
24125
|
"https:": "http:",
|
|
24128
24126
|
"ftp:": "http:",
|
|
24129
24127
|
"//": { validate: function(e, t, n) {
|
|
24130
|
-
|
|
24131
|
-
return n.re.no_http || (n.re.no_http = RegExp("^" + n.re.src_auth +
|
|
24128
|
+
let r = e.slice(t);
|
|
24129
|
+
return n.re.no_http || (n.re.no_http = RegExp("^" + n.re.src_auth + `(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})` + n.re.src_port + n.re.src_host_terminator + n.re.src_path, "i")), n.re.no_http.test(r) ? t >= 3 && e[t - 3] === ":" || t >= 3 && e[t - 3] === "/" ? 0 : r.match(n.re.no_http)[0].length : 0;
|
|
24132
24130
|
} },
|
|
24133
24131
|
"mailto:": { validate: function(e, t, n) {
|
|
24134
|
-
|
|
24135
|
-
return n.re.mailto || (n.re.mailto = RegExp(
|
|
24132
|
+
let r = e.slice(t);
|
|
24133
|
+
return n.re.mailto || (n.re.mailto = RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`, "i")), n.re.mailto.test(r) ? r.match(n.re.mailto)[0].length : 0;
|
|
24136
24134
|
} }
|
|
24137
|
-
},
|
|
24138
|
-
function
|
|
24139
|
-
e.__index__ = -1, e.__text_cache__ = "";
|
|
24140
|
-
}
|
|
24141
|
-
function x(e) {
|
|
24135
|
+
}, y = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", x = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
|
|
24136
|
+
function S(e) {
|
|
24142
24137
|
return function(t, n) {
|
|
24143
|
-
|
|
24138
|
+
let r = t.slice(n);
|
|
24144
24139
|
return e.test(r) ? r.match(e)[0].length : 0;
|
|
24145
24140
|
};
|
|
24146
24141
|
}
|
|
24147
|
-
function
|
|
24142
|
+
function C() {
|
|
24148
24143
|
return function(e, t) {
|
|
24149
24144
|
t.normalize(e);
|
|
24150
24145
|
};
|
|
24151
24146
|
}
|
|
24152
|
-
function
|
|
24153
|
-
|
|
24154
|
-
e.onCompile(), e.__tlds_replaced__ || n.push(
|
|
24155
|
-
function
|
|
24147
|
+
function w(e) {
|
|
24148
|
+
let t = e.re = r(e.__opts__), n = e.__tlds__.slice();
|
|
24149
|
+
e.onCompile(), e.__tlds_replaced__ || n.push(y), n.push(t.src_xn), t.src_tlds = n.join("|");
|
|
24150
|
+
function i(e) {
|
|
24156
24151
|
return e.replace("%TLDS%", t.src_tlds);
|
|
24157
24152
|
}
|
|
24158
|
-
t.email_fuzzy = RegExp(
|
|
24159
|
-
|
|
24153
|
+
t.email_fuzzy = RegExp(i(t.tpl_email_fuzzy), "i"), t.email_fuzzy_global = RegExp(i(t.tpl_email_fuzzy), "ig"), t.link_fuzzy = RegExp(i(t.tpl_link_fuzzy), "i"), t.link_fuzzy_global = RegExp(i(t.tpl_link_fuzzy), "ig"), t.link_no_ip_fuzzy = RegExp(i(t.tpl_link_no_ip_fuzzy), "i"), t.link_no_ip_fuzzy_global = RegExp(i(t.tpl_link_no_ip_fuzzy), "ig"), t.host_fuzzy_test = RegExp(i(t.tpl_host_fuzzy_test), "i");
|
|
24154
|
+
let o = [];
|
|
24160
24155
|
e.__compiled__ = {};
|
|
24161
|
-
function
|
|
24162
|
-
throw Error(
|
|
24156
|
+
function f(e, t) {
|
|
24157
|
+
throw Error(`(LinkifyIt) Invalid schema "${e}": ${t}`);
|
|
24163
24158
|
}
|
|
24164
24159
|
Object.keys(e.__schemas__).forEach(function(t) {
|
|
24165
|
-
|
|
24166
|
-
if (n
|
|
24167
|
-
|
|
24168
|
-
|
|
24169
|
-
|
|
24170
|
-
|
|
24171
|
-
|
|
24172
|
-
|
|
24173
|
-
|
|
24174
|
-
|
|
24175
|
-
|
|
24176
|
-
|
|
24177
|
-
|
|
24178
|
-
}
|
|
24179
|
-
d(t, n);
|
|
24160
|
+
let n = e.__schemas__[t];
|
|
24161
|
+
if (n === null) return;
|
|
24162
|
+
let r = {
|
|
24163
|
+
validate: null,
|
|
24164
|
+
link: null
|
|
24165
|
+
};
|
|
24166
|
+
if (e.__compiled__[t] = r, c(n)) {
|
|
24167
|
+
l(n.validate) ? r.validate = S(n.validate) : u(n.validate) ? r.validate = n.validate : f(t, n), u(n.normalize) ? r.normalize = n.normalize : n.normalize ? f(t, n) : r.normalize = C();
|
|
24168
|
+
return;
|
|
24169
|
+
}
|
|
24170
|
+
if (s(n)) {
|
|
24171
|
+
o.push(t);
|
|
24172
|
+
return;
|
|
24180
24173
|
}
|
|
24181
|
-
|
|
24174
|
+
f(t, n);
|
|
24175
|
+
}), o.forEach(function(t) {
|
|
24182
24176
|
e.__compiled__[e.__schemas__[t]] && (e.__compiled__[t].validate = e.__compiled__[e.__schemas__[t]].validate, e.__compiled__[t].normalize = e.__compiled__[e.__schemas__[t]].normalize);
|
|
24183
24177
|
}), e.__compiled__[""] = {
|
|
24184
24178
|
validate: null,
|
|
24185
|
-
normalize:
|
|
24179
|
+
normalize: C()
|
|
24186
24180
|
};
|
|
24187
|
-
|
|
24181
|
+
let g = Object.keys(e.__compiled__).filter(function(t) {
|
|
24188
24182
|
return t.length > 0 && e.__compiled__[t];
|
|
24189
|
-
}).map(
|
|
24190
|
-
e.re.schema_test = RegExp(
|
|
24191
|
-
}
|
|
24192
|
-
function w(e, t) {
|
|
24193
|
-
var n = e.__index__, r = e.__last_index__, i = e.__text_cache__.slice(n, r);
|
|
24194
|
-
this.schema = e.__schema__.toLowerCase(), this.index = n + t, this.lastIndex = r + t, this.raw = i, this.text = i, this.url = i;
|
|
24183
|
+
}).map(d).join("|");
|
|
24184
|
+
e.re.schema_test = RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${g})`, "i"), e.re.schema_search = RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${g})`, "ig"), e.re.schema_at_start = RegExp(`^${e.re.schema_search.source}`, "i"), e.re.pretest = RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`, "i");
|
|
24195
24185
|
}
|
|
24196
|
-
function T(e, t) {
|
|
24197
|
-
|
|
24198
|
-
|
|
24186
|
+
function T(e, t, n, r) {
|
|
24187
|
+
let i = e.slice(n, r);
|
|
24188
|
+
this.schema = t.toLowerCase(), this.index = n, this.lastIndex = r, this.raw = i, this.text = i, this.url = i;
|
|
24199
24189
|
}
|
|
24200
24190
|
function E(e, t) {
|
|
24201
24191
|
if (!(this instanceof E)) return new E(e, t);
|
|
24202
|
-
t ||
|
|
24192
|
+
t || g(e) && (t = e, e = {}), this.__opts__ = i({}, f, t), this.__schemas__ = i({}, _, e), this.__compiled__ = {}, this.__tlds__ = x, this.__tlds_replaced__ = !1, this.re = {}, w(this);
|
|
24203
24193
|
}
|
|
24204
24194
|
E.prototype.add = function(e, t) {
|
|
24205
|
-
return this.__schemas__[e] = t,
|
|
24195
|
+
return this.__schemas__[e] = t, w(this), this;
|
|
24206
24196
|
}, E.prototype.set = function(e) {
|
|
24207
|
-
return this.__opts__ =
|
|
24197
|
+
return this.__opts__ = i(this.__opts__, e), this;
|
|
24208
24198
|
}, E.prototype.test = function(e) {
|
|
24209
|
-
if (
|
|
24210
|
-
|
|
24199
|
+
if (!e.length) return !1;
|
|
24200
|
+
let t, n;
|
|
24211
24201
|
if (this.re.schema_test.test(e)) {
|
|
24212
|
-
for (
|
|
24213
|
-
this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + i;
|
|
24214
|
-
break;
|
|
24215
|
-
}
|
|
24202
|
+
for (n = this.re.schema_search, n.lastIndex = 0; (t = n.exec(e)) !== null;) if (this.testSchemaAt(e, t[2], n.lastIndex)) return !0;
|
|
24216
24203
|
}
|
|
24217
|
-
return this.__opts__.fuzzyLink && this.__compiled__["http:"] &&
|
|
24204
|
+
return !!(this.__opts__.fuzzyLink && this.__compiled__["http:"] && e.search(this.re.host_fuzzy_test) >= 0 && e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy) !== null || this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && e.indexOf("@") >= 0 && e.match(this.re.email_fuzzy) !== null);
|
|
24218
24205
|
}, E.prototype.pretest = function(e) {
|
|
24219
24206
|
return this.re.pretest.test(e);
|
|
24220
24207
|
}, E.prototype.testSchemaAt = function(e, t, n) {
|
|
24221
24208
|
return this.__compiled__[t.toLowerCase()] ? this.__compiled__[t.toLowerCase()].validate(e, n, this) : 0;
|
|
24222
24209
|
}, E.prototype.match = function(e) {
|
|
24223
|
-
|
|
24224
|
-
|
|
24225
|
-
|
|
24226
|
-
|
|
24210
|
+
let t = [], n = [], r = [], i = [], o, s, c;
|
|
24211
|
+
function l(e, t) {
|
|
24212
|
+
return e ? t ? e.index === t.index ? e.lastIndex >= t.lastIndex ? e : t : e.index < t.index ? e : t : e : t;
|
|
24213
|
+
}
|
|
24214
|
+
if (!e.length) return null;
|
|
24215
|
+
if (this.re.schema_test.test(e)) for (c = this.re.schema_search, c.lastIndex = 0; (o = c.exec(e)) !== null;) s = this.testSchemaAt(e, o[2], c.lastIndex), s && n.push({
|
|
24216
|
+
schema: o[2],
|
|
24217
|
+
index: o.index + o[1].length,
|
|
24218
|
+
lastIndex: o.index + o[0].length + s
|
|
24219
|
+
});
|
|
24220
|
+
if (this.__opts__.fuzzyLink && this.__compiled__["http:"]) for (c = this.__opts__.fuzzyIP ? this.re.link_fuzzy_global : this.re.link_no_ip_fuzzy_global, c.lastIndex = 0; (o = c.exec(e)) !== null;) r.push({
|
|
24221
|
+
schema: "",
|
|
24222
|
+
index: o.index + o[1].length,
|
|
24223
|
+
lastIndex: o.index + o[0].length
|
|
24224
|
+
});
|
|
24225
|
+
if (this.__opts__.fuzzyEmail && this.__compiled__["mailto:"]) for (c = this.re.email_fuzzy_global, c.lastIndex = 0; (o = c.exec(e)) !== null;) i.push({
|
|
24226
|
+
schema: "mailto:",
|
|
24227
|
+
index: o.index + o[1].length,
|
|
24228
|
+
lastIndex: o.index + o[0].length
|
|
24229
|
+
});
|
|
24230
|
+
let u = [
|
|
24231
|
+
0,
|
|
24232
|
+
0,
|
|
24233
|
+
0
|
|
24234
|
+
], d = 0;
|
|
24235
|
+
for (;;) {
|
|
24236
|
+
let o = [
|
|
24237
|
+
n[u[0]],
|
|
24238
|
+
i[u[1]],
|
|
24239
|
+
r[u[2]]
|
|
24240
|
+
], s = l(l(o[0], o[1]), o[2]);
|
|
24241
|
+
if (!s) break;
|
|
24242
|
+
if (s === o[0] ? u[0]++ : s === o[1] ? u[1]++ : u[2]++, s.index < d) continue;
|
|
24243
|
+
let c = new T(e, s.schema, s.index, s.lastIndex);
|
|
24244
|
+
this.__compiled__[c.schema].normalize(c, this), t.push(c), d = s.lastIndex;
|
|
24245
|
+
}
|
|
24246
|
+
return t.length ? t : null;
|
|
24227
24247
|
}, E.prototype.matchAtStart = function(e) {
|
|
24228
|
-
if (
|
|
24229
|
-
|
|
24248
|
+
if (!e.length) return null;
|
|
24249
|
+
let t = this.re.schema_at_start.exec(e);
|
|
24230
24250
|
if (!t) return null;
|
|
24231
|
-
|
|
24232
|
-
|
|
24251
|
+
let n = this.testSchemaAt(e, t[2], t[0].length);
|
|
24252
|
+
if (!n) return null;
|
|
24253
|
+
let r = new T(e, t[2], t.index + t[1].length, t.index + t[0].length + n);
|
|
24254
|
+
return this.__compiled__[r.schema].normalize(r, this), r;
|
|
24233
24255
|
}, E.prototype.tlds = function(e, t) {
|
|
24234
24256
|
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(e, t, n) {
|
|
24235
24257
|
return e !== n[t - 1];
|
|
24236
|
-
}).reverse(),
|
|
24258
|
+
}).reverse(), w(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, w(this), this);
|
|
24237
24259
|
}, E.prototype.normalize = function(e) {
|
|
24238
|
-
e.schema || (e.url =
|
|
24260
|
+
e.schema || (e.url = `http://${e.url}`), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = `mailto:${e.url}`);
|
|
24239
24261
|
}, E.prototype.onCompile = function() {}, t.exports = E;
|
|
24240
24262
|
})), require_punycode = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
24241
24263
|
(function(n) {
|
|
@@ -24429,7 +24451,7 @@ var entities_exports = /* @__PURE__ */ __export({
|
|
|
24429
24451
|
}
|
|
24430
24452
|
};
|
|
24431
24453
|
})), require_lib = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
24432
|
-
var n = require_utils(), r = require_helpers(), i = require_renderer(), o = require_parser_core(), s = require_parser_block(), c = require_parser_inline(), l =
|
|
24454
|
+
var n = require_utils(), r = require_helpers(), i = require_renderer(), o = require_parser_core(), s = require_parser_block(), c = require_parser_inline(), l = require_index_cjs(), u = require_mdurl(), d = require_punycode(), f = {
|
|
24433
24455
|
default: require_default(),
|
|
24434
24456
|
zero: require_zero(),
|
|
24435
24457
|
commonmark: require_commonmark()
|
|
@@ -29152,14 +29174,17 @@ function bash(e) {
|
|
|
29152
29174
|
begin: /\$\(/,
|
|
29153
29175
|
end: /\)/,
|
|
29154
29176
|
contains: [e.BACKSLASH_ESCAPE]
|
|
29155
|
-
}, o = {
|
|
29177
|
+
}, o = e.inherit(e.COMMENT(), {
|
|
29178
|
+
match: [/(^|\s)/, /#.*$/],
|
|
29179
|
+
scope: { 2: "comment" }
|
|
29180
|
+
}), s = {
|
|
29156
29181
|
begin: /<<-?\s*(?=\w+)/,
|
|
29157
29182
|
starts: { contains: [e.END_SAME_AS_BEGIN({
|
|
29158
29183
|
begin: /(\w+)/,
|
|
29159
29184
|
end: /(\w+)/,
|
|
29160
29185
|
className: "string"
|
|
29161
29186
|
})] }
|
|
29162
|
-
},
|
|
29187
|
+
}, c = {
|
|
29163
29188
|
className: "string",
|
|
29164
29189
|
begin: /"/,
|
|
29165
29190
|
end: /"/,
|
|
@@ -29169,15 +29194,12 @@ function bash(e) {
|
|
|
29169
29194
|
i
|
|
29170
29195
|
]
|
|
29171
29196
|
};
|
|
29172
|
-
i.contains.push(
|
|
29173
|
-
let
|
|
29174
|
-
className: "",
|
|
29175
|
-
begin: /\\"/
|
|
29176
|
-
}, l = {
|
|
29197
|
+
i.contains.push(c);
|
|
29198
|
+
let l = { match: /\\"/ }, u = {
|
|
29177
29199
|
className: "string",
|
|
29178
29200
|
begin: /'/,
|
|
29179
29201
|
end: /'/
|
|
29180
|
-
},
|
|
29202
|
+
}, d = { match: /\\'/ }, f = {
|
|
29181
29203
|
begin: /\$?\(\(/,
|
|
29182
29204
|
end: /\)\)/,
|
|
29183
29205
|
contains: [
|
|
@@ -29188,7 +29210,7 @@ function bash(e) {
|
|
|
29188
29210
|
e.NUMBER_MODE,
|
|
29189
29211
|
n
|
|
29190
29212
|
]
|
|
29191
|
-
},
|
|
29213
|
+
}, g = e.SHEBANG({
|
|
29192
29214
|
binary: `(${[
|
|
29193
29215
|
"fish",
|
|
29194
29216
|
"bash",
|
|
@@ -29201,18 +29223,19 @@ function bash(e) {
|
|
|
29201
29223
|
"scsh"
|
|
29202
29224
|
].join("|")})`,
|
|
29203
29225
|
relevance: 10
|
|
29204
|
-
}),
|
|
29226
|
+
}), _ = {
|
|
29205
29227
|
className: "function",
|
|
29206
29228
|
begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
|
|
29207
29229
|
returnBegin: !0,
|
|
29208
29230
|
contains: [e.inherit(e.TITLE_MODE, { begin: /\w[\w\d_]*/ })],
|
|
29209
29231
|
relevance: 0
|
|
29210
|
-
},
|
|
29232
|
+
}, y = [
|
|
29211
29233
|
"if",
|
|
29212
29234
|
"then",
|
|
29213
29235
|
"else",
|
|
29214
29236
|
"elif",
|
|
29215
29237
|
"fi",
|
|
29238
|
+
"time",
|
|
29216
29239
|
"for",
|
|
29217
29240
|
"while",
|
|
29218
29241
|
"until",
|
|
@@ -29221,9 +29244,10 @@ function bash(e) {
|
|
|
29221
29244
|
"done",
|
|
29222
29245
|
"case",
|
|
29223
29246
|
"esac",
|
|
29247
|
+
"coproc",
|
|
29224
29248
|
"function",
|
|
29225
29249
|
"select"
|
|
29226
|
-
],
|
|
29250
|
+
], x = ["true", "false"], S = { match: /(\/[a-z._-]+)+/ }, C = [
|
|
29227
29251
|
"break",
|
|
29228
29252
|
"cd",
|
|
29229
29253
|
"continue",
|
|
@@ -29242,7 +29266,7 @@ function bash(e) {
|
|
|
29242
29266
|
"trap",
|
|
29243
29267
|
"umask",
|
|
29244
29268
|
"unset"
|
|
29245
|
-
],
|
|
29269
|
+
], w = [
|
|
29246
29270
|
"alias",
|
|
29247
29271
|
"bind",
|
|
29248
29272
|
"builtin",
|
|
@@ -29260,47 +29284,49 @@ function bash(e) {
|
|
|
29260
29284
|
"read",
|
|
29261
29285
|
"readarray",
|
|
29262
29286
|
"source",
|
|
29287
|
+
"sudo",
|
|
29263
29288
|
"type",
|
|
29264
29289
|
"typeset",
|
|
29265
29290
|
"ulimit",
|
|
29266
29291
|
"unalias"
|
|
29267
|
-
],
|
|
29292
|
+
], T = /* @__PURE__ */ "autoload.bg.bindkey.bye.cap.chdir.clone.comparguments.compcall.compctl.compdescribe.compfiles.compgroups.compquote.comptags.comptry.compvalues.dirs.disable.disown.echotc.echoti.emulate.fc.fg.float.functions.getcap.getln.history.integer.jobs.kill.limit.log.noglob.popd.print.pushd.pushln.rehash.sched.setcap.setopt.stat.suspend.ttyctl.unfunction.unhash.unlimit.unsetopt.vared.wait.whence.where.which.zcompile.zformat.zftp.zle.zmodload.zparseopts.zprof.zpty.zregexparse.zsocket.zstyle.ztcp".split("."), E = /* @__PURE__ */ "chcon.chgrp.chown.chmod.cp.dd.df.dir.dircolors.ln.ls.mkdir.mkfifo.mknod.mktemp.mv.realpath.rm.rmdir.shred.sync.touch.truncate.vdir.b2sum.base32.base64.cat.cksum.comm.csplit.cut.expand.fmt.fold.head.join.md5sum.nl.numfmt.od.paste.ptx.pr.sha1sum.sha224sum.sha256sum.sha384sum.sha512sum.shuf.sort.split.sum.tac.tail.tr.tsort.unexpand.uniq.wc.arch.basename.chroot.date.dirname.du.echo.env.expr.factor.groups.hostid.id.link.logname.nice.nohup.nproc.pathchk.pinky.printenv.printf.pwd.readlink.runcon.seq.sleep.stat.stdbuf.stty.tee.test.timeout.tty.uname.unlink.uptime.users.who.whoami.yes".split(".");
|
|
29268
29293
|
return {
|
|
29269
29294
|
name: "Bash",
|
|
29270
|
-
aliases: ["sh"],
|
|
29295
|
+
aliases: ["sh", "zsh"],
|
|
29271
29296
|
keywords: {
|
|
29272
29297
|
$pattern: /\b[a-z][a-z0-9._-]+\b/,
|
|
29273
|
-
keyword:
|
|
29274
|
-
literal:
|
|
29298
|
+
keyword: y,
|
|
29299
|
+
literal: x,
|
|
29275
29300
|
built_in: [
|
|
29276
|
-
...
|
|
29277
|
-
...
|
|
29301
|
+
...C,
|
|
29302
|
+
...w,
|
|
29278
29303
|
"set",
|
|
29279
29304
|
"shopt",
|
|
29280
|
-
...
|
|
29281
|
-
...
|
|
29305
|
+
...T,
|
|
29306
|
+
...E
|
|
29282
29307
|
]
|
|
29283
29308
|
},
|
|
29284
29309
|
contains: [
|
|
29285
|
-
|
|
29310
|
+
g,
|
|
29286
29311
|
e.SHEBANG(),
|
|
29312
|
+
_,
|
|
29287
29313
|
f,
|
|
29288
|
-
u,
|
|
29289
|
-
e.HASH_COMMENT_MODE,
|
|
29290
29314
|
o,
|
|
29291
|
-
y,
|
|
29292
29315
|
s,
|
|
29316
|
+
S,
|
|
29293
29317
|
c,
|
|
29294
29318
|
l,
|
|
29319
|
+
u,
|
|
29320
|
+
d,
|
|
29295
29321
|
n
|
|
29296
29322
|
]
|
|
29297
29323
|
};
|
|
29298
29324
|
}
|
|
29299
29325
|
function python(e) {
|
|
29300
|
-
let t = e.regex, n = /[\p{XID_Start}_]\p{XID_Continue}*/u, r = /* @__PURE__ */ "and.as.assert.async.await.break.case.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.in.is.lambda.match.nonlocal|10.not.or.pass.raise.return.try.while.with.yield".split("."), i = {
|
|
29326
|
+
let t = e.regex, n = /[\p{XID_Start}_]\p{XID_Continue}*/u, r = /* @__PURE__ */ "and.as.assert.async.await.break.case.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.in.is.lambda.lazy.match.nonlocal|10.not.or.pass.raise.return.try.while.with.yield".split("."), i = {
|
|
29301
29327
|
$pattern: /[A-Za-z]\w+|__\w+__/,
|
|
29302
29328
|
keyword: r,
|
|
29303
|
-
built_in: /* @__PURE__ */ "__import__.abs.all.any.ascii.bin.bool.breakpoint.bytearray.bytes.callable.chr.classmethod.compile.complex.delattr.dict.dir.divmod.enumerate.eval.exec.filter.float.format.frozenset.getattr.globals.hasattr.hash.help.hex.id.input.int.isinstance.issubclass.iter.len.list.locals.map.max.memoryview.min.next.object.oct.open.ord.pow.print.property.range.repr.reversed.round.set.setattr.slice.sorted.staticmethod.str.sum.super.tuple.type.vars.zip".split("."),
|
|
29329
|
+
built_in: /* @__PURE__ */ "__import__.abs.aiter.all.anext.any.ascii.bin.bool.breakpoint.bytearray.bytes.callable.chr.classmethod.compile.complex.delattr.dict.dir.divmod.enumerate.eval.exec.filter.float.format.frozendict.frozenset.getattr.globals.hasattr.hash.help.hex.id.input.int.isinstance.issubclass.iter.len.list.locals.map.max.memoryview.min.next.object.oct.open.ord.pow.print.property.range.repr.reversed.round.sentinel.set.setattr.slice.sorted.staticmethod.str.sum.super.tuple.type.vars.zip".split("."),
|
|
29304
29330
|
literal: [
|
|
29305
29331
|
"__debug__",
|
|
29306
29332
|
"Ellipsis",
|
|
@@ -29353,7 +29379,7 @@ function python(e) {
|
|
|
29353
29379
|
relevance: 10
|
|
29354
29380
|
},
|
|
29355
29381
|
{
|
|
29356
|
-
begin: /([
|
|
29382
|
+
begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,
|
|
29357
29383
|
end: /'''/,
|
|
29358
29384
|
contains: [
|
|
29359
29385
|
e.BACKSLASH_ESCAPE,
|
|
@@ -29363,7 +29389,7 @@ function python(e) {
|
|
|
29363
29389
|
]
|
|
29364
29390
|
},
|
|
29365
29391
|
{
|
|
29366
|
-
begin: /([
|
|
29392
|
+
begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,
|
|
29367
29393
|
end: /"""/,
|
|
29368
29394
|
contains: [
|
|
29369
29395
|
e.BACKSLASH_ESCAPE,
|
|
@@ -29391,7 +29417,7 @@ function python(e) {
|
|
|
29391
29417
|
end: /"/
|
|
29392
29418
|
},
|
|
29393
29419
|
{
|
|
29394
|
-
begin: /([
|
|
29420
|
+
begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])'/,
|
|
29395
29421
|
end: /'/,
|
|
29396
29422
|
contains: [
|
|
29397
29423
|
e.BACKSLASH_ESCAPE,
|
|
@@ -29400,7 +29426,7 @@ function python(e) {
|
|
|
29400
29426
|
]
|
|
29401
29427
|
},
|
|
29402
29428
|
{
|
|
29403
|
-
begin: /([
|
|
29429
|
+
begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])"/,
|
|
29404
29430
|
end: /"/,
|
|
29405
29431
|
contains: [
|
|
29406
29432
|
e.BACKSLASH_ESCAPE,
|
|
@@ -29471,11 +29497,18 @@ function python(e) {
|
|
|
29471
29497
|
contains: [
|
|
29472
29498
|
o,
|
|
29473
29499
|
g,
|
|
29474
|
-
{
|
|
29500
|
+
{
|
|
29501
|
+
scope: "variable.language",
|
|
29502
|
+
match: /\bself\b/
|
|
29503
|
+
},
|
|
29475
29504
|
{
|
|
29476
29505
|
beginKeywords: "if",
|
|
29477
29506
|
relevance: 0
|
|
29478
29507
|
},
|
|
29508
|
+
{
|
|
29509
|
+
match: /\bor\b/,
|
|
29510
|
+
scope: "keyword"
|
|
29511
|
+
},
|
|
29479
29512
|
l,
|
|
29480
29513
|
_,
|
|
29481
29514
|
e.HASH_COMMENT_MODE,
|
|
@@ -29524,7 +29557,7 @@ function python(e) {
|
|
|
29524
29557
|
]
|
|
29525
29558
|
};
|
|
29526
29559
|
}
|
|
29527
|
-
var IDENT_RE = "[A-Za-z$_][0-9A-Za-z$_]*", KEYWORDS = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends".split("."), LITERALS = [
|
|
29560
|
+
var IDENT_RE = "[A-Za-z$_][0-9A-Za-z$_]*", KEYWORDS = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using".split("."), LITERALS = [
|
|
29528
29561
|
"true",
|
|
29529
29562
|
"false",
|
|
29530
29563
|
"null",
|
|
@@ -29568,6 +29601,7 @@ var IDENT_RE = "[A-Za-z$_][0-9A-Za-z$_]*", KEYWORDS = /* @__PURE__ */ "as.in.of.
|
|
|
29568
29601
|
"localStorage",
|
|
29569
29602
|
"sessionStorage",
|
|
29570
29603
|
"module",
|
|
29604
|
+
"self",
|
|
29571
29605
|
"global"
|
|
29572
29606
|
], BUILT_INS = [].concat(BUILT_IN_GLOBALS, TYPES, ERROR_TYPES);
|
|
29573
29607
|
function javascript$1(e) {
|
|
@@ -29622,7 +29656,7 @@ function javascript$1(e) {
|
|
|
29622
29656
|
keywords: c,
|
|
29623
29657
|
contains: []
|
|
29624
29658
|
}, _ = {
|
|
29625
|
-
begin: "html`",
|
|
29659
|
+
begin: ".?html`",
|
|
29626
29660
|
end: "",
|
|
29627
29661
|
starts: {
|
|
29628
29662
|
end: "`",
|
|
@@ -29631,7 +29665,7 @@ function javascript$1(e) {
|
|
|
29631
29665
|
subLanguage: "xml"
|
|
29632
29666
|
}
|
|
29633
29667
|
}, y = {
|
|
29634
|
-
begin: "css`",
|
|
29668
|
+
begin: ".?css`",
|
|
29635
29669
|
end: "",
|
|
29636
29670
|
starts: {
|
|
29637
29671
|
end: "`",
|
|
@@ -29640,7 +29674,7 @@ function javascript$1(e) {
|
|
|
29640
29674
|
subLanguage: "css"
|
|
29641
29675
|
}
|
|
29642
29676
|
}, x = {
|
|
29643
|
-
begin: "gql`",
|
|
29677
|
+
begin: ".?gql`",
|
|
29644
29678
|
end: "",
|
|
29645
29679
|
starts: {
|
|
29646
29680
|
end: "`",
|
|
@@ -29707,13 +29741,13 @@ function javascript$1(e) {
|
|
|
29707
29741
|
contains: ["self"].concat(w)
|
|
29708
29742
|
});
|
|
29709
29743
|
let T = [].concat(C, g.contains), E = T.concat([{
|
|
29710
|
-
begin:
|
|
29744
|
+
begin: /(\s*)\(/,
|
|
29711
29745
|
end: /\)/,
|
|
29712
29746
|
keywords: c,
|
|
29713
29747
|
contains: ["self"].concat(T)
|
|
29714
29748
|
}]), D = {
|
|
29715
29749
|
className: "params",
|
|
29716
|
-
begin:
|
|
29750
|
+
begin: /(\s*)\(/,
|
|
29717
29751
|
end: /\)/,
|
|
29718
29752
|
excludeBegin: !0,
|
|
29719
29753
|
excludeEnd: !0,
|
|
@@ -29781,8 +29815,9 @@ function javascript$1(e) {
|
|
|
29781
29815
|
match: t.concat(/\b/, N([
|
|
29782
29816
|
...BUILT_IN_GLOBALS,
|
|
29783
29817
|
"super",
|
|
29784
|
-
"import"
|
|
29785
|
-
|
|
29818
|
+
"import",
|
|
29819
|
+
"await"
|
|
29820
|
+
].map((e) => `${e}\\s*\\(`)), r, t.lookahead(/\s*\(/)),
|
|
29786
29821
|
className: "title.function",
|
|
29787
29822
|
relevance: 0
|
|
29788
29823
|
}, F = {
|
|
@@ -29834,7 +29869,7 @@ function javascript$1(e) {
|
|
|
29834
29869
|
PARAMS_CONTAINS: E,
|
|
29835
29870
|
CLASS_REFERENCE: k
|
|
29836
29871
|
},
|
|
29837
|
-
illegal: /#(?![$_A-z])/,
|
|
29872
|
+
illegal: /#(?![$_A-Za-z])/,
|
|
29838
29873
|
contains: [
|
|
29839
29874
|
e.SHEBANG({
|
|
29840
29875
|
label: "shebang",
|
|
@@ -29853,8 +29888,8 @@ function javascript$1(e) {
|
|
|
29853
29888
|
f,
|
|
29854
29889
|
k,
|
|
29855
29890
|
{
|
|
29856
|
-
|
|
29857
|
-
|
|
29891
|
+
scope: "attr",
|
|
29892
|
+
match: r + t.lookahead(":"),
|
|
29858
29893
|
relevance: 0
|
|
29859
29894
|
},
|
|
29860
29895
|
R,
|
|
@@ -29883,7 +29918,7 @@ function javascript$1(e) {
|
|
|
29883
29918
|
skip: !0
|
|
29884
29919
|
},
|
|
29885
29920
|
{
|
|
29886
|
-
begin:
|
|
29921
|
+
begin: /(\s*)\(/,
|
|
29887
29922
|
end: /\)/,
|
|
29888
29923
|
excludeBegin: !0,
|
|
29889
29924
|
excludeEnd: !0,
|
|
@@ -29958,7 +29993,7 @@ function javascript$1(e) {
|
|
|
29958
29993
|
};
|
|
29959
29994
|
}
|
|
29960
29995
|
function typescript(e) {
|
|
29961
|
-
let t = javascript$1(e),
|
|
29996
|
+
let t = e.regex, n = javascript$1(e), r = IDENT_RE, i = [
|
|
29962
29997
|
"any",
|
|
29963
29998
|
"void",
|
|
29964
29999
|
"number",
|
|
@@ -29969,29 +30004,33 @@ function typescript(e) {
|
|
|
29969
30004
|
"symbol",
|
|
29970
30005
|
"bigint",
|
|
29971
30006
|
"unknown"
|
|
29972
|
-
],
|
|
29973
|
-
|
|
29974
|
-
|
|
29975
|
-
|
|
29976
|
-
|
|
29977
|
-
|
|
30007
|
+
], o = {
|
|
30008
|
+
begin: [
|
|
30009
|
+
/namespace/,
|
|
30010
|
+
/\s+/,
|
|
30011
|
+
e.IDENT_RE
|
|
30012
|
+
],
|
|
30013
|
+
beginScope: {
|
|
30014
|
+
1: "keyword",
|
|
30015
|
+
3: "title.class"
|
|
30016
|
+
}
|
|
30017
|
+
}, s = {
|
|
29978
30018
|
beginKeywords: "interface",
|
|
29979
30019
|
end: /\{/,
|
|
29980
30020
|
excludeEnd: !0,
|
|
29981
30021
|
keywords: {
|
|
29982
30022
|
keyword: "interface extends",
|
|
29983
|
-
built_in:
|
|
30023
|
+
built_in: i
|
|
29984
30024
|
},
|
|
29985
|
-
contains: [
|
|
29986
|
-
},
|
|
30025
|
+
contains: [n.exports.CLASS_REFERENCE]
|
|
30026
|
+
}, c = {
|
|
29987
30027
|
className: "meta",
|
|
29988
30028
|
relevance: 10,
|
|
29989
30029
|
begin: /^\s*['"]use strict['"]/
|
|
29990
|
-
},
|
|
30030
|
+
}, l = {
|
|
29991
30031
|
$pattern: IDENT_RE,
|
|
29992
30032
|
keyword: KEYWORDS.concat([
|
|
29993
30033
|
"type",
|
|
29994
|
-
"namespace",
|
|
29995
30034
|
"interface",
|
|
29996
30035
|
"public",
|
|
29997
30036
|
"private",
|
|
@@ -30001,26 +30040,34 @@ function typescript(e) {
|
|
|
30001
30040
|
"abstract",
|
|
30002
30041
|
"readonly",
|
|
30003
30042
|
"enum",
|
|
30004
|
-
"override"
|
|
30043
|
+
"override",
|
|
30044
|
+
"satisfies"
|
|
30005
30045
|
]),
|
|
30006
30046
|
literal: LITERALS,
|
|
30007
|
-
built_in: BUILT_INS.concat(
|
|
30047
|
+
built_in: BUILT_INS.concat(i),
|
|
30008
30048
|
"variable.language": BUILT_IN_VARIABLES
|
|
30009
|
-
},
|
|
30049
|
+
}, u = {
|
|
30010
30050
|
className: "meta",
|
|
30011
|
-
begin: "@" +
|
|
30012
|
-
},
|
|
30051
|
+
begin: "@" + r
|
|
30052
|
+
}, d = (e, t, n) => {
|
|
30013
30053
|
let r = e.contains.findIndex((e) => e.label === t);
|
|
30014
30054
|
if (r === -1) throw Error("can not find mode to replace");
|
|
30015
30055
|
e.contains.splice(r, 1, n);
|
|
30016
30056
|
};
|
|
30017
|
-
Object.assign(
|
|
30018
|
-
|
|
30019
|
-
|
|
30020
|
-
|
|
30021
|
-
|
|
30022
|
-
|
|
30023
|
-
|
|
30057
|
+
Object.assign(n.keywords, l), n.exports.PARAMS_CONTAINS.push(u);
|
|
30058
|
+
let f = n.contains.find((e) => e.scope === "attr"), g = Object.assign({}, f, { match: t.concat(r, t.lookahead(/\s*\?:/)) });
|
|
30059
|
+
n.exports.PARAMS_CONTAINS.push([
|
|
30060
|
+
n.exports.CLASS_REFERENCE,
|
|
30061
|
+
f,
|
|
30062
|
+
g
|
|
30063
|
+
]), n.contains = n.contains.concat([
|
|
30064
|
+
u,
|
|
30065
|
+
o,
|
|
30066
|
+
s,
|
|
30067
|
+
g
|
|
30068
|
+
]), d(n, "shebang", e.SHEBANG()), d(n, "use_strict", c);
|
|
30069
|
+
let _ = n.contains.find((e) => e.label === "func.def");
|
|
30070
|
+
return _.relevance = 0, Object.assign(n, {
|
|
30024
30071
|
name: "TypeScript",
|
|
30025
30072
|
aliases: [
|
|
30026
30073
|
"ts",
|
|
@@ -30028,7 +30075,7 @@ function typescript(e) {
|
|
|
30028
30075
|
"mts",
|
|
30029
30076
|
"cts"
|
|
30030
30077
|
]
|
|
30031
|
-
}),
|
|
30078
|
+
}), n;
|
|
30032
30079
|
}
|
|
30033
30080
|
var import_markdown_it = /* @__PURE__ */ __toESM(require_markdown_it()), VueMarkdown_default = /* @__PURE__ */ defineComponent({
|
|
30034
30081
|
name: "VueMarkdown",
|