@apify/docusaurus-plugin-typedoc-api 4.4.12 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -296
- package/lib/components/AnchorLink.d.ts +5 -0
- package/lib/components/AnchorLink.d.ts.map +1 -0
- package/lib/components/AnchorLink.js +7 -26
- package/lib/components/AnchorLink.js.map +1 -1
- package/lib/components/ApiChangelog.d.ts +6 -0
- package/lib/components/ApiChangelog.d.ts.map +1 -0
- package/lib/components/ApiChangelog.js +7 -24
- package/lib/components/ApiChangelog.js.map +1 -1
- package/lib/components/ApiDataContext.d.ts +6 -0
- package/lib/components/ApiDataContext.d.ts.map +1 -0
- package/lib/components/ApiDataContext.js +12 -15
- package/lib/components/ApiDataContext.js.map +1 -1
- package/lib/components/ApiIndex.d.ts +14 -0
- package/lib/components/ApiIndex.d.ts.map +1 -0
- package/lib/components/ApiIndex.js +33 -93
- package/lib/components/ApiIndex.js.map +1 -1
- package/lib/components/ApiItem.d.ts +6 -0
- package/lib/components/ApiItem.d.ts.map +1 -0
- package/lib/components/ApiItem.js +131 -191
- package/lib/components/ApiItem.js.map +1 -1
- package/lib/components/ApiItemLayout.d.ts +14 -0
- package/lib/components/ApiItemLayout.d.ts.map +1 -0
- package/lib/components/ApiItemLayout.js +21 -97
- package/lib/components/ApiItemLayout.js.map +1 -1
- package/lib/components/ApiOptionsContext.d.ts +5 -0
- package/lib/components/ApiOptionsContext.d.ts.map +1 -0
- package/lib/components/ApiOptionsContext.js +5 -9
- package/lib/components/ApiOptionsContext.js.map +1 -1
- package/lib/components/ApiOptionsLayout.d.ts +4 -0
- package/lib/components/ApiOptionsLayout.d.ts.map +1 -0
- package/lib/components/ApiOptionsLayout.js +10 -34
- package/lib/components/ApiOptionsLayout.js.map +1 -1
- package/lib/components/ApiPage.d.ts +11 -0
- package/lib/components/ApiPage.d.ts.map +1 -0
- package/lib/components/ApiPage.js +50 -63
- package/lib/components/ApiPage.js.map +1 -1
- package/lib/components/Breadcrumb.d.ts +7 -0
- package/lib/components/Breadcrumb.d.ts.map +1 -0
- package/lib/components/Breadcrumb.js +17 -49
- package/lib/components/Breadcrumb.js.map +1 -1
- package/lib/components/Comment.d.ts +10 -0
- package/lib/components/Comment.d.ts.map +1 -0
- package/lib/components/Comment.js +33 -60
- package/lib/components/Comment.js.map +1 -1
- package/lib/components/CommentBadges.d.ts +9 -0
- package/lib/components/CommentBadges.d.ts.map +1 -0
- package/lib/components/CommentBadges.js +16 -28
- package/lib/components/CommentBadges.js.map +1 -1
- package/lib/components/DefaultValue.d.ts +10 -0
- package/lib/components/DefaultValue.d.ts.map +1 -0
- package/lib/components/DefaultValue.js +25 -55
- package/lib/components/DefaultValue.js.map +1 -1
- package/lib/components/Flags.d.ts +6 -0
- package/lib/components/Flags.d.ts.map +1 -0
- package/lib/components/Flags.js +11 -22
- package/lib/components/Flags.js.map +1 -1
- package/lib/components/Footer.d.ts +2 -0
- package/lib/components/Footer.d.ts.map +1 -0
- package/lib/components/Footer.js +4 -16
- package/lib/components/Footer.js.map +1 -1
- package/lib/components/Hierarchy.d.ts +6 -0
- package/lib/components/Hierarchy.d.ts.map +1 -0
- package/lib/components/Hierarchy.js +5 -25
- package/lib/components/Hierarchy.js.map +1 -1
- package/lib/components/Icon.d.ts +6 -0
- package/lib/components/Icon.d.ts.map +1 -0
- package/lib/components/Icon.js +10 -21
- package/lib/components/Icon.js.map +1 -1
- package/lib/components/Index.d.ts +9 -0
- package/lib/components/Index.d.ts.map +1 -0
- package/lib/components/Index.js +30 -113
- package/lib/components/Index.js.map +1 -1
- package/lib/components/Markdown.d.ts +5 -0
- package/lib/components/Markdown.d.ts.map +1 -0
- package/lib/components/Markdown.js +138 -202
- package/lib/components/Markdown.js.map +1 -1
- package/lib/components/Member.d.ts +5 -0
- package/lib/components/Member.d.ts.map +1 -0
- package/lib/components/Member.js +40 -69
- package/lib/components/Member.js.map +1 -1
- package/lib/components/MemberDeclaration.d.ts +5 -0
- package/lib/components/MemberDeclaration.d.ts.map +1 -0
- package/lib/components/MemberDeclaration.js +20 -71
- package/lib/components/MemberDeclaration.js.map +1 -1
- package/lib/components/MemberGetterSetter.d.ts +8 -0
- package/lib/components/MemberGetterSetter.d.ts.map +1 -0
- package/lib/components/MemberGetterSetter.js +13 -68
- package/lib/components/MemberGetterSetter.js.map +1 -1
- package/lib/components/MemberReference.d.ts +6 -0
- package/lib/components/MemberReference.d.ts.map +1 -0
- package/lib/components/MemberReference.js +18 -48
- package/lib/components/MemberReference.js.map +1 -1
- package/lib/components/MemberSignatureBody.d.ts +9 -0
- package/lib/components/MemberSignatureBody.d.ts.map +1 -0
- package/lib/components/MemberSignatureBody.js +85 -182
- package/lib/components/MemberSignatureBody.js.map +1 -1
- package/lib/components/MemberSignatureTitle.d.ts +11 -0
- package/lib/components/MemberSignatureTitle.d.ts.map +1 -0
- package/lib/components/MemberSignatureTitle.js +27 -81
- package/lib/components/MemberSignatureTitle.js.map +1 -1
- package/lib/components/MemberSignatures.d.ts +7 -0
- package/lib/components/MemberSignatures.d.ts.map +1 -0
- package/lib/components/MemberSignatures.js +18 -66
- package/lib/components/MemberSignatures.js.map +1 -1
- package/lib/components/MemberSources.d.ts +7 -0
- package/lib/components/MemberSources.d.ts.map +1 -0
- package/lib/components/MemberSources.js +10 -34
- package/lib/components/MemberSources.js.map +1 -1
- package/lib/components/Members.d.ts +6 -0
- package/lib/components/Members.d.ts.map +1 -0
- package/lib/components/Members.js +29 -49
- package/lib/components/Members.js.map +1 -1
- package/lib/components/MembersGroup.d.ts +6 -0
- package/lib/components/MembersGroup.d.ts.map +1 -0
- package/lib/components/MembersGroup.js +16 -40
- package/lib/components/MembersGroup.js.map +1 -1
- package/lib/components/Parameter.d.ts +6 -0
- package/lib/components/Parameter.d.ts.map +1 -0
- package/lib/components/Parameter.js +35 -171
- package/lib/components/Parameter.js.map +1 -1
- package/lib/components/Reflection.d.ts +6 -0
- package/lib/components/Reflection.d.ts.map +1 -0
- package/lib/components/Reflection.js +29 -132
- package/lib/components/Reflection.js.map +1 -1
- package/lib/components/SourceLink.d.ts +10 -0
- package/lib/components/SourceLink.d.ts.map +1 -0
- package/lib/components/SourceLink.js +16 -36
- package/lib/components/SourceLink.js.map +1 -1
- package/lib/components/Type.d.ts +12 -0
- package/lib/components/Type.d.ts.map +1 -0
- package/lib/components/Type.js +142 -464
- package/lib/components/Type.js.map +1 -1
- package/lib/components/TypeAndParent.d.ts +6 -0
- package/lib/components/TypeAndParent.d.ts.map +1 -0
- package/lib/components/TypeAndParent.js +11 -27
- package/lib/components/TypeAndParent.js.map +1 -1
- package/lib/components/TypeParameters.d.ts +6 -0
- package/lib/components/TypeParameters.d.ts.map +1 -0
- package/lib/components/TypeParameters.js +10 -38
- package/lib/components/TypeParameters.js.map +1 -1
- package/lib/components/TypeParametersGeneric.d.ts +6 -0
- package/lib/components/TypeParametersGeneric.d.ts.map +1 -0
- package/lib/components/TypeParametersGeneric.js +8 -27
- package/lib/components/TypeParametersGeneric.js.map +1 -1
- package/lib/components/VersionBanner.d.ts +2 -0
- package/lib/components/VersionBanner.d.ts.map +1 -0
- package/lib/components/VersionBanner.js +18 -49
- package/lib/components/VersionBanner.js.map +1 -1
- package/lib/hooks/useBreadcrumbs.d.ts +2 -0
- package/lib/hooks/useBreadcrumbs.d.ts.map +1 -0
- package/lib/hooks/useBreadcrumbs.js +5 -8
- package/lib/hooks/useBreadcrumbs.js.map +1 -1
- package/lib/hooks/useGitRefName.d.ts +2 -0
- package/lib/hooks/useGitRefName.d.ts.map +1 -0
- package/lib/hooks/useGitRefName.js +5 -8
- package/lib/hooks/useGitRefName.js.map +1 -1
- package/lib/hooks/useMinimalLayout.d.ts +2 -0
- package/lib/hooks/useMinimalLayout.d.ts.map +1 -0
- package/lib/hooks/useMinimalLayout.js +5 -8
- package/lib/hooks/useMinimalLayout.js.map +1 -1
- package/lib/hooks/useReflection.d.ts +4 -0
- package/lib/hooks/useReflection.d.ts.map +1 -0
- package/lib/hooks/useReflection.js +15 -21
- package/lib/hooks/useReflection.js.map +1 -1
- package/lib/hooks/useReflectionMap.d.ts +3 -0
- package/lib/hooks/useReflectionMap.d.ts.map +1 -0
- package/lib/hooks/useReflectionMap.js +5 -8
- package/lib/hooks/useReflectionMap.js.map +1 -1
- package/lib/index.d.ts +4 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +349 -361
- package/lib/index.js.map +1 -1
- package/lib/markdownLoader.d.ts +6 -0
- package/lib/markdownLoader.d.ts.map +1 -0
- package/lib/markdownLoader.js +6 -10
- package/lib/markdownLoader.js.map +1 -1
- package/lib/plugin/data.d.ts +21 -0
- package/lib/plugin/data.d.ts.map +1 -0
- package/lib/plugin/data.js +391 -429
- package/lib/plugin/data.js.map +1 -1
- package/lib/plugin/python/consts.d.ts +35 -0
- package/lib/plugin/python/consts.d.ts.map +1 -0
- package/lib/plugin/python/consts.js +44 -44
- package/lib/plugin/python/consts.js.map +1 -1
- package/lib/plugin/python/index.d.ts +12 -0
- package/lib/plugin/python/index.d.ts.map +1 -0
- package/lib/plugin/python/index.js +25 -36
- package/lib/plugin/python/index.js.map +1 -1
- package/lib/plugin/python/inheritance.d.ts +42 -0
- package/lib/plugin/python/inheritance.d.ts.map +1 -0
- package/lib/plugin/python/inheritance.js +148 -153
- package/lib/plugin/python/inheritance.js.map +1 -1
- package/lib/plugin/python/packageVersions.d.ts +7 -0
- package/lib/plugin/python/packageVersions.d.ts.map +1 -0
- package/lib/plugin/python/packageVersions.js +30 -38
- package/lib/plugin/python/packageVersions.js.map +1 -1
- package/lib/plugin/python/transformation.d.ts +80 -0
- package/lib/plugin/python/transformation.d.ts.map +1 -0
- package/lib/plugin/python/transformation.js +350 -392
- package/lib/plugin/python/transformation.js.map +1 -1
- package/lib/plugin/python/type-parsing/index.d.ts +34 -0
- package/lib/plugin/python/type-parsing/index.d.ts.map +1 -0
- package/lib/plugin/python/type-parsing/index.js +78 -85
- package/lib/plugin/python/type-parsing/index.js.map +1 -1
- package/lib/plugin/python/types.d.ts +112 -0
- package/lib/plugin/python/types.d.ts.map +1 -0
- package/lib/plugin/python/types.js +2 -2
- package/lib/plugin/python/types.js.map +1 -1
- package/lib/plugin/python/utils.d.ts +40 -0
- package/lib/plugin/python/utils.d.ts.map +1 -0
- package/lib/plugin/python/utils.js +74 -73
- package/lib/plugin/python/utils.js.map +1 -1
- package/lib/plugin/sidebar.d.ts +6 -0
- package/lib/plugin/sidebar.d.ts.map +1 -0
- package/lib/plugin/sidebar.js +94 -96
- package/lib/plugin/sidebar.js.map +1 -1
- package/lib/plugin/structure/0.23.d.ts +3 -0
- package/lib/plugin/structure/0.23.d.ts.map +1 -0
- package/lib/plugin/structure/0.23.js +33 -41
- package/lib/plugin/structure/0.23.js.map +1 -1
- package/lib/plugin/url.d.ts +6 -0
- package/lib/plugin/url.d.ts.map +1 -0
- package/lib/plugin/url.js +36 -46
- package/lib/plugin/url.js.map +1 -1
- package/lib/plugin/version.d.ts +5 -0
- package/lib/plugin/version.d.ts.map +1 -0
- package/lib/plugin/version.js +73 -78
- package/lib/plugin/version.js.map +1 -1
- package/lib/types.d.ts +142 -0
- package/lib/types.d.ts.map +1 -0
- package/lib/types.js +2 -2
- package/lib/types.js.map +1 -1
- package/lib/utils/helpers.d.ts +2 -0
- package/lib/utils/helpers.d.ts.map +1 -0
- package/lib/utils/helpers.js +5 -7
- package/lib/utils/helpers.js.map +1 -1
- package/lib/utils/hierarchy.d.ts +8 -0
- package/lib/utils/hierarchy.d.ts.map +1 -0
- package/lib/utils/hierarchy.js +31 -33
- package/lib/utils/hierarchy.js.map +1 -1
- package/lib/utils/icons.d.ts +5 -0
- package/lib/utils/icons.d.ts.map +1 -0
- package/lib/utils/icons.js +82 -114
- package/lib/utils/icons.js.map +1 -1
- package/lib/utils/links.d.ts +2 -0
- package/lib/utils/links.d.ts.map +1 -0
- package/lib/utils/links.js +24 -41
- package/lib/utils/links.js.map +1 -1
- package/lib/utils/markdown.d.ts +4 -0
- package/lib/utils/markdown.d.ts.map +1 -0
- package/lib/utils/markdown.js +45 -54
- package/lib/utils/markdown.js.map +1 -1
- package/lib/utils/reexports.d.ts +5 -0
- package/lib/utils/reexports.d.ts.map +1 -0
- package/lib/utils/reexports.js +90 -90
- package/lib/utils/reexports.js.map +1 -1
- package/lib/utils/removeScopes.d.ts +2 -0
- package/lib/utils/removeScopes.d.ts.map +1 -0
- package/lib/utils/removeScopes.js +7 -0
- package/lib/utils/removeScopes.js.map +1 -0
- package/lib/utils/visibility.d.ts +6 -0
- package/lib/utils/visibility.d.ts.map +1 -0
- package/lib/utils/visibility.js +14 -19
- package/lib/utils/visibility.js.map +1 -1
- package/package.json +24 -17
- package/src/components/ApiIndex.tsx +1 -1
- package/src/index.ts +2 -2
- package/src/plugin/data.ts +3 -3
- package/src/plugin/python/index.ts +3 -3
- package/src/plugin/python/packageVersions.ts +3 -3
- package/src/plugin/sidebar.ts +1 -1
- package/src/plugin/url.ts +1 -1
- package/src/plugin/version.ts +1 -1
- package/src/utils/links.ts +1 -12
- package/src/utils/removeScopes.ts +10 -0
- /package/{assets/styles-8ad572ec.css → lib/components/styles.css} +0 -0
package/lib/components/Index.js
CHANGED
|
@@ -1,116 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
const Link__default = /*#__PURE__*/_interopDefault(Link);
|
|
14
|
-
function IndexChild({
|
|
15
|
-
id
|
|
16
|
-
}) {
|
|
17
|
-
const reflection = useReflection.useRequiredReflection(id);
|
|
18
|
-
return /*#__PURE__*/(
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment } from 'react';
|
|
3
|
+
import Link from '@docusaurus/Link';
|
|
4
|
+
import { useRequiredReflection } from '../hooks/useReflection';
|
|
5
|
+
import { escapeMdx } from '../utils/helpers';
|
|
6
|
+
import { AnchorLink } from './AnchorLink';
|
|
7
|
+
import { Icon } from './Icon';
|
|
8
|
+
function IndexChild({ id }) {
|
|
9
|
+
var _a;
|
|
10
|
+
const reflection = useRequiredReflection(id);
|
|
11
|
+
return (
|
|
19
12
|
// eslint-disable-next-line react-perf/jsx-no-new-object-as-prop
|
|
20
|
-
|
|
21
|
-
style: {
|
|
22
|
-
marginTop: '0px',
|
|
23
|
-
marginBottom: '4px'
|
|
24
|
-
},
|
|
25
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(Link__default.default, {
|
|
26
|
-
className: "tsd-kind-icon",
|
|
27
|
-
to: reflection.permalink ?? `#${reflection.name}`,
|
|
28
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
|
|
29
|
-
reflection: reflection
|
|
30
|
-
}), helpers.escapeMdx(reflection.name)]
|
|
31
|
-
})
|
|
32
|
-
})
|
|
33
|
-
);
|
|
13
|
+
_jsx("li", { style: { marginTop: '0px', marginBottom: '4px' }, children: _jsxs(Link, { className: "tsd-kind-icon", to: (_a = reflection.permalink) !== null && _a !== void 0 ? _a : `#${reflection.name}`, children: [_jsx(Icon, { reflection: reflection }), escapeMdx(reflection.name)] }) }));
|
|
34
14
|
}
|
|
35
|
-
function Index({
|
|
36
|
-
|
|
37
|
-
}) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
className: "tsd-panel-header",
|
|
53
|
-
children: category.title === '__CATEGORY__' ? 'Other' : category.title
|
|
54
|
-
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
55
|
-
className: "tsd-panel-content",
|
|
56
|
-
children: /*#__PURE__*/jsxRuntime.jsx("ul", {
|
|
57
|
-
className: "tsd-index-list",
|
|
58
|
-
children: category.children?.map(child => /*#__PURE__*/jsxRuntime.jsx(IndexChild, {
|
|
59
|
-
id: child
|
|
60
|
-
}, child))
|
|
61
|
-
})
|
|
62
|
-
})]
|
|
63
|
-
}, category.title))
|
|
64
|
-
})
|
|
65
|
-
})]
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
if (reflection.groups && reflection.groups.length > 0) {
|
|
69
|
-
return /*#__PURE__*/jsxRuntime.jsxs("section", {
|
|
70
|
-
className: "tsd-panel-group tsd-index-group",
|
|
71
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs("h2", {
|
|
72
|
-
children: ["Index ", /*#__PURE__*/jsxRuntime.jsx(AnchorLink.AnchorLink, {
|
|
73
|
-
id: "Index"
|
|
74
|
-
})]
|
|
75
|
-
}), /*#__PURE__*/jsxRuntime.jsx("section", {
|
|
76
|
-
className: "tsd-panel tsd-index-panel",
|
|
77
|
-
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
78
|
-
className: "tsd-index-content",
|
|
79
|
-
children: reflection.groups.map(group => /*#__PURE__*/jsxRuntime.jsx("section", {
|
|
80
|
-
className: "tsd-index-section",
|
|
81
|
-
children: group.categories && group.categories.length > 0 ? group.categories.map(category => /*#__PURE__*/jsxRuntime.jsxs(react.Fragment, {
|
|
82
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("h3", {
|
|
83
|
-
className: "tsd-panel-header",
|
|
84
|
-
children: category.title === '__CATEGORY__' ? group.title : category.title
|
|
85
|
-
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
86
|
-
className: "tsd-panel-content",
|
|
87
|
-
children: /*#__PURE__*/jsxRuntime.jsx("ul", {
|
|
88
|
-
className: "tsd-index-list",
|
|
89
|
-
children: category.children?.map(child => /*#__PURE__*/jsxRuntime.jsx(IndexChild, {
|
|
90
|
-
id: child
|
|
91
|
-
}, child))
|
|
92
|
-
})
|
|
93
|
-
})]
|
|
94
|
-
}, category.title)) : /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
95
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("h3", {
|
|
96
|
-
className: "tsd-panel-header",
|
|
97
|
-
children: group.title
|
|
98
|
-
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
99
|
-
className: "tsd-panel-content",
|
|
100
|
-
children: /*#__PURE__*/jsxRuntime.jsx("ul", {
|
|
101
|
-
className: "tsd-index-list",
|
|
102
|
-
children: group.children?.map(child => /*#__PURE__*/jsxRuntime.jsx(IndexChild, {
|
|
103
|
-
id: child
|
|
104
|
-
}, child))
|
|
105
|
-
})
|
|
106
|
-
})]
|
|
107
|
-
})
|
|
108
|
-
}, group.title))
|
|
109
|
-
})
|
|
110
|
-
})]
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
return null;
|
|
15
|
+
export function Index({ reflection }) {
|
|
16
|
+
if (reflection.categories && reflection.categories.length > 0) {
|
|
17
|
+
return (_jsxs("section", { className: "tsd-panel-group tsd-index-group", children: [_jsxs("h2", { children: ["Index ", _jsx(AnchorLink, { id: "Index" })] }), _jsx("section", { className: "tsd-panel tsd-index-panel", children: _jsx("div", { className: "tsd-index-content", children: reflection.categories.map((category) => {
|
|
18
|
+
var _a;
|
|
19
|
+
return (_jsxs("section", { className: "tsd-index-section", children: [_jsx("h3", { className: "tsd-panel-header", children: category.title === '__CATEGORY__' ? 'Other' : category.title }), _jsx("div", { className: "tsd-panel-content", children: _jsx("ul", { className: "tsd-index-list", children: (_a = category.children) === null || _a === void 0 ? void 0 : _a.map((child) => _jsx(IndexChild, { id: child }, child)) }) })] }, category.title));
|
|
20
|
+
}) }) })] }));
|
|
21
|
+
}
|
|
22
|
+
if (reflection.groups && reflection.groups.length > 0) {
|
|
23
|
+
return (_jsxs("section", { className: "tsd-panel-group tsd-index-group", children: [_jsxs("h2", { children: ["Index ", _jsx(AnchorLink, { id: "Index" })] }), _jsx("section", { className: "tsd-panel tsd-index-panel", children: _jsx("div", { className: "tsd-index-content", children: reflection.groups.map((group) => {
|
|
24
|
+
var _a;
|
|
25
|
+
return (_jsx("section", { className: "tsd-index-section", children: group.categories && group.categories.length > 0 ? (group.categories.map((category) => {
|
|
26
|
+
var _a;
|
|
27
|
+
return (_jsxs(Fragment, { children: [_jsx("h3", { className: "tsd-panel-header", children: category.title === '__CATEGORY__' ? group.title : category.title }), _jsx("div", { className: "tsd-panel-content", children: _jsx("ul", { className: "tsd-index-list", children: (_a = category.children) === null || _a === void 0 ? void 0 : _a.map((child) => _jsx(IndexChild, { id: child }, child)) }) })] }, category.title));
|
|
28
|
+
})) : (_jsxs(_Fragment, { children: [_jsx("h3", { className: "tsd-panel-header", children: group.title }), _jsx("div", { className: "tsd-panel-content", children: _jsx("ul", { className: "tsd-index-list", children: (_a = group.children) === null || _a === void 0 ? void 0 : _a.map((child) => _jsx(IndexChild, { id: child }, child)) }) })] })) }, group.title));
|
|
29
|
+
}) }) })] }));
|
|
30
|
+
}
|
|
31
|
+
return null;
|
|
114
32
|
}
|
|
115
|
-
|
|
116
|
-
//# sourceMappingURL=Index.js.map
|
|
33
|
+
//# sourceMappingURL=Index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Index.js","sources":["../../src/components/Index.tsx"],"
|
|
1
|
+
{"version":3,"file":"Index.js","sourceRoot":"","sources":["../../src/components/Index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,IAAI,MAAM,kBAAkB,CAAC;AACpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAM9B,SAAS,UAAU,CAAC,EAAE,EAAE,EAAmB;;IAC1C,MAAM,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AAE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAC,UAAU,IAAa,EAAE,EAAE,KAAK,IAAhB,KAAK,CAAe,CAAC,GAClE,GACA,IACJ,CACH,IAzBY,KAAK,CAAC,KAAK,CA0Bf,CACV,CAAA;yBAAA,CAAC,GACG,GACG,IACD,CACV,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACb,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Markdown.d.ts","sourceRoot":"","sources":["../../src/components/Markdown.tsx"],"names":[],"mappings":"AAsPA,MAAM,WAAW,aAAa;IAC7B,OAAO,EAAE,MAAM,CAAC;CAChB;AAGD,wBAAgB,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,aAAa,2CAgBlD"}
|
|
@@ -1,215 +1,151 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
4
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
6
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
7
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
8
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
9
|
-
const react = require('react');
|
|
10
|
-
const marked = require('marked');
|
|
11
|
-
const markedSmartypants = require('marked-smartypants');
|
|
12
|
-
const client = require('@docusaurus/plugin-content-docs/client');
|
|
13
|
-
const CodeBlock = require('@theme/CodeBlock');
|
|
14
|
-
const MDX = require('@theme/MDXComponents');
|
|
15
|
-
const useReflectionMap = require('../hooks/useReflectionMap.js');
|
|
16
|
-
const markdown = require('../utils/markdown.js');
|
|
17
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
18
|
-
const _interopDefault = e => e && e.__esModule ? e : {
|
|
19
|
-
default: e
|
|
20
|
-
};
|
|
21
|
-
const CodeBlock__default = /*#__PURE__*/_interopDefault(CodeBlock);
|
|
22
|
-
const MDX__default = /*#__PURE__*/_interopDefault(MDX);
|
|
23
|
-
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
2
|
/* eslint-disable react/no-array-index-key */
|
|
25
|
-
|
|
3
|
+
import { Fragment, useState } from 'react';
|
|
4
|
+
import { marked } from 'marked';
|
|
5
|
+
import { markedSmartypants } from 'marked-smartypants';
|
|
6
|
+
import { useDocsData, useDocsVersion } from '@docusaurus/plugin-content-docs/client';
|
|
7
|
+
import CodeBlock from '@theme/CodeBlock';
|
|
8
|
+
import MDX from '@theme/MDXComponents';
|
|
9
|
+
import { useReflectionMap } from '../hooks/useReflectionMap';
|
|
10
|
+
import { replaceLinkTokens } from '../utils/markdown';
|
|
26
11
|
const ADMONITION_START = /^:{3}([a-z]+)? *(.*)\n/;
|
|
27
12
|
const ADMONITION_END = '\n:::';
|
|
28
|
-
marked.
|
|
29
|
-
|
|
13
|
+
marked.setOptions({
|
|
14
|
+
gfm: true,
|
|
30
15
|
});
|
|
31
|
-
marked.
|
|
32
|
-
marked.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
16
|
+
marked.use(markedSmartypants());
|
|
17
|
+
marked.use({
|
|
18
|
+
extensions: [
|
|
19
|
+
{
|
|
20
|
+
name: 'admonition',
|
|
21
|
+
level: 'block',
|
|
22
|
+
start(src) {
|
|
23
|
+
var _a;
|
|
24
|
+
return (_a = src.match(ADMONITION_START)) === null || _a === void 0 ? void 0 : _a.index;
|
|
25
|
+
},
|
|
26
|
+
tokenizer(src, tokens) {
|
|
27
|
+
var _a;
|
|
28
|
+
const match = ADMONITION_START.exec(src);
|
|
29
|
+
if (match) {
|
|
30
|
+
const keyword = (_a = match[1]) !== null && _a !== void 0 ? _a : 'info';
|
|
31
|
+
const title = match[2] ? match[2].trim() : undefined;
|
|
32
|
+
const startIndex = match.index;
|
|
33
|
+
const startEndIndex = startIndex + match[0].length;
|
|
34
|
+
const endIndex = src.indexOf(ADMONITION_END, startEndIndex);
|
|
35
|
+
const endEndIndex = endIndex + 4;
|
|
36
|
+
const token = {
|
|
37
|
+
type: 'admonition',
|
|
38
|
+
raw: src.slice(startIndex, endEndIndex),
|
|
39
|
+
text: src.slice(startEndIndex, endIndex),
|
|
40
|
+
title,
|
|
41
|
+
keyword,
|
|
42
|
+
tokens: [],
|
|
43
|
+
};
|
|
44
|
+
this.lexer.blockTokens(token.text, token.tokens);
|
|
45
|
+
return token;
|
|
46
|
+
}
|
|
47
|
+
return undefined;
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
],
|
|
62
51
|
});
|
|
63
52
|
const TOKEN_TO_TAG = {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
tablecell: 'td',
|
|
80
|
-
tablerow: 'tr'
|
|
53
|
+
blockquote: 'blockquote',
|
|
54
|
+
br: 'br',
|
|
55
|
+
code: 'pre',
|
|
56
|
+
codespan: 'code',
|
|
57
|
+
def: 'span', // ???
|
|
58
|
+
del: 'del',
|
|
59
|
+
em: 'em',
|
|
60
|
+
escape: 'span', // ???
|
|
61
|
+
hr: 'hr',
|
|
62
|
+
html: 'div',
|
|
63
|
+
paragraph: 'p',
|
|
64
|
+
strong: 'strong',
|
|
65
|
+
table: 'table',
|
|
66
|
+
tablecell: 'td',
|
|
67
|
+
tablerow: 'tr',
|
|
81
68
|
};
|
|
82
69
|
function convertAstToElements(ast) {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
case 'space':
|
|
146
|
-
elements.push(token.raw || ' ');
|
|
147
|
-
break;
|
|
148
|
-
case 'table':
|
|
149
|
-
elements.push( /*#__PURE__*/jsxRuntime.jsxs("table", {
|
|
150
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("thead", {
|
|
151
|
-
children: /*#__PURE__*/jsxRuntime.jsx("tr", {
|
|
152
|
-
children: token.header.map((h, i) => /*#__PURE__*/jsxRuntime.jsx("th", {
|
|
153
|
-
align: token.align[i] ?? 'left',
|
|
154
|
-
children: convertAstToElements(h.tokens)
|
|
155
|
-
}, i))
|
|
156
|
-
})
|
|
157
|
-
}), /*#__PURE__*/jsxRuntime.jsx("tbody", {
|
|
158
|
-
children: token.rows.map((cells, i) => /*#__PURE__*/jsxRuntime.jsx("tr", {
|
|
159
|
-
children: cells.map((c, i2) => /*#__PURE__*/jsxRuntime.jsx("td", {
|
|
160
|
-
align: token.align[i] ?? 'left',
|
|
161
|
-
children: convertAstToElements(c.tokens)
|
|
162
|
-
}, i2))
|
|
163
|
-
}, i))
|
|
164
|
-
})]
|
|
165
|
-
}, counter));
|
|
166
|
-
break;
|
|
167
|
-
case 'text':
|
|
168
|
-
elements.push(children.length === 0 ? token.text : /*#__PURE__*/jsxRuntime.jsx(react.Fragment, {
|
|
169
|
-
children: convertAstToElements(children)
|
|
170
|
-
}, counter));
|
|
171
|
-
break;
|
|
172
|
-
case 'admonition':
|
|
173
|
-
elements.push( /*#__PURE__*/jsxRuntime.jsx(MDX__default.default.admonition, {
|
|
174
|
-
title: token.title,
|
|
175
|
-
type: token.keyword,
|
|
176
|
-
children: convertAstToElements(children) ?? token.text
|
|
177
|
-
}, counter));
|
|
178
|
-
break;
|
|
179
|
-
default:
|
|
180
|
-
{
|
|
181
|
-
const Comp = TOKEN_TO_TAG[token.type] || token.type;
|
|
182
|
-
const innerText = 'text' in token ? token.text : '';
|
|
183
|
-
elements.push( /*#__PURE__*/jsxRuntime.jsx(Comp, {
|
|
184
|
-
children: convertAstToElements(children) ?? innerText
|
|
185
|
-
}, counter));
|
|
186
|
-
break;
|
|
70
|
+
const elements = [];
|
|
71
|
+
let counter = 0;
|
|
72
|
+
ast.forEach((token) => {
|
|
73
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
74
|
+
// Nested tokens aren't typed for some reason...
|
|
75
|
+
const children = (_a = token.tokens) !== null && _a !== void 0 ? _a : [];
|
|
76
|
+
switch (token.type) {
|
|
77
|
+
case 'code':
|
|
78
|
+
elements.push(
|
|
79
|
+
/* <MDX.pre key={counter} className={token.lang && `language-${token.lang}`}>
|
|
80
|
+
{token.text}
|
|
81
|
+
</MDX.pre>, */
|
|
82
|
+
_jsx(CodeBlock, { language: token.lang, children: token.text }, counter));
|
|
83
|
+
break;
|
|
84
|
+
case 'codespan':
|
|
85
|
+
// Non-raw is escaped and doesn't work with JSX, so use the raw value
|
|
86
|
+
// but remove the wrapping backticks!
|
|
87
|
+
elements.push(_jsx(MDX.code, { children: token.raw.slice(1, -1) }, counter));
|
|
88
|
+
break;
|
|
89
|
+
case 'heading': {
|
|
90
|
+
const Comp = MDX[`h${token.depth}`];
|
|
91
|
+
elements.push(_jsx(Comp, { children: (_b = convertAstToElements(children)) !== null && _b !== void 0 ? _b : token.text }, counter));
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
case 'image':
|
|
95
|
+
elements.push(_jsx(MDX.img, { alt: (_c = token.title) !== null && _c !== void 0 ? _c : '', src: token.href }, counter));
|
|
96
|
+
break;
|
|
97
|
+
case 'link':
|
|
98
|
+
elements.push(_jsx(MDX.a, { href: token.href, title: (_d = token.title) !== null && _d !== void 0 ? _d : '', children: (_e = convertAstToElements(children)) !== null && _e !== void 0 ? _e : token.text }, counter));
|
|
99
|
+
break;
|
|
100
|
+
case 'list': {
|
|
101
|
+
const Comp = token.ordered ? 'ol' : 'ul';
|
|
102
|
+
elements.push(_jsx(Comp, { children: convertAstToElements((_f = token.items) !== null && _f !== void 0 ? _f : children) }, counter));
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
case 'list_item':
|
|
106
|
+
elements.push(_jsxs("li", { children: [token.task && (_jsxs(_Fragment, { children: [_jsx("input", { checked: token.checked, type: "checkbox" }), ' '] })), (_g = convertAstToElements(children)) !== null && _g !== void 0 ? _g : token.text] }, counter));
|
|
107
|
+
break;
|
|
108
|
+
case 'space':
|
|
109
|
+
elements.push(token.raw || ' ');
|
|
110
|
+
break;
|
|
111
|
+
case 'table':
|
|
112
|
+
elements.push(_jsxs("table", { children: [_jsx("thead", { children: _jsx("tr", { children: token.header.map((h, i) => {
|
|
113
|
+
var _a;
|
|
114
|
+
return (_jsx("th", { align: (_a = token.align[i]) !== null && _a !== void 0 ? _a : 'left', children: convertAstToElements(h.tokens) }, i));
|
|
115
|
+
}) }) }), _jsx("tbody", { children: token.rows.map((cells, i) => (_jsx("tr", { children: cells.map((c, i2) => {
|
|
116
|
+
var _a;
|
|
117
|
+
return (_jsx("td", { align: (_a = token.align[i]) !== null && _a !== void 0 ? _a : 'left', children: convertAstToElements(c.tokens) }, i2));
|
|
118
|
+
}) }, i))) })] }, counter));
|
|
119
|
+
break;
|
|
120
|
+
case 'text':
|
|
121
|
+
elements.push(children.length === 0 ? (token.text) : (_jsx(Fragment, { children: convertAstToElements(children) }, counter)));
|
|
122
|
+
break;
|
|
123
|
+
case 'admonition':
|
|
124
|
+
elements.push(_jsx(MDX.admonition, { title: token.title, type: token.keyword, children: (_h = convertAstToElements(children)) !== null && _h !== void 0 ? _h : token.text }, counter));
|
|
125
|
+
break;
|
|
126
|
+
default: {
|
|
127
|
+
const Comp = (TOKEN_TO_TAG[token.type] || token.type);
|
|
128
|
+
const innerText = 'text' in token ? token.text : '';
|
|
129
|
+
elements.push(_jsx(Comp, { children: (_j = convertAstToElements(children)) !== null && _j !== void 0 ? _j : innerText }, counter));
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
187
132
|
}
|
|
133
|
+
counter += 1;
|
|
134
|
+
});
|
|
135
|
+
if (elements.length === 0) {
|
|
136
|
+
return undefined;
|
|
188
137
|
}
|
|
189
|
-
|
|
190
|
-
});
|
|
191
|
-
if (elements.length === 0) {
|
|
192
|
-
return undefined;
|
|
193
|
-
}
|
|
194
|
-
return elements;
|
|
138
|
+
return elements;
|
|
195
139
|
}
|
|
196
140
|
// Too bad we cant use `@mdx-js` here...
|
|
197
|
-
function Markdown({
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
ast
|
|
206
|
-
if (!content) {
|
|
207
|
-
return null;
|
|
208
|
-
}
|
|
209
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
210
|
-
className: "tsd-markdown markdown",
|
|
211
|
-
children: convertAstToElements(ast)
|
|
212
|
-
});
|
|
141
|
+
export function Markdown({ content }) {
|
|
142
|
+
const reflections = useReflectionMap();
|
|
143
|
+
const version = useDocsVersion();
|
|
144
|
+
const docsData = useDocsData(version.pluginId);
|
|
145
|
+
const [ast] = useState(() => marked.lexer(replaceLinkTokens(content, reflections, version, docsData.path)));
|
|
146
|
+
if (!content) {
|
|
147
|
+
return null;
|
|
148
|
+
}
|
|
149
|
+
return _jsx("div", { className: "tsd-markdown markdown", children: convertAstToElements(ast) });
|
|
213
150
|
}
|
|
214
|
-
|
|
215
|
-
//# sourceMappingURL=Markdown.js.map
|
|
151
|
+
//# sourceMappingURL=Markdown.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Markdown.js","sources":["../../src/components/Markdown.tsx"],"
|
|
1
|
+
{"version":3,"file":"Markdown.js","sourceRoot":"","sources":["../../src/components/Markdown.tsx"],"names":[],"mappings":";AAAA,6CAA6C;AAE7C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAe,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACrF,OAAO,SAAS,MAAM,kBAAkB,CAAC;AACzC,OAAO,GAAG,MAAM,sBAAsB,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAoCtD,MAAM,gBAAgB,GAAG,wBAAwB,CAAC;AAClD,MAAM,cAAc,GAAG,OAAO,CAAC;AAE/B,MAAM,CAAC,UAAU,CAAC;IACjB,GAAG,EAAE,IAAI;CACT,CAAC,CAAC;AACH,MAAM,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC,CAAC;AAChC,MAAM,CAAC,GAAG,CAAC;IACV,UAAU,EAAE;QACX;YACC,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE,OAAO;YACd,KAAK,CAAC,GAAG;;gBACR,OAAO,MAAA,GAAG,CAAC,KAAK,CAAC,gBAAgB,CAAC,0CAAE,KAAK,CAAC;YAC3C,CAAC;YACD,SAAS,CAAC,GAAG,EAAE,MAAM;;gBACpB,MAAM,KAAK,GAAG,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBAEzC,IAAI,KAAK,EAAE,CAAC;oBACX,MAAM,OAAO,GAAG,MAAA,KAAK,CAAC,CAAC,CAAC,mCAAI,MAAM,CAAC;oBACnC,MAAM,KAA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