eddyter 1.3.56 → 1.3.58
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/LICENSE +24 -24
- package/README.md +493 -493
- package/dist/App.d.ts +3 -2
- package/dist/Provider/EditorProvider.d.ts +32 -31
- package/dist/Provider/LexicalProvider.d.ts +6 -5
- package/dist/api/ai/index.d.ts +39 -83
- package/dist/api/analytics.d.ts +21 -21
- package/dist/api/auth.d.ts +108 -108
- package/dist/api/bugReport.d.ts +27 -27
- package/dist/api/config/axios.d.ts +2 -1
- package/dist/api/config/endpoints.d.ts +24 -27
- package/dist/api/featureSuggestion.d.ts +23 -23
- package/dist/api/feedback.d.ts +26 -26
- package/dist/api/linkPreview.d.ts +15 -15
- package/dist/api/transcript/index.d.ts +68 -68
- package/dist/assets/style.css +1 -1
- package/dist/babel-1c4a328b.js +7478 -0
- package/dist/components/AiPlugin/index.d.ts +6 -6
- package/dist/components/AlignMenu/AlignMenu.d.ts +9 -8
- package/dist/components/AlignMenu/AlignMenuDrop.d.ts +3 -2
- package/dist/components/AlignMenu/index.d.ts +1 -1
- package/dist/components/AutoExpandingDemo.d.ts +6 -5
- package/dist/components/BlockFormatMenu/BlockFormatMenu.d.ts +3 -2
- package/dist/components/BlockFormatMenu/constants.d.ts +14 -14
- package/dist/components/BlockFormatMenu/index.d.ts +1 -1
- package/dist/components/BugReportDialog/index.d.ts +6 -6
- package/dist/components/ChartEditDialog.d.ts +9 -8
- package/dist/components/ChartInsertDialog.d.ts +8 -7
- package/dist/components/CodeActionMenuPlugin/components/CopyButton/index.d.ts +7 -6
- package/dist/components/CodeActionMenuPlugin/components/PrettierButton/index.d.ts +9 -8
- package/dist/components/CodeActionMenuPlugin/index.d.ts +5 -4
- package/dist/components/CodeActionMenuPlugin/utils.d.ts +1 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts +3 -2
- package/dist/components/ColorPicker/index.d.ts +1 -1
- package/dist/components/CommentSidebar/CommentSidebar.d.ts +8 -7
- package/dist/components/CommentSidebar/index.d.ts +1 -1
- package/dist/components/CommentToggle/CommentToggle.d.ts +8 -7
- package/dist/components/CommentToggle/index.d.ts +1 -1
- package/dist/components/CommentView/CommentView.d.ts +9 -8
- package/dist/components/CommentView/index.d.ts +1 -1
- package/dist/components/ConfigurableEditorWithAuth.d.ts +35 -34
- package/dist/components/ContentPreview/index.d.ts +37 -36
- package/dist/components/DatePicker/DatePickerWidget.d.ts +7 -6
- package/dist/components/EmojiPickerWidget/EmojiPickerWidget.d.ts +3 -2
- package/dist/components/EmojiPickerWidget/index.d.ts +1 -1
- package/dist/components/FeatureSuggestionDialog/index.d.ts +6 -6
- package/dist/components/FeedbackDialog/index.d.ts +7 -7
- package/dist/components/FileUpload/InsertFileDialog.d.ts +7 -7
- package/dist/components/FileUpload/InsertFileUploadedDialogBody.d.ts +5 -4
- package/dist/components/FileView/index.d.ts +9 -8
- package/dist/components/FloatingHighlightColorPicker/index.d.ts +9 -8
- package/dist/components/FontFamilySelect/FontFamilyMenu.d.ts +7 -6
- package/dist/components/FontSizePicker/FontSizeControl.d.ts +3 -2
- package/dist/components/FormatTextMenu/FormatTextMenu.d.ts +3 -2
- package/dist/components/FormatTextMenu/FormatTextMenuDrop.d.ts +3 -2
- package/dist/components/FormatTextMenu/index.d.ts +1 -1
- package/dist/components/HighlightColorPicker/HighlightColorPicker.d.ts +7 -6
- package/dist/components/HtmlViewDisplay.d.ts +3 -2
- package/dist/components/ImageComparisonDialog/index.d.ts +11 -10
- package/dist/components/ImageGenerationDialog/ImageGenerationManager.d.ts +11 -10
- package/dist/components/ImageGenerationDialog/index.d.ts +11 -10
- package/dist/components/ImageInsertTest.d.ts +3 -2
- package/dist/components/ImageView/ImageDialog/ImageUploadDialogBody.d.ts +9 -8
- package/dist/components/ImageView/ImageDialog/index.d.ts +6 -5
- package/dist/components/ImageView/ImageResizer.d.ts +16 -15
- package/dist/components/ImageView/index.d.ts +17 -16
- package/dist/components/InsertMenu/InsertMenu.d.ts +9 -8
- package/dist/components/InsertMenu/InsertMenuDrop.d.ts +9 -8
- package/dist/components/InsertMenu/index.d.ts +1 -1
- package/dist/components/LanguageSelectorDialog/index.d.ts +8 -7
- package/dist/components/LinkPreviewHover/index.d.ts +40 -40
- package/dist/components/NotePanelMenu/NotePanelMenu.d.ts +6 -5
- package/dist/components/NotePanelMenu/index.d.ts +1 -1
- package/dist/components/NotePanelView/NotePanelView.d.ts +9 -8
- package/dist/components/NotePanelView/index.d.ts +1 -1
- package/dist/components/Placeholder/Placeholder.d.ts +3 -2
- package/dist/components/Placeholder/index.d.ts +1 -1
- package/dist/components/Placeholder/styles.d.ts +1 -1
- package/dist/components/PreviewDialog/index.d.ts +10 -0
- package/dist/components/ScopedEditor.d.ts +8 -8
- package/dist/components/SignatureCaption/index.d.ts +6 -5
- package/dist/components/SpeechLanguageSelector/index.d.ts +9 -8
- package/dist/components/TableColorPicker/index.d.ts +8 -7
- package/dist/components/TableModal/TableModal.d.ts +10 -9
- package/dist/components/TextEnhanceDialog/index.d.ts +10 -9
- package/dist/components/ToneAdjustDialog/index.d.ts +8 -7
- package/dist/components/Toolbar/Toolbar.d.ts +3 -2
- package/dist/components/Toolbar/index.d.ts +1 -1
- package/dist/components/Toolbar/styles.d.ts +6 -6
- package/dist/components/VoiceTranscriptIcon/VoiceTranscriptIcon.d.ts +2 -1
- package/dist/components/VoiceTranscriptIcon/index.d.ts +1 -1
- package/dist/components/ui/avatar.d.ts +6 -6
- package/dist/components/ui/badge.d.ts +9 -8
- package/dist/components/ui/button.d.ts +11 -10
- package/dist/components/ui/calendar.d.ts +8 -7
- package/dist/components/ui/card.d.ts +8 -8
- package/dist/components/ui/checkbox.d.ts +4 -4
- package/dist/components/ui/dialog.d.ts +19 -19
- package/dist/components/ui/dropdown-menu.d.ts +27 -27
- package/dist/components/ui/input.d.ts +3 -3
- package/dist/components/ui/label.d.ts +4 -4
- package/dist/components/ui/popover.d.ts +7 -7
- package/dist/components/ui/select.d.ts +13 -13
- package/dist/components/ui/separator.d.ts +4 -4
- package/dist/components/ui/sheet.d.ts +24 -24
- package/dist/components/ui/skeleton.d.ts +3 -3
- package/dist/components/ui/tabs.d.ts +7 -7
- package/dist/components/ui/textarea.d.ts +3 -3
- package/dist/components/ui/tooltip.d.ts +7 -7
- package/dist/constants.d.ts +22 -21
- package/dist/context/CommentContext.d.ts +43 -42
- package/dist/context/HtmlViewContext.d.ts +17 -16
- package/dist/context/ToolbarContext.d.ts +56 -55
- package/dist/editorConfig.d.ts +70 -70
- package/dist/estree-2cbea43c.js +4667 -0
- package/dist/hooks/useAutoExpandingHeight.d.ts +15 -15
- package/dist/hooks/useBlockFormat.d.ts +17 -16
- package/dist/hooks/useColorPicker.d.ts +6 -6
- package/dist/hooks/useCustomCommands.d.ts +3 -2
- package/dist/hooks/useDebounce.d.ts +1 -1
- package/dist/hooks/useEditorToolbar.d.ts +10 -9
- package/dist/hooks/useFeedbackEligibility.d.ts +18 -18
- package/dist/hooks/useInsertMenu.d.ts +9 -9
- package/dist/hooks/useModal.d.ts +5 -5
- package/dist/hooks/useReactNativeBridge.d.ts +54 -54
- package/dist/hooks/useS3Uploader.d.ts +21 -21
- package/dist/hooks/useVoiceToText.d.ts +20 -20
- package/dist/html-c18fb60e.js +2841 -0
- package/dist/{html2pdf.bundle-5eb394ee.js → html2pdf.bundle-6a3ff5a8.js} +1 -1
- package/dist/{html2pdf.bundle.min-31a8b0db.js → html2pdf.bundle.min-60b7dc51.js} +1 -1
- package/dist/{index-66d9f716.js → index-3c315894.js} +14811 -16419
- package/dist/{index-969008d4.js → index-8dff4089.js} +47 -46
- package/dist/{index-953fe9ad.js → index-93f9339c.js} +4 -3
- package/dist/index.d.ts +14 -14
- package/dist/index.js +14 -13
- package/dist/lib/utils.d.ts +2 -1
- package/dist/main.d.ts +1 -0
- package/dist/markdown-39c3822b.js +3547 -0
- package/dist/nodes/ChartNode.d.ts +41 -40
- package/dist/nodes/CommentNode.d.ts +34 -33
- package/dist/nodes/CommentedTextNode.d.ts +29 -28
- package/dist/nodes/EmbedNode.d.ts +32 -31
- package/dist/nodes/FileNode.d.ts +33 -32
- package/dist/nodes/ImageNode.d.ts +65 -64
- package/dist/nodes/MentionNode.d.ts +75 -74
- package/dist/nodes/NotePanelNode.d.ts +31 -30
- package/dist/nodes/UploadingFileNode.d.ts +30 -29
- package/dist/nodes/UploadingImageNode.d.ts +30 -29
- package/dist/pages/ConfigurableEditor/ConfigurableEditor.d.ts +25 -24
- package/dist/pages/ConfigurableEditor/index.d.ts +2 -2
- package/dist/pages/NotFound.d.ts +2 -2
- package/dist/pages/RichTextEditor.d.ts +6 -6
- package/dist/pages/TextareaEditor.d.ts +6 -6
- package/dist/pages/styles.d.ts +5 -5
- package/dist/plugins/AIChatPlugin.d.ts +11 -10
- package/dist/plugins/AndroidKeyboardFixPlugin.d.ts +16 -16
- package/dist/plugins/AutocompletePlugin.d.ts +22 -22
- package/dist/plugins/CodeBlockNormalizerPlugin.d.ts +8 -8
- package/dist/plugins/CodeBlockSelectAllPlugin.d.ts +8 -8
- package/dist/plugins/CodeHighlightPlugin.d.ts +3 -2
- package/dist/plugins/CombinedAutocompletGrammarPlugin.d.ts +21 -20
- package/dist/plugins/CommentBubblePlugin.d.ts +3 -2
- package/dist/plugins/CommentPlugin.d.ts +7 -6
- package/dist/plugins/CustomHorizontalRulePlugin/CustomHorizontalRuleNode.d.ts +29 -28
- package/dist/plugins/CustomHorizontalRulePlugin/CustomHorizontalRulePlugin.d.ts +3 -3
- package/dist/plugins/CustomHorizontalRulePlugin/HorizontalRuleCustomizationDialog.d.ts +7 -6
- package/dist/plugins/CustomHorizontalRulePlugin/index.d.ts +3 -3
- package/dist/plugins/DragDropPastePlugin/index.d.ts +8 -8
- package/dist/plugins/DragDropPastePlugin/indexs.d.ts +1 -1
- package/dist/plugins/DraggableBlockPlugin/index.d.ts +4 -0
- package/dist/plugins/EmbedPreviewPlugin/FloatingEmbedMenuPlugin.d.ts +4 -3
- package/dist/plugins/EmbedPreviewPlugin/index.d.ts +6 -5
- package/dist/plugins/FilePlugin.d.ts +8 -7
- package/dist/plugins/FloatingLinkEditorPlugin/index.d.ts +6 -5
- package/dist/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +27 -26
- package/dist/plugins/GrammarCheckPlugin.d.ts +2 -1
- package/dist/plugins/HtmlCodeViewPlugin/index.d.ts +2 -2
- package/dist/plugins/HtmlImportPlugin.d.ts +5 -5
- package/dist/plugins/HtmlSyncPlugin.d.ts +3 -3
- package/dist/plugins/ImagePlugin.d.ts +7 -6
- package/dist/plugins/LinkPlugin/index.d.ts +6 -5
- package/dist/plugins/LinkPreviewPlugin/index.d.ts +4 -4
- package/dist/plugins/LocalStoragePlugin.d.ts +7 -6
- package/dist/plugins/MarkdownShortcutsPlugin/index.d.ts +20 -20
- package/dist/plugins/MentionsPlugin/index.d.ts +7 -6
- package/dist/plugins/NotePanelPlugin.d.ts +7 -6
- package/dist/plugins/PasteOptionsPlugin/index.d.ts +17 -17
- package/dist/plugins/RichTextPastePlugin/index.d.ts +6 -5
- package/dist/plugins/SignatureCanvasPlugin/SignatureCanvasDialog.d.ts +6 -5
- package/dist/plugins/SignatureCanvasPlugin/SignatureCanvasPlugin.d.ts +9 -9
- package/dist/plugins/SignatureCanvasPlugin/index.d.ts +2 -2
- package/dist/plugins/SlashCommandPlugin/index.d.ts +2 -2
- package/dist/plugins/TableActionMenuPlugin/index.d.ts +6 -5
- package/dist/plugins/TableCellResizer/index.d.ts +2 -1
- package/dist/plugins/TableHoverActionsPlugin/index.d.ts +4 -4
- package/dist/plugins/TablePlugin.d.ts +5 -4
- package/dist/plugins/Tableimageautoresizeplugin.d.ts +1 -1
- package/dist/plugins/TextEnhancePlugin.d.ts +6 -6
- package/dist/plugins/TreeViewPlugin.d.ts +3 -2
- package/dist/plugins/UsageTrackingPlugin.d.ts +15 -15
- package/dist/plugins/VoiceTranscriptPlugin.d.ts +25 -25
- package/dist/plugins/WordCountPlugin.d.ts +3 -2
- package/dist/postcss-bbcc713e.js +5151 -0
- package/dist/services/chartService.d.ts +19 -18
- package/dist/standalone-36ad3877.js +2600 -0
- package/dist/styles/PlaygroundEditorTheme.d.ts +3 -2
- package/dist/types.d.ts +205 -203
- package/dist/typescript-39d06710.js +13533 -0
- package/dist/ui/ColorPicker.d.ts +14 -13
- package/dist/ui/Icons.d.ts +84 -84
- package/dist/ui/TextInput.d.ts +11 -10
- package/dist/utils/dateFormats.d.ts +33 -33
- package/dist/utils/debounce.d.ts +6 -5
- package/dist/utils/editorStyleConverter.d.ts +17 -16
- package/dist/utils/export.d.ts +2 -1
- package/dist/utils/getDOMRangeRect.d.ts +13 -13
- package/dist/utils/getSelectedNode.d.ts +3 -2
- package/dist/utils/helper.d.ts +3 -3
- package/dist/utils/index.d.ts +4 -3
- package/dist/utils/invarient.d.ts +1 -1
- package/dist/utils/setFloatingElemPosition.d.ts +8 -8
- package/dist/utils/setFloatingElemPositionForLinkEditor.d.ts +1 -1
- package/dist/utils/url.d.ts +9 -9
- package/package.json +149 -149
- package/dist/babel-2d5b260f.js +0 -7770
- package/dist/estree-28f5912a.js +0 -4920
- package/dist/html-3f297a3a.js +0 -3021
- package/dist/markdown-08edd93b.js +0 -3625
- package/dist/postcss-0e22bc25.js +0 -5187
- package/dist/standalone-83d5947a.js +0 -2728
- package/dist/typescript-0559ee85.js +0 -13660
|
@@ -1,3625 +0,0 @@
|
|
|
1
|
-
var er = Object.defineProperty;
|
|
2
|
-
var tr = (u, e, t) => e in u ? er(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t;
|
|
3
|
-
var we = (u, e, t) => (tr(u, typeof e != "symbol" ? e + "" : e, t), t), ke = (u, e, t) => {
|
|
4
|
-
if (!e.has(u))
|
|
5
|
-
throw TypeError("Cannot " + t);
|
|
6
|
-
};
|
|
7
|
-
var Bu = (u, e, t) => (ke(u, e, "read from private field"), t ? t.call(u) : e.get(u)), qe = (u, e, t) => {
|
|
8
|
-
if (e.has(u))
|
|
9
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
10
|
-
e instanceof WeakSet ? e.add(u) : e.set(u, t);
|
|
11
|
-
}, Qe = (u, e, t, r) => (ke(u, e, "write to private field"), r ? r.call(u, t) : e.set(u, t), t);
|
|
12
|
-
var Ze = (u, e, t) => (ke(u, e, "access private method"), t);
|
|
13
|
-
var rr = Object.create, Pe = Object.defineProperty, nr = Object.getOwnPropertyDescriptor, ir = Object.getOwnPropertyNames, or = Object.getPrototypeOf, ar = Object.prototype.hasOwnProperty, I = (u, e) => () => (e || u((e = { exports: {} }).exports, e), e.exports), Ct = (u, e) => {
|
|
14
|
-
for (var t in e)
|
|
15
|
-
Pe(u, t, { get: e[t], enumerable: !0 });
|
|
16
|
-
}, Dr = (u, e, t, r) => {
|
|
17
|
-
if (e && typeof e == "object" || typeof e == "function")
|
|
18
|
-
for (let n of ir(e))
|
|
19
|
-
!ar.call(u, n) && n !== t && Pe(u, n, { get: () => e[n], enumerable: !(r = nr(e, n)) || r.enumerable });
|
|
20
|
-
return u;
|
|
21
|
-
}, Uu = (u, e, t) => (t = u != null ? rr(or(u)) : {}, Dr(e || !u || !u.__esModule ? Pe(t, "default", { value: u, enumerable: !0 }) : t, u)), je = I((u, e) => {
|
|
22
|
-
e.exports = t;
|
|
23
|
-
function t(r) {
|
|
24
|
-
return String(r).replace(/\s+/g, " ");
|
|
25
|
-
}
|
|
26
|
-
}), sr = I((u, e) => {
|
|
27
|
-
e.exports = E;
|
|
28
|
-
var t = 9, r = 10, n = 32, i = 33, a = 58, o = 91, D = 92, l = 93, s = 94, c = 96, C = 4, d = 1024;
|
|
29
|
-
function E(h) {
|
|
30
|
-
var F = this.Parser, A = this.Compiler;
|
|
31
|
-
m(F) && x(F, h), g(A) && f(A);
|
|
32
|
-
}
|
|
33
|
-
function m(h) {
|
|
34
|
-
return !!(h && h.prototype && h.prototype.blockTokenizers);
|
|
35
|
-
}
|
|
36
|
-
function g(h) {
|
|
37
|
-
return !!(h && h.prototype && h.prototype.visitors);
|
|
38
|
-
}
|
|
39
|
-
function x(h, F) {
|
|
40
|
-
for (var A = F || {}, y = h.prototype, w = y.blockTokenizers, T = y.inlineTokenizers, b = y.blockMethods, k = y.inlineMethods, L = w.definition, R = T.reference, v = [], S = -1, U = b.length, j; ++S < U; )
|
|
41
|
-
j = b[S], !(j === "newline" || j === "indentedCode" || j === "paragraph" || j === "footnoteDefinition") && v.push([j]);
|
|
42
|
-
v.push(["footnoteDefinition"]), A.inlineNotes && (B(k, "reference", "inlineNote"), T.inlineNote = J), B(b, "definition", "footnoteDefinition"), B(k, "reference", "footnoteCall"), w.definition = O, w.footnoteDefinition = _, T.footnoteCall = q, T.reference = z, y.interruptFootnoteDefinition = v, z.locator = R.locator, q.locator = $, J.locator = M;
|
|
43
|
-
function _(N, P, V) {
|
|
44
|
-
for (var H = this, Y = H.interruptFootnoteDefinition, K = H.offset, tu = P.length + 1, W = 0, uu = [], cu, lu, eu, G, Z, hu, ku, Fu, Cu, iu, du, ru, X; W < tu && (G = P.charCodeAt(W), !(G !== t && G !== n)); )
|
|
45
|
-
W++;
|
|
46
|
-
if (P.charCodeAt(W++) === o && P.charCodeAt(W++) === s) {
|
|
47
|
-
for (lu = W; W < tu; ) {
|
|
48
|
-
if (G = P.charCodeAt(W), G !== G || G === r || G === t || G === n)
|
|
49
|
-
return;
|
|
50
|
-
if (G === l) {
|
|
51
|
-
eu = W, W++;
|
|
52
|
-
break;
|
|
53
|
-
}
|
|
54
|
-
W++;
|
|
55
|
-
}
|
|
56
|
-
if (!(eu === void 0 || lu === eu || P.charCodeAt(W++) !== a)) {
|
|
57
|
-
if (V)
|
|
58
|
-
return !0;
|
|
59
|
-
for (cu = P.slice(lu, eu), Z = N.now(), Cu = 0, iu = 0, du = W, ru = []; W < tu; ) {
|
|
60
|
-
if (G = P.charCodeAt(W), G !== G || G === r)
|
|
61
|
-
X = { start: Cu, contentStart: du || W, contentEnd: W, end: W }, ru.push(X), G === r && (Cu = W + 1, iu = 0, du = void 0, X.end = Cu);
|
|
62
|
-
else if (iu !== void 0)
|
|
63
|
-
if (G === n || G === t)
|
|
64
|
-
iu += G === n ? 1 : C - iu % C, iu > C && (iu = void 0, du = W);
|
|
65
|
-
else {
|
|
66
|
-
if (iu < C && X && (X.contentStart === X.contentEnd || p(Y, w, H, [N, P.slice(W, d), !0])))
|
|
67
|
-
break;
|
|
68
|
-
iu = void 0, du = W;
|
|
69
|
-
}
|
|
70
|
-
W++;
|
|
71
|
-
}
|
|
72
|
-
for (W = -1, tu = ru.length; tu > 0 && (X = ru[tu - 1], X.contentStart === X.contentEnd); )
|
|
73
|
-
tu--;
|
|
74
|
-
for (hu = N(P.slice(0, X.contentEnd)); ++W < tu; )
|
|
75
|
-
X = ru[W], K[Z.line + W] = (K[Z.line + W] || 0) + (X.contentStart - X.start), uu.push(P.slice(X.contentStart, X.end));
|
|
76
|
-
return ku = H.enterBlock(), Fu = H.tokenizeBlock(uu.join(""), Z), ku(), hu({ type: "footnoteDefinition", identifier: cu.toLowerCase(), label: cu, children: Fu });
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
function q(N, P, V) {
|
|
81
|
-
var H = P.length + 1, Y = 0, K, tu, W, uu;
|
|
82
|
-
if (P.charCodeAt(Y++) === o && P.charCodeAt(Y++) === s) {
|
|
83
|
-
for (tu = Y; Y < H; ) {
|
|
84
|
-
if (uu = P.charCodeAt(Y), uu !== uu || uu === r || uu === t || uu === n)
|
|
85
|
-
return;
|
|
86
|
-
if (uu === l) {
|
|
87
|
-
W = Y, Y++;
|
|
88
|
-
break;
|
|
89
|
-
}
|
|
90
|
-
Y++;
|
|
91
|
-
}
|
|
92
|
-
if (!(W === void 0 || tu === W))
|
|
93
|
-
return V ? !0 : (K = P.slice(tu, W), N(P.slice(0, Y))({ type: "footnoteReference", identifier: K.toLowerCase(), label: K }));
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
function J(N, P, V) {
|
|
97
|
-
var H = this, Y = P.length + 1, K = 0, tu = 0, W, uu, cu, lu, eu, G, Z;
|
|
98
|
-
if (P.charCodeAt(K++) === s && P.charCodeAt(K++) === o) {
|
|
99
|
-
for (cu = K; K < Y; ) {
|
|
100
|
-
if (uu = P.charCodeAt(K), uu !== uu)
|
|
101
|
-
return;
|
|
102
|
-
if (G === void 0)
|
|
103
|
-
if (uu === D)
|
|
104
|
-
K += 2;
|
|
105
|
-
else if (uu === o)
|
|
106
|
-
tu++, K++;
|
|
107
|
-
else if (uu === l)
|
|
108
|
-
if (tu === 0) {
|
|
109
|
-
lu = K, K++;
|
|
110
|
-
break;
|
|
111
|
-
} else
|
|
112
|
-
tu--, K++;
|
|
113
|
-
else if (uu === c) {
|
|
114
|
-
for (eu = K, G = 1; P.charCodeAt(eu + G) === c; )
|
|
115
|
-
G++;
|
|
116
|
-
K += G;
|
|
117
|
-
} else
|
|
118
|
-
K++;
|
|
119
|
-
else if (uu === c) {
|
|
120
|
-
for (eu = K, Z = 1; P.charCodeAt(eu + Z) === c; )
|
|
121
|
-
Z++;
|
|
122
|
-
K += Z, G === Z && (G = void 0), Z = void 0;
|
|
123
|
-
} else
|
|
124
|
-
K++;
|
|
125
|
-
}
|
|
126
|
-
if (lu !== void 0)
|
|
127
|
-
return V ? !0 : (W = N.now(), W.column += 2, W.offset += 2, N(P.slice(0, K))({ type: "footnote", children: H.tokenizeInline(P.slice(cu, lu), W) }));
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
function z(N, P, V) {
|
|
131
|
-
var H = 0;
|
|
132
|
-
if (P.charCodeAt(H) === i && H++, P.charCodeAt(H) === o && P.charCodeAt(H + 1) !== s)
|
|
133
|
-
return R.call(this, N, P, V);
|
|
134
|
-
}
|
|
135
|
-
function O(N, P, V) {
|
|
136
|
-
for (var H = 0, Y = P.charCodeAt(H); Y === n || Y === t; )
|
|
137
|
-
Y = P.charCodeAt(++H);
|
|
138
|
-
if (Y === o && P.charCodeAt(H + 1) !== s)
|
|
139
|
-
return L.call(this, N, P, V);
|
|
140
|
-
}
|
|
141
|
-
function $(N, P) {
|
|
142
|
-
return N.indexOf("[", P);
|
|
143
|
-
}
|
|
144
|
-
function M(N, P) {
|
|
145
|
-
return N.indexOf("^[", P);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
function f(h) {
|
|
149
|
-
var F = h.prototype.visitors, A = " ";
|
|
150
|
-
F.footnote = y, F.footnoteReference = w, F.footnoteDefinition = T;
|
|
151
|
-
function y(b) {
|
|
152
|
-
return "^[" + this.all(b).join("") + "]";
|
|
153
|
-
}
|
|
154
|
-
function w(b) {
|
|
155
|
-
return "[^" + (b.label || b.identifier) + "]";
|
|
156
|
-
}
|
|
157
|
-
function T(b) {
|
|
158
|
-
for (var k = this.all(b).join(`
|
|
159
|
-
|
|
160
|
-
`).split(`
|
|
161
|
-
`), L = 0, R = k.length, v; ++L < R; )
|
|
162
|
-
v = k[L], v !== "" && (k[L] = A + v);
|
|
163
|
-
return "[^" + (b.label || b.identifier) + "]: " + k.join(`
|
|
164
|
-
`);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
function B(h, F, A) {
|
|
168
|
-
h.splice(h.indexOf(F), 0, A);
|
|
169
|
-
}
|
|
170
|
-
function p(h, F, A, y) {
|
|
171
|
-
for (var w = h.length, T = -1; ++T < w; )
|
|
172
|
-
if (F[h[T][0]].apply(A, y))
|
|
173
|
-
return !0;
|
|
174
|
-
return !1;
|
|
175
|
-
}
|
|
176
|
-
}), At = I((u) => {
|
|
177
|
-
u.isRemarkParser = e, u.isRemarkCompiler = t;
|
|
178
|
-
function e(r) {
|
|
179
|
-
return !!(r && r.prototype && r.prototype.blockTokenizers);
|
|
180
|
-
}
|
|
181
|
-
function t(r) {
|
|
182
|
-
return !!(r && r.prototype && r.prototype.visitors);
|
|
183
|
-
}
|
|
184
|
-
}), lr = I((u, e) => {
|
|
185
|
-
var t = At();
|
|
186
|
-
e.exports = c;
|
|
187
|
-
var r = 9, n = 32, i = 36, a = 48, o = 57, D = 92, l = ["math", "math-inline"], s = "math-display";
|
|
188
|
-
function c(E) {
|
|
189
|
-
let m = this.Parser, g = this.Compiler;
|
|
190
|
-
t.isRemarkParser(m) && C(m, E), t.isRemarkCompiler(g) && d(g);
|
|
191
|
-
}
|
|
192
|
-
function C(E, m) {
|
|
193
|
-
let g = E.prototype, x = g.inlineMethods;
|
|
194
|
-
B.locator = f, g.inlineTokenizers.math = B, x.splice(x.indexOf("text"), 0, "math");
|
|
195
|
-
function f(p, h) {
|
|
196
|
-
return p.indexOf("$", h);
|
|
197
|
-
}
|
|
198
|
-
function B(p, h, F) {
|
|
199
|
-
let A = h.length, y = !1, w = !1, T = 0, b, k, L, R, v, S, U;
|
|
200
|
-
if (h.charCodeAt(T) === D && (w = !0, T++), h.charCodeAt(T) === i) {
|
|
201
|
-
if (T++, w)
|
|
202
|
-
return F ? !0 : p(h.slice(0, T))({ type: "text", value: "$" });
|
|
203
|
-
if (h.charCodeAt(T) === i && (y = !0, T++), L = h.charCodeAt(T), !(L === n || L === r)) {
|
|
204
|
-
for (R = T; T < A; ) {
|
|
205
|
-
if (k = L, L = h.charCodeAt(T + 1), k === i) {
|
|
206
|
-
if (b = h.charCodeAt(T - 1), b !== n && b !== r && (L !== L || L < a || L > o) && (!y || L === i)) {
|
|
207
|
-
v = T - 1, T++, y && T++, S = T;
|
|
208
|
-
break;
|
|
209
|
-
}
|
|
210
|
-
} else
|
|
211
|
-
k === D && (T++, L = h.charCodeAt(T + 1));
|
|
212
|
-
T++;
|
|
213
|
-
}
|
|
214
|
-
if (S !== void 0)
|
|
215
|
-
return F ? !0 : (U = h.slice(R, v + 1), p(h.slice(0, S))({ type: "inlineMath", value: U, data: { hName: "span", hProperties: { className: l.concat(y && m.inlineMathDouble ? [s] : []) }, hChildren: [{ type: "text", value: U }] } }));
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
function d(E) {
|
|
221
|
-
let m = E.prototype;
|
|
222
|
-
m.visitors.inlineMath = g;
|
|
223
|
-
function g(x) {
|
|
224
|
-
let f = "$";
|
|
225
|
-
return (x.data && x.data.hProperties && x.data.hProperties.className || []).includes(s) && (f = "$$"), f + x.value + f;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}), cr = I((u, e) => {
|
|
229
|
-
var t = At();
|
|
230
|
-
e.exports = s;
|
|
231
|
-
var r = 10, n = 32, i = 36, a = `
|
|
232
|
-
`, o = "$", D = 2, l = ["math", "math-display"];
|
|
233
|
-
function s() {
|
|
234
|
-
let d = this.Parser, E = this.Compiler;
|
|
235
|
-
t.isRemarkParser(d) && c(d), t.isRemarkCompiler(E) && C(E);
|
|
236
|
-
}
|
|
237
|
-
function c(d) {
|
|
238
|
-
let E = d.prototype, m = E.blockMethods, g = E.interruptParagraph, x = E.interruptList, f = E.interruptBlockquote;
|
|
239
|
-
E.blockTokenizers.math = B, m.splice(m.indexOf("fencedCode") + 1, 0, "math"), g.splice(g.indexOf("fencedCode") + 1, 0, ["math"]), x.splice(x.indexOf("fencedCode") + 1, 0, ["math"]), f.splice(f.indexOf("fencedCode") + 1, 0, ["math"]);
|
|
240
|
-
function B(p, h, F) {
|
|
241
|
-
var A = h.length, y = 0;
|
|
242
|
-
let w, T, b, k, L, R, v, S, U, j, _;
|
|
243
|
-
for (; y < A && h.charCodeAt(y) === n; )
|
|
244
|
-
y++;
|
|
245
|
-
for (L = y; y < A && h.charCodeAt(y) === i; )
|
|
246
|
-
y++;
|
|
247
|
-
if (R = y - L, !(R < D)) {
|
|
248
|
-
for (; y < A && h.charCodeAt(y) === n; )
|
|
249
|
-
y++;
|
|
250
|
-
for (v = y; y < A; ) {
|
|
251
|
-
if (w = h.charCodeAt(y), w === i)
|
|
252
|
-
return;
|
|
253
|
-
if (w === r)
|
|
254
|
-
break;
|
|
255
|
-
y++;
|
|
256
|
-
}
|
|
257
|
-
if (h.charCodeAt(y) === r) {
|
|
258
|
-
if (F)
|
|
259
|
-
return !0;
|
|
260
|
-
for (T = [], v !== y && T.push(h.slice(v, y)), y++, b = h.indexOf(a, y + 1), b = b === -1 ? A : b; y < A; ) {
|
|
261
|
-
for (S = !1, j = y, _ = b, k = b, U = 0; k > j && h.charCodeAt(k - 1) === n; )
|
|
262
|
-
k--;
|
|
263
|
-
for (; k > j && h.charCodeAt(k - 1) === i; )
|
|
264
|
-
U++, k--;
|
|
265
|
-
for (R <= U && h.indexOf(o, j) === k && (S = !0, _ = k); j <= _ && j - y < L && h.charCodeAt(j) === n; )
|
|
266
|
-
j++;
|
|
267
|
-
if (S)
|
|
268
|
-
for (; _ > j && h.charCodeAt(_ - 1) === n; )
|
|
269
|
-
_--;
|
|
270
|
-
if ((!S || j !== _) && T.push(h.slice(j, _)), S)
|
|
271
|
-
break;
|
|
272
|
-
y = b + 1, b = h.indexOf(a, y + 1), b = b === -1 ? A : b;
|
|
273
|
-
}
|
|
274
|
-
return T = T.join(`
|
|
275
|
-
`), p(h.slice(0, b))({ type: "math", value: T, data: { hName: "div", hProperties: { className: l.concat() }, hChildren: [{ type: "text", value: T }] } });
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
function C(d) {
|
|
281
|
-
let E = d.prototype;
|
|
282
|
-
E.visitors.math = m;
|
|
283
|
-
function m(g) {
|
|
284
|
-
return `$$
|
|
285
|
-
` + g.value + `
|
|
286
|
-
$$`;
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
}), fr = I((u, e) => {
|
|
290
|
-
var t = lr(), r = cr();
|
|
291
|
-
e.exports = n;
|
|
292
|
-
function n(i) {
|
|
293
|
-
var a = i || {};
|
|
294
|
-
r.call(this, a), t.call(this, a);
|
|
295
|
-
}
|
|
296
|
-
}), Mu = I((u, e) => {
|
|
297
|
-
e.exports = r;
|
|
298
|
-
var t = Object.prototype.hasOwnProperty;
|
|
299
|
-
function r() {
|
|
300
|
-
for (var n = {}, i = 0; i < arguments.length; i++) {
|
|
301
|
-
var a = arguments[i];
|
|
302
|
-
for (var o in a)
|
|
303
|
-
t.call(a, o) && (n[o] = a[o]);
|
|
304
|
-
}
|
|
305
|
-
return n;
|
|
306
|
-
}
|
|
307
|
-
}), pr = I((u, e) => {
|
|
308
|
-
typeof Object.create == "function" ? e.exports = function(t, r) {
|
|
309
|
-
r && (t.super_ = r, t.prototype = Object.create(r.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }));
|
|
310
|
-
} : e.exports = function(t, r) {
|
|
311
|
-
if (r) {
|
|
312
|
-
t.super_ = r;
|
|
313
|
-
var n = function() {
|
|
314
|
-
};
|
|
315
|
-
n.prototype = r.prototype, t.prototype = new n(), t.prototype.constructor = t;
|
|
316
|
-
}
|
|
317
|
-
};
|
|
318
|
-
}), hr = I((u, e) => {
|
|
319
|
-
var t = Mu(), r = pr();
|
|
320
|
-
e.exports = n;
|
|
321
|
-
function n(i) {
|
|
322
|
-
var a, o, D;
|
|
323
|
-
r(s, i), r(l, s), a = s.prototype;
|
|
324
|
-
for (o in a)
|
|
325
|
-
D = a[o], D && typeof D == "object" && (a[o] = "concat" in D ? D.concat() : t(D));
|
|
326
|
-
return s;
|
|
327
|
-
function l(c) {
|
|
328
|
-
return i.apply(this, c);
|
|
329
|
-
}
|
|
330
|
-
function s() {
|
|
331
|
-
return this instanceof s ? i.apply(this, arguments) : new l(arguments);
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
}), Fr = I((u, e) => {
|
|
335
|
-
e.exports = t;
|
|
336
|
-
function t(r, n, i) {
|
|
337
|
-
return a;
|
|
338
|
-
function a() {
|
|
339
|
-
var o = i || this, D = o[r];
|
|
340
|
-
return o[r] = !n, l;
|
|
341
|
-
function l() {
|
|
342
|
-
o[r] = D;
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
}), dr = I((u, e) => {
|
|
347
|
-
e.exports = t;
|
|
348
|
-
function t(r) {
|
|
349
|
-
for (var n = String(r), i = [], a = /\r?\n|\r/g; a.exec(n); )
|
|
350
|
-
i.push(a.lastIndex);
|
|
351
|
-
return i.push(n.length + 1), { toPoint: o, toPosition: o, toOffset: D };
|
|
352
|
-
function o(l) {
|
|
353
|
-
var s = -1;
|
|
354
|
-
if (l > -1 && l < i[i.length - 1]) {
|
|
355
|
-
for (; ++s < i.length; )
|
|
356
|
-
if (i[s] > l)
|
|
357
|
-
return { line: s + 1, column: l - (i[s - 1] || 0) + 1, offset: l };
|
|
358
|
-
}
|
|
359
|
-
return {};
|
|
360
|
-
}
|
|
361
|
-
function D(l) {
|
|
362
|
-
var s = l && l.line, c = l && l.column, C;
|
|
363
|
-
return !isNaN(s) && !isNaN(c) && s - 1 in i && (C = (i[s - 2] || 0) + c - 1 || 0), C > -1 && C < i[i.length - 1] ? C : -1;
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
}), Cr = I((u, e) => {
|
|
367
|
-
e.exports = r;
|
|
368
|
-
var t = "\\";
|
|
369
|
-
function r(n, i) {
|
|
370
|
-
return a;
|
|
371
|
-
function a(o) {
|
|
372
|
-
for (var D = 0, l = o.indexOf(t), s = n[i], c = [], C; l !== -1; )
|
|
373
|
-
c.push(o.slice(D, l)), D = l + 1, C = o.charAt(D), (!C || s.indexOf(C) === -1) && c.push(t), l = o.indexOf(t, D + 1);
|
|
374
|
-
return c.push(o.slice(D)), c.join("");
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
}), Ar = I((u, e) => {
|
|
378
|
-
e.exports = { AElig: "Æ", AMP: "&", Aacute: "Á", Acirc: "Â", Agrave: "À", Aring: "Å", Atilde: "Ã", Auml: "Ä", COPY: "©", Ccedil: "Ç", ETH: "Ð", Eacute: "É", Ecirc: "Ê", Egrave: "È", Euml: "Ë", GT: ">", Iacute: "Í", Icirc: "Î", Igrave: "Ì", Iuml: "Ï", LT: "<", Ntilde: "Ñ", Oacute: "Ó", Ocirc: "Ô", Ograve: "Ò", Oslash: "Ø", Otilde: "Õ", Ouml: "Ö", QUOT: '"', REG: "®", THORN: "Þ", Uacute: "Ú", Ucirc: "Û", Ugrave: "Ù", Uuml: "Ü", Yacute: "Ý", aacute: "á", acirc: "â", acute: "´", aelig: "æ", agrave: "à", amp: "&", aring: "å", atilde: "ã", auml: "ä", brvbar: "¦", ccedil: "ç", cedil: "¸", cent: "¢", copy: "©", curren: "¤", deg: "°", divide: "÷", eacute: "é", ecirc: "ê", egrave: "è", eth: "ð", euml: "ë", frac12: "½", frac14: "¼", frac34: "¾", gt: ">", iacute: "í", icirc: "î", iexcl: "¡", igrave: "ì", iquest: "¿", iuml: "ï", laquo: "«", lt: "<", macr: "¯", micro: "µ", middot: "·", nbsp: " ", not: "¬", ntilde: "ñ", oacute: "ó", ocirc: "ô", ograve: "ò", ordf: "ª", ordm: "º", oslash: "ø", otilde: "õ", ouml: "ö", para: "¶", plusmn: "±", pound: "£", quot: '"', raquo: "»", reg: "®", sect: "§", shy: "", sup1: "¹", sup2: "²", sup3: "³", szlig: "ß", thorn: "þ", times: "×", uacute: "ú", ucirc: "û", ugrave: "ù", uml: "¨", uuml: "ü", yacute: "ý", yen: "¥", yuml: "ÿ" };
|
|
379
|
-
}), gr = I((u, e) => {
|
|
380
|
-
e.exports = { 0: "�", 128: "€", 130: "‚", 131: "ƒ", 132: "„", 133: "…", 134: "†", 135: "‡", 136: "ˆ", 137: "‰", 138: "Š", 139: "‹", 140: "Œ", 142: "Ž", 145: "‘", 146: "’", 147: "“", 148: "”", 149: "•", 150: "–", 151: "—", 152: "˜", 153: "™", 154: "š", 155: "›", 156: "œ", 158: "ž", 159: "Ÿ" };
|
|
381
|
-
}), _u = I((u, e) => {
|
|
382
|
-
e.exports = t;
|
|
383
|
-
function t(r) {
|
|
384
|
-
var n = typeof r == "string" ? r.charCodeAt(0) : r;
|
|
385
|
-
return n >= 48 && n <= 57;
|
|
386
|
-
}
|
|
387
|
-
}), Er = I((u, e) => {
|
|
388
|
-
e.exports = t;
|
|
389
|
-
function t(r) {
|
|
390
|
-
var n = typeof r == "string" ? r.charCodeAt(0) : r;
|
|
391
|
-
return n >= 97 && n <= 102 || n >= 65 && n <= 70 || n >= 48 && n <= 57;
|
|
392
|
-
}
|
|
393
|
-
}), ne = I((u, e) => {
|
|
394
|
-
e.exports = t;
|
|
395
|
-
function t(r) {
|
|
396
|
-
var n = typeof r == "string" ? r.charCodeAt(0) : r;
|
|
397
|
-
return n >= 97 && n <= 122 || n >= 65 && n <= 90;
|
|
398
|
-
}
|
|
399
|
-
}), mr = I((u, e) => {
|
|
400
|
-
var t = ne(), r = _u();
|
|
401
|
-
e.exports = n;
|
|
402
|
-
function n(i) {
|
|
403
|
-
return t(i) || r(i);
|
|
404
|
-
}
|
|
405
|
-
}), vr = I((u, e) => {
|
|
406
|
-
e.exports = { AEli: "Æ", AElig: "Æ", AM: "&", AMP: "&", Aacut: "Á", Aacute: "Á", Abreve: "Ă", Acir: "Â", Acirc: "Â", Acy: "А", Afr: "𝔄", Agrav: "À", Agrave: "À", Alpha: "Α", Amacr: "Ā", And: "⩓", Aogon: "Ą", Aopf: "𝔸", ApplyFunction: "", Arin: "Å", Aring: "Å", Ascr: "𝒜", Assign: "≔", Atild: "Ã", Atilde: "Ã", Aum: "Ä", Auml: "Ä", Backslash: "∖", Barv: "⫧", Barwed: "⌆", Bcy: "Б", Because: "∵", Bernoullis: "ℬ", Beta: "Β", Bfr: "𝔅", Bopf: "𝔹", Breve: "˘", Bscr: "ℬ", Bumpeq: "≎", CHcy: "Ч", COP: "©", COPY: "©", Cacute: "Ć", Cap: "⋒", CapitalDifferentialD: "ⅅ", Cayleys: "ℭ", Ccaron: "Č", Ccedi: "Ç", Ccedil: "Ç", Ccirc: "Ĉ", Cconint: "∰", Cdot: "Ċ", Cedilla: "¸", CenterDot: "·", Cfr: "ℭ", Chi: "Χ", CircleDot: "⊙", CircleMinus: "⊖", CirclePlus: "⊕", CircleTimes: "⊗", ClockwiseContourIntegral: "∲", CloseCurlyDoubleQuote: "”", CloseCurlyQuote: "’", Colon: "∷", Colone: "⩴", Congruent: "≡", Conint: "∯", ContourIntegral: "∮", Copf: "ℂ", Coproduct: "∐", CounterClockwiseContourIntegral: "∳", Cross: "⨯", Cscr: "𝒞", Cup: "⋓", CupCap: "≍", DD: "ⅅ", DDotrahd: "⤑", DJcy: "Ђ", DScy: "Ѕ", DZcy: "Џ", Dagger: "‡", Darr: "↡", Dashv: "⫤", Dcaron: "Ď", Dcy: "Д", Del: "∇", Delta: "Δ", Dfr: "𝔇", DiacriticalAcute: "´", DiacriticalDot: "˙", DiacriticalDoubleAcute: "˝", DiacriticalGrave: "`", DiacriticalTilde: "˜", Diamond: "⋄", DifferentialD: "ⅆ", Dopf: "𝔻", Dot: "¨", DotDot: "⃜", DotEqual: "≐", DoubleContourIntegral: "∯", DoubleDot: "¨", DoubleDownArrow: "⇓", DoubleLeftArrow: "⇐", DoubleLeftRightArrow: "⇔", DoubleLeftTee: "⫤", DoubleLongLeftArrow: "⟸", DoubleLongLeftRightArrow: "⟺", DoubleLongRightArrow: "⟹", DoubleRightArrow: "⇒", DoubleRightTee: "⊨", DoubleUpArrow: "⇑", DoubleUpDownArrow: "⇕", DoubleVerticalBar: "∥", DownArrow: "↓", DownArrowBar: "⤓", DownArrowUpArrow: "⇵", DownBreve: "̑", DownLeftRightVector: "⥐", DownLeftTeeVector: "⥞", DownLeftVector: "↽", DownLeftVectorBar: "⥖", DownRightTeeVector: "⥟", DownRightVector: "⇁", DownRightVectorBar: "⥗", DownTee: "⊤", DownTeeArrow: "↧", Downarrow: "⇓", Dscr: "𝒟", Dstrok: "Đ", ENG: "Ŋ", ET: "Ð", ETH: "Ð", Eacut: "É", Eacute: "É", Ecaron: "Ě", Ecir: "Ê", Ecirc: "Ê", Ecy: "Э", Edot: "Ė", Efr: "𝔈", Egrav: "È", Egrave: "È", Element: "∈", Emacr: "Ē", EmptySmallSquare: "◻", EmptyVerySmallSquare: "▫", Eogon: "Ę", Eopf: "𝔼", Epsilon: "Ε", Equal: "⩵", EqualTilde: "≂", Equilibrium: "⇌", Escr: "ℰ", Esim: "⩳", Eta: "Η", Eum: "Ë", Euml: "Ë", Exists: "∃", ExponentialE: "ⅇ", Fcy: "Ф", Ffr: "𝔉", FilledSmallSquare: "◼", FilledVerySmallSquare: "▪", Fopf: "𝔽", ForAll: "∀", Fouriertrf: "ℱ", Fscr: "ℱ", GJcy: "Ѓ", G: ">", GT: ">", Gamma: "Γ", Gammad: "Ϝ", Gbreve: "Ğ", Gcedil: "Ģ", Gcirc: "Ĝ", Gcy: "Г", Gdot: "Ġ", Gfr: "𝔊", Gg: "⋙", Gopf: "𝔾", GreaterEqual: "≥", GreaterEqualLess: "⋛", GreaterFullEqual: "≧", GreaterGreater: "⪢", GreaterLess: "≷", GreaterSlantEqual: "⩾", GreaterTilde: "≳", Gscr: "𝒢", Gt: "≫", HARDcy: "Ъ", Hacek: "ˇ", Hat: "^", Hcirc: "Ĥ", Hfr: "ℌ", HilbertSpace: "ℋ", Hopf: "ℍ", HorizontalLine: "─", Hscr: "ℋ", Hstrok: "Ħ", HumpDownHump: "≎", HumpEqual: "≏", IEcy: "Е", IJlig: "IJ", IOcy: "Ё", Iacut: "Í", Iacute: "Í", Icir: "Î", Icirc: "Î", Icy: "И", Idot: "İ", Ifr: "ℑ", Igrav: "Ì", Igrave: "Ì", Im: "ℑ", Imacr: "Ī", ImaginaryI: "ⅈ", Implies: "⇒", Int: "∬", Integral: "∫", Intersection: "⋂", InvisibleComma: "", InvisibleTimes: "", Iogon: "Į", Iopf: "𝕀", Iota: "Ι", Iscr: "ℐ", Itilde: "Ĩ", Iukcy: "І", Ium: "Ï", Iuml: "Ï", Jcirc: "Ĵ", Jcy: "Й", Jfr: "𝔍", Jopf: "𝕁", Jscr: "𝒥", Jsercy: "Ј", Jukcy: "Є", KHcy: "Х", KJcy: "Ќ", Kappa: "Κ", Kcedil: "Ķ", Kcy: "К", Kfr: "𝔎", Kopf: "𝕂", Kscr: "𝒦", LJcy: "Љ", L: "<", LT: "<", Lacute: "Ĺ", Lambda: "Λ", Lang: "⟪", Laplacetrf: "ℒ", Larr: "↞", Lcaron: "Ľ", Lcedil: "Ļ", Lcy: "Л", LeftAngleBracket: "⟨", LeftArrow: "←", LeftArrowBar: "⇤", LeftArrowRightArrow: "⇆", LeftCeiling: "⌈", LeftDoubleBracket: "⟦", LeftDownTeeVector: "⥡", LeftDownVector: "⇃", LeftDownVectorBar: "⥙", LeftFloor: "⌊", LeftRightArrow: "↔", LeftRightVector: "⥎", LeftTee: "⊣", LeftTeeArrow: "↤", LeftTeeVector: "⥚", LeftTriangle: "⊲", LeftTriangleBar: "⧏", LeftTriangleEqual: "⊴", LeftUpDownVector: "⥑", LeftUpTeeVector: "⥠", LeftUpVector: "↿", LeftUpVectorBar: "⥘", LeftVector: "↼", LeftVectorBar: "⥒", Leftarrow: "⇐", Leftrightarrow: "⇔", LessEqualGreater: "⋚", LessFullEqual: "≦", LessGreater: "≶", LessLess: "⪡", LessSlantEqual: "⩽", LessTilde: "≲", Lfr: "𝔏", Ll: "⋘", Lleftarrow: "⇚", Lmidot: "Ŀ", LongLeftArrow: "⟵", LongLeftRightArrow: "⟷", LongRightArrow: "⟶", Longleftarrow: "⟸", Longleftrightarrow: "⟺", Longrightarrow: "⟹", Lopf: "𝕃", LowerLeftArrow: "↙", LowerRightArrow: "↘", Lscr: "ℒ", Lsh: "↰", Lstrok: "Ł", Lt: "≪", Map: "⤅", Mcy: "М", MediumSpace: " ", Mellintrf: "ℳ", Mfr: "𝔐", MinusPlus: "∓", Mopf: "𝕄", Mscr: "ℳ", Mu: "Μ", NJcy: "Њ", Nacute: "Ń", Ncaron: "Ň", Ncedil: "Ņ", Ncy: "Н", NegativeMediumSpace: "", NegativeThickSpace: "", NegativeThinSpace: "", NegativeVeryThinSpace: "", NestedGreaterGreater: "≫", NestedLessLess: "≪", NewLine: `
|
|
407
|
-
`, Nfr: "𝔑", NoBreak: "", NonBreakingSpace: " ", Nopf: "ℕ", Not: "⫬", NotCongruent: "≢", NotCupCap: "≭", NotDoubleVerticalBar: "∦", NotElement: "∉", NotEqual: "≠", NotEqualTilde: "≂̸", NotExists: "∄", NotGreater: "≯", NotGreaterEqual: "≱", NotGreaterFullEqual: "≧̸", NotGreaterGreater: "≫̸", NotGreaterLess: "≹", NotGreaterSlantEqual: "⩾̸", NotGreaterTilde: "≵", NotHumpDownHump: "≎̸", NotHumpEqual: "≏̸", NotLeftTriangle: "⋪", NotLeftTriangleBar: "⧏̸", NotLeftTriangleEqual: "⋬", NotLess: "≮", NotLessEqual: "≰", NotLessGreater: "≸", NotLessLess: "≪̸", NotLessSlantEqual: "⩽̸", NotLessTilde: "≴", NotNestedGreaterGreater: "⪢̸", NotNestedLessLess: "⪡̸", NotPrecedes: "⊀", NotPrecedesEqual: "⪯̸", NotPrecedesSlantEqual: "⋠", NotReverseElement: "∌", NotRightTriangle: "⋫", NotRightTriangleBar: "⧐̸", NotRightTriangleEqual: "⋭", NotSquareSubset: "⊏̸", NotSquareSubsetEqual: "⋢", NotSquareSuperset: "⊐̸", NotSquareSupersetEqual: "⋣", NotSubset: "⊂⃒", NotSubsetEqual: "⊈", NotSucceeds: "⊁", NotSucceedsEqual: "⪰̸", NotSucceedsSlantEqual: "⋡", NotSucceedsTilde: "≿̸", NotSuperset: "⊃⃒", NotSupersetEqual: "⊉", NotTilde: "≁", NotTildeEqual: "≄", NotTildeFullEqual: "≇", NotTildeTilde: "≉", NotVerticalBar: "∤", Nscr: "𝒩", Ntild: "Ñ", Ntilde: "Ñ", Nu: "Ν", OElig: "Œ", Oacut: "Ó", Oacute: "Ó", Ocir: "Ô", Ocirc: "Ô", Ocy: "О", Odblac: "Ő", Ofr: "𝔒", Ograv: "Ò", Ograve: "Ò", Omacr: "Ō", Omega: "Ω", Omicron: "Ο", Oopf: "𝕆", OpenCurlyDoubleQuote: "“", OpenCurlyQuote: "‘", Or: "⩔", Oscr: "𝒪", Oslas: "Ø", Oslash: "Ø", Otild: "Õ", Otilde: "Õ", Otimes: "⨷", Oum: "Ö", Ouml: "Ö", OverBar: "‾", OverBrace: "⏞", OverBracket: "⎴", OverParenthesis: "⏜", PartialD: "∂", Pcy: "П", Pfr: "𝔓", Phi: "Φ", Pi: "Π", PlusMinus: "±", Poincareplane: "ℌ", Popf: "ℙ", Pr: "⪻", Precedes: "≺", PrecedesEqual: "⪯", PrecedesSlantEqual: "≼", PrecedesTilde: "≾", Prime: "″", Product: "∏", Proportion: "∷", Proportional: "∝", Pscr: "𝒫", Psi: "Ψ", QUO: '"', QUOT: '"', Qfr: "𝔔", Qopf: "ℚ", Qscr: "𝒬", RBarr: "⤐", RE: "®", REG: "®", Racute: "Ŕ", Rang: "⟫", Rarr: "↠", Rarrtl: "⤖", Rcaron: "Ř", Rcedil: "Ŗ", Rcy: "Р", Re: "ℜ", ReverseElement: "∋", ReverseEquilibrium: "⇋", ReverseUpEquilibrium: "⥯", Rfr: "ℜ", Rho: "Ρ", RightAngleBracket: "⟩", RightArrow: "→", RightArrowBar: "⇥", RightArrowLeftArrow: "⇄", RightCeiling: "⌉", RightDoubleBracket: "⟧", RightDownTeeVector: "⥝", RightDownVector: "⇂", RightDownVectorBar: "⥕", RightFloor: "⌋", RightTee: "⊢", RightTeeArrow: "↦", RightTeeVector: "⥛", RightTriangle: "⊳", RightTriangleBar: "⧐", RightTriangleEqual: "⊵", RightUpDownVector: "⥏", RightUpTeeVector: "⥜", RightUpVector: "↾", RightUpVectorBar: "⥔", RightVector: "⇀", RightVectorBar: "⥓", Rightarrow: "⇒", Ropf: "ℝ", RoundImplies: "⥰", Rrightarrow: "⇛", Rscr: "ℛ", Rsh: "↱", RuleDelayed: "⧴", SHCHcy: "Щ", SHcy: "Ш", SOFTcy: "Ь", Sacute: "Ś", Sc: "⪼", Scaron: "Š", Scedil: "Ş", Scirc: "Ŝ", Scy: "С", Sfr: "𝔖", ShortDownArrow: "↓", ShortLeftArrow: "←", ShortRightArrow: "→", ShortUpArrow: "↑", Sigma: "Σ", SmallCircle: "∘", Sopf: "𝕊", Sqrt: "√", Square: "□", SquareIntersection: "⊓", SquareSubset: "⊏", SquareSubsetEqual: "⊑", SquareSuperset: "⊐", SquareSupersetEqual: "⊒", SquareUnion: "⊔", Sscr: "𝒮", Star: "⋆", Sub: "⋐", Subset: "⋐", SubsetEqual: "⊆", Succeeds: "≻", SucceedsEqual: "⪰", SucceedsSlantEqual: "≽", SucceedsTilde: "≿", SuchThat: "∋", Sum: "∑", Sup: "⋑", Superset: "⊃", SupersetEqual: "⊇", Supset: "⋑", THOR: "Þ", THORN: "Þ", TRADE: "™", TSHcy: "Ћ", TScy: "Ц", Tab: " ", Tau: "Τ", Tcaron: "Ť", Tcedil: "Ţ", Tcy: "Т", Tfr: "𝔗", Therefore: "∴", Theta: "Θ", ThickSpace: " ", ThinSpace: " ", Tilde: "∼", TildeEqual: "≃", TildeFullEqual: "≅", TildeTilde: "≈", Topf: "𝕋", TripleDot: "⃛", Tscr: "𝒯", Tstrok: "Ŧ", Uacut: "Ú", Uacute: "Ú", Uarr: "↟", Uarrocir: "⥉", Ubrcy: "Ў", Ubreve: "Ŭ", Ucir: "Û", Ucirc: "Û", Ucy: "У", Udblac: "Ű", Ufr: "𝔘", Ugrav: "Ù", Ugrave: "Ù", Umacr: "Ū", UnderBar: "_", UnderBrace: "⏟", UnderBracket: "⎵", UnderParenthesis: "⏝", Union: "⋃", UnionPlus: "⊎", Uogon: "Ų", Uopf: "𝕌", UpArrow: "↑", UpArrowBar: "⤒", UpArrowDownArrow: "⇅", UpDownArrow: "↕", UpEquilibrium: "⥮", UpTee: "⊥", UpTeeArrow: "↥", Uparrow: "⇑", Updownarrow: "⇕", UpperLeftArrow: "↖", UpperRightArrow: "↗", Upsi: "ϒ", Upsilon: "Υ", Uring: "Ů", Uscr: "𝒰", Utilde: "Ũ", Uum: "Ü", Uuml: "Ü", VDash: "⊫", Vbar: "⫫", Vcy: "В", Vdash: "⊩", Vdashl: "⫦", Vee: "⋁", Verbar: "‖", Vert: "‖", VerticalBar: "∣", VerticalLine: "|", VerticalSeparator: "❘", VerticalTilde: "≀", VeryThinSpace: " ", Vfr: "𝔙", Vopf: "𝕍", Vscr: "𝒱", Vvdash: "⊪", Wcirc: "Ŵ", Wedge: "⋀", Wfr: "𝔚", Wopf: "𝕎", Wscr: "𝒲", Xfr: "𝔛", Xi: "Ξ", Xopf: "𝕏", Xscr: "𝒳", YAcy: "Я", YIcy: "Ї", YUcy: "Ю", Yacut: "Ý", Yacute: "Ý", Ycirc: "Ŷ", Ycy: "Ы", Yfr: "𝔜", Yopf: "𝕐", Yscr: "𝒴", Yuml: "Ÿ", ZHcy: "Ж", Zacute: "Ź", Zcaron: "Ž", Zcy: "З", Zdot: "Ż", ZeroWidthSpace: "", Zeta: "Ζ", Zfr: "ℨ", Zopf: "ℤ", Zscr: "𝒵", aacut: "á", aacute: "á", abreve: "ă", ac: "∾", acE: "∾̳", acd: "∿", acir: "â", acirc: "â", acut: "´", acute: "´", acy: "а", aeli: "æ", aelig: "æ", af: "", afr: "𝔞", agrav: "à", agrave: "à", alefsym: "ℵ", aleph: "ℵ", alpha: "α", amacr: "ā", amalg: "⨿", am: "&", amp: "&", and: "∧", andand: "⩕", andd: "⩜", andslope: "⩘", andv: "⩚", ang: "∠", ange: "⦤", angle: "∠", angmsd: "∡", angmsdaa: "⦨", angmsdab: "⦩", angmsdac: "⦪", angmsdad: "⦫", angmsdae: "⦬", angmsdaf: "⦭", angmsdag: "⦮", angmsdah: "⦯", angrt: "∟", angrtvb: "⊾", angrtvbd: "⦝", angsph: "∢", angst: "Å", angzarr: "⍼", aogon: "ą", aopf: "𝕒", ap: "≈", apE: "⩰", apacir: "⩯", ape: "≊", apid: "≋", apos: "'", approx: "≈", approxeq: "≊", arin: "å", aring: "å", ascr: "𝒶", ast: "*", asymp: "≈", asympeq: "≍", atild: "ã", atilde: "ã", aum: "ä", auml: "ä", awconint: "∳", awint: "⨑", bNot: "⫭", backcong: "≌", backepsilon: "϶", backprime: "‵", backsim: "∽", backsimeq: "⋍", barvee: "⊽", barwed: "⌅", barwedge: "⌅", bbrk: "⎵", bbrktbrk: "⎶", bcong: "≌", bcy: "б", bdquo: "„", becaus: "∵", because: "∵", bemptyv: "⦰", bepsi: "϶", bernou: "ℬ", beta: "β", beth: "ℶ", between: "≬", bfr: "𝔟", bigcap: "⋂", bigcirc: "◯", bigcup: "⋃", bigodot: "⨀", bigoplus: "⨁", bigotimes: "⨂", bigsqcup: "⨆", bigstar: "★", bigtriangledown: "▽", bigtriangleup: "△", biguplus: "⨄", bigvee: "⋁", bigwedge: "⋀", bkarow: "⤍", blacklozenge: "⧫", blacksquare: "▪", blacktriangle: "▴", blacktriangledown: "▾", blacktriangleleft: "◂", blacktriangleright: "▸", blank: "␣", blk12: "▒", blk14: "░", blk34: "▓", block: "█", bne: "=⃥", bnequiv: "≡⃥", bnot: "⌐", bopf: "𝕓", bot: "⊥", bottom: "⊥", bowtie: "⋈", boxDL: "╗", boxDR: "╔", boxDl: "╖", boxDr: "╓", boxH: "═", boxHD: "╦", boxHU: "╩", boxHd: "╤", boxHu: "╧", boxUL: "╝", boxUR: "╚", boxUl: "╜", boxUr: "╙", boxV: "║", boxVH: "╬", boxVL: "╣", boxVR: "╠", boxVh: "╫", boxVl: "╢", boxVr: "╟", boxbox: "⧉", boxdL: "╕", boxdR: "╒", boxdl: "┐", boxdr: "┌", boxh: "─", boxhD: "╥", boxhU: "╨", boxhd: "┬", boxhu: "┴", boxminus: "⊟", boxplus: "⊞", boxtimes: "⊠", boxuL: "╛", boxuR: "╘", boxul: "┘", boxur: "└", boxv: "│", boxvH: "╪", boxvL: "╡", boxvR: "╞", boxvh: "┼", boxvl: "┤", boxvr: "├", bprime: "‵", breve: "˘", brvba: "¦", brvbar: "¦", bscr: "𝒷", bsemi: "⁏", bsim: "∽", bsime: "⋍", bsol: "\\", bsolb: "⧅", bsolhsub: "⟈", bull: "•", bullet: "•", bump: "≎", bumpE: "⪮", bumpe: "≏", bumpeq: "≏", cacute: "ć", cap: "∩", capand: "⩄", capbrcup: "⩉", capcap: "⩋", capcup: "⩇", capdot: "⩀", caps: "∩︀", caret: "⁁", caron: "ˇ", ccaps: "⩍", ccaron: "č", ccedi: "ç", ccedil: "ç", ccirc: "ĉ", ccups: "⩌", ccupssm: "⩐", cdot: "ċ", cedi: "¸", cedil: "¸", cemptyv: "⦲", cen: "¢", cent: "¢", centerdot: "·", cfr: "𝔠", chcy: "ч", check: "✓", checkmark: "✓", chi: "χ", cir: "○", cirE: "⧃", circ: "ˆ", circeq: "≗", circlearrowleft: "↺", circlearrowright: "↻", circledR: "®", circledS: "Ⓢ", circledast: "⊛", circledcirc: "⊚", circleddash: "⊝", cire: "≗", cirfnint: "⨐", cirmid: "⫯", cirscir: "⧂", clubs: "♣", clubsuit: "♣", colon: ":", colone: "≔", coloneq: "≔", comma: ",", commat: "@", comp: "∁", compfn: "∘", complement: "∁", complexes: "ℂ", cong: "≅", congdot: "⩭", conint: "∮", copf: "𝕔", coprod: "∐", cop: "©", copy: "©", copysr: "℗", crarr: "↵", cross: "✗", cscr: "𝒸", csub: "⫏", csube: "⫑", csup: "⫐", csupe: "⫒", ctdot: "⋯", cudarrl: "⤸", cudarrr: "⤵", cuepr: "⋞", cuesc: "⋟", cularr: "↶", cularrp: "⤽", cup: "∪", cupbrcap: "⩈", cupcap: "⩆", cupcup: "⩊", cupdot: "⊍", cupor: "⩅", cups: "∪︀", curarr: "↷", curarrm: "⤼", curlyeqprec: "⋞", curlyeqsucc: "⋟", curlyvee: "⋎", curlywedge: "⋏", curre: "¤", curren: "¤", curvearrowleft: "↶", curvearrowright: "↷", cuvee: "⋎", cuwed: "⋏", cwconint: "∲", cwint: "∱", cylcty: "⌭", dArr: "⇓", dHar: "⥥", dagger: "†", daleth: "ℸ", darr: "↓", dash: "‐", dashv: "⊣", dbkarow: "⤏", dblac: "˝", dcaron: "ď", dcy: "д", dd: "ⅆ", ddagger: "‡", ddarr: "⇊", ddotseq: "⩷", de: "°", deg: "°", delta: "δ", demptyv: "⦱", dfisht: "⥿", dfr: "𝔡", dharl: "⇃", dharr: "⇂", diam: "⋄", diamond: "⋄", diamondsuit: "♦", diams: "♦", die: "¨", digamma: "ϝ", disin: "⋲", div: "÷", divid: "÷", divide: "÷", divideontimes: "⋇", divonx: "⋇", djcy: "ђ", dlcorn: "⌞", dlcrop: "⌍", dollar: "$", dopf: "𝕕", dot: "˙", doteq: "≐", doteqdot: "≑", dotminus: "∸", dotplus: "∔", dotsquare: "⊡", doublebarwedge: "⌆", downarrow: "↓", downdownarrows: "⇊", downharpoonleft: "⇃", downharpoonright: "⇂", drbkarow: "⤐", drcorn: "⌟", drcrop: "⌌", dscr: "𝒹", dscy: "ѕ", dsol: "⧶", dstrok: "đ", dtdot: "⋱", dtri: "▿", dtrif: "▾", duarr: "⇵", duhar: "⥯", dwangle: "⦦", dzcy: "џ", dzigrarr: "⟿", eDDot: "⩷", eDot: "≑", eacut: "é", eacute: "é", easter: "⩮", ecaron: "ě", ecir: "ê", ecirc: "ê", ecolon: "≕", ecy: "э", edot: "ė", ee: "ⅇ", efDot: "≒", efr: "𝔢", eg: "⪚", egrav: "è", egrave: "è", egs: "⪖", egsdot: "⪘", el: "⪙", elinters: "⏧", ell: "ℓ", els: "⪕", elsdot: "⪗", emacr: "ē", empty: "∅", emptyset: "∅", emptyv: "∅", emsp13: " ", emsp14: " ", emsp: " ", eng: "ŋ", ensp: " ", eogon: "ę", eopf: "𝕖", epar: "⋕", eparsl: "⧣", eplus: "⩱", epsi: "ε", epsilon: "ε", epsiv: "ϵ", eqcirc: "≖", eqcolon: "≕", eqsim: "≂", eqslantgtr: "⪖", eqslantless: "⪕", equals: "=", equest: "≟", equiv: "≡", equivDD: "⩸", eqvparsl: "⧥", erDot: "≓", erarr: "⥱", escr: "ℯ", esdot: "≐", esim: "≂", eta: "η", et: "ð", eth: "ð", eum: "ë", euml: "ë", euro: "€", excl: "!", exist: "∃", expectation: "ℰ", exponentiale: "ⅇ", fallingdotseq: "≒", fcy: "ф", female: "♀", ffilig: "ffi", fflig: "ff", ffllig: "ffl", ffr: "𝔣", filig: "fi", fjlig: "fj", flat: "♭", fllig: "fl", fltns: "▱", fnof: "ƒ", fopf: "𝕗", forall: "∀", fork: "⋔", forkv: "⫙", fpartint: "⨍", frac1: "¼", frac12: "½", frac13: "⅓", frac14: "¼", frac15: "⅕", frac16: "⅙", frac18: "⅛", frac23: "⅔", frac25: "⅖", frac3: "¾", frac34: "¾", frac35: "⅗", frac38: "⅜", frac45: "⅘", frac56: "⅚", frac58: "⅝", frac78: "⅞", frasl: "⁄", frown: "⌢", fscr: "𝒻", gE: "≧", gEl: "⪌", gacute: "ǵ", gamma: "γ", gammad: "ϝ", gap: "⪆", gbreve: "ğ", gcirc: "ĝ", gcy: "г", gdot: "ġ", ge: "≥", gel: "⋛", geq: "≥", geqq: "≧", geqslant: "⩾", ges: "⩾", gescc: "⪩", gesdot: "⪀", gesdoto: "⪂", gesdotol: "⪄", gesl: "⋛︀", gesles: "⪔", gfr: "𝔤", gg: "≫", ggg: "⋙", gimel: "ℷ", gjcy: "ѓ", gl: "≷", glE: "⪒", gla: "⪥", glj: "⪤", gnE: "≩", gnap: "⪊", gnapprox: "⪊", gne: "⪈", gneq: "⪈", gneqq: "≩", gnsim: "⋧", gopf: "𝕘", grave: "`", gscr: "ℊ", gsim: "≳", gsime: "⪎", gsiml: "⪐", g: ">", gt: ">", gtcc: "⪧", gtcir: "⩺", gtdot: "⋗", gtlPar: "⦕", gtquest: "⩼", gtrapprox: "⪆", gtrarr: "⥸", gtrdot: "⋗", gtreqless: "⋛", gtreqqless: "⪌", gtrless: "≷", gtrsim: "≳", gvertneqq: "≩︀", gvnE: "≩︀", hArr: "⇔", hairsp: " ", half: "½", hamilt: "ℋ", hardcy: "ъ", harr: "↔", harrcir: "⥈", harrw: "↭", hbar: "ℏ", hcirc: "ĥ", hearts: "♥", heartsuit: "♥", hellip: "…", hercon: "⊹", hfr: "𝔥", hksearow: "⤥", hkswarow: "⤦", hoarr: "⇿", homtht: "∻", hookleftarrow: "↩", hookrightarrow: "↪", hopf: "𝕙", horbar: "―", hscr: "𝒽", hslash: "ℏ", hstrok: "ħ", hybull: "⁃", hyphen: "‐", iacut: "í", iacute: "í", ic: "", icir: "î", icirc: "î", icy: "и", iecy: "е", iexc: "¡", iexcl: "¡", iff: "⇔", ifr: "𝔦", igrav: "ì", igrave: "ì", ii: "ⅈ", iiiint: "⨌", iiint: "∭", iinfin: "⧜", iiota: "℩", ijlig: "ij", imacr: "ī", image: "ℑ", imagline: "ℐ", imagpart: "ℑ", imath: "ı", imof: "⊷", imped: "Ƶ", in: "∈", incare: "℅", infin: "∞", infintie: "⧝", inodot: "ı", int: "∫", intcal: "⊺", integers: "ℤ", intercal: "⊺", intlarhk: "⨗", intprod: "⨼", iocy: "ё", iogon: "į", iopf: "𝕚", iota: "ι", iprod: "⨼", iques: "¿", iquest: "¿", iscr: "𝒾", isin: "∈", isinE: "⋹", isindot: "⋵", isins: "⋴", isinsv: "⋳", isinv: "∈", it: "", itilde: "ĩ", iukcy: "і", ium: "ï", iuml: "ï", jcirc: "ĵ", jcy: "й", jfr: "𝔧", jmath: "ȷ", jopf: "𝕛", jscr: "𝒿", jsercy: "ј", jukcy: "є", kappa: "κ", kappav: "ϰ", kcedil: "ķ", kcy: "к", kfr: "𝔨", kgreen: "ĸ", khcy: "х", kjcy: "ќ", kopf: "𝕜", kscr: "𝓀", lAarr: "⇚", lArr: "⇐", lAtail: "⤛", lBarr: "⤎", lE: "≦", lEg: "⪋", lHar: "⥢", lacute: "ĺ", laemptyv: "⦴", lagran: "ℒ", lambda: "λ", lang: "⟨", langd: "⦑", langle: "⟨", lap: "⪅", laqu: "«", laquo: "«", larr: "←", larrb: "⇤", larrbfs: "⤟", larrfs: "⤝", larrhk: "↩", larrlp: "↫", larrpl: "⤹", larrsim: "⥳", larrtl: "↢", lat: "⪫", latail: "⤙", late: "⪭", lates: "⪭︀", lbarr: "⤌", lbbrk: "❲", lbrace: "{", lbrack: "[", lbrke: "⦋", lbrksld: "⦏", lbrkslu: "⦍", lcaron: "ľ", lcedil: "ļ", lceil: "⌈", lcub: "{", lcy: "л", ldca: "⤶", ldquo: "“", ldquor: "„", ldrdhar: "⥧", ldrushar: "⥋", ldsh: "↲", le: "≤", leftarrow: "←", leftarrowtail: "↢", leftharpoondown: "↽", leftharpoonup: "↼", leftleftarrows: "⇇", leftrightarrow: "↔", leftrightarrows: "⇆", leftrightharpoons: "⇋", leftrightsquigarrow: "↭", leftthreetimes: "⋋", leg: "⋚", leq: "≤", leqq: "≦", leqslant: "⩽", les: "⩽", lescc: "⪨", lesdot: "⩿", lesdoto: "⪁", lesdotor: "⪃", lesg: "⋚︀", lesges: "⪓", lessapprox: "⪅", lessdot: "⋖", lesseqgtr: "⋚", lesseqqgtr: "⪋", lessgtr: "≶", lesssim: "≲", lfisht: "⥼", lfloor: "⌊", lfr: "𝔩", lg: "≶", lgE: "⪑", lhard: "↽", lharu: "↼", lharul: "⥪", lhblk: "▄", ljcy: "љ", ll: "≪", llarr: "⇇", llcorner: "⌞", llhard: "⥫", lltri: "◺", lmidot: "ŀ", lmoust: "⎰", lmoustache: "⎰", lnE: "≨", lnap: "⪉", lnapprox: "⪉", lne: "⪇", lneq: "⪇", lneqq: "≨", lnsim: "⋦", loang: "⟬", loarr: "⇽", lobrk: "⟦", longleftarrow: "⟵", longleftrightarrow: "⟷", longmapsto: "⟼", longrightarrow: "⟶", looparrowleft: "↫", looparrowright: "↬", lopar: "⦅", lopf: "𝕝", loplus: "⨭", lotimes: "⨴", lowast: "∗", lowbar: "_", loz: "◊", lozenge: "◊", lozf: "⧫", lpar: "(", lparlt: "⦓", lrarr: "⇆", lrcorner: "⌟", lrhar: "⇋", lrhard: "⥭", lrm: "", lrtri: "⊿", lsaquo: "‹", lscr: "𝓁", lsh: "↰", lsim: "≲", lsime: "⪍", lsimg: "⪏", lsqb: "[", lsquo: "‘", lsquor: "‚", lstrok: "ł", l: "<", lt: "<", ltcc: "⪦", ltcir: "⩹", ltdot: "⋖", lthree: "⋋", ltimes: "⋉", ltlarr: "⥶", ltquest: "⩻", ltrPar: "⦖", ltri: "◃", ltrie: "⊴", ltrif: "◂", lurdshar: "⥊", luruhar: "⥦", lvertneqq: "≨︀", lvnE: "≨︀", mDDot: "∺", mac: "¯", macr: "¯", male: "♂", malt: "✠", maltese: "✠", map: "↦", mapsto: "↦", mapstodown: "↧", mapstoleft: "↤", mapstoup: "↥", marker: "▮", mcomma: "⨩", mcy: "м", mdash: "—", measuredangle: "∡", mfr: "𝔪", mho: "℧", micr: "µ", micro: "µ", mid: "∣", midast: "*", midcir: "⫰", middo: "·", middot: "·", minus: "−", minusb: "⊟", minusd: "∸", minusdu: "⨪", mlcp: "⫛", mldr: "…", mnplus: "∓", models: "⊧", mopf: "𝕞", mp: "∓", mscr: "𝓂", mstpos: "∾", mu: "μ", multimap: "⊸", mumap: "⊸", nGg: "⋙̸", nGt: "≫⃒", nGtv: "≫̸", nLeftarrow: "⇍", nLeftrightarrow: "⇎", nLl: "⋘̸", nLt: "≪⃒", nLtv: "≪̸", nRightarrow: "⇏", nVDash: "⊯", nVdash: "⊮", nabla: "∇", nacute: "ń", nang: "∠⃒", nap: "≉", napE: "⩰̸", napid: "≋̸", napos: "ʼn", napprox: "≉", natur: "♮", natural: "♮", naturals: "ℕ", nbs: " ", nbsp: " ", nbump: "≎̸", nbumpe: "≏̸", ncap: "⩃", ncaron: "ň", ncedil: "ņ", ncong: "≇", ncongdot: "⩭̸", ncup: "⩂", ncy: "н", ndash: "–", ne: "≠", neArr: "⇗", nearhk: "⤤", nearr: "↗", nearrow: "↗", nedot: "≐̸", nequiv: "≢", nesear: "⤨", nesim: "≂̸", nexist: "∄", nexists: "∄", nfr: "𝔫", ngE: "≧̸", nge: "≱", ngeq: "≱", ngeqq: "≧̸", ngeqslant: "⩾̸", nges: "⩾̸", ngsim: "≵", ngt: "≯", ngtr: "≯", nhArr: "⇎", nharr: "↮", nhpar: "⫲", ni: "∋", nis: "⋼", nisd: "⋺", niv: "∋", njcy: "њ", nlArr: "⇍", nlE: "≦̸", nlarr: "↚", nldr: "‥", nle: "≰", nleftarrow: "↚", nleftrightarrow: "↮", nleq: "≰", nleqq: "≦̸", nleqslant: "⩽̸", nles: "⩽̸", nless: "≮", nlsim: "≴", nlt: "≮", nltri: "⋪", nltrie: "⋬", nmid: "∤", nopf: "𝕟", no: "¬", not: "¬", notin: "∉", notinE: "⋹̸", notindot: "⋵̸", notinva: "∉", notinvb: "⋷", notinvc: "⋶", notni: "∌", notniva: "∌", notnivb: "⋾", notnivc: "⋽", npar: "∦", nparallel: "∦", nparsl: "⫽⃥", npart: "∂̸", npolint: "⨔", npr: "⊀", nprcue: "⋠", npre: "⪯̸", nprec: "⊀", npreceq: "⪯̸", nrArr: "⇏", nrarr: "↛", nrarrc: "⤳̸", nrarrw: "↝̸", nrightarrow: "↛", nrtri: "⋫", nrtrie: "⋭", nsc: "⊁", nsccue: "⋡", nsce: "⪰̸", nscr: "𝓃", nshortmid: "∤", nshortparallel: "∦", nsim: "≁", nsime: "≄", nsimeq: "≄", nsmid: "∤", nspar: "∦", nsqsube: "⋢", nsqsupe: "⋣", nsub: "⊄", nsubE: "⫅̸", nsube: "⊈", nsubset: "⊂⃒", nsubseteq: "⊈", nsubseteqq: "⫅̸", nsucc: "⊁", nsucceq: "⪰̸", nsup: "⊅", nsupE: "⫆̸", nsupe: "⊉", nsupset: "⊃⃒", nsupseteq: "⊉", nsupseteqq: "⫆̸", ntgl: "≹", ntild: "ñ", ntilde: "ñ", ntlg: "≸", ntriangleleft: "⋪", ntrianglelefteq: "⋬", ntriangleright: "⋫", ntrianglerighteq: "⋭", nu: "ν", num: "#", numero: "№", numsp: " ", nvDash: "⊭", nvHarr: "⤄", nvap: "≍⃒", nvdash: "⊬", nvge: "≥⃒", nvgt: ">⃒", nvinfin: "⧞", nvlArr: "⤂", nvle: "≤⃒", nvlt: "<⃒", nvltrie: "⊴⃒", nvrArr: "⤃", nvrtrie: "⊵⃒", nvsim: "∼⃒", nwArr: "⇖", nwarhk: "⤣", nwarr: "↖", nwarrow: "↖", nwnear: "⤧", oS: "Ⓢ", oacut: "ó", oacute: "ó", oast: "⊛", ocir: "ô", ocirc: "ô", ocy: "о", odash: "⊝", odblac: "ő", odiv: "⨸", odot: "⊙", odsold: "⦼", oelig: "œ", ofcir: "⦿", ofr: "𝔬", ogon: "˛", ograv: "ò", ograve: "ò", ogt: "⧁", ohbar: "⦵", ohm: "Ω", oint: "∮", olarr: "↺", olcir: "⦾", olcross: "⦻", oline: "‾", olt: "⧀", omacr: "ō", omega: "ω", omicron: "ο", omid: "⦶", ominus: "⊖", oopf: "𝕠", opar: "⦷", operp: "⦹", oplus: "⊕", or: "∨", orarr: "↻", ord: "º", order: "ℴ", orderof: "ℴ", ordf: "ª", ordm: "º", origof: "⊶", oror: "⩖", orslope: "⩗", orv: "⩛", oscr: "ℴ", oslas: "ø", oslash: "ø", osol: "⊘", otild: "õ", otilde: "õ", otimes: "⊗", otimesas: "⨶", oum: "ö", ouml: "ö", ovbar: "⌽", par: "¶", para: "¶", parallel: "∥", parsim: "⫳", parsl: "⫽", part: "∂", pcy: "п", percnt: "%", period: ".", permil: "‰", perp: "⊥", pertenk: "‱", pfr: "𝔭", phi: "φ", phiv: "ϕ", phmmat: "ℳ", phone: "☎", pi: "π", pitchfork: "⋔", piv: "ϖ", planck: "ℏ", planckh: "ℎ", plankv: "ℏ", plus: "+", plusacir: "⨣", plusb: "⊞", pluscir: "⨢", plusdo: "∔", plusdu: "⨥", pluse: "⩲", plusm: "±", plusmn: "±", plussim: "⨦", plustwo: "⨧", pm: "±", pointint: "⨕", popf: "𝕡", poun: "£", pound: "£", pr: "≺", prE: "⪳", prap: "⪷", prcue: "≼", pre: "⪯", prec: "≺", precapprox: "⪷", preccurlyeq: "≼", preceq: "⪯", precnapprox: "⪹", precneqq: "⪵", precnsim: "⋨", precsim: "≾", prime: "′", primes: "ℙ", prnE: "⪵", prnap: "⪹", prnsim: "⋨", prod: "∏", profalar: "⌮", profline: "⌒", profsurf: "⌓", prop: "∝", propto: "∝", prsim: "≾", prurel: "⊰", pscr: "𝓅", psi: "ψ", puncsp: " ", qfr: "𝔮", qint: "⨌", qopf: "𝕢", qprime: "⁗", qscr: "𝓆", quaternions: "ℍ", quatint: "⨖", quest: "?", questeq: "≟", quo: '"', quot: '"', rAarr: "⇛", rArr: "⇒", rAtail: "⤜", rBarr: "⤏", rHar: "⥤", race: "∽̱", racute: "ŕ", radic: "√", raemptyv: "⦳", rang: "⟩", rangd: "⦒", range: "⦥", rangle: "⟩", raqu: "»", raquo: "»", rarr: "→", rarrap: "⥵", rarrb: "⇥", rarrbfs: "⤠", rarrc: "⤳", rarrfs: "⤞", rarrhk: "↪", rarrlp: "↬", rarrpl: "⥅", rarrsim: "⥴", rarrtl: "↣", rarrw: "↝", ratail: "⤚", ratio: "∶", rationals: "ℚ", rbarr: "⤍", rbbrk: "❳", rbrace: "}", rbrack: "]", rbrke: "⦌", rbrksld: "⦎", rbrkslu: "⦐", rcaron: "ř", rcedil: "ŗ", rceil: "⌉", rcub: "}", rcy: "р", rdca: "⤷", rdldhar: "⥩", rdquo: "”", rdquor: "”", rdsh: "↳", real: "ℜ", realine: "ℛ", realpart: "ℜ", reals: "ℝ", rect: "▭", re: "®", reg: "®", rfisht: "⥽", rfloor: "⌋", rfr: "𝔯", rhard: "⇁", rharu: "⇀", rharul: "⥬", rho: "ρ", rhov: "ϱ", rightarrow: "→", rightarrowtail: "↣", rightharpoondown: "⇁", rightharpoonup: "⇀", rightleftarrows: "⇄", rightleftharpoons: "⇌", rightrightarrows: "⇉", rightsquigarrow: "↝", rightthreetimes: "⋌", ring: "˚", risingdotseq: "≓", rlarr: "⇄", rlhar: "⇌", rlm: "", rmoust: "⎱", rmoustache: "⎱", rnmid: "⫮", roang: "⟭", roarr: "⇾", robrk: "⟧", ropar: "⦆", ropf: "𝕣", roplus: "⨮", rotimes: "⨵", rpar: ")", rpargt: "⦔", rppolint: "⨒", rrarr: "⇉", rsaquo: "›", rscr: "𝓇", rsh: "↱", rsqb: "]", rsquo: "’", rsquor: "’", rthree: "⋌", rtimes: "⋊", rtri: "▹", rtrie: "⊵", rtrif: "▸", rtriltri: "⧎", ruluhar: "⥨", rx: "℞", sacute: "ś", sbquo: "‚", sc: "≻", scE: "⪴", scap: "⪸", scaron: "š", sccue: "≽", sce: "⪰", scedil: "ş", scirc: "ŝ", scnE: "⪶", scnap: "⪺", scnsim: "⋩", scpolint: "⨓", scsim: "≿", scy: "с", sdot: "⋅", sdotb: "⊡", sdote: "⩦", seArr: "⇘", searhk: "⤥", searr: "↘", searrow: "↘", sec: "§", sect: "§", semi: ";", seswar: "⤩", setminus: "∖", setmn: "∖", sext: "✶", sfr: "𝔰", sfrown: "⌢", sharp: "♯", shchcy: "щ", shcy: "ш", shortmid: "∣", shortparallel: "∥", sh: "", shy: "", sigma: "σ", sigmaf: "ς", sigmav: "ς", sim: "∼", simdot: "⩪", sime: "≃", simeq: "≃", simg: "⪞", simgE: "⪠", siml: "⪝", simlE: "⪟", simne: "≆", simplus: "⨤", simrarr: "⥲", slarr: "←", smallsetminus: "∖", smashp: "⨳", smeparsl: "⧤", smid: "∣", smile: "⌣", smt: "⪪", smte: "⪬", smtes: "⪬︀", softcy: "ь", sol: "/", solb: "⧄", solbar: "⌿", sopf: "𝕤", spades: "♠", spadesuit: "♠", spar: "∥", sqcap: "⊓", sqcaps: "⊓︀", sqcup: "⊔", sqcups: "⊔︀", sqsub: "⊏", sqsube: "⊑", sqsubset: "⊏", sqsubseteq: "⊑", sqsup: "⊐", sqsupe: "⊒", sqsupset: "⊐", sqsupseteq: "⊒", squ: "□", square: "□", squarf: "▪", squf: "▪", srarr: "→", sscr: "𝓈", ssetmn: "∖", ssmile: "⌣", sstarf: "⋆", star: "☆", starf: "★", straightepsilon: "ϵ", straightphi: "ϕ", strns: "¯", sub: "⊂", subE: "⫅", subdot: "⪽", sube: "⊆", subedot: "⫃", submult: "⫁", subnE: "⫋", subne: "⊊", subplus: "⪿", subrarr: "⥹", subset: "⊂", subseteq: "⊆", subseteqq: "⫅", subsetneq: "⊊", subsetneqq: "⫋", subsim: "⫇", subsub: "⫕", subsup: "⫓", succ: "≻", succapprox: "⪸", succcurlyeq: "≽", succeq: "⪰", succnapprox: "⪺", succneqq: "⪶", succnsim: "⋩", succsim: "≿", sum: "∑", sung: "♪", sup: "⊃", sup1: "¹", sup2: "²", sup3: "³", supE: "⫆", supdot: "⪾", supdsub: "⫘", supe: "⊇", supedot: "⫄", suphsol: "⟉", suphsub: "⫗", suplarr: "⥻", supmult: "⫂", supnE: "⫌", supne: "⊋", supplus: "⫀", supset: "⊃", supseteq: "⊇", supseteqq: "⫆", supsetneq: "⊋", supsetneqq: "⫌", supsim: "⫈", supsub: "⫔", supsup: "⫖", swArr: "⇙", swarhk: "⤦", swarr: "↙", swarrow: "↙", swnwar: "⤪", szli: "ß", szlig: "ß", target: "⌖", tau: "τ", tbrk: "⎴", tcaron: "ť", tcedil: "ţ", tcy: "т", tdot: "⃛", telrec: "⌕", tfr: "𝔱", there4: "∴", therefore: "∴", theta: "θ", thetasym: "ϑ", thetav: "ϑ", thickapprox: "≈", thicksim: "∼", thinsp: " ", thkap: "≈", thksim: "∼", thor: "þ", thorn: "þ", tilde: "˜", time: "×", times: "×", timesb: "⊠", timesbar: "⨱", timesd: "⨰", tint: "∭", toea: "⤨", top: "⊤", topbot: "⌶", topcir: "⫱", topf: "𝕥", topfork: "⫚", tosa: "⤩", tprime: "‴", trade: "™", triangle: "▵", triangledown: "▿", triangleleft: "◃", trianglelefteq: "⊴", triangleq: "≜", triangleright: "▹", trianglerighteq: "⊵", tridot: "◬", trie: "≜", triminus: "⨺", triplus: "⨹", trisb: "⧍", tritime: "⨻", trpezium: "⏢", tscr: "𝓉", tscy: "ц", tshcy: "ћ", tstrok: "ŧ", twixt: "≬", twoheadleftarrow: "↞", twoheadrightarrow: "↠", uArr: "⇑", uHar: "⥣", uacut: "ú", uacute: "ú", uarr: "↑", ubrcy: "ў", ubreve: "ŭ", ucir: "û", ucirc: "û", ucy: "у", udarr: "⇅", udblac: "ű", udhar: "⥮", ufisht: "⥾", ufr: "𝔲", ugrav: "ù", ugrave: "ù", uharl: "↿", uharr: "↾", uhblk: "▀", ulcorn: "⌜", ulcorner: "⌜", ulcrop: "⌏", ultri: "◸", umacr: "ū", um: "¨", uml: "¨", uogon: "ų", uopf: "𝕦", uparrow: "↑", updownarrow: "↕", upharpoonleft: "↿", upharpoonright: "↾", uplus: "⊎", upsi: "υ", upsih: "ϒ", upsilon: "υ", upuparrows: "⇈", urcorn: "⌝", urcorner: "⌝", urcrop: "⌎", uring: "ů", urtri: "◹", uscr: "𝓊", utdot: "⋰", utilde: "ũ", utri: "▵", utrif: "▴", uuarr: "⇈", uum: "ü", uuml: "ü", uwangle: "⦧", vArr: "⇕", vBar: "⫨", vBarv: "⫩", vDash: "⊨", vangrt: "⦜", varepsilon: "ϵ", varkappa: "ϰ", varnothing: "∅", varphi: "ϕ", varpi: "ϖ", varpropto: "∝", varr: "↕", varrho: "ϱ", varsigma: "ς", varsubsetneq: "⊊︀", varsubsetneqq: "⫋︀", varsupsetneq: "⊋︀", varsupsetneqq: "⫌︀", vartheta: "ϑ", vartriangleleft: "⊲", vartriangleright: "⊳", vcy: "в", vdash: "⊢", vee: "∨", veebar: "⊻", veeeq: "≚", vellip: "⋮", verbar: "|", vert: "|", vfr: "𝔳", vltri: "⊲", vnsub: "⊂⃒", vnsup: "⊃⃒", vopf: "𝕧", vprop: "∝", vrtri: "⊳", vscr: "𝓋", vsubnE: "⫋︀", vsubne: "⊊︀", vsupnE: "⫌︀", vsupne: "⊋︀", vzigzag: "⦚", wcirc: "ŵ", wedbar: "⩟", wedge: "∧", wedgeq: "≙", weierp: "℘", wfr: "𝔴", wopf: "𝕨", wp: "℘", wr: "≀", wreath: "≀", wscr: "𝓌", xcap: "⋂", xcirc: "◯", xcup: "⋃", xdtri: "▽", xfr: "𝔵", xhArr: "⟺", xharr: "⟷", xi: "ξ", xlArr: "⟸", xlarr: "⟵", xmap: "⟼", xnis: "⋻", xodot: "⨀", xopf: "𝕩", xoplus: "⨁", xotime: "⨂", xrArr: "⟹", xrarr: "⟶", xscr: "𝓍", xsqcup: "⨆", xuplus: "⨄", xutri: "△", xvee: "⋁", xwedge: "⋀", yacut: "ý", yacute: "ý", yacy: "я", ycirc: "ŷ", ycy: "ы", ye: "¥", yen: "¥", yfr: "𝔶", yicy: "ї", yopf: "𝕪", yscr: "𝓎", yucy: "ю", yum: "ÿ", yuml: "ÿ", zacute: "ź", zcaron: "ž", zcy: "з", zdot: "ż", zeetrf: "ℨ", zeta: "ζ", zfr: "𝔷", zhcy: "ж", zigrarr: "⇝", zopf: "𝕫", zscr: "𝓏", zwj: "", zwnj: "" };
|
|
408
|
-
}), xr = I((u, e) => {
|
|
409
|
-
var t = vr();
|
|
410
|
-
e.exports = n;
|
|
411
|
-
var r = {}.hasOwnProperty;
|
|
412
|
-
function n(i) {
|
|
413
|
-
return r.call(t, i) ? t[i] : !1;
|
|
414
|
-
}
|
|
415
|
-
}), me = I((u, e) => {
|
|
416
|
-
var t = Ar(), r = gr(), n = _u(), i = Er(), a = mr(), o = xr();
|
|
417
|
-
e.exports = J;
|
|
418
|
-
var D = {}.hasOwnProperty, l = String.fromCharCode, s = Function.prototype, c = { warning: null, reference: null, text: null, warningContext: null, referenceContext: null, textContext: null, position: {}, additional: null, attribute: !1, nonTerminated: !0 }, C = 9, d = 10, E = 12, m = 32, g = 38, x = 59, f = 60, B = 61, p = 35, h = 88, F = 120, A = 65533, y = "named", w = "hexadecimal", T = "decimal", b = {};
|
|
419
|
-
b[w] = 16, b[T] = 10;
|
|
420
|
-
var k = {};
|
|
421
|
-
k[y] = a, k[T] = n, k[w] = i;
|
|
422
|
-
var L = 1, R = 2, v = 3, S = 4, U = 5, j = 6, _ = 7, q = {};
|
|
423
|
-
q[L] = "Named character references must be terminated by a semicolon", q[R] = "Numeric character references must be terminated by a semicolon", q[v] = "Named character references cannot be empty", q[S] = "Numeric character references cannot be empty", q[U] = "Named character references must be known", q[j] = "Numeric character references cannot be disallowed", q[_] = "Numeric character references cannot be outside the permissible Unicode range";
|
|
424
|
-
function J(M, N) {
|
|
425
|
-
var P = {}, V, H;
|
|
426
|
-
N || (N = {});
|
|
427
|
-
for (H in c)
|
|
428
|
-
V = N[H], P[H] = V ?? c[H];
|
|
429
|
-
return (P.position.indent || P.position.start) && (P.indent = P.position.indent || [], P.position = P.position.start), z(M, P);
|
|
430
|
-
}
|
|
431
|
-
function z(M, N) {
|
|
432
|
-
var P = N.additional, V = N.nonTerminated, H = N.text, Y = N.reference, K = N.warning, tu = N.textContext, W = N.referenceContext, uu = N.warningContext, cu = N.position, lu = N.indent || [], eu = M.length, G = 0, Z = -1, hu = cu.column || 1, ku = cu.line || 1, Fu = "", Cu = [], iu, du, ru, X, qu, ou, nu, Eu, le, be, Nu, Yu, Ru, xu, Ge, Ku, ce, mu, au;
|
|
433
|
-
for (typeof P == "string" && (P = P.charCodeAt(0)), Ku = Qu(), Eu = K ? ur : s, G--, eu++; ++G < eu; )
|
|
434
|
-
if (qu === d && (hu = lu[Z] || 1), qu = M.charCodeAt(G), qu === g) {
|
|
435
|
-
if (nu = M.charCodeAt(G + 1), nu === C || nu === d || nu === E || nu === m || nu === g || nu === f || nu !== nu || P && nu === P) {
|
|
436
|
-
Fu += l(qu), hu++;
|
|
437
|
-
continue;
|
|
438
|
-
}
|
|
439
|
-
for (Ru = G + 1, Yu = Ru, au = Ru, nu === p ? (au = ++Yu, nu = M.charCodeAt(au), nu === h || nu === F ? (xu = w, au = ++Yu) : xu = T) : xu = y, iu = "", Nu = "", X = "", Ge = k[xu], au--; ++au < eu && (nu = M.charCodeAt(au), !!Ge(nu)); )
|
|
440
|
-
X += l(nu), xu === y && D.call(t, X) && (iu = X, Nu = t[X]);
|
|
441
|
-
ru = M.charCodeAt(au) === x, ru && (au++, du = xu === y ? o(X) : !1, du && (iu = X, Nu = du)), mu = 1 + au - Ru, !ru && !V || (X ? xu === y ? (ru && !Nu ? Eu(U, 1) : (iu !== X && (au = Yu + iu.length, mu = 1 + au - Yu, ru = !1), ru || (le = iu ? L : v, N.attribute ? (nu = M.charCodeAt(au), nu === B ? (Eu(le, mu), Nu = null) : a(nu) ? Nu = null : Eu(le, mu)) : Eu(le, mu))), ou = Nu) : (ru || Eu(R, mu), ou = parseInt(X, b[xu]), O(ou) ? (Eu(_, mu), ou = l(A)) : ou in r ? (Eu(j, mu), ou = r[ou]) : (be = "", $(ou) && Eu(j, mu), ou > 65535 && (ou -= 65536, be += l(ou >>> 10 | 55296), ou = 56320 | ou & 1023), ou = be + l(ou))) : xu !== y && Eu(S, mu)), ou ? (Je(), Ku = Qu(), G = au - 1, hu += au - Ru + 1, Cu.push(ou), ce = Qu(), ce.offset++, Y && Y.call(W, ou, { start: Ku, end: ce }, M.slice(Ru - 1, au)), Ku = ce) : (X = M.slice(Ru - 1, au), Fu += X, hu += X.length, G = au - 1);
|
|
442
|
-
} else
|
|
443
|
-
qu === 10 && (ku++, Z++, hu = 0), qu === qu ? (Fu += l(qu), hu++) : Je();
|
|
444
|
-
return Cu.join("");
|
|
445
|
-
function Qu() {
|
|
446
|
-
return { line: ku, column: hu, offset: G + (cu.offset || 0) };
|
|
447
|
-
}
|
|
448
|
-
function ur(Ye, Ke) {
|
|
449
|
-
var ye = Qu();
|
|
450
|
-
ye.column += Ke, ye.offset += Ke, K.call(uu, q[Ye], ye, Ye);
|
|
451
|
-
}
|
|
452
|
-
function Je() {
|
|
453
|
-
Fu && (Cu.push(Fu), H && H.call(tu, Fu, { start: Ku, end: Qu() }), Fu = "");
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
function O(M) {
|
|
457
|
-
return M >= 55296 && M <= 57343 || M > 1114111;
|
|
458
|
-
}
|
|
459
|
-
function $(M) {
|
|
460
|
-
return M >= 1 && M <= 8 || M === 11 || M >= 13 && M <= 31 || M >= 127 && M <= 159 || M >= 64976 && M <= 65007 || (M & 65535) === 65535 || (M & 65535) === 65534;
|
|
461
|
-
}
|
|
462
|
-
}), Br = I((u, e) => {
|
|
463
|
-
var t = Mu(), r = me();
|
|
464
|
-
e.exports = n;
|
|
465
|
-
function n(i) {
|
|
466
|
-
return o.raw = D, o;
|
|
467
|
-
function a(s) {
|
|
468
|
-
for (var c = i.offset, C = s.line, d = []; ++C && C in c; )
|
|
469
|
-
d.push((c[C] || 0) + 1);
|
|
470
|
-
return { start: s, indent: d };
|
|
471
|
-
}
|
|
472
|
-
function o(s, c, C) {
|
|
473
|
-
r(s, { position: a(c), warning: l, text: C, reference: C, textContext: i, referenceContext: i });
|
|
474
|
-
}
|
|
475
|
-
function D(s, c, C) {
|
|
476
|
-
return r(s, t(C, { position: a(c), warning: l }));
|
|
477
|
-
}
|
|
478
|
-
function l(s, c, C) {
|
|
479
|
-
C !== 3 && i.file.message(s, c);
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
}), br = I((u, e) => {
|
|
483
|
-
e.exports = t;
|
|
484
|
-
function t(a) {
|
|
485
|
-
return o;
|
|
486
|
-
function o(D, l) {
|
|
487
|
-
var s = this, c = s.offset, C = [], d = s[a + "Methods"], E = s[a + "Tokenizers"], m = l.line, g = l.column, x, f, B, p, h, F;
|
|
488
|
-
if (!D)
|
|
489
|
-
return C;
|
|
490
|
-
for (R.now = w, R.file = s.file, A(""); D; ) {
|
|
491
|
-
for (x = -1, f = d.length, h = !1; ++x < f && (p = d[x], B = E[p], !(B && (!B.onlyAtStart || s.atStart) && (!B.notInList || !s.inList) && (!B.notInBlock || !s.inBlock) && (!B.notInLink || !s.inLink) && (F = D.length, B.apply(s, [R, D]), h = F !== D.length, h))); )
|
|
492
|
-
;
|
|
493
|
-
h || s.file.fail(new Error("Infinite loop"), R.now());
|
|
494
|
-
}
|
|
495
|
-
return s.eof = w(), C;
|
|
496
|
-
function A(v) {
|
|
497
|
-
for (var S = -1, U = v.indexOf(`
|
|
498
|
-
`); U !== -1; )
|
|
499
|
-
m++, S = U, U = v.indexOf(`
|
|
500
|
-
`, U + 1);
|
|
501
|
-
S === -1 ? g += v.length : g = v.length - S, m in c && (S !== -1 ? g += c[m] : g <= c[m] && (g = c[m] + 1));
|
|
502
|
-
}
|
|
503
|
-
function y() {
|
|
504
|
-
var v = [], S = m + 1;
|
|
505
|
-
return function() {
|
|
506
|
-
for (var U = m + 1; S < U; )
|
|
507
|
-
v.push((c[S] || 0) + 1), S++;
|
|
508
|
-
return v;
|
|
509
|
-
};
|
|
510
|
-
}
|
|
511
|
-
function w() {
|
|
512
|
-
var v = { line: m, column: g };
|
|
513
|
-
return v.offset = s.toOffset(v), v;
|
|
514
|
-
}
|
|
515
|
-
function T(v) {
|
|
516
|
-
this.start = v, this.end = w();
|
|
517
|
-
}
|
|
518
|
-
function b(v) {
|
|
519
|
-
D.slice(0, v.length) !== v && s.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"), w());
|
|
520
|
-
}
|
|
521
|
-
function k() {
|
|
522
|
-
var v = w();
|
|
523
|
-
return S;
|
|
524
|
-
function S(U, j) {
|
|
525
|
-
var _ = U.position, q = _ ? _.start : v, J = [], z = _ && _.end.line, O = v.line;
|
|
526
|
-
if (U.position = new T(q), _ && j && _.indent) {
|
|
527
|
-
if (J = _.indent, z < O) {
|
|
528
|
-
for (; ++z < O; )
|
|
529
|
-
J.push((c[z] || 0) + 1);
|
|
530
|
-
J.push(v.column);
|
|
531
|
-
}
|
|
532
|
-
j = J.concat(j);
|
|
533
|
-
}
|
|
534
|
-
return U.position.indent = j || [], U;
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
function L(v, S) {
|
|
538
|
-
var U = S ? S.children : C, j = U[U.length - 1], _;
|
|
539
|
-
return j && v.type === j.type && (v.type === "text" || v.type === "blockquote") && r(j) && r(v) && (_ = v.type === "text" ? n : i, v = _.call(s, j, v)), v !== j && U.push(v), s.atStart && C.length !== 0 && s.exitStart(), v;
|
|
540
|
-
}
|
|
541
|
-
function R(v) {
|
|
542
|
-
var S = y(), U = k(), j = w();
|
|
543
|
-
return b(v), _.reset = q, q.test = J, _.test = J, D = D.slice(v.length), A(v), S = S(), _;
|
|
544
|
-
function _(z, O) {
|
|
545
|
-
return U(L(U(z), O), S);
|
|
546
|
-
}
|
|
547
|
-
function q() {
|
|
548
|
-
var z = _.apply(null, arguments);
|
|
549
|
-
return m = j.line, g = j.column, D = v + D, z;
|
|
550
|
-
}
|
|
551
|
-
function J() {
|
|
552
|
-
var z = U({});
|
|
553
|
-
return m = j.line, g = j.column, D = v + D, z.position;
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
function r(a) {
|
|
559
|
-
var o, D;
|
|
560
|
-
return a.type !== "text" || !a.position ? !0 : (o = a.position.start, D = a.position.end, o.line !== D.line || D.column - o.column === a.value.length);
|
|
561
|
-
}
|
|
562
|
-
function n(a, o) {
|
|
563
|
-
return a.value += o.value, a;
|
|
564
|
-
}
|
|
565
|
-
function i(a, o) {
|
|
566
|
-
return this.options.commonmark || this.options.gfm ? o : (a.children = a.children.concat(o.children), a);
|
|
567
|
-
}
|
|
568
|
-
}), yr = I((u, e) => {
|
|
569
|
-
e.exports = i;
|
|
570
|
-
var t = ["\\", "`", "*", "{", "}", "[", "]", "(", ")", "#", "+", "-", ".", "!", "_", ">"], r = t.concat(["~", "|"]), n = r.concat([`
|
|
571
|
-
`, '"', "$", "%", "&", "'", ",", "/", ":", ";", "<", "=", "?", "@", "^"]);
|
|
572
|
-
i.default = t, i.gfm = r, i.commonmark = n;
|
|
573
|
-
function i(a) {
|
|
574
|
-
var o = a || {};
|
|
575
|
-
return o.commonmark ? n : o.gfm ? r : t;
|
|
576
|
-
}
|
|
577
|
-
}), wr = I((u, e) => {
|
|
578
|
-
e.exports = ["address", "article", "aside", "base", "basefont", "blockquote", "body", "caption", "center", "col", "colgroup", "dd", "details", "dialog", "dir", "div", "dl", "dt", "fieldset", "figcaption", "figure", "footer", "form", "frame", "frameset", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "iframe", "legend", "li", "link", "main", "menu", "menuitem", "meta", "nav", "noframes", "ol", "optgroup", "option", "p", "param", "pre", "section", "source", "title", "summary", "table", "tbody", "td", "tfoot", "th", "thead", "title", "tr", "track", "ul"];
|
|
579
|
-
}), gt = I((u, e) => {
|
|
580
|
-
e.exports = { position: !0, gfm: !0, commonmark: !1, pedantic: !1, blocks: wr() };
|
|
581
|
-
}), kr = I((u, e) => {
|
|
582
|
-
var t = Mu(), r = yr(), n = gt();
|
|
583
|
-
e.exports = i;
|
|
584
|
-
function i(a) {
|
|
585
|
-
var o = this, D = o.options, l, s;
|
|
586
|
-
if (a == null)
|
|
587
|
-
a = {};
|
|
588
|
-
else if (typeof a == "object")
|
|
589
|
-
a = t(a);
|
|
590
|
-
else
|
|
591
|
-
throw new Error("Invalid value `" + a + "` for setting `options`");
|
|
592
|
-
for (l in n) {
|
|
593
|
-
if (s = a[l], s == null && (s = D[l]), l !== "blocks" && typeof s != "boolean" || l === "blocks" && typeof s != "object")
|
|
594
|
-
throw new Error("Invalid value `" + s + "` for setting `options." + l + "`");
|
|
595
|
-
a[l] = s;
|
|
596
|
-
}
|
|
597
|
-
return o.options = a, o.escape = r(a), o;
|
|
598
|
-
}
|
|
599
|
-
}), qr = I((u, e) => {
|
|
600
|
-
e.exports = t;
|
|
601
|
-
function t(o) {
|
|
602
|
-
if (o == null)
|
|
603
|
-
return a;
|
|
604
|
-
if (typeof o == "string")
|
|
605
|
-
return i(o);
|
|
606
|
-
if (typeof o == "object")
|
|
607
|
-
return "length" in o ? n(o) : r(o);
|
|
608
|
-
if (typeof o == "function")
|
|
609
|
-
return o;
|
|
610
|
-
throw new Error("Expected function, string, or object as test");
|
|
611
|
-
}
|
|
612
|
-
function r(o) {
|
|
613
|
-
return D;
|
|
614
|
-
function D(l) {
|
|
615
|
-
var s;
|
|
616
|
-
for (s in o)
|
|
617
|
-
if (l[s] !== o[s])
|
|
618
|
-
return !1;
|
|
619
|
-
return !0;
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
function n(o) {
|
|
623
|
-
for (var D = [], l = -1; ++l < o.length; )
|
|
624
|
-
D[l] = t(o[l]);
|
|
625
|
-
return s;
|
|
626
|
-
function s() {
|
|
627
|
-
for (var c = -1; ++c < D.length; )
|
|
628
|
-
if (D[c].apply(this, arguments))
|
|
629
|
-
return !0;
|
|
630
|
-
return !1;
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
function i(o) {
|
|
634
|
-
return D;
|
|
635
|
-
function D(l) {
|
|
636
|
-
return !!(l && l.type === o);
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
function a() {
|
|
640
|
-
return !0;
|
|
641
|
-
}
|
|
642
|
-
}), Sr = I((u, e) => {
|
|
643
|
-
e.exports = t;
|
|
644
|
-
function t(r) {
|
|
645
|
-
return r;
|
|
646
|
-
}
|
|
647
|
-
}), Lr = I((u, e) => {
|
|
648
|
-
e.exports = o;
|
|
649
|
-
var t = qr(), r = Sr(), n = !0, i = "skip", a = !1;
|
|
650
|
-
o.CONTINUE = n, o.SKIP = i, o.EXIT = a;
|
|
651
|
-
function o(l, s, c, C) {
|
|
652
|
-
var d, E;
|
|
653
|
-
typeof s == "function" && typeof c != "function" && (C = c, c = s, s = null), E = t(s), d = C ? -1 : 1, m(l, null, [])();
|
|
654
|
-
function m(g, x, f) {
|
|
655
|
-
var B = typeof g == "object" && g !== null ? g : {}, p;
|
|
656
|
-
return typeof B.type == "string" && (p = typeof B.tagName == "string" ? B.tagName : typeof B.name == "string" ? B.name : void 0, h.displayName = "node (" + r(B.type + (p ? "<" + p + ">" : "")) + ")"), h;
|
|
657
|
-
function h() {
|
|
658
|
-
var F = f.concat(g), A = [], y, w;
|
|
659
|
-
if ((!s || E(g, x, f[f.length - 1] || null)) && (A = D(c(g, f)), A[0] === a))
|
|
660
|
-
return A;
|
|
661
|
-
if (g.children && A[0] !== i)
|
|
662
|
-
for (w = (C ? g.children.length : -1) + d; w > -1 && w < g.children.length; ) {
|
|
663
|
-
if (y = m(g.children[w], w, F)(), y[0] === a)
|
|
664
|
-
return y;
|
|
665
|
-
w = typeof y[1] == "number" ? y[1] : w + d;
|
|
666
|
-
}
|
|
667
|
-
return A;
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
function D(l) {
|
|
672
|
-
return l !== null && typeof l == "object" && "length" in l ? l : typeof l == "number" ? [n, l] : [l];
|
|
673
|
-
}
|
|
674
|
-
}), Tr = I((u, e) => {
|
|
675
|
-
e.exports = a;
|
|
676
|
-
var t = Lr(), r = t.CONTINUE, n = t.SKIP, i = t.EXIT;
|
|
677
|
-
a.CONTINUE = r, a.SKIP = n, a.EXIT = i;
|
|
678
|
-
function a(o, D, l, s) {
|
|
679
|
-
typeof D == "function" && typeof l != "function" && (s = l, l = D, D = null), t(o, D, c, s);
|
|
680
|
-
function c(C, d) {
|
|
681
|
-
var E = d[d.length - 1], m = E ? E.children.indexOf(C) : null;
|
|
682
|
-
return l(C, m, E);
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
}), Or = I((u, e) => {
|
|
686
|
-
var t = Tr();
|
|
687
|
-
e.exports = r;
|
|
688
|
-
function r(a, o) {
|
|
689
|
-
return t(a, o ? n : i), a;
|
|
690
|
-
}
|
|
691
|
-
function n(a) {
|
|
692
|
-
delete a.position;
|
|
693
|
-
}
|
|
694
|
-
function i(a) {
|
|
695
|
-
a.position = void 0;
|
|
696
|
-
}
|
|
697
|
-
}), Nr = I((u, e) => {
|
|
698
|
-
var t = Mu(), r = Or();
|
|
699
|
-
e.exports = a;
|
|
700
|
-
var n = `
|
|
701
|
-
`, i = /\r\n|\r/g;
|
|
702
|
-
function a() {
|
|
703
|
-
var o = this, D = String(o.file), l = { line: 1, column: 1, offset: 0 }, s = t(l), c;
|
|
704
|
-
return D = D.replace(i, n), D.charCodeAt(0) === 65279 && (D = D.slice(1), s.column++, s.offset++), c = { type: "root", children: o.tokenizeBlock(D, s), position: { start: l, end: o.eof || t(l) } }, o.options.position || r(c, !0), c;
|
|
705
|
-
}
|
|
706
|
-
}), Rr = I((u, e) => {
|
|
707
|
-
var t = /^[ \t]*(\n|$)/;
|
|
708
|
-
e.exports = r;
|
|
709
|
-
function r(n, i, a) {
|
|
710
|
-
for (var o, D = "", l = 0, s = i.length; l < s && (o = t.exec(i.slice(l)), o != null); )
|
|
711
|
-
l += o[0].length, D += o[0];
|
|
712
|
-
if (D !== "") {
|
|
713
|
-
if (a)
|
|
714
|
-
return !0;
|
|
715
|
-
n(D);
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
}), ze = I((u, e) => {
|
|
719
|
-
var t = "", r;
|
|
720
|
-
e.exports = n;
|
|
721
|
-
function n(i, a) {
|
|
722
|
-
if (typeof i != "string")
|
|
723
|
-
throw new TypeError("expected a string");
|
|
724
|
-
if (a === 1)
|
|
725
|
-
return i;
|
|
726
|
-
if (a === 2)
|
|
727
|
-
return i + i;
|
|
728
|
-
var o = i.length * a;
|
|
729
|
-
if (r !== i || typeof r > "u")
|
|
730
|
-
r = i, t = "";
|
|
731
|
-
else if (t.length >= o)
|
|
732
|
-
return t.substr(0, o);
|
|
733
|
-
for (; o > t.length && a > 1; )
|
|
734
|
-
a & 1 && (t += i), a >>= 1, i += i;
|
|
735
|
-
return t += i, t = t.substr(0, o), t;
|
|
736
|
-
}
|
|
737
|
-
}), Et = I((u, e) => {
|
|
738
|
-
e.exports = t;
|
|
739
|
-
function t(r) {
|
|
740
|
-
return String(r).replace(/\n+$/, "");
|
|
741
|
-
}
|
|
742
|
-
}), Ir = I((u, e) => {
|
|
743
|
-
var t = ze(), r = Et();
|
|
744
|
-
e.exports = l;
|
|
745
|
-
var n = `
|
|
746
|
-
`, i = " ", a = " ", o = 4, D = t(a, o);
|
|
747
|
-
function l(s, c, C) {
|
|
748
|
-
for (var d = -1, E = c.length, m = "", g = "", x = "", f = "", B, p, h; ++d < E; )
|
|
749
|
-
if (B = c.charAt(d), h)
|
|
750
|
-
if (h = !1, m += x, g += f, x = "", f = "", B === n)
|
|
751
|
-
x = B, f = B;
|
|
752
|
-
else
|
|
753
|
-
for (m += B, g += B; ++d < E; ) {
|
|
754
|
-
if (B = c.charAt(d), !B || B === n) {
|
|
755
|
-
f = B, x = B;
|
|
756
|
-
break;
|
|
757
|
-
}
|
|
758
|
-
m += B, g += B;
|
|
759
|
-
}
|
|
760
|
-
else if (B === a && c.charAt(d + 1) === B && c.charAt(d + 2) === B && c.charAt(d + 3) === B)
|
|
761
|
-
x += D, d += 3, h = !0;
|
|
762
|
-
else if (B === i)
|
|
763
|
-
x += B, h = !0;
|
|
764
|
-
else {
|
|
765
|
-
for (p = ""; B === i || B === a; )
|
|
766
|
-
p += B, B = c.charAt(++d);
|
|
767
|
-
if (B !== n)
|
|
768
|
-
break;
|
|
769
|
-
x += p + B, f += B;
|
|
770
|
-
}
|
|
771
|
-
if (g)
|
|
772
|
-
return C ? !0 : s(m)({ type: "code", lang: null, meta: null, value: r(g) });
|
|
773
|
-
}
|
|
774
|
-
}), Pr = I((u, e) => {
|
|
775
|
-
e.exports = l;
|
|
776
|
-
var t = `
|
|
777
|
-
`, r = " ", n = " ", i = "~", a = "`", o = 3, D = 4;
|
|
778
|
-
function l(s, c, C) {
|
|
779
|
-
var d = this, E = d.options.gfm, m = c.length + 1, g = 0, x = "", f, B, p, h, F, A, y, w, T, b, k, L, R;
|
|
780
|
-
if (E) {
|
|
781
|
-
for (; g < m && (p = c.charAt(g), !(p !== n && p !== r)); )
|
|
782
|
-
x += p, g++;
|
|
783
|
-
if (L = g, p = c.charAt(g), !(p !== i && p !== a)) {
|
|
784
|
-
for (g++, B = p, f = 1, x += p; g < m && (p = c.charAt(g), p === B); )
|
|
785
|
-
x += p, f++, g++;
|
|
786
|
-
if (!(f < o)) {
|
|
787
|
-
for (; g < m && (p = c.charAt(g), !(p !== n && p !== r)); )
|
|
788
|
-
x += p, g++;
|
|
789
|
-
for (h = "", y = ""; g < m && (p = c.charAt(g), !(p === t || B === a && p === B)); )
|
|
790
|
-
p === n || p === r ? y += p : (h += y + p, y = ""), g++;
|
|
791
|
-
if (p = c.charAt(g), !(p && p !== t)) {
|
|
792
|
-
if (C)
|
|
793
|
-
return !0;
|
|
794
|
-
R = s.now(), R.column += x.length, R.offset += x.length, x += h, h = d.decode.raw(d.unescape(h), R), y && (x += y), y = "", b = "", k = "", w = "", T = "";
|
|
795
|
-
for (var v = !0; g < m; ) {
|
|
796
|
-
if (p = c.charAt(g), w += b, T += k, b = "", k = "", p !== t) {
|
|
797
|
-
w += p, k += p, g++;
|
|
798
|
-
continue;
|
|
799
|
-
}
|
|
800
|
-
for (v ? (x += p, v = !1) : (b += p, k += p), y = "", g++; g < m && (p = c.charAt(g), p === n); )
|
|
801
|
-
y += p, g++;
|
|
802
|
-
if (b += y, k += y.slice(L), !(y.length >= D)) {
|
|
803
|
-
for (y = ""; g < m && (p = c.charAt(g), p === B); )
|
|
804
|
-
y += p, g++;
|
|
805
|
-
if (b += y, k += y, !(y.length < f)) {
|
|
806
|
-
for (y = ""; g < m && (p = c.charAt(g), !(p !== n && p !== r)); )
|
|
807
|
-
b += p, k += p, g++;
|
|
808
|
-
if (!p || p === t)
|
|
809
|
-
break;
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
for (x += w + b, g = -1, m = h.length; ++g < m; )
|
|
814
|
-
if (p = h.charAt(g), p === n || p === r)
|
|
815
|
-
F || (F = h.slice(0, g));
|
|
816
|
-
else if (F) {
|
|
817
|
-
A = h.slice(g);
|
|
818
|
-
break;
|
|
819
|
-
}
|
|
820
|
-
return s(x)({ type: "code", lang: F || h || null, meta: A || null, value: T });
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
}
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
|
-
}), Vu = I((u, e) => {
|
|
827
|
-
u = e.exports = t;
|
|
828
|
-
function t(r) {
|
|
829
|
-
return r.trim ? r.trim() : u.right(u.left(r));
|
|
830
|
-
}
|
|
831
|
-
u.left = function(r) {
|
|
832
|
-
return r.trimLeft ? r.trimLeft() : r.replace(/^\s\s*/, "");
|
|
833
|
-
}, u.right = function(r) {
|
|
834
|
-
if (r.trimRight)
|
|
835
|
-
return r.trimRight();
|
|
836
|
-
for (var n = /\s/, i = r.length; n.test(r.charAt(--i)); )
|
|
837
|
-
;
|
|
838
|
-
return r.slice(0, i + 1);
|
|
839
|
-
};
|
|
840
|
-
}), $e = I((u, e) => {
|
|
841
|
-
e.exports = t;
|
|
842
|
-
function t(r, n, i, a) {
|
|
843
|
-
for (var o = r.length, D = -1, l, s; ++D < o; )
|
|
844
|
-
if (l = r[D], s = l[1] || {}, !(s.pedantic !== void 0 && s.pedantic !== i.options.pedantic) && !(s.commonmark !== void 0 && s.commonmark !== i.options.commonmark) && n[l[0]].apply(i, a))
|
|
845
|
-
return !0;
|
|
846
|
-
return !1;
|
|
847
|
-
}
|
|
848
|
-
}), jr = I((u, e) => {
|
|
849
|
-
var t = Vu(), r = $e();
|
|
850
|
-
e.exports = D;
|
|
851
|
-
var n = `
|
|
852
|
-
`, i = " ", a = " ", o = ">";
|
|
853
|
-
function D(l, s, c) {
|
|
854
|
-
for (var C = this, d = C.offset, E = C.blockTokenizers, m = C.interruptBlockquote, g = l.now(), x = g.line, f = s.length, B = [], p = [], h = [], F, A = 0, y, w, T, b, k, L, R, v; A < f && (y = s.charAt(A), !(y !== a && y !== i)); )
|
|
855
|
-
A++;
|
|
856
|
-
if (s.charAt(A) === o) {
|
|
857
|
-
if (c)
|
|
858
|
-
return !0;
|
|
859
|
-
for (A = 0; A < f; ) {
|
|
860
|
-
for (T = s.indexOf(n, A), L = A, R = !1, T === -1 && (T = f); A < f && (y = s.charAt(A), !(y !== a && y !== i)); )
|
|
861
|
-
A++;
|
|
862
|
-
if (s.charAt(A) === o ? (A++, R = !0, s.charAt(A) === a && A++) : A = L, b = s.slice(A, T), !R && !t(b)) {
|
|
863
|
-
A = L;
|
|
864
|
-
break;
|
|
865
|
-
}
|
|
866
|
-
if (!R && (w = s.slice(A), r(m, E, C, [l, w, !0])))
|
|
867
|
-
break;
|
|
868
|
-
k = L === A ? b : s.slice(L, T), h.push(A - L), B.push(k), p.push(b), A = T + 1;
|
|
869
|
-
}
|
|
870
|
-
for (A = -1, f = h.length, F = l(B.join(n)); ++A < f; )
|
|
871
|
-
d[x] = (d[x] || 0) + h[A], x++;
|
|
872
|
-
return v = C.enterBlock(), p = C.tokenizeBlock(p.join(n), g), v(), F({ type: "blockquote", children: p });
|
|
873
|
-
}
|
|
874
|
-
}
|
|
875
|
-
}), zr = I((u, e) => {
|
|
876
|
-
e.exports = o;
|
|
877
|
-
var t = `
|
|
878
|
-
`, r = " ", n = " ", i = "#", a = 6;
|
|
879
|
-
function o(D, l, s) {
|
|
880
|
-
for (var c = this, C = c.options.pedantic, d = l.length + 1, E = -1, m = D.now(), g = "", x = "", f, B, p; ++E < d; ) {
|
|
881
|
-
if (f = l.charAt(E), f !== n && f !== r) {
|
|
882
|
-
E--;
|
|
883
|
-
break;
|
|
884
|
-
}
|
|
885
|
-
g += f;
|
|
886
|
-
}
|
|
887
|
-
for (p = 0; ++E <= d; ) {
|
|
888
|
-
if (f = l.charAt(E), f !== i) {
|
|
889
|
-
E--;
|
|
890
|
-
break;
|
|
891
|
-
}
|
|
892
|
-
g += f, p++;
|
|
893
|
-
}
|
|
894
|
-
if (!(p > a) && !(!p || !C && l.charAt(E + 1) === i)) {
|
|
895
|
-
for (d = l.length + 1, B = ""; ++E < d; ) {
|
|
896
|
-
if (f = l.charAt(E), f !== n && f !== r) {
|
|
897
|
-
E--;
|
|
898
|
-
break;
|
|
899
|
-
}
|
|
900
|
-
B += f;
|
|
901
|
-
}
|
|
902
|
-
if (!(!C && B.length === 0 && f && f !== t)) {
|
|
903
|
-
if (s)
|
|
904
|
-
return !0;
|
|
905
|
-
for (g += B, B = "", x = ""; ++E < d && (f = l.charAt(E), !(!f || f === t)); ) {
|
|
906
|
-
if (f !== n && f !== r && f !== i) {
|
|
907
|
-
x += B + f, B = "";
|
|
908
|
-
continue;
|
|
909
|
-
}
|
|
910
|
-
for (; f === n || f === r; )
|
|
911
|
-
B += f, f = l.charAt(++E);
|
|
912
|
-
if (!C && x && !B && f === i) {
|
|
913
|
-
x += f;
|
|
914
|
-
continue;
|
|
915
|
-
}
|
|
916
|
-
for (; f === i; )
|
|
917
|
-
B += f, f = l.charAt(++E);
|
|
918
|
-
for (; f === n || f === r; )
|
|
919
|
-
B += f, f = l.charAt(++E);
|
|
920
|
-
E--;
|
|
921
|
-
}
|
|
922
|
-
return m.column += g.length, m.offset += g.length, g += x + B, D(g)({ type: "heading", depth: p, children: c.tokenizeInline(x, m) });
|
|
923
|
-
}
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
}), $r = I((u, e) => {
|
|
927
|
-
e.exports = l;
|
|
928
|
-
var t = " ", r = `
|
|
929
|
-
`, n = " ", i = "*", a = "-", o = "_", D = 3;
|
|
930
|
-
function l(s, c, C) {
|
|
931
|
-
for (var d = -1, E = c.length + 1, m = "", g, x, f, B; ++d < E && (g = c.charAt(d), !(g !== t && g !== n)); )
|
|
932
|
-
m += g;
|
|
933
|
-
if (!(g !== i && g !== a && g !== o))
|
|
934
|
-
for (x = g, m += g, f = 1, B = ""; ++d < E; )
|
|
935
|
-
if (g = c.charAt(d), g === x)
|
|
936
|
-
f++, m += B + x, B = "";
|
|
937
|
-
else if (g === n)
|
|
938
|
-
B += g;
|
|
939
|
-
else
|
|
940
|
-
return f >= D && (!g || g === r) ? (m += B, C ? !0 : s(m)({ type: "thematicBreak" })) : void 0;
|
|
941
|
-
}
|
|
942
|
-
}), mt = I((u, e) => {
|
|
943
|
-
e.exports = a;
|
|
944
|
-
var t = " ", r = " ", n = 1, i = 4;
|
|
945
|
-
function a(o) {
|
|
946
|
-
for (var D = 0, l = 0, s = o.charAt(D), c = {}, C, d = 0; s === t || s === r; ) {
|
|
947
|
-
for (C = s === t ? i : n, l += C, C > 1 && (l = Math.floor(l / C) * C); d < l; )
|
|
948
|
-
c[++d] = D;
|
|
949
|
-
s = o.charAt(++D);
|
|
950
|
-
}
|
|
951
|
-
return { indent: l, stops: c };
|
|
952
|
-
}
|
|
953
|
-
}), Ur = I((u, e) => {
|
|
954
|
-
var t = Vu(), r = ze(), n = mt();
|
|
955
|
-
e.exports = D;
|
|
956
|
-
var i = `
|
|
957
|
-
`, a = " ", o = "!";
|
|
958
|
-
function D(l, s) {
|
|
959
|
-
var c = l.split(i), C = c.length + 1, d = 1 / 0, E = [], m, g, x;
|
|
960
|
-
for (c.unshift(r(a, s) + o); C--; )
|
|
961
|
-
if (g = n(c[C]), E[C] = g.stops, t(c[C]).length !== 0)
|
|
962
|
-
if (g.indent)
|
|
963
|
-
g.indent > 0 && g.indent < d && (d = g.indent);
|
|
964
|
-
else {
|
|
965
|
-
d = 1 / 0;
|
|
966
|
-
break;
|
|
967
|
-
}
|
|
968
|
-
if (d !== 1 / 0)
|
|
969
|
-
for (C = c.length; C--; ) {
|
|
970
|
-
for (x = E[C], m = d; m && !(m in x); )
|
|
971
|
-
m--;
|
|
972
|
-
c[C] = c[C].slice(x[m] + 1);
|
|
973
|
-
}
|
|
974
|
-
return c.shift(), c.join(i);
|
|
975
|
-
}
|
|
976
|
-
}), Mr = I((u, e) => {
|
|
977
|
-
var t = Vu(), r = ze(), n = _u(), i = mt(), a = Ur(), o = $e();
|
|
978
|
-
e.exports = y;
|
|
979
|
-
var D = "*", l = "_", s = "+", c = "-", C = ".", d = " ", E = `
|
|
980
|
-
`, m = " ", g = ")", x = "x", f = 4, B = /\n\n(?!\s*$)/, p = /^\[([ X\tx])][ \t]/, h = /^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/, F = /^([ \t]*)([*+-]|\d+[.)])([ \t]+)/, A = /^( {1,4}|\t)?/gm;
|
|
981
|
-
function y(k, L, R) {
|
|
982
|
-
for (var v = this, S = v.options.commonmark, U = v.options.pedantic, j = v.blockTokenizers, _ = v.interruptList, q = 0, J = L.length, z = null, O, $, M, N, P, V, H, Y, K, tu, W, uu, cu, lu, eu, G, Z, hu, ku, Fu = !1, Cu, iu, du, ru; q < J && (N = L.charAt(q), !(N !== m && N !== d)); )
|
|
983
|
-
q++;
|
|
984
|
-
if (N = L.charAt(q), N === D || N === s || N === c)
|
|
985
|
-
P = N, M = !1;
|
|
986
|
-
else {
|
|
987
|
-
for (M = !0, $ = ""; q < J && (N = L.charAt(q), !!n(N)); )
|
|
988
|
-
$ += N, q++;
|
|
989
|
-
if (N = L.charAt(q), !$ || !(N === C || S && N === g) || R && $ !== "1")
|
|
990
|
-
return;
|
|
991
|
-
z = parseInt($, 10), P = N;
|
|
992
|
-
}
|
|
993
|
-
if (N = L.charAt(++q), !(N !== d && N !== m && (U || N !== E && N !== ""))) {
|
|
994
|
-
if (R)
|
|
995
|
-
return !0;
|
|
996
|
-
for (q = 0, lu = [], eu = [], G = []; q < J; ) {
|
|
997
|
-
for (V = L.indexOf(E, q), H = q, Y = !1, ru = !1, V === -1 && (V = J), O = 0; q < J; ) {
|
|
998
|
-
if (N = L.charAt(q), N === m)
|
|
999
|
-
O += f - O % f;
|
|
1000
|
-
else if (N === d)
|
|
1001
|
-
O++;
|
|
1002
|
-
else
|
|
1003
|
-
break;
|
|
1004
|
-
q++;
|
|
1005
|
-
}
|
|
1006
|
-
if (Z && O >= Z.indent && (ru = !0), N = L.charAt(q), K = null, !ru) {
|
|
1007
|
-
if (N === D || N === s || N === c)
|
|
1008
|
-
K = N, q++, O++;
|
|
1009
|
-
else {
|
|
1010
|
-
for ($ = ""; q < J && (N = L.charAt(q), !!n(N)); )
|
|
1011
|
-
$ += N, q++;
|
|
1012
|
-
N = L.charAt(q), q++, $ && (N === C || S && N === g) && (K = N, O += $.length + 1);
|
|
1013
|
-
}
|
|
1014
|
-
if (K)
|
|
1015
|
-
if (N = L.charAt(q), N === m)
|
|
1016
|
-
O += f - O % f, q++;
|
|
1017
|
-
else if (N === d) {
|
|
1018
|
-
for (du = q + f; q < du && L.charAt(q) === d; )
|
|
1019
|
-
q++, O++;
|
|
1020
|
-
q === du && L.charAt(q) === d && (q -= f - 1, O -= f - 1);
|
|
1021
|
-
} else
|
|
1022
|
-
N !== E && N !== "" && (K = null);
|
|
1023
|
-
}
|
|
1024
|
-
if (K) {
|
|
1025
|
-
if (!U && P !== K)
|
|
1026
|
-
break;
|
|
1027
|
-
Y = !0;
|
|
1028
|
-
} else
|
|
1029
|
-
!S && !ru && L.charAt(H) === d ? ru = !0 : S && Z && (ru = O >= Z.indent || O > f), Y = !1, q = H;
|
|
1030
|
-
if (W = L.slice(H, V), tu = H === q ? W : L.slice(q, V), (K === D || K === l || K === c) && j.thematicBreak.call(v, k, W, !0))
|
|
1031
|
-
break;
|
|
1032
|
-
if (uu = cu, cu = !Y && !t(tu).length, ru && Z)
|
|
1033
|
-
Z.value = Z.value.concat(G, W), eu = eu.concat(G, W), G = [];
|
|
1034
|
-
else if (Y)
|
|
1035
|
-
G.length !== 0 && (Fu = !0, Z.value.push(""), Z.trail = G.concat()), Z = { value: [W], indent: O, trail: [] }, lu.push(Z), eu = eu.concat(G, W), G = [];
|
|
1036
|
-
else if (cu) {
|
|
1037
|
-
if (uu && !S)
|
|
1038
|
-
break;
|
|
1039
|
-
G.push(W);
|
|
1040
|
-
} else {
|
|
1041
|
-
if (uu || o(_, j, v, [k, W, !0]))
|
|
1042
|
-
break;
|
|
1043
|
-
Z.value = Z.value.concat(G, W), eu = eu.concat(G, W), G = [];
|
|
1044
|
-
}
|
|
1045
|
-
q = V + 1;
|
|
1046
|
-
}
|
|
1047
|
-
for (Cu = k(eu.join(E)).reset({ type: "list", ordered: M, start: z, spread: Fu, children: [] }), hu = v.enterList(), ku = v.enterBlock(), q = -1, J = lu.length; ++q < J; )
|
|
1048
|
-
Z = lu[q].value.join(E), iu = k.now(), k(Z)(w(v, Z, iu), Cu), Z = lu[q].trail.join(E), q !== J - 1 && (Z += E), k(Z);
|
|
1049
|
-
return hu(), ku(), Cu;
|
|
1050
|
-
}
|
|
1051
|
-
}
|
|
1052
|
-
function w(k, L, R) {
|
|
1053
|
-
var v = k.offset, S = k.options.pedantic ? T : b, U = null, j, _;
|
|
1054
|
-
return L = S.apply(null, arguments), k.options.gfm && (j = L.match(p), j && (_ = j[0].length, U = j[1].toLowerCase() === x, v[R.line] += _, L = L.slice(_))), { type: "listItem", spread: B.test(L), checked: U, children: k.tokenizeBlock(L, R) };
|
|
1055
|
-
}
|
|
1056
|
-
function T(k, L, R) {
|
|
1057
|
-
var v = k.offset, S = R.line;
|
|
1058
|
-
return L = L.replace(F, U), S = R.line, L.replace(A, U);
|
|
1059
|
-
function U(j) {
|
|
1060
|
-
return v[S] = (v[S] || 0) + j.length, S++, "";
|
|
1061
|
-
}
|
|
1062
|
-
}
|
|
1063
|
-
function b(k, L, R) {
|
|
1064
|
-
var v = k.offset, S = R.line, U, j, _, q, J, z, O;
|
|
1065
|
-
for (L = L.replace(h, $), q = L.split(E), J = a(L, i(U).indent).split(E), J[0] = _, v[S] = (v[S] || 0) + j.length, S++, z = 0, O = q.length; ++z < O; )
|
|
1066
|
-
v[S] = (v[S] || 0) + q[z].length - J[z].length, S++;
|
|
1067
|
-
return J.join(E);
|
|
1068
|
-
function $(M, N, P, V, H) {
|
|
1069
|
-
return j = N + P + V, _ = H, Number(P) < 10 && j.length % 2 === 1 && (P = d + P), U = N + r(d, P.length) + V, U + _;
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
}), _r = I((u, e) => {
|
|
1073
|
-
e.exports = s;
|
|
1074
|
-
var t = `
|
|
1075
|
-
`, r = " ", n = " ", i = "=", a = "-", o = 3, D = 1, l = 2;
|
|
1076
|
-
function s(c, C, d) {
|
|
1077
|
-
for (var E = this, m = c.now(), g = C.length, x = -1, f = "", B, p, h, F, A; ++x < g; ) {
|
|
1078
|
-
if (h = C.charAt(x), h !== n || x >= o) {
|
|
1079
|
-
x--;
|
|
1080
|
-
break;
|
|
1081
|
-
}
|
|
1082
|
-
f += h;
|
|
1083
|
-
}
|
|
1084
|
-
for (B = "", p = ""; ++x < g; ) {
|
|
1085
|
-
if (h = C.charAt(x), h === t) {
|
|
1086
|
-
x--;
|
|
1087
|
-
break;
|
|
1088
|
-
}
|
|
1089
|
-
h === n || h === r ? p += h : (B += p + h, p = "");
|
|
1090
|
-
}
|
|
1091
|
-
if (m.column += f.length, m.offset += f.length, f += B + p, h = C.charAt(++x), F = C.charAt(++x), !(h !== t || F !== i && F !== a)) {
|
|
1092
|
-
for (f += h, p = F, A = F === i ? D : l; ++x < g; ) {
|
|
1093
|
-
if (h = C.charAt(x), h !== F) {
|
|
1094
|
-
if (h !== t)
|
|
1095
|
-
return;
|
|
1096
|
-
x--;
|
|
1097
|
-
break;
|
|
1098
|
-
}
|
|
1099
|
-
p += h;
|
|
1100
|
-
}
|
|
1101
|
-
return d ? !0 : c(f + p)({ type: "heading", depth: A, children: E.tokenizeInline(B, m) });
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
}), vt = I((u) => {
|
|
1105
|
-
var e = "[a-zA-Z_:][a-zA-Z0-9:._-]*", t = "[^\"'=<>`\\u0000-\\u0020]+", r = "'[^']*'", n = '"[^"]*"', i = "(?:" + t + "|" + r + "|" + n + ")", a = "(?:\\s+" + e + "(?:\\s*=\\s*" + i + ")?)", o = "<[A-Za-z][A-Za-z0-9\\-]*" + a + "*\\s*\\/?>", D = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", l = "<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->", s = "<[?].*?[?]>", c = "<![A-Za-z]+\\s+[^>]*>", C = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>";
|
|
1106
|
-
u.openCloseTag = new RegExp("^(?:" + o + "|" + D + ")"), u.tag = new RegExp("^(?:" + o + "|" + D + "|" + l + "|" + s + "|" + c + "|" + C + ")");
|
|
1107
|
-
}), Vr = I((u, e) => {
|
|
1108
|
-
var t = vt().openCloseTag;
|
|
1109
|
-
e.exports = B;
|
|
1110
|
-
var r = " ", n = " ", i = `
|
|
1111
|
-
`, a = "<", o = /^<(script|pre|style)(?=(\s|>|$))/i, D = /<\/(script|pre|style)>/i, l = /^<!--/, s = /-->/, c = /^<\?/, C = /\?>/, d = /^<![A-Za-z]/, E = />/, m = /^<!\[CDATA\[/, g = /]]>/, x = /^$/, f = new RegExp(t.source + "\\s*$");
|
|
1112
|
-
function B(p, h, F) {
|
|
1113
|
-
for (var A = this, y = A.options.blocks.join("|"), w = new RegExp("^</?(" + y + ")(?=(\\s|/?>|$))", "i"), T = h.length, b = 0, k, L, R, v, S, U, j, _ = [[o, D, !0], [l, s, !0], [c, C, !0], [d, E, !0], [m, g, !0], [w, x, !0], [f, x, !1]]; b < T && (v = h.charAt(b), !(v !== r && v !== n)); )
|
|
1114
|
-
b++;
|
|
1115
|
-
if (h.charAt(b) === a) {
|
|
1116
|
-
for (k = h.indexOf(i, b + 1), k = k === -1 ? T : k, L = h.slice(b, k), R = -1, S = _.length; ++R < S; )
|
|
1117
|
-
if (_[R][0].test(L)) {
|
|
1118
|
-
U = _[R];
|
|
1119
|
-
break;
|
|
1120
|
-
}
|
|
1121
|
-
if (U) {
|
|
1122
|
-
if (F)
|
|
1123
|
-
return U[2];
|
|
1124
|
-
if (b = k, !U[1].test(L))
|
|
1125
|
-
for (; b < T; ) {
|
|
1126
|
-
if (k = h.indexOf(i, b + 1), k = k === -1 ? T : k, L = h.slice(b + 1, k), U[1].test(L)) {
|
|
1127
|
-
L && (b = k);
|
|
1128
|
-
break;
|
|
1129
|
-
}
|
|
1130
|
-
b = k;
|
|
1131
|
-
}
|
|
1132
|
-
return j = h.slice(0, b), p(j)({ type: "html", value: j });
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
}
|
|
1136
|
-
}), yu = I((u, e) => {
|
|
1137
|
-
e.exports = n;
|
|
1138
|
-
var t = String.fromCharCode, r = /\s/;
|
|
1139
|
-
function n(i) {
|
|
1140
|
-
return r.test(typeof i == "number" ? t(i) : i.charAt(0));
|
|
1141
|
-
}
|
|
1142
|
-
}), xt = I((u, e) => {
|
|
1143
|
-
var t = je();
|
|
1144
|
-
e.exports = r;
|
|
1145
|
-
function r(n) {
|
|
1146
|
-
return t(n).toLowerCase();
|
|
1147
|
-
}
|
|
1148
|
-
}), Hr = I((u, e) => {
|
|
1149
|
-
var t = yu(), r = xt();
|
|
1150
|
-
e.exports = x;
|
|
1151
|
-
var n = '"', i = "'", a = "\\", o = `
|
|
1152
|
-
`, D = " ", l = " ", s = "[", c = "]", C = "(", d = ")", E = ":", m = "<", g = ">";
|
|
1153
|
-
function x(p, h, F) {
|
|
1154
|
-
for (var A = this, y = A.options.commonmark, w = 0, T = h.length, b = "", k, L, R, v, S, U, j, _; w < T && (v = h.charAt(w), !(v !== l && v !== D)); )
|
|
1155
|
-
b += v, w++;
|
|
1156
|
-
if (v = h.charAt(w), v === s) {
|
|
1157
|
-
for (w++, b += v, R = ""; w < T && (v = h.charAt(w), v !== c); )
|
|
1158
|
-
v === a && (R += v, w++, v = h.charAt(w)), R += v, w++;
|
|
1159
|
-
if (!(!R || h.charAt(w) !== c || h.charAt(w + 1) !== E)) {
|
|
1160
|
-
for (U = R, b += R + c + E, w = b.length, R = ""; w < T && (v = h.charAt(w), !(v !== D && v !== l && v !== o)); )
|
|
1161
|
-
b += v, w++;
|
|
1162
|
-
if (v = h.charAt(w), R = "", k = b, v === m) {
|
|
1163
|
-
for (w++; w < T && (v = h.charAt(w), !!f(v)); )
|
|
1164
|
-
R += v, w++;
|
|
1165
|
-
if (v = h.charAt(w), v === f.delimiter)
|
|
1166
|
-
b += m + R + v, w++;
|
|
1167
|
-
else {
|
|
1168
|
-
if (y)
|
|
1169
|
-
return;
|
|
1170
|
-
w -= R.length + 1, R = "";
|
|
1171
|
-
}
|
|
1172
|
-
}
|
|
1173
|
-
if (!R) {
|
|
1174
|
-
for (; w < T && (v = h.charAt(w), !!B(v)); )
|
|
1175
|
-
R += v, w++;
|
|
1176
|
-
b += R;
|
|
1177
|
-
}
|
|
1178
|
-
if (R) {
|
|
1179
|
-
for (j = R, R = ""; w < T && (v = h.charAt(w), !(v !== D && v !== l && v !== o)); )
|
|
1180
|
-
R += v, w++;
|
|
1181
|
-
if (v = h.charAt(w), S = null, v === n ? S = n : v === i ? S = i : v === C && (S = d), !S)
|
|
1182
|
-
R = "", w = b.length;
|
|
1183
|
-
else if (R) {
|
|
1184
|
-
for (b += R + v, w = b.length, R = ""; w < T && (v = h.charAt(w), v !== S); ) {
|
|
1185
|
-
if (v === o) {
|
|
1186
|
-
if (w++, v = h.charAt(w), v === o || v === S)
|
|
1187
|
-
return;
|
|
1188
|
-
R += o;
|
|
1189
|
-
}
|
|
1190
|
-
R += v, w++;
|
|
1191
|
-
}
|
|
1192
|
-
if (v = h.charAt(w), v !== S)
|
|
1193
|
-
return;
|
|
1194
|
-
L = b, b += R + v, w++, _ = R, R = "";
|
|
1195
|
-
} else
|
|
1196
|
-
return;
|
|
1197
|
-
for (; w < T && (v = h.charAt(w), !(v !== D && v !== l)); )
|
|
1198
|
-
b += v, w++;
|
|
1199
|
-
if (v = h.charAt(w), !v || v === o)
|
|
1200
|
-
return F ? !0 : (k = p(k).test().end, j = A.decode.raw(A.unescape(j), k, { nonTerminated: !1 }), _ && (L = p(L).test().end, _ = A.decode.raw(A.unescape(_), L)), p(b)({ type: "definition", identifier: r(U), label: U, title: _ || null, url: j }));
|
|
1201
|
-
}
|
|
1202
|
-
}
|
|
1203
|
-
}
|
|
1204
|
-
}
|
|
1205
|
-
function f(p) {
|
|
1206
|
-
return p !== g && p !== s && p !== c;
|
|
1207
|
-
}
|
|
1208
|
-
f.delimiter = g;
|
|
1209
|
-
function B(p) {
|
|
1210
|
-
return p !== s && p !== c && !t(p);
|
|
1211
|
-
}
|
|
1212
|
-
}), Wr = I((u, e) => {
|
|
1213
|
-
var t = yu();
|
|
1214
|
-
e.exports = m;
|
|
1215
|
-
var r = " ", n = `
|
|
1216
|
-
`, i = " ", a = "-", o = ":", D = "\\", l = "|", s = 1, c = 2, C = "left", d = "center", E = "right";
|
|
1217
|
-
function m(g, x, f) {
|
|
1218
|
-
var B = this, p, h, F, A, y, w, T, b, k, L, R, v, S, U, j, _, q, J, z, O, $, M;
|
|
1219
|
-
if (B.options.gfm) {
|
|
1220
|
-
for (p = 0, _ = 0, w = x.length + 1, T = []; p < w; ) {
|
|
1221
|
-
if (O = x.indexOf(n, p), $ = x.indexOf(l, p + 1), O === -1 && (O = x.length), $ === -1 || $ > O) {
|
|
1222
|
-
if (_ < c)
|
|
1223
|
-
return;
|
|
1224
|
-
break;
|
|
1225
|
-
}
|
|
1226
|
-
T.push(x.slice(p, O)), _++, p = O + 1;
|
|
1227
|
-
}
|
|
1228
|
-
for (A = T.join(n), h = T.splice(1, 1)[0] || [], p = 0, w = h.length, _--, F = !1, R = []; p < w; ) {
|
|
1229
|
-
if (k = h.charAt(p), k === l) {
|
|
1230
|
-
if (L = null, F === !1) {
|
|
1231
|
-
if (M === !1)
|
|
1232
|
-
return;
|
|
1233
|
-
} else
|
|
1234
|
-
R.push(F), F = !1;
|
|
1235
|
-
M = !1;
|
|
1236
|
-
} else if (k === a)
|
|
1237
|
-
L = !0, F = F || null;
|
|
1238
|
-
else if (k === o)
|
|
1239
|
-
F === C ? F = d : L && F === null ? F = E : F = C;
|
|
1240
|
-
else if (!t(k))
|
|
1241
|
-
return;
|
|
1242
|
-
p++;
|
|
1243
|
-
}
|
|
1244
|
-
if (F !== !1 && R.push(F), !(R.length < s)) {
|
|
1245
|
-
if (f)
|
|
1246
|
-
return !0;
|
|
1247
|
-
for (j = -1, J = [], z = g(A).reset({ type: "table", align: R, children: J }); ++j < _; ) {
|
|
1248
|
-
for (q = T[j], y = { type: "tableRow", children: [] }, j && g(n), g(q).reset(y, z), w = q.length + 1, p = 0, b = "", v = "", S = !0; p < w; ) {
|
|
1249
|
-
if (k = q.charAt(p), k === r || k === i) {
|
|
1250
|
-
v ? b += k : g(k), p++;
|
|
1251
|
-
continue;
|
|
1252
|
-
}
|
|
1253
|
-
k === "" || k === l ? S ? g(k) : ((v || k) && !S && (A = v, b.length > 1 && (k ? (A += b.slice(0, -1), b = b.charAt(b.length - 1)) : (A += b, b = "")), U = g.now(), g(A)({ type: "tableCell", children: B.tokenizeInline(v, U) }, y)), g(b + k), b = "", v = "") : (b && (v += b, b = ""), v += k, k === D && p !== w - 2 && (v += q.charAt(p + 1), p++)), S = !1, p++;
|
|
1254
|
-
}
|
|
1255
|
-
j || g(n + h);
|
|
1256
|
-
}
|
|
1257
|
-
return z;
|
|
1258
|
-
}
|
|
1259
|
-
}
|
|
1260
|
-
}
|
|
1261
|
-
}), Gr = I((u, e) => {
|
|
1262
|
-
var t = Vu(), r = Et(), n = $e();
|
|
1263
|
-
e.exports = l;
|
|
1264
|
-
var i = " ", a = `
|
|
1265
|
-
`, o = " ", D = 4;
|
|
1266
|
-
function l(s, c, C) {
|
|
1267
|
-
for (var d = this, E = d.options, m = E.commonmark, g = d.blockTokenizers, x = d.interruptParagraph, f = c.indexOf(a), B = c.length, p, h, F, A, y; f < B; ) {
|
|
1268
|
-
if (f === -1) {
|
|
1269
|
-
f = B;
|
|
1270
|
-
break;
|
|
1271
|
-
}
|
|
1272
|
-
if (c.charAt(f + 1) === a)
|
|
1273
|
-
break;
|
|
1274
|
-
if (m) {
|
|
1275
|
-
for (A = 0, p = f + 1; p < B; ) {
|
|
1276
|
-
if (F = c.charAt(p), F === i) {
|
|
1277
|
-
A = D;
|
|
1278
|
-
break;
|
|
1279
|
-
} else if (F === o)
|
|
1280
|
-
A++;
|
|
1281
|
-
else
|
|
1282
|
-
break;
|
|
1283
|
-
p++;
|
|
1284
|
-
}
|
|
1285
|
-
if (A >= D && F !== a) {
|
|
1286
|
-
f = c.indexOf(a, f + 1);
|
|
1287
|
-
continue;
|
|
1288
|
-
}
|
|
1289
|
-
}
|
|
1290
|
-
if (h = c.slice(f + 1), n(x, g, d, [s, h, !0]))
|
|
1291
|
-
break;
|
|
1292
|
-
if (p = f, f = c.indexOf(a, f + 1), f !== -1 && t(c.slice(p, f)) === "") {
|
|
1293
|
-
f = p;
|
|
1294
|
-
break;
|
|
1295
|
-
}
|
|
1296
|
-
}
|
|
1297
|
-
return h = c.slice(0, f), C ? !0 : (y = s.now(), h = r(h), s(h)({ type: "paragraph", children: d.tokenizeInline(h, y) }));
|
|
1298
|
-
}
|
|
1299
|
-
}), Jr = I((u, e) => {
|
|
1300
|
-
e.exports = t;
|
|
1301
|
-
function t(r, n) {
|
|
1302
|
-
return r.indexOf("\\", n);
|
|
1303
|
-
}
|
|
1304
|
-
}), Yr = I((u, e) => {
|
|
1305
|
-
var t = Jr();
|
|
1306
|
-
e.exports = i, i.locator = t;
|
|
1307
|
-
var r = `
|
|
1308
|
-
`, n = "\\";
|
|
1309
|
-
function i(a, o, D) {
|
|
1310
|
-
var l = this, s, c;
|
|
1311
|
-
if (o.charAt(0) === n && (s = o.charAt(1), l.escape.indexOf(s) !== -1))
|
|
1312
|
-
return D ? !0 : (s === r ? c = { type: "break" } : c = { type: "text", value: s }, a(n + s)(c));
|
|
1313
|
-
}
|
|
1314
|
-
}), Bt = I((u, e) => {
|
|
1315
|
-
e.exports = t;
|
|
1316
|
-
function t(r, n) {
|
|
1317
|
-
return r.indexOf("<", n);
|
|
1318
|
-
}
|
|
1319
|
-
}), Kr = I((u, e) => {
|
|
1320
|
-
var t = yu(), r = me(), n = Bt();
|
|
1321
|
-
e.exports = c, c.locator = n, c.notInLink = !0;
|
|
1322
|
-
var i = "<", a = ">", o = "@", D = "/", l = "mailto:", s = l.length;
|
|
1323
|
-
function c(C, d, E) {
|
|
1324
|
-
var m = this, g = "", x = d.length, f = 0, B = "", p = !1, h = "", F, A, y, w, T;
|
|
1325
|
-
if (d.charAt(0) === i) {
|
|
1326
|
-
for (f++, g = i; f < x && (F = d.charAt(f), !(t(F) || F === a || F === o || F === ":" && d.charAt(f + 1) === D)); )
|
|
1327
|
-
B += F, f++;
|
|
1328
|
-
if (B) {
|
|
1329
|
-
if (h += B, B = "", F = d.charAt(f), h += F, f++, F === o)
|
|
1330
|
-
p = !0;
|
|
1331
|
-
else {
|
|
1332
|
-
if (F !== ":" || d.charAt(f + 1) !== D)
|
|
1333
|
-
return;
|
|
1334
|
-
h += D, f++;
|
|
1335
|
-
}
|
|
1336
|
-
for (; f < x && (F = d.charAt(f), !(t(F) || F === a)); )
|
|
1337
|
-
B += F, f++;
|
|
1338
|
-
if (F = d.charAt(f), !(!B || F !== a))
|
|
1339
|
-
return E ? !0 : (h += B, y = h, g += h + F, A = C.now(), A.column++, A.offset++, p && (h.slice(0, s).toLowerCase() === l ? (y = y.slice(s), A.column += s, A.offset += s) : h = l + h), w = m.inlineTokenizers, m.inlineTokenizers = { text: w.text }, T = m.enterLink(), y = m.tokenizeInline(y, A), m.inlineTokenizers = w, T(), C(g)({ type: "link", title: null, url: r(h, { nonTerminated: !1 }), children: y }));
|
|
1340
|
-
}
|
|
1341
|
-
}
|
|
1342
|
-
}
|
|
1343
|
-
}), Qr = I((u, e) => {
|
|
1344
|
-
e.exports = t;
|
|
1345
|
-
function t(r, n) {
|
|
1346
|
-
var i = String(r), a = 0, o;
|
|
1347
|
-
if (typeof n != "string")
|
|
1348
|
-
throw new Error("Expected character");
|
|
1349
|
-
for (o = i.indexOf(n); o !== -1; )
|
|
1350
|
-
a++, o = i.indexOf(n, o + n.length);
|
|
1351
|
-
return a;
|
|
1352
|
-
}
|
|
1353
|
-
}), Zr = I((u, e) => {
|
|
1354
|
-
e.exports = r;
|
|
1355
|
-
var t = ["www.", "http://", "https://"];
|
|
1356
|
-
function r(n, i) {
|
|
1357
|
-
var a = -1, o, D, l;
|
|
1358
|
-
if (!this.options.gfm)
|
|
1359
|
-
return a;
|
|
1360
|
-
for (D = t.length, o = -1; ++o < D; )
|
|
1361
|
-
l = n.indexOf(t[o], i), l !== -1 && (a === -1 || l < a) && (a = l);
|
|
1362
|
-
return a;
|
|
1363
|
-
}
|
|
1364
|
-
}), Xr = I((u, e) => {
|
|
1365
|
-
var t = Qr(), r = me(), n = _u(), i = ne(), a = yu(), o = Zr();
|
|
1366
|
-
e.exports = A, A.locator = o, A.notInLink = !0;
|
|
1367
|
-
var D = 33, l = 38, s = 41, c = 42, C = 44, d = 45, E = 46, m = 58, g = 59, x = 63, f = 60, B = 95, p = 126, h = "(", F = ")";
|
|
1368
|
-
function A(y, w, T) {
|
|
1369
|
-
var b = this, k = b.options.gfm, L = b.inlineTokenizers, R = w.length, v = -1, S = !1, U, j, _, q, J, z, O, $, M, N, P, V, H, Y;
|
|
1370
|
-
if (k) {
|
|
1371
|
-
if (w.slice(0, 4) === "www.")
|
|
1372
|
-
S = !0, q = 4;
|
|
1373
|
-
else if (w.slice(0, 7).toLowerCase() === "http://")
|
|
1374
|
-
q = 7;
|
|
1375
|
-
else if (w.slice(0, 8).toLowerCase() === "https://")
|
|
1376
|
-
q = 8;
|
|
1377
|
-
else
|
|
1378
|
-
return;
|
|
1379
|
-
for (v = q - 1, _ = q, U = []; q < R; ) {
|
|
1380
|
-
if (O = w.charCodeAt(q), O === E) {
|
|
1381
|
-
if (v === q - 1)
|
|
1382
|
-
break;
|
|
1383
|
-
U.push(q), v = q, q++;
|
|
1384
|
-
continue;
|
|
1385
|
-
}
|
|
1386
|
-
if (n(O) || i(O) || O === d || O === B) {
|
|
1387
|
-
q++;
|
|
1388
|
-
continue;
|
|
1389
|
-
}
|
|
1390
|
-
break;
|
|
1391
|
-
}
|
|
1392
|
-
if (O === E && (U.pop(), q--), U[0] !== void 0 && (j = U.length < 2 ? _ : U[U.length - 2] + 1, w.slice(j, q).indexOf("_") === -1)) {
|
|
1393
|
-
if (T)
|
|
1394
|
-
return !0;
|
|
1395
|
-
for ($ = q, J = q; q < R && (O = w.charCodeAt(q), !(a(O) || O === f)); )
|
|
1396
|
-
q++, O === D || O === c || O === C || O === E || O === m || O === x || O === B || O === p || ($ = q);
|
|
1397
|
-
if (q = $, w.charCodeAt(q - 1) === s)
|
|
1398
|
-
for (z = w.slice(J, q), M = t(z, h), N = t(z, F); N > M; )
|
|
1399
|
-
q = J + z.lastIndexOf(F), z = w.slice(J, q), N--;
|
|
1400
|
-
if (w.charCodeAt(q - 1) === g && (q--, i(w.charCodeAt(q - 1)))) {
|
|
1401
|
-
for ($ = q - 2; i(w.charCodeAt($)); )
|
|
1402
|
-
$--;
|
|
1403
|
-
w.charCodeAt($) === l && (q = $);
|
|
1404
|
-
}
|
|
1405
|
-
return P = w.slice(0, q), H = r(P, { nonTerminated: !1 }), S && (H = "http://" + H), Y = b.enterLink(), b.inlineTokenizers = { text: L.text }, V = b.tokenizeInline(P, y.now()), b.inlineTokenizers = L, Y(), y(P)({ type: "link", title: null, url: H, children: V });
|
|
1406
|
-
}
|
|
1407
|
-
}
|
|
1408
|
-
}
|
|
1409
|
-
}), un = I((u, e) => {
|
|
1410
|
-
var t = _u(), r = ne(), n = 43, i = 45, a = 46, o = 95;
|
|
1411
|
-
e.exports = D;
|
|
1412
|
-
function D(s, c) {
|
|
1413
|
-
var C = this, d, E;
|
|
1414
|
-
if (!this.options.gfm || (d = s.indexOf("@", c), d === -1))
|
|
1415
|
-
return -1;
|
|
1416
|
-
if (E = d, E === c || !l(s.charCodeAt(E - 1)))
|
|
1417
|
-
return D.call(C, s, d + 1);
|
|
1418
|
-
for (; E > c && l(s.charCodeAt(E - 1)); )
|
|
1419
|
-
E--;
|
|
1420
|
-
return E;
|
|
1421
|
-
}
|
|
1422
|
-
function l(s) {
|
|
1423
|
-
return t(s) || r(s) || s === n || s === i || s === a || s === o;
|
|
1424
|
-
}
|
|
1425
|
-
}), en = I((u, e) => {
|
|
1426
|
-
var t = me(), r = _u(), n = ne(), i = un();
|
|
1427
|
-
e.exports = c, c.locator = i, c.notInLink = !0;
|
|
1428
|
-
var a = 43, o = 45, D = 46, l = 64, s = 95;
|
|
1429
|
-
function c(C, d, E) {
|
|
1430
|
-
var m = this, g = m.options.gfm, x = m.inlineTokenizers, f = 0, B = d.length, p = -1, h, F, A, y;
|
|
1431
|
-
if (g) {
|
|
1432
|
-
for (h = d.charCodeAt(f); r(h) || n(h) || h === a || h === o || h === D || h === s; )
|
|
1433
|
-
h = d.charCodeAt(++f);
|
|
1434
|
-
if (f !== 0 && h === l) {
|
|
1435
|
-
for (f++; f < B; ) {
|
|
1436
|
-
if (h = d.charCodeAt(f), r(h) || n(h) || h === o || h === D || h === s) {
|
|
1437
|
-
f++, p === -1 && h === D && (p = f);
|
|
1438
|
-
continue;
|
|
1439
|
-
}
|
|
1440
|
-
break;
|
|
1441
|
-
}
|
|
1442
|
-
if (!(p === -1 || p === f || h === o || h === s))
|
|
1443
|
-
return h === D && f--, F = d.slice(0, f), E ? !0 : (y = m.enterLink(), m.inlineTokenizers = { text: x.text }, A = m.tokenizeInline(F, C.now()), m.inlineTokenizers = x, y(), C(F)({ type: "link", title: null, url: "mailto:" + t(F, { nonTerminated: !1 }), children: A }));
|
|
1444
|
-
}
|
|
1445
|
-
}
|
|
1446
|
-
}
|
|
1447
|
-
}), tn = I((u, e) => {
|
|
1448
|
-
var t = ne(), r = Bt(), n = vt().tag;
|
|
1449
|
-
e.exports = c, c.locator = r;
|
|
1450
|
-
var i = "<", a = "?", o = "!", D = "/", l = /^<a /i, s = /^<\/a>/i;
|
|
1451
|
-
function c(C, d, E) {
|
|
1452
|
-
var m = this, g = d.length, x, f;
|
|
1453
|
-
if (!(d.charAt(0) !== i || g < 3) && (x = d.charAt(1), !(!t(x) && x !== a && x !== o && x !== D) && (f = d.match(n), !!f)))
|
|
1454
|
-
return E ? !0 : (f = f[0], !m.inLink && l.test(f) ? m.inLink = !0 : m.inLink && s.test(f) && (m.inLink = !1), C(f)({ type: "html", value: f }));
|
|
1455
|
-
}
|
|
1456
|
-
}), bt = I((u, e) => {
|
|
1457
|
-
e.exports = t;
|
|
1458
|
-
function t(r, n) {
|
|
1459
|
-
var i = r.indexOf("[", n), a = r.indexOf("![", n);
|
|
1460
|
-
return a === -1 || i < a ? i : a;
|
|
1461
|
-
}
|
|
1462
|
-
}), rn = I((u, e) => {
|
|
1463
|
-
var t = yu(), r = bt();
|
|
1464
|
-
e.exports = g, g.locator = r;
|
|
1465
|
-
var n = `
|
|
1466
|
-
`, i = "!", a = '"', o = "'", D = "(", l = ")", s = "<", c = ">", C = "[", d = "\\", E = "]", m = "`";
|
|
1467
|
-
function g(x, f, B) {
|
|
1468
|
-
var p = this, h = "", F = 0, A = f.charAt(0), y = p.options.pedantic, w = p.options.commonmark, T = p.options.gfm, b, k, L, R, v, S, U, j, _, q, J, z, O, $, M, N, P, V;
|
|
1469
|
-
if (A === i && (j = !0, h = A, A = f.charAt(++F)), A === C && !(!j && p.inLink)) {
|
|
1470
|
-
for (h += A, $ = "", F++, J = f.length, N = x.now(), O = 0, N.column += F, N.offset += F; F < J; ) {
|
|
1471
|
-
if (A = f.charAt(F), S = A, A === m) {
|
|
1472
|
-
for (k = 1; f.charAt(F + 1) === m; )
|
|
1473
|
-
S += A, F++, k++;
|
|
1474
|
-
L ? k >= L && (L = 0) : L = k;
|
|
1475
|
-
} else if (A === d)
|
|
1476
|
-
F++, S += f.charAt(F);
|
|
1477
|
-
else if ((!L || T) && A === C)
|
|
1478
|
-
O++;
|
|
1479
|
-
else if ((!L || T) && A === E)
|
|
1480
|
-
if (O)
|
|
1481
|
-
O--;
|
|
1482
|
-
else {
|
|
1483
|
-
if (f.charAt(F + 1) !== D)
|
|
1484
|
-
return;
|
|
1485
|
-
S += D, b = !0, F++;
|
|
1486
|
-
break;
|
|
1487
|
-
}
|
|
1488
|
-
$ += S, S = "", F++;
|
|
1489
|
-
}
|
|
1490
|
-
if (b) {
|
|
1491
|
-
for (_ = $, h += $ + S, F++; F < J && (A = f.charAt(F), !!t(A)); )
|
|
1492
|
-
h += A, F++;
|
|
1493
|
-
if (A = f.charAt(F), $ = "", R = h, A === s) {
|
|
1494
|
-
for (F++, R += s; F < J && (A = f.charAt(F), A !== c); ) {
|
|
1495
|
-
if (w && A === n)
|
|
1496
|
-
return;
|
|
1497
|
-
$ += A, F++;
|
|
1498
|
-
}
|
|
1499
|
-
if (f.charAt(F) !== c)
|
|
1500
|
-
return;
|
|
1501
|
-
h += s + $ + c, M = $, F++;
|
|
1502
|
-
} else {
|
|
1503
|
-
for (A = null, S = ""; F < J && (A = f.charAt(F), !(S && (A === a || A === o || w && A === D))); ) {
|
|
1504
|
-
if (t(A)) {
|
|
1505
|
-
if (!y)
|
|
1506
|
-
break;
|
|
1507
|
-
S += A;
|
|
1508
|
-
} else {
|
|
1509
|
-
if (A === D)
|
|
1510
|
-
O++;
|
|
1511
|
-
else if (A === l) {
|
|
1512
|
-
if (O === 0)
|
|
1513
|
-
break;
|
|
1514
|
-
O--;
|
|
1515
|
-
}
|
|
1516
|
-
$ += S, S = "", A === d && ($ += d, A = f.charAt(++F)), $ += A;
|
|
1517
|
-
}
|
|
1518
|
-
F++;
|
|
1519
|
-
}
|
|
1520
|
-
h += $, M = $, F = h.length;
|
|
1521
|
-
}
|
|
1522
|
-
for ($ = ""; F < J && (A = f.charAt(F), !!t(A)); )
|
|
1523
|
-
$ += A, F++;
|
|
1524
|
-
if (A = f.charAt(F), h += $, $ && (A === a || A === o || w && A === D))
|
|
1525
|
-
if (F++, h += A, $ = "", q = A === D ? l : A, v = h, w) {
|
|
1526
|
-
for (; F < J && (A = f.charAt(F), A !== q); )
|
|
1527
|
-
A === d && ($ += d, A = f.charAt(++F)), F++, $ += A;
|
|
1528
|
-
if (A = f.charAt(F), A !== q)
|
|
1529
|
-
return;
|
|
1530
|
-
for (z = $, h += $ + A, F++; F < J && (A = f.charAt(F), !!t(A)); )
|
|
1531
|
-
h += A, F++;
|
|
1532
|
-
} else
|
|
1533
|
-
for (S = ""; F < J; ) {
|
|
1534
|
-
if (A = f.charAt(F), A === q)
|
|
1535
|
-
U && ($ += q + S, S = ""), U = !0;
|
|
1536
|
-
else if (!U)
|
|
1537
|
-
$ += A;
|
|
1538
|
-
else if (A === l) {
|
|
1539
|
-
h += $ + q + S, z = $;
|
|
1540
|
-
break;
|
|
1541
|
-
} else
|
|
1542
|
-
t(A) ? S += A : ($ += q + S + A, S = "", U = !1);
|
|
1543
|
-
F++;
|
|
1544
|
-
}
|
|
1545
|
-
if (f.charAt(F) === l)
|
|
1546
|
-
return B ? !0 : (h += l, M = p.decode.raw(p.unescape(M), x(R).test().end, { nonTerminated: !1 }), z && (v = x(v).test().end, z = p.decode.raw(p.unescape(z), v)), V = { type: j ? "image" : "link", title: z || null, url: M }, j ? V.alt = p.decode.raw(p.unescape(_), N) || null : (P = p.enterLink(), V.children = p.tokenizeInline(_, N), P()), x(h)(V));
|
|
1547
|
-
}
|
|
1548
|
-
}
|
|
1549
|
-
}
|
|
1550
|
-
}), nn = I((u, e) => {
|
|
1551
|
-
var t = yu(), r = bt(), n = xt();
|
|
1552
|
-
e.exports = E, E.locator = r;
|
|
1553
|
-
var i = "link", a = "image", o = "shortcut", D = "collapsed", l = "full", s = "!", c = "[", C = "\\", d = "]";
|
|
1554
|
-
function E(m, g, x) {
|
|
1555
|
-
var f = this, B = f.options.commonmark, p = g.charAt(0), h = 0, F = g.length, A = "", y = "", w = i, T = o, b, k, L, R, v, S, U, j;
|
|
1556
|
-
if (p === s && (w = a, y = p, p = g.charAt(++h)), p === c) {
|
|
1557
|
-
for (h++, y += p, S = "", j = 0; h < F; ) {
|
|
1558
|
-
if (p = g.charAt(h), p === c)
|
|
1559
|
-
U = !0, j++;
|
|
1560
|
-
else if (p === d) {
|
|
1561
|
-
if (!j)
|
|
1562
|
-
break;
|
|
1563
|
-
j--;
|
|
1564
|
-
}
|
|
1565
|
-
p === C && (S += C, p = g.charAt(++h)), S += p, h++;
|
|
1566
|
-
}
|
|
1567
|
-
if (A = S, b = S, p = g.charAt(h), p === d) {
|
|
1568
|
-
if (h++, A += p, S = "", !B)
|
|
1569
|
-
for (; h < F && (p = g.charAt(h), !!t(p)); )
|
|
1570
|
-
S += p, h++;
|
|
1571
|
-
if (p = g.charAt(h), p === c) {
|
|
1572
|
-
for (k = "", S += p, h++; h < F && (p = g.charAt(h), !(p === c || p === d)); )
|
|
1573
|
-
p === C && (k += C, p = g.charAt(++h)), k += p, h++;
|
|
1574
|
-
p = g.charAt(h), p === d ? (T = k ? l : D, S += k + p, h++) : k = "", A += S, S = "";
|
|
1575
|
-
} else {
|
|
1576
|
-
if (!b)
|
|
1577
|
-
return;
|
|
1578
|
-
k = b;
|
|
1579
|
-
}
|
|
1580
|
-
if (!(T !== l && U))
|
|
1581
|
-
return A = y + A, w === i && f.inLink ? null : x ? !0 : (L = m.now(), L.column += y.length, L.offset += y.length, k = T === l ? k : b, R = { type: w + "Reference", identifier: n(k), label: k, referenceType: T }, w === i ? (v = f.enterLink(), R.children = f.tokenizeInline(b, L), v()) : R.alt = f.decode.raw(f.unescape(b), L) || null, m(A)(R));
|
|
1582
|
-
}
|
|
1583
|
-
}
|
|
1584
|
-
}
|
|
1585
|
-
}), on = I((u, e) => {
|
|
1586
|
-
e.exports = t;
|
|
1587
|
-
function t(r, n) {
|
|
1588
|
-
var i = r.indexOf("**", n), a = r.indexOf("__", n);
|
|
1589
|
-
return a === -1 ? i : i === -1 || a < i ? a : i;
|
|
1590
|
-
}
|
|
1591
|
-
}), an = I((u, e) => {
|
|
1592
|
-
var t = Vu(), r = yu(), n = on();
|
|
1593
|
-
e.exports = D, D.locator = n;
|
|
1594
|
-
var i = "\\", a = "*", o = "_";
|
|
1595
|
-
function D(l, s, c) {
|
|
1596
|
-
var C = this, d = 0, E = s.charAt(d), m, g, x, f, B, p, h;
|
|
1597
|
-
if (!(E !== a && E !== o || s.charAt(++d) !== E) && (g = C.options.pedantic, x = E, B = x + x, p = s.length, d++, f = "", E = "", !(g && r(s.charAt(d)))))
|
|
1598
|
-
for (; d < p; ) {
|
|
1599
|
-
if (h = E, E = s.charAt(d), E === x && s.charAt(d + 1) === x && (!g || !r(h)) && (E = s.charAt(d + 2), E !== x))
|
|
1600
|
-
return t(f) ? c ? !0 : (m = l.now(), m.column += 2, m.offset += 2, l(B + f + B)({ type: "strong", children: C.tokenizeInline(f, m) })) : void 0;
|
|
1601
|
-
!g && E === i && (f += E, E = s.charAt(++d)), f += E, d++;
|
|
1602
|
-
}
|
|
1603
|
-
}
|
|
1604
|
-
}), Dn = I((u, e) => {
|
|
1605
|
-
e.exports = n;
|
|
1606
|
-
var t = String.fromCharCode, r = /\w/;
|
|
1607
|
-
function n(i) {
|
|
1608
|
-
return r.test(typeof i == "number" ? t(i) : i.charAt(0));
|
|
1609
|
-
}
|
|
1610
|
-
}), sn = I((u, e) => {
|
|
1611
|
-
e.exports = t;
|
|
1612
|
-
function t(r, n) {
|
|
1613
|
-
var i = r.indexOf("*", n), a = r.indexOf("_", n);
|
|
1614
|
-
return a === -1 ? i : i === -1 || a < i ? a : i;
|
|
1615
|
-
}
|
|
1616
|
-
}), ln = I((u, e) => {
|
|
1617
|
-
var t = Vu(), r = Dn(), n = yu(), i = sn();
|
|
1618
|
-
e.exports = l, l.locator = i;
|
|
1619
|
-
var a = "*", o = "_", D = "\\";
|
|
1620
|
-
function l(s, c, C) {
|
|
1621
|
-
var d = this, E = 0, m = c.charAt(E), g, x, f, B, p, h, F;
|
|
1622
|
-
if (!(m !== a && m !== o) && (x = d.options.pedantic, p = m, f = m, h = c.length, E++, B = "", m = "", !(x && n(c.charAt(E)))))
|
|
1623
|
-
for (; E < h; ) {
|
|
1624
|
-
if (F = m, m = c.charAt(E), m === f && (!x || !n(F))) {
|
|
1625
|
-
if (m = c.charAt(++E), m !== f) {
|
|
1626
|
-
if (!t(B) || F === f)
|
|
1627
|
-
return;
|
|
1628
|
-
if (!x && f === o && r(m)) {
|
|
1629
|
-
B += f;
|
|
1630
|
-
continue;
|
|
1631
|
-
}
|
|
1632
|
-
return C ? !0 : (g = s.now(), g.column++, g.offset++, s(p + B + f)({ type: "emphasis", children: d.tokenizeInline(B, g) }));
|
|
1633
|
-
}
|
|
1634
|
-
B += f;
|
|
1635
|
-
}
|
|
1636
|
-
!x && m === D && (B += m, m = c.charAt(++E)), B += m, E++;
|
|
1637
|
-
}
|
|
1638
|
-
}
|
|
1639
|
-
}), cn = I((u, e) => {
|
|
1640
|
-
e.exports = t;
|
|
1641
|
-
function t(r, n) {
|
|
1642
|
-
return r.indexOf("~~", n);
|
|
1643
|
-
}
|
|
1644
|
-
}), fn = I((u, e) => {
|
|
1645
|
-
var t = yu(), r = cn();
|
|
1646
|
-
e.exports = a, a.locator = r;
|
|
1647
|
-
var n = "~", i = "~~";
|
|
1648
|
-
function a(o, D, l) {
|
|
1649
|
-
var s = this, c = "", C = "", d = "", E = "", m, g, x;
|
|
1650
|
-
if (!(!s.options.gfm || D.charAt(0) !== n || D.charAt(1) !== n || t(D.charAt(2))))
|
|
1651
|
-
for (m = 1, g = D.length, x = o.now(), x.column += 2, x.offset += 2; ++m < g; ) {
|
|
1652
|
-
if (c = D.charAt(m), c === n && C === n && (!d || !t(d)))
|
|
1653
|
-
return l ? !0 : o(i + E + i)({ type: "delete", children: s.tokenizeInline(E, x) });
|
|
1654
|
-
E += C, d = C, C = c;
|
|
1655
|
-
}
|
|
1656
|
-
}
|
|
1657
|
-
}), pn = I((u, e) => {
|
|
1658
|
-
e.exports = t;
|
|
1659
|
-
function t(r, n) {
|
|
1660
|
-
return r.indexOf("`", n);
|
|
1661
|
-
}
|
|
1662
|
-
}), hn = I((u, e) => {
|
|
1663
|
-
var t = pn();
|
|
1664
|
-
e.exports = a, a.locator = t;
|
|
1665
|
-
var r = 10, n = 32, i = 96;
|
|
1666
|
-
function a(o, D, l) {
|
|
1667
|
-
for (var s = D.length, c = 0, C, d, E, m, g, x; c < s && D.charCodeAt(c) === i; )
|
|
1668
|
-
c++;
|
|
1669
|
-
if (!(c === 0 || c === s)) {
|
|
1670
|
-
for (C = c, g = D.charCodeAt(c); c < s; ) {
|
|
1671
|
-
if (m = g, g = D.charCodeAt(c + 1), m === i) {
|
|
1672
|
-
if (d === void 0 && (d = c), E = c + 1, g !== i && E - d === C) {
|
|
1673
|
-
x = !0;
|
|
1674
|
-
break;
|
|
1675
|
-
}
|
|
1676
|
-
} else
|
|
1677
|
-
d !== void 0 && (d = void 0, E = void 0);
|
|
1678
|
-
c++;
|
|
1679
|
-
}
|
|
1680
|
-
if (x) {
|
|
1681
|
-
if (l)
|
|
1682
|
-
return !0;
|
|
1683
|
-
if (c = C, s = d, m = D.charCodeAt(c), g = D.charCodeAt(s - 1), x = !1, s - c > 2 && (m === n || m === r) && (g === n || g === r)) {
|
|
1684
|
-
for (c++, s--; c < s; ) {
|
|
1685
|
-
if (m = D.charCodeAt(c), m !== n && m !== r) {
|
|
1686
|
-
x = !0;
|
|
1687
|
-
break;
|
|
1688
|
-
}
|
|
1689
|
-
c++;
|
|
1690
|
-
}
|
|
1691
|
-
x === !0 && (C++, d--);
|
|
1692
|
-
}
|
|
1693
|
-
return o(D.slice(0, E))({ type: "inlineCode", value: D.slice(C, d) });
|
|
1694
|
-
}
|
|
1695
|
-
}
|
|
1696
|
-
}
|
|
1697
|
-
}), Fn = I((u, e) => {
|
|
1698
|
-
e.exports = t;
|
|
1699
|
-
function t(r, n) {
|
|
1700
|
-
for (var i = r.indexOf(`
|
|
1701
|
-
`, n); i > n && r.charAt(i - 1) === " "; )
|
|
1702
|
-
i--;
|
|
1703
|
-
return i;
|
|
1704
|
-
}
|
|
1705
|
-
}), dn = I((u, e) => {
|
|
1706
|
-
var t = Fn();
|
|
1707
|
-
e.exports = a, a.locator = t;
|
|
1708
|
-
var r = " ", n = `
|
|
1709
|
-
`, i = 2;
|
|
1710
|
-
function a(o, D, l) {
|
|
1711
|
-
for (var s = D.length, c = -1, C = "", d; ++c < s; ) {
|
|
1712
|
-
if (d = D.charAt(c), d === n)
|
|
1713
|
-
return c < i ? void 0 : l ? !0 : (C += d, o(C)({ type: "break" }));
|
|
1714
|
-
if (d !== r)
|
|
1715
|
-
return;
|
|
1716
|
-
C += d;
|
|
1717
|
-
}
|
|
1718
|
-
}
|
|
1719
|
-
}), Cn = I((u, e) => {
|
|
1720
|
-
e.exports = t;
|
|
1721
|
-
function t(r, n, i) {
|
|
1722
|
-
var a = this, o, D, l, s, c, C, d, E, m, g;
|
|
1723
|
-
if (i)
|
|
1724
|
-
return !0;
|
|
1725
|
-
for (o = a.inlineMethods, s = o.length, D = a.inlineTokenizers, l = -1, m = n.length; ++l < s; )
|
|
1726
|
-
E = o[l], !(E === "text" || !D[E]) && (d = D[E].locator, d || r.file.fail("Missing locator: `" + E + "`"), C = d.call(a, n, 1), C !== -1 && C < m && (m = C));
|
|
1727
|
-
c = n.slice(0, m), g = r.now(), a.decode(c, g, x);
|
|
1728
|
-
function x(f, B, p) {
|
|
1729
|
-
r(p || f)({ type: "text", value: f });
|
|
1730
|
-
}
|
|
1731
|
-
}
|
|
1732
|
-
}), An = I((u, e) => {
|
|
1733
|
-
var t = Mu(), r = Fr(), n = dr(), i = Cr(), a = Br(), o = br();
|
|
1734
|
-
e.exports = D;
|
|
1735
|
-
function D(c, C) {
|
|
1736
|
-
this.file = C, this.offset = {}, this.options = t(this.options), this.setOptions({}), this.inList = !1, this.inBlock = !1, this.inLink = !1, this.atStart = !0, this.toOffset = n(C).toOffset, this.unescape = i(this, "escape"), this.decode = a(this);
|
|
1737
|
-
}
|
|
1738
|
-
var l = D.prototype;
|
|
1739
|
-
l.setOptions = kr(), l.parse = Nr(), l.options = gt(), l.exitStart = r("atStart", !0), l.enterList = r("inList", !1), l.enterLink = r("inLink", !1), l.enterBlock = r("inBlock", !1), l.interruptParagraph = [["thematicBreak"], ["list"], ["atxHeading"], ["fencedCode"], ["blockquote"], ["html"], ["setextHeading", { commonmark: !1 }], ["definition", { commonmark: !1 }]], l.interruptList = [["atxHeading", { pedantic: !1 }], ["fencedCode", { pedantic: !1 }], ["thematicBreak", { pedantic: !1 }], ["definition", { commonmark: !1 }]], l.interruptBlockquote = [["indentedCode", { commonmark: !0 }], ["fencedCode", { commonmark: !0 }], ["atxHeading", { commonmark: !0 }], ["setextHeading", { commonmark: !0 }], ["thematicBreak", { commonmark: !0 }], ["html", { commonmark: !0 }], ["list", { commonmark: !0 }], ["definition", { commonmark: !1 }]], l.blockTokenizers = { blankLine: Rr(), indentedCode: Ir(), fencedCode: Pr(), blockquote: jr(), atxHeading: zr(), thematicBreak: $r(), list: Mr(), setextHeading: _r(), html: Vr(), definition: Hr(), table: Wr(), paragraph: Gr() }, l.inlineTokenizers = { escape: Yr(), autoLink: Kr(), url: Xr(), email: en(), html: tn(), link: rn(), reference: nn(), strong: an(), emphasis: ln(), deletion: fn(), code: hn(), break: dn(), text: Cn() }, l.blockMethods = s(l.blockTokenizers), l.inlineMethods = s(l.inlineTokenizers), l.tokenizeBlock = o("block"), l.tokenizeInline = o("inline"), l.tokenizeFactory = o;
|
|
1740
|
-
function s(c) {
|
|
1741
|
-
var C = [], d;
|
|
1742
|
-
for (d in c)
|
|
1743
|
-
C.push(d);
|
|
1744
|
-
return C;
|
|
1745
|
-
}
|
|
1746
|
-
}), gn = I((u, e) => {
|
|
1747
|
-
var t = hr(), r = Mu(), n = An();
|
|
1748
|
-
e.exports = i, i.Parser = n;
|
|
1749
|
-
function i(a) {
|
|
1750
|
-
var o = this.data("settings"), D = t(n);
|
|
1751
|
-
D.prototype.options = r(D.prototype.options, o, a), this.Parser = D;
|
|
1752
|
-
}
|
|
1753
|
-
}), En = I((u, e) => {
|
|
1754
|
-
e.exports = t;
|
|
1755
|
-
function t(r) {
|
|
1756
|
-
if (r)
|
|
1757
|
-
throw r;
|
|
1758
|
-
}
|
|
1759
|
-
}), yt = I((u, e) => {
|
|
1760
|
-
e.exports = function(t) {
|
|
1761
|
-
return t != null && t.constructor != null && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t);
|
|
1762
|
-
};
|
|
1763
|
-
}), mn = I((u, e) => {
|
|
1764
|
-
var t = Object.prototype.hasOwnProperty, r = Object.prototype.toString, n = Object.defineProperty, i = Object.getOwnPropertyDescriptor, a = function(s) {
|
|
1765
|
-
return typeof Array.isArray == "function" ? Array.isArray(s) : r.call(s) === "[object Array]";
|
|
1766
|
-
}, o = function(s) {
|
|
1767
|
-
if (!s || r.call(s) !== "[object Object]")
|
|
1768
|
-
return !1;
|
|
1769
|
-
var c = t.call(s, "constructor"), C = s.constructor && s.constructor.prototype && t.call(s.constructor.prototype, "isPrototypeOf");
|
|
1770
|
-
if (s.constructor && !c && !C)
|
|
1771
|
-
return !1;
|
|
1772
|
-
var d;
|
|
1773
|
-
for (d in s)
|
|
1774
|
-
;
|
|
1775
|
-
return typeof d > "u" || t.call(s, d);
|
|
1776
|
-
}, D = function(s, c) {
|
|
1777
|
-
n && c.name === "__proto__" ? n(s, c.name, { enumerable: !0, configurable: !0, value: c.newValue, writable: !0 }) : s[c.name] = c.newValue;
|
|
1778
|
-
}, l = function(s, c) {
|
|
1779
|
-
if (c === "__proto__")
|
|
1780
|
-
if (t.call(s, c)) {
|
|
1781
|
-
if (i)
|
|
1782
|
-
return i(s, c).value;
|
|
1783
|
-
} else
|
|
1784
|
-
return;
|
|
1785
|
-
return s[c];
|
|
1786
|
-
};
|
|
1787
|
-
e.exports = function s() {
|
|
1788
|
-
var c, C, d, E, m, g, x = arguments[0], f = 1, B = arguments.length, p = !1;
|
|
1789
|
-
for (typeof x == "boolean" && (p = x, x = arguments[1] || {}, f = 2), (x == null || typeof x != "object" && typeof x != "function") && (x = {}); f < B; ++f)
|
|
1790
|
-
if (c = arguments[f], c != null)
|
|
1791
|
-
for (C in c)
|
|
1792
|
-
d = l(x, C), E = l(c, C), x !== E && (p && E && (o(E) || (m = a(E))) ? (m ? (m = !1, g = d && a(d) ? d : []) : g = d && o(d) ? d : {}, D(x, { name: C, newValue: s(p, g, E) })) : typeof E < "u" && D(x, { name: C, newValue: E }));
|
|
1793
|
-
return x;
|
|
1794
|
-
};
|
|
1795
|
-
}), vn = I((u, e) => {
|
|
1796
|
-
e.exports = (t) => {
|
|
1797
|
-
if (Object.prototype.toString.call(t) !== "[object Object]")
|
|
1798
|
-
return !1;
|
|
1799
|
-
let r = Object.getPrototypeOf(t);
|
|
1800
|
-
return r === null || r === Object.prototype;
|
|
1801
|
-
};
|
|
1802
|
-
}), xn = I((u, e) => {
|
|
1803
|
-
var t = [].slice;
|
|
1804
|
-
e.exports = r;
|
|
1805
|
-
function r(n, i) {
|
|
1806
|
-
var a;
|
|
1807
|
-
return o;
|
|
1808
|
-
function o() {
|
|
1809
|
-
var s = t.call(arguments, 0), c = n.length > s.length, C;
|
|
1810
|
-
c && s.push(D);
|
|
1811
|
-
try {
|
|
1812
|
-
C = n.apply(null, s);
|
|
1813
|
-
} catch (d) {
|
|
1814
|
-
if (c && a)
|
|
1815
|
-
throw d;
|
|
1816
|
-
return D(d);
|
|
1817
|
-
}
|
|
1818
|
-
c || (C && typeof C.then == "function" ? C.then(l, D) : C instanceof Error ? D(C) : l(C));
|
|
1819
|
-
}
|
|
1820
|
-
function D() {
|
|
1821
|
-
a || (a = !0, i.apply(null, arguments));
|
|
1822
|
-
}
|
|
1823
|
-
function l(s) {
|
|
1824
|
-
D(null, s);
|
|
1825
|
-
}
|
|
1826
|
-
}
|
|
1827
|
-
}), Bn = I((u, e) => {
|
|
1828
|
-
var t = xn();
|
|
1829
|
-
e.exports = n, n.wrap = t;
|
|
1830
|
-
var r = [].slice;
|
|
1831
|
-
function n() {
|
|
1832
|
-
var i = [], a = {};
|
|
1833
|
-
return a.run = o, a.use = D, a;
|
|
1834
|
-
function o() {
|
|
1835
|
-
var l = -1, s = r.call(arguments, 0, -1), c = arguments[arguments.length - 1];
|
|
1836
|
-
if (typeof c != "function")
|
|
1837
|
-
throw new Error("Expected function as last argument, not " + c);
|
|
1838
|
-
C.apply(null, [null].concat(s));
|
|
1839
|
-
function C(d) {
|
|
1840
|
-
var E = i[++l], m = r.call(arguments, 0), g = m.slice(1), x = s.length, f = -1;
|
|
1841
|
-
if (d) {
|
|
1842
|
-
c(d);
|
|
1843
|
-
return;
|
|
1844
|
-
}
|
|
1845
|
-
for (; ++f < x; )
|
|
1846
|
-
(g[f] === null || g[f] === void 0) && (g[f] = s[f]);
|
|
1847
|
-
s = g, E ? t(E, C).apply(null, s) : c.apply(null, [null].concat(s));
|
|
1848
|
-
}
|
|
1849
|
-
}
|
|
1850
|
-
function D(l) {
|
|
1851
|
-
if (typeof l != "function")
|
|
1852
|
-
throw new Error("Expected `fn` to be a function, not " + l);
|
|
1853
|
-
return i.push(l), a;
|
|
1854
|
-
}
|
|
1855
|
-
}
|
|
1856
|
-
}), bn = I((u, e) => {
|
|
1857
|
-
var t = {}.hasOwnProperty;
|
|
1858
|
-
e.exports = r;
|
|
1859
|
-
function r(o) {
|
|
1860
|
-
return !o || typeof o != "object" ? "" : t.call(o, "position") || t.call(o, "type") ? i(o.position) : t.call(o, "start") || t.call(o, "end") ? i(o) : t.call(o, "line") || t.call(o, "column") ? n(o) : "";
|
|
1861
|
-
}
|
|
1862
|
-
function n(o) {
|
|
1863
|
-
return (!o || typeof o != "object") && (o = {}), a(o.line) + ":" + a(o.column);
|
|
1864
|
-
}
|
|
1865
|
-
function i(o) {
|
|
1866
|
-
return (!o || typeof o != "object") && (o = {}), n(o.start) + "-" + n(o.end);
|
|
1867
|
-
}
|
|
1868
|
-
function a(o) {
|
|
1869
|
-
return o && typeof o == "number" ? o : 1;
|
|
1870
|
-
}
|
|
1871
|
-
}), yn = I((u, e) => {
|
|
1872
|
-
var t = bn();
|
|
1873
|
-
e.exports = i;
|
|
1874
|
-
function r() {
|
|
1875
|
-
}
|
|
1876
|
-
r.prototype = Error.prototype, i.prototype = new r();
|
|
1877
|
-
var n = i.prototype;
|
|
1878
|
-
n.file = "", n.name = "", n.reason = "", n.message = "", n.stack = "", n.fatal = null, n.column = null, n.line = null;
|
|
1879
|
-
function i(o, D, l) {
|
|
1880
|
-
var s, c, C;
|
|
1881
|
-
typeof D == "string" && (l = D, D = null), s = a(l), c = t(D) || "1:1", C = { start: { line: null, column: null }, end: { line: null, column: null } }, D && D.position && (D = D.position), D && (D.start ? (C = D, D = D.start) : C.start = D), o.stack && (this.stack = o.stack, o = o.message), this.message = o, this.name = c, this.reason = o, this.line = D ? D.line : null, this.column = D ? D.column : null, this.location = C, this.source = s[0], this.ruleId = s[1];
|
|
1882
|
-
}
|
|
1883
|
-
function a(o) {
|
|
1884
|
-
var D = [null, null], l;
|
|
1885
|
-
return typeof o == "string" && (l = o.indexOf(":"), l === -1 ? D[1] = o : (D[0] = o.slice(0, l), D[1] = o.slice(l + 1))), D;
|
|
1886
|
-
}
|
|
1887
|
-
}), wn = I((u) => {
|
|
1888
|
-
u.basename = e, u.dirname = t, u.extname = r, u.join = n, u.sep = "/";
|
|
1889
|
-
function e(D, l) {
|
|
1890
|
-
var s = 0, c = -1, C, d, E, m;
|
|
1891
|
-
if (l !== void 0 && typeof l != "string")
|
|
1892
|
-
throw new TypeError('"ext" argument must be a string');
|
|
1893
|
-
if (o(D), C = D.length, l === void 0 || !l.length || l.length > D.length) {
|
|
1894
|
-
for (; C--; )
|
|
1895
|
-
if (D.charCodeAt(C) === 47) {
|
|
1896
|
-
if (E) {
|
|
1897
|
-
s = C + 1;
|
|
1898
|
-
break;
|
|
1899
|
-
}
|
|
1900
|
-
} else
|
|
1901
|
-
c < 0 && (E = !0, c = C + 1);
|
|
1902
|
-
return c < 0 ? "" : D.slice(s, c);
|
|
1903
|
-
}
|
|
1904
|
-
if (l === D)
|
|
1905
|
-
return "";
|
|
1906
|
-
for (d = -1, m = l.length - 1; C--; )
|
|
1907
|
-
if (D.charCodeAt(C) === 47) {
|
|
1908
|
-
if (E) {
|
|
1909
|
-
s = C + 1;
|
|
1910
|
-
break;
|
|
1911
|
-
}
|
|
1912
|
-
} else
|
|
1913
|
-
d < 0 && (E = !0, d = C + 1), m > -1 && (D.charCodeAt(C) === l.charCodeAt(m--) ? m < 0 && (c = C) : (m = -1, c = d));
|
|
1914
|
-
return s === c ? c = d : c < 0 && (c = D.length), D.slice(s, c);
|
|
1915
|
-
}
|
|
1916
|
-
function t(D) {
|
|
1917
|
-
var l, s, c;
|
|
1918
|
-
if (o(D), !D.length)
|
|
1919
|
-
return ".";
|
|
1920
|
-
for (l = -1, c = D.length; --c; )
|
|
1921
|
-
if (D.charCodeAt(c) === 47) {
|
|
1922
|
-
if (s) {
|
|
1923
|
-
l = c;
|
|
1924
|
-
break;
|
|
1925
|
-
}
|
|
1926
|
-
} else
|
|
1927
|
-
s || (s = !0);
|
|
1928
|
-
return l < 0 ? D.charCodeAt(0) === 47 ? "/" : "." : l === 1 && D.charCodeAt(0) === 47 ? "//" : D.slice(0, l);
|
|
1929
|
-
}
|
|
1930
|
-
function r(D) {
|
|
1931
|
-
var l = -1, s = 0, c = -1, C = 0, d, E, m;
|
|
1932
|
-
for (o(D), m = D.length; m--; ) {
|
|
1933
|
-
if (E = D.charCodeAt(m), E === 47) {
|
|
1934
|
-
if (d) {
|
|
1935
|
-
s = m + 1;
|
|
1936
|
-
break;
|
|
1937
|
-
}
|
|
1938
|
-
continue;
|
|
1939
|
-
}
|
|
1940
|
-
c < 0 && (d = !0, c = m + 1), E === 46 ? l < 0 ? l = m : C !== 1 && (C = 1) : l > -1 && (C = -1);
|
|
1941
|
-
}
|
|
1942
|
-
return l < 0 || c < 0 || C === 0 || C === 1 && l === c - 1 && l === s + 1 ? "" : D.slice(l, c);
|
|
1943
|
-
}
|
|
1944
|
-
function n() {
|
|
1945
|
-
for (var D = -1, l; ++D < arguments.length; )
|
|
1946
|
-
o(arguments[D]), arguments[D] && (l = l === void 0 ? arguments[D] : l + "/" + arguments[D]);
|
|
1947
|
-
return l === void 0 ? "." : i(l);
|
|
1948
|
-
}
|
|
1949
|
-
function i(D) {
|
|
1950
|
-
var l, s;
|
|
1951
|
-
return o(D), l = D.charCodeAt(0) === 47, s = a(D, !l), !s.length && !l && (s = "."), s.length && D.charCodeAt(D.length - 1) === 47 && (s += "/"), l ? "/" + s : s;
|
|
1952
|
-
}
|
|
1953
|
-
function a(D, l) {
|
|
1954
|
-
for (var s = "", c = 0, C = -1, d = 0, E = -1, m, g; ++E <= D.length; ) {
|
|
1955
|
-
if (E < D.length)
|
|
1956
|
-
m = D.charCodeAt(E);
|
|
1957
|
-
else {
|
|
1958
|
-
if (m === 47)
|
|
1959
|
-
break;
|
|
1960
|
-
m = 47;
|
|
1961
|
-
}
|
|
1962
|
-
if (m === 47) {
|
|
1963
|
-
if (!(C === E - 1 || d === 1))
|
|
1964
|
-
if (C !== E - 1 && d === 2) {
|
|
1965
|
-
if (s.length < 2 || c !== 2 || s.charCodeAt(s.length - 1) !== 46 || s.charCodeAt(s.length - 2) !== 46) {
|
|
1966
|
-
if (s.length > 2) {
|
|
1967
|
-
if (g = s.lastIndexOf("/"), g !== s.length - 1) {
|
|
1968
|
-
g < 0 ? (s = "", c = 0) : (s = s.slice(0, g), c = s.length - 1 - s.lastIndexOf("/")), C = E, d = 0;
|
|
1969
|
-
continue;
|
|
1970
|
-
}
|
|
1971
|
-
} else if (s.length) {
|
|
1972
|
-
s = "", c = 0, C = E, d = 0;
|
|
1973
|
-
continue;
|
|
1974
|
-
}
|
|
1975
|
-
}
|
|
1976
|
-
l && (s = s.length ? s + "/.." : "..", c = 2);
|
|
1977
|
-
} else
|
|
1978
|
-
s.length ? s += "/" + D.slice(C + 1, E) : s = D.slice(C + 1, E), c = E - C - 1;
|
|
1979
|
-
C = E, d = 0;
|
|
1980
|
-
} else
|
|
1981
|
-
m === 46 && d > -1 ? d++ : d = -1;
|
|
1982
|
-
}
|
|
1983
|
-
return s;
|
|
1984
|
-
}
|
|
1985
|
-
function o(D) {
|
|
1986
|
-
if (typeof D != "string")
|
|
1987
|
-
throw new TypeError("Path must be a string. Received " + JSON.stringify(D));
|
|
1988
|
-
}
|
|
1989
|
-
}), kn = I((u) => {
|
|
1990
|
-
u.cwd = e;
|
|
1991
|
-
function e() {
|
|
1992
|
-
return "/";
|
|
1993
|
-
}
|
|
1994
|
-
}), qn = I((u, e) => {
|
|
1995
|
-
var t = wn(), r = kn(), n = yt();
|
|
1996
|
-
e.exports = o;
|
|
1997
|
-
var i = {}.hasOwnProperty, a = ["history", "path", "basename", "stem", "extname", "dirname"];
|
|
1998
|
-
o.prototype.toString = f, Object.defineProperty(o.prototype, "path", { get: D, set: l }), Object.defineProperty(o.prototype, "dirname", { get: s, set: c }), Object.defineProperty(o.prototype, "basename", { get: C, set: d }), Object.defineProperty(o.prototype, "extname", { get: E, set: m }), Object.defineProperty(o.prototype, "stem", { get: g, set: x });
|
|
1999
|
-
function o(F) {
|
|
2000
|
-
var A, y;
|
|
2001
|
-
if (!F)
|
|
2002
|
-
F = {};
|
|
2003
|
-
else if (typeof F == "string" || n(F))
|
|
2004
|
-
F = { contents: F };
|
|
2005
|
-
else if ("message" in F && "messages" in F)
|
|
2006
|
-
return F;
|
|
2007
|
-
if (!(this instanceof o))
|
|
2008
|
-
return new o(F);
|
|
2009
|
-
for (this.data = {}, this.messages = [], this.history = [], this.cwd = r.cwd(), y = -1; ++y < a.length; )
|
|
2010
|
-
A = a[y], i.call(F, A) && (this[A] = F[A]);
|
|
2011
|
-
for (A in F)
|
|
2012
|
-
a.indexOf(A) < 0 && (this[A] = F[A]);
|
|
2013
|
-
}
|
|
2014
|
-
function D() {
|
|
2015
|
-
return this.history[this.history.length - 1];
|
|
2016
|
-
}
|
|
2017
|
-
function l(F) {
|
|
2018
|
-
p(F, "path"), this.path !== F && this.history.push(F);
|
|
2019
|
-
}
|
|
2020
|
-
function s() {
|
|
2021
|
-
return typeof this.path == "string" ? t.dirname(this.path) : void 0;
|
|
2022
|
-
}
|
|
2023
|
-
function c(F) {
|
|
2024
|
-
h(this.path, "dirname"), this.path = t.join(F || "", this.basename);
|
|
2025
|
-
}
|
|
2026
|
-
function C() {
|
|
2027
|
-
return typeof this.path == "string" ? t.basename(this.path) : void 0;
|
|
2028
|
-
}
|
|
2029
|
-
function d(F) {
|
|
2030
|
-
p(F, "basename"), B(F, "basename"), this.path = t.join(this.dirname || "", F);
|
|
2031
|
-
}
|
|
2032
|
-
function E() {
|
|
2033
|
-
return typeof this.path == "string" ? t.extname(this.path) : void 0;
|
|
2034
|
-
}
|
|
2035
|
-
function m(F) {
|
|
2036
|
-
if (B(F, "extname"), h(this.path, "extname"), F) {
|
|
2037
|
-
if (F.charCodeAt(0) !== 46)
|
|
2038
|
-
throw new Error("`extname` must start with `.`");
|
|
2039
|
-
if (F.indexOf(".", 1) > -1)
|
|
2040
|
-
throw new Error("`extname` cannot contain multiple dots");
|
|
2041
|
-
}
|
|
2042
|
-
this.path = t.join(this.dirname, this.stem + (F || ""));
|
|
2043
|
-
}
|
|
2044
|
-
function g() {
|
|
2045
|
-
return typeof this.path == "string" ? t.basename(this.path, this.extname) : void 0;
|
|
2046
|
-
}
|
|
2047
|
-
function x(F) {
|
|
2048
|
-
p(F, "stem"), B(F, "stem"), this.path = t.join(this.dirname || "", F + (this.extname || ""));
|
|
2049
|
-
}
|
|
2050
|
-
function f(F) {
|
|
2051
|
-
return (this.contents || "").toString(F);
|
|
2052
|
-
}
|
|
2053
|
-
function B(F, A) {
|
|
2054
|
-
if (F && F.indexOf(t.sep) > -1)
|
|
2055
|
-
throw new Error("`" + A + "` cannot be a path: did not expect `" + t.sep + "`");
|
|
2056
|
-
}
|
|
2057
|
-
function p(F, A) {
|
|
2058
|
-
if (!F)
|
|
2059
|
-
throw new Error("`" + A + "` cannot be empty");
|
|
2060
|
-
}
|
|
2061
|
-
function h(F, A) {
|
|
2062
|
-
if (!F)
|
|
2063
|
-
throw new Error("Setting `" + A + "` requires `path` to be set too");
|
|
2064
|
-
}
|
|
2065
|
-
}), Sn = I((u, e) => {
|
|
2066
|
-
var t = yn(), r = qn();
|
|
2067
|
-
e.exports = r, r.prototype.message = n, r.prototype.info = a, r.prototype.fail = i;
|
|
2068
|
-
function n(o, D, l) {
|
|
2069
|
-
var s = new t(o, D, l);
|
|
2070
|
-
return this.path && (s.name = this.path + ":" + s.name, s.file = this.path), s.fatal = !1, this.messages.push(s), s;
|
|
2071
|
-
}
|
|
2072
|
-
function i() {
|
|
2073
|
-
var o = this.message.apply(this, arguments);
|
|
2074
|
-
throw o.fatal = !0, o;
|
|
2075
|
-
}
|
|
2076
|
-
function a() {
|
|
2077
|
-
var o = this.message.apply(this, arguments);
|
|
2078
|
-
return o.fatal = null, o;
|
|
2079
|
-
}
|
|
2080
|
-
}), Ln = I((u, e) => {
|
|
2081
|
-
e.exports = Sn();
|
|
2082
|
-
}), Tn = I((u, e) => {
|
|
2083
|
-
var t = En(), r = yt(), n = mn(), i = vn(), a = Bn(), o = Ln();
|
|
2084
|
-
e.exports = E().freeze();
|
|
2085
|
-
var D = [].slice, l = {}.hasOwnProperty, s = a().use(c).use(C).use(d);
|
|
2086
|
-
function c(F, A) {
|
|
2087
|
-
A.tree = F.parse(A.file);
|
|
2088
|
-
}
|
|
2089
|
-
function C(F, A, y) {
|
|
2090
|
-
F.run(A.tree, A.file, w);
|
|
2091
|
-
function w(T, b, k) {
|
|
2092
|
-
T ? y(T) : (A.tree = b, A.file = k, y());
|
|
2093
|
-
}
|
|
2094
|
-
}
|
|
2095
|
-
function d(F, A) {
|
|
2096
|
-
var y = F.stringify(A.tree, A.file);
|
|
2097
|
-
y == null || (typeof y == "string" || r(y) ? ("value" in A.file && (A.file.value = y), A.file.contents = y) : A.file.result = y);
|
|
2098
|
-
}
|
|
2099
|
-
function E() {
|
|
2100
|
-
var F = [], A = a(), y = {}, w = -1, T;
|
|
2101
|
-
return b.data = L, b.freeze = k, b.attachers = F, b.use = R, b.parse = S, b.stringify = _, b.run = U, b.runSync = j, b.process = q, b.processSync = J, b;
|
|
2102
|
-
function b() {
|
|
2103
|
-
for (var z = E(), O = -1; ++O < F.length; )
|
|
2104
|
-
z.use.apply(null, F[O]);
|
|
2105
|
-
return z.data(n(!0, {}, y)), z;
|
|
2106
|
-
}
|
|
2107
|
-
function k() {
|
|
2108
|
-
var z, O;
|
|
2109
|
-
if (T)
|
|
2110
|
-
return b;
|
|
2111
|
-
for (; ++w < F.length; )
|
|
2112
|
-
z = F[w], z[1] !== !1 && (z[1] === !0 && (z[1] = void 0), O = z[0].apply(b, z.slice(1)), typeof O == "function" && A.use(O));
|
|
2113
|
-
return T = !0, w = 1 / 0, b;
|
|
2114
|
-
}
|
|
2115
|
-
function L(z, O) {
|
|
2116
|
-
return typeof z == "string" ? arguments.length === 2 ? (B("data", T), y[z] = O, b) : l.call(y, z) && y[z] || null : z ? (B("data", T), y = z, b) : y;
|
|
2117
|
-
}
|
|
2118
|
-
function R(z) {
|
|
2119
|
-
var O;
|
|
2120
|
-
if (B("use", T), z != null)
|
|
2121
|
-
if (typeof z == "function")
|
|
2122
|
-
P.apply(null, arguments);
|
|
2123
|
-
else if (typeof z == "object")
|
|
2124
|
-
"length" in z ? N(z) : $(z);
|
|
2125
|
-
else
|
|
2126
|
-
throw new Error("Expected usable value, not `" + z + "`");
|
|
2127
|
-
return O && (y.settings = n(y.settings || {}, O)), b;
|
|
2128
|
-
function $(V) {
|
|
2129
|
-
N(V.plugins), V.settings && (O = n(O || {}, V.settings));
|
|
2130
|
-
}
|
|
2131
|
-
function M(V) {
|
|
2132
|
-
if (typeof V == "function")
|
|
2133
|
-
P(V);
|
|
2134
|
-
else if (typeof V == "object")
|
|
2135
|
-
"length" in V ? P.apply(null, V) : $(V);
|
|
2136
|
-
else
|
|
2137
|
-
throw new Error("Expected usable value, not `" + V + "`");
|
|
2138
|
-
}
|
|
2139
|
-
function N(V) {
|
|
2140
|
-
var H = -1;
|
|
2141
|
-
if (V != null)
|
|
2142
|
-
if (typeof V == "object" && "length" in V)
|
|
2143
|
-
for (; ++H < V.length; )
|
|
2144
|
-
M(V[H]);
|
|
2145
|
-
else
|
|
2146
|
-
throw new Error("Expected a list of plugins, not `" + V + "`");
|
|
2147
|
-
}
|
|
2148
|
-
function P(V, H) {
|
|
2149
|
-
var Y = v(V);
|
|
2150
|
-
Y ? (i(Y[1]) && i(H) && (H = n(!0, Y[1], H)), Y[1] = H) : F.push(D.call(arguments));
|
|
2151
|
-
}
|
|
2152
|
-
}
|
|
2153
|
-
function v(z) {
|
|
2154
|
-
for (var O = -1; ++O < F.length; )
|
|
2155
|
-
if (F[O][0] === z)
|
|
2156
|
-
return F[O];
|
|
2157
|
-
}
|
|
2158
|
-
function S(z) {
|
|
2159
|
-
var O = o(z), $;
|
|
2160
|
-
return k(), $ = b.Parser, x("parse", $), m($, "parse") ? new $(String(O), O).parse() : $(String(O), O);
|
|
2161
|
-
}
|
|
2162
|
-
function U(z, O, $) {
|
|
2163
|
-
if (p(z), k(), !$ && typeof O == "function" && ($ = O, O = null), !$)
|
|
2164
|
-
return new Promise(M);
|
|
2165
|
-
M(null, $);
|
|
2166
|
-
function M(N, P) {
|
|
2167
|
-
A.run(z, o(O), V);
|
|
2168
|
-
function V(H, Y, K) {
|
|
2169
|
-
Y = Y || z, H ? P(H) : N ? N(Y) : $(null, Y, K);
|
|
2170
|
-
}
|
|
2171
|
-
}
|
|
2172
|
-
}
|
|
2173
|
-
function j(z, O) {
|
|
2174
|
-
var $, M;
|
|
2175
|
-
return U(z, O, N), h("runSync", "run", M), $;
|
|
2176
|
-
function N(P, V) {
|
|
2177
|
-
M = !0, $ = V, t(P);
|
|
2178
|
-
}
|
|
2179
|
-
}
|
|
2180
|
-
function _(z, O) {
|
|
2181
|
-
var $ = o(O), M;
|
|
2182
|
-
return k(), M = b.Compiler, f("stringify", M), p(z), m(M, "compile") ? new M(z, $).compile() : M(z, $);
|
|
2183
|
-
}
|
|
2184
|
-
function q(z, O) {
|
|
2185
|
-
if (k(), x("process", b.Parser), f("process", b.Compiler), !O)
|
|
2186
|
-
return new Promise($);
|
|
2187
|
-
$(null, O);
|
|
2188
|
-
function $(M, N) {
|
|
2189
|
-
var P = o(z);
|
|
2190
|
-
s.run(b, { file: P }, V);
|
|
2191
|
-
function V(H) {
|
|
2192
|
-
H ? N(H) : M ? M(P) : O(null, P);
|
|
2193
|
-
}
|
|
2194
|
-
}
|
|
2195
|
-
}
|
|
2196
|
-
function J(z) {
|
|
2197
|
-
var O, $;
|
|
2198
|
-
return k(), x("processSync", b.Parser), f("processSync", b.Compiler), O = o(z), q(O, M), h("processSync", "process", $), O;
|
|
2199
|
-
function M(N) {
|
|
2200
|
-
$ = !0, t(N);
|
|
2201
|
-
}
|
|
2202
|
-
}
|
|
2203
|
-
}
|
|
2204
|
-
function m(F, A) {
|
|
2205
|
-
return typeof F == "function" && F.prototype && (g(F.prototype) || A in F.prototype);
|
|
2206
|
-
}
|
|
2207
|
-
function g(F) {
|
|
2208
|
-
var A;
|
|
2209
|
-
for (A in F)
|
|
2210
|
-
return !0;
|
|
2211
|
-
return !1;
|
|
2212
|
-
}
|
|
2213
|
-
function x(F, A) {
|
|
2214
|
-
if (typeof A != "function")
|
|
2215
|
-
throw new Error("Cannot `" + F + "` without `Parser`");
|
|
2216
|
-
}
|
|
2217
|
-
function f(F, A) {
|
|
2218
|
-
if (typeof A != "function")
|
|
2219
|
-
throw new Error("Cannot `" + F + "` without `Compiler`");
|
|
2220
|
-
}
|
|
2221
|
-
function B(F, A) {
|
|
2222
|
-
if (A)
|
|
2223
|
-
throw new Error("Cannot invoke `" + F + "` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.");
|
|
2224
|
-
}
|
|
2225
|
-
function p(F) {
|
|
2226
|
-
if (!F || typeof F.type != "string")
|
|
2227
|
-
throw new Error("Expected node, got `" + F + "`");
|
|
2228
|
-
}
|
|
2229
|
-
function h(F, A, y) {
|
|
2230
|
-
if (!y)
|
|
2231
|
-
throw new Error("`" + F + "` finished async. Use `" + A + "` instead");
|
|
2232
|
-
}
|
|
2233
|
-
}), On = {};
|
|
2234
|
-
Ct(On, { languages: () => Jo, options: () => Ko, parsers: () => Jt, printers: () => C2 });
|
|
2235
|
-
var Ue = (u, e) => (t, r, ...n) => t | 1 && r == null ? void 0 : (e.call(r) ?? r[u]).apply(r, n);
|
|
2236
|
-
function Nn(u) {
|
|
2237
|
-
return this[u < 0 ? this.length + u : u];
|
|
2238
|
-
}
|
|
2239
|
-
var Rn = Ue("at", function() {
|
|
2240
|
-
if (Array.isArray(this) || typeof this == "string")
|
|
2241
|
-
return Nn;
|
|
2242
|
-
}), gu = Rn, In = String.prototype.replaceAll ?? function(u, e) {
|
|
2243
|
-
return u.global ? this.replace(u, e) : this.split(u).join(e);
|
|
2244
|
-
}, Pn = Ue("replaceAll", function() {
|
|
2245
|
-
if (typeof this == "string")
|
|
2246
|
-
return In;
|
|
2247
|
-
}), su = Pn, jn = Uu(je(), 1);
|
|
2248
|
-
function ve(u) {
|
|
2249
|
-
if (typeof u != "string")
|
|
2250
|
-
throw new TypeError("Expected a string");
|
|
2251
|
-
return u.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
2252
|
-
}
|
|
2253
|
-
var zn = () => {
|
|
2254
|
-
}, $n = zn, Pu = "string", Lu = "array", xe = "cursor", Hu = "indent", Wu = "align", ie = "trim", Tu = "group", ju = "fill", Su = "if-break", oe = "indent-if-break", ae = "line-suffix", De = "line-suffix-boundary", wu = "line", se = "label", Gu = "break-parent", wt = /* @__PURE__ */ new Set([xe, Hu, Wu, ie, Tu, ju, Su, oe, ae, De, wu, se, Gu]);
|
|
2255
|
-
function Un(u) {
|
|
2256
|
-
if (typeof u == "string")
|
|
2257
|
-
return Pu;
|
|
2258
|
-
if (Array.isArray(u))
|
|
2259
|
-
return Lu;
|
|
2260
|
-
if (!u)
|
|
2261
|
-
return;
|
|
2262
|
-
let { type: e } = u;
|
|
2263
|
-
if (wt.has(e))
|
|
2264
|
-
return e;
|
|
2265
|
-
}
|
|
2266
|
-
var Ou = Un, Mn = (u) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(u);
|
|
2267
|
-
function _n(u) {
|
|
2268
|
-
let e = u === null ? "null" : typeof u;
|
|
2269
|
-
if (e !== "string" && e !== "object")
|
|
2270
|
-
return `Unexpected doc '${e}',
|
|
2271
|
-
Expected it to be 'string' or 'object'.`;
|
|
2272
|
-
if (Ou(u))
|
|
2273
|
-
throw new Error("doc is valid.");
|
|
2274
|
-
let t = Object.prototype.toString.call(u);
|
|
2275
|
-
if (t !== "[object Object]")
|
|
2276
|
-
return `Unexpected doc '${t}'.`;
|
|
2277
|
-
let r = Mn([...wt].map((n) => `'${n}'`));
|
|
2278
|
-
return `Unexpected doc.type '${u.type}'.
|
|
2279
|
-
Expected it to be ${r}.`;
|
|
2280
|
-
}
|
|
2281
|
-
var Vn = class extends Error {
|
|
2282
|
-
constructor(e) {
|
|
2283
|
-
super(_n(e));
|
|
2284
|
-
we(this, "name", "InvalidDocError");
|
|
2285
|
-
this.doc = e;
|
|
2286
|
-
}
|
|
2287
|
-
}, Fe = Vn, Xe = {};
|
|
2288
|
-
function Hn(u, e, t, r) {
|
|
2289
|
-
let n = [u];
|
|
2290
|
-
for (; n.length > 0; ) {
|
|
2291
|
-
let i = n.pop();
|
|
2292
|
-
if (i === Xe) {
|
|
2293
|
-
t(n.pop());
|
|
2294
|
-
continue;
|
|
2295
|
-
}
|
|
2296
|
-
t && n.push(i, Xe);
|
|
2297
|
-
let a = Ou(i);
|
|
2298
|
-
if (!a)
|
|
2299
|
-
throw new Fe(i);
|
|
2300
|
-
if ((e == null ? void 0 : e(i)) !== !1)
|
|
2301
|
-
switch (a) {
|
|
2302
|
-
case Lu:
|
|
2303
|
-
case ju: {
|
|
2304
|
-
let o = a === Lu ? i : i.parts;
|
|
2305
|
-
for (let D = o.length, l = D - 1; l >= 0; --l)
|
|
2306
|
-
n.push(o[l]);
|
|
2307
|
-
break;
|
|
2308
|
-
}
|
|
2309
|
-
case Su:
|
|
2310
|
-
n.push(i.flatContents, i.breakContents);
|
|
2311
|
-
break;
|
|
2312
|
-
case Tu:
|
|
2313
|
-
if (r && i.expandedStates)
|
|
2314
|
-
for (let o = i.expandedStates.length, D = o - 1; D >= 0; --D)
|
|
2315
|
-
n.push(i.expandedStates[D]);
|
|
2316
|
-
else
|
|
2317
|
-
n.push(i.contents);
|
|
2318
|
-
break;
|
|
2319
|
-
case Wu:
|
|
2320
|
-
case Hu:
|
|
2321
|
-
case oe:
|
|
2322
|
-
case se:
|
|
2323
|
-
case ae:
|
|
2324
|
-
n.push(i.contents);
|
|
2325
|
-
break;
|
|
2326
|
-
case Pu:
|
|
2327
|
-
case xe:
|
|
2328
|
-
case ie:
|
|
2329
|
-
case De:
|
|
2330
|
-
case wu:
|
|
2331
|
-
case Gu:
|
|
2332
|
-
break;
|
|
2333
|
-
default:
|
|
2334
|
-
throw new Fe(i);
|
|
2335
|
-
}
|
|
2336
|
-
}
|
|
2337
|
-
}
|
|
2338
|
-
var Wn = Hn;
|
|
2339
|
-
function Gn(u, e) {
|
|
2340
|
-
if (typeof u == "string")
|
|
2341
|
-
return e(u);
|
|
2342
|
-
let t = /* @__PURE__ */ new Map();
|
|
2343
|
-
return r(u);
|
|
2344
|
-
function r(i) {
|
|
2345
|
-
if (t.has(i))
|
|
2346
|
-
return t.get(i);
|
|
2347
|
-
let a = n(i);
|
|
2348
|
-
return t.set(i, a), a;
|
|
2349
|
-
}
|
|
2350
|
-
function n(i) {
|
|
2351
|
-
switch (Ou(i)) {
|
|
2352
|
-
case Lu:
|
|
2353
|
-
return e(i.map(r));
|
|
2354
|
-
case ju:
|
|
2355
|
-
return e({ ...i, parts: i.parts.map(r) });
|
|
2356
|
-
case Su:
|
|
2357
|
-
return e({ ...i, breakContents: r(i.breakContents), flatContents: r(i.flatContents) });
|
|
2358
|
-
case Tu: {
|
|
2359
|
-
let { expandedStates: a, contents: o } = i;
|
|
2360
|
-
return a ? (a = a.map(r), o = a[0]) : o = r(o), e({ ...i, contents: o, expandedStates: a });
|
|
2361
|
-
}
|
|
2362
|
-
case Wu:
|
|
2363
|
-
case Hu:
|
|
2364
|
-
case oe:
|
|
2365
|
-
case se:
|
|
2366
|
-
case ae:
|
|
2367
|
-
return e({ ...i, contents: r(i.contents) });
|
|
2368
|
-
case Pu:
|
|
2369
|
-
case xe:
|
|
2370
|
-
case ie:
|
|
2371
|
-
case De:
|
|
2372
|
-
case wu:
|
|
2373
|
-
case Gu:
|
|
2374
|
-
return e(i);
|
|
2375
|
-
default:
|
|
2376
|
-
throw new Fe(i);
|
|
2377
|
-
}
|
|
2378
|
-
}
|
|
2379
|
-
}
|
|
2380
|
-
function ut(u) {
|
|
2381
|
-
if (u.length > 0) {
|
|
2382
|
-
let e = gu(0, u, -1);
|
|
2383
|
-
!e.expandedStates && !e.break && (e.break = "propagated");
|
|
2384
|
-
}
|
|
2385
|
-
return null;
|
|
2386
|
-
}
|
|
2387
|
-
function Jn(u) {
|
|
2388
|
-
let e = /* @__PURE__ */ new Set(), t = [];
|
|
2389
|
-
function r(i) {
|
|
2390
|
-
if (i.type === Gu && ut(t), i.type === Tu) {
|
|
2391
|
-
if (t.push(i), e.has(i))
|
|
2392
|
-
return !1;
|
|
2393
|
-
e.add(i);
|
|
2394
|
-
}
|
|
2395
|
-
}
|
|
2396
|
-
function n(i) {
|
|
2397
|
-
i.type === Tu && t.pop().break && ut(t);
|
|
2398
|
-
}
|
|
2399
|
-
Wn(u, r, n, !0);
|
|
2400
|
-
}
|
|
2401
|
-
function zu(u, e = Re) {
|
|
2402
|
-
return Gn(u, (t) => typeof t == "string" ? kt(e, t.split(`
|
|
2403
|
-
`)) : t);
|
|
2404
|
-
}
|
|
2405
|
-
var Yn = $n;
|
|
2406
|
-
function Oe(u) {
|
|
2407
|
-
return { type: Hu, contents: u };
|
|
2408
|
-
}
|
|
2409
|
-
function Iu(u, e) {
|
|
2410
|
-
return { type: Wu, contents: e, n: u };
|
|
2411
|
-
}
|
|
2412
|
-
function Ne(u) {
|
|
2413
|
-
return Iu({ type: "root" }, u);
|
|
2414
|
-
}
|
|
2415
|
-
var de = { type: Gu };
|
|
2416
|
-
function Me(u) {
|
|
2417
|
-
return { type: ju, parts: u };
|
|
2418
|
-
}
|
|
2419
|
-
function pe(u, e = {}) {
|
|
2420
|
-
return Yn(e.expandedStates), { type: Tu, id: e.id, contents: u, break: !!e.shouldBreak, expandedStates: e.expandedStates };
|
|
2421
|
-
}
|
|
2422
|
-
function Kn(u, e = "", t = {}) {
|
|
2423
|
-
return { type: Su, breakContents: u, flatContents: e, groupId: t.groupId };
|
|
2424
|
-
}
|
|
2425
|
-
function kt(u, e) {
|
|
2426
|
-
let t = [];
|
|
2427
|
-
for (let r = 0; r < e.length; r++)
|
|
2428
|
-
r !== 0 && t.push(u), t.push(e[r]);
|
|
2429
|
-
return t;
|
|
2430
|
-
}
|
|
2431
|
-
var qt = { type: wu }, St = { type: wu, soft: !0 }, _e = { type: wu, hard: !0 }, Du = [_e, de], Qn = { type: wu, hard: !0, literal: !0 }, Re = [Qn, de], Zn = "cr", Xn = "crlf", ui = "\r", ei = `\r
|
|
2432
|
-
`, ti = `
|
|
2433
|
-
`, ri = ti;
|
|
2434
|
-
function ni(u) {
|
|
2435
|
-
return u === Zn ? ui : u === Xn ? ei : ri;
|
|
2436
|
-
}
|
|
2437
|
-
var ii = () => /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
|
2438
|
-
function oi(u) {
|
|
2439
|
-
return u === 12288 || u >= 65281 && u <= 65376 || u >= 65504 && u <= 65510;
|
|
2440
|
-
}
|
|
2441
|
-
function ai(u) {
|
|
2442
|
-
return u >= 4352 && u <= 4447 || u === 8986 || u === 8987 || u === 9001 || u === 9002 || u >= 9193 && u <= 9196 || u === 9200 || u === 9203 || u === 9725 || u === 9726 || u === 9748 || u === 9749 || u >= 9776 && u <= 9783 || u >= 9800 && u <= 9811 || u === 9855 || u >= 9866 && u <= 9871 || u === 9875 || u === 9889 || u === 9898 || u === 9899 || u === 9917 || u === 9918 || u === 9924 || u === 9925 || u === 9934 || u === 9940 || u === 9962 || u === 9970 || u === 9971 || u === 9973 || u === 9978 || u === 9981 || u === 9989 || u === 9994 || u === 9995 || u === 10024 || u === 10060 || u === 10062 || u >= 10067 && u <= 10069 || u === 10071 || u >= 10133 && u <= 10135 || u === 10160 || u === 10175 || u === 11035 || u === 11036 || u === 11088 || u === 11093 || u >= 11904 && u <= 11929 || u >= 11931 && u <= 12019 || u >= 12032 && u <= 12245 || u >= 12272 && u <= 12287 || u >= 12289 && u <= 12350 || u >= 12353 && u <= 12438 || u >= 12441 && u <= 12543 || u >= 12549 && u <= 12591 || u >= 12593 && u <= 12686 || u >= 12688 && u <= 12773 || u >= 12783 && u <= 12830 || u >= 12832 && u <= 12871 || u >= 12880 && u <= 42124 || u >= 42128 && u <= 42182 || u >= 43360 && u <= 43388 || u >= 44032 && u <= 55203 || u >= 63744 && u <= 64255 || u >= 65040 && u <= 65049 || u >= 65072 && u <= 65106 || u >= 65108 && u <= 65126 || u >= 65128 && u <= 65131 || u >= 94176 && u <= 94180 || u >= 94192 && u <= 94198 || u >= 94208 && u <= 101589 || u >= 101631 && u <= 101662 || u >= 101760 && u <= 101874 || u >= 110576 && u <= 110579 || u >= 110581 && u <= 110587 || u === 110589 || u === 110590 || u >= 110592 && u <= 110882 || u === 110898 || u >= 110928 && u <= 110930 || u === 110933 || u >= 110948 && u <= 110951 || u >= 110960 && u <= 111355 || u >= 119552 && u <= 119638 || u >= 119648 && u <= 119670 || u === 126980 || u === 127183 || u === 127374 || u >= 127377 && u <= 127386 || u >= 127488 && u <= 127490 || u >= 127504 && u <= 127547 || u >= 127552 && u <= 127560 || u === 127568 || u === 127569 || u >= 127584 && u <= 127589 || u >= 127744 && u <= 127776 || u >= 127789 && u <= 127797 || u >= 127799 && u <= 127868 || u >= 127870 && u <= 127891 || u >= 127904 && u <= 127946 || u >= 127951 && u <= 127955 || u >= 127968 && u <= 127984 || u === 127988 || u >= 127992 && u <= 128062 || u === 128064 || u >= 128066 && u <= 128252 || u >= 128255 && u <= 128317 || u >= 128331 && u <= 128334 || u >= 128336 && u <= 128359 || u === 128378 || u === 128405 || u === 128406 || u === 128420 || u >= 128507 && u <= 128591 || u >= 128640 && u <= 128709 || u === 128716 || u >= 128720 && u <= 128722 || u >= 128725 && u <= 128728 || u >= 128732 && u <= 128735 || u === 128747 || u === 128748 || u >= 128756 && u <= 128764 || u >= 128992 && u <= 129003 || u === 129008 || u >= 129292 && u <= 129338 || u >= 129340 && u <= 129349 || u >= 129351 && u <= 129535 || u >= 129648 && u <= 129660 || u >= 129664 && u <= 129674 || u >= 129678 && u <= 129734 || u === 129736 || u >= 129741 && u <= 129756 || u >= 129759 && u <= 129770 || u >= 129775 && u <= 129784 || u >= 131072 && u <= 196605 || u >= 196608 && u <= 262141;
|
|
2443
|
-
}
|
|
2444
|
-
var Di = "©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇", si = /[^\x20-\x7F]/u, li = new Set(Di);
|
|
2445
|
-
function ci(u) {
|
|
2446
|
-
if (!u)
|
|
2447
|
-
return 0;
|
|
2448
|
-
if (!si.test(u))
|
|
2449
|
-
return u.length;
|
|
2450
|
-
u = u.replace(ii(), (t) => li.has(t) ? " " : " ");
|
|
2451
|
-
let e = 0;
|
|
2452
|
-
for (let t of u) {
|
|
2453
|
-
let r = t.codePointAt(0);
|
|
2454
|
-
r <= 31 || r >= 127 && r <= 159 || r >= 768 && r <= 879 || r >= 65024 && r <= 65039 || (e += oi(r) || ai(r) ? 2 : 1);
|
|
2455
|
-
}
|
|
2456
|
-
return e;
|
|
2457
|
-
}
|
|
2458
|
-
var Ve = ci, fi = { type: 0 }, pi = { type: 1 }, Lt = { value: "", length: 0, queue: [], get root() {
|
|
2459
|
-
return Lt;
|
|
2460
|
-
} };
|
|
2461
|
-
function Tt(u, e, t) {
|
|
2462
|
-
let r = e.type === 1 ? u.queue.slice(0, -1) : [...u.queue, e], n = "", i = 0, a = 0, o = 0;
|
|
2463
|
-
for (let E of r)
|
|
2464
|
-
switch (E.type) {
|
|
2465
|
-
case 0:
|
|
2466
|
-
s(), t.useTabs ? D(1) : l(t.tabWidth);
|
|
2467
|
-
break;
|
|
2468
|
-
case 3: {
|
|
2469
|
-
let { string: m } = E;
|
|
2470
|
-
s(), n += m, i += m.length;
|
|
2471
|
-
break;
|
|
2472
|
-
}
|
|
2473
|
-
case 2: {
|
|
2474
|
-
let { width: m } = E;
|
|
2475
|
-
a += 1, o += m;
|
|
2476
|
-
break;
|
|
2477
|
-
}
|
|
2478
|
-
default:
|
|
2479
|
-
throw new Error(`Unexpected indent comment '${E.type}'.`);
|
|
2480
|
-
}
|
|
2481
|
-
return C(), { ...u, value: n, length: i, queue: r };
|
|
2482
|
-
function D(E) {
|
|
2483
|
-
n += " ".repeat(E), i += t.tabWidth * E;
|
|
2484
|
-
}
|
|
2485
|
-
function l(E) {
|
|
2486
|
-
n += " ".repeat(E), i += E;
|
|
2487
|
-
}
|
|
2488
|
-
function s() {
|
|
2489
|
-
t.useTabs ? c() : C();
|
|
2490
|
-
}
|
|
2491
|
-
function c() {
|
|
2492
|
-
a > 0 && D(a), d();
|
|
2493
|
-
}
|
|
2494
|
-
function C() {
|
|
2495
|
-
o > 0 && l(o), d();
|
|
2496
|
-
}
|
|
2497
|
-
function d() {
|
|
2498
|
-
a = 0, o = 0;
|
|
2499
|
-
}
|
|
2500
|
-
}
|
|
2501
|
-
function hi(u, e, t) {
|
|
2502
|
-
if (!e)
|
|
2503
|
-
return u;
|
|
2504
|
-
if (e.type === "root")
|
|
2505
|
-
return { ...u, root: u };
|
|
2506
|
-
if (e === Number.NEGATIVE_INFINITY)
|
|
2507
|
-
return u.root;
|
|
2508
|
-
let r;
|
|
2509
|
-
return typeof e == "number" ? e < 0 ? r = pi : r = { type: 2, width: e } : r = { type: 3, string: e }, Tt(u, r, t);
|
|
2510
|
-
}
|
|
2511
|
-
function Fi(u, e) {
|
|
2512
|
-
return Tt(u, fi, e);
|
|
2513
|
-
}
|
|
2514
|
-
function di(u) {
|
|
2515
|
-
let e = 0;
|
|
2516
|
-
for (let t = u.length - 1; t >= 0; t--) {
|
|
2517
|
-
let r = u[t];
|
|
2518
|
-
if (r === " " || r === " ")
|
|
2519
|
-
e++;
|
|
2520
|
-
else
|
|
2521
|
-
break;
|
|
2522
|
-
}
|
|
2523
|
-
return e;
|
|
2524
|
-
}
|
|
2525
|
-
function Ot(u) {
|
|
2526
|
-
let e = di(u);
|
|
2527
|
-
return { text: e === 0 ? u : u.slice(0, u.length - e), count: e };
|
|
2528
|
-
}
|
|
2529
|
-
var pu = Symbol("MODE_BREAK"), vu = Symbol("MODE_FLAT"), Ie = Symbol("DOC_FILL_PRINTED_LENGTH");
|
|
2530
|
-
function fe(u, e, t, r, n, i) {
|
|
2531
|
-
if (t === Number.POSITIVE_INFINITY)
|
|
2532
|
-
return !0;
|
|
2533
|
-
let a = e.length, o = !1, D = [u], l = "";
|
|
2534
|
-
for (; t >= 0; ) {
|
|
2535
|
-
if (D.length === 0) {
|
|
2536
|
-
if (a === 0)
|
|
2537
|
-
return !0;
|
|
2538
|
-
D.push(e[--a]);
|
|
2539
|
-
continue;
|
|
2540
|
-
}
|
|
2541
|
-
let { mode: s, doc: c } = D.pop(), C = Ou(c);
|
|
2542
|
-
switch (C) {
|
|
2543
|
-
case Pu:
|
|
2544
|
-
c && (o && (l += " ", t -= 1, o = !1), l += c, t -= Ve(c));
|
|
2545
|
-
break;
|
|
2546
|
-
case Lu:
|
|
2547
|
-
case ju: {
|
|
2548
|
-
let d = C === Lu ? c : c.parts, E = c[Ie] ?? 0;
|
|
2549
|
-
for (let m = d.length - 1; m >= E; m--)
|
|
2550
|
-
D.push({ mode: s, doc: d[m] });
|
|
2551
|
-
break;
|
|
2552
|
-
}
|
|
2553
|
-
case Hu:
|
|
2554
|
-
case Wu:
|
|
2555
|
-
case oe:
|
|
2556
|
-
case se:
|
|
2557
|
-
D.push({ mode: s, doc: c.contents });
|
|
2558
|
-
break;
|
|
2559
|
-
case ie: {
|
|
2560
|
-
let { text: d, count: E } = Ot(l);
|
|
2561
|
-
l = d, t += E;
|
|
2562
|
-
break;
|
|
2563
|
-
}
|
|
2564
|
-
case Tu: {
|
|
2565
|
-
if (i && c.break)
|
|
2566
|
-
return !1;
|
|
2567
|
-
let d = c.break ? pu : s, E = c.expandedStates && d === pu ? gu(0, c.expandedStates, -1) : c.contents;
|
|
2568
|
-
D.push({ mode: d, doc: E });
|
|
2569
|
-
break;
|
|
2570
|
-
}
|
|
2571
|
-
case Su: {
|
|
2572
|
-
let d = (c.groupId ? n[c.groupId] || vu : s) === pu ? c.breakContents : c.flatContents;
|
|
2573
|
-
d && D.push({ mode: s, doc: d });
|
|
2574
|
-
break;
|
|
2575
|
-
}
|
|
2576
|
-
case wu:
|
|
2577
|
-
if (s === pu || c.hard)
|
|
2578
|
-
return !0;
|
|
2579
|
-
c.soft || (o = !0);
|
|
2580
|
-
break;
|
|
2581
|
-
case ae:
|
|
2582
|
-
r = !0;
|
|
2583
|
-
break;
|
|
2584
|
-
case De:
|
|
2585
|
-
if (r)
|
|
2586
|
-
return !1;
|
|
2587
|
-
break;
|
|
2588
|
-
}
|
|
2589
|
-
}
|
|
2590
|
-
return !1;
|
|
2591
|
-
}
|
|
2592
|
-
function Ci(u, e) {
|
|
2593
|
-
let t = /* @__PURE__ */ Object.create(null), r = e.printWidth, n = ni(e.endOfLine), i = 0, a = [{ indent: Lt, mode: pu, doc: u }], o = "", D = !1, l = [], s = [], c = [], C = [], d = 0;
|
|
2594
|
-
for (Jn(u); a.length > 0; ) {
|
|
2595
|
-
let { indent: f, mode: B, doc: p } = a.pop();
|
|
2596
|
-
switch (Ou(p)) {
|
|
2597
|
-
case Pu: {
|
|
2598
|
-
let h = n !== `
|
|
2599
|
-
` ? su(0, p, `
|
|
2600
|
-
`, n) : p;
|
|
2601
|
-
h && (o += h, a.length > 0 && (i += Ve(h)));
|
|
2602
|
-
break;
|
|
2603
|
-
}
|
|
2604
|
-
case Lu:
|
|
2605
|
-
for (let h = p.length - 1; h >= 0; h--)
|
|
2606
|
-
a.push({ indent: f, mode: B, doc: p[h] });
|
|
2607
|
-
break;
|
|
2608
|
-
case xe:
|
|
2609
|
-
if (s.length >= 2)
|
|
2610
|
-
throw new Error("There are too many 'cursor' in doc.");
|
|
2611
|
-
s.push(d + o.length);
|
|
2612
|
-
break;
|
|
2613
|
-
case Hu:
|
|
2614
|
-
a.push({ indent: Fi(f, e), mode: B, doc: p.contents });
|
|
2615
|
-
break;
|
|
2616
|
-
case Wu:
|
|
2617
|
-
a.push({ indent: hi(f, p.n, e), mode: B, doc: p.contents });
|
|
2618
|
-
break;
|
|
2619
|
-
case ie:
|
|
2620
|
-
x();
|
|
2621
|
-
break;
|
|
2622
|
-
case Tu:
|
|
2623
|
-
switch (B) {
|
|
2624
|
-
case vu:
|
|
2625
|
-
if (!D) {
|
|
2626
|
-
a.push({ indent: f, mode: p.break ? pu : vu, doc: p.contents });
|
|
2627
|
-
break;
|
|
2628
|
-
}
|
|
2629
|
-
case pu: {
|
|
2630
|
-
D = !1;
|
|
2631
|
-
let h = { indent: f, mode: vu, doc: p.contents }, F = r - i, A = l.length > 0;
|
|
2632
|
-
if (!p.break && fe(h, a, F, A, t))
|
|
2633
|
-
a.push(h);
|
|
2634
|
-
else if (p.expandedStates) {
|
|
2635
|
-
let y = gu(0, p.expandedStates, -1);
|
|
2636
|
-
if (p.break) {
|
|
2637
|
-
a.push({ indent: f, mode: pu, doc: y });
|
|
2638
|
-
break;
|
|
2639
|
-
} else
|
|
2640
|
-
for (let w = 1; w < p.expandedStates.length + 1; w++)
|
|
2641
|
-
if (w >= p.expandedStates.length) {
|
|
2642
|
-
a.push({ indent: f, mode: pu, doc: y });
|
|
2643
|
-
break;
|
|
2644
|
-
} else {
|
|
2645
|
-
let T = p.expandedStates[w], b = { indent: f, mode: vu, doc: T };
|
|
2646
|
-
if (fe(b, a, F, A, t)) {
|
|
2647
|
-
a.push(b);
|
|
2648
|
-
break;
|
|
2649
|
-
}
|
|
2650
|
-
}
|
|
2651
|
-
} else
|
|
2652
|
-
a.push({ indent: f, mode: pu, doc: p.contents });
|
|
2653
|
-
break;
|
|
2654
|
-
}
|
|
2655
|
-
}
|
|
2656
|
-
p.id && (t[p.id] = gu(0, a, -1).mode);
|
|
2657
|
-
break;
|
|
2658
|
-
case ju: {
|
|
2659
|
-
let h = r - i, F = p[Ie] ?? 0, { parts: A } = p, y = A.length - F;
|
|
2660
|
-
if (y === 0)
|
|
2661
|
-
break;
|
|
2662
|
-
let w = A[F + 0], T = A[F + 1], b = { indent: f, mode: vu, doc: w }, k = { indent: f, mode: pu, doc: w }, L = fe(b, [], h, l.length > 0, t, !0);
|
|
2663
|
-
if (y === 1) {
|
|
2664
|
-
L ? a.push(b) : a.push(k);
|
|
2665
|
-
break;
|
|
2666
|
-
}
|
|
2667
|
-
let R = { indent: f, mode: vu, doc: T }, v = { indent: f, mode: pu, doc: T };
|
|
2668
|
-
if (y === 2) {
|
|
2669
|
-
L ? a.push(R, b) : a.push(v, k);
|
|
2670
|
-
break;
|
|
2671
|
-
}
|
|
2672
|
-
let S = A[F + 2], U = { indent: f, mode: B, doc: { ...p, [Ie]: F + 2 } }, j = fe({ indent: f, mode: vu, doc: [w, T, S] }, [], h, l.length > 0, t, !0);
|
|
2673
|
-
a.push(U), j ? a.push(R, b) : L ? a.push(v, b) : a.push(v, k);
|
|
2674
|
-
break;
|
|
2675
|
-
}
|
|
2676
|
-
case Su:
|
|
2677
|
-
case oe: {
|
|
2678
|
-
let h = p.groupId ? t[p.groupId] : B;
|
|
2679
|
-
if (h === pu) {
|
|
2680
|
-
let F = p.type === Su ? p.breakContents : p.negate ? p.contents : Oe(p.contents);
|
|
2681
|
-
F && a.push({ indent: f, mode: B, doc: F });
|
|
2682
|
-
}
|
|
2683
|
-
if (h === vu) {
|
|
2684
|
-
let F = p.type === Su ? p.flatContents : p.negate ? Oe(p.contents) : p.contents;
|
|
2685
|
-
F && a.push({ indent: f, mode: B, doc: F });
|
|
2686
|
-
}
|
|
2687
|
-
break;
|
|
2688
|
-
}
|
|
2689
|
-
case ae:
|
|
2690
|
-
l.push({ indent: f, mode: B, doc: p.contents });
|
|
2691
|
-
break;
|
|
2692
|
-
case De:
|
|
2693
|
-
l.length > 0 && a.push({ indent: f, mode: B, doc: _e });
|
|
2694
|
-
break;
|
|
2695
|
-
case wu:
|
|
2696
|
-
switch (B) {
|
|
2697
|
-
case vu:
|
|
2698
|
-
if (p.hard)
|
|
2699
|
-
D = !0;
|
|
2700
|
-
else {
|
|
2701
|
-
p.soft || (o += " ", i += 1);
|
|
2702
|
-
break;
|
|
2703
|
-
}
|
|
2704
|
-
case pu:
|
|
2705
|
-
if (l.length > 0) {
|
|
2706
|
-
a.push({ indent: f, mode: B, doc: p }, ...l.reverse()), l.length = 0;
|
|
2707
|
-
break;
|
|
2708
|
-
}
|
|
2709
|
-
p.literal ? (o += n, i = 0, f.root && (f.root.value && (o += f.root.value), i = f.root.length)) : (x(), o += n + f.value, i = f.length);
|
|
2710
|
-
break;
|
|
2711
|
-
}
|
|
2712
|
-
break;
|
|
2713
|
-
case se:
|
|
2714
|
-
a.push({ indent: f, mode: B, doc: p.contents });
|
|
2715
|
-
break;
|
|
2716
|
-
case Gu:
|
|
2717
|
-
break;
|
|
2718
|
-
default:
|
|
2719
|
-
throw new Fe(p);
|
|
2720
|
-
}
|
|
2721
|
-
a.length === 0 && l.length > 0 && (a.push(...l.reverse()), l.length = 0);
|
|
2722
|
-
}
|
|
2723
|
-
let E = c.join("") + o, m = [...C, ...s];
|
|
2724
|
-
if (m.length !== 2)
|
|
2725
|
-
return { formatted: E };
|
|
2726
|
-
let g = m[0];
|
|
2727
|
-
return { formatted: E, cursorNodeStart: g, cursorNodeText: E.slice(g, gu(0, m, -1)) };
|
|
2728
|
-
function x() {
|
|
2729
|
-
let { text: f, count: B } = Ot(o);
|
|
2730
|
-
f && (c.push(f), d += f.length), o = "", i -= B, s.length > 0 && (C.push(...s.map((p) => Math.min(p, d))), s.length = 0);
|
|
2731
|
-
}
|
|
2732
|
-
}
|
|
2733
|
-
function Ai(u, e) {
|
|
2734
|
-
let t = u.matchAll(new RegExp(`(?:${ve(e)})+`, "gu"));
|
|
2735
|
-
return t.reduce || (t = [...t]), t.reduce((r, [n]) => Math.max(r, n.length), 0) / e.length;
|
|
2736
|
-
}
|
|
2737
|
-
var Nt = Ai;
|
|
2738
|
-
function gi(u, e) {
|
|
2739
|
-
let t = u.match(new RegExp(`(${ve(e)})+`, "gu"));
|
|
2740
|
-
if (t === null)
|
|
2741
|
-
return 1;
|
|
2742
|
-
let r = /* @__PURE__ */ new Map(), n = 0;
|
|
2743
|
-
for (let i of t) {
|
|
2744
|
-
let a = i.length / e.length;
|
|
2745
|
-
r.set(a, !0), a > n && (n = a);
|
|
2746
|
-
}
|
|
2747
|
-
for (let i = 1; i < n; i++)
|
|
2748
|
-
if (!r.get(i))
|
|
2749
|
-
return i;
|
|
2750
|
-
return n + 1;
|
|
2751
|
-
}
|
|
2752
|
-
var Ei = gi, Rt = Object.freeze({ character: "'", codePoint: 39 }), It = Object.freeze({ character: '"', codePoint: 34 }), mi = Object.freeze({ preferred: Rt, alternate: It }), vi = Object.freeze({ preferred: It, alternate: Rt });
|
|
2753
|
-
function xi(u, e) {
|
|
2754
|
-
let { preferred: t, alternate: r } = e === !0 || e === "'" ? mi : vi, { length: n } = u, i = 0, a = 0;
|
|
2755
|
-
for (let o = 0; o < n; o++) {
|
|
2756
|
-
let D = u.charCodeAt(o);
|
|
2757
|
-
D === t.codePoint ? i++ : D === r.codePoint && a++;
|
|
2758
|
-
}
|
|
2759
|
-
return (i > a ? r : t).character;
|
|
2760
|
-
}
|
|
2761
|
-
var Bi = xi, bi = class extends Error {
|
|
2762
|
-
constructor(e, t, r = "type") {
|
|
2763
|
-
super(`Unexpected ${t} node ${r}: ${JSON.stringify(e[r])}.`);
|
|
2764
|
-
we(this, "name", "UnexpectedNodeError");
|
|
2765
|
-
this.node = e;
|
|
2766
|
-
}
|
|
2767
|
-
}, yi = bi, wi = Uu(je(), 1), ki = Array.prototype.toReversed ?? function() {
|
|
2768
|
-
return [...this].reverse();
|
|
2769
|
-
}, qi = Ue("toReversed", function() {
|
|
2770
|
-
if (Array.isArray(this))
|
|
2771
|
-
return ki;
|
|
2772
|
-
}), Si = qi;
|
|
2773
|
-
function Li() {
|
|
2774
|
-
var t, r, n, i, a, o;
|
|
2775
|
-
let u = globalThis, e = (r = (t = u.Deno) == null ? void 0 : t.build) == null ? void 0 : r.os;
|
|
2776
|
-
return typeof e == "string" ? e === "windows" : ((i = (n = u.navigator) == null ? void 0 : n.platform) == null ? void 0 : i.startsWith("Win")) ?? ((o = (a = u.process) == null ? void 0 : a.platform) == null ? void 0 : o.startsWith("win")) ?? !1;
|
|
2777
|
-
}
|
|
2778
|
-
var Ti = Li();
|
|
2779
|
-
function Pt(u) {
|
|
2780
|
-
if (u = u instanceof URL ? u : new URL(u), u.protocol !== "file:")
|
|
2781
|
-
throw new TypeError(`URL must be a file URL: received "${u.protocol}"`);
|
|
2782
|
-
return u;
|
|
2783
|
-
}
|
|
2784
|
-
function Oi(u) {
|
|
2785
|
-
return u = Pt(u), decodeURIComponent(u.pathname.replace(/%(?![0-9A-Fa-f]{2})/g, "%25"));
|
|
2786
|
-
}
|
|
2787
|
-
function Ni(u) {
|
|
2788
|
-
u = Pt(u);
|
|
2789
|
-
let e = decodeURIComponent(u.pathname.replace(/\//g, "\\").replace(/%(?![0-9A-Fa-f]{2})/g, "%25")).replace(/^\\*([A-Za-z]:)(\\|$)/, "$1\\");
|
|
2790
|
-
return u.hostname !== "" && (e = `\\\\${u.hostname}${e}`), e;
|
|
2791
|
-
}
|
|
2792
|
-
function Ri(u) {
|
|
2793
|
-
return Ti ? Ni(u) : Oi(u);
|
|
2794
|
-
}
|
|
2795
|
-
var Ii = (u) => String(u).split(/[/\\]/u).pop(), Pi = (u) => String(u).startsWith("file:");
|
|
2796
|
-
function et(u, e) {
|
|
2797
|
-
if (!e)
|
|
2798
|
-
return;
|
|
2799
|
-
let t = Ii(e).toLowerCase();
|
|
2800
|
-
return u.find(({ filenames: r }) => r == null ? void 0 : r.some((n) => n.toLowerCase() === t)) ?? u.find(({ extensions: r }) => r == null ? void 0 : r.some((n) => t.endsWith(n)));
|
|
2801
|
-
}
|
|
2802
|
-
function ji(u, e) {
|
|
2803
|
-
if (e)
|
|
2804
|
-
return u.find(({ name: t }) => t.toLowerCase() === e) ?? u.find(({ aliases: t }) => t == null ? void 0 : t.includes(e)) ?? u.find(({ extensions: t }) => t == null ? void 0 : t.includes(`.${e}`));
|
|
2805
|
-
}
|
|
2806
|
-
var Se = void 0;
|
|
2807
|
-
function tt(u, e) {
|
|
2808
|
-
if (e) {
|
|
2809
|
-
if (Pi(e))
|
|
2810
|
-
try {
|
|
2811
|
-
e = Ri(e);
|
|
2812
|
-
} catch {
|
|
2813
|
-
return;
|
|
2814
|
-
}
|
|
2815
|
-
if (typeof e == "string")
|
|
2816
|
-
return u.find(({ isSupported: t }) => t == null ? void 0 : t({ filepath: e }));
|
|
2817
|
-
}
|
|
2818
|
-
}
|
|
2819
|
-
function zi(u, e) {
|
|
2820
|
-
var r;
|
|
2821
|
-
let t = Si(0, u.plugins).flatMap((n) => n.languages ?? []);
|
|
2822
|
-
return (r = ji(t, e.language) ?? et(t, e.physicalFile) ?? et(t, e.file) ?? tt(t, e.physicalFile) ?? tt(t, e.file) ?? (Se == null ? void 0 : Se(t, e.physicalFile))) == null ? void 0 : r.parsers[0];
|
|
2823
|
-
}
|
|
2824
|
-
var $i = zi, jt = Symbol.for("PRETTIER_IS_FRONT_MATTER");
|
|
2825
|
-
function Ui(u) {
|
|
2826
|
-
return !!(u != null && u[jt]);
|
|
2827
|
-
}
|
|
2828
|
-
var Mi = Ui, Zu = 3;
|
|
2829
|
-
function _i(u) {
|
|
2830
|
-
let e = u.slice(0, Zu);
|
|
2831
|
-
if (e !== "---" && e !== "+++")
|
|
2832
|
-
return;
|
|
2833
|
-
let t = u.indexOf(`
|
|
2834
|
-
`, Zu);
|
|
2835
|
-
if (t === -1)
|
|
2836
|
-
return;
|
|
2837
|
-
let r = u.slice(Zu, t).trim(), n = u.indexOf(`
|
|
2838
|
-
${e}`, t), i = r;
|
|
2839
|
-
if (i || (i = e === "+++" ? "toml" : "yaml"), n === -1 && e === "---" && i === "yaml" && (n = u.indexOf(`
|
|
2840
|
-
...`, t)), n === -1)
|
|
2841
|
-
return;
|
|
2842
|
-
let a = n + 1 + Zu, o = u.charAt(a + 1);
|
|
2843
|
-
if (!/\s?/u.test(o))
|
|
2844
|
-
return;
|
|
2845
|
-
let D = u.slice(0, a), l;
|
|
2846
|
-
return { language: i, explicitLanguage: r || null, value: u.slice(t + 1, n), startDelimiter: e, endDelimiter: D.slice(-Zu), raw: D, start: { line: 1, column: 0, index: 0 }, end: { index: D.length, get line() {
|
|
2847
|
-
return l ?? (l = D.split(`
|
|
2848
|
-
`)), l.length;
|
|
2849
|
-
}, get column() {
|
|
2850
|
-
return l ?? (l = D.split(`
|
|
2851
|
-
`)), gu(0, l, -1).length;
|
|
2852
|
-
} }, [jt]: !0 };
|
|
2853
|
-
}
|
|
2854
|
-
function Vi(u) {
|
|
2855
|
-
let e = _i(u);
|
|
2856
|
-
return e ? { frontMatter: e, get content() {
|
|
2857
|
-
let { raw: t } = e;
|
|
2858
|
-
return su(0, t, /[^\n]/gu, " ") + u.slice(t.length);
|
|
2859
|
-
} } : { content: u };
|
|
2860
|
-
}
|
|
2861
|
-
var Be = Vi, Hi = "format", Wi = /<!--\s*@(?:noformat|noprettier)\s*-->|\{\s*\/\*\s*@(?:noformat|noprettier)\s*\*\/\s*\}|<!--.*\r?\n[\s\S]*(^|\n)[^\S\n]*@(?:noformat|noprettier)[^\S\n]*($|\n)[\s\S]*\n.*-->/mu, Gi = /<!--\s*@(?:format|prettier)\s*-->|\{\s*\/\*\s*@(?:format|prettier)\s*\*\/\s*\}|<!--.*\r?\n[\s\S]*(^|\n)[^\S\n]*@(?:format|prettier)[^\S\n]*($|\n)[\s\S]*\n.*-->/mu, zt = (u) => {
|
|
2862
|
-
var e;
|
|
2863
|
-
return ((e = Be(u).content.trimStart().match(Gi)) == null ? void 0 : e.index) === 0;
|
|
2864
|
-
}, Ji = (u) => {
|
|
2865
|
-
var e;
|
|
2866
|
-
return ((e = Be(u).content.trimStart().match(Wi)) == null ? void 0 : e.index) === 0;
|
|
2867
|
-
}, Yi = (u) => {
|
|
2868
|
-
let { frontMatter: e } = Be(u), t = `<!-- @${Hi} -->`;
|
|
2869
|
-
return e ? `${e.raw}
|
|
2870
|
-
|
|
2871
|
-
${t}
|
|
2872
|
-
|
|
2873
|
-
${u.slice(e.end.index)}` : `${t}
|
|
2874
|
-
|
|
2875
|
-
${u}`;
|
|
2876
|
-
}, Ki = /* @__PURE__ */ new Set(["position", "raw"]);
|
|
2877
|
-
function $t(u, e, t) {
|
|
2878
|
-
if ((u.type === "code" || u.type === "yaml" || u.type === "import" || u.type === "export" || u.type === "jsx") && delete e.value, u.type === "list" && delete e.isAligned, (u.type === "list" || u.type === "listItem") && delete e.spread, u.type === "text")
|
|
2879
|
-
return null;
|
|
2880
|
-
if (u.type === "inlineCode" && (e.value = su(0, u.value, `
|
|
2881
|
-
`, " ")), u.type === "wikiLink" && (e.value = su(0, u.value.trim(), /[\t\n]+/gu, " ")), (u.type === "definition" || u.type === "linkReference" || u.type === "imageReference") && (e.label = (0, wi.default)(u.label)), (u.type === "link" || u.type === "image") && u.url && u.url.includes("("))
|
|
2882
|
-
for (let r of "<>")
|
|
2883
|
-
e.url = su(0, u.url, r, encodeURIComponent(r));
|
|
2884
|
-
if ((u.type === "definition" || u.type === "link" || u.type === "image") && u.title && (e.title = su(0, u.title, /\\(?=["')])/gu, "")), (t == null ? void 0 : t.type) === "root" && t.children.length > 0 && (t.children[0] === u || Mi(t.children[0]) && t.children[1] === u) && u.type === "html" && zt(u.value))
|
|
2885
|
-
return null;
|
|
2886
|
-
}
|
|
2887
|
-
$t.ignoredProperties = Ki;
|
|
2888
|
-
var Qi = $t, Zi = /(?:[\u{2c7}\u{2c9}-\u{2cb}\u{2d9}\u{2ea}-\u{2eb}\u{305}\u{323}\u{1100}-\u{11ff}\u{2e80}-\u{2e99}\u{2e9b}-\u{2ef3}\u{2f00}-\u{2fd5}\u{2ff0}-\u{303f}\u{3041}-\u{3096}\u{3099}-\u{30ff}\u{3105}-\u{312f}\u{3131}-\u{318e}\u{3190}-\u{4dbf}\u{4e00}-\u{9fff}\u{a700}-\u{a707}\u{a960}-\u{a97c}\u{ac00}-\u{d7a3}\u{d7b0}-\u{d7c6}\u{d7cb}-\u{d7fb}\u{f900}-\u{fa6d}\u{fa70}-\u{fad9}\u{fe10}-\u{fe1f}\u{fe30}-\u{fe6f}\u{ff00}-\u{ffef}\u{16fe3}\u{16ff2}-\u{16ff6}\u{1aff0}-\u{1aff3}\u{1aff5}-\u{1affb}\u{1affd}-\u{1affe}\u{1b000}-\u{1b122}\u{1b132}\u{1b150}-\u{1b152}\u{1b155}\u{1b164}-\u{1b167}\u{1f200}\u{1f250}-\u{1f251}\u{20000}-\u{2a6df}\u{2a700}-\u{2b81d}\u{2b820}-\u{2cead}\u{2ceb0}-\u{2ebe0}\u{2ebf0}-\u{2ee5d}\u{2f800}-\u{2fa1d}\u{30000}-\u{3134a}\u{31350}-\u{33479}])(?:[\u{fe00}-\u{fe0f}\u{e0100}-\u{e01ef}])?/u, ue = /(?:[\u{21}-\u{2f}\u{3a}-\u{40}\u{5b}-\u{60}\u{7b}-\u{7e}]|\p{General_Category=Connector_Punctuation}|\p{General_Category=Dash_Punctuation}|\p{General_Category=Close_Punctuation}|\p{General_Category=Final_Punctuation}|\p{General_Category=Initial_Punctuation}|\p{General_Category=Other_Punctuation}|\p{General_Category=Open_Punctuation})/u, Ce = (u) => u.position.start.offset, Ae = (u) => u.position.end.offset, Ut = /* @__PURE__ */ new Set(["liquidNode", "inlineCode", "emphasis", "esComment", "strong", "delete", "wikiLink", "link", "linkReference", "image", "imageReference", "footnote", "footnoteReference", "sentence", "whitespace", "word", "break", "inlineMath"]), Mt = /* @__PURE__ */ new Set([...Ut, "tableCell", "paragraph", "heading"]), re = "non-cjk", bu = "cj-letter", $u = "k-letter", ge = "cjk-punctuation", Xi = /\p{Script_Extensions=Hangul}/u;
|
|
2889
|
-
function _t(u) {
|
|
2890
|
-
let e = [], t = u.split(/([\t\n ]+)/u);
|
|
2891
|
-
for (let [n, i] of t.entries()) {
|
|
2892
|
-
if (n % 2 === 1) {
|
|
2893
|
-
e.push({ type: "whitespace", value: /\n/u.test(i) ? `
|
|
2894
|
-
` : " " });
|
|
2895
|
-
continue;
|
|
2896
|
-
}
|
|
2897
|
-
if ((n === 0 || n === t.length - 1) && i === "")
|
|
2898
|
-
continue;
|
|
2899
|
-
let a = i.split(new RegExp(`(${Zi.source})`, "u"));
|
|
2900
|
-
for (let [o, D] of a.entries())
|
|
2901
|
-
if (!((o === 0 || o === a.length - 1) && D === "")) {
|
|
2902
|
-
if (o % 2 === 0) {
|
|
2903
|
-
D !== "" && r({ type: "word", value: D, kind: re, isCJ: !1, hasLeadingPunctuation: ue.test(D[0]), hasTrailingPunctuation: ue.test(gu(0, D, -1)) });
|
|
2904
|
-
continue;
|
|
2905
|
-
}
|
|
2906
|
-
if (ue.test(D)) {
|
|
2907
|
-
r({ type: "word", value: D, kind: ge, isCJ: !0, hasLeadingPunctuation: !0, hasTrailingPunctuation: !0 });
|
|
2908
|
-
continue;
|
|
2909
|
-
}
|
|
2910
|
-
if (Xi.test(D)) {
|
|
2911
|
-
r({ type: "word", value: D, kind: $u, isCJ: !1, hasLeadingPunctuation: !1, hasTrailingPunctuation: !1 });
|
|
2912
|
-
continue;
|
|
2913
|
-
}
|
|
2914
|
-
r({ type: "word", value: D, kind: bu, isCJ: !0, hasLeadingPunctuation: !1, hasTrailingPunctuation: !1 });
|
|
2915
|
-
}
|
|
2916
|
-
}
|
|
2917
|
-
return e;
|
|
2918
|
-
function r(n) {
|
|
2919
|
-
let i = gu(0, e, -1);
|
|
2920
|
-
(i == null ? void 0 : i.type) === "word" && !a(re, ge) && ![i.value, n.value].some((o) => /\u3000/u.test(o)) && e.push({ type: "whitespace", value: "" }), e.push(n);
|
|
2921
|
-
function a(o, D) {
|
|
2922
|
-
return i.kind === o && n.kind === D || i.kind === D && n.kind === o;
|
|
2923
|
-
}
|
|
2924
|
-
}
|
|
2925
|
-
}
|
|
2926
|
-
function ee(u, e) {
|
|
2927
|
-
let t = e.originalText.slice(u.position.start.offset, u.position.end.offset), { numberText: r, leadingSpaces: n } = t.match(/^\s*(?<numberText>\d+)(\.|\))(?<leadingSpaces>\s*)/u).groups;
|
|
2928
|
-
return { number: Number(r), leadingSpaces: n };
|
|
2929
|
-
}
|
|
2930
|
-
function uo(u, e) {
|
|
2931
|
-
return !u.ordered || u.children.length < 2 || ee(u.children[1], e).number !== 1 ? !1 : ee(u.children[0], e).number !== 0 ? !0 : u.children.length > 2 && ee(u.children[2], e).number === 1;
|
|
2932
|
-
}
|
|
2933
|
-
function Vt(u, e) {
|
|
2934
|
-
let { value: t } = u;
|
|
2935
|
-
return u.position.end.offset === e.length && t.endsWith(`
|
|
2936
|
-
`) && e.endsWith(`
|
|
2937
|
-
`) ? t.slice(0, -1) : t;
|
|
2938
|
-
}
|
|
2939
|
-
function Ju(u, e) {
|
|
2940
|
-
return function t(r, n, i) {
|
|
2941
|
-
let a = { ...e(r, n, i) };
|
|
2942
|
-
return a.children && (a.children = a.children.map((o, D) => t(o, D, [a, ...i]))), a;
|
|
2943
|
-
}(u, null, []);
|
|
2944
|
-
}
|
|
2945
|
-
function Ht(u) {
|
|
2946
|
-
if ((u == null ? void 0 : u.type) !== "link" || u.children.length !== 1)
|
|
2947
|
-
return !1;
|
|
2948
|
-
let [e] = u.children;
|
|
2949
|
-
return Ce(u) === Ce(e) && Ae(u) === Ae(e);
|
|
2950
|
-
}
|
|
2951
|
-
function He(u) {
|
|
2952
|
-
let e;
|
|
2953
|
-
if (u.type === "html")
|
|
2954
|
-
e = u.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/u);
|
|
2955
|
-
else {
|
|
2956
|
-
let t;
|
|
2957
|
-
u.type === "esComment" ? t = u : u.type === "paragraph" && u.children.length === 1 && u.children[0].type === "esComment" && (t = u.children[0]), t && (e = t.value.match(/^prettier-ignore(?:-(start|end))?$/u));
|
|
2958
|
-
}
|
|
2959
|
-
return e ? e[1] || "next" : !1;
|
|
2960
|
-
}
|
|
2961
|
-
function Wt(u, e) {
|
|
2962
|
-
return t(u, e, (r) => r.ordered === u.ordered);
|
|
2963
|
-
function t(r, n, i) {
|
|
2964
|
-
let a = -1;
|
|
2965
|
-
for (let o of n.children)
|
|
2966
|
-
if (o.type === r.type && i(o) ? a++ : a = -1, o === r)
|
|
2967
|
-
return a;
|
|
2968
|
-
}
|
|
2969
|
-
}
|
|
2970
|
-
function eo(u, e) {
|
|
2971
|
-
let { node: t } = u;
|
|
2972
|
-
if (t.type === "code" && t.lang !== null) {
|
|
2973
|
-
let r = $i(e, { language: t.lang });
|
|
2974
|
-
if (r)
|
|
2975
|
-
return async (n) => {
|
|
2976
|
-
let i = e.__inJsTemplate ? "~" : "`", a = i.repeat(Math.max(3, Nt(t.value, i) + 1)), o = { parser: r };
|
|
2977
|
-
t.lang === "ts" || t.lang === "typescript" ? o.filepath = "dummy.ts" : t.lang === "tsx" && (o.filepath = "dummy.tsx");
|
|
2978
|
-
let D = await n(Vt(t, e.originalText), o);
|
|
2979
|
-
return Ne([a, t.lang, t.meta ? " " + t.meta : "", Du, zu(D), Du, a]);
|
|
2980
|
-
};
|
|
2981
|
-
}
|
|
2982
|
-
switch (t.type) {
|
|
2983
|
-
case "import":
|
|
2984
|
-
case "export":
|
|
2985
|
-
return (r) => r(t.value, { __onHtmlBindingRoot: (n) => to(n, t.type), parser: "babel" });
|
|
2986
|
-
case "jsx":
|
|
2987
|
-
return (r) => r(`<$>${t.value}</$>`, { parser: "__js_expression", rootMarker: "mdx" });
|
|
2988
|
-
}
|
|
2989
|
-
return null;
|
|
2990
|
-
}
|
|
2991
|
-
function to(u, e) {
|
|
2992
|
-
let { program: { body: t } } = u;
|
|
2993
|
-
if (!t.every((r) => r.type === "ImportDeclaration" || r.type === "ExportDefaultDeclaration" || r.type === "ExportNamedDeclaration"))
|
|
2994
|
-
throw new Error(`Unexpected '${e}' in MDX.`);
|
|
2995
|
-
}
|
|
2996
|
-
var ro = eo, Xu = null;
|
|
2997
|
-
function te(u) {
|
|
2998
|
-
if (Xu !== null && typeof Xu.property) {
|
|
2999
|
-
let e = Xu;
|
|
3000
|
-
return Xu = te.prototype = null, e;
|
|
3001
|
-
}
|
|
3002
|
-
return Xu = te.prototype = u ?? /* @__PURE__ */ Object.create(null), new te();
|
|
3003
|
-
}
|
|
3004
|
-
var no = 10;
|
|
3005
|
-
for (let u = 0; u <= no; u++)
|
|
3006
|
-
te();
|
|
3007
|
-
function io(u) {
|
|
3008
|
-
return te(u);
|
|
3009
|
-
}
|
|
3010
|
-
function oo(u, e = "type") {
|
|
3011
|
-
io(u);
|
|
3012
|
-
function t(r) {
|
|
3013
|
-
let n = r[e], i = u[n];
|
|
3014
|
-
if (!Array.isArray(i))
|
|
3015
|
-
throw Object.assign(new Error(`Missing visitor keys for '${n}'.`), { node: r });
|
|
3016
|
-
return i;
|
|
3017
|
-
}
|
|
3018
|
-
return t;
|
|
3019
|
-
}
|
|
3020
|
-
var ao = oo, Q = [["children"], []], Do = { root: Q[0], paragraph: Q[0], sentence: Q[0], word: Q[1], whitespace: Q[1], emphasis: Q[0], strong: Q[0], delete: Q[0], inlineCode: Q[1], wikiLink: Q[1], link: Q[0], image: Q[1], blockquote: Q[0], heading: Q[0], code: Q[1], html: Q[1], list: Q[0], thematicBreak: Q[1], linkReference: Q[0], imageReference: Q[1], definition: Q[1], footnote: Q[0], footnoteReference: Q[1], footnoteDefinition: Q[0], table: Q[0], tableCell: Q[0], break: Q[1], liquidNode: Q[1], import: Q[1], export: Q[1], esComment: Q[1], jsx: Q[1], math: Q[1], inlineMath: Q[1], tableRow: Q[0], listItem: Q[0], text: Q[1] }, so = ao(Do), lo = so;
|
|
3021
|
-
function fu(u, e, t, r = {}) {
|
|
3022
|
-
let { processor: n = t } = r, i = [];
|
|
3023
|
-
return u.each(() => {
|
|
3024
|
-
let a = n(u);
|
|
3025
|
-
a !== !1 && (i.length > 0 && co(u) && (i.push(Du), (po(u, e) || rt(u)) && i.push(Du), rt(u) && i.push(Du)), i.push(a));
|
|
3026
|
-
}, "children"), i;
|
|
3027
|
-
}
|
|
3028
|
-
function co({ node: u, parent: e }) {
|
|
3029
|
-
let t = Ut.has(u.type), r = u.type === "html" && Mt.has(e.type);
|
|
3030
|
-
return !t && !r;
|
|
3031
|
-
}
|
|
3032
|
-
var fo = /* @__PURE__ */ new Set(["listItem", "definition"]);
|
|
3033
|
-
function po({ node: u, previous: e, parent: t }, r) {
|
|
3034
|
-
if (nt(e, r) || u.type === "list" && t.type === "listItem" && e.type === "code")
|
|
3035
|
-
return !0;
|
|
3036
|
-
let n = e.type === u.type && fo.has(u.type), i = t.type === "listItem" && (u.type === "list" || !nt(t, r)), a = He(e) === "next", o = u.type === "html" && e.type === "html" && e.position.end.line + 1 === u.position.start.line, D = u.type === "html" && t.type === "listItem" && e.type === "paragraph" && e.position.end.line + 1 === u.position.start.line;
|
|
3037
|
-
return !(n || i || a || o || D);
|
|
3038
|
-
}
|
|
3039
|
-
function rt({ node: u, previous: e }) {
|
|
3040
|
-
let t = e.type === "list", r = u.type === "code" && u.isIndented;
|
|
3041
|
-
return t && r;
|
|
3042
|
-
}
|
|
3043
|
-
function nt(u, e) {
|
|
3044
|
-
return u.type === "listItem" && (u.spread || e.originalText.charAt(u.position.end.offset - 1) === `
|
|
3045
|
-
`);
|
|
3046
|
-
}
|
|
3047
|
-
function ho(u, e, t) {
|
|
3048
|
-
let { node: r } = u, n = Wt(r, u.parent), i = uo(r, e);
|
|
3049
|
-
return fu(u, e, t, { processor() {
|
|
3050
|
-
let a = D(), { node: o } = u;
|
|
3051
|
-
if (o.children.length === 2 && o.children[1].type === "html" && o.children[0].position.start.column !== o.children[1].position.start.column)
|
|
3052
|
-
return [a, it(u, e, t, a)];
|
|
3053
|
-
return [a, Iu(" ".repeat(a.length), it(u, e, t, a))];
|
|
3054
|
-
function D() {
|
|
3055
|
-
let l = r.ordered ? (u.isFirst ? r.start : i ? 1 : r.start + u.index) + (n % 2 === 0 ? ". " : ") ") : n % 2 === 0 ? "- " : "* ";
|
|
3056
|
-
return (r.isAligned || r.hasIndentedCodeblock) && r.ordered ? Fo(l, e) : l;
|
|
3057
|
-
}
|
|
3058
|
-
} });
|
|
3059
|
-
}
|
|
3060
|
-
function it(u, e, t, r) {
|
|
3061
|
-
let { node: n } = u, i = n.checked === null ? "" : n.checked ? "[x] " : "[ ] ";
|
|
3062
|
-
return [i, fu(u, e, t, { processor({ node: a, isFirst: o }) {
|
|
3063
|
-
if (o && a.type !== "list")
|
|
3064
|
-
return Iu(" ".repeat(i.length), t());
|
|
3065
|
-
let D = " ".repeat(Co(e.tabWidth - r.length, 0, 3));
|
|
3066
|
-
return [D, Iu(D, t())];
|
|
3067
|
-
} })];
|
|
3068
|
-
}
|
|
3069
|
-
function Fo(u, e) {
|
|
3070
|
-
let t = r();
|
|
3071
|
-
return u + " ".repeat(t >= 4 ? 0 : t);
|
|
3072
|
-
function r() {
|
|
3073
|
-
let n = u.length % e.tabWidth;
|
|
3074
|
-
return n === 0 ? 0 : e.tabWidth - n;
|
|
3075
|
-
}
|
|
3076
|
-
}
|
|
3077
|
-
function Co(u, e, t) {
|
|
3078
|
-
return Math.max(e, Math.min(u, t));
|
|
3079
|
-
}
|
|
3080
|
-
function Ao(u, e, t) {
|
|
3081
|
-
let { node: r } = u, n = [], i = u.map(() => u.map(({ index: c }) => {
|
|
3082
|
-
let C = Ci(t(), e).formatted, d = Ve(C);
|
|
3083
|
-
return n[c] = Math.max(n[c] ?? 3, d), { text: C, width: d };
|
|
3084
|
-
}, "children"), "children"), a = D(!1);
|
|
3085
|
-
if (e.proseWrap !== "never")
|
|
3086
|
-
return [de, a];
|
|
3087
|
-
let o = D(!0);
|
|
3088
|
-
return [de, pe(Kn(o, a))];
|
|
3089
|
-
function D(c) {
|
|
3090
|
-
return kt(_e, [s(i[0], c), l(c), ...i.slice(1).map((C) => s(C, c))].map((C) => `| ${C.join(" | ")} |`));
|
|
3091
|
-
}
|
|
3092
|
-
function l(c) {
|
|
3093
|
-
return n.map((C, d) => {
|
|
3094
|
-
let E = r.align[d], m = E === "center" || E === "left" ? ":" : "-", g = E === "center" || E === "right" ? ":" : "-", x = c ? "-" : "-".repeat(C - 2);
|
|
3095
|
-
return `${m}${x}${g}`;
|
|
3096
|
-
});
|
|
3097
|
-
}
|
|
3098
|
-
function s(c, C) {
|
|
3099
|
-
return c.map(({ text: d, width: E }, m) => {
|
|
3100
|
-
if (C)
|
|
3101
|
-
return d;
|
|
3102
|
-
let g = n[m] - E, x = r.align[m], f = 0;
|
|
3103
|
-
x === "right" ? f = g : x === "center" && (f = Math.floor(g / 2));
|
|
3104
|
-
let B = g - f;
|
|
3105
|
-
return `${" ".repeat(f)}${d}${" ".repeat(B)}`;
|
|
3106
|
-
});
|
|
3107
|
-
}
|
|
3108
|
-
}
|
|
3109
|
-
function go(u) {
|
|
3110
|
-
let { node: e } = u, t = su(0, su(0, e.value, "*", "\\*"), new RegExp([`(^|${ue.source})(_+)`, `(_+)(${ue.source}|$)`].join("|"), "gu"), (i, a, o, D, l) => su(0, o ? `${a}${o}` : `${D}${l}`, "_", "\\_")), r = (i, a, o) => i.type === "sentence" && o === 0, n = (i, a, o) => Ht(i.children[o - 1]);
|
|
3111
|
-
return t !== e.value && (u.match(void 0, r, n) || u.match(void 0, r, (i, a, o) => i.type === "emphasis" && o === 0, n)) && (t = t.replace(/^(\\?[*_])+/u, (i) => su(0, i, "\\", ""))), t;
|
|
3112
|
-
}
|
|
3113
|
-
function Eo(u, e, t) {
|
|
3114
|
-
let r = u.map(t, "children");
|
|
3115
|
-
return mo(r);
|
|
3116
|
-
}
|
|
3117
|
-
function mo(u) {
|
|
3118
|
-
let e = [""];
|
|
3119
|
-
return function t(r) {
|
|
3120
|
-
for (let n of r) {
|
|
3121
|
-
let i = Ou(n);
|
|
3122
|
-
if (i === Lu) {
|
|
3123
|
-
t(n);
|
|
3124
|
-
continue;
|
|
3125
|
-
}
|
|
3126
|
-
let a = n, o = [];
|
|
3127
|
-
i === ju && ([a, ...o] = n.parts), e.push([e.pop(), a], ...o);
|
|
3128
|
-
}
|
|
3129
|
-
}(u), Me(e);
|
|
3130
|
-
}
|
|
3131
|
-
var Au, Ee, Gt, dt, vo = (dt = class {
|
|
3132
|
-
constructor(u) {
|
|
3133
|
-
qe(this, Ee);
|
|
3134
|
-
qe(this, Au, void 0);
|
|
3135
|
-
Qe(this, Au, new Set(u));
|
|
3136
|
-
}
|
|
3137
|
-
getLeadingWhitespaceCount(u) {
|
|
3138
|
-
let e = Bu(this, Au), t = 0;
|
|
3139
|
-
for (let r = 0; r < u.length && e.has(u.charAt(r)); r++)
|
|
3140
|
-
t++;
|
|
3141
|
-
return t;
|
|
3142
|
-
}
|
|
3143
|
-
getTrailingWhitespaceCount(u) {
|
|
3144
|
-
let e = Bu(this, Au), t = 0;
|
|
3145
|
-
for (let r = u.length - 1; r >= 0 && e.has(u.charAt(r)); r--)
|
|
3146
|
-
t++;
|
|
3147
|
-
return t;
|
|
3148
|
-
}
|
|
3149
|
-
getLeadingWhitespace(u) {
|
|
3150
|
-
let e = this.getLeadingWhitespaceCount(u);
|
|
3151
|
-
return u.slice(0, e);
|
|
3152
|
-
}
|
|
3153
|
-
getTrailingWhitespace(u) {
|
|
3154
|
-
let e = this.getTrailingWhitespaceCount(u);
|
|
3155
|
-
return u.slice(u.length - e);
|
|
3156
|
-
}
|
|
3157
|
-
hasLeadingWhitespace(u) {
|
|
3158
|
-
return Bu(this, Au).has(u.charAt(0));
|
|
3159
|
-
}
|
|
3160
|
-
hasTrailingWhitespace(u) {
|
|
3161
|
-
return Bu(this, Au).has(gu(0, u, -1));
|
|
3162
|
-
}
|
|
3163
|
-
trimStart(u) {
|
|
3164
|
-
let e = this.getLeadingWhitespaceCount(u);
|
|
3165
|
-
return u.slice(e);
|
|
3166
|
-
}
|
|
3167
|
-
trimEnd(u) {
|
|
3168
|
-
let e = this.getTrailingWhitespaceCount(u);
|
|
3169
|
-
return u.slice(0, u.length - e);
|
|
3170
|
-
}
|
|
3171
|
-
trim(u) {
|
|
3172
|
-
return this.trimEnd(this.trimStart(u));
|
|
3173
|
-
}
|
|
3174
|
-
split(u, e = !1) {
|
|
3175
|
-
let t = `[${ve([...Bu(this, Au)].join(""))}]+`, r = new RegExp(e ? `(${t})` : t, "u");
|
|
3176
|
-
return u.split(r);
|
|
3177
|
-
}
|
|
3178
|
-
hasWhitespaceCharacter(u) {
|
|
3179
|
-
let e = Bu(this, Au);
|
|
3180
|
-
return Array.prototype.some.call(u, (t) => e.has(t));
|
|
3181
|
-
}
|
|
3182
|
-
hasNonWhitespaceCharacter(u) {
|
|
3183
|
-
let e = Bu(this, Au);
|
|
3184
|
-
return Array.prototype.some.call(u, (t) => !e.has(t));
|
|
3185
|
-
}
|
|
3186
|
-
isWhitespaceOnly(u) {
|
|
3187
|
-
let e = Bu(this, Au);
|
|
3188
|
-
return Array.prototype.every.call(u, (t) => e.has(t));
|
|
3189
|
-
}
|
|
3190
|
-
dedentString(u) {
|
|
3191
|
-
let e = Ze(this, Ee, Gt).call(this, u);
|
|
3192
|
-
return e === 0 ? u : u.split(`
|
|
3193
|
-
`).map((t) => t.slice(e)).join(`
|
|
3194
|
-
`);
|
|
3195
|
-
}
|
|
3196
|
-
}, Au = new WeakMap(), Ee = new WeakSet(), Gt = function(u) {
|
|
3197
|
-
let e = Number.POSITIVE_INFINITY;
|
|
3198
|
-
for (let t of u.split(`
|
|
3199
|
-
`)) {
|
|
3200
|
-
if (t.length === 0)
|
|
3201
|
-
continue;
|
|
3202
|
-
let r = this.getLeadingWhitespaceCount(t);
|
|
3203
|
-
if (r === 0)
|
|
3204
|
-
return 0;
|
|
3205
|
-
t.length !== r && r < e && (e = r);
|
|
3206
|
-
}
|
|
3207
|
-
return e === Number.POSITIVE_INFINITY ? 0 : e;
|
|
3208
|
-
}, dt), xo = vo, Bo = [" ", `
|
|
3209
|
-
`, "\f", "\r", " "], bo = new xo(Bo), ot = bo, yo = /^\\?.$/su, wo = /^\n *>[ >]*$/u;
|
|
3210
|
-
function ko(u, e) {
|
|
3211
|
-
return u = qo(u, e), u = Lo(u), u = Oo(u, e), u = No(u, e), u = To(u), u;
|
|
3212
|
-
}
|
|
3213
|
-
function qo(u, e) {
|
|
3214
|
-
return Ju(u, (t) => {
|
|
3215
|
-
if (t.type !== "text")
|
|
3216
|
-
return t;
|
|
3217
|
-
let { value: r } = t;
|
|
3218
|
-
if (r === "*" || r === "_" || !yo.test(r) || t.position.end.offset - t.position.start.offset === r.length)
|
|
3219
|
-
return t;
|
|
3220
|
-
let n = e.originalText.slice(t.position.start.offset, t.position.end.offset);
|
|
3221
|
-
return wo.test(n) ? t : { ...t, value: n };
|
|
3222
|
-
});
|
|
3223
|
-
}
|
|
3224
|
-
function So(u, e, t) {
|
|
3225
|
-
return Ju(u, (r) => {
|
|
3226
|
-
if (!r.children)
|
|
3227
|
-
return r;
|
|
3228
|
-
let n = [], i, a;
|
|
3229
|
-
for (let o of r.children)
|
|
3230
|
-
i && e(i, o) ? (o = t(i, o), n.splice(-1, 1, o), a || (a = !0)) : n.push(o), i = o;
|
|
3231
|
-
return a ? { ...r, children: n } : r;
|
|
3232
|
-
});
|
|
3233
|
-
}
|
|
3234
|
-
function Lo(u) {
|
|
3235
|
-
return So(u, (e, t) => e.type === "text" && t.type === "text", (e, t) => ({ type: "text", value: e.value + t.value, position: { start: e.position.start, end: t.position.end } }));
|
|
3236
|
-
}
|
|
3237
|
-
function To(u) {
|
|
3238
|
-
return Ju(u, (e, t, [r]) => {
|
|
3239
|
-
if (e.type !== "text")
|
|
3240
|
-
return e;
|
|
3241
|
-
let { value: n } = e;
|
|
3242
|
-
return r.type === "paragraph" && (t === 0 && (n = ot.trimStart(n)), t === r.children.length - 1 && (n = ot.trimEnd(n))), { type: "sentence", position: e.position, children: _t(n) };
|
|
3243
|
-
});
|
|
3244
|
-
}
|
|
3245
|
-
function Oo(u, e) {
|
|
3246
|
-
return Ju(u, (t, r, n) => {
|
|
3247
|
-
if (t.type === "code") {
|
|
3248
|
-
let i = /^\n?(?: {4,}|\t)/u.test(e.originalText.slice(t.position.start.offset, t.position.end.offset));
|
|
3249
|
-
if (t.isIndented = i, i)
|
|
3250
|
-
for (let a = 0; a < n.length; a++) {
|
|
3251
|
-
let o = n[a];
|
|
3252
|
-
if (o.hasIndentedCodeblock)
|
|
3253
|
-
break;
|
|
3254
|
-
o.type === "list" && (o.hasIndentedCodeblock = !0);
|
|
3255
|
-
}
|
|
3256
|
-
}
|
|
3257
|
-
return t;
|
|
3258
|
-
});
|
|
3259
|
-
}
|
|
3260
|
-
function No(u, e) {
|
|
3261
|
-
return Ju(u, (n, i, a) => {
|
|
3262
|
-
if (n.type === "list" && n.children.length > 0) {
|
|
3263
|
-
for (let o = 0; o < a.length; o++) {
|
|
3264
|
-
let D = a[o];
|
|
3265
|
-
if (D.type === "list" && !D.isAligned)
|
|
3266
|
-
return n.isAligned = !1, n;
|
|
3267
|
-
}
|
|
3268
|
-
n.isAligned = r(n);
|
|
3269
|
-
}
|
|
3270
|
-
return n;
|
|
3271
|
-
});
|
|
3272
|
-
function t(n) {
|
|
3273
|
-
return n.children.length === 0 ? -1 : n.children[0].position.start.column - 1;
|
|
3274
|
-
}
|
|
3275
|
-
function r(n) {
|
|
3276
|
-
if (!n.ordered)
|
|
3277
|
-
return !0;
|
|
3278
|
-
let [i, a] = n.children;
|
|
3279
|
-
if (ee(i, e).leadingSpaces.length > 1)
|
|
3280
|
-
return !0;
|
|
3281
|
-
let o = t(i);
|
|
3282
|
-
if (o === -1)
|
|
3283
|
-
return !1;
|
|
3284
|
-
if (n.children.length === 1)
|
|
3285
|
-
return o % e.tabWidth === 0;
|
|
3286
|
-
let D = t(a);
|
|
3287
|
-
return o !== D ? !1 : o % e.tabWidth === 0 ? !0 : ee(a, e).leadingSpaces.length > 1;
|
|
3288
|
-
}
|
|
3289
|
-
}
|
|
3290
|
-
var Ro = ko;
|
|
3291
|
-
function Io(u, e) {
|
|
3292
|
-
let t = [""];
|
|
3293
|
-
return u.each(() => {
|
|
3294
|
-
let { node: r } = u, n = e();
|
|
3295
|
-
switch (r.type) {
|
|
3296
|
-
case "whitespace":
|
|
3297
|
-
if (Ou(n) !== Pu) {
|
|
3298
|
-
t.push(n, "");
|
|
3299
|
-
break;
|
|
3300
|
-
}
|
|
3301
|
-
default:
|
|
3302
|
-
t.push([t.pop(), n]);
|
|
3303
|
-
}
|
|
3304
|
-
}, "children"), Me(t);
|
|
3305
|
-
}
|
|
3306
|
-
var Po = /* @__PURE__ */ new Set(["heading", "tableCell", "link", "wikiLink"]), at = new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");
|
|
3307
|
-
function jo({ parent: u }) {
|
|
3308
|
-
if (u.usesCJSpaces === void 0) {
|
|
3309
|
-
let e = { " ": 0, "": 0 }, { children: t } = u;
|
|
3310
|
-
for (let r = 1; r < t.length - 1; ++r) {
|
|
3311
|
-
let n = t[r];
|
|
3312
|
-
if (n.type === "whitespace" && (n.value === " " || n.value === "")) {
|
|
3313
|
-
let i = t[r - 1].kind, a = t[r + 1].kind;
|
|
3314
|
-
(i === bu && a === re || i === re && a === bu) && ++e[n.value];
|
|
3315
|
-
}
|
|
3316
|
-
}
|
|
3317
|
-
u.usesCJSpaces = e[" "] > e[""];
|
|
3318
|
-
}
|
|
3319
|
-
return u.usesCJSpaces;
|
|
3320
|
-
}
|
|
3321
|
-
function zo(u, e) {
|
|
3322
|
-
if (e)
|
|
3323
|
-
return !0;
|
|
3324
|
-
let { previous: t, next: r } = u;
|
|
3325
|
-
if (!t || !r)
|
|
3326
|
-
return !0;
|
|
3327
|
-
let n = t.kind, i = r.kind;
|
|
3328
|
-
return Dt(n) && Dt(i) || n === $u && i === bu || i === $u && n === bu ? !0 : n === ge || i === ge || n === bu && i === bu ? !1 : at.has(r.value[0]) || at.has(gu(0, t.value, -1)) ? !0 : t.hasTrailingPunctuation || r.hasLeadingPunctuation ? !1 : jo(u);
|
|
3329
|
-
}
|
|
3330
|
-
function Dt(u) {
|
|
3331
|
-
return u === re || u === $u;
|
|
3332
|
-
}
|
|
3333
|
-
function $o(u, e, t, r) {
|
|
3334
|
-
if (t !== "always" || u.hasAncestor((a) => Po.has(a.type)))
|
|
3335
|
-
return !1;
|
|
3336
|
-
if (r)
|
|
3337
|
-
return e !== "";
|
|
3338
|
-
let { previous: n, next: i } = u;
|
|
3339
|
-
return !n || !i ? !0 : e === "" ? !1 : n.kind === $u && i.kind === bu || i.kind === $u && n.kind === bu ? !0 : !(n.isCJ || i.isCJ);
|
|
3340
|
-
}
|
|
3341
|
-
function st(u, e, t, r) {
|
|
3342
|
-
if (t === "preserve" && e === `
|
|
3343
|
-
`)
|
|
3344
|
-
return Du;
|
|
3345
|
-
let n = e === " " || e === `
|
|
3346
|
-
` && zo(u, r);
|
|
3347
|
-
return $o(u, e, t, r) ? n ? qt : St : n ? " " : "";
|
|
3348
|
-
}
|
|
3349
|
-
function lt(u) {
|
|
3350
|
-
var r, n;
|
|
3351
|
-
let { previous: e, next: t } = u;
|
|
3352
|
-
return (e == null ? void 0 : e.type) === "sentence" && ((r = gu(0, e.children, -1)) == null ? void 0 : r.type) === "word" && !gu(0, e.children, -1).hasTrailingPunctuation || (t == null ? void 0 : t.type) === "sentence" && ((n = t.children[0]) == null ? void 0 : n.type) === "word" && !t.children[0].hasLeadingPunctuation;
|
|
3353
|
-
}
|
|
3354
|
-
function Uo(u, e, t) {
|
|
3355
|
-
let { node: r } = u;
|
|
3356
|
-
if (_o(u)) {
|
|
3357
|
-
let n = [""], i = _t(e.originalText.slice(r.position.start.offset, r.position.end.offset));
|
|
3358
|
-
for (let a of i) {
|
|
3359
|
-
if (a.type === "word") {
|
|
3360
|
-
n.push([n.pop(), a.value]);
|
|
3361
|
-
continue;
|
|
3362
|
-
}
|
|
3363
|
-
let o = st(u, a.value, e.proseWrap, !0);
|
|
3364
|
-
if (Ou(o) === Pu) {
|
|
3365
|
-
n.push([n.pop(), o]);
|
|
3366
|
-
continue;
|
|
3367
|
-
}
|
|
3368
|
-
n.push(o, "");
|
|
3369
|
-
}
|
|
3370
|
-
return Me(n);
|
|
3371
|
-
}
|
|
3372
|
-
switch (r.type) {
|
|
3373
|
-
case "root":
|
|
3374
|
-
return r.children.length === 0 ? "" : [Mo(u, e, t), Du];
|
|
3375
|
-
case "paragraph":
|
|
3376
|
-
return Eo(u, e, t);
|
|
3377
|
-
case "sentence":
|
|
3378
|
-
return Io(u, t);
|
|
3379
|
-
case "word":
|
|
3380
|
-
return go(u);
|
|
3381
|
-
case "whitespace": {
|
|
3382
|
-
let { next: n } = u, i = n && /^>|^(?:[*+-]|#{1,6}|\d+[).])$/u.test(n.value) ? "never" : e.proseWrap;
|
|
3383
|
-
return st(u, r.value, i);
|
|
3384
|
-
}
|
|
3385
|
-
case "emphasis": {
|
|
3386
|
-
let n;
|
|
3387
|
-
if (Ht(r.children[0]))
|
|
3388
|
-
n = e.originalText[r.position.start.offset];
|
|
3389
|
-
else {
|
|
3390
|
-
let i = lt(u), a = u.callParent(({ node: o }) => o.type === "strong" && lt(u));
|
|
3391
|
-
n = i || a || u.hasAncestor((o) => o.type === "emphasis") ? "*" : "_";
|
|
3392
|
-
}
|
|
3393
|
-
return [n, fu(u, e, t), n];
|
|
3394
|
-
}
|
|
3395
|
-
case "strong":
|
|
3396
|
-
return ["**", fu(u, e, t), "**"];
|
|
3397
|
-
case "delete":
|
|
3398
|
-
return ["~~", fu(u, e, t), "~~"];
|
|
3399
|
-
case "inlineCode": {
|
|
3400
|
-
let n = e.proseWrap === "preserve" ? r.value : su(0, r.value, `
|
|
3401
|
-
`, " "), i = Ei(n, "`"), a = "`".repeat(i), o = n.startsWith("`") || n.endsWith("`") || /^[\n ]/u.test(n) && /[\n ]$/u.test(n) && /[^\n ]/u.test(n) ? " " : "";
|
|
3402
|
-
return [a, o, n, o, a];
|
|
3403
|
-
}
|
|
3404
|
-
case "wikiLink": {
|
|
3405
|
-
let n = "";
|
|
3406
|
-
return e.proseWrap === "preserve" ? n = r.value : n = su(0, r.value, /[\t\n]+/gu, " "), ["[[", n, "]]"];
|
|
3407
|
-
}
|
|
3408
|
-
case "link":
|
|
3409
|
-
switch (e.originalText[r.position.start.offset]) {
|
|
3410
|
-
case "<": {
|
|
3411
|
-
let n = "mailto:";
|
|
3412
|
-
return ["<", r.url.startsWith(n) && e.originalText.slice(r.position.start.offset + 1, r.position.start.offset + 1 + n.length) !== n ? r.url.slice(n.length) : r.url, ">"];
|
|
3413
|
-
}
|
|
3414
|
-
case "[":
|
|
3415
|
-
return ["[", fu(u, e, t), "](", Le(r.url, ")"), he(r.title, e), ")"];
|
|
3416
|
-
default:
|
|
3417
|
-
return e.originalText.slice(r.position.start.offset, r.position.end.offset);
|
|
3418
|
-
}
|
|
3419
|
-
case "image":
|
|
3420
|
-
return [""), he(r.title, e), ")"];
|
|
3421
|
-
case "blockquote":
|
|
3422
|
-
return ["> ", Iu("> ", fu(u, e, t))];
|
|
3423
|
-
case "heading":
|
|
3424
|
-
return ["#".repeat(r.depth) + " ", fu(u, e, t)];
|
|
3425
|
-
case "code": {
|
|
3426
|
-
if (r.isIndented) {
|
|
3427
|
-
let a = " ".repeat(4);
|
|
3428
|
-
return Iu(a, [a, zu(r.value, Du)]);
|
|
3429
|
-
}
|
|
3430
|
-
let n = e.__inJsTemplate ? "~" : "`", i = n.repeat(Math.max(3, Nt(r.value, n) + 1));
|
|
3431
|
-
return [i, r.lang || "", r.meta ? " " + r.meta : "", Du, zu(Vt(r, e.originalText), Du), Du, i];
|
|
3432
|
-
}
|
|
3433
|
-
case "html": {
|
|
3434
|
-
let { parent: n, isLast: i } = u, a = n.type === "root" && i ? r.value.trimEnd() : r.value, o = /^<!--.*-->$/su.test(a);
|
|
3435
|
-
return zu(a, o ? Du : Ne(Re));
|
|
3436
|
-
}
|
|
3437
|
-
case "list":
|
|
3438
|
-
return ho(u, e, t);
|
|
3439
|
-
case "thematicBreak": {
|
|
3440
|
-
let { ancestors: n } = u, i = n.findIndex((a) => a.type === "list");
|
|
3441
|
-
return i === -1 ? "---" : Wt(n[i], n[i + 1]) % 2 === 0 ? "***" : "---";
|
|
3442
|
-
}
|
|
3443
|
-
case "linkReference":
|
|
3444
|
-
return ["[", fu(u, e, t), "]", r.referenceType === "full" ? Te(r) : r.referenceType === "collapsed" ? "[]" : ""];
|
|
3445
|
-
case "imageReference":
|
|
3446
|
-
switch (r.referenceType) {
|
|
3447
|
-
case "full":
|
|
3448
|
-
return ["![", r.alt || "", "]", Te(r)];
|
|
3449
|
-
default:
|
|
3450
|
-
return ["![", r.alt, "]", r.referenceType === "collapsed" ? "[]" : ""];
|
|
3451
|
-
}
|
|
3452
|
-
case "definition": {
|
|
3453
|
-
let n = e.proseWrap === "always" ? qt : " ";
|
|
3454
|
-
return pe([Te(r), ":", Oe([n, Le(r.url), r.title === null ? "" : [n, he(r.title, e, !1)]])]);
|
|
3455
|
-
}
|
|
3456
|
-
case "footnote":
|
|
3457
|
-
return ["[^", fu(u, e, t), "]"];
|
|
3458
|
-
case "footnoteReference":
|
|
3459
|
-
return ft(r);
|
|
3460
|
-
case "footnoteDefinition": {
|
|
3461
|
-
let n = r.children.length === 1 && r.children[0].type === "paragraph" && (e.proseWrap === "never" || e.proseWrap === "preserve" && r.children[0].position.start.line === r.children[0].position.end.line);
|
|
3462
|
-
return [ft(r), ": ", n ? fu(u, e, t) : pe([Iu(" ".repeat(4), fu(u, e, t, { processor: ({ isFirst: i }) => i ? pe([St, t()]) : t() }))])];
|
|
3463
|
-
}
|
|
3464
|
-
case "table":
|
|
3465
|
-
return Ao(u, e, t);
|
|
3466
|
-
case "tableCell":
|
|
3467
|
-
return fu(u, e, t);
|
|
3468
|
-
case "break":
|
|
3469
|
-
return /\s/u.test(e.originalText[r.position.start.offset]) ? [" ", Ne(Re)] : ["\\", Du];
|
|
3470
|
-
case "liquidNode":
|
|
3471
|
-
return zu(r.value, Du);
|
|
3472
|
-
case "import":
|
|
3473
|
-
case "export":
|
|
3474
|
-
case "jsx":
|
|
3475
|
-
return r.value.trimEnd();
|
|
3476
|
-
case "esComment":
|
|
3477
|
-
return ["{/* ", r.value, " */}"];
|
|
3478
|
-
case "math":
|
|
3479
|
-
return ["$$", Du, r.value ? [zu(r.value, Du), Du] : "", "$$"];
|
|
3480
|
-
case "inlineMath":
|
|
3481
|
-
return e.originalText.slice(Ce(r), Ae(r));
|
|
3482
|
-
case "frontMatter":
|
|
3483
|
-
case "tableRow":
|
|
3484
|
-
case "listItem":
|
|
3485
|
-
case "text":
|
|
3486
|
-
default:
|
|
3487
|
-
throw new yi(r, "Markdown");
|
|
3488
|
-
}
|
|
3489
|
-
}
|
|
3490
|
-
function Mo(u, e, t) {
|
|
3491
|
-
let r = [], n = null, { children: i } = u.node;
|
|
3492
|
-
for (let [a, o] of i.entries())
|
|
3493
|
-
switch (He(o)) {
|
|
3494
|
-
case "start":
|
|
3495
|
-
n === null && (n = { index: a, offset: o.position.end.offset });
|
|
3496
|
-
break;
|
|
3497
|
-
case "end":
|
|
3498
|
-
n !== null && (r.push({ start: n, end: { index: a, offset: o.position.start.offset } }), n = null);
|
|
3499
|
-
break;
|
|
3500
|
-
}
|
|
3501
|
-
return fu(u, e, t, { processor({ index: a }) {
|
|
3502
|
-
if (r.length > 0) {
|
|
3503
|
-
let o = r[0];
|
|
3504
|
-
if (a === o.start.index)
|
|
3505
|
-
return [ct(i[o.start.index]), e.originalText.slice(o.start.offset, o.end.offset), ct(i[o.end.index])];
|
|
3506
|
-
if (o.start.index < a && a < o.end.index)
|
|
3507
|
-
return !1;
|
|
3508
|
-
if (a === o.end.index)
|
|
3509
|
-
return r.shift(), !1;
|
|
3510
|
-
}
|
|
3511
|
-
return t();
|
|
3512
|
-
} });
|
|
3513
|
-
}
|
|
3514
|
-
function ct(u) {
|
|
3515
|
-
if (u.type === "html")
|
|
3516
|
-
return u.value;
|
|
3517
|
-
if (u.type === "paragraph" && Array.isArray(u.children) && u.children.length === 1 && u.children[0].type === "esComment")
|
|
3518
|
-
return ["{/* ", u.children[0].value, " */}"];
|
|
3519
|
-
}
|
|
3520
|
-
function _o(u) {
|
|
3521
|
-
let e = u.findAncestor((t) => t.type === "linkReference" || t.type === "imageReference");
|
|
3522
|
-
return e && (e.type !== "linkReference" || e.referenceType !== "full");
|
|
3523
|
-
}
|
|
3524
|
-
var Vo = (u, e) => {
|
|
3525
|
-
for (let t of e)
|
|
3526
|
-
u = su(0, u, t, encodeURIComponent(t));
|
|
3527
|
-
return u;
|
|
3528
|
-
};
|
|
3529
|
-
function Le(u, e = []) {
|
|
3530
|
-
let t = [" ", ...Array.isArray(e) ? e : [e]];
|
|
3531
|
-
return new RegExp(t.map((r) => ve(r)).join("|"), "u").test(u) ? `<${Vo(u, "<>")}>` : u;
|
|
3532
|
-
}
|
|
3533
|
-
function he(u, e, t = !0) {
|
|
3534
|
-
if (!u)
|
|
3535
|
-
return "";
|
|
3536
|
-
if (t)
|
|
3537
|
-
return " " + he(u, e, !1);
|
|
3538
|
-
if (u = su(0, u, /\\(?=["')])/gu, ""), u.includes('"') && u.includes("'") && !u.includes(")"))
|
|
3539
|
-
return `(${u})`;
|
|
3540
|
-
let r = Bi(u, e.singleQuote);
|
|
3541
|
-
return u = su(0, u, "\\", "\\\\"), u = su(0, u, r, `\\${r}`), `${r}${u}${r}`;
|
|
3542
|
-
}
|
|
3543
|
-
function Ho(u) {
|
|
3544
|
-
return u.index > 0 && He(u.previous) === "next";
|
|
3545
|
-
}
|
|
3546
|
-
function Te(u) {
|
|
3547
|
-
return `[${(0, jn.default)(u.label)}]`;
|
|
3548
|
-
}
|
|
3549
|
-
function ft(u) {
|
|
3550
|
-
return `[^${u.label}]`;
|
|
3551
|
-
}
|
|
3552
|
-
var Wo = { features: { experimental_frontMatterSupport: { massageAstNode: !0, embed: !0, print: !0 } }, preprocess: Ro, print: Uo, embed: ro, massageAstNode: Qi, hasPrettierIgnore: Ho, insertPragma: Yi, getVisitorKeys: lo }, Go = Wo, Jo = [{ name: "Markdown", type: "prose", aceMode: "markdown", extensions: [".md", ".livemd", ".markdown", ".mdown", ".mdwn", ".mkd", ".mkdn", ".mkdown", ".ronn", ".scd", ".workbook"], filenames: ["contents.lr", "README"], tmScope: "text.md", aliases: ["md", "pandoc"], codemirrorMode: "gfm", codemirrorMimeType: "text/x-gfm", wrap: !0, parsers: ["markdown"], vscodeLanguageIds: ["markdown"], linguistLanguageId: 222 }, { name: "MDX", type: "prose", aceMode: "markdown", extensions: [".mdx"], filenames: [], tmScope: "text.md", aliases: ["md", "pandoc"], codemirrorMode: "gfm", codemirrorMimeType: "text/x-gfm", wrap: !0, parsers: ["mdx"], vscodeLanguageIds: ["mdx"], linguistLanguageId: 222 }], pt = { bracketSpacing: { category: "Common", type: "boolean", default: !0, description: "Print spaces between brackets.", oppositeDescription: "Do not print spaces between brackets." }, objectWrap: { category: "Common", type: "choice", default: "preserve", description: "How to wrap object literals.", choices: [{ value: "preserve", description: "Keep as multi-line, if there is a newline between the opening brace and first property." }, { value: "collapse", description: "Fit to a single line when possible." }] }, singleQuote: { category: "Common", type: "boolean", default: !1, description: "Use single quotes instead of double quotes." }, proseWrap: { category: "Common", type: "choice", default: "preserve", description: "How to wrap prose.", choices: [{ value: "always", description: "Wrap prose if it exceeds the print width." }, { value: "never", description: "Do not wrap prose." }, { value: "preserve", description: "Wrap prose as-is." }] }, bracketSameLine: { category: "Common", type: "boolean", default: !1, description: "Put > of opening tags on the last line instead of on a new line." }, singleAttributePerLine: { category: "Common", type: "boolean", default: !1, description: "Enforce single attribute per line in HTML, Vue and JSX." } }, Yo = { proseWrap: pt.proseWrap, singleQuote: pt.singleQuote }, Ko = Yo, Jt = {};
|
|
3553
|
-
Ct(Jt, { markdown: () => Ft, mdx: () => d2, remark: () => Ft });
|
|
3554
|
-
var Qo = Uu(sr(), 1), Zo = Uu(fr(), 1), Xo = Uu(gn(), 1), u2 = Uu(Tn(), 1), e2 = /^import\s/u, t2 = /^export\s/u, r2 = "[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)*|", n2 = /<!---->|<!---?[^>-](?:-?[^-])*-->/u, i2 = /^\{\s*\/\*(.*)\*\/\s*\}/u, o2 = (u) => e2.test(u), Yt = (u) => t2.test(u), Kt = (u) => o2(u) || Yt(u), We = (u, e) => {
|
|
3555
|
-
let t = e.indexOf(`
|
|
3556
|
-
|
|
3557
|
-
`), r = t === -1 ? e : e.slice(0, t);
|
|
3558
|
-
if (Kt(r))
|
|
3559
|
-
return u(r)({ type: Yt(r) ? "export" : "import", value: r });
|
|
3560
|
-
};
|
|
3561
|
-
We.notInBlock = !0;
|
|
3562
|
-
We.locator = (u) => Kt(u) ? -1 : 1;
|
|
3563
|
-
var Qt = (u, e) => {
|
|
3564
|
-
let t = i2.exec(e);
|
|
3565
|
-
if (t)
|
|
3566
|
-
return u(t[0])({ type: "esComment", value: t[1].trim() });
|
|
3567
|
-
};
|
|
3568
|
-
Qt.locator = (u, e) => u.indexOf("{", e);
|
|
3569
|
-
var a2 = function() {
|
|
3570
|
-
let { Parser: u } = this, { blockTokenizers: e, blockMethods: t, inlineTokenizers: r, inlineMethods: n } = u.prototype;
|
|
3571
|
-
e.esSyntax = We, r.esComment = Qt, t.splice(t.indexOf("paragraph"), 0, "esSyntax"), n.splice(n.indexOf("text"), 0, "esComment");
|
|
3572
|
-
}, D2 = function() {
|
|
3573
|
-
let u = this.Parser.prototype;
|
|
3574
|
-
u.blockMethods = ["frontMatter", ...u.blockMethods], u.blockTokenizers.frontMatter = e;
|
|
3575
|
-
function e(t, r) {
|
|
3576
|
-
let { frontMatter: n } = Be(r);
|
|
3577
|
-
if (n)
|
|
3578
|
-
return t(n.raw)({ ...n, type: "frontMatter" });
|
|
3579
|
-
}
|
|
3580
|
-
e.onlyAtStart = !0;
|
|
3581
|
-
}, s2 = D2;
|
|
3582
|
-
function l2() {
|
|
3583
|
-
return (u) => Ju(u, (e, t, [r]) => e.type !== "html" || n2.test(e.value) || Mt.has(r.type) ? e : { ...e, type: "jsx" });
|
|
3584
|
-
}
|
|
3585
|
-
var c2 = l2, f2 = function() {
|
|
3586
|
-
let u = this.Parser.prototype, e = u.inlineMethods;
|
|
3587
|
-
e.splice(e.indexOf("text"), 0, "liquid"), u.inlineTokenizers.liquid = t;
|
|
3588
|
-
function t(r, n) {
|
|
3589
|
-
let i = n.match(/^(\{%.*?%\}|\{\{.*?\}\})/su);
|
|
3590
|
-
if (i)
|
|
3591
|
-
return r(i[0])({ type: "liquidNode", value: i[0] });
|
|
3592
|
-
}
|
|
3593
|
-
t.locator = function(r, n) {
|
|
3594
|
-
return r.indexOf("{", n);
|
|
3595
|
-
};
|
|
3596
|
-
}, p2 = f2, h2 = function() {
|
|
3597
|
-
let u = "wikiLink", e = /^\[\[(?<linkContents>.+?)\]\]/su, t = this.Parser.prototype, r = t.inlineMethods;
|
|
3598
|
-
r.splice(r.indexOf("link"), 0, u), t.inlineTokenizers.wikiLink = n;
|
|
3599
|
-
function n(i, a) {
|
|
3600
|
-
let o = e.exec(a);
|
|
3601
|
-
if (o) {
|
|
3602
|
-
let D = o.groups.linkContents.trim();
|
|
3603
|
-
return i(o[0])({ type: u, value: D });
|
|
3604
|
-
}
|
|
3605
|
-
}
|
|
3606
|
-
n.locator = function(i, a) {
|
|
3607
|
-
return i.indexOf("[", a);
|
|
3608
|
-
};
|
|
3609
|
-
}, F2 = h2;
|
|
3610
|
-
function Zt({ isMDX: u }) {
|
|
3611
|
-
return (e) => {
|
|
3612
|
-
let t = (0, u2.default)().use(Xo.default, { commonmark: !0, ...u && { blocks: [r2] } }).use(Qo.default).use(s2).use(Zo.default).use(u ? a2 : ht).use(p2).use(u ? c2 : ht).use(F2);
|
|
3613
|
-
return t.run(t.parse(e));
|
|
3614
|
-
};
|
|
3615
|
-
}
|
|
3616
|
-
function ht() {
|
|
3617
|
-
}
|
|
3618
|
-
var Xt = { astFormat: "mdast", hasPragma: zt, hasIgnorePragma: Ji, locStart: Ce, locEnd: Ae }, Ft = { ...Xt, parse: Zt({ isMDX: !1 }) }, d2 = { ...Xt, parse: Zt({ isMDX: !0 }) }, C2 = { mdast: Go };
|
|
3619
|
-
export {
|
|
3620
|
-
On as default,
|
|
3621
|
-
Jo as languages,
|
|
3622
|
-
Ko as options,
|
|
3623
|
-
Jt as parsers,
|
|
3624
|
-
C2 as printers
|
|
3625
|
-
};
|