@namewta/speculo 2.0.6 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. package/README.md +3 -0
  2. package/THIRD-PARTY-NOTICES.md +4 -0
  3. package/dist/src/agent-skills.d.ts +5 -0
  4. package/dist/src/agent-skills.js +10 -7
  5. package/dist/src/agent-skills.js.map +1 -1
  6. package/dist/src/cli.js +25 -36
  7. package/dist/src/cli.js.map +1 -1
  8. package/dist/src/coordination.d.ts +3 -3
  9. package/dist/src/coordination.js +21 -4
  10. package/dist/src/coordination.js.map +1 -1
  11. package/dist/src/doctor.js +8 -1
  12. package/dist/src/doctor.js.map +1 -1
  13. package/dist/src/external-files.d.ts +4 -2
  14. package/dist/src/external-files.js +4 -4
  15. package/dist/src/external-files.js.map +1 -1
  16. package/dist/src/hub-catalog.d.ts +11 -0
  17. package/dist/src/hub-catalog.js +91 -0
  18. package/dist/src/hub-catalog.js.map +1 -0
  19. package/dist/src/hub-resources.json +1 -0
  20. package/dist/src/hub-skills.d.ts +53 -0
  21. package/dist/src/hub-skills.js +157 -0
  22. package/dist/src/hub-skills.js.map +1 -0
  23. package/dist/src/index.d.ts +6 -0
  24. package/dist/src/index.js +48 -47
  25. package/dist/src/index.js.map +1 -1
  26. package/dist/src/install-ui.d.ts +16 -7
  27. package/dist/src/install-ui.js +143 -92
  28. package/dist/src/install-ui.js.map +1 -1
  29. package/dist/src/manifest.d.ts +2 -0
  30. package/dist/src/manifest.js +2 -0
  31. package/dist/src/manifest.js.map +1 -1
  32. package/dist/src/refresh.d.ts +1 -0
  33. package/dist/src/refresh.js +13 -10
  34. package/dist/src/refresh.js.map +1 -1
  35. package/dist/src/retained-workflows.d.ts +10 -0
  36. package/dist/src/retained-workflows.js +25 -0
  37. package/dist/src/retained-workflows.js.map +1 -0
  38. package/dist/src/runtime-entry.d.ts +1 -0
  39. package/dist/src/runtime-entry.js +1 -0
  40. package/dist/src/runtime-entry.js.map +1 -1
  41. package/dist/src/skill-trees.d.ts +27 -0
  42. package/dist/src/skill-trees.js +118 -0
  43. package/dist/src/skill-trees.js.map +1 -0
  44. package/dist/src/terminal-ui.d.ts +30 -0
  45. package/dist/src/terminal-ui.js +148 -0
  46. package/dist/src/terminal-ui.js.map +1 -0
  47. package/dist/src/transaction.d.ts +3 -14
  48. package/dist/src/transaction.js +20 -36
  49. package/dist/src/transaction.js.map +1 -1
  50. package/dist/src/workflow-install.d.ts +15 -0
  51. package/dist/src/workflow-install.js +104 -0
  52. package/dist/src/workflow-install.js.map +1 -0
  53. package/dist/src/workflows.js +1 -1
  54. package/dist/src/workflows.js.map +1 -1
  55. package/package.json +6 -2
  56. package/skills-hub/automation/grok-bot-team-steward/CHEATSHEET.md +17 -0
  57. package/skills-hub/automation/grok-bot-team-steward/INSTALL.md +23 -0
  58. package/skills-hub/automation/grok-bot-team-steward/LICENSE +21 -0
  59. package/skills-hub/automation/grok-bot-team-steward/README.md +9 -0
  60. package/skills-hub/automation/grok-bot-team-steward/SKILL.md +52 -0
  61. package/skills-hub/automation/grok-bot-team-steward/agents/openai.yaml +4 -0
  62. package/skills-hub/automation/grok-bot-team-steward/references/00-hard-rules.md +50 -0
  63. package/skills-hub/automation/grok-bot-team-steward/references/01-snapshot-schema.md +84 -0
  64. package/skills-hub/automation/grok-bot-team-steward/references/02-export-protocol.md +57 -0
  65. package/skills-hub/automation/grok-bot-team-steward/references/03-restore-protocol.md +64 -0
  66. package/skills-hub/automation/grok-bot-team-steward/references/04-inventory.md +37 -0
  67. package/skills-hub/automation/grok-bot-team-steward/references/05-conversations.md +71 -0
  68. package/skills-hub/automation/grok-bot-team-steward/references/06-sanitizer.md +39 -0
  69. package/skills-hub/automation/grok-bot-team-steward/references/07-prompts.md +87 -0
  70. package/skills-hub/automation/grok-bot-team-steward/references/08-verification.md +30 -0
  71. package/skills-hub/automation/grok-bot-team-steward/references/09-sources.md +31 -0
  72. package/skills-hub/automation/grok-bot-team-steward/scripts/scrub.sh +17 -0
  73. package/skills-hub/automation/grok-bot-team-steward/scripts/snapshot-name.sh +18 -0
  74. package/skills-hub/automation/grok-bot-team-steward/scripts/validate-snapshot.sh +62 -0
  75. package/skills-hub/automation/grok-bot-team-steward/steward/ACTIVATE.md +58 -0
  76. package/skills-hub/automation/grok-bot-team-steward/steward/SETUP-INSTRUCTIONS.md +33 -0
  77. package/skills-hub/automation/grok-bot-team-steward/steward/STEWARD-PROFILE.md +28 -0
  78. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/CHANGELOG.md +3 -0
  79. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/CHARTER.md +27 -0
  80. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/DROP-LIST.md +10 -0
  81. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/GAPS.md +6 -0
  82. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/INIT.md +14 -0
  83. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/MANIFEST.md +30 -0
  84. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/MANIFEST.yaml +20 -0
  85. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/ORG.md +15 -0
  86. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/README.md +8 -0
  87. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/RESTORE.md +13 -0
  88. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/ROSTER.md +11 -0
  89. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/bots/_SLUG/GAPS.md +7 -0
  90. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/bots/_SLUG/MEMORY.md +9 -0
  91. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/bots/_SLUG/PROFILE.md +27 -0
  92. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/bots/_SLUG/agent-spec.md +9 -0
  93. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/bots/_SLUG/conversations/INDEX.md +5 -0
  94. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/bots/_SLUG/conversations/main.md +9 -0
  95. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/bots/_SLUG/routines.md +5 -0
  96. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/bots/_SLUG/skills.md +5 -0
  97. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/connectors.md +7 -0
  98. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/meta/COMPLETED.md +6 -0
  99. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/meta/CREATED.md +6 -0
  100. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/meta/RESTORE-NOTES.md +13 -0
  101. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/meta/SANITIZER.md +7 -0
  102. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/meta/SOURCE.md +8 -0
  103. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/rooms/_ROOM.md +8 -0
  104. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/routines/_ROUTINE.md +12 -0
  105. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/shared/shared-memory.md +5 -0
  106. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/shared/workspace-map.md +5 -0
  107. package/skills-hub/automation/grok-bot-team-steward/templates/snapshot/skills/_SKILL/SKILL.md +18 -0
  108. package/skills-hub/automation/herdr/SKILL.md +246 -0
  109. package/skills-hub/automation/orca/SKILL.md +328 -0
  110. package/skills-hub/coding/gitea-repo/LICENSE +21 -0
  111. package/skills-hub/coding/gitea-repo/SKILL.md +50 -0
  112. package/skills-hub/coding/gitea-repo/agents/openai.yaml +4 -0
  113. package/skills-hub/coding/gitea-repo/references/auth-and-scopes.md +58 -0
  114. package/skills-hub/coding/gitea-repo/references/endpoint-map.md +80 -0
  115. package/skills-hub/coding/gitea-repo/references/pagination-and-errors.md +34 -0
  116. package/skills-hub/coding/gitea-repo/scripts/gitea_api.py +814 -0
  117. package/skills-hub/coding/github-repo-steward/LICENSE +21 -0
  118. package/skills-hub/coding/github-repo-steward/SKILL.md +48 -0
  119. package/skills-hub/coding/github-repo-steward/agents/openai.yaml +4 -0
  120. package/skills-hub/coding/github-repo-steward/references/00-auth-and-tokens.md +73 -0
  121. package/skills-hub/coding/github-repo-steward/references/01-inventory.md +55 -0
  122. package/skills-hub/coding/github-repo-steward/references/02-lifecycle.md +57 -0
  123. package/skills-hub/coding/github-repo-steward/references/03-stars.md +42 -0
  124. package/skills-hub/coding/github-repo-steward/references/04-hygiene.md +40 -0
  125. package/skills-hub/coding/github-repo-steward/references/05-sources.md +42 -0
  126. package/skills-hub/coding/github-repo-steward/scripts/inventory.sh +64 -0
  127. package/skills-hub/coding/vscode-fullstack/LICENSE +21 -0
  128. package/skills-hub/coding/vscode-fullstack/SKILL.md +47 -0
  129. package/skills-hub/coding/vscode-fullstack/agents/openai.yaml +4 -0
  130. package/skills-hub/coding/vscode-fullstack/references/extensions-and-settings.md +181 -0
  131. package/skills-hub/coding/vscode-fullstack/references/profiles-and-validation.md +62 -0
  132. package/skills-hub/coding/vscode-fullstack/references/runtime-reuse.md +52 -0
  133. package/skills-hub/design/photo-retouch/LICENSE +21 -0
  134. package/skills-hub/design/photo-retouch/SKILL.md +50 -0
  135. package/skills-hub/design/photo-retouch/agents/openai.yaml +4 -0
  136. package/skills-hub/design/photo-retouch/references/basic-retouch.md +58 -0
  137. package/skills-hub/design/photo-retouch/references/formal-portrait.md +57 -0
  138. package/skills-hub/design/photo-retouch/references/object-and-canvas.md +82 -0
  139. package/skills-hub/design/photo-retouch/references/product-photo.md +41 -0
  140. package/skills-hub/design/photo-retouch/references/repair-and-look.md +61 -0
  141. package/skills-hub/design/photo-retouch/references/social-effects.md +55 -0
  142. package/skills-hub/design/photo-retouch/references/travel-creative.md +79 -0
  143. package/skills-hub/system/clash-client-profile/LICENSE +21 -0
  144. package/skills-hub/system/clash-client-profile/SKILL.md +79 -0
  145. package/skills-hub/system/clash-client-profile/agents/openai.yaml +4 -0
  146. package/skills-hub/system/clash-client-profile/references/acceptance.md +81 -0
  147. package/skills-hub/system/clash-client-profile/references/browser-privacy.md +35 -0
  148. package/skills-hub/system/clash-client-profile/references/clash-verge.md +40 -0
  149. package/skills-hub/system/clash-client-profile/references/dns-workflow.md +147 -0
  150. package/skills-hub/system/clash-client-profile/references/flclash.md +24 -0
  151. package/skills-hub/system/clash-client-profile/references/network-performance.md +25 -0
  152. package/skills-hub/system/clash-client-profile/references/platform-dns.md +109 -0
  153. package/skills-hub/system/clash-client-profile/references/sources.md +46 -0
  154. package/skills-hub/system/clash-client-profile/references/troubleshooting.md +82 -0
  155. package/skills-hub/system/clash-client-profile/scripts/dns_guard.py +650 -0
  156. package/skills-hub/system/clash-client-profile/scripts/proxy_doctor.py +213 -0
  157. package/skills-hub/system/clash-client-profile/scripts/render_rules.py +34 -0
  158. package/skills-hub/system/clash-client-profile/templates/ai-rules.yaml +18 -0
  159. package/skills-hub/system/clash-client-profile/templates/dns-request.example.json +9 -0
  160. package/skills-hub/system/clash-client-profile/templates/dns.yaml +8 -0
  161. package/skills-hub/system/linux-dev-disk-cleanup/LICENSE +21 -0
  162. package/skills-hub/system/linux-dev-disk-cleanup/SKILL.md +42 -0
  163. package/skills-hub/system/linux-dev-disk-cleanup/agents/openai.yaml +4 -0
  164. package/skills-hub/system/linux-dev-disk-cleanup/references/linux-cleanup-workflow.md +145 -0
  165. package/skills-hub/system/optimize-codex-config/LICENSE +21 -0
  166. package/skills-hub/system/optimize-codex-config/SKILL.md +101 -0
  167. package/skills-hub/system/optimize-codex-config/agents/openai.yaml +4 -0
  168. package/skills-hub/system/optimize-codex-config/assets/capabilities.example.json +22 -0
  169. package/skills-hub/system/optimize-codex-config/references/cli.md +35 -0
  170. package/skills-hub/system/optimize-codex-config/references/configuration-contract.md +33 -0
  171. package/skills-hub/system/optimize-codex-config/references/optimization-method.md +38 -0
  172. package/skills-hub/system/optimize-codex-config/references/privacy.md +41 -0
  173. package/skills-hub/system/optimize-codex-config/references/sources.md +24 -0
  174. package/skills-hub/system/optimize-codex-config/references/statusline.md +31 -0
  175. package/skills-hub/system/optimize-codex-config/references/transactions.md +32 -0
  176. package/skills-hub/system/optimize-codex-config/references/troubleshooting.md +95 -0
  177. package/skills-hub/system/optimize-codex-config/scripts/adapters/claude.mjs +24 -0
  178. package/skills-hub/system/optimize-codex-config/scripts/adapters/codex.mjs +10 -0
  179. package/skills-hub/system/optimize-codex-config/scripts/ai-cli-config.mjs +67 -0
  180. package/skills-hub/system/optimize-codex-config/scripts/audit-codex-config.mjs +762 -0
  181. package/skills-hub/system/optimize-codex-config/scripts/lib/document.mjs +166 -0
  182. package/skills-hub/system/optimize-codex-config/scripts/lib/inspect.mjs +211 -0
  183. package/skills-hub/system/optimize-codex-config/scripts/lib/io.mjs +104 -0
  184. package/skills-hub/system/optimize-codex-config/scripts/lib/plan.mjs +79 -0
  185. package/skills-hub/system/optimize-codex-config/scripts/lib/transaction.mjs +205 -0
  186. package/skills-hub/system/optimize-codex-config/scripts/lib/writers.mjs +46 -0
  187. package/skills-hub/system/optimize-codex-config/scripts/statusline/claude-statusline.mjs +94 -0
  188. package/skills-hub/system/optimize-codex-config/scripts/vendor/THIRD-PARTY-NOTICES.txt +250 -0
  189. package/skills-hub/system/optimize-codex-config/scripts/vendor/build-package-lock.json +488 -0
  190. package/skills-hub/system/optimize-codex-config/scripts/vendor/manifest.json +14 -0
  191. package/skills-hub/system/optimize-codex-config/scripts/vendor/parsers.mjs +16 -0
  192. package/skills-hub/system/proxy-region-locale/LICENSE +21 -0
  193. package/skills-hub/system/proxy-region-locale/SKILL.md +42 -0
  194. package/skills-hub/system/proxy-region-locale/agents/openai.yaml +4 -0
  195. package/skills-hub/system/proxy-region-locale/references/linux.md +35 -0
  196. package/skills-hub/system/proxy-region-locale/references/macos.md +31 -0
  197. package/skills-hub/system/proxy-region-locale/references/windows.md +45 -0
  198. package/skills-hub/system/system-health-audit/LICENSE +21 -0
  199. package/skills-hub/system/system-health-audit/SKILL.md +41 -0
  200. package/skills-hub/system/system-health-audit/agents/openai.yaml +4 -0
  201. package/skills-hub/system/system-health-audit/references/platforms.md +37 -0
  202. package/skills-hub/system/system-health-audit/scripts/system_audit.py +41 -0
  203. package/skills-hub/system/windows-dev-disk-cleanup/LICENSE +21 -0
  204. package/skills-hub/system/windows-dev-disk-cleanup/SKILL.md +40 -0
  205. package/skills-hub/system/windows-dev-disk-cleanup/agents/openai.yaml +4 -0
  206. package/skills-hub/system/windows-dev-disk-cleanup/references/windows-cleanup-workflow.md +121 -0
  207. package/skills-hub/writing/.gitkeep +0 -0
  208. package/skills-hub/writing/job-application/LICENSE +21 -0
  209. package/skills-hub/writing/job-application/SKILL.md +160 -0
  210. package/skills-hub/writing/job-application/agents/openai.yaml +4 -0
  211. package/skills-hub/writing/job-application/assets/resume.css +10 -0
  212. package/skills-hub/writing/job-application/config.example.json +9 -0
  213. package/skills-hub/writing/job-application/references/company-research.md +7 -0
  214. package/skills-hub/writing/job-application/references/corpus-schema.md +33 -0
  215. package/skills-hub/writing/job-application/references/honesty-gate.md +29 -0
  216. package/skills-hub/writing/job-application/references/improvement-plan.md +15 -0
  217. package/skills-hub/writing/job-application/references/ingest-protocol.md +18 -0
  218. package/skills-hub/writing/job-application/references/interview-speech.md +16 -0
  219. package/skills-hub/writing/job-application/references/jd-parse.md +18 -0
  220. package/skills-hub/writing/job-application/references/persist-paths.md +34 -0
  221. package/skills-hub/writing/job-application/references/question-bank.md +19 -0
  222. package/skills-hub/writing/job-application/references/rendering.md +9 -0
  223. package/skills-hub/writing/job-application/references/resume-playbook.md +30 -0
  224. package/skills-hub/writing/job-application/scripts/README.md +12 -0
  225. package/skills-hub/writing/job-application/scripts/ingest_kb.py +188 -0
  226. package/skills-hub/writing/job-application/scripts/render_resume.py +144 -0
  227. package/skills-hub/writing/job-application/scripts/validate_claims.py +52 -0
  228. package/skills-hub/writing/job-application/scripts/write_config.py +72 -0
  229. package/skills-hub/writing/job-application/templates/application-index.md +10 -0
  230. package/skills-hub/writing/job-application/templates/brief.md +16 -0
  231. package/skills-hub/writing/job-application/templates/changelog.md +6 -0
  232. package/skills-hub/writing/job-application/templates/company-research.md +15 -0
  233. package/skills-hub/writing/job-application/templates/corpus.md +11 -0
  234. package/skills-hub/writing/job-application/templates/evidence-map.md +5 -0
  235. package/skills-hub/writing/job-application/templates/framings.md +6 -0
  236. package/skills-hub/writing/job-application/templates/improvement-plan.md +16 -0
  237. package/skills-hub/writing/job-application/templates/ingest-log.md +4 -0
  238. package/skills-hub/writing/job-application/templates/known-gaps.md +4 -0
  239. package/skills-hub/writing/job-application/templates/match-report.md +21 -0
  240. package/skills-hub/writing/job-application/templates/methodology-cache.md +10 -0
  241. package/skills-hub/writing/job-application/templates/persist-index.md +11 -0
  242. package/skills-hub/writing/job-application/templates/profile.md +21 -0
  243. package/skills-hub/writing/job-application/templates/questions.md +22 -0
  244. package/skills-hub/writing/job-application/templates/resume-original.md +10 -0
  245. package/skills-hub/writing/job-application/templates/resume-tailored.md +21 -0
  246. package/skills-hub/writing/job-application/templates/sources-index.md +6 -0
  247. package/skills-hub/writing/job-application/templates/speech.md +19 -0
  248. package/skills-hub/writing/job-application/templates/stories.md +9 -0
  249. package/skills-hub/writing/job-application/templates/story-bank.md +11 -0
  250. package/skills-hub/writing/job-application/templates/strengths.md +4 -0
  251. package/skills-hub/writing/job-application/templates/style-memory.md +7 -0
  252. package/skills-hub/writing/ste-zh/LICENSE +21 -0
  253. package/skills-hub/writing/ste-zh/NOTICE.md +9 -0
  254. package/skills-hub/writing/ste-zh/SKILL.md +130 -0
  255. package/skills-hub/writing/ste-zh/agents/openai.yaml +6 -0
  256. package/skills-hub/writing/ste-zh/examples/zh-report.md +23 -0
  257. package/skills-hub/writing/ste-zh/references/english-modes.md +13 -0
  258. package/skills-hub/writing/ste-zh/references/terminology.md +13 -0
  259. package/skills-hub/writing/ste-zh/references/zh-rules.md +29 -0
  260. package/template/.speculo/refresh-contract.json +2 -0
  261. package/template/canonical/canonical-specdev-goal-plan.md +33 -25
  262. package/template/canonical/canonical-specdev-grill-with-docs.md +214 -206
  263. package/template/canonical/canonical-specdev-spec.md +214 -206
  264. package/template/canonical/canonical-specdev-tickets.md +214 -206
  265. package/template/canonical/canonical-specdev-wayfinder.md +214 -206
  266. package/template/lib/speculo-runtime.mjs +183 -8
  267. package/template/references/coordination/coordination-contract.md +11 -3
  268. package/template/references/coordination/modes/cli.md +2 -2
  269. package/template/references/coordination/modes/herdr.md +9 -9
  270. package/template/references/coordination/modes/orca.md +11 -11
  271. package/template/references/coordination/project-facts.schema.json +1 -0
  272. package/template/workflows/specdev/specdev-i-init-setup/SKILL.md +7 -6
  273. package/template/workflows/specdev/specdev-i-init-setup/references/first-setup.md +30 -1
@@ -0,0 +1,488 @@
1
+ {
2
+ "name": "wta-parser-build-TNJblr",
3
+ "lockfileVersion": 3,
4
+ "requires": true,
5
+ "packages": {
6
+ "": {
7
+ "dependencies": {
8
+ "esbuild": "0.25.5",
9
+ "eslint-visitor-keys": "5.0.0",
10
+ "jsonc-parser": "3.3.1",
11
+ "toml-eslint-parser": "1.0.3"
12
+ }
13
+ },
14
+ "node_modules/@esbuild/aix-ppc64": {
15
+ "version": "0.25.5",
16
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.5.tgz",
17
+ "integrity": "sha512-9o3TMmpmftaCMepOdA5k/yDw8SfInyzWWTjYTFCX3kPSDJMROQTb8jg+h9Cnwnmm1vOzvxN7gIfB5V2ewpjtGA==",
18
+ "cpu": [
19
+ "ppc64"
20
+ ],
21
+ "license": "MIT",
22
+ "optional": true,
23
+ "os": [
24
+ "aix"
25
+ ],
26
+ "engines": {
27
+ "node": ">=18"
28
+ }
29
+ },
30
+ "node_modules/@esbuild/android-arm": {
31
+ "version": "0.25.5",
32
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.5.tgz",
33
+ "integrity": "sha512-AdJKSPeEHgi7/ZhuIPtcQKr5RQdo6OO2IL87JkianiMYMPbCtot9fxPbrMiBADOWWm3T2si9stAiVsGbTQFkbA==",
34
+ "cpu": [
35
+ "arm"
36
+ ],
37
+ "license": "MIT",
38
+ "optional": true,
39
+ "os": [
40
+ "android"
41
+ ],
42
+ "engines": {
43
+ "node": ">=18"
44
+ }
45
+ },
46
+ "node_modules/@esbuild/android-arm64": {
47
+ "version": "0.25.5",
48
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.5.tgz",
49
+ "integrity": "sha512-VGzGhj4lJO+TVGV1v8ntCZWJktV7SGCs3Pn1GRWI1SBFtRALoomm8k5E9Pmwg3HOAal2VDc2F9+PM/rEY6oIDg==",
50
+ "cpu": [
51
+ "arm64"
52
+ ],
53
+ "license": "MIT",
54
+ "optional": true,
55
+ "os": [
56
+ "android"
57
+ ],
58
+ "engines": {
59
+ "node": ">=18"
60
+ }
61
+ },
62
+ "node_modules/@esbuild/android-x64": {
63
+ "version": "0.25.5",
64
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.5.tgz",
65
+ "integrity": "sha512-D2GyJT1kjvO//drbRT3Hib9XPwQeWd9vZoBJn+bu/lVsOZ13cqNdDeqIF/xQ5/VmWvMduP6AmXvylO/PIc2isw==",
66
+ "cpu": [
67
+ "x64"
68
+ ],
69
+ "license": "MIT",
70
+ "optional": true,
71
+ "os": [
72
+ "android"
73
+ ],
74
+ "engines": {
75
+ "node": ">=18"
76
+ }
77
+ },
78
+ "node_modules/@esbuild/darwin-arm64": {
79
+ "version": "0.25.5",
80
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.5.tgz",
81
+ "integrity": "sha512-GtaBgammVvdF7aPIgH2jxMDdivezgFu6iKpmT+48+F8Hhg5J/sfnDieg0aeG/jfSvkYQU2/pceFPDKlqZzwnfQ==",
82
+ "cpu": [
83
+ "arm64"
84
+ ],
85
+ "license": "MIT",
86
+ "optional": true,
87
+ "os": [
88
+ "darwin"
89
+ ],
90
+ "engines": {
91
+ "node": ">=18"
92
+ }
93
+ },
94
+ "node_modules/@esbuild/darwin-x64": {
95
+ "version": "0.25.5",
96
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.5.tgz",
97
+ "integrity": "sha512-1iT4FVL0dJ76/q1wd7XDsXrSW+oLoquptvh4CLR4kITDtqi2e/xwXwdCVH8hVHU43wgJdsq7Gxuzcs6Iq/7bxQ==",
98
+ "cpu": [
99
+ "x64"
100
+ ],
101
+ "license": "MIT",
102
+ "optional": true,
103
+ "os": [
104
+ "darwin"
105
+ ],
106
+ "engines": {
107
+ "node": ">=18"
108
+ }
109
+ },
110
+ "node_modules/@esbuild/freebsd-arm64": {
111
+ "version": "0.25.5",
112
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.5.tgz",
113
+ "integrity": "sha512-nk4tGP3JThz4La38Uy/gzyXtpkPW8zSAmoUhK9xKKXdBCzKODMc2adkB2+8om9BDYugz+uGV7sLmpTYzvmz6Sw==",
114
+ "cpu": [
115
+ "arm64"
116
+ ],
117
+ "license": "MIT",
118
+ "optional": true,
119
+ "os": [
120
+ "freebsd"
121
+ ],
122
+ "engines": {
123
+ "node": ">=18"
124
+ }
125
+ },
126
+ "node_modules/@esbuild/freebsd-x64": {
127
+ "version": "0.25.5",
128
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.5.tgz",
129
+ "integrity": "sha512-PrikaNjiXdR2laW6OIjlbeuCPrPaAl0IwPIaRv+SMV8CiM8i2LqVUHFC1+8eORgWyY7yhQY+2U2fA55mBzReaw==",
130
+ "cpu": [
131
+ "x64"
132
+ ],
133
+ "license": "MIT",
134
+ "optional": true,
135
+ "os": [
136
+ "freebsd"
137
+ ],
138
+ "engines": {
139
+ "node": ">=18"
140
+ }
141
+ },
142
+ "node_modules/@esbuild/linux-arm": {
143
+ "version": "0.25.5",
144
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.5.tgz",
145
+ "integrity": "sha512-cPzojwW2okgh7ZlRpcBEtsX7WBuqbLrNXqLU89GxWbNt6uIg78ET82qifUy3W6OVww6ZWobWub5oqZOVtwolfw==",
146
+ "cpu": [
147
+ "arm"
148
+ ],
149
+ "license": "MIT",
150
+ "optional": true,
151
+ "os": [
152
+ "linux"
153
+ ],
154
+ "engines": {
155
+ "node": ">=18"
156
+ }
157
+ },
158
+ "node_modules/@esbuild/linux-arm64": {
159
+ "version": "0.25.5",
160
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.5.tgz",
161
+ "integrity": "sha512-Z9kfb1v6ZlGbWj8EJk9T6czVEjjq2ntSYLY2cw6pAZl4oKtfgQuS4HOq41M/BcoLPzrUbNd+R4BXFyH//nHxVg==",
162
+ "cpu": [
163
+ "arm64"
164
+ ],
165
+ "license": "MIT",
166
+ "optional": true,
167
+ "os": [
168
+ "linux"
169
+ ],
170
+ "engines": {
171
+ "node": ">=18"
172
+ }
173
+ },
174
+ "node_modules/@esbuild/linux-ia32": {
175
+ "version": "0.25.5",
176
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.5.tgz",
177
+ "integrity": "sha512-sQ7l00M8bSv36GLV95BVAdhJ2QsIbCuCjh/uYrWiMQSUuV+LpXwIqhgJDcvMTj+VsQmqAHL2yYaasENvJ7CDKA==",
178
+ "cpu": [
179
+ "ia32"
180
+ ],
181
+ "license": "MIT",
182
+ "optional": true,
183
+ "os": [
184
+ "linux"
185
+ ],
186
+ "engines": {
187
+ "node": ">=18"
188
+ }
189
+ },
190
+ "node_modules/@esbuild/linux-loong64": {
191
+ "version": "0.25.5",
192
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.5.tgz",
193
+ "integrity": "sha512-0ur7ae16hDUC4OL5iEnDb0tZHDxYmuQyhKhsPBV8f99f6Z9KQM02g33f93rNH5A30agMS46u2HP6qTdEt6Q1kg==",
194
+ "cpu": [
195
+ "loong64"
196
+ ],
197
+ "license": "MIT",
198
+ "optional": true,
199
+ "os": [
200
+ "linux"
201
+ ],
202
+ "engines": {
203
+ "node": ">=18"
204
+ }
205
+ },
206
+ "node_modules/@esbuild/linux-mips64el": {
207
+ "version": "0.25.5",
208
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.5.tgz",
209
+ "integrity": "sha512-kB/66P1OsHO5zLz0i6X0RxlQ+3cu0mkxS3TKFvkb5lin6uwZ/ttOkP3Z8lfR9mJOBk14ZwZ9182SIIWFGNmqmg==",
210
+ "cpu": [
211
+ "mips64el"
212
+ ],
213
+ "license": "MIT",
214
+ "optional": true,
215
+ "os": [
216
+ "linux"
217
+ ],
218
+ "engines": {
219
+ "node": ">=18"
220
+ }
221
+ },
222
+ "node_modules/@esbuild/linux-ppc64": {
223
+ "version": "0.25.5",
224
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.5.tgz",
225
+ "integrity": "sha512-UZCmJ7r9X2fe2D6jBmkLBMQetXPXIsZjQJCjgwpVDz+YMcS6oFR27alkgGv3Oqkv07bxdvw7fyB71/olceJhkQ==",
226
+ "cpu": [
227
+ "ppc64"
228
+ ],
229
+ "license": "MIT",
230
+ "optional": true,
231
+ "os": [
232
+ "linux"
233
+ ],
234
+ "engines": {
235
+ "node": ">=18"
236
+ }
237
+ },
238
+ "node_modules/@esbuild/linux-riscv64": {
239
+ "version": "0.25.5",
240
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.5.tgz",
241
+ "integrity": "sha512-kTxwu4mLyeOlsVIFPfQo+fQJAV9mh24xL+y+Bm6ej067sYANjyEw1dNHmvoqxJUCMnkBdKpvOn0Ahql6+4VyeA==",
242
+ "cpu": [
243
+ "riscv64"
244
+ ],
245
+ "license": "MIT",
246
+ "optional": true,
247
+ "os": [
248
+ "linux"
249
+ ],
250
+ "engines": {
251
+ "node": ">=18"
252
+ }
253
+ },
254
+ "node_modules/@esbuild/linux-s390x": {
255
+ "version": "0.25.5",
256
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.5.tgz",
257
+ "integrity": "sha512-K2dSKTKfmdh78uJ3NcWFiqyRrimfdinS5ErLSn3vluHNeHVnBAFWC8a4X5N+7FgVE1EjXS1QDZbpqZBjfrqMTQ==",
258
+ "cpu": [
259
+ "s390x"
260
+ ],
261
+ "license": "MIT",
262
+ "optional": true,
263
+ "os": [
264
+ "linux"
265
+ ],
266
+ "engines": {
267
+ "node": ">=18"
268
+ }
269
+ },
270
+ "node_modules/@esbuild/linux-x64": {
271
+ "version": "0.25.5",
272
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.5.tgz",
273
+ "integrity": "sha512-uhj8N2obKTE6pSZ+aMUbqq+1nXxNjZIIjCjGLfsWvVpy7gKCOL6rsY1MhRh9zLtUtAI7vpgLMK6DxjO8Qm9lJw==",
274
+ "cpu": [
275
+ "x64"
276
+ ],
277
+ "license": "MIT",
278
+ "optional": true,
279
+ "os": [
280
+ "linux"
281
+ ],
282
+ "engines": {
283
+ "node": ">=18"
284
+ }
285
+ },
286
+ "node_modules/@esbuild/netbsd-arm64": {
287
+ "version": "0.25.5",
288
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.5.tgz",
289
+ "integrity": "sha512-pwHtMP9viAy1oHPvgxtOv+OkduK5ugofNTVDilIzBLpoWAM16r7b/mxBvfpuQDpRQFMfuVr5aLcn4yveGvBZvw==",
290
+ "cpu": [
291
+ "arm64"
292
+ ],
293
+ "license": "MIT",
294
+ "optional": true,
295
+ "os": [
296
+ "netbsd"
297
+ ],
298
+ "engines": {
299
+ "node": ">=18"
300
+ }
301
+ },
302
+ "node_modules/@esbuild/netbsd-x64": {
303
+ "version": "0.25.5",
304
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.5.tgz",
305
+ "integrity": "sha512-WOb5fKrvVTRMfWFNCroYWWklbnXH0Q5rZppjq0vQIdlsQKuw6mdSihwSo4RV/YdQ5UCKKvBy7/0ZZYLBZKIbwQ==",
306
+ "cpu": [
307
+ "x64"
308
+ ],
309
+ "license": "MIT",
310
+ "optional": true,
311
+ "os": [
312
+ "netbsd"
313
+ ],
314
+ "engines": {
315
+ "node": ">=18"
316
+ }
317
+ },
318
+ "node_modules/@esbuild/openbsd-arm64": {
319
+ "version": "0.25.5",
320
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.5.tgz",
321
+ "integrity": "sha512-7A208+uQKgTxHd0G0uqZO8UjK2R0DDb4fDmERtARjSHWxqMTye4Erz4zZafx7Di9Cv+lNHYuncAkiGFySoD+Mw==",
322
+ "cpu": [
323
+ "arm64"
324
+ ],
325
+ "license": "MIT",
326
+ "optional": true,
327
+ "os": [
328
+ "openbsd"
329
+ ],
330
+ "engines": {
331
+ "node": ">=18"
332
+ }
333
+ },
334
+ "node_modules/@esbuild/openbsd-x64": {
335
+ "version": "0.25.5",
336
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.5.tgz",
337
+ "integrity": "sha512-G4hE405ErTWraiZ8UiSoesH8DaCsMm0Cay4fsFWOOUcz8b8rC6uCvnagr+gnioEjWn0wC+o1/TAHt+It+MpIMg==",
338
+ "cpu": [
339
+ "x64"
340
+ ],
341
+ "license": "MIT",
342
+ "optional": true,
343
+ "os": [
344
+ "openbsd"
345
+ ],
346
+ "engines": {
347
+ "node": ">=18"
348
+ }
349
+ },
350
+ "node_modules/@esbuild/sunos-x64": {
351
+ "version": "0.25.5",
352
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.5.tgz",
353
+ "integrity": "sha512-l+azKShMy7FxzY0Rj4RCt5VD/q8mG/e+mDivgspo+yL8zW7qEwctQ6YqKX34DTEleFAvCIUviCFX1SDZRSyMQA==",
354
+ "cpu": [
355
+ "x64"
356
+ ],
357
+ "license": "MIT",
358
+ "optional": true,
359
+ "os": [
360
+ "sunos"
361
+ ],
362
+ "engines": {
363
+ "node": ">=18"
364
+ }
365
+ },
366
+ "node_modules/@esbuild/win32-arm64": {
367
+ "version": "0.25.5",
368
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.5.tgz",
369
+ "integrity": "sha512-O2S7SNZzdcFG7eFKgvwUEZ2VG9D/sn/eIiz8XRZ1Q/DO5a3s76Xv0mdBzVM5j5R639lXQmPmSo0iRpHqUUrsxw==",
370
+ "cpu": [
371
+ "arm64"
372
+ ],
373
+ "license": "MIT",
374
+ "optional": true,
375
+ "os": [
376
+ "win32"
377
+ ],
378
+ "engines": {
379
+ "node": ">=18"
380
+ }
381
+ },
382
+ "node_modules/@esbuild/win32-ia32": {
383
+ "version": "0.25.5",
384
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.5.tgz",
385
+ "integrity": "sha512-onOJ02pqs9h1iMJ1PQphR+VZv8qBMQ77Klcsqv9CNW2w6yLqoURLcgERAIurY6QE63bbLuqgP9ATqajFLK5AMQ==",
386
+ "cpu": [
387
+ "ia32"
388
+ ],
389
+ "license": "MIT",
390
+ "optional": true,
391
+ "os": [
392
+ "win32"
393
+ ],
394
+ "engines": {
395
+ "node": ">=18"
396
+ }
397
+ },
398
+ "node_modules/@esbuild/win32-x64": {
399
+ "version": "0.25.5",
400
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.5.tgz",
401
+ "integrity": "sha512-TXv6YnJ8ZMVdX+SXWVBo/0p8LTcrUYngpWjvm91TMjjBQii7Oz11Lw5lbDV5Y0TzuhSJHwiH4hEtC1I42mMS0g==",
402
+ "cpu": [
403
+ "x64"
404
+ ],
405
+ "license": "MIT",
406
+ "optional": true,
407
+ "os": [
408
+ "win32"
409
+ ],
410
+ "engines": {
411
+ "node": ">=18"
412
+ }
413
+ },
414
+ "node_modules/esbuild": {
415
+ "version": "0.25.5",
416
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.5.tgz",
417
+ "integrity": "sha512-P8OtKZRv/5J5hhz0cUAdu/cLuPIKXpQl1R9pZtvmHWQvrAUVd0UNIPT4IB4W3rNOqVO0rlqHmCIbSwxh/c9yUQ==",
418
+ "hasInstallScript": true,
419
+ "license": "MIT",
420
+ "bin": {
421
+ "esbuild": "bin/esbuild"
422
+ },
423
+ "engines": {
424
+ "node": ">=18"
425
+ },
426
+ "optionalDependencies": {
427
+ "@esbuild/aix-ppc64": "0.25.5",
428
+ "@esbuild/android-arm": "0.25.5",
429
+ "@esbuild/android-arm64": "0.25.5",
430
+ "@esbuild/android-x64": "0.25.5",
431
+ "@esbuild/darwin-arm64": "0.25.5",
432
+ "@esbuild/darwin-x64": "0.25.5",
433
+ "@esbuild/freebsd-arm64": "0.25.5",
434
+ "@esbuild/freebsd-x64": "0.25.5",
435
+ "@esbuild/linux-arm": "0.25.5",
436
+ "@esbuild/linux-arm64": "0.25.5",
437
+ "@esbuild/linux-ia32": "0.25.5",
438
+ "@esbuild/linux-loong64": "0.25.5",
439
+ "@esbuild/linux-mips64el": "0.25.5",
440
+ "@esbuild/linux-ppc64": "0.25.5",
441
+ "@esbuild/linux-riscv64": "0.25.5",
442
+ "@esbuild/linux-s390x": "0.25.5",
443
+ "@esbuild/linux-x64": "0.25.5",
444
+ "@esbuild/netbsd-arm64": "0.25.5",
445
+ "@esbuild/netbsd-x64": "0.25.5",
446
+ "@esbuild/openbsd-arm64": "0.25.5",
447
+ "@esbuild/openbsd-x64": "0.25.5",
448
+ "@esbuild/sunos-x64": "0.25.5",
449
+ "@esbuild/win32-arm64": "0.25.5",
450
+ "@esbuild/win32-ia32": "0.25.5",
451
+ "@esbuild/win32-x64": "0.25.5"
452
+ }
453
+ },
454
+ "node_modules/eslint-visitor-keys": {
455
+ "version": "5.0.0",
456
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.0.tgz",
457
+ "integrity": "sha512-A0XeIi7CXU7nPlfHS9loMYEKxUaONu/hTEzHTGba9Huu94Cq1hPivf+DE5erJozZOky0LfvXAyrV/tcswpLI0Q==",
458
+ "license": "Apache-2.0",
459
+ "engines": {
460
+ "node": "^20.19.0 || ^22.13.0 || >=24"
461
+ },
462
+ "funding": {
463
+ "url": "https://opencollective.com/eslint"
464
+ }
465
+ },
466
+ "node_modules/jsonc-parser": {
467
+ "version": "3.3.1",
468
+ "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.3.1.tgz",
469
+ "integrity": "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==",
470
+ "license": "MIT"
471
+ },
472
+ "node_modules/toml-eslint-parser": {
473
+ "version": "1.0.3",
474
+ "resolved": "https://registry.npmjs.org/toml-eslint-parser/-/toml-eslint-parser-1.0.3.tgz",
475
+ "integrity": "sha512-A5F0cM6+mDleacLIEUkmfpkBbnHJFV1d2rprHU2MXNk7mlxHq2zGojA+SRvQD1RoMo9gqjZPWEaKG4v1BQ48lw==",
476
+ "license": "MIT",
477
+ "dependencies": {
478
+ "eslint-visitor-keys": "^5.0.0"
479
+ },
480
+ "engines": {
481
+ "node": "^20.19.0 || ^22.13.0 || >=24"
482
+ },
483
+ "funding": {
484
+ "url": "https://github.com/sponsors/ota-meshi"
485
+ }
486
+ }
487
+ }
488
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "schema_version": 1,
3
+ "packages": {
4
+ "toml-eslint-parser": "1.0.3",
5
+ "eslint-visitor-keys": "5.0.0",
6
+ "jsonc-parser": "3.3.1",
7
+ "esbuild": "0.25.5"
8
+ },
9
+ "sha256": "910fc40ab352d5f5789a9d4aea5d0a2488c9735ae63296cd964755ec50d9eb4d",
10
+ "runtime_network": false,
11
+ "runtime_dependencies": [],
12
+ "toml_version": "1.0.0",
13
+ "json_policy": "strict; comments and duplicate keys rejected"
14
+ }
@@ -0,0 +1,16 @@
1
+ // Generated by scripts/build-ai-cli-config-vendor.mjs. See THIRD-PARTY-NOTICES.txt.
2
+ var W={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ExportAllDeclaration:["exported","source","attributes"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportAttribute:["key","value"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportExpression:["source","options"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},ze=Object.keys(W);for(let e of ze)Object.freeze(W[e]);Object.freeze(W);var ge=W;function Ie(e){let n=Object.assign({},ge);for(let r of Object.keys(e))if(Object.hasOwn(n,r)){let t=new Set(e[r]);for(let i of n[r])t.add(i);n[r]=Object.freeze(Array.from(t))}else n[r]=Object.freeze(Array.from(e[r]));return Object.freeze(n)}function x(e){return e[e.length-1]??null}function de(e){return e.type==="TOMLBare"?e.name:e.value}var De=class{constructor(e,n){this.major=e,this.minor=n}lt(e,n){return this.major<e||this.major===e&&this.minor<n}gte(e,n){return this.major>e||this.major===e&&this.minor>=n}},_e=new De(1,0),Q=new De(1,1),Xe=Q,Je={"1.0":_e,"1.0.0":_e,"1.1":Q,"1.1.0":Q,latest:Q,next:Q};function xe(e){return e&&Je[e]||Xe}var ye={"unterminated-string":"Unterminated string constant","unterminated-table-key":"Unterminated table-key","unterminated-array":"Unterminated array","unterminated-inline-table":"Unterminated inline table","missing-key":"Empty bare keys are not allowed","missing-newline":"Must be a newline","missing-equals-sign":"Expected equal (=) token","missing-value":"Unspecified values are invalid","missing-comma":"Expected comma (,) token","dupe-keys":"Defining a key multiple times is invalid","unexpected-char":"Unexpected character","unexpected-token":"Unexpected token","invalid-control-character":"Control characters (codes < 0x1f and 0x7f) are not allowed","invalid-comment-character":"Invalid code point {{cp}} within comments","invalid-key-value-newline":"The key, equals sign, and value must be on the same line","invalid-inline-table-newline":"No newlines are allowed between the curly braces unless they are valid within a value","invalid-underscore":"Underscores are allowed between digits","invalid-space":"Unexpected spaces","invalid-three-quotes":"Three or more quotes are not permitted","invalid-date":"Unexpected invalid date","invalid-time":"Unexpected invalid time","invalid-leading-zero":"Leading zeros are not allowed","invalid-trailing-comma-in-inline-table":"Trailing comma is not permitted in an inline table","invalid-char-in-escape-sequence":"Invalid character in escape sequence","invalid-consecutive-dots-in-key":"Consecutive dots are not permitted in keys","invalid-code-point":"Invalid code point {{cp}}","invalid-trailing-dot-in-key":"Keys cannot end with a dot","invalid-leading-dot-in-key":"Keys cannot start with a dot"};function qe(e,n){return n?ye[e].replace(/\{\{(.*?)\}\}/gu,(r,t)=>t in n?n[t]:`{{${t}}}`):ye[e]}var Re=class extends SyntaxError{constructor(e,n,r,t,i){super(qe(e,i)),this.index=n,this.lineNumber=r,this.column=t}},s={EOF:-1,NULL:0,SOH:1,BACKSPACE:8,TABULATION:9,LINE_FEED:10,FORM_FEED:12,CARRIAGE_RETURN:13,ESCAPE:27,SO:14,US:31,SPACE:32,QUOTATION_MARK:34,HASH:35,SINGLE_QUOTE:39,PLUS_SIGN:43,COMMA:44,DASH:45,DOT:46,DIGIT_0:48,DIGIT_1:49,DIGIT_2:50,DIGIT_3:51,DIGIT_7:55,DIGIT_9:57,COLON:58,EQUALS_SIGN:61,LATIN_CAPITAL_A:65,LATIN_CAPITAL_E:69,LATIN_CAPITAL_F:70,LATIN_CAPITAL_T:84,LATIN_CAPITAL_U:85,LATIN_CAPITAL_Z:90,LEFT_BRACKET:91,BACKSLASH:92,RIGHT_BRACKET:93,UNDERSCORE:95,LATIN_SMALL_A:97,LATIN_SMALL_B:98,LATIN_SMALL_E:101,LATIN_SMALL_F:102,LATIN_SMALL_I:105,LATIN_SMALL_L:108,LATIN_SMALL_N:110,LATIN_SMALL_O:111,LATIN_SMALL_R:114,LATIN_SMALL_S:115,LATIN_SMALL_T:116,LATIN_SMALL_U:117,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,LEFT_BRACE:123,RIGHT_BRACE:125,TILDE:126,DELETE:127,PAD:128,SUPERSCRIPT_TWO:178,SUPERSCRIPT_THREE:179,SUPERSCRIPT_ONE:185,VULGAR_FRACTION_ONE_QUARTER:188,VULGAR_FRACTION_THREE_QUARTERS:190,LATIN_CAPITAL_LETTER_A_WITH_GRAVE:192,LATIN_CAPITAL_LETTER_O_WITH_DIAERESIS:214,LATIN_CAPITAL_LETTER_O_WITH_STROKE:216,LATIN_SMALL_LETTER_O_WITH_DIAERESIS:246,LATIN_SMALL_LETTER_O_WITH_STROKE:248,GREEK_SMALL_REVERSED_DOTTED_LUNATE_SIGMA_SYMBOL:891,GREEK_CAPITAL_LETTER_YOT:895,CP_1FFF:8191,ZERO_WIDTH_NON_JOINER:8204,ZERO_WIDTH_JOINER:8205,UNDERTIE:8255,CHARACTER_TIE:8256,SUPERSCRIPT_ZERO:8304,CP_218F:8591,CIRCLED_DIGIT_ONE:9312,NEGATIVE_CIRCLED_DIGIT_ZERO:9471,GLAGOLITIC_CAPITAL_LETTER_AZU:11264,CP_2FEF:12271,IDEOGRAPHIC_COMMA:12289,CP_D7FF:55295,CP_E000:57344,CJK_COMPATIBILITY_IDEOGRAPH_F900:63744,ARABIC_LIGATURE_SALAAMUHU_ALAYNAA:64975,ARABIC_LIGATURE_SALLA_USED_AS_KORANIC_STOP_SIGN_ISOLATED_FORM:65008,REPLACEMENT_CHARACTER:65533,LINEAR_B_SYLLABLE_B008_A:65536,CP_EFFFF:983039,CP_10FFFF:1114111};function We(e){return e>=s.NULL&&e<=s.US}function K(e){return e===s.TABULATION||e===s.SPACE}function ke(e){return e===s.LINE_FEED||e===s.CARRIAGE_RETURN}function Ye(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_Z}function Ze(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_Z}function et(e){return Ze(e)||Ye(e)}function E(e){return e>=s.DIGIT_0&&e<=s.DIGIT_9}function Se(e){return E(e)||e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_F||e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_F}function tt(e){return e>=s.DIGIT_0&&e<=s.DIGIT_7}function nt(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function rt(e,n){let r=0,t=e.length;for(;r<t;){let i=r+t>>>1,o=e[i];if(o===n)return i+1;o<n?r=i+1:t=i}return r}var it=class{constructor(){this.offsets=[]}addOffset(e){for(let n=this.offsets.length-1;n>=0;n--){let r=this.offsets[n];if(r===e)return;if(r<e)break}this.offsets.push(e)}getLocFromIndex(e){let n=rt(this.offsets,e)+1;return{line:n,column:e-(n===1?0:this.offsets[n-2])}}},st=class{constructor(e){this.locs=new it,this.lastCodePoint=s.NULL,this.start=-1,this.end=0,this.text=e}next(){return this.lastCodePoint===s.EOF?s.EOF:this.lastCodePoint=this.moveAt(this.end)}getLocFromIndex(e){return this.locs.getLocFromIndex(e)}eat(e){return this.text.codePointAt(this.end)===e?(this.next(),!0):!1}moveAt(e){this.start=this.end=e;let n=this.text.codePointAt(this.start)??s.EOF;if(n===s.EOF)return this.end=this.start,n;if(this.end+=n>=65536?2:1,n===s.LINE_FEED)this.locs.addOffset(this.end);else if(n===s.CARRIAGE_RETURN)return this.text.codePointAt(this.end)===s.LINE_FEED&&(this.end++,this.locs.addOffset(this.end)),s.LINE_FEED;return n}},ot=typeof BigInt<"u",at={16:"0x",10:"",8:"0o",2:"0b"},we={[s.QUOTATION_MARK]:s.QUOTATION_MARK,[s.BACKSLASH]:s.BACKSLASH,[s.LATIN_SMALL_B]:s.BACKSPACE,[s.LATIN_SMALL_F]:s.FORM_FEED,[s.LATIN_SMALL_N]:s.LINE_FEED,[s.LATIN_SMALL_R]:s.CARRIAGE_RETURN,[s.LATIN_SMALL_T]:s.TABULATION},lt={...we,[s.LATIN_SMALL_E]:s.ESCAPE},ut=class{constructor(e,n){this.backCode=!1,this.lastCodePoint=s.NULL,this.state="DATA",this.token=null,this.tokenStart=-1,this.valuesEnabled=!1,this.text=e,this.parserOptions=n||{},this.codePointIterator=new st(e),this.tomlVersion=xe(this.parserOptions.tomlVersion),this.ESCAPES=this.tomlVersion.gte(1,1)?lt:we}get start(){return this.codePointIterator.start}get end(){return this.codePointIterator.end}getLocFromIndex(e){return this.codePointIterator.getLocFromIndex(e)}reportParseError(e,n){let r=this.codePointIterator.start,t=this.codePointIterator.getLocFromIndex(r);throw new Re(e,r,t.line,t.column,n)}nextToken(){let e=this.token;if(e!=null)return this.token=null,e;let n=this.lastCodePoint;for(;n!==s.EOF&&!this.token;){n=this.nextCode();let r=this[this.state](n);if(!r)throw new Error(`Unknown error: pre state=${this.state}`);this.state=r}return e=this.token,this.token=null,e}nextCode(){return this.lastCodePoint===s.EOF?s.EOF:this.backCode?(this.backCode=!1,this.lastCodePoint):this.lastCodePoint=this.codePointIterator.next()}eatCode(e){return this.lastCodePoint===s.EOF?!1:this.backCode?this.lastCodePoint===e?(this.backCode=!1,!0):!1:this.codePointIterator.eat(e)}moveAt(e){this.backCode&&(this.backCode=!1),this.lastCodePoint=this.codePointIterator.moveAt(e)}back(e){return this.backCode=!0,e}punctuatorToken(){this.startToken(),this.endToken("Punctuator","end")}startToken(){this.tokenStart=this.codePointIterator.start}endToken(e,n,r,t){let{tokenStart:i}=this,o=this.codePointIterator[n],u=[i,o],l={start:this.codePointIterator.getLocFromIndex(i),end:this.codePointIterator.getLocFromIndex(o)};if(e==="Block")this.token={type:e,value:this.text.slice(i+1,o),range:u,loc:l};else{let a,c=this.text.slice(i,o);if(e==="BasicString"||e==="LiteralString"||e==="MultiLineBasicString"||e==="MultiLineLiteralString")a={type:e,value:c,string:r,range:u,loc:l};else if(e==="Integer"){let h=r;a={type:e,value:c,number:parseInt(h,t),bigint:ot?BigInt(at[t]+h):null,range:u,loc:l}}else e==="Float"?a={type:e,value:c,number:r,range:u,loc:l}:e==="Boolean"?a={type:e,value:c,boolean:r,range:u,loc:l}:e==="LocalDate"||e==="LocalTime"||e==="LocalDateTime"||e==="OffsetDateTime"?a={type:e,value:c,date:r,range:u,loc:l}:a={type:e,value:c,range:u,loc:l};this.token=a}}DATA(e){for(;K(e)||ke(e);)e=this.nextCode();if(e===s.HASH)return this.startToken(),"COMMENT";if(e===s.QUOTATION_MARK)return this.startToken(),"BASIC_STRING";if(e===s.SINGLE_QUOTE)return this.startToken(),"LITERAL_STRING";if(e===s.DOT||e===s.EQUALS_SIGN||e===s.LEFT_BRACKET||e===s.RIGHT_BRACKET||e===s.LEFT_BRACE||e===s.RIGHT_BRACE||e===s.COMMA)return this.punctuatorToken(),"DATA";if(this.valuesEnabled){if(e===s.DASH||e===s.PLUS_SIGN)return this.startToken(),"SIGN";if(e===s.LATIN_SMALL_N||e===s.LATIN_SMALL_I)return this.startToken(),this.back("NAN_OR_INF");if(E(e))return this.startToken(),this.back("NUMBER");if(e===s.LATIN_SMALL_T||e===s.LATIN_SMALL_F)return this.startToken(),this.back("BOOLEAN")}else if(be(e,this.tomlVersion))return this.startToken(),"BARE";return e===s.EOF?"DATA":this.reportParseError("unexpected-char")}COMMENT(e){let n=this.tomlVersion.gte(1,1)?r=>{ct(r)||this.reportParseError("invalid-comment-character",{cp:JSON.stringify(String.fromCodePoint(r)).slice(1,-1)})}:r=>{G(r)&&this.reportParseErrorControlChar()};for(;!ke(e)&&e!==s.EOF;)n(e),e=this.nextCode();return this.endToken("Block","start"),"DATA"}BARE(e){for(;be(e,this.tomlVersion);)e=this.nextCode();return this.endToken("Bare","start"),this.back("DATA")}BASIC_STRING(e){if(e===s.QUOTATION_MARK)return e=this.nextCode(),e===s.QUOTATION_MARK?"MULTI_LINE_BASIC_STRING":(this.endToken("BasicString","start",""),this.back("DATA"));let n=[];for(;e!==s.QUOTATION_MARK&&e!==s.EOF&&e!==s.LINE_FEED;){if(G(e))return this.reportParseErrorControlChar();if(e===s.BACKSLASH){e=this.nextCode();let r=this.ESCAPES[e];if(r){n.push(r),e=this.nextCode();continue}else if(e===s.LATIN_SMALL_U){let t=this.parseUnicode(4);n.push(t),e=this.nextCode();continue}else if(e===s.LATIN_CAPITAL_U){let t=this.parseUnicode(8);n.push(t),e=this.nextCode();continue}else if(e===s.LATIN_SMALL_X&&this.tomlVersion.gte(1,1)){let t=this.parseUnicode(2);n.push(t),e=this.nextCode();continue}return this.reportParseError("invalid-char-in-escape-sequence")}n.push(e),e=this.nextCode()}return e!==s.QUOTATION_MARK?this.reportParseError("unterminated-string"):(this.endToken("BasicString","end",String.fromCodePoint(...n)),"DATA")}MULTI_LINE_BASIC_STRING(e){let n=[];for(e===s.LINE_FEED&&(e=this.nextCode());e!==s.EOF;){if(e!==s.LINE_FEED&&G(e))return this.reportParseErrorControlChar();if(e===s.QUOTATION_MARK){let r=this.codePointIterator.start;if(this.eatCode(s.QUOTATION_MARK)&&this.eatCode(s.QUOTATION_MARK))return this.eatCode(s.QUOTATION_MARK)&&(n.push(s.QUOTATION_MARK),this.eatCode(s.QUOTATION_MARK)&&(n.push(s.QUOTATION_MARK),this.eatCode(s.QUOTATION_MARK)))?(this.moveAt(r),this.reportParseError("invalid-three-quotes")):(this.endToken("MultiLineBasicString","end",String.fromCodePoint(...n)),"DATA");this.moveAt(r)}if(e===s.BACKSLASH){e=this.nextCode();let r=this.ESCAPES[e];if(r){n.push(r),e=this.nextCode();continue}else if(e===s.LATIN_SMALL_U){let t=this.parseUnicode(4);n.push(t),e=this.nextCode();continue}else if(e===s.LATIN_CAPITAL_U){let t=this.parseUnicode(8);n.push(t),e=this.nextCode();continue}else if(e===s.LATIN_SMALL_X&&this.tomlVersion.gte(1,1)){let t=this.parseUnicode(2);n.push(t),e=this.nextCode();continue}else if(e===s.LINE_FEED){for(e=this.nextCode();K(e)||e===s.LINE_FEED;)e=this.nextCode();continue}else if(K(e)){let t=!0,i=this.codePointIterator.start,o;for(;(o=this.nextCode())!==s.EOF&&o!==s.LINE_FEED;)if(!K(o)){this.moveAt(i),t=!1;break}if(t){for(e=this.nextCode();K(e)||e===s.LINE_FEED;)e=this.nextCode();continue}}return this.reportParseError("invalid-char-in-escape-sequence")}n.push(e),e=this.nextCode()}return this.reportParseError("unterminated-string")}LITERAL_STRING(e){if(e===s.SINGLE_QUOTE)return e=this.nextCode(),e===s.SINGLE_QUOTE?"MULTI_LINE_LITERAL_STRING":(this.endToken("LiteralString","start",""),this.back("DATA"));let n=[];for(;e!==s.SINGLE_QUOTE&&e!==s.EOF&&e!==s.LINE_FEED;){if(G(e))return this.reportParseErrorControlChar();n.push(e),e=this.nextCode()}return e!==s.SINGLE_QUOTE?this.reportParseError("unterminated-string"):(this.endToken("LiteralString","end",String.fromCodePoint(...n)),"DATA")}MULTI_LINE_LITERAL_STRING(e){let n=[];for(e===s.LINE_FEED&&(e=this.nextCode());e!==s.EOF;){if(e!==s.LINE_FEED&&G(e))return this.reportParseErrorControlChar();if(e===s.SINGLE_QUOTE){let r=this.codePointIterator.start;if(this.eatCode(s.SINGLE_QUOTE)&&this.eatCode(s.SINGLE_QUOTE))return this.eatCode(s.SINGLE_QUOTE)&&(n.push(s.SINGLE_QUOTE),this.eatCode(s.SINGLE_QUOTE)&&(n.push(s.SINGLE_QUOTE),this.eatCode(s.SINGLE_QUOTE)))?(this.moveAt(r),this.reportParseError("invalid-three-quotes")):(this.endToken("MultiLineLiteralString","end",String.fromCodePoint(...n)),"DATA");this.moveAt(r)}n.push(e),e=this.nextCode()}return this.reportParseError("unterminated-string")}SIGN(e){return e===s.LATIN_SMALL_N||e===s.LATIN_SMALL_I?this.back("NAN_OR_INF"):E(e)?this.back("NUMBER"):this.reportParseError("unexpected-char")}NAN_OR_INF(e){if(e===s.LATIN_SMALL_N){let n=this.codePointIterator.start;if(this.eatCode(s.LATIN_SMALL_A)&&this.eatCode(s.LATIN_SMALL_N))return this.endToken("Float","end",NaN),"DATA";this.moveAt(n)}else if(e===s.LATIN_SMALL_I){let n=this.codePointIterator.start;if(this.eatCode(s.LATIN_SMALL_N)&&this.eatCode(s.LATIN_SMALL_F))return this.endToken("Float","end",this.text[this.tokenStart]==="-"?-1/0:1/0),"DATA";this.moveAt(n)}return this.reportParseError("unexpected-char")}NUMBER(e){let n=this.text[this.tokenStart],r=n==="+"?s.PLUS_SIGN:n==="-"?s.DASH:s.NULL;if(e===s.DIGIT_0){if(r===s.NULL){let u=this.codePointIterator.start,l=this.nextCode();if(E(l)){let a=this.nextCode();if(a===s.COLON)return this.data={hasDate:!1,year:0,month:0,day:0,hour:Number(String.fromCodePoint(s.DIGIT_0,l)),minute:0,second:0},"TIME_MINUTE";if(E(a)){let c=this.nextCode();if(E(c)&&this.eatCode(s.DASH))return this.data={hasDate:!0,year:Number(String.fromCodePoint(s.DIGIT_0,l,a,c)),month:0,day:0,hour:0,minute:0,second:0},"DATE_MONTH"}return this.moveAt(u),this.reportParseError("invalid-leading-zero")}this.moveAt(u)}return e=this.nextCode(),e===s.LATIN_SMALL_X||e===s.LATIN_SMALL_O||e===s.LATIN_SMALL_B?r!==s.NULL?this.reportParseError("unexpected-char"):e===s.LATIN_SMALL_X?"HEX":e===s.LATIN_SMALL_O?"OCTAL":"BINARY":e===s.LATIN_SMALL_E||e===s.LATIN_CAPITAL_E?(this.data={minus:r===s.DASH,left:[s.DIGIT_0]},"EXPONENT_RIGHT"):e===s.DOT?(this.data={minus:r===s.DASH,absInt:[s.DIGIT_0]},"FRACTIONAL_RIGHT"):(this.endToken("Integer","start","0",10),this.back("DATA"))}let{out:t,nextCp:i,hasUnderscore:o}=this.parseDigits(e,E);return i===s.DASH&&r===s.NULL&&!o&&t.length===4?(this.data={hasDate:!0,year:Number(String.fromCodePoint(...t)),month:0,day:0,hour:0,minute:0,second:0},"DATE_MONTH"):i===s.COLON&&r===s.NULL&&!o&&t.length===2?(this.data={hasDate:!1,year:0,month:0,day:0,hour:Number(String.fromCodePoint(...t)),minute:0,second:0},"TIME_MINUTE"):i===s.LATIN_SMALL_E||i===s.LATIN_CAPITAL_E?(this.data={minus:r===s.DASH,left:t},"EXPONENT_RIGHT"):i===s.DOT?(this.data={minus:r===s.DASH,absInt:t},"FRACTIONAL_RIGHT"):(this.endToken("Integer","start",r===s.DASH?String.fromCodePoint(s.DASH,...t):String.fromCodePoint(...t),10),this.back("DATA"))}HEX(e){let{out:n}=this.parseDigits(e,Se);return this.endToken("Integer","start",String.fromCodePoint(...n),16),this.back("DATA")}OCTAL(e){let{out:n}=this.parseDigits(e,tt);return this.endToken("Integer","start",String.fromCodePoint(...n),8),this.back("DATA")}BINARY(e){let{out:n}=this.parseDigits(e,r=>r===s.DIGIT_0||r===s.DIGIT_1);return this.endToken("Integer","start",String.fromCodePoint(...n),2),this.back("DATA")}FRACTIONAL_RIGHT(e){let{minus:n,absInt:r}=this.data,{out:t,nextCp:i}=this.parseDigits(e,E),o=[...r,s.DOT,...t];if(i===s.LATIN_SMALL_E||i===s.LATIN_CAPITAL_E)return this.data={minus:n,left:o},"EXPONENT_RIGHT";let u=Number(n?String.fromCodePoint(s.DASH,...o):String.fromCodePoint(...o));return this.endToken("Float","start",u),this.back("DATA")}EXPONENT_RIGHT(e){let{left:n,minus:r}=this.data,t=!1;(e===s.DASH||e===s.PLUS_SIGN)&&(t=e===s.DASH,e=this.nextCode());let{out:i}=this.parseDigits(e,E),o=i;t&&o.unshift(s.DASH);let u=Number(r?String.fromCodePoint(s.DASH,...n,s.LATIN_SMALL_E,...o):String.fromCodePoint(...n,s.LATIN_SMALL_E,...o));return this.endToken("Float","start",u),this.back("DATA")}BOOLEAN(e){if(e===s.LATIN_SMALL_T){let n=this.codePointIterator.start;if(this.eatCode(s.LATIN_SMALL_R)&&this.eatCode(s.LATIN_SMALL_U)&&this.eatCode(s.LATIN_SMALL_E))return this.endToken("Boolean","end",!0),"DATA";this.moveAt(n)}else if(e===s.LATIN_SMALL_F){let n=this.codePointIterator.start;if(this.eatCode(s.LATIN_SMALL_A)&&this.eatCode(s.LATIN_SMALL_L)&&this.eatCode(s.LATIN_SMALL_S)&&this.eatCode(s.LATIN_SMALL_E))return this.endToken("Boolean","end",!1),"DATA";this.moveAt(n)}return this.reportParseError("unexpected-char")}DATE_MONTH(e){let n=this.codePointIterator.start;if(!E(e))return this.reportParseError("unexpected-char");if(e=this.nextCode(),!E(e))return this.reportParseError("unexpected-char");if(e=this.nextCode(),e!==s.DASH)return this.reportParseError("unexpected-char");let r=this.codePointIterator.start,t=this.data;return t.month=Number(this.text.slice(n,r)),"DATE_DAY"}DATE_DAY(e){let n=this.codePointIterator.start;if(!E(e))return this.reportParseError("unexpected-char");if(e=this.nextCode(),!E(e))return this.reportParseError("unexpected-char");let r=this.codePointIterator.end,t=this.data;if(t.day=Number(this.text.slice(n,r)),!ht(t.year,t.month,t.day))return this.reportParseError("invalid-date");if(e=this.nextCode(),e===s.LATIN_CAPITAL_T||e===s.LATIN_SMALL_T)return"TIME_HOUR";if(e===s.SPACE){let o=this.codePointIterator.start;if(E(this.nextCode())&&E(this.nextCode()))return this.moveAt(o),"TIME_HOUR";this.moveAt(o)}let i=C(t,"");return this.endToken("LocalDate","start",i),this.back("DATA")}TIME_HOUR(e){let n=this.codePointIterator.start;if(!E(e))return this.reportParseError("unexpected-char");if(e=this.nextCode(),!E(e))return this.reportParseError("unexpected-char");if(e=this.nextCode(),e!==s.COLON)return this.reportParseError("unexpected-char");let r=this.codePointIterator.start,t=this.data;return t.hour=Number(this.text.slice(n,r)),"TIME_MINUTE"}TIME_MINUTE(e){let n=this.codePointIterator.start;if(!E(e))return this.reportParseError("unexpected-char");if(e=this.nextCode(),!E(e))return this.reportParseError("unexpected-char");let r=this.codePointIterator.end,t=this.data;return t.minute=Number(this.text.slice(n,r)),e=this.nextCode(),e===s.COLON?"TIME_SECOND":this.tomlVersion.lt(1,1)?this.reportParseError("unexpected-char"):ue(t.hour,t.minute,t.second)?this.processTimeEnd(e,t):this.reportParseError("invalid-time")}TIME_SECOND(e){let n=this.codePointIterator.start;if(!E(e))return this.reportParseError("unexpected-char");if(e=this.nextCode(),!E(e))return this.reportParseError("unexpected-char");let r=this.codePointIterator.end,t=this.data;return t.second=Number(this.text.slice(n,r)),ue(t.hour,t.minute,t.second)?(e=this.nextCode(),e===s.DOT?"TIME_SEC_FRAC":this.processTimeEnd(e,t)):this.reportParseError("invalid-time")}TIME_SEC_FRAC(e){if(!E(e))return this.reportParseError("unexpected-char");let n=this.codePointIterator.start;for(;E(e);)e=this.nextCode();let r=this.codePointIterator.start,t=this.data;return t.frac=this.text.slice(n,r),this.processTimeEnd(e,t)}processTimeEnd(e,n){if(n.hasDate){if(e===s.DASH||e===s.PLUS_SIGN)return n.offsetSign=e,"TIME_OFFSET";if(e===s.LATIN_CAPITAL_Z||e===s.LATIN_SMALL_Z){let i=C(n,"Z");return this.endToken("OffsetDateTime","end",i),"DATA"}let t=C(n,"");return this.endToken("LocalDateTime","start",t),this.back("DATA")}let r=C(n,"");return this.endToken("LocalTime","start",r),this.back("DATA")}TIME_OFFSET(e){if(!E(e))return this.reportParseError("unexpected-char");let n=this.codePointIterator.start;if(e=this.nextCode(),!E(e))return this.reportParseError("unexpected-char");if(e=this.nextCode(),e!==s.COLON)return this.reportParseError("unexpected-char");let r=this.codePointIterator.start;e=this.nextCode();let t=this.codePointIterator.start;if(!E(e))return this.reportParseError("unexpected-char");if(e=this.nextCode(),!E(e))return this.reportParseError("unexpected-char");let i=this.codePointIterator.end,o=Number(this.text.slice(n,r)),u=Number(this.text.slice(t,i));if(!ue(o,u,0))return this.reportParseError("invalid-time");let l=this.data,a=C(l,`${String.fromCodePoint(l.offsetSign)}${D(o,2)}:${D(u,2)}`);return this.endToken("OffsetDateTime","end",a),"DATA"}parseDigits(e,n){if(e===s.UNDERSCORE)return this.reportParseError("invalid-underscore");if(!n(e))return this.reportParseError("unexpected-char");let r=[],t=s.NULL,i=!1;for(;n(e)||e===s.UNDERSCORE;){if(e===s.UNDERSCORE){if(i=!0,t===s.UNDERSCORE)return this.reportParseError("invalid-underscore")}else r.push(e);t=e,e=this.nextCode()}return t===s.UNDERSCORE?this.reportParseError("invalid-underscore"):{out:r,nextCp:e,hasUnderscore:i}}parseUnicode(e){let n=this.codePointIterator.start,r=this.codePointIterator.end,t=0,i;for(;(i=this.nextCode())!==s.EOF;){if(!Se(i))return this.moveAt(n),this.reportParseError("invalid-char-in-escape-sequence");if(t++,t>=e)break}let o=this.codePointIterator.end,u=this.text.slice(r,o),l=parseInt(u,16);return nt(l)?l:this.reportParseError("invalid-code-point",{cp:u})}reportParseErrorControlChar(){return this.reportParseError("invalid-control-character")}};function be(e,n){return et(e)||E(e)||e===s.UNDERSCORE||e===s.DASH?!0:(n.lt(1,1),!1)}function G(e){return We(e)&&e!==s.TABULATION||e===s.DELETE}function ct(e){return e===s.TABULATION||s.SPACE<=e&&e<=s.TILDE||ft(e)}function ft(e){return s.PAD<=e&&e<=s.CP_D7FF||s.CP_E000<=e&&e<=s.CP_10FFFF}function ht(e,n,r){return e>=0&&n<=12&&n>=1&&r>=1?r<=(n===2?e&3||!(e%25)&&e&15?28:29:30+(n+(n>>3)&1)):!1}function ue(e,n,r){return!(e>=24||e<0||n>59||n<0||r>60||r<0)}function C(e,n){let r=D(e.year,4),t=e.month?D(e.month,2):"01",i=e.day?D(e.day,2):"01",o=D(e.hour,2),u=D(e.minute,2),l=D(e.second,2),a=`${r}-${t}-${i}`,c=e.frac?`.${e.frac}`:"",h=new Date(`${a}T${o}:${u}:${l}${c}${n}`);return!isNaN(h.getTime())||e.second!==60?h:new Date(`${a}T${o}:${u}:59${c}${n}`)}function D(e,n){return String(e).padStart(n,"0")}var Te=Symbol("VALUE_KIND_VALUE"),Ne=Symbol("VALUE_KIND_INTERMEDIATE"),dt=class{constructor(e){this.rootKeys=new Map,this.tables=[],this.ctx=e}applyResolveKeyForTable(e){let n=this.rootKeys,r=e.key.keys.length-1;for(let u=0;u<r;u++){let l=e.key.keys[u],a=de(l);e.resolvedKey.push(a);let c=n.get(a);if(!c)c={node:l,keys:new Map},n.set(a,c);else if(c.table==="array"){let h=c.peekIndex;e.resolvedKey.push(h),c=c.keys.get(h)}n=c.keys}let t=e.key.keys[r],i=de(t);e.resolvedKey.push(i);let o=n.get(i);if(o)if(o.table)if(o.table==="array")if(e.kind==="array"){let u={node:t,keys:new Map},l=o.peekIndex+1;e.resolvedKey.push(l),o.keys.set(l,u),o.peekIndex=l,this.tables.push({node:e,keys:u.keys})}else this.ctx.reportParseError("dupe-keys",t);else this.ctx.reportParseError("dupe-keys",t);else if(e.kind==="array")this.ctx.reportParseError("dupe-keys",t);else{let u={table:e.kind,node:t,keys:o.keys};n.set(i,u),this.tables.push({node:e,keys:u.keys})}else if(e.kind==="array"){e.resolvedKey.push(0);let u={node:t,keys:new Map};n.set(i,{table:e.kind,node:t,keys:new Map([[0,u]]),peekIndex:0}),this.tables.push({node:e,keys:u.keys})}else{let u={table:e.kind,node:t,keys:new Map};n.set(i,u),this.tables.push({node:e,keys:u.keys})}}verifyDuplicateKeys(e){for(let n of e.body)n.type==="TOMLKeyValue"&&Ae(this.ctx,this.rootKeys,n);for(let{node:n,keys:r}of this.tables)for(let t of n.body)Ae(this.ctx,r,t)}};function Ae(e,n,r){let t=n,i=x(r.key.keys);for(let o of r.key.keys){let u=de(o),l=t.get(u);l?((l.value===Te||i===o||l.table)&&e.reportParseError("dupe-keys",Z(o,l.node)),l.value=Ne):(i===o?l={value:Te,node:o,keys:new Map}:l={value:Ne,node:o,keys:new Map},t.set(u,l)),t=l.keys}r.value.type==="TOMLInlineTable"?Ue(e,t,r.value):r.value.type==="TOMLArray"&&Fe(e,t,r.value)}function Ue(e,n,r){for(let t of r.body)Ae(e,n,t)}function Fe(e,n,r){let t=n;for(let i=0;i<r.elements.length;i++){let o=r.elements[i],u=t.get(i);u?e.reportParseError("dupe-keys",Z(o,u.node)):(u={value:Te,node:o,keys:new Map},n.set(i,u),o.type==="TOMLInlineTable"?Ue(e,u.keys,o):o.type==="TOMLArray"&&Fe(e,u.keys,o))}}function Z(e,n){return e.range[0]<=n.range[0]?n:e}var Tt=class{constructor(e){this.tokens=[],this.comments=[],this.back=null,this.stateStack=[],this.needNewLine=!1,this.needSameLine=!1,this.currToken=null,this.prevToken=null,this.valueContainerStack=[],this.tokenizer=new ut(e.text,e.parserOptions),this.topLevelTable=e.topLevelTable,this.table=e.topLevelTable,this.keysResolver=new dt(this)}nextToken(e){if(this.prevToken=this.currToken,this.back?(this.currToken=this.back,this.back=null):this.currToken=this._nextTokenFromTokenizer(e),(this.needNewLine||this.needSameLine||e?.needSameLine)&&this.prevToken&&this.currToken)if(this.prevToken.loc.end.line===this.currToken.loc.start.line){if(this.needNewLine)return this.reportParseError("missing-newline",this.currToken)}else{let n=this.needSameLine||e?.needSameLine;if(n)return this.reportParseError(n,this.currToken)}return this.needNewLine=!1,this.needSameLine=!1,this.currToken}_nextTokenFromTokenizer(e){let n=this.tokenizer.valuesEnabled;e?.valuesEnabled&&(this.tokenizer.valuesEnabled=e.valuesEnabled);let r=this.tokenizer.nextToken();for(;r&&r.type==="Block";)this.comments.push(r),r=this.tokenizer.nextToken();return r&&this.tokens.push(r),this.tokenizer.valuesEnabled=n,r}backToken(){if(this.back)throw new Error("Illegal state");this.back=this.currToken,this.currToken=this.prevToken}addValueContainer(e){this.valueContainerStack.push(e),this.tokenizer.valuesEnabled=!0}consumeValueContainer(){let e=this.valueContainerStack.pop();return this.tokenizer.valuesEnabled=this.valueContainerStack.length>0,e}applyResolveKeyForTable(e){this.keysResolver.applyResolveKeyForTable(e)}verifyDuplicateKeys(){this.keysResolver.verifyDuplicateKeys(this.topLevelTable)}reportParseError(e,n){let r,t,i;if(n)r=n.range[0],t=n.loc.start.line,i=n.loc.start.column;else{r=this.tokenizer.start;let o=this.tokenizer.getLocFromIndex(r);t=o.line,i=o.column}throw new Re(e,r,t,i)}},Oe={VALUE:"missing-value"},At={BasicString:"basic",MultiLineBasicString:"basic",LiteralString:"literal",MultiLineLiteralString:"literal"},Lt={BasicString:"basic",LiteralString:"literal"},pt={OffsetDateTime:"offset-date-time",LocalDateTime:"local-date-time",LocalDate:"local-date",LocalTime:"local-time"},mt=class{constructor(e,n){this.text=e,this.parserOptions=n||{},this.tomlVersion=xe(this.parserOptions.tomlVersion)}parse(){let e={type:"Program",body:[],sourceType:"module",tokens:[],comments:[],parent:null,range:[0,0],loc:{start:{line:1,column:0},end:{line:1,column:0}}},n={type:"TOMLTopLevelTable",body:[],parent:e,range:S(e.range),loc:b(e.loc)};e.body=[n];let r=new Tt({text:this.text,parserOptions:this.parserOptions,topLevelTable:n}),t=r.nextToken();if(t){for(n.range[0]=t.range[0],n.loc.start=te(t.loc.start);t;){let l=r.stateStack.pop()||"TABLE";r.stateStack.push(...this[l](t,r)),t=r.nextToken()}let u=r.stateStack.pop()||"TABLE";if(u in Oe)return r.reportParseError(Oe[u],null);r.table.type==="TOMLTable"&&O(r.table,x(r.table.body)),O(n,x(n.body))}r.verifyDuplicateKeys(),e.tokens=r.tokens,e.comments=r.comments;let i=r.tokenizer.end,o=r.tokenizer.getLocFromIndex(i);return e.range[1]=i,e.loc.end={line:o.line,column:o.column},e}TABLE(e,n){return Y(e)||j(e)?this.processKeyValue(e,n.table,n):fe(e)?this.processTable(e,n.topLevelTable,n):n.reportParseError("unexpected-token",e)}VALUE(e,n){return j(e)||Me(e)?this.processStringValue(e,n):gt(e)?this.processNumberValue(e,n):It(e)?this.processBooleanValue(e,n):_t(e)?this.processDateTimeValue(e,n):fe(e)?this.processArray(e,n):Et(e)?this.processInlineTable(e,n):n.reportParseError("unexpected-token",e)}processTable(e,n,r){let t={type:"TOMLTable",kind:"standard",key:null,resolvedKey:[],body:[],parent:n,range:S(e.range),loc:b(e.loc)};r.table.type==="TOMLTable"&&O(r.table,x(r.table.body)),n.body.push(t),r.table=t;let i=r.nextToken({needSameLine:"invalid-key-value-newline"});if(fe(i)){if(e.range[1]<i.range[0])return r.reportParseError("invalid-space",i);t.kind="array",i=r.nextToken({needSameLine:"invalid-key-value-newline"})}if(H(i))return r.reportParseError("missing-key",i);if(!i)return r.reportParseError("unterminated-table-key",null);if(i=this.processKeyNode(i,t,r).nextToken,!H(i))return r.reportParseError("unterminated-table-key",i);if(t.kind==="array"){let o=i;if(i=r.nextToken({needSameLine:"invalid-key-value-newline"}),!H(i))return r.reportParseError("unterminated-table-key",i);if(o.range[1]<i.range[0])return r.reportParseError("invalid-space",i)}return O(t,i),r.applyResolveKeyForTable(t),r.needNewLine=!0,[]}processKeyValue(e,n,r){let t={type:"TOMLKeyValue",key:null,value:null,parent:n,range:S(e.range),loc:b(e.loc)};n.body.push(t);let{nextToken:i}=this.processKeyNode(e,t,r);return ve(i)?(r.addValueContainer({parent:t,set:o=>(t.value=o,O(t,o),r.needNewLine=!0,[])}),r.needSameLine="invalid-key-value-newline",["VALUE"]):r.reportParseError("missing-equals-sign",i)}processKeyNode(e,n,r){ce(e)&&r.reportParseError("invalid-leading-dot-in-key",e);let t={type:"TOMLKey",keys:[],parent:n,range:S(e.range),loc:b(e.loc)};n.key=t;let i=e,o=null;do{if(Y(i))this.processBareKey(i,t);else if(j(i))this.processStringKey(i,t);else break;if(o=null,i=r.nextToken({needSameLine:"invalid-key-value-newline"}),!ce(i))break;o=i,i=r.nextToken({needSameLine:"invalid-key-value-newline"})}while(i);return o&&r.reportParseError(ce(i)?"invalid-consecutive-dots-in-key":"invalid-trailing-dot-in-key",o),O(t,x(t.keys)),{keyNode:t,nextToken:i}}processBareKey(e,n){let r={type:"TOMLBare",name:e.value,parent:n,range:S(e.range),loc:b(e.loc)};n.keys.push(r)}processStringKey(e,n){let r={type:"TOMLQuoted",kind:"string",value:e.string,style:Lt[e.type],multiline:!1,parent:n,range:S(e.range),loc:b(e.loc)};n.keys.push(r)}processStringValue(e,n){let r=n.consumeValueContainer(),t={type:"TOMLValue",kind:"string",value:e.string,style:At[e.type],multiline:Me(e),parent:r.parent,range:S(e.range),loc:b(e.loc)};return r.set(t)}processNumberValue(e,n){let r=n.consumeValueContainer(),t=this.text,[i,o]=e.range,u=null,l=()=>u??(u=t.slice(i,o).replace(/_/g,"")),a;return e.type==="Integer"?a={type:"TOMLValue",kind:"integer",value:e.number,bigint:e.bigint,get number(){return l()},parent:r.parent,range:S(e.range),loc:b(e.loc)}:a={type:"TOMLValue",kind:"float",value:e.number,get number(){return l()},parent:r.parent,range:S(e.range),loc:b(e.loc)},r.set(a)}processBooleanValue(e,n){let r=n.consumeValueContainer(),t={type:"TOMLValue",kind:"boolean",value:e.boolean,parent:r.parent,range:S(e.range),loc:b(e.loc)};return r.set(t)}processDateTimeValue(e,n){let r=n.consumeValueContainer(),t={type:"TOMLValue",kind:pt[e.type],value:e.date,datetime:e.value,parent:r.parent,range:S(e.range),loc:b(e.loc)};return r.set(t)}processArray(e,n){let r=n.consumeValueContainer(),t={type:"TOMLArray",elements:[],parent:r.parent,range:S(e.range),loc:b(e.loc)},i=n.nextToken({valuesEnabled:!0});return H(i)?(O(t,i),r.set(t)):(n.backToken(),this.processArrayValue(t,r,n))}processArrayValue(e,n,r){return r.addValueContainer({parent:e,set:t=>{e.elements.push(t);let i=r.nextToken({valuesEnabled:!0}),o=Pe(i);return o&&(i=r.nextToken({valuesEnabled:!0})),H(i)?(O(e,i),n.set(e)):o?(r.backToken(),this.processArrayValue(e,n,r)):r.reportParseError(i?"missing-comma":"unterminated-array",i)}}),["VALUE"]}processInlineTable(e,n){let r=n.consumeValueContainer(),t={type:"TOMLInlineTable",body:[],parent:r.parent,range:S(e.range),loc:b(e.loc)},i=this.tomlVersion.gte(1,1)?void 0:"invalid-inline-table-newline",o=n.nextToken({needSameLine:i});if(o){if(Y(o)||j(o))return this.processInlineTableKeyValue(o,t,r,n);if(he(o))return O(t,o),r.set(t)}return n.reportParseError("unexpected-token",o)}processInlineTableKeyValue(e,n,r,t){let i={type:"TOMLKeyValue",key:null,value:null,parent:n,range:S(e.range),loc:b(e.loc)};n.body.push(i);let{nextToken:o}=this.processKeyNode(e,i,t);if(!ve(o))return t.reportParseError("missing-equals-sign",o);let u=this.tomlVersion.gte(1,1)?void 0:"invalid-inline-table-newline";return t.addValueContainer({parent:i,set:l=>{i.value=l,O(i,l);let a=t.nextToken({needSameLine:u});if(Pe(a)){if(a=t.nextToken({needSameLine:u}),a&&(Y(a)||j(a)))return this.processInlineTableKeyValue(a,n,r,t);if(he(a)){if(this.tomlVersion.lt(1,1))return t.reportParseError("invalid-trailing-comma-in-inline-table",a)}else return t.reportParseError(a?"unexpected-token":"unterminated-inline-table",a)}return he(a)?(O(n,a),r.set(n)):t.reportParseError(a?"missing-comma":"unterminated-inline-table",a)}}),t.needSameLine="invalid-key-value-newline",["VALUE"]}};function ce(e){return R(e)&&e.value==="."}function ve(e){return R(e)&&e.value==="="}function fe(e){return R(e)&&e.value==="["}function H(e){return R(e)&&e.value==="]"}function Et(e){return R(e)&&e.value==="{"}function he(e){return R(e)&&e.value==="}"}function Pe(e){return R(e)&&e.value===","}function R(e){return!!(e&&e.type==="Punctuator")}function Y(e){return e.type==="Bare"}function j(e){return e.type==="BasicString"||e.type==="LiteralString"}function Me(e){return e.type==="MultiLineBasicString"||e.type==="MultiLineLiteralString"}function gt(e){return e.type==="Integer"||e.type==="Float"}function It(e){return e.type==="Boolean"}function _t(e){return e.type==="OffsetDateTime"||e.type==="LocalDateTime"||e.type==="LocalDate"||e.type==="LocalTime"}function O(e,n){n&&(e.range[1]=n.range[1],e.loc.end=te(n.loc.end))}function S(e){return[e[0],e[1]]}function b(e){return{start:te(e.start),end:te(e.end)}}function te(e){return{line:e.line,column:e.column}}var yt={Program:["body"],TOMLTopLevelTable:["body"],TOMLTable:["key","body"],TOMLKeyValue:["key","value"],TOMLKey:["keys"],TOMLArray:["elements"],TOMLInlineTable:["body"],TOMLBare:[],TOMLQuoted:[],TOMLValue:[]},kt=Ie(yt);function St(e,n){return{ast:new mt(e,n).parse(),visitorKeys:kt,services:{isTOML:!0}}}var bt=Nt(e=>e.value);function Nt(e){function n(t,i){return r[t.type](t,i)}let r={Program(t,i={}){return n(t.body[0],i)},TOMLTopLevelTable(t,i={}){for(let o of t.body)n(o,i);return i},TOMLKeyValue(t,i={}){let o=n(t.value);return vt(i,n(t.key),o),i},TOMLTable(t,i={}){let o=Ot(i,n(t.key),t.kind==="array");for(let u of t.body)n(u,o);return i},TOMLArray(t){return t.elements.map(i=>n(i))},TOMLInlineTable(t){let i={};for(let o of t.body)n(o,i);return i},TOMLKey(t){return t.keys.map(i=>n(i))},TOMLBare(t){return t.name},TOMLQuoted(t){return t.value},TOMLValue(t){return e(t)}};return t=>n(t)}function Ot(e,n,r){let t=e;for(let a=0;a<n.length-1;a++){let c=n[a];t=l(t,c)}let i=x(n),o=t[i];if(o==null){let a={};return t[i]=r?[a]:a,a}if(ee(o)){let a={};return t[i]=r?[a]:a,a}if(!r){if(Array.isArray(o)){let a={};return t[i]=a,a}return o}if(Array.isArray(o)){let a={};return o.push(a),a}let u={};return t[i]=[u],u;function l(a,c){let h=a[c];if(h==null){let L={};return a[c]=L,L}if(ee(h)){let L={};return a[c]=L,L}let T=h;for(;Array.isArray(T);){let L=T.length-1,I=T[L];if(ee(I)){let y={};return T[L]=y,y}T=I}return T}}function vt(e,n,r){let t=e;for(let i=0;i<n.length-1;i++){let o=n[i],u=t[o];if(u==null){let l={};t[o]=l,t=l}else if(ee(u)||Array.isArray(u)){let l={};t[o]=l,t=l}else t=u}t[x(n)]=r}function ee(e){return typeof e!="object"||e instanceof Date}function Pt(e,n){return St(e,n).ast}function z(e,n=!1){let r=e.length,t=0,i="",o=0,u=16,l=0,a=0,c=0,h=0,T=0;function L(d,g){let p=0,A=0;for(;p<d||!g;){let f=e.charCodeAt(t);if(f>=48&&f<=57)A=A*16+f-48;else if(f>=65&&f<=70)A=A*16+f-65+10;else if(f>=97&&f<=102)A=A*16+f-97+10;else break;t++,p++}return p<d&&(A=-1),A}function I(d){t=d,i="",o=0,u=16,T=0}function y(){let d=t;if(e.charCodeAt(t)===48)t++;else for(t++;t<e.length&&F(e.charCodeAt(t));)t++;if(t<e.length&&e.charCodeAt(t)===46)if(t++,t<e.length&&F(e.charCodeAt(t)))for(t++;t<e.length&&F(e.charCodeAt(t));)t++;else return T=3,e.substring(d,t);let g=t;if(t<e.length&&(e.charCodeAt(t)===69||e.charCodeAt(t)===101))if(t++,(t<e.length&&e.charCodeAt(t)===43||e.charCodeAt(t)===45)&&t++,t<e.length&&F(e.charCodeAt(t))){for(t++;t<e.length&&F(e.charCodeAt(t));)t++;g=t}else T=3;return e.substring(d,g)}function v(){let d="",g=t;for(;;){if(t>=r){d+=e.substring(g,t),T=2;break}let p=e.charCodeAt(t);if(p===34){d+=e.substring(g,t),t++;break}if(p===92){if(d+=e.substring(g,t),t++,t>=r){T=2;break}switch(e.charCodeAt(t++)){case 34:d+='"';break;case 92:d+="\\";break;case 47:d+="/";break;case 98:d+="\b";break;case 102:d+="\f";break;case 110:d+=`
3
+ `;break;case 114:d+="\r";break;case 116:d+=" ";break;case 117:let f=L(4,!0);f>=0?d+=String.fromCharCode(f):T=4;break;default:T=5}g=t;continue}if(p>=0&&p<=31)if($(p)){d+=e.substring(g,t),T=2;break}else T=6;t++}return d}function _(){if(i="",T=0,o=t,a=l,h=c,t>=r)return o=r,u=17;let d=e.charCodeAt(t);if(Le(d)){do t++,i+=String.fromCharCode(d),d=e.charCodeAt(t);while(Le(d));return u=15}if($(d))return t++,i+=String.fromCharCode(d),d===13&&e.charCodeAt(t)===10&&(t++,i+=`
4
+ `),l++,c=t,u=14;switch(d){case 123:return t++,u=1;case 125:return t++,u=2;case 91:return t++,u=3;case 93:return t++,u=4;case 58:return t++,u=6;case 44:return t++,u=5;case 34:return t++,i=v(),u=10;case 47:let g=t-1;if(e.charCodeAt(t+1)===47){for(t+=2;t<r&&!$(e.charCodeAt(t));)t++;return i=e.substring(g,t),u=12}if(e.charCodeAt(t+1)===42){t+=2;let p=r-1,A=!1;for(;t<p;){let f=e.charCodeAt(t);if(f===42&&e.charCodeAt(t+1)===47){t+=2,A=!0;break}t++,$(f)&&(f===13&&e.charCodeAt(t)===10&&t++,l++,c=t)}return A||(t++,T=1),i=e.substring(g,t),u=13}return i+=String.fromCharCode(d),t++,u=16;case 45:if(i+=String.fromCharCode(d),t++,t===r||!F(e.charCodeAt(t)))return u=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=y(),u=11;default:for(;t<r&&P(d);)t++,d=e.charCodeAt(t);if(o!==t){switch(i=e.substring(o,t),i){case"true":return u=8;case"false":return u=9;case"null":return u=7}return u=16}return i+=String.fromCharCode(d),t++,u=16}}function P(d){if(Le(d)||$(d))return!1;switch(d){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function U(){let d;do d=_();while(d>=12&&d<=15);return d}return{setPosition:I,getPosition:()=>t,scan:n?U:_,getToken:()=>u,getTokenValue:()=>i,getTokenOffset:()=>o,getTokenLength:()=>t-o,getTokenStartLine:()=>a,getTokenStartCharacter:()=>o-h,getTokenError:()=>T}}function Le(e){return e===32||e===9}function $(e){return e===10||e===13}function F(e){return e>=48&&e<=57}var Be;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(Be||(Be={}));var N=new Array(20).fill(0).map((e,n)=>" ".repeat(n)),B=200,pe={" ":{"\n":new Array(B).fill(0).map((e,n)=>`
5
+ `+" ".repeat(n)),"\r":new Array(B).fill(0).map((e,n)=>"\r"+" ".repeat(n)),"\r\n":new Array(B).fill(0).map((e,n)=>`\r
6
+ `+" ".repeat(n))}," ":{"\n":new Array(B).fill(0).map((e,n)=>`
7
+ `+" ".repeat(n)),"\r":new Array(B).fill(0).map((e,n)=>"\r"+" ".repeat(n)),"\r\n":new Array(B).fill(0).map((e,n)=>`\r
8
+ `+" ".repeat(n))}},Ve=[`
9
+ `,"\r",`\r
10
+ `];function me(e,n,r){let t,i,o,u,l;if(n){for(u=n.offset,l=u+n.length,o=u;o>0&&!X(e,o-1);)o--;let p=l;for(;p<e.length&&!X(e,p);)p++;i=e.substring(o,p),t=Dt(i,r)}else i=e,t=0,o=0,u=0,l=e.length;let a=xt(r,e),c=Ve.includes(a),h=0,T=0,L;r.insertSpaces?L=N[r.tabSize||4]??V(N[1],r.tabSize||4):L=" ";let I=L===" "?" ":" ",y=z(i,!1),v=!1;function _(){if(h>1)return V(a,h)+V(L,t+T);let p=L.length*(t+T);return!c||p>pe[I][a].length?a+V(L,t+T):p<=0?a:pe[I][a][p]}function P(){let p=y.scan();for(h=0;p===15||p===14;)p===14&&r.keepLines?h+=1:p===14&&(h=1),p=y.scan();return v=p===16||y.getTokenError()!==0,p}let U=[];function d(p,A,f){!v&&(!n||A<l&&f>u)&&e.substring(A,f)!==p&&U.push({offset:A,length:f-A,content:p})}let g=P();if(r.keepLines&&h>0&&d(V(a,h),0,0),g!==17){let p=y.getTokenOffset()+o,A=L.length*t<20&&r.insertSpaces?N[L.length*t]:V(L,t);d(A,o,p)}for(;g!==17;){let p=y.getTokenOffset()+y.getTokenLength()+o,A=P(),f="",M=!1;for(;h===0&&(A===12||A===13);){let ae=y.getTokenOffset()+o;d(N[1],p,ae),p=y.getTokenOffset()+y.getTokenLength()+o,M=A===12,f=M?_():"",A=P()}if(A===2)g!==1&&T--,r.keepLines&&h>0||!r.keepLines&&g!==1?f=_():r.keepLines&&(f=N[1]);else if(A===4)g!==3&&T--,r.keepLines&&h>0||!r.keepLines&&g!==3?f=_():r.keepLines&&(f=N[1]);else{switch(g){case 3:case 1:T++,r.keepLines&&h>0||!r.keepLines?f=_():f=N[1];break;case 5:r.keepLines&&h>0||!r.keepLines?f=_():f=N[1];break;case 12:f=_();break;case 13:h>0?f=_():M||(f=N[1]);break;case 6:r.keepLines&&h>0?f=_():M||(f=N[1]);break;case 10:r.keepLines&&h>0?f=_():A===6&&!M&&(f="");break;case 7:case 8:case 9:case 11:case 2:case 4:r.keepLines&&h>0?f=_():(A===12||A===13)&&!M?f=N[1]:A!==5&&A!==17&&(v=!0);break;case 16:v=!0;break}h>0&&(A===12||A===13)&&(f=_())}A===17&&(r.keepLines&&h>0?f=_():f=r.insertFinalNewline?a:"");let oe=y.getTokenOffset()+o;d(f,p,oe),g=A}return U}function V(e,n){let r="";for(let t=0;t<n;t++)r+=e;return r}function Dt(e,n){let r=0,t=0,i=n.tabSize||4;for(;r<e.length;){let o=e.charAt(r);if(o===N[1])t++;else if(o===" ")t+=i;else break;r++}return Math.floor(t/i)}function xt(e,n){for(let r=0;r<n.length;r++){let t=n.charAt(r);if(t==="\r")return r+1<n.length&&n.charAt(r+1)===`
11
+ `?`\r
12
+ `:"\r";if(t===`
13
+ `)return`
14
+ `}return e&&e.eol||`
15
+ `}function X(e,n){return`\r
16
+ `.indexOf(e.charAt(n))!==-1}var ne;(function(e){e.DEFAULT={allowTrailingComma:!1}})(ne||(ne={}));function ie(e,n=[],r=ne.DEFAULT){let t={type:"array",offset:-1,length:-1,children:[],parent:void 0};function i(a){t.type==="property"&&(t.length=a-t.offset,t=t.parent)}function o(a){return t.children.push(a),a}Ke(e,{onObjectBegin:a=>{t=o({type:"object",offset:a,length:-1,parent:t,children:[]})},onObjectProperty:(a,c,h)=>{t=o({type:"property",offset:c,length:-1,parent:t,children:[]}),t.children.push({type:"string",value:a,offset:c,length:h,parent:t})},onObjectEnd:(a,c)=>{i(a+c),t.length=a+c-t.offset,t=t.parent,i(a+c)},onArrayBegin:(a,c)=>{t=o({type:"array",offset:a,length:-1,parent:t,children:[]})},onArrayEnd:(a,c)=>{t.length=a+c-t.offset,t=t.parent,i(a+c)},onLiteralValue:(a,c,h)=>{o({type:wt(a),offset:c,length:h,parent:t,value:a}),i(c+h)},onSeparator:(a,c,h)=>{t.type==="property"&&(a===":"?t.colonOffset=c:a===","&&i(c))},onError:(a,c,h)=>{n.push({error:a,offset:c,length:h})}},r);let l=t.children[0];return l&&delete l.parent,l}function J(e,n){if(!e)return;let r=e;for(let t of n)if(typeof t=="string"){if(r.type!=="object"||!Array.isArray(r.children))return;let i=!1;for(let o of r.children)if(Array.isArray(o.children)&&o.children[0].value===t&&o.children.length===2){r=o.children[1],i=!0;break}if(!i)return}else{let i=t;if(r.type!=="array"||i<0||!Array.isArray(r.children)||i>=r.children.length)return;r=r.children[i]}return r}function re(e){switch(e.type){case"array":return e.children.map(re);case"object":let n=Object.create(null);for(let r of e.children){let t=r.children[1];t&&(n[r.children[0].value]=re(t))}return n;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function Ke(e,n,r=ne.DEFAULT){let t=z(e,!1),i=[],o=0;function u(m){return m?()=>o===0&&m(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function l(m){return m?k=>o===0&&m(k,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function a(m){return m?k=>o===0&&m(k,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),()=>i.slice()):()=>!0}function c(m){return m?()=>{o>0?o++:m(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),()=>i.slice())===!1&&(o=1)}:()=>!0}function h(m){return m?()=>{o>0&&o--,o===0&&m(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter())}:()=>!0}let T=c(n.onObjectBegin),L=a(n.onObjectProperty),I=h(n.onObjectEnd),y=c(n.onArrayBegin),v=h(n.onArrayEnd),_=a(n.onLiteralValue),P=l(n.onSeparator),U=u(n.onComment),d=l(n.onError),g=r&&r.disallowComments,p=r&&r.allowTrailingComma;function A(){for(;;){let m=t.scan();switch(t.getTokenError()){case 4:f(14);break;case 5:f(15);break;case 3:f(13);break;case 1:g||f(11);break;case 2:f(12);break;case 6:f(16);break}switch(m){case 12:case 13:g?f(10):U();break;case 16:f(1);break;case 15:case 14:break;default:return m}}}function f(m,k=[],Ee=[]){if(d(m),k.length+Ee.length>0){let q=t.getToken();for(;q!==17;){if(k.indexOf(q)!==-1){A();break}else if(Ee.indexOf(q)!==-1)break;q=A()}}}function M(m){let k=t.getTokenValue();return m?_(k):(L(k),i.push(k)),A(),!0}function oe(){switch(t.getToken()){case 11:let m=t.getTokenValue(),k=Number(m);isNaN(k)&&(f(2),k=0),_(k);break;case 7:_(null);break;case 8:_(!0);break;case 9:_(!1);break;default:return!1}return A(),!0}function ae(){return t.getToken()!==10?(f(3,[],[2,5]),!1):(M(!1),t.getToken()===6?(P(":"),A(),le()||f(4,[],[2,5])):f(5,[],[2,5]),i.pop(),!0)}function Qe(){T(),A();let m=!1;for(;t.getToken()!==2&&t.getToken()!==17;){if(t.getToken()===5){if(m||f(4,[],[]),P(","),A(),t.getToken()===2&&p)break}else m&&f(6,[],[]);ae()||f(4,[],[2,5]),m=!0}return I(),t.getToken()!==2?f(7,[2],[]):A(),!0}function $e(){y(),A();let m=!0,k=!1;for(;t.getToken()!==4&&t.getToken()!==17;){if(t.getToken()===5){if(k||f(4,[],[]),P(","),A(),t.getToken()===4&&p)break}else k&&f(6,[],[]);m?(i.push(0),m=!1):i[i.length-1]++,le()||f(4,[],[4,5]),k=!0}return v(),m||i.pop(),t.getToken()!==4?f(8,[4],[]):A(),!0}function le(){switch(t.getToken()){case 3:return $e();case 1:return Qe();case 10:return M(!0);default:return oe()}}return A(),t.getToken()===17?r.allowEmptyContent?!0:(f(4,[],[]),!1):le()?(t.getToken()!==17&&f(9,[],[]),!0):(f(4,[],[]),!1)}function wt(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(e){if(Array.isArray(e))return"array"}else return"null";return"object"}default:return"null"}}function Ge(e,n,r,t){let i=n.slice(),u=ie(e,[]),l,a;for(;i.length>0&&(a=i.pop(),l=J(u,i),l===void 0&&r!==void 0);)typeof a=="string"?r={[a]:r}:r=[r];if(l)if(l.type==="object"&&typeof a=="string"&&Array.isArray(l.children)){let c=J(l,[a]);if(c!==void 0)if(r===void 0){if(!c.parent)throw new Error("Malformed AST");let h=l.children.indexOf(c.parent),T,L=c.parent.offset+c.parent.length;if(h>0){let I=l.children[h-1];T=I.offset+I.length}else T=l.offset+1,l.children.length>1&&(L=l.children[1].offset);return w(e,{offset:T,length:L-T,content:""},t)}else return w(e,{offset:c.offset,length:c.length,content:JSON.stringify(r)},t);else{if(r===void 0)return[];let h=`${JSON.stringify(a)}: ${JSON.stringify(r)}`,T=t.getInsertionIndex?t.getInsertionIndex(l.children.map(I=>I.children[0].value)):l.children.length,L;if(T>0){let I=l.children[T-1];L={offset:I.offset+I.length,length:0,content:","+h}}else l.children.length===0?L={offset:l.offset+1,length:0,content:h}:L={offset:l.offset+1,length:0,content:h+","};return w(e,L,t)}}else if(l.type==="array"&&typeof a=="number"&&Array.isArray(l.children)){let c=a;if(c===-1){let h=`${JSON.stringify(r)}`,T;if(l.children.length===0)T={offset:l.offset+1,length:0,content:h};else{let L=l.children[l.children.length-1];T={offset:L.offset+L.length,length:0,content:","+h}}return w(e,T,t)}else if(r===void 0&&l.children.length>=0){let h=a,T=l.children[h],L;if(l.children.length===1)L={offset:l.offset+1,length:l.length-2,content:""};else if(l.children.length-1===h){let I=l.children[h-1],y=I.offset+I.length,v=l.offset+l.length;L={offset:y,length:v-2-y,content:""}}else L={offset:T.offset,length:l.children[h+1].offset-T.offset,content:""};return w(e,L,t)}else if(r!==void 0){let h,T=`${JSON.stringify(r)}`;if(!t.isArrayInsertion&&l.children.length>a){let L=l.children[a];h={offset:L.offset,length:L.length,content:T}}else if(l.children.length===0||a===0)h={offset:l.offset+1,length:0,content:l.children.length===0?T:T+","};else{let L=a>l.children.length?l.children.length:a,I=l.children[L-1];h={offset:I.offset+I.length,length:0,content:","+T}}return w(e,h,t)}else throw new Error(`Can not ${r===void 0?"remove":t.isArrayInsertion?"insert":"modify"} Array index ${c} as length is not sufficient`)}else throw new Error(`Can not add ${typeof a!="number"?"index":"property"} to parent of type ${l.type}`);else{if(r===void 0)throw new Error("Can not delete in empty document");return w(e,{offset:u?u.offset:0,length:u?u.length:0,content:JSON.stringify(r)},t)}}function w(e,n,r){if(!r.formattingOptions)return[n];let t=se(e,n),i=n.offset,o=n.offset+n.content.length;if(n.length===0||n.content.length===0){for(;i>0&&!X(t,i-1);)i--;for(;o<t.length&&!X(t,o);)o++}let u=me(t,{offset:i,length:o-i},{...r.formattingOptions,keepLines:!1});for(let a=u.length-1;a>=0;a--){let c=u[a];t=se(t,c),i=Math.min(i,c.offset),o=Math.max(o,c.offset+c.length),o+=c.content.length-c.length}let l=e.length-(t.length-o)-i;return[{offset:i,length:l,content:t.substring(i,o)}]}function se(e,n){return e.substring(0,n.offset)+n.content+e.substring(n.offset+n.length)}var Ce;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(Ce||(Ce={}));var He;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(He||(He={}));var Bt=ie,Vt=J;var Kt=re;var je;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(je||(je={}));function Gt(e,n,r,t){return Ge(e,n,r,t)}function Ct(e,n){let r=n.slice(0).sort((i,o)=>{let u=i.offset-o.offset;return u===0?i.length-o.length:u}),t=e.length;for(let i=r.length-1;i>=0;i--){let o=r[i];if(o.offset+o.length<=t)e=se(e,o);else throw new Error("Overlapping edit");t=o.offset}return e}export{Ct as applyEdits,Vt as findNodeAtLocation,Kt as getNodeValue,bt as getStaticTOMLValue,Gt as modify,Pt as parseTOML,Bt as parseTree};