codebuff-agent 2.1.83__py3-none-any.whl → 2.1.85__py3-none-any.whl

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 (194) hide show
  1. {codebuff_agent-2.1.83.data → codebuff_agent-2.1.85.data}/data/share/jupyter/labextensions/codebuff/package.json +30 -2
  2. codebuff_agent-2.1.85.data/data/share/jupyter/labextensions/codebuff/static/140.bbdac4ab5bfafdbc93bb.js +1 -0
  3. codebuff_agent-2.1.85.data/data/share/jupyter/labextensions/codebuff/static/364.bbad242c4d0e64dc0a17.js +1 -0
  4. codebuff_agent-2.1.85.data/data/share/jupyter/labextensions/codebuff/static/438.13b8837d547466e12be0.js +1 -0
  5. codebuff_agent-2.1.85.data/data/share/jupyter/labextensions/codebuff/static/489.c53f32292962b5084b76.js +1 -0
  6. codebuff_agent-2.1.85.data/data/share/jupyter/labextensions/codebuff/static/579.00377565c7c766906443.js +1 -0
  7. codebuff_agent-2.1.85.data/data/share/jupyter/labextensions/codebuff/static/587.0bb550b8dd358ff2715f.js +1 -0
  8. codebuff_agent-2.1.85.data/data/share/jupyter/labextensions/codebuff/static/68.bac8263faf8bb5e24d59.js +1 -0
  9. codebuff_agent-2.1.83.data/data/share/jupyter/labextensions/codebuff/static/68.aa8fef48ef0a9da3a0b9.js → codebuff_agent-2.1.85.data/data/share/jupyter/labextensions/codebuff/static/687.97ef6fc0d2c9dc80c08b.js +1 -1
  10. codebuff_agent-2.1.85.data/data/share/jupyter/labextensions/codebuff/static/6d0af5258997aec7354a.ttf +0 -0
  11. codebuff_agent-2.1.85.data/data/share/jupyter/labextensions/codebuff/static/747.ca74b0939ff1b4622da1.js +1 -0
  12. codebuff_agent-2.1.85.data/data/share/jupyter/labextensions/codebuff/static/896.f51dec25e2d314442847.js +2 -0
  13. codebuff_agent-2.1.85.data/data/share/jupyter/labextensions/codebuff/static/896.f51dec25e2d314442847.js.LICENSE.txt +16 -0
  14. codebuff_agent-2.1.85.data/data/share/jupyter/labextensions/codebuff/static/8b1b23e5de4dff652fb0.ttf +0 -0
  15. codebuff_agent-2.1.85.data/data/share/jupyter/labextensions/codebuff/static/920.ac01556fe16b88f42e7a.js +1 -0
  16. codebuff_agent-2.1.85.data/data/share/jupyter/labextensions/codebuff/static/c16b88c670d23e83fa11.ttf +0 -0
  17. codebuff_agent-2.1.85.data/data/share/jupyter/labextensions/codebuff/static/remoteEntry.b842c529b4f7e5505096.js +1 -0
  18. {codebuff_agent-2.1.83.data → codebuff_agent-2.1.85.data}/data/share/jupyter/labextensions/codebuff/static/third-party-licenses.json +55 -1
  19. {codebuff_agent-2.1.83.dist-info → codebuff_agent-2.1.85.dist-info}/METADATA +1 -1
  20. codebuff_agent-2.1.85.dist-info/RECORD +339 -0
  21. codebuff_core/centri_link.py +7 -1
  22. codebuff_core/codebuff_config_defaults.json +3 -0
  23. codebuff_core/directory_policy.py +2 -0
  24. codebuff_core/managers/config_manager.py +8 -0
  25. codebuff_core/managers/remote_config.py +6 -1
  26. codebuff_core/services/pii_guardrail.py +98 -0
  27. jupyter_ext/__init__.py +7 -3
  28. jupyter_ext/_version.py +1 -1
  29. jupyter_ext/agent/agent_factory.py +7 -3
  30. jupyter_ext/agent/agent_framework_assets/agent_framework_api.json.gz +0 -0
  31. jupyter_ext/agent/agent_framework_check.py +882 -0
  32. jupyter_ext/agent/background_procs.py +40 -3
  33. jupyter_ext/agent/bg_procs_context.py +16 -5
  34. jupyter_ext/agent/code_lint.py +797 -0
  35. jupyter_ext/agent/code_lint_assets/code_lint.bundle.mjs +393 -0
  36. jupyter_ext/agent/code_lint_assets/tree-sitter-java_orchard.wasm +0 -0
  37. jupyter_ext/agent/code_lint_assets/wasm_bg.wasm +0 -0
  38. jupyter_ext/agent/code_lint_assets/web-tree-sitter.wasm +0 -0
  39. jupyter_ext/agent/codex_autofix.py +112 -20
  40. jupyter_ext/agent/codex_bridge.py +1233 -96
  41. jupyter_ext/agent/codex_hooks.py +4 -3
  42. jupyter_ext/agent/codex_slash.py +175 -11
  43. jupyter_ext/agent/codex_threads.py +13 -2
  44. jupyter_ext/agent/codex_transcript.py +184 -0
  45. jupyter_ext/agent/context_memory.py +357 -0
  46. jupyter_ext/agent/custom_skills.py +6 -0
  47. jupyter_ext/agent/egm_plugin.py +165 -0
  48. jupyter_ext/agent/git_lease.py +301 -0
  49. jupyter_ext/agent/internal_registry.py +1 -1
  50. jupyter_ext/agent/istio_assets/istio_schema.json.gz +0 -0
  51. jupyter_ext/agent/istio_assets/istio_validate.mjs +32 -0
  52. jupyter_ext/agent/istio_assets/istio_validate.wasm.br +0 -0
  53. jupyter_ext/agent/istio_assets/istio_versions.json.gz +0 -0
  54. jupyter_ext/agent/istio_check.py +1419 -0
  55. jupyter_ext/agent/istio_version.py +412 -0
  56. jupyter_ext/agent/langchain_tools.py +99 -13
  57. jupyter_ext/agent/loc_check.py +416 -0
  58. jupyter_ext/agent/mermaid_fixer.py +67 -21
  59. jupyter_ext/agent/mermaid_guarantee.py +161 -16
  60. jupyter_ext/agent/mermaid_parse.bundle.mjs +2824 -0
  61. jupyter_ext/agent/mermaid_validate.py +149 -0
  62. jupyter_ext/agent/plugins/egm/.codex-plugin/plugin.json +33 -0
  63. jupyter_ext/agent/plugins/egm/LICENSE +202 -0
  64. jupyter_ext/agent/plugins/egm/README.md +137 -0
  65. jupyter_ext/agent/plugins/egm/agents/bootstrap_orchestrator.md +30 -0
  66. jupyter_ext/agent/plugins/egm/agents/codebase_details.md +69 -0
  67. jupyter_ext/agent/plugins/egm/agents/comprehension.md +69 -0
  68. jupyter_ext/agent/plugins/egm/agents/design_critic.md +63 -0
  69. jupyter_ext/agent/plugins/egm/agents/implementation_readiness.md +62 -0
  70. jupyter_ext/agent/plugins/egm/agents/inventive_catalyst.md +101 -0
  71. jupyter_ext/agent/plugins/egm/agents/structural.md +65 -0
  72. jupyter_ext/agent/plugins/egm/agents/style.md +67 -0
  73. jupyter_ext/agent/plugins/egm/agents/synthesizer.md +72 -0
  74. jupyter_ext/agent/plugins/egm/agents/zoom_out.md +74 -0
  75. jupyter_ext/agent/plugins/egm/assets/icon.svg +12 -0
  76. jupyter_ext/agent/plugins/egm/docs/assets/readme-header.svg +24 -0
  77. jupyter_ext/agent/plugins/egm/docs/claude.md +187 -0
  78. jupyter_ext/agent/plugins/egm/docs/codex.md +133 -0
  79. jupyter_ext/agent/plugins/egm/docs/faq.md +62 -0
  80. jupyter_ext/agent/plugins/egm/docs/getting_started.md +152 -0
  81. jupyter_ext/agent/plugins/egm/docs/harnesses.md +179 -0
  82. jupyter_ext/agent/plugins/egm/docs/index.md +106 -0
  83. jupyter_ext/agent/plugins/egm/docs/privacy.md +45 -0
  84. jupyter_ext/agent/plugins/egm/docs/releases.md +70 -0
  85. jupyter_ext/agent/plugins/egm/plugin.json +38 -0
  86. jupyter_ext/agent/plugins/egm/resources/README.md +16 -0
  87. jupyter_ext/agent/plugins/egm/resources/document_standards/feature-spec-standard.md +39 -0
  88. jupyter_ext/agent/plugins/egm/resources/document_standards/heilmeier-standard.md +30 -0
  89. jupyter_ext/agent/plugins/egm/resources/document_standards/implementation-readiness-standard.md +37 -0
  90. jupyter_ext/agent/plugins/egm/resources/document_standards/re-implementation-standard.md +37 -0
  91. jupyter_ext/agent/plugins/egm/resources/document_standards/zoom-out-standard.md +60 -0
  92. jupyter_ext/agent/plugins/egm/resources/execution_instructions.md +37 -0
  93. jupyter_ext/agent/plugins/egm/skills/egm-bootstrap/SKILL.md +429 -0
  94. jupyter_ext/agent/plugins/egm/skills/egm-bootstrap/agents/openai.yaml +6 -0
  95. jupyter_ext/agent/plugins/egm/skills/egm-bootstrap/assets/icon.svg +1 -0
  96. jupyter_ext/agent/plugins/egm/skills/egm-bootstrap/references/templates.md +68 -0
  97. jupyter_ext/agent/plugins/egm/skills/egm-bootstrap/references/worker-return.schema.json +20 -0
  98. jupyter_ext/agent/plugins/egm/skills/egm-brainstorm/SKILL.md +271 -0
  99. jupyter_ext/agent/plugins/egm/skills/egm-brainstorm/agents/openai.yaml +6 -0
  100. jupyter_ext/agent/plugins/egm/skills/egm-brainstorm/assets/icon.svg +1 -0
  101. jupyter_ext/agent/plugins/egm/skills/egm-draft/SKILL.md +321 -0
  102. jupyter_ext/agent/plugins/egm/skills/egm-draft/agents/openai.yaml +6 -0
  103. jupyter_ext/agent/plugins/egm/skills/egm-draft/assets/icon.svg +1 -0
  104. jupyter_ext/agent/plugins/egm/skills/egm-draft/references/design_doc.md +177 -0
  105. jupyter_ext/agent/plugins/egm/skills/egm-drift-report/SKILL.md +67 -0
  106. jupyter_ext/agent/plugins/egm/skills/egm-drift-report/agents/openai.yaml +6 -0
  107. jupyter_ext/agent/plugins/egm/skills/egm-drift-report/assets/icon.svg +1 -0
  108. jupyter_ext/agent/plugins/egm/skills/egm-resolve/SKILL.md +187 -0
  109. jupyter_ext/agent/plugins/egm/skills/egm-resolve/agents/openai.yaml +6 -0
  110. jupyter_ext/agent/plugins/egm/skills/egm-resolve/assets/icon.svg +1 -0
  111. jupyter_ext/agent/plugins/egm/skills/egm-review/SKILL.md +426 -0
  112. jupyter_ext/agent/plugins/egm/skills/egm-review/agents/openai.yaml +6 -0
  113. jupyter_ext/agent/plugins/egm/skills/egm-review/assets/icon.svg +1 -0
  114. jupyter_ext/agent/plugins/egm/skills/egm-review-loop/SKILL.md +199 -0
  115. jupyter_ext/agent/plugins/egm/skills/egm-review-loop/agents/openai.yaml +6 -0
  116. jupyter_ext/agent/plugins/egm/skills/egm-review-loop/assets/icon.svg +1 -0
  117. jupyter_ext/agent/skills/agent_framework_development.md +66 -0
  118. jupyter_ext/agent/skills/deep_agents_development.md +59 -0
  119. jupyter_ext/agent/skills/istio_development.md +185 -0
  120. jupyter_ext/agent/skills/langchain_development.md +64 -0
  121. jupyter_ext/agent/skills/langgraph_development.md +64 -0
  122. jupyter_ext/agent/skills/python_code_quality.md +9 -0
  123. jupyter_ext/agent/skills/spring_java_development.md +8 -1
  124. jupyter_ext/agent/skills/terraform_development.md +57 -0
  125. jupyter_ext/agent/terraform_assets/terraform_schema.zip +0 -0
  126. jupyter_ext/agent/terraform_assets/terraform_validate.mjs +28 -0
  127. jupyter_ext/agent/terraform_assets/terraform_validate.wasm.br +0 -0
  128. jupyter_ext/agent/terraform_check.py +1112 -0
  129. jupyter_ext/http_handlers.py +722 -58
  130. jupyter_ext/labextension/package.json +30 -2
  131. jupyter_ext/labextension/static/140.bbdac4ab5bfafdbc93bb.js +1 -0
  132. jupyter_ext/labextension/static/364.bbad242c4d0e64dc0a17.js +1 -0
  133. jupyter_ext/labextension/static/438.13b8837d547466e12be0.js +1 -0
  134. jupyter_ext/labextension/static/489.c53f32292962b5084b76.js +1 -0
  135. jupyter_ext/labextension/static/579.00377565c7c766906443.js +1 -0
  136. jupyter_ext/labextension/static/587.0bb550b8dd358ff2715f.js +1 -0
  137. jupyter_ext/labextension/static/68.bac8263faf8bb5e24d59.js +1 -0
  138. jupyter_ext/labextension/static/{68.aa8fef48ef0a9da3a0b9.js → 687.97ef6fc0d2c9dc80c08b.js} +1 -1
  139. jupyter_ext/labextension/static/6d0af5258997aec7354a.ttf +0 -0
  140. jupyter_ext/labextension/static/747.ca74b0939ff1b4622da1.js +1 -0
  141. jupyter_ext/labextension/static/896.f51dec25e2d314442847.js +2 -0
  142. jupyter_ext/labextension/static/896.f51dec25e2d314442847.js.LICENSE.txt +16 -0
  143. jupyter_ext/labextension/static/8b1b23e5de4dff652fb0.ttf +0 -0
  144. jupyter_ext/labextension/static/920.ac01556fe16b88f42e7a.js +1 -0
  145. jupyter_ext/labextension/static/c16b88c670d23e83fa11.ttf +0 -0
  146. jupyter_ext/labextension/static/remoteEntry.b842c529b4f7e5505096.js +1 -0
  147. jupyter_ext/labextension/static/third-party-licenses.json +55 -1
  148. jupyter_ext/licenses/egm-LICENSE.txt +202 -0
  149. jupyter_ext/licenses/egm-UPSTREAM.txt +8 -0
  150. jupyter_ext/licenses/fonts-OFL.txt +100 -0
  151. jupyter_ext/licenses/istio-LICENSE.txt +202 -0
  152. jupyter_ext/licenses/istio-THIRD-PARTY.txt +3526 -0
  153. jupyter_ext/licenses/istio-modules.txt +51 -0
  154. jupyter_ext/licenses/luaparse-LICENSE.txt +20 -0
  155. jupyter_ext/licenses/terraform-LICENSE.txt +365 -0
  156. jupyter_ext/licenses/terraform-THIRD-PARTY.txt +4981 -0
  157. jupyter_ext/licenses/terraform-modules.txt +50 -0
  158. jupyter_ext/org_theme.py +67 -0
  159. jupyter_ext/pod_identity.py +13 -3
  160. jupyter_ext/provider_check.py +151 -0
  161. jupyter_ext/team_access.py +1 -26
  162. codebuff_agent-2.1.83.data/data/share/jupyter/labextensions/codebuff/static/273.6988ce5a4030280e558a.js +0 -1
  163. codebuff_agent-2.1.83.data/data/share/jupyter/labextensions/codebuff/static/351.fad5dfccca62caa2f091.js +0 -1
  164. codebuff_agent-2.1.83.data/data/share/jupyter/labextensions/codebuff/static/579.ea7ea39e5b073a2e7d13.js +0 -1
  165. codebuff_agent-2.1.83.data/data/share/jupyter/labextensions/codebuff/static/remoteEntry.f9a4c5c9b5ae13bb8cf3.js +0 -1
  166. codebuff_agent-2.1.83.dist-info/RECORD +0 -222
  167. jupyter_ext/labextension/static/273.6988ce5a4030280e558a.js +0 -1
  168. jupyter_ext/labextension/static/351.fad5dfccca62caa2f091.js +0 -1
  169. jupyter_ext/labextension/static/579.ea7ea39e5b073a2e7d13.js +0 -1
  170. jupyter_ext/labextension/static/remoteEntry.f9a4c5c9b5ae13bb8cf3.js +0 -1
  171. jupyter_ext/provider_pii.py +0 -38
  172. jupyter_ext/tests/test_mermaid_fixer.py +0 -272
  173. {codebuff_agent-2.1.83.data → codebuff_agent-2.1.85.data}/data/etc/jupyter/jupyter_server_config.d/codebuff_agent.json +0 -0
  174. {codebuff_agent-2.1.83.data → codebuff_agent-2.1.85.data}/data/share/jupyter/lab/settings/overrides.d/codebuff.json +0 -0
  175. {codebuff_agent-2.1.83.data → codebuff_agent-2.1.85.data}/data/share/jupyter/labextensions/codebuff/static/166.c1c3bfd74422e67dc983.js +0 -0
  176. {codebuff_agent-2.1.83.data → codebuff_agent-2.1.85.data}/data/share/jupyter/labextensions/codebuff/static/353.d7ba8ad82538daabb3a2.js +0 -0
  177. {codebuff_agent-2.1.83.data → codebuff_agent-2.1.85.data}/data/share/jupyter/labextensions/codebuff/static/367.f26791733c271c089c67.js +0 -0
  178. {codebuff_agent-2.1.83.data → codebuff_agent-2.1.85.data}/data/share/jupyter/labextensions/codebuff/static/421.0be3fe73ea3402566c07.js +0 -0
  179. {codebuff_agent-2.1.83.data → codebuff_agent-2.1.85.data}/data/share/jupyter/labextensions/codebuff/static/432.fba3fe8c6a9fc44e799d.js +0 -0
  180. {codebuff_agent-2.1.83.data → codebuff_agent-2.1.85.data}/data/share/jupyter/labextensions/codebuff/static/432.fba3fe8c6a9fc44e799d.js.LICENSE.txt +0 -0
  181. {codebuff_agent-2.1.83.data → codebuff_agent-2.1.85.data}/data/share/jupyter/labextensions/codebuff/static/439.20f2d83fe525ad987e16.js +0 -0
  182. {codebuff_agent-2.1.83.data → codebuff_agent-2.1.85.data}/data/share/jupyter/labextensions/codebuff/static/439.20f2d83fe525ad987e16.js.LICENSE.txt +0 -0
  183. {codebuff_agent-2.1.83.data → codebuff_agent-2.1.85.data}/data/share/jupyter/labextensions/codebuff/static/481.cc2dec9fa869d66f1407.js +0 -0
  184. {codebuff_agent-2.1.83.data → codebuff_agent-2.1.85.data}/data/share/jupyter/labextensions/codebuff/static/487.0796e931d6e651482c14.js +0 -0
  185. {codebuff_agent-2.1.83.data → codebuff_agent-2.1.85.data}/data/share/jupyter/labextensions/codebuff/static/49.d326f554b6f9ccde6580.js +0 -0
  186. {codebuff_agent-2.1.83.data → codebuff_agent-2.1.85.data}/data/share/jupyter/labextensions/codebuff/static/58.da2a68e5f9fc30c28a98.js +0 -0
  187. {codebuff_agent-2.1.83.data → codebuff_agent-2.1.85.data}/data/share/jupyter/labextensions/codebuff/static/58.da2a68e5f9fc30c28a98.js.LICENSE.txt +0 -0
  188. {codebuff_agent-2.1.83.data → codebuff_agent-2.1.85.data}/data/share/jupyter/labextensions/codebuff/static/666.d9bfdb23f98489d0a188.js +0 -0
  189. {codebuff_agent-2.1.83.data → codebuff_agent-2.1.85.data}/data/share/jupyter/labextensions/codebuff/static/677.358f72cbdbb0586fcb30.js +0 -0
  190. {codebuff_agent-2.1.83.data → codebuff_agent-2.1.85.data}/data/share/jupyter/labextensions/codebuff/static/677.358f72cbdbb0586fcb30.js.LICENSE.txt +0 -0
  191. {codebuff_agent-2.1.83.data → codebuff_agent-2.1.85.data}/data/share/jupyter/labextensions/codebuff/static/868.5cfe7e1a348ec5af1b8c.js +0 -0
  192. {codebuff_agent-2.1.83.data → codebuff_agent-2.1.85.data}/data/share/jupyter/labextensions/codebuff/static/style.js +0 -0
  193. {codebuff_agent-2.1.83.dist-info → codebuff_agent-2.1.85.dist-info}/WHEEL +0 -0
  194. {codebuff_agent-2.1.83.dist-info → codebuff_agent-2.1.85.dist-info}/licenses/LICENSE +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codebuff",
3
- "version": "2.1.83",
3
+ "version": "2.1.85",
4
4
  "description": "Codebuff JupyterLab Extension - Thin client for Agent Server",
5
5
  "keywords": [
6
6
  "jupyter",
@@ -62,26 +62,36 @@
62
62
  "lint:fix": "jlpm stylelint && jlpm eslint"
63
63
  },
64
64
  "dependencies": {
65
+ "@codemirror/autocomplete": "^6.20.0",
65
66
  "@codemirror/commands": "6.8.1",
67
+ "@codemirror/lint": "^6.0.0",
66
68
  "@codemirror/state": "^6.5.2",
69
+ "@codemirror/view": "^6.0.0",
67
70
  "@emotion/react": "^11.11.0",
68
71
  "@emotion/styled": "^11.11.0",
69
72
  "@jupyter-widgets/base": "^6.0.0",
70
73
  "@jupyterlab/application": "^4.0.0",
71
74
  "@jupyterlab/cells": "^4.0.0",
75
+ "@jupyterlab/codemirror": "^4.0.0",
72
76
  "@jupyterlab/console": "^4.0.0",
73
77
  "@jupyterlab/launcher": "^4.0.0",
78
+ "@jupyterlab/mermaid": "^4.1.0",
74
79
  "@jupyterlab/notebook": "^4.0.0",
75
80
  "@jupyterlab/rendermime": "^4.0.0",
76
81
  "@jupyterlab/services": "^7.0.0",
77
82
  "@jupyterlab/terminal": "^4.0.0",
83
+ "@lezer/highlight": "^1.0.0",
78
84
  "@lezer/java": "^1.1.4",
79
85
  "@lezer/javascript": "^1.5.5",
80
86
  "@lezer/python": "^1.1.19",
81
87
  "@lumino/widgets": "^2.0.0",
82
88
  "@mui/icons-material": "^7.3.4",
83
89
  "@mui/material": "^5.14.0",
90
+ "codemirror-lang-hcl": "0.2.0",
84
91
  "diff": "^9.0.0",
92
+ "html-to-pdfmake": "2.5.36",
93
+ "marked": "^17.0.6",
94
+ "pdfmake": "0.3.13",
85
95
  "react": "^18.2.0",
86
96
  "react-dom": "^18.2.0",
87
97
  "react-syntax-highlighter": "^16.1.1"
@@ -100,12 +110,14 @@
100
110
  "@types/react-syntax-highlighter": "^15.5.13",
101
111
  "@typescript-eslint/eslint-plugin": "^6.0.0",
102
112
  "@typescript-eslint/parser": "^6.0.0",
113
+ "d2coding": "1.3.2",
103
114
  "eslint": "^8.45.0",
104
115
  "eslint-config-prettier": "^8.8.0",
105
116
  "eslint-plugin-prettier": "^5.0.0",
106
117
  "eslint-plugin-react": "^7.33.0",
107
118
  "eslint-plugin-react-hooks": "^4.6.2",
108
119
  "npm-run-all": "^4.1.5",
120
+ "pretendard": "1.3.9",
109
121
  "prettier": "^3.0.0",
110
122
  "rimraf": "^5.0.1",
111
123
  "stylelint": "^15.10.0",
@@ -132,6 +144,22 @@
132
144
  "bundled": false,
133
145
  "singleton": true
134
146
  },
147
+ "@codemirror/view": {
148
+ "bundled": false,
149
+ "singleton": true
150
+ },
151
+ "@jupyterlab/codemirror": {
152
+ "bundled": false,
153
+ "singleton": true
154
+ },
155
+ "@jupyterlab/mermaid": {
156
+ "bundled": false,
157
+ "singleton": true
158
+ },
159
+ "@lezer/highlight": {
160
+ "bundled": false,
161
+ "singleton": true
162
+ },
135
163
  "@jupyterlab/notebook": {
136
164
  "bundled": false,
137
165
  "singleton": true
@@ -146,7 +174,7 @@
146
174
  }
147
175
  },
148
176
  "_build": {
149
- "load": "static/remoteEntry.f9a4c5c9b5ae13bb8cf3.js",
177
+ "load": "static/remoteEntry.b842c529b4f7e5505096.js",
150
178
  "extension": "./extension",
151
179
  "style": "./style"
152
180
  }
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkcodebuff=self.webpackChunkcodebuff||[]).push([[140],{1140(e,t,i){i.r(t),i.d(t,{closeLintPanel:()=>x,diagnosticCount:()=>v,forEachDiagnostic:()=>J,forceLinting:()=>P,lintGutter:()=>W,lintKeymap:()=>T,linter:()=>L,nextDiagnostic:()=>C,openLintPanel:()=>y,previousDiagnostic:()=>S,setDiagnostics:()=>u,setDiagnosticsEffect:()=>m});var o=i(5024),n=i(195);function s(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,i=arguments[1];if(i&&"object"==typeof i&&null==i.nodeType&&!Array.isArray(i)){for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o)){var n=i[o];"string"==typeof n?e.setAttribute(o,n):null!=n&&(e[o]=n)}t++}for(;t<arguments.length;t++)l(e,arguments[t]);return e}function l(e,t){if("string"==typeof t)e.appendChild(document.createTextNode(t));else if(null==t);else if(null!=t.nodeType)e.appendChild(t);else{if(!Array.isArray(t))throw new RangeError("Unsupported child node: "+t);for(var i=0;i<t.length;i++)l(e,t[i])}}class r{constructor(e,t,i){this.from=e,this.to=t,this.diagnostic=i}}class a{constructor(e,t,i){this.diagnostics=e,this.panel=t,this.selected=i}static init(e,t,i){let s=i.facet(D).markerFilter;s&&(e=s(e,i));let l=e.slice().sort((e,t)=>e.from-t.from||e.to-t.to),r=new n.RangeSetBuilder,d=[],f=0,u=i.doc.iter(),m=0,h=i.doc.length;for(let e=0;;){let t,i,n=e==l.length?null:l[e];if(!n&&!d.length)break;if(d.length)t=f,i=d.reduce((e,t)=>Math.min(e,t.to),n&&n.from>t?n.from:1e8);else{if(t=n.from,t>h)break;i=n.to,d.push(n),e++}for(;e<l.length;){let o=l[e];if(o.from!=t||!(o.to>o.from||o.to==t)){i=Math.min(o.from,i);break}d.push(o),e++,i=Math.min(o.to,i)}i=Math.min(i,h);let s=!1;if(d.some(e=>e.from==t&&(e.to==i||i==h))&&(s=t==i,!s&&i-t<10)){let e=t-(m+u.value.length);e>0&&(u.next(e),m=t);for(let e=t;;){if(e>=i){s=!0;break}if(!u.lineBreak&&m+u.value.length>e)break;e=m+u.value.length,m+=u.value.length,u.next()}}let a=$(d);if(s)r.add(t,t,o.Decoration.widget({widget:new F(a),diagnostics:d.slice()}));else{let e=d.reduce((e,t)=>t.markClass?e+" "+t.markClass:e,"");r.add(t,i,o.Decoration.mark({class:"cm-lintRange cm-lintRange-"+a+e,diagnostics:d.slice(),inclusiveEnd:d.some(e=>e.to>i)}))}if(f=i,f==h)break;for(let e=0;e<d.length;e++)d[e].to<=f&&d.splice(e--,1)}let g=r.finish();return new a(g,t,c(g))}}function c(e,t=null,i=0){let o=null;return e.between(i,1e9,(e,i,{spec:n})=>{if(!(t&&n.diagnostics.indexOf(t)<0))if(o){if(n.diagnostics.indexOf(o.diagnostic)<0)return!1;o=new r(o.from,i,o.diagnostic)}else o=new r(e,i,t||n.diagnostics[0])}),o}function d(e,t){let i=t.pos,o=t.end||i,n=e.state.facet(D).hideOn(e,i,o);if(null!=n)return n;let s=e.startState.doc.lineAt(t.pos);return!(!e.effects.some(e=>e.is(m))&&!e.changes.touchesRange(s.from,Math.max(s.to,o)))}function f(e,t){return e.field(p,!1)?t:t.concat(n.StateEffect.appendConfig.of(G))}function u(e,t){return{effects:f(e,[m.of(t)])}}const m=n.StateEffect.define(),h=n.StateEffect.define(),g=n.StateEffect.define(),p=n.StateField.define({create:()=>new a(o.Decoration.none,null,null),update(e,t){if(t.docChanged&&e.diagnostics.size){let i=e.diagnostics.map(t.changes),o=null,n=e.panel;if(e.selected){let n=t.changes.mapPos(e.selected.from,1);o=c(i,e.selected.diagnostic,n)||c(i,null,n)}!i.size&&n&&t.state.facet(D).autoPanel&&(n=null),e=new a(i,n,o)}for(let i of t.effects)if(i.is(m)){let o=t.state.facet(D).autoPanel?i.value.length?B.open:null:e.panel;e=a.init(i.value,o,t.state)}else i.is(h)?e=new a(e.diagnostics,i.value?B.open:null,e.selected):i.is(g)&&(e=new a(e.diagnostics,e.panel,i.value));return e},provide:e=>[o.showPanel.from(e,e=>e.panel),o.EditorView.decorations.from(e,e=>e.diagnostics)]});function v(e){let t=e.field(p,!1);return t?t.diagnostics.size:0}const w=o.Decoration.mark({class:"cm-lintRange cm-lintRange-active"});function b(e,t,i){let o,{diagnostics:n}=e.state.field(p),s=-1,l=-1;n.between(t-(i<0?1:0),t+(i>0?1:0),(e,n,{spec:r})=>{if(t>=e&&t<=n&&(e==n||(t>e||i>0)&&(t<n||i<0)))return o=r.diagnostics,s=e,l=n,!1});let r=e.state.facet(D).tooltipFilter;return o&&r&&(o=r(o,e.state)),o?{pos:s,end:l,above:!0,create:()=>({dom:k(e,o)})}:null}function k(e,t){return s("ul",{class:"cm-tooltip-lint"},t.map(t=>M(e,t,!1)))}const y=e=>{let t=e.state.field(p,!1);t&&t.panel||e.dispatch({effects:f(e.state,[h.of(!0)])});let i=(0,o.getPanel)(e,B.open);return i&&i.dom.querySelector(".cm-panel-lint ul").focus(),!0},x=e=>{let t=e.state.field(p,!1);return!(!t||!t.panel||(e.dispatch({effects:h.of(!1)}),0))},C=e=>{let t=e.state.field(p,!1);if(!t)return!1;let i=e.state.selection.main,n=c(t.diagnostics,null,i.to+1);return!(!n&&(n=c(t.diagnostics,null,0),!n||n.from==i.from&&n.to==i.to)||(e.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0}),(0,o.activateHover)(e,n.from,1,{tooltip:_,until:e=>e.docChanged||e.newSelection.main.head<n.from||e.newSelection.main.head>n.to}),0))},S=e=>{var t;let{state:i}=e,n=i.field(p,!1);if(!n)return!1;let s,l,r,a,c=i.selection.main;if(n.diagnostics.between(0,i.doc.length,(e,t)=>{t<c.to&&(null==s||s<e)&&(s=e,l=t),(null==r||e>r)&&(r=e,a=t)}),null==r||null==s&&r==c.from)return!1;let d=null!=s?s:r,f=null!==(t=null!=l?l:a)&&void 0!==t?t:d;return e.dispatch({selection:{anchor:d,head:f},scrollIntoView:!0}),(0,o.activateHover)(e,d,1,{tooltip:_,until:e=>e.docChanged||e.newSelection.main.head<d||e.newSelection.main.head>f}),!0},T=[{key:"Mod-Shift-m",run:y,preventDefault:!0},{key:"F8",run:C}],R=o.ViewPlugin.fromClass(class{constructor(e){this.view=e,this.timeout=-1,this.set=!0;let{delay:t}=e.state.facet(D);this.lintTime=Date.now()+t,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,t)}run(){clearTimeout(this.timeout);let e=Date.now();if(e<this.lintTime-10)this.timeout=setTimeout(this.run,this.lintTime-e);else{this.set=!1;let{state:e}=this.view,{sources:t}=e.facet(D);t.length&&function(e,t,i){let o=[],n=-1;for(let s of e)s.then(i=>{o.push(i),clearTimeout(n),o.length==e.length?t(o):n=setTimeout(()=>t(o),200)},i)}(t.map(e=>Promise.resolve(e(this.view))),t=>{this.view.state.doc==e.doc&&this.view.dispatch(u(this.view.state,t.reduce((e,t)=>e.concat(t))))},e=>{(0,o.logException)(this.view.state,e)})}}update(e){let t=e.state.facet(D);(e.docChanged||t!=e.startState.facet(D)||t.needsRefresh&&t.needsRefresh(e))&&(this.lintTime=Date.now()+t.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,t.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),D=n.Facet.define({combine:e=>({sources:e.map(e=>e.source).filter(e=>null!=e),...(0,n.combineConfig)(e.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:A,tooltipFilter:A,needsRefresh:(e,t)=>e?t?i=>e(i)||t(i):e:t,hideOn:(e,t)=>e?t?(i,o,n)=>e(i,o,n)||t(i,o,n):e:t,autoPanel:(e,t)=>e||t})})});function A(e,t){return e?t?(i,o)=>t(e(i,o),o):e:t}function L(e,t={}){return[D.of({source:e,config:t}),R,G]}function P(e){let t=e.plugin(R);t&&t.force()}function E(e){let t=[];if(e)e:for(let{name:i}of e){for(let e=0;e<i.length;e++){let o=i[e];if(/[a-zA-Z]/.test(o)&&!t.some(e=>e.toLowerCase()==o.toLowerCase())){t.push(o);continue e}}t.push("")}return t}function M(e,t,i){var o;let n=i?E(t.actions):[];return s("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},s("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),null===(o=t.actions)||void 0===o?void 0:o.map((i,o)=>{let l=!1,r=o=>{if(o.preventDefault(),l)return;l=!0;let n=c(e.state.field(p).diagnostics,t);n&&i.apply(e,n.from,n.to)},{name:a}=i,d=n[o]?a.indexOf(n[o]):-1,f=d<0?a:[a.slice(0,d),s("u",a.slice(d,d+1)),a.slice(d+1)];return s("button",{type:"button",class:"cm-diagnosticAction"+(i.markClass?" "+i.markClass:""),onclick:r,onmousedown:r,"aria-label":` Action: ${a}${d<0?"":` (access key "${n[o]})"`}.`},f)}),t.source&&s("div",{class:"cm-diagnosticSource"},t.source))}class F extends o.WidgetType{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return s("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class I{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=M(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class B{constructor(e){this.view=e,this.items=[],this.list=s("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(!(t.ctrlKey||t.altKey||t.metaKey)){if(27==t.keyCode)x(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:i}=this.items[this.selectedIndex],o=E(i.actions);for(let n=0;n<o.length;n++)if(o[n].toUpperCase().charCodeAt(0)==t.keyCode){let t=c(this.view.state.field(p).diagnostics,i);t&&i.actions[n].apply(e,t.from,t.to)}}}t.preventDefault()}},onclick:e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)}}),this.dom=s("div",{class:"cm-panel-lint"},this.list,s("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>x(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(p).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(p),i=0,o=!1,n=null,s=new Set;for(e.between(0,this.view.state.doc.length,(e,l,{spec:r})=>{for(let e of r.diagnostics){if(s.has(e))continue;s.add(e);let l,r=-1;for(let t=i;t<this.items.length;t++)if(this.items[t].diagnostic==e){r=t;break}r<0?(l=new I(this.view,e),this.items.splice(i,0,l),o=!0):(l=this.items[r],r>i&&(this.items.splice(i,r-i),o=!0)),t&&l.diagnostic==t.diagnostic?l.dom.hasAttribute("aria-selected")||(l.dom.setAttribute("aria-selected","true"),n=l):l.dom.hasAttribute("aria-selected")&&l.dom.removeAttribute("aria-selected"),i++}});i<this.items.length&&!(1==this.items.length&&this.items[0].diagnostic.from<0);)o=!0,this.items.pop();0==this.items.length&&(this.items.push(new I(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),o=!0),n?(this.list.setAttribute("aria-activedescendant",n.id),this.view.requestMeasure({key:this,read:()=>({sel:n.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let i=t.height/this.list.offsetHeight;e.top<t.top?this.list.scrollTop-=(t.top-e.top)/i:e.bottom>t.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/i)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),o&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let i of this.items)if(i.dom.parentNode==this.list){for(;e!=i.dom;)t();e=i.dom.nextSibling}else this.list.insertBefore(i.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=c(this.view.state.field(p).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:g.of(t)})}static open(e){return new B(e)}}function O(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}function V(e){return O(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const H=o.EditorView.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:V("#f11")},".cm-lintRange-warning":{backgroundImage:V("orange")},".cm-lintRange-info":{backgroundImage:V("#999")},".cm-lintRange-hint":{backgroundImage:V("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}},"&dark .cm-lintRange-active":{backgroundColor:"#86714a80"},"&dark .cm-panel.cm-panel-lint ul":{"& [aria-selected]":{backgroundColor:"#2e343e"}}});function z(e){return"error"==e?4:"warning"==e?3:"info"==e?2:1}function $(e){let t="hint",i=1;for(let o of e){let e=z(o.severity);e>i&&(i=e,t=o.severity)}return t}class j extends o.GutterMarker{constructor(e){super(),this.diagnostics=e,this.severity=$(e)}toDOM(e){let t=document.createElement("div");t.className="cm-lint-marker cm-lint-marker-"+this.severity;let i=this.diagnostics,o=e.state.facet(X).tooltipFilter;return o&&(i=o(i,e.state)),i.length&&(t.onmouseover=()=>function(e,t,i){function o(){let o=e.elementAtHeight(t.getBoundingClientRect().top+5-e.documentTop);e.coordsAtPos(o.from)&&e.dispatch({effects:U.of({pos:o.from,above:!1,clip:!1,create:()=>({dom:k(e,i),getCoords:()=>t.getBoundingClientRect()})})}),t.onmouseout=t.onmousemove=null,function(e,t){let i=o=>{let n=t.getBoundingClientRect();if(!(o.clientX>n.left-10&&o.clientX<n.right+10&&o.clientY>n.top-10&&o.clientY<n.bottom+10)){for(let e=o.target;e;e=e.parentNode)if(1==e.nodeType&&e.classList.contains("cm-tooltip-lint"))return;window.removeEventListener("mousemove",i),e.state.field(Y)&&e.dispatch({effects:U.of(null)})}};window.addEventListener("mousemove",i)}(e,t)}let{hoverTime:n}=e.state.facet(X),s=setTimeout(o,n);t.onmouseout=()=>{clearTimeout(s),t.onmouseout=t.onmousemove=null},t.onmousemove=()=>{clearTimeout(s),s=setTimeout(o,n)}}(e,t,i)),t}}function N(e,t){let i=Object.create(null);for(let o of t){let t=e.lineAt(o.from);(i[t.from]||(i[t.from]=[])).push(o)}let o=[];for(let e in i)o.push(new j(i[e]).range(+e));return n.RangeSet.of(o,!0)}const K=(0,o.gutter)({class:"cm-gutter-lint",markers:e=>e.state.field(q),widgetMarker:(e,t,i)=>{let o=[];return e.state.field(q).between(i.from,i.to,(e,t,n)=>{e>i.from&&e<i.to&&o.push(...n.diagnostics)}),o.length?new j(o):null}}),q=n.StateField.define({create:()=>n.RangeSet.empty,update(e,t){e=e.map(t.changes);let i=t.state.facet(X).markerFilter;for(let o of t.effects)if(o.is(m)){let n=o.value;i&&(n=i(n||[],t.state)),e=N(t.state.doc,n.slice(0))}return e}}),U=n.StateEffect.define(),Y=n.StateField.define({create:()=>null,update:(e,t)=>(e&&t.docChanged&&(e=d(t,e)?null:{...e,pos:t.changes.mapPos(e.pos)}),t.effects.reduce((e,t)=>t.is(U)?t.value:e,e)),provide:e=>o.showTooltip.from(e)}),Z=o.EditorView.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:O('<path fill="#aaf" stroke="#77e" stroke-width="6" stroke-linejoin="round" d="M5 5L35 5L35 35L5 35Z"/>')},".cm-lint-marker-warning":{content:O('<path fill="#fe8" stroke="#fd7" stroke-width="6" stroke-linejoin="round" d="M20 6L37 35L3 35Z"/>')},".cm-lint-marker-error":{content:O('<circle cx="20" cy="20" r="15" fill="#f87" stroke="#f43" stroke-width="6"/>')}}),_=(0,o.hoverTooltip)(b,{hideOn:d}),G=[p,o.EditorView.decorations.compute([p],e=>{let{selected:t,panel:i}=e.field(p);return t&&i&&t.from!=t.to?o.Decoration.set([w.range(t.from,t.to)]):o.Decoration.none}),_,H],X=n.Facet.define({combine:e=>(0,n.combineConfig)(e,{hoverTime:300,markerFilter:null,tooltipFilter:null})});function W(e={}){return[X.of(e),q,K,Z,Y]}function J(e,t){let i=e.field(p,!1);if(i&&i.diagnostics.size){let e=[],o=[],s=-1;for(let l=n.RangeSet.iter([i.diagnostics]);;l.next()){for(let i=0;i<e.length;i++)(!l.value||l.value.spec.diagnostics.indexOf(e[i])<0)&&(t(e[i],o[i],s),e.splice(i,1),o.splice(i--,1));if(!l.value)break;for(let t of l.value.spec.diagnostics)e.indexOf(t)<0&&(e.push(t),o.push(l.from));s=l.to}}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkcodebuff=self.webpackChunkcodebuff||[]).push([[364],{4364(e,t,n){function r(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}n.r(t),n.d(t,{Hooks:()=>xe,Lexer:()=>ke,Marked:()=>be,Parser:()=>fe,Renderer:()=>ge,TextRenderer:()=>de,Tokenizer:()=>ue,defaults:()=>s,getDefaults:()=>r,lexer:()=>_e,marked:()=>me,options:()=>ye,parse:()=>ze,parseInline:()=>Te,parser:()=>Ae,setOptions:()=>$e,use:()=>Re,walkTokens:()=>Se});var s={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function l(e){s=e}var i={exec:()=>null};function a(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let s="string"==typeof t?t:t.source;return s=s.replace(c.caret,"$1"),n=n.replace(e,s),r},getRegex:()=>new RegExp(n,t)};return r}var o=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),c={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},h=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,p=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,u=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,k=a(u).replace(/bull/g,p).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),g=a(u).replace(/bull/g,p).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),d=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,f=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,x=a(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",f).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),b=a(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,p).getRegex(),w="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",m=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,y=a("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",m).replace("tag",w).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$=a(d).replace("hr",h).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",w).getRegex(),R={blockquote:a(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",$).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:x,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:h,html:y,lheading:k,list:b,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:$,table:i,text:/^[^\n]+/},S=a("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",h).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",w).getRegex(),T={...R,lheading:g,table:S,paragraph:a(d).replace("hr",h).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",S).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",w).getRegex()},z={...R,html:a("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",m).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:i,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:a(d).replace("hr",h).replace("heading"," *#{1,6} *[^\n]").replace("lheading",k).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},A=/^( {2,}|\\)\n(?!\s*$)/,_=/[\p{P}\p{S}]/u,P=/[\s\p{P}\p{S}]/u,I=/[^\s\p{P}\p{S}]/u,L=a(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,P).getRegex(),C=/(?!~)[\p{P}\p{S}]/u,B=a(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",o?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),q=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,E=a(q,"u").replace(/punct/g,_).getRegex(),v=a(q,"u").replace(/punct/g,C).getRegex(),Z="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",D=a(Z,"gu").replace(/notPunctSpace/g,I).replace(/punctSpace/g,P).replace(/punct/g,_).getRegex(),M=a(Z,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,C).getRegex(),Q=a("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,I).replace(/punctSpace/g,P).replace(/punct/g,_).getRegex(),H=a(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,_).getRegex(),O=a("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,I).replace(/punctSpace/g,P).replace(/punct/g,_).getRegex(),N=a(/\\(punct)/,"gu").replace(/punct/g,_).getRegex(),j=a(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),G=a(m).replace("(?:--\x3e|$)","--\x3e").getRegex(),X=a("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",G).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),W=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,F=a(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",W).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),U=a(/^!?\[(label)\]\[(ref)\]/).replace("label",W).replace("ref",f).getRegex(),J=a(/^!?\[(ref)\](?:\[\])?/).replace("ref",f).getRegex(),K=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,V={_backpedal:i,anyPunctuation:N,autolink:j,blockSkip:B,br:A,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:i,delLDelim:i,delRDelim:i,emStrongLDelim:E,emStrongRDelimAst:D,emStrongRDelimUnd:Q,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:F,nolink:J,punctuation:L,reflink:U,reflinkSearch:a("reflink|nolink(?!\\()","g").replace("reflink",U).replace("nolink",J).getRegex(),tag:X,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:i},Y={...V,link:a(/^!?\[(label)\]\((.*?)\)/).replace("label",W).getRegex(),reflink:a(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",W).getRegex()},ee={...V,emStrongRDelimAst:M,emStrongLDelim:v,delLDelim:H,delRDelim:O,url:a(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",K).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:a(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",K).getRegex()},te={...ee,br:a(A).replace("{2,}","*").getRegex(),text:a(ee.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ne={normal:R,gfm:T,pedantic:z},re={normal:V,gfm:ee,breaks:te,pedantic:Y},se={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},le=e=>se[e];function ie(e,t){if(t){if(c.escapeTest.test(e))return e.replace(c.escapeReplace,le)}else if(c.escapeTestNoEncode.test(e))return e.replace(c.escapeReplaceNoEncode,le);return e}function ae(e){try{e=encodeURI(e).replace(c.percentDecode,"%")}catch{return null}return e}function oe(e,t){let n=e.replace(c.findPipe,(e,t,n)=>{let r=!1,s=t;for(;--s>=0&&"\\"===n[s];)r=!r;return r?"|":" |"}).split(c.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(c.slashPipe,"|");return n}function ce(e,t,n){let r=e.length;if(0===r)return"";let s=0;for(;s<r;){let l=e.charAt(r-s-1);if(l!==t||n){if(l===t||!n)break;s++}else s++}return e.slice(0,r-s)}function he(e,t=0){let n=t,r="";for(let t of e)if("\t"===t){let e=4-n%4;r+=" ".repeat(e),n+=e}else r+=t,n++;return r}function pe(e,t,n,r,s){let l=t.href,i=t.title||null,a=e[1].replace(s.other.outputLinkReplace,"$1");r.state.inLink=!0;let o={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:l,title:i,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,o}var ue=class{options;rules;lexer;constructor(e){this.options=e||s}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:ce(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let s=r[1];return t.split("\n").map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=s.length?e.slice(s.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=ce(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:ce(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=ce(t[0],"\n").split("\n"),n="",r="",s=[];for(;e.length>0;){let t,l=!1,i=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))i.push(e[t]),l=!0;else{if(l)break;i.push(e[t])}e=e.slice(t);let a=i.join("\n"),o=a.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${a}`:a,r=r?`${r}\n${o}`:o;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(o,s,!0),this.lexer.state.top=c,0===e.length)break;let h=s.at(-1);if("code"===h?.type)break;if("blockquote"===h?.type){let t=h,l=t.raw+"\n"+e.join("\n"),i=this.blockquote(l);s[s.length-1]=i,n=n.substring(0,n.length-t.raw.length)+i.raw,r=r.substring(0,r.length-t.text.length)+i.text;break}if("list"===h?.type){let t=h,l=t.raw+"\n"+e.join("\n"),i=this.list(l);s[s.length-1]=i,n=n.substring(0,n.length-h.raw.length)+i.raw,r=r.substring(0,r.length-t.raw.length)+i.raw,e=l.substring(s.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:s,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,s={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let l=this.rules.other.listItemRegex(n),i=!1;for(;e;){let n=!1,r="",a="";if(!(t=l.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let o=he(t[2].split("\n",1)[0],t[1].length),c=e.split("\n",1)[0],h=!o.trim(),p=0;if(this.options.pedantic?(p=2,a=o.trimStart()):h?p=t[1].length+1:(p=o.search(this.rules.other.nonSpaceChar),p=p>4?1:p,a=o.slice(p),p+=t[1].length),h&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(p),n=this.rules.other.hrRegex(p),s=this.rules.other.fencesBeginRegex(p),l=this.rules.other.headingBeginRegex(p),i=this.rules.other.htmlBeginRegex(p),u=this.rules.other.blockquoteBeginRegex(p);for(;e;){let k,g=e.split("\n",1)[0];if(c=g,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),k=c):k=c.replace(this.rules.other.tabCharGlobal," "),s.test(c)||l.test(c)||i.test(c)||u.test(c)||t.test(c)||n.test(c))break;if(k.search(this.rules.other.nonSpaceChar)>=p||!c.trim())a+="\n"+k.slice(p);else{if(h||o.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||s.test(o)||l.test(o)||n.test(o))break;a+="\n"+c}h=!c.trim(),r+=g+"\n",e=e.substring(g.length+1),o=k.slice(p)}}s.loose||(i?s.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(i=!0)),s.items.push({type:"list_item",raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(a),loose:!1,text:a,tokens:[]}),s.raw+=r}let a=s.items.at(-1);if(!a)return;a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd(),s.raw=s.raw.trimEnd();for(let e of s.items){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,""),"text"===e.tokens[0]?.type||"paragraph"===e.tokens[0]?.type){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let n={type:"checkbox",raw:t[0]+" ",checked:"[ ]"!==t[0]};e.checked=n.checked,s.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=n.raw+e.tokens[0].raw,e.tokens[0].text=n.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(n)):e.tokens.unshift({type:"paragraph",raw:n.raw,text:n.raw,tokens:[n]}):e.tokens.unshift(n)}}if(!s.loose){let t=e.tokens.filter(e=>"space"===e.type),n=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));s.loose=n}}if(s.loose)for(let e of s.items){e.loose=!0;for(let t of e.tokens)"text"===t.type&&(t.type="paragraph")}return s}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=oe(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],l={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?l.align.push("right"):this.rules.other.tableAlignCenter.test(e)?l.align.push("center"):this.rules.other.tableAlignLeft.test(e)?l.align.push("left"):l.align.push(null);for(let e=0;e<n.length;e++)l.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:l.align[e]});for(let e of s)l.rows.push(oe(e,l.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:l.align[t]})));return l}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=ce(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),pe(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return pe(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(r&&(r[1]||r[2]||r[3]||r[4])&&(!r[4]||!n.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[3]||!n||this.rules.inline.punctuation.exec(n))){let n,s,l=[...r[0]].length-1,i=l,a=0,o="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,t=t.slice(-1*e.length+l);null!==(r=o.exec(t));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n)continue;if(s=[...n].length,r[3]||r[4]){i+=s;continue}if((r[5]||r[6])&&l%3&&!((l+s)%3)){a+=s;continue}if(i-=s,i>0)continue;s=Math.min(s,s+i+a);let t=[...r[0]][0].length,o=e.slice(0,l+r.index+t+s);if(Math.min(l,s)%2){let e=o.slice(1,-1);return{type:"em",raw:o,text:e,tokens:this.lexer.inlineTokens(e)}}let c=o.slice(2,-2);return{type:"strong",raw:o,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n,s,l=[...r[0]].length-1,i=l,a=this.rules.inline.delRDelim;for(a.lastIndex=0,t=t.slice(-1*e.length+l);null!==(r=a.exec(t));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n||(s=[...n].length,s!==l))continue;if(r[3]||r[4]){i+=s;continue}if(i-=s,i>0)continue;s=Math.min(s,s+i);let t=[...r[0]][0].length,a=e.slice(0,l+r.index+t+s),o=a.slice(l,-l);return{type:"del",raw:a,text:o,tokens:this.lexer.inlineTokens(o)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=t[0],n="mailto:"+e;else{let r;do{r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},ke=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||s,this.options.tokenizer=this.options.tokenizer||new ue,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:c,block:ne.normal,inline:re.normal};this.options.pedantic?(t.block=ne.pedantic,t.inline=re.pedantic):this.options.gfm&&(t.block=ne.gfm,this.options.breaks?t.inline=re.breaks:t.inline=re.gfm),this.tokenizer.rules=t}static get rules(){return{block:ne,inline:re}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(c.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(c.tabCharGlobal," ").replace(c.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+="\n":t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let s=e;if(this.options.extensions?.startBlock){let t,n=1/0,r=e.slice(1);this.options.extensions.startBlock.forEach(e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(s=e.substring(0,n+1))}if(this.state.top&&(r=this.tokenizer.paragraph(s))){let l=t.at(-1);n&&"paragraph"===l?.type?(l.raw+=(l.raw.endsWith("\n")?"":"\n")+r.raw,l.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):t.push(r),n=s.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n,r=e,s=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!==(s=this.tokenizer.rules.inline.reflinkSearch.exec(r));)e.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!==(s=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,s.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!==(s=this.tokenizer.rules.inline.blockSkip.exec(r));)n=s[2]?s[2].length:0,r=r.slice(0,s.index+n)+"["+"a".repeat(s[0].length-n-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let l=!1,i="";for(;e;){let n;if(l||(i=""),l=!1,this.options.extensions?.inline?.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===n.type&&"text"===r?.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,r,i)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e,r,i)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let s=e;if(this.options.extensions?.startInline){let t,n=1/0,r=e.slice(1);this.options.extensions.startInline.forEach(e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(s=e.substring(0,n+1))}if(n=this.tokenizer.inlineText(s)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(i=n.raw.slice(-1)),l=!0;let r=t.at(-1);"text"===r?.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return t}},ge=class{options;parser;constructor(e){this.options=e||s}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(c.notSpaceStart)?.[0],s=e.replace(c.endingNewline,"")+"\n";return r?'<pre><code class="language-'+ie(r)+'">'+(n?s:ie(s,!0))+"</code></pre>\n":"<pre><code>"+(n?s:ie(s,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let s=t?"ol":"ul";return"<"+s+(t&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+s+">\n"}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let s=e.rows[t];n="";for(let e=0;e<s.length;e++)n+=this.tablecell(s[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+r+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ie(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),s=ae(e);if(null===s)return r;let l='<a href="'+(e=s)+'"';return t&&(l+=' title="'+ie(t)+'"'),l+=">"+r+"</a>",l}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let s=ae(e);if(null===s)return ie(n);let l=`<img src="${e=s}" alt="${ie(n)}"`;return t&&(l+=` title="${ie(t)}"`),l+=">",l}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ie(e.text)}},de=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},fe=class e{options;renderer;textRenderer;constructor(e){this.options=e||s,this.options.renderer=this.options.renderer||new ge,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new de}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t="";for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==n||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(e.type)){t+=n||"";continue}}let s=r;switch(s.type){case"space":t+=this.renderer.space(s);break;case"hr":t+=this.renderer.hr(s);break;case"heading":t+=this.renderer.heading(s);break;case"code":t+=this.renderer.code(s);break;case"table":t+=this.renderer.table(s);break;case"blockquote":t+=this.renderer.blockquote(s);break;case"list":t+=this.renderer.list(s);break;case"checkbox":t+=this.renderer.checkbox(s);break;case"html":t+=this.renderer.html(s);break;case"def":t+=this.renderer.def(s);break;case"paragraph":t+=this.renderer.paragraph(s);break;case"text":t+=this.renderer.text(s);break;default:{let e='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n="";for(let r=0;r<e.length;r++){let s=e[r];if(this.options.extensions?.renderers?.[s.type]){let e=this.options.extensions.renderers[s.type].call({parser:this},s);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){n+=e||"";continue}}let l=s;switch(l.type){case"escape":case"text":n+=t.text(l);break;case"html":n+=t.html(l);break;case"link":n+=t.link(l);break;case"image":n+=t.image(l);break;case"checkbox":n+=t.checkbox(l);break;case"strong":n+=t.strong(l);break;case"em":n+=t.em(l);break;case"codespan":n+=t.codespan(l);break;case"br":n+=t.br(l);break;case"del":n+=t.del(l);break;default:{let e='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}},xe=class{options;block;constructor(e){this.options=e||s}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?ke.lex:ke.lexInline}provideParser(e=this.block){return e?fe.parse:fe.parseInline}},be=class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=fe;Renderer=ge;TextRenderer=de;Lexer=ke;Tokenizer=ue;Hooks=xe;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let s=e[r].flat(1/0);n=n.concat(this.walkTokens(s,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new ge(this.defaults);for(let n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=n,s=e.renderer[r],l=t[r];t[r]=(...e)=>{let n=s.apply(t,e);return!1===n&&(n=l.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new ue(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=n,s=e.tokenizer[r],l=t[r];t[r]=(...e)=>{let n=s.apply(t,e);return!1===n&&(n=l.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new xe;for(let n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=n,s=e.hooks[r],l=t[r];xe.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&xe.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await s.call(t,e);return l.call(t,n)})();let r=s.call(t,e);return l.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await s.apply(t,e);return!1===n&&(n=await l.apply(t,e)),n})();let n=s.apply(t,e);return!1===n&&(n=l.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ke.lex(e,t??this.defaults)}parser(e,t){return fe.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},s={...this.defaults,...r},l=this.onError(!!s.silent,!!s.async);if(!0===this.defaults.async&&!1===r.async)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return l(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=e),s.async)return(async()=>{let n=s.hooks?await s.hooks.preprocess(t):t,r=await(s.hooks?await s.hooks.provideLexer(e):e?ke.lex:ke.lexInline)(n,s),l=s.hooks?await s.hooks.processAllTokens(r):r;s.walkTokens&&await Promise.all(this.walkTokens(l,s.walkTokens));let i=await(s.hooks?await s.hooks.provideParser(e):e?fe.parse:fe.parseInline)(l,s);return s.hooks?await s.hooks.postprocess(i):i})().catch(l);try{s.hooks&&(t=s.hooks.preprocess(t));let n=(s.hooks?s.hooks.provideLexer(e):e?ke.lex:ke.lexInline)(t,s);s.hooks&&(n=s.hooks.processAllTokens(n)),s.walkTokens&&this.walkTokens(n,s.walkTokens);let r=(s.hooks?s.hooks.provideParser(e):e?fe.parse:fe.parseInline)(n,s);return s.hooks&&(r=s.hooks.postprocess(r)),r}catch(e){return l(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+ie(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},we=new be;function me(e,t){return we.parse(e,t)}me.options=me.setOptions=function(e){return we.setOptions(e),me.defaults=we.defaults,l(me.defaults),me},me.getDefaults=r,me.defaults=s,me.use=function(...e){return we.use(...e),me.defaults=we.defaults,l(me.defaults),me},me.walkTokens=function(e,t){return we.walkTokens(e,t)},me.parseInline=we.parseInline,me.Parser=fe,me.parser=fe.parse,me.Renderer=ge,me.TextRenderer=de,me.Lexer=ke,me.lexer=ke.lex,me.Tokenizer=ue,me.Hooks=xe,me.parse=me;var ye=me.options,$e=me.setOptions,Re=me.use,Se=me.walkTokens,Te=me.parseInline,ze=me,Ae=fe.parse,_e=ke.lex}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkcodebuff=self.webpackChunkcodebuff||[]).push([[438],{5438(e,t,n){n.d(t,{exportMarkdownPdf:()=>M});var r=n(9110),o=n.n(r),a=n(7164),i=n.n(a),c=n(3642),l=n(5369),d=n(5568),s=n(3950),u=n(4925);const f=[515,700],h=[762,460],m="#ffffff",p={"✅":"✓","❌":"✗","⏳":"…","❓":"?","️":""},g="pageFooter",b={"🔴":"#d32f2f","🟢":"#2e7d32","🔵":"#1565c0"},y=/[🔴🟢🔵]/gu,w=/([─-▟∀-⋿☐☑✗\p{Script=Han}]+|[🔴🟢🔵])/u;let S=null;async function A(e){const t=new Image;t.crossOrigin="anonymous",t.src=e,await t.decode();const n=Math.min(1,1400/t.naturalWidth),r=document.createElement("canvas");r.width=Math.round(t.naturalWidth*n),r.height=Math.round(t.naturalHeight*n),r.getContext("2d").drawImage(t,0,0,r.width,r.height);const o=r.toDataURL("image/png");if(!o.startsWith("data:image/png"))throw new Error("그림을 PNG 로 만들지 못했습니다");return{url:o,width:t.naturalWidth,height:t.naturalHeight}}async function E(e,t){const{svg:n}=await e.renderSvg(t+'\n%%{init: {"theme":"default"}}%%'),r=(0,u.uZ)(`data:image/svg+xml,${encodeURIComponent(n)}`,m);var o;return{url:await(o=await(0,u._S)(r,m,3),new Promise((e,t)=>{const n=new FileReader;n.onload=()=>e(n.result),n.onerror=()=>t(n.error),n.readAsDataURL(o)})),width:r.width,height:r.height}}function C(e){const t=e.closest("td,th");return t?f[0]/t.parentElement.children.length-8:e.closest("li,blockquote")?460:f[0]}function x(e){return!e.closest(".jp-RenderedMermaid")}function k(e){const t=document.createElement("pre");return t.textContent=e,t}function L(e){return Array.from(e).length>1?`(${e})`:e}function N(e){const t=Array.from(e.children).map(N);switch(e.localName){case"msup":case"mover":return`${t[0]}^${L(t[1])}`;case"msub":case"munder":return`${t[0]}_${L(t[1])}`;case"msubsup":case"munderover":return`${t[0]}_${L(t[1])}^${L(t[2])}`;case"mfrac":return`${L(t[0])}/${L(t[1])}`;case"msqrt":return`√(${t.join("")})`;case"mroot":return`${L(t[1])}√(${t[0]})`;default:return t.length?t.join(""):e.textContent}}function v(e){const t=e.closest("td,th");if(!t)return 40;const n=Math.floor(C(t)/7);return Math.max(3,Math.min(12,n))}function q(e,t,n){const r=document.createElement("table");r.setAttribute("data-pdfmake",JSON.stringify({layout:t,widths:["*"]}));const o=r.insertRow().insertCell();n&&o.setAttribute("data-pdfmake",JSON.stringify({fillColor:n})),e.replaceWith(r),o.appendChild(e)}async function M(e,t){await e.context.ready,await e.content.ready;const n={empty:!1,mermaidFailed:0,imageFailed:0},r=e.content.renderer.node;if(!r.textContent.trim()&&!r.querySelector("img"))return n.empty=!0,n;const a=r.cloneNode(!0);await async function(e,t,n){const r=Array.from(e.querySelectorAll("img")).filter(x),o=Array.from(t.querySelectorAll("img")).filter(x);for(let e=0;e<o.length;e++){const t=o[e];try{const n=await A(r[e].src);t.setAttribute("src",n.url),t.setAttribute("data-pdfmake",JSON.stringify({fit:[Math.min(.75*n.width,C(t)),Math.min(.75*n.height,f[1])]}))}catch{const e=document.createElement("p");e.textContent=`[그림: ${t.getAttribute("alt")||"설명 없음"}]`,t.replaceWith(e),n.imageFailed++}}}(r,a,n),a.querySelectorAll(".codebuff-md-code-copy,.codebuff-mermaid-toolbar").forEach(e=>e.remove()),(0,s.ni)(a,e.context.model.toString()).forEach((e,t)=>{t.textContent=e}),await async function(e,t,n){for(const r of Array.from(e.querySelectorAll(".jp-RenderedMermaid"))){const o=r.querySelector("code.mermaid")?.textContent??"";try{if(!t||r.classList.contains("jp-mod-warning"))throw new Error("다이어그램을 그릴 수 없습니다");const n=await E(t,o),a=r.parentElement===e&&n.width>f[0]&&n.width/n.height>1.8,i=a?h:[Math.min(n.width,C(r)),Math.min(n.height,f[1])],c=document.createElement("img");c.setAttribute("src",n.url),c.setAttribute("data-pdfmake",JSON.stringify({fit:i,alignment:"center",wideFigure:a})),r.replaceWith(c)}catch{r.replaceWith(k(o)),n.mermaidFailed++}}}(a,t,n),function(e){e.querySelectorAll("a.jp-InternalAnchorLink").forEach(e=>e.remove()),e.querySelectorAll("a").forEach(e=>{(function(e){try{const t=new URL(e,location.href);return t.origin!==location.origin&&["http:","https:","mailto:"].includes(t.protocol)}catch{return!1}})(e.href)||e.replaceWith(...Array.from(e.childNodes))})}(a),function(e){e.querySelectorAll("style,script").forEach(e=>e.remove()),e.querySelectorAll("mjx-container").forEach(e=>{const t=e.querySelector("mjx-assistive-mml math");e.replaceWith(document.createTextNode(t?N(t):e.textContent))}),e.querySelectorAll("input[type=checkbox]").forEach(e=>{e.replaceWith(document.createTextNode(e.checked?"☑ ":"☐ "))}),e.querySelectorAll("summary").forEach(e=>{const t=document.createElement("p"),n=document.createElement("b");n.append(...Array.from(e.childNodes)),t.appendChild(n),e.replaceWith(t)}),e.querySelectorAll("details").forEach(e=>{e.replaceWith(...Array.from(e.childNodes))}),e.querySelectorAll("[id]").forEach(e=>e.removeAttribute("id")),e.querySelectorAll("h1,h2,h3,h4,h5,h6").forEach(e=>{e.setAttribute("data-pdfmake",JSON.stringify({headlineLevel:Number(e.tagName[1])}))})}(a),a.querySelectorAll("pre").forEach(e=>{e.textContent=e.textContent.replace(/\n$/,"").replace(/\t/g," ").split("\n").map(e=>{let t=0,n="";for(const r of e){const e=r.charCodeAt(0)>11903?2:1;t+e>116&&(n+="\n",t=0),n+=r,t+=e}return n}).join("\n")}),function(e){const t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=[];for(;t.nextNode();)n.push(t.currentNode);for(const e of n){const t=e.parentElement;let n=e.nodeValue;for(const[e,t]of Object.entries(p))n=n.split(e).join(t);if(t.closest("pre")||(n=n.replace(new RegExp(`[^\\s\\u200B]{${v(t)}}(?=\\S)`,"gu"),e=>`${e}​`)),t.closest("pre,code")){e.nodeValue=n.replace(y,"●");continue}if(!w.test(n)){e.nodeValue=n;continue}const r=document.createDocumentFragment();for(const e of n.split(w))if(w.test(e)){const t=b[e],n=document.createElement("span");n.setAttribute("data-pdfmake",JSON.stringify(t?{color:t}:{font:"Mono"})),n.textContent=t?"●":e,r.appendChild(n)}else e&&r.appendChild(document.createTextNode(e));e.replaceWith(r)}}(a),function(e){e.querySelectorAll("table").forEach(e=>{e.setAttribute("data-pdfmake",JSON.stringify({headerRows:e.tHead?e.tHead.rows.length:0,layout:"cbTable"})),e.querySelectorAll("th").forEach(e=>{e.setAttribute("data-pdfmake",JSON.stringify({fillColor:"#eeeeee"}))})}),e.querySelectorAll("pre").forEach(e=>q(e,"cbCode","#f5f5f5")),e.querySelectorAll("blockquote").forEach(e=>q(e,"cbQuote"))}(a);const u=e.context.localPath.split("/").pop().replace(/(.)\.[^.]+$/,"$1");return function(e,t){const n=URL.createObjectURL(e),r=document.createElement("a");r.href=n,r.download=t,document.body.appendChild(r),r.click(),r.remove(),setTimeout(()=>URL.revokeObjectURL(n),1e4)}(await async function(e,t){const n=function(e){let t="portrait";return e.forEach((n,r)=>{if(!n.wideFigure)return;const o=e[r-1]?.headlineLevel?e[r-1]:n;o===e[0]?t="landscape":(o.pageOrientation="landscape",o.pageBreak="before");const a=e[r+1];a&&!a.wideFigure&&(a.pageOrientation="portrait",a.pageBreak="before")}),t}(e);return i().addTableLayouts({cbTable:{hLineWidth:()=>.5,vLineWidth:()=>.5,hLineColor:()=>"#bbbbbb",vLineColor:()=>"#bbbbbb",paddingLeft:()=>4,paddingRight:()=>4,paddingTop:()=>2,paddingBottom:()=>2},cbCode:{hLineWidth:()=>0,vLineWidth:()=>0,paddingLeft:()=>6,paddingRight:()=>6,paddingTop:()=>4,paddingBottom:()=>4},cbQuote:{hLineWidth:()=>0,vLineWidth:e=>0===e?2:0,vLineColor:()=>"#bbbbbb",paddingLeft:()=>8,paddingRight:()=>0,paddingTop:()=>2,paddingBottom:()=>2}}),i().addVirtualFileSystem(await function(){if(!S){const e=async e=>{const t=await fetch(e);if(!t.ok)throw new Error(`글꼴을 받지 못했습니다 (${t.status})`);return function(e){const t=new Uint8Array(e);let n="";for(let e=0;e<t.length;e+=32768)n+=String.fromCharCode.apply(null,t.subarray(e,e+32768));return btoa(n)}(await t.arrayBuffer())};S=Promise.all([e(d),e(l),e(c)]).then(([e,t,n])=>({"R.ttf":e,"B.ttf":t,"M.ttf":n})).catch(e=>{throw S=null,e})}return S}()),i().addFonts({Pretendard:{normal:"R.ttf",bold:"B.ttf",italics:"R.ttf",bolditalics:"B.ttf"},Mono:{normal:"M.ttf",bold:"M.ttf",italics:"M.ttf",bolditalics:"M.ttf"}}),i().createPdf({info:{title:t},pageSize:"A4",pageOrientation:n,pageMargins:[40,40,40,44],defaultStyle:{font:"Pretendard",fontSize:10,lineHeight:1.35},content:e,footer:(e,t)=>({text:`${e} / ${t}`,alignment:"center",fontSize:8,color:"#888888",style:g}),pageBreakBefore:(e,t)=>!!e.headlineLevel&&t.getFollowingNodesOnPage().every(e=>e.style===g||e.headlineLevel)&&t.getNodesOnNextPage().length>0&&t.getPreviousNodesOnPage().length>0}).getBlob()}(function(e){return o()(e.innerHTML,{window,defaultStyles:{h1:{fontSize:20,bold:!0,marginBottom:6,marginTop:10},h2:{fontSize:16,bold:!0,marginBottom:5,marginTop:10},h3:{fontSize:13,bold:!0,marginBottom:4,marginTop:8},pre:{font:"Mono",fontSize:8.5,lineHeight:1.1,margin:[0,0,0,0]},code:{font:"Mono",fontSize:9,background:"#f0f0f0"},a:{color:"#1565c0"},th:{bold:!0},p:{margin:[0,3,0,6]},table:{marginBottom:8},blockquote:{margin:[0,0,0,0],color:"#555555"},hr:{margin:[0,6,0,6]}}}).filter(e=>e.nodeName||""!==e.text?.trim?.())}(a),u),`${u}.pdf`),n}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkcodebuff=self.webpackChunkcodebuff||[]).push([[489],{4489(O,e,n){n.r(e),n.d(e,{hcl:()=>X});var t=n(1839),i=n(7421),a=n(2084);const Q=(0,t.styleTags)({"for in if else endfor endif":t.tags.controlKeyword,"Attribute/Identifier":t.tags.definition(t.tags.propertyName),"ObjectKey/Expression/VariableExpr/Identifier":t.tags.definition(t.tags.propertyName),"ObjectKey/Expression/LiteralValue/StringLit!":t.tags.definition(t.tags.propertyName),"ForIntro/Identifier TemplateForStart/Identifier":t.tags.definition(t.tags.variableName),"BlockType!":t.tags.typeName,"BlockLabel!":t.tags.labelName,"FunctionNamespace/Identifier":t.tags.namespace,"FunctionName/Identifier":t.tags.function(t.tags.variableName),"VariableExpr/Identifier":t.tags.variableName,"GetAttr/Identifier":t.tags.propertyName,Identifier:t.tags.name,"QuotedTemplateStart QuotedTemplateEnd TemplateLiteral":t.tags.string,NumericLit:t.tags.number,"true false":t.tags.bool,null:t.tags.null,LineComment:t.tags.lineComment,BlockComment:t.tags.blockComment,"( )":t.tags.paren,"{ }":t.tags.brace,"[ ]":t.tags.squareBracket,ArithOp:t.tags.arithmeticOperator,LogicOp:t.tags.logicOperator,CompareOp:t.tags.compareOperator,ControlOp:t.tags.controlOperator,"ControlOp/Colon":t.tags.controlOperator,AssignOp:t.tags.definitionOperator,DerefOp:t.tags.derefOperator,HeredocIdentifier:t.tags.special(t.tags.controlKeyword),HeredocStart:t.tags.operator,"TemplateInterpolationStart TemplateInterpolationEnd":t.tags.special(t.tags.brace),"TemplateDirectiveStart TemplateDirectiveEnd":t.tags.special(t.tags.brace),StripMarker:t.tags.special(t.tags.brace),"AttrSplat FullSplat LegacyIndex":t.tags.derefOperator,"Arrow Ellipsis":t.tags.punctuation,"ObjectElem/Colon ForIntro/Colon Comma NamespaceSeparator":t.tags.separator}),r=105;class o{constructor(O,e,n){this.parent=O,this.type=e,this.heredoc_identifier=n,this.hash=(O?O.hash+O.hash<<8:0)+(e<<4)+(""===this.heredoc_identifier?0:function(O){var e,n=0;if(0===O.length)return n;for(e=0;e<O.length;e++)n=(n<<5)-n+O.charCodeAt(e),n|=0;return n}(this.heredoc_identifier))}}const c=new o(null,"",""),p=new i.Aj({start:c,shift(O,e,n,t){if(1===e)return new o(O,1,"");if(3===e)return new o(O,2,"");if(5===e)return new o(O,4,"");if(7===e&&8!==O.type)return new o(O,8,t.read(t.pos,n.pos));if(7===e&&8===O.type)return O.parent;switch(e){case 2:case 4:case 6:return O.parent}return O},hash:O=>O.hash}),l=new i.Lu((O,e)=>{if(e.canShift(1)&&(!e.context||1!==e.context.type)&&'"'===String.fromCharCode(O.next))return O.advance(),O.acceptToken(1)},{contextual:!0,fallback:!0}),d=new i.Lu((O,e)=>{if(e.canShift(2)&&e.context&&1===e.context.type&&'"'===String.fromCharCode(O.next))return O.advance(),O.acceptToken(2)},{contextual:!0,fallback:!0}),$=new i.Lu((O,e)=>{if(e.canShift(r)&&e.context&&1===e.context.type&&"\\"===String.fromCharCode(O.next))switch(O.advance(),String.fromCharCode(O.next)){case'"':case"n":case"r":case"t":case"\\":return O.advance(),O.acceptToken(r);case"u":for(let e=0;e<4;e++)if(O.advance(),!/[0-9a-fA-F]/.test(String.fromCharCode(O.next)))return;return O.advance(),O.acceptToken(r);case"U":for(let e=0;e<8;e++)if(O.advance(),!/[0-9a-fA-F]/.test(String.fromCharCode(O.next)))return;return O.advance(),O.acceptToken(r);default:return}if(e.canShift(r)&&e.context&&(1===e.context.type||8===e.context.type)&&-1!==O.next)return O.advance(),O.acceptToken(r)},{contextual:!0,fallback:!0}),P=new i.Lu((O,e)=>{if(e.canShift(3)&&e.canShift(r)&&(!e.context||2!==e.context.type)&&"$"===String.fromCharCode(O.next))return O.advance(),"{"===String.fromCharCode(O.next)?(O.advance(),O.acceptToken(3)):"$"===String.fromCharCode(O.next)&&(O.advance(),"{"===String.fromCharCode(O.next))?(O.advance(),O.acceptToken(r)):O.acceptToken(r)},{contextual:!0,fallback:!0}),s=new i.Lu((O,e)=>{if(e.canShift(4)&&e.context&&2===e.context.type&&"}"===String.fromCharCode(O.next))return O.advance(),O.acceptToken(4)},{contextual:!0,fallback:!0}),f=new i.Lu((O,e)=>{if(e.canShift(5)&&e.canShift(r)&&(!e.context||4!==e.context.type)&&"%"===String.fromCharCode(O.next))return O.advance(),"{"===String.fromCharCode(O.next)?(O.advance(),O.acceptToken(5)):"%"===String.fromCharCode(O.next)&&(O.advance(),"{"===String.fromCharCode(O.next))?(O.advance(),O.acceptToken(r)):O.acceptToken(r)},{contextual:!0,fallback:!0}),m=new i.Lu((O,e)=>{if(e.canShift(6)&&e.context&&4===e.context.type&&"}"===String.fromCharCode(O.next))return O.advance(),O.acceptToken(6)},{contextual:!0,fallback:!0}),g=new i.Lu((O,e)=>{if(e.canShift(7)&&(!e.context||8!==e.context.type)&&-1!==O.next){let e=String.fromCharCode(O.next);for(;/[0-9a-zA-Z]/.test(e)||"_"===e||"-"===e;)O.advance(),e=String.fromCharCode(O.next);return O.acceptToken(7)}if(e.canShift(7)&&e.canShift(r)&&e.context&&8===e.context.type&&-1!=O.next){const n=e.context.heredoc_identifier;let t=!1,i=!1,a=String.fromCharCode(O.next);for(;/\s/.test(a);)i=!0,"\n"===a&&(t=!0),O.advance(),a=String.fromCharCode(O.next);if(i&&O.acceptToken(r),!t)return;let Q=0;for(let e=0;e<n.length;e++){if(String.fromCharCode(O.next)!==n[e])return void(Q&&O.acceptToken(r));O.advance(),Q++}let o=0;for(;;){const e=O.peek(o);if(-1==e||"\n"===String.fromCharCode(e))return O.acceptToken(7);if(!/\s/.test(String.fromCharCode(e)))return O.acceptToken(r);o++}}},{contextual:!0,fallback:!0}),k={__proto__:null,true:41,false:43,null:47,for:66,in:70,endfor:74,if:80,else:84,endif:88},u=i.U1.deserialize({version:14,states:"GxQ]Q&jOOPeO&jOOOmQ&kO'#DcO!kQ&kO'#E_O!yQ&kO'#E^OOQO'#Ea'#EaO#UQ&jO'#ChQOQ&jOOPOOO'#Cd'#CdPOOO)C@`)C@`OOQy'#Co'#CoOOQy'#Cr'#CrO#aQ)vO'#CwOOQy'#Cm'#CmOOQ!b'#D['#D[O#oQ'|O'#DZOOQy'#Cv'#CvO$rQ&kO'#D`O$yQ&jO'#DeO%UQ&jO'#DdO&XQ&kO'#EqO&cQ&kO'#DcOOQy,59},59}O&jQ&jO,59}OOQy'#D]'#D]O(YQ'dO'#DgOOQO'#Ee'#EeO)PQ&jO'#DiO)UQ&jO'#DiOOQy'#Dp'#DpOOQP'#Dx'#DxOOQP'#Dy'#DyO%^Q&kO'#DwO*nQ'dO'#ClOOQy'#Dv'#DvOOQy'#El'#ElO%^Q&kO'#ElOOQy'#Cl'#ClO%^Q&kO,59TO#jQ)`O'#CtOOQP'#E`'#E`OOQP'#Eg'#EgO+eQ&kO,5:xO+pQ&jO,5:xOOQO-E8_-E8_O+xQ+YO'#CuO,ZQ)vO,59`O,iQ&sO'#CxO,sQ)tO'#C{O-OQ)tO'#DSOOQ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$x$y$|$}%O%R%g%m%z&W&]&f&p&z&{&}'O'P'Q'R'S'T'U'V'W'X'Y'`'a'd'eR!jkQzSR#Uz!hqQadetv!P!]!`!c!d!l!z#^#k#n#v#|$p$t$x$y$|$}%O%R%g%m%z&W&]&f&p'd'eU!mp&z&{S#z!e'aU$Q!t&}'OQ$R!uQ$S!vQ$T!wQ$U!xQ$V!yQ%t'QQ%u'SQ%v'UQ%w'WQ%x'YS&|!a'`Q'Z'PQ'['RQ']'TQ'^'VR'_'XQ#Z}R$`#YR![aTgQe",nodeNames:"⚠ QuotedTemplateStart QuotedTemplateEnd TemplateInterpolationStart TemplateInterpolationEnd TemplateDirectiveStart TemplateDirectiveEnd HeredocIdentifier Comment LineComment BlockComment ConfigFile Body Attribute Identifier AssignOp Expression LiteralValue NumericLit BoolLit true false NullLit null StringLit TemplateLiteral TemplateExpr QuotedTemplate TemplateInterpolation StripMarker TemplateDirective TemplateFor TemplateForStart for Comma in TemplateForEnd endfor TemplateIf TemplateIfIntro if TemplateElseIntro else TemplateIfEnd endif HeredocTemplate HeredocStart CollectionValue ] [ Tuple } { Object ObjectElem ObjectKey Colon VariableExpr ) FunctionCall FunctionNamespace NamespaceSeparator FunctionName ( FunctionArguments Ellipsis ForExpr ForTupleExpr ForIntro ForCond ForObjectExpr Arrow Operation UnaryOperation ArithOp LogicOp BinaryOperation ArithOp ArithOp CompareOp CompareOp LogicOp LogicOp Index NewIndex LegacyIndex GetAttr DerefOp Splat AttrSplat FullSplat Conditional ControlOp ControlOp Block BlockType BlockLabel",maxTerm:131,context:p,nodeProps:[["openedBy",48,"[",51,"{"],["closedBy",49,"]",52,"}"]],skippedNodes:[0,8,9,10],repeatNodeCount:7,tokenData:"-p~RvX^#ipq#iqr$^st$kuv%Svw%Xxy%dyz%iz{%n{|%s|}%x}!O%}!O!P&S!P!Q&z!Q!R(^!R![)l![!]*c!^!_*p!_!`+_!`!a+t!a!b,R!c!},W!}#O,l#P#Q-P#R#S,W#T#o,W#o#p-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}",align:!1})}),a.foldNodeProp.add({"Object Tuple TemplateFor TemplateIf":a.foldInside,BlockComment:O=>({from:O.from+2,to:O.to-2}),HeredocTemplate(O){const e=O.getChild("HeredocIdentifier");return e?{from:e.to,to:O.to}:null},FunctionCall(O){const e=O.getChild("("),n=O.getChild(")");return e&&n?{from:e.from+1,to:n.to-1}:null},Block(O){const e=O.getChild("{"),n=O.getChild("}");return e&&n?{from:e.from+1,to:n.to-1}:null}}),Q]}),languageData:{commentTokens:{line:"#",block:{open:"/*",close:"*/"}}}});function X(){return new a.LanguageSupport(x)}n.d(e,["hclLanguage",0,x])}}]);