@kong-ui-public/document-viewer 2.6.5 → 2.6.7-pr.4063.bf809a10e.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/document-viewer.es.js +1064 -12
- package/dist/document-viewer.umd.js +16 -16
- package/dist/prism-bash.min-BSY2OtLX.js +174 -0
- package/dist/prism-css.min-Dvuxzq5c.js +54 -0
- package/dist/prism-docker.min-Ch3_J8xI.js +74 -0
- package/dist/prism-go.min-DpuveEXM.js +20 -0
- package/dist/prism-http.min-BDgs53mG.js +107 -0
- package/dist/prism-javascript.min-TTu9gTO1.js +101 -0
- package/dist/prism-jq.min-wjT5eiX4.js +57 -0
- package/dist/prism-json.min-BRMWDas8.js +25 -0
- package/dist/prism-log.min-CcmZYCOq.js +97 -0
- package/dist/prism-lua.min-CL-6tP_v.js +16 -0
- package/dist/prism-makefile.min-CfFQPrwo.js +28 -0
- package/dist/prism-markdown.min-CHFT4_Ei.js +240 -0
- package/dist/prism-python.min-BMa8XQns.js +59 -0
- package/dist/prism-regex.min-KRUvJnhz.js +78 -0
- package/dist/prism-rest.min-C38D2pbN.js +151 -0
- package/dist/prism-rust.min-D7QzzLfK.js +91 -0
- package/dist/prism-scss.min-Bg9jNB2R.js +52 -0
- package/dist/prism-sql.min-BufanzXb.js +28 -0
- package/dist/prism-typescript.min-Ck6Xh8q0.js +37 -0
- package/dist/prism-xml-doc.min-CcH35smE.js +18 -0
- package/dist/prism-yaml.min-CkLxSivi.js +67 -0
- package/dist/style.css +2 -1
- package/package.json +3 -3
- package/dist/index-Dm0akurK.js +0 -1632
- package/dist/prism-bash.min-HHIMdNJ_.js +0 -6
- package/dist/prism-css.min-BgYu_Rzi.js +0 -7
- package/dist/prism-docker.min-Cc3clOcH.js +0 -22
- package/dist/prism-go.min-C7UmK6TW.js +0 -1
- package/dist/prism-http.min-CP9t4YhN.js +0 -22
- package/dist/prism-javascript.min-CEqHqgbm.js +0 -8
- package/dist/prism-jq.min-DSs6jyUo.js +0 -36
- package/dist/prism-json.min-B1GJqK1k.js +0 -1
- package/dist/prism-log.min-SDopTpKN.js +0 -1
- package/dist/prism-lua.min-DwRnUVfS.js +0 -1
- package/dist/prism-makefile.min-DyutknhE.js +0 -1
- package/dist/prism-markdown.min-D9nktPdA.js +0 -60
- package/dist/prism-python.min-CwGdPpz_.js +0 -29
- package/dist/prism-regex.min-BqTi0NTp.js +0 -4
- package/dist/prism-rest.min-B6veHRJF.js +0 -1
- package/dist/prism-rust.min-Ccuw6kc-.js +0 -36
- package/dist/prism-scss.min-DsoMAB2f.js +0 -29
- package/dist/prism-sql.min-BHXzX-c_.js +0 -1
- package/dist/prism-typescript.min-fwm2QbJz.js +0 -33
- package/dist/prism-xml-doc.min-BGai1RKL.js +0 -7
- package/dist/prism-yaml.min-C3Yo-ypE.js +0 -28
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
// ../../../node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-log.min.js
|
|
2
|
+
Prism.languages.log = {
|
|
3
|
+
string: {
|
|
4
|
+
pattern: /"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,
|
|
5
|
+
greedy: !0
|
|
6
|
+
},
|
|
7
|
+
exception: {
|
|
8
|
+
pattern: /(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,
|
|
9
|
+
lookbehind: !0,
|
|
10
|
+
greedy: !0,
|
|
11
|
+
alias: ["javastacktrace", "language-javastacktrace"],
|
|
12
|
+
inside: Prism.languages.javastacktrace || {
|
|
13
|
+
keyword: /\bat\b/,
|
|
14
|
+
function: /[a-z_][\w$]*(?=\()/,
|
|
15
|
+
punctuation: /[.:()]/
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
level: [
|
|
19
|
+
{
|
|
20
|
+
pattern: /\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,
|
|
21
|
+
alias: ["error", "important"]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
pattern: /\b(?:WARN|WARNING|WRN)\b/,
|
|
25
|
+
alias: ["warning", "important"]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
pattern: /\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,
|
|
29
|
+
alias: ["info", "keyword"]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
pattern: /\b(?:DBG|DEBUG|FINE)\b/,
|
|
33
|
+
alias: ["debug", "keyword"]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
pattern: /\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,
|
|
37
|
+
alias: ["trace", "comment"]
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
property: {
|
|
41
|
+
pattern: /((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,
|
|
42
|
+
lookbehind: !0
|
|
43
|
+
},
|
|
44
|
+
separator: {
|
|
45
|
+
pattern: /(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,
|
|
46
|
+
lookbehind: !0,
|
|
47
|
+
alias: "comment"
|
|
48
|
+
},
|
|
49
|
+
url: /\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,
|
|
50
|
+
email: {
|
|
51
|
+
pattern: /(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,
|
|
52
|
+
lookbehind: !0,
|
|
53
|
+
alias: "url"
|
|
54
|
+
},
|
|
55
|
+
"ip-address": {
|
|
56
|
+
pattern: /\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,
|
|
57
|
+
alias: "constant"
|
|
58
|
+
},
|
|
59
|
+
"mac-address": {
|
|
60
|
+
pattern: /\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,
|
|
61
|
+
alias: "constant"
|
|
62
|
+
},
|
|
63
|
+
domain: {
|
|
64
|
+
pattern: /(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,
|
|
65
|
+
lookbehind: !0,
|
|
66
|
+
alias: "constant"
|
|
67
|
+
},
|
|
68
|
+
uuid: {
|
|
69
|
+
pattern: /\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,
|
|
70
|
+
alias: "constant"
|
|
71
|
+
},
|
|
72
|
+
hash: {
|
|
73
|
+
pattern: /\b(?:[a-f0-9]{32}){1,2}\b/i,
|
|
74
|
+
alias: "constant"
|
|
75
|
+
},
|
|
76
|
+
"file-path": {
|
|
77
|
+
pattern: /\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,
|
|
78
|
+
lookbehind: !0,
|
|
79
|
+
greedy: !0,
|
|
80
|
+
alias: "string"
|
|
81
|
+
},
|
|
82
|
+
date: {
|
|
83
|
+
pattern: RegExp("\\b\\d{4}[-/]\\d{2}[-/]\\d{2}(?:T(?=\\d{1,2}:)|(?=\\s\\d{1,2}:))|\\b\\d{1,4}[-/ ](?:\\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\\d{2,4}T?\\b|\\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\\s{1,2}\\d{1,2}\\b", "i"),
|
|
84
|
+
alias: "number"
|
|
85
|
+
},
|
|
86
|
+
time: {
|
|
87
|
+
pattern: /\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,
|
|
88
|
+
alias: "number"
|
|
89
|
+
},
|
|
90
|
+
boolean: /\b(?:false|null|true)\b/i,
|
|
91
|
+
number: {
|
|
92
|
+
pattern: /(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,
|
|
93
|
+
lookbehind: !0
|
|
94
|
+
},
|
|
95
|
+
operator: /[;:?<=>~/@!$%&+\-|^(){}*#]/,
|
|
96
|
+
punctuation: /[\[\].,]/
|
|
97
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// ../../../node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-lua.min.js
|
|
2
|
+
Prism.languages.lua = {
|
|
3
|
+
comment: /^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,
|
|
4
|
+
string: {
|
|
5
|
+
pattern: /(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,
|
|
6
|
+
greedy: !0
|
|
7
|
+
},
|
|
8
|
+
number: /\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,
|
|
9
|
+
keyword: /\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,
|
|
10
|
+
function: /(?!\d)\w+(?=\s*(?:[({]))/,
|
|
11
|
+
operator: [/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/, {
|
|
12
|
+
pattern: /(^|[^.])\.\.(?!\.)/,
|
|
13
|
+
lookbehind: !0
|
|
14
|
+
}],
|
|
15
|
+
punctuation: /[\[\](){},;]|\.+|:+/
|
|
16
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// ../../../node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-makefile.min.js
|
|
2
|
+
Prism.languages.makefile = {
|
|
3
|
+
comment: {
|
|
4
|
+
pattern: /(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,
|
|
5
|
+
lookbehind: !0
|
|
6
|
+
},
|
|
7
|
+
string: {
|
|
8
|
+
pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
|
|
9
|
+
greedy: !0
|
|
10
|
+
},
|
|
11
|
+
"builtin-target": {
|
|
12
|
+
pattern: /\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,
|
|
13
|
+
alias: "builtin"
|
|
14
|
+
},
|
|
15
|
+
target: {
|
|
16
|
+
pattern: /^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,
|
|
17
|
+
alias: "symbol",
|
|
18
|
+
inside: { variable: /\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/ }
|
|
19
|
+
},
|
|
20
|
+
variable: /\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,
|
|
21
|
+
keyword: /-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,
|
|
22
|
+
function: {
|
|
23
|
+
pattern: /(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,
|
|
24
|
+
lookbehind: !0
|
|
25
|
+
},
|
|
26
|
+
operator: /(?:::|[?:+!])?=|[|@]/,
|
|
27
|
+
punctuation: /[:;(){}]/
|
|
28
|
+
};
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
// ../../../node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-markdown.min.js
|
|
2
|
+
(function(e) {
|
|
3
|
+
function t(e) {
|
|
4
|
+
return e = e.replace(/<inner>/g, (function() {
|
|
5
|
+
return "(?:\\\\.|[^\\\\\n\r]|(?:\n|\r\n?)(?![\r\n]))";
|
|
6
|
+
})), RegExp("((?:^|[^\\\\])(?:\\\\{2})*)(?:" + e + ")");
|
|
7
|
+
}
|
|
8
|
+
var n = "(?:\\\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\\\|\r\n`])+", r = "\\|?__(?:\\|__)+\\|?(?:(?:\n|\r\n?)|(?![^]))".replace(/__/g, (function() {
|
|
9
|
+
return n;
|
|
10
|
+
})), i = "\\|?[ ]*:?-{3,}:?[ ]*(?:\\|[ ]*:?-{3,}:?[ ]*)+\\|?(?:\n|\r\n?)";
|
|
11
|
+
e.languages.markdown = e.languages.extend("markup", {}), e.languages.insertBefore("markdown", "prolog", {
|
|
12
|
+
"front-matter-block": {
|
|
13
|
+
pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,
|
|
14
|
+
lookbehind: !0,
|
|
15
|
+
greedy: !0,
|
|
16
|
+
inside: {
|
|
17
|
+
punctuation: /^---|---$/,
|
|
18
|
+
"front-matter": {
|
|
19
|
+
pattern: /\S+(?:\s+\S+)*/,
|
|
20
|
+
alias: ["yaml", "language-yaml"],
|
|
21
|
+
inside: e.languages.yaml
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
blockquote: {
|
|
26
|
+
pattern: /^>(?:[\t ]*>)*/m,
|
|
27
|
+
alias: "punctuation"
|
|
28
|
+
},
|
|
29
|
+
table: {
|
|
30
|
+
pattern: RegExp("^" + r + i + "(?:" + r + ")*", "m"),
|
|
31
|
+
inside: {
|
|
32
|
+
"table-data-rows": {
|
|
33
|
+
pattern: RegExp("^(" + r + i + ")(?:" + r + ")*$"),
|
|
34
|
+
lookbehind: !0,
|
|
35
|
+
inside: {
|
|
36
|
+
"table-data": {
|
|
37
|
+
pattern: RegExp(n),
|
|
38
|
+
inside: e.languages.markdown
|
|
39
|
+
},
|
|
40
|
+
punctuation: /\|/
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"table-line": {
|
|
44
|
+
pattern: RegExp("^(" + r + ")" + i + "$"),
|
|
45
|
+
lookbehind: !0,
|
|
46
|
+
inside: { punctuation: /\||:?-{3,}:?/ }
|
|
47
|
+
},
|
|
48
|
+
"table-header-row": {
|
|
49
|
+
pattern: RegExp("^" + r + "$"),
|
|
50
|
+
inside: {
|
|
51
|
+
"table-header": {
|
|
52
|
+
pattern: RegExp(n),
|
|
53
|
+
alias: "important",
|
|
54
|
+
inside: e.languages.markdown
|
|
55
|
+
},
|
|
56
|
+
punctuation: /\|/
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
code: [{
|
|
62
|
+
pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,
|
|
63
|
+
lookbehind: !0,
|
|
64
|
+
alias: "keyword"
|
|
65
|
+
}, {
|
|
66
|
+
pattern: /^```[\s\S]*?^```$/m,
|
|
67
|
+
greedy: !0,
|
|
68
|
+
inside: {
|
|
69
|
+
"code-block": {
|
|
70
|
+
pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,
|
|
71
|
+
lookbehind: !0
|
|
72
|
+
},
|
|
73
|
+
"code-language": {
|
|
74
|
+
pattern: /^(```).+/,
|
|
75
|
+
lookbehind: !0
|
|
76
|
+
},
|
|
77
|
+
punctuation: /```/
|
|
78
|
+
}
|
|
79
|
+
}],
|
|
80
|
+
title: [{
|
|
81
|
+
pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,
|
|
82
|
+
alias: "important",
|
|
83
|
+
inside: { punctuation: /==+$|--+$/ }
|
|
84
|
+
}, {
|
|
85
|
+
pattern: /(^\s*)#.+/m,
|
|
86
|
+
lookbehind: !0,
|
|
87
|
+
alias: "important",
|
|
88
|
+
inside: { punctuation: /^#+|#+$/ }
|
|
89
|
+
}],
|
|
90
|
+
hr: {
|
|
91
|
+
pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,
|
|
92
|
+
lookbehind: !0,
|
|
93
|
+
alias: "punctuation"
|
|
94
|
+
},
|
|
95
|
+
list: {
|
|
96
|
+
pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,
|
|
97
|
+
lookbehind: !0,
|
|
98
|
+
alias: "punctuation"
|
|
99
|
+
},
|
|
100
|
+
"url-reference": {
|
|
101
|
+
pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,
|
|
102
|
+
inside: {
|
|
103
|
+
variable: {
|
|
104
|
+
pattern: /^(!?\[)[^\]]+/,
|
|
105
|
+
lookbehind: !0
|
|
106
|
+
},
|
|
107
|
+
string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,
|
|
108
|
+
punctuation: /^[\[\]!:]|[<>]/
|
|
109
|
+
},
|
|
110
|
+
alias: "url"
|
|
111
|
+
},
|
|
112
|
+
bold: {
|
|
113
|
+
pattern: t("\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*"),
|
|
114
|
+
lookbehind: !0,
|
|
115
|
+
greedy: !0,
|
|
116
|
+
inside: {
|
|
117
|
+
content: {
|
|
118
|
+
pattern: /(^..)[\s\S]+(?=..$)/,
|
|
119
|
+
lookbehind: !0,
|
|
120
|
+
inside: {}
|
|
121
|
+
},
|
|
122
|
+
punctuation: /\*\*|__/
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
italic: {
|
|
126
|
+
pattern: t("\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*"),
|
|
127
|
+
lookbehind: !0,
|
|
128
|
+
greedy: !0,
|
|
129
|
+
inside: {
|
|
130
|
+
content: {
|
|
131
|
+
pattern: /(^.)[\s\S]+(?=.$)/,
|
|
132
|
+
lookbehind: !0,
|
|
133
|
+
inside: {}
|
|
134
|
+
},
|
|
135
|
+
punctuation: /[*_]/
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
strike: {
|
|
139
|
+
pattern: t("(~~?)(?:(?!~)<inner>)+\\2"),
|
|
140
|
+
lookbehind: !0,
|
|
141
|
+
greedy: !0,
|
|
142
|
+
inside: {
|
|
143
|
+
content: {
|
|
144
|
+
pattern: /(^~~?)[\s\S]+(?=\1$)/,
|
|
145
|
+
lookbehind: !0,
|
|
146
|
+
inside: {}
|
|
147
|
+
},
|
|
148
|
+
punctuation: /~~?/
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"code-snippet": {
|
|
152
|
+
pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,
|
|
153
|
+
lookbehind: !0,
|
|
154
|
+
greedy: !0,
|
|
155
|
+
alias: ["code", "keyword"]
|
|
156
|
+
},
|
|
157
|
+
url: {
|
|
158
|
+
pattern: t("!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[ ]+\"(?:\\\\.|[^\"\\\\])*\")?\\)|[ ]?\\[(?:(?!\\])<inner>)+\\])"),
|
|
159
|
+
lookbehind: !0,
|
|
160
|
+
greedy: !0,
|
|
161
|
+
inside: {
|
|
162
|
+
operator: /^!/,
|
|
163
|
+
content: {
|
|
164
|
+
pattern: /(^\[)[^\]]+(?=\])/,
|
|
165
|
+
lookbehind: !0,
|
|
166
|
+
inside: {}
|
|
167
|
+
},
|
|
168
|
+
variable: {
|
|
169
|
+
pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/,
|
|
170
|
+
lookbehind: !0
|
|
171
|
+
},
|
|
172
|
+
url: {
|
|
173
|
+
pattern: /(^\]\()[^\s)]+/,
|
|
174
|
+
lookbehind: !0
|
|
175
|
+
},
|
|
176
|
+
string: {
|
|
177
|
+
pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,
|
|
178
|
+
lookbehind: !0
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}), [
|
|
183
|
+
"url",
|
|
184
|
+
"bold",
|
|
185
|
+
"italic",
|
|
186
|
+
"strike"
|
|
187
|
+
].forEach((function(t) {
|
|
188
|
+
[
|
|
189
|
+
"url",
|
|
190
|
+
"bold",
|
|
191
|
+
"italic",
|
|
192
|
+
"strike",
|
|
193
|
+
"code-snippet"
|
|
194
|
+
].forEach((function(n) {
|
|
195
|
+
t !== n && (e.languages.markdown[t].inside.content.inside[n] = e.languages.markdown[n]);
|
|
196
|
+
}));
|
|
197
|
+
})), e.hooks.add("after-tokenize", (function(e) {
|
|
198
|
+
e.language !== "markdown" && e.language !== "md" || function e(t) {
|
|
199
|
+
if (t && typeof t != "string") for (var n = 0, r = t.length; n < r; n++) {
|
|
200
|
+
var i = t[n];
|
|
201
|
+
if (i.type === "code") {
|
|
202
|
+
var a = i.content[1], o = i.content[3];
|
|
203
|
+
if (a && o && a.type === "code-language" && o.type === "code-block" && typeof a.content == "string") {
|
|
204
|
+
var s = a.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp"), c = "language-" + (s = (/[a-z][\w-]*/i.exec(s) || [""])[0].toLowerCase());
|
|
205
|
+
o.alias ? typeof o.alias == "string" ? o.alias = [o.alias, c] : o.alias.push(c) : o.alias = [c];
|
|
206
|
+
}
|
|
207
|
+
} else e(i.content);
|
|
208
|
+
}
|
|
209
|
+
}(e.tokens);
|
|
210
|
+
})), e.hooks.add("wrap", (function(t) {
|
|
211
|
+
if (t.type === "code-block") {
|
|
212
|
+
for (var n = "", r = 0, i = t.classes.length; r < i; r++) {
|
|
213
|
+
var c = t.classes[r], l = /language-(.+)/.exec(c);
|
|
214
|
+
if (l) {
|
|
215
|
+
n = l[1];
|
|
216
|
+
break;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
var u = e.languages[n];
|
|
220
|
+
if (u) t.content = e.highlight(t.content.replace(a, "").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, (function(e, t) {
|
|
221
|
+
var n;
|
|
222
|
+
return (t = t.toLowerCase())[0] === "#" ? (n = t[1] === "x" ? parseInt(t.slice(2), 16) : Number(t.slice(1)), s(n)) : o[t] || e;
|
|
223
|
+
})), u, n);
|
|
224
|
+
else if (n && n !== "none" && e.plugins.autoloader) {
|
|
225
|
+
var d = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(0x2386f26fc10000 * Math.random());
|
|
226
|
+
t.attributes.id = d, e.plugins.autoloader.loadLanguages(n, (function() {
|
|
227
|
+
var t = document.getElementById(d);
|
|
228
|
+
t && (t.innerHTML = e.highlight(t.textContent, e.languages[n], n));
|
|
229
|
+
}));
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}));
|
|
233
|
+
var a = RegExp(e.languages.markup.tag.pattern.source, "gi"), o = {
|
|
234
|
+
amp: "&",
|
|
235
|
+
lt: "<",
|
|
236
|
+
gt: ">",
|
|
237
|
+
quot: "\""
|
|
238
|
+
}, s = String.fromCodePoint || String.fromCharCode;
|
|
239
|
+
e.languages.md = e.languages.markdown;
|
|
240
|
+
})(Prism);
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// ../../../node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-python.min.js
|
|
2
|
+
Prism.languages.python = {
|
|
3
|
+
comment: {
|
|
4
|
+
pattern: /(^|[^\\])#.*/,
|
|
5
|
+
lookbehind: !0,
|
|
6
|
+
greedy: !0
|
|
7
|
+
},
|
|
8
|
+
"string-interpolation": {
|
|
9
|
+
pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,
|
|
10
|
+
greedy: !0,
|
|
11
|
+
inside: {
|
|
12
|
+
interpolation: {
|
|
13
|
+
pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,
|
|
14
|
+
lookbehind: !0,
|
|
15
|
+
inside: {
|
|
16
|
+
"format-spec": {
|
|
17
|
+
pattern: /(:)[^:(){}]+(?=\}$)/,
|
|
18
|
+
lookbehind: !0
|
|
19
|
+
},
|
|
20
|
+
"conversion-option": {
|
|
21
|
+
pattern: //,
|
|
22
|
+
alias: "punctuation"
|
|
23
|
+
},
|
|
24
|
+
rest: null
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
string: /[\s\S]+/
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"triple-quoted-string": {
|
|
31
|
+
pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,
|
|
32
|
+
greedy: !0,
|
|
33
|
+
alias: "string"
|
|
34
|
+
},
|
|
35
|
+
string: {
|
|
36
|
+
pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,
|
|
37
|
+
greedy: !0
|
|
38
|
+
},
|
|
39
|
+
function: {
|
|
40
|
+
pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,
|
|
41
|
+
lookbehind: !0
|
|
42
|
+
},
|
|
43
|
+
"class-name": {
|
|
44
|
+
pattern: /(\bclass\s+)\w+/i,
|
|
45
|
+
lookbehind: !0
|
|
46
|
+
},
|
|
47
|
+
decorator: {
|
|
48
|
+
pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m,
|
|
49
|
+
lookbehind: !0,
|
|
50
|
+
alias: ["annotation", "punctuation"],
|
|
51
|
+
inside: { punctuation: /\./ }
|
|
52
|
+
},
|
|
53
|
+
keyword: /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,
|
|
54
|
+
builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,
|
|
55
|
+
boolean: /\b(?:False|None|True)\b/,
|
|
56
|
+
number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,
|
|
57
|
+
operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,
|
|
58
|
+
punctuation: /[{}[\];(),.:]/
|
|
59
|
+
}, Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest = Prism.languages.python, Prism.languages.py = Prism.languages.python;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// ../../../node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-regex.min.js
|
|
2
|
+
(function(e) {
|
|
3
|
+
var t = {
|
|
4
|
+
pattern: /\\[\\(){}[\]^$+*?|.]/,
|
|
5
|
+
alias: "escape"
|
|
6
|
+
}, n = /\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/, r = "(?:[^\\\\-]|" + n.source + ")", i = RegExp(r + "-" + r), a = {
|
|
7
|
+
pattern: /(<|')[^<>']+(?=[>']$)/,
|
|
8
|
+
lookbehind: !0,
|
|
9
|
+
alias: "variable"
|
|
10
|
+
};
|
|
11
|
+
e.languages.regex = {
|
|
12
|
+
"char-class": {
|
|
13
|
+
pattern: /((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,
|
|
14
|
+
lookbehind: !0,
|
|
15
|
+
inside: {
|
|
16
|
+
"char-class-negation": {
|
|
17
|
+
pattern: /(^\[)\^/,
|
|
18
|
+
lookbehind: !0,
|
|
19
|
+
alias: "operator"
|
|
20
|
+
},
|
|
21
|
+
"char-class-punctuation": {
|
|
22
|
+
pattern: /^\[|\]$/,
|
|
23
|
+
alias: "punctuation"
|
|
24
|
+
},
|
|
25
|
+
range: {
|
|
26
|
+
pattern: i,
|
|
27
|
+
inside: {
|
|
28
|
+
escape: n,
|
|
29
|
+
"range-punctuation": {
|
|
30
|
+
pattern: /-/,
|
|
31
|
+
alias: "operator"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"special-escape": t,
|
|
36
|
+
"char-set": {
|
|
37
|
+
pattern: /\\[wsd]|\\p\{[^{}]+\}/i,
|
|
38
|
+
alias: "class-name"
|
|
39
|
+
},
|
|
40
|
+
escape: n
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"special-escape": t,
|
|
44
|
+
"char-set": {
|
|
45
|
+
pattern: /\.|\\[wsd]|\\p\{[^{}]+\}/i,
|
|
46
|
+
alias: "class-name"
|
|
47
|
+
},
|
|
48
|
+
backreference: [{
|
|
49
|
+
pattern: /\\(?![123][0-7]{2})[1-9]/,
|
|
50
|
+
alias: "keyword"
|
|
51
|
+
}, {
|
|
52
|
+
pattern: /\\k<[^<>']+>/,
|
|
53
|
+
alias: "keyword",
|
|
54
|
+
inside: { "group-name": a }
|
|
55
|
+
}],
|
|
56
|
+
anchor: {
|
|
57
|
+
pattern: /[$^]|\\[ABbGZz]/,
|
|
58
|
+
alias: "function"
|
|
59
|
+
},
|
|
60
|
+
escape: n,
|
|
61
|
+
group: [{
|
|
62
|
+
pattern: /\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,
|
|
63
|
+
alias: "punctuation",
|
|
64
|
+
inside: { "group-name": a }
|
|
65
|
+
}, {
|
|
66
|
+
pattern: /\)/,
|
|
67
|
+
alias: "punctuation"
|
|
68
|
+
}],
|
|
69
|
+
quantifier: {
|
|
70
|
+
pattern: /(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,
|
|
71
|
+
alias: "number"
|
|
72
|
+
},
|
|
73
|
+
alternation: {
|
|
74
|
+
pattern: /\|/,
|
|
75
|
+
alias: "keyword"
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
})(Prism);
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
// ../../../node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-rest.min.js
|
|
2
|
+
Prism.languages.rest = {
|
|
3
|
+
table: [{
|
|
4
|
+
pattern: /(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,
|
|
5
|
+
lookbehind: !0,
|
|
6
|
+
inside: { punctuation: /\||(?:\+[=-]+)+\+/ }
|
|
7
|
+
}, {
|
|
8
|
+
pattern: /(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,
|
|
9
|
+
lookbehind: !0,
|
|
10
|
+
inside: { punctuation: /[=-]+/ }
|
|
11
|
+
}],
|
|
12
|
+
"substitution-def": {
|
|
13
|
+
pattern: /(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,
|
|
14
|
+
lookbehind: !0,
|
|
15
|
+
inside: {
|
|
16
|
+
substitution: {
|
|
17
|
+
pattern: /^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,
|
|
18
|
+
alias: "attr-value",
|
|
19
|
+
inside: { punctuation: /^\||\|$/ }
|
|
20
|
+
},
|
|
21
|
+
directive: {
|
|
22
|
+
pattern: /( )(?! )[^:]+::/,
|
|
23
|
+
lookbehind: !0,
|
|
24
|
+
alias: "function",
|
|
25
|
+
inside: { punctuation: /::$/ }
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"link-target": [{
|
|
30
|
+
pattern: /(^[\t ]*\.\. )\[[^\]]+\]/m,
|
|
31
|
+
lookbehind: !0,
|
|
32
|
+
alias: "string",
|
|
33
|
+
inside: { punctuation: /^\[|\]$/ }
|
|
34
|
+
}, {
|
|
35
|
+
pattern: /(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,
|
|
36
|
+
lookbehind: !0,
|
|
37
|
+
alias: "string",
|
|
38
|
+
inside: { punctuation: /^_|:$/ }
|
|
39
|
+
}],
|
|
40
|
+
directive: {
|
|
41
|
+
pattern: /(^[\t ]*\.\. )[^:]+::/m,
|
|
42
|
+
lookbehind: !0,
|
|
43
|
+
alias: "function",
|
|
44
|
+
inside: { punctuation: /::$/ }
|
|
45
|
+
},
|
|
46
|
+
comment: {
|
|
47
|
+
pattern: /(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,
|
|
48
|
+
lookbehind: !0
|
|
49
|
+
},
|
|
50
|
+
title: [{
|
|
51
|
+
pattern: /^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,
|
|
52
|
+
inside: {
|
|
53
|
+
punctuation: /^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,
|
|
54
|
+
important: /.+/
|
|
55
|
+
}
|
|
56
|
+
}, {
|
|
57
|
+
pattern: /(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,
|
|
58
|
+
lookbehind: !0,
|
|
59
|
+
inside: {
|
|
60
|
+
punctuation: /[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,
|
|
61
|
+
important: /.+/
|
|
62
|
+
}
|
|
63
|
+
}],
|
|
64
|
+
hr: {
|
|
65
|
+
pattern: /((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,
|
|
66
|
+
lookbehind: !0,
|
|
67
|
+
alias: "punctuation"
|
|
68
|
+
},
|
|
69
|
+
field: {
|
|
70
|
+
pattern: /(^[\t ]*):[^:\r\n]+:(?= )/m,
|
|
71
|
+
lookbehind: !0,
|
|
72
|
+
alias: "attr-name"
|
|
73
|
+
},
|
|
74
|
+
"command-line-option": {
|
|
75
|
+
pattern: /(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,
|
|
76
|
+
lookbehind: !0,
|
|
77
|
+
alias: "symbol"
|
|
78
|
+
},
|
|
79
|
+
"literal-block": {
|
|
80
|
+
pattern: /::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,
|
|
81
|
+
inside: { "literal-block-punctuation": {
|
|
82
|
+
pattern: /^::/,
|
|
83
|
+
alias: "punctuation"
|
|
84
|
+
} }
|
|
85
|
+
},
|
|
86
|
+
"quoted-literal-block": {
|
|
87
|
+
pattern: /::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,
|
|
88
|
+
inside: { "literal-block-punctuation": {
|
|
89
|
+
pattern: /^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,
|
|
90
|
+
alias: "punctuation"
|
|
91
|
+
} }
|
|
92
|
+
},
|
|
93
|
+
"list-bullet": {
|
|
94
|
+
pattern: /(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,
|
|
95
|
+
lookbehind: !0,
|
|
96
|
+
alias: "punctuation"
|
|
97
|
+
},
|
|
98
|
+
"doctest-block": {
|
|
99
|
+
pattern: /(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,
|
|
100
|
+
lookbehind: !0,
|
|
101
|
+
inside: { punctuation: /^>>>/ }
|
|
102
|
+
},
|
|
103
|
+
inline: [{
|
|
104
|
+
pattern: /(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,
|
|
105
|
+
lookbehind: !0,
|
|
106
|
+
inside: {
|
|
107
|
+
bold: {
|
|
108
|
+
pattern: /(^\*\*).+(?=\*\*$)/,
|
|
109
|
+
lookbehind: !0
|
|
110
|
+
},
|
|
111
|
+
italic: {
|
|
112
|
+
pattern: /(^\*).+(?=\*$)/,
|
|
113
|
+
lookbehind: !0
|
|
114
|
+
},
|
|
115
|
+
"inline-literal": {
|
|
116
|
+
pattern: /(^``).+(?=``$)/,
|
|
117
|
+
lookbehind: !0,
|
|
118
|
+
alias: "symbol"
|
|
119
|
+
},
|
|
120
|
+
role: {
|
|
121
|
+
pattern: /^:[^:]+:|:[^:]+:$/,
|
|
122
|
+
alias: "function",
|
|
123
|
+
inside: { punctuation: /^:|:$/ }
|
|
124
|
+
},
|
|
125
|
+
"interpreted-text": {
|
|
126
|
+
pattern: /(^`).+(?=`$)/,
|
|
127
|
+
lookbehind: !0,
|
|
128
|
+
alias: "attr-value"
|
|
129
|
+
},
|
|
130
|
+
substitution: {
|
|
131
|
+
pattern: /(^\|).+(?=\|$)/,
|
|
132
|
+
lookbehind: !0,
|
|
133
|
+
alias: "attr-value"
|
|
134
|
+
},
|
|
135
|
+
punctuation: /\*\*?|``?|\|/
|
|
136
|
+
}
|
|
137
|
+
}],
|
|
138
|
+
link: [{
|
|
139
|
+
pattern: /\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,
|
|
140
|
+
alias: "string",
|
|
141
|
+
inside: { punctuation: /^\[|\]_$/ }
|
|
142
|
+
}, {
|
|
143
|
+
pattern: /(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,
|
|
144
|
+
alias: "string",
|
|
145
|
+
inside: { punctuation: /^_?`|`$|`?_?_$/ }
|
|
146
|
+
}],
|
|
147
|
+
punctuation: {
|
|
148
|
+
pattern: /(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,
|
|
149
|
+
lookbehind: !0
|
|
150
|
+
}
|
|
151
|
+
};
|