laif-ds 0.1.76 → 0.1.80

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.
Files changed (96) hide show
  1. package/dist/_virtual/index.js +5 -3
  2. package/dist/_virtual/index2.js +5 -2
  3. package/dist/_virtual/index3.js +5 -5
  4. package/dist/_virtual/index4.js +2 -5
  5. package/dist/_virtual/index5.js +2 -5
  6. package/dist/_virtual/index7.js +3 -2
  7. package/dist/_virtual/prism-cpp.js +3 -0
  8. package/dist/_virtual/prism-cpp2.js +5 -0
  9. package/dist/_virtual/prism-java.js +3 -0
  10. package/dist/_virtual/prism-java2.js +5 -0
  11. package/dist/_virtual/prism-python.js +3 -0
  12. package/dist/_virtual/prism-python2.js +5 -0
  13. package/dist/_virtual/prism-rust.js +3 -0
  14. package/dist/_virtual/prism-rust2.js +5 -0
  15. package/dist/_virtual/prism-typescript.js +3 -0
  16. package/dist/_virtual/prism-typescript2.js +5 -0
  17. package/dist/_virtual/prism.js +3 -0
  18. package/dist/_virtual/prism2.js +5 -0
  19. package/dist/components/editor/context/toolbar-context.js +42 -0
  20. package/dist/components/editor/editor-hooks/use-modal.js +30 -0
  21. package/dist/components/editor/editor-hooks/use-update-toolbar.js +24 -0
  22. package/dist/components/editor/editor-ui/content-editable.js +26 -0
  23. package/dist/components/editor/plugins/actions/actions-plugin.js +7 -0
  24. package/dist/components/editor/plugins/actions/clear-editor-plugin.js +39 -0
  25. package/dist/components/editor/plugins/actions/counter-character-plugin.js +53 -0
  26. package/dist/components/editor/plugins/toolbar/block-format/block-format-data.js +52 -0
  27. package/dist/components/editor/plugins/toolbar/block-format/format-bulleted-list.js +26 -0
  28. package/dist/components/editor/plugins/toolbar/block-format/format-check-list.js +26 -0
  29. package/dist/components/editor/plugins/toolbar/block-format/format-heading.js +31 -0
  30. package/dist/components/editor/plugins/toolbar/block-format/format-numbered-list.js +26 -0
  31. package/dist/components/editor/plugins/toolbar/block-format/format-paragraph.js +23 -0
  32. package/dist/components/editor/plugins/toolbar/block-format/format-quote.js +24 -0
  33. package/dist/components/editor/plugins/toolbar/block-format-toolbar-plugin.js +56 -0
  34. package/dist/components/editor/plugins/toolbar/font-format-toolbar-plugin.js +50 -0
  35. package/dist/components/editor/plugins/toolbar/history-toolbar-plugin.js +69 -0
  36. package/dist/components/editor/plugins/toolbar/toolbar-plugin.js +34 -0
  37. package/dist/components/editor/themes/editor-theme.js +112 -0
  38. package/dist/components/ui/app-editor.js +150 -0
  39. package/dist/components/ui/app-multiple-select-dropdown.js +2 -2
  40. package/dist/components/ui/button.js +25 -24
  41. package/dist/components/ui/calendar.js +9 -9
  42. package/dist/components/ui/dialog.js +43 -37
  43. package/dist/components/ui/sidebar.js +20 -19
  44. package/dist/index.d.ts +23 -1
  45. package/dist/index.js +48 -44
  46. package/dist/laif-ds.css +1 -0
  47. package/dist/node_modules/@lexical/clipboard/LexicalClipboard.prod.js +159 -0
  48. package/dist/node_modules/@lexical/code/LexicalCode.prod.js +236 -0
  49. package/dist/node_modules/@lexical/dragon/LexicalDragon.prod.js +46 -0
  50. package/dist/node_modules/@lexical/history/LexicalHistory.prod.js +89 -0
  51. package/dist/node_modules/@lexical/html/LexicalHtml.prod.js +108 -0
  52. package/dist/node_modules/@lexical/link/LexicalLink.prod.js +187 -0
  53. package/dist/node_modules/@lexical/list/LexicalList.prod.js +729 -0
  54. package/dist/node_modules/@lexical/markdown/LexicalMarkdown.prod.js +367 -0
  55. package/dist/node_modules/@lexical/react/LexicalCheckListPlugin.prod.js +11 -0
  56. package/dist/node_modules/@lexical/react/LexicalClearEditorPlugin.prod.js +17 -0
  57. package/dist/node_modules/@lexical/react/LexicalComposer.prod.js +45 -0
  58. package/dist/node_modules/@lexical/react/LexicalComposerContext.prod.js +22 -0
  59. package/dist/node_modules/@lexical/react/LexicalContentEditable.prod.js +55 -0
  60. package/dist/node_modules/@lexical/react/LexicalErrorBoundary.prod.js +49 -0
  61. package/dist/node_modules/@lexical/react/LexicalHistoryPlugin.prod.js +15 -0
  62. package/dist/node_modules/@lexical/react/LexicalListPlugin.prod.js +17 -0
  63. package/dist/node_modules/@lexical/react/LexicalOnChangePlugin.prod.js +16 -0
  64. package/dist/node_modules/@lexical/react/LexicalRichTextPlugin.prod.js +56 -0
  65. package/dist/node_modules/@lexical/react/useLexicalEditable.prod.js +21 -0
  66. package/dist/node_modules/@lexical/rich-text/LexicalRichText.prod.js +376 -0
  67. package/dist/node_modules/@lexical/selection/LexicalSelection.prod.js +107 -0
  68. package/dist/node_modules/@lexical/table/LexicalTable.prod.js +661 -0
  69. package/dist/node_modules/@lexical/text/LexicalText.prod.js +37 -0
  70. package/dist/node_modules/@lexical/utils/LexicalUtils.prod.js +102 -0
  71. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +1 -1
  72. package/dist/node_modules/eventemitter3/index.js +1 -1
  73. package/dist/node_modules/eventemitter3/index2.js +1 -1
  74. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
  75. package/dist/node_modules/lexical/Lexical.prod.js +4901 -0
  76. package/dist/node_modules/prismjs/components/prism-c.js +77 -0
  77. package/dist/node_modules/prismjs/components/prism-clike.js +32 -0
  78. package/dist/node_modules/prismjs/components/prism-cpp.js +93 -0
  79. package/dist/node_modules/prismjs/components/prism-css.js +56 -0
  80. package/dist/node_modules/prismjs/components/prism-java.js +122 -0
  81. package/dist/node_modules/prismjs/components/prism-javascript.js +138 -0
  82. package/dist/node_modules/prismjs/components/prism-markdown.js +301 -0
  83. package/dist/node_modules/prismjs/components/prism-markup.js +174 -0
  84. package/dist/node_modules/prismjs/components/prism-objectivec.js +11 -0
  85. package/dist/node_modules/prismjs/components/prism-powershell.js +56 -0
  86. package/dist/node_modules/prismjs/components/prism-python.js +69 -0
  87. package/dist/node_modules/prismjs/components/prism-rust.js +124 -0
  88. package/dist/node_modules/prismjs/components/prism-sql.js +34 -0
  89. package/dist/node_modules/prismjs/components/prism-swift.js +114 -0
  90. package/dist/node_modules/prismjs/components/prism-typescript.js +53 -0
  91. package/dist/node_modules/prismjs/prism.js +1165 -0
  92. package/dist/node_modules/recharts/es6/util/Events.js +1 -1
  93. package/dist/node_modules/unified/lib/index.js +1 -1
  94. package/dist/node_modules/use-sync-external-store/shim/index.js +1 -1
  95. package/dist/styles.v3.css +1 -1
  96. package/package.json +12 -1
@@ -0,0 +1,301 @@
1
+ "use client";
2
+ (function(e) {
3
+ var f = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
4
+ function d(n) {
5
+ return n = n.replace(/<inner>/g, function() {
6
+ return f;
7
+ }), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + n + ")");
8
+ }
9
+ var g = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, p = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
10
+ return g;
11
+ }), c = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;
12
+ e.languages.markdown = e.languages.extend("markup", {}), e.languages.insertBefore("markdown", "prolog", {
13
+ "front-matter-block": {
14
+ pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,
15
+ lookbehind: !0,
16
+ greedy: !0,
17
+ inside: {
18
+ punctuation: /^---|---$/,
19
+ "front-matter": {
20
+ pattern: /\S+(?:\s+\S+)*/,
21
+ alias: ["yaml", "language-yaml"],
22
+ inside: e.languages.yaml
23
+ }
24
+ }
25
+ },
26
+ blockquote: {
27
+ // > ...
28
+ pattern: /^>(?:[\t ]*>)*/m,
29
+ alias: "punctuation"
30
+ },
31
+ table: {
32
+ pattern: RegExp("^" + p + c + "(?:" + p + ")*", "m"),
33
+ inside: {
34
+ "table-data-rows": {
35
+ pattern: RegExp("^(" + p + c + ")(?:" + p + ")*$"),
36
+ lookbehind: !0,
37
+ inside: {
38
+ "table-data": {
39
+ pattern: RegExp(g),
40
+ inside: e.languages.markdown
41
+ },
42
+ punctuation: /\|/
43
+ }
44
+ },
45
+ "table-line": {
46
+ pattern: RegExp("^(" + p + ")" + c + "$"),
47
+ lookbehind: !0,
48
+ inside: {
49
+ punctuation: /\||:?-{3,}:?/
50
+ }
51
+ },
52
+ "table-header-row": {
53
+ pattern: RegExp("^" + p + "$"),
54
+ inside: {
55
+ "table-header": {
56
+ pattern: RegExp(g),
57
+ alias: "important",
58
+ inside: e.languages.markdown
59
+ },
60
+ punctuation: /\|/
61
+ }
62
+ }
63
+ }
64
+ },
65
+ code: [
66
+ {
67
+ // Prefixed by 4 spaces or 1 tab and preceded by an empty line
68
+ pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,
69
+ lookbehind: !0,
70
+ alias: "keyword"
71
+ },
72
+ {
73
+ // ```optional language
74
+ // code block
75
+ // ```
76
+ pattern: /^```[\s\S]*?^```$/m,
77
+ greedy: !0,
78
+ inside: {
79
+ "code-block": {
80
+ pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,
81
+ lookbehind: !0
82
+ },
83
+ "code-language": {
84
+ pattern: /^(```).+/,
85
+ lookbehind: !0
86
+ },
87
+ punctuation: /```/
88
+ }
89
+ }
90
+ ],
91
+ title: [
92
+ {
93
+ // title 1
94
+ // =======
95
+ // title 2
96
+ // -------
97
+ pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,
98
+ alias: "important",
99
+ inside: {
100
+ punctuation: /==+$|--+$/
101
+ }
102
+ },
103
+ {
104
+ // # title 1
105
+ // ###### title 6
106
+ pattern: /(^\s*)#.+/m,
107
+ lookbehind: !0,
108
+ alias: "important",
109
+ inside: {
110
+ punctuation: /^#+|#+$/
111
+ }
112
+ }
113
+ ],
114
+ hr: {
115
+ // ***
116
+ // ---
117
+ // * * *
118
+ // -----------
119
+ pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,
120
+ lookbehind: !0,
121
+ alias: "punctuation"
122
+ },
123
+ list: {
124
+ // * item
125
+ // + item
126
+ // - item
127
+ // 1. item
128
+ pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,
129
+ lookbehind: !0,
130
+ alias: "punctuation"
131
+ },
132
+ "url-reference": {
133
+ // [id]: http://example.com "Optional title"
134
+ // [id]: http://example.com 'Optional title'
135
+ // [id]: http://example.com (Optional title)
136
+ // [id]: <http://example.com> "Optional title"
137
+ pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,
138
+ inside: {
139
+ variable: {
140
+ pattern: /^(!?\[)[^\]]+/,
141
+ lookbehind: !0
142
+ },
143
+ string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,
144
+ punctuation: /^[\[\]!:]|[<>]/
145
+ },
146
+ alias: "url"
147
+ },
148
+ bold: {
149
+ // **strong**
150
+ // __strong__
151
+ // allow one nested instance of italic text using the same delimiter
152
+ pattern: d(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),
153
+ lookbehind: !0,
154
+ greedy: !0,
155
+ inside: {
156
+ content: {
157
+ pattern: /(^..)[\s\S]+(?=..$)/,
158
+ lookbehind: !0,
159
+ inside: {}
160
+ // see below
161
+ },
162
+ punctuation: /\*\*|__/
163
+ }
164
+ },
165
+ italic: {
166
+ // *em*
167
+ // _em_
168
+ // allow one nested instance of bold text using the same delimiter
169
+ pattern: d(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),
170
+ lookbehind: !0,
171
+ greedy: !0,
172
+ inside: {
173
+ content: {
174
+ pattern: /(^.)[\s\S]+(?=.$)/,
175
+ lookbehind: !0,
176
+ inside: {}
177
+ // see below
178
+ },
179
+ punctuation: /[*_]/
180
+ }
181
+ },
182
+ strike: {
183
+ // ~~strike through~~
184
+ // ~strike~
185
+ // eslint-disable-next-line regexp/strict
186
+ pattern: d(/(~~?)(?:(?!~)<inner>)+\2/.source),
187
+ lookbehind: !0,
188
+ greedy: !0,
189
+ inside: {
190
+ content: {
191
+ pattern: /(^~~?)[\s\S]+(?=\1$)/,
192
+ lookbehind: !0,
193
+ inside: {}
194
+ // see below
195
+ },
196
+ punctuation: /~~?/
197
+ }
198
+ },
199
+ "code-snippet": {
200
+ // `code`
201
+ // ``code``
202
+ pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,
203
+ lookbehind: !0,
204
+ greedy: !0,
205
+ alias: ["code", "keyword"]
206
+ },
207
+ url: {
208
+ // [example](http://example.com "Optional title")
209
+ // [example][id]
210
+ // [example] [id]
211
+ pattern: d(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),
212
+ lookbehind: !0,
213
+ greedy: !0,
214
+ inside: {
215
+ operator: /^!/,
216
+ content: {
217
+ pattern: /(^\[)[^\]]+(?=\])/,
218
+ lookbehind: !0,
219
+ inside: {}
220
+ // see below
221
+ },
222
+ variable: {
223
+ pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/,
224
+ lookbehind: !0
225
+ },
226
+ url: {
227
+ pattern: /(^\]\()[^\s)]+/,
228
+ lookbehind: !0
229
+ },
230
+ string: {
231
+ pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,
232
+ lookbehind: !0
233
+ }
234
+ }
235
+ }
236
+ }), ["url", "bold", "italic", "strike"].forEach(function(n) {
237
+ ["url", "bold", "italic", "strike", "code-snippet"].forEach(function(t) {
238
+ n !== t && (e.languages.markdown[n].inside.content.inside[t] = e.languages.markdown[t]);
239
+ });
240
+ }), e.hooks.add("after-tokenize", function(n) {
241
+ if (n.language !== "markdown" && n.language !== "md")
242
+ return;
243
+ function t(i) {
244
+ if (!(!i || typeof i == "string"))
245
+ for (var r = 0, u = i.length; r < u; r++) {
246
+ var o = i[r];
247
+ if (o.type !== "code") {
248
+ t(o.content);
249
+ continue;
250
+ }
251
+ var l = o.content[1], a = o.content[3];
252
+ if (l && a && l.type === "code-language" && a.type === "code-block" && typeof l.content == "string") {
253
+ var s = l.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
254
+ s = (/[a-z][\w-]*/i.exec(s) || [""])[0].toLowerCase();
255
+ var b = "language-" + s;
256
+ a.alias ? typeof a.alias == "string" ? a.alias = [a.alias, b] : a.alias.push(b) : a.alias = [b];
257
+ }
258
+ }
259
+ }
260
+ t(n.tokens);
261
+ }), e.hooks.add("wrap", function(n) {
262
+ if (n.type === "code-block") {
263
+ for (var t = "", i = 0, r = n.classes.length; i < r; i++) {
264
+ var u = n.classes[i], o = /language-(.+)/.exec(u);
265
+ if (o) {
266
+ t = o[1];
267
+ break;
268
+ }
269
+ }
270
+ var l = e.languages[t];
271
+ if (l)
272
+ n.content = e.highlight(m(n.content), l, t);
273
+ else if (t && t !== "none" && e.plugins.autoloader) {
274
+ var a = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 1e16);
275
+ n.attributes.id = a, e.plugins.autoloader.loadLanguages(t, function() {
276
+ var s = document.getElementById(a);
277
+ s && (s.innerHTML = e.highlight(s.textContent, e.languages[t], t));
278
+ });
279
+ }
280
+ }
281
+ });
282
+ var h = RegExp(e.languages.markup.tag.pattern.source, "gi"), k = {
283
+ amp: "&",
284
+ lt: "<",
285
+ gt: ">",
286
+ quot: '"'
287
+ }, _ = String.fromCodePoint || String.fromCharCode;
288
+ function m(n) {
289
+ var t = n.replace(h, "");
290
+ return t = t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(i, r) {
291
+ if (r = r.toLowerCase(), r[0] === "#") {
292
+ var u;
293
+ return r[1] === "x" ? u = parseInt(r.slice(2), 16) : u = Number(r.slice(1)), _(u);
294
+ } else {
295
+ var o = k[r];
296
+ return o || i;
297
+ }
298
+ }), t;
299
+ }
300
+ e.languages.md = e.languages.markdown;
301
+ })(Prism);
@@ -0,0 +1,174 @@
1
+ "use client";
2
+ Prism.languages.markup = {
3
+ comment: {
4
+ pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
5
+ greedy: !0
6
+ },
7
+ prolog: {
8
+ pattern: /<\?[\s\S]+?\?>/,
9
+ greedy: !0
10
+ },
11
+ doctype: {
12
+ // https://www.w3.org/TR/xml/#NT-doctypedecl
13
+ pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
14
+ greedy: !0,
15
+ inside: {
16
+ "internal-subset": {
17
+ pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
18
+ lookbehind: !0,
19
+ greedy: !0,
20
+ inside: null
21
+ // see below
22
+ },
23
+ string: {
24
+ pattern: /"[^"]*"|'[^']*'/,
25
+ greedy: !0
26
+ },
27
+ punctuation: /^<!|>$|[[\]]/,
28
+ "doctype-tag": /^DOCTYPE/i,
29
+ name: /[^\s<>'"]+/
30
+ }
31
+ },
32
+ cdata: {
33
+ pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
34
+ greedy: !0
35
+ },
36
+ tag: {
37
+ pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
38
+ greedy: !0,
39
+ inside: {
40
+ tag: {
41
+ pattern: /^<\/?[^\s>\/]+/,
42
+ inside: {
43
+ punctuation: /^<\/?/,
44
+ namespace: /^[^\s>\/:]+:/
45
+ }
46
+ },
47
+ "special-attr": [],
48
+ "attr-value": {
49
+ pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
50
+ inside: {
51
+ punctuation: [
52
+ {
53
+ pattern: /^=/,
54
+ alias: "attr-equals"
55
+ },
56
+ {
57
+ pattern: /^(\s*)["']|["']$/,
58
+ lookbehind: !0
59
+ }
60
+ ]
61
+ }
62
+ },
63
+ punctuation: /\/?>/,
64
+ "attr-name": {
65
+ pattern: /[^\s>\/]+/,
66
+ inside: {
67
+ namespace: /^[^\s>\/:]+:/
68
+ }
69
+ }
70
+ }
71
+ },
72
+ entity: [
73
+ {
74
+ pattern: /&[\da-z]{1,8};/i,
75
+ alias: "named-entity"
76
+ },
77
+ /&#x?[\da-f]{1,8};/i
78
+ ]
79
+ };
80
+ Prism.languages.markup.tag.inside["attr-value"].inside.entity = Prism.languages.markup.entity;
81
+ Prism.languages.markup.doctype.inside["internal-subset"].inside = Prism.languages.markup;
82
+ Prism.hooks.add("wrap", function(e) {
83
+ e.type === "entity" && (e.attributes.title = e.content.replace(/&amp;/, "&"));
84
+ });
85
+ Object.defineProperty(Prism.languages.markup.tag, "addInlined", {
86
+ /**
87
+ * Adds an inlined language to markup.
88
+ *
89
+ * An example of an inlined language is CSS with `<style>` tags.
90
+ *
91
+ * @param {string} tagName The name of the tag that contains the inlined language. This name will be treated as
92
+ * case insensitive.
93
+ * @param {string} lang The language key.
94
+ * @example
95
+ * addInlined('style', 'css');
96
+ */
97
+ value: function(a, t) {
98
+ var s = {};
99
+ s["language-" + t] = {
100
+ pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
101
+ lookbehind: !0,
102
+ inside: Prism.languages[t]
103
+ }, s.cdata = /^<!\[CDATA\[|\]\]>$/i;
104
+ var n = {
105
+ "included-cdata": {
106
+ pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
107
+ inside: s
108
+ }
109
+ };
110
+ n["language-" + t] = {
111
+ pattern: /[\s\S]+/,
112
+ inside: Prism.languages[t]
113
+ };
114
+ var i = {};
115
+ i[a] = {
116
+ pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
117
+ return a;
118
+ }), "i"),
119
+ lookbehind: !0,
120
+ greedy: !0,
121
+ inside: n
122
+ }, Prism.languages.insertBefore("markup", "cdata", i);
123
+ }
124
+ });
125
+ Object.defineProperty(Prism.languages.markup.tag, "addAttribute", {
126
+ /**
127
+ * Adds an pattern to highlight languages embedded in HTML attributes.
128
+ *
129
+ * An example of an inlined language is CSS with `style` attributes.
130
+ *
131
+ * @param {string} attrName The name of the tag that contains the inlined language. This name will be treated as
132
+ * case insensitive.
133
+ * @param {string} lang The language key.
134
+ * @example
135
+ * addAttribute('style', 'css');
136
+ */
137
+ value: function(e, a) {
138
+ Prism.languages.markup.tag.inside["special-attr"].push({
139
+ pattern: RegExp(
140
+ /(^|["'\s])/.source + "(?:" + e + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
141
+ "i"
142
+ ),
143
+ lookbehind: !0,
144
+ inside: {
145
+ "attr-name": /^[^\s=]+/,
146
+ "attr-value": {
147
+ pattern: /=[\s\S]+/,
148
+ inside: {
149
+ value: {
150
+ pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
151
+ lookbehind: !0,
152
+ alias: [a, "language-" + a],
153
+ inside: Prism.languages[a]
154
+ },
155
+ punctuation: [
156
+ {
157
+ pattern: /^=/,
158
+ alias: "attr-equals"
159
+ },
160
+ /"|'/
161
+ ]
162
+ }
163
+ }
164
+ }
165
+ });
166
+ }
167
+ });
168
+ Prism.languages.html = Prism.languages.markup;
169
+ Prism.languages.mathml = Prism.languages.markup;
170
+ Prism.languages.svg = Prism.languages.markup;
171
+ Prism.languages.xml = Prism.languages.extend("markup", {});
172
+ Prism.languages.ssml = Prism.languages.xml;
173
+ Prism.languages.atom = Prism.languages.xml;
174
+ Prism.languages.rss = Prism.languages.xml;
@@ -0,0 +1,11 @@
1
+ "use client";
2
+ Prism.languages.objectivec = Prism.languages.extend("c", {
3
+ string: {
4
+ pattern: /@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,
5
+ greedy: !0
6
+ },
7
+ keyword: /\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,
8
+ operator: /-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/
9
+ });
10
+ delete Prism.languages.objectivec["class-name"];
11
+ Prism.languages.objc = Prism.languages.objectivec;
@@ -0,0 +1,56 @@
1
+ "use client";
2
+ (function(r) {
3
+ var e = r.languages.powershell = {
4
+ comment: [
5
+ {
6
+ pattern: /(^|[^`])<#[\s\S]*?#>/,
7
+ lookbehind: !0
8
+ },
9
+ {
10
+ pattern: /(^|[^`])#.*/,
11
+ lookbehind: !0
12
+ }
13
+ ],
14
+ string: [
15
+ {
16
+ pattern: /"(?:`[\s\S]|[^`"])*"/,
17
+ greedy: !0,
18
+ inside: null
19
+ // see below
20
+ },
21
+ {
22
+ pattern: /'(?:[^']|'')*'/,
23
+ greedy: !0
24
+ }
25
+ ],
26
+ // Matches name spaces as well as casts, attribute decorators. Force starting with letter to avoid matching array indices
27
+ // Supports two levels of nested brackets (e.g. `[OutputType([System.Collections.Generic.List[int]])]`)
28
+ namespace: /\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,
29
+ boolean: /\$(?:false|true)\b/i,
30
+ variable: /\$\w+\b/,
31
+ // Cmdlets and aliases. Aliases should come last, otherwise "write" gets preferred over "write-host" for example
32
+ // Get-Command | ?{ $_.ModuleName -match "Microsoft.PowerShell.(Util|Core|Management)" }
33
+ // Get-Alias | ?{ $_.ReferencedCommand.Module.Name -match "Microsoft.PowerShell.(Util|Core|Management)" }
34
+ function: [
35
+ /\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,
36
+ /\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i
37
+ ],
38
+ // per http://technet.microsoft.com/en-us/library/hh847744.aspx
39
+ keyword: /\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,
40
+ operator: {
41
+ pattern: /(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,
42
+ lookbehind: !0
43
+ },
44
+ punctuation: /[|{}[\];(),.]/
45
+ };
46
+ e.string[0].inside = {
47
+ function: {
48
+ // Allow for one level of nesting
49
+ pattern: /(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,
50
+ lookbehind: !0,
51
+ inside: e
52
+ },
53
+ boolean: e.boolean,
54
+ variable: e.variable
55
+ };
56
+ })(Prism);
@@ -0,0 +1,69 @@
1
+ "use client";
2
+ import { __exports as e } from "../../../_virtual/prism-python2.js";
3
+ var t;
4
+ function n() {
5
+ return t ? e : (t = 1, Prism.languages.python = {
6
+ comment: {
7
+ pattern: /(^|[^\\])#.*/,
8
+ lookbehind: !0,
9
+ greedy: !0
10
+ },
11
+ "string-interpolation": {
12
+ pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,
13
+ greedy: !0,
14
+ inside: {
15
+ interpolation: {
16
+ // "{" <expression> <optional "!s", "!r", or "!a"> <optional ":" format specifier> "}"
17
+ pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,
18
+ lookbehind: !0,
19
+ inside: {
20
+ "format-spec": {
21
+ pattern: /(:)[^:(){}]+(?=\}$)/,
22
+ lookbehind: !0
23
+ },
24
+ "conversion-option": {
25
+ pattern: /![sra](?=[:}]$)/,
26
+ alias: "punctuation"
27
+ },
28
+ rest: null
29
+ }
30
+ },
31
+ string: /[\s\S]+/
32
+ }
33
+ },
34
+ "triple-quoted-string": {
35
+ pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,
36
+ greedy: !0,
37
+ alias: "string"
38
+ },
39
+ string: {
40
+ pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,
41
+ greedy: !0
42
+ },
43
+ function: {
44
+ pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,
45
+ lookbehind: !0
46
+ },
47
+ "class-name": {
48
+ pattern: /(\bclass\s+)\w+/i,
49
+ lookbehind: !0
50
+ },
51
+ decorator: {
52
+ pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m,
53
+ lookbehind: !0,
54
+ alias: ["annotation", "punctuation"],
55
+ inside: {
56
+ punctuation: /\./
57
+ }
58
+ },
59
+ 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/,
60
+ 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/,
61
+ boolean: /\b(?:False|None|True)\b/,
62
+ 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,
63
+ operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,
64
+ punctuation: /[{}[\];(),.:]/
65
+ }, Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest = Prism.languages.python, Prism.languages.py = Prism.languages.python, e);
66
+ }
67
+ export {
68
+ n as __require
69
+ };