@kedem/okdb 2.3.5 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +427 -0
- package/algorithm-worker-thread.js +1 -1
- package/bin/okdb.js +1 -1
- package/docs/auth-and-sync.md +30 -5
- package/docs/auth-permissions.md +19 -6
- package/docs/change-log.md +79 -59
- package/docs/data-model.md +20 -18
- package/docs/deployment.md +25 -0
- package/docs/diagnostics.md +59 -17
- package/docs/embeddings.md +57 -6
- package/docs/fts.md +50 -5
- package/docs/functions.md +21 -8
- package/docs/http-api.md +139 -98
- package/docs/http-cluster.md +30 -8
- package/docs/indexes.md +5 -4
- package/docs/licensing.md +6 -1
- package/docs/logging.md +18 -0
- package/docs/migration.md +153 -2
- package/docs/pipelines.md +6 -1
- package/docs/plugins.md +12 -18
- package/docs/process-registry.md +50 -39
- package/docs/processors.md +40 -22
- package/docs/querying.md +50 -36
- package/docs/queue.md +110 -14
- package/docs/subscriptions.md +37 -24
- package/docs/sync.md +96 -37
- package/docs/time-machine.md +23 -17
- package/docs/transactions.md +11 -19
- package/docs/ttl.md +118 -67
- package/docs/upgrade-2.0.md +2 -2
- package/docs/views.md +75 -52
- 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/public/sections/db/parts/type-viewer.ok.js +1 -1
- package/public/sections/embeddings/parts/engines-overview.ok.js +1 -1
- package/public/sections/queue/parts/queue-jobs.ok.js +1 -1
- package/public/sections/system/modals/data-ops-modal.ok.js +1 -1
- package/types/environment.d.ts +320 -52
- package/types/features/admin.d.ts +8 -2
- package/types/features/api.d.ts +10 -16
- package/types/features/auth.d.ts +135 -16
- package/types/features/embeddings.d.ts +639 -31
- package/types/features/engines.d.ts +368 -14
- package/types/features/files.d.ts +0 -3
- package/types/features/fts.d.ts +98 -26
- package/types/features/functions.d.ts +175 -15
- package/types/features/mcp.d.ts +23 -10
- package/types/features/pipelines.d.ts +268 -9
- package/types/features/queue.d.ts +230 -34
- package/types/features/sync.d.ts +177 -14
- package/types/features/time-machine.d.ts +117 -16
- package/types/features/views.d.ts +230 -39
- package/types/index.d.ts +357 -254
- package/types/okdb.d.ts +397 -0
- package/types/options.d.ts +309 -48
- package/public/test-cron-input.html +0 -60
- package/public/test-json-input.html +0 -280
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x4a52bb=_0x2868;(function(_0x4afc67,_0xc25267){const _0x4bc7bd=_0x2868,_0x5b61ec=_0x4afc67();while(!![]){try{const _0x342635=parseInt(_0x4bc7bd(0xa9))/0x1+-parseInt(_0x4bc7bd(0xdd))/0x2+parseInt(_0x4bc7bd(0x1a4))/0x3*(-parseInt(_0x4bc7bd(0x113))/0x4)+parseInt(_0x4bc7bd(0x1fb))/0x5+-parseInt(_0x4bc7bd(0x136))/0x6*(parseInt(_0x4bc7bd(0xad))/0x7)+parseInt(_0x4bc7bd(0x234))/0x8+parseInt(_0x4bc7bd(0x2a4))/0x9*(parseInt(_0x4bc7bd(0xc6))/0xa);if(_0x342635===_0xc25267)break;else _0x5b61ec['push'](_0x5b61ec['shift']());}catch(_0x20bed7){_0x5b61ec['push'](_0x5b61ec['shift']());}}}(_0x1176,0xc9d96));var require$$0$5=require(_0x4a52bb(0x12e)),require$$1$1=require('cluster'),require$$1=require(_0x4a52bb(0x239)),require$$0$3=require('os'),require$$2=require(_0x4a52bb(0x1d0)),require$$0=require('node:perf_hooks'),require$$0$2=require(_0x4a52bb(0x14a)),require$$0$1=require('fs'),require$$0$4=require(_0x4a52bb(0xdc));function getDefaultExportFromCjs(_0x16190f){const _0xc04bbd=_0x4a52bb;return _0x16190f&&_0x16190f[_0xc04bbd(0x29f)]&&Object[_0xc04bbd(0x254)][_0xc04bbd(0x285)][_0xc04bbd(0xdf)](_0x16190f,'default')?_0x16190f['default']:_0x16190f;}var okdbHttpWorkerChild$1={},okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x5e1fed=_0x4a52bb;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x3b738f={'PUT':_0x5e1fed(0x2ab),'REMOVE':'remove','INDEX_DROP':_0x5e1fed(0x1d8),'INDEX_REGISTER':_0x5e1fed(0x102),'INDEX_RESET':_0x5e1fed(0xfd),'TYPE_REGISTER':_0x5e1fed(0x120),'TYPE_DROP':_0x5e1fed(0x259),'FTS_REGISTER':_0x5e1fed(0x1a5),'FTS_DROP':_0x5e1fed(0x23a),'FTS_RESET':'resetFts','SCHEMA_SET':_0x5e1fed(0x2b3),'SCHEMA_DROP':_0x5e1fed(0x1fe),'TTL_SET':_0x5e1fed(0x17d),'TTL_CLEAR':_0x5e1fed(0x2a5)},_0x1bc4db={'SYSTEM_READY':_0x5e1fed(0x261),'FIELD_RESOLVER_REGISTERED':_0x5e1fed(0x181),'SYSTEM_STOPPED':_0x5e1fed(0x1e0),'SYSTEM_CLOCK_CHANGE':_0x5e1fed(0x264),'SYSTEM_POKE':_0x5e1fed(0x1f6),'SYSTEM_DRAIN':'system:drain','SYSTEM_TYPE_DROP':'system:type_drop','SYSTEM_PROC':_0x5e1fed(0x165),'SYSTEM_BUS_STATE_CHANGE':_0x5e1fed(0x224),'ITEM_CREATE':_0x5e1fed(0x1c7),'ITEM_UPDATE':_0x5e1fed(0x2a7),'ITEM_REMOVE':'item:remove','INDEX_RESET':_0x5e1fed(0x226),'INDEX_READY':'index:ready','INDEX_PROGRESS':_0x5e1fed(0x1ef),'VIEW_PROGRESS':_0x5e1fed(0xc5),'INDEX_DROP':_0x5e1fed(0x2b6),'INDEX_REGISTERED':'index:registered','FTS_REGISTERED':_0x5e1fed(0x248),'FTS_DROP':_0x5e1fed(0x188),'FTS_RESET':_0x5e1fed(0x298),'SCHEMA_SET':_0x5e1fed(0x247),'SCHEMA_DROP':'schema:drop','UNIQUE_VIOLATION':'unique:violation','UNIQUE_VIOLATION_RESOLVED':_0x5e1fed(0x20d),'REF_VIOLATION':'ref:violation','REF_VIOLATION_RESOLVED':_0x5e1fed(0x164),'SYNC_APPLY':_0x5e1fed(0x18e),'TXN_START':'txn:start','TXN_END':_0x5e1fed(0x101),'TXN_ROLLBACK':_0x5e1fed(0x1b5),'TYPE_REGISTERED':_0x5e1fed(0x269),'TYPE_DROP':'type:drop','ENV_OPENED':_0x5e1fed(0x25a),'ENV_REMOVED':_0x5e1fed(0x14d),'SYSTEM_ENV_RELEASE':_0x5e1fed(0x21e),'TTL_EXPIRED':'ttl:expired','TTL_SET':_0x5e1fed(0x1f4),'TTL_CLEAR':_0x5e1fed(0xce),'LICENSE_INVALID':_0x5e1fed(0x276),'LICENSE_ADDED':_0x5e1fed(0xe3),'LICENSE_ACTIVATED':_0x5e1fed(0x19b),'LICENSE_REMOVED':'license:removed'},_0x4981b3={'CREATING':_0x5e1fed(0x1e2),'RESETTING':_0x5e1fed(0x170),'READY':_0x5e1fed(0xee),'DROPPING':'dropping','WAITING':'waiting','ERROR':_0x5e1fed(0x112)},_0x37670a={'CREATED':'created','STARTING':_0x5e1fed(0x11e),'STARTED':_0x5e1fed(0x2b1),'STOPPING':'stopping','STOPPED':_0x5e1fed(0x99)},_0x2e6826={'CREATING':_0x5e1fed(0x1e2),'READY':_0x5e1fed(0xee),'HALTED':_0x5e1fed(0xea),'STOPPED':_0x5e1fed(0x99),'RESETTING':_0x5e1fed(0x170)},_0xd7237e=Object[_0x5e1fed(0x246)]({'POKE':'bus:poke','DRAIN':_0x5e1fed(0x27b),'TYPE_DROP':'bus:type_drop','PROC':_0x5e1fed(0x1bf),'ENV_RELEASE':_0x5e1fed(0x123)});return okdbEnums={'BUS_EVENTS':_0xd7237e,'CHANGE_ACTIONS':_0x3b738f,'EVENTS':_0x1bc4db,'INDEX_STATE':_0x4981b3,'OKDB_STATE':_0x37670a,'VIEW_STATE':_0x2e6826},okdbEnums;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x474cb3=_0x4a52bb;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x297799,performance:_0x160e45}=require$$0,_0xd203b7=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x474cb3(0x15d),_0x5c2c88=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x175f81=process.env.OKDB_LOOP_LAG_ALL==='1',_0x514007=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0xce0e56{constructor(){const _0x1e0f53=_0x474cb3;this[_0x1e0f53(0x121)]=_0xd203b7,this[_0x1e0f53(0x215)]=new Map(),this['_h']=null,this[_0x1e0f53(0x15a)]=null,this[_0x1e0f53(0xfb)]=![],this['_log']=(_0x130c63,_0xb47fec)=>process[_0x1e0f53(0x1d3)][_0x1e0f53(0x29d)](_0x130c63+(_0xb47fec?'\x20'+JSON['stringify'](_0xb47fec):'')+'\x0a');}[_0x474cb3(0x2b5)](){const _0x194824=_0x474cb3;return _0x160e45[_0x194824(0x2b5)]();}['setLogger'](_0x5d9d4d){const _0x24e04d=_0x474cb3;if(typeof _0x5d9d4d==='function')this[_0x24e04d(0x1cb)]=_0x5d9d4d;}[_0x474cb3(0x251)](_0x583854,_0x53249a,_0x4de2bb){const _0x243ad1=_0x474cb3;if(!this[_0x243ad1(0x121)])return;let _0x4751aa=this[_0x243ad1(0x215)][_0x243ad1(0xd6)](_0x583854);!_0x4751aa&&(_0x4751aa={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this['_buckets']['set'](_0x583854,_0x4751aa)),_0x4751aa['ms']+=_0x53249a,_0x4751aa[_0x243ad1(0x1ad)]+=0x1,_0x53249a>_0x4751aa[_0x243ad1(0x21b)]&&(_0x4751aa[_0x243ad1(0x21b)]=_0x53249a,_0x4751aa[_0x243ad1(0x8f)]=_0x4de2bb||'');}[_0x474cb3(0x27d)](_0x5b55dd){const _0x1e6255=_0x474cb3;if(!this[_0x1e6255(0x121)]||this['_started'])return;this[_0x1e6255(0xfb)]=!![];if(_0x5b55dd)this[_0x1e6255(0x1cb)]=_0x5b55dd;this['_h']=_0x297799({'resolution':0xa}),this['_h']['enable'](),this[_0x1e6255(0x15a)]=setInterval(()=>this[_0x1e6255(0x1e5)](),_0x5c2c88);if(this[_0x1e6255(0x15a)]['unref'])this[_0x1e6255(0x15a)][_0x1e6255(0x277)]();}[_0x474cb3(0x167)](_0x5f0c7e){const _0xeebe87=_0x474cb3;if(!this[_0xeebe87(0x213)])this[_0xeebe87(0x213)]=new Set();this['_windowCbs']['add'](_0x5f0c7e);if(!this['_started'])this[_0xeebe87(0x2b2)]();}[_0x474cb3(0xe8)](_0x272c6a){const _0x5c80e2=_0x474cb3;this[_0x5c80e2(0x213)]?.[_0x5c80e2(0x231)](_0x272c6a);}[_0x474cb3(0x2b2)](){const _0xbeecc2=_0x474cb3;if(this[_0xbeecc2(0xac)])return;this['_admissionStarted']=!![];!this['_h']&&(this['_h']=_0x297799({'resolution':0xa}),this['_h']['enable']());const _0x123c73=_0x5c2c88;this[_0xbeecc2(0x243)]=setInterval(()=>{const _0x2831ee=_0xbeecc2,_0x263174=this['_h'];if(!_0x263174)return;const _0x3e68ad=_0x263174[_0x2831ee(0x97)](0x63)/0xf4240,_0x10b42c=_0x263174['max']/0xf4240,_0x4e9014=_0x263174[_0x2831ee(0x1b0)]/0xf4240;_0x263174[_0x2831ee(0x1b3)]();if(this['_windowCbs'])for(const _0x4cce78 of this[_0x2831ee(0x213)]){try{_0x4cce78({'p99Ms':_0x3e68ad,'maxMs':_0x10b42c,'meanMs':_0x4e9014,'reportMs':_0x123c73});}catch{}}},_0x123c73);if(this[_0xbeecc2(0x243)][_0xbeecc2(0x277)])this[_0xbeecc2(0x243)][_0xbeecc2(0x277)]();}[_0x474cb3(0x1e5)](){const _0x30661a=_0x474cb3,_0x367ecb=this['_h'],_0x5494b6=_0x367ecb['max']/0xf4240,_0x183a27=_0x367ecb[_0x30661a(0x97)](0x63)/0xf4240,_0xd3920c=_0x367ecb[_0x30661a(0x1b0)]/0xf4240;_0x367ecb['reset']();const _0x405906=[...this['_buckets']['entries']()][_0x30661a(0x9d)](([_0x59d2a5,_0x5ebee3])=>({'label':_0x59d2a5,..._0x5ebee3}))[_0x30661a(0xd8)]((_0x4e6ee7,_0x4d17a1)=>_0x4d17a1['ms']-_0x4e6ee7['ms'])[_0x30661a(0x115)](0x0,0x8);this[_0x30661a(0x215)][_0x30661a(0xd1)]();const _0x3b9e46=_0x405906[_0x30661a(0x28d)]((_0x3cb3d1,_0xe3e555)=>_0x3cb3d1+_0xe3e555['ms'],0x0),_0x42b777=_0x405906[_0x30661a(0x9d)](_0x192840=>_0x192840[_0x30661a(0x29e)]+'='+_0x192840['ms']['toFixed'](0x0)+_0x30661a(0x2aa)+_0x192840[_0x30661a(0x1ad)]+(_0x192840[_0x30661a(0x21b)]>0x5?_0x30661a(0x1c0)+_0x192840[_0x30661a(0x21b)][_0x30661a(0xc3)](0x0)+'ms'+(_0x192840[_0x30661a(0x8f)]?'\x20'+_0x192840[_0x30661a(0x8f)]:'')+')':''));(_0x175f81||_0x5494b6>=_0x514007)&&this[_0x30661a(0x1cb)](_0x30661a(0x1ab)+_0x5c2c88+_0x30661a(0x266)+_0x5494b6[_0x30661a(0xc3)](0x0)+_0x30661a(0x21d)+_0x183a27[_0x30661a(0xc3)](0x0)+_0x30661a(0x18f)+_0xd3920c['toFixed'](0x0)+'ms\x20busy='+_0x3b9e46['toFixed'](0x0)+'ms'+(_0x42b777[_0x30661a(0x27a)]?_0x30661a(0x10d)+_0x42b777[_0x30661a(0x173)]('\x20\x20'):''),{'feature':'loop-lag'});if(this[_0x30661a(0x213)])for(const _0x56ea03 of this[_0x30661a(0x213)]){try{_0x56ea03({'p99Ms':_0x183a27,'maxMs':_0x5494b6,'meanMs':_0xd3920c,'reportMs':_0x5c2c88});}catch{}}}[_0x474cb3(0xb3)](){const _0x4790e8=_0x474cb3;if(this[_0x4790e8(0x15a)])clearInterval(this[_0x4790e8(0x15a)]);if(this['_h'])this['_h'][_0x4790e8(0xe9)]();this[_0x4790e8(0x15a)]=null,this['_h']=null,this['_started']=![];}}const _0xa74127=new _0xce0e56();if(_0xa74127['enabled'])_0xa74127[_0x474cb3(0x27d)]();return okdbLoopMonitor={'LOOP':_0xa74127},okdbLoopMonitor;}var okdbWriter={'exports':{}},okdbDiag,hasRequiredOkdbDiag;function requireOkdbDiag(){if(hasRequiredOkdbDiag)return okdbDiag;hasRequiredOkdbDiag=0x1;const _0x5ba7bb=require$$0$1,_0x159931=require$$1;let _0x33b18e,_0x3d4bec,_0x318c13,_0x566315,_0x3e975c,_0xdab8a3,_0x1abad3,_0x5a783f=![];const _0x4ceef8=new Set();let _0x355b9c=null;const _0x452962=new Map();function _0x5b3559(){const _0x109691=_0x2868;if(_0x33b18e!==undefined)return _0x33b18e;_0x33b18e=process.env.OKDB_DIAG==='1';if(!_0x33b18e)return![];_0x3d4bec=process.env.OKDB_DIAG_STACK==='1',_0x566315=Math[_0x109691(0x130)](0x10,Number(process.env.OKDB_DIAG_RING)||0x100),_0x318c13=new Array(_0x566315),_0x3e975c=0x0,_0xdab8a3=0x0,_0x1abad3=process.env.OKDB_DIAG_DIR||null;if(_0x1abad3)try{_0x5ba7bb[_0x109691(0x141)](_0x1abad3,{'recursive':!![]});}catch{}return!![];}function _0x1ecfac(){return _0x33b18e===undefined?_0x5b3559():_0x33b18e;}function _0x1bfcac(_0x4b758b,_0x2d9036){const _0x4c1de0=_0x2868;if(_0x33b18e===undefined?!_0x5b3559():!_0x33b18e)return;let _0xdc30c8;if(_0x3d4bec){const _0x185cee=new Error()['stack']||'';_0xdc30c8=_0x185cee['split']('\x0a')[_0x4c1de0(0x115)](0x3)[_0x4c1de0(0x9d)](_0x153894=>_0x153894[_0x4c1de0(0x1c8)]())[_0x4c1de0(0x289)](Boolean)[_0x4c1de0(0x115)](0x0,0x8);}_0x318c13[_0x3e975c]={'seq':_0xdab8a3++,'t':Date['now'](),'env':_0x4b758b,'kind':_0x2d9036||'commit','stack':_0xdc30c8},_0x3e975c=(_0x3e975c+0x1)%_0x566315;}function _0x136e40(_0x19c4a7){const _0x7a65df=_0x2868,_0x528034=[];for(let _0x1f9f11=0x0;_0x1f9f11<_0x566315;_0x1f9f11++){const _0x57915d=_0x318c13[(_0x3e975c-0x1-_0x1f9f11+_0x566315*0x2)%_0x566315];if(!_0x57915d)continue;_0x528034[_0x7a65df(0x154)](_0x57915d);if(_0x528034['length']>=_0x19c4a7)break;}return _0x528034;}function _0x104995(_0x332308){const _0x12fc03=_0x2868;try{process[_0x12fc03(0x1d3)][_0x12fc03(0x29d)](_0x332308+'\x0a');}catch{}if(_0x1abad3)try{_0x5ba7bb[_0x12fc03(0x25f)](_0x159931['join'](_0x1abad3,'okdb-diag.'+process[_0x12fc03(0x2af)]+_0x12fc03(0x1a8)),_0x332308+'\x0a');}catch{}}function _0x5bc1f4(_0x32baad){const _0x32bed8=_0x2868,_0x2267b9=_0x136e40(_0x32baad);if(!_0x2267b9[_0x32bed8(0x27a)])return _0x32bed8(0x227);const _0xceb41a=Date[_0x32bed8(0x2b5)]();return _0x2267b9['map'](_0x566f74=>{const _0x5dc703=_0x32bed8,_0x1dca53='\x20\x20#'+_0x566f74[_0x5dc703(0xc9)]+'\x20-'+(_0xceb41a-_0x566f74['t'])+'ms\x20env='+_0x566f74['env']+'\x20'+_0x566f74[_0x5dc703(0x11a)];return _0x566f74[_0x5dc703(0x146)]&&_0x566f74[_0x5dc703(0x146)][_0x5dc703(0x27a)]?_0x1dca53+_0x5dc703(0x24d)+_0x566f74['stack']['join'](_0x5dc703(0x24d)):_0x1dca53;})[_0x32bed8(0x173)]('\x0a');}function _0x32f466(_0xb933a0,_0x4f84e2){const _0x460d41=_0x2868,_0x560133=_0x460d41(0x29c)+_0xb933a0+_0x460d41(0x176)+new Date()[_0x460d41(0x24f)]()+'\x20pid='+process[_0x460d41(0x2af)]+'\x20===',_0x25c36c=[_0x560133,_0x460d41(0xc2)+(_0x4f84e2&&_0x4f84e2[_0x460d41(0x146)]?_0x4f84e2['stack']['split']('\x0a')[0x0]:_0x4f84e2),_0x460d41(0x1b1)+(_0x3d4bec?'':_0x460d41(0xae))+':',_0x5bc1f4(0x18),_0x38b95d(),'='[_0x460d41(0x157)](_0x560133['length']-0x1)];_0x104995(_0x25c36c[_0x460d41(0x173)]('\x0a'));}function _0x56f5b1(_0x407231){const _0x39667d=_0x2868;if(!_0x1ecfac())return;const _0x540704=String(_0x407231&&_0x407231[_0x39667d(0x10b)]||_0x407231||''),_0x236ac5=/already closed|environment is already|invalid read txn|reset an invalid/i[_0x39667d(0x12b)](_0x540704);_0x32f466(_0x236ac5?_0x39667d(0x2ad):_0x39667d(0xcc),_0x407231);if(process.env.OKDB_DIAG_SURVIVE==='1'&&_0x236ac5)return;try{console['error'](_0x407231&&_0x407231['stack']?_0x407231[_0x39667d(0x146)]:_0x407231);}catch{}process[_0x39667d(0x24c)](0x1);}function _0x5418d7(_0x59274c){const _0x22d482=_0x2868;if(!_0x1ecfac())return;const _0x4aa15c=String(_0x59274c&&_0x59274c[_0x22d482(0x10b)]||_0x59274c||'');/already closed|environment is already|invalid read txn|reset an invalid/i[_0x22d482(0x12b)](_0x4aa15c)&&_0x32f466(_0x22d482(0x253),_0x59274c);}function _0x38b95d(){const _0x460634=_0x2868,_0x753476=['drain\x20state\x20(envs\x20with\x20a\x20non-zero\x20drain):'];let _0x3dc0b1=![];for(const _0x5cf482 of _0x4ceef8){const _0x2ba693=_0x5cf482&&_0x5cf482['_envs'];if(!_0x2ba693)continue;for(const [_0x44e0ca,_0x2ed506]of _0x2ba693){const _0x5c7566=_0x2ed506&&_0x2ed506[_0x460634(0x1be)]&&_0x2ed506[_0x460634(0x1be)][_0x460634(0x206)];if(!_0x5c7566)continue;let _0x190a88,_0x1e1466;try{_0x190a88=Atomics['load'](_0x5c7566,0x0),_0x1e1466=Atomics[_0x460634(0x125)](_0x5c7566,0x1);}catch{continue;}if(_0x190a88===0x0)continue;_0x3dc0b1=!![];const _0x1dc521=_0x190a88>0x0?_0x460634(0x1cc):_0x460634(0x12d),_0x1d1eb1=Date[_0x460634(0x2b5)]()-Math[_0x460634(0x205)](_0x190a88)*0x3e8,_0x27b599=((()=>{const _0x260054=_0x460634;try{return _0x2ed506[_0x260054(0x9e)]&&_0x2ed506[_0x260054(0x9e)][_0x260054(0x2a2)]?_0x2ed506[_0x260054(0x9e)][_0x260054(0x2a2)]():null;}catch{return null;}})());_0x753476[_0x460634(0x154)](_0x460634(0xa7)+_0x44e0ca+'\x20phase='+_0x1dc521+_0x460634(0x274)+_0x1d1eb1+_0x460634(0x151)+_0x1e1466+(_0x27b599?_0x460634(0xe7)+_0x27b599['depth']+_0x460634(0x279)+_0x27b599[_0x460634(0x260)]+_0x460634(0x22e)+_0x27b599[_0x460634(0x8a)]+'}':''));}}if(!_0x3dc0b1)_0x753476[_0x460634(0x154)]('\x20\x20(no\x20env\x20draining)');return _0x753476['join']('\x0a');}function _0x50ae9d(){const _0x1c0d71=_0x2868;if(!_0x1ecfac())return;const _0x120ed8=Math[_0x1c0d71(0x130)](0x3e8,Number(process.env.OKDB_DIAG_STALL_MS)||0x1f40),_0x12dd7a=Date[_0x1c0d71(0x2b5)]();for(const _0x48e270 of _0x4ceef8){const _0x3b2c4c=_0x48e270&&_0x48e270['_envs'];if(!_0x3b2c4c)continue;for(const [_0x10b8cf,_0x72a6ed]of _0x3b2c4c){const _0x1e49e8=_0x72a6ed&&_0x72a6ed['_coordinator']&&_0x72a6ed['_coordinator'][_0x1c0d71(0x206)];if(!_0x1e49e8)continue;let _0x42da6c;try{_0x42da6c=Atomics[_0x1c0d71(0x125)](_0x1e49e8,0x0);}catch{continue;}const _0x36226a=_0x48e270['path']+'|'+_0x10b8cf;if(_0x42da6c<=0x0){_0x452962[_0x1c0d71(0x231)](_0x36226a);continue;}const _0x150a65=_0x12dd7a-_0x42da6c*0x3e8,_0x3ca733=_0x452962[_0x1c0d71(0xd6)](_0x36226a);if(_0x150a65<_0x120ed8)continue;if(_0x3ca733&&_0x12dd7a-_0x3ca733['dumpedAt']<_0x120ed8)continue;_0x452962['set'](_0x36226a,{'firstTs':_0x3ca733?_0x3ca733[_0x1c0d71(0x137)]:_0x42da6c,'dumpedAt':_0x12dd7a});const _0x4ab3e1=_0x1c0d71(0x2bd)+_0x150a65+'ms\x20on\x20env='+_0x10b8cf+_0x1c0d71(0x176)+new Date()[_0x1c0d71(0x24f)]()+_0x1c0d71(0x1eb)+process[_0x1c0d71(0x2af)]+_0x1c0d71(0x219);_0x104995([_0x4ab3e1,_0x38b95d(),'='[_0x1c0d71(0x157)](_0x4ab3e1[_0x1c0d71(0x27a)]-0x1)]['join']('\x0a'));}}}function _0x380384(){const _0xd97928=_0x2868;if(!_0x1ecfac()||_0x5a783f)return;_0x5a783f=!![],process['prependListener'](_0xd97928(0xcc),_0x56f5b1),process[_0xd97928(0x26c)](_0xd97928(0x290),_0x5418d7);const _0x52f826=Math['max'](0xfa,Number(process.env.OKDB_DIAG_WATCH_MS)||0x7d0);_0x355b9c=setInterval(_0x50ae9d,_0x52f826);if(_0x355b9c['unref'])_0x355b9c[_0xd97928(0x277)]();}function _0x1d5218(_0x12bf12){const _0x506e85=_0x2868;if(!_0x1ecfac()||!_0x12bf12)return;_0x4ceef8[_0x506e85(0x11f)](_0x12bf12),_0x380384();}function _0x33757e(_0x5bfa0e){const _0x482a79=_0x2868;_0x4ceef8[_0x482a79(0x231)](_0x5bfa0e);}function _0x17ef6a(){const _0x17ad44=_0x2868;if(!_0x1ecfac())return{'enabled':![],'hint':_0x17ad44(0x299)};return{'enabled':!![],'stackCapture':!!_0x3d4bec,'recentWrites':_0x136e40(0x10),'drain':_0x38b95d()};}return okdbDiag={'isEnabled':_0x1ecfac,'recordWrite':_0x1bfcac,'installDiag':_0x380384,'registerOkdb':_0x1d5218,'unregisterOkdb':_0x33757e,'snapshot':_0x17ef6a},okdbDiag;}var hasRequiredOkdbWriter;function requireOkdbWriter(){const _0x47fe87=_0x4a52bb;if(hasRequiredOkdbWriter)return okdbWriter[_0x47fe87(0x222)];hasRequiredOkdbWriter=0x1;const {performance:_0x510963}=require$$0$2,_0x477c85=requireOkdbDiag(),_0x3da7b2=process.env.OKDB_COMMIT_MODE==='sync';class _0x17f8f0{constructor(_0x5a2fbf){const _0x3b3263=_0x47fe87;this[_0x3b3263(0x1c2)]=_0x5a2fbf,this[_0x3b3263(0x207)]=new Set(),this['_enqueuedAt']=new Map(),this[_0x3b3263(0x10f)]=0x0,this['_durs']=[],this[_0x3b3263(0x281)]=[],this[_0x3b3263(0x158)]=Math['max'](0x0,Number(process.env.OKDB_WRITER_HIGH_WATER??0x400)),this[_0x3b3263(0x14f)]=0x0,this['_bpWaiters']=[],this[_0x3b3263(0x132)]=0x0,this[_0x3b3263(0x131)]=null,this[_0x3b3263(0x28a)]=0x0,this['_nestedTotal']=0x0,this[_0x3b3263(0x10e)]=![];}async['transaction'](_0x4b6a10,_0x120ba2){const _0x243228=_0x47fe87;if(_0x477c85[_0x243228(0xb5)]())_0x477c85['recordWrite'](this[_0x243228(0x1c2)]?.[_0x243228(0x93)],_0x120ba2);if(this[_0x243228(0x129)]){const _0x45bbb1=new Error(_0x243228(0x198));_0x45bbb1[_0x243228(0x183)]=_0x243228(0x177);throw _0x45bbb1;}if(this['_highWater']>0x0){let _0x44cd79=![];while(this[_0x243228(0x14f)]>=this[_0x243228(0x158)]&&!this[_0x243228(0x129)]){!_0x44cd79&&(_0x44cd79=!![],this[_0x243228(0x132)]++),await new Promise(_0x101c25=>this['_bpWaiters'][_0x243228(0x154)](_0x101c25));}if(this['_closed']){const _0x1558a9=new Error(_0x243228(0x198));_0x1558a9[_0x243228(0x183)]=_0x243228(0x177);throw _0x1558a9;}}this[_0x243228(0x14f)]++;const _0x8d71f6=this['env'][_0x243228(0x1be)];for(;;){while(this['_held'])await this['_held'];if(_0x8d71f6)await _0x8d71f6[_0x243228(0x142)]();if(!this[_0x243228(0x131)])break;if(_0x8d71f6)_0x8d71f6['afterWrite']();}if(this[_0x243228(0x129)]){if(_0x8d71f6)_0x8d71f6['afterWrite']();this['_outstanding']--;if(this[_0x243228(0x161)][_0x243228(0x27a)]&&this['_outstanding']<this['_highWater'])this[_0x243228(0x161)]['shift']()();const _0x339572=new Error(_0x243228(0x198));_0x339572[_0x243228(0x183)]='ENV_CLOSING_RETRY';throw _0x339572;}const _0x564573=_0x510963[_0x243228(0x2b5)]();if(_0x3da7b2)try{const _0x2e13c3=this[_0x243228(0x1c2)]['db'][_0x243228(0x235)](_0x4b6a10);this[_0x243228(0x10f)]++;if(this[_0x243228(0x14b)][_0x243228(0x154)](_0x510963[_0x243228(0x2b5)]()-_0x564573)>0x100)this[_0x243228(0x14b)]['shift']();if(this[_0x243228(0x281)][_0x243228(0x154)](_0x510963[_0x243228(0x2b5)]())>0x800)this[_0x243228(0x281)]['shift']();return _0x2e13c3;}finally{this[_0x243228(0x14f)]--;if(this[_0x243228(0x161)][_0x243228(0x27a)]&&this[_0x243228(0x14f)]<this[_0x243228(0x158)])this[_0x243228(0x161)][_0x243228(0x19f)]()();if(_0x8d71f6)_0x8d71f6['afterWrite']();}let _0x692654=null;const _0x7c51ab=()=>{const _0x190db3=_0x243228,_0x442465=_0x4b6a10();if(_0x442465&&typeof _0x442465[_0x190db3(0xf2)]===_0x190db3(0x25e)&&!_0x692654){this[_0x190db3(0x28a)]++;let _0x2aa8c0;const _0x2b7416=new Promise(_0x253b50=>_0x2aa8c0=_0x253b50);this[_0x190db3(0x131)]=_0x2b7416,_0x692654=()=>{const _0x275f5a=_0x190db3;if(this[_0x275f5a(0x131)]===_0x2b7416)this[_0x275f5a(0x131)]=null;_0x2aa8c0();};}return _0x442465;};let _0x2b9605;try{_0x2b9605=this[_0x243228(0x1c2)]['db'][_0x243228(0x25c)](_0x7c51ab);}catch(_0x52d8b7){_0x2b9605=Promise[_0x243228(0xaf)](_0x52d8b7);}(!_0x2b9605||typeof _0x2b9605[_0x243228(0xf2)]!==_0x243228(0x25e))&&(this[_0x243228(0x1f1)]++,!this[_0x243228(0x10e)]&&(this['_nestedWarned']=!![],console[_0x243228(0x9a)](_0x243228(0x2c1)+(this[_0x243228(0x1c2)]?.[_0x243228(0x93)]??'?')+_0x243228(0x250))),_0x2b9605=Promise['resolve'](_0x2b9605));const _0x8a1c31=()=>{if(_0x692654)_0x692654();};_0x2b9605[_0x243228(0xf2)](_0x8a1c31,_0x8a1c31),this[_0x243228(0x207)][_0x243228(0x11f)](_0x2b9605),this['_enqueuedAt']['set'](_0x2b9605,_0x564573);const _0x2ecd04=()=>{const _0x5e1313=_0x243228;this[_0x5e1313(0x207)]['delete'](_0x2b9605),this[_0x5e1313(0x9b)]['delete'](_0x2b9605),this[_0x5e1313(0x10f)]++,this[_0x5e1313(0x14f)]--;this['_bpWaiters']['length']&&this[_0x5e1313(0x14f)]<this[_0x5e1313(0x158)]&&this[_0x5e1313(0x161)][_0x5e1313(0x19f)]()();if(this[_0x5e1313(0x14b)][_0x5e1313(0x154)](_0x510963[_0x5e1313(0x2b5)]()-_0x564573)>0x100)this['_durs'][_0x5e1313(0x19f)]();if(this['_done'][_0x5e1313(0x154)](_0x510963[_0x5e1313(0x2b5)]())>0x800)this[_0x5e1313(0x281)][_0x5e1313(0x19f)]();};_0x2b9605[_0x243228(0xf2)](_0x2ecd04,_0x2ecd04);try{return await _0x2b9605;}finally{if(_0x8d71f6)_0x8d71f6[_0x243228(0x118)]();}}['status'](){const _0x51ebee=_0x47fe87,_0x29808d=_0x510963['now']();let _0x2b2232=0x0;for(const _0xf3b3dd of this[_0x51ebee(0x9b)]['values']()){const _0x2c67a5=_0x29808d-_0xf3b3dd;if(_0x2c67a5>_0x2b2232)_0x2b2232=_0x2c67a5;}let _0xb93d19=0x0;for(let _0x4ee3a0=this['_done'][_0x51ebee(0x27a)]-0x1;_0x4ee3a0>=0x0;_0x4ee3a0--){if(_0x29808d-this[_0x51ebee(0x281)][_0x4ee3a0]>0x3e8)break;_0xb93d19++;}let _0x4d4677=0x0;if(this[_0x51ebee(0x14b)][_0x51ebee(0x27a)]){const _0x14fc1a=[...this[_0x51ebee(0x14b)]][_0x51ebee(0xd8)]((_0x35fd61,_0x3f60e7)=>_0x35fd61-_0x3f60e7);_0x4d4677=_0x14fc1a[Math[_0x51ebee(0xa0)](_0x14fc1a[_0x51ebee(0x27a)]-0x1,Math['floor'](_0x14fc1a[_0x51ebee(0x27a)]*0.99))];}return{'depth':this['_inflight'][_0x51ebee(0x20c)],'oldestPendingMs':Math[_0x51ebee(0x25b)](_0x2b2232),'committed':this[_0x51ebee(0x10f)],'commitsPerSec':_0xb93d19,'commitP99Ms':Math[_0x51ebee(0x25b)](_0x4d4677),'parkedNow':this[_0x51ebee(0x161)][_0x51ebee(0x27a)],'parkedTotal':this[_0x51ebee(0x132)],'highWater':this['_highWater']};}[_0x47fe87(0x134)](){const _0xa3b4db=_0x47fe87,_0x3efe91=_0x510963[_0xa3b4db(0x2b5)]();return[...this[_0xa3b4db(0x9b)][_0xa3b4db(0x244)]()][_0xa3b4db(0x9d)](_0x2099aa=>Math[_0xa3b4db(0x25b)](_0x3efe91-_0x2099aa))['sort']((_0x22c658,_0x53971a)=>_0x53971a-_0x22c658);}[_0x47fe87(0x1d2)](){const _0x2d498f=_0x47fe87;this[_0x2d498f(0x129)]=!![];for(const _0x4a9d20 of this[_0x2d498f(0x161)][_0x2d498f(0x1a6)](0x0))_0x4a9d20();}async[_0x47fe87(0x1ff)](){const _0x375d9d=_0x47fe87;let _0x11b62a=0x0;while(this['_inflight'][_0x375d9d(0x20c)]&&_0x11b62a++<0x3e8){await Promise[_0x375d9d(0x16c)]([...this[_0x375d9d(0x207)]]);}}async['put'](_0xbe0b5b,_0x54b385,_0x44f71a,_0x54da9a){const _0x18a8a5=_0x47fe87;return this['transaction'](()=>{const _0x2f273b=_0x2868;if(_0x54da9a===undefined)_0xbe0b5b[_0x2f273b(0x12c)](_0x54b385,_0x44f71a);else _0xbe0b5b[_0x2f273b(0x12c)](_0x54b385,_0x44f71a,_0x54da9a);},_0x18a8a5(0x22b));}async[_0x47fe87(0x2c0)](_0x2f2885,_0xff7093){const _0x2ba146=_0x47fe87;return this['transaction'](()=>_0x2f2885[_0x2ba146(0x179)](_0xff7093),_0x2ba146(0xcf));}}async function _0x1d274e(_0x10e401,_0x51a7d9){const _0x402767=_0x47fe87;if(_0x51a7d9==null)_0x51a7d9=Math[_0x402767(0x130)](0x3e8,Number(process.env.OKDB_FLUSH_BEFORE_CLOSE_MS)||0x1d4c0);try{const _0x3ed77f=_0x10e401?.[_0x402767(0x1f2)];if(!_0x3ed77f||typeof _0x3ed77f[_0x402767(0xf2)]!==_0x402767(0x25e))return;await Promise[_0x402767(0x199)]([Promise[_0x402767(0x20b)](_0x3ed77f)[_0x402767(0x1d7)](()=>{}),new Promise(_0x598d6f=>{const _0x59453e=setTimeout(_0x598d6f,_0x51a7d9);if(_0x59453e['unref'])_0x59453e['unref']();})]);}catch{}}function _0x442bdf(_0x7e0818){const _0x5149b4=_0x47fe87;if(_0x3da7b2)return Promise['resolve']();const _0x10c2a1=_0x7e0818?.[_0x5149b4(0x15c)];return _0x10c2a1&&typeof _0x10c2a1[_0x5149b4(0xf2)]==='function'?_0x10c2a1:Promise[_0x5149b4(0x20b)]();}return okdbWriter[_0x47fe87(0x222)]=_0x17f8f0,okdbWriter[_0x47fe87(0x222)][_0x47fe87(0x1fa)]=_0x1d274e,okdbWriter['exports'][_0x47fe87(0x15c)]=_0x442bdf,okdbWriter['exports'][_0x47fe87(0x1dc)]=_0x3da7b2,okdbWriter[_0x47fe87(0x222)];}var okdbLock,hasRequiredOkdbLock;function requireOkdbLock(){const _0x11dce2=_0x4a52bb;if(hasRequiredOkdbLock)return okdbLock;hasRequiredOkdbLock=0x1;const _0x29afdb=require$$0$3,{SYNC_COMMITS:_0x3927ec}=requireOkdbWriter(),_0x2f4396=_0x11dce2(0x25d);class _0x2b2002{constructor(_0x2d34a0,_0x28b31b,_0x5cba3d){const _0x339c5f=_0x11dce2;this['_lock']=_0x2d34a0,this['_key']=_0x28b31b,this[_0x339c5f(0x293)]=_0x5cba3d,this[_0x339c5f(0x282)]=![],this[_0x339c5f(0x186)]=null,this[_0x339c5f(0x194)]=null;}[_0x11dce2(0x1ce)](){const _0x122284=_0x11dce2;if(this['_released'])return![];try{const _0x27300d=this['_lock'][_0x122284(0x16f)]()[_0x122284(0xd6)](this[_0x122284(0x1b8)]);if(!_0x27300d||_0x27300d['acquiredAt']!==this[_0x122284(0x293)])return![];const _0x1fdcea=_0x27300d[_0x122284(0x272)]??_0x27300d['acquiredAt'];if(_0x1fdcea+_0x27300d[_0x122284(0xd0)]<Date[_0x122284(0x2b5)]())return![];return!![];}catch{return!this[_0x122284(0x282)];}}[_0x11dce2(0x124)](){const _0x1103e7=_0x11dce2;if(this[_0x1103e7(0x282)])return null;try{return this[_0x1103e7(0x178)][_0x1103e7(0x16f)]()[_0x1103e7(0xd6)](this['_key'])??null;}catch{return null;}}async[_0x11dce2(0x162)](_0x18682e){const _0x4859ef=_0x11dce2;if(this[_0x4859ef(0x282)])return;try{const _0x2989c8=this[_0x4859ef(0x178)]['_db']()[_0x4859ef(0xd6)](this['_key']);if(!_0x2989c8||_0x2989c8[_0x4859ef(0x22d)]!==this[_0x4859ef(0x293)])return;if(_0x3927ec)this[_0x4859ef(0x178)][_0x4859ef(0x16f)]()[_0x4859ef(0x12c)](this['_key'],{..._0x2989c8,'ttlMs':_0x2989c8['ttlMs']+_0x18682e});else await this['_lock'][_0x4859ef(0x16f)]()[_0x4859ef(0x2ab)](this[_0x4859ef(0x1b8)],{..._0x2989c8,'ttlMs':_0x2989c8['ttlMs']+_0x18682e});}catch{}}async['release'](){const _0x18f0c4=_0x11dce2;if(this['_released'])return;if(this[_0x18f0c4(0x194)])try{await this['_heartbeatInFlight'];}catch{}clearInterval(this['_heartbeatTimer']),this[_0x18f0c4(0x186)]=null,this['_released']=!![];try{const _0x3726f6=this[_0x18f0c4(0x178)][_0x18f0c4(0x16f)]()[_0x18f0c4(0xd6)](this[_0x18f0c4(0x1b8)]);if(_0x3726f6&&_0x3726f6['acquiredAt']===this[_0x18f0c4(0x293)]){if(_0x3927ec)this[_0x18f0c4(0x178)][_0x18f0c4(0x16f)]()[_0x18f0c4(0x179)](this[_0x18f0c4(0x1b8)]);else await this[_0x18f0c4(0x178)][_0x18f0c4(0x16f)]()['remove'](this['_key']);}}catch{}}[_0x11dce2(0x145)](_0x3f911b,_0x290275){const _0x3ad991=_0x11dce2,_0x16b1b9=_0x290275??Math[_0x3ad991(0x217)](_0x3f911b/0x3);this[_0x3ad991(0x186)]=setInterval(()=>{const _0x22c940=_0x3ad991;if(this[_0x22c940(0x282)])return;this[_0x22c940(0x194)]=((async()=>{const _0x2685cc=_0x22c940;try{const _0x3649e=this[_0x2685cc(0x178)][_0x2685cc(0x16f)]()[_0x2685cc(0xd6)](this[_0x2685cc(0x1b8)]);if(!_0x3649e||_0x3649e[_0x2685cc(0x22d)]!==this['_acquiredAt']){this[_0x2685cc(0x282)]=!![],clearInterval(this[_0x2685cc(0x186)]),this[_0x2685cc(0x186)]=null;return;}if(_0x3927ec)this[_0x2685cc(0x178)][_0x2685cc(0x16f)]()[_0x2685cc(0x12c)](this['_key'],{..._0x3649e,'updatedAt':Date[_0x2685cc(0x2b5)]()});else await this[_0x2685cc(0x178)][_0x2685cc(0x16f)]()[_0x2685cc(0x2ab)](this[_0x2685cc(0x1b8)],{..._0x3649e,'updatedAt':Date['now']()});}catch{}this[_0x2685cc(0x194)]=null;})());},_0x16b1b9);if(this[_0x3ad991(0x186)][_0x3ad991(0x277)])this[_0x3ad991(0x186)][_0x3ad991(0x277)]();}}class _0x566ea9{constructor(_0x3d3703,{namespace:_0x164c09,ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}={}){const _0x21b45c=_0x11dce2;this[_0x21b45c(0xda)]=_0x3d3703,this[_0x21b45c(0x1a9)]=_0x164c09,this[_0x21b45c(0xd0)]=ttlMs,this[_0x21b45c(0x1ee)]=heartbeatMs,this['_lockDb']=null;}[_0x11dce2(0x16f)](){const _0x4a51ee=_0x11dce2;return!this[_0x4a51ee(0xa8)]&&(this[_0x4a51ee(0xa8)]=this[_0x4a51ee(0xda)][_0x4a51ee(0x208)](_0x2f4396,{'dupSort':![]})),this['_lockDb'];}['_wantDb'](){const _0xfc4810=_0x11dce2;return!this[_0xfc4810(0x1dd)]&&(this['_wantDbHandle']=this[_0xfc4810(0xda)][_0xfc4810(0x208)](_0x2f4396+_0xfc4810(0xd7),{'dupSort':![]})),this['_wantDbHandle'];}[_0x11dce2(0x1b8)](_0x2592ed){const _0x25493b=_0x11dce2;return this[_0x25493b(0x1a9)]+':'+_0x2592ed;}[_0x11dce2(0x1af)](_0x5527a7){const _0x299430=_0x11dce2;try{_0x3927ec?this[_0x299430(0x111)]()[_0x299430(0x12c)](this['_key'](_0x5527a7),Date['now']()):this[_0x299430(0x111)]()[_0x299430(0x2ab)](this[_0x299430(0x1b8)](_0x5527a7),Date['now']())?.['catch']?.(()=>{});}catch{}}[_0x11dce2(0x245)](_0x2d1a03,_0x1af7f6=0x3e8){const _0x33106c=_0x11dce2;try{const _0x313d1a=this['_wantDb']()['get'](this[_0x33106c(0x1b8)](_0x2d1a03));return typeof _0x313d1a===_0x33106c(0x138)&&Date[_0x33106c(0x2b5)]()-_0x313d1a<_0x1af7f6;}catch{return![];}}[_0x11dce2(0x13c)](_0x45b100){const _0x5eceec=_0x11dce2,_0x3744ef=_0x45b100[_0x5eceec(0x272)]??_0x45b100[_0x5eceec(0x22d)];return _0x3744ef+_0x45b100[_0x5eceec(0xd0)]<Date[_0x5eceec(0x2b5)]();}static[_0x11dce2(0x2ba)](_0x4c9314){const _0x3f069e=_0x11dce2,_0x4e5bea=_0x4c9314?.['holder'];if(!_0x4e5bea||typeof _0x4e5bea[_0x3f069e(0x2af)]!==_0x3f069e(0x138))return![];if(_0x4e5bea['hostname']!==_0x29afdb[_0x3f069e(0x166)]())return![];if(_0x4e5bea['pid']===process[_0x3f069e(0x2af)])return![];try{return process[_0x3f069e(0x295)](_0x4e5bea[_0x3f069e(0x2af)],0x0),![];}catch(_0x486b97){return _0x486b97[_0x3f069e(0x183)]===_0x3f069e(0x27c);}}async[_0x11dce2(0xc8)](_0x44ceda,_0x2a92d4={},_0x2396e9={}){const _0x329143=_0x11dce2,_0x2404a3=this['_key'](_0x44ceda),_0x3bca40=_0x2396e9[_0x329143(0xd0)]??this[_0x329143(0xd0)],_0x2b4e1b=Date[_0x329143(0x2b5)](),_0x3539f9={'holder':{'pid':process['pid'],'hostname':_0x29afdb[_0x329143(0x166)](),..._0x2a92d4},'acquiredAt':_0x2b4e1b,'updatedAt':_0x2b4e1b,'ttlMs':_0x3bca40};let _0x34cbf9=![],_0x2d2205=null;try{const _0xf31eeb=()=>{const _0x1f2b18=_0x329143,_0x102aa3=this[_0x1f2b18(0x16f)]()[_0x1f2b18(0xd6)](_0x2404a3);if(_0x102aa3&&!this['_isStale'](_0x102aa3)&&!_0x566ea9[_0x1f2b18(0x2ba)](_0x102aa3)){const _0x9cca9c=_0x2a92d4['processorId']!=null&&_0x102aa3[_0x1f2b18(0x124)]['pid']===process[_0x1f2b18(0x2af)]&&_0x102aa3[_0x1f2b18(0x124)][_0x1f2b18(0x2ae)]===_0x2a92d4[_0x1f2b18(0x2ae)];if(!_0x9cca9c){_0x34cbf9=![],_0x2d2205=_0x102aa3;return;}_0x3539f9[_0x1f2b18(0x22d)]<=_0x102aa3[_0x1f2b18(0x22d)]&&(_0x3539f9[_0x1f2b18(0x22d)]=_0x102aa3[_0x1f2b18(0x22d)]+0x1,_0x3539f9[_0x1f2b18(0x272)]=_0x3539f9['acquiredAt']);}this['_db']()[_0x1f2b18(0x2ab)](_0x2404a3,_0x3539f9),_0x34cbf9=!![],_0x2d2205=_0x3539f9;};if(_0x3927ec)this[_0x329143(0x16f)]()[_0x329143(0x235)](_0xf31eeb);else await this['_db']()[_0x329143(0x25c)](_0xf31eeb);}catch{return{'acquired':![],'handle':null,'current':null};}if(!_0x34cbf9)return{'acquired':![],'handle':null,'current':_0x2d2205};const _0x20c056=new _0x2b2002(this,_0x2404a3,_0x3539f9[_0x329143(0x22d)]);return _0x20c056['_startHeartbeat'](_0x3bca40,this[_0x329143(0x1ee)]),{'acquired':!![],'handle':_0x20c056,'current':_0x2d2205};}['inspect'](_0x5b44cd){const _0x478dca=_0x11dce2;try{return this[_0x478dca(0x16f)]()[_0x478dca(0xd6)](this[_0x478dca(0x1b8)](_0x5b44cd))??null;}catch{return null;}}['list'](){const _0x5c8925=_0x11dce2,_0x2130eb=this[_0x5c8925(0x1a9)]+':',_0x269dce=[];try{for(const {key:_0x36eec1,value:_0xd077bf}of this[_0x5c8925(0x16f)]()[_0x5c8925(0x218)]({'start':_0x2130eb,'end':_0x2130eb+'\xff'})){typeof _0x36eec1===_0x5c8925(0x190)&&_0x36eec1[_0x5c8925(0x96)](_0x2130eb)&&_0x269dce[_0x5c8925(0x154)]({'id':_0x36eec1[_0x5c8925(0x115)](_0x2130eb['length']),'entry':_0xd077bf});}}catch{}return _0x269dce;}static[_0x11dce2(0xb8)](_0x3ba012){const _0x476b8a=_0x11dce2,_0x15abe9=[];try{const _0x29281e=_0x3ba012['openDB'](_0x2f4396,{'dupSort':![]});for(const {key:_0x239c5d,value:_0x385854}of _0x29281e['getRange']({})){if(typeof _0x239c5d!==_0x476b8a(0x190))continue;const _0x6608dd=_0x239c5d[_0x476b8a(0x288)](':');if(_0x6608dd<0x1)continue;_0x15abe9[_0x476b8a(0x154)]({'namespace':_0x239c5d[_0x476b8a(0x115)](0x0,_0x6608dd),'id':_0x239c5d[_0x476b8a(0x115)](_0x6608dd+0x1),'entry':_0x385854});}}catch{}return _0x15abe9;}}return okdbLock={'OKDBLock':_0x566ea9},okdbLock;}var version=_0x4a52bb(0xfa),require$$6={'version':version},okdbProcessRegistry,hasRequiredOkdbProcessRegistry;function requireOkdbProcessRegistry(){const _0x52d956=_0x4a52bb;if(hasRequiredOkdbProcessRegistry)return okdbProcessRegistry;hasRequiredOkdbProcessRegistry=0x1;const _0x106a90=require$$0$3,_0x447b48=require$$1$1,_0x2e0b00=require$$2,{LOOP:_0xaf3088}=requireOkdbLoopMonitor(),{OKDBLock:_0x5211ec}=requireOkdbLock(),{SYNC_COMMITS:_0x2adc6e}=requireOkdbWriter(),_0x2c88c7=_0x52d956(0x2bb),_0x4b36e9=_0x52d956(0x2a0),_0x9b7ef8=_0x52d956(0x2b4),_0x4c5275=_0x52d956(0x155),_0x940dc=(_0x4f77df,_0x1aac1c)=>_0x4f77df+':'+_0x1aac1c,_0x40b874=(_0x2e0158,_0x560f71)=>_0x2e0158+'::'+_0x560f71,_0x37d814=(_0xdf8227,_0x3e2eba)=>_0xdf8227+'/'+_0x3e2eba,_0x58618a=(_0x368589,_0x4241c1)=>_0x368589+'#'+_0x4241c1,_0x36e252=_0x149329=>{const _0x46350b=_0x52d956;if(_0x149329?.['processKey'])return _0x149329[_0x46350b(0x13f)];const _0x26fd6c=_0x149329?.[_0x46350b(0xeb)];return typeof _0x26fd6c==='string'&&_0x26fd6c[_0x46350b(0xf1)]('#')?_0x26fd6c['slice'](0x0,_0x26fd6c[_0x46350b(0x288)]('#')):_0x26fd6c;},_0x13b060=Number(process.env.OKDB_WORKERS_HEARTBEAT_MS)||0x2710,_0x234f26=Number(process.env.OKDB_WORKERS_PUBLISH_MS)||0x3e8,_0x46b15d=_0x13b060*0x3,_0x2d70ec=Number(process.env.OKDB_PID_REUSE_HORIZON_MS)||Math[_0x52d956(0x130)](0x927c0,_0x46b15d*0x14),_0x5b10b2=[_0x52d956(0x1d4),_0x52d956(0x236),'processor:retry',_0x52d956(0x286),_0x52d956(0x13a),'processor:resumed'];let _0x291abf=null;function _0x634e19(){const _0x12c8cc=_0x52d956;if(_0x291abf==null)_0x291abf=Math['round']((Date[_0x12c8cc(0x2b5)]()-process[_0x12c8cc(0x114)]()*0x3e8)/0x3e8)*0x3e8;return _0x291abf;}function _0x58666c(_0xe34826){const _0x1d93cc=_0x52d956;if(process.env.OKDB_PROCESS_KILL===_0x1d93cc(0x15e))return![];if(_0xe34826?.[_0x1d93cc(0x203)]?.[_0x1d93cc(0x278)]&&typeof _0xe34826[_0x1d93cc(0x203)][_0x1d93cc(0x278)]===_0x1d93cc(0x283)&&_0xe34826[_0x1d93cc(0x203)][_0x1d93cc(0x278)][_0x1d93cc(0x295)]===![])return![];return!![];}function _0x19b4b7(_0x1a47b2,_0xbd4377){const _0x3e1582=_0x52d956,_0x1824b0=!!_0xbd4377?.[_0x3e1582(0x1a0)];switch(_0x1a47b2){case _0x3e1582(0x1a1):return{'controllable':_0x1824b0,'decommissionable':![],'killable':!![],'killConfirm':_0x3e1582(0x159)};case _0x3e1582(0x26e):case'standalone':return{'controllable':_0x1824b0,'decommissionable':![],'killable':!![],'killConfirm':_0x3e1582(0x15f)};case _0x3e1582(0x22c):return{'controllable':![],'decommissionable':![],'killable':![]};case'http-server':case _0x3e1582(0x287):case'fn-runner':case'worker':return{'controllable':![],'decommissionable':!![],'killable':!![],'killConfirm':_0x3e1582(0x271)};default:return{'controllable':![],'decommissionable':![],'killable':![]};}}class _0x4c759e{constructor(_0x41582c){const _0xf2ec91=_0x52d956;this[_0xf2ec91(0x18a)]=_0x41582c,this[_0xf2ec91(0x28c)]=null,this[_0xf2ec91(0x185)]=null,this[_0xf2ec91(0x23f)]=new Map(),this[_0xf2ec91(0x20f)]=null,this[_0xf2ec91(0x9f)]=![],this[_0xf2ec91(0x1cd)]=![],this[_0xf2ec91(0x17f)]=_0x634e19(),this[_0xf2ec91(0x1b9)]=_0x940dc(process['pid'],this[_0xf2ec91(0x17f)]),this[_0xf2ec91(0x92)]=_0x2e0b00[_0xf2ec91(0x9c)]()['slice'](0x0,0x8),this[_0xf2ec91(0x169)]=_0x58618a(this[_0xf2ec91(0x1b9)],this[_0xf2ec91(0x92)]),this['_startedAt']=Date[_0xf2ec91(0x2b5)](),this[_0xf2ec91(0x1fd)]=null,this[_0xf2ec91(0x8e)]=null,this[_0xf2ec91(0xd2)]=null,this[_0xf2ec91(0x28f)]=null,this[_0xf2ec91(0x163)]=null,this[_0xf2ec91(0x191)]=null,this['_lastPublishAt']=0x0,this['_ownMeta']={},this['_children']=new Map(),this[_0xf2ec91(0x196)]=process[_0xf2ec91(0x1da)](),this['_lastCpuAt']=Date[_0xf2ec91(0x2b5)](),this[_0xf2ec91(0x256)]=0x0,this['_threadStats']=new Map();}get[_0x52d956(0xb1)](){const _0x1c8421=_0x52d956;return this[_0x1c8421(0x1b9)];}get[_0x52d956(0x10a)](){const _0x48790d=_0x52d956;return this[_0x48790d(0x169)];}[_0x52d956(0xe0)](_0x5354a8,_0xc4bf3d){const _0x1c6aeb=_0x52d956,_0x195c73=_0x19b4b7(_0x5354a8,_0xc4bf3d);if(_0x195c73['killable']&&!_0x58666c(this[_0x1c6aeb(0x18a)]))return{..._0x195c73,'killable':![],'killConfirm':undefined};return _0x195c73;}[_0x52d956(0x284)](){const _0x954447=_0x52d956;return!!this[_0x954447(0x28c)];}[_0x52d956(0x29b)](_0xedd032){const _0x384f12=_0x52d956;Object['assign'](this[_0x384f12(0x237)],_0xedd032||{});}[_0x52d956(0x1fc)](_0x32fb4a){if(_0x32fb4a)this['_listenAddr']=_0x32fb4a;}['register'](_0x77d920={}){const _0x579aea=_0x52d956;return this[_0x579aea(0x18a)][_0x579aea(0x160)](_0x77d920);}[_0x52d956(0x27f)](){const _0x5828b1=_0x52d956,_0x3298a0={};let _0x43f7c0=0x0,_0x497356=0x0;const _0x1edad2=new Set();for(const _0x5c92f4 of this['listNodes']()){_0x497356++;const _0x3b4f10=_0x5c92f4[_0x5828b1(0x1ea)];if(!_0x3b4f10)continue;if(_0x3b4f10[_0x5828b1(0x180)])_0x43f7c0++;for(const _0x4bdf47 of _0x3b4f10['processors']||[]){if(![_0x5828b1(0x13b),'fanout']['includes'](_0x4bdf47[_0x5828b1(0x2a1)]))continue;(_0x4bdf47[_0x5828b1(0xa2)]===_0x5828b1(0xb2)||_0x4bdf47[_0x5828b1(0xa2)]===_0x5828b1(0x109))&&_0x4bdf47['cursorKey']&&_0x1edad2[_0x5828b1(0x11f)]((_0x4bdf47[_0x5828b1(0x1c2)]||'default')+':'+_0x4bdf47[_0x5828b1(0x18b)]);const _0x451758=_0x4bdf47['env']||_0x5828b1(0xf4);(_0x3298a0[_0x451758]||=[])[_0x5828b1(0x154)]({..._0x4bdf47,'env':_0x451758,'owner':{'pid':_0x5c92f4['pid']??null,'kind':_0x5c92f4['kind']??null}});}}for(const [_0x308b14,_0x404439]of Object[_0x5828b1(0xd4)](_0x3298a0)){for(const _0xe2fe3d of _0x404439){if(_0xe2fe3d['mode']===_0x5828b1(0x13b)&&!_0xe2fe3d[_0x5828b1(0x19e)]){const _0x52a859=_0x308b14+':'+(_0xe2fe3d['cursorKey']??'');if(!_0x1edad2[_0x5828b1(0x1f8)](_0x52a859))_0xe2fe3d[_0x5828b1(0x210)]=!![];}}}return{'envs':_0x3298a0,'policy':null,'participation':{'participating':_0x43f7c0,'total':_0x497356},'source':_0x5828b1(0x13d)};}['processorsView'](){const _0x376b6c=_0x52d956,_0x4fb2bd=_0x271380=>{const _0x3a56ff=_0x2868;if(_0x271380[_0x3a56ff(0xa2)]===_0x3a56ff(0xb2)||_0x271380['state']===_0x3a56ff(0x109)||_0x271380['state']===_0x3a56ff(0x112))return 0x3;if(_0x271380['claimGated'])return 0x1;return 0x2;},_0x92e35e=new Map();for(const _0x2d63c5 of this[_0x376b6c(0xdb)]()){for(const _0x344e7d of _0x2d63c5[_0x376b6c(0x1ea)]?.[_0x376b6c(0x1a0)]||[]){const _0xc2b55f={..._0x344e7d,'owner':{'pid':_0x2d63c5[_0x376b6c(0x2af)]??null,'kind':_0x2d63c5[_0x376b6c(0x11a)]??null,'host':_0x2d63c5[_0x376b6c(0x8d)]??null}},_0x2d8d7b=_0x344e7d['mode']===_0x376b6c(0x13b)?'1ofN:'+(_0x344e7d[_0x376b6c(0x1c2)]??'')+'::'+(_0x344e7d[_0x376b6c(0x18b)]??_0x344e7d[_0x376b6c(0x23d)]??_0x344e7d['id']):_0x376b6c(0xb6)+(_0x2d63c5[_0x376b6c(0xeb)]??_0x2d63c5[_0x376b6c(0x13f)]??'')+'::'+(_0x344e7d['env']??'')+'::'+_0x344e7d['id'],_0x3044de=_0x92e35e[_0x376b6c(0xd6)](_0x2d8d7b);if(!_0x3044de||_0x4fb2bd(_0xc2b55f)>_0x4fb2bd(_0x3044de))_0x92e35e[_0x376b6c(0xff)](_0x2d8d7b,_0xc2b55f);}}return[..._0x92e35e['values']()];}['clusterStatusView'](){const _0xf2a3f2=_0x52d956,_0x306646=Date[_0xf2a3f2(0x2b5)](),_0x4c2a26=this[_0xf2a3f2(0xdb)](),_0x15e4e5=_0xc952af=>Math[_0xf2a3f2(0x130)](0x0,Math[_0xf2a3f2(0x25b)]((_0x306646-(_0xc952af[_0xf2a3f2(0xf7)]||_0x306646))/0x3e8)),_0x472145=_0x4c2a26[_0xf2a3f2(0x108)](_0x227c9b=>_0x227c9b[_0xf2a3f2(0x11a)]===_0xf2a3f2(0x1a1)),_0x43a221=_0x4c2a26['filter'](_0x3c2d82=>_0x3c2d82['kind']===_0xf2a3f2(0x100));if(_0x472145||_0x43a221[_0xf2a3f2(0x27a)])return{'primary':_0x472145?{'pid':_0x472145[_0xf2a3f2(0x2af)],'uptime':_0x15e4e5(_0x472145)}:null,'workers':_0x43a221[_0xf2a3f2(0x9d)](_0x45a3ff=>({'pid':_0x45a3ff[_0xf2a3f2(0x2af)],'uptime':_0x15e4e5(_0x45a3ff)})),'workersConfigured':_0x472145?.[_0xf2a3f2(0x197)]?.[_0xf2a3f2(0x16a)]??_0x43a221[_0xf2a3f2(0x27a)],'mode':_0xf2a3f2(0x257)};const _0x20e5cc=_0x4c2a26[_0xf2a3f2(0x108)](_0x262959=>_0x262959[_0xf2a3f2(0x11a)]===_0xf2a3f2(0x26e)||_0x262959[_0xf2a3f2(0x11a)]===_0xf2a3f2(0x8b)||_0x262959['kind']===_0xf2a3f2(0x22c)),_0x12581e=_0x20e5cc?{'pid':_0x20e5cc[_0xf2a3f2(0x2af)],'uptime':_0x15e4e5(_0x20e5cc)}:{'pid':process['pid'],'uptime':Math['max'](0x0,Math['round'](process[_0xf2a3f2(0x114)]()))};return{'primary':_0x12581e,'workers':[_0x12581e],'workersConfigured':0x1,'mode':_0xf2a3f2(0x13b)};}[_0x52d956(0xf0)](){const _0x2dd75e=_0x52d956;return this[_0x2dd75e(0x2ac)]();}[_0x52d956(0x117)](){const _0x144add=_0x52d956,_0x5d3ad1=new Map();for(const _0x1d59c4 of this[_0x144add(0x2ac)]())_0x5d3ad1['set'](_0x1d59c4[_0x144add(0x13f)],{..._0x1d59c4,'children':[]});const _0x3a97e9=[];for(const _0x23f2d7 of _0x5d3ad1['values']()){const _0x35cefe=_0x23f2d7[_0x144add(0x1f7)]?_0x5d3ad1[_0x144add(0xd6)](_0x23f2d7[_0x144add(0x1f7)]):null;if(_0x35cefe&&_0x35cefe!==_0x23f2d7)_0x35cefe[_0x144add(0x221)][_0x144add(0x154)](_0x23f2d7);else _0x3a97e9[_0x144add(0x154)](_0x23f2d7);}const _0x4ac488=(_0x5ce697,_0x5723ee)=>_0x5ce697[_0x144add(0x11a)]===_0x5723ee[_0x144add(0x11a)]?(_0x5ce697[_0x144add(0x2af)]||0x0)-(_0x5723ee[_0x144add(0x2af)]||0x0):(_0x5ce697[_0x144add(0x11a)]??'')<(_0x5723ee['kind']??'')?-0x1:0x1,_0x25ecb8=_0x1b4a48=>{const _0x4719e4=_0x144add;_0x1b4a48[_0x4719e4(0xd8)](_0x4ac488);for(const _0x23a837 of _0x1b4a48)if(_0x23a837['children'][_0x4719e4(0x27a)])_0x25ecb8(_0x23a837[_0x4719e4(0x221)]);};return _0x25ecb8(_0x3a97e9),_0x3a97e9;}['getProcess'](_0x5bd750){const _0x198db9=_0x52d956;return this['_groupByProcess']()[_0x198db9(0x108)](_0x377692=>_0x377692[_0x198db9(0x13f)]===_0x5bd750)??null;}[_0x52d956(0x2ac)](_0x41a355=Date[_0x52d956(0x2b5)]()){const _0x538f3d=_0x52d956,_0x37a4d7=new Map();for(const _0x2e513e of this[_0x538f3d(0xdb)]()){const _0x16fe54=_0x36e252(_0x2e513e);let _0x142dec=_0x37a4d7[_0x538f3d(0xd6)](_0x16fe54);!_0x142dec&&(_0x142dec={'processKey':_0x16fe54,'nodeKey':_0x16fe54,'pid':_0x2e513e['pid'],'ppid':_0x2e513e[_0x538f3d(0x168)]??null,'host':_0x2e513e['host']??null,'kind':_0x2e513e[_0x538f3d(0x11a)],'role':null,'supervisorKey':_0x2e513e[_0x538f3d(0x1f7)]??null,'slot':_0x2e513e[_0x538f3d(0xe2)]??null,'slotKey':_0x2e513e[_0x538f3d(0x1f9)]??null,'caps':_0x2e513e[_0x538f3d(0x149)]??null,'lifecycle':_0x2e513e[_0x538f3d(0x211)]??null,'uptime':Math[_0x538f3d(0x130)](0x0,Math[_0x538f3d(0x25b)]((_0x41a355-(_0x2e513e[_0x538f3d(0xf7)]||_0x41a355))/0x3e8)),'startedAt':_0x2e513e['startedAt']??null,'meta':_0x2e513e[_0x538f3d(0x197)]??null,'listenAddr':null,'processing':null,'engines':null,'singletonClaims':null,'stats':null,'instances':[]},_0x37a4d7[_0x538f3d(0xff)](_0x16fe54,_0x142dec));_0x142dec[_0x538f3d(0x103)][_0x538f3d(0x154)]({'instanceId':_0x2e513e[_0x538f3d(0x17c)]??null,'role':_0x2e513e[_0x538f3d(0x1c4)]??null,'listenAddr':_0x2e513e[_0x538f3d(0x1e4)]??null,'lifecycle':_0x2e513e[_0x538f3d(0x211)]??null,'processing':_0x2e513e['processing']??null});if(!_0x142dec[_0x538f3d(0x1c4)]&&_0x2e513e['role'])_0x142dec[_0x538f3d(0x1c4)]=_0x2e513e[_0x538f3d(0x1c4)];if(!_0x142dec[_0x538f3d(0x1e4)]&&_0x2e513e[_0x538f3d(0x1e4)])_0x142dec['listenAddr']=_0x2e513e[_0x538f3d(0x1e4)];if(!_0x142dec['processing']&&_0x2e513e[_0x538f3d(0x1ea)])_0x142dec['processing']=_0x2e513e[_0x538f3d(0x1ea)];if(!_0x142dec[_0x538f3d(0xbe)]&&_0x2e513e[_0x538f3d(0xbe)])_0x142dec[_0x538f3d(0xbe)]=_0x2e513e['engines'];if(!_0x142dec['singletonClaims']&&_0x2e513e[_0x538f3d(0x26a)])_0x142dec[_0x538f3d(0x26a)]=_0x2e513e[_0x538f3d(0x26a)];if(_0x142dec['caps']==null&&_0x2e513e[_0x538f3d(0x149)])_0x142dec[_0x538f3d(0x149)]=_0x2e513e[_0x538f3d(0x149)];if(_0x2e513e[_0x538f3d(0x1f3)]&&(!_0x142dec['stats']||(_0x2e513e[_0x538f3d(0x1f3)]['at']??0x0)>(_0x142dec[_0x538f3d(0x1f3)]['at']??0x0)))_0x142dec[_0x538f3d(0x1f3)]=_0x2e513e[_0x538f3d(0x1f3)];}return[..._0x37a4d7['values']()];}['runtimeProcessesView'](){const _0x4a3ec7=_0x52d956,_0x34fe85=[],_0x1297b3={'rss':0x0,'heapUsed':0x0,'processes':0x0,'threads':{'count':0x0,'sandbox':0x0,'busy':0x0}};for(const _0x2a4fa9 of this[_0x4a3ec7(0x2ac)]()){_0x34fe85['push']({'processKey':_0x2a4fa9['processKey'],'kind':_0x2a4fa9[_0x4a3ec7(0x11a)],'pid':_0x2a4fa9[_0x4a3ec7(0x2af)],'supervisorKey':_0x2a4fa9['supervisorKey'],'meta':_0x2a4fa9[_0x4a3ec7(0x197)]??null,'uptime':_0x2a4fa9[_0x4a3ec7(0x114)],'stats':_0x2a4fa9[_0x4a3ec7(0x1f3)]??null}),_0x1297b3[_0x4a3ec7(0x278)]++;if(_0x2a4fa9[_0x4a3ec7(0x1f3)]){_0x1297b3['rss']+=_0x2a4fa9[_0x4a3ec7(0x1f3)][_0x4a3ec7(0x192)]||0x0,_0x1297b3[_0x4a3ec7(0x27e)]+=(_0x2a4fa9['stats'][_0x4a3ec7(0x27e)]||0x0)+(_0x2a4fa9[_0x4a3ec7(0x1f3)][_0x4a3ec7(0x21a)]?.[_0x4a3ec7(0x27e)]||0x0);const _0x3d9f66=_0x2a4fa9[_0x4a3ec7(0x1f3)][_0x4a3ec7(0x21a)];_0x3d9f66&&(_0x1297b3[_0x4a3ec7(0x21a)][_0x4a3ec7(0x1ad)]+=_0x3d9f66[_0x4a3ec7(0x1ad)]||0x0,_0x1297b3[_0x4a3ec7(0x21a)][_0x4a3ec7(0x1d9)]+=_0x3d9f66[_0x4a3ec7(0x1d9)]||0x0,_0x1297b3[_0x4a3ec7(0x21a)][_0x4a3ec7(0xe1)]+=_0x3d9f66[_0x4a3ec7(0xe1)]||0x0);}}return{'totals':_0x1297b3,'nodes':_0x34fe85};}async['open']({writer:writer=![],reader:reader=![],kind:kind=null,supervisorKey:supervisorKey=null,listenAddr:listenAddr=null}={}){const _0x4770e1=_0x52d956;this[_0x4770e1(0x9f)]=this['_isWriter']||!!writer,this[_0x4770e1(0x1cd)]=this[_0x4770e1(0x1cd)]||!!reader,this[_0x4770e1(0x1fd)]=kind||this[_0x4770e1(0x1fd)]||(_0x447b48['isWorker']?_0x4770e1(0x100):_0x4770e1(0x26e)),this['_supervisorKey']=supervisorKey??this[_0x4770e1(0x8e)],this[_0x4770e1(0xd2)]=listenAddr??this[_0x4770e1(0xd2)],this[_0x4770e1(0x1bb)](),await this['_migrateVocab']();if(!writer&&!reader)return null;if(!this[_0x4770e1(0x28c)]){const _0x4fc842=await this[_0x4770e1(0x18a)]['createEnvironment'](_0x2c88c7,{'sync':![],'durability':'fast'});await _0x4fc842[_0x4770e1(0x1ca)](_0x4b36e9),this['_statusEnv']=_0x4fc842;}return this[_0x4770e1(0x28c)];}[_0x52d956(0xe6)](){const _0x52dc3f=_0x52d956;return this[_0x52dc3f(0x2a9)]!==this[_0x52dc3f(0x28c)]&&(this[_0x52dc3f(0x2a9)]=this[_0x52dc3f(0x28c)],this[_0x52dc3f(0x16b)]=this[_0x52dc3f(0x28c)][_0x52dc3f(0xcd)](_0x4b36e9)[_0x52dc3f(0x2bf)]),this[_0x52dc3f(0x16b)];}['_putRowAsync'](_0xfa7a50){const _0x569aa2=_0x52d956;if(_0x2adc6e)return this[_0x569aa2(0xe6)]()[_0x569aa2(0x12c)](_0xfa7a50[_0x569aa2(0xeb)],_0xfa7a50,0x1);const _0x580ed0=this[_0x569aa2(0xe6)]()[_0x569aa2(0x2ab)](_0xfa7a50[_0x569aa2(0xeb)],_0xfa7a50,0x1);if(_0x580ed0&&typeof _0x580ed0[_0x569aa2(0xf2)]==='function')_0x580ed0['then'](undefined,()=>{});return _0x580ed0;}[_0x52d956(0xf5)](_0x4f45d8){const _0xcf91b9=_0x52d956;return this[_0xcf91b9(0xe6)]()[_0xcf91b9(0x12c)](_0x4f45d8['nodeKey'],_0x4f45d8,0x1);}['_removeRowAsync'](_0x3e4570){const _0x5d39c6=_0x52d956;if(_0x2adc6e)try{return this[_0x5d39c6(0xe6)]()[_0x5d39c6(0x179)](_0x3e4570);}catch{return![];}const _0x2c10d3=this[_0x5d39c6(0xe6)]()[_0x5d39c6(0x2c0)](_0x3e4570);if(_0x2c10d3&&typeof _0x2c10d3[_0x5d39c6(0xf2)]===_0x5d39c6(0x25e))_0x2c10d3[_0x5d39c6(0xf2)](undefined,()=>{});return _0x2c10d3;}async[_0x52d956(0x11c)](_0x1963a1){const _0x55b938=_0x52d956;if(!this['_statusEnv']||!this['_isWriter']||!_0x1963a1?.['nodeKey'])return;return this[_0x55b938(0x200)](_0x1963a1);}async[_0x52d956(0xec)](_0x4b96d7){const _0x348b5f=_0x52d956;if(!this['_statusEnv']||!this[_0x348b5f(0x9f)]||!_0x4b96d7)return;const _0x99c5e3=_0x4b96d7[_0x348b5f(0xf1)]('#'),_0x5c7fb7=[];for(const {key:_0x544e91}of this['_statusEnv'][_0x348b5f(0x218)](_0x4b36e9)){if(_0x544e91===_0x4b96d7||!_0x99c5e3&&typeof _0x544e91===_0x348b5f(0x190)&&_0x544e91[_0x348b5f(0x96)](_0x4b96d7+'#'))_0x5c7fb7[_0x348b5f(0x154)](_0x544e91);}for(const _0x378218 of _0x5c7fb7){try{this['_nodeDb']()[_0x348b5f(0x179)](_0x378218);}catch{}}}['_nodeDead'](_0x5dc942){const _0x23ea58=_0x52d956;if(typeof _0x5dc942?.[_0x23ea58(0x2af)]!==_0x23ea58(0x138))return![];if(_0x5dc942['host']!==_0x106a90[_0x23ea58(0x166)]())return![];if(_0x5dc942[_0x23ea58(0x2af)]===process['pid'])return![];if(_0x5dc942['expiresAt']!=null&&_0x5dc942['expiresAt']<Date['now']()-_0x2d70ec)return!![];try{return process[_0x23ea58(0x295)](_0x5dc942[_0x23ea58(0x2af)],0x0),![];}catch(_0x2fd903){return _0x2fd903['code']===_0x23ea58(0x27c);}}[_0x52d956(0xdb)](){const _0x4d5514=_0x52d956;if(!this[_0x4d5514(0x28c)])return[];try{this[_0x4d5514(0x28c)]['db']?.[_0x4d5514(0x172)]?.();}catch{}const _0x22ceff=Date[_0x4d5514(0x2b5)](),_0x43c5c4=_0x106a90[_0x4d5514(0x166)](),_0x2d8aa3=[];for(const {value:_0x28fa85}of this['_statusEnv'][_0x4d5514(0x218)](_0x4b36e9)){if(!_0x28fa85)continue;let _0x1f63c0=null;_0x28fa85[_0x4d5514(0x8d)]===_0x43c5c4&&typeof _0x28fa85['pid']===_0x4d5514(0x138)&&(_0x1f63c0=!this['_nodeDead'](_0x28fa85));if(_0x1f63c0===![])continue;const _0x482eab=_0x28fa85['expiresAt']==null||_0x28fa85['expiresAt']>=_0x22ceff;if(_0x1f63c0===!![]||_0x482eab)_0x2d8aa3[_0x4d5514(0x154)](_0x28fa85);}return _0x2d8aa3;}async[_0x52d956(0x153)](_0x1a9cad=0x0){const _0x3fe31d=_0x52d956;if(!this[_0x3fe31d(0x28c)]||!this[_0x3fe31d(0x9f)])return;const _0x30e5da=Date['now']()-_0x1a9cad,_0x47689f=new Set(),_0x13b1a1=[],_0x4cf4c3=_0x106a90[_0x3fe31d(0x166)](),_0x2750c2=require$$6[_0x3fe31d(0x1a3)];for(const {key:_0x141f2b,value:_0x10d45e}of this[_0x3fe31d(0x28c)][_0x3fe31d(0x218)](_0x4b36e9)){if(!_0x10d45e)continue;const _0xedb45f=_0x10d45e[_0x3fe31d(0x8d)]===_0x4cf4c3&&typeof _0x10d45e[_0x3fe31d(0x2af)]===_0x3fe31d(0x138),_0x371825=_0xedb45f?this[_0x3fe31d(0x275)](_0x10d45e):_0x10d45e[_0x3fe31d(0xf3)]!=null&&_0x10d45e[_0x3fe31d(0xf3)]<_0x30e5da;if(_0x371825)_0x13b1a1['push'](_0x141f2b);else{_0x47689f[_0x3fe31d(0x11f)](_0x36e252(_0x10d45e)??_0x141f2b);if(_0x10d45e[_0x3fe31d(0x1a3)]&&_0x10d45e['version']!==_0x2750c2){if(!this[_0x3fe31d(0xd5)])this[_0x3fe31d(0xd5)]=new Set();!this[_0x3fe31d(0xd5)]['has'](_0x10d45e[_0x3fe31d(0x1a3)])&&(this[_0x3fe31d(0xd5)][_0x3fe31d(0x11f)](_0x10d45e[_0x3fe31d(0x1a3)]),this[_0x3fe31d(0x18a)][_0x3fe31d(0x1a7)]?.['warn']?.(_0x3fe31d(0x21f)+(_0x10d45e['pid']??'?')+'\x20on\x20this\x20data\x20path\x20runs\x20okdb\x20'+_0x10d45e[_0x3fe31d(0x1a3)]+'\x20while\x20this\x20process\x20runs\x20'+_0x2750c2+_0x3fe31d(0xb0)+'mixed\x20versions\x20on\x20one\x20store\x20are\x20unsafe\x20across\x20storage\x20migrations;\x20align\x20versions\x20before\x20upgrading\x20further.',{'feature':_0x3fe31d(0x1c1)}));}}}for(const _0x6b380f of _0x13b1a1)this[_0x3fe31d(0x116)](_0x6b380f);if(this[_0x3fe31d(0x1bb)]()){const _0x57a0c2=[];for(const {key:_0x5152aa}of this['listDesired'](_0x3fe31d(0x2a0))){if(!_0x47689f[_0x3fe31d(0x1f8)](_0x5152aa)){if(_0x2adc6e)try{this[_0x3fe31d(0x185)][_0x3fe31d(0x179)]('node/'+_0x5152aa);}catch{}else _0x57a0c2[_0x3fe31d(0x154)](this[_0x3fe31d(0x185)][_0x3fe31d(0x2c0)]('node/'+_0x5152aa));}}if(_0x57a0c2['length'])await Promise[_0x3fe31d(0x16c)](_0x57a0c2);}}[_0x52d956(0x147)](_0x3defd4=null){const _0x50a763=_0x52d956;if(this[_0x50a763(0x28f)])return;if(!this[_0x50a763(0x9f)]||!this[_0x50a763(0x28c)]){this[_0x50a763(0x18a)]?.[_0x50a763(0x1a7)]?.['warn']?.(_0x50a763(0x17e)+this[_0x50a763(0x9f)]+_0x50a763(0xf6)+!!this['_statusEnv']+_0x50a763(0xbc),{'feature':_0x50a763(0x278)});return;}this[_0x50a763(0x191)]=_0x3defd4,this[_0x50a763(0x163)]=()=>this['_maybePublish']();for(const _0x31990a of _0x5b10b2)this['okdb'][_0x50a763(0x263)]['on'](_0x31990a,this[_0x50a763(0x163)]);this[_0x50a763(0x1ec)]();const _0x52e7bf=Number(process.env.OKDB_WORKERS_HEARTBEAT_MS)||_0x13b060;this['_hbTimer']=setInterval(()=>{const _0x2301a2=_0x50a763;if(this[_0x2301a2(0x191)])try{this['_onTick']();}catch{}this[_0x2301a2(0x1ec)](),this[_0x2301a2(0x153)]()['catch'](()=>{});},_0x52e7bf);if(this[_0x50a763(0x28f)][_0x50a763(0x277)])this[_0x50a763(0x28f)][_0x50a763(0x277)]();}[_0x52d956(0x11d)](){const _0x426cc5=_0x52d956;if(!this['_isWriter']||!this[_0x426cc5(0x28c)])return;if(Date[_0x426cc5(0x2b5)]()-this['_lastPublishAt']<_0x234f26)return;this[_0x426cc5(0x1ec)]();}[_0x52d956(0x1ec)](){const _0x7c5f69=_0x52d956;if(!this['_isWriter']||!this['_statusEnv'])return;this[_0x7c5f69(0xab)]=Date['now']();try{const _0x1e0b16=[this['_buildOwnRow']()];for(const _0x56d96f of this[_0x7c5f69(0xfc)][_0x7c5f69(0x244)]())_0x1e0b16[_0x7c5f69(0x154)](this[_0x7c5f69(0x268)](_0x56d96f));const _0x3d1aa3=_0xaf3088['enabled']?_0xaf3088[_0x7c5f69(0x2b5)]():0x0;for(const _0x190c22 of _0x1e0b16){try{this['_putRowSync'](_0x190c22),this[_0x7c5f69(0x18c)]=![];}catch(_0x3a8659){!this['_publishFailWarned']&&(this[_0x7c5f69(0x18c)]=!![],this['okdb']?.[_0x7c5f69(0x1a7)]?.[_0x7c5f69(0x9a)]?.(_0x7c5f69(0x127)+_0x3a8659[_0x7c5f69(0x10b)],{'feature':_0x7c5f69(0x278)}));}}if(_0xaf3088['enabled'])_0xaf3088['note'](_0x7c5f69(0x22a),_0xaf3088[_0x7c5f69(0x2b5)]()-_0x3d1aa3,_0x7c5f69(0x106)+_0x1e0b16[_0x7c5f69(0x27a)]+_0x7c5f69(0x204));}catch(_0x5b28f3){!this[_0x7c5f69(0x18c)]&&(this[_0x7c5f69(0x18c)]=!![],this[_0x7c5f69(0x18a)]?.[_0x7c5f69(0x1a7)]?.[_0x7c5f69(0x9a)]?.(_0x7c5f69(0x127)+_0x5b28f3[_0x7c5f69(0x10b)],{'feature':_0x7c5f69(0x278)}));}}async[_0x52d956(0x2bc)](){const _0x4e52a2=_0x52d956;if(this['_onProcEvent']){for(const _0x3f7b00 of _0x5b10b2){try{this[_0x4e52a2(0x18a)][_0x4e52a2(0x263)][_0x4e52a2(0x15e)](_0x3f7b00,this[_0x4e52a2(0x163)]);}catch{}}this[_0x4e52a2(0x163)]=null;}this[_0x4e52a2(0x28f)]&&(clearInterval(this[_0x4e52a2(0x28f)]),this[_0x4e52a2(0x28f)]=null);try{if(this[_0x4e52a2(0x28c)]&&this[_0x4e52a2(0x9f)])await this[_0x4e52a2(0xec)](this['_rowKey']);}catch{}}async[_0x52d956(0x230)](){const _0x1cfd8f=_0x52d956;if(!this['_statusEnv']||!this['_isWriter'])return;try{await this[_0x1cfd8f(0xec)](this[_0x1cfd8f(0x169)]);}catch{}try{const _0x3aa46f=[];for(const {value:_0x23f0cf}of this[_0x1cfd8f(0x28c)][_0x1cfd8f(0x218)](_0x4b36e9)){if(_0x23f0cf?.[_0x1cfd8f(0x168)]===process[_0x1cfd8f(0x2af)]&&_0x23f0cf[_0x1cfd8f(0xeb)])_0x3aa46f[_0x1cfd8f(0x154)](_0x23f0cf[_0x1cfd8f(0xeb)]);}for(const _0x2d24fd of _0x3aa46f){try{await this[_0x1cfd8f(0xec)](_0x2d24fd);}catch{}}}catch{}}async[_0x52d956(0x202)](){const _0x51262a=_0x52d956;return this[_0x51262a(0x11c)](this[_0x51262a(0x126)]());}async['publishChildRow'](_0x760cf1){const _0x48508b=_0x52d956;if(!this[_0x48508b(0x28c)]||!this['_isWriter'])return;return this[_0x48508b(0x11c)](this['_buildChildRow'](_0x760cf1));}[_0x52d956(0x268)]({pid:_0x1847ba,startedAt:_0x3ccc57,kind:_0x25d4ea,supervisorKey:_0xea9b28,slot:slot=null,slotKey:slotKey=null,role:role={},listenAddr:listenAddr=null,processing:processing=null,lifecycle:lifecycle='running',meta:meta=null,stats:stats=null}){const _0x51c7ae=_0x52d956,_0x1d0826=Date[_0x51c7ae(0x2b5)](),_0x1e9598=_0x940dc(_0x1847ba,_0x3ccc57);return{'nodeKey':_0x58618a(_0x1e9598,'0'),'processKey':_0x1e9598,'instanceId':'0','pid':_0x1847ba,'startedAt':_0x3ccc57,'ppid':process['pid'],'host':_0x106a90[_0x51c7ae(0x166)](),'supervisorKey':_0xea9b28,'slot':slot,'slotKey':slotKey,'kind':_0x25d4ea,'role':role,'listenAddr':listenAddr,'heartbeatAt':_0x1d0826,'expiresAt':_0x1d0826+_0x46b15d,'caps':this[_0x51c7ae(0xe0)](_0x25d4ea,role),'lifecycle':{'state':lifecycle,'desiredVersionApplied':null},'processing':processing,'meta':meta,'stats':stats};}async[_0x52d956(0xc0)](_0x581f70){const _0x4d024f=_0x52d956;if(!_0x581f70?.['pid'])return null;const _0x49caee=_0x940dc(_0x581f70[_0x4d024f(0x2af)],_0x581f70[_0x4d024f(0xf7)]);this[_0x4d024f(0xfc)][_0x4d024f(0xff)](_0x49caee,{..._0x581f70,'supervisorKey':_0x581f70['supervisorKey']??this[_0x4d024f(0x1b9)]});if(this['_isWriter'])await this[_0x4d024f(0x1d1)](this[_0x4d024f(0xfc)]['get'](_0x49caee))[_0x4d024f(0x1d7)]?.(()=>{});return _0x49caee;}['removeSupervisedChild'](_0x5af175){const _0x3ce45e=_0x52d956;if(!_0x5af175)return;return this[_0x3ce45e(0xfc)][_0x3ce45e(0x231)](_0x5af175),this[_0x3ce45e(0xec)](_0x5af175);}[_0x52d956(0x241)](){const _0x4edd44=_0x52d956,_0x4a673f=Date[_0x4edd44(0x2b5)](),_0x31605e=process[_0x4edd44(0x1da)](),_0x41292a=(_0x4a673f-this[_0x4edd44(0x225)])*0x3e8;if(_0x41292a>=0x3d090){const _0x29884c=_0x31605e[_0x4edd44(0x2be)]-this['_lastCpuUsage'][_0x4edd44(0x2be)]+(_0x31605e['system']-this[_0x4edd44(0x196)][_0x4edd44(0x15b)]),_0x1de582=_0x106a90[_0x4edd44(0xc1)]()[_0x4edd44(0x27a)]||0x1;this[_0x4edd44(0x256)]=Math[_0x4edd44(0xa0)](0x64,Math[_0x4edd44(0x25b)](_0x29884c/(_0x41292a*_0x1de582)*0x64)),this['_lastCpuWindowMs']=Math['round'](_0x41292a/0x3e8),this[_0x4edd44(0x196)]=_0x31605e,this[_0x4edd44(0x225)]=_0x4a673f;}const _0x43cae1=process[_0x4edd44(0xef)](),_0x1ac004=this[_0x4edd44(0x1f0)][_0x4edd44(0x20c)];let _0x42457c=0x0;if(_0x1ac004>0x0){const _0x508fd1=[this[_0x4edd44(0x18a)],...this['okdb']['_envs']?.[_0x4edd44(0x244)]?.()??[]];for(const _0x2b0ebe of _0x508fd1){const _0x4556a4=_0x2b0ebe['functions']?.[_0x4edd44(0x189)];if(_0x4556a4)_0x42457c+=_0x4556a4[_0x4edd44(0x2a3)][_0x4edd44(0xe1)];}}let _0x44480b=null;const _0x1cfe42=_0x1ac004;if(_0x1cfe42>0x0){let _0x5a9900=0x0;for(const _0x51b82b of this[_0x4edd44(0x1f0)][_0x4edd44(0x244)]())_0x5a9900+=_0x51b82b[_0x4edd44(0x27e)]||0x0;_0x44480b={'count':_0x1cfe42,'heapUsed':_0x5a9900,'sandbox':_0x1ac004,'busy':_0x42457c};}return{'rss':_0x43cae1['rss'],'heapUsed':_0x43cae1[_0x4edd44(0x27e)],'heapTotal':_0x43cae1[_0x4edd44(0xa5)],'external':_0x43cae1[_0x4edd44(0x1ae)],'cpuPct':this[_0x4edd44(0x256)],'cpuWindowMs':this[_0x4edd44(0x1e6)]??null,'threads':_0x44480b,'at':_0x4a673f};}['reportThreadStats'](_0x4084dc,_0x16db45){const _0x1fb979=_0x52d956;if(!_0x4084dc||!_0x16db45)return;this[_0x1fb979(0x1f0)][_0x1fb979(0xff)](_0x4084dc,_0x16db45);}[_0x52d956(0xed)](_0x21bac0){const _0x2dcdd0=_0x52d956;this[_0x2dcdd0(0x1f0)][_0x2dcdd0(0x231)](_0x21bac0);}[_0x52d956(0x24a)](_0x1285ed,_0x2069c1,_0x1fa896=undefined){const _0x55dd6f=_0x52d956,_0x26679b=this[_0x55dd6f(0xfc)][_0x55dd6f(0xd6)](_0x1285ed);if(!_0x26679b||!_0x2069c1)return;if(_0x1fa896!==undefined)_0x26679b['processing']=_0x1fa896;_0x26679b[_0x55dd6f(0x1f3)]={'rss':_0x2069c1['rss']??null,'heapUsed':_0x2069c1[_0x55dd6f(0x27e)]??null,'heapTotal':_0x2069c1[_0x55dd6f(0xa5)]??null,'external':_0x2069c1['external']??null,'cpuPct':_0x2069c1[_0x55dd6f(0x18d)]??null,'cpuWindowMs':_0x2069c1['cpuWindowMs']??null,'threads':_0x2069c1['threads']??null,'claims':_0x2069c1[_0x55dd6f(0x267)]??null,'envsOpen':_0x2069c1[_0x55dd6f(0x94)]??null,'at':Date[_0x55dd6f(0x2b5)]()};}[_0x52d956(0x126)](){const _0x2b2f6e=_0x52d956,_0x307284=Date[_0x2b2f6e(0x2b5)](),_0x17bdee=this[_0x2b2f6e(0x18a)][_0x2b2f6e(0x1c9)]||{},_0x11204f=this[_0x2b2f6e(0x1fd)]||_0x2b2f6e(0x26e);return{'nodeKey':this[_0x2b2f6e(0x169)],'processKey':this[_0x2b2f6e(0x1b9)],'instanceId':this[_0x2b2f6e(0x92)],'pid':process[_0x2b2f6e(0x2af)],'startedAt':this[_0x2b2f6e(0x17f)],'instanceStartedAt':this[_0x2b2f6e(0xbd)],'ppid':typeof process[_0x2b2f6e(0x168)]===_0x2b2f6e(0x138)?process['ppid']:null,'host':_0x106a90[_0x2b2f6e(0x166)](),'supervisorKey':this[_0x2b2f6e(0x8e)]??null,'version':require$$6['version'],'kind':_0x11204f,'role':{'engines':!!_0x17bdee['engines'],'processors':!!_0x17bdee['processors'],'compaction':_0x17bdee['compaction'],'http':_0x17bdee[_0x2b2f6e(0xb9)]},'listenAddr':this[_0x2b2f6e(0xd2)]??null,'heartbeatAt':_0x307284,'expiresAt':_0x307284+_0x46b15d,'caps':this[_0x2b2f6e(0xe0)](_0x11204f,_0x17bdee),'lifecycle':{'state':_0x2b2f6e(0x28e),'desiredVersionApplied':null},'meta':{...this[_0x2b2f6e(0x237)]},'processing':_0x17bdee[_0x2b2f6e(0x1a0)]?this['_buildProcessingFacet']():null,'engines':_0x17bdee[_0x2b2f6e(0xbe)]?[...this[_0x2b2f6e(0x18a)][_0x2b2f6e(0x98)]??[]]:null,'singletonClaims':this[_0x2b2f6e(0xe4)](),'stats':this[_0x2b2f6e(0x241)](),'writers':this['_collectWriterFacet']()};}['_collectWriterFacet'](){const _0x243714=_0x52d956,_0x5a3a26={};try{for(const [_0x262841,_0x12f568]of this['okdb']['_envs']){try{const _0x49a8b8=_0x12f568[_0x243714(0x28b)]?.();if(!_0x49a8b8)continue;if(!_0x49a8b8[_0x243714(0x270)]&&!_0x49a8b8[_0x243714(0x15c)]&&!(_0x49a8b8[_0x243714(0x8a)]??0x0)&&!_0x49a8b8['draining'])continue;_0x5a3a26[_0x262841]={'depth':_0x49a8b8[_0x243714(0x270)],'oldestPendingMs':_0x49a8b8[_0x243714(0x260)],'committed':_0x49a8b8[_0x243714(0x15c)],'commitsPerSec':_0x49a8b8['commitsPerSec'],'commitP99Ms':_0x49a8b8['commitP99Ms'],'parkedNow':_0x49a8b8[_0x243714(0x8a)]??0x0,'draining':!!_0x49a8b8[_0x243714(0x20a)]};}catch{}}}catch{}return Object[_0x243714(0x255)](_0x5a3a26)[_0x243714(0x27a)]?_0x5a3a26:null;}['_collectSingletonClaims'](){const _0x48342b=_0x52d956,_0x5ad993=process[_0x48342b(0x2af)],_0x2b9595=Date['now'](),_0xc8552d=_0x303b77=>{const _0x548482=_0x48342b;if(!_0x303b77)return[];const _0x5d739d=[];try{for(const {id:_0x303c4e,entry:_0x1cbf29}of _0x303b77[_0x548482(0x296)]()){if(_0x1cbf29?.[_0x548482(0x124)]?.[_0x548482(0x2af)]!==_0x5ad993)continue;const _0x438e29=_0x1cbf29[_0x548482(0x272)]??_0x1cbf29['acquiredAt']??0x0;if(_0x438e29+(_0x1cbf29[_0x548482(0xd0)]??0x0)<_0x2b9595)continue;_0x5d739d[_0x548482(0x154)](_0x303c4e);}}catch{}return _0x5d739d;},_0x10be87=_0xc8552d(this[_0x48342b(0x144)](_0x48342b(0x14e))),_0x27bc6f=_0xc8552d(this[_0x48342b(0x144)](_0x48342b(0x152)));if(!_0x10be87[_0x48342b(0x27a)]&&!_0x27bc6f['length'])return null;return{'compact':_0x10be87,'replicate':_0x27bc6f};}[_0x52d956(0x144)](_0x24cea1){const _0x48b09c=_0x52d956;if(!this[_0x48b09c(0x18a)]?.[_0x48b09c(0x156)])return null;if(!this[_0x48b09c(0x171)])this[_0x48b09c(0x171)]=new Map();let _0x57fefc=this[_0x48b09c(0x171)][_0x48b09c(0xd6)](_0x24cea1);if(!_0x57fefc)try{_0x57fefc=new _0x5211ec(this[_0x48b09c(0x18a)][_0x48b09c(0x156)],{'namespace':_0x24cea1}),this[_0x48b09c(0x171)][_0x48b09c(0xff)](_0x24cea1,_0x57fefc);}catch{return null;}return _0x57fefc;}[_0x52d956(0x128)](){const _0x34ce54=_0x52d956,_0x302f83=[];try{for(const [_0x165a91,_0x5bb743]of this['okdb'][_0x34ce54(0x223)]){if(_0x165a91['startsWith']('~'))continue;for(const _0x44ae3e of _0x5bb743[_0x34ce54(0xf8)][_0x34ce54(0x2b9)]())_0x302f83[_0x34ce54(0x154)]({..._0x44ae3e,'env':_0x165a91});}}catch{}return{'participate':this[_0x34ce54(0x18a)][_0x34ce54(0x1a0)]?.[_0x34ce54(0x12a)]??![],'processors':_0x302f83};}[_0x52d956(0x1bb)](){const _0xea33eb=_0x52d956;if(this['_desired'])return!![];const _0x48e2b4=this['okdb'][_0xea33eb(0x156)];if(!_0x48e2b4)return![];return this[_0xea33eb(0x185)]=_0x48e2b4['openDB'](_0x9b7ef8,{'dupSort':![]}),this[_0xea33eb(0x20f)]=_0x48e2b4[_0xea33eb(0x208)](_0x4c5275,{'dupSort':![]}),!![];}async[_0x52d956(0x1e3)](){const _0x1cbf85=_0x52d956;if(!this[_0x1cbf85(0x1bb)]())return;const _0x554bd9='__vocab/version',_0x2ef41f=0x1,_0x3b500e=this[_0x1cbf85(0x185)]['get'](_0x554bd9)??0x0;if(_0x3b500e>=_0x2ef41f)return;const _0x3e68ed=_0xfc3f04=>{const _0x309932=_0x1cbf85;if(_0xfc3f04===_0x309932(0x13e))return _0x309932(0x13b);if(_0xfc3f04===_0x309932(0x297))return _0x309932(0x20e);return _0xfc3f04;};await this['okdb'][_0x1cbf85(0x2a8)]['_writer'][_0x1cbf85(0x182)](()=>{const _0x143370=_0x1cbf85;for(const _0x5da6f5 of[_0x143370(0xaa),'procmodeack/']){for(const {key:_0x356fb9,value:_0x1fdc61}of this[_0x143370(0x185)][_0x143370(0x218)]({'start':_0x5da6f5,'end':_0x5da6f5+'\xff'})){if(typeof _0x356fb9!=='string'||!_0x356fb9[_0x143370(0x96)](_0x5da6f5))break;const _0x39cea5=_0x3e68ed(_0x1fdc61['mode']);if(_0x39cea5!==_0x1fdc61['mode'])this[_0x143370(0x185)][_0x143370(0x2ab)](_0x356fb9,{..._0x1fdc61,'mode':_0x39cea5});}}this[_0x143370(0x185)][_0x143370(0x2ab)](_0x554bd9,_0x2ef41f);});}[_0x52d956(0x26d)](){const _0x2502d2=_0x52d956;return!!this[_0x2502d2(0x185)];}[_0x52d956(0x107)](_0x54eb42,_0x4c517c){const _0x15dd3f=_0x52d956;if(!this[_0x15dd3f(0x1bb)]())return null;const _0x1a5260=_0x54eb42+'/'+_0x4c517c;return this[_0x15dd3f(0x249)](),this['_desiredOverlay'][_0x15dd3f(0xd6)](_0x1a5260)??this[_0x15dd3f(0x185)]['get'](_0x1a5260)??null;}['_refreshDesiredSnapshot'](){const _0x3088e7=_0x52d956;if(!_0x2adc6e)return;try{this[_0x3088e7(0x18a)]['_systemEnv']?.['db']?.[_0x3088e7(0x172)]?.();}catch{}}async[_0x52d956(0xa1)](_0x51a2a2,_0x12287f,_0x3c72c3){const _0x575f6c=_0x52d956;if(!this[_0x575f6c(0x1bb)]())return null;const _0x189799=_0x51a2a2+'/'+_0x12287f;this[_0x575f6c(0x249)]();const _0x3bca74=this[_0x575f6c(0x23f)][_0x575f6c(0xd6)](_0x189799)??this[_0x575f6c(0x185)][_0x575f6c(0xd6)](_0x189799)??{'version':0x0},_0x4342cc=(_0x3bca74[_0x575f6c(0x1a3)]||0x0)+0x1,_0x803aee={..._0x3bca74,..._0x3c72c3,'version':_0x4342cc,'updatedAt':Date[_0x575f6c(0x2b5)]()};this['_desiredOverlay'][_0x575f6c(0xff)](_0x189799,_0x803aee);try{await this['okdb']['_systemEnv']['_writer'][_0x575f6c(0x182)](()=>{const _0x25e93c=_0x575f6c;this[_0x25e93c(0x185)][_0x25e93c(0x2ab)](_0x189799,_0x803aee);});}finally{if(this['_desiredOverlay'][_0x575f6c(0xd6)](_0x189799)===_0x803aee)this['_desiredOverlay'][_0x575f6c(0x231)](_0x189799);}return _0x4342cc;}[_0x52d956(0x11b)](_0x4393bd){const _0xdb079f=_0x52d956;if(!this['_ensureDesired']())return[];this['_refreshDesiredSnapshot']();const _0x300059=_0x4393bd+'/',_0x3d994e=[];for(const {key:_0x4bed49,value:_0xaa6a02}of this['_desired'][_0xdb079f(0x218)]({'start':_0x300059,'end':_0x300059+'\xff'})){if(typeof _0x4bed49!=='string'||!_0x4bed49[_0xdb079f(0x96)](_0x300059))break;_0x3d994e[_0xdb079f(0x154)]({'key':_0x4bed49[_0xdb079f(0x115)](_0x300059['length']),'value':_0xaa6a02});}return _0x3d994e;}['getCmd'](_0x3c10ac){const _0x15aeb6=_0x52d956;if(!this[_0x15aeb6(0x1bb)]())return null;return this[_0x15aeb6(0x20f)][_0x15aeb6(0xd6)](_0x3c10ac)??null;}async[_0x52d956(0x1bc)](_0x2349f7,_0x4d7df9,_0x4cbf4c={}){const _0x55d2ef=_0x52d956;if(!this['_ensureDesired']())return null;let _0x3891ac;return await this[_0x55d2ef(0x18a)]['_systemEnv']['_writer'][_0x55d2ef(0x182)](()=>{const _0x3deb5d=_0x55d2ef,_0x26a263=this[_0x3deb5d(0x20f)][_0x3deb5d(0xd6)](_0x2349f7)||{'epoch':0x0};_0x3891ac=(_0x26a263[_0x3deb5d(0x139)]||0x0)+0x1,this[_0x3deb5d(0x20f)][_0x3deb5d(0x2ab)](_0x2349f7,{..._0x26a263,..._0x4cbf4c,'cmd':_0x4d7df9,'epoch':_0x3891ac,'updatedAt':Date[_0x3deb5d(0x2b5)]()});}),_0x3891ac;}}return okdbProcessRegistry={'OKDBProcessRegistry':_0x4c759e,'nodeKey':_0x940dc,'logicalKey':_0x40b874,'slotKey':_0x37d814,'PROCESS_ENV':_0x2c88c7,'NODE_TYPE':_0x4b36e9},okdbProcessRegistry;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x3af58f=_0x4a52bb;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0xbc3b95=require$$0$4,{EVENTS:_0x24c9f2,CHANGE_ACTIONS:_0x32f359}=requireOkdbEnums(),{LOOP:_0x21f1ae}=requireOkdbLoopMonitor(),_0x216896=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x58ba12=0x5,_0x4a7e2e=0x2710;class _0x3afe62 extends _0xbc3b95{constructor(_0x52861a,_0x2195e8={}){const _0x1cdc30=_0x2868;super(),this[_0x1cdc30(0x18a)]=_0x52861a,this[_0x1cdc30(0x294)]=_0x2195e8[_0x1cdc30(0x273)]??_0x216896,this[_0x1cdc30(0x1b6)]=_0x2195e8['flushDebounce']??_0x58ba12,this['_dedupeMax']=_0x2195e8[_0x1cdc30(0x232)]??_0x4a7e2e,this[_0x1cdc30(0xfb)]=![],this['_cursors']=new Map(),this[_0x1cdc30(0x1e8)]=new Map(),this[_0x1cdc30(0x21c)]=new Map(),this[_0x1cdc30(0x1ba)]=null,this[_0x1cdc30(0xca)]=![],this[_0x1cdc30(0x233)]=new Set(),this['_onItem']=_0x2ad9d4=>this[_0x1cdc30(0x133)](_0x2ad9d4),this[_0x1cdc30(0xa3)]=_0x399e9c=>this[_0x1cdc30(0xfe)](_0x399e9c),this[_0x1cdc30(0x10c)]=()=>this[_0x1cdc30(0xb3)]();}[_0x3af58f(0x27d)](){const _0x5699ae=_0x3af58f;if(this[_0x5699ae(0xfb)])return;this[_0x5699ae(0xfb)]=!![];for(const [_0x2d97e1,_0x3d9c1c]of this[_0x5699ae(0x18a)][_0x5699ae(0x223)]){if(_0x2d97e1[_0x5699ae(0x96)]('~'))continue;try{_0x3d9c1c['_enableChangelog']();}catch{}}for(const [_0x2111ec,_0xf2aa40]of this[_0x5699ae(0x18a)][_0x5699ae(0x223)]){if(_0x2111ec[_0x5699ae(0x96)]('~'))continue;try{this[_0x5699ae(0x1e8)][_0x5699ae(0xff)](_0x2111ec,_0xf2aa40[_0x5699ae(0x23c)]()||0x0);}catch{}}const {events:_0x35a403}=this['okdb'];_0x35a403['on'](_0x24c9f2[_0x5699ae(0xbf)],this[_0x5699ae(0x24e)]),_0x35a403['on'](_0x24c9f2[_0x5699ae(0x150)],this[_0x5699ae(0x24e)]),_0x35a403['on'](_0x24c9f2[_0x5699ae(0x122)],this[_0x5699ae(0x24e)]),_0x35a403['on'](_0x24c9f2[_0x5699ae(0x17b)],this[_0x5699ae(0xa3)]),_0x35a403[_0x5699ae(0x90)](_0x24c9f2[_0x5699ae(0x174)],this[_0x5699ae(0x10c)]);}[_0x3af58f(0xb3)](){const _0x44d492=_0x3af58f;if(!this[_0x44d492(0xfb)])return;this['_started']=![];const {events:_0x566a61}=this[_0x44d492(0x18a)];_0x566a61['off'](_0x24c9f2[_0x44d492(0xbf)],this[_0x44d492(0x24e)]),_0x566a61[_0x44d492(0x15e)](_0x24c9f2['ITEM_UPDATE'],this[_0x44d492(0x24e)]),_0x566a61[_0x44d492(0x15e)](_0x24c9f2[_0x44d492(0x122)],this['_onItem']),_0x566a61[_0x44d492(0x15e)](_0x24c9f2[_0x44d492(0x17b)],this[_0x44d492(0xa3)]);try{_0x566a61[_0x44d492(0x15e)](_0x24c9f2['SYSTEM_STOPPED'],this[_0x44d492(0x10c)]);}catch{}this['_flushTimer']&&(clearTimeout(this[_0x44d492(0x1ba)]),this[_0x44d492(0x1ba)]=null),this[_0x44d492(0x21c)][_0x44d492(0xd1)](),this[_0x44d492(0x17a)][_0x44d492(0xd1)](),this[_0x44d492(0x1e8)][_0x44d492(0xd1)](),this[_0x44d492(0x233)][_0x44d492(0xd1)]();}['_dedupeKey'](_0x4bfbd6,_0x9a540f,_0x2e4032,_0x42af35){return _0x4bfbd6+'\x00'+_0x9a540f+'\x00'+_0x2e4032+'\x00'+_0x42af35;}[_0x3af58f(0xa6)](_0x55077a,_0x267e66,_0x136df3,_0x23c61c){const _0x3a15de=_0x3af58f,_0x50c446=this[_0x3a15de(0x220)](_0x55077a,_0x267e66,_0x136df3,_0x23c61c);if(this['_seen'][_0x3a15de(0x1f8)](_0x50c446))return![];this['_seen'][_0x3a15de(0x11f)](_0x50c446);if(this[_0x3a15de(0x233)][_0x3a15de(0x20c)]>this['_dedupeMax']){const _0x27fb77=this[_0x3a15de(0x233)][_0x3a15de(0x244)]()[_0x3a15de(0x19c)]()[_0x3a15de(0x1ac)];this[_0x3a15de(0x233)][_0x3a15de(0x231)](_0x27fb77);}return!![];}[_0x3af58f(0x133)](_0x872489){const _0x1c41d3=_0x3af58f;if(!this[_0x1c41d3(0xfb)]||!_0x872489)return;const {env:_0x15b9a,type:_0x2a3d3a,key:_0x3be171,clock:_0x1a2ed2,origin:_0xced618,action:_0xc36606,newValue:_0x57777c,oldValue:_0x366ca4}=_0x872489;if(_0x15b9a==null||_0x2a3d3a==null||_0x3be171==null)return;if(typeof _0x15b9a===_0x1c41d3(0x190)&&_0x15b9a[_0x1c41d3(0x96)]('~'))return;if(typeof _0x2a3d3a===_0x1c41d3(0x190)&&_0x2a3d3a[_0x1c41d3(0x96)]('~'))return;if(!this['_markSeen'](_0x15b9a,_0x2a3d3a,_0x3be171,_0x1a2ed2))return;const _0x57ccef=_0xc36606===_0x32f359[_0x1c41d3(0xb4)]?_0x1c41d3(0x2c0):_0x1c41d3(0x2ab);this[_0x1c41d3(0x1cf)](_0x1c41d3(0x1c6),{'env':_0x15b9a,'type':_0x2a3d3a,'key':_0x3be171,'op':_0x57ccef,'clock':_0x1a2ed2,'origin':_0xced618,'value':_0x57ccef==='remove'?null:_0x57777c,'prevValue':_0x366ca4});}['_handlePoke'](_0x115904){const _0x3e8117=_0x3af58f;if(!this[_0x3e8117(0xfb)])return;if(!_0x115904||typeof _0x115904[_0x3e8117(0x1c2)]!=='string'||typeof _0x115904[_0x3e8117(0x23d)]!==_0x3e8117(0x190))return;const {env:_0x27b2e1,type:_0x11a588}=_0x115904;if(_0x27b2e1[_0x3e8117(0x96)]('~')||_0x11a588[_0x3e8117(0x96)]('~'))return;this[_0x3e8117(0x21c)]['set'](_0x27b2e1+'\x00'+_0x11a588,{'env':_0x27b2e1,'type':_0x11a588}),this[_0x3e8117(0x1a2)]();}[_0x3af58f(0x1a2)](){const _0x313756=_0x3af58f;if(this['_flushTimer'])return;const _0x2f056a=()=>{const _0x10b492=_0x2868;this[_0x10b492(0x1ba)]=null,this['_drain']()[_0x10b492(0x1d7)](()=>{});};this[_0x313756(0x1ba)]=setTimeout(_0x2f056a,this[_0x313756(0x1b6)]>0x0?this[_0x313756(0x1b6)]:0x0);}async[_0x3af58f(0xde)](){const _0x4b43be=_0x3af58f;if(this['_draining']){this[_0x4b43be(0x1a2)]();return;}this[_0x4b43be(0xca)]=!![];try{const _0x25059e=[...this[_0x4b43be(0x21c)][_0x4b43be(0x244)]()];this[_0x4b43be(0x21c)]['clear']();let _0x3c2e41=![];for(const {env:_0x2fb9a8,type:_0x2bc39e}of _0x25059e){try{const _0x279e8d=await this['_drainOne'](_0x2fb9a8,_0x2bc39e);if(_0x279e8d)_0x3c2e41=!![];}catch{this[_0x4b43be(0x21c)][_0x4b43be(0xff)](_0x2fb9a8+'\x00'+_0x2bc39e,{'env':_0x2fb9a8,'type':_0x2bc39e}),_0x3c2e41=!![];}}if(_0x3c2e41||this[_0x4b43be(0x21c)][_0x4b43be(0x20c)]>0x0)this['_scheduleFlush']();}finally{this['_draining']=![];}}async[_0x3af58f(0x1df)](_0xb5b8ae,_0x13c65c){const _0x5f49f9=_0x3af58f,_0x4d19a8=await this['okdb']['_openEnvLazy'](_0xb5b8ae),_0x1c39ea=_0xb5b8ae+'\x00'+_0x13c65c;!this[_0x5f49f9(0x17a)]['has'](_0x1c39ea)&&(!this[_0x5f49f9(0x1e8)][_0x5f49f9(0x1f8)](_0xb5b8ae)&&(_0x4d19a8['_enableChangelog'](),this[_0x5f49f9(0x1e8)][_0x5f49f9(0xff)](_0xb5b8ae,_0x4d19a8[_0x5f49f9(0x23c)]()||0x0)),this['_cursors'][_0x5f49f9(0xff)](_0x1c39ea,this['_baselines']['get'](_0xb5b8ae)));const _0x2c3df0=this['_cursors'][_0x5f49f9(0xd6)](_0x1c39ea),_0x16ec3c=_0x4d19a8[_0x5f49f9(0x23c)](_0x13c65c)||0x0;if(_0x16ec3c<=_0x2c3df0)return![];const _0x557a4c=_0x2c3df0+this[_0x5f49f9(0x294)],_0x159134=Math[_0x5f49f9(0xa0)](_0x16ec3c,_0x557a4c),_0x50376b=_0x21f1ae['enabled']?_0x21f1ae[_0x5f49f9(0x2b5)]():0x0,_0x41a7e3=Array[_0x5f49f9(0x1d6)](_0x4d19a8[_0x5f49f9(0x16e)](_0x13c65c,_0x2c3df0+0x1,_0x159134));let _0x34612d=_0x2c3df0;for(const _0x4fcc65 of _0x41a7e3){const {clock:_0x23b9eb,key:_0x337c7b,action:_0x52c2e2,origin:_0x124def}=_0x4fcc65;if(_0x23b9eb>_0x34612d)_0x34612d=_0x23b9eb;if(_0x337c7b==null)continue;if(!this[_0x5f49f9(0xa6)](_0xb5b8ae,_0x13c65c,_0x337c7b,_0x23b9eb))continue;let _0x348ede,_0x2b2f8c;if(_0x52c2e2===_0x32f359[_0x5f49f9(0xb4)])_0x348ede='remove',_0x2b2f8c=null;else{const _0x55376e=_0x4d19a8[_0x5f49f9(0xd6)](_0x13c65c,_0x337c7b);_0x55376e==null?(_0x348ede='remove',_0x2b2f8c=null):(_0x348ede=_0x5f49f9(0x2ab),_0x2b2f8c=_0x55376e);}this[_0x5f49f9(0x1cf)](_0x5f49f9(0x1c6),{'env':_0xb5b8ae,'type':_0x13c65c,'key':_0x337c7b,'op':_0x348ede,'clock':_0x23b9eb,'origin':_0x124def,'value':_0x2b2f8c});}if(_0x21f1ae[_0x5f49f9(0x121)])_0x21f1ae['note'](_0x5f49f9(0x29a)+_0xb5b8ae+':'+_0x13c65c,_0x21f1ae['now']()-_0x50376b,'n='+_0x41a7e3[_0x5f49f9(0x27a)]);return this[_0x5f49f9(0x17a)][_0x5f49f9(0xff)](_0x1c39ea,Math[_0x5f49f9(0x130)](_0x34612d,_0x159134)),_0x4d19a8[_0x5f49f9(0x23c)](_0x13c65c)>_0x159134;}['status'](){const _0x4b9956=_0x3af58f;return{'started':this[_0x4b9956(0xfb)],'quantum':this['_quantum'],'flushDebounce':this[_0x4b9956(0x1b6)],'cursors':Object[_0x4b9956(0xc7)]([...this[_0x4b9956(0x17a)][_0x4b9956(0xd4)]()][_0x4b9956(0x9d)](([_0x405fcd,_0x4f9fa9])=>[_0x405fcd[_0x4b9956(0x1c5)]('\x00',':'),_0x4f9fa9])),'pending':this[_0x4b9956(0x21c)]['size'],'seen':this[_0x4b9956(0x233)]['size']};}}return _0x3afe62[_0x3af58f(0xb7)]=_0x216896,okdbChangefeed={'OKDBChangefeed':_0x3afe62},okdbChangefeed;}var okdbCluster,hasRequiredOkdbCluster;function requireOkdbCluster(){const _0x2a0a97=_0x4a52bb;if(hasRequiredOkdbCluster)return okdbCluster;hasRequiredOkdbCluster=0x1;const _0x55bf47=require$$1$1,_0x2b1551=require$$1,{EVENTS:_0x5c0c04}=requireOkdbEnums(),_0x44c939=require$$0$3,{slotKey:_0x1f86ba}=requireOkdbProcessRegistry(),_0x5d1d9a=0xfa,_0x2864fb=0xfa0,_0x4c2c2b=0x5,_0x57fa18=0x2710,_0x3fc7d9=0xbb8,_0x5116f7=0x7d0,_0x51445a=_0x2a0a97(0x105),_0x1aa5e9=_0x2a0a97(0x228),_0x395c44=_0x2a0a97(0x1a7),_0x2da280=_0x2a0a97(0x1f3),_0x5b98bd=[_0x5c0c04[_0x2a0a97(0x1aa)],_0x5c0c04[_0x2a0a97(0x252)],_0x5c0c04[_0x2a0a97(0x140)],_0x5c0c04[_0x2a0a97(0x91)],_0x5c0c04[_0x2a0a97(0x119)],_0x5c0c04[_0x2a0a97(0x95)],_0x5c0c04[_0x2a0a97(0x104)],_0x5c0c04[_0x2a0a97(0x212)],'processor:ready',_0x2a0a97(0x1d4),_0x2a0a97(0x286),'processor:paused',_0x2a0a97(0xd3),_0x2a0a97(0xcb)],_0x495eae=Number(process.env.OKDB_CLUSTER_STATUS_MS)||0x7d0;function _0x43c988({workers:_0x1aa5d4,makeOkdb:_0x281758,port:_0x3a813e,primaryOkdb:_0x441895,childEntry:childEntry=![],workerEnv:workerEnv=null,workerRole:workerRole=null,listenAddr:listenAddr=null}={}){const _0x566bdc=_0x2a0a97;if(_0x55bf47[_0x566bdc(0xd9)])return childEntry&&_0x55bf47[_0x566bdc(0x135)]({'exec':_0x2b1551['join'](__dirname,_0x566bdc(0x240)),'args':[],'execArgv':((()=>{const _0x550e61=_0x566bdc,_0x464e68=[];for(let _0x579f23=0x0;_0x579f23<process[_0x550e61(0x195)]['length'];_0x579f23++){const _0x59a0c0=process[_0x550e61(0x195)][_0x579f23];if(_0x59a0c0[_0x550e61(0x96)](_0x550e61(0xba))||_0x59a0c0['startsWith']('--watch')||_0x59a0c0['startsWith'](_0x550e61(0x19d)))continue;if(_0x59a0c0==='-e'||_0x59a0c0==='--eval'||_0x59a0c0==='-p'||_0x59a0c0===_0x550e61(0x258)){_0x579f23++;continue;}_0x464e68[_0x550e61(0x154)](_0x59a0c0);}return _0x464e68;})())}),_0x3d69b9({'workers':_0x1aa5d4,'port':_0x3a813e,'primaryOkdb':_0x441895,'workerEnv':workerEnv,'workerRole':workerRole,'listenAddr':listenAddr??':'+_0x3a813e});return _0x17170f({'makeOkdb':_0x281758,'port':_0x3a813e});}function _0x3d69b9({workers:_0x50955f,port:_0x5c569a,primaryOkdb:_0x296751,workerEnv:_0x1b2024,workerRole:_0x923957,listenAddr:_0x51c54b}){const _0xd199f=_0x2a0a97,_0x279ea5=new Map(),_0x1f5bfa=new Map();let _0x1ff651=![];const _0x24ce86=_0x525299=>_0x525299?.[_0xd199f(0x1b2)],_0x1575d0=_0x201128=>{const _0x5beb77=_0xd199f,_0x288d54=_0x55bf47[_0x5beb77(0x22f)]({...process.env,..._0x1b2024||{},'OKDB_CLUSTER_SLOT':String(_0x201128)});return _0x288d54['__okdbSlot']=_0x201128,_0x279ea5[_0x5beb77(0xff)](_0x288d54[_0x5beb77(0x24b)][_0x5beb77(0x2af)],{'worker':_0x288d54,'startedAt':Date[_0x5beb77(0x2b5)](),'slot':_0x201128}),_0x288d54['on'](_0x5beb77(0x112),_0x2dc6c7=>{const _0xd7c969=_0x5beb77;console[_0xd7c969(0x1a7)](_0xd7c969(0x8c)+_0x288d54[_0xd7c969(0x24b)][_0xd7c969(0x2af)]+_0xd7c969(0x193)+(_0x2dc6c7?.[_0xd7c969(0x10b)]??_0x2dc6c7));}),_0x288d54['on'](_0x5beb77(0xb2),()=>_0x3aa3cf()),_0x288d54;},_0x211d1c=_0x513985=>{const _0x41da12=_0xd199f;for(const {worker:_0x232e84}of _0x279ea5[_0x41da12(0x244)]()){if(_0x232e84[_0x41da12(0x1e1)]()||!_0x232e84['isConnected']())continue;try{_0x232e84[_0x41da12(0x2b8)](_0x513985);}catch{}}};_0x296751?.['_activateProcesses']?.({'kind':'primary','listenAddr':_0x51c54b})[_0xd199f(0x1d7)](()=>{}),_0x296751?.['processes']?.[_0xd199f(0x29b)]?.({'workersConfigured':_0x50955f});const _0x582101={'engines':!![],'processors':!![],'compaction':!![],..._0x923957,'http':!![]},_0x3aa3cf=()=>{const _0x286fdc=_0xd199f,_0x28d60b=_0x296751?.[_0x286fdc(0x278)];if(!_0x28d60b||!_0x28d60b[_0x286fdc(0x9f)])return;const _0x354e40=_0x28d60b[_0x286fdc(0xb1)];for(const {worker:_0x3daea0,startedAt:_0xeb2589,slot:_0x366871,stats:_0x564aec,processing:_0x462a47}of _0x279ea5['values']()){if(_0x3daea0[_0x286fdc(0x1e1)]())continue;const _0x21dd0b=_0x28d60b[_0x286fdc(0x26d)]?.()&&_0x28d60b[_0x286fdc(0x107)](_0x286fdc(0xe2),_0x75929(_0x366871))?.['decommission']===!![];_0x28d60b[_0x286fdc(0x1d1)]({'pid':_0x3daea0['process'][_0x286fdc(0x2af)],'startedAt':_0xeb2589,'kind':_0x286fdc(0x100),'supervisorKey':_0x354e40,'slot':_0x366871,'slotKey':_0x75929(_0x366871),'role':_0x582101,'listenAddr':_0x51c54b,'lifecycle':_0x21dd0b?_0x286fdc(0x1d5):_0x286fdc(0x28e),'processing':_0x462a47??null,'stats':_0x564aec??null})[_0x286fdc(0x1d7)](()=>{});}},_0x75929=_0x43b011=>_0x1f86ba(_0xd199f(0xc4)+_0x5c569a,_0x43b011),_0x273dea=_0x465f36=>{const _0x4b5262=_0xd199f,_0xba9caa=_0x296751?.[_0x4b5262(0x278)];if(!_0xba9caa?.[_0x4b5262(0x26d)]?.())return![];return _0xba9caa[_0x4b5262(0x107)](_0x4b5262(0xe2),_0x75929(_0x465f36))?.[_0x4b5262(0xf9)]===!![];};for(let _0x562940=0x0;_0x562940<_0x50955f;_0x562940++){const _0x22bd49=_0x273dea(_0x562940);_0x1f5bfa['set'](_0x562940,{'deaths':[],'consecutiveFailures':0x0,'dead':_0x22bd49,'respawnTimer':null}),_0x22bd49?console[_0xd199f(0x1a7)]('[okdb-cluster]\x20slot='+_0x562940+_0xd199f(0xbb)):_0x1575d0(_0x562940);}const _0x52a32e=()=>{const _0x48e05=_0xd199f,_0x4689dc=_0x296751?.[_0x48e05(0x278)];if(!_0x4689dc?.[_0x48e05(0x9f)]||!_0x4689dc[_0x48e05(0x26d)]?.())return;for(const [_0x502867,_0x493bd4]of _0x1f5bfa[_0x48e05(0xd4)]()){const _0x595d4f=_0x4689dc[_0x48e05(0x107)](_0x48e05(0xe2),_0x75929(_0x502867)),_0x3b1f83=_0x595d4f?.[_0x48e05(0xf9)]===!![],_0x221b6b=_0x595d4f?.['kill']===!![];if(_0x3b1f83&&!_0x493bd4[_0x48e05(0x1c3)]){_0x493bd4[_0x48e05(0x1c3)]=!![];_0x493bd4[_0x48e05(0x110)]&&(clearTimeout(_0x493bd4[_0x48e05(0x110)]),_0x493bd4[_0x48e05(0x110)]=null);for(const {worker:_0x5503d5}of _0x279ea5['values']()){if(_0x24ce86(_0x5503d5)!==_0x502867||_0x5503d5[_0x48e05(0x1e1)]())continue;try{if(_0x221b6b)_0x5503d5[_0x48e05(0x24b)][_0x48e05(0x295)](_0x48e05(0x14c));else _0x5503d5['isConnected']()&&_0x5503d5[_0x48e05(0x1b4)]();}catch{}}console[_0x48e05(0x1a7)](_0x48e05(0x12f)+(_0x221b6b?'hard-killed':'decommissioned')+_0x48e05(0x201)+_0x502867+_0x48e05(0x26f));}else{if(!_0x3b1f83&&_0x493bd4[_0x48e05(0x1c3)]&&_0x595d4f){_0x493bd4['dead']=![],_0x493bd4[_0x48e05(0x262)]=[],_0x493bd4[_0x48e05(0x2a6)]=0x0;const _0x3ee2cf=[..._0x279ea5[_0x48e05(0x244)]()]['some'](({worker:_0x496904})=>_0x24ce86(_0x496904)===_0x502867&&!_0x496904['isDead']());!_0x3ee2cf&&!_0x1ff651&&(_0x1575d0(_0x502867),console[_0x48e05(0x1a7)](_0x48e05(0x209)+_0x502867));}}}},_0x8cd766=()=>{try{_0x52a32e();}catch{}};_0x296751?.[_0xd199f(0x263)]?.['on']?.(_0x5c0c04['SYSTEM_PROC'],_0x8cd766);const _0x2c3175=[];if(_0x296751?.[_0xd199f(0x263)]?.['on'])for(const _0x16b8d0 of _0x5b98bd){const _0x327b5a=_0x238462=>{_0x211d1c({[_0x51445a]:_0x1aa5e9,'event':_0x16b8d0,'data':_0x238462??{}});};_0x296751[_0xd199f(0x263)]['on'](_0x16b8d0,_0x327b5a),_0x2c3175['push']({'event':_0x16b8d0,'handler':_0x327b5a});}const _0x154ecb=setInterval(()=>{_0x52a32e(),_0x3aa3cf();},_0x495eae);_0x154ecb[_0xd199f(0x277)]?.();const _0x2103a2=(_0x2e34b8,_0xc8feb4)=>{const _0x127bb5=_0xd199f;if(!_0xc8feb4||typeof _0xc8feb4!=='object'||_0xc8feb4[_0x51445a]!==_0x395c44)return;if(!_0x296751?.[_0x127bb5(0x1a7)]?.[_0x127bb5(0x2b0)])return;const _0x188e20=_0xc8feb4['entry']||{};_0x296751[_0x127bb5(0x1a7)][_0x127bb5(0x2b0)]({..._0x188e20,'msg':'[w'+_0xc8feb4[_0x127bb5(0xe2)]+']\x20'+(_0x188e20[_0x127bb5(0x292)]??''),'meta':{..._0x188e20[_0x127bb5(0x197)]||{},'worker':_0xc8feb4[_0x127bb5(0xe2)],'workerPid':_0xc8feb4[_0x127bb5(0x2af)]}});};_0x55bf47['on'](_0xd199f(0x10b),_0x2103a2);const _0x2b4876=(_0x1fe6aa,_0x4219ed)=>{const _0x513f82=_0xd199f;if(!_0x4219ed||typeof _0x4219ed!==_0x513f82(0x283)||_0x4219ed[_0x51445a]!==_0x2da280)return;const _0x5b40da=_0x279ea5['get'](_0x1fe6aa[_0x513f82(0x24b)]['pid']);if(_0x5b40da){_0x5b40da[_0x513f82(0x1f3)]={..._0x4219ed['stats'],'at':Date['now']()};if(_0x4219ed[_0x513f82(0x1ea)]!==undefined)_0x5b40da[_0x513f82(0x1ea)]=_0x4219ed[_0x513f82(0x1ea)];}};_0x55bf47['on']('message',_0x2b4876),_0x55bf47['on'](_0xd199f(0x24c),(_0x2d3ac4,_0x5e314e,_0x1b2983)=>{const _0xb78ea8=_0xd199f,_0x1eefbf=_0x2d3ac4[_0xb78ea8(0x24b)][_0xb78ea8(0x2af)],_0x22f908=_0x24ce86(_0x2d3ac4),_0x48a69=_0x279ea5[_0xb78ea8(0xd6)](_0x1eefbf);if(_0x48a69&&_0x296751?.[_0xb78ea8(0x278)])_0x296751['processes'][_0xb78ea8(0xec)](_0x1eefbf+':'+_0x48a69[_0xb78ea8(0xf7)])[_0xb78ea8(0x1d7)](()=>{});_0x279ea5['delete'](_0x1eefbf),console[_0xb78ea8(0x1a7)](_0xb78ea8(0x8c)+_0x1eefbf+_0xb78ea8(0x2b7)+(_0x22f908??'?')+_0xb78ea8(0x280)+(_0xb78ea8(0x143)+_0x5e314e+_0xb78ea8(0x238)+(_0x1b2983??_0xb78ea8(0x175))+_0xb78ea8(0x265)+_0x279ea5[_0xb78ea8(0x20c)]+_0xb78ea8(0x1f5))),_0x3aa3cf();if(_0x1ff651||_0x22f908==null)return;const _0x20daf5=_0x1f5bfa['get'](_0x22f908);if(!_0x20daf5||_0x20daf5[_0xb78ea8(0x1c3)])return;const _0x1c8686=Date[_0xb78ea8(0x2b5)]();_0x20daf5[_0xb78ea8(0x262)][_0xb78ea8(0x154)](_0x1c8686),_0x20daf5[_0xb78ea8(0x262)]=_0x20daf5[_0xb78ea8(0x262)][_0xb78ea8(0x289)](_0x24174b=>_0x1c8686-_0x24174b<=_0x57fa18);if(_0x20daf5['deaths']['length']>=_0x4c2c2b){_0x20daf5[_0xb78ea8(0x1c3)]=!![],console[_0xb78ea8(0x112)](_0xb78ea8(0x1ed)+_0x22f908+_0xb78ea8(0x26b)+_0x20daf5[_0xb78ea8(0x262)][_0xb78ea8(0x27a)]+_0xb78ea8(0x16d)+(_0x57fa18+_0xb78ea8(0x1b7)+_0x279ea5[_0xb78ea8(0x20c)]+_0xb78ea8(0xe5)));return;}_0x20daf5[_0xb78ea8(0x2a6)]++;const _0x422e40=Math[_0xb78ea8(0xa0)](_0x2864fb,_0x5d1d9a*0x2**(_0x20daf5[_0xb78ea8(0x2a6)]-0x1));console[_0xb78ea8(0x1a7)]('[okdb-cluster]\x20respawning\x20worker\x20slot='+_0x22f908+'\x20in\x20'+_0x422e40+'ms\x20(attempt\x20'+_0x20daf5[_0xb78ea8(0x2a6)]+')'),_0x20daf5[_0xb78ea8(0x110)]=setTimeout(()=>{const _0x49b123=_0xb78ea8;_0x20daf5[_0x49b123(0x110)]=null;if(_0x1ff651||_0x20daf5[_0x49b123(0x1c3)])return;const _0x5ba431=_0x1575d0(_0x22f908);_0x5ba431[_0x49b123(0x90)](_0x49b123(0x19a),()=>{const _0x5dc631=_0x49b123;if(_0x1f5bfa['get'](_0x22f908)===_0x20daf5)_0x20daf5[_0x5dc631(0x2a6)]=0x0;});},_0x422e40),_0x20daf5['respawnTimer'][_0xb78ea8(0x277)]?.();});const _0x59edd3=[..._0x279ea5[_0xd199f(0x255)]()];console[_0xd199f(0x1a7)](_0xd199f(0x229)+process['pid']+_0xd199f(0x187)+_0x50955f+_0xd199f(0x23e)+_0x5c569a+':\x20'+('['+_0x59edd3[_0xd199f(0x173)](',\x20')+']'));const _0x40f0f5={'_isClusterController':!![],'port':_0x5c569a,'primaryOkdb':_0x296751??null,'status'(){const _0x54fb39=_0xd199f;return{'clustered':!![],'primaryPid':process[_0x54fb39(0x2af)],'port':_0x5c569a,'primaryRole':_0x296751?.[_0x54fb39(0x1c4)]??null,'processorPid':null,'supervisorPid':process[_0x54fb39(0x2af)],'workers':[..._0x279ea5['values']()]['map'](({worker:_0x268e6e})=>({'pid':_0x268e6e['process']['pid'],'id':_0x268e6e['id'],'dead':_0x268e6e[_0x54fb39(0x1e1)]()}))};},async 'close'(){const _0x458720=_0xd199f;_0x1ff651=!![];for(const _0x4cf1e2 of _0x1f5bfa[_0x458720(0x244)]()){_0x4cf1e2['dead']=!![],_0x4cf1e2[_0x458720(0x110)]&&(clearTimeout(_0x4cf1e2[_0x458720(0x110)]),_0x4cf1e2[_0x458720(0x110)]=null);}clearInterval(_0x154ecb),_0x55bf47[_0x458720(0x15e)]('message',_0x2103a2),_0x55bf47[_0x458720(0x15e)](_0x458720(0x10b),_0x2b4876),_0x296751?.[_0x458720(0x263)]?.[_0x458720(0x15e)]?.(_0x5c0c04['SYSTEM_PROC'],_0x8cd766);if(_0x296751?.[_0x458720(0x263)]?.['off'])for(const {event:_0x1fda28,handler:_0x177cb9}of _0x2c3175){try{_0x296751[_0x458720(0x263)]['off'](_0x1fda28,_0x177cb9);}catch{}}_0x2c3175[_0x458720(0x27a)]=0x0;const _0x56ac7d=[..._0x279ea5[_0x458720(0x244)]()]['map'](({worker:_0x1f1e4a})=>_0x1f1e4a);if(_0x56ac7d[_0x458720(0x27a)]===0x0)return;await Promise[_0x458720(0x148)](_0x56ac7d['map'](_0x4550a0=>new Promise(_0xd075a7=>{const _0x161ae3=_0x458720;if(_0x4550a0[_0x161ae3(0x1e1)]()){_0xd075a7();return;}let _0x1c9a7c=![];const _0x480ef4=()=>{if(_0x1c9a7c)return;_0x1c9a7c=!![];if(_0xdb9c59)clearTimeout(_0xdb9c59);_0xd075a7();};_0x4550a0['once'](_0x161ae3(0x24c),_0x480ef4);const _0xdb9c59=setTimeout(()=>{const _0xf93a3=_0x161ae3;try{_0x4550a0['process'][_0xf93a3(0x295)]();}catch{}},_0x3fc7d9+0x1f4);_0xdb9c59['unref']?.();try{_0x4550a0[_0x161ae3(0x1b4)]();}catch{try{_0x4550a0['process'][_0x161ae3(0x295)]();}catch{}}})));}};return _0x40f0f5;}async function _0x17170f({makeOkdb:_0x1ca8dd,port:_0x9410e3}){const _0x2e2773=_0x2a0a97,_0xdd00c9=await _0x1ca8dd();return _0x5e61af(_0xdd00c9),_0xdd00c9[_0x2e2773(0xb9)][_0x2e2773(0x242)](_0x9410e3);}function _0x5e61af(_0x48e3e1){const _0x4b83d6=_0x2a0a97;if(!_0x48e3e1||_0x48e3e1[_0x4b83d6(0x291)])return;_0x48e3e1['_clusterWorkerAttached']=!![];try{const {OKDBChangefeed:_0x5384ab}=requireOkdbChangefeed(),_0x1431df=_0x48e3e1['_adminRelay'];if(_0x1431df&&typeof _0x1431df['attachFeed']===_0x4b83d6(0x25e)){const _0x44da3e=new _0x5384ab(_0x48e3e1);_0x44da3e[_0x4b83d6(0x27d)](),_0x1431df[_0x4b83d6(0x1e7)](_0x44da3e),_0x48e3e1['_changefeed']=_0x44da3e;}}catch(_0x5245c4){_0x48e3e1['log']?.[_0x4b83d6(0x9a)]?.(_0x4b83d6(0x23b)+(_0x5245c4?.['message']??_0x5245c4),{'feature':_0x4b83d6(0x257)});}const _0x15cf69=_0x30a6a7=>{const _0x1e4cec=_0x4b83d6;if(!_0x30a6a7||typeof _0x30a6a7!==_0x1e4cec(0x283)||_0x30a6a7[_0x51445a]==null)return;if(_0x30a6a7[_0x51445a]===_0x1aa5e9)try{_0x48e3e1['_adminRelay']?.[_0x1e4cec(0x214)]?.(_0x30a6a7[_0x1e4cec(0x1bd)],_0x30a6a7[_0x1e4cec(0x2bf)]);}catch{}};process['on']('message',_0x15cf69),_0x48e3e1['_clusterOnMessage']=_0x15cf69;{let _0x937a84=process['cpuUsage'](),_0x2586b3=Date[_0x4b83d6(0x2b5)]();const _0x16b81f=()=>{const _0x45fc59=_0x4b83d6;if(typeof process[_0x45fc59(0x2b8)]!==_0x45fc59(0x25e)||!process['connected'])return;const _0x291d4b=Date[_0x45fc59(0x2b5)](),_0x5c3fbc=process[_0x45fc59(0x1da)](),_0x77c47f=(_0x291d4b-_0x2586b3)*0x3e8,_0x5dcac6=_0x5c3fbc[_0x45fc59(0x2be)]-_0x937a84[_0x45fc59(0x2be)]+(_0x5c3fbc['system']-_0x937a84[_0x45fc59(0x15b)]),_0x552ef4=_0x77c47f>0x0?Math['min'](0x64,Math['round'](_0x5dcac6/(_0x77c47f*(_0x44c939[_0x45fc59(0xc1)]()[_0x45fc59(0x27a)]||0x1))*0x64)):0x0;_0x937a84=_0x5c3fbc,_0x2586b3=_0x291d4b;const _0x1b2884=process[_0x45fc59(0xef)]();let _0x4b2f9f=null;try{_0x4b2f9f=_0x48e3e1[_0x45fc59(0x1c4)]?.[_0x45fc59(0x1a0)]?_0x48e3e1[_0x45fc59(0x278)]?.[_0x45fc59(0x128)]?.()??null:null;}catch{}try{process[_0x45fc59(0x2b8)]({[_0x51445a]:_0x2da280,'stats':{'rss':_0x1b2884[_0x45fc59(0x192)],'heapUsed':_0x1b2884['heapUsed'],'heapTotal':_0x1b2884['heapTotal'],'external':_0x1b2884[_0x45fc59(0x1ae)],'cpuPct':_0x552ef4,'cpuWindowMs':Math['round'](_0x77c47f/0x3e8)||null},'processing':_0x4b2f9f});}catch{}},_0x36bd2f=Math[_0x4b83d6(0x130)](0x3e8,Number(process.env.OKDB_STATS_INTERVAL_MS)||0x1388),_0x5220c3=setInterval(_0x16b81f,_0x36bd2f);_0x5220c3[_0x4b83d6(0x277)]?.(),_0x16b81f();for(const _0x194776 of['processor:paused',_0x4b83d6(0xd3)]){_0x48e3e1['events']?.['on']?.(_0x194776,()=>{try{_0x16b81f();}catch{}});}}let _0x287f86=![];const _0x245153=async _0x30c6a9=>{const _0x54d183=_0x4b83d6;if(_0x287f86)return;_0x287f86=!![];const _0x4c3028=setTimeout(()=>process[_0x54d183(0x24c)](_0x30c6a9),_0x3fc7d9);_0x4c3028[_0x54d183(0x277)]?.();try{await _0x48e3e1[_0x54d183(0x1e9)]?.();}catch{}process[_0x54d183(0x24c)](_0x30c6a9);};process['on'](_0x4b83d6(0x1b4),()=>_0x245153(0x0));if(process['platform']!=='win32'){const _0x5ad08e=setInterval(()=>{const _0x82baee=_0x4b83d6;if(process[_0x82baee(0x168)]===0x1)_0x245153(0x0);},_0x5116f7);_0x5ad08e['unref']?.(),_0x48e3e1['_clusterOrphanWatch']=_0x5ad08e;}}return okdbCluster={'runClustered':_0x43c988,'attachWorkerCluster':_0x5e61af},okdbCluster;}var hasRequiredOkdbHttpWorkerChild;function _0x1176(){const _0x393110=['external','signalWant','mean','recent\x20writes\x20(newest\x20first)','__okdbSlot','reset','disconnect','txn:rollback','_flushDebounce','ms\x20—\x20giving\x20up\x20on\x20this\x20slot;\x20','_key','_selfKey','_flushTimer','_ensureDesired','bumpCmd','event','_coordinator','bus:proc','(worst\x20','migrations','env','dead','role','replace','change','item:create','trim','_role','ensureType','_log','SWAP','_isReader','isHeld','emit','crypto','publishChildRow','markClosed','stderr','processor:progress','decommissioning','from','catch','dropIndex','sandbox','cpuUsage','http\x20worker\x20child\x20failed:\x20','SYNC_COMMITS','_wantDbHandle','attach','_drainOne','system:stopped','isDead','creating','_migrateVocab','listenAddr','_report','_lastCpuWindowMs','attachFeed','_baselines','close','processing','\x20pid=','_publishNow','[okdb-cluster]\x20CRASH-LOOP:\x20worker\x20slot=','heartbeatMs','index:progress','_threadStats','_nestedTotal','flushed','stats','ttl:set','\x20worker(s)\x20remaining','system:poke','supervisorKey','has','slotKey','flushLmdb','1929270WfswiU','noteListenAddr','_kind','dropSchema','drain','_putRowAsync','\x20worker\x20slot=','publishOwnRow','options','\x20sync','abs','view','_inflight','openDB','[okdb-cluster]\x20recommissioned\x20worker\x20slot=','draining','resolve','size','unique:violation_resolved','fanout','_cmd','unclaimed','lifecycle','INDEX_REGISTERED','_windowCbs','pushEphemeral','_buckets','okdb-http-worker-child:\x20rootPath\x20and\x20port\x20required','floor','getRange','\x20===','threads','maxMs','_pending','ms\x20p99=','system:env_release','process\x20','_dedupeKey','children','exports','_envs','system:bus_state_change','_lastCpuAt','index:reset','\x20\x20(write\x20ring\x20empty\x20—\x20was\x20OKDB_DIAG\x20set\x20before\x20any\x20write?)','ephemeral','[okdb-cluster]\x20primary\x20pid=','registry-publish','raw-put','embedded','acquiredAt','\x20parkedNow=','fork','deregisterSelf','delete','dedupeMax','_seen','3599896KxMdeN','transactionSync','processor:ready','_ownMeta',',\x20signal=','path','dropFts','[okdb-cluster]\x20change-feed\x20init\x20failed:\x20','getClock','type','\x20HTTP\x20server(s)\x20on\x20port\x20','_desiredOverlay','okdb-http-worker-child.js','_sampleOwnStats','listen','_admissionTimer','values','isWanted','freeze','schema:set','fts:registered','_refreshDesiredSnapshot','updateSupervisedChildStats','process','exit','\x0a\x20\x20\x20\x20\x20\x20','_onItem','toISOString',']:\x20transaction\x20ran\x20nested\x20inside\x20a\x20write\x20txn\x20held\x20open\x20by\x20a\x20non-writer\x20caller','note','FTS_REGISTERED','ORPHAN\x20(env-closed\x20write,\x20unhandledRejection)','prototype','keys','_lastCpuPct','cluster','--print','dropType','env:opened','round','childTransaction','~lock','function','appendFileSync','oldestPendingMs','system:ready','deaths','events','system:clock_change',');\x20','ms\x20max=','claims','_buildChildRow','type:registered','singletonClaims','\x20died\x20','prependListener','hasDesired','cli','\x20(durable\x20desired-state)','depth','force','updatedAt','quantum','\x20drainAge=','_nodeDead','license:invalid','unref','processes','\x20oldestPendingMs=','length','bus:drain','ESRCH','start','heapUsed','processingStatusView',')\x20exited\x20','_done','_released','object','isActive','hasOwnProperty','processor:error','queue-worker','indexOf','filter','_heldTotal','writerStatus','_statusEnv','reduce','running','_hbTimer','unhandledRejection','_clusterWorkerAttached','msg','_acquiredAt','_quantum','kill','list','async','fts:reset','set\x20OKDB_DIAG=1\x20(and\x20OKDB_DIAG_STACK=1\x20to\x20name\x20write\x20sites)','feed:','setOwnMeta','\x0a===\x20OKDB_DIAG\x20','write','label','__esModule','node','mode','status','liveThreadStats','7499538NFCbvy','clearTtl','consecutiveFailures','item:update','_systemEnv','_nodeDbFor','ms/','put','_groupByProcess','ORPHAN\x20(env-closed\x20write)','processorId','pid','ingest','started','_startAdmission','setSchema','~processes:desired','now','index:drop','\x20(slot=','send','tierList','_holderDead','~processes','stopHeartbeat','\x0a===\x20OKDB_DIAG\x20STALL:\x20swap\x20drain\x20held\x20','user','data','remove','okdb-writer[','level','parkedNow','standalone','[okdb-cluster]\x20worker\x20pid=','host','_supervisorKey','maxExtra','once','FTS_RESET','_instanceId','name','envsOpen','INDEX_READY','startsWith','percentile','_servingEngines','stopped','warn','_enqueuedAt','randomUUID','map','_writer','_isWriter','min','setDesired','state','_onPoke','open','heapTotal','_markSeen','\x20\x20env=','_lockDb','1512458DmubcH','procmode/','_lastPublishAt','_admissionStarted','1337YWDAkV','\x20—\x20set\x20OKDB_DIAG_STACK=1\x20to\x20name\x20the\x20call\x20site','reject','\x20—\x20','selfKey','online','stop','REMOVE','isEnabled','inst:','CHANGEFEED_QUANTUM','listAll','http','--test','\x20stays\x20down\x20on\x20boot\x20(durable\x20decommission)',')\x20—\x20this\x20process\x20will\x20not\x20appear\x20in\x20the\x20process\x20census','_startedAt','engines','ITEM_CREATE','addSupervisedChild','cpus','error:\x20','toFixed','cluster:','view:progress','20LxNAiW','fromEntries','tryAcquire','seq','_draining','processor:retry','uncaughtException','_getType','ttl:clear','raw-remove','ttlMs','clear','_listenAddr','processor:resumed','entries','_versionSkewWarned','get',':want','sort','isPrimary','_rawDb','listNodes','node:events','1129330ynvCgS','_drain','call','_caps','busy','slot','license:added','_collectSingletonClaims','\x20worker(s)\x20still\x20serving','_nodeDb','\x20writer{depth=','offWindow','disable','halted','nodeKey','removeNode','clearThreadStats','ready','memoryUsage','nodesView','includes','then','expiresAt','default','_putRowSync','\x20statusEnv=','startedAt','processor','decommission','2.3.5','_started','_children','resetIndex','_handlePoke','set','http-server','txn:end','registerIndex','instances','INDEX_RESET','__okdbCluster','rows=','getDesired','find','building','rowKey','message','_onStop','\x20│\x20','_nestedWarned','_committed','respawnTimer','_wantDb','error','136244KxToHe','uptime','slice','_removeRowAsync','treeView','afterWrite','INDEX_PROGRESS','kind','listDesired','putNode','_maybePublish','starting','add','registerType','enabled','ITEM_REMOVE','bus:env_release','holder','load','_buildOwnRow','registry\x20publish\x20failing:\x20','_buildProcessingFacet','_closed','_participate','test','putSync','copy','./okdb','[okdb-cluster]\x20','max','_held','_bpParkedTotal','_handleInProcess','inflightAgesMs','setupPrimary','42822hyNSkO','firstTs','number','epoch','processor:paused','single','_isStale','workers','worker','processKey','FTS_DROP','mkdirSync','beforeWrite','(code=','_singletonLock','_startHeartbeat','stack','startHeartbeat','all','caps','perf_hooks','_durs','SIGKILL','env:removed','compact','_outstanding','ITEM_UPDATE','ms\x20activeWriters=','sync','reap','push','~processes:cmd','_rootDb','repeat','_highWater','cluster-wide','_timer','system','committed','true','off','confirm','_activateProcesses','_bpWaiters','extend','_onProcEvent','ref:violation_resolved','system:proc','hostname','onWindow','ppid','_rowKey','workersConfigured','_nodeDbCache','allSettled','\x20times\x20in\x20','getChanges','_db','resetting','_singletonLocks','resetReadTxn','join','SYSTEM_STOPPED','none','\x20@\x20','ENV_CLOSING_RETRY','_lock','removeSync','_cursors','SYSTEM_POKE','instanceId','setTtl','registry\x20heartbeat\x20skipped\x20(writer=','_processStartedAt','participate','field:resolver_registered','transaction','code','okdb-http-worker-child:\x20OKDB_HTTP_CHILD\x20env\x20config\x20missing','_desired','_heartbeatTimer','\x20forked\x20','fts:drop','_sandbox','okdb','cursorKey','_publishFailWarned','cpuPct','sync:apply','ms\x20mean=','string','_onTick','rss','\x20ipc\x20error:\x20','_heartbeatInFlight','execArgv','_lastCpuUsage','meta','okdb-writer:\x20env\x20closing\x20—\x20retry','race','listening','license:activated','next','--inspect','claimGated','shift','processors','primary','_scheduleFlush','version','111oKWIiZ','registerFts','splice','log','.log','namespace','VIEW_PROGRESS','loop-lag\x20','value','count'];_0x1176=function(){return _0x393110;};return _0x1176();}function _0x2868(_0x4ab2e0,_0x367869){_0x4ab2e0=_0x4ab2e0-0x89;const _0x11763d=_0x1176();let _0x286838=_0x11763d[_0x4ab2e0];return _0x286838;}function requireOkdbHttpWorkerChild(){const _0xef9953=_0x4a52bb;if(hasRequiredOkdbHttpWorkerChild)return okdbHttpWorkerChild$1;hasRequiredOkdbHttpWorkerChild=0x1;const _0x1b4ef6=require$$0$5,{attachWorkerCluster:_0x14ea8a}=requireOkdbCluster();async function _0x3e3fa3(){const _0x12041d=_0x2868,_0x94a173=process.env.OKDB_HTTP_CHILD;if(!_0x94a173)throw new Error(_0x12041d(0x184));const {rootPath:_0x1eb0d8,port:_0x35c413,options:options={},logLevel:logLevel='info'}=JSON['parse'](_0x94a173);if(!_0x1eb0d8||!_0x35c413)throw new Error(_0x12041d(0x216));const _0x2c234f=new _0x1b4ef6(_0x1eb0d8,{...options,'engines':![],'processors':![],'compaction':![]});_0x2c234f[_0x12041d(0x1a7)]['detachConsole']?.();const _0x1ef865=process.env.OKDB_CLUSTER_SLOT??'?',_0x2c632d={'debug':0x0,'info':0x1,'warn':0x2,'error':0x3},_0x364de1=_0x2c632d[logLevel]??_0x2c632d['info'];_0x2c234f[_0x12041d(0x1a7)][_0x12041d(0x1de)](_0x3afcd8=>{const _0x106e91=_0x12041d;if((_0x2c632d[_0x3afcd8[_0x106e91(0x89)]]??0x1)<_0x364de1)return;try{process['send']?.({'__okdbCluster':_0x106e91(0x1a7),'slot':_0x1ef865,'pid':process[_0x106e91(0x2af)],'entry':_0x3afcd8});}catch{}}),await _0x2c234f[_0x12041d(0xa4)](),_0x14ea8a(_0x2c234f),await _0x2c234f[_0x12041d(0xb9)][_0x12041d(0x242)](_0x35c413);}return _0x3e3fa3()[_0xef9953(0x1d7)](_0x3566f9=>{const _0x3b80f0=_0xef9953;try{process['send']?.({'__okdbCluster':'log','slot':process.env.OKDB_CLUSTER_SLOT??'?','pid':process['pid'],'entry':{'level':_0x3b80f0(0x112),'msg':_0x3b80f0(0x1db)+(_0x3566f9?.[_0x3b80f0(0x10b)]??_0x3566f9)}});}catch{}process['exit'](0x1);}),okdbHttpWorkerChild$1;}var okdbHttpWorkerChildExports=requireOkdbHttpWorkerChild(),okdbHttpWorkerChild=getDefaultExportFromCjs(okdbHttpWorkerChildExports);module[_0x4a52bb(0x222)]=okdbHttpWorkerChild;
|
|
1
|
+
'use strict';const _0x1f2bca=_0x2789;(function(_0x324f11,_0x119017){const _0x2ec401=_0x2789,_0x31c973=_0x324f11();while(!![]){try{const _0x32169b=parseInt(_0x2ec401(0x223))/0x1+-parseInt(_0x2ec401(0x2ff))/0x2*(parseInt(_0x2ec401(0x1ff))/0x3)+-parseInt(_0x2ec401(0x368))/0x4+parseInt(_0x2ec401(0x2b8))/0x5*(parseInt(_0x2ec401(0x2d3))/0x6)+parseInt(_0x2ec401(0x177))/0x7+-parseInt(_0x2ec401(0x2da))/0x8*(parseInt(_0x2ec401(0x190))/0x9)+parseInt(_0x2ec401(0x17f))/0xa;if(_0x32169b===_0x119017)break;else _0x31c973['push'](_0x31c973['shift']());}catch(_0x3ba58f){_0x31c973['push'](_0x31c973['shift']());}}}(_0x70b3,0xa3bc3));var require$$0$5=require('./okdb'),require$$1$1=require(_0x1f2bca(0x176)),require$$1=require(_0x1f2bca(0x2bb)),require$$0$3=require('os'),require$$2=require(_0x1f2bca(0x32e)),require$$0=require(_0x1f2bca(0x36b)),require$$0$2=require(_0x1f2bca(0x21f)),require$$0$1=require('fs'),require$$0$4=require(_0x1f2bca(0x1e7));function getDefaultExportFromCjs(_0x20d899){const _0x5f0fb4=_0x1f2bca;return _0x20d899&&_0x20d899[_0x5f0fb4(0x329)]&&Object[_0x5f0fb4(0x1c6)][_0x5f0fb4(0x2d0)][_0x5f0fb4(0x18d)](_0x20d899,'default')?_0x20d899[_0x5f0fb4(0x2e7)]:_0x20d899;}var okdbHttpWorkerChild$1={},okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x1a2e66=_0x1f2bca;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0xacd92={'PUT':_0x1a2e66(0x134),'REMOVE':_0x1a2e66(0x13d),'INDEX_DROP':_0x1a2e66(0x1ea),'INDEX_REGISTER':_0x1a2e66(0x171),'INDEX_RESET':_0x1a2e66(0x2a3),'TYPE_REGISTER':_0x1a2e66(0x311),'TYPE_DROP':_0x1a2e66(0x189),'FTS_REGISTER':'registerFts','FTS_DROP':_0x1a2e66(0x140),'FTS_RESET':'resetFts','SCHEMA_SET':'setSchema','SCHEMA_DROP':_0x1a2e66(0x1f5),'TTL_SET':_0x1a2e66(0x188),'TTL_CLEAR':'clearTtl'},_0x4a78c0={'SYSTEM_READY':_0x1a2e66(0x2e4),'FIELD_RESOLVER_REGISTERED':'field:resolver_registered','SYSTEM_STOPPED':'system:stopped','SYSTEM_CLOCK_CHANGE':_0x1a2e66(0x291),'SYSTEM_POKE':_0x1a2e66(0x259),'SYSTEM_DRAIN':_0x1a2e66(0x28c),'SYSTEM_TYPE_DROP':_0x1a2e66(0x14a),'SYSTEM_PROC':_0x1a2e66(0x139),'SYSTEM_BUS_STATE_CHANGE':_0x1a2e66(0x31f),'ITEM_CREATE':_0x1a2e66(0x289),'ITEM_UPDATE':_0x1a2e66(0x30d),'ITEM_REMOVE':_0x1a2e66(0x25d),'ITEM_PENDING':_0x1a2e66(0x145),'INDEX_RESET':_0x1a2e66(0x239),'INDEX_READY':'index:ready','INDEX_PROGRESS':_0x1a2e66(0x2b6),'VIEW_PROGRESS':_0x1a2e66(0x2c8),'INDEX_DROP':_0x1a2e66(0x14f),'INDEX_REGISTERED':_0x1a2e66(0x347),'FTS_REGISTERED':_0x1a2e66(0x339),'FTS_DROP':'fts:drop','FTS_RESET':'fts:reset','SCHEMA_SET':_0x1a2e66(0x1d5),'SCHEMA_DROP':_0x1a2e66(0x1b8),'UNIQUE_VIOLATION':_0x1a2e66(0x2eb),'UNIQUE_VIOLATION_RESOLVED':_0x1a2e66(0x31d),'REF_VIOLATION':'ref:violation','REF_VIOLATION_RESOLVED':'ref:violation_resolved','SYNC_APPLY':'sync:apply','TXN_START':'txn:start','TXN_END':_0x1a2e66(0x1a5),'TXN_ROLLBACK':_0x1a2e66(0x16b),'TYPE_REGISTERED':_0x1a2e66(0x1d1),'TYPE_DROP':'type:drop','ENV_OPENED':_0x1a2e66(0x254),'ENV_REMOVED':_0x1a2e66(0x2de),'SYSTEM_ENV_RELEASE':_0x1a2e66(0x2ca),'TTL_EXPIRED':_0x1a2e66(0x26e),'TTL_SET':_0x1a2e66(0x217),'TTL_CLEAR':'ttl:clear','LICENSE_INVALID':'license:invalid','LICENSE_ADDED':_0x1a2e66(0x292),'LICENSE_ACTIVATED':_0x1a2e66(0x1b2),'LICENSE_REMOVED':_0x1a2e66(0x27e)},_0x937616={'CREATING':'creating','RESETTING':'resetting','READY':_0x1a2e66(0x313),'DROPPING':_0x1a2e66(0x1de),'WAITING':_0x1a2e66(0x143),'ERROR':_0x1a2e66(0x263)},_0x4640f1={'CREATED':_0x1a2e66(0x2fa),'STARTING':_0x1a2e66(0x16f),'STARTED':_0x1a2e66(0x141),'STOPPING':_0x1a2e66(0x205),'STOPPED':_0x1a2e66(0x13b)},_0x297cfa={'CREATING':'creating','READY':_0x1a2e66(0x313),'HALTED':_0x1a2e66(0x27b),'STOPPED':'stopped','RESETTING':_0x1a2e66(0x28d)},_0x7ef601=Object[_0x1a2e66(0x285)]({'POKE':_0x1a2e66(0x1db),'DRAIN':_0x1a2e66(0x31c),'TYPE_DROP':_0x1a2e66(0x1fa),'PROC':'bus:proc','ENV_RELEASE':_0x1a2e66(0x356)});return okdbEnums={'BUS_EVENTS':_0x7ef601,'CHANGE_ACTIONS':_0xacd92,'EVENTS':_0x4a78c0,'INDEX_STATE':_0x937616,'OKDB_STATE':_0x4640f1,'VIEW_STATE':_0x297cfa},okdbEnums;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0xeea1b5=_0x1f2bca;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x34748d,performance:_0xc9065a}=require$$0,_0x59fb11=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG==='true',_0x45dca1=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x7c831d=process.env.OKDB_LOOP_LAG_ALL==='1',_0x2ac8f5=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x379573{constructor(){const _0x26a9d5=_0x2789;this[_0x26a9d5(0x36c)]=_0x59fb11,this['_buckets']=new Map(),this['_h']=null,this[_0x26a9d5(0x1d9)]=null,this[_0x26a9d5(0x2b5)]=![],this[_0x26a9d5(0x23e)]=(_0x5146d5,_0x48dedc)=>process['stderr'][_0x26a9d5(0x133)](_0x5146d5+(_0x48dedc?'\x20'+JSON['stringify'](_0x48dedc):'')+'\x0a');}[_0xeea1b5(0x1cf)](){const _0x2fc33e=_0xeea1b5;return _0xc9065a[_0x2fc33e(0x1cf)]();}['setLogger'](_0x57b0eb){const _0x1ac06b=_0xeea1b5;if(typeof _0x57b0eb===_0x1ac06b(0x14b))this[_0x1ac06b(0x23e)]=_0x57b0eb;}['note'](_0xf0b82a,_0x268028,_0x596246){const _0x496933=_0xeea1b5;if(!this['enabled'])return;let _0x37b6c3=this[_0x496933(0x288)][_0x496933(0x245)](_0xf0b82a);!_0x37b6c3&&(_0x37b6c3={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this['_buckets'][_0x496933(0x1c4)](_0xf0b82a,_0x37b6c3)),_0x37b6c3['ms']+=_0x268028,_0x37b6c3[_0x496933(0x1b4)]+=0x1,_0x268028>_0x37b6c3[_0x496933(0x230)]&&(_0x37b6c3[_0x496933(0x230)]=_0x268028,_0x37b6c3[_0x496933(0x1d3)]=_0x596246||'');}[_0xeea1b5(0x35f)](_0x3db274){const _0x5c8754=_0xeea1b5;if(!this['enabled']||this['_started'])return;this[_0x5c8754(0x2b5)]=!![];if(_0x3db274)this[_0x5c8754(0x23e)]=_0x3db274;this['_h']=_0x34748d({'resolution':0xa}),this['_h'][_0x5c8754(0x2bf)](),this[_0x5c8754(0x1d9)]=setInterval(()=>this[_0x5c8754(0x1cd)](),_0x45dca1);if(this[_0x5c8754(0x1d9)][_0x5c8754(0x343)])this[_0x5c8754(0x1d9)][_0x5c8754(0x343)]();}[_0xeea1b5(0x21a)](_0x3137e6){const _0x4eea5c=_0xeea1b5;if(!this[_0x4eea5c(0x2f1)])this[_0x4eea5c(0x2f1)]=new Set();this[_0x4eea5c(0x2f1)][_0x4eea5c(0x342)](_0x3137e6);if(!this['_started'])this[_0x4eea5c(0x2be)]();}[_0xeea1b5(0x359)](_0x38cc74){const _0xc82677=_0xeea1b5;this[_0xc82677(0x2f1)]?.[_0xc82677(0x2d8)](_0x38cc74);}['_startAdmission'](){const _0x1fe17c=_0xeea1b5;if(this[_0x1fe17c(0x25c)])return;this[_0x1fe17c(0x25c)]=!![];!this['_h']&&(this['_h']=_0x34748d({'resolution':0xa}),this['_h']['enable']());const _0x58002c=_0x45dca1;this[_0x1fe17c(0x169)]=setInterval(()=>{const _0x475a81=_0x1fe17c,_0x3b26a8=this['_h'];if(!_0x3b26a8)return;const _0x5c072d=_0x3b26a8[_0x475a81(0x153)](0x63)/0xf4240,_0x11855c=_0x3b26a8['max']/0xf4240,_0x4ff6c2=_0x3b26a8[_0x475a81(0x20a)]/0xf4240;_0x3b26a8[_0x475a81(0x21b)]();if(this[_0x475a81(0x2f1)])for(const _0x570128 of this[_0x475a81(0x2f1)]){try{_0x570128({'p99Ms':_0x5c072d,'maxMs':_0x11855c,'meanMs':_0x4ff6c2,'reportMs':_0x58002c});}catch{}}},_0x58002c);if(this[_0x1fe17c(0x169)][_0x1fe17c(0x343)])this[_0x1fe17c(0x169)]['unref']();}[_0xeea1b5(0x1cd)](){const _0x5b0430=_0xeea1b5,_0xeccce8=this['_h'],_0x5bcfef=_0xeccce8[_0x5b0430(0x1a3)]/0xf4240,_0x24b8e7=_0xeccce8[_0x5b0430(0x153)](0x63)/0xf4240,_0x1b9a3=_0xeccce8[_0x5b0430(0x20a)]/0xf4240;_0xeccce8[_0x5b0430(0x21b)]();const _0x51c8fd=[...this[_0x5b0430(0x288)]['entries']()][_0x5b0430(0x328)](([_0x588e2a,_0x340ac1])=>({'label':_0x588e2a,..._0x340ac1}))[_0x5b0430(0x213)]((_0x3146d9,_0x12ea73)=>_0x12ea73['ms']-_0x3146d9['ms'])[_0x5b0430(0x2d1)](0x0,0x8);this[_0x5b0430(0x288)][_0x5b0430(0x30e)]();const _0x36a395=_0x51c8fd[_0x5b0430(0x352)]((_0x1669e3,_0x3f8bbd)=>_0x1669e3+_0x3f8bbd['ms'],0x0),_0x264391=_0x51c8fd[_0x5b0430(0x328)](_0x1daa9b=>_0x1daa9b[_0x5b0430(0x2af)]+'='+_0x1daa9b['ms'][_0x5b0430(0x252)](0x0)+_0x5b0430(0x1aa)+_0x1daa9b[_0x5b0430(0x1b4)]+(_0x1daa9b[_0x5b0430(0x230)]>0x5?_0x5b0430(0x30b)+_0x1daa9b['maxMs'][_0x5b0430(0x252)](0x0)+'ms'+(_0x1daa9b[_0x5b0430(0x1d3)]?'\x20'+_0x1daa9b['maxExtra']:'')+')':''));(_0x7c831d||_0x5bcfef>=_0x2ac8f5)&&this[_0x5b0430(0x23e)](_0x5b0430(0x144)+_0x45dca1+_0x5b0430(0x312)+_0x5bcfef[_0x5b0430(0x252)](0x0)+_0x5b0430(0x1e8)+_0x24b8e7[_0x5b0430(0x252)](0x0)+_0x5b0430(0x37a)+_0x1b9a3[_0x5b0430(0x252)](0x0)+_0x5b0430(0x198)+_0x36a395[_0x5b0430(0x252)](0x0)+'ms'+(_0x264391['length']?_0x5b0430(0x12b)+_0x264391[_0x5b0430(0x2fb)]('\x20\x20'):''),{'feature':_0x5b0430(0x350)});if(this['_windowCbs'])for(const _0x2c20af of this[_0x5b0430(0x2f1)]){try{_0x2c20af({'p99Ms':_0x24b8e7,'maxMs':_0x5bcfef,'meanMs':_0x1b9a3,'reportMs':_0x45dca1});}catch{}}}[_0xeea1b5(0x33c)](){const _0x361e02=_0xeea1b5;if(this[_0x361e02(0x1d9)])clearInterval(this['_timer']);if(this['_h'])this['_h'][_0x361e02(0x1ad)]();this['_timer']=null,this['_h']=null,this[_0x361e02(0x2b5)]=![];}}const _0xef1d4a=new _0x379573();if(_0xef1d4a[_0xeea1b5(0x36c)])_0xef1d4a[_0xeea1b5(0x35f)]();return okdbLoopMonitor={'LOOP':_0xef1d4a},okdbLoopMonitor;}var okdbWriter={'exports':{}},okdbDiag,hasRequiredOkdbDiag;function requireOkdbDiag(){if(hasRequiredOkdbDiag)return okdbDiag;hasRequiredOkdbDiag=0x1;const _0x94ac74=require$$0$1,_0x1709e3=require$$1;let _0x373fb6,_0x4d31de,_0x2b0d78,_0x5b7a37,_0x541ee4,_0x436b8a,_0x42cbb7,_0x3593ae=![];const _0x34798a=new Set();let _0x1cca8d=null;const _0x1d08c4=new Map();function _0x24c9a6(){const _0x10c861=_0x2789;if(_0x373fb6!==undefined)return _0x373fb6;_0x373fb6=process.env.OKDB_DIAG==='1';if(!_0x373fb6)return![];_0x4d31de=process.env.OKDB_DIAG_STACK==='1',_0x5b7a37=Math[_0x10c861(0x1a3)](0x10,Number(process.env.OKDB_DIAG_RING)||0x100),_0x2b0d78=new Array(_0x5b7a37),_0x541ee4=0x0,_0x436b8a=0x0,_0x42cbb7=process.env.OKDB_DIAG_DIR||null;if(_0x42cbb7)try{_0x94ac74['mkdirSync'](_0x42cbb7,{'recursive':!![]});}catch{}return!![];}function _0x3b38ae(){return _0x373fb6===undefined?_0x24c9a6():_0x373fb6;}function _0x2e0839(_0x4240fb,_0x5de4d2){const _0x516488=_0x2789;if(_0x373fb6===undefined?!_0x24c9a6():!_0x373fb6)return;let _0x2773fa;if(_0x4d31de){const _0x212022=new Error()['stack']||'';_0x2773fa=_0x212022[_0x516488(0x296)]('\x0a')['slice'](0x3)[_0x516488(0x328)](_0x3949d6=>_0x3949d6[_0x516488(0x2d9)]())[_0x516488(0x336)](Boolean)[_0x516488(0x2d1)](0x0,0x8);}_0x2b0d78[_0x541ee4]={'seq':_0x436b8a++,'t':Date['now'](),'env':_0x4240fb,'kind':_0x5de4d2||'commit','stack':_0x2773fa},_0x541ee4=(_0x541ee4+0x1)%_0x5b7a37;}function _0x293ee0(_0x5d497a){const _0x42cca5=_0x2789,_0x289599=[];for(let _0x12cecd=0x0;_0x12cecd<_0x5b7a37;_0x12cecd++){const _0x370203=_0x2b0d78[(_0x541ee4-0x1-_0x12cecd+_0x5b7a37*0x2)%_0x5b7a37];if(!_0x370203)continue;_0x289599[_0x42cca5(0x22b)](_0x370203);if(_0x289599[_0x42cca5(0x2b7)]>=_0x5d497a)break;}return _0x289599;}function _0x49ceda(_0x6e67e2){const _0x5936f7=_0x2789;try{process[_0x5936f7(0x229)][_0x5936f7(0x133)](_0x6e67e2+'\x0a');}catch{}if(_0x42cbb7)try{_0x94ac74[_0x5936f7(0x2df)](_0x1709e3['join'](_0x42cbb7,_0x5936f7(0x286)+process[_0x5936f7(0x13a)]+_0x5936f7(0x207)),_0x6e67e2+'\x0a');}catch{}}function _0x2ec2f6(_0x42a4cc){const _0x4c4478=_0x2789,_0x1bbe71=_0x293ee0(_0x42a4cc);if(!_0x1bbe71[_0x4c4478(0x2b7)])return _0x4c4478(0x321);const _0x46d3cb=Date[_0x4c4478(0x1cf)]();return _0x1bbe71[_0x4c4478(0x328)](_0x4587e1=>{const _0xc1e78=_0x4c4478,_0x360c01=_0xc1e78(0x2f7)+_0x4587e1['seq']+'\x20-'+(_0x46d3cb-_0x4587e1['t'])+_0xc1e78(0x142)+_0x4587e1['env']+'\x20'+_0x4587e1[_0xc1e78(0x2c3)];return _0x4587e1[_0xc1e78(0x168)]&&_0x4587e1[_0xc1e78(0x168)][_0xc1e78(0x2b7)]?_0x360c01+'\x0a\x20\x20\x20\x20\x20\x20'+_0x4587e1[_0xc1e78(0x168)]['join'](_0xc1e78(0x335)):_0x360c01;})[_0x4c4478(0x2fb)]('\x0a');}function _0x40af2b(_0x5a76a2,_0x3b5b65){const _0x9ad7c4=_0x2789,_0x585fd2=_0x9ad7c4(0x25b)+_0x5a76a2+_0x9ad7c4(0x211)+new Date()[_0x9ad7c4(0x32f)]()+_0x9ad7c4(0x1d2)+process[_0x9ad7c4(0x13a)]+_0x9ad7c4(0x2f6),_0x99f4c6=[_0x585fd2,_0x9ad7c4(0x12a)+(_0x3b5b65&&_0x3b5b65[_0x9ad7c4(0x168)]?_0x3b5b65['stack'][_0x9ad7c4(0x296)]('\x0a')[0x0]:_0x3b5b65),_0x9ad7c4(0x24c)+(_0x4d31de?'':_0x9ad7c4(0x2cf))+':',_0x2ec2f6(0x18),_0x522ef1(),'='[_0x9ad7c4(0x186)](_0x585fd2['length']-0x1)];_0x49ceda(_0x99f4c6[_0x9ad7c4(0x2fb)]('\x0a'));}function _0x35e994(_0x2d8002){const _0x19629f=_0x2789;if(!_0x3b38ae())return;const _0x512558=String(_0x2d8002&&_0x2d8002[_0x19629f(0x2f8)]||_0x2d8002||''),_0x4e22f5=/already closed|environment is already|invalid read txn|reset an invalid/i[_0x19629f(0x216)](_0x512558);_0x40af2b(_0x4e22f5?_0x19629f(0x2ac):'uncaughtException',_0x2d8002);if(process.env.OKDB_DIAG_SURVIVE==='1'&&_0x4e22f5)return;try{console[_0x19629f(0x263)](_0x2d8002&&_0x2d8002[_0x19629f(0x168)]?_0x2d8002[_0x19629f(0x168)]:_0x2d8002);}catch{}process['exit'](0x1);}function _0x288a04(_0x395c4c){const _0x1c15bb=_0x2789;if(!_0x3b38ae())return;const _0x4fa929=String(_0x395c4c&&_0x395c4c[_0x1c15bb(0x2f8)]||_0x395c4c||'');/already closed|environment is already|invalid read txn|reset an invalid/i[_0x1c15bb(0x216)](_0x4fa929)&&_0x40af2b(_0x1c15bb(0x32a),_0x395c4c);}function _0x522ef1(){const _0x409ed1=_0x2789,_0x1e575b=[_0x409ed1(0x18a)];let _0x5294a7=![];for(const _0x30899a of _0x34798a){const _0x5480e5=_0x30899a&&_0x30899a[_0x409ed1(0x30f)];if(!_0x5480e5)continue;for(const [_0x527443,_0x25b057]of _0x5480e5){const _0x5d14da=_0x25b057&&_0x25b057['_coordinator']&&_0x25b057[_0x409ed1(0x279)][_0x409ed1(0x246)];if(!_0x5d14da)continue;let _0x498fbc,_0x4d445a;try{_0x498fbc=Atomics[_0x409ed1(0x1c0)](_0x5d14da,0x0),_0x4d445a=Atomics[_0x409ed1(0x1c0)](_0x5d14da,0x1);}catch{continue;}if(_0x498fbc===0x0)continue;_0x5294a7=!![];const _0x22b47b=_0x498fbc>0x0?_0x409ed1(0x22f):_0x409ed1(0x364),_0x30a9be=Date[_0x409ed1(0x1cf)]()-Math[_0x409ed1(0x2a2)](_0x498fbc)*0x3e8,_0x61d4f5=((()=>{const _0x2835b4=_0x409ed1;try{return _0x25b057['_writer']&&_0x25b057[_0x2835b4(0x2ad)][_0x2835b4(0x1b7)]?_0x25b057[_0x2835b4(0x2ad)][_0x2835b4(0x1b7)]():null;}catch{return null;}})());_0x1e575b[_0x409ed1(0x22b)](_0x409ed1(0x202)+_0x527443+_0x409ed1(0x2fd)+_0x22b47b+_0x409ed1(0x333)+_0x30a9be+_0x409ed1(0x2c2)+_0x4d445a+(_0x61d4f5?_0x409ed1(0x1ee)+_0x61d4f5[_0x409ed1(0x1b5)]+_0x409ed1(0x24e)+_0x61d4f5[_0x409ed1(0x199)]+'\x20parkedNow='+_0x61d4f5['parkedNow']+'}':''));}}if(!_0x5294a7)_0x1e575b['push'](_0x409ed1(0x2fc));return _0x1e575b[_0x409ed1(0x2fb)]('\x0a');}function _0xd56de7(){const _0x3cc540=_0x2789;if(!_0x3b38ae())return;const _0x543d2f=Math[_0x3cc540(0x1a3)](0x3e8,Number(process.env.OKDB_DIAG_STALL_MS)||0x1f40),_0x31a961=Date['now']();for(const _0x1ecb32 of _0x34798a){const _0x479008=_0x1ecb32&&_0x1ecb32[_0x3cc540(0x30f)];if(!_0x479008)continue;for(const [_0x49eed1,_0x190604]of _0x479008){const _0x34216c=_0x190604&&_0x190604[_0x3cc540(0x279)]&&_0x190604['_coordinator']['view'];if(!_0x34216c)continue;let _0x468d9f;try{_0x468d9f=Atomics[_0x3cc540(0x1c0)](_0x34216c,0x0);}catch{continue;}const _0x25e002=_0x1ecb32['path']+'|'+_0x49eed1;if(_0x468d9f<=0x0){_0x1d08c4[_0x3cc540(0x2d8)](_0x25e002);continue;}const _0x49c430=_0x31a961-_0x468d9f*0x3e8,_0x2dee08=_0x1d08c4[_0x3cc540(0x245)](_0x25e002);if(_0x49c430<_0x543d2f)continue;if(_0x2dee08&&_0x31a961-_0x2dee08[_0x3cc540(0x2a6)]<_0x543d2f)continue;_0x1d08c4[_0x3cc540(0x1c4)](_0x25e002,{'firstTs':_0x2dee08?_0x2dee08['firstTs']:_0x468d9f,'dumpedAt':_0x31a961});const _0x5a7721=_0x3cc540(0x19c)+_0x49c430+_0x3cc540(0x29e)+_0x49eed1+_0x3cc540(0x211)+new Date()[_0x3cc540(0x32f)]()+_0x3cc540(0x1d2)+process['pid']+_0x3cc540(0x2f6);_0x49ceda([_0x5a7721,_0x522ef1(),'='['repeat'](_0x5a7721[_0x3cc540(0x2b7)]-0x1)]['join']('\x0a'));}}}function _0x2836b3(){const _0x3d64fb=_0x2789;if(!_0x3b38ae()||_0x3593ae)return;_0x3593ae=!![],process[_0x3d64fb(0x284)](_0x3d64fb(0x301),_0x35e994),process[_0x3d64fb(0x284)](_0x3d64fb(0x295),_0x288a04);const _0x47c762=Math['max'](0xfa,Number(process.env.OKDB_DIAG_WATCH_MS)||0x7d0);_0x1cca8d=setInterval(_0xd56de7,_0x47c762);if(_0x1cca8d[_0x3d64fb(0x343)])_0x1cca8d['unref']();}function _0x180b13(_0x1edebf){if(!_0x3b38ae()||!_0x1edebf)return;_0x34798a['add'](_0x1edebf),_0x2836b3();}function _0x4a2a65(_0x320e24){const _0x25909f=_0x2789;_0x34798a[_0x25909f(0x2d8)](_0x320e24);}function _0x2e7af9(){const _0x3f47f8=_0x2789;if(!_0x3b38ae())return{'enabled':![],'hint':_0x3f47f8(0x260)};return{'enabled':!![],'stackCapture':!!_0x4d31de,'recentWrites':_0x293ee0(0x10),'drain':_0x522ef1()};}return okdbDiag={'isEnabled':_0x3b38ae,'recordWrite':_0x2e0839,'installDiag':_0x2836b3,'registerOkdb':_0x180b13,'unregisterOkdb':_0x4a2a65,'snapshot':_0x2e7af9},okdbDiag;}function _0x2789(_0x421321,_0x2ff325){_0x421321=_0x421321-0x129;const _0x70b330=_0x70b3();let _0x278995=_0x70b330[_0x421321];return _0x278995;}var hasRequiredOkdbWriter;function requireOkdbWriter(){const _0x3b2118=_0x1f2bca;if(hasRequiredOkdbWriter)return okdbWriter['exports'];hasRequiredOkdbWriter=0x1;const {performance:_0x38b668}=require$$0$2,_0x4faa99=requireOkdbDiag(),_0x1ce402=process.env.OKDB_COMMIT_MODE==='sync';class _0x383015{constructor(_0x351f77){const _0xe60803=_0x2789;this[_0xe60803(0x28e)]=_0x351f77,this['_inflight']=new Set(),this[_0xe60803(0x26d)]=new Map(),this[_0xe60803(0x282)]=0x0,this[_0xe60803(0x29d)]=[],this[_0xe60803(0x12c)]=[],this[_0xe60803(0x18b)]=Math[_0xe60803(0x1a3)](0x0,Number(process.env.OKDB_WRITER_HIGH_WATER??0x400)),this['_outstanding']=0x0,this[_0xe60803(0x26c)]=[],this['_bpParkedTotal']=0x0,this[_0xe60803(0x280)]=null,this[_0xe60803(0x181)]=0x0,this['_nestedTotal']=0x0,this[_0xe60803(0x2f0)]=![];}async[_0x3b2118(0x1ed)](_0x36d0d1,_0x540eb2,{admitted:admitted=![]}={}){const _0xee1ef1=_0x3b2118;if(_0x4faa99[_0xee1ef1(0x1f4)]())_0x4faa99['recordWrite'](this['env']?.[_0xee1ef1(0x369)],_0x540eb2);if(this[_0xee1ef1(0x1dd)]){const _0x2ed097=new Error('okdb-writer:\x20env\x20closing\x20—\x20retry');_0x2ed097[_0xee1ef1(0x187)]=_0xee1ef1(0x25a);throw _0x2ed097;}if(this[_0xee1ef1(0x18b)]>0x0){let _0x3994f3=![];while(this[_0xee1ef1(0x1bb)]>=this[_0xee1ef1(0x18b)]&&!this[_0xee1ef1(0x1dd)]){!_0x3994f3&&(_0x3994f3=!![],this[_0xee1ef1(0x283)]++),await new Promise(_0x3931f4=>this[_0xee1ef1(0x26c)][_0xee1ef1(0x22b)](_0x3931f4));}if(this['_closed']){const _0x11f215=new Error(_0xee1ef1(0x1da));_0x11f215[_0xee1ef1(0x187)]=_0xee1ef1(0x25a);throw _0x11f215;}}this['_outstanding']++;const _0x6a9989=admitted?null:this['env'][_0xee1ef1(0x279)];for(;;){while(this[_0xee1ef1(0x280)])await this[_0xee1ef1(0x280)];if(_0x6a9989)try{await _0x6a9989[_0xee1ef1(0x235)]();}catch(_0x29b09c){this[_0xee1ef1(0x1bb)]--;if(this[_0xee1ef1(0x26c)][_0xee1ef1(0x2b7)]&&this[_0xee1ef1(0x1bb)]<this[_0xee1ef1(0x18b)])this[_0xee1ef1(0x26c)][_0xee1ef1(0x35e)]()();throw _0x29b09c;}if(!this[_0xee1ef1(0x280)])break;if(_0x6a9989)_0x6a9989[_0xee1ef1(0x2e0)]();}if(this[_0xee1ef1(0x1dd)]){if(_0x6a9989)_0x6a9989['afterWrite']();this[_0xee1ef1(0x1bb)]--;if(this[_0xee1ef1(0x26c)][_0xee1ef1(0x2b7)]&&this[_0xee1ef1(0x1bb)]<this[_0xee1ef1(0x18b)])this[_0xee1ef1(0x26c)][_0xee1ef1(0x35e)]()();const _0x50446c=new Error(_0xee1ef1(0x1da));_0x50446c[_0xee1ef1(0x187)]='ENV_CLOSING_RETRY';throw _0x50446c;}const _0x4d2eff=_0x38b668['now']();if(_0x1ce402)try{const _0x48b701=this[_0xee1ef1(0x28e)]['db'][_0xee1ef1(0x222)](_0x36d0d1);this[_0xee1ef1(0x282)]++;if(this[_0xee1ef1(0x29d)][_0xee1ef1(0x22b)](_0x38b668['now']()-_0x4d2eff)>0x100)this[_0xee1ef1(0x29d)][_0xee1ef1(0x35e)]();if(this[_0xee1ef1(0x12c)][_0xee1ef1(0x22b)](_0x38b668[_0xee1ef1(0x1cf)]())>0x800)this[_0xee1ef1(0x12c)][_0xee1ef1(0x35e)]();return _0x48b701;}finally{this[_0xee1ef1(0x1bb)]--;if(this[_0xee1ef1(0x26c)]['length']&&this[_0xee1ef1(0x1bb)]<this[_0xee1ef1(0x18b)])this[_0xee1ef1(0x26c)][_0xee1ef1(0x35e)]()();if(_0x6a9989)_0x6a9989[_0xee1ef1(0x2e0)]();}let _0x2ba72c=null;const _0xc6887c=()=>{const _0x17eabd=_0xee1ef1,_0xd467ef=_0x36d0d1();if(_0xd467ef&&typeof _0xd467ef[_0x17eabd(0x156)]===_0x17eabd(0x14b)&&!_0x2ba72c){this[_0x17eabd(0x181)]++;let _0x4b7130;const _0x27cd75=new Promise(_0x12188c=>_0x4b7130=_0x12188c);this[_0x17eabd(0x280)]=_0x27cd75,_0x2ba72c=()=>{const _0x3992a7=_0x17eabd;if(this[_0x3992a7(0x280)]===_0x27cd75)this[_0x3992a7(0x280)]=null;_0x4b7130();};}return _0xd467ef;};let _0x14da1b;try{_0x14da1b=this[_0xee1ef1(0x28e)]['db'][_0xee1ef1(0x258)](_0xc6887c);}catch(_0x37eafd){_0x14da1b=Promise[_0xee1ef1(0x1a7)](_0x37eafd);}(!_0x14da1b||typeof _0x14da1b[_0xee1ef1(0x156)]!==_0xee1ef1(0x14b))&&(this[_0xee1ef1(0x330)]++,!this[_0xee1ef1(0x2f0)]&&(this['_nestedWarned']=!![],console['warn'](_0xee1ef1(0x224)+(this[_0xee1ef1(0x28e)]?.[_0xee1ef1(0x369)]??'?')+_0xee1ef1(0x14e))),_0x14da1b=Promise[_0xee1ef1(0x33a)](_0x14da1b));const _0x50b342=()=>{if(_0x2ba72c)_0x2ba72c();};_0x14da1b[_0xee1ef1(0x156)](_0x50b342,_0x50b342),this[_0xee1ef1(0x1fc)][_0xee1ef1(0x342)](_0x14da1b),this[_0xee1ef1(0x26d)][_0xee1ef1(0x1c4)](_0x14da1b,_0x4d2eff);const _0x3a6ccf=()=>{const _0xa4ad82=_0xee1ef1;this['_inflight'][_0xa4ad82(0x2d8)](_0x14da1b),this[_0xa4ad82(0x26d)]['delete'](_0x14da1b),this[_0xa4ad82(0x282)]++,this[_0xa4ad82(0x1bb)]--;this[_0xa4ad82(0x26c)][_0xa4ad82(0x2b7)]&&this[_0xa4ad82(0x1bb)]<this[_0xa4ad82(0x18b)]&&this[_0xa4ad82(0x26c)]['shift']()();if(this['_durs'][_0xa4ad82(0x22b)](_0x38b668[_0xa4ad82(0x1cf)]()-_0x4d2eff)>0x100)this[_0xa4ad82(0x29d)][_0xa4ad82(0x35e)]();if(this['_done'][_0xa4ad82(0x22b)](_0x38b668[_0xa4ad82(0x1cf)]())>0x800)this[_0xa4ad82(0x12c)][_0xa4ad82(0x35e)]();};_0x14da1b[_0xee1ef1(0x156)](_0x3a6ccf,_0x3a6ccf);try{return await _0x14da1b;}finally{if(_0x6a9989)_0x6a9989[_0xee1ef1(0x2e0)]();}}['status'](){const _0x5a7f57=_0x3b2118,_0x11f6a2=_0x38b668[_0x5a7f57(0x1cf)]();let _0x4063b6=0x0;for(const _0x2d0bd8 of this[_0x5a7f57(0x26d)][_0x5a7f57(0x20c)]()){const _0x351377=_0x11f6a2-_0x2d0bd8;if(_0x351377>_0x4063b6)_0x4063b6=_0x351377;}let _0x5cfb8c=0x0;for(let _0x1638fd=this[_0x5a7f57(0x12c)]['length']-0x1;_0x1638fd>=0x0;_0x1638fd--){if(_0x11f6a2-this['_done'][_0x1638fd]>0x3e8)break;_0x5cfb8c++;}let _0x48fb2c=0x0;if(this[_0x5a7f57(0x29d)][_0x5a7f57(0x2b7)]){const _0x1ae47e=[...this[_0x5a7f57(0x29d)]][_0x5a7f57(0x213)]((_0x5d3f1b,_0x3bd948)=>_0x5d3f1b-_0x3bd948);_0x48fb2c=_0x1ae47e[Math[_0x5a7f57(0x1f0)](_0x1ae47e['length']-0x1,Math[_0x5a7f57(0x1be)](_0x1ae47e[_0x5a7f57(0x2b7)]*0.99))];}return{'depth':this[_0x5a7f57(0x1fc)][_0x5a7f57(0x194)],'oldestPendingMs':Math[_0x5a7f57(0x24f)](_0x4063b6),'committed':this[_0x5a7f57(0x282)],'commitsPerSec':_0x5cfb8c,'commitP99Ms':Math[_0x5a7f57(0x24f)](_0x48fb2c),'parkedNow':this['_bpWaiters'][_0x5a7f57(0x2b7)],'parkedTotal':this[_0x5a7f57(0x283)],'highWater':this[_0x5a7f57(0x18b)]};}[_0x3b2118(0x308)](){const _0x550ac7=_0x3b2118,_0x140e44=_0x38b668[_0x550ac7(0x1cf)]();return[...this[_0x550ac7(0x26d)][_0x550ac7(0x20c)]()][_0x550ac7(0x328)](_0x43a8aa=>Math[_0x550ac7(0x24f)](_0x140e44-_0x43a8aa))[_0x550ac7(0x213)]((_0x2bbbb3,_0x264d16)=>_0x264d16-_0x2bbbb3);}['markClosed'](){const _0x26baec=_0x3b2118;this['_closed']=!![];for(const _0x4dc10b of this[_0x26baec(0x26c)][_0x26baec(0x1f6)](0x0))_0x4dc10b();}async[_0x3b2118(0x219)](){const _0x1769ae=_0x3b2118;let _0x439549=0x0;while(this['_inflight'][_0x1769ae(0x194)]&&_0x439549++<0x3e8){await Promise[_0x1769ae(0x1bd)]([...this[_0x1769ae(0x1fc)]]);}}async['put'](_0x3f8323,_0x1e9abc,_0xa45980,_0x58cbd5){const _0x58bf6c=_0x3b2118;return this[_0x58bf6c(0x1ed)](()=>{const _0xa2e8ff=_0x58bf6c;if(_0x58cbd5===undefined)_0x3f8323[_0xa2e8ff(0x22d)](_0x1e9abc,_0xa45980);else _0x3f8323[_0xa2e8ff(0x22d)](_0x1e9abc,_0xa45980,_0x58cbd5);},_0x58bf6c(0x225));}async[_0x3b2118(0x13d)](_0x1690d8,_0x12e996){const _0x2852b6=_0x3b2118;return this[_0x2852b6(0x1ed)](()=>_0x1690d8[_0x2852b6(0x267)](_0x12e996),_0x2852b6(0x1b3));}}async function _0xd9dea2(_0x2453f1,_0x1be925){const _0x1b7e98=_0x3b2118;if(_0x1be925==null)_0x1be925=Math[_0x1b7e98(0x1a3)](0x3e8,Number(process.env.OKDB_FLUSH_BEFORE_CLOSE_MS)||0x1d4c0);try{const _0x39fc99=_0x2453f1?.[_0x1b7e98(0x17e)];if(!_0x39fc99||typeof _0x39fc99['then']!==_0x1b7e98(0x14b))return;await Promise[_0x1b7e98(0x1f7)]([Promise[_0x1b7e98(0x33a)](_0x39fc99)[_0x1b7e98(0x22e)](()=>{}),new Promise(_0x2f8cbb=>{const _0x172dd7=_0x1b7e98,_0x769b88=setTimeout(_0x2f8cbb,_0x1be925);if(_0x769b88[_0x172dd7(0x343)])_0x769b88[_0x172dd7(0x343)]();})]);}catch{}}function _0x583ca4(_0x33264b){const _0x3a9f11=_0x3b2118;if(_0x1ce402)return Promise[_0x3a9f11(0x33a)]();const _0x128c4b=_0x33264b?.[_0x3a9f11(0x15d)];return _0x128c4b&&typeof _0x128c4b[_0x3a9f11(0x156)]==='function'?_0x128c4b:Promise[_0x3a9f11(0x33a)]();}const _0x59a2c7=Math[_0x3b2118(0x1a3)](0x1,Math['floor'](Number(process.env.UV_THREADPOOL_SIZE))||0x4),_0x2663cc=Math[_0x3b2118(0x1a3)](0x1,_0x59a2c7-0x2);let _0x41e48e=0x0;const _0x9b8518=[];async function _0x261a1d(_0x2b0999){const _0x47477b=_0x3b2118;if(_0x41e48e<_0x2663cc)_0x41e48e++;else await new Promise(_0x26bacd=>_0x9b8518[_0x47477b(0x22b)](_0x26bacd));try{return await _0x2b0999();}finally{const _0x222f56=_0x9b8518[_0x47477b(0x35e)]();if(_0x222f56)_0x222f56();else _0x41e48e--;}}return okdbWriter[_0x3b2118(0x21c)]=_0x383015,okdbWriter['exports'][_0x3b2118(0x14c)]=_0x261a1d,okdbWriter[_0x3b2118(0x21c)][_0x3b2118(0x15f)]=_0x2663cc,okdbWriter[_0x3b2118(0x21c)][_0x3b2118(0x2ae)]=_0xd9dea2,okdbWriter[_0x3b2118(0x21c)][_0x3b2118(0x15d)]=_0x583ca4,okdbWriter[_0x3b2118(0x21c)][_0x3b2118(0x19d)]=_0x1ce402,okdbWriter[_0x3b2118(0x21c)];}var okdbLock,hasRequiredOkdbLock;function requireOkdbLock(){const _0x46ea8c=_0x1f2bca;if(hasRequiredOkdbLock)return okdbLock;hasRequiredOkdbLock=0x1;const _0x2fb108=require$$0$3,{SYNC_COMMITS:_0x124fea}=requireOkdbWriter(),_0x4e6018=_0x46ea8c(0x136);class _0xfe6ecd{constructor(_0x4f86c4,_0x4fdcce,_0x3b1c72){const _0x341434=_0x46ea8c;this[_0x341434(0x1d0)]=_0x4f86c4,this[_0x341434(0x33d)]=_0x4fdcce,this[_0x341434(0x2b4)]=_0x3b1c72,this[_0x341434(0x157)]=![],this['_heartbeatTimer']=null,this['_heartbeatInFlight']=null;}['isHeld'](){const _0x2befca=_0x46ea8c;if(this[_0x2befca(0x157)])return![];try{const _0x5bab79=this['_lock']['_db']()[_0x2befca(0x245)](this['_key']);if(!_0x5bab79||_0x5bab79[_0x2befca(0x26f)]!==this[_0x2befca(0x2b4)])return![];const _0x18839e=_0x5bab79[_0x2befca(0x208)]??_0x5bab79[_0x2befca(0x26f)];if(_0x18839e+_0x5bab79[_0x2befca(0x2ab)]<Date['now']())return![];return!![];}catch{return!this[_0x2befca(0x157)];}}[_0x46ea8c(0x160)](){const _0x2748f8=_0x46ea8c;if(this[_0x2748f8(0x157)])return null;try{return this[_0x2748f8(0x1d0)]['_db']()[_0x2748f8(0x245)](this['_key'])??null;}catch{return null;}}async[_0x46ea8c(0x331)](_0x4485ff){const _0x156937=_0x46ea8c;if(this[_0x156937(0x157)])return;try{if(this[_0x156937(0x1d0)][_0x156937(0x1dd)]())return;const _0x44bcb9=this[_0x156937(0x1d0)][_0x156937(0x2d6)]()[_0x156937(0x245)](this[_0x156937(0x33d)]);if(!_0x44bcb9||_0x44bcb9[_0x156937(0x26f)]!==this[_0x156937(0x2b4)])return;if(_0x124fea)this[_0x156937(0x1d0)][_0x156937(0x2d6)]()[_0x156937(0x22d)](this[_0x156937(0x33d)],{..._0x44bcb9,'ttlMs':_0x44bcb9[_0x156937(0x2ab)]+_0x4485ff});else await this[_0x156937(0x1d0)][_0x156937(0x2d6)]()[_0x156937(0x134)](this[_0x156937(0x33d)],{..._0x44bcb9,'ttlMs':_0x44bcb9[_0x156937(0x2ab)]+_0x4485ff});}catch{}}async[_0x46ea8c(0x297)](){const _0x50147b=_0x46ea8c;if(this[_0x50147b(0x157)])return;if(this[_0x50147b(0x32c)])try{await this[_0x50147b(0x32c)];}catch{}clearInterval(this[_0x50147b(0x2ee)]),this['_heartbeatTimer']=null,this[_0x50147b(0x157)]=!![];try{if(this[_0x50147b(0x1d0)][_0x50147b(0x1dd)]())return;const _0x1a2193=this[_0x50147b(0x1d0)][_0x50147b(0x2d6)]()['get'](this[_0x50147b(0x33d)]);if(_0x1a2193&&_0x1a2193[_0x50147b(0x26f)]===this[_0x50147b(0x2b4)]){if(_0x124fea)this[_0x50147b(0x1d0)][_0x50147b(0x2d6)]()[_0x50147b(0x267)](this['_key']);else await this[_0x50147b(0x1d0)][_0x50147b(0x2d6)]()[_0x50147b(0x13d)](this[_0x50147b(0x33d)]);}}catch{}}[_0x46ea8c(0x25e)](_0x5b5488,_0x58144e){const _0x540feb=_0x46ea8c,_0x1d95a2=_0x58144e??Math['floor'](_0x5b5488/0x3);this['_heartbeatTimer']=setInterval(()=>{const _0x726842=_0x2789;if(this['_released'])return;this[_0x726842(0x32c)]=((async()=>{const _0x8fbc9b=_0x726842;try{if(this[_0x8fbc9b(0x1d0)][_0x8fbc9b(0x1dd)]())return;const _0x497c1a=this[_0x8fbc9b(0x1d0)][_0x8fbc9b(0x2d6)]()[_0x8fbc9b(0x245)](this['_key']);if(!_0x497c1a||_0x497c1a[_0x8fbc9b(0x26f)]!==this[_0x8fbc9b(0x2b4)]){this[_0x8fbc9b(0x157)]=!![],clearInterval(this['_heartbeatTimer']),this[_0x8fbc9b(0x2ee)]=null;return;}if(_0x124fea)this[_0x8fbc9b(0x1d0)][_0x8fbc9b(0x2d6)]()[_0x8fbc9b(0x22d)](this[_0x8fbc9b(0x33d)],{..._0x497c1a,'updatedAt':Date['now']()});else await this[_0x8fbc9b(0x1d0)]['_db']()[_0x8fbc9b(0x134)](this[_0x8fbc9b(0x33d)],{..._0x497c1a,'updatedAt':Date[_0x8fbc9b(0x1cf)]()});}catch{}this[_0x8fbc9b(0x32c)]=null;})());},_0x1d95a2);if(this[_0x540feb(0x2ee)][_0x540feb(0x343)])this[_0x540feb(0x2ee)][_0x540feb(0x343)]();}}class _0x1a9c34{constructor(_0xab87a5,{namespace:_0x39dace,ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}={}){const _0x3177bd=_0x46ea8c;this[_0x3177bd(0x1ba)]=_0xab87a5,this['namespace']=_0x39dace,this[_0x3177bd(0x2ab)]=ttlMs,this[_0x3177bd(0x26b)]=heartbeatMs,this[_0x3177bd(0x281)]=null;}[_0x46ea8c(0x2d6)](){const _0x1d7e0e=_0x46ea8c;return this[_0x1d7e0e(0x1c1)](),(!this[_0x1d7e0e(0x281)]||this[_0x1d7e0e(0x1e3)]!==this[_0x1d7e0e(0x1ba)])&&(this[_0x1d7e0e(0x281)]=this[_0x1d7e0e(0x1ba)]['openDB'](_0x4e6018,{'dupSort':![]}),this[_0x1d7e0e(0x1e3)]=this[_0x1d7e0e(0x1ba)]),this[_0x1d7e0e(0x281)];}[_0x46ea8c(0x234)](){const _0x5a2ea0=_0x46ea8c;return this[_0x5a2ea0(0x1c1)](),(!this['_wantDbHandle']||this['_wantDbOf']!==this['_rawDb'])&&(this[_0x5a2ea0(0x24a)]=this[_0x5a2ea0(0x1ba)]['openDB'](_0x4e6018+_0x5a2ea0(0x1a0),{'dupSort':![]}),this[_0x5a2ea0(0x172)]=this['_rawDb']),this['_wantDbHandle'];}[_0x46ea8c(0x1dd)](){const _0x4a750d=_0x46ea8c,_0x9c2de9=this[_0x4a750d(0x1ba)]?.[_0x4a750d(0x1b7)];return _0x9c2de9==='closing'||_0x9c2de9===_0x4a750d(0x2c0);}[_0x46ea8c(0x1c1)](){const _0x17b594=_0x46ea8c;if(this[_0x17b594(0x1dd)]())throw new Error(_0x17b594(0x206));}[_0x46ea8c(0x33d)](_0x3ad570){const _0x25ab94=_0x46ea8c;return this[_0x25ab94(0x22c)]+':'+_0x3ad570;}[_0x46ea8c(0x1cc)](_0x42bcfc){const _0x53fe35=_0x46ea8c;try{if(this[_0x53fe35(0x1dd)]())return;_0x124fea?this[_0x53fe35(0x234)]()[_0x53fe35(0x22d)](this[_0x53fe35(0x33d)](_0x42bcfc),Date[_0x53fe35(0x1cf)]()):this[_0x53fe35(0x234)]()[_0x53fe35(0x134)](this[_0x53fe35(0x33d)](_0x42bcfc),Date[_0x53fe35(0x1cf)]())?.['catch']?.(()=>{});}catch{}}[_0x46ea8c(0x2e9)](_0x21e978,_0x3418ea=0x3e8){const _0x5e9015=_0x46ea8c;try{const _0x359104=this[_0x5e9015(0x234)]()[_0x5e9015(0x245)](this[_0x5e9015(0x33d)](_0x21e978));return typeof _0x359104===_0x5e9015(0x2f4)&&Date[_0x5e9015(0x1cf)]()-_0x359104<_0x3418ea;}catch{return![];}}['_isStale'](_0x5c433e){const _0x17b756=_0x46ea8c,_0x149095=_0x5c433e[_0x17b756(0x208)]??_0x5c433e[_0x17b756(0x26f)];return _0x149095+_0x5c433e[_0x17b756(0x2ab)]<Date[_0x17b756(0x1cf)]();}static[_0x46ea8c(0x1d6)](_0x68f7e7){const _0x37fe86=_0x46ea8c,_0xbd43ff=_0x68f7e7?.[_0x37fe86(0x160)];if(!_0xbd43ff||typeof _0xbd43ff['pid']!==_0x37fe86(0x2f4))return![];if(_0xbd43ff['hostname']!==_0x2fb108[_0x37fe86(0x15e)]())return![];if(_0xbd43ff[_0x37fe86(0x13a)]===process[_0x37fe86(0x13a)])return![];try{return process[_0x37fe86(0x2b3)](_0xbd43ff[_0x37fe86(0x13a)],0x0),![];}catch(_0x255f6b){return _0x255f6b[_0x37fe86(0x187)]===_0x37fe86(0x29f);}}async['tryAcquire'](_0x4c7efb,_0x12cc50={},_0x4a3fd8={}){const _0x23404e=_0x46ea8c,_0x2001ae=this[_0x23404e(0x33d)](_0x4c7efb),_0x58f5e3=_0x4a3fd8['ttlMs']??this[_0x23404e(0x2ab)],_0x53f25a=Date['now'](),_0x596d7e={'holder':{'pid':process[_0x23404e(0x13a)],'hostname':_0x2fb108[_0x23404e(0x15e)](),..._0x12cc50},'acquiredAt':_0x53f25a,'updatedAt':_0x53f25a,'ttlMs':_0x58f5e3};let _0x373be9=![],_0x52f796=null;if(this['_closed']())return{'acquired':![],'handle':null,'current':null};try{const _0x16f4e9=()=>{const _0x14c2f4=_0x23404e,_0x16e7f5=this[_0x14c2f4(0x2d6)]()[_0x14c2f4(0x245)](_0x2001ae);if(_0x16e7f5&&!this[_0x14c2f4(0x155)](_0x16e7f5)&&!_0x1a9c34['_holderDead'](_0x16e7f5)){const _0x18c7c4=_0x12cc50[_0x14c2f4(0x29b)]!=null&&_0x16e7f5[_0x14c2f4(0x160)][_0x14c2f4(0x13a)]===process['pid']&&_0x16e7f5[_0x14c2f4(0x160)]['processorId']===_0x12cc50['processorId'];if(!_0x18c7c4){_0x373be9=![],_0x52f796=_0x16e7f5;return;}_0x596d7e[_0x14c2f4(0x26f)]<=_0x16e7f5['acquiredAt']&&(_0x596d7e[_0x14c2f4(0x26f)]=_0x16e7f5[_0x14c2f4(0x26f)]+0x1,_0x596d7e[_0x14c2f4(0x208)]=_0x596d7e[_0x14c2f4(0x26f)]);}this[_0x14c2f4(0x2d6)]()[_0x14c2f4(0x134)](_0x2001ae,_0x596d7e),_0x373be9=!![],_0x52f796=_0x596d7e;};if(_0x124fea)this[_0x23404e(0x2d6)]()[_0x23404e(0x222)](_0x16f4e9);else await this['_db']()[_0x23404e(0x258)](_0x16f4e9);}catch{return{'acquired':![],'handle':null,'current':null};}if(!_0x373be9)return{'acquired':![],'handle':null,'current':_0x52f796};const _0x3ce321=new _0xfe6ecd(this,_0x2001ae,_0x596d7e[_0x23404e(0x26f)]);return _0x3ce321[_0x23404e(0x25e)](_0x58f5e3,this[_0x23404e(0x26b)]),{'acquired':!![],'handle':_0x3ce321,'current':_0x52f796};}[_0x46ea8c(0x272)](_0x2229df){const _0x1a5dc8=_0x46ea8c;try{return this['_db']()['get'](this[_0x1a5dc8(0x33d)](_0x2229df))??null;}catch{return null;}}[_0x46ea8c(0x294)](){const _0x216ce2=_0x46ea8c,_0x4d15a7=this[_0x216ce2(0x22c)]+':',_0xcc375a=[];try{for(const {key:_0x4896a8,value:_0x1dc531}of this['_db']()[_0x216ce2(0x2dd)]({'start':_0x4d15a7,'end':_0x4d15a7+'\xff'})){typeof _0x4896a8===_0x216ce2(0x218)&&_0x4896a8[_0x216ce2(0x2c5)](_0x4d15a7)&&_0xcc375a['push']({'id':_0x4896a8[_0x216ce2(0x2d1)](_0x4d15a7[_0x216ce2(0x2b7)]),'entry':_0x1dc531});}}catch{}return _0xcc375a;}static[_0x46ea8c(0x317)](_0x3400ed){const _0x30a80b=_0x46ea8c,_0x3ff2a6=[];try{const _0x386a75=_0x3400ed[_0x30a80b(0x163)](_0x4e6018,{'dupSort':![]});for(const {key:_0x1b2423,value:_0x35e80a}of _0x386a75[_0x30a80b(0x2dd)]({})){if(typeof _0x1b2423!==_0x30a80b(0x218))continue;const _0x470a6e=_0x1b2423[_0x30a80b(0x276)](':');if(_0x470a6e<0x1)continue;_0x3ff2a6[_0x30a80b(0x22b)]({'namespace':_0x1b2423['slice'](0x0,_0x470a6e),'id':_0x1b2423[_0x30a80b(0x2d1)](_0x470a6e+0x1),'entry':_0x35e80a});}}catch{}return _0x3ff2a6;}}return okdbLock={'OKDBLock':_0x1a9c34},okdbLock;}function _0x70b3(){const _0x3a3f66=['instanceId','off',':want','_onItem','_rowKey','max','assign','txn:end','nodeKey','reject','isPrimary','SYSTEM_STOPPED','ms/','noteListenAddr','caps','disable','event','commitsPerSec','warn','null','license:activated','raw-remove','count','depth','_pending','status','schema:drop','listNodes','_rawDb','_outstanding','processor:retry','allSettled','floor','isDead','load','_assertUsable','_baselines','processor:error','set','_nodeDb','prototype','_adminRelay','_isWriter','http-server','procmode/','data','signalWant','_report','workers','now','_lock','type:registered','\x20pid=','maxExtra','[okdb-cluster]\x20change-feed\x20init\x20failed:\x20','schema:set','_holderDead','hard-killed','--inspect','_timer','okdb-writer:\x20env\x20closing\x20—\x20retry','bus:poke','flushDebounce','_closed','dropping','includes','listenAddr','_seen','publishChildRow','_lockDbOf','_getType','_cmd','engines','node:events','ms\x20p99=','publishOwnRow','dropIndex','_buildProcessingFacet','CHANGEFEED_QUANTUM','transaction','\x20writer{depth=','ITEM_PENDING','min','lifecycle','children','disconnect','isEnabled','dropSchema','splice','race','fn-runner','procmodeack/','bus:type_drop','listening','_inflight','_singletonLock','_clusterOrphanWatch','3okJZZj','cli','[okdb-cluster]\x20recommissioned\x20worker\x20slot=','\x20\x20env=','_isReader','cluster-wide','stopping','okdb-lock:\x20env\x20closed','.log','updatedAt','__okdbSlot','mean','_collectSingletonClaims','values','_sampleOwnStats','processors','_singletonLocks','_versionSkewWarned','\x20@\x20','threads','sort','migrations','isActive','test','ttl:set','string','drain','onWindow','reset','exports','cpuWindowMs','_caps','perf_hooks','--watch','updateSupervisedChildStats','transactionSync','776876JXAyAc','okdb-writer[','raw-put','_handlePending','ms\x20(attempt\x20','getCmd','stderr','note','push','namespace','putSync','catch','SWAP','maxMs','draining','decommissioning','setupPrimary','_wantDb','beforeWrite','process','deaths','building','index:reset','getDesired','role','FTS_REGISTERED','quantum','_log','slot','once','setDesired','removeNode','stats','msg','get','view','_nodeDbCache','getClock','_desired','_wantDbHandle','__okdbCluster','recent\x20writes\x20(newest\x20first)','listen','\x20oldestPendingMs=','round','deregisterSelf','_publishNow','toFixed','parkedNow','env:opened','_openEnvLazy','_removeRowAsync','entry','childTransaction','system:poke','ENV_CLOSING_RETRY','\x0a===\x20OKDB_DIAG\x20','_admissionStarted','item:remove','_startHeartbeat','putNode','set\x20OKDB_DIAG=1\x20(and\x20OKDB_DIAG_STACK=1\x20to\x20name\x20write\x20sites)','_kind','platform','error','runtimeProcessesView','killable','consecutiveFailures','removeSync','_nodeDead','createEnvironment','[okdb-cluster]\x20','heartbeatMs','_bpWaiters','_enqueuedAt','ttl:expired','acquiredAt','_groupByProcess','log','inspect','okdb-http-worker-child:\x20OKDB_HTTP_CHILD\x20env\x20config\x20missing','claimGated','\x20on\x20this\x20data\x20path\x20runs\x20okdb\x20','indexOf','host','single','_coordinator','compaction','halted','keys','mode','license:removed','processorsView','_held','_lockDb','_committed','_bpParkedTotal','prependListener','freeze','okdb-diag.','paused','_buckets','item:create','_cursors','some','system:drain','resetting','env','_supervisorKey','_ownMeta','system:clock_change','license:added','hasDesired','list','unhandledRejection','split','release','send',')\x20exited\x20','1ofN:','processorId','cpus','_durs','ms\x20on\x20env=','ESRCH','dead','_systemEnv','abs','resetIndex','user','events','dumpedAt','_dedupeKey','exit','SYSTEM_PROC','SYSTEM_POKE','ttlMs','ORPHAN\x20(env-closed\x20write)','_writer','flushLmdb','label','claims','_maybePublish','heldBy','kill','_acquiredAt','_started','index:progress','length','3580095WAYeva','FTS_RESET','INDEX_READY','path','change','\x20statusEnv=','_startAdmission','enable','closed','supervisorKey','ms\x20activeWriters=','kind','find','startsWith','okdb','processing','view:progress','inst:','system:env_release','processor:ready','sandbox','execArgv','ITEM_UPDATE','\x20—\x20set\x20OKDB_DIAG_STACK=1\x20to\x20name\x20the\x20call\x20site','hasOwnProperty','slice','from','6CGnjWh','respawnTimer','online','_db','registry\x20publish\x20failing:\x20','delete','trim','8032DvvnCE','primary','\x20ipc\x20error:\x20','getRange','env:removed','appendFileSync','afterWrite','_putRowAsync','_onStop','processKey','system:ready','_threadStats','running','default','startHeartbeat','isWanted','feed:','unique:violation','_quantum','_publishFailWarned','_heartbeatTimer','open','_nestedWarned','_windowCbs','confirm','okdb-http-worker-child:\x20rootPath\x20and\x20port\x20required','number','_desiredOverlay','\x20===','\x20\x20#','message','INDEX_RESET','created','join','\x20\x20(no\x20env\x20draining)','\x20phase=','registry-publish','2287306YolECE','dedupeMax','uncaughtException','next','_handlePoke','node','~processes:desired','standalone','_onPoke','inflightAgesMs','_handleInProcess','ephemeral','(worst\x20','stopHeartbeat','item:update','clear','_envs','REMOVE','registerType','ms\x20max=','ready','\x20forked\x20','\x20worker\x20slot=','level','listAll','compact','_migrateVocab','singletonClaims','_putRowSync','bus:drain','unique:violation_resolved','_rootDb','system:bus_state_change','SIGKILL','\x20\x20(write\x20ring\x20empty\x20—\x20was\x20OKDB_DIAG\x20set\x20before\x20any\x20write?)','FTS_DROP','getChanges','_markSeen','liveThreadStats','_children','_activateProcesses','map','__esModule','ORPHAN\x20(env-closed\x20write,\x20unhandledRejection)','cursorKey','_heartbeatInFlight','mixed\x20versions\x20on\x20one\x20store\x20are\x20unsafe\x20across\x20storage\x20migrations;\x20align\x20versions\x20before\x20upgrading\x20further.','crypto','toISOString','_nestedTotal','extend','_lastCpuUsage','\x20drainAge=','entries','\x0a\x20\x20\x20\x20\x20\x20','filter','uptime','startedAt','fts:registered','resolve',')\x20—\x20this\x20process\x20will\x20not\x20appear\x20in\x20the\x20process\x20census','stop','_key','ITEM_CREATE','functions','_onPending','meta','add','unref','_pendingLocal','info','embedded','index:registered','~processes','node/','async','_startedAt','heapUsed','ITEM_REMOVE','listDesired','ingest','loop-lag',',\x20signal=','reduce','_selfKey','writerStatus','worker','bus:env_release','selfKey','fanout','offWindow','slotKey','processor:resumed','_drain','cluster:','shift','start','win32','_draining','\x20died\x20','parse','copy','unclaimed','_hbTimer','[okdb-cluster]\x20slot=','292876tVolsD','name',');\x20','node:perf_hooks','enabled','_ensureDesired','state','attachFeed','_drainOne','reap','_onProcEvent','participate','stringify','_collectWriterFacet','processor:progress','\x20(durable\x20desired-state)','\x20stays\x20down\x20on\x20boot\x20(durable\x20decommission)','heapTotal','ms\x20mean=','ppid','error:\x20','\x20│\x20','_done','has','_buildOwnRow','sync','\x20worker(s)\x20still\x20serving','fromEntries','version','write','put','_enableChangelog','~lock','_flushDebounce','options','system:proc','pid','stopped','--eval','remove','[okdb-cluster]\x20worker\x20pid=','_nodeDbFor','dropFts','started','ms\x20env=','waiting','loop-lag\x20','item:pending','attach','_scheduleFlush','_dedupeMax','_instanceId','system:type_drop','function','withPoolHold','[okdb-cluster]\x20primary\x20pid=',']:\x20transaction\x20ran\x20nested\x20inside\x20a\x20write\x20txn\x20held\x20open\x20by\x20a\x20non-writer\x20caller','index:drop','detachConsole','cpuPct','_onTick','percentile','rss','_isStale','then','_released','processes','instances','_statusEnv','close','~processes:cmd','committed','hostname','MAX_POOL_HOLDS','holder','memoryUsage','_buildChildRow','openDB','\x20while\x20this\x20process\x20runs\x20','setOwnMeta','isWorker','clusterStatusView','stack','_admissionTimer','connected','txn:rollback','cpuUsage','removeSupervisedChild','isConnected','starting','_processStartedAt','registerIndex','_wantDbOf','_lastCpuWindowMs','processingSig','\x20(slot=','cluster','3210522MClhtJ','_clusterWorkerAttached','system','_flushTimer','http','object','_lastCpuPct','flushed','3586740GhQUBq','pushEphemeral','_heldTotal','busy','INDEX_PROGRESS','expiresAt','envsOpen','repeat','code','setTtl','dropType','drain\x20state\x20(envs\x20with\x20a\x20non-zero\x20drain):','_highWater','--print','call','decommission','[okdb-cluster]\x20respawning\x20worker\x20slot=','3789dqggbJ','decommissioned','VIEW_PROGRESS','epoch','size','_refreshDesiredSnapshot','_lastPublishAt','_listenAddr','ms\x20busy=','oldestPendingMs','clearThreadStats','processor:paused','\x0a===\x20OKDB_DIAG\x20STALL:\x20swap\x20drain\x20held\x20','SYNC_COMMITS'];_0x70b3=function(){return _0x3a3f66;};return _0x70b3();}var version='2.5.0',require$$6={'version':version},okdbProcessRegistry,hasRequiredOkdbProcessRegistry;function requireOkdbProcessRegistry(){const _0x5c609f=_0x1f2bca;if(hasRequiredOkdbProcessRegistry)return okdbProcessRegistry;hasRequiredOkdbProcessRegistry=0x1;const _0x12226b=require$$0$3,_0x5022d3=require$$1$1,_0x1139e2=require$$2,{LOOP:_0x4e8e2c}=requireOkdbLoopMonitor(),{OKDBLock:_0x513caf}=requireOkdbLock(),{SYNC_COMMITS:_0x4fcfd1}=requireOkdbWriter(),_0x2aae72=_0x5c609f(0x348),_0x152022='node',_0x35404c=_0x5c609f(0x305),_0x4e28a1=_0x5c609f(0x15c),_0x21d492=(_0x53554d,_0x556d15)=>_0x53554d+':'+_0x556d15,_0x40a41e=(_0x429951,_0x5d5a80)=>_0x429951+'::'+_0x5d5a80,_0x2868ed=(_0x36fc2c,_0x18ff4a)=>_0x36fc2c+'/'+_0x18ff4a,_0x126f72=(_0x215658,_0x13af8b)=>_0x215658+'#'+_0x13af8b,_0x5cfd24=_0x33d5e1=>{const _0x53082a=_0x5c609f;if(_0x33d5e1?.[_0x53082a(0x2e3)])return _0x33d5e1['processKey'];const _0x1b4a5f=_0x33d5e1?.[_0x53082a(0x1a6)];return typeof _0x1b4a5f===_0x53082a(0x218)&&_0x1b4a5f[_0x53082a(0x1df)]('#')?_0x1b4a5f[_0x53082a(0x2d1)](0x0,_0x1b4a5f[_0x53082a(0x276)]('#')):_0x1b4a5f;},_0x208953=Number(process.env.OKDB_WORKERS_HEARTBEAT_MS)||0x2710,_0x119659=Number(process.env.OKDB_WORKERS_PUBLISH_MS)||0x3e8,_0x5bc795=_0x208953*0x3,_0x18268e=Number(process.env.OKDB_PID_REUSE_HORIZON_MS)||Math[_0x5c609f(0x1a3)](0x927c0,_0x5bc795*0x14),_0x5b50c7=[_0x5c609f(0x376),_0x5c609f(0x2cb),_0x5c609f(0x1bc),_0x5c609f(0x1c3),_0x5c609f(0x19b),_0x5c609f(0x35b)];let _0x23efd7=null;function _0x5c5590(){const _0x33c1a4=_0x5c609f;if(_0x23efd7==null)_0x23efd7=Math[_0x33c1a4(0x24f)]((Date[_0x33c1a4(0x1cf)]()-process[_0x33c1a4(0x337)]()*0x3e8)/0x3e8)*0x3e8;return _0x23efd7;}function _0x3e193d(_0x489b33){const _0x55aed2=_0x5c609f;if(process.env.OKDB_PROCESS_KILL==='off')return![];if(_0x489b33?.[_0x55aed2(0x138)]?.[_0x55aed2(0x158)]&&typeof _0x489b33['options']['processes']==='object'&&_0x489b33[_0x55aed2(0x138)]['processes'][_0x55aed2(0x2b3)]===![])return![];return!![];}function _0x1dd7d1(_0x1d9d5c,_0x5c32c8){const _0xf8ad2a=_0x5c609f,_0x33378d=!!_0x5c32c8?.['processors'];switch(_0x1d9d5c){case _0xf8ad2a(0x2db):return{'controllable':_0x33378d,'decommissionable':![],'killable':!![],'killConfirm':_0xf8ad2a(0x204)};case'cli':case _0xf8ad2a(0x306):return{'controllable':_0x33378d,'decommissionable':![],'killable':!![],'killConfirm':_0xf8ad2a(0x2f2)};case _0xf8ad2a(0x346):return{'controllable':![],'decommissionable':![],'killable':![]};case'http-server':case'queue-worker':case _0xf8ad2a(0x1f8):case _0xf8ad2a(0x355):return{'controllable':![],'decommissionable':!![],'killable':!![],'killConfirm':'force'};default:return{'controllable':![],'decommissionable':![],'killable':![]};}}class _0x6866a6{constructor(_0x24f0ba){const _0x1e776e=_0x5c609f;this[_0x1e776e(0x2c6)]=_0x24f0ba,this['_statusEnv']=null,this['_desired']=null,this[_0x1e776e(0x2f5)]=new Map(),this[_0x1e776e(0x1e5)]=null,this['_isWriter']=![],this[_0x1e776e(0x203)]=![],this[_0x1e776e(0x170)]=_0x5c5590(),this['_selfKey']=_0x21d492(process['pid'],this[_0x1e776e(0x170)]),this[_0x1e776e(0x149)]=_0x1139e2['randomUUID']()[_0x1e776e(0x2d1)](0x0,0x8),this[_0x1e776e(0x1a2)]=_0x126f72(this['_selfKey'],this[_0x1e776e(0x149)]),this['_startedAt']=Date['now'](),this['_kind']=null,this[_0x1e776e(0x28f)]=null,this[_0x1e776e(0x197)]=null,this[_0x1e776e(0x366)]=null,this[_0x1e776e(0x372)]=null,this['_onTick']=null,this['_lastPublishAt']=0x0,this[_0x1e776e(0x290)]={},this['_children']=new Map(),this['_lastCpuUsage']=process[_0x1e776e(0x16c)](),this['_lastCpuAt']=Date['now'](),this[_0x1e776e(0x17d)]=0x0,this['_threadStats']=new Map();}get[_0x5c609f(0x357)](){const _0x1b3c75=_0x5c609f;return this[_0x1b3c75(0x353)];}get['rowKey'](){const _0x49ec18=_0x5c609f;return this[_0x49ec18(0x1a2)];}[_0x5c609f(0x21e)](_0x1937c8,_0x165bd8){const _0x2c9d21=_0x5c609f,_0x551ba0=_0x1dd7d1(_0x1937c8,_0x165bd8);if(_0x551ba0[_0x2c9d21(0x265)]&&!_0x3e193d(this[_0x2c9d21(0x2c6)]))return{..._0x551ba0,'killable':![],'killConfirm':undefined};return _0x551ba0;}[_0x5c609f(0x215)](){const _0x1fba1c=_0x5c609f;return!!this[_0x1fba1c(0x15a)];}[_0x5c609f(0x165)](_0x4fa565){const _0x693c27=_0x5c609f;Object[_0x693c27(0x1a4)](this['_ownMeta'],_0x4fa565||{});}[_0x5c609f(0x1ab)](_0x1d78f4){const _0x25ea89=_0x5c609f;if(_0x1d78f4)this[_0x25ea89(0x197)]=_0x1d78f4;}['register'](_0x45e910={}){const _0x3acc76=_0x5c609f;return this['okdb'][_0x3acc76(0x327)](_0x45e910);}['processingStatusView'](){const _0x3fb7ba=_0x5c609f,_0x122365={};let _0xccbdbe=0x0,_0x1b66ca=0x0;const _0x388bcd=new Set();for(const _0x12651a of this['listNodes']()){_0x1b66ca++;const _0xec0261=_0x12651a['processing'];if(!_0xec0261)continue;if(_0xec0261[_0x3fb7ba(0x373)])_0xccbdbe++;for(const _0x19b64a of _0xec0261[_0x3fb7ba(0x20e)]||[]){if(!['single',_0x3fb7ba(0x358)][_0x3fb7ba(0x1df)](_0x19b64a[_0x3fb7ba(0x27d)]))continue;(_0x19b64a[_0x3fb7ba(0x36e)]===_0x3fb7ba(0x2d5)||_0x19b64a[_0x3fb7ba(0x36e)]===_0x3fb7ba(0x238))&&_0x19b64a[_0x3fb7ba(0x32b)]&&_0x388bcd[_0x3fb7ba(0x342)]((_0x19b64a[_0x3fb7ba(0x28e)]||_0x3fb7ba(0x2e7))+':'+_0x19b64a[_0x3fb7ba(0x32b)]);const _0x14a810=_0x19b64a[_0x3fb7ba(0x28e)]||_0x3fb7ba(0x2e7);(_0x122365[_0x14a810]||=[])['push']({..._0x19b64a,'env':_0x14a810,'owner':{'pid':_0x12651a[_0x3fb7ba(0x13a)]??null,'kind':_0x12651a[_0x3fb7ba(0x2c3)]??null}});}}for(const [_0x100185,_0x38b9e3]of Object[_0x3fb7ba(0x334)](_0x122365)){for(const _0x1a5051 of _0x38b9e3){if(_0x1a5051[_0x3fb7ba(0x27d)]==='single'&&!_0x1a5051[_0x3fb7ba(0x274)]){const _0x59da62=_0x100185+':'+(_0x1a5051[_0x3fb7ba(0x32b)]??'');if(!_0x388bcd[_0x3fb7ba(0x12d)](_0x59da62))_0x1a5051[_0x3fb7ba(0x365)]=!![];}}}return{'envs':_0x122365,'policy':null,'participation':{'participating':_0xccbdbe,'total':_0x1b66ca},'source':_0x3fb7ba(0x1ce)};}[_0x5c609f(0x27f)](){const _0x59fdcc=_0x5c609f,_0x420ec4=_0x584b73=>{const _0x2b285a=_0x2789;if(_0x584b73[_0x2b285a(0x36e)]===_0x2b285a(0x2d5)||_0x584b73['state']===_0x2b285a(0x238)||_0x584b73['state']===_0x2b285a(0x263))return 0x3;if(_0x584b73['claimGated'])return 0x1;return 0x2;},_0x166ca6=new Map();for(const _0x4581d9 of this[_0x59fdcc(0x1b9)]()){for(const _0x339d9a of _0x4581d9[_0x59fdcc(0x2c7)]?.[_0x59fdcc(0x20e)]||[]){const _0xbf312d={..._0x339d9a,'owner':{'pid':_0x4581d9[_0x59fdcc(0x13a)]??null,'kind':_0x4581d9[_0x59fdcc(0x2c3)]??null,'host':_0x4581d9['host']??null}},_0x8e7897=_0x339d9a[_0x59fdcc(0x27d)]===_0x59fdcc(0x278)?_0x59fdcc(0x29a)+(_0x339d9a[_0x59fdcc(0x28e)]??'')+'::'+(_0x339d9a[_0x59fdcc(0x32b)]??_0x339d9a['type']??_0x339d9a['id']):_0x59fdcc(0x2c9)+(_0x4581d9[_0x59fdcc(0x1a6)]??_0x4581d9['processKey']??'')+'::'+(_0x339d9a[_0x59fdcc(0x28e)]??'')+'::'+_0x339d9a['id'],_0x3afa86=_0x166ca6['get'](_0x8e7897);if(!_0x3afa86||_0x420ec4(_0xbf312d)>_0x420ec4(_0x3afa86))_0x166ca6['set'](_0x8e7897,_0xbf312d);}}return[..._0x166ca6[_0x59fdcc(0x20c)]()];}[_0x5c609f(0x167)](){const _0xe34707=_0x5c609f,_0x4ef762=Date[_0xe34707(0x1cf)](),_0x38f807=this[_0xe34707(0x1b9)](),_0x30dbcd=_0x3f7286=>Math['max'](0x0,Math[_0xe34707(0x24f)]((_0x4ef762-(_0x3f7286[_0xe34707(0x338)]||_0x4ef762))/0x3e8)),_0x49bc17=_0x38f807[_0xe34707(0x2c4)](_0x545926=>_0x545926['kind']===_0xe34707(0x2db)),_0x25d278=_0x38f807[_0xe34707(0x336)](_0x5857ec=>_0x5857ec[_0xe34707(0x2c3)]===_0xe34707(0x1c9));if(_0x49bc17||_0x25d278[_0xe34707(0x2b7)])return{'primary':_0x49bc17?{'pid':_0x49bc17[_0xe34707(0x13a)],'uptime':_0x30dbcd(_0x49bc17)}:null,'workers':_0x25d278['map'](_0x50695e=>({'pid':_0x50695e['pid'],'uptime':_0x30dbcd(_0x50695e)})),'workersConfigured':_0x49bc17?.[_0xe34707(0x341)]?.['workersConfigured']??_0x25d278[_0xe34707(0x2b7)],'mode':_0xe34707(0x176)};const _0x5cc079=_0x38f807['find'](_0x583e48=>_0x583e48[_0xe34707(0x2c3)]===_0xe34707(0x200)||_0x583e48[_0xe34707(0x2c3)]==='standalone'||_0x583e48[_0xe34707(0x2c3)]===_0xe34707(0x346)),_0x338a74=_0x5cc079?{'pid':_0x5cc079[_0xe34707(0x13a)],'uptime':_0x30dbcd(_0x5cc079)}:{'pid':process[_0xe34707(0x13a)],'uptime':Math['max'](0x0,Math[_0xe34707(0x24f)](process[_0xe34707(0x337)]()))};return{'primary':_0x338a74,'workers':[_0x338a74],'workersConfigured':0x1,'mode':_0xe34707(0x278)};}['nodesView'](){const _0x14f954=_0x5c609f;return this[_0x14f954(0x270)]();}['treeView'](){const _0x1882e1=_0x5c609f,_0x40cf61=new Map();for(const _0xc0242c of this[_0x1882e1(0x270)]())_0x40cf61['set'](_0xc0242c[_0x1882e1(0x2e3)],{..._0xc0242c,'children':[]});const _0x5c18a1=[];for(const _0x29eaa4 of _0x40cf61[_0x1882e1(0x20c)]()){const _0x203e9c=_0x29eaa4['supervisorKey']?_0x40cf61[_0x1882e1(0x245)](_0x29eaa4[_0x1882e1(0x2c1)]):null;if(_0x203e9c&&_0x203e9c!==_0x29eaa4)_0x203e9c['children'][_0x1882e1(0x22b)](_0x29eaa4);else _0x5c18a1[_0x1882e1(0x22b)](_0x29eaa4);}const _0xf98203=(_0x8cffe8,_0x2f7ab9)=>_0x8cffe8['kind']===_0x2f7ab9[_0x1882e1(0x2c3)]?(_0x8cffe8['pid']||0x0)-(_0x2f7ab9[_0x1882e1(0x13a)]||0x0):(_0x8cffe8['kind']??'')<(_0x2f7ab9[_0x1882e1(0x2c3)]??'')?-0x1:0x1,_0x220818=_0x5b95fe=>{const _0xffb3e7=_0x1882e1;_0x5b95fe[_0xffb3e7(0x213)](_0xf98203);for(const _0x291b89 of _0x5b95fe)if(_0x291b89[_0xffb3e7(0x1f2)]['length'])_0x220818(_0x291b89[_0xffb3e7(0x1f2)]);};return _0x220818(_0x5c18a1),_0x5c18a1;}['getProcess'](_0x391636){const _0x56b65d=_0x5c609f;return this[_0x56b65d(0x270)]()[_0x56b65d(0x2c4)](_0x1a61a5=>_0x1a61a5[_0x56b65d(0x2e3)]===_0x391636)??null;}['_groupByProcess'](_0x483f2e=Date[_0x5c609f(0x1cf)]()){const _0x29b4de=_0x5c609f,_0x3a2e6b=new Map();for(const _0x3f4c1d of this[_0x29b4de(0x1b9)]()){const _0x23b89c=_0x5cfd24(_0x3f4c1d);let _0x4fe5bb=_0x3a2e6b[_0x29b4de(0x245)](_0x23b89c);!_0x4fe5bb&&(_0x4fe5bb={'processKey':_0x23b89c,'nodeKey':_0x23b89c,'pid':_0x3f4c1d[_0x29b4de(0x13a)],'ppid':_0x3f4c1d[_0x29b4de(0x129)]??null,'host':_0x3f4c1d[_0x29b4de(0x277)]??null,'kind':_0x3f4c1d[_0x29b4de(0x2c3)],'role':null,'supervisorKey':_0x3f4c1d[_0x29b4de(0x2c1)]??null,'slot':_0x3f4c1d[_0x29b4de(0x23f)]??null,'slotKey':_0x3f4c1d[_0x29b4de(0x35a)]??null,'caps':_0x3f4c1d[_0x29b4de(0x1ac)]??null,'lifecycle':_0x3f4c1d[_0x29b4de(0x1f1)]??null,'uptime':Math[_0x29b4de(0x1a3)](0x0,Math[_0x29b4de(0x24f)]((_0x483f2e-(_0x3f4c1d[_0x29b4de(0x338)]||_0x483f2e))/0x3e8)),'startedAt':_0x3f4c1d[_0x29b4de(0x338)]??null,'meta':_0x3f4c1d['meta']??null,'listenAddr':null,'processing':null,'engines':null,'singletonClaims':null,'stats':null,'instances':[]},_0x3a2e6b[_0x29b4de(0x1c4)](_0x23b89c,_0x4fe5bb));_0x4fe5bb[_0x29b4de(0x159)]['push']({'instanceId':_0x3f4c1d[_0x29b4de(0x19e)]??null,'role':_0x3f4c1d[_0x29b4de(0x23b)]??null,'listenAddr':_0x3f4c1d[_0x29b4de(0x1e0)]??null,'lifecycle':_0x3f4c1d[_0x29b4de(0x1f1)]??null,'processing':_0x3f4c1d[_0x29b4de(0x2c7)]??null});if(!_0x4fe5bb[_0x29b4de(0x23b)]&&_0x3f4c1d['role'])_0x4fe5bb['role']=_0x3f4c1d[_0x29b4de(0x23b)];if(!_0x4fe5bb[_0x29b4de(0x1e0)]&&_0x3f4c1d[_0x29b4de(0x1e0)])_0x4fe5bb[_0x29b4de(0x1e0)]=_0x3f4c1d['listenAddr'];if(!_0x4fe5bb['processing']&&_0x3f4c1d[_0x29b4de(0x2c7)])_0x4fe5bb['processing']=_0x3f4c1d[_0x29b4de(0x2c7)];if(!_0x4fe5bb[_0x29b4de(0x1e6)]&&_0x3f4c1d[_0x29b4de(0x1e6)])_0x4fe5bb['engines']=_0x3f4c1d['engines'];if(!_0x4fe5bb[_0x29b4de(0x31a)]&&_0x3f4c1d['singletonClaims'])_0x4fe5bb[_0x29b4de(0x31a)]=_0x3f4c1d['singletonClaims'];if(_0x4fe5bb[_0x29b4de(0x1ac)]==null&&_0x3f4c1d[_0x29b4de(0x1ac)])_0x4fe5bb['caps']=_0x3f4c1d['caps'];if(_0x3f4c1d[_0x29b4de(0x243)]&&(!_0x4fe5bb[_0x29b4de(0x243)]||(_0x3f4c1d['stats']['at']??0x0)>(_0x4fe5bb[_0x29b4de(0x243)]['at']??0x0)))_0x4fe5bb[_0x29b4de(0x243)]=_0x3f4c1d['stats'];}return[..._0x3a2e6b[_0x29b4de(0x20c)]()];}[_0x5c609f(0x264)](){const _0xc03132=_0x5c609f,_0x7bced3=[],_0x20e894={'rss':0x0,'heapUsed':0x0,'processes':0x0,'threads':{'count':0x0,'sandbox':0x0,'busy':0x0}};for(const _0x5e3912 of this[_0xc03132(0x270)]()){_0x7bced3[_0xc03132(0x22b)]({'processKey':_0x5e3912[_0xc03132(0x2e3)],'kind':_0x5e3912[_0xc03132(0x2c3)],'pid':_0x5e3912[_0xc03132(0x13a)],'supervisorKey':_0x5e3912[_0xc03132(0x2c1)],'meta':_0x5e3912['meta']??null,'uptime':_0x5e3912['uptime'],'stats':_0x5e3912[_0xc03132(0x243)]??null}),_0x20e894[_0xc03132(0x158)]++;if(_0x5e3912[_0xc03132(0x243)]){_0x20e894['rss']+=_0x5e3912[_0xc03132(0x243)][_0xc03132(0x154)]||0x0,_0x20e894[_0xc03132(0x34c)]+=(_0x5e3912[_0xc03132(0x243)][_0xc03132(0x34c)]||0x0)+(_0x5e3912[_0xc03132(0x243)][_0xc03132(0x212)]?.[_0xc03132(0x34c)]||0x0);const _0x2bb675=_0x5e3912['stats']['threads'];_0x2bb675&&(_0x20e894['threads']['count']+=_0x2bb675[_0xc03132(0x1b4)]||0x0,_0x20e894[_0xc03132(0x212)]['sandbox']+=_0x2bb675[_0xc03132(0x2cc)]||0x0,_0x20e894[_0xc03132(0x212)]['busy']+=_0x2bb675['busy']||0x0);}}return{'totals':_0x20e894,'nodes':_0x7bced3};}async['open']({writer:writer=![],reader:reader=![],kind:kind=null,supervisorKey:supervisorKey=null,listenAddr:listenAddr=null}={}){const _0x217aa1=_0x5c609f;this[_0x217aa1(0x1c8)]=this['_isWriter']||!!writer,this[_0x217aa1(0x203)]=this['_isReader']||!!reader,this[_0x217aa1(0x261)]=kind||this[_0x217aa1(0x261)]||(_0x5022d3[_0x217aa1(0x166)]?_0x217aa1(0x1c9):_0x217aa1(0x200)),this['_supervisorKey']=supervisorKey??this[_0x217aa1(0x28f)],this['_listenAddr']=listenAddr??this[_0x217aa1(0x197)],this[_0x217aa1(0x36d)](),await this['_migrateVocab']();if(!writer&&!reader)return null;if(!this[_0x217aa1(0x15a)]){const _0x5a94bc=await this['okdb'][_0x217aa1(0x269)](_0x2aae72,{'sync':![],'durability':'fast'});await _0x5a94bc['ensureType'](_0x152022),this[_0x217aa1(0x15a)]=_0x5a94bc;}return this['_statusEnv'];}[_0x5c609f(0x1c5)](){const _0x449d0d=_0x5c609f;return this[_0x449d0d(0x13f)]!==this[_0x449d0d(0x15a)]&&(this[_0x449d0d(0x13f)]=this[_0x449d0d(0x15a)],this[_0x449d0d(0x247)]=this[_0x449d0d(0x15a)][_0x449d0d(0x1e4)](_0x152022)[_0x449d0d(0x1cb)]),this[_0x449d0d(0x247)];}[_0x5c609f(0x2e1)](_0x1d3a9e){const _0x29a725=_0x5c609f;if(_0x4fcfd1)return this[_0x29a725(0x1c5)]()[_0x29a725(0x22d)](_0x1d3a9e['nodeKey'],_0x1d3a9e,0x1);const _0x403651=this[_0x29a725(0x1c5)]()[_0x29a725(0x134)](_0x1d3a9e[_0x29a725(0x1a6)],_0x1d3a9e,0x1);if(_0x403651&&typeof _0x403651[_0x29a725(0x156)]===_0x29a725(0x14b))_0x403651['then'](undefined,()=>{});return _0x403651;}['_putRowSync'](_0xec80f7){const _0x50c1b0=_0x5c609f;return this[_0x50c1b0(0x1c5)]()[_0x50c1b0(0x22d)](_0xec80f7['nodeKey'],_0xec80f7,0x1);}['_removeRowAsync'](_0x49859e){const _0x14c0cb=_0x5c609f;if(_0x4fcfd1)try{return this[_0x14c0cb(0x1c5)]()[_0x14c0cb(0x267)](_0x49859e);}catch{return![];}const _0x2361ba=this[_0x14c0cb(0x1c5)]()[_0x14c0cb(0x13d)](_0x49859e);if(_0x2361ba&&typeof _0x2361ba[_0x14c0cb(0x156)]===_0x14c0cb(0x14b))_0x2361ba[_0x14c0cb(0x156)](undefined,()=>{});return _0x2361ba;}async[_0x5c609f(0x25f)](_0x55b6d9){const _0xb4a769=_0x5c609f;if(!this[_0xb4a769(0x15a)]||!this[_0xb4a769(0x1c8)]||!_0x55b6d9?.[_0xb4a769(0x1a6)])return;return this['_putRowAsync'](_0x55b6d9);}async[_0x5c609f(0x242)](_0x2e4fe4){const _0x4911ba=_0x5c609f;if(!this[_0x4911ba(0x15a)]||!this[_0x4911ba(0x1c8)]||!_0x2e4fe4)return;const _0x1f3a34=_0x2e4fe4[_0x4911ba(0x1df)]('#'),_0x518474=[];for(const {key:_0x2d9a8c}of this[_0x4911ba(0x15a)][_0x4911ba(0x2dd)](_0x152022)){if(_0x2d9a8c===_0x2e4fe4||!_0x1f3a34&&typeof _0x2d9a8c===_0x4911ba(0x218)&&_0x2d9a8c['startsWith'](_0x2e4fe4+'#'))_0x518474[_0x4911ba(0x22b)](_0x2d9a8c);}for(const _0xe246a5 of _0x518474){try{this[_0x4911ba(0x1c5)]()[_0x4911ba(0x267)](_0xe246a5);}catch{}}}[_0x5c609f(0x268)](_0x21b7e7){const _0x2c44bb=_0x5c609f;if(typeof _0x21b7e7?.[_0x2c44bb(0x13a)]!==_0x2c44bb(0x2f4))return![];if(_0x21b7e7[_0x2c44bb(0x277)]!==_0x12226b['hostname']())return![];if(_0x21b7e7['pid']===process[_0x2c44bb(0x13a)])return![];if(_0x21b7e7[_0x2c44bb(0x184)]!=null&&_0x21b7e7['expiresAt']<Date[_0x2c44bb(0x1cf)]()-_0x18268e)return!![];try{return process[_0x2c44bb(0x2b3)](_0x21b7e7[_0x2c44bb(0x13a)],0x0),![];}catch(_0x19345e){return _0x19345e[_0x2c44bb(0x187)]===_0x2c44bb(0x29f);}}['listNodes'](){const _0x242f99=_0x5c609f;if(!this[_0x242f99(0x15a)])return[];try{this['_statusEnv']['db']?.['resetReadTxn']?.();}catch{}const _0x4d10a2=Date['now'](),_0x1e5b4b=_0x12226b[_0x242f99(0x15e)](),_0x21c5ff=[];for(const {value:_0x119c82}of this[_0x242f99(0x15a)]['getRange'](_0x152022)){if(!_0x119c82)continue;let _0x674af0=null;_0x119c82[_0x242f99(0x277)]===_0x1e5b4b&&typeof _0x119c82[_0x242f99(0x13a)]==='number'&&(_0x674af0=!this['_nodeDead'](_0x119c82));if(_0x674af0===![])continue;const _0x3be0ea=_0x119c82[_0x242f99(0x184)]==null||_0x119c82[_0x242f99(0x184)]>=_0x4d10a2;if(_0x674af0===!![]||_0x3be0ea)_0x21c5ff[_0x242f99(0x22b)](_0x119c82);}return _0x21c5ff;}async[_0x5c609f(0x371)](_0x42cddf=0x0){const _0x471a31=_0x5c609f;if(!this[_0x471a31(0x15a)]||!this['_isWriter'])return;const _0x2e44f8=Date[_0x471a31(0x1cf)]()-_0x42cddf,_0x5450f4=new Set(),_0x14fd7b=[],_0x3c5fea=_0x12226b[_0x471a31(0x15e)](),_0x322f16=require$$6[_0x471a31(0x132)];for(const {key:_0x382499,value:_0x5b8328}of this['_statusEnv'][_0x471a31(0x2dd)](_0x152022)){if(!_0x5b8328)continue;const _0x303944=_0x5b8328[_0x471a31(0x277)]===_0x3c5fea&&typeof _0x5b8328[_0x471a31(0x13a)]===_0x471a31(0x2f4),_0x1a481a=_0x303944?this[_0x471a31(0x268)](_0x5b8328):_0x5b8328[_0x471a31(0x184)]!=null&&_0x5b8328[_0x471a31(0x184)]<_0x2e44f8;if(_0x1a481a)_0x14fd7b[_0x471a31(0x22b)](_0x382499);else{_0x5450f4[_0x471a31(0x342)](_0x5cfd24(_0x5b8328)??_0x382499);if(_0x5b8328['version']&&_0x5b8328[_0x471a31(0x132)]!==_0x322f16){if(!this[_0x471a31(0x210)])this[_0x471a31(0x210)]=new Set();!this[_0x471a31(0x210)][_0x471a31(0x12d)](_0x5b8328['version'])&&(this['_versionSkewWarned'][_0x471a31(0x342)](_0x5b8328[_0x471a31(0x132)]),this[_0x471a31(0x2c6)]['log']?.[_0x471a31(0x1b0)]?.('process\x20'+(_0x5b8328[_0x471a31(0x13a)]??'?')+_0x471a31(0x275)+_0x5b8328['version']+_0x471a31(0x164)+_0x322f16+'\x20—\x20'+_0x471a31(0x32d),{'feature':_0x471a31(0x214)}));}}}for(const _0xb099fe of _0x14fd7b)this[_0x471a31(0x256)](_0xb099fe);if(this[_0x471a31(0x36d)]()){const _0x3517b7=[];for(const {key:_0x48297d}of this[_0x471a31(0x34e)](_0x471a31(0x304))){if(!_0x5450f4[_0x471a31(0x12d)](_0x48297d)){if(_0x4fcfd1)try{this[_0x471a31(0x249)]['removeSync'](_0x471a31(0x349)+_0x48297d);}catch{}else _0x3517b7['push'](this[_0x471a31(0x249)]['remove'](_0x471a31(0x349)+_0x48297d));}}if(_0x3517b7[_0x471a31(0x2b7)])await Promise['allSettled'](_0x3517b7);}}[_0x5c609f(0x2e8)](_0x28b5d7=null){const _0x35469b=_0x5c609f;if(this['_hbTimer'])return;if(!this[_0x35469b(0x1c8)]||!this[_0x35469b(0x15a)]){this['okdb']?.['log']?.['warn']?.('registry\x20heartbeat\x20skipped\x20(writer='+this[_0x35469b(0x1c8)]+_0x35469b(0x2bd)+!!this[_0x35469b(0x15a)]+_0x35469b(0x33b),{'feature':_0x35469b(0x158)});return;}this[_0x35469b(0x152)]=_0x28b5d7,this[_0x35469b(0x372)]=()=>this[_0x35469b(0x2b1)]();for(const _0x3ff5b0 of _0x5b50c7)this[_0x35469b(0x2c6)][_0x35469b(0x2a5)]['on'](_0x3ff5b0,this[_0x35469b(0x372)]);this[_0x35469b(0x251)]();const _0x307fa7=Number(process.env.OKDB_WORKERS_HEARTBEAT_MS)||_0x208953;this['_hbTimer']=setInterval(()=>{const _0x5bc401=_0x35469b;if(this[_0x5bc401(0x152)])try{this[_0x5bc401(0x152)]();}catch{}this[_0x5bc401(0x251)](),this['reap']()['catch'](()=>{});},_0x307fa7);if(this['_hbTimer']['unref'])this[_0x35469b(0x366)][_0x35469b(0x343)]();}['_maybePublish'](){const _0x8a4715=_0x5c609f;if(!this[_0x8a4715(0x1c8)]||!this[_0x8a4715(0x15a)])return;if(Date[_0x8a4715(0x1cf)]()-this[_0x8a4715(0x196)]<_0x119659)return;this[_0x8a4715(0x251)]();}[_0x5c609f(0x251)](){const _0x3560fc=_0x5c609f;if(!this[_0x3560fc(0x1c8)]||!this['_statusEnv'])return;this[_0x3560fc(0x196)]=Date['now']();try{const _0x560bc6=[this[_0x3560fc(0x12e)]()];for(const _0x27c534 of this[_0x3560fc(0x326)][_0x3560fc(0x20c)]())_0x560bc6[_0x3560fc(0x22b)](this['_buildChildRow'](_0x27c534));const _0x24fe2c=_0x4e8e2c['enabled']?_0x4e8e2c[_0x3560fc(0x1cf)]():0x0;for(const _0x3915f5 of _0x560bc6){try{this[_0x3560fc(0x31b)](_0x3915f5),this[_0x3560fc(0x2ed)]=![];}catch(_0x8f631){!this[_0x3560fc(0x2ed)]&&(this[_0x3560fc(0x2ed)]=!![],this[_0x3560fc(0x2c6)]?.[_0x3560fc(0x271)]?.[_0x3560fc(0x1b0)]?.(_0x3560fc(0x2d7)+_0x8f631[_0x3560fc(0x2f8)],{'feature':_0x3560fc(0x158)}));}}if(_0x4e8e2c[_0x3560fc(0x36c)])_0x4e8e2c[_0x3560fc(0x22a)](_0x3560fc(0x2fe),_0x4e8e2c[_0x3560fc(0x1cf)]()-_0x24fe2c,'rows='+_0x560bc6[_0x3560fc(0x2b7)]+'\x20sync');}catch(_0x598ea6){!this[_0x3560fc(0x2ed)]&&(this['_publishFailWarned']=!![],this[_0x3560fc(0x2c6)]?.[_0x3560fc(0x271)]?.['warn']?.(_0x3560fc(0x2d7)+_0x598ea6[_0x3560fc(0x2f8)],{'feature':_0x3560fc(0x158)}));}}async[_0x5c609f(0x30c)](){const _0x3dabec=_0x5c609f;if(this[_0x3dabec(0x372)]){for(const _0x12cd6a of _0x5b50c7){try{this['okdb']['events'][_0x3dabec(0x19f)](_0x12cd6a,this[_0x3dabec(0x372)]);}catch{}}this['_onProcEvent']=null;}this[_0x3dabec(0x366)]&&(clearInterval(this['_hbTimer']),this[_0x3dabec(0x366)]=null);try{if(this[_0x3dabec(0x15a)]&&this[_0x3dabec(0x1c8)])await this[_0x3dabec(0x242)](this[_0x3dabec(0x1a2)]);}catch{}}async[_0x5c609f(0x250)](){const _0x1fb7ff=_0x5c609f;if(!this[_0x1fb7ff(0x15a)]||!this[_0x1fb7ff(0x1c8)])return;try{await this['removeNode'](this[_0x1fb7ff(0x1a2)]);}catch{}try{const _0xb6ed81=[];for(const {value:_0x4952a1}of this[_0x1fb7ff(0x15a)]['getRange'](_0x152022)){if(_0x4952a1?.['ppid']===process[_0x1fb7ff(0x13a)]&&_0x4952a1[_0x1fb7ff(0x1a6)])_0xb6ed81[_0x1fb7ff(0x22b)](_0x4952a1[_0x1fb7ff(0x1a6)]);}for(const _0x392014 of _0xb6ed81){try{await this[_0x1fb7ff(0x242)](_0x392014);}catch{}}}catch{}}async[_0x5c609f(0x1e9)](){const _0x54f927=_0x5c609f;return this[_0x54f927(0x25f)](this['_buildOwnRow']());}async[_0x5c609f(0x1e2)](_0x8151df){const _0x5befa5=_0x5c609f;if(!this[_0x5befa5(0x15a)]||!this[_0x5befa5(0x1c8)])return;return this['putNode'](this[_0x5befa5(0x162)](_0x8151df));}['_buildChildRow']({pid:_0x5008f3,startedAt:_0x1dfdca,kind:_0x370fb7,supervisorKey:_0x138f25,slot:slot=null,slotKey:slotKey=null,role:role={},listenAddr:listenAddr=null,processing:processing=null,lifecycle:lifecycle=_0x5c609f(0x2e6),meta:meta=null,stats:stats=null}){const _0x47dda4=_0x5c609f,_0x5bf381=Date[_0x47dda4(0x1cf)](),_0x2dd6d7=_0x21d492(_0x5008f3,_0x1dfdca);return{'nodeKey':_0x126f72(_0x2dd6d7,'0'),'processKey':_0x2dd6d7,'instanceId':'0','pid':_0x5008f3,'startedAt':_0x1dfdca,'ppid':process[_0x47dda4(0x13a)],'host':_0x12226b[_0x47dda4(0x15e)](),'supervisorKey':_0x138f25,'slot':slot,'slotKey':slotKey,'kind':_0x370fb7,'role':role,'listenAddr':listenAddr,'heartbeatAt':_0x5bf381,'expiresAt':_0x5bf381+_0x5bc795,'caps':this['_caps'](_0x370fb7,role),'lifecycle':{'state':lifecycle,'desiredVersionApplied':null},'processing':processing,'meta':meta,'stats':stats};}async['addSupervisedChild'](_0x2f6989){const _0x2babc0=_0x5c609f;if(!_0x2f6989?.['pid'])return null;const _0x182cd5=_0x21d492(_0x2f6989['pid'],_0x2f6989[_0x2babc0(0x338)]);this[_0x2babc0(0x326)]['set'](_0x182cd5,{..._0x2f6989,'supervisorKey':_0x2f6989[_0x2babc0(0x2c1)]??this[_0x2babc0(0x353)]});if(this[_0x2babc0(0x1c8)])await this['publishChildRow'](this[_0x2babc0(0x326)][_0x2babc0(0x245)](_0x182cd5))[_0x2babc0(0x22e)]?.(()=>{});return _0x182cd5;}[_0x5c609f(0x16d)](_0x41994){const _0x39704a=_0x5c609f;if(!_0x41994)return;return this[_0x39704a(0x326)][_0x39704a(0x2d8)](_0x41994),this[_0x39704a(0x242)](_0x41994);}[_0x5c609f(0x20d)](){const _0x1ba546=_0x5c609f,_0x5c19bb=Date['now'](),_0x403034=process['cpuUsage'](),_0x40748f=(_0x5c19bb-this['_lastCpuAt'])*0x3e8;if(_0x40748f>=0x3d090){const _0x1a24f9=_0x403034[_0x1ba546(0x2a4)]-this['_lastCpuUsage'][_0x1ba546(0x2a4)]+(_0x403034[_0x1ba546(0x179)]-this[_0x1ba546(0x332)][_0x1ba546(0x179)]),_0x27f87e=_0x12226b[_0x1ba546(0x29c)]()[_0x1ba546(0x2b7)]||0x1;this[_0x1ba546(0x17d)]=Math['min'](0x64,Math[_0x1ba546(0x24f)](_0x1a24f9/(_0x40748f*_0x27f87e)*0x64)),this['_lastCpuWindowMs']=Math['round'](_0x40748f/0x3e8),this[_0x1ba546(0x332)]=_0x403034,this['_lastCpuAt']=_0x5c19bb;}const _0x5c943b=process[_0x1ba546(0x161)](),_0x4fd7a2=this[_0x1ba546(0x2e5)][_0x1ba546(0x194)];let _0xe02500=0x0;if(_0x4fd7a2>0x0){const _0x337f9b=[this[_0x1ba546(0x2c6)],...this[_0x1ba546(0x2c6)][_0x1ba546(0x30f)]?.[_0x1ba546(0x20c)]?.()??[]];for(const _0x263546 of _0x337f9b){const _0x417d72=_0x263546[_0x1ba546(0x33f)]?.['_sandbox'];if(_0x417d72)_0xe02500+=_0x417d72[_0x1ba546(0x325)][_0x1ba546(0x182)];}}let _0x184431=null;const _0x3ef376=_0x4fd7a2;if(_0x3ef376>0x0){let _0x5f5008=0x0;for(const _0x2d33a4 of this[_0x1ba546(0x2e5)][_0x1ba546(0x20c)]())_0x5f5008+=_0x2d33a4[_0x1ba546(0x34c)]||0x0;_0x184431={'count':_0x3ef376,'heapUsed':_0x5f5008,'sandbox':_0x4fd7a2,'busy':_0xe02500};}return{'rss':_0x5c943b[_0x1ba546(0x154)],'heapUsed':_0x5c943b[_0x1ba546(0x34c)],'heapTotal':_0x5c943b[_0x1ba546(0x379)],'external':_0x5c943b['external'],'cpuPct':this[_0x1ba546(0x17d)],'cpuWindowMs':this[_0x1ba546(0x173)]??null,'threads':_0x184431,'at':_0x5c19bb};}['reportThreadStats'](_0xb6e5c2,_0x1a1cdc){const _0x377539=_0x5c609f;if(!_0xb6e5c2||!_0x1a1cdc)return;this[_0x377539(0x2e5)][_0x377539(0x1c4)](_0xb6e5c2,_0x1a1cdc);}[_0x5c609f(0x19a)](_0x143483){const _0xbe1f08=_0x5c609f;this[_0xbe1f08(0x2e5)]['delete'](_0x143483);}[_0x5c609f(0x221)](_0x257ccf,_0x4faa62,_0x3a5160=undefined){const _0x1ebabe=_0x5c609f,_0x1d4107=this[_0x1ebabe(0x326)][_0x1ebabe(0x245)](_0x257ccf);if(!_0x1d4107||!_0x4faa62)return;if(_0x3a5160!==undefined)_0x1d4107[_0x1ebabe(0x2c7)]=_0x3a5160;_0x1d4107[_0x1ebabe(0x243)]={'rss':_0x4faa62[_0x1ebabe(0x154)]??null,'heapUsed':_0x4faa62['heapUsed']??null,'heapTotal':_0x4faa62[_0x1ebabe(0x379)]??null,'external':_0x4faa62['external']??null,'cpuPct':_0x4faa62[_0x1ebabe(0x151)]??null,'cpuWindowMs':_0x4faa62[_0x1ebabe(0x21d)]??null,'threads':_0x4faa62[_0x1ebabe(0x212)]??null,'claims':_0x4faa62[_0x1ebabe(0x2b0)]??null,'envsOpen':_0x4faa62[_0x1ebabe(0x185)]??null,'at':Date[_0x1ebabe(0x1cf)]()};}[_0x5c609f(0x12e)](){const _0x2db744=_0x5c609f,_0x28d6a8=Date[_0x2db744(0x1cf)](),_0x43787c=this[_0x2db744(0x2c6)]['_role']||{},_0x3a1053=this[_0x2db744(0x261)]||'cli';return{'nodeKey':this[_0x2db744(0x1a2)],'processKey':this[_0x2db744(0x353)],'instanceId':this[_0x2db744(0x149)],'pid':process[_0x2db744(0x13a)],'startedAt':this[_0x2db744(0x170)],'instanceStartedAt':this[_0x2db744(0x34b)],'ppid':typeof process[_0x2db744(0x129)]===_0x2db744(0x2f4)?process[_0x2db744(0x129)]:null,'host':_0x12226b[_0x2db744(0x15e)](),'supervisorKey':this[_0x2db744(0x28f)]??null,'version':require$$6['version'],'kind':_0x3a1053,'role':{'engines':!!_0x43787c[_0x2db744(0x1e6)],'processors':!!_0x43787c[_0x2db744(0x20e)],'compaction':_0x43787c[_0x2db744(0x27a)],'http':_0x43787c[_0x2db744(0x17b)]},'listenAddr':this['_listenAddr']??null,'heartbeatAt':_0x28d6a8,'expiresAt':_0x28d6a8+_0x5bc795,'caps':this['_caps'](_0x3a1053,_0x43787c),'lifecycle':{'state':_0x2db744(0x2e6),'desiredVersionApplied':null},'meta':{...this[_0x2db744(0x290)]},'processing':_0x43787c[_0x2db744(0x20e)]?this['_buildProcessingFacet']():null,'engines':_0x43787c[_0x2db744(0x1e6)]?[...this[_0x2db744(0x2c6)]['_servingEngines']??[]]:null,'singletonClaims':this['_collectSingletonClaims'](),'stats':this[_0x2db744(0x20d)](),'writers':this[_0x2db744(0x375)]()};}[_0x5c609f(0x375)](){const _0x23e63a=_0x5c609f,_0x552a90={};try{for(const [_0x2f091f,_0x125a06]of this['okdb']['_envs']){try{const _0x3a5c7e=_0x125a06[_0x23e63a(0x354)]?.();if(!_0x3a5c7e)continue;if(!_0x3a5c7e[_0x23e63a(0x1b5)]&&!_0x3a5c7e[_0x23e63a(0x15d)]&&!(_0x3a5c7e[_0x23e63a(0x253)]??0x0)&&!_0x3a5c7e[_0x23e63a(0x231)])continue;_0x552a90[_0x2f091f]={'depth':_0x3a5c7e[_0x23e63a(0x1b5)],'oldestPendingMs':_0x3a5c7e[_0x23e63a(0x199)],'committed':_0x3a5c7e[_0x23e63a(0x15d)],'commitsPerSec':_0x3a5c7e[_0x23e63a(0x1af)],'commitP99Ms':_0x3a5c7e['commitP99Ms'],'parkedNow':_0x3a5c7e[_0x23e63a(0x253)]??0x0,'draining':!!_0x3a5c7e[_0x23e63a(0x231)]};}catch{}}}catch{}return Object[_0x23e63a(0x27c)](_0x552a90)[_0x23e63a(0x2b7)]?_0x552a90:null;}[_0x5c609f(0x20b)](){const _0x5df75c=_0x5c609f,_0x11a449=process[_0x5df75c(0x13a)],_0x74a3f6=Date['now'](),_0x1f9c1c=_0x1763ba=>{const _0x273125=_0x5df75c;if(!_0x1763ba)return[];const _0x41df33=[];try{for(const {id:_0x3a9cb7,entry:_0x54892e}of _0x1763ba['list']()){if(_0x54892e?.[_0x273125(0x160)]?.[_0x273125(0x13a)]!==_0x11a449)continue;const _0x9a3740=_0x54892e[_0x273125(0x208)]??_0x54892e['acquiredAt']??0x0;if(_0x9a3740+(_0x54892e[_0x273125(0x2ab)]??0x0)<_0x74a3f6)continue;_0x41df33[_0x273125(0x22b)](_0x3a9cb7);}}catch{}return _0x41df33;},_0x490bed=_0x1f9c1c(this[_0x5df75c(0x1fd)](_0x5df75c(0x318))),_0x2d3779=_0x1f9c1c(this[_0x5df75c(0x1fd)](_0x5df75c(0x12f)));if(!_0x490bed['length']&&!_0x2d3779[_0x5df75c(0x2b7)])return null;return{'compact':_0x490bed,'replicate':_0x2d3779};}[_0x5c609f(0x1fd)](_0x2ebf3e){const _0x4a4bee=_0x5c609f;if(!this[_0x4a4bee(0x2c6)]?.['_rootDb'])return null;if(!this[_0x4a4bee(0x20f)])this[_0x4a4bee(0x20f)]=new Map();let _0x2740f6=this['_singletonLocks'][_0x4a4bee(0x245)](_0x2ebf3e);if(!_0x2740f6)try{_0x2740f6=new _0x513caf(this[_0x4a4bee(0x2c6)][_0x4a4bee(0x31e)],{'namespace':_0x2ebf3e}),this['_singletonLocks'][_0x4a4bee(0x1c4)](_0x2ebf3e,_0x2740f6);}catch{return null;}return _0x2740f6;}['_buildProcessingFacet'](){const _0x6672dc=_0x5c609f,_0x4f7a42=[];try{for(const [_0x458669,_0x4d96e0]of this['okdb'][_0x6672dc(0x30f)]){if(_0x458669[_0x6672dc(0x2c5)]('~'))continue;for(const _0x6b27f4 of _0x4d96e0['processor']['tierList']())_0x4f7a42[_0x6672dc(0x22b)]({..._0x6b27f4,'env':_0x458669});}}catch{}return{'participate':this[_0x6672dc(0x2c6)]['processors']?.['_participate']??![],'processors':_0x4f7a42};}[_0x5c609f(0x36d)](){const _0x33bc59=_0x5c609f;if(this[_0x33bc59(0x249)])return!![];const _0xf343e9=this[_0x33bc59(0x2c6)][_0x33bc59(0x31e)];if(!_0xf343e9)return![];return this['_desired']=_0xf343e9[_0x33bc59(0x163)](_0x35404c,{'dupSort':![]}),this[_0x33bc59(0x1e5)]=_0xf343e9['openDB'](_0x4e28a1,{'dupSort':![]}),!![];}async[_0x5c609f(0x319)](){const _0x1d4fc3=_0x5c609f;if(!this['_ensureDesired']())return;const _0x186d46='__vocab/version',_0x29b3bb=0x1,_0x339223=this[_0x1d4fc3(0x249)][_0x1d4fc3(0x245)](_0x186d46)??0x0;if(_0x339223>=_0x29b3bb)return;const _0x3cd27c=_0x25fb78=>{const _0x4adb01=_0x1d4fc3;if(_0x25fb78===_0x4adb01(0x355))return _0x4adb01(0x278);if(_0x25fb78===_0x4adb01(0x34a))return _0x4adb01(0x358);return _0x25fb78;};await this[_0x1d4fc3(0x2c6)][_0x1d4fc3(0x2a1)]['_writer'][_0x1d4fc3(0x1ed)](()=>{const _0x176345=_0x1d4fc3;for(const _0x33fcab of[_0x176345(0x1ca),_0x176345(0x1f9)]){for(const {key:_0xa1cfc1,value:_0x13746f}of this['_desired'][_0x176345(0x2dd)]({'start':_0x33fcab,'end':_0x33fcab+'\xff'})){if(typeof _0xa1cfc1!==_0x176345(0x218)||!_0xa1cfc1['startsWith'](_0x33fcab))break;const _0xd3a44d=_0x3cd27c(_0x13746f[_0x176345(0x27d)]);if(_0xd3a44d!==_0x13746f['mode'])this[_0x176345(0x249)]['put'](_0xa1cfc1,{..._0x13746f,'mode':_0xd3a44d});}}this[_0x176345(0x249)][_0x176345(0x134)](_0x186d46,_0x29b3bb);});}[_0x5c609f(0x293)](){const _0xfac2df=_0x5c609f;return!!this[_0xfac2df(0x249)];}['getDesired'](_0x4cb934,_0x34b8d6){const _0x330e9b=_0x5c609f;if(!this[_0x330e9b(0x36d)]())return null;const _0x102b64=_0x4cb934+'/'+_0x34b8d6;return this[_0x330e9b(0x195)](),this['_desiredOverlay'][_0x330e9b(0x245)](_0x102b64)??this[_0x330e9b(0x249)][_0x330e9b(0x245)](_0x102b64)??null;}[_0x5c609f(0x195)](){const _0x23072c=_0x5c609f;if(!_0x4fcfd1)return;try{this[_0x23072c(0x2c6)][_0x23072c(0x2a1)]?.['db']?.['resetReadTxn']?.();}catch{}}async[_0x5c609f(0x241)](_0x56f73a,_0x5cd80b,_0x6b5f1d){const _0x2585ed=_0x5c609f;if(!this[_0x2585ed(0x36d)]())return null;const _0x16cf2e=_0x56f73a+'/'+_0x5cd80b;this[_0x2585ed(0x195)]();const _0x2bed17=this[_0x2585ed(0x2f5)][_0x2585ed(0x245)](_0x16cf2e)??this[_0x2585ed(0x249)][_0x2585ed(0x245)](_0x16cf2e)??{'version':0x0},_0x333aff=(_0x2bed17[_0x2585ed(0x132)]||0x0)+0x1,_0x459005={..._0x2bed17,..._0x6b5f1d,'version':_0x333aff,'updatedAt':Date[_0x2585ed(0x1cf)]()};this['_desiredOverlay'][_0x2585ed(0x1c4)](_0x16cf2e,_0x459005);try{await this['okdb'][_0x2585ed(0x2a1)][_0x2585ed(0x2ad)][_0x2585ed(0x1ed)](()=>{const _0x5773f4=_0x2585ed;this[_0x5773f4(0x249)][_0x5773f4(0x134)](_0x16cf2e,_0x459005);});}finally{if(this[_0x2585ed(0x2f5)][_0x2585ed(0x245)](_0x16cf2e)===_0x459005)this[_0x2585ed(0x2f5)][_0x2585ed(0x2d8)](_0x16cf2e);}return _0x333aff;}['listDesired'](_0x18fce6){const _0x32bddc=_0x5c609f;if(!this['_ensureDesired']())return[];this['_refreshDesiredSnapshot']();const _0x4e0a20=_0x18fce6+'/',_0x588cb5=[];for(const {key:_0x24f883,value:_0x32b4fa}of this['_desired'][_0x32bddc(0x2dd)]({'start':_0x4e0a20,'end':_0x4e0a20+'\xff'})){if(typeof _0x24f883!==_0x32bddc(0x218)||!_0x24f883['startsWith'](_0x4e0a20))break;_0x588cb5['push']({'key':_0x24f883[_0x32bddc(0x2d1)](_0x4e0a20[_0x32bddc(0x2b7)]),'value':_0x32b4fa});}return _0x588cb5;}[_0x5c609f(0x228)](_0x5cd6c5){const _0x1f42ef=_0x5c609f;if(!this[_0x1f42ef(0x36d)]())return null;return this[_0x1f42ef(0x1e5)][_0x1f42ef(0x245)](_0x5cd6c5)??null;}async['bumpCmd'](_0x3fd104,_0x463469,_0x7dc0c4={}){const _0x4f9370=_0x5c609f;if(!this[_0x4f9370(0x36d)]())return null;let _0x190520;return await this['okdb'][_0x4f9370(0x2a1)]['_writer'][_0x4f9370(0x1ed)](()=>{const _0x2841cb=_0x4f9370,_0x3c6260=this['_cmd']['get'](_0x3fd104)||{'epoch':0x0};_0x190520=(_0x3c6260[_0x2841cb(0x193)]||0x0)+0x1,this[_0x2841cb(0x1e5)]['put'](_0x3fd104,{..._0x3c6260,..._0x7dc0c4,'cmd':_0x463469,'epoch':_0x190520,'updatedAt':Date[_0x2841cb(0x1cf)]()});}),_0x190520;}}return okdbProcessRegistry={'OKDBProcessRegistry':_0x6866a6,'nodeKey':_0x21d492,'logicalKey':_0x40a41e,'slotKey':_0x2868ed,'PROCESS_ENV':_0x2aae72,'NODE_TYPE':_0x152022},okdbProcessRegistry;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x48c4c7=_0x1f2bca;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x37d774=require$$0$4,{EVENTS:_0x1a607b,CHANGE_ACTIONS:_0x2d4315}=requireOkdbEnums(),{LOOP:_0x3f960a}=requireOkdbLoopMonitor(),_0x2f198b=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x2582d5=0x5,_0x3ae284=0x2710;class _0x2700dd extends _0x37d774{constructor(_0x4d4c7e,_0x537ffd={}){const _0x2b73c3=_0x2789;super(),this[_0x2b73c3(0x2c6)]=_0x4d4c7e,this[_0x2b73c3(0x2ec)]=_0x537ffd[_0x2b73c3(0x23d)]??_0x2f198b,this[_0x2b73c3(0x137)]=_0x537ffd[_0x2b73c3(0x1dc)]??_0x2582d5,this[_0x2b73c3(0x148)]=_0x537ffd[_0x2b73c3(0x300)]??_0x3ae284,this[_0x2b73c3(0x2b5)]=![],this[_0x2b73c3(0x28a)]=new Map(),this['_baselines']=new Map(),this[_0x2b73c3(0x1b6)]=new Map(),this[_0x2b73c3(0x17a)]=null,this[_0x2b73c3(0x361)]=![],this['_seen']=new Set(),this[_0x2b73c3(0x344)]=new Set(),this['_onItem']=_0x1ac13f=>this[_0x2b73c3(0x309)](_0x1ac13f),this[_0x2b73c3(0x340)]=_0x40417a=>this[_0x2b73c3(0x226)](_0x40417a),this[_0x2b73c3(0x307)]=_0x18bb3a=>this['_handlePoke'](_0x18bb3a),this['_onStop']=()=>this['stop']();}[_0x48c4c7(0x35f)](){const _0x36da77=_0x48c4c7;if(this['_started'])return;this[_0x36da77(0x2b5)]=!![];for(const [_0x122243,_0x566771]of this[_0x36da77(0x2c6)][_0x36da77(0x30f)]){if(_0x122243[_0x36da77(0x2c5)]('~'))continue;try{_0x566771['_enableChangelog']();}catch{}}for(const [_0x1c9567,_0x45f28c]of this['okdb'][_0x36da77(0x30f)]){if(_0x1c9567[_0x36da77(0x2c5)]('~'))continue;try{this['_baselines'][_0x36da77(0x1c4)](_0x1c9567,_0x45f28c[_0x36da77(0x248)]()||0x0);}catch{}}const {events:_0x31c047}=this[_0x36da77(0x2c6)];_0x31c047['on'](_0x1a607b[_0x36da77(0x1ef)],this[_0x36da77(0x340)]),_0x31c047['on'](_0x1a607b[_0x36da77(0x33e)],this['_onItem']),_0x31c047['on'](_0x1a607b[_0x36da77(0x2ce)],this[_0x36da77(0x1a1)]),_0x31c047['on'](_0x1a607b['ITEM_REMOVE'],this[_0x36da77(0x1a1)]),_0x31c047['on'](_0x1a607b[_0x36da77(0x2aa)],this[_0x36da77(0x307)]),_0x31c047[_0x36da77(0x240)](_0x1a607b[_0x36da77(0x1a9)],this[_0x36da77(0x2e2)]);}[_0x48c4c7(0x33c)](){const _0x24cce1=_0x48c4c7;if(!this[_0x24cce1(0x2b5)])return;this[_0x24cce1(0x2b5)]=![];const {events:_0x2882e1}=this[_0x24cce1(0x2c6)];_0x2882e1[_0x24cce1(0x19f)](_0x1a607b[_0x24cce1(0x1ef)],this[_0x24cce1(0x340)]),_0x2882e1[_0x24cce1(0x19f)](_0x1a607b[_0x24cce1(0x33e)],this[_0x24cce1(0x1a1)]),_0x2882e1[_0x24cce1(0x19f)](_0x1a607b[_0x24cce1(0x2ce)],this[_0x24cce1(0x1a1)]),_0x2882e1['off'](_0x1a607b[_0x24cce1(0x34d)],this['_onItem']),_0x2882e1['off'](_0x1a607b[_0x24cce1(0x2aa)],this[_0x24cce1(0x307)]);try{_0x2882e1[_0x24cce1(0x19f)](_0x1a607b[_0x24cce1(0x1a9)],this[_0x24cce1(0x2e2)]);}catch{}this[_0x24cce1(0x17a)]&&(clearTimeout(this[_0x24cce1(0x17a)]),this[_0x24cce1(0x17a)]=null),this[_0x24cce1(0x1b6)][_0x24cce1(0x30e)](),this[_0x24cce1(0x28a)][_0x24cce1(0x30e)](),this['_baselines'][_0x24cce1(0x30e)](),this[_0x24cce1(0x1e1)][_0x24cce1(0x30e)](),this[_0x24cce1(0x344)]['clear']();}[_0x48c4c7(0x2a7)](_0x30555e,_0x2472f2,_0x1cda1e,_0x26733c){return _0x30555e+'\x00'+_0x2472f2+'\x00'+_0x1cda1e+'\x00'+_0x26733c;}[_0x48c4c7(0x324)](_0x33df02,_0x5048ad,_0x598a48,_0x60910){const _0x373418=_0x48c4c7,_0x42c1f0=this[_0x373418(0x2a7)](_0x33df02,_0x5048ad,_0x598a48,_0x60910);if(this[_0x373418(0x1e1)][_0x373418(0x12d)](_0x42c1f0))return![];this[_0x373418(0x1e1)]['add'](_0x42c1f0);if(this[_0x373418(0x1e1)][_0x373418(0x194)]>this[_0x373418(0x148)]){const _0x5b47f8=this[_0x373418(0x1e1)][_0x373418(0x20c)]()[_0x373418(0x302)]()['value'];this['_seen'][_0x373418(0x2d8)](_0x5b47f8);}return!![];}['_handlePending'](_0xb61eaf){const _0x2beee5=_0x48c4c7;if(!this[_0x2beee5(0x2b5)]||!_0xb61eaf)return;const {env:_0x316182,type:_0x566203,key:_0x39e988,clock:_0x365a7f}=_0xb61eaf;if(_0x316182==null||_0x566203==null||_0x39e988==null)return;if(typeof _0x316182===_0x2beee5(0x218)&&_0x316182[_0x2beee5(0x2c5)]('~'))return;if(typeof _0x566203===_0x2beee5(0x218)&&_0x566203['startsWith']('~'))return;this[_0x2beee5(0x344)][_0x2beee5(0x342)](this[_0x2beee5(0x2a7)](_0x316182,_0x566203,_0x39e988,_0x365a7f)),this[_0x2beee5(0x344)][_0x2beee5(0x194)]>this[_0x2beee5(0x148)]&&this['_pendingLocal'][_0x2beee5(0x2d8)](this[_0x2beee5(0x344)][_0x2beee5(0x20c)]()[_0x2beee5(0x302)]()['value']);}['_handleInProcess'](_0x4f7ddc){const _0x4532ab=_0x48c4c7;if(!this['_started']||!_0x4f7ddc)return;const {env:_0x335cd6,type:_0x529f42,key:_0x3b612c,clock:_0x2985c2,origin:_0x1e7c70,action:_0xb1a3d4,newValue:_0x4cc843,oldValue:_0xbec5f1}=_0x4f7ddc;if(_0x335cd6==null||_0x529f42==null||_0x3b612c==null)return;if(typeof _0x335cd6==='string'&&_0x335cd6[_0x4532ab(0x2c5)]('~'))return;if(typeof _0x529f42===_0x4532ab(0x218)&&_0x529f42[_0x4532ab(0x2c5)]('~'))return;this['_pendingLocal']['delete'](this[_0x4532ab(0x2a7)](_0x335cd6,_0x529f42,_0x3b612c,_0x2985c2));if(!this[_0x4532ab(0x324)](_0x335cd6,_0x529f42,_0x3b612c,_0x2985c2))return;const _0xb02155=_0xb1a3d4===_0x2d4315[_0x4532ab(0x310)]?_0x4532ab(0x13d):'put';this['emit'](_0x4532ab(0x2bc),{'env':_0x335cd6,'type':_0x529f42,'key':_0x3b612c,'op':_0xb02155,'clock':_0x2985c2,'origin':_0x1e7c70,'value':_0xb02155==='remove'?null:_0x4cc843,'prevValue':_0xbec5f1});}[_0x48c4c7(0x303)](_0x5ae16e){const _0x50333f=_0x48c4c7;if(!this[_0x50333f(0x2b5)])return;if(!_0x5ae16e||typeof _0x5ae16e['env']!==_0x50333f(0x218)||typeof _0x5ae16e['type']!=='string')return;const {env:_0x35127e,type:_0x57ec96}=_0x5ae16e;if(_0x35127e[_0x50333f(0x2c5)]('~')||_0x57ec96['startsWith']('~'))return;this[_0x50333f(0x1b6)]['set'](_0x35127e+'\x00'+_0x57ec96,{'env':_0x35127e,'type':_0x57ec96}),this[_0x50333f(0x147)]();}[_0x48c4c7(0x147)](){const _0x36e2d2=_0x48c4c7;if(this['_flushTimer'])return;const _0xedc4f4=()=>{const _0x1dc9f7=_0x2789;this[_0x1dc9f7(0x17a)]=null,this['_drain']()[_0x1dc9f7(0x22e)](()=>{});};this[_0x36e2d2(0x17a)]=setTimeout(_0xedc4f4,this[_0x36e2d2(0x137)]>0x0?this[_0x36e2d2(0x137)]:0x0);}async[_0x48c4c7(0x35c)](){const _0x2803a0=_0x48c4c7;if(this[_0x2803a0(0x361)]){this[_0x2803a0(0x147)]();return;}this[_0x2803a0(0x361)]=!![];try{const _0x752f7c=[...this[_0x2803a0(0x1b6)][_0x2803a0(0x20c)]()];this['_pending'][_0x2803a0(0x30e)]();let _0x39c297=![];for(const {env:_0x265765,type:_0x536fd0}of _0x752f7c){try{const _0x53dc92=await this[_0x2803a0(0x370)](_0x265765,_0x536fd0);if(_0x53dc92)_0x39c297=!![];}catch{this[_0x2803a0(0x1b6)][_0x2803a0(0x1c4)](_0x265765+'\x00'+_0x536fd0,{'env':_0x265765,'type':_0x536fd0}),_0x39c297=!![];}}if(_0x39c297||this['_pending'][_0x2803a0(0x194)]>0x0)this[_0x2803a0(0x147)]();}finally{this['_draining']=![];}}async[_0x48c4c7(0x370)](_0x5e7473,_0x3dede5){const _0x550c1f=_0x48c4c7,_0x27646c=await this[_0x550c1f(0x2c6)][_0x550c1f(0x255)](_0x5e7473),_0xab8b24=_0x5e7473+'\x00'+_0x3dede5;!this['_cursors'][_0x550c1f(0x12d)](_0xab8b24)&&(!this['_baselines'][_0x550c1f(0x12d)](_0x5e7473)&&(_0x27646c[_0x550c1f(0x135)](),this['_baselines'][_0x550c1f(0x1c4)](_0x5e7473,_0x27646c[_0x550c1f(0x248)]()||0x0)),this['_cursors']['set'](_0xab8b24,this[_0x550c1f(0x1c2)][_0x550c1f(0x245)](_0x5e7473)));const _0x18e5a7=this['_cursors'][_0x550c1f(0x245)](_0xab8b24),_0x396398=_0x27646c['getClock'](_0x3dede5)||0x0;if(_0x396398<=_0x18e5a7)return![];const _0x5d1820=_0x18e5a7+this[_0x550c1f(0x2ec)],_0x3a336a=Math['min'](_0x396398,_0x5d1820),_0x507094=_0x3f960a[_0x550c1f(0x36c)]?_0x3f960a[_0x550c1f(0x1cf)]():0x0,_0x41036a=Array[_0x550c1f(0x2d2)](_0x27646c[_0x550c1f(0x323)](_0x3dede5,_0x18e5a7+0x1,_0x3a336a));let _0x3a294e=_0x18e5a7;for(const _0x2d9753 of _0x41036a){const {clock:_0x27bca9,key:_0x4d7153,action:_0x4c354f,origin:_0x34f162}=_0x2d9753;if(_0x27bca9>_0x3a294e)_0x3a294e=_0x27bca9;if(_0x4d7153==null)continue;if(this['_pendingLocal']['has'](this[_0x550c1f(0x2a7)](_0x5e7473,_0x3dede5,_0x4d7153,_0x27bca9)))continue;if(!this[_0x550c1f(0x324)](_0x5e7473,_0x3dede5,_0x4d7153,_0x27bca9))continue;let _0x715484,_0x551c08;if(_0x4c354f===_0x2d4315[_0x550c1f(0x310)])_0x715484=_0x550c1f(0x13d),_0x551c08=null;else{const _0x2af677=_0x27646c[_0x550c1f(0x245)](_0x3dede5,_0x4d7153);_0x2af677==null?(_0x715484=_0x550c1f(0x13d),_0x551c08=null):(_0x715484='put',_0x551c08=_0x2af677);}this['emit'](_0x550c1f(0x2bc),{'env':_0x5e7473,'type':_0x3dede5,'key':_0x4d7153,'op':_0x715484,'clock':_0x27bca9,'origin':_0x34f162,'value':_0x551c08});}if(_0x3f960a['enabled'])_0x3f960a[_0x550c1f(0x22a)](_0x550c1f(0x2ea)+_0x5e7473+':'+_0x3dede5,_0x3f960a[_0x550c1f(0x1cf)]()-_0x507094,'n='+_0x41036a[_0x550c1f(0x2b7)]);return this[_0x550c1f(0x28a)][_0x550c1f(0x1c4)](_0xab8b24,Math[_0x550c1f(0x1a3)](_0x3a294e,_0x3a336a)),_0x27646c[_0x550c1f(0x248)](_0x3dede5)>_0x3a336a;}[_0x48c4c7(0x1b7)](){const _0x5cb58c=_0x48c4c7;return{'started':this[_0x5cb58c(0x2b5)],'quantum':this[_0x5cb58c(0x2ec)],'flushDebounce':this[_0x5cb58c(0x137)],'cursors':Object[_0x5cb58c(0x131)]([...this[_0x5cb58c(0x28a)][_0x5cb58c(0x334)]()][_0x5cb58c(0x328)](([_0x3ce20f,_0x118eeb])=>[_0x3ce20f['replace']('\x00',':'),_0x118eeb])),'pending':this[_0x5cb58c(0x1b6)][_0x5cb58c(0x194)],'seen':this[_0x5cb58c(0x1e1)][_0x5cb58c(0x194)]};}}return _0x2700dd[_0x48c4c7(0x1ec)]=_0x2f198b,okdbChangefeed={'OKDBChangefeed':_0x2700dd},okdbChangefeed;}var okdbCluster,hasRequiredOkdbCluster;function requireOkdbCluster(){const _0x57631f=_0x1f2bca;if(hasRequiredOkdbCluster)return okdbCluster;hasRequiredOkdbCluster=0x1;const _0xf2c981=require$$1$1,_0x58a900=require$$1,{EVENTS:_0x1eaa90}=requireOkdbEnums(),_0x48b894=require$$0$3,{slotKey:_0x225b86}=requireOkdbProcessRegistry(),_0xaceba1=Number(process.env.OKDB_CLUSTER_RESPAWN_BACKOFF_MS)||0xfa,_0x3eab39=0xfa0,_0x195d08=0x5,_0xf0d2a3=0x2710,_0xee7eed=0xbb8,_0x3645c9=0x7d0,_0x3f4fd0=_0x57631f(0x24b),_0x4d1859=_0x57631f(0x30a),_0x15544e='log',_0x3d1317='stats',_0x209f43=[_0x1eaa90[_0x57631f(0x192)],_0x1eaa90[_0x57631f(0x23c)],_0x1eaa90[_0x57631f(0x322)],_0x1eaa90[_0x57631f(0x2b9)],_0x1eaa90[_0x57631f(0x183)],_0x1eaa90[_0x57631f(0x2ba)],_0x1eaa90[_0x57631f(0x2f9)],_0x1eaa90['INDEX_REGISTERED'],_0x57631f(0x2cb),_0x57631f(0x376),_0x57631f(0x1c3),'processor:paused',_0x57631f(0x35b),'processor:retry'],_0x52564d=Number(process.env.OKDB_CLUSTER_STATUS_MS)||0x7d0,_0x46e3fc=0x64;function _0x4a696b(_0x137caf){const _0x3debab=_0x57631f;if(!_0x137caf)return _0x3debab(0x1b1);const _0x40cb6f=(_0x137caf[_0x3debab(0x20e)]||[])[_0x3debab(0x328)](_0x3fb2b7=>[_0x3fb2b7[_0x3debab(0x28e)],_0x3fb2b7['id'],_0x3fb2b7[_0x3debab(0x27d)],_0x3fb2b7[_0x3debab(0x36e)],!!_0x3fb2b7[_0x3debab(0x287)],!!_0x3fb2b7[_0x3debab(0x365)],!!_0x3fb2b7[_0x3debab(0x274)],_0x3fb2b7[_0x3debab(0x2b2)]?.[_0x3debab(0x13a)]??null,_0x3fb2b7[_0x3debab(0x263)]?String(_0x3fb2b7[_0x3debab(0x263)]?.[_0x3debab(0x2f8)]??_0x3fb2b7[_0x3debab(0x263)]):null]);return JSON[_0x3debab(0x374)]([!!_0x137caf[_0x3debab(0x373)],_0x40cb6f]);}function _0x22aae5({workers:_0x1647c8,makeOkdb:_0x53cdd6,port:_0x1f7afd,primaryOkdb:_0x38c222,childEntry:childEntry=![],workerEnv:workerEnv=null,workerRole:workerRole=null,listenAddr:listenAddr=null}={}){const _0x56cc18=_0x57631f;if(_0xf2c981[_0x56cc18(0x1a8)])return childEntry&&_0xf2c981[_0x56cc18(0x233)]({'exec':_0x58a900[_0x56cc18(0x2fb)](__dirname,'okdb-http-worker-child.js'),'args':[],'execArgv':((()=>{const _0x215218=_0x56cc18,_0x5d79d4=[];for(let _0x1957d1=0x0;_0x1957d1<process[_0x215218(0x2cd)][_0x215218(0x2b7)];_0x1957d1++){const _0x453cbf=process[_0x215218(0x2cd)][_0x1957d1];if(_0x453cbf[_0x215218(0x2c5)]('--test')||_0x453cbf[_0x215218(0x2c5)](_0x215218(0x220))||_0x453cbf[_0x215218(0x2c5)](_0x215218(0x1d8)))continue;if(_0x453cbf==='-e'||_0x453cbf===_0x215218(0x13c)||_0x453cbf==='-p'||_0x453cbf===_0x215218(0x18c)){_0x1957d1++;continue;}_0x5d79d4[_0x215218(0x22b)](_0x453cbf);}return _0x5d79d4;})())}),_0x4092a6({'workers':_0x1647c8,'port':_0x1f7afd,'primaryOkdb':_0x38c222,'workerEnv':workerEnv,'workerRole':workerRole,'listenAddr':listenAddr??':'+_0x1f7afd});return _0x5d4555({'makeOkdb':_0x53cdd6,'port':_0x1f7afd});}function _0x4092a6({workers:_0x4aa27d,port:_0x35f3cf,primaryOkdb:_0x5dc233,workerEnv:_0x46f0de,workerRole:_0x1c1568,listenAddr:_0x2236ba}){const _0x512c2a=_0x57631f,_0x522fd2=new Map(),_0x197ba8=new Map();let _0x33b352=![];const _0x5e9732=_0x14cda0=>_0x14cda0?.[_0x512c2a(0x209)],_0x565ff6=_0x31df67=>{const _0x25f0cf=_0x512c2a,_0x389923=_0xf2c981['fork']({...process.env,..._0x46f0de||{},'OKDB_CLUSTER_SLOT':String(_0x31df67)});return _0x389923[_0x25f0cf(0x209)]=_0x31df67,_0x522fd2[_0x25f0cf(0x1c4)](_0x389923[_0x25f0cf(0x236)][_0x25f0cf(0x13a)],{'worker':_0x389923,'startedAt':Date[_0x25f0cf(0x1cf)](),'slot':_0x31df67}),_0x389923['on'](_0x25f0cf(0x263),_0x1c1915=>{const _0x5e5748=_0x25f0cf;console[_0x5e5748(0x271)](_0x5e5748(0x13e)+_0x389923['process']['pid']+_0x5e5748(0x2dc)+(_0x1c1915?.[_0x5e5748(0x2f8)]??_0x1c1915));}),_0x389923['on'](_0x25f0cf(0x2d5),()=>_0x157086()),_0x389923;},_0x4b8cfb=_0x413874=>{const _0x1ce1a9=_0x512c2a;for(const {worker:_0x1054f7}of _0x522fd2['values']()){if(_0x1054f7[_0x1ce1a9(0x1bf)]()||!_0x1054f7[_0x1ce1a9(0x16e)]())continue;try{_0x1054f7['send'](_0x413874);}catch{}}};_0x5dc233?.[_0x512c2a(0x327)]?.({'kind':_0x512c2a(0x2db),'listenAddr':_0x2236ba})[_0x512c2a(0x22e)](()=>{}),_0x5dc233?.[_0x512c2a(0x158)]?.[_0x512c2a(0x165)]?.({'workersConfigured':_0x4aa27d});const _0xc2610d={'engines':!![],'processors':!![],'compaction':!![],..._0x1c1568,'http':!![]},_0x157086=()=>{const _0x58ffcc=_0x512c2a,_0x4b3238=_0x5dc233?.[_0x58ffcc(0x158)];if(!_0x4b3238||!_0x4b3238[_0x58ffcc(0x1c8)])return;const _0x1af8df=_0x4b3238[_0x58ffcc(0x357)];for(const {worker:_0x2d0be7,startedAt:_0x224e09,slot:_0x517d5c,stats:_0x344749,processing:_0x10db51}of _0x522fd2[_0x58ffcc(0x20c)]()){if(_0x2d0be7['isDead']())continue;const _0x25b10a=_0x4b3238[_0x58ffcc(0x293)]?.()&&_0x4b3238[_0x58ffcc(0x23a)](_0x58ffcc(0x23f),_0x407fe5(_0x517d5c))?.[_0x58ffcc(0x18e)]===!![];_0x4b3238[_0x58ffcc(0x1e2)]({'pid':_0x2d0be7[_0x58ffcc(0x236)]['pid'],'startedAt':_0x224e09,'kind':_0x58ffcc(0x1c9),'supervisorKey':_0x1af8df,'slot':_0x517d5c,'slotKey':_0x407fe5(_0x517d5c),'role':_0xc2610d,'listenAddr':_0x2236ba,'lifecycle':_0x25b10a?_0x58ffcc(0x232):_0x58ffcc(0x2e6),'processing':_0x10db51??null,'stats':_0x344749??null})['catch'](()=>{});}},_0x407fe5=_0x5d0875=>_0x225b86(_0x512c2a(0x35d)+_0x35f3cf,_0x5d0875),_0x2746e2=_0x35748f=>{const _0x55f0db=_0x512c2a,_0x144d3f=_0x5dc233?.[_0x55f0db(0x158)];if(!_0x144d3f?.[_0x55f0db(0x293)]?.())return![];return _0x144d3f[_0x55f0db(0x23a)](_0x55f0db(0x23f),_0x407fe5(_0x35748f))?.[_0x55f0db(0x18e)]===!![];};for(let _0x56552c=0x0;_0x56552c<_0x4aa27d;_0x56552c++){const _0x42e3bf=_0x2746e2(_0x56552c);_0x197ba8[_0x512c2a(0x1c4)](_0x56552c,{'deaths':[],'consecutiveFailures':0x0,'dead':_0x42e3bf,'respawnTimer':null}),_0x42e3bf?console[_0x512c2a(0x271)](_0x512c2a(0x367)+_0x56552c+_0x512c2a(0x378)):_0x565ff6(_0x56552c);}const _0x3b80c1=()=>{const _0x262b23=_0x512c2a,_0x130ae3=_0x5dc233?.[_0x262b23(0x158)];if(!_0x130ae3?.[_0x262b23(0x1c8)]||!_0x130ae3[_0x262b23(0x293)]?.())return;for(const [_0x45fa09,_0x3ad660]of _0x197ba8[_0x262b23(0x334)]()){const _0x500457=_0x130ae3[_0x262b23(0x23a)]('slot',_0x407fe5(_0x45fa09)),_0x4fbabd=_0x500457?.['decommission']===!![],_0x41cdf2=_0x500457?.[_0x262b23(0x2b3)]===!![];if(_0x4fbabd&&!_0x3ad660['dead']){_0x3ad660[_0x262b23(0x2a0)]=!![];_0x3ad660[_0x262b23(0x2d4)]&&(clearTimeout(_0x3ad660['respawnTimer']),_0x3ad660[_0x262b23(0x2d4)]=null);for(const {worker:_0x2d37cf}of _0x522fd2[_0x262b23(0x20c)]()){if(_0x5e9732(_0x2d37cf)!==_0x45fa09||_0x2d37cf[_0x262b23(0x1bf)]())continue;try{if(_0x41cdf2)_0x2d37cf[_0x262b23(0x236)][_0x262b23(0x2b3)](_0x262b23(0x320));else _0x2d37cf[_0x262b23(0x16e)]()&&_0x2d37cf[_0x262b23(0x1f3)]();}catch{}}console['log'](_0x262b23(0x26a)+(_0x41cdf2?_0x262b23(0x1d7):_0x262b23(0x191))+_0x262b23(0x315)+_0x45fa09+_0x262b23(0x377));}else{if(!_0x4fbabd&&_0x3ad660[_0x262b23(0x2a0)]&&_0x500457){_0x3ad660[_0x262b23(0x2a0)]=![],_0x3ad660[_0x262b23(0x237)]=[],_0x3ad660['consecutiveFailures']=0x0;const _0x41e81b=[..._0x522fd2[_0x262b23(0x20c)]()][_0x262b23(0x28b)](({worker:_0x2bbceb})=>_0x5e9732(_0x2bbceb)===_0x45fa09&&!_0x2bbceb[_0x262b23(0x1bf)]());!_0x41e81b&&!_0x33b352&&(_0x565ff6(_0x45fa09),console[_0x262b23(0x271)](_0x262b23(0x201)+_0x45fa09));}}}},_0x441d24=()=>{try{_0x3b80c1();}catch{}};_0x5dc233?.[_0x512c2a(0x2a5)]?.['on']?.(_0x1eaa90['SYSTEM_PROC'],_0x441d24);const _0xee6410=[];if(_0x5dc233?.['events']?.['on'])for(const _0x407328 of _0x209f43){const _0x48fcc7=_0x176372=>{_0x4b8cfb({[_0x3f4fd0]:_0x4d1859,'event':_0x407328,'data':_0x176372??{}});};_0x5dc233[_0x512c2a(0x2a5)]['on'](_0x407328,_0x48fcc7),_0xee6410[_0x512c2a(0x22b)]({'event':_0x407328,'handler':_0x48fcc7});}const _0x1d42f3=setInterval(()=>{_0x3b80c1(),_0x157086();},_0x52564d);_0x1d42f3['unref']?.();const _0x33b9fa=(_0x4f6502,_0x30c1ef)=>{const _0x4d8afc=_0x512c2a;if(!_0x30c1ef||typeof _0x30c1ef!=='object'||_0x30c1ef[_0x3f4fd0]!==_0x15544e)return;if(!_0x5dc233?.[_0x4d8afc(0x271)]?.[_0x4d8afc(0x34f)])return;const _0x3865a9=_0x30c1ef[_0x4d8afc(0x257)]||{};_0x5dc233[_0x4d8afc(0x271)][_0x4d8afc(0x34f)]({..._0x3865a9,'msg':'[w'+_0x30c1ef['slot']+']\x20'+(_0x3865a9[_0x4d8afc(0x244)]??''),'meta':{..._0x3865a9[_0x4d8afc(0x341)]||{},'worker':_0x30c1ef[_0x4d8afc(0x23f)],'workerPid':_0x30c1ef[_0x4d8afc(0x13a)]}});};_0xf2c981['on'](_0x512c2a(0x2f8),_0x33b9fa);const _0x1109b8=(_0x5224e4,_0xd9c17c)=>{const _0x177072=_0x512c2a;if(!_0xd9c17c||typeof _0xd9c17c!=='object'||_0xd9c17c[_0x3f4fd0]!==_0x3d1317)return;const _0x5e26f0=_0x522fd2[_0x177072(0x245)](_0x5224e4[_0x177072(0x236)][_0x177072(0x13a)]);if(_0x5e26f0){_0x5e26f0[_0x177072(0x243)]={..._0xd9c17c[_0x177072(0x243)],'at':Date[_0x177072(0x1cf)]()};if(_0xd9c17c[_0x177072(0x2c7)]!==undefined){const _0x2b04a9=_0x4a696b(_0xd9c17c[_0x177072(0x2c7)]);_0x2b04a9!==_0x5e26f0[_0x177072(0x174)]&&(_0x5e26f0[_0x177072(0x174)]=_0x2b04a9,_0x513202()),_0x5e26f0[_0x177072(0x2c7)]=_0xd9c17c['processing'];}}};let _0x584b47=null;const _0x513202=()=>{const _0x9be83d=_0x512c2a;if(_0x584b47||_0x33b352)return;_0x584b47=setTimeout(()=>{_0x584b47=null;if(!_0x33b352)_0x157086();},_0x46e3fc),_0x584b47[_0x9be83d(0x343)]?.();};_0xf2c981['on']('message',_0x1109b8),_0xf2c981['on'](_0x512c2a(0x2a8),(_0x1e552c,_0xd89518,_0xeb6af)=>{const _0xc81398=_0x512c2a,_0x3d8cb3=_0x1e552c[_0xc81398(0x236)][_0xc81398(0x13a)],_0x23f0c4=_0x5e9732(_0x1e552c),_0x2ba814=_0x522fd2[_0xc81398(0x245)](_0x3d8cb3);if(_0x2ba814&&_0x5dc233?.[_0xc81398(0x158)])_0x5dc233[_0xc81398(0x158)]['removeNode'](_0x3d8cb3+':'+_0x2ba814[_0xc81398(0x338)])['catch'](()=>{});_0x522fd2['delete'](_0x3d8cb3),console[_0xc81398(0x271)](_0xc81398(0x13e)+_0x3d8cb3+_0xc81398(0x175)+(_0x23f0c4??'?')+_0xc81398(0x299)+('(code='+_0xd89518+_0xc81398(0x351)+(_0xeb6af??'none')+_0xc81398(0x36a)+_0x522fd2[_0xc81398(0x194)]+'\x20worker(s)\x20remaining')),_0x157086();if(_0x33b352||_0x23f0c4==null)return;const _0x44a99a=_0x197ba8[_0xc81398(0x245)](_0x23f0c4);if(!_0x44a99a||_0x44a99a[_0xc81398(0x2a0)])return;const _0x58ad69=Date['now']();_0x44a99a['deaths'][_0xc81398(0x22b)](_0x58ad69),_0x44a99a[_0xc81398(0x237)]=_0x44a99a[_0xc81398(0x237)][_0xc81398(0x336)](_0x268fd6=>_0x58ad69-_0x268fd6<=_0xf0d2a3);if(_0x44a99a[_0xc81398(0x237)][_0xc81398(0x2b7)]>=_0x195d08){_0x44a99a[_0xc81398(0x2a0)]=!![],console[_0xc81398(0x263)]('[okdb-cluster]\x20CRASH-LOOP:\x20worker\x20slot='+_0x23f0c4+_0xc81398(0x362)+_0x44a99a[_0xc81398(0x237)][_0xc81398(0x2b7)]+'\x20times\x20in\x20'+(_0xf0d2a3+'ms\x20—\x20giving\x20up\x20on\x20this\x20slot;\x20'+_0x522fd2[_0xc81398(0x194)]+_0xc81398(0x130)));return;}_0x44a99a[_0xc81398(0x266)]++;const _0x4e48e0=Math[_0xc81398(0x1f0)](_0x3eab39,_0xaceba1*0x2**(_0x44a99a[_0xc81398(0x266)]-0x1));console['log'](_0xc81398(0x18f)+_0x23f0c4+'\x20in\x20'+_0x4e48e0+_0xc81398(0x227)+_0x44a99a['consecutiveFailures']+')'),_0x44a99a[_0xc81398(0x2d4)]=setTimeout(()=>{const _0x345cb8=_0xc81398;_0x44a99a[_0x345cb8(0x2d4)]=null;if(_0x33b352||_0x44a99a[_0x345cb8(0x2a0)])return;const _0x13325f=_0x565ff6(_0x23f0c4);_0x13325f[_0x345cb8(0x240)](_0x345cb8(0x1fb),()=>{const _0x517a9f=_0x345cb8;if(_0x197ba8[_0x517a9f(0x245)](_0x23f0c4)===_0x44a99a)_0x44a99a[_0x517a9f(0x266)]=0x0;});},_0x4e48e0),_0x44a99a[_0xc81398(0x2d4)]['unref']?.();});const _0x1007eb=[..._0x522fd2[_0x512c2a(0x27c)]()];console[_0x512c2a(0x271)](_0x512c2a(0x14d)+process[_0x512c2a(0x13a)]+_0x512c2a(0x314)+_0x4aa27d+'\x20HTTP\x20server(s)\x20on\x20port\x20'+_0x35f3cf+':\x20'+('['+_0x1007eb[_0x512c2a(0x2fb)](',\x20')+']'));const _0x462c5d={'_isClusterController':!![],'port':_0x35f3cf,'primaryOkdb':_0x5dc233??null,'status'(){const _0x995e38=_0x512c2a;return{'clustered':!![],'primaryPid':process[_0x995e38(0x13a)],'port':_0x35f3cf,'primaryRole':_0x5dc233?.['role']??null,'processorPid':null,'supervisorPid':process['pid'],'workers':[..._0x522fd2[_0x995e38(0x20c)]()][_0x995e38(0x328)](({worker:_0x86d3c9})=>({'pid':_0x86d3c9[_0x995e38(0x236)][_0x995e38(0x13a)],'id':_0x86d3c9['id'],'dead':_0x86d3c9['isDead']()}))};},async 'close'(){const _0x4b3f28=_0x512c2a;_0x33b352=!![];for(const _0x20b0b3 of _0x197ba8['values']()){_0x20b0b3['dead']=!![],_0x20b0b3['respawnTimer']&&(clearTimeout(_0x20b0b3['respawnTimer']),_0x20b0b3['respawnTimer']=null);}clearInterval(_0x1d42f3);_0x584b47&&(clearTimeout(_0x584b47),_0x584b47=null);_0xf2c981[_0x4b3f28(0x19f)](_0x4b3f28(0x2f8),_0x33b9fa),_0xf2c981[_0x4b3f28(0x19f)](_0x4b3f28(0x2f8),_0x1109b8),_0x5dc233?.[_0x4b3f28(0x2a5)]?.[_0x4b3f28(0x19f)]?.(_0x1eaa90[_0x4b3f28(0x2a9)],_0x441d24);if(_0x5dc233?.[_0x4b3f28(0x2a5)]?.[_0x4b3f28(0x19f)])for(const {event:_0xc29b9c,handler:_0x34d1bc}of _0xee6410){try{_0x5dc233['events'][_0x4b3f28(0x19f)](_0xc29b9c,_0x34d1bc);}catch{}}_0xee6410['length']=0x0;const _0x215f6c=[..._0x522fd2[_0x4b3f28(0x20c)]()][_0x4b3f28(0x328)](({worker:_0x24982c})=>_0x24982c);if(_0x215f6c['length']===0x0)return;await Promise['all'](_0x215f6c['map'](_0x47023c=>new Promise(_0x2179de=>{const _0x2da59d=_0x4b3f28;if(_0x47023c[_0x2da59d(0x1bf)]()){_0x2179de();return;}let _0x1c9c79=![];const _0x574843=()=>{if(_0x1c9c79)return;_0x1c9c79=!![];if(_0x2d01a7)clearTimeout(_0x2d01a7);_0x2179de();};_0x47023c[_0x2da59d(0x240)](_0x2da59d(0x2a8),_0x574843);const _0x2d01a7=setTimeout(()=>{const _0x221368=_0x2da59d;try{_0x47023c[_0x221368(0x236)][_0x221368(0x2b3)]();}catch{}},_0xee7eed+0x1f4);_0x2d01a7[_0x2da59d(0x343)]?.();try{_0x47023c[_0x2da59d(0x1f3)]();}catch{try{_0x47023c['process'][_0x2da59d(0x2b3)]();}catch{}}})));}};return _0x462c5d;}async function _0x5d4555({makeOkdb:_0x277d4d,port:_0x480953}){const _0x28057=_0x57631f,_0x3dda54=await _0x277d4d();return _0x301823(_0x3dda54),_0x3dda54[_0x28057(0x17b)][_0x28057(0x24d)](_0x480953);}function _0x301823(_0x3a457c){const _0x16094f=_0x57631f;if(!_0x3a457c||_0x3a457c['_clusterWorkerAttached'])return;_0x3a457c[_0x16094f(0x178)]=!![];try{const {OKDBChangefeed:_0x7156ac}=requireOkdbChangefeed(),_0x23c88f=_0x3a457c[_0x16094f(0x1c7)];if(_0x23c88f&&typeof _0x23c88f['attachFeed']===_0x16094f(0x14b)){const _0x55397f=new _0x7156ac(_0x3a457c);_0x55397f[_0x16094f(0x35f)](),_0x23c88f[_0x16094f(0x36f)](_0x55397f),_0x3a457c['_changefeed']=_0x55397f;}}catch(_0x254dd8){_0x3a457c[_0x16094f(0x271)]?.['warn']?.(_0x16094f(0x1d4)+(_0x254dd8?.[_0x16094f(0x2f8)]??_0x254dd8),{'feature':_0x16094f(0x176)});}const _0x12188a=_0x51eb97=>{const _0x4e6e9d=_0x16094f;if(!_0x51eb97||typeof _0x51eb97!==_0x4e6e9d(0x17c)||_0x51eb97[_0x3f4fd0]==null)return;if(_0x51eb97[_0x3f4fd0]===_0x4d1859)try{_0x3a457c['_adminRelay']?.[_0x4e6e9d(0x180)]?.(_0x51eb97[_0x4e6e9d(0x1ae)],_0x51eb97[_0x4e6e9d(0x1cb)]);}catch{}};process['on'](_0x16094f(0x2f8),_0x12188a),_0x3a457c['_clusterOnMessage']=_0x12188a;{let _0x4fe0c8=process[_0x16094f(0x16c)](),_0xc53f55=Date[_0x16094f(0x1cf)]();const _0x299ca3=()=>{const _0x3d897e=_0x16094f;if(typeof process[_0x3d897e(0x298)]!==_0x3d897e(0x14b)||!process['connected'])return;const _0x35ac23=Date[_0x3d897e(0x1cf)](),_0x4175e4=process['cpuUsage'](),_0x30bed5=(_0x35ac23-_0xc53f55)*0x3e8,_0x5b7ed7=_0x4175e4[_0x3d897e(0x2a4)]-_0x4fe0c8['user']+(_0x4175e4[_0x3d897e(0x179)]-_0x4fe0c8[_0x3d897e(0x179)]),_0x3c98fa=_0x30bed5>0x0?Math['min'](0x64,Math[_0x3d897e(0x24f)](_0x5b7ed7/(_0x30bed5*(_0x48b894['cpus']()[_0x3d897e(0x2b7)]||0x1))*0x64)):0x0;_0x4fe0c8=_0x4175e4,_0xc53f55=_0x35ac23;const _0x5b7572=process['memoryUsage']();let _0x2f17d3=null;try{_0x2f17d3=_0x3a457c['role']?.[_0x3d897e(0x20e)]?_0x3a457c[_0x3d897e(0x158)]?.[_0x3d897e(0x1eb)]?.()??null:null;}catch{}try{process[_0x3d897e(0x298)]({[_0x3f4fd0]:_0x3d1317,'stats':{'rss':_0x5b7572[_0x3d897e(0x154)],'heapUsed':_0x5b7572[_0x3d897e(0x34c)],'heapTotal':_0x5b7572[_0x3d897e(0x379)],'external':_0x5b7572['external'],'cpuPct':_0x3c98fa,'cpuWindowMs':Math[_0x3d897e(0x24f)](_0x30bed5/0x3e8)||null},'processing':_0x2f17d3});}catch{}},_0x2528be=Math[_0x16094f(0x1a3)](0x3e8,Number(process.env.OKDB_STATS_INTERVAL_MS)||0x1388),_0xab814b=setInterval(_0x299ca3,_0x2528be);_0xab814b[_0x16094f(0x343)]?.(),_0x299ca3();for(const _0x58e17b of[_0x16094f(0x19b),_0x16094f(0x35b)]){_0x3a457c[_0x16094f(0x2a5)]?.['on']?.(_0x58e17b,()=>{try{_0x299ca3();}catch{}});}}let _0x459876=![];const _0x29a89f=async _0x49173f=>{const _0x413e83=_0x16094f;if(_0x459876)return;_0x459876=!![];const _0x4b1d13=setTimeout(()=>process['exit'](_0x49173f),_0xee7eed);_0x4b1d13[_0x413e83(0x343)]?.();try{await _0x3a457c[_0x413e83(0x15b)]?.();}catch{}process[_0x413e83(0x2a8)](_0x49173f);};process['on'](_0x16094f(0x1f3),()=>_0x29a89f(0x0));if(process[_0x16094f(0x298)]&&!process[_0x16094f(0x16a)])_0x29a89f(0x0);if(process[_0x16094f(0x262)]!==_0x16094f(0x360)){const _0x5de02c=setInterval(()=>{const _0x117a86=_0x16094f;if(process[_0x117a86(0x129)]===0x1)_0x29a89f(0x0);},_0x3645c9);_0x5de02c['unref']?.(),_0x3a457c[_0x16094f(0x1fe)]=_0x5de02c;}}return okdbCluster={'runClustered':_0x22aae5,'attachWorkerCluster':_0x301823},okdbCluster;}var hasRequiredOkdbHttpWorkerChild;function requireOkdbHttpWorkerChild(){const _0x507ee2=_0x1f2bca;if(hasRequiredOkdbHttpWorkerChild)return okdbHttpWorkerChild$1;hasRequiredOkdbHttpWorkerChild=0x1;const _0x28e05d=require$$0$5,{attachWorkerCluster:_0x415acc}=requireOkdbCluster();async function _0x47ac3b(){const _0x3599f1=_0x2789,_0x1c7ff4=process.env.OKDB_HTTP_CHILD;if(!_0x1c7ff4)throw new Error(_0x3599f1(0x273));const {rootPath:_0x327736,port:_0x29e9c6,options:options={},logLevel:logLevel=_0x3599f1(0x345)}=JSON[_0x3599f1(0x363)](_0x1c7ff4);if(!_0x327736||!_0x29e9c6)throw new Error(_0x3599f1(0x2f3));const _0x873380=new _0x28e05d(_0x327736,{...options,'engines':![],'processors':![],'compaction':![]});_0x873380[_0x3599f1(0x271)][_0x3599f1(0x150)]?.();const _0x5f2f36=process.env.OKDB_CLUSTER_SLOT??'?',_0x5e3ed0={'debug':0x0,'info':0x1,'warn':0x2,'error':0x3},_0x34d797=_0x5e3ed0[logLevel]??_0x5e3ed0['info'];_0x873380['log'][_0x3599f1(0x146)](_0x15370c=>{const _0x5cad6f=_0x3599f1;if((_0x5e3ed0[_0x15370c[_0x5cad6f(0x316)]]??0x1)<_0x34d797)return;try{process[_0x5cad6f(0x298)]?.({'__okdbCluster':_0x5cad6f(0x271),'slot':_0x5f2f36,'pid':process['pid'],'entry':_0x15370c});}catch{}}),await _0x873380[_0x3599f1(0x2ef)](),_0x415acc(_0x873380),await _0x873380[_0x3599f1(0x17b)][_0x3599f1(0x24d)](_0x29e9c6);}return _0x47ac3b()[_0x507ee2(0x22e)](_0x169272=>{const _0x82889e=_0x507ee2;try{process[_0x82889e(0x298)]?.({'__okdbCluster':_0x82889e(0x271),'slot':process.env.OKDB_CLUSTER_SLOT??'?','pid':process['pid'],'entry':{'level':_0x82889e(0x263),'msg':'http\x20worker\x20child\x20failed:\x20'+(_0x169272?.['message']??_0x169272)}});}catch{}process['exit'](0x1);}),okdbHttpWorkerChild$1;}var okdbHttpWorkerChildExports=requireOkdbHttpWorkerChild(),okdbHttpWorkerChild=getDefaultExportFromCjs(okdbHttpWorkerChildExports);module[_0x1f2bca(0x21c)]=okdbHttpWorkerChild;
|