highsoft-ui 1.0.139 → 1.0.140

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.
@@ -0,0 +1,32 @@
1
+ e.displayName = "json", e.aliases = ["webmanifest"];
2
+ function e(e) {
3
+ e.languages.json = {
4
+ property: {
5
+ pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,
6
+ lookbehind: !0,
7
+ greedy: !0
8
+ },
9
+ string: {
10
+ pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,
11
+ lookbehind: !0,
12
+ greedy: !0
13
+ },
14
+ comment: {
15
+ pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,
16
+ greedy: !0
17
+ },
18
+ number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
19
+ punctuation: /[{}[\],]/,
20
+ operator: /:/,
21
+ boolean: /\b(?:false|true)\b/,
22
+ null: {
23
+ pattern: /\bnull\b/,
24
+ alias: "keyword"
25
+ }
26
+ }, e.languages.webmanifest = e.languages.json;
27
+ }
28
+ //#endregion
29
+ //#region node_modules/react-syntax-highlighter/dist/esm/languages/prism/json.js
30
+ var t = e;
31
+ //#endregion
32
+ export { t as default };
@@ -0,0 +1,5 @@
1
+ import { t as e } from "./jsx-hpSEtOci.js";
2
+ //#region node_modules/react-syntax-highlighter/dist/esm/languages/prism/jsx.js
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,182 @@
1
+ import { t as e } from "./markup-BhBs-nbv.js";
2
+ t.displayName = "clike", t.aliases = [];
3
+ function t(e) {
4
+ e.languages.clike = {
5
+ comment: [{
6
+ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
7
+ lookbehind: !0,
8
+ greedy: !0
9
+ }, {
10
+ pattern: /(^|[^\\:])\/\/.*/,
11
+ lookbehind: !0,
12
+ greedy: !0
13
+ }],
14
+ string: {
15
+ pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
16
+ greedy: !0
17
+ },
18
+ "class-name": {
19
+ pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
20
+ lookbehind: !0,
21
+ inside: { punctuation: /[.\\]/ }
22
+ },
23
+ keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
24
+ boolean: /\b(?:false|true)\b/,
25
+ function: /\b\w+(?=\()/,
26
+ number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
27
+ operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
28
+ punctuation: /[{}[\];(),.:]/
29
+ };
30
+ }
31
+ n.displayName = "javascript", n.aliases = ["js"];
32
+ function n(e) {
33
+ e.register(t), e.languages.javascript = e.languages.extend("clike", {
34
+ "class-name": [e.languages.clike["class-name"], {
35
+ pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
36
+ lookbehind: !0
37
+ }],
38
+ keyword: [{
39
+ pattern: /((?:^|\})\s*)catch\b/,
40
+ lookbehind: !0
41
+ }, {
42
+ pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
43
+ lookbehind: !0
44
+ }],
45
+ function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
46
+ number: {
47
+ pattern: RegExp("(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])"),
48
+ lookbehind: !0
49
+ },
50
+ operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
51
+ }), e.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, e.languages.insertBefore("javascript", "keyword", {
52
+ regex: {
53
+ pattern: RegExp("((?:^|[^$\\w\\xA0-\\uFFFF.\"'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))"),
54
+ lookbehind: !0,
55
+ greedy: !0,
56
+ inside: {
57
+ "regex-source": {
58
+ pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
59
+ lookbehind: !0,
60
+ alias: "language-regex",
61
+ inside: e.languages.regex
62
+ },
63
+ "regex-delimiter": /^\/|\/$/,
64
+ "regex-flags": /^[a-z]+$/
65
+ }
66
+ },
67
+ "function-variable": {
68
+ pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
69
+ alias: "function"
70
+ },
71
+ parameter: [
72
+ {
73
+ pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
74
+ lookbehind: !0,
75
+ inside: e.languages.javascript
76
+ },
77
+ {
78
+ pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
79
+ lookbehind: !0,
80
+ inside: e.languages.javascript
81
+ },
82
+ {
83
+ pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
84
+ lookbehind: !0,
85
+ inside: e.languages.javascript
86
+ },
87
+ {
88
+ pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
89
+ lookbehind: !0,
90
+ inside: e.languages.javascript
91
+ }
92
+ ],
93
+ constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/
94
+ }), e.languages.insertBefore("javascript", "string", {
95
+ hashbang: {
96
+ pattern: /^#!.*/,
97
+ greedy: !0,
98
+ alias: "comment"
99
+ },
100
+ "template-string": {
101
+ pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
102
+ greedy: !0,
103
+ inside: {
104
+ "template-punctuation": {
105
+ pattern: /^`|`$/,
106
+ alias: "string"
107
+ },
108
+ interpolation: {
109
+ pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
110
+ lookbehind: !0,
111
+ inside: {
112
+ "interpolation-punctuation": {
113
+ pattern: /^\$\{|\}$/,
114
+ alias: "punctuation"
115
+ },
116
+ rest: e.languages.javascript
117
+ }
118
+ },
119
+ string: /[\s\S]+/
120
+ }
121
+ },
122
+ "string-property": {
123
+ pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,
124
+ lookbehind: !0,
125
+ greedy: !0,
126
+ alias: "property"
127
+ }
128
+ }), e.languages.insertBefore("javascript", "operator", { "literal-property": {
129
+ pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
130
+ lookbehind: !0,
131
+ alias: "property"
132
+ } }), e.languages.markup && (e.languages.markup.tag.addInlined("script", "javascript"), e.languages.markup.tag.addAttribute("on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)", "javascript")), e.languages.js = e.languages.javascript;
133
+ }
134
+ r.displayName = "jsx", r.aliases = [];
135
+ function r(t) {
136
+ t.register(n), t.register(e), (function(e) {
137
+ var t = e.util.clone(e.languages.javascript), n = "(?:\\s|\\/\\/.*(?!.)|\\/\\*(?:[^*]|\\*(?!\\/))\\*\\/)", r = "(?:\\{(?:\\{(?:\\{[^{}]*\\}|[^{}])*\\}|[^{}])*\\})", i = "(?:\\{<S>*\\.{3}(?:[^{}]|<BRACES>)*\\})";
138
+ function a(e, t) {
139
+ return e = e.replace(/<S>/g, function() {
140
+ return n;
141
+ }).replace(/<BRACES>/g, function() {
142
+ return r;
143
+ }).replace(/<SPREAD>/g, function() {
144
+ return i;
145
+ }), RegExp(e, t);
146
+ }
147
+ i = a(i).source, e.languages.jsx = e.languages.extend("markup", t), e.languages.jsx.tag.pattern = a("<\\/?(?:[\\w.:-]+(?:<S>+(?:[\\w.:$-]+(?:=(?:\"(?:\\\\[\\s\\S]|[^\\\\\"])*\"|'(?:\\\\[\\s\\S]|[^\\\\'])*'|[^\\s{'\"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\\/?)?>"), e.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, e.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, e.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, e.languages.jsx.tag.inside.comment = t.comment, e.languages.insertBefore("inside", "attr-name", { spread: {
148
+ pattern: a("<SPREAD>"),
149
+ inside: e.languages.jsx
150
+ } }, e.languages.jsx.tag), e.languages.insertBefore("inside", "special-attr", { script: {
151
+ pattern: a("=<BRACES>"),
152
+ alias: "language-javascript",
153
+ inside: {
154
+ "script-punctuation": {
155
+ pattern: /^=(?=\{)/,
156
+ alias: "punctuation"
157
+ },
158
+ rest: e.languages.jsx
159
+ }
160
+ } }, e.languages.jsx.tag);
161
+ var o = function(e) {
162
+ return e ? typeof e == "string" ? e : typeof e.content == "string" ? e.content : e.content.map(o).join("") : "";
163
+ }, s = function(t) {
164
+ for (var n = [], r = 0; r < t.length; r++) {
165
+ var i = t[r], a = !1;
166
+ if (typeof i != "string" && (i.type === "tag" && i.content[0] && i.content[0].type === "tag" ? i.content[0].content[0].content === "</" ? n.length > 0 && n[n.length - 1].tagName === o(i.content[0].content[1]) && n.pop() : i.content[i.content.length - 1].content === "/>" || n.push({
167
+ tagName: o(i.content[0].content[1]),
168
+ openedBraces: 0
169
+ }) : n.length > 0 && i.type === "punctuation" && i.content === "{" ? n[n.length - 1].openedBraces++ : n.length > 0 && n[n.length - 1].openedBraces > 0 && i.type === "punctuation" && i.content === "}" ? n[n.length - 1].openedBraces-- : a = !0), (a || typeof i == "string") && n.length > 0 && n[n.length - 1].openedBraces === 0) {
170
+ var c = o(i);
171
+ r < t.length - 1 && (typeof t[r + 1] == "string" || t[r + 1].type === "plain-text") && (c += o(t[r + 1]), t.splice(r + 1, 1)), r > 0 && (typeof t[r - 1] == "string" || t[r - 1].type === "plain-text") && (c = o(t[r - 1]) + c, t.splice(r - 1, 1), r--), t[r] = new e.Token("plain-text", c, null, c);
172
+ }
173
+ i.content && typeof i.content != "string" && s(i.content);
174
+ }
175
+ };
176
+ e.hooks.add("after-tokenize", function(e) {
177
+ e.language !== "jsx" && e.language !== "tsx" || s(e.tokens);
178
+ });
179
+ })(t);
180
+ }
181
+ //#endregion
182
+ export { n, r as t };
@@ -9,7 +9,8 @@ export interface CodeBlockProps extends Omit<HTMLAttributes<HTMLDivElement>, 'ch
9
9
  code: string;
10
10
  /**
11
11
  * Pre-highlighted HTML (e.g. from Shiki). Takes precedence over the built-in
12
- * highlighter — use it for SSR or custom themes. Rendered as-is.
12
+ * highlighter — use it for SSR-highlighted output or custom themes. Rendered
13
+ * as-is.
13
14
  */
14
15
  html?: string;
15
16
  /** Language key — drives the header icon/badge/label and the highlighter grammar. */
@@ -34,6 +35,11 @@ export interface CodeBlockProps extends Omit<HTMLAttributes<HTMLDivElement>, 'ch
34
35
  * out of the box from plain `code`; all colors come from `--HS-*` / token-driven
35
36
  * CSS vars, so light/dark mode is automatic.
36
37
  *
38
+ * The built-in Prism highlighter loads on the client only (it is not SSR-safe),
39
+ * so server-rendered output shows the code unhighlighted and upgrades to colored
40
+ * tokens after hydration. Line numbers and diff tints render immediately on both
41
+ * server and client. For SSR-highlighted output, pass pre-rendered `html`.
42
+ *
37
43
  * @example
38
44
  * ```tsx
39
45
  * <CodeBlock lang="ts" code={src} />
package/dist/main.js CHANGED
@@ -2,8 +2,8 @@ import { c as e, d as t, r as n, s as r, u as i } from "./utils-K9S_6_Eq.js";
2
2
  import { t as a } from "./Box-BZgeSeCV.js";
3
3
  import { t as o } from "./Button-Dc8NFRWQ.js";
4
4
  import { t as s } from "./CopyCode-DH9Jh7PD.js";
5
- import { t as c } from "./CodeBlock-DtYddgyU.js";
6
- import { t as l } from "./FrameworkIcon-Ds6WrxO0.js";
5
+ import { t as c } from "./FrameworkIcon-Ds6WrxO0.js";
6
+ import { t as l } from "./CodeBlock-BreFXfK5.js";
7
7
  import { t as u } from "./Icon-VeXJMj8Q.js";
8
8
  import { t as d } from "./Link-CYR92_U0.js";
9
9
  import { t as f } from "./ProductIcon-DFLAYWbu.js";
@@ -30,4 +30,4 @@ import { Modal as V } from "./components/Modal/index.js";
30
30
  import { t as H } from "./RoadmapDetails-DXxJNZh9.js";
31
31
  import { ModalContactFooter as U } from "./components/Modal/ModalContactFooter.js";
32
32
  import { ThemeLoader as W, themeLoaderScript as G } from "./components/ThemeLoader/index.js";
33
- export { a as Box, o as Button, p as ButtonGroup, B as Checkbox, z as CheckboxGroup, c as CodeBlock, y as Container, s as CopyCode, b as DiscordInvite, D as Dropdown, T as DropdownItem, E as DropdownSeparator, j as Footer, v as FormGroup, g as FormRow, l as FrameworkIcon, M as GPTInput, F as Header, x as Heading, u as Icon, _ as InputGrouped, m as InputSolo, A as Label, d as Link, C as Logo, V as Modal, U as ModalContactFooter, k as NewTag, w as NewsletterSignup, N as Notification, O as PrefPanel, f as ProductIcon, R as RadioBox, L as RadioBoxGroup, H as RoadmapDetails, h as SelectGrouped, P as SubHeader, I as Tabs, W as ThemeLoader, i as ThemeProvider, S as Typography, G as themeLoaderScript, n as useClipboard, t as useNextTheme, r as useSuccessFlash, e as useTheme };
33
+ export { a as Box, o as Button, p as ButtonGroup, B as Checkbox, z as CheckboxGroup, l as CodeBlock, y as Container, s as CopyCode, b as DiscordInvite, D as Dropdown, T as DropdownItem, E as DropdownSeparator, j as Footer, v as FormGroup, g as FormRow, c as FrameworkIcon, M as GPTInput, F as Header, x as Heading, u as Icon, _ as InputGrouped, m as InputSolo, A as Label, d as Link, C as Logo, V as Modal, U as ModalContactFooter, k as NewTag, w as NewsletterSignup, N as Notification, O as PrefPanel, f as ProductIcon, R as RadioBox, L as RadioBoxGroup, H as RoadmapDetails, h as SelectGrouped, P as SubHeader, I as Tabs, W as ThemeLoader, i as ThemeProvider, S as Typography, G as themeLoaderScript, n as useClipboard, t as useNextTheme, r as useSuccessFlash, e as useTheme };
@@ -0,0 +1,5 @@
1
+ import { t as e } from "./markup-BhBs-nbv.js";
2
+ //#region node_modules/react-syntax-highlighter/dist/esm/languages/prism/markup.js
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,128 @@
1
+ e.displayName = "markup", e.aliases = [
2
+ "atom",
3
+ "html",
4
+ "mathml",
5
+ "rss",
6
+ "ssml",
7
+ "svg",
8
+ "xml"
9
+ ];
10
+ function e(e) {
11
+ e.languages.markup = {
12
+ comment: {
13
+ pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
14
+ greedy: !0
15
+ },
16
+ prolog: {
17
+ pattern: /<\?[\s\S]+?\?>/,
18
+ greedy: !0
19
+ },
20
+ doctype: {
21
+ pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
22
+ greedy: !0,
23
+ inside: {
24
+ "internal-subset": {
25
+ pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
26
+ lookbehind: !0,
27
+ greedy: !0,
28
+ inside: null
29
+ },
30
+ string: {
31
+ pattern: /"[^"]*"|'[^']*'/,
32
+ greedy: !0
33
+ },
34
+ punctuation: /^<!|>$|[[\]]/,
35
+ "doctype-tag": /^DOCTYPE/i,
36
+ name: /[^\s<>'"]+/
37
+ }
38
+ },
39
+ cdata: {
40
+ pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
41
+ greedy: !0
42
+ },
43
+ tag: {
44
+ pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
45
+ greedy: !0,
46
+ inside: {
47
+ tag: {
48
+ pattern: /^<\/?[^\s>\/]+/,
49
+ inside: {
50
+ punctuation: /^<\/?/,
51
+ namespace: /^[^\s>\/:]+:/
52
+ }
53
+ },
54
+ "special-attr": [],
55
+ "attr-value": {
56
+ pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
57
+ inside: { punctuation: [{
58
+ pattern: /^=/,
59
+ alias: "attr-equals"
60
+ }, {
61
+ pattern: /^(\s*)["']|["']$/,
62
+ lookbehind: !0
63
+ }] }
64
+ },
65
+ punctuation: /\/?>/,
66
+ "attr-name": {
67
+ pattern: /[^\s>\/]+/,
68
+ inside: { namespace: /^[^\s>\/:]+:/ }
69
+ }
70
+ }
71
+ },
72
+ entity: [{
73
+ pattern: /&[\da-z]{1,8};/i,
74
+ alias: "named-entity"
75
+ }, /&#x?[\da-f]{1,8};/i]
76
+ }, e.languages.markup.tag.inside["attr-value"].inside.entity = e.languages.markup.entity, e.languages.markup.doctype.inside["internal-subset"].inside = e.languages.markup, e.hooks.add("wrap", function(e) {
77
+ e.type === "entity" && (e.attributes.title = e.content.value.replace(/&amp;/, "&"));
78
+ }), Object.defineProperty(e.languages.markup.tag, "addInlined", { value: function(t, n) {
79
+ var r = {};
80
+ r["language-" + n] = {
81
+ pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
82
+ lookbehind: !0,
83
+ inside: e.languages[n]
84
+ }, r.cdata = /^<!\[CDATA\[|\]\]>$/i;
85
+ var i = { "included-cdata": {
86
+ pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
87
+ inside: r
88
+ } };
89
+ i["language-" + n] = {
90
+ pattern: /[\s\S]+/,
91
+ inside: e.languages[n]
92
+ };
93
+ var a = {};
94
+ a[t] = {
95
+ pattern: RegExp("(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)".replace(/__/g, function() {
96
+ return t;
97
+ }), "i"),
98
+ lookbehind: !0,
99
+ greedy: !0,
100
+ inside: i
101
+ }, e.languages.insertBefore("markup", "cdata", a);
102
+ } }), Object.defineProperty(e.languages.markup.tag, "addAttribute", { value: function(t, n) {
103
+ e.languages.markup.tag.inside["special-attr"].push({
104
+ pattern: RegExp("(^|[\"'\\s])(?:" + t + ")\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))", "i"),
105
+ lookbehind: !0,
106
+ inside: {
107
+ "attr-name": /^[^\s=]+/,
108
+ "attr-value": {
109
+ pattern: /=[\s\S]+/,
110
+ inside: {
111
+ value: {
112
+ pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
113
+ lookbehind: !0,
114
+ alias: [n, "language-" + n],
115
+ inside: e.languages[n]
116
+ },
117
+ punctuation: [{
118
+ pattern: /^=/,
119
+ alias: "attr-equals"
120
+ }, /"|'/]
121
+ }
122
+ }
123
+ }
124
+ });
125
+ } }), e.languages.html = e.languages.markup, e.languages.mathml = e.languages.markup, e.languages.svg = e.languages.markup, e.languages.xml = e.languages.extend("markup", {}), e.languages.ssml = e.languages.xml, e.languages.atom = e.languages.xml, e.languages.rss = e.languages.xml;
126
+ }
127
+ //#endregion
128
+ export { e as t };