@kedem/okdb 2.6.1 → 2.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/algorithm-worker-thread.js +1 -1
- package/bin/okdb.js +1 -1
- package/docs/queue.md +6 -0
- package/okdb-functions-sandbox-worker.js +1 -1
- package/okdb-http-worker-child.js +1 -1
- package/okdb-views-bootstrap-worker.js +1 -1
- package/okdb.js +1 -1
- package/package.json +1 -1
- package/types/features/queue.d.ts +4 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0xa5e620=_0x70ef;(function(_0x422392,_0x3ecc48){const _0x54e20a=_0x70ef,_0x53d6e4=_0x422392();while(!![]){try{const _0x2deac1=-parseInt(_0x54e20a(0x2a8))/0x1+-parseInt(_0x54e20a(0x13e))/0x2*(parseInt(_0x54e20a(0x13a))/0x3)+parseInt(_0x54e20a(0x236))/0x4*(parseInt(_0x54e20a(0x230))/0x5)+-parseInt(_0x54e20a(0x131))/0x6+-parseInt(_0x54e20a(0xae))/0x7+parseInt(_0x54e20a(0xdc))/0x8*(parseInt(_0x54e20a(0x170))/0x9)+parseInt(_0x54e20a(0x1e2))/0xa;if(_0x2deac1===_0x3ecc48)break;else _0x53d6e4['push'](_0x53d6e4['shift']());}catch(_0x27372b){_0x53d6e4['push'](_0x53d6e4['shift']());}}}(_0x1e20,0xbdce7));var require$$0$5=require(_0xa5e620(0x246)),require$$1$1=require(_0xa5e620(0xc4)),require$$1=require(_0xa5e620(0x26a)),require$$0$3=require('os'),require$$2=require(_0xa5e620(0x290)),require$$0=require(_0xa5e620(0x2bc)),require$$0$2=require(_0xa5e620(0x8c)),require$$0$1=require('fs'),require$$0$4=require('node:events');function _0x70ef(_0x3b0300,_0x43cca7){_0x3b0300=_0x3b0300-0x83;const _0x1e2005=_0x1e20();let _0x70ef97=_0x1e2005[_0x3b0300];return _0x70ef97;}function getDefaultExportFromCjs(_0xaa5154){const _0x372f0e=_0xa5e620;return _0xaa5154&&_0xaa5154[_0x372f0e(0x1f9)]&&Object[_0x372f0e(0x17d)]['hasOwnProperty']['call'](_0xaa5154,'default')?_0xaa5154[_0x372f0e(0x209)]:_0xaa5154;}var okdbHttpWorkerChild$1={},okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x2734ea=_0xa5e620;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x2b024c={'PUT':_0x2734ea(0x1bf),'REMOVE':_0x2734ea(0x21b),'INDEX_DROP':_0x2734ea(0x2b8),'INDEX_REGISTER':_0x2734ea(0x29f),'INDEX_RESET':_0x2734ea(0x2c9),'TYPE_REGISTER':_0x2734ea(0x1cf),'TYPE_DROP':'dropType','FTS_REGISTER':_0x2734ea(0x193),'FTS_DROP':_0x2734ea(0x1a0),'FTS_RESET':_0x2734ea(0x1ae),'SCHEMA_SET':'setSchema','SCHEMA_DROP':_0x2734ea(0x207),'TTL_SET':_0x2734ea(0x148),'TTL_CLEAR':_0x2734ea(0xd0)},_0x71b2e2={'SYSTEM_READY':_0x2734ea(0x171),'FIELD_RESOLVER_REGISTERED':_0x2734ea(0x27a),'SYSTEM_STOPPED':_0x2734ea(0x127),'SYSTEM_CLOCK_CHANGE':'system:clock_change','SYSTEM_POKE':_0x2734ea(0x224),'SYSTEM_DRAIN':_0x2734ea(0x90),'SYSTEM_TYPE_DROP':'system:type_drop','SYSTEM_PROC':_0x2734ea(0xe2),'SYSTEM_BUS_STATE_CHANGE':_0x2734ea(0x19b),'ITEM_CREATE':_0x2734ea(0xb5),'ITEM_UPDATE':_0x2734ea(0xe6),'ITEM_REMOVE':_0x2734ea(0x208),'ITEM_PENDING':_0x2734ea(0x1db),'INDEX_RESET':_0x2734ea(0x1c8),'INDEX_READY':_0x2734ea(0x8b),'INDEX_PROGRESS':_0x2734ea(0x136),'VIEW_PROGRESS':_0x2734ea(0x26b),'INDEX_DROP':_0x2734ea(0x101),'INDEX_REGISTERED':'index:registered','FTS_REGISTERED':'fts:registered','FTS_DROP':'fts:drop','FTS_RESET':_0x2734ea(0x23b),'SCHEMA_SET':_0x2734ea(0x15e),'SCHEMA_DROP':_0x2734ea(0x260),'UNIQUE_VIOLATION':_0x2734ea(0x2ad),'UNIQUE_VIOLATION_RESOLVED':'unique:violation_resolved','REF_VIOLATION':_0x2734ea(0x11b),'REF_VIOLATION_RESOLVED':'ref:violation_resolved','SYNC_APPLY':_0x2734ea(0xaf),'TXN_START':_0x2734ea(0x103),'TXN_END':_0x2734ea(0x13c),'TXN_ROLLBACK':_0x2734ea(0x14d),'TYPE_REGISTERED':_0x2734ea(0x84),'TYPE_DROP':_0x2734ea(0x10e),'ENV_OPENED':_0x2734ea(0x227),'ENV_REMOVED':'env:removed','SYSTEM_ENV_RELEASE':_0x2734ea(0x146),'TTL_EXPIRED':_0x2734ea(0x26d),'TTL_SET':_0x2734ea(0x282),'TTL_CLEAR':_0x2734ea(0x243),'LICENSE_INVALID':_0x2734ea(0xa2),'LICENSE_ADDED':_0x2734ea(0x2c6),'LICENSE_ACTIVATED':_0x2734ea(0x270),'LICENSE_REMOVED':_0x2734ea(0x100)},_0xb0889a={'CREATING':'creating','RESETTING':'resetting','READY':'ready','DROPPING':_0x2734ea(0x27f),'WAITING':_0x2734ea(0x168),'ERROR':_0x2734ea(0x110)},_0x18a086={'CREATED':_0x2734ea(0x237),'STARTING':_0x2734ea(0x102),'STARTED':_0x2734ea(0x13b),'STOPPING':_0x2734ea(0xcd),'STOPPED':'stopped'},_0x428e21={'CREATING':'creating','READY':_0x2734ea(0x231),'HALTED':'halted','STOPPED':'stopped','RESETTING':_0x2734ea(0x2b7)},_0x20ca6c=Object[_0x2734ea(0x296)]({'POKE':_0x2734ea(0x145),'DRAIN':'bus:drain','TYPE_DROP':_0x2734ea(0xbe),'PROC':'bus:proc','ENV_RELEASE':_0x2734ea(0x2bb)});return okdbEnums={'BUS_EVENTS':_0x20ca6c,'CHANGE_ACTIONS':_0x2b024c,'EVENTS':_0x71b2e2,'INDEX_STATE':_0xb0889a,'OKDB_STATE':_0x18a086,'VIEW_STATE':_0x428e21},okdbEnums;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x2ace7f=_0xa5e620;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x54a114,performance:_0x3ea5f3}=require$$0,_0x273706=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x2ace7f(0x1d3),_0xedfad5=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x2b783d=process.env.OKDB_LOOP_LAG_ALL==='1',_0x4ce7fc=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x3059fe{constructor(){const _0xcd274a=_0x2ace7f;this['enabled']=_0x273706,this[_0xcd274a(0xdf)]=new Map(),this['_h']=null,this[_0xcd274a(0x26f)]=null,this[_0xcd274a(0x2a0)]=![],this[_0xcd274a(0x17c)]=(_0x26ab77,_0x1d237e)=>process[_0xcd274a(0x114)][_0xcd274a(0x22a)](_0x26ab77+(_0x1d237e?'\x20'+JSON[_0xcd274a(0x279)](_0x1d237e):'')+'\x0a');}['now'](){const _0x48d61c=_0x2ace7f;return _0x3ea5f3[_0x48d61c(0x1a7)]();}[_0x2ace7f(0x167)](_0x49810c){const _0x1ded4b=_0x2ace7f;if(typeof _0x49810c===_0x1ded4b(0xc0))this['_log']=_0x49810c;}['note'](_0x1faa80,_0x70ac65,_0x2f9b08){const _0x4ba4c6=_0x2ace7f;if(!this[_0x4ba4c6(0x1a6)])return;let _0x140d56=this[_0x4ba4c6(0xdf)][_0x4ba4c6(0x10c)](_0x1faa80);!_0x140d56&&(_0x140d56={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x4ba4c6(0xdf)][_0x4ba4c6(0x198)](_0x1faa80,_0x140d56)),_0x140d56['ms']+=_0x70ac65,_0x140d56['count']+=0x1,_0x70ac65>_0x140d56[_0x4ba4c6(0x143)]&&(_0x140d56[_0x4ba4c6(0x143)]=_0x70ac65,_0x140d56[_0x4ba4c6(0x169)]=_0x2f9b08||'');}[_0x2ace7f(0xc3)](_0x27f0d8){const _0x19262e=_0x2ace7f;if(!this[_0x19262e(0x1a6)]||this[_0x19262e(0x2a0)])return;this[_0x19262e(0x2a0)]=!![];if(_0x27f0d8)this[_0x19262e(0x17c)]=_0x27f0d8;this['_h']=_0x54a114({'resolution':0xa}),this['_h'][_0x19262e(0x1ba)](),this[_0x19262e(0x26f)]=setInterval(()=>this['_report'](),_0xedfad5);if(this[_0x19262e(0x26f)][_0x19262e(0x187)])this[_0x19262e(0x26f)][_0x19262e(0x187)]();}['onWindow'](_0x38d8d8){const _0x3523c8=_0x2ace7f;if(!this['_windowCbs'])this['_windowCbs']=new Set();this[_0x3523c8(0x26c)][_0x3523c8(0x1f0)](_0x38d8d8);if(!this[_0x3523c8(0x2a0)])this['_startAdmission']();}['offWindow'](_0x2a7558){const _0x51bf44=_0x2ace7f;this[_0x51bf44(0x26c)]?.[_0x51bf44(0x200)](_0x2a7558);}[_0x2ace7f(0x205)](){const _0x78cf03=_0x2ace7f;if(this[_0x78cf03(0x1b5)])return;this[_0x78cf03(0x1b5)]=!![];!this['_h']&&(this['_h']=_0x54a114({'resolution':0xa}),this['_h']['enable']());const _0x1e1fc4=_0xedfad5;this[_0x78cf03(0x160)]=setInterval(()=>{const _0x3cdef1=_0x78cf03,_0x2b2125=this['_h'];if(!_0x2b2125)return;const _0x52b413=_0x2b2125[_0x3cdef1(0x26e)](0x63)/0xf4240,_0xe53e0c=_0x2b2125['max']/0xf4240,_0x39d109=_0x2b2125[_0x3cdef1(0x14f)]/0xf4240;_0x2b2125[_0x3cdef1(0xe7)]();if(this['_windowCbs'])for(const _0x291e36 of this[_0x3cdef1(0x26c)]){try{_0x291e36({'p99Ms':_0x52b413,'maxMs':_0xe53e0c,'meanMs':_0x39d109,'reportMs':_0x1e1fc4});}catch{}}},_0x1e1fc4);if(this[_0x78cf03(0x160)][_0x78cf03(0x187)])this[_0x78cf03(0x160)][_0x78cf03(0x187)]();}[_0x2ace7f(0x1ee)](){const _0x3e4b15=_0x2ace7f,_0x33fc37=this['_h'],_0x5a58f0=_0x33fc37['max']/0xf4240,_0x5254b4=_0x33fc37[_0x3e4b15(0x26e)](0x63)/0xf4240,_0x5c1dc9=_0x33fc37['mean']/0xf4240;_0x33fc37[_0x3e4b15(0xe7)]();const _0x2478fd=[...this[_0x3e4b15(0xdf)]['entries']()][_0x3e4b15(0xcc)](([_0x38121f,_0x57b5bd])=>({'label':_0x38121f,..._0x57b5bd}))[_0x3e4b15(0x117)]((_0x46fa05,_0x4c8aab)=>_0x4c8aab['ms']-_0x46fa05['ms'])['slice'](0x0,0x8);this['_buckets']['clear']();const _0x5e709f=_0x2478fd[_0x3e4b15(0x1d2)]((_0x23c1f4,_0x452924)=>_0x23c1f4+_0x452924['ms'],0x0),_0x368a70=_0x2478fd['map'](_0x3fe2e1=>_0x3fe2e1[_0x3e4b15(0x11a)]+'='+_0x3fe2e1['ms']['toFixed'](0x0)+_0x3e4b15(0xf5)+_0x3fe2e1['count']+(_0x3fe2e1[_0x3e4b15(0x143)]>0x5?_0x3e4b15(0xf8)+_0x3fe2e1[_0x3e4b15(0x143)][_0x3e4b15(0x177)](0x0)+'ms'+(_0x3fe2e1[_0x3e4b15(0x169)]?'\x20'+_0x3fe2e1[_0x3e4b15(0x169)]:'')+')':''));(_0x2b783d||_0x5a58f0>=_0x4ce7fc)&&this[_0x3e4b15(0x17c)](_0x3e4b15(0x154)+_0xedfad5+'ms\x20max='+_0x5a58f0[_0x3e4b15(0x177)](0x0)+_0x3e4b15(0x23f)+_0x5254b4['toFixed'](0x0)+_0x3e4b15(0x24a)+_0x5c1dc9[_0x3e4b15(0x177)](0x0)+'ms\x20busy='+_0x5e709f[_0x3e4b15(0x177)](0x0)+'ms'+(_0x368a70['length']?_0x3e4b15(0x252)+_0x368a70['join']('\x20\x20'):''),{'feature':_0x3e4b15(0x245)});if(this[_0x3e4b15(0x26c)])for(const _0x437f5c of this[_0x3e4b15(0x26c)]){try{_0x437f5c({'p99Ms':_0x5254b4,'maxMs':_0x5a58f0,'meanMs':_0x5c1dc9,'reportMs':_0xedfad5});}catch{}}}['stop'](){const _0x4163dc=_0x2ace7f;if(this[_0x4163dc(0x26f)])clearInterval(this[_0x4163dc(0x26f)]);if(this['_h'])this['_h'][_0x4163dc(0x9f)]();this['_timer']=null,this['_h']=null,this[_0x4163dc(0x2a0)]=![];}}const _0x2ce79c=new _0x3059fe();if(_0x2ce79c[_0x2ace7f(0x1a6)])_0x2ce79c[_0x2ace7f(0xc3)]();return okdbLoopMonitor={'LOOP':_0x2ce79c},okdbLoopMonitor;}var okdbWriter={'exports':{}},okdbDiag,hasRequiredOkdbDiag;function requireOkdbDiag(){if(hasRequiredOkdbDiag)return okdbDiag;hasRequiredOkdbDiag=0x1;const _0x4038f7=require$$0$1,_0x43ac5c=require$$1;let _0x76f68a,_0x759919,_0x43b536,_0x1b6922,_0x553a1d,_0x386e92,_0x5c90af,_0x2c24bf=![];const _0x2d987a=new Set();let _0x410411=null;const _0x1eb853=new Map();function _0x1b742e(){const _0x2de970=_0x70ef;if(_0x76f68a!==undefined)return _0x76f68a;_0x76f68a=process.env.OKDB_DIAG==='1';if(!_0x76f68a)return![];_0x759919=process.env.OKDB_DIAG_STACK==='1',_0x1b6922=Math[_0x2de970(0x293)](0x10,Number(process.env.OKDB_DIAG_RING)||0x100),_0x43b536=new Array(_0x1b6922),_0x553a1d=0x0,_0x386e92=0x0,_0x5c90af=process.env.OKDB_DIAG_DIR||null;if(_0x5c90af)try{_0x4038f7[_0x2de970(0x272)](_0x5c90af,{'recursive':!![]});}catch{}return!![];}function _0x15bd6(){return _0x76f68a===undefined?_0x1b742e():_0x76f68a;}function _0x3991b1(_0x11e61e,_0x2d9e3e){const _0x562c82=_0x70ef;if(_0x76f68a===undefined?!_0x1b742e():!_0x76f68a)return;let _0x2fb1ec;if(_0x759919){const _0x448301=new Error()[_0x562c82(0xba)]||'';_0x2fb1ec=_0x448301[_0x562c82(0x2ba)]('\x0a')[_0x562c82(0x219)](0x3)[_0x562c82(0xcc)](_0x44cdb9=>_0x44cdb9[_0x562c82(0x1a1)]())[_0x562c82(0xda)](Boolean)[_0x562c82(0x219)](0x0,0x8);}_0x43b536[_0x553a1d]={'seq':_0x386e92++,'t':Date[_0x562c82(0x1a7)](),'env':_0x11e61e,'kind':_0x2d9e3e||_0x562c82(0x1ec),'stack':_0x2fb1ec},_0x553a1d=(_0x553a1d+0x1)%_0x1b6922;}function _0xfc425f(_0x18d13d){const _0xef527e=_0x70ef,_0x5bae21=[];for(let _0x48159f=0x0;_0x48159f<_0x1b6922;_0x48159f++){const _0x2d9ce0=_0x43b536[(_0x553a1d-0x1-_0x48159f+_0x1b6922*0x2)%_0x1b6922];if(!_0x2d9ce0)continue;_0x5bae21[_0xef527e(0x206)](_0x2d9ce0);if(_0x5bae21['length']>=_0x18d13d)break;}return _0x5bae21;}function _0x326abf(_0x50b74d){const _0x57d4de=_0x70ef;try{process[_0x57d4de(0x114)][_0x57d4de(0x22a)](_0x50b74d+'\x0a');}catch{}if(_0x5c90af)try{_0x4038f7[_0x57d4de(0xb8)](_0x43ac5c[_0x57d4de(0xf4)](_0x5c90af,_0x57d4de(0x2ae)+process[_0x57d4de(0x1c1)]+'.log'),_0x50b74d+'\x0a');}catch{}}function _0x162898(_0x2dd77e){const _0x51eed1=_0x70ef,_0x5a856b=_0xfc425f(_0x2dd77e);if(!_0x5a856b['length'])return _0x51eed1(0x226);const _0x2dcafc=Date['now']();return _0x5a856b[_0x51eed1(0xcc)](_0x482f60=>{const _0x5f0c59=_0x51eed1,_0x471420='\x20\x20#'+_0x482f60['seq']+'\x20-'+(_0x2dcafc-_0x482f60['t'])+_0x5f0c59(0xf7)+_0x482f60[_0x5f0c59(0x11d)]+'\x20'+_0x482f60[_0x5f0c59(0x194)];return _0x482f60[_0x5f0c59(0xba)]&&_0x482f60[_0x5f0c59(0xba)]['length']?_0x471420+_0x5f0c59(0x249)+_0x482f60['stack'][_0x5f0c59(0xf4)](_0x5f0c59(0x249)):_0x471420;})['join']('\x0a');}function _0x189f4e(_0x547fa9,_0x5e5f10){const _0x3093b3=_0x70ef,_0xc12f3d=_0x3093b3(0x1f4)+_0x547fa9+_0x3093b3(0x109)+new Date()['toISOString']()+_0x3093b3(0x116)+process[_0x3093b3(0x1c1)]+_0x3093b3(0x29e),_0x2ae2cb=[_0xc12f3d,'error:\x20'+(_0x5e5f10&&_0x5e5f10[_0x3093b3(0xba)]?_0x5e5f10['stack'][_0x3093b3(0x2ba)]('\x0a')[0x0]:_0x5e5f10),'recent\x20writes\x20(newest\x20first)'+(_0x759919?'':_0x3093b3(0x96))+':',_0x162898(0x18),_0x1b03cd(),'='['repeat'](_0xc12f3d[_0x3093b3(0x202)]-0x1)];_0x326abf(_0x2ae2cb[_0x3093b3(0xf4)]('\x0a'));}function _0x39fb6e(_0x6eae5f){const _0x8a6f79=_0x70ef;if(!_0x15bd6())return;const _0x5a824f=String(_0x6eae5f&&_0x6eae5f['message']||_0x6eae5f||''),_0x24a224=/already closed|environment is already|invalid read txn|reset an invalid/i[_0x8a6f79(0x242)](_0x5a824f);_0x189f4e(_0x24a224?_0x8a6f79(0x204):_0x8a6f79(0x1e3),_0x6eae5f);if(process.env.OKDB_DIAG_SURVIVE==='1'&&_0x24a224)return;try{console['error'](_0x6eae5f&&_0x6eae5f[_0x8a6f79(0xba)]?_0x6eae5f['stack']:_0x6eae5f);}catch{}process[_0x8a6f79(0x2bd)](0x1);}function _0xc1c6a4(_0x171252){const _0x4c40c8=_0x70ef;if(!_0x15bd6())return;const _0x572aa3=String(_0x171252&&_0x171252[_0x4c40c8(0x28a)]||_0x171252||'');/already closed|environment is already|invalid read txn|reset an invalid/i[_0x4c40c8(0x242)](_0x572aa3)&&_0x189f4e(_0x4c40c8(0xe9),_0x171252);}function _0x1b03cd(){const _0x54c606=_0x70ef,_0x3fdb56=[_0x54c606(0xef)];let _0x111147=![];for(const _0x297589 of _0x2d987a){const _0xa7eebf=_0x297589&&_0x297589[_0x54c606(0x24d)];if(!_0xa7eebf)continue;for(const [_0x2cf157,_0x11d2ca]of _0xa7eebf){const _0xee905a=_0x11d2ca&&_0x11d2ca[_0x54c606(0x269)]&&_0x11d2ca[_0x54c606(0x269)][_0x54c606(0xde)];if(!_0xee905a)continue;let _0x46db2f,_0x296188;try{_0x46db2f=Atomics[_0x54c606(0x250)](_0xee905a,0x0),_0x296188=Atomics['load'](_0xee905a,0x1);}catch{continue;}if(_0x46db2f===0x0)continue;_0x111147=!![];const _0x2365e6=_0x46db2f>0x0?'SWAP':_0x54c606(0x186),_0x515231=Date[_0x54c606(0x1a7)]()-Math[_0x54c606(0x258)](_0x46db2f)*0x3e8,_0x352018=((()=>{const _0x107a36=_0x54c606;try{return _0x11d2ca[_0x107a36(0xb6)]&&_0x11d2ca[_0x107a36(0xb6)]['status']?_0x11d2ca[_0x107a36(0xb6)][_0x107a36(0x1a5)]():null;}catch{return null;}})());_0x3fdb56['push'](_0x54c606(0x1b7)+_0x2cf157+_0x54c606(0x1da)+_0x2365e6+_0x54c606(0x27b)+_0x515231+_0x54c606(0x149)+_0x296188+(_0x352018?_0x54c606(0x18f)+_0x352018[_0x54c606(0x2b1)]+'\x20oldestPendingMs='+_0x352018[_0x54c606(0x27e)]+_0x54c606(0xe1)+_0x352018[_0x54c606(0x2b2)]+'}':''));}}if(!_0x111147)_0x3fdb56[_0x54c606(0x206)](_0x54c606(0x180));return _0x3fdb56[_0x54c606(0xf4)]('\x0a');}function _0xf32f4a(){const _0x227f66=_0x70ef;if(!_0x15bd6())return;const _0x495b75=Math[_0x227f66(0x293)](0x3e8,Number(process.env.OKDB_DIAG_STALL_MS)||0x1f40),_0x5d5473=Date[_0x227f66(0x1a7)]();for(const _0x120e1a of _0x2d987a){const _0x5304f9=_0x120e1a&&_0x120e1a[_0x227f66(0x24d)];if(!_0x5304f9)continue;for(const [_0x355526,_0x596773]of _0x5304f9){const _0x166463=_0x596773&&_0x596773[_0x227f66(0x269)]&&_0x596773[_0x227f66(0x269)][_0x227f66(0xde)];if(!_0x166463)continue;let _0x2b35f2;try{_0x2b35f2=Atomics[_0x227f66(0x250)](_0x166463,0x0);}catch{continue;}const _0x44ac70=_0x120e1a[_0x227f66(0x26a)]+'|'+_0x355526;if(_0x2b35f2<=0x0){_0x1eb853[_0x227f66(0x200)](_0x44ac70);continue;}const _0x35a2c3=_0x5d5473-_0x2b35f2*0x3e8,_0x2abeb9=_0x1eb853[_0x227f66(0x10c)](_0x44ac70);if(_0x35a2c3<_0x495b75)continue;if(_0x2abeb9&&_0x5d5473-_0x2abeb9[_0x227f66(0x29c)]<_0x495b75)continue;_0x1eb853[_0x227f66(0x198)](_0x44ac70,{'firstTs':_0x2abeb9?_0x2abeb9['firstTs']:_0x2b35f2,'dumpedAt':_0x5d5473});const _0x2c2c3f='\x0a===\x20OKDB_DIAG\x20STALL:\x20swap\x20drain\x20held\x20'+_0x35a2c3+_0x227f66(0x1fc)+_0x355526+_0x227f66(0x109)+new Date()['toISOString']()+_0x227f66(0x116)+process['pid']+_0x227f66(0x29e);_0x326abf([_0x2c2c3f,_0x1b03cd(),'='['repeat'](_0x2c2c3f[_0x227f66(0x202)]-0x1)]['join']('\x0a'));}}}function _0x5f4890(){const _0x517776=_0x70ef;if(!_0x15bd6()||_0x2c24bf)return;_0x2c24bf=!![],process[_0x517776(0x118)](_0x517776(0x1e3),_0x39fb6e),process[_0x517776(0x118)]('unhandledRejection',_0xc1c6a4);const _0x53027e=Math[_0x517776(0x293)](0xfa,Number(process.env.OKDB_DIAG_WATCH_MS)||0x7d0);_0x410411=setInterval(_0xf32f4a,_0x53027e);if(_0x410411[_0x517776(0x187)])_0x410411['unref']();}function _0x2af6be(_0x18b034){if(!_0x15bd6()||!_0x18b034)return;_0x2d987a['add'](_0x18b034),_0x5f4890();}function _0x14cf5c(_0x1588d0){_0x2d987a['delete'](_0x1588d0);}function _0x5e1a9e(){if(!_0x15bd6())return{'enabled':![],'hint':'set\x20OKDB_DIAG=1\x20(and\x20OKDB_DIAG_STACK=1\x20to\x20name\x20write\x20sites)'};return{'enabled':!![],'stackCapture':!!_0x759919,'recentWrites':_0xfc425f(0x10),'drain':_0x1b03cd()};}return okdbDiag={'isEnabled':_0x15bd6,'recordWrite':_0x3991b1,'installDiag':_0x5f4890,'registerOkdb':_0x2af6be,'unregisterOkdb':_0x14cf5c,'snapshot':_0x5e1a9e},okdbDiag;}function _0x1e20(){const _0x486d48=['allSettled','\x20│\x20','resetReadTxn','name','catch','[okdb-cluster]\x20recommissioned\x20worker\x20slot=','_wantDbOf','abs','FTS_DROP','killable','_publishNow','extend','feed:','_buildProcessingFacet','clear','schema:drop','stopHeartbeat','putNode','selfKey','change','respawnTimer','[okdb-cluster]\x20','__vocab/version','http-server','_coordinator','path','view:progress','_windowCbs','ttl:expired','percentile','_timer','license:activated','[okdb-cluster]\x20worker\x20pid=','mkdirSync','_participate','has','FTS_REGISTERED','workersConfigured','noteListenAddr','\x20statusEnv=','stringify','field:resolver_registered','\x20drainAge=','role','value','oldestPendingMs','dropping','decommissioned','hard-killed','ttl:set','MAX_POOL_HOLDS','heldBy','_lock','transactionSync','startHeartbeat','_quantum','_collectSingletonClaims','message','VIEW_PROGRESS','race','FTS_RESET','_clusterOrphanWatch','putSync','crypto','reap','registry\x20publish\x20failing:\x20','max','_hbTimer','_putRowSync','freeze','_processStartedAt','ppid','ESRCH','~processes:desired','emit','dumpedAt','ENV_CLOSING_RETRY','\x20===','registerIndex','_started','_acquiredAt','_systemEnv','msg','namespace','_ownMeta','dead','SIGKILL','749790troJeP','okdb','\x20(slot=','cluster-wide','1ofN:','unique:violation','okdb-diag.','procmode/','_rowKey','depth','parkedNow','transaction','stats','_wantDbHandle','cpuWindowMs','resetting','dropIndex','_isStale','split','bus:env_release','node:perf_hooks','exit','_pendingLocal',')\x20exited\x20','REMOVE','_nestedWarned','_desired','_cmd','size','close','license:added','processing','lifecycle','resetIndex','_startHeartbeat','type:registered','_caps','_sandbox','draining','log','[okdb-cluster]\x20primary\x20pid=','holder','index:ready','perf_hooks','_bpWaiters','ITEM_CREATE','_enableChangelog','system:drain','_flushDebounce','round','_groupByProcess','SYNC_COMMITS','_buildOwnRow','\x20—\x20set\x20OKDB_DIAG_STACK=1\x20to\x20name\x20the\x20call\x20site','okdb-writer[','none','okdb-writer:\x20env\x20closing\x20—\x20retry','_onProcEvent','_enqueuedAt','isPrimary','meta','_scheduleFlush','disable','engines','unclaimed','license:invalid','_lastPublishAt','processor:ready','publishChildRow','cpuUsage','stop','win32',']:\x20transaction\x20ran\x20nested\x20inside\x20a\x20write\x20txn\x20held\x20open\x20by\x20a\x20non-writer\x20caller','raw-remove','_inflight','_highWater','external','4439491KxAuQr','sync:apply','reportThreadStats','\x20on\x20this\x20data\x20path\x20runs\x20okdb\x20','process\x20','_markSeen','single','item:create','_writer','info','appendFileSync','workers','stack','node','mode','_getType','bus:type_drop','ms\x20(attempt\x20','function','shift','platform','start','cluster','all','listen','_maybePublish','processor:paused','list','decommissioning','raw-put','map','stopping','_servingEngines','splice','clearTtl','removeSync','drain','_clusterOnMessage','_pending','fanout','isWanted','markClosed','connected','hostname','filter','warn','3300616VXUidK','fast','view','_buckets','send','\x20parkedNow=','system:proc','_statusEnv','randomUUID','_versionSkewWarned','item:update','reset','processorsView','ORPHAN\x20(env-closed\x20write,\x20unhandledRejection)','isEnabled','processes','_role','claimGated','\x20ipc\x20error:\x20','drain\x20state\x20(envs\x20with\x20a\x20non-zero\x20drain):','startsWith','note','_handlePending','off','join','ms/','version','ms\x20env=','(worst\x20','listenAddr','updatedAt','setDesired','\x20died\x20','beforeWrite','clearThreadStats','openDB','license:removed','index:drop','starting','txn:start','getProcess','_clusterWorkerAttached','_publishFailWarned','http','rss','\x20@\x20','_sampleOwnStats','acquiredAt','get','_drainOne','type:drop','_nodeDbFor','error','release','_heartbeatInFlight','_singletonLocks','stderr','--print','\x20pid=','sort','prependListener','childTransaction','label','ref:violation',',\x20signal=','env','SYSTEM_STOPPED','primary','pushEphemeral','find','_onPending','rows=','getChanges','nodeKey','instances','system:stopped',')\x20—\x20this\x20process\x20will\x20not\x20appear\x20in\x20the\x20process\x20census','_adminRelay','_putRowAsync','worker','startedAt','ITEM_PENDING','slot','registry-publish','_lastCpuWindowMs','1052148xUYwHl','isActive','register','closing','_selfKey','index:progress','_listenAddr','_lockDb','_heldTotal','1549293iJVmpc','started','txn:end','async','6fEiJIq','\x20worker(s)\x20still\x20serving','_seen','processor:resumed','registry\x20heartbeat\x20skipped\x20(writer=','maxMs','standalone','bus:poke','system:env_release','--test','setTtl','ms\x20activeWriters=','busy','kill','object','txn:rollback','claims','mean',');\x20','exports','process','number','loop-lag\x20','_lastCpuUsage','runtimeProcessesView','entries','_assertUsable','children','type','then','heartbeatMs','_children','schema:set','_instanceId','_admissionTimer','instanceId','processingStatusView','_outstanding','quantum','_baselines','_singletonLock','setLogger','waiting','maxExtra','listening','_ensureDesired','listNodes','state','_lockDbOf','some','9slqqoV','system:ready','isWorker','_held','processingSig','_nestedTotal','dedupeMax','toFixed','_heartbeatTimer','values','_bpParkedTotal','min','_log','prototype','mixed\x20versions\x20on\x20one\x20store\x20are\x20unsafe\x20across\x20storage\x20migrations;\x20align\x20versions\x20before\x20upgrading\x20further.','expiresAt','\x20\x20(no\x20env\x20draining)','_kind','resolve','createEnvironment','~lock','_nodeDb','copy','unref','getClock','getCmd','CHANGEFEED_QUANTUM','sync','once','processor:progress','removeNode','\x20writer{depth=','running','user','uptime','registerFts','kind','processor:error','_migrateVocab','_draining','set','host','2.6.1','system:bus_state_change','ingest','_durs','isDead','\x20stays\x20down\x20on\x20boot\x20(durable\x20decommission)','dropFts','trim','[okdb-cluster]\x20slot=','execArgv','_refreshDesiredSnapshot','status','enabled','now','_collectWriterFacet','_rootDb','deaths','INDEX_READY','okdb-http-worker-child:\x20OKDB_HTTP_CHILD\x20env\x20config\x20missing','okdb-lock:\x20env\x20closed','resetFts','_activateProcesses','threads','options','ITEM_REMOVE','_handlePoke','_cursors','_admissionStarted','INDEX_PROGRESS','\x20\x20env=','_nodeDbCache','_dedupeMax','enable','SYSTEM_PROC','_rawDb','singletonClaims','code','put','_released','pid','processor:retry','parse','cursorKey','getDesired','getRange','_key','index:reset','_isReader','_supervisorKey','open','--inspect','queue-worker','processors','registerType','rowKey','next','reduce','true','_onTick','isConnected','\x20(durable\x20desired-state)','_db','setOwnMeta','_onPoke','\x20phase=','item:pending','fromEntries','_dedupeKey','_flushTimer','decommission','updateSupervisedChildStats','count','23736370jhRypV','uncaughtException','online','__okdbSlot','committed','tierList','participate','indexOf','_onStop','hasDesired','commit','_threadStats','_report','level','add',':want','commitsPerSec','--eval','\x0a===\x20OKDB_DIAG\x20','string','listDesired','fn-runner','sandbox','__esModule','[okdb-cluster]\x20respawning\x20worker\x20slot=','embedded','ms\x20on\x20env=','(code=','system','cli','delete','cpus','length','_nodeDead','ORPHAN\x20(env-closed\x20write)','_startAdmission','push','dropSchema','item:remove','default','\x20sync','processKey','disconnect','_removeRowAsync','afterWrite','listAll','attachFeed','_closed','ttlMs','migrations','fork','slotKey','_buildChildRow','clusterStatusView','_desiredOverlay','slice','signalWant','remove','__okdbCluster','heapUsed','_committed','floor','consecutiveFailures','procmodeack/','_isWriter','memoryUsage','system:poke','\x20times\x20in\x20','\x20\x20(write\x20ring\x20empty\x20—\x20was\x20OKDB_DIAG\x20set\x20before\x20any\x20write?)','env:opened','includes','_wantDb','write','_drain','supervisorKey','building','SYSTEM_POKE','replace','5wJRexT','ready','epoch','_done','events','commitP99Ms','4399548ZEMsEI','created','confirm','withPoolHold','\x20in\x20','fts:reset','processorId','_lastCpuPct','setupPrimary','ms\x20p99=','_holderDead','okdb-http-worker-child.js','test','ttl:clear','nodesView','loop-lag','./okdb','caps','INDEX_RESET','\x0a\x20\x20\x20\x20\x20\x20','ms\x20mean=','~processes','_onItem','_envs','heapTotal','node/','load'];_0x1e20=function(){return _0x486d48;};return _0x1e20();}var hasRequiredOkdbWriter;function requireOkdbWriter(){const _0x17b1f0=_0xa5e620;if(hasRequiredOkdbWriter)return okdbWriter[_0x17b1f0(0x151)];hasRequiredOkdbWriter=0x1;const {performance:_0x3c07f3}=require$$0$2,_0x4bf6cf=requireOkdbDiag(),_0x1f8797=process.env.OKDB_COMMIT_MODE===_0x17b1f0(0x18b);class _0x17da11{constructor(_0x136ab8){const _0x5c4faf=_0x17b1f0;this[_0x5c4faf(0x11d)]=_0x136ab8,this[_0x5c4faf(0xab)]=new Set(),this['_enqueuedAt']=new Map(),this[_0x5c4faf(0x21e)]=0x0,this[_0x5c4faf(0x19d)]=[],this[_0x5c4faf(0x233)]=[],this[_0x5c4faf(0xac)]=Math[_0x5c4faf(0x293)](0x0,Number(process.env.OKDB_WRITER_HIGH_WATER??0x400)),this[_0x5c4faf(0x163)]=0x0,this[_0x5c4faf(0x8d)]=[],this[_0x5c4faf(0x17a)]=0x0,this[_0x5c4faf(0x173)]=null,this[_0x5c4faf(0x139)]=0x0,this[_0x5c4faf(0x175)]=0x0,this[_0x5c4faf(0x2c1)]=![];}async[_0x17b1f0(0x2b3)](_0x38f5b8,_0x50ebe6,{admitted:admitted=![]}={}){const _0xc6d478=_0x17b1f0;if(_0x4bf6cf[_0xc6d478(0xea)]())_0x4bf6cf['recordWrite'](this[_0xc6d478(0x11d)]?.[_0xc6d478(0x254)],_0x50ebe6);if(this[_0xc6d478(0x211)]){const _0x47d3c0=new Error('okdb-writer:\x20env\x20closing\x20—\x20retry');_0x47d3c0[_0xc6d478(0x1be)]=_0xc6d478(0x29d);throw _0x47d3c0;}if(this[_0xc6d478(0xac)]>0x0){let _0x2d7d65=![];while(this[_0xc6d478(0x163)]>=this[_0xc6d478(0xac)]&&!this[_0xc6d478(0x211)]){!_0x2d7d65&&(_0x2d7d65=!![],this['_bpParkedTotal']++),await new Promise(_0x39cc00=>this['_bpWaiters'][_0xc6d478(0x206)](_0x39cc00));}if(this['_closed']){const _0xfd0cb5=new Error(_0xc6d478(0x99));_0xfd0cb5['code']=_0xc6d478(0x29d);throw _0xfd0cb5;}}this[_0xc6d478(0x163)]++;const _0x458f96=admitted?null:this[_0xc6d478(0x11d)]['_coordinator'];for(;;){while(this['_held'])await this[_0xc6d478(0x173)];if(_0x458f96)try{await _0x458f96[_0xc6d478(0xfd)]();}catch(_0x178eb9){this[_0xc6d478(0x163)]--;if(this['_bpWaiters'][_0xc6d478(0x202)]&&this[_0xc6d478(0x163)]<this[_0xc6d478(0xac)])this[_0xc6d478(0x8d)][_0xc6d478(0xc1)]()();throw _0x178eb9;}if(!this['_held'])break;if(_0x458f96)_0x458f96['afterWrite']();}if(this[_0xc6d478(0x211)]){if(_0x458f96)_0x458f96[_0xc6d478(0x20e)]();this['_outstanding']--;if(this[_0xc6d478(0x8d)][_0xc6d478(0x202)]&&this[_0xc6d478(0x163)]<this[_0xc6d478(0xac)])this[_0xc6d478(0x8d)][_0xc6d478(0xc1)]()();const _0x44233c=new Error(_0xc6d478(0x99));_0x44233c[_0xc6d478(0x1be)]='ENV_CLOSING_RETRY';throw _0x44233c;}const _0x2610d1=_0x3c07f3[_0xc6d478(0x1a7)]();if(_0x1f8797)try{const _0x2527c2=this[_0xc6d478(0x11d)]['db'][_0xc6d478(0x286)](_0x38f5b8);this[_0xc6d478(0x21e)]++;if(this[_0xc6d478(0x19d)][_0xc6d478(0x206)](_0x3c07f3[_0xc6d478(0x1a7)]()-_0x2610d1)>0x100)this[_0xc6d478(0x19d)][_0xc6d478(0xc1)]();if(this[_0xc6d478(0x233)][_0xc6d478(0x206)](_0x3c07f3[_0xc6d478(0x1a7)]())>0x800)this['_done'][_0xc6d478(0xc1)]();return _0x2527c2;}finally{this['_outstanding']--;if(this[_0xc6d478(0x8d)]['length']&&this['_outstanding']<this[_0xc6d478(0xac)])this[_0xc6d478(0x8d)][_0xc6d478(0xc1)]()();if(_0x458f96)_0x458f96[_0xc6d478(0x20e)]();}let _0x4f44e3=null;const _0x272a38=()=>{const _0x3b27e2=_0xc6d478,_0x10793a=_0x38f5b8();if(_0x10793a&&typeof _0x10793a[_0x3b27e2(0x15b)]===_0x3b27e2(0xc0)&&!_0x4f44e3){this[_0x3b27e2(0x139)]++;let _0xf7a95b;const _0x21a1b8=new Promise(_0x3da250=>_0xf7a95b=_0x3da250);this[_0x3b27e2(0x173)]=_0x21a1b8,_0x4f44e3=()=>{const _0x45b6c6=_0x3b27e2;if(this[_0x45b6c6(0x173)]===_0x21a1b8)this[_0x45b6c6(0x173)]=null;_0xf7a95b();};}return _0x10793a;};let _0x3d4967;try{_0x3d4967=this[_0xc6d478(0x11d)]['db']['childTransaction'](_0x272a38);}catch(_0x2a9b28){_0x3d4967=Promise['reject'](_0x2a9b28);}(!_0x3d4967||typeof _0x3d4967[_0xc6d478(0x15b)]!==_0xc6d478(0xc0))&&(this[_0xc6d478(0x175)]++,!this[_0xc6d478(0x2c1)]&&(this[_0xc6d478(0x2c1)]=!![],console[_0xc6d478(0xdb)](_0xc6d478(0x97)+(this[_0xc6d478(0x11d)]?.[_0xc6d478(0x254)]??'?')+_0xc6d478(0xa9))),_0x3d4967=Promise[_0xc6d478(0x182)](_0x3d4967));const _0x4fe6f8=()=>{if(_0x4f44e3)_0x4f44e3();};_0x3d4967['then'](_0x4fe6f8,_0x4fe6f8),this[_0xc6d478(0xab)][_0xc6d478(0x1f0)](_0x3d4967),this[_0xc6d478(0x9b)][_0xc6d478(0x198)](_0x3d4967,_0x2610d1);const _0x504604=()=>{const _0x5626ed=_0xc6d478;this[_0x5626ed(0xab)][_0x5626ed(0x200)](_0x3d4967),this[_0x5626ed(0x9b)][_0x5626ed(0x200)](_0x3d4967),this[_0x5626ed(0x21e)]++,this[_0x5626ed(0x163)]--;this[_0x5626ed(0x8d)][_0x5626ed(0x202)]&&this['_outstanding']<this[_0x5626ed(0xac)]&&this[_0x5626ed(0x8d)]['shift']()();if(this[_0x5626ed(0x19d)][_0x5626ed(0x206)](_0x3c07f3[_0x5626ed(0x1a7)]()-_0x2610d1)>0x100)this[_0x5626ed(0x19d)][_0x5626ed(0xc1)]();if(this['_done'][_0x5626ed(0x206)](_0x3c07f3[_0x5626ed(0x1a7)]())>0x800)this['_done'][_0x5626ed(0xc1)]();};_0x3d4967[_0xc6d478(0x15b)](_0x504604,_0x504604);try{return await _0x3d4967;}finally{if(_0x458f96)_0x458f96[_0xc6d478(0x20e)]();}}[_0x17b1f0(0x1a5)](){const _0x1e0450=_0x17b1f0,_0x3e6038=_0x3c07f3[_0x1e0450(0x1a7)]();let _0x263edb=0x0;for(const _0x3aaba7 of this[_0x1e0450(0x9b)]['values']()){const _0x306a10=_0x3e6038-_0x3aaba7;if(_0x306a10>_0x263edb)_0x263edb=_0x306a10;}let _0x4adf99=0x0;for(let _0x3be9e0=this[_0x1e0450(0x233)]['length']-0x1;_0x3be9e0>=0x0;_0x3be9e0--){if(_0x3e6038-this[_0x1e0450(0x233)][_0x3be9e0]>0x3e8)break;_0x4adf99++;}let _0x5024b7=0x0;if(this[_0x1e0450(0x19d)][_0x1e0450(0x202)]){const _0x51f147=[...this['_durs']][_0x1e0450(0x117)]((_0x427180,_0x296447)=>_0x427180-_0x296447);_0x5024b7=_0x51f147[Math['min'](_0x51f147[_0x1e0450(0x202)]-0x1,Math['floor'](_0x51f147[_0x1e0450(0x202)]*0.99))];}return{'depth':this[_0x1e0450(0xab)][_0x1e0450(0x2c4)],'oldestPendingMs':Math['round'](_0x263edb),'committed':this[_0x1e0450(0x21e)],'commitsPerSec':_0x4adf99,'commitP99Ms':Math[_0x1e0450(0x92)](_0x5024b7),'parkedNow':this[_0x1e0450(0x8d)][_0x1e0450(0x202)],'parkedTotal':this['_bpParkedTotal'],'highWater':this[_0x1e0450(0xac)]};}['inflightAgesMs'](){const _0xa7b08e=_0x17b1f0,_0x562700=_0x3c07f3[_0xa7b08e(0x1a7)]();return[...this[_0xa7b08e(0x9b)][_0xa7b08e(0x179)]()][_0xa7b08e(0xcc)](_0x467599=>Math[_0xa7b08e(0x92)](_0x562700-_0x467599))[_0xa7b08e(0x117)]((_0x1c0fe9,_0x1c1b19)=>_0x1c1b19-_0x1c0fe9);}[_0x17b1f0(0xd7)](){const _0x40d0cc=_0x17b1f0;this[_0x40d0cc(0x211)]=!![];for(const _0x296086 of this[_0x40d0cc(0x8d)][_0x40d0cc(0xcf)](0x0))_0x296086();}async[_0x17b1f0(0xd2)](){const _0x1dc79e=_0x17b1f0;let _0x43ee5b=0x0;while(this[_0x1dc79e(0xab)]['size']&&_0x43ee5b++<0x3e8){await Promise[_0x1dc79e(0x251)]([...this[_0x1dc79e(0xab)]]);}}async[_0x17b1f0(0x1bf)](_0x56a49e,_0x49b2b0,_0x4c49f5,_0x4ed679){const _0x59571c=_0x17b1f0;return this[_0x59571c(0x2b3)](()=>{const _0x10376f=_0x59571c;if(_0x4ed679===undefined)_0x56a49e[_0x10376f(0x28f)](_0x49b2b0,_0x4c49f5);else _0x56a49e[_0x10376f(0x28f)](_0x49b2b0,_0x4c49f5,_0x4ed679);},_0x59571c(0xcb));}async[_0x17b1f0(0x21b)](_0x3d0a41,_0x392ce4){const _0x580d8b=_0x17b1f0;return this[_0x580d8b(0x2b3)](()=>_0x3d0a41['removeSync'](_0x392ce4),_0x580d8b(0xaa));}}async function _0x71cff9(_0x5b663f,_0x3d4dff){const _0xf231fb=_0x17b1f0;if(_0x3d4dff==null)_0x3d4dff=Math[_0xf231fb(0x293)](0x3e8,Number(process.env.OKDB_FLUSH_BEFORE_CLOSE_MS)||0x1d4c0);try{const _0xf72d76=_0x5b663f?.['flushed'];if(!_0xf72d76||typeof _0xf72d76[_0xf231fb(0x15b)]!==_0xf231fb(0xc0))return;await Promise[_0xf231fb(0x28c)]([Promise[_0xf231fb(0x182)](_0xf72d76)[_0xf231fb(0x255)](()=>{}),new Promise(_0x2f6082=>{const _0x5ba987=_0xf231fb,_0x546f85=setTimeout(_0x2f6082,_0x3d4dff);if(_0x546f85[_0x5ba987(0x187)])_0x546f85[_0x5ba987(0x187)]();})]);}catch{}}function _0x393db2(_0x51de3e){const _0x927db5=_0x17b1f0;if(_0x1f8797)return Promise[_0x927db5(0x182)]();const _0x3d535a=_0x51de3e?.['committed'];return _0x3d535a&&typeof _0x3d535a[_0x927db5(0x15b)]==='function'?_0x3d535a:Promise['resolve']();}const _0xae5d35=Math[_0x17b1f0(0x293)](0x1,Math[_0x17b1f0(0x21f)](Number(process.env.UV_THREADPOOL_SIZE))||0x4),_0x5a5d26=Math[_0x17b1f0(0x293)](0x1,_0xae5d35-0x2);let _0x593dfd=0x0;const _0x57ee42=[];async function _0x2a0af0(_0x223e41){const _0x494c17=_0x17b1f0;if(_0x593dfd<_0x5a5d26)_0x593dfd++;else await new Promise(_0x3448d6=>_0x57ee42['push'](_0x3448d6));try{return await _0x223e41();}finally{const _0x460a2d=_0x57ee42[_0x494c17(0xc1)]();if(_0x460a2d)_0x460a2d();else _0x593dfd--;}}return okdbWriter['exports']=_0x17da11,okdbWriter[_0x17b1f0(0x151)][_0x17b1f0(0x239)]=_0x2a0af0,okdbWriter['exports'][_0x17b1f0(0x283)]=_0x5a5d26,okdbWriter[_0x17b1f0(0x151)]['flushLmdb']=_0x71cff9,okdbWriter[_0x17b1f0(0x151)]['committed']=_0x393db2,okdbWriter[_0x17b1f0(0x151)][_0x17b1f0(0x94)]=_0x1f8797,okdbWriter['exports'];}var okdbLock,hasRequiredOkdbLock;function requireOkdbLock(){const _0x282cc7=_0xa5e620;if(hasRequiredOkdbLock)return okdbLock;hasRequiredOkdbLock=0x1;const _0x49b668=require$$0$3,{SYNC_COMMITS:_0x473a8f}=requireOkdbWriter(),_0x14bfa0=_0x282cc7(0x184);class _0x38fcbd{constructor(_0x151cd0,_0x368d80,_0x9d15){const _0x17789a=_0x282cc7;this['_lock']=_0x151cd0,this[_0x17789a(0x1c7)]=_0x368d80,this['_acquiredAt']=_0x9d15,this['_released']=![],this[_0x17789a(0x178)]=null,this[_0x17789a(0x112)]=null;}['isHeld'](){const _0x77652a=_0x282cc7;if(this['_released'])return![];try{const _0x19e55b=this[_0x77652a(0x285)][_0x77652a(0x1d7)]()['get'](this['_key']);if(!_0x19e55b||_0x19e55b[_0x77652a(0x10b)]!==this[_0x77652a(0x2a1)])return![];const _0x34c47d=_0x19e55b['updatedAt']??_0x19e55b[_0x77652a(0x10b)];if(_0x34c47d+_0x19e55b[_0x77652a(0x212)]<Date[_0x77652a(0x1a7)]())return![];return!![];}catch{return!this[_0x77652a(0x1c0)];}}[_0x282cc7(0x8a)](){const _0x4112a1=_0x282cc7;if(this['_released'])return null;try{return this[_0x4112a1(0x285)][_0x4112a1(0x1d7)]()[_0x4112a1(0x10c)](this['_key'])??null;}catch{return null;}}async[_0x282cc7(0x25c)](_0x450e52){const _0x391d44=_0x282cc7;if(this[_0x391d44(0x1c0)])return;try{if(this[_0x391d44(0x285)][_0x391d44(0x211)]())return;const _0x2f1a41=this[_0x391d44(0x285)][_0x391d44(0x1d7)]()[_0x391d44(0x10c)](this[_0x391d44(0x1c7)]);if(!_0x2f1a41||_0x2f1a41[_0x391d44(0x10b)]!==this['_acquiredAt'])return;if(_0x473a8f)this[_0x391d44(0x285)][_0x391d44(0x1d7)]()[_0x391d44(0x28f)](this[_0x391d44(0x1c7)],{..._0x2f1a41,'ttlMs':_0x2f1a41[_0x391d44(0x212)]+_0x450e52});else await this[_0x391d44(0x285)]['_db']()[_0x391d44(0x1bf)](this[_0x391d44(0x1c7)],{..._0x2f1a41,'ttlMs':_0x2f1a41['ttlMs']+_0x450e52});}catch{}}async[_0x282cc7(0x111)](){const _0xbfa140=_0x282cc7;if(this[_0xbfa140(0x1c0)])return;if(this[_0xbfa140(0x112)])try{await this[_0xbfa140(0x112)];}catch{}clearInterval(this['_heartbeatTimer']),this[_0xbfa140(0x178)]=null,this[_0xbfa140(0x1c0)]=!![];try{if(this['_lock'][_0xbfa140(0x211)]())return;const _0x3c03b6=this[_0xbfa140(0x285)][_0xbfa140(0x1d7)]()[_0xbfa140(0x10c)](this[_0xbfa140(0x1c7)]);if(_0x3c03b6&&_0x3c03b6[_0xbfa140(0x10b)]===this['_acquiredAt']){if(_0x473a8f)this[_0xbfa140(0x285)][_0xbfa140(0x1d7)]()[_0xbfa140(0xd1)](this[_0xbfa140(0x1c7)]);else await this[_0xbfa140(0x285)][_0xbfa140(0x1d7)]()[_0xbfa140(0x21b)](this[_0xbfa140(0x1c7)]);}}catch{}}[_0x282cc7(0x83)](_0x332a56,_0x317f20){const _0x357323=_0x282cc7,_0x386bb4=_0x317f20??Math[_0x357323(0x21f)](_0x332a56/0x3);this[_0x357323(0x178)]=setInterval(()=>{const _0x24fed6=_0x357323;if(this[_0x24fed6(0x1c0)])return;this[_0x24fed6(0x112)]=((async()=>{const _0x628069=_0x24fed6;try{if(this['_lock'][_0x628069(0x211)]())return;const _0x26923e=this[_0x628069(0x285)][_0x628069(0x1d7)]()[_0x628069(0x10c)](this[_0x628069(0x1c7)]);if(!_0x26923e||_0x26923e['acquiredAt']!==this[_0x628069(0x2a1)]){this[_0x628069(0x1c0)]=!![],clearInterval(this['_heartbeatTimer']),this['_heartbeatTimer']=null;return;}if(_0x473a8f)this[_0x628069(0x285)][_0x628069(0x1d7)]()[_0x628069(0x28f)](this['_key'],{..._0x26923e,'updatedAt':Date['now']()});else await this[_0x628069(0x285)][_0x628069(0x1d7)]()[_0x628069(0x1bf)](this[_0x628069(0x1c7)],{..._0x26923e,'updatedAt':Date[_0x628069(0x1a7)]()});}catch{}this['_heartbeatInFlight']=null;})());},_0x386bb4);if(this[_0x357323(0x178)][_0x357323(0x187)])this[_0x357323(0x178)]['unref']();}}class _0x143055{constructor(_0x377fb0,{namespace:_0x285b84,ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}={}){const _0x2e757d=_0x282cc7;this[_0x2e757d(0x1bc)]=_0x377fb0,this[_0x2e757d(0x2a4)]=_0x285b84,this['ttlMs']=ttlMs,this[_0x2e757d(0x15c)]=heartbeatMs,this[_0x2e757d(0x138)]=null;}['_db'](){const _0x2f2e48=_0x282cc7;return this[_0x2f2e48(0x158)](),(!this[_0x2f2e48(0x138)]||this[_0x2f2e48(0x16e)]!==this[_0x2f2e48(0x1bc)])&&(this[_0x2f2e48(0x138)]=this[_0x2f2e48(0x1bc)][_0x2f2e48(0xff)](_0x14bfa0,{'dupSort':![]}),this[_0x2f2e48(0x16e)]=this['_rawDb']),this[_0x2f2e48(0x138)];}[_0x282cc7(0x229)](){const _0x1c9e8f=_0x282cc7;return this[_0x1c9e8f(0x158)](),(!this[_0x1c9e8f(0x2b5)]||this[_0x1c9e8f(0x257)]!==this[_0x1c9e8f(0x1bc)])&&(this[_0x1c9e8f(0x2b5)]=this[_0x1c9e8f(0x1bc)]['openDB'](_0x14bfa0+_0x1c9e8f(0x1f1),{'dupSort':![]}),this[_0x1c9e8f(0x257)]=this[_0x1c9e8f(0x1bc)]),this[_0x1c9e8f(0x2b5)];}[_0x282cc7(0x211)](){const _0x45d407=_0x282cc7,_0x343f52=this[_0x45d407(0x1bc)]?.['status'];return _0x343f52===_0x45d407(0x134)||_0x343f52==='closed';}[_0x282cc7(0x158)](){const _0xec0554=_0x282cc7;if(this['_closed']())throw new Error(_0xec0554(0x1ad));}[_0x282cc7(0x1c7)](_0x302049){return this['namespace']+':'+_0x302049;}[_0x282cc7(0x21a)](_0x46bad0){const _0x2bfc46=_0x282cc7;try{if(this[_0x2bfc46(0x211)]())return;_0x473a8f?this[_0x2bfc46(0x229)]()[_0x2bfc46(0x28f)](this[_0x2bfc46(0x1c7)](_0x46bad0),Date['now']()):this[_0x2bfc46(0x229)]()[_0x2bfc46(0x1bf)](this[_0x2bfc46(0x1c7)](_0x46bad0),Date[_0x2bfc46(0x1a7)]())?.[_0x2bfc46(0x255)]?.(()=>{});}catch{}}[_0x282cc7(0xd6)](_0x3fcc9a,_0x42778f=0x3e8){const _0x723041=_0x282cc7;try{const _0x46d5f6=this[_0x723041(0x229)]()['get'](this[_0x723041(0x1c7)](_0x3fcc9a));return typeof _0x46d5f6==='number'&&Date[_0x723041(0x1a7)]()-_0x46d5f6<_0x42778f;}catch{return![];}}[_0x282cc7(0x2b9)](_0xb3de3){const _0xcc072c=_0x282cc7,_0x555490=_0xb3de3[_0xcc072c(0xfa)]??_0xb3de3[_0xcc072c(0x10b)];return _0x555490+_0xb3de3[_0xcc072c(0x212)]<Date['now']();}static[_0x282cc7(0x240)](_0x5de783){const _0x25fa57=_0x282cc7,_0x3a39ee=_0x5de783?.[_0x25fa57(0x8a)];if(!_0x3a39ee||typeof _0x3a39ee[_0x25fa57(0x1c1)]!==_0x25fa57(0x153))return![];if(_0x3a39ee[_0x25fa57(0xd9)]!==_0x49b668['hostname']())return![];if(_0x3a39ee['pid']===process[_0x25fa57(0x1c1)])return![];try{return process[_0x25fa57(0x14b)](_0x3a39ee[_0x25fa57(0x1c1)],0x0),![];}catch(_0xdb362d){return _0xdb362d['code']===_0x25fa57(0x299);}}async['tryAcquire'](_0x2e6697,_0x4e207b={},_0x3cb67e={}){const _0x122fa9=_0x282cc7,_0xb6f198=this[_0x122fa9(0x1c7)](_0x2e6697),_0x3082ec=_0x3cb67e[_0x122fa9(0x212)]??this['ttlMs'],_0x5419ed=Date[_0x122fa9(0x1a7)](),_0x44d857={'holder':{'pid':process[_0x122fa9(0x1c1)],'hostname':_0x49b668[_0x122fa9(0xd9)](),..._0x4e207b},'acquiredAt':_0x5419ed,'updatedAt':_0x5419ed,'ttlMs':_0x3082ec};let _0x45bb66=![],_0x1a62f4=null;if(this['_closed']())return{'acquired':![],'handle':null,'current':null};try{const _0x8a9ded=()=>{const _0x4b1717=_0x122fa9,_0x520e3f=this[_0x4b1717(0x1d7)]()[_0x4b1717(0x10c)](_0xb6f198);if(_0x520e3f&&!this[_0x4b1717(0x2b9)](_0x520e3f)&&!_0x143055[_0x4b1717(0x240)](_0x520e3f)){const _0x1b4092=_0x4e207b[_0x4b1717(0x23c)]!=null&&_0x520e3f['holder']['pid']===process['pid']&&_0x520e3f[_0x4b1717(0x8a)][_0x4b1717(0x23c)]===_0x4e207b[_0x4b1717(0x23c)];if(!_0x1b4092){_0x45bb66=![],_0x1a62f4=_0x520e3f;return;}_0x44d857[_0x4b1717(0x10b)]<=_0x520e3f['acquiredAt']&&(_0x44d857[_0x4b1717(0x10b)]=_0x520e3f[_0x4b1717(0x10b)]+0x1,_0x44d857[_0x4b1717(0xfa)]=_0x44d857['acquiredAt']);}this[_0x4b1717(0x1d7)]()[_0x4b1717(0x1bf)](_0xb6f198,_0x44d857),_0x45bb66=!![],_0x1a62f4=_0x44d857;};if(_0x473a8f)this[_0x122fa9(0x1d7)]()[_0x122fa9(0x286)](_0x8a9ded);else await this['_db']()[_0x122fa9(0x119)](_0x8a9ded);}catch{return{'acquired':![],'handle':null,'current':null};}if(!_0x45bb66)return{'acquired':![],'handle':null,'current':_0x1a62f4};const _0x21221c=new _0x38fcbd(this,_0xb6f198,_0x44d857['acquiredAt']);return _0x21221c['_startHeartbeat'](_0x3082ec,this[_0x122fa9(0x15c)]),{'acquired':!![],'handle':_0x21221c,'current':_0x1a62f4};}['inspect'](_0x3c365c){const _0x1a6d34=_0x282cc7;try{return this[_0x1a6d34(0x1d7)]()[_0x1a6d34(0x10c)](this[_0x1a6d34(0x1c7)](_0x3c365c))??null;}catch{return null;}}[_0x282cc7(0xc9)](){const _0x51d477=_0x282cc7,_0x2940d5=this[_0x51d477(0x2a4)]+':',_0x3a3a27=[];try{for(const {key:_0x3b6746,value:_0x5c1e33}of this['_db']()['getRange']({'start':_0x2940d5,'end':_0x2940d5+'\xff'})){typeof _0x3b6746===_0x51d477(0x1f5)&&_0x3b6746['startsWith'](_0x2940d5)&&_0x3a3a27['push']({'id':_0x3b6746[_0x51d477(0x219)](_0x2940d5[_0x51d477(0x202)]),'entry':_0x5c1e33});}}catch{}return _0x3a3a27;}static[_0x282cc7(0x20f)](_0x55114e){const _0x58f3be=_0x282cc7,_0x142b07=[];try{const _0x1519ba=_0x55114e[_0x58f3be(0xff)](_0x14bfa0,{'dupSort':![]});for(const {key:_0x5d8ce0,value:_0x464747}of _0x1519ba[_0x58f3be(0x1c6)]({})){if(typeof _0x5d8ce0!==_0x58f3be(0x1f5))continue;const _0x266d4d=_0x5d8ce0['indexOf'](':');if(_0x266d4d<0x1)continue;_0x142b07[_0x58f3be(0x206)]({'namespace':_0x5d8ce0['slice'](0x0,_0x266d4d),'id':_0x5d8ce0[_0x58f3be(0x219)](_0x266d4d+0x1),'entry':_0x464747});}}catch{}return _0x142b07;}}return okdbLock={'OKDBLock':_0x143055},okdbLock;}var version=_0xa5e620(0x19a),require$$6={'version':version},okdbProcessRegistry,hasRequiredOkdbProcessRegistry;function requireOkdbProcessRegistry(){const _0x468433=_0xa5e620;if(hasRequiredOkdbProcessRegistry)return okdbProcessRegistry;hasRequiredOkdbProcessRegistry=0x1;const _0x596be7=require$$0$3,_0x4c308f=require$$1$1,_0x82104=require$$2,{LOOP:_0x2a1fe2}=requireOkdbLoopMonitor(),{OKDBLock:_0x5bf68e}=requireOkdbLock(),{SYNC_COMMITS:_0x3a4305}=requireOkdbWriter(),_0x3e9705=_0x468433(0x24b),_0x1f2a53=_0x468433(0xbb),_0x432641=_0x468433(0x29a),_0x4e0e8d='~processes:cmd',_0x4b3643=(_0x17355e,_0xb6cae0)=>_0x17355e+':'+_0xb6cae0,_0x50f8d3=(_0x4c2f0b,_0x44d808)=>_0x4c2f0b+'::'+_0x44d808,_0x5bab41=(_0x5b2e60,_0x4dd641)=>_0x5b2e60+'/'+_0x4dd641,_0x5a2ed8=(_0x374b44,_0x497725)=>_0x374b44+'#'+_0x497725,_0x46d951=_0x1b7090=>{const _0x5156ee=_0x468433;if(_0x1b7090?.[_0x5156ee(0x20b)])return _0x1b7090[_0x5156ee(0x20b)];const _0xd112b9=_0x1b7090?.['nodeKey'];return typeof _0xd112b9===_0x5156ee(0x1f5)&&_0xd112b9[_0x5156ee(0x228)]('#')?_0xd112b9[_0x5156ee(0x219)](0x0,_0xd112b9[_0x5156ee(0x1e9)]('#')):_0xd112b9;},_0x37d55a=Number(process.env.OKDB_WORKERS_HEARTBEAT_MS)||0x2710,_0x1b0310=Number(process.env.OKDB_WORKERS_PUBLISH_MS)||0x3e8,_0x410fca=_0x37d55a*0x3,_0x27c1a3=Number(process.env.OKDB_PID_REUSE_HORIZON_MS)||Math[_0x468433(0x293)](0x927c0,_0x410fca*0x14),_0x47f7c3=[_0x468433(0x18d),'processor:ready','processor:retry',_0x468433(0x195),_0x468433(0xc8),_0x468433(0x141)];let _0x14d4f4=null;function _0x53fc56(){const _0x218651=_0x468433;if(_0x14d4f4==null)_0x14d4f4=Math['round']((Date[_0x218651(0x1a7)]()-process[_0x218651(0x192)]()*0x3e8)/0x3e8)*0x3e8;return _0x14d4f4;}function _0x53a4d6(_0x1c6b9c){const _0x3660ac=_0x468433;if(process.env.OKDB_PROCESS_KILL===_0x3660ac(0xf3))return![];if(_0x1c6b9c?.[_0x3660ac(0x1b1)]?.[_0x3660ac(0xeb)]&&typeof _0x1c6b9c[_0x3660ac(0x1b1)]['processes']===_0x3660ac(0x14c)&&_0x1c6b9c[_0x3660ac(0x1b1)][_0x3660ac(0xeb)][_0x3660ac(0x14b)]===![])return![];return!![];}function _0x26c283(_0x4ba61b,_0x591d4e){const _0x180b42=_0x468433,_0x1d2565=!!_0x591d4e?.[_0x180b42(0x1ce)];switch(_0x4ba61b){case'primary':return{'controllable':_0x1d2565,'decommissionable':![],'killable':!![],'killConfirm':_0x180b42(0x2ab)};case _0x180b42(0x1ff):case _0x180b42(0x144):return{'controllable':_0x1d2565,'decommissionable':![],'killable':!![],'killConfirm':_0x180b42(0x238)};case _0x180b42(0x1fb):return{'controllable':![],'decommissionable':![],'killable':![]};case'http-server':case _0x180b42(0x1cd):case _0x180b42(0x1f7):case _0x180b42(0x12b):return{'controllable':![],'decommissionable':!![],'killable':!![],'killConfirm':'force'};default:return{'controllable':![],'decommissionable':![],'killable':![]};}}class _0x1f04cf{constructor(_0x408dae){const _0x4e6207=_0x468433;this['okdb']=_0x408dae,this[_0x4e6207(0xe3)]=null,this['_desired']=null,this['_desiredOverlay']=new Map(),this[_0x4e6207(0x2c3)]=null,this[_0x4e6207(0x222)]=![],this[_0x4e6207(0x1c9)]=![],this[_0x4e6207(0x297)]=_0x53fc56(),this[_0x4e6207(0x135)]=_0x4b3643(process['pid'],this[_0x4e6207(0x297)]),this[_0x4e6207(0x15f)]=_0x82104[_0x4e6207(0xe4)]()['slice'](0x0,0x8),this['_rowKey']=_0x5a2ed8(this[_0x4e6207(0x135)],this[_0x4e6207(0x15f)]),this['_startedAt']=Date['now'](),this[_0x4e6207(0x181)]=null,this[_0x4e6207(0x1ca)]=null,this[_0x4e6207(0x137)]=null,this[_0x4e6207(0x294)]=null,this[_0x4e6207(0x9a)]=null,this['_onTick']=null,this[_0x4e6207(0xa3)]=0x0,this[_0x4e6207(0x2a5)]={},this[_0x4e6207(0x15d)]=new Map(),this[_0x4e6207(0x155)]=process[_0x4e6207(0xa6)](),this['_lastCpuAt']=Date[_0x4e6207(0x1a7)](),this['_lastCpuPct']=0x0,this['_threadStats']=new Map();}get[_0x468433(0x263)](){const _0x5e47db=_0x468433;return this[_0x5e47db(0x135)];}get[_0x468433(0x1d0)](){return this['_rowKey'];}[_0x468433(0x85)](_0x3894c5,_0x41dc76){const _0x2c55e6=_0x468433,_0x3d5bf3=_0x26c283(_0x3894c5,_0x41dc76);if(_0x3d5bf3[_0x2c55e6(0x25a)]&&!_0x53a4d6(this[_0x2c55e6(0x2a9)]))return{..._0x3d5bf3,'killable':![],'killConfirm':undefined};return _0x3d5bf3;}[_0x468433(0x132)](){return!!this['_statusEnv'];}[_0x468433(0x1d8)](_0x3c8a59){const _0x1791ed=_0x468433;Object['assign'](this[_0x1791ed(0x2a5)],_0x3c8a59||{});}[_0x468433(0x277)](_0x1f56cd){const _0x1b719d=_0x468433;if(_0x1f56cd)this[_0x1b719d(0x137)]=_0x1f56cd;}[_0x468433(0x133)](_0xd23189={}){const _0x4deb86=_0x468433;return this['okdb'][_0x4deb86(0x1af)](_0xd23189);}[_0x468433(0x162)](){const _0x11aada=_0x468433,_0x94bf62={};let _0x566d5b=0x0,_0x3f0f0c=0x0;const _0x5cb8ac=new Set();for(const _0x2070b7 of this['listNodes']()){_0x3f0f0c++;const _0xe19bca=_0x2070b7[_0x11aada(0x2c7)];if(!_0xe19bca)continue;if(_0xe19bca[_0x11aada(0x1e8)])_0x566d5b++;for(const _0xd3cc80 of _0xe19bca[_0x11aada(0x1ce)]||[]){if(![_0x11aada(0xb4),_0x11aada(0xd5)][_0x11aada(0x228)](_0xd3cc80[_0x11aada(0xbc)]))continue;(_0xd3cc80[_0x11aada(0x16d)]===_0x11aada(0x1e4)||_0xd3cc80[_0x11aada(0x16d)]===_0x11aada(0x22d))&&_0xd3cc80['cursorKey']&&_0x5cb8ac[_0x11aada(0x1f0)]((_0xd3cc80['env']||_0x11aada(0x209))+':'+_0xd3cc80[_0x11aada(0x1c4)]);const _0x22c7ed=_0xd3cc80['env']||_0x11aada(0x209);(_0x94bf62[_0x22c7ed]||=[])[_0x11aada(0x206)]({..._0xd3cc80,'env':_0x22c7ed,'owner':{'pid':_0x2070b7['pid']??null,'kind':_0x2070b7[_0x11aada(0x194)]??null}});}}for(const [_0x129b29,_0x3826f3]of Object[_0x11aada(0x157)](_0x94bf62)){for(const _0x27209a of _0x3826f3){if(_0x27209a['mode']==='single'&&!_0x27209a[_0x11aada(0xed)]){const _0xddee0b=_0x129b29+':'+(_0x27209a['cursorKey']??'');if(!_0x5cb8ac[_0x11aada(0x274)](_0xddee0b))_0x27209a['unclaimed']=!![];}}}return{'envs':_0x94bf62,'policy':null,'participation':{'participating':_0x566d5b,'total':_0x3f0f0c},'source':_0x11aada(0xb9)};}[_0x468433(0xe8)](){const _0xcbd480=_0x468433,_0x1ecce8=_0x35f9eb=>{const _0x31ea2c=_0x70ef;if(_0x35f9eb[_0x31ea2c(0x16d)]===_0x31ea2c(0x1e4)||_0x35f9eb[_0x31ea2c(0x16d)]==='building'||_0x35f9eb[_0x31ea2c(0x16d)]===_0x31ea2c(0x110))return 0x3;if(_0x35f9eb[_0x31ea2c(0xed)])return 0x1;return 0x2;},_0x25420c=new Map();for(const _0x3be3ac of this[_0xcbd480(0x16c)]()){for(const _0x93cc4e of _0x3be3ac[_0xcbd480(0x2c7)]?.[_0xcbd480(0x1ce)]||[]){const _0x47ab95={..._0x93cc4e,'owner':{'pid':_0x3be3ac['pid']??null,'kind':_0x3be3ac[_0xcbd480(0x194)]??null,'host':_0x3be3ac[_0xcbd480(0x199)]??null}},_0x1af738=_0x93cc4e['mode']==='single'?_0xcbd480(0x2ac)+(_0x93cc4e[_0xcbd480(0x11d)]??'')+'::'+(_0x93cc4e[_0xcbd480(0x1c4)]??_0x93cc4e[_0xcbd480(0x15a)]??_0x93cc4e['id']):'inst:'+(_0x3be3ac['nodeKey']??_0x3be3ac[_0xcbd480(0x20b)]??'')+'::'+(_0x93cc4e['env']??'')+'::'+_0x93cc4e['id'],_0x3d31f2=_0x25420c[_0xcbd480(0x10c)](_0x1af738);if(!_0x3d31f2||_0x1ecce8(_0x47ab95)>_0x1ecce8(_0x3d31f2))_0x25420c[_0xcbd480(0x198)](_0x1af738,_0x47ab95);}}return[..._0x25420c[_0xcbd480(0x179)]()];}[_0x468433(0x217)](){const _0x23a44b=_0x468433,_0x2b8899=Date['now'](),_0x2684dd=this['listNodes'](),_0x512197=_0x4716a7=>Math['max'](0x0,Math[_0x23a44b(0x92)]((_0x2b8899-(_0x4716a7[_0x23a44b(0x12c)]||_0x2b8899))/0x3e8)),_0x3098ef=_0x2684dd[_0x23a44b(0x121)](_0x37ce2b=>_0x37ce2b['kind']===_0x23a44b(0x11f)),_0x324361=_0x2684dd[_0x23a44b(0xda)](_0x18a890=>_0x18a890[_0x23a44b(0x194)]===_0x23a44b(0x268));if(_0x3098ef||_0x324361[_0x23a44b(0x202)])return{'primary':_0x3098ef?{'pid':_0x3098ef[_0x23a44b(0x1c1)],'uptime':_0x512197(_0x3098ef)}:null,'workers':_0x324361[_0x23a44b(0xcc)](_0x4ffc02=>({'pid':_0x4ffc02[_0x23a44b(0x1c1)],'uptime':_0x512197(_0x4ffc02)})),'workersConfigured':_0x3098ef?.[_0x23a44b(0x9d)]?.[_0x23a44b(0x276)]??_0x324361[_0x23a44b(0x202)],'mode':'cluster'};const _0x4eb923=_0x2684dd['find'](_0x460bde=>_0x460bde[_0x23a44b(0x194)]==='cli'||_0x460bde[_0x23a44b(0x194)]===_0x23a44b(0x144)||_0x460bde[_0x23a44b(0x194)]===_0x23a44b(0x1fb)),_0xc642bb=_0x4eb923?{'pid':_0x4eb923[_0x23a44b(0x1c1)],'uptime':_0x512197(_0x4eb923)}:{'pid':process['pid'],'uptime':Math[_0x23a44b(0x293)](0x0,Math['round'](process[_0x23a44b(0x192)]()))};return{'primary':_0xc642bb,'workers':[_0xc642bb],'workersConfigured':0x1,'mode':_0x23a44b(0xb4)};}[_0x468433(0x244)](){const _0x530d9c=_0x468433;return this[_0x530d9c(0x93)]();}['treeView'](){const _0x3f843f=_0x468433,_0x34dd30=new Map();for(const _0x59f8e2 of this[_0x3f843f(0x93)]())_0x34dd30[_0x3f843f(0x198)](_0x59f8e2[_0x3f843f(0x20b)],{..._0x59f8e2,'children':[]});const _0x34434e=[];for(const _0x1f2b4d of _0x34dd30['values']()){const _0x15b797=_0x1f2b4d['supervisorKey']?_0x34dd30[_0x3f843f(0x10c)](_0x1f2b4d[_0x3f843f(0x22c)]):null;if(_0x15b797&&_0x15b797!==_0x1f2b4d)_0x15b797[_0x3f843f(0x159)][_0x3f843f(0x206)](_0x1f2b4d);else _0x34434e['push'](_0x1f2b4d);}const _0x2bde8a=(_0x4545ba,_0x59238b)=>_0x4545ba[_0x3f843f(0x194)]===_0x59238b['kind']?(_0x4545ba['pid']||0x0)-(_0x59238b['pid']||0x0):(_0x4545ba['kind']??'')<(_0x59238b[_0x3f843f(0x194)]??'')?-0x1:0x1,_0x2cf9e4=_0x25f110=>{const _0x2772e0=_0x3f843f;_0x25f110[_0x2772e0(0x117)](_0x2bde8a);for(const _0x18f034 of _0x25f110)if(_0x18f034[_0x2772e0(0x159)][_0x2772e0(0x202)])_0x2cf9e4(_0x18f034['children']);};return _0x2cf9e4(_0x34434e),_0x34434e;}[_0x468433(0x104)](_0x4e1efb){const _0x368092=_0x468433;return this['_groupByProcess']()[_0x368092(0x121)](_0x3ad231=>_0x3ad231[_0x368092(0x20b)]===_0x4e1efb)??null;}['_groupByProcess'](_0x2a8292=Date[_0x468433(0x1a7)]()){const _0x4dbf84=_0x468433,_0x37ff39=new Map();for(const _0x4dc62f of this[_0x4dbf84(0x16c)]()){const _0x4ad93e=_0x46d951(_0x4dc62f);let _0x224fa0=_0x37ff39[_0x4dbf84(0x10c)](_0x4ad93e);!_0x224fa0&&(_0x224fa0={'processKey':_0x4ad93e,'nodeKey':_0x4ad93e,'pid':_0x4dc62f[_0x4dbf84(0x1c1)],'ppid':_0x4dc62f[_0x4dbf84(0x298)]??null,'host':_0x4dc62f[_0x4dbf84(0x199)]??null,'kind':_0x4dc62f[_0x4dbf84(0x194)],'role':null,'supervisorKey':_0x4dc62f[_0x4dbf84(0x22c)]??null,'slot':_0x4dc62f[_0x4dbf84(0x12e)]??null,'slotKey':_0x4dc62f[_0x4dbf84(0x215)]??null,'caps':_0x4dc62f[_0x4dbf84(0x247)]??null,'lifecycle':_0x4dc62f[_0x4dbf84(0x2c8)]??null,'uptime':Math[_0x4dbf84(0x293)](0x0,Math[_0x4dbf84(0x92)]((_0x2a8292-(_0x4dc62f[_0x4dbf84(0x12c)]||_0x2a8292))/0x3e8)),'startedAt':_0x4dc62f[_0x4dbf84(0x12c)]??null,'meta':_0x4dc62f[_0x4dbf84(0x9d)]??null,'listenAddr':null,'processing':null,'engines':null,'singletonClaims':null,'stats':null,'instances':[]},_0x37ff39[_0x4dbf84(0x198)](_0x4ad93e,_0x224fa0));_0x224fa0[_0x4dbf84(0x126)][_0x4dbf84(0x206)]({'instanceId':_0x4dc62f[_0x4dbf84(0x161)]??null,'role':_0x4dc62f[_0x4dbf84(0x27c)]??null,'listenAddr':_0x4dc62f[_0x4dbf84(0xf9)]??null,'lifecycle':_0x4dc62f['lifecycle']??null,'processing':_0x4dc62f[_0x4dbf84(0x2c7)]??null});if(!_0x224fa0[_0x4dbf84(0x27c)]&&_0x4dc62f['role'])_0x224fa0[_0x4dbf84(0x27c)]=_0x4dc62f['role'];if(!_0x224fa0[_0x4dbf84(0xf9)]&&_0x4dc62f[_0x4dbf84(0xf9)])_0x224fa0[_0x4dbf84(0xf9)]=_0x4dc62f[_0x4dbf84(0xf9)];if(!_0x224fa0['processing']&&_0x4dc62f[_0x4dbf84(0x2c7)])_0x224fa0['processing']=_0x4dc62f[_0x4dbf84(0x2c7)];if(!_0x224fa0['engines']&&_0x4dc62f['engines'])_0x224fa0[_0x4dbf84(0xa0)]=_0x4dc62f['engines'];if(!_0x224fa0['singletonClaims']&&_0x4dc62f[_0x4dbf84(0x1bd)])_0x224fa0[_0x4dbf84(0x1bd)]=_0x4dc62f[_0x4dbf84(0x1bd)];if(_0x224fa0[_0x4dbf84(0x247)]==null&&_0x4dc62f['caps'])_0x224fa0[_0x4dbf84(0x247)]=_0x4dc62f[_0x4dbf84(0x247)];if(_0x4dc62f[_0x4dbf84(0x2b4)]&&(!_0x224fa0[_0x4dbf84(0x2b4)]||(_0x4dc62f[_0x4dbf84(0x2b4)]['at']??0x0)>(_0x224fa0[_0x4dbf84(0x2b4)]['at']??0x0)))_0x224fa0[_0x4dbf84(0x2b4)]=_0x4dc62f[_0x4dbf84(0x2b4)];}return[..._0x37ff39[_0x4dbf84(0x179)]()];}[_0x468433(0x156)](){const _0x2e31a9=_0x468433,_0x2b6221=[],_0x6d5cb={'rss':0x0,'heapUsed':0x0,'processes':0x0,'threads':{'count':0x0,'sandbox':0x0,'busy':0x0}};for(const _0x1f0697 of this[_0x2e31a9(0x93)]()){_0x2b6221[_0x2e31a9(0x206)]({'processKey':_0x1f0697['processKey'],'kind':_0x1f0697[_0x2e31a9(0x194)],'pid':_0x1f0697[_0x2e31a9(0x1c1)],'supervisorKey':_0x1f0697[_0x2e31a9(0x22c)],'meta':_0x1f0697[_0x2e31a9(0x9d)]??null,'uptime':_0x1f0697[_0x2e31a9(0x192)],'stats':_0x1f0697[_0x2e31a9(0x2b4)]??null}),_0x6d5cb[_0x2e31a9(0xeb)]++;if(_0x1f0697['stats']){_0x6d5cb[_0x2e31a9(0x108)]+=_0x1f0697['stats'][_0x2e31a9(0x108)]||0x0,_0x6d5cb[_0x2e31a9(0x21d)]+=(_0x1f0697[_0x2e31a9(0x2b4)][_0x2e31a9(0x21d)]||0x0)+(_0x1f0697[_0x2e31a9(0x2b4)]['threads']?.[_0x2e31a9(0x21d)]||0x0);const _0x2ff0b8=_0x1f0697[_0x2e31a9(0x2b4)]['threads'];_0x2ff0b8&&(_0x6d5cb[_0x2e31a9(0x1b0)][_0x2e31a9(0x1e1)]+=_0x2ff0b8[_0x2e31a9(0x1e1)]||0x0,_0x6d5cb[_0x2e31a9(0x1b0)][_0x2e31a9(0x1f8)]+=_0x2ff0b8[_0x2e31a9(0x1f8)]||0x0,_0x6d5cb[_0x2e31a9(0x1b0)]['busy']+=_0x2ff0b8[_0x2e31a9(0x14a)]||0x0);}}return{'totals':_0x6d5cb,'nodes':_0x2b6221};}async[_0x468433(0x1cb)]({writer:writer=![],reader:reader=![],kind:kind=null,supervisorKey:supervisorKey=null,listenAddr:listenAddr=null}={}){const _0x1cc9ba=_0x468433;this[_0x1cc9ba(0x222)]=this[_0x1cc9ba(0x222)]||!!writer,this[_0x1cc9ba(0x1c9)]=this[_0x1cc9ba(0x1c9)]||!!reader,this[_0x1cc9ba(0x181)]=kind||this[_0x1cc9ba(0x181)]||(_0x4c308f[_0x1cc9ba(0x172)]?_0x1cc9ba(0x268):'cli'),this[_0x1cc9ba(0x1ca)]=supervisorKey??this[_0x1cc9ba(0x1ca)],this['_listenAddr']=listenAddr??this[_0x1cc9ba(0x137)],this[_0x1cc9ba(0x16b)](),await this[_0x1cc9ba(0x196)]();if(!writer&&!reader)return null;if(!this[_0x1cc9ba(0xe3)]){const _0x3b750a=await this[_0x1cc9ba(0x2a9)][_0x1cc9ba(0x183)](_0x3e9705,{'sync':![],'durability':_0x1cc9ba(0xdd)});await _0x3b750a['ensureType'](_0x1f2a53),this['_statusEnv']=_0x3b750a;}return this['_statusEnv'];}[_0x468433(0x185)](){const _0x23d6fb=_0x468433;return this[_0x23d6fb(0x10f)]!==this[_0x23d6fb(0xe3)]&&(this[_0x23d6fb(0x10f)]=this[_0x23d6fb(0xe3)],this[_0x23d6fb(0x1b8)]=this[_0x23d6fb(0xe3)][_0x23d6fb(0xbd)](_0x1f2a53)['data']),this[_0x23d6fb(0x1b8)];}[_0x468433(0x12a)](_0x3c699d){const _0xd04502=_0x468433;if(_0x3a4305)return this[_0xd04502(0x185)]()[_0xd04502(0x28f)](_0x3c699d[_0xd04502(0x125)],_0x3c699d,0x1);const _0x454a4d=this[_0xd04502(0x185)]()[_0xd04502(0x1bf)](_0x3c699d[_0xd04502(0x125)],_0x3c699d,0x1);if(_0x454a4d&&typeof _0x454a4d['then']===_0xd04502(0xc0))_0x454a4d['then'](undefined,()=>{});return _0x454a4d;}[_0x468433(0x295)](_0x179d00){const _0x543628=_0x468433;return this[_0x543628(0x185)]()[_0x543628(0x28f)](_0x179d00['nodeKey'],_0x179d00,0x1);}[_0x468433(0x20d)](_0x3611d3){const _0x3ae8fe=_0x468433;if(_0x3a4305)try{return this['_nodeDb']()['removeSync'](_0x3611d3);}catch{return![];}const _0x5cde65=this[_0x3ae8fe(0x185)]()[_0x3ae8fe(0x21b)](_0x3611d3);if(_0x5cde65&&typeof _0x5cde65[_0x3ae8fe(0x15b)]==='function')_0x5cde65[_0x3ae8fe(0x15b)](undefined,()=>{});return _0x5cde65;}async['putNode'](_0x1706c1){const _0x182c12=_0x468433;if(!this[_0x182c12(0xe3)]||!this[_0x182c12(0x222)]||!_0x1706c1?.['nodeKey'])return;return this[_0x182c12(0x12a)](_0x1706c1);}async[_0x468433(0x18e)](_0x1fd67d){const _0x27f8b4=_0x468433;if(!this['_statusEnv']||!this[_0x27f8b4(0x222)]||!_0x1fd67d)return;const _0x5f2896=_0x1fd67d['includes']('#'),_0x57a1de=[];for(const {key:_0x5e0299}of this[_0x27f8b4(0xe3)][_0x27f8b4(0x1c6)](_0x1f2a53)){if(_0x5e0299===_0x1fd67d||!_0x5f2896&&typeof _0x5e0299===_0x27f8b4(0x1f5)&&_0x5e0299[_0x27f8b4(0xf0)](_0x1fd67d+'#'))_0x57a1de[_0x27f8b4(0x206)](_0x5e0299);}for(const _0x12f6a1 of _0x57a1de){try{this[_0x27f8b4(0x185)]()[_0x27f8b4(0xd1)](_0x12f6a1);}catch{}}}[_0x468433(0x203)](_0x574772){const _0xf1c9cd=_0x468433;if(typeof _0x574772?.['pid']!==_0xf1c9cd(0x153))return![];if(_0x574772[_0xf1c9cd(0x199)]!==_0x596be7[_0xf1c9cd(0xd9)]())return![];if(_0x574772[_0xf1c9cd(0x1c1)]===process['pid'])return![];if(_0x574772[_0xf1c9cd(0x17f)]!=null&&_0x574772[_0xf1c9cd(0x17f)]<Date[_0xf1c9cd(0x1a7)]()-_0x27c1a3)return!![];try{return process[_0xf1c9cd(0x14b)](_0x574772[_0xf1c9cd(0x1c1)],0x0),![];}catch(_0x2cfcd6){return _0x2cfcd6[_0xf1c9cd(0x1be)]===_0xf1c9cd(0x299);}}[_0x468433(0x16c)](){const _0x4666ca=_0x468433;if(!this['_statusEnv'])return[];try{this['_statusEnv']['db']?.[_0x4666ca(0x253)]?.();}catch{}const _0x17c6fa=Date[_0x4666ca(0x1a7)](),_0x2007e1=_0x596be7[_0x4666ca(0xd9)](),_0x159afd=[];for(const {value:_0x3084de}of this[_0x4666ca(0xe3)][_0x4666ca(0x1c6)](_0x1f2a53)){if(!_0x3084de)continue;let _0x3f12e3=null;_0x3084de[_0x4666ca(0x199)]===_0x2007e1&&typeof _0x3084de[_0x4666ca(0x1c1)]===_0x4666ca(0x153)&&(_0x3f12e3=!this['_nodeDead'](_0x3084de));if(_0x3f12e3===![])continue;const _0x1039ca=_0x3084de[_0x4666ca(0x17f)]==null||_0x3084de['expiresAt']>=_0x17c6fa;if(_0x3f12e3===!![]||_0x1039ca)_0x159afd['push'](_0x3084de);}return _0x159afd;}async[_0x468433(0x291)](_0x1f48a6=0x0){const _0x267695=_0x468433;if(!this['_statusEnv']||!this[_0x267695(0x222)])return;const _0x3f43c5=Date['now']()-_0x1f48a6,_0x1a8ff8=new Set(),_0xec2674=[],_0xabc629=_0x596be7[_0x267695(0xd9)](),_0x4488e8=require$$6[_0x267695(0xf6)];for(const {key:_0x4d5a5e,value:_0x49e74c}of this['_statusEnv'][_0x267695(0x1c6)](_0x1f2a53)){if(!_0x49e74c)continue;const _0x2dd2d4=_0x49e74c[_0x267695(0x199)]===_0xabc629&&typeof _0x49e74c[_0x267695(0x1c1)]===_0x267695(0x153),_0x55103a=_0x2dd2d4?this[_0x267695(0x203)](_0x49e74c):_0x49e74c[_0x267695(0x17f)]!=null&&_0x49e74c['expiresAt']<_0x3f43c5;if(_0x55103a)_0xec2674['push'](_0x4d5a5e);else{_0x1a8ff8['add'](_0x46d951(_0x49e74c)??_0x4d5a5e);if(_0x49e74c[_0x267695(0xf6)]&&_0x49e74c[_0x267695(0xf6)]!==_0x4488e8){if(!this[_0x267695(0xe5)])this['_versionSkewWarned']=new Set();!this['_versionSkewWarned'][_0x267695(0x274)](_0x49e74c[_0x267695(0xf6)])&&(this['_versionSkewWarned'][_0x267695(0x1f0)](_0x49e74c[_0x267695(0xf6)]),this['okdb'][_0x267695(0x88)]?.[_0x267695(0xdb)]?.(_0x267695(0xb2)+(_0x49e74c['pid']??'?')+_0x267695(0xb1)+_0x49e74c[_0x267695(0xf6)]+'\x20while\x20this\x20process\x20runs\x20'+_0x4488e8+'\x20—\x20'+_0x267695(0x17e),{'feature':_0x267695(0x213)}));}}}for(const _0x47208c of _0xec2674)this[_0x267695(0x20d)](_0x47208c);if(this[_0x267695(0x16b)]()){const _0x4b9868=[];for(const {key:_0x42c794}of this[_0x267695(0x1f6)](_0x267695(0xbb))){if(!_0x1a8ff8[_0x267695(0x274)](_0x42c794)){if(_0x3a4305)try{this['_desired'][_0x267695(0xd1)](_0x267695(0x24f)+_0x42c794);}catch{}else _0x4b9868[_0x267695(0x206)](this['_desired'][_0x267695(0x21b)](_0x267695(0x24f)+_0x42c794));}}if(_0x4b9868[_0x267695(0x202)])await Promise['allSettled'](_0x4b9868);}}[_0x468433(0x287)](_0x1fa9d2=null){const _0x23aa61=_0x468433;if(this[_0x23aa61(0x294)])return;if(!this[_0x23aa61(0x222)]||!this[_0x23aa61(0xe3)]){this['okdb']?.['log']?.[_0x23aa61(0xdb)]?.(_0x23aa61(0x142)+this['_isWriter']+_0x23aa61(0x278)+!!this[_0x23aa61(0xe3)]+_0x23aa61(0x128),{'feature':_0x23aa61(0xeb)});return;}this[_0x23aa61(0x1d4)]=_0x1fa9d2,this[_0x23aa61(0x9a)]=()=>this[_0x23aa61(0xc7)]();for(const _0x451c9c of _0x47f7c3)this['okdb'][_0x23aa61(0x234)]['on'](_0x451c9c,this[_0x23aa61(0x9a)]);this['_publishNow']();const _0x4bd653=Number(process.env.OKDB_WORKERS_HEARTBEAT_MS)||_0x37d55a;this[_0x23aa61(0x294)]=setInterval(()=>{const _0x3e5a0f=_0x23aa61;if(this['_onTick'])try{this[_0x3e5a0f(0x1d4)]();}catch{}this[_0x3e5a0f(0x25b)](),this[_0x3e5a0f(0x291)]()[_0x3e5a0f(0x255)](()=>{});},_0x4bd653);if(this[_0x23aa61(0x294)][_0x23aa61(0x187)])this[_0x23aa61(0x294)]['unref']();}[_0x468433(0xc7)](){const _0x5287ca=_0x468433;if(!this['_isWriter']||!this[_0x5287ca(0xe3)])return;if(Date['now']()-this['_lastPublishAt']<_0x1b0310)return;this[_0x5287ca(0x25b)]();}[_0x468433(0x25b)](){const _0x5f0985=_0x468433;if(!this[_0x5f0985(0x222)]||!this[_0x5f0985(0xe3)])return;this[_0x5f0985(0xa3)]=Date[_0x5f0985(0x1a7)]();try{const _0x4dfd4a=[this[_0x5f0985(0x95)]()];for(const _0xce78a6 of this[_0x5f0985(0x15d)]['values']())_0x4dfd4a[_0x5f0985(0x206)](this['_buildChildRow'](_0xce78a6));const _0x4ba99b=_0x2a1fe2[_0x5f0985(0x1a6)]?_0x2a1fe2[_0x5f0985(0x1a7)]():0x0;for(const _0x1cb682 of _0x4dfd4a){try{this[_0x5f0985(0x295)](_0x1cb682),this[_0x5f0985(0x106)]=![];}catch(_0x27d4bf){!this[_0x5f0985(0x106)]&&(this[_0x5f0985(0x106)]=!![],this[_0x5f0985(0x2a9)]?.['log']?.[_0x5f0985(0xdb)]?.(_0x5f0985(0x292)+_0x27d4bf[_0x5f0985(0x28a)],{'feature':_0x5f0985(0xeb)}));}}if(_0x2a1fe2[_0x5f0985(0x1a6)])_0x2a1fe2[_0x5f0985(0xf1)](_0x5f0985(0x12f),_0x2a1fe2[_0x5f0985(0x1a7)]()-_0x4ba99b,_0x5f0985(0x123)+_0x4dfd4a[_0x5f0985(0x202)]+_0x5f0985(0x20a));}catch(_0x54e24e){!this[_0x5f0985(0x106)]&&(this[_0x5f0985(0x106)]=!![],this[_0x5f0985(0x2a9)]?.[_0x5f0985(0x88)]?.[_0x5f0985(0xdb)]?.('registry\x20publish\x20failing:\x20'+_0x54e24e['message'],{'feature':'processes'}));}}async[_0x468433(0x261)](){const _0x556ff5=_0x468433;if(this[_0x556ff5(0x9a)]){for(const _0x19fe99 of _0x47f7c3){try{this['okdb'][_0x556ff5(0x234)][_0x556ff5(0xf3)](_0x19fe99,this[_0x556ff5(0x9a)]);}catch{}}this[_0x556ff5(0x9a)]=null;}this['_hbTimer']&&(clearInterval(this[_0x556ff5(0x294)]),this[_0x556ff5(0x294)]=null);try{if(this['_statusEnv']&&this[_0x556ff5(0x222)])await this[_0x556ff5(0x18e)](this[_0x556ff5(0x2b0)]);}catch{}}async['deregisterSelf'](){const _0x4ea4fe=_0x468433;if(!this[_0x4ea4fe(0xe3)]||!this[_0x4ea4fe(0x222)])return;try{await this['removeNode'](this['_rowKey']);}catch{}try{const _0xdcae56=[];for(const {value:_0x313dd0}of this['_statusEnv'][_0x4ea4fe(0x1c6)](_0x1f2a53)){if(_0x313dd0?.['ppid']===process[_0x4ea4fe(0x1c1)]&&_0x313dd0[_0x4ea4fe(0x125)])_0xdcae56[_0x4ea4fe(0x206)](_0x313dd0['nodeKey']);}for(const _0x2e7e29 of _0xdcae56){try{await this['removeNode'](_0x2e7e29);}catch{}}}catch{}}async['publishOwnRow'](){const _0x595c8b=_0x468433;return this[_0x595c8b(0x262)](this[_0x595c8b(0x95)]());}async[_0x468433(0xa5)](_0x435459){const _0x5a09e4=_0x468433;if(!this[_0x5a09e4(0xe3)]||!this[_0x5a09e4(0x222)])return;return this[_0x5a09e4(0x262)](this[_0x5a09e4(0x216)](_0x435459));}['_buildChildRow']({pid:_0x226f28,startedAt:_0x40cf6d,kind:_0x53ae26,supervisorKey:_0x5acbd9,slot:slot=null,slotKey:slotKey=null,role:role={},listenAddr:listenAddr=null,processing:processing=null,lifecycle:lifecycle=_0x468433(0x190),meta:meta=null,stats:stats=null}){const _0x3f1b58=_0x468433,_0x55647a=Date[_0x3f1b58(0x1a7)](),_0x40fbd4=_0x4b3643(_0x226f28,_0x40cf6d);return{'nodeKey':_0x5a2ed8(_0x40fbd4,'0'),'processKey':_0x40fbd4,'instanceId':'0','pid':_0x226f28,'startedAt':_0x40cf6d,'ppid':process[_0x3f1b58(0x1c1)],'host':_0x596be7[_0x3f1b58(0xd9)](),'supervisorKey':_0x5acbd9,'slot':slot,'slotKey':slotKey,'kind':_0x53ae26,'role':role,'listenAddr':listenAddr,'heartbeatAt':_0x55647a,'expiresAt':_0x55647a+_0x410fca,'caps':this[_0x3f1b58(0x85)](_0x53ae26,role),'lifecycle':{'state':lifecycle,'desiredVersionApplied':null},'processing':processing,'meta':meta,'stats':stats};}async['addSupervisedChild'](_0x284f0d){const _0x263c2b=_0x468433;if(!_0x284f0d?.[_0x263c2b(0x1c1)])return null;const _0x4ba729=_0x4b3643(_0x284f0d[_0x263c2b(0x1c1)],_0x284f0d[_0x263c2b(0x12c)]);this[_0x263c2b(0x15d)]['set'](_0x4ba729,{..._0x284f0d,'supervisorKey':_0x284f0d[_0x263c2b(0x22c)]??this[_0x263c2b(0x135)]});if(this[_0x263c2b(0x222)])await this[_0x263c2b(0xa5)](this[_0x263c2b(0x15d)]['get'](_0x4ba729))['catch']?.(()=>{});return _0x4ba729;}['removeSupervisedChild'](_0x2754f8){const _0x576e41=_0x468433;if(!_0x2754f8)return;return this[_0x576e41(0x15d)][_0x576e41(0x200)](_0x2754f8),this[_0x576e41(0x18e)](_0x2754f8);}['_sampleOwnStats'](){const _0xefab88=_0x468433,_0x3264e7=Date[_0xefab88(0x1a7)](),_0x52d41d=process[_0xefab88(0xa6)](),_0x5cd8f6=(_0x3264e7-this['_lastCpuAt'])*0x3e8;if(_0x5cd8f6>=0x3d090){const _0x17098e=_0x52d41d['user']-this[_0xefab88(0x155)][_0xefab88(0x191)]+(_0x52d41d[_0xefab88(0x1fe)]-this[_0xefab88(0x155)]['system']),_0x127786=_0x596be7[_0xefab88(0x201)]()[_0xefab88(0x202)]||0x1;this[_0xefab88(0x23d)]=Math[_0xefab88(0x17b)](0x64,Math[_0xefab88(0x92)](_0x17098e/(_0x5cd8f6*_0x127786)*0x64)),this[_0xefab88(0x130)]=Math[_0xefab88(0x92)](_0x5cd8f6/0x3e8),this[_0xefab88(0x155)]=_0x52d41d,this['_lastCpuAt']=_0x3264e7;}const _0xbd87b2=process['memoryUsage'](),_0x4ba1c0=this[_0xefab88(0x1ed)][_0xefab88(0x2c4)];let _0x281936=0x0;if(_0x4ba1c0>0x0){const _0x5ede69=[this['okdb'],...this[_0xefab88(0x2a9)][_0xefab88(0x24d)]?.['values']?.()??[]];for(const _0x14b363 of _0x5ede69){const _0x218c79=_0x14b363['functions']?.[_0xefab88(0x86)];if(_0x218c79)_0x281936+=_0x218c79['liveThreadStats'][_0xefab88(0x14a)];}}let _0x1d27f6=null;const _0x446c17=_0x4ba1c0;if(_0x446c17>0x0){let _0x2ab9bb=0x0;for(const _0x3d40f9 of this[_0xefab88(0x1ed)]['values']())_0x2ab9bb+=_0x3d40f9[_0xefab88(0x21d)]||0x0;_0x1d27f6={'count':_0x446c17,'heapUsed':_0x2ab9bb,'sandbox':_0x4ba1c0,'busy':_0x281936};}return{'rss':_0xbd87b2[_0xefab88(0x108)],'heapUsed':_0xbd87b2['heapUsed'],'heapTotal':_0xbd87b2['heapTotal'],'external':_0xbd87b2[_0xefab88(0xad)],'cpuPct':this[_0xefab88(0x23d)],'cpuWindowMs':this['_lastCpuWindowMs']??null,'threads':_0x1d27f6,'at':_0x3264e7};}[_0x468433(0xb0)](_0x58979e,_0x2f19cc){const _0x2323dd=_0x468433;if(!_0x58979e||!_0x2f19cc)return;this[_0x2323dd(0x1ed)][_0x2323dd(0x198)](_0x58979e,_0x2f19cc);}[_0x468433(0xfe)](_0x3e7dbe){const _0x2919cc=_0x468433;this[_0x2919cc(0x1ed)][_0x2919cc(0x200)](_0x3e7dbe);}[_0x468433(0x1e0)](_0x16dbb3,_0x4dd8f8,_0x23f17b=undefined){const _0x587a24=_0x468433,_0x1973aa=this['_children']['get'](_0x16dbb3);if(!_0x1973aa||!_0x4dd8f8)return;if(_0x23f17b!==undefined)_0x1973aa[_0x587a24(0x2c7)]=_0x23f17b;_0x1973aa[_0x587a24(0x2b4)]={'rss':_0x4dd8f8['rss']??null,'heapUsed':_0x4dd8f8[_0x587a24(0x21d)]??null,'heapTotal':_0x4dd8f8['heapTotal']??null,'external':_0x4dd8f8['external']??null,'cpuPct':_0x4dd8f8['cpuPct']??null,'cpuWindowMs':_0x4dd8f8[_0x587a24(0x2b6)]??null,'threads':_0x4dd8f8[_0x587a24(0x1b0)]??null,'claims':_0x4dd8f8[_0x587a24(0x14e)]??null,'envsOpen':_0x4dd8f8['envsOpen']??null,'at':Date[_0x587a24(0x1a7)]()};}['_buildOwnRow'](){const _0x1ee60f=_0x468433,_0x55116b=Date['now'](),_0x3d6fe7=this[_0x1ee60f(0x2a9)][_0x1ee60f(0xec)]||{},_0x3ce3d6=this[_0x1ee60f(0x181)]||_0x1ee60f(0x1ff);return{'nodeKey':this['_rowKey'],'processKey':this[_0x1ee60f(0x135)],'instanceId':this[_0x1ee60f(0x15f)],'pid':process['pid'],'startedAt':this[_0x1ee60f(0x297)],'instanceStartedAt':this['_startedAt'],'ppid':typeof process[_0x1ee60f(0x298)]===_0x1ee60f(0x153)?process[_0x1ee60f(0x298)]:null,'host':_0x596be7[_0x1ee60f(0xd9)](),'supervisorKey':this[_0x1ee60f(0x1ca)]??null,'version':require$$6[_0x1ee60f(0xf6)],'kind':_0x3ce3d6,'role':{'engines':!!_0x3d6fe7[_0x1ee60f(0xa0)],'processors':!!_0x3d6fe7['processors'],'compaction':_0x3d6fe7['compaction'],'http':_0x3d6fe7[_0x1ee60f(0x107)]},'listenAddr':this[_0x1ee60f(0x137)]??null,'heartbeatAt':_0x55116b,'expiresAt':_0x55116b+_0x410fca,'caps':this['_caps'](_0x3ce3d6,_0x3d6fe7),'lifecycle':{'state':_0x1ee60f(0x190),'desiredVersionApplied':null},'meta':{...this[_0x1ee60f(0x2a5)]},'processing':_0x3d6fe7[_0x1ee60f(0x1ce)]?this['_buildProcessingFacet']():null,'engines':_0x3d6fe7[_0x1ee60f(0xa0)]?[...this[_0x1ee60f(0x2a9)][_0x1ee60f(0xce)]??[]]:null,'singletonClaims':this[_0x1ee60f(0x289)](),'stats':this[_0x1ee60f(0x10a)](),'writers':this[_0x1ee60f(0x1a8)]()};}[_0x468433(0x1a8)](){const _0x3c57a3=_0x468433,_0x14da2d={};try{for(const [_0x4d0e79,_0x55e8e2]of this['okdb'][_0x3c57a3(0x24d)]){try{const _0x10457a=_0x55e8e2['writerStatus']?.();if(!_0x10457a)continue;if(!_0x10457a[_0x3c57a3(0x2b1)]&&!_0x10457a[_0x3c57a3(0x1e6)]&&!(_0x10457a['parkedNow']??0x0)&&!_0x10457a[_0x3c57a3(0x87)])continue;_0x14da2d[_0x4d0e79]={'depth':_0x10457a[_0x3c57a3(0x2b1)],'oldestPendingMs':_0x10457a[_0x3c57a3(0x27e)],'committed':_0x10457a[_0x3c57a3(0x1e6)],'commitsPerSec':_0x10457a[_0x3c57a3(0x1f2)],'commitP99Ms':_0x10457a[_0x3c57a3(0x235)],'parkedNow':_0x10457a[_0x3c57a3(0x2b2)]??0x0,'draining':!!_0x10457a[_0x3c57a3(0x87)]};}catch{}}}catch{}return Object['keys'](_0x14da2d)[_0x3c57a3(0x202)]?_0x14da2d:null;}[_0x468433(0x289)](){const _0x26c016=_0x468433,_0x25bc3d=process[_0x26c016(0x1c1)],_0x41c596=Date[_0x26c016(0x1a7)](),_0x4f2f07=_0x57ae5c=>{const _0x20014f=_0x26c016;if(!_0x57ae5c)return[];const _0x186d00=[];try{for(const {id:_0x4cefee,entry:_0x224b1d}of _0x57ae5c[_0x20014f(0xc9)]()){if(_0x224b1d?.[_0x20014f(0x8a)]?.[_0x20014f(0x1c1)]!==_0x25bc3d)continue;const _0x312540=_0x224b1d[_0x20014f(0xfa)]??_0x224b1d['acquiredAt']??0x0;if(_0x312540+(_0x224b1d[_0x20014f(0x212)]??0x0)<_0x41c596)continue;_0x186d00[_0x20014f(0x206)](_0x4cefee);}}catch{}return _0x186d00;},_0x58762c=_0x4f2f07(this[_0x26c016(0x166)]('compact')),_0x33cb39=_0x4f2f07(this[_0x26c016(0x166)](_0x26c016(0x18b)));if(!_0x58762c[_0x26c016(0x202)]&&!_0x33cb39['length'])return null;return{'compact':_0x58762c,'replicate':_0x33cb39};}['_singletonLock'](_0x2cb467){const _0x25144f=_0x468433;if(!this[_0x25144f(0x2a9)]?.[_0x25144f(0x1a9)])return null;if(!this[_0x25144f(0x113)])this[_0x25144f(0x113)]=new Map();let _0xe82aac=this[_0x25144f(0x113)][_0x25144f(0x10c)](_0x2cb467);if(!_0xe82aac)try{_0xe82aac=new _0x5bf68e(this['okdb']['_rootDb'],{'namespace':_0x2cb467}),this[_0x25144f(0x113)][_0x25144f(0x198)](_0x2cb467,_0xe82aac);}catch{return null;}return _0xe82aac;}['_buildProcessingFacet'](){const _0x511c69=_0x468433,_0x4f6ed4=[];try{for(const [_0x267b2d,_0x5e30bd]of this['okdb']['_envs']){if(_0x267b2d[_0x511c69(0xf0)]('~'))continue;for(const _0x236626 of _0x5e30bd['processor'][_0x511c69(0x1e7)]())_0x4f6ed4[_0x511c69(0x206)]({..._0x236626,'env':_0x267b2d});}}catch{}return{'participate':this[_0x511c69(0x2a9)][_0x511c69(0x1ce)]?.[_0x511c69(0x273)]??![],'processors':_0x4f6ed4};}[_0x468433(0x16b)](){const _0x28c202=_0x468433;if(this[_0x28c202(0x2c2)])return!![];const _0x23c7db=this[_0x28c202(0x2a9)]['_rootDb'];if(!_0x23c7db)return![];return this['_desired']=_0x23c7db[_0x28c202(0xff)](_0x432641,{'dupSort':![]}),this['_cmd']=_0x23c7db[_0x28c202(0xff)](_0x4e0e8d,{'dupSort':![]}),!![];}async[_0x468433(0x196)](){const _0x385ac0=_0x468433;if(!this[_0x385ac0(0x16b)]())return;const _0x5a0242=_0x385ac0(0x267),_0x5791c9=0x1,_0x1c56cd=this[_0x385ac0(0x2c2)][_0x385ac0(0x10c)](_0x5a0242)??0x0;if(_0x1c56cd>=_0x5791c9)return;const _0x35d1b0=_0x3bbda6=>{const _0xdf68e7=_0x385ac0;if(_0x3bbda6===_0xdf68e7(0x12b))return _0xdf68e7(0xb4);if(_0x3bbda6===_0xdf68e7(0x13d))return'fanout';return _0x3bbda6;};await this[_0x385ac0(0x2a9)][_0x385ac0(0x2a2)][_0x385ac0(0xb6)]['transaction'](()=>{const _0x24e69f=_0x385ac0;for(const _0x20feca of[_0x24e69f(0x2af),_0x24e69f(0x221)]){for(const {key:_0x580188,value:_0x1fb142}of this['_desired'][_0x24e69f(0x1c6)]({'start':_0x20feca,'end':_0x20feca+'\xff'})){if(typeof _0x580188!==_0x24e69f(0x1f5)||!_0x580188[_0x24e69f(0xf0)](_0x20feca))break;const _0x4557fb=_0x35d1b0(_0x1fb142[_0x24e69f(0xbc)]);if(_0x4557fb!==_0x1fb142[_0x24e69f(0xbc)])this[_0x24e69f(0x2c2)][_0x24e69f(0x1bf)](_0x580188,{..._0x1fb142,'mode':_0x4557fb});}}this[_0x24e69f(0x2c2)]['put'](_0x5a0242,_0x5791c9);});}[_0x468433(0x1eb)](){const _0xff7357=_0x468433;return!!this[_0xff7357(0x2c2)];}[_0x468433(0x1c5)](_0x5e10b4,_0xc0e80d){const _0x3a05d3=_0x468433;if(!this['_ensureDesired']())return null;const _0x5563da=_0x5e10b4+'/'+_0xc0e80d;return this[_0x3a05d3(0x1a4)](),this[_0x3a05d3(0x218)][_0x3a05d3(0x10c)](_0x5563da)??this[_0x3a05d3(0x2c2)][_0x3a05d3(0x10c)](_0x5563da)??null;}[_0x468433(0x1a4)](){const _0x5eb9f6=_0x468433;if(!_0x3a4305)return;try{this[_0x5eb9f6(0x2a9)][_0x5eb9f6(0x2a2)]?.['db']?.[_0x5eb9f6(0x253)]?.();}catch{}}async[_0x468433(0xfb)](_0x2387d0,_0x49c3bf,_0x3581c8){const _0x4a7422=_0x468433;if(!this[_0x4a7422(0x16b)]())return null;const _0x2e1c0b=_0x2387d0+'/'+_0x49c3bf;this['_refreshDesiredSnapshot']();const _0x44ab5f=this[_0x4a7422(0x218)][_0x4a7422(0x10c)](_0x2e1c0b)??this[_0x4a7422(0x2c2)][_0x4a7422(0x10c)](_0x2e1c0b)??{'version':0x0},_0x1a6dce=(_0x44ab5f[_0x4a7422(0xf6)]||0x0)+0x1,_0x53dab5={..._0x44ab5f,..._0x3581c8,'version':_0x1a6dce,'updatedAt':Date[_0x4a7422(0x1a7)]()};this[_0x4a7422(0x218)]['set'](_0x2e1c0b,_0x53dab5);try{await this[_0x4a7422(0x2a9)][_0x4a7422(0x2a2)][_0x4a7422(0xb6)][_0x4a7422(0x2b3)](()=>{const _0x1c2590=_0x4a7422;this['_desired'][_0x1c2590(0x1bf)](_0x2e1c0b,_0x53dab5);});}finally{if(this[_0x4a7422(0x218)][_0x4a7422(0x10c)](_0x2e1c0b)===_0x53dab5)this['_desiredOverlay']['delete'](_0x2e1c0b);}return _0x1a6dce;}[_0x468433(0x1f6)](_0x2bf554){const _0x151f21=_0x468433;if(!this[_0x151f21(0x16b)]())return[];this[_0x151f21(0x1a4)]();const _0x1645f3=_0x2bf554+'/',_0x5ebd0d=[];for(const {key:_0x2e7567,value:_0x5174f0}of this[_0x151f21(0x2c2)][_0x151f21(0x1c6)]({'start':_0x1645f3,'end':_0x1645f3+'\xff'})){if(typeof _0x2e7567!==_0x151f21(0x1f5)||!_0x2e7567[_0x151f21(0xf0)](_0x1645f3))break;_0x5ebd0d[_0x151f21(0x206)]({'key':_0x2e7567[_0x151f21(0x219)](_0x1645f3['length']),'value':_0x5174f0});}return _0x5ebd0d;}[_0x468433(0x189)](_0x202c98){const _0x4428cb=_0x468433;if(!this['_ensureDesired']())return null;return this[_0x4428cb(0x2c3)][_0x4428cb(0x10c)](_0x202c98)??null;}async['bumpCmd'](_0x23ff4b,_0x586c19,_0x26e55f={}){const _0x2dd0c=_0x468433;if(!this[_0x2dd0c(0x16b)]())return null;let _0x346f07;return await this['okdb'][_0x2dd0c(0x2a2)][_0x2dd0c(0xb6)][_0x2dd0c(0x2b3)](()=>{const _0x4e165f=_0x2dd0c,_0x1b2527=this[_0x4e165f(0x2c3)]['get'](_0x23ff4b)||{'epoch':0x0};_0x346f07=(_0x1b2527[_0x4e165f(0x232)]||0x0)+0x1,this[_0x4e165f(0x2c3)]['put'](_0x23ff4b,{..._0x1b2527,..._0x26e55f,'cmd':_0x586c19,'epoch':_0x346f07,'updatedAt':Date[_0x4e165f(0x1a7)]()});}),_0x346f07;}}return okdbProcessRegistry={'OKDBProcessRegistry':_0x1f04cf,'nodeKey':_0x4b3643,'logicalKey':_0x50f8d3,'slotKey':_0x5bab41,'PROCESS_ENV':_0x3e9705,'NODE_TYPE':_0x1f2a53},okdbProcessRegistry;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x263001=_0xa5e620;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x2838d2=require$$0$4,{EVENTS:_0x666ad5,CHANGE_ACTIONS:_0x11ccc2}=requireOkdbEnums(),{LOOP:_0x1b786c}=requireOkdbLoopMonitor(),_0x2be887=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x500d7f=0x5,_0x4786fe=0x2710;class _0x18697d extends _0x2838d2{constructor(_0x4df425,_0x2b2f4a={}){const _0x52cb2c=_0x70ef;super(),this['okdb']=_0x4df425,this[_0x52cb2c(0x288)]=_0x2b2f4a[_0x52cb2c(0x164)]??_0x2be887,this[_0x52cb2c(0x91)]=_0x2b2f4a['flushDebounce']??_0x500d7f,this[_0x52cb2c(0x1b9)]=_0x2b2f4a[_0x52cb2c(0x176)]??_0x4786fe,this['_started']=![],this[_0x52cb2c(0x1b4)]=new Map(),this['_baselines']=new Map(),this['_pending']=new Map(),this[_0x52cb2c(0x1de)]=null,this['_draining']=![],this['_seen']=new Set(),this[_0x52cb2c(0x2be)]=new Set(),this[_0x52cb2c(0x24c)]=_0x2ac871=>this['_handleInProcess'](_0x2ac871),this[_0x52cb2c(0x122)]=_0x2b2b47=>this[_0x52cb2c(0xf2)](_0x2b2b47),this[_0x52cb2c(0x1d9)]=_0x4cc1c9=>this[_0x52cb2c(0x1b3)](_0x4cc1c9),this[_0x52cb2c(0x1ea)]=()=>this[_0x52cb2c(0xa7)]();}[_0x263001(0xc3)](){const _0x53235f=_0x263001;if(this['_started'])return;this[_0x53235f(0x2a0)]=!![];for(const [_0x1abbb9,_0x4591a]of this[_0x53235f(0x2a9)][_0x53235f(0x24d)]){if(_0x1abbb9[_0x53235f(0xf0)]('~'))continue;try{_0x4591a[_0x53235f(0x8f)]();}catch{}}for(const [_0x5d41fa,_0x154c2f]of this[_0x53235f(0x2a9)][_0x53235f(0x24d)]){if(_0x5d41fa[_0x53235f(0xf0)]('~'))continue;try{this[_0x53235f(0x165)][_0x53235f(0x198)](_0x5d41fa,_0x154c2f[_0x53235f(0x188)]()||0x0);}catch{}}const {events:_0x1c347a}=this[_0x53235f(0x2a9)];_0x1c347a['on'](_0x666ad5[_0x53235f(0x12d)],this[_0x53235f(0x122)]),_0x1c347a['on'](_0x666ad5['ITEM_CREATE'],this[_0x53235f(0x24c)]),_0x1c347a['on'](_0x666ad5['ITEM_UPDATE'],this['_onItem']),_0x1c347a['on'](_0x666ad5[_0x53235f(0x1b2)],this['_onItem']),_0x1c347a['on'](_0x666ad5[_0x53235f(0x22e)],this[_0x53235f(0x1d9)]),_0x1c347a['once'](_0x666ad5[_0x53235f(0x11e)],this[_0x53235f(0x1ea)]);}[_0x263001(0xa7)](){const _0x3d8b82=_0x263001;if(!this['_started'])return;this[_0x3d8b82(0x2a0)]=![];const {events:_0x2c5e7d}=this[_0x3d8b82(0x2a9)];_0x2c5e7d[_0x3d8b82(0xf3)](_0x666ad5[_0x3d8b82(0x12d)],this['_onPending']),_0x2c5e7d[_0x3d8b82(0xf3)](_0x666ad5[_0x3d8b82(0x8e)],this['_onItem']),_0x2c5e7d[_0x3d8b82(0xf3)](_0x666ad5['ITEM_UPDATE'],this[_0x3d8b82(0x24c)]),_0x2c5e7d['off'](_0x666ad5[_0x3d8b82(0x1b2)],this[_0x3d8b82(0x24c)]),_0x2c5e7d[_0x3d8b82(0xf3)](_0x666ad5['SYSTEM_POKE'],this[_0x3d8b82(0x1d9)]);try{_0x2c5e7d[_0x3d8b82(0xf3)](_0x666ad5[_0x3d8b82(0x11e)],this['_onStop']);}catch{}this[_0x3d8b82(0x1de)]&&(clearTimeout(this[_0x3d8b82(0x1de)]),this[_0x3d8b82(0x1de)]=null),this['_pending'][_0x3d8b82(0x25f)](),this['_cursors'][_0x3d8b82(0x25f)](),this[_0x3d8b82(0x165)]['clear'](),this[_0x3d8b82(0x140)][_0x3d8b82(0x25f)](),this[_0x3d8b82(0x2be)][_0x3d8b82(0x25f)]();}[_0x263001(0x1dd)](_0x3c8671,_0x27a6af,_0x33f7b4,_0x2eb1b3){return _0x3c8671+'\x00'+_0x27a6af+'\x00'+_0x33f7b4+'\x00'+_0x2eb1b3;}[_0x263001(0xb3)](_0x37739d,_0x448c4,_0x3f155b,_0x84b00d){const _0x4dc47a=_0x263001,_0x19a049=this['_dedupeKey'](_0x37739d,_0x448c4,_0x3f155b,_0x84b00d);if(this[_0x4dc47a(0x140)][_0x4dc47a(0x274)](_0x19a049))return![];this[_0x4dc47a(0x140)][_0x4dc47a(0x1f0)](_0x19a049);if(this['_seen'][_0x4dc47a(0x2c4)]>this['_dedupeMax']){const _0x2ce02a=this[_0x4dc47a(0x140)][_0x4dc47a(0x179)]()[_0x4dc47a(0x1d1)]()['value'];this[_0x4dc47a(0x140)]['delete'](_0x2ce02a);}return!![];}[_0x263001(0xf2)](_0xe44f5b){const _0x26cea7=_0x263001;if(!this[_0x26cea7(0x2a0)]||!_0xe44f5b)return;const {env:_0x7d0677,type:_0x46d89b,key:_0x583e3f,clock:_0x5541f5}=_0xe44f5b;if(_0x7d0677==null||_0x46d89b==null||_0x583e3f==null)return;if(typeof _0x7d0677==='string'&&_0x7d0677[_0x26cea7(0xf0)]('~'))return;if(typeof _0x46d89b===_0x26cea7(0x1f5)&&_0x46d89b[_0x26cea7(0xf0)]('~'))return;this[_0x26cea7(0x2be)][_0x26cea7(0x1f0)](this[_0x26cea7(0x1dd)](_0x7d0677,_0x46d89b,_0x583e3f,_0x5541f5)),this['_pendingLocal'][_0x26cea7(0x2c4)]>this[_0x26cea7(0x1b9)]&&this[_0x26cea7(0x2be)][_0x26cea7(0x200)](this[_0x26cea7(0x2be)][_0x26cea7(0x179)]()[_0x26cea7(0x1d1)]()[_0x26cea7(0x27d)]);}['_handleInProcess'](_0x3fdbe3){const _0x55ead7=_0x263001;if(!this[_0x55ead7(0x2a0)]||!_0x3fdbe3)return;const {env:_0x487841,type:_0x5ef9c5,key:_0x56519c,clock:_0x2b3250,origin:_0x57f0ad,action:_0x5075ce,newValue:_0x250438,oldValue:_0x374bb7}=_0x3fdbe3;if(_0x487841==null||_0x5ef9c5==null||_0x56519c==null)return;if(typeof _0x487841===_0x55ead7(0x1f5)&&_0x487841['startsWith']('~'))return;if(typeof _0x5ef9c5===_0x55ead7(0x1f5)&&_0x5ef9c5['startsWith']('~'))return;this[_0x55ead7(0x2be)][_0x55ead7(0x200)](this[_0x55ead7(0x1dd)](_0x487841,_0x5ef9c5,_0x56519c,_0x2b3250));if(!this[_0x55ead7(0xb3)](_0x487841,_0x5ef9c5,_0x56519c,_0x2b3250))return;const _0x520e6a=_0x5075ce===_0x11ccc2[_0x55ead7(0x2c0)]?_0x55ead7(0x21b):_0x55ead7(0x1bf);this[_0x55ead7(0x29b)](_0x55ead7(0x264),{'env':_0x487841,'type':_0x5ef9c5,'key':_0x56519c,'op':_0x520e6a,'clock':_0x2b3250,'origin':_0x57f0ad,'value':_0x520e6a===_0x55ead7(0x21b)?null:_0x250438,'prevValue':_0x374bb7});}[_0x263001(0x1b3)](_0x511796){const _0xdc811a=_0x263001;if(!this['_started'])return;if(!_0x511796||typeof _0x511796[_0xdc811a(0x11d)]!==_0xdc811a(0x1f5)||typeof _0x511796[_0xdc811a(0x15a)]!==_0xdc811a(0x1f5))return;const {env:_0x182d87,type:_0x384d00}=_0x511796;if(_0x182d87[_0xdc811a(0xf0)]('~')||_0x384d00[_0xdc811a(0xf0)]('~'))return;this['_pending'][_0xdc811a(0x198)](_0x182d87+'\x00'+_0x384d00,{'env':_0x182d87,'type':_0x384d00}),this[_0xdc811a(0x9e)]();}[_0x263001(0x9e)](){if(this['_flushTimer'])return;const _0x5b7a02=()=>{const _0x248a20=_0x70ef;this['_flushTimer']=null,this['_drain']()[_0x248a20(0x255)](()=>{});};this['_flushTimer']=setTimeout(_0x5b7a02,this['_flushDebounce']>0x0?this['_flushDebounce']:0x0);}async[_0x263001(0x22b)](){const _0x3b9fed=_0x263001;if(this[_0x3b9fed(0x197)]){this[_0x3b9fed(0x9e)]();return;}this['_draining']=!![];try{const _0x37ccf0=[...this[_0x3b9fed(0xd4)][_0x3b9fed(0x179)]()];this[_0x3b9fed(0xd4)]['clear']();let _0x4bea92=![];for(const {env:_0x5d60d7,type:_0x18bfcb}of _0x37ccf0){try{const _0x107baa=await this[_0x3b9fed(0x10d)](_0x5d60d7,_0x18bfcb);if(_0x107baa)_0x4bea92=!![];}catch{this[_0x3b9fed(0xd4)][_0x3b9fed(0x198)](_0x5d60d7+'\x00'+_0x18bfcb,{'env':_0x5d60d7,'type':_0x18bfcb}),_0x4bea92=!![];}}if(_0x4bea92||this[_0x3b9fed(0xd4)][_0x3b9fed(0x2c4)]>0x0)this[_0x3b9fed(0x9e)]();}finally{this[_0x3b9fed(0x197)]=![];}}async[_0x263001(0x10d)](_0x51b8ac,_0xc1bfb7){const _0x29afae=_0x263001,_0x1db3bf=await this['okdb']['_openEnvLazy'](_0x51b8ac),_0x5e0df2=_0x51b8ac+'\x00'+_0xc1bfb7;!this['_cursors'][_0x29afae(0x274)](_0x5e0df2)&&(!this[_0x29afae(0x165)]['has'](_0x51b8ac)&&(_0x1db3bf[_0x29afae(0x8f)](),this[_0x29afae(0x165)][_0x29afae(0x198)](_0x51b8ac,_0x1db3bf[_0x29afae(0x188)]()||0x0)),this[_0x29afae(0x1b4)]['set'](_0x5e0df2,this[_0x29afae(0x165)]['get'](_0x51b8ac)));const _0x8b79b5=this[_0x29afae(0x1b4)][_0x29afae(0x10c)](_0x5e0df2),_0x1bb7aa=_0x1db3bf[_0x29afae(0x188)](_0xc1bfb7)||0x0;if(_0x1bb7aa<=_0x8b79b5)return![];const _0x5e8d12=_0x8b79b5+this['_quantum'],_0x4299bc=Math[_0x29afae(0x17b)](_0x1bb7aa,_0x5e8d12),_0x456215=_0x1b786c[_0x29afae(0x1a6)]?_0x1b786c[_0x29afae(0x1a7)]():0x0,_0x9bf140=Array['from'](_0x1db3bf[_0x29afae(0x124)](_0xc1bfb7,_0x8b79b5+0x1,_0x4299bc));let _0xd95ca5=_0x8b79b5;for(const _0x230e5d of _0x9bf140){const {clock:_0x29939b,key:_0x50770e,action:_0x1f56b1,origin:_0x4ce635}=_0x230e5d;if(_0x29939b>_0xd95ca5)_0xd95ca5=_0x29939b;if(_0x50770e==null)continue;if(this[_0x29afae(0x2be)][_0x29afae(0x274)](this[_0x29afae(0x1dd)](_0x51b8ac,_0xc1bfb7,_0x50770e,_0x29939b)))continue;if(!this[_0x29afae(0xb3)](_0x51b8ac,_0xc1bfb7,_0x50770e,_0x29939b))continue;let _0x433f4b,_0x572f02;if(_0x1f56b1===_0x11ccc2[_0x29afae(0x2c0)])_0x433f4b=_0x29afae(0x21b),_0x572f02=null;else{const _0x17d2ec=_0x1db3bf[_0x29afae(0x10c)](_0xc1bfb7,_0x50770e);_0x17d2ec==null?(_0x433f4b=_0x29afae(0x21b),_0x572f02=null):(_0x433f4b=_0x29afae(0x1bf),_0x572f02=_0x17d2ec);}this[_0x29afae(0x29b)](_0x29afae(0x264),{'env':_0x51b8ac,'type':_0xc1bfb7,'key':_0x50770e,'op':_0x433f4b,'clock':_0x29939b,'origin':_0x4ce635,'value':_0x572f02});}if(_0x1b786c[_0x29afae(0x1a6)])_0x1b786c[_0x29afae(0xf1)](_0x29afae(0x25d)+_0x51b8ac+':'+_0xc1bfb7,_0x1b786c[_0x29afae(0x1a7)]()-_0x456215,'n='+_0x9bf140['length']);return this[_0x29afae(0x1b4)][_0x29afae(0x198)](_0x5e0df2,Math['max'](_0xd95ca5,_0x4299bc)),_0x1db3bf[_0x29afae(0x188)](_0xc1bfb7)>_0x4299bc;}[_0x263001(0x1a5)](){const _0x240d86=_0x263001;return{'started':this[_0x240d86(0x2a0)],'quantum':this[_0x240d86(0x288)],'flushDebounce':this[_0x240d86(0x91)],'cursors':Object[_0x240d86(0x1dc)]([...this[_0x240d86(0x1b4)][_0x240d86(0x157)]()][_0x240d86(0xcc)](([_0x1ed54f,_0x356a79])=>[_0x1ed54f[_0x240d86(0x22f)]('\x00',':'),_0x356a79])),'pending':this[_0x240d86(0xd4)][_0x240d86(0x2c4)],'seen':this['_seen']['size']};}}return _0x18697d[_0x263001(0x18a)]=_0x2be887,okdbChangefeed={'OKDBChangefeed':_0x18697d},okdbChangefeed;}var okdbCluster,hasRequiredOkdbCluster;function requireOkdbCluster(){const _0x317aa8=_0xa5e620;if(hasRequiredOkdbCluster)return okdbCluster;hasRequiredOkdbCluster=0x1;const _0x80b076=require$$1$1,_0x64d597=require$$1,{EVENTS:_0xd0c31c}=requireOkdbEnums(),_0x32ea33=require$$0$3,{slotKey:_0x3dd6f6}=requireOkdbProcessRegistry(),_0x233976=Number(process.env.OKDB_CLUSTER_RESPAWN_BACKOFF_MS)||0xfa,_0x102cf2=0xfa0,_0x289313=0x5,_0x4056b7=0x2710,_0x10c29d=0xbb8,_0x18d9d6=0x7d0,_0x1fc319=_0x317aa8(0x21c),_0x42616b='ephemeral',_0x37e59c='log',_0x3e61e5=_0x317aa8(0x2b4),_0x25d4d4=[_0xd0c31c[_0x317aa8(0x28b)],_0xd0c31c[_0x317aa8(0x275)],_0xd0c31c[_0x317aa8(0x259)],_0xd0c31c[_0x317aa8(0x28d)],_0xd0c31c[_0x317aa8(0x1b6)],_0xd0c31c[_0x317aa8(0x1ab)],_0xd0c31c[_0x317aa8(0x248)],_0xd0c31c['INDEX_REGISTERED'],_0x317aa8(0xa4),_0x317aa8(0x18d),_0x317aa8(0x195),_0x317aa8(0xc8),'processor:resumed',_0x317aa8(0x1c2)],_0x3d87f4=Number(process.env.OKDB_CLUSTER_STATUS_MS)||0x7d0,_0x5e296b=0x64;function _0x2cbf3c(_0x2231e1){const _0x35dc6d=_0x317aa8;if(!_0x2231e1)return'null';const _0xfabaa6=(_0x2231e1[_0x35dc6d(0x1ce)]||[])[_0x35dc6d(0xcc)](_0x1ff793=>[_0x1ff793['env'],_0x1ff793['id'],_0x1ff793['mode'],_0x1ff793['state'],!!_0x1ff793['paused'],!!_0x1ff793[_0x35dc6d(0xa1)],!!_0x1ff793[_0x35dc6d(0xed)],_0x1ff793[_0x35dc6d(0x284)]?.[_0x35dc6d(0x1c1)]??null,_0x1ff793[_0x35dc6d(0x110)]?String(_0x1ff793[_0x35dc6d(0x110)]?.['message']??_0x1ff793[_0x35dc6d(0x110)]):null]);return JSON[_0x35dc6d(0x279)]([!!_0x2231e1[_0x35dc6d(0x1e8)],_0xfabaa6]);}function _0x51282b({workers:_0xf9207b,makeOkdb:_0x2b8f7f,port:_0x322e0c,primaryOkdb:_0xf3837c,childEntry:childEntry=![],workerEnv:workerEnv=null,workerRole:workerRole=null,listenAddr:listenAddr=null}={}){const _0x3cf267=_0x317aa8;if(_0x80b076[_0x3cf267(0x9c)])return childEntry&&_0x80b076[_0x3cf267(0x23e)]({'exec':_0x64d597[_0x3cf267(0xf4)](__dirname,_0x3cf267(0x241)),'args':[],'execArgv':((()=>{const _0x2519b8=_0x3cf267,_0x302f5a=[];for(let _0x589e00=0x0;_0x589e00<process['execArgv'][_0x2519b8(0x202)];_0x589e00++){const _0x2403de=process[_0x2519b8(0x1a3)][_0x589e00];if(_0x2403de[_0x2519b8(0xf0)](_0x2519b8(0x147))||_0x2403de[_0x2519b8(0xf0)]('--watch')||_0x2403de['startsWith'](_0x2519b8(0x1cc)))continue;if(_0x2403de==='-e'||_0x2403de===_0x2519b8(0x1f3)||_0x2403de==='-p'||_0x2403de===_0x2519b8(0x115)){_0x589e00++;continue;}_0x302f5a[_0x2519b8(0x206)](_0x2403de);}return _0x302f5a;})())}),_0x29cb18({'workers':_0xf9207b,'port':_0x322e0c,'primaryOkdb':_0xf3837c,'workerEnv':workerEnv,'workerRole':workerRole,'listenAddr':listenAddr??':'+_0x322e0c});return _0x34eada({'makeOkdb':_0x2b8f7f,'port':_0x322e0c});}function _0x29cb18({workers:_0x4514a5,port:_0x37c795,primaryOkdb:_0xc3d945,workerEnv:_0x303f7e,workerRole:_0x2db5ca,listenAddr:_0x5efb45}){const _0x346bfb=_0x317aa8,_0x2ee090=new Map(),_0x24839c=new Map();let _0x1e9c5b=![];const _0x5aeedf=_0x44ec0d=>_0x44ec0d?.['__okdbSlot'],_0x444f58=_0x36efb5=>{const _0x2c2980=_0x70ef,_0x6ff3df=_0x80b076[_0x2c2980(0x214)]({...process.env,..._0x303f7e||{},'OKDB_CLUSTER_SLOT':String(_0x36efb5)});return _0x6ff3df[_0x2c2980(0x1e5)]=_0x36efb5,_0x2ee090[_0x2c2980(0x198)](_0x6ff3df[_0x2c2980(0x152)][_0x2c2980(0x1c1)],{'worker':_0x6ff3df,'startedAt':Date['now'](),'slot':_0x36efb5}),_0x6ff3df['on'](_0x2c2980(0x110),_0x2b25a8=>{const _0x4260b2=_0x2c2980;console[_0x4260b2(0x88)](_0x4260b2(0x271)+_0x6ff3df['process'][_0x4260b2(0x1c1)]+_0x4260b2(0xee)+(_0x2b25a8?.[_0x4260b2(0x28a)]??_0x2b25a8));}),_0x6ff3df['on'](_0x2c2980(0x1e4),()=>_0x4dd79c()),_0x6ff3df;},_0x53656e=_0x50d752=>{const _0x268635=_0x70ef;for(const {worker:_0x17d382}of _0x2ee090[_0x268635(0x179)]()){if(_0x17d382[_0x268635(0x19e)]()||!_0x17d382[_0x268635(0x1d5)]())continue;try{_0x17d382[_0x268635(0xe0)](_0x50d752);}catch{}}};_0xc3d945?.['_activateProcesses']?.({'kind':'primary','listenAddr':_0x5efb45})['catch'](()=>{}),_0xc3d945?.[_0x346bfb(0xeb)]?.[_0x346bfb(0x1d8)]?.({'workersConfigured':_0x4514a5});const _0x1b4955={'engines':!![],'processors':!![],'compaction':!![],..._0x2db5ca,'http':!![]},_0x4dd79c=()=>{const _0x38164c=_0x346bfb,_0x16e07c=_0xc3d945?.[_0x38164c(0xeb)];if(!_0x16e07c||!_0x16e07c[_0x38164c(0x222)])return;const _0xb6bf1a=_0x16e07c['selfKey'];for(const {worker:_0x73d12d,startedAt:_0x4deba5,slot:_0x47aadf,stats:_0x4ea64e,processing:_0x13f100}of _0x2ee090[_0x38164c(0x179)]()){if(_0x73d12d[_0x38164c(0x19e)]())continue;const _0x47202b=_0x16e07c[_0x38164c(0x1eb)]?.()&&_0x16e07c[_0x38164c(0x1c5)](_0x38164c(0x12e),_0x365488(_0x47aadf))?.[_0x38164c(0x1df)]===!![];_0x16e07c[_0x38164c(0xa5)]({'pid':_0x73d12d['process'][_0x38164c(0x1c1)],'startedAt':_0x4deba5,'kind':_0x38164c(0x268),'supervisorKey':_0xb6bf1a,'slot':_0x47aadf,'slotKey':_0x365488(_0x47aadf),'role':_0x1b4955,'listenAddr':_0x5efb45,'lifecycle':_0x47202b?_0x38164c(0xca):_0x38164c(0x190),'processing':_0x13f100??null,'stats':_0x4ea64e??null})[_0x38164c(0x255)](()=>{});}},_0x365488=_0x37370a=>_0x3dd6f6('cluster:'+_0x37c795,_0x37370a),_0x38f4fe=_0x8b41=>{const _0x2daa9d=_0x346bfb,_0x4572c1=_0xc3d945?.[_0x2daa9d(0xeb)];if(!_0x4572c1?.['hasDesired']?.())return![];return _0x4572c1['getDesired'](_0x2daa9d(0x12e),_0x365488(_0x8b41))?.[_0x2daa9d(0x1df)]===!![];};for(let _0x555ba3=0x0;_0x555ba3<_0x4514a5;_0x555ba3++){const _0x12af1c=_0x38f4fe(_0x555ba3);_0x24839c[_0x346bfb(0x198)](_0x555ba3,{'deaths':[],'consecutiveFailures':0x0,'dead':_0x12af1c,'respawnTimer':null}),_0x12af1c?console['log'](_0x346bfb(0x1a2)+_0x555ba3+_0x346bfb(0x19f)):_0x444f58(_0x555ba3);}const _0x3d1f89=()=>{const _0x1ff0ed=_0x346bfb,_0x5f5a6=_0xc3d945?.[_0x1ff0ed(0xeb)];if(!_0x5f5a6?.['_isWriter']||!_0x5f5a6['hasDesired']?.())return;for(const [_0x8b7466,_0x4dfa78]of _0x24839c[_0x1ff0ed(0x157)]()){const _0x522625=_0x5f5a6['getDesired'](_0x1ff0ed(0x12e),_0x365488(_0x8b7466)),_0x5a591a=_0x522625?.[_0x1ff0ed(0x1df)]===!![],_0x493001=_0x522625?.[_0x1ff0ed(0x14b)]===!![];if(_0x5a591a&&!_0x4dfa78[_0x1ff0ed(0x2a6)]){_0x4dfa78[_0x1ff0ed(0x2a6)]=!![];_0x4dfa78['respawnTimer']&&(clearTimeout(_0x4dfa78[_0x1ff0ed(0x265)]),_0x4dfa78[_0x1ff0ed(0x265)]=null);for(const {worker:_0x2f0d8c}of _0x2ee090[_0x1ff0ed(0x179)]()){if(_0x5aeedf(_0x2f0d8c)!==_0x8b7466||_0x2f0d8c[_0x1ff0ed(0x19e)]())continue;try{if(_0x493001)_0x2f0d8c['process'][_0x1ff0ed(0x14b)](_0x1ff0ed(0x2a7));else _0x2f0d8c['isConnected']()&&_0x2f0d8c[_0x1ff0ed(0x20c)]();}catch{}}console[_0x1ff0ed(0x88)](_0x1ff0ed(0x266)+(_0x493001?_0x1ff0ed(0x281):_0x1ff0ed(0x280))+'\x20worker\x20slot='+_0x8b7466+_0x1ff0ed(0x1d6));}else{if(!_0x5a591a&&_0x4dfa78['dead']&&_0x522625){_0x4dfa78[_0x1ff0ed(0x2a6)]=![],_0x4dfa78[_0x1ff0ed(0x1aa)]=[],_0x4dfa78[_0x1ff0ed(0x220)]=0x0;const _0x56f2d1=[..._0x2ee090['values']()][_0x1ff0ed(0x16f)](({worker:_0x415bef})=>_0x5aeedf(_0x415bef)===_0x8b7466&&!_0x415bef[_0x1ff0ed(0x19e)]());!_0x56f2d1&&!_0x1e9c5b&&(_0x444f58(_0x8b7466),console[_0x1ff0ed(0x88)](_0x1ff0ed(0x256)+_0x8b7466));}}}},_0x404762=()=>{try{_0x3d1f89();}catch{}};_0xc3d945?.[_0x346bfb(0x234)]?.['on']?.(_0xd0c31c[_0x346bfb(0x1bb)],_0x404762);const _0xd25a57=[];if(_0xc3d945?.[_0x346bfb(0x234)]?.['on'])for(const _0x581c0e of _0x25d4d4){const _0x428650=_0x5c59d6=>{_0x53656e({[_0x1fc319]:_0x42616b,'event':_0x581c0e,'data':_0x5c59d6??{}});};_0xc3d945['events']['on'](_0x581c0e,_0x428650),_0xd25a57[_0x346bfb(0x206)]({'event':_0x581c0e,'handler':_0x428650});}const _0x10937d=setInterval(()=>{_0x3d1f89(),_0x4dd79c();},_0x3d87f4);_0x10937d[_0x346bfb(0x187)]?.();const _0x4b6e91=(_0x2475d9,_0x5826f0)=>{const _0x43723c=_0x346bfb;if(!_0x5826f0||typeof _0x5826f0!==_0x43723c(0x14c)||_0x5826f0[_0x1fc319]!==_0x37e59c)return;if(!_0xc3d945?.[_0x43723c(0x88)]?.['ingest'])return;const _0x5cdaa8=_0x5826f0['entry']||{};_0xc3d945[_0x43723c(0x88)][_0x43723c(0x19c)]({..._0x5cdaa8,'msg':'[w'+_0x5826f0[_0x43723c(0x12e)]+']\x20'+(_0x5cdaa8[_0x43723c(0x2a3)]??''),'meta':{..._0x5cdaa8[_0x43723c(0x9d)]||{},'worker':_0x5826f0[_0x43723c(0x12e)],'workerPid':_0x5826f0[_0x43723c(0x1c1)]}});};_0x80b076['on'](_0x346bfb(0x28a),_0x4b6e91);const _0x521625=(_0x5dc4da,_0xbb94da)=>{const _0x228113=_0x346bfb;if(!_0xbb94da||typeof _0xbb94da!==_0x228113(0x14c)||_0xbb94da[_0x1fc319]!==_0x3e61e5)return;const _0x40cdbe=_0x2ee090['get'](_0x5dc4da[_0x228113(0x152)][_0x228113(0x1c1)]);if(_0x40cdbe){_0x40cdbe[_0x228113(0x2b4)]={..._0xbb94da[_0x228113(0x2b4)],'at':Date[_0x228113(0x1a7)]()};if(_0xbb94da[_0x228113(0x2c7)]!==undefined){const _0x103eaa=_0x2cbf3c(_0xbb94da[_0x228113(0x2c7)]);_0x103eaa!==_0x40cdbe[_0x228113(0x174)]&&(_0x40cdbe[_0x228113(0x174)]=_0x103eaa,_0x15ca63()),_0x40cdbe[_0x228113(0x2c7)]=_0xbb94da['processing'];}}};let _0x5b3e33=null;const _0x15ca63=()=>{const _0x5eae3c=_0x346bfb;if(_0x5b3e33||_0x1e9c5b)return;_0x5b3e33=setTimeout(()=>{_0x5b3e33=null;if(!_0x1e9c5b)_0x4dd79c();},_0x5e296b),_0x5b3e33[_0x5eae3c(0x187)]?.();};_0x80b076['on']('message',_0x521625),_0x80b076['on'](_0x346bfb(0x2bd),(_0x45fcd7,_0x372318,_0xa97c9)=>{const _0x3d1c5d=_0x346bfb,_0x40204b=_0x45fcd7[_0x3d1c5d(0x152)][_0x3d1c5d(0x1c1)],_0x3a2711=_0x5aeedf(_0x45fcd7),_0xf1e413=_0x2ee090[_0x3d1c5d(0x10c)](_0x40204b);if(_0xf1e413&&_0xc3d945?.[_0x3d1c5d(0xeb)])_0xc3d945[_0x3d1c5d(0xeb)][_0x3d1c5d(0x18e)](_0x40204b+':'+_0xf1e413[_0x3d1c5d(0x12c)])[_0x3d1c5d(0x255)](()=>{});_0x2ee090[_0x3d1c5d(0x200)](_0x40204b),console[_0x3d1c5d(0x88)](_0x3d1c5d(0x271)+_0x40204b+_0x3d1c5d(0x2aa)+(_0x3a2711??'?')+_0x3d1c5d(0x2bf)+(_0x3d1c5d(0x1fd)+_0x372318+_0x3d1c5d(0x11c)+(_0xa97c9??_0x3d1c5d(0x98))+_0x3d1c5d(0x150)+_0x2ee090[_0x3d1c5d(0x2c4)]+'\x20worker(s)\x20remaining')),_0x4dd79c();if(_0x1e9c5b||_0x3a2711==null)return;const _0x274cdf=_0x24839c[_0x3d1c5d(0x10c)](_0x3a2711);if(!_0x274cdf||_0x274cdf[_0x3d1c5d(0x2a6)])return;const _0x5829ba=Date[_0x3d1c5d(0x1a7)]();_0x274cdf[_0x3d1c5d(0x1aa)][_0x3d1c5d(0x206)](_0x5829ba),_0x274cdf['deaths']=_0x274cdf[_0x3d1c5d(0x1aa)][_0x3d1c5d(0xda)](_0x5b6f66=>_0x5829ba-_0x5b6f66<=_0x4056b7);if(_0x274cdf[_0x3d1c5d(0x1aa)][_0x3d1c5d(0x202)]>=_0x289313){_0x274cdf[_0x3d1c5d(0x2a6)]=!![],console[_0x3d1c5d(0x110)]('[okdb-cluster]\x20CRASH-LOOP:\x20worker\x20slot='+_0x3a2711+_0x3d1c5d(0xfc)+_0x274cdf['deaths'][_0x3d1c5d(0x202)]+_0x3d1c5d(0x225)+(_0x4056b7+'ms\x20—\x20giving\x20up\x20on\x20this\x20slot;\x20'+_0x2ee090['size']+_0x3d1c5d(0x13f)));return;}_0x274cdf['consecutiveFailures']++;const _0x18e6f8=Math['min'](_0x102cf2,_0x233976*0x2**(_0x274cdf['consecutiveFailures']-0x1));console['log'](_0x3d1c5d(0x1fa)+_0x3a2711+_0x3d1c5d(0x23a)+_0x18e6f8+_0x3d1c5d(0xbf)+_0x274cdf[_0x3d1c5d(0x220)]+')'),_0x274cdf[_0x3d1c5d(0x265)]=setTimeout(()=>{const _0x1d2408=_0x3d1c5d;_0x274cdf[_0x1d2408(0x265)]=null;if(_0x1e9c5b||_0x274cdf[_0x1d2408(0x2a6)])return;const _0x1555ec=_0x444f58(_0x3a2711);_0x1555ec['once'](_0x1d2408(0x16a),()=>{const _0xf46119=_0x1d2408;if(_0x24839c[_0xf46119(0x10c)](_0x3a2711)===_0x274cdf)_0x274cdf['consecutiveFailures']=0x0;});},_0x18e6f8),_0x274cdf['respawnTimer'][_0x3d1c5d(0x187)]?.();});const _0xd14ae5=[..._0x2ee090['keys']()];console['log'](_0x346bfb(0x89)+process[_0x346bfb(0x1c1)]+'\x20forked\x20'+_0x4514a5+'\x20HTTP\x20server(s)\x20on\x20port\x20'+_0x37c795+':\x20'+('['+_0xd14ae5[_0x346bfb(0xf4)](',\x20')+']'));const _0x165b3d={'_isClusterController':!![],'port':_0x37c795,'primaryOkdb':_0xc3d945??null,'status'(){const _0x36626e=_0x346bfb;return{'clustered':!![],'primaryPid':process[_0x36626e(0x1c1)],'port':_0x37c795,'primaryRole':_0xc3d945?.[_0x36626e(0x27c)]??null,'processorPid':null,'supervisorPid':process[_0x36626e(0x1c1)],'workers':[..._0x2ee090[_0x36626e(0x179)]()][_0x36626e(0xcc)](({worker:_0x30c3fc})=>({'pid':_0x30c3fc['process'][_0x36626e(0x1c1)],'id':_0x30c3fc['id'],'dead':_0x30c3fc[_0x36626e(0x19e)]()}))};},async 'close'(){const _0x90debb=_0x346bfb;_0x1e9c5b=!![];for(const _0x3c2a42 of _0x24839c[_0x90debb(0x179)]()){_0x3c2a42[_0x90debb(0x2a6)]=!![],_0x3c2a42[_0x90debb(0x265)]&&(clearTimeout(_0x3c2a42['respawnTimer']),_0x3c2a42[_0x90debb(0x265)]=null);}clearInterval(_0x10937d);_0x5b3e33&&(clearTimeout(_0x5b3e33),_0x5b3e33=null);_0x80b076[_0x90debb(0xf3)]('message',_0x4b6e91),_0x80b076[_0x90debb(0xf3)](_0x90debb(0x28a),_0x521625),_0xc3d945?.[_0x90debb(0x234)]?.['off']?.(_0xd0c31c[_0x90debb(0x1bb)],_0x404762);if(_0xc3d945?.['events']?.[_0x90debb(0xf3)])for(const {event:_0x2f9c0a,handler:_0x5f4835}of _0xd25a57){try{_0xc3d945['events']['off'](_0x2f9c0a,_0x5f4835);}catch{}}_0xd25a57['length']=0x0;const _0x3dc1af=[..._0x2ee090[_0x90debb(0x179)]()][_0x90debb(0xcc)](({worker:_0x1ab444})=>_0x1ab444);if(_0x3dc1af['length']===0x0)return;await Promise[_0x90debb(0xc5)](_0x3dc1af['map'](_0x14e4fe=>new Promise(_0x1d5683=>{const _0x362253=_0x90debb;if(_0x14e4fe[_0x362253(0x19e)]()){_0x1d5683();return;}let _0x4c891c=![];const _0x383242=()=>{if(_0x4c891c)return;_0x4c891c=!![];if(_0x3b5f57)clearTimeout(_0x3b5f57);_0x1d5683();};_0x14e4fe[_0x362253(0x18c)]('exit',_0x383242);const _0x3b5f57=setTimeout(()=>{const _0xd872f7=_0x362253;try{_0x14e4fe[_0xd872f7(0x152)]['kill']();}catch{}},_0x10c29d+0x1f4);_0x3b5f57[_0x362253(0x187)]?.();try{_0x14e4fe[_0x362253(0x20c)]();}catch{try{_0x14e4fe[_0x362253(0x152)][_0x362253(0x14b)]();}catch{}}})));}};return _0x165b3d;}async function _0x34eada({makeOkdb:_0x1d73fb,port:_0x1fbe00}){const _0x19424b=_0x317aa8,_0x74f8a7=await _0x1d73fb();return _0x5e428c(_0x74f8a7),_0x74f8a7[_0x19424b(0x107)][_0x19424b(0xc6)](_0x1fbe00);}function _0x5e428c(_0x2a28c0){const _0x856aed=_0x317aa8;if(!_0x2a28c0||_0x2a28c0[_0x856aed(0x105)])return;_0x2a28c0[_0x856aed(0x105)]=!![];try{const {OKDBChangefeed:_0x3a7621}=requireOkdbChangefeed(),_0x4aa191=_0x2a28c0[_0x856aed(0x129)];if(_0x4aa191&&typeof _0x4aa191['attachFeed']===_0x856aed(0xc0)){const _0xda48bc=new _0x3a7621(_0x2a28c0);_0xda48bc[_0x856aed(0xc3)](),_0x4aa191[_0x856aed(0x210)](_0xda48bc),_0x2a28c0['_changefeed']=_0xda48bc;}}catch(_0x4fbecc){_0x2a28c0[_0x856aed(0x88)]?.[_0x856aed(0xdb)]?.('[okdb-cluster]\x20change-feed\x20init\x20failed:\x20'+(_0x4fbecc?.[_0x856aed(0x28a)]??_0x4fbecc),{'feature':_0x856aed(0xc4)});}const _0x5006e6=_0x34d6d2=>{const _0xa6089d=_0x856aed;if(!_0x34d6d2||typeof _0x34d6d2!==_0xa6089d(0x14c)||_0x34d6d2[_0x1fc319]==null)return;if(_0x34d6d2[_0x1fc319]===_0x42616b)try{_0x2a28c0[_0xa6089d(0x129)]?.[_0xa6089d(0x120)]?.(_0x34d6d2['event'],_0x34d6d2['data']);}catch{}};process['on'](_0x856aed(0x28a),_0x5006e6),_0x2a28c0[_0x856aed(0xd3)]=_0x5006e6;{let _0x224157=process[_0x856aed(0xa6)](),_0x33cfb6=Date[_0x856aed(0x1a7)]();const _0x381e26=()=>{const _0x122e22=_0x856aed;if(typeof process[_0x122e22(0xe0)]!==_0x122e22(0xc0)||!process[_0x122e22(0xd8)])return;const _0x446377=Date[_0x122e22(0x1a7)](),_0x6100b=process[_0x122e22(0xa6)](),_0x260a82=(_0x446377-_0x33cfb6)*0x3e8,_0x4e06bc=_0x6100b[_0x122e22(0x191)]-_0x224157[_0x122e22(0x191)]+(_0x6100b[_0x122e22(0x1fe)]-_0x224157[_0x122e22(0x1fe)]),_0x243288=_0x260a82>0x0?Math[_0x122e22(0x17b)](0x64,Math[_0x122e22(0x92)](_0x4e06bc/(_0x260a82*(_0x32ea33[_0x122e22(0x201)]()[_0x122e22(0x202)]||0x1))*0x64)):0x0;_0x224157=_0x6100b,_0x33cfb6=_0x446377;const _0x17d297=process[_0x122e22(0x223)]();let _0x5d7c9a=null;try{_0x5d7c9a=_0x2a28c0['role']?.[_0x122e22(0x1ce)]?_0x2a28c0[_0x122e22(0xeb)]?.[_0x122e22(0x25e)]?.()??null:null;}catch{}try{process[_0x122e22(0xe0)]({[_0x1fc319]:_0x3e61e5,'stats':{'rss':_0x17d297[_0x122e22(0x108)],'heapUsed':_0x17d297[_0x122e22(0x21d)],'heapTotal':_0x17d297[_0x122e22(0x24e)],'external':_0x17d297[_0x122e22(0xad)],'cpuPct':_0x243288,'cpuWindowMs':Math[_0x122e22(0x92)](_0x260a82/0x3e8)||null},'processing':_0x5d7c9a});}catch{}},_0x34ad52=Math[_0x856aed(0x293)](0x3e8,Number(process.env.OKDB_STATS_INTERVAL_MS)||0x1388),_0x47c8ed=setInterval(_0x381e26,_0x34ad52);_0x47c8ed[_0x856aed(0x187)]?.(),_0x381e26();for(const _0x18b088 of[_0x856aed(0xc8),_0x856aed(0x141)]){_0x2a28c0[_0x856aed(0x234)]?.['on']?.(_0x18b088,()=>{try{_0x381e26();}catch{}});}}let _0x5093c1=![];const _0x4ec65b=async _0x468ca3=>{const _0x537c0a=_0x856aed;if(_0x5093c1)return;_0x5093c1=!![];const _0x56b5ca=setTimeout(()=>process[_0x537c0a(0x2bd)](_0x468ca3),_0x10c29d);_0x56b5ca['unref']?.();try{await _0x2a28c0[_0x537c0a(0x2c5)]?.();}catch{}process[_0x537c0a(0x2bd)](_0x468ca3);};process['on']('disconnect',()=>_0x4ec65b(0x0));if(process[_0x856aed(0xe0)]&&!process[_0x856aed(0xd8)])_0x4ec65b(0x0);if(process[_0x856aed(0xc2)]!==_0x856aed(0xa8)){const _0x54f451=setInterval(()=>{const _0x162724=_0x856aed;if(process[_0x162724(0x298)]===0x1)_0x4ec65b(0x0);},_0x18d9d6);_0x54f451[_0x856aed(0x187)]?.(),_0x2a28c0[_0x856aed(0x28e)]=_0x54f451;}}return okdbCluster={'runClustered':_0x51282b,'attachWorkerCluster':_0x5e428c},okdbCluster;}var hasRequiredOkdbHttpWorkerChild;function requireOkdbHttpWorkerChild(){const _0x3b8709=_0xa5e620;if(hasRequiredOkdbHttpWorkerChild)return okdbHttpWorkerChild$1;hasRequiredOkdbHttpWorkerChild=0x1;const _0x34734d=require$$0$5,{attachWorkerCluster:_0x15d14c}=requireOkdbCluster();async function _0x35e7fa(){const _0x20ae3e=_0x70ef,_0x5628d7=process.env.OKDB_HTTP_CHILD;if(!_0x5628d7)throw new Error(_0x20ae3e(0x1ac));const {rootPath:_0x32f438,port:_0x299fe8,options:options={},logLevel:logLevel=_0x20ae3e(0xb7)}=JSON[_0x20ae3e(0x1c3)](_0x5628d7);if(!_0x32f438||!_0x299fe8)throw new Error('okdb-http-worker-child:\x20rootPath\x20and\x20port\x20required');const _0x4247f4=new _0x34734d(_0x32f438,{...options,'engines':![],'processors':![],'compaction':![]});_0x4247f4[_0x20ae3e(0x88)]['detachConsole']?.();const _0x6957fc=process.env.OKDB_CLUSTER_SLOT??'?',_0x25ca8c={'debug':0x0,'info':0x1,'warn':0x2,'error':0x3},_0x168b81=_0x25ca8c[logLevel]??_0x25ca8c[_0x20ae3e(0xb7)];_0x4247f4[_0x20ae3e(0x88)]['attach'](_0x190be7=>{const _0x5f4e3c=_0x20ae3e;if((_0x25ca8c[_0x190be7[_0x5f4e3c(0x1ef)]]??0x1)<_0x168b81)return;try{process[_0x5f4e3c(0xe0)]?.({'__okdbCluster':_0x5f4e3c(0x88),'slot':_0x6957fc,'pid':process[_0x5f4e3c(0x1c1)],'entry':_0x190be7});}catch{}}),await _0x4247f4[_0x20ae3e(0x1cb)](),_0x15d14c(_0x4247f4),await _0x4247f4[_0x20ae3e(0x107)][_0x20ae3e(0xc6)](_0x299fe8);}return _0x35e7fa()[_0x3b8709(0x255)](_0x4721fa=>{const _0x640c42=_0x3b8709;try{process[_0x640c42(0xe0)]?.({'__okdbCluster':'log','slot':process.env.OKDB_CLUSTER_SLOT??'?','pid':process[_0x640c42(0x1c1)],'entry':{'level':'error','msg':'http\x20worker\x20child\x20failed:\x20'+(_0x4721fa?.['message']??_0x4721fa)}});}catch{}process[_0x640c42(0x2bd)](0x1);}),okdbHttpWorkerChild$1;}var okdbHttpWorkerChildExports=requireOkdbHttpWorkerChild(),okdbHttpWorkerChild=getDefaultExportFromCjs(okdbHttpWorkerChildExports);module[_0xa5e620(0x151)]=okdbHttpWorkerChild;
|
|
1
|
+
'use strict';const _0x5e06fa=_0x5881;(function(_0x167fb2,_0x2561f6){const _0x319a0e=_0x5881,_0x5cd7d1=_0x167fb2();while(!![]){try{const _0x310b57=-parseInt(_0x319a0e(0x287))/0x1+-parseInt(_0x319a0e(0x184))/0x2+parseInt(_0x319a0e(0x1c9))/0x3*(parseInt(_0x319a0e(0x122))/0x4)+-parseInt(_0x319a0e(0x151))/0x5+parseInt(_0x319a0e(0x2a9))/0x6*(parseInt(_0x319a0e(0x1c6))/0x7)+parseInt(_0x319a0e(0x192))/0x8*(parseInt(_0x319a0e(0x15c))/0x9)+parseInt(_0x319a0e(0x2d3))/0xa*(parseInt(_0x319a0e(0x2a0))/0xb);if(_0x310b57===_0x2561f6)break;else _0x5cd7d1['push'](_0x5cd7d1['shift']());}catch(_0x5df2fe){_0x5cd7d1['push'](_0x5cd7d1['shift']());}}}(_0x2913,0xc7b65));var require$$0$5=require(_0x5e06fa(0xd9)),require$$1$1=require(_0x5e06fa(0x1c7)),require$$1=require('path'),require$$0$3=require('os'),require$$2=require(_0x5e06fa(0x1d8)),require$$0=require(_0x5e06fa(0x1e4)),require$$0$2=require(_0x5e06fa(0x29e)),require$$0$1=require('fs'),require$$0$4=require(_0x5e06fa(0x205));function _0x5881(_0x39ddc,_0x17eac9){_0x39ddc=_0x39ddc-0xa5;const _0x291301=_0x2913();let _0x5881cc=_0x291301[_0x39ddc];return _0x5881cc;}function getDefaultExportFromCjs(_0x4671f9){const _0x3441ed=_0x5e06fa;return _0x4671f9&&_0x4671f9[_0x3441ed(0xdc)]&&Object[_0x3441ed(0xd0)]['hasOwnProperty'][_0x3441ed(0x1f5)](_0x4671f9,_0x3441ed(0x201))?_0x4671f9[_0x3441ed(0x201)]:_0x4671f9;}var okdbHttpWorkerChild$1={},okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x4b98dc=_0x5e06fa;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x5ac31c={'PUT':'put','REMOVE':'remove','INDEX_DROP':'dropIndex','INDEX_REGISTER':_0x4b98dc(0x1aa),'INDEX_RESET':'resetIndex','TYPE_REGISTER':'registerType','TYPE_DROP':_0x4b98dc(0x263),'FTS_REGISTER':_0x4b98dc(0xfc),'FTS_DROP':'dropFts','FTS_RESET':'resetFts','SCHEMA_SET':'setSchema','SCHEMA_DROP':'dropSchema','TTL_SET':'setTtl','TTL_CLEAR':'clearTtl'},_0x5a29aa={'SYSTEM_READY':_0x4b98dc(0x1f0),'FIELD_RESOLVER_REGISTERED':_0x4b98dc(0x2e0),'SYSTEM_STOPPED':_0x4b98dc(0x219),'SYSTEM_CLOCK_CHANGE':_0x4b98dc(0x11c),'SYSTEM_POKE':_0x4b98dc(0x286),'SYSTEM_DRAIN':'system:drain','SYSTEM_TYPE_DROP':_0x4b98dc(0xf9),'SYSTEM_PROC':_0x4b98dc(0xf3),'SYSTEM_BUS_STATE_CHANGE':'system:bus_state_change','ITEM_CREATE':_0x4b98dc(0x2c2),'ITEM_UPDATE':_0x4b98dc(0x152),'ITEM_REMOVE':_0x4b98dc(0xe6),'ITEM_PENDING':'item:pending','INDEX_RESET':_0x4b98dc(0x241),'INDEX_READY':_0x4b98dc(0xd6),'INDEX_PROGRESS':_0x4b98dc(0x200),'VIEW_PROGRESS':'view:progress','INDEX_DROP':_0x4b98dc(0x1d9),'INDEX_REGISTERED':_0x4b98dc(0x1f1),'FTS_REGISTERED':_0x4b98dc(0x2d5),'FTS_DROP':_0x4b98dc(0x15e),'FTS_RESET':_0x4b98dc(0x1df),'SCHEMA_SET':_0x4b98dc(0x129),'SCHEMA_DROP':'schema:drop','UNIQUE_VIOLATION':_0x4b98dc(0xc9),'UNIQUE_VIOLATION_RESOLVED':_0x4b98dc(0xf7),'REF_VIOLATION':_0x4b98dc(0x1b8),'REF_VIOLATION_RESOLVED':_0x4b98dc(0x26c),'SYNC_APPLY':_0x4b98dc(0x21f),'TXN_START':_0x4b98dc(0x249),'TXN_END':_0x4b98dc(0xd4),'TXN_ROLLBACK':_0x4b98dc(0x155),'TYPE_REGISTERED':_0x4b98dc(0x188),'TYPE_DROP':_0x4b98dc(0x10b),'ENV_OPENED':'env:opened','ENV_REMOVED':_0x4b98dc(0x145),'SYSTEM_ENV_RELEASE':'system:env_release','TTL_EXPIRED':_0x4b98dc(0x270),'TTL_SET':_0x4b98dc(0x22c),'TTL_CLEAR':_0x4b98dc(0x1fc),'LICENSE_INVALID':_0x4b98dc(0xba),'LICENSE_ADDED':_0x4b98dc(0x2d8),'LICENSE_ACTIVATED':_0x4b98dc(0x24e),'LICENSE_REMOVED':_0x4b98dc(0x12e)},_0x32f1be={'CREATING':_0x4b98dc(0xcb),'RESETTING':_0x4b98dc(0x29b),'READY':'ready','DROPPING':'dropping','WAITING':_0x4b98dc(0x2ca),'ERROR':_0x4b98dc(0x277)},_0x36a08d={'CREATED':'created','STARTING':'starting','STARTED':_0x4b98dc(0x29c),'STOPPING':_0x4b98dc(0xdd),'STOPPED':_0x4b98dc(0xa5)},_0x9beedc={'CREATING':_0x4b98dc(0xcb),'READY':'ready','HALTED':'halted','STOPPED':_0x4b98dc(0xa5),'RESETTING':_0x4b98dc(0x29b)},_0x10155f=Object[_0x4b98dc(0xb5)]({'POKE':_0x4b98dc(0x181),'DRAIN':'bus:drain','TYPE_DROP':_0x4b98dc(0xc6),'PROC':_0x4b98dc(0x21c),'ENV_RELEASE':_0x4b98dc(0xd1)});return okdbEnums={'BUS_EVENTS':_0x10155f,'CHANGE_ACTIONS':_0x5ac31c,'EVENTS':_0x5a29aa,'INDEX_STATE':_0x32f1be,'OKDB_STATE':_0x36a08d,'VIEW_STATE':_0x9beedc},okdbEnums;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x51eba8=_0x5e06fa;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x250bd0,performance:_0x317f2c}=require$$0,_0x5b65d1=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG==='true',_0x39e5a7=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x4f6437=process.env.OKDB_LOOP_LAG_ALL==='1',_0x488830=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x353e76{constructor(){const _0x185889=_0x5881;this[_0x185889(0xcf)]=_0x5b65d1,this[_0x185889(0x1c8)]=new Map(),this['_h']=null,this['_timer']=null,this[_0x185889(0x2e1)]=![],this[_0x185889(0x25b)]=(_0x8cf10,_0x1b1c79)=>process[_0x185889(0xca)][_0x185889(0x21e)](_0x8cf10+(_0x1b1c79?'\x20'+JSON[_0x185889(0xd8)](_0x1b1c79):'')+'\x0a');}[_0x51eba8(0x24a)](){const _0x3d87ff=_0x51eba8;return _0x317f2c[_0x3d87ff(0x24a)]();}[_0x51eba8(0x23c)](_0x1aa61e){const _0x33c911=_0x51eba8;if(typeof _0x1aa61e===_0x33c911(0x18c))this[_0x33c911(0x25b)]=_0x1aa61e;}[_0x51eba8(0x1d2)](_0x5ae808,_0x3a8fc1,_0x38a688){const _0x5f5ac6=_0x51eba8;if(!this['enabled'])return;let _0x17aff7=this['_buckets'][_0x5f5ac6(0xec)](_0x5ae808);!_0x17aff7&&(_0x17aff7={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x5f5ac6(0x1c8)][_0x5f5ac6(0x17a)](_0x5ae808,_0x17aff7)),_0x17aff7['ms']+=_0x3a8fc1,_0x17aff7[_0x5f5ac6(0x235)]+=0x1,_0x3a8fc1>_0x17aff7['maxMs']&&(_0x17aff7[_0x5f5ac6(0x1b2)]=_0x3a8fc1,_0x17aff7[_0x5f5ac6(0x1b0)]=_0x38a688||'');}[_0x51eba8(0x177)](_0x425d76){const _0x5695dc=_0x51eba8;if(!this[_0x5695dc(0xcf)]||this[_0x5695dc(0x2e1)])return;this[_0x5695dc(0x2e1)]=!![];if(_0x425d76)this[_0x5695dc(0x25b)]=_0x425d76;this['_h']=_0x250bd0({'resolution':0xa}),this['_h'][_0x5695dc(0xbd)](),this[_0x5695dc(0xa7)]=setInterval(()=>this[_0x5695dc(0x128)](),_0x39e5a7);if(this[_0x5695dc(0xa7)][_0x5695dc(0x13e)])this[_0x5695dc(0xa7)][_0x5695dc(0x13e)]();}[_0x51eba8(0x186)](_0x1674a5){const _0x367dbf=_0x51eba8;if(!this[_0x367dbf(0x15a)])this[_0x367dbf(0x15a)]=new Set();this[_0x367dbf(0x15a)][_0x367dbf(0x25e)](_0x1674a5);if(!this['_started'])this['_startAdmission']();}[_0x51eba8(0x2b6)](_0x472136){const _0x47c89f=_0x51eba8;this[_0x47c89f(0x15a)]?.[_0x47c89f(0x2aa)](_0x472136);}[_0x51eba8(0x233)](){const _0x39c11e=_0x51eba8;if(this[_0x39c11e(0x1f3)])return;this[_0x39c11e(0x1f3)]=!![];!this['_h']&&(this['_h']=_0x250bd0({'resolution':0xa}),this['_h']['enable']());const _0x56d82b=_0x39e5a7;this['_admissionTimer']=setInterval(()=>{const _0x28f812=_0x39c11e,_0x2c9ebf=this['_h'];if(!_0x2c9ebf)return;const _0x7f7bbb=_0x2c9ebf['percentile'](0x63)/0xf4240,_0x6e0719=_0x2c9ebf['max']/0xf4240,_0x2b3028=_0x2c9ebf[_0x28f812(0x251)]/0xf4240;_0x2c9ebf[_0x28f812(0x1d4)]();if(this[_0x28f812(0x15a)])for(const _0x103f56 of this[_0x28f812(0x15a)]){try{_0x103f56({'p99Ms':_0x7f7bbb,'maxMs':_0x6e0719,'meanMs':_0x2b3028,'reportMs':_0x56d82b});}catch{}}},_0x56d82b);if(this['_admissionTimer'][_0x39c11e(0x13e)])this[_0x39c11e(0xe1)]['unref']();}[_0x51eba8(0x128)](){const _0x1579f4=_0x51eba8,_0xe21e6f=this['_h'],_0x3acd09=_0xe21e6f[_0x1579f4(0x2bc)]/0xf4240,_0x27b181=_0xe21e6f[_0x1579f4(0x295)](0x63)/0xf4240,_0x1a7d84=_0xe21e6f[_0x1579f4(0x251)]/0xf4240;_0xe21e6f['reset']();const _0x469d3c=[...this[_0x1579f4(0x1c8)][_0x1579f4(0x24c)]()]['map'](([_0x52bc5c,_0x2f3640])=>({'label':_0x52bc5c,..._0x2f3640}))['sort']((_0x1c0057,_0x3684ed)=>_0x3684ed['ms']-_0x1c0057['ms'])[_0x1579f4(0x272)](0x0,0x8);this[_0x1579f4(0x1c8)]['clear']();const _0x512a03=_0x469d3c[_0x1579f4(0x1fa)]((_0x4bdc43,_0x1e2add)=>_0x4bdc43+_0x1e2add['ms'],0x0),_0x32d924=_0x469d3c[_0x1579f4(0x173)](_0x5eeb24=>_0x5eeb24['label']+'='+_0x5eeb24['ms'][_0x1579f4(0x19f)](0x0)+_0x1579f4(0x208)+_0x5eeb24[_0x1579f4(0x235)]+(_0x5eeb24['maxMs']>0x5?'(worst\x20'+_0x5eeb24['maxMs'][_0x1579f4(0x19f)](0x0)+'ms'+(_0x5eeb24[_0x1579f4(0x1b0)]?'\x20'+_0x5eeb24['maxExtra']:'')+')':''));(_0x4f6437||_0x3acd09>=_0x488830)&&this[_0x1579f4(0x25b)]('loop-lag\x20'+_0x39e5a7+_0x1579f4(0x20b)+_0x3acd09[_0x1579f4(0x19f)](0x0)+_0x1579f4(0x140)+_0x27b181[_0x1579f4(0x19f)](0x0)+'ms\x20mean='+_0x1a7d84[_0x1579f4(0x19f)](0x0)+_0x1579f4(0xb7)+_0x512a03[_0x1579f4(0x19f)](0x0)+'ms'+(_0x32d924[_0x1579f4(0x17e)]?_0x1579f4(0x2b5)+_0x32d924[_0x1579f4(0x20d)]('\x20\x20'):''),{'feature':_0x1579f4(0x2d0)});if(this[_0x1579f4(0x15a)])for(const _0x59cdd7 of this[_0x1579f4(0x15a)]){try{_0x59cdd7({'p99Ms':_0x27b181,'maxMs':_0x3acd09,'meanMs':_0x1a7d84,'reportMs':_0x39e5a7});}catch{}}}[_0x51eba8(0x2d6)](){const _0x5a4bab=_0x51eba8;if(this[_0x5a4bab(0xa7)])clearInterval(this[_0x5a4bab(0xa7)]);if(this['_h'])this['_h'][_0x5a4bab(0x104)]();this['_timer']=null,this['_h']=null,this[_0x5a4bab(0x2e1)]=![];}}const _0x1e9376=new _0x353e76();if(_0x1e9376[_0x51eba8(0xcf)])_0x1e9376[_0x51eba8(0x177)]();return okdbLoopMonitor={'LOOP':_0x1e9376},okdbLoopMonitor;}var okdbTimers,hasRequiredOkdbTimers;function requireOkdbTimers(){if(hasRequiredOkdbTimers)return okdbTimers;hasRequiredOkdbTimers=0x1;const _0xe28128=0x2**0x1f-0x1;function _0xf2ee1b(_0x59e134){if(!(_0x59e134>0x0))return 0x0;return _0x59e134>_0xe28128?_0xe28128:_0x59e134;}function _0x9e6700(_0x3deb80){return _0x3deb80===Infinity;}return okdbTimers={'MAX_TIMER_DELAY':_0xe28128,'clampTimerDelay':_0xf2ee1b,'isNeverDelay':_0x9e6700},okdbTimers;}var okdbWriter={'exports':{}},okdbDiag,hasRequiredOkdbDiag;function requireOkdbDiag(){if(hasRequiredOkdbDiag)return okdbDiag;hasRequiredOkdbDiag=0x1;const _0x2be06a=require$$0$1,_0x3e1b57=require$$1;let _0x55a92a,_0x4b2e27,_0x53e33a,_0x4c3fe3,_0x22e776,_0x17ea60,_0x46011a,_0x47c0d0=![];const _0x56b643=new Set();let _0x32e4b6=null;const _0x95dda7=new Map();function _0x45057b(){if(_0x55a92a!==undefined)return _0x55a92a;_0x55a92a=process.env.OKDB_DIAG==='1';if(!_0x55a92a)return![];_0x4b2e27=process.env.OKDB_DIAG_STACK==='1',_0x4c3fe3=Math['max'](0x10,Number(process.env.OKDB_DIAG_RING)||0x100),_0x53e33a=new Array(_0x4c3fe3),_0x22e776=0x0,_0x17ea60=0x0,_0x46011a=process.env.OKDB_DIAG_DIR||null;if(_0x46011a)try{_0x2be06a['mkdirSync'](_0x46011a,{'recursive':!![]});}catch{}return!![];}function _0x439df5(){return _0x55a92a===undefined?_0x45057b():_0x55a92a;}function _0x30b4ee(_0x23e943,_0x1d3fc0){const _0x4f6d78=_0x5881;if(_0x55a92a===undefined?!_0x45057b():!_0x55a92a)return;let _0x564c37;if(_0x4b2e27){const _0x100732=new Error()[_0x4f6d78(0x2d4)]||'';_0x564c37=_0x100732[_0x4f6d78(0x137)]('\x0a')[_0x4f6d78(0x272)](0x3)[_0x4f6d78(0x173)](_0x221d77=>_0x221d77[_0x4f6d78(0x289)]())[_0x4f6d78(0x2c0)](Boolean)[_0x4f6d78(0x272)](0x0,0x8);}_0x53e33a[_0x22e776]={'seq':_0x17ea60++,'t':Date[_0x4f6d78(0x24a)](),'env':_0x23e943,'kind':_0x1d3fc0||_0x4f6d78(0x158),'stack':_0x564c37},_0x22e776=(_0x22e776+0x1)%_0x4c3fe3;}function _0x271cfe(_0x5a8381){const _0x185ac2=[];for(let _0x28b93f=0x0;_0x28b93f<_0x4c3fe3;_0x28b93f++){const _0x4ef42b=_0x53e33a[(_0x22e776-0x1-_0x28b93f+_0x4c3fe3*0x2)%_0x4c3fe3];if(!_0x4ef42b)continue;_0x185ac2['push'](_0x4ef42b);if(_0x185ac2['length']>=_0x5a8381)break;}return _0x185ac2;}function _0x5616af(_0x433ff7){const _0x5416a1=_0x5881;try{process[_0x5416a1(0xca)][_0x5416a1(0x21e)](_0x433ff7+'\x0a');}catch{}if(_0x46011a)try{_0x2be06a[_0x5416a1(0x237)](_0x3e1b57[_0x5416a1(0x20d)](_0x46011a,_0x5416a1(0x268)+process[_0x5416a1(0x11d)]+_0x5416a1(0x134)),_0x433ff7+'\x0a');}catch{}}function _0x55b2ff(_0x4e252e){const _0x3b152f=_0x5881,_0x6e1ebf=_0x271cfe(_0x4e252e);if(!_0x6e1ebf[_0x3b152f(0x17e)])return _0x3b152f(0x1ef);const _0xf74ce4=Date['now']();return _0x6e1ebf[_0x3b152f(0x173)](_0x51d0c7=>{const _0x510dce=_0x3b152f,_0x13d802='\x20\x20#'+_0x51d0c7[_0x510dce(0x278)]+'\x20-'+(_0xf74ce4-_0x51d0c7['t'])+_0x510dce(0xfa)+_0x51d0c7[_0x510dce(0x136)]+'\x20'+_0x51d0c7['kind'];return _0x51d0c7[_0x510dce(0x2d4)]&&_0x51d0c7[_0x510dce(0x2d4)][_0x510dce(0x17e)]?_0x13d802+_0x510dce(0x1a7)+_0x51d0c7['stack']['join'](_0x510dce(0x1a7)):_0x13d802;})[_0x3b152f(0x20d)]('\x0a');}function _0xa4389e(_0x4ea8c3,_0x5f13fe){const _0x3bd1a8=_0x5881,_0x1e87b1=_0x3bd1a8(0x28b)+_0x4ea8c3+'\x20@\x20'+new Date()[_0x3bd1a8(0xb6)]()+_0x3bd1a8(0x27c)+process[_0x3bd1a8(0x11d)]+_0x3bd1a8(0x1bb),_0x478074=[_0x1e87b1,'error:\x20'+(_0x5f13fe&&_0x5f13fe[_0x3bd1a8(0x2d4)]?_0x5f13fe[_0x3bd1a8(0x2d4)][_0x3bd1a8(0x137)]('\x0a')[0x0]:_0x5f13fe),_0x3bd1a8(0x1ba)+(_0x4b2e27?'':'\x20—\x20set\x20OKDB_DIAG_STACK=1\x20to\x20name\x20the\x20call\x20site')+':',_0x55b2ff(0x18),_0xff36e5(),'='[_0x3bd1a8(0x2b3)](_0x1e87b1['length']-0x1)];_0x5616af(_0x478074[_0x3bd1a8(0x20d)]('\x0a'));}function _0xd0f069(_0x2f2fef){const _0xbff4d8=_0x5881;if(!_0x439df5())return;const _0x58d8bd=String(_0x2f2fef&&_0x2f2fef[_0xbff4d8(0x25d)]||_0x2f2fef||''),_0x38ce3b=/already closed|environment is already|invalid read txn|reset an invalid/i[_0xbff4d8(0x160)](_0x58d8bd);_0xa4389e(_0x38ce3b?_0xbff4d8(0xbf):_0xbff4d8(0x299),_0x2f2fef);if(process.env.OKDB_DIAG_SURVIVE==='1'&&_0x38ce3b)return;try{console[_0xbff4d8(0x277)](_0x2f2fef&&_0x2f2fef['stack']?_0x2f2fef[_0xbff4d8(0x2d4)]:_0x2f2fef);}catch{}process['exit'](0x1);}function _0x5e56c5(_0xa4e34a){const _0x46bdb3=_0x5881;if(!_0x439df5())return;const _0x49527e=String(_0xa4e34a&&_0xa4e34a[_0x46bdb3(0x25d)]||_0xa4e34a||'');/already closed|environment is already|invalid read txn|reset an invalid/i[_0x46bdb3(0x160)](_0x49527e)&&_0xa4389e(_0x46bdb3(0x182),_0xa4e34a);}function _0xff36e5(){const _0x35c831=_0x5881,_0x11c091=[_0x35c831(0xef)];let _0x5c2b4b=![];for(const _0x32d308 of _0x56b643){const _0xb96b34=_0x32d308&&_0x32d308[_0x35c831(0x139)];if(!_0xb96b34)continue;for(const [_0x56d630,_0x396cc2]of _0xb96b34){const _0x2df2d2=_0x396cc2&&_0x396cc2[_0x35c831(0x1e1)]&&_0x396cc2[_0x35c831(0x1e1)][_0x35c831(0x22f)];if(!_0x2df2d2)continue;let _0x3c55ff,_0x5a7c42;try{_0x3c55ff=Atomics[_0x35c831(0x283)](_0x2df2d2,0x0),_0x5a7c42=Atomics['load'](_0x2df2d2,0x1);}catch{continue;}if(_0x3c55ff===0x0)continue;_0x5c2b4b=!![];const _0x202ff2=_0x3c55ff>0x0?'SWAP':'copy',_0x1082c5=Date['now']()-Math[_0x35c831(0xce)](_0x3c55ff)*0x3e8,_0x6e48b3=((()=>{const _0x3674ed=_0x35c831;try{return _0x396cc2['_writer']&&_0x396cc2[_0x3674ed(0x2da)][_0x3674ed(0x2cf)]?_0x396cc2['_writer'][_0x3674ed(0x2cf)]():null;}catch{return null;}})());_0x11c091[_0x35c831(0x1a0)]('\x20\x20env='+_0x56d630+'\x20phase='+_0x202ff2+_0x35c831(0x2b9)+_0x1082c5+_0x35c831(0xf6)+_0x5a7c42+(_0x6e48b3?_0x35c831(0x2a8)+_0x6e48b3[_0x35c831(0xcc)]+'\x20oldestPendingMs='+_0x6e48b3['oldestPendingMs']+_0x35c831(0xe0)+_0x6e48b3[_0x35c831(0x1c4)]+'}':''));}}if(!_0x5c2b4b)_0x11c091['push'](_0x35c831(0xe5));return _0x11c091[_0x35c831(0x20d)]('\x0a');}function _0x215fd4(){const _0x29e8bf=_0x5881;if(!_0x439df5())return;const _0x5ea374=Math['max'](0x3e8,Number(process.env.OKDB_DIAG_STALL_MS)||0x1f40),_0x38ddc8=Date[_0x29e8bf(0x24a)]();for(const _0x328ef8 of _0x56b643){const _0x2d7105=_0x328ef8&&_0x328ef8[_0x29e8bf(0x139)];if(!_0x2d7105)continue;for(const [_0x160141,_0x16442b]of _0x2d7105){const _0x4808df=_0x16442b&&_0x16442b['_coordinator']&&_0x16442b[_0x29e8bf(0x1e1)]['view'];if(!_0x4808df)continue;let _0x1f573c;try{_0x1f573c=Atomics[_0x29e8bf(0x283)](_0x4808df,0x0);}catch{continue;}const _0x362857=_0x328ef8[_0x29e8bf(0x1d7)]+'|'+_0x160141;if(_0x1f573c<=0x0){_0x95dda7['delete'](_0x362857);continue;}const _0x310f30=_0x38ddc8-_0x1f573c*0x3e8,_0x3c17bc=_0x95dda7[_0x29e8bf(0xec)](_0x362857);if(_0x310f30<_0x5ea374)continue;if(_0x3c17bc&&_0x38ddc8-_0x3c17bc[_0x29e8bf(0x28c)]<_0x5ea374)continue;_0x95dda7['set'](_0x362857,{'firstTs':_0x3c17bc?_0x3c17bc['firstTs']:_0x1f573c,'dumpedAt':_0x38ddc8});const _0x375e8c='\x0a===\x20OKDB_DIAG\x20STALL:\x20swap\x20drain\x20held\x20'+_0x310f30+_0x29e8bf(0xf0)+_0x160141+_0x29e8bf(0x275)+new Date()['toISOString']()+_0x29e8bf(0x27c)+process[_0x29e8bf(0x11d)]+_0x29e8bf(0x1bb);_0x5616af([_0x375e8c,_0xff36e5(),'='[_0x29e8bf(0x2b3)](_0x375e8c['length']-0x1)][_0x29e8bf(0x20d)]('\x0a'));}}}function _0x5dfea7(){const _0x5d915c=_0x5881;if(!_0x439df5()||_0x47c0d0)return;_0x47c0d0=!![],process['prependListener'](_0x5d915c(0x299),_0xd0f069),process[_0x5d915c(0x19a)]('unhandledRejection',_0x5e56c5);const _0x5a25ae=Math[_0x5d915c(0x2bc)](0xfa,Number(process.env.OKDB_DIAG_WATCH_MS)||0x7d0);_0x32e4b6=setInterval(_0x215fd4,_0x5a25ae);if(_0x32e4b6[_0x5d915c(0x13e)])_0x32e4b6[_0x5d915c(0x13e)]();}function _0x5eee3f(_0x7ae850){const _0x43aafa=_0x5881;if(!_0x439df5()||!_0x7ae850)return;_0x56b643[_0x43aafa(0x25e)](_0x7ae850),_0x5dfea7();}function _0x551aa3(_0x18ff8e){const _0x14f1eb=_0x5881;_0x56b643[_0x14f1eb(0x2aa)](_0x18ff8e);}function _0x17181f(){const _0x4f4af2=_0x5881;if(!_0x439df5())return{'enabled':![],'hint':_0x4f4af2(0x16b)};return{'enabled':!![],'stackCapture':!!_0x4b2e27,'recentWrites':_0x271cfe(0x10),'drain':_0xff36e5()};}return okdbDiag={'isEnabled':_0x439df5,'recordWrite':_0x30b4ee,'installDiag':_0x5dfea7,'registerOkdb':_0x5eee3f,'unregisterOkdb':_0x551aa3,'snapshot':_0x17181f},okdbDiag;}var hasRequiredOkdbWriter;function requireOkdbWriter(){const _0x44635e=_0x5e06fa;if(hasRequiredOkdbWriter)return okdbWriter[_0x44635e(0x16f)];hasRequiredOkdbWriter=0x1;const {performance:_0x1739b4}=require$$0$2,_0x2c04e4=requireOkdbDiag(),_0x52fb54=process.env.OKDB_COMMIT_MODE===_0x44635e(0x1d6);class _0x460fa7{constructor(_0x5659d9){const _0x3d69d3=_0x44635e;this[_0x3d69d3(0x136)]=_0x5659d9,this[_0x3d69d3(0x1f7)]=new Set(),this[_0x3d69d3(0x18d)]=new Map(),this[_0x3d69d3(0x18a)]=0x0,this['_durs']=[],this['_done']=[],this[_0x3d69d3(0x111)]=Math[_0x3d69d3(0x2bc)](0x0,Number(process.env.OKDB_WRITER_HIGH_WATER??0x400)),this[_0x3d69d3(0x1ec)]=0x0,this['_bpWaiters']=[],this['_bpParkedTotal']=0x0,this[_0x3d69d3(0x232)]=null,this[_0x3d69d3(0x12c)]=0x0,this['_nestedTotal']=0x0,this[_0x3d69d3(0x14e)]=![];}async['transaction'](_0xd40a09,_0x231758,{admitted:admitted=![]}={}){const _0x2f8578=_0x44635e;if(_0x2c04e4[_0x2f8578(0xcd)]())_0x2c04e4[_0x2f8578(0x2b2)](this[_0x2f8578(0x136)]?.[_0x2f8578(0x178)],_0x231758);if(this['_closed']){const _0xfebe66=new Error(_0x2f8578(0x28e));_0xfebe66[_0x2f8578(0x2d9)]=_0x2f8578(0x228);throw _0xfebe66;}if(this[_0x2f8578(0x111)]>0x0){let _0x4fb87d=![];while(this[_0x2f8578(0x1ec)]>=this['_highWater']&&!this[_0x2f8578(0x2a7)]){!_0x4fb87d&&(_0x4fb87d=!![],this[_0x2f8578(0x29a)]++),await new Promise(_0x2c02cc=>this[_0x2f8578(0x2ab)][_0x2f8578(0x1a0)](_0x2c02cc));}if(this[_0x2f8578(0x2a7)]){const _0x52f821=new Error(_0x2f8578(0x28e));_0x52f821['code']=_0x2f8578(0x228);throw _0x52f821;}}this[_0x2f8578(0x1ec)]++;const _0x22ee90=admitted?null:this['env'][_0x2f8578(0x1e1)];for(;;){while(this['_held'])await this[_0x2f8578(0x232)];if(_0x22ee90)try{await _0x22ee90[_0x2f8578(0x26e)]();}catch(_0x1396a2){this[_0x2f8578(0x1ec)]--;if(this[_0x2f8578(0x2ab)]['length']&&this['_outstanding']<this[_0x2f8578(0x111)])this[_0x2f8578(0x2ab)][_0x2f8578(0x276)]()();throw _0x1396a2;}if(!this[_0x2f8578(0x232)])break;if(_0x22ee90)_0x22ee90[_0x2f8578(0x196)]();}if(this[_0x2f8578(0x2a7)]){if(_0x22ee90)_0x22ee90[_0x2f8578(0x196)]();this[_0x2f8578(0x1ec)]--;if(this[_0x2f8578(0x2ab)]['length']&&this['_outstanding']<this[_0x2f8578(0x111)])this[_0x2f8578(0x2ab)][_0x2f8578(0x276)]()();const _0x3f4af8=new Error(_0x2f8578(0x28e));_0x3f4af8[_0x2f8578(0x2d9)]=_0x2f8578(0x228);throw _0x3f4af8;}const _0x26bc17=_0x1739b4['now']();if(_0x52fb54)try{const _0x3de17d=this['env']['db'][_0x2f8578(0x2c6)](_0xd40a09);this[_0x2f8578(0x18a)]++;if(this['_durs'][_0x2f8578(0x1a0)](_0x1739b4[_0x2f8578(0x24a)]()-_0x26bc17)>0x100)this[_0x2f8578(0x1f4)][_0x2f8578(0x276)]();if(this['_done'][_0x2f8578(0x1a0)](_0x1739b4[_0x2f8578(0x24a)]())>0x800)this[_0x2f8578(0x2ac)][_0x2f8578(0x276)]();return _0x3de17d;}finally{this[_0x2f8578(0x1ec)]--;if(this['_bpWaiters'][_0x2f8578(0x17e)]&&this['_outstanding']<this[_0x2f8578(0x111)])this[_0x2f8578(0x2ab)]['shift']()();if(_0x22ee90)_0x22ee90['afterWrite']();}let _0x280a50=null;const _0x52bd02=()=>{const _0x43345b=_0x2f8578,_0x322fcf=_0xd40a09();if(_0x322fcf&&typeof _0x322fcf[_0x43345b(0xda)]==='function'&&!_0x280a50){this[_0x43345b(0x12c)]++;let _0x583119;const _0x14ff7c=new Promise(_0x5617a9=>_0x583119=_0x5617a9);this[_0x43345b(0x232)]=_0x14ff7c,_0x280a50=()=>{const _0x330526=_0x43345b;if(this[_0x330526(0x232)]===_0x14ff7c)this['_held']=null;_0x583119();};}return _0x322fcf;};let _0x152722;try{_0x152722=this[_0x2f8578(0x136)]['db'][_0x2f8578(0x24f)](_0x52bd02);}catch(_0x4237bb){_0x152722=Promise[_0x2f8578(0xf2)](_0x4237bb);}(!_0x152722||typeof _0x152722['then']!==_0x2f8578(0x18c))&&(this[_0x2f8578(0xdb)]++,!this['_nestedWarned']&&(this[_0x2f8578(0x14e)]=!![],console[_0x2f8578(0x26f)](_0x2f8578(0x185)+(this[_0x2f8578(0x136)]?.[_0x2f8578(0x178)]??'?')+_0x2f8578(0x17b))),_0x152722=Promise[_0x2f8578(0x1ce)](_0x152722));const _0xbeb51b=()=>{if(_0x280a50)_0x280a50();};_0x152722[_0x2f8578(0xda)](_0xbeb51b,_0xbeb51b),this[_0x2f8578(0x1f7)][_0x2f8578(0x25e)](_0x152722),this[_0x2f8578(0x18d)][_0x2f8578(0x17a)](_0x152722,_0x26bc17);const _0x33e2a0=()=>{const _0x4b163a=_0x2f8578;this[_0x4b163a(0x1f7)][_0x4b163a(0x2aa)](_0x152722),this[_0x4b163a(0x18d)][_0x4b163a(0x2aa)](_0x152722),this[_0x4b163a(0x18a)]++,this[_0x4b163a(0x1ec)]--;this['_bpWaiters']['length']&&this['_outstanding']<this[_0x4b163a(0x111)]&&this['_bpWaiters']['shift']()();if(this['_durs'][_0x4b163a(0x1a0)](_0x1739b4['now']()-_0x26bc17)>0x100)this['_durs'][_0x4b163a(0x276)]();if(this[_0x4b163a(0x2ac)][_0x4b163a(0x1a0)](_0x1739b4[_0x4b163a(0x24a)]())>0x800)this[_0x4b163a(0x2ac)][_0x4b163a(0x276)]();};_0x152722[_0x2f8578(0xda)](_0x33e2a0,_0x33e2a0);try{return await _0x152722;}finally{if(_0x22ee90)_0x22ee90[_0x2f8578(0x196)]();}}[_0x44635e(0x2cf)](){const _0x5e438b=_0x44635e,_0x120003=_0x1739b4[_0x5e438b(0x24a)]();let _0x33bfc7=0x0;for(const _0x26d40c of this['_enqueuedAt'][_0x5e438b(0x2e6)]()){const _0x5f2ef1=_0x120003-_0x26d40c;if(_0x5f2ef1>_0x33bfc7)_0x33bfc7=_0x5f2ef1;}let _0x5668f9=0x0;for(let _0x3a2ba8=this[_0x5e438b(0x2ac)][_0x5e438b(0x17e)]-0x1;_0x3a2ba8>=0x0;_0x3a2ba8--){if(_0x120003-this[_0x5e438b(0x2ac)][_0x3a2ba8]>0x3e8)break;_0x5668f9++;}let _0x20b527=0x0;if(this['_durs'][_0x5e438b(0x17e)]){const _0x2dcafc=[...this[_0x5e438b(0x1f4)]]['sort']((_0x14b21d,_0x37f6d2)=>_0x14b21d-_0x37f6d2);_0x20b527=_0x2dcafc[Math[_0x5e438b(0x22d)](_0x2dcafc[_0x5e438b(0x17e)]-0x1,Math[_0x5e438b(0x27a)](_0x2dcafc[_0x5e438b(0x17e)]*0.99))];}return{'depth':this[_0x5e438b(0x1f7)][_0x5e438b(0x2e3)],'oldestPendingMs':Math[_0x5e438b(0x24b)](_0x33bfc7),'committed':this[_0x5e438b(0x18a)],'commitsPerSec':_0x5668f9,'commitP99Ms':Math[_0x5e438b(0x24b)](_0x20b527),'parkedNow':this[_0x5e438b(0x2ab)]['length'],'parkedTotal':this[_0x5e438b(0x29a)],'highWater':this[_0x5e438b(0x111)]};}[_0x44635e(0x2c8)](){const _0x419b3f=_0x44635e,_0x4d11f7=_0x1739b4[_0x419b3f(0x24a)]();return[...this[_0x419b3f(0x18d)][_0x419b3f(0x2e6)]()][_0x419b3f(0x173)](_0x475ac3=>Math[_0x419b3f(0x24b)](_0x4d11f7-_0x475ac3))[_0x419b3f(0x101)]((_0x169f32,_0x1bd34f)=>_0x1bd34f-_0x169f32);}[_0x44635e(0x17c)](){const _0x576d3f=_0x44635e;this['_closed']=!![];for(const _0x55126c of this['_bpWaiters'][_0x576d3f(0x142)](0x0))_0x55126c();}async[_0x44635e(0x180)](){const _0x21c1e2=_0x44635e;let _0xf7c9b6=0x0;while(this[_0x21c1e2(0x1f7)][_0x21c1e2(0x2e3)]&&_0xf7c9b6++<0x3e8){await Promise[_0x21c1e2(0x138)]([...this['_inflight']]);}}async[_0x44635e(0x170)](_0x1f96e0,_0x461297,_0x26cc47,_0x2f1bad){const _0x339f56=_0x44635e;return this[_0x339f56(0x285)](()=>{const _0x37b012=_0x339f56;if(_0x2f1bad===undefined)_0x1f96e0[_0x37b012(0x156)](_0x461297,_0x26cc47);else _0x1f96e0[_0x37b012(0x156)](_0x461297,_0x26cc47,_0x2f1bad);},_0x339f56(0x2d7));}async[_0x44635e(0x2de)](_0x5ed422,_0x47d4f9){const _0x507850=_0x44635e;return this[_0x507850(0x285)](()=>_0x5ed422[_0x507850(0x20c)](_0x47d4f9),_0x507850(0xae));}}async function _0x18823b(_0x48e0c8,_0x5f526b){const _0x103c91=_0x44635e;if(_0x5f526b==null)_0x5f526b=Math['max'](0x3e8,Number(process.env.OKDB_FLUSH_BEFORE_CLOSE_MS)||0x1d4c0);try{const _0x7bbf3f=_0x48e0c8?.['flushed'];if(!_0x7bbf3f||typeof _0x7bbf3f[_0x103c91(0xda)]!==_0x103c91(0x18c))return;await Promise[_0x103c91(0xd7)]([Promise['resolve'](_0x7bbf3f)[_0x103c91(0x230)](()=>{}),new Promise(_0x529b8c=>{const _0x2b7d58=_0x103c91,_0xd62b10=setTimeout(_0x529b8c,_0x5f526b);if(_0xd62b10[_0x2b7d58(0x13e)])_0xd62b10['unref']();})]);}catch{}}function _0x18651e(_0x45dbd6){const _0x452a68=_0x44635e;if(_0x52fb54)return Promise[_0x452a68(0x1ce)]();const _0x5a93f5=_0x45dbd6?.[_0x452a68(0x121)];return _0x5a93f5&&typeof _0x5a93f5[_0x452a68(0xda)]===_0x452a68(0x18c)?_0x5a93f5:Promise['resolve']();}const _0x46f4df=Math[_0x44635e(0x2bc)](0x1,Math[_0x44635e(0x27a)](Number(process.env.UV_THREADPOOL_SIZE))||0x4),_0x1b08c2=Math[_0x44635e(0x2bc)](0x1,_0x46f4df-0x2);let _0x5be501=0x0;const _0x122216=[];async function _0x2e0bae(_0x4d949b){const _0x41b3d2=_0x44635e;if(_0x5be501<_0x1b08c2)_0x5be501++;else await new Promise(_0x33b8fb=>_0x122216[_0x41b3d2(0x1a0)](_0x33b8fb));try{return await _0x4d949b();}finally{const _0x21f502=_0x122216[_0x41b3d2(0x276)]();if(_0x21f502)_0x21f502();else _0x5be501--;}}return okdbWriter[_0x44635e(0x16f)]=_0x460fa7,okdbWriter['exports'][_0x44635e(0x2b4)]=_0x2e0bae,okdbWriter[_0x44635e(0x16f)][_0x44635e(0x1f8)]=_0x1b08c2,okdbWriter[_0x44635e(0x16f)]['flushLmdb']=_0x18823b,okdbWriter[_0x44635e(0x16f)][_0x44635e(0x121)]=_0x18651e,okdbWriter[_0x44635e(0x16f)]['SYNC_COMMITS']=_0x52fb54,okdbWriter['exports'];}var okdbLock,hasRequiredOkdbLock;function requireOkdbLock(){const _0x845a12=_0x5e06fa;if(hasRequiredOkdbLock)return okdbLock;hasRequiredOkdbLock=0x1;const _0x389a49=require$$0$3,{clampTimerDelay:_0x10ffdb}=requireOkdbTimers(),{SYNC_COMMITS:_0x52c0f3}=requireOkdbWriter(),_0x497627=_0x845a12(0x2be);class _0x260cdf{constructor(_0x2c9e0f,_0x4d25c4,_0x5e9f19){const _0x46554a=_0x845a12;this[_0x46554a(0x211)]=_0x2c9e0f,this['_key']=_0x4d25c4,this[_0x46554a(0x15f)]=_0x5e9f19,this[_0x46554a(0x11a)]=![],this[_0x46554a(0x2e4)]=null,this[_0x46554a(0x2e7)]=null;}['isHeld'](){const _0xf34c5d=_0x845a12;if(this[_0xf34c5d(0x11a)])return![];try{const _0x3aa289=this[_0xf34c5d(0x211)][_0xf34c5d(0x2ae)]()['get'](this[_0xf34c5d(0x269)]);if(!_0x3aa289||_0x3aa289[_0xf34c5d(0x187)]!==this[_0xf34c5d(0x15f)])return![];const _0x57aac2=_0x3aa289['updatedAt']??_0x3aa289[_0xf34c5d(0x187)];if(_0x57aac2+_0x3aa289['ttlMs']<Date[_0xf34c5d(0x24a)]())return![];return!![];}catch{return!this[_0xf34c5d(0x11a)];}}['holder'](){const _0x28cef3=_0x845a12;if(this[_0x28cef3(0x11a)])return null;try{return this[_0x28cef3(0x211)][_0x28cef3(0x2ae)]()[_0x28cef3(0xec)](this[_0x28cef3(0x269)])??null;}catch{return null;}}async[_0x845a12(0xe2)](_0x195a06){const _0x391c48=_0x845a12;if(this['_released'])return;try{if(this[_0x391c48(0x211)][_0x391c48(0x2a7)]())return;const _0x342815=this[_0x391c48(0x211)][_0x391c48(0x2ae)]()[_0x391c48(0xec)](this[_0x391c48(0x269)]);if(!_0x342815||_0x342815[_0x391c48(0x187)]!==this[_0x391c48(0x15f)])return;if(_0x52c0f3)this[_0x391c48(0x211)][_0x391c48(0x2ae)]()[_0x391c48(0x156)](this['_key'],{..._0x342815,'ttlMs':_0x342815[_0x391c48(0x1bd)]+_0x195a06});else await this['_lock'][_0x391c48(0x2ae)]()['put'](this['_key'],{..._0x342815,'ttlMs':_0x342815[_0x391c48(0x1bd)]+_0x195a06});}catch{}}async[_0x845a12(0x1e8)](){const _0x1ecf35=_0x845a12;if(this['_released'])return;if(this[_0x1ecf35(0x2e7)])try{await this[_0x1ecf35(0x2e7)];}catch{}clearInterval(this[_0x1ecf35(0x2e4)]),this[_0x1ecf35(0x2e4)]=null,this['_released']=!![];try{if(this[_0x1ecf35(0x211)][_0x1ecf35(0x2a7)]())return;const _0x56bd85=this['_lock']['_db']()[_0x1ecf35(0xec)](this[_0x1ecf35(0x269)]);if(_0x56bd85&&_0x56bd85[_0x1ecf35(0x187)]===this[_0x1ecf35(0x15f)]){if(_0x52c0f3)this['_lock'][_0x1ecf35(0x2ae)]()[_0x1ecf35(0x20c)](this[_0x1ecf35(0x269)]);else await this['_lock'][_0x1ecf35(0x2ae)]()[_0x1ecf35(0x2de)](this['_key']);}}catch{}}[_0x845a12(0xaa)](_0x3b5373,_0x58b8a0){const _0x44ec45=_0x845a12,_0x23591d=_0x10ffdb(_0x58b8a0??Math[_0x44ec45(0x27a)](_0x3b5373/0x3));this[_0x44ec45(0x2e4)]=setInterval(()=>{if(this['_released'])return;this['_heartbeatInFlight']=((async()=>{const _0x2cd5e5=_0x5881;try{if(this[_0x2cd5e5(0x211)][_0x2cd5e5(0x2a7)]())return;const _0x3f14dd=this['_lock']['_db']()[_0x2cd5e5(0xec)](this[_0x2cd5e5(0x269)]);if(!_0x3f14dd||_0x3f14dd[_0x2cd5e5(0x187)]!==this[_0x2cd5e5(0x15f)]){this['_released']=!![],clearInterval(this['_heartbeatTimer']),this[_0x2cd5e5(0x2e4)]=null;return;}if(_0x52c0f3)this['_lock'][_0x2cd5e5(0x2ae)]()[_0x2cd5e5(0x156)](this[_0x2cd5e5(0x269)],{..._0x3f14dd,'updatedAt':Date[_0x2cd5e5(0x24a)]()});else await this[_0x2cd5e5(0x211)][_0x2cd5e5(0x2ae)]()[_0x2cd5e5(0x170)](this[_0x2cd5e5(0x269)],{..._0x3f14dd,'updatedAt':Date[_0x2cd5e5(0x24a)]()});}catch{}this[_0x2cd5e5(0x2e7)]=null;})());},_0x23591d);if(this['_heartbeatTimer']['unref'])this[_0x44ec45(0x2e4)][_0x44ec45(0x13e)]();}}class _0x2bb68f{constructor(_0x327b19,{namespace:_0x3da95a,ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}={}){const _0x5b48be=_0x845a12;this[_0x5b48be(0x242)]=_0x327b19,this[_0x5b48be(0x1be)]=_0x3da95a,this['ttlMs']=ttlMs,this[_0x5b48be(0x21b)]=heartbeatMs,this['_lockDb']=null;}[_0x845a12(0x2ae)](){const _0x54ca99=_0x845a12;return this['_assertUsable'](),(!this['_lockDb']||this['_lockDbOf']!==this[_0x54ca99(0x242)])&&(this['_lockDb']=this['_rawDb'][_0x54ca99(0x254)](_0x497627,{'dupSort':![]}),this[_0x54ca99(0xf5)]=this[_0x54ca99(0x242)]),this[_0x54ca99(0x297)];}[_0x845a12(0x115)](){const _0x14fee1=_0x845a12;return this[_0x14fee1(0x1bf)](),(!this['_wantDbHandle']||this[_0x14fee1(0x203)]!==this[_0x14fee1(0x242)])&&(this[_0x14fee1(0xee)]=this[_0x14fee1(0x242)]['openDB'](_0x497627+':want',{'dupSort':![]}),this[_0x14fee1(0x203)]=this[_0x14fee1(0x242)]),this[_0x14fee1(0xee)];}[_0x845a12(0x2a7)](){const _0x386be2=_0x845a12,_0x48bc9e=this[_0x386be2(0x242)]?.[_0x386be2(0x2cf)];return _0x48bc9e===_0x386be2(0x27d)||_0x48bc9e==='closed';}[_0x845a12(0x1bf)](){const _0x49cadb=_0x845a12;if(this[_0x49cadb(0x2a7)]())throw new Error(_0x49cadb(0x12d));}[_0x845a12(0x269)](_0x97de4f){const _0x38436e=_0x845a12;return this[_0x38436e(0x1be)]+':'+_0x97de4f;}['signalWant'](_0x10c1e6){const _0x523572=_0x845a12;try{if(this[_0x523572(0x2a7)]())return;_0x52c0f3?this[_0x523572(0x115)]()[_0x523572(0x156)](this[_0x523572(0x269)](_0x10c1e6),Date[_0x523572(0x24a)]()):this[_0x523572(0x115)]()[_0x523572(0x170)](this['_key'](_0x10c1e6),Date[_0x523572(0x24a)]())?.[_0x523572(0x230)]?.(()=>{});}catch{}}[_0x845a12(0x162)](_0x2108bd,_0x507b51=0x3e8){const _0xd0d138=_0x845a12;try{const _0x3c4c91=this[_0xd0d138(0x115)]()[_0xd0d138(0xec)](this[_0xd0d138(0x269)](_0x2108bd));return typeof _0x3c4c91==='number'&&Date[_0xd0d138(0x24a)]()-_0x3c4c91<_0x507b51;}catch{return![];}}['_isStale'](_0x2846ed){const _0xd15cd2=_0x845a12,_0x1f7345=_0x2846ed[_0xd15cd2(0xc7)]??_0x2846ed['acquiredAt'];return _0x1f7345+_0x2846ed[_0xd15cd2(0x1bd)]<Date['now']();}static['_holderDead'](_0x5539b0){const _0x21988d=_0x845a12,_0x383a4e=_0x5539b0?.[_0x21988d(0x27b)];if(!_0x383a4e||typeof _0x383a4e[_0x21988d(0x11d)]!==_0x21988d(0x2a4))return![];if(_0x383a4e['hostname']!==_0x389a49[_0x21988d(0x165)]())return![];if(_0x383a4e[_0x21988d(0x11d)]===process['pid'])return![];try{return process[_0x21988d(0x209)](_0x383a4e['pid'],0x0),![];}catch(_0x27d8dd){return _0x27d8dd['code']===_0x21988d(0x1de);}}async[_0x845a12(0x28f)](_0x374cd6,_0x52813a={},_0x5c30d4={}){const _0x5cf27d=_0x845a12,_0x5cbf3a=this['_key'](_0x374cd6),_0x239cad=_0x5c30d4[_0x5cf27d(0x1bd)]??this['ttlMs'],_0x1908c6=Date[_0x5cf27d(0x24a)](),_0x3d9c84={'holder':{'pid':process[_0x5cf27d(0x11d)],'hostname':_0x389a49['hostname'](),..._0x52813a},'acquiredAt':_0x1908c6,'updatedAt':_0x1908c6,'ttlMs':_0x239cad};let _0x26c417=![],_0x5c7bfc=null;if(this[_0x5cf27d(0x2a7)]())return{'acquired':![],'handle':null,'current':null};try{const _0x11dc9d=()=>{const _0x486264=_0x5cf27d,_0x280337=this[_0x486264(0x2ae)]()[_0x486264(0xec)](_0x5cbf3a);if(_0x280337&&!this[_0x486264(0x231)](_0x280337)&&!_0x2bb68f[_0x486264(0x105)](_0x280337)){const _0x101274=_0x52813a[_0x486264(0x10d)]!=null&&_0x280337[_0x486264(0x27b)][_0x486264(0x11d)]===process['pid']&&_0x280337[_0x486264(0x27b)][_0x486264(0x10d)]===_0x52813a[_0x486264(0x10d)];if(!_0x101274){_0x26c417=![],_0x5c7bfc=_0x280337;return;}_0x3d9c84[_0x486264(0x187)]<=_0x280337[_0x486264(0x187)]&&(_0x3d9c84[_0x486264(0x187)]=_0x280337[_0x486264(0x187)]+0x1,_0x3d9c84[_0x486264(0xc7)]=_0x3d9c84[_0x486264(0x187)]);}this[_0x486264(0x2ae)]()[_0x486264(0x170)](_0x5cbf3a,_0x3d9c84),_0x26c417=!![],_0x5c7bfc=_0x3d9c84;};if(_0x52c0f3)this[_0x5cf27d(0x2ae)]()[_0x5cf27d(0x2c6)](_0x11dc9d);else await this[_0x5cf27d(0x2ae)]()[_0x5cf27d(0x24f)](_0x11dc9d);}catch{return{'acquired':![],'handle':null,'current':null};}if(!_0x26c417)return{'acquired':![],'handle':null,'current':_0x5c7bfc};const _0x2529bb=new _0x260cdf(this,_0x5cbf3a,_0x3d9c84[_0x5cf27d(0x187)]);return _0x2529bb['_startHeartbeat'](_0x239cad,this[_0x5cf27d(0x21b)]),{'acquired':!![],'handle':_0x2529bb,'current':_0x5c7bfc};}[_0x845a12(0x1cf)](_0x5e9456){const _0x474ebe=_0x845a12;try{return this[_0x474ebe(0x2ae)]()['get'](this[_0x474ebe(0x269)](_0x5e9456))??null;}catch{return null;}}[_0x845a12(0x1b4)](){const _0x5f5294=_0x845a12,_0x220bee=this['namespace']+':',_0x432413=[];try{for(const {key:_0x244164,value:_0x21cab9}of this[_0x5f5294(0x2ae)]()[_0x5f5294(0x1c1)]({'start':_0x220bee,'end':_0x220bee+'\xff'})){typeof _0x244164===_0x5f5294(0xa8)&&_0x244164[_0x5f5294(0x218)](_0x220bee)&&_0x432413[_0x5f5294(0x1a0)]({'id':_0x244164[_0x5f5294(0x272)](_0x220bee[_0x5f5294(0x17e)]),'entry':_0x21cab9});}}catch{}return _0x432413;}static['listAll'](_0x5159c3){const _0x579138=_0x845a12,_0x312d36=[];try{const _0x237cb8=_0x5159c3[_0x579138(0x254)](_0x497627,{'dupSort':![]});for(const {key:_0x1ea58c,value:_0x44d58a}of _0x237cb8['getRange']({})){if(typeof _0x1ea58c!=='string')continue;const _0x378b83=_0x1ea58c[_0x579138(0x2cb)](':');if(_0x378b83<0x1)continue;_0x312d36['push']({'namespace':_0x1ea58c[_0x579138(0x272)](0x0,_0x378b83),'id':_0x1ea58c['slice'](_0x378b83+0x1),'entry':_0x44d58a});}}catch{}return _0x312d36;}}return okdbLock={'OKDBLock':_0x2bb68f},okdbLock;}var version=_0x5e06fa(0x110),require$$6={'version':version},okdbProcessRegistry,hasRequiredOkdbProcessRegistry;function requireOkdbProcessRegistry(){const _0x3faefc=_0x5e06fa;if(hasRequiredOkdbProcessRegistry)return okdbProcessRegistry;hasRequiredOkdbProcessRegistry=0x1;const _0x5e8a97=require$$0$3,_0x4e3516=require$$1$1,_0x5706c7=require$$2,{LOOP:_0x23d241}=requireOkdbLoopMonitor(),{OKDBLock:_0x30fdf7}=requireOkdbLock(),{SYNC_COMMITS:_0x2e88d8}=requireOkdbWriter(),_0xc4a0da=_0x3faefc(0x2e9),_0x16f04c=_0x3faefc(0x1a4),_0x1f78d9=_0x3faefc(0x2d2),_0x1b0b76=_0x3faefc(0x168),_0x1f48f5=(_0x1383bc,_0x233411)=>_0x1383bc+':'+_0x233411,_0x394355=(_0x1e181f,_0xd2575d)=>_0x1e181f+'::'+_0xd2575d,_0x2204da=(_0x196df9,_0x5e80b)=>_0x196df9+'/'+_0x5e80b,_0xce4ca5=(_0x514bec,_0x5ce859)=>_0x514bec+'#'+_0x5ce859,_0x573832=_0x28e1b8=>{const _0x2a75eb=_0x3faefc;if(_0x28e1b8?.[_0x2a75eb(0x1a1)])return _0x28e1b8[_0x2a75eb(0x1a1)];const _0x3cb30e=_0x28e1b8?.[_0x2a75eb(0x253)];return typeof _0x3cb30e===_0x2a75eb(0xa8)&&_0x3cb30e['includes']('#')?_0x3cb30e[_0x2a75eb(0x272)](0x0,_0x3cb30e[_0x2a75eb(0x2cb)]('#')):_0x3cb30e;},_0x13a537=Number(process.env.OKDB_WORKERS_HEARTBEAT_MS)||0x2710,_0x1f6e90=Number(process.env.OKDB_WORKERS_PUBLISH_MS)||0x3e8,_0x4b5ec0=_0x13a537*0x3,_0x1e5760=Number(process.env.OKDB_PID_REUSE_HORIZON_MS)||Math[_0x3faefc(0x2bc)](0x927c0,_0x4b5ec0*0x14),_0x53d213=[_0x3faefc(0x10e),_0x3faefc(0xed),_0x3faefc(0x1da),'processor:error',_0x3faefc(0xc8),_0x3faefc(0x221)];let _0x51077c=null;function _0x22a38e(){const _0x845372=_0x3faefc;if(_0x51077c==null)_0x51077c=Math[_0x845372(0x24b)]((Date['now']()-process[_0x845372(0x14f)]()*0x3e8)/0x3e8)*0x3e8;return _0x51077c;}function _0x3f99cb(_0x275b27){const _0x286524=_0x3faefc;if(process.env.OKDB_PROCESS_KILL==='off')return![];if(_0x275b27?.[_0x286524(0x118)]?.[_0x286524(0x2bd)]&&typeof _0x275b27[_0x286524(0x118)][_0x286524(0x2bd)]==='object'&&_0x275b27[_0x286524(0x118)][_0x286524(0x2bd)][_0x286524(0x209)]===![])return![];return!![];}function _0x56b357(_0x1e9a7d,_0x367863){const _0x257db4=_0x3faefc,_0xa3d395=!!_0x367863?.[_0x257db4(0x1a3)];switch(_0x1e9a7d){case _0x257db4(0x240):return{'controllable':_0xa3d395,'decommissionable':![],'killable':!![],'killConfirm':_0x257db4(0x197)};case'cli':case _0x257db4(0x26b):return{'controllable':_0xa3d395,'decommissionable':![],'killable':!![],'killConfirm':_0x257db4(0x11e)};case _0x257db4(0x1fe):return{'controllable':![],'decommissionable':![],'killable':![]};case _0x257db4(0xea):case'queue-worker':case _0x257db4(0x1d1):case _0x257db4(0x1b7):return{'controllable':![],'decommissionable':!![],'killable':!![],'killConfirm':_0x257db4(0x23b)};default:return{'controllable':![],'decommissionable':![],'killable':![]};}}class _0x33776{constructor(_0xcf4b7d){const _0x4739d4=_0x3faefc;this[_0x4739d4(0x1dc)]=_0xcf4b7d,this[_0x4739d4(0xb0)]=null,this['_desired']=null,this[_0x4739d4(0x116)]=new Map(),this[_0x4739d4(0x25c)]=null,this['_isWriter']=![],this['_isReader']=![],this[_0x4739d4(0x1af)]=_0x22a38e(),this[_0x4739d4(0x1db)]=_0x1f48f5(process[_0x4739d4(0x11d)],this['_processStartedAt']),this[_0x4739d4(0x171)]=_0x5706c7[_0x4739d4(0x1cb)]()['slice'](0x0,0x8),this[_0x4739d4(0x2c1)]=_0xce4ca5(this['_selfKey'],this[_0x4739d4(0x171)]),this['_startedAt']=Date[_0x4739d4(0x24a)](),this[_0x4739d4(0x14b)]=null,this['_supervisorKey']=null,this[_0x4739d4(0x2a3)]=null,this[_0x4739d4(0x175)]=null,this[_0x4739d4(0x103)]=null,this[_0x4739d4(0xb8)]=null,this[_0x4739d4(0x159)]=0x0,this[_0x4739d4(0x245)]={},this['_children']=new Map(),this[_0x4739d4(0x164)]=process['cpuUsage'](),this['_lastCpuAt']=Date[_0x4739d4(0x24a)](),this[_0x4739d4(0x123)]=0x0,this[_0x4739d4(0x250)]=new Map();}get[_0x3faefc(0x146)](){const _0x5c85b6=_0x3faefc;return this[_0x5c85b6(0x1db)];}get[_0x3faefc(0x108)](){return this['_rowKey'];}['_caps'](_0x2314e1,_0x79c352){const _0x3d7409=_0x3faefc,_0x5ceafd=_0x56b357(_0x2314e1,_0x79c352);if(_0x5ceafd[_0x3d7409(0x1a2)]&&!_0x3f99cb(this[_0x3d7409(0x1dc)]))return{..._0x5ceafd,'killable':![],'killConfirm':undefined};return _0x5ceafd;}[_0x3faefc(0xc4)](){return!!this['_statusEnv'];}[_0x3faefc(0x239)](_0x159a0f){const _0x48b9de=_0x3faefc;Object[_0x48b9de(0x174)](this['_ownMeta'],_0x159a0f||{});}[_0x3faefc(0x202)](_0x42af4a){const _0x4474f4=_0x3faefc;if(_0x42af4a)this[_0x4474f4(0x2a3)]=_0x42af4a;}[_0x3faefc(0x262)](_0x1a280f={}){const _0x5b9902=_0x3faefc;return this[_0x5b9902(0x1dc)][_0x5b9902(0x1d5)](_0x1a280f);}[_0x3faefc(0x161)](){const _0x2ab144=_0x3faefc,_0x7bc635={};let _0x532491=0x0,_0x3c6003=0x0;const _0x50ad80=new Set();for(const _0x497b66 of this[_0x2ab144(0x2a6)]()){_0x3c6003++;const _0x25a5b7=_0x497b66['processing'];if(!_0x25a5b7)continue;if(_0x25a5b7[_0x2ab144(0x23e)])_0x532491++;for(const _0x1f3395 of _0x25a5b7[_0x2ab144(0x1a3)]||[]){if(![_0x2ab144(0x157),_0x2ab144(0x2c9)][_0x2ab144(0x1a9)](_0x1f3395[_0x2ab144(0x220)]))continue;(_0x1f3395['state']===_0x2ab144(0x1c2)||_0x1f3395[_0x2ab144(0x29d)]===_0x2ab144(0x296))&&_0x1f3395[_0x2ab144(0x143)]&&_0x50ad80[_0x2ab144(0x25e)]((_0x1f3395['env']||_0x2ab144(0x201))+':'+_0x1f3395['cursorKey']);const _0x2016dc=_0x1f3395[_0x2ab144(0x136)]||'default';(_0x7bc635[_0x2016dc]||=[])['push']({..._0x1f3395,'env':_0x2016dc,'owner':{'pid':_0x497b66[_0x2ab144(0x11d)]??null,'kind':_0x497b66[_0x2ab144(0xb9)]??null}});}}for(const [_0x5be7e5,_0x5060af]of Object['entries'](_0x7bc635)){for(const _0x10adbb of _0x5060af){if(_0x10adbb[_0x2ab144(0x220)]===_0x2ab144(0x157)&&!_0x10adbb[_0x2ab144(0x1eb)]){const _0x3a2c01=_0x5be7e5+':'+(_0x10adbb['cursorKey']??'');if(!_0x50ad80[_0x2ab144(0xab)](_0x3a2c01))_0x10adbb[_0x2ab144(0x223)]=!![];}}}return{'envs':_0x7bc635,'policy':null,'participation':{'participating':_0x532491,'total':_0x3c6003},'source':_0x2ab144(0x102)};}['processorsView'](){const _0x30953c=_0x3faefc,_0x1f629b=_0x438142=>{const _0x362f95=_0x5881;if(_0x438142[_0x362f95(0x29d)]===_0x362f95(0x1c2)||_0x438142['state']==='building'||_0x438142['state']===_0x362f95(0x277))return 0x3;if(_0x438142[_0x362f95(0x1eb)])return 0x1;return 0x2;},_0x43cf73=new Map();for(const _0x25a4e9 of this[_0x30953c(0x2a6)]()){for(const _0xec1949 of _0x25a4e9[_0x30953c(0x106)]?.[_0x30953c(0x1a3)]||[]){const _0x145aad={..._0xec1949,'owner':{'pid':_0x25a4e9['pid']??null,'kind':_0x25a4e9[_0x30953c(0xb9)]??null,'host':_0x25a4e9[_0x30953c(0xfb)]??null}},_0x1a811c=_0xec1949['mode']==='single'?_0x30953c(0x1dd)+(_0xec1949['env']??'')+'::'+(_0xec1949['cursorKey']??_0xec1949[_0x30953c(0x22e)]??_0xec1949['id']):'inst:'+(_0x25a4e9['nodeKey']??_0x25a4e9['processKey']??'')+'::'+(_0xec1949[_0x30953c(0x136)]??'')+'::'+_0xec1949['id'],_0x37e89b=_0x43cf73[_0x30953c(0xec)](_0x1a811c);if(!_0x37e89b||_0x1f629b(_0x145aad)>_0x1f629b(_0x37e89b))_0x43cf73['set'](_0x1a811c,_0x145aad);}}return[..._0x43cf73[_0x30953c(0x2e6)]()];}[_0x3faefc(0xd2)](){const _0x5aac86=_0x3faefc,_0x3546f1=Date[_0x5aac86(0x24a)](),_0x318306=this['listNodes'](),_0x33389e=_0x58cc75=>Math[_0x5aac86(0x2bc)](0x0,Math['round']((_0x3546f1-(_0x58cc75[_0x5aac86(0x1ff)]||_0x3546f1))/0x3e8)),_0x15179f=_0x318306['find'](_0x32c567=>_0x32c567[_0x5aac86(0xb9)]===_0x5aac86(0x240)),_0xf30549=_0x318306['filter'](_0x2f584d=>_0x2f584d[_0x5aac86(0xb9)]==='http-server');if(_0x15179f||_0xf30549[_0x5aac86(0x17e)])return{'primary':_0x15179f?{'pid':_0x15179f[_0x5aac86(0x11d)],'uptime':_0x33389e(_0x15179f)}:null,'workers':_0xf30549['map'](_0x51c948=>({'pid':_0x51c948[_0x5aac86(0x11d)],'uptime':_0x33389e(_0x51c948)})),'workersConfigured':_0x15179f?.[_0x5aac86(0x1a8)]?.[_0x5aac86(0x292)]??_0xf30549[_0x5aac86(0x17e)],'mode':'cluster'};const _0x3bd38f=_0x318306[_0x5aac86(0x217)](_0x184276=>_0x184276[_0x5aac86(0xb9)]===_0x5aac86(0x23a)||_0x184276['kind']===_0x5aac86(0x26b)||_0x184276[_0x5aac86(0xb9)]===_0x5aac86(0x1fe)),_0x2b4113=_0x3bd38f?{'pid':_0x3bd38f[_0x5aac86(0x11d)],'uptime':_0x33389e(_0x3bd38f)}:{'pid':process['pid'],'uptime':Math[_0x5aac86(0x2bc)](0x0,Math[_0x5aac86(0x24b)](process[_0x5aac86(0x14f)]()))};return{'primary':_0x2b4113,'workers':[_0x2b4113],'workersConfigured':0x1,'mode':_0x5aac86(0x157)};}[_0x3faefc(0x264)](){const _0x43d82b=_0x3faefc;return this[_0x43d82b(0x131)]();}['treeView'](){const _0x2699c7=_0x3faefc,_0x3ede49=new Map();for(const _0x56ecd0 of this[_0x2699c7(0x131)]())_0x3ede49[_0x2699c7(0x17a)](_0x56ecd0['processKey'],{..._0x56ecd0,'children':[]});const _0x1b6edb=[];for(const _0x43469f of _0x3ede49['values']()){const _0x2038c1=_0x43469f[_0x2699c7(0x2a5)]?_0x3ede49[_0x2699c7(0xec)](_0x43469f[_0x2699c7(0x2a5)]):null;if(_0x2038c1&&_0x2038c1!==_0x43469f)_0x2038c1[_0x2699c7(0x148)][_0x2699c7(0x1a0)](_0x43469f);else _0x1b6edb[_0x2699c7(0x1a0)](_0x43469f);}const _0x4bf7a5=(_0xae704f,_0x2df507)=>_0xae704f[_0x2699c7(0xb9)]===_0x2df507[_0x2699c7(0xb9)]?(_0xae704f[_0x2699c7(0x11d)]||0x0)-(_0x2df507['pid']||0x0):(_0xae704f[_0x2699c7(0xb9)]??'')<(_0x2df507[_0x2699c7(0xb9)]??'')?-0x1:0x1,_0x5c8af8=_0x29e8a2=>{const _0xd811ba=_0x2699c7;_0x29e8a2[_0xd811ba(0x101)](_0x4bf7a5);for(const _0xaf54e4 of _0x29e8a2)if(_0xaf54e4[_0xd811ba(0x148)][_0xd811ba(0x17e)])_0x5c8af8(_0xaf54e4[_0xd811ba(0x148)]);};return _0x5c8af8(_0x1b6edb),_0x1b6edb;}[_0x3faefc(0x282)](_0x116212){const _0x40a9df=_0x3faefc;return this[_0x40a9df(0x131)]()[_0x40a9df(0x217)](_0x1c2929=>_0x1c2929['processKey']===_0x116212)??null;}[_0x3faefc(0x131)](_0x274932=Date[_0x3faefc(0x24a)]()){const _0x2ffbb6=_0x3faefc,_0x3b85ad=new Map();for(const _0x269d9d of this['listNodes']()){const _0x31623b=_0x573832(_0x269d9d);let _0xeb2c9b=_0x3b85ad['get'](_0x31623b);!_0xeb2c9b&&(_0xeb2c9b={'processKey':_0x31623b,'nodeKey':_0x31623b,'pid':_0x269d9d[_0x2ffbb6(0x11d)],'ppid':_0x269d9d[_0x2ffbb6(0xfe)]??null,'host':_0x269d9d['host']??null,'kind':_0x269d9d[_0x2ffbb6(0xb9)],'role':null,'supervisorKey':_0x269d9d[_0x2ffbb6(0x2a5)]??null,'slot':_0x269d9d[_0x2ffbb6(0x124)]??null,'slotKey':_0x269d9d[_0x2ffbb6(0x2c4)]??null,'caps':_0x269d9d[_0x2ffbb6(0x271)]??null,'lifecycle':_0x269d9d[_0x2ffbb6(0x19e)]??null,'uptime':Math[_0x2ffbb6(0x2bc)](0x0,Math[_0x2ffbb6(0x24b)]((_0x274932-(_0x269d9d[_0x2ffbb6(0x1ff)]||_0x274932))/0x3e8)),'startedAt':_0x269d9d[_0x2ffbb6(0x1ff)]??null,'meta':_0x269d9d[_0x2ffbb6(0x1a8)]??null,'listenAddr':null,'processing':null,'engines':null,'singletonClaims':null,'stats':null,'instances':[]},_0x3b85ad['set'](_0x31623b,_0xeb2c9b));_0xeb2c9b[_0x2ffbb6(0x154)][_0x2ffbb6(0x1a0)]({'instanceId':_0x269d9d[_0x2ffbb6(0xbe)]??null,'role':_0x269d9d[_0x2ffbb6(0x119)]??null,'listenAddr':_0x269d9d[_0x2ffbb6(0x22b)]??null,'lifecycle':_0x269d9d['lifecycle']??null,'processing':_0x269d9d['processing']??null});if(!_0xeb2c9b[_0x2ffbb6(0x119)]&&_0x269d9d[_0x2ffbb6(0x119)])_0xeb2c9b[_0x2ffbb6(0x119)]=_0x269d9d[_0x2ffbb6(0x119)];if(!_0xeb2c9b[_0x2ffbb6(0x22b)]&&_0x269d9d[_0x2ffbb6(0x22b)])_0xeb2c9b['listenAddr']=_0x269d9d['listenAddr'];if(!_0xeb2c9b['processing']&&_0x269d9d[_0x2ffbb6(0x106)])_0xeb2c9b[_0x2ffbb6(0x106)]=_0x269d9d[_0x2ffbb6(0x106)];if(!_0xeb2c9b[_0x2ffbb6(0x1b3)]&&_0x269d9d[_0x2ffbb6(0x1b3)])_0xeb2c9b[_0x2ffbb6(0x1b3)]=_0x269d9d[_0x2ffbb6(0x1b3)];if(!_0xeb2c9b[_0x2ffbb6(0x21a)]&&_0x269d9d[_0x2ffbb6(0x21a)])_0xeb2c9b[_0x2ffbb6(0x21a)]=_0x269d9d[_0x2ffbb6(0x21a)];if(_0xeb2c9b['caps']==null&&_0x269d9d[_0x2ffbb6(0x271)])_0xeb2c9b['caps']=_0x269d9d[_0x2ffbb6(0x271)];if(_0x269d9d[_0x2ffbb6(0x215)]&&(!_0xeb2c9b['stats']||(_0x269d9d[_0x2ffbb6(0x215)]['at']??0x0)>(_0xeb2c9b[_0x2ffbb6(0x215)]['at']??0x0)))_0xeb2c9b['stats']=_0x269d9d['stats'];}return[..._0x3b85ad[_0x2ffbb6(0x2e6)]()];}[_0x3faefc(0x19d)](){const _0x141ab6=_0x3faefc,_0x27aabf=[],_0x55bc2c={'rss':0x0,'heapUsed':0x0,'processes':0x0,'threads':{'count':0x0,'sandbox':0x0,'busy':0x0}};for(const _0x278066 of this[_0x141ab6(0x131)]()){_0x27aabf[_0x141ab6(0x1a0)]({'processKey':_0x278066['processKey'],'kind':_0x278066[_0x141ab6(0xb9)],'pid':_0x278066[_0x141ab6(0x11d)],'supervisorKey':_0x278066[_0x141ab6(0x2a5)],'meta':_0x278066[_0x141ab6(0x1a8)]??null,'uptime':_0x278066['uptime'],'stats':_0x278066['stats']??null}),_0x55bc2c[_0x141ab6(0x2bd)]++;if(_0x278066[_0x141ab6(0x215)]){_0x55bc2c[_0x141ab6(0xd5)]+=_0x278066[_0x141ab6(0x215)][_0x141ab6(0xd5)]||0x0,_0x55bc2c[_0x141ab6(0x1f2)]+=(_0x278066[_0x141ab6(0x215)]['heapUsed']||0x0)+(_0x278066['stats']['threads']?.['heapUsed']||0x0);const _0x2c585f=_0x278066[_0x141ab6(0x215)][_0x141ab6(0x25f)];_0x2c585f&&(_0x55bc2c[_0x141ab6(0x25f)][_0x141ab6(0x235)]+=_0x2c585f[_0x141ab6(0x235)]||0x0,_0x55bc2c[_0x141ab6(0x25f)][_0x141ab6(0x293)]+=_0x2c585f['sandbox']||0x0,_0x55bc2c['threads']['busy']+=_0x2c585f['busy']||0x0);}}return{'totals':_0x55bc2c,'nodes':_0x27aabf};}async[_0x3faefc(0x2e5)]({writer:writer=![],reader:reader=![],kind:kind=null,supervisorKey:supervisorKey=null,listenAddr:listenAddr=null}={}){const _0x19eb2f=_0x3faefc;this[_0x19eb2f(0x238)]=this[_0x19eb2f(0x238)]||!!writer,this[_0x19eb2f(0x2ea)]=this[_0x19eb2f(0x2ea)]||!!reader,this[_0x19eb2f(0x14b)]=kind||this[_0x19eb2f(0x14b)]||(_0x4e3516[_0x19eb2f(0x10a)]?'http-server':_0x19eb2f(0x23a)),this[_0x19eb2f(0x113)]=supervisorKey??this[_0x19eb2f(0x113)],this[_0x19eb2f(0x2a3)]=listenAddr??this[_0x19eb2f(0x2a3)],this['_ensureDesired'](),await this['_migrateVocab']();if(!writer&&!reader)return null;if(!this[_0x19eb2f(0xb0)]){const _0x11337c=await this[_0x19eb2f(0x1dc)][_0x19eb2f(0x166)](_0xc4a0da,{'sync':![],'durability':'fast'});await _0x11337c[_0x19eb2f(0x1c3)](_0x16f04c),this['_statusEnv']=_0x11337c;}return this[_0x19eb2f(0xb0)];}[_0x3faefc(0x15d)](){const _0x9780d4=_0x3faefc;return this[_0x9780d4(0x1ca)]!==this[_0x9780d4(0xb0)]&&(this[_0x9780d4(0x1ca)]=this[_0x9780d4(0xb0)],this[_0x9780d4(0x144)]=this[_0x9780d4(0xb0)][_0x9780d4(0x2ba)](_0x16f04c)[_0x9780d4(0xb3)]),this[_0x9780d4(0x144)];}[_0x3faefc(0x1d3)](_0x4349e2){const _0x37c67e=_0x3faefc;if(_0x2e88d8)return this[_0x37c67e(0x15d)]()[_0x37c67e(0x156)](_0x4349e2[_0x37c67e(0x253)],_0x4349e2,0x1);const _0x27e034=this[_0x37c67e(0x15d)]()[_0x37c67e(0x170)](_0x4349e2[_0x37c67e(0x253)],_0x4349e2,0x1);if(_0x27e034&&typeof _0x27e034[_0x37c67e(0xda)]===_0x37c67e(0x18c))_0x27e034['then'](undefined,()=>{});return _0x27e034;}[_0x3faefc(0x1b6)](_0x25f449){const _0x1254f3=_0x3faefc;return this[_0x1254f3(0x15d)]()[_0x1254f3(0x156)](_0x25f449['nodeKey'],_0x25f449,0x1);}[_0x3faefc(0x273)](_0x276bdc){const _0x521e1e=_0x3faefc;if(_0x2e88d8)try{return this[_0x521e1e(0x15d)]()[_0x521e1e(0x20c)](_0x276bdc);}catch{return![];}const _0x31b917=this['_nodeDb']()[_0x521e1e(0x2de)](_0x276bdc);if(_0x31b917&&typeof _0x31b917['then']===_0x521e1e(0x18c))_0x31b917[_0x521e1e(0xda)](undefined,()=>{});return _0x31b917;}async[_0x3faefc(0x120)](_0x2cac4f){const _0x153eec=_0x3faefc;if(!this[_0x153eec(0xb0)]||!this[_0x153eec(0x238)]||!_0x2cac4f?.['nodeKey'])return;return this[_0x153eec(0x1d3)](_0x2cac4f);}async[_0x3faefc(0x1fb)](_0x396e97){const _0x11fddd=_0x3faefc;if(!this[_0x11fddd(0xb0)]||!this[_0x11fddd(0x238)]||!_0x396e97)return;const _0xef3489=_0x396e97[_0x11fddd(0x1a9)]('#'),_0x787e39=[];for(const {key:_0x1f7a53}of this[_0x11fddd(0xb0)][_0x11fddd(0x1c1)](_0x16f04c)){if(_0x1f7a53===_0x396e97||!_0xef3489&&typeof _0x1f7a53==='string'&&_0x1f7a53[_0x11fddd(0x218)](_0x396e97+'#'))_0x787e39[_0x11fddd(0x1a0)](_0x1f7a53);}for(const _0x2328d5 of _0x787e39){try{this['_nodeDb']()[_0x11fddd(0x20c)](_0x2328d5);}catch{}}}[_0x3faefc(0x1c0)](_0x2ecd36){const _0x206dba=_0x3faefc;if(typeof _0x2ecd36?.[_0x206dba(0x11d)]!==_0x206dba(0x2a4))return![];if(_0x2ecd36[_0x206dba(0xfb)]!==_0x5e8a97[_0x206dba(0x165)]())return![];if(_0x2ecd36[_0x206dba(0x11d)]===process[_0x206dba(0x11d)])return![];if(_0x2ecd36[_0x206dba(0x16e)]!=null&&_0x2ecd36['expiresAt']<Date[_0x206dba(0x24a)]()-_0x1e5760)return!![];try{return process[_0x206dba(0x209)](_0x2ecd36['pid'],0x0),![];}catch(_0x59750f){return _0x59750f[_0x206dba(0x2d9)]===_0x206dba(0x1de);}}[_0x3faefc(0x2a6)](){const _0x2dab70=_0x3faefc;if(!this[_0x2dab70(0xb0)])return[];try{this[_0x2dab70(0xb0)]['db']?.[_0x2dab70(0x149)]?.();}catch{}const _0x3722a7=Date['now'](),_0x46933b=_0x5e8a97[_0x2dab70(0x165)](),_0x22fad4=[];for(const {value:_0x1d378f}of this[_0x2dab70(0xb0)][_0x2dab70(0x1c1)](_0x16f04c)){if(!_0x1d378f)continue;let _0x127daa=null;_0x1d378f[_0x2dab70(0xfb)]===_0x46933b&&typeof _0x1d378f[_0x2dab70(0x11d)]===_0x2dab70(0x2a4)&&(_0x127daa=!this[_0x2dab70(0x1c0)](_0x1d378f));if(_0x127daa===![])continue;const _0x36b82d=_0x1d378f[_0x2dab70(0x16e)]==null||_0x1d378f[_0x2dab70(0x16e)]>=_0x3722a7;if(_0x127daa===!![]||_0x36b82d)_0x22fad4['push'](_0x1d378f);}return _0x22fad4;}async[_0x3faefc(0xbb)](_0x549740=0x0){const _0x2a8760=_0x3faefc;if(!this[_0x2a8760(0xb0)]||!this[_0x2a8760(0x238)])return;const _0x393a83=Date[_0x2a8760(0x24a)]()-_0x549740,_0x54e37d=new Set(),_0x301290=[],_0x306507=_0x5e8a97[_0x2a8760(0x165)](),_0x89c1a5=require$$6[_0x2a8760(0x1e5)];for(const {key:_0x2c0326,value:_0x531c1c}of this[_0x2a8760(0xb0)]['getRange'](_0x16f04c)){if(!_0x531c1c)continue;const _0x280024=_0x531c1c[_0x2a8760(0xfb)]===_0x306507&&typeof _0x531c1c[_0x2a8760(0x11d)]==='number',_0x4b3251=_0x280024?this[_0x2a8760(0x1c0)](_0x531c1c):_0x531c1c[_0x2a8760(0x16e)]!=null&&_0x531c1c[_0x2a8760(0x16e)]<_0x393a83;if(_0x4b3251)_0x301290[_0x2a8760(0x1a0)](_0x2c0326);else{_0x54e37d[_0x2a8760(0x25e)](_0x573832(_0x531c1c)??_0x2c0326);if(_0x531c1c['version']&&_0x531c1c[_0x2a8760(0x1e5)]!==_0x89c1a5){if(!this['_versionSkewWarned'])this[_0x2a8760(0x288)]=new Set();!this[_0x2a8760(0x288)][_0x2a8760(0xab)](_0x531c1c[_0x2a8760(0x1e5)])&&(this[_0x2a8760(0x288)]['add'](_0x531c1c['version']),this['okdb'][_0x2a8760(0x2cd)]?.[_0x2a8760(0x26f)]?.('process\x20'+(_0x531c1c['pid']??'?')+'\x20on\x20this\x20data\x20path\x20runs\x20okdb\x20'+_0x531c1c[_0x2a8760(0x1e5)]+_0x2a8760(0x176)+_0x89c1a5+_0x2a8760(0x257)+'mixed\x20versions\x20on\x20one\x20store\x20are\x20unsafe\x20across\x20storage\x20migrations;\x20align\x20versions\x20before\x20upgrading\x20further.',{'feature':_0x2a8760(0x1cc)}));}}}for(const _0x21bc21 of _0x301290)this['_removeRowAsync'](_0x21bc21);if(this[_0x2a8760(0x100)]()){const _0x48d4d9=[];for(const {key:_0x3c1a62}of this['listDesired']('node')){if(!_0x54e37d[_0x2a8760(0xab)](_0x3c1a62)){if(_0x2e88d8)try{this[_0x2a8760(0x2a1)][_0x2a8760(0x20c)](_0x2a8760(0x16a)+_0x3c1a62);}catch{}else _0x48d4d9['push'](this['_desired'][_0x2a8760(0x2de)]('node/'+_0x3c1a62));}}if(_0x48d4d9[_0x2a8760(0x17e)])await Promise[_0x2a8760(0x138)](_0x48d4d9);}}[_0x3faefc(0x213)](_0x1e3773=null){const _0x55f6be=_0x3faefc;if(this[_0x55f6be(0x175)])return;if(!this['_isWriter']||!this[_0x55f6be(0xb0)]){this[_0x55f6be(0x1dc)]?.[_0x55f6be(0x2cd)]?.['warn']?.(_0x55f6be(0x1ed)+this[_0x55f6be(0x238)]+_0x55f6be(0xc0)+!!this[_0x55f6be(0xb0)]+_0x55f6be(0x244),{'feature':_0x55f6be(0x2bd)});return;}this['_onTick']=_0x1e3773,this[_0x55f6be(0x103)]=()=>this[_0x55f6be(0x265)]();for(const _0x5a8fa3 of _0x53d213)this['okdb'][_0x55f6be(0x1f9)]['on'](_0x5a8fa3,this[_0x55f6be(0x103)]);this[_0x55f6be(0x1d0)]();const _0x171b26=Number(process.env.OKDB_WORKERS_HEARTBEAT_MS)||_0x13a537;this[_0x55f6be(0x175)]=setInterval(()=>{const _0x2a3adf=_0x55f6be;if(this[_0x2a3adf(0xb8)])try{this[_0x2a3adf(0xb8)]();}catch{}this[_0x2a3adf(0x1d0)](),this[_0x2a3adf(0xbb)]()[_0x2a3adf(0x230)](()=>{});},_0x171b26);if(this[_0x55f6be(0x175)][_0x55f6be(0x13e)])this[_0x55f6be(0x175)][_0x55f6be(0x13e)]();}[_0x3faefc(0x265)](){const _0x100c77=_0x3faefc;if(!this['_isWriter']||!this['_statusEnv'])return;if(Date[_0x100c77(0x24a)]()-this[_0x100c77(0x159)]<_0x1f6e90)return;this[_0x100c77(0x1d0)]();}[_0x3faefc(0x1d0)](){const _0x19fa38=_0x3faefc;if(!this[_0x19fa38(0x238)]||!this[_0x19fa38(0xb0)])return;this[_0x19fa38(0x159)]=Date[_0x19fa38(0x24a)]();try{const _0x385e27=[this[_0x19fa38(0x133)]()];for(const _0x587bfd of this['_children'][_0x19fa38(0x2e6)]())_0x385e27[_0x19fa38(0x1a0)](this['_buildChildRow'](_0x587bfd));const _0x486889=_0x23d241['enabled']?_0x23d241[_0x19fa38(0x24a)]():0x0;for(const _0x354b8c of _0x385e27){try{this[_0x19fa38(0x1b6)](_0x354b8c),this[_0x19fa38(0x19c)]=![];}catch(_0x5a4fa4){!this[_0x19fa38(0x19c)]&&(this[_0x19fa38(0x19c)]=!![],this[_0x19fa38(0x1dc)]?.[_0x19fa38(0x2cd)]?.[_0x19fa38(0x26f)]?.(_0x19fa38(0x16d)+_0x5a4fa4[_0x19fa38(0x25d)],{'feature':_0x19fa38(0x2bd)}));}}if(_0x23d241[_0x19fa38(0xcf)])_0x23d241[_0x19fa38(0x1d2)]('registry-publish',_0x23d241[_0x19fa38(0x24a)]()-_0x486889,_0x19fa38(0xc1)+_0x385e27[_0x19fa38(0x17e)]+_0x19fa38(0x1ae));}catch(_0x24c84c){!this[_0x19fa38(0x19c)]&&(this['_publishFailWarned']=!![],this[_0x19fa38(0x1dc)]?.['log']?.[_0x19fa38(0x26f)]?.(_0x19fa38(0x16d)+_0x24c84c[_0x19fa38(0x25d)],{'feature':_0x19fa38(0x2bd)}));}}async[_0x3faefc(0x167)](){const _0x4175f6=_0x3faefc;if(this[_0x4175f6(0x103)]){for(const _0x484e6b of _0x53d213){try{this[_0x4175f6(0x1dc)][_0x4175f6(0x1f9)][_0x4175f6(0x191)](_0x484e6b,this[_0x4175f6(0x103)]);}catch{}}this['_onProcEvent']=null;}this[_0x4175f6(0x175)]&&(clearInterval(this[_0x4175f6(0x175)]),this[_0x4175f6(0x175)]=null);try{if(this['_statusEnv']&&this[_0x4175f6(0x238)])await this[_0x4175f6(0x1fb)](this[_0x4175f6(0x2c1)]);}catch{}}async[_0x3faefc(0x18e)](){const _0x4741f7=_0x3faefc;if(!this[_0x4741f7(0xb0)]||!this[_0x4741f7(0x238)])return;try{await this[_0x4741f7(0x1fb)](this[_0x4741f7(0x2c1)]);}catch{}try{const _0x5f1ea8=[];for(const {value:_0x4b00e2}of this['_statusEnv'][_0x4741f7(0x1c1)](_0x16f04c)){if(_0x4b00e2?.['ppid']===process[_0x4741f7(0x11d)]&&_0x4b00e2[_0x4741f7(0x253)])_0x5f1ea8[_0x4741f7(0x1a0)](_0x4b00e2[_0x4741f7(0x253)]);}for(const _0x27d7d8 of _0x5f1ea8){try{await this[_0x4741f7(0x1fb)](_0x27d7d8);}catch{}}}catch{}}async[_0x3faefc(0x26a)](){return this['putNode'](this['_buildOwnRow']());}async[_0x3faefc(0x2af)](_0x191c94){const _0x14f316=_0x3faefc;if(!this[_0x14f316(0xb0)]||!this[_0x14f316(0x238)])return;return this['putNode'](this[_0x14f316(0x2c5)](_0x191c94));}['_buildChildRow']({pid:_0x4fb122,startedAt:_0x3fab1a,kind:_0x50675d,supervisorKey:_0x4d1f14,slot:slot=null,slotKey:slotKey=null,role:role={},listenAddr:listenAddr=null,processing:processing=null,lifecycle:lifecycle=_0x3faefc(0xad),meta:meta=null,stats:stats=null}){const _0x1c31e3=_0x3faefc,_0x2789a2=Date[_0x1c31e3(0x24a)](),_0x4de7c6=_0x1f48f5(_0x4fb122,_0x3fab1a);return{'nodeKey':_0xce4ca5(_0x4de7c6,'0'),'processKey':_0x4de7c6,'instanceId':'0','pid':_0x4fb122,'startedAt':_0x3fab1a,'ppid':process['pid'],'host':_0x5e8a97[_0x1c31e3(0x165)](),'supervisorKey':_0x4d1f14,'slot':slot,'slotKey':slotKey,'kind':_0x50675d,'role':role,'listenAddr':listenAddr,'heartbeatAt':_0x2789a2,'expiresAt':_0x2789a2+_0x4b5ec0,'caps':this['_caps'](_0x50675d,role),'lifecycle':{'state':lifecycle,'desiredVersionApplied':null},'processing':processing,'meta':meta,'stats':stats};}async[_0x3faefc(0x17f)](_0x1d801e){const _0x1cdf01=_0x3faefc;if(!_0x1d801e?.[_0x1cdf01(0x11d)])return null;const _0x2809ef=_0x1f48f5(_0x1d801e[_0x1cdf01(0x11d)],_0x1d801e[_0x1cdf01(0x1ff)]);this['_children'][_0x1cdf01(0x17a)](_0x2809ef,{..._0x1d801e,'supervisorKey':_0x1d801e[_0x1cdf01(0x2a5)]??this['_selfKey']});if(this[_0x1cdf01(0x238)])await this[_0x1cdf01(0x2af)](this[_0x1cdf01(0x252)][_0x1cdf01(0xec)](_0x2809ef))['catch']?.(()=>{});return _0x2809ef;}[_0x3faefc(0x222)](_0x1f16d7){const _0x17eaee=_0x3faefc;if(!_0x1f16d7)return;return this['_children'][_0x17eaee(0x2aa)](_0x1f16d7),this[_0x17eaee(0x1fb)](_0x1f16d7);}[_0x3faefc(0x195)](){const _0x5edaa3=_0x3faefc,_0x1b9ef4=Date[_0x5edaa3(0x24a)](),_0x122e58=process[_0x5edaa3(0x16c)](),_0x34265c=(_0x1b9ef4-this[_0x5edaa3(0x194)])*0x3e8;if(_0x34265c>=0x3d090){const _0x50edf3=_0x122e58[_0x5edaa3(0x10c)]-this[_0x5edaa3(0x164)]['user']+(_0x122e58[_0x5edaa3(0x1fd)]-this[_0x5edaa3(0x164)][_0x5edaa3(0x1fd)]),_0x4609f0=_0x5e8a97[_0x5edaa3(0x206)]()[_0x5edaa3(0x17e)]||0x1;this[_0x5edaa3(0x123)]=Math[_0x5edaa3(0x22d)](0x64,Math[_0x5edaa3(0x24b)](_0x50edf3/(_0x34265c*_0x4609f0)*0x64)),this[_0x5edaa3(0x172)]=Math[_0x5edaa3(0x24b)](_0x34265c/0x3e8),this[_0x5edaa3(0x164)]=_0x122e58,this[_0x5edaa3(0x194)]=_0x1b9ef4;}const _0x3c2ff8=process[_0x5edaa3(0xc2)](),_0x426aed=this[_0x5edaa3(0x250)]['size'];let _0x3658c4=0x0;if(_0x426aed>0x0){const _0x363840=[this[_0x5edaa3(0x1dc)],...this['okdb'][_0x5edaa3(0x139)]?.[_0x5edaa3(0x2e6)]?.()??[]];for(const _0x440f4c of _0x363840){const _0x933a99=_0x440f4c['functions']?.[_0x5edaa3(0xa6)];if(_0x933a99)_0x3658c4+=_0x933a99['liveThreadStats']['busy'];}}let _0x1a84f3=null;const _0x1873b8=_0x426aed;if(_0x1873b8>0x0){let _0x3e1da6=0x0;for(const _0x46cfd8 of this['_threadStats'][_0x5edaa3(0x2e6)]())_0x3e1da6+=_0x46cfd8[_0x5edaa3(0x1f2)]||0x0;_0x1a84f3={'count':_0x1873b8,'heapUsed':_0x3e1da6,'sandbox':_0x426aed,'busy':_0x3658c4};}return{'rss':_0x3c2ff8[_0x5edaa3(0xd5)],'heapUsed':_0x3c2ff8['heapUsed'],'heapTotal':_0x3c2ff8[_0x5edaa3(0x2dd)],'external':_0x3c2ff8[_0x5edaa3(0x189)],'cpuPct':this[_0x5edaa3(0x123)],'cpuWindowMs':this[_0x5edaa3(0x172)]??null,'threads':_0x1a84f3,'at':_0x1b9ef4};}[_0x3faefc(0x274)](_0x1e780e,_0x578c9c){const _0x4d879b=_0x3faefc;if(!_0x1e780e||!_0x578c9c)return;this[_0x4d879b(0x250)][_0x4d879b(0x17a)](_0x1e780e,_0x578c9c);}['clearThreadStats'](_0x470a10){const _0x154a19=_0x3faefc;this[_0x154a19(0x250)][_0x154a19(0x2aa)](_0x470a10);}[_0x3faefc(0x117)](_0x4230e1,_0x407371,_0xa7266c=undefined){const _0x456c20=_0x3faefc,_0x23171c=this['_children']['get'](_0x4230e1);if(!_0x23171c||!_0x407371)return;if(_0xa7266c!==undefined)_0x23171c[_0x456c20(0x106)]=_0xa7266c;_0x23171c[_0x456c20(0x215)]={'rss':_0x407371[_0x456c20(0xd5)]??null,'heapUsed':_0x407371[_0x456c20(0x1f2)]??null,'heapTotal':_0x407371[_0x456c20(0x2dd)]??null,'external':_0x407371['external']??null,'cpuPct':_0x407371[_0x456c20(0x294)]??null,'cpuWindowMs':_0x407371['cpuWindowMs']??null,'threads':_0x407371[_0x456c20(0x25f)]??null,'claims':_0x407371[_0x456c20(0x1e7)]??null,'envsOpen':_0x407371[_0x456c20(0x260)]??null,'at':Date[_0x456c20(0x24a)]()};}[_0x3faefc(0x133)](){const _0x4321a0=_0x3faefc,_0x209d09=Date[_0x4321a0(0x24a)](),_0x2da84d=this[_0x4321a0(0x1dc)][_0x4321a0(0x2b8)]||{},_0x3a6b4b=this[_0x4321a0(0x14b)]||_0x4321a0(0x23a);return{'nodeKey':this['_rowKey'],'processKey':this[_0x4321a0(0x1db)],'instanceId':this[_0x4321a0(0x171)],'pid':process[_0x4321a0(0x11d)],'startedAt':this[_0x4321a0(0x1af)],'instanceStartedAt':this[_0x4321a0(0x15b)],'ppid':typeof process[_0x4321a0(0xfe)]==='number'?process[_0x4321a0(0xfe)]:null,'host':_0x5e8a97[_0x4321a0(0x165)](),'supervisorKey':this[_0x4321a0(0x113)]??null,'version':require$$6['version'],'kind':_0x3a6b4b,'role':{'engines':!!_0x2da84d['engines'],'processors':!!_0x2da84d[_0x4321a0(0x1a3)],'compaction':_0x2da84d[_0x4321a0(0x12b)],'http':_0x2da84d[_0x4321a0(0x27f)]},'listenAddr':this[_0x4321a0(0x2a3)]??null,'heartbeatAt':_0x209d09,'expiresAt':_0x209d09+_0x4b5ec0,'caps':this['_caps'](_0x3a6b4b,_0x2da84d),'lifecycle':{'state':_0x4321a0(0xad),'desiredVersionApplied':null},'meta':{...this[_0x4321a0(0x245)]},'processing':_0x2da84d[_0x4321a0(0x1a3)]?this['_buildProcessingFacet']():null,'engines':_0x2da84d['engines']?[...this[_0x4321a0(0x1dc)]['_servingEngines']??[]]:null,'singletonClaims':this[_0x4321a0(0x14c)](),'stats':this[_0x4321a0(0x195)](),'writers':this[_0x4321a0(0x141)]()};}[_0x3faefc(0x141)](){const _0x1ff821=_0x3faefc,_0x53a88c={};try{for(const [_0x24e82b,_0x45bfaf]of this[_0x1ff821(0x1dc)][_0x1ff821(0x139)]){try{const _0x4f1b4c=_0x45bfaf[_0x1ff821(0x259)]?.();if(!_0x4f1b4c)continue;if(!_0x4f1b4c['depth']&&!_0x4f1b4c['committed']&&!(_0x4f1b4c[_0x1ff821(0x1c4)]??0x0)&&!_0x4f1b4c['draining'])continue;_0x53a88c[_0x24e82b]={'depth':_0x4f1b4c[_0x1ff821(0xcc)],'oldestPendingMs':_0x4f1b4c[_0x1ff821(0x163)],'committed':_0x4f1b4c[_0x1ff821(0x121)],'commitsPerSec':_0x4f1b4c['commitsPerSec'],'commitP99Ms':_0x4f1b4c[_0x1ff821(0x226)],'parkedNow':_0x4f1b4c['parkedNow']??0x0,'draining':!!_0x4f1b4c['draining']};}catch{}}}catch{}return Object[_0x1ff821(0x114)](_0x53a88c)[_0x1ff821(0x17e)]?_0x53a88c:null;}['_collectSingletonClaims'](){const _0x46ce49=_0x3faefc,_0x274089=process['pid'],_0x2802cf=Date[_0x46ce49(0x24a)](),_0x55575b=_0x5db560=>{const _0x4c3109=_0x46ce49;if(!_0x5db560)return[];const _0x15f935=[];try{for(const {id:_0x329816,entry:_0x429518}of _0x5db560[_0x4c3109(0x1b4)]()){if(_0x429518?.[_0x4c3109(0x27b)]?.[_0x4c3109(0x11d)]!==_0x274089)continue;const _0x427a76=_0x429518[_0x4c3109(0xc7)]??_0x429518[_0x4c3109(0x187)]??0x0;if(_0x427a76+(_0x429518[_0x4c3109(0x1bd)]??0x0)<_0x2802cf)continue;_0x15f935[_0x4c3109(0x1a0)](_0x329816);}}catch{}return _0x15f935;},_0x361097=_0x55575b(this[_0x46ce49(0x236)](_0x46ce49(0x1e2))),_0x25d3c8=_0x55575b(this[_0x46ce49(0x236)](_0x46ce49(0x1d6)));if(!_0x361097[_0x46ce49(0x17e)]&&!_0x25d3c8[_0x46ce49(0x17e)])return null;return{'compact':_0x361097,'replicate':_0x25d3c8};}[_0x3faefc(0x236)](_0x398ee6){const _0xad6f41=_0x3faefc;if(!this[_0xad6f41(0x1dc)]?.[_0xad6f41(0xac)])return null;if(!this[_0xad6f41(0x20f)])this[_0xad6f41(0x20f)]=new Map();let _0x1b983d=this[_0xad6f41(0x20f)][_0xad6f41(0xec)](_0x398ee6);if(!_0x1b983d)try{_0x1b983d=new _0x30fdf7(this['okdb'][_0xad6f41(0xac)],{'namespace':_0x398ee6}),this[_0xad6f41(0x20f)]['set'](_0x398ee6,_0x1b983d);}catch{return null;}return _0x1b983d;}['_buildProcessingFacet'](){const _0x34c6b3=_0x3faefc,_0x2f9269=[];try{for(const [_0x35c41b,_0x1dd3d5]of this['okdb'][_0x34c6b3(0x139)]){if(_0x35c41b['startsWith']('~'))continue;for(const _0x2fd2be of _0x1dd3d5[_0x34c6b3(0x207)]['tierList']())_0x2f9269['push']({..._0x2fd2be,'env':_0x35c41b});}}catch{}return{'participate':this[_0x34c6b3(0x1dc)][_0x34c6b3(0x1a3)]?.[_0x34c6b3(0x2bf)]??![],'processors':_0x2f9269};}['_ensureDesired'](){const _0x5d3e8d=_0x3faefc;if(this['_desired'])return!![];const _0x3cc796=this['okdb']['_rootDb'];if(!_0x3cc796)return![];return this['_desired']=_0x3cc796[_0x5d3e8d(0x254)](_0x1f78d9,{'dupSort':![]}),this['_cmd']=_0x3cc796['openDB'](_0x1b0b76,{'dupSort':![]}),!![];}async[_0x3faefc(0x20a)](){const _0x5e6973=_0x3faefc;if(!this[_0x5e6973(0x100)]())return;const _0x41a4f1=_0x5e6973(0x27e),_0x10783f=0x1,_0xf8a63a=this[_0x5e6973(0x2a1)][_0x5e6973(0xec)](_0x41a4f1)??0x0;if(_0xf8a63a>=_0x10783f)return;const _0x12ccec=_0x445a54=>{const _0x242788=_0x5e6973;if(_0x445a54===_0x242788(0x1b7))return _0x242788(0x157);if(_0x445a54===_0x242788(0x2e2))return _0x242788(0x2c9);return _0x445a54;};await this[_0x5e6973(0x1dc)]['_systemEnv']['_writer'][_0x5e6973(0x285)](()=>{const _0x38d50a=_0x5e6973;for(const _0x22cb9f of['procmode/',_0x38d50a(0x1b1)]){for(const {key:_0x405e44,value:_0x725421}of this[_0x38d50a(0x2a1)][_0x38d50a(0x1c1)]({'start':_0x22cb9f,'end':_0x22cb9f+'\xff'})){if(typeof _0x405e44!==_0x38d50a(0xa8)||!_0x405e44[_0x38d50a(0x218)](_0x22cb9f))break;const _0x5d70e9=_0x12ccec(_0x725421[_0x38d50a(0x220)]);if(_0x5d70e9!==_0x725421[_0x38d50a(0x220)])this[_0x38d50a(0x2a1)]['put'](_0x405e44,{..._0x725421,'mode':_0x5d70e9});}}this[_0x38d50a(0x2a1)][_0x38d50a(0x170)](_0x41a4f1,_0x10783f);});}[_0x3faefc(0x14a)](){const _0x261091=_0x3faefc;return!!this[_0x261091(0x2a1)];}[_0x3faefc(0x13c)](_0x431c4c,_0x5ca9a8){const _0x19943c=_0x3faefc;if(!this[_0x19943c(0x100)]())return null;const _0x59e1d1=_0x431c4c+'/'+_0x5ca9a8;return this['_refreshDesiredSnapshot'](),this[_0x19943c(0x116)][_0x19943c(0xec)](_0x59e1d1)??this[_0x19943c(0x2a1)][_0x19943c(0xec)](_0x59e1d1)??null;}['_refreshDesiredSnapshot'](){const _0x13ae6a=_0x3faefc;if(!_0x2e88d8)return;try{this[_0x13ae6a(0x1dc)]['_systemEnv']?.['db']?.[_0x13ae6a(0x149)]?.();}catch{}}async[_0x3faefc(0x2a2)](_0x302035,_0x25fe9d,_0x33521f){const _0x45c32c=_0x3faefc;if(!this[_0x45c32c(0x100)]())return null;const _0x4caa2c=_0x302035+'/'+_0x25fe9d;this[_0x45c32c(0x229)]();const _0x406658=this[_0x45c32c(0x116)][_0x45c32c(0xec)](_0x4caa2c)??this['_desired']['get'](_0x4caa2c)??{'version':0x0},_0x497acc=(_0x406658['version']||0x0)+0x1,_0x4e2356={..._0x406658,..._0x33521f,'version':_0x497acc,'updatedAt':Date[_0x45c32c(0x24a)]()};this[_0x45c32c(0x116)][_0x45c32c(0x17a)](_0x4caa2c,_0x4e2356);try{await this['okdb'][_0x45c32c(0x23d)][_0x45c32c(0x2da)][_0x45c32c(0x285)](()=>{const _0x1a5712=_0x45c32c;this[_0x1a5712(0x2a1)][_0x1a5712(0x170)](_0x4caa2c,_0x4e2356);});}finally{if(this[_0x45c32c(0x116)][_0x45c32c(0xec)](_0x4caa2c)===_0x4e2356)this['_desiredOverlay'][_0x45c32c(0x2aa)](_0x4caa2c);}return _0x497acc;}['listDesired'](_0x407b62){const _0x10d8c2=_0x3faefc;if(!this[_0x10d8c2(0x100)]())return[];this['_refreshDesiredSnapshot']();const _0x5550b4=_0x407b62+'/',_0x57d5e8=[];for(const {key:_0x8e1a6a,value:_0x18ba1e}of this['_desired'][_0x10d8c2(0x1c1)]({'start':_0x5550b4,'end':_0x5550b4+'\xff'})){if(typeof _0x8e1a6a!==_0x10d8c2(0xa8)||!_0x8e1a6a[_0x10d8c2(0x218)](_0x5550b4))break;_0x57d5e8[_0x10d8c2(0x1a0)]({'key':_0x8e1a6a[_0x10d8c2(0x272)](_0x5550b4[_0x10d8c2(0x17e)]),'value':_0x18ba1e});}return _0x57d5e8;}[_0x3faefc(0x183)](_0x36e79d){const _0x3fb7c3=_0x3faefc;if(!this[_0x3fb7c3(0x100)]())return null;return this[_0x3fb7c3(0x25c)]['get'](_0x36e79d)??null;}async[_0x3faefc(0x179)](_0x6c74c5,_0x1a4281,_0x527e82={}){const _0x1f8387=_0x3faefc;if(!this[_0x1f8387(0x100)]())return null;let _0xf8be6b;return await this[_0x1f8387(0x1dc)]['_systemEnv'][_0x1f8387(0x2da)]['transaction'](()=>{const _0x2088b9=_0x1f8387,_0xbd9f5b=this[_0x2088b9(0x25c)][_0x2088b9(0xec)](_0x6c74c5)||{'epoch':0x0};_0xf8be6b=(_0xbd9f5b[_0x2088b9(0x2d1)]||0x0)+0x1,this[_0x2088b9(0x25c)]['put'](_0x6c74c5,{..._0xbd9f5b,..._0x527e82,'cmd':_0x1a4281,'epoch':_0xf8be6b,'updatedAt':Date['now']()});}),_0xf8be6b;}}return okdbProcessRegistry={'OKDBProcessRegistry':_0x33776,'nodeKey':_0x1f48f5,'logicalKey':_0x394355,'slotKey':_0x2204da,'PROCESS_ENV':_0xc4a0da,'NODE_TYPE':_0x16f04c},okdbProcessRegistry;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x537b61=_0x5e06fa;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x34ee6e=require$$0$4,{clampTimerDelay:_0x5395c8}=requireOkdbTimers(),{EVENTS:_0x10e255,CHANGE_ACTIONS:_0x491d12}=requireOkdbEnums(),{LOOP:_0x5365a8}=requireOkdbLoopMonitor(),_0x303d82=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x54c1bc=0x5,_0x212568=0x2710;class _0x40a8d4 extends _0x34ee6e{constructor(_0x437429,_0xc3a46c={}){const _0x1355b2=_0x5881;super(),this[_0x1355b2(0x1dc)]=_0x437429,this[_0x1355b2(0x1e9)]=_0xc3a46c[_0x1355b2(0x132)]??_0x303d82,this[_0x1355b2(0xdf)]=_0xc3a46c[_0x1355b2(0x147)]??_0x54c1bc,this[_0x1355b2(0x2e8)]=_0xc3a46c[_0x1355b2(0x29f)]??_0x212568,this['_started']=![],this[_0x1355b2(0x1b5)]=new Map(),this[_0x1355b2(0x169)]=new Map(),this['_pending']=new Map(),this[_0x1355b2(0x199)]=null,this['_draining']=![],this[_0x1355b2(0x2cc)]=new Set(),this[_0x1355b2(0x2b0)]=new Set(),this['_onItem']=_0x300f7c=>this[_0x1355b2(0x107)](_0x300f7c),this['_onPending']=_0x4edf60=>this[_0x1355b2(0x10f)](_0x4edf60),this[_0x1355b2(0xe7)]=_0x5b8a25=>this['_handlePoke'](_0x5b8a25),this['_onStop']=()=>this[_0x1355b2(0x2d6)]();}[_0x537b61(0x177)](){const _0x25b8dd=_0x537b61;if(this[_0x25b8dd(0x2e1)])return;this[_0x25b8dd(0x2e1)]=!![];for(const [_0x3e9665,_0x2c972b]of this[_0x25b8dd(0x1dc)][_0x25b8dd(0x139)]){if(_0x3e9665[_0x25b8dd(0x218)]('~'))continue;try{_0x2c972b[_0x25b8dd(0x1e3)]();}catch{}}for(const [_0x1cb73d,_0x5e47f1]of this[_0x25b8dd(0x1dc)][_0x25b8dd(0x139)]){if(_0x1cb73d[_0x25b8dd(0x218)]('~'))continue;try{this['_baselines'][_0x25b8dd(0x17a)](_0x1cb73d,_0x5e47f1[_0x25b8dd(0x2ad)]()||0x0);}catch{}}const {events:_0x238be7}=this[_0x25b8dd(0x1dc)];_0x238be7['on'](_0x10e255[_0x25b8dd(0x1cd)],this[_0x25b8dd(0x1c5)]),_0x238be7['on'](_0x10e255[_0x25b8dd(0x2dc)],this[_0x25b8dd(0x24d)]),_0x238be7['on'](_0x10e255[_0x25b8dd(0x284)],this[_0x25b8dd(0x24d)]),_0x238be7['on'](_0x10e255[_0x25b8dd(0x280)],this['_onItem']),_0x238be7['on'](_0x10e255[_0x25b8dd(0x1a5)],this[_0x25b8dd(0xe7)]),_0x238be7[_0x25b8dd(0x1a6)](_0x10e255[_0x25b8dd(0x1e0)],this[_0x25b8dd(0x12f)]);}[_0x537b61(0x2d6)](){const _0x14e790=_0x537b61;if(!this[_0x14e790(0x2e1)])return;this['_started']=![];const {events:_0x386ae3}=this[_0x14e790(0x1dc)];_0x386ae3['off'](_0x10e255['ITEM_PENDING'],this['_onPending']),_0x386ae3[_0x14e790(0x191)](_0x10e255['ITEM_CREATE'],this['_onItem']),_0x386ae3['off'](_0x10e255['ITEM_UPDATE'],this[_0x14e790(0x24d)]),_0x386ae3[_0x14e790(0x191)](_0x10e255[_0x14e790(0x280)],this[_0x14e790(0x24d)]),_0x386ae3[_0x14e790(0x191)](_0x10e255['SYSTEM_POKE'],this['_onPoke']);try{_0x386ae3[_0x14e790(0x191)](_0x10e255[_0x14e790(0x1e0)],this[_0x14e790(0x12f)]);}catch{}this[_0x14e790(0x199)]&&(clearTimeout(this[_0x14e790(0x199)]),this[_0x14e790(0x199)]=null),this[_0x14e790(0xb1)]['clear'](),this[_0x14e790(0x1b5)][_0x14e790(0xe3)](),this['_baselines'][_0x14e790(0xe3)](),this['_seen'][_0x14e790(0xe3)](),this[_0x14e790(0x2b0)]['clear']();}[_0x537b61(0x112)](_0x5570c5,_0x20fdf6,_0x3bcb30,_0x2f19bf){return _0x5570c5+'\x00'+_0x20fdf6+'\x00'+_0x3bcb30+'\x00'+_0x2f19bf;}[_0x537b61(0x212)](_0x57d2b3,_0x276cb3,_0x1cfce2,_0x58644c){const _0x2d264a=_0x537b61,_0x28a1d9=this[_0x2d264a(0x112)](_0x57d2b3,_0x276cb3,_0x1cfce2,_0x58644c);if(this[_0x2d264a(0x2cc)][_0x2d264a(0xab)](_0x28a1d9))return![];this[_0x2d264a(0x2cc)][_0x2d264a(0x25e)](_0x28a1d9);if(this['_seen'][_0x2d264a(0x2e3)]>this[_0x2d264a(0x2e8)]){const _0x1e052b=this['_seen'][_0x2d264a(0x2e6)]()[_0x2d264a(0x2bb)]()[_0x2d264a(0x248)];this[_0x2d264a(0x2cc)]['delete'](_0x1e052b);}return!![];}[_0x537b61(0x10f)](_0x65f5f5){const _0xb81209=_0x537b61;if(!this[_0xb81209(0x2e1)]||!_0x65f5f5)return;const {env:_0x300732,type:_0x26f062,key:_0x22e0c5,clock:_0xa9e774}=_0x65f5f5;if(_0x300732==null||_0x26f062==null||_0x22e0c5==null)return;if(typeof _0x300732===_0xb81209(0xa8)&&_0x300732[_0xb81209(0x218)]('~'))return;if(typeof _0x26f062==='string'&&_0x26f062[_0xb81209(0x218)]('~'))return;this[_0xb81209(0x2b0)]['add'](this['_dedupeKey'](_0x300732,_0x26f062,_0x22e0c5,_0xa9e774)),this[_0xb81209(0x2b0)][_0xb81209(0x2e3)]>this[_0xb81209(0x2e8)]&&this[_0xb81209(0x2b0)]['delete'](this['_pendingLocal']['values']()[_0xb81209(0x2bb)]()[_0xb81209(0x248)]);}['_handleInProcess'](_0x40ef4a){const _0x56f217=_0x537b61;if(!this[_0x56f217(0x2e1)]||!_0x40ef4a)return;const {env:_0x44f217,type:_0x293ab6,key:_0x47a12f,clock:_0x2d09ea,origin:_0x4314c3,action:_0x162925,newValue:_0x1ee018,oldValue:_0x3dcedd}=_0x40ef4a;if(_0x44f217==null||_0x293ab6==null||_0x47a12f==null)return;if(typeof _0x44f217===_0x56f217(0xa8)&&_0x44f217[_0x56f217(0x218)]('~'))return;if(typeof _0x293ab6===_0x56f217(0xa8)&&_0x293ab6[_0x56f217(0x218)]('~'))return;this['_pendingLocal'][_0x56f217(0x2aa)](this[_0x56f217(0x112)](_0x44f217,_0x293ab6,_0x47a12f,_0x2d09ea));if(!this[_0x56f217(0x212)](_0x44f217,_0x293ab6,_0x47a12f,_0x2d09ea))return;const _0x53faa1=_0x162925===_0x491d12['REMOVE']?'remove':_0x56f217(0x170);this[_0x56f217(0x126)](_0x56f217(0xde),{'env':_0x44f217,'type':_0x293ab6,'key':_0x47a12f,'op':_0x53faa1,'clock':_0x2d09ea,'origin':_0x4314c3,'value':_0x53faa1===_0x56f217(0x2de)?null:_0x1ee018,'prevValue':_0x3dcedd});}[_0x537b61(0x1ad)](_0x183d3a){const _0x9af8eb=_0x537b61;if(!this['_started'])return;if(!_0x183d3a||typeof _0x183d3a['env']!=='string'||typeof _0x183d3a['type']!==_0x9af8eb(0xa8))return;const {env:_0x2b09d4,type:_0x8837cc}=_0x183d3a;if(_0x2b09d4[_0x9af8eb(0x218)]('~')||_0x8837cc[_0x9af8eb(0x218)]('~'))return;this[_0x9af8eb(0xb1)][_0x9af8eb(0x17a)](_0x2b09d4+'\x00'+_0x8837cc,{'env':_0x2b09d4,'type':_0x8837cc}),this[_0x9af8eb(0xf1)]();}[_0x537b61(0xf1)](){const _0x48afdc=_0x537b61;if(this[_0x48afdc(0x199)])return;const _0x510515=()=>{const _0xc50e06=_0x48afdc;this[_0xc50e06(0x199)]=null,this[_0xc50e06(0x2b7)]()[_0xc50e06(0x230)](()=>{});};this[_0x48afdc(0x199)]=setTimeout(_0x510515,_0x5395c8(this[_0x48afdc(0xdf)]));}async[_0x537b61(0x2b7)](){const _0x269ad4=_0x537b61;if(this[_0x269ad4(0x127)]){this[_0x269ad4(0xf1)]();return;}this[_0x269ad4(0x127)]=!![];try{const _0xf370eb=[...this[_0x269ad4(0xb1)][_0x269ad4(0x2e6)]()];this['_pending'][_0x269ad4(0xe3)]();let _0xea247d=![];for(const {env:_0x23c80a,type:_0x43e4c4}of _0xf370eb){try{const _0x4bc5df=await this[_0x269ad4(0x2ce)](_0x23c80a,_0x43e4c4);if(_0x4bc5df)_0xea247d=!![];}catch{this[_0x269ad4(0xb1)][_0x269ad4(0x17a)](_0x23c80a+'\x00'+_0x43e4c4,{'env':_0x23c80a,'type':_0x43e4c4}),_0xea247d=!![];}}if(_0xea247d||this[_0x269ad4(0xb1)][_0x269ad4(0x2e3)]>0x0)this['_scheduleFlush']();}finally{this[_0x269ad4(0x127)]=![];}}async[_0x537b61(0x2ce)](_0x273162,_0x142567){const _0x15803a=_0x537b61,_0x42f0a0=await this[_0x15803a(0x1dc)][_0x15803a(0x21d)](_0x273162),_0x1b2ff9=_0x273162+'\x00'+_0x142567;!this['_cursors'][_0x15803a(0xab)](_0x1b2ff9)&&(!this[_0x15803a(0x169)][_0x15803a(0xab)](_0x273162)&&(_0x42f0a0[_0x15803a(0x1e3)](),this[_0x15803a(0x169)][_0x15803a(0x17a)](_0x273162,_0x42f0a0[_0x15803a(0x2ad)]()||0x0)),this[_0x15803a(0x1b5)][_0x15803a(0x17a)](_0x1b2ff9,this['_baselines']['get'](_0x273162)));const _0x26912d=this[_0x15803a(0x1b5)][_0x15803a(0xec)](_0x1b2ff9),_0x2ce4ad=_0x42f0a0[_0x15803a(0x2ad)](_0x142567)||0x0;if(_0x2ce4ad<=_0x26912d)return![];const _0x26bbe5=_0x26912d+this['_quantum'],_0x273dfa=Math['min'](_0x2ce4ad,_0x26bbe5),_0x1f53cf=_0x5365a8[_0x15803a(0xcf)]?_0x5365a8[_0x15803a(0x24a)]():0x0,_0x59fada=Array['from'](_0x42f0a0[_0x15803a(0x153)](_0x142567,_0x26912d+0x1,_0x273dfa));let _0x85399=_0x26912d;for(const _0x8664de of _0x59fada){const {clock:_0x33ad36,key:_0x34add1,action:_0x58498f,origin:_0x130f8d}=_0x8664de;if(_0x33ad36>_0x85399)_0x85399=_0x33ad36;if(_0x34add1==null)continue;if(this['_pendingLocal'][_0x15803a(0xab)](this[_0x15803a(0x112)](_0x273162,_0x142567,_0x34add1,_0x33ad36)))continue;if(!this[_0x15803a(0x212)](_0x273162,_0x142567,_0x34add1,_0x33ad36))continue;let _0x34fed5,_0xf62f5;if(_0x58498f===_0x491d12[_0x15803a(0x20e)])_0x34fed5='remove',_0xf62f5=null;else{const _0x160a92=_0x42f0a0[_0x15803a(0xec)](_0x142567,_0x34add1);_0x160a92==null?(_0x34fed5='remove',_0xf62f5=null):(_0x34fed5=_0x15803a(0x170),_0xf62f5=_0x160a92);}this[_0x15803a(0x126)](_0x15803a(0xde),{'env':_0x273162,'type':_0x142567,'key':_0x34add1,'op':_0x34fed5,'clock':_0x33ad36,'origin':_0x130f8d,'value':_0xf62f5});}if(_0x5365a8[_0x15803a(0xcf)])_0x5365a8[_0x15803a(0x1d2)](_0x15803a(0x258)+_0x273162+':'+_0x142567,_0x5365a8[_0x15803a(0x24a)]()-_0x1f53cf,'n='+_0x59fada[_0x15803a(0x17e)]);return this[_0x15803a(0x1b5)][_0x15803a(0x17a)](_0x1b2ff9,Math[_0x15803a(0x2bc)](_0x85399,_0x273dfa)),_0x42f0a0[_0x15803a(0x2ad)](_0x142567)>_0x273dfa;}[_0x537b61(0x2cf)](){const _0x43de51=_0x537b61;return{'started':this['_started'],'quantum':this['_quantum'],'flushDebounce':this[_0x43de51(0xdf)],'cursors':Object['fromEntries']([...this[_0x43de51(0x1b5)][_0x43de51(0x24c)]()][_0x43de51(0x173)](([_0x49102a,_0x400d3c])=>[_0x49102a[_0x43de51(0x193)]('\x00',':'),_0x400d3c])),'pending':this['_pending'][_0x43de51(0x2e3)],'seen':this[_0x43de51(0x2cc)]['size']};}}return _0x40a8d4['CHANGEFEED_QUANTUM']=_0x303d82,okdbChangefeed={'OKDBChangefeed':_0x40a8d4},okdbChangefeed;}var okdbCluster,hasRequiredOkdbCluster;function requireOkdbCluster(){const _0x3c1326=_0x5e06fa;if(hasRequiredOkdbCluster)return okdbCluster;hasRequiredOkdbCluster=0x1;const _0x4107ac=require$$1$1,_0x2f3343=require$$1,{EVENTS:_0x10044b}=requireOkdbEnums(),_0x623a23=require$$0$3,{slotKey:_0x3b112d}=requireOkdbProcessRegistry(),_0x298871=Number(process.env.OKDB_CLUSTER_RESPAWN_BACKOFF_MS)||0xfa,_0x112ca3=0xfa0,_0x2ba25e=0x5,_0x11cbb8=0x2710,_0x23daec=0xbb8,_0x43acc7=0x7d0,_0xa47e1c=_0x3c1326(0x26d),_0x9715ae=_0x3c1326(0x135),_0x2e3060=_0x3c1326(0x2cd),_0x477b24=_0x3c1326(0x215),_0xf34cfb=[_0x10044b['VIEW_PROGRESS'],_0x10044b[_0x3c1326(0x198)],_0x10044b['FTS_DROP'],_0x10044b[_0x3c1326(0x1ee)],_0x10044b[_0x3c1326(0xe4)],_0x10044b[_0x3c1326(0x204)],_0x10044b[_0x3c1326(0x261)],_0x10044b[_0x3c1326(0x243)],'processor:ready','processor:progress',_0x3c1326(0x23f),_0x3c1326(0xc8),_0x3c1326(0x221),_0x3c1326(0x1da)],_0x4632dd=Number(process.env.OKDB_CLUSTER_STATUS_MS)||0x7d0,_0x5375e1=0x64;function _0x259dbf(_0x37dcea){const _0x2474a2=_0x3c1326;if(!_0x37dcea)return _0x2474a2(0x298);const _0x24576a=(_0x37dcea[_0x2474a2(0x1a3)]||[])['map'](_0x2bd169=>[_0x2bd169[_0x2474a2(0x136)],_0x2bd169['id'],_0x2bd169[_0x2474a2(0x220)],_0x2bd169[_0x2474a2(0x29d)],!!_0x2bd169['paused'],!!_0x2bd169[_0x2474a2(0x223)],!!_0x2bd169[_0x2474a2(0x1eb)],_0x2bd169[_0x2474a2(0x291)]?.['pid']??null,_0x2bd169[_0x2474a2(0x277)]?String(_0x2bd169[_0x2474a2(0x277)]?.[_0x2474a2(0x25d)]??_0x2bd169[_0x2474a2(0x277)]):null]);return JSON[_0x2474a2(0xd8)]([!!_0x37dcea[_0x2474a2(0x23e)],_0x24576a]);}function _0x40dc2f({workers:_0x5a06ae,makeOkdb:_0x410ca6,port:_0x36c3c4,primaryOkdb:_0x551112,childEntry:childEntry=![],workerEnv:workerEnv=null,workerRole:workerRole=null,listenAddr:listenAddr=null}={}){const _0x1c2358=_0x3c1326;if(_0x4107ac[_0x1c2358(0x281)])return childEntry&&_0x4107ac[_0x1c2358(0xd3)]({'exec':_0x2f3343[_0x1c2358(0x20d)](__dirname,'okdb-http-worker-child.js'),'args':[],'execArgv':((()=>{const _0xbb9685=_0x1c2358,_0x29d39a=[];for(let _0x5b1915=0x0;_0x5b1915<process[_0xbb9685(0x11f)][_0xbb9685(0x17e)];_0x5b1915++){const _0x9f0363=process[_0xbb9685(0x11f)][_0x5b1915];if(_0x9f0363[_0xbb9685(0x218)](_0xbb9685(0x13f))||_0x9f0363['startsWith'](_0xbb9685(0x1bc))||_0x9f0363[_0xbb9685(0x218)]('--inspect'))continue;if(_0x9f0363==='-e'||_0x9f0363===_0xbb9685(0x190)||_0x9f0363==='-p'||_0x9f0363===_0xbb9685(0xeb)){_0x5b1915++;continue;}_0x29d39a[_0xbb9685(0x1a0)](_0x9f0363);}return _0x29d39a;})())}),_0x7308f3({'workers':_0x5a06ae,'port':_0x36c3c4,'primaryOkdb':_0x551112,'workerEnv':workerEnv,'workerRole':workerRole,'listenAddr':listenAddr??':'+_0x36c3c4});return _0x49ca77({'makeOkdb':_0x410ca6,'port':_0x36c3c4});}function _0x7308f3({workers:_0xfd60e9,port:_0x3eae0a,primaryOkdb:_0x4720a9,workerEnv:_0x1671e1,workerRole:_0x5e3bde,listenAddr:_0x1617d5}){const _0xf4cfb0=_0x3c1326,_0x1211c1=new Map(),_0x2524f7=new Map();let _0x3fe2c6=![];const _0x50acb4=_0x1d64d5=>_0x1d64d5?.[_0xf4cfb0(0x2c7)],_0x583836=_0x4bbc79=>{const _0x12fdc1=_0xf4cfb0,_0x314621=_0x4107ac[_0x12fdc1(0x234)]({...process.env,..._0x1671e1||{},'OKDB_CLUSTER_SLOT':String(_0x4bbc79)});return _0x314621[_0x12fdc1(0x2c7)]=_0x4bbc79,_0x1211c1[_0x12fdc1(0x17a)](_0x314621[_0x12fdc1(0x13a)]['pid'],{'worker':_0x314621,'startedAt':Date[_0x12fdc1(0x24a)](),'slot':_0x4bbc79}),_0x314621['on'](_0x12fdc1(0x277),_0xb8f408=>{const _0x383e19=_0x12fdc1;console[_0x383e19(0x2cd)](_0x383e19(0x28d)+_0x314621[_0x383e19(0x13a)][_0x383e19(0x11d)]+_0x383e19(0xff)+(_0xb8f408?.[_0x383e19(0x25d)]??_0xb8f408));}),_0x314621['on'](_0x12fdc1(0x1c2),()=>_0x2f5b63()),_0x314621;},_0x1f46ca=_0x2ba09c=>{const _0x56a4=_0xf4cfb0;for(const {worker:_0x21ecef}of _0x1211c1[_0x56a4(0x2e6)]()){if(_0x21ecef[_0x56a4(0x267)]()||!_0x21ecef[_0x56a4(0x18f)]())continue;try{_0x21ecef['send'](_0x2ba09c);}catch{}}};_0x4720a9?.['_activateProcesses']?.({'kind':_0xf4cfb0(0x240),'listenAddr':_0x1617d5})[_0xf4cfb0(0x230)](()=>{}),_0x4720a9?.['processes']?.[_0xf4cfb0(0x239)]?.({'workersConfigured':_0xfd60e9});const _0x333b8f={'engines':!![],'processors':!![],'compaction':!![],..._0x5e3bde,'http':!![]},_0x2f5b63=()=>{const _0x48a4ac=_0xf4cfb0,_0x12d3e4=_0x4720a9?.[_0x48a4ac(0x2bd)];if(!_0x12d3e4||!_0x12d3e4[_0x48a4ac(0x238)])return;const _0xe25ed=_0x12d3e4[_0x48a4ac(0x146)];for(const {worker:_0x59296f,startedAt:_0x281bf5,slot:_0x2a5d80,stats:_0x4d0e32,processing:_0xc10360}of _0x1211c1[_0x48a4ac(0x2e6)]()){if(_0x59296f['isDead']())continue;const _0x179d31=_0x12d3e4[_0x48a4ac(0x14a)]?.()&&_0x12d3e4['getDesired'](_0x48a4ac(0x124),_0x4dd95a(_0x2a5d80))?.['decommission']===!![];_0x12d3e4['publishChildRow']({'pid':_0x59296f[_0x48a4ac(0x13a)][_0x48a4ac(0x11d)],'startedAt':_0x281bf5,'kind':_0x48a4ac(0xea),'supervisorKey':_0xe25ed,'slot':_0x2a5d80,'slotKey':_0x4dd95a(_0x2a5d80),'role':_0x333b8f,'listenAddr':_0x1617d5,'lifecycle':_0x179d31?_0x48a4ac(0x279):'running','processing':_0xc10360??null,'stats':_0x4d0e32??null})[_0x48a4ac(0x230)](()=>{});}},_0x4dd95a=_0x351de8=>_0x3b112d('cluster:'+_0x3eae0a,_0x351de8),_0x2c5ba0=_0x53d00e=>{const _0x511047=_0xf4cfb0,_0x183250=_0x4720a9?.[_0x511047(0x2bd)];if(!_0x183250?.['hasDesired']?.())return![];return _0x183250[_0x511047(0x13c)](_0x511047(0x124),_0x4dd95a(_0x53d00e))?.['decommission']===!![];};for(let _0x1ab215=0x0;_0x1ab215<_0xfd60e9;_0x1ab215++){const _0x485e57=_0x2c5ba0(_0x1ab215);_0x2524f7[_0xf4cfb0(0x17a)](_0x1ab215,{'deaths':[],'consecutiveFailures':0x0,'dead':_0x485e57,'respawnTimer':null}),_0x485e57?console[_0xf4cfb0(0x2cd)]('[okdb-cluster]\x20slot='+_0x1ab215+_0xf4cfb0(0x266)):_0x583836(_0x1ab215);}const _0x43cff=()=>{const _0x1d0976=_0xf4cfb0,_0x1f32b6=_0x4720a9?.[_0x1d0976(0x2bd)];if(!_0x1f32b6?.[_0x1d0976(0x238)]||!_0x1f32b6['hasDesired']?.())return;for(const [_0x47e387,_0x3f752e]of _0x2524f7[_0x1d0976(0x24c)]()){const _0x9e52ba=_0x1f32b6['getDesired'](_0x1d0976(0x124),_0x4dd95a(_0x47e387)),_0x1147d2=_0x9e52ba?.[_0x1d0976(0x11b)]===!![],_0x157d86=_0x9e52ba?.[_0x1d0976(0x209)]===!![];if(_0x1147d2&&!_0x3f752e[_0x1d0976(0x290)]){_0x3f752e['dead']=!![];_0x3f752e[_0x1d0976(0x1f6)]&&(clearTimeout(_0x3f752e[_0x1d0976(0x1f6)]),_0x3f752e[_0x1d0976(0x1f6)]=null);for(const {worker:_0x6e0175}of _0x1211c1['values']()){if(_0x50acb4(_0x6e0175)!==_0x47e387||_0x6e0175[_0x1d0976(0x267)]())continue;try{if(_0x157d86)_0x6e0175[_0x1d0976(0x13a)]['kill'](_0x1d0976(0x247));else _0x6e0175[_0x1d0976(0x18f)]()&&_0x6e0175[_0x1d0976(0x17d)]();}catch{}}console['log'](_0x1d0976(0x2df)+(_0x157d86?'hard-killed':'decommissioned')+_0x1d0976(0x19b)+_0x47e387+'\x20(durable\x20desired-state)');}else{if(!_0x1147d2&&_0x3f752e[_0x1d0976(0x290)]&&_0x9e52ba){_0x3f752e[_0x1d0976(0x290)]=![],_0x3f752e['deaths']=[],_0x3f752e['consecutiveFailures']=0x0;const _0x177ba1=[..._0x1211c1[_0x1d0976(0x2e6)]()][_0x1d0976(0x210)](({worker:_0x4c5518})=>_0x50acb4(_0x4c5518)===_0x47e387&&!_0x4c5518[_0x1d0976(0x267)]());!_0x177ba1&&!_0x3fe2c6&&(_0x583836(_0x47e387),console[_0x1d0976(0x2cd)](_0x1d0976(0x216)+_0x47e387));}}}},_0x5b32d7=()=>{try{_0x43cff();}catch{}};_0x4720a9?.['events']?.['on']?.(_0x10044b[_0xf4cfb0(0x1ab)],_0x5b32d7);const _0xbdb097=[];if(_0x4720a9?.[_0xf4cfb0(0x1f9)]?.['on'])for(const _0x3c2d3d of _0xf34cfb){const _0x3eaac3=_0x10aebd=>{_0x1f46ca({[_0xa47e1c]:_0x9715ae,'event':_0x3c2d3d,'data':_0x10aebd??{}});};_0x4720a9[_0xf4cfb0(0x1f9)]['on'](_0x3c2d3d,_0x3eaac3),_0xbdb097[_0xf4cfb0(0x1a0)]({'event':_0x3c2d3d,'handler':_0x3eaac3});}const _0x4e6e77=setInterval(()=>{_0x43cff(),_0x2f5b63();},_0x4632dd);_0x4e6e77['unref']?.();const _0x550f66=(_0x32908d,_0x13d6d7)=>{const _0x474666=_0xf4cfb0;if(!_0x13d6d7||typeof _0x13d6d7!==_0x474666(0x1ea)||_0x13d6d7[_0xa47e1c]!==_0x2e3060)return;if(!_0x4720a9?.[_0x474666(0x2cd)]?.[_0x474666(0x12a)])return;const _0x493c08=_0x13d6d7[_0x474666(0x224)]||{};_0x4720a9['log']['ingest']({..._0x493c08,'msg':'[w'+_0x13d6d7[_0x474666(0x124)]+']\x20'+(_0x493c08['msg']??''),'meta':{..._0x493c08[_0x474666(0x1a8)]||{},'worker':_0x13d6d7['slot'],'workerPid':_0x13d6d7[_0x474666(0x11d)]}});};_0x4107ac['on'](_0xf4cfb0(0x25d),_0x550f66);const _0xcd6a45=(_0x373b8a,_0x53829f)=>{const _0xa72ab8=_0xf4cfb0;if(!_0x53829f||typeof _0x53829f!=='object'||_0x53829f[_0xa47e1c]!==_0x477b24)return;const _0x6e13f5=_0x1211c1['get'](_0x373b8a[_0xa72ab8(0x13a)][_0xa72ab8(0x11d)]);if(_0x6e13f5){_0x6e13f5[_0xa72ab8(0x215)]={..._0x53829f[_0xa72ab8(0x215)],'at':Date[_0xa72ab8(0x24a)]()};if(_0x53829f['processing']!==undefined){const _0x564665=_0x259dbf(_0x53829f[_0xa72ab8(0x106)]);_0x564665!==_0x6e13f5[_0xa72ab8(0x150)]&&(_0x6e13f5[_0xa72ab8(0x150)]=_0x564665,_0x58225e()),_0x6e13f5['processing']=_0x53829f['processing'];}}};let _0x18d9d7=null;const _0x58225e=()=>{if(_0x18d9d7||_0x3fe2c6)return;_0x18d9d7=setTimeout(()=>{_0x18d9d7=null;if(!_0x3fe2c6)_0x2f5b63();},_0x5375e1),_0x18d9d7['unref']?.();};_0x4107ac['on'](_0xf4cfb0(0x25d),_0xcd6a45),_0x4107ac['on']('exit',(_0x384d7d,_0x157ccc,_0x50625d)=>{const _0x58fa31=_0xf4cfb0,_0x456e52=_0x384d7d[_0x58fa31(0x13a)][_0x58fa31(0x11d)],_0x3d25c3=_0x50acb4(_0x384d7d),_0x22ae4e=_0x1211c1[_0x58fa31(0xec)](_0x456e52);if(_0x22ae4e&&_0x4720a9?.['processes'])_0x4720a9['processes'][_0x58fa31(0x1fb)](_0x456e52+':'+_0x22ae4e[_0x58fa31(0x1ff)])[_0x58fa31(0x230)](()=>{});_0x1211c1[_0x58fa31(0x2aa)](_0x456e52),console[_0x58fa31(0x2cd)]('[okdb-cluster]\x20worker\x20pid='+_0x456e52+_0x58fa31(0xf8)+(_0x3d25c3??'?')+_0x58fa31(0x109)+(_0x58fa31(0xbc)+_0x157ccc+_0x58fa31(0xe8)+(_0x50625d??_0x58fa31(0x256))+_0x58fa31(0x1e6)+_0x1211c1[_0x58fa31(0x2e3)]+_0x58fa31(0xb2))),_0x2f5b63();if(_0x3fe2c6||_0x3d25c3==null)return;const _0x449a0d=_0x2524f7['get'](_0x3d25c3);if(!_0x449a0d||_0x449a0d['dead'])return;const _0x3d62f2=Date[_0x58fa31(0x24a)]();_0x449a0d['deaths'][_0x58fa31(0x1a0)](_0x3d62f2),_0x449a0d['deaths']=_0x449a0d[_0x58fa31(0x214)][_0x58fa31(0x2c0)](_0x29bb21=>_0x3d62f2-_0x29bb21<=_0x11cbb8);if(_0x449a0d[_0x58fa31(0x214)][_0x58fa31(0x17e)]>=_0x2ba25e){_0x449a0d[_0x58fa31(0x290)]=!![],console[_0x58fa31(0x277)]('[okdb-cluster]\x20CRASH-LOOP:\x20worker\x20slot='+_0x3d25c3+_0x58fa31(0x22a)+_0x449a0d[_0x58fa31(0x214)][_0x58fa31(0x17e)]+'\x20times\x20in\x20'+(_0x11cbb8+'ms\x20—\x20giving\x20up\x20on\x20this\x20slot;\x20'+_0x1211c1[_0x58fa31(0x2e3)]+'\x20worker(s)\x20still\x20serving'));return;}_0x449a0d['consecutiveFailures']++;const _0x4eb1ad=Math['min'](_0x112ca3,_0x298871*0x2**(_0x449a0d['consecutiveFailures']-0x1));console[_0x58fa31(0x2cd)](_0x58fa31(0x1b9)+_0x3d25c3+'\x20in\x20'+_0x4eb1ad+'ms\x20(attempt\x20'+_0x449a0d[_0x58fa31(0xa9)]+')'),_0x449a0d[_0x58fa31(0x1f6)]=setTimeout(()=>{const _0x5cd895=_0x58fa31;_0x449a0d['respawnTimer']=null;if(_0x3fe2c6||_0x449a0d[_0x5cd895(0x290)])return;const _0xca6bab=_0x583836(_0x3d25c3);_0xca6bab[_0x5cd895(0x1a6)](_0x5cd895(0xb4),()=>{const _0x4c20bc=_0x5cd895;if(_0x2524f7['get'](_0x3d25c3)===_0x449a0d)_0x449a0d[_0x4c20bc(0xa9)]=0x0;});},_0x4eb1ad),_0x449a0d[_0x58fa31(0x1f6)][_0x58fa31(0x13e)]?.();});const _0x7b7f11=[..._0x1211c1[_0xf4cfb0(0x114)]()];console[_0xf4cfb0(0x2cd)]('[okdb-cluster]\x20primary\x20pid='+process['pid']+_0xf4cfb0(0x2c3)+_0xfd60e9+_0xf4cfb0(0x1ac)+_0x3eae0a+':\x20'+('['+_0x7b7f11[_0xf4cfb0(0x20d)](',\x20')+']'));const _0x5c79fe={'_isClusterController':!![],'port':_0x3eae0a,'primaryOkdb':_0x4720a9??null,'status'(){const _0x2d70a1=_0xf4cfb0;return{'clustered':!![],'primaryPid':process[_0x2d70a1(0x11d)],'port':_0x3eae0a,'primaryRole':_0x4720a9?.[_0x2d70a1(0x119)]??null,'processorPid':null,'supervisorPid':process[_0x2d70a1(0x11d)],'workers':[..._0x1211c1[_0x2d70a1(0x2e6)]()]['map'](({worker:_0x4169de})=>({'pid':_0x4169de[_0x2d70a1(0x13a)][_0x2d70a1(0x11d)],'id':_0x4169de['id'],'dead':_0x4169de[_0x2d70a1(0x267)]()}))};},async 'close'(){const _0xf95f80=_0xf4cfb0;_0x3fe2c6=!![];for(const _0x182306 of _0x2524f7[_0xf95f80(0x2e6)]()){_0x182306[_0xf95f80(0x290)]=!![],_0x182306['respawnTimer']&&(clearTimeout(_0x182306[_0xf95f80(0x1f6)]),_0x182306[_0xf95f80(0x1f6)]=null);}clearInterval(_0x4e6e77);_0x18d9d7&&(clearTimeout(_0x18d9d7),_0x18d9d7=null);_0x4107ac[_0xf95f80(0x191)]('message',_0x550f66),_0x4107ac[_0xf95f80(0x191)](_0xf95f80(0x25d),_0xcd6a45),_0x4720a9?.['events']?.[_0xf95f80(0x191)]?.(_0x10044b[_0xf95f80(0x1ab)],_0x5b32d7);if(_0x4720a9?.[_0xf95f80(0x1f9)]?.[_0xf95f80(0x191)])for(const {event:_0x1fb7f5,handler:_0x35723a}of _0xbdb097){try{_0x4720a9[_0xf95f80(0x1f9)][_0xf95f80(0x191)](_0x1fb7f5,_0x35723a);}catch{}}_0xbdb097[_0xf95f80(0x17e)]=0x0;const _0x1795d2=[..._0x1211c1[_0xf95f80(0x2e6)]()][_0xf95f80(0x173)](({worker:_0x14d71c})=>_0x14d71c);if(_0x1795d2[_0xf95f80(0x17e)]===0x0)return;await Promise[_0xf95f80(0xc5)](_0x1795d2[_0xf95f80(0x173)](_0x3cc97b=>new Promise(_0xc376e1=>{const _0x22757a=_0xf95f80;if(_0x3cc97b[_0x22757a(0x267)]()){_0xc376e1();return;}let _0x327ac1=![];const _0x32bd53=()=>{if(_0x327ac1)return;_0x327ac1=!![];if(_0x3442c9)clearTimeout(_0x3442c9);_0xc376e1();};_0x3cc97b[_0x22757a(0x1a6)](_0x22757a(0x13b),_0x32bd53);const _0x3442c9=setTimeout(()=>{const _0x2f41bb=_0x22757a;try{_0x3cc97b[_0x2f41bb(0x13a)][_0x2f41bb(0x209)]();}catch{}},_0x23daec+0x1f4);_0x3442c9['unref']?.();try{_0x3cc97b[_0x22757a(0x17d)]();}catch{try{_0x3cc97b[_0x22757a(0x13a)][_0x22757a(0x209)]();}catch{}}})));}};return _0x5c79fe;}async function _0x49ca77({makeOkdb:_0x3d8fa2,port:_0x2aa4b3}){const _0x5edcd4=_0x3c1326,_0x2c167b=await _0x3d8fa2();return _0x5a181e(_0x2c167b),_0x2c167b['http'][_0x5edcd4(0xf4)](_0x2aa4b3);}function _0x5a181e(_0x324f28){const _0x5a02d5=_0x3c1326;if(!_0x324f28||_0x324f28['_clusterWorkerAttached'])return;_0x324f28['_clusterWorkerAttached']=!![];try{const {OKDBChangefeed:_0x514158}=requireOkdbChangefeed(),_0x5ba487=_0x324f28[_0x5a02d5(0xc3)];if(_0x5ba487&&typeof _0x5ba487[_0x5a02d5(0x130)]===_0x5a02d5(0x18c)){const _0x4504ca=new _0x514158(_0x324f28);_0x4504ca[_0x5a02d5(0x177)](),_0x5ba487[_0x5a02d5(0x130)](_0x4504ca),_0x324f28[_0x5a02d5(0x2db)]=_0x4504ca;}}catch(_0x567922){_0x324f28[_0x5a02d5(0x2cd)]?.[_0x5a02d5(0x26f)]?.('[okdb-cluster]\x20change-feed\x20init\x20failed:\x20'+(_0x567922?.[_0x5a02d5(0x25d)]??_0x567922),{'feature':_0x5a02d5(0x1c7)});}const _0x4d37b0=_0x4fff9c=>{const _0x19c4f2=_0x5a02d5;if(!_0x4fff9c||typeof _0x4fff9c!=='object'||_0x4fff9c[_0xa47e1c]==null)return;if(_0x4fff9c[_0xa47e1c]===_0x9715ae)try{_0x324f28['_adminRelay']?.['pushEphemeral']?.(_0x4fff9c[_0x19c4f2(0x227)],_0x4fff9c[_0x19c4f2(0xb3)]);}catch{}};process['on'](_0x5a02d5(0x25d),_0x4d37b0),_0x324f28[_0x5a02d5(0x28a)]=_0x4d37b0;{let _0x44dd92=process[_0x5a02d5(0x16c)](),_0x1d911d=Date[_0x5a02d5(0x24a)]();const _0x30b52b=()=>{const _0x4b4a6a=_0x5a02d5;if(typeof process[_0x4b4a6a(0xe9)]!==_0x4b4a6a(0x18c)||!process['connected'])return;const _0x4c8194=Date[_0x4b4a6a(0x24a)](),_0x455284=process[_0x4b4a6a(0x16c)](),_0x4cedeb=(_0x4c8194-_0x1d911d)*0x3e8,_0xa92649=_0x455284['user']-_0x44dd92[_0x4b4a6a(0x10c)]+(_0x455284['system']-_0x44dd92[_0x4b4a6a(0x1fd)]),_0x1f9d33=_0x4cedeb>0x0?Math[_0x4b4a6a(0x22d)](0x64,Math['round'](_0xa92649/(_0x4cedeb*(_0x623a23[_0x4b4a6a(0x206)]()[_0x4b4a6a(0x17e)]||0x1))*0x64)):0x0;_0x44dd92=_0x455284,_0x1d911d=_0x4c8194;const _0x209d07=process[_0x4b4a6a(0xc2)]();let _0x48ae1b=null;try{_0x48ae1b=_0x324f28[_0x4b4a6a(0x119)]?.['processors']?_0x324f28[_0x4b4a6a(0x2bd)]?.[_0x4b4a6a(0x13d)]?.()??null:null;}catch{}try{process['send']({[_0xa47e1c]:_0x477b24,'stats':{'rss':_0x209d07[_0x4b4a6a(0xd5)],'heapUsed':_0x209d07[_0x4b4a6a(0x1f2)],'heapTotal':_0x209d07[_0x4b4a6a(0x2dd)],'external':_0x209d07[_0x4b4a6a(0x189)],'cpuPct':_0x1f9d33,'cpuWindowMs':Math[_0x4b4a6a(0x24b)](_0x4cedeb/0x3e8)||null},'processing':_0x48ae1b});}catch{}},_0x199968=Math[_0x5a02d5(0x2bc)](0x3e8,Number(process.env.OKDB_STATS_INTERVAL_MS)||0x1388),_0x1bc8c2=setInterval(_0x30b52b,_0x199968);_0x1bc8c2[_0x5a02d5(0x13e)]?.(),_0x30b52b();for(const _0x2ff64b of[_0x5a02d5(0xc8),'processor:resumed']){_0x324f28[_0x5a02d5(0x1f9)]?.['on']?.(_0x2ff64b,()=>{try{_0x30b52b();}catch{}});}}let _0x26d306=![];const _0x4a3e2d=async _0x4c500d=>{const _0x433aa5=_0x5a02d5;if(_0x26d306)return;_0x26d306=!![];const _0x4eba93=setTimeout(()=>process[_0x433aa5(0x13b)](_0x4c500d),_0x23daec);_0x4eba93[_0x433aa5(0x13e)]?.();try{await _0x324f28[_0x433aa5(0x2b1)]?.();}catch{}process[_0x433aa5(0x13b)](_0x4c500d);};process['on'](_0x5a02d5(0x17d),()=>_0x4a3e2d(0x0));if(process[_0x5a02d5(0xe9)]&&!process[_0x5a02d5(0xfd)])_0x4a3e2d(0x0);if(process[_0x5a02d5(0x125)]!==_0x5a02d5(0x225)){const _0x4a3f5a=setInterval(()=>{const _0x332d46=_0x5a02d5;if(process[_0x332d46(0xfe)]===0x1)_0x4a3e2d(0x0);},_0x43acc7);_0x4a3f5a[_0x5a02d5(0x13e)]?.(),_0x324f28['_clusterOrphanWatch']=_0x4a3f5a;}}return okdbCluster={'runClustered':_0x40dc2f,'attachWorkerCluster':_0x5a181e},okdbCluster;}var hasRequiredOkdbHttpWorkerChild;function requireOkdbHttpWorkerChild(){const _0x4ed60c=_0x5e06fa;if(hasRequiredOkdbHttpWorkerChild)return okdbHttpWorkerChild$1;hasRequiredOkdbHttpWorkerChild=0x1;const _0x4e679c=require$$0$5,{attachWorkerCluster:_0x524c2b}=requireOkdbCluster();async function _0x52b2d3(){const _0x2822b9=_0x5881,_0x4c6fbd=process.env.OKDB_HTTP_CHILD;if(!_0x4c6fbd)throw new Error(_0x2822b9(0x255));const {rootPath:_0xd9ac6f,port:_0x45ca6c,options:options={},logLevel:logLevel='info'}=JSON[_0x2822b9(0x14d)](_0x4c6fbd);if(!_0xd9ac6f||!_0x45ca6c)throw new Error(_0x2822b9(0x18b));const _0x194504=new _0x4e679c(_0xd9ac6f,{...options,'engines':![],'processors':![],'compaction':![]});_0x194504[_0x2822b9(0x2cd)][_0x2822b9(0x25a)]?.();const _0x3e8c05=process.env.OKDB_CLUSTER_SLOT??'?',_0x27805e={'debug':0x0,'info':0x1,'warn':0x2,'error':0x3},_0x324eb4=_0x27805e[logLevel]??_0x27805e['info'];_0x194504[_0x2822b9(0x2cd)][_0x2822b9(0xaf)](_0xca5fe6=>{const _0x560092=_0x2822b9;if((_0x27805e[_0xca5fe6['level']]??0x1)<_0x324eb4)return;try{process[_0x560092(0xe9)]?.({'__okdbCluster':_0x560092(0x2cd),'slot':_0x3e8c05,'pid':process[_0x560092(0x11d)],'entry':_0xca5fe6});}catch{}}),await _0x194504[_0x2822b9(0x2e5)](),_0x524c2b(_0x194504),await _0x194504[_0x2822b9(0x27f)][_0x2822b9(0xf4)](_0x45ca6c);}return _0x52b2d3()[_0x4ed60c(0x230)](_0x3389f3=>{const _0x38d7ae=_0x4ed60c;try{process[_0x38d7ae(0xe9)]?.({'__okdbCluster':_0x38d7ae(0x2cd),'slot':process.env.OKDB_CLUSTER_SLOT??'?','pid':process[_0x38d7ae(0x11d)],'entry':{'level':_0x38d7ae(0x277),'msg':_0x38d7ae(0x246)+(_0x3389f3?.[_0x38d7ae(0x25d)]??_0x3389f3)}});}catch{}process[_0x38d7ae(0x13b)](0x1);}),okdbHttpWorkerChild$1;}var okdbHttpWorkerChildExports=requireOkdbHttpWorkerChild(),okdbHttpWorkerChild=getDefaultExportFromCjs(okdbHttpWorkerChildExports);function _0x2913(){const _0x1063da=['cluster-wide','FTS_REGISTERED','_flushTimer','prependListener','\x20worker\x20slot=','_publishFailWarned','runtimeProcessesView','lifecycle','toFixed','push','processKey','killable','processors','node','SYSTEM_POKE','once','\x0a\x20\x20\x20\x20\x20\x20','meta','includes','registerIndex','SYSTEM_PROC','\x20HTTP\x20server(s)\x20on\x20port\x20','_handlePoke','\x20sync','_processStartedAt','maxExtra','procmodeack/','maxMs','engines','list','_cursors','_putRowSync','worker','ref:violation','[okdb-cluster]\x20respawning\x20worker\x20slot=','recent\x20writes\x20(newest\x20first)','\x20===','--watch','ttlMs','namespace','_assertUsable','_nodeDead','getRange','online','ensureType','parkedNow','_onPending','135947ifukcg','cluster','_buckets','3QbjGpM','_nodeDbFor','randomUUID','migrations','ITEM_PENDING','resolve','inspect','_publishNow','fn-runner','note','_putRowAsync','reset','_activateProcesses','sync','path','crypto','index:drop','processor:retry','_selfKey','okdb','1ofN:','ESRCH','fts:reset','SYSTEM_STOPPED','_coordinator','compact','_enableChangelog','node:perf_hooks','version',');\x20','claims','release','_quantum','object','claimGated','_outstanding','registry\x20heartbeat\x20skipped\x20(writer=','FTS_RESET','\x20\x20(write\x20ring\x20empty\x20—\x20was\x20OKDB_DIAG\x20set\x20before\x20any\x20write?)','system:ready','index:registered','heapUsed','_admissionStarted','_durs','call','respawnTimer','_inflight','MAX_POOL_HOLDS','events','reduce','removeNode','ttl:clear','system','embedded','startedAt','index:progress','default','noteListenAddr','_wantDbOf','INDEX_READY','node:events','cpus','processor','ms/','kill','_migrateVocab','ms\x20max=','removeSync','join','REMOVE','_singletonLocks','some','_lock','_markSeen','startHeartbeat','deaths','stats','[okdb-cluster]\x20recommissioned\x20worker\x20slot=','find','startsWith','system:stopped','singletonClaims','heartbeatMs','bus:proc','_openEnvLazy','write','sync:apply','mode','processor:resumed','removeSupervisedChild','unclaimed','entry','win32','commitP99Ms','event','ENV_CLOSING_RETRY','_refreshDesiredSnapshot','\x20died\x20','listenAddr','ttl:set','min','type','view','catch','_isStale','_held','_startAdmission','fork','count','_singletonLock','appendFileSync','_isWriter','setOwnMeta','cli','force','setLogger','_systemEnv','participate','processor:error','primary','index:reset','_rawDb','INDEX_REGISTERED',')\x20—\x20this\x20process\x20will\x20not\x20appear\x20in\x20the\x20process\x20census','_ownMeta','http\x20worker\x20child\x20failed:\x20','SIGKILL','value','txn:start','now','round','entries','_onItem','license:activated','childTransaction','_threadStats','mean','_children','nodeKey','openDB','okdb-http-worker-child:\x20OKDB_HTTP_CHILD\x20env\x20config\x20missing','none','\x20—\x20','feed:','writerStatus','detachConsole','_log','_cmd','message','add','threads','envsOpen','INDEX_RESET','register','dropType','nodesView','_maybePublish','\x20stays\x20down\x20on\x20boot\x20(durable\x20decommission)','isDead','okdb-diag.','_key','publishOwnRow','standalone','ref:violation_resolved','__okdbCluster','beforeWrite','warn','ttl:expired','caps','slice','_removeRowAsync','reportThreadStats','\x20@\x20','shift','error','seq','decommissioning','floor','holder','\x20pid=','closing','__vocab/version','http','ITEM_REMOVE','isPrimary','getProcess','load','ITEM_UPDATE','transaction','system:poke','1295802EPkkDl','_versionSkewWarned','trim','_clusterOnMessage','\x0a===\x20OKDB_DIAG\x20','dumpedAt','[okdb-cluster]\x20worker\x20pid=','okdb-writer:\x20env\x20closing\x20—\x20retry','tryAcquire','dead','heldBy','workersConfigured','sandbox','cpuPct','percentile','building','_lockDb','null','uncaughtException','_bpParkedTotal','resetting','started','state','perf_hooks','dedupeMax','11reTRmR','_desired','setDesired','_listenAddr','number','supervisorKey','listNodes','_closed','\x20writer{depth=','258NpDLFV','delete','_bpWaiters','_done','getClock','_db','publishChildRow','_pendingLocal','close','recordWrite','repeat','withPoolHold','\x20│\x20','offWindow','_drain','_role','\x20drainAge=','_getType','next','max','processes','~lock','_participate','filter','_rowKey','item:create','\x20forked\x20','slotKey','_buildChildRow','transactionSync','__okdbSlot','inflightAgesMs','fanout','waiting','indexOf','_seen','log','_drainOne','status','loop-lag','epoch','~processes:desired','12968000mFTCOi','stack','fts:registered','stop','raw-put','license:added','code','_writer','_changefeed','ITEM_CREATE','heapTotal','remove','[okdb-cluster]\x20','field:resolver_registered','_started','async','size','_heartbeatTimer','open','values','_heartbeatInFlight','_dedupeMax','~processes','_isReader','stopped','_sandbox','_timer','string','consecutiveFailures','_startHeartbeat','has','_rootDb','running','raw-remove','attach','_statusEnv','_pending','\x20worker(s)\x20remaining','data','listening','freeze','toISOString','ms\x20busy=','_onTick','kind','license:invalid','reap','(code=','enable','instanceId','ORPHAN\x20(env-closed\x20write)','\x20statusEnv=','rows=','memoryUsage','_adminRelay','isActive','all','bus:type_drop','updatedAt','processor:paused','unique:violation','stderr','creating','depth','isEnabled','abs','enabled','prototype','bus:env_release','clusterStatusView','setupPrimary','txn:end','rss','index:ready','race','stringify','./okdb','then','_nestedTotal','__esModule','stopping','change','_flushDebounce','\x20parkedNow=','_admissionTimer','extend','clear','INDEX_PROGRESS','\x20\x20(no\x20env\x20draining)','item:remove','_onPoke',',\x20signal=','send','http-server','--print','get','processor:ready','_wantDbHandle','drain\x20state\x20(envs\x20with\x20a\x20non-zero\x20drain):','ms\x20on\x20env=','_scheduleFlush','reject','system:proc','listen','_lockDbOf','ms\x20activeWriters=','unique:violation_resolved','\x20(slot=','system:type_drop','ms\x20env=','host','registerFts','connected','ppid','\x20ipc\x20error:\x20','_ensureDesired','sort','workers','_onProcEvent','disable','_holderDead','processing','_handleInProcess','rowKey',')\x20exited\x20','isWorker','type:drop','user','processorId','processor:progress','_handlePending','2.6.3','_highWater','_dedupeKey','_supervisorKey','keys','_wantDb','_desiredOverlay','updateSupervisedChildStats','options','role','_released','decommission','system:clock_change','pid','confirm','execArgv','putNode','committed','4301284qVUrRl','_lastCpuPct','slot','platform','emit','_draining','_report','schema:set','ingest','compaction','_heldTotal','okdb-lock:\x20env\x20closed','license:removed','_onStop','attachFeed','_groupByProcess','quantum','_buildOwnRow','.log','ephemeral','env','split','allSettled','_envs','process','exit','getDesired','_buildProcessingFacet','unref','--test','ms\x20p99=','_collectWriterFacet','splice','cursorKey','_nodeDbCache','env:removed','selfKey','flushDebounce','children','resetReadTxn','hasDesired','_kind','_collectSingletonClaims','parse','_nestedWarned','uptime','processingSig','1548080gHqGOr','item:update','getChanges','instances','txn:rollback','putSync','single','commit','_lastPublishAt','_windowCbs','_startedAt','144epwLBv','_nodeDb','fts:drop','_acquiredAt','test','processingStatusView','isWanted','oldestPendingMs','_lastCpuUsage','hostname','createEnvironment','stopHeartbeat','~processes:cmd','_baselines','node/','set\x20OKDB_DIAG=1\x20(and\x20OKDB_DIAG_STACK=1\x20to\x20name\x20write\x20sites)','cpuUsage','registry\x20publish\x20failing:\x20','expiresAt','exports','put','_instanceId','_lastCpuWindowMs','map','assign','_hbTimer','\x20while\x20this\x20process\x20runs\x20','start','name','bumpCmd','set',']:\x20transaction\x20ran\x20nested\x20inside\x20a\x20write\x20txn\x20held\x20open\x20by\x20a\x20non-writer\x20caller','markClosed','disconnect','length','addSupervisedChild','drain','bus:poke','ORPHAN\x20(env-closed\x20write,\x20unhandledRejection)','getCmd','3131346xWfIkY','okdb-writer[','onWindow','acquiredAt','type:registered','external','_committed','okdb-http-worker-child:\x20rootPath\x20and\x20port\x20required','function','_enqueuedAt','deregisterSelf','isConnected','--eval','off','390944NcnhAE','replace','_lastCpuAt','_sampleOwnStats','afterWrite'];_0x2913=function(){return _0x1063da;};return _0x2913();}module[_0x5e06fa(0x16f)]=okdbHttpWorkerChild;
|