@evomap/evolver 1.88.3 → 1.89.0
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/.cursor/BUGBOT.md +182 -0
- package/.env.example +68 -0
- package/.git-commit-guard-token +1 -0
- package/.github/CODEOWNERS +63 -0
- package/.github/ISSUE_TEMPLATE/good_first_issue.md +23 -0
- package/.github/pull_request_template.md +45 -0
- package/.github/workflows/test.yml +75 -0
- package/CHANGELOG.md +1123 -0
- package/README.md +86 -543
- package/README.public.md +594 -0
- package/SECURITY.md +108 -0
- package/assets/gep/events.jsonl +3 -0
- package/examples/atp-consumer-quickstart.md +100 -0
- package/examples/hello-world.md +38 -0
- package/index.js +30 -1
- package/package.json +5 -15
- package/proxy-package.json +39 -0
- package/public.manifest.json +141 -0
- package/src/evolve/guards.js +721 -1
- package/src/evolve/pipeline/collect.js +1283 -1
- package/src/evolve/pipeline/dispatch.js +421 -1
- package/src/evolve/pipeline/enrich.js +434 -1
- package/src/evolve/pipeline/hub.js +319 -1
- package/src/evolve/pipeline/select.js +274 -1
- package/src/evolve/pipeline/signals.js +206 -1
- package/src/evolve/utils.js +264 -1
- package/src/evolve.js +350 -1
- package/src/gep/a2aProtocol.js +4395 -1
- package/src/gep/assetCallLog.js +30 -2
- package/src/gep/autoDistillConv.js +205 -1
- package/src/gep/autoDistillLlm.js +315 -1
- package/src/gep/candidateEval.js +92 -1
- package/src/gep/candidates.js +198 -1
- package/src/gep/contentHash.js +30 -1
- package/src/gep/conversationSniffer.js +266 -1
- package/src/gep/crypto.js +89 -1
- package/src/gep/curriculum.js +163 -1
- package/src/gep/deviceId.js +218 -1
- package/src/gep/envFingerprint.js +118 -1
- package/src/gep/epigenetics.js +31 -1
- package/src/gep/execBridge.js +711 -1
- package/src/gep/explore.js +289 -1
- package/src/gep/hash.js +15 -1
- package/src/gep/hubFetch.js +359 -1
- package/src/gep/hubReview.js +207 -1
- package/src/gep/hubSearch.js +526 -1
- package/src/gep/hubVerify.js +306 -1
- package/src/gep/learningSignals.js +89 -1
- package/src/gep/memoryGraph.js +1374 -1
- package/src/gep/memoryGraphAdapter.js +203 -1
- package/src/gep/mutation.js +203 -1
- package/src/gep/narrativeMemory.js +108 -1
- package/src/gep/oauthLogin.js +143 -0
- package/src/gep/openPRRegistry.js +205 -1
- package/src/gep/personality.js +423 -1
- package/src/gep/policyCheck.js +599 -1
- package/src/gep/prompt.js +836 -1
- package/src/gep/recallInject.js +409 -1
- package/src/gep/recallVerifier.js +318 -1
- package/src/gep/reflection.js +177 -1
- package/src/gep/schemas/capsule.js +26 -0
- package/src/gep/selector.js +602 -1
- package/src/gep/skillDistiller.js +1294 -1
- package/src/gep/solidify.js +1699 -1
- package/src/gep/strategy.js +136 -1
- package/src/gep/tokenSavings.js +88 -0
- package/src/gep/workspaceKeychain.js +174 -1
- package/src/proxy/extensions/traceControl.js +99 -1
- package/src/proxy/index.js +36 -6
- package/src/proxy/inject.js +52 -1
- package/src/proxy/trace/extractor.js +534 -1
- package/src/proxy/trace/usage.js +105 -0
- package/CONTRIBUTING.md +0 -11
- package/assets/cover.png +0 -0
- package/scripts/a2a_export.js +0 -63
- package/scripts/a2a_ingest.js +0 -79
- package/scripts/a2a_promote.js +0 -118
- package/scripts/analyze_by_skill.js +0 -121
- package/scripts/build_binaries.js +0 -479
- package/scripts/check-changelog.js +0 -166
- package/scripts/extract_log.js +0 -85
- package/scripts/generate_history.js +0 -75
- package/scripts/gep_append_event.js +0 -96
- package/scripts/gep_personality_report.js +0 -234
- package/scripts/human_report.js +0 -147
- package/scripts/recall-verify-report.js +0 -234
- package/scripts/recover_loop.js +0 -61
- package/scripts/seed-merchants.js +0 -91
- package/scripts/suggest_version.js +0 -89
- package/scripts/validate-modules.js +0 -38
- package/scripts/validate-suite.js +0 -78
- package/skills/index.json +0 -14
- /package/assets/gep/{genes.seed.json → genes.json} +0 -0
- /package/{skills → bundled-skills}/_meta/SKILL.md +0 -0
package/src/gep/hubFetch.js
CHANGED
|
@@ -1 +1,359 @@
|
|
|
1
|
-
const _0x3ccaed=_0x1154;(function(_0x252d0e,_0x439c62){const _0x4ac2f3=_0x1154,_0x4f57fe=_0x252d0e();while(!![]){try{const _0x2a5d5a=-parseInt(_0x4ac2f3(0x141,'\x28\x6c\x6a\x5b'))/(0x246+-0x29*0xaf+0x19c2)*(parseInt(_0x4ac2f3(0x125,'\x61\x28\x6e\x66'))/(-0x1*0xcd+-0x2b9*-0x7+-0x490*0x4))+parseInt(_0x4ac2f3(0x204,'\x24\x35\x69\x6b'))/(-0x1036+0x4*0x41c+-0x37)+parseInt(_0x4ac2f3(0x1dc,'\x71\x49\x69\x6a'))/(-0x32b*-0x3+0x12e6+0x1c63*-0x1)*(-parseInt(_0x4ac2f3(0x12f,'\x23\x48\x77\x37'))/(0xa6*0x17+-0xb45+-0x3a0))+parseInt(_0x4ac2f3(0x20b,'\x71\x25\x6b\x5b'))/(0x48a+0x1*0x1818+-0x1c9c)*(-parseInt(_0x4ac2f3(0x17a,'\x25\x41\x53\x28'))/(-0xd3*0x1+-0xc7b+-0x1*-0xd55))+parseInt(_0x4ac2f3(0x131,'\x52\x6a\x5d\x43'))/(-0x1638+-0xfe6+-0x26*-0x101)+parseInt(_0x4ac2f3(0x1b9,'\x50\x26\x6d\x5a'))/(-0x69b*0x2+0x1b1*0x6+-0x1*-0x319)+-parseInt(_0x4ac2f3(0x19d,'\x50\x26\x6d\x5a'))/(0xbf*0x2b+-0x3*-0x15d+-0x32*0xb9);if(_0x2a5d5a===_0x439c62)break;else _0x4f57fe['push'](_0x4f57fe['shift']());}catch(_0x5d6fbd){_0x4f57fe['push'](_0x4f57fe['shift']());}}}(_0xf8fd,0x5f*-0x371+0x55*0xf5e+-0x6e86));const _0x54565a=require(_0x3ccaed(0x151,'\x64\x45\x51\x34')),{Agent:_0x1cbcc6,fetch:_0x737b3b,buildConnector:_0x4598ac}=require(_0x3ccaed(0x146,'\x54\x4c\x57\x62')),_0x4e0550={};_0x4e0550[_0x3ccaed(0x17f,'\x25\x21\x68\x46')+_0x3ccaed(0x1f5,'\x25\x41\x53\x28')+'\x65\x64']=!![],_0x4e0550[_0x3ccaed(0x1d5,'\x78\x31\x51\x21')]=0x2710,_0x4e0550[_0x3ccaed(0x127,'\x71\x49\x69\x6a')+'\x63\x74\x46\x61\x6d\x69\x6c\x79']=!![],_0x4e0550[_0x3ccaed(0x1dd,'\x6b\x68\x59\x6c')+_0x3ccaed(0x14d,'\x6a\x39\x52\x30')+_0x3ccaed(0x15e,'\x33\x69\x5e\x23')+_0x3ccaed(0x160,'\x6f\x62\x44\x54')]=0xfa;const _0x32427a=_0x4e0550,_0x18c205=_0x4598ac(_0x32427a);function _0xe7e8b2(_0x252382,_0xb958ab){const _0x5f1f10=_0x3ccaed,_0x5a9304={'\x4d\x68\x5a\x4d\x6e':function(_0x1e7a78,_0x4d5256){return _0x1e7a78!==_0x4d5256;},'\x43\x43\x44\x66\x63':function(_0x2dac5f,_0x4f6c65,_0x730f63){return _0x2dac5f(_0x4f6c65,_0x730f63);},'\x4e\x61\x57\x72\x47':function(_0x6f3781,_0x7d0994){return _0x6f3781===_0x7d0994;},'\x74\x6d\x74\x6b\x4c':function(_0x593871,_0x135217){return _0x593871===_0x135217;},'\x59\x47\x51\x70\x7a':_0x5f1f10(0x13f,'\x56\x56\x25\x77'),'\x6e\x64\x56\x68\x4e':_0x5f1f10(0x166,'\x78\x31\x51\x21'),'\x47\x54\x4f\x50\x77':function(_0x1ebb59,_0x3a879d,_0x505ca4){return _0x1ebb59(_0x3a879d,_0x505ca4);},'\x58\x45\x59\x4e\x42':function(_0x177755,_0x19c2b8,_0x42c956){return _0x177755(_0x19c2b8,_0x42c956);}};return _0x5a9304[_0x5f1f10(0x13e,'\x76\x37\x78\x7a')](_0x18c205,_0x252382,function(_0x4e2512,_0x5cfe96){const _0x538c46=_0x5f1f10;if(_0x5a9304[_0x538c46(0x1de,'\x25\x71\x65\x70')](_0x538c46(0x165,'\x33\x69\x5e\x23'),_0x538c46(0x174,'\x4c\x34\x68\x4e'))){if(_0x4e2512)return _0x5a9304[_0x538c46(0x1ce,'\x64\x45\x51\x34')](_0xb958ab,_0x4e2512,_0x5cfe96);try{if(_0x5cfe96&&_0x5a9304[_0x538c46(0x1e1,'\x25\x71\x65\x70')](typeof _0x5cfe96[_0x538c46(0x1b5,'\x28\x6c\x6a\x5b')+_0x538c46(0x159,'\x21\x53\x28\x41')],_0x538c46(0x15f,'\x4d\x6b\x41\x23'))){if(_0x5a9304[_0x538c46(0x203,'\x6d\x4b\x4b\x23')](_0x5a9304['\x59\x47\x51\x70\x7a'],_0x5a9304[_0x538c46(0x120,'\x43\x67\x7a\x2a')])){const _0x20180a=_0x5a9304['\x4d\x68\x5a\x4d\x6e'](_0x3df808,_0x390bba)?_0xbb1f97:_0x446166[_0x538c46(0x1a8,'\x35\x67\x26\x45')];return _0x20180a(_0x5b1ea3,_0x5605c7);}else _0x5cfe96[_0x538c46(0x1e7,'\x71\x49\x69\x6a')+_0x538c46(0x1db,'\x25\x41\x53\x28')](!![],-0x6b29+-0x6aed*-0x1+-0x3c*-0xfb);}}catch(_0x1a11a6){}_0x5a9304[_0x538c46(0x181,'\x2a\x46\x7a\x56')](_0xb958ab,null,_0x5cfe96);}else _0x20cbab();});}_0xe7e8b2[_0x3ccaed(0x19c,'\x35\x67\x26\x45')+'\x61\x75\x74\x68\x6f\x72\x69\x7a'+'\x65\x64']=!![];function _0x482144(){const _0xb663df=_0x3ccaed,_0x9c9efb={};return _0x9c9efb[_0xb663df(0x1a7,'\x71\x25\x6b\x5b')]=_0xe7e8b2,_0x9c9efb[_0xb663df(0x1d4,'\x4a\x72\x32\x73')+_0xb663df(0x1c8,'\x56\x56\x25\x77')]=0x2710,_0x9c9efb[_0xb663df(0x1c0,'\x43\x39\x57\x76')+_0xb663df(0x14b,'\x76\x37\x78\x7a')+_0xb663df(0x1b7,'\x75\x4f\x4a\x70')]=0xea60,_0x9c9efb[_0xb663df(0x1a9,'\x61\x28\x6e\x66')+_0xb663df(0x13d,'\x64\x45\x51\x34')]=0x7530,_0x9c9efb[_0xb663df(0x16d,'\x52\x6a\x5d\x43')+_0xb663df(0x1c1,'\x59\x29\x4f\x4c')]=0x7530,_0x9c9efb['\x70\x69\x70\x65\x6c\x69\x6e\x69'+'\x6e\x67']=0x1,new _0x1cbcc6(_0x9c9efb);}function _0x4b8570(){const _0x4374a4=_0x3ccaed,_0x5180f6={};return _0x5180f6[_0x4374a4(0x1cc,'\x61\x79\x74\x46')]=_0xe7e8b2,_0x5180f6['\x6b\x65\x65\x70\x41\x6c\x69\x76'+_0x4374a4(0x145,'\x4d\x6b\x41\x23')]=0x2710,_0x5180f6[_0x4374a4(0x157,'\x24\x35\x69\x6b')+_0x4374a4(0x17c,'\x52\x6a\x5d\x43')+_0x4374a4(0x1cf,'\x4d\x6b\x41\x23')]=0xea60,_0x5180f6[_0x4374a4(0x206,'\x4f\x57\x6b\x48')+_0x4374a4(0x14e,'\x54\x4c\x57\x62')]=0xfde8,_0x5180f6[_0x4374a4(0x143,'\x28\x6c\x6a\x5b')+_0x4374a4(0x1b7,'\x75\x4f\x4a\x70')]=0xfde8,_0x5180f6[_0x4374a4(0x184,'\x66\x25\x5a\x79')+'\x6e\x67']=0x1,new _0x1cbcc6(_0x5180f6);}function _0x3225e3(){const _0x83aeb5=_0x3ccaed,_0x2cc842={'\x65\x4d\x45\x47\x50':_0x83aeb5(0x1c3,'\x5a\x6b\x2a\x44')+_0x83aeb5(0x13b,'\x66\x25\x5a\x79'),'\x4d\x4b\x47\x6c\x68':function(_0x366501,_0x18665a){return _0x366501!==_0x18665a;},'\x50\x67\x61\x6f\x62':_0x83aeb5(0x1d8,'\x6d\x4b\x4b\x23'),'\x70\x4d\x73\x4a\x62':function(_0xd880d8,_0x1940f3){return _0xd880d8(_0x1940f3);},'\x46\x69\x44\x67\x4d':function(_0x5b94de){return _0x5b94de();},'\x47\x4d\x51\x53\x75':function(_0x5a9f64,_0x3d9676){return _0x5a9f64===_0x3d9676;},'\x77\x6c\x76\x4a\x76':function(_0x35909e,_0x4fec58){return _0x35909e+_0x4fec58;},'\x41\x64\x56\x4b\x6c':function(_0x94bac3,_0x21b9c8){return _0x94bac3+_0x21b9c8;},'\x49\x59\x6d\x48\x53':_0x83aeb5(0x130,'\x6f\x62\x44\x54')+'\x68\x5d\x20\x48\x75\x62\x20\x55'+_0x83aeb5(0x1f9,'\x29\x4d\x5d\x61')+_0x83aeb5(0x1ee,'\x36\x41\x54\x36')+_0x83aeb5(0x1c9,'\x75\x4f\x4a\x70')+'\x6f\x74\x20','\x41\x78\x7a\x48\x42':_0x83aeb5(0x123,'\x54\x4c\x57\x62')+'\x41\x50\x5f\x48\x55\x42\x5f\x41'+_0x83aeb5(0x182,'\x43\x39\x57\x76')+'\x45\x43\x55\x52\x45\x3d\x31\x20'+_0x83aeb5(0x1ca,'\x24\x35\x69\x6b')+_0x83aeb5(0x171,'\x4c\x34\x68\x4e')+_0x83aeb5(0x180,'\x28\x6c\x6a\x5b')+_0x83aeb5(0x1b0,'\x43\x39\x57\x76')+_0x83aeb5(0x15b,'\x43\x67\x7a\x2a'),'\x63\x6b\x70\x52\x78':_0x83aeb5(0x20c,'\x43\x67\x7a\x2a'),'\x72\x44\x59\x46\x44':'\x77\x59\x56\x74\x53','\x59\x73\x47\x68\x59':function(_0x192b86,_0x1b01c5,_0x51e972){return _0x192b86(_0x1b01c5,_0x51e972);}},_0x19e4ff=(function(){const _0x19f96a=_0x83aeb5,_0x1aee5f={'\x4a\x4e\x62\x70\x4e':function(_0x35adbd,_0x3aa0f7){return _0x2cc842['\x4d\x4b\x47\x6c\x68'](_0x35adbd,_0x3aa0f7);},'\x66\x43\x41\x6f\x67':_0x19f96a(0x20a,'\x66\x25\x5a\x79'),'\x6f\x58\x66\x52\x73':_0x2cc842['\x50\x67\x61\x6f\x62'],'\x4d\x41\x46\x79\x46':function(_0x464b6b,_0xe8d781){const _0x761ba5=_0x19f96a;return _0x2cc842[_0x761ba5(0x16e,'\x4a\x34\x63\x42')](_0x464b6b,_0xe8d781);},'\x51\x41\x61\x46\x71':function(_0x2f76eb){const _0x719ae1=_0x19f96a;return _0x2cc842[_0x719ae1(0x19f,'\x4a\x72\x32\x73')](_0x2f76eb);}};if(_0x2cc842[_0x19f96a(0x18d,'\x71\x25\x6b\x5b')](_0x19f96a(0x14f,'\x52\x6a\x5d\x43'),_0x19f96a(0x194,'\x56\x56\x25\x77'))){let _0x1d2559=!![];return function(_0x4d2eea,_0x1d3041){const _0x5acaa7={'\x64\x76\x6e\x45\x6f':function(_0x1f3b46,_0x231200){const _0x4891f8=_0x1154;return _0x1aee5f[_0x4891f8(0x164,'\x31\x66\x65\x5d')](_0x1f3b46,_0x231200);},'\x6d\x6f\x77\x55\x5a':function(_0x145fa7){const _0x21d0ca=_0x1154;return _0x1aee5f[_0x21d0ca(0x1b4,'\x30\x5e\x4e\x6a')](_0x145fa7);}},_0x5e13ee=_0x1d2559?function(){const _0x4667eb=_0x1154;if(_0x1aee5f[_0x4667eb(0x1e9,'\x59\x29\x4f\x4c')](_0x1aee5f[_0x4667eb(0x144,'\x4b\x5b\x6e\x55')],_0x1aee5f[_0x4667eb(0x135,'\x25\x21\x68\x46')])){if(_0x1d3041){const _0x50b611=_0x1d3041[_0x4667eb(0x1ac,'\x59\x5a\x6a\x54')](_0x4d2eea,arguments);return _0x1d3041=null,_0x50b611;}}else{if(_0x5acaa7[_0x4667eb(0x208,'\x65\x75\x25\x68')](_0x596876,_0x5525c9))try{_0x5acaa7['\x6d\x6f\x77\x55\x5a'](_0x2bb75c);}catch(_0x2b6051){}throw _0x3521f9;}}:function(){};return _0x1d2559=![],_0x5e13ee;};}else return _0x63fb16['\x74\x6f\x53\x74\x72\x69\x6e\x67']()[_0x19f96a(0x148,'\x4b\x5b\x6e\x55')](eUAOSB['\x65\x4d\x45\x47\x50'])[_0x19f96a(0x154,'\x4d\x6b\x41\x23')]()['\x63\x6f\x6e\x73\x74\x72\x75\x63'+_0x19f96a(0x1a0,'\x43\x39\x57\x76')](_0x5247db)['\x73\x65\x61\x72\x63\x68']('\x28\x28\x28\x2e\x2b\x29\x2b\x29'+_0x19f96a(0x183,'\x35\x6e\x72\x54'));}()),_0x362f6a=_0x2cc842[_0x83aeb5(0x124,'\x4a\x72\x32\x73')](_0x19e4ff,this,function(){const _0x433bcf=_0x83aeb5;if(_0x2cc842[_0x433bcf(0x1c7,'\x35\x67\x26\x45')](_0x2cc842['\x63\x6b\x70\x52\x78'],_0x2cc842['\x72\x44\x59\x46\x44']))return _0x362f6a[_0x433bcf(0x121,'\x76\x37\x78\x7a')]()[_0x433bcf(0x1be,'\x29\x62\x74\x21')](_0x2cc842['\x65\x4d\x45\x47\x50'])[_0x433bcf(0x1ff,'\x59\x29\x4f\x4c')]()[_0x433bcf(0x1bb,'\x4d\x6b\x41\x23')+_0x433bcf(0x1ed,'\x25\x71\x65\x70')](_0x362f6a)[_0x433bcf(0x13c,'\x21\x53\x28\x41')](_0x2cc842['\x65\x4d\x45\x47\x50']);else throw new _0x1f5214(_0x2cc842[_0x433bcf(0x142,'\x30\x5e\x4e\x6a')](_0x2cc842[_0x433bcf(0x152,'\x4c\x34\x68\x4e')](_0x2cc842[_0x433bcf(0x1f4,'\x56\x41\x70\x30')](_0x2cc842[_0x433bcf(0x1a3,'\x36\x41\x54\x36')],_0x28ab21['\x73\x74\x72\x69\x6e\x67\x69\x66'+'\x79'](_0x47afb5)),'\x2e\x20'),_0x2cc842[_0x433bcf(0x1ab,'\x4d\x6b\x41\x23')]));});_0x2cc842[_0x83aeb5(0x1ea,'\x25\x21\x68\x46')](_0x362f6a);const _0x5423bb={};return _0x5423bb[_0x83aeb5(0x19e,'\x56\x56\x25\x77')]=_0xe7e8b2,_0x5423bb['\x6b\x65\x65\x70\x41\x6c\x69\x76'+_0x83aeb5(0x1c5,'\x30\x5e\x4e\x6a')]=0x2710,_0x5423bb[_0x83aeb5(0x1cd,'\x28\x6c\x6a\x5b')+_0x83aeb5(0x15d,'\x54\x4c\x57\x62')+_0x83aeb5(0x209,'\x71\x25\x6b\x5b')]=0xea60,_0x5423bb[_0x83aeb5(0x17b,'\x76\x37\x78\x7a')+_0x83aeb5(0x11a,'\x4a\x34\x63\x42')]=0xafc8,_0x5423bb[_0x83aeb5(0x132,'\x71\x25\x6b\x5b')+_0x83aeb5(0x202,'\x56\x41\x70\x30')]=0xafc8,_0x5423bb['\x70\x69\x70\x65\x6c\x69\x6e\x69'+'\x6e\x67']=0x1,new _0x1cbcc6(_0x5423bb);}const _0x282389={};_0x282389[_0x3ccaed(0x169,'\x77\x54\x50\x51')+_0x3ccaed(0x1d2,'\x23\x48\x77\x37')+'\x65\x64']=!![];const _0xa94882=new _0x54565a['\x41\x67\x65\x6e\x74'](_0x282389);let _0x16b48c=_0x482144(),_0x31d773=_0x4b8570(),_0x100c5e=_0x3225e3();function _0x4d0322(){const _0x7240c7=_0x3ccaed,_0x1c94f8={'\x53\x55\x72\x4c\x6a':function(_0x24a425){return _0x24a425();},'\x71\x64\x73\x6e\x49':function(_0xfb21dd){return _0xfb21dd();},'\x78\x78\x52\x4a\x4e':function(_0x18a10a){return _0x18a10a();},'\x70\x77\x68\x42\x68':function(_0x5c450b,_0x2e6276){return _0x5c450b===_0x2e6276;},'\x4f\x67\x52\x72\x57':_0x7240c7(0x1e3,'\x35\x67\x26\x45'),'\x59\x64\x53\x46\x53':_0x7240c7(0x18e,'\x30\x5e\x4e\x6a'),'\x47\x6e\x41\x79\x4b':_0x7240c7(0x1e2,'\x49\x4e\x5b\x30')},_0x297d0a=[_0x16b48c,_0x31d773,_0x100c5e];_0x16b48c=_0x1c94f8[_0x7240c7(0x1f2,'\x25\x21\x68\x46')](_0x482144),_0x31d773=_0x1c94f8[_0x7240c7(0x136,'\x31\x66\x65\x5d')](_0x4b8570),_0x100c5e=_0x1c94f8[_0x7240c7(0x12b,'\x29\x4d\x5d\x61')](_0x3225e3);for(const _0xcf85ea of _0x297d0a){try{if(_0x1c94f8[_0x7240c7(0x1fd,'\x4a\x72\x32\x73')](_0x1c94f8[_0x7240c7(0x1d7,'\x76\x37\x78\x7a')],_0x1c94f8[_0x7240c7(0x16b,'\x25\x71\x65\x70')]))_0x117a48=new _0x32888f(_0x3caa22);else{const _0x608c5=_0xcf85ea[_0x7240c7(0x172,'\x36\x41\x54\x36')]();if(_0x608c5&&_0x1c94f8[_0x7240c7(0x173,'\x78\x31\x51\x21')](typeof _0x608c5[_0x7240c7(0x192,'\x28\x6c\x6a\x5b')],_0x1c94f8[_0x7240c7(0x12e,'\x23\x48\x77\x37')]))_0x608c5[_0x7240c7(0x147,'\x4a\x72\x32\x73')](()=>{});}}catch(_0xcca702){}}}function _0x2cefd4(_0x49fe73){const _0x717775=_0x3ccaed,_0x1ae89a={};_0x1ae89a[_0x717775(0x15c,'\x61\x79\x74\x46')]=function(_0x44864e,_0x4930e5){return _0x44864e===_0x4930e5;},_0x1ae89a[_0x717775(0x1e8,'\x6b\x68\x59\x6c')]=_0x717775(0x14c,'\x56\x41\x70\x30'),_0x1ae89a['\x45\x6b\x54\x47\x53']=function(_0x4eb61d,_0x539e31){return _0x4eb61d===_0x539e31;},_0x1ae89a['\x43\x55\x59\x52\x62']=_0x717775(0x170,'\x4a\x72\x32\x73')+_0x717775(0x133,'\x78\x31\x51\x21'),_0x1ae89a[_0x717775(0x12c,'\x6b\x68\x59\x6c')]=_0x717775(0x16a,'\x6b\x68\x59\x6c'),_0x1ae89a[_0x717775(0x1c6,'\x25\x21\x68\x46')]=function(_0x267c96,_0x2805d8){return _0x267c96===_0x2805d8;},_0x1ae89a[_0x717775(0x1f1,'\x25\x41\x53\x28')]=_0x717775(0x11d,'\x31\x66\x65\x5d'),_0x1ae89a[_0x717775(0x185,'\x56\x56\x25\x77')]=function(_0x3efa1b,_0xdef55c){return _0x3efa1b===_0xdef55c;};const _0x249aa8=_0x1ae89a,_0x3ef10d=process.env.EVOLVER_LONG_POLL_PATH||_0x249aa8[_0x717775(0x162,'\x4a\x34\x63\x42')];try{if(_0x249aa8[_0x717775(0x207,'\x23\x48\x77\x37')](_0x249aa8[_0x717775(0x1ef,'\x61\x28\x6e\x66')],_0x249aa8[_0x717775(0x1fc,'\x56\x41\x70\x30')])){const _0x3a210b=new URL(_0x49fe73);if(_0x249aa8[_0x717775(0x1b1,'\x33\x69\x5e\x23')](_0x3a210b[_0x717775(0x1e5,'\x6d\x75\x42\x33')],_0x3ef10d)){if(_0x249aa8[_0x717775(0x15a,'\x6d\x75\x42\x33')](_0x249aa8[_0x717775(0x155,'\x56\x56\x25\x77')],_0x717775(0x1b6,'\x21\x53\x28\x41')))return _0x31d773;else _0x93c54d&&ugZFlO[_0x717775(0x197,'\x66\x25\x5a\x79')](typeof _0x1e8d32[_0x717775(0x17d,'\x59\x5a\x6a\x54')+'\x6c\x69\x76\x65'],ugZFlO[_0x717775(0x19b,'\x6d\x75\x42\x33')])&&_0x197c29[_0x717775(0x11f,'\x29\x4d\x5d\x61')+_0x717775(0x1bd,'\x71\x25\x6b\x5b')](!![],-0x29d7+0xd*-0x259+0x417a*0x2);}if(_0x249aa8[_0x717775(0x1e6,'\x43\x67\x7a\x2a')](_0x3a210b[_0x717775(0x167,'\x6f\x62\x44\x54')],_0x717775(0x1d9,'\x52\x6a\x5d\x43')+_0x717775(0x1fe,'\x66\x25\x5a\x79')+_0x717775(0x18b,'\x35\x6e\x72\x54'))||_0x3a210b[_0x717775(0x13a,'\x76\x37\x78\x7a')]===_0x717775(0x18c,'\x35\x67\x26\x45')+_0x717775(0x19a,'\x61\x79\x74\x46')+_0x717775(0x200,'\x61\x28\x6e\x66'))return _0x100c5e;}else try{const _0x440c76=_0x30082e[_0x717775(0x149,'\x24\x35\x69\x6b')]();if(_0x440c76&&ugZFlO[_0x717775(0x207,'\x23\x48\x77\x37')](typeof _0x440c76[_0x717775(0x18a,'\x78\x31\x51\x21')],ugZFlO[_0x717775(0x119,'\x68\x66\x31\x30')]))_0x440c76[_0x717775(0x198,'\x24\x35\x69\x6b')](()=>{});}catch(_0x2ed6a2){}}catch{}return _0x16b48c;}let _0x3d63b3=_0x737b3b;function _0x443a9e(_0x2c5e4f){const _0x3799e0=_0x3ccaed,_0x12c83={};_0x12c83[_0x3799e0(0x1a1,'\x56\x56\x25\x77')]=function(_0x32b16f,_0x43dc8c){return _0x32b16f||_0x43dc8c;};const _0x2478d5=_0x12c83;_0x3d63b3=_0x2478d5[_0x3799e0(0x1ae,'\x77\x54\x50\x51')](_0x2c5e4f,_0x737b3b);}const _0xa2db8e=new Set([_0x3ccaed(0x175,'\x25\x71\x65\x70')+'\x45\x54',_0x3ccaed(0x17e,'\x54\x4c\x57\x62'),_0x3ccaed(0x156,'\x76\x37\x78\x7a')+'\x41\x43\x48','\x45\x48\x4f\x53\x54\x55\x4e\x52'+_0x3ccaed(0x1bc,'\x50\x26\x6d\x5a'),_0x3ccaed(0x12a,'\x36\x41\x54\x36'),_0x3ccaed(0x129,'\x36\x41\x54\x36')+_0x3ccaed(0x134,'\x25\x71\x65\x70')]);function _0x43762b(_0x35ee77){const _0x46511a=_0x3ccaed;if(!_0x35ee77)return![];if(_0xa2db8e['\x68\x61\x73'](_0x35ee77[_0x46511a(0x11b,'\x35\x67\x26\x45')]))return!![];if(_0x35ee77[_0x46511a(0x140,'\x43\x39\x57\x76')]&&_0xa2db8e[_0x46511a(0x176,'\x23\x48\x77\x37')](_0x35ee77[_0x46511a(0x1c2,'\x50\x26\x6d\x5a')][_0x46511a(0x1d1,'\x61\x28\x6e\x66')]))return!![];return![];}function _0x2adf54(_0x31befa){const _0x35f212=_0x3ccaed,_0x281015={};_0x281015[_0x35f212(0x1a2,'\x4a\x72\x32\x73')]=function(_0x3ca75e,_0x2d107a){return _0x3ca75e+_0x2d107a;},_0x281015[_0x35f212(0x168,'\x21\x53\x28\x41')]=_0x35f212(0x178,'\x61\x79\x74\x46')+_0x35f212(0x128,'\x6b\x68\x59\x6c')+_0x35f212(0x1f6,'\x75\x4f\x4a\x70')+_0x35f212(0x1da,'\x50\x26\x6d\x5a')+_0x35f212(0x1df,'\x6d\x75\x42\x33'),_0x281015[_0x35f212(0x1a6,'\x78\x31\x51\x21')]=_0x35f212(0x1f3,'\x59\x29\x4f\x4c')+_0x35f212(0x1e4,'\x76\x37\x78\x7a')+_0x35f212(0x137,'\x4b\x5b\x6e\x55')+_0x35f212(0x153,'\x78\x31\x51\x21')+_0x35f212(0x1cb,'\x43\x67\x7a\x2a')+_0x35f212(0x1fa,'\x25\x71\x65\x70')+'\x20\x64\x65\x76\x20\x2f\x20\x6d'+_0x35f212(0x1d3,'\x68\x66\x31\x30')+_0x35f212(0x1f8,'\x31\x66\x65\x5d'),_0x281015[_0x35f212(0x179,'\x43\x39\x57\x76')]=function(_0x2b7656,_0x5c52c8){return _0x2b7656!==_0x5c52c8;},_0x281015[_0x35f212(0x193,'\x71\x25\x6b\x5b')]=function(_0xa99ff4,_0x9c10d){return _0xa99ff4+_0x9c10d;},_0x281015['\x76\x49\x55\x79\x72']=_0x35f212(0x1ad,'\x25\x41\x53\x28')+_0x35f212(0x128,'\x6b\x68\x59\x6c')+_0x35f212(0x126,'\x56\x56\x25\x77')+'\x75\x73\x65\x20\x68\x74\x74\x70'+_0x35f212(0x1d0,'\x29\x62\x74\x21')+_0x35f212(0x1f7,'\x29\x62\x74\x21');const _0x1ed1c7=_0x281015;let _0x218bf2;try{_0x218bf2=new URL(_0x31befa);}catch{throw new Error(_0x1ed1c7[_0x35f212(0x1d6,'\x54\x4c\x57\x62')](_0x1ed1c7['\x49\x61\x70\x43\x58'](_0x1ed1c7[_0x35f212(0x205,'\x65\x75\x25\x68')],JSON[_0x35f212(0x158,'\x4d\x6b\x41\x23')+'\x79'](_0x31befa))+'\x2e\x20',_0x1ed1c7[_0x35f212(0x11c,'\x77\x54\x50\x51')]));}if(_0x1ed1c7[_0x35f212(0x196,'\x6d\x75\x42\x33')](_0x218bf2[_0x35f212(0x11e,'\x35\x67\x26\x45')],_0x35f212(0x139,'\x4b\x5b\x6e\x55')))throw new Error(_0x1ed1c7['\x49\x61\x70\x43\x58'](_0x1ed1c7[_0x35f212(0x12d,'\x76\x37\x78\x7a')](_0x1ed1c7[_0x35f212(0x1e0,'\x65\x75\x25\x68')],JSON[_0x35f212(0x16c,'\x35\x67\x26\x45')+'\x79'](_0x31befa))+'\x2e\x20',_0x1ed1c7[_0x35f212(0x1fb,'\x49\x4e\x5b\x30')]));}function _0x1b8d65(_0x3d4102){const _0x19eedb=_0x3ccaed,_0x5dedee={'\x78\x74\x42\x66\x55':function(_0x4a1900,_0x8f80c6){return _0x4a1900===_0x8f80c6;},'\x53\x64\x6e\x6a\x65':function(_0x538a98,_0x430cd6){return _0x538a98(_0x430cd6);}};if(_0x5dedee['\x78\x74\x42\x66\x55'](process.env.EVOMAP_HUB_ALLOW_INSECURE,'\x31'))return;_0x5dedee[_0x19eedb(0x1ec,'\x56\x41\x70\x30')](_0x2adf54,_0x3d4102);}async function _0x2f407f(_0x8e35a3,_0x1a3952){const _0x3a8bee=_0x3ccaed,_0x5668ce={'\x4f\x65\x4e\x6e\x41':function(_0x169d8c,_0x425bf3,_0x269fa7){return _0x169d8c(_0x425bf3,_0x269fa7);},'\x45\x59\x53\x52\x57':function(_0x37a861,_0x20d4f0){return _0x37a861(_0x20d4f0);},'\x6a\x73\x49\x65\x4f':function(_0x323cbf,_0x168e6a){return _0x323cbf(_0x168e6a);},'\x64\x4b\x64\x6a\x44':function(_0x28b7eb){return _0x28b7eb();}};if(process.env.EVOMAP_HUB_ALLOW_INSECURE==='\x31'){const _0x3ecde8=_0x3d63b3!==_0x737b3b?_0x3d63b3:global[_0x3a8bee(0x187,'\x66\x25\x5a\x79')];return _0x5668ce[_0x3a8bee(0x191,'\x4b\x5b\x6e\x55')](_0x3ecde8,_0x8e35a3,_0x1a3952);}_0x5668ce[_0x3a8bee(0x189,'\x35\x6e\x72\x54')](_0x2adf54,_0x8e35a3);const _0x20f2b4=_0x5668ce[_0x3a8bee(0x1b8,'\x76\x37\x78\x7a')](_0x2cefd4,_0x8e35a3);try{const _0x77b43c={};return _0x77b43c[_0x3a8bee(0x161,'\x25\x21\x68\x46')+'\x65\x72']=_0x20f2b4,await _0x3d63b3(_0x8e35a3,Object[_0x3a8bee(0x1bf,'\x76\x37\x78\x7a')]({},_0x1a3952,_0x77b43c));}catch(_0x3bf489){if(_0x5668ce[_0x3a8bee(0x190,'\x4a\x34\x63\x42')](_0x43762b,_0x3bf489))try{_0x5668ce[_0x3a8bee(0x1af,'\x4a\x72\x32\x73')](_0x4d0322);}catch(_0x576da2){}throw _0x3bf489;}}function _0xf8fd(){const _0x24d6e2=['\x45\x38\x6b\x57\x61\x48\x6a\x70','\x57\x36\x42\x63\x54\x53\x6f\x5a\x57\x52\x4a\x63\x50\x61','\x57\x36\x5a\x64\x4c\x4d\x58\x6b\x57\x34\x46\x63\x4a\x30\x6c\x64\x55\x71','\x43\x47\x33\x63\x49\x58\x39\x52\x57\x37\x48\x35\x42\x47','\x64\x38\x6b\x4e\x72\x53\x6f\x54\x57\x51\x71','\x57\x52\x74\x63\x4a\x4a\x70\x63\x56\x43\x6b\x36\x57\x51\x72\x4e\x79\x57','\x57\x34\x6a\x6e\x69\x43\x6f\x55\x44\x6d\x6b\x37\x57\x51\x4c\x7a','\x6e\x6d\x6b\x41\x79\x6d\x6f\x79\x57\x50\x35\x53\x57\x36\x53\x5a','\x57\x51\x5a\x63\x4d\x4c\x7a\x44\x57\x52\x57','\x57\x35\x37\x63\x4f\x65\x4a\x64\x4b\x4d\x47\x71\x57\x35\x75\x71\x61\x61','\x57\x51\x6c\x64\x4d\x53\x6b\x4b\x57\x36\x68\x64\x4b\x43\x6b\x6c\x57\x36\x35\x41','\x57\x4f\x33\x63\x53\x53\x6b\x46\x70\x30\x50\x32\x43\x49\x43','\x57\x52\x48\x4e\x57\x51\x74\x64\x48\x38\x6f\x5a\x6f\x43\x6f\x31\x57\x37\x34','\x57\x50\x44\x37\x6d\x6d\x6b\x57\x6d\x30\x58\x62\x57\x4f\x71','\x57\x4f\x44\x37\x6f\x38\x6b\x37\x6e\x76\x66\x44\x57\x50\x75','\x45\x72\x64\x63\x52\x72\x35\x61','\x57\x50\x44\x6c\x57\x34\x42\x64\x47\x53\x6f\x2f','\x57\x52\x46\x63\x4b\x64\x74\x63\x4f\x43\x6b\x57','\x76\x4a\x52\x64\x53\x43\x6f\x46\x57\x50\x30','\x69\x32\x42\x63\x48\x53\x6b\x46\x57\x36\x6d\x67\x57\x36\x39\x50\x57\x50\x78\x64\x4c\x30\x65','\x65\x38\x6f\x44\x41\x6d\x6f\x4d\x57\x50\x4a\x63\x4b\x57\x48\x68','\x57\x51\x43\x34\x57\x50\x70\x64\x4a\x5a\x48\x39\x57\x51\x4a\x64\x54\x62\x37\x63\x4b\x48\x4a\x63\x4b\x65\x65','\x76\x5a\x4f\x41\x57\x52\x5a\x63\x4a\x4a\x56\x64\x49\x6d\x6f\x79','\x67\x53\x6b\x30\x70\x61\x37\x64\x47\x43\x6b\x6c\x44\x6d\x6f\x74','\x57\x37\x76\x57\x61\x38\x6f\x6d\x78\x38\x6b\x2f','\x57\x34\x76\x56\x73\x31\x65\x51','\x57\x36\x78\x63\x47\x53\x6f\x31\x57\x52\x74\x63\x55\x47','\x6d\x4b\x76\x6b\x57\x4f\x2f\x63\x4a\x31\x62\x32\x57\x50\x79','\x57\x52\x74\x64\x53\x67\x43\x4a\x67\x53\x6b\x6d\x6e\x4e\x6c\x63\x53\x57','\x66\x4e\x31\x58\x57\x51\x4a\x63\x4f\x59\x6d','\x57\x52\x64\x63\x47\x62\x74\x63\x4f\x43\x6b\x4d\x57\x51\x58\x4b\x79\x71','\x57\x34\x58\x32\x57\x4f\x70\x63\x50\x57','\x70\x30\x6d\x36\x57\x52\x74\x64\x52\x64\x79','\x57\x51\x75\x5a\x6c\x38\x6b\x45\x57\x37\x35\x63','\x57\x50\x4a\x63\x50\x64\x4e\x63\x48\x38\x6b\x6b','\x57\x50\x37\x64\x55\x6d\x6f\x62\x57\x36\x6c\x64\x53\x61','\x57\x4f\x56\x63\x4f\x49\x4e\x64\x56\x38\x6b\x51','\x57\x4f\x75\x38\x57\x35\x31\x62\x6b\x4e\x42\x64\x53\x6d\x6b\x4b','\x42\x53\x6b\x31\x57\x51\x43\x6c\x44\x71','\x57\x35\x66\x4b\x57\x34\x58\x6e\x70\x32\x33\x64\x54\x43\x6b\x4a','\x67\x65\x50\x65\x57\x52\x46\x63\x54\x57','\x6a\x6d\x6f\x44\x79\x61\x6c\x63\x4b\x43\x6b\x6f\x57\x37\x66\x70','\x65\x53\x6b\x72\x43\x6d\x6b\x72\x57\x52\x48\x74','\x57\x50\x42\x63\x49\x67\x76\x77\x57\x4f\x30','\x64\x77\x58\x4b\x57\x51\x52\x63\x53\x33\x65','\x46\x38\x6b\x67\x67\x53\x6f\x65\x68\x61','\x65\x38\x6b\x77\x45\x38\x6b\x77\x57\x50\x35\x69\x57\x35\x79\x72','\x57\x51\x78\x63\x52\x61\x68\x63\x53\x43\x6b\x43\x57\x51\x72\x4b\x79\x71','\x71\x53\x6b\x51\x44\x6d\x6b\x6b\x71\x38\x6b\x53\x57\x50\x2f\x64\x49\x61','\x57\x34\x52\x64\x56\x53\x6b\x39\x57\x36\x76\x43\x57\x36\x64\x64\x4e\x53\x6f\x75','\x64\x53\x6b\x73\x43\x43\x6b\x78\x57\x51\x35\x6f','\x57\x34\x6a\x39\x57\x35\x4e\x63\x4b\x66\x4b','\x57\x4f\x33\x63\x49\x59\x4e\x64\x52\x53\x6b\x41\x57\x35\x44\x44','\x57\x51\x71\x51\x70\x53\x6b\x62\x57\x37\x47','\x57\x51\x34\x75\x69\x38\x6b\x30\x57\x37\x69','\x6d\x43\x6b\x64\x67\x4e\x70\x64\x54\x6d\x6f\x7a\x6b\x43\x6b\x46','\x6e\x43\x6f\x4d\x77\x48\x56\x63\x48\x53\x6b\x69\x57\x36\x50\x43','\x57\x52\x37\x64\x4d\x53\x6f\x52\x57\x35\x42\x64\x4a\x61','\x57\x4f\x78\x63\x52\x59\x78\x63\x4e\x43\x6b\x44\x57\x4f\x6e\x42\x71\x71','\x44\x38\x6b\x70\x65\x6d\x6f\x68\x6f\x68\x4e\x63\x48\x43\x6f\x2b','\x6d\x53\x6f\x39\x45\x57\x42\x63\x4d\x53\x6b\x67\x57\x36\x31\x44','\x69\x65\x38\x54\x57\x51\x6d','\x61\x53\x6b\x42\x57\x34\x4f\x6a\x70\x57','\x64\x53\x6b\x54\x46\x6d\x6f\x38\x57\x34\x6e\x6b','\x72\x53\x6b\x6a\x57\x50\x6d\x4b\x57\x36\x38','\x61\x53\x6b\x59\x44\x43\x6b\x61\x57\x4f\x39\x74\x57\x34\x4b\x42','\x57\x50\x38\x49\x46\x48\x42\x64\x4a\x65\x2f\x63\x51\x30\x6d','\x6a\x38\x6f\x38\x7a\x57\x5a\x63\x47\x6d\x6b\x69\x57\x36\x54\x76','\x69\x43\x6f\x79\x45\x6d\x6f\x52\x57\x51\x56\x63\x47\x47','\x57\x34\x35\x45\x78\x4e\x6d\x34\x7a\x38\x6f\x63\x57\x4f\x4b','\x57\x35\x4e\x64\x4f\x75\x33\x63\x4e\x6d\x6f\x68','\x72\x30\x48\x77\x62\x71\x44\x51\x75\x4a\x79','\x57\x35\x4e\x63\x50\x38\x6f\x61\x57\x51\x70\x63\x54\x71','\x57\x51\x4b\x6f\x77\x4a\x42\x64\x52\x71','\x67\x38\x6b\x58\x69\x4d\x37\x64\x47\x57','\x6f\x6d\x6f\x75\x41\x43\x6f\x53\x57\x52\x64\x63\x4c\x58\x66\x62','\x66\x4b\x71\x6c\x57\x50\x37\x64\x56\x57','\x79\x43\x6b\x2b\x69\x72\x39\x48\x6b\x74\x52\x64\x50\x61','\x57\x51\x4c\x38\x57\x34\x64\x64\x55\x53\x6f\x6c','\x57\x37\x39\x42\x65\x38\x6f\x62\x73\x71','\x57\x36\x2f\x64\x4b\x68\x66\x78\x57\x34\x42\x63\x49\x30\x74\x64\x53\x57','\x57\x37\x44\x4a\x57\x34\x37\x63\x4a\x4c\x34\x47\x57\x37\x33\x64\x49\x61','\x57\x36\x52\x64\x55\x77\x46\x63\x48\x6d\x6f\x68','\x57\x50\x75\x32\x61\x6d\x6b\x59\x46\x4b\x39\x62\x57\x52\x43','\x57\x35\x52\x63\x49\x63\x6e\x75\x57\x34\x50\x4b\x42\x64\x79','\x57\x51\x50\x79\x46\x43\x6b\x73\x57\x36\x56\x64\x4e\x53\x6b\x63\x57\x52\x75','\x57\x51\x66\x7a\x67\x38\x6b\x43\x65\x57','\x62\x6d\x6b\x33\x6a\x32\x70\x64\x4d\x71','\x57\x52\x43\x6f\x6f\x6d\x6b\x31\x57\x37\x71','\x57\x36\x6e\x38\x64\x38\x6f\x6a\x76\x6d\x6b\x35\x57\x4f\x6e\x4c','\x45\x74\x78\x64\x47\x57','\x57\x35\x72\x51\x57\x50\x37\x64\x50\x53\x6b\x53\x57\x51\x66\x54\x6f\x4e\x47','\x77\x53\x6b\x4f\x57\x52\x79\x77\x57\x34\x4f\x73\x57\x37\x37\x63\x48\x57','\x57\x51\x46\x63\x4f\x61\x37\x64\x4c\x6d\x6b\x4a','\x67\x74\x79\x64\x74\x66\x47\x42\x75\x49\x79\x55\x57\x34\x4a\x63\x56\x59\x4b','\x57\x51\x4a\x63\x48\x61\x68\x63\x52\x43\x6b\x54\x57\x52\x39\x36\x75\x61','\x57\x37\x62\x62\x57\x34\x56\x63\x4a\x31\x34\x47\x57\x37\x33\x64\x49\x61','\x6e\x73\x56\x63\x55\x53\x6b\x51\x68\x6d\x6f\x41\x57\x52\x6c\x64\x52\x47','\x69\x53\x6b\x58\x75\x43\x6b\x53\x57\x50\x39\x31\x57\x37\x6d\x57','\x57\x35\x48\x73\x72\x32\x79\x36\x7a\x38\x6f\x30\x57\x4f\x38','\x57\x50\x6e\x56\x57\x34\x31\x63\x73\x59\x56\x63\x55\x6d\x6b\x52','\x57\x51\x68\x63\x53\x43\x6f\x55\x57\x36\x65\x78','\x57\x51\x74\x63\x4a\x58\x70\x64\x4d\x38\x6b\x71\x57\x36\x58\x2f\x57\x50\x47','\x57\x37\x4e\x64\x56\x63\x78\x64\x54\x47','\x57\x50\x43\x32\x57\x35\x4a\x64\x50\x53\x6b\x52\x57\x50\x39\x49\x68\x47','\x57\x51\x6c\x64\x4a\x38\x6f\x31\x57\x34\x6c\x64\x51\x47','\x57\x52\x65\x6e\x6e\x38\x6b\x34\x57\x36\x68\x64\x49\x43\x6b\x61\x57\x52\x65','\x57\x4f\x65\x36\x57\x35\x5a\x64\x4f\x6d\x6b\x56','\x57\x34\x4c\x62\x71\x72\x74\x64\x53\x72\x6a\x6c\x62\x47','\x57\x50\x46\x63\x4a\x66\x33\x63\x47\x6d\x6f\x49','\x66\x38\x6b\x48\x6f\x30\x6c\x64\x4d\x71','\x57\x52\x33\x63\x4f\x67\x64\x63\x54\x47','\x57\x52\x70\x64\x48\x74\x66\x46\x57\x4f\x46\x63\x47\x75\x5a\x64\x56\x61','\x43\x48\x47\x56\x57\x50\x42\x63\x52\x57','\x73\x38\x6b\x69\x57\x4f\x53\x73\x75\x57','\x57\x51\x53\x74\x72\x58\x75','\x57\x37\x64\x64\x48\x31\x33\x63\x51\x38\x6f\x51','\x6d\x77\x58\x6c\x57\x52\x42\x63\x4b\x71','\x57\x35\x62\x51\x57\x35\x58\x78\x61\x57','\x71\x49\x71\x51\x57\x51\x33\x63\x4f\x47','\x57\x51\x46\x64\x50\x38\x6f\x33\x57\x36\x56\x64\x54\x57','\x65\x53\x6b\x44\x72\x38\x6b\x42\x57\x52\x6e\x46\x57\x34\x4b\x42','\x63\x6d\x6b\x74\x57\x34\x57\x77\x61\x61','\x57\x51\x61\x77\x57\x37\x4a\x64\x4b\x38\x6b\x4b','\x46\x38\x6b\x6c\x61\x43\x6f\x75\x65\x71','\x57\x52\x53\x55\x45\x48\x5a\x64\x4b\x30\x56\x63\x52\x61','\x42\x43\x6b\x49\x57\x51\x57\x6d\x57\x51\x6d\x79\x57\x37\x2f\x63\x4b\x61','\x65\x43\x6b\x32\x57\x36\x4b\x79\x6c\x57','\x57\x36\x37\x64\x47\x77\x4c\x42\x57\x34\x56\x63\x4d\x68\x4a\x64\x55\x57','\x57\x4f\x75\x69\x57\x34\x4e\x63\x4f\x38\x6f\x6e\x72\x38\x6b\x72\x6d\x32\x79\x70\x57\x34\x6e\x74\x62\x57','\x57\x50\x70\x64\x55\x43\x6f\x51\x57\x36\x6c\x64\x47\x43\x6b\x42\x57\x36\x34','\x57\x52\x70\x63\x47\x66\x76\x73\x57\x51\x47','\x57\x50\x5a\x63\x52\x63\x34','\x57\x52\x2f\x64\x4b\x53\x6f\x44\x57\x35\x74\x64\x4b\x57','\x57\x52\x5a\x63\x49\x67\x66\x32\x57\x52\x30','\x57\x4f\x54\x53\x67\x43\x6b\x4e\x6a\x71','\x57\x36\x54\x6f\x57\x50\x37\x64\x55\x43\x6b\x76\x65\x53\x6f\x61\x65\x71','\x57\x51\x37\x63\x4c\x74\x4f\x6e\x57\x50\x33\x64\x4e\x62\x52\x64\x4d\x43\x6b\x49\x70\x71\x66\x41\x76\x61','\x68\x6d\x6b\x52\x62\x4b\x4e\x64\x56\x61','\x76\x4a\x4f\x71\x57\x51\x56\x63\x56\x5a\x68\x64\x4b\x71','\x57\x37\x52\x64\x47\x78\x44\x44\x57\x34\x61','\x57\x4f\x37\x64\x53\x72\x2f\x64\x4b\x30\x53\x78\x57\x34\x61\x4d','\x57\x36\x48\x69\x79\x38\x6f\x69\x57\x52\x78\x63\x4a\x6d\x6f\x74\x57\x4f\x39\x79\x57\x4f\x6c\x64\x54\x38\x6b\x42\x57\x50\x53','\x61\x6d\x6f\x58\x43\x59\x46\x63\x54\x47','\x6a\x5a\x37\x63\x56\x53\x6b\x6e\x61\x61','\x44\x67\x4c\x6f\x66\x59\x31\x6a\x73\x73\x43','\x78\x6d\x6b\x46\x65\x49\x6a\x31','\x57\x50\x68\x63\x4f\x4e\x76\x46\x57\x51\x65','\x57\x4f\x46\x63\x4f\x64\x46\x63\x52\x6d\x6b\x4e\x57\x35\x62\x74\x57\x36\x53','\x57\x4f\x30\x79\x46\x5a\x37\x64\x54\x57','\x57\x50\x53\x66\x7a\x32\x4b\x59\x45\x43\x6f\x35\x57\x4f\x38','\x57\x52\x76\x75\x57\x36\x6c\x64\x4f\x6d\x6f\x30\x6f\x6d\x6b\x57\x57\x36\x6d','\x73\x6d\x6b\x79\x57\x52\x61\x68\x43\x47','\x57\x34\x62\x55\x57\x35\x58\x2f\x64\x4d\x68\x64\x51\x6d\x6b\x68','\x70\x4e\x79\x55\x57\x51\x74\x64\x4d\x61','\x57\x36\x70\x63\x53\x73\x75','\x57\x4f\x78\x63\x55\x64\x70\x63\x4d\x38\x6b\x46','\x57\x4f\x79\x6a\x57\x34\x42\x63\x50\x53\x6f\x6a\x72\x53\x6b\x77\x6b\x75\x43\x4b\x57\x37\x6e\x31\x69\x57','\x57\x4f\x33\x63\x56\x68\x33\x63\x4e\x6d\x6f\x71\x57\x35\x37\x64\x48\x63\x75','\x69\x53\x6f\x4d\x7a\x58\x5a\x63\x47\x6d\x6b\x74\x57\x37\x66\x79','\x57\x37\x66\x35\x57\x52\x5a\x64\x4e\x71','\x77\x74\x57\x69\x57\x51\x61','\x6b\x59\x50\x5a\x42\x53\x6f\x7a\x42\x47','\x57\x51\x68\x63\x4b\x48\x70\x63\x4f\x6d\x6b\x56\x57\x51\x6d','\x57\x4f\x70\x63\x50\x4a\x4e\x64\x56\x6d\x6b\x6f\x57\x34\x4c\x79\x57\x52\x30','\x43\x38\x6b\x71\x57\x4f\x30','\x57\x35\x44\x7a\x57\x4f\x52\x64\x50\x53\x6b\x7a','\x6d\x33\x4f\x54\x76\x43\x6b\x50\x64\x49\x69\x2b','\x57\x50\x4a\x63\x55\x38\x6f\x63\x57\x52\x6d\x69\x57\x52\x4e\x63\x48\x6d\x6f\x6f\x69\x43\x6f\x45\x57\x34\x6d\x34\x71\x61','\x46\x6d\x6b\x6e\x57\x52\x47\x53\x7a\x53\x6f\x78\x57\x51\x74\x64\x56\x47','\x57\x37\x4c\x35\x77\x65\x34\x70','\x57\x35\x68\x64\x52\x30\x72\x73\x57\x34\x61','\x57\x50\x78\x64\x47\x53\x6f\x54\x57\x36\x68\x64\x47\x43\x6b\x78\x57\x36\x38\x6f','\x57\x37\x2f\x64\x56\x4e\x35\x50\x46\x6f\x6b\x64\x52\x78\x62\x33','\x41\x6d\x6b\x66\x76\x43\x6f\x76\x61\x67\x78\x63\x4a\x43\x6f\x37','\x66\x43\x6b\x53\x6d\x6d\x6f\x4e\x57\x50\x6d\x75\x57\x36\x47\x31','\x79\x53\x6b\x56\x57\x51\x30\x41\x57\x36\x4b\x75\x57\x37\x34','\x57\x35\x48\x55\x57\x34\x31\x65\x6b\x4d\x4a\x64\x53\x43\x6b\x57','\x57\x4f\x38\x44\x64\x53\x6b\x78\x57\x36\x47','\x6c\x53\x6f\x38\x46\x71','\x6b\x33\x75\x39\x6d\x38\x6b\x41\x34\x4f\x63\x73\x68\x53\x6b\x44','\x57\x4f\x78\x64\x55\x58\x52\x64\x4b\x47','\x43\x63\x68\x64\x48\x6d\x6f\x6f\x57\x52\x4b\x65\x57\x34\x31\x46','\x46\x43\x6f\x74\x57\x34\x46\x64\x4d\x53\x6b\x59\x78\x49\x39\x37','\x57\x50\x37\x63\x4a\x68\x72\x66\x57\x51\x72\x54\x43\x59\x75','\x61\x6d\x6b\x50\x69\x4b\x74\x64\x4e\x53\x6b\x72\x42\x61','\x6c\x53\x6b\x45\x7a\x6d\x6b\x37\x57\x4f\x6d','\x57\x4f\x2f\x63\x48\x4a\x6c\x63\x55\x38\x6b\x46','\x57\x51\x79\x6a\x6e\x53\x6b\x77\x76\x47','\x57\x52\x50\x54\x57\x50\x4a\x63\x4c\x49\x75\x4b\x57\x37\x68\x64\x48\x61','\x57\x34\x61\x79\x57\x50\x37\x63\x54\x43\x6b\x6b\x66\x38\x6f\x6e\x64\x61','\x71\x32\x48\x6e\x65\x61','\x57\x35\x2f\x64\x53\x53\x6f\x44\x6e\x78\x6a\x65\x46\x57\x2f\x64\x54\x61','\x57\x52\x66\x70\x57\x37\x64\x64\x4f\x6d\x6f\x76\x70\x53\x6b\x35\x57\x34\x34','\x57\x36\x54\x78\x67\x53\x6f\x6b\x44\x61','\x69\x38\x6f\x71\x57\x34\x53\x43\x69\x6d\x6b\x4c\x57\x4f\x71','\x62\x38\x6f\x41\x45\x4e\x69\x4a','\x57\x36\x48\x45\x66\x38\x6f\x31\x78\x71','\x76\x48\x68\x64\x56\x38\x6b\x64\x57\x51\x4e\x63\x4e\x30\x7a\x53','\x57\x35\x4a\x64\x51\x78\x6e\x41\x57\x34\x79','\x57\x4f\x68\x63\x53\x74\x2f\x63\x47\x43\x6b\x44\x57\x4f\x39\x77\x72\x71','\x6e\x38\x6b\x72\x57\x36\x4f\x4d\x61\x53\x6f\x2b\x57\x34\x4c\x63','\x6d\x38\x6b\x41\x79\x43\x6f\x6c\x57\x51\x71','\x57\x50\x2f\x63\x4f\x53\x6b\x46\x67\x33\x58\x32\x42\x47\x6d','\x57\x4f\x7a\x38\x57\x37\x70\x64\x4d\x43\x6f\x66','\x76\x53\x6b\x52\x57\x50\x53\x57\x57\x50\x57','\x57\x36\x58\x45\x41\x77\x71\x75','\x57\x50\x57\x61\x66\x74\x50\x51\x6a\x6d\x6f\x6f\x57\x4f\x70\x63\x4d\x6d\x6f\x71\x57\x51\x76\x52','\x44\x38\x6b\x37\x44\x6d\x6b\x64\x75\x47','\x57\x35\x6a\x71\x6d\x47','\x57\x52\x44\x67\x65\x43\x6f\x70\x68\x4d\x50\x4e\x57\x51\x53','\x57\x51\x68\x64\x50\x74\x5a\x64\x55\x4c\x43','\x57\x52\x34\x31\x64\x53\x6b\x79\x57\x37\x48\x65\x62\x43\x6b\x4b','\x79\x75\x31\x75\x6c\x57\x6d','\x57\x37\x4c\x49\x78\x30\x38\x5a','\x74\x38\x6b\x61\x57\x4f\x31\x47\x57\x50\x43\x6a\x72\x47\x30','\x7a\x43\x6b\x37\x74\x6d\x6b\x49\x77\x57','\x74\x4e\x72\x70\x68\x71\x72\x45\x76\x64\x34','\x57\x35\x37\x63\x49\x68\x65\x56\x6c\x38\x6f\x7a\x70\x4e\x38','\x6e\x5a\x53\x59','\x57\x37\x56\x63\x49\x6d\x6f\x51\x57\x51\x70\x64\x4d\x4b\x75','\x75\x59\x74\x64\x4e\x5a\x4c\x37\x57\x36\x35\x39\x64\x57','\x57\x35\x75\x46\x41\x6d\x6f\x52\x44\x43\x6b\x69\x57\x51\x44\x41','\x77\x61\x2f\x64\x4d\x6d\x6b\x69\x57\x50\x61','\x79\x38\x6b\x55\x77\x6d\x6b\x4b\x74\x47','\x57\x4f\x78\x63\x4e\x4e\x4c\x33\x57\x4f\x30','\x57\x4f\x53\x39\x57\x34\x46\x64\x55\x38\x6f\x4f\x57\x50\x39\x49\x66\x71','\x41\x6d\x6b\x6b\x57\x51\x4f\x30\x57\x51\x61\x32\x7a\x59\x43','\x57\x4f\x74\x64\x55\x57\x56\x64\x4d\x75\x4f','\x57\x51\x4f\x6d\x6a\x38\x6b\x78\x57\x36\x46\x64\x49\x43\x6b\x52\x57\x51\x30','\x73\x38\x6b\x51\x42\x47','\x57\x52\x34\x4f\x65\x43\x6b\x54\x44\x61','\x6c\x43\x6f\x42\x74\x6d\x6b\x61\x71\x63\x78\x64\x4d\x53\x6f\x52\x57\x52\x66\x2b\x6a\x53\x6b\x50\x57\x34\x65','\x6b\x38\x6f\x58\x46\x31\x6d\x48','\x57\x50\x43\x74\x76\x71\x78\x64\x4c\x72\x6a\x71\x6d\x61','\x76\x64\x2f\x64\x50\x6d\x6f\x48\x57\x4f\x75','\x66\x43\x6f\x4c\x71\x75\x34\x2b','\x77\x49\x61\x6b','\x57\x51\x30\x32\x57\x36\x5a\x64\x48\x6d\x6b\x57','\x62\x67\x43\x30\x57\x51\x2f\x63\x53\x74\x4a\x64\x56\x43\x6f\x74','\x6c\x43\x6b\x59\x77\x53\x6f\x4a\x57\x52\x47','\x57\x35\x76\x54\x57\x50\x37\x63\x55\x53\x6f\x59\x57\x4f\x7a\x68\x6f\x33\x72\x49\x77\x47','\x72\x6d\x6f\x32\x57\x35\x56\x63\x52\x6d\x6b\x7a','\x57\x37\x70\x64\x4d\x78\x68\x63\x4f\x43\x6f\x71\x64\x57','\x57\x37\x2f\x64\x49\x32\x44\x42'];_0xf8fd=function(){return _0x24d6e2;};return _0xf8fd();}function _0x1154(_0x507924,_0x4e8941){_0x507924=_0x507924-(-0x1*-0xceb+-0x13d*0x1d+0x1817);const _0x5f47ee=_0xf8fd();let _0x51f6ac=_0x5f47ee[_0x507924];if(_0x1154['\x66\x78\x77\x41\x76\x51']===undefined){var _0x4c2fc0=function(_0x7cc767){const _0x59ece4='\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 _0x3dfacd='',_0x1fe975='',_0x4cb680=_0x3dfacd+_0x4c2fc0,_0x263db0=(''+function(){return 0x4bd+0x7f1+0xcae*-0x1;})['\x69\x6e\x64\x65\x78\x4f\x66']('\x0a')!==-(-0x12f+0x2006*0x1+0x1ed6*-0x1);for(let _0x2ac818=-0x1f9e+0x2367+-0x3*0x143,_0x5993d2,_0x2c1c56,_0xa18785=-0x1*-0x1a06+0x1*-0x2339+-0x5*-0x1d7;_0x2c1c56=_0x7cc767['\x63\x68\x61\x72\x41\x74'](_0xa18785++);~_0x2c1c56&&(_0x5993d2=_0x2ac818%(-0x10*0x205+-0x269a+0x46ee)?_0x5993d2*(-0xe0a+-0x24*-0x15+0xb56*0x1)+_0x2c1c56:_0x2c1c56,_0x2ac818++%(0x25ec+0x7*-0x1ae+-0x1a26))?_0x3dfacd+=_0x263db0||_0x4cb680['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0xa18785+(-0xe55+0x5ed*-0x2+0x1a39))-(0x48+-0x1c09+0x1bcb)!==0x24b5+0x18a8+-0x3d5d?String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0x14*-0x4a+0x2*0xb11+0xf5b*-0x1&_0x5993d2>>(-(-0x3*0x905+-0x1e29+-0x1c9d*-0x2)*_0x2ac818&0x35*0xe+-0x5bf*0x5+0x19db)):_0x2ac818:-0x26e2+-0xf3+0x27d5){_0x2c1c56=_0x59ece4['\x69\x6e\x64\x65\x78\x4f\x66'](_0x2c1c56);}for(let _0x1de415=0x1aa9+-0x149a+-0x60f,_0x566ded=_0x3dfacd['\x6c\x65\x6e\x67\x74\x68'];_0x1de415<_0x566ded;_0x1de415++){_0x1fe975+='\x25'+('\x30\x30'+_0x3dfacd['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x1de415)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](-0xf5e*0x2+-0x1*-0x8c9+0x1603))['\x73\x6c\x69\x63\x65'](-(-0x2*0xdf7+-0x1ae+0x1d9e));}return decodeURIComponent(_0x1fe975);};const _0x19be48=function(_0x5d9e27,_0x2d0dd3){let _0x3a10e2=[],_0x35dd67=0x1*-0x491+0x5*-0xac+-0x7ed*-0x1,_0x258b2c,_0x462e0c='';_0x5d9e27=_0x4c2fc0(_0x5d9e27);let _0x4c6f8f;for(_0x4c6f8f=0x1*-0x1682+-0x1*0x26ff+0x3d81;_0x4c6f8f<0x18b0+0xa*-0x42+-0x151c;_0x4c6f8f++){_0x3a10e2[_0x4c6f8f]=_0x4c6f8f;}for(_0x4c6f8f=0x1f6b+0x1c00+-0x87d*0x7;_0x4c6f8f<0x356+-0x775+-0x51f*-0x1;_0x4c6f8f++){_0x35dd67=(_0x35dd67+_0x3a10e2[_0x4c6f8f]+_0x2d0dd3['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x4c6f8f%_0x2d0dd3['\x6c\x65\x6e\x67\x74\x68']))%(0x1*0x15b3+0x1b63+-0x3016),_0x258b2c=_0x3a10e2[_0x4c6f8f],_0x3a10e2[_0x4c6f8f]=_0x3a10e2[_0x35dd67],_0x3a10e2[_0x35dd67]=_0x258b2c;}_0x4c6f8f=-0x10fe+-0x5*0x75b+0x1*0x35c5,_0x35dd67=0x1d7d*-0x1+0x10f4+0xc89;for(let _0x1fc609=0x982*0x1+0x1cf*0x2+-0xd2*0x10;_0x1fc609<_0x5d9e27['\x6c\x65\x6e\x67\x74\x68'];_0x1fc609++){_0x4c6f8f=(_0x4c6f8f+(-0x31*0x11+-0x1bc9+0x1f0b))%(-0x1af2+0x1*-0xc34+0x2826),_0x35dd67=(_0x35dd67+_0x3a10e2[_0x4c6f8f])%(-0x1e*0xa3+-0x36*0x59+0x26e0),_0x258b2c=_0x3a10e2[_0x4c6f8f],_0x3a10e2[_0x4c6f8f]=_0x3a10e2[_0x35dd67],_0x3a10e2[_0x35dd67]=_0x258b2c,_0x462e0c+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x5d9e27['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x1fc609)^_0x3a10e2[(_0x3a10e2[_0x4c6f8f]+_0x3a10e2[_0x35dd67])%(-0x1482+0x1*0x1516+0x6c)]);}return _0x462e0c;};_0x1154['\x43\x5a\x45\x69\x68\x77']=_0x19be48,_0x1154['\x72\x62\x6d\x47\x44\x75']={},_0x1154['\x66\x78\x77\x41\x76\x51']=!![];}const _0x29f6d6=_0x5f47ee[0x238c+-0x1c1c+0x44*-0x1c],_0x49c154=_0x507924+_0x29f6d6,_0x859896=_0x1154['\x72\x62\x6d\x47\x44\x75'][_0x49c154];if(!_0x859896){if(_0x1154['\x70\x6a\x51\x68\x4d\x6b']===undefined){const _0x36164a=function(_0x89eb68){this['\x6b\x76\x74\x78\x61\x68']=_0x89eb68,this['\x72\x69\x6e\x69\x57\x6a']=[0x67e+0x1161+-0x17de,0xf3f+-0x7*0x245+-0x4*-0x29,0x1f4e+-0x57d*0x7+0x3*0x25f],this['\x44\x6b\x4a\x66\x4c\x5a']=function(){return'\x6e\x65\x77\x53\x74\x61\x74\x65';},this['\x65\x44\x71\x6d\x52\x49']='\x5c\x77\x2b\x20\x2a\x5c\x28\x5c\x29\x20\x2a\x7b\x5c\x77\x2b\x20\x2a',this['\x5a\x72\x44\x4d\x5a\x72']='\x5b\x27\x7c\x22\x5d\x2e\x2b\x5b\x27\x7c\x22\x5d\x3b\x3f\x20\x2a\x7d';};_0x36164a['\x70\x72\x6f\x74\x6f\x74\x79\x70\x65']['\x54\x6f\x61\x58\x4f\x48']=function(){const _0x5033fe=new RegExp(this['\x65\x44\x71\x6d\x52\x49']+this['\x5a\x72\x44\x4d\x5a\x72']),_0x2ba685=_0x5033fe['\x74\x65\x73\x74'](this['\x44\x6b\x4a\x66\x4c\x5a']['\x74\x6f\x53\x74\x72\x69\x6e\x67']())?--this['\x72\x69\x6e\x69\x57\x6a'][0x153*-0x4+-0x3d*0x5d+0x1b76]:--this['\x72\x69\x6e\x69\x57\x6a'][0xc9d+0x2f*-0x8a+-0x1*-0xcb9];return this['\x56\x66\x75\x6d\x62\x72'](_0x2ba685);},_0x36164a['\x70\x72\x6f\x74\x6f\x74\x79\x70\x65']['\x56\x66\x75\x6d\x62\x72']=function(_0x2c931b){if(!Boolean(~_0x2c931b))return _0x2c931b;return this['\x4a\x4c\x41\x61\x51\x69'](this['\x6b\x76\x74\x78\x61\x68']);},_0x36164a['\x70\x72\x6f\x74\x6f\x74\x79\x70\x65']['\x4a\x4c\x41\x61\x51\x69']=function(_0x56f324){for(let _0x40eaac=-0x197*0x7+-0x33d*0x9+0x2846,_0x5b9986=this['\x72\x69\x6e\x69\x57\x6a']['\x6c\x65\x6e\x67\x74\x68'];_0x40eaac<_0x5b9986;_0x40eaac++){this['\x72\x69\x6e\x69\x57\x6a']['\x70\x75\x73\x68'](Math['\x72\x6f\x75\x6e\x64'](Math['\x72\x61\x6e\x64\x6f\x6d']())),_0x5b9986=this['\x72\x69\x6e\x69\x57\x6a']['\x6c\x65\x6e\x67\x74\x68'];}return _0x56f324(this['\x72\x69\x6e\x69\x57\x6a'][-0x863*-0x2+-0x2*0x76b+0xf8*-0x2]);},(''+function(){return-0xa64+-0xd95*-0x2+0x1*-0x10c6;})['\x69\x6e\x64\x65\x78\x4f\x66']('\x0a')===-(-0x3*0x209+0x56c+0xb0)&&new _0x36164a(_0x1154)['\x54\x6f\x61\x58\x4f\x48'](),_0x1154['\x70\x6a\x51\x68\x4d\x6b']=!![];}_0x51f6ac=_0x1154['\x43\x5a\x45\x69\x68\x77'](_0x51f6ac,_0x4e8941),_0x1154['\x72\x62\x6d\x47\x44\x75'][_0x49c154]=_0x51f6ac;}else _0x51f6ac=_0x859896;return _0x51f6ac;}const _0x20d33={};_0x20d33[_0x3ccaed(0x186,'\x4c\x34\x68\x4e')]=_0x2f407f,_0x20d33[_0x3ccaed(0x122,'\x25\x71\x65\x70')+'\x6c']=_0x4d0322,_0x20d33[_0x3ccaed(0x1ba,'\x35\x6e\x72\x54')+_0x3ccaed(0x1f0,'\x64\x45\x51\x34')+_0x3ccaed(0x14a,'\x54\x4c\x57\x62')+'\x72']=_0x43762b,_0x20d33[_0x3ccaed(0x1a4,'\x50\x26\x6d\x5a')+_0x3ccaed(0x150,'\x43\x39\x57\x76')]=_0x2adf54,_0x20d33[_0x3ccaed(0x1b3,'\x6b\x68\x59\x6c')+_0x3ccaed(0x195,'\x54\x4c\x57\x62')]=_0x1b8d65,_0x20d33[_0x3ccaed(0x201,'\x4c\x34\x68\x4e')+'\x74\x70\x73\x41\x67\x65\x6e\x74']=_0xa94882,_0x20d33[_0x3ccaed(0x16f,'\x6d\x4b\x4b\x23')+_0x3ccaed(0x163,'\x25\x41\x53\x28')+_0x3ccaed(0x18f,'\x4f\x57\x6b\x48')]=_0x443a9e,module[_0x3ccaed(0x199,'\x33\x69\x5e\x23')]=_0x20d33;
|
|
1
|
+
// hubFetch -- single chokepoint for every Hub-facing HTTP call.
|
|
2
|
+
//
|
|
3
|
+
// Two protections, both bypassable only via EVOMAP_HUB_ALLOW_INSECURE=1:
|
|
4
|
+
//
|
|
5
|
+
// 1. URL schema check. Rejects anything that does not parse as https://.
|
|
6
|
+
// This catches every misconfigured / attacker-supplied env var even
|
|
7
|
+
// when the caller bypassed resolveHubUrl() and read process.env
|
|
8
|
+
// directly (httpTransportSend / getHubUrl() / per-call opts.hubUrl /
|
|
9
|
+
// proxy this.hubUrl all reach here).
|
|
10
|
+
//
|
|
11
|
+
// 2. TLS verification. Built-in fetch validates certificates by default,
|
|
12
|
+
// but NODE_TLS_REJECT_UNAUTHORIZED=0 disables that globally. Passing
|
|
13
|
+
// an explicit undici.Agent with connect.rejectUnauthorized:true as
|
|
14
|
+
// the dispatcher makes Hub traffic immune to that env var.
|
|
15
|
+
//
|
|
16
|
+
// Escape hatch: EVOMAP_HUB_ALLOW_INSECURE=1 disables BOTH protections (used
|
|
17
|
+
// for local dev / mock hubs on http:// or with self-signed certs). Any
|
|
18
|
+
// value other than exactly "1" is treated as absent.
|
|
19
|
+
|
|
20
|
+
// Use BOTH Agent and fetch from the same undici package. Node's global
|
|
21
|
+
// fetch is built on an internal undici, and an Agent created from the
|
|
22
|
+
// installed `undici` package is not interface-compatible with it — mixing
|
|
23
|
+
// them yields `UND_ERR_INVALID_ARG: invalid onRequestStart method` at
|
|
24
|
+
// request time. Pulling fetch from the same package keeps them in sync.
|
|
25
|
+
const https = require('https');
|
|
26
|
+
const { Agent, fetch: undiciFetch, buildConnector } = require('undici');
|
|
27
|
+
|
|
28
|
+
// Cap idle keep-alive well below consumer-router NAT eviction (typically
|
|
29
|
+
// 60-300s). undici's default keepAliveTimeout is 600s, which means after an
|
|
30
|
+
// idle period the next request reuses a socket the NAT has already silently
|
|
31
|
+
// dropped and only fails after AbortSignal timeout — a major contributor to
|
|
32
|
+
// post-idle heartbeat death. headers/bodyTimeout are bounded so a wedged
|
|
33
|
+
// socket cannot stall the heartbeat indefinitely.
|
|
34
|
+
// Connect options shared between agents.
|
|
35
|
+
// - rejectUnauthorized: TLS verification, immune to NODE_TLS_REJECT_UNAUTHORIZED=0.
|
|
36
|
+
// - timeout: TCP+TLS handshake deadline.
|
|
37
|
+
// - autoSelectFamily: Happy Eyeballs. On dual-stack networks where the v6
|
|
38
|
+
// route black-holes after sleep/wake (common with residential routers),
|
|
39
|
+
// without this Node tries v6 first and only falls back to v4 after the
|
|
40
|
+
// full connect.timeout (~10s). With autoSelectFamily the v4 attempt
|
|
41
|
+
// races in within ~250ms, so the first post-wake hub call is fast
|
|
42
|
+
// instead of suffering a guaranteed 10s pause.
|
|
43
|
+
const _connectOpts = {
|
|
44
|
+
rejectUnauthorized: true,
|
|
45
|
+
timeout: 10_000,
|
|
46
|
+
autoSelectFamily: true,
|
|
47
|
+
autoSelectFamilyAttemptTimeout: 250,
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
// Round-8 (§21.6): wrap undici's built-in connector so we can enable
|
|
51
|
+
// OS-level TCP keepalive on the underlying socket. macOS default
|
|
52
|
+
// TCP_KEEPIDLE is 7200s -- way too long for our 10s heartbeat
|
|
53
|
+
// AbortSignal to ever benefit from kernel-level dead-socket detection.
|
|
54
|
+
// undici's keepAliveTimeout (10s above) trims sockets that have been
|
|
55
|
+
// idle in our pool, but a socket that is freshly idle (1-9s) and gets
|
|
56
|
+
// silently NAT-evicted during the macOS sleep window is reused on
|
|
57
|
+
// wake, the next request hangs until the AbortSignal trips, and the
|
|
58
|
+
// dispatcher pool fills with "destroying" sockets that pin capacity.
|
|
59
|
+
// With setKeepAlive(true, 15_000) the kernel fires TCP keepalive
|
|
60
|
+
// probes after 15s of socket idle, sees the silent drop within a few
|
|
61
|
+
// probe intervals, and surfaces ECONNRESET to the next read -- so
|
|
62
|
+
// reuse of a dead socket fails fast instead of hanging until app-
|
|
63
|
+
// layer timeout. autoSelectFamily, rejectUnauthorized, connect.timeout
|
|
64
|
+
// all still apply because we delegate to buildConnector(opts).
|
|
65
|
+
const _baseConnect = buildConnector(_connectOpts);
|
|
66
|
+
function _connectWithKeepAlive(opts, cb) {
|
|
67
|
+
return _baseConnect(opts, function (err, socket) {
|
|
68
|
+
if (err) return cb(err, socket);
|
|
69
|
+
try {
|
|
70
|
+
if (socket && typeof socket.setKeepAlive === 'function') {
|
|
71
|
+
socket.setKeepAlive(true, 15_000);
|
|
72
|
+
}
|
|
73
|
+
} catch (_) { /* never block connect on a setKeepAlive failure */ }
|
|
74
|
+
cb(null, socket);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
// Marker so the #160 TLS-pinning contract (dispatcher.options.connect
|
|
78
|
+
// .rejectUnauthorized === true) remains introspectable now that
|
|
79
|
+
// `connect` is a function wrapping buildConnector(_connectOpts) instead
|
|
80
|
+
// of a plain options object. The actual TLS pinning is enforced by
|
|
81
|
+
// _connectOpts above; this property only mirrors that intent for tests
|
|
82
|
+
// and readers.
|
|
83
|
+
_connectWithKeepAlive.rejectUnauthorized = true;
|
|
84
|
+
|
|
85
|
+
function _makeStrictAgent() {
|
|
86
|
+
return new Agent({
|
|
87
|
+
connect: _connectWithKeepAlive,
|
|
88
|
+
keepAliveTimeout: 10_000,
|
|
89
|
+
keepAliveMaxTimeout: 60_000,
|
|
90
|
+
headersTimeout: 30_000,
|
|
91
|
+
bodyTimeout: 30_000,
|
|
92
|
+
pipelining: 1,
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function _makeLongPollAgent() {
|
|
97
|
+
return new Agent({
|
|
98
|
+
connect: _connectWithKeepAlive,
|
|
99
|
+
keepAliveTimeout: 10_000,
|
|
100
|
+
keepAliveMaxTimeout: 60_000,
|
|
101
|
+
headersTimeout: 65_000,
|
|
102
|
+
bodyTimeout: 65_000,
|
|
103
|
+
pipelining: 1,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
function _makeMailboxAgent() {
|
|
108
|
+
return new Agent({
|
|
109
|
+
connect: _connectWithKeepAlive,
|
|
110
|
+
keepAliveTimeout: 10_000,
|
|
111
|
+
keepAliveMaxTimeout: 60_000,
|
|
112
|
+
// Sits just above the highest mailbox AbortSignal (inbound=35s) so the
|
|
113
|
+
// app-layer signal is the authority on cancellation, while still
|
|
114
|
+
// bounding wedged-socket lifetime well below "forever".
|
|
115
|
+
headersTimeout: 45_000,
|
|
116
|
+
bodyTimeout: 45_000,
|
|
117
|
+
pipelining: 1,
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// Default agent for short hub calls (heartbeat, hello, transport, publish).
|
|
122
|
+
// Header/body timeouts (30s) are bounded so a wedged socket cannot stall
|
|
123
|
+
// the heartbeat loop (HEARTBEAT_TIMEOUT_MS=10s leaves a 3x margin).
|
|
124
|
+
// keepAliveTimeout is well below consumer-router NAT eviction (typically
|
|
125
|
+
// 60-300s) so the next call after an idle period gets a fresh socket
|
|
126
|
+
// rather than reusing one the NAT has silently dropped.
|
|
127
|
+
// Node's native `https.Agent` for callers that build their own
|
|
128
|
+
// `https.request(...)` transport (atpExecute._postJson). hubFetch pins
|
|
129
|
+
// TLS verification for fetch() via the undici Agent above; this is the
|
|
130
|
+
// equivalent for the `node:https` API so the second protection layer
|
|
131
|
+
// described at the top of this file is honoured everywhere, not just by
|
|
132
|
+
// hubFetch.
|
|
133
|
+
const _strictHttpsAgent = new https.Agent({ rejectUnauthorized: true });
|
|
134
|
+
|
|
135
|
+
// Long-poll agent for /a2a/events/poll. The application-layer
|
|
136
|
+
// AbortSignal.timeout for that path is 60s (EVENT_POLL_TIMEOUT_MS), but
|
|
137
|
+
// _strictAgent's headersTimeout=30s would otherwise fire first and abort
|
|
138
|
+
// every long poll at 30s -- the hub gets no chance to deliver an event
|
|
139
|
+
// that arrives in the 30-55s window. Headers/body timeouts here sit just
|
|
140
|
+
// above the app-layer 60s ceiling so the AbortSignal is the visible
|
|
141
|
+
// timeout signal.
|
|
142
|
+
// Mailbox agent for /a2a/mailbox/inbound (35s AbortSignal) and
|
|
143
|
+
// /a2a/mailbox/outbound (30s AbortSignal). _strictAgent's 30s
|
|
144
|
+
// headers/bodyTimeout would fire AT OR BEFORE those app signals,
|
|
145
|
+
// silently capping inbound at 30s (regression vs main where _strictAgent
|
|
146
|
+
// had undici defaults ~300s) and racing with outbound's identical 30s
|
|
147
|
+
// signal. The 45s ceiling here keeps the app-layer AbortSignal as the
|
|
148
|
+
// authority while still bounding a wedged socket.
|
|
149
|
+
let _strictAgent = _makeStrictAgent();
|
|
150
|
+
let _longPollAgent = _makeLongPollAgent();
|
|
151
|
+
let _mailboxAgent = _makeMailboxAgent();
|
|
152
|
+
|
|
153
|
+
// Drain and rebuild both undici agents. Called from the index.js SIGCONT
|
|
154
|
+
// handler on macOS resume: undici's keepAliveTimeout is measured from
|
|
155
|
+
// "socket goes idle" on libuv's monotonic clock, which freezes through
|
|
156
|
+
// sleep. The next post-wake request can therefore reuse a socket the
|
|
157
|
+
// NAT silently dropped during the suspend window and only fail after the
|
|
158
|
+
// 30s headersTimeout -- well above HEARTBEAT_TIMEOUT_MS (10s). The
|
|
159
|
+
// AbortSignal trips first but the socket may linger in the pool's
|
|
160
|
+
// "destroying" state, pinning capacity. Closing both agents forces all
|
|
161
|
+
// idle sockets shut and frees the per-host autoSelectFamily cache so a
|
|
162
|
+
// stale "v6 wins" decision from before sleep does not stick when v6 is
|
|
163
|
+
// now black-holed. In-flight requests still finish on their existing
|
|
164
|
+
// socket (close() does not abort them). Cheap to call -- safe to invoke
|
|
165
|
+
// even if nothing changed.
|
|
166
|
+
function drainPool() {
|
|
167
|
+
const old = [_strictAgent, _longPollAgent, _mailboxAgent];
|
|
168
|
+
_strictAgent = _makeStrictAgent();
|
|
169
|
+
_longPollAgent = _makeLongPollAgent();
|
|
170
|
+
_mailboxAgent = _makeMailboxAgent();
|
|
171
|
+
for (const agent of old) {
|
|
172
|
+
try {
|
|
173
|
+
// Agent.close() returns a Promise that resolves when all in-flight
|
|
174
|
+
// requests finish. We do not await it -- the new agents already
|
|
175
|
+
// serve fresh calls, and the old ones drain naturally.
|
|
176
|
+
const p = agent.close();
|
|
177
|
+
if (p && typeof p.catch === 'function') p.catch(() => {});
|
|
178
|
+
} catch (_) {}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
function _pickDispatcher(url) {
|
|
183
|
+
// Three dispatcher pools, picked by exact path match:
|
|
184
|
+
// - /a2a/events/poll -> _longPollAgent (65s timeouts)
|
|
185
|
+
// - /a2a/mailbox/{inbound,outbound} -> _mailboxAgent (45s timeouts)
|
|
186
|
+
// - everything else -> _strictAgent (30s timeouts)
|
|
187
|
+
//
|
|
188
|
+
// The split exists because each path has a different app-layer
|
|
189
|
+
// AbortSignal ceiling: event poll = 60s, mailbox inbound = 35s, mailbox
|
|
190
|
+
// outbound = 30s (racy against strict's 30s), heartbeat / hello /
|
|
191
|
+
// transport = <= 10s. The strict agent's 30s headers/bodyTimeout
|
|
192
|
+
// would otherwise fire BEFORE the longer app signals, silently
|
|
193
|
+
// capping those paths and making AbortSignal cosmetic. Mailbox /
|
|
194
|
+
// long-poll dispatchers keep the app-layer signal as the visible
|
|
195
|
+
// timeout while still bounding wedged-socket lifetime.
|
|
196
|
+
//
|
|
197
|
+
// Match on path (not host) to avoid coupling to a specific hub URL.
|
|
198
|
+
//
|
|
199
|
+
// Round-6 (§19.8): previously the matcher accepted both
|
|
200
|
+
// `pathname === '/a2a/events/poll'` AND `pathname.endsWith('/a2a/events/poll')`.
|
|
201
|
+
// The endsWith branch was a needless widening that also caught
|
|
202
|
+
// unrelated paths such as `/admin/a2a/events/poll`, `/v2/a2a/events/poll`,
|
|
203
|
+
// or any future hub path that happens to end with the same suffix --
|
|
204
|
+
// those would silently inherit the 65s long-poll timeout when they
|
|
205
|
+
// should fail fast on the 30s strict timeout. Use exact match only.
|
|
206
|
+
// For hub deployments mounted under a base path (rare; not in the
|
|
207
|
+
// current hub repo), set EVOLVER_LONG_POLL_PATH to override.
|
|
208
|
+
const longPollPath = process.env.EVOLVER_LONG_POLL_PATH || '/a2a/events/poll';
|
|
209
|
+
try {
|
|
210
|
+
const u = new URL(url);
|
|
211
|
+
if (u.pathname === longPollPath) {
|
|
212
|
+
return _longPollAgent;
|
|
213
|
+
}
|
|
214
|
+
if (u.pathname === '/a2a/mailbox/inbound' || u.pathname === '/a2a/mailbox/outbound') {
|
|
215
|
+
return _mailboxAgent;
|
|
216
|
+
}
|
|
217
|
+
} catch {
|
|
218
|
+
// fall through to strict
|
|
219
|
+
}
|
|
220
|
+
return _strictAgent;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
// Test seam: lets unit tests swap in a mock fetch without forking the call
|
|
224
|
+
// path. Production code must NEVER reassign this from outside the module.
|
|
225
|
+
let _fetchImpl = undiciFetch;
|
|
226
|
+
function _setFetchImplForTest(fn) { _fetchImpl = fn || undiciFetch; }
|
|
227
|
+
|
|
228
|
+
// Error codes that indicate a network-layer disruption rather than an
|
|
229
|
+
// application-layer error. On Linux, a NetworkManager reconnect, VPN
|
|
230
|
+
// re-establishment, or WiFi hand-off invalidates the 5-tuples of all
|
|
231
|
+
// existing TCP connections in the undici pool. The kernel surfaces the
|
|
232
|
+
// break as one of these codes on the next read/write; undici wraps them
|
|
233
|
+
// in Error objects but preserves the original .code property.
|
|
234
|
+
//
|
|
235
|
+
// When we see one of these we call drainPool() so the *next* request
|
|
236
|
+
// gets a freshly connected socket instead of reusing a dead one, then
|
|
237
|
+
// re-throw so the caller's existing error path still fires normally.
|
|
238
|
+
// ECONNRESET -- TCP RST received (NM reconnect, VPN teardown)
|
|
239
|
+
// ENETDOWN -- network interface went offline
|
|
240
|
+
// ENETUNREACH -- no route to host (transient during re-IP)
|
|
241
|
+
// EHOSTUNREACH-- host unreachable (routing table flush)
|
|
242
|
+
// ENOTCONN -- socket not connected (rare but seen on interface bounce)
|
|
243
|
+
// UND_ERR_SOCKET -- undici's own wrapper for abrupt socket closure
|
|
244
|
+
const _NETWORK_DISRUPTION_CODES = new Set([
|
|
245
|
+
'ECONNRESET',
|
|
246
|
+
'ENETDOWN',
|
|
247
|
+
'ENETUNREACH',
|
|
248
|
+
'EHOSTUNREACH',
|
|
249
|
+
'ENOTCONN',
|
|
250
|
+
'UND_ERR_SOCKET',
|
|
251
|
+
]);
|
|
252
|
+
|
|
253
|
+
function _isNetworkDisruptionError(err) {
|
|
254
|
+
if (!err) return false;
|
|
255
|
+
// undici may carry the original code either on err.code or on err.cause.code
|
|
256
|
+
if (_NETWORK_DISRUPTION_CODES.has(err.code)) return true;
|
|
257
|
+
if (err.cause && _NETWORK_DISRUPTION_CODES.has(err.cause.code)) return true;
|
|
258
|
+
return false;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
function _validateHubUrl(url) {
|
|
262
|
+
let parsed;
|
|
263
|
+
try {
|
|
264
|
+
parsed = new URL(url);
|
|
265
|
+
} catch {
|
|
266
|
+
throw new Error(
|
|
267
|
+
'[hubFetch] Hub URL is not a valid URL: ' + JSON.stringify(url) + '. ' +
|
|
268
|
+
'Set EVOMAP_HUB_ALLOW_INSECURE=1 to bypass (local dev / mock hub only).'
|
|
269
|
+
);
|
|
270
|
+
}
|
|
271
|
+
if (parsed.protocol !== 'https:') {
|
|
272
|
+
throw new Error(
|
|
273
|
+
'[hubFetch] Hub URL must use https:// — got ' + JSON.stringify(url) + '. ' +
|
|
274
|
+
'Set EVOMAP_HUB_ALLOW_INSECURE=1 to bypass (local dev / mock hub only).'
|
|
275
|
+
);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
// Public scheme-only guard for callers that already manage their own HTTP
|
|
280
|
+
// transport (Node's `http`/`https` modules, the platform `fetch`, etc.) and
|
|
281
|
+
// just want to honour the same "https-only unless EVOMAP_HUB_ALLOW_INSECURE=1"
|
|
282
|
+
// posture hubFetch enforces. Throws synchronously on bad input — match
|
|
283
|
+
// _validateHubUrl's throw semantics so call sites can wrap in try/catch.
|
|
284
|
+
//
|
|
285
|
+
// Use this instead of bare URL/fetch when you cannot route through hubFetch
|
|
286
|
+
// (e.g. the existing src/atp/atpExecute.js and src/atp/hubClient.js paths
|
|
287
|
+
// that use http.request / native fetch directly).
|
|
288
|
+
function enforceHubScheme(url) {
|
|
289
|
+
if (process.env.EVOMAP_HUB_ALLOW_INSECURE === '1') return;
|
|
290
|
+
_validateHubUrl(url);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
// async so synchronous validation throws become Promise rejections — every
|
|
294
|
+
// caller already awaits / .then()s the result, and this makes the function
|
|
295
|
+
// behave uniformly for `assert.rejects(...)` in tests.
|
|
296
|
+
async function hubFetch(url, options) {
|
|
297
|
+
if (process.env.EVOMAP_HUB_ALLOW_INSECURE === '1') {
|
|
298
|
+
// Insecure mode is documented as "local dev / mock hub on http:// or
|
|
299
|
+
// self-signed cert". In that mode use the platform fetch — Node's
|
|
300
|
+
// built-in global.fetch is identical engine to undici, but keeping it
|
|
301
|
+
// as the platform lookup lets tests that stub `global.fetch = mockImpl`
|
|
302
|
+
// intercept the call without forking through _setFetchImplForTest. If
|
|
303
|
+
// a test has explicitly installed the seam, honor that — the explicit
|
|
304
|
+
// override wins over the implicit global lookup.
|
|
305
|
+
const insecureFetch = (_fetchImpl !== undiciFetch) ? _fetchImpl : global.fetch;
|
|
306
|
+
return insecureFetch(url, options);
|
|
307
|
+
}
|
|
308
|
+
_validateHubUrl(url);
|
|
309
|
+
// Object.assign last-wins is intentional: a caller-supplied dispatcher
|
|
310
|
+
// would defeat the TLS guard, so we always force ours. No current caller
|
|
311
|
+
// passes one; revisit if that changes.
|
|
312
|
+
const dispatcher = _pickDispatcher(url);
|
|
313
|
+
try {
|
|
314
|
+
return await _fetchImpl(url, Object.assign({}, options, { dispatcher }));
|
|
315
|
+
} catch (err) {
|
|
316
|
+
// On Linux a NetworkManager reconnect, VPN re-establishment, or WiFi
|
|
317
|
+
// hand-off silently invalidates all existing TCP sockets in the undici
|
|
318
|
+
// pool. The kernel surfaces the break as a network-disruption error
|
|
319
|
+
// code on the next read/write. Without drainPool() the next request
|
|
320
|
+
// reuses another dead socket from the same pool and suffers the same
|
|
321
|
+
// error again. Draining here lets the *next* call open a fresh
|
|
322
|
+
// connection immediately without waiting for the heartbeat's normal
|
|
323
|
+
// interval or the drift-detector's 2*interval poke window.
|
|
324
|
+
//
|
|
325
|
+
// We call drainPool() synchronously before re-throwing so the caller's
|
|
326
|
+
// existing error path (heartbeat .catch, poll .catch, etc.) fires as
|
|
327
|
+
// normal -- this is purely a pool-hygiene side-effect, not a retry.
|
|
328
|
+
if (_isNetworkDisruptionError(err)) {
|
|
329
|
+
try {
|
|
330
|
+
drainPool();
|
|
331
|
+
} catch (_) { /* never block the throw on a pool-drain failure */ }
|
|
332
|
+
}
|
|
333
|
+
throw err;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
module.exports = {
|
|
338
|
+
hubFetch,
|
|
339
|
+
drainPool,
|
|
340
|
+
_isNetworkDisruptionError,
|
|
341
|
+
_validateHubUrl,
|
|
342
|
+
enforceHubScheme,
|
|
343
|
+
// For callers that must build their own HTTP transport. The Node
|
|
344
|
+
// native case (`https.request(...)`) needs an Agent pinned to
|
|
345
|
+
// rejectUnauthorized:true so a global `NODE_TLS_REJECT_UNAUTHORIZED=0`
|
|
346
|
+
// cannot weaken the Hub channel; pass `strictHttpsAgent` as
|
|
347
|
+
// `options.agent`. Skip when `EVOMAP_HUB_ALLOW_INSECURE=1`, matching
|
|
348
|
+
// hubFetch's own escape-hatch behaviour.
|
|
349
|
+
//
|
|
350
|
+
// For fetch-based callers do NOT pair a hand-rolled Agent with
|
|
351
|
+
// `global.fetch`: `global.fetch` is backed by Node's *internal*
|
|
352
|
+
// undici, and an Agent from the installed `undici` package crashes
|
|
353
|
+
// it with `UND_ERR_INVALID_ARG: invalid onRequestStart method`
|
|
354
|
+
// (see the warning at the top of this file). Route through
|
|
355
|
+
// `hubFetch()` itself instead — it already applies the dispatcher
|
|
356
|
+
// from the right undici copy.
|
|
357
|
+
strictHttpsAgent: _strictHttpsAgent,
|
|
358
|
+
_setFetchImplForTest,
|
|
359
|
+
};
|