@codeyam/codeyam-cli 0.1.0-staging.323686 → 0.1.0-staging.483fdc2

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 (171) hide show
  1. package/analyzer-template/.build-info.json +7 -7
  2. package/analyzer-template/log.txt +3 -3
  3. package/analyzer-template/package.json +2 -2
  4. package/analyzer-template/packages/ai/index.ts +6 -1
  5. package/analyzer-template/packages/ai/src/lib/analyzeScope.ts +39 -17
  6. package/analyzer-template/packages/ai/src/lib/astScopes/astScopeAnalyzer.ts +67 -9
  7. package/analyzer-template/packages/ai/src/lib/astScopes/processExpression.ts +308 -50
  8. package/analyzer-template/packages/ai/src/lib/astScopes/types.ts +15 -6
  9. package/analyzer-template/packages/ai/src/lib/dataStructure/ScopeDataStructure.ts +664 -242
  10. package/analyzer-template/packages/ai/src/lib/dataStructure/helpers/BatchSchemaProcessor.ts +16 -3
  11. package/analyzer-template/packages/ai/src/lib/dataStructure/helpers/ScopeTreeManager.ts +6 -4
  12. package/analyzer-template/packages/ai/src/lib/dataStructure/helpers/cleanKnownObjectFunctions.ts +20 -1
  13. package/analyzer-template/packages/ai/src/lib/dataStructure/helpers/cleanNonObjectFunctions.ts +35 -13
  14. package/analyzer-template/packages/ai/src/lib/dataStructure/helpers/convertTypeAnnotationsToValues.ts +160 -0
  15. package/analyzer-template/packages/ai/src/lib/dataStructure/helpers/deduplicateFunctionSchemas.ts +40 -30
  16. package/analyzer-template/packages/ai/src/lib/dataStructure/helpers/fillInSchemaGapsAndUnknowns.ts +289 -83
  17. package/analyzer-template/packages/ai/src/lib/generateEntityScenarioData.ts +269 -1
  18. package/analyzer-template/packages/ai/src/lib/generateEntityScenarios.ts +9 -5
  19. package/analyzer-template/packages/ai/src/lib/generateExecutionFlows.ts +11 -3
  20. package/analyzer-template/packages/ai/src/lib/generateExecutionFlowsFromConditionalEffects.ts +1 -1
  21. package/analyzer-template/packages/ai/src/lib/generateExecutionFlowsFromConditionals.ts +297 -7
  22. package/analyzer-template/packages/ai/src/lib/generateExecutionFlowsFromJsxUsages.ts +1 -1
  23. package/analyzer-template/packages/ai/src/lib/mergeStatements.ts +90 -96
  24. package/analyzer-template/packages/ai/src/lib/promptGenerators/gatherAttributesMap.ts +10 -7
  25. package/analyzer-template/packages/ai/src/lib/resolvePathToControllable.ts +25 -13
  26. package/analyzer-template/packages/ai/src/lib/worker/SerializableDataStructure.ts +4 -3
  27. package/analyzer-template/packages/analyze/src/lib/FileAnalyzer.ts +65 -59
  28. package/analyzer-template/packages/analyze/src/lib/ProjectAnalyzer.ts +113 -26
  29. package/analyzer-template/packages/analyze/src/lib/asts/sourceFiles/getAllDeclaredEntityNodes.ts +19 -0
  30. package/analyzer-template/packages/analyze/src/lib/asts/sourceFiles/getAllEntityNodes.ts +19 -0
  31. package/analyzer-template/packages/analyze/src/lib/asts/sourceFiles/getAllExports.ts +11 -0
  32. package/analyzer-template/packages/analyze/src/lib/asts/sourceFiles/getImportsAnalysis.ts +8 -0
  33. package/analyzer-template/packages/analyze/src/lib/asts/sourceFiles/getResolvedModule.ts +49 -1
  34. package/analyzer-template/packages/analyze/src/lib/asts/sourceFiles/getSourceFilesForAllImports.ts +2 -1
  35. package/analyzer-template/packages/analyze/src/lib/files/analyze/analyzeEntities/prepareDataStructures.ts +20 -6
  36. package/analyzer-template/packages/analyze/src/lib/files/analyze/analyzeEntities.ts +14 -4
  37. package/analyzer-template/packages/analyze/src/lib/files/analyze/gatherEntityMap.ts +4 -2
  38. package/analyzer-template/packages/analyze/src/lib/files/analyze/validateDependencyAnalyses.ts +0 -3
  39. package/analyzer-template/packages/analyze/src/lib/files/analyzeRemixRoute.ts +4 -5
  40. package/analyzer-template/packages/analyze/src/lib/files/getImportedExports.ts +14 -12
  41. package/analyzer-template/packages/analyze/src/lib/files/scenarios/enrichArrayTypesFromChildSignatures.ts +57 -13
  42. package/analyzer-template/packages/analyze/src/lib/files/scenarios/gatherDataForMocks.ts +29 -0
  43. package/analyzer-template/packages/analyze/src/lib/files/scenarios/generateDataStructure.ts +35 -4
  44. package/analyzer-template/packages/analyze/src/lib/files/scenarios/generateExecutionFlows.ts +117 -9
  45. package/analyzer-template/packages/analyze/src/lib/files/scenarios/mergeInDependentDataStructure.ts +199 -17
  46. package/analyzer-template/packages/analyze/src/lib/files/scenarios/propagateArrayItemSchemas.ts +474 -0
  47. package/analyzer-template/packages/analyze/src/lib/files/setImportedExports.ts +2 -1
  48. package/analyzer-template/packages/analyze/src/lib/utils/getFileByPath.ts +19 -0
  49. package/analyzer-template/packages/aws/package.json +1 -1
  50. package/analyzer-template/packages/github/dist/types/src/types/ScenariosDataStructure.d.ts +5 -5
  51. package/analyzer-template/packages/github/dist/types/src/types/ScenariosDataStructure.d.ts.map +1 -1
  52. package/analyzer-template/packages/github/dist/types/src/types/ScopeAnalysis.d.ts +6 -1
  53. package/analyzer-template/packages/github/dist/types/src/types/ScopeAnalysis.d.ts.map +1 -1
  54. package/analyzer-template/packages/github/package.json +1 -1
  55. package/analyzer-template/packages/types/src/types/ScenariosDataStructure.ts +6 -5
  56. package/analyzer-template/packages/types/src/types/ScopeAnalysis.ts +6 -1
  57. package/analyzer-template/packages/utils/dist/types/src/types/ScenariosDataStructure.d.ts +5 -5
  58. package/analyzer-template/packages/utils/dist/types/src/types/ScenariosDataStructure.d.ts.map +1 -1
  59. package/analyzer-template/packages/utils/dist/types/src/types/ScopeAnalysis.d.ts +6 -1
  60. package/analyzer-template/packages/utils/dist/types/src/types/ScopeAnalysis.d.ts.map +1 -1
  61. package/analyzer-template/project/constructMockCode.ts +54 -9
  62. package/analyzer-template/project/writeMockDataTsx.ts +73 -2
  63. package/background/src/lib/virtualized/project/constructMockCode.js +45 -3
  64. package/background/src/lib/virtualized/project/constructMockCode.js.map +1 -1
  65. package/background/src/lib/virtualized/project/writeMockDataTsx.js +71 -2
  66. package/background/src/lib/virtualized/project/writeMockDataTsx.js.map +1 -1
  67. package/codeyam-cli/scripts/apply-setup.js +146 -0
  68. package/codeyam-cli/scripts/apply-setup.js.map +1 -1
  69. package/codeyam-cli/src/commands/debug.js +7 -5
  70. package/codeyam-cli/src/commands/debug.js.map +1 -1
  71. package/codeyam-cli/src/utils/install-skills.js +22 -0
  72. package/codeyam-cli/src/utils/install-skills.js.map +1 -1
  73. package/codeyam-cli/src/utils/reviewedRules.js +92 -0
  74. package/codeyam-cli/src/utils/reviewedRules.js.map +1 -0
  75. package/codeyam-cli/src/webserver/build/client/assets/globals-CX9f-5xM.css +1 -0
  76. package/codeyam-cli/src/webserver/build/client/assets/{manifest-7522edd4.js → manifest-bba56ec1.js} +1 -1
  77. package/codeyam-cli/src/webserver/build/client/assets/memory-DuTFSyJ2.js +92 -0
  78. package/codeyam-cli/src/webserver/build/client/assets/{root-eVAaavTS.js → root-DTfSQARG.js} +6 -6
  79. package/codeyam-cli/src/webserver/build/server/assets/{index-DVzYx8PN.js → index-TD1f-DHV.js} +1 -1
  80. package/codeyam-cli/src/webserver/build/server/assets/server-build-BQ-1XyEa.js +258 -0
  81. package/codeyam-cli/src/webserver/build/server/index.js +1 -1
  82. package/codeyam-cli/src/webserver/build-info.json +5 -5
  83. package/codeyam-cli/templates/codeyam:memory.md +174 -233
  84. package/codeyam-cli/templates/codeyam:new-rule.md +41 -2
  85. package/codeyam-cli/templates/rule-reflection-hook.py +161 -0
  86. package/codeyam-cli/templates/rules-instructions.md +126 -0
  87. package/package.json +1 -1
  88. package/packages/ai/index.js +2 -1
  89. package/packages/ai/index.js.map +1 -1
  90. package/packages/ai/src/lib/analyzeScope.js +29 -12
  91. package/packages/ai/src/lib/analyzeScope.js.map +1 -1
  92. package/packages/ai/src/lib/astScopes/astScopeAnalyzer.js +54 -8
  93. package/packages/ai/src/lib/astScopes/astScopeAnalyzer.js.map +1 -1
  94. package/packages/ai/src/lib/astScopes/processExpression.js +239 -43
  95. package/packages/ai/src/lib/astScopes/processExpression.js.map +1 -1
  96. package/packages/ai/src/lib/dataStructure/ScopeDataStructure.js +503 -165
  97. package/packages/ai/src/lib/dataStructure/ScopeDataStructure.js.map +1 -1
  98. package/packages/ai/src/lib/dataStructure/helpers/BatchSchemaProcessor.js +13 -3
  99. package/packages/ai/src/lib/dataStructure/helpers/BatchSchemaProcessor.js.map +1 -1
  100. package/packages/ai/src/lib/dataStructure/helpers/ScopeTreeManager.js +6 -4
  101. package/packages/ai/src/lib/dataStructure/helpers/ScopeTreeManager.js.map +1 -1
  102. package/packages/ai/src/lib/dataStructure/helpers/cleanKnownObjectFunctions.js +22 -1
  103. package/packages/ai/src/lib/dataStructure/helpers/cleanKnownObjectFunctions.js.map +1 -1
  104. package/packages/ai/src/lib/dataStructure/helpers/cleanNonObjectFunctions.js +34 -9
  105. package/packages/ai/src/lib/dataStructure/helpers/cleanNonObjectFunctions.js.map +1 -1
  106. package/packages/ai/src/lib/dataStructure/helpers/convertTypeAnnotationsToValues.js +159 -0
  107. package/packages/ai/src/lib/dataStructure/helpers/convertTypeAnnotationsToValues.js.map +1 -0
  108. package/packages/ai/src/lib/dataStructure/helpers/deduplicateFunctionSchemas.js +37 -20
  109. package/packages/ai/src/lib/dataStructure/helpers/deduplicateFunctionSchemas.js.map +1 -1
  110. package/packages/ai/src/lib/dataStructure/helpers/fillInSchemaGapsAndUnknowns.js +237 -73
  111. package/packages/ai/src/lib/dataStructure/helpers/fillInSchemaGapsAndUnknowns.js.map +1 -1
  112. package/packages/ai/src/lib/generateEntityScenarioData.js +195 -1
  113. package/packages/ai/src/lib/generateEntityScenarioData.js.map +1 -1
  114. package/packages/ai/src/lib/generateEntityScenarios.js +7 -1
  115. package/packages/ai/src/lib/generateEntityScenarios.js.map +1 -1
  116. package/packages/ai/src/lib/generateExecutionFlows.js +10 -2
  117. package/packages/ai/src/lib/generateExecutionFlows.js.map +1 -1
  118. package/packages/ai/src/lib/generateExecutionFlowsFromConditionals.js +209 -3
  119. package/packages/ai/src/lib/generateExecutionFlowsFromConditionals.js.map +1 -1
  120. package/packages/ai/src/lib/mergeStatements.js +70 -51
  121. package/packages/ai/src/lib/mergeStatements.js.map +1 -1
  122. package/packages/ai/src/lib/promptGenerators/gatherAttributesMap.js +10 -4
  123. package/packages/ai/src/lib/promptGenerators/gatherAttributesMap.js.map +1 -1
  124. package/packages/ai/src/lib/resolvePathToControllable.js +24 -14
  125. package/packages/ai/src/lib/resolvePathToControllable.js.map +1 -1
  126. package/packages/ai/src/lib/worker/SerializableDataStructure.js.map +1 -1
  127. package/packages/analyze/src/lib/FileAnalyzer.js +60 -36
  128. package/packages/analyze/src/lib/FileAnalyzer.js.map +1 -1
  129. package/packages/analyze/src/lib/ProjectAnalyzer.js +96 -26
  130. package/packages/analyze/src/lib/ProjectAnalyzer.js.map +1 -1
  131. package/packages/analyze/src/lib/asts/sourceFiles/getAllDeclaredEntityNodes.js +14 -0
  132. package/packages/analyze/src/lib/asts/sourceFiles/getAllDeclaredEntityNodes.js.map +1 -1
  133. package/packages/analyze/src/lib/asts/sourceFiles/getAllEntityNodes.js +14 -0
  134. package/packages/analyze/src/lib/asts/sourceFiles/getAllEntityNodes.js.map +1 -1
  135. package/packages/analyze/src/lib/asts/sourceFiles/getAllExports.js +6 -0
  136. package/packages/analyze/src/lib/asts/sourceFiles/getAllExports.js.map +1 -1
  137. package/packages/analyze/src/lib/asts/sourceFiles/getImportsAnalysis.js +6 -0
  138. package/packages/analyze/src/lib/asts/sourceFiles/getImportsAnalysis.js.map +1 -1
  139. package/packages/analyze/src/lib/asts/sourceFiles/getResolvedModule.js +39 -1
  140. package/packages/analyze/src/lib/asts/sourceFiles/getResolvedModule.js.map +1 -1
  141. package/packages/analyze/src/lib/asts/sourceFiles/getSourceFilesForAllImports.js +2 -1
  142. package/packages/analyze/src/lib/asts/sourceFiles/getSourceFilesForAllImports.js.map +1 -1
  143. package/packages/analyze/src/lib/files/analyze/analyzeEntities/prepareDataStructures.js +13 -5
  144. package/packages/analyze/src/lib/files/analyze/analyzeEntities/prepareDataStructures.js.map +1 -1
  145. package/packages/analyze/src/lib/files/analyze/analyzeEntities.js +14 -4
  146. package/packages/analyze/src/lib/files/analyze/analyzeEntities.js.map +1 -1
  147. package/packages/analyze/src/lib/files/analyze/gatherEntityMap.js +2 -1
  148. package/packages/analyze/src/lib/files/analyze/gatherEntityMap.js.map +1 -1
  149. package/packages/analyze/src/lib/files/analyze/validateDependencyAnalyses.js +0 -3
  150. package/packages/analyze/src/lib/files/analyze/validateDependencyAnalyses.js.map +1 -1
  151. package/packages/analyze/src/lib/files/analyzeRemixRoute.js +3 -2
  152. package/packages/analyze/src/lib/files/analyzeRemixRoute.js.map +1 -1
  153. package/packages/analyze/src/lib/files/getImportedExports.js +11 -7
  154. package/packages/analyze/src/lib/files/getImportedExports.js.map +1 -1
  155. package/packages/analyze/src/lib/files/scenarios/enrichArrayTypesFromChildSignatures.js +52 -10
  156. package/packages/analyze/src/lib/files/scenarios/enrichArrayTypesFromChildSignatures.js.map +1 -1
  157. package/packages/analyze/src/lib/files/scenarios/gatherDataForMocks.js +25 -8
  158. package/packages/analyze/src/lib/files/scenarios/gatherDataForMocks.js.map +1 -1
  159. package/packages/analyze/src/lib/files/scenarios/generateDataStructure.js +34 -4
  160. package/packages/analyze/src/lib/files/scenarios/generateDataStructure.js.map +1 -1
  161. package/packages/analyze/src/lib/files/scenarios/generateExecutionFlows.js +56 -8
  162. package/packages/analyze/src/lib/files/scenarios/generateExecutionFlows.js.map +1 -1
  163. package/packages/analyze/src/lib/files/scenarios/mergeInDependentDataStructure.js +168 -9
  164. package/packages/analyze/src/lib/files/scenarios/mergeInDependentDataStructure.js.map +1 -1
  165. package/packages/analyze/src/lib/files/setImportedExports.js +2 -1
  166. package/packages/analyze/src/lib/files/setImportedExports.js.map +1 -1
  167. package/packages/analyze/src/lib/utils/getFileByPath.js +12 -0
  168. package/packages/analyze/src/lib/utils/getFileByPath.js.map +1 -0
  169. package/codeyam-cli/src/webserver/build/client/assets/globals-D3yhhV8x.css +0 -1
  170. package/codeyam-cli/src/webserver/build/client/assets/memory-yxFcrxBX.js +0 -92
  171. package/codeyam-cli/src/webserver/build/server/assets/server-build-4Cr0uToj.js +0 -257
@@ -0,0 +1,92 @@
1
+ import{j as s,G as ar,r as z,w as Ni,u as Ai,c as Ii,f as Ti}from"./chunk-EPOLDU6W-CXRTFQ3F.js";import{u as Pi}from"./useReportContext-DYxHZQuP.js";import{c as ye}from"./createLucideIcon-BdhJEx6B.js";import{C as Fi}from"./copy-Bb-80kDT.js";import{S as Di}from"./search-CxXUmBSd.js";import{F as Li}from"./file-code-Dhef1kWN.js";import{C as Ri}from"./chevron-down-Cx24_aWc.js";/**
2
+ * @license lucide-react v0.556.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const zi=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Mi=ye("arrow-left",zi);/**
7
+ * @license lucide-react v0.556.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const _i=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ut=ye("chevron-right",_i);/**
12
+ * @license lucide-react v0.556.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const Oi=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],Bi=ye("folder-tree",Oi);/**
17
+ * @license lucide-react v0.556.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const $i=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],sr=ye("folder",$i);/**
22
+ * @license lucide-react v0.556.0 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */const qi=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],Hi=ye("funnel",qi);/**
27
+ * @license lucide-react v0.556.0 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */const Ui=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Vi=ye("pencil",Ui);/**
32
+ * @license lucide-react v0.556.0 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */const Wi=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],gn=ye("plus",Wi);/**
37
+ * @license lucide-react v0.556.0 - ISC
38
+ *
39
+ * This source code is licensed under the ISC license.
40
+ * See the LICENSE file in the root directory of this source tree.
41
+ */const Yi=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],ur=ye("terminal",Yi);/**
42
+ * @license lucide-react v0.556.0 - ISC
43
+ *
44
+ * This source code is licensed under the ISC license.
45
+ * See the LICENSE file in the root directory of this source tree.
46
+ */const Qi=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Xi=ye("trash-2",Qi);/**
47
+ * @license lucide-react v0.556.0 - ISC
48
+ *
49
+ * This source code is licensed under the ISC license.
50
+ * See the LICENSE file in the root directory of this source tree.
51
+ */const Gi=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],cr=ye("x",Gi);function hr(e){const n={name:"root",path:"",memories:[],children:new Map};for(const t of e){const r=t.filePath.split("/");r.pop();let i=n,o="";for(const l of r)o=o?`${o}/${l}`:l,i.children.has(l)||i.children.set(l,{name:l,path:o,memories:[],children:new Map}),i=i.children.get(l);r.length===0?n.memories.push(t):i.memories.push(t)}return n}function fr(e){let n=e.memories.length;for(const t of e.children.values())n+=fr(t);return n}function Ki(e,n){var r;const t=e.match(/^#+ (.+)$/m);return t?t[1]:((r=n.split("/").pop())==null?void 0:r.replace(".md",""))||n}function Ve(e){return Math.round(e/3.5)}const Ji={architecture:"text-[#080096]",testing:"bg-green-100 text-green-800",faq:"text-[#080096]"},pr={architecture:"Architecture",testing:"Testing",faq:"FAQ"};function Zi(e){switch(e){case"architecture":return"";case"testing":return"bg-green-100";case"faq":return"";default:return""}}function el(e){return e==="faq"?{backgroundColor:"#D4D4FF"}:e==="architecture"?{backgroundColor:"#DBE9FF"}:{}}function tl(e){return e==="faq"?{backgroundColor:"#E7E7FC"}:e==="architecture"?{backgroundColor:"#DBE9FF"}:{}}function nl(e){switch(e){case"architecture":return"#3B82F6";case"testing":return"#10B981";case"faq":return"#080096";default:return"#080096"}}function rl({category:e,size:n="sm"}){const t=n==="sm"?{width:11,height:11}:{width:20,height:20},r=n==="sm"?{width:8,height:11}:{width:13,height:20};switch(e){case"architecture":return s.jsxs("svg",{width:t.width,height:t.height,viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("rect",{x:"24",y:"18",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"24",y:"15",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"24",y:"12",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"16",y:"18",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"16",y:"15",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"16",y:"12",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"8",y:"18",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"8",y:"15",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"8",y:"12",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{y:"18",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{y:"15",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{y:"12",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"12",y:"6",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"12",y:"24",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"12",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"18",y:"6",width:"3",height:"3",transform:"rotate(90 18 6)",fill:"#080096"}),s.jsx("rect",{x:"18",y:"24",width:"3",height:"3",transform:"rotate(90 18 24)",fill:"#080096"}),s.jsx("rect",{x:"3",y:"6",width:"3",height:"3",transform:"rotate(90 3 6)",fill:"#080096"}),s.jsx("rect",{x:"3",y:"24",width:"3",height:"3",transform:"rotate(90 3 24)",fill:"#080096"}),s.jsx("rect",{x:"21",y:"6",width:"3",height:"3",transform:"rotate(90 21 6)",fill:"#080096"}),s.jsx("rect",{x:"21",y:"24",width:"3",height:"3",transform:"rotate(90 21 24)",fill:"#080096"}),s.jsx("rect",{x:"6",y:"6",width:"3",height:"3",transform:"rotate(90 6 6)",fill:"#080096"}),s.jsx("rect",{x:"6",y:"24",width:"3",height:"3",transform:"rotate(90 6 24)",fill:"#080096"}),s.jsx("rect",{x:"24",y:"6",width:"3",height:"3",transform:"rotate(90 24 6)",fill:"#080096"}),s.jsx("rect",{x:"24",y:"24",width:"3",height:"3",transform:"rotate(90 24 24)",fill:"#080096"}),s.jsx("rect",{x:"9",y:"6",width:"3",height:"3",transform:"rotate(90 9 6)",fill:"#080096"}),s.jsx("rect",{x:"9",y:"24",width:"3",height:"3",transform:"rotate(90 9 24)",fill:"#080096"}),s.jsx("rect",{x:"27",y:"6",width:"3",height:"3",transform:"rotate(90 27 6)",fill:"#080096"}),s.jsx("rect",{x:"27",y:"24",width:"3",height:"3",transform:"rotate(90 27 24)",fill:"#080096"}),s.jsx("rect",{x:"12",y:"6",width:"3",height:"3",transform:"rotate(90 12 6)",fill:"#080096"}),s.jsx("rect",{x:"12",y:"24",width:"3",height:"3",transform:"rotate(90 12 24)",fill:"#080096"}),s.jsx("rect",{x:"19",y:"3",width:"3",height:"3",transform:"rotate(90 19 3)",fill:"#080096"}),s.jsx("rect",{x:"11",y:"3",width:"3",height:"3",transform:"rotate(90 11 3)",fill:"#080096"})]});case"testing":return s.jsxs("svg",{width:t.width,height:t.height,viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("rect",{x:"24",y:"24",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"21",y:"21",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"18",y:"18",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"15",y:"15",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"12",y:"12",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"12",y:"9",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"12",y:"24",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"12",y:"6",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"12",y:"21",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"12",y:"3",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"12",y:"18",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"12",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"18",y:"12",width:"3",height:"3",transform:"rotate(90 18 12)",fill:"#15803d"}),s.jsx("rect",{x:"3",y:"12",width:"3",height:"3",transform:"rotate(90 3 12)",fill:"#15803d"}),s.jsx("rect",{x:"21",y:"12",width:"3",height:"3",transform:"rotate(90 21 12)",fill:"#15803d"}),s.jsx("rect",{x:"6",y:"12",width:"3",height:"3",transform:"rotate(90 6 12)",fill:"#15803d"}),s.jsx("rect",{x:"24",y:"12",width:"3",height:"3",transform:"rotate(90 24 12)",fill:"#15803d"}),s.jsx("rect",{x:"9",y:"12",width:"3",height:"3",transform:"rotate(90 9 12)",fill:"#15803d"}),s.jsx("rect",{x:"27",y:"12",width:"3",height:"3",transform:"rotate(90 27 12)",fill:"#15803d"}),s.jsx("rect",{x:"12",y:"12",width:"3",height:"3",transform:"rotate(90 12 12)",fill:"#15803d"}),s.jsx("rect",{x:"12",y:"15",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"9",y:"9",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"6",y:"6",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"3",y:"3",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"3",y:"24",width:"3",height:"3",transform:"rotate(90 3 24)",fill:"#15803d"}),s.jsx("rect",{x:"6",y:"21",width:"3",height:"3",transform:"rotate(90 6 21)",fill:"#15803d"}),s.jsx("rect",{x:"9",y:"18",width:"3",height:"3",transform:"rotate(90 9 18)",fill:"#15803d"}),s.jsx("rect",{x:"12",y:"15",width:"3",height:"3",transform:"rotate(90 12 15)",fill:"#15803d"}),s.jsx("rect",{x:"18",y:"9",width:"3",height:"3",transform:"rotate(90 18 9)",fill:"#15803d"}),s.jsx("rect",{x:"21",y:"6",width:"3",height:"3",transform:"rotate(90 21 6)",fill:"#15803d"}),s.jsx("rect",{x:"24",y:"3",width:"3",height:"3",transform:"rotate(90 24 3)",fill:"#15803d"}),s.jsx("rect",{x:"27",width:"3",height:"3",transform:"rotate(90 27 0)",fill:"#15803d"})]});case"faq":default:return s.jsxs("svg",{width:r.width,height:r.height,viewBox:"0 0 18 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("rect",{x:"6",y:"24",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"6",y:"18",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"9",y:"15",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"12",y:"12",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"15",y:"9",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{y:"9",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"15",y:"6",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"12",y:"3",width:"3",height:"3",transform:"rotate(-90 12 3)",fill:"#080096"}),s.jsx("rect",{x:"15",y:"3",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{y:"6",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"9",y:"3",width:"3",height:"3",transform:"rotate(-90 9 3)",fill:"#080096"}),s.jsx("rect",{y:"3",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"6",y:"3",width:"3",height:"3",transform:"rotate(-90 6 3)",fill:"#080096"}),s.jsx("rect",{x:"3",y:"3",width:"3",height:"3",transform:"rotate(-90 3 3)",fill:"#080096"})]})}}function il(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const ll=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ol=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,al={};function xn(e,n){return(al.jsx?ol:ll).test(e)}const sl=/[ \t\n\f\r]/g;function ul(e){return typeof e=="object"?e.type==="text"?yn(e.value):!1:yn(e)}function yn(e){return e.replace(sl,"")===""}class Ke{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}Ke.prototype.normal={};Ke.prototype.property={};Ke.prototype.space=void 0;function dr(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new Ke(t,r,n)}function Dt(e){return e.toLowerCase()}class se{constructor(n,t){this.attribute=t,this.property=n}}se.prototype.attribute="";se.prototype.booleanish=!1;se.prototype.boolean=!1;se.prototype.commaOrSpaceSeparated=!1;se.prototype.commaSeparated=!1;se.prototype.defined=!1;se.prototype.mustUseProperty=!1;se.prototype.number=!1;se.prototype.overloadedBoolean=!1;se.prototype.property="";se.prototype.spaceSeparated=!1;se.prototype.space=void 0;let cl=0;const q=Te(),te=Te(),Lt=Te(),E=Te(),K=Te(),Re=Te(),ce=Te();function Te(){return 2**++cl}const Rt=Object.freeze(Object.defineProperty({__proto__:null,boolean:q,booleanish:te,commaOrSpaceSeparated:ce,commaSeparated:Re,number:E,overloadedBoolean:Lt,spaceSeparated:K},Symbol.toStringTag,{value:"Module"})),gt=Object.keys(Rt);class Vt extends se{constructor(n,t,r,i){let o=-1;if(super(n,t),wn(this,"space",i),typeof r=="number")for(;++o<gt.length;){const l=gt[o];wn(this,gt[o],(r&Rt[l])===Rt[l])}}}Vt.prototype.defined=!0;function wn(e,n,t){t&&(e[n]=t)}function Me(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const o=new Vt(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[Dt(r)]=r,t[Dt(o.attribute)]=r}return new Ke(n,t,e.space)}const mr=Me({properties:{ariaActiveDescendant:null,ariaAtomic:te,ariaAutoComplete:null,ariaBusy:te,ariaChecked:te,ariaColCount:E,ariaColIndex:E,ariaColSpan:E,ariaControls:K,ariaCurrent:null,ariaDescribedBy:K,ariaDetails:null,ariaDisabled:te,ariaDropEffect:K,ariaErrorMessage:null,ariaExpanded:te,ariaFlowTo:K,ariaGrabbed:te,ariaHasPopup:null,ariaHidden:te,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:K,ariaLevel:E,ariaLive:null,ariaModal:te,ariaMultiLine:te,ariaMultiSelectable:te,ariaOrientation:null,ariaOwns:K,ariaPlaceholder:null,ariaPosInSet:E,ariaPressed:te,ariaReadOnly:te,ariaRelevant:null,ariaRequired:te,ariaRoleDescription:K,ariaRowCount:E,ariaRowIndex:E,ariaRowSpan:E,ariaSelected:te,ariaSetSize:E,ariaSort:null,ariaValueMax:E,ariaValueMin:E,ariaValueNow:E,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function gr(e,n){return n in e?e[n]:n}function xr(e,n){return gr(e,n.toLowerCase())}const hl=Me({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Re,acceptCharset:K,accessKey:K,action:null,allow:null,allowFullScreen:q,allowPaymentRequest:q,allowUserMedia:q,alt:null,as:null,async:q,autoCapitalize:null,autoComplete:K,autoFocus:q,autoPlay:q,blocking:K,capture:null,charSet:null,checked:q,cite:null,className:K,cols:E,colSpan:null,content:null,contentEditable:te,controls:q,controlsList:K,coords:E|Re,crossOrigin:null,data:null,dateTime:null,decoding:null,default:q,defer:q,dir:null,dirName:null,disabled:q,download:Lt,draggable:te,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:q,formTarget:null,headers:K,height:E,hidden:Lt,high:E,href:null,hrefLang:null,htmlFor:K,httpEquiv:K,id:null,imageSizes:null,imageSrcSet:null,inert:q,inputMode:null,integrity:null,is:null,isMap:q,itemId:null,itemProp:K,itemRef:K,itemScope:q,itemType:K,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:q,low:E,manifest:null,max:null,maxLength:E,media:null,method:null,min:null,minLength:E,multiple:q,muted:q,name:null,nonce:null,noModule:q,noValidate:q,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:q,optimum:E,pattern:null,ping:K,placeholder:null,playsInline:q,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:q,referrerPolicy:null,rel:K,required:q,reversed:q,rows:E,rowSpan:E,sandbox:K,scope:null,scoped:q,seamless:q,selected:q,shadowRootClonable:q,shadowRootDelegatesFocus:q,shadowRootMode:null,shape:null,size:E,sizes:null,slot:null,span:E,spellCheck:te,src:null,srcDoc:null,srcLang:null,srcSet:null,start:E,step:null,style:null,tabIndex:E,target:null,title:null,translate:null,type:null,typeMustMatch:q,useMap:null,value:te,width:E,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:K,axis:null,background:null,bgColor:null,border:E,borderColor:null,bottomMargin:E,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:q,declare:q,event:null,face:null,frame:null,frameBorder:null,hSpace:E,leftMargin:E,link:null,longDesc:null,lowSrc:null,marginHeight:E,marginWidth:E,noResize:q,noHref:q,noShade:q,noWrap:q,object:null,profile:null,prompt:null,rev:null,rightMargin:E,rules:null,scheme:null,scrolling:te,standby:null,summary:null,text:null,topMargin:E,valueType:null,version:null,vAlign:null,vLink:null,vSpace:E,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:q,disableRemotePlayback:q,prefix:null,property:null,results:E,security:null,unselectable:null},space:"html",transform:xr}),fl=Me({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ce,accentHeight:E,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:E,amplitude:E,arabicForm:null,ascent:E,attributeName:null,attributeType:null,azimuth:E,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:E,by:null,calcMode:null,capHeight:E,className:K,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:E,diffuseConstant:E,direction:null,display:null,dur:null,divisor:E,dominantBaseline:null,download:q,dx:null,dy:null,edgeMode:null,editable:null,elevation:E,enableBackground:null,end:null,event:null,exponent:E,externalResourcesRequired:null,fill:null,fillOpacity:E,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Re,g2:Re,glyphName:Re,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:E,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:E,horizOriginX:E,horizOriginY:E,id:null,ideographic:E,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:E,k:E,k1:E,k2:E,k3:E,k4:E,kernelMatrix:ce,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:E,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:E,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:E,overlineThickness:E,paintOrder:null,panose1:null,path:null,pathLength:E,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:K,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:E,pointsAtY:E,pointsAtZ:E,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ce,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ce,rev:ce,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ce,requiredFeatures:ce,requiredFonts:ce,requiredFormats:ce,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:E,specularExponent:E,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:E,strikethroughThickness:E,string:null,stroke:null,strokeDashArray:ce,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:E,strokeOpacity:E,strokeWidth:null,style:null,surfaceScale:E,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ce,tabIndex:E,tableValues:null,target:null,targetX:E,targetY:E,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ce,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:E,underlineThickness:E,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:E,values:null,vAlphabetic:E,vMathematical:E,vectorEffect:null,vHanging:E,vIdeographic:E,version:null,vertAdvY:E,vertOriginX:E,vertOriginY:E,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:E,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:gr}),yr=Me({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),wr=Me({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:xr}),br=Me({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),pl={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},dl=/[A-Z]/g,bn=/-[a-z]/g,ml=/^data[-\w.:]+$/i;function gl(e,n){const t=Dt(n);let r=n,i=se;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&ml.test(n)){if(n.charAt(4)==="-"){const o=n.slice(5).replace(bn,yl);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=n.slice(4);if(!bn.test(o)){let l=o.replace(dl,xl);l.charAt(0)!=="-"&&(l="-"+l),n="data"+l}}i=Vt}return new i(r,n)}function xl(e){return"-"+e.toLowerCase()}function yl(e){return e.charAt(1).toUpperCase()}const wl=dr([mr,hl,yr,wr,br],"html"),Wt=dr([mr,fl,yr,wr,br],"svg");function bl(e){return e.join(" ").trim()}var Fe={},xt,kn;function kl(){if(kn)return xt;kn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,c=`
52
+ `,u="/",f="*",h="",d="comment",p="declaration";function x(C,y){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];y=y||{};var j=1,S=1;function P(R){var N=R.match(n);N&&(j+=N.length);var B=R.lastIndexOf(c);S=~B?R.length-B:S+R.length}function T(){var R={line:j,column:S};return function(N){return N.position=new w(R),O(),N}}function w(R){this.start=R,this.end={line:j,column:S},this.source=y.source}w.prototype.content=C;function L(R){var N=new Error(y.source+":"+j+":"+S+": "+R);if(N.reason=R,N.filename=y.source,N.line=j,N.column=S,N.source=C,!y.silent)throw N}function F(R){var N=R.exec(C);if(N){var B=N[0];return P(B),C=C.slice(B.length),N}}function O(){F(t)}function b(R){var N;for(R=R||[];N=I();)N!==!1&&R.push(N);return R}function I(){var R=T();if(!(u!=C.charAt(0)||f!=C.charAt(1))){for(var N=2;h!=C.charAt(N)&&(f!=C.charAt(N)||u!=C.charAt(N+1));)++N;if(N+=2,h===C.charAt(N-1))return L("End of comment missing");var B=C.slice(2,N-2);return S+=2,P(B),C=C.slice(N),S+=2,R({type:d,comment:B})}}function D(){var R=T(),N=F(r);if(N){if(I(),!F(i))return L("property missing ':'");var B=F(o),J=R({type:p,property:k(N[0].replace(e,h)),value:B?k(B[0].replace(e,h)):h});return F(l),J}}function V(){var R=[];b(R);for(var N;N=D();)N!==!1&&(R.push(N),b(R));return R}return O(),V()}function k(C){return C?C.replace(a,h):h}return xt=x,xt}var Cn;function Cl(){if(Cn)return Fe;Cn=1;var e=Fe&&Fe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.default=t;const n=e(kl());function t(r,i){let o=null;if(!r||typeof r!="string")return o;const l=(0,n.default)(r),a=typeof i=="function";return l.forEach(c=>{if(c.type!=="declaration")return;const{property:u,value:f}=c;a?i(u,f,c):f&&(o=o||{},o[u]=f)}),o}return Fe}var $e={},jn;function jl(){if(jn)return $e;jn=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(u){return!u||t.test(u)||e.test(u)},l=function(u,f){return f.toUpperCase()},a=function(u,f){return"".concat(f,"-")},c=function(u,f){return f===void 0&&(f={}),o(u)?u:(u=u.toLowerCase(),f.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(n,l))};return $e.camelCase=c,$e}var qe,vn;function vl(){if(vn)return qe;vn=1;var e=qe&&qe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(Cl()),t=jl();function r(i,o){var l={};return!i||typeof i!="string"||(0,n.default)(i,function(a,c){a&&c&&(l[(0,t.camelCase)(a,o)]=c)}),l}return r.default=r,qe=r,qe}var Sl=vl();const El=ar(Sl),kr=Cr("end"),Yt=Cr("start");function Cr(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Nl(e){const n=Yt(e),t=kr(e);if(n&&t)return{start:n,end:t}}function We(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Sn(e.position):"start"in e||"end"in e?Sn(e):"line"in e||"column"in e?zt(e):""}function zt(e){return En(e&&e.line)+":"+En(e&&e.column)}function Sn(e){return zt(e&&e.start)+"-"+zt(e&&e.end)}function En(e){return e&&typeof e=="number"?e:1}class ie extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",o={},l=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof n=="string"?i=n:!o.cause&&n&&(l=!0,i=n.message,o.cause=n),!o.ruleId&&!o.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?o.ruleId=r:(o.source=r.slice(0,c),o.ruleId=r.slice(c+1))}if(!o.place&&o.ancestors&&o.ancestors){const c=o.ancestors[o.ancestors.length-1];c&&(o.place=c.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=We(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ie.prototype.file="";ie.prototype.name="";ie.prototype.reason="";ie.prototype.message="";ie.prototype.stack="";ie.prototype.column=void 0;ie.prototype.line=void 0;ie.prototype.ancestors=void 0;ie.prototype.cause=void 0;ie.prototype.fatal=void 0;ie.prototype.place=void 0;ie.prototype.ruleId=void 0;ie.prototype.source=void 0;const Qt={}.hasOwnProperty,Al=new Map,Il=/[A-Z]/g,Tl=new Set(["table","tbody","thead","tfoot","tr"]),Pl=new Set(["td","th"]),jr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Fl(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Bl(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Ol(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Wt:wl,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=vr(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function vr(e,n,t){if(n.type==="element")return Dl(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Ll(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return zl(e,n,t);if(n.type==="mdxjsEsm")return Rl(e,n);if(n.type==="root")return Ml(e,n,t);if(n.type==="text")return _l(e,n)}function Dl(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Wt,e.schema=i),e.ancestors.push(n);const o=Er(e,n.tagName,!1),l=$l(e,n);let a=Gt(e,n);return Tl.has(n.tagName)&&(a=a.filter(function(c){return typeof c=="string"?!ul(c):!0})),Sr(e,l,o,n),Xt(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function Ll(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Xe(e,n.position)}function Rl(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Xe(e,n.position)}function zl(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=Wt,e.schema=i),e.ancestors.push(n);const o=n.name===null?e.Fragment:Er(e,n.name,!0),l=ql(e,n),a=Gt(e,n);return Sr(e,l,o,n),Xt(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function Ml(e,n,t){const r={};return Xt(r,Gt(e,n)),e.create(n,e.Fragment,r,t)}function _l(e,n){return n.value}function Sr(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Xt(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Ol(e,n,t){return r;function r(i,o,l,a){const u=Array.isArray(l.children)?t:n;return a?u(o,l,a):u(o,l)}}function Bl(e,n){return t;function t(r,i,o,l){const a=Array.isArray(o.children),c=Yt(r);return n(i,o,l,a,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function $l(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Qt.call(n.properties,i)){const o=Hl(e,i,n.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&Pl.has(n.tagName)?r=a:t[l]=a}}if(r){const o=t.style||(t.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function ql(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const a=l.properties[0];a.type,Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else Xe(e,n.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else Xe(e,n.position);else o=r.value===null?!0:r.value;t[i]=o}return t}function Gt(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Al;for(;++r<n.children.length;){const o=n.children[r];let l;if(e.passKeys){const c=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(c){const u=i.get(c)||0;l=c+"-"+u,i.set(c,u+1)}}const a=vr(e,o,l);a!==void 0&&t.push(a)}return t}function Hl(e,n,t){const r=gl(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?il(t):bl(t)),r.property==="style"){let i=typeof t=="object"?t:Ul(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Vl(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?pl[r.property]||r.property:r.attribute,t]}}function Ul(e,n){try{return El(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new ie("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=jr+"#cannot-parse-style-attribute",i}}function Er(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let o=-1,l;for(;++o<i.length;){const a=xn(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=l}else r=xn(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return Qt.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Xe(e)}function Xe(e,n){const t=new ie("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=jr+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Vl(e){const n={};let t;for(t in e)Qt.call(e,t)&&(n[Wl(t)]=e[t]);return n}function Wl(e){let n=e.replace(Il,Yl);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Yl(e){return"-"+e.toLowerCase()}const yt={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Ql={};function Kt(e,n){const t=Ql,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Nr(e,r,i)}function Nr(e,n,t){if(Xl(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Nn(e.children,n,t)}return Array.isArray(e)?Nn(e,n,t):""}function Nn(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Nr(e[i],n,t);return r.join("")}function Xl(e){return!!(e&&typeof e=="object")}const An=document.createElement("i");function Jt(e){const n="&"+e+";";An.innerHTML=n;const t=An.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function he(e,n,t,r){const i=e.length;let o=0,l;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)l=Array.from(r),l.unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);o<r.length;)l=r.slice(o,o+1e4),l.unshift(n,0),e.splice(...l),o+=1e4,n+=1e4}function fe(e,n){return e.length>0?(he(e,e.length,0,n),e):n}const In={}.hasOwnProperty;function Ar(e){const n={};let t=-1;for(;++t<e.length;)Gl(n,e[t]);return n}function Gl(e,n){let t;for(t in n){const i=(In.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let l;if(o)for(l in o){In.call(i,l)||(i[l]=[]);const a=o[l];Kl(i[l],Array.isArray(a)?a:a?[a]:[])}}}function Kl(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);he(e,0,0,r)}function Ir(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function de(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const oe=Se(/[A-Za-z]/),re=Se(/[\dA-Za-z]/),Jl=Se(/[#-'*+\--9=?A-Z^-~]/);function at(e){return e!==null&&(e<32||e===127)}const Mt=Se(/\d/),Zl=Se(/[\dA-Fa-f]/),eo=Se(/[!-/:-@[-`{-~]/);function M(e){return e!==null&&e<-2}function G(e){return e!==null&&(e<0||e===32)}function U(e){return e===-2||e===-1||e===32}const ht=Se(new RegExp("\\p{P}|\\p{S}","u")),Ie=Se(/\s/);function Se(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function _e(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const o=e.charCodeAt(t);let l="";if(o===37&&re(e.charCodeAt(t+1))&&re(e.charCodeAt(t+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(t+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+i+1,l=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function Y(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(c){return U(c)?(e.enter(t),a(c)):n(c)}function a(c){return U(c)&&o++<i?(e.consume(c),a):(e.exit(t),n(c))}}const to={tokenize:no};function no(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Y(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const c=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=c),t=c,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return M(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const ro={tokenize:io},Tn={tokenize:lo};function io(e){const n=this,t=[];let r=0,i,o,l;return a;function a(S){if(r<t.length){const P=t[r];return n.containerState=P[1],e.attempt(P[0].continuation,c,u)(S)}return u(S)}function c(S){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&j();const P=n.events.length;let T=P,w;for(;T--;)if(n.events[T][0]==="exit"&&n.events[T][1].type==="chunkFlow"){w=n.events[T][1].end;break}y(r);let L=P;for(;L<n.events.length;)n.events[L][1].end={...w},L++;return he(n.events,T+1,0,n.events.slice(P)),n.events.length=L,u(S)}return a(S)}function u(S){if(r===t.length){if(!i)return d(S);if(i.currentConstruct&&i.currentConstruct.concrete)return x(S);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Tn,f,h)(S)}function f(S){return i&&j(),y(r),d(S)}function h(S){return n.parser.lazy[n.now().line]=r!==t.length,l=n.now().offset,x(S)}function d(S){return n.containerState={},e.attempt(Tn,p,x)(S)}function p(S){return r++,t.push([n.currentConstruct,n.containerState]),d(S)}function x(S){if(S===null){i&&j(),y(0),e.consume(S);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),k(S)}function k(S){if(S===null){C(e.exit("chunkFlow"),!0),y(0),e.consume(S);return}return M(S)?(e.consume(S),C(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(S),k)}function C(S,P){const T=n.sliceStream(S);if(P&&T.push(null),S.previous=o,o&&(o.next=S),o=S,i.defineSkip(S.start),i.write(T),n.parser.lazy[S.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<l&&(!i.events[w][1].end||i.events[w][1].end.offset>l))return;const L=n.events.length;let F=L,O,b;for(;F--;)if(n.events[F][0]==="exit"&&n.events[F][1].type==="chunkFlow"){if(O){b=n.events[F][1].end;break}O=!0}for(y(r),w=L;w<n.events.length;)n.events[w][1].end={...b},w++;he(n.events,F+1,0,n.events.slice(L)),n.events.length=w}}function y(S){let P=t.length;for(;P-- >S;){const T=t[P];n.containerState=T[1],T[0].exit.call(n,e)}t.length=S}function j(){i.write([null]),o=void 0,i=void 0,n.containerState._closeFlow=void 0}}function lo(e,n,t){return Y(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ze(e){if(e===null||G(e)||Ie(e))return 1;if(ht(e))return 2}function ft(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(n=o(n,t),r.push(o))}return n}const _t={name:"attention",resolveAll:oo,tokenize:ao};function oo(e,n){let t=-1,r,i,o,l,a,c,u,f;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const h={...e[r][1].end},d={...e[t][1].start};Pn(h,-c),Pn(d,c),l={type:c>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},a={type:c>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:d},o={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:c>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[t][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=fe(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=fe(u,[["enter",i,n],["enter",l,n],["exit",l,n],["enter",o,n]]),u=fe(u,ft(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=fe(u,[["exit",o,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,u=fe(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,he(e,r-1,t-r+3,u),t=r+u.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function ao(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=ze(r);let o;return l;function l(c){return o=c,e.enter("attentionSequence"),a(c)}function a(c){if(c===o)return e.consume(c),a;const u=e.exit("attentionSequence"),f=ze(c),h=!f||f===2&&i||t.includes(c),d=!i||i===2&&f||t.includes(r);return u._open=!!(o===42?h:h&&(i||!d)),u._close=!!(o===42?d:d&&(f||!h)),n(c)}}function Pn(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const so={name:"autolink",tokenize:uo};function uo(e,n,t){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return oe(p)?(e.consume(p),l):p===64?t(p):u(p)}function l(p){return p===43||p===45||p===46||re(p)?(r=1,a(p)):u(p)}function a(p){return p===58?(e.consume(p),r=0,c):(p===43||p===45||p===46||re(p))&&r++<32?(e.consume(p),a):(r=0,u(p))}function c(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):p===null||p===32||p===60||at(p)?t(p):(e.consume(p),c)}function u(p){return p===64?(e.consume(p),f):Jl(p)?(e.consume(p),u):t(p)}function f(p){return re(p)?h(p):t(p)}function h(p){return p===46?(e.consume(p),r=0,f):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):d(p)}function d(p){if((p===45||re(p))&&r++<63){const x=p===45?d:h;return e.consume(p),x}return t(p)}}const Je={partial:!0,tokenize:co};function co(e,n,t){return r;function r(o){return U(o)?Y(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||M(o)?n(o):t(o)}}const Tr={continuation:{tokenize:fo},exit:po,name:"blockQuote",tokenize:ho};function ho(e,n,t){const r=this;return i;function i(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return t(l)}function o(l){return U(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(l))}}function fo(e,n,t){const r=this;return i;function i(l){return U(l)?Y(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Tr,n,t)(l)}}function po(e){e.exit("blockQuote")}const Pr={name:"characterEscape",tokenize:mo};function mo(e,n,t){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return eo(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(o)}}const Fr={name:"characterReference",tokenize:go};function go(e,n,t){const r=this;let i=0,o,l;return a;function a(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),c}function c(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,l=re,f(h))}function u(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=Zl,f):(e.enter("characterReferenceValue"),o=7,l=Mt,f(h))}function f(h){if(h===59&&i){const d=e.exit("characterReferenceValue");return l===re&&!Jt(r.sliceSerialize(d))?t(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return l(h)&&i++<o?(e.consume(h),f):t(h)}}const Fn={partial:!0,tokenize:yo},Dn={concrete:!0,name:"codeFenced",tokenize:xo};function xo(e,n,t){const r=this,i={partial:!0,tokenize:T};let o=0,l=0,a;return c;function c(w){return u(w)}function u(w){const L=r.events[r.events.length-1];return o=L&&L[1].type==="linePrefix"?L[2].sliceSerialize(L[1],!0).length:0,a=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(w)}function f(w){return w===a?(l++,e.consume(w),f):l<3?t(w):(e.exit("codeFencedFenceSequence"),U(w)?Y(e,h,"whitespace")(w):h(w))}function h(w){return w===null||M(w)?(e.exit("codeFencedFence"),r.interrupt?n(w):e.check(Fn,k,P)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(w))}function d(w){return w===null||M(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(w)):U(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Y(e,p,"whitespace")(w)):w===96&&w===a?t(w):(e.consume(w),d)}function p(w){return w===null||M(w)?h(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(w))}function x(w){return w===null||M(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(w)):w===96&&w===a?t(w):(e.consume(w),x)}function k(w){return e.attempt(i,P,C)(w)}function C(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),y}function y(w){return o>0&&U(w)?Y(e,j,"linePrefix",o+1)(w):j(w)}function j(w){return w===null||M(w)?e.check(Fn,k,P)(w):(e.enter("codeFlowValue"),S(w))}function S(w){return w===null||M(w)?(e.exit("codeFlowValue"),j(w)):(e.consume(w),S)}function P(w){return e.exit("codeFenced"),n(w)}function T(w,L,F){let O=0;return b;function b(N){return w.enter("lineEnding"),w.consume(N),w.exit("lineEnding"),I}function I(N){return w.enter("codeFencedFence"),U(N)?Y(w,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):D(N)}function D(N){return N===a?(w.enter("codeFencedFenceSequence"),V(N)):F(N)}function V(N){return N===a?(O++,w.consume(N),V):O>=l?(w.exit("codeFencedFenceSequence"),U(N)?Y(w,R,"whitespace")(N):R(N)):F(N)}function R(N){return N===null||M(N)?(w.exit("codeFencedFence"),L(N)):F(N)}}}function yo(e,n,t){const r=this;return i;function i(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}const wt={name:"codeIndented",tokenize:bo},wo={partial:!0,tokenize:ko};function bo(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),Y(e,o,"linePrefix",5)(u)}function o(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(u):t(u)}function l(u){return u===null?c(u):M(u)?e.attempt(wo,l,c)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||M(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),a)}function c(u){return e.exit("codeIndented"),n(u)}}function ko(e,n,t){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?t(l):M(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):Y(e,o,"linePrefix",5)(l)}function o(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(l):M(l)?i(l):t(l)}}const Co={name:"codeText",previous:vo,resolve:jo,tokenize:So};function jo(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function vo(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function So(e,n,t){let r=0,i,o;return l;function l(h){return e.enter("codeText"),e.enter("codeTextSequence"),a(h)}function a(h){return h===96?(e.consume(h),r++,a):(e.exit("codeTextSequence"),c(h))}function c(h){return h===null?t(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),c):h===96?(o=e.enter("codeTextSequence"),i=0,f(h)):M(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(h))}function u(h){return h===null||h===32||h===96||M(h)?(e.exit("codeTextData"),c(h)):(e.consume(h),u)}function f(h){return h===96?(e.consume(h),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(h)):(o.type="codeTextData",u(h))}}class Eo{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&He(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),He(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),He(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);He(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);He(this.left,t.reverse())}}}function He(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Dr(e){const n={};let t=-1,r,i,o,l,a,c,u;const f=new Eo(e);for(;++t<f.length;){for(;t in n;)t=n[t];if(r=f.get(t),t&&r[1].type==="chunkFlow"&&f.get(t-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,o=0,o<c.length&&c[o][1].type==="lineEndingBlank"&&(o+=2),o<c.length&&c[o][1].type==="content"))for(;++o<c.length&&c[o][1].type!=="content";)c[o][1].type==="chunkText"&&(c[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,No(f,t)),t=n[t],u=!0);else if(r[1]._container){for(o=t,i=void 0;o--;)if(l=f.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,t),a.unshift(r),f.splice(i,t-i+1,a))}}return he(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function No(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const o=[];let l=t._tokenizer;l||(l=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,c=[],u={};let f,h,d=-1,p=t,x=0,k=0;const C=[k];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(f=r.sliceStream(p),p.next||f.push(null),h&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),h=p,p=p.next}for(p=t;++d<a.length;)a[d][0]==="exit"&&a[d-1][0]==="enter"&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(k=d+1,C.push(k),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):C.pop(),d=C.length;d--;){const y=a.slice(C[d],C[d+1]),j=o.pop();c.push([j,j+y.length-1]),e.splice(j,2,y)}for(c.reverse(),d=-1;++d<c.length;)u[x+c[d][0]]=x+c[d][1],x+=c[d][1]-c[d][0]-1;return u}const Ao={resolve:To,tokenize:Po},Io={partial:!0,tokenize:Fo};function To(e){return Dr(e),e}function Po(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):M(a)?e.check(Io,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function l(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function Fo(e,n,t){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Y(e,o,"linePrefix")}function o(l){if(l===null||M(l))return t(l);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(l):e.interrupt(r.parser.constructs.flow,t,n)(l)}}function Lr(e,n,t,r,i,o,l,a,c){const u=c||Number.POSITIVE_INFINITY;let f=0;return h;function h(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),d):y===null||y===32||y===41||at(y)?t(y):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),k(y))}function d(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===62?(e.exit("chunkString"),e.exit(a),d(y)):y===null||y===60||M(y)?t(y):(e.consume(y),y===92?x:p)}function x(y){return y===60||y===62||y===92?(e.consume(y),p):p(y)}function k(y){return!f&&(y===null||y===41||G(y))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),n(y)):f<u&&y===40?(e.consume(y),f++,k):y===41?(e.consume(y),f--,k):y===null||y===32||y===40||at(y)?t(y):(e.consume(y),y===92?C:k)}function C(y){return y===40||y===41||y===92?(e.consume(y),k):k(y)}}function Rr(e,n,t,r,i,o){const l=this;let a=0,c;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),f}function f(p){return a>999||p===null||p===91||p===93&&!c||p===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):M(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===null||p===91||p===93||M(p)||a++>999?(e.exit("chunkString"),f(p)):(e.consume(p),c||(c=!U(p)),p===92?d:h)}function d(p){return p===91||p===92||p===93?(e.consume(p),a++,h):h(p)}}function zr(e,n,t,r,i,o){let l;return a;function a(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),l=d===40?41:d,c):t(d)}function c(d){return d===l?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),n):(e.enter(o),u(d))}function u(d){return d===l?(e.exit(o),c(l)):d===null?t(d):M(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Y(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===l||d===null||M(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?h:f)}function h(d){return d===l||d===92?(e.consume(d),f):f(d)}}function Ye(e,n){let t;return r;function r(i){return M(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):U(i)?Y(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Do={name:"definition",tokenize:Ro},Lo={partial:!0,tokenize:zo};function Ro(e,n,t){const r=this;let i;return o;function o(p){return e.enter("definition"),l(p)}function l(p){return Rr.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=de(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),c):t(p)}function c(p){return G(p)?Ye(e,u)(p):u(p)}function u(p){return Lr(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function f(p){return e.attempt(Lo,h,h)(p)}function h(p){return U(p)?Y(e,d,"whitespace")(p):d(p)}function d(p){return p===null||M(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function zo(e,n,t){return r;function r(a){return G(a)?Ye(e,i)(a):t(a)}function i(a){return zr(e,o,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return U(a)?Y(e,l,"whitespace")(a):l(a)}function l(a){return a===null||M(a)?n(a):t(a)}}const Mo={name:"hardBreakEscape",tokenize:_o};function _o(e,n,t){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return M(o)?(e.exit("hardBreakEscape"),n(o)):t(o)}}const Oo={name:"headingAtx",resolve:Bo,tokenize:$o};function Bo(e,n){let t=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},o={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},he(e,r,t-r+1,[["enter",i,n],["enter",o,n],["exit",o,n],["exit",i,n]])),e}function $o(e,n,t){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||G(f)?(e.exit("atxHeadingSequence"),a(f)):t(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),c(f)):f===null||M(f)?(e.exit("atxHeading"),n(f)):U(f)?Y(e,a,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function c(f){return f===35?(e.consume(f),c):(e.exit("atxHeadingSequence"),a(f))}function u(f){return f===null||f===35||G(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),u)}}const qo=["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","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ln=["pre","script","style","textarea"],Ho={concrete:!0,name:"htmlFlow",resolveTo:Wo,tokenize:Yo},Uo={partial:!0,tokenize:Xo},Vo={partial:!0,tokenize:Qo};function Wo(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Yo(e,n,t){const r=this;let i,o,l,a,c;return u;function u(m){return f(m)}function f(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),h}function h(m){return m===33?(e.consume(m),d):m===47?(e.consume(m),o=!0,k):m===63?(e.consume(m),i=3,r.interrupt?n:g):oe(m)?(e.consume(m),l=String.fromCharCode(m),C):t(m)}function d(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,a=0,x):oe(m)?(e.consume(m),i=4,r.interrupt?n:g):t(m)}function p(m){return m===45?(e.consume(m),r.interrupt?n:g):t(m)}function x(m){const H="CDATA[";return m===H.charCodeAt(a++)?(e.consume(m),a===H.length?r.interrupt?n:D:x):t(m)}function k(m){return oe(m)?(e.consume(m),l=String.fromCharCode(m),C):t(m)}function C(m){if(m===null||m===47||m===62||G(m)){const H=m===47,Z=l.toLowerCase();return!H&&!o&&Ln.includes(Z)?(i=1,r.interrupt?n(m):D(m)):qo.includes(l.toLowerCase())?(i=6,H?(e.consume(m),y):r.interrupt?n(m):D(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):o?j(m):S(m))}return m===45||re(m)?(e.consume(m),l+=String.fromCharCode(m),C):t(m)}function y(m){return m===62?(e.consume(m),r.interrupt?n:D):t(m)}function j(m){return U(m)?(e.consume(m),j):b(m)}function S(m){return m===47?(e.consume(m),b):m===58||m===95||oe(m)?(e.consume(m),P):U(m)?(e.consume(m),S):b(m)}function P(m){return m===45||m===46||m===58||m===95||re(m)?(e.consume(m),P):T(m)}function T(m){return m===61?(e.consume(m),w):U(m)?(e.consume(m),T):S(m)}function w(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),c=m,L):U(m)?(e.consume(m),w):F(m)}function L(m){return m===c?(e.consume(m),c=null,O):m===null||M(m)?t(m):(e.consume(m),L)}function F(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||G(m)?T(m):(e.consume(m),F)}function O(m){return m===47||m===62||U(m)?S(m):t(m)}function b(m){return m===62?(e.consume(m),I):t(m)}function I(m){return m===null||M(m)?D(m):U(m)?(e.consume(m),I):t(m)}function D(m){return m===45&&i===2?(e.consume(m),B):m===60&&i===1?(e.consume(m),J):m===62&&i===4?(e.consume(m),Q):m===63&&i===3?(e.consume(m),g):m===93&&i===5?(e.consume(m),_):M(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Uo,ne,V)(m)):m===null||M(m)?(e.exit("htmlFlowData"),V(m)):(e.consume(m),D)}function V(m){return e.check(Vo,R,ne)(m)}function R(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),N}function N(m){return m===null||M(m)?V(m):(e.enter("htmlFlowData"),D(m))}function B(m){return m===45?(e.consume(m),g):D(m)}function J(m){return m===47?(e.consume(m),l="",le):D(m)}function le(m){if(m===62){const H=l.toLowerCase();return Ln.includes(H)?(e.consume(m),Q):D(m)}return oe(m)&&l.length<8?(e.consume(m),l+=String.fromCharCode(m),le):D(m)}function _(m){return m===93?(e.consume(m),g):D(m)}function g(m){return m===62?(e.consume(m),Q):m===45&&i===2?(e.consume(m),g):D(m)}function Q(m){return m===null||M(m)?(e.exit("htmlFlowData"),ne(m)):(e.consume(m),Q)}function ne(m){return e.exit("htmlFlow"),n(m)}}function Qo(e,n,t){const r=this;return i;function i(l){return M(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):t(l)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}function Xo(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Je,n,t)}}const Go={name:"htmlText",tokenize:Ko};function Ko(e,n,t){const r=this;let i,o,l;return a;function a(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),c}function c(g){return g===33?(e.consume(g),u):g===47?(e.consume(g),T):g===63?(e.consume(g),S):oe(g)?(e.consume(g),F):t(g)}function u(g){return g===45?(e.consume(g),f):g===91?(e.consume(g),o=0,x):oe(g)?(e.consume(g),j):t(g)}function f(g){return g===45?(e.consume(g),p):t(g)}function h(g){return g===null?t(g):g===45?(e.consume(g),d):M(g)?(l=h,J(g)):(e.consume(g),h)}function d(g){return g===45?(e.consume(g),p):h(g)}function p(g){return g===62?B(g):g===45?d(g):h(g)}function x(g){const Q="CDATA[";return g===Q.charCodeAt(o++)?(e.consume(g),o===Q.length?k:x):t(g)}function k(g){return g===null?t(g):g===93?(e.consume(g),C):M(g)?(l=k,J(g)):(e.consume(g),k)}function C(g){return g===93?(e.consume(g),y):k(g)}function y(g){return g===62?B(g):g===93?(e.consume(g),y):k(g)}function j(g){return g===null||g===62?B(g):M(g)?(l=j,J(g)):(e.consume(g),j)}function S(g){return g===null?t(g):g===63?(e.consume(g),P):M(g)?(l=S,J(g)):(e.consume(g),S)}function P(g){return g===62?B(g):S(g)}function T(g){return oe(g)?(e.consume(g),w):t(g)}function w(g){return g===45||re(g)?(e.consume(g),w):L(g)}function L(g){return M(g)?(l=L,J(g)):U(g)?(e.consume(g),L):B(g)}function F(g){return g===45||re(g)?(e.consume(g),F):g===47||g===62||G(g)?O(g):t(g)}function O(g){return g===47?(e.consume(g),B):g===58||g===95||oe(g)?(e.consume(g),b):M(g)?(l=O,J(g)):U(g)?(e.consume(g),O):B(g)}function b(g){return g===45||g===46||g===58||g===95||re(g)?(e.consume(g),b):I(g)}function I(g){return g===61?(e.consume(g),D):M(g)?(l=I,J(g)):U(g)?(e.consume(g),I):O(g)}function D(g){return g===null||g===60||g===61||g===62||g===96?t(g):g===34||g===39?(e.consume(g),i=g,V):M(g)?(l=D,J(g)):U(g)?(e.consume(g),D):(e.consume(g),R)}function V(g){return g===i?(e.consume(g),i=void 0,N):g===null?t(g):M(g)?(l=V,J(g)):(e.consume(g),V)}function R(g){return g===null||g===34||g===39||g===60||g===61||g===96?t(g):g===47||g===62||G(g)?O(g):(e.consume(g),R)}function N(g){return g===47||g===62||G(g)?O(g):t(g)}function B(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),n):t(g)}function J(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),le}function le(g){return U(g)?Y(e,_,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g):_(g)}function _(g){return e.enter("htmlTextData"),l(g)}}const Zt={name:"labelEnd",resolveAll:ta,resolveTo:na,tokenize:ra},Jo={tokenize:ia},Zo={tokenize:la},ea={tokenize:oa};function ta(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&he(e,0,e.length,t),e}function na(e,n){let t=e.length,r=0,i,o,l,a;for(;t--;)if(i=e[t][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=t);const c={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",c,n],["enter",u,n]],a=fe(a,e.slice(o+1,o+r+3)),a=fe(a,[["enter",f,n]]),a=fe(a,ft(n.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),n)),a=fe(a,[["exit",f,n],e[l-2],e[l-1],["exit",u,n]]),a=fe(a,e.slice(l+1)),a=fe(a,[["exit",c,n]]),he(e,o,e.length,a),e}function ra(e,n,t){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(d){return o?o._inactive?h(d):(l=r.parser.defined.includes(de(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),c):t(d)}function c(d){return d===40?e.attempt(Jo,f,l?f:h)(d):d===91?e.attempt(Zo,f,l?u:h)(d):l?f(d):h(d)}function u(d){return e.attempt(ea,f,h)(d)}function f(d){return n(d)}function h(d){return o._balanced=!0,t(d)}}function ia(e,n,t){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),i}function i(h){return G(h)?Ye(e,o)(h):o(h)}function o(h){return h===41?f(h):Lr(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function l(h){return G(h)?Ye(e,c)(h):f(h)}function a(h){return t(h)}function c(h){return h===34||h===39||h===40?zr(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):f(h)}function u(h){return G(h)?Ye(e,f)(h):f(h)}function f(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),n):t(h)}}function la(e,n,t){const r=this;return i;function i(a){return Rr.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(de(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function l(a){return t(a)}}function oa(e,n,t){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),n):t(o)}}const aa={name:"labelStartImage",resolveAll:Zt.resolveAll,tokenize:sa};function sa(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):t(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const ua={name:"labelStartLink",resolveAll:Zt.resolveAll,tokenize:ca};function ca(e,n,t){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(l):n(l)}}const bt={name:"lineEnding",tokenize:ha};function ha(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Y(e,n,"linePrefix")}}const ot={name:"thematicBreak",tokenize:fa};function fa(e,n,t){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),l(u)}function l(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),c(u)):r>=3&&(u===null||M(u))?(e.exit("thematicBreak"),n(u)):t(u)}function c(u){return u===i?(e.consume(u),r++,c):(e.exit("thematicBreakSequence"),U(u)?Y(e,a,"whitespace")(u):a(u))}}const ae={continuation:{tokenize:ga},exit:ya,name:"list",tokenize:ma},pa={partial:!0,tokenize:wa},da={partial:!0,tokenize:xa};function ma(e,n,t){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return a;function a(p){const x=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Mt(p)){if(r.containerState.type||(r.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(ot,t,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(p)}return t(p)}function c(p){return Mt(p)&&++l<10?(e.consume(p),c):(!r.interrupt||l<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):t(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Je,r.interrupt?t:f,e.attempt(pa,d,h))}function f(p){return r.containerState.initialBlankLine=!0,o++,d(p)}function h(p){return U(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):t(p)}function d(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function ga(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Je,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Y(e,n,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!U(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(da,n,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,Y(e,e.attempt(ae,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function xa(e,n,t){const r=this;return Y(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?n(o):t(o)}}function ya(e){e.exit(this.containerState.type)}function wa(e,n,t){const r=this;return Y(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!U(o)&&l&&l[1].type==="listItemPrefixWhitespace"?n(o):t(o)}}const Rn={name:"setextUnderline",resolveTo:ba,tokenize:ka};function ba(e,n){let t=e.length,r,i,o;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!o&&e[t][1].type==="definition"&&(o=t);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,n]),e.splice(o+1,0,["exit",e[r][1],n]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,n]),e}function ka(e,n,t){const r=this;let i;return o;function o(u){let f=r.events.length,h;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){h=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),i=u,l(u)):t(u)}function l(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),U(u)?Y(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||M(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const Ca={tokenize:ja};function ja(e){const n=this,t=e.attempt(Je,r,e.attempt(this.parser.constructs.flowInitial,i,Y(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ao,i)),"linePrefix")));return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const va={resolveAll:_r()},Sa=Mr("string"),Ea=Mr("text");function Mr(e){return{resolveAll:_r(e==="text"?Na:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],o=t.attempt(i,l,a);return l;function l(f){return u(f)?o(f):a(f)}function a(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),c}function c(f){return u(f)?(t.exit("data"),o(f)):(t.consume(f),c)}function u(f){if(f===null)return!0;const h=i[f];let d=-1;if(h)for(;++d<h.length;){const p=h[d];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function _r(e){return n;function n(t,r){let i=-1,o;for(;++i<=t.length;)o===void 0?t[i]&&t[i][1].type==="data"&&(o=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==o+2&&(t[o][1].end=t[i-1][1].end,t.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(t,r):t}}function Na(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let o=i.length,l=-1,a=0,c;for(;o--;){const u=i[o];if(typeof u=="string"){for(l=u.length;u.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(u===-2)c=!0,a++;else if(u!==-1){o++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const u={type:t===e.length||c||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(t,0,["enter",u,n],["exit",u,n]),t+=2)}t++}return e}const Aa={42:ae,43:ae,45:ae,48:ae,49:ae,50:ae,51:ae,52:ae,53:ae,54:ae,55:ae,56:ae,57:ae,62:Tr},Ia={91:Do},Ta={[-2]:wt,[-1]:wt,32:wt},Pa={35:Oo,42:ot,45:[Rn,ot],60:Ho,61:Rn,95:ot,96:Dn,126:Dn},Fa={38:Fr,92:Pr},Da={[-5]:bt,[-4]:bt,[-3]:bt,33:aa,38:Fr,42:_t,60:[so,Go],91:ua,92:[Mo,Pr],93:Zt,95:_t,96:Co},La={null:[_t,va]},Ra={null:[42,95]},za={null:[]},Ma=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Ra,contentInitial:Ia,disable:za,document:Aa,flow:Pa,flowInitial:Ta,insideSpan:La,string:Fa,text:Da},Symbol.toStringTag,{value:"Module"}));function _a(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},o=[];let l=[],a=[];const c={attempt:L(T),check:L(w),consume:j,enter:S,exit:P,interrupt:L(w,{interrupt:!0})},u={code:null,containerState:{},defineSkip:k,events:[],now:x,parser:e,previous:null,sliceSerialize:d,sliceStream:p,write:h};let f=n.tokenize.call(u,c);return n.resolveAll&&o.push(n),u;function h(I){return l=fe(l,I),C(),l[l.length-1]!==null?[]:(F(n,0),u.events=ft(o,u.events,u),u.events)}function d(I,D){return Ba(p(I),D)}function p(I){return Oa(l,I)}function x(){const{_bufferIndex:I,_index:D,line:V,column:R,offset:N}=r;return{_bufferIndex:I,_index:D,line:V,column:R,offset:N}}function k(I){i[I.line]=I.column,b()}function C(){let I;for(;r._index<l.length;){const D=l[r._index];if(typeof D=="string")for(I=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===I&&r._bufferIndex<D.length;)y(D.charCodeAt(r._bufferIndex));else y(D)}}function y(I){f=f(I)}function j(I){M(I)?(r.line++,r.column=1,r.offset+=I===-3?2:1,b()):I!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=I}function S(I,D){const V=D||{};return V.type=I,V.start=x(),u.events.push(["enter",V,u]),a.push(V),V}function P(I){const D=a.pop();return D.end=x(),u.events.push(["exit",D,u]),D}function T(I,D){F(I,D.from)}function w(I,D){D.restore()}function L(I,D){return V;function V(R,N,B){let J,le,_,g;return Array.isArray(R)?ne(R):"tokenize"in R?ne([R]):Q(R);function Q(ee){return Ee;function Ee(me){const ge=me!==null&&ee[me],je=me!==null&&ee.null,et=[...Array.isArray(ge)?ge:ge?[ge]:[],...Array.isArray(je)?je:je?[je]:[]];return ne(et)(me)}}function ne(ee){return J=ee,le=0,ee.length===0?B:m(ee[le])}function m(ee){return Ee;function Ee(me){return g=O(),_=ee,ee.partial||(u.currentConstruct=ee),ee.name&&u.parser.constructs.disable.null.includes(ee.name)?Z():ee.tokenize.call(D?Object.assign(Object.create(u),D):u,c,H,Z)(me)}}function H(ee){return I(_,g),N}function Z(ee){return g.restore(),++le<J.length?m(J[le]):B}}}function F(I,D){I.resolveAll&&!o.includes(I)&&o.push(I),I.resolve&&he(u.events,D,u.events.length-D,I.resolve(u.events.slice(D),u)),I.resolveTo&&(u.events=I.resolveTo(u.events,u))}function O(){const I=x(),D=u.previous,V=u.currentConstruct,R=u.events.length,N=Array.from(a);return{from:R,restore:B};function B(){r=I,u.previous=D,u.currentConstruct=V,u.events.length=R,a=N,b()}}function b(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Oa(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,o=n.end._bufferIndex;let l;if(t===i)l=[e[t].slice(r,o)];else{if(l=e.slice(t,i),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function Ba(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const o=e[t];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
53
+ `;break}case-3:{l=`\r
54
+ `;break}case-2:{l=n?" ":" ";break}case-1:{if(!n&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function $a(e){const r={constructs:Ar([Ma,...(e||{}).extensions||[]]),content:i(to),defined:[],document:i(ro),flow:i(Ca),lazy:{},string:i(Sa),text:i(Ea)};return r;function i(o){return l;function l(a){return _a(r,o,a)}}}function qa(e){for(;!Dr(e););return e}const zn=/[\0\t\n\r]/g;function Ha(){let e=1,n="",t=!0,r;return i;function i(o,l,a){const c=[];let u,f,h,d,p;for(o=n+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),h=0,n="",t&&(o.charCodeAt(0)===65279&&h++,t=void 0);h<o.length;){if(zn.lastIndex=h,u=zn.exec(o),d=u&&u.index!==void 0?u.index:o.length,p=o.charCodeAt(d),!u){n=o.slice(h);break}if(p===10&&h===d&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),h<d&&(c.push(o.slice(h,d)),e+=d-h),p){case 0:{c.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,c.push(-2);e++<f;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}h=d+1}return a&&(r&&c.push(-5),n&&c.push(n),c.push(null)),c}}const Ua=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Va(e){return e.replace(Ua,Wa)}function Wa(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),o=i===120||i===88;return Ir(t.slice(o?2:1),o?16:10)}return Jt(t)||e}const Or={}.hasOwnProperty;function Ya(e,n,t){return typeof n!="string"&&(t=n,n=void 0),Qa(t)(qa($a(t).document().write(Ha()(e,n,!0))))}function Qa(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(dn),autolinkProtocol:O,autolinkEmail:O,atxHeading:o(hn),blockQuote:o(je),characterEscape:O,characterReference:O,codeFenced:o(et),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(et,l),codeText:o(yi,l),codeTextData:O,data:O,codeFlowValue:O,definition:o(wi),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(bi),hardBreakEscape:o(fn),hardBreakTrailing:o(fn),htmlFlow:o(pn,l),htmlFlowData:O,htmlText:o(pn,l),htmlTextData:O,image:o(ki),label:l,link:o(dn),listItem:o(Ci),listItemValue:d,listOrdered:o(mn,h),listUnordered:o(mn),paragraph:o(ji),reference:m,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(hn),strong:o(vi),thematicBreak:o(Ei)},exit:{atxHeading:c(),atxHeadingSequence:T,autolink:c(),autolinkEmail:ge,autolinkProtocol:me,blockQuote:c(),characterEscapeValue:b,characterReferenceMarkerHexadecimal:Z,characterReferenceMarkerNumeric:Z,characterReferenceValue:ee,characterReference:Ee,codeFenced:c(C),codeFencedFence:k,codeFencedFenceInfo:p,codeFencedFenceMeta:x,codeFlowValue:b,codeIndented:c(y),codeText:c(N),codeTextData:b,data:b,definition:c(),definitionDestinationString:P,definitionLabelString:j,definitionTitleString:S,emphasis:c(),hardBreakEscape:c(D),hardBreakTrailing:c(D),htmlFlow:c(V),htmlFlowData:b,htmlText:c(R),htmlTextData:b,image:c(J),label:_,labelText:le,lineEnding:I,link:c(B),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:H,resourceDestinationString:g,resourceTitleString:Q,resource:ne,setextHeading:c(F),setextHeadingLineSequence:L,setextHeadingText:w,strong:c(),thematicBreak:c()}};Br(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(v){let A={type:"root",children:[]};const $={stack:[A],tokenStack:[],config:n,enter:a,exit:u,buffer:l,resume:f,data:t},W=[];let X=-1;for(;++X<v.length;)if(v[X][1].type==="listOrdered"||v[X][1].type==="listUnordered")if(v[X][0]==="enter")W.push(X);else{const pe=W.pop();X=i(v,pe,X)}for(X=-1;++X<v.length;){const pe=n[v[X][0]];Or.call(pe,v[X][1].type)&&pe[v[X][1].type].call(Object.assign({sliceSerialize:v[X][2].sliceSerialize},$),v[X][1])}if($.tokenStack.length>0){const pe=$.tokenStack[$.tokenStack.length-1];(pe[1]||Mn).call($,void 0,pe[0])}for(A.position={start:ve(v.length>0?v[0][1].start:{line:1,column:1,offset:0}),end:ve(v.length>0?v[v.length-2][1].end:{line:1,column:1,offset:0})},X=-1;++X<n.transforms.length;)A=n.transforms[X](A)||A;return A}function i(v,A,$){let W=A-1,X=-1,pe=!1,Ne,be,Oe,Be;for(;++W<=$;){const ue=v[W];switch(ue[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ue[0]==="enter"?X++:X--,Be=void 0;break}case"lineEndingBlank":{ue[0]==="enter"&&(Ne&&!Be&&!X&&!Oe&&(Oe=W),Be=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Be=void 0}if(!X&&ue[0]==="enter"&&ue[1].type==="listItemPrefix"||X===-1&&ue[0]==="exit"&&(ue[1].type==="listUnordered"||ue[1].type==="listOrdered")){if(Ne){let Pe=W;for(be=void 0;Pe--;){const ke=v[Pe];if(ke[1].type==="lineEnding"||ke[1].type==="lineEndingBlank"){if(ke[0]==="exit")continue;be&&(v[be][1].type="lineEndingBlank",pe=!0),ke[1].type="lineEnding",be=Pe}else if(!(ke[1].type==="linePrefix"||ke[1].type==="blockQuotePrefix"||ke[1].type==="blockQuotePrefixWhitespace"||ke[1].type==="blockQuoteMarker"||ke[1].type==="listItemIndent"))break}Oe&&(!be||Oe<be)&&(Ne._spread=!0),Ne.end=Object.assign({},be?v[be][1].start:ue[1].end),v.splice(be||W,0,["exit",Ne,ue[2]]),W++,$++}if(ue[1].type==="listItemPrefix"){const Pe={type:"listItem",_spread:!1,start:Object.assign({},ue[1].start),end:void 0};Ne=Pe,v.splice(W,0,["enter",Pe,ue[2]]),W++,$++,Oe=void 0,Be=!0}}}return v[A][1]._spread=pe,$}function o(v,A){return $;function $(W){a.call(this,v(W),W),A&&A.call(this,W)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(v,A,$){this.stack[this.stack.length-1].children.push(v),this.stack.push(v),this.tokenStack.push([A,$||void 0]),v.position={start:ve(A.start),end:void 0}}function c(v){return A;function A($){v&&v.call(this,$),u.call(this,$)}}function u(v,A){const $=this.stack.pop(),W=this.tokenStack.pop();if(W)W[0].type!==v.type&&(A?A.call(this,v,W[0]):(W[1]||Mn).call(this,v,W[0]));else throw new Error("Cannot close `"+v.type+"` ("+We({start:v.start,end:v.end})+"): it’s not open");$.position.end=ve(v.end)}function f(){return Kt(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function d(v){if(this.data.expectingFirstListItemValue){const A=this.stack[this.stack.length-2];A.start=Number.parseInt(this.sliceSerialize(v),10),this.data.expectingFirstListItemValue=void 0}}function p(){const v=this.resume(),A=this.stack[this.stack.length-1];A.lang=v}function x(){const v=this.resume(),A=this.stack[this.stack.length-1];A.meta=v}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const v=this.resume(),A=this.stack[this.stack.length-1];A.value=v.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const v=this.resume(),A=this.stack[this.stack.length-1];A.value=v.replace(/(\r?\n|\r)$/g,"")}function j(v){const A=this.resume(),$=this.stack[this.stack.length-1];$.label=A,$.identifier=de(this.sliceSerialize(v)).toLowerCase()}function S(){const v=this.resume(),A=this.stack[this.stack.length-1];A.title=v}function P(){const v=this.resume(),A=this.stack[this.stack.length-1];A.url=v}function T(v){const A=this.stack[this.stack.length-1];if(!A.depth){const $=this.sliceSerialize(v).length;A.depth=$}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function L(v){const A=this.stack[this.stack.length-1];A.depth=this.sliceSerialize(v).codePointAt(0)===61?1:2}function F(){this.data.setextHeadingSlurpLineEnding=void 0}function O(v){const $=this.stack[this.stack.length-1].children;let W=$[$.length-1];(!W||W.type!=="text")&&(W=Si(),W.position={start:ve(v.start),end:void 0},$.push(W)),this.stack.push(W)}function b(v){const A=this.stack.pop();A.value+=this.sliceSerialize(v),A.position.end=ve(v.end)}function I(v){const A=this.stack[this.stack.length-1];if(this.data.atHardBreak){const $=A.children[A.children.length-1];$.position.end=ve(v.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(A.type)&&(O.call(this,v),b.call(this,v))}function D(){this.data.atHardBreak=!0}function V(){const v=this.resume(),A=this.stack[this.stack.length-1];A.value=v}function R(){const v=this.resume(),A=this.stack[this.stack.length-1];A.value=v}function N(){const v=this.resume(),A=this.stack[this.stack.length-1];A.value=v}function B(){const v=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";v.type+="Reference",v.referenceType=A,delete v.url,delete v.title}else delete v.identifier,delete v.label;this.data.referenceType=void 0}function J(){const v=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";v.type+="Reference",v.referenceType=A,delete v.url,delete v.title}else delete v.identifier,delete v.label;this.data.referenceType=void 0}function le(v){const A=this.sliceSerialize(v),$=this.stack[this.stack.length-2];$.label=Va(A),$.identifier=de(A).toLowerCase()}function _(){const v=this.stack[this.stack.length-1],A=this.resume(),$=this.stack[this.stack.length-1];if(this.data.inReference=!0,$.type==="link"){const W=v.children;$.children=W}else $.alt=A}function g(){const v=this.resume(),A=this.stack[this.stack.length-1];A.url=v}function Q(){const v=this.resume(),A=this.stack[this.stack.length-1];A.title=v}function ne(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function H(v){const A=this.resume(),$=this.stack[this.stack.length-1];$.label=A,$.identifier=de(this.sliceSerialize(v)).toLowerCase(),this.data.referenceType="full"}function Z(v){this.data.characterReferenceType=v.type}function ee(v){const A=this.sliceSerialize(v),$=this.data.characterReferenceType;let W;$?(W=Ir(A,$==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):W=Jt(A);const X=this.stack[this.stack.length-1];X.value+=W}function Ee(v){const A=this.stack.pop();A.position.end=ve(v.end)}function me(v){b.call(this,v);const A=this.stack[this.stack.length-1];A.url=this.sliceSerialize(v)}function ge(v){b.call(this,v);const A=this.stack[this.stack.length-1];A.url="mailto:"+this.sliceSerialize(v)}function je(){return{type:"blockquote",children:[]}}function et(){return{type:"code",lang:null,meta:null,value:""}}function yi(){return{type:"inlineCode",value:""}}function wi(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function bi(){return{type:"emphasis",children:[]}}function hn(){return{type:"heading",depth:0,children:[]}}function fn(){return{type:"break"}}function pn(){return{type:"html",value:""}}function ki(){return{type:"image",title:null,url:"",alt:null}}function dn(){return{type:"link",title:null,url:"",children:[]}}function mn(v){return{type:"list",ordered:v.type==="listOrdered",start:null,spread:v._spread,children:[]}}function Ci(v){return{type:"listItem",spread:v._spread,checked:null,children:[]}}function ji(){return{type:"paragraph",children:[]}}function vi(){return{type:"strong",children:[]}}function Si(){return{type:"text",value:""}}function Ei(){return{type:"thematicBreak"}}}function ve(e){return{line:e.line,column:e.column,offset:e.offset}}function Br(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Br(e,r):Xa(e,r)}}function Xa(e,n){let t;for(t in n)if(Or.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function Mn(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+We({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+We({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+We({start:n.start,end:n.end})+") is still open")}function Ga(e){const n=this;n.parser=t;function t(r){return Ya(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Ka(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function Ja(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
55
+ `}]}function Za(e,n){const t=n.value?n.value+`
56
+ `:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(o.data={meta:n.meta}),e.patch(n,o),o=e.applyData(n,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(n,o),o}function es(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ts(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ns(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=_e(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,a+=1,e.footnoteCounts.set(r,a);const c={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(n,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(n,u),e.applyData(n,u)}function rs(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function is(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function $r(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function ls(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return $r(e,n);const i={src:_e(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,o),e.applyData(n,o)}function os(e,n){const t={src:_e(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function as(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function ss(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return $r(e,n);const i={href:_e(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,o),e.applyData(n,o)}function us(e,n){const t={href:_e(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function cs(e,n,t){const r=e.all(n),i=t?hs(t):qr(n),o={},l=[];if(typeof n.checked=="boolean"){const f=r[0];let h;f&&f.type==="element"&&f.tagName==="p"?h=f:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(i||a!==0||f.type!=="element"||f.tagName!=="p")&&l.push({type:"text",value:`
57
+ `}),f.type==="element"&&f.tagName==="p"&&!i?l.push(...f.children):l.push(f)}const c=r[r.length-1];c&&(i||c.type!=="element"||c.tagName!=="p")&&l.push({type:"text",value:`
58
+ `});const u={type:"element",tagName:"li",properties:o,children:l};return e.patch(n,u),e.applyData(n,u)}function hs(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=qr(t[r])}return n}function qr(e){const n=e.spread;return n??e.children.length>1}function fs(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const o={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,o),e.applyData(n,o)}function ps(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ds(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function ms(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function gs(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],l),i.push(l)}if(t.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},a=Yt(n.children[1]),c=kr(n.children[n.children.length-1]);a&&c&&(l.position={start:a,end:c}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,o),e.applyData(n,o)}function xs(e,n,t){const r=t?t.children:void 0,o=(r?r.indexOf(n):1)===0?"th":"td",l=t&&t.type==="table"?t.align:void 0,a=l?l.length:n.children.length;let c=-1;const u=[];for(;++c<a;){const h=n.children[c],d={},p=l?l[c]:void 0;p&&(d.align=p);let x={type:"element",tagName:o,properties:d,children:[]};h&&(x.children=e.all(h),e.patch(h,x),x=e.applyData(h,x)),u.push(x)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(n,f),e.applyData(n,f)}function ys(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const _n=9,On=32;function ws(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const o=[];for(;r;)o.push(Bn(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return o.push(Bn(n.slice(i),i>0,!1)),o.join("")}function Bn(e,n,t){let r=0,i=e.length;if(n){let o=e.codePointAt(r);for(;o===_n||o===On;)r++,o=e.codePointAt(r)}if(t){let o=e.codePointAt(i-1);for(;o===_n||o===On;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function bs(e,n){const t={type:"text",value:ws(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function ks(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const Cs={blockquote:Ka,break:Ja,code:Za,delete:es,emphasis:ts,footnoteReference:ns,heading:rs,html:is,imageReference:ls,image:os,inlineCode:as,linkReference:ss,link:us,listItem:cs,list:fs,paragraph:ps,root:ds,strong:ms,table:gs,tableCell:ys,tableRow:xs,text:bs,thematicBreak:ks,toml:tt,yaml:tt,definition:tt,footnoteDefinition:tt};function tt(){}const Hr=-1,pt=0,Qe=1,st=2,en=3,tn=4,nn=5,rn=6,Ur=7,Vr=8,$n=typeof self=="object"?self:globalThis,js=(e,n)=>{const t=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=n[i];switch(o){case pt:case Hr:return t(l,i);case Qe:{const a=t([],i);for(const c of l)a.push(r(c));return a}case st:{const a=t({},i);for(const[c,u]of l)a[r(c)]=r(u);return a}case en:return t(new Date(l),i);case tn:{const{source:a,flags:c}=l;return t(new RegExp(a,c),i)}case nn:{const a=t(new Map,i);for(const[c,u]of l)a.set(r(c),r(u));return a}case rn:{const a=t(new Set,i);for(const c of l)a.add(r(c));return a}case Ur:{const{name:a,message:c}=l;return t(new $n[a](c),i)}case Vr:return t(BigInt(l),i);case"BigInt":return t(Object(BigInt(l)),i);case"ArrayBuffer":return t(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:a}=new Uint8Array(l);return t(new DataView(a),l)}}return t(new $n[o](l),i)};return r},qn=e=>js(new Map,e)(0),De="",{toString:vs}={},{keys:Ss}=Object,Ue=e=>{const n=typeof e;if(n!=="object"||!e)return[pt,n];const t=vs.call(e).slice(8,-1);switch(t){case"Array":return[Qe,De];case"Object":return[st,De];case"Date":return[en,De];case"RegExp":return[tn,De];case"Map":return[nn,De];case"Set":return[rn,De];case"DataView":return[Qe,t]}return t.includes("Array")?[Qe,t]:t.includes("Error")?[Ur,t]:[st,t]},nt=([e,n])=>e===pt&&(n==="function"||n==="symbol"),Es=(e,n,t,r)=>{const i=(l,a)=>{const c=r.push(l)-1;return t.set(a,c),c},o=l=>{if(t.has(l))return t.get(l);let[a,c]=Ue(l);switch(a){case pt:{let f=l;switch(c){case"bigint":a=Vr,f=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);f=null;break;case"undefined":return i([Hr],l)}return i([a,f],l)}case Qe:{if(c){let d=l;return c==="DataView"?d=new Uint8Array(l.buffer):c==="ArrayBuffer"&&(d=new Uint8Array(l)),i([c,[...d]],l)}const f=[],h=i([a,f],l);for(const d of l)f.push(o(d));return h}case st:{if(c)switch(c){case"BigInt":return i([c,l.toString()],l);case"Boolean":case"Number":case"String":return i([c,l.valueOf()],l)}if(n&&"toJSON"in l)return o(l.toJSON());const f=[],h=i([a,f],l);for(const d of Ss(l))(e||!nt(Ue(l[d])))&&f.push([o(d),o(l[d])]);return h}case en:return i([a,l.toISOString()],l);case tn:{const{source:f,flags:h}=l;return i([a,{source:f,flags:h}],l)}case nn:{const f=[],h=i([a,f],l);for(const[d,p]of l)(e||!(nt(Ue(d))||nt(Ue(p))))&&f.push([o(d),o(p)]);return h}case rn:{const f=[],h=i([a,f],l);for(const d of l)(e||!nt(Ue(d)))&&f.push(o(d));return h}}const{message:u}=l;return i([a,{name:c,message:u}],l)};return o},Hn=(e,{json:n,lossy:t}={})=>{const r=[];return Es(!(n||t),!!n,new Map,r)(e),r},ut=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?qn(Hn(e,n)):structuredClone(e):(e,n)=>qn(Hn(e,n));function Ns(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function As(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function Is(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||Ns,r=e.options.footnoteBackLabel||As,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let c=-1;for(;++c<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[c]);if(!u)continue;const f=e.all(u),h=String(u.identifier).toUpperCase(),d=_e(h.toLowerCase());let p=0;const x=[],k=e.footnoteCounts.get(h);for(;k!==void 0&&++p<=k;){x.length>0&&x.push({type:"text",value:" "});let j=typeof t=="string"?t:t(c,p);typeof j=="string"&&(j={type:"text",value:j}),x.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,p),className:["data-footnote-backref"]},children:Array.isArray(j)?j:[j]})}const C=f[f.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const j=C.children[C.children.length-1];j&&j.type==="text"?j.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...x)}else f.push(...x);const y={type:"element",tagName:"li",properties:{id:n+"fn-"+d},children:e.wrap(f,!0)};e.patch(u,y),a.push(y)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...ut(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
59
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
60
+ `}]}}const dt=(function(e){if(e==null)return Ds;if(typeof e=="function")return mt(e);if(typeof e=="object")return Array.isArray(e)?Ts(e):Ps(e);if(typeof e=="string")return Fs(e);throw new Error("Expected function, string, or object as test")});function Ts(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=dt(e[t]);return mt(r);function r(...i){let o=-1;for(;++o<n.length;)if(n[o].apply(this,i))return!0;return!1}}function Ps(e){const n=e;return mt(t);function t(r){const i=r;let o;for(o in e)if(i[o]!==n[o])return!1;return!0}}function Fs(e){return mt(n);function n(t){return t&&t.type===e}}function mt(e){return n;function n(t,r,i){return!!(Ls(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function Ds(){return!0}function Ls(e){return e!==null&&typeof e=="object"&&"type"in e}const Wr=[],Rs=!0,Ot=!1,zs="skip";function Yr(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const o=dt(i),l=r?-1:1;a(e,void 0,[])();function a(c,u,f){const h=c&&typeof c=="object"?c:{};if(typeof h.type=="string"){const p=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(c.type+(p?"<"+p+">":""))+")"})}return d;function d(){let p=Wr,x,k,C;if((!n||o(c,u,f[f.length-1]||void 0))&&(p=Ms(t(c,f)),p[0]===Ot))return p;if("children"in c&&c.children){const y=c;if(y.children&&p[0]!==zs)for(k=(r?y.children.length:-1)+l,C=f.concat(y);k>-1&&k<y.children.length;){const j=y.children[k];if(x=a(j,k,C)(),x[0]===Ot)return x;k=typeof x[1]=="number"?x[1]:k+l}}return p}}}function Ms(e){return Array.isArray(e)?e:typeof e=="number"?[Rs,e]:e==null?Wr:[e]}function ln(e,n,t,r){let i,o,l;typeof n=="function"&&typeof t!="function"?(o=void 0,l=n,i=t):(o=n,l=t,i=r),Yr(e,o,a,i);function a(c,u){const f=u[u.length-1],h=f?f.children.indexOf(c):void 0;return l(c,h,f)}}const Bt={}.hasOwnProperty,_s={};function Os(e,n){const t=n||_s,r=new Map,i=new Map,o=new Map,l={...Cs,...t.handlers},a={all:u,applyData:$s,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:c,options:t,patch:Bs,wrap:Hs};return ln(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const h=f.type==="definition"?r:i,d=String(f.identifier).toUpperCase();h.has(d)||h.set(d,f)}}),a;function c(f,h){const d=f.type,p=a.handlers[d];if(Bt.call(a.handlers,d)&&p)return p(a,f,h);if(a.options.passThrough&&a.options.passThrough.includes(d)){if("children"in f){const{children:k,...C}=f,y=ut(C);return y.children=a.all(f),y}return ut(f)}return(a.options.unknownHandler||qs)(a,f,h)}function u(f){const h=[];if("children"in f){const d=f.children;let p=-1;for(;++p<d.length;){const x=a.one(d[p],f);if(x){if(p&&d[p-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=Un(x.value)),!Array.isArray(x)&&x.type==="element")){const k=x.children[0];k&&k.type==="text"&&(k.value=Un(k.value))}Array.isArray(x)?h.push(...x):h.push(x)}}}return h}}function Bs(e,n){e.position&&(n.position=Nl(e))}function $s(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const l="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:l}}t.type==="element"&&o&&Object.assign(t.properties,ut(o)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function qs(e,n){const t=n.data||{},r="value"in n&&!(Bt.call(t,"hProperties")||Bt.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Hs(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
61
+ `});++r<e.length;)r&&t.push({type:"text",value:`
62
+ `}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
63
+ `}),t}function Un(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function Vn(e,n){const t=Os(e,n),r=t.one(e,void 0),i=Is(t),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
64
+ `},i),o}function Us(e,n){return e&&"run"in e?async function(t,r){const i=Vn(t,{file:r,...n});await e.run(i,r)}:function(t,r){return Vn(t,{file:r,...e||n})}}function Wn(e){if(e)throw e}var kt,Yn;function Vs(){if(Yn)return kt;Yn=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):n.call(u)==="[object Array]"},o=function(u){if(!u||n.call(u)!=="[object Object]")return!1;var f=e.call(u,"constructor"),h=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!f&&!h)return!1;var d;for(d in u);return typeof d>"u"||e.call(u,d)},l=function(u,f){t&&f.name==="__proto__"?t(u,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):u[f.name]=f.newValue},a=function(u,f){if(f==="__proto__")if(e.call(u,f)){if(r)return r(u,f).value}else return;return u[f]};return kt=function c(){var u,f,h,d,p,x,k=arguments[0],C=1,y=arguments.length,j=!1;for(typeof k=="boolean"&&(j=k,k=arguments[1]||{},C=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});C<y;++C)if(u=arguments[C],u!=null)for(f in u)h=a(k,f),d=a(u,f),k!==d&&(j&&d&&(o(d)||(p=i(d)))?(p?(p=!1,x=h&&i(h)?h:[]):x=h&&o(h)?h:{},l(k,{name:f,newValue:c(j,x,d)})):typeof d<"u"&&l(k,{name:f,newValue:d}));return k},kt}var Ws=Vs();const Ct=ar(Ws);function $t(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ys(){const e=[],n={run:t,use:r};return n;function t(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...i);function a(c,...u){const f=e[++o];let h=-1;if(c){l(c);return}for(;++h<i.length;)(u[h]===null||u[h]===void 0)&&(u[h]=i[h]);i=u,f?Qs(f,a)(...u):l(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Qs(e,n){let t;return r;function r(...l){const a=e.length>l.length;let c;a&&l.push(i);try{c=e.apply(this,l)}catch(u){const f=u;if(a&&t)throw f;return i(f)}a||(c&&c.then&&typeof c.then=="function"?c.then(o,i):c instanceof Error?i(c):o(c))}function i(l,...a){t||(t=!0,n(l,...a))}function o(l){i(null,l)}}const xe={basename:Xs,dirname:Gs,extname:Ks,join:Js,sep:"/"};function Xs(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Ze(e);let t=0,r=-1,i=e.length,o;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let l=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else l<0&&(o=!0,l=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=l));return t===r?r=l:r<0&&(r=e.length),e.slice(t,r)}function Gs(e){if(Ze(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Ks(e){Ze(e);let n=e.length,t=-1,r=0,i=-1,o=0,l;for(;n--;){const a=e.codePointAt(n);if(a===47){if(l){r=n+1;break}continue}t<0&&(l=!0,t=n+1),a===46?i<0?i=n:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||t<0||o===0||o===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function Js(...e){let n=-1,t;for(;++n<e.length;)Ze(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Zs(t)}function Zs(e){Ze(e);const n=e.codePointAt(0)===47;let t=eu(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function eu(e,n){let t="",r=0,i=-1,o=0,l=-1,a,c;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(c=t.lastIndexOf("/"),c!==t.length-1){c<0?(t="",r=0):(t=t.slice(0,c),r=t.length-1-t.lastIndexOf("/")),i=l,o=0;continue}}else if(t.length>0){t="",r=0,i=l,o=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,l):t=e.slice(i+1,l),r=l-i-1;i=l,o=0}else a===46&&o>-1?o++:o=-1}return t}function Ze(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const tu={cwd:nu};function nu(){return"/"}function qt(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ru(e){if(typeof e=="string")e=new URL(e);else if(!qt(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return iu(e)}function iu(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}const jt=["history","path","basename","stem","extname","dirname"];class Qr{constructor(n){let t;n?qt(n)?t={path:n}:typeof n=="string"||lu(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":tu.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<jt.length;){const o=jt[r];o in t&&t[o]!==void 0&&t[o]!==null&&(this[o]=o==="history"?[...t[o]]:t[o])}let i;for(i in t)jt.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?xe.basename(this.path):void 0}set basename(n){St(n,"basename"),vt(n,"basename"),this.path=xe.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?xe.dirname(this.path):void 0}set dirname(n){Qn(this.basename,"dirname"),this.path=xe.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?xe.extname(this.path):void 0}set extname(n){if(vt(n,"extname"),Qn(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=xe.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){qt(n)&&(n=ru(n)),St(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?xe.basename(this.path,this.extname):void 0}set stem(n){St(n,"stem"),vt(n,"stem"),this.path=xe.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new ie(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function vt(e,n){if(e&&e.includes(xe.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+xe.sep+"`")}function St(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function Qn(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function lu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ou=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),au={}.hasOwnProperty;class on extends ou{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Ys()}copy(){const n=new on;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(Ct(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(At("data",this.frozen),this.namespace[n]=t,this):au.call(this.namespace,n)&&this.namespace[n]||void 0:n?(At("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=rt(n),r=this.parser||this.Parser;return Et("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),Et("process",this.parser||this.Parser),Nt("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(o,l){const a=rt(n),c=r.parse(a);r.run(c,a,function(f,h,d){if(f||!h||!d)return u(f);const p=h,x=r.stringify(p,d);cu(x)?d.value=x:d.result=x,u(f,d)});function u(f,h){f||!h?l(f):o?o(h):t(void 0,h)}}}processSync(n){let t=!1,r;return this.freeze(),Et("processSync",this.parser||this.Parser),Nt("processSync",this.compiler||this.Compiler),this.process(n,i),Gn("processSync","process",t),r;function i(o,l){t=!0,Wn(o),r=l}}run(n,t,r){Xn(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?o(void 0,r):new Promise(o);function o(l,a){const c=rt(t);i.run(n,c,u);function u(f,h,d){const p=h||n;f?a(f):l?l(p):r(void 0,p,d)}}}runSync(n,t){let r=!1,i;return this.run(n,t,o),Gn("runSync","run",r),i;function o(l,a){Wn(l),i=a,r=!0}}stringify(n,t){this.freeze();const r=rt(t),i=this.compiler||this.Compiler;return Nt("stringify",i),Xn(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(At("use",this.frozen),n!=null)if(typeof n=="function")c(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):l(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function o(u){if(typeof u=="function")c(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...h]=u;c(f,h)}else l(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function l(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=Ct(!0,i.settings,u.settings))}function a(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const h=u[f];o(h)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function c(u,f){let h=-1,d=-1;for(;++h<r.length;)if(r[h][0]===u){d=h;break}if(d===-1)r.push([u,...f]);else if(f.length>0){let[p,...x]=f;const k=r[d][1];$t(k)&&$t(p)&&(p=Ct(!0,k,p)),r[d]=[u,p,...x]}}}}const su=new on().freeze();function Et(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Nt(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function At(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Xn(e){if(!$t(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Gn(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function rt(e){return uu(e)?e:new Qr(e)}function uu(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function cu(e){return typeof e=="string"||hu(e)}function hu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const fu="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Kn=[],Jn={allowDangerousHtml:!0},pu=/^(https?|ircs?|mailto|xmpp)$/i,du=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function mu(e){const n=gu(e),t=xu(e);return yu(n.runSync(n.parse(t),t),e)}function gu(e){const n=e.rehypePlugins||Kn,t=e.remarkPlugins||Kn,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Jn}:Jn;return su().use(Ga).use(t).use(Us,r).use(n)}function xu(e){const n=e.children||"",t=new Qr;return typeof n=="string"&&(t.value=n),t}function yu(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,o=n.disallowedElements,l=n.skipHtml,a=n.unwrapDisallowed,c=n.urlTransform||wu;for(const f of du)Object.hasOwn(n,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+fu+f.id,void 0);return ln(e,u),Fl(e,{Fragment:s.Fragment,components:i,ignoreInvalidStyle:!0,jsx:s.jsx,jsxs:s.jsxs,passKeys:!0,passNode:!0});function u(f,h,d){if(f.type==="raw"&&d&&typeof h=="number")return l?d.children.splice(h,1):d.children[h]={type:"text",value:f.value},h;if(f.type==="element"){let p;for(p in yt)if(Object.hasOwn(yt,p)&&Object.hasOwn(f.properties,p)){const x=f.properties[p],k=yt[p];(k===null||k.includes(f.tagName))&&(f.properties[p]=c(String(x||""),p,f))}}if(f.type==="element"){let p=t?!t.includes(f.tagName):o?o.includes(f.tagName):!1;if(!p&&r&&typeof h=="number"&&(p=!r(f,h,d)),p&&d&&typeof h=="number")return a&&f.children?d.children.splice(h,1,...f.children):d.children.splice(h,1),h}}}function wu(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||pu.test(e.slice(0,n))?e:""}function Zn(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function bu(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ku(e,n,t){const i=dt((t||{}).ignore||[]),o=Cu(n);let l=-1;for(;++l<o.length;)Yr(e,"text",a);function a(u,f){let h=-1,d;for(;++h<f.length;){const p=f[h],x=d?d.children:void 0;if(i(p,x?x.indexOf(p):void 0,d))return;d=p}if(d)return c(u,f)}function c(u,f){const h=f[f.length-1],d=o[l][0],p=o[l][1];let x=0;const C=h.children.indexOf(u);let y=!1,j=[];d.lastIndex=0;let S=d.exec(u.value);for(;S;){const P=S.index,T={index:S.index,input:S.input,stack:[...f,u]};let w=p(...S,T);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?d.lastIndex=P+1:(x!==P&&j.push({type:"text",value:u.value.slice(x,P)}),Array.isArray(w)?j.push(...w):w&&j.push(w),x=P+S[0].length,y=!0),!d.global)break;S=d.exec(u.value)}return y?(x<u.value.length&&j.push({type:"text",value:u.value.slice(x)}),h.children.splice(C,1,...j)):j=[u],C+j.length}}function Cu(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([ju(i[0]),vu(i[1])])}return n}function ju(e){return typeof e=="string"?new RegExp(bu(e),"g"):e}function vu(e){return typeof e=="function"?e:function(){return e}}const It="phrasing",Tt=["autolink","link","image","label"];function Su(){return{transforms:[Fu],enter:{literalAutolink:Nu,literalAutolinkEmail:Pt,literalAutolinkHttp:Pt,literalAutolinkWww:Pt},exit:{literalAutolink:Pu,literalAutolinkEmail:Tu,literalAutolinkHttp:Au,literalAutolinkWww:Iu}}}function Eu(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:It,notInConstruct:Tt},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:It,notInConstruct:Tt},{character:":",before:"[ps]",after:"\\/",inConstruct:It,notInConstruct:Tt}]}}function Nu(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Pt(e){this.config.enter.autolinkProtocol.call(this,e)}function Au(e){this.config.exit.autolinkProtocol.call(this,e)}function Iu(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function Tu(e){this.config.exit.autolinkEmail.call(this,e)}function Pu(e){this.exit(e)}function Fu(e){ku(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Du],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Lu]],{ignore:["link","linkReference"]})}function Du(e,n,t,r,i){let o="";if(!Xr(i)||(/^w/i.test(n)&&(t=n+t,n="",o="http://"),!Ru(t)))return!1;const l=zu(t+r);if(!l[0])return!1;const a={type:"link",title:null,url:o+n+l[0],children:[{type:"text",value:n+l[0]}]};return l[1]?[a,{type:"text",value:l[1]}]:a}function Lu(e,n,t,r){return!Xr(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function Ru(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function zu(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=Zn(e,"(");let o=Zn(e,")");for(;r!==-1&&i>o;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),o++;return[e,t]}function Xr(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||Ie(t)||ht(t))&&(!n||t!==47)}Gr.peek=Vu;function Mu(){this.buffer()}function _u(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Ou(){this.buffer()}function Bu(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function $u(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=de(this.sliceSerialize(e)).toLowerCase(),t.label=n}function qu(e){this.exit(e)}function Hu(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=de(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Uu(e){this.exit(e)}function Vu(){return"["}function Gr(e,n,t,r){const i=t.createTracker(r);let o=i.move("[^");const l=t.enter("footnoteReference"),a=t.enter("reference");return o+=i.move(t.safe(t.associationId(e),{after:"]",before:o})),a(),l(),o+=i.move("]"),o}function Wu(){return{enter:{gfmFootnoteCallString:Mu,gfmFootnoteCall:_u,gfmFootnoteDefinitionLabelString:Ou,gfmFootnoteDefinition:Bu},exit:{gfmFootnoteCallString:$u,gfmFootnoteCall:qu,gfmFootnoteDefinitionLabelString:Hu,gfmFootnoteDefinition:Uu}}}function Yu(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:Gr},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,o,l){const a=o.createTracker(l);let c=a.move("[^");const u=o.enter("footnoteDefinition"),f=o.enter("label");return c+=a.move(o.safe(o.associationId(r),{before:c,after:"]"})),f(),c+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),c+=a.move((n?`
65
+ `:" ")+o.indentLines(o.containerFlow(r,a.current()),n?Kr:Qu))),u(),c}}function Qu(e,n,t){return n===0?e:Kr(e,n,t)}function Kr(e,n,t){return(t?"":" ")+e}const Xu=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Jr.peek=ec;function Gu(){return{canContainEols:["delete"],enter:{strikethrough:Ju},exit:{strikethrough:Zu}}}function Ku(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Xu}],handlers:{delete:Jr}}}function Ju(e){this.enter({type:"delete",children:[]},e)}function Zu(e){this.exit(e)}function Jr(e,n,t,r){const i=t.createTracker(r),o=t.enter("strikethrough");let l=i.move("~~");return l+=t.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),o(),l}function ec(){return"~"}function tc(e){return e.length}function nc(e,n){const t=n||{},r=(t.align||[]).concat(),i=t.stringLength||tc,o=[],l=[],a=[],c=[];let u=0,f=-1;for(;++f<e.length;){const k=[],C=[];let y=-1;for(e[f].length>u&&(u=e[f].length);++y<e[f].length;){const j=rc(e[f][y]);if(t.alignDelimiters!==!1){const S=i(j);C[y]=S,(c[y]===void 0||S>c[y])&&(c[y]=S)}k.push(j)}l[f]=k,a[f]=C}let h=-1;if(typeof r=="object"&&"length"in r)for(;++h<u;)o[h]=er(r[h]);else{const k=er(r);for(;++h<u;)o[h]=k}h=-1;const d=[],p=[];for(;++h<u;){const k=o[h];let C="",y="";k===99?(C=":",y=":"):k===108?C=":":k===114&&(y=":");let j=t.alignDelimiters===!1?1:Math.max(1,c[h]-C.length-y.length);const S=C+"-".repeat(j)+y;t.alignDelimiters!==!1&&(j=C.length+j+y.length,j>c[h]&&(c[h]=j),p[h]=j),d[h]=S}l.splice(1,0,d),a.splice(1,0,p),f=-1;const x=[];for(;++f<l.length;){const k=l[f],C=a[f];h=-1;const y=[];for(;++h<u;){const j=k[h]||"";let S="",P="";if(t.alignDelimiters!==!1){const T=c[h]-(C[h]||0),w=o[h];w===114?S=" ".repeat(T):w===99?T%2?(S=" ".repeat(T/2+.5),P=" ".repeat(T/2-.5)):(S=" ".repeat(T/2),P=S):P=" ".repeat(T)}t.delimiterStart!==!1&&!h&&y.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&j==="")&&(t.delimiterStart!==!1||h)&&y.push(" "),t.alignDelimiters!==!1&&y.push(S),y.push(j),t.alignDelimiters!==!1&&y.push(P),t.padding!==!1&&y.push(" "),(t.delimiterEnd!==!1||h!==u-1)&&y.push("|")}x.push(t.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return x.join(`
66
+ `)}function rc(e){return e==null?"":String(e)}function er(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function ic(e,n,t,r){const i=t.enter("blockquote"),o=t.createTracker(r);o.move("> "),o.shift(2);const l=t.indentLines(t.containerFlow(e,o.current()),lc);return i(),l}function lc(e,n,t){return">"+(t?"":" ")+e}function oc(e,n){return tr(e,n.inConstruct,!0)&&!tr(e,n.notInConstruct,!1)}function tr(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function nr(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;)if(t.unsafe[i].character===`
67
+ `&&oc(t.stack,t.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
68
+ `}function ac(e,n){const t=String(e);let r=t.indexOf(n),i=r,o=0,l=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>l&&(l=o):o=1,i=r+n.length,r=t.indexOf(n,i);return l}function sc(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function uc(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function cc(e,n,t,r){const i=uc(t),o=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(sc(e,t)){const h=t.enter("codeIndented"),d=t.indentLines(o,hc);return h(),d}const a=t.createTracker(r),c=i.repeat(Math.max(ac(o,i)+1,3)),u=t.enter("codeFenced");let f=a.move(c);if(e.lang){const h=t.enter(`codeFencedLang${l}`);f+=a.move(t.safe(e.lang,{before:f,after:" ",encode:["`"],...a.current()})),h()}if(e.lang&&e.meta){const h=t.enter(`codeFencedMeta${l}`);f+=a.move(" "),f+=a.move(t.safe(e.meta,{before:f,after:`
69
+ `,encode:["`"],...a.current()})),h()}return f+=a.move(`
70
+ `),o&&(f+=a.move(o+`
71
+ `)),f+=a.move(c),u(),f}function hc(e,n,t){return(t?"":" ")+e}function an(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function fc(e,n,t,r){const i=an(t),o=i==='"'?"Quote":"Apostrophe",l=t.enter("definition");let a=t.enter("label");const c=t.createTracker(r);let u=c.move("[");return u+=c.move(t.safe(t.associationId(e),{before:u,after:"]",...c.current()})),u+=c.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(t.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(a=t.enter("destinationRaw"),u+=c.move(t.safe(e.url,{before:u,after:e.title?" ":`
72
+ `,...c.current()}))),a(),e.title&&(a=t.enter(`title${o}`),u+=c.move(" "+i),u+=c.move(t.safe(e.title,{before:u,after:i,...c.current()})),u+=c.move(i),a()),l(),u}function pc(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function Ge(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ct(e,n,t){const r=ze(e),i=ze(n);return r===void 0?i===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Zr.peek=dc;function Zr(e,n,t,r){const i=pc(t),o=t.enter("emphasis"),l=t.createTracker(r),a=l.move(i);let c=l.move(t.containerPhrasing(e,{after:i,before:a,...l.current()}));const u=c.charCodeAt(0),f=ct(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(c=Ge(u)+c.slice(1));const h=c.charCodeAt(c.length-1),d=ct(r.after.charCodeAt(0),h,i);d.inside&&(c=c.slice(0,-1)+Ge(h));const p=l.move(i);return o(),t.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},a+c+p}function dc(e,n,t){return t.options.emphasis||"*"}function mc(e,n){let t=!1;return ln(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return t=!0,Ot}),!!((!e.depth||e.depth<3)&&Kt(e)&&(n.options.setext||t))}function gc(e,n,t,r){const i=Math.max(Math.min(6,e.depth||1),1),o=t.createTracker(r);if(mc(e,t)){const f=t.enter("headingSetext"),h=t.enter("phrasing"),d=t.containerPhrasing(e,{...o.current(),before:`
73
+ `,after:`
74
+ `});return h(),f(),d+`
75
+ `+(i===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
76
+ `))+1))}const l="#".repeat(i),a=t.enter("headingAtx"),c=t.enter("phrasing");o.move(l+" ");let u=t.containerPhrasing(e,{before:"# ",after:`
77
+ `,...o.current()});return/^[\t ]/.test(u)&&(u=Ge(u.charCodeAt(0))+u.slice(1)),u=u?l+" "+u:l,t.options.closeAtx&&(u+=" "+l),c(),a(),u}ei.peek=xc;function ei(e){return e.value||""}function xc(){return"<"}ti.peek=yc;function ti(e,n,t,r){const i=an(t),o=i==='"'?"Quote":"Apostrophe",l=t.enter("image");let a=t.enter("label");const c=t.createTracker(r);let u=c.move("![");return u+=c.move(t.safe(e.alt,{before:u,after:"]",...c.current()})),u+=c.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(t.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(a=t.enter("destinationRaw"),u+=c.move(t.safe(e.url,{before:u,after:e.title?" ":")",...c.current()}))),a(),e.title&&(a=t.enter(`title${o}`),u+=c.move(" "+i),u+=c.move(t.safe(e.title,{before:u,after:i,...c.current()})),u+=c.move(i),a()),u+=c.move(")"),l(),u}function yc(){return"!"}ni.peek=wc;function ni(e,n,t,r){const i=e.referenceType,o=t.enter("imageReference");let l=t.enter("label");const a=t.createTracker(r);let c=a.move("![");const u=t.safe(e.alt,{before:c,after:"]",...a.current()});c+=a.move(u+"]["),l();const f=t.stack;t.stack=[],l=t.enter("reference");const h=t.safe(t.associationId(e),{before:c,after:"]",...a.current()});return l(),t.stack=f,o(),i==="full"||!u||u!==h?c+=a.move(h+"]"):i==="shortcut"?c=c.slice(0,-1):c+=a.move("]"),c}function wc(){return"!"}ri.peek=bc;function ri(e,n,t){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<t.unsafe.length;){const l=t.unsafe[o],a=t.compilePattern(l);let c;if(l.atBreak)for(;c=a.exec(r);){let u=c.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(c.index+1)}}return i+r+i}function bc(){return"`"}function ii(e,n){const t=Kt(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}li.peek=kc;function li(e,n,t,r){const i=an(t),o=i==='"'?"Quote":"Apostrophe",l=t.createTracker(r);let a,c;if(ii(e,t)){const f=t.stack;t.stack=[],a=t.enter("autolink");let h=l.move("<");return h+=l.move(t.containerPhrasing(e,{before:h,after:">",...l.current()})),h+=l.move(">"),a(),t.stack=f,h}a=t.enter("link"),c=t.enter("label");let u=l.move("[");return u+=l.move(t.containerPhrasing(e,{before:u,after:"](",...l.current()})),u+=l.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=t.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(t.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(c=t.enter("destinationRaw"),u+=l.move(t.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),c(),e.title&&(c=t.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(t.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),c()),u+=l.move(")"),a(),u}function kc(e,n,t){return ii(e,t)?"<":"["}oi.peek=Cc;function oi(e,n,t,r){const i=e.referenceType,o=t.enter("linkReference");let l=t.enter("label");const a=t.createTracker(r);let c=a.move("[");const u=t.containerPhrasing(e,{before:c,after:"]",...a.current()});c+=a.move(u+"]["),l();const f=t.stack;t.stack=[],l=t.enter("reference");const h=t.safe(t.associationId(e),{before:c,after:"]",...a.current()});return l(),t.stack=f,o(),i==="full"||!u||u!==h?c+=a.move(h+"]"):i==="shortcut"?c=c.slice(0,-1):c+=a.move("]"),c}function Cc(){return"["}function sn(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function jc(e){const n=sn(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function vc(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function ai(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function Sc(e,n,t,r){const i=t.enter("list"),o=t.bulletCurrent;let l=e.ordered?vc(t):sn(t);const a=e.ordered?l==="."?")":".":jc(t);let c=n&&t.bulletLastUsed?l===t.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&f&&(!f.children||!f.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(c=!0),ai(t)===l&&f){let h=-1;for(;++h<e.children.length;){const d=e.children[h];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(l=a),t.bulletCurrent=l;const u=t.containerFlow(e,r);return t.bulletLastUsed=l,t.bulletCurrent=o,i(),u}function Ec(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function Nc(e,n,t,r){const i=Ec(t);let o=t.bulletCurrent||sn(t);n&&n.type==="list"&&n.ordered&&(o=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(l=Math.ceil(l/4)*4);const a=t.createTracker(r);a.move(o+" ".repeat(l-o.length)),a.shift(l);const c=t.enter("listItem"),u=t.indentLines(t.containerFlow(e,a.current()),f);return c(),u;function f(h,d,p){return d?(p?"":" ".repeat(l))+h:(p?o:o+" ".repeat(l-o.length))+h}}function Ac(e,n,t,r){const i=t.enter("paragraph"),o=t.enter("phrasing"),l=t.containerPhrasing(e,r);return o(),i(),l}const Ic=dt(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Tc(e,n,t,r){return(e.children.some(function(l){return Ic(l)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function Pc(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}si.peek=Fc;function si(e,n,t,r){const i=Pc(t),o=t.enter("strong"),l=t.createTracker(r),a=l.move(i+i);let c=l.move(t.containerPhrasing(e,{after:i,before:a,...l.current()}));const u=c.charCodeAt(0),f=ct(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(c=Ge(u)+c.slice(1));const h=c.charCodeAt(c.length-1),d=ct(r.after.charCodeAt(0),h,i);d.inside&&(c=c.slice(0,-1)+Ge(h));const p=l.move(i+i);return o(),t.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},a+c+p}function Fc(e,n,t){return t.options.strong||"*"}function Dc(e,n,t,r){return t.safe(e.value,r)}function Lc(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function Rc(e,n,t){const r=(ai(t)+(t.options.ruleSpaces?" ":"")).repeat(Lc(t));return t.options.ruleSpaces?r.slice(0,-1):r}const ui={blockquote:ic,break:nr,code:cc,definition:fc,emphasis:Zr,hardBreak:nr,heading:gc,html:ei,image:ti,imageReference:ni,inlineCode:ri,link:li,linkReference:oi,list:Sc,listItem:Nc,paragraph:Ac,root:Tc,strong:si,text:Dc,thematicBreak:Rc};function zc(){return{enter:{table:Mc,tableData:rr,tableHeader:rr,tableRow:Oc},exit:{codeText:Bc,table:_c,tableData:Ft,tableHeader:Ft,tableRow:Ft}}}function Mc(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function _c(e){this.exit(e),this.data.inTable=void 0}function Oc(e){this.enter({type:"tableRow",children:[]},e)}function Ft(e){this.exit(e)}function rr(e){this.enter({type:"tableCell",children:[]},e)}function Bc(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,$c));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function $c(e,n){return n==="|"?n:e}function qc(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,o=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
78
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:l,tableCell:c,tableRow:a}};function l(p,x,k,C){return u(f(p,k,C),p.align)}function a(p,x,k,C){const y=h(p,k,C),j=u([y]);return j.slice(0,j.indexOf(`
79
+ `))}function c(p,x,k,C){const y=k.enter("tableCell"),j=k.enter("phrasing"),S=k.containerPhrasing(p,{...C,before:o,after:o});return j(),y(),S}function u(p,x){return nc(p,{align:x,alignDelimiters:r,padding:t,stringLength:i})}function f(p,x,k){const C=p.children;let y=-1;const j=[],S=x.enter("table");for(;++y<C.length;)j[y]=h(C[y],x,k);return S(),j}function h(p,x,k){const C=p.children;let y=-1;const j=[],S=x.enter("tableRow");for(;++y<C.length;)j[y]=c(C[y],p,x,k);return S(),j}function d(p,x,k){let C=ui.inlineCode(p,x,k);return k.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function Hc(){return{exit:{taskListCheckValueChecked:ir,taskListCheckValueUnchecked:ir,paragraph:Vc}}}function Uc(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Wc}}}function ir(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function Vc(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const r=t.children[0];if(r&&r.type==="text"){const i=n.children;let o=-1,l;for(;++o<i.length;){const a=i[o];if(a.type==="paragraph"){l=a;break}}l===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Wc(e,n,t,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",a=t.createTracker(r);o&&a.move(l);let c=ui.listItem(e,n,t,{...r,...a.current()});return o&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),c;function u(f){return f+l}}function Yc(){return[Su(),Wu(),Gu(),zc(),Hc()]}function Qc(e){return{extensions:[Eu(),Yu(e),Ku(),qc(e),Uc()]}}const Xc={tokenize:th,partial:!0},ci={tokenize:nh,partial:!0},hi={tokenize:rh,partial:!0},fi={tokenize:ih,partial:!0},Gc={tokenize:lh,partial:!0},pi={name:"wwwAutolink",tokenize:Zc,previous:mi},di={name:"protocolAutolink",tokenize:eh,previous:gi},Ce={name:"emailAutolink",tokenize:Jc,previous:xi},we={};function Kc(){return{text:we}}let Ae=48;for(;Ae<123;)we[Ae]=Ce,Ae++,Ae===58?Ae=65:Ae===91&&(Ae=97);we[43]=Ce;we[45]=Ce;we[46]=Ce;we[95]=Ce;we[72]=[Ce,di];we[104]=[Ce,di];we[87]=[Ce,pi];we[119]=[Ce,pi];function Jc(e,n,t){const r=this;let i,o;return l;function l(h){return!Ht(h)||!xi.call(r,r.previous)||un(r.events)?t(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(h))}function a(h){return Ht(h)?(e.consume(h),a):h===64?(e.consume(h),c):t(h)}function c(h){return h===46?e.check(Gc,f,u)(h):h===45||h===95||re(h)?(o=!0,e.consume(h),c):f(h)}function u(h){return e.consume(h),i=!0,c}function f(h){return o&&i&&oe(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(h)):t(h)}}function Zc(e,n,t){const r=this;return i;function i(l){return l!==87&&l!==119||!mi.call(r,r.previous)||un(r.events)?t(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Xc,e.attempt(ci,e.attempt(hi,o),t),t)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(l)}}function eh(e,n,t){const r=this;let i="",o=!1;return l;function l(h){return(h===72||h===104)&&gi.call(r,r.previous)&&!un(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(h),e.consume(h),a):t(h)}function a(h){if(oe(h)&&i.length<5)return i+=String.fromCodePoint(h),e.consume(h),a;if(h===58){const d=i.toLowerCase();if(d==="http"||d==="https")return e.consume(h),c}return t(h)}function c(h){return h===47?(e.consume(h),o?u:(o=!0,c)):t(h)}function u(h){return h===null||at(h)||G(h)||Ie(h)||ht(h)?t(h):e.attempt(ci,e.attempt(hi,f),t)(h)}function f(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(h)}}function th(e,n,t){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):t(l)}function o(l){return l===null?t(l):n(l)}}function nh(e,n,t){let r,i,o;return l;function l(u){return u===46||u===95?e.check(fi,c,a)(u):u===null||G(u)||Ie(u)||u!==45&&ht(u)?c(u):(o=!0,e.consume(u),l)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),l}function c(u){return i||r||!o?t(u):n(u)}}function rh(e,n){let t=0,r=0;return i;function i(l){return l===40?(t++,e.consume(l),i):l===41&&r<t?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(fi,n,o)(l):l===null||G(l)||Ie(l)?n(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function ih(e,n,t){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||G(a)||Ie(a)?n(a):t(a)}function i(a){return a===null||a===40||a===91||G(a)||Ie(a)?n(a):r(a)}function o(a){return oe(a)?l(a):t(a)}function l(a){return a===59?(e.consume(a),r):oe(a)?(e.consume(a),l):t(a)}}function lh(e,n,t){return r;function r(o){return e.consume(o),i}function i(o){return re(o)?t(o):n(o)}}function mi(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||G(e)}function gi(e){return!oe(e)}function xi(e){return!(e===47||Ht(e))}function Ht(e){return e===43||e===45||e===46||e===95||re(e)}function un(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const oh={tokenize:dh,partial:!0};function ah(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:hh,continuation:{tokenize:fh},exit:ph}},text:{91:{name:"gfmFootnoteCall",tokenize:ch},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:sh,resolveTo:uh}}}}function sh(e,n,t){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const c=r.events[i][1];if(c.type==="labelImage"){l=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return a;function a(c){if(!l||!l._balanced)return t(c);const u=de(r.sliceSerialize({start:l.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?t(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),n(c))}}function uh(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",o,n],["enter",l,n],["exit",l,n],["exit",o,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...a),e}function ch(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return a;function a(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),c}function c(h){return h!==94?t(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(h){if(o>999||h===93&&!l||h===null||h===91||G(h))return t(h);if(h===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return i.includes(de(r.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(h)}return G(h)||(l=!0),o++,e.consume(h),h===92?f:u}function f(h){return h===91||h===92||h===93?(e.consume(h),o++,u):u(h)}}function hh(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,a;return c;function c(x){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(x){return x===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(x)}function f(x){if(l>999||x===93&&!a||x===null||x===91||G(x))return t(x);if(x===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return o=de(r.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return G(x)||(a=!0),l++,e.consume(x),x===92?h:f}function h(x){return x===91||x===92||x===93?(e.consume(x),l++,f):f(x)}function d(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),i.includes(o)||i.push(o),Y(e,p,"gfmFootnoteDefinitionWhitespace")):t(x)}function p(x){return n(x)}}function fh(e,n,t){return e.check(Je,n,e.attempt(oh,n,t))}function ph(e){e.exit("gfmFootnoteDefinition")}function dh(e,n,t){const r=this;return Y(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?n(o):t(o)}}function mh(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,a){let c=-1;for(;++c<l.length;)if(l[c][0]==="enter"&&l[c][1].type==="strikethroughSequenceTemporary"&&l[c][1]._close){let u=c;for(;u--;)if(l[u][0]==="exit"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._open&&l[c][1].end.offset-l[c][1].start.offset===l[u][1].end.offset-l[u][1].start.offset){l[c][1].type="strikethroughSequence",l[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},l[u][1].start),end:Object.assign({},l[c][1].end)},h={type:"strikethroughText",start:Object.assign({},l[u][1].end),end:Object.assign({},l[c][1].start)},d=[["enter",f,a],["enter",l[u][1],a],["exit",l[u][1],a],["enter",h,a]],p=a.parser.constructs.insideSpan.null;p&&he(d,d.length,0,ft(p,l.slice(u+1,c),a)),he(d,d.length,0,[["exit",h,a],["enter",l[c][1],a],["exit",l[c][1],a],["exit",f,a]]),he(l,u-1,c-u+3,d),c=u+d.length-2;break}}for(c=-1;++c<l.length;)l[c][1].type==="strikethroughSequenceTemporary"&&(l[c][1].type="data");return l}function o(l,a,c){const u=this.previous,f=this.events;let h=0;return d;function d(x){return u===126&&f[f.length-1][1].type!=="characterEscape"?c(x):(l.enter("strikethroughSequenceTemporary"),p(x))}function p(x){const k=ze(u);if(x===126)return h>1?c(x):(l.consume(x),h++,p);if(h<2&&!t)return c(x);const C=l.exit("strikethroughSequenceTemporary"),y=ze(x);return C._open=!y||y===2&&!!k,C._close=!k||k===2&&!!y,a(x)}}}class gh{constructor(){this.map=[]}add(n,t,r){xh(this,n,t,r)}consume(n){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const o of i)n.push(o);i=r.pop()}this.map.length=0}}function xh(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function yh(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function wh(){return{flow:{null:{name:"table",tokenize:bh,resolveAll:kh}}}}function bh(e,n,t){const r=this;let i=0,o=0,l;return a;function a(b){let I=r.events.length-1;for(;I>-1;){const R=r.events[I][1].type;if(R==="lineEnding"||R==="linePrefix")I--;else break}const D=I>-1?r.events[I][1].type:null,V=D==="tableHead"||D==="tableRow"?w:c;return V===w&&r.parser.lazy[r.now().line]?t(b):V(b)}function c(b){return e.enter("tableHead"),e.enter("tableRow"),u(b)}function u(b){return b===124||(l=!0,o+=1),f(b)}function f(b){return b===null?t(b):M(b)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),p):t(b):U(b)?Y(e,f,"whitespace")(b):(o+=1,l&&(l=!1,i+=1),b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),h(b)))}function h(b){return b===null||b===124||G(b)?(e.exit("data"),f(b)):(e.consume(b),b===92?d:h)}function d(b){return b===92||b===124?(e.consume(b),h):h(b)}function p(b){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(b):(e.enter("tableDelimiterRow"),l=!1,U(b)?Y(e,x,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):x(b))}function x(b){return b===45||b===58?C(b):b===124?(l=!0,e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),k):T(b)}function k(b){return U(b)?Y(e,C,"whitespace")(b):C(b)}function C(b){return b===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),y):b===45?(o+=1,y(b)):b===null||M(b)?P(b):T(b)}function y(b){return b===45?(e.enter("tableDelimiterFiller"),j(b)):T(b)}function j(b){return b===45?(e.consume(b),j):b===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(b))}function S(b){return U(b)?Y(e,P,"whitespace")(b):P(b)}function P(b){return b===124?x(b):b===null||M(b)?!l||i!==o?T(b):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(b)):T(b)}function T(b){return t(b)}function w(b){return e.enter("tableRow"),L(b)}function L(b){return b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),L):b===null||M(b)?(e.exit("tableRow"),n(b)):U(b)?Y(e,L,"whitespace")(b):(e.enter("data"),F(b))}function F(b){return b===null||b===124||G(b)?(e.exit("data"),L(b)):(e.consume(b),b===92?O:F)}function O(b){return b===92||b===124?(e.consume(b),F):F(b)}}function kh(e,n){let t=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],a=!1,c=0,u,f,h;const d=new gh;for(;++t<e.length;){const p=e[t],x=p[1];p[0]==="enter"?x.type==="tableHead"?(a=!1,c!==0&&(lr(d,n,c,u,f),f=void 0,c=0),u={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},d.add(t,0,[["enter",u,n]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(r=!0,h=void 0,o=[0,0,0,0],l=[0,t+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},d.add(t,0,[["enter",f,n]])),i=x.type==="tableDelimiterRow"?2:f?3:1):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],h=it(d,n,o,i,void 0,h),o=[0,0,0,0]),l[2]=t)):x.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],h=it(d,n,o,i,void 0,h)),o=l,l=[o[1],t,0,0])):x.type==="tableHead"?(a=!0,c=t):x.type==="tableRow"||x.type==="tableDelimiterRow"?(c=t,o[1]!==0?(l[0]=l[1],h=it(d,n,o,i,t,h)):l[1]!==0&&(h=it(d,n,l,i,t,h)),i=0):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(l[3]=t)}for(c!==0&&lr(d,n,c,u,f),d.consume(n.events),t=-1;++t<n.events.length;){const p=n.events[t];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=yh(n.events,t))}return e}function it(e,n,t,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";t[0]!==0&&(o.end=Object.assign({},Le(n.events,t[0])),e.add(t[0],0,[["exit",o,n]]));const c=Le(n.events,t[1]);if(o={type:l,start:Object.assign({},c),end:Object.assign({},c)},e.add(t[1],0,[["enter",o,n]]),t[2]!==0){const u=Le(n.events,t[2]),f=Le(n.events,t[3]),h={type:a,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(t[2],0,[["enter",h,n]]),r!==2){const d=n.events[t[2]],p=n.events[t[3]];if(d[1].end=Object.assign({},p[1].end),d[1].type="chunkText",d[1].contentType="text",t[3]>t[2]+1){const x=t[2]+1,k=t[3]-t[2]-1;e.add(x,k,[])}}e.add(t[3]+1,0,[["exit",h,n]])}return i!==void 0&&(o.end=Object.assign({},Le(n.events,i)),e.add(i,0,[["exit",o,n]]),o=void 0),o}function lr(e,n,t,r,i){const o=[],l=Le(n.events,t);i&&(i.end=Object.assign({},l),o.push(["exit",i,n])),r.end=Object.assign({},l),o.push(["exit",r,n]),e.add(t+1,0,o)}function Le(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const Ch={name:"tasklistCheck",tokenize:vh};function jh(){return{text:{91:Ch}}}function vh(e,n,t){const r=this;return i;function i(c){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),o)}function o(c){return G(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),l):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),l):t(c)}function l(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):t(c)}function a(c){return M(c)?n(c):U(c)?e.check({tokenize:Sh},n,t)(c):t(c)}}function Sh(e,n,t){return Y(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function Eh(e){return Ar([Kc(),ah(),mh(e),wh(),jh()])}const Nh={};function Ah(e){const n=this,t=e||Nh,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Eh(t)),o.push(Yc()),l.push(Qc(t))}function Ih({content:e,className:n}){const t=e.trim().replace(/^#+ .+$/m,"").trim();return s.jsx(mu,{remarkPlugins:[Ah],components:{h1:({children:r})=>s.jsx("h1",{className:"text-lg font-bold text-gray-900 mb-3 mt-6 first:mt-0 pb-1 border-b border-gray-200",children:r}),h2:({children:r})=>s.jsx("h2",{className:"text-base font-semibold text-gray-900 mb-2 mt-5 first:mt-0",children:r}),h3:({children:r})=>s.jsx("h3",{className:"text-sm font-semibold text-gray-800 mb-2 mt-4 first:mt-0",children:r}),p:({children:r})=>s.jsx("p",{className:"text-sm text-gray-700 mb-3 leading-relaxed",children:r}),ul:({children:r})=>s.jsx("ul",{className:"list-disc ml-5 text-sm text-gray-700 mb-3 space-y-1.5",children:r}),ol:({children:r})=>s.jsx("ol",{className:"list-decimal ml-5 text-sm text-gray-700 mb-3 space-y-1.5",children:r}),li:({children:r})=>s.jsx("li",{className:"leading-relaxed",children:r}),code:({children:r,className:i})=>(i==null?void 0:i.includes("language-"))?s.jsx("pre",{className:"bg-gray-100 rounded p-3 text-xs font-mono overflow-x-auto mb-3",children:s.jsx("code",{children:r})}):s.jsx("code",{className:"bg-gray-100 px-1.5 py-0.5 rounded text-xs font-mono text-gray-800",children:r}),pre:({children:r})=>s.jsx(s.Fragment,{children:r}),strong:({children:r})=>s.jsx("strong",{className:"font-semibold text-gray-900",children:r}),blockquote:({children:r})=>s.jsx("blockquote",{className:"border-l-4 border-gray-300 pl-4 italic text-gray-600 mb-3",children:r}),table:({children:r})=>s.jsx("div",{className:"overflow-x-auto mb-3",children:s.jsx("table",{className:"min-w-full text-sm border-collapse border border-gray-200",children:r})}),thead:({children:r})=>s.jsx("thead",{className:"bg-gray-50",children:r}),th:({children:r})=>s.jsx("th",{className:"border border-gray-200 px-3 py-2 text-left font-semibold text-gray-900",children:r}),td:({children:r})=>s.jsx("td",{className:"border border-gray-200 px-3 py-2 text-gray-700",children:r}),a:({children:r,href:i})=>s.jsx("a",{href:i,className:"text-[#005C75] hover:underline",target:"_blank",rel:"noopener noreferrer",children:r})},children:t})}function Th(e){const n=new Date(e),r=new Date().getTime()-n.getTime(),i=Math.floor(r/(1e3*60*60*24));return i===0?"Today":i===1?"Yesterday":i<7?`${i} days ago`:n.toLocaleDateString()}function cn({rule:e,onEdit:n,onDelete:t,isReviewed:r,onToggleReviewed:i,changeType:o,isUncommitted:l,changeDate:a,diff:c,isFadingOut:u,showLeftBorder:f}){const[h,d]=z.useState(!1),[p,x]=z.useState(!1),k=e.frontmatter.category||"faq",C=z.useMemo(()=>Ki(e.body,e.filePath),[e.body,e.filePath]),y=Ve(e.body.length),j=f?nl(k):void 0,S=h?"#3e3e3e":l?"#d97706":"#c7c7c7",P=`rounded-lg border overflow-hidden transition-all ease-in-out ${l?"bg-amber-50 border-amber-300":"bg-white border-gray-200"}`,T={...j&&{borderLeft:`2px solid ${j}`},...u&&{opacity:0,maxHeight:0,paddingTop:0,paddingBottom:0,marginBottom:0,borderWidth:0,transitionDuration:"600ms"}};return s.jsxs("div",{className:P,style:T,children:[s.jsx("div",{className:`p-4 cursor-pointer ${l?"hover:bg-amber-100":"hover:bg-gray-50"}`,onClick:()=>d(!h),children:s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("span",{className:"w-4 inline-flex items-center justify-center shrink-0",style:{transform:h?"rotate(90deg)":"none",transition:"transform 0.2s"},children:s.jsx("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M1.5 1.268L8.5 6L1.5 10.732V1.268Z",fill:S})})}),s.jsx("div",{className:`w-10 h-10 rounded-lg ${Zi(k)} flex items-center justify-center flex-shrink-0`,style:el(k),children:s.jsx(rl,{category:k})}),s.jsxs("div",{className:"flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("h3",{style:{fontSize:"14px",lineHeight:"18px",fontWeight:500,color:l?"#78350f":"#000"},children:C}),s.jsx("span",{className:`px-2 py-0.5 rounded font-medium uppercase tracking-wider ${Ji[k]}`,style:{fontSize:"10px",...tl(k)},children:pr[k]}),o&&s.jsx("span",{className:`px-2 py-0.5 rounded uppercase font-medium tracking-wider ${o==="deleted"?"bg-red-100 text-red-700":""}`,style:{fontSize:"10px",...o==="added"&&{backgroundColor:"#CBF3FA",color:"#005C75"},...o==="modified"&&{backgroundColor:"#FFE8C1",color:"#C67E06"}},children:o}),l&&s.jsx("span",{className:"px-2 py-0.5 bg-amber-200 text-amber-800 rounded font-medium uppercase tracking-wider",style:{fontSize:"10px"},children:"Uncommitted"}),s.jsxs("span",{className:"text-xs text-gray-400",children:["~",y.toLocaleString()," tokens"]})]}),s.jsx("div",{className:"flex items-center gap-2 text-xs text-gray-500 flex-wrap",children:e.frontmatter.paths&&e.frontmatter.paths.length>0&&s.jsxs(s.Fragment,{children:[e.frontmatter.paths.slice(0,2).map((w,L)=>s.jsx("span",{className:"px-2 py-0.5 bg-gray-100 text-gray-500 rounded font-mono",children:w},L)),e.frontmatter.paths.length>2&&s.jsxs("span",{className:"text-gray-400 whitespace-nowrap",children:["+",e.frontmatter.paths.length-2," more"]})]})})]})]}),s.jsxs("div",{className:"flex items-center gap-3 flex-shrink-0",children:[a?s.jsx("span",{className:"text-xs text-gray-400",children:Th(a)}):e.frontmatter.timestamp&&s.jsxs("span",{className:"text-xs text-gray-400",children:["Updated"," ",new Date(e.frontmatter.timestamp).toLocaleDateString()]}),i&&s.jsx("button",{onClick:w=>{w.stopPropagation(),i(e.filePath,e.lastModified,r??!1)},className:"w-6 h-6 rounded-full border-2 flex items-center justify-center cursor-pointer transition-colors",style:{borderColor:r?"#22c55e":"#d1d5db",backgroundColor:r?"#22c55e":"transparent"},title:r?"Mark as unreviewed":"Mark as reviewed",children:r&&s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M11.5 4L5.5 10L2.5 7",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})}),h&&s.jsxs("div",{className:`border-t ${l?"border-amber-200":"border-gray-100"}`,children:[s.jsxs("div",{className:`px-4 py-3 flex items-center justify-between ${l?"bg-amber-50":"bg-white"}`,children:[s.jsx("div",{className:"flex items-center gap-2",children:o==="modified"&&c&&s.jsxs("button",{onClick:w=>{w.stopPropagation(),x(!p)},className:`flex items-center gap-1 px-2 py-1 text-sm rounded cursor-pointer ${p?l?"bg-amber-200 text-amber-900":"bg-gray-200 text-gray-900":l?"text-amber-700 hover:text-amber-900 hover:bg-amber-100":"text-gray-600 hover:text-gray-900 hover:bg-gray-100"}`,children:[s.jsx(ur,{className:"w-3 h-3"}),p?"Hide Diff":"Show Diff"]})}),o!=="deleted"&&s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("button",{onClick:w=>{w.stopPropagation(),n(e)},className:`flex items-center gap-1 px-2 py-1 text-sm rounded cursor-pointer ${l?"text-amber-700 hover:text-amber-900 hover:bg-amber-100":"text-gray-600 hover:text-gray-900 hover:bg-gray-100"}`,children:[s.jsx(Vi,{className:"w-3 h-3"}),"Edit"]}),s.jsxs("button",{onClick:w=>{w.stopPropagation(),t(e)},className:"flex items-center gap-1 px-2 py-1 text-sm rounded cursor-pointer text-red-600 hover:text-red-800 hover:bg-red-100",children:[s.jsx(Xi,{className:"w-3 h-3"}),"Delete"]})]})]}),p&&c&&s.jsx("pre",{className:"mx-4 mb-4 p-4 text-xs font-mono overflow-x-auto bg-gray-900 text-gray-100 max-h-64 overflow-y-auto rounded-md",children:c.split(`
80
+ `).map((w,L)=>{let F="";return w.startsWith("+")&&!w.startsWith("+++")?F="text-green-400":w.startsWith("-")&&!w.startsWith("---")?F="text-red-400":w.startsWith("@@")&&(F="text-cyan-400"),s.jsx("div",{className:F,children:w},L)})}),e.frontmatter.paths&&e.frontmatter.paths.length>0&&s.jsxs("div",{className:"mx-4 mb-3",children:[s.jsx("div",{className:"text-xs text-gray-500 mb-1.5 font-medium",children:"Applies to paths:"}),s.jsx("div",{className:"flex flex-wrap gap-1.5",children:e.frontmatter.paths.map((w,L)=>s.jsx("span",{className:"px-2 py-0.5 bg-gray-100 text-gray-600 rounded font-mono text-xs",children:w},L))})]}),!p&&s.jsx("div",{className:"mx-4 mb-4 p-4 rounded border max-h-[500px] overflow-auto bg-white border-gray-200",children:s.jsx(Ih,{content:e.body})})]})]})}function Ph(){return`---
81
+ paths:
82
+ - '**/*.ts'
83
+ category: faq
84
+ timestamp: ${new Date().toISOString().split(".")[0]+"Z"}
85
+ ---
86
+
87
+ ## Title
88
+
89
+ Description here.
90
+
91
+ **Learned:** ${new Date().toISOString().split("T")[0]} from [context]
92
+ `}function or({rule:e,onSave:n,onCancel:t}){const[r,i]=z.useState((e==null?void 0:e.filePath)||""),[o,l]=z.useState((e==null?void 0:e.content)||Ph()),[a,c]=z.useState(!!e),u=!e;return s.jsxs("div",{className:"p-6",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsx("h3",{className:"text-lg font-semibold",style:{fontFamily:"Sora"},children:e?"Edit Rule":"Create New Rule"}),s.jsx("button",{onClick:t,className:"text-gray-400 hover:text-gray-600 cursor-pointer",children:s.jsx(cr,{className:"w-5 h-5"})})]}),u&&s.jsxs("div",{className:"mb-6",children:[s.jsx("div",{className:"bg-[#f0f9ff] border border-[#bae6fd] rounded-lg p-4 mb-4",children:s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx(ur,{className:"w-5 h-5 text-[#0284c7] mt-0.5 flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-medium text-[#0c4a6e] mb-1",children:"Recommended: Use Claude Code"}),s.jsx("p",{className:"text-sm text-[#0369a1] mb-2",children:"Run this command in Claude Code to create a properly formatted rule with the right file location and paths:"}),s.jsx("code",{className:"block bg-white px-3 py-2 rounded border border-[#bae6fd] font-mono text-sm text-[#0c4a6e]",children:"/codeyam:new-rule"})]})]})}),s.jsxs("button",{onClick:()=>c(!a),className:"flex items-center gap-2 text-sm text-gray-600 hover:text-gray-900 cursor-pointer",children:[s.jsx("span",{className:"w-4 inline-flex items-center justify-center shrink-0",style:{transform:a?"rotate(90deg)":"none",transition:"transform 0.2s"},children:s.jsx("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M1.5 1.268L8.5 6L1.5 10.732V1.268Z",fill:a?"#3e3e3e":"#c7c7c7"})})}),"Or create manually"]})]}),(a||!u)&&s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"File Path (relative to .claude/rules/)"}),s.jsxs("div",{className:"relative",children:[s.jsx("input",{type:"text",value:r,onChange:f=>i(f.target.value),placeholder:"e.g., src/webserver/architecture.md",className:"w-full px-3 py-2 pr-10 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-[#005C75] focus:border-transparent font-mono text-sm",disabled:!!e}),s.jsx("button",{onClick:()=>{navigator.clipboard.writeText(r)},className:"absolute right-2 top-1/2 -translate-y-1/2 p-1 text-gray-400 hover:text-gray-600 cursor-pointer",title:"Copy path",children:s.jsx(Fi,{className:"w-4 h-4"})})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Content"}),s.jsx("textarea",{value:o,onChange:f=>l(f.target.value),rows:20,className:"w-full px-3 py-2 border border-gray-700 rounded-md focus:outline-none focus:ring-2 focus:ring-[#005C75] focus:border-transparent font-mono text-sm bg-gray-900 text-gray-100 [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-track]:bg-gray-800 [&::-webkit-scrollbar-thumb]:bg-gray-600 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:hover:bg-gray-500 [&::-webkit-resizer]:bg-gray-700"})]}),s.jsxs("div",{className:"flex justify-end gap-2",children:[s.jsx("button",{onClick:t,className:"px-4 py-2 text-[#001f3f] hover:text-[#001530] rounded-md cursor-pointer font-mono uppercase text-xs font-semibold",children:"Cancel"}),s.jsx("button",{onClick:()=>n(r,o),disabled:!r.trim()||!o.trim(),className:"px-4 py-2 bg-[#005C75] text-white rounded-md hover:bg-[#004a5e] disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer font-mono uppercase text-xs font-semibold",children:"Save"})]})]})]})}function Fh({memories:e,selectedPath:n,onSelectPath:t,expandedFolders:r,onToggleFolder:i}){const o=z.useMemo(()=>hr(e),[e]),l=(u,f,h)=>{if(u.target.closest(".chevron-toggle")){h&&i(f||"root");return}const p=f||null;t(n===p?null:p),h&&!r.has(f||"root")&&i(f||"root")},a=u=>{t(n===u?null:u)},c=(u,f=0)=>{const h=r.has(u.path||"root"),d=fr(u),p=u.children.size>0,x=u.name==="root"?"(root)":u.name,k=u.memories.length>0||p,C=u.path||"",y=n===C||n===null&&C==="";return s.jsxs("div",{children:[s.jsxs("div",{className:`flex items-center gap-2 py-2.5 cursor-pointer rounded px-2 relative ${y?"bg-[#E0E9EC]":"hover:bg-gray-100"}`,style:{paddingLeft:`${f*12+8}px`},onClick:j=>l(j,u.path,k),children:[k&&s.jsx("span",{className:"chevron-toggle p-0.5 -m-0.5 hover:bg-gray-200 rounded",onClick:j=>{j.stopPropagation(),i(u.path||"root")},children:s.jsx(Ut,{className:`w-3 h-3 text-gray-500 transition-transform ${h?"rotate-90":""}`})}),!k&&s.jsx("div",{className:"w-3"}),s.jsx(sr,{className:"w-3.5 h-3.5 text-[#005C75]"}),s.jsx("span",{className:`text-xs font-mono font-semibold ${y?"text-[#005C75]":""}`,style:{color:"#005C75"},children:x}),s.jsxs("span",{className:"text-xs ml-auto",style:{color:"#005C75"},children:[d," rules"]})]}),h&&s.jsxs("div",{className:"relative",children:[(u.memories.length>0||p)&&s.jsx("div",{className:"absolute top-0 bottom-0 w-px bg-gray-300",style:{left:`${f*12+8+6}px`}}),u.memories.length>0&&s.jsx("div",{style:{paddingLeft:`${(f+1)*12+8}px`},children:u.memories.map(j=>{var P;const S=n===j.filePath;return s.jsx("div",{className:`flex items-center gap-2 py-1 px-2 text-sm rounded cursor-pointer relative ${S?"bg-[#E0E9EC] text-[#005C75]":"text-gray-600 hover:bg-gray-50"}`,onClick:()=>a(j.filePath),children:s.jsx("span",{className:"text-xs",children:(P=j.filePath.split("/").pop())==null?void 0:P.replace(".md","")})},j.filePath)})}),p&&s.jsx("div",{children:Array.from(u.children.values()).sort((j,S)=>j.name.localeCompare(S.name)).map(j=>c(j,f+1))})]})]},u.path||"root")};return s.jsx("div",{className:"bg-white rounded-lg border border-gray-200 p-4 mb-8",children:c(o)})}function Dh({memories:e,onEdit:n,onDelete:t,expandedFolders:r,onToggleFolder:i,reviewedStatus:o,onMarkReviewed:l,onMarkUnreviewed:a}){const[c,u]=z.useState({});z.useEffect(()=>{u({})},[o]);const f=z.useMemo(()=>({...o,...c}),[o,c]),h=z.useMemo(()=>hr(e),[e]),d=(x,k,C)=>{u(y=>({...y,[x]:!C})),C?a(x):l(x,k)},p=(x,k=0)=>{const C=r.has(x.path||"root"),y=x.children.size>0,j=x.name==="root"?"root":x.name,S=x.memories.length>0||y;return s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 py-2 cursor-pointer hover:bg-gray-50 rounded px-2 mb-2",style:{backgroundColor:"rgba(224, 233, 236, 0.5)"},onClick:()=>S&&i(x.path||"root"),children:[S&&s.jsx(Ut,{className:`w-4 h-4 text-gray-500 transition-transform ${C?"rotate-90":""}`}),!S&&s.jsx("div",{className:"w-4"}),s.jsx(sr,{className:"w-4 h-4 text-[#005C75]"}),s.jsx("span",{className:"text-sm font-mono font-semibold",style:{color:"#001f3f"},children:j})]}),C&&s.jsxs("div",{className:"ml-10 space-y-4 relative",children:[(x.memories.length>0||y)&&s.jsx("div",{className:"absolute top-0 bottom-0 w-px bg-gray-300",style:{left:"-24px"}}),x.memories.length>0&&s.jsx("div",{className:"space-y-2",children:x.memories.map(P=>s.jsx(cn,{rule:P,onEdit:n,onDelete:t,isReviewed:f[P.filePath]??!1,onToggleReviewed:d},P.filePath))}),y&&s.jsx("div",{className:"space-y-4",children:Array.from(x.children.values()).sort((P,T)=>P.name.localeCompare(T.name)).map(P=>p(P,k+1))})]})]},x.path||"root")};return s.jsx("div",{children:p(h)})}function Lh({changes:e,memories:n,onEditRule:t,onDeleteRule:r,reviewedStatus:i,onMarkReviewed:o,onMarkUnreviewed:l}){const[a,c]=z.useState("unreviewed"),[u,f]=z.useState({}),[h,d]=z.useState(new Set);z.useEffect(()=>{f({}),d(new Set)},[i]);const p=z.useMemo(()=>({...i,...u}),[i,u]),x=(T,w,L)=>{f(F=>({...F,[T]:!L})),d(L?F=>{const O=new Set(F);return O.delete(T),O}:F=>new Set(F).add(T)),L?l(T):o(T,w)},k=z.useMemo(()=>{const T=new Map;for(const w of e){const L=w.commitHash==="uncommitted";for(const F of w.files){if(T.has(F.filePath))continue;const O=n.find(b=>b.filePath===F.filePath);O&&T.set(F.filePath,{rule:O,changeType:F.changeType,date:w.date,isUncommitted:L,diff:F.diff,isReviewed:p[F.filePath]??!1})}}return Array.from(T.values()).sort((w,L)=>w.isUncommitted&&!L.isUncommitted?-1:!w.isUncommitted&&L.isUncommitted?1:new Date(L.date).getTime()-new Date(w.date).getTime())},[e,n,p]);z.useMemo(()=>k.filter(T=>!T.isReviewed).length,[k]);const C=z.useMemo(()=>a==="unreviewed"?k.filter(T=>!T.isReviewed||h.has(T.rule.filePath)):k,[k,a,h]),[y,j]=z.useState(!1),S=3,P=y?C:C.slice(0,S);return k.length===0?null:s.jsxs("div",{className:"mb-8",children:[s.jsxs("div",{className:"flex items-center gap-6 border-b border-[#e1e1e1]",children:[s.jsx("h2",{className:"text-xl leading-6 py-3 text-[#232323]",style:{fontFamily:"Sora",fontWeight:600},children:"Recently Changed Rules"}),s.jsx("button",{onClick:()=>c("unreviewed"),className:`px-0 py-3 border-b-2 -mb-px transition-colors bg-transparent cursor-pointer ${a==="unreviewed"?"border-[#232323] text-[#232323]":"border-transparent text-[#626262] hover:text-[#232323]"}`,children:s.jsx("span",{className:"text-base leading-6",style:{fontFamily:"Sora",fontWeight:a==="unreviewed"?600:400},children:"Unreviewed"})}),s.jsx("button",{onClick:()=>c("all"),className:`px-0 py-3 border-b-2 -mb-px transition-colors bg-transparent cursor-pointer ${a==="all"?"border-[#232323] text-[#232323]":"border-transparent text-[#626262] hover:text-[#232323]"}`,children:s.jsx("span",{className:"text-base leading-6",style:{fontFamily:"Sora",fontWeight:a==="all"?600:400},children:"All"})})]}),s.jsxs("div",{className:"flex items-center justify-between mt-4 mb-3",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-xs text-gray-500 font-mono uppercase tracking-wider",children:["Showing"," ",Math.min(P.length,C.length)," ","of ",C.length,"."]}),C.length>S&&s.jsx("button",{onClick:()=>j(!y),className:"text-xs text-[#005C75] hover:underline cursor-pointer font-mono uppercase tracking-wider font-semibold",children:y?"Show Less":"View All"})]}),s.jsx("span",{className:"text-xs text-gray-500 font-mono uppercase tracking-wider",children:"Reviewed"})]}),s.jsx("div",{className:"space-y-2",children:P.map(T=>{const{rule:w,changeType:L,date:F,isUncommitted:O,diff:b}=T,I=h.has(w.filePath);return s.jsx(cn,{rule:w,onEdit:t,onDelete:r,isReviewed:T.isReviewed,onToggleReviewed:x,changeType:L,isUncommitted:O,changeDate:F,diff:b,isFadingOut:I,showLeftBorder:!0},w.filePath)})})]})}function Rh({onEditRule:e,onDeleteRule:n,refreshKey:t,reviewedStatus:r,onMarkReviewed:i,onMarkUnreviewed:o}){const[l,a]=z.useState(""),[c,u]=z.useState(null),[f,h]=z.useState(!1),[d,p]=z.useState(null),[x,k]=z.useState(0),[C,y]=z.useState(!1),[j,S]=z.useState("unreviewed"),[P,T]=z.useState({});z.useEffect(()=>{T({})},[r]);const w=z.useMemo(()=>({...r,...P}),[r,P]),L=(m,H,Z)=>{T(ee=>({...ee,[m]:!Z})),Z?o(m):i(m,H)},[F,O]=z.useState({topPaths:[],totalFilesWithCoverage:0}),[b,I]=z.useState([]),[D,V]=z.useState(!0);z.useEffect(()=>{(async()=>{try{const Z=await(await fetch("/api/memory?action=source-files")).json();I(Z.files||[])}catch(H){console.error("Failed to load source files:",H)}})()},[]),z.useEffect(()=>{(async()=>{V(!0);try{const Z=await(await fetch("/api/memory?action=audit")).json();O({topPaths:Z.topPaths||[],totalFilesWithCoverage:Z.totalFilesWithCoverage||0})}catch(H){console.error("Failed to load audit data:",H)}finally{V(!1)}})()},[t]),z.useEffect(()=>{c&&t>0&&(async()=>{y(!0);try{const Z=await(await fetch(`/api/memory?action=rules-for-path&path=${encodeURIComponent(c)}`)).json();p(Z.rules||[]),k(Z.totalTextLength||0)}catch{p([]),k(0)}finally{y(!1)}})()},[t,c]);const R=z.useMemo(()=>{if(!l.trim())return[];const m=l.toLowerCase();return b.filter(H=>H.toLowerCase().includes(m)).slice(0,10)},[l,b]),N=z.useMemo(()=>j==="all"?F.topPaths:F.topPaths.filter(m=>m.matchingRules.some(H=>!w[H.filePath])),[F.topPaths,j,w]),B=z.useMemo(()=>d?j==="all"?d:d.filter(m=>!w[m.filePath]):null,[d,j,w]),J=z.useMemo(()=>B?B.reduce((m,H)=>m+H.body.length,0):0,[B]);z.useMemo(()=>F.topPaths.filter(m=>m.matchingRules.some(H=>!w[H.filePath])).length,[F.topPaths,w]);const le=async m=>{y(!0);try{const Z=await(await fetch(`/api/memory?action=rules-for-path&path=${encodeURIComponent(m)}`)).json();p(Z.rules||[]),k(Z.totalTextLength||0)}catch{p([]),k(0)}finally{y(!1)}},_=m=>{u(m),a(m),h(!1),le(m)},g=()=>{u(null),a(""),p(null),k(0)},Q=m=>{const H=m.target.value;a(H),h(H.length>0),c&&H!==c&&(u(null),p(null))},ne=m=>{m.key==="Enter"&&R.length>0&&_(R[0])};return s.jsxs("div",{className:"mb-6",children:[s.jsxs("div",{className:"flex items-center gap-6 border-b border-[#e1e1e1] mb-4",children:[s.jsx("h2",{className:"text-xl leading-6 py-3 text-[#232323]",style:{fontFamily:"Sora",fontWeight:600},children:"Rules Audit"}),s.jsx("button",{onClick:()=>S("unreviewed"),className:`px-0 py-3 border-b-2 -mb-px transition-colors bg-transparent cursor-pointer ${j==="unreviewed"?"border-[#232323] text-[#232323]":"border-transparent text-[#626262] hover:text-[#232323]"}`,children:s.jsx("span",{className:"text-base leading-6",style:{fontFamily:"Sora",fontWeight:j==="unreviewed"?600:400},children:"Unreviewed"})}),s.jsx("button",{onClick:()=>S("all"),className:`px-0 py-3 border-b-2 -mb-px transition-colors bg-transparent cursor-pointer ${j==="all"?"border-[#232323] text-[#232323]":"border-transparent text-[#626262] hover:text-[#232323]"}`,children:s.jsx("span",{className:"text-base leading-6",style:{fontFamily:"Sora",fontWeight:j==="all"?600:400},children:"All"})}),s.jsx("div",{className:"flex-1"}),s.jsxs("div",{className:"relative max-w-md w-80",children:[s.jsx(Di,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),s.jsx("input",{type:"text",value:l,onChange:Q,onFocus:()=>h(l.length>0),onKeyDown:ne,placeholder:"Search for a file path...",className:"w-full pl-10 pr-10 py-2 border border-gray-200 rounded-lg bg-white focus:outline-none focus:ring-2 focus:ring-[#005C75] focus:border-transparent font-mono text-xs"}),c&&s.jsx("button",{onClick:g,className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600 cursor-pointer",children:s.jsx(cr,{className:"w-4 h-4"})}),f&&R.length>0&&!c&&s.jsx("div",{className:"absolute z-10 w-full mt-1 bg-white border border-gray-200 rounded-lg shadow-lg max-h-60 overflow-y-auto",children:R.map((m,H)=>s.jsxs("button",{onClick:()=>_(m),className:"w-full px-4 py-2 text-left text-sm font-mono hover:bg-gray-100 flex items-center gap-2 cursor-pointer",children:[s.jsx(Li,{className:"w-4 h-4 text-gray-400 flex-shrink-0"}),s.jsx("span",{className:"truncate",children:m})]},H))})]})]}),s.jsx("p",{className:"text-sm text-gray-500 mb-4",children:j==="unreviewed"?"View files with unreviewed rules (rules that may be outdated based on recent code changes)":"View all rules that apply to any folder or file in this repo (displaying the files that have the most rules — by total token count — applied to them)"}),C&&s.jsx("div",{className:"bg-white rounded-lg border border-gray-200 p-6 text-center",children:s.jsx("div",{className:"text-gray-500",children:"Loading rules..."})}),c&&B!==null&&!C&&s.jsxs("div",{children:[s.jsxs("div",{className:"text-sm text-gray-600 mb-3",style:{fontFamily:"Sora"},children:["Showing ",j==="unreviewed"?"unreviewed ":"","rules for:"]}),s.jsxs("div",{className:"flex items-stretch gap-3 mb-4",children:[s.jsx("button",{onClick:g,className:"flex-shrink-0 px-3 bg-gray-100 hover:bg-gray-200 rounded-lg transition-colors flex items-center justify-center","aria-label":"Back to all files",children:s.jsx(Mi,{className:"w-5 h-5 text-gray-600"})}),s.jsxs("div",{className:"flex-1 bg-white rounded-lg border p-4",style:{borderColor:"#CBF3FA"},children:[s.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[s.jsx("img",{src:"/icons/file-icon.svg",alt:"file",className:"w-4 h-5 shrink-0"}),s.jsx("div",{className:"font-mono text-sm font-semibold text-gray-900 break-all",children:c})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsxs("span",{className:"px-2 py-0.5 bg-amber-100 text-amber-800 rounded uppercase font-medium tracking-wider",style:{fontSize:"10px"},children:[(B==null?void 0:B.length)??0," UNREVIEWED"]}),s.jsxs("span",{className:"px-2 py-0.5 bg-amber-100 text-amber-800 rounded uppercase font-medium tracking-wider",style:{fontSize:"10px"},children:["~",Ve(J).toLocaleString()," ","TOKENS"]})]}),s.jsx("span",{className:"text-gray-300",children:"|"}),s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsxs("span",{className:"px-2 py-0.5 bg-gray-100 text-gray-700 rounded uppercase font-medium tracking-wider",style:{fontSize:"10px"},children:[(d==null?void 0:d.length)??0," TOTAL"]}),s.jsxs("span",{className:"px-2 py-0.5 bg-gray-100 text-gray-700 rounded uppercase font-medium tracking-wider",style:{fontSize:"10px"},children:["~",Ve(x).toLocaleString()," ","TOKENS"]})]})]})]})]}),B.length===0?s.jsx("div",{className:"bg-white rounded-lg border border-gray-200 p-6 text-center text-gray-500 text-sm",children:j==="unreviewed"?"No unreviewed rules match this path":"No rules match this path"}):s.jsx("div",{className:"space-y-3",children:B.map(m=>s.jsx(cn,{rule:m,onEdit:e,onDelete:n,isReviewed:w[m.filePath]??!1,onToggleReviewed:L},m.filePath))})]}),!c&&!C&&!D&&N.length>0&&s.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 overflow-hidden",children:[s.jsxs("div",{className:"px-4 py-3 bg-gray-50 border-b border-gray-200",children:[s.jsxs("div",{className:"font-medium text-gray-900 text-sm",children:["File paths that consume the most"," ",j==="unreviewed"?"unreviewed ":"","rules (by total tokens)"]}),s.jsx("div",{className:"text-xs text-gray-500 mt-1",children:j==="unreviewed"?`${N.length} file${N.length!==1?"s":""} with unreviewed rules`:`${F.totalFilesWithCoverage} file${F.totalFilesWithCoverage!==1?"s":""} with rule coverage`})]}),s.jsx("div",{className:"divide-y divide-gray-100",children:N.slice(0,3).map((m,H)=>{const Z=m.matchingRules.filter(ge=>!w[ge.filePath]),ee=Z.reduce((ge,je)=>ge+je.bodyLength,0),Ee=m.matchingRules,me=m.totalTextLength;return s.jsx("button",{onClick:()=>_(m.filePath),className:"w-full px-4 py-3 text-left hover:bg-gray-50 cursor-pointer",children:s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-gray-400 font-medium w-5 text-sm",children:[H+1,"."]}),s.jsx("img",{src:"/icons/file-icon.svg",alt:"file",className:"w-4 h-5 shrink-0"}),s.jsxs("div",{children:[s.jsx("div",{className:"font-mono text-xs text-gray-900",children:m.filePath}),s.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[s.jsxs("span",{className:"px-2 py-0.5 bg-amber-100 text-amber-800 text-[11px] rounded uppercase font-medium",children:[Z.length," unreviewed"]}),s.jsxs("span",{className:"px-2 py-0.5 bg-amber-100 text-amber-800 text-[11px] rounded uppercase font-medium",children:["~",Ve(ee).toLocaleString()," ","tokens"]}),s.jsx("span",{className:"text-gray-300 text-xs",children:"|"}),s.jsxs("span",{className:"px-2 py-0.5 bg-gray-100 text-gray-700 text-[11px] rounded uppercase font-medium",children:[Ee.length," total"]}),s.jsxs("span",{className:"px-2 py-0.5 bg-gray-100 text-gray-700 text-[11px] rounded uppercase font-medium",children:["~",Ve(me).toLocaleString()," ","tokens"]})]})]})]}),s.jsx(Ut,{className:"w-4 h-4 text-gray-400 mt-1"})]})},H)})})]}),!c&&D&&s.jsx("div",{className:"bg-white rounded-lg border border-gray-200 p-6",children:s.jsxs("div",{className:"animate-pulse space-y-3",children:[s.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4"}),s.jsx("div",{className:"h-3 bg-gray-100 rounded w-1/2"}),s.jsx("div",{className:"h-4 bg-gray-200 rounded w-2/3 mt-4"}),s.jsx("div",{className:"h-3 bg-gray-100 rounded w-1/3"})]})}),!c&&!C&&!D&&N.length===0&&s.jsx("div",{className:"bg-white rounded-lg border border-gray-200 p-6 text-center text-gray-500 text-sm",children:j==="unreviewed"?"No files have unreviewed rules":"No files have rule coverage yet"})]})}const Xh=()=>[{title:"CodeYam - Memory"},{name:"description",content:"Manage Claude Memory documentation"}],Gh=Ni(function(){const{memories:n,recentChanges:t,reviewedStatus:r,error:i}=Ai(),o=Ii(),l=Ti(),[a,c]=z.useState(null),[u,f]=z.useState(""),[h,d]=z.useState(null),[p,x]=z.useState(new Set(["root"])),[k,C]=z.useState(null),[y,j]=z.useState(!1),[S,P]=z.useState(null),[T,w]=z.useState(0),L=_=>{x(g=>{const Q=new Set(g);return Q.has(_)?Q.delete(_):Q.add(_),Q})};Pi({source:"memory-page"});const F=z.useRef(o.state);z.useEffect(()=>{const _=F.current==="loading"||F.current==="submitting",g=o.state==="idle";_&&g&&o.data&&(l.revalidate(),C(null),j(!1),w(Q=>Q+1)),F.current=o.state},[o.state,o.data,l]);const O=(_,g)=>{o.submit({action:"mark-reviewed",filePath:_,lastModified:g},{method:"POST",action:"/api/memory",encType:"application/json"})},b=_=>{o.submit({action:"mark-unreviewed",filePath:_},{method:"POST",action:"/api/memory",encType:"application/json"})},I=z.useMemo(()=>{let _=n;if(a&&(_=_.filter(g=>(g.frontmatter.category||"faq")===a)),u.trim()){const g=u.toLowerCase();_=_.filter(Q=>{var m;return(((m=Q.filePath.split("/").pop())==null?void 0:m.replace(".md",""))||"").toLowerCase().includes(g)||Q.body.toLowerCase().includes(g)})}return _},[n,a,u]),D=z.useMemo(()=>h?I.some(g=>g.filePath===h)?I.filter(g=>g.filePath===h):I.filter(g=>g.filePath.startsWith(h+"/")||g.filePath===h):I,[I,h]),V=(_,g)=>{const Q=k?"update":"create";o.submit({action:Q,filePath:_,content:g},{method:"POST",action:"/api/memory",encType:"application/json"})},R=_=>{o.submit({action:"delete",filePath:_.filePath},{method:"POST",action:"/api/memory",encType:"application/json"}),P(null)},N=z.useMemo(()=>{const _={architecture:0,testing:0,faq:0};for(const g of n){const Q=g.frontmatter.category||"faq";_[Q]++}return _},[n]),B=z.useMemo(()=>{const _=new Set(["root"]);for(const g of I){const Q=g.filePath.split("/");Q.pop();let ne="";for(const m of Q)ne=ne?`${ne}/${m}`:m,_.add(ne)}return _},[I]),J=B.size===p.size&&[...B].every(_=>p.has(_)),le=()=>{x(J?new Set(["root"]):new Set(B))};return i?s.jsx("div",{className:"bg-[#F8F7F6] min-h-screen",children:s.jsxs("div",{className:"px-12 py-6 font-sans",children:[s.jsx("h1",{className:"text-[28px] font-semibold text-gray-900",children:"Error"}),s.jsx("p",{className:"text-base text-gray-500",children:i})]})}):s.jsx("div",{className:"bg-[#f9f9f9] min-h-screen",children:s.jsxs("div",{className:"px-20 py-12 font-sans",children:[s.jsxs("div",{className:"mb-8",children:[s.jsxs("div",{className:"flex items-center justify-between mb-6",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[s.jsx(zh,{}),s.jsx("h1",{className:"text-[24px] font-semibold mb-0",style:{fontFamily:"Sora",color:"#232323"},children:"Memory"})]}),s.jsx("p",{className:"text-[15px] text-gray-500",children:"Documentation that helps Claude understand your codebase patterns and conventions."})]}),s.jsxs("button",{onClick:()=>j(!0),className:"flex items-center gap-2 px-4 py-2 bg-[#005C75] text-white rounded-md hover:bg-[#004a5e] cursor-pointer font-mono uppercase text-xs font-semibold",children:[s.jsx(gn,{className:"w-4 h-4"}),"New Rule"]})]}),s.jsxs("div",{className:"grid grid-cols-4 gap-4",children:[s.jsx(lt,{category:null,count:n.length,isSelected:a===null,onClick:()=>c(null)}),s.jsx(lt,{category:"architecture",count:N.architecture,isSelected:a==="architecture",onClick:()=>c(a==="architecture"?null:"architecture")}),s.jsx(lt,{category:"testing",count:N.testing,isSelected:a==="testing",onClick:()=>c(a==="testing"?null:"testing")}),s.jsx(lt,{category:"faq",count:N.faq,isSelected:a==="faq",onClick:()=>c(a==="faq"?null:"faq")})]})]}),y&&s.jsx("div",{className:"fixed inset-0 flex items-center justify-center z-[9999] p-4",style:{backgroundColor:"rgba(0, 0, 0, 0.8)"},onClick:()=>j(!1),children:s.jsx("div",{className:"bg-white rounded-lg shadow-xl max-w-4xl w-full max-h-[90vh] overflow-auto",onClick:_=>_.stopPropagation(),children:s.jsx(or,{rule:null,onSave:V,onCancel:()=>{j(!1)}})})}),k&&s.jsx("div",{className:"fixed inset-0 flex items-center justify-center z-[9999] p-4",style:{backgroundColor:"rgba(0, 0, 0, 0.8)"},onClick:()=>C(null),children:s.jsx("div",{className:"bg-white rounded-lg shadow-xl max-w-4xl w-full max-h-[90vh] overflow-auto",onClick:_=>_.stopPropagation(),children:s.jsx(or,{rule:k,onSave:V,onCancel:()=>{C(null)}})})}),s.jsx(Lh,{changes:t,memories:I,onEditRule:C,onDeleteRule:P,reviewedStatus:r,onMarkReviewed:O,onMarkUnreviewed:b}),s.jsx(Rh,{onEditRule:C,onDeleteRule:P,refreshKey:T,reviewedStatus:r,onMarkReviewed:O,onMarkUnreviewed:b}),s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsx("h2",{className:"text-xl leading-6 text-[#232323]",style:{fontFamily:"Sora",fontWeight:600},children:"All Rules"}),s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsxs("div",{className:"relative",children:[s.jsxs("select",{value:a||"all",onChange:_=>{const g=_.target.value;c(g==="all"?null:g)},className:"appearance-none bg-white border border-gray-200 rounded px-3 pr-8 text-sm h-9 cursor-pointer focus:outline-none focus:ring-2 focus:ring-[#005c75] hover:border-gray-300 transition-colors",children:[s.jsx("option",{value:"all",children:"All Types"}),s.jsx("option",{value:"architecture",children:"Architecture"}),s.jsx("option",{value:"testing",children:"Testing"}),s.jsx("option",{value:"faq",children:"FAQ"})]}),s.jsx(Ri,{className:"absolute right-2 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-500 pointer-events-none"})]}),B.size>1&&s.jsx("button",{onClick:le,className:"text-xs text-[#005C75] hover:underline cursor-pointer font-mono uppercase font-semibold",children:J?"Collapse All":"Expand All"})]})]}),s.jsxs("div",{className:"flex gap-6",children:[s.jsx("div",{className:"w-80 flex-shrink-0",children:s.jsx(Fh,{memories:I,selectedPath:h,onSelectPath:d,expandedFolders:p,onToggleFolder:L})}),s.jsx("div",{className:"flex-1 min-w-0",children:n.length===0?s.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-12 text-center",children:[s.jsx(Bi,{className:"w-12 h-12 text-gray-300 mx-auto mb-4"}),s.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No Rules Yet"}),s.jsxs("p",{className:"text-gray-500 mb-4",children:["Run"," ",s.jsx("code",{className:"bg-gray-100 px-2 py-1 rounded",children:"/codeyam:power-memories"})," ","to generate initial memories for your codebase."]}),s.jsxs("button",{onClick:()=>j(!0),className:"inline-flex items-center gap-2 px-4 py-2 bg-[#005C75] text-white rounded-md hover:bg-[#004a5e] cursor-pointer",children:[s.jsx(gn,{className:"w-4 h-4"}),"Create Your First Memory"]})]}):s.jsxs("div",{children:[(a||h)&&s.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600 mb-4",children:[s.jsx(Hi,{className:"w-4 h-4"}),a&&s.jsxs(s.Fragment,{children:["Showing"," ",pr[a]," ","memories"]}),a&&h&&" in ",h&&s.jsx("span",{className:"font-mono bg-gray-100 px-1.5 py-0.5 rounded",children:h||"(root)"}),s.jsx("button",{onClick:()=>{c(null),d(null)},className:"text-[#005C75] hover:underline cursor-pointer",children:"Clear filter"})]}),s.jsx(Dh,{memories:D,onEdit:C,onDelete:P,expandedFolders:p,onToggleFolder:L,reviewedStatus:r,onMarkReviewed:O,onMarkUnreviewed:b})]})})]}),S&&s.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:s.jsxs("div",{className:"bg-white rounded-lg p-6 max-w-md w-full mx-4",children:[s.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Delete Memory?"}),s.jsxs("p",{className:"text-gray-600 mb-4",children:["Are you sure you want to delete"," ",s.jsx("span",{className:"font-mono text-sm",children:S.filePath}),"? This cannot be undone."]}),s.jsxs("div",{className:"flex justify-end gap-2",children:[s.jsx("button",{onClick:()=>P(null),className:"px-4 py-2 text-gray-600 hover:bg-gray-100 rounded-md cursor-pointer",children:"Cancel"}),s.jsx("button",{onClick:()=>R(S),className:"px-4 py-2 bg-red-600 text-white rounded-md hover:bg-red-700 cursor-pointer",children:"Delete"})]})]})})]})})});function zh(){return s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("rect",{x:"12",y:"24",width:"3",height:"3",fill:"#232323"}),s.jsx("rect",{x:"12",width:"3",height:"3",fill:"#232323"}),s.jsx("rect",{x:"12",y:"3",width:"3",height:"3",fill:"#232323"}),s.jsx("rect",{x:"12",y:"6",width:"3",height:"3",fill:"#232323"}),s.jsx("rect",{x:"12",y:"18",width:"3",height:"3",fill:"#232323"}),s.jsx("rect",{x:"3",y:"12",width:"3",height:"3",transform:"rotate(90 3 12)",fill:"#232323"}),s.jsx("rect",{x:"27",y:"12",width:"3",height:"3",transform:"rotate(90 27 12)",fill:"#232323"}),s.jsx("rect",{x:"18",y:"24",width:"3",height:"3",transform:"rotate(90 18 24)",fill:"#232323"}),s.jsx("rect",{x:"18",width:"3",height:"3",transform:"rotate(90 18 0)",fill:"#232323"}),s.jsx("rect",{x:"3",y:"18",width:"3",height:"3",transform:"rotate(-180 3 18)",fill:"#232323"}),s.jsx("rect",{x:"27",y:"18",width:"3",height:"3",transform:"rotate(-180 27 18)",fill:"#232323"}),s.jsx("rect",{x:"21",y:"24",width:"3",height:"3",transform:"rotate(90 21 24)",fill:"#232323"}),s.jsx("rect",{x:"3",y:"21",width:"3",height:"3",transform:"rotate(-180 3 21)",fill:"#232323"}),s.jsx("rect",{x:"27",y:"21",width:"3",height:"3",transform:"rotate(-180 27 21)",fill:"#232323"}),s.jsx("rect",{x:"6",y:"24",width:"3",height:"3",transform:"rotate(90 6 24)",fill:"#232323"}),s.jsx("rect",{x:"6",width:"3",height:"3",transform:"rotate(90 6 0)",fill:"#232323"}),s.jsx("rect",{x:"3",y:"6",width:"3",height:"3",transform:"rotate(-180 3 6)",fill:"#232323"}),s.jsx("rect",{x:"21",y:"6",width:"3",height:"3",transform:"rotate(-180 21 6)",fill:"#232323"}),s.jsx("rect",{x:"24",y:"24",width:"3",height:"3",transform:"rotate(90 24 24)",fill:"#232323"}),s.jsx("rect",{x:"3",y:"24",width:"3",height:"3",transform:"rotate(-180 3 24)",fill:"#232323"}),s.jsx("rect",{x:"27",y:"24",width:"3",height:"3",transform:"rotate(-180 27 24)",fill:"#232323"}),s.jsx("rect",{x:"9",y:"24",width:"3",height:"3",transform:"rotate(90 9 24)",fill:"#232323"}),s.jsx("rect",{x:"9",width:"3",height:"3",transform:"rotate(90 9 0)",fill:"#232323"}),s.jsx("rect",{x:"9",y:"3",width:"3",height:"3",transform:"rotate(90 9 3)",fill:"#232323"}),s.jsx("rect",{x:"9",y:"6",width:"3",height:"3",transform:"rotate(90 9 6)",fill:"#232323"}),s.jsx("rect",{x:"9",y:"18",width:"3",height:"3",transform:"rotate(90 9 18)",fill:"#232323"}),s.jsx("rect",{x:"3",y:"9",width:"3",height:"3",transform:"rotate(-180 3 9)",fill:"#232323"}),s.jsx("rect",{x:"24",y:"9",width:"3",height:"3",transform:"rotate(-180 24 9)",fill:"#232323"}),s.jsx("rect",{x:"12",y:"24",width:"3",height:"3",transform:"rotate(90 12 24)",fill:"#232323"}),s.jsx("rect",{x:"12",width:"3",height:"3",transform:"rotate(90 12 0)",fill:"#232323"}),s.jsx("rect",{x:"12",y:"6",width:"3",height:"3",transform:"rotate(90 12 6)",fill:"#232323"}),s.jsx("rect",{x:"12",y:"18",width:"3",height:"3",transform:"rotate(90 12 18)",fill:"#232323"}),s.jsx("rect",{x:"3",y:"12",width:"3",height:"3",transform:"rotate(-180 3 12)",fill:"#232323"}),s.jsx("rect",{x:"27",y:"12",width:"3",height:"3",transform:"rotate(-180 27 12)",fill:"#232323"})]})}function lt({category:e,count:n,isSelected:t,onClick:r}){const i=Mh(e);return s.jsx("div",{className:`rounded-lg p-4 cursor-pointer transition-colors ${t?`ring-1 ${i.ringColor}`:""}`,style:{backgroundColor:i.bgColor,border:"1px solid #EFEFEF"},onClick:r,children:s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("div",{className:"w-12 h-12 rounded-lg flex items-center justify-center flex-shrink-0",style:{backgroundColor:i.iconBgColor},children:i.icon}),s.jsxs("div",{className:"flex-1",children:[s.jsx("div",{className:"text-[32px] font-semibold leading-none mb-1",style:{color:i.textColor},children:n}),s.jsx("div",{className:"text-[11px] uppercase tracking-wider font-medium",style:{color:i.textColor},children:i.label})]})]})})}function Mh(e){switch(e){case"architecture":return{bgColor:"#E9F0FB",iconBgColor:"#DBE9FF",textColor:"#080096",ringColor:"ring-[#080096]",label:"Architecture",icon:s.jsx(Oh,{})};case"testing":return{bgColor:"#EAFBEF",iconBgColor:void 0,textColor:void 0,ringColor:"ring-[#15803d]",label:"Testing",icon:s.jsx(Bh,{})};case"faq":return{bgColor:"#E7E7FC",iconBgColor:"#D4D4FF",textColor:"#080096",ringColor:"ring-[#080096]",label:"FAQ",icon:s.jsx($h,{})};default:return{bgColor:"#EDF1F3",iconBgColor:"#E0E9EC",textColor:"#005C75",ringColor:"ring-[#005C75]",label:"Total Rules",icon:s.jsx(_h,{})}}}function _h(){return s.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("rect",{x:"12",y:"24",width:"3",height:"3",fill:"#005C75"}),s.jsx("rect",{x:"12",width:"3",height:"3",fill:"#005C75"}),s.jsx("rect",{x:"12",y:"3",width:"3",height:"3",fill:"#005C75"}),s.jsx("rect",{x:"12",y:"6",width:"3",height:"3",fill:"#005C75"}),s.jsx("rect",{x:"12",y:"18",width:"3",height:"3",fill:"#005C75"}),s.jsx("rect",{x:"3",y:"12",width:"3",height:"3",transform:"rotate(90 3 12)",fill:"#005C75"}),s.jsx("rect",{x:"27",y:"12",width:"3",height:"3",transform:"rotate(90 27 12)",fill:"#005C75"}),s.jsx("rect",{x:"18",y:"24",width:"3",height:"3",transform:"rotate(90 18 24)",fill:"#005C75"}),s.jsx("rect",{x:"18",width:"3",height:"3",transform:"rotate(90 18 0)",fill:"#005C75"}),s.jsx("rect",{x:"3",y:"18",width:"3",height:"3",transform:"rotate(-180 3 18)",fill:"#005C75"}),s.jsx("rect",{x:"27",y:"18",width:"3",height:"3",transform:"rotate(-180 27 18)",fill:"#005C75"}),s.jsx("rect",{x:"21",y:"24",width:"3",height:"3",transform:"rotate(90 21 24)",fill:"#005C75"}),s.jsx("rect",{x:"3",y:"21",width:"3",height:"3",transform:"rotate(-180 3 21)",fill:"#005C75"}),s.jsx("rect",{x:"27",y:"21",width:"3",height:"3",transform:"rotate(-180 27 21)",fill:"#005C75"}),s.jsx("rect",{x:"6",y:"24",width:"3",height:"3",transform:"rotate(90 6 24)",fill:"#005C75"}),s.jsx("rect",{x:"6",width:"3",height:"3",transform:"rotate(90 6 0)",fill:"#005C75"}),s.jsx("rect",{x:"3",y:"6",width:"3",height:"3",transform:"rotate(-180 3 6)",fill:"#005C75"}),s.jsx("rect",{x:"21",y:"6",width:"3",height:"3",transform:"rotate(-180 21 6)",fill:"#005C75"}),s.jsx("rect",{x:"24",y:"24",width:"3",height:"3",transform:"rotate(90 24 24)",fill:"#005C75"}),s.jsx("rect",{x:"3",y:"24",width:"3",height:"3",transform:"rotate(-180 3 24)",fill:"#005C75"}),s.jsx("rect",{x:"27",y:"24",width:"3",height:"3",transform:"rotate(-180 27 24)",fill:"#005C75"}),s.jsx("rect",{x:"9",y:"24",width:"3",height:"3",transform:"rotate(90 9 24)",fill:"#005C75"}),s.jsx("rect",{x:"9",width:"3",height:"3",transform:"rotate(90 9 0)",fill:"#005C75"}),s.jsx("rect",{x:"9",y:"3",width:"3",height:"3",transform:"rotate(90 9 3)",fill:"#005C75"}),s.jsx("rect",{x:"9",y:"6",width:"3",height:"3",transform:"rotate(90 9 6)",fill:"#005C75"}),s.jsx("rect",{x:"9",y:"18",width:"3",height:"3",transform:"rotate(90 9 18)",fill:"#005C75"}),s.jsx("rect",{x:"3",y:"9",width:"3",height:"3",transform:"rotate(-180 3 9)",fill:"#005C75"}),s.jsx("rect",{x:"24",y:"9",width:"3",height:"3",transform:"rotate(-180 24 9)",fill:"#005C75"}),s.jsx("rect",{x:"12",y:"24",width:"3",height:"3",transform:"rotate(90 12 24)",fill:"#005C75"}),s.jsx("rect",{x:"12",width:"3",height:"3",transform:"rotate(90 12 0)",fill:"#005C75"}),s.jsx("rect",{x:"12",y:"6",width:"3",height:"3",transform:"rotate(90 12 6)",fill:"#005C75"}),s.jsx("rect",{x:"12",y:"18",width:"3",height:"3",transform:"rotate(90 12 18)",fill:"#005C75"}),s.jsx("rect",{x:"3",y:"12",width:"3",height:"3",transform:"rotate(-180 3 12)",fill:"#005C75"}),s.jsx("rect",{x:"27",y:"12",width:"3",height:"3",transform:"rotate(-180 27 12)",fill:"#005C75"})]})}function Oh(){return s.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("rect",{x:"24",y:"18",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"24",y:"15",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"24",y:"12",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"16",y:"18",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"16",y:"15",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"16",y:"12",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"8",y:"18",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"8",y:"15",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"8",y:"12",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{y:"18",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{y:"15",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{y:"12",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"12",y:"6",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"12",y:"24",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"12",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"18",y:"6",width:"3",height:"3",transform:"rotate(90 18 6)",fill:"#080096"}),s.jsx("rect",{x:"18",y:"24",width:"3",height:"3",transform:"rotate(90 18 24)",fill:"#080096"}),s.jsx("rect",{x:"3",y:"6",width:"3",height:"3",transform:"rotate(90 3 6)",fill:"#080096"}),s.jsx("rect",{x:"3",y:"24",width:"3",height:"3",transform:"rotate(90 3 24)",fill:"#080096"}),s.jsx("rect",{x:"21",y:"6",width:"3",height:"3",transform:"rotate(90 21 6)",fill:"#080096"}),s.jsx("rect",{x:"21",y:"24",width:"3",height:"3",transform:"rotate(90 21 24)",fill:"#080096"}),s.jsx("rect",{x:"6",y:"6",width:"3",height:"3",transform:"rotate(90 6 6)",fill:"#080096"}),s.jsx("rect",{x:"6",y:"24",width:"3",height:"3",transform:"rotate(90 6 24)",fill:"#080096"}),s.jsx("rect",{x:"24",y:"6",width:"3",height:"3",transform:"rotate(90 24 6)",fill:"#080096"}),s.jsx("rect",{x:"24",y:"24",width:"3",height:"3",transform:"rotate(90 24 24)",fill:"#080096"}),s.jsx("rect",{x:"9",y:"6",width:"3",height:"3",transform:"rotate(90 9 6)",fill:"#080096"}),s.jsx("rect",{x:"9",y:"24",width:"3",height:"3",transform:"rotate(90 9 24)",fill:"#080096"}),s.jsx("rect",{x:"27",y:"6",width:"3",height:"3",transform:"rotate(90 27 6)",fill:"#080096"}),s.jsx("rect",{x:"27",y:"24",width:"3",height:"3",transform:"rotate(90 27 24)",fill:"#080096"}),s.jsx("rect",{x:"12",y:"6",width:"3",height:"3",transform:"rotate(90 12 6)",fill:"#080096"}),s.jsx("rect",{x:"12",y:"24",width:"3",height:"3",transform:"rotate(90 12 24)",fill:"#080096"}),s.jsx("rect",{x:"19",y:"3",width:"3",height:"3",transform:"rotate(90 19 3)",fill:"#080096"}),s.jsx("rect",{x:"11",y:"3",width:"3",height:"3",transform:"rotate(90 11 3)",fill:"#080096"})]})}function Bh(){return s.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("rect",{x:"24",y:"24",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"21",y:"21",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"18",y:"18",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"15",y:"15",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"12",y:"12",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"12",y:"9",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"12",y:"24",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"12",y:"6",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"12",y:"21",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"12",y:"3",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"12",y:"18",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"12",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"18",y:"12",width:"3",height:"3",transform:"rotate(90 18 12)",fill:"#15803d"}),s.jsx("rect",{x:"3",y:"12",width:"3",height:"3",transform:"rotate(90 3 12)",fill:"#15803d"}),s.jsx("rect",{x:"21",y:"12",width:"3",height:"3",transform:"rotate(90 21 12)",fill:"#15803d"}),s.jsx("rect",{x:"6",y:"12",width:"3",height:"3",transform:"rotate(90 6 12)",fill:"#15803d"}),s.jsx("rect",{x:"24",y:"12",width:"3",height:"3",transform:"rotate(90 24 12)",fill:"#15803d"}),s.jsx("rect",{x:"9",y:"12",width:"3",height:"3",transform:"rotate(90 9 12)",fill:"#15803d"}),s.jsx("rect",{x:"27",y:"12",width:"3",height:"3",transform:"rotate(90 27 12)",fill:"#15803d"}),s.jsx("rect",{x:"12",y:"12",width:"3",height:"3",transform:"rotate(90 12 12)",fill:"#15803d"}),s.jsx("rect",{x:"12",y:"15",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"9",y:"9",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"6",y:"6",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"3",y:"3",width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{width:"3",height:"3",fill:"#15803d"}),s.jsx("rect",{x:"3",y:"24",width:"3",height:"3",transform:"rotate(90 3 24)",fill:"#15803d"}),s.jsx("rect",{x:"6",y:"21",width:"3",height:"3",transform:"rotate(90 6 21)",fill:"#15803d"}),s.jsx("rect",{x:"9",y:"18",width:"3",height:"3",transform:"rotate(90 9 18)",fill:"#15803d"}),s.jsx("rect",{x:"12",y:"15",width:"3",height:"3",transform:"rotate(90 12 15)",fill:"#15803d"}),s.jsx("rect",{x:"18",y:"9",width:"3",height:"3",transform:"rotate(90 18 9)",fill:"#15803d"}),s.jsx("rect",{x:"21",y:"6",width:"3",height:"3",transform:"rotate(90 21 6)",fill:"#15803d"}),s.jsx("rect",{x:"24",y:"3",width:"3",height:"3",transform:"rotate(90 24 3)",fill:"#15803d"}),s.jsx("rect",{x:"27",width:"3",height:"3",transform:"rotate(90 27 0)",fill:"#15803d"})]})}function $h(){return s.jsxs("svg",{width:"13",height:"20",viewBox:"0 0 18 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("rect",{x:"6",y:"24",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"6",y:"18",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"9",y:"15",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"12",y:"12",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"15",y:"9",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{y:"9",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"15",y:"6",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"12",y:"3",width:"3",height:"3",transform:"rotate(-90 12 3)",fill:"#080096"}),s.jsx("rect",{x:"15",y:"3",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{y:"6",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"9",y:"3",width:"3",height:"3",transform:"rotate(-90 9 3)",fill:"#080096"}),s.jsx("rect",{y:"3",width:"3",height:"3",fill:"#080096"}),s.jsx("rect",{x:"6",y:"3",width:"3",height:"3",transform:"rotate(-90 6 3)",fill:"#080096"}),s.jsx("rect",{x:"3",y:"3",width:"3",height:"3",transform:"rotate(-90 3 3)",fill:"#080096"})]})}export{Gh as default,Xh as meta};