dexbot 1.4.15 → 1.4.17
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/CHANGELOG.md +5013 -0
- package/README.md +18 -14
- package/analysis/README.md +468 -0
- package/analysis/ama_fitting/README.md +258 -0
- package/analysis/ama_fitting/analyze_ama_price_changes.ts +151 -0
- package/analysis/ama_fitting/analyze_lambda_vs_slow.ts +407 -0
- package/analysis/ama_fitting/calibrate_convergence_er.ts +199 -0
- package/analysis/ama_fitting/fetch_lp_candles.ts +187 -0
- package/analysis/ama_fitting/generate_unified_comparison_chart.ts +269 -0
- package/analysis/ama_fitting/optimizer_high_resolution.ts +792 -0
- package/analysis/ama_fitting/package.json +12 -0
- package/analysis/analyze_derivatives.ts +318 -0
- package/analysis/analyze_dynamic_weight.ts +219 -0
- package/analysis/analyze_kalman.ts +126 -0
- package/analysis/analyze_regime.ts +156 -0
- package/analysis/analyze_regime_windows.ts +460 -0
- package/analysis/analyze_risk_profile.ts +199 -0
- package/analysis/analyze_trade_heatmap.ts +362 -0
- package/analysis/analyze_volatility.ts +182 -0
- package/analysis/bot_fitting/README.md +124 -0
- package/analysis/bot_fitting/backtest_ama_sweep.ts +816 -0
- package/analysis/bot_fitting/backtest_bot_fitting.ts +421 -0
- package/analysis/bot_fitting/shared_utils.ts +46 -0
- package/analysis/bot_key_utils.ts +154 -0
- package/analysis/bot_usage/discover_bot_accounts.ts +579 -0
- package/analysis/bot_usage/kibana_bot_queries.ts +427 -0
- package/analysis/chart_css.ts +60 -0
- package/analysis/chart_ui.ts +106 -0
- package/{dist/analysis/chart_utils.js → analysis/chart_utils.ts} +21 -13
- package/analysis/derivative_chart_generator.ts +874 -0
- package/analysis/math_utils.ts +60 -0
- package/analysis/price_sources.ts +130 -0
- package/analysis/resolve_source.ts +89 -0
- package/analysis/trade_profitability.ts +1412 -0
- package/analysis/tradingview/README.md +161 -0
- package/analysis/tradingview/analyze_tradingview.ts +160 -0
- package/{dist/analysis/tradingview/tradingview_uplot_chart_generator.js → analysis/tradingview/tradingview_uplot_chart_generator.ts} +40 -36
- package/analysis/trend_detection/DYNAMIC_WEIGHT_RESEARCH.md +437 -0
- package/analysis/trend_detection/README.md +27 -0
- package/analysis/trend_detection/SIGNAL_DOCUMENTATION.md +403 -0
- package/analysis/trend_detection/derivative_analyzer.ts +1050 -0
- package/analysis/trend_detection/dynamic_weight_chart_generator.ts +1376 -0
- package/analysis/trend_detection/hurst_analyzer.ts +7 -0
- package/analysis/trend_detection/kalman_chart_generator.ts +371 -0
- package/analysis/trend_detection/kalman_trend_analyzer.ts +9 -0
- package/analysis/trend_detection/kalman_velocity_smoothing.ts +7 -0
- package/analysis/trend_detection/package.json +23 -0
- package/analysis/trend_detection/permutation_entropy_analyzer.ts +7 -0
- package/analysis/trend_detection/regime_chart_generator.ts +319 -0
- package/analysis/trend_detection/tests/test_kalman_trend.ts +153 -0
- package/analysis/trend_detection/tests/test_kalman_velocity_smoothing.ts +64 -0
- package/analysis/trend_detection/volatility_chart_generator.ts +655 -0
- package/analysis/tsconfig.json +29 -0
- package/analysis/uplot/index.d.ts +128 -0
- package/analysis/uplot/uPlot.iife.min.js +2 -0
- package/analysis/uplot/uPlot.min.css +1 -0
- package/claw/README.md +4 -0
- package/claw/examples/claw_profiles_example.ts +1 -1
- package/claw/examples/memu_integration_example.ts +1 -1
- package/claw/modules/bitshares_client.ts +47 -7
- package/claw/modules/chain_actions.ts +10 -1
- package/claw/modules/chain_broadcast.ts +4 -5
- package/claw/modules/claw_infra.ts +13 -3
- package/claw/modules/claw_launcher.ts +41 -7
- package/claw/modules/claw_manifest.ts +9 -1
- package/claw/modules/claw_skill_md.ts +34 -13
- package/claw/modules/credit_runtime_adapter.ts +30 -12
- package/claw/modules/decision_loop.ts +10 -2
- package/claw/modules/dexbot_profiles.ts +5 -25
- package/claw/modules/feed_price_source.ts +1 -1
- package/claw/modules/honest_ecosystem.ts +32 -8
- package/claw/modules/kibana_price_source.ts +6 -2
- package/claw/modules/launcher_mode_detector.ts +10 -13
- package/claw/modules/launcher_paths.ts +4 -1
- package/claw/modules/liquidity_pools.ts +2 -2
- package/claw/modules/mcp_utils.ts +46 -5
- package/claw/modules/memu_bridge.ts +17 -1
- package/claw/modules/position_discovery.ts +1 -1
- package/claw/modules/position_health.ts +1 -1
- package/claw/modules/position_manager.ts +39 -13
- package/claw/modules/skill_utils.ts +4 -8
- package/claw/modules/types.ts +20 -1
- package/claw/package.json +1 -1
- package/claw/runtimes/openclaw-plugin/openclaw.plugin.json +1 -1
- package/claw/runtimes/openclaw-plugin/package.json +1 -1
- package/claw/scripts/claw_bridge.ts +22 -3
- package/claw/scripts/claw_mcp_server.ts +28 -13
- package/claw/scripts/honest_assets_report.ts +3 -1
- package/claw/scripts/memu_mcp_server.ts +15 -4
- package/claw/tests/test_claw_data_flow.ts +4 -2
- package/claw/tests/test_claw_mcp_transport.ts +2 -2
- package/claw/tests/test_claw_regressions.ts +5 -0
- package/claw/tests/test_claw_skill_generation.ts +3 -3
- package/claw/tests/test_nullclaw_tmp_integration.ts +1 -1
- package/claw/tsconfig.json +1 -2
- package/dist/bot.js +1 -1
- package/dist/bot.js.map +1 -1
- package/dist/credential-daemon.js +8 -8
- package/dist/credential-daemon.js.map +1 -1
- package/dist/market_adapter/core/market_adapter_service.d.ts.map +1 -1
- package/dist/market_adapter/core/market_adapter_service.js +9 -3
- package/dist/market_adapter/core/market_adapter_service.js.map +1 -1
- package/dist/market_adapter/core/signals/hurst_analyzer.js +1 -1
- package/dist/market_adapter/core/signals/kalman_trend_analyzer.js +1 -1
- package/dist/market_adapter/core/signals/permutation_entropy_analyzer.js +1 -1
- package/dist/market_adapter/core/strategies/ama_slope_model.js +1 -1
- package/dist/market_adapter/core/strategies/collateral_manager.js +1 -1
- package/dist/market_adapter/core/strategies/regime_gate.js +1 -1
- package/dist/market_adapter/inputs/fetch_cex_synthetic_data.js +1 -2
- package/dist/market_adapter/inputs/fetch_cex_synthetic_data.js.map +1 -1
- package/dist/market_adapter/inputs/fetch_lp_data.d.ts.map +1 -1
- package/dist/market_adapter/inputs/fetch_lp_data.js +2 -3
- package/dist/market_adapter/inputs/fetch_lp_data.js.map +1 -1
- package/dist/market_adapter/lp_chart_core.js +1 -1
- package/dist/market_adapter/market_adapter.d.ts.map +1 -1
- package/dist/market_adapter/market_adapter.js +3 -2
- package/dist/market_adapter/market_adapter.js.map +1 -1
- package/dist/market_adapter/utils/data_discovery.js +2 -2
- package/dist/market_adapter/utils/data_discovery.js.map +1 -1
- package/dist/modules/account_bots.d.ts.map +1 -1
- package/dist/modules/account_bots.js +7 -17
- package/dist/modules/account_bots.js.map +1 -1
- package/dist/modules/account_orders.d.ts +8 -1
- package/dist/modules/account_orders.d.ts.map +1 -1
- package/dist/modules/account_orders.js +3 -11
- package/dist/modules/account_orders.js.map +1 -1
- package/dist/modules/authority_resolver.js +1 -1
- package/dist/modules/authority_resolver.js.map +1 -1
- package/dist/modules/bitshares-native/crypto/ecc.browser.d.ts +1 -2
- package/dist/modules/bitshares-native/crypto/ecc.browser.d.ts.map +1 -1
- package/dist/modules/bitshares-native/crypto/ecc.browser.js +19 -58
- package/dist/modules/bitshares-native/crypto/ecc.browser.js.map +1 -1
- package/dist/modules/bitshares-native/crypto/ecc.d.ts +2 -9
- package/dist/modules/bitshares-native/crypto/ecc.d.ts.map +1 -1
- package/dist/modules/bitshares-native/crypto/ecc.js +6 -145
- package/dist/modules/bitshares-native/crypto/ecc.js.map +1 -1
- package/dist/modules/bitshares-native/serial/chain_constants.d.ts +1 -17
- package/dist/modules/bitshares-native/serial/chain_constants.d.ts.map +1 -1
- package/dist/modules/bitshares-native/serial/chain_constants.js +1 -30
- package/dist/modules/bitshares-native/serial/chain_constants.js.map +1 -1
- package/dist/modules/bitshares-native/serial/types.d.ts +1 -30
- package/dist/modules/bitshares-native/serial/types.d.ts.map +1 -1
- package/dist/modules/bitshares-native/serial/types.js +1 -169
- package/dist/modules/bitshares-native/serial/types.js.map +1 -1
- package/dist/modules/bitshares-native/signing_client.js +1 -1
- package/dist/modules/bitshares-native/signing_client.js.map +1 -1
- package/dist/modules/bitshares-native/subscriptions.js +7 -7
- package/dist/modules/bitshares-native/subscriptions.js.map +1 -1
- package/dist/modules/bitshares-native/transport.js +1 -1
- package/dist/modules/bitshares-native/transport.js.map +1 -1
- package/dist/modules/bitshares-native/tx/builder.d.ts +1 -6
- package/dist/modules/bitshares-native/tx/builder.d.ts.map +1 -1
- package/dist/modules/bitshares-native/tx/builder.js +2 -11
- package/dist/modules/bitshares-native/tx/builder.js.map +1 -1
- package/dist/modules/bitshares-native/tx/tx_cache.js +1 -1
- package/dist/modules/bitshares-native/tx/tx_cache.js.map +1 -1
- package/dist/modules/bitshares_client.js +1 -1
- package/dist/modules/bitshares_client.js.map +1 -1
- package/dist/modules/bot_settings.js +1 -1
- package/dist/modules/bot_settings.js.map +1 -1
- package/dist/modules/chain_keys.d.ts +2 -2
- package/dist/modules/chain_keys.d.ts.map +1 -1
- package/dist/modules/chain_keys.js +9 -3
- package/dist/modules/chain_keys.js.map +1 -1
- package/dist/modules/chain_orders.d.ts.map +1 -1
- package/dist/modules/chain_orders.js +7 -23
- package/dist/modules/chain_orders.js.map +1 -1
- package/dist/modules/constants.js +1 -1
- package/dist/modules/constants.js.map +1 -1
- package/dist/modules/cr_planner.js +3 -3
- package/dist/modules/cr_planner.js.map +1 -1
- package/dist/modules/credential_policy.d.ts.map +1 -1
- package/dist/modules/credential_policy.js +6 -12
- package/dist/modules/credential_policy.js.map +1 -1
- package/dist/modules/credential_runtime.d.ts +0 -3
- package/dist/modules/credential_runtime.d.ts.map +1 -1
- package/dist/modules/credential_runtime.js +5 -27
- package/dist/modules/credential_runtime.js.map +1 -1
- package/dist/modules/credit_runtime.d.ts.map +1 -1
- package/dist/modules/credit_runtime.js +18 -27
- package/dist/modules/credit_runtime.js.map +1 -1
- package/dist/modules/crypto/pure_secp256k1.d.ts +4 -1
- package/dist/modules/crypto/pure_secp256k1.d.ts.map +1 -1
- package/dist/modules/crypto/pure_secp256k1.js +1 -1
- package/dist/modules/crypto/pure_secp256k1.js.map +1 -1
- package/dist/modules/crypto/sync.d.ts +0 -3
- package/dist/modules/crypto/sync.d.ts.map +1 -1
- package/dist/modules/crypto/sync.js +0 -3
- package/dist/modules/crypto/sync.js.map +1 -1
- package/dist/modules/dexbot_class.d.ts +9 -9
- package/dist/modules/dexbot_class.js +9 -9
- package/dist/modules/dexbot_cow_runtime.d.ts +3 -3
- package/dist/modules/dexbot_cow_runtime.d.ts.map +1 -1
- package/dist/modules/dexbot_cow_runtime.js +4 -9
- package/dist/modules/dexbot_cow_runtime.js.map +1 -1
- package/dist/modules/dexbot_fill_runtime.d.ts +10 -10
- package/dist/modules/dexbot_fill_runtime.js +10 -10
- package/dist/modules/dexbot_maintenance_runtime.d.ts +7 -7
- package/dist/modules/dexbot_maintenance_runtime.d.ts.map +1 -1
- package/dist/modules/dexbot_maintenance_runtime.js +16 -15
- package/dist/modules/dexbot_maintenance_runtime.js.map +1 -1
- package/dist/modules/env.d.ts +0 -1
- package/dist/modules/env.d.ts.map +1 -1
- package/dist/modules/env.js +0 -34
- package/dist/modules/env.js.map +1 -1
- package/dist/modules/graceful_shutdown.js +1 -1
- package/dist/modules/graceful_shutdown.js.map +1 -1
- package/dist/modules/key_store.js +1 -1
- package/dist/modules/key_store.js.map +1 -1
- package/dist/modules/launcher/credential_daemon.d.ts.map +1 -1
- package/dist/modules/launcher/credential_daemon.js +3 -3
- package/dist/modules/launcher/credential_daemon.js.map +1 -1
- package/dist/modules/launcher/launch_modes.d.ts +1 -2
- package/dist/modules/launcher/launch_modes.d.ts.map +1 -1
- package/dist/modules/launcher/launch_modes.js +1 -2
- package/dist/modules/launcher/launch_modes.js.map +1 -1
- package/dist/modules/launcher/market_adapter_runtime.d.ts +1 -2
- package/dist/modules/launcher/market_adapter_runtime.d.ts.map +1 -1
- package/dist/modules/launcher/market_adapter_runtime.js +1 -4
- package/dist/modules/launcher/market_adapter_runtime.js.map +1 -1
- package/dist/modules/launcher/monolithic_runtime.d.ts +1 -2
- package/dist/modules/launcher/monolithic_runtime.d.ts.map +1 -1
- package/dist/modules/launcher/monolithic_runtime.js +3 -17
- package/dist/modules/launcher/monolithic_runtime.js.map +1 -1
- package/dist/modules/launcher/runtime_entry.d.ts +1 -2
- package/dist/modules/launcher/runtime_entry.d.ts.map +1 -1
- package/dist/modules/launcher/runtime_entry.js +1 -14
- package/dist/modules/launcher/runtime_entry.js.map +1 -1
- package/dist/modules/launcher/status_reporting.d.ts +1 -3
- package/dist/modules/launcher/status_reporting.d.ts.map +1 -1
- package/dist/modules/launcher/status_reporting.js +1 -10
- package/dist/modules/launcher/status_reporting.js.map +1 -1
- package/dist/modules/node_manager.d.ts.map +1 -1
- package/dist/modules/node_manager.js +4 -3
- package/dist/modules/node_manager.js.map +1 -1
- package/dist/modules/order/export.d.ts.map +1 -1
- package/dist/modules/order/export.js +4 -3
- package/dist/modules/order/export.js.map +1 -1
- package/dist/modules/order/format.d.ts +1 -10
- package/dist/modules/order/format.d.ts.map +1 -1
- package/dist/modules/order/format.js +1 -22
- package/dist/modules/order/format.js.map +1 -1
- package/dist/modules/order/grid.d.ts +19 -19
- package/dist/modules/order/grid.d.ts.map +1 -1
- package/dist/modules/order/grid.js +25 -25
- package/dist/modules/order/grid.js.map +1 -1
- package/dist/modules/order/grid_reconcile_internal.d.ts +1 -83
- package/dist/modules/order/grid_reconcile_internal.d.ts.map +1 -1
- package/dist/modules/order/grid_reconcile_internal.js +1 -1
- package/dist/modules/order/grid_reconcile_internal.js.map +1 -1
- package/dist/modules/order/manager.d.ts +15 -15
- package/dist/modules/order/manager.js +15 -15
- package/dist/modules/order/processed_fill_store.d.ts +1 -1
- package/dist/modules/order/processed_fill_store.js +1 -1
- package/dist/modules/order/sync_engine.d.ts +4 -4
- package/dist/modules/order/sync_engine.js +4 -4
- package/dist/modules/order/utils/math.d.ts +7 -2
- package/dist/modules/order/utils/math.d.ts.map +1 -1
- package/dist/modules/order/utils/math.js +10 -3
- package/dist/modules/order/utils/math.js.map +1 -1
- package/dist/modules/order/utils/order.js +3 -3
- package/dist/modules/order/utils/order.js.map +1 -1
- package/dist/modules/order/utils/system.d.ts +17 -1
- package/dist/modules/order/utils/system.d.ts.map +1 -1
- package/dist/modules/order/utils/system.js +56 -4
- package/dist/modules/order/utils/system.js.map +1 -1
- package/dist/modules/order/utils/validate.d.ts +3 -3
- package/dist/modules/order/utils/validate.d.ts.map +1 -1
- package/dist/modules/order/utils/validate.js +5 -5
- package/dist/modules/order/utils/validate.js.map +1 -1
- package/dist/modules/order/utils/withPoolRef.js +1 -1
- package/dist/modules/order/utils/withPoolRef.js.map +1 -1
- package/dist/modules/paths.d.ts +46 -15
- package/dist/modules/paths.d.ts.map +1 -1
- package/dist/modules/paths.js +145 -33
- package/dist/modules/paths.js.map +1 -1
- package/dist/modules/runtime.d.ts +1 -0
- package/dist/modules/runtime.d.ts.map +1 -1
- package/dist/modules/runtime_settings.d.ts.map +1 -1
- package/dist/modules/runtime_settings.js +26 -30
- package/dist/modules/runtime_settings.js.map +1 -1
- package/dist/modules/settings_merge.d.ts +7 -1
- package/dist/modules/settings_merge.d.ts.map +1 -1
- package/dist/modules/settings_merge.js +10 -6
- package/dist/modules/settings_merge.js.map +1 -1
- package/dist/modules/types.d.ts +0 -753
- package/dist/modules/types.d.ts.map +1 -1
- package/dist/modules/types.js +0 -15
- package/dist/modules/types.js.map +1 -1
- package/dist/modules/utils/base58check.js +4 -4
- package/dist/modules/utils/base58check.js.map +1 -1
- package/dist/modules/validate_profiles.d.ts +1 -11
- package/dist/modules/validate_profiles.d.ts.map +1 -1
- package/dist/modules/validate_profiles.js +1 -1
- package/dist/modules/validate_profiles.js.map +1 -1
- package/dist/pm2.js +3 -3
- package/dist/pm2.js.map +1 -1
- package/dist/scripts/update.d.ts +17 -5
- package/dist/scripts/update.d.ts.map +1 -1
- package/dist/scripts/update.js +420 -172
- package/dist/scripts/update.js.map +1 -1
- package/docs/BITSHARES_ONBOARDING.md +435 -0
- package/docs/COPY_ON_WRITE_MASTER_PLAN.md +514 -0
- package/docs/COW_INVARIANTS.md +309 -0
- package/docs/CREDENTIAL_SECURITY.md +450 -0
- package/docs/DEXBOT_COMPARISON.md +922 -0
- package/docs/EVOLUTION.md +210 -0
- package/docs/FUND_MOVEMENT_AND_ACCOUNTING.md +851 -0
- package/docs/GRID_RECALCULATION.md +624 -0
- package/docs/GRID_RECONCILE.md +259 -0
- package/docs/LOGGING.md +318 -0
- package/docs/MPA_CREDIT_USAGE.md +353 -0
- package/docs/README.md +199 -0
- package/docs/WORKFLOW.md +369 -0
- package/docs/architecture.md +1466 -0
- package/docs/developer_guide.md +1929 -0
- package/docs/docker.md +141 -0
- package/market_adapter/README.md +1003 -0
- package/modules/README.md +176 -0
- package/package.json +40 -5
- package/scripts/README.md +55 -32
- package/scripts/bots +18 -0
- package/scripts/clean-dist.js +9 -0
- package/scripts/create-bot-symlinks.sh +3 -3
- package/scripts/dexbot +17 -0
- package/scripts/git-viewer.sh +489 -0
- package/scripts/keys +18 -0
- package/scripts/lib/dexbot-paths.sh +71 -20
- package/scripts/pdev.sh +38 -0
- package/scripts/pm2 +17 -0
- package/scripts/pmain.sh +45 -0
- package/scripts/ptest.sh +26 -0
- package/scripts/repo-stats.html +480 -0
- package/scripts/unlock +17 -0
- package/scripts/update.js +13 -0
- package/tests/README.md +135 -0
- package/claw/data/positions.json +0 -148036
- package/claw/node_modules/.package-lock.json +0 -935
- package/claw/node_modules/@babel/runtime/LICENSE +0 -22
- package/claw/node_modules/@babel/runtime/README.md +0 -19
- package/claw/node_modules/@babel/runtime/helpers/AwaitValue.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/OverloadYield.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/applyDecs.js +0 -236
- package/claw/node_modules/@babel/runtime/helpers/applyDecs2203.js +0 -184
- package/claw/node_modules/@babel/runtime/helpers/applyDecs2203R.js +0 -191
- package/claw/node_modules/@babel/runtime/helpers/applyDecs2301.js +0 -222
- package/claw/node_modules/@babel/runtime/helpers/applyDecs2305.js +0 -133
- package/claw/node_modules/@babel/runtime/helpers/applyDecs2311.js +0 -124
- package/claw/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/arrayWithHoles.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/assertClassBrand.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/assertThisInitialized.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js +0 -24
- package/claw/node_modules/@babel/runtime/helpers/asyncIterator.js +0 -45
- package/claw/node_modules/@babel/runtime/helpers/asyncToGenerator.js +0 -26
- package/claw/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/callSuper.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/checkInRHS.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/classCallCheck.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classNameTDZError.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldGet2.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldSet2.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classPrivateGetter.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/classPrivateSetter.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/construct.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/createClass.js +0 -13
- package/claw/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +0 -50
- package/claw/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js +0 -19
- package/claw/node_modules/@babel/runtime/helpers/createSuper.js +0 -16
- package/claw/node_modules/@babel/runtime/helpers/decorate.js +0 -250
- package/claw/node_modules/@babel/runtime/helpers/defaults.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/defineAccessor.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js +0 -12
- package/claw/node_modules/@babel/runtime/helpers/defineProperty.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/dispose.js +0 -28
- package/claw/node_modules/@babel/runtime/helpers/esm/AwaitValue.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/OverloadYield.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecs.js +0 -236
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js +0 -184
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js +0 -191
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js +0 -222
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js +0 -133
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js +0 -124
- package/claw/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/assertClassBrand.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js +0 -24
- package/claw/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +0 -45
- package/claw/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +0 -26
- package/claw/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/callSuper.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/checkInRHS.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/construct.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -13
- package/claw/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +0 -50
- package/claw/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js +0 -19
- package/claw/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -16
- package/claw/node_modules/@babel/runtime/helpers/esm/decorate.js +0 -250
- package/claw/node_modules/@babel/runtime/helpers/esm/defaults.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/esm/defineAccessor.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js +0 -12
- package/claw/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/esm/dispose.js +0 -28
- package/claw/node_modules/@babel/runtime/helpers/esm/extends.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/esm/get.js +0 -11
- package/claw/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/identity.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/importDeferProxy.js +0 -27
- package/claw/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -14
- package/claw/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/instanceof.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +0 -22
- package/claw/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -28
- package/claw/node_modules/@babel/runtime/helpers/esm/jsx.js +0 -22
- package/claw/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/nullishReceiverError.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/objectSpread.js +0 -14
- package/claw/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -23
- package/claw/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -13
- package/claw/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/esm/package.json +0 -3
- package/claw/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/esm/readOnlyError.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/regenerator.js +0 -89
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js +0 -33
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js +0 -22
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +0 -77
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorValues.js +0 -19
- package/claw/node_modules/@babel/runtime/helpers/esm/set.js +0 -22
- package/claw/node_modules/@babel/runtime/helpers/esm/setFunctionName.js +0 -12
- package/claw/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/esm/superPropBase.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/superPropGet.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/esm/superPropSet.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/tdz.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/temporalRef.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js +0 -2
- package/claw/node_modules/@babel/runtime/helpers/esm/toArray.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -12
- package/claw/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/toSetter.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/esm/tsRewriteRelativeImportExtensions.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/esm/using.js +0 -12
- package/claw/node_modules/@babel/runtime/helpers/esm/usingCtx.js +0 -59
- package/claw/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +0 -56
- package/claw/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +0 -27
- package/claw/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +0 -52
- package/claw/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/extends.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/get.js +0 -11
- package/claw/node_modules/@babel/runtime/helpers/getPrototypeOf.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/identity.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/importDeferProxy.js +0 -27
- package/claw/node_modules/@babel/runtime/helpers/inherits.js +0 -14
- package/claw/node_modules/@babel/runtime/helpers/inheritsLoose.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/initializerDefineProperty.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/initializerWarningHelper.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/instanceof.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/interopRequireDefault.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +0 -22
- package/claw/node_modules/@babel/runtime/helpers/isNativeFunction.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/iterableToArray.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +0 -28
- package/claw/node_modules/@babel/runtime/helpers/jsx.js +0 -22
- package/claw/node_modules/@babel/runtime/helpers/maybeArrayLike.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/newArrowCheck.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/nonIterableRest.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/nonIterableSpread.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/nullishReceiverError.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/objectSpread.js +0 -14
- package/claw/node_modules/@babel/runtime/helpers/objectSpread2.js +0 -23
- package/claw/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +0 -13
- package/claw/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/readOnlyError.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/regenerator.js +0 -89
- package/claw/node_modules/@babel/runtime/helpers/regeneratorAsync.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js +0 -33
- package/claw/node_modules/@babel/runtime/helpers/regeneratorDefine.js +0 -22
- package/claw/node_modules/@babel/runtime/helpers/regeneratorKeys.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +0 -77
- package/claw/node_modules/@babel/runtime/helpers/regeneratorValues.js +0 -19
- package/claw/node_modules/@babel/runtime/helpers/set.js +0 -22
- package/claw/node_modules/@babel/runtime/helpers/setFunctionName.js +0 -12
- package/claw/node_modules/@babel/runtime/helpers/setPrototypeOf.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/slicedToArray.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/superPropBase.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/superPropGet.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/superPropSet.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/tdz.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/temporalRef.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/temporalUndefined.js +0 -2
- package/claw/node_modules/@babel/runtime/helpers/toArray.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/toConsumableArray.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/toPrimitive.js +0 -12
- package/claw/node_modules/@babel/runtime/helpers/toPropertyKey.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/toSetter.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/tsRewriteRelativeImportExtensions.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/typeof.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/using.js +0 -12
- package/claw/node_modules/@babel/runtime/helpers/usingCtx.js +0 -59
- package/claw/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +0 -56
- package/claw/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +0 -27
- package/claw/node_modules/@babel/runtime/helpers/wrapRegExp.js +0 -52
- package/claw/node_modules/@babel/runtime/helpers/writeOnlyError.js +0 -4
- package/claw/node_modules/@babel/runtime/package.json +0 -1107
- package/claw/node_modules/@babel/runtime/regenerator/index.js +0 -15
- package/claw/node_modules/assert/.github/FUNDING.yml +0 -12
- package/claw/node_modules/assert/.github/SECURITY.md +0 -10
- package/claw/node_modules/assert/.travis.yml +0 -30
- package/claw/node_modules/assert/.zuul.yml +0 -13
- package/claw/node_modules/assert/CHANGELOG.md +0 -11
- package/claw/node_modules/assert/LICENSE +0 -18
- package/claw/node_modules/assert/README.md +0 -105
- package/claw/node_modules/assert/assert.js +0 -506
- package/claw/node_modules/assert/package.json +0 -32
- package/claw/node_modules/assert/test.js +0 -360
- package/claw/node_modules/async-limiter/.eslintignore +0 -2
- package/claw/node_modules/async-limiter/.nycrc +0 -10
- package/claw/node_modules/async-limiter/.travis.yml +0 -9
- package/claw/node_modules/async-limiter/LICENSE +0 -8
- package/claw/node_modules/async-limiter/index.js +0 -67
- package/claw/node_modules/async-limiter/package.json +0 -35
- package/claw/node_modules/async-limiter/readme.md +0 -132
- package/claw/node_modules/available-typed-arrays/.eslintrc +0 -5
- package/claw/node_modules/available-typed-arrays/.github/FUNDING.yml +0 -12
- package/claw/node_modules/available-typed-arrays/.nycrc +0 -9
- package/claw/node_modules/available-typed-arrays/CHANGELOG.md +0 -100
- package/claw/node_modules/available-typed-arrays/LICENSE +0 -21
- package/claw/node_modules/available-typed-arrays/README.md +0 -55
- package/claw/node_modules/available-typed-arrays/index.d.ts +0 -8
- package/claw/node_modules/available-typed-arrays/index.js +0 -17
- package/claw/node_modules/available-typed-arrays/package.json +0 -93
- package/claw/node_modules/available-typed-arrays/test/index.js +0 -18
- package/claw/node_modules/available-typed-arrays/tsconfig.json +0 -49
- package/claw/node_modules/base-x/LICENSE.md +0 -22
- package/claw/node_modules/base-x/README.md +0 -67
- package/claw/node_modules/base-x/package.json +0 -49
- package/claw/node_modules/base-x/src/index.d.ts +0 -10
- package/claw/node_modules/base-x/src/index.js +0 -123
- package/claw/node_modules/bigi/CHANGELOG.md +0 -85
- package/claw/node_modules/bigi/LICENSE.md +0 -30
- package/claw/node_modules/bigi/README.md +0 -14
- package/claw/node_modules/bigi/lib/bigi.js +0 -1509
- package/claw/node_modules/bigi/lib/convert.js +0 -91
- package/claw/node_modules/bigi/lib/index.js +0 -6
- package/claw/node_modules/bigi/package.json +0 -55
- package/claw/node_modules/bignumber.js/CHANGELOG.md +0 -222
- package/claw/node_modules/bignumber.js/LICENCE +0 -23
- package/claw/node_modules/bignumber.js/README.md +0 -266
- package/claw/node_modules/bignumber.js/bignumber.d.ts +0 -1797
- package/claw/node_modules/bignumber.js/bignumber.js +0 -2814
- package/claw/node_modules/bignumber.js/bignumber.js.map +0 -1
- package/claw/node_modules/bignumber.js/bignumber.min.js +0 -3
- package/claw/node_modules/bignumber.js/bignumber.mjs +0 -2793
- package/claw/node_modules/bignumber.js/bower.json +0 -36
- package/claw/node_modules/bignumber.js/doc/API.html +0 -2118
- package/claw/node_modules/bignumber.js/package.json +0 -39
- package/claw/node_modules/bs58/CHANGELOG.md +0 -61
- package/claw/node_modules/bs58/README.md +0 -71
- package/claw/node_modules/bs58/index.js +0 -4
- package/claw/node_modules/bs58/package.json +0 -37
- package/claw/node_modules/btsdex/.babelrc +0 -17
- package/claw/node_modules/btsdex/.github/workflows/check-style.yml +0 -16
- package/claw/node_modules/btsdex/LICENSE +0 -21
- package/claw/node_modules/btsdex/README.md +0 -467
- package/claw/node_modules/btsdex/cli.js +0 -165
- package/claw/node_modules/btsdex/lib/account.js +0 -60
- package/claw/node_modules/btsdex/lib/asset.js +0 -78
- package/claw/node_modules/btsdex/lib/bitshares.js +0 -363
- package/claw/node_modules/btsdex/lib/event.js +0 -137
- package/claw/node_modules/btsdex/lib/fees.js +0 -34
- package/claw/node_modules/btsdex/lib/index.js +0 -3
- package/claw/node_modules/btsdex/lib/transaction/TransactionBuilder.js +0 -797
- package/claw/node_modules/btsdex/lib/transaction/index.js +0 -64
- package/claw/node_modules/btsdex/package.json +0 -54
- package/claw/node_modules/btsdex/yarn-error.log +0 -3483
- package/claw/node_modules/btsdex-api/.babelrc +0 -14
- package/claw/node_modules/btsdex-api/README.md +0 -3
- package/claw/node_modules/btsdex-api/lib/apis.js +0 -59
- package/claw/node_modules/btsdex-api/lib/config.js +0 -39
- package/claw/node_modules/btsdex-api/lib/connection.js +0 -188
- package/claw/node_modules/btsdex-api/lib/index.js +0 -86
- package/claw/node_modules/btsdex-api/lib/logger.js +0 -45
- package/claw/node_modules/btsdex-api/lib/servers.js +0 -30
- package/claw/node_modules/btsdex-api/package.json +0 -29
- package/claw/node_modules/btsdex-ecc/.babelrc +0 -13
- package/claw/node_modules/btsdex-ecc/lib/BrainKey.js +0 -15
- package/claw/node_modules/btsdex-ecc/lib/KeyUtils.js +0 -205
- package/claw/node_modules/btsdex-ecc/lib/PrivateKey.js +0 -198
- package/claw/node_modules/btsdex-ecc/lib/PublicKey.js +0 -197
- package/claw/node_modules/btsdex-ecc/lib/address.js +0 -84
- package/claw/node_modules/btsdex-ecc/lib/addressPrefix.js +0 -15
- package/claw/node_modules/btsdex-ecc/lib/aes.js +0 -294
- package/claw/node_modules/btsdex-ecc/lib/ecdsa.js +0 -194
- package/claw/node_modules/btsdex-ecc/lib/ecsignature.js +0 -131
- package/claw/node_modules/btsdex-ecc/lib/enforce_types.js +0 -54
- package/claw/node_modules/btsdex-ecc/lib/hash.js +0 -60
- package/claw/node_modules/btsdex-ecc/lib/index.js +0 -84
- package/claw/node_modules/btsdex-ecc/lib/signature.js +0 -185
- package/claw/node_modules/btsdex-ecc/package.json +0 -37
- package/claw/node_modules/btsdex-serializer/.babelrc +0 -13
- package/claw/node_modules/btsdex-serializer/lib/ChainTypes.js +0 -154
- package/claw/node_modules/btsdex-serializer/lib/FastParser.js +0 -75
- package/claw/node_modules/btsdex-serializer/lib/ObjectId.js +0 -65
- package/claw/node_modules/btsdex-serializer/lib/SerializerValidation.js +0 -377
- package/claw/node_modules/btsdex-serializer/lib/convert.js +0 -54
- package/claw/node_modules/btsdex-serializer/lib/error_with_cause.js +0 -43
- package/claw/node_modules/btsdex-serializer/lib/index.js +0 -72
- package/claw/node_modules/btsdex-serializer/lib/operations.js +0 -1359
- package/claw/node_modules/btsdex-serializer/lib/precision.js +0 -108
- package/claw/node_modules/btsdex-serializer/lib/serializer.js +0 -205
- package/claw/node_modules/btsdex-serializer/lib/template.js +0 -23
- package/claw/node_modules/btsdex-serializer/lib/types.js +0 -1209
- package/claw/node_modules/btsdex-serializer/package-lock.json +0 -238
- package/claw/node_modules/btsdex-serializer/package.json +0 -32
- package/claw/node_modules/bytebuffer/.travis.yml +0 -5
- package/claw/node_modules/bytebuffer/LICENSE +0 -202
- package/claw/node_modules/bytebuffer/README.md +0 -64
- package/claw/node_modules/bytebuffer/bower.json +0 -12
- package/claw/node_modules/bytebuffer/bytebuffer.png +0 -0
- package/claw/node_modules/bytebuffer/dist/README.md +0 -47
- package/claw/node_modules/bytebuffer/dist/bytebuffer-dataview.js +0 -3461
- package/claw/node_modules/bytebuffer/dist/bytebuffer-dataview.min.js +0 -88
- package/claw/node_modules/bytebuffer/dist/bytebuffer-dataview.min.js.gz +0 -0
- package/claw/node_modules/bytebuffer/dist/bytebuffer-dataview.min.map +0 -8
- package/claw/node_modules/bytebuffer/dist/bytebuffer-node.js +0 -3454
- package/claw/node_modules/bytebuffer/dist/bytebuffer.js +0 -3746
- package/claw/node_modules/bytebuffer/dist/bytebuffer.min.js +0 -93
- package/claw/node_modules/bytebuffer/dist/bytebuffer.min.js.gz +0 -0
- package/claw/node_modules/bytebuffer/dist/bytebuffer.min.map +0 -8
- package/claw/node_modules/bytebuffer/donate.png +0 -0
- package/claw/node_modules/bytebuffer/externs/bytebuffer.js +0 -862
- package/claw/node_modules/bytebuffer/externs/minimal-env.js +0 -52
- package/claw/node_modules/bytebuffer/index.js +0 -1
- package/claw/node_modules/bytebuffer/jsdoc.json +0 -13
- package/claw/node_modules/bytebuffer/package.json +0 -51
- package/claw/node_modules/bytebuffer/scripts/build.js +0 -113
- package/claw/node_modules/bytebuffer/src/bower.json +0 -12
- package/claw/node_modules/bytebuffer/src/bytebuffer.js +0 -220
- package/claw/node_modules/bytebuffer/src/encodings/base64.js +0 -88
- package/claw/node_modules/bytebuffer/src/encodings/binary.js +0 -74
- package/claw/node_modules/bytebuffer/src/encodings/debug.js +0 -211
- package/claw/node_modules/bytebuffer/src/encodings/hex.js +0 -75
- package/claw/node_modules/bytebuffer/src/encodings/impl/base64.js +0 -3
- package/claw/node_modules/bytebuffer/src/encodings/impl/binary.js +0 -65
- package/claw/node_modules/bytebuffer/src/encodings/impl/debug.js +0 -3
- package/claw/node_modules/bytebuffer/src/encodings/impl/hex.js +0 -101
- package/claw/node_modules/bytebuffer/src/encodings/impl/utf8.js +0 -126
- package/claw/node_modules/bytebuffer/src/encodings/utf8.js +0 -71
- package/claw/node_modules/bytebuffer/src/helpers.js +0 -143
- package/claw/node_modules/bytebuffer/src/macros.js +0 -222
- package/claw/node_modules/bytebuffer/src/methods/append.js +0 -58
- package/claw/node_modules/bytebuffer/src/methods/assert.js +0 -12
- package/claw/node_modules/bytebuffer/src/methods/capacity.js +0 -8
- package/claw/node_modules/bytebuffer/src/methods/clear.js +0 -13
- package/claw/node_modules/bytebuffer/src/methods/clone.js +0 -34
- package/claw/node_modules/bytebuffer/src/methods/compact.js +0 -49
- package/claw/node_modules/bytebuffer/src/methods/copy.js +0 -73
- package/claw/node_modules/bytebuffer/src/methods/ensureCapacity.js +0 -15
- package/claw/node_modules/bytebuffer/src/methods/fill.js +0 -35
- package/claw/node_modules/bytebuffer/src/methods/flip.js +0 -11
- package/claw/node_modules/bytebuffer/src/methods/mark.js +0 -17
- package/claw/node_modules/bytebuffer/src/methods/order.js +0 -36
- package/claw/node_modules/bytebuffer/src/methods/prepend.js +0 -87
- package/claw/node_modules/bytebuffer/src/methods/printDebug.js +0 -16
- package/claw/node_modules/bytebuffer/src/methods/remaining.js +0 -9
- package/claw/node_modules/bytebuffer/src/methods/reset.js +0 -17
- package/claw/node_modules/bytebuffer/src/methods/resize.js +0 -39
- package/claw/node_modules/bytebuffer/src/methods/reverse.js +0 -25
- package/claw/node_modules/bytebuffer/src/methods/skip.js +0 -19
- package/claw/node_modules/bytebuffer/src/methods/slice.js +0 -18
- package/claw/node_modules/bytebuffer/src/methods/static/accessor.js +0 -13
- package/claw/node_modules/bytebuffer/src/methods/static/allocate.js +0 -14
- package/claw/node_modules/bytebuffer/src/methods/static/concat.js +0 -55
- package/claw/node_modules/bytebuffer/src/methods/static/isByteBuffer.js +0 -9
- package/claw/node_modules/bytebuffer/src/methods/static/type.js +0 -11
- package/claw/node_modules/bytebuffer/src/methods/static/wrap.js +0 -125
- package/claw/node_modules/bytebuffer/src/methods/toBuffer.js +0 -77
- package/claw/node_modules/bytebuffer/src/methods/toString.js +0 -43
- package/claw/node_modules/bytebuffer/src/types/bytes/bitset.js +0 -89
- package/claw/node_modules/bytebuffer/src/types/bytes/bytes.js +0 -34
- package/claw/node_modules/bytebuffer/src/types/floats/float32.js +0 -81
- package/claw/node_modules/bytebuffer/src/types/floats/float64.js +0 -77
- package/claw/node_modules/bytebuffer/src/types/floats/ieee754.js +0 -130
- package/claw/node_modules/bytebuffer/src/types/ints/int16.js +0 -167
- package/claw/node_modules/bytebuffer/src/types/ints/int32.js +0 -125
- package/claw/node_modules/bytebuffer/src/types/ints/int64.js +0 -194
- package/claw/node_modules/bytebuffer/src/types/ints/int8.js +0 -137
- package/claw/node_modules/bytebuffer/src/types/strings/cstring.js +0 -110
- package/claw/node_modules/bytebuffer/src/types/strings/istring.js +0 -81
- package/claw/node_modules/bytebuffer/src/types/strings/utf8string.js +0 -214
- package/claw/node_modules/bytebuffer/src/types/strings/vstring.js +0 -78
- package/claw/node_modules/bytebuffer/src/types/varints/varint32.js +0 -164
- package/claw/node_modules/bytebuffer/src/types/varints/varint64.js +0 -208
- package/claw/node_modules/bytebuffer/src/wrap-node.js +0 -50
- package/claw/node_modules/bytebuffer/src/wrap.js +0 -43
- package/claw/node_modules/bytebuffer/tests/bench.js +0 -99
- package/claw/node_modules/bytebuffer/tests/suite.js +0 -1005
- package/claw/node_modules/call-bind/.eslintignore +0 -1
- package/claw/node_modules/call-bind/.eslintrc +0 -16
- package/claw/node_modules/call-bind/.github/FUNDING.yml +0 -12
- package/claw/node_modules/call-bind/.nycrc +0 -9
- package/claw/node_modules/call-bind/CHANGELOG.md +0 -106
- package/claw/node_modules/call-bind/LICENSE +0 -21
- package/claw/node_modules/call-bind/README.md +0 -64
- package/claw/node_modules/call-bind/callBound.js +0 -15
- package/claw/node_modules/call-bind/index.js +0 -24
- package/claw/node_modules/call-bind/package.json +0 -93
- package/claw/node_modules/call-bind/test/callBound.js +0 -54
- package/claw/node_modules/call-bind/test/index.js +0 -74
- package/claw/node_modules/call-bind-apply-helpers/.eslintrc +0 -17
- package/claw/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +0 -12
- package/claw/node_modules/call-bind-apply-helpers/.nycrc +0 -9
- package/claw/node_modules/call-bind-apply-helpers/CHANGELOG.md +0 -30
- package/claw/node_modules/call-bind-apply-helpers/LICENSE +0 -21
- package/claw/node_modules/call-bind-apply-helpers/README.md +0 -62
- package/claw/node_modules/call-bind-apply-helpers/actualApply.d.ts +0 -1
- package/claw/node_modules/call-bind-apply-helpers/actualApply.js +0 -10
- package/claw/node_modules/call-bind-apply-helpers/applyBind.d.ts +0 -19
- package/claw/node_modules/call-bind-apply-helpers/applyBind.js +0 -10
- package/claw/node_modules/call-bind-apply-helpers/functionApply.d.ts +0 -1
- package/claw/node_modules/call-bind-apply-helpers/functionApply.js +0 -4
- package/claw/node_modules/call-bind-apply-helpers/functionCall.d.ts +0 -1
- package/claw/node_modules/call-bind-apply-helpers/functionCall.js +0 -4
- package/claw/node_modules/call-bind-apply-helpers/index.d.ts +0 -64
- package/claw/node_modules/call-bind-apply-helpers/index.js +0 -15
- package/claw/node_modules/call-bind-apply-helpers/package.json +0 -85
- package/claw/node_modules/call-bind-apply-helpers/reflectApply.d.ts +0 -3
- package/claw/node_modules/call-bind-apply-helpers/reflectApply.js +0 -4
- package/claw/node_modules/call-bind-apply-helpers/test/index.js +0 -63
- package/claw/node_modules/call-bind-apply-helpers/tsconfig.json +0 -9
- package/claw/node_modules/call-bound/.eslintrc +0 -13
- package/claw/node_modules/call-bound/.github/FUNDING.yml +0 -12
- package/claw/node_modules/call-bound/.nycrc +0 -9
- package/claw/node_modules/call-bound/CHANGELOG.md +0 -42
- package/claw/node_modules/call-bound/LICENSE +0 -21
- package/claw/node_modules/call-bound/README.md +0 -53
- package/claw/node_modules/call-bound/index.d.ts +0 -94
- package/claw/node_modules/call-bound/index.js +0 -19
- package/claw/node_modules/call-bound/package.json +0 -99
- package/claw/node_modules/call-bound/test/index.js +0 -61
- package/claw/node_modules/call-bound/tsconfig.json +0 -10
- package/claw/node_modules/cipher-base/.eslintrc +0 -26
- package/claw/node_modules/cipher-base/.github/FUNDING.yml +0 -12
- package/claw/node_modules/cipher-base/CHANGELOG.md +0 -73
- package/claw/node_modules/cipher-base/LICENSE +0 -21
- package/claw/node_modules/cipher-base/README.md +0 -17
- package/claw/node_modules/cipher-base/index.js +0 -103
- package/claw/node_modules/cipher-base/package.json +0 -63
- package/claw/node_modules/cipher-base/test/index.js +0 -221
- package/claw/node_modules/core-util-is/LICENSE +0 -19
- package/claw/node_modules/core-util-is/README.md +0 -3
- package/claw/node_modules/core-util-is/lib/util.js +0 -107
- package/claw/node_modules/core-util-is/package.json +0 -38
- package/claw/node_modules/create-hash/.travis.yml +0 -17
- package/claw/node_modules/create-hash/LICENSE +0 -21
- package/claw/node_modules/create-hash/README.md +0 -19
- package/claw/node_modules/create-hash/browser.js +0 -30
- package/claw/node_modules/create-hash/index.js +0 -1
- package/claw/node_modules/create-hash/md5.js +0 -5
- package/claw/node_modules/create-hash/package.json +0 -39
- package/claw/node_modules/create-hash/test.js +0 -41
- package/claw/node_modules/create-hmac/LICENSE +0 -21
- package/claw/node_modules/create-hmac/README.md +0 -20
- package/claw/node_modules/create-hmac/browser.js +0 -62
- package/claw/node_modules/create-hmac/index.js +0 -1
- package/claw/node_modules/create-hmac/legacy.js +0 -46
- package/claw/node_modules/create-hmac/package.json +0 -45
- package/claw/node_modules/crypto-js/CONTRIBUTING.md +0 -28
- package/claw/node_modules/crypto-js/LICENSE +0 -24
- package/claw/node_modules/crypto-js/README.md +0 -241
- package/claw/node_modules/crypto-js/aes.js +0 -232
- package/claw/node_modules/crypto-js/bower.json +0 -35
- package/claw/node_modules/crypto-js/cipher-core.js +0 -880
- package/claw/node_modules/crypto-js/core.js +0 -760
- package/claw/node_modules/crypto-js/crypto-js.js +0 -5988
- package/claw/node_modules/crypto-js/docs/QuickStartGuide.wiki +0 -470
- package/claw/node_modules/crypto-js/enc-base64.js +0 -135
- package/claw/node_modules/crypto-js/enc-hex.js +0 -18
- package/claw/node_modules/crypto-js/enc-latin1.js +0 -18
- package/claw/node_modules/crypto-js/enc-utf16.js +0 -149
- package/claw/node_modules/crypto-js/enc-utf8.js +0 -18
- package/claw/node_modules/crypto-js/evpkdf.js +0 -132
- package/claw/node_modules/crypto-js/format-hex.js +0 -66
- package/claw/node_modules/crypto-js/format-openssl.js +0 -18
- package/claw/node_modules/crypto-js/hmac-md5.js +0 -18
- package/claw/node_modules/crypto-js/hmac-ripemd160.js +0 -18
- package/claw/node_modules/crypto-js/hmac-sha1.js +0 -18
- package/claw/node_modules/crypto-js/hmac-sha224.js +0 -18
- package/claw/node_modules/crypto-js/hmac-sha256.js +0 -18
- package/claw/node_modules/crypto-js/hmac-sha3.js +0 -18
- package/claw/node_modules/crypto-js/hmac-sha384.js +0 -18
- package/claw/node_modules/crypto-js/hmac-sha512.js +0 -18
- package/claw/node_modules/crypto-js/hmac.js +0 -143
- package/claw/node_modules/crypto-js/index.js +0 -18
- package/claw/node_modules/crypto-js/lib-typedarrays.js +0 -76
- package/claw/node_modules/crypto-js/md5.js +0 -268
- package/claw/node_modules/crypto-js/mode-cfb.js +0 -78
- package/claw/node_modules/crypto-js/mode-ctr-gladman.js +0 -116
- package/claw/node_modules/crypto-js/mode-ctr.js +0 -58
- package/claw/node_modules/crypto-js/mode-ecb.js +0 -40
- package/claw/node_modules/crypto-js/mode-ofb.js +0 -54
- package/claw/node_modules/crypto-js/package.json +0 -38
- package/claw/node_modules/crypto-js/pad-ansix923.js +0 -49
- package/claw/node_modules/crypto-js/pad-iso10126.js +0 -44
- package/claw/node_modules/crypto-js/pad-iso97971.js +0 -40
- package/claw/node_modules/crypto-js/pad-nopadding.js +0 -30
- package/claw/node_modules/crypto-js/pad-pkcs7.js +0 -18
- package/claw/node_modules/crypto-js/pad-zeropadding.js +0 -45
- package/claw/node_modules/crypto-js/pbkdf2.js +0 -145
- package/claw/node_modules/crypto-js/rabbit-legacy.js +0 -190
- package/claw/node_modules/crypto-js/rabbit.js +0 -192
- package/claw/node_modules/crypto-js/rc4.js +0 -139
- package/claw/node_modules/crypto-js/ripemd160.js +0 -267
- package/claw/node_modules/crypto-js/sha1.js +0 -150
- package/claw/node_modules/crypto-js/sha224.js +0 -80
- package/claw/node_modules/crypto-js/sha256.js +0 -199
- package/claw/node_modules/crypto-js/sha3.js +0 -323
- package/claw/node_modules/crypto-js/sha384.js +0 -83
- package/claw/node_modules/crypto-js/sha512.js +0 -323
- package/claw/node_modules/crypto-js/tripledes.js +0 -770
- package/claw/node_modules/crypto-js/x64-core.js +0 -304
- package/claw/node_modules/deep-equal/.editorconfig +0 -20
- package/claw/node_modules/deep-equal/.eslintrc +0 -28
- package/claw/node_modules/deep-equal/.nycrc +0 -17
- package/claw/node_modules/deep-equal/.travis.yml +0 -12
- package/claw/node_modules/deep-equal/CHANGELOG.md +0 -320
- package/claw/node_modules/deep-equal/LICENSE +0 -21
- package/claw/node_modules/deep-equal/assert.js +0 -3
- package/claw/node_modules/deep-equal/example/cmp.js +0 -11
- package/claw/node_modules/deep-equal/index.js +0 -112
- package/claw/node_modules/deep-equal/lib/is_arguments.js +0 -1
- package/claw/node_modules/deep-equal/lib/keys.js +0 -1
- package/claw/node_modules/deep-equal/package.json +0 -109
- package/claw/node_modules/deep-equal/readme.markdown +0 -73
- package/claw/node_modules/deep-equal/test/_tape.js +0 -42
- package/claw/node_modules/deep-equal/test/cmp.js +0 -1343
- package/claw/node_modules/define-data-property/.eslintrc +0 -24
- package/claw/node_modules/define-data-property/.github/FUNDING.yml +0 -12
- package/claw/node_modules/define-data-property/.nycrc +0 -13
- package/claw/node_modules/define-data-property/CHANGELOG.md +0 -70
- package/claw/node_modules/define-data-property/LICENSE +0 -21
- package/claw/node_modules/define-data-property/README.md +0 -67
- package/claw/node_modules/define-data-property/index.d.ts +0 -12
- package/claw/node_modules/define-data-property/index.js +0 -56
- package/claw/node_modules/define-data-property/package.json +0 -106
- package/claw/node_modules/define-data-property/test/index.js +0 -392
- package/claw/node_modules/define-data-property/tsconfig.json +0 -59
- package/claw/node_modules/define-properties/.editorconfig +0 -13
- package/claw/node_modules/define-properties/.eslintrc +0 -19
- package/claw/node_modules/define-properties/.github/FUNDING.yml +0 -12
- package/claw/node_modules/define-properties/.nycrc +0 -9
- package/claw/node_modules/define-properties/CHANGELOG.md +0 -91
- package/claw/node_modules/define-properties/LICENSE +0 -21
- package/claw/node_modules/define-properties/README.md +0 -84
- package/claw/node_modules/define-properties/index.js +0 -47
- package/claw/node_modules/define-properties/package.json +0 -88
- package/claw/node_modules/dunder-proto/.eslintrc +0 -5
- package/claw/node_modules/dunder-proto/.github/FUNDING.yml +0 -12
- package/claw/node_modules/dunder-proto/.nycrc +0 -13
- package/claw/node_modules/dunder-proto/CHANGELOG.md +0 -24
- package/claw/node_modules/dunder-proto/LICENSE +0 -21
- package/claw/node_modules/dunder-proto/README.md +0 -54
- package/claw/node_modules/dunder-proto/get.d.ts +0 -5
- package/claw/node_modules/dunder-proto/get.js +0 -30
- package/claw/node_modules/dunder-proto/package.json +0 -76
- package/claw/node_modules/dunder-proto/set.d.ts +0 -5
- package/claw/node_modules/dunder-proto/set.js +0 -35
- package/claw/node_modules/dunder-proto/test/get.js +0 -34
- package/claw/node_modules/dunder-proto/test/index.js +0 -4
- package/claw/node_modules/dunder-proto/test/set.js +0 -50
- package/claw/node_modules/dunder-proto/tsconfig.json +0 -9
- package/claw/node_modules/ecurve/.min-wd +0 -7
- package/claw/node_modules/ecurve/.travis.yml +0 -14
- package/claw/node_modules/ecurve/CHANGELOG.md +0 -154
- package/claw/node_modules/ecurve/README.md +0 -11
- package/claw/node_modules/ecurve/lib/curve.js +0 -77
- package/claw/node_modules/ecurve/lib/curves.json +0 -65
- package/claw/node_modules/ecurve/lib/index.js +0 -10
- package/claw/node_modules/ecurve/lib/names.js +0 -21
- package/claw/node_modules/ecurve/lib/point.js +0 -244
- package/claw/node_modules/ecurve/package.json +0 -32
- package/claw/node_modules/es-define-property/.eslintrc +0 -13
- package/claw/node_modules/es-define-property/.github/FUNDING.yml +0 -12
- package/claw/node_modules/es-define-property/.nycrc +0 -9
- package/claw/node_modules/es-define-property/CHANGELOG.md +0 -29
- package/claw/node_modules/es-define-property/LICENSE +0 -21
- package/claw/node_modules/es-define-property/README.md +0 -49
- package/claw/node_modules/es-define-property/index.d.ts +0 -3
- package/claw/node_modules/es-define-property/index.js +0 -14
- package/claw/node_modules/es-define-property/package.json +0 -81
- package/claw/node_modules/es-define-property/test/index.js +0 -56
- package/claw/node_modules/es-define-property/tsconfig.json +0 -10
- package/claw/node_modules/es-errors/.eslintrc +0 -5
- package/claw/node_modules/es-errors/.github/FUNDING.yml +0 -12
- package/claw/node_modules/es-errors/CHANGELOG.md +0 -40
- package/claw/node_modules/es-errors/LICENSE +0 -21
- package/claw/node_modules/es-errors/README.md +0 -55
- package/claw/node_modules/es-errors/eval.d.ts +0 -3
- package/claw/node_modules/es-errors/eval.js +0 -4
- package/claw/node_modules/es-errors/index.d.ts +0 -3
- package/claw/node_modules/es-errors/index.js +0 -4
- package/claw/node_modules/es-errors/package.json +0 -80
- package/claw/node_modules/es-errors/range.d.ts +0 -3
- package/claw/node_modules/es-errors/range.js +0 -4
- package/claw/node_modules/es-errors/ref.d.ts +0 -3
- package/claw/node_modules/es-errors/ref.js +0 -4
- package/claw/node_modules/es-errors/syntax.d.ts +0 -3
- package/claw/node_modules/es-errors/syntax.js +0 -4
- package/claw/node_modules/es-errors/test/index.js +0 -19
- package/claw/node_modules/es-errors/tsconfig.json +0 -49
- package/claw/node_modules/es-errors/type.d.ts +0 -3
- package/claw/node_modules/es-errors/type.js +0 -4
- package/claw/node_modules/es-errors/uri.d.ts +0 -3
- package/claw/node_modules/es-errors/uri.js +0 -4
- package/claw/node_modules/es-object-atoms/.eslintrc +0 -16
- package/claw/node_modules/es-object-atoms/.github/FUNDING.yml +0 -12
- package/claw/node_modules/es-object-atoms/CHANGELOG.md +0 -37
- package/claw/node_modules/es-object-atoms/LICENSE +0 -21
- package/claw/node_modules/es-object-atoms/README.md +0 -63
- package/claw/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +0 -3
- package/claw/node_modules/es-object-atoms/RequireObjectCoercible.js +0 -11
- package/claw/node_modules/es-object-atoms/ToObject.d.ts +0 -7
- package/claw/node_modules/es-object-atoms/ToObject.js +0 -10
- package/claw/node_modules/es-object-atoms/index.d.ts +0 -3
- package/claw/node_modules/es-object-atoms/index.js +0 -4
- package/claw/node_modules/es-object-atoms/isObject.d.ts +0 -3
- package/claw/node_modules/es-object-atoms/isObject.js +0 -6
- package/claw/node_modules/es-object-atoms/package.json +0 -80
- package/claw/node_modules/es-object-atoms/test/index.js +0 -38
- package/claw/node_modules/es-object-atoms/tsconfig.json +0 -6
- package/claw/node_modules/for-each/.editorconfig +0 -20
- package/claw/node_modules/for-each/.eslintrc +0 -30
- package/claw/node_modules/for-each/.github/FUNDING.yml +0 -12
- package/claw/node_modules/for-each/.github/SECURITY.md +0 -3
- package/claw/node_modules/for-each/.nycrc +0 -8
- package/claw/node_modules/for-each/CHANGELOG.md +0 -107
- package/claw/node_modules/for-each/LICENSE +0 -22
- package/claw/node_modules/for-each/README.md +0 -39
- package/claw/node_modules/for-each/index.d.ts +0 -35
- package/claw/node_modules/for-each/index.js +0 -69
- package/claw/node_modules/for-each/package.json +0 -76
- package/claw/node_modules/for-each/test/test.js +0 -224
- package/claw/node_modules/for-each/tsconfig.json +0 -8
- package/claw/node_modules/function-bind/.eslintrc +0 -21
- package/claw/node_modules/function-bind/.github/FUNDING.yml +0 -12
- package/claw/node_modules/function-bind/.github/SECURITY.md +0 -3
- package/claw/node_modules/function-bind/.nycrc +0 -13
- package/claw/node_modules/function-bind/CHANGELOG.md +0 -136
- package/claw/node_modules/function-bind/LICENSE +0 -20
- package/claw/node_modules/function-bind/README.md +0 -46
- package/claw/node_modules/function-bind/implementation.js +0 -84
- package/claw/node_modules/function-bind/index.js +0 -5
- package/claw/node_modules/function-bind/package.json +0 -87
- package/claw/node_modules/function-bind/test/.eslintrc +0 -9
- package/claw/node_modules/function-bind/test/index.js +0 -252
- package/claw/node_modules/functions-have-names/.editorconfig +0 -20
- package/claw/node_modules/functions-have-names/.eslintrc +0 -19
- package/claw/node_modules/functions-have-names/.github/FUNDING.yml +0 -12
- package/claw/node_modules/functions-have-names/.nycrc +0 -9
- package/claw/node_modules/functions-have-names/CHANGELOG.md +0 -89
- package/claw/node_modules/functions-have-names/LICENSE +0 -21
- package/claw/node_modules/functions-have-names/README.md +0 -40
- package/claw/node_modules/functions-have-names/index.js +0 -31
- package/claw/node_modules/functions-have-names/package.json +0 -55
- package/claw/node_modules/functions-have-names/test/index.js +0 -65
- package/claw/node_modules/get-intrinsic/.eslintrc +0 -42
- package/claw/node_modules/get-intrinsic/.github/FUNDING.yml +0 -12
- package/claw/node_modules/get-intrinsic/.nycrc +0 -9
- package/claw/node_modules/get-intrinsic/CHANGELOG.md +0 -186
- package/claw/node_modules/get-intrinsic/LICENSE +0 -21
- package/claw/node_modules/get-intrinsic/README.md +0 -71
- package/claw/node_modules/get-intrinsic/index.js +0 -378
- package/claw/node_modules/get-intrinsic/package.json +0 -97
- package/claw/node_modules/get-intrinsic/test/GetIntrinsic.js +0 -274
- package/claw/node_modules/get-proto/.eslintrc +0 -10
- package/claw/node_modules/get-proto/.github/FUNDING.yml +0 -12
- package/claw/node_modules/get-proto/.nycrc +0 -9
- package/claw/node_modules/get-proto/CHANGELOG.md +0 -21
- package/claw/node_modules/get-proto/LICENSE +0 -21
- package/claw/node_modules/get-proto/Object.getPrototypeOf.d.ts +0 -5
- package/claw/node_modules/get-proto/Object.getPrototypeOf.js +0 -6
- package/claw/node_modules/get-proto/README.md +0 -50
- package/claw/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +0 -3
- package/claw/node_modules/get-proto/Reflect.getPrototypeOf.js +0 -4
- package/claw/node_modules/get-proto/index.d.ts +0 -5
- package/claw/node_modules/get-proto/index.js +0 -27
- package/claw/node_modules/get-proto/package.json +0 -81
- package/claw/node_modules/get-proto/test/index.js +0 -68
- package/claw/node_modules/get-proto/tsconfig.json +0 -9
- package/claw/node_modules/gopd/.eslintrc +0 -16
- package/claw/node_modules/gopd/.github/FUNDING.yml +0 -12
- package/claw/node_modules/gopd/CHANGELOG.md +0 -45
- package/claw/node_modules/gopd/LICENSE +0 -21
- package/claw/node_modules/gopd/README.md +0 -40
- package/claw/node_modules/gopd/gOPD.d.ts +0 -1
- package/claw/node_modules/gopd/gOPD.js +0 -4
- package/claw/node_modules/gopd/index.d.ts +0 -5
- package/claw/node_modules/gopd/index.js +0 -15
- package/claw/node_modules/gopd/package.json +0 -77
- package/claw/node_modules/gopd/test/index.js +0 -36
- package/claw/node_modules/gopd/tsconfig.json +0 -9
- package/claw/node_modules/has-property-descriptors/.eslintrc +0 -13
- package/claw/node_modules/has-property-descriptors/.github/FUNDING.yml +0 -12
- package/claw/node_modules/has-property-descriptors/.nycrc +0 -9
- package/claw/node_modules/has-property-descriptors/CHANGELOG.md +0 -35
- package/claw/node_modules/has-property-descriptors/LICENSE +0 -21
- package/claw/node_modules/has-property-descriptors/README.md +0 -43
- package/claw/node_modules/has-property-descriptors/index.js +0 -22
- package/claw/node_modules/has-property-descriptors/package.json +0 -77
- package/claw/node_modules/has-property-descriptors/test/index.js +0 -57
- package/claw/node_modules/has-symbols/.eslintrc +0 -11
- package/claw/node_modules/has-symbols/.github/FUNDING.yml +0 -12
- package/claw/node_modules/has-symbols/.nycrc +0 -9
- package/claw/node_modules/has-symbols/CHANGELOG.md +0 -91
- package/claw/node_modules/has-symbols/LICENSE +0 -21
- package/claw/node_modules/has-symbols/README.md +0 -46
- package/claw/node_modules/has-symbols/index.d.ts +0 -3
- package/claw/node_modules/has-symbols/index.js +0 -14
- package/claw/node_modules/has-symbols/package.json +0 -111
- package/claw/node_modules/has-symbols/shams.d.ts +0 -3
- package/claw/node_modules/has-symbols/shams.js +0 -45
- package/claw/node_modules/has-symbols/test/index.js +0 -22
- package/claw/node_modules/has-symbols/test/shams/core-js.js +0 -29
- package/claw/node_modules/has-symbols/test/shams/get-own-property-symbols.js +0 -29
- package/claw/node_modules/has-symbols/test/tests.js +0 -58
- package/claw/node_modules/has-symbols/tsconfig.json +0 -10
- package/claw/node_modules/has-tostringtag/.eslintrc +0 -5
- package/claw/node_modules/has-tostringtag/.github/FUNDING.yml +0 -12
- package/claw/node_modules/has-tostringtag/.nycrc +0 -13
- package/claw/node_modules/has-tostringtag/CHANGELOG.md +0 -42
- package/claw/node_modules/has-tostringtag/LICENSE +0 -21
- package/claw/node_modules/has-tostringtag/README.md +0 -46
- package/claw/node_modules/has-tostringtag/index.d.ts +0 -3
- package/claw/node_modules/has-tostringtag/index.js +0 -8
- package/claw/node_modules/has-tostringtag/package.json +0 -108
- package/claw/node_modules/has-tostringtag/shams.d.ts +0 -3
- package/claw/node_modules/has-tostringtag/shams.js +0 -8
- package/claw/node_modules/has-tostringtag/test/index.js +0 -21
- package/claw/node_modules/has-tostringtag/test/shams/core-js.js +0 -31
- package/claw/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +0 -30
- package/claw/node_modules/has-tostringtag/test/tests.js +0 -15
- package/claw/node_modules/has-tostringtag/tsconfig.json +0 -49
- package/claw/node_modules/hash-base/.github/FUNDING.yml +0 -12
- package/claw/node_modules/hash-base/CHANGELOG.md +0 -166
- package/claw/node_modules/hash-base/LICENSE +0 -21
- package/claw/node_modules/hash-base/README.md +0 -48
- package/claw/node_modules/hash-base/index.js +0 -109
- package/claw/node_modules/hash-base/package.json +0 -64
- package/claw/node_modules/hash-base/to-buffer.js +0 -20
- package/claw/node_modules/hasown/.eslintrc +0 -5
- package/claw/node_modules/hasown/.github/FUNDING.yml +0 -12
- package/claw/node_modules/hasown/.nycrc +0 -13
- package/claw/node_modules/hasown/CHANGELOG.md +0 -40
- package/claw/node_modules/hasown/LICENSE +0 -21
- package/claw/node_modules/hasown/README.md +0 -40
- package/claw/node_modules/hasown/index.d.ts +0 -3
- package/claw/node_modules/hasown/index.js +0 -8
- package/claw/node_modules/hasown/package.json +0 -92
- package/claw/node_modules/hasown/tsconfig.json +0 -6
- package/claw/node_modules/inherits/LICENSE +0 -16
- package/claw/node_modules/inherits/README.md +0 -42
- package/claw/node_modules/inherits/inherits.js +0 -9
- package/claw/node_modules/inherits/inherits_browser.js +0 -27
- package/claw/node_modules/inherits/package.json +0 -29
- package/claw/node_modules/is-arguments/.editorconfig +0 -20
- package/claw/node_modules/is-arguments/.eslintrc +0 -9
- package/claw/node_modules/is-arguments/.github/FUNDING.yml +0 -12
- package/claw/node_modules/is-arguments/.nycrc +0 -9
- package/claw/node_modules/is-arguments/CHANGELOG.md +0 -201
- package/claw/node_modules/is-arguments/LICENSE +0 -20
- package/claw/node_modules/is-arguments/README.md +0 -47
- package/claw/node_modules/is-arguments/index.d.ts +0 -6
- package/claw/node_modules/is-arguments/index.js +0 -44
- package/claw/node_modules/is-arguments/package.json +0 -105
- package/claw/node_modules/is-arguments/test/index.js +0 -47
- package/claw/node_modules/is-arguments/tsconfig.json +0 -9
- package/claw/node_modules/is-callable/.editorconfig +0 -31
- package/claw/node_modules/is-callable/.eslintrc +0 -10
- package/claw/node_modules/is-callable/.github/FUNDING.yml +0 -12
- package/claw/node_modules/is-callable/.nycrc +0 -9
- package/claw/node_modules/is-callable/CHANGELOG.md +0 -158
- package/claw/node_modules/is-callable/LICENSE +0 -22
- package/claw/node_modules/is-callable/README.md +0 -83
- package/claw/node_modules/is-callable/index.js +0 -101
- package/claw/node_modules/is-callable/package.json +0 -106
- package/claw/node_modules/is-callable/test/index.js +0 -244
- package/claw/node_modules/is-date-object/.editorconfig +0 -20
- package/claw/node_modules/is-date-object/.eslintrc +0 -9
- package/claw/node_modules/is-date-object/.github/FUNDING.yml +0 -12
- package/claw/node_modules/is-date-object/.nycrc +0 -10
- package/claw/node_modules/is-date-object/CHANGELOG.md +0 -134
- package/claw/node_modules/is-date-object/LICENSE +0 -22
- package/claw/node_modules/is-date-object/README.md +0 -52
- package/claw/node_modules/is-date-object/index.d.ts +0 -3
- package/claw/node_modules/is-date-object/index.js +0 -27
- package/claw/node_modules/is-date-object/package.json +0 -99
- package/claw/node_modules/is-date-object/test/index.js +0 -38
- package/claw/node_modules/is-date-object/tsconfig.json +0 -6
- package/claw/node_modules/is-regex/.editorconfig +0 -23
- package/claw/node_modules/is-regex/.eslintrc +0 -10
- package/claw/node_modules/is-regex/.nycrc +0 -10
- package/claw/node_modules/is-regex/CHANGELOG.md +0 -233
- package/claw/node_modules/is-regex/LICENSE +0 -20
- package/claw/node_modules/is-regex/README.md +0 -52
- package/claw/node_modules/is-regex/index.d.ts +0 -3
- package/claw/node_modules/is-regex/index.js +0 -69
- package/claw/node_modules/is-regex/package.json +0 -104
- package/claw/node_modules/is-regex/test/index.js +0 -121
- package/claw/node_modules/is-regex/tsconfig.json +0 -9
- package/claw/node_modules/is-typed-array/.editorconfig +0 -20
- package/claw/node_modules/is-typed-array/.eslintrc +0 -13
- package/claw/node_modules/is-typed-array/.github/FUNDING.yml +0 -12
- package/claw/node_modules/is-typed-array/.nycrc +0 -9
- package/claw/node_modules/is-typed-array/CHANGELOG.md +0 -166
- package/claw/node_modules/is-typed-array/LICENSE +0 -22
- package/claw/node_modules/is-typed-array/README.md +0 -70
- package/claw/node_modules/is-typed-array/index.d.ts +0 -9
- package/claw/node_modules/is-typed-array/index.js +0 -8
- package/claw/node_modules/is-typed-array/package.json +0 -129
- package/claw/node_modules/is-typed-array/test/index.js +0 -111
- package/claw/node_modules/is-typed-array/tsconfig.json +0 -6
- package/claw/node_modules/isarray/.travis.yml +0 -4
- package/claw/node_modules/isarray/Makefile +0 -6
- package/claw/node_modules/isarray/README.md +0 -60
- package/claw/node_modules/isarray/component.json +0 -19
- package/claw/node_modules/isarray/index.js +0 -5
- package/claw/node_modules/isarray/package.json +0 -45
- package/claw/node_modules/isarray/test.js +0 -20
- package/claw/node_modules/isomorphic-ws/LICENSE +0 -21
- package/claw/node_modules/isomorphic-ws/README.md +0 -58
- package/claw/node_modules/isomorphic-ws/browser.js +0 -17
- package/claw/node_modules/isomorphic-ws/index.d.ts +0 -8
- package/claw/node_modules/isomorphic-ws/node.js +0 -3
- package/claw/node_modules/isomorphic-ws/package.json +0 -34
- package/claw/node_modules/long/.travis.yml +0 -5
- package/claw/node_modules/long/LICENSE +0 -202
- package/claw/node_modules/long/README.md +0 -513
- package/claw/node_modules/long/bower.json +0 -9
- package/claw/node_modules/long/dist/README.md +0 -16
- package/claw/node_modules/long/dist/long.js +0 -1209
- package/claw/node_modules/long/dist/long.min.js +0 -20
- package/claw/node_modules/long/dist/long.min.js.gz +0 -0
- package/claw/node_modules/long/dist/long.min.map +0 -8
- package/claw/node_modules/long/doco/INDEX.md +0 -6
- package/claw/node_modules/long/doco/Long.md +0 -473
- package/claw/node_modules/long/donate.png +0 -0
- package/claw/node_modules/long/externs/long.js +0 -416
- package/claw/node_modules/long/index.js +0 -1
- package/claw/node_modules/long/jsdoc.json +0 -13
- package/claw/node_modules/long/long.png +0 -0
- package/claw/node_modules/long/package.json +0 -33
- package/claw/node_modules/long/scripts/build.js +0 -28
- package/claw/node_modules/long/src/bower.json +0 -9
- package/claw/node_modules/long/src/long.js +0 -1172
- package/claw/node_modules/long/src/wrap.js +0 -38
- package/claw/node_modules/long/tests/goog.math.long.js +0 -807
- package/claw/node_modules/long/tests/suite.js +0 -195
- package/claw/node_modules/lzma/.travis.yml +0 -9
- package/claw/node_modules/lzma/LICENSE +0 -20
- package/claw/node_modules/lzma/THANKS +0 -7
- package/claw/node_modules/lzma/bin/lzma.js +0 -362
- package/claw/node_modules/lzma/index.js +0 -19
- package/claw/node_modules/lzma/package.json +0 -30
- package/claw/node_modules/lzma/readme.md +0 -149
- package/claw/node_modules/lzma/src/lzma-c-min.js +0 -1
- package/claw/node_modules/lzma/src/lzma-c.js +0 -2021
- package/claw/node_modules/lzma/src/lzma-d-min.js +0 -1
- package/claw/node_modules/lzma/src/lzma-d.js +0 -878
- package/claw/node_modules/lzma/src/lzma-min.js +0 -2
- package/claw/node_modules/lzma/src/lzma.js +0 -153
- package/claw/node_modules/lzma/src/lzma_worker-min.js +0 -2
- package/claw/node_modules/lzma/src/lzma_worker.js +0 -2668
- package/claw/node_modules/math-intrinsics/.eslintrc +0 -16
- package/claw/node_modules/math-intrinsics/.github/FUNDING.yml +0 -12
- package/claw/node_modules/math-intrinsics/CHANGELOG.md +0 -24
- package/claw/node_modules/math-intrinsics/LICENSE +0 -21
- package/claw/node_modules/math-intrinsics/README.md +0 -50
- package/claw/node_modules/math-intrinsics/abs.d.ts +0 -1
- package/claw/node_modules/math-intrinsics/abs.js +0 -4
- package/claw/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +0 -3
- package/claw/node_modules/math-intrinsics/constants/maxArrayLength.js +0 -4
- package/claw/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +0 -3
- package/claw/node_modules/math-intrinsics/constants/maxSafeInteger.js +0 -5
- package/claw/node_modules/math-intrinsics/constants/maxValue.d.ts +0 -3
- package/claw/node_modules/math-intrinsics/constants/maxValue.js +0 -5
- package/claw/node_modules/math-intrinsics/floor.d.ts +0 -1
- package/claw/node_modules/math-intrinsics/floor.js +0 -4
- package/claw/node_modules/math-intrinsics/isFinite.d.ts +0 -3
- package/claw/node_modules/math-intrinsics/isFinite.js +0 -12
- package/claw/node_modules/math-intrinsics/isInteger.d.ts +0 -3
- package/claw/node_modules/math-intrinsics/isInteger.js +0 -16
- package/claw/node_modules/math-intrinsics/isNaN.d.ts +0 -1
- package/claw/node_modules/math-intrinsics/isNaN.js +0 -6
- package/claw/node_modules/math-intrinsics/isNegativeZero.d.ts +0 -3
- package/claw/node_modules/math-intrinsics/isNegativeZero.js +0 -6
- package/claw/node_modules/math-intrinsics/max.d.ts +0 -1
- package/claw/node_modules/math-intrinsics/max.js +0 -4
- package/claw/node_modules/math-intrinsics/min.d.ts +0 -1
- package/claw/node_modules/math-intrinsics/min.js +0 -4
- package/claw/node_modules/math-intrinsics/mod.d.ts +0 -3
- package/claw/node_modules/math-intrinsics/mod.js +0 -9
- package/claw/node_modules/math-intrinsics/package.json +0 -86
- package/claw/node_modules/math-intrinsics/pow.d.ts +0 -1
- package/claw/node_modules/math-intrinsics/pow.js +0 -4
- package/claw/node_modules/math-intrinsics/round.d.ts +0 -1
- package/claw/node_modules/math-intrinsics/round.js +0 -4
- package/claw/node_modules/math-intrinsics/sign.d.ts +0 -3
- package/claw/node_modules/math-intrinsics/sign.js +0 -11
- package/claw/node_modules/math-intrinsics/test/index.js +0 -192
- package/claw/node_modules/math-intrinsics/tsconfig.json +0 -3
- package/claw/node_modules/md5.js/LICENSE +0 -21
- package/claw/node_modules/md5.js/README.md +0 -29
- package/claw/node_modules/md5.js/index.js +0 -146
- package/claw/node_modules/md5.js/package.json +0 -38
- package/claw/node_modules/object-is/.eslintrc +0 -5
- package/claw/node_modules/object-is/.nycrc +0 -9
- package/claw/node_modules/object-is/CHANGELOG.md +0 -175
- package/claw/node_modules/object-is/LICENSE +0 -20
- package/claw/node_modules/object-is/README.md +0 -60
- package/claw/node_modules/object-is/auto.js +0 -3
- package/claw/node_modules/object-is/implementation.js +0 -19
- package/claw/node_modules/object-is/index.js +0 -18
- package/claw/node_modules/object-is/package.json +0 -96
- package/claw/node_modules/object-is/polyfill.js +0 -7
- package/claw/node_modules/object-is/shim.js +0 -14
- package/claw/node_modules/object-is/test/implementation.js +0 -12
- package/claw/node_modules/object-is/test/index.js +0 -12
- package/claw/node_modules/object-is/test/shimmed.js +0 -28
- package/claw/node_modules/object-is/test/tests.js +0 -57
- package/claw/node_modules/object-keys/.editorconfig +0 -13
- package/claw/node_modules/object-keys/.eslintrc +0 -17
- package/claw/node_modules/object-keys/.travis.yml +0 -277
- package/claw/node_modules/object-keys/CHANGELOG.md +0 -232
- package/claw/node_modules/object-keys/LICENSE +0 -21
- package/claw/node_modules/object-keys/README.md +0 -76
- package/claw/node_modules/object-keys/implementation.js +0 -122
- package/claw/node_modules/object-keys/index.js +0 -32
- package/claw/node_modules/object-keys/isArguments.js +0 -17
- package/claw/node_modules/object-keys/package.json +0 -88
- package/claw/node_modules/object-keys/test/index.js +0 -5
- package/claw/node_modules/object.assign/.editorconfig +0 -20
- package/claw/node_modules/object.assign/.eslintrc +0 -28
- package/claw/node_modules/object.assign/.github/FUNDING.yml +0 -12
- package/claw/node_modules/object.assign/.nycrc +0 -9
- package/claw/node_modules/object.assign/CHANGELOG.md +0 -246
- package/claw/node_modules/object.assign/LICENSE +0 -21
- package/claw/node_modules/object.assign/README.md +0 -136
- package/claw/node_modules/object.assign/auto.js +0 -3
- package/claw/node_modules/object.assign/dist/browser.js +0 -1304
- package/claw/node_modules/object.assign/hasSymbols.js +0 -43
- package/claw/node_modules/object.assign/implementation.js +0 -46
- package/claw/node_modules/object.assign/index.js +0 -22
- package/claw/node_modules/object.assign/package.json +0 -96
- package/claw/node_modules/object.assign/polyfill.js +0 -55
- package/claw/node_modules/object.assign/shim.js +0 -14
- package/claw/node_modules/object.assign/test/implementation.js +0 -19
- package/claw/node_modules/object.assign/test/index.js +0 -17
- package/claw/node_modules/object.assign/test/native.js +0 -49
- package/claw/node_modules/object.assign/test/ses-compat.js +0 -12
- package/claw/node_modules/object.assign/test/shimmed.js +0 -52
- package/claw/node_modules/object.assign/test/tests.js +0 -232
- package/claw/node_modules/possible-typed-array-names/.eslintrc +0 -5
- package/claw/node_modules/possible-typed-array-names/.github/FUNDING.yml +0 -12
- package/claw/node_modules/possible-typed-array-names/CHANGELOG.md +0 -29
- package/claw/node_modules/possible-typed-array-names/LICENSE +0 -21
- package/claw/node_modules/possible-typed-array-names/README.md +0 -50
- package/claw/node_modules/possible-typed-array-names/index.d.ts +0 -16
- package/claw/node_modules/possible-typed-array-names/index.js +0 -17
- package/claw/node_modules/possible-typed-array-names/package.json +0 -84
- package/claw/node_modules/possible-typed-array-names/test/index.js +0 -19
- package/claw/node_modules/possible-typed-array-names/tsconfig.json +0 -9
- package/claw/node_modules/process-nextick-args/index.js +0 -45
- package/claw/node_modules/process-nextick-args/license.md +0 -19
- package/claw/node_modules/process-nextick-args/package.json +0 -25
- package/claw/node_modules/process-nextick-args/readme.md +0 -18
- package/claw/node_modules/readable-stream/.travis.yml +0 -34
- package/claw/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/claw/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/claw/node_modules/readable-stream/LICENSE +0 -47
- package/claw/node_modules/readable-stream/README.md +0 -58
- package/claw/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -60
- package/claw/node_modules/readable-stream/duplex-browser.js +0 -1
- package/claw/node_modules/readable-stream/duplex.js +0 -1
- package/claw/node_modules/readable-stream/lib/_stream_duplex.js +0 -131
- package/claw/node_modules/readable-stream/lib/_stream_passthrough.js +0 -47
- package/claw/node_modules/readable-stream/lib/_stream_readable.js +0 -1019
- package/claw/node_modules/readable-stream/lib/_stream_transform.js +0 -214
- package/claw/node_modules/readable-stream/lib/_stream_writable.js +0 -685
- package/claw/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -78
- package/claw/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -84
- package/claw/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/claw/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/claw/node_modules/readable-stream/node_modules/safe-buffer/LICENSE +0 -21
- package/claw/node_modules/readable-stream/node_modules/safe-buffer/README.md +0 -584
- package/claw/node_modules/readable-stream/node_modules/safe-buffer/index.d.ts +0 -187
- package/claw/node_modules/readable-stream/node_modules/safe-buffer/index.js +0 -62
- package/claw/node_modules/readable-stream/node_modules/safe-buffer/package.json +0 -37
- package/claw/node_modules/readable-stream/package.json +0 -52
- package/claw/node_modules/readable-stream/passthrough.js +0 -1
- package/claw/node_modules/readable-stream/readable-browser.js +0 -7
- package/claw/node_modules/readable-stream/readable.js +0 -19
- package/claw/node_modules/readable-stream/transform.js +0 -1
- package/claw/node_modules/readable-stream/writable-browser.js +0 -1
- package/claw/node_modules/readable-stream/writable.js +0 -8
- package/claw/node_modules/regexp.prototype.flags/.editorconfig +0 -13
- package/claw/node_modules/regexp.prototype.flags/.eslintrc +0 -20
- package/claw/node_modules/regexp.prototype.flags/.nycrc +0 -9
- package/claw/node_modules/regexp.prototype.flags/CHANGELOG.md +0 -249
- package/claw/node_modules/regexp.prototype.flags/LICENSE +0 -22
- package/claw/node_modules/regexp.prototype.flags/README.md +0 -55
- package/claw/node_modules/regexp.prototype.flags/auto.js +0 -3
- package/claw/node_modules/regexp.prototype.flags/implementation.js +0 -39
- package/claw/node_modules/regexp.prototype.flags/index.js +0 -18
- package/claw/node_modules/regexp.prototype.flags/package.json +0 -105
- package/claw/node_modules/regexp.prototype.flags/polyfill.js +0 -39
- package/claw/node_modules/regexp.prototype.flags/shim.js +0 -26
- package/claw/node_modules/regexp.prototype.flags/test/builtin.js +0 -46
- package/claw/node_modules/regexp.prototype.flags/test/implementation.js +0 -20
- package/claw/node_modules/regexp.prototype.flags/test/index.js +0 -17
- package/claw/node_modules/regexp.prototype.flags/test/shimmed.js +0 -48
- package/claw/node_modules/regexp.prototype.flags/test/tests.js +0 -143
- package/claw/node_modules/ripemd160/.github/FUNDING.yml +0 -12
- package/claw/node_modules/ripemd160/CHANGELOG.md +0 -109
- package/claw/node_modules/ripemd160/LICENSE +0 -21
- package/claw/node_modules/ripemd160/README.md +0 -27
- package/claw/node_modules/ripemd160/index.js +0 -167
- package/claw/node_modules/ripemd160/package.json +0 -64
- package/claw/node_modules/safe-buffer/LICENSE +0 -21
- package/claw/node_modules/safe-buffer/README.md +0 -584
- package/claw/node_modules/safe-buffer/index.d.ts +0 -187
- package/claw/node_modules/safe-buffer/index.js +0 -65
- package/claw/node_modules/safe-buffer/package.json +0 -51
- package/claw/node_modules/secure-random/CHANGELOG.md +0 -51
- package/claw/node_modules/secure-random/Makefile +0 -8
- package/claw/node_modules/secure-random/README.md +0 -133
- package/claw/node_modules/secure-random/lib/secure-random.js +0 -83
- package/claw/node_modules/secure-random/package.json +0 -45
- package/claw/node_modules/set-function-length/.eslintrc +0 -27
- package/claw/node_modules/set-function-length/.github/FUNDING.yml +0 -12
- package/claw/node_modules/set-function-length/.nycrc +0 -13
- package/claw/node_modules/set-function-length/CHANGELOG.md +0 -70
- package/claw/node_modules/set-function-length/LICENSE +0 -21
- package/claw/node_modules/set-function-length/README.md +0 -56
- package/claw/node_modules/set-function-length/env.d.ts +0 -9
- package/claw/node_modules/set-function-length/env.js +0 -25
- package/claw/node_modules/set-function-length/index.d.ts +0 -7
- package/claw/node_modules/set-function-length/index.js +0 -42
- package/claw/node_modules/set-function-length/package.json +0 -102
- package/claw/node_modules/set-function-length/tsconfig.json +0 -9
- package/claw/node_modules/set-function-name/.eslintrc +0 -21
- package/claw/node_modules/set-function-name/.github/FUNDING.yml +0 -12
- package/claw/node_modules/set-function-name/CHANGELOG.md +0 -48
- package/claw/node_modules/set-function-name/LICENSE +0 -21
- package/claw/node_modules/set-function-name/README.md +0 -61
- package/claw/node_modules/set-function-name/index.d.ts +0 -5
- package/claw/node_modules/set-function-name/index.js +0 -23
- package/claw/node_modules/set-function-name/package.json +0 -99
- package/claw/node_modules/set-function-name/tsconfig.json +0 -59
- package/claw/node_modules/sha.js/.eslintrc +0 -76
- package/claw/node_modules/sha.js/CHANGELOG.md +0 -423
- package/claw/node_modules/sha.js/LICENSE +0 -49
- package/claw/node_modules/sha.js/README.md +0 -44
- package/claw/node_modules/sha.js/bin.js +0 -44
- package/claw/node_modules/sha.js/hash.js +0 -84
- package/claw/node_modules/sha.js/index.js +0 -19
- package/claw/node_modules/sha.js/package.json +0 -58
- package/claw/node_modules/sha.js/sha.js +0 -104
- package/claw/node_modules/sha.js/sha1.js +0 -109
- package/claw/node_modules/sha.js/sha224.js +0 -55
- package/claw/node_modules/sha.js/sha256.js +0 -189
- package/claw/node_modules/sha.js/sha384.js +0 -59
- package/claw/node_modules/sha.js/sha512.js +0 -382
- package/claw/node_modules/sha.js/test/hash.js +0 -80
- package/claw/node_modules/sha.js/test/test.js +0 -138
- package/claw/node_modules/sha.js/test/vectors.js +0 -72
- package/claw/node_modules/string_decoder/.travis.yml +0 -50
- package/claw/node_modules/string_decoder/LICENSE +0 -48
- package/claw/node_modules/string_decoder/README.md +0 -47
- package/claw/node_modules/string_decoder/lib/string_decoder.js +0 -296
- package/claw/node_modules/string_decoder/node_modules/safe-buffer/LICENSE +0 -21
- package/claw/node_modules/string_decoder/node_modules/safe-buffer/README.md +0 -584
- package/claw/node_modules/string_decoder/node_modules/safe-buffer/index.d.ts +0 -187
- package/claw/node_modules/string_decoder/node_modules/safe-buffer/index.js +0 -62
- package/claw/node_modules/string_decoder/node_modules/safe-buffer/package.json +0 -37
- package/claw/node_modules/string_decoder/package.json +0 -31
- package/claw/node_modules/to-buffer/.github/FUNDING.yml +0 -12
- package/claw/node_modules/to-buffer/CHANGELOG.md +0 -81
- package/claw/node_modules/to-buffer/LICENSE +0 -21
- package/claw/node_modules/to-buffer/README.md +0 -44
- package/claw/node_modules/to-buffer/index.js +0 -109
- package/claw/node_modules/to-buffer/node_modules/isarray/LICENSE +0 -21
- package/claw/node_modules/to-buffer/node_modules/isarray/README.md +0 -38
- package/claw/node_modules/to-buffer/node_modules/isarray/index.js +0 -5
- package/claw/node_modules/to-buffer/node_modules/isarray/package.json +0 -48
- package/claw/node_modules/to-buffer/package.json +0 -62
- package/claw/node_modules/typed-array-buffer/.eslintrc +0 -13
- package/claw/node_modules/typed-array-buffer/.github/FUNDING.yml +0 -12
- package/claw/node_modules/typed-array-buffer/.nycrc +0 -13
- package/claw/node_modules/typed-array-buffer/CHANGELOG.md +0 -50
- package/claw/node_modules/typed-array-buffer/LICENSE +0 -21
- package/claw/node_modules/typed-array-buffer/README.md +0 -42
- package/claw/node_modules/typed-array-buffer/index.d.ts +0 -9
- package/claw/node_modules/typed-array-buffer/index.js +0 -19
- package/claw/node_modules/typed-array-buffer/package.json +0 -82
- package/claw/node_modules/typed-array-buffer/test/index.js +0 -23
- package/claw/node_modules/typed-array-buffer/tsconfig.json +0 -9
- package/claw/node_modules/util/LICENSE +0 -18
- package/claw/node_modules/util/README.md +0 -15
- package/claw/node_modules/util/node_modules/inherits/LICENSE +0 -16
- package/claw/node_modules/util/node_modules/inherits/README.md +0 -42
- package/claw/node_modules/util/node_modules/inherits/inherits.js +0 -7
- package/claw/node_modules/util/node_modules/inherits/inherits_browser.js +0 -23
- package/claw/node_modules/util/node_modules/inherits/package.json +0 -29
- package/claw/node_modules/util/package.json +0 -35
- package/claw/node_modules/util/support/isBuffer.js +0 -3
- package/claw/node_modules/util/support/isBufferBrowser.js +0 -6
- package/claw/node_modules/util/util.js +0 -586
- package/claw/node_modules/util-deprecate/History.md +0 -16
- package/claw/node_modules/util-deprecate/LICENSE +0 -24
- package/claw/node_modules/util-deprecate/README.md +0 -53
- package/claw/node_modules/util-deprecate/browser.js +0 -67
- package/claw/node_modules/util-deprecate/node.js +0 -6
- package/claw/node_modules/util-deprecate/package.json +0 -27
- package/claw/node_modules/which-typed-array/.editorconfig +0 -20
- package/claw/node_modules/which-typed-array/.eslintrc +0 -10
- package/claw/node_modules/which-typed-array/.github/FUNDING.yml +0 -12
- package/claw/node_modules/which-typed-array/.nycrc +0 -13
- package/claw/node_modules/which-typed-array/CHANGELOG.md +0 -269
- package/claw/node_modules/which-typed-array/LICENSE +0 -22
- package/claw/node_modules/which-typed-array/README.md +0 -70
- package/claw/node_modules/which-typed-array/index.d.ts +0 -66
- package/claw/node_modules/which-typed-array/index.js +0 -122
- package/claw/node_modules/which-typed-array/package.json +0 -130
- package/claw/node_modules/which-typed-array/test/index.js +0 -105
- package/claw/node_modules/which-typed-array/tsconfig.json +0 -9
- package/claw/node_modules/ws/LICENSE +0 -21
- package/claw/node_modules/ws/README.md +0 -449
- package/claw/node_modules/ws/browser.js +0 -8
- package/claw/node_modules/ws/index.js +0 -9
- package/claw/node_modules/ws/lib/buffer-util.js +0 -144
- package/claw/node_modules/ws/lib/constants.js +0 -10
- package/claw/node_modules/ws/lib/event-target.js +0 -170
- package/claw/node_modules/ws/lib/extension.js +0 -222
- package/claw/node_modules/ws/lib/permessage-deflate.js +0 -502
- package/claw/node_modules/ws/lib/receiver.js +0 -492
- package/claw/node_modules/ws/lib/sender.js +0 -358
- package/claw/node_modules/ws/lib/validation.js +0 -30
- package/claw/node_modules/ws/lib/websocket-server.js +0 -415
- package/claw/node_modules/ws/lib/websocket.js +0 -895
- package/claw/node_modules/ws/package.json +0 -45
- package/dist/analysis/chart_utils.d.ts +0 -27
- package/dist/analysis/chart_utils.d.ts.map +0 -1
- package/dist/analysis/chart_utils.js.map +0 -1
- package/dist/analysis/math_utils.d.ts +0 -22
- package/dist/analysis/math_utils.d.ts.map +0 -1
- package/dist/analysis/math_utils.js +0 -43
- package/dist/analysis/math_utils.js.map +0 -1
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.d.ts +0 -5
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.d.ts.map +0 -1
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.js.map +0 -1
- package/dist/modules/logger.d.ts +0 -4
- package/dist/modules/logger.d.ts.map +0 -1
- package/dist/modules/logger.js +0 -5
- package/dist/modules/logger.js.map +0 -1
- package/dist/modules/utils/math_utils.d.ts +0 -3
- package/dist/modules/utils/math_utils.d.ts.map +0 -1
- package/dist/modules/utils/math_utils.js +0 -3
- package/dist/modules/utils/math_utils.js.map +0 -1
|
@@ -0,0 +1,874 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import fs from 'node:fs';
|
|
4
|
+
import path from 'node:path';
|
|
5
|
+
import { pathToFileURL } from 'node:url';
|
|
6
|
+
import { escapeHtml, serializeJsonForScript, toEpochSeconds, UPLOT_SHARED_SCRIPT } from './chart_utils.js';
|
|
7
|
+
import { getStorage } from '../modules/storage/index.js';
|
|
8
|
+
const { ensureDir, readJSON } = getStorage();
|
|
9
|
+
import { fixedTo } from '../modules/order/utils/math.js';
|
|
10
|
+
import { bindHoverStateFn, zoomResetScript } from './chart_ui.js';
|
|
11
|
+
'use strict';
|
|
12
|
+
function parseArgs(argv = process.argv.slice(2)) {
|
|
13
|
+
const cfg: { inputFile: string | null; outputFile: string; title: string; quiet: boolean } = {
|
|
14
|
+
inputFile: null,
|
|
15
|
+
outputFile: 'analysis/charts/derivative_chart.html',
|
|
16
|
+
title: 'Derivative Trend Analysis',
|
|
17
|
+
quiet: false,
|
|
18
|
+
};
|
|
19
|
+
for (let i = 0; i < argv.length; i++) {
|
|
20
|
+
const arg = argv[i];
|
|
21
|
+
if (arg === '--input') cfg.inputFile = argv[++i] ?? null;
|
|
22
|
+
else if (arg === '--output') cfg.outputFile = argv[++i] ?? null;
|
|
23
|
+
else if (arg === '--title') cfg.title = argv[++i] ?? null;
|
|
24
|
+
else if (arg === '--quiet') cfg.quiet = true;
|
|
25
|
+
else if (arg === '--help' || arg === '-h') {
|
|
26
|
+
showHelp();
|
|
27
|
+
process.exit(0);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
if (!cfg.inputFile) {
|
|
31
|
+
console.error('Error: --input required');
|
|
32
|
+
showHelp();
|
|
33
|
+
process.exit(1);
|
|
34
|
+
}
|
|
35
|
+
return cfg;
|
|
36
|
+
}
|
|
37
|
+
function showHelp() {
|
|
38
|
+
console.log(`
|
|
39
|
+
Derivative Chart Generator (uPlot)
|
|
40
|
+
Usage:
|
|
41
|
+
tsx analysis/derivative_chart_generator.ts --input <file.json> [options]
|
|
42
|
+
Options:
|
|
43
|
+
--output FILE Output HTML (default: analysis/charts/derivative_chart.html)
|
|
44
|
+
--title TEXT Chart title
|
|
45
|
+
--quiet Suppress output
|
|
46
|
+
`);
|
|
47
|
+
}
|
|
48
|
+
function trendToNum(trend: string) {
|
|
49
|
+
if (trend === 'UP') return 1;
|
|
50
|
+
if (trend === 'DOWN') return -1;
|
|
51
|
+
return 0;
|
|
52
|
+
}
|
|
53
|
+
function countTrend(arr: number[]) {
|
|
54
|
+
return arr.reduce((acc: {total:number, up:number, down:number, neutral:number}, v: number) => {
|
|
55
|
+
acc.total += 1;
|
|
56
|
+
if (v > 0) acc.up += 1;
|
|
57
|
+
else if (v < 0) acc.down += 1;
|
|
58
|
+
else acc.neutral += 1;
|
|
59
|
+
return acc;
|
|
60
|
+
}, { total: 0, up: 0, down: 0, neutral: 0 });
|
|
61
|
+
}
|
|
62
|
+
function countStates(arr: any[], positive: string, negative: string) {
|
|
63
|
+
return arr.reduce((acc: {total:number, positive:number, negative:number, neutral:number}, v: string) => {
|
|
64
|
+
acc.total += 1;
|
|
65
|
+
if (v === positive) acc.positive += 1;
|
|
66
|
+
else if (v === negative) acc.negative += 1;
|
|
67
|
+
else acc.neutral += 1;
|
|
68
|
+
return acc;
|
|
69
|
+
}, { total: 0, positive: 0, negative: 0, neutral: 0 });
|
|
70
|
+
}
|
|
71
|
+
function generateHTML(data: any, title: string) {
|
|
72
|
+
const results = data.allResults || [];
|
|
73
|
+
if (results.length === 0) throw new Error('No analysis results in input');
|
|
74
|
+
const source = data.config?.source || 'Unknown';
|
|
75
|
+
const smaPeriod = data.config?.slowSmaPeriod || 'N/A';
|
|
76
|
+
const fastSmaPeriod = data.config?.fastSmaPeriod || null;
|
|
77
|
+
const hasFastSma = fastSmaPeriod !== null && results.some((r: any) => r.fastSmaValue !== null && r.fastSmaValue !== undefined);
|
|
78
|
+
const macdFast = data.config?.macdFastPeriod ?? 12;
|
|
79
|
+
const macdSlow = data.config?.macdSlowPeriod ?? 26;
|
|
80
|
+
const macdSig = data.config?.macdSignalPeriod ?? 9;
|
|
81
|
+
const rsiPeriod = data.config?.rsiPeriod ?? 14;
|
|
82
|
+
const rsiOB = data.config?.rsiExtreme ?? 90;
|
|
83
|
+
const rsiOS = 100 - rsiOB;
|
|
84
|
+
const dates = results.map((r: any, idx: number) => toEpochSeconds(r.timestamp || Date.now(), idx));
|
|
85
|
+
const prices = results.map((r: any) => r.price);
|
|
86
|
+
const smaValues = results.map((r: any) => r.slowSma);
|
|
87
|
+
const fastSmaValues = results.map((r: any) => r.fastSmaValue);
|
|
88
|
+
const smaNum = results.map((r: any) => trendToNum(r.smaRawTrend));
|
|
89
|
+
const smaUp = smaNum.map((v: any) => (v > 0 ? 1 : 0));
|
|
90
|
+
const smaDown = smaNum.map((v: any) => (v < 0 ? -1 : 0));
|
|
91
|
+
const smaConf = results.map((r: any) => r.smaConfidence ?? 0);
|
|
92
|
+
const fastSmaNum = results.map((r: any) => trendToNum(r.fastSmaRawTrend));
|
|
93
|
+
const fastSmaUp = fastSmaNum.map((v: any) => (v > 0 ? 1 : 0));
|
|
94
|
+
const fastSmaDown = fastSmaNum.map((v: any) => (v < 0 ? -1 : 0));
|
|
95
|
+
const fastSmaConf = results.map((r: any) => r.fastSmaConfidence || 0);
|
|
96
|
+
const macdHistogram = results.map((r: any) => r.macdHistogram ?? null);
|
|
97
|
+
const macdLine = results.map((r: any) => r.macdLine ?? null);
|
|
98
|
+
const macdSignal = results.map((r: any) => r.macdSignal ?? null);
|
|
99
|
+
const macdHistUp = macdHistogram.map((v: any) => (v !== null && v > 0 ? v : null));
|
|
100
|
+
const macdHistDown = macdHistogram.map((v: any) => (v !== null && v < 0 ? v : null));
|
|
101
|
+
const rsiValues = results.map((r: any) => r.rsi ?? null);
|
|
102
|
+
const interpState = results.map((r: any) => r.interpretation || 'NEUTRAL');
|
|
103
|
+
const interpBars = results.map((r: any) => r.interpretationBars ?? 0);
|
|
104
|
+
const interpValues = interpState.map((s: string) => (
|
|
105
|
+
s === 'BULL' ? 0.75
|
|
106
|
+
: s === 'BULL_WEAK' ? 0.35
|
|
107
|
+
: s === 'OVERBOUGHT' ? 0.95
|
|
108
|
+
: s === 'BEAR' ? -0.75
|
|
109
|
+
: s === 'BEAR_WEAK' ? -0.35
|
|
110
|
+
: s === 'OVERSOLD' ? -0.95
|
|
111
|
+
: 0
|
|
112
|
+
));
|
|
113
|
+
const interpBull = interpState.map((s: string) => (s === 'BULL' ? 1 : 0));
|
|
114
|
+
const interpBullWeak = interpState.map((s: string) => (s === 'BULL_WEAK' ? 0.5 : 0));
|
|
115
|
+
const interpOB = interpState.map((s: string) => (s === 'OVERBOUGHT' ? 0.75 : 0));
|
|
116
|
+
const interpBear = interpState.map((s: string) => (s === 'BEAR' ? -1 : 0));
|
|
117
|
+
const interpBearWeak = interpState.map((s: string) => (s === 'BEAR_WEAK' ? -0.5 : 0));
|
|
118
|
+
const interpOS = interpState.map((s: string) => (s === 'OVERSOLD' ? -0.75 : 0));
|
|
119
|
+
const interpBullBlock = interpState.map((s: string) => (s === 'BULL' ? 1 : 0));
|
|
120
|
+
const interpBullWeakBlock = interpState.map((s: string) => (s === 'BULL_WEAK' ? 1 : 0));
|
|
121
|
+
const interpOBBlock = interpState.map((s: string) => (s === 'OVERBOUGHT' ? 1 : 0));
|
|
122
|
+
const interpBearBlock = interpState.map((s: string) => (s === 'BEAR' ? -1 : 0));
|
|
123
|
+
const interpBearWeakBlock = interpState.map((s: string) => (s === 'BEAR_WEAK' ? -1 : 0));
|
|
124
|
+
const interpOSBlock = interpState.map((s: string) => (s === 'OVERSOLD' ? -1 : 0));
|
|
125
|
+
const entryBias = results.map((r: any) => r.entryBias || 'NONE');
|
|
126
|
+
const entryLabelMap = {
|
|
127
|
+
NONE: 'No fresh entry',
|
|
128
|
+
EARLY_LONG: 'Early long entry',
|
|
129
|
+
CONFIRM_LONG: 'Confirmed long entry',
|
|
130
|
+
LATE_LONG: 'Late long entry',
|
|
131
|
+
EARLY_SHORT: 'Early short entry',
|
|
132
|
+
CONFIRM_SHORT: 'Confirmed short entry',
|
|
133
|
+
LATE_SHORT: 'Late short entry',
|
|
134
|
+
};
|
|
135
|
+
const entryBiasLabel = entryBias.map((v: any) => (entryLabelMap as Record<string, any>)[v] || v);
|
|
136
|
+
const signalPhase = results.map((_r: any, i: any) => {
|
|
137
|
+
if (entryBias[i] !== 'NONE') return (entryLabelMap as Record<string, any>)[entryBias[i]] || entryBias[i];
|
|
138
|
+
switch (interpState[i]) {
|
|
139
|
+
case 'BULL':
|
|
140
|
+
return 'Bull trend active';
|
|
141
|
+
case 'BULL_WEAK':
|
|
142
|
+
return 'Bull setup active';
|
|
143
|
+
case 'BEAR':
|
|
144
|
+
return 'Bear trend active';
|
|
145
|
+
case 'BEAR_WEAK':
|
|
146
|
+
return 'Bear setup active';
|
|
147
|
+
case 'OVERBOUGHT':
|
|
148
|
+
return 'Overbought exit pressure';
|
|
149
|
+
case 'OVERSOLD':
|
|
150
|
+
return 'Oversold exit pressure';
|
|
151
|
+
default:
|
|
152
|
+
return 'No active setup';
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
const bullWeakEntryMarkers = results.map((r: any) => (r.isBullWeakEntry ? 0.38 : null));
|
|
156
|
+
const bullConfirmationMarkers = results.map((r: any) => (r.isBullConfirmation ? 0.88 : null));
|
|
157
|
+
const lateBullMarkers = results.map((r: any) => (r.isLateBullWithoutWeak ? 0.88 : null));
|
|
158
|
+
const bearWeakEntryMarkers = results.map((r: any) => (r.isBearWeakEntry ? -0.38 : null));
|
|
159
|
+
const bearConfirmationMarkers = results.map((r: any) => (r.isBearConfirmation ? -0.88 : null));
|
|
160
|
+
const lateBearMarkers = results.map((r: any) => (r.isLateBearWithoutWeak ? -0.88 : null));
|
|
161
|
+
const priceSeries = prices.filter((v: any) => Number.isFinite(v));
|
|
162
|
+
const priceStart = priceSeries.length ? priceSeries[0] : null;
|
|
163
|
+
const priceEnd = priceSeries.length ? priceSeries[priceSeries.length - 1] : null;
|
|
164
|
+
const priceHigh = priceSeries.length ? Math.max(...priceSeries) : null;
|
|
165
|
+
const priceLow = priceSeries.length ? Math.min(...priceSeries) : null;
|
|
166
|
+
const priceChange = priceStart !== null && priceEnd !== null ? priceEnd - priceStart : null;
|
|
167
|
+
const priceChangePct = priceStart !== null && priceEnd !== null && priceStart !== 0
|
|
168
|
+
? ((priceEnd - priceStart) / priceStart) * 100
|
|
169
|
+
: null;
|
|
170
|
+
const smaTotals = countTrend(smaNum);
|
|
171
|
+
const fastSmaTotals = countTrend(fastSmaNum);
|
|
172
|
+
const macdTotals = countTrend(results.map((r: any) => (r.macdTrend === 'BULL' ? 1 : r.macdTrend === 'BEAR' ? -1 : 0)));
|
|
173
|
+
const rsiTotals = countStates(results.map((r: any) => r.rsiZone || 'NEUTRAL'), 'OVERBOUGHT', 'OVERSOLD');
|
|
174
|
+
const signalTotals = (() => {
|
|
175
|
+
let up = 0, down = 0, prev = null;
|
|
176
|
+
for (const state of interpState) {
|
|
177
|
+
const isBull = state === 'BULL' || state === 'BULL_WEAK';
|
|
178
|
+
const isBear = state === 'BEAR' || state === 'BEAR_WEAK';
|
|
179
|
+
if (isBull) {
|
|
180
|
+
if (state !== prev) up += 1;
|
|
181
|
+
} else if (isBear) {
|
|
182
|
+
if (state !== prev) down += 1;
|
|
183
|
+
}
|
|
184
|
+
prev = state;
|
|
185
|
+
}
|
|
186
|
+
return { up, down };
|
|
187
|
+
})();
|
|
188
|
+
const candleCount = results.length;
|
|
189
|
+
const fmtPrice = (v: any) => (v === null ? 'n/a' : fixedTo(v, 6));
|
|
190
|
+
const fmtSignedPrice = (v: any) => (v === null ? 'n/a' : `${v >= 0 ? '+' : ''}${Math.round(Number(v))}`);
|
|
191
|
+
const fmtPct = (v: any) => (v === null ? 'n/a' : `${v >= 0 ? '+' : ''}${Math.round(Number(v))}%`);
|
|
192
|
+
const fmtShare = (count: any) => (candleCount > 0 ? `${Math.round((count / candleCount) * 100)}%` : 'n/a');
|
|
193
|
+
const headerParts: string[] = [];
|
|
194
|
+
if (smaPeriod !== 'N/A') headerParts.push(`SMA(${smaPeriod})`);
|
|
195
|
+
if (hasFastSma) headerParts.push(`fastSMA(${fastSmaPeriod})`);
|
|
196
|
+
headerParts.push(`MACD(${macdFast},${macdSlow},${macdSig})`);
|
|
197
|
+
headerParts.push(`RSI(${rsiPeriod})`);
|
|
198
|
+
const headerSub = headerParts.join(' · ');
|
|
199
|
+
const statsPanel = `
|
|
200
|
+
<div><span class="label">Candles</span> <span class="val">${results.length}</span></div>
|
|
201
|
+
<div style="margin-top:6px"><span class="label">── Price summary ──</span></div>
|
|
202
|
+
<div><span class="label">Start</span> <span class="val">${fmtPrice(priceStart)}</span></div>
|
|
203
|
+
<div><span class="label">End</span> <span class="val">${fmtPrice(priceEnd)}</span></div>
|
|
204
|
+
<div style="margin-top:4px"></div>
|
|
205
|
+
<div><span class="label">High</span> <span class="val">${fmtPrice(priceHigh)}</span></div>
|
|
206
|
+
<div><span class="label">Low</span> <span class="val">${fmtPrice(priceLow)}</span></div>
|
|
207
|
+
<div style="margin-top:4px"></div>
|
|
208
|
+
<div><span class="label">Abs change</span> <span class="val">${fmtSignedPrice(priceChange)}</span></div>
|
|
209
|
+
<div><span class="label">Rel change</span> <span class="val">${fmtPct(priceChangePct)}</span></div>
|
|
210
|
+
<div style="margin-top:6px"><span class="label">── Totals ──</span></div>
|
|
211
|
+
<div><span class="label">SMA(${smaPeriod})</span> <span class="val"><span class="pos">▲</span>${fmtShare(smaTotals.up)} <span class="neg">▼</span>${fmtShare(smaTotals.down)} <span class="muted">●</span>${fmtShare(smaTotals.neutral)}</span></div>
|
|
212
|
+
${hasFastSma ? `<div><span class="label">fastSMA(${fastSmaPeriod})</span> <span class="val"><span class="pos">▲</span>${fmtShare(fastSmaTotals.up)} <span class="neg">▼</span>${fmtShare(fastSmaTotals.down)} <span class="muted">●</span>${fmtShare(fastSmaTotals.neutral)}</span></div>` : ''}
|
|
213
|
+
<div style="margin-top:4px"></div>
|
|
214
|
+
<div><span class="label">MACD(${macdFast},${macdSlow},${macdSig})</span> <span class="val"><span class="pos">▲</span>${fmtShare(macdTotals.up)} <span class="neg">▼</span>${fmtShare(macdTotals.down)} <span class="muted">●</span>${fmtShare(macdTotals.neutral)}</span></div>
|
|
215
|
+
<div><span class="label">RSI(${rsiPeriod})</span> <span class="val"><span class="pos">▲</span>${fmtShare(rsiTotals.positive)} <span class="neg">▼</span>${fmtShare(rsiTotals.negative)} <span class="muted">●</span>${fmtShare(rsiTotals.neutral)}</span></div>
|
|
216
|
+
<div style="margin-top:4px"></div>
|
|
217
|
+
<div><span class="label">Signals</span> <span class="val"><span class="pos">▲</span>${signalTotals.up} <span class="neg">▼</span>${signalTotals.down}</span></div>
|
|
218
|
+
`;
|
|
219
|
+
const chartId = `deriv-uplot-${Date.now()}-${Math.random().toString(36).slice(2)}`;
|
|
220
|
+
return `<!DOCTYPE html>
|
|
221
|
+
<html lang="en">
|
|
222
|
+
<head>
|
|
223
|
+
<meta charset="UTF-8">
|
|
224
|
+
<meta name="darkreader-lock">
|
|
225
|
+
<meta name="color-scheme" content="dark">
|
|
226
|
+
<title>${escapeHtml(title)}</title>
|
|
227
|
+
<link rel="stylesheet" href="../uplot/uPlot.min.css">
|
|
228
|
+
<script src="../uplot/uPlot.iife.min.js"></script>
|
|
229
|
+
<style>
|
|
230
|
+
:root { color-scheme: dark; }
|
|
231
|
+
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
232
|
+
body {
|
|
233
|
+
background: #0e1117;
|
|
234
|
+
color: #e0e0e0;
|
|
235
|
+
font-family: 'Segoe UI', sans-serif;
|
|
236
|
+
overflow: hidden;
|
|
237
|
+
}
|
|
238
|
+
#header {
|
|
239
|
+
position: fixed;
|
|
240
|
+
top: 0;
|
|
241
|
+
left: 0;
|
|
242
|
+
right: 0;
|
|
243
|
+
z-index: 100;
|
|
244
|
+
background: rgba(14,17,23,0.92);
|
|
245
|
+
backdrop-filter: blur(4px);
|
|
246
|
+
border-bottom: 1px solid #2a2e3e;
|
|
247
|
+
padding: 8px 20px;
|
|
248
|
+
display: flex;
|
|
249
|
+
align-items: center;
|
|
250
|
+
gap: 18px;
|
|
251
|
+
}
|
|
252
|
+
#header h1 { font-size: 16px; font-weight: 600; color: #fff; white-space: nowrap; }
|
|
253
|
+
#header .sub { font-size: 11px; color: #888; white-space: nowrap; }
|
|
254
|
+
#stats {
|
|
255
|
+
position: fixed;
|
|
256
|
+
top: 160px;
|
|
257
|
+
right: 10px;
|
|
258
|
+
z-index: 100;
|
|
259
|
+
background: rgba(20,24,32,0.92);
|
|
260
|
+
backdrop-filter: blur(4px);
|
|
261
|
+
border: 1px solid #2a2e3e;
|
|
262
|
+
border-radius: 6px;
|
|
263
|
+
padding: 10px 14px;
|
|
264
|
+
font-size: 12px;
|
|
265
|
+
line-height: 1.85;
|
|
266
|
+
min-width: 230px;
|
|
267
|
+
}
|
|
268
|
+
#stats .label { color: #888; }
|
|
269
|
+
#stats .val { color: #e0e0e0; font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
270
|
+
#stats .pos { color: #26a69a; }
|
|
271
|
+
#stats .neg { color: #ef5350; }
|
|
272
|
+
#stats .muted { color: #9ca3b8; }
|
|
273
|
+
#charts {
|
|
274
|
+
position: fixed;
|
|
275
|
+
top: 44px;
|
|
276
|
+
left: 0;
|
|
277
|
+
right: 276px;
|
|
278
|
+
bottom: 0;
|
|
279
|
+
padding-top: 0;
|
|
280
|
+
display: flex;
|
|
281
|
+
flex-direction: column;
|
|
282
|
+
gap: 0;
|
|
283
|
+
border-right: 1px solid #2a2e3e;
|
|
284
|
+
}
|
|
285
|
+
.chart {
|
|
286
|
+
width: 100%;
|
|
287
|
+
min-height: 0;
|
|
288
|
+
position: relative;
|
|
289
|
+
padding-top: 18px;
|
|
290
|
+
}
|
|
291
|
+
.chart::before {
|
|
292
|
+
content: attr(data-panel-title);
|
|
293
|
+
position: absolute;
|
|
294
|
+
top: 4px;
|
|
295
|
+
left: 10px;
|
|
296
|
+
z-index: 2;
|
|
297
|
+
pointer-events: none;
|
|
298
|
+
font-size: 10px;
|
|
299
|
+
letter-spacing: 0.08em;
|
|
300
|
+
text-transform: uppercase;
|
|
301
|
+
color: #8ea3be;
|
|
302
|
+
background: rgba(14,17,23,0.84);
|
|
303
|
+
border: 1px solid #263042;
|
|
304
|
+
border-radius: 999px;
|
|
305
|
+
padding: 2px 8px;
|
|
306
|
+
}
|
|
307
|
+
#price-chart { flex: 2.35; }
|
|
308
|
+
#deriv-chart { flex: 0.78; }
|
|
309
|
+
#interp-chart { flex: 1.22; }
|
|
310
|
+
#macd-chart { flex: 1.05; }
|
|
311
|
+
#rsi-chart { flex: 1.28; min-height: 0; }
|
|
312
|
+
.uplot { background: #0e1117; }
|
|
313
|
+
.u-cursor-y { display: none !important; border-top: 1px dashed rgba(255,255,255,0.35) !important; background: transparent !important; }
|
|
314
|
+
.uplot.is-hovered .u-cursor-y { display: block !important; }
|
|
315
|
+
.u-cursor-x { border-left: 1px dashed rgba(255,255,255,0.35) !important; background: transparent !important; }
|
|
316
|
+
.u-legend { display: none !important; }
|
|
317
|
+
#global-tooltip {
|
|
318
|
+
position: fixed;
|
|
319
|
+
z-index: 200;
|
|
320
|
+
pointer-events: none;
|
|
321
|
+
background: rgba(14,17,23,0.96);
|
|
322
|
+
border: 1px solid #2a2e3e;
|
|
323
|
+
border-radius: 6px;
|
|
324
|
+
padding: 8px 12px;
|
|
325
|
+
font-size: 11px;
|
|
326
|
+
line-height: 1.6;
|
|
327
|
+
color: #e0e0e0;
|
|
328
|
+
box-shadow: 0 4px 16px rgba(0,0,0,0.4);
|
|
329
|
+
display: none;
|
|
330
|
+
max-width: 260px;
|
|
331
|
+
white-space: nowrap;
|
|
332
|
+
}
|
|
333
|
+
#global-tooltip .tt-row { display: flex; justify-content: space-between; gap: 16px; }
|
|
334
|
+
#global-tooltip .tt-label { color: #888; }
|
|
335
|
+
#global-tooltip .tt-val { font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
336
|
+
#global-tooltip .tt-sep { border-top: 1px solid #263042; margin: 4px 0; }
|
|
337
|
+
#global-tooltip .tt-head { color: #fff; font-weight: 700; margin-bottom: 4px; }
|
|
338
|
+
</style>
|
|
339
|
+
</head>
|
|
340
|
+
<body>
|
|
341
|
+
<div id="global-tooltip"></div>
|
|
342
|
+
<div id="header">
|
|
343
|
+
<h1>📊 ${escapeHtml(title)}</h1>
|
|
344
|
+
<span class="sub">Source: ${escapeHtml(source)}</span>
|
|
345
|
+
<span class="sub">${headerSub}</span>
|
|
346
|
+
<button id="reset-zoom-btn" onclick="resetZoom()" title="Reset x-axis zoom on all panels" style="background:#1e2330;color:#ccc;border:1px solid #2a2e3e;border-radius:4px;padding:3px 10px;font-size:11px;cursor:pointer;white-space:nowrap;">↺ Reset Zoom</button>
|
|
347
|
+
<span class="sub" style="margin-left:auto">Generated: ${new Date().toLocaleString()}</span>
|
|
348
|
+
</div>
|
|
349
|
+
<div id="stats">${statsPanel}</div>
|
|
350
|
+
<div id="charts">
|
|
351
|
+
<div id="price-chart" class="chart" data-panel-title="Price / AMA"></div>
|
|
352
|
+
<div id="deriv-chart" class="chart" data-panel-title="Trend Blocks"></div>
|
|
353
|
+
<div id="interp-chart" class="chart" data-panel-title="Signal State"></div>
|
|
354
|
+
<div id="macd-chart" class="chart" data-panel-title="MACD"></div>
|
|
355
|
+
<div id="rsi-chart" class="chart" data-panel-title="RSI"></div>
|
|
356
|
+
</div>
|
|
357
|
+
<script type="application/json" id="deriv-payload">${serializeJsonForScript({
|
|
358
|
+
dates,
|
|
359
|
+
prices,
|
|
360
|
+
smaValues,
|
|
361
|
+
fastSmaValues: hasFastSma ? fastSmaValues : null,
|
|
362
|
+
macdHistogram,
|
|
363
|
+
macdLine,
|
|
364
|
+
macdSignal,
|
|
365
|
+
macdHistUp,
|
|
366
|
+
macdHistDown,
|
|
367
|
+
rsiValues,
|
|
368
|
+
interpBull,
|
|
369
|
+
interpBullWeak,
|
|
370
|
+
interpOB,
|
|
371
|
+
interpBear,
|
|
372
|
+
interpBearWeak,
|
|
373
|
+
interpOS,
|
|
374
|
+
interpBullBlock,
|
|
375
|
+
interpBullWeakBlock,
|
|
376
|
+
interpOBBlock,
|
|
377
|
+
interpBearBlock,
|
|
378
|
+
interpBearWeakBlock,
|
|
379
|
+
interpOSBlock,
|
|
380
|
+
interpValues,
|
|
381
|
+
interpState,
|
|
382
|
+
interpBars,
|
|
383
|
+
entryBias,
|
|
384
|
+
entryBiasLabel,
|
|
385
|
+
signalPhase,
|
|
386
|
+
bullWeakEntryMarkers,
|
|
387
|
+
bullConfirmationMarkers,
|
|
388
|
+
lateBullMarkers,
|
|
389
|
+
bearWeakEntryMarkers,
|
|
390
|
+
bearConfirmationMarkers,
|
|
391
|
+
lateBearMarkers,
|
|
392
|
+
smaUp,
|
|
393
|
+
smaDown,
|
|
394
|
+
smaConf,
|
|
395
|
+
smaNum,
|
|
396
|
+
fastSmaUp: hasFastSma ? fastSmaUp : null,
|
|
397
|
+
fastSmaDown: hasFastSma ? fastSmaDown : null,
|
|
398
|
+
fastSmaConf: hasFastSma ? fastSmaConf : null,
|
|
399
|
+
fastSmaNum: hasFastSma ? fastSmaNum : null,
|
|
400
|
+
rsiOB,
|
|
401
|
+
rsiOS,
|
|
402
|
+
})}</script>
|
|
403
|
+
<script>
|
|
404
|
+
const payload = JSON.parse(document.getElementById('deriv-payload').textContent);
|
|
405
|
+
const dates = payload.dates;
|
|
406
|
+
const prices = payload.prices;
|
|
407
|
+
const smaValues = payload.smaValues;
|
|
408
|
+
const fastSmaValues = payload.fastSmaValues || [];
|
|
409
|
+
const macdHistogram = payload.macdHistogram;
|
|
410
|
+
const macdLine = payload.macdLine;
|
|
411
|
+
const macdSignal = payload.macdSignal;
|
|
412
|
+
const macdHistUp = payload.macdHistUp;
|
|
413
|
+
const macdHistDown = payload.macdHistDown;
|
|
414
|
+
const rsiValues = payload.rsiValues;
|
|
415
|
+
const interpBull = payload.interpBull;
|
|
416
|
+
const interpBullWeak = payload.interpBullWeak;
|
|
417
|
+
const interpOB = payload.interpOB;
|
|
418
|
+
const interpBear = payload.interpBear;
|
|
419
|
+
const interpBearWeak = payload.interpBearWeak;
|
|
420
|
+
const interpOS = payload.interpOS;
|
|
421
|
+
const interpBullBlock = payload.interpBullBlock;
|
|
422
|
+
const interpBullWeakBlock = payload.interpBullWeakBlock;
|
|
423
|
+
const interpOBBlock = payload.interpOBBlock;
|
|
424
|
+
const interpBearBlock = payload.interpBearBlock;
|
|
425
|
+
const interpBearWeakBlock = payload.interpBearWeakBlock;
|
|
426
|
+
const interpOSBlock = payload.interpOSBlock;
|
|
427
|
+
const interpValues = payload.interpValues;
|
|
428
|
+
const interpState = payload.interpState;
|
|
429
|
+
const interpBars = payload.interpBars;
|
|
430
|
+
const entryBias = payload.entryBias;
|
|
431
|
+
const entryBiasLabel = payload.entryBiasLabel;
|
|
432
|
+
const signalPhase = payload.signalPhase;
|
|
433
|
+
const bullWeakEntryMarkers = payload.bullWeakEntryMarkers;
|
|
434
|
+
const bullConfirmationMarkers = payload.bullConfirmationMarkers;
|
|
435
|
+
const lateBullMarkers = payload.lateBullMarkers;
|
|
436
|
+
const bearWeakEntryMarkers = payload.bearWeakEntryMarkers;
|
|
437
|
+
const bearConfirmationMarkers = payload.bearConfirmationMarkers;
|
|
438
|
+
const lateBearMarkers = payload.lateBearMarkers;
|
|
439
|
+
const smaUp = payload.smaUp;
|
|
440
|
+
const smaDown = payload.smaDown;
|
|
441
|
+
const smaConf = payload.smaConf;
|
|
442
|
+
const smaNum = payload.smaNum;
|
|
443
|
+
const hasFastSma = Array.isArray(payload.fastSmaValues) && payload.fastSmaValues.length > 0;
|
|
444
|
+
const fastSmaUp = payload.fastSmaUp || [];
|
|
445
|
+
const fastSmaDown = payload.fastSmaDown || [];
|
|
446
|
+
const fastSmaConf = payload.fastSmaConf || [];
|
|
447
|
+
const fastSmaNum = payload.fastSmaNum || [];
|
|
448
|
+
const rsiOB = payload.rsiOB;
|
|
449
|
+
const rsiOS = payload.rsiOS;
|
|
450
|
+
const chartGroupId = ${JSON.stringify(chartId)};
|
|
451
|
+
const THEME = {
|
|
452
|
+
text: '#ccc',
|
|
453
|
+
muted: '#888',
|
|
454
|
+
background: '#0e1117',
|
|
455
|
+
grid: '#1e2330',
|
|
456
|
+
axis: '#ffffff',
|
|
457
|
+
};
|
|
458
|
+
const SIGNAL_GREEN = 'rgba(38,166,154,0.45)';
|
|
459
|
+
const SIGNAL_GREEN_WEAK = 'rgba(38,166,154,0.22)';
|
|
460
|
+
const SIGNAL_GREEN_LIGHT = 'rgba(38,166,154,0.18)';
|
|
461
|
+
const SIGNAL_RED = 'rgba(239,83,80,0.45)';
|
|
462
|
+
const SIGNAL_RED_WEAK = 'rgba(239,83,80,0.22)';
|
|
463
|
+
const SIGNAL_RED_LIGHT = 'rgba(239,83,80,0.18)';
|
|
464
|
+
function initChart(domId, opts, data) {
|
|
465
|
+
if (typeof uPlot === 'undefined') throw new Error('uPlot library did not load');
|
|
466
|
+
const el = document.getElementById(domId);
|
|
467
|
+
const rect = el.getBoundingClientRect();
|
|
468
|
+
const chart = new uPlot({
|
|
469
|
+
...opts,
|
|
470
|
+
width: Math.max(320, Math.floor(rect.width)),
|
|
471
|
+
height: Math.max(110, Math.floor(rect.height)),
|
|
472
|
+
}, data, el);
|
|
473
|
+
chart.root.style.background = THEME.background;
|
|
474
|
+
return chart;
|
|
475
|
+
}
|
|
476
|
+
function fmtShortDate(sec) {
|
|
477
|
+
const d = new Date(sec * 1000);
|
|
478
|
+
return d.toLocaleDateString(undefined, { month: '2-digit', day: '2-digit' });
|
|
479
|
+
}
|
|
480
|
+
function fixedTo(value, decimals) {
|
|
481
|
+
return Number(value).toFixed(decimals);
|
|
482
|
+
}
|
|
483
|
+
function padRange(min, max, lower = 0.04, upper = 0.04) {
|
|
484
|
+
if (!Number.isFinite(min) || !Number.isFinite(max)) return null;
|
|
485
|
+
if (min === max) {
|
|
486
|
+
const delta = Math.abs(min) * 0.03 || 1;
|
|
487
|
+
return [min - delta, max + delta];
|
|
488
|
+
}
|
|
489
|
+
const span = max - min;
|
|
490
|
+
return [min - span * lower, max + span * upper];
|
|
491
|
+
}
|
|
492
|
+
function makeAxis(show, type) {
|
|
493
|
+
return {
|
|
494
|
+
show,
|
|
495
|
+
scale: type,
|
|
496
|
+
stroke: THEME.axis,
|
|
497
|
+
grid: { show: false },
|
|
498
|
+
ticks: { show: true, stroke: THEME.axis, width: 1 },
|
|
499
|
+
size: show ? 34 : 0,
|
|
500
|
+
space: 50,
|
|
501
|
+
font: '10px Segoe UI, sans-serif',
|
|
502
|
+
label: '',
|
|
503
|
+
values: show ? (u, splits) => splits.map((v) => fmtShortDate(v)) : () => [],
|
|
504
|
+
};
|
|
505
|
+
}
|
|
506
|
+
function makeYAxis(show, formatter, size = 58, label = '') {
|
|
507
|
+
return {
|
|
508
|
+
show,
|
|
509
|
+
scale: 'y',
|
|
510
|
+
stroke: THEME.axis,
|
|
511
|
+
grid: { show: true, stroke: THEME.grid },
|
|
512
|
+
ticks: { show: true, stroke: THEME.axis, width: 1 },
|
|
513
|
+
size,
|
|
514
|
+
space: 60,
|
|
515
|
+
font: '10px Segoe UI, sans-serif',
|
|
516
|
+
values: formatter,
|
|
517
|
+
label,
|
|
518
|
+
labelSize: label ? 14 : 0,
|
|
519
|
+
labelGap: 4,
|
|
520
|
+
labelFont: '10px Segoe UI, sans-serif',
|
|
521
|
+
};
|
|
522
|
+
}
|
|
523
|
+
function makeCursor() {
|
|
524
|
+
return {
|
|
525
|
+
show: true,
|
|
526
|
+
x: true,
|
|
527
|
+
y: true,
|
|
528
|
+
points: { show: false },
|
|
529
|
+
drag: { x: false, y: false, setScale: false },
|
|
530
|
+
sync: { key: chartGroupId, setSeries: false, scales: ['x', null] },
|
|
531
|
+
focus: { prox: -1 },
|
|
532
|
+
};
|
|
533
|
+
}
|
|
534
|
+
function makePlotBase(showX, yFormatter, yScale) {
|
|
535
|
+
return {
|
|
536
|
+
width: 0,
|
|
537
|
+
height: 0,
|
|
538
|
+
title: null,
|
|
539
|
+
legend: { show: false },
|
|
540
|
+
cursor: makeCursor(),
|
|
541
|
+
select: { show: false },
|
|
542
|
+
scales: {
|
|
543
|
+
x: { time: true },
|
|
544
|
+
y: yScale,
|
|
545
|
+
},
|
|
546
|
+
axes: [
|
|
547
|
+
makeAxis(showX, 'x'),
|
|
548
|
+
makeYAxis(true, yFormatter),
|
|
549
|
+
],
|
|
550
|
+
series: [
|
|
551
|
+
{ label: 'Time' },
|
|
552
|
+
],
|
|
553
|
+
padding: [10, 16, 0, 0],
|
|
554
|
+
hooks: {
|
|
555
|
+
ready: [
|
|
556
|
+
(u) => {
|
|
557
|
+
u.root.style.background = THEME.background;
|
|
558
|
+
},
|
|
559
|
+
],
|
|
560
|
+
},
|
|
561
|
+
};
|
|
562
|
+
}
|
|
563
|
+
function lineSeries(name, color, width, extra = {}) {
|
|
564
|
+
return {
|
|
565
|
+
label: name,
|
|
566
|
+
stroke: color,
|
|
567
|
+
width,
|
|
568
|
+
points: { show: false },
|
|
569
|
+
fill: null,
|
|
570
|
+
...extra,
|
|
571
|
+
};
|
|
572
|
+
}
|
|
573
|
+
function barSeries(name, color, fill) {
|
|
574
|
+
return {
|
|
575
|
+
label: name,
|
|
576
|
+
stroke: color,
|
|
577
|
+
fill,
|
|
578
|
+
width: 1,
|
|
579
|
+
points: { show: false },
|
|
580
|
+
paths: uPlot.paths.bars({ align: 0, gap: 1, size: [0.72, 14, 1] }),
|
|
581
|
+
};
|
|
582
|
+
}
|
|
583
|
+
function blockSeries(name, color, fill) {
|
|
584
|
+
return {
|
|
585
|
+
label: name,
|
|
586
|
+
stroke: color,
|
|
587
|
+
fill,
|
|
588
|
+
width: 1,
|
|
589
|
+
points: { show: false },
|
|
590
|
+
paths: uPlot.paths.bars({ align: 0, gap: 0, size: [0.96, 18, 1] }),
|
|
591
|
+
};
|
|
592
|
+
}
|
|
593
|
+
function markerSeries(name, color, size = 7) {
|
|
594
|
+
return {
|
|
595
|
+
label: name,
|
|
596
|
+
stroke: 'transparent',
|
|
597
|
+
width: 0,
|
|
598
|
+
points: { show: true, size, space: 0, fill: color, stroke: color },
|
|
599
|
+
};
|
|
600
|
+
}
|
|
601
|
+
function tooltipPlugin() {
|
|
602
|
+
const tooltip = document.getElementById('global-tooltip');
|
|
603
|
+
let lastIdx = -1;
|
|
604
|
+
function updateTooltip(u) {
|
|
605
|
+
const idx = u.cursor.idx;
|
|
606
|
+
if (idx == null || idx === lastIdx) return;
|
|
607
|
+
lastIdx = idx;
|
|
608
|
+
const d = new Date(dates[idx] * 1000);
|
|
609
|
+
const dateStr = d.toLocaleDateString(undefined, { month: 'short', day: 'numeric', year: 'numeric' })
|
|
610
|
+
+ ' ' + d.toLocaleTimeString(undefined, { hour: '2-digit', minute: '2-digit' });
|
|
611
|
+
const priceVal = prices[idx];
|
|
612
|
+
const smaVal = smaValues[idx];
|
|
613
|
+
const fsVal = hasFastSma ? fastSmaValues[idx] : null;
|
|
614
|
+
const macdL = macdLine[idx];
|
|
615
|
+
const macdS = macdSignal[idx];
|
|
616
|
+
const macdH = macdHistogram[idx];
|
|
617
|
+
const rsiVal = rsiValues[idx];
|
|
618
|
+
const state = interpState[idx];
|
|
619
|
+
const entry = entryBiasLabel[idx];
|
|
620
|
+
const bars = interpBars[idx];
|
|
621
|
+
const rows = [
|
|
622
|
+
'<div class="tt-head">' + dateStr + '</div>',
|
|
623
|
+
];
|
|
624
|
+
if (Number.isFinite(priceVal)) {
|
|
625
|
+
rows.push('<div class="tt-row"><span class="tt-label">Price</span><span class="tt-val">' + priceVal.toFixed(6) + '</span></div>');
|
|
626
|
+
}
|
|
627
|
+
if (Number.isFinite(smaVal)) {
|
|
628
|
+
rows.push('<div class="tt-row"><span class="tt-label">SMA(' + ${JSON.stringify(smaPeriod)} + ')</span><span class="tt-val">' + smaVal.toFixed(6) + '</span></div>');
|
|
629
|
+
}
|
|
630
|
+
if (hasFastSma && Number.isFinite(fsVal)) {
|
|
631
|
+
rows.push('<div class="tt-row"><span class="tt-label">fastSMA</span><span class="tt-val">' + fsVal.toFixed(6) + '</span></div>');
|
|
632
|
+
}
|
|
633
|
+
rows.push('<div class="tt-sep"></div>');
|
|
634
|
+
if (entry && entry !== 'No fresh entry') {
|
|
635
|
+
const entryColor = entry.includes('Long') ? '#26a69a' : entry.includes('Short') ? '#ef5350' : '#ccc';
|
|
636
|
+
rows.push('<div class="tt-row"><span class="tt-label">Entry</span><span class="tt-val" style="color:' + entryColor + '">' + entry + '</span></div>');
|
|
637
|
+
}
|
|
638
|
+
if (state && state !== 'NEUTRAL') {
|
|
639
|
+
const stateColor = state.startsWith('BULL') || state === 'OVERBOUGHT' ? '#26a69a' : state.startsWith('BEAR') || state === 'OVERSOLD' ? '#ef5350' : '#ccc';
|
|
640
|
+
rows.push('<div class="tt-row"><span class="tt-label">State</span><span class="tt-val" style="color:' + stateColor + '">' + state + (bars > 0 ? ' (' + bars + ' bars)' : '') + '</span></div>');
|
|
641
|
+
}
|
|
642
|
+
rows.push('<div class="tt-sep"></div>');
|
|
643
|
+
if (Number.isFinite(macdL) && Number.isFinite(macdS)) {
|
|
644
|
+
rows.push('<div class="tt-row"><span class="tt-label">MACD</span><span class="tt-val">' + macdL.toFixed(4) + '</span></div>');
|
|
645
|
+
rows.push('<div class="tt-row"><span class="tt-label">Signal</span><span class="tt-val">' + macdS.toFixed(4) + '</span></div>');
|
|
646
|
+
rows.push('<div class="tt-row"><span class="tt-label">Hist</span><span class="tt-val">' + (macdH >= 0 ? '+' : '') + macdH.toFixed(4) + '</span></div>');
|
|
647
|
+
}
|
|
648
|
+
if (Number.isFinite(rsiVal)) {
|
|
649
|
+
rows.push('<div class="tt-row"><span class="tt-label">RSI</span><span class="tt-val">' + rsiVal.toFixed(1) + '</span></div>');
|
|
650
|
+
}
|
|
651
|
+
tooltip.innerHTML = rows.join('');
|
|
652
|
+
}
|
|
653
|
+
return {
|
|
654
|
+
hooks: {
|
|
655
|
+
init: [(u) => {
|
|
656
|
+
u.over.addEventListener('mouseenter', () => { tooltip.style.display = 'block'; });
|
|
657
|
+
u.over.addEventListener('mouseleave', () => { tooltip.style.display = 'none'; lastIdx = -1; });
|
|
658
|
+
}],
|
|
659
|
+
setCursor: [(u) => {
|
|
660
|
+
updateTooltip(u);
|
|
661
|
+
const { left, top } = u.cursor;
|
|
662
|
+
const rect = u.root.getBoundingClientRect();
|
|
663
|
+
const ttWidth = tooltip.offsetWidth || 220;
|
|
664
|
+
const ttHeight = tooltip.offsetHeight || 180;
|
|
665
|
+
let x = rect.left + left + 16;
|
|
666
|
+
let y = rect.top + top + 16;
|
|
667
|
+
if (x + ttWidth > window.innerWidth - 12) x = rect.left + left - ttWidth - 16;
|
|
668
|
+
if (y + ttHeight > window.innerHeight - 12) y = rect.top + top - ttHeight - 16;
|
|
669
|
+
tooltip.style.left = x + 'px';
|
|
670
|
+
tooltip.style.top = y + 'px';
|
|
671
|
+
}],
|
|
672
|
+
},
|
|
673
|
+
};
|
|
674
|
+
}
|
|
675
|
+
function applyChartHeights() {
|
|
676
|
+
const available = Math.max(window.innerHeight - 44, 300);
|
|
677
|
+
const specs = [
|
|
678
|
+
['price-chart', 2.35],
|
|
679
|
+
['deriv-chart', 0.78],
|
|
680
|
+
['interp-chart', 1.22],
|
|
681
|
+
['macd-chart', 1.05],
|
|
682
|
+
['rsi-chart', 1.28],
|
|
683
|
+
];
|
|
684
|
+
const minHeight = 60;
|
|
685
|
+
const extraAvailable = Math.max(0, available - (minHeight * specs.length));
|
|
686
|
+
const totalWeight = specs.reduce((sum, [, weight]) => sum + weight, 0);
|
|
687
|
+
let assignedExtra = 0;
|
|
688
|
+
specs.forEach(([id, weight], idx) => {
|
|
689
|
+
const extra = idx === specs.length - 1
|
|
690
|
+
? extraAvailable - assignedExtra
|
|
691
|
+
: Math.floor((extraAvailable * weight) / totalWeight);
|
|
692
|
+
assignedExtra += extra;
|
|
693
|
+
document.getElementById(id).style.height = (minHeight + extra) + 'px';
|
|
694
|
+
});
|
|
695
|
+
}
|
|
696
|
+
let priceChart;
|
|
697
|
+
let derivChart;
|
|
698
|
+
let interpChart;
|
|
699
|
+
let macdChart;
|
|
700
|
+
let rsiChart;
|
|
701
|
+
let charts = [];
|
|
702
|
+
let pendingRange = null;
|
|
703
|
+
let pendingRangeRaf = 0;
|
|
704
|
+
const [xMin, xMax] = [dates[0], dates[dates.length - 1]];
|
|
705
|
+
try {
|
|
706
|
+
priceChart = initChart('price-chart', {
|
|
707
|
+
...makePlotBase(false, (u, vals) => vals.map((v) => fixedTo(v, 6)), {
|
|
708
|
+
auto: true,
|
|
709
|
+
distr: 3,
|
|
710
|
+
log: 10,
|
|
711
|
+
range: (u, min, max) => {
|
|
712
|
+
if (!Number.isFinite(min) || !Number.isFinite(max) || min <= 0 || max <= 0) {
|
|
713
|
+
return [min, max];
|
|
714
|
+
}
|
|
715
|
+
return [min * 0.98, max * 1.03];
|
|
716
|
+
},
|
|
717
|
+
}),
|
|
718
|
+
axes: [
|
|
719
|
+
makeAxis(false, 'x'),
|
|
720
|
+
makeYAxis(true, (u, vals) => vals.map((v) => fixedTo(v, 6)), 62, 'Price'),
|
|
721
|
+
],
|
|
722
|
+
plugins: [tooltipPlugin()],
|
|
723
|
+
series: [
|
|
724
|
+
{ label: 'Time' },
|
|
725
|
+
lineSeries('Price', '#67a8ff', 2.35, { fill: 'rgba(103,168,255,0.08)' }),
|
|
726
|
+
lineSeries('SMA(${smaPeriod})', '#f2b94d', 2),
|
|
727
|
+
${hasFastSma ? `lineSeries('fastSMA(${fastSmaPeriod})', '#ff9d4d', 1.9),` : ''}
|
|
728
|
+
],
|
|
729
|
+
}, [dates, prices, smaValues${hasFastSma ? ', fastSmaValues' : ''}]);
|
|
730
|
+
derivChart = initChart('deriv-chart', {
|
|
731
|
+
...makePlotBase(false, (u, vals) => vals.map((v) => (v === 1 ? 'UP' : v === -1 ? 'DOWN' : '—')), {
|
|
732
|
+
auto: true,
|
|
733
|
+
range: (u, min, max) => [-1.15, 1.15],
|
|
734
|
+
}),
|
|
735
|
+
axes: [
|
|
736
|
+
makeAxis(false, 'x'),
|
|
737
|
+
makeYAxis(true, (u, vals) => vals.map((v) => (v === 1 ? 'UP' : v === -1 ? 'DOWN' : '—')), 56, 'Trend'),
|
|
738
|
+
],
|
|
739
|
+
series: [
|
|
740
|
+
{ label: 'Time' },
|
|
741
|
+
blockSeries('SMA Up', 'rgba(83,214,184,0.88)', 'rgba(83,214,184,0.88)'),
|
|
742
|
+
blockSeries('SMA Down', 'rgba(255,114,105,0.88)', 'rgba(255,114,105,0.88)'),
|
|
743
|
+
${hasFastSma ? `blockSeries('fastSMA Up', 'rgba(251,146,60,0.35)', 'rgba(251,146,60,0.35)'),
|
|
744
|
+
blockSeries('fastSMA Down', 'rgba(251,146,60,0.35)', 'rgba(251,146,60,0.35)'),` : ''}
|
|
745
|
+
lineSeries('Zero', 'rgba(255,255,255,0.20)', 1),
|
|
746
|
+
],
|
|
747
|
+
}, [dates, smaUp, smaDown, ${hasFastSma ? 'fastSmaUp, fastSmaDown, ' : ''}dates.map(() => 0)]);
|
|
748
|
+
interpChart = initChart('interp-chart', {
|
|
749
|
+
...makePlotBase(false, (u, vals) => vals.map((v) => {
|
|
750
|
+
if (v === 1) return 'BULL';
|
|
751
|
+
if (v === 0.75) return 'OS';
|
|
752
|
+
if (v === 0.5) return 'WEAK';
|
|
753
|
+
if (v === 0.35) return 'WEAK';
|
|
754
|
+
if (v === -0.35) return 'WEAK';
|
|
755
|
+
if (v === -0.5) return 'WEAK';
|
|
756
|
+
if (v === -0.75) return 'OB';
|
|
757
|
+
if (v === -1) return 'BEAR';
|
|
758
|
+
return '—';
|
|
759
|
+
}), {
|
|
760
|
+
auto: true,
|
|
761
|
+
range: (u, min, max) => [-1.15, 1.15],
|
|
762
|
+
}),
|
|
763
|
+
axes: [
|
|
764
|
+
makeAxis(false, 'x'),
|
|
765
|
+
makeYAxis(true, (u, vals) => vals.map((v) => {
|
|
766
|
+
if (v === 1) return 'BULL';
|
|
767
|
+
if (v === 0.75) return 'OS';
|
|
768
|
+
if (v === 0.5 || v === -0.5) return 'WEAK';
|
|
769
|
+
if (v === -0.75) return 'OB';
|
|
770
|
+
if (v === -1) return 'BEAR';
|
|
771
|
+
return '—';
|
|
772
|
+
}), 56, 'Signal'),
|
|
773
|
+
],
|
|
774
|
+
series: [
|
|
775
|
+
{ label: 'Time' },
|
|
776
|
+
blockSeries('Bull', SIGNAL_GREEN, SIGNAL_GREEN),
|
|
777
|
+
blockSeries('Bull Weak', SIGNAL_GREEN_WEAK, SIGNAL_GREEN_WEAK),
|
|
778
|
+
blockSeries('Overbought', SIGNAL_GREEN_LIGHT, SIGNAL_GREEN_LIGHT),
|
|
779
|
+
blockSeries('Bear', SIGNAL_RED, SIGNAL_RED),
|
|
780
|
+
blockSeries('Bear Weak', SIGNAL_RED_WEAK, SIGNAL_RED_WEAK),
|
|
781
|
+
blockSeries('Oversold', SIGNAL_RED_LIGHT, SIGNAL_RED_LIGHT),
|
|
782
|
+
lineSeries('Interp', 'rgba(255,255,255,0.35)', 1, { dash: [4, 4] }),
|
|
783
|
+
markerSeries('Early Long', '#67e8f9', 7),
|
|
784
|
+
markerSeries('Confirm Long', '#34d399', 8),
|
|
785
|
+
markerSeries('Late Long', '#f59e0b', 8),
|
|
786
|
+
markerSeries('Early Short', '#fca5a5', 7),
|
|
787
|
+
markerSeries('Confirm Short', '#ef4444', 8),
|
|
788
|
+
markerSeries('Late Short', '#fb7185', 8),
|
|
789
|
+
],
|
|
790
|
+
}, [dates, interpBullBlock, interpBullWeakBlock, interpOBBlock, interpBearBlock, interpBearWeakBlock, interpOSBlock, interpValues, bullWeakEntryMarkers, bullConfirmationMarkers, lateBullMarkers, bearWeakEntryMarkers, bearConfirmationMarkers, lateBearMarkers]);
|
|
791
|
+
macdChart = initChart('macd-chart', {
|
|
792
|
+
...makePlotBase(false, (u, vals) => vals.map((v) => fixedTo(v, 4)), {
|
|
793
|
+
auto: true,
|
|
794
|
+
range: (u, min, max) => {
|
|
795
|
+
const base = padRange(min, max, 0.12, 0.12);
|
|
796
|
+
return base || [min, max];
|
|
797
|
+
},
|
|
798
|
+
}),
|
|
799
|
+
axes: [
|
|
800
|
+
makeAxis(false, 'x'),
|
|
801
|
+
makeYAxis(true, (u, vals) => vals.map((v) => fixedTo(v, 4)), 62, 'MACD %'),
|
|
802
|
+
],
|
|
803
|
+
series: [
|
|
804
|
+
{ label: 'Time' },
|
|
805
|
+
barSeries('Hist+', 'rgba(83,214,184,0.40)', 'rgba(83,214,184,0.40)'),
|
|
806
|
+
barSeries('Hist-', 'rgba(255,114,105,0.40)', 'rgba(255,114,105,0.40)'),
|
|
807
|
+
lineSeries('MACD', '#67a8ff', 1.5),
|
|
808
|
+
lineSeries('Signal', '#ff9d4d', 1.5),
|
|
809
|
+
lineSeries('Zero', 'rgba(255,255,255,0.22)', 1),
|
|
810
|
+
],
|
|
811
|
+
}, [dates, macdHistUp, macdHistDown, macdLine, macdSignal, dates.map(() => 0)]);
|
|
812
|
+
rsiChart = initChart('rsi-chart', {
|
|
813
|
+
...makePlotBase(true, (u, vals) => vals.map((v) => fixedTo(v, 1)), {
|
|
814
|
+
range: (u, min, max) => [0, 100],
|
|
815
|
+
}),
|
|
816
|
+
axes: [
|
|
817
|
+
makeAxis(true, 'x'),
|
|
818
|
+
makeYAxis(true, (u, vals) => vals.map((v) => fixedTo(v, 1)), 56, 'RSI'),
|
|
819
|
+
],
|
|
820
|
+
series: [
|
|
821
|
+
{ label: 'Time' },
|
|
822
|
+
lineSeries('OB', 'rgba(255,114,105,0.35)', 1),
|
|
823
|
+
lineSeries('OS', 'rgba(83,214,184,0.35)', 1),
|
|
824
|
+
lineSeries('Mid', 'rgba(255,255,255,0.18)', 1),
|
|
825
|
+
lineSeries('RSI(${rsiPeriod})', '#c4a5ff', 1.55),
|
|
826
|
+
],
|
|
827
|
+
}, [dates, dates.map(() => rsiOB), dates.map(() => rsiOS), dates.map(() => 50), rsiValues]);
|
|
828
|
+
} catch (err) {
|
|
829
|
+
console.error(err);
|
|
830
|
+
document.getElementById('charts').innerHTML = '<div style="padding:20px;color:#ef5350;white-space:pre-wrap;">' + String(err && err.message ? err.message : err) + '</div>';
|
|
831
|
+
throw err;
|
|
832
|
+
}
|
|
833
|
+
charts = [priceChart, derivChart, interpChart, macdChart, rsiChart];
|
|
834
|
+
${UPLOT_SHARED_SCRIPT}
|
|
835
|
+
${bindHoverStateFn()}
|
|
836
|
+
function resetZoom() {
|
|
837
|
+
syncXRange(xMin, xMax);
|
|
838
|
+
}
|
|
839
|
+
function sizeCharts() {
|
|
840
|
+
applyChartHeights();
|
|
841
|
+
for (const chart of charts) {
|
|
842
|
+
const rect = chart.root.parentElement.getBoundingClientRect();
|
|
843
|
+
chart.setSize({ width: Math.max(320, Math.floor(rect.width)), height: Math.max(100, Math.floor(rect.height)) });
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
window.addEventListener('resize', sizeCharts);
|
|
847
|
+
${zoomResetScript()}
|
|
848
|
+
charts.forEach((chart) => {
|
|
849
|
+
bindWheelZoom(chart);
|
|
850
|
+
bindPan(chart);
|
|
851
|
+
bindHoverState(chart);
|
|
852
|
+
});
|
|
853
|
+
const raf = window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : (fn) => setTimeout(fn, 0);
|
|
854
|
+
raf(() => sizeCharts());
|
|
855
|
+
</script>
|
|
856
|
+
</body>
|
|
857
|
+
</html>`;
|
|
858
|
+
}
|
|
859
|
+
async function main() {
|
|
860
|
+
const cfg = parseArgs();
|
|
861
|
+
const data = readJSON(cfg.inputFile!);
|
|
862
|
+
const html = generateHTML(data, cfg.title);
|
|
863
|
+
ensureDir(path.dirname(cfg.outputFile));
|
|
864
|
+
fs.writeFileSync(cfg.outputFile, html, 'utf8');
|
|
865
|
+
if (!cfg.quiet) console.log(`Chart written to ${cfg.outputFile}`);
|
|
866
|
+
}
|
|
867
|
+
if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) {
|
|
868
|
+
main().catch((err) => {
|
|
869
|
+
console.error(err);
|
|
870
|
+
process.exit(1);
|
|
871
|
+
});
|
|
872
|
+
}
|
|
873
|
+
export { generateHTML, parseArgs, showHelp, trendToNum }
|
|
874
|
+
|