claude-flow 2.0.0-alpha.8 → 2.0.0-alpha.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/MIGRATION_SUMMARY.md +215 -0
- package/.claude/agents/README.md +82 -0
- package/.claude/agents/analysis/code-review/analyze-code-quality.md +180 -0
- package/.claude/agents/architecture/system-design/arch-system-design.md +156 -0
- package/.claude/agents/base-template-generator.md +42 -0
- package/.claude/agents/consensus/README.md +246 -0
- package/.claude/agents/consensus/byzantine-coordinator.md +63 -0
- package/.claude/agents/consensus/crdt-synchronizer.md +997 -0
- package/.claude/agents/consensus/gossip-coordinator.md +63 -0
- package/.claude/agents/consensus/performance-benchmarker.md +851 -0
- package/.claude/agents/consensus/quorum-manager.md +823 -0
- package/.claude/agents/consensus/raft-manager.md +63 -0
- package/.claude/agents/consensus/security-manager.md +622 -0
- package/.claude/agents/core/coder.md +211 -0
- package/.claude/agents/core/planner.md +116 -0
- package/.claude/agents/core/researcher.md +136 -0
- package/.claude/agents/core/reviewer.md +272 -0
- package/.claude/agents/core/tester.md +266 -0
- package/.claude/agents/data/ml/data-ml-model.md +193 -0
- package/.claude/agents/development/backend/dev-backend-api.md +142 -0
- package/.claude/agents/devops/ci-cd/ops-cicd-github.md +164 -0
- package/.claude/agents/documentation/api-docs/docs-api-openapi.md +174 -0
- package/.claude/agents/github/code-review-swarm.md +538 -0
- package/.claude/agents/github/github-modes.md +173 -0
- package/.claude/agents/github/issue-tracker.md +319 -0
- package/.claude/agents/github/multi-repo-swarm.md +553 -0
- package/.claude/agents/github/pr-manager.md +191 -0
- package/.claude/agents/github/project-board-sync.md +509 -0
- package/.claude/agents/github/release-manager.md +367 -0
- package/.claude/agents/github/release-swarm.md +583 -0
- package/.claude/agents/github/repo-architect.md +398 -0
- package/.claude/agents/github/swarm-issue.md +573 -0
- package/.claude/agents/github/swarm-pr.md +428 -0
- package/.claude/agents/github/sync-coordinator.md +452 -0
- package/.claude/agents/github/workflow-automation.md +635 -0
- package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +82 -0
- package/.claude/agents/hive-mind/consensus-builder.md +102 -0
- package/.claude/agents/hive-mind/swarm-memory-manager.md +120 -0
- package/.claude/agents/optimization/README.md +243 -0
- package/.claude/agents/optimization/benchmark-suite.md +658 -0
- package/.claude/agents/optimization/load-balancer.md +424 -0
- package/.claude/agents/optimization/performance-monitor.md +665 -0
- package/.claude/agents/optimization/resource-allocator.md +667 -0
- package/.claude/agents/optimization/topology-optimizer.md +801 -0
- package/.claude/agents/sparc/architecture.md +472 -0
- package/.claude/agents/sparc/pseudocode.md +318 -0
- package/.claude/agents/sparc/refinement.md +525 -0
- package/.claude/agents/sparc/specification.md +276 -0
- package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +226 -0
- package/.claude/agents/swarm/README.md +183 -0
- package/.claude/agents/swarm/adaptive-coordinator.md +396 -0
- package/.claude/agents/swarm/hierarchical-coordinator.md +256 -0
- package/.claude/agents/swarm/mesh-coordinator.md +392 -0
- package/.claude/agents/templates/automation-smart-agent.md +205 -0
- package/.claude/agents/templates/coordinator-swarm-init.md +90 -0
- package/.claude/agents/templates/github-pr-manager.md +177 -0
- package/.claude/agents/templates/implementer-sparc-coder.md +259 -0
- package/.claude/agents/templates/memory-coordinator.md +187 -0
- package/.claude/agents/templates/migration-plan.md +746 -0
- package/.claude/agents/templates/orchestrator-task.md +139 -0
- package/.claude/agents/templates/performance-analyzer.md +199 -0
- package/.claude/agents/templates/sparc-coordinator.md +183 -0
- package/.claude/agents/testing/unit/tdd-london-swarm.md +244 -0
- package/.claude/agents/testing/validation/production-validator.md +395 -0
- package/.claude/cache/agent-pool.json +33 -0
- package/.claude/cache/memory-optimization.json +19 -0
- package/.claude/cache/neural-optimization.json +25 -0
- package/.claude/cache/optimized-hooks.json +19 -0
- package/.claude/cache/parallel-processing.json +26 -0
- package/.claude/checkpoints/1753906298.json +12 -0
- package/.claude/checkpoints/1753906353.json +8 -0
- package/.claude/checkpoints/1753906370.json +8 -0
- package/.claude/checkpoints/summary-session-20250730-220658.md +182 -0
- package/.claude/checkpoints/summary-session-20250730-220954.md +187 -0
- package/.claude/checkpoints/summary-session-20250730-222733.md +199 -0
- package/.claude/checkpoints/task-1753913133.json +7 -0
- package/.claude/checkpoints/task-1753913281.json +7 -0
- package/.claude/checkpoints/task-1753913468.json +7 -0
- package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +54 -0
- package/.claude/commands/analysis/README.md +9 -0
- package/.claude/commands/analysis/bottleneck-detect.md +162 -0
- package/.claude/commands/analysis/performance-bottlenecks.md +1 -1
- package/.claude/commands/analysis/performance-report.md +25 -0
- package/.claude/commands/analysis/token-efficiency.md +2 -1
- package/.claude/commands/analysis/token-usage.md +25 -0
- package/.claude/commands/automation/README.md +9 -0
- package/.claude/commands/automation/auto-agent.md +122 -0
- package/.claude/commands/automation/self-healing.md +47 -2
- package/.claude/commands/automation/session-memory.md +39 -10
- package/.claude/commands/automation/smart-agents.md +36 -8
- package/.claude/commands/automation/smart-spawn.md +25 -0
- package/.claude/commands/automation/workflow-select.md +25 -0
- package/.claude/commands/coordination/README.md +9 -0
- package/.claude/commands/coordination/agent-spawn.md +25 -0
- package/.claude/commands/coordination/init.md +2 -2
- package/.claude/commands/coordination/orchestrate.md +2 -2
- package/.claude/commands/coordination/spawn.md +2 -2
- package/.claude/commands/coordination/swarm-init.md +85 -0
- package/.claude/commands/coordination/task-orchestrate.md +25 -0
- package/.claude/commands/github/README.md +11 -0
- package/.claude/commands/github/code-review-swarm.md +80 -15
- package/.claude/commands/github/code-review.md +25 -0
- package/.claude/commands/github/github-modes.md +19 -19
- package/.claude/commands/github/github-swarm.md +121 -0
- package/.claude/commands/github/issue-tracker.md +32 -29
- package/.claude/commands/github/issue-triage.md +25 -0
- package/.claude/commands/github/multi-repo-swarm.md +114 -16
- package/.claude/commands/github/pr-enhance.md +26 -0
- package/.claude/commands/github/pr-manager.md +16 -15
- package/.claude/commands/github/project-board-sync.md +38 -5
- package/.claude/commands/github/release-manager.md +35 -35
- package/.claude/commands/github/release-swarm.md +102 -13
- package/.claude/commands/github/repo-analyze.md +25 -0
- package/.claude/commands/github/repo-architect.md +20 -20
- package/.claude/commands/github/swarm-issue.md +139 -17
- package/.claude/commands/github/swarm-pr.md +49 -15
- package/.claude/commands/github/sync-coordinator.md +48 -48
- package/.claude/commands/github/workflow-automation.md +37 -10
- package/.claude/commands/hooks/README.md +11 -0
- package/.claude/commands/hooks/overview.md +2 -2
- package/.claude/commands/hooks/post-edit.md +117 -0
- package/.claude/commands/hooks/post-task.md +112 -0
- package/.claude/commands/hooks/pre-edit.md +113 -0
- package/.claude/commands/hooks/pre-task.md +111 -0
- package/.claude/commands/hooks/session-end.md +118 -0
- package/.claude/commands/hooks/setup.md +7 -7
- package/.claude/commands/memory/README.md +9 -0
- package/.claude/commands/memory/memory-persist.md +25 -0
- package/.claude/commands/memory/memory-search.md +25 -0
- package/.claude/commands/memory/memory-usage.md +25 -0
- package/.claude/commands/memory/neural.md +11 -6
- package/.claude/commands/memory/usage.md +10 -6
- package/.claude/commands/monitoring/README.md +9 -0
- package/.claude/commands/monitoring/agent-metrics.md +25 -0
- package/.claude/commands/monitoring/agents.md +8 -6
- package/.claude/commands/monitoring/real-time-view.md +25 -0
- package/.claude/commands/monitoring/status.md +9 -6
- package/.claude/commands/monitoring/swarm-monitor.md +25 -0
- package/.claude/commands/optimization/README.md +9 -0
- package/.claude/commands/optimization/auto-topology.md +15 -3
- package/.claude/commands/optimization/cache-manage.md +25 -0
- package/.claude/commands/optimization/parallel-execute.md +25 -0
- package/.claude/commands/optimization/parallel-execution.md +9 -3
- package/.claude/commands/optimization/topology-optimize.md +25 -0
- package/.claude/commands/sparc/analyzer.md +41 -68
- package/.claude/commands/sparc/architect.md +42 -67
- package/.claude/commands/sparc/batch-executor.md +44 -68
- package/.claude/commands/sparc/coder.md +44 -69
- package/.claude/commands/sparc/debugger.md +43 -67
- package/.claude/commands/sparc/designer.md +42 -66
- package/.claude/commands/sparc/documenter.md +43 -66
- package/.claude/commands/sparc/innovator.md +43 -67
- package/.claude/commands/sparc/memory-manager.md +44 -67
- package/.claude/commands/sparc/optimizer.md +43 -67
- package/.claude/commands/sparc/orchestrator.md +117 -64
- package/.claude/commands/sparc/researcher.md +43 -68
- package/.claude/commands/sparc/reviewer.md +43 -67
- package/.claude/commands/sparc/sparc-modes.md +145 -333
- package/.claude/commands/sparc/swarm-coordinator.md +44 -67
- package/.claude/commands/sparc/tdd.md +44 -68
- package/.claude/commands/sparc/tester.md +43 -67
- package/.claude/commands/sparc/workflow-manager.md +44 -67
- package/.claude/commands/swarm/analysis.md +90 -16
- package/.claude/commands/swarm/development.md +90 -15
- package/.claude/commands/swarm/examples.md +147 -42
- package/.claude/commands/swarm/maintenance.md +97 -16
- package/.claude/commands/swarm/optimization.md +112 -16
- package/.claude/commands/swarm/research.md +131 -16
- package/.claude/commands/swarm/testing.md +126 -16
- package/.claude/commands/training/README.md +9 -0
- package/.claude/commands/training/model-update.md +25 -0
- package/.claude/commands/training/neural-patterns.md +29 -4
- package/.claude/commands/training/neural-train.md +25 -0
- package/.claude/commands/training/pattern-learn.md +25 -0
- package/.claude/commands/training/specialization.md +15 -5
- package/.claude/commands/workflows/README.md +9 -0
- package/.claude/commands/workflows/development.md +47 -8
- package/.claude/commands/workflows/research.md +30 -6
- package/.claude/commands/workflows/workflow-create.md +25 -0
- package/.claude/commands/workflows/workflow-execute.md +25 -0
- package/.claude/commands/workflows/workflow-export.md +25 -0
- package/.claude/config.json +32 -11
- package/.claude/helpers/checkpoint-hooks.sh +187 -0
- package/.claude/helpers/checkpoint-manager.sh +251 -0
- package/.claude/helpers/github-checkpoint-hooks.sh +218 -0
- package/.claude/helpers/github-safe.js +106 -0
- package/.claude/helpers/github-setup.sh +28 -0
- package/.claude/helpers/quick-start.sh +19 -0
- package/.claude/helpers/setup-checkpoints.sh +75 -0
- package/.claude/helpers/setup-mcp.sh +18 -0
- package/.claude/helpers/standard-checkpoint-hooks.sh +179 -0
- package/.claude/jq-validation.log +4 -0
- package/.claude/optimized-settings.json +270 -0
- package/.claude/settings-checkpoint-example.json +29 -0
- package/.claude/settings-checkpoint-simple.json +24 -0
- package/.claude/settings-complete.json +138 -0
- package/.claude/settings-enhanced.json +278 -0
- package/.claude/settings.json +71 -64
- package/.claude/settings.local.json +7 -4
- package/.claude/test-settings.json +15 -0
- package/CHANGELOG.md +473 -0
- package/README.md +709 -633
- package/bin/claude-flow +1 -1
- package/bin/claude-flow.js +120 -0
- package/package.json +42 -22
- package/scripts/claude-flow-wrapper.sh +35 -0
- package/scripts/fix-timezone-issue-246.js +200 -0
- package/scripts/install-arm64.js +78 -0
- package/scripts/install.js +31 -20
- package/scripts/migrate-hooks.js +173 -0
- package/scripts/optimize-performance.js +400 -0
- package/scripts/performance-monitor.js +263 -0
- package/scripts/quick-fix-ts.js +281 -0
- package/scripts/ruv-swarm-safe.js +74 -0
- package/scripts/update-bin-version.js +32 -0
- package/src/adapters/cliffy-node.ts +27 -22
- package/src/agents/agent-loader.ts +247 -0
- package/src/agents/agent-manager.ts +577 -121
- package/src/agents/agent-registry.ts +77 -70
- package/src/api/claude-api-errors.ts +248 -0
- package/src/api/claude-client-enhanced.ts +616 -0
- package/src/api/claude-client.ts +756 -0
- package/src/api/routes/analysis.js +750 -735
- package/src/cli/__tests__/command-registry.test.js +42 -32
- package/src/cli/__tests__/simple-cli.test.js +42 -37
- package/src/cli/__tests__/utils.test.js +9 -9
- package/src/cli/agents/README.md +30 -4
- package/src/cli/agents/analyst.ts +161 -163
- package/src/cli/agents/architect.ts +126 -131
- package/src/cli/agents/base-agent.ts +48 -47
- package/src/cli/agents/capabilities.ts +87 -85
- package/src/cli/agents/coder.ts +127 -120
- package/src/cli/agents/coordinator.ts +72 -72
- package/src/cli/agents/hive-agents.ts +96 -70
- package/src/cli/agents/index.ts +85 -56
- package/src/cli/agents/researcher.ts +63 -74
- package/src/cli/agents/tester.ts +91 -98
- package/src/cli/cli-core.ts +56 -47
- package/src/cli/command-registry.js +232 -78
- package/src/cli/commands/advanced-memory-commands.ts +210 -142
- package/src/cli/commands/agent-simple.ts +146 -114
- package/src/cli/commands/agent.ts +119 -95
- package/src/cli/commands/claude-api.ts +276 -0
- package/src/cli/commands/claude.ts +96 -88
- package/src/cli/commands/config-integration.ts +120 -101
- package/src/cli/commands/config.ts +10 -8
- package/src/cli/commands/enterprise.ts +323 -187
- package/src/cli/commands/help-new.ts +246 -0
- package/src/cli/commands/help.ts +326 -183
- package/src/cli/commands/hive-mind/index.ts +16 -4
- package/src/cli/commands/hive-mind/init.ts +19 -12
- package/src/cli/commands/hive-mind/optimize-memory.ts +83 -53
- package/src/cli/commands/hive-mind/pause.ts +89 -0
- package/src/cli/commands/hive-mind/ps.ts +139 -0
- package/src/cli/commands/hive-mind/resume.ts +67 -0
- package/src/cli/commands/hive-mind/spawn.ts +55 -29
- package/src/cli/commands/hive-mind/status.ts +51 -51
- package/src/cli/commands/hive-mind/stop.ts +139 -0
- package/src/cli/commands/hive-mind/task.ts +65 -54
- package/src/cli/commands/hive-mind/wizard.ts +181 -167
- package/src/cli/commands/hive.ts +136 -96
- package/src/cli/commands/hook-types.ts +148 -0
- package/src/cli/commands/hook-validator.ts +195 -0
- package/src/cli/commands/hook.ts +348 -0
- package/src/cli/commands/index.ts +1203 -1019
- package/src/cli/commands/maestro.ts +317 -0
- package/src/cli/commands/mcp.ts +105 -94
- package/src/cli/commands/memory.ts +24 -21
- package/src/cli/commands/migrate.ts +24 -24
- package/src/cli/commands/monitor.ts +123 -93
- package/src/cli/commands/ruv-swarm.ts +131 -122
- package/src/cli/commands/session.ts +60 -45
- package/src/cli/commands/sparc.ts +170 -139
- package/src/cli/commands/start/event-emitter.ts +2 -2
- package/src/cli/commands/start/index.ts +1 -1
- package/src/cli/commands/start/process-manager.ts +30 -47
- package/src/cli/commands/start/process-ui-simple.ts +60 -49
- package/src/cli/commands/start/process-ui.ts +1 -1
- package/src/cli/commands/start/start-command.ts +104 -75
- package/src/cli/commands/start/system-monitor.ts +35 -41
- package/src/cli/commands/start/types.ts +3 -3
- package/src/cli/commands/start.ts +1 -1
- package/src/cli/commands/status.ts +68 -68
- package/src/cli/commands/swarm-new.ts.disabled +1620 -0
- package/src/cli/commands/swarm-spawn.ts +28 -15
- package/src/cli/commands/swarm.ts +224 -149
- package/src/cli/commands/task.ts +63 -66
- package/src/cli/commands/workflow.ts +186 -173
- package/src/cli/completion.ts +34 -19
- package/src/cli/create-enhanced-task.js +49 -17
- package/src/cli/formatter.ts +39 -38
- package/src/cli/help-formatter.js +145 -0
- package/src/cli/help-formatter.ts +173 -0
- package/src/cli/help-text.js +311 -14
- package/src/cli/index-remote.ts +14 -11
- package/src/cli/index.ts +88 -82
- package/src/cli/init/batch-tools.ts +4 -5
- package/src/cli/init/claude-config.ts +125 -118
- package/src/cli/init/directory-structure.ts +10 -11
- package/src/cli/init/index.ts +13 -13
- package/src/cli/init/sparc-environment.ts +90 -74
- package/src/cli/init/swarm-commands.ts +5 -6
- package/src/cli/init/utils.ts +1 -1
- package/src/cli/maestro-cli-bridge.ts +556 -0
- package/src/cli/main.ts +9 -10
- package/src/cli/node-compat.js +140 -30
- package/src/cli/node-repl.ts +104 -180
- package/src/cli/repl.ts +240 -183
- package/src/cli/runtime-detector.js +26 -21
- package/src/cli/simple-cli.js +479 -394
- package/src/cli/simple-cli.ts +438 -377
- package/src/cli/simple-commands/__tests__/agent.test.js +49 -55
- package/src/cli/simple-commands/__tests__/memory.test.js +4 -401
- package/src/cli/simple-commands/__tests__/swarm.test.js +49 -55
- package/src/cli/simple-commands/__tests__/task.test.js +4 -478
- package/src/cli/simple-commands/agent.js +32 -27
- package/src/cli/simple-commands/analysis.js +420 -140
- package/src/cli/simple-commands/automation.js +226 -205
- package/src/cli/simple-commands/batch-manager.js +104 -93
- package/src/cli/simple-commands/config.js +65 -60
- package/src/cli/simple-commands/coordination.js +220 -184
- package/src/cli/simple-commands/enhanced-ui-views.js +142 -115
- package/src/cli/simple-commands/enhanced-webui-complete.js +267 -167
- package/src/cli/simple-commands/fix-hook-variables.js +363 -0
- package/src/cli/simple-commands/github/gh-coordinator.js +63 -53
- package/src/cli/simple-commands/github/github-api.js +204 -47
- package/src/cli/simple-commands/github/init.js +529 -0
- package/src/cli/simple-commands/github.js +103 -34
- package/src/cli/simple-commands/hive-mind/auto-save-middleware.js +311 -0
- package/src/cli/simple-commands/hive-mind/communication.js +198 -185
- package/src/cli/simple-commands/hive-mind/core.js +292 -305
- package/src/cli/simple-commands/hive-mind/db-optimizer.js +872 -0
- package/src/cli/simple-commands/hive-mind/mcp-wrapper.js +679 -263
- package/src/cli/simple-commands/hive-mind/memory.js +374 -291
- package/src/cli/simple-commands/hive-mind/performance-optimizer.js +88 -79
- package/src/cli/simple-commands/hive-mind/performance-test.js +61 -49
- package/src/cli/simple-commands/hive-mind/queen.js +223 -213
- package/src/cli/simple-commands/hive-mind/session-manager.js +994 -0
- package/src/cli/simple-commands/hive-mind-optimize.js +361 -0
- package/src/cli/simple-commands/hive-mind-wizard.js +214 -212
- package/src/cli/simple-commands/hive-mind.js +1403 -428
- package/src/cli/simple-commands/hive.js +12 -12
- package/src/cli/simple-commands/hook-safety.js +671 -0
- package/src/cli/simple-commands/hooks.js +1161 -312
- package/src/cli/simple-commands/init/README.md +8 -1
- package/src/cli/simple-commands/init/VALIDATION_ROLLBACK.md +27 -1
- package/src/cli/simple-commands/init/agent-copier.js +217 -0
- package/src/cli/simple-commands/init/batch-init.js +115 -109
- package/src/cli/simple-commands/init/claude-commands/claude-flow-commands.js +10 -9
- package/src/cli/simple-commands/init/claude-commands/optimized-claude-flow-commands.js +10 -9
- package/src/cli/simple-commands/init/claude-commands/optimized-slash-commands.js +66 -39
- package/src/cli/simple-commands/init/claude-commands/optimized-sparc-commands.js +85 -71
- package/src/cli/simple-commands/init/claude-commands/slash-commands.js +42 -20
- package/src/cli/simple-commands/init/claude-commands/sparc-commands.js +149 -63
- package/src/cli/simple-commands/init/copy-revised-templates.js +175 -0
- package/src/cli/simple-commands/init/executable-wrapper.js +28 -21
- package/src/cli/simple-commands/init/gitignore-updater.js +137 -0
- package/src/cli/simple-commands/init/help.js +12 -3
- package/src/cli/simple-commands/init/index.js +766 -447
- package/src/cli/simple-commands/init/performance-monitor.js +71 -64
- package/src/cli/simple-commands/init/rollback/backup-manager.js +49 -68
- package/src/cli/simple-commands/init/rollback/index.js +31 -39
- package/src/cli/simple-commands/init/rollback/recovery-manager.js +71 -101
- package/src/cli/simple-commands/init/rollback/rollback-executor.js +57 -75
- package/src/cli/simple-commands/init/rollback/state-tracker.js +40 -50
- package/src/cli/simple-commands/init/sparc/roo-readme.js +1 -1
- package/src/cli/simple-commands/init/sparc/roomodes-config.js +99 -77
- package/src/cli/simple-commands/init/sparc/workflows.js +37 -33
- package/src/cli/simple-commands/init/sparc-structure.js +20 -17
- package/src/cli/simple-commands/init/template-copier.js +583 -0
- package/src/cli/simple-commands/init/templates/CLAUDE.md +641 -60
- package/src/cli/simple-commands/init/templates/claude-flow-universal +81 -0
- package/src/cli/simple-commands/init/templates/claude-md.js +183 -1
- package/src/cli/simple-commands/init/templates/commands/analysis/bottleneck-detect.md +15 -3
- package/src/cli/simple-commands/init/templates/commands/automation/auto-agent.md +12 -2
- package/src/cli/simple-commands/init/templates/commands/coordination/swarm-init.md +10 -1
- package/src/cli/simple-commands/init/templates/commands/github/github-swarm.md +18 -5
- package/src/cli/simple-commands/init/templates/commands/helpers/standard-checkpoint-hooks.sh +179 -0
- package/src/cli/simple-commands/init/templates/commands/hooks/notification.md +113 -0
- package/src/cli/simple-commands/init/templates/commands/hooks/post-command.md +116 -0
- package/src/cli/simple-commands/init/templates/commands/hooks/post-edit.md +117 -0
- package/src/cli/simple-commands/init/templates/commands/hooks/post-task.md +112 -0
- package/src/cli/simple-commands/init/templates/commands/hooks/pre-command.md +113 -0
- package/src/cli/simple-commands/init/templates/commands/hooks/pre-edit.md +113 -0
- package/src/cli/simple-commands/init/templates/commands/hooks/pre-search.md +112 -0
- package/src/cli/simple-commands/init/templates/commands/hooks/pre-task.md +12 -1
- package/src/cli/simple-commands/init/templates/commands/hooks/session-end.md +118 -0
- package/src/cli/simple-commands/init/templates/commands/hooks/session-restore.md +118 -0
- package/src/cli/simple-commands/init/templates/commands/hooks/session-start.md +117 -0
- package/src/cli/simple-commands/init/templates/coordination-md.js +1 -1
- package/src/cli/simple-commands/init/templates/coordination.md +16 -0
- package/src/cli/simple-commands/init/templates/enhanced-templates.js +938 -137
- package/src/cli/simple-commands/init/templates/github-safe-enhanced.js +333 -0
- package/src/cli/simple-commands/init/templates/github-safe.js +106 -0
- package/src/cli/simple-commands/init/templates/memory-bank-md.js +1 -1
- package/src/cli/simple-commands/init/templates/memory-bank.md +16 -0
- package/src/cli/simple-commands/init/templates/readme-files.js +1 -1
- package/src/cli/simple-commands/init/templates/safe-hook-patterns.js +430 -0
- package/src/cli/simple-commands/init/templates/settings.json +77 -66
- package/src/cli/simple-commands/init/templates/settings.json.enhanced +35 -0
- package/src/cli/simple-commands/init/templates/sparc-modes.js +637 -26
- package/src/cli/simple-commands/init/validation/config-validator.js +25 -35
- package/src/cli/simple-commands/init/validation/health-checker.js +60 -67
- package/src/cli/simple-commands/init/validation/index.js +18 -23
- package/src/cli/simple-commands/init/validation/mode-validator.js +26 -35
- package/src/cli/simple-commands/init/validation/post-init-validator.js +40 -40
- package/src/cli/simple-commands/init/validation/pre-init-validator.js +32 -36
- package/src/cli/simple-commands/init/validation/test-runner.js +64 -72
- package/src/cli/simple-commands/init.js +1 -1
- package/src/cli/simple-commands/mcp-integration-layer.js +179 -110
- package/src/cli/simple-commands/mcp.js +63 -47
- package/src/cli/simple-commands/memory.js +70 -63
- package/src/cli/simple-commands/migrate-hooks.js +63 -0
- package/src/cli/simple-commands/monitor.js +313 -75
- package/src/cli/simple-commands/performance-hooks.js +173 -0
- package/src/cli/simple-commands/performance-metrics.js +592 -0
- package/src/cli/simple-commands/process-ui-enhanced.js +209 -157
- package/src/cli/simple-commands/process-ui.js +66 -57
- package/src/cli/simple-commands/realtime-update-system.js +136 -129
- package/src/cli/simple-commands/sparc/architecture.js +352 -251
- package/src/cli/simple-commands/sparc/commands.js +122 -94
- package/src/cli/simple-commands/sparc/completion.js +274 -199
- package/src/cli/simple-commands/sparc/coordinator.js +217 -169
- package/src/cli/simple-commands/sparc/index.js +40 -36
- package/src/cli/simple-commands/sparc/phase-base.js +72 -58
- package/src/cli/simple-commands/sparc/pseudocode.js +275 -159
- package/src/cli/simple-commands/sparc/refinement.js +306 -212
- package/src/cli/simple-commands/sparc/specification.js +164 -94
- package/src/cli/simple-commands/sparc-modes/architect.js +1 -1
- package/src/cli/simple-commands/sparc-modes/ask.js +1 -1
- package/src/cli/simple-commands/sparc-modes/code.js +1 -1
- package/src/cli/simple-commands/sparc-modes/debug.js +1 -1
- package/src/cli/simple-commands/sparc-modes/devops.js +1 -1
- package/src/cli/simple-commands/sparc-modes/docs-writer.js +1 -1
- package/src/cli/simple-commands/sparc-modes/generic.js +1 -1
- package/src/cli/simple-commands/sparc-modes/index.js +16 -16
- package/src/cli/simple-commands/sparc-modes/integration.js +1 -1
- package/src/cli/simple-commands/sparc-modes/mcp.js +1 -1
- package/src/cli/simple-commands/sparc-modes/monitoring.js +1 -1
- package/src/cli/simple-commands/sparc-modes/optimization.js +1 -1
- package/src/cli/simple-commands/sparc-modes/security-review.js +1 -1
- package/src/cli/simple-commands/sparc-modes/sparc-orchestrator.js +1 -1
- package/src/cli/simple-commands/sparc-modes/spec-pseudocode.js +1 -1
- package/src/cli/simple-commands/sparc-modes/supabase-admin.js +1 -1
- package/src/cli/simple-commands/sparc-modes/swarm.js +52 -52
- package/src/cli/simple-commands/sparc-modes/tdd.js +1 -1
- package/src/cli/simple-commands/sparc-modes/tutorial.js +1 -1
- package/src/cli/simple-commands/sparc.js +115 -95
- package/src/cli/simple-commands/start-ui.js +21 -20
- package/src/cli/simple-commands/start-wrapper.js +35 -36
- package/src/cli/simple-commands/start.js +1 -1
- package/src/cli/simple-commands/status.js +57 -50
- package/src/cli/simple-commands/swarm-executor.js +54 -59
- package/src/cli/simple-commands/swarm-metrics-integration.js +119 -79
- package/src/cli/simple-commands/swarm-ui.js +183 -104
- package/src/cli/simple-commands/swarm-webui-integration.js +48 -27
- package/src/cli/simple-commands/swarm.js +553 -210
- package/src/cli/simple-commands/task.js +87 -35
- package/src/cli/simple-commands/timestamp-fix.js +104 -0
- package/src/cli/simple-commands/tool-execution-framework.js +115 -118
- package/src/cli/simple-commands/training.js +219 -194
- package/src/cli/simple-commands/web-server.js +118 -117
- package/src/cli/simple-commands/webui-validator.js +8 -6
- package/src/cli/simple-mcp.ts +14 -17
- package/src/cli/simple-orchestrator.ts +115 -102
- package/src/cli/swarm-standalone.js +28 -30
- package/src/cli/ui/compatible-ui.ts +56 -45
- package/src/cli/ui/fallback-handler.ts +23 -18
- package/src/cli/ui/index.ts +18 -17
- package/src/cli/utils/environment-detector.ts +102 -61
- package/src/cli/utils/interactive-detector.js +20 -11
- package/src/cli/utils/prompt-defaults.ts +32 -28
- package/src/cli/utils/safe-interactive.js +143 -0
- package/src/cli/utils.js +173 -168
- package/src/cli/validation-helper.js +113 -0
- package/src/cli/validation-helper.ts +128 -0
- package/src/communication/message-bus.ts +143 -126
- package/src/config/config-manager.ts +173 -27
- package/src/config/ruv-swarm-config.ts +105 -86
- package/src/config/ruv-swarm-integration.ts +38 -38
- package/src/constants/agent-types.ts +51 -31
- package/src/coordination/README.md +54 -31
- package/src/coordination/advanced-scheduler.ts +23 -26
- package/src/coordination/advanced-task-executor.ts +83 -74
- package/src/coordination/background-executor.ts +33 -30
- package/src/coordination/circuit-breaker.ts +26 -27
- package/src/coordination/conflict-resolution.ts +18 -27
- package/src/coordination/dependency-graph.ts +15 -18
- package/src/coordination/hive-orchestrator.ts +111 -81
- package/src/coordination/hive-protocol.ts +68 -77
- package/src/coordination/index.ts +3 -7
- package/src/coordination/load-balancer.ts +127 -109
- package/src/coordination/manager.ts +38 -51
- package/src/coordination/messaging.ts +19 -29
- package/src/coordination/metrics.ts +57 -60
- package/src/coordination/resources.ts +32 -37
- package/src/coordination/scheduler.ts +29 -30
- package/src/coordination/swarm-coordinator.ts +81 -70
- package/src/coordination/swarm-monitor.ts +90 -69
- package/src/coordination/work-stealing.ts +6 -13
- package/src/core/config.ts +148 -143
- package/src/core/event-bus.ts +5 -6
- package/src/core/json-persistence.ts +27 -34
- package/src/core/logger.ts +18 -16
- package/src/core/orchestrator-fixed.ts +33 -32
- package/src/core/orchestrator.ts +234 -156
- package/src/core/persistence.ts +47 -36
- package/src/enterprise/analytics-manager.ts +242 -233
- package/src/enterprise/audit-manager.ts +238 -184
- package/src/enterprise/cloud-manager.ts +167 -151
- package/src/enterprise/deployment-manager.ts +223 -180
- package/src/enterprise/index.ts +7 -7
- package/src/enterprise/project-manager.ts +151 -133
- package/src/enterprise/security-manager.ts +278 -223
- package/src/hive-mind/core/Agent.ts +112 -109
- package/src/hive-mind/core/Communication.ts +67 -69
- package/src/hive-mind/core/DatabaseManager.ts +371 -179
- package/src/hive-mind/core/HiveMind.ts +116 -96
- package/src/hive-mind/core/Memory.ts +304 -295
- package/src/hive-mind/core/MemoryMonitor.ts +46 -47
- package/src/hive-mind/core/Queen.ts +187 -114
- package/src/hive-mind/index.ts +2 -2
- package/src/hive-mind/integration/ConsensusEngine.ts +88 -92
- package/src/hive-mind/integration/MCPToolWrapper.ts +22 -73
- package/src/hive-mind/integration/SwarmOrchestrator.ts +173 -165
- package/src/hive-mind/types.ts +62 -17
- package/src/hooks/index.ts +192 -0
- package/src/index.js +1 -1
- package/src/integration/mock-components.ts +42 -30
- package/src/integration/system-integration.ts +93 -69
- package/src/integration/types.ts +7 -7
- package/src/maestro/maestro-swarm-coordinator.ts +602 -0
- package/src/maestro/maestro-types.ts +386 -0
- package/src/maestro/tests/native-hive-mind-integration.test.ts +480 -0
- package/src/mcp/README.md +23 -4
- package/src/mcp/auth.ts +25 -18
- package/src/mcp/claude-code-wrapper.ts +257 -150
- package/src/mcp/claude-flow-tools.ts +60 -18
- package/src/mcp/client.ts +15 -13
- package/src/mcp/index.ts +22 -27
- package/src/mcp/integrate-wrapper.ts +18 -18
- package/src/mcp/lifecycle-manager.ts +30 -27
- package/src/mcp/load-balancer.ts +10 -11
- package/src/mcp/mcp-server.js +1027 -257
- package/src/mcp/orchestration-integration.ts +32 -17
- package/src/mcp/performance-monitor.ts +65 -51
- package/src/mcp/protocol-manager.ts +36 -52
- package/src/mcp/recovery/connection-health-monitor.ts +40 -35
- package/src/mcp/recovery/connection-state-manager.ts +52 -50
- package/src/mcp/recovery/fallback-coordinator.ts +24 -24
- package/src/mcp/recovery/index.ts +23 -4
- package/src/mcp/recovery/reconnection-manager.ts +14 -15
- package/src/mcp/recovery/recovery-manager.ts +52 -68
- package/src/mcp/router.ts +1 -2
- package/src/mcp/ruv-swarm-tools.ts +167 -138
- package/src/mcp/ruv-swarm-wrapper.js +254 -0
- package/src/mcp/server-with-wrapper.ts +4 -5
- package/src/mcp/server-wrapper-mode.ts +5 -6
- package/src/mcp/server.ts +45 -40
- package/src/mcp/session-manager.ts +8 -11
- package/src/mcp/sparc-modes.ts +29 -28
- package/src/mcp/swarm-tools.ts +131 -114
- package/src/mcp/tests/mcp-integration.test.ts +53 -59
- package/src/mcp/tools.ts +53 -38
- package/src/mcp/transports/base.ts +4 -5
- package/src/mcp/transports/http.ts +45 -42
- package/src/mcp/transports/stdio.ts +9 -12
- package/src/memory/README.md +292 -0
- package/src/memory/advanced-memory-manager.ts +336 -279
- package/src/memory/advanced-serializer.js +611 -0
- package/src/memory/backends/base.ts +4 -5
- package/src/memory/backends/markdown.ts +16 -22
- package/src/memory/backends/sqlite.ts +40 -18
- package/src/memory/cache.ts +18 -18
- package/src/memory/distributed-memory.ts +84 -92
- package/src/memory/enhanced-examples.js +307 -0
- package/src/memory/enhanced-memory.js +339 -0
- package/src/memory/enhanced-schema.sql +154 -0
- package/src/memory/enhanced-session-serializer.js +523 -0
- package/src/memory/fallback-store.js +134 -0
- package/src/memory/in-memory-store.js +216 -0
- package/src/memory/index.js +38 -0
- package/src/memory/indexer.ts +6 -10
- package/src/memory/manager.ts +45 -59
- package/src/memory/migration.js +462 -0
- package/src/memory/shared-memory.js +790 -0
- package/src/memory/sqlite-store.js +330 -0
- package/src/memory/sqlite-wrapper.js +168 -0
- package/src/memory/swarm-memory.js +604 -0
- package/src/memory/swarm-memory.ts +74 -75
- package/src/memory/test-example.js +138 -0
- package/src/migration/README.md +25 -9
- package/src/migration/index.ts +13 -14
- package/src/migration/logger.ts +9 -7
- package/src/migration/migration-analyzer.ts +66 -52
- package/src/migration/migration-manifest.json +2 -6
- package/src/migration/migration-runner.ts +86 -63
- package/src/migration/migration-validator.ts +93 -68
- package/src/migration/package.json +1 -1
- package/src/migration/progress-reporter.ts +25 -21
- package/src/migration/rollback-manager.ts +79 -63
- package/src/migration/tests/migration-system.test.ts +4 -491
- package/src/migration/tsconfig.json +3 -10
- package/src/migration/types.ts +1 -1
- package/src/monitoring/diagnostics.ts +123 -97
- package/src/monitoring/health-check.ts +45 -51
- package/src/monitoring/real-time-monitor.ts +105 -92
- package/src/patches/hive-mind-timezone-fix.patch +123 -0
- package/src/providers/anthropic-provider.ts +282 -0
- package/src/providers/base-provider.ts +560 -0
- package/src/providers/cohere-provider.ts +521 -0
- package/src/providers/google-provider.ts +477 -0
- package/src/providers/index.ts +21 -0
- package/src/providers/ollama-provider.ts +489 -0
- package/src/providers/openai-provider.ts +476 -0
- package/src/providers/provider-manager.ts +654 -0
- package/src/providers/types.ts +531 -0
- package/src/providers/utils.ts +376 -0
- package/src/resources/resource-manager.ts +205 -159
- package/src/services/agentic-flow-hooks/hook-manager.ts +701 -0
- package/src/services/agentic-flow-hooks/index.ts +386 -0
- package/src/services/agentic-flow-hooks/llm-hooks.ts +557 -0
- package/src/services/agentic-flow-hooks/memory-hooks.ts +710 -0
- package/src/services/agentic-flow-hooks/neural-hooks.ts +758 -0
- package/src/services/agentic-flow-hooks/performance-hooks.ts +827 -0
- package/src/services/agentic-flow-hooks/types.ts +503 -0
- package/src/services/agentic-flow-hooks/workflow-hooks.ts +1026 -0
- package/src/swarm/__tests__/integration.test.ts +59 -65
- package/src/swarm/__tests__/prompt-copier.test.ts +27 -27
- package/src/swarm/advanced-orchestrator.ts +1200 -0
- package/src/swarm/claude-code-interface.ts +1268 -0
- package/src/swarm/claude-flow-executor.ts +50 -49
- package/src/swarm/coordinator.ts +821 -624
- package/src/swarm/direct-executor.ts +80 -86
- package/src/swarm/executor-v2.ts +81 -66
- package/src/swarm/executor.ts +124 -124
- package/src/swarm/hive-mind-integration.ts +1127 -0
- package/src/swarm/index.ts +7 -8
- package/src/swarm/json-output-aggregator.ts +372 -0
- package/src/swarm/mcp-integration-wrapper.ts +860 -0
- package/src/swarm/memory.ts +152 -147
- package/src/swarm/optimizations/README.md +20 -12
- package/src/swarm/optimizations/__tests__/optimization.test.ts +84 -87
- package/src/swarm/optimizations/async-file-manager.ts +70 -80
- package/src/swarm/optimizations/circular-buffer.ts +37 -37
- package/src/swarm/optimizations/connection-pool.ts +64 -64
- package/src/swarm/optimizations/index.ts +4 -4
- package/src/swarm/optimizations/migration-guide.md +27 -16
- package/src/swarm/optimizations/optimized-executor.ts +104 -114
- package/src/swarm/optimizations/ttl-map.ts +66 -63
- package/src/swarm/prompt-cli.ts +48 -42
- package/src/swarm/prompt-copier-enhanced.ts +72 -70
- package/src/swarm/prompt-copier.ts +59 -64
- package/src/swarm/prompt-copying-README.md +49 -33
- package/src/swarm/prompt-manager.ts +71 -64
- package/src/swarm/prompt-utils.ts +71 -66
- package/src/swarm/result-aggregator.ts +1046 -0
- package/src/swarm/sparc-executor.ts +302 -229
- package/src/swarm/strategies/auto.ts +367 -252
- package/src/swarm/strategies/base.ts +24 -20
- package/src/swarm/strategies/research.ts +144 -124
- package/src/swarm/types.ts +347 -309
- package/src/swarm/workers/copy-worker.ts +12 -13
- package/src/task/README.md +99 -70
- package/src/task/commands.ts +16 -8
- package/src/task/coordination.ts +209 -162
- package/src/task/engine.ts +82 -66
- package/src/task/index.ts +28 -31
- package/src/templates/claude-optimized/.claude/BATCHTOOLS_BEST_PRACTICES.md +479 -481
- package/src/templates/claude-optimized/.claude/BATCHTOOLS_GUIDE.md +210 -188
- package/src/templates/claude-optimized/.claude/MIGRATION_GUIDE.md +151 -105
- package/src/templates/claude-optimized/.claude/PERFORMANCE_BENCHMARKS.md +102 -87
- package/src/templates/claude-optimized/.claude/commands/claude-flow-help.md +18 -1
- package/src/templates/claude-optimized/.claude/commands/claude-flow-memory.md +17 -1
- package/src/templates/claude-optimized/.claude/commands/claude-flow-swarm.md +21 -1
- package/src/templates/claude-optimized/.claude/commands/sparc/architect.md +11 -4
- package/src/templates/claude-optimized/.claude/commands/sparc/ask.md +16 -10
- package/src/templates/claude-optimized/.claude/commands/sparc/code.md +26 -7
- package/src/templates/claude-optimized/.claude/commands/sparc/debug.md +14 -4
- package/src/templates/claude-optimized/.claude/commands/sparc/devops.md +23 -10
- package/src/templates/claude-optimized/.claude/commands/sparc/docs-writer.md +8 -4
- package/src/templates/claude-optimized/.claude/commands/sparc/integration.md +43 -27
- package/src/templates/claude-optimized/.claude/commands/sparc/mcp.md +15 -1
- package/src/templates/claude-optimized/.claude/commands/sparc/post-deployment-monitoring-mode.md +45 -30
- package/src/templates/claude-optimized/.claude/commands/sparc/refinement-optimization-mode.md +23 -13
- package/src/templates/claude-optimized/.claude/commands/sparc/security-review.md +31 -17
- package/src/templates/claude-optimized/.claude/commands/sparc/sparc.md +54 -47
- package/src/templates/claude-optimized/.claude/commands/sparc/spec-pseudocode.md +27 -17
- package/src/templates/claude-optimized/.claude/commands/sparc/supabase-admin.md +18 -4
- package/src/templates/claude-optimized/.claude/commands/sparc/tdd.md +23 -9
- package/src/templates/claude-optimized/.claude/commands/sparc/tutorial.md +22 -16
- package/src/templates/claude-optimized/.claude/commands/sparc.md +20 -1
- package/src/templates/claude-optimized/README.md +10 -1
- package/src/templates/claude-optimized/SUMMARY.md +23 -1
- package/src/templates/claude-optimized/deploy-to-project.js +22 -10
- package/src/templates/claude-optimized/install-template.js +14 -10
- package/src/templates/claude-optimized/manifest.json +1 -1
- package/src/templates/claude-optimized/package.json +1 -1
- package/src/templates/claude-optimized/template-manager.js +8 -8
- package/src/templates/claude-optimized/validate-template.js +33 -23
- package/src/terminal/adapters/base.ts +1 -1
- package/src/terminal/adapters/native.ts +47 -47
- package/src/terminal/adapters/vscode.ts +21 -28
- package/src/terminal/manager.ts +27 -22
- package/src/terminal/pool.ts +24 -27
- package/src/terminal/session.ts +18 -18
- package/src/terminal/vscode-bridge.ts +21 -21
- package/src/tests/validation-consistency.test.ts +4 -4
- package/src/types/cliffy.d.ts +11 -14
- package/src/types/global.d.ts +1 -2
- package/src/types/index.ts +2 -2
- package/src/types/mcp.d.ts +11 -17
- package/src/types/vscode.d.ts +18 -5
- package/src/ui/console/README-analysis-tools.md +52 -2
- package/src/ui/console/README.md +33 -1
- package/src/ui/console/WORKFLOW_DESIGNER_README.md +81 -22
- package/src/ui/console/analysis-tools.html +282 -261
- package/src/ui/console/analytics.html +329 -326
- package/src/ui/console/index.html +221 -209
- package/src/ui/console/js/analysis-tools.js +831 -686
- package/src/ui/console/js/command-handler.js +226 -196
- package/src/ui/console/js/console.js +117 -119
- package/src/ui/console/js/daa-tools.js +797 -787
- package/src/ui/console/js/memory-interface.js +676 -638
- package/src/ui/console/js/memory-test.js +49 -46
- package/src/ui/console/js/memory-tools.js +181 -159
- package/src/ui/console/js/settings.js +124 -103
- package/src/ui/console/js/terminal-emulator.js +147 -130
- package/src/ui/console/js/websocket-client.js +71 -71
- package/src/ui/console/js/workflow-designer.js +1126 -1110
- package/src/ui/console/neural-networks-demo.md +45 -16
- package/src/ui/console/styles/analysis-tools.css +571 -561
- package/src/ui/console/styles/console.css +16 -12
- package/src/ui/console/styles/daa-tools.css +322 -319
- package/src/ui/console/styles/responsive.css +71 -70
- package/src/ui/console/styles/settings.css +12 -12
- package/src/ui/console/styles/workflow-designer.css +628 -584
- package/src/ui/console/test-neural-networks.js +59 -54
- package/src/ui/console/test-neural.html +194 -196
- package/src/ui/console/workflow-designer-demo.html +433 -424
- package/src/ui/extension/node_modules/@anthropic-ai/sdk/_shims/web-runtime.js +2 -2
- package/src/ui/extension/node_modules/@anthropic-ai/sdk/core.d.ts +1 -1
- package/src/ui/extension/node_modules/@anthropic-ai/sdk/core.js +3 -3
- package/src/ui/extension/node_modules/@anthropic-ai/sdk/error.js +2 -2
- package/src/ui/extension/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts +3 -3
- package/src/ui/extension/node_modules/@anthropic-ai/sdk/lib/MessageStream.js +10 -10
- package/src/ui/extension/node_modules/@anthropic-ai/sdk/src/_shims/web-runtime.ts +3 -6
- package/src/ui/extension/node_modules/@anthropic-ai/sdk/src/core.ts +3 -173
- package/src/ui/extension/node_modules/@anthropic-ai/sdk/src/error.ts +2 -33
- package/src/ui/extension/node_modules/@anthropic-ai/sdk/src/lib/MessageStream.ts +14 -69
- package/src/ui/extension/node_modules/@anthropic-ai/sdk/src/streaming.ts +3 -81
- package/src/ui/extension/node_modules/@anthropic-ai/sdk/streaming.js +2 -2
- package/src/ui/extension/node_modules/@azure/core-client/dist/browser/deserializationPolicy.js +5 -5
- package/src/ui/extension/node_modules/@azure/core-client/dist/browser/httpClientCache.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-client/dist/browser/interfaceHelpers.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-client/dist/browser/operationHelpers.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-client/dist/browser/serializationPolicy.js +2 -2
- package/src/ui/extension/node_modules/@azure/core-client/dist/browser/serializer.js +5 -5
- package/src/ui/extension/node_modules/@azure/core-client/dist/browser/serviceClient.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-client/dist/commonjs/deserializationPolicy.js +5 -5
- package/src/ui/extension/node_modules/@azure/core-client/dist/commonjs/httpClientCache.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-client/dist/commonjs/interfaceHelpers.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-client/dist/commonjs/operationHelpers.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-client/dist/commonjs/serializationPolicy.js +2 -2
- package/src/ui/extension/node_modules/@azure/core-client/dist/commonjs/serializer.js +5 -5
- package/src/ui/extension/node_modules/@azure/core-client/dist/commonjs/serviceClient.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-client/dist/esm/deserializationPolicy.js +5 -5
- package/src/ui/extension/node_modules/@azure/core-client/dist/esm/httpClientCache.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-client/dist/esm/interfaceHelpers.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-client/dist/esm/operationHelpers.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-client/dist/esm/serializationPolicy.js +2 -2
- package/src/ui/extension/node_modules/@azure/core-client/dist/esm/serializer.js +5 -5
- package/src/ui/extension/node_modules/@azure/core-client/dist/esm/serviceClient.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-client/dist/react-native/deserializationPolicy.js +5 -5
- package/src/ui/extension/node_modules/@azure/core-client/dist/react-native/httpClientCache.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-client/dist/react-native/interfaceHelpers.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-client/dist/react-native/operationHelpers.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-client/dist/react-native/serializationPolicy.js +2 -2
- package/src/ui/extension/node_modules/@azure/core-client/dist/react-native/serializer.js +5 -5
- package/src/ui/extension/node_modules/@azure/core-client/dist/react-native/serviceClient.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/browser/pipeline.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/browser/policies/auxiliaryAuthenticationHeaderPolicy.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/browser/policies/bearerTokenAuthenticationPolicy.js +10 -10
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/browser/policies/multipartPolicy.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/browser/policies/ndJsonPolicy.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/browser/policies/setClientRequestIdPolicy.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/browser/policies/tracingPolicy.js +3 -3
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/browser/policies/userAgentPolicy.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/browser/policies/wrapAbortSignalLikePolicy.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/browser/util/tokenCycler.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/commonjs/pipeline.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/auxiliaryAuthenticationHeaderPolicy.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/bearerTokenAuthenticationPolicy.js +10 -10
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/multipartPolicy.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/ndJsonPolicy.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/setClientRequestIdPolicy.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/tracingPolicy.js +2 -2
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/userAgentPolicy.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/wrapAbortSignalLikePolicy.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/tokenCycler.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/esm/pipeline.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/esm/policies/auxiliaryAuthenticationHeaderPolicy.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/esm/policies/bearerTokenAuthenticationPolicy.js +10 -10
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/esm/policies/multipartPolicy.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/esm/policies/ndJsonPolicy.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/esm/policies/setClientRequestIdPolicy.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/esm/policies/tracingPolicy.js +3 -3
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/esm/policies/userAgentPolicy.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/esm/policies/wrapAbortSignalLikePolicy.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/esm/util/tokenCycler.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/react-native/pipeline.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/react-native/policies/auxiliaryAuthenticationHeaderPolicy.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/react-native/policies/bearerTokenAuthenticationPolicy.js +10 -10
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/react-native/policies/multipartPolicy.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/react-native/policies/ndJsonPolicy.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/react-native/policies/setClientRequestIdPolicy.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/react-native/policies/tracingPolicy.js +3 -3
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/react-native/policies/userAgentPolicy.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/react-native/policies/wrapAbortSignalLikePolicy.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-rest-pipeline/dist/react-native/util/tokenCycler.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-tracing/dist/browser/instrumenter.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-tracing/dist/browser/tracingClient.js +2 -2
- package/src/ui/extension/node_modules/@azure/core-tracing/dist/commonjs/instrumenter.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-tracing/dist/commonjs/tracingClient.js +2 -2
- package/src/ui/extension/node_modules/@azure/core-tracing/dist/esm/instrumenter.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-tracing/dist/esm/tracingClient.js +2 -2
- package/src/ui/extension/node_modules/@azure/core-tracing/dist/react-native/instrumenter.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-tracing/dist/react-native/tracingClient.js +2 -2
- package/src/ui/extension/node_modules/@azure/core-util/dist/browser/delay.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-util/dist/browser/error.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-util/dist/commonjs/delay.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-util/dist/commonjs/error.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-util/dist/esm/delay.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-util/dist/esm/error.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-util/dist/react-native/delay.js +1 -1
- package/src/ui/extension/node_modules/@azure/core-util/dist/react-native/error.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/browser/credentials/chainedTokenCredential.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/browser/credentials/managedIdentityCredential/imdsMsi.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/browser/msal/browserFlows/msalBrowserCommon.js +2 -2
- package/src/ui/extension/node_modules/@azure/identity/dist/browser/msal/nodeFlows/msalClient.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/browser/msal/utils.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/browser/msal/utils.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/browser/plugins/provider.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/browser/util/logging.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/browser/util/logging.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/browser/util/processMultiTenantRequest.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/commonjs/credentials/azureCliCredential.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/commonjs/credentials/azureDeveloperCliCredential.js +2 -2
- package/src/ui/extension/node_modules/@azure/identity/dist/commonjs/credentials/chainedTokenCredential.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/commonjs/credentials/clientCertificateCredential.js +2 -2
- package/src/ui/extension/node_modules/@azure/identity/dist/commonjs/credentials/managedIdentityCredential/imdsMsi.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/commonjs/credentials/managedIdentityCredential/index.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/commonjs/credentials/onBehalfOfCredential.js +2 -2
- package/src/ui/extension/node_modules/@azure/identity/dist/commonjs/credentials/visualStudioCodeCredential.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/commonjs/msal/browserFlows/msalBrowserCommon.js +2 -2
- package/src/ui/extension/node_modules/@azure/identity/dist/commonjs/msal/nodeFlows/msalClient.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/commonjs/msal/utils.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/commonjs/msal/utils.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/commonjs/plugins/provider.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/commonjs/util/logging.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/commonjs/util/logging.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/commonjs/util/processMultiTenantRequest.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/esm/credentials/azureCliCredential.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/esm/credentials/azureDeveloperCliCredential.js +2 -2
- package/src/ui/extension/node_modules/@azure/identity/dist/esm/credentials/chainedTokenCredential.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/esm/credentials/clientCertificateCredential.js +2 -2
- package/src/ui/extension/node_modules/@azure/identity/dist/esm/credentials/managedIdentityCredential/imdsMsi.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/esm/credentials/managedIdentityCredential/index.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/esm/credentials/onBehalfOfCredential.js +2 -2
- package/src/ui/extension/node_modules/@azure/identity/dist/esm/credentials/visualStudioCodeCredential.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/esm/msal/browserFlows/msalBrowserCommon.js +2 -2
- package/src/ui/extension/node_modules/@azure/identity/dist/esm/msal/nodeFlows/msalClient.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/esm/msal/utils.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/esm/msal/utils.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/esm/plugins/provider.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/esm/util/logging.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/esm/util/logging.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/esm/util/processMultiTenantRequest.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/workerd/credentials/azureCliCredential.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/workerd/credentials/azureDeveloperCliCredential.js +2 -2
- package/src/ui/extension/node_modules/@azure/identity/dist/workerd/credentials/chainedTokenCredential.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/workerd/credentials/clientCertificateCredential.js +2 -2
- package/src/ui/extension/node_modules/@azure/identity/dist/workerd/credentials/managedIdentityCredential/imdsMsi.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/workerd/credentials/managedIdentityCredential/index.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/workerd/credentials/onBehalfOfCredential.js +2 -2
- package/src/ui/extension/node_modules/@azure/identity/dist/workerd/credentials/visualStudioCodeCredential.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/workerd/msal/browserFlows/msalBrowserCommon.js +2 -2
- package/src/ui/extension/node_modules/@azure/identity/dist/workerd/msal/nodeFlows/msalClient.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/workerd/msal/utils.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/workerd/msal/utils.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/workerd/plugins/provider.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/workerd/util/logging.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/workerd/util/logging.js +1 -1
- package/src/ui/extension/node_modules/@azure/identity/dist/workerd/util/processMultiTenantRequest.js +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/app/IPublicClientApplication.d.ts +3 -3
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/app/PublicClientApplication.d.ts +3 -3
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/app/PublicClientNext.d.ts +3 -3
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/broker/nativeBroker/PlatformAuthDOMHandler.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/broker/nativeBroker/PlatformAuthProvider.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/cache/AccountManager.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/cache/AsyncMemoryStorage.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/cache/BrowserCacheManager.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/cache/LocalStorage.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/cache/TokenCache.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/controllers/IController.d.ts +3 -3
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/controllers/NestedAppAuthController.d.ts +3 -3
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/controllers/StandardController.d.ts +3 -3
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/controllers/UnknownOperatingContextController.d.ts +3 -3
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/crypto/BrowserCrypto.d.ts +2 -2
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/crypto/CryptoOps.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/crypto/PkceGenerator.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/error/NativeAuthError.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/event/EventHandler.d.ts +1 -2
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/interaction_client/BaseInteractionClient.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/interaction_client/PlatformAuthInteractionClient.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/interaction_client/PopupClient.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/interaction_client/RedirectClient.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/interaction_client/SilentAuthCodeClient.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/interaction_client/SilentIframeClient.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/interaction_handler/InteractionHandler.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/interaction_handler/SilentHandler.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/naa/AuthBridge.d.ts +2 -2
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/naa/BridgeError.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/naa/mapping/NestedAppAuthAdapter.d.ts +2 -2
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/operatingcontext/BaseOperatingContext.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/protocol/Authorize.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/request/RequestHelpers.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/response/ResponseHandler.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/dist/utils/MsalFrameStatsUtils.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/msal-browser.js +97 -281
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/app/IPublicClientApplication.d.ts +3 -3
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/app/PublicClientApplication.d.ts +3 -3
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/app/PublicClientNext.d.ts +3 -3
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/broker/nativeBroker/PlatformAuthProvider.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/cache/AccountManager.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/cache/AsyncMemoryStorage.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/cache/BrowserCacheManager.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/cache/LocalStorage.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/cache/TokenCache.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/controllers/IController.d.ts +3 -3
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/controllers/NestedAppAuthController.d.ts +3 -3
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/controllers/StandardController.d.ts +3 -3
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/controllers/UnknownOperatingContextController.d.ts +3 -3
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/crypto/BrowserCrypto.d.ts +2 -2
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/crypto/CryptoOps.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/crypto/PkceGenerator.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/error/NativeAuthError.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/event/EventHandler.d.ts +1 -2
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/interaction_client/BaseInteractionClient.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/interaction_client/PlatformAuthInteractionClient.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/interaction_client/PopupClient.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/interaction_client/RedirectClient.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/interaction_client/SilentAuthCodeClient.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/interaction_client/SilentIframeClient.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/interaction_handler/InteractionHandler.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/interaction_handler/SilentHandler.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/naa/AuthBridge.d.ts +2 -2
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/naa/BridgeError.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/naa/mapping/NestedAppAuthAdapter.d.ts +2 -2
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/operatingcontext/BaseOperatingContext.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/protocol/Authorize.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/request/RequestHelpers.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/response/ResponseHandler.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/lib/types/utils/MsalFrameStatsUtils.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-browser/src/app/IPublicClientApplication.ts +2 -5
- package/src/ui/extension/node_modules/@azure/msal-browser/src/app/PublicClientApplication.ts +2 -44
- package/src/ui/extension/node_modules/@azure/msal-browser/src/app/PublicClientNext.ts +3 -40
- package/src/ui/extension/node_modules/@azure/msal-browser/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +2 -23
- package/src/ui/extension/node_modules/@azure/msal-browser/src/broker/nativeBroker/PlatformAuthExtensionHandler.ts +5 -39
- package/src/ui/extension/node_modules/@azure/msal-browser/src/broker/nativeBroker/PlatformAuthProvider.ts +3 -16
- package/src/ui/extension/node_modules/@azure/msal-browser/src/cache/AccountManager.ts +2 -15
- package/src/ui/extension/node_modules/@azure/msal-browser/src/cache/AsyncMemoryStorage.ts +2 -14
- package/src/ui/extension/node_modules/@azure/msal-browser/src/cache/BrowserCacheManager.ts +4 -108
- package/src/ui/extension/node_modules/@azure/msal-browser/src/cache/LocalStorage.ts +3 -44
- package/src/ui/extension/node_modules/@azure/msal-browser/src/cache/TokenCache.ts +2 -38
- package/src/ui/extension/node_modules/@azure/msal-browser/src/controllers/IController.ts +2 -39
- package/src/ui/extension/node_modules/@azure/msal-browser/src/controllers/NestedAppAuthController.ts +2 -100
- package/src/ui/extension/node_modules/@azure/msal-browser/src/controllers/StandardController.ts +9 -205
- package/src/ui/extension/node_modules/@azure/msal-browser/src/controllers/UnknownOperatingContextController.ts +2 -24
- package/src/ui/extension/node_modules/@azure/msal-browser/src/error/NativeAuthError.ts +2 -15
- package/src/ui/extension/node_modules/@azure/msal-browser/src/event/EventHandler.ts +2 -17
- package/src/ui/extension/node_modules/@azure/msal-browser/src/interaction_client/BaseInteractionClient.ts +2 -18
- package/src/ui/extension/node_modules/@azure/msal-browser/src/interaction_client/PlatformAuthInteractionClient.ts +2 -99
- package/src/ui/extension/node_modules/@azure/msal-browser/src/interaction_client/PopupClient.ts +2 -72
- package/src/ui/extension/node_modules/@azure/msal-browser/src/interaction_client/RedirectClient.ts +2 -59
- package/src/ui/extension/node_modules/@azure/msal-browser/src/interaction_client/SilentCacheClient.ts +2 -8
- package/src/ui/extension/node_modules/@azure/msal-browser/src/interaction_client/SilentIframeClient.ts +2 -26
- package/src/ui/extension/node_modules/@azure/msal-browser/src/interaction_client/StandardInteractionClient.ts +2 -22
- package/src/ui/extension/node_modules/@azure/msal-browser/src/interaction_handler/InteractionHandler.ts +2 -18
- package/src/ui/extension/node_modules/@azure/msal-browser/src/naa/BridgeError.ts +2 -5
- package/src/ui/extension/node_modules/@azure/msal-browser/src/naa/BridgeProxy.ts +2 -23
- package/src/ui/extension/node_modules/@azure/msal-browser/src/naa/mapping/NestedAppAuthAdapter.ts +2 -29
- package/src/ui/extension/node_modules/@azure/msal-browser/src/network/FetchClient.ts +3 -11
- package/src/ui/extension/node_modules/@azure/msal-browser/src/operatingcontext/BaseOperatingContext.ts +3 -19
- package/src/ui/extension/node_modules/@azure/msal-browser/src/protocol/Authorize.ts +2 -37
- package/src/ui/extension/node_modules/@azure/msal-browser/src/telemetry/BrowserPerformanceClient.ts +2 -24
- package/src/ui/extension/node_modules/@azure/msal-browser/src/utils/MsalFrameStatsUtils.ts +2 -7
- package/src/ui/extension/node_modules/@azure/msal-common/dist/authority/Authority.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-common/dist/cache/CacheManager.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-common/dist/client/BaseClient.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-common/dist/error/NetworkError.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-common/dist/protocol/Authorize.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-common/dist/response/ResponseHandler.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceClient.d.ts +2 -2
- package/src/ui/extension/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.d.ts +6 -7
- package/src/ui/extension/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-common/dist/utils/FunctionWrappers.d.ts +2 -3
- package/src/ui/extension/node_modules/@azure/msal-common/lib/index-node-DNGOJ4N7.js +31 -106
- package/src/ui/extension/node_modules/@azure/msal-common/lib/types/authority/Authority.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-common/lib/types/authority/AuthorityFactory.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-common/lib/types/authority/AuthorityMetadata.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-common/lib/types/authority/RegionDiscovery.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-common/lib/types/cache/CacheManager.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-common/lib/types/cache/entities/AccountEntity.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-common/lib/types/client/BaseClient.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-common/lib/types/crypto/PopTokenGenerator.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-common/lib/types/error/NetworkError.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-common/lib/types/protocol/Authorize.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-common/lib/types/response/ResponseHandler.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-common/lib/types/telemetry/performance/IPerformanceClient.d.ts +2 -2
- package/src/ui/extension/node_modules/@azure/msal-common/lib/types/telemetry/performance/PerformanceClient.d.ts +6 -7
- package/src/ui/extension/node_modules/@azure/msal-common/lib/types/telemetry/server/ServerTelemetryManager.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-common/lib/types/utils/FunctionWrappers.d.ts +2 -3
- package/src/ui/extension/node_modules/@azure/msal-common/src/authority/Authority.ts +5 -120
- package/src/ui/extension/node_modules/@azure/msal-common/src/authority/AuthorityFactory.ts +1 -6
- package/src/ui/extension/node_modules/@azure/msal-common/src/authority/AuthorityMetadata.ts +2 -16
- package/src/ui/extension/node_modules/@azure/msal-common/src/authority/RegionDiscovery.ts +1 -17
- package/src/ui/extension/node_modules/@azure/msal-common/src/cache/CacheManager.ts +3 -207
- package/src/ui/extension/node_modules/@azure/msal-common/src/cache/entities/AccountEntity.ts +2 -39
- package/src/ui/extension/node_modules/@azure/msal-common/src/client/AuthorizationCodeClient.ts +2 -52
- package/src/ui/extension/node_modules/@azure/msal-common/src/client/BaseClient.ts +2 -35
- package/src/ui/extension/node_modules/@azure/msal-common/src/client/RefreshTokenClient.ts +2 -49
- package/src/ui/extension/node_modules/@azure/msal-common/src/client/SilentFlowClient.ts +2 -19
- package/src/ui/extension/node_modules/@azure/msal-common/src/config/ClientConfiguration.ts +2 -25
- package/src/ui/extension/node_modules/@azure/msal-common/src/crypto/PopTokenGenerator.ts +2 -18
- package/src/ui/extension/node_modules/@azure/msal-common/src/error/NetworkError.ts +1 -7
- package/src/ui/extension/node_modules/@azure/msal-common/src/protocol/Authorize.ts +3 -38
- package/src/ui/extension/node_modules/@azure/msal-common/src/request/RequestParameterBuilder.ts +2 -55
- package/src/ui/extension/node_modules/@azure/msal-common/src/response/ResponseHandler.ts +9 -53
- package/src/ui/extension/node_modules/@azure/msal-common/src/telemetry/performance/IPerformanceClient.ts +3 -10
- package/src/ui/extension/node_modules/@azure/msal-common/src/telemetry/performance/PerformanceClient.ts +9 -96
- package/src/ui/extension/node_modules/@azure/msal-common/src/telemetry/server/ServerTelemetryManager.ts +4 -47
- package/src/ui/extension/node_modules/@azure/msal-common/src/url/UrlString.ts +2 -32
- package/src/ui/extension/node_modules/@azure/msal-common/src/utils/FunctionWrappers.ts +1 -5
- package/src/ui/extension/node_modules/@azure/msal-node/dist/cache/NodeStorage.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/dist/cache/TokenCache.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/dist/client/ClientApplication.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/dist/client/IConfidentialClientApplication.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/dist/client/IPublicClientApplication.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/dist/client/ManagedIdentityClient.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/AppService.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/AzureArc.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/CloudShell.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/Imds.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/MachineLearning.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/ServiceFabric.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/dist/network/HttpClientWithRetries.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/dist/protocol/Authorize.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/dist/retry/DefaultManagedIdentityRetryPolicy.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-node/dist/retry/IHttpRetryPolicy.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-node/dist/retry/ImdsRetryPolicy.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-node/lib/types/cache/NodeStorage.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/lib/types/cache/TokenCache.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/lib/types/client/ClientApplication.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/lib/types/client/IConfidentialClientApplication.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/lib/types/client/IPublicClientApplication.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/lib/types/client/ManagedIdentityClient.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/lib/types/client/ManagedIdentitySources/AppService.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/lib/types/client/ManagedIdentitySources/AzureArc.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/lib/types/client/ManagedIdentitySources/CloudShell.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/lib/types/client/ManagedIdentitySources/Imds.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/lib/types/network/HttpClientWithRetries.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/lib/types/protocol/Authorize.d.ts +1 -1
- package/src/ui/extension/node_modules/@azure/msal-node/lib/types/retry/DefaultManagedIdentityRetryPolicy.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-node/lib/types/retry/IHttpRetryPolicy.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-node/lib/types/retry/ImdsRetryPolicy.d.ts +0 -1
- package/src/ui/extension/node_modules/@azure/msal-node/node_modules/uuid/dist/esm-node/parse.js +1 -9
- package/src/ui/extension/node_modules/@azure/msal-node/node_modules/uuid/dist/esm-node/v1.js +2 -30
- package/src/ui/extension/node_modules/@azure/msal-node/node_modules/uuid/dist/parse.js +1 -12
- package/src/ui/extension/node_modules/@azure/msal-node/node_modules/uuid/dist/rng-browser.js +1 -5
- package/src/ui/extension/node_modules/@azure/msal-node/node_modules/uuid/dist/v1.js +2 -34
- package/src/ui/extension/node_modules/@azure/msal-node/src/cache/TokenCache.ts +3 -30
- package/src/ui/extension/node_modules/@azure/msal-node/src/cache/distributed/DistributedCachePlugin.ts +2 -9
- package/src/ui/extension/node_modules/@azure/msal-node/src/client/ClientApplication.ts +3 -44
- package/src/ui/extension/node_modules/@azure/msal-node/src/client/ClientAssertion.ts +2 -21
- package/src/ui/extension/node_modules/@azure/msal-node/src/client/ClientCredentialClient.ts +4 -49
- package/src/ui/extension/node_modules/@azure/msal-node/src/client/ConfidentialClientApplication.ts +3 -25
- package/src/ui/extension/node_modules/@azure/msal-node/src/client/DeviceCodeClient.ts +2 -28
- package/src/ui/extension/node_modules/@azure/msal-node/src/client/ManagedIdentitySources/AppService.ts +2 -20
- package/src/ui/extension/node_modules/@azure/msal-node/src/client/ManagedIdentitySources/AzureArc.ts +5 -43
- package/src/ui/extension/node_modules/@azure/msal-node/src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts +5 -38
- package/src/ui/extension/node_modules/@azure/msal-node/src/client/ManagedIdentitySources/CloudShell.ts +2 -18
- package/src/ui/extension/node_modules/@azure/msal-node/src/client/ManagedIdentitySources/Imds.ts +3 -19
- package/src/ui/extension/node_modules/@azure/msal-node/src/client/ManagedIdentitySources/MachineLearning.ts +2 -21
- package/src/ui/extension/node_modules/@azure/msal-node/src/client/ManagedIdentitySources/ServiceFabric.ts +2 -21
- package/src/ui/extension/node_modules/@azure/msal-node/src/client/OnBehalfOfClient.ts +2 -42
- package/src/ui/extension/node_modules/@azure/msal-node/src/client/PublicClientApplication.ts +2 -24
- package/src/ui/extension/node_modules/@azure/msal-node/src/config/Configuration.ts +2 -25
- package/src/ui/extension/node_modules/@azure/msal-node/src/network/HttpClient.ts +6 -50
- package/src/ui/extension/node_modules/@azure/msal-node/src/network/LoopbackClient.ts +2 -13
- package/src/ui/extension/node_modules/@azure/msal-node/src/retry/DefaultManagedIdentityRetryPolicy.ts +2 -11
- package/src/ui/extension/node_modules/@azure/msal-node/src/retry/IHttpRetryPolicy.ts +1 -5
- package/src/ui/extension/node_modules/@azure/msal-node/src/retry/ImdsRetryPolicy.ts +2 -18
- package/src/ui/extension/node_modules/@babel/code-frame/lib/index.js +5 -11
- package/src/ui/extension/node_modules/@babel/core/lib/config/caching.js +3 -5
- package/src/ui/extension/node_modules/@babel/core/lib/config/config-chain.js +19 -21
- package/src/ui/extension/node_modules/@babel/core/lib/config/config-descriptors.js +5 -7
- package/src/ui/extension/node_modules/@babel/core/lib/config/files/configuration.js +2 -12
- package/src/ui/extension/node_modules/@babel/core/lib/config/files/module-types.js +6 -9
- package/src/ui/extension/node_modules/@babel/core/lib/config/files/package.js +2 -4
- package/src/ui/extension/node_modules/@babel/core/lib/config/files/plugins.js +6 -8
- package/src/ui/extension/node_modules/@babel/core/lib/config/full.js +10 -12
- package/src/ui/extension/node_modules/@babel/core/lib/config/index.js +4 -6
- package/src/ui/extension/node_modules/@babel/core/lib/config/partial.js +3 -5
- package/src/ui/extension/node_modules/@babel/core/lib/config/resolve-targets-browser.js +2 -4
- package/src/ui/extension/node_modules/@babel/core/lib/config/resolve-targets.js +4 -6
- package/src/ui/extension/node_modules/@babel/core/lib/config/validation/options.js +3 -5
- package/src/ui/extension/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js +4 -6
- package/src/ui/extension/node_modules/@babel/core/lib/gensync-utils/functional.js +6 -8
- package/src/ui/extension/node_modules/@babel/core/lib/parse.js +3 -5
- package/src/ui/extension/node_modules/@babel/core/lib/parser/index.js +3 -5
- package/src/ui/extension/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js +2 -5
- package/src/ui/extension/node_modules/@babel/core/lib/tools/build-external-helpers.js +4 -6
- package/src/ui/extension/node_modules/@babel/core/lib/transform-ast.js +4 -6
- package/src/ui/extension/node_modules/@babel/core/lib/transform-file-browser.js +2 -4
- package/src/ui/extension/node_modules/@babel/core/lib/transform.js +4 -6
- package/src/ui/extension/node_modules/@babel/core/lib/transformation/block-hoist-plugin.js +2 -4
- package/src/ui/extension/node_modules/@babel/core/lib/transformation/file/file.js +6 -8
- package/src/ui/extension/node_modules/@babel/core/lib/transformation/file/generate.js +6 -8
- package/src/ui/extension/node_modules/@babel/core/lib/transformation/index.js +2 -4
- package/src/ui/extension/node_modules/@babel/core/lib/transformation/normalize-file.js +2 -4
- package/src/ui/extension/node_modules/@babel/core/lib/transformation/normalize-opts.js +2 -4
- package/src/ui/extension/node_modules/@babel/core/lib/transformation/util/clone-deep.js +2 -4
- package/src/ui/extension/node_modules/@babel/core/lib/vendor/import-meta-resolve.js +28 -30
- package/src/ui/extension/node_modules/@babel/core/src/config/resolve-targets-browser.ts +2 -8
- package/src/ui/extension/node_modules/@babel/core/src/config/resolve-targets.ts +3 -11
- package/src/ui/extension/node_modules/@babel/core/src/transform-file-browser.ts +4 -9
- package/src/ui/extension/node_modules/@babel/generator/lib/buffer.js +2 -4
- package/src/ui/extension/node_modules/@babel/generator/lib/generators/base.js +2 -4
- package/src/ui/extension/node_modules/@babel/generator/lib/generators/classes.js +3 -5
- package/src/ui/extension/node_modules/@babel/generator/lib/generators/expressions.js +6 -8
- package/src/ui/extension/node_modules/@babel/generator/lib/generators/flow.js +11 -13
- package/src/ui/extension/node_modules/@babel/generator/lib/generators/methods.js +3 -5
- package/src/ui/extension/node_modules/@babel/generator/lib/generators/modules.js +4 -6
- package/src/ui/extension/node_modules/@babel/generator/lib/generators/statements.js +4 -6
- package/src/ui/extension/node_modules/@babel/generator/lib/generators/types.js +8 -10
- package/src/ui/extension/node_modules/@babel/generator/lib/generators/typescript.js +16 -18
- package/src/ui/extension/node_modules/@babel/generator/lib/index.js +2 -4
- package/src/ui/extension/node_modules/@babel/generator/lib/node/index.js +2 -4
- package/src/ui/extension/node_modules/@babel/generator/lib/node/parentheses.js +2 -4
- package/src/ui/extension/node_modules/@babel/generator/lib/node/whitespace.js +2 -4
- package/src/ui/extension/node_modules/@babel/generator/lib/printer.js +12 -14
- package/src/ui/extension/node_modules/@babel/generator/lib/source-map.js +2 -4
- package/src/ui/extension/node_modules/@babel/generator/lib/token-map.js +3 -5
- package/src/ui/extension/node_modules/@babel/helper-compilation-targets/lib/index.js +3 -5
- package/src/ui/extension/node_modules/@babel/helper-compilation-targets/lib/pretty.js +2 -4
- package/src/ui/extension/node_modules/@babel/helper-compilation-targets/node_modules/yallist/yallist.js +4 -63
- package/src/ui/extension/node_modules/@babel/helper-module-imports/lib/import-builder.js +2 -4
- package/src/ui/extension/node_modules/@babel/helper-module-imports/lib/import-injector.js +5 -7
- package/src/ui/extension/node_modules/@babel/helper-module-transforms/lib/get-module-name.js +3 -5
- package/src/ui/extension/node_modules/@babel/helper-module-transforms/lib/index.js +4 -8
- package/src/ui/extension/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js +4 -6
- package/src/ui/extension/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js +16 -18
- package/src/ui/extension/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js +2 -4
- package/src/ui/extension/node_modules/@babel/helper-string-parser/lib/index.js +7 -9
- package/src/ui/extension/node_modules/@babel/helper-validator-option/lib/find-suggestion.js +2 -4
- package/src/ui/extension/node_modules/@babel/helpers/lib/helpers/applyDecoratedDescriptor.js +3 -5
- package/src/ui/extension/node_modules/@babel/helpers/lib/helpers/asyncToGenerator.js +2 -4
- package/src/ui/extension/node_modules/@babel/helpers/lib/helpers/dispose.js +5 -7
- package/src/ui/extension/node_modules/@babel/helpers/lib/helpers/initializerDefineProperty.js +3 -5
- package/src/ui/extension/node_modules/@babel/helpers/lib/helpers/initializerWarningHelper.js +2 -4
- package/src/ui/extension/node_modules/@babel/helpers/lib/helpers/regeneratorAsyncIterator.js +3 -5
- package/src/ui/extension/node_modules/@babel/helpers/lib/helpers/regeneratorRuntime.js +2 -5
- package/src/ui/extension/node_modules/@babel/helpers/lib/helpers/usingCtx.js +3 -5
- package/src/ui/extension/node_modules/@babel/helpers/lib/index.js +3 -5
- package/src/ui/extension/node_modules/@babel/parser/lib/index.js +211 -212
- package/src/ui/extension/node_modules/@babel/template/lib/builder.js +2 -4
- package/src/ui/extension/node_modules/@babel/template/lib/formatters.js +2 -4
- package/src/ui/extension/node_modules/@babel/template/lib/literal.js +3 -5
- package/src/ui/extension/node_modules/@babel/template/lib/options.js +2 -4
- package/src/ui/extension/node_modules/@babel/template/lib/parse.js +9 -11
- package/src/ui/extension/node_modules/@babel/template/lib/populate.js +3 -5
- package/src/ui/extension/node_modules/@babel/template/lib/string.js +2 -4
- package/src/ui/extension/node_modules/@babel/traverse/lib/cache.js +2 -4
- package/src/ui/extension/node_modules/@babel/traverse/lib/context.js +3 -5
- package/src/ui/extension/node_modules/@babel/traverse/lib/index.js +2 -4
- package/src/ui/extension/node_modules/@babel/traverse/lib/path/ancestry.js +6 -8
- package/src/ui/extension/node_modules/@babel/traverse/lib/path/comments.js +2 -4
- package/src/ui/extension/node_modules/@babel/traverse/lib/path/context.js +7 -9
- package/src/ui/extension/node_modules/@babel/traverse/lib/path/conversion.js +12 -16
- package/src/ui/extension/node_modules/@babel/traverse/lib/path/evaluation.js +7 -9
- package/src/ui/extension/node_modules/@babel/traverse/lib/path/family.js +9 -11
- package/src/ui/extension/node_modules/@babel/traverse/lib/path/index.js +2 -4
- package/src/ui/extension/node_modules/@babel/traverse/lib/path/inference/index.js +2 -4
- package/src/ui/extension/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js +6 -8
- package/src/ui/extension/node_modules/@babel/traverse/lib/path/inference/inferers.js +4 -6
- package/src/ui/extension/node_modules/@babel/traverse/lib/path/inference/util.js +2 -4
- package/src/ui/extension/node_modules/@babel/traverse/lib/path/introspection.js +8 -10
- package/src/ui/extension/node_modules/@babel/traverse/lib/path/lib/hoister.js +3 -5
- package/src/ui/extension/node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js +8 -10
- package/src/ui/extension/node_modules/@babel/traverse/lib/path/modification.js +6 -8
- package/src/ui/extension/node_modules/@babel/traverse/lib/path/removal.js +2 -4
- package/src/ui/extension/node_modules/@babel/traverse/lib/path/replacement.js +3 -5
- package/src/ui/extension/node_modules/@babel/traverse/lib/scope/index.js +19 -21
- package/src/ui/extension/node_modules/@babel/traverse/lib/scope/lib/renamer.js +6 -8
- package/src/ui/extension/node_modules/@babel/traverse/lib/traverse-node.js +3 -5
- package/src/ui/extension/node_modules/@babel/traverse/lib/visitors.js +2 -4
- package/src/ui/extension/node_modules/@babel/types/lib/builders/generated/lowercase.js +3 -5
- package/src/ui/extension/node_modules/@babel/types/lib/clone/cloneNode.js +4 -6
- package/src/ui/extension/node_modules/@babel/types/lib/converters/toKeyAlias.js +2 -4
- package/src/ui/extension/node_modules/@babel/types/lib/converters/toStatement.js +2 -4
- package/src/ui/extension/node_modules/@babel/types/lib/converters/valueToNode.js +4 -6
- package/src/ui/extension/node_modules/@babel/types/lib/definitions/core.js +4 -6
- package/src/ui/extension/node_modules/@babel/types/lib/definitions/utils.js +4 -6
- package/src/ui/extension/node_modules/@babel/types/lib/retrievers/getFunctionName.js +2 -4
- package/src/ui/extension/node_modules/@babel/types/lib/traverse/traverse.js +2 -4
- package/src/ui/extension/node_modules/@babel/types/lib/utils/deprecationWarning.js +4 -6
- package/src/ui/extension/node_modules/@babel/types/lib/validators/matchesPattern.js +3 -5
- package/src/ui/extension/node_modules/@cspotcode/source-map-support/source-map-support.d.ts +2 -9
- package/src/ui/extension/node_modules/@cspotcode/source-map-support/source-map-support.js +5 -101
- package/src/ui/extension/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js +5 -71
- package/src/ui/extension/node_modules/@eslint/eslintrc/lib/config-array/config-dependency.js +2 -19
- package/src/ui/extension/node_modules/@eslint/eslintrc/lib/config-array/extracted-config.js +2 -23
- package/src/ui/extension/node_modules/@eslint/eslintrc/lib/config-array-factory.js +12 -147
- package/src/ui/extension/node_modules/@eslint/eslintrc/lib/flat-compat.js +2 -59
- package/src/ui/extension/node_modules/@eslint/eslintrc/lib/shared/config-validator.js +2 -52
- package/src/ui/extension/node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js +2 -7
- package/src/ui/extension/node_modules/@eslint-community/eslint-utils/index.js +4 -201
- package/src/ui/extension/node_modules/@eslint-community/regexpp/index.js +2 -16
- package/src/ui/extension/node_modules/@humanwhocodes/config-array/api.js +5 -214
- package/src/ui/extension/node_modules/@istanbuljs/load-nyc-config/node_modules/argparse/lib/argument_parser.js +2 -165
- package/src/ui/extension/node_modules/@istanbuljs/load-nyc-config/node_modules/argparse/lib/help/formatter.js +2 -115
- package/src/ui/extension/node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml/bin/js-yaml.js +4 -44
- package/src/ui/extension/node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml/dist/js-yaml.js +2 -868
- package/src/ui/extension/node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml/lib/js-yaml/dumper.js +2 -133
- package/src/ui/extension/node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate/index.js +2 -13
- package/src/ui/extension/node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from/index.js +3 -11
- package/src/ui/extension/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +4 -11
- package/src/ui/extension/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +3 -3
- package/src/ui/extension/node_modules/@nodelib/fs.scandir/out/index.d.ts +3 -3
- package/src/ui/extension/node_modules/@nodelib/fs.scandir/out/index.js +2 -2
- package/src/ui/extension/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +4 -4
- package/src/ui/extension/node_modules/@nodelib/fs.scandir/out/providers/async.js +6 -6
- package/src/ui/extension/node_modules/@nodelib/fs.scandir/out/providers/sync.js +2 -2
- package/src/ui/extension/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +2 -2
- package/src/ui/extension/node_modules/@nodelib/fs.stat/out/index.d.ts +3 -3
- package/src/ui/extension/node_modules/@nodelib/fs.stat/out/index.js +2 -2
- package/src/ui/extension/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +2 -2
- package/src/ui/extension/node_modules/@nodelib/fs.stat/out/providers/async.js +4 -4
- package/src/ui/extension/node_modules/@nodelib/fs.stat/out/providers/sync.js +2 -2
- package/src/ui/extension/node_modules/@nodelib/fs.walk/out/index.d.ts +3 -3
- package/src/ui/extension/node_modules/@nodelib/fs.walk/out/index.js +2 -2
- package/src/ui/extension/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +3 -3
- package/src/ui/extension/node_modules/@nodelib/fs.walk/out/providers/async.js +4 -4
- package/src/ui/extension/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +5 -5
- package/src/ui/extension/node_modules/@nodelib/fs.walk/out/readers/async.js +5 -5
- package/src/ui/extension/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +2 -2
- package/src/ui/extension/node_modules/@nodelib/fs.walk/out/readers/common.js +2 -2
- package/src/ui/extension/node_modules/@nodelib/fs.walk/out/readers/sync.js +3 -3
- package/src/ui/extension/node_modules/@sinonjs/commons/lib/prototypes/throws-on-proto.js +2 -4
- package/src/ui/extension/node_modules/@sinonjs/fake-timers/src/fake-timers-src.js +13 -233
- package/src/ui/extension/node_modules/@sinonjs/samsam/lib/deep-equal-benchmark.js +2 -7
- package/src/ui/extension/node_modules/@sinonjs/samsam/lib/match.js +2 -1
- package/src/ui/extension/node_modules/@sinonjs/text-encoding/lib/encoding.js +4 -4
- package/src/ui/extension/node_modules/@types/mocha/index.d.ts +194 -570
- package/src/ui/extension/node_modules/@types/node/assert.d.ts +2 -2
- package/src/ui/extension/node_modules/@types/node/async_hooks.d.ts +63 -63
- package/src/ui/extension/node_modules/@types/node/child_process.d.ts +60 -60
- package/src/ui/extension/node_modules/@types/node/cluster.d.ts +93 -93
- package/src/ui/extension/node_modules/@types/node/console.d.ts +2 -2
- package/src/ui/extension/node_modules/@types/node/constants.d.ts +2 -3
- package/src/ui/extension/node_modules/@types/node/crypto.d.ts +79 -79
- package/src/ui/extension/node_modules/@types/node/dgram.d.ts +44 -44
- package/src/ui/extension/node_modules/@types/node/diagnostics_channel.d.ts +2 -2
- package/src/ui/extension/node_modules/@types/node/dns/promises.d.ts +25 -25
- package/src/ui/extension/node_modules/@types/node/dom-events.d.ts +2 -12
- package/src/ui/extension/node_modules/@types/node/events.d.ts +3 -12
- package/src/ui/extension/node_modules/@types/node/fs/promises.d.ts +2 -6
- package/src/ui/extension/node_modules/@types/node/fs.d.ts +196 -205
- package/src/ui/extension/node_modules/@types/node/http.d.ts +153 -157
- package/src/ui/extension/node_modules/@types/node/http2.d.ts +535 -535
- package/src/ui/extension/node_modules/@types/node/https.d.ts +100 -100
- package/src/ui/extension/node_modules/@types/node/inspector.d.ts +171 -174
- package/src/ui/extension/node_modules/@types/node/module.d.ts +3 -3
- package/src/ui/extension/node_modules/@types/node/net.d.ts +92 -92
- package/src/ui/extension/node_modules/@types/node/os.d.ts +153 -153
- package/src/ui/extension/node_modules/@types/node/path.d.ts +2 -2
- package/src/ui/extension/node_modules/@types/node/perf_hooks.d.ts +13 -14
- package/src/ui/extension/node_modules/@types/node/process.d.ts +89 -89
- package/src/ui/extension/node_modules/@types/node/punycode.d.ts +3 -3
- package/src/ui/extension/node_modules/@types/node/querystring.d.ts +3 -3
- package/src/ui/extension/node_modules/@types/node/readline.d.ts +57 -58
- package/src/ui/extension/node_modules/@types/node/repl.d.ts +65 -65
- package/src/ui/extension/node_modules/@types/node/stream/web.d.ts +18 -36
- package/src/ui/extension/node_modules/@types/node/stream.d.ts +204 -208
- package/src/ui/extension/node_modules/@types/node/test.d.ts +74 -122
- package/src/ui/extension/node_modules/@types/node/timers/promises.d.ts +2 -2
- package/src/ui/extension/node_modules/@types/node/timers.d.ts +5 -5
- package/src/ui/extension/node_modules/@types/node/tls.d.ts +75 -75
- package/src/ui/extension/node_modules/@types/node/tty.d.ts +14 -14
- package/src/ui/extension/node_modules/@types/node/util.d.ts +29 -58
- package/src/ui/extension/node_modules/@types/node/v8.d.ts +6 -6
- package/src/ui/extension/node_modules/@types/node/worker_threads.d.ts +88 -91
- package/src/ui/extension/node_modules/@types/node/zlib.d.ts +159 -159
- package/src/ui/extension/node_modules/@types/node-fetch/externals.d.ts +5 -11
- package/src/ui/extension/node_modules/@types/node-fetch/index.d.ts +2 -28
- package/src/ui/extension/node_modules/@types/sinon/index.d.ts +13 -88
- package/src/ui/extension/node_modules/@types/sinon-chai/index.d.ts +2 -6
- package/src/ui/extension/node_modules/@types/sinonjs__fake-timers/index.d.ts +4 -55
- package/src/ui/extension/node_modules/@types/vscode/index.d.ts +23 -2250
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/block-spacing.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-dangle.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/func-call-spacing.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js +10 -10
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-around-comment.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-between-class-members.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-delimiter-style.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js +4 -4
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-imports.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-parens.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-semi.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implicit-any-catch.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-parameter-properties.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-throw-literal.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js +3 -32
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/object-curly-spacing.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js +3 -3
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js +3 -3
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js +6 -6
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/quotes.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/semi.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js +3 -3
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-infix-ops.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js +6 -6
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js +3 -3
- package/src/ui/extension/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js +3 -3
- package/src/ui/extension/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js +14 -14
- package/src/ui/extension/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/convert.d.ts +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/node-utils.d.ts +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +6 -6
- package/src/ui/extension/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js +3 -3
- package/src/ui/extension/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/typescript-estree/dist/parser.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/RuleCreator.d.ts +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/Rule.d.ts +3 -3
- package/src/ui/extension/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/RuleTester.d.ts +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/Scope.d.ts +3 -3
- package/src/ui/extension/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/PatternVisitor.d.ts +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Referencer.d.ts +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts +2 -2
- package/src/ui/extension/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/PatternVisitor.d.ts +1 -1
- package/src/ui/extension/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Referencer.d.ts +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/browser/client/apiVersionPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/browser/client/clientHelpers.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/browser/client/sendRequest.js +2 -2
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/browser/client/urlHelpers.js +2 -2
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/browser/fetchHttpClient.js +3 -3
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/browser/logger/debug.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/browser/logger/logger.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/browser/nodeHttpClient.js +7 -7
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/browser/pipeline.d.ts +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/browser/pipeline.js +2 -2
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/browser/policies/agentPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/browser/policies/auth/apiKeyAuthenticationPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/browser/policies/auth/basicAuthenticationPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/browser/policies/auth/bearerAuthenticationPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/browser/policies/auth/oauth2AuthenticationPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/browser/policies/formDataPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/browser/policies/logPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/browser/policies/multipartPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/browser/policies/redirectPolicy.js +2 -2
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/browser/policies/retryPolicy.js +3 -3
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/browser/policies/tlsPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/browser/policies/userAgentPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/browser/util/sha256.common.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/browser/xhrHttpClient.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/apiVersionPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/clientHelpers.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/sendRequest.js +2 -2
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/urlHelpers.js +2 -2
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/commonjs/fetchHttpClient.js +3 -3
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/commonjs/logger/debug.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/commonjs/logger/logger.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/commonjs/nodeHttpClient.js +7 -7
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/commonjs/pipeline.d.ts +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/commonjs/pipeline.js +2 -2
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/agentPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/auth/apiKeyAuthenticationPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/auth/basicAuthenticationPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/auth/bearerAuthenticationPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/auth/oauth2AuthenticationPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/decompressResponsePolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/formDataPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/logPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/multipartPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/proxyPolicy.js +2 -2
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/redirectPolicy.js +2 -2
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/retryPolicy.js +3 -3
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/tlsPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/userAgentPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/sha256.common.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/commonjs/xhrHttpClient.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/esm/client/apiVersionPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/esm/client/clientHelpers.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/esm/client/sendRequest.js +2 -2
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/esm/client/urlHelpers.js +2 -2
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/esm/fetchHttpClient.js +3 -3
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/esm/logger/debug.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/esm/logger/logger.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/esm/nodeHttpClient.js +7 -7
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/esm/pipeline.d.ts +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/esm/pipeline.js +2 -2
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/esm/policies/agentPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/esm/policies/auth/apiKeyAuthenticationPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/esm/policies/auth/basicAuthenticationPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/esm/policies/auth/bearerAuthenticationPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/esm/policies/auth/oauth2AuthenticationPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/esm/policies/decompressResponsePolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/esm/policies/formDataPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/esm/policies/logPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/esm/policies/multipartPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/esm/policies/proxyPolicy.js +2 -2
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/esm/policies/redirectPolicy.js +2 -2
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/esm/policies/retryPolicy.js +3 -3
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/esm/policies/tlsPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/esm/policies/userAgentPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/esm/util/sha256.common.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/esm/xhrHttpClient.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/react-native/client/apiVersionPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/react-native/client/clientHelpers.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/react-native/client/sendRequest.js +2 -2
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/react-native/client/urlHelpers.js +2 -2
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/react-native/fetchHttpClient.js +3 -3
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/react-native/logger/debug.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/react-native/logger/logger.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/react-native/nodeHttpClient.js +7 -7
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/react-native/pipeline.d.ts +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/react-native/pipeline.js +2 -2
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/agentPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/auth/apiKeyAuthenticationPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/auth/basicAuthenticationPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/auth/bearerAuthenticationPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/auth/oauth2AuthenticationPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/decompressResponsePolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/formDataPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/logPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/multipartPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/redirectPolicy.js +2 -2
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/retryPolicy.js +3 -3
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/tlsPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/userAgentPolicy.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/react-native/util/sha256.common.js +1 -1
- package/src/ui/extension/node_modules/@typespec/ts-http-runtime/dist/react-native/xhrHttpClient.js +1 -1
- package/src/ui/extension/node_modules/@ungap/structured-clone/cjs/deserialize.js +2 -9
- package/src/ui/extension/node_modules/@ungap/structured-clone/cjs/serialize.js +2 -21
- package/src/ui/extension/node_modules/@vscode/test-electron/out/download.js +3 -3
- package/src/ui/extension/node_modules/@vscode/test-electron/out/progress.js +2 -2
- package/src/ui/extension/node_modules/@vscode/test-electron/out/request.js +3 -3
- package/src/ui/extension/node_modules/@vscode/test-electron/out/runTest.js +2 -2
- package/src/ui/extension/node_modules/@vscode/test-electron/out/util.js +4 -4
- package/src/ui/extension/node_modules/@vscode/vsce/out/auth.js +1 -1
- package/src/ui/extension/node_modules/@vscode/vsce/out/npm.js +1 -1
- package/src/ui/extension/node_modules/@vscode/vsce/out/package.js +9 -10
- package/src/ui/extension/node_modules/@vscode/vsce/out/publish.js +3 -3
- package/src/ui/extension/node_modules/@vscode/vsce/out/store.js +2 -2
- package/src/ui/extension/node_modules/@vscode/vsce/out/util.js +2 -2
- package/src/ui/extension/node_modules/@vscode/vsce/out/validation.js +1 -1
- package/src/ui/extension/node_modules/@vscode/vsce-sign/src/main.js +1 -29
- package/src/ui/extension/node_modules/@vscode/vsce-sign/src/postinstall.js +1 -22
- package/src/ui/extension/node_modules/@vscode/vsce-sign/src/target.js +3 -24
- package/src/ui/extension/node_modules/acorn/dist/acorn.js +34 -778
- package/src/ui/extension/node_modules/acorn-jsx/index.js +5 -70
- package/src/ui/extension/node_modules/acorn-walk/dist/walk.d.ts +3 -23
- package/src/ui/extension/node_modules/acorn-walk/dist/walk.js +3 -44
- package/src/ui/extension/node_modules/agent-base/dist/index.d.ts +2 -2
- package/src/ui/extension/node_modules/agent-base/dist/index.js +1 -1
- package/src/ui/extension/node_modules/agentkeepalive/index.d.ts +3 -13
- package/src/ui/extension/node_modules/agentkeepalive/lib/agent.js +2 -44
- package/src/ui/extension/node_modules/agentkeepalive/lib/https_agent.js +2 -10
- package/src/ui/extension/node_modules/ajv/dist/ajv.bundle.js +13 -530
- package/src/ui/extension/node_modules/ajv/lib/ajv.js +6 -84
- package/src/ui/extension/node_modules/ajv/lib/compile/async.js +3 -21
- package/src/ui/extension/node_modules/ajv/lib/compile/resolve.js +4 -39
- package/src/ui/extension/node_modules/ansi-colors/types/index.d.ts +48 -71
- package/src/ui/extension/node_modules/append-transform/index.js +3 -21
- package/src/ui/extension/node_modules/argparse/argparse.js +301 -767
- package/src/ui/extension/node_modules/argparse/lib/sub.js +2 -13
- package/src/ui/extension/node_modules/argparse/lib/textwrap.js +5 -51
- package/src/ui/extension/node_modules/assertion-error/index.js +2 -25
- package/src/ui/extension/node_modules/asynckit/lib/async.js +2 -6
- package/src/ui/extension/node_modules/asynckit/lib/iterate.js +3 -12
- package/src/ui/extension/node_modules/asynckit/lib/readable_parallel.js +2 -6
- package/src/ui/extension/node_modules/asynckit/lib/readable_serial.js +2 -6
- package/src/ui/extension/node_modules/asynckit/lib/readable_serial_ordered.js +2 -6
- package/src/ui/extension/node_modules/asynckit/lib/streamify.js +5 -23
- package/src/ui/extension/node_modules/asynckit/lib/terminator.js +2 -7
- package/src/ui/extension/node_modules/asynckit/parallel.js +2 -8
- package/src/ui/extension/node_modules/asynckit/serial.js +2 -4
- package/src/ui/extension/node_modules/asynckit/serialOrdered.js +3 -13
- package/src/ui/extension/node_modules/azure-devops-node-api/AlertApi.js +9 -9
- package/src/ui/extension/node_modules/azure-devops-node-api/BuildApi.js +90 -90
- package/src/ui/extension/node_modules/azure-devops-node-api/CoreApi.js +34 -34
- package/src/ui/extension/node_modules/azure-devops-node-api/DashboardApi.js +14 -14
- package/src/ui/extension/node_modules/azure-devops-node-api/ExtensionManagementApi.js +26 -26
- package/src/ui/extension/node_modules/azure-devops-node-api/FeatureManagementApi.js +10 -10
- package/src/ui/extension/node_modules/azure-devops-node-api/FileContainerApi.js +6 -6
- package/src/ui/extension/node_modules/azure-devops-node-api/FileContainerApiBase.js +5 -5
- package/src/ui/extension/node_modules/azure-devops-node-api/GalleryApi.js +74 -74
- package/src/ui/extension/node_modules/azure-devops-node-api/GalleryCompatHttpClientBase.js +5 -5
- package/src/ui/extension/node_modules/azure-devops-node-api/GitApi.js +138 -138
- package/src/ui/extension/node_modules/azure-devops-node-api/LocationsApi.js +10 -10
- package/src/ui/extension/node_modules/azure-devops-node-api/ManagementApi.js +18 -18
- package/src/ui/extension/node_modules/azure-devops-node-api/NotificationApi.js +25 -25
- package/src/ui/extension/node_modules/azure-devops-node-api/PolicyApi.js +13 -13
- package/src/ui/extension/node_modules/azure-devops-node-api/ProfileApi.js +18 -18
- package/src/ui/extension/node_modules/azure-devops-node-api/ProjectAnalysisApi.js +5 -5
- package/src/ui/extension/node_modules/azure-devops-node-api/ReleaseApi.js +79 -79
- package/src/ui/extension/node_modules/azure-devops-node-api/SecurityRolesApi.js +7 -7
- package/src/ui/extension/node_modules/azure-devops-node-api/TaskAgentApi.js +2 -2
- package/src/ui/extension/node_modules/azure-devops-node-api/TaskAgentApiBase.js +152 -152
- package/src/ui/extension/node_modules/azure-devops-node-api/TaskApi.js +25 -25
- package/src/ui/extension/node_modules/azure-devops-node-api/TestApi.js +71 -71
- package/src/ui/extension/node_modules/azure-devops-node-api/TestPlanApi.js +42 -42
- package/src/ui/extension/node_modules/azure-devops-node-api/TestResultsApi.js +91 -91
- package/src/ui/extension/node_modules/azure-devops-node-api/TfvcApi.js +21 -21
- package/src/ui/extension/node_modules/azure-devops-node-api/VsoClient.js +7 -7
- package/src/ui/extension/node_modules/azure-devops-node-api/WebApi.js +3 -3
- package/src/ui/extension/node_modules/azure-devops-node-api/WikiApi.js +18 -18
- package/src/ui/extension/node_modules/azure-devops-node-api/WorkApi.js +58 -58
- package/src/ui/extension/node_modules/azure-devops-node-api/WorkItemTrackingApi.js +87 -87
- package/src/ui/extension/node_modules/azure-devops-node-api/WorkItemTrackingProcessApi.js +58 -58
- package/src/ui/extension/node_modules/azure-devops-node-api/WorkItemTrackingProcessDefinitionsApi.js +47 -47
- package/src/ui/extension/node_modules/azure-devops-node-api/interfaces/common/VsoBaseInterfaces.d.ts +2 -2
- package/src/ui/extension/node_modules/azure-devops-node-api/opensource/node-http-ntlm/ntlm.js +2 -2
- package/src/ui/extension/node_modules/bl/bl.js +4 -23
- package/src/ui/extension/node_modules/bl/node_modules/readable-stream/errors.js +3 -18
- package/src/ui/extension/node_modules/bl/node_modules/readable-stream/lib/_stream_readable.js +1 -71
- package/src/ui/extension/node_modules/bl/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +2 -4
- package/src/ui/extension/node_modules/bl/node_modules/readable-stream/lib/internal/streams/from.js +2 -3
- package/src/ui/extension/node_modules/bl/node_modules/readable-stream/lib/internal/streams/pipeline.js +2 -5
- package/src/ui/extension/node_modules/braces/lib/parse.js +10 -76
- package/src/ui/extension/node_modules/browserslist/browser.js +2 -16
- package/src/ui/extension/node_modules/browserslist/index.d.ts +9 -36
- package/src/ui/extension/node_modules/browserslist/index.js +43 -112
- package/src/ui/extension/node_modules/browserslist/node.js +2 -54
- package/src/ui/extension/node_modules/caching-transform/index.js +3 -19
- package/src/ui/extension/node_modules/call-bind-apply-helpers/index.d.ts +4 -11
- package/src/ui/extension/node_modules/call-bound/index.d.ts +3 -15
- package/src/ui/extension/node_modules/chai/chai.js +5 -1145
- package/src/ui/extension/node_modules/chai/lib/chai/core/assertions.js +2 -1
- package/src/ui/extension/node_modules/chai-as-promised/lib/chai-as-promised.js +4 -70
- package/src/ui/extension/node_modules/chalk/templates.js +3 -25
- package/src/ui/extension/node_modules/cheerio/dist/browser/api/css.js +1 -1
- package/src/ui/extension/node_modules/cheerio/dist/browser/api/manipulation.js +2 -2
- package/src/ui/extension/node_modules/cheerio/dist/browser/api/traversing.js +3 -3
- package/src/ui/extension/node_modules/cheerio/dist/browser/cheerio.d.ts +1 -1
- package/src/ui/extension/node_modules/cheerio/dist/browser/load-parse.js +1 -1
- package/src/ui/extension/node_modules/cheerio/dist/browser/load.js +3 -3
- package/src/ui/extension/node_modules/cheerio/dist/browser/parse.d.ts +1 -1
- package/src/ui/extension/node_modules/cheerio/dist/browser/parse.js +1 -1
- package/src/ui/extension/node_modules/cheerio/dist/browser/parsers/parse5-adapter.d.ts +1 -1
- package/src/ui/extension/node_modules/cheerio/dist/browser/parsers/parse5-adapter.js +1 -1
- package/src/ui/extension/node_modules/cheerio/dist/browser/static.js +2 -2
- package/src/ui/extension/node_modules/cheerio/dist/commonjs/api/css.js +1 -1
- package/src/ui/extension/node_modules/cheerio/dist/commonjs/api/manipulation.js +2 -2
- package/src/ui/extension/node_modules/cheerio/dist/commonjs/api/traversing.js +3 -3
- package/src/ui/extension/node_modules/cheerio/dist/commonjs/cheerio.d.ts +1 -1
- package/src/ui/extension/node_modules/cheerio/dist/commonjs/index.js +3 -3
- package/src/ui/extension/node_modules/cheerio/dist/commonjs/load-parse.js +1 -1
- package/src/ui/extension/node_modules/cheerio/dist/commonjs/load.js +3 -3
- package/src/ui/extension/node_modules/cheerio/dist/commonjs/parse.d.ts +1 -1
- package/src/ui/extension/node_modules/cheerio/dist/commonjs/parse.js +1 -1
- package/src/ui/extension/node_modules/cheerio/dist/commonjs/parsers/parse5-adapter.d.ts +1 -1
- package/src/ui/extension/node_modules/cheerio/dist/commonjs/parsers/parse5-adapter.js +1 -1
- package/src/ui/extension/node_modules/cheerio/dist/commonjs/static.js +2 -2
- package/src/ui/extension/node_modules/cheerio/dist/esm/api/css.js +1 -1
- package/src/ui/extension/node_modules/cheerio/dist/esm/api/manipulation.js +2 -2
- package/src/ui/extension/node_modules/cheerio/dist/esm/api/traversing.js +3 -3
- package/src/ui/extension/node_modules/cheerio/dist/esm/cheerio.d.ts +1 -1
- package/src/ui/extension/node_modules/cheerio/dist/esm/index.js +3 -3
- package/src/ui/extension/node_modules/cheerio/dist/esm/load-parse.js +1 -1
- package/src/ui/extension/node_modules/cheerio/dist/esm/load.js +3 -3
- package/src/ui/extension/node_modules/cheerio/dist/esm/parse.d.ts +1 -1
- package/src/ui/extension/node_modules/cheerio/dist/esm/parse.js +1 -1
- package/src/ui/extension/node_modules/cheerio/dist/esm/parsers/parse5-adapter.d.ts +1 -1
- package/src/ui/extension/node_modules/cheerio/dist/esm/parsers/parse5-adapter.js +1 -1
- package/src/ui/extension/node_modules/cheerio/dist/esm/static.js +2 -2
- package/src/ui/extension/node_modules/cheerio/src/__tests__/deprecated.spec.ts +2 -31
- package/src/ui/extension/node_modules/cheerio/src/api/attributes.spec.ts +11 -202
- package/src/ui/extension/node_modules/cheerio/src/api/css.spec.ts +2 -21
- package/src/ui/extension/node_modules/cheerio/src/api/css.ts +2 -18
- package/src/ui/extension/node_modules/cheerio/src/api/forms.spec.ts +2 -20
- package/src/ui/extension/node_modules/cheerio/src/api/manipulation.spec.ts +6 -364
- package/src/ui/extension/node_modules/cheerio/src/api/manipulation.ts +3 -110
- package/src/ui/extension/node_modules/cheerio/src/api/traversing.spec.ts +8 -263
- package/src/ui/extension/node_modules/cheerio/src/api/traversing.ts +3 -73
- package/src/ui/extension/node_modules/cheerio/src/index.spec.ts +6 -50
- package/src/ui/extension/node_modules/cheerio/src/index.ts +5 -38
- package/src/ui/extension/node_modules/cheerio/src/load-parse.ts +2 -4
- package/src/ui/extension/node_modules/cheerio/src/parse.spec.ts +2 -72
- package/src/ui/extension/node_modules/cheerio/src/static.spec.ts +4 -59
- package/src/ui/extension/node_modules/cheerio/src/static.ts +2 -29
- package/src/ui/extension/node_modules/cheerio/src/utils.ts +2 -11
- package/src/ui/extension/node_modules/cheerio-select/lib/esm/index.js +1 -1
- package/src/ui/extension/node_modules/chokidar/index.js +12 -136
- package/src/ui/extension/node_modules/chokidar/lib/fsevents-handler.js +14 -76
- package/src/ui/extension/node_modules/chokidar/lib/nodefs-handler.js +12 -82
- package/src/ui/extension/node_modules/chokidar/types/index.d.ts +8 -42
- package/src/ui/extension/node_modules/chownr/chownr.js +2 -23
- package/src/ui/extension/node_modules/cliui/build/lib/index.js +3 -3
- package/src/ui/extension/node_modules/cockatiel/dist/CircuitBreakerPolicy.js +3 -2
- package/src/ui/extension/node_modules/cockatiel/dist/Policy.d.ts +3 -3
- package/src/ui/extension/node_modules/cockatiel/dist/Policy.js +2 -2
- package/src/ui/extension/node_modules/cockatiel/dist/RetryPolicy.js +2 -2
- package/src/ui/extension/node_modules/cockatiel/dist/backoff/Backoff.d.ts +2 -2
- package/src/ui/extension/node_modules/cockatiel/dist/backoff/DelegateBackoff.d.ts +3 -3
- package/src/ui/extension/node_modules/cockatiel/dist/backoff/DelegateBackoff.js +2 -2
- package/src/ui/extension/node_modules/cockatiel/dist/common/Event.d.ts +3 -3
- package/src/ui/extension/node_modules/cockatiel/dist/common/Event.js +3 -3
- package/src/ui/extension/node_modules/cockatiel/dist/common/defer.d.ts +2 -2
- package/src/ui/extension/node_modules/cockatiel/dist/common/defer.js +2 -2
- package/src/ui/extension/node_modules/cockatiel/dist/esm/CircuitBreakerPolicy.js +3 -2
- package/src/ui/extension/node_modules/cockatiel/dist/esm/Policy.d.ts +3 -3
- package/src/ui/extension/node_modules/cockatiel/dist/esm/Policy.js +2 -2
- package/src/ui/extension/node_modules/cockatiel/dist/esm/RetryPolicy.js +2 -2
- package/src/ui/extension/node_modules/cockatiel/dist/esm/backoff/Backoff.d.ts +2 -2
- package/src/ui/extension/node_modules/cockatiel/dist/esm/backoff/DelegateBackoff.d.ts +3 -3
- package/src/ui/extension/node_modules/cockatiel/dist/esm/backoff/DelegateBackoff.js +2 -2
- package/src/ui/extension/node_modules/cockatiel/dist/esm/common/Event.d.ts +3 -3
- package/src/ui/extension/node_modules/cockatiel/dist/esm/common/Event.js +3 -3
- package/src/ui/extension/node_modules/cockatiel/dist/esm/common/defer.d.ts +2 -2
- package/src/ui/extension/node_modules/cockatiel/dist/esm/common/defer.js +2 -2
- package/src/ui/extension/node_modules/commander/index.js +9 -223
- package/src/ui/extension/node_modules/commander/typings/index.d.ts +2 -42
- package/src/ui/extension/node_modules/cross-spawn/lib/util/readShebang.js +2 -8
- package/src/ui/extension/node_modules/cross-spawn/lib/util/resolveCommand.js +2 -11
- package/src/ui/extension/node_modules/css-select/lib/attributes.d.ts +1 -1
- package/src/ui/extension/node_modules/css-select/lib/attributes.js +8 -8
- package/src/ui/extension/node_modules/css-select/lib/compile.js +5 -5
- package/src/ui/extension/node_modules/css-select/lib/esm/attributes.d.ts +1 -1
- package/src/ui/extension/node_modules/css-select/lib/esm/attributes.js +8 -8
- package/src/ui/extension/node_modules/css-select/lib/esm/compile.js +6 -6
- package/src/ui/extension/node_modules/css-select/lib/esm/general.js +2 -2
- package/src/ui/extension/node_modules/css-select/lib/esm/index.js +1 -1
- package/src/ui/extension/node_modules/css-select/lib/esm/pseudo-selectors/filters.d.ts +1 -1
- package/src/ui/extension/node_modules/css-select/lib/esm/pseudo-selectors/filters.js +6 -6
- package/src/ui/extension/node_modules/css-select/lib/esm/pseudo-selectors/index.js +1 -1
- package/src/ui/extension/node_modules/css-select/lib/esm/pseudo-selectors/subselects.d.ts +1 -1
- package/src/ui/extension/node_modules/css-select/lib/esm/pseudo-selectors/subselects.js +4 -4
- package/src/ui/extension/node_modules/css-select/lib/general.js +1 -1
- package/src/ui/extension/node_modules/css-select/lib/index.js +1 -1
- package/src/ui/extension/node_modules/css-select/lib/pseudo-selectors/filters.d.ts +1 -1
- package/src/ui/extension/node_modules/css-select/lib/pseudo-selectors/filters.js +10 -10
- package/src/ui/extension/node_modules/css-select/lib/pseudo-selectors/index.js +1 -1
- package/src/ui/extension/node_modules/css-select/lib/pseudo-selectors/subselects.d.ts +1 -1
- package/src/ui/extension/node_modules/css-select/lib/pseudo-selectors/subselects.js +4 -4
- package/src/ui/extension/node_modules/css-what/lib/es/parse.js +3 -3
- package/src/ui/extension/node_modules/debug/src/browser.js +7 -34
- package/src/ui/extension/node_modules/debug/src/common.js +4 -46
- package/src/ui/extension/node_modules/debug/src/node.js +2 -34
- package/src/ui/extension/node_modules/decompress-response/index.js +4 -18
- package/src/ui/extension/node_modules/default-require-extensions/json.js +2 -4
- package/src/ui/extension/node_modules/detect-libc/lib/detect-libc.js +3 -30
- package/src/ui/extension/node_modules/diff/dist/diff.js +8 -330
- package/src/ui/extension/node_modules/diff/lib/diff/array.js +2 -10
- package/src/ui/extension/node_modules/diff/lib/diff/base.js +3 -68
- package/src/ui/extension/node_modules/diff/lib/diff/css.js +2 -9
- package/src/ui/extension/node_modules/diff/lib/diff/line.js +3 -20
- package/src/ui/extension/node_modules/diff/lib/diff/sentence.js +2 -9
- package/src/ui/extension/node_modules/diff/lib/index.es6.js +8 -327
- package/src/ui/extension/node_modules/doctrine/lib/doctrine.js +2 -123
- package/src/ui/extension/node_modules/domhandler/lib/esm/index.d.ts +3 -3
- package/src/ui/extension/node_modules/domhandler/lib/esm/index.js +5 -5
- package/src/ui/extension/node_modules/domhandler/lib/esm/node.js +3 -3
- package/src/ui/extension/node_modules/domhandler/lib/index.d.ts +3 -3
- package/src/ui/extension/node_modules/domhandler/lib/index.js +5 -5
- package/src/ui/extension/node_modules/domhandler/lib/node.js +2 -2
- package/src/ui/extension/node_modules/domutils/lib/esm/manipulation.d.ts +1 -1
- package/src/ui/extension/node_modules/domutils/lib/esm/manipulation.js +2 -2
- package/src/ui/extension/node_modules/domutils/lib/manipulation.d.ts +1 -1
- package/src/ui/extension/node_modules/domutils/lib/manipulation.js +2 -2
- package/src/ui/extension/node_modules/encoding-sniffer/dist/commonjs/index.d.ts +2 -2
- package/src/ui/extension/node_modules/encoding-sniffer/dist/commonjs/index.js +2 -2
- package/src/ui/extension/node_modules/encoding-sniffer/dist/esm/index.d.ts +2 -2
- package/src/ui/extension/node_modules/encoding-sniffer/dist/esm/index.js +2 -2
- package/src/ui/extension/node_modules/end-of-stream/index.js +2 -21
- package/src/ui/extension/node_modules/entities/lib/esm/encode.js +1 -1
- package/src/ui/extension/node_modules/entities/lib/esm/escape.js +2 -2
- package/src/ui/extension/node_modules/escalade/dist/index.js +2 -6
- package/src/ui/extension/node_modules/escalade/sync/index.js +2 -5
- package/src/ui/extension/node_modules/eslint/bin/eslint.js +3 -33
- package/src/ui/extension/node_modules/eslint/lib/cli-engine/cli-engine.js +13 -152
- package/src/ui/extension/node_modules/eslint/lib/cli-engine/file-enumerator.js +6 -76
- package/src/ui/extension/node_modules/eslint/lib/cli-engine/formatters/html.js +4 -47
- package/src/ui/extension/node_modules/eslint/lib/cli-engine/formatters/stylish.js +2 -19
- package/src/ui/extension/node_modules/eslint/lib/cli.js +7 -81
- package/src/ui/extension/node_modules/eslint/lib/config/flat-config-array.js +6 -80
- package/src/ui/extension/node_modules/eslint/lib/config/flat-config-helpers.js +2 -24
- package/src/ui/extension/node_modules/eslint/lib/config/rule-validator.js +2 -36
- package/src/ui/extension/node_modules/eslint/lib/eslint/eslint-helpers.js +6 -140
- package/src/ui/extension/node_modules/eslint/lib/eslint/eslint.js +5 -83
- package/src/ui/extension/node_modules/eslint/lib/eslint/flat-eslint.js +16 -204
- package/src/ui/extension/node_modules/eslint/lib/linter/apply-disable-directives.js +3 -69
- package/src/ui/extension/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js +2 -128
- package/src/ui/extension/node_modules/eslint/lib/linter/code-path-analysis/code-path-segment.js +2 -41
- package/src/ui/extension/node_modules/eslint/lib/linter/code-path-analysis/code-path-state.js +9 -342
- package/src/ui/extension/node_modules/eslint/lib/linter/code-path-analysis/code-path.js +4 -49
- package/src/ui/extension/node_modules/eslint/lib/linter/code-path-analysis/fork-context.js +3 -46
- package/src/ui/extension/node_modules/eslint/lib/linter/linter.js +11 -305
- package/src/ui/extension/node_modules/eslint/lib/linter/report-translator.js +2 -56
- package/src/ui/extension/node_modules/eslint/lib/options.js +8 -31
- package/src/ui/extension/node_modules/eslint/lib/rule-tester/flat-rule-tester.js +6 -170
- package/src/ui/extension/node_modules/eslint/lib/rule-tester/rule-tester.js +4 -162
- package/src/ui/extension/node_modules/eslint/lib/rules/accessor-pairs.js +2 -48
- package/src/ui/extension/node_modules/eslint/lib/rules/array-bracket-newline.js +2 -32
- package/src/ui/extension/node_modules/eslint/lib/rules/array-bracket-spacing.js +2 -28
- package/src/ui/extension/node_modules/eslint/lib/rules/array-callback-return.js +2 -74
- package/src/ui/extension/node_modules/eslint/lib/rules/array-element-newline.js +4 -50
- package/src/ui/extension/node_modules/eslint/lib/rules/arrow-body-style.js +3 -40
- package/src/ui/extension/node_modules/eslint/lib/rules/arrow-parens.js +2 -27
- package/src/ui/extension/node_modules/eslint/lib/rules/arrow-spacing.js +2 -27
- package/src/ui/extension/node_modules/eslint/lib/rules/block-scoped-var.js +2 -23
- package/src/ui/extension/node_modules/eslint/lib/rules/block-spacing.js +2 -26
- package/src/ui/extension/node_modules/eslint/lib/rules/brace-style.js +2 -29
- package/src/ui/extension/node_modules/eslint/lib/rules/callback-return.js +2 -40
- package/src/ui/extension/node_modules/eslint/lib/rules/camelcase.js +2 -50
- package/src/ui/extension/node_modules/eslint/lib/rules/capitalized-comments.js +2 -48
- package/src/ui/extension/node_modules/eslint/lib/rules/class-methods-use-this.js +2 -25
- package/src/ui/extension/node_modules/eslint/lib/rules/comma-dangle.js +2 -45
- package/src/ui/extension/node_modules/eslint/lib/rules/comma-spacing.js +4 -36
- package/src/ui/extension/node_modules/eslint/lib/rules/comma-style.js +2 -44
- package/src/ui/extension/node_modules/eslint/lib/rules/complexity.js +3 -29
- package/src/ui/extension/node_modules/eslint/lib/rules/computed-property-spacing.js +2 -27
- package/src/ui/extension/node_modules/eslint/lib/rules/consistent-return.js +3 -36
- package/src/ui/extension/node_modules/eslint/lib/rules/consistent-this.js +2 -24
- package/src/ui/extension/node_modules/eslint/lib/rules/constructor-super.js +2 -74
- package/src/ui/extension/node_modules/eslint/lib/rules/curly.js +2 -70
- package/src/ui/extension/node_modules/eslint/lib/rules/default-case-last.js +2 -11
- package/src/ui/extension/node_modules/eslint/lib/rules/default-case.js +3 -24
- package/src/ui/extension/node_modules/eslint/lib/rules/default-param-last.js +2 -13
- package/src/ui/extension/node_modules/eslint/lib/rules/dot-location.js +2 -20
- package/src/ui/extension/node_modules/eslint/lib/rules/dot-notation.js +3 -25
- package/src/ui/extension/node_modules/eslint/lib/rules/eol-last.js +2 -19
- package/src/ui/extension/node_modules/eslint/lib/rules/eqeqeq.js +2 -26
- package/src/ui/extension/node_modules/eslint/lib/rules/for-direction.js +3 -24
- package/src/ui/extension/node_modules/eslint/lib/rules/func-call-spacing.js +2 -29
- package/src/ui/extension/node_modules/eslint/lib/rules/func-name-matching.js +3 -33
- package/src/ui/extension/node_modules/eslint/lib/rules/func-names.js +2 -27
- package/src/ui/extension/node_modules/eslint/lib/rules/func-style.js +2 -19
- package/src/ui/extension/node_modules/eslint/lib/rules/function-call-argument-newline.js +2 -20
- package/src/ui/extension/node_modules/eslint/lib/rules/function-paren-newline.js +4 -43
- package/src/ui/extension/node_modules/eslint/lib/rules/generator-star-spacing.js +2 -30
- package/src/ui/extension/node_modules/eslint/lib/rules/getter-return.js +2 -34
- package/src/ui/extension/node_modules/eslint/lib/rules/global-require.js +2 -19
- package/src/ui/extension/node_modules/eslint/lib/rules/grouped-accessor-pairs.js +2 -35
- package/src/ui/extension/node_modules/eslint/lib/rules/guard-for-in.js +2 -19
- package/src/ui/extension/node_modules/eslint/lib/rules/handle-callback-err.js +2 -20
- package/src/ui/extension/node_modules/eslint/lib/rules/id-blacklist.js +3 -35
- package/src/ui/extension/node_modules/eslint/lib/rules/id-denylist.js +3 -32
- package/src/ui/extension/node_modules/eslint/lib/rules/id-length.js +2 -25
- package/src/ui/extension/node_modules/eslint/lib/rules/id-match.js +3 -55
- package/src/ui/extension/node_modules/eslint/lib/rules/implicit-arrow-linebreak.js +2 -13
- package/src/ui/extension/node_modules/eslint/lib/rules/indent-legacy.js +8 -180
- package/src/ui/extension/node_modules/eslint/lib/rules/indent.js +7 -258
- package/src/ui/extension/node_modules/eslint/lib/rules/init-declarations.js +2 -20
- package/src/ui/extension/node_modules/eslint/lib/rules/jsx-quotes.js +2 -16
- package/src/ui/extension/node_modules/eslint/lib/rules/key-spacing.js +4 -80
- package/src/ui/extension/node_modules/eslint/lib/rules/keyword-spacing.js +2 -84
- package/src/ui/extension/node_modules/eslint/lib/rules/line-comment-position.js +3 -20
- package/src/ui/extension/node_modules/eslint/lib/rules/linebreak-style.js +3 -20
- package/src/ui/extension/node_modules/eslint/lib/rules/lines-around-comment.js +2 -61
- package/src/ui/extension/node_modules/eslint/lib/rules/lines-around-directive.js +2 -30
- package/src/ui/extension/node_modules/eslint/lib/rules/lines-between-class-members.js +2 -32
- package/src/ui/extension/node_modules/eslint/lib/rules/logical-assignment-operators.js +2 -81
- package/src/ui/extension/node_modules/eslint/lib/rules/max-classes-per-file.js +2 -11
- package/src/ui/extension/node_modules/eslint/lib/rules/max-depth.js +2 -22
- package/src/ui/extension/node_modules/eslint/lib/rules/max-len.js +3 -69
- package/src/ui/extension/node_modules/eslint/lib/rules/max-lines-per-function.js +2 -32
- package/src/ui/extension/node_modules/eslint/lib/rules/max-lines.js +3 -31
- package/src/ui/extension/node_modules/eslint/lib/rules/max-nested-callbacks.js +2 -21
- package/src/ui/extension/node_modules/eslint/lib/rules/max-params.js +2 -14
- package/src/ui/extension/node_modules/eslint/lib/rules/max-statements-per-line.js +2 -24
- package/src/ui/extension/node_modules/eslint/lib/rules/max-statements.js +2 -28
- package/src/ui/extension/node_modules/eslint/lib/rules/multiline-comment-style.js +3 -71
- package/src/ui/extension/node_modules/eslint/lib/rules/multiline-ternary.js +2 -24
- package/src/ui/extension/node_modules/eslint/lib/rules/new-cap.js +2 -51
- package/src/ui/extension/node_modules/eslint/lib/rules/new-parens.js +2 -16
- package/src/ui/extension/node_modules/eslint/lib/rules/newline-after-var.js +2 -43
- package/src/ui/extension/node_modules/eslint/lib/rules/newline-before-return.js +3 -35
- package/src/ui/extension/node_modules/eslint/lib/rules/newline-per-chained-call.js +2 -21
- package/src/ui/extension/node_modules/eslint/lib/rules/no-alert.js +3 -25
- package/src/ui/extension/node_modules/eslint/lib/rules/no-array-constructor.js +5 -28
- package/src/ui/extension/node_modules/eslint/lib/rules/no-async-promise-executor.js +2 -7
- package/src/ui/extension/node_modules/eslint/lib/rules/no-await-in-loop.js +2 -17
- package/src/ui/extension/node_modules/eslint/lib/rules/no-bitwise.js +2 -17
- package/src/ui/extension/node_modules/eslint/lib/rules/no-buffer-constructor.js +2 -12
- package/src/ui/extension/node_modules/eslint/lib/rules/no-caller.js +2 -14
- package/src/ui/extension/node_modules/eslint/lib/rules/no-case-declarations.js +2 -12
- package/src/ui/extension/node_modules/eslint/lib/rules/no-catch-shadow.js +2 -21
- package/src/ui/extension/node_modules/eslint/lib/rules/no-class-assign.js +2 -16
- package/src/ui/extension/node_modules/eslint/lib/rules/no-compare-neg-zero.js +2 -11
- package/src/ui/extension/node_modules/eslint/lib/rules/no-cond-assign.js +2 -30
- package/src/ui/extension/node_modules/eslint/lib/rules/no-confusing-arrow.js +2 -18
- package/src/ui/extension/node_modules/eslint/lib/rules/no-console.js +2 -28
- package/src/ui/extension/node_modules/eslint/lib/rules/no-const-assign.js +2 -14
- package/src/ui/extension/node_modules/eslint/lib/rules/no-constant-binary-expression.js +2 -48
- package/src/ui/extension/node_modules/eslint/lib/rules/no-constant-condition.js +2 -22
- package/src/ui/extension/node_modules/eslint/lib/rules/no-constructor-return.js +2 -13
- package/src/ui/extension/node_modules/eslint/lib/rules/no-continue.js +2 -11
- package/src/ui/extension/node_modules/eslint/lib/rules/no-control-regex.js +2 -24
- package/src/ui/extension/node_modules/eslint/lib/rules/no-debugger.js +2 -11
- package/src/ui/extension/node_modules/eslint/lib/rules/no-delete-var.js +2 -12
- package/src/ui/extension/node_modules/eslint/lib/rules/no-div-regex.js +2 -14
- package/src/ui/extension/node_modules/eslint/lib/rules/no-dupe-args.js +2 -19
- package/src/ui/extension/node_modules/eslint/lib/rules/no-dupe-class-members.js +2 -22
- package/src/ui/extension/node_modules/eslint/lib/rules/no-dupe-else-if.js +2 -24
- package/src/ui/extension/node_modules/eslint/lib/rules/no-dupe-keys.js +2 -27
- package/src/ui/extension/node_modules/eslint/lib/rules/no-duplicate-case.js +2 -15
- package/src/ui/extension/node_modules/eslint/lib/rules/no-duplicate-imports.js +3 -30
- package/src/ui/extension/node_modules/eslint/lib/rules/no-else-return.js +4 -78
- package/src/ui/extension/node_modules/eslint/lib/rules/no-empty-character-class.js +3 -20
- package/src/ui/extension/node_modules/eslint/lib/rules/no-empty-function.js +2 -24
- package/src/ui/extension/node_modules/eslint/lib/rules/no-empty-pattern.js +2 -13
- package/src/ui/extension/node_modules/eslint/lib/rules/no-empty-static-block.js +2 -10
- package/src/ui/extension/node_modules/eslint/lib/rules/no-empty.js +2 -21
- package/src/ui/extension/node_modules/eslint/lib/rules/no-eq-null.js +2 -13
- package/src/ui/extension/node_modules/eslint/lib/rules/no-eval.js +2 -47
- package/src/ui/extension/node_modules/eslint/lib/rules/no-ex-assign.js +2 -14
- package/src/ui/extension/node_modules/eslint/lib/rules/no-extend-native.js +2 -26
- package/src/ui/extension/node_modules/eslint/lib/rules/no-extra-bind.js +2 -32
- package/src/ui/extension/node_modules/eslint/lib/rules/no-extra-boolean-cast.js +2 -59
- package/src/ui/extension/node_modules/eslint/lib/rules/no-extra-label.js +2 -21
- package/src/ui/extension/node_modules/eslint/lib/rules/no-extra-parens.js +4 -202
- package/src/ui/extension/node_modules/eslint/lib/rules/no-extra-semi.js +2 -23
- package/src/ui/extension/node_modules/eslint/lib/rules/no-fallthrough.js +3 -36
- package/src/ui/extension/node_modules/eslint/lib/rules/no-floating-decimal.js +2 -14
- package/src/ui/extension/node_modules/eslint/lib/rules/no-func-assign.js +2 -15
- package/src/ui/extension/node_modules/eslint/lib/rules/no-global-assign.js +2 -15
- package/src/ui/extension/node_modules/eslint/lib/rules/no-implicit-coercion.js +4 -61
- package/src/ui/extension/node_modules/eslint/lib/rules/no-implicit-globals.js +3 -28
- package/src/ui/extension/node_modules/eslint/lib/rules/no-implied-eval.js +2 -26
- package/src/ui/extension/node_modules/eslint/lib/rules/no-import-assign.js +2 -34
- package/src/ui/extension/node_modules/eslint/lib/rules/no-inline-comments.js +3 -21
- package/src/ui/extension/node_modules/eslint/lib/rules/no-inner-declarations.js +2 -27
- package/src/ui/extension/node_modules/eslint/lib/rules/no-invalid-regexp.js +2 -31
- package/src/ui/extension/node_modules/eslint/lib/rules/no-invalid-this.js +2 -25
- package/src/ui/extension/node_modules/eslint/lib/rules/no-irregular-whitespace.js +3 -40
- package/src/ui/extension/node_modules/eslint/lib/rules/no-iterator.js +2 -15
- package/src/ui/extension/node_modules/eslint/lib/rules/no-label-var.js +2 -20
- package/src/ui/extension/node_modules/eslint/lib/rules/no-labels.js +2 -22
- package/src/ui/extension/node_modules/eslint/lib/rules/no-lone-blocks.js +3 -24
- package/src/ui/extension/node_modules/eslint/lib/rules/no-lonely-if.js +2 -16
- package/src/ui/extension/node_modules/eslint/lib/rules/no-loop-func.js +2 -36
- package/src/ui/extension/node_modules/eslint/lib/rules/no-loss-of-precision.js +2 -33
- package/src/ui/extension/node_modules/eslint/lib/rules/no-magic-numbers.js +5 -32
- package/src/ui/extension/node_modules/eslint/lib/rules/no-misleading-character-class.js +4 -50
- package/src/ui/extension/node_modules/eslint/lib/rules/no-mixed-operators.js +2 -26
- package/src/ui/extension/node_modules/eslint/lib/rules/no-mixed-requires.js +2 -48
- package/src/ui/extension/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js +3 -22
- package/src/ui/extension/node_modules/eslint/lib/rules/no-multi-assign.js +2 -14
- package/src/ui/extension/node_modules/eslint/lib/rules/no-multi-spaces.js +3 -24
- package/src/ui/extension/node_modules/eslint/lib/rules/no-multi-str.js +2 -16
- package/src/ui/extension/node_modules/eslint/lib/rules/no-multiple-empty-lines.js +3 -25
- package/src/ui/extension/node_modules/eslint/lib/rules/no-native-reassign.js +2 -17
- package/src/ui/extension/node_modules/eslint/lib/rules/no-negated-condition.js +2 -14
- package/src/ui/extension/node_modules/eslint/lib/rules/no-negated-in-lhs.js +2 -13
- package/src/ui/extension/node_modules/eslint/lib/rules/no-nested-ternary.js +2 -10
- package/src/ui/extension/node_modules/eslint/lib/rules/no-new-func.js +3 -20
- package/src/ui/extension/node_modules/eslint/lib/rules/no-new-native-nonconstructor.js +2 -17
- package/src/ui/extension/node_modules/eslint/lib/rules/no-new-object.js +2 -17
- package/src/ui/extension/node_modules/eslint/lib/rules/no-new-require.js +2 -14
- package/src/ui/extension/node_modules/eslint/lib/rules/no-new-symbol.js +2 -14
- package/src/ui/extension/node_modules/eslint/lib/rules/no-new-wrappers.js +2 -16
- package/src/ui/extension/node_modules/eslint/lib/rules/no-new.js +2 -11
- package/src/ui/extension/node_modules/eslint/lib/rules/no-nonoctal-decimal-escape.js +3 -24
- package/src/ui/extension/node_modules/eslint/lib/rules/no-obj-calls.js +2 -19
- package/src/ui/extension/node_modules/eslint/lib/rules/no-object-constructor.js +5 -27
- package/src/ui/extension/node_modules/eslint/lib/rules/no-octal-escape.js +2 -15
- package/src/ui/extension/node_modules/eslint/lib/rules/no-octal.js +2 -12
- package/src/ui/extension/node_modules/eslint/lib/rules/no-param-reassign.js +2 -34
- package/src/ui/extension/node_modules/eslint/lib/rules/no-path-concat.js +2 -19
- package/src/ui/extension/node_modules/eslint/lib/rules/no-plusplus.js +2 -22
- package/src/ui/extension/node_modules/eslint/lib/rules/no-process-env.js +2 -16
- package/src/ui/extension/node_modules/eslint/lib/rules/no-process-exit.js +2 -13
- package/src/ui/extension/node_modules/eslint/lib/rules/no-promise-executor-return.js +3 -51
- package/src/ui/extension/node_modules/eslint/lib/rules/no-proto.js +2 -14
- package/src/ui/extension/node_modules/eslint/lib/rules/no-prototype-builtins.js +3 -30
- package/src/ui/extension/node_modules/eslint/lib/rules/no-redeclare.js +3 -29
- package/src/ui/extension/node_modules/eslint/lib/rules/no-regex-spaces.js +5 -38
- package/src/ui/extension/node_modules/eslint/lib/rules/no-restricted-exports.js +2 -27
- package/src/ui/extension/node_modules/eslint/lib/rules/no-restricted-globals.js +2 -19
- package/src/ui/extension/node_modules/eslint/lib/rules/no-restricted-imports.js +3 -46
- package/src/ui/extension/node_modules/eslint/lib/rules/no-restricted-modules.js +2 -33
- package/src/ui/extension/node_modules/eslint/lib/rules/no-restricted-properties.js +2 -22
- package/src/ui/extension/node_modules/eslint/lib/rules/no-restricted-syntax.js +2 -11
- package/src/ui/extension/node_modules/eslint/lib/rules/no-return-assign.js +2 -16
- package/src/ui/extension/node_modules/eslint/lib/rules/no-return-await.js +2 -26
- package/src/ui/extension/node_modules/eslint/lib/rules/no-script-url.js +2 -12
- package/src/ui/extension/node_modules/eslint/lib/rules/no-self-assign.js +2 -26
- package/src/ui/extension/node_modules/eslint/lib/rules/no-self-compare.js +2 -15
- package/src/ui/extension/node_modules/eslint/lib/rules/no-sequences.js +2 -25
- package/src/ui/extension/node_modules/eslint/lib/rules/no-setter-return.js +2 -41
- package/src/ui/extension/node_modules/eslint/lib/rules/no-shadow-restricted-names.js +2 -13
- package/src/ui/extension/node_modules/eslint/lib/rules/no-shadow.js +3 -54
- package/src/ui/extension/node_modules/eslint/lib/rules/no-spaced-func.js +2 -17
- package/src/ui/extension/node_modules/eslint/lib/rules/no-sparse-arrays.js +2 -16
- package/src/ui/extension/node_modules/eslint/lib/rules/no-sync.js +2 -13
- package/src/ui/extension/node_modules/eslint/lib/rules/no-tabs.js +3 -14
- package/src/ui/extension/node_modules/eslint/lib/rules/no-template-curly-in-string.js +2 -10
- package/src/ui/extension/node_modules/eslint/lib/rules/no-ternary.js +2 -13
- package/src/ui/extension/node_modules/eslint/lib/rules/no-this-before-super.js +2 -47
- package/src/ui/extension/node_modules/eslint/lib/rules/no-throw-literal.js +2 -15
- package/src/ui/extension/node_modules/eslint/lib/rules/no-trailing-spaces.js +2 -36
- package/src/ui/extension/node_modules/eslint/lib/rules/no-undef-init.js +2 -19
- package/src/ui/extension/node_modules/eslint/lib/rules/no-undef.js +2 -14
- package/src/ui/extension/node_modules/eslint/lib/rules/no-undefined.js +2 -21
- package/src/ui/extension/node_modules/eslint/lib/rules/no-underscore-dangle.js +3 -38
- package/src/ui/extension/node_modules/eslint/lib/rules/no-unexpected-multiline.js +2 -23
- package/src/ui/extension/node_modules/eslint/lib/rules/no-unmodified-loop-condition.js +4 -62
- package/src/ui/extension/node_modules/eslint/lib/rules/no-unneeded-ternary.js +2 -26
- package/src/ui/extension/node_modules/eslint/lib/rules/no-unreachable-loop.js +2 -37
- package/src/ui/extension/node_modules/eslint/lib/rules/no-unreachable.js +2 -49
- package/src/ui/extension/node_modules/eslint/lib/rules/no-unsafe-finally.js +3 -18
- package/src/ui/extension/node_modules/eslint/lib/rules/no-unsafe-negation.js +2 -20
- package/src/ui/extension/node_modules/eslint/lib/rules/no-unsafe-optional-chaining.js +2 -14
- package/src/ui/extension/node_modules/eslint/lib/rules/no-unused-expressions.js +2 -19
- package/src/ui/extension/node_modules/eslint/lib/rules/no-unused-labels.js +2 -25
- package/src/ui/extension/node_modules/eslint/lib/rules/no-unused-private-class-members.js +2 -34
- package/src/ui/extension/node_modules/eslint/lib/rules/no-unused-vars.js +6 -122
- package/src/ui/extension/node_modules/eslint/lib/rules/no-use-before-define.js +2 -49
- package/src/ui/extension/node_modules/eslint/lib/rules/no-useless-backreference.js +3 -39
- package/src/ui/extension/node_modules/eslint/lib/rules/no-useless-call.js +2 -18
- package/src/ui/extension/node_modules/eslint/lib/rules/no-useless-catch.js +2 -9
- package/src/ui/extension/node_modules/eslint/lib/rules/no-useless-computed-key.js +2 -31
- package/src/ui/extension/node_modules/eslint/lib/rules/no-useless-concat.js +2 -22
- package/src/ui/extension/node_modules/eslint/lib/rules/no-useless-constructor.js +2 -24
- package/src/ui/extension/node_modules/eslint/lib/rules/no-useless-escape.js +6 -60
- package/src/ui/extension/node_modules/eslint/lib/rules/no-useless-rename.js +2 -30
- package/src/ui/extension/node_modules/eslint/lib/rules/no-useless-return.js +2 -53
- package/src/ui/extension/node_modules/eslint/lib/rules/no-var.js +2 -44
- package/src/ui/extension/node_modules/eslint/lib/rules/no-void.js +2 -10
- package/src/ui/extension/node_modules/eslint/lib/rules/no-warning-comments.js +2 -30
- package/src/ui/extension/node_modules/eslint/lib/rules/no-whitespace-before-property.js +4 -24
- package/src/ui/extension/node_modules/eslint/lib/rules/no-with.js +2 -11
- package/src/ui/extension/node_modules/eslint/lib/rules/nonblock-statement-body-position.js +2 -19
- package/src/ui/extension/node_modules/eslint/lib/rules/object-curly-newline.js +4 -44
- package/src/ui/extension/node_modules/eslint/lib/rules/object-curly-spacing.js +2 -45
- package/src/ui/extension/node_modules/eslint/lib/rules/object-property-newline.js +2 -18
- package/src/ui/extension/node_modules/eslint/lib/rules/object-shorthand.js +3 -73
- package/src/ui/extension/node_modules/eslint/lib/rules/one-var-declaration-per-line.js +3 -20
- package/src/ui/extension/node_modules/eslint/lib/rules/one-var.js +3 -69
- package/src/ui/extension/node_modules/eslint/lib/rules/operator-assignment.js +3 -32
- package/src/ui/extension/node_modules/eslint/lib/rules/operator-linebreak.js +3 -44
- package/src/ui/extension/node_modules/eslint/lib/rules/padded-blocks.js +3 -43
- package/src/ui/extension/node_modules/eslint/lib/rules/padding-line-between-statements.js +4 -65
- package/src/ui/extension/node_modules/eslint/lib/rules/prefer-arrow-callback.js +2 -66
- package/src/ui/extension/node_modules/eslint/lib/rules/prefer-const.js +2 -87
- package/src/ui/extension/node_modules/eslint/lib/rules/prefer-destructuring.js +2 -38
- package/src/ui/extension/node_modules/eslint/lib/rules/prefer-exponentiation-operator.js +2 -32
- package/src/ui/extension/node_modules/eslint/lib/rules/prefer-named-capture-group.js +5 -29
- package/src/ui/extension/node_modules/eslint/lib/rules/prefer-numeric-literals.js +2 -28
- package/src/ui/extension/node_modules/eslint/lib/rules/prefer-object-has-own.js +2 -22
- package/src/ui/extension/node_modules/eslint/lib/rules/prefer-object-spread.js +3 -41
- package/src/ui/extension/node_modules/eslint/lib/rules/prefer-promise-reject-errors.js +2 -23
- package/src/ui/extension/node_modules/eslint/lib/rules/prefer-reflect.js +2 -17
- package/src/ui/extension/node_modules/eslint/lib/rules/prefer-regex-literals.js +3 -74
- package/src/ui/extension/node_modules/eslint/lib/rules/prefer-rest-params.js +2 -22
- package/src/ui/extension/node_modules/eslint/lib/rules/prefer-spread.js +3 -17
- package/src/ui/extension/node_modules/eslint/lib/rules/prefer-template.js +2 -45
- package/src/ui/extension/node_modules/eslint/lib/rules/quote-props.js +4 -42
- package/src/ui/extension/node_modules/eslint/lib/rules/quotes.js +2 -54
- package/src/ui/extension/node_modules/eslint/lib/rules/radix.js +3 -30
- package/src/ui/extension/node_modules/eslint/lib/rules/require-atomic-updates.js +2 -55
- package/src/ui/extension/node_modules/eslint/lib/rules/require-await.js +2 -20
- package/src/ui/extension/node_modules/eslint/lib/rules/require-jsdoc.js +2 -12
- package/src/ui/extension/node_modules/eslint/lib/rules/require-unicode-regexp.js +3 -24
- package/src/ui/extension/node_modules/eslint/lib/rules/require-yield.js +2 -16
- package/src/ui/extension/node_modules/eslint/lib/rules/rest-spread-spacing.js +3 -17
- package/src/ui/extension/node_modules/eslint/lib/rules/semi-spacing.js +2 -35
- package/src/ui/extension/node_modules/eslint/lib/rules/semi-style.js +2 -26
- package/src/ui/extension/node_modules/eslint/lib/rules/semi.js +3 -58
- package/src/ui/extension/node_modules/eslint/lib/rules/sort-imports.js +2 -32
- package/src/ui/extension/node_modules/eslint/lib/rules/sort-keys.js +2 -35
- package/src/ui/extension/node_modules/eslint/lib/rules/sort-vars.js +2 -21
- package/src/ui/extension/node_modules/eslint/lib/rules/space-before-blocks.js +5 -29
- package/src/ui/extension/node_modules/eslint/lib/rules/space-before-function-paren.js +2 -24
- package/src/ui/extension/node_modules/eslint/lib/rules/space-in-parens.js +3 -43
- package/src/ui/extension/node_modules/eslint/lib/rules/space-infix-ops.js +2 -33
- package/src/ui/extension/node_modules/eslint/lib/rules/space-unary-ops.js +2 -32
- package/src/ui/extension/node_modules/eslint/lib/rules/spaced-comment.js +2 -54
- package/src/ui/extension/node_modules/eslint/lib/rules/strict.js +2 -39
- package/src/ui/extension/node_modules/eslint/lib/rules/switch-colon-spacing.js +2 -15
- package/src/ui/extension/node_modules/eslint/lib/rules/symbol-description.js +2 -16
- package/src/ui/extension/node_modules/eslint/lib/rules/template-curly-spacing.js +2 -23
- package/src/ui/extension/node_modules/eslint/lib/rules/template-tag-spacing.js +2 -14
- package/src/ui/extension/node_modules/eslint/lib/rules/unicode-bom.js +2 -15
- package/src/ui/extension/node_modules/eslint/lib/rules/use-isnan.js +2 -24
- package/src/ui/extension/node_modules/eslint/lib/rules/utils/ast-utils.js +8 -276
- package/src/ui/extension/node_modules/eslint/lib/rules/utils/fix-tracker.js +2 -17
- package/src/ui/extension/node_modules/eslint/lib/rules/valid-jsdoc.js +4 -64
- package/src/ui/extension/node_modules/eslint/lib/rules/valid-typeof.js +3 -25
- package/src/ui/extension/node_modules/eslint/lib/rules/vars-on-top.js +2 -23
- package/src/ui/extension/node_modules/eslint/lib/rules/wrap-iife.js +2 -38
- package/src/ui/extension/node_modules/eslint/lib/rules/wrap-regex.js +2 -14
- package/src/ui/extension/node_modules/eslint/lib/rules/yield-star-spacing.js +2 -18
- package/src/ui/extension/node_modules/eslint/lib/rules/yoda.js +2 -45
- package/src/ui/extension/node_modules/eslint/lib/shared/config-validator.js +2 -51
- package/src/ui/extension/node_modules/eslint/lib/shared/relative-module-resolver.js +2 -8
- package/src/ui/extension/node_modules/eslint/lib/shared/runtime-info.js +2 -30
- package/src/ui/extension/node_modules/eslint/lib/shared/string-utils.js +2 -14
- package/src/ui/extension/node_modules/eslint/lib/source-code/source-code.js +4 -175
- package/src/ui/extension/node_modules/eslint/node_modules/ansi-styles/index.js +2 -26
- package/src/ui/extension/node_modules/eslint/node_modules/chalk/source/index.js +5 -47
- package/src/ui/extension/node_modules/eslint/node_modules/chalk/source/templates.js +3 -28
- package/src/ui/extension/node_modules/eslint/node_modules/color-convert/conversions.js +28 -197
- package/src/ui/extension/node_modules/eslint/node_modules/eslint-scope/lib/pattern-visitor.js +2 -32
- package/src/ui/extension/node_modules/eslint/node_modules/eslint-scope/lib/referencer.js +5 -137
- package/src/ui/extension/node_modules/eslint/node_modules/eslint-scope/lib/scope.js +5 -132
- package/src/ui/extension/node_modules/eslint/node_modules/estraverse/estraverse.js +3 -112
- package/src/ui/extension/node_modules/eslint/node_modules/supports-color/index.js +2 -27
- package/src/ui/extension/node_modules/eslint-scope/lib/pattern-visitor.js +2 -31
- package/src/ui/extension/node_modules/eslint-scope/lib/referencer.js +5 -130
- package/src/ui/extension/node_modules/eslint-scope/lib/scope.js +5 -129
- package/src/ui/extension/node_modules/espree/espree.js +2 -28
- package/src/ui/extension/node_modules/espree/lib/espree.js +2 -62
- package/src/ui/extension/node_modules/esprima/bin/esvalidate.js +5 -36
- package/src/ui/extension/node_modules/esprima/dist/esprima.js +17 -72
- package/src/ui/extension/node_modules/esquery/dist/esquery.esm.js +3 -63
- package/src/ui/extension/node_modules/esquery/dist/esquery.js +3 -65
- package/src/ui/extension/node_modules/esquery/node_modules/estraverse/estraverse.js +3 -112
- package/src/ui/extension/node_modules/esrecurse/node_modules/estraverse/estraverse.js +3 -112
- package/src/ui/extension/node_modules/estraverse/estraverse.js +3 -109
- package/src/ui/extension/node_modules/event-target-shim/dist/event-target-shim.js +11 -99
- package/src/ui/extension/node_modules/event-target-shim/index.d.ts +2 -47
- package/src/ui/extension/node_modules/fast-glob/out/index.d.ts +5 -5
- package/src/ui/extension/node_modules/fast-glob/out/index.js +3 -3
- package/src/ui/extension/node_modules/fast-glob/out/providers/filters/error.js +3 -3
- package/src/ui/extension/node_modules/fast-glob/out/readers/async.js +2 -2
- package/src/ui/extension/node_modules/fast-glob/out/readers/reader.d.ts +2 -2
- package/src/ui/extension/node_modules/fast-glob/out/readers/reader.js +2 -2
- package/src/ui/extension/node_modules/fast-glob/out/readers/sync.js +2 -2
- package/src/ui/extension/node_modules/fast-glob/out/utils/errno.d.ts +1 -1
- package/src/ui/extension/node_modules/fast-glob/out/utils/errno.js +2 -2
- package/src/ui/extension/node_modules/fastq/queue.js +4 -53
- package/src/ui/extension/node_modules/fd-slicer/index.js +9 -49
- package/src/ui/extension/node_modules/fill-range/index.js +2 -53
- package/src/ui/extension/node_modules/foreground-child/index.js +2 -22
- package/src/ui/extension/node_modules/form-data/index.d.ts +4 -12
- package/src/ui/extension/node_modules/form-data/lib/form_data.js +4 -95
- package/src/ui/extension/node_modules/form-data-encoder/lib/cjs/FormDataEncoder.js +2 -2
- package/src/ui/extension/node_modules/form-data-encoder/lib/esm/FormDataEncoder.js +2 -2
- package/src/ui/extension/node_modules/formdata-node/@type/FormData.d.ts +2 -2
- package/src/ui/extension/node_modules/formdata-node/lib/cjs/Blob.js +2 -2
- package/src/ui/extension/node_modules/formdata-node/lib/cjs/FormData.js +3 -3
- package/src/ui/extension/node_modules/formdata-node/lib/cjs/blobHelpers.js +2 -2
- package/src/ui/extension/node_modules/formdata-node/lib/cjs/fileFromPath.js +2 -2
- package/src/ui/extension/node_modules/formdata-node/lib/esm/Blob.js +2 -2
- package/src/ui/extension/node_modules/formdata-node/lib/esm/FormData.js +3 -3
- package/src/ui/extension/node_modules/formdata-node/lib/esm/blobHelpers.js +2 -2
- package/src/ui/extension/node_modules/formdata-node/lib/esm/fileFromPath.js +2 -2
- package/src/ui/extension/node_modules/gensync/index.js +7 -49
- package/src/ui/extension/node_modules/gensync/test/index.test.js +3 -81
- package/src/ui/extension/node_modules/globby/index.js +2 -42
- package/src/ui/extension/node_modules/globby/stream-utils.js +3 -11
- package/src/ui/extension/node_modules/graceful-fs/graceful-fs.js +2 -58
- package/src/ui/extension/node_modules/graceful-fs/polyfills.js +2 -40
- package/src/ui/extension/node_modules/graphemer/lib/Graphemer.js +3 -3
- package/src/ui/extension/node_modules/graphemer/lib/GraphemerHelper.js +3 -3
- package/src/ui/extension/node_modules/graphemer/lib/GraphemerIterator.js +2 -2
- package/src/ui/extension/node_modules/hasha/index.js +2 -35
- package/src/ui/extension/node_modules/hasha/node_modules/type-fest/source/merge-exclusive.d.ts +2 -12
- package/src/ui/extension/node_modules/hasha/thread.js +2 -10
- package/src/ui/extension/node_modules/highlight.js/es/languages/fsharp.js +2 -36
- package/src/ui/extension/node_modules/highlight.js/es/languages/javascript.js +2 -37
- package/src/ui/extension/node_modules/highlight.js/es/languages/typescript.js +2 -54
- package/src/ui/extension/node_modules/highlight.js/lib/core.js +2 -317
- package/src/ui/extension/node_modules/highlight.js/lib/languages/fsharp.js +2 -36
- package/src/ui/extension/node_modules/highlight.js/lib/languages/javascript.js +2 -37
- package/src/ui/extension/node_modules/highlight.js/lib/languages/typescript.js +2 -54
- package/src/ui/extension/node_modules/highlight.js/types/index.d.ts +4 -34
- package/src/ui/extension/node_modules/hosted-git-info/index.js +3 -39
- package/src/ui/extension/node_modules/htmlparser2/dist/commonjs/Parser.d.ts +1 -1
- package/src/ui/extension/node_modules/htmlparser2/dist/commonjs/WritableStream.d.ts +2 -2
- package/src/ui/extension/node_modules/htmlparser2/dist/commonjs/WritableStream.js +2 -2
- package/src/ui/extension/node_modules/htmlparser2/dist/commonjs/index.d.ts +2 -2
- package/src/ui/extension/node_modules/htmlparser2/dist/commonjs/index.js +2 -2
- package/src/ui/extension/node_modules/htmlparser2/dist/esm/Parser.d.ts +1 -1
- package/src/ui/extension/node_modules/htmlparser2/dist/esm/WritableStream.d.ts +2 -2
- package/src/ui/extension/node_modules/htmlparser2/dist/esm/WritableStream.js +2 -2
- package/src/ui/extension/node_modules/htmlparser2/dist/esm/index.d.ts +2 -2
- package/src/ui/extension/node_modules/htmlparser2/dist/esm/index.js +2 -2
- package/src/ui/extension/node_modules/htmlparser2/node_modules/entities/dist/commonjs/encode.js +2 -2
- package/src/ui/extension/node_modules/htmlparser2/node_modules/entities/dist/commonjs/escape.js +3 -3
- package/src/ui/extension/node_modules/htmlparser2/node_modules/entities/dist/esm/encode.js +2 -2
- package/src/ui/extension/node_modules/htmlparser2/node_modules/entities/dist/esm/escape.js +3 -3
- package/src/ui/extension/node_modules/htmlparser2/node_modules/entities/src/decode.ts +3 -82
- package/src/ui/extension/node_modules/htmlparser2/node_modules/entities/src/encode.ts +3 -12
- package/src/ui/extension/node_modules/htmlparser2/node_modules/entities/src/escape.ts +4 -19
- package/src/ui/extension/node_modules/htmlparser2/src/Parser.events.spec.ts +3 -64
- package/src/ui/extension/node_modules/htmlparser2/src/Parser.ts +2 -88
- package/src/ui/extension/node_modules/htmlparser2/src/Tokenizer.ts +3 -63
- package/src/ui/extension/node_modules/htmlparser2/src/WritableStream.spec.ts +4 -21
- package/src/ui/extension/node_modules/htmlparser2/src/WritableStream.ts +2 -7
- package/src/ui/extension/node_modules/htmlparser2/src/__fixtures__/testHelper.ts +7 -20
- package/src/ui/extension/node_modules/htmlparser2/src/index.spec.ts +5 -19
- package/src/ui/extension/node_modules/htmlparser2/src/index.ts +4 -16
- package/src/ui/extension/node_modules/http-proxy-agent/dist/index.d.ts +3 -3
- package/src/ui/extension/node_modules/http-proxy-agent/dist/index.js +7 -7
- package/src/ui/extension/node_modules/https-proxy-agent/dist/index.d.ts +1 -1
- package/src/ui/extension/node_modules/https-proxy-agent/dist/index.js +3 -3
- package/src/ui/extension/node_modules/is-docker/index.js +2 -7
- package/src/ui/extension/node_modules/is-inside-container/index.js +2 -6
- package/src/ui/extension/node_modules/istanbul-lib-coverage/lib/coverage-map.js +2 -18
- package/src/ui/extension/node_modules/istanbul-lib-coverage/lib/percent.js +2 -3
- package/src/ui/extension/node_modules/istanbul-lib-hook/lib/hook.js +3 -10
- package/src/ui/extension/node_modules/istanbul-lib-instrument/dist/instrumenter.js +2 -28
- package/src/ui/extension/node_modules/istanbul-lib-instrument/dist/read-coverage.js +2 -23
- package/src/ui/extension/node_modules/istanbul-lib-instrument/dist/visitor.js +1 -135
- package/src/ui/extension/node_modules/istanbul-lib-processinfo/index.js +2 -57
- package/src/ui/extension/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-node/parse.js +1 -9
- package/src/ui/extension/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/esm-node/v1.js +2 -30
- package/src/ui/extension/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/index.js +2 -2
- package/src/ui/extension/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/parse.js +1 -12
- package/src/ui/extension/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/rng-browser.js +1 -5
- package/src/ui/extension/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/v1.js +4 -36
- package/src/ui/extension/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/v35.js +2 -2
- package/src/ui/extension/node_modules/istanbul-lib-processinfo/node_modules/uuid/dist/v4.js +2 -2
- package/src/ui/extension/node_modules/istanbul-lib-report/lib/file-writer.js +2 -22
- package/src/ui/extension/node_modules/istanbul-lib-report/lib/path.js +6 -30
- package/src/ui/extension/node_modules/istanbul-lib-report/lib/report-base.js +2 -6
- package/src/ui/extension/node_modules/istanbul-lib-report/lib/summarizer-factory.js +4 -49
- package/src/ui/extension/node_modules/istanbul-lib-report/node_modules/make-dir/index.js +3 -35
- package/src/ui/extension/node_modules/istanbul-lib-report/node_modules/supports-color/index.js +2 -27
- package/src/ui/extension/node_modules/istanbul-lib-source-maps/lib/get-mapping.js +2 -19
- package/src/ui/extension/node_modules/istanbul-lib-source-maps/lib/map-store.js +3 -29
- package/src/ui/extension/node_modules/istanbul-lib-source-maps/lib/transformer.js +3 -24
- package/src/ui/extension/node_modules/istanbul-reports/index.js +2 -5
- package/src/ui/extension/node_modules/istanbul-reports/lib/clover/index.js +4 -25
- package/src/ui/extension/node_modules/istanbul-reports/lib/cobertura/index.js +2 -19
- package/src/ui/extension/node_modules/istanbul-reports/lib/html/annotator.js +15 -34
- package/src/ui/extension/node_modules/istanbul-reports/lib/html/assets/block-navigation.js +2 -16
- package/src/ui/extension/node_modules/istanbul-reports/lib/html/index.js +7 -44
- package/src/ui/extension/node_modules/istanbul-reports/lib/html/insertion-text.js +5 -16
- package/src/ui/extension/node_modules/istanbul-reports/lib/html-spa/index.js +8 -26
- package/src/ui/extension/node_modules/istanbul-reports/lib/html-spa/src/getChildData.js +3 -17
- package/src/ui/extension/node_modules/istanbul-reports/lib/json/index.js +2 -9
- package/src/ui/extension/node_modules/istanbul-reports/lib/json-summary/index.js +2 -10
- package/src/ui/extension/node_modules/istanbul-reports/lib/lcovonly/index.js +2 -12
- package/src/ui/extension/node_modules/istanbul-reports/lib/teamcity/index.js +2 -13
- package/src/ui/extension/node_modules/istanbul-reports/lib/text/index.js +8 -49
- package/src/ui/extension/node_modules/istanbul-reports/lib/text-summary/index.js +2 -9
- package/src/ui/extension/node_modules/js-yaml/bin/js-yaml.js +4 -38
- package/src/ui/extension/node_modules/js-yaml/dist/js-yaml.js +2 -797
- package/src/ui/extension/node_modules/js-yaml/lib/dumper.js +2 -152
- package/src/ui/extension/node_modules/jsesc/jsesc.js +5 -31
- package/src/ui/extension/node_modules/json5/dist/index.js +2 -2
- package/src/ui/extension/node_modules/json5/lib/cli.js +11 -36
- package/src/ui/extension/node_modules/json5/lib/parse.js +16 -224
- package/src/ui/extension/node_modules/json5/lib/stringify.js +8 -51
- package/src/ui/extension/node_modules/jsonc-parser/lib/esm/impl/edit.js +6 -6
- package/src/ui/extension/node_modules/jsonc-parser/lib/esm/impl/format.js +7 -7
- package/src/ui/extension/node_modules/jsonc-parser/lib/esm/impl/parser.js +8 -6
- package/src/ui/extension/node_modules/jsonc-parser/lib/esm/impl/scanner.js +6 -4
- package/src/ui/extension/node_modules/jsonc-parser/lib/esm/main.d.ts +2 -2
- package/src/ui/extension/node_modules/jsonc-parser/lib/umd/impl/edit.js +6 -6
- package/src/ui/extension/node_modules/jsonc-parser/lib/umd/impl/format.js +7 -7
- package/src/ui/extension/node_modules/jsonc-parser/lib/umd/impl/parser.js +8 -6
- package/src/ui/extension/node_modules/jsonc-parser/lib/umd/impl/scanner.js +6 -4
- package/src/ui/extension/node_modules/jsonc-parser/lib/umd/main.d.ts +2 -2
- package/src/ui/extension/node_modules/jsonwebtoken/lib/JsonWebTokenError.js +2 -4
- package/src/ui/extension/node_modules/jsonwebtoken/lib/validateAsymmetricKey.js +2 -1
- package/src/ui/extension/node_modules/jsonwebtoken/sign.js +6 -35
- package/src/ui/extension/node_modules/jsonwebtoken/verify.js +7 -57
- package/src/ui/extension/node_modules/jszip/dist/jszip.js +9 -1379
- package/src/ui/extension/node_modules/jszip/index.d.ts +6 -48
- package/src/ui/extension/node_modules/jszip/lib/stream/GenericWorker.js +2 -16
- package/src/ui/extension/node_modules/jszip/lib/utils.js +2 -42
- package/src/ui/extension/node_modules/jszip/vendor/FileSaver.js +3 -9
- package/src/ui/extension/node_modules/leven/index.js +5 -20
- package/src/ui/extension/node_modules/lie/dist/lie.js +5 -40
- package/src/ui/extension/node_modules/lie/dist/lie.polyfill.js +5 -42
- package/src/ui/extension/node_modules/lie/lib/browser.js +5 -32
- package/src/ui/extension/node_modules/lie/lib/index.js +5 -32
- package/src/ui/extension/node_modules/log-symbols/node_modules/ansi-styles/index.js +2 -26
- package/src/ui/extension/node_modules/log-symbols/node_modules/chalk/source/index.js +5 -47
- package/src/ui/extension/node_modules/log-symbols/node_modules/chalk/source/templates.js +3 -28
- package/src/ui/extension/node_modules/log-symbols/node_modules/color-convert/conversions.js +28 -197
- package/src/ui/extension/node_modules/log-symbols/node_modules/supports-color/index.js +2 -27
- package/src/ui/extension/node_modules/loupe/lib/error.js +2 -4
- package/src/ui/extension/node_modules/loupe/loupe.js +2 -163
- package/src/ui/extension/node_modules/make-dir/index.js +3 -35
- package/src/ui/extension/node_modules/make-error/dist/make-error.js +1 -1
- package/src/ui/extension/node_modules/make-error/index.js +2 -25
- package/src/ui/extension/node_modules/markdown-it/bin/markdown-it.js +2 -31
- package/src/ui/extension/node_modules/marked/bin/main.js +10 -44
- package/src/ui/extension/node_modules/marked/lib/marked.d.ts +4 -7
- package/src/ui/extension/node_modules/marked/lib/marked.esm.js +21 -34
- package/src/ui/extension/node_modules/marked/lib/marked.umd.js +21 -36
- package/src/ui/extension/node_modules/minimist/index.js +2 -37
- package/src/ui/extension/node_modules/mocha/bin/mocha.js +2 -21
- package/src/ui/extension/node_modules/mocha/browser-entry.js +2 -38
- package/src/ui/extension/node_modules/mocha/lib/cli/cli.js +2 -11
- package/src/ui/extension/node_modules/mocha/lib/cli/config.js +2 -10
- package/src/ui/extension/node_modules/mocha/lib/cli/lookup-files.js +4 -14
- package/src/ui/extension/node_modules/mocha/lib/cli/options.js +3 -27
- package/src/ui/extension/node_modules/mocha/lib/cli/run-helpers.js +4 -37
- package/src/ui/extension/node_modules/mocha/lib/cli/run.js +3 -23
- package/src/ui/extension/node_modules/mocha/lib/cli/watch-run.js +2 -49
- package/src/ui/extension/node_modules/mocha/lib/interfaces/bdd.js +2 -18
- package/src/ui/extension/node_modules/mocha/lib/interfaces/common.js +2 -16
- package/src/ui/extension/node_modules/mocha/lib/interfaces/qunit.js +2 -15
- package/src/ui/extension/node_modules/mocha/lib/interfaces/tdd.js +2 -14
- package/src/ui/extension/node_modules/mocha/lib/mocha.js +5 -89
- package/src/ui/extension/node_modules/mocha/lib/nodejs/parallel-buffered-runner.js +9 -51
- package/src/ui/extension/node_modules/mocha/lib/nodejs/reporters/parallel-buffered.js +3 -19
- package/src/ui/extension/node_modules/mocha/lib/nodejs/serializer.js +2 -34
- package/src/ui/extension/node_modules/mocha/lib/nodejs/worker.js +5 -24
- package/src/ui/extension/node_modules/mocha/lib/plugin-loader.js +2 -21
- package/src/ui/extension/node_modules/mocha/lib/reporters/html.js +2 -50
- package/src/ui/extension/node_modules/mocha/lib/reporters/json-stream.js +2 -15
- package/src/ui/extension/node_modules/mocha/lib/runnable.js +2 -47
- package/src/ui/extension/node_modules/mocha/lib/runner.js +2 -130
- package/src/ui/extension/node_modules/mocha/lib/utils.js +7 -5
- package/src/ui/extension/node_modules/mocha/mocha.js +40 -2765
- package/src/ui/extension/node_modules/mocha/node_modules/minimatch/minimatch.js +7 -151
- package/src/ui/extension/node_modules/mocha/node_modules/supports-color/index.js +2 -32
- package/src/ui/extension/node_modules/nise/lib/event/event-target.js +2 -15
- package/src/ui/extension/node_modules/nise/lib/fake-xhr/index.js +5 -121
- package/src/ui/extension/node_modules/nise/nise.js +20 -1174
- package/src/ui/extension/node_modules/nise/node_modules/@sinonjs/fake-timers/src/fake-timers-src.js +17 -282
- package/src/ui/extension/node_modules/node-addon-api/tools/check-napi.js +4 -10
- package/src/ui/extension/node_modules/node-fetch/lib/index.es.js +16 -261
- package/src/ui/extension/node_modules/node-fetch/lib/index.js +16 -263
- package/src/ui/extension/node_modules/nyc/bin/nyc.js +2 -21
- package/src/ui/extension/node_modules/nyc/index.js +4 -88
- package/src/ui/extension/node_modules/nyc/lib/commands/helpers.js +2 -12
- package/src/ui/extension/node_modules/nyc/node_modules/ansi-styles/index.js +2 -26
- package/src/ui/extension/node_modules/nyc/node_modules/cliui/index.js +2 -70
- package/src/ui/extension/node_modules/nyc/node_modules/color-convert/conversions.js +28 -197
- package/src/ui/extension/node_modules/nyc/node_modules/p-locate/index.js +2 -13
- package/src/ui/extension/node_modules/nyc/node_modules/resolve-from/index.js +3 -11
- package/src/ui/extension/node_modules/nyc/node_modules/wrap-ansi/index.js +2 -41
- package/src/ui/extension/node_modules/nyc/node_modules/yargs/build/lib/command.d.ts +2 -2
- package/src/ui/extension/node_modules/nyc/node_modules/yargs/build/lib/command.js +5 -5
- package/src/ui/extension/node_modules/nyc/node_modules/yargs/build/lib/completion.js +2 -2
- package/src/ui/extension/node_modules/nyc/node_modules/yargs/build/lib/levenshtein.js +3 -6
- package/src/ui/extension/node_modules/nyc/node_modules/yargs/build/lib/middleware.js +3 -3
- package/src/ui/extension/node_modules/nyc/node_modules/yargs/build/lib/usage.js +3 -3
- package/src/ui/extension/node_modules/nyc/node_modules/yargs/build/lib/yargs.js +9 -9
- package/src/ui/extension/node_modules/nyc/node_modules/yargs-parser/index.js +11 -137
- package/src/ui/extension/node_modules/onetime/index.js +2 -13
- package/src/ui/extension/node_modules/open/index.js +5 -84
- package/src/ui/extension/node_modules/ora/index.js +2 -92
- package/src/ui/extension/node_modules/ora/node_modules/chalk/source/index.js +3 -45
- package/src/ui/extension/node_modules/ora/node_modules/chalk/source/vendor/ansi-styles/index.js +4 -40
- package/src/ui/extension/node_modules/ora/node_modules/chalk/source/vendor/supports-color/index.js +2 -38
- package/src/ui/extension/node_modules/p-locate/index.js +2 -13
- package/src/ui/extension/node_modules/p-map/index.js +2 -14
- package/src/ui/extension/node_modules/p-try/index.d.ts +2 -7
- package/src/ui/extension/node_modules/parse5/dist/cjs/common/error-codes.d.ts +2 -2
- package/src/ui/extension/node_modules/parse5/dist/cjs/parser/index.js +7 -7
- package/src/ui/extension/node_modules/parse5/dist/common/error-codes.d.ts +2 -2
- package/src/ui/extension/node_modules/parse5/dist/parser/index.js +7 -7
- package/src/ui/extension/node_modules/parse5/node_modules/entities/dist/commonjs/encode.js +2 -2
- package/src/ui/extension/node_modules/parse5/node_modules/entities/dist/commonjs/escape.js +3 -3
- package/src/ui/extension/node_modules/parse5/node_modules/entities/dist/esm/encode.js +2 -2
- package/src/ui/extension/node_modules/parse5/node_modules/entities/dist/esm/escape.js +3 -3
- package/src/ui/extension/node_modules/parse5/node_modules/entities/src/decode.ts +3 -82
- package/src/ui/extension/node_modules/parse5/node_modules/entities/src/encode.ts +3 -12
- package/src/ui/extension/node_modules/parse5/node_modules/entities/src/escape.ts +4 -19
- package/src/ui/extension/node_modules/parse5-htmlparser2-tree-adapter/dist/cjs/index.js +2 -2
- package/src/ui/extension/node_modules/parse5-htmlparser2-tree-adapter/dist/index.js +2 -2
- package/src/ui/extension/node_modules/parse5-parser-stream/dist/cjs/index.d.ts +3 -3
- package/src/ui/extension/node_modules/parse5-parser-stream/dist/cjs/index.js +2 -2
- package/src/ui/extension/node_modules/parse5-parser-stream/dist/index.d.ts +3 -3
- package/src/ui/extension/node_modules/parse5-parser-stream/dist/index.js +2 -2
- package/src/ui/extension/node_modules/path-type/index.js +3 -10
- package/src/ui/extension/node_modules/picomatch/lib/parse.js +9 -220
- package/src/ui/extension/node_modules/picomatch/lib/scan.js +8 -70
- package/src/ui/extension/node_modules/picomatch/lib/utils.js +2 -11
- package/src/ui/extension/node_modules/pkg-dir/node_modules/p-locate/index.js +2 -13
- package/src/ui/extension/node_modules/prebuild-install/asset.js +2 -9
- package/src/ui/extension/node_modules/prebuild-install/download.js +4 -26
- package/src/ui/extension/node_modules/prelude-ls/lib/Func.js +1 -1
- package/src/ui/extension/node_modules/prelude-ls/lib/List.js +1 -1
- package/src/ui/extension/node_modules/prelude-ls/lib/Num.js +1 -1
- package/src/ui/extension/node_modules/prelude-ls/lib/Obj.js +1 -1
- package/src/ui/extension/node_modules/prelude-ls/lib/Str.js +1 -1
- package/src/ui/extension/node_modules/prelude-ls/lib/index.js +1 -1
- package/src/ui/extension/node_modules/pump/index.js +2 -21
- package/src/ui/extension/node_modules/pump/test-browser.js +2 -16
- package/src/ui/extension/node_modules/pump/test-node.js +2 -14
- package/src/ui/extension/node_modules/punycode/punycode.es6.js +3 -59
- package/src/ui/extension/node_modules/punycode/punycode.js +3 -59
- package/src/ui/extension/node_modules/queue-microtask/index.js +2 -3
- package/src/ui/extension/node_modules/readable-stream/lib/_stream_readable.js +1 -149
- package/src/ui/extension/node_modules/readdirp/index.js +6 -38
- package/src/ui/extension/node_modules/release-zalgo/lib/unwrapSync.js +2 -11
- package/src/ui/extension/node_modules/rimraf/rimraf.js +5 -55
- package/src/ui/extension/node_modules/run-parallel/index.js +2 -9
- package/src/ui/extension/node_modules/sax/lib/sax.js +4 -134
- package/src/ui/extension/node_modules/semver/bin/semver.js +3 -40
- package/src/ui/extension/node_modules/semver/classes/range.js +4 -70
- package/src/ui/extension/node_modules/semver/functions/coerce.js +2 -11
- package/src/ui/extension/node_modules/semver/internal/re.js +2 -49
- package/src/ui/extension/node_modules/semver/ranges/outside.js +2 -13
- package/src/ui/extension/node_modules/semver/ranges/subset.js +5 -30
- package/src/ui/extension/node_modules/setimmediate/setImmediate.js +4 -27
- package/src/ui/extension/node_modules/signal-exit/index.js +2 -24
- package/src/ui/extension/node_modules/simple-get/index.js +4 -21
- package/src/ui/extension/node_modules/sinon/lib/sinon/assert.js +2 -35
- package/src/ui/extension/node_modules/sinon/lib/sinon/behavior.js +4 -47
- package/src/ui/extension/node_modules/sinon/lib/sinon/default-behaviors.js +8 -52
- package/src/ui/extension/node_modules/sinon/lib/sinon/fake.js +3 -32
- package/src/ui/extension/node_modules/sinon/lib/sinon/mock.js +3 -43
- package/src/ui/extension/node_modules/sinon/lib/sinon/promise.js +2 -12
- package/src/ui/extension/node_modules/sinon/lib/sinon/proxy-call-util.js +2 -11
- package/src/ui/extension/node_modules/sinon/lib/sinon/proxy-call.js +3 -55
- package/src/ui/extension/node_modules/sinon/lib/sinon/proxy-invoke.js +2 -17
- package/src/ui/extension/node_modules/sinon/lib/sinon/proxy.js +4 -42
- package/src/ui/extension/node_modules/sinon/lib/sinon/sandbox.js +3 -110
- package/src/ui/extension/node_modules/sinon/lib/sinon/spy.js +2 -28
- package/src/ui/extension/node_modules/sinon/lib/sinon/stub.js +2 -43
- package/src/ui/extension/node_modules/sinon/lib/sinon/util/core/extend.js +2 -15
- package/src/ui/extension/node_modules/sinon/lib/sinon/util/core/function-to-string.js +2 -6
- package/src/ui/extension/node_modules/sinon/lib/sinon/util/core/get-next-tick.js +2 -6
- package/src/ui/extension/node_modules/sinon/lib/sinon/util/core/get-property-descriptor.js +2 -6
- package/src/ui/extension/node_modules/sinon/lib/sinon/util/core/walk.js +4 -11
- package/src/ui/extension/node_modules/sinon/lib/sinon/util/core/wrap-method.js +6 -37
- package/src/ui/extension/node_modules/sinon/node_modules/supports-color/index.js +2 -27
- package/src/ui/extension/node_modules/sinon/pkg/sinon-esm.js +68 -2626
- package/src/ui/extension/node_modules/sinon/pkg/sinon.js +6 -5
- package/src/ui/extension/node_modules/sprintf-js/dist/sprintf.min.js +1 -1
- package/src/ui/extension/node_modules/sprintf-js/src/sprintf.js +2 -2
- package/src/ui/extension/node_modules/ts-node/dist-raw/node-options.js +5 -5
- package/src/ui/extension/node_modules/tsutils/util/usage.js +2 -1
- package/src/ui/extension/node_modules/tsutils/util/util.js +3 -2
- package/src/ui/extension/node_modules/typescript/lib/_tsc.js +266 -188
- package/src/ui/extension/node_modules/typescript/lib/_tsserver.js +2 -1
- package/src/ui/extension/node_modules/typescript/lib/typescript.js +399 -261
- package/src/ui/extension/node_modules/uri-js/dist/es5/uri.all.js +2 -1
- package/src/ui/extension/node_modules/uri-js/dist/esnext/schemes/mailto.js +2 -1
- package/src/ui/extension/node_modules/uuid/dist/commonjs-browser/index.js +2 -2
- package/src/ui/extension/node_modules/uuid/dist/commonjs-browser/v1.js +2 -2
- package/src/ui/extension/node_modules/uuid/dist/commonjs-browser/v35.js +2 -2
- package/src/ui/extension/node_modules/uuid/dist/commonjs-browser/v4.js +2 -2
- package/src/ui/extension/node_modules/uuid/dist/index.js +2 -2
- package/src/ui/extension/node_modules/uuid/dist/v1.js +2 -2
- package/src/ui/extension/node_modules/uuid/dist/v35.js +2 -2
- package/src/ui/extension/node_modules/uuid/dist/v4.js +2 -2
- package/src/ui/hive-dashboard.ts +74 -52
- package/src/ui/web-ui/EnhancedProcessUI.js +570 -424
- package/src/ui/web-ui/EnhancedWebUI.js +65 -65
- package/src/ui/web-ui/README.md +16 -16
- package/src/ui/web-ui/components/ComponentLibrary.js +173 -124
- package/src/ui/web-ui/core/EventBus.js +27 -25
- package/src/ui/web-ui/core/MCPIntegrationLayer.js +294 -108
- package/src/ui/web-ui/core/StateManager.js +43 -46
- package/src/ui/web-ui/core/UIManager.js +120 -70
- package/src/ui/web-ui/core/ViewManager.js +16 -19
- package/src/ui/web-ui/index.js +101 -48
- package/src/ui/web-ui/neural-panel-test.js +109 -108
- package/src/ui/web-ui/test-github-view.js +11 -12
- package/src/ui/web-ui/test-neural-panel.html +219 -205
- package/src/ui/web-ui/views/DAAView.js +88 -85
- package/src/ui/web-ui/views/GitHubIntegrationTest.js +42 -42
- package/src/ui/web-ui/views/GitHubIntegrationView.js +59 -53
- package/src/ui/web-ui/views/NeuralNetworkView.js +20 -21
- package/src/ui/web-ui/views/WorkflowAutomationView.js +31 -32
- package/src/utils/__tests__/github-cli-safety-wrapper.test.js +408 -0
- package/src/utils/error-handler.js +1 -1
- package/src/utils/error-handler.ts +14 -27
- package/src/utils/errors.ts +20 -18
- package/src/utils/formatters.ts +6 -6
- package/src/utils/github-cli-safe.js +119 -0
- package/src/utils/github-cli-safety-wrapper.js +587 -0
- package/src/utils/helpers.ts +53 -55
- package/src/utils/npx-isolated-cache.js +156 -0
- package/src/utils/paths.ts +9 -6
- package/src/utils/timezone-utils.js +134 -0
- package/src/utils/type-guards.ts +199 -0
- package/src/utils/types.ts +62 -4
- package/cli.mjs +0 -126
- package/dist/adapters/cliffy-node.d.ts +0 -45
- package/dist/adapters/cliffy-node.d.ts.map +0 -1
- package/dist/adapters/cliffy-node.js +0 -61
- package/dist/adapters/cliffy-node.js.map +0 -1
- package/dist/agents/agent-manager.d.ts +0 -191
- package/dist/agents/agent-manager.d.ts.map +0 -1
- package/dist/agents/agent-manager.js +0 -969
- package/dist/agents/agent-manager.js.map +0 -1
- package/dist/agents/agent-registry.d.ts +0 -112
- package/dist/agents/agent-registry.d.ts.map +0 -1
- package/dist/agents/agent-registry.js +0 -341
- package/dist/agents/agent-registry.js.map +0 -1
- package/dist/cli/agents/analyst.d.ts +0 -28
- package/dist/cli/agents/analyst.d.ts.map +0 -1
- package/dist/cli/agents/analyst.js +0 -718
- package/dist/cli/agents/analyst.js.map +0 -1
- package/dist/cli/agents/architect.d.ts +0 -27
- package/dist/cli/agents/architect.d.ts.map +0 -1
- package/dist/cli/agents/architect.js +0 -729
- package/dist/cli/agents/architect.js.map +0 -1
- package/dist/cli/agents/base-agent.d.ts +0 -80
- package/dist/cli/agents/base-agent.d.ts.map +0 -1
- package/dist/cli/agents/base-agent.js +0 -385
- package/dist/cli/agents/base-agent.js.map +0 -1
- package/dist/cli/agents/capabilities.d.ts +0 -106
- package/dist/cli/agents/capabilities.d.ts.map +0 -1
- package/dist/cli/agents/capabilities.js +0 -556
- package/dist/cli/agents/capabilities.js.map +0 -1
- package/dist/cli/agents/coder.d.ts +0 -34
- package/dist/cli/agents/coder.d.ts.map +0 -1
- package/dist/cli/agents/coder.js +0 -806
- package/dist/cli/agents/coder.js.map +0 -1
- package/dist/cli/agents/coordinator.d.ts +0 -25
- package/dist/cli/agents/coordinator.d.ts.map +0 -1
- package/dist/cli/agents/coordinator.js +0 -454
- package/dist/cli/agents/coordinator.js.map +0 -1
- package/dist/cli/agents/hive-agents.d.ts +0 -85
- package/dist/cli/agents/hive-agents.d.ts.map +0 -1
- package/dist/cli/agents/hive-agents.js +0 -549
- package/dist/cli/agents/hive-agents.js.map +0 -1
- package/dist/cli/agents/index.d.ts +0 -111
- package/dist/cli/agents/index.d.ts.map +0 -1
- package/dist/cli/agents/index.js +0 -276
- package/dist/cli/agents/index.js.map +0 -1
- package/dist/cli/agents/researcher.d.ts +0 -24
- package/dist/cli/agents/researcher.d.ts.map +0 -1
- package/dist/cli/agents/researcher.js +0 -356
- package/dist/cli/agents/researcher.js.map +0 -1
- package/dist/cli/agents/tester.d.ts +0 -27
- package/dist/cli/agents/tester.d.ts.map +0 -1
- package/dist/cli/agents/tester.js +0 -594
- package/dist/cli/agents/tester.js.map +0 -1
- package/dist/cli/cli-core.d.ts +0 -49
- package/dist/cli/cli-core.d.ts.map +0 -1
- package/dist/cli/cli-core.js +0 -263
- package/dist/cli/cli-core.js.map +0 -1
- package/dist/cli/commands/advanced-memory-commands.d.ts +0 -2
- package/dist/cli/commands/advanced-memory-commands.d.ts.map +0 -1
- package/dist/cli/commands/advanced-memory-commands.js +0 -849
- package/dist/cli/commands/advanced-memory-commands.js.map +0 -1
- package/dist/cli/commands/agent-simple.d.ts +0 -12
- package/dist/cli/commands/agent-simple.d.ts.map +0 -1
- package/dist/cli/commands/agent-simple.js +0 -353
- package/dist/cli/commands/agent-simple.js.map +0 -1
- package/dist/cli/commands/agent.d.ts +0 -7
- package/dist/cli/commands/agent.d.ts.map +0 -1
- package/dist/cli/commands/agent.js +0 -369
- package/dist/cli/commands/agent.js.map +0 -1
- package/dist/cli/commands/claude.d.ts +0 -3
- package/dist/cli/commands/claude.d.ts.map +0 -1
- package/dist/cli/commands/claude.js +0 -154
- package/dist/cli/commands/claude.js.map +0 -1
- package/dist/cli/commands/config-integration.d.ts +0 -10
- package/dist/cli/commands/config-integration.d.ts.map +0 -1
- package/dist/cli/commands/config-integration.js +0 -416
- package/dist/cli/commands/config-integration.js.map +0 -1
- package/dist/cli/commands/config.d.ts +0 -5
- package/dist/cli/commands/config.d.ts.map +0 -1
- package/dist/cli/commands/config.js +0 -89
- package/dist/cli/commands/config.js.map +0 -1
- package/dist/cli/commands/enterprise.d.ts +0 -3
- package/dist/cli/commands/enterprise.d.ts.map +0 -1
- package/dist/cli/commands/enterprise.js +0 -1486
- package/dist/cli/commands/enterprise.js.map +0 -1
- package/dist/cli/commands/help.d.ts +0 -6
- package/dist/cli/commands/help.d.ts.map +0 -1
- package/dist/cli/commands/help.js +0 -786
- package/dist/cli/commands/help.js.map +0 -1
- package/dist/cli/commands/hive-mind/index.d.ts +0 -15
- package/dist/cli/commands/hive-mind/index.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/index.js +0 -22
- package/dist/cli/commands/hive-mind/index.js.map +0 -1
- package/dist/cli/commands/hive-mind/init.d.ts +0 -10
- package/dist/cli/commands/hive-mind/init.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/init.js +0 -68
- package/dist/cli/commands/hive-mind/init.js.map +0 -1
- package/dist/cli/commands/hive-mind/optimize-memory.d.ts +0 -8
- package/dist/cli/commands/hive-mind/optimize-memory.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/optimize-memory.js +0 -391
- package/dist/cli/commands/hive-mind/optimize-memory.js.map +0 -1
- package/dist/cli/commands/hive-mind/spawn.d.ts +0 -10
- package/dist/cli/commands/hive-mind/spawn.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/spawn.js +0 -147
- package/dist/cli/commands/hive-mind/spawn.js.map +0 -1
- package/dist/cli/commands/hive-mind/status.d.ts +0 -10
- package/dist/cli/commands/hive-mind/status.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/status.js +0 -209
- package/dist/cli/commands/hive-mind/status.js.map +0 -1
- package/dist/cli/commands/hive-mind/task.d.ts +0 -10
- package/dist/cli/commands/hive-mind/task.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/task.js +0 -288
- package/dist/cli/commands/hive-mind/task.js.map +0 -1
- package/dist/cli/commands/hive-mind/wizard.d.ts +0 -10
- package/dist/cli/commands/hive-mind/wizard.d.ts.map +0 -1
- package/dist/cli/commands/hive-mind/wizard.js +0 -513
- package/dist/cli/commands/hive-mind/wizard.js.map +0 -1
- package/dist/cli/commands/hive.d.ts +0 -6
- package/dist/cli/commands/hive.d.ts.map +0 -1
- package/dist/cli/commands/hive.js +0 -374
- package/dist/cli/commands/hive.js.map +0 -1
- package/dist/cli/commands/index.d.ts +0 -3
- package/dist/cli/commands/index.d.ts.map +0 -1
- package/dist/cli/commands/index.js +0 -2416
- package/dist/cli/commands/index.js.map +0 -1
- package/dist/cli/commands/mcp.d.ts +0 -6
- package/dist/cli/commands/mcp.d.ts.map +0 -1
- package/dist/cli/commands/mcp.js +0 -177
- package/dist/cli/commands/mcp.js.map +0 -1
- package/dist/cli/commands/memory.d.ts +0 -30
- package/dist/cli/commands/memory.d.ts.map +0 -1
- package/dist/cli/commands/memory.js +0 -225
- package/dist/cli/commands/memory.js.map +0 -1
- package/dist/cli/commands/migrate.d.ts +0 -6
- package/dist/cli/commands/migrate.d.ts.map +0 -1
- package/dist/cli/commands/migrate.js +0 -139
- package/dist/cli/commands/migrate.js.map +0 -1
- package/dist/cli/commands/monitor.d.ts +0 -6
- package/dist/cli/commands/monitor.d.ts.map +0 -1
- package/dist/cli/commands/monitor.js +0 -477
- package/dist/cli/commands/monitor.js.map +0 -1
- package/dist/cli/commands/ruv-swarm.d.ts +0 -10
- package/dist/cli/commands/ruv-swarm.d.ts.map +0 -1
- package/dist/cli/commands/ruv-swarm.js +0 -563
- package/dist/cli/commands/ruv-swarm.js.map +0 -1
- package/dist/cli/commands/session.d.ts +0 -6
- package/dist/cli/commands/session.d.ts.map +0 -1
- package/dist/cli/commands/session.js +0 -543
- package/dist/cli/commands/session.js.map +0 -1
- package/dist/cli/commands/sparc.d.ts +0 -3
- package/dist/cli/commands/sparc.d.ts.map +0 -1
- package/dist/cli/commands/sparc.js +0 -452
- package/dist/cli/commands/sparc.js.map +0 -1
- package/dist/cli/commands/start/event-emitter.d.ts +0 -13
- package/dist/cli/commands/start/event-emitter.d.ts.map +0 -1
- package/dist/cli/commands/start/event-emitter.js +0 -35
- package/dist/cli/commands/start/event-emitter.js.map +0 -1
- package/dist/cli/commands/start/index.d.ts +0 -10
- package/dist/cli/commands/start/index.d.ts.map +0 -1
- package/dist/cli/commands/start/index.js +0 -9
- package/dist/cli/commands/start/index.js.map +0 -1
- package/dist/cli/commands/start/process-manager.d.ts +0 -31
- package/dist/cli/commands/start/process-manager.d.ts.map +0 -1
- package/dist/cli/commands/start/process-manager.js +0 -281
- package/dist/cli/commands/start/process-manager.js.map +0 -1
- package/dist/cli/commands/start/process-ui-simple.d.ts +0 -25
- package/dist/cli/commands/start/process-ui-simple.d.ts.map +0 -1
- package/dist/cli/commands/start/process-ui-simple.js +0 -334
- package/dist/cli/commands/start/process-ui-simple.js.map +0 -1
- package/dist/cli/commands/start/process-ui.d.ts +0 -5
- package/dist/cli/commands/start/process-ui.d.ts.map +0 -1
- package/dist/cli/commands/start/process-ui.js +0 -5
- package/dist/cli/commands/start/process-ui.js.map +0 -1
- package/dist/cli/commands/start/start-command.d.ts +0 -6
- package/dist/cli/commands/start/start-command.d.ts.map +0 -1
- package/dist/cli/commands/start/start-command.js +0 -450
- package/dist/cli/commands/start/start-command.js.map +0 -1
- package/dist/cli/commands/start/system-monitor.d.ts +0 -22
- package/dist/cli/commands/start/system-monitor.d.ts.map +0 -1
- package/dist/cli/commands/start/system-monitor.js +0 -267
- package/dist/cli/commands/start/system-monitor.js.map +0 -1
- package/dist/cli/commands/start/types.d.ts +0 -64
- package/dist/cli/commands/start/types.d.ts.map +0 -1
- package/dist/cli/commands/start/types.js +0 -22
- package/dist/cli/commands/start/types.js.map +0 -1
- package/dist/cli/commands/start.d.ts +0 -6
- package/dist/cli/commands/start.d.ts.map +0 -1
- package/dist/cli/commands/start.js +0 -6
- package/dist/cli/commands/start.js.map +0 -1
- package/dist/cli/commands/status.d.ts +0 -6
- package/dist/cli/commands/status.d.ts.map +0 -1
- package/dist/cli/commands/status.js +0 -312
- package/dist/cli/commands/status.js.map +0 -1
- package/dist/cli/commands/swarm-new.d.ts +0 -3
- package/dist/cli/commands/swarm-new.d.ts.map +0 -1
- package/dist/cli/commands/swarm-new.js +0 -989
- package/dist/cli/commands/swarm-new.js.map +0 -1
- package/dist/cli/commands/swarm-spawn.d.ts +0 -24
- package/dist/cli/commands/swarm-spawn.d.ts.map +0 -1
- package/dist/cli/commands/swarm-spawn.js +0 -52
- package/dist/cli/commands/swarm-spawn.js.map +0 -1
- package/dist/cli/commands/swarm.d.ts +0 -3
- package/dist/cli/commands/swarm.d.ts.map +0 -1
- package/dist/cli/commands/swarm.js +0 -460
- package/dist/cli/commands/swarm.js.map +0 -1
- package/dist/cli/commands/task.d.ts +0 -6
- package/dist/cli/commands/task.d.ts.map +0 -1
- package/dist/cli/commands/task.js +0 -72
- package/dist/cli/commands/task.js.map +0 -1
- package/dist/cli/commands/workflow.d.ts +0 -6
- package/dist/cli/commands/workflow.d.ts.map +0 -1
- package/dist/cli/commands/workflow.js +0 -618
- package/dist/cli/commands/workflow.js.map +0 -1
- package/dist/cli/completion.d.ts +0 -16
- package/dist/cli/completion.d.ts.map +0 -1
- package/dist/cli/completion.js +0 -535
- package/dist/cli/completion.js.map +0 -1
- package/dist/cli/formatter.d.ts +0 -66
- package/dist/cli/formatter.d.ts.map +0 -1
- package/dist/cli/formatter.js +0 -277
- package/dist/cli/formatter.js.map +0 -1
- package/dist/cli/index-remote.d.ts +0 -3
- package/dist/cli/index-remote.d.ts.map +0 -1
- package/dist/cli/index-remote.js +0 -126
- package/dist/cli/index-remote.js.map +0 -1
- package/dist/cli/index.d.ts +0 -7
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/index.js +0 -197
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/init/batch-tools.d.ts +0 -2
- package/dist/cli/init/batch-tools.d.ts.map +0 -1
- package/dist/cli/init/batch-tools.js +0 -387
- package/dist/cli/init/batch-tools.js.map +0 -1
- package/dist/cli/init/claude-config.d.ts +0 -3
- package/dist/cli/init/claude-config.d.ts.map +0 -1
- package/dist/cli/init/claude-config.js +0 -289
- package/dist/cli/init/claude-config.js.map +0 -1
- package/dist/cli/init/directory-structure.d.ts +0 -2
- package/dist/cli/init/directory-structure.d.ts.map +0 -1
- package/dist/cli/init/directory-structure.js +0 -144
- package/dist/cli/init/directory-structure.js.map +0 -1
- package/dist/cli/init/index.d.ts +0 -6
- package/dist/cli/init/index.d.ts.map +0 -1
- package/dist/cli/init/index.js +0 -52
- package/dist/cli/init/index.js.map +0 -1
- package/dist/cli/init/sparc-environment.d.ts +0 -2
- package/dist/cli/init/sparc-environment.d.ts.map +0 -1
- package/dist/cli/init/sparc-environment.js +0 -426
- package/dist/cli/init/sparc-environment.js.map +0 -1
- package/dist/cli/init/swarm-commands.d.ts +0 -2
- package/dist/cli/init/swarm-commands.d.ts.map +0 -1
- package/dist/cli/init/swarm-commands.js +0 -795
- package/dist/cli/init/swarm-commands.js.map +0 -1
- package/dist/cli/init/utils.d.ts +0 -5
- package/dist/cli/init/utils.d.ts.map +0 -1
- package/dist/cli/init/utils.js +0 -14
- package/dist/cli/init/utils.js.map +0 -1
- package/dist/cli/main.d.ts +0 -3
- package/dist/cli/main.d.ts.map +0 -1
- package/dist/cli/main.js +0 -26
- package/dist/cli/main.js.map +0 -1
- package/dist/cli/node-repl.d.ts +0 -5
- package/dist/cli/node-repl.d.ts.map +0 -1
- package/dist/cli/node-repl.js +0 -677
- package/dist/cli/node-repl.js.map +0 -1
- package/dist/cli/repl.d.ts +0 -5
- package/dist/cli/repl.d.ts.map +0 -1
- package/dist/cli/repl.js +0 -909
- package/dist/cli/repl.js.map +0 -1
- package/dist/cli/simple-cli.d.ts +0 -3
- package/dist/cli/simple-cli.d.ts.map +0 -1
- package/dist/cli/simple-cli.js +0 -3059
- package/dist/cli/simple-cli.js.map +0 -1
- package/dist/cli/simple-mcp.d.ts +0 -6
- package/dist/cli/simple-mcp.d.ts.map +0 -1
- package/dist/cli/simple-mcp.js +0 -107
- package/dist/cli/simple-mcp.js.map +0 -1
- package/dist/cli/simple-orchestrator.d.ts +0 -16
- package/dist/cli/simple-orchestrator.d.ts.map +0 -1
- package/dist/cli/simple-orchestrator.js +0 -833
- package/dist/cli/simple-orchestrator.js.map +0 -1
- package/dist/cli/ui/compatible-ui.d.ts +0 -45
- package/dist/cli/ui/compatible-ui.d.ts.map +0 -1
- package/dist/cli/ui/compatible-ui.js +0 -318
- package/dist/cli/ui/compatible-ui.js.map +0 -1
- package/dist/cli/ui/fallback-handler.d.ts +0 -26
- package/dist/cli/ui/fallback-handler.d.ts.map +0 -1
- package/dist/cli/ui/fallback-handler.js +0 -163
- package/dist/cli/ui/fallback-handler.js.map +0 -1
- package/dist/cli/ui/index.d.ts +0 -11
- package/dist/cli/ui/index.d.ts.map +0 -1
- package/dist/cli/ui/index.js +0 -33
- package/dist/cli/ui/index.js.map +0 -1
- package/dist/cli/utils/environment-detector.d.ts +0 -52
- package/dist/cli/utils/environment-detector.d.ts.map +0 -1
- package/dist/cli/utils/environment-detector.js +0 -238
- package/dist/cli/utils/environment-detector.js.map +0 -1
- package/dist/cli/utils/prompt-defaults.d.ts +0 -82
- package/dist/cli/utils/prompt-defaults.d.ts.map +0 -1
- package/dist/cli/utils/prompt-defaults.js +0 -253
- package/dist/cli/utils/prompt-defaults.js.map +0 -1
- package/dist/communication/message-bus.d.ts +0 -283
- package/dist/communication/message-bus.d.ts.map +0 -1
- package/dist/communication/message-bus.js +0 -954
- package/dist/communication/message-bus.js.map +0 -1
- package/dist/config/config-manager.d.ts +0 -174
- package/dist/config/config-manager.d.ts.map +0 -1
- package/dist/config/config-manager.js +0 -443
- package/dist/config/config-manager.js.map +0 -1
- package/dist/config/ruv-swarm-config.d.ts +0 -167
- package/dist/config/ruv-swarm-config.d.ts.map +0 -1
- package/dist/config/ruv-swarm-config.js +0 -274
- package/dist/config/ruv-swarm-config.js.map +0 -1
- package/dist/config/ruv-swarm-integration.d.ts +0 -93
- package/dist/config/ruv-swarm-integration.d.ts.map +0 -1
- package/dist/config/ruv-swarm-integration.js +0 -292
- package/dist/config/ruv-swarm-integration.js.map +0 -1
- package/dist/constants/agent-types.d.ts +0 -46
- package/dist/constants/agent-types.d.ts.map +0 -1
- package/dist/constants/agent-types.js +0 -50
- package/dist/constants/agent-types.js.map +0 -1
- package/dist/coordination/advanced-scheduler.d.ts +0 -121
- package/dist/coordination/advanced-scheduler.d.ts.map +0 -1
- package/dist/coordination/advanced-scheduler.js +0 -386
- package/dist/coordination/advanced-scheduler.js.map +0 -1
- package/dist/coordination/advanced-task-executor.d.ts +0 -100
- package/dist/coordination/advanced-task-executor.d.ts.map +0 -1
- package/dist/coordination/advanced-task-executor.js +0 -459
- package/dist/coordination/advanced-task-executor.js.map +0 -1
- package/dist/coordination/background-executor.d.ts +0 -69
- package/dist/coordination/background-executor.d.ts.map +0 -1
- package/dist/coordination/background-executor.js +0 -362
- package/dist/coordination/background-executor.js.map +0 -1
- package/dist/coordination/circuit-breaker.d.ts +0 -124
- package/dist/coordination/circuit-breaker.d.ts.map +0 -1
- package/dist/coordination/circuit-breaker.js +0 -298
- package/dist/coordination/circuit-breaker.js.map +0 -1
- package/dist/coordination/conflict-resolution.d.ts +0 -133
- package/dist/coordination/conflict-resolution.d.ts.map +0 -1
- package/dist/coordination/conflict-resolution.js +0 -358
- package/dist/coordination/conflict-resolution.js.map +0 -1
- package/dist/coordination/dependency-graph.d.ts +0 -78
- package/dist/coordination/dependency-graph.d.ts.map +0 -1
- package/dist/coordination/dependency-graph.js +0 -386
- package/dist/coordination/dependency-graph.js.map +0 -1
- package/dist/coordination/hive-orchestrator.d.ts +0 -118
- package/dist/coordination/hive-orchestrator.d.ts.map +0 -1
- package/dist/coordination/hive-orchestrator.js +0 -321
- package/dist/coordination/hive-orchestrator.js.map +0 -1
- package/dist/coordination/hive-protocol.d.ts +0 -117
- package/dist/coordination/hive-protocol.d.ts.map +0 -1
- package/dist/coordination/hive-protocol.js +0 -373
- package/dist/coordination/hive-protocol.js.map +0 -1
- package/dist/coordination/index.d.ts +0 -14
- package/dist/coordination/index.d.ts.map +0 -1
- package/dist/coordination/index.js +0 -21
- package/dist/coordination/index.js.map +0 -1
- package/dist/coordination/load-balancer.d.ts +0 -139
- package/dist/coordination/load-balancer.d.ts.map +0 -1
- package/dist/coordination/load-balancer.js +0 -691
- package/dist/coordination/load-balancer.js.map +0 -1
- package/dist/coordination/manager.d.ts +0 -66
- package/dist/coordination/manager.d.ts.map +0 -1
- package/dist/coordination/manager.js +0 -360
- package/dist/coordination/manager.js.map +0 -1
- package/dist/coordination/messaging.d.ts +0 -37
- package/dist/coordination/messaging.d.ts.map +0 -1
- package/dist/coordination/messaging.js +0 -219
- package/dist/coordination/messaging.js.map +0 -1
- package/dist/coordination/metrics.d.ts +0 -153
- package/dist/coordination/metrics.d.ts.map +0 -1
- package/dist/coordination/metrics.js +0 -434
- package/dist/coordination/metrics.js.map +0 -1
- package/dist/coordination/resources.d.ts +0 -36
- package/dist/coordination/resources.d.ts.map +0 -1
- package/dist/coordination/resources.js +0 -250
- package/dist/coordination/resources.js.map +0 -1
- package/dist/coordination/scheduler.d.ts +0 -48
- package/dist/coordination/scheduler.d.ts.map +0 -1
- package/dist/coordination/scheduler.js +0 -308
- package/dist/coordination/scheduler.js.map +0 -1
- package/dist/coordination/swarm-coordinator.d.ts +0 -116
- package/dist/coordination/swarm-coordinator.d.ts.map +0 -1
- package/dist/coordination/swarm-coordinator.js +0 -565
- package/dist/coordination/swarm-coordinator.js.map +0 -1
- package/dist/coordination/swarm-monitor.d.ts +0 -101
- package/dist/coordination/swarm-monitor.d.ts.map +0 -1
- package/dist/coordination/swarm-monitor.js +0 -340
- package/dist/coordination/swarm-monitor.js.map +0 -1
- package/dist/coordination/work-stealing.d.ts +0 -44
- package/dist/coordination/work-stealing.d.ts.map +0 -1
- package/dist/coordination/work-stealing.js +0 -155
- package/dist/coordination/work-stealing.js.map +0 -1
- package/dist/core/config.d.ts +0 -239
- package/dist/core/config.d.ts.map +0 -1
- package/dist/core/config.js +0 -1128
- package/dist/core/config.js.map +0 -1
- package/dist/core/event-bus.d.ts +0 -60
- package/dist/core/event-bus.d.ts.map +0 -1
- package/dist/core/event-bus.js +0 -153
- package/dist/core/event-bus.js.map +0 -1
- package/dist/core/json-persistence.d.ts +0 -52
- package/dist/core/json-persistence.d.ts.map +0 -1
- package/dist/core/json-persistence.js +0 -115
- package/dist/core/json-persistence.js.map +0 -1
- package/dist/core/logger.d.ts +0 -57
- package/dist/core/logger.d.ts.map +0 -1
- package/dist/core/logger.js +0 -253
- package/dist/core/logger.js.map +0 -1
- package/dist/core/orchestrator-fixed.d.ts +0 -81
- package/dist/core/orchestrator-fixed.d.ts.map +0 -1
- package/dist/core/orchestrator-fixed.js +0 -210
- package/dist/core/orchestrator-fixed.js.map +0 -1
- package/dist/core/orchestrator.d.ts +0 -103
- package/dist/core/orchestrator.d.ts.map +0 -1
- package/dist/core/orchestrator.js +0 -965
- package/dist/core/orchestrator.js.map +0 -1
- package/dist/core/persistence.d.ts +0 -50
- package/dist/core/persistence.d.ts.map +0 -1
- package/dist/core/persistence.js +0 -186
- package/dist/core/persistence.js.map +0 -1
- package/dist/enterprise/analytics-manager.d.ts +0 -489
- package/dist/enterprise/analytics-manager.d.ts.map +0 -1
- package/dist/enterprise/analytics-manager.js +0 -949
- package/dist/enterprise/analytics-manager.js.map +0 -1
- package/dist/enterprise/audit-manager.d.ts +0 -459
- package/dist/enterprise/audit-manager.d.ts.map +0 -1
- package/dist/enterprise/audit-manager.js +0 -992
- package/dist/enterprise/audit-manager.js.map +0 -1
- package/dist/enterprise/cloud-manager.d.ts +0 -435
- package/dist/enterprise/cloud-manager.d.ts.map +0 -1
- package/dist/enterprise/cloud-manager.js +0 -784
- package/dist/enterprise/cloud-manager.js.map +0 -1
- package/dist/enterprise/deployment-manager.d.ts +0 -328
- package/dist/enterprise/deployment-manager.d.ts.map +0 -1
- package/dist/enterprise/deployment-manager.js +0 -823
- package/dist/enterprise/deployment-manager.js.map +0 -1
- package/dist/enterprise/index.d.ts +0 -13
- package/dist/enterprise/index.d.ts.map +0 -1
- package/dist/enterprise/index.js +0 -7
- package/dist/enterprise/index.js.map +0 -1
- package/dist/enterprise/project-manager.d.ts +0 -228
- package/dist/enterprise/project-manager.d.ts.map +0 -1
- package/dist/enterprise/project-manager.js +0 -529
- package/dist/enterprise/project-manager.js.map +0 -1
- package/dist/enterprise/security-manager.d.ts +0 -422
- package/dist/enterprise/security-manager.d.ts.map +0 -1
- package/dist/enterprise/security-manager.js +0 -902
- package/dist/enterprise/security-manager.js.map +0 -1
- package/dist/hive-mind/core/Agent.d.ts +0 -137
- package/dist/hive-mind/core/Agent.d.ts.map +0 -1
- package/dist/hive-mind/core/Agent.js +0 -567
- package/dist/hive-mind/core/Agent.js.map +0 -1
- package/dist/hive-mind/core/Communication.d.ts +0 -116
- package/dist/hive-mind/core/Communication.d.ts.map +0 -1
- package/dist/hive-mind/core/Communication.js +0 -407
- package/dist/hive-mind/core/Communication.js.map +0 -1
- package/dist/hive-mind/core/DatabaseManager.d.ts +0 -93
- package/dist/hive-mind/core/DatabaseManager.d.ts.map +0 -1
- package/dist/hive-mind/core/DatabaseManager.js +0 -551
- package/dist/hive-mind/core/DatabaseManager.js.map +0 -1
- package/dist/hive-mind/core/HiveMind.d.ts +0 -90
- package/dist/hive-mind/core/HiveMind.d.ts.map +0 -1
- package/dist/hive-mind/core/HiveMind.js +0 -439
- package/dist/hive-mind/core/HiveMind.js.map +0 -1
- package/dist/hive-mind/core/Memory.d.ts +0 -235
- package/dist/hive-mind/core/Memory.d.ts.map +0 -1
- package/dist/hive-mind/core/Memory.js +0 -1185
- package/dist/hive-mind/core/Memory.js.map +0 -1
- package/dist/hive-mind/core/MemoryMonitor.d.ts +0 -183
- package/dist/hive-mind/core/MemoryMonitor.d.ts.map +0 -1
- package/dist/hive-mind/core/MemoryMonitor.js +0 -547
- package/dist/hive-mind/core/MemoryMonitor.js.map +0 -1
- package/dist/hive-mind/core/Queen.d.ts +0 -115
- package/dist/hive-mind/core/Queen.d.ts.map +0 -1
- package/dist/hive-mind/core/Queen.js +0 -586
- package/dist/hive-mind/core/Queen.js.map +0 -1
- package/dist/hive-mind/index.d.ts +0 -17
- package/dist/hive-mind/index.d.ts.map +0 -1
- package/dist/hive-mind/index.js +0 -21
- package/dist/hive-mind/index.js.map +0 -1
- package/dist/hive-mind/integration/ConsensusEngine.d.ts +0 -117
- package/dist/hive-mind/integration/ConsensusEngine.d.ts.map +0 -1
- package/dist/hive-mind/integration/ConsensusEngine.js +0 -476
- package/dist/hive-mind/integration/ConsensusEngine.js.map +0 -1
- package/dist/hive-mind/integration/MCPToolWrapper.d.ts +0 -172
- package/dist/hive-mind/integration/MCPToolWrapper.d.ts.map +0 -1
- package/dist/hive-mind/integration/MCPToolWrapper.js +0 -216
- package/dist/hive-mind/integration/MCPToolWrapper.js.map +0 -1
- package/dist/hive-mind/integration/SwarmOrchestrator.d.ts +0 -172
- package/dist/hive-mind/integration/SwarmOrchestrator.d.ts.map +0 -1
- package/dist/hive-mind/integration/SwarmOrchestrator.js +0 -746
- package/dist/hive-mind/integration/SwarmOrchestrator.js.map +0 -1
- package/dist/hive-mind/types.d.ts +0 -298
- package/dist/hive-mind/types.d.ts.map +0 -1
- package/dist/hive-mind/types.js +0 -7
- package/dist/hive-mind/types.js.map +0 -1
- package/dist/integration/mock-components.d.ts +0 -107
- package/dist/integration/mock-components.d.ts.map +0 -1
- package/dist/integration/mock-components.js +0 -357
- package/dist/integration/mock-components.js.map +0 -1
- package/dist/integration/system-integration.d.ts +0 -84
- package/dist/integration/system-integration.d.ts.map +0 -1
- package/dist/integration/system-integration.js +0 -429
- package/dist/integration/system-integration.js.map +0 -1
- package/dist/integration/types.d.ts +0 -119
- package/dist/integration/types.d.ts.map +0 -1
- package/dist/integration/types.js +0 -5
- package/dist/integration/types.js.map +0 -1
- package/dist/mcp/auth.d.ts +0 -80
- package/dist/mcp/auth.d.ts.map +0 -1
- package/dist/mcp/auth.js +0 -343
- package/dist/mcp/auth.js.map +0 -1
- package/dist/mcp/claude-code-wrapper.d.ts +0 -26
- package/dist/mcp/claude-code-wrapper.d.ts.map +0 -1
- package/dist/mcp/claude-code-wrapper.js +0 -598
- package/dist/mcp/claude-code-wrapper.js.map +0 -1
- package/dist/mcp/claude-flow-tools.d.ts +0 -13
- package/dist/mcp/claude-flow-tools.d.ts.map +0 -1
- package/dist/mcp/claude-flow-tools.js +0 -1142
- package/dist/mcp/claude-flow-tools.js.map +0 -1
- package/dist/mcp/client.d.ts +0 -41
- package/dist/mcp/client.d.ts.map +0 -1
- package/dist/mcp/client.js +0 -194
- package/dist/mcp/client.js.map +0 -1
- package/dist/mcp/index.d.ts +0 -134
- package/dist/mcp/index.d.ts.map +0 -1
- package/dist/mcp/index.js +0 -212
- package/dist/mcp/index.js.map +0 -1
- package/dist/mcp/integrate-wrapper.d.ts +0 -16
- package/dist/mcp/integrate-wrapper.d.ts.map +0 -1
- package/dist/mcp/integrate-wrapper.js +0 -77
- package/dist/mcp/integrate-wrapper.js.map +0 -1
- package/dist/mcp/lifecycle-manager.d.ts +0 -121
- package/dist/mcp/lifecycle-manager.d.ts.map +0 -1
- package/dist/mcp/lifecycle-manager.js +0 -365
- package/dist/mcp/lifecycle-manager.js.map +0 -1
- package/dist/mcp/load-balancer.d.ts +0 -88
- package/dist/mcp/load-balancer.d.ts.map +0 -1
- package/dist/mcp/load-balancer.js +0 -389
- package/dist/mcp/load-balancer.js.map +0 -1
- package/dist/mcp/orchestration-integration.d.ts +0 -135
- package/dist/mcp/orchestration-integration.d.ts.map +0 -1
- package/dist/mcp/orchestration-integration.js +0 -722
- package/dist/mcp/orchestration-integration.js.map +0 -1
- package/dist/mcp/performance-monitor.d.ts +0 -164
- package/dist/mcp/performance-monitor.d.ts.map +0 -1
- package/dist/mcp/performance-monitor.js +0 -478
- package/dist/mcp/performance-monitor.js.map +0 -1
- package/dist/mcp/protocol-manager.d.ts +0 -88
- package/dist/mcp/protocol-manager.d.ts.map +0 -1
- package/dist/mcp/protocol-manager.js +0 -358
- package/dist/mcp/protocol-manager.js.map +0 -1
- package/dist/mcp/recovery/connection-health-monitor.d.ts +0 -69
- package/dist/mcp/recovery/connection-health-monitor.d.ts.map +0 -1
- package/dist/mcp/recovery/connection-health-monitor.js +0 -241
- package/dist/mcp/recovery/connection-health-monitor.js.map +0 -1
- package/dist/mcp/recovery/connection-state-manager.d.ts +0 -102
- package/dist/mcp/recovery/connection-state-manager.d.ts.map +0 -1
- package/dist/mcp/recovery/connection-state-manager.js +0 -318
- package/dist/mcp/recovery/connection-state-manager.js.map +0 -1
- package/dist/mcp/recovery/fallback-coordinator.d.ts +0 -79
- package/dist/mcp/recovery/fallback-coordinator.d.ts.map +0 -1
- package/dist/mcp/recovery/fallback-coordinator.js +0 -278
- package/dist/mcp/recovery/fallback-coordinator.js.map +0 -1
- package/dist/mcp/recovery/index.d.ts +0 -10
- package/dist/mcp/recovery/index.d.ts.map +0 -1
- package/dist/mcp/recovery/index.js +0 -10
- package/dist/mcp/recovery/index.js.map +0 -1
- package/dist/mcp/recovery/reconnection-manager.d.ts +0 -69
- package/dist/mcp/recovery/reconnection-manager.d.ts.map +0 -1
- package/dist/mcp/recovery/reconnection-manager.js +0 -226
- package/dist/mcp/recovery/reconnection-manager.js.map +0 -1
- package/dist/mcp/recovery/recovery-manager.d.ts +0 -93
- package/dist/mcp/recovery/recovery-manager.d.ts.map +0 -1
- package/dist/mcp/recovery/recovery-manager.js +0 -250
- package/dist/mcp/recovery/recovery-manager.js.map +0 -1
- package/dist/mcp/router.d.ts +0 -54
- package/dist/mcp/router.d.ts.map +0 -1
- package/dist/mcp/router.js +0 -201
- package/dist/mcp/router.js.map +0 -1
- package/dist/mcp/ruv-swarm-tools.d.ts +0 -58
- package/dist/mcp/ruv-swarm-tools.d.ts.map +0 -1
- package/dist/mcp/ruv-swarm-tools.js +0 -518
- package/dist/mcp/ruv-swarm-tools.js.map +0 -1
- package/dist/mcp/server-with-wrapper.d.ts +0 -3
- package/dist/mcp/server-with-wrapper.d.ts.map +0 -1
- package/dist/mcp/server-with-wrapper.js +0 -36
- package/dist/mcp/server-with-wrapper.js.map +0 -1
- package/dist/mcp/server-wrapper-mode.d.ts +0 -3
- package/dist/mcp/server-wrapper-mode.d.ts.map +0 -1
- package/dist/mcp/server-wrapper-mode.js +0 -28
- package/dist/mcp/server-wrapper-mode.js.map +0 -1
- package/dist/mcp/server.d.ts +0 -75
- package/dist/mcp/server.d.ts.map +0 -1
- package/dist/mcp/server.js +0 -533
- package/dist/mcp/server.js.map +0 -1
- package/dist/mcp/session-manager.d.ts +0 -60
- package/dist/mcp/session-manager.d.ts.map +0 -1
- package/dist/mcp/session-manager.js +0 -322
- package/dist/mcp/session-manager.js.map +0 -1
- package/dist/mcp/sparc-modes.d.ts +0 -12
- package/dist/mcp/sparc-modes.d.ts.map +0 -1
- package/dist/mcp/sparc-modes.js +0 -370
- package/dist/mcp/sparc-modes.js.map +0 -1
- package/dist/mcp/swarm-tools.d.ts +0 -87
- package/dist/mcp/swarm-tools.d.ts.map +0 -1
- package/dist/mcp/swarm-tools.js +0 -711
- package/dist/mcp/swarm-tools.js.map +0 -1
- package/dist/mcp/tools.d.ts +0 -145
- package/dist/mcp/tools.d.ts.map +0 -1
- package/dist/mcp/tools.js +0 -418
- package/dist/mcp/tools.js.map +0 -1
- package/dist/mcp/transports/base.d.ts +0 -22
- package/dist/mcp/transports/base.d.ts.map +0 -1
- package/dist/mcp/transports/base.js +0 -2
- package/dist/mcp/transports/base.js.map +0 -1
- package/dist/mcp/transports/http.d.ts +0 -45
- package/dist/mcp/transports/http.d.ts.map +0 -1
- package/dist/mcp/transports/http.js +0 -400
- package/dist/mcp/transports/http.js.map +0 -1
- package/dist/mcp/transports/stdio.d.ts +0 -34
- package/dist/mcp/transports/stdio.d.ts.map +0 -1
- package/dist/mcp/transports/stdio.js +0 -203
- package/dist/mcp/transports/stdio.js.map +0 -1
- package/dist/memory/advanced-memory-manager.d.ts +0 -303
- package/dist/memory/advanced-memory-manager.d.ts.map +0 -1
- package/dist/memory/advanced-memory-manager.js +0 -1458
- package/dist/memory/advanced-memory-manager.js.map +0 -1
- package/dist/memory/backends/base.d.ts +0 -21
- package/dist/memory/backends/base.d.ts.map +0 -1
- package/dist/memory/backends/base.js +0 -2
- package/dist/memory/backends/base.js.map +0 -1
- package/dist/memory/backends/markdown.d.ts +0 -32
- package/dist/memory/backends/markdown.d.ts.map +0 -1
- package/dist/memory/backends/markdown.js +0 -223
- package/dist/memory/backends/markdown.js.map +0 -1
- package/dist/memory/backends/sqlite.d.ts +0 -29
- package/dist/memory/backends/sqlite.d.ts.map +0 -1
- package/dist/memory/backends/sqlite.js +0 -272
- package/dist/memory/backends/sqlite.js.map +0 -1
- package/dist/memory/cache.d.ts +0 -65
- package/dist/memory/cache.d.ts.map +0 -1
- package/dist/memory/cache.js +0 -186
- package/dist/memory/cache.js.map +0 -1
- package/dist/memory/distributed-memory.d.ts +0 -188
- package/dist/memory/distributed-memory.d.ts.map +0 -1
- package/dist/memory/distributed-memory.js +0 -711
- package/dist/memory/distributed-memory.js.map +0 -1
- package/dist/memory/indexer.d.ts +0 -52
- package/dist/memory/indexer.d.ts.map +0 -1
- package/dist/memory/indexer.js +0 -188
- package/dist/memory/indexer.js.map +0 -1
- package/dist/memory/manager.d.ts +0 -58
- package/dist/memory/manager.d.ts.map +0 -1
- package/dist/memory/manager.js +0 -426
- package/dist/memory/manager.js.map +0 -1
- package/dist/memory/swarm-memory.d.ts +0 -91
- package/dist/memory/swarm-memory.d.ts.map +0 -1
- package/dist/memory/swarm-memory.js +0 -461
- package/dist/memory/swarm-memory.js.map +0 -1
- package/dist/migration/index.d.ts +0 -3
- package/dist/migration/index.d.ts.map +0 -1
- package/dist/migration/index.js +0 -166
- package/dist/migration/index.js.map +0 -1
- package/dist/migration/logger.d.ts +0 -26
- package/dist/migration/logger.d.ts.map +0 -1
- package/dist/migration/logger.js +0 -145
- package/dist/migration/logger.js.map +0 -1
- package/dist/migration/migration-analyzer.d.ts +0 -15
- package/dist/migration/migration-analyzer.d.ts.map +0 -1
- package/dist/migration/migration-analyzer.js +0 -279
- package/dist/migration/migration-analyzer.js.map +0 -1
- package/dist/migration/migration-runner.d.ts +0 -26
- package/dist/migration/migration-runner.d.ts.map +0 -1
- package/dist/migration/migration-runner.js +0 -499
- package/dist/migration/migration-runner.js.map +0 -1
- package/dist/migration/migration-validator.d.ts +0 -14
- package/dist/migration/migration-validator.d.ts.map +0 -1
- package/dist/migration/migration-validator.js +0 -313
- package/dist/migration/migration-validator.js.map +0 -1
- package/dist/migration/progress-reporter.d.ts +0 -25
- package/dist/migration/progress-reporter.d.ts.map +0 -1
- package/dist/migration/progress-reporter.js +0 -163
- package/dist/migration/progress-reporter.js.map +0 -1
- package/dist/migration/rollback-manager.d.ts +0 -21
- package/dist/migration/rollback-manager.d.ts.map +0 -1
- package/dist/migration/rollback-manager.js +0 -348
- package/dist/migration/rollback-manager.js.map +0 -1
- package/dist/migration/types.d.ts +0 -103
- package/dist/migration/types.d.ts.map +0 -1
- package/dist/migration/types.js +0 -6
- package/dist/migration/types.js.map +0 -1
- package/dist/monitoring/diagnostics.d.ts +0 -109
- package/dist/monitoring/diagnostics.d.ts.map +0 -1
- package/dist/monitoring/diagnostics.js +0 -545
- package/dist/monitoring/diagnostics.js.map +0 -1
- package/dist/monitoring/health-check.d.ts +0 -91
- package/dist/monitoring/health-check.d.ts.map +0 -1
- package/dist/monitoring/health-check.js +0 -371
- package/dist/monitoring/health-check.js.map +0 -1
- package/dist/monitoring/real-time-monitor.d.ts +0 -230
- package/dist/monitoring/real-time-monitor.d.ts.map +0 -1
- package/dist/monitoring/real-time-monitor.js +0 -839
- package/dist/monitoring/real-time-monitor.js.map +0 -1
- package/dist/resources/resource-manager.d.ts +0 -390
- package/dist/resources/resource-manager.d.ts.map +0 -1
- package/dist/resources/resource-manager.js +0 -1220
- package/dist/resources/resource-manager.js.map +0 -1
- package/dist/swarm/claude-flow-executor.d.ts +0 -28
- package/dist/swarm/claude-flow-executor.d.ts.map +0 -1
- package/dist/swarm/claude-flow-executor.js +0 -210
- package/dist/swarm/claude-flow-executor.js.map +0 -1
- package/dist/swarm/coordinator.d.ts +0 -134
- package/dist/swarm/coordinator.d.ts.map +0 -1
- package/dist/swarm/coordinator.js +0 -2607
- package/dist/swarm/coordinator.js.map +0 -1
- package/dist/swarm/direct-executor.d.ts +0 -48
- package/dist/swarm/direct-executor.d.ts.map +0 -1
- package/dist/swarm/direct-executor.js +0 -1113
- package/dist/swarm/direct-executor.js.map +0 -1
- package/dist/swarm/executor-v2.d.ts +0 -23
- package/dist/swarm/executor-v2.d.ts.map +0 -1
- package/dist/swarm/executor-v2.js +0 -320
- package/dist/swarm/executor-v2.js.map +0 -1
- package/dist/swarm/executor.d.ts +0 -117
- package/dist/swarm/executor.d.ts.map +0 -1
- package/dist/swarm/executor.js +0 -791
- package/dist/swarm/executor.js.map +0 -1
- package/dist/swarm/index.d.ts +0 -31
- package/dist/swarm/index.d.ts.map +0 -1
- package/dist/swarm/index.js +0 -42
- package/dist/swarm/index.js.map +0 -1
- package/dist/swarm/memory.d.ts +0 -176
- package/dist/swarm/memory.d.ts.map +0 -1
- package/dist/swarm/memory.js +0 -1068
- package/dist/swarm/memory.js.map +0 -1
- package/dist/swarm/optimizations/async-file-manager.d.ts +0 -49
- package/dist/swarm/optimizations/async-file-manager.d.ts.map +0 -1
- package/dist/swarm/optimizations/async-file-manager.js +0 -248
- package/dist/swarm/optimizations/async-file-manager.js.map +0 -1
- package/dist/swarm/optimizations/circular-buffer.d.ts +0 -46
- package/dist/swarm/optimizations/circular-buffer.d.ts.map +0 -1
- package/dist/swarm/optimizations/circular-buffer.js +0 -159
- package/dist/swarm/optimizations/circular-buffer.js.map +0 -1
- package/dist/swarm/optimizations/connection-pool.d.ts +0 -54
- package/dist/swarm/optimizations/connection-pool.d.ts.map +0 -1
- package/dist/swarm/optimizations/connection-pool.js +0 -227
- package/dist/swarm/optimizations/connection-pool.js.map +0 -1
- package/dist/swarm/optimizations/index.d.ts +0 -24
- package/dist/swarm/optimizations/index.d.ts.map +0 -1
- package/dist/swarm/optimizations/index.js +0 -30
- package/dist/swarm/optimizations/index.js.map +0 -1
- package/dist/swarm/optimizations/optimized-executor.d.ts +0 -109
- package/dist/swarm/optimizations/optimized-executor.d.ts.map +0 -1
- package/dist/swarm/optimizations/optimized-executor.js +0 -321
- package/dist/swarm/optimizations/optimized-executor.js.map +0 -1
- package/dist/swarm/optimizations/ttl-map.d.ts +0 -78
- package/dist/swarm/optimizations/ttl-map.d.ts.map +0 -1
- package/dist/swarm/optimizations/ttl-map.js +0 -229
- package/dist/swarm/optimizations/ttl-map.js.map +0 -1
- package/dist/swarm/prompt-cli.d.ts +0 -5
- package/dist/swarm/prompt-cli.d.ts.map +0 -1
- package/dist/swarm/prompt-cli.js +0 -256
- package/dist/swarm/prompt-cli.js.map +0 -1
- package/dist/swarm/prompt-copier-enhanced.d.ts +0 -17
- package/dist/swarm/prompt-copier-enhanced.d.ts.map +0 -1
- package/dist/swarm/prompt-copier-enhanced.js +0 -190
- package/dist/swarm/prompt-copier-enhanced.js.map +0 -1
- package/dist/swarm/prompt-copier.d.ts +0 -76
- package/dist/swarm/prompt-copier.d.ts.map +0 -1
- package/dist/swarm/prompt-copier.js +0 -379
- package/dist/swarm/prompt-copier.js.map +0 -1
- package/dist/swarm/prompt-manager.d.ts +0 -72
- package/dist/swarm/prompt-manager.d.ts.map +0 -1
- package/dist/swarm/prompt-manager.js +0 -270
- package/dist/swarm/prompt-manager.js.map +0 -1
- package/dist/swarm/prompt-utils.d.ts +0 -52
- package/dist/swarm/prompt-utils.d.ts.map +0 -1
- package/dist/swarm/prompt-utils.js +0 -265
- package/dist/swarm/prompt-utils.js.map +0 -1
- package/dist/swarm/sparc-executor.d.ts +0 -105
- package/dist/swarm/sparc-executor.d.ts.map +0 -1
- package/dist/swarm/sparc-executor.js +0 -1364
- package/dist/swarm/sparc-executor.js.map +0 -1
- package/dist/swarm/strategies/auto.d.ts +0 -57
- package/dist/swarm/strategies/auto.d.ts.map +0 -1
- package/dist/swarm/strategies/auto.js +0 -623
- package/dist/swarm/strategies/auto.js.map +0 -1
- package/dist/swarm/strategies/base.d.ts +0 -78
- package/dist/swarm/strategies/base.d.ts.map +0 -1
- package/dist/swarm/strategies/base.js +0 -108
- package/dist/swarm/strategies/base.js.map +0 -1
- package/dist/swarm/strategies/research.d.ts +0 -75
- package/dist/swarm/strategies/research.d.ts.map +0 -1
- package/dist/swarm/strategies/research.js +0 -841
- package/dist/swarm/strategies/research.js.map +0 -1
- package/dist/swarm/strategies/strategy-metrics-patch.d.ts +0 -11
- package/dist/swarm/strategies/strategy-metrics-patch.d.ts.map +0 -1
- package/dist/swarm/strategies/strategy-metrics-patch.js +0 -2
- package/dist/swarm/strategies/strategy-metrics-patch.js.map +0 -1
- package/dist/swarm/types.d.ts +0 -578
- package/dist/swarm/types.d.ts.map +0 -1
- package/dist/swarm/types.js +0 -51
- package/dist/swarm/types.js.map +0 -1
- package/dist/swarm/workers/copy-worker.d.ts +0 -2
- package/dist/swarm/workers/copy-worker.d.ts.map +0 -1
- package/dist/swarm/workers/copy-worker.js +0 -56
- package/dist/swarm/workers/copy-worker.js.map +0 -1
- package/dist/task/commands.d.ts +0 -60
- package/dist/task/commands.d.ts.map +0 -1
- package/dist/task/commands.js +0 -107
- package/dist/task/commands.js.map +0 -1
- package/dist/task/coordination.d.ts +0 -109
- package/dist/task/coordination.d.ts.map +0 -1
- package/dist/task/coordination.js +0 -629
- package/dist/task/coordination.js.map +0 -1
- package/dist/task/engine.d.ts +0 -198
- package/dist/task/engine.d.ts.map +0 -1
- package/dist/task/engine.js +0 -498
- package/dist/task/engine.js.map +0 -1
- package/dist/task/index.d.ts +0 -103
- package/dist/task/index.d.ts.map +0 -1
- package/dist/task/index.js +0 -276
- package/dist/task/index.js.map +0 -1
- package/dist/task/types.d.ts +0 -56
- package/dist/task/types.d.ts.map +0 -1
- package/dist/task/types.js +0 -2
- package/dist/task/types.js.map +0 -1
- package/dist/terminal/adapters/base.d.ts +0 -40
- package/dist/terminal/adapters/base.d.ts.map +0 -1
- package/dist/terminal/adapters/base.js +0 -5
- package/dist/terminal/adapters/base.js.map +0 -1
- package/dist/terminal/adapters/native.d.ts +0 -19
- package/dist/terminal/adapters/native.d.ts.map +0 -1
- package/dist/terminal/adapters/native.js +0 -414
- package/dist/terminal/adapters/native.js.map +0 -1
- package/dist/terminal/adapters/vscode.d.ts +0 -20
- package/dist/terminal/adapters/vscode.d.ts.map +0 -1
- package/dist/terminal/adapters/vscode.js +0 -265
- package/dist/terminal/adapters/vscode.js.map +0 -1
- package/dist/terminal/manager.d.ts +0 -59
- package/dist/terminal/manager.d.ts.map +0 -1
- package/dist/terminal/manager.js +0 -237
- package/dist/terminal/manager.js.map +0 -1
- package/dist/terminal/pool.d.ts +0 -32
- package/dist/terminal/pool.d.ts.map +0 -1
- package/dist/terminal/pool.js +0 -205
- package/dist/terminal/pool.js.map +0 -1
- package/dist/terminal/session.d.ts +0 -41
- package/dist/terminal/session.d.ts.map +0 -1
- package/dist/terminal/session.js +0 -206
- package/dist/terminal/session.js.map +0 -1
- package/dist/types/index.d.ts +0 -28
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -15
- package/dist/types/index.js.map +0 -1
- package/dist/ui/hive-dashboard.d.ts +0 -140
- package/dist/ui/hive-dashboard.d.ts.map +0 -1
- package/dist/ui/hive-dashboard.js +0 -281
- package/dist/ui/hive-dashboard.js.map +0 -1
- package/dist/utils/error-handler.d.ts +0 -13
- package/dist/utils/error-handler.d.ts.map +0 -1
- package/dist/utils/error-handler.js +0 -45
- package/dist/utils/error-handler.js.map +0 -1
- package/dist/utils/errors.d.ts +0 -121
- package/dist/utils/errors.d.ts.map +0 -1
- package/dist/utils/errors.js +0 -194
- package/dist/utils/errors.js.map +0 -1
- package/dist/utils/formatters.d.ts +0 -15
- package/dist/utils/formatters.d.ts.map +0 -1
- package/dist/utils/formatters.js +0 -75
- package/dist/utils/formatters.js.map +0 -1
- package/dist/utils/helpers.d.ts +0 -131
- package/dist/utils/helpers.d.ts.map +0 -1
- package/dist/utils/helpers.js +0 -447
- package/dist/utils/helpers.js.map +0 -1
- package/dist/utils/paths.d.ts +0 -4
- package/dist/utils/paths.d.ts.map +0 -1
- package/dist/utils/paths.js +0 -39
- package/dist/utils/paths.js.map +0 -1
- package/dist/utils/types.d.ts +0 -512
- package/dist/utils/types.d.ts.map +0 -1
- package/dist/utils/types.js +0 -37
- package/dist/utils/types.js.map +0 -1
- package/src/cli/commands/swarm-new.ts +0 -1111
- package/src/templates/claude-optimized/.claude/tests/README.md +0 -139
- package/src/templates/claude-optimized/.claude/tests/e2e/workflows.test.js +0 -1110
- package/src/templates/claude-optimized/.claude/tests/error-handling/batch-errors.test.js +0 -550
- package/src/templates/claude-optimized/.claude/tests/error-handling/rollback.test.js +0 -746
- package/src/templates/claude-optimized/.claude/tests/integration/architect-batch.test.js +0 -275
- package/src/templates/claude-optimized/.claude/tests/integration/code-batch.test.js +0 -467
- package/src/templates/claude-optimized/.claude/tests/integration/debug-batch.test.js +0 -490
- package/src/templates/claude-optimized/.claude/tests/integration/security-batch.test.js +0 -618
- package/src/templates/claude-optimized/.claude/tests/integration/tdd-batch.test.js +0 -522
- package/src/templates/claude-optimized/.claude/tests/performance/benchmarks.test.js +0 -609
- package/src/templates/claude-optimized/.claude/tests/performance/resource-usage.test.js +0 -520
- package/src/templates/claude-optimized/.claude/tests/test-harness.js +0 -275
- package/src/templates/claude-optimized/.claude/tests/unit/batch-operations.test.js +0 -193
- package/src/templates/claude-optimized/.claude/tests/unit/parallel-utils.test.js +0 -238
|
@@ -3,26 +3,19 @@
|
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.acorn = {}));
|
|
5
5
|
})(this, (function (exports) { 'use strict';
|
|
6
|
-
|
|
7
6
|
// This file was generated. Do not modify manually!
|
|
8
7
|
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
|
9
|
-
|
|
10
8
|
// This file was generated. Do not modify manually!
|
|
11
9
|
var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191];
|
|
12
|
-
|
|
13
10
|
// This file was generated. Do not modify manually!
|
|
14
11
|
var nonASCIIidentifierChars = "\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0897-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0cf3\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ece\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u180f-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf-\u1ace\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1dff\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\u30fb\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f\uff65";
|
|
15
|
-
|
|
16
12
|
// This file was generated. Do not modify manually!
|
|
17
13
|
var nonASCIIidentifierStartChars = "\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u0870-\u0887\u0889-\u088e\u08a0-\u08c9\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c5d\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cdd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u1711\u171f-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4c\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c8a\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7cd\ua7d0\ua7d1\ua7d3\ua7d5-\ua7dc\ua7f2-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc";
|
|
18
|
-
|
|
19
14
|
// These are a run-length and offset encoded representation of the
|
|
20
15
|
// >0xffff code points that are a valid part of identifiers. The
|
|
21
16
|
// offset starts at 0x10000, and each pair of numbers represents an
|
|
22
17
|
// offset to the next range, and then a size of the range.
|
|
23
|
-
|
|
24
18
|
// Reserved word lists for various dialects of the language
|
|
25
|
-
|
|
26
19
|
var reservedWords = {
|
|
27
20
|
3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",
|
|
28
21
|
5: "class enum extends super const export import",
|
|
@@ -30,24 +23,17 @@
|
|
|
30
23
|
strict: "implements interface let package private protected public static yield",
|
|
31
24
|
strictBind: "eval arguments"
|
|
32
25
|
};
|
|
33
|
-
|
|
34
26
|
// And the keywords
|
|
35
|
-
|
|
36
27
|
var ecma5AndLessKeywords = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this";
|
|
37
|
-
|
|
38
28
|
var keywords$1 = {
|
|
39
29
|
5: ecma5AndLessKeywords,
|
|
40
30
|
"5module": ecma5AndLessKeywords + " export import",
|
|
41
31
|
6: ecma5AndLessKeywords + " const class extends export import super"
|
|
42
32
|
};
|
|
43
|
-
|
|
44
33
|
var keywordRelationalOperator = /^in(stanceof)?$/;
|
|
45
|
-
|
|
46
34
|
// ## Character categories
|
|
47
|
-
|
|
48
35
|
var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
|
|
49
36
|
var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
|
|
50
|
-
|
|
51
37
|
// This has a complexity linear to the value of the code. The
|
|
52
38
|
// assumption is that looking up astral identifier characters is
|
|
53
39
|
// rare.
|
|
@@ -61,9 +47,7 @@
|
|
|
61
47
|
}
|
|
62
48
|
return false
|
|
63
49
|
}
|
|
64
|
-
|
|
65
50
|
// Test whether a given character code starts an identifier.
|
|
66
|
-
|
|
67
51
|
function isIdentifierStart(code, astral) {
|
|
68
52
|
if (code < 65) { return code === 36 }
|
|
69
53
|
if (code < 91) { return true }
|
|
@@ -73,9 +57,7 @@
|
|
|
73
57
|
if (astral === false) { return false }
|
|
74
58
|
return isInAstralSet(code, astralIdentifierStartCodes)
|
|
75
59
|
}
|
|
76
|
-
|
|
77
60
|
// Test whether a given character is part of an identifier.
|
|
78
|
-
|
|
79
61
|
function isIdentifierChar(code, astral) {
|
|
80
62
|
if (code < 48) { return code === 36 }
|
|
81
63
|
if (code < 58) { return true }
|
|
@@ -87,16 +69,12 @@
|
|
|
87
69
|
if (astral === false) { return false }
|
|
88
70
|
return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes)
|
|
89
71
|
}
|
|
90
|
-
|
|
91
72
|
// ## Token types
|
|
92
|
-
|
|
93
73
|
// The assignment of fine-grained, information-carrying type objects
|
|
94
74
|
// allows the tokenizer to store the information it has about a
|
|
95
75
|
// token in a way that is very cheap for the parser to look up.
|
|
96
|
-
|
|
97
76
|
// All token type variables start with an underscore, to make them
|
|
98
77
|
// easy to recognize.
|
|
99
|
-
|
|
100
78
|
// The `beforeExpr` property is used to disambiguate between regular
|
|
101
79
|
// expressions and divisions. It is set on all token types that can
|
|
102
80
|
// be followed by an expression (thus, a slash after them would be a
|
|
@@ -110,10 +88,8 @@
|
|
|
110
88
|
// `isLoop` marks a keyword as starting a loop, which is important
|
|
111
89
|
// to know when parsing a label, in order to allow or disallow
|
|
112
90
|
// continue jumps to that label.
|
|
113
|
-
|
|
114
91
|
var TokenType = function TokenType(label, conf) {
|
|
115
92
|
if ( conf === void 0 ) conf = {};
|
|
116
|
-
|
|
117
93
|
this.label = label;
|
|
118
94
|
this.keyword = conf.keyword;
|
|
119
95
|
this.beforeExpr = !!conf.beforeExpr;
|
|
@@ -125,24 +101,18 @@
|
|
|
125
101
|
this.binop = conf.binop || null;
|
|
126
102
|
this.updateContext = null;
|
|
127
103
|
};
|
|
128
|
-
|
|
129
104
|
function binop(name, prec) {
|
|
130
105
|
return new TokenType(name, {beforeExpr: true, binop: prec})
|
|
131
106
|
}
|
|
132
107
|
var beforeExpr = {beforeExpr: true}, startsExpr = {startsExpr: true};
|
|
133
|
-
|
|
134
108
|
// Map keyword names to token types.
|
|
135
|
-
|
|
136
109
|
var keywords = {};
|
|
137
|
-
|
|
138
110
|
// Succinct definitions of keyword token types
|
|
139
111
|
function kw(name, options) {
|
|
140
112
|
if ( options === void 0 ) options = {};
|
|
141
|
-
|
|
142
113
|
options.keyword = name;
|
|
143
114
|
return keywords[name] = new TokenType(name, options)
|
|
144
115
|
}
|
|
145
|
-
|
|
146
116
|
var types$1 = {
|
|
147
117
|
num: new TokenType("num", startsExpr),
|
|
148
118
|
regexp: new TokenType("regexp", startsExpr),
|
|
@@ -150,7 +120,6 @@
|
|
|
150
120
|
name: new TokenType("name", startsExpr),
|
|
151
121
|
privateId: new TokenType("privateId", startsExpr),
|
|
152
122
|
eof: new TokenType("eof"),
|
|
153
|
-
|
|
154
123
|
// Punctuation token types.
|
|
155
124
|
bracketL: new TokenType("[", {beforeExpr: true, startsExpr: true}),
|
|
156
125
|
bracketR: new TokenType("]"),
|
|
@@ -170,7 +139,6 @@
|
|
|
170
139
|
ellipsis: new TokenType("...", beforeExpr),
|
|
171
140
|
backQuote: new TokenType("`", startsExpr),
|
|
172
141
|
dollarBraceL: new TokenType("${", {beforeExpr: true, startsExpr: true}),
|
|
173
|
-
|
|
174
142
|
// Operators. These carry several kinds of properties to help the
|
|
175
143
|
// parser use them properly (the presence of these properties is
|
|
176
144
|
// what categorizes them as operators).
|
|
@@ -184,7 +152,6 @@
|
|
|
184
152
|
// `isAssign` marks all of `=`, `+=`, `-=` etcetera, which act as
|
|
185
153
|
// binary operators with a very low precedence, that should result
|
|
186
154
|
// in AssignmentExpression nodes.
|
|
187
|
-
|
|
188
155
|
eq: new TokenType("=", {beforeExpr: true, isAssign: true}),
|
|
189
156
|
assign: new TokenType("_=", {beforeExpr: true, isAssign: true}),
|
|
190
157
|
incDec: new TokenType("++/--", {prefix: true, postfix: true, startsExpr: true}),
|
|
@@ -203,7 +170,6 @@
|
|
|
203
170
|
slash: binop("/", 10),
|
|
204
171
|
starstar: new TokenType("**", {beforeExpr: true}),
|
|
205
172
|
coalesce: binop("??", 1),
|
|
206
|
-
|
|
207
173
|
// Keyword token types.
|
|
208
174
|
_break: kw("break"),
|
|
209
175
|
_case: kw("case", beforeExpr),
|
|
@@ -241,20 +207,15 @@
|
|
|
241
207
|
_void: kw("void", {beforeExpr: true, prefix: true, startsExpr: true}),
|
|
242
208
|
_delete: kw("delete", {beforeExpr: true, prefix: true, startsExpr: true})
|
|
243
209
|
};
|
|
244
|
-
|
|
245
210
|
// Matches a whole line break (where CRLF is considered a single
|
|
246
211
|
// line break). Used to count lines.
|
|
247
|
-
|
|
248
212
|
var lineBreak = /\r\n?|\n|\u2028|\u2029/;
|
|
249
213
|
var lineBreakG = new RegExp(lineBreak.source, "g");
|
|
250
|
-
|
|
251
214
|
function isNewLine(code) {
|
|
252
215
|
return code === 10 || code === 13 || code === 0x2028 || code === 0x2029
|
|
253
216
|
}
|
|
254
|
-
|
|
255
217
|
function nextLineBreak(code, from, end) {
|
|
256
218
|
if ( end === void 0 ) end = code.length;
|
|
257
|
-
|
|
258
219
|
for (var i = from; i < end; i++) {
|
|
259
220
|
var next = code.charCodeAt(i);
|
|
260
221
|
if (isNewLine(next))
|
|
@@ -262,62 +223,47 @@
|
|
|
262
223
|
}
|
|
263
224
|
return -1
|
|
264
225
|
}
|
|
265
|
-
|
|
266
226
|
var nonASCIIwhitespace = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
|
|
267
|
-
|
|
268
227
|
var skipWhiteSpace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
|
|
269
|
-
|
|
270
228
|
var ref = Object.prototype;
|
|
271
229
|
var hasOwnProperty = ref.hasOwnProperty;
|
|
272
230
|
var toString = ref.toString;
|
|
273
|
-
|
|
274
231
|
var hasOwn = Object.hasOwn || (function (obj, propName) { return (
|
|
275
232
|
hasOwnProperty.call(obj, propName)
|
|
276
233
|
); });
|
|
277
|
-
|
|
278
234
|
var isArray = Array.isArray || (function (obj) { return (
|
|
279
235
|
toString.call(obj) === "[object Array]"
|
|
280
236
|
); });
|
|
281
|
-
|
|
282
237
|
var regexpCache = Object.create(null);
|
|
283
|
-
|
|
284
238
|
function wordsRegexp(words) {
|
|
285
239
|
return regexpCache[words] || (regexpCache[words] = new RegExp("^(?:" + words.replace(/ /g, "|") + ")$"))
|
|
286
240
|
}
|
|
287
|
-
|
|
288
241
|
function codePointToString(code) {
|
|
289
242
|
// UTF-16 Decoding
|
|
290
243
|
if (code <= 0xFFFF) { return String.fromCharCode(code) }
|
|
291
244
|
code -= 0x10000;
|
|
292
245
|
return String.fromCharCode((code >> 10) + 0xD800, (code & 1023) + 0xDC00)
|
|
293
246
|
}
|
|
294
|
-
|
|
295
247
|
var loneSurrogate = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;
|
|
296
|
-
|
|
297
248
|
// These are used when `options.locations` is on, for the
|
|
298
249
|
// `startLoc` and `endLoc` properties.
|
|
299
|
-
|
|
300
250
|
var Position = function Position(line, col) {
|
|
301
251
|
this.line = line;
|
|
302
252
|
this.column = col;
|
|
303
253
|
};
|
|
304
|
-
|
|
305
254
|
Position.prototype.offset = function offset (n) {
|
|
306
255
|
return new Position(this.line, this.column + n)
|
|
307
256
|
};
|
|
308
|
-
|
|
309
257
|
var SourceLocation = function SourceLocation(p, start, end) {
|
|
310
258
|
this.start = start;
|
|
311
259
|
this.end = end;
|
|
312
260
|
if (p.sourceFile !== null) { this.source = p.sourceFile; }
|
|
313
261
|
};
|
|
314
|
-
|
|
315
262
|
// The `getLineInfo` function is mostly useful when the
|
|
316
263
|
// `locations` option is off (for performance reasons) and you
|
|
317
264
|
// want to find the line/column position for a given character
|
|
318
265
|
// offset. `input` should be the code string that the offset refers
|
|
319
266
|
// into.
|
|
320
|
-
|
|
321
267
|
function getLineInfo(input, offset) {
|
|
322
268
|
for (var line = 1, cur = 0;;) {
|
|
323
269
|
var nextBreak = nextLineBreak(input, cur, offset);
|
|
@@ -326,10 +272,8 @@
|
|
|
326
272
|
cur = nextBreak;
|
|
327
273
|
}
|
|
328
274
|
}
|
|
329
|
-
|
|
330
275
|
// A second argument must be given to configure the parser process.
|
|
331
276
|
// These options are recognized (only `ecmaVersion` is required):
|
|
332
|
-
|
|
333
277
|
var defaultOptions = {
|
|
334
278
|
// `ecmaVersion` indicates the ECMAScript version to parse. Must be
|
|
335
279
|
// either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10
|
|
@@ -427,17 +371,12 @@
|
|
|
427
371
|
// (non-standard) ParenthesizedExpression nodes
|
|
428
372
|
preserveParens: false
|
|
429
373
|
};
|
|
430
|
-
|
|
431
374
|
// Interpret and default an options object
|
|
432
|
-
|
|
433
375
|
var warnedAboutEcmaVersion = false;
|
|
434
|
-
|
|
435
376
|
function getOptions(opts) {
|
|
436
377
|
var options = {};
|
|
437
|
-
|
|
438
378
|
for (var opt in defaultOptions)
|
|
439
379
|
{ options[opt] = opts && hasOwn(opts, opt) ? opts[opt] : defaultOptions[opt]; }
|
|
440
|
-
|
|
441
380
|
if (options.ecmaVersion === "latest") {
|
|
442
381
|
options.ecmaVersion = 1e8;
|
|
443
382
|
} else if (options.ecmaVersion == null) {
|
|
@@ -449,23 +388,18 @@
|
|
|
449
388
|
} else if (options.ecmaVersion >= 2015) {
|
|
450
389
|
options.ecmaVersion -= 2009;
|
|
451
390
|
}
|
|
452
|
-
|
|
453
391
|
if (options.allowReserved == null)
|
|
454
392
|
{ options.allowReserved = options.ecmaVersion < 5; }
|
|
455
|
-
|
|
456
393
|
if (!opts || opts.allowHashBang == null)
|
|
457
394
|
{ options.allowHashBang = options.ecmaVersion >= 14; }
|
|
458
|
-
|
|
459
395
|
if (isArray(options.onToken)) {
|
|
460
396
|
var tokens = options.onToken;
|
|
461
397
|
options.onToken = function (token) { return tokens.push(token); };
|
|
462
398
|
}
|
|
463
399
|
if (isArray(options.onComment))
|
|
464
400
|
{ options.onComment = pushComment(options, options.onComment); }
|
|
465
|
-
|
|
466
401
|
return options
|
|
467
402
|
}
|
|
468
|
-
|
|
469
403
|
function pushComment(options, array) {
|
|
470
404
|
return function(block, text, start, end, startLoc, endLoc) {
|
|
471
405
|
var comment = {
|
|
@@ -481,7 +415,6 @@
|
|
|
481
415
|
array.push(comment);
|
|
482
416
|
}
|
|
483
417
|
}
|
|
484
|
-
|
|
485
418
|
// Each scope gets a bitset that may contain these flags
|
|
486
419
|
var
|
|
487
420
|
SCOPE_TOP = 1,
|
|
@@ -495,11 +428,9 @@
|
|
|
495
428
|
SCOPE_CLASS_STATIC_BLOCK = 256,
|
|
496
429
|
SCOPE_CLASS_FIELD_INIT = 512,
|
|
497
430
|
SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK;
|
|
498
|
-
|
|
499
431
|
function functionFlags(async, generator) {
|
|
500
432
|
return SCOPE_FUNCTION | (async ? SCOPE_ASYNC : 0) | (generator ? SCOPE_GENERATOR : 0)
|
|
501
433
|
}
|
|
502
|
-
|
|
503
434
|
// Used in checkLVal* and declareName to determine the type of a binding
|
|
504
435
|
var
|
|
505
436
|
BIND_NONE = 0, // Not a binding
|
|
@@ -508,7 +439,6 @@
|
|
|
508
439
|
BIND_FUNCTION = 3, // Function declaration
|
|
509
440
|
BIND_SIMPLE_CATCH = 4, // Simple (identifier pattern) catch binding
|
|
510
441
|
BIND_OUTSIDE = 5; // Special case for function names as bound inside the function
|
|
511
|
-
|
|
512
442
|
var Parser = function Parser(options, input, startPos) {
|
|
513
443
|
this.options = options = getOptions(options);
|
|
514
444
|
this.sourceFile = options.sourceFile;
|
|
@@ -523,14 +453,11 @@
|
|
|
523
453
|
this.reservedWordsStrict = wordsRegexp(reservedStrict);
|
|
524
454
|
this.reservedWordsStrictBind = wordsRegexp(reservedStrict + " " + reservedWords.strictBind);
|
|
525
455
|
this.input = String(input);
|
|
526
|
-
|
|
527
456
|
// Used to signal to callers of `readWord1` whether the word
|
|
528
457
|
// contained any escape sequences. This is needed because words with
|
|
529
458
|
// escape sequences must not be interpreted as keywords.
|
|
530
459
|
this.containsEsc = false;
|
|
531
|
-
|
|
532
460
|
// Set up token state
|
|
533
|
-
|
|
534
461
|
// The current position of the tokenizer in the input.
|
|
535
462
|
if (startPos) {
|
|
536
463
|
this.pos = startPos;
|
|
@@ -540,7 +467,6 @@
|
|
|
540
467
|
this.pos = this.lineStart = 0;
|
|
541
468
|
this.curLine = 1;
|
|
542
469
|
}
|
|
543
|
-
|
|
544
470
|
// Properties of the current token:
|
|
545
471
|
// Its type
|
|
546
472
|
this.type = types$1.eof;
|
|
@@ -551,63 +477,48 @@
|
|
|
551
477
|
// And, if locations are used, the {line, column} object
|
|
552
478
|
// corresponding to those offsets
|
|
553
479
|
this.startLoc = this.endLoc = this.curPosition();
|
|
554
|
-
|
|
555
480
|
// Position information for the previous token
|
|
556
481
|
this.lastTokEndLoc = this.lastTokStartLoc = null;
|
|
557
482
|
this.lastTokStart = this.lastTokEnd = this.pos;
|
|
558
|
-
|
|
559
483
|
// The context stack is used to superficially track syntactic
|
|
560
484
|
// context to predict whether a regular expression is allowed in a
|
|
561
485
|
// given position.
|
|
562
486
|
this.context = this.initialContext();
|
|
563
487
|
this.exprAllowed = true;
|
|
564
|
-
|
|
565
488
|
// Figure out if it's a module code.
|
|
566
489
|
this.inModule = options.sourceType === "module";
|
|
567
490
|
this.strict = this.inModule || this.strictDirective(this.pos);
|
|
568
|
-
|
|
569
491
|
// Used to signify the start of a potential arrow function
|
|
570
492
|
this.potentialArrowAt = -1;
|
|
571
493
|
this.potentialArrowInForAwait = false;
|
|
572
|
-
|
|
573
494
|
// Positions to delayed-check that yield/await does not exist in default parameters.
|
|
574
495
|
this.yieldPos = this.awaitPos = this.awaitIdentPos = 0;
|
|
575
496
|
// Labels in scope.
|
|
576
497
|
this.labels = [];
|
|
577
498
|
// Thus-far undefined exports.
|
|
578
499
|
this.undefinedExports = Object.create(null);
|
|
579
|
-
|
|
580
500
|
// If enabled, skip leading hashbang line.
|
|
581
501
|
if (this.pos === 0 && options.allowHashBang && this.input.slice(0, 2) === "#!")
|
|
582
502
|
{ this.skipLineComment(2); }
|
|
583
|
-
|
|
584
503
|
// Scope tracking for duplicate variable names (see scope.js)
|
|
585
504
|
this.scopeStack = [];
|
|
586
505
|
this.enterScope(SCOPE_TOP);
|
|
587
|
-
|
|
588
506
|
// For RegExp validation
|
|
589
507
|
this.regexpState = null;
|
|
590
|
-
|
|
591
508
|
// The stack of private names.
|
|
592
509
|
// Each element has two properties: 'declared' and 'used'.
|
|
593
510
|
// When it exited from the outermost class definition, all used private names must be declared.
|
|
594
511
|
this.privateNameStack = [];
|
|
595
512
|
};
|
|
596
|
-
|
|
597
513
|
var prototypeAccessors = { inFunction: { configurable: true },inGenerator: { configurable: true },inAsync: { configurable: true },canAwait: { configurable: true },allowSuper: { configurable: true },allowDirectSuper: { configurable: true },treatFunctionsAsVar: { configurable: true },allowNewDotTarget: { configurable: true },inClassStaticBlock: { configurable: true } };
|
|
598
|
-
|
|
599
514
|
Parser.prototype.parse = function parse () {
|
|
600
515
|
var node = this.options.program || this.startNode();
|
|
601
516
|
this.nextToken();
|
|
602
517
|
return this.parseTopLevel(node)
|
|
603
518
|
};
|
|
604
|
-
|
|
605
519
|
prototypeAccessors.inFunction.get = function () { return (this.currentVarScope().flags & SCOPE_FUNCTION) > 0 };
|
|
606
|
-
|
|
607
520
|
prototypeAccessors.inGenerator.get = function () { return (this.currentVarScope().flags & SCOPE_GENERATOR) > 0 };
|
|
608
|
-
|
|
609
521
|
prototypeAccessors.inAsync.get = function () { return (this.currentVarScope().flags & SCOPE_ASYNC) > 0 };
|
|
610
|
-
|
|
611
522
|
prototypeAccessors.canAwait.get = function () {
|
|
612
523
|
for (var i = this.scopeStack.length - 1; i >= 0; i--) {
|
|
613
524
|
var ref = this.scopeStack[i];
|
|
@@ -617,17 +528,13 @@
|
|
|
617
528
|
}
|
|
618
529
|
return (this.inModule && this.options.ecmaVersion >= 13) || this.options.allowAwaitOutsideFunction
|
|
619
530
|
};
|
|
620
|
-
|
|
621
531
|
prototypeAccessors.allowSuper.get = function () {
|
|
622
532
|
var ref = this.currentThisScope();
|
|
623
533
|
var flags = ref.flags;
|
|
624
534
|
return (flags & SCOPE_SUPER) > 0 || this.options.allowSuperOutsideMethod
|
|
625
535
|
};
|
|
626
|
-
|
|
627
536
|
prototypeAccessors.allowDirectSuper.get = function () { return (this.currentThisScope().flags & SCOPE_DIRECT_SUPER) > 0 };
|
|
628
|
-
|
|
629
537
|
prototypeAccessors.treatFunctionsAsVar.get = function () { return this.treatFunctionsAsVarInScope(this.currentScope()) };
|
|
630
|
-
|
|
631
538
|
prototypeAccessors.allowNewDotTarget.get = function () {
|
|
632
539
|
for (var i = this.scopeStack.length - 1; i >= 0; i--) {
|
|
633
540
|
var ref = this.scopeStack[i];
|
|
@@ -637,40 +544,30 @@
|
|
|
637
544
|
}
|
|
638
545
|
return false
|
|
639
546
|
};
|
|
640
|
-
|
|
641
547
|
prototypeAccessors.inClassStaticBlock.get = function () {
|
|
642
548
|
return (this.currentVarScope().flags & SCOPE_CLASS_STATIC_BLOCK) > 0
|
|
643
549
|
};
|
|
644
|
-
|
|
645
550
|
Parser.extend = function extend () {
|
|
646
551
|
var plugins = [], len = arguments.length;
|
|
647
552
|
while ( len-- ) plugins[ len ] = arguments[ len ];
|
|
648
|
-
|
|
649
553
|
var cls = this;
|
|
650
554
|
for (var i = 0; i < plugins.length; i++) { cls = plugins[i](cls); }
|
|
651
555
|
return cls
|
|
652
556
|
};
|
|
653
|
-
|
|
654
557
|
Parser.parse = function parse (input, options) {
|
|
655
558
|
return new this(options, input).parse()
|
|
656
559
|
};
|
|
657
|
-
|
|
658
560
|
Parser.parseExpressionAt = function parseExpressionAt (input, pos, options) {
|
|
659
561
|
var parser = new this(options, input, pos);
|
|
660
562
|
parser.nextToken();
|
|
661
563
|
return parser.parseExpression()
|
|
662
564
|
};
|
|
663
|
-
|
|
664
565
|
Parser.tokenizer = function tokenizer (input, options) {
|
|
665
566
|
return new this(options, input)
|
|
666
567
|
};
|
|
667
|
-
|
|
668
568
|
Object.defineProperties( Parser.prototype, prototypeAccessors );
|
|
669
|
-
|
|
670
569
|
var pp$9 = Parser.prototype;
|
|
671
|
-
|
|
672
570
|
// ## Parser utilities
|
|
673
|
-
|
|
674
571
|
var literal = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
|
|
675
572
|
pp$9.strictDirective = function(start) {
|
|
676
573
|
if (this.options.ecmaVersion < 5) { return false }
|
|
@@ -689,7 +586,6 @@
|
|
|
689
586
|
!(/[(`.[+\-/*%<>=,?^&]/.test(next) || next === "!" && this.input.charAt(end + 1) === "="))
|
|
690
587
|
}
|
|
691
588
|
start += match[0].length;
|
|
692
|
-
|
|
693
589
|
// Skip semicolon, if any.
|
|
694
590
|
skipWhiteSpace.lastIndex = start;
|
|
695
591
|
start += skipWhiteSpace.exec(this.input)[0].length;
|
|
@@ -697,10 +593,8 @@
|
|
|
697
593
|
{ start++; }
|
|
698
594
|
}
|
|
699
595
|
};
|
|
700
|
-
|
|
701
596
|
// Predicate that tests whether the next token is of the given
|
|
702
597
|
// type, and if yes, consumes it as a side effect.
|
|
703
|
-
|
|
704
598
|
pp$9.eat = function(type) {
|
|
705
599
|
if (this.type === type) {
|
|
706
600
|
this.next();
|
|
@@ -709,35 +603,26 @@
|
|
|
709
603
|
return false
|
|
710
604
|
}
|
|
711
605
|
};
|
|
712
|
-
|
|
713
606
|
// Tests whether parsed token is a contextual keyword.
|
|
714
|
-
|
|
715
607
|
pp$9.isContextual = function(name) {
|
|
716
608
|
return this.type === types$1.name && this.value === name && !this.containsEsc
|
|
717
609
|
};
|
|
718
|
-
|
|
719
610
|
// Consumes contextual keyword if possible.
|
|
720
|
-
|
|
721
611
|
pp$9.eatContextual = function(name) {
|
|
722
612
|
if (!this.isContextual(name)) { return false }
|
|
723
613
|
this.next();
|
|
724
614
|
return true
|
|
725
615
|
};
|
|
726
|
-
|
|
727
616
|
// Asserts that following token is given contextual keyword.
|
|
728
|
-
|
|
729
617
|
pp$9.expectContextual = function(name) {
|
|
730
618
|
if (!this.eatContextual(name)) { this.unexpected(); }
|
|
731
619
|
};
|
|
732
|
-
|
|
733
620
|
// Test whether a semicolon can be inserted at the current position.
|
|
734
|
-
|
|
735
621
|
pp$9.canInsertSemicolon = function() {
|
|
736
622
|
return this.type === types$1.eof ||
|
|
737
623
|
this.type === types$1.braceR ||
|
|
738
624
|
lineBreak.test(this.input.slice(this.lastTokEnd, this.start))
|
|
739
625
|
};
|
|
740
|
-
|
|
741
626
|
pp$9.insertSemicolon = function() {
|
|
742
627
|
if (this.canInsertSemicolon()) {
|
|
743
628
|
if (this.options.onInsertedSemicolon)
|
|
@@ -745,14 +630,11 @@
|
|
|
745
630
|
return true
|
|
746
631
|
}
|
|
747
632
|
};
|
|
748
|
-
|
|
749
633
|
// Consume a semicolon, or, failing that, see if we are allowed to
|
|
750
634
|
// pretend that there is a semicolon at this position.
|
|
751
|
-
|
|
752
635
|
pp$9.semicolon = function() {
|
|
753
636
|
if (!this.eat(types$1.semi) && !this.insertSemicolon()) { this.unexpected(); }
|
|
754
637
|
};
|
|
755
|
-
|
|
756
638
|
pp$9.afterTrailingComma = function(tokType, notNext) {
|
|
757
639
|
if (this.type === tokType) {
|
|
758
640
|
if (this.options.onTrailingComma)
|
|
@@ -762,20 +644,15 @@
|
|
|
762
644
|
return true
|
|
763
645
|
}
|
|
764
646
|
};
|
|
765
|
-
|
|
766
647
|
// Expect a token of a given type. If found, consume it, otherwise,
|
|
767
648
|
// raise an unexpected token error.
|
|
768
|
-
|
|
769
649
|
pp$9.expect = function(type) {
|
|
770
650
|
this.eat(type) || this.unexpected();
|
|
771
651
|
};
|
|
772
|
-
|
|
773
652
|
// Raise an unexpected token error.
|
|
774
|
-
|
|
775
653
|
pp$9.unexpected = function(pos) {
|
|
776
654
|
this.raise(pos != null ? pos : this.start, "Unexpected token");
|
|
777
655
|
};
|
|
778
|
-
|
|
779
656
|
var DestructuringErrors = function DestructuringErrors() {
|
|
780
657
|
this.shorthandAssign =
|
|
781
658
|
this.trailingComma =
|
|
@@ -784,7 +661,6 @@
|
|
|
784
661
|
this.doubleProto =
|
|
785
662
|
-1;
|
|
786
663
|
};
|
|
787
|
-
|
|
788
664
|
pp$9.checkPatternErrors = function(refDestructuringErrors, isAssign) {
|
|
789
665
|
if (!refDestructuringErrors) { return }
|
|
790
666
|
if (refDestructuringErrors.trailingComma > -1)
|
|
@@ -792,7 +668,6 @@
|
|
|
792
668
|
var parens = isAssign ? refDestructuringErrors.parenthesizedAssign : refDestructuringErrors.parenthesizedBind;
|
|
793
669
|
if (parens > -1) { this.raiseRecoverable(parens, isAssign ? "Assigning to rvalue" : "Parenthesized pattern"); }
|
|
794
670
|
};
|
|
795
|
-
|
|
796
671
|
pp$9.checkExpressionErrors = function(refDestructuringErrors, andThrow) {
|
|
797
672
|
if (!refDestructuringErrors) { return false }
|
|
798
673
|
var shorthandAssign = refDestructuringErrors.shorthandAssign;
|
|
@@ -803,29 +678,23 @@
|
|
|
803
678
|
if (doubleProto >= 0)
|
|
804
679
|
{ this.raiseRecoverable(doubleProto, "Redefinition of __proto__ property"); }
|
|
805
680
|
};
|
|
806
|
-
|
|
807
681
|
pp$9.checkYieldAwaitInDefaultParams = function() {
|
|
808
682
|
if (this.yieldPos && (!this.awaitPos || this.yieldPos < this.awaitPos))
|
|
809
683
|
{ this.raise(this.yieldPos, "Yield expression cannot be a default value"); }
|
|
810
684
|
if (this.awaitPos)
|
|
811
685
|
{ this.raise(this.awaitPos, "Await expression cannot be a default value"); }
|
|
812
686
|
};
|
|
813
|
-
|
|
814
687
|
pp$9.isSimpleAssignTarget = function(expr) {
|
|
815
688
|
if (expr.type === "ParenthesizedExpression")
|
|
816
689
|
{ return this.isSimpleAssignTarget(expr.expression) }
|
|
817
690
|
return expr.type === "Identifier" || expr.type === "MemberExpression"
|
|
818
691
|
};
|
|
819
|
-
|
|
820
692
|
var pp$8 = Parser.prototype;
|
|
821
|
-
|
|
822
693
|
// ### Statement parsing
|
|
823
|
-
|
|
824
694
|
// Parse a program. Initializes the parser, reads any number of
|
|
825
695
|
// statements, and wraps them in a Program node. Optionally takes a
|
|
826
696
|
// `program` argument. If present, the statements will be appended
|
|
827
697
|
// to its body instead of creating a new node.
|
|
828
|
-
|
|
829
698
|
pp$8.parseTopLevel = function(node) {
|
|
830
699
|
var exports = Object.create(null);
|
|
831
700
|
if (!node.body) { node.body = []; }
|
|
@@ -837,7 +706,6 @@
|
|
|
837
706
|
{ for (var i = 0, list = Object.keys(this.undefinedExports); i < list.length; i += 1)
|
|
838
707
|
{
|
|
839
708
|
var name = list[i];
|
|
840
|
-
|
|
841
709
|
this.raiseRecoverable(this.undefinedExports[name].start, ("Export '" + name + "' is not defined"));
|
|
842
710
|
} }
|
|
843
711
|
this.adaptDirectivePrologue(node.body);
|
|
@@ -845,10 +713,8 @@
|
|
|
845
713
|
node.sourceType = this.options.sourceType;
|
|
846
714
|
return this.finishNode(node, "Program")
|
|
847
715
|
};
|
|
848
|
-
|
|
849
716
|
var loopLabel = {kind: "loop"}, switchLabel = {kind: "switch"};
|
|
850
|
-
|
|
851
|
-
pp$8.isLet = function(context) {
|
|
717
|
+
pp$8.isLet = function(_context) {
|
|
852
718
|
if (this.options.ecmaVersion < 6 || !this.isContextual("let")) { return false }
|
|
853
719
|
skipWhiteSpace.lastIndex = this.pos;
|
|
854
720
|
var skip = skipWhiteSpace.exec(this.input);
|
|
@@ -858,8 +724,7 @@
|
|
|
858
724
|
// is allowed. However, `let [` is an explicit negative lookahead for
|
|
859
725
|
// ExpressionStatement, so special-case it first.
|
|
860
726
|
if (nextCh === 91 || nextCh === 92) { return true } // '[', '\'
|
|
861
|
-
if (
|
|
862
|
-
|
|
727
|
+
if (_context) { return false }
|
|
863
728
|
if (nextCh === 123 || nextCh > 0xd7ff && nextCh < 0xdc00) { return true } // '{', astral
|
|
864
729
|
if (isIdentifierStart(nextCh, true)) {
|
|
865
730
|
var pos = next + 1;
|
|
@@ -870,14 +735,12 @@
|
|
|
870
735
|
}
|
|
871
736
|
return false
|
|
872
737
|
};
|
|
873
|
-
|
|
874
738
|
// check 'async [no LineTerminator here] function'
|
|
875
739
|
// - 'async /*foo*/ function' is OK.
|
|
876
740
|
// - 'async /*\n*/ function' is invalid.
|
|
877
741
|
pp$8.isAsyncFunction = function() {
|
|
878
742
|
if (this.options.ecmaVersion < 8 || !this.isContextual("async"))
|
|
879
743
|
{ return false }
|
|
880
|
-
|
|
881
744
|
skipWhiteSpace.lastIndex = this.pos;
|
|
882
745
|
var skip = skipWhiteSpace.exec(this.input);
|
|
883
746
|
var next = this.pos + skip[0].length, after;
|
|
@@ -886,17 +749,13 @@
|
|
|
886
749
|
(next + 8 === this.input.length ||
|
|
887
750
|
!(isIdentifierChar(after = this.input.charCodeAt(next + 8)) || after > 0xd7ff && after < 0xdc00))
|
|
888
751
|
};
|
|
889
|
-
|
|
890
752
|
pp$8.isUsingKeyword = function(isAwaitUsing, isFor) {
|
|
891
753
|
if (this.options.ecmaVersion < 17 || !this.isContextual(isAwaitUsing ? "await" : "using"))
|
|
892
754
|
{ return false }
|
|
893
|
-
|
|
894
755
|
skipWhiteSpace.lastIndex = this.pos;
|
|
895
756
|
var skip = skipWhiteSpace.exec(this.input);
|
|
896
757
|
var next = this.pos + skip[0].length;
|
|
897
|
-
|
|
898
758
|
if (lineBreak.test(this.input.slice(this.pos, next))) { return false }
|
|
899
|
-
|
|
900
759
|
if (isAwaitUsing) {
|
|
901
760
|
var awaitEndPos = next + 5 /* await */, after;
|
|
902
761
|
if (this.input.slice(next, awaitEndPos) !== "using" ||
|
|
@@ -904,12 +763,10 @@
|
|
|
904
763
|
isIdentifierChar(after = this.input.charCodeAt(awaitEndPos)) ||
|
|
905
764
|
(after > 0xd7ff && after < 0xdc00)
|
|
906
765
|
) { return false }
|
|
907
|
-
|
|
908
766
|
skipWhiteSpace.lastIndex = awaitEndPos;
|
|
909
767
|
var skipAfterUsing = skipWhiteSpace.exec(this.input);
|
|
910
768
|
if (skipAfterUsing && lineBreak.test(this.input.slice(awaitEndPos, awaitEndPos + skipAfterUsing[0].length))) { return false }
|
|
911
769
|
}
|
|
912
|
-
|
|
913
770
|
if (isFor) {
|
|
914
771
|
var ofEndPos = next + 2 /* of */, after$1;
|
|
915
772
|
if (this.input.slice(next, ofEndPos) === "of") {
|
|
@@ -917,38 +774,30 @@
|
|
|
917
774
|
(!isIdentifierChar(after$1 = this.input.charCodeAt(ofEndPos)) && !(after$1 > 0xd7ff && after$1 < 0xdc00))) { return false }
|
|
918
775
|
}
|
|
919
776
|
}
|
|
920
|
-
|
|
921
777
|
var ch = this.input.charCodeAt(next);
|
|
922
778
|
return isIdentifierStart(ch, true) || ch === 92 // '\'
|
|
923
779
|
};
|
|
924
|
-
|
|
925
780
|
pp$8.isAwaitUsing = function(isFor) {
|
|
926
781
|
return this.isUsingKeyword(true, isFor)
|
|
927
782
|
};
|
|
928
|
-
|
|
929
783
|
pp$8.isUsing = function(isFor) {
|
|
930
784
|
return this.isUsingKeyword(false, isFor)
|
|
931
785
|
};
|
|
932
|
-
|
|
933
786
|
// Parse a single statement.
|
|
934
787
|
//
|
|
935
788
|
// If expecting a statement and finding a slash operator, parse a
|
|
936
789
|
// regular expression literal. This is to handle cases like
|
|
937
790
|
// `if (foo) /blah/.exec(foo)`, where looking at the previous token
|
|
938
791
|
// does not help.
|
|
939
|
-
|
|
940
|
-
pp$8.parseStatement = function(context, topLevel, exports) {
|
|
792
|
+
pp$8.parseStatement = function(_context, topLevel, exports) {
|
|
941
793
|
var starttype = this.type, node = this.startNode(), kind;
|
|
942
|
-
|
|
943
794
|
if (this.isLet(context)) {
|
|
944
795
|
starttype = types$1._var;
|
|
945
796
|
kind = "let";
|
|
946
797
|
}
|
|
947
|
-
|
|
948
798
|
// Most types of statements are recognized by the keyword they
|
|
949
799
|
// start with. Many are trivial to parse, some require a bit of
|
|
950
800
|
// complexity.
|
|
951
|
-
|
|
952
801
|
switch (starttype) {
|
|
953
802
|
case types$1._break: case types$1._continue: return this.parseBreakContinueStatement(node, starttype.keyword)
|
|
954
803
|
case types$1._debugger: return this.parseDebuggerStatement(node)
|
|
@@ -961,7 +810,7 @@
|
|
|
961
810
|
if ((context && (this.strict || context !== "if" && context !== "label")) && this.options.ecmaVersion >= 6) { this.unexpected(); }
|
|
962
811
|
return this.parseFunctionStatement(node, false, !context)
|
|
963
812
|
case types$1._class:
|
|
964
|
-
if (
|
|
813
|
+
if (_context) { this.unexpected(); }
|
|
965
814
|
return this.parseClass(node, true)
|
|
966
815
|
case types$1._if: return this.parseIfStatement(node)
|
|
967
816
|
case types$1._return: return this.parseReturnStatement(node)
|
|
@@ -985,7 +834,6 @@
|
|
|
985
834
|
if (nextCh === 40 || nextCh === 46) // '(' or '.'
|
|
986
835
|
{ return this.parseExpressionStatement(node, this.parseExpression()) }
|
|
987
836
|
}
|
|
988
|
-
|
|
989
837
|
if (!this.options.allowImportExportEverywhere) {
|
|
990
838
|
if (!topLevel)
|
|
991
839
|
{ this.raise(this.start, "'import' and 'export' may only appear at the top level"); }
|
|
@@ -993,7 +841,6 @@
|
|
|
993
841
|
{ this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'"); }
|
|
994
842
|
}
|
|
995
843
|
return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports)
|
|
996
|
-
|
|
997
844
|
// If the statement does not start with a statement keyword or a
|
|
998
845
|
// brace, it's an ExpressionStatement or LabeledStatement. We
|
|
999
846
|
// simply start parsing an expression, and afterwards, if the
|
|
@@ -1001,11 +848,10 @@
|
|
|
1001
848
|
// Identifier node, we switch to interpreting it as a label.
|
|
1002
849
|
default:
|
|
1003
850
|
if (this.isAsyncFunction()) {
|
|
1004
|
-
if (
|
|
851
|
+
if (_context) { this.unexpected(); }
|
|
1005
852
|
this.next();
|
|
1006
853
|
return this.parseFunctionStatement(node, true, !context)
|
|
1007
854
|
}
|
|
1008
|
-
|
|
1009
855
|
var usingKind = this.isAwaitUsing(false) ? "await using" : this.isUsing(false) ? "using" : null;
|
|
1010
856
|
if (usingKind) {
|
|
1011
857
|
if (topLevel && this.options.sourceType === "script") {
|
|
@@ -1022,14 +868,12 @@
|
|
|
1022
868
|
this.semicolon();
|
|
1023
869
|
return this.finishNode(node, "VariableDeclaration")
|
|
1024
870
|
}
|
|
1025
|
-
|
|
1026
871
|
var maybeName = this.value, expr = this.parseExpression();
|
|
1027
872
|
if (starttype === types$1.name && expr.type === "Identifier" && this.eat(types$1.colon))
|
|
1028
873
|
{ return this.parseLabeledStatement(node, maybeName, expr, context) }
|
|
1029
874
|
else { return this.parseExpressionStatement(node, expr) }
|
|
1030
875
|
}
|
|
1031
876
|
};
|
|
1032
|
-
|
|
1033
877
|
pp$8.parseBreakContinueStatement = function(node, keyword) {
|
|
1034
878
|
var isBreak = keyword === "break";
|
|
1035
879
|
this.next();
|
|
@@ -1039,7 +883,6 @@
|
|
|
1039
883
|
node.label = this.parseIdent();
|
|
1040
884
|
this.semicolon();
|
|
1041
885
|
}
|
|
1042
|
-
|
|
1043
886
|
// Verify that there is an actual destination to break or
|
|
1044
887
|
// continue to.
|
|
1045
888
|
var i = 0;
|
|
@@ -1053,13 +896,11 @@
|
|
|
1053
896
|
if (i === this.labels.length) { this.raise(node.start, "Unsyntactic " + keyword); }
|
|
1054
897
|
return this.finishNode(node, isBreak ? "BreakStatement" : "ContinueStatement")
|
|
1055
898
|
};
|
|
1056
|
-
|
|
1057
899
|
pp$8.parseDebuggerStatement = function(node) {
|
|
1058
900
|
this.next();
|
|
1059
901
|
this.semicolon();
|
|
1060
902
|
return this.finishNode(node, "DebuggerStatement")
|
|
1061
903
|
};
|
|
1062
|
-
|
|
1063
904
|
pp$8.parseDoStatement = function(node) {
|
|
1064
905
|
this.next();
|
|
1065
906
|
this.labels.push(loopLabel);
|
|
@@ -1073,7 +914,6 @@
|
|
|
1073
914
|
{ this.semicolon(); }
|
|
1074
915
|
return this.finishNode(node, "DoWhileStatement")
|
|
1075
916
|
};
|
|
1076
|
-
|
|
1077
917
|
// Disambiguating between a `for` and a `for`/`in` or `for`/`of`
|
|
1078
918
|
// loop is non-trivial. Basically, we have to parse the init `var`
|
|
1079
919
|
// statement or expression, disallowing the `in` operator (see
|
|
@@ -1081,7 +921,6 @@
|
|
|
1081
921
|
// whether the next token is `in` or `of`. When there is no init
|
|
1082
922
|
// part (semicolon immediately after the opening parenthesis), it
|
|
1083
923
|
// is a regular `for` loop.
|
|
1084
|
-
|
|
1085
924
|
pp$8.parseForStatement = function(node) {
|
|
1086
925
|
this.next();
|
|
1087
926
|
var awaitAt = (this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await")) ? this.lastTokStart : -1;
|
|
@@ -1101,7 +940,6 @@
|
|
|
1101
940
|
return this.parseForAfterInit(node, init$1, awaitAt)
|
|
1102
941
|
}
|
|
1103
942
|
var startsWithLet = this.isContextual("let"), isForOf = false;
|
|
1104
|
-
|
|
1105
943
|
var usingKind = this.isUsing(true) ? "using" : this.isAwaitUsing(true) ? "await using" : null;
|
|
1106
944
|
if (usingKind) {
|
|
1107
945
|
var init$2 = this.startNode();
|
|
@@ -1135,7 +973,6 @@
|
|
|
1135
973
|
if (awaitAt > -1) { this.unexpected(awaitAt); }
|
|
1136
974
|
return this.parseFor(node, init)
|
|
1137
975
|
};
|
|
1138
|
-
|
|
1139
976
|
// Helper method to parse for loop after variable initialization
|
|
1140
977
|
pp$8.parseForAfterInit = function(node, init, awaitAt) {
|
|
1141
978
|
if ((this.type === types$1._in || (this.options.ecmaVersion >= 6 && this.isContextual("of"))) && init.declarations.length === 1) {
|
|
@@ -1149,12 +986,10 @@
|
|
|
1149
986
|
if (awaitAt > -1) { this.unexpected(awaitAt); }
|
|
1150
987
|
return this.parseFor(node, init)
|
|
1151
988
|
};
|
|
1152
|
-
|
|
1153
989
|
pp$8.parseFunctionStatement = function(node, isAsync, declarationPosition) {
|
|
1154
990
|
this.next();
|
|
1155
991
|
return this.parseFunction(node, FUNC_STATEMENT | (declarationPosition ? 0 : FUNC_HANGING_STATEMENT), false, isAsync)
|
|
1156
992
|
};
|
|
1157
|
-
|
|
1158
993
|
pp$8.parseIfStatement = function(node) {
|
|
1159
994
|
this.next();
|
|
1160
995
|
node.test = this.parseParenExpression();
|
|
@@ -1163,21 +998,17 @@
|
|
|
1163
998
|
node.alternate = this.eat(types$1._else) ? this.parseStatement("if") : null;
|
|
1164
999
|
return this.finishNode(node, "IfStatement")
|
|
1165
1000
|
};
|
|
1166
|
-
|
|
1167
1001
|
pp$8.parseReturnStatement = function(node) {
|
|
1168
1002
|
if (!this.inFunction && !this.options.allowReturnOutsideFunction)
|
|
1169
1003
|
{ this.raise(this.start, "'return' outside of function"); }
|
|
1170
1004
|
this.next();
|
|
1171
|
-
|
|
1172
1005
|
// In `return` (and `break`/`continue`), the keywords with
|
|
1173
1006
|
// optional arguments, we eagerly look for a semicolon or the
|
|
1174
1007
|
// possibility to insert one.
|
|
1175
|
-
|
|
1176
1008
|
if (this.eat(types$1.semi) || this.insertSemicolon()) { node.argument = null; }
|
|
1177
1009
|
else { node.argument = this.parseExpression(); this.semicolon(); }
|
|
1178
1010
|
return this.finishNode(node, "ReturnStatement")
|
|
1179
1011
|
};
|
|
1180
|
-
|
|
1181
1012
|
pp$8.parseSwitchStatement = function(node) {
|
|
1182
1013
|
this.next();
|
|
1183
1014
|
node.discriminant = this.parseParenExpression();
|
|
@@ -1185,11 +1016,9 @@
|
|
|
1185
1016
|
this.expect(types$1.braceL);
|
|
1186
1017
|
this.labels.push(switchLabel);
|
|
1187
1018
|
this.enterScope(0);
|
|
1188
|
-
|
|
1189
1019
|
// Statements under must be grouped (by label) in SwitchCase
|
|
1190
1020
|
// nodes. `cur` is used to keep the node that we are currently
|
|
1191
1021
|
// adding statements to.
|
|
1192
|
-
|
|
1193
1022
|
var cur;
|
|
1194
1023
|
for (var sawDefault = false; this.type !== types$1.braceR;) {
|
|
1195
1024
|
if (this.type === types$1._case || this.type === types$1._default) {
|
|
@@ -1217,7 +1046,6 @@
|
|
|
1217
1046
|
this.labels.pop();
|
|
1218
1047
|
return this.finishNode(node, "SwitchStatement")
|
|
1219
1048
|
};
|
|
1220
|
-
|
|
1221
1049
|
pp$8.parseThrowStatement = function(node) {
|
|
1222
1050
|
this.next();
|
|
1223
1051
|
if (lineBreak.test(this.input.slice(this.lastTokEnd, this.start)))
|
|
@@ -1226,21 +1054,16 @@
|
|
|
1226
1054
|
this.semicolon();
|
|
1227
1055
|
return this.finishNode(node, "ThrowStatement")
|
|
1228
1056
|
};
|
|
1229
|
-
|
|
1230
1057
|
// Reused empty array added for node fields that are always empty.
|
|
1231
|
-
|
|
1232
1058
|
var empty$1 = [];
|
|
1233
|
-
|
|
1234
1059
|
pp$8.parseCatchClauseParam = function() {
|
|
1235
1060
|
var param = this.parseBindingAtom();
|
|
1236
1061
|
var simple = param.type === "Identifier";
|
|
1237
1062
|
this.enterScope(simple ? SCOPE_SIMPLE_CATCH : 0);
|
|
1238
1063
|
this.checkLValPattern(param, simple ? BIND_SIMPLE_CATCH : BIND_LEXICAL);
|
|
1239
1064
|
this.expect(types$1.parenR);
|
|
1240
|
-
|
|
1241
1065
|
return param
|
|
1242
1066
|
};
|
|
1243
|
-
|
|
1244
1067
|
pp$8.parseTryStatement = function(node) {
|
|
1245
1068
|
this.next();
|
|
1246
1069
|
node.block = this.parseBlock();
|
|
@@ -1264,14 +1087,12 @@
|
|
|
1264
1087
|
{ this.raise(node.start, "Missing catch or finally clause"); }
|
|
1265
1088
|
return this.finishNode(node, "TryStatement")
|
|
1266
1089
|
};
|
|
1267
|
-
|
|
1268
1090
|
pp$8.parseVarStatement = function(node, kind, allowMissingInitializer) {
|
|
1269
1091
|
this.next();
|
|
1270
1092
|
this.parseVar(node, false, kind, allowMissingInitializer);
|
|
1271
1093
|
this.semicolon();
|
|
1272
1094
|
return this.finishNode(node, "VariableDeclaration")
|
|
1273
1095
|
};
|
|
1274
|
-
|
|
1275
1096
|
pp$8.parseWhileStatement = function(node) {
|
|
1276
1097
|
this.next();
|
|
1277
1098
|
node.test = this.parseParenExpression();
|
|
@@ -1280,7 +1101,6 @@
|
|
|
1280
1101
|
this.labels.pop();
|
|
1281
1102
|
return this.finishNode(node, "WhileStatement")
|
|
1282
1103
|
};
|
|
1283
|
-
|
|
1284
1104
|
pp$8.parseWithStatement = function(node) {
|
|
1285
1105
|
if (this.strict) { this.raise(this.start, "'with' in strict mode"); }
|
|
1286
1106
|
this.next();
|
|
@@ -1288,17 +1108,14 @@
|
|
|
1288
1108
|
node.body = this.parseStatement("with");
|
|
1289
1109
|
return this.finishNode(node, "WithStatement")
|
|
1290
1110
|
};
|
|
1291
|
-
|
|
1292
1111
|
pp$8.parseEmptyStatement = function(node) {
|
|
1293
1112
|
this.next();
|
|
1294
1113
|
return this.finishNode(node, "EmptyStatement")
|
|
1295
1114
|
};
|
|
1296
|
-
|
|
1297
|
-
pp$8.parseLabeledStatement = function(node, maybeName, expr, context) {
|
|
1115
|
+
pp$8.parseLabeledStatement = function(node, maybeName, expr, _context) {
|
|
1298
1116
|
for (var i$1 = 0, list = this.labels; i$1 < list.length; i$1 += 1)
|
|
1299
1117
|
{
|
|
1300
1118
|
var label = list[i$1];
|
|
1301
|
-
|
|
1302
1119
|
if (label.name === maybeName)
|
|
1303
1120
|
{ this.raise(expr.start, "Label '" + maybeName + "' is already declared");
|
|
1304
1121
|
} }
|
|
@@ -1317,21 +1134,17 @@
|
|
|
1317
1134
|
node.label = expr;
|
|
1318
1135
|
return this.finishNode(node, "LabeledStatement")
|
|
1319
1136
|
};
|
|
1320
|
-
|
|
1321
1137
|
pp$8.parseExpressionStatement = function(node, expr) {
|
|
1322
1138
|
node.expression = expr;
|
|
1323
1139
|
this.semicolon();
|
|
1324
1140
|
return this.finishNode(node, "ExpressionStatement")
|
|
1325
1141
|
};
|
|
1326
|
-
|
|
1327
1142
|
// Parse a semicolon-enclosed block of statements, handling `"use
|
|
1328
1143
|
// strict"` declarations when `allowStrict` is true (used for
|
|
1329
1144
|
// function bodies).
|
|
1330
|
-
|
|
1331
1145
|
pp$8.parseBlock = function(createNewLexicalScope, node, exitStrict) {
|
|
1332
1146
|
if ( createNewLexicalScope === void 0 ) createNewLexicalScope = true;
|
|
1333
1147
|
if ( node === void 0 ) node = this.startNode();
|
|
1334
|
-
|
|
1335
1148
|
node.body = [];
|
|
1336
1149
|
this.expect(types$1.braceL);
|
|
1337
1150
|
if (createNewLexicalScope) { this.enterScope(0); }
|
|
@@ -1344,11 +1157,9 @@
|
|
|
1344
1157
|
if (createNewLexicalScope) { this.exitScope(); }
|
|
1345
1158
|
return this.finishNode(node, "BlockStatement")
|
|
1346
1159
|
};
|
|
1347
|
-
|
|
1348
1160
|
// Parse a regular `for` loop. The disambiguation code in
|
|
1349
1161
|
// `parseStatement` will already have parsed the init statement or
|
|
1350
1162
|
// expression.
|
|
1351
|
-
|
|
1352
1163
|
pp$8.parseFor = function(node, init) {
|
|
1353
1164
|
node.init = init;
|
|
1354
1165
|
this.expect(types$1.semi);
|
|
@@ -1361,14 +1172,11 @@
|
|
|
1361
1172
|
this.labels.pop();
|
|
1362
1173
|
return this.finishNode(node, "ForStatement")
|
|
1363
1174
|
};
|
|
1364
|
-
|
|
1365
1175
|
// Parse a `for`/`in` and `for`/`of` loop, which are almost
|
|
1366
1176
|
// same from parser's perspective.
|
|
1367
|
-
|
|
1368
1177
|
pp$8.parseForIn = function(node, init) {
|
|
1369
1178
|
var isForIn = this.type === types$1._in;
|
|
1370
1179
|
this.next();
|
|
1371
|
-
|
|
1372
1180
|
if (
|
|
1373
1181
|
init.type === "VariableDeclaration" &&
|
|
1374
1182
|
init.declarations[0].init != null &&
|
|
@@ -1393,9 +1201,7 @@
|
|
|
1393
1201
|
this.labels.pop();
|
|
1394
1202
|
return this.finishNode(node, isForIn ? "ForInStatement" : "ForOfStatement")
|
|
1395
1203
|
};
|
|
1396
|
-
|
|
1397
1204
|
// Parse a list of variable declarations.
|
|
1398
|
-
|
|
1399
1205
|
pp$8.parseVar = function(node, isFor, kind, allowMissingInitializer) {
|
|
1400
1206
|
node.declarations = [];
|
|
1401
1207
|
node.kind = kind;
|
|
@@ -1418,20 +1224,15 @@
|
|
|
1418
1224
|
}
|
|
1419
1225
|
return node
|
|
1420
1226
|
};
|
|
1421
|
-
|
|
1422
1227
|
pp$8.parseVarId = function(decl, kind) {
|
|
1423
1228
|
decl.id = kind === "using" || kind === "await using"
|
|
1424
1229
|
? this.parseIdent()
|
|
1425
1230
|
: this.parseBindingAtom();
|
|
1426
|
-
|
|
1427
1231
|
this.checkLValPattern(decl.id, kind === "var" ? BIND_VAR : BIND_LEXICAL, false);
|
|
1428
1232
|
};
|
|
1429
|
-
|
|
1430
1233
|
var FUNC_STATEMENT = 1, FUNC_HANGING_STATEMENT = 2, FUNC_NULLABLE_ID = 4;
|
|
1431
|
-
|
|
1432
1234
|
// Parse a function declaration or literal (depending on the
|
|
1433
1235
|
// `statement & FUNC_STATEMENT`).
|
|
1434
|
-
|
|
1435
1236
|
// Remove `allowExpressionBody` for 7.0.0, as it is only called with false
|
|
1436
1237
|
pp$8.parseFunction = function(node, statement, allowExpressionBody, isAsync, forInit) {
|
|
1437
1238
|
this.initFunction(node);
|
|
@@ -1442,7 +1243,6 @@
|
|
|
1442
1243
|
}
|
|
1443
1244
|
if (this.options.ecmaVersion >= 8)
|
|
1444
1245
|
{ node.async = !!isAsync; }
|
|
1445
|
-
|
|
1446
1246
|
if (statement & FUNC_STATEMENT) {
|
|
1447
1247
|
node.id = (statement & FUNC_NULLABLE_ID) && this.type !== types$1.name ? null : this.parseIdent();
|
|
1448
1248
|
if (node.id && !(statement & FUNC_HANGING_STATEMENT))
|
|
@@ -1452,42 +1252,33 @@
|
|
|
1452
1252
|
// treatFunctionsAsVar).
|
|
1453
1253
|
{ this.checkLValSimple(node.id, (this.strict || node.generator || node.async) ? this.treatFunctionsAsVar ? BIND_VAR : BIND_LEXICAL : BIND_FUNCTION); }
|
|
1454
1254
|
}
|
|
1455
|
-
|
|
1456
1255
|
var oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;
|
|
1457
1256
|
this.yieldPos = 0;
|
|
1458
1257
|
this.awaitPos = 0;
|
|
1459
1258
|
this.awaitIdentPos = 0;
|
|
1460
1259
|
this.enterScope(functionFlags(node.async, node.generator));
|
|
1461
|
-
|
|
1462
1260
|
if (!(statement & FUNC_STATEMENT))
|
|
1463
1261
|
{ node.id = this.type === types$1.name ? this.parseIdent() : null; }
|
|
1464
|
-
|
|
1465
1262
|
this.parseFunctionParams(node);
|
|
1466
1263
|
this.parseFunctionBody(node, allowExpressionBody, false, forInit);
|
|
1467
|
-
|
|
1468
1264
|
this.yieldPos = oldYieldPos;
|
|
1469
1265
|
this.awaitPos = oldAwaitPos;
|
|
1470
1266
|
this.awaitIdentPos = oldAwaitIdentPos;
|
|
1471
1267
|
return this.finishNode(node, (statement & FUNC_STATEMENT) ? "FunctionDeclaration" : "FunctionExpression")
|
|
1472
1268
|
};
|
|
1473
|
-
|
|
1474
1269
|
pp$8.parseFunctionParams = function(node) {
|
|
1475
1270
|
this.expect(types$1.parenL);
|
|
1476
1271
|
node.params = this.parseBindingList(types$1.parenR, false, this.options.ecmaVersion >= 8);
|
|
1477
1272
|
this.checkYieldAwaitInDefaultParams();
|
|
1478
1273
|
};
|
|
1479
|
-
|
|
1480
1274
|
// Parse a class declaration or literal (depending on the
|
|
1481
1275
|
// `isStatement` parameter).
|
|
1482
|
-
|
|
1483
1276
|
pp$8.parseClass = function(node, isStatement) {
|
|
1484
1277
|
this.next();
|
|
1485
|
-
|
|
1486
1278
|
// ecma-262 14.6 Class Definitions
|
|
1487
1279
|
// A class definition is always strict mode code.
|
|
1488
1280
|
var oldStrict = this.strict;
|
|
1489
1281
|
this.strict = true;
|
|
1490
|
-
|
|
1491
1282
|
this.parseClassId(node, isStatement);
|
|
1492
1283
|
this.parseClassSuper(node);
|
|
1493
1284
|
var privateNameMap = this.enterClassBody();
|
|
@@ -1513,10 +1304,8 @@
|
|
|
1513
1304
|
this.exitClassBody();
|
|
1514
1305
|
return this.finishNode(node, isStatement ? "ClassDeclaration" : "ClassExpression")
|
|
1515
1306
|
};
|
|
1516
|
-
|
|
1517
1307
|
pp$8.parseClassElement = function(constructorAllowsSuper) {
|
|
1518
1308
|
if (this.eat(types$1.semi)) { return null }
|
|
1519
|
-
|
|
1520
1309
|
var ecmaVersion = this.options.ecmaVersion;
|
|
1521
1310
|
var node = this.startNode();
|
|
1522
1311
|
var keyName = "";
|
|
@@ -1524,7 +1313,6 @@
|
|
|
1524
1313
|
var isAsync = false;
|
|
1525
1314
|
var kind = "method";
|
|
1526
1315
|
var isStatic = false;
|
|
1527
|
-
|
|
1528
1316
|
if (this.eatContextual("static")) {
|
|
1529
1317
|
// Parse static init block
|
|
1530
1318
|
if (ecmaVersion >= 13 && this.eat(types$1.braceL)) {
|
|
@@ -1558,7 +1346,6 @@
|
|
|
1558
1346
|
}
|
|
1559
1347
|
}
|
|
1560
1348
|
}
|
|
1561
|
-
|
|
1562
1349
|
// Parse element name
|
|
1563
1350
|
if (keyName) {
|
|
1564
1351
|
// 'async', 'get', 'set', or 'static' were not a keyword contextually.
|
|
@@ -1570,7 +1357,6 @@
|
|
|
1570
1357
|
} else {
|
|
1571
1358
|
this.parseClassElementName(node);
|
|
1572
1359
|
}
|
|
1573
|
-
|
|
1574
1360
|
// Parse element value
|
|
1575
1361
|
if (ecmaVersion < 13 || this.type === types$1.parenL || kind !== "method" || isGenerator || isAsync) {
|
|
1576
1362
|
var isConstructor = !node.static && checkKeyName(node, "constructor");
|
|
@@ -1582,10 +1368,8 @@
|
|
|
1582
1368
|
} else {
|
|
1583
1369
|
this.parseClassField(node);
|
|
1584
1370
|
}
|
|
1585
|
-
|
|
1586
1371
|
return node
|
|
1587
1372
|
};
|
|
1588
|
-
|
|
1589
1373
|
pp$8.isClassElementNameStart = function() {
|
|
1590
1374
|
return (
|
|
1591
1375
|
this.type === types$1.name ||
|
|
@@ -1596,7 +1380,6 @@
|
|
|
1596
1380
|
this.type.keyword
|
|
1597
1381
|
)
|
|
1598
1382
|
};
|
|
1599
|
-
|
|
1600
1383
|
pp$8.parseClassElementName = function(element) {
|
|
1601
1384
|
if (this.type === types$1.privateId) {
|
|
1602
1385
|
if (this.value === "constructor") {
|
|
@@ -1608,7 +1391,6 @@
|
|
|
1608
1391
|
this.parsePropertyName(element);
|
|
1609
1392
|
}
|
|
1610
1393
|
};
|
|
1611
|
-
|
|
1612
1394
|
pp$8.parseClassMethod = function(method, isGenerator, isAsync, allowsDirectSuper) {
|
|
1613
1395
|
// Check key and flags
|
|
1614
1396
|
var key = method.key;
|
|
@@ -1618,10 +1400,8 @@
|
|
|
1618
1400
|
} else if (method.static && checkKeyName(method, "prototype")) {
|
|
1619
1401
|
this.raise(key.start, "Classes may not have a static property named prototype");
|
|
1620
1402
|
}
|
|
1621
|
-
|
|
1622
1403
|
// Parse value
|
|
1623
1404
|
var value = method.value = this.parseMethod(isGenerator, isAsync, allowsDirectSuper);
|
|
1624
|
-
|
|
1625
1405
|
// Check value
|
|
1626
1406
|
if (method.kind === "get" && value.params.length !== 0)
|
|
1627
1407
|
{ this.raiseRecoverable(value.start, "getter should have no params"); }
|
|
@@ -1629,17 +1409,14 @@
|
|
|
1629
1409
|
{ this.raiseRecoverable(value.start, "setter should have exactly one param"); }
|
|
1630
1410
|
if (method.kind === "set" && value.params[0].type === "RestElement")
|
|
1631
1411
|
{ this.raiseRecoverable(value.params[0].start, "Setter cannot use rest params"); }
|
|
1632
|
-
|
|
1633
1412
|
return this.finishNode(method, "MethodDefinition")
|
|
1634
1413
|
};
|
|
1635
|
-
|
|
1636
1414
|
pp$8.parseClassField = function(field) {
|
|
1637
1415
|
if (checkKeyName(field, "constructor")) {
|
|
1638
1416
|
this.raise(field.key.start, "Classes can't have a field named 'constructor'");
|
|
1639
1417
|
} else if (field.static && checkKeyName(field, "prototype")) {
|
|
1640
1418
|
this.raise(field.key.start, "Classes can't have a static field named 'prototype'");
|
|
1641
1419
|
}
|
|
1642
|
-
|
|
1643
1420
|
if (this.eat(types$1.eq)) {
|
|
1644
1421
|
// To raise SyntaxError if 'arguments' exists in the initializer.
|
|
1645
1422
|
this.enterScope(SCOPE_CLASS_FIELD_INIT | SCOPE_SUPER);
|
|
@@ -1649,13 +1426,10 @@
|
|
|
1649
1426
|
field.value = null;
|
|
1650
1427
|
}
|
|
1651
1428
|
this.semicolon();
|
|
1652
|
-
|
|
1653
1429
|
return this.finishNode(field, "PropertyDefinition")
|
|
1654
1430
|
};
|
|
1655
|
-
|
|
1656
1431
|
pp$8.parseClassStaticBlock = function(node) {
|
|
1657
1432
|
node.body = [];
|
|
1658
|
-
|
|
1659
1433
|
var oldLabels = this.labels;
|
|
1660
1434
|
this.labels = [];
|
|
1661
1435
|
this.enterScope(SCOPE_CLASS_STATIC_BLOCK | SCOPE_SUPER);
|
|
@@ -1666,10 +1440,8 @@
|
|
|
1666
1440
|
this.next();
|
|
1667
1441
|
this.exitScope();
|
|
1668
1442
|
this.labels = oldLabels;
|
|
1669
|
-
|
|
1670
1443
|
return this.finishNode(node, "StaticBlock")
|
|
1671
1444
|
};
|
|
1672
|
-
|
|
1673
1445
|
pp$8.parseClassId = function(node, isStatement) {
|
|
1674
1446
|
if (this.type === types$1.name) {
|
|
1675
1447
|
node.id = this.parseIdent();
|
|
@@ -1681,17 +1453,14 @@
|
|
|
1681
1453
|
node.id = null;
|
|
1682
1454
|
}
|
|
1683
1455
|
};
|
|
1684
|
-
|
|
1685
1456
|
pp$8.parseClassSuper = function(node) {
|
|
1686
1457
|
node.superClass = this.eat(types$1._extends) ? this.parseExprSubscripts(null, false) : null;
|
|
1687
1458
|
};
|
|
1688
|
-
|
|
1689
1459
|
pp$8.enterClassBody = function() {
|
|
1690
1460
|
var element = {declared: Object.create(null), used: []};
|
|
1691
1461
|
this.privateNameStack.push(element);
|
|
1692
1462
|
return element.declared
|
|
1693
1463
|
};
|
|
1694
|
-
|
|
1695
1464
|
pp$8.exitClassBody = function() {
|
|
1696
1465
|
var ref = this.privateNameStack.pop();
|
|
1697
1466
|
var declared = ref.declared;
|
|
@@ -1710,16 +1479,13 @@
|
|
|
1710
1479
|
}
|
|
1711
1480
|
}
|
|
1712
1481
|
};
|
|
1713
|
-
|
|
1714
1482
|
function isPrivateNameConflicted(privateNameMap, element) {
|
|
1715
1483
|
var name = element.key.name;
|
|
1716
1484
|
var curr = privateNameMap[name];
|
|
1717
|
-
|
|
1718
1485
|
var next = "true";
|
|
1719
1486
|
if (element.type === "MethodDefinition" && (element.kind === "get" || element.kind === "set")) {
|
|
1720
1487
|
next = (element.static ? "s" : "i") + element.kind;
|
|
1721
1488
|
}
|
|
1722
|
-
|
|
1723
1489
|
// `class { get #a(){}; static set #a(_){} }` is also conflict.
|
|
1724
1490
|
if (
|
|
1725
1491
|
curr === "iget" && next === "iset" ||
|
|
@@ -1736,7 +1502,6 @@
|
|
|
1736
1502
|
return true
|
|
1737
1503
|
}
|
|
1738
1504
|
}
|
|
1739
|
-
|
|
1740
1505
|
function checkKeyName(node, name) {
|
|
1741
1506
|
var computed = node.computed;
|
|
1742
1507
|
var key = node.key;
|
|
@@ -1745,9 +1510,7 @@
|
|
|
1745
1510
|
key.type === "Literal" && key.value === name
|
|
1746
1511
|
)
|
|
1747
1512
|
}
|
|
1748
|
-
|
|
1749
1513
|
// Parses module export declaration.
|
|
1750
|
-
|
|
1751
1514
|
pp$8.parseExportAllDeclaration = function(node, exports) {
|
|
1752
1515
|
if (this.options.ecmaVersion >= 11) {
|
|
1753
1516
|
if (this.eatContextual("as")) {
|
|
@@ -1765,7 +1528,6 @@
|
|
|
1765
1528
|
this.semicolon();
|
|
1766
1529
|
return this.finishNode(node, "ExportAllDeclaration")
|
|
1767
1530
|
};
|
|
1768
|
-
|
|
1769
1531
|
pp$8.parseExport = function(node, exports) {
|
|
1770
1532
|
this.next();
|
|
1771
1533
|
// export * from '...'
|
|
@@ -1800,16 +1562,13 @@
|
|
|
1800
1562
|
for (var i = 0, list = node.specifiers; i < list.length; i += 1) {
|
|
1801
1563
|
// check for keywords used as local names
|
|
1802
1564
|
var spec = list[i];
|
|
1803
|
-
|
|
1804
1565
|
this.checkUnreserved(spec.local);
|
|
1805
1566
|
// check if export is defined
|
|
1806
1567
|
this.checkLocalExport(spec.local);
|
|
1807
|
-
|
|
1808
1568
|
if (spec.local.type === "Literal") {
|
|
1809
1569
|
this.raise(spec.local.start, "A string literal cannot be used as an exported binding without `from`.");
|
|
1810
1570
|
}
|
|
1811
1571
|
}
|
|
1812
|
-
|
|
1813
1572
|
node.source = null;
|
|
1814
1573
|
if (this.options.ecmaVersion >= 16)
|
|
1815
1574
|
{ node.attributes = []; }
|
|
@@ -1818,11 +1577,9 @@
|
|
|
1818
1577
|
}
|
|
1819
1578
|
return this.finishNode(node, "ExportNamedDeclaration")
|
|
1820
1579
|
};
|
|
1821
|
-
|
|
1822
1580
|
pp$8.parseExportDeclaration = function(node) {
|
|
1823
1581
|
return this.parseStatement(null)
|
|
1824
1582
|
};
|
|
1825
|
-
|
|
1826
1583
|
pp$8.parseExportDefaultDeclaration = function() {
|
|
1827
1584
|
var isAsync;
|
|
1828
1585
|
if (this.type === types$1._function || (isAsync = this.isAsyncFunction())) {
|
|
@@ -1839,7 +1596,6 @@
|
|
|
1839
1596
|
return declaration
|
|
1840
1597
|
}
|
|
1841
1598
|
};
|
|
1842
|
-
|
|
1843
1599
|
pp$8.checkExport = function(exports, name, pos) {
|
|
1844
1600
|
if (!exports) { return }
|
|
1845
1601
|
if (typeof name !== "string")
|
|
@@ -1848,7 +1604,6 @@
|
|
|
1848
1604
|
{ this.raiseRecoverable(pos, "Duplicate export '" + name + "'"); }
|
|
1849
1605
|
exports[name] = true;
|
|
1850
1606
|
};
|
|
1851
|
-
|
|
1852
1607
|
pp$8.checkPatternExport = function(exports, pat) {
|
|
1853
1608
|
var type = pat.type;
|
|
1854
1609
|
if (type === "Identifier")
|
|
@@ -1857,13 +1612,11 @@
|
|
|
1857
1612
|
{ for (var i = 0, list = pat.properties; i < list.length; i += 1)
|
|
1858
1613
|
{
|
|
1859
1614
|
var prop = list[i];
|
|
1860
|
-
|
|
1861
1615
|
this.checkPatternExport(exports, prop);
|
|
1862
1616
|
} }
|
|
1863
1617
|
else if (type === "ArrayPattern")
|
|
1864
1618
|
{ for (var i$1 = 0, list$1 = pat.elements; i$1 < list$1.length; i$1 += 1) {
|
|
1865
1619
|
var elt = list$1[i$1];
|
|
1866
|
-
|
|
1867
1620
|
if (elt) { this.checkPatternExport(exports, elt); }
|
|
1868
1621
|
} }
|
|
1869
1622
|
else if (type === "Property")
|
|
@@ -1873,17 +1626,14 @@
|
|
|
1873
1626
|
else if (type === "RestElement")
|
|
1874
1627
|
{ this.checkPatternExport(exports, pat.argument); }
|
|
1875
1628
|
};
|
|
1876
|
-
|
|
1877
1629
|
pp$8.checkVariableExport = function(exports, decls) {
|
|
1878
1630
|
if (!exports) { return }
|
|
1879
1631
|
for (var i = 0, list = decls; i < list.length; i += 1)
|
|
1880
1632
|
{
|
|
1881
1633
|
var decl = list[i];
|
|
1882
|
-
|
|
1883
1634
|
this.checkPatternExport(exports, decl.id);
|
|
1884
1635
|
}
|
|
1885
1636
|
};
|
|
1886
|
-
|
|
1887
1637
|
pp$8.shouldParseExportStatement = function() {
|
|
1888
1638
|
return this.type.keyword === "var" ||
|
|
1889
1639
|
this.type.keyword === "const" ||
|
|
@@ -1892,23 +1642,18 @@
|
|
|
1892
1642
|
this.isLet() ||
|
|
1893
1643
|
this.isAsyncFunction()
|
|
1894
1644
|
};
|
|
1895
|
-
|
|
1896
1645
|
// Parses a comma-separated list of module exports.
|
|
1897
|
-
|
|
1898
1646
|
pp$8.parseExportSpecifier = function(exports) {
|
|
1899
1647
|
var node = this.startNode();
|
|
1900
1648
|
node.local = this.parseModuleExportName();
|
|
1901
|
-
|
|
1902
1649
|
node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local;
|
|
1903
1650
|
this.checkExport(
|
|
1904
1651
|
exports,
|
|
1905
1652
|
node.exported,
|
|
1906
1653
|
node.exported.start
|
|
1907
1654
|
);
|
|
1908
|
-
|
|
1909
1655
|
return this.finishNode(node, "ExportSpecifier")
|
|
1910
1656
|
};
|
|
1911
|
-
|
|
1912
1657
|
pp$8.parseExportSpecifiers = function(exports) {
|
|
1913
1658
|
var nodes = [], first = true;
|
|
1914
1659
|
// export { x, y as z } [from '...']
|
|
@@ -1918,17 +1663,13 @@
|
|
|
1918
1663
|
this.expect(types$1.comma);
|
|
1919
1664
|
if (this.afterTrailingComma(types$1.braceR)) { break }
|
|
1920
1665
|
} else { first = false; }
|
|
1921
|
-
|
|
1922
1666
|
nodes.push(this.parseExportSpecifier(exports));
|
|
1923
1667
|
}
|
|
1924
1668
|
return nodes
|
|
1925
1669
|
};
|
|
1926
|
-
|
|
1927
1670
|
// Parses import declaration.
|
|
1928
|
-
|
|
1929
1671
|
pp$8.parseImport = function(node) {
|
|
1930
1672
|
this.next();
|
|
1931
|
-
|
|
1932
1673
|
// import '...'
|
|
1933
1674
|
if (this.type === types$1.string) {
|
|
1934
1675
|
node.specifiers = empty$1;
|
|
@@ -1943,13 +1684,10 @@
|
|
|
1943
1684
|
this.semicolon();
|
|
1944
1685
|
return this.finishNode(node, "ImportDeclaration")
|
|
1945
1686
|
};
|
|
1946
|
-
|
|
1947
1687
|
// Parses a comma-separated list of module imports.
|
|
1948
|
-
|
|
1949
1688
|
pp$8.parseImportSpecifier = function() {
|
|
1950
1689
|
var node = this.startNode();
|
|
1951
1690
|
node.imported = this.parseModuleExportName();
|
|
1952
|
-
|
|
1953
1691
|
if (this.eatContextual("as")) {
|
|
1954
1692
|
node.local = this.parseIdent();
|
|
1955
1693
|
} else {
|
|
@@ -1957,10 +1695,8 @@
|
|
|
1957
1695
|
node.local = node.imported;
|
|
1958
1696
|
}
|
|
1959
1697
|
this.checkLValSimple(node.local, BIND_LEXICAL);
|
|
1960
|
-
|
|
1961
1698
|
return this.finishNode(node, "ImportSpecifier")
|
|
1962
1699
|
};
|
|
1963
|
-
|
|
1964
1700
|
pp$8.parseImportDefaultSpecifier = function() {
|
|
1965
1701
|
// import defaultObj, { x, y as z } from '...'
|
|
1966
1702
|
var node = this.startNode();
|
|
@@ -1968,7 +1704,6 @@
|
|
|
1968
1704
|
this.checkLValSimple(node.local, BIND_LEXICAL);
|
|
1969
1705
|
return this.finishNode(node, "ImportDefaultSpecifier")
|
|
1970
1706
|
};
|
|
1971
|
-
|
|
1972
1707
|
pp$8.parseImportNamespaceSpecifier = function() {
|
|
1973
1708
|
var node = this.startNode();
|
|
1974
1709
|
this.next();
|
|
@@ -1977,7 +1712,6 @@
|
|
|
1977
1712
|
this.checkLValSimple(node.local, BIND_LEXICAL);
|
|
1978
1713
|
return this.finishNode(node, "ImportNamespaceSpecifier")
|
|
1979
1714
|
};
|
|
1980
|
-
|
|
1981
1715
|
pp$8.parseImportSpecifiers = function() {
|
|
1982
1716
|
var nodes = [], first = true;
|
|
1983
1717
|
if (this.type === types$1.name) {
|
|
@@ -1994,12 +1728,10 @@
|
|
|
1994
1728
|
this.expect(types$1.comma);
|
|
1995
1729
|
if (this.afterTrailingComma(types$1.braceR)) { break }
|
|
1996
1730
|
} else { first = false; }
|
|
1997
|
-
|
|
1998
1731
|
nodes.push(this.parseImportSpecifier());
|
|
1999
1732
|
}
|
|
2000
1733
|
return nodes
|
|
2001
1734
|
};
|
|
2002
|
-
|
|
2003
1735
|
pp$8.parseWithClause = function() {
|
|
2004
1736
|
var nodes = [];
|
|
2005
1737
|
if (!this.eat(types$1._with)) {
|
|
@@ -2013,7 +1745,6 @@
|
|
|
2013
1745
|
this.expect(types$1.comma);
|
|
2014
1746
|
if (this.afterTrailingComma(types$1.braceR)) { break }
|
|
2015
1747
|
} else { first = false; }
|
|
2016
|
-
|
|
2017
1748
|
var attr = this.parseImportAttribute();
|
|
2018
1749
|
var keyName = attr.key.type === "Identifier" ? attr.key.name : attr.key.value;
|
|
2019
1750
|
if (hasOwn(attributeKeys, keyName))
|
|
@@ -2023,7 +1754,6 @@
|
|
|
2023
1754
|
}
|
|
2024
1755
|
return nodes
|
|
2025
1756
|
};
|
|
2026
|
-
|
|
2027
1757
|
pp$8.parseImportAttribute = function() {
|
|
2028
1758
|
var node = this.startNode();
|
|
2029
1759
|
node.key = this.type === types$1.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
|
|
@@ -2034,7 +1764,6 @@
|
|
|
2034
1764
|
node.value = this.parseExprAtom();
|
|
2035
1765
|
return this.finishNode(node, "ImportAttribute")
|
|
2036
1766
|
};
|
|
2037
|
-
|
|
2038
1767
|
pp$8.parseModuleExportName = function() {
|
|
2039
1768
|
if (this.options.ecmaVersion >= 13 && this.type === types$1.string) {
|
|
2040
1769
|
var stringLiteral = this.parseLiteral(this.value);
|
|
@@ -2045,7 +1774,6 @@
|
|
|
2045
1774
|
}
|
|
2046
1775
|
return this.parseIdent(true)
|
|
2047
1776
|
};
|
|
2048
|
-
|
|
2049
1777
|
// Set `ExpressionStatement#directive` property for directive prologues.
|
|
2050
1778
|
pp$8.adaptDirectivePrologue = function(statements) {
|
|
2051
1779
|
for (var i = 0; i < statements.length && this.isDirectiveCandidate(statements[i]); ++i) {
|
|
@@ -2062,12 +1790,9 @@
|
|
|
2062
1790
|
(this.input[statement.start] === "\"" || this.input[statement.start] === "'")
|
|
2063
1791
|
)
|
|
2064
1792
|
};
|
|
2065
|
-
|
|
2066
1793
|
var pp$7 = Parser.prototype;
|
|
2067
|
-
|
|
2068
1794
|
// Convert existing expression atom to assignable pattern
|
|
2069
1795
|
// if possible.
|
|
2070
|
-
|
|
2071
1796
|
pp$7.toAssignable = function(node, isBinding, refDestructuringErrors) {
|
|
2072
1797
|
if (this.options.ecmaVersion >= 6 && node) {
|
|
2073
1798
|
switch (node.type) {
|
|
@@ -2075,19 +1800,16 @@
|
|
|
2075
1800
|
if (this.inAsync && node.name === "await")
|
|
2076
1801
|
{ this.raise(node.start, "Cannot use 'await' as identifier inside an async function"); }
|
|
2077
1802
|
break
|
|
2078
|
-
|
|
2079
1803
|
case "ObjectPattern":
|
|
2080
1804
|
case "ArrayPattern":
|
|
2081
1805
|
case "AssignmentPattern":
|
|
2082
1806
|
case "RestElement":
|
|
2083
1807
|
break
|
|
2084
|
-
|
|
2085
1808
|
case "ObjectExpression":
|
|
2086
1809
|
node.type = "ObjectPattern";
|
|
2087
1810
|
if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors, true); }
|
|
2088
1811
|
for (var i = 0, list = node.properties; i < list.length; i += 1) {
|
|
2089
1812
|
var prop = list[i];
|
|
2090
|
-
|
|
2091
1813
|
this.toAssignable(prop, isBinding);
|
|
2092
1814
|
// Early error:
|
|
2093
1815
|
// AssignmentRestProperty[Yield, Await] :
|
|
@@ -2102,53 +1824,43 @@
|
|
|
2102
1824
|
}
|
|
2103
1825
|
}
|
|
2104
1826
|
break
|
|
2105
|
-
|
|
2106
1827
|
case "Property":
|
|
2107
1828
|
// AssignmentProperty has type === "Property"
|
|
2108
1829
|
if (node.kind !== "init") { this.raise(node.key.start, "Object pattern can't contain getter or setter"); }
|
|
2109
1830
|
this.toAssignable(node.value, isBinding);
|
|
2110
1831
|
break
|
|
2111
|
-
|
|
2112
1832
|
case "ArrayExpression":
|
|
2113
1833
|
node.type = "ArrayPattern";
|
|
2114
1834
|
if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors, true); }
|
|
2115
1835
|
this.toAssignableList(node.elements, isBinding);
|
|
2116
1836
|
break
|
|
2117
|
-
|
|
2118
1837
|
case "SpreadElement":
|
|
2119
1838
|
node.type = "RestElement";
|
|
2120
1839
|
this.toAssignable(node.argument, isBinding);
|
|
2121
1840
|
if (node.argument.type === "AssignmentPattern")
|
|
2122
1841
|
{ this.raise(node.argument.start, "Rest elements cannot have a default value"); }
|
|
2123
1842
|
break
|
|
2124
|
-
|
|
2125
1843
|
case "AssignmentExpression":
|
|
2126
1844
|
if (node.operator !== "=") { this.raise(node.left.end, "Only '=' operator can be used for specifying default value."); }
|
|
2127
1845
|
node.type = "AssignmentPattern";
|
|
2128
1846
|
delete node.operator;
|
|
2129
1847
|
this.toAssignable(node.left, isBinding);
|
|
2130
1848
|
break
|
|
2131
|
-
|
|
2132
1849
|
case "ParenthesizedExpression":
|
|
2133
1850
|
this.toAssignable(node.expression, isBinding, refDestructuringErrors);
|
|
2134
1851
|
break
|
|
2135
|
-
|
|
2136
1852
|
case "ChainExpression":
|
|
2137
1853
|
this.raiseRecoverable(node.start, "Optional chaining cannot appear in left-hand side");
|
|
2138
1854
|
break
|
|
2139
|
-
|
|
2140
1855
|
case "MemberExpression":
|
|
2141
1856
|
if (!isBinding) { break }
|
|
2142
|
-
|
|
2143
1857
|
default:
|
|
2144
1858
|
this.raise(node.start, "Assigning to rvalue");
|
|
2145
1859
|
}
|
|
2146
1860
|
} else if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors, true); }
|
|
2147
1861
|
return node
|
|
2148
1862
|
};
|
|
2149
|
-
|
|
2150
1863
|
// Convert list of expression atoms to binding list.
|
|
2151
|
-
|
|
2152
1864
|
pp$7.toAssignableList = function(exprList, isBinding) {
|
|
2153
1865
|
var end = exprList.length;
|
|
2154
1866
|
for (var i = 0; i < end; i++) {
|
|
@@ -2162,47 +1874,38 @@
|
|
|
2162
1874
|
}
|
|
2163
1875
|
return exprList
|
|
2164
1876
|
};
|
|
2165
|
-
|
|
2166
1877
|
// Parses spread element.
|
|
2167
|
-
|
|
2168
1878
|
pp$7.parseSpread = function(refDestructuringErrors) {
|
|
2169
1879
|
var node = this.startNode();
|
|
2170
1880
|
this.next();
|
|
2171
1881
|
node.argument = this.parseMaybeAssign(false, refDestructuringErrors);
|
|
2172
1882
|
return this.finishNode(node, "SpreadElement")
|
|
2173
1883
|
};
|
|
2174
|
-
|
|
2175
1884
|
pp$7.parseRestBinding = function() {
|
|
2176
1885
|
var node = this.startNode();
|
|
2177
1886
|
this.next();
|
|
2178
|
-
|
|
2179
1887
|
// RestElement inside of a function parameter must be an identifier
|
|
2180
1888
|
if (this.options.ecmaVersion === 6 && this.type !== types$1.name)
|
|
2181
1889
|
{ this.unexpected(); }
|
|
2182
|
-
|
|
2183
1890
|
node.argument = this.parseBindingAtom();
|
|
2184
|
-
|
|
2185
1891
|
return this.finishNode(node, "RestElement")
|
|
2186
1892
|
};
|
|
2187
|
-
|
|
2188
1893
|
// Parses lvalue (assignable) atom.
|
|
2189
|
-
|
|
2190
1894
|
pp$7.parseBindingAtom = function() {
|
|
2191
1895
|
if (this.options.ecmaVersion >= 6) {
|
|
2192
1896
|
switch (this.type) {
|
|
2193
|
-
case types$1.bracketL:
|
|
1897
|
+
case types$1.bracketL: {
|
|
2194
1898
|
var node = this.startNode();
|
|
2195
1899
|
this.next();
|
|
2196
1900
|
node.elements = this.parseBindingList(types$1.bracketR, true, true);
|
|
2197
1901
|
return this.finishNode(node, "ArrayPattern")
|
|
2198
|
-
|
|
1902
|
+
}
|
|
2199
1903
|
case types$1.braceL:
|
|
2200
1904
|
return this.parseObj(true)
|
|
2201
1905
|
}
|
|
2202
1906
|
}
|
|
2203
1907
|
return this.parseIdent()
|
|
2204
1908
|
};
|
|
2205
|
-
|
|
2206
1909
|
pp$7.parseBindingList = function(close, allowEmpty, allowTrailingComma, allowModifiers) {
|
|
2207
1910
|
var elts = [], first = true;
|
|
2208
1911
|
while (!this.eat(close)) {
|
|
@@ -2225,19 +1928,15 @@
|
|
|
2225
1928
|
}
|
|
2226
1929
|
return elts
|
|
2227
1930
|
};
|
|
2228
|
-
|
|
2229
1931
|
pp$7.parseAssignableListItem = function(allowModifiers) {
|
|
2230
1932
|
var elem = this.parseMaybeDefault(this.start, this.startLoc);
|
|
2231
1933
|
this.parseBindingListItem(elem);
|
|
2232
1934
|
return elem
|
|
2233
1935
|
};
|
|
2234
|
-
|
|
2235
1936
|
pp$7.parseBindingListItem = function(param) {
|
|
2236
1937
|
return param
|
|
2237
1938
|
};
|
|
2238
|
-
|
|
2239
1939
|
// Parses assignment pattern around given atom if possible.
|
|
2240
|
-
|
|
2241
1940
|
pp$7.parseMaybeDefault = function(startPos, startLoc, left) {
|
|
2242
1941
|
left = left || this.parseBindingAtom();
|
|
2243
1942
|
if (this.options.ecmaVersion < 6 || !this.eat(types$1.eq)) { return left }
|
|
@@ -2246,7 +1945,6 @@
|
|
|
2246
1945
|
node.right = this.parseMaybeAssign();
|
|
2247
1946
|
return this.finishNode(node, "AssignmentPattern")
|
|
2248
1947
|
};
|
|
2249
|
-
|
|
2250
1948
|
// The following three functions all verify that a node is an lvalue —
|
|
2251
1949
|
// something that can be bound, or assigned to. In order to do so, they perform
|
|
2252
1950
|
// a variety of checks:
|
|
@@ -2310,12 +2008,9 @@
|
|
|
2310
2008
|
// additionally a checkClashes object may be specified to allow checking for
|
|
2311
2009
|
// duplicate argument names. checkClashes is ignored if the provided construct
|
|
2312
2010
|
// is an assignment (i.e., bindingType is BIND_NONE).
|
|
2313
|
-
|
|
2314
2011
|
pp$7.checkLValSimple = function(expr, bindingType, checkClashes) {
|
|
2315
2012
|
if ( bindingType === void 0 ) bindingType = BIND_NONE;
|
|
2316
|
-
|
|
2317
2013
|
var isBind = bindingType !== BIND_NONE;
|
|
2318
|
-
|
|
2319
2014
|
switch (expr.type) {
|
|
2320
2015
|
case "Identifier":
|
|
2321
2016
|
if (this.strict && this.reservedWordsStrictBind.test(expr.name))
|
|
@@ -2331,76 +2026,58 @@
|
|
|
2331
2026
|
if (bindingType !== BIND_OUTSIDE) { this.declareName(expr.name, bindingType, expr.start); }
|
|
2332
2027
|
}
|
|
2333
2028
|
break
|
|
2334
|
-
|
|
2335
2029
|
case "ChainExpression":
|
|
2336
2030
|
this.raiseRecoverable(expr.start, "Optional chaining cannot appear in left-hand side");
|
|
2337
2031
|
break
|
|
2338
|
-
|
|
2339
2032
|
case "MemberExpression":
|
|
2340
2033
|
if (isBind) { this.raiseRecoverable(expr.start, "Binding member expression"); }
|
|
2341
2034
|
break
|
|
2342
|
-
|
|
2343
2035
|
case "ParenthesizedExpression":
|
|
2344
2036
|
if (isBind) { this.raiseRecoverable(expr.start, "Binding parenthesized expression"); }
|
|
2345
2037
|
return this.checkLValSimple(expr.expression, bindingType, checkClashes)
|
|
2346
|
-
|
|
2347
2038
|
default:
|
|
2348
2039
|
this.raise(expr.start, (isBind ? "Binding" : "Assigning to") + " rvalue");
|
|
2349
2040
|
}
|
|
2350
2041
|
};
|
|
2351
|
-
|
|
2352
2042
|
pp$7.checkLValPattern = function(expr, bindingType, checkClashes) {
|
|
2353
2043
|
if ( bindingType === void 0 ) bindingType = BIND_NONE;
|
|
2354
|
-
|
|
2355
2044
|
switch (expr.type) {
|
|
2356
2045
|
case "ObjectPattern":
|
|
2357
2046
|
for (var i = 0, list = expr.properties; i < list.length; i += 1) {
|
|
2358
2047
|
var prop = list[i];
|
|
2359
|
-
|
|
2360
2048
|
this.checkLValInnerPattern(prop, bindingType, checkClashes);
|
|
2361
2049
|
}
|
|
2362
2050
|
break
|
|
2363
|
-
|
|
2364
2051
|
case "ArrayPattern":
|
|
2365
2052
|
for (var i$1 = 0, list$1 = expr.elements; i$1 < list$1.length; i$1 += 1) {
|
|
2366
2053
|
var elem = list$1[i$1];
|
|
2367
|
-
|
|
2368
2054
|
if (elem) { this.checkLValInnerPattern(elem, bindingType, checkClashes); }
|
|
2369
2055
|
}
|
|
2370
2056
|
break
|
|
2371
|
-
|
|
2372
2057
|
default:
|
|
2373
2058
|
this.checkLValSimple(expr, bindingType, checkClashes);
|
|
2374
2059
|
}
|
|
2375
2060
|
};
|
|
2376
|
-
|
|
2377
2061
|
pp$7.checkLValInnerPattern = function(expr, bindingType, checkClashes) {
|
|
2378
2062
|
if ( bindingType === void 0 ) bindingType = BIND_NONE;
|
|
2379
|
-
|
|
2380
2063
|
switch (expr.type) {
|
|
2381
2064
|
case "Property":
|
|
2382
2065
|
// AssignmentProperty has type === "Property"
|
|
2383
2066
|
this.checkLValInnerPattern(expr.value, bindingType, checkClashes);
|
|
2384
2067
|
break
|
|
2385
|
-
|
|
2386
2068
|
case "AssignmentPattern":
|
|
2387
2069
|
this.checkLValPattern(expr.left, bindingType, checkClashes);
|
|
2388
2070
|
break
|
|
2389
|
-
|
|
2390
2071
|
case "RestElement":
|
|
2391
2072
|
this.checkLValPattern(expr.argument, bindingType, checkClashes);
|
|
2392
2073
|
break
|
|
2393
|
-
|
|
2394
2074
|
default:
|
|
2395
2075
|
this.checkLValPattern(expr, bindingType, checkClashes);
|
|
2396
2076
|
}
|
|
2397
2077
|
};
|
|
2398
|
-
|
|
2399
2078
|
// The algorithm used to determine whether a regexp can appear at a
|
|
2400
2079
|
// given point in the program is loosely based on sweet.js' approach.
|
|
2401
2080
|
// See https://github.com/mozilla/sweet.js/wiki/design
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
2081
|
var TokContext = function TokContext(token, isExpr, preserveSpace, override, generator) {
|
|
2405
2082
|
this.token = token;
|
|
2406
2083
|
this.isExpr = !!isExpr;
|
|
@@ -2408,7 +2085,6 @@
|
|
|
2408
2085
|
this.override = override;
|
|
2409
2086
|
this.generator = !!generator;
|
|
2410
2087
|
};
|
|
2411
|
-
|
|
2412
2088
|
var types = {
|
|
2413
2089
|
b_stat: new TokContext("{", false),
|
|
2414
2090
|
b_expr: new TokContext("{", true),
|
|
@@ -2421,24 +2097,19 @@
|
|
|
2421
2097
|
f_expr_gen: new TokContext("function", true, false, null, true),
|
|
2422
2098
|
f_gen: new TokContext("function", false, false, null, true)
|
|
2423
2099
|
};
|
|
2424
|
-
|
|
2425
2100
|
var pp$6 = Parser.prototype;
|
|
2426
|
-
|
|
2427
2101
|
pp$6.initialContext = function() {
|
|
2428
2102
|
return [types.b_stat]
|
|
2429
2103
|
};
|
|
2430
|
-
|
|
2431
2104
|
pp$6.curContext = function() {
|
|
2432
2105
|
return this.context[this.context.length - 1]
|
|
2433
2106
|
};
|
|
2434
|
-
|
|
2435
2107
|
pp$6.braceIsBlock = function(prevType) {
|
|
2436
2108
|
var parent = this.curContext();
|
|
2437
2109
|
if (parent === types.f_expr || parent === types.f_stat)
|
|
2438
2110
|
{ return true }
|
|
2439
2111
|
if (prevType === types$1.colon && (parent === types.b_stat || parent === types.b_expr))
|
|
2440
2112
|
{ return !parent.isExpr }
|
|
2441
|
-
|
|
2442
2113
|
// The check for `tt.name && exprAllowed` detects whether we are
|
|
2443
2114
|
// after a `yield` or `of` construct. See the `updateContext` for
|
|
2444
2115
|
// `tt.name`.
|
|
@@ -2452,7 +2123,6 @@
|
|
|
2452
2123
|
{ return false }
|
|
2453
2124
|
return !this.exprAllowed
|
|
2454
2125
|
};
|
|
2455
|
-
|
|
2456
2126
|
pp$6.inGeneratorContext = function() {
|
|
2457
2127
|
for (var i = this.context.length - 1; i >= 1; i--) {
|
|
2458
2128
|
var context = this.context[i];
|
|
@@ -2461,7 +2131,6 @@
|
|
|
2461
2131
|
}
|
|
2462
2132
|
return false
|
|
2463
2133
|
};
|
|
2464
|
-
|
|
2465
2134
|
pp$6.updateContext = function(prevType) {
|
|
2466
2135
|
var update, type = this.type;
|
|
2467
2136
|
if (type.keyword && prevType === types$1.dot)
|
|
@@ -2471,17 +2140,13 @@
|
|
|
2471
2140
|
else
|
|
2472
2141
|
{ this.exprAllowed = type.beforeExpr; }
|
|
2473
2142
|
};
|
|
2474
|
-
|
|
2475
2143
|
// Used to handle edge cases when token context could not be inferred correctly during tokenization phase
|
|
2476
|
-
|
|
2477
2144
|
pp$6.overrideContext = function(tokenCtx) {
|
|
2478
2145
|
if (this.curContext() !== tokenCtx) {
|
|
2479
2146
|
this.context[this.context.length - 1] = tokenCtx;
|
|
2480
2147
|
}
|
|
2481
2148
|
};
|
|
2482
|
-
|
|
2483
2149
|
// Token-specific context update code
|
|
2484
|
-
|
|
2485
2150
|
types$1.parenR.updateContext = types$1.braceR.updateContext = function() {
|
|
2486
2151
|
if (this.context.length === 1) {
|
|
2487
2152
|
this.exprAllowed = true;
|
|
@@ -2493,27 +2158,22 @@
|
|
|
2493
2158
|
}
|
|
2494
2159
|
this.exprAllowed = !out.isExpr;
|
|
2495
2160
|
};
|
|
2496
|
-
|
|
2497
2161
|
types$1.braceL.updateContext = function(prevType) {
|
|
2498
2162
|
this.context.push(this.braceIsBlock(prevType) ? types.b_stat : types.b_expr);
|
|
2499
2163
|
this.exprAllowed = true;
|
|
2500
2164
|
};
|
|
2501
|
-
|
|
2502
2165
|
types$1.dollarBraceL.updateContext = function() {
|
|
2503
2166
|
this.context.push(types.b_tmpl);
|
|
2504
2167
|
this.exprAllowed = true;
|
|
2505
2168
|
};
|
|
2506
|
-
|
|
2507
2169
|
types$1.parenL.updateContext = function(prevType) {
|
|
2508
2170
|
var statementParens = prevType === types$1._if || prevType === types$1._for || prevType === types$1._with || prevType === types$1._while;
|
|
2509
2171
|
this.context.push(statementParens ? types.p_stat : types.p_expr);
|
|
2510
2172
|
this.exprAllowed = true;
|
|
2511
2173
|
};
|
|
2512
|
-
|
|
2513
2174
|
types$1.incDec.updateContext = function() {
|
|
2514
2175
|
// tokExprAllowed stays unchanged
|
|
2515
2176
|
};
|
|
2516
|
-
|
|
2517
2177
|
types$1._function.updateContext = types$1._class.updateContext = function(prevType) {
|
|
2518
2178
|
if (prevType.beforeExpr && prevType !== types$1._else &&
|
|
2519
2179
|
!(prevType === types$1.semi && this.curContext() !== types.p_stat) &&
|
|
@@ -2524,12 +2184,10 @@
|
|
|
2524
2184
|
{ this.context.push(types.f_stat); }
|
|
2525
2185
|
this.exprAllowed = false;
|
|
2526
2186
|
};
|
|
2527
|
-
|
|
2528
2187
|
types$1.colon.updateContext = function() {
|
|
2529
2188
|
if (this.curContext().token === "function") { this.context.pop(); }
|
|
2530
2189
|
this.exprAllowed = true;
|
|
2531
2190
|
};
|
|
2532
|
-
|
|
2533
2191
|
types$1.backQuote.updateContext = function() {
|
|
2534
2192
|
if (this.curContext() === types.q_tmpl)
|
|
2535
2193
|
{ this.context.pop(); }
|
|
@@ -2537,7 +2195,6 @@
|
|
|
2537
2195
|
{ this.context.push(types.q_tmpl); }
|
|
2538
2196
|
this.exprAllowed = false;
|
|
2539
2197
|
};
|
|
2540
|
-
|
|
2541
2198
|
types$1.star.updateContext = function(prevType) {
|
|
2542
2199
|
if (prevType === types$1._function) {
|
|
2543
2200
|
var index = this.context.length - 1;
|
|
@@ -2548,7 +2205,6 @@
|
|
|
2548
2205
|
}
|
|
2549
2206
|
this.exprAllowed = true;
|
|
2550
2207
|
};
|
|
2551
|
-
|
|
2552
2208
|
types$1.name.updateContext = function(prevType) {
|
|
2553
2209
|
var allowed = false;
|
|
2554
2210
|
if (this.options.ecmaVersion >= 6 && prevType !== types$1.dot) {
|
|
@@ -2558,7 +2214,6 @@
|
|
|
2558
2214
|
}
|
|
2559
2215
|
this.exprAllowed = allowed;
|
|
2560
2216
|
};
|
|
2561
|
-
|
|
2562
2217
|
// A recursive descent parser operates by defining functions for all
|
|
2563
2218
|
// syntactic elements, and recursively calling those, each function
|
|
2564
2219
|
// advancing the input stream and returning an AST node. Precedence
|
|
@@ -2576,15 +2231,11 @@
|
|
|
2576
2231
|
// precedence levels that JavaScript defines.
|
|
2577
2232
|
//
|
|
2578
2233
|
// [opp]: http://en.wikipedia.org/wiki/Operator-precedence_parser
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
2234
|
var pp$5 = Parser.prototype;
|
|
2582
|
-
|
|
2583
2235
|
// Check if property name clashes with already added.
|
|
2584
2236
|
// Object/class getters and setters are not allowed to clash —
|
|
2585
2237
|
// either with each other or with an init property — and in
|
|
2586
2238
|
// strict mode, init properties are also not allowed to be repeated.
|
|
2587
|
-
|
|
2588
2239
|
pp$5.checkPropClash = function(prop, propHash, refDestructuringErrors) {
|
|
2589
2240
|
if (this.options.ecmaVersion >= 9 && prop.type === "SpreadElement")
|
|
2590
2241
|
{ return }
|
|
@@ -2633,22 +2284,18 @@
|
|
|
2633
2284
|
}
|
|
2634
2285
|
other[kind] = true;
|
|
2635
2286
|
};
|
|
2636
|
-
|
|
2637
2287
|
// ### Expression parsing
|
|
2638
|
-
|
|
2639
2288
|
// These nest, from the most general expression type at the top to
|
|
2640
2289
|
// 'atomic', nondivisible expression types at the bottom. Most of
|
|
2641
2290
|
// the functions will simply let the function(s) below them parse,
|
|
2642
2291
|
// and, *if* the syntactic construct they handle is present, wrap
|
|
2643
2292
|
// the AST node that the inner parser gave them in another node.
|
|
2644
|
-
|
|
2645
2293
|
// Parse a full expression. The optional arguments are used to
|
|
2646
2294
|
// forbid the `in` operator (in for loops initalization expressions)
|
|
2647
2295
|
// and provide reference for storing '=' operator inside shorthand
|
|
2648
2296
|
// property assignment in contexts where both object expression
|
|
2649
2297
|
// and object pattern might appear (so it's possible to raise
|
|
2650
2298
|
// delayed syntax error at correct position).
|
|
2651
|
-
|
|
2652
2299
|
pp$5.parseExpression = function(forInit, refDestructuringErrors) {
|
|
2653
2300
|
var startPos = this.start, startLoc = this.startLoc;
|
|
2654
2301
|
var expr = this.parseMaybeAssign(forInit, refDestructuringErrors);
|
|
@@ -2660,10 +2307,8 @@
|
|
|
2660
2307
|
}
|
|
2661
2308
|
return expr
|
|
2662
2309
|
};
|
|
2663
|
-
|
|
2664
2310
|
// Parse an assignment expression. This includes applications of
|
|
2665
2311
|
// operators like `+=`.
|
|
2666
|
-
|
|
2667
2312
|
pp$5.parseMaybeAssign = function(forInit, refDestructuringErrors, afterLeftParse) {
|
|
2668
2313
|
if (this.isContextual("yield")) {
|
|
2669
2314
|
if (this.inGenerator) { return this.parseYield(forInit) }
|
|
@@ -2671,7 +2316,6 @@
|
|
|
2671
2316
|
// `yield`, but this isn't that kind of yield
|
|
2672
2317
|
else { this.exprAllowed = false; }
|
|
2673
2318
|
}
|
|
2674
|
-
|
|
2675
2319
|
var ownDestructuringErrors = false, oldParenAssign = -1, oldTrailingComma = -1, oldDoubleProto = -1;
|
|
2676
2320
|
if (refDestructuringErrors) {
|
|
2677
2321
|
oldParenAssign = refDestructuringErrors.parenthesizedAssign;
|
|
@@ -2682,7 +2326,6 @@
|
|
|
2682
2326
|
refDestructuringErrors = new DestructuringErrors;
|
|
2683
2327
|
ownDestructuringErrors = true;
|
|
2684
2328
|
}
|
|
2685
|
-
|
|
2686
2329
|
var startPos = this.start, startLoc = this.startLoc;
|
|
2687
2330
|
if (this.type === types$1.parenL || this.type === types$1.name) {
|
|
2688
2331
|
this.potentialArrowAt = this.start;
|
|
@@ -2716,9 +2359,7 @@
|
|
|
2716
2359
|
if (oldTrailingComma > -1) { refDestructuringErrors.trailingComma = oldTrailingComma; }
|
|
2717
2360
|
return left
|
|
2718
2361
|
};
|
|
2719
|
-
|
|
2720
2362
|
// Parse a ternary conditional (`?:`) operator.
|
|
2721
|
-
|
|
2722
2363
|
pp$5.parseMaybeConditional = function(forInit, refDestructuringErrors) {
|
|
2723
2364
|
var startPos = this.start, startLoc = this.startLoc;
|
|
2724
2365
|
var expr = this.parseExprOps(forInit, refDestructuringErrors);
|
|
@@ -2733,22 +2374,18 @@
|
|
|
2733
2374
|
}
|
|
2734
2375
|
return expr
|
|
2735
2376
|
};
|
|
2736
|
-
|
|
2737
2377
|
// Start the precedence parser.
|
|
2738
|
-
|
|
2739
2378
|
pp$5.parseExprOps = function(forInit, refDestructuringErrors) {
|
|
2740
2379
|
var startPos = this.start, startLoc = this.startLoc;
|
|
2741
2380
|
var expr = this.parseMaybeUnary(refDestructuringErrors, false, false, forInit);
|
|
2742
2381
|
if (this.checkExpressionErrors(refDestructuringErrors)) { return expr }
|
|
2743
2382
|
return expr.start === startPos && expr.type === "ArrowFunctionExpression" ? expr : this.parseExprOp(expr, startPos, startLoc, -1, forInit)
|
|
2744
2383
|
};
|
|
2745
|
-
|
|
2746
2384
|
// Parse binary operators with the operator precedence parsing
|
|
2747
2385
|
// algorithm. `left` is the left-hand side of the operator.
|
|
2748
2386
|
// `minPrec` provides context that allows the function to stop and
|
|
2749
2387
|
// defer further parser to one of its callers when it encounters an
|
|
2750
2388
|
// operator that has a lower precedence than the set it is parsing.
|
|
2751
|
-
|
|
2752
2389
|
pp$5.parseExprOp = function(left, leftStartPos, leftStartLoc, minPrec, forInit) {
|
|
2753
2390
|
var prec = this.type.binop;
|
|
2754
2391
|
if (prec != null && (!forInit || this.type !== types$1._in)) {
|
|
@@ -2773,7 +2410,6 @@
|
|
|
2773
2410
|
}
|
|
2774
2411
|
return left
|
|
2775
2412
|
};
|
|
2776
|
-
|
|
2777
2413
|
pp$5.buildBinary = function(startPos, startLoc, left, right, op, logical) {
|
|
2778
2414
|
if (right.type === "PrivateIdentifier") { this.raise(right.start, "Private identifier can only be left side of binary expression"); }
|
|
2779
2415
|
var node = this.startNodeAt(startPos, startLoc);
|
|
@@ -2782,9 +2418,7 @@
|
|
|
2782
2418
|
node.right = right;
|
|
2783
2419
|
return this.finishNode(node, logical ? "LogicalExpression" : "BinaryExpression")
|
|
2784
2420
|
};
|
|
2785
|
-
|
|
2786
2421
|
// Parse unary operators, both prefix and postfix.
|
|
2787
|
-
|
|
2788
2422
|
pp$5.parseMaybeUnary = function(refDestructuringErrors, sawUnary, incDec, forInit) {
|
|
2789
2423
|
var startPos = this.start, startLoc = this.startLoc, expr;
|
|
2790
2424
|
if (this.isContextual("await") && this.canAwait) {
|
|
@@ -2822,7 +2456,6 @@
|
|
|
2822
2456
|
expr = this.finishNode(node$1, "UpdateExpression");
|
|
2823
2457
|
}
|
|
2824
2458
|
}
|
|
2825
|
-
|
|
2826
2459
|
if (!incDec && this.eat(types$1.starstar)) {
|
|
2827
2460
|
if (sawUnary)
|
|
2828
2461
|
{ this.unexpected(this.lastTokStart); }
|
|
@@ -2832,14 +2465,12 @@
|
|
|
2832
2465
|
return expr
|
|
2833
2466
|
}
|
|
2834
2467
|
};
|
|
2835
|
-
|
|
2836
2468
|
function isLocalVariableAccess(node) {
|
|
2837
2469
|
return (
|
|
2838
2470
|
node.type === "Identifier" ||
|
|
2839
2471
|
node.type === "ParenthesizedExpression" && isLocalVariableAccess(node.expression)
|
|
2840
2472
|
)
|
|
2841
2473
|
}
|
|
2842
|
-
|
|
2843
2474
|
function isPrivateFieldAccess(node) {
|
|
2844
2475
|
return (
|
|
2845
2476
|
node.type === "MemberExpression" && node.property.type === "PrivateIdentifier" ||
|
|
@@ -2847,9 +2478,7 @@
|
|
|
2847
2478
|
node.type === "ParenthesizedExpression" && isPrivateFieldAccess(node.expression)
|
|
2848
2479
|
)
|
|
2849
2480
|
}
|
|
2850
|
-
|
|
2851
2481
|
// Parse call, dot, and `[]`-subscript expressions.
|
|
2852
|
-
|
|
2853
2482
|
pp$5.parseExprSubscripts = function(refDestructuringErrors, forInit) {
|
|
2854
2483
|
var startPos = this.start, startLoc = this.startLoc;
|
|
2855
2484
|
var expr = this.parseExprAtom(refDestructuringErrors, forInit);
|
|
@@ -2863,16 +2492,13 @@
|
|
|
2863
2492
|
}
|
|
2864
2493
|
return result
|
|
2865
2494
|
};
|
|
2866
|
-
|
|
2867
2495
|
pp$5.parseSubscripts = function(base, startPos, startLoc, noCalls, forInit) {
|
|
2868
2496
|
var maybeAsyncArrow = this.options.ecmaVersion >= 8 && base.type === "Identifier" && base.name === "async" &&
|
|
2869
2497
|
this.lastTokEnd === base.end && !this.canInsertSemicolon() && base.end - base.start === 5 &&
|
|
2870
2498
|
this.potentialArrowAt === base.start;
|
|
2871
2499
|
var optionalChained = false;
|
|
2872
|
-
|
|
2873
2500
|
while (true) {
|
|
2874
2501
|
var element = this.parseSubscript(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit);
|
|
2875
|
-
|
|
2876
2502
|
if (element.optional) { optionalChained = true; }
|
|
2877
2503
|
if (element === base || element.type === "ArrowFunctionExpression") {
|
|
2878
2504
|
if (optionalChained) {
|
|
@@ -2882,24 +2508,19 @@
|
|
|
2882
2508
|
}
|
|
2883
2509
|
return element
|
|
2884
2510
|
}
|
|
2885
|
-
|
|
2886
2511
|
base = element;
|
|
2887
2512
|
}
|
|
2888
2513
|
};
|
|
2889
|
-
|
|
2890
2514
|
pp$5.shouldParseAsyncArrow = function() {
|
|
2891
2515
|
return !this.canInsertSemicolon() && this.eat(types$1.arrow)
|
|
2892
2516
|
};
|
|
2893
|
-
|
|
2894
2517
|
pp$5.parseSubscriptAsyncArrow = function(startPos, startLoc, exprList, forInit) {
|
|
2895
2518
|
return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, true, forInit)
|
|
2896
2519
|
};
|
|
2897
|
-
|
|
2898
2520
|
pp$5.parseSubscript = function(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit) {
|
|
2899
2521
|
var optionalSupported = this.options.ecmaVersion >= 11;
|
|
2900
2522
|
var optional = optionalSupported && this.eat(types$1.questionDot);
|
|
2901
2523
|
if (noCalls && optional) { this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions"); }
|
|
2902
|
-
|
|
2903
2524
|
var computed = this.eat(types$1.bracketL);
|
|
2904
2525
|
if (computed || (optional && this.type !== types$1.parenL && this.type !== types$1.backQuote) || this.eat(types$1.dot)) {
|
|
2905
2526
|
var node = this.startNodeAt(startPos, startLoc);
|
|
@@ -2955,17 +2576,14 @@
|
|
|
2955
2576
|
}
|
|
2956
2577
|
return base
|
|
2957
2578
|
};
|
|
2958
|
-
|
|
2959
2579
|
// Parse an atomic expression — either a single token that is an
|
|
2960
2580
|
// expression, an expression started by a keyword like `function` or
|
|
2961
2581
|
// `new`, or an expression wrapped in punctuation like `()`, `[]`,
|
|
2962
2582
|
// or `{}`.
|
|
2963
|
-
|
|
2964
2583
|
pp$5.parseExprAtom = function(refDestructuringErrors, forInit, forNew) {
|
|
2965
2584
|
// If a division operator appears in an expression position, the
|
|
2966
2585
|
// tokenizer got confused, and we force it to read a regexp instead.
|
|
2967
2586
|
if (this.type === types$1.slash) { this.readRegexp(); }
|
|
2968
|
-
|
|
2969
2587
|
var node, canBeArrow = this.potentialArrowAt === this.start;
|
|
2970
2588
|
switch (this.type) {
|
|
2971
2589
|
case types$1._super:
|
|
@@ -2984,18 +2602,17 @@
|
|
|
2984
2602
|
if (this.type !== types$1.dot && this.type !== types$1.bracketL && this.type !== types$1.parenL)
|
|
2985
2603
|
{ this.unexpected(); }
|
|
2986
2604
|
return this.finishNode(node, "Super")
|
|
2987
|
-
|
|
2988
2605
|
case types$1._this:
|
|
2989
2606
|
node = this.startNode();
|
|
2990
2607
|
this.next();
|
|
2991
2608
|
return this.finishNode(node, "ThisExpression")
|
|
2992
|
-
|
|
2993
|
-
case types$1.name:
|
|
2609
|
+
case types$1.name: {
|
|
2994
2610
|
var startPos = this.start, startLoc = this.startLoc, containsEsc = this.containsEsc;
|
|
2995
2611
|
var id = this.parseIdent(false);
|
|
2996
2612
|
if (this.options.ecmaVersion >= 8 && !containsEsc && id.name === "async" && !this.canInsertSemicolon() && this.eat(types$1._function)) {
|
|
2997
2613
|
this.overrideContext(types.f_expr);
|
|
2998
2614
|
return this.parseFunction(this.startNodeAt(startPos, startLoc), 0, false, true, forInit)
|
|
2615
|
+
}
|
|
2999
2616
|
}
|
|
3000
2617
|
if (canBeArrow && !this.canInsertSemicolon()) {
|
|
3001
2618
|
if (this.eat(types$1.arrow))
|
|
@@ -3009,24 +2626,21 @@
|
|
|
3009
2626
|
}
|
|
3010
2627
|
}
|
|
3011
2628
|
return id
|
|
3012
|
-
|
|
3013
|
-
case types$1.regexp:
|
|
2629
|
+
case types$1.regexp: {
|
|
3014
2630
|
var value = this.value;
|
|
3015
2631
|
node = this.parseLiteral(value.value);
|
|
3016
2632
|
node.regex = {pattern: value.pattern, flags: value.flags};
|
|
3017
2633
|
return node
|
|
3018
|
-
|
|
2634
|
+
}
|
|
3019
2635
|
case types$1.num: case types$1.string:
|
|
3020
2636
|
return this.parseLiteral(this.value)
|
|
3021
|
-
|
|
3022
2637
|
case types$1._null: case types$1._true: case types$1._false:
|
|
3023
2638
|
node = this.startNode();
|
|
3024
2639
|
node.value = this.type === types$1._null ? null : this.type === types$1._true;
|
|
3025
2640
|
node.raw = this.type.keyword;
|
|
3026
2641
|
this.next();
|
|
3027
2642
|
return this.finishNode(node, "Literal")
|
|
3028
|
-
|
|
3029
|
-
case types$1.parenL:
|
|
2643
|
+
case types$1.parenL: {
|
|
3030
2644
|
var start = this.start, expr = this.parseParenAndDistinguishExpression(canBeArrow, forInit);
|
|
3031
2645
|
if (refDestructuringErrors) {
|
|
3032
2646
|
if (refDestructuringErrors.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(expr))
|
|
@@ -3035,55 +2649,44 @@
|
|
|
3035
2649
|
{ refDestructuringErrors.parenthesizedBind = start; }
|
|
3036
2650
|
}
|
|
3037
2651
|
return expr
|
|
3038
|
-
|
|
2652
|
+
}
|
|
3039
2653
|
case types$1.bracketL:
|
|
3040
2654
|
node = this.startNode();
|
|
3041
2655
|
this.next();
|
|
3042
2656
|
node.elements = this.parseExprList(types$1.bracketR, true, true, refDestructuringErrors);
|
|
3043
2657
|
return this.finishNode(node, "ArrayExpression")
|
|
3044
|
-
|
|
3045
2658
|
case types$1.braceL:
|
|
3046
2659
|
this.overrideContext(types.b_expr);
|
|
3047
2660
|
return this.parseObj(false, refDestructuringErrors)
|
|
3048
|
-
|
|
3049
2661
|
case types$1._function:
|
|
3050
2662
|
node = this.startNode();
|
|
3051
2663
|
this.next();
|
|
3052
2664
|
return this.parseFunction(node, 0)
|
|
3053
|
-
|
|
3054
2665
|
case types$1._class:
|
|
3055
2666
|
return this.parseClass(this.startNode(), false)
|
|
3056
|
-
|
|
3057
2667
|
case types$1._new:
|
|
3058
2668
|
return this.parseNew()
|
|
3059
|
-
|
|
3060
2669
|
case types$1.backQuote:
|
|
3061
2670
|
return this.parseTemplate()
|
|
3062
|
-
|
|
3063
2671
|
case types$1._import:
|
|
3064
2672
|
if (this.options.ecmaVersion >= 11) {
|
|
3065
2673
|
return this.parseExprImport(forNew)
|
|
3066
2674
|
} else {
|
|
3067
2675
|
return this.unexpected()
|
|
3068
2676
|
}
|
|
3069
|
-
|
|
3070
2677
|
default:
|
|
3071
2678
|
return this.parseExprAtomDefault()
|
|
3072
2679
|
}
|
|
3073
2680
|
};
|
|
3074
|
-
|
|
3075
2681
|
pp$5.parseExprAtomDefault = function() {
|
|
3076
2682
|
this.unexpected();
|
|
3077
2683
|
};
|
|
3078
|
-
|
|
3079
2684
|
pp$5.parseExprImport = function(forNew) {
|
|
3080
2685
|
var node = this.startNode();
|
|
3081
|
-
|
|
3082
2686
|
// Consume `import` as an identifier for `import.meta`.
|
|
3083
2687
|
// Because `this.parseIdent(true)` doesn't check escape sequences, it needs the check of `this.containsEsc`.
|
|
3084
2688
|
if (this.containsEsc) { this.raiseRecoverable(this.start, "Escape sequence in keyword import"); }
|
|
3085
2689
|
this.next();
|
|
3086
|
-
|
|
3087
2690
|
if (this.type === types$1.parenL && !forNew) {
|
|
3088
2691
|
return this.parseDynamicImport(node)
|
|
3089
2692
|
} else if (this.type === types$1.dot) {
|
|
@@ -3095,13 +2698,10 @@
|
|
|
3095
2698
|
this.unexpected();
|
|
3096
2699
|
}
|
|
3097
2700
|
};
|
|
3098
|
-
|
|
3099
2701
|
pp$5.parseDynamicImport = function(node) {
|
|
3100
2702
|
this.next(); // skip `(`
|
|
3101
|
-
|
|
3102
2703
|
// Parse node.source.
|
|
3103
2704
|
node.source = this.parseMaybeAssign();
|
|
3104
|
-
|
|
3105
2705
|
if (this.options.ecmaVersion >= 16) {
|
|
3106
2706
|
if (!this.eat(types$1.parenR)) {
|
|
3107
2707
|
this.expect(types$1.comma);
|
|
@@ -3130,26 +2730,20 @@
|
|
|
3130
2730
|
}
|
|
3131
2731
|
}
|
|
3132
2732
|
}
|
|
3133
|
-
|
|
3134
2733
|
return this.finishNode(node, "ImportExpression")
|
|
3135
2734
|
};
|
|
3136
|
-
|
|
3137
2735
|
pp$5.parseImportMeta = function(node) {
|
|
3138
2736
|
this.next(); // skip `.`
|
|
3139
|
-
|
|
3140
2737
|
var containsEsc = this.containsEsc;
|
|
3141
2738
|
node.property = this.parseIdent(true);
|
|
3142
|
-
|
|
3143
2739
|
if (node.property.name !== "meta")
|
|
3144
2740
|
{ this.raiseRecoverable(node.property.start, "The only valid meta property for import is 'import.meta'"); }
|
|
3145
2741
|
if (containsEsc)
|
|
3146
2742
|
{ this.raiseRecoverable(node.start, "'import.meta' must not contain escaped characters"); }
|
|
3147
2743
|
if (this.options.sourceType !== "module" && !this.options.allowImportExportEverywhere)
|
|
3148
2744
|
{ this.raiseRecoverable(node.start, "Cannot use 'import.meta' outside a module"); }
|
|
3149
|
-
|
|
3150
2745
|
return this.finishNode(node, "MetaProperty")
|
|
3151
2746
|
};
|
|
3152
|
-
|
|
3153
2747
|
pp$5.parseLiteral = function(value) {
|
|
3154
2748
|
var node = this.startNode();
|
|
3155
2749
|
node.value = value;
|
|
@@ -3159,23 +2753,19 @@
|
|
|
3159
2753
|
this.next();
|
|
3160
2754
|
return this.finishNode(node, "Literal")
|
|
3161
2755
|
};
|
|
3162
|
-
|
|
3163
2756
|
pp$5.parseParenExpression = function() {
|
|
3164
2757
|
this.expect(types$1.parenL);
|
|
3165
2758
|
var val = this.parseExpression();
|
|
3166
2759
|
this.expect(types$1.parenR);
|
|
3167
2760
|
return val
|
|
3168
2761
|
};
|
|
3169
|
-
|
|
3170
2762
|
pp$5.shouldParseArrow = function(exprList) {
|
|
3171
2763
|
return !this.canInsertSemicolon()
|
|
3172
2764
|
};
|
|
3173
|
-
|
|
3174
2765
|
pp$5.parseParenAndDistinguishExpression = function(canBeArrow, forInit) {
|
|
3175
2766
|
var startPos = this.start, startLoc = this.startLoc, val, allowTrailingComma = this.options.ecmaVersion >= 8;
|
|
3176
2767
|
if (this.options.ecmaVersion >= 6) {
|
|
3177
2768
|
this.next();
|
|
3178
|
-
|
|
3179
2769
|
var innerStartPos = this.start, innerStartLoc = this.startLoc;
|
|
3180
2770
|
var exprList = [], first = true, lastIsComma = false;
|
|
3181
2771
|
var refDestructuringErrors = new DestructuringErrors, oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, spreadStart;
|
|
@@ -3203,7 +2793,6 @@
|
|
|
3203
2793
|
}
|
|
3204
2794
|
var innerEndPos = this.lastTokEnd, innerEndLoc = this.lastTokEndLoc;
|
|
3205
2795
|
this.expect(types$1.parenR);
|
|
3206
|
-
|
|
3207
2796
|
if (canBeArrow && this.shouldParseArrow(exprList) && this.eat(types$1.arrow)) {
|
|
3208
2797
|
this.checkPatternErrors(refDestructuringErrors, false);
|
|
3209
2798
|
this.checkYieldAwaitInDefaultParams();
|
|
@@ -3211,13 +2800,11 @@
|
|
|
3211
2800
|
this.awaitPos = oldAwaitPos;
|
|
3212
2801
|
return this.parseParenArrowList(startPos, startLoc, exprList, forInit)
|
|
3213
2802
|
}
|
|
3214
|
-
|
|
3215
2803
|
if (!exprList.length || lastIsComma) { this.unexpected(this.lastTokStart); }
|
|
3216
2804
|
if (spreadStart) { this.unexpected(spreadStart); }
|
|
3217
2805
|
this.checkExpressionErrors(refDestructuringErrors, true);
|
|
3218
2806
|
this.yieldPos = oldYieldPos || this.yieldPos;
|
|
3219
2807
|
this.awaitPos = oldAwaitPos || this.awaitPos;
|
|
3220
|
-
|
|
3221
2808
|
if (exprList.length > 1) {
|
|
3222
2809
|
val = this.startNodeAt(innerStartPos, innerStartLoc);
|
|
3223
2810
|
val.expressions = exprList;
|
|
@@ -3228,7 +2815,6 @@
|
|
|
3228
2815
|
} else {
|
|
3229
2816
|
val = this.parseParenExpression();
|
|
3230
2817
|
}
|
|
3231
|
-
|
|
3232
2818
|
if (this.options.preserveParens) {
|
|
3233
2819
|
var par = this.startNodeAt(startPos, startLoc);
|
|
3234
2820
|
par.expression = val;
|
|
@@ -3237,23 +2823,18 @@
|
|
|
3237
2823
|
return val
|
|
3238
2824
|
}
|
|
3239
2825
|
};
|
|
3240
|
-
|
|
3241
2826
|
pp$5.parseParenItem = function(item) {
|
|
3242
2827
|
return item
|
|
3243
2828
|
};
|
|
3244
|
-
|
|
3245
2829
|
pp$5.parseParenArrowList = function(startPos, startLoc, exprList, forInit) {
|
|
3246
2830
|
return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, false, forInit)
|
|
3247
2831
|
};
|
|
3248
|
-
|
|
3249
2832
|
// New's precedence is slightly tricky. It must allow its argument to
|
|
3250
2833
|
// be a `[]` or dot subscript expression, but not a call — at least,
|
|
3251
2834
|
// not without wrapping it in parentheses. Thus, it uses the noCalls
|
|
3252
2835
|
// argument to parseSubscripts to prevent it from consuming the
|
|
3253
2836
|
// argument list.
|
|
3254
|
-
|
|
3255
2837
|
var empty = [];
|
|
3256
|
-
|
|
3257
2838
|
pp$5.parseNew = function() {
|
|
3258
2839
|
if (this.containsEsc) { this.raiseRecoverable(this.start, "Escape sequence in keyword new"); }
|
|
3259
2840
|
var node = this.startNode();
|
|
@@ -3279,12 +2860,9 @@
|
|
|
3279
2860
|
else { node.arguments = empty; }
|
|
3280
2861
|
return this.finishNode(node, "NewExpression")
|
|
3281
2862
|
};
|
|
3282
|
-
|
|
3283
2863
|
// Parse template expression.
|
|
3284
|
-
|
|
3285
2864
|
pp$5.parseTemplateElement = function(ref) {
|
|
3286
2865
|
var isTagged = ref.isTagged;
|
|
3287
|
-
|
|
3288
2866
|
var elem = this.startNode();
|
|
3289
2867
|
if (this.type === types$1.invalidTemplate) {
|
|
3290
2868
|
if (!isTagged) {
|
|
@@ -3304,11 +2882,9 @@
|
|
|
3304
2882
|
elem.tail = this.type === types$1.backQuote;
|
|
3305
2883
|
return this.finishNode(elem, "TemplateElement")
|
|
3306
2884
|
};
|
|
3307
|
-
|
|
3308
2885
|
pp$5.parseTemplate = function(ref) {
|
|
3309
2886
|
if ( ref === void 0 ) ref = {};
|
|
3310
2887
|
var isTagged = ref.isTagged; if ( isTagged === void 0 ) isTagged = false;
|
|
3311
|
-
|
|
3312
2888
|
var node = this.startNode();
|
|
3313
2889
|
this.next();
|
|
3314
2890
|
node.expressions = [];
|
|
@@ -3324,15 +2900,12 @@
|
|
|
3324
2900
|
this.next();
|
|
3325
2901
|
return this.finishNode(node, "TemplateLiteral")
|
|
3326
2902
|
};
|
|
3327
|
-
|
|
3328
2903
|
pp$5.isAsyncProp = function(prop) {
|
|
3329
2904
|
return !prop.computed && prop.key.type === "Identifier" && prop.key.name === "async" &&
|
|
3330
2905
|
(this.type === types$1.name || this.type === types$1.num || this.type === types$1.string || this.type === types$1.bracketL || this.type.keyword || (this.options.ecmaVersion >= 9 && this.type === types$1.star)) &&
|
|
3331
2906
|
!lineBreak.test(this.input.slice(this.lastTokEnd, this.start))
|
|
3332
2907
|
};
|
|
3333
|
-
|
|
3334
2908
|
// Parse an object literal or binding pattern.
|
|
3335
|
-
|
|
3336
2909
|
pp$5.parseObj = function(isPattern, refDestructuringErrors) {
|
|
3337
2910
|
var node = this.startNode(), first = true, propHash = {};
|
|
3338
2911
|
node.properties = [];
|
|
@@ -3342,14 +2915,12 @@
|
|
|
3342
2915
|
this.expect(types$1.comma);
|
|
3343
2916
|
if (this.options.ecmaVersion >= 5 && this.afterTrailingComma(types$1.braceR)) { break }
|
|
3344
2917
|
} else { first = false; }
|
|
3345
|
-
|
|
3346
2918
|
var prop = this.parseProperty(isPattern, refDestructuringErrors);
|
|
3347
2919
|
if (!isPattern) { this.checkPropClash(prop, propHash, refDestructuringErrors); }
|
|
3348
2920
|
node.properties.push(prop);
|
|
3349
2921
|
}
|
|
3350
2922
|
return this.finishNode(node, isPattern ? "ObjectPattern" : "ObjectExpression")
|
|
3351
2923
|
};
|
|
3352
|
-
|
|
3353
2924
|
pp$5.parseProperty = function(isPattern, refDestructuringErrors) {
|
|
3354
2925
|
var prop = this.startNode(), isGenerator, isAsync, startPos, startLoc;
|
|
3355
2926
|
if (this.options.ecmaVersion >= 9 && this.eat(types$1.ellipsis)) {
|
|
@@ -3391,7 +2962,6 @@
|
|
|
3391
2962
|
this.parsePropertyValue(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc);
|
|
3392
2963
|
return this.finishNode(prop, "Property")
|
|
3393
2964
|
};
|
|
3394
|
-
|
|
3395
2965
|
pp$5.parseGetterSetter = function(prop) {
|
|
3396
2966
|
var kind = prop.key.name;
|
|
3397
2967
|
this.parsePropertyName(prop);
|
|
@@ -3409,11 +2979,9 @@
|
|
|
3409
2979
|
{ this.raiseRecoverable(prop.value.params[0].start, "Setter cannot use rest params"); }
|
|
3410
2980
|
}
|
|
3411
2981
|
};
|
|
3412
|
-
|
|
3413
2982
|
pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc) {
|
|
3414
2983
|
if ((isGenerator || isAsync) && this.type === types$1.colon)
|
|
3415
2984
|
{ this.unexpected(); }
|
|
3416
|
-
|
|
3417
2985
|
if (this.eat(types$1.colon)) {
|
|
3418
2986
|
prop.value = isPattern ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(false, refDestructuringErrors);
|
|
3419
2987
|
prop.kind = "init";
|
|
@@ -3446,7 +3014,6 @@
|
|
|
3446
3014
|
prop.shorthand = true;
|
|
3447
3015
|
} else { this.unexpected(); }
|
|
3448
3016
|
};
|
|
3449
|
-
|
|
3450
3017
|
pp$5.parsePropertyName = function(prop) {
|
|
3451
3018
|
if (this.options.ecmaVersion >= 6) {
|
|
3452
3019
|
if (this.eat(types$1.bracketL)) {
|
|
@@ -3460,70 +3027,53 @@
|
|
|
3460
3027
|
}
|
|
3461
3028
|
return prop.key = this.type === types$1.num || this.type === types$1.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never")
|
|
3462
3029
|
};
|
|
3463
|
-
|
|
3464
3030
|
// Initialize empty function node.
|
|
3465
|
-
|
|
3466
3031
|
pp$5.initFunction = function(node) {
|
|
3467
3032
|
node.id = null;
|
|
3468
3033
|
if (this.options.ecmaVersion >= 6) { node.generator = node.expression = false; }
|
|
3469
3034
|
if (this.options.ecmaVersion >= 8) { node.async = false; }
|
|
3470
3035
|
};
|
|
3471
|
-
|
|
3472
3036
|
// Parse object or class method.
|
|
3473
|
-
|
|
3474
3037
|
pp$5.parseMethod = function(isGenerator, isAsync, allowDirectSuper) {
|
|
3475
3038
|
var node = this.startNode(), oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;
|
|
3476
|
-
|
|
3477
3039
|
this.initFunction(node);
|
|
3478
3040
|
if (this.options.ecmaVersion >= 6)
|
|
3479
3041
|
{ node.generator = isGenerator; }
|
|
3480
3042
|
if (this.options.ecmaVersion >= 8)
|
|
3481
3043
|
{ node.async = !!isAsync; }
|
|
3482
|
-
|
|
3483
3044
|
this.yieldPos = 0;
|
|
3484
3045
|
this.awaitPos = 0;
|
|
3485
3046
|
this.awaitIdentPos = 0;
|
|
3486
3047
|
this.enterScope(functionFlags(isAsync, node.generator) | SCOPE_SUPER | (allowDirectSuper ? SCOPE_DIRECT_SUPER : 0));
|
|
3487
|
-
|
|
3488
3048
|
this.expect(types$1.parenL);
|
|
3489
3049
|
node.params = this.parseBindingList(types$1.parenR, false, this.options.ecmaVersion >= 8);
|
|
3490
3050
|
this.checkYieldAwaitInDefaultParams();
|
|
3491
3051
|
this.parseFunctionBody(node, false, true, false);
|
|
3492
|
-
|
|
3493
3052
|
this.yieldPos = oldYieldPos;
|
|
3494
3053
|
this.awaitPos = oldAwaitPos;
|
|
3495
3054
|
this.awaitIdentPos = oldAwaitIdentPos;
|
|
3496
3055
|
return this.finishNode(node, "FunctionExpression")
|
|
3497
3056
|
};
|
|
3498
|
-
|
|
3499
3057
|
// Parse arrow function expression with given parameters.
|
|
3500
|
-
|
|
3501
3058
|
pp$5.parseArrowExpression = function(node, params, isAsync, forInit) {
|
|
3502
3059
|
var oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;
|
|
3503
|
-
|
|
3504
3060
|
this.enterScope(functionFlags(isAsync, false) | SCOPE_ARROW);
|
|
3505
3061
|
this.initFunction(node);
|
|
3506
3062
|
if (this.options.ecmaVersion >= 8) { node.async = !!isAsync; }
|
|
3507
|
-
|
|
3508
3063
|
this.yieldPos = 0;
|
|
3509
3064
|
this.awaitPos = 0;
|
|
3510
3065
|
this.awaitIdentPos = 0;
|
|
3511
|
-
|
|
3512
3066
|
node.params = this.toAssignableList(params, true);
|
|
3513
3067
|
this.parseFunctionBody(node, true, false, forInit);
|
|
3514
|
-
|
|
3515
3068
|
this.yieldPos = oldYieldPos;
|
|
3516
3069
|
this.awaitPos = oldAwaitPos;
|
|
3517
3070
|
this.awaitIdentPos = oldAwaitIdentPos;
|
|
3518
3071
|
return this.finishNode(node, "ArrowFunctionExpression")
|
|
3519
3072
|
};
|
|
3520
|
-
|
|
3521
3073
|
// Parse function body and check parameters.
|
|
3522
|
-
|
|
3523
3074
|
pp$5.parseFunctionBody = function(node, isArrowFunction, isMethod, forInit) {
|
|
3524
3075
|
var isExpression = isArrowFunction && this.type !== types$1.braceL;
|
|
3525
3076
|
var oldStrict = this.strict, useStrict = false;
|
|
3526
|
-
|
|
3527
3077
|
if (isExpression) {
|
|
3528
3078
|
node.body = this.parseMaybeAssign(forInit);
|
|
3529
3079
|
node.expression = true;
|
|
@@ -3543,7 +3093,6 @@
|
|
|
3543
3093
|
var oldLabels = this.labels;
|
|
3544
3094
|
this.labels = [];
|
|
3545
3095
|
if (useStrict) { this.strict = true; }
|
|
3546
|
-
|
|
3547
3096
|
// Add the params to varDeclaredNames to ensure that an error is thrown
|
|
3548
3097
|
// if a let/const declaration in the function clashes with one of the params.
|
|
3549
3098
|
this.checkParams(node, !oldStrict && !useStrict && !isArrowFunction && !isMethod && this.isSimpleParamList(node.params));
|
|
@@ -3556,36 +3105,29 @@
|
|
|
3556
3105
|
}
|
|
3557
3106
|
this.exitScope();
|
|
3558
3107
|
};
|
|
3559
|
-
|
|
3560
3108
|
pp$5.isSimpleParamList = function(params) {
|
|
3561
3109
|
for (var i = 0, list = params; i < list.length; i += 1)
|
|
3562
3110
|
{
|
|
3563
3111
|
var param = list[i];
|
|
3564
|
-
|
|
3565
3112
|
if (param.type !== "Identifier") { return false
|
|
3566
3113
|
} }
|
|
3567
3114
|
return true
|
|
3568
3115
|
};
|
|
3569
|
-
|
|
3570
3116
|
// Checks function params for various disallowed patterns such as using "eval"
|
|
3571
3117
|
// or "arguments" and duplicate parameters.
|
|
3572
|
-
|
|
3573
3118
|
pp$5.checkParams = function(node, allowDuplicates) {
|
|
3574
3119
|
var nameHash = Object.create(null);
|
|
3575
3120
|
for (var i = 0, list = node.params; i < list.length; i += 1)
|
|
3576
3121
|
{
|
|
3577
3122
|
var param = list[i];
|
|
3578
|
-
|
|
3579
3123
|
this.checkLValInnerPattern(param, BIND_VAR, allowDuplicates ? null : nameHash);
|
|
3580
3124
|
}
|
|
3581
3125
|
};
|
|
3582
|
-
|
|
3583
3126
|
// Parses a comma-separated list of expressions, and returns them as
|
|
3584
3127
|
// an array. `close` is the token type that ends the list, and
|
|
3585
3128
|
// `allowEmpty` can be turned on to allow subsequent commas with
|
|
3586
3129
|
// nothing in between them to be parsed as `null` (which is needed
|
|
3587
3130
|
// for array literals).
|
|
3588
|
-
|
|
3589
3131
|
pp$5.parseExprList = function(close, allowTrailingComma, allowEmpty, refDestructuringErrors) {
|
|
3590
3132
|
var elts = [], first = true;
|
|
3591
3133
|
while (!this.eat(close)) {
|
|
@@ -3593,7 +3135,6 @@
|
|
|
3593
3135
|
this.expect(types$1.comma);
|
|
3594
3136
|
if (allowTrailingComma && this.afterTrailingComma(close)) { break }
|
|
3595
3137
|
} else { first = false; }
|
|
3596
|
-
|
|
3597
3138
|
var elt = (void 0);
|
|
3598
3139
|
if (allowEmpty && this.type === types$1.comma)
|
|
3599
3140
|
{ elt = null; }
|
|
@@ -3608,12 +3149,10 @@
|
|
|
3608
3149
|
}
|
|
3609
3150
|
return elts
|
|
3610
3151
|
};
|
|
3611
|
-
|
|
3612
3152
|
pp$5.checkUnreserved = function(ref) {
|
|
3613
3153
|
var start = ref.start;
|
|
3614
3154
|
var end = ref.end;
|
|
3615
3155
|
var name = ref.name;
|
|
3616
|
-
|
|
3617
3156
|
if (this.inGenerator && name === "yield")
|
|
3618
3157
|
{ this.raiseRecoverable(start, "Cannot use 'yield' as identifier inside a generator"); }
|
|
3619
3158
|
if (this.inAsync && name === "await")
|
|
@@ -3633,11 +3172,9 @@
|
|
|
3633
3172
|
this.raiseRecoverable(start, ("The keyword '" + name + "' is reserved"));
|
|
3634
3173
|
}
|
|
3635
3174
|
};
|
|
3636
|
-
|
|
3637
3175
|
// Parse the next token as an identifier. If `liberal` is true (used
|
|
3638
3176
|
// when parsing properties), it will also convert keywords into
|
|
3639
3177
|
// identifiers.
|
|
3640
|
-
|
|
3641
3178
|
pp$5.parseIdent = function(liberal) {
|
|
3642
3179
|
var node = this.parseIdentNode();
|
|
3643
3180
|
this.next(!!liberal);
|
|
@@ -3649,14 +3186,12 @@
|
|
|
3649
3186
|
}
|
|
3650
3187
|
return node
|
|
3651
3188
|
};
|
|
3652
|
-
|
|
3653
3189
|
pp$5.parseIdentNode = function() {
|
|
3654
3190
|
var node = this.startNode();
|
|
3655
3191
|
if (this.type === types$1.name) {
|
|
3656
3192
|
node.name = this.value;
|
|
3657
3193
|
} else if (this.type.keyword) {
|
|
3658
3194
|
node.name = this.type.keyword;
|
|
3659
|
-
|
|
3660
3195
|
// To fix https://github.com/acornjs/acorn/issues/575
|
|
3661
3196
|
// `class` and `function` keywords push new context into this.context.
|
|
3662
3197
|
// But there is no chance to pop the context if the keyword is consumed as an identifier such as a property name.
|
|
@@ -3671,7 +3206,6 @@
|
|
|
3671
3206
|
}
|
|
3672
3207
|
return node
|
|
3673
3208
|
};
|
|
3674
|
-
|
|
3675
3209
|
pp$5.parsePrivateIdent = function() {
|
|
3676
3210
|
var node = this.startNode();
|
|
3677
3211
|
if (this.type === types$1.privateId) {
|
|
@@ -3681,7 +3215,6 @@
|
|
|
3681
3215
|
}
|
|
3682
3216
|
this.next();
|
|
3683
3217
|
this.finishNode(node, "PrivateIdentifier");
|
|
3684
|
-
|
|
3685
3218
|
// For validating existence
|
|
3686
3219
|
if (this.options.checkPrivateFields) {
|
|
3687
3220
|
if (this.privateNameStack.length === 0) {
|
|
@@ -3690,15 +3223,11 @@
|
|
|
3690
3223
|
this.privateNameStack[this.privateNameStack.length - 1].used.push(node);
|
|
3691
3224
|
}
|
|
3692
3225
|
}
|
|
3693
|
-
|
|
3694
3226
|
return node
|
|
3695
3227
|
};
|
|
3696
|
-
|
|
3697
3228
|
// Parses yield expression inside generator.
|
|
3698
|
-
|
|
3699
3229
|
pp$5.parseYield = function(forInit) {
|
|
3700
3230
|
if (!this.yieldPos) { this.yieldPos = this.start; }
|
|
3701
|
-
|
|
3702
3231
|
var node = this.startNode();
|
|
3703
3232
|
this.next();
|
|
3704
3233
|
if (this.type === types$1.semi || this.canInsertSemicolon() || (this.type !== types$1.star && !this.type.startsExpr)) {
|
|
@@ -3710,24 +3239,19 @@
|
|
|
3710
3239
|
}
|
|
3711
3240
|
return this.finishNode(node, "YieldExpression")
|
|
3712
3241
|
};
|
|
3713
|
-
|
|
3714
3242
|
pp$5.parseAwait = function(forInit) {
|
|
3715
3243
|
if (!this.awaitPos) { this.awaitPos = this.start; }
|
|
3716
|
-
|
|
3717
3244
|
var node = this.startNode();
|
|
3718
3245
|
this.next();
|
|
3719
3246
|
node.argument = this.parseMaybeUnary(null, true, false, forInit);
|
|
3720
3247
|
return this.finishNode(node, "AwaitExpression")
|
|
3721
3248
|
};
|
|
3722
|
-
|
|
3723
3249
|
var pp$4 = Parser.prototype;
|
|
3724
|
-
|
|
3725
3250
|
// This function is used to raise exceptions on parse errors. It
|
|
3726
3251
|
// takes an offset integer (into the current `input`) to indicate
|
|
3727
3252
|
// the location of the error, attaches the position to the end
|
|
3728
3253
|
// of the error message, and then raises a `SyntaxError` with that
|
|
3729
3254
|
// message.
|
|
3730
|
-
|
|
3731
3255
|
pp$4.raise = function(pos, message) {
|
|
3732
3256
|
var loc = getLineInfo(this.input, pos);
|
|
3733
3257
|
message += " (" + loc.line + ":" + loc.column + ")";
|
|
@@ -3738,17 +3262,13 @@
|
|
|
3738
3262
|
err.pos = pos; err.loc = loc; err.raisedAt = this.pos;
|
|
3739
3263
|
throw err
|
|
3740
3264
|
};
|
|
3741
|
-
|
|
3742
3265
|
pp$4.raiseRecoverable = pp$4.raise;
|
|
3743
|
-
|
|
3744
3266
|
pp$4.curPosition = function() {
|
|
3745
3267
|
if (this.options.locations) {
|
|
3746
3268
|
return new Position(this.curLine, this.pos - this.lineStart)
|
|
3747
3269
|
}
|
|
3748
3270
|
};
|
|
3749
|
-
|
|
3750
3271
|
var pp$3 = Parser.prototype;
|
|
3751
|
-
|
|
3752
3272
|
var Scope = function Scope(flags) {
|
|
3753
3273
|
this.flags = flags;
|
|
3754
3274
|
// A list of var-declared names in the current lexical scope
|
|
@@ -3758,24 +3278,19 @@
|
|
|
3758
3278
|
// A list of lexically-declared FunctionDeclaration names in the current lexical scope
|
|
3759
3279
|
this.functions = [];
|
|
3760
3280
|
};
|
|
3761
|
-
|
|
3762
3281
|
// The functions in this module keep track of declared variables in the current scope in order to detect duplicate variable names.
|
|
3763
|
-
|
|
3764
3282
|
pp$3.enterScope = function(flags) {
|
|
3765
3283
|
this.scopeStack.push(new Scope(flags));
|
|
3766
3284
|
};
|
|
3767
|
-
|
|
3768
3285
|
pp$3.exitScope = function() {
|
|
3769
3286
|
this.scopeStack.pop();
|
|
3770
3287
|
};
|
|
3771
|
-
|
|
3772
3288
|
// The spec says:
|
|
3773
3289
|
// > At the top level of a function, or script, function declarations are
|
|
3774
3290
|
// > treated like var declarations rather than like lexical declarations.
|
|
3775
3291
|
pp$3.treatFunctionsAsVarInScope = function(scope) {
|
|
3776
3292
|
return (scope.flags & SCOPE_FUNCTION) || !this.inModule && (scope.flags & SCOPE_TOP)
|
|
3777
3293
|
};
|
|
3778
|
-
|
|
3779
3294
|
pp$3.declareName = function(name, bindingType, pos) {
|
|
3780
3295
|
var redeclared = false;
|
|
3781
3296
|
if (bindingType === BIND_LEXICAL) {
|
|
@@ -3810,7 +3325,6 @@
|
|
|
3810
3325
|
}
|
|
3811
3326
|
if (redeclared) { this.raiseRecoverable(pos, ("Identifier '" + name + "' has already been declared")); }
|
|
3812
3327
|
};
|
|
3813
|
-
|
|
3814
3328
|
pp$3.checkLocalExport = function(id) {
|
|
3815
3329
|
// scope.functions must be empty as Module code is always strict.
|
|
3816
3330
|
if (this.scopeStack[0].lexical.indexOf(id.name) === -1 &&
|
|
@@ -3818,18 +3332,15 @@
|
|
|
3818
3332
|
this.undefinedExports[id.name] = id;
|
|
3819
3333
|
}
|
|
3820
3334
|
};
|
|
3821
|
-
|
|
3822
3335
|
pp$3.currentScope = function() {
|
|
3823
3336
|
return this.scopeStack[this.scopeStack.length - 1]
|
|
3824
3337
|
};
|
|
3825
|
-
|
|
3826
3338
|
pp$3.currentVarScope = function() {
|
|
3827
3339
|
for (var i = this.scopeStack.length - 1;; i--) {
|
|
3828
3340
|
var scope = this.scopeStack[i];
|
|
3829
3341
|
if (scope.flags & (SCOPE_VAR | SCOPE_CLASS_FIELD_INIT | SCOPE_CLASS_STATIC_BLOCK)) { return scope }
|
|
3830
3342
|
}
|
|
3831
3343
|
};
|
|
3832
|
-
|
|
3833
3344
|
// Could be useful for `this`, `new.target`, `super()`, `super.property`, and `super[property]`.
|
|
3834
3345
|
pp$3.currentThisScope = function() {
|
|
3835
3346
|
for (var i = this.scopeStack.length - 1;; i--) {
|
|
@@ -3838,7 +3349,6 @@
|
|
|
3838
3349
|
!(scope.flags & SCOPE_ARROW)) { return scope }
|
|
3839
3350
|
}
|
|
3840
3351
|
};
|
|
3841
|
-
|
|
3842
3352
|
var Node = function Node(parser, pos, loc) {
|
|
3843
3353
|
this.type = "";
|
|
3844
3354
|
this.start = pos;
|
|
@@ -3850,21 +3360,15 @@
|
|
|
3850
3360
|
if (parser.options.ranges)
|
|
3851
3361
|
{ this.range = [pos, 0]; }
|
|
3852
3362
|
};
|
|
3853
|
-
|
|
3854
3363
|
// Start an AST node, attaching a start offset.
|
|
3855
|
-
|
|
3856
3364
|
var pp$2 = Parser.prototype;
|
|
3857
|
-
|
|
3858
3365
|
pp$2.startNode = function() {
|
|
3859
3366
|
return new Node(this, this.start, this.startLoc)
|
|
3860
3367
|
};
|
|
3861
|
-
|
|
3862
3368
|
pp$2.startNodeAt = function(pos, loc) {
|
|
3863
3369
|
return new Node(this, pos, loc)
|
|
3864
3370
|
};
|
|
3865
|
-
|
|
3866
3371
|
// Finish an AST node, adding `type` and `end` properties.
|
|
3867
|
-
|
|
3868
3372
|
function finishNodeAt(node, type, pos, loc) {
|
|
3869
3373
|
node.type = type;
|
|
3870
3374
|
node.end = pos;
|
|
@@ -3874,30 +3378,23 @@
|
|
|
3874
3378
|
{ node.range[1] = pos; }
|
|
3875
3379
|
return node
|
|
3876
3380
|
}
|
|
3877
|
-
|
|
3878
3381
|
pp$2.finishNode = function(node, type) {
|
|
3879
3382
|
return finishNodeAt.call(this, node, type, this.lastTokEnd, this.lastTokEndLoc)
|
|
3880
3383
|
};
|
|
3881
|
-
|
|
3882
3384
|
// Finish node at given position
|
|
3883
|
-
|
|
3884
3385
|
pp$2.finishNodeAt = function(node, type, pos, loc) {
|
|
3885
3386
|
return finishNodeAt.call(this, node, type, pos, loc)
|
|
3886
3387
|
};
|
|
3887
|
-
|
|
3888
3388
|
pp$2.copyNode = function(node) {
|
|
3889
3389
|
var newNode = new Node(this, node.start, this.startLoc);
|
|
3890
3390
|
for (var prop in node) { newNode[prop] = node[prop]; }
|
|
3891
3391
|
return newNode
|
|
3892
3392
|
};
|
|
3893
|
-
|
|
3894
3393
|
// This file was generated by "bin/generate-unicode-script-values.js". Do not modify manually!
|
|
3895
3394
|
var scriptValuesAddedInUnicode = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz";
|
|
3896
|
-
|
|
3897
3395
|
// This file contains Unicode properties extracted from the ECMAScript specification.
|
|
3898
3396
|
// The lists are extracted like so:
|
|
3899
3397
|
// $$('#table-binary-unicode-properties > figure > table > tbody > tr > td:nth-child(1) code').map(el => el.innerText)
|
|
3900
|
-
|
|
3901
3398
|
// #table-binary-unicode-properties
|
|
3902
3399
|
var ecma9BinaryProperties = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS";
|
|
3903
3400
|
var ecma10BinaryProperties = ecma9BinaryProperties + " Extended_Pictographic";
|
|
@@ -3905,7 +3402,6 @@
|
|
|
3905
3402
|
var ecma12BinaryProperties = ecma11BinaryProperties + " EBase EComp EMod EPres ExtPict";
|
|
3906
3403
|
var ecma13BinaryProperties = ecma12BinaryProperties;
|
|
3907
3404
|
var ecma14BinaryProperties = ecma13BinaryProperties;
|
|
3908
|
-
|
|
3909
3405
|
var unicodeBinaryProperties = {
|
|
3910
3406
|
9: ecma9BinaryProperties,
|
|
3911
3407
|
10: ecma10BinaryProperties,
|
|
@@ -3914,10 +3410,8 @@
|
|
|
3914
3410
|
13: ecma13BinaryProperties,
|
|
3915
3411
|
14: ecma14BinaryProperties
|
|
3916
3412
|
};
|
|
3917
|
-
|
|
3918
3413
|
// #table-binary-unicode-properties-of-strings
|
|
3919
3414
|
var ecma14BinaryPropertiesOfStrings = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji";
|
|
3920
|
-
|
|
3921
3415
|
var unicodeBinaryPropertiesOfStrings = {
|
|
3922
3416
|
9: "",
|
|
3923
3417
|
10: "",
|
|
@@ -3926,10 +3420,8 @@
|
|
|
3926
3420
|
13: "",
|
|
3927
3421
|
14: ecma14BinaryPropertiesOfStrings
|
|
3928
3422
|
};
|
|
3929
|
-
|
|
3930
3423
|
// #table-unicode-general-category-values
|
|
3931
3424
|
var unicodeGeneralCategoryValues = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu";
|
|
3932
|
-
|
|
3933
3425
|
// #table-unicode-script-values
|
|
3934
3426
|
var ecma9ScriptValues = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb";
|
|
3935
3427
|
var ecma10ScriptValues = ecma9ScriptValues + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd";
|
|
@@ -3937,7 +3429,6 @@
|
|
|
3937
3429
|
var ecma12ScriptValues = ecma11ScriptValues + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";
|
|
3938
3430
|
var ecma13ScriptValues = ecma12ScriptValues + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";
|
|
3939
3431
|
var ecma14ScriptValues = ecma13ScriptValues + " " + scriptValuesAddedInUnicode;
|
|
3940
|
-
|
|
3941
3432
|
var unicodeScriptValues = {
|
|
3942
3433
|
9: ecma9ScriptValues,
|
|
3943
3434
|
10: ecma10ScriptValues,
|
|
@@ -3946,7 +3437,6 @@
|
|
|
3946
3437
|
13: ecma13ScriptValues,
|
|
3947
3438
|
14: ecma14ScriptValues
|
|
3948
3439
|
};
|
|
3949
|
-
|
|
3950
3440
|
var data = {};
|
|
3951
3441
|
function buildUnicodeData(ecmaVersion) {
|
|
3952
3442
|
var d = data[ecmaVersion] = {
|
|
@@ -3958,20 +3448,15 @@
|
|
|
3958
3448
|
}
|
|
3959
3449
|
};
|
|
3960
3450
|
d.nonBinary.Script_Extensions = d.nonBinary.Script;
|
|
3961
|
-
|
|
3962
3451
|
d.nonBinary.gc = d.nonBinary.General_Category;
|
|
3963
3452
|
d.nonBinary.sc = d.nonBinary.Script;
|
|
3964
3453
|
d.nonBinary.scx = d.nonBinary.Script_Extensions;
|
|
3965
3454
|
}
|
|
3966
|
-
|
|
3967
3455
|
for (var i = 0, list = [9, 10, 11, 12, 13, 14]; i < list.length; i += 1) {
|
|
3968
3456
|
var ecmaVersion = list[i];
|
|
3969
|
-
|
|
3970
3457
|
buildUnicodeData(ecmaVersion);
|
|
3971
3458
|
}
|
|
3972
|
-
|
|
3973
3459
|
var pp$1 = Parser.prototype;
|
|
3974
|
-
|
|
3975
3460
|
// Track disjunction structure to determine whether a duplicate
|
|
3976
3461
|
// capture group name is allowed because it is in a separate branch.
|
|
3977
3462
|
var BranchID = function BranchID(parent, base) {
|
|
@@ -3980,7 +3465,6 @@
|
|
|
3980
3465
|
// Identifies this set of sibling branches
|
|
3981
3466
|
this.base = base || this;
|
|
3982
3467
|
};
|
|
3983
|
-
|
|
3984
3468
|
BranchID.prototype.separatedFrom = function separatedFrom (alt) {
|
|
3985
3469
|
// A branch is separate from another branch if they or any of
|
|
3986
3470
|
// their parents are siblings in a given disjunction
|
|
@@ -3991,11 +3475,9 @@
|
|
|
3991
3475
|
}
|
|
3992
3476
|
return false
|
|
3993
3477
|
};
|
|
3994
|
-
|
|
3995
3478
|
BranchID.prototype.sibling = function sibling () {
|
|
3996
3479
|
return new BranchID(this.parent, this.base)
|
|
3997
3480
|
};
|
|
3998
|
-
|
|
3999
3481
|
var RegExpValidationState = function RegExpValidationState(parser) {
|
|
4000
3482
|
this.parser = parser;
|
|
4001
3483
|
this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "") + (parser.options.ecmaVersion >= 15 ? "v" : "");
|
|
@@ -4016,7 +3498,6 @@
|
|
|
4016
3498
|
this.backReferenceNames = [];
|
|
4017
3499
|
this.branchID = null;
|
|
4018
3500
|
};
|
|
4019
|
-
|
|
4020
3501
|
RegExpValidationState.prototype.reset = function reset (start, pattern, flags) {
|
|
4021
3502
|
var unicodeSets = flags.indexOf("v") !== -1;
|
|
4022
3503
|
var unicode = flags.indexOf("u") !== -1;
|
|
@@ -4033,16 +3514,13 @@
|
|
|
4033
3514
|
this.switchN = unicode && this.parser.options.ecmaVersion >= 9;
|
|
4034
3515
|
}
|
|
4035
3516
|
};
|
|
4036
|
-
|
|
4037
3517
|
RegExpValidationState.prototype.raise = function raise (message) {
|
|
4038
3518
|
this.parser.raiseRecoverable(this.start, ("Invalid regular expression: /" + (this.source) + "/: " + message));
|
|
4039
3519
|
};
|
|
4040
|
-
|
|
4041
3520
|
// If u flag is given, this returns the code point at the index (it combines a surrogate pair).
|
|
4042
3521
|
// Otherwise, this returns the code unit of the index (can be a part of a surrogate pair).
|
|
4043
3522
|
RegExpValidationState.prototype.at = function at (i, forceU) {
|
|
4044
3523
|
if ( forceU === void 0 ) forceU = false;
|
|
4045
|
-
|
|
4046
3524
|
var s = this.source;
|
|
4047
3525
|
var l = s.length;
|
|
4048
3526
|
if (i >= l) {
|
|
@@ -4055,10 +3533,8 @@
|
|
|
4055
3533
|
var next = s.charCodeAt(i + 1);
|
|
4056
3534
|
return next >= 0xDC00 && next <= 0xDFFF ? (c << 10) + next - 0x35FDC00 : c
|
|
4057
3535
|
};
|
|
4058
|
-
|
|
4059
3536
|
RegExpValidationState.prototype.nextIndex = function nextIndex (i, forceU) {
|
|
4060
3537
|
if ( forceU === void 0 ) forceU = false;
|
|
4061
|
-
|
|
4062
3538
|
var s = this.source;
|
|
4063
3539
|
var l = s.length;
|
|
4064
3540
|
if (i >= l) {
|
|
@@ -4071,42 +3547,31 @@
|
|
|
4071
3547
|
}
|
|
4072
3548
|
return i + 2
|
|
4073
3549
|
};
|
|
4074
|
-
|
|
4075
3550
|
RegExpValidationState.prototype.current = function current (forceU) {
|
|
4076
3551
|
if ( forceU === void 0 ) forceU = false;
|
|
4077
|
-
|
|
4078
3552
|
return this.at(this.pos, forceU)
|
|
4079
3553
|
};
|
|
4080
|
-
|
|
4081
3554
|
RegExpValidationState.prototype.lookahead = function lookahead (forceU) {
|
|
4082
3555
|
if ( forceU === void 0 ) forceU = false;
|
|
4083
|
-
|
|
4084
3556
|
return this.at(this.nextIndex(this.pos, forceU), forceU)
|
|
4085
3557
|
};
|
|
4086
|
-
|
|
4087
3558
|
RegExpValidationState.prototype.advance = function advance (forceU) {
|
|
4088
3559
|
if ( forceU === void 0 ) forceU = false;
|
|
4089
|
-
|
|
4090
3560
|
this.pos = this.nextIndex(this.pos, forceU);
|
|
4091
3561
|
};
|
|
4092
|
-
|
|
4093
3562
|
RegExpValidationState.prototype.eat = function eat (ch, forceU) {
|
|
4094
3563
|
if ( forceU === void 0 ) forceU = false;
|
|
4095
|
-
|
|
4096
3564
|
if (this.current(forceU) === ch) {
|
|
4097
3565
|
this.advance(forceU);
|
|
4098
3566
|
return true
|
|
4099
3567
|
}
|
|
4100
3568
|
return false
|
|
4101
3569
|
};
|
|
4102
|
-
|
|
4103
3570
|
RegExpValidationState.prototype.eatChars = function eatChars (chs, forceU) {
|
|
4104
3571
|
if ( forceU === void 0 ) forceU = false;
|
|
4105
|
-
|
|
4106
3572
|
var pos = this.pos;
|
|
4107
3573
|
for (var i = 0, list = chs; i < list.length; i += 1) {
|
|
4108
3574
|
var ch = list[i];
|
|
4109
|
-
|
|
4110
3575
|
var current = this.at(pos, forceU);
|
|
4111
3576
|
if (current === -1 || current !== ch) {
|
|
4112
3577
|
return false
|
|
@@ -4116,7 +3581,6 @@
|
|
|
4116
3581
|
this.pos = pos;
|
|
4117
3582
|
return true
|
|
4118
3583
|
};
|
|
4119
|
-
|
|
4120
3584
|
/**
|
|
4121
3585
|
* Validate the flags part of a given RegExpLiteral.
|
|
4122
3586
|
*
|
|
@@ -4126,10 +3590,8 @@
|
|
|
4126
3590
|
pp$1.validateRegExpFlags = function(state) {
|
|
4127
3591
|
var validFlags = state.validFlags;
|
|
4128
3592
|
var flags = state.flags;
|
|
4129
|
-
|
|
4130
3593
|
var u = false;
|
|
4131
3594
|
var v = false;
|
|
4132
|
-
|
|
4133
3595
|
for (var i = 0; i < flags.length; i++) {
|
|
4134
3596
|
var flag = flags.charAt(i);
|
|
4135
3597
|
if (validFlags.indexOf(flag) === -1) {
|
|
@@ -4145,12 +3607,10 @@
|
|
|
4145
3607
|
this.raise(state.start, "Invalid regular expression flag");
|
|
4146
3608
|
}
|
|
4147
3609
|
};
|
|
4148
|
-
|
|
4149
3610
|
function hasProp(obj) {
|
|
4150
3611
|
for (var _ in obj) { return true }
|
|
4151
3612
|
return false
|
|
4152
3613
|
}
|
|
4153
|
-
|
|
4154
3614
|
/**
|
|
4155
3615
|
* Validate the pattern part of a given RegExpLiteral.
|
|
4156
3616
|
*
|
|
@@ -4159,7 +3619,6 @@
|
|
|
4159
3619
|
*/
|
|
4160
3620
|
pp$1.validateRegExpPattern = function(state) {
|
|
4161
3621
|
this.regexp_pattern(state);
|
|
4162
|
-
|
|
4163
3622
|
// The goal symbol for the parse is |Pattern[~U, ~N]|. If the result of
|
|
4164
3623
|
// parsing contains a |GroupName|, reparse with the goal symbol
|
|
4165
3624
|
// |Pattern[~U, +N]| and use this result instead. Throw a *SyntaxError*
|
|
@@ -4170,7 +3629,6 @@
|
|
|
4170
3629
|
this.regexp_pattern(state);
|
|
4171
3630
|
}
|
|
4172
3631
|
};
|
|
4173
|
-
|
|
4174
3632
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-Pattern
|
|
4175
3633
|
pp$1.regexp_pattern = function(state) {
|
|
4176
3634
|
state.pos = 0;
|
|
@@ -4182,9 +3640,7 @@
|
|
|
4182
3640
|
state.groupNames = Object.create(null);
|
|
4183
3641
|
state.backReferenceNames.length = 0;
|
|
4184
3642
|
state.branchID = null;
|
|
4185
|
-
|
|
4186
3643
|
this.regexp_disjunction(state);
|
|
4187
|
-
|
|
4188
3644
|
if (state.pos !== state.source.length) {
|
|
4189
3645
|
// Make the same messages as V8.
|
|
4190
3646
|
if (state.eat(0x29 /* ) */)) {
|
|
@@ -4199,13 +3655,11 @@
|
|
|
4199
3655
|
}
|
|
4200
3656
|
for (var i = 0, list = state.backReferenceNames; i < list.length; i += 1) {
|
|
4201
3657
|
var name = list[i];
|
|
4202
|
-
|
|
4203
3658
|
if (!state.groupNames[name]) {
|
|
4204
3659
|
state.raise("Invalid named capture referenced");
|
|
4205
3660
|
}
|
|
4206
3661
|
}
|
|
4207
3662
|
};
|
|
4208
|
-
|
|
4209
3663
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-Disjunction
|
|
4210
3664
|
pp$1.regexp_disjunction = function(state) {
|
|
4211
3665
|
var trackDisjunction = this.options.ecmaVersion >= 16;
|
|
@@ -4216,7 +3670,6 @@
|
|
|
4216
3670
|
this.regexp_alternative(state);
|
|
4217
3671
|
}
|
|
4218
3672
|
if (trackDisjunction) { state.branchID = state.branchID.parent; }
|
|
4219
|
-
|
|
4220
3673
|
// Make the same message as V8.
|
|
4221
3674
|
if (this.regexp_eatQuantifier(state, true)) {
|
|
4222
3675
|
state.raise("Nothing to repeat");
|
|
@@ -4225,12 +3678,10 @@
|
|
|
4225
3678
|
state.raise("Lone quantifier brackets");
|
|
4226
3679
|
}
|
|
4227
3680
|
};
|
|
4228
|
-
|
|
4229
3681
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-Alternative
|
|
4230
3682
|
pp$1.regexp_alternative = function(state) {
|
|
4231
3683
|
while (state.pos < state.source.length && this.regexp_eatTerm(state)) {}
|
|
4232
3684
|
};
|
|
4233
|
-
|
|
4234
3685
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Term
|
|
4235
3686
|
pp$1.regexp_eatTerm = function(state) {
|
|
4236
3687
|
if (this.regexp_eatAssertion(state)) {
|
|
@@ -4245,25 +3696,20 @@
|
|
|
4245
3696
|
}
|
|
4246
3697
|
return true
|
|
4247
3698
|
}
|
|
4248
|
-
|
|
4249
3699
|
if (state.switchU ? this.regexp_eatAtom(state) : this.regexp_eatExtendedAtom(state)) {
|
|
4250
3700
|
this.regexp_eatQuantifier(state);
|
|
4251
3701
|
return true
|
|
4252
3702
|
}
|
|
4253
|
-
|
|
4254
3703
|
return false
|
|
4255
3704
|
};
|
|
4256
|
-
|
|
4257
3705
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Assertion
|
|
4258
3706
|
pp$1.regexp_eatAssertion = function(state) {
|
|
4259
3707
|
var start = state.pos;
|
|
4260
3708
|
state.lastAssertionIsQuantifiable = false;
|
|
4261
|
-
|
|
4262
3709
|
// ^, $
|
|
4263
3710
|
if (state.eat(0x5E /* ^ */) || state.eat(0x24 /* $ */)) {
|
|
4264
3711
|
return true
|
|
4265
3712
|
}
|
|
4266
|
-
|
|
4267
3713
|
// \b \B
|
|
4268
3714
|
if (state.eat(0x5C /* \ */)) {
|
|
4269
3715
|
if (state.eat(0x42 /* B */) || state.eat(0x62 /* b */)) {
|
|
@@ -4271,7 +3717,6 @@
|
|
|
4271
3717
|
}
|
|
4272
3718
|
state.pos = start;
|
|
4273
3719
|
}
|
|
4274
|
-
|
|
4275
3720
|
// Lookahead / Lookbehind
|
|
4276
3721
|
if (state.eat(0x28 /* ( */) && state.eat(0x3F /* ? */)) {
|
|
4277
3722
|
var lookbehind = false;
|
|
@@ -4287,22 +3732,18 @@
|
|
|
4287
3732
|
return true
|
|
4288
3733
|
}
|
|
4289
3734
|
}
|
|
4290
|
-
|
|
4291
3735
|
state.pos = start;
|
|
4292
3736
|
return false
|
|
4293
3737
|
};
|
|
4294
|
-
|
|
4295
3738
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-Quantifier
|
|
4296
3739
|
pp$1.regexp_eatQuantifier = function(state, noError) {
|
|
4297
3740
|
if ( noError === void 0 ) noError = false;
|
|
4298
|
-
|
|
4299
3741
|
if (this.regexp_eatQuantifierPrefix(state, noError)) {
|
|
4300
3742
|
state.eat(0x3F /* ? */);
|
|
4301
3743
|
return true
|
|
4302
3744
|
}
|
|
4303
3745
|
return false
|
|
4304
3746
|
};
|
|
4305
|
-
|
|
4306
3747
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-QuantifierPrefix
|
|
4307
3748
|
pp$1.regexp_eatQuantifierPrefix = function(state, noError) {
|
|
4308
3749
|
return (
|
|
@@ -4336,7 +3777,6 @@
|
|
|
4336
3777
|
}
|
|
4337
3778
|
return false
|
|
4338
3779
|
};
|
|
4339
|
-
|
|
4340
3780
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-Atom
|
|
4341
3781
|
pp$1.regexp_eatAtom = function(state) {
|
|
4342
3782
|
return (
|
|
@@ -4434,7 +3874,6 @@
|
|
|
4434
3874
|
function isRegularExpressionModifier(ch) {
|
|
4435
3875
|
return ch === 0x69 /* i */ || ch === 0x6d /* m */ || ch === 0x73 /* s */
|
|
4436
3876
|
}
|
|
4437
|
-
|
|
4438
3877
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedAtom
|
|
4439
3878
|
pp$1.regexp_eatExtendedAtom = function(state) {
|
|
4440
3879
|
return (
|
|
@@ -4447,7 +3886,6 @@
|
|
|
4447
3886
|
this.regexp_eatExtendedPatternCharacter(state)
|
|
4448
3887
|
)
|
|
4449
3888
|
};
|
|
4450
|
-
|
|
4451
3889
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-InvalidBracedQuantifier
|
|
4452
3890
|
pp$1.regexp_eatInvalidBracedQuantifier = function(state) {
|
|
4453
3891
|
if (this.regexp_eatBracedQuantifier(state, true)) {
|
|
@@ -4455,7 +3893,6 @@
|
|
|
4455
3893
|
}
|
|
4456
3894
|
return false
|
|
4457
3895
|
};
|
|
4458
|
-
|
|
4459
3896
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-SyntaxCharacter
|
|
4460
3897
|
pp$1.regexp_eatSyntaxCharacter = function(state) {
|
|
4461
3898
|
var ch = state.current();
|
|
@@ -4476,7 +3913,6 @@
|
|
|
4476
3913
|
ch >= 0x7B /* { */ && ch <= 0x7D /* } */
|
|
4477
3914
|
)
|
|
4478
3915
|
}
|
|
4479
|
-
|
|
4480
3916
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-PatternCharacter
|
|
4481
3917
|
// But eat eager.
|
|
4482
3918
|
pp$1.regexp_eatPatternCharacters = function(state) {
|
|
@@ -4487,7 +3923,6 @@
|
|
|
4487
3923
|
}
|
|
4488
3924
|
return state.pos !== start
|
|
4489
3925
|
};
|
|
4490
|
-
|
|
4491
3926
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedPatternCharacter
|
|
4492
3927
|
pp$1.regexp_eatExtendedPatternCharacter = function(state) {
|
|
4493
3928
|
var ch = state.current();
|
|
@@ -4506,7 +3941,6 @@
|
|
|
4506
3941
|
}
|
|
4507
3942
|
return false
|
|
4508
3943
|
};
|
|
4509
|
-
|
|
4510
3944
|
// GroupSpecifier ::
|
|
4511
3945
|
// [empty]
|
|
4512
3946
|
// `?` GroupName
|
|
@@ -4519,7 +3953,6 @@
|
|
|
4519
3953
|
if (trackDisjunction) {
|
|
4520
3954
|
for (var i = 0, list = known; i < list.length; i += 1) {
|
|
4521
3955
|
var altID = list[i];
|
|
4522
|
-
|
|
4523
3956
|
if (!altID.separatedFrom(state.branchID))
|
|
4524
3957
|
{ state.raise("Duplicate capture group name"); }
|
|
4525
3958
|
}
|
|
@@ -4534,7 +3967,6 @@
|
|
|
4534
3967
|
}
|
|
4535
3968
|
}
|
|
4536
3969
|
};
|
|
4537
|
-
|
|
4538
3970
|
// GroupName ::
|
|
4539
3971
|
// `<` RegExpIdentifierName `>`
|
|
4540
3972
|
// Note: this updates `state.lastStringValue` property with the eaten name.
|
|
@@ -4548,7 +3980,6 @@
|
|
|
4548
3980
|
}
|
|
4549
3981
|
return false
|
|
4550
3982
|
};
|
|
4551
|
-
|
|
4552
3983
|
// RegExpIdentifierName ::
|
|
4553
3984
|
// RegExpIdentifierStart
|
|
4554
3985
|
// RegExpIdentifierName RegExpIdentifierPart
|
|
@@ -4564,7 +3995,6 @@
|
|
|
4564
3995
|
}
|
|
4565
3996
|
return false
|
|
4566
3997
|
};
|
|
4567
|
-
|
|
4568
3998
|
// RegExpIdentifierStart ::
|
|
4569
3999
|
// UnicodeIDStart
|
|
4570
4000
|
// `$`
|
|
@@ -4575,7 +4005,6 @@
|
|
|
4575
4005
|
var forceU = this.options.ecmaVersion >= 11;
|
|
4576
4006
|
var ch = state.current(forceU);
|
|
4577
4007
|
state.advance(forceU);
|
|
4578
|
-
|
|
4579
4008
|
if (ch === 0x5C /* \ */ && this.regexp_eatRegExpUnicodeEscapeSequence(state, forceU)) {
|
|
4580
4009
|
ch = state.lastIntValue;
|
|
4581
4010
|
}
|
|
@@ -4583,14 +4012,12 @@
|
|
|
4583
4012
|
state.lastIntValue = ch;
|
|
4584
4013
|
return true
|
|
4585
4014
|
}
|
|
4586
|
-
|
|
4587
4015
|
state.pos = start;
|
|
4588
4016
|
return false
|
|
4589
4017
|
};
|
|
4590
4018
|
function isRegExpIdentifierStart(ch) {
|
|
4591
4019
|
return isIdentifierStart(ch, true) || ch === 0x24 /* $ */ || ch === 0x5F /* _ */
|
|
4592
4020
|
}
|
|
4593
|
-
|
|
4594
4021
|
// RegExpIdentifierPart ::
|
|
4595
4022
|
// UnicodeIDContinue
|
|
4596
4023
|
// `$`
|
|
@@ -4603,7 +4030,6 @@
|
|
|
4603
4030
|
var forceU = this.options.ecmaVersion >= 11;
|
|
4604
4031
|
var ch = state.current(forceU);
|
|
4605
4032
|
state.advance(forceU);
|
|
4606
|
-
|
|
4607
4033
|
if (ch === 0x5C /* \ */ && this.regexp_eatRegExpUnicodeEscapeSequence(state, forceU)) {
|
|
4608
4034
|
ch = state.lastIntValue;
|
|
4609
4035
|
}
|
|
@@ -4611,14 +4037,12 @@
|
|
|
4611
4037
|
state.lastIntValue = ch;
|
|
4612
4038
|
return true
|
|
4613
4039
|
}
|
|
4614
|
-
|
|
4615
4040
|
state.pos = start;
|
|
4616
4041
|
return false
|
|
4617
4042
|
};
|
|
4618
4043
|
function isRegExpIdentifierPart(ch) {
|
|
4619
4044
|
return isIdentifierChar(ch, true) || ch === 0x24 /* $ */ || ch === 0x5F /* _ */ || ch === 0x200C /* <ZWNJ> */ || ch === 0x200D /* <ZWJ> */
|
|
4620
4045
|
}
|
|
4621
|
-
|
|
4622
4046
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-AtomEscape
|
|
4623
4047
|
pp$1.regexp_eatAtomEscape = function(state) {
|
|
4624
4048
|
if (
|
|
@@ -4666,7 +4090,6 @@
|
|
|
4666
4090
|
}
|
|
4667
4091
|
return false
|
|
4668
4092
|
};
|
|
4669
|
-
|
|
4670
4093
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-CharacterEscape
|
|
4671
4094
|
pp$1.regexp_eatCharacterEscape = function(state) {
|
|
4672
4095
|
return (
|
|
@@ -4697,7 +4120,6 @@
|
|
|
4697
4120
|
}
|
|
4698
4121
|
return false
|
|
4699
4122
|
};
|
|
4700
|
-
|
|
4701
4123
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-ControlEscape
|
|
4702
4124
|
pp$1.regexp_eatControlEscape = function(state) {
|
|
4703
4125
|
var ch = state.current();
|
|
@@ -4728,7 +4150,6 @@
|
|
|
4728
4150
|
}
|
|
4729
4151
|
return false
|
|
4730
4152
|
};
|
|
4731
|
-
|
|
4732
4153
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-ControlLetter
|
|
4733
4154
|
pp$1.regexp_eatControlLetter = function(state) {
|
|
4734
4155
|
var ch = state.current();
|
|
@@ -4745,14 +4166,11 @@
|
|
|
4745
4166
|
(ch >= 0x61 /* a */ && ch <= 0x7A /* z */)
|
|
4746
4167
|
)
|
|
4747
4168
|
}
|
|
4748
|
-
|
|
4749
4169
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-RegExpUnicodeEscapeSequence
|
|
4750
4170
|
pp$1.regexp_eatRegExpUnicodeEscapeSequence = function(state, forceU) {
|
|
4751
4171
|
if ( forceU === void 0 ) forceU = false;
|
|
4752
|
-
|
|
4753
4172
|
var start = state.pos;
|
|
4754
4173
|
var switchU = forceU || state.switchU;
|
|
4755
|
-
|
|
4756
4174
|
if (state.eat(0x75 /* u */)) {
|
|
4757
4175
|
if (this.regexp_eatFixedHexDigits(state, 4)) {
|
|
4758
4176
|
var lead = state.lastIntValue;
|
|
@@ -4784,13 +4202,11 @@
|
|
|
4784
4202
|
}
|
|
4785
4203
|
state.pos = start;
|
|
4786
4204
|
}
|
|
4787
|
-
|
|
4788
4205
|
return false
|
|
4789
4206
|
};
|
|
4790
4207
|
function isValidUnicode(ch) {
|
|
4791
4208
|
return ch >= 0 && ch <= 0x10FFFF
|
|
4792
4209
|
}
|
|
4793
|
-
|
|
4794
4210
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-IdentityEscape
|
|
4795
4211
|
pp$1.regexp_eatIdentityEscape = function(state) {
|
|
4796
4212
|
if (state.switchU) {
|
|
@@ -4803,17 +4219,14 @@
|
|
|
4803
4219
|
}
|
|
4804
4220
|
return false
|
|
4805
4221
|
}
|
|
4806
|
-
|
|
4807
4222
|
var ch = state.current();
|
|
4808
4223
|
if (ch !== 0x63 /* c */ && (!state.switchN || ch !== 0x6B /* k */)) {
|
|
4809
4224
|
state.lastIntValue = ch;
|
|
4810
4225
|
state.advance();
|
|
4811
4226
|
return true
|
|
4812
4227
|
}
|
|
4813
|
-
|
|
4814
4228
|
return false
|
|
4815
4229
|
};
|
|
4816
|
-
|
|
4817
4230
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-DecimalEscape
|
|
4818
4231
|
pp$1.regexp_eatDecimalEscape = function(state) {
|
|
4819
4232
|
state.lastIntValue = 0;
|
|
@@ -4827,23 +4240,19 @@
|
|
|
4827
4240
|
}
|
|
4828
4241
|
return false
|
|
4829
4242
|
};
|
|
4830
|
-
|
|
4831
4243
|
// Return values used by character set parsing methods, needed to
|
|
4832
4244
|
// forbid negation of sets that can match strings.
|
|
4833
4245
|
var CharSetNone = 0; // Nothing parsed
|
|
4834
4246
|
var CharSetOk = 1; // Construct parsed, cannot contain strings
|
|
4835
4247
|
var CharSetString = 2; // Construct parsed, can contain strings
|
|
4836
|
-
|
|
4837
4248
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClassEscape
|
|
4838
4249
|
pp$1.regexp_eatCharacterClassEscape = function(state) {
|
|
4839
4250
|
var ch = state.current();
|
|
4840
|
-
|
|
4841
4251
|
if (isCharacterClassEscape(ch)) {
|
|
4842
4252
|
state.lastIntValue = -1;
|
|
4843
4253
|
state.advance();
|
|
4844
4254
|
return CharSetOk
|
|
4845
4255
|
}
|
|
4846
|
-
|
|
4847
4256
|
var negate = false;
|
|
4848
4257
|
if (
|
|
4849
4258
|
state.switchU &&
|
|
@@ -4863,10 +4272,8 @@
|
|
|
4863
4272
|
}
|
|
4864
4273
|
state.raise("Invalid property name");
|
|
4865
4274
|
}
|
|
4866
|
-
|
|
4867
4275
|
return CharSetNone
|
|
4868
4276
|
};
|
|
4869
|
-
|
|
4870
4277
|
function isCharacterClassEscape(ch) {
|
|
4871
4278
|
return (
|
|
4872
4279
|
ch === 0x64 /* d */ ||
|
|
@@ -4877,13 +4284,11 @@
|
|
|
4877
4284
|
ch === 0x57 /* W */
|
|
4878
4285
|
)
|
|
4879
4286
|
}
|
|
4880
|
-
|
|
4881
4287
|
// UnicodePropertyValueExpression ::
|
|
4882
4288
|
// UnicodePropertyName `=` UnicodePropertyValue
|
|
4883
4289
|
// LoneUnicodePropertyNameOrValue
|
|
4884
4290
|
pp$1.regexp_eatUnicodePropertyValueExpression = function(state) {
|
|
4885
4291
|
var start = state.pos;
|
|
4886
|
-
|
|
4887
4292
|
// UnicodePropertyName `=` UnicodePropertyValue
|
|
4888
4293
|
if (this.regexp_eatUnicodePropertyName(state) && state.eat(0x3D /* = */)) {
|
|
4889
4294
|
var name = state.lastStringValue;
|
|
@@ -4894,7 +4299,6 @@
|
|
|
4894
4299
|
}
|
|
4895
4300
|
}
|
|
4896
4301
|
state.pos = start;
|
|
4897
|
-
|
|
4898
4302
|
// LoneUnicodePropertyNameOrValue
|
|
4899
4303
|
if (this.regexp_eatLoneUnicodePropertyNameOrValue(state)) {
|
|
4900
4304
|
var nameOrValue = state.lastStringValue;
|
|
@@ -4902,20 +4306,17 @@
|
|
|
4902
4306
|
}
|
|
4903
4307
|
return CharSetNone
|
|
4904
4308
|
};
|
|
4905
|
-
|
|
4906
4309
|
pp$1.regexp_validateUnicodePropertyNameAndValue = function(state, name, value) {
|
|
4907
4310
|
if (!hasOwn(state.unicodeProperties.nonBinary, name))
|
|
4908
4311
|
{ state.raise("Invalid property name"); }
|
|
4909
4312
|
if (!state.unicodeProperties.nonBinary[name].test(value))
|
|
4910
4313
|
{ state.raise("Invalid property value"); }
|
|
4911
4314
|
};
|
|
4912
|
-
|
|
4913
4315
|
pp$1.regexp_validateUnicodePropertyNameOrValue = function(state, nameOrValue) {
|
|
4914
4316
|
if (state.unicodeProperties.binary.test(nameOrValue)) { return CharSetOk }
|
|
4915
4317
|
if (state.switchV && state.unicodeProperties.binaryOfStrings.test(nameOrValue)) { return CharSetString }
|
|
4916
4318
|
state.raise("Invalid property name");
|
|
4917
4319
|
};
|
|
4918
|
-
|
|
4919
4320
|
// UnicodePropertyName ::
|
|
4920
4321
|
// UnicodePropertyNameCharacters
|
|
4921
4322
|
pp$1.regexp_eatUnicodePropertyName = function(state) {
|
|
@@ -4927,11 +4328,9 @@
|
|
|
4927
4328
|
}
|
|
4928
4329
|
return state.lastStringValue !== ""
|
|
4929
4330
|
};
|
|
4930
|
-
|
|
4931
4331
|
function isUnicodePropertyNameCharacter(ch) {
|
|
4932
4332
|
return isControlLetter(ch) || ch === 0x5F /* _ */
|
|
4933
4333
|
}
|
|
4934
|
-
|
|
4935
4334
|
// UnicodePropertyValue ::
|
|
4936
4335
|
// UnicodePropertyValueCharacters
|
|
4937
4336
|
pp$1.regexp_eatUnicodePropertyValue = function(state) {
|
|
@@ -4946,13 +4345,11 @@
|
|
|
4946
4345
|
function isUnicodePropertyValueCharacter(ch) {
|
|
4947
4346
|
return isUnicodePropertyNameCharacter(ch) || isDecimalDigit(ch)
|
|
4948
4347
|
}
|
|
4949
|
-
|
|
4950
4348
|
// LoneUnicodePropertyNameOrValue ::
|
|
4951
4349
|
// UnicodePropertyValueCharacters
|
|
4952
4350
|
pp$1.regexp_eatLoneUnicodePropertyNameOrValue = function(state) {
|
|
4953
4351
|
return this.regexp_eatUnicodePropertyValue(state)
|
|
4954
4352
|
};
|
|
4955
|
-
|
|
4956
4353
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClass
|
|
4957
4354
|
pp$1.regexp_eatCharacterClass = function(state) {
|
|
4958
4355
|
if (state.eat(0x5B /* [ */)) {
|
|
@@ -4966,7 +4363,6 @@
|
|
|
4966
4363
|
}
|
|
4967
4364
|
return false
|
|
4968
4365
|
};
|
|
4969
|
-
|
|
4970
4366
|
// https://tc39.es/ecma262/#prod-ClassContents
|
|
4971
4367
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-ClassRanges
|
|
4972
4368
|
pp$1.regexp_classContents = function(state) {
|
|
@@ -4975,7 +4371,6 @@
|
|
|
4975
4371
|
this.regexp_nonEmptyClassRanges(state);
|
|
4976
4372
|
return CharSetOk
|
|
4977
4373
|
};
|
|
4978
|
-
|
|
4979
4374
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRanges
|
|
4980
4375
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRangesNoDash
|
|
4981
4376
|
pp$1.regexp_nonEmptyClassRanges = function(state) {
|
|
@@ -4992,12 +4387,10 @@
|
|
|
4992
4387
|
}
|
|
4993
4388
|
}
|
|
4994
4389
|
};
|
|
4995
|
-
|
|
4996
4390
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-ClassAtom
|
|
4997
4391
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-ClassAtomNoDash
|
|
4998
4392
|
pp$1.regexp_eatClassAtom = function(state) {
|
|
4999
4393
|
var start = state.pos;
|
|
5000
|
-
|
|
5001
4394
|
if (state.eat(0x5C /* \ */)) {
|
|
5002
4395
|
if (this.regexp_eatClassEscape(state)) {
|
|
5003
4396
|
return true
|
|
@@ -5012,44 +4405,36 @@
|
|
|
5012
4405
|
}
|
|
5013
4406
|
state.pos = start;
|
|
5014
4407
|
}
|
|
5015
|
-
|
|
5016
4408
|
var ch = state.current();
|
|
5017
4409
|
if (ch !== 0x5D /* ] */) {
|
|
5018
4410
|
state.lastIntValue = ch;
|
|
5019
4411
|
state.advance();
|
|
5020
4412
|
return true
|
|
5021
4413
|
}
|
|
5022
|
-
|
|
5023
4414
|
return false
|
|
5024
4415
|
};
|
|
5025
|
-
|
|
5026
4416
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassEscape
|
|
5027
4417
|
pp$1.regexp_eatClassEscape = function(state) {
|
|
5028
4418
|
var start = state.pos;
|
|
5029
|
-
|
|
5030
4419
|
if (state.eat(0x62 /* b */)) {
|
|
5031
4420
|
state.lastIntValue = 0x08; /* <BS> */
|
|
5032
4421
|
return true
|
|
5033
4422
|
}
|
|
5034
|
-
|
|
5035
4423
|
if (state.switchU && state.eat(0x2D /* - */)) {
|
|
5036
4424
|
state.lastIntValue = 0x2D; /* - */
|
|
5037
4425
|
return true
|
|
5038
4426
|
}
|
|
5039
|
-
|
|
5040
4427
|
if (!state.switchU && state.eat(0x63 /* c */)) {
|
|
5041
4428
|
if (this.regexp_eatClassControlLetter(state)) {
|
|
5042
4429
|
return true
|
|
5043
4430
|
}
|
|
5044
4431
|
state.pos = start;
|
|
5045
4432
|
}
|
|
5046
|
-
|
|
5047
4433
|
return (
|
|
5048
4434
|
this.regexp_eatCharacterClassEscape(state) ||
|
|
5049
4435
|
this.regexp_eatCharacterEscape(state)
|
|
5050
4436
|
)
|
|
5051
4437
|
};
|
|
5052
|
-
|
|
5053
4438
|
// https://tc39.es/ecma262/#prod-ClassSetExpression
|
|
5054
4439
|
// https://tc39.es/ecma262/#prod-ClassUnion
|
|
5055
4440
|
// https://tc39.es/ecma262/#prod-ClassIntersection
|
|
@@ -5088,7 +4473,6 @@
|
|
|
5088
4473
|
if (subResult === CharSetString) { result = CharSetString; }
|
|
5089
4474
|
}
|
|
5090
4475
|
};
|
|
5091
|
-
|
|
5092
4476
|
// https://tc39.es/ecma262/#prod-ClassSetRange
|
|
5093
4477
|
pp$1.regexp_eatClassSetRange = function(state) {
|
|
5094
4478
|
var start = state.pos;
|
|
@@ -5105,13 +4489,11 @@
|
|
|
5105
4489
|
}
|
|
5106
4490
|
return false
|
|
5107
4491
|
};
|
|
5108
|
-
|
|
5109
4492
|
// https://tc39.es/ecma262/#prod-ClassSetOperand
|
|
5110
4493
|
pp$1.regexp_eatClassSetOperand = function(state) {
|
|
5111
4494
|
if (this.regexp_eatClassSetCharacter(state)) { return CharSetOk }
|
|
5112
4495
|
return this.regexp_eatClassStringDisjunction(state) || this.regexp_eatNestedClass(state)
|
|
5113
4496
|
};
|
|
5114
|
-
|
|
5115
4497
|
// https://tc39.es/ecma262/#prod-NestedClass
|
|
5116
4498
|
pp$1.regexp_eatNestedClass = function(state) {
|
|
5117
4499
|
var start = state.pos;
|
|
@@ -5135,7 +4517,6 @@
|
|
|
5135
4517
|
}
|
|
5136
4518
|
return null
|
|
5137
4519
|
};
|
|
5138
|
-
|
|
5139
4520
|
// https://tc39.es/ecma262/#prod-ClassStringDisjunction
|
|
5140
4521
|
pp$1.regexp_eatClassStringDisjunction = function(state) {
|
|
5141
4522
|
var start = state.pos;
|
|
@@ -5153,7 +4534,6 @@
|
|
|
5153
4534
|
}
|
|
5154
4535
|
return null
|
|
5155
4536
|
};
|
|
5156
|
-
|
|
5157
4537
|
// https://tc39.es/ecma262/#prod-ClassStringDisjunctionContents
|
|
5158
4538
|
pp$1.regexp_classStringDisjunctionContents = function(state) {
|
|
5159
4539
|
var result = this.regexp_classString(state);
|
|
@@ -5162,7 +4542,6 @@
|
|
|
5162
4542
|
}
|
|
5163
4543
|
return result
|
|
5164
4544
|
};
|
|
5165
|
-
|
|
5166
4545
|
// https://tc39.es/ecma262/#prod-ClassString
|
|
5167
4546
|
// https://tc39.es/ecma262/#prod-NonEmptyClassString
|
|
5168
4547
|
pp$1.regexp_classString = function(state) {
|
|
@@ -5170,7 +4549,6 @@
|
|
|
5170
4549
|
while (this.regexp_eatClassSetCharacter(state)) { count++; }
|
|
5171
4550
|
return count === 1 ? CharSetOk : CharSetString
|
|
5172
4551
|
};
|
|
5173
|
-
|
|
5174
4552
|
// https://tc39.es/ecma262/#prod-ClassSetCharacter
|
|
5175
4553
|
pp$1.regexp_eatClassSetCharacter = function(state) {
|
|
5176
4554
|
var start = state.pos;
|
|
@@ -5195,7 +4573,6 @@
|
|
|
5195
4573
|
state.lastIntValue = ch;
|
|
5196
4574
|
return true
|
|
5197
4575
|
};
|
|
5198
|
-
|
|
5199
4576
|
// https://tc39.es/ecma262/#prod-ClassSetReservedDoublePunctuator
|
|
5200
4577
|
function isClassSetReservedDoublePunctuatorCharacter(ch) {
|
|
5201
4578
|
return (
|
|
@@ -5209,7 +4586,6 @@
|
|
|
5209
4586
|
ch === 0x7E /* ~ */
|
|
5210
4587
|
)
|
|
5211
4588
|
}
|
|
5212
|
-
|
|
5213
4589
|
// https://tc39.es/ecma262/#prod-ClassSetSyntaxCharacter
|
|
5214
4590
|
function isClassSetSyntaxCharacter(ch) {
|
|
5215
4591
|
return (
|
|
@@ -5221,7 +4597,6 @@
|
|
|
5221
4597
|
ch >= 0x7B /* { */ && ch <= 0x7D /* } */
|
|
5222
4598
|
)
|
|
5223
4599
|
}
|
|
5224
|
-
|
|
5225
4600
|
// https://tc39.es/ecma262/#prod-ClassSetReservedPunctuator
|
|
5226
4601
|
pp$1.regexp_eatClassSetReservedPunctuator = function(state) {
|
|
5227
4602
|
var ch = state.current();
|
|
@@ -5232,7 +4607,6 @@
|
|
|
5232
4607
|
}
|
|
5233
4608
|
return false
|
|
5234
4609
|
};
|
|
5235
|
-
|
|
5236
4610
|
// https://tc39.es/ecma262/#prod-ClassSetReservedPunctuator
|
|
5237
4611
|
function isClassSetReservedPunctuator(ch) {
|
|
5238
4612
|
return (
|
|
@@ -5248,7 +4622,6 @@
|
|
|
5248
4622
|
ch === 0x7E /* ~ */
|
|
5249
4623
|
)
|
|
5250
4624
|
}
|
|
5251
|
-
|
|
5252
4625
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassControlLetter
|
|
5253
4626
|
pp$1.regexp_eatClassControlLetter = function(state) {
|
|
5254
4627
|
var ch = state.current();
|
|
@@ -5259,7 +4632,6 @@
|
|
|
5259
4632
|
}
|
|
5260
4633
|
return false
|
|
5261
4634
|
};
|
|
5262
|
-
|
|
5263
4635
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-HexEscapeSequence
|
|
5264
4636
|
pp$1.regexp_eatHexEscapeSequence = function(state) {
|
|
5265
4637
|
var start = state.pos;
|
|
@@ -5274,7 +4646,6 @@
|
|
|
5274
4646
|
}
|
|
5275
4647
|
return false
|
|
5276
4648
|
};
|
|
5277
|
-
|
|
5278
4649
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-DecimalDigits
|
|
5279
4650
|
pp$1.regexp_eatDecimalDigits = function(state) {
|
|
5280
4651
|
var start = state.pos;
|
|
@@ -5289,7 +4660,6 @@
|
|
|
5289
4660
|
function isDecimalDigit(ch) {
|
|
5290
4661
|
return ch >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */
|
|
5291
4662
|
}
|
|
5292
|
-
|
|
5293
4663
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-HexDigits
|
|
5294
4664
|
pp$1.regexp_eatHexDigits = function(state) {
|
|
5295
4665
|
var start = state.pos;
|
|
@@ -5317,7 +4687,6 @@
|
|
|
5317
4687
|
}
|
|
5318
4688
|
return ch - 0x30 /* 0 */
|
|
5319
4689
|
}
|
|
5320
|
-
|
|
5321
4690
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-LegacyOctalEscapeSequence
|
|
5322
4691
|
// Allows only 0-377(octal) i.e. 0-255(decimal).
|
|
5323
4692
|
pp$1.regexp_eatLegacyOctalEscapeSequence = function(state) {
|
|
@@ -5337,7 +4706,6 @@
|
|
|
5337
4706
|
}
|
|
5338
4707
|
return false
|
|
5339
4708
|
};
|
|
5340
|
-
|
|
5341
4709
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-OctalDigit
|
|
5342
4710
|
pp$1.regexp_eatOctalDigit = function(state) {
|
|
5343
4711
|
var ch = state.current();
|
|
@@ -5352,7 +4720,6 @@
|
|
|
5352
4720
|
function isOctalDigit(ch) {
|
|
5353
4721
|
return ch >= 0x30 /* 0 */ && ch <= 0x37 /* 7 */
|
|
5354
4722
|
}
|
|
5355
|
-
|
|
5356
4723
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-Hex4Digits
|
|
5357
4724
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-HexDigit
|
|
5358
4725
|
// And HexDigit HexDigit in https://www.ecma-international.org/ecma-262/8.0/#prod-HexEscapeSequence
|
|
@@ -5370,11 +4737,9 @@
|
|
|
5370
4737
|
}
|
|
5371
4738
|
return true
|
|
5372
4739
|
};
|
|
5373
|
-
|
|
5374
4740
|
// Object type used to represent tokens. Note that normally, tokens
|
|
5375
4741
|
// simply exist as properties on the parser object. This is only
|
|
5376
4742
|
// used for the onToken callback and the external tokenizer.
|
|
5377
|
-
|
|
5378
4743
|
var Token = function Token(p) {
|
|
5379
4744
|
this.type = p.type;
|
|
5380
4745
|
this.value = p.value;
|
|
@@ -5385,36 +4750,28 @@
|
|
|
5385
4750
|
if (p.options.ranges)
|
|
5386
4751
|
{ this.range = [p.start, p.end]; }
|
|
5387
4752
|
};
|
|
5388
|
-
|
|
5389
4753
|
// ## Tokenizer
|
|
5390
|
-
|
|
5391
4754
|
var pp = Parser.prototype;
|
|
5392
|
-
|
|
5393
4755
|
// Move to the next token
|
|
5394
|
-
|
|
5395
4756
|
pp.next = function(ignoreEscapeSequenceInKeyword) {
|
|
5396
4757
|
if (!ignoreEscapeSequenceInKeyword && this.type.keyword && this.containsEsc)
|
|
5397
4758
|
{ this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword); }
|
|
5398
4759
|
if (this.options.onToken)
|
|
5399
4760
|
{ this.options.onToken(new Token(this)); }
|
|
5400
|
-
|
|
5401
4761
|
this.lastTokEnd = this.end;
|
|
5402
4762
|
this.lastTokStart = this.start;
|
|
5403
4763
|
this.lastTokEndLoc = this.endLoc;
|
|
5404
4764
|
this.lastTokStartLoc = this.startLoc;
|
|
5405
4765
|
this.nextToken();
|
|
5406
4766
|
};
|
|
5407
|
-
|
|
5408
4767
|
pp.getToken = function() {
|
|
5409
4768
|
this.next();
|
|
5410
4769
|
return new Token(this)
|
|
5411
4770
|
};
|
|
5412
|
-
|
|
5413
4771
|
// If we're in an ES6 environment, make parsers iterable
|
|
5414
4772
|
if (typeof Symbol !== "undefined")
|
|
5415
4773
|
{ pp[Symbol.iterator] = function() {
|
|
5416
4774
|
var this$1$1 = this;
|
|
5417
|
-
|
|
5418
4775
|
return {
|
|
5419
4776
|
next: function () {
|
|
5420
4777
|
var token = this$1$1.getToken();
|
|
@@ -5425,41 +4782,32 @@
|
|
|
5425
4782
|
}
|
|
5426
4783
|
}
|
|
5427
4784
|
}; }
|
|
5428
|
-
|
|
5429
4785
|
// Toggle strict mode. Re-reads the next number or string to please
|
|
5430
4786
|
// pedantic tests (`"use strict"; 010;` should fail).
|
|
5431
|
-
|
|
5432
4787
|
// Read a single token, updating the parser object's token-related
|
|
5433
4788
|
// properties.
|
|
5434
|
-
|
|
5435
4789
|
pp.nextToken = function() {
|
|
5436
4790
|
var curContext = this.curContext();
|
|
5437
4791
|
if (!curContext || !curContext.preserveSpace) { this.skipSpace(); }
|
|
5438
|
-
|
|
5439
4792
|
this.start = this.pos;
|
|
5440
4793
|
if (this.options.locations) { this.startLoc = this.curPosition(); }
|
|
5441
4794
|
if (this.pos >= this.input.length) { return this.finishToken(types$1.eof) }
|
|
5442
|
-
|
|
5443
4795
|
if (curContext.override) { return curContext.override(this) }
|
|
5444
4796
|
else { this.readToken(this.fullCharCodeAtPos()); }
|
|
5445
4797
|
};
|
|
5446
|
-
|
|
5447
4798
|
pp.readToken = function(code) {
|
|
5448
4799
|
// Identifier or keyword. '\uXXXX' sequences are allowed in
|
|
5449
4800
|
// identifiers, so '\' also dispatches to that.
|
|
5450
4801
|
if (isIdentifierStart(code, this.options.ecmaVersion >= 6) || code === 92 /* '\' */)
|
|
5451
4802
|
{ return this.readWord() }
|
|
5452
|
-
|
|
5453
4803
|
return this.getTokenFromCode(code)
|
|
5454
4804
|
};
|
|
5455
|
-
|
|
5456
4805
|
pp.fullCharCodeAtPos = function() {
|
|
5457
4806
|
var code = this.input.charCodeAt(this.pos);
|
|
5458
4807
|
if (code <= 0xd7ff || code >= 0xdc00) { return code }
|
|
5459
4808
|
var next = this.input.charCodeAt(this.pos + 1);
|
|
5460
4809
|
return next <= 0xdbff || next >= 0xe000 ? code : (code << 10) + next - 0x35fdc00
|
|
5461
4810
|
};
|
|
5462
|
-
|
|
5463
4811
|
pp.skipBlockComment = function() {
|
|
5464
4812
|
var startLoc = this.options.onComment && this.curPosition();
|
|
5465
4813
|
var start = this.pos, end = this.input.indexOf("*/", this.pos += 2);
|
|
@@ -5475,7 +4823,6 @@
|
|
|
5475
4823
|
{ this.options.onComment(true, this.input.slice(start + 2, end), start, this.pos,
|
|
5476
4824
|
startLoc, this.curPosition()); }
|
|
5477
4825
|
};
|
|
5478
|
-
|
|
5479
4826
|
pp.skipLineComment = function(startSkip) {
|
|
5480
4827
|
var start = this.pos;
|
|
5481
4828
|
var startLoc = this.options.onComment && this.curPosition();
|
|
@@ -5487,10 +4834,8 @@
|
|
|
5487
4834
|
{ this.options.onComment(false, this.input.slice(start + startSkip, this.pos), start, this.pos,
|
|
5488
4835
|
startLoc, this.curPosition()); }
|
|
5489
4836
|
};
|
|
5490
|
-
|
|
5491
4837
|
// Called at the start of the parse and after every token. Skips
|
|
5492
4838
|
// whitespace and comments, and.
|
|
5493
|
-
|
|
5494
4839
|
pp.skipSpace = function() {
|
|
5495
4840
|
loop: while (this.pos < this.input.length) {
|
|
5496
4841
|
var ch = this.input.charCodeAt(this.pos);
|
|
@@ -5530,24 +4875,19 @@
|
|
|
5530
4875
|
}
|
|
5531
4876
|
}
|
|
5532
4877
|
};
|
|
5533
|
-
|
|
5534
4878
|
// Called at the end of every token. Sets `end`, `val`, and
|
|
5535
4879
|
// maintains `context` and `exprAllowed`, and skips the space after
|
|
5536
4880
|
// the token, so that the next one's `start` will point at the
|
|
5537
4881
|
// right position.
|
|
5538
|
-
|
|
5539
4882
|
pp.finishToken = function(type, val) {
|
|
5540
4883
|
this.end = this.pos;
|
|
5541
4884
|
if (this.options.locations) { this.endLoc = this.curPosition(); }
|
|
5542
4885
|
var prevType = this.type;
|
|
5543
4886
|
this.type = type;
|
|
5544
4887
|
this.value = val;
|
|
5545
|
-
|
|
5546
4888
|
this.updateContext(prevType);
|
|
5547
4889
|
};
|
|
5548
|
-
|
|
5549
4890
|
// ### Token reading
|
|
5550
|
-
|
|
5551
4891
|
// This is the function that is called to fetch the next token. It
|
|
5552
4892
|
// is somewhat obscure, because it works in character codes rather
|
|
5553
4893
|
// than characters, and because operator parsing has been inlined
|
|
@@ -5567,52 +4907,45 @@
|
|
|
5567
4907
|
return this.finishToken(types$1.dot)
|
|
5568
4908
|
}
|
|
5569
4909
|
};
|
|
5570
|
-
|
|
5571
4910
|
pp.readToken_slash = function() { // '/'
|
|
5572
4911
|
var next = this.input.charCodeAt(this.pos + 1);
|
|
5573
4912
|
if (this.exprAllowed) { ++this.pos; return this.readRegexp() }
|
|
5574
|
-
if (
|
|
4913
|
+
if (_next === 61) { return this.finishOp(types$1.assign, 2) }
|
|
5575
4914
|
return this.finishOp(types$1.slash, 1)
|
|
5576
4915
|
};
|
|
5577
|
-
|
|
5578
4916
|
pp.readToken_mult_modulo_exp = function(code) { // '%*'
|
|
5579
4917
|
var next = this.input.charCodeAt(this.pos + 1);
|
|
5580
4918
|
var size = 1;
|
|
5581
4919
|
var tokentype = code === 42 ? types$1.star : types$1.modulo;
|
|
5582
|
-
|
|
5583
4920
|
// exponentiation operator ** and **=
|
|
5584
4921
|
if (this.options.ecmaVersion >= 7 && code === 42 && next === 42) {
|
|
5585
4922
|
++size;
|
|
5586
4923
|
tokentype = types$1.starstar;
|
|
5587
4924
|
next = this.input.charCodeAt(this.pos + 2);
|
|
5588
4925
|
}
|
|
5589
|
-
|
|
5590
|
-
if (next === 61) { return this.finishOp(types$1.assign, size + 1) }
|
|
4926
|
+
if (_next === 61) { return this.finishOp(types$1.assign, size + 1) }
|
|
5591
4927
|
return this.finishOp(tokentype, size)
|
|
5592
4928
|
};
|
|
5593
|
-
|
|
5594
4929
|
pp.readToken_pipe_amp = function(code) { // '|&'
|
|
5595
4930
|
var next = this.input.charCodeAt(this.pos + 1);
|
|
5596
|
-
if (
|
|
4931
|
+
if (_next === code) {
|
|
5597
4932
|
if (this.options.ecmaVersion >= 12) {
|
|
5598
4933
|
var next2 = this.input.charCodeAt(this.pos + 2);
|
|
5599
4934
|
if (next2 === 61) { return this.finishOp(types$1.assign, 3) }
|
|
5600
4935
|
}
|
|
5601
4936
|
return this.finishOp(code === 124 ? types$1.logicalOR : types$1.logicalAND, 2)
|
|
5602
4937
|
}
|
|
5603
|
-
if (
|
|
4938
|
+
if (_next === 61) { return this.finishOp(types$1.assign, 2) }
|
|
5604
4939
|
return this.finishOp(code === 124 ? types$1.bitwiseOR : types$1.bitwiseAND, 1)
|
|
5605
4940
|
};
|
|
5606
|
-
|
|
5607
4941
|
pp.readToken_caret = function() { // '^'
|
|
5608
4942
|
var next = this.input.charCodeAt(this.pos + 1);
|
|
5609
|
-
if (
|
|
4943
|
+
if (_next === 61) { return this.finishOp(types$1.assign, 2) }
|
|
5610
4944
|
return this.finishOp(types$1.bitwiseXOR, 1)
|
|
5611
4945
|
};
|
|
5612
|
-
|
|
5613
4946
|
pp.readToken_plus_min = function(code) { // '+-'
|
|
5614
4947
|
var next = this.input.charCodeAt(this.pos + 1);
|
|
5615
|
-
if (
|
|
4948
|
+
if (_next === code) {
|
|
5616
4949
|
if (next === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 &&
|
|
5617
4950
|
(this.lastTokEnd === 0 || lineBreak.test(this.input.slice(this.lastTokEnd, this.pos)))) {
|
|
5618
4951
|
// A `-->` line comment
|
|
@@ -5622,14 +4955,13 @@
|
|
|
5622
4955
|
}
|
|
5623
4956
|
return this.finishOp(types$1.incDec, 2)
|
|
5624
4957
|
}
|
|
5625
|
-
if (
|
|
4958
|
+
if (_next === 61) { return this.finishOp(types$1.assign, 2) }
|
|
5626
4959
|
return this.finishOp(types$1.plusMin, 1)
|
|
5627
4960
|
};
|
|
5628
|
-
|
|
5629
4961
|
pp.readToken_lt_gt = function(code) { // '<>'
|
|
5630
4962
|
var next = this.input.charCodeAt(this.pos + 1);
|
|
5631
4963
|
var size = 1;
|
|
5632
|
-
if (
|
|
4964
|
+
if (_next === code) {
|
|
5633
4965
|
size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2;
|
|
5634
4966
|
if (this.input.charCodeAt(this.pos + size) === 61) { return this.finishOp(types$1.assign, size + 1) }
|
|
5635
4967
|
return this.finishOp(types$1.bitShift, size)
|
|
@@ -5641,29 +4973,27 @@
|
|
|
5641
4973
|
this.skipSpace();
|
|
5642
4974
|
return this.nextToken()
|
|
5643
4975
|
}
|
|
5644
|
-
if (
|
|
4976
|
+
if (_next === 61) { size = 2; }
|
|
5645
4977
|
return this.finishOp(types$1.relational, size)
|
|
5646
4978
|
};
|
|
5647
|
-
|
|
5648
4979
|
pp.readToken_eq_excl = function(code) { // '=!'
|
|
5649
4980
|
var next = this.input.charCodeAt(this.pos + 1);
|
|
5650
|
-
if (
|
|
4981
|
+
if (_next === 61) { return this.finishOp(types$1.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) }
|
|
5651
4982
|
if (code === 61 && next === 62 && this.options.ecmaVersion >= 6) { // '=>'
|
|
5652
4983
|
this.pos += 2;
|
|
5653
4984
|
return this.finishToken(types$1.arrow)
|
|
5654
4985
|
}
|
|
5655
4986
|
return this.finishOp(code === 61 ? types$1.eq : types$1.prefix, 1)
|
|
5656
4987
|
};
|
|
5657
|
-
|
|
5658
4988
|
pp.readToken_question = function() { // '?'
|
|
5659
4989
|
var ecmaVersion = this.options.ecmaVersion;
|
|
5660
4990
|
if (ecmaVersion >= 11) {
|
|
5661
4991
|
var next = this.input.charCodeAt(this.pos + 1);
|
|
5662
|
-
if (
|
|
4992
|
+
if (_next === 46) {
|
|
5663
4993
|
var next2 = this.input.charCodeAt(this.pos + 2);
|
|
5664
4994
|
if (next2 < 48 || next2 > 57) { return this.finishOp(types$1.questionDot, 2) }
|
|
5665
4995
|
}
|
|
5666
|
-
if (
|
|
4996
|
+
if (_next === 63) {
|
|
5667
4997
|
if (ecmaVersion >= 12) {
|
|
5668
4998
|
var next2$1 = this.input.charCodeAt(this.pos + 2);
|
|
5669
4999
|
if (next2$1 === 61) { return this.finishOp(types$1.assign, 3) }
|
|
@@ -5673,8 +5003,7 @@
|
|
|
5673
5003
|
}
|
|
5674
5004
|
return this.finishOp(types$1.question, 1)
|
|
5675
5005
|
};
|
|
5676
|
-
|
|
5677
|
-
pp.readToken_numberSign = function() { // '#'
|
|
5006
|
+
pp.readTokennumberSign = function() { // '#'
|
|
5678
5007
|
var ecmaVersion = this.options.ecmaVersion;
|
|
5679
5008
|
var code = 35; // '#'
|
|
5680
5009
|
if (ecmaVersion >= 13) {
|
|
@@ -5684,17 +5013,14 @@
|
|
|
5684
5013
|
return this.finishToken(types$1.privateId, this.readWord1())
|
|
5685
5014
|
}
|
|
5686
5015
|
}
|
|
5687
|
-
|
|
5688
5016
|
this.raise(this.pos, "Unexpected character '" + codePointToString(code) + "'");
|
|
5689
5017
|
};
|
|
5690
|
-
|
|
5691
5018
|
pp.getTokenFromCode = function(code) {
|
|
5692
5019
|
switch (code) {
|
|
5693
5020
|
// The interpretation of a dot depends on whether it is followed
|
|
5694
5021
|
// by a digit or another two dots.
|
|
5695
5022
|
case 46: // '.'
|
|
5696
5023
|
return this.readToken_dot()
|
|
5697
|
-
|
|
5698
5024
|
// Punctuation tokens.
|
|
5699
5025
|
case 40: ++this.pos; return this.finishToken(types$1.parenL)
|
|
5700
5026
|
case 41: ++this.pos; return this.finishToken(types$1.parenR)
|
|
@@ -5705,73 +5031,56 @@
|
|
|
5705
5031
|
case 123: ++this.pos; return this.finishToken(types$1.braceL)
|
|
5706
5032
|
case 125: ++this.pos; return this.finishToken(types$1.braceR)
|
|
5707
5033
|
case 58: ++this.pos; return this.finishToken(types$1.colon)
|
|
5708
|
-
|
|
5709
5034
|
case 96: // '`'
|
|
5710
5035
|
if (this.options.ecmaVersion < 6) { break }
|
|
5711
5036
|
++this.pos;
|
|
5712
5037
|
return this.finishToken(types$1.backQuote)
|
|
5713
|
-
|
|
5714
5038
|
case 48: // '0'
|
|
5715
5039
|
var next = this.input.charCodeAt(this.pos + 1);
|
|
5716
|
-
if (
|
|
5040
|
+
if (_next === 120 || next === 88) { return this.readRadixNumber(16) } // '0x', '0X' - hex number
|
|
5717
5041
|
if (this.options.ecmaVersion >= 6) {
|
|
5718
|
-
if (
|
|
5719
|
-
if (
|
|
5042
|
+
if (_next === 111 || next === 79) { return this.readRadixNumber(8) } // '0o', '0O' - octal number
|
|
5043
|
+
if (_next === 98 || next === 66) { return this.readRadixNumber(2) } // '0b', '0B' - binary number
|
|
5720
5044
|
}
|
|
5721
|
-
|
|
5722
5045
|
// Anything else beginning with a digit is an integer, octal
|
|
5723
5046
|
// number, or float.
|
|
5724
5047
|
case 49: case 50: case 51: case 52: case 53: case 54: case 55: case 56: case 57: // 1-9
|
|
5725
5048
|
return this.readNumber(false)
|
|
5726
|
-
|
|
5727
5049
|
// Quotes produce strings.
|
|
5728
5050
|
case 34: case 39: // '"', "'"
|
|
5729
5051
|
return this.readString(code)
|
|
5730
|
-
|
|
5731
5052
|
// Operators are parsed inline in tiny state machines. '=' (61) is
|
|
5732
5053
|
// often referred to. `finishOp` simply skips the amount of
|
|
5733
5054
|
// characters it is given as second argument, and returns a token
|
|
5734
5055
|
// of the type given by its first argument.
|
|
5735
5056
|
case 47: // '/'
|
|
5736
5057
|
return this.readToken_slash()
|
|
5737
|
-
|
|
5738
5058
|
case 37: case 42: // '%*'
|
|
5739
5059
|
return this.readToken_mult_modulo_exp(code)
|
|
5740
|
-
|
|
5741
5060
|
case 124: case 38: // '|&'
|
|
5742
5061
|
return this.readToken_pipe_amp(code)
|
|
5743
|
-
|
|
5744
5062
|
case 94: // '^'
|
|
5745
5063
|
return this.readToken_caret()
|
|
5746
|
-
|
|
5747
5064
|
case 43: case 45: // '+-'
|
|
5748
5065
|
return this.readToken_plus_min(code)
|
|
5749
|
-
|
|
5750
5066
|
case 60: case 62: // '<>'
|
|
5751
5067
|
return this.readToken_lt_gt(code)
|
|
5752
|
-
|
|
5753
5068
|
case 61: case 33: // '=!'
|
|
5754
5069
|
return this.readToken_eq_excl(code)
|
|
5755
|
-
|
|
5756
5070
|
case 63: // '?'
|
|
5757
5071
|
return this.readToken_question()
|
|
5758
|
-
|
|
5759
5072
|
case 126: // '~'
|
|
5760
5073
|
return this.finishOp(types$1.prefix, 1)
|
|
5761
|
-
|
|
5762
5074
|
case 35: // '#'
|
|
5763
|
-
return this.
|
|
5075
|
+
return this.readTokennumberSign()
|
|
5764
5076
|
}
|
|
5765
|
-
|
|
5766
5077
|
this.raise(this.pos, "Unexpected character '" + codePointToString(code) + "'");
|
|
5767
5078
|
};
|
|
5768
|
-
|
|
5769
5079
|
pp.finishOp = function(type, size) {
|
|
5770
5080
|
var str = this.input.slice(this.pos, this.pos + size);
|
|
5771
5081
|
this.pos += size;
|
|
5772
5082
|
return this.finishToken(type, str)
|
|
5773
5083
|
};
|
|
5774
|
-
|
|
5775
5084
|
pp.readRegexp = function() {
|
|
5776
5085
|
var escaped, inClass, start = this.pos;
|
|
5777
5086
|
for (;;) {
|
|
@@ -5791,13 +5100,11 @@
|
|
|
5791
5100
|
var flagsStart = this.pos;
|
|
5792
5101
|
var flags = this.readWord1();
|
|
5793
5102
|
if (this.containsEsc) { this.unexpected(flagsStart); }
|
|
5794
|
-
|
|
5795
5103
|
// Validate pattern
|
|
5796
5104
|
var state = this.regexpState || (this.regexpState = new RegExpValidationState(this));
|
|
5797
5105
|
state.reset(start, pattern, flags);
|
|
5798
5106
|
this.validateRegExpFlags(state);
|
|
5799
5107
|
this.validateRegExpPattern(state);
|
|
5800
|
-
|
|
5801
5108
|
// Create Literal#value property value.
|
|
5802
5109
|
var value = null;
|
|
5803
5110
|
try {
|
|
@@ -5806,27 +5113,21 @@
|
|
|
5806
5113
|
// ESTree requires null if it failed to instantiate RegExp object.
|
|
5807
5114
|
// https://github.com/estree/estree/blob/a27003adf4fd7bfad44de9cef372a2eacd527b1c/es5.md#regexpliteral
|
|
5808
5115
|
}
|
|
5809
|
-
|
|
5810
5116
|
return this.finishToken(types$1.regexp, {pattern: pattern, flags: flags, value: value})
|
|
5811
5117
|
};
|
|
5812
|
-
|
|
5813
5118
|
// Read an integer in the given radix. Return null if zero digits
|
|
5814
5119
|
// were read, the integer value otherwise. When `len` is given, this
|
|
5815
5120
|
// will return `null` unless the integer has exactly `len` digits.
|
|
5816
|
-
|
|
5817
5121
|
pp.readInt = function(radix, len, maybeLegacyOctalNumericLiteral) {
|
|
5818
5122
|
// `len` is used for character escape sequences. In that case, disallow separators.
|
|
5819
5123
|
var allowSeparators = this.options.ecmaVersion >= 12 && len === undefined;
|
|
5820
|
-
|
|
5821
5124
|
// `maybeLegacyOctalNumericLiteral` is true if it doesn't have prefix (0x,0o,0b)
|
|
5822
5125
|
// and isn't fraction part nor exponent part. In that case, if the first digit
|
|
5823
5126
|
// is zero then disallow separators.
|
|
5824
5127
|
var isLegacyOctalNumericLiteral = maybeLegacyOctalNumericLiteral && this.input.charCodeAt(this.pos) === 48;
|
|
5825
|
-
|
|
5826
5128
|
var start = this.pos, total = 0, lastCode = 0;
|
|
5827
5129
|
for (var i = 0, e = len == null ? Infinity : len; i < e; ++i, ++this.pos) {
|
|
5828
5130
|
var code = this.input.charCodeAt(this.pos), val = (void 0);
|
|
5829
|
-
|
|
5830
5131
|
if (allowSeparators && code === 95) {
|
|
5831
5132
|
if (isLegacyOctalNumericLiteral) { this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"); }
|
|
5832
5133
|
if (lastCode === 95) { this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"); }
|
|
@@ -5834,7 +5135,6 @@
|
|
|
5834
5135
|
lastCode = code;
|
|
5835
5136
|
continue
|
|
5836
5137
|
}
|
|
5837
|
-
|
|
5838
5138
|
if (code >= 97) { val = code - 97 + 10; } // a
|
|
5839
5139
|
else if (code >= 65) { val = code - 65 + 10; } // A
|
|
5840
5140
|
else if (code >= 48 && code <= 57) { val = code - 48; } // 0-9
|
|
@@ -5843,31 +5143,24 @@
|
|
|
5843
5143
|
lastCode = code;
|
|
5844
5144
|
total = total * radix + val;
|
|
5845
5145
|
}
|
|
5846
|
-
|
|
5847
5146
|
if (allowSeparators && lastCode === 95) { this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"); }
|
|
5848
5147
|
if (this.pos === start || len != null && this.pos - start !== len) { return null }
|
|
5849
|
-
|
|
5850
5148
|
return total
|
|
5851
5149
|
};
|
|
5852
|
-
|
|
5853
5150
|
function stringToNumber(str, isLegacyOctalNumericLiteral) {
|
|
5854
5151
|
if (isLegacyOctalNumericLiteral) {
|
|
5855
5152
|
return parseInt(str, 8)
|
|
5856
5153
|
}
|
|
5857
|
-
|
|
5858
5154
|
// `parseFloat(value)` stops parsing at the first numeric separator then returns a wrong value.
|
|
5859
5155
|
return parseFloat(str.replace(/_/g, ""))
|
|
5860
5156
|
}
|
|
5861
|
-
|
|
5862
5157
|
function stringToBigInt(str) {
|
|
5863
5158
|
if (typeof BigInt !== "function") {
|
|
5864
5159
|
return null
|
|
5865
5160
|
}
|
|
5866
|
-
|
|
5867
5161
|
// `BigInt(value)` throws syntax error if the string contains numeric separators.
|
|
5868
5162
|
return BigInt(str.replace(/_/g, ""))
|
|
5869
5163
|
}
|
|
5870
|
-
|
|
5871
5164
|
pp.readRadixNumber = function(radix) {
|
|
5872
5165
|
var start = this.pos;
|
|
5873
5166
|
this.pos += 2; // 0x
|
|
@@ -5879,9 +5172,7 @@
|
|
|
5879
5172
|
} else if (isIdentifierStart(this.fullCharCodeAtPos())) { this.raise(this.pos, "Identifier directly after number"); }
|
|
5880
5173
|
return this.finishToken(types$1.num, val)
|
|
5881
5174
|
};
|
|
5882
|
-
|
|
5883
5175
|
// Read an integer, octal integer, or floating-point number.
|
|
5884
|
-
|
|
5885
5176
|
pp.readNumber = function(startsWithDot) {
|
|
5886
5177
|
var start = this.pos;
|
|
5887
5178
|
if (!startsWithDot && this.readInt(10, undefined, true) === null) { this.raise(start, "Invalid number"); }
|
|
@@ -5895,27 +5186,23 @@
|
|
|
5895
5186
|
return this.finishToken(types$1.num, val$1)
|
|
5896
5187
|
}
|
|
5897
5188
|
if (octal && /[89]/.test(this.input.slice(start, this.pos))) { octal = false; }
|
|
5898
|
-
if (
|
|
5189
|
+
if (_next === 46 && !octal) { // '.'
|
|
5899
5190
|
++this.pos;
|
|
5900
5191
|
this.readInt(10);
|
|
5901
5192
|
next = this.input.charCodeAt(this.pos);
|
|
5902
5193
|
}
|
|
5903
5194
|
if ((next === 69 || next === 101) && !octal) { // 'eE'
|
|
5904
5195
|
next = this.input.charCodeAt(++this.pos);
|
|
5905
|
-
if (
|
|
5196
|
+
if (_next === 43 || next === 45) { ++this.pos; } // '+-'
|
|
5906
5197
|
if (this.readInt(10) === null) { this.raise(start, "Invalid number"); }
|
|
5907
5198
|
}
|
|
5908
5199
|
if (isIdentifierStart(this.fullCharCodeAtPos())) { this.raise(this.pos, "Identifier directly after number"); }
|
|
5909
|
-
|
|
5910
5200
|
var val = stringToNumber(this.input.slice(start, this.pos), octal);
|
|
5911
5201
|
return this.finishToken(types$1.num, val)
|
|
5912
5202
|
};
|
|
5913
|
-
|
|
5914
5203
|
// Read a string value, interpreting backslash-escapes.
|
|
5915
|
-
|
|
5916
5204
|
pp.readCodePoint = function() {
|
|
5917
5205
|
var ch = this.input.charCodeAt(this.pos), code;
|
|
5918
|
-
|
|
5919
5206
|
if (ch === 123) { // '{'
|
|
5920
5207
|
if (this.options.ecmaVersion < 6) { this.unexpected(); }
|
|
5921
5208
|
var codePos = ++this.pos;
|
|
@@ -5927,7 +5214,6 @@
|
|
|
5927
5214
|
}
|
|
5928
5215
|
return code
|
|
5929
5216
|
};
|
|
5930
|
-
|
|
5931
5217
|
pp.readString = function(quote) {
|
|
5932
5218
|
var out = "", chunkStart = ++this.pos;
|
|
5933
5219
|
for (;;) {
|
|
@@ -5953,11 +5239,8 @@
|
|
|
5953
5239
|
out += this.input.slice(chunkStart, this.pos++);
|
|
5954
5240
|
return this.finishToken(types$1.string, out)
|
|
5955
5241
|
};
|
|
5956
|
-
|
|
5957
5242
|
// Reads template string tokens.
|
|
5958
|
-
|
|
5959
5243
|
var INVALID_TEMPLATE_ESCAPE_ERROR = {};
|
|
5960
|
-
|
|
5961
5244
|
pp.tryReadTemplateToken = function() {
|
|
5962
5245
|
this.inTemplateElement = true;
|
|
5963
5246
|
try {
|
|
@@ -5969,10 +5252,8 @@
|
|
|
5969
5252
|
throw err
|
|
5970
5253
|
}
|
|
5971
5254
|
}
|
|
5972
|
-
|
|
5973
5255
|
this.inTemplateElement = false;
|
|
5974
5256
|
};
|
|
5975
|
-
|
|
5976
5257
|
pp.invalidStringToken = function(position, message) {
|
|
5977
5258
|
if (this.inTemplateElement && this.options.ecmaVersion >= 9) {
|
|
5978
5259
|
throw INVALID_TEMPLATE_ESCAPE_ERROR
|
|
@@ -5980,7 +5261,6 @@
|
|
|
5980
5261
|
this.raise(position, message);
|
|
5981
5262
|
}
|
|
5982
5263
|
};
|
|
5983
|
-
|
|
5984
5264
|
pp.readTmplToken = function() {
|
|
5985
5265
|
var out = "", chunkStart = this.pos;
|
|
5986
5266
|
for (;;) {
|
|
@@ -6026,7 +5306,6 @@
|
|
|
6026
5306
|
}
|
|
6027
5307
|
}
|
|
6028
5308
|
};
|
|
6029
|
-
|
|
6030
5309
|
// Reads a template token to search for the end, without validating any escape sequences
|
|
6031
5310
|
pp.readInvalidTemplateToken = function() {
|
|
6032
5311
|
for (; this.pos < this.input.length; this.pos++) {
|
|
@@ -6034,13 +5313,11 @@
|
|
|
6034
5313
|
case "\\":
|
|
6035
5314
|
++this.pos;
|
|
6036
5315
|
break
|
|
6037
|
-
|
|
6038
5316
|
case "$":
|
|
6039
5317
|
if (this.input[this.pos + 1] !== "{") { break }
|
|
6040
5318
|
// fall through
|
|
6041
5319
|
case "`":
|
|
6042
5320
|
return this.finishToken(types$1.invalidTemplate, this.input.slice(this.start, this.pos))
|
|
6043
|
-
|
|
6044
5321
|
case "\r":
|
|
6045
5322
|
if (this.input[this.pos + 1] === "\n") { ++this.pos; }
|
|
6046
5323
|
// fall through
|
|
@@ -6052,9 +5329,7 @@
|
|
|
6052
5329
|
}
|
|
6053
5330
|
this.raise(this.start, "Unterminated template");
|
|
6054
5331
|
};
|
|
6055
|
-
|
|
6056
5332
|
// Used to read escaped characters
|
|
6057
|
-
|
|
6058
5333
|
pp.readEscapedChar = function(inTemplate) {
|
|
6059
5334
|
var ch = this.input.charCodeAt(++this.pos);
|
|
6060
5335
|
++this.pos;
|
|
@@ -6081,7 +5356,6 @@
|
|
|
6081
5356
|
}
|
|
6082
5357
|
if (inTemplate) {
|
|
6083
5358
|
var codePos = this.pos - 1;
|
|
6084
|
-
|
|
6085
5359
|
this.invalidStringToken(
|
|
6086
5360
|
codePos,
|
|
6087
5361
|
"Invalid escape sequence in template string"
|
|
@@ -6116,22 +5390,18 @@
|
|
|
6116
5390
|
return String.fromCharCode(ch)
|
|
6117
5391
|
}
|
|
6118
5392
|
};
|
|
6119
|
-
|
|
6120
5393
|
// Used to read character escape sequences ('\x', '\u', '\U').
|
|
6121
|
-
|
|
6122
5394
|
pp.readHexChar = function(len) {
|
|
6123
5395
|
var codePos = this.pos;
|
|
6124
5396
|
var n = this.readInt(16, len);
|
|
6125
5397
|
if (n === null) { this.invalidStringToken(codePos, "Bad character escape sequence"); }
|
|
6126
5398
|
return n
|
|
6127
5399
|
};
|
|
6128
|
-
|
|
6129
5400
|
// Read an identifier, and return it as a string. Sets `this.containsEsc`
|
|
6130
5401
|
// to whether the word contained a '\u' escape.
|
|
6131
5402
|
//
|
|
6132
5403
|
// Incrementally adds only escaped chars, adding other chunks as-is
|
|
6133
5404
|
// as a micro-optimization.
|
|
6134
|
-
|
|
6135
5405
|
pp.readWord1 = function() {
|
|
6136
5406
|
this.containsEsc = false;
|
|
6137
5407
|
var word = "", first = true, chunkStart = this.pos;
|
|
@@ -6159,10 +5429,8 @@
|
|
|
6159
5429
|
}
|
|
6160
5430
|
return word + this.input.slice(chunkStart, this.pos)
|
|
6161
5431
|
};
|
|
6162
|
-
|
|
6163
5432
|
// Read an identifier or keyword token. Will check for reserved
|
|
6164
5433
|
// words when necessary.
|
|
6165
|
-
|
|
6166
5434
|
pp.readWord = function() {
|
|
6167
5435
|
var word = this.readWord1();
|
|
6168
5436
|
var type = types$1.name;
|
|
@@ -6171,7 +5439,6 @@
|
|
|
6171
5439
|
}
|
|
6172
5440
|
return this.finishToken(type, word)
|
|
6173
5441
|
};
|
|
6174
|
-
|
|
6175
5442
|
// Acorn is a tiny, fast JavaScript parser written in JavaScript.
|
|
6176
5443
|
//
|
|
6177
5444
|
// Acorn was written by Marijn Haverbeke, Ingvar Stepanyan, and
|
|
@@ -6185,10 +5452,7 @@
|
|
|
6185
5452
|
// Please use the [github bug tracker][ghbt] to report issues.
|
|
6186
5453
|
//
|
|
6187
5454
|
// [ghbt]: https://github.com/acornjs/acorn/issues
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
5455
|
var version = "8.15.0";
|
|
6191
|
-
|
|
6192
5456
|
Parser.acorn = {
|
|
6193
5457
|
Parser: Parser,
|
|
6194
5458
|
version: version,
|
|
@@ -6210,32 +5474,25 @@
|
|
|
6210
5474
|
lineBreakG: lineBreakG,
|
|
6211
5475
|
nonASCIIwhitespace: nonASCIIwhitespace
|
|
6212
5476
|
};
|
|
6213
|
-
|
|
6214
5477
|
// The main exported interface (under `self.acorn` when in the
|
|
6215
5478
|
// browser) is a `parse` function that takes a code string and returns
|
|
6216
5479
|
// an abstract syntax tree as specified by the [ESTree spec][estree].
|
|
6217
5480
|
//
|
|
6218
5481
|
// [estree]: https://github.com/estree/estree
|
|
6219
|
-
|
|
6220
5482
|
function parse(input, options) {
|
|
6221
5483
|
return Parser.parse(input, options)
|
|
6222
5484
|
}
|
|
6223
|
-
|
|
6224
5485
|
// This function tries to parse a single expression at a given
|
|
6225
5486
|
// offset in a string. Useful for parsing mixed-language formats
|
|
6226
5487
|
// that embed JavaScript expressions.
|
|
6227
|
-
|
|
6228
5488
|
function parseExpressionAt(input, pos, options) {
|
|
6229
5489
|
return Parser.parseExpressionAt(input, pos, options)
|
|
6230
5490
|
}
|
|
6231
|
-
|
|
6232
5491
|
// Acorn is organized as a tokenizer and a recursive-descent parser.
|
|
6233
5492
|
// The `tokenizer` export provides an interface to the tokenizer.
|
|
6234
|
-
|
|
6235
5493
|
function tokenizer(input, options) {
|
|
6236
5494
|
return Parser.tokenizer(input, options)
|
|
6237
5495
|
}
|
|
6238
|
-
|
|
6239
5496
|
exports.Node = Node;
|
|
6240
5497
|
exports.Parser = Parser;
|
|
6241
5498
|
exports.Position = Position;
|
|
@@ -6258,5 +5515,4 @@
|
|
|
6258
5515
|
exports.tokTypes = types$1;
|
|
6259
5516
|
exports.tokenizer = tokenizer;
|
|
6260
5517
|
exports.version = version;
|
|
6261
|
-
|
|
6262
|
-
}));
|
|
5518
|
+
}));
|