test_research4 0.5.5 → 0.5.7
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/index.js +1 -1
- package/package.json +1 -1
- package/src/client.js +1 -1
- package/src/config.js +1 -1
- package/src/lib/OrgWatcher.js +1 -1
- package/src/lib/auditTrailDownloader.js +1 -1
- package/src/lib/handlerRegistry.js +1 -1
- package/src/lib/icons.js +1 -1
- package/src/lib/initialization.js +1 -1
- package/src/lib/logger.js +1 -1
- package/src/lib/mcpApps/manifest.js +1 -1
- package/src/lib/mcpApps/paths.js +1 -1
- package/src/lib/mcpApps/registerResources.js +1 -1
- package/src/lib/mcpApps/toolMeta.js +1 -1
- package/src/lib/networkUtils.js +1 -1
- package/src/lib/salesforceServices.js +1 -1
- package/src/lib/telemetry.js +1 -1
- package/src/lib/tempManager.js +1 -1
- package/src/lib/transport.js +1 -1
- package/src/lib/versionManager.js +1 -1
- package/src/mcp-server.js +1 -1
- package/src/prompts/apex_run_script.js +1 -1
- package/src/prompts/call_all_tools.js +1 -1
- package/src/prompts/org_onboarding.js +1 -1
- package/src/state.js +1 -1
- package/src/tools/apex_debug_logs.js +1 -1
- package/src/tools/deploy_metadata.js +1 -1
- package/src/tools/describe_object.js +1 -1
- package/src/tools/execute_queries_and_dml.js +1 -1
- package/src/tools/generate_metadata.js +1 -1
- package/src/tools/get_apex_class_code_coverage.js +1 -1
- package/src/tools/get_recently_viewed_records.js +1 -1
- package/src/tools/get_record.js +1 -1
- package/src/tools/get_setup_audit_trail.js +1 -1
- package/src/tools/invoke_apex_rest_resource.js +1 -1
- package/src/tools/run_anonymous_apex.js +1 -1
- package/src/tools/run_apex_test.js +1 -1
- package/src/tools/trigger_execution_order.js +1 -1
- package/src/tools/utils.js +1 -1
- package/src/utils.js +1 -1
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0_0x1883c2=a0_0x1507;function a0_0x534f(){const _0x2a1217=['\x69\x67\x66\x59\x7a\x33\x76\x54\x7a\x77\x35\x30\x43\x57','\x7a\x77\x6e\x6c\x42\x4e\x6d','\x42\x67\x76\x59\x44\x63\x57\x47\x79\x33\x6a\x50\x44\x61','\x76\x78\x6e\x48\x7a\x32\x75\x36','\x74\x33\x62\x30\x41\x77\x39\x55\x43\x5a\x4f','\x79\x77\x58\x4c\x43\x4e\x71','\x69\x67\x48\x30\x44\x68\x61\x47\x6b\x67\x72\x4c\x7a\x47','\x69\x63\x61\x54\x6c\x77\x48\x4c\x42\x68\x61\x53\x69\x61','\x79\x32\x58\x56\x43\x32\x75','\x42\x4d\x66\x54\x7a\x71','\x44\x32\x39\x59\x41\x33\x6e\x57\x79\x77\x6e\x4c\x75\x61','\x6c\x73\x31\x53\x42\x32\x43\x54\x42\x67\x76\x32\x7a\x71','\x69\x63\x30\x54\x44\x68\x6a\x48\x42\x4e\x6e\x57\x42\x57','\x45\x65\x31\x6c\x44\x65\x53','\x76\x31\x62\x52\x7a\x67\x4b','\x6c\x73\x31\x57\x42\x33\x6a\x30','\x7a\x4d\x38\x53\x69\x67\x72\x4c\x79\x4e\x76\x4e\x69\x61','\x42\x33\x6a\x30\x69\x63\x48\x48\x44\x78\x72\x56\x6c\x71','\x44\x4b\x48\x53\x75\x65\x6d','\x72\x78\x48\x48\x42\x78\x62\x53\x7a\x78\x6d\x36','\x42\x67\x54\x66\x73\x31\x65','\x7a\x77\x7a\x48\x44\x77\x58\x30\x6f\x49\x62\x4d\x79\x71','\x69\x63\x61\x47\x69\x63\x61\x47\x76\x68\x6a\x48\x42\x47','\x43\x4e\x71\x47\x41\x68\x72\x30\x43\x63\x61\x54\x6c\x71','\x42\x66\x44\x65\x71\x76\x43','\x73\x4b\x4c\x55\x42\x4e\x4f','\x69\x63\x61\x54\x6c\x77\x58\x56\x7a\x59\x31\x53\x7a\x71','\x69\x68\x44\x48\x43\x4d\x35\x50\x42\x4d\x43\x53\x69\x61','\x76\x4d\x48\x36\x79\x4b\x34','\x42\x4d\x39\x4b\x7a\x74\x50\x57\x79\x78\x72\x4f','\x7a\x4d\x4c\x55\x7a\x68\x6d\x47\x79\x78\x7a\x48\x41\x71','\x7a\x33\x76\x54\x7a\x77\x35\x30\x6f\x49\x61','\x69\x63\x61\x47\x69\x63\x61\x47\x69\x63\x61\x47\x69\x61','\x6c\x33\x62\x48\x44\x67\x47\x56\x44\x67\x38\x56\x43\x61','\x6c\x73\x31\x5a\x41\x77\x58\x4c\x42\x4e\x71','\x42\x68\x76\x4c\x6f\x49\x61','\x69\x63\x62\x74\x73\x75\x58\x66\x74\x4c\x71\x47\x69\x61','\x43\x67\x66\x4a\x7a\x73\x62\x57\x79\x78\x72\x4f\x43\x57','\x79\x30\x58\x30\x71\x4b\x4f','\x43\x4d\x76\x57\x42\x67\x66\x4a\x7a\x71','\x41\x68\x72\x30\x43\x61','\x7a\x77\x31\x4c\x43\x4d\x44\x4c\x42\x4d\x6e\x35','\x41\x4d\x39\x50\x42\x47','\x72\x32\x66\x6e\x73\x31\x43','\x42\x67\x76\x55\x7a\x33\x72\x4f','\x43\x67\x39\x59\x44\x63\x62\x4d\x42\x33\x69\x47\x41\x61','\x7a\x78\x6a\x4e\x7a\x77\x35\x4a\x45\x73\x57\x47\x79\x71','\x6c\x78\x71\x47\x76\x66\x4c\x71\x72\x73\x61\x47\x69\x61','\x6d\x74\x61\x32\x6f\x77\x66\x53\x76\x66\x48\x6d\x45\x71','\x43\x32\x76\x59\x44\x4d\x76\x59\x6c\x4d\x50\x5a','\x46\x64\x44\x38\x6d\x74\x7a\x38\x6d\x4a\x6e\x38\x6d\x47','\x79\x77\x35\x5a\x43\x67\x39\x59\x44\x63\x62\x32\x79\x71','\x6c\x63\x62\x55\x42\x33\x72\x50\x79\x32\x75\x53\x69\x61','\x41\x78\x62\x52\x42\x78\x69','\x79\x78\x72\x4f\x43\x57','\x7a\x67\x76\x49\x44\x77\x43','\x43\x67\x66\x4a\x41\x32\x66\x4e\x7a\x73\x35\x51\x43\x57','\x43\x59\x62\x4f\x7a\x77\x58\x57\x69\x67\x31\x4c\x43\x57','\x42\x4e\x6e\x57\x42\x33\x6a\x30\x69\x68\x7a\x48\x42\x61','\x42\x32\x35\x5a\x6f\x49\x61','\x75\x65\x66\x75\x73\x66\x6d\x50','\x71\x4c\x48\x4c\x72\x75\x43','\x42\x68\x6e\x4c\x6b\x71','\x44\x66\x44\x68\x45\x4c\x43','\x7a\x78\x48\x50\x44\x61','\x75\x68\x4c\x79\x74\x4c\x4b','\x79\x78\x6a\x4e\x44\x47','\x79\x78\x76\x53\x44\x64\x4f\x47\x43\x33\x72\x4b\x41\x71','\x69\x63\x44\x4f\x44\x68\x72\x57\x6a\x57','\x72\x76\x39\x67\x74\x30\x58\x65\x72\x76\x6a\x46\x75\x61','\x6c\x77\x47\x47\x69\x63\x61\x47\x69\x63\x61\x47\x69\x61','\x45\x68\x66\x68\x76\x65\x53','\x43\x32\x4c\x53\x7a\x77\x35\x30','\x6d\x64\x61\x50','\x44\x67\x39\x6d\x42\x33\x44\x4c\x43\x4b\x6e\x48\x43\x57','\x43\x67\x66\x59\x43\x32\x75','\x43\x4b\x72\x63\x44\x77\x65','\x44\x63\x62\x77\x79\x78\x6a\x50\x79\x77\x6a\x53\x7a\x71','\x6d\x4a\x48\x4b\x75\x30\x6a\x49\x43\x4d\x57','\x42\x67\x39\x4e','\x71\x32\x39\x55\x44\x67\x76\x34\x44\x63\x62\x5a\x7a\x71','\x69\x67\x72\x4c\x79\x4e\x76\x4e','\x6f\x49\x62\x5a\x44\x67\x72\x50\x42\x59\x62\x56\x43\x47','\x44\x32\x58\x78\x76\x78\x4b','\x44\x4d\x76\x53\x69\x65\x58\x66\x76\x4b\x76\x6d\x6c\x61','\x7a\x32\x31\x7a\x75\x4d\x57','\x42\x67\x6a\x6c\x72\x4c\x79','\x44\x33\x4c\x64\x43\x4e\x71','\x69\x63\x30\x54\x41\x67\x76\x53\x43\x63\x69\x47\x7a\x47','\x43\x4e\x7a\x4c\x43\x47','\x44\x63\x62\x30\x45\x78\x62\x4c\x6f\x49\x62\x5a\x44\x61','\x43\x32\x66\x4e\x7a\x71','\x6d\x74\x71\x5a\x6e\x4c\x4c\x6e\x42\x75\x31\x59\x76\x57','\x41\x78\x44\x34\x73\x30\x4f','\x43\x4e\x71\x47\x43\x33\x72\x4b\x41\x77\x38\x47\x6c\x71','\x72\x77\x35\x32\x41\x78\x6a\x56\x42\x4d\x31\x4c\x42\x47','\x44\x67\x39\x74\x44\x68\x6a\x50\x42\x4d\x43','\x42\x67\x66\x49\x42\x67\x75\x47\x41\x77\x79\x47\x42\x57','\x6d\x74\x71\x34\x6e\x64\x79\x30\x6d\x74\x7a\x74\x73\x4b\x76\x55\x71\x76\x4f','\x44\x4d\x31\x41\x74\x31\x61','\x34\x50\x32\x6d\x69\x65\x76\x59\x43\x4d\x39\x59\x6f\x49\x62\x6a','\x6b\x67\x72\x4c\x7a\x4d\x66\x31\x42\x68\x71\x36\x69\x61','\x41\x76\x44\x75\x77\x4e\x4f','\x43\x65\x7a\x4f\x73\x67\x47','\x41\x77\x58\x4c\x42\x4e\x71','\x42\x33\x69\x47\x42\x77\x39\x59\x7a\x73\x62\x50\x42\x47','\x43\x33\x62\x56\x43\x4e\x71\x47\x44\x68\x4c\x57\x7a\x71','\x6e\x4a\x4b\x57\x6d\x5a\x4c\x78\x77\x4b\x39\x33\x7a\x65\x6d','\x41\x77\x35\x4d\x42\x59\x57\x47\x7a\x67\x76\x49\x44\x71','\x73\x77\x35\x32\x79\x77\x58\x50\x7a\x63\x62\x30\x43\x47','\x43\x33\x72\x4b\x41\x77\x38','\x42\x49\x57\x47\x6c\x78\x79\x47\x69\x63\x61\x47\x69\x61','\x73\x75\x6a\x6e\x69\x66\x6e\x48\x42\x67\x76\x5a\x7a\x47','\x6a\x33\x6e\x30\x7a\x67\x4c\x56\x6a\x59\x62\x56\x43\x47','\x72\x78\x6a\x59\x42\x33\x69\x47\x43\x33\x72\x48\x43\x47','\x42\x4d\x39\x4b\x7a\x74\x50\x4d\x43\x57','\x76\x33\x4c\x4e\x72\x65\x34','\x6c\x73\x31\x4f\x7a\x77\x58\x57','\x44\x78\x72\x4d\x6f\x61','\x72\x77\x54\x30\x7a\x4c\x61','\x6d\x74\x69\x57\x6e\x74\x79\x30\x6d\x65\x31\x72\x44\x68\x66\x4f\x74\x57','\x74\x75\x35\x77\x73\x76\x4f','\x42\x4e\x7a\x48\x42\x67\x4c\x4b\x69\x67\x58\x56\x7a\x57','\x43\x32\x58\x50\x79\x32\x75','\x69\x63\x62\x74\x41\x67\x39\x33\x69\x68\x7a\x4c\x43\x47','\x41\x77\x35\x4d\x42\x57','\x75\x4d\x76\x4a\x7a\x77\x4c\x32\x7a\x77\x71\x36\x69\x61','\x42\x32\x35\x5a\x6f\x49\x62\x5a\x44\x67\x72\x50\x42\x57','\x69\x67\x39\x31\x44\x68\x62\x31\x44\x63\x61\x4f\x7a\x61','\x69\x63\x62\x78\x74\x31\x6a\x6c\x75\x31\x62\x62\x71\x57','\x44\x68\x72\x57\x69\x68\x72\x59\x79\x77\x35\x5a\x43\x61','\x43\x33\x62\x48\x79\x32\x75\x47\x43\x67\x66\x30\x41\x61','\x44\x68\x6a\x48\x42\x4e\x6e\x57\x42\x33\x6a\x30','\x44\x32\x66\x59\x42\x4d\x4c\x55\x7a\x57','\x74\x75\x4c\x71\x79\x4b\x4f','\x7a\x32\x76\x55\x79\x33\x4b\x53\x69\x67\x66\x53\x7a\x71','\x6d\x74\x69\x57\x6e\x4a\x79\x31\x6d\x32\x7a\x52\x7a\x65\x6e\x55\x72\x47','\x6e\x4e\x57\x59\x6e\x78\x57\x59\x46\x64\x65\x59\x46\x61','\x69\x63\x61\x47\x69\x63\x62\x69\x76\x66\x72\x71\x69\x61','\x42\x67\x39\x4e\x74\x67\x76\x32\x7a\x77\x57','\x69\x66\x6e\x4c\x44\x63\x62\x69\x76\x66\x72\x71\x69\x61','\x43\x67\x66\x59\x43\x32\x76\x6a\x42\x4e\x71','\x6c\x63\x61\x54\x43\x59\x61\x47\x69\x63\x61\x47\x69\x61','\x69\x63\x61\x54\x6c\x78\x44\x56\x43\x4d\x54\x5a\x43\x61','\x69\x63\x61\x47\x69\x63\x62\x74\x41\x77\x58\x4c\x42\x47','\x44\x4c\x48\x34\x79\x4d\x69','\x6f\x64\x47\x35\x6e\x4a\x65\x59\x6e\x78\x4c\x54\x71\x78\x44\x73\x44\x47','\x42\x33\x6a\x4a\x7a\x73\x62\x64\x42\x32\x35\x30\x7a\x71','\x43\x67\x66\x59\x79\x78\x72\x4c\x7a\x63\x4b','\x75\x4d\x6e\x67\x7a\x67\x53','\x79\x75\x6a\x75\x76\x75\x4b','\x69\x63\x61\x47\x69\x63\x62\x6d\x42\x32\x43\x47\x42\x61','\x7a\x4d\x39\x59\x42\x77\x66\x30\x41\x77\x39\x55','\x42\x77\x76\x6b\x7a\x77\x57','\x42\x4d\x39\x30\x41\x77\x6e\x4c\x6c\x63\x62\x50\x42\x47','\x76\x77\x35\x52\x42\x4d\x39\x33\x42\x49\x62\x48\x43\x47','\x43\x4e\x71\x47\x43\x33\x72\x4b\x41\x77\x38','\x44\x30\x4c\x6b\x7a\x66\x6d','\x75\x31\x62\x70\x75\x4c\x71\x47\x69\x63\x61\x47\x69\x61','\x45\x68\x71\x47\x44\x47','\x41\x68\x72\x30\x43\x66\x62\x56\x43\x4e\x71','\x71\x76\x72\x69\x75\x59\x62\x78\x42\x33\x6a\x52\x43\x57','\x42\x30\x76\x68\x42\x4b\x30','\x43\x33\x62\x53\x41\x78\x71','\x76\x4d\x66\x53\x41\x77\x71\x47\x42\x33\x62\x30\x41\x71','\x7a\x78\x6d\x47\x74\x75\x6e\x71\x78\x31\x72\x73\x71\x71','\x43\x59\x61\x4f\x42\x33\x7a\x4c\x43\x4e\x6a\x50\x7a\x61','\x42\x4e\x7a\x48\x42\x67\x4c\x4b\x69\x68\x72\x59\x79\x71','\x69\x63\x62\x74\x7a\x78\x71\x47\x44\x32\x39\x59\x41\x57','\x76\x31\x6a\x68\x44\x31\x43','\x69\x63\x31\x33\x69\x66\x62\x62\x76\x65\x48\x74\x69\x61','\x71\x30\x76\x46\x72\x4b\x39\x6d\x72\x65\x76\x73\x78\x57','\x7a\x78\x6a\x59\x42\x33\x69','\x6c\x49\x62\x6e\x44\x78\x6e\x30\x69\x67\x6a\x4c\x69\x61','\x69\x66\x54\x70\x75\x66\x72\x6a\x74\x30\x35\x74\x78\x71','\x79\x4c\x66\x51\x77\x65\x75','\x69\x63\x61\x54\x6c\x78\x62\x56\x43\x4e\x71\x47\x75\x61','\x7a\x67\x4c\x56\x69\x67\x39\x59\x69\x67\x48\x30\x44\x61','\x75\x4e\x76\x55\x69\x63\x69','\x69\x63\x61\x54\x6c\x78\x7a\x4c\x43\x4e\x6e\x50\x42\x57','\x43\x32\x4c\x56\x42\x49\x62\x50\x42\x4d\x7a\x56\x43\x47','\x69\x63\x61\x47\x75\x32\x76\x30\x69\x67\x58\x56\x7a\x57','\x43\x4d\x39\x51\x7a\x77\x6e\x30\x69\x63\x30\x54\x43\x57','\x43\x63\x61\x4f\x42\x33\x7a\x4c\x43\x4e\x6a\x50\x7a\x61','\x6c\x73\x31\x32\x7a\x78\x6a\x5a\x41\x77\x39\x55','\x7a\x78\x7a\x4c\x42\x64\x4f\x47\x7a\x77\x31\x4c\x43\x47','\x72\x30\x7a\x59\x73\x77\x79','\x69\x63\x62\x74\x41\x67\x39\x33\x69\x68\x72\x4f\x41\x71','\x74\x4c\x6e\x71\x74\x31\x6a\x75\x6b\x71','\x69\x63\x31\x53\x69\x65\x58\x66\x76\x4b\x76\x6d\x69\x61','\x6d\x68\x57\x59\x6e\x68\x57\x58\x6d\x33\x57\x58\x46\x61','\x42\x33\x6a\x30\x69\x66\x72\x7a\x75\x65\x75\x53\x69\x61','\x6c\x73\x31\x33\x42\x33\x6a\x52\x43\x33\x62\x48\x79\x57','\x79\x32\x6e\x31\x43\x67\x4c\x4c\x7a\x63\x57\x47\x7a\x61','\x78\x31\x62\x70\x75\x4c\x71\x47\x69\x63\x61\x47\x69\x61','\x6f\x74\x61\x34\x6e\x4a\x43\x32\x6d\x65\x35\x72\x42\x68\x66\x53\x74\x57','\x69\x67\x66\x53\x42\x63\x62\x56\x44\x78\x72\x57\x44\x71','\x69\x63\x62\x6e\x71\x31\x62\x46\x76\x66\x6a\x62\x74\x47','\x45\x65\x58\x6a\x71\x31\x43','\x69\x63\x62\x6e\x71\x31\x62\x46\x73\x66\x72\x75\x75\x61','\x69\x67\x58\x4c\x44\x4d\x76\x53\x6f\x49\x61','\x79\x77\x57\x53\x69\x67\x76\x59\x43\x4d\x39\x59\x6c\x61','\x79\x77\x58\x4c\x43\x32\x7a\x56\x43\x4d\x6e\x4c\x69\x61'];a0_0x534f=function(){return _0x2a1217;};return a0_0x534f();}function a0_0x1507(_0x46ca30,_0x34c10d){_0x46ca30=_0x46ca30-0xe4;const _0x534fd1=a0_0x534f();let _0x15075e=_0x534fd1[_0x46ca30];if(a0_0x1507['\x71\x76\x74\x53\x71\x52']===undefined){var _0x4df609=function(_0x56cb7f){const _0x593a26='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x932bc0='';let _0x27b475='';for(let _0x320913=0x0,_0x28a0f0,_0x3ffac9,_0x237aff=0x0;_0x3ffac9=_0x56cb7f['\x63\x68\x61\x72\x41\x74'](_0x237aff++);~_0x3ffac9&&(_0x28a0f0=_0x320913%0x4?_0x28a0f0*0x40+_0x3ffac9:_0x3ffac9,_0x320913++%0x4)?_0x932bc0+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x28a0f0>>(-0x2*_0x320913&0x6)):0x0){_0x3ffac9=_0x593a26['\x69\x6e\x64\x65\x78\x4f\x66'](_0x3ffac9);}for(let _0x2f8656=0x0,_0x2df56c=_0x932bc0['\x6c\x65\x6e\x67\x74\x68'];_0x2f8656<_0x2df56c;_0x2f8656++){_0x27b475+='\x25'+('\x30\x30'+_0x932bc0['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x2f8656)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x27b475);};a0_0x1507['\x6b\x43\x6b\x55\x78\x7a']=_0x4df609;a0_0x1507['\x7a\x69\x66\x52\x77\x4c']={};a0_0x1507['\x71\x76\x74\x53\x71\x52']=!![];}const _0x17ad18=_0x534fd1[0x0];const _0x48e0cd=_0x46ca30+_0x17ad18;const _0x2d046e=a0_0x1507['\x7a\x69\x66\x52\x77\x4c'][_0x48e0cd];if(!_0x2d046e){_0x15075e=a0_0x1507['\x6b\x43\x6b\x55\x78\x7a'](_0x15075e);a0_0x1507['\x7a\x69\x66\x52\x77\x4c'][_0x48e0cd]=_0x15075e;}else{_0x15075e=_0x2d046e;}return _0x15075e;}(function(_0xd9ac08,_0x7f573a){const _0x461247=a0_0x1507;const _0x57819e=_0xd9ac08();while(!![]){try{const _0x57ff69=parseInt(_0x461247(0x183))/0x1*(-parseInt(_0x461247(0xe4))/0x2)+parseInt(_0x461247(0xf3))/0x3*(-parseInt(_0x461247(0x1a1))/0x4)+-parseInt(_0x461247(0x11a))/0x5+parseInt(_0x461247(0x14b))/0x6+parseInt(_0x461247(0x110))/0x7+parseInt(_0x461247(0xea))/0x8+parseInt(_0x461247(0x100))/0x9;if(_0x57ff69===_0x7f573a){break;}else{_0x57819e['push'](_0x57819e['shift']());}}catch(_0x292eb0){_0x57819e['push'](_0x57819e['shift']());}}}(a0_0x534f,0xec827));import{createLogger}from'\x2e\x2f\x73\x72\x63\x2f\x6c\x69\x62\x2f\x6c\x6f\x67\x67\x65\x72\x2e\x6a\x73';import{mcpServer,setupServer}from'\x2e\x2f\x73\x72\x63\x2f\x6d\x63\x70\x2d\x73\x65\x72\x76\x65\x72\x2e\x6a\x73';import{setSilent}from'\x2e\x2f\x73\x72\x63\x2f\x73\x74\x61\x74\x65\x2e\x6a\x73';function parseCliArguments(_0x59c105){const _0x380a29=a0_0x1507;const _0x2d21ae={'\x65\x63\x4b\x6e\x73':function(_0x2a9ef0,_0x9ae1b3){return _0x2a9ef0+_0x9ae1b3;},'\x69\x77\x78\x4b\x4a':function(_0xa38677,_0x36e085){return _0xa38677===_0x36e085;},'\x57\x52\x47\x77\x57':_0x380a29(0x1a9),'\x69\x70\x6b\x6d\x72':function(_0x4b2574,_0x2de99b){return _0x4b2574===_0x2de99b;},'\x52\x63\x46\x64\x6b':_0x380a29(0x140),'\x70\x46\x68\x48\x68':function(_0x3bd56c,_0x4556ce){return _0x3bd56c===_0x4556ce;},'\x6f\x45\x47\x6e\x4d':function(_0x5e4228,_0x3a0f1a){return _0x5e4228!==_0x3a0f1a;},'\x59\x76\x70\x51\x74':_0x380a29(0x142),'\x74\x57\x47\x7a\x57':function(_0x31b619,_0x9da45e){return _0x31b619===_0x9da45e;},'\x51\x47\x65\x4c\x6c':'\x73\x74\x64\x69\x6f','\x72\x44\x42\x75\x61':function(_0x11df13,_0x5731af){return _0x11df13<_0x5731af;},'\x77\x79\x43\x72\x74':function(_0x109eed,_0x3c9d46){return _0x109eed===_0x3c9d46;},'\x69\x57\x54\x5a\x7a':_0x380a29(0x119),'\x68\x50\x52\x42\x68':_0x380a29(0xeb)};const _0x3ff1dd={'\x74\x72\x61\x6e\x73\x70\x6f\x72\x74':null,'\x6c\x6f\x67\x4c\x65\x76\x65\x6c':null,'\x68\x74\x74\x70\x50\x6f\x72\x74':null,'\x77\x6f\x72\x6b\x73\x70\x61\x63\x65\x50\x61\x74\x68\x73':null};for(let _0x201efe=0x0;_0x201efe<_0x59c105[_0x380a29(0x17f)];_0x201efe++){if(_0x2d21ae[_0x380a29(0xe5)](_0x380a29(0x1a9),_0x2d21ae[_0x380a29(0x131)])){const _0x333a95=_0x59c105[_0x201efe];if(_0x2d21ae[_0x380a29(0x188)](_0x333a95,_0x380a29(0xfd))||_0x333a95==='\x2d\x68'||_0x333a95===_0x2d21ae[_0x380a29(0x11d)]||_0x2d21ae['\x70\x46\x68\x48\x68'](_0x333a95,'\x2d\x76')){if(_0x2d21ae[_0x380a29(0x12a)](_0x380a29(0x17e),_0x380a29(0x17e))){_0x34eea8[_0x380a29(0x134)](_0x380a29(0xec)+_0x380a29(0x102)+_0x380a29(0x150)+_0x453b03[_0x380a29(0x113)]);_0x37ab0a['\x65\x72\x72\x6f\x72'](_0x380a29(0x12c)+'\x6f\x6e\x73\x3a\x20'+_0xc95578[_0x380a29(0x17d)]('\x2c\x20'));_0x2ddc7f[_0x380a29(0x193)](0x1);}else{if(_0x333a95==='\x2d\x68'){_0x3ff1dd['\x74\x72\x61\x6e\x73\x70\x6f\x72\x74']=_0x380a29(0xfd);}else if(_0x2d21ae[_0x380a29(0xef)](_0x333a95,'\x2d\x76')){_0x3ff1dd[_0x380a29(0x10c)]=_0x380a29(0x140);}else{_0x3ff1dd[_0x380a29(0x10c)]=_0x333a95;}break;}}if((_0x2d21ae[_0x380a29(0x188)](_0x333a95,'\x2d\x2d\x74\x72\x61\x6e\x73\x70\x6f\x72'+'\x74')||_0x333a95==='\x2d\x74')&&_0x201efe+0x1<_0x59c105[_0x380a29(0x17f)]){if(_0x380a29(0x142)!==_0x2d21ae['\x59\x76\x70\x51\x74']){throw new _0x27589f(_0x380a29(0x123)+_0x380a29(0x172)+_0x50526c);}else{const _0x24f9dd=_0x59c105[_0x2d21ae[_0x380a29(0x154)](_0x201efe,0x1)];if(_0x2d21ae['\x74\x57\x47\x7a\x57'](_0x24f9dd,_0x2d21ae['\x51\x47\x65\x4c\x6c'])||_0x24f9dd===_0x380a29(0x17b)){_0x3ff1dd['\x74\x72\x61\x6e\x73\x70\x6f\x72\x74']='\x2d\x2d'+_0x24f9dd;}else{throw new Error('\x49\x6e\x76\x61\x6c\x69\x64\x20\x74\x72'+'\x61\x6e\x73\x70\x6f\x72\x74\x20\x76\x61'+_0x380a29(0x176)+_0x24f9dd+(_0x380a29(0x135)+_0x380a29(0xf9)+_0x380a29(0x197)));}_0x201efe++;}}else if((_0x333a95===_0x380a29(0x15e)+'\x6c'||_0x2d21ae[_0x380a29(0x192)](_0x333a95,'\x2d\x6c'))&&_0x2d21ae[_0x380a29(0x19f)](_0x201efe+0x1,_0x59c105[_0x380a29(0x17f)])){if(_0x2d21ae[_0x380a29(0x1aa)](_0x380a29(0x167),'\x4b\x76\x64\x41\x43')){throw new _0x1d2312(_0x380a29(0xf5)+_0x380a29(0x186)+'\x6c\x75\x65\x3a\x20'+_0x593594+(_0x380a29(0x135)+_0x380a29(0xf9)+'\x20\x27\x68\x74\x74\x70\x27'));}else{_0x3ff1dd[_0x380a29(0x113)]=_0x59c105[_0x201efe+0x1][_0x380a29(0x19d)+'\x65']();_0x201efe++;}}else if((_0x333a95===_0x380a29(0x162)||_0x2d21ae[_0x380a29(0x192)](_0x333a95,'\x2d\x70'))&&_0x2d21ae[_0x380a29(0x154)](_0x201efe,0x1)<_0x59c105[_0x380a29(0x17f)]){_0x3ff1dd[_0x380a29(0x128)]=Number[_0x380a29(0x115)](_0x59c105[_0x2d21ae[_0x380a29(0x154)](_0x201efe,0x1)],0xa);_0x201efe++;}else if((_0x2d21ae['\x69\x70\x6b\x6d\x72'](_0x333a95,_0x380a29(0x148)+'\x65')||_0x333a95==='\x2d\x77')&&_0x2d21ae[_0x380a29(0x19f)](_0x2d21ae[_0x380a29(0x154)](_0x201efe,0x1),_0x59c105[_0x380a29(0x17f)])){_0x3ff1dd[_0x380a29(0x15d)+_0x380a29(0x189)]=_0x59c105[_0x2d21ae[_0x380a29(0x154)](_0x201efe,0x1)];_0x201efe++;}else if(_0x2d21ae['\x77\x79\x43\x72\x74'](_0x333a95,_0x380a29(0x175))||_0x333a95==='\x2d\x73'){_0x3ff1dd[_0x380a29(0x19b)]=!![];}else if(_0x333a95['\x73\x74\x61\x72\x74\x73\x57\x69\x74\x68']('\x2d\x2d')||_0x333a95['\x73\x74\x61\x72\x74\x73\x57\x69\x74\x68']('\x2d')&&_0x2d21ae[_0x380a29(0xe5)](_0x333a95['\x6c\x65\x6e\x67\x74\x68'],0x2)){if(_0x2d21ae[_0x380a29(0xee)]===_0x2d21ae['\x68\x50\x52\x42\x68']){_0xdbdf86.env.MCP_HTTP_PORT=_0x355c93[_0x380a29(0x128)][_0x380a29(0xe8)]();}else{throw new Error(_0x380a29(0x123)+'\x67\x75\x6d\x65\x6e\x74\x3a\x20'+_0x333a95);}}}else{const _0x5d2f7c=_0x13ffed[_0x2d21ae[_0x380a29(0x154)](_0x59f4d5,0x1)];if(_0x5d2f7c==='\x73\x74\x64\x69\x6f'||_0x5d2f7c===_0x380a29(0x17b)){_0x2276bf[_0x380a29(0x10c)]='\x2d\x2d'+_0x5d2f7c;}else{throw new _0x10da74(_0x380a29(0xf5)+_0x380a29(0x186)+_0x380a29(0x176)+_0x5d2f7c+(_0x380a29(0x135)+_0x380a29(0xf9)+_0x380a29(0x197)));}_0x3d598c++;}}return _0x3ff1dd;}export async function main(_0x4cce28){const _0xbbf333=a0_0x1507;const _0x171ad1={'\x61\x42\x54\x55\x49':_0xbbf333(0xec)+_0xbbf333(0x12f)+_0xbbf333(0x18d)+'\x75\x65','\x6d\x65\x4a\x65\x6c':'\x6e\x6f\x64\x65\x3a\x75\x72\x6c','\x78\x71\x47\x54\x4b':function(_0x3ef739,_0x132dfd){return _0x3ef739(_0x132dfd);},'\x62\x51\x6a\x58\x45':function(_0x4aba5e,_0x1e2094,_0x2de76e){return _0x4aba5e(_0x1e2094,_0x2de76e);},'\x56\x68\x7a\x62\x4e':function(_0x3b055d,_0x1dbf91){return _0x3b055d===_0x1dbf91;},'\x4d\x49\x50\x62\x4a':'\x20\x20\x2d\x2d\x74\x72\x61\x6e\x73\x70'+_0xbbf333(0x147)+_0xbbf333(0x182)+'\x20\x20\x54\x72\x61\x6e\x73\x70\x6f\x72'+_0xbbf333(0x1ad)+_0xbbf333(0x139)+_0xbbf333(0x13f)+_0xbbf333(0x12d)+_0xbbf333(0x144),'\x6c\x57\x44\x41\x57':_0xbbf333(0xf8)+_0xbbf333(0x11b)+'\x78\x74','\x47\x45\x6a\x6b\x41':_0xbbf333(0x177)+_0xbbf333(0x173)+_0xbbf333(0x118)+'\x74\x20\x6d\x6f\x64\x65\x3a\x20\x74\x72'+'\x75\x65\x2f\x31\x20\x74\x6f\x20\x73\x75'+'\x70\x70\x72\x65\x73\x73\x20\x61\x6c\x6c'+_0xbbf333(0x108)+_0xbbf333(0x168)+_0xbbf333(0x191),'\x42\x46\x6d\x72\x6f':'\x20\x20\x4c\x4f\x47\x5f\x4c\x45\x56\x45'+'\x4c\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xbbf333(0x11f)+_0xbbf333(0x141)+_0xbbf333(0x10f)+'\x72\x74\x2c\x20\x63\x72\x69\x74\x69\x63'+_0xbbf333(0x151)+_0xbbf333(0x16e)+_0xbbf333(0x122)+_0xbbf333(0x163)+_0xbbf333(0xed)+'\x69\x6e\x66\x6f\x29','\x45\x6b\x74\x66\x50':_0xbbf333(0x140),'\x50\x79\x58\x4e\x59':_0xbbf333(0x1a8),'\x77\x49\x4a\x64\x53':_0xbbf333(0xf6),'\x63\x4c\x74\x42\x4a':_0xbbf333(0x10d),'\x4d\x4e\x56\x49\x5a':_0xbbf333(0x134),'\x57\x79\x67\x44\x4e':'\x63\x72\x69\x74\x69\x63\x61\x6c','\x76\x48\x6c\x50\x43':_0xbbf333(0x17c),'\x4a\x49\x6e\x6e\x7a':_0xbbf333(0x190),'\x78\x4d\x4b\x74\x4b':_0xbbf333(0x14e),'\x41\x6f\x76\x6a\x51':function(_0x56dd7a){return _0x56dd7a();},'\x57\x50\x6b\x64\x69':_0xbbf333(0xfa)+'\x74\x69\x6e\x67\x20\x49\x42\x4d\x20\x53'+_0xbbf333(0x152)+_0xbbf333(0x1a3)+_0xbbf333(0x1ac)};try{const {readFileSync:_0x3cb092}=await import(_0xbbf333(0xfb));const {dirname:_0x409917,join:_0x4cf3b3}=await import(_0xbbf333(0x170));const {fileURLToPath:_0x1f291b}=await import(_0x171ad1[_0xbbf333(0x121)]);const _0x3e8199=_0x1f291b(import.meta.url);const _0x1a820c=_0x171ad1[_0xbbf333(0x19a)](_0x409917,_0x3e8199);const _0x171b2a=_0x171ad1[_0xbbf333(0x137)](_0x4cf3b3,_0x1a820c,_0xbbf333(0x18b)+'\x6f\x6e');const _0x12cbc8=JSON[_0xbbf333(0x19e)](_0x171ad1[_0xbbf333(0x137)](_0x3cb092,_0x171b2a,_0xbbf333(0xfe)));const _0x4aa37b=parseCliArguments(_0x4cce28);if(_0x171ad1[_0xbbf333(0x16f)](_0x4aa37b[_0xbbf333(0x10c)],_0xbbf333(0xfd))){const _0x56b4a7=('\x33\x7c\x31\x38\x7c\x35\x7c\x38\x7c\x32'+_0xbbf333(0x111)+'\x31\x39\x7c\x31\x35\x7c\x31\x30\x7c\x32'+_0xbbf333(0x146)+'\x32\x32\x7c\x34\x7c\x31\x37\x7c\x31\x34'+_0xbbf333(0x185)+'\x31\x7c\x36\x7c\x30\x7c\x39\x7c\x31\x31')[_0xbbf333(0x12b)]('\x7c');let _0x243440=0x0;while(!![]){switch(_0x56b4a7[_0x243440++]){case'\x30':console[_0xbbf333(0x1a2)](_0xbbf333(0x14f)+_0xbbf333(0x14a)+_0xbbf333(0x112)+_0xbbf333(0x180)+_0xbbf333(0x10a)+_0xbbf333(0x164)+'\x66\x69\x6e\x64\x73\x20\x61\x76\x61\x69'+_0xbbf333(0xe9)+_0xbbf333(0x149)+'\x65\x66\x61\x75\x6c\x74\x3a\x20\x33\x30'+_0xbbf333(0x19c));continue;case'\x31':console[_0xbbf333(0x1a2)](_0xbbf333(0x166));continue;case'\x32':console[_0xbbf333(0x1a2)](_0x171ad1[_0xbbf333(0x10e)]);continue;case'\x33':console[_0xbbf333(0x1a2)](_0x171ad1[_0xbbf333(0x16b)]);continue;case'\x34':console[_0xbbf333(0x1a2)]('\x20\x20'+_0x12cbc8[_0xbbf333(0x15c)]+('\x20\x2d\x2d\x74\x72\x61\x6e\x73\x70\x6f'+_0xbbf333(0x16a)+'\x70\x6f\x72\x74\x20\x38\x30\x38\x30'));continue;case'\x35':console[_0xbbf333(0x1a2)](_0xbbf333(0x156));continue;case'\x36':console['\x6c\x6f\x67'](_0x171ad1['\x47\x45\x6a\x6b\x41']);continue;case'\x37':console[_0xbbf333(0x1a2)]('');continue;case'\x38':console['\x6c\x6f\x67']('\x20\x20'+_0x12cbc8['\x6e\x61\x6d\x65']+_0xbbf333(0x136));continue;case'\x39':console['\x6c\x6f\x67'](_0xbbf333(0x109)+_0xbbf333(0x198)+_0xbbf333(0x129)+_0xbbf333(0x178)+'\x20\x28\x63\x6f\x6d\x6d\x61\x2d\x73\x65'+_0xbbf333(0x11c));continue;case'\x31\x30':console[_0xbbf333(0x1a2)]('\x20\x20\x2d\x2d\x73\x69\x6c\x65\x6e\x74'+_0xbbf333(0x116)+'\x20\x20\x53\x75\x70\x70\x72\x65\x73\x73'+_0xbbf333(0x14c)+'\x74\x20\x28\x6f\x76\x65\x72\x72\x69\x64'+'\x65\x73\x20\x2d\x2d\x6c\x6f\x67\x2d\x6c'+'\x65\x76\x65\x6c\x29');continue;case'\x31\x31':process[_0xbbf333(0x193)](0x0);continue;case'\x31\x32':console['\x6c\x6f\x67'](_0xbbf333(0x16d)+_0xbbf333(0x1a7)+_0xbbf333(0x145)+_0xbbf333(0x13d)+'\x20\x6c\x65\x76\x65\x6c\x3a\x20\x65\x6d'+_0xbbf333(0x181)+_0xbbf333(0x155)+'\x69\x63\x61\x6c\x2c\x20\x65\x72\x72\x6f'+'\x72\x2c\x20\x77\x61\x72\x6e\x69\x6e\x67'+_0xbbf333(0x187)+_0xbbf333(0xf4)+'\x67');continue;case'\x31\x33':console[_0xbbf333(0x1a2)]('');continue;case'\x31\x34':console[_0xbbf333(0x1a2)]('\x20\x20'+_0x12cbc8[_0xbbf333(0x15c)]+('\x20\x2d\x2d\x74\x72\x61\x6e\x73\x70\x6f'+'\x72\x74\x20\x68\x74\x74\x70\x20\x2d\x2d'+'\x77\x6f\x72\x6b\x73\x70\x61\x63\x65\x20'+_0xbbf333(0x174)+_0xbbf333(0x13e)+_0xbbf333(0xf0)));continue;case'\x31\x35':console[_0xbbf333(0x1a2)](_0xbbf333(0x117)+'\x61\x63\x65\x20\x50\x41\x54\x48\x53\x2c'+_0xbbf333(0x132)+_0xbbf333(0x130)+_0xbbf333(0x10b)+_0xbbf333(0x12e)+'\x65\x73\x20\x57\x4f\x52\x4b\x53\x50\x41'+_0xbbf333(0x133)+_0xbbf333(0x18f));continue;case'\x31\x36':console[_0xbbf333(0x1a2)](_0xbbf333(0xe7)+_0xbbf333(0x1a0)+_0xbbf333(0x12e)+'\x64\x65\x6e\x20\x62\x79\x20\x43\x4c\x49'+_0xbbf333(0x153)+'\x29\x3a');continue;case'\x31\x37':console[_0xbbf333(0x1a2)]('\x20\x20'+_0x12cbc8[_0xbbf333(0x15c)]+(_0xbbf333(0x15f)+_0xbbf333(0xe6)+'\x2d\x6c\x6f\x67\x2d\x6c\x65\x76\x65\x6c'+_0xbbf333(0x1a4)));continue;case'\x31\x38':console[_0xbbf333(0x1a2)]('');continue;case'\x31\x39':console[_0xbbf333(0x1a2)](_0xbbf333(0x138)+'\x4f\x52\x54\x2c\x20\x2d\x70\x20\x50\x4f'+'\x52\x54\x20\x20\x20\x20\x20\x20\x20\x20'+_0xbbf333(0x114)+'\x70\x6f\x72\x74\x20\x66\x6f\x72\x20\x68'+_0xbbf333(0x10a)+_0xbbf333(0x164)+_0xbbf333(0x171)+_0xbbf333(0xe9)+'\x63\x63\x75\x70\x69\x65\x64\x29');continue;case'\x32\x30':console[_0xbbf333(0x1a2)](_0xbbf333(0x15a)+_0xbbf333(0x199)+_0xbbf333(0x143)+_0xbbf333(0x18c)+_0xbbf333(0x1ae));continue;case'\x32\x31':console['\x6c\x6f\x67'](_0x171ad1['\x42\x46\x6d\x72\x6f']);continue;case'\x32\x32':console[_0xbbf333(0x1a2)]('\x20\x20'+_0x12cbc8[_0xbbf333(0x15c)]+(_0xbbf333(0x15f)+_0xbbf333(0x124)));continue;case'\x32\x33':console[_0xbbf333(0x1a2)](_0xbbf333(0x14d)+_0xbbf333(0x126)+_0xbbf333(0x169)+_0xbbf333(0xf2)+_0xbbf333(0x1a5)+_0xbbf333(0x159)+_0xbbf333(0x196)+'\x6f\x29');continue;case'\x32\x34':console[_0xbbf333(0x1a2)](_0xbbf333(0x13b)+_0xbbf333(0xf7)+_0xbbf333(0x104)+_0xbbf333(0x13c)+'\x6d\x61\x74\x69\x6f\x6e');continue;case'\x32\x35':console[_0xbbf333(0x1a2)](_0xbbf333(0x157));continue;case'\x32\x36':console[_0xbbf333(0x1a2)]('');continue;}break;}}if(_0x4aa37b[_0xbbf333(0x10c)]===_0x171ad1[_0xbbf333(0xff)]){console[_0xbbf333(0x1a2)](_0xbbf333(0xf8)+_0xbbf333(0x11b)+_0xbbf333(0x127)+_0x12cbc8['\x76\x65\x72\x73\x69\x6f\x6e']);process[_0xbbf333(0x193)](0x0);}let _0x2d115b;if(_0x4aa37b[_0xbbf333(0x10c)]){_0x2d115b=_0x4aa37b[_0xbbf333(0x10c)][_0xbbf333(0x17a)](/^--/,'')['\x74\x6f\x4c\x6f\x77\x65\x72\x43\x61\x73'+'\x65']();}else if(process.env.MCP_TRANSPORT){_0x2d115b=process.env.MCP_TRANSPORT[_0xbbf333(0x19d)+'\x65']();}else{if(_0x171ad1[_0xbbf333(0x16f)](_0xbbf333(0x1a6),_0x171ad1[_0xbbf333(0x194)])){_0x20e330['\x65\x72\x72\x6f\x72'](_0x171ad1[_0xbbf333(0x11e)]);_0x119620[_0xbbf333(0x134)]('\x56\x61\x6c\x69\x64\x20\x6f\x70\x74\x69'+_0xbbf333(0x107)+'\x20\x7c\x20\x68\x74\x74\x70');_0x2b1efa['\x65\x72\x72\x6f\x72']('\x52\x65\x63\x65\x69\x76\x65\x64\x3a\x20'+_0x4ba829);_0x254f1c[_0xbbf333(0x134)](_0xbbf333(0x13a)+_0x424438[_0xbbf333(0x15c)]+(_0xbbf333(0x1ab)+_0xbbf333(0xf1)+_0xbbf333(0x120)));_0x351b2a[_0xbbf333(0x193)](0x1);}else{_0x2d115b=_0xbbf333(0xf6);}}if(_0x2d115b!==_0x171ad1[_0xbbf333(0x125)]&&_0x2d115b!==_0xbbf333(0x17b)){console[_0xbbf333(0x134)](_0xbbf333(0xec)+'\x6e\x76\x61\x6c\x69\x64\x20\x74\x72\x61'+_0xbbf333(0x18d)+'\x75\x65');console['\x65\x72\x72\x6f\x72']('\x56\x61\x6c\x69\x64\x20\x6f\x70\x74\x69'+_0xbbf333(0x107)+'\x20\x7c\x20\x68\x74\x74\x70');console[_0xbbf333(0x134)](_0xbbf333(0x106)+_0x2d115b);console[_0xbbf333(0x134)](_0xbbf333(0x13a)+_0x12cbc8[_0xbbf333(0x15c)]+(_0xbbf333(0x1ab)+_0xbbf333(0xf1)+_0xbbf333(0x120)));process['\x65\x78\x69\x74'](0x1);}if(_0x4aa37b[_0xbbf333(0x19b)]){setSilent(!![]);}else if(_0x4aa37b['\x6c\x6f\x67\x4c\x65\x76\x65\x6c']){const _0x3c22aa=[_0xbbf333(0x18a),_0xbbf333(0x105),'\x6e\x6f\x74\x69\x63\x65',_0x171ad1[_0xbbf333(0x179)],_0x171ad1[_0xbbf333(0x101)],_0x171ad1[_0xbbf333(0xfc)],_0xbbf333(0x158),_0x171ad1[_0xbbf333(0x165)]];const _0x1adb87=_0x4aa37b['\x6c\x6f\x67\x4c\x65\x76\x65\x6c'][_0xbbf333(0x19d)+'\x65']();if(_0x3c22aa['\x69\x6e\x63\x6c\x75\x64\x65\x73'](_0x1adb87)){process.env.LOG_LEVEL=_0x1adb87;}else{console['\x65\x72\x72\x6f\x72']('\u274c\x20\x45\x72\x72\x6f\x72\x3a\x20\x49'+_0xbbf333(0x102)+_0xbbf333(0x150)+_0x4aa37b[_0xbbf333(0x113)]);console[_0xbbf333(0x134)](_0xbbf333(0x12c)+_0xbbf333(0x18e)+_0x3c22aa[_0xbbf333(0x17d)]('\x2c\x20'));process['\x65\x78\x69\x74'](0x1);}}if(_0x4aa37b['\x68\x74\x74\x70\x50\x6f\x72\x74']){process.env.MCP_HTTP_PORT=_0x4aa37b[_0xbbf333(0x128)]['\x74\x6f\x53\x74\x72\x69\x6e\x67']();}if(_0x4aa37b[_0xbbf333(0x15d)+_0xbbf333(0x189)]){if(_0x171ad1[_0xbbf333(0x16f)](_0x171ad1[_0xbbf333(0x16c)],_0x171ad1[_0xbbf333(0x160)])){_0x37324c[_0xbbf333(0x15d)+_0xbbf333(0x189)]=_0x60a2c8[_0x9d27b7+0x1];_0x5b6a28++;}else{process.env.WORKSPACE_FOLDER_PATHS=_0x4aa37b[_0xbbf333(0x15d)+_0xbbf333(0x189)];}}const {registerGlobalErrorHandlers:registerGlobalErrorHandlers,registerSignalHandlers:registerSignalHandlers}=await import('\x2e\x2f\x73\x72\x63\x2f\x6d\x63\x70\x2d'+_0xbbf333(0x184));registerGlobalErrorHandlers();_0x171ad1['\x41\x6f\x76\x6a\x51'](registerSignalHandlers);await setupServer(_0x2d115b);}catch(_0x51f24e){const _0x13f4db=createLogger();_0x13f4db[_0xbbf333(0x134)](_0x51f24e,_0x171ad1[_0xbbf333(0x161)]);await mcpServer[_0xbbf333(0x15b)]();process[_0xbbf333(0x193)](0x1);}}main(process[a0_0x1883c2(0x195)][a0_0x1883c2(0x103)](0x2));
|
|
1
|
+
const a0_0x224931=a0_0xaa5b;(function(_0x41de9b,_0x5191d7){const _0x3aac66=a0_0xaa5b;const _0x1c78b1=_0x41de9b();while(!![]){try{const _0x1a5619=-parseInt(_0x3aac66(0xd1))/0x1+-parseInt(_0x3aac66(0xfe))/0x2+-parseInt(_0x3aac66(0x105))/0x3*(parseInt(_0x3aac66(0x13c))/0x4)+-parseInt(_0x3aac66(0xc2))/0x5+parseInt(_0x3aac66(0xdf))/0x6*(-parseInt(_0x3aac66(0x18a))/0x7)+-parseInt(_0x3aac66(0x103))/0x8+parseInt(_0x3aac66(0xce))/0x9*(parseInt(_0x3aac66(0x15c))/0xa);if(_0x1a5619===_0x5191d7){break;}else{_0x1c78b1['push'](_0x1c78b1['shift']());}}catch(_0x3a0736){_0x1c78b1['push'](_0x1c78b1['shift']());}}}(a0_0x1e24,0x7c6ae));function a0_0x1e24(){const _0x57f4be=['\x69\x68\x57\x47\x41\x68\x72\x30\x43\x61','\x69\x68\x44\x48\x43\x4d\x35\x50\x42\x4d\x43\x53\x69\x61','\x6c\x78\x71\x47\x76\x66\x4c\x71\x72\x73\x61\x47\x69\x61','\x79\x77\x58\x4c\x43\x32\x7a\x56\x43\x4d\x6e\x4c\x69\x61','\x74\x31\x6a\x75\x6c\x63\x61\x54\x43\x63\x62\x71\x74\x57','\x42\x32\x44\x33\x43\x77\x4b','\x44\x67\x4c\x55\x7a\x59\x62\x6a\x71\x4b\x30\x47\x75\x57','\x6c\x49\x39\x5a\x43\x4d\x6d\x56\x42\x77\x6e\x57\x6c\x71','\x7a\x67\x76\x55\x69\x67\x6a\x35\x69\x65\x6e\x6d\x73\x71','\x6f\x49\x62\x5a\x44\x67\x72\x50\x42\x59\x62\x56\x43\x47','\x41\x77\x50\x35\x73\x4d\x65','\x69\x63\x61\x54\x6c\x77\x58\x56\x7a\x59\x31\x53\x7a\x71','\x69\x63\x61\x54\x6c\x77\x48\x4c\x42\x68\x61\x53\x69\x61','\x7a\x77\x31\x4c\x43\x4d\x44\x4c\x42\x4d\x6e\x35','\x7a\x4d\x38\x53\x69\x67\x72\x4c\x79\x4e\x76\x4e\x69\x61','\x41\x68\x72\x30\x43\x66\x62\x56\x43\x4e\x71','\x69\x63\x62\x75\x43\x4d\x66\x55\x43\x33\x62\x56\x43\x47','\x79\x33\x6a\x50\x44\x67\x4c\x4a\x79\x77\x57','\x69\x63\x62\x74\x7a\x78\x71\x47\x44\x32\x39\x59\x41\x57','\x69\x66\x6e\x4c\x44\x63\x62\x69\x76\x66\x72\x71\x69\x61','\x74\x63\x61\x47\x69\x63\x61\x47\x69\x63\x61\x47\x69\x61','\x7a\x78\x7a\x4c\x42\x64\x4f\x47\x7a\x77\x31\x4c\x43\x47','\x43\x67\x66\x4a\x7a\x73\x62\x57\x79\x78\x72\x4f\x43\x57','\x41\x4d\x39\x50\x42\x47','\x79\x32\x7a\x58\x72\x32\x6d','\x69\x66\x54\x70\x75\x66\x72\x6a\x74\x30\x35\x74\x78\x71','\x41\x4d\x50\x6c\x74\x67\x69','\x43\x67\x39\x59\x44\x63\x61\x34\x6d\x64\x47\x57','\x69\x67\x39\x31\x44\x68\x62\x31\x44\x63\x61\x4f\x7a\x61','\x34\x50\x32\x6d\x69\x65\x76\x59\x43\x4d\x39\x59\x6f\x49\x62\x6a','\x6d\x4a\x65\x34\x6d\x65\x48\x54\x79\x30\x54\x4e\x7a\x61','\x79\x77\x6e\x4c\x69\x66\x62\x62\x76\x65\x48\x74\x6c\x61','\x7a\x67\x76\x49\x44\x77\x43','\x43\x4e\x71\x47\x43\x33\x72\x4b\x41\x77\x38\x47\x6c\x71','\x69\x63\x61\x47\x69\x63\x61\x47\x69\x63\x61\x47\x69\x61','\x41\x77\x35\x4d\x42\x59\x4b','\x6c\x73\x31\x4f\x7a\x77\x58\x57','\x6c\x49\x62\x6e\x44\x78\x6e\x30\x69\x67\x6a\x4c\x69\x61','\x7a\x33\x76\x54\x7a\x77\x35\x30\x6f\x49\x61','\x72\x4b\x76\x71\x7a\x75\x38','\x41\x77\x6e\x48\x42\x63\x57\x47\x7a\x78\x6a\x59\x42\x57','\x6c\x77\x47\x47\x69\x63\x61\x47\x69\x63\x61\x47\x69\x61','\x75\x4d\x76\x4a\x7a\x77\x4c\x32\x7a\x77\x71\x36\x69\x61','\x43\x4e\x71\x47\x41\x68\x72\x30\x43\x63\x61\x54\x6c\x71','\x43\x59\x61\x4f\x42\x33\x7a\x4c\x43\x4e\x6a\x50\x7a\x61','\x72\x4d\x66\x4f\x41\x4b\x75','\x43\x67\x39\x59\x44\x63\x62\x4d\x42\x33\x69\x47\x41\x61','\x69\x63\x31\x53\x69\x65\x58\x66\x76\x4b\x76\x6d\x69\x61','\x41\x68\x72\x30\x43\x61','\x69\x67\x66\x53\x42\x63\x62\x56\x44\x78\x72\x57\x44\x71','\x42\x4e\x6e\x57\x42\x33\x6a\x30\x69\x68\x7a\x48\x42\x61','\x74\x4c\x6e\x71\x74\x31\x6a\x75\x6b\x71','\x75\x30\x48\x6f\x43\x68\x4b','\x76\x77\x35\x52\x42\x4d\x39\x33\x42\x49\x62\x48\x43\x47','\x42\x68\x6e\x4c\x6b\x71','\x69\x67\x58\x4c\x44\x4d\x76\x53\x6f\x49\x62\x4c\x42\x71','\x69\x63\x48\x4a\x42\x32\x31\x54\x79\x73\x31\x5a\x7a\x71','\x69\x63\x61\x47\x69\x63\x62\x6d\x42\x32\x43\x47\x42\x61','\x69\x63\x61\x54\x6c\x78\x6e\x50\x42\x67\x76\x55\x44\x61','\x73\x75\x7a\x64\x79\x30\x4b','\x69\x63\x62\x6e\x71\x31\x62\x46\x73\x66\x72\x75\x75\x61','\x7a\x77\x7a\x48\x44\x77\x58\x30\x6f\x49\x62\x4d\x79\x71','\x6e\x64\x65\x59\x6f\x74\x43\x59\x6e\x4a\x62\x79\x7a\x75\x39\x64\x41\x65\x71','\x69\x63\x61\x47\x69\x63\x62\x69\x76\x66\x72\x71\x69\x61','\x6d\x64\x61\x50','\x43\x32\x4c\x53\x7a\x77\x35\x30','\x42\x4d\x39\x4b\x7a\x74\x50\x57\x79\x78\x72\x4f','\x72\x78\x6a\x59\x42\x33\x69\x47\x43\x33\x72\x48\x43\x47','\x73\x4c\x50\x58\x77\x4b\x4b','\x44\x63\x62\x30\x45\x78\x62\x4c\x6f\x49\x62\x5a\x44\x61','\x45\x75\x48\x54\x44\x68\x71','\x42\x4d\x39\x30\x41\x77\x6e\x4c\x6c\x63\x62\x50\x42\x47','\x74\x4c\x4c\x33\x45\x4d\x47','\x43\x33\x66\x36\x77\x68\x4f','\x6c\x33\x62\x48\x44\x67\x47\x56\x44\x67\x38\x56\x43\x61','\x6c\x77\x58\x56\x7a\x59\x31\x53\x7a\x78\x7a\x4c\x42\x61','\x42\x67\x39\x4e\x74\x67\x76\x32\x7a\x77\x57','\x79\x77\x58\x4c\x43\x4e\x71','\x43\x33\x62\x56\x43\x4e\x71\x47\x44\x68\x4c\x57\x7a\x71','\x69\x67\x72\x4c\x79\x4e\x76\x4e','\x75\x30\x39\x41\x75\x67\x6d','\x44\x67\x39\x74\x44\x68\x6a\x50\x42\x4d\x43','\x79\x78\x76\x53\x44\x64\x4f\x47\x43\x33\x72\x4b\x41\x71','\x43\x33\x62\x48\x79\x32\x75\x47\x43\x67\x66\x30\x41\x61','\x7a\x32\x76\x55\x79\x33\x4b\x53\x69\x67\x66\x53\x7a\x71','\x44\x77\x75\x56\x6d\x73\x62\x30\x42\x59\x62\x5a\x44\x71','\x7a\x67\x4c\x56\x69\x67\x39\x59\x69\x67\x48\x30\x44\x61','\x43\x30\x58\x6f\x75\x77\x53','\x6c\x63\x61\x54\x43\x59\x61\x47\x69\x63\x61\x47\x69\x61','\x75\x65\x66\x75\x73\x66\x6d\x50','\x69\x63\x62\x78\x74\x31\x6a\x6c\x75\x31\x62\x62\x71\x57','\x43\x4d\x76\x57\x42\x67\x66\x4a\x7a\x71','\x69\x63\x62\x74\x73\x75\x58\x66\x74\x4c\x71\x47\x69\x61','\x69\x63\x30\x54\x44\x68\x6a\x48\x42\x4e\x6e\x57\x42\x57','\x44\x4d\x76\x53\x69\x65\x58\x66\x76\x4b\x76\x6d\x6c\x61','\x42\x77\x66\x30\x41\x77\x39\x55','\x75\x4c\x71\x47\x69\x63\x61\x47\x69\x63\x61\x47\x69\x61','\x42\x67\x39\x4e','\x42\x4e\x7a\x48\x42\x67\x4c\x4b\x69\x67\x58\x56\x7a\x57','\x7a\x78\x6a\x59\x42\x33\x69','\x71\x31\x6a\x34\x75\x78\x69','\x74\x33\x7a\x70\x44\x4b\x47','\x78\x31\x62\x70\x75\x4c\x71\x47\x69\x63\x61\x47\x69\x61','\x69\x63\x61\x54\x6c\x78\x72\x59\x79\x77\x35\x5a\x43\x61','\x43\x4d\x39\x51\x7a\x77\x6e\x30\x69\x63\x30\x54\x43\x57','\x69\x63\x61\x54\x6c\x78\x7a\x4c\x43\x4e\x6e\x50\x42\x57','\x7a\x4d\x4c\x55\x7a\x68\x6d\x47\x79\x78\x7a\x48\x41\x71','\x71\x75\x48\x35\x77\x66\x79','\x6d\x4a\x65\x30\x6d\x74\x43\x35\x72\x32\x54\x62\x74\x31\x72\x30','\x41\x77\x35\x4a\x42\x68\x76\x4b\x7a\x78\x6d','\x43\x32\x66\x4e\x7a\x71','\x71\x32\x6e\x6d\x74\x75\x57','\x44\x67\x39\x6d\x42\x33\x44\x4c\x43\x4b\x6e\x48\x43\x57','\x44\x32\x39\x59\x41\x33\x6e\x57\x79\x77\x6e\x4c\x69\x61','\x69\x67\x48\x30\x44\x68\x61\x47\x6b\x67\x72\x4c\x7a\x47','\x69\x63\x31\x33\x69\x66\x62\x62\x76\x65\x48\x74\x69\x61','\x7a\x78\x6d\x47\x6c\x73\x31\x53\x42\x32\x43\x54\x42\x61','\x79\x32\x58\x56\x43\x32\x75','\x6c\x73\x31\x57\x42\x33\x6a\x30','\x43\x49\x57\x47\x44\x32\x66\x59\x42\x4d\x4c\x55\x7a\x57','\x74\x33\x62\x30\x41\x77\x39\x55\x43\x5a\x4f','\x45\x75\x58\x35\x41\x33\x43','\x75\x66\x6a\x34\x43\x4e\x4f','\x45\x68\x71\x47\x44\x47','\x6a\x33\x6e\x30\x7a\x67\x4c\x56\x6a\x59\x62\x56\x43\x47','\x69\x63\x62\x74\x41\x67\x39\x33\x69\x68\x72\x4f\x41\x71','\x43\x67\x66\x4a\x41\x32\x66\x4e\x7a\x73\x35\x51\x43\x57','\x6e\x64\x6d\x34\x6d\x74\x79\x5a\x6e\x75\x66\x64\x74\x32\x39\x6e\x79\x57','\x42\x49\x57\x47\x6c\x78\x79\x47\x69\x63\x61\x47\x69\x61','\x7a\x78\x48\x50\x44\x61','\x69\x63\x62\x6e\x71\x31\x62\x46\x76\x66\x6a\x62\x74\x47','\x6c\x73\x31\x33\x42\x33\x6a\x52\x43\x33\x62\x48\x79\x57','\x77\x4c\x72\x64\x71\x77\x30','\x69\x63\x62\x74\x41\x67\x39\x33\x69\x68\x7a\x4c\x43\x47','\x42\x67\x76\x55\x7a\x33\x72\x4f','\x7a\x4d\x39\x59\x42\x77\x66\x30\x41\x77\x39\x55','\x79\x32\x6e\x31\x43\x67\x4c\x4c\x7a\x63\x4b','\x69\x63\x61\x47\x69\x63\x61\x47\x76\x68\x6a\x48\x42\x47','\x7a\x77\x7a\x48\x44\x77\x58\x30\x6f\x49\x61\x5a\x6d\x61','\x6f\x78\x72\x56\x73\x30\x58\x7a\x73\x57','\x44\x68\x6a\x48\x42\x4e\x6e\x57\x42\x33\x6a\x30','\x7a\x78\x6a\x4c\x42\x65\x4b','\x6d\x74\x61\x57\x6d\x5a\x69\x59\x6f\x68\x50\x76\x75\x4d\x66\x79\x41\x47','\x71\x76\x72\x69\x75\x59\x62\x78\x42\x33\x6a\x52\x43\x57','\x79\x77\x35\x5a\x43\x67\x39\x59\x44\x63\x62\x32\x79\x71','\x74\x77\x54\x79\x75\x4c\x4b','\x43\x4e\x71\x47\x43\x33\x72\x4b\x41\x77\x38','\x6b\x67\x72\x4c\x7a\x4d\x66\x31\x42\x68\x71\x36\x69\x61','\x44\x63\x62\x54\x42\x32\x72\x4c\x6f\x49\x62\x30\x43\x47','\x43\x4e\x71\x53\x69\x67\x6e\x59\x41\x78\x72\x50\x79\x57','\x44\x31\x6e\x64\x77\x77\x75','\x72\x78\x48\x48\x42\x78\x62\x53\x7a\x78\x6d\x36','\x41\x77\x35\x4d\x42\x57','\x74\x77\x72\x48\x45\x75\x75','\x42\x33\x6a\x4a\x7a\x73\x62\x64\x42\x32\x35\x30\x7a\x71','\x75\x4e\x76\x55\x69\x63\x69','\x6e\x64\x6a\x70\x74\x75\x76\x48\x75\x33\x69','\x42\x33\x6a\x30\x69\x63\x48\x48\x44\x78\x72\x56\x6c\x71','\x44\x68\x72\x57\x69\x68\x72\x59\x79\x77\x35\x5a\x43\x61','\x7a\x78\x7a\x4c\x42\x63\x4b','\x43\x67\x66\x59\x79\x78\x72\x4c\x7a\x63\x4b','\x44\x4d\x76\x59\x43\x32\x4c\x56\x42\x47','\x42\x67\x76\x59\x44\x63\x57\x47\x79\x33\x6a\x50\x44\x61','\x44\x32\x39\x59\x41\x33\x6e\x57\x79\x77\x6e\x4c\x75\x61','\x42\x33\x69\x47\x42\x77\x39\x59\x7a\x73\x62\x50\x42\x47','\x43\x67\x66\x59\x43\x32\x75','\x75\x31\x62\x70\x75\x4c\x71\x47\x69\x63\x61\x47\x69\x61','\x7a\x78\x6d\x47\x76\x30\x39\x73\x73\x31\x6e\x71\x71\x71','\x43\x33\x72\x48\x43\x4e\x72\x5a\x76\x32\x4c\x30\x41\x61','\x76\x4d\x66\x53\x41\x77\x71\x47\x42\x33\x62\x30\x41\x71','\x42\x32\x35\x5a\x6f\x49\x61','\x69\x67\x66\x59\x7a\x33\x76\x54\x7a\x77\x35\x30\x43\x57','\x42\x4d\x66\x54\x7a\x71','\x79\x78\x6a\x4e\x44\x47','\x42\x4d\x39\x4b\x7a\x74\x50\x31\x43\x4d\x57','\x42\x33\x6a\x30\x69\x66\x72\x7a\x75\x65\x75\x53\x69\x61','\x69\x63\x61\x54\x6c\x78\x44\x56\x43\x4d\x54\x5a\x43\x61','\x44\x31\x62\x7a\x44\x66\x4f','\x69\x63\x62\x74\x44\x78\x62\x57\x43\x4d\x76\x5a\x43\x57','\x79\x30\x7a\x51\x73\x76\x4b','\x71\x30\x76\x46\x72\x4b\x39\x6d\x72\x65\x76\x73\x78\x57','\x6c\x63\x62\x55\x42\x33\x72\x50\x79\x32\x75\x53\x69\x61','\x7a\x4e\x48\x52\x75\x4e\x43','\x44\x78\x72\x4d\x6f\x61','\x74\x65\x35\x75\x44\x77\x47','\x75\x31\x72\x65\x75\x4b\x65','\x43\x32\x4c\x56\x42\x49\x62\x50\x42\x4d\x7a\x56\x43\x47','\x6d\x74\x65\x30\x6d\x4a\x43\x5a\x6d\x4e\x50\x62\x76\x4c\x66\x71\x74\x61','\x44\x63\x62\x77\x79\x78\x6a\x50\x79\x77\x6a\x53\x7a\x71','\x72\x67\x7a\x59\x73\x4b\x4b','\x69\x63\x61\x47\x69\x63\x62\x74\x41\x77\x58\x4c\x42\x47','\x42\x4d\x39\x4b\x7a\x74\x50\x4d\x43\x57','\x6e\x64\x6d\x35\x6d\x74\x47\x35\x6e\x4c\x72\x68\x75\x77\x35\x6e\x43\x47','\x43\x33\x72\x4b\x41\x77\x38','\x6d\x4a\x69\x5a\x6e\x77\x4c\x68\x79\x75\x58\x4e\x74\x47','\x6c\x73\x31\x53\x42\x32\x43\x54\x42\x67\x76\x32\x7a\x71','\x7a\x78\x6d\x47\x74\x75\x6e\x71\x78\x31\x72\x73\x71\x71','\x79\x78\x72\x4f\x43\x57','\x43\x68\x62\x59\x7a\x78\x6e\x5a\x69\x67\x66\x53\x42\x61','\x43\x32\x58\x50\x79\x32\x75','\x42\x67\x66\x49\x42\x67\x75\x47\x41\x77\x79\x47\x42\x57','\x43\x32\x76\x59\x44\x4d\x76\x59\x6c\x4d\x50\x5a','\x7a\x78\x6a\x4e\x7a\x77\x35\x4a\x45\x73\x57\x47\x79\x71','\x73\x77\x35\x32\x79\x77\x58\x50\x7a\x63\x62\x30\x43\x47','\x74\x76\x48\x31\x73\x76\x71','\x43\x63\x61\x4f\x42\x33\x7a\x4c\x43\x4e\x6a\x50\x7a\x61','\x69\x63\x44\x4f\x44\x68\x72\x57\x6a\x57','\x79\x32\x6e\x31\x43\x67\x4c\x4c\x7a\x63\x57\x47\x7a\x61','\x43\x67\x66\x59\x43\x32\x76\x6a\x42\x4e\x71','\x72\x78\x72\x51\x42\x4d\x71','\x44\x63\x61\x4f\x42\x33\x7a\x4c\x43\x4e\x6a\x50\x7a\x61','\x76\x78\x6e\x48\x7a\x32\x75\x36','\x43\x59\x62\x4f\x7a\x77\x58\x57\x69\x67\x31\x4c\x43\x57','\x72\x76\x39\x67\x74\x30\x58\x65\x72\x76\x6a\x46\x75\x61','\x73\x75\x6a\x6e\x69\x66\x6e\x48\x42\x67\x76\x5a\x7a\x47','\x41\x77\x35\x4d\x42\x59\x57\x47\x7a\x67\x76\x49\x44\x71','\x75\x65\x76\x76\x73\x77\x34','\x69\x63\x61\x54\x6c\x78\x62\x56\x43\x4e\x71\x47\x75\x61','\x6c\x73\x31\x32\x7a\x78\x6a\x5a\x41\x77\x39\x55'];a0_0x1e24=function(){return _0x57f4be;};return a0_0x1e24();}function a0_0xaa5b(_0x49e369,_0x236429){_0x49e369=_0x49e369-0xb4;const _0x1e24e5=a0_0x1e24();let _0xaa5bad=_0x1e24e5[_0x49e369];if(a0_0xaa5b['\x69\x55\x76\x57\x50\x43']===undefined){var _0x20d35b=function(_0x403dec){const _0x591d18='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x48a0f3='';let _0x2498b4='';for(let _0x31bbb0=0x0,_0x5b1388,_0x3330e7,_0x3d7e92=0x0;_0x3330e7=_0x403dec['\x63\x68\x61\x72\x41\x74'](_0x3d7e92++);~_0x3330e7&&(_0x5b1388=_0x31bbb0%0x4?_0x5b1388*0x40+_0x3330e7:_0x3330e7,_0x31bbb0++%0x4)?_0x48a0f3+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x5b1388>>(-0x2*_0x31bbb0&0x6)):0x0){_0x3330e7=_0x591d18['\x69\x6e\x64\x65\x78\x4f\x66'](_0x3330e7);}for(let _0x4baa99=0x0,_0x27c12e=_0x48a0f3['\x6c\x65\x6e\x67\x74\x68'];_0x4baa99<_0x27c12e;_0x4baa99++){_0x2498b4+='\x25'+('\x30\x30'+_0x48a0f3['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x4baa99)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x2498b4);};a0_0xaa5b['\x46\x74\x57\x4a\x65\x64']=_0x20d35b;a0_0xaa5b['\x78\x71\x57\x59\x46\x69']={};a0_0xaa5b['\x69\x55\x76\x57\x50\x43']=!![];}const _0x212bda=_0x1e24e5[0x0];const _0x359361=_0x49e369+_0x212bda;const _0x9b6e09=a0_0xaa5b['\x78\x71\x57\x59\x46\x69'][_0x359361];if(!_0x9b6e09){_0xaa5bad=a0_0xaa5b['\x46\x74\x57\x4a\x65\x64'](_0xaa5bad);a0_0xaa5b['\x78\x71\x57\x59\x46\x69'][_0x359361]=_0xaa5bad;}else{_0xaa5bad=_0x9b6e09;}return _0xaa5bad;}import{createLogger}from'\x2e\x2f\x73\x72\x63\x2f\x6c\x69\x62\x2f\x6c\x6f\x67\x67\x65\x72\x2e\x6a\x73';import{mcpServer,setupServer}from'\x2e\x2f\x73\x72\x63\x2f\x6d\x63\x70\x2d\x73\x65\x72\x76\x65\x72\x2e\x6a\x73';import{setSilent}from'\x2e\x2f\x73\x72\x63\x2f\x73\x74\x61\x74\x65\x2e\x6a\x73';function parseCliArguments(_0x4ad5a8){const _0x40bbd3=a0_0xaa5b;const _0x51b5dc={'\x65\x72\x65\x6c\x49':'\x4f\x70\x74\x69\x6f\x6e\x73\x3a','\x4d\x58\x75\x49\x54':_0x40bbd3(0x185)+_0x40bbd3(0xf2)+_0x40bbd3(0x120)+_0x40bbd3(0x12e)+_0x40bbd3(0x163)+_0x40bbd3(0x174)+_0x40bbd3(0x110)+_0x40bbd3(0x107)+_0x40bbd3(0x151),'\x46\x61\x68\x6a\x45':_0x40bbd3(0x129)+_0x40bbd3(0x17c)+_0x40bbd3(0x14d)+'\x20\x20\x20\x53\x65\x74\x20\x6c\x6f\x67'+_0x40bbd3(0x155)+_0x40bbd3(0x10d)+'\x6c\x65\x72\x74\x2c\x20\x63\x72\x69\x74'+'\x69\x63\x61\x6c\x2c\x20\x65\x72\x72\x6f'+_0x40bbd3(0xba)+_0x40bbd3(0xf8)+_0x40bbd3(0x11a)+'\x67','\x43\x52\x78\x51\x72':_0x40bbd3(0x11c)+_0x40bbd3(0x122)+_0x40bbd3(0x17e)+_0x40bbd3(0x131)+_0x40bbd3(0x14c)+'\x74\x74\x70\x20\x74\x72\x61\x6e\x73\x70'+_0x40bbd3(0xe0)+_0x40bbd3(0x188)+_0x40bbd3(0x10b)+'\x63\x63\x75\x70\x69\x65\x64\x29','\x45\x74\x6a\x6e\x64':_0x40bbd3(0x187)+_0x40bbd3(0xc3)+_0x40bbd3(0xc8)+_0x40bbd3(0xfd)+'\x6d\x61\x74\x69\x6f\x6e','\x56\x79\x42\x57\x45':_0x40bbd3(0xda),'\x77\x53\x43\x59\x65':'\x45\x6e\x76\x69\x72\x6f\x6e\x6d\x65\x6e'+_0x40bbd3(0xff)+_0x40bbd3(0x14a)+_0x40bbd3(0x126)+_0x40bbd3(0xee)+'\x29\x3a','\x4f\x76\x4f\x76\x48':'\x20\x20\x4d\x43\x50\x5f\x54\x52\x41\x4e'+_0x40bbd3(0xe9)+'\x20\x20\x20\x20\x20\x20\x54\x72\x61\x6e'+'\x73\x70\x6f\x72\x74\x20\x74\x79\x70\x65'+_0x40bbd3(0x127)+_0x40bbd3(0xb5)+_0x40bbd3(0x170)+'\x6f\x29','\x69\x4d\x57\x77\x62':'\x20\x20\x4c\x4f\x47\x5f\x4c\x45\x56\x45'+_0x40bbd3(0x132)+_0x40bbd3(0x157)+_0x40bbd3(0x133)+_0x40bbd3(0x172)+'\x72\x74\x2c\x20\x63\x72\x69\x74\x69\x63'+'\x61\x6c\x2c\x20\x65\x72\x72\x6f\x72\x2c'+_0x40bbd3(0x11f)+_0x40bbd3(0x165)+_0x40bbd3(0x12c)+_0x40bbd3(0xd6)+_0x40bbd3(0x141),'\x46\x45\x50\x65\x4f':function(_0x4685c9,_0xed9536){return _0x4685c9===_0xed9536;},'\x44\x66\x72\x4a\x49':_0x40bbd3(0x11d),'\x50\x52\x78\x72\x7a':_0x40bbd3(0x167),'\x66\x78\x6b\x52\x77':function(_0x1a9896,_0xbce391){return _0x1a9896<_0xbce391;},'\x6a\x6a\x4b\x4c\x62':function(_0x27e0ab,_0x3de068){return _0x27e0ab+_0x3de068;},'\x53\x54\x44\x52\x41':function(_0x4cda14,_0x3ea417){return _0x4cda14<_0x3ea417;},'\x49\x46\x43\x63\x49':function(_0x2af929,_0x4423d8){return _0x2af929+_0x4423d8;},'\x54\x62\x53\x77\x61':_0x40bbd3(0xc6)+'\x65','\x53\x48\x4e\x70\x79':function(_0x29eb65,_0x2558b4){return _0x29eb65<_0x2558b4;},'\x6f\x67\x77\x71\x69':function(_0x21bed2,_0x2a520f){return _0x21bed2+_0x2a520f;},'\x63\x66\x71\x47\x63':'\x56\x57\x68\x7a\x6a'};const _0x5703de={'\x74\x72\x61\x6e\x73\x70\x6f\x72\x74':null,'\x6c\x6f\x67\x4c\x65\x76\x65\x6c':null,'\x68\x74\x74\x70\x50\x6f\x72\x74':null,'\x77\x6f\x72\x6b\x73\x70\x61\x63\x65\x50\x61\x74\x68\x73':null};for(let _0x26e9e9=0x0;_0x26e9e9<_0x4ad5a8[_0x40bbd3(0xc9)];_0x26e9e9++){const _0x14feb6=_0x4ad5a8[_0x26e9e9];if(_0x14feb6===_0x40bbd3(0x142)||_0x14feb6==='\x2d\x68'||_0x14feb6===_0x40bbd3(0x11d)||_0x14feb6==='\x2d\x76'){if(_0x14feb6==='\x2d\x68'){_0x5703de[_0x40bbd3(0xcf)]='\x2d\x2d\x68\x65\x6c\x70';}else if(_0x51b5dc[_0x40bbd3(0x145)](_0x14feb6,'\x2d\x76')){_0x5703de[_0x40bbd3(0xcf)]=_0x51b5dc[_0x40bbd3(0x100)];}else{_0x5703de[_0x40bbd3(0xcf)]=_0x14feb6;}break;}if((_0x14feb6==='\x2d\x2d\x74\x72\x61\x6e\x73\x70\x6f\x72'+'\x74'||_0x14feb6==='\x2d\x74')&&_0x26e9e9+0x1<_0x4ad5a8[_0x40bbd3(0xc9)]){if(_0x40bbd3(0xfb)!==_0x40bbd3(0xfb)){_0x4aca53['\x6c\x6f\x67'](_0x40bbd3(0x119)+_0x40bbd3(0xdd)+'\x78\x74');_0xc4ed4e[_0x40bbd3(0x17f)]('');_0x26f103[_0x40bbd3(0x17f)](_0x40bbd3(0x116));_0xa5a5d9[_0x40bbd3(0x17f)]('\x20\x20'+_0x484066[_0x40bbd3(0xef)]+_0x40bbd3(0x137));_0x402300[_0x40bbd3(0x17f)]('');_0x5bcf59['\x6c\x6f\x67'](_0x51b5dc[_0x40bbd3(0xd0)]);_0x1a76cc[_0x40bbd3(0x17f)](_0x51b5dc[_0x40bbd3(0x10f)]);_0x42613c[_0x40bbd3(0x17f)](_0x51b5dc[_0x40bbd3(0x14b)]);_0x58f294['\x6c\x6f\x67'](_0x51b5dc[_0x40bbd3(0x182)]);_0x2983d5[_0x40bbd3(0x17f)](_0x40bbd3(0xf3)+_0x40bbd3(0x13d)+_0x40bbd3(0xb6)+'\x20\x20\x53\x65\x74\x20\x77\x6f\x72\x6b'+_0x40bbd3(0x171)+'\x73\x20\x28\x6f\x76\x65\x72\x72\x69\x64'+_0x40bbd3(0xea)+_0x40bbd3(0xf7)+_0x40bbd3(0x177));_0x4ecf5d[_0x40bbd3(0x17f)](_0x40bbd3(0x158)+'\x2c\x20\x2d\x73\x20\x20\x20\x20\x20\x20'+_0x40bbd3(0xf5)+'\x20\x61\x6c\x6c\x20\x6f\x75\x74\x70\x75'+_0x40bbd3(0x115)+_0x40bbd3(0xb7)+_0x40bbd3(0xe2));_0x2e6b86[_0x40bbd3(0x17f)](_0x40bbd3(0x12a)+_0x40bbd3(0x147)+_0x40bbd3(0xc0)+_0x40bbd3(0x117)+_0x40bbd3(0x18c));_0x4bb887[_0x40bbd3(0x17f)](_0x51b5dc[_0x40bbd3(0x114)]);_0x5072b0['\x6c\x6f\x67']('');_0x456b02[_0x40bbd3(0x17f)](_0x51b5dc['\x56\x79\x42\x57\x45']);_0x5cb617['\x6c\x6f\x67']('\x20\x20'+_0x1dd737[_0x40bbd3(0xef)]+(_0x40bbd3(0x17b)+_0x40bbd3(0xd5)));_0x66af31['\x6c\x6f\x67']('\x20\x20'+_0xb8bde[_0x40bbd3(0xef)]+(_0x40bbd3(0x17b)+_0x40bbd3(0x149)+'\x70\x6f\x72\x74\x20\x38\x30\x38\x30'));_0xc8dfb1[_0x40bbd3(0x17f)]('\x20\x20'+_0x476307[_0x40bbd3(0xef)]+(_0x40bbd3(0x17b)+_0x40bbd3(0x13f)+_0x40bbd3(0x169)+_0x40bbd3(0x16d)));_0x13b747['\x6c\x6f\x67']('\x20\x20'+_0x5a40c8[_0x40bbd3(0xef)]+('\x20\x2d\x2d\x74\x72\x61\x6e\x73\x70\x6f'+_0x40bbd3(0x149)+_0x40bbd3(0xb4)+_0x40bbd3(0x168)+_0x40bbd3(0x186)+'\x69\x6c\x65\x6e\x74'));_0x3bb1b0[_0x40bbd3(0x17f)]('');_0x1df4bb['\x6c\x6f\x67'](_0x51b5dc[_0x40bbd3(0xd9)]);_0x3ebc2f[_0x40bbd3(0x17f)](_0x51b5dc[_0x40bbd3(0x183)]);_0x2eaa75[_0x40bbd3(0x17f)](_0x51b5dc['\x69\x4d\x57\x77\x62']);_0x418763['\x6c\x6f\x67'](_0x40bbd3(0x17a)+_0x40bbd3(0x140)+_0x40bbd3(0x101)+_0x40bbd3(0xd7)+_0x40bbd3(0x173)+_0x40bbd3(0x109)+_0x40bbd3(0x13a)+_0x40bbd3(0x15b)+_0x40bbd3(0x154));_0x50eacb[_0x40bbd3(0x17f)](_0x40bbd3(0x15a)+_0x40bbd3(0x184)+_0x40bbd3(0x15d)+_0x40bbd3(0x14c)+'\x74\x74\x70\x20\x74\x72\x61\x6e\x73\x70'+_0x40bbd3(0xe0)+'\x66\x69\x6e\x64\x73\x20\x61\x76\x61\x69'+'\x6c\x61\x62\x6c\x65\x20\x69\x66\x20\x6f'+'\x63\x63\x75\x70\x69\x65\x64\x2c\x20\x64'+_0x40bbd3(0xcd)+'\x30\x30\x29');_0x1a913f[_0x40bbd3(0x17f)](_0x40bbd3(0x178)+_0x40bbd3(0x118)+_0x40bbd3(0xd2)+'\x70\x61\x63\x65\x20\x70\x61\x74\x68\x73'+_0x40bbd3(0x156)+_0x40bbd3(0xe3));_0x20dce9[_0x40bbd3(0xc4)](0x0);}else{const _0x33505d=_0x4ad5a8[_0x26e9e9+0x1];if(_0x33505d===_0x40bbd3(0x104)||_0x33505d==='\x68\x74\x74\x70'){if('\x4d\x64\x61\x79\x45'!==_0x40bbd3(0xdc)){_0x224a68[_0x40bbd3(0x12d)]=_0x4b5644[_0x40bbd3(0x113)](_0x498ce1[_0x50e1b4+0x1],0xa);_0x16dc61++;}else{_0x5703de['\x74\x72\x61\x6e\x73\x70\x6f\x72\x74']='\x2d\x2d'+_0x33505d;}}else{if(_0x51b5dc[_0x40bbd3(0x145)](_0x51b5dc[_0x40bbd3(0xbd)],_0x40bbd3(0xf6))){_0x3db540[_0x40bbd3(0x17f)](_0x40bbd3(0x119)+_0x40bbd3(0xdd)+_0x40bbd3(0xbe)+_0x546253['\x76\x65\x72\x73\x69\x6f\x6e']);_0x385374[_0x40bbd3(0xc4)](0x0);}else{throw new Error(_0x40bbd3(0x10e)+_0x40bbd3(0xd3)+'\x6c\x75\x65\x3a\x20'+_0x33505d+(_0x40bbd3(0x143)+_0x40bbd3(0xbf)+_0x40bbd3(0x111)));}}_0x26e9e9++;}}else if((_0x14feb6===_0x40bbd3(0x106)+'\x6c'||_0x14feb6==='\x2d\x6c')&&_0x51b5dc[_0x40bbd3(0xf9)](_0x51b5dc[_0x40bbd3(0x138)](_0x26e9e9,0x1),_0x4ad5a8[_0x40bbd3(0xc9)])){_0x5703de[_0x40bbd3(0x16a)]=_0x4ad5a8[_0x26e9e9+0x1]['\x74\x6f\x4c\x6f\x77\x65\x72\x43\x61\x73'+'\x65']();_0x26e9e9++;}else if((_0x51b5dc['\x46\x45\x50\x65\x4f'](_0x14feb6,_0x40bbd3(0xb9))||_0x14feb6==='\x2d\x70')&&_0x51b5dc[_0x40bbd3(0xfc)](_0x51b5dc[_0x40bbd3(0x159)](_0x26e9e9,0x1),_0x4ad5a8[_0x40bbd3(0xc9)])){_0x5703de[_0x40bbd3(0x12d)]=Number['\x70\x61\x72\x73\x65\x49\x6e\x74'](_0x4ad5a8[_0x26e9e9+0x1],0xa);_0x26e9e9++;}else if((_0x14feb6===_0x51b5dc['\x54\x62\x53\x77\x61']||_0x14feb6==='\x2d\x77')&&_0x51b5dc[_0x40bbd3(0x152)](_0x51b5dc[_0x40bbd3(0x138)](_0x26e9e9,0x1),_0x4ad5a8[_0x40bbd3(0xc9)])){_0x5703de[_0x40bbd3(0xe6)+_0x40bbd3(0x108)]=_0x4ad5a8[_0x51b5dc[_0x40bbd3(0x123)](_0x26e9e9,0x1)];_0x26e9e9++;}else if(_0x14feb6==='\x2d\x2d\x73\x69\x6c\x65\x6e\x74'||_0x14feb6==='\x2d\x73'){if(_0x51b5dc[_0x40bbd3(0x136)]!==_0x40bbd3(0x175)){_0x5703de[_0x40bbd3(0x15f)]=!![];}else{_0x1ffeb4['\x6c\x6f\x67\x4c\x65\x76\x65\x6c']=_0x227c82[_0x3a114c+0x1][_0x40bbd3(0x18e)+'\x65']();_0x3da35b++;}}else if(_0x14feb6[_0x40bbd3(0xeb)]('\x2d\x2d')||_0x14feb6[_0x40bbd3(0xeb)]('\x2d')&&_0x51b5dc[_0x40bbd3(0x145)](_0x14feb6[_0x40bbd3(0xc9)],0x2)){throw new Error(_0x40bbd3(0x153)+_0x40bbd3(0x144)+_0x14feb6);}}return _0x5703de;}export async function main(_0x2249a8){const _0x1c8b32=a0_0xaa5b;const _0x39d435={'\x53\x4f\x5a\x50\x63':_0x1c8b32(0x160),'\x41\x48\x79\x58\x56':function(_0x19ad0c,_0x20be9a,_0x32bb90){return _0x19ad0c(_0x20be9a,_0x32bb90);},'\x7a\x61\x67\x47\x79':_0x1c8b32(0xc1)+'\x6f\x6e','\x6c\x7a\x57\x7a\x66':function(_0x29da88,_0x44faeb){return _0x29da88===_0x44faeb;},'\x50\x45\x55\x49\x6e':_0x1c8b32(0x142),'\x4b\x68\x57\x71\x6c':_0x1c8b32(0x119)+_0x1c8b32(0xdd)+'\x78\x74','\x4a\x5a\x71\x5a\x49':_0x1c8b32(0x158)+_0x1c8b32(0x176)+_0x1c8b32(0xf5)+_0x1c8b32(0x14f)+'\x74\x20\x28\x6f\x76\x65\x72\x72\x69\x64'+_0x1c8b32(0xb7)+'\x65\x76\x65\x6c\x29','\x6b\x49\x54\x64\x48':'\x45\x78\x61\x6d\x70\x6c\x65\x73\x3a','\x4e\x59\x77\x7a\x68':'\x20\x20\x4c\x4f\x47\x5f\x4c\x45\x56\x45'+'\x4c\x20\x20\x20\x20\x20\x20\x20\x20\x20'+'\x20\x20\x20\x20\x20\x4c\x6f\x67\x20\x6c'+_0x1c8b32(0x133)+_0x1c8b32(0x172)+_0x1c8b32(0xd8)+'\x61\x6c\x2c\x20\x65\x72\x72\x6f\x72\x2c'+'\x20\x77\x61\x72\x6e\x69\x6e\x67\x2c\x20'+'\x6e\x6f\x74\x69\x63\x65\x2c\x20\x69\x6e'+_0x1c8b32(0x12c)+'\x28\x64\x65\x66\x61\x75\x6c\x74\x3a\x20'+_0x1c8b32(0x141),'\x5a\x54\x43\x41\x6d':_0x1c8b32(0x17a)+_0x1c8b32(0x140)+_0x1c8b32(0x101)+'\x74\x20\x6d\x6f\x64\x65\x3a\x20\x74\x72'+_0x1c8b32(0x173)+_0x1c8b32(0x109)+'\x20\x6f\x75\x74\x70\x75\x74\x20\x28\x64'+_0x1c8b32(0x15b)+'\x6c\x73\x65\x29','\x79\x4c\x79\x6b\x77':'\x73\x74\x64\x69\x6f','\x4d\x6b\x58\x52\x59':'\x30\x7c\x31\x7c\x32\x7c\x33\x7c\x34','\x77\x50\x59\x74\x5a':_0x1c8b32(0x13b)+'\x6e\x76\x61\x6c\x69\x64\x20\x74\x72\x61'+_0x1c8b32(0x150)+'\x75\x65','\x43\x63\x4c\x4d\x4c':'\x65\x72\x72\x6f\x72','\x45\x53\x46\x49\x4b':_0x1c8b32(0x161)+_0x1c8b32(0x124)+_0x1c8b32(0x121)+'\x43\x6f\x6e\x74\x65\x78\x74\x20\x73\x65'+'\x72\x76\x65\x72'};try{const {readFileSync:_0x26d2c7}=await import(_0x1c8b32(0x102));const {dirname:_0x574517,join:_0x568b7b}=await import(_0x39d435[_0x1c8b32(0x16e)]);const {fileURLToPath:_0x2aeadd}=await import(_0x1c8b32(0xf1));const _0x382a92=_0x2aeadd(import.meta.url);const _0x1fe4b0=_0x574517(_0x382a92);const _0x51e3ad=_0x39d435[_0x1c8b32(0x189)](_0x568b7b,_0x1fe4b0,_0x39d435['\x7a\x61\x67\x47\x79']);const _0x5f4fdc=JSON[_0x1c8b32(0xe8)](_0x26d2c7(_0x51e3ad,_0x1c8b32(0xfa)));const _0x52f94a=parseCliArguments(_0x2249a8);if(_0x39d435['\x6c\x7a\x57\x7a\x66'](_0x52f94a[_0x1c8b32(0xcf)],_0x39d435[_0x1c8b32(0x11b)])){console[_0x1c8b32(0x17f)](_0x39d435['\x4b\x68\x57\x71\x6c']);console[_0x1c8b32(0x17f)]('');console[_0x1c8b32(0x17f)]('\x55\x73\x61\x67\x65\x3a');console['\x6c\x6f\x67']('\x20\x20'+_0x5f4fdc[_0x1c8b32(0xef)]+_0x1c8b32(0x137));console[_0x1c8b32(0x17f)]('');console[_0x1c8b32(0x17f)](_0x1c8b32(0xbb));console['\x6c\x6f\x67'](_0x1c8b32(0x185)+_0x1c8b32(0xf2)+'\x2d\x74\x20\x54\x59\x50\x45\x20\x20\x20'+'\x20\x20\x54\x72\x61\x6e\x73\x70\x6f\x72'+_0x1c8b32(0x163)+_0x1c8b32(0x174)+'\x70\x20\x28\x6f\x76\x65\x72\x72\x69\x64'+_0x1c8b32(0x107)+_0x1c8b32(0x151));console[_0x1c8b32(0x17f)]('\x20\x20\x2d\x2d\x6c\x6f\x67\x2d\x6c\x65'+_0x1c8b32(0x17c)+_0x1c8b32(0x14d)+'\x20\x20\x20\x53\x65\x74\x20\x6c\x6f\x67'+_0x1c8b32(0x155)+_0x1c8b32(0x10d)+_0x1c8b32(0xe5)+_0x1c8b32(0x146)+'\x72\x2c\x20\x77\x61\x72\x6e\x69\x6e\x67'+_0x1c8b32(0xf8)+_0x1c8b32(0x11a)+'\x67');console[_0x1c8b32(0x17f)](_0x1c8b32(0x11c)+_0x1c8b32(0x122)+_0x1c8b32(0x17e)+'\x20\x53\x65\x74\x20\x48\x54\x54\x50\x20'+_0x1c8b32(0x14c)+_0x1c8b32(0xe1)+'\x6f\x72\x74\x20\x28\x61\x75\x74\x6f\x2d'+_0x1c8b32(0x188)+_0x1c8b32(0x10b)+_0x1c8b32(0xcb));console[_0x1c8b32(0x17f)](_0x1c8b32(0xf3)+_0x1c8b32(0x13d)+_0x1c8b32(0xb6)+_0x1c8b32(0x130)+_0x1c8b32(0x171)+_0x1c8b32(0x14a)+'\x65\x73\x20\x57\x4f\x52\x4b\x53\x50\x41'+'\x43\x45\x5f\x46\x4f\x4c\x44\x45\x52\x5f'+_0x1c8b32(0x177));console[_0x1c8b32(0x17f)](_0x39d435[_0x1c8b32(0x162)]);console['\x6c\x6f\x67'](_0x1c8b32(0x12a)+'\x2d\x68\x20\x20\x20\x20\x20\x20\x20\x20'+'\x20\x20\x53\x68\x6f\x77\x20\x74\x68\x69'+_0x1c8b32(0x117)+_0x1c8b32(0x18c));console[_0x1c8b32(0x17f)]('\x20\x20\x2d\x2d\x76\x65\x72\x73\x69\x6f'+_0x1c8b32(0xc3)+_0x1c8b32(0xc8)+_0x1c8b32(0xfd)+_0x1c8b32(0x17d));console['\x6c\x6f\x67']('');console[_0x1c8b32(0x17f)](_0x39d435['\x6b\x49\x54\x64\x48']);console[_0x1c8b32(0x17f)]('\x20\x20'+_0x5f4fdc[_0x1c8b32(0xef)]+(_0x1c8b32(0x17b)+_0x1c8b32(0xd5)));console['\x6c\x6f\x67']('\x20\x20'+_0x5f4fdc[_0x1c8b32(0xef)]+(_0x1c8b32(0x17b)+'\x72\x74\x20\x68\x74\x74\x70\x20\x2d\x2d'+_0x1c8b32(0x139)));console[_0x1c8b32(0x17f)]('\x20\x20'+_0x5f4fdc[_0x1c8b32(0xef)]+('\x20\x2d\x2d\x74\x72\x61\x6e\x73\x70\x6f'+_0x1c8b32(0x13f)+'\x2d\x6c\x6f\x67\x2d\x6c\x65\x76\x65\x6c'+_0x1c8b32(0x16d)));console[_0x1c8b32(0x17f)]('\x20\x20'+_0x5f4fdc['\x6e\x61\x6d\x65']+(_0x1c8b32(0x17b)+'\x72\x74\x20\x68\x74\x74\x70\x20\x2d\x2d'+_0x1c8b32(0xb4)+_0x1c8b32(0x168)+_0x1c8b32(0x186)+'\x69\x6c\x65\x6e\x74'));console[_0x1c8b32(0x17f)]('');console[_0x1c8b32(0x17f)]('\x45\x6e\x76\x69\x72\x6f\x6e\x6d\x65\x6e'+_0x1c8b32(0xff)+_0x1c8b32(0x14a)+_0x1c8b32(0x126)+_0x1c8b32(0xee)+'\x29\x3a');console[_0x1c8b32(0x17f)](_0x1c8b32(0xc5)+_0x1c8b32(0xe9)+_0x1c8b32(0xcc)+_0x1c8b32(0x16c)+_0x1c8b32(0x127)+_0x1c8b32(0xb5)+_0x1c8b32(0x170)+'\x6f\x29');console[_0x1c8b32(0x17f)](_0x39d435[_0x1c8b32(0x166)]);console[_0x1c8b32(0x17f)](_0x39d435[_0x1c8b32(0xc7)]);console[_0x1c8b32(0x17f)](_0x1c8b32(0x15a)+_0x1c8b32(0x184)+_0x1c8b32(0x15d)+_0x1c8b32(0x14c)+'\x74\x74\x70\x20\x74\x72\x61\x6e\x73\x70'+_0x1c8b32(0xe0)+'\x66\x69\x6e\x64\x73\x20\x61\x76\x61\x69'+'\x6c\x61\x62\x6c\x65\x20\x69\x66\x20\x6f'+_0x1c8b32(0x112)+_0x1c8b32(0xcd)+_0x1c8b32(0x15e));console[_0x1c8b32(0x17f)](_0x1c8b32(0x178)+'\x45\x5f\x46\x4f\x4c\x44\x45\x52\x5f\x50'+'\x41\x54\x48\x53\x20\x57\x6f\x72\x6b\x73'+_0x1c8b32(0x134)+_0x1c8b32(0x156)+_0x1c8b32(0xe3));process[_0x1c8b32(0xc4)](0x0);}if(_0x52f94a[_0x1c8b32(0xcf)]===_0x1c8b32(0x11d)){console[_0x1c8b32(0x17f)]('\x49\x42\x4d\x20\x53\x61\x6c\x65\x73\x66'+_0x1c8b32(0xdd)+_0x1c8b32(0xbe)+_0x5f4fdc[_0x1c8b32(0xe4)]);process[_0x1c8b32(0xc4)](0x0);}let _0x1ced9c;if(_0x52f94a[_0x1c8b32(0xcf)]){if(_0x1c8b32(0x128)===_0x1c8b32(0x164)){_0x39d641.env.LOG_LEVEL=_0x5e9aae;}else{_0x1ced9c=_0x52f94a['\x74\x72\x61\x6e\x73\x70\x6f\x72\x74'][_0x1c8b32(0x179)](/^--/,'')[_0x1c8b32(0x18e)+'\x65']();}}else if(process.env.MCP_TRANSPORT){_0x1ced9c=process.env.MCP_TRANSPORT['\x74\x6f\x4c\x6f\x77\x65\x72\x43\x61\x73'+'\x65']();}else{_0x1ced9c='\x73\x74\x64\x69\x6f';}if(_0x1ced9c!==_0x39d435[_0x1c8b32(0xbc)]&&_0x1ced9c!==_0x1c8b32(0x14e)){const _0x35ceb9=_0x39d435[_0x1c8b32(0xd4)]['\x73\x70\x6c\x69\x74']('\x7c');let _0x5a7730=0x0;while(!![]){switch(_0x35ceb9[_0x5a7730++]){case'\x30':console[_0x1c8b32(0x181)](_0x39d435[_0x1c8b32(0xf4)]);continue;case'\x31':console[_0x1c8b32(0x181)]('\x56\x61\x6c\x69\x64\x20\x6f\x70\x74\x69'+'\x6f\x6e\x73\x3a\x20\x73\x74\x64\x69\x6f'+_0x1c8b32(0x11e));continue;case'\x32':console[_0x1c8b32(0x181)](_0x1c8b32(0x148)+_0x1ced9c);continue;case'\x33':console['\x65\x72\x72\x6f\x72'](_0x1c8b32(0xde)+_0x5f4fdc[_0x1c8b32(0xef)]+('\x20\x2d\x2d\x68\x65\x6c\x70\x22\x20\x66'+_0x1c8b32(0xe7)+_0x1c8b32(0xca)));continue;case'\x34':process[_0x1c8b32(0xc4)](0x1);continue;}break;}}if(_0x52f94a['\x73\x69\x6c\x65\x6e\x74']){setSilent(!![]);}else if(_0x52f94a[_0x1c8b32(0x16a)]){const _0x95179c=[_0x1c8b32(0x13e),_0x1c8b32(0xdb),'\x6e\x6f\x74\x69\x63\x65','\x77\x61\x72\x6e\x69\x6e\x67',_0x39d435[_0x1c8b32(0x18d)],_0x1c8b32(0x12f),_0x1c8b32(0x16b),_0x1c8b32(0x12b)];const _0x487bfc=_0x52f94a[_0x1c8b32(0x16a)]['\x74\x6f\x4c\x6f\x77\x65\x72\x43\x61\x73'+'\x65']();if(_0x95179c[_0x1c8b32(0x18b)](_0x487bfc)){process.env.LOG_LEVEL=_0x487bfc;}else{console['\x65\x72\x72\x6f\x72'](_0x1c8b32(0x13b)+_0x1c8b32(0x180)+'\x20\x6c\x65\x76\x65\x6c\x3a\x20'+_0x52f94a[_0x1c8b32(0x16a)]);console[_0x1c8b32(0x181)](_0x1c8b32(0xec)+_0x1c8b32(0xed)+_0x95179c[_0x1c8b32(0x135)]('\x2c\x20'));process[_0x1c8b32(0xc4)](0x1);}}if(_0x52f94a[_0x1c8b32(0x12d)]){process.env.MCP_HTTP_PORT=_0x52f94a[_0x1c8b32(0x12d)][_0x1c8b32(0x16f)]();}if(_0x52f94a[_0x1c8b32(0xe6)+_0x1c8b32(0x108)]){process.env.WORKSPACE_FOLDER_PATHS=_0x52f94a[_0x1c8b32(0xe6)+_0x1c8b32(0x108)];}const {registerGlobalErrorHandlers:registerGlobalErrorHandlers,registerSignalHandlers:registerSignalHandlers}=await import(_0x1c8b32(0x125)+_0x1c8b32(0x10c));registerGlobalErrorHandlers();registerSignalHandlers();await setupServer(_0x1ced9c);}catch(_0x173d66){const _0x11cf2b=createLogger();_0x11cf2b[_0x1c8b32(0x181)](_0x173d66,_0x39d435['\x45\x53\x46\x49\x4b']);await mcpServer[_0x1c8b32(0xb8)]();process[_0x1c8b32(0xc4)](0x1);}}main(process[a0_0x224931(0xf0)][a0_0x224931(0x10a)](0x2));
|
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x1092ed=a0_0x37ee;(function(_0x328768,_0x230d98){const _0x1e207d=a0_0x37ee;const _0x5779d6=_0x328768();while(!![]){try{const _0x32f582=parseInt(_0x1e207d(0x194))/0x1*(parseInt(_0x1e207d(0x1a5))/0x2)+parseInt(_0x1e207d(0x181))/0x3*(parseInt(_0x1e207d(0x192))/0x4)+parseInt(_0x1e207d(0x172))/0x5*(parseInt(_0x1e207d(0x171))/0x6)+parseInt(_0x1e207d(0x197))/0x7*(-parseInt(_0x1e207d(0x19d))/0x8)+-parseInt(_0x1e207d(0x173))/0x9*(parseInt(_0x1e207d(0x19c))/0xa)+-parseInt(_0x1e207d(0x18f))/0xb*(-parseInt(_0x1e207d(0x19e))/0xc)+-parseInt(_0x1e207d(0x19b))/0xd;if(_0x32f582===_0x230d98){break;}else{_0x5779d6['push'](_0x5779d6['shift']());}}catch(_0x4253cb){_0x5779d6['push'](_0x5779d6['shift']());}}}(a0_0x36cb,0x1cab4));import a0_0x564674 from'\x73\x65\x6d\x76\x65\x72';function a0_0x37ee(_0x3e73aa,_0x58a44e){_0x3e73aa=_0x3e73aa-0x171;const _0x36cba6=a0_0x36cb();let _0x37ee75=_0x36cba6[_0x3e73aa];if(a0_0x37ee['\x59\x78\x4a\x4b\x41\x66']===undefined){var _0x338cde=function(_0x8eafe6){const _0x3c2cfd='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x143057='';let _0x1a2b00='';for(let _0x501d82=0x0,_0x23a4b6,_0xdca918,_0x5e168a=0x0;_0xdca918=_0x8eafe6['\x63\x68\x61\x72\x41\x74'](_0x5e168a++);~_0xdca918&&(_0x23a4b6=_0x501d82%0x4?_0x23a4b6*0x40+_0xdca918:_0xdca918,_0x501d82++%0x4)?_0x143057+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x23a4b6>>(-0x2*_0x501d82&0x6)):0x0){_0xdca918=_0x3c2cfd['\x69\x6e\x64\x65\x78\x4f\x66'](_0xdca918);}for(let _0x1da334=0x0,_0x2b11a2=_0x143057['\x6c\x65\x6e\x67\x74\x68'];_0x1da334<_0x2b11a2;_0x1da334++){_0x1a2b00+='\x25'+('\x30\x30'+_0x143057['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x1da334)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x1a2b00);};a0_0x37ee['\x69\x48\x5a\x74\x71\x67']=_0x338cde;a0_0x37ee['\x6e\x57\x77\x68\x47\x79']={};a0_0x37ee['\x59\x78\x4a\x4b\x41\x66']=!![];}const _0x2ebb44=_0x36cba6[0x0];const _0x1147f3=_0x3e73aa+_0x2ebb44;const _0x576c0b=a0_0x37ee['\x6e\x57\x77\x68\x47\x79'][_0x1147f3];if(!_0x576c0b){_0x37ee75=a0_0x37ee['\x69\x48\x5a\x74\x71\x67'](_0x37ee75);a0_0x37ee['\x6e\x57\x77\x68\x47\x79'][_0x1147f3]=_0x37ee75;}else{_0x37ee75=_0x576c0b;}return _0x37ee75;}import a0_0x46928b from'\x2e\x2f\x63\x6f\x6e\x66\x69\x67\x2e\x6a\x73';function a0_0x36cb(){const _0x5356c4=['\x7a\x32\x76\x30\x71\x32\x58\x50\x7a\x77\x35\x30\x74\x47','\x41\x78\x6e\x62\x43\x4e\x6a\x48\x45\x71','\x7a\x77\x31\x49\x7a\x77\x72\x4b\x7a\x77\x72\x73\x7a\x71','\x41\x77\x35\x50\x44\x67\x4c\x48\x42\x67\x4c\x36\x7a\x71','\x43\x33\x76\x57\x43\x67\x39\x59\x44\x68\x6e\x64\x79\x71','\x7a\x78\x6a\x5a\x41\x77\x39\x55','\x7a\x67\x4c\x56\x69\x65\x6e\x56\x7a\x67\x75','\x43\x4d\x76\x5a\x42\x33\x76\x59\x79\x32\x76\x5a','\x6d\x73\x34\x58\x6d\x64\x6d\x55\x6d\x61','\x44\x77\x35\x52\x42\x4d\x39\x33\x42\x47','\x43\x4d\x76\x5a\x42\x33\x76\x59\x79\x32\x76\x46\x42\x61','\x6e\x64\x79\x59\x6d\x64\x47\x58\x43\x31\x76\x48\x72\x68\x50\x5a','\x42\x32\x6a\x51\x7a\x77\x6e\x30','\x79\x77\x31\x4c','\x42\x75\x4c\x36\x42\x4b\x69','\x43\x30\x6a\x4d\x76\x4b\x65','\x41\x32\x76\x35\x43\x57','\x72\x4e\x72\x77\x79\x31\x71','\x43\x4d\x39\x56\x44\x68\x6d','\x7a\x32\x76\x30\x71\x32\x58\x50\x7a\x77\x35\x30\x76\x47','\x71\x33\x76\x59\x43\x32\x39\x59','\x74\x77\x4c\x64\x43\x4d\x39\x5a\x79\x32\x39\x71\x7a\x71','\x42\x4d\x39\x6b\x75\x75\x4b','\x76\x31\x66\x36\x76\x76\x69','\x41\x77\x35\x52\x43\x57','\x6e\x5a\x43\x5a\x6f\x64\x43\x59\x72\x4d\x6e\x31\x72\x4b\x6a\x62','\x79\x32\x58\x50\x7a\x77\x35\x30\x73\x77\x35\x4d\x42\x57','\x42\x67\x39\x4e\x7a\x32\x4c\x55\x7a\x57','\x6e\x67\x58\x4b\x42\x78\x76\x31\x74\x71','\x43\x4e\x6e\x50\x42\x32\x34','\x6d\x74\x79\x33\x75\x30\x6e\x6f\x73\x77\x7a\x31','\x43\x67\x66\x49\x41\x77\x58\x50\x44\x68\x4b','\x79\x32\x66\x57\x79\x77\x6a\x50\x42\x67\x4c\x30\x41\x71','\x6e\x74\x71\x32\x72\x30\x76\x62\x77\x65\x72\x66','\x43\x32\x39\x54\x7a\x71','\x76\x4d\x4c\x5a\x44\x77\x66\x53\x69\x66\x6e\x30\x44\x71','\x43\x68\x6a\x56\x44\x67\x39\x4a\x42\x32\x58\x77\x7a\x71','\x6e\x74\x65\x33\x6d\x64\x69\x58\x6e\x30\x39\x65\x77\x76\x6e\x63\x77\x47','\x6d\x4a\x69\x5a\x6d\x65\x4c\x74\x44\x32\x58\x58\x73\x71','\x6d\x4a\x69\x35\x6e\x4d\x48\x53\x42\x75\x58\x56\x72\x57','\x6d\x4a\x72\x73\x71\x77\x50\x78\x75\x4e\x69','\x69\x65\x4c\x55\x43\x32\x4c\x4b\x7a\x78\x6a\x5a','\x7a\x77\x58\x50\x79\x32\x4c\x30\x79\x78\x72\x50\x42\x57','\x42\x4d\x66\x54\x7a\x71','\x42\x66\x48\x78\x44\x4c\x43','\x42\x67\x76\x55\x7a\x33\x72\x4f','\x72\x75\x31\x57\x43\x66\x61','\x6d\x4a\x69\x31\x6f\x67\x6a\x67\x72\x4d\x54\x54\x7a\x61','\x41\x77\x35\x4a\x42\x68\x76\x4b\x7a\x78\x6d','\x6f\x64\x71\x35\x6f\x74\x4b\x57\x7a\x4e\x44\x30\x45\x76\x72\x32','\x6e\x75\x4c\x67\x43\x77\x31\x65\x7a\x47','\x6d\x5a\x75\x59\x6f\x67\x6a\x57\x7a\x66\x44\x63\x7a\x47','\x7a\x67\x4c\x56\x69\x65\x6e\x56\x7a\x67\x75\x47\x6c\x71','\x43\x32\x39\x31\x43\x4d\x6e\x4c\x43\x57'];a0_0x36cb=function(){return _0x5356c4;};return a0_0x36cb();}class Client{[a0_0x1092ed(0x190)];[a0_0x1092ed(0x196)+'\x65\x73'];[a0_0x1092ed(0x19a)+a0_0x1092ed(0x193)];[a0_0x1092ed(0x188)]={};constructor(){const _0x318417=a0_0x37ee;const _0x606ba8={'\x54\x79\x65\x6f\x61':'\x75\x6e\x6b\x6e\x6f\x77\x6e'};this['\x63\x6c\x69\x65\x6e\x74\x49\x6e\x66\x6f']={'\x6e\x61\x6d\x65':_0x606ba8['\x54\x79\x65\x6f\x61']};this[_0x318417(0x196)+'\x65\x73']={};this[_0x318417(0x19a)+_0x318417(0x193)]='';}[a0_0x1092ed(0x179)](_0x486c5d={}){const _0x3bd66e=a0_0x37ee;this[_0x3bd66e(0x190)]=_0x486c5d?.[_0x3bd66e(0x190)]||{'\x6e\x61\x6d\x65':_0x3bd66e(0x17f)};this[_0x3bd66e(0x196)+'\x65\x73']=_0x486c5d?.[_0x3bd66e(0x196)+'\x65\x73']||{};this[_0x3bd66e(0x19a)+_0x3bd66e(0x193)]=_0x486c5d?.[_0x3bd66e(0x19a)+_0x3bd66e(0x193)]||'';}['\x67\x65\x74\x43\x6c\x69\x65\x6e\x74\x4e'+a0_0x1092ed(0x183)](){const _0x4ce651=a0_0x37ee;const _0x4c0f00=this[_0x4ce651(0x190)]?.[_0x4ce651(0x1a1)]||'\x75\x6e\x6b\x6e\x6f\x77\x6e';const _0x106068={'\x63\x75\x72\x73\x6f\x72\x2d\x76\x73\x63\x6f\x64\x65':_0x4ce651(0x18a),'\x56\x69\x73\x75\x61\x6c\x20\x53\x74\x75\x64\x69\x6f\x20\x43\x6f\x64\x65':_0x4ce651(0x199)+'\x64\x69\x6f\x20\x43\x6f\x64\x65','\x56\x69\x73\x75\x61\x6c\x20\x53\x74\x75\x64\x69\x6f\x20\x43\x6f\x64\x65\x20\x2d\x20\x49\x6e\x73\x69\x64\x65\x72\x73':_0x4ce651(0x199)+'\x64\x69\x6f\x20\x43\x6f\x64\x65\x20\x2d'+_0x4ce651(0x19f),'\x6d\x69\x63\x72\x6f\x73\x63\x6f\x70\x65':_0x4ce651(0x18b)};return _0x106068[_0x4c0f00]||_0x4c0f00;}[a0_0x1092ed(0x189)+a0_0x1092ed(0x17b)](){const _0x5ec105=a0_0x37ee;return this[_0x5ec105(0x190)]?.['\x76\x65\x72\x73\x69\x6f\x6e'];}['\x69\x73'](_0x411e4f){const _0xa9a938=a0_0x37ee;if(!Array[_0xa9a938(0x177)](_0x411e4f)){_0x411e4f=[_0x411e4f];}const _0x1bdf90=this[_0xa9a938(0x176)+'\x61\x6d\x65']()['\x74\x6f\x4c\x6f\x77\x65\x72\x43\x61\x73'+'\x65']();return _0x411e4f[_0xa9a938(0x198)](_0x1b7b36=>_0x1bdf90[_0xa9a938(0x1a6)](_0x1b7b36['\x74\x6f\x4c\x6f\x77\x65\x72\x43\x61\x73'+'\x65']()));}[a0_0x1092ed(0x17a)+a0_0x1092ed(0x195)](_0x472b7b){const _0x262f44=a0_0x37ee;const _0x3b2d13={'\x45\x4d\x70\x70\x50':function(_0x415ecb,_0x313dce){return _0x415ecb(_0x313dce);},'\x46\x74\x56\x63\x54':_0x262f44(0x199)+_0x262f44(0x17c),'\x6e\x6f\x4a\x51\x49':_0x262f44(0x199)+_0x262f44(0x174)+'\x20\x49\x6e\x73\x69\x64\x65\x72\x73','\x57\x51\x7a\x55\x52':_0x262f44(0x18a),'\x56\x65\x49\x67\x66':_0x262f44(0x17e),'\x6d\x49\x7a\x6e\x42':_0x262f44(0x1a0)+'\x6e','\x6c\x58\x57\x76\x57':function(_0x4d13b2,_0x24ae9d){return _0x4d13b2===_0x24ae9d;},'\x73\x42\x66\x56\x41':_0x262f44(0x182)};switch(_0x472b7b){case'\x6c\x6f\x67\x67\x69\x6e\x67':return _0x3b2d13[_0x262f44(0x1a4)](Boolean,this[_0x262f44(0x196)+'\x65\x73']?.[_0x262f44(0x191)])||this['\x69\x73']([_0x262f44(0x199)+_0x262f44(0x17c),_0x262f44(0x199)+_0x262f44(0x174)+_0x262f44(0x19f)]);case _0x262f44(0x17d):return Boolean(this[_0x262f44(0x196)+'\x65\x73']?.[_0x472b7b])||this['\x69\x73']([_0x3b2d13[_0x262f44(0x187)],_0x3b2d13[_0x262f44(0x18c)],_0x3b2d13[_0x262f44(0x18d)]]);case _0x262f44(0x178)+_0x262f44(0x175):return this['\x69\x73']([_0x262f44(0x199)+_0x262f44(0x17c),_0x3b2d13['\x6e\x6f\x4a\x51\x49'],'\x43\x75\x72\x73\x6f\x72']);case _0x262f44(0x180)+_0x262f44(0x18e):return this['\x69\x73']([_0x3b2d13[_0x262f44(0x187)],_0x262f44(0x199)+_0x262f44(0x174)+'\x20\x49\x6e\x73\x69\x64\x65\x72\x73'])&&a0_0x564674['\x67\x74\x65'](this['\x63\x6c\x69\x65\x6e\x74\x49\x6e\x66\x6f']['\x76\x65\x72\x73\x69\x6f\x6e'],_0x3b2d13['\x56\x65\x49\x67\x66']);case _0x3b2d13[_0x262f44(0x184)]:{if(a0_0x46928b['\x64\x69\x73\x61\x62\x6c\x65\x45\x6c\x69'+'\x63\x69\x74\x61\x74\x69\x6f\x6e']){return![];}const _0x37ae37=this[_0x262f44(0x196)+'\x65\x73']?.[_0x472b7b];if(!_0x37ae37){return![];}if(_0x3b2d13[_0x262f44(0x1a2)](typeof _0x37ae37,_0x3b2d13[_0x262f44(0x185)])){return Object[_0x262f44(0x186)](_0x37ae37)[_0x262f44(0x1a3)]===0x0||Boolean(_0x37ae37['\x66\x6f\x72\x6d']);}return Boolean(_0x37ae37);}default:return Boolean(this[_0x262f44(0x196)+'\x65\x73']?.[_0x472b7b]);}}}const client=new Client();export default client;
|
package/src/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a0_0x352c(_0x582656,_0x446369){_0x582656=_0x582656-0x91;const _0x20ae25=a0_0x20ae();let _0x352c52=_0x20ae25[_0x582656];if(a0_0x352c['\x64\x57\x6f\x64\x49\x47']===undefined){var _0x1c178b=function(_0x489465){const _0x4cbfc7='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x23c366='';let _0x3d3983='';for(let _0xe052ac=0x0,_0x9d3043,_0x3eaf39,_0x90a187=0x0;_0x3eaf39=_0x489465['\x63\x68\x61\x72\x41\x74'](_0x90a187++);~_0x3eaf39&&(_0x9d3043=_0xe052ac%0x4?_0x9d3043*0x40+_0x3eaf39:_0x3eaf39,_0xe052ac++%0x4)?_0x23c366+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x9d3043>>(-0x2*_0xe052ac&0x6)):0x0){_0x3eaf39=_0x4cbfc7['\x69\x6e\x64\x65\x78\x4f\x66'](_0x3eaf39);}for(let _0x18156b=0x0,_0xceb2a3=_0x23c366['\x6c\x65\x6e\x67\x74\x68'];_0x18156b<_0xceb2a3;_0x18156b++){_0x3d3983+='\x25'+('\x30\x30'+_0x23c366['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x18156b)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x3d3983);};a0_0x352c['\x59\x6a\x5a\x55\x6b\x4e']=_0x1c178b;a0_0x352c['\x50\x74\x52\x43\x76\x69']={};a0_0x352c['\x64\x57\x6f\x64\x49\x47']=!![];}const _0x5ecaef=_0x20ae25[0x0];const _0x34540c=_0x582656+_0x5ecaef;const _0x1716ae=a0_0x352c['\x50\x74\x52\x43\x76\x69'][_0x34540c];if(!_0x1716ae){_0x352c52=a0_0x352c['\x59\x6a\x5a\x55\x6b\x4e'](_0x352c52);a0_0x352c['\x50\x74\x52\x43\x76\x69'][_0x34540c]=_0x352c52;}else{_0x352c52=_0x1716ae;}return _0x352c52;}const a0_0x487b0c=a0_0x352c;(function(_0x5a602e,_0x414014){const _0x5a9523=a0_0x352c;const _0x41bd53=_0x5a602e();while(!![]){try{const _0x20abc8=parseInt(_0x5a9523(0x9a))/0x1+-parseInt(_0x5a9523(0xb7))/0x2+-parseInt(_0x5a9523(0xa2))/0x3+parseInt(_0x5a9523(0xb2))/0x4*(parseInt(_0x5a9523(0x99))/0x5)+parseInt(_0x5a9523(0x9b))/0x6*(-parseInt(_0x5a9523(0xab))/0x7)+parseInt(_0x5a9523(0xa8))/0x8*(-parseInt(_0x5a9523(0xa7))/0x9)+-parseInt(_0x5a9523(0xba))/0xa*(-parseInt(_0x5a9523(0xc6))/0xb);if(_0x20abc8===_0x414014){break;}else{_0x41bd53['push'](_0x41bd53['shift']());}}catch(_0x57e207){_0x41bd53['push'](_0x41bd53['shift']());}}}(a0_0x20ae,0x6acc8));function a0_0x20ae(){const _0x5a42be=['\x6d\x74\x48\x36\x76\x4e\x62\x6c\x73\x75\x4b','\x6d\x74\x43\x5a\x6d\x4a\x75\x32\x6f\x65\x44\x30\x7a\x33\x48\x7a\x76\x57','\x43\x32\x75\x47\x79\x32\x48\x48\x42\x4d\x44\x4c\x43\x57','\x45\x68\x71\x47\x74\x75\x6e\x71\x69\x66\x6e\x4c\x43\x47','\x6e\x64\x6a\x31\x74\x30\x72\x68\x44\x78\x65','\x43\x59\x39\x59\x7a\x78\x62\x56\x43\x4e\x71\x54\x41\x71','\x41\x77\x35\x4d\x42\x33\x6a\x54\x79\x78\x72\x50\x42\x57','\x43\x67\x66\x59\x43\x32\x76\x6a\x42\x4e\x71','\x43\x33\x76\x53\x44\x68\x6d\x53\x69\x67\x39\x49\x41\x47','\x79\x33\x76\x30\x7a\x73\x62\x65\x74\x75\x57\x53\x69\x61','\x7a\x4d\x66\x53\x43\x32\x75','\x6d\x74\x65\x57\x6d\x64\x79\x35\x6d\x4e\x7a\x58\x72\x4e\x44\x79\x45\x61','\x41\x68\x72\x30\x43\x68\x6d\x36\x6c\x59\x39\x50\x79\x47','\x42\x49\x57\x47\x75\x30\x39\x72\x74\x63\x62\x59\x7a\x71','\x43\x68\x61\x56\x6c\x4d\x35\x4c\x44\x67\x58\x50\x7a\x47','\x6c\x4d\x50\x5a\x42\x32\x34','\x6d\x74\x69\x5a\x6e\x74\x79\x58\x6d\x65\x35\x74\x42\x67\x31\x66\x43\x61','\x44\x68\x6a\x31\x7a\x71','\x44\x4d\x76\x59\x69\x67\x66\x53\x42\x67\x39\x33\x43\x57','\x6e\x64\x43\x5a\x6e\x5a\x79\x33\x6d\x68\x76\x77\x7a\x78\x44\x4c\x45\x47','\x69\x68\x72\x48\x43\x32\x54\x5a\x6c\x47','\x42\x33\x6a\x4a\x7a\x73\x62\x64\x42\x32\x35\x30\x7a\x71','\x41\x63\x62\x35\x42\x33\x76\x59\x69\x66\x6e\x4d\x69\x61','\x79\x32\x75\x54\x79\x32\x39\x55\x44\x67\x76\x34\x44\x61','\x44\x67\x76\x34\x44\x61','\x6c\x4d\x39\x55\x43\x4d\x76\x55\x7a\x67\x76\x59\x6c\x47','\x7a\x59\x62\x54\x7a\x78\x72\x48\x7a\x67\x66\x30\x79\x71','\x6c\x63\x62\x4b\x7a\x77\x6a\x31\x7a\x59\x62\x53\x42\x57','\x43\x59\x39\x4f\x79\x77\x35\x4b\x43\x32\x48\x48\x41\x57','\x7a\x77\x35\x30\x69\x67\x6e\x56\x7a\x67\x76\x49\x79\x71','\x6c\x4d\x35\x4c\x44\x67\x58\x50\x7a\x4e\x4b\x55\x79\x71','\x6e\x74\x76\x6b\x79\x30\x50\x52\x44\x78\x71','\x6c\x63\x62\x4b\x7a\x78\x62\x53\x42\x33\x4c\x50\x42\x47','\x45\x73\x39\x4d\x44\x77\x35\x4a\x44\x67\x4c\x56\x42\x47','\x38\x6a\x2b\x72\x47\x46\x63\x46\x4b\x6a\x33\x49\x4b\x34\x6c\x56\x55\x69\x38','\x69\x67\x4c\x55\x7a\x4d\x38\x53\x69\x68\x6a\x4c\x79\x57','\x69\x68\x4c\x56\x44\x73\x62\x30\x42\x59\x62\x50\x42\x47','\x42\x4d\x71\x47\x43\x4d\x76\x54\x42\x33\x72\x4c\x69\x61','\x44\x67\x76\x59\x79\x77\x6e\x30\x69\x68\x44\x50\x44\x61','\x41\x77\x6a\x54\x6c\x78\x6e\x4d\x6c\x77\x6e\x56\x42\x47','\x6e\x75\x39\x56\x72\x66\x66\x41\x79\x47','\x6d\x4a\x71\x34\x6d\x5a\x47\x31\x71\x4c\x44\x4b\x75\x75\x39\x67','\x6e\x5a\x61\x35\x6d\x4a\x61\x57\x41\x33\x44\x74\x44\x33\x48\x66','\x69\x68\x6e\x4a\x43\x4d\x4c\x57\x44\x68\x6d\x47\x79\x71','\x73\x75\x6a\x6e\x69\x66\x6e\x48\x42\x67\x76\x5a\x7a\x47','\x7a\x67\x76\x49\x44\x77\x43','\x43\x4d\x4c\x4c\x44\x4d\x75\x47\x42\x33\x6a\x4e\x69\x61','\x69\x67\x66\x55\x7a\x63\x62\x56\x44\x67\x48\x4c\x43\x47','\x71\x78\x62\x4c\x45\x63\x62\x30\x7a\x78\x6e\x30\x43\x57','\x6d\x4a\x61\x34\x6e\x64\x6d\x35\x6e\x68\x72\x4d\x75\x65\x39\x30\x76\x57','\x42\x73\x31\x5a\x79\x77\x58\x4c\x43\x32\x7a\x56\x43\x47','\x43\x33\x6e\x31\x7a\x71','\x7a\x77\x6e\x30\x69\x68\x6e\x4a\x41\x67\x76\x54\x79\x71','\x44\x4d\x76\x59\x43\x32\x4c\x56\x42\x47'];a0_0x20ae=function(){return _0x5a42be;};return a0_0x20ae();}import{createRequire}from'\x6e\x6f\x64\x65\x3a\x6d\x6f\x64\x75\x6c\x65';const require=createRequire(import.meta.url);const pkg=require('\x2e\x2e\x2f\x70\x61\x63\x6b\x61\x67\x65'+a0_0x487b0c(0xb6));export default{'\x6c\x6f\x67\x50\x72\x65\x66\x69\x78':a0_0x487b0c(0x93),'\x64\x65\x66\x61\x75\x6c\x74\x4c\x6f\x67\x4c\x65\x76\x65\x6c':a0_0x487b0c(0x9e),'\x62\x79\x70\x61\x73\x73\x48\x61\x6e\x64\x73\x68\x61\x6b\x65\x56\x61\x6c\x69\x64\x61\x74\x69\x6f\x6e':!![],'\x62\x79\x70\x61\x73\x73\x55\x73\x65\x72\x50\x65\x72\x6d\x69\x73\x73\x69\x6f\x6e\x73\x56\x61\x6c\x69\x64\x61\x74\x69\x6f\x6e':!![],'\x64\x69\x73\x61\x62\x6c\x65\x45\x6c\x69\x63\x69\x74\x61\x74\x69\x6f\x6e':process.env.DISABLE_ELICITATION===a0_0x487b0c(0xb8),'\x6d\x63\x70\x41\x70\x70\x73\x45\x6e\x61\x62\x6c\x65\x64':process.env.MCP_APPS_ENABLED===a0_0x487b0c(0xb8),'\x74\x65\x6d\x70\x44\x69\x72':{'\x62\x61\x73\x65\x53\x75\x62\x64\x69\x72':'\x74\x6d\x70','\x72\x65\x74\x65\x6e\x74\x69\x6f\x6e\x44\x61\x79\x73':0x7},'\x61\x70\x69\x43\x61\x63\x68\x65':{'\x65\x6e\x61\x62\x6c\x65\x64':!![],'\x63\x61\x63\x68\x65\x47\x65\x74':!![],'\x64\x65\x66\x61\x75\x6c\x74\x54\x74\x6c\x4d\x73':0x2710,'\x6d\x61\x78\x45\x6e\x74\x72\x69\x65\x73':0xc8,'\x69\x6e\x76\x61\x6c\x69\x64\x61\x74\x65\x4f\x6e\x57\x72\x69\x74\x65':!![]},'\x72\x65\x73\x6f\x75\x72\x63\x65\x73':{'\x6d\x61\x78\x52\x65\x73\x6f\x75\x72\x63\x65\x73':0x1e},'\x73\x65\x72\x76\x65\x72\x43\x6f\x6e\x73\x74\x61\x6e\x74\x73':{'\x70\x72\x6f\x74\x6f\x63\x6f\x6c\x56\x65\x72\x73\x69\x6f\x6e':'\x32\x30\x32\x35\x2d\x31\x31\x2d\x32\x35','\x73\x65\x72\x76\x65\x72\x49\x6e\x66\x6f':{'\x6e\x61\x6d\x65':a0_0x487b0c(0x9d)+a0_0x487b0c(0xbc)+'\x78\x74','\x61\x6c\x69\x61\x73':a0_0x487b0c(0x98)+a0_0x487b0c(0xbf),'\x76\x65\x72\x73\x69\x6f\x6e':pkg[a0_0x487b0c(0xa6)],'\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e':a0_0x487b0c(0x9d)+a0_0x487b0c(0xbc)+a0_0x487b0c(0xaa)+a0_0x487b0c(0xb9)+a0_0x487b0c(0x95)+a0_0x487b0c(0x97)+a0_0x487b0c(0xbd)+'\x6f\x72\x67\x20\x74\x6f\x20\x72\x65\x74'+a0_0x487b0c(0x9f)+a0_0x487b0c(0xad)+a0_0x487b0c(0xb4)+a0_0x487b0c(0xaf)+a0_0x487b0c(0xa5)+a0_0x487b0c(0x94)+a0_0x487b0c(0xc4)+a0_0x487b0c(0xa9)+a0_0x487b0c(0xc2)+'\x67\x73\x2c\x20\x74\x6f\x20\x65\x78\x65'+a0_0x487b0c(0xb0)+'\x6c\x6f\x63\x61\x6c\x20\x41\x70\x65\x78'+a0_0x487b0c(0x9c)+a0_0x487b0c(0x96)+a0_0x487b0c(0xa1)+a0_0x487b0c(0x91)+a0_0x487b0c(0xc1)+a0_0x487b0c(0xa0)+a0_0x487b0c(0xbb)},'\x63\x61\x70\x61\x62\x69\x6c\x69\x74\x69\x65\x73':{'\x6c\x6f\x67\x67\x69\x6e\x67':{},'\x72\x65\x73\x6f\x75\x72\x63\x65\x73':{'\x6c\x69\x73\x74\x43\x68\x61\x6e\x67\x65\x64':!![]},'\x74\x6f\x6f\x6c\x73':{},'\x70\x72\x6f\x6d\x70\x74\x73':{},'\x63\x6f\x6d\x70\x6c\x65\x74\x69\x6f\x6e\x73':{}}},'\x6c\x6f\x67\x69\x6e\x55\x72\x6c':a0_0x487b0c(0xb3)+'\x6d\x2d\x73\x61\x6c\x65\x73\x66\x6f\x72'+a0_0x487b0c(0xbe)+a0_0x487b0c(0xc5)+'\x70\x70\x2f\x2e\x6e\x65\x74\x6c\x69\x66'+a0_0x487b0c(0x92)+a0_0x487b0c(0xc3)+'\x65','\x69\x73\x73\x75\x65\x52\x65\x70\x6f\x72\x74\x69\x6e\x67':{'\x77\x65\x62\x68\x6f\x6f\x6b\x55\x72\x6c':a0_0x487b0c(0xb3)+a0_0x487b0c(0xa3)+'\x63\x65\x2d\x63\x6f\x6e\x74\x65\x78\x74'+a0_0x487b0c(0xc5)+a0_0x487b0c(0xb5)+a0_0x487b0c(0x92)+a0_0x487b0c(0xac)+a0_0x487b0c(0xa4)},'\x73\x74\x72\x69\x63\x74\x53\x73\x6c':process.env.STRICT_SSL!==a0_0x487b0c(0xb1),'\x74\x65\x6c\x65\x6d\x65\x74\x72\x79':{'\x65\x6e\x61\x62\x6c\x65\x64':process.env.TELEMETRY_ENABLED!==a0_0x487b0c(0xb1),'\x65\x6e\x64\x70\x6f\x69\x6e\x74':process.env.TELEMETRY_ENDPOINT||a0_0x487b0c(0xb3)+a0_0x487b0c(0xa3)+a0_0x487b0c(0xbe)+'\x2d\x74\x65\x6c\x65\x6d\x65\x74\x72\x79'+a0_0x487b0c(0xc0)+'\x63\x6f\x6d\x2f\x74\x65\x6c\x65\x6d\x65'+'\x74\x72\x79','\x74\x69\x6d\x65\x6f\x75\x74':Number[a0_0x487b0c(0xae)](process.env.TELEMETRY_TIMEOUT,0xa)||0x7d0,'\x73\x63\x68\x65\x6d\x61\x56\x65\x72\x73\x69\x6f\x6e':process.env.TELEMETRY_SCHEMA_VERSION||'\x32','\x65\x76\x65\x6e\x74\x73':{'\x74\x6f\x6f\x6c':{'\x65\x78\x65\x63\x75\x74\x69\x6f\x6e':!![],'\x76\x61\x6c\x69\x64\x61\x74\x69\x6f\x6e':!![]},'\x73\x65\x73\x73\x69\x6f\x6e':{'\x73\x65\x72\x76\x65\x72\x5f\x62\x6f\x6f\x74':![],'\x63\x6c\x69\x65\x6e\x74\x5f\x63\x6f\x6e\x6e\x65\x63\x74':![],'\x73\x65\x73\x73\x69\x6f\x6e\x5f\x73\x74\x61\x72\x74':!![],'\x73\x65\x73\x73\x69\x6f\x6e\x5f\x65\x6e\x64':!![],'\x63\x6c\x69\x65\x6e\x74\x5f\x64\x69\x73\x63\x6f\x6e\x6e\x65\x63\x74':![],'\x73\x65\x72\x76\x65\x72\x5f\x73\x68\x75\x74\x64\x6f\x77\x6e':![]},'\x67\x65\x6e\x65\x72\x61\x6c':{'\x65\x72\x72\x6f\x72\x5f\x6f\x63\x63\x75\x72\x72\x65\x64':!![]}}}};
|
package/src/lib/OrgWatcher.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0_0x314bac=a0_0x3fc0;(function(_0x22dd13,_0x31466f){const _0x399fbe=a0_0x3fc0;const _0x356500=_0x22dd13();while(!![]){try{const _0x208599=-parseInt(_0x399fbe(0x105))/0x1+parseInt(_0x399fbe(0xf3))/0x2*(-parseInt(_0x399fbe(0xf5))/0x3)+-parseInt(_0x399fbe(0xe6))/0x4+parseInt(_0x399fbe(0xf4))/0x5*(parseInt(_0x399fbe(0xed))/0x6)+parseInt(_0x399fbe(0xf7))/0x7*(-parseInt(_0x399fbe(0xfe))/0x8)+-parseInt(_0x399fbe(0x115))/0x9+parseInt(_0x399fbe(0x110))/0xa*(parseInt(_0x399fbe(0x109))/0xb);if(_0x208599===_0x31466f){break;}else{_0x356500['push'](_0x356500['shift']());}}catch(_0x2223bc){_0x356500['push'](_0x356500['shift']());}}}(a0_0x5400,0xd018b));import{EventEmitter}from'\x6e\x6f\x64\x65\x3a\x65\x76\x65\x6e\x74\x73';import a0_0x52bb09 from'\x6e\x6f\x64\x65\x3a\x66\x73';import a0_0x191798 from'\x6e\x6f\x64\x65\x3a\x70\x61\x74\x68';import a0_0x463a7a from'\x63\x68\x6f\x6b\x69\x64\x61\x72';import{createModuleLogger}from'\x2e\x2f\x6c\x6f\x67\x67\x65\x72\x2e\x6a\x73';const logger=createModuleLogger(import.meta.url);class TargetOrgWatcher extends EventEmitter{constructor(){const _0x3f6326=a0_0x3fc0;super();this[_0x3f6326(0x117)+_0x3f6326(0x102)]=null;this[_0x3f6326(0x101)+_0x3f6326(0x11a)]=null;this[_0x3f6326(0xdd)+'\x72']=null;this[_0x3f6326(0xff)]=![];this[_0x3f6326(0x112)]=0x1388;}async[a0_0x314bac(0xe4)](_0x4917bf,_0x5b6c91=null){const _0x51df91=a0_0x3fc0;const _0x14c694={'\x62\x4d\x63\x6e\x72':_0x51df91(0xee),'\x67\x64\x79\x4d\x6e':'\x65\x72\x72\x6f\x72','\x53\x65\x5a\x69\x4b':_0x51df91(0xf8)+_0x51df91(0x108)+_0x51df91(0x111)};try{await this['\x73\x74\x6f\x70']();this[_0x51df91(0x117)+_0x51df91(0x102)]=a0_0x191798[_0x51df91(0x100)](process[_0x51df91(0xe3)](),_0x14c694[_0x51df91(0x114)],_0x51df91(0xfb)+'\x6e');this[_0x51df91(0x101)+'\x41\x6c\x69\x61\x73']=_0x5b6c91;if(this[_0x51df91(0xff)]||!this[_0x51df91(0x101)+'\x41\x6c\x69\x61\x73']||!a0_0x52bb09[_0x51df91(0xe5)](this[_0x51df91(0x117)+_0x51df91(0x102)])){return;}this['\x6f\x6e'](_0x51df91(0xf6),_0xcfe86=>logger['\x64\x65\x62\x75\x67'](_0x51df91(0x11c)+'\x20\x53\x61\x6c\x65\x73\x66\x6f\x72\x63'+_0x51df91(0xef)+_0x51df91(0xe0)+_0x51df91(0x10f)+this['\x63\x6f\x6e\x66\x69\x67\x46\x69\x6c\x65'+'\x50\x61\x74\x68']+(_0x51df91(0xde)+'\x20')+_0xcfe86+'\x29'));this['\x6f\x6e'](_0x51df91(0xf9),_0x4917bf);this['\x6f\x6e'](_0x51df91(0xe2),_0x4d0dd2=>logger[_0x51df91(0xe2)](_0x4d0dd2,_0x51df91(0x11d)+_0x51df91(0x10c)+'\x43\x4c\x49\x20\x74\x61\x72\x67\x65\x74'+_0x51df91(0xe9)+'\x65\x72'));this[_0x51df91(0xdd)+'\x72']=a0_0x463a7a[_0x51df91(0xe1)](this['\x63\x6f\x6e\x66\x69\x67\x46\x69\x6c\x65'+'\x50\x61\x74\x68'],{'\x69\x67\x6e\x6f\x72\x65\x49\x6e\x69\x74\x69\x61\x6c':!![],'\x61\x77\x61\x69\x74\x57\x72\x69\x74\x65\x46\x69\x6e\x69\x73\x68':{'\x73\x74\x61\x62\x69\x6c\x69\x74\x79\x54\x68\x72\x65\x73\x68\x6f\x6c\x64':this[_0x51df91(0x112)]}});this[_0x51df91(0xdd)+'\x72']['\x6f\x6e']('\x63\x68\x61\x6e\x67\x65',()=>this[_0x51df91(0xfa)]());this['\x66\x69\x6c\x65\x57\x61\x74\x63\x68\x65'+'\x72']['\x6f\x6e'](_0x14c694[_0x51df91(0xfc)],_0x20b648=>this[_0x51df91(0xea)]('\x65\x72\x72\x6f\x72',_0x20b648));this[_0x51df91(0xff)]=!![];this[_0x51df91(0xea)](_0x51df91(0xf6),this['\x63\x75\x72\x72\x65\x6e\x74\x4f\x72\x67'+'\x41\x6c\x69\x61\x73']);}catch(_0x527eb1){logger[_0x51df91(0xe2)](_0x527eb1,_0x14c694[_0x51df91(0x113)]);}}async[a0_0x314bac(0x116)](){const _0x4bcccf=a0_0x3fc0;const _0x210aa4={'\x6c\x42\x4b\x7a\x7a':_0x4bcccf(0x11b)+'\x30'};const _0x4829f5=_0x210aa4[_0x4bcccf(0x107)][_0x4bcccf(0xfd)]('\x7c');let _0x1ad634=0x0;while(!![]){switch(_0x4829f5[_0x1ad634++]){case'\x30':this[_0x4bcccf(0xea)](_0x4bcccf(0xdb));continue;case'\x31':this[_0x4bcccf(0x106)+_0x4bcccf(0x10b)]();continue;case'\x32':this['\x69\x73\x57\x61\x74\x63\x68\x69\x6e\x67']=![];continue;case'\x33':logger[_0x4bcccf(0x104)](_0x4bcccf(0x11f)+_0x4bcccf(0x10c)+_0x4bcccf(0xec)+_0x4bcccf(0xe9)+'\x65\x72');continue;case'\x34':if(this[_0x4bcccf(0xdd)+'\x72']){await this['\x66\x69\x6c\x65\x57\x61\x74\x63\x68\x65'+'\x72'][_0x4bcccf(0xdf)]();this[_0x4bcccf(0xdd)+'\x72']=null;}continue;case'\x35':if(!this[_0x4bcccf(0xff)]){return;}continue;}break;}}['\x63\x68\x65\x63\x6b'](){const _0x1272c1=a0_0x3fc0;const _0x1c14ae={'\x76\x4c\x62\x6f\x47':_0x1272c1(0xf0)+_0x1272c1(0xe7)+_0x1272c1(0xeb)+'\x6f\x6e\x66\x69\x67\x20\x66\x69\x6c\x65'};try{const _0x4cd322=a0_0x52bb09[_0x1272c1(0x11e)+'\x6e\x63'](this['\x63\x6f\x6e\x66\x69\x67\x46\x69\x6c\x65'+_0x1272c1(0x102)]);const _0x573487=JSON[_0x1272c1(0x10a)](_0x4cd322);const _0x4d5563=_0x573487[_0x1272c1(0x118)]||null;if(!_0x4d5563){logger['\x64\x65\x62\x75\x67'](_0x1272c1(0xf2)+_0x1272c1(0x120)+_0x1272c1(0x10d)+_0x1272c1(0x103)+_0x1272c1(0xdc));return;}if(_0x4d5563!==this[_0x1272c1(0x101)+_0x1272c1(0x11a)]){const _0x24d4cd=this[_0x1272c1(0x101)+_0x1272c1(0x11a)];logger[_0x1272c1(0x119)](_0x1272c1(0xe8)+_0x1272c1(0xf1)+_0x1272c1(0x10c)+_0x1272c1(0xec)+_0x1272c1(0x10e)+_0x24d4cd+'\x20\x2d\x3e\x20'+_0x4d5563);this[_0x1272c1(0x101)+_0x1272c1(0x11a)]=_0x4d5563;this[_0x1272c1(0xea)](_0x1272c1(0xf9),{'\x6f\x6c\x64\x56\x61\x6c\x75\x65':_0x24d4cd,'\x6e\x65\x77\x56\x61\x6c\x75\x65':_0x4d5563});}}catch(_0x1d1059){logger[_0x1272c1(0xe2)](_0x1d1059,_0x1c14ae['\x76\x4c\x62\x6f\x47']);}}}function a0_0x3fc0(_0x2a003e,_0x253ef7){_0x2a003e=_0x2a003e-0xdb;const _0x540067=a0_0x5400();let _0x3fc02b=_0x540067[_0x2a003e];if(a0_0x3fc0['\x4d\x6b\x78\x5a\x50\x47']===undefined){var _0x471712=function(_0x141c84){const _0x5837f2='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x899674='';let _0x32677c='';for(let _0x393c56=0x0,_0x43f0fc,_0x119ac0,_0x96870c=0x0;_0x119ac0=_0x141c84['\x63\x68\x61\x72\x41\x74'](_0x96870c++);~_0x119ac0&&(_0x43f0fc=_0x393c56%0x4?_0x43f0fc*0x40+_0x119ac0:_0x119ac0,_0x393c56++%0x4)?_0x899674+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x43f0fc>>(-0x2*_0x393c56&0x6)):0x0){_0x119ac0=_0x5837f2['\x69\x6e\x64\x65\x78\x4f\x66'](_0x119ac0);}for(let _0x270ebd=0x0,_0x350de1=_0x899674['\x6c\x65\x6e\x67\x74\x68'];_0x270ebd<_0x350de1;_0x270ebd++){_0x32677c+='\x25'+('\x30\x30'+_0x899674['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x270ebd)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x32677c);};a0_0x3fc0['\x6b\x74\x64\x71\x4f\x41']=_0x471712;a0_0x3fc0['\x64\x79\x5a\x66\x44\x65']={};a0_0x3fc0['\x4d\x6b\x78\x5a\x50\x47']=!![];}const _0x5927ef=_0x540067[0x0];const _0x2ba5ba=_0x2a003e+_0x5927ef;const _0x4046dc=a0_0x3fc0['\x64\x79\x5a\x66\x44\x65'][_0x2ba5ba];if(!_0x4046dc){_0x3fc02b=a0_0x3fc0['\x6b\x74\x64\x71\x4f\x41'](_0x3fc02b);a0_0x3fc0['\x64\x79\x5a\x66\x44\x65'][_0x2ba5ba]=_0x3fc02b;}else{_0x3fc02b=_0x4046dc;}return _0x3fc02b;}function a0_0x5400(){const _0x3daff4=['\x7a\x73\x62\x33\x79\x78\x72\x4a\x41\x67\x76\x59','\x7a\x67\x76\x49\x42\x33\x76\x55\x79\x32\x76\x6e\x43\x57','\x75\x32\x76\x41\x41\x75\x53','\x79\x4b\x31\x4a\x42\x4e\x69','\x6f\x64\x43\x59\x6d\x5a\x69\x59\x6d\x30\x66\x78\x43\x30\x66\x59\x76\x61','\x43\x33\x72\x56\x43\x61','\x79\x32\x39\x55\x7a\x4d\x4c\x4e\x72\x4d\x4c\x53\x7a\x71','\x44\x67\x66\x59\x7a\x32\x76\x30\x6c\x77\x39\x59\x7a\x57','\x41\x77\x35\x4d\x42\x57','\x71\x77\x58\x50\x79\x78\x6d','\x6e\x78\x57\x5a\x46\x64\x72\x38\x6d\x78\x57\x59\x46\x61','\x74\x77\x39\x55\x41\x78\x72\x56\x43\x4d\x4c\x55\x7a\x57','\x72\x78\x6a\x59\x42\x33\x69\x47\x41\x77\x34\x47\x75\x57','\x43\x4d\x76\x48\x7a\x65\x7a\x50\x42\x67\x76\x74\x45\x71','\x75\x33\x72\x56\x43\x68\x62\x50\x42\x4d\x43\x47\x75\x57','\x42\x33\x6a\x4e\x69\x67\x7a\x56\x44\x77\x35\x4b\x69\x61','\x43\x33\x72\x56\x43\x68\x62\x4c\x7a\x61','\x42\x4d\x7a\x50\x7a\x59\x62\x4d\x41\x77\x58\x4c','\x7a\x4d\x4c\x53\x7a\x76\x44\x48\x44\x67\x6e\x4f\x7a\x71','\x69\x63\x48\x4a\x44\x78\x6a\x59\x7a\x77\x35\x30\x6f\x47','\x79\x32\x58\x56\x43\x32\x75','\x7a\x78\x71\x47\x42\x33\x6a\x4e\x69\x67\x6e\x4f\x79\x71','\x44\x32\x66\x30\x79\x32\x47','\x7a\x78\x6a\x59\x42\x33\x69','\x79\x33\x44\x4b','\x43\x33\x72\x48\x43\x4e\x71','\x7a\x78\x48\x50\x43\x33\x72\x5a\x75\x33\x4c\x55\x79\x57','\x6d\x5a\x65\x33\x6d\x5a\x4b\x57\x6d\x66\x6e\x75\x75\x78\x50\x67\x74\x71','\x41\x77\x35\x4e\x69\x66\x6e\x48\x42\x67\x76\x5a\x7a\x47','\x71\x32\x48\x48\x42\x4d\x44\x4c\x69\x67\x72\x4c\x44\x61','\x69\x67\x39\x59\x7a\x59\x62\x33\x79\x78\x72\x4a\x41\x61','\x7a\x77\x31\x50\x44\x61','\x42\x33\x6a\x4a\x7a\x73\x62\x64\x74\x65\x4b\x47\x79\x57','\x71\x30\x58\x6a\x69\x68\x72\x48\x43\x4d\x44\x4c\x44\x61','\x6d\x5a\x47\x35\x6d\x74\x62\x4e\x74\x30\x6a\x36\x75\x4d\x71','\x6c\x4e\x6e\x4d','\x7a\x73\x62\x64\x74\x65\x4b\x47\x44\x67\x66\x59\x7a\x57','\x72\x78\x6a\x59\x42\x33\x69\x47\x43\x4d\x76\x48\x7a\x61','\x7a\x77\x6e\x30\x7a\x77\x71\x47\x41\x77\x34\x47\x75\x57','\x74\x4d\x38\x47\x44\x67\x66\x59\x7a\x32\x76\x30\x69\x61','\x6d\x74\x61\x32\x6d\x4a\x61\x59\x45\x75\x48\x66\x7a\x4e\x50\x35','\x6d\x5a\x79\x31\x79\x33\x6a\x59\x7a\x66\x4c\x41','\x6f\x74\x7a\x77\x73\x68\x6a\x58\x41\x32\x4f','\x43\x33\x72\x48\x43\x4e\x72\x4c\x7a\x61','\x6f\x64\x79\x57\x6e\x74\x66\x65\x73\x77\x6e\x78\x73\x4d\x38','\x72\x78\x6a\x59\x42\x33\x69\x47\x43\x32\x76\x30\x44\x61','\x42\x33\x6a\x4e\x71\x32\x48\x48\x42\x4d\x44\x4c\x7a\x61','\x79\x32\x48\x4c\x79\x32\x53','\x79\x32\x39\x55\x7a\x4d\x4c\x4e\x6c\x4d\x50\x5a\x42\x57','\x7a\x32\x72\x35\x74\x77\x34','\x43\x33\x62\x53\x41\x78\x71','\x6d\x74\x61\x32\x6e\x66\x44\x50\x72\x30\x50\x53\x7a\x61','\x41\x78\x6e\x78\x79\x78\x72\x4a\x41\x67\x4c\x55\x7a\x57','\x41\x4d\x39\x50\x42\x47','\x79\x33\x76\x59\x43\x4d\x76\x55\x44\x65\x39\x59\x7a\x57','\x75\x67\x66\x30\x41\x61','\x43\x4d\x6e\x4c\x69\x65\x6e\x6d\x73\x73\x62\x4a\x42\x57','\x7a\x67\x76\x49\x44\x77\x43','\x6e\x74\x47\x32\x6e\x5a\x65\x59\x74\x66\x62\x4a\x71\x31\x44\x33','\x43\x4d\x76\x54\x42\x33\x7a\x4c\x71\x77\x58\x53\x74\x61','\x42\x65\x6a\x6c\x45\x4e\x4f','\x41\x77\x35\x4e\x69\x68\x76\x57\x69\x67\x7a\x50\x42\x61','\x6d\x4a\x75\x5a\x73\x31\x50\x63\x72\x33\x72\x56','\x43\x67\x66\x59\x43\x32\x75','\x41\x78\x6e\x30\x7a\x77\x35\x4c\x43\x4e\x6d','\x79\x77\x58\x4c\x43\x32\x7a\x56\x43\x4d\x6e\x4c\x69\x61','\x41\x77\x34\x47\x75\x32\x66\x53\x7a\x78\x6e\x4d\x42\x57','\x69\x67\x39\x59\x7a\x5a\x4f\x47','\x42\x4d\x44\x4c\x43\x59\x62\x48\x44\x63\x61','\x6d\x4a\x79\x5a\x6e\x74\x4b\x58\x6d\x65\x35\x4d\x42\x67\x31\x71\x72\x71'];a0_0x5400=function(){return _0x3daff4;};return a0_0x5400();}const targetOrgWatcher=new TargetOrgWatcher();export default targetOrgWatcher;
|
|
1
|
+
const a0_0x575788=a0_0x1748;(function(_0x242ee2,_0x265253){const _0x23a8f0=a0_0x1748;const _0x56c139=_0x242ee2();while(!![]){try{const _0x2f9dc9=-parseInt(_0x23a8f0(0x1e4))/0x1+parseInt(_0x23a8f0(0x201))/0x2*(-parseInt(_0x23a8f0(0x1dc))/0x3)+parseInt(_0x23a8f0(0x204))/0x4+-parseInt(_0x23a8f0(0x209))/0x5*(-parseInt(_0x23a8f0(0x20a))/0x6)+parseInt(_0x23a8f0(0x1f1))/0x7+-parseInt(_0x23a8f0(0x1fa))/0x8+parseInt(_0x23a8f0(0x1e7))/0x9;if(_0x2f9dc9===_0x265253){break;}else{_0x56c139['push'](_0x56c139['shift']());}}catch(_0x1a97e2){_0x56c139['push'](_0x56c139['shift']());}}}(a0_0x3ede,0x7555b));function a0_0x3ede(){const _0x5c1b53=['\x6d\x74\x69\x34\x6d\x5a\x65\x33\x73\x76\x44\x71\x73\x68\x76\x30','\x41\x77\x35\x4e\x69\x68\x76\x57\x69\x67\x7a\x50\x42\x61','\x79\x32\x58\x56\x43\x32\x75','\x72\x33\x62\x62\x43\x4d\x4f','\x42\x65\x54\x66\x72\x4b\x57','\x7a\x67\x76\x49\x42\x33\x76\x55\x79\x32\x76\x6e\x43\x57','\x74\x68\x50\x51\x75\x33\x61','\x42\x33\x6a\x4e\x69\x67\x7a\x56\x44\x77\x35\x4b\x69\x61','\x43\x4d\x6e\x4c\x69\x65\x6e\x6d\x73\x73\x62\x4a\x42\x57','\x6d\x5a\x71\x35\x6d\x5a\x79\x30\x6f\x68\x6e\x74\x41\x4e\x44\x5a\x76\x71','\x42\x32\x35\x4d\x41\x77\x43\x47\x7a\x4d\x4c\x53\x7a\x71','\x79\x33\x44\x4b','\x69\x63\x48\x4a\x44\x78\x6a\x59\x7a\x77\x35\x30\x6f\x47','\x41\x78\x6e\x78\x79\x78\x72\x4a\x41\x67\x4c\x55\x7a\x57','\x79\x33\x76\x59\x43\x4d\x76\x55\x44\x65\x39\x59\x7a\x57','\x43\x33\x72\x56\x43\x61','\x6e\x64\x69\x32\x6d\x4c\x7a\x7a\x76\x4b\x7a\x67\x72\x61','\x79\x32\x48\x4c\x79\x32\x53','\x41\x4d\x39\x50\x42\x47','\x6e\x5a\x69\x31\x6e\x64\x79\x57\x76\x4b\x6a\x78\x72\x4e\x6a\x35','\x41\x77\x35\x4e\x69\x66\x6e\x48\x42\x67\x76\x5a\x7a\x47','\x42\x4d\x44\x4c\x43\x59\x62\x48\x44\x63\x61','\x43\x67\x66\x59\x43\x32\x75','\x72\x30\x44\x57\x71\x4c\x61','\x6e\x4a\x79\x34\x6f\x64\x61\x31\x79\x78\x44\x4e\x45\x4b\x4c\x33','\x6e\x64\x6a\x5a\x76\x30\x44\x68\x76\x30\x4b','\x41\x77\x35\x4d\x42\x57','\x44\x32\x66\x30\x79\x32\x47','\x72\x78\x6a\x59\x42\x33\x69\x47\x43\x32\x76\x30\x44\x61','\x41\x4d\x58\x6b\x76\x76\x61','\x42\x33\x6a\x4e\x71\x32\x48\x48\x42\x4d\x44\x4c\x7a\x61','\x43\x33\x72\x48\x43\x4e\x72\x4c\x7a\x61','\x7a\x77\x6e\x30\x7a\x77\x71\x47\x41\x77\x34\x47\x75\x57','\x7a\x78\x6a\x59\x42\x33\x69','\x71\x77\x58\x50\x79\x78\x6d','\x43\x4d\x76\x54\x42\x33\x7a\x4c\x71\x77\x58\x53\x74\x61','\x6e\x64\x43\x58\x73\x30\x6a\x52\x75\x30\x50\x67','\x6c\x4e\x6e\x4d','\x79\x77\x58\x4c\x43\x32\x7a\x56\x43\x4d\x6e\x4c\x69\x61','\x43\x33\x72\x48\x43\x4e\x71','\x69\x67\x39\x59\x7a\x59\x62\x33\x79\x78\x72\x4a\x41\x61','\x75\x67\x66\x30\x41\x61','\x7a\x73\x62\x64\x74\x65\x4b\x47\x44\x67\x66\x59\x7a\x57','\x7a\x67\x76\x49\x44\x77\x43','\x6f\x64\x71\x59\x6f\x64\x47\x35\x41\x77\x50\x4d\x44\x4d\x72\x57','\x79\x32\x48\x48\x42\x4d\x44\x4c','\x79\x32\x39\x55\x7a\x4d\x4c\x4e\x6c\x4d\x50\x5a\x42\x57','\x6f\x64\x79\x59\x6f\x64\x79\x33\x6f\x65\x72\x53\x42\x4e\x62\x4a\x43\x47','\x74\x4d\x38\x47\x44\x67\x66\x59\x7a\x32\x76\x30\x69\x61','\x7a\x77\x31\x50\x44\x61','\x74\x77\x39\x55\x41\x78\x72\x56\x43\x4d\x4c\x55\x7a\x57','\x41\x78\x6e\x30\x7a\x77\x35\x4c\x43\x4e\x6d','\x72\x78\x6a\x59\x42\x33\x69\x47\x41\x77\x34\x47\x75\x57','\x79\x32\x39\x55\x7a\x4d\x4c\x4e\x72\x4d\x4c\x53\x7a\x71','\x69\x63\x30\x2b\x69\x61','\x43\x4d\x48\x5a\x45\x67\x69','\x7a\x4d\x4c\x53\x7a\x76\x44\x48\x44\x67\x6e\x4f\x7a\x71'];a0_0x3ede=function(){return _0x5c1b53;};return a0_0x3ede();}import{EventEmitter}from'\x6e\x6f\x64\x65\x3a\x65\x76\x65\x6e\x74\x73';function a0_0x1748(_0x1d2de2,_0x3b24c5){_0x1d2de2=_0x1d2de2-0x1db;const _0x3ede34=a0_0x3ede();let _0x1748ed=_0x3ede34[_0x1d2de2];if(a0_0x1748['\x70\x6d\x61\x64\x78\x57']===undefined){var _0x3b6914=function(_0x297908){const _0x49bd72='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x59befd='';let _0x427ba5='';for(let _0x50c36d=0x0,_0x3c1cc2,_0x29c17c,_0x3b69e0=0x0;_0x29c17c=_0x297908['\x63\x68\x61\x72\x41\x74'](_0x3b69e0++);~_0x29c17c&&(_0x3c1cc2=_0x50c36d%0x4?_0x3c1cc2*0x40+_0x29c17c:_0x29c17c,_0x50c36d++%0x4)?_0x59befd+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x3c1cc2>>(-0x2*_0x50c36d&0x6)):0x0){_0x29c17c=_0x49bd72['\x69\x6e\x64\x65\x78\x4f\x66'](_0x29c17c);}for(let _0x14789b=0x0,_0x49db03=_0x59befd['\x6c\x65\x6e\x67\x74\x68'];_0x14789b<_0x49db03;_0x14789b++){_0x427ba5+='\x25'+('\x30\x30'+_0x59befd['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x14789b)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x427ba5);};a0_0x1748['\x66\x65\x71\x65\x6c\x4e']=_0x3b6914;a0_0x1748['\x72\x4e\x43\x47\x4b\x49']={};a0_0x1748['\x70\x6d\x61\x64\x78\x57']=!![];}const _0x2fd13b=_0x3ede34[0x0];const _0x4a3d87=_0x1d2de2+_0x2fd13b;const _0x2b8255=a0_0x1748['\x72\x4e\x43\x47\x4b\x49'][_0x4a3d87];if(!_0x2b8255){_0x1748ed=a0_0x1748['\x66\x65\x71\x65\x6c\x4e'](_0x1748ed);a0_0x1748['\x72\x4e\x43\x47\x4b\x49'][_0x4a3d87]=_0x1748ed;}else{_0x1748ed=_0x2b8255;}return _0x1748ed;}import a0_0x35a796 from'\x6e\x6f\x64\x65\x3a\x66\x73';import a0_0x52d635 from'\x6e\x6f\x64\x65\x3a\x70\x61\x74\x68';import a0_0x113265 from'\x63\x68\x6f\x6b\x69\x64\x61\x72';import{createModuleLogger}from'\x2e\x2f\x6c\x6f\x67\x67\x65\x72\x2e\x6a\x73';const logger=createModuleLogger(import.meta.url);class TargetOrgWatcher extends EventEmitter{constructor(){const _0x3f249d=a0_0x1748;super();this[_0x3f249d(0x1ed)+'\x50\x61\x74\x68']=null;this['\x63\x75\x72\x72\x65\x6e\x74\x4f\x72\x67'+_0x3f249d(0x213)]=null;this[_0x3f249d(0x1f0)+'\x72']=null;this[_0x3f249d(0x1fe)]=![];this[_0x3f249d(0x1f6)]=0x1388;}async[a0_0x575788(0x1df)](_0x389006,_0x4df1a1=null){const _0x2c306b=a0_0x1748;const _0xe4b182={'\x6a\x6c\x4a\x55\x50':_0x2c306b(0x1dd),'\x47\x70\x41\x72\x6a':_0x2c306b(0x20f),'\x47\x47\x70\x42\x50':_0x2c306b(0x1e5)};try{await this[_0x2c306b(0x200)]();this[_0x2c306b(0x1ed)+'\x50\x61\x74\x68']=a0_0x52d635[_0x2c306b(0x203)](process[_0x2c306b(0x1fc)](),_0xe4b182[_0x2c306b(0x20e)],_0x2c306b(0x1e6)+'\x6e');this[_0x2c306b(0x1ff)+_0x2c306b(0x213)]=_0x4df1a1;if(this[_0x2c306b(0x1fe)]||!this[_0x2c306b(0x1ff)+_0x2c306b(0x213)]||!a0_0x35a796['\x65\x78\x69\x73\x74\x73\x53\x79\x6e\x63'](this[_0x2c306b(0x1ed)+_0x2c306b(0x1e1)])){if('\x6c\x6c\x71\x6d\x76'!==_0x2c306b(0x1f5)){return;}else{const _0x5b1d35=this[_0x2c306b(0x1ff)+'\x41\x6c\x69\x61\x73'];_0xf9b474[_0x2c306b(0x20b)]('\x43\x68\x61\x6e\x67\x65\x20\x64\x65\x74'+_0x2c306b(0x211)+'\x61\x6c\x65\x73\x66\x6f\x72\x63\x65\x20'+'\x43\x4c\x49\x20\x74\x61\x72\x67\x65\x74'+'\x20\x6f\x72\x67\x3a\x20'+_0x5b1d35+'\x20\x2d\x3e\x20'+_0xb4fc46);this[_0x2c306b(0x1ff)+'\x41\x6c\x69\x61\x73']=_0x56f02c;this['\x65\x6d\x69\x74'](_0x2c306b(0x20f),{'\x6f\x6c\x64\x56\x61\x6c\x75\x65':_0x5b1d35,'\x6e\x65\x77\x56\x61\x6c\x75\x65':_0x33435f});}}this['\x6f\x6e'](_0x2c306b(0x210),_0x334529=>logger['\x64\x65\x62\x75\x67'](_0x2c306b(0x1ea)+'\x20\x53\x61\x6c\x65\x73\x66\x6f\x72\x63'+_0x2c306b(0x1e2)+'\x65\x74\x20\x6f\x72\x67\x20\x63\x68\x61'+_0x2c306b(0x206)+this['\x63\x6f\x6e\x66\x69\x67\x46\x69\x6c\x65'+_0x2c306b(0x1e1)]+(_0x2c306b(0x1fd)+'\x20')+_0x334529+'\x29'));this['\x6f\x6e'](_0xe4b182[_0x2c306b(0x1f4)],_0x389006);this['\x6f\x6e'](_0x2c306b(0x212),_0x217a3d=>logger[_0x2c306b(0x212)](_0x217a3d,_0x2c306b(0x1ec)+'\x61\x6c\x65\x73\x66\x6f\x72\x63\x65\x20'+'\x43\x4c\x49\x20\x74\x61\x72\x67\x65\x74'+_0x2c306b(0x1e0)+'\x65\x72'));this[_0x2c306b(0x1f0)+'\x72']=a0_0x113265[_0x2c306b(0x20c)](this['\x63\x6f\x6e\x66\x69\x67\x46\x69\x6c\x65'+_0x2c306b(0x1e1)],{'\x69\x67\x6e\x6f\x72\x65\x49\x6e\x69\x74\x69\x61\x6c':!![],'\x61\x77\x61\x69\x74\x57\x72\x69\x74\x65\x46\x69\x6e\x69\x73\x68':{'\x73\x74\x61\x62\x69\x6c\x69\x74\x79\x54\x68\x72\x65\x73\x68\x6f\x6c\x64':this[_0x2c306b(0x1f6)]}});this['\x66\x69\x6c\x65\x57\x61\x74\x63\x68\x65'+'\x72']['\x6f\x6e'](_0xe4b182[_0x2c306b(0x208)],()=>this['\x63\x68\x65\x63\x6b']());this[_0x2c306b(0x1f0)+'\x72']['\x6f\x6e'](_0x2c306b(0x212),_0x52d822=>this[_0x2c306b(0x1e9)](_0x2c306b(0x212),_0x52d822));this[_0x2c306b(0x1fe)]=!![];this[_0x2c306b(0x1e9)](_0x2c306b(0x210),this['\x63\x75\x72\x72\x65\x6e\x74\x4f\x72\x67'+_0x2c306b(0x213)]);}catch(_0x5c1ae4){logger['\x65\x72\x72\x6f\x72'](_0x5c1ae4,_0x2c306b(0x20d)+_0x2c306b(0x1f2)+'\x65\x20\x77\x61\x74\x63\x68\x65\x72');}}async[a0_0x575788(0x200)](){const _0x28ccb3=a0_0x1748;const _0x3b3566={'\x72\x68\x73\x78\x62':'\x73\x74\x6f\x70\x70\x65\x64'};if(!this[_0x28ccb3(0x1fe)]){return;}logger['\x64\x65\x62\x75\x67']('\x53\x74\x6f\x70\x70\x69\x6e\x67\x20\x53'+'\x61\x6c\x65\x73\x66\x6f\x72\x63\x65\x20'+'\x43\x4c\x49\x20\x74\x61\x72\x67\x65\x74'+'\x20\x6f\x72\x67\x20\x77\x61\x74\x63\x68'+'\x65\x72');if(this[_0x28ccb3(0x1f0)+'\x72']){await this[_0x28ccb3(0x1f0)+'\x72'][_0x28ccb3(0x1f3)]();this['\x66\x69\x6c\x65\x57\x61\x74\x63\x68\x65'+'\x72']=null;}this[_0x28ccb3(0x1db)+_0x28ccb3(0x1eb)]();this['\x69\x73\x57\x61\x74\x63\x68\x69\x6e\x67']=![];this['\x65\x6d\x69\x74'](_0x3b3566[_0x28ccb3(0x1ef)]);}[a0_0x575788(0x202)](){const _0x35af9d=a0_0x1748;const _0x402e93={'\x4c\x7a\x6a\x53\x70':_0x35af9d(0x1e8)+_0x35af9d(0x1f8)+'\x69\x6e\x20\x53\x61\x6c\x65\x73\x66\x6f'+_0x35af9d(0x1f9)+'\x6e\x66\x69\x67\x20\x66\x69\x6c\x65'};try{const _0x2cbe84=a0_0x35a796['\x72\x65\x61\x64\x46\x69\x6c\x65\x53\x79'+'\x6e\x63'](this[_0x35af9d(0x1ed)+_0x35af9d(0x1e1)]);const _0x3779e2=JSON[_0x35af9d(0x207)](_0x2cbe84);const _0x105611=_0x3779e2['\x74\x61\x72\x67\x65\x74\x2d\x6f\x72\x67']||null;if(!_0x105611){logger[_0x35af9d(0x1e3)](_0x402e93[_0x35af9d(0x1f7)]);return;}if(_0x105611!==this['\x63\x75\x72\x72\x65\x6e\x74\x4f\x72\x67'+_0x35af9d(0x213)]){const _0x5d7c15=this[_0x35af9d(0x1ff)+_0x35af9d(0x213)];logger[_0x35af9d(0x20b)]('\x43\x68\x61\x6e\x67\x65\x20\x64\x65\x74'+_0x35af9d(0x211)+_0x35af9d(0x1de)+'\x43\x4c\x49\x20\x74\x61\x72\x67\x65\x74'+'\x20\x6f\x72\x67\x3a\x20'+_0x5d7c15+_0x35af9d(0x1ee)+_0x105611);this[_0x35af9d(0x1ff)+_0x35af9d(0x213)]=_0x105611;this[_0x35af9d(0x1e9)](_0x35af9d(0x20f),{'\x6f\x6c\x64\x56\x61\x6c\x75\x65':_0x5d7c15,'\x6e\x65\x77\x56\x61\x6c\x75\x65':_0x105611});}}catch(_0x55b48b){logger[_0x35af9d(0x212)](_0x55b48b,'\x45\x72\x72\x6f\x72\x20\x72\x65\x61\x64'+_0x35af9d(0x205)+'\x6f\x72\x63\x65\x20\x43\x4c\x49\x20\x63'+_0x35af9d(0x1fb));}}}const targetOrgWatcher=new TargetOrgWatcher();export default targetOrgWatcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{exec}from'node:child_process';import{performance}from'node:perf_hooks';import{promisify}from'node:util';import a0_0x1a5b55 from'node:fs';import a0_0x5c6f01 from'node:path';import{chromium}from'playwright';import a0_0xe4eafb from'../config.js';import{state}from'../state.js';import{createModuleLogger}from'./logger.js';const logger=createModuleLogger(import.meta.url);const execAsync=promisify(exec);const ORG_SETUP_AUDIT_FRAME_URL=/orgsetupaudit\.jsp|\/setup\/org\/orgsetupaudit/i;const DOWNLOAD_LINK_SELECTORS=['a:has-text(\x22Download\x20setup\x20audit\x20trail\x20for\x20last\x20six\x20months\x22)','a:has-text(\x22Download\x20setup\x20audit\x20trail\x22)','a[href*=\x22SetupAuditTrail\x22]'];const FALLBACK_LINK_SELECTORS=['a[href*=\x22SetupAuditTrail\x22]','a[href*=\x22/servlet/servlet.SetupAuditTrail\x22]','div.pShowMore\x20a[href*=\x22SetupAuditTrail\x22]','div.pShowMore\x20a'];const FRAME_WAIT_FALLBACK_POLL_MS=0x1f4;const VISIBLE_DOWNLOAD_LINK_TIMEOUT_MS=0x1388;const MAX_VISIBLE_ANCHOR_CANDIDATES=0xc;let _playwrightBrowsersAvailable=null;function checkPlaywrightBrowsers(){if(_playwrightBrowsersAvailable!==null){return _playwrightBrowsersAvailable;}try{const _0x310ce3=chromium['executablePath']();_playwrightBrowsersAvailable=a0_0x1a5b55['existsSync'](_0x310ce3);}catch{_playwrightBrowsersAvailable=![];}return _playwrightBrowsersAvailable;}async function installPlaywrightBrowsers(){try{logger['debug']('Installing\x20Playwright\x20browsers...');const {stderr:_0x5941c0}=await execAsync('npx\x20playwright\x20install\x20chromium');if(_0x5941c0&&!_0x5941c0['includes']('chromium')){logger['warn']('Playwright\x20installation\x20stderr:',_0x5941c0);}logger['debug']('Playwright\x20browsers\x20installed\x20successfully');return!![];}catch(_0x289a53){logger['error']('Failed\x20to\x20install\x20Playwright\x20browsers:',_0x289a53['message']);throw new Error('Failed\x20to\x20install\x20Playwright\x20browsers.\x20Please\x20run\x20manually:\x20npx\x20playwright\x20install\x20chromium');}}async function listAllLinks(_0x501b68){try{const _0x1a8369=await _0x501b68['locator']('a')['all']();if(_0x1a8369['length']===0x0){logger['debug']('No\x20links\x20found\x20on\x20page');return;}logger['debug']('Found\x20'+_0x1a8369['length']+'\x20links\x20on\x20page:');for(let _0x3c44be=0x0;_0x3c44be<Math['min'](_0x1a8369['length'],0x14);_0x3c44be++){const _0x3cda01=await _0x1a8369[_0x3c44be]['getAttribute']('href');const text=await _0x1a8369[_0x3c44be]['textContent']();logger['debug']('\x20\x20['+_0x3c44be+']\x20href=\x22'+_0x3cda01+'\x22\x20text=\x22'+text?.['trim']()['slice'](0x0,0x32)+'\x22');}if(_0x1a8369['length']>0x14){logger['debug']('\x20\x20...\x20and\x20'+(_0x1a8369['length']-0x14)+'\x20more\x20links');}}catch(_0x2e4a3f){logger['debug']('Error\x20listing\x20links:\x20'+_0x2e4a3f['message']);}}async function waitForOrgSetupAuditFrame(_0x5e731d,_0x5304c1=0xea60){const _0x21fc55=Date['now']();function _0x29e524(){let _0x365be8;try{_0x365be8=_0x5e731d['frames']();}catch(_0x165f5a){logger['debug']('[H2]\x20tryMatch\x20page.frames:\x20'+_0x165f5a['message']);return null;}for(const _0x1bb86 of _0x365be8){try{const _0x2ee528=_0x1bb86['url']();if(ORG_SETUP_AUDIT_FRAME_URL['test'](_0x2ee528)){return _0x1bb86;}}catch{}}return null;}const _0x4b8e8a=_0x29e524();if(_0x4b8e8a){let _0x324dff='(url\x20unavailable)';try{_0x324dff=_0x4b8e8a['url']();}catch{}logger['debug']('[H2]\x20orgsetupaudit\x20frame\x20after\x20'+(Date['now']()-_0x21fc55)+'ms:\x20'+_0x324dff['slice'](0x0,0x8c));return _0x4b8e8a;}let _0x3a5b0b=![];let _0x1a9932;return new Promise(_0x3a1000=>{const _0x8396b5=()=>{if(_0x1a9932){clearInterval(_0x1a9932);}_0x5e731d['off']('framenavigated',_0x127205);_0x5e731d['off']('close',_0x3f71c8);};function _0x3f71c8(){logger['debug']('[H2]\x20page\x20closed\x20while\x20waiting\x20for\x20orgsetupaudit\x20frame');_0x64b59b(null);}function _0x64b59b(_0x12c911){if(_0x3a5b0b){return;}_0x3a5b0b=!![];_0x8396b5();if(_0x12c911){let _0x41470b='(url\x20unavailable)';try{_0x41470b=_0x12c911['url']();}catch{}logger['debug']('[H2]\x20orgsetupaudit\x20frame\x20after\x20'+(Date['now']()-_0x21fc55)+'ms:\x20'+_0x41470b['slice'](0x0,0x8c));}else{logger['debug']('[H2]\x20orgsetupaudit\x20frame\x20not\x20found\x20within\x20'+_0x5304c1+'ms');}_0x3a1000(_0x12c911);}function _0x127205(){const _0x370deb=_0x29e524();if(_0x370deb){_0x64b59b(_0x370deb);}}_0x5e731d['on']('framenavigated',_0x127205);_0x5e731d['on']('close',_0x3f71c8);_0x1a9932=setInterval(()=>{if(_0x3a5b0b){return;}const _0x30d8e3=_0x29e524();if(_0x30d8e3){_0x64b59b(_0x30d8e3);return;}if(Date['now']()-_0x21fc55>=_0x5304c1){_0x64b59b(null);}},FRAME_WAIT_FALLBACK_POLL_MS);});}async function waitForDownloadLinkAttached(_0x507e3e,_0x4721ab=0x61a8){if(!_0x507e3e){return;}const _0xf43be6=Date['now']();const _0x5c9c6c=['a[href*=\x22SetupAuditTrail\x22]','a:has-text(\x22Download\x20setup\x20audit\x20trail\x20for\x20last\x20six\x20months\x22)','a:has-text(\x22Download\x20setup\x20audit\x20trail\x22)'];for(const _0x2fcca8 of _0x5c9c6c){const _0x2801fa=Date['now']()-_0xf43be6;const _0x2e5ebd=_0x4721ab-_0x2801fa;if(_0x2e5ebd<0x190){break;}try{await _0x507e3e['locator'](_0x2fcca8)['first']()['waitFor']({'state':'attached','timeout':_0x2e5ebd});logger['debug']('[H2]\x20Download\x20anchor\x20ready\x20('+_0x2fcca8+')\x20after\x20'+(Date['now']()-_0xf43be6)+'ms');return;}catch{}}logger['debug']('[H2]\x20Download\x20anchor\x20not\x20attached\x20within\x20wait\x20(continuing\x20to\x20locator\x20search)');}async function firstVisibleMatchingAnchor(_0x38cd91,_0x53219b){const _0x3db5ea=_0x38cd91['locator'](_0x53219b);let _0x28f819;try{_0x28f819=await _0x3db5ea['count']();}catch(_0x4b58cb){logger['debug']('firstVisibleMatchingAnchor\x20count:\x20'+_0x4b58cb['message']);return null;}const _0x45a168=Math['min'](_0x28f819,MAX_VISIBLE_ANCHOR_CANDIDATES);if(_0x28f819>MAX_VISIBLE_ANCHOR_CANDIDATES){logger['debug']('firstVisibleMatchingAnchor:\x20checking\x20first\x20'+_0x45a168+'\x20of\x20'+_0x28f819+'\x20matches\x20for\x20'+_0x53219b['slice'](0x0,0x28));}for(let _0x314109=0x0;_0x314109<_0x45a168;_0x314109++){const _0x3ef619=_0x3db5ea['nth'](_0x314109);try{await _0x3ef619['waitFor']({'state':'visible','timeout':VISIBLE_DOWNLOAD_LINK_TIMEOUT_MS});return _0x3ef619;}catch{}}return null;}export function buildFrontdoorUrl(_0x52b172,_0x8a96ac,_0xd2557d){const _0x3a7086=_0x52b172['replace'](/\/+$/,'');return _0x3a7086+'/secur/frontdoor.jsp?sid='+encodeURIComponent(_0x8a96ac)+'&retURL='+encodeURIComponent(_0xd2557d);}export function isSalesforceLoginPage(_0x1291fd,_0x36dc5e){return _0x1291fd==='Login\x20|\x20Salesforce'||typeof _0x36dc5e==='string'&&/[&?]ec=302(?:&|$).*startURL=|[&?]startURL=.*[&?]ec=302(?:&|$)/['test'](_0x36dc5e);}async function findDownloadLocator(_0x1bb86d,_0x41cb0e){const _0x1b4bf0=async _0xdf2e0d=>{for(const _0x4f5462 of DOWNLOAD_LINK_SELECTORS){try{const _0x1e2074=await firstVisibleMatchingAnchor(_0xdf2e0d,_0x4f5462);if(_0x1e2074){logger['debug']('Found\x20visible\x20download\x20link:\x20'+_0x4f5462);return _0x1e2074;}}catch(_0x5319af){logger['debug']('Selector\x20'+_0x4f5462+':\x20'+_0x5319af['message']);}}return null;};if(_0x41cb0e){const _0x329a94=await _0x1b4bf0(_0x41cb0e);if(_0x329a94){return _0x329a94;}}for(const _0x497524 of _0x1bb86d['frames']()){try{const _0x379a66=_0x497524['url']();if(ORG_SETUP_AUDIT_FRAME_URL['test'](_0x379a66)){const _0x108657=await _0x1b4bf0(_0x497524);if(_0x108657){return _0x108657;}}}catch{continue;}}const _0x43ac75=['iframe[src*=\x22SecurityEvents\x22]','iframe'];for(const _0x563ea5 of _0x43ac75){try{const _0x42e3a1=_0x1bb86d['frameLocator'](_0x563ea5)['first']();for(const _0x53895b of DOWNLOAD_LINK_SELECTORS){try{const _0x2ecce7=await firstVisibleMatchingAnchor(_0x42e3a1,_0x53895b);if(_0x2ecce7){logger['debug']('Found\x20visible\x20download\x20link:\x20'+_0x563ea5+'\x20+\x20'+_0x53895b);return _0x2ecce7;}}catch{}}}catch{}}const _0x1dd334=[_0x1bb86d,..._0x1bb86d['frames']()];for(const _0x3b6e48 of FALLBACK_LINK_SELECTORS){for(const _0x5ad594 of _0x1dd334){try{const _0x249b38=await firstVisibleMatchingAnchor(_0x5ad594,_0x3b6e48);if(_0x249b38){logger['debug']('Found\x20visible\x20download\x20link\x20(fallback):\x20'+_0x3b6e48);return _0x249b38;}}catch(_0x4018e1){logger['debug']('Fallback\x20selector\x20failed:\x20'+_0x3b6e48+'\x20-\x20'+_0x4018e1['message']);}}}logger['debug']('No\x20download\x20link\x20found\x20with\x20any\x20selector');return null;}async function retrieveFile(){let _0x167892=null;try{const _0x8300ff='/lightning/setup/SecurityEvents/home';const _0x5ef97f=performance['now']();let _0x5ee7ae=_0x5ef97f;let _0x3b9af5=checkPlaywrightBrowsers();logger['debug']('[timing]\x20checkPlaywrightBrowsers:\x20'+Math['round'](performance['now']()-_0x5ee7ae)+'ms');_0x5ee7ae=performance['now']();if(!_0x3b9af5){logger['debug']('Playwright\x20browsers\x20not\x20installed.\x20Installing\x20them\x20automatically...');await installPlaywrightBrowsers();_playwrightBrowsersAvailable=null;_0x3b9af5=checkPlaywrightBrowsers();if(!_0x3b9af5){throw new Error('Failed\x20to\x20install\x20Playwright\x20browsers.\x20Please\x20run\x20manually:\x20npx\x20playwright\x20install\x20chromium');}logger['debug']('[timing]\x20installPlaywrightBrowsers\x20(+recheck):\x20'+Math['round'](performance['now']()-_0x5ee7ae)+'ms');_0x5ee7ae=performance['now']();}_0x167892=await chromium['launch']({'headless':!![]});const _0x3e6355=a0_0x5c6f01['join'](process['cwd'](),'tmp');if(!a0_0x1a5b55['existsSync'](_0x3e6355)){a0_0x1a5b55['mkdirSync'](_0x3e6355,{'recursive':!![]});}const _0x522455=await _0x167892['newContext']({'acceptDownloads':!![],'downloadsPath':_0x3e6355,'ignoreHTTPSErrors':!a0_0xe4eafb['strictSsl']});const _0x5da607=await _0x522455['newPage']();logger['debug']('[timing]\x20chromium.launch\x20+\x20newContext\x20+\x20newPage:\x20'+Math['round'](performance['now']()-_0x5ee7ae)+'ms');_0x5ee7ae=performance['now']();const {instanceUrl:_0xc75412,accessToken:_0x181886}=state['org'];if(!_0xc75412||!_0x181886){throw new Error('Missing\x20instanceUrl\x20or\x20accessToken');}const _0x564f86=buildFrontdoorUrl(_0xc75412,_0x181886,_0x8300ff);logger['debug']('[H2]\x20Navigating\x20to:\x20'+_0x8300ff);await _0x5da607['goto'](_0x564f86,{'waitUntil':'domcontentloaded','timeout':0xea60});logger['debug']('[timing]\x20page.goto(domcontentloaded):\x20'+Math['round'](performance['now']()-_0x5ee7ae)+'ms');_0x5ee7ae=performance['now']();let _0x2f3f40='n/a';try{_0x2f3f40=await _0x5da607['title']();}catch(_0x4388c6){logger['debug']('[H2]\x20Failed\x20to\x20retrieve\x20page\x20title\x20after\x20load',{'error':_0x4388c6});}logger['debug']('[H2]\x20Page\x20loaded.\x20Title:\x20'+_0x2f3f40+',\x20URL:\x20'+_0x5da607['url']());if(isSalesforceLoginPage(_0x2f3f40,_0x5da607['url']())){throw new Error('Frontdoor\x20login\x20redirected\x20to\x20Salesforce\x20login\x20page:\x20'+_0x5da607['url']());}try{await _0x5da607['waitForLoadState']('load',{'timeout':0x2710});}catch{}logger['debug']('[timing]\x20page.title\x20+\x20waitForLoadState(load):\x20'+Math['round'](performance['now']()-_0x5ee7ae)+'ms');_0x5ee7ae=performance['now']();const _0x43f753=await waitForOrgSetupAuditFrame(_0x5da607,0xea60);logger['debug']('[timing]\x20waitForOrgSetupAuditFrame:\x20'+Math['round'](performance['now']()-_0x5ee7ae)+'ms');_0x5ee7ae=performance['now']();await waitForDownloadLinkAttached(_0x43f753,0x61a8);logger['debug']('[timing]\x20waitForDownloadLinkAttached:\x20'+Math['round'](performance['now']()-_0x5ee7ae)+'ms');_0x5ee7ae=performance['now']();logger['debug']('[H1]\x20Resolving\x20download\x20control...');const _0x1482d7=await findDownloadLocator(_0x5da607,_0x43f753);logger['debug']('[timing]\x20findDownloadLocator:\x20'+Math['round'](performance['now']()-_0x5ee7ae)+'ms');_0x5ee7ae=performance['now']();if(!_0x1482d7){logger['debug']('[H1]\x20Download\x20link\x20not\x20found,\x20listing\x20all\x20links\x20on\x20page...');await listAllLinks(_0x5da607);throw new Error('Download\x20link\x20not\x20found\x20in\x20Setup\x20Audit\x20Trail.');}const _0x1a08be=0x7530;logger['debug']('[H1]\x20Subscribing\x20to\x20download\x20event,\x20then\x20clicking...');const _0x49f4ec=_0x5da607['waitForEvent']('download',{'timeout':_0x1a08be});await _0x1482d7['click']({'timeout':0x1388});logger['debug']('[timing]\x20downloadLocator.click:\x20'+Math['round'](performance['now']()-_0x5ee7ae)+'ms');_0x5ee7ae=performance['now']();const _0x44cbc1=await _0x49f4ec;logger['debug']('[timing]\x20await\x20download\x20event\x20(after\x20click):\x20'+Math['round'](performance['now']()-_0x5ee7ae)+'ms');logger['debug']('[SUCCESS]\x20Download\x20event\x20received,\x20saving\x20file...');const _0x548721=a0_0x5c6f01['join'](_0x3e6355,'SetupAuditTrail.csv');_0x5ee7ae=performance['now']();await _0x44cbc1['saveAs'](_0x548721);logger['debug']('[timing]\x20download.saveAs:\x20'+Math['round'](performance['now']()-_0x5ee7ae)+'ms');logger['debug']('[timing]\x20retrieveFile\x20total:\x20'+Math['round'](performance['now']()-_0x5ef97f)+'ms');logger['debug']('[SUCCESS]\x20File\x20saved\x20to:\x20'+_0x548721);return _0x548721;}catch(_0x31335b){logger['error']('[ERROR]\x20Error\x20during\x20Setup\x20Audit\x20Trail\x20download:\x20'+_0x31335b['message']);throw _0x31335b;}finally{if(_0x167892){await _0x167892['close']();}}}function isRetryableDownloadError(_0x5a4909){const _0x45d30a=typeof _0x5a4909?.['message']==='string'?_0x5a4909['message']:'';if(!_0x45d30a){return![];}if(_0x45d30a['includes']('Frame\x20was\x20detached')||_0x45d30a['includes']('Target\x20page,\x20context\x20or\x20browser\x20has\x20been\x20closed')){return!![];}if(_0x45d30a['includes']('Download\x20link\x20not\x20found\x20in\x20Setup\x20Audit\x20Trail')){return!![];}if(_0x45d30a['includes']('Timeout')&&_0x45d30a['includes']('download')){return!![];}if(_0x45d30a['includes']('net::')||_0x45d30a['includes']('ERR_TOO_MANY_REDIRECTS')||_0x45d30a['includes']('chrome-error://')){return!![];}return![];}async function retrieveFileWithRetry(_0x559b46=0x3){let _0x1c1ede;const _0x12e719=0x7d0;for(let _0x456fe1=0x1;_0x456fe1<=_0x559b46;_0x456fe1++){try{return await retrieveFile();}catch(_0x5a69a8){_0x1c1ede=_0x5a69a8;if(isRetryableDownloadError(_0x5a69a8)&&_0x456fe1<_0x559b46){logger['debug']('Retryable\x20error\x20on\x20attempt\x20'+_0x456fe1+'/'+_0x559b46+':\x20'+_0x5a69a8['message']+'.\x20Waiting\x20'+_0x12e719+'ms...');await new Promise(_0x37ee21=>setTimeout(_0x37ee21,_0x12e719));continue;}break;}}logger['error']('All\x20download\x20attempts\x20failed.\x20Last\x20error:\x20'+_0x1c1ede?.['message']);throw _0x1c1ede;}export async function retrieveSetupAuditTrailFile(){try{return await retrieveFileWithRetry();}catch(_0x2a8ba2){logger['error'](_0x2a8ba2,'Error\x20retrieving\x20Setup\x20Audit\x20Trail\x20file');throw _0x2a8ba2;}}
|
|
1
|
+
import{exec}from'node:child_process';import{performance}from'node:perf_hooks';import{promisify}from'node:util';import a0_0x543618 from'node:fs';import a0_0x766744 from'node:path';import{chromium}from'playwright';import a0_0x343794 from'../config.js';import{state}from'../state.js';import{createModuleLogger}from'./logger.js';const logger=createModuleLogger(import.meta.url);const execAsync=promisify(exec);const ORG_SETUP_AUDIT_FRAME_URL=/orgsetupaudit\.jsp|\/setup\/org\/orgsetupaudit/i;const DOWNLOAD_LINK_SELECTORS=['a:has-text(\x22Download\x20setup\x20audit\x20trail\x20for\x20last\x20six\x20months\x22)','a:has-text(\x22Download\x20setup\x20audit\x20trail\x22)','a[href*=\x22SetupAuditTrail\x22]'];const FALLBACK_LINK_SELECTORS=['a[href*=\x22SetupAuditTrail\x22]','a[href*=\x22/servlet/servlet.SetupAuditTrail\x22]','div.pShowMore\x20a[href*=\x22SetupAuditTrail\x22]','div.pShowMore\x20a'];const FRAME_WAIT_FALLBACK_POLL_MS=0x1f4;const VISIBLE_DOWNLOAD_LINK_TIMEOUT_MS=0x1388;const MAX_VISIBLE_ANCHOR_CANDIDATES=0xc;let _playwrightBrowsersAvailable=null;function checkPlaywrightBrowsers(){if(_playwrightBrowsersAvailable!==null){return _playwrightBrowsersAvailable;}try{const _0x3d3120=chromium['executablePath']();_playwrightBrowsersAvailable=a0_0x543618['existsSync'](_0x3d3120);}catch{_playwrightBrowsersAvailable=![];}return _playwrightBrowsersAvailable;}async function installPlaywrightBrowsers(){try{logger['debug']('Installing\x20Playwright\x20browsers...');const {stderr:_0xf607a6}=await execAsync('npx\x20playwright\x20install\x20chromium');if(_0xf607a6&&!_0xf607a6['includes']('chromium')){logger['warn']('Playwright\x20installation\x20stderr:',_0xf607a6);}logger['debug']('Playwright\x20browsers\x20installed\x20successfully');return!![];}catch(_0x558e09){logger['error']('Failed\x20to\x20install\x20Playwright\x20browsers:',_0x558e09['message']);throw new Error('Failed\x20to\x20install\x20Playwright\x20browsers.\x20Please\x20run\x20manually:\x20npx\x20playwright\x20install\x20chromium');}}async function listAllLinks(_0x5066be){try{const _0x1d6469=await _0x5066be['locator']('a')['all']();if(_0x1d6469['length']===0x0){logger['debug']('No\x20links\x20found\x20on\x20page');return;}logger['debug']('Found\x20'+_0x1d6469['length']+'\x20links\x20on\x20page:');for(let _0x33208e=0x0;_0x33208e<Math['min'](_0x1d6469['length'],0x14);_0x33208e++){const _0x33217c=await _0x1d6469[_0x33208e]['getAttribute']('href');const text=await _0x1d6469[_0x33208e]['textContent']();logger['debug']('\x20\x20['+_0x33208e+']\x20href=\x22'+_0x33217c+'\x22\x20text=\x22'+text?.['trim']()['slice'](0x0,0x32)+'\x22');}if(_0x1d6469['length']>0x14){logger['debug']('\x20\x20...\x20and\x20'+(_0x1d6469['length']-0x14)+'\x20more\x20links');}}catch(_0x59671b){logger['debug']('Error\x20listing\x20links:\x20'+_0x59671b['message']);}}async function waitForOrgSetupAuditFrame(_0x335c32,_0x51e346=0xea60){const _0x401172=Date['now']();function _0x15acf1(){let _0x385108;try{_0x385108=_0x335c32['frames']();}catch(_0x37df0d){logger['debug']('[H2]\x20tryMatch\x20page.frames:\x20'+_0x37df0d['message']);return null;}for(const _0x39c6c1 of _0x385108){try{const _0x28adbe=_0x39c6c1['url']();if(ORG_SETUP_AUDIT_FRAME_URL['test'](_0x28adbe)){return _0x39c6c1;}}catch{}}return null;}const _0x4e71b2=_0x15acf1();if(_0x4e71b2){let _0x9fdf58='(url\x20unavailable)';try{_0x9fdf58=_0x4e71b2['url']();}catch{}logger['debug']('[H2]\x20orgsetupaudit\x20frame\x20after\x20'+(Date['now']()-_0x401172)+'ms:\x20'+_0x9fdf58['slice'](0x0,0x8c));return _0x4e71b2;}let _0x4849cd=![];let _0x41ec31;return new Promise(_0x4e7e8e=>{const _0x106a9f=()=>{if(_0x41ec31){clearInterval(_0x41ec31);}_0x335c32['off']('framenavigated',_0x5a0bad);_0x335c32['off']('close',_0x1f0af1);};function _0x1f0af1(){logger['debug']('[H2]\x20page\x20closed\x20while\x20waiting\x20for\x20orgsetupaudit\x20frame');_0x1efe89(null);}function _0x1efe89(_0x5486e1){if(_0x4849cd){return;}_0x4849cd=!![];_0x106a9f();if(_0x5486e1){let _0x3eb16b='(url\x20unavailable)';try{_0x3eb16b=_0x5486e1['url']();}catch{}logger['debug']('[H2]\x20orgsetupaudit\x20frame\x20after\x20'+(Date['now']()-_0x401172)+'ms:\x20'+_0x3eb16b['slice'](0x0,0x8c));}else{logger['debug']('[H2]\x20orgsetupaudit\x20frame\x20not\x20found\x20within\x20'+_0x51e346+'ms');}_0x4e7e8e(_0x5486e1);}function _0x5a0bad(){const _0x1216a0=_0x15acf1();if(_0x1216a0){_0x1efe89(_0x1216a0);}}_0x335c32['on']('framenavigated',_0x5a0bad);_0x335c32['on']('close',_0x1f0af1);_0x41ec31=setInterval(()=>{if(_0x4849cd){return;}const _0x305d13=_0x15acf1();if(_0x305d13){_0x1efe89(_0x305d13);return;}if(Date['now']()-_0x401172>=_0x51e346){_0x1efe89(null);}},FRAME_WAIT_FALLBACK_POLL_MS);});}async function waitForDownloadLinkAttached(_0x2c9d89,_0x5d1c45=0x61a8){if(!_0x2c9d89){return;}const _0x52727d=Date['now']();const _0x501d32=['a[href*=\x22SetupAuditTrail\x22]','a:has-text(\x22Download\x20setup\x20audit\x20trail\x20for\x20last\x20six\x20months\x22)','a:has-text(\x22Download\x20setup\x20audit\x20trail\x22)'];for(const _0x39bdda of _0x501d32){const _0x54110c=Date['now']()-_0x52727d;const _0x31ac42=_0x5d1c45-_0x54110c;if(_0x31ac42<0x190){break;}try{await _0x2c9d89['locator'](_0x39bdda)['first']()['waitFor']({'state':'attached','timeout':_0x31ac42});logger['debug']('[H2]\x20Download\x20anchor\x20ready\x20('+_0x39bdda+')\x20after\x20'+(Date['now']()-_0x52727d)+'ms');return;}catch{}}logger['debug']('[H2]\x20Download\x20anchor\x20not\x20attached\x20within\x20wait\x20(continuing\x20to\x20locator\x20search)');}async function firstVisibleMatchingAnchor(_0xe3fc89,_0xc28567){const _0x4ac155=_0xe3fc89['locator'](_0xc28567);let _0x173fce;try{_0x173fce=await _0x4ac155['count']();}catch(_0x1adf05){logger['debug']('firstVisibleMatchingAnchor\x20count:\x20'+_0x1adf05['message']);return null;}const _0x1cbff7=Math['min'](_0x173fce,MAX_VISIBLE_ANCHOR_CANDIDATES);if(_0x173fce>MAX_VISIBLE_ANCHOR_CANDIDATES){logger['debug']('firstVisibleMatchingAnchor:\x20checking\x20first\x20'+_0x1cbff7+'\x20of\x20'+_0x173fce+'\x20matches\x20for\x20'+_0xc28567['slice'](0x0,0x28));}for(let _0x20d6e2=0x0;_0x20d6e2<_0x1cbff7;_0x20d6e2++){const _0x2ddec5=_0x4ac155['nth'](_0x20d6e2);try{await _0x2ddec5['waitFor']({'state':'visible','timeout':VISIBLE_DOWNLOAD_LINK_TIMEOUT_MS});return _0x2ddec5;}catch{}}return null;}export function buildFrontdoorUrl(_0x1277ad,_0x8e5599,_0x560aac){const _0x3ee42f=_0x1277ad['replace'](/\/+$/,'');return _0x3ee42f+'/secur/frontdoor.jsp?sid='+encodeURIComponent(_0x8e5599)+'&retURL='+encodeURIComponent(_0x560aac);}export function isSalesforceLoginPage(_0x38ebcd,_0x24d857){return _0x38ebcd==='Login\x20|\x20Salesforce'||typeof _0x24d857==='string'&&/[&?]ec=302(?:&|$).*startURL=|[&?]startURL=.*[&?]ec=302(?:&|$)/['test'](_0x24d857);}async function findDownloadLocator(_0x3f25d6,_0x3dbece){const _0x56559=async _0x3cdf6e=>{for(const _0x36e27e of DOWNLOAD_LINK_SELECTORS){try{const _0x2c6f7b=await firstVisibleMatchingAnchor(_0x3cdf6e,_0x36e27e);if(_0x2c6f7b){logger['debug']('Found\x20visible\x20download\x20link:\x20'+_0x36e27e);return _0x2c6f7b;}}catch(_0x9a2963){logger['debug']('Selector\x20'+_0x36e27e+':\x20'+_0x9a2963['message']);}}return null;};if(_0x3dbece){const _0x2f5d3a=await _0x56559(_0x3dbece);if(_0x2f5d3a){return _0x2f5d3a;}}for(const _0x2187b7 of _0x3f25d6['frames']()){try{const _0x1a11ce=_0x2187b7['url']();if(ORG_SETUP_AUDIT_FRAME_URL['test'](_0x1a11ce)){const _0x23ddfa=await _0x56559(_0x2187b7);if(_0x23ddfa){return _0x23ddfa;}}}catch{continue;}}const _0xab0812=['iframe[src*=\x22SecurityEvents\x22]','iframe'];for(const _0x45c077 of _0xab0812){try{const _0x288cdf=_0x3f25d6['frameLocator'](_0x45c077)['first']();for(const _0x541d94 of DOWNLOAD_LINK_SELECTORS){try{const _0x2eaf4b=await firstVisibleMatchingAnchor(_0x288cdf,_0x541d94);if(_0x2eaf4b){logger['debug']('Found\x20visible\x20download\x20link:\x20'+_0x45c077+'\x20+\x20'+_0x541d94);return _0x2eaf4b;}}catch{}}}catch{}}const _0x5bcf33=[_0x3f25d6,..._0x3f25d6['frames']()];for(const _0x3a7105 of FALLBACK_LINK_SELECTORS){for(const _0x217644 of _0x5bcf33){try{const _0x54cbfb=await firstVisibleMatchingAnchor(_0x217644,_0x3a7105);if(_0x54cbfb){logger['debug']('Found\x20visible\x20download\x20link\x20(fallback):\x20'+_0x3a7105);return _0x54cbfb;}}catch(_0xdc7d57){logger['debug']('Fallback\x20selector\x20failed:\x20'+_0x3a7105+'\x20-\x20'+_0xdc7d57['message']);}}}logger['debug']('No\x20download\x20link\x20found\x20with\x20any\x20selector');return null;}async function retrieveFile(){let _0x5c177c=null;try{const _0x1f1a01='/lightning/setup/SecurityEvents/home';const _0x5977ea=performance['now']();let _0x978719=_0x5977ea;let _0x1b04d6=checkPlaywrightBrowsers();logger['debug']('[timing]\x20checkPlaywrightBrowsers:\x20'+Math['round'](performance['now']()-_0x978719)+'ms');_0x978719=performance['now']();if(!_0x1b04d6){logger['debug']('Playwright\x20browsers\x20not\x20installed.\x20Installing\x20them\x20automatically...');await installPlaywrightBrowsers();_playwrightBrowsersAvailable=null;_0x1b04d6=checkPlaywrightBrowsers();if(!_0x1b04d6){throw new Error('Failed\x20to\x20install\x20Playwright\x20browsers.\x20Please\x20run\x20manually:\x20npx\x20playwright\x20install\x20chromium');}logger['debug']('[timing]\x20installPlaywrightBrowsers\x20(+recheck):\x20'+Math['round'](performance['now']()-_0x978719)+'ms');_0x978719=performance['now']();}_0x5c177c=await chromium['launch']({'headless':!![]});const _0x5baa1d=a0_0x766744['join'](process['cwd'](),'tmp');if(!a0_0x543618['existsSync'](_0x5baa1d)){a0_0x543618['mkdirSync'](_0x5baa1d,{'recursive':!![]});}const _0x74c94a=await _0x5c177c['newContext']({'acceptDownloads':!![],'downloadsPath':_0x5baa1d,'ignoreHTTPSErrors':!a0_0x343794['strictSsl']});const _0x2b7700=await _0x74c94a['newPage']();logger['debug']('[timing]\x20chromium.launch\x20+\x20newContext\x20+\x20newPage:\x20'+Math['round'](performance['now']()-_0x978719)+'ms');_0x978719=performance['now']();const {instanceUrl:_0x529e52,accessToken:_0x284c4b}=state['org'];if(!_0x529e52||!_0x284c4b){throw new Error('Missing\x20instanceUrl\x20or\x20accessToken');}const _0x4387b8=buildFrontdoorUrl(_0x529e52,_0x284c4b,_0x1f1a01);logger['debug']('[H2]\x20Navigating\x20to:\x20'+_0x1f1a01);await _0x2b7700['goto'](_0x4387b8,{'waitUntil':'domcontentloaded','timeout':0xea60});logger['debug']('[timing]\x20page.goto(domcontentloaded):\x20'+Math['round'](performance['now']()-_0x978719)+'ms');_0x978719=performance['now']();let _0x4d54a5='n/a';try{_0x4d54a5=await _0x2b7700['title']();}catch(_0x3767f4){logger['debug']('[H2]\x20Failed\x20to\x20retrieve\x20page\x20title\x20after\x20load',{'error':_0x3767f4});}logger['debug']('[H2]\x20Page\x20loaded.\x20Title:\x20'+_0x4d54a5+',\x20URL:\x20'+_0x2b7700['url']());if(isSalesforceLoginPage(_0x4d54a5,_0x2b7700['url']())){throw new Error('Frontdoor\x20login\x20redirected\x20to\x20Salesforce\x20login\x20page:\x20'+_0x2b7700['url']());}try{await _0x2b7700['waitForLoadState']('load',{'timeout':0x2710});}catch{}logger['debug']('[timing]\x20page.title\x20+\x20waitForLoadState(load):\x20'+Math['round'](performance['now']()-_0x978719)+'ms');_0x978719=performance['now']();const _0x3b5378=await waitForOrgSetupAuditFrame(_0x2b7700,0xea60);logger['debug']('[timing]\x20waitForOrgSetupAuditFrame:\x20'+Math['round'](performance['now']()-_0x978719)+'ms');_0x978719=performance['now']();await waitForDownloadLinkAttached(_0x3b5378,0x61a8);logger['debug']('[timing]\x20waitForDownloadLinkAttached:\x20'+Math['round'](performance['now']()-_0x978719)+'ms');_0x978719=performance['now']();logger['debug']('[H1]\x20Resolving\x20download\x20control...');const _0x5ad6b5=await findDownloadLocator(_0x2b7700,_0x3b5378);logger['debug']('[timing]\x20findDownloadLocator:\x20'+Math['round'](performance['now']()-_0x978719)+'ms');_0x978719=performance['now']();if(!_0x5ad6b5){logger['debug']('[H1]\x20Download\x20link\x20not\x20found,\x20listing\x20all\x20links\x20on\x20page...');await listAllLinks(_0x2b7700);throw new Error('Download\x20link\x20not\x20found\x20in\x20Setup\x20Audit\x20Trail.');}const _0x2690b6=0x7530;logger['debug']('[H1]\x20Subscribing\x20to\x20download\x20event,\x20then\x20clicking...');const _0x813cb7=_0x2b7700['waitForEvent']('download',{'timeout':_0x2690b6});await _0x5ad6b5['click']({'timeout':0x1388});logger['debug']('[timing]\x20downloadLocator.click:\x20'+Math['round'](performance['now']()-_0x978719)+'ms');_0x978719=performance['now']();const _0x384b6e=await _0x813cb7;logger['debug']('[timing]\x20await\x20download\x20event\x20(after\x20click):\x20'+Math['round'](performance['now']()-_0x978719)+'ms');logger['debug']('[SUCCESS]\x20Download\x20event\x20received,\x20saving\x20file...');const _0x9e2de7=a0_0x766744['join'](_0x5baa1d,'SetupAuditTrail.csv');_0x978719=performance['now']();await _0x384b6e['saveAs'](_0x9e2de7);logger['debug']('[timing]\x20download.saveAs:\x20'+Math['round'](performance['now']()-_0x978719)+'ms');logger['debug']('[timing]\x20retrieveFile\x20total:\x20'+Math['round'](performance['now']()-_0x5977ea)+'ms');logger['debug']('[SUCCESS]\x20File\x20saved\x20to:\x20'+_0x9e2de7);return _0x9e2de7;}catch(_0x219441){logger['error']('[ERROR]\x20Error\x20during\x20Setup\x20Audit\x20Trail\x20download:\x20'+_0x219441['message']);throw _0x219441;}finally{if(_0x5c177c){await _0x5c177c['close']();}}}function isRetryableDownloadError(_0x52a8b8){const _0x4b4807=typeof _0x52a8b8?.['message']==='string'?_0x52a8b8['message']:'';if(!_0x4b4807){return![];}if(_0x4b4807['includes']('Frame\x20was\x20detached')||_0x4b4807['includes']('Target\x20page,\x20context\x20or\x20browser\x20has\x20been\x20closed')){return!![];}if(_0x4b4807['includes']('Download\x20link\x20not\x20found\x20in\x20Setup\x20Audit\x20Trail')){return!![];}if(_0x4b4807['includes']('Timeout')&&_0x4b4807['includes']('download')){return!![];}if(_0x4b4807['includes']('net::')||_0x4b4807['includes']('ERR_TOO_MANY_REDIRECTS')||_0x4b4807['includes']('chrome-error://')){return!![];}return![];}async function retrieveFileWithRetry(_0x2a58a3=0x3){let _0x3dbfae;const _0x43ab0e=0x7d0;for(let _0x55d75d=0x1;_0x55d75d<=_0x2a58a3;_0x55d75d++){try{return await retrieveFile();}catch(_0x59dea9){_0x3dbfae=_0x59dea9;if(isRetryableDownloadError(_0x59dea9)&&_0x55d75d<_0x2a58a3){logger['debug']('Retryable\x20error\x20on\x20attempt\x20'+_0x55d75d+'/'+_0x2a58a3+':\x20'+_0x59dea9['message']+'.\x20Waiting\x20'+_0x43ab0e+'ms...');await new Promise(_0x201c37=>setTimeout(_0x201c37,_0x43ab0e));continue;}break;}}logger['error']('All\x20download\x20attempts\x20failed.\x20Last\x20error:\x20'+_0x3dbfae?.['message']);throw _0x3dbfae;}export async function retrieveSetupAuditTrailFile(){try{return await retrieveFileWithRetry();}catch(_0x26ca2c){logger['error'](_0x26ca2c,'Error\x20retrieving\x20Setup\x20Audit\x20Trail\x20file');throw _0x26ca2c;}}
|