@zudojs/docs 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +38 -0
  3. package/dist/docsTypes/documentationContent.d.ts +80 -0
  4. package/dist/docsTypes/documentationContent.d.ts.map +1 -0
  5. package/dist/docsTypes/documentationContent.js +8 -0
  6. package/dist/docsTypes/documentationContent.js.map +1 -0
  7. package/dist/docsTypes/documentationDocument.d.ts +29 -0
  8. package/dist/docsTypes/documentationDocument.d.ts.map +1 -0
  9. package/dist/docsTypes/documentationDocument.js +8 -0
  10. package/dist/docsTypes/documentationDocument.js.map +1 -0
  11. package/dist/docsTypes/documentationMetadata.d.ts +60 -0
  12. package/dist/docsTypes/documentationMetadata.d.ts.map +1 -0
  13. package/dist/docsTypes/documentationMetadata.js +5 -0
  14. package/dist/docsTypes/documentationMetadata.js.map +1 -0
  15. package/dist/docsTypes/documentationNavigation.d.ts +34 -0
  16. package/dist/docsTypes/documentationNavigation.d.ts.map +1 -0
  17. package/dist/docsTypes/documentationNavigation.js +8 -0
  18. package/dist/docsTypes/documentationNavigation.js.map +1 -0
  19. package/dist/docsTypes/documentationProvider.d.ts +21 -0
  20. package/dist/docsTypes/documentationProvider.d.ts.map +1 -0
  21. package/dist/docsTypes/documentationProvider.js +8 -0
  22. package/dist/docsTypes/documentationProvider.js.map +1 -0
  23. package/dist/docsTypes/index.d.ts +11 -0
  24. package/dist/docsTypes/index.d.ts.map +1 -0
  25. package/dist/docsTypes/index.js +7 -0
  26. package/dist/docsTypes/index.js.map +1 -0
  27. package/dist/document/documentBuilder.core.d.ts +50 -0
  28. package/dist/document/documentBuilder.core.d.ts.map +1 -0
  29. package/dist/document/documentBuilder.core.js +78 -0
  30. package/dist/document/documentBuilder.core.js.map +1 -0
  31. package/dist/document/index.d.ts +8 -0
  32. package/dist/document/index.d.ts.map +1 -0
  33. package/dist/document/index.js +7 -0
  34. package/dist/document/index.js.map +1 -0
  35. package/dist/examples/examples.core.d.ts +38 -0
  36. package/dist/examples/examples.core.d.ts.map +1 -0
  37. package/dist/examples/examples.core.js +56 -0
  38. package/dist/examples/examples.core.js.map +1 -0
  39. package/dist/examples/index.d.ts +8 -0
  40. package/dist/examples/index.d.ts.map +1 -0
  41. package/dist/examples/index.js +7 -0
  42. package/dist/examples/index.js.map +1 -0
  43. package/dist/frontmatter/frontmatter.core.d.ts +7 -0
  44. package/dist/frontmatter/frontmatter.core.d.ts.map +1 -0
  45. package/dist/frontmatter/frontmatter.core.js +6 -0
  46. package/dist/frontmatter/frontmatter.core.js.map +1 -0
  47. package/dist/frontmatter/frontmatter.parser.d.ts +15 -0
  48. package/dist/frontmatter/frontmatter.parser.d.ts.map +1 -0
  49. package/dist/frontmatter/frontmatter.parser.js +82 -0
  50. package/dist/frontmatter/frontmatter.parser.js.map +1 -0
  51. package/dist/frontmatter/frontmatter.serializer.d.ts +9 -0
  52. package/dist/frontmatter/frontmatter.serializer.d.ts.map +1 -0
  53. package/dist/frontmatter/frontmatter.serializer.js +31 -0
  54. package/dist/frontmatter/frontmatter.serializer.js.map +1 -0
  55. package/dist/frontmatter/frontmatter.types.d.ts +26 -0
  56. package/dist/frontmatter/frontmatter.types.d.ts.map +1 -0
  57. package/dist/frontmatter/frontmatter.types.js +5 -0
  58. package/dist/frontmatter/frontmatter.types.js.map +1 -0
  59. package/dist/frontmatter/index.d.ts +8 -0
  60. package/dist/frontmatter/index.d.ts.map +1 -0
  61. package/dist/frontmatter/index.js +7 -0
  62. package/dist/frontmatter/index.js.map +1 -0
  63. package/dist/generator/generator.types.d.ts +11 -0
  64. package/dist/generator/generator.types.d.ts.map +1 -0
  65. package/dist/generator/generator.types.js +5 -0
  66. package/dist/generator/generator.types.js.map +1 -0
  67. package/dist/generator/generatorJson.core.d.ts +13 -0
  68. package/dist/generator/generatorJson.core.d.ts.map +1 -0
  69. package/dist/generator/generatorJson.core.js +36 -0
  70. package/dist/generator/generatorJson.core.js.map +1 -0
  71. package/dist/generator/generatorMarkdown.core.d.ts +10 -0
  72. package/dist/generator/generatorMarkdown.core.d.ts.map +1 -0
  73. package/dist/generator/generatorMarkdown.core.js +72 -0
  74. package/dist/generator/generatorMarkdown.core.js.map +1 -0
  75. package/dist/generator/generatorMarkdownNodes.d.ts +9 -0
  76. package/dist/generator/generatorMarkdownNodes.d.ts.map +1 -0
  77. package/dist/generator/generatorMarkdownNodes.js +64 -0
  78. package/dist/generator/generatorMarkdownNodes.js.map +1 -0
  79. package/dist/generator/index.d.ts +10 -0
  80. package/dist/generator/index.d.ts.map +1 -0
  81. package/dist/generator/index.js +9 -0
  82. package/dist/generator/index.js.map +1 -0
  83. package/dist/index.d.ts +19 -0
  84. package/dist/index.d.ts.map +1 -0
  85. package/dist/index.js +28 -0
  86. package/dist/index.js.map +1 -0
  87. package/dist/navigation/index.d.ts +7 -0
  88. package/dist/navigation/index.d.ts.map +1 -0
  89. package/dist/navigation/index.js +7 -0
  90. package/dist/navigation/index.js.map +1 -0
  91. package/dist/navigation/navigation.core.d.ts +25 -0
  92. package/dist/navigation/navigation.core.d.ts.map +1 -0
  93. package/dist/navigation/navigation.core.js +85 -0
  94. package/dist/navigation/navigation.core.js.map +1 -0
  95. package/dist/registry/index.d.ts +7 -0
  96. package/dist/registry/index.d.ts.map +1 -0
  97. package/dist/registry/index.js +7 -0
  98. package/dist/registry/index.js.map +1 -0
  99. package/dist/registry/registry.core.d.ts +62 -0
  100. package/dist/registry/registry.core.d.ts.map +1 -0
  101. package/dist/registry/registry.core.js +90 -0
  102. package/dist/registry/registry.core.js.map +1 -0
  103. package/dist/utils/index.d.ts +7 -0
  104. package/dist/utils/index.d.ts.map +1 -0
  105. package/dist/utils/index.js +7 -0
  106. package/dist/utils/index.js.map +1 -0
  107. package/dist/utils/utils.helper.d.ts +34 -0
  108. package/dist/utils/utils.helper.d.ts.map +1 -0
  109. package/dist/utils/utils.helper.js +82 -0
  110. package/dist/utils/utils.helper.js.map +1 -0
  111. package/dist/validator/index.d.ts +11 -0
  112. package/dist/validator/index.d.ts.map +1 -0
  113. package/dist/validator/index.js +10 -0
  114. package/dist/validator/index.js.map +1 -0
  115. package/dist/validator/validator.types.d.ts +20 -0
  116. package/dist/validator/validator.types.d.ts.map +1 -0
  117. package/dist/validator/validator.types.js +5 -0
  118. package/dist/validator/validator.types.js.map +1 -0
  119. package/dist/validator/validatorAll/index.d.ts +8 -0
  120. package/dist/validator/validatorAll/index.d.ts.map +1 -0
  121. package/dist/validator/validatorAll/index.js +8 -0
  122. package/dist/validator/validatorAll/index.js.map +1 -0
  123. package/dist/validator/validatorAll/validatorAll.core.d.ts +10 -0
  124. package/dist/validator/validatorAll/validatorAll.core.d.ts.map +1 -0
  125. package/dist/validator/validatorAll/validatorAll.core.js +31 -0
  126. package/dist/validator/validatorAll/validatorAll.core.js.map +1 -0
  127. package/dist/validator/validatorAll/validatorNavigation.core.d.ts +10 -0
  128. package/dist/validator/validatorAll/validatorNavigation.core.d.ts.map +1 -0
  129. package/dist/validator/validatorAll/validatorNavigation.core.js +29 -0
  130. package/dist/validator/validatorAll/validatorNavigation.core.js.map +1 -0
  131. package/dist/validator/validatorDocument.core.d.ts +10 -0
  132. package/dist/validator/validatorDocument.core.d.ts.map +1 -0
  133. package/dist/validator/validatorDocument.core.js +45 -0
  134. package/dist/validator/validatorDocument.core.js.map +1 -0
  135. package/dist/validator/validatorDuplicates.core.d.ts +10 -0
  136. package/dist/validator/validatorDuplicates.core.d.ts.map +1 -0
  137. package/dist/validator/validatorDuplicates.core.js +28 -0
  138. package/dist/validator/validatorDuplicates.core.js.map +1 -0
  139. package/dist/validator/validatorLinks.core.d.ts +10 -0
  140. package/dist/validator/validatorLinks.core.d.ts.map +1 -0
  141. package/dist/validator/validatorLinks.core.js +56 -0
  142. package/dist/validator/validatorLinks.core.js.map +1 -0
  143. package/package.json +49 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generator/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @zudojs/docs
3
+ *
4
+ * Documentation infrastructure for the Zudojs framework.
5
+ *
6
+ * Provides a structured document model, registry, validation,
7
+ * navigation, examples, frontmatter parsing, and output generation
8
+ * for building and maintaining documentation.
9
+ */
10
+ export * from "./docsTypes/index.js";
11
+ export * from "./document/index.js";
12
+ export * from "./frontmatter/index.js";
13
+ export * from "./registry/index.js";
14
+ export * from "./validator/index.js";
15
+ export * from "./navigation/index.js";
16
+ export * from "./examples/index.js";
17
+ export * from "./generator/index.js";
18
+ export * from "./utils/index.js";
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,cAAc,sBAAsB,CAAC;AAGrC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,wBAAwB,CAAC;AAGvC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,sBAAsB,CAAC;AAGrC,cAAc,uBAAuB,CAAC;AAGtC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,sBAAsB,CAAC;AAGrC,cAAc,kBAAkB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @zudojs/docs
3
+ *
4
+ * Documentation infrastructure for the Zudojs framework.
5
+ *
6
+ * Provides a structured document model, registry, validation,
7
+ * navigation, examples, frontmatter parsing, and output generation
8
+ * for building and maintaining documentation.
9
+ */
10
+ // Types
11
+ export * from "./docsTypes/index.js";
12
+ // Document builder
13
+ export * from "./document/index.js";
14
+ // Frontmatter
15
+ export * from "./frontmatter/index.js";
16
+ // Registry
17
+ export * from "./registry/index.js";
18
+ // Validator
19
+ export * from "./validator/index.js";
20
+ // Navigation
21
+ export * from "./navigation/index.js";
22
+ // Examples
23
+ export * from "./examples/index.js";
24
+ // Generator
25
+ export * from "./generator/index.js";
26
+ // Utils
27
+ export * from "./utils/index.js";
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,QAAQ;AACR,cAAc,sBAAsB,CAAC;AAErC,mBAAmB;AACnB,cAAc,qBAAqB,CAAC;AAEpC,cAAc;AACd,cAAc,wBAAwB,CAAC;AAEvC,WAAW;AACX,cAAc,qBAAqB,CAAC;AAEpC,YAAY;AACZ,cAAc,sBAAsB,CAAC;AAErC,aAAa;AACb,cAAc,uBAAuB,CAAC;AAEtC,WAAW;AACX,cAAc,qBAAqB,CAAC;AAEpC,YAAY;AACZ,cAAc,sBAAsB,CAAC;AAErC,QAAQ;AACR,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @zudojs/docs/navigation
3
+ *
4
+ * Navigation tree utilities — breadcrumbs, flattening, sibling resolution.
5
+ */
6
+ export { getBreadcrumbs, flattenNavigation, findNavigationItem, getSiblings, } from "./navigation.core.js";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/navigation/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,WAAW,GACZ,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @zudojs/docs/navigation
3
+ *
4
+ * Navigation tree utilities — breadcrumbs, flattening, sibling resolution.
5
+ */
6
+ export { getBreadcrumbs, flattenNavigation, findNavigationItem, getSiblings, } from "./navigation.core.js";
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/navigation/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,WAAW,GACZ,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Navigation model for documentation.
3
+ *
4
+ * Provides breadcrumb generation, tree flattening, and
5
+ * link resolution for documentation navigation structures.
6
+ */
7
+ import type { DocumentationBreadcrumb, DocumentationNavigationItem } from "../docsTypes/index.js";
8
+ /**
9
+ * Generates breadcrumbs for a given document ID
10
+ * by walking the navigation tree.
11
+ */
12
+ export declare function getBreadcrumbs(documentId: string, items: readonly DocumentationNavigationItem[]): readonly DocumentationBreadcrumb[];
13
+ /**
14
+ * Flattens a navigation tree into a list of all document IDs in order.
15
+ */
16
+ export declare function flattenNavigation(items: readonly DocumentationNavigationItem[]): readonly string[];
17
+ /**
18
+ * Finds a navigation item by document ID.
19
+ */
20
+ export declare function findNavigationItem(documentId: string, items: readonly DocumentationNavigationItem[]): DocumentationNavigationItem | undefined;
21
+ /**
22
+ * Gets sibling document IDs for a given document.
23
+ */
24
+ export declare function getSiblings(documentId: string, items: readonly DocumentationNavigationItem[]): readonly string[];
25
+ //# sourceMappingURL=navigation.core.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation.core.d.ts","sourceRoot":"","sources":["../../src/navigation/navigation.core.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,2BAA2B,EAC5B,MAAM,uBAAuB,CAAC;AAE/B;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,SAAS,2BAA2B,EAAE,GAC5C,SAAS,uBAAuB,EAAE,CAwBpC;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,SAAS,2BAA2B,EAAE,GAC5C,SAAS,MAAM,EAAE,CAiBnB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,SAAS,2BAA2B,EAAE,GAC5C,2BAA2B,GAAG,SAAS,CAazC;AAED;;GAEG;AACH,wBAAgB,WAAW,CACzB,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,SAAS,2BAA2B,EAAE,GAC5C,SAAS,MAAM,EAAE,CAmBnB"}
@@ -0,0 +1,85 @@
1
+ /**
2
+ * Navigation model for documentation.
3
+ *
4
+ * Provides breadcrumb generation, tree flattening, and
5
+ * link resolution for documentation navigation structures.
6
+ */
7
+ /**
8
+ * Generates breadcrumbs for a given document ID
9
+ * by walking the navigation tree.
10
+ */
11
+ export function getBreadcrumbs(documentId, items) {
12
+ const path = [];
13
+ function walk(nodes) {
14
+ for (const node of nodes) {
15
+ if (node.documentId === documentId) {
16
+ path.push({ title: node.title, documentId: node.documentId });
17
+ return true;
18
+ }
19
+ if (node.children) {
20
+ path.push({ title: node.title });
21
+ if (walk(node.children)) {
22
+ return true;
23
+ }
24
+ path.pop();
25
+ }
26
+ }
27
+ return false;
28
+ }
29
+ walk(items);
30
+ return Object.freeze(path);
31
+ }
32
+ /**
33
+ * Flattens a navigation tree into a list of all document IDs in order.
34
+ */
35
+ export function flattenNavigation(items) {
36
+ const result = [];
37
+ function walk(nodes) {
38
+ for (const node of nodes) {
39
+ if (node.documentId) {
40
+ result.push(node.documentId);
41
+ }
42
+ if (node.children) {
43
+ walk(node.children);
44
+ }
45
+ }
46
+ }
47
+ walk(items);
48
+ return Object.freeze(result);
49
+ }
50
+ /**
51
+ * Finds a navigation item by document ID.
52
+ */
53
+ export function findNavigationItem(documentId, items) {
54
+ for (const node of items) {
55
+ if (node.documentId === documentId) {
56
+ return node;
57
+ }
58
+ if (node.children) {
59
+ const found = findNavigationItem(documentId, node.children);
60
+ if (found)
61
+ return found;
62
+ }
63
+ }
64
+ return undefined;
65
+ }
66
+ /**
67
+ * Gets sibling document IDs for a given document.
68
+ */
69
+ export function getSiblings(documentId, items) {
70
+ function walk(nodes) {
71
+ for (const node of nodes) {
72
+ if (node.documentId === documentId) {
73
+ return nodes.filter((n) => n.documentId).map((n) => n.documentId);
74
+ }
75
+ if (node.children) {
76
+ const result = walk(node.children);
77
+ if (result)
78
+ return result;
79
+ }
80
+ }
81
+ return undefined;
82
+ }
83
+ return Object.freeze(walk(items) ?? []);
84
+ }
85
+ //# sourceMappingURL=navigation.core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation.core.js","sourceRoot":"","sources":["../../src/navigation/navigation.core.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH;;;GAGG;AACH,MAAM,UAAU,cAAc,CAC5B,UAAkB,EAClB,KAA6C;IAE7C,MAAM,IAAI,GAA8B,EAAE,CAAC;IAE3C,SAAS,IAAI,CAAC,KAA6C;QACzD,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,IAAI,IAAI,CAAC,UAAU,KAAK,UAAU,EAAE,CAAC;gBACnC,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;gBAC9D,OAAO,IAAI,CAAC;YACd,CAAC;YAED,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAClB,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;gBACjC,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;oBACxB,OAAO,IAAI,CAAC;gBACd,CAAC;gBACD,IAAI,CAAC,GAAG,EAAE,CAAC;YACb,CAAC;QACH,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,CAAC,KAAK,CAAC,CAAC;IACZ,OAAO,MAA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AC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAW,CAAC,CAAC;YACrE,CAAC;YAED,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAClB,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBACnC,IAAI,MAAM;oBAAE,OAAO,MAAM,CAAC;YAC5B,CAAC;QACH,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;AAC1C,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @zudojs/docs/registry
3
+ *
4
+ * Document registry for storing, retrieving, and filtering documentation.
5
+ */
6
+ export { DocumentRegistry, createDocumentRegistry } from "./registry.core.js";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/registry/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @zudojs/docs/registry
3
+ *
4
+ * Document registry for storing, retrieving, and filtering documentation.
5
+ */
6
+ export { DocumentRegistry, createDocumentRegistry } from "./registry.core.js";
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/registry/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Document registry with O(1) lookup by ID.
3
+ *
4
+ * Provides registration, retrieval, and iteration over
5
+ * documentation documents. Prevents duplicate IDs.
6
+ */
7
+ import type { DocumentationDocument, DocumentationProvider } from "../docsTypes/index.js";
8
+ /**
9
+ * Registry for managing documentation documents.
10
+ */
11
+ export declare class DocumentRegistry implements DocumentationProvider {
12
+ private readonly documents;
13
+ /**
14
+ * Registers a document. Throws if the ID is already registered.
15
+ */
16
+ register(document: DocumentationDocument): void;
17
+ /**
18
+ * Registers multiple documents.
19
+ */
20
+ registerAll(documents: readonly DocumentationDocument[]): void;
21
+ /**
22
+ * Retrieves a document by ID. Returns undefined if not found.
23
+ */
24
+ get(id: string): DocumentationDocument | undefined;
25
+ /**
26
+ * Returns all registered documents.
27
+ */
28
+ getAll(): readonly DocumentationDocument[];
29
+ /**
30
+ * Returns the number of registered documents.
31
+ */
32
+ get size(): number;
33
+ /**
34
+ * Checks if a document ID is registered.
35
+ */
36
+ has(id: string): boolean;
37
+ /**
38
+ * Removes a document by ID. Returns true if it existed.
39
+ */
40
+ delete(id: string): boolean;
41
+ /**
42
+ * Clears all registered documents.
43
+ */
44
+ clear(): void;
45
+ /**
46
+ * Returns all document IDs.
47
+ */
48
+ ids(): readonly string[];
49
+ /**
50
+ * Filters documents by category.
51
+ */
52
+ byCategory(category: string): readonly DocumentationDocument[];
53
+ /**
54
+ * Filters documents by tag.
55
+ */
56
+ byTag(tag: string): readonly DocumentationDocument[];
57
+ }
58
+ /**
59
+ * Creates a new document registry.
60
+ */
61
+ export declare function createDocumentRegistry(): DocumentRegistry;
62
+ //# sourceMappingURL=registry.core.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.core.d.ts","sourceRoot":"","sources":["../../src/registry/registry.core.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,qBAAa,gBAAiB,YAAW,qBAAqB;IAC5D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA4C;IAEtE;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI;IAQ/C;;OAEG;IACH,WAAW,CAAC,SAAS,EAAE,SAAS,qBAAqB,EAAE,GAAG,IAAI;IAM9D;;OAEG;IACH,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,qBAAqB,GAAG,SAAS;IAIlD;;OAEG;IACH,MAAM,IAAI,SAAS,qBAAqB,EAAE;IAI1C;;OAEG;IACH,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;OAEG;IACH,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAIxB;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAI3B;;OAEG;IACH,KAAK,IAAI,IAAI;IAIb;;OAEG;IACH,GAAG,IAAI,SAAS,MAAM,EAAE;IAIxB;;OAEG;IACH,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,qBAAqB,EAAE;IAM9D;;OAEG;IACH,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,qBAAqB,EAAE;CAKrD;AAED;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,gBAAgB,CAEzD"}
@@ -0,0 +1,90 @@
1
+ /**
2
+ * Document registry with O(1) lookup by ID.
3
+ *
4
+ * Provides registration, retrieval, and iteration over
5
+ * documentation documents. Prevents duplicate IDs.
6
+ */
7
+ /**
8
+ * Registry for managing documentation documents.
9
+ */
10
+ export class DocumentRegistry {
11
+ documents = new Map();
12
+ /**
13
+ * Registers a document. Throws if the ID is already registered.
14
+ */
15
+ register(document) {
16
+ if (this.documents.has(document.id)) {
17
+ throw new Error(`Duplicate document ID: "${document.id}".`);
18
+ }
19
+ this.documents.set(document.id, Object.freeze(document));
20
+ }
21
+ /**
22
+ * Registers multiple documents.
23
+ */
24
+ registerAll(documents) {
25
+ for (const doc of documents) {
26
+ this.register(doc);
27
+ }
28
+ }
29
+ /**
30
+ * Retrieves a document by ID. Returns undefined if not found.
31
+ */
32
+ get(id) {
33
+ return this.documents.get(id);
34
+ }
35
+ /**
36
+ * Returns all registered documents.
37
+ */
38
+ getAll() {
39
+ return Object.freeze([...this.documents.values()]);
40
+ }
41
+ /**
42
+ * Returns the number of registered documents.
43
+ */
44
+ get size() {
45
+ return this.documents.size;
46
+ }
47
+ /**
48
+ * Checks if a document ID is registered.
49
+ */
50
+ has(id) {
51
+ return this.documents.has(id);
52
+ }
53
+ /**
54
+ * Removes a document by ID. Returns true if it existed.
55
+ */
56
+ delete(id) {
57
+ return this.documents.delete(id);
58
+ }
59
+ /**
60
+ * Clears all registered documents.
61
+ */
62
+ clear() {
63
+ this.documents.clear();
64
+ }
65
+ /**
66
+ * Returns all document IDs.
67
+ */
68
+ ids() {
69
+ return Object.freeze([...this.documents.keys()]);
70
+ }
71
+ /**
72
+ * Filters documents by category.
73
+ */
74
+ byCategory(category) {
75
+ return Object.freeze([...this.documents.values()].filter((doc) => doc.category === category));
76
+ }
77
+ /**
78
+ * Filters documents by tag.
79
+ */
80
+ byTag(tag) {
81
+ return Object.freeze([...this.documents.values()].filter((doc) => doc.tags?.includes(tag)));
82
+ }
83
+ }
84
+ /**
85
+ * Creates a new document registry.
86
+ */
87
+ export function createDocumentRegistry() {
88
+ return new DocumentRegistry();
89
+ }
90
+ //# sourceMappingURL=registry.core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.core.js","sourceRoot":"","sources":["../../src/registry/registry.core.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH;;GAEG;AACH,MAAM,OAAO,gBAAgB;IACV,SAAS,GAAG,IAAI,GAAG,EAAiC,CAAC;IAEtE;;OAEG;IACH,QAAQ,CAAC,QAA+B;QACtC,IAAI,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;YACpC,MAAM,IAAI,KAAK,CAAC,2BAA2B,QAAQ,CAAC,EAAE,IAAI,CAAC,CAAC;QAC9D,CAAC;QAED,IAAI,CAAC,S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AAC,QAAQ,KAAK,QAAQ,CAAC,CACxE,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,GAAW;QACf,OAAO,MAAM,CAAC,MAAM,CAClB,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CACtE,CAAC;IACJ,CAAC;CACF;AAED;;GAEG;AACH,MAAM,UAAU,sBAAsB;IACpC,OAAO,IAAI,gBAAgB,EAAE,CAAC;AAChC,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @zudojs/docs/utils
3
+ *
4
+ * Utility helpers for document ID normalization, link resolution, and markdown parsing.
5
+ */
6
+ export { normalizeDocumentId, documentIdFromPath, resolveDocumentLink, extractTitleFromMarkdown, extractHeadings, stripMarkdown, } from "./utils.helper.js";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,wBAAwB,EACxB,eAAe,EACf,aAAa,GACd,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @zudojs/docs/utils
3
+ *
4
+ * Utility helpers for document ID normalization, link resolution, and markdown parsing.
5
+ */
6
+ export { normalizeDocumentId, documentIdFromPath, resolveDocumentLink, extractTitleFromMarkdown, extractHeadings, stripMarkdown, } from "./utils.helper.js";
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,wBAAwB,EACxB,eAAe,EACf,aAAa,GACd,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Utility helpers for the documentation package.
3
+ */
4
+ /**
5
+ * Normalizes a document ID to a consistent format.
6
+ * Strips leading/trailing dots, collapses consecutive dots.
7
+ */
8
+ export declare function normalizeDocumentId(id: string): string;
9
+ /**
10
+ * Generates a document ID from a file path.
11
+ * Converts path separators to dots and removes extension.
12
+ */
13
+ export declare function documentIdFromPath(path: string): string;
14
+ /**
15
+ * Resolves a relative document link against a base ID.
16
+ * "guides.http" + "./routing" → "guides.http.routing"
17
+ */
18
+ export declare function resolveDocumentLink(baseId: string, link: string): string;
19
+ /**
20
+ * Extracts the title from markdown content (first heading).
21
+ */
22
+ export declare function extractTitleFromMarkdown(markdown: string): string | undefined;
23
+ /**
24
+ * Extracts headings from markdown content.
25
+ */
26
+ export declare function extractHeadings(markdown: string): readonly {
27
+ level: number;
28
+ text: string;
29
+ }[];
30
+ /**
31
+ * Strips markdown formatting to plain text.
32
+ */
33
+ export declare function stripMarkdown(markdown: string): string;
34
+ //# sourceMappingURL=utils.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.helper.d.ts","sourceRoot":"","sources":["../../src/utils/utils.helper.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAKtD;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAIvD;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAmBxE;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAG7E;AAED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,GACf,SAAS;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EAAE,CAkB5C;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAUtD"}
@@ -0,0 +1,82 @@
1
+ /**
2
+ * Utility helpers for the documentation package.
3
+ */
4
+ /**
5
+ * Normalizes a document ID to a consistent format.
6
+ * Strips leading/trailing dots, collapses consecutive dots.
7
+ */
8
+ export function normalizeDocumentId(id) {
9
+ return id
10
+ .replace(/\.+/g, ".")
11
+ .replace(/^\.|\.$/g, "")
12
+ .trim();
13
+ }
14
+ /**
15
+ * Generates a document ID from a file path.
16
+ * Converts path separators to dots and removes extension.
17
+ */
18
+ export function documentIdFromPath(path) {
19
+ return normalizeDocumentId(path.replace(/\.[^.]+$/, "").replace(/[/\\]/g, "."));
20
+ }
21
+ /**
22
+ * Resolves a relative document link against a base ID.
23
+ * "guides.http" + "./routing" → "guides.http.routing"
24
+ */
25
+ export function resolveDocumentLink(baseId, link) {
26
+ if (link.startsWith("/")) {
27
+ return normalizeDocumentId(link.slice(1));
28
+ }
29
+ const baseParts = baseId.split(".");
30
+ baseParts.pop();
31
+ const linkParts = link.split("/");
32
+ for (const part of linkParts) {
33
+ if (part === "..") {
34
+ baseParts.pop();
35
+ }
36
+ else if (part !== "." && part !== "") {
37
+ baseParts.push(part);
38
+ }
39
+ }
40
+ return normalizeDocumentId(baseParts.join("."));
41
+ }
42
+ /**
43
+ * Extracts the title from markdown content (first heading).
44
+ */
45
+ export function extractTitleFromMarkdown(markdown) {
46
+ const match = markdown.match(/^# ([^\n]+)$/m);
47
+ return match?.[1]?.trim();
48
+ }
49
+ /**
50
+ * Extracts headings from markdown content.
51
+ */
52
+ export function extractHeadings(markdown) {
53
+ const results = [];
54
+ const pattern = /^(#{1,6}) ([^\n]+)$/gm;
55
+ let match;
56
+ while ((match = pattern.exec(markdown)) !== null) {
57
+ const hashes = match[1];
58
+ const headingText = match[2];
59
+ if (hashes && headingText) {
60
+ results.push({
61
+ level: hashes.length,
62
+ text: headingText.trim(),
63
+ });
64
+ }
65
+ }
66
+ return Object.freeze(results);
67
+ }
68
+ /**
69
+ * Strips markdown formatting to plain text.
70
+ */
71
+ export function stripMarkdown(markdown) {
72
+ return markdown
73
+ .replace(/^#{1,6}\s+/gm, "")
74
+ .replace(/\*\*([^*]+)\*\*/g, "$1")
75
+ .replace(/\*([^*]+)\*/g, "$1")
76
+ .replace(/`([^`]+)`/g, "$1")
77
+ .replace(/\[([^\]]+)\]\([^)]+\)/g, "$1")
78
+ .replace(/^\s*[-*+]\s+/gm, "")
79
+ .replace(/^\s*\d+\.\s+/gm, "")
80
+ .trim();
81
+ }
82
+ //# sourceMappingURL=utils.helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.helper.js","sourceRoot":"","sources":["../../src/utils/utils.helper.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAAC,EAAU;IAC5C,OAAO,EAAE;SACN,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;SACpB,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;SACvB,IAAI,EAAE,CAAC;AACZ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,OAAO,mBAAmB,CACxB,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CACpD,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAAC,MAAc,EAAE,IAAY;IAC9D,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACzB,OAAO,mBAAmB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5C,CAAC;IAED,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,GAA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ED,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAChC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,QAAgB;IAC5C,OAAO,QAAQ;SACZ,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC;SAC3B,OAAO,CAAC,kBAAkB,EAAE,IAAI,CAAC;SACjC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;SAC7B,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC;SAC3B,OAAO,CAAC,wBAAwB,EAAE,IAAI,CAAC;SACvC,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC;SAC7B,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC;SAC7B,IAAI,EAAE,CAAC;AACZ,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @zudojs/docs/validator
3
+ *
4
+ * Document validation for IDs, links, metadata, and navigation.
5
+ */
6
+ export { validateDocument } from "./validatorDocument.core.js";
7
+ export { validateNoDuplicateIds } from "./validatorDuplicates.core.js";
8
+ export { validateLinks } from "./validatorLinks.core.js";
9
+ export { validateAll, validateNavigation } from "./validatorAll/index.js";
10
+ export type { ValidationIssue, ValidationResult } from "./validator.types.js";
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/validator/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE1E,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @zudojs/docs/validator
3
+ *
4
+ * Document validation for IDs, links, metadata, and navigation.
5
+ */
6
+ export { validateDocument } from "./validatorDocument.core.js";
7
+ export { validateNoDuplicateIds } from "./validatorDuplicates.core.js";
8
+ export { validateLinks } from "./validatorLinks.core.js";
9
+ export { validateAll, validateNavigation } from "./validatorAll/index.js";
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/validator/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Type definitions for document validation.
3
+ */
4
+ /**
5
+ * A single validation issue found in documentation.
6
+ */
7
+ export interface ValidationIssue {
8
+ readonly severity: "error" | "warning";
9
+ readonly code: string;
10
+ readonly message: string;
11
+ readonly documentId?: string;
12
+ }
13
+ /**
14
+ * Result of validating documentation.
15
+ */
16
+ export interface ValidationResult {
17
+ readonly valid: boolean;
18
+ readonly issues: readonly ValidationIssue[];
19
+ }
20
+ //# sourceMappingURL=validator.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validator.types.d.ts","sourceRoot":"","sources":["../../src/validator/validator.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,SAAS,eAAe,EAAE,CAAC;CAC7C"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Type definitions for document validation.
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=validator.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validator.types.js","sourceRoot":"","sources":["../../src/validator/validator.types.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @zudojs/docs/validator/validatorAll
3
+ *
4
+ * Aggregate validators for complete documentation sets.
5
+ */
6
+ export { validateAll } from "./validatorAll.core.js";
7
+ export { validateNavigation } from "./validatorNavigation.core.js";
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/validator/validatorAll/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @zudojs/docs/validator/validatorAll
3
+ *
4
+ * Aggregate validators for complete documentation sets.
5
+ */
6
+ export { validateAll } from "./validatorAll.core.js";
7
+ export { validateNavigation } from "./validatorNavigation.core.js";
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/validator/validatorAll/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC"}