@kedem/okdb 3.1.3 → 3.1.5
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/okdb-native.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x5c70f8=_0x52a3;(function(_0x36c49c,_0x2e5b23){const _0x45e419=_0x52a3,_0x1411b9=_0x36c49c();while(!![]){try{const _0x3b3669=-parseInt(_0x45e419(0x2ae))/0x1*(parseInt(_0x45e419(0x44c))/0x2)+-parseInt(_0x45e419(0x5ef))/0x3*(parseInt(_0x45e419(0x798))/0x4)+-parseInt(_0x45e419(0x1f0))/0x5*(-parseInt(_0x45e419(0x570))/0x6)+-parseInt(_0x45e419(0x68b))/0x7+parseInt(_0x45e419(0x491))/0x8+parseInt(_0x45e419(0x6d4))/0x9+parseInt(_0x45e419(0x42b))/0xa*(-parseInt(_0x45e419(0x25d))/0xb);if(_0x3b3669===_0x2e5b23)break;else _0x1411b9['push'](_0x1411b9['shift']());}catch(_0xcc36cd){_0x1411b9['push'](_0x1411b9['shift']());}}}(_0x273d,0x86640));function _0x52a3(_0x47e30d,_0x2cec29){_0x47e30d=_0x47e30d-0x1bb;const _0x273d01=_0x273d();let _0x52a32e=_0x273d01[_0x47e30d];return _0x52a32e;}var require$$0$6=require('node:events'),require$$1$1=require(_0x5c70f8(0x89c)),require$$0=require('node:fs'),require$$1=require(_0x5c70f8(0x6b3)),require$$4=require(_0x5c70f8(0x3de)),require$$0$2=require(_0x5c70f8(0x4c5)),require$$0$1=require(_0x5c70f8(0x1d1)),require$$16=require(_0x5c70f8(0x3f6)),require$$0$3=require(_0x5c70f8(0x1d4)),require$$2=require(_0x5c70f8(0x45e)),require$$18=require(_0x5c70f8(0x40a)),require$$0$4=require('crypto'),require$$0$5=require('sift');function getDefaultExportFromCjs(_0x37fccc){const _0x12ae10=_0x5c70f8;return _0x37fccc&&_0x37fccc[_0x12ae10(0x303)]&&Object[_0x12ae10(0x511)]['hasOwnProperty'][_0x12ae10(0x4d1)](_0x37fccc,'default')?_0x37fccc[_0x12ae10(0x2a6)]:_0x37fccc;}var lib={'exports':{}},okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x5c93c8 extends Error{constructor(_0x149765,_0x176fae,_0x480aca={}){const _0x5d5f5d=_0x52a3;super(_0x149765),this['name']=_0x5d5f5d(0x850),this[_0x5d5f5d(0x50e)]=_0x176fae,this[_0x5d5f5d(0x37e)]=_0x480aca,_0x480aca[_0x5d5f5d(0x62d)]&&(this[_0x5d5f5d(0x62d)]=_0x480aca[_0x5d5f5d(0x62d)]),Error[_0x5d5f5d(0x650)](this,this['constructor']);}}class _0x38c04c extends _0x5c93c8{constructor(_0x2a02b9,_0x563842,_0x4aef6c,_0x142cdc){const _0x4b500a=_0x52a3;super(_0x4b500a(0x446)+_0x2a02b9+'@'+_0x563842+_0x4b500a(0x3cb)+_0x4aef6c+_0x4b500a(0x4db)+_0x142cdc,_0x4b500a(0x721),{'type':_0x2a02b9,'key':_0x563842,'expectedVersion':_0x4aef6c,'actualVersion':_0x142cdc}),this[_0x4b500a(0x54b)]=_0x4b500a(0x7a1);}}class _0x28e960 extends _0x5c93c8{constructor(_0x2ef9ac,_0x27127d){const _0x5c52b8=_0x52a3;super(_0x2ef9ac+'@'+_0x27127d+_0x5c52b8(0x5d8),_0x5c52b8(0x3a2),{'type':_0x2ef9ac,'key':_0x27127d}),this[_0x5c52b8(0x54b)]=_0x5c52b8(0x83a);}}class _0x5b0242 extends _0x5c93c8{constructor(_0x4006d4,_0x582756){const _0x22e38e=_0x52a3;super(_0x4006d4+'@'+_0x582756+'\x20already\x20exists',_0x22e38e(0x218),{'type':_0x4006d4,'key':_0x582756}),this[_0x22e38e(0x54b)]=_0x22e38e(0x6ad);}}class _0x71effd extends _0x5c93c8{constructor(_0x2755b3,_0x3d69fe){const _0x1ffa2e=_0x52a3,_0x10ed10=typeof _0x3d69fe;super('Invalid\x20index\x20key\x20type\x20for\x20\x27'+_0x2755b3+_0x1ffa2e(0x84f)+_0x10ed10+_0x1ffa2e(0x31d)+_0x3d69fe,_0x1ffa2e(0x8b2),{'index':_0x2755b3,'key':_0x3d69fe,'keyType':_0x10ed10}),this[_0x1ffa2e(0x54b)]=_0x1ffa2e(0x2bd);}}class _0x17594f extends _0x5c93c8{constructor(_0x1db799){const _0x1e1504=_0x52a3,_0x35cb69=typeof _0x1db799;super(_0x1e1504(0x840)+_0x35cb69+_0x1e1504(0x507)+_0x1db799,'INVALID_PRIMARY_KEY',{'key':_0x1db799,'keyType':_0x35cb69}),this[_0x1e1504(0x54b)]=_0x1e1504(0x2be);}}class _0x153b81 extends _0x5c93c8{constructor(_0x5dd07f){const _0x16c8dc=_0x52a3;super('Type\x20\x27'+_0x5dd07f+_0x16c8dc(0x4a9),_0x16c8dc(0x1ca),{'type':_0x5dd07f}),this[_0x16c8dc(0x54b)]=_0x16c8dc(0x52b);}}class _0x4f0893 extends _0x5c93c8{constructor(_0x22eb07){const _0x1229e0=_0x52a3;super(_0x1229e0(0x7a0)+_0x22eb07+_0x1229e0(0x276),_0x1229e0(0x4a8),{'type':_0x22eb07}),this['name']='OKDBTypeAlreadyRegisteredError';}}class _0x3bba50 extends _0x5c93c8{constructor(_0x50138b,_0x161db0){const _0x42e070=_0x52a3;super(_0x42e070(0x7ce)+_0x161db0+'\x27\x20on\x20type\x20\x27'+_0x50138b+_0x42e070(0x4a9),_0x42e070(0x615),{'type':_0x50138b,'index':_0x161db0}),this[_0x42e070(0x54b)]=_0x42e070(0x4e5);}}class _0x32efd7 extends _0x5c93c8{constructor(_0x4407c9,_0x4dcab8){const _0x4e9ce2=_0x52a3;super(_0x4e9ce2(0x7ce)+_0x4dcab8+_0x4e9ce2(0x88f)+_0x4407c9+_0x4e9ce2(0x628),_0x4e9ce2(0x83e),{'type':_0x4407c9,'index':_0x4dcab8}),this[_0x4e9ce2(0x54b)]=_0x4e9ce2(0x268);}}class _0x56635a extends _0x5c93c8{constructor(_0x4a020d,_0x10b659={}){const _0x57d972=_0x52a3;super(_0x4a020d,'INVALID_VALUE',_0x10b659),this[_0x57d972(0x54b)]='OKDBInvalidValueError';}}class _0xdefeb0 extends _0x5c93c8{constructor(_0x37a7c7,_0x420eaa,_0x3f72cb,_0x3e2669,_0x23045a){const _0x3a1132=_0x52a3;super(_0x3a1132(0x70f)+_0x37a7c7+'@'+_0x420eaa+':\x20key\x20['+_0x3f72cb+']\x20already\x20maps\x20to\x20\x27'+_0x3e2669+_0x3a1132(0x448)+_0x23045a+'\x27',_0x3a1132(0x587),{'type':_0x37a7c7,'index':_0x420eaa,'indexKey':_0x3f72cb,'existingKey':_0x3e2669,'conflictingKey':_0x23045a}),this[_0x3a1132(0x54b)]=_0x3a1132(0x485);}}class _0x1ceb27 extends _0x5c93c8{constructor(_0x342be7,_0x3ee298,_0x43c926){const _0x3b9cad=_0x52a3;super(_0x3b9cad(0x1df)+_0x342be7+'@'+_0x3ee298,'SCHEMA_VALIDATION_FAILED',{'type':_0x342be7,'key':_0x3ee298,'errors':_0x43c926}),this[_0x3b9cad(0x54b)]=_0x3b9cad(0x231),this[_0x3b9cad(0x45d)]=_0x342be7,this[_0x3b9cad(0x82f)]=_0x3ee298,this[_0x3b9cad(0x22d)]=_0x43c926;}}class _0x506ba5 extends _0x5c93c8{constructor(_0x175f63,_0x10357c){const _0x1216e1=_0x52a3;super(_0x1216e1(0x8b5)+_0x175f63+':\x20'+_0x10357c[_0x1216e1(0x68a)]+_0x1216e1(0x86b),_0x1216e1(0x405),{'type':_0x175f63,'failures':_0x10357c}),this[_0x1216e1(0x54b)]=_0x1216e1(0x568),this['type']=_0x175f63,this[_0x1216e1(0x756)]=_0x10357c;}}class _0x1ecf73 extends _0x5c93c8{constructor(_0x198103,_0x2fd860,_0x431a98,_0x48ec8a,_0x45b045){const _0x22aa80=_0x52a3;super(_0x22aa80(0x8cf)+_0x198103+'@'+_0x2fd860+'.'+_0x431a98+'\x20references\x20'+_0x48ec8a+'@'+_0x45b045+'\x20which\x20does\x20not\x20exist',_0x22aa80(0x871),{'sourceType':_0x198103,'sourceKey':_0x2fd860,'fieldPath':_0x431a98,'targetType':_0x48ec8a,'targetKey':_0x45b045}),this[_0x22aa80(0x54b)]=_0x22aa80(0x80c),this[_0x22aa80(0x816)]=_0x198103,this[_0x22aa80(0x713)]=_0x2fd860,this[_0x22aa80(0x5e7)]=_0x431a98,this['targetType']=_0x48ec8a,this[_0x22aa80(0x5f7)]=_0x45b045;}}class _0x45db47 extends _0x5c93c8{constructor(_0x325afd,_0x565029,_0x280f91){const _0x1c1faf=_0x52a3;super(_0x1c1faf(0x7ea)+_0x325afd+'@'+_0x565029+':\x20'+_0x280f91[_0x1c1faf(0x68a)]+'\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict',_0x1c1faf(0x79c),{'targetType':_0x325afd,'targetKey':_0x565029,'references':_0x280f91}),this[_0x1c1faf(0x54b)]=_0x1c1faf(0x639),this[_0x1c1faf(0x469)]=_0x325afd,this[_0x1c1faf(0x5f7)]=_0x565029,this['references']=_0x280f91;}}class _0x7a830d extends _0x5c93c8{constructor(_0x40032d,_0x5669f4,_0x3410c6){const _0x37818f=_0x52a3;super(_0x37818f(0x51c)+_0x5669f4+_0x37818f(0x471)+_0x40032d+_0x37818f(0x4e4)+_0x3410c6['map'](_0x430426=>_0x430426[_0x37818f(0x2a7)]+':'+_0x430426[_0x37818f(0x54b)])[_0x37818f(0x596)](',\x20'),_0x37818f(0x44a),{'type':_0x40032d,'index':_0x5669f4,'usedBy':_0x3410c6}),this[_0x37818f(0x54b)]=_0x37818f(0x5cd);}}return okdbError={'OKDBError':_0x5c93c8,'OKDBVersionMismatchError':_0x38c04c,'OKDBNotFoundError':_0x28e960,'OKDBAlreadyExistsError':_0x5b0242,'OKDBInvalidIndexKeyError':_0x71effd,'OKDBInvalidPrimaryKeyError':_0x17594f,'OKDBTypeNotRegisteredError':_0x153b81,'OKDBTypeAlreadyRegisteredError':_0x4f0893,'OKDBIndexNotRegisteredError':_0x3bba50,'OKDBIndexAlreadyRegisteredError':_0x32efd7,'OKDBInvalidValueError':_0x56635a,'OKDBUniqueConstraintError':_0xdefeb0,'OKDBSchemaValidationError':_0x1ceb27,'OKDBSchemaCollectionError':_0x506ba5,'OKDBForeignKeyError':_0x1ecf73,'OKDBForeignKeyDeleteError':_0x45db47,'OKDBIndexHasConsumersError':_0x7a830d},okdbError;}var errors,hasRequiredErrors;function requireErrors(){const _0x4d2b29=_0x5c70f8;if(hasRequiredErrors)return errors;hasRequiredErrors=0x1;const _0x35aab8=requireOkdbError(),_0x43b802={'VERSION_MISMATCH':_0x35aab8[_0x4d2b29(0x7a1)],'NOT_FOUND':_0x35aab8[_0x4d2b29(0x83a)],'ALREADY_EXISTS':_0x35aab8[_0x4d2b29(0x6ad)],'INVALID_INDEX_KEY':_0x35aab8[_0x4d2b29(0x2bd)],'INVALID_PRIMARY_KEY':_0x35aab8[_0x4d2b29(0x2be)],'TYPE_NOT_REGISTERED':_0x35aab8['OKDBTypeNotRegisteredError'],'TYPE_ALREADY_REGISTERED':_0x35aab8[_0x4d2b29(0x460)],'INDEX_NOT_REGISTERED':_0x35aab8[_0x4d2b29(0x4e5)],'INDEX_ALREADY_REGISTERED':_0x35aab8[_0x4d2b29(0x268)],'INVALID_VALUE':_0x35aab8[_0x4d2b29(0x70c)],'UNIQUE_CONSTRAINT':_0x35aab8[_0x4d2b29(0x485)],'SCHEMA_VALIDATION_FAILED':_0x35aab8[_0x4d2b29(0x231)],'SCHEMA_COLLECTION_INVALID':_0x35aab8[_0x4d2b29(0x568)],'FOREIGN_KEY_VIOLATION':_0x35aab8[_0x4d2b29(0x80c)],'FOREIGN_KEY_DELETE_RESTRICTED':_0x35aab8['OKDBForeignKeyDeleteError'],'INDEX_HAS_CONSUMERS':_0x35aab8[_0x4d2b29(0x5cd)]};class _0x55ad90 extends _0x35aab8[_0x4d2b29(0x850)]{constructor(_0x429c6d,_0x5eeebb){const _0x396fb7=_0x4d2b29;super(_0x429c6d+_0x396fb7(0x2e7)+(_0x5eeebb?'\x20('+_0x5eeebb+')':''),'NOT_IMPLEMENTED_NATIVE',{'feature':_0x429c6d}),this[_0x396fb7(0x54b)]=_0x396fb7(0x339);}}function _0x6e268b(_0x7ccff6){const _0x1f663f=_0x4d2b29;if(!_0x7ccff6||typeof _0x7ccff6!==_0x1f663f(0x559)||!_0x7ccff6[_0x1f663f(0x263)])return _0x7ccff6;delete _0x7ccff6[_0x1f663f(0x263)];const _0x9e4bf9=_0x7ccff6[_0x1f663f(0x50e)];if(_0x9e4bf9===_0x1f663f(0x71d)||_0x9e4bf9===_0x1f663f(0x375)||_0x9e4bf9===_0x1f663f(0x2af)){const _0x1260ae=_0x9e4bf9===_0x1f663f(0x375)?TypeError[_0x1f663f(0x511)]:_0x9e4bf9===_0x1f663f(0x2af)?RangeError[_0x1f663f(0x511)]:Error['prototype'];Object[_0x1f663f(0x28b)](_0x7ccff6,_0x1260ae),_0x7ccff6[_0x1f663f(0x54b)]=_0x9e4bf9;if(_0x7ccff6[_0x1f663f(0x37e)]&&_0x7ccff6[_0x1f663f(0x37e)]['status']!==undefined)_0x7ccff6[_0x1f663f(0x717)]=_0x7ccff6[_0x1f663f(0x37e)][_0x1f663f(0x717)];return delete _0x7ccff6['code'],delete _0x7ccff6[_0x1f663f(0x37e)],_0x7ccff6;}const _0x323a8f=_0x43b802[_0x9e4bf9];Object[_0x1f663f(0x28b)](_0x7ccff6,(_0x323a8f||_0x35aab8['OKDBError'])['prototype']),_0x7ccff6['name']=_0x323a8f?_0x323a8f[_0x1f663f(0x54b)][_0x1f663f(0x306)](/^OKDB/,_0x1f663f(0x60e)):_0x1f663f(0x850);const _0x4528a3=_0x7ccff6['details']||{};_0x9e4bf9===_0x1f663f(0x8e1)&&(_0x7ccff6[_0x1f663f(0x45d)]=_0x4528a3[_0x1f663f(0x45d)],_0x7ccff6[_0x1f663f(0x82f)]=_0x4528a3[_0x1f663f(0x82f)],_0x7ccff6[_0x1f663f(0x22d)]=_0x4528a3[_0x1f663f(0x22d)]);_0x9e4bf9===_0x1f663f(0x405)&&(_0x7ccff6[_0x1f663f(0x45d)]=_0x4528a3['type'],_0x7ccff6[_0x1f663f(0x756)]=_0x4528a3[_0x1f663f(0x756)]);if(_0x9e4bf9===_0x1f663f(0x871)){for(const _0x11f683 of[_0x1f663f(0x816),_0x1f663f(0x713),_0x1f663f(0x5e7),_0x1f663f(0x469),_0x1f663f(0x5f7)])_0x7ccff6[_0x11f683]=_0x4528a3[_0x11f683];}if(_0x9e4bf9==='FOREIGN_KEY_DELETE_RESTRICTED'){for(const _0x2ea9a8 of[_0x1f663f(0x469),_0x1f663f(0x5f7),_0x1f663f(0x779)])_0x7ccff6[_0x2ea9a8]=_0x4528a3[_0x2ea9a8];}if(_0x4528a3[_0x1f663f(0x62d)])_0x7ccff6[_0x1f663f(0x62d)]=_0x4528a3[_0x1f663f(0x62d)];if(_0x4528a3['status']!==undefined)_0x7ccff6['status']=_0x4528a3[_0x1f663f(0x717)];if(_0x4528a3[_0x1f663f(0x8b8)]!==undefined)_0x7ccff6[_0x1f663f(0x8b8)]=_0x4528a3[_0x1f663f(0x8b8)];return _0x7ccff6;}function _0x396159(_0x58a964){const _0x14d484=_0x4d2b29;if(_0x58a964===undefined)return'undefined';if(_0x58a964===null)return _0x14d484(0x83b);if(typeof _0x58a964==='string')return _0x58a964?'string':_0x14d484(0x625);if(typeof _0x58a964==='function')return _0x14d484(0x640);if(typeof _0x58a964!==_0x14d484(0x559))return typeof _0x58a964;if(Array[_0x14d484(0x439)](_0x58a964))return _0x58a964[_0x14d484(0x68a)]?'array':'empty\x20array';if(_0x58a964 instanceof Date)return _0x14d484(0x8b1);if(_0x58a964 instanceof Map)return _0x14d484(0x26f);if(Buffer[_0x14d484(0x823)](_0x58a964))return _0x14d484(0x29c);return _0x14d484(0x559);}const _0x2aa532=(_0x39581d,_0x2d7a3a,_0x164ef6)=>new _0x35aab8[(_0x4d2b29(0x850))](_0x2d7a3a,_0x39581d,_0x164ef6),_0x33857e=(_0x22a18e,_0x2caa46,_0x593327)=>_0x2aa532(_0x4d2b29(0x2d6),_0x22a18e+_0x4d2b29(0x4d4)+_0x2caa46+_0x4d2b29(0x5e9)+_0x396159(_0x593327),{'argument':_0x22a18e,'expected':_0x2caa46,'got':_0x396159(_0x593327)}),_0x235ae4=(_0x3fbfd2,_0x134a0b)=>_0x2aa532(_0x4d2b29(0x854),_0x3fbfd2+'\x20must\x20be\x20a\x20non-empty\x20string;\x20got\x20'+_0x396159(_0x134a0b),{'argument':_0x3fbfd2,'expected':_0x4d2b29(0x44f),'got':_0x396159(_0x134a0b)}),_0x50e83e=(_0x83c59b,_0x19b9d9)=>_0x2aa532(_0x4d2b29(0x518),_0x83c59b+':\x20'+_0x19b9d9,{'argument':_0x83c59b,'problem':_0x19b9d9});function _0x50d9ad(_0x1ca0ce,_0x395636=_0x4d2b29(0x688)){const _0x4968ab=_0x4d2b29;if(_0x1ca0ce===undefined)return{};if(_0x1ca0ce===null)throw _0x50e83e(_0x395636,_0x4968ab(0x4d9));return _0x1ca0ce;}return errors={'reclass':_0x6e268b,'NotImplementedNative':_0x55ad90,'BY_CODE':_0x43b802,'describe':_0x396159,'invalidArgument':_0x33857e,'invalidTypeName':_0x235ae4,'invalidOptions':_0x50e83e,'optionsArg':_0x50d9ad,..._0x35aab8},errors;}var bridge_1,hasRequiredBridge;function requireBridge(){if(hasRequiredBridge)return bridge_1;hasRequiredBridge=0x1;const _0x20df6c=new Map(),_0x10cd79=new Map();let _0x4b814a=0x1;const _0x310966=new Map(),_0x17221a=new Map();let _0x39dd51=0x1;const _0xbffe1a=new Map();let _0x2ac138=0x1;const _0x4c3988=new Map();function _0x2dd26b(_0xea0ac6,_0x4b701f=null){const _0x5d5f38=_0x52a3,_0x57bb51=_0x2ac138++;_0xbffe1a[_0x5d5f38(0x63f)](_0x57bb51,_0xea0ac6);if(_0x4b701f)_0x4c3988[_0x5d5f38(0x63f)](_0x57bb51,_0x4b701f);return _0x57bb51;}function _0x2a450d(_0x14075e,_0x286491){const _0x47ac00=_0x52a3,_0x360457=_0xbffe1a[_0x47ac00(0x309)](_0x14075e),_0x18e24d=Array[_0x47ac00(0x511)][_0x47ac00(0x1f7)][_0x47ac00(0x4d1)](arguments,0x2),_0x57fd82=_0x932ea7=>_0x34e15a(_0x932ea7,_0x4c3988[_0x47ac00(0x309)](_0x14075e));let _0x246dfd=_0x18e24d;if(_0x286491==='start'||_0x286491==='stop'||_0x286491===_0x47ac00(0x752)||_0x286491===_0x47ac00(0x791)||_0x286491===_0x47ac00(0x859))_0x246dfd=[_0x57fd82(_0x18e24d[0x0])];else{if(_0x286491===_0x47ac00(0x5f4))_0x246dfd=[_0x18e24d[0x0],_0x18e24d[0x1],_0x57fd82(_0x18e24d[0x2])];else{if(_0x286491===_0x47ac00(0x203))_0x246dfd=[_0x57fd82(_0x18e24d[0x0])];}}let _0x1e8e0c=_0x360457[_0x286491](..._0x246dfd);if(_0x1e8e0c&&typeof _0x1e8e0c[_0x47ac00(0x801)]==='function')_0x1e8e0c=_0x10f279(_0x1e8e0c);if(_0x286491===_0x47ac00(0x45c)){const _0xe9e69f=_0x1e8e0c&&typeof _0x1e8e0c==='object'?_0x2dd26b(_0x1e8e0c):_0x2dd26b({});return{'$api':_0xe9e69f};}return _0x1e8e0c===undefined?null:_0x1e8e0c;}function _0x34e15a(_0x19bf25,_0x5cd375){const _0x3abdfc=_0x52a3;let _0x482333=_0x3cac00[_0x3abdfc(0x309)](_0x19bf25[_0x3abdfc(0x4df)]);const _0x59d00b=_0x482333&&_0x482333[_0x3abdfc(0x61e)]||_0x5cd375||_0x44f29d,_0x18830b=(_0x2eccb3,..._0x31bdae)=>_0x59d00b[_0x3abdfc(0x210)](_0x3abdfc(0x655),null,_0x2eccb3,[_0x19bf25['type'],_0x19bf25[_0x3abdfc(0x54b)],..._0x31bdae],!![]);return{'okdb':_0x59d00b,'key':_0x19bf25[_0x3abdfc(0x82f)],'type':_0x19bf25[_0x3abdfc(0x45d)],'name':_0x19bf25[_0x3abdfc(0x54b)],get 'storeEnv'(){const _0x282994=_0x3abdfc;if(!_0x482333&&_0x59d00b&&_0x59d00b[_0x282994(0x663)]&&_0x19bf25['storeEnvName'])_0x482333=_0x59d00b[_0x282994(0x612)]['get'](_0x19bf25[_0x282994(0x7b9)]);return _0x482333;},'storeEnvName':_0x19bf25[_0x3abdfc(0x7b9)],'config':_0x19bf25[_0x3abdfc(0x8cd)],'meta':_0x19bf25['meta'],'options':_0x19bf25[_0x3abdfc(0x688)],'emit':(_0x993862,_0x15f022)=>_0x18830b(_0x3abdfc(0x5a0),_0x993862,_0x15f022),'updateStatus':async(_0x55eaea,_0x3773be)=>_0x18830b(_0x3abdfc(0x82b),_0x55eaea,_0x3773be==null?null:String(_0x3773be&&_0x3773be[_0x3abdfc(0x211)]?_0x3773be[_0x3abdfc(0x211)]:_0x3773be)),'updateMeta':async _0x4ef232=>_0x18830b(_0x3abdfc(0x7e5),{'meta':_0x4ef232}),'updateConfig':async _0x1eb1e=>_0x18830b(_0x3abdfc(0x7e5),{'config':_0x1eb1e})};}function _0x51fd91(_0x23afde,_0x3a8242,_0x3196c9){const _0xd9b0c3=_0x52a3;if(_0x23afde===_0xd9b0c3(0x54a)){const _0xb0cf7d=_0x147e3a(_0x3a8242);let _0x29b0fa=_0xb0cf7d(_0x3196c9);if(_0x29b0fa&&typeof _0x29b0fa['then']==='function')_0x29b0fa=_0x10f279(_0x29b0fa);if(!_0x29b0fa||typeof _0x29b0fa[_0xd9b0c3(0x595)]!==_0xd9b0c3(0x640)){const {OKDBError:_0x5dd913}=requireErrors();throw new _0x5dd913(_0xd9b0c3(0x65d)+(_0x3196c9&&_0x3196c9[_0xd9b0c3(0x45d)])+_0xd9b0c3(0x206),'BAD_EMBEDDER_FACTORY');}return _0x29b0fa[_0xd9b0c3(0x263)]=_0xb0cf7d[_0xd9b0c3(0x263)],{'$id':_0x2dd26b(_0x29b0fa),'batch':typeof _0x29b0fa['embedBatch']===_0xd9b0c3(0x640)};}const _0x229298=_0xbffe1a[_0xd9b0c3(0x309)](_0x3a8242);if(_0x23afde===_0xd9b0c3(0x6b6))return _0xbffe1a[_0xd9b0c3(0x2cb)](_0x3a8242),_0x32d62b[_0xd9b0c3(0x2cb)](_0x3a8242),null;if(!_0x229298)throw new Error(_0xd9b0c3(0x435));if(typeof _0x229298[_0x23afde]!==_0xd9b0c3(0x640))return null;if(_0x23afde===_0xd9b0c3(0x595)||_0x23afde===_0xd9b0c3(0x515)){const _0x545f70=_0x23afde===_0xd9b0c3(0x515)?_0x36fd30(_0x3a8242,_0x229298,_0x3196c9):_0x176703(_0x3a8242,_0x229298,_0x23afde,_0x3196c9);return _0x23afde===_0xd9b0c3(0x595)?Array[_0xd9b0c3(0x48d)](_0x545f70):_0x545f70[_0xd9b0c3(0x35e)](_0x1a6a40=>Array[_0xd9b0c3(0x48d)](_0x1a6a40));}let _0x2507d6=_0x229298[_0x23afde]();if(_0x2507d6&&typeof _0x2507d6[_0xd9b0c3(0x801)]===_0xd9b0c3(0x640))_0x2507d6=_0x10f279(_0x2507d6);return _0x2507d6===undefined?null:_0x2507d6;}function _0xb5504(_0x2d89c1,_0x5fb90a,_0xb45eb0){const _0x3f5262=_0x52a3;if(_0x2d89c1===_0x3f5262(0x54a)){const _0x9b2a15=_0x147e3a(_0x5fb90a);let _0x16c9f8=_0x9b2a15(_0xb45eb0[_0x3f5262(0x8cd)]??{},{'dims':_0xb45eb0[_0x3f5262(0x647)],'dir':_0xb45eb0[_0x3f5262(0x8e4)]});if(_0x16c9f8&&typeof _0x16c9f8['then']===_0x3f5262(0x640))_0x16c9f8=_0x10f279(_0x16c9f8);for(const _0x3cab23 of[_0x3f5262(0x3bf),'add',_0x3f5262(0x504),_0x3f5262(0x40c),_0x3f5262(0x400)]){if(!_0x16c9f8||typeof _0x16c9f8[_0x3cab23]!=='function'){const {OKDBError:_0x452c16}=requireErrors();throw new _0x452c16(_0x3f5262(0x2ab)+_0x3cab23+'()','BAD_ALGORITHM_FACTORY',{'method':_0x3cab23});}}return{'$id':_0x2dd26b(_0x16c9f8)};}const _0x4f4501=_0xbffe1a[_0x3f5262(0x309)](_0x5fb90a);if(_0x2d89c1===_0x3f5262(0x6b6))return _0xbffe1a[_0x3f5262(0x2cb)](_0x5fb90a),null;if(!_0x4f4501)throw new Error('algorithm\x20is\x20gone');const _0x49441f=_0x49186d=>_0x49186d?_0x49186d[_0x3f5262(0x35e)](_0x48c70c=>({'key':_0x48c70c[_0x3f5262(0x82f)],'vector':Float32Array['from'](_0x48c70c['vector'])})):null;let _0x487cae;switch(_0x2d89c1){case _0x3f5262(0x3bf):case'rebuild':{const _0x1244ee=_0x49441f(_0xb45eb0);_0x487cae=_0x4f4501[_0x2d89c1](_0x1244ee?async()=>_0x1244ee:undefined);break;}case'add':_0x487cae=_0x4f4501[_0x3f5262(0x280)](_0xb45eb0[0x0],Float32Array['from'](_0xb45eb0[0x1]),_0xb45eb0[0x2]??undefined);break;case _0x3f5262(0x504):_0x487cae=_0x4f4501['remove'](_0xb45eb0);break;case _0x3f5262(0x40c):_0x487cae=_0x4f4501[_0x3f5262(0x40c)](Float32Array[_0x3f5262(0x48d)](_0xb45eb0[_0x3f5262(0x69f)]),_0xb45eb0[_0x3f5262(0x5ea)]??{});break;case _0x3f5262(0x41c):_0x487cae=typeof _0x4f4501['snapshot']===_0x3f5262(0x640)?_0x4f4501[_0x3f5262(0x41c)](_0xb45eb0??undefined):![];break;case _0x3f5262(0x1f1):_0x487cae=typeof _0x4f4501[_0x3f5262(0x1f1)]===_0x3f5262(0x640)?_0x4f4501[_0x3f5262(0x1f1)]():undefined;break;case _0x3f5262(0x8a1):_0x487cae=typeof _0x4f4501['tick']===_0x3f5262(0x640)?_0x4f4501[_0x3f5262(0x8a1)]():undefined;break;case _0x3f5262(0x400):return Number(_0x4f4501[_0x3f5262(0x400)]());case'info':return(typeof _0x4f4501[_0x3f5262(0x7e2)]===_0x3f5262(0x640)?_0x4f4501[_0x3f5262(0x7e2)]():null)??{};default:throw new Error(_0x3f5262(0x65a)+_0x2d89c1);}if(_0x487cae&&typeof _0x487cae[_0x3f5262(0x801)]===_0x3f5262(0x640))_0x487cae=_0x10f279(_0x487cae);return _0x487cae===undefined?null:_0x487cae;}function _0x59c69b(_0x5e6c43,_0x14e058,_0x5eaf59){const _0x2658f7=_0x52a3;if(_0x5e6c43===_0x2658f7(0x54a)){const _0xf76a60=_0x147e3a(_0x14e058);let _0x207964=_0xf76a60(_0x5eaf59);if(_0x207964&&typeof _0x207964[_0x2658f7(0x801)]==='function')_0x207964=_0x10f279(_0x207964);if(!_0x207964)return null;const _0x2ed0e0=['write','keys',_0x2658f7(0x309),_0x2658f7(0x400),'dropAll',_0x2658f7(0x308)]['filter'](_0x49491f=>typeof _0x207964[_0x49491f]==='function');return{'$id':_0x2dd26b(_0x207964),'has':_0x2ed0e0};}const _0x545a5d=_0xbffe1a['get'](_0x14e058);if(_0x5e6c43===_0x2658f7(0x6b6))return _0xbffe1a[_0x2658f7(0x2cb)](_0x14e058),null;if(!_0x545a5d)throw new Error(_0x2658f7(0x247));const _0x3e7462=_0x54d92b=>Float32Array['from'](_0x54d92b);let _0x1e7ec7;switch(_0x5e6c43){case _0x2658f7(0x253):_0x1e7ec7=_0x545a5d[_0x2658f7(0x253)](_0x5eaf59[0x0],_0x3e7462(_0x5eaf59[0x1]));break;case'remove':_0x1e7ec7=_0x545a5d[_0x2658f7(0x504)](_0x5eaf59);break;case _0x2658f7(0x30b):{_0x1e7ec7=typeof _0x545a5d['getAll']===_0x2658f7(0x640)?_0x545a5d[_0x2658f7(0x30b)]():[];if(_0x1e7ec7&&typeof _0x1e7ec7[_0x2658f7(0x801)]==='function')_0x1e7ec7=_0x10f279(_0x1e7ec7);return Array['from'](_0x1e7ec7??[],_0x5c4db6=>({'key':_0x5c4db6[_0x2658f7(0x82f)],'vector':Array[_0x2658f7(0x48d)](_0x5c4db6[_0x2658f7(0x24e)])}));}case _0x2658f7(0x21a):_0x1e7ec7=_0x545a5d[_0x2658f7(0x21a)](_0x5eaf59[_0x2658f7(0x251)][_0x2658f7(0x35e)](_0x739904=>({'key':_0x739904[_0x2658f7(0x82f)],'vector':_0x3e7462(_0x739904[_0x2658f7(0x24e)])})),_0x5eaf59[_0x2658f7(0x3b9)]);break;case _0x2658f7(0x4ac):_0x1e7ec7=_0x545a5d[_0x2658f7(0x4ac)](_0x5eaf59??undefined);if(_0x1e7ec7&&typeof _0x1e7ec7[_0x2658f7(0x801)]===_0x2658f7(0x640))_0x1e7ec7=_0x10f279(_0x1e7ec7);return Array[_0x2658f7(0x48d)](_0x1e7ec7??[]);case _0x2658f7(0x309):{_0x1e7ec7=_0x545a5d[_0x2658f7(0x309)](_0x5eaf59);if(_0x1e7ec7&&typeof _0x1e7ec7['then']===_0x2658f7(0x640))_0x1e7ec7=_0x10f279(_0x1e7ec7);return _0x1e7ec7==null?null:Array[_0x2658f7(0x48d)](_0x1e7ec7);}case _0x2658f7(0x400):return Number(_0x545a5d['count']());case _0x2658f7(0x604):_0x1e7ec7=_0x545a5d[_0x2658f7(0x604)]();break;case _0x2658f7(0x308):return _0x545a5d[_0x2658f7(0x308)]()??null;default:throw new Error('storage\x20adapter\x20has\x20no\x20method\x20'+_0x5e6c43);}if(_0x1e7ec7&&typeof _0x1e7ec7[_0x2658f7(0x801)]===_0x2658f7(0x640))_0x1e7ec7=_0x10f279(_0x1e7ec7);return _0x1e7ec7===undefined?null:_0x1e7ec7;}const _0x2461c2=new Map();function _0x176703(_0x3bf088,_0x385701,_0x73722b,_0x3f7890){const _0x132ea5=_0x52a3,_0x5eacea=_0x3bf088+'\x00'+_0x73722b+'\x00'+JSON[_0x132ea5(0x35a)](_0x3f7890),_0x17909d=_0x2461c2['get'](_0x5eacea);if(_0x17909d){if(_0x17909d['state']===_0x132ea5(0x321))throw _0x369c84();_0x2461c2['delete'](_0x5eacea);if(_0x17909d[_0x132ea5(0x74f)]==='err')throw _0x17909d[_0x132ea5(0x2ef)];return _0x17909d[_0x132ea5(0x2ef)];}const _0x51a6f3=_0x385701[_0x73722b](_0x3f7890);if(!_0x51a6f3||typeof _0x51a6f3[_0x132ea5(0x801)]!==_0x132ea5(0x640))return _0x51a6f3;const _0xefe826={'state':_0x132ea5(0x321),'value':undefined};_0x51a6f3['then'](_0x265334=>{const _0x201bb8=_0x132ea5;_0xefe826[_0x201bb8(0x74f)]='ok',_0xefe826[_0x201bb8(0x2ef)]=_0x265334;if(_0x2461c2[_0x201bb8(0x309)](_0x5eacea)===_0xefe826)_0x36d13e(_0x385701);},_0x2a0228=>{const _0x441887=_0x132ea5;_0xefe826[_0x441887(0x74f)]=_0x441887(0x2d0),_0xefe826[_0x441887(0x2ef)]=_0x2a0228;if(_0x2461c2[_0x441887(0x309)](_0x5eacea)===_0xefe826)_0x36d13e(_0x385701);});for(let _0x5311ea=0x0;_0x5311ea<0x64&&_0xefe826[_0x132ea5(0x74f)]===_0x132ea5(0x321);_0x5311ea++)process[_0x132ea5(0x33e)]();if(_0xefe826[_0x132ea5(0x74f)]==='ok')return _0xefe826[_0x132ea5(0x2ef)];if(_0xefe826['state']==='err')throw _0xefe826[_0x132ea5(0x2ef)];_0x2461c2[_0x132ea5(0x63f)](_0x5eacea,_0xefe826);throw _0x369c84();}const _0x32d62b=new Map(),_0x1da67e=0xa*0x3c*0x3e8;function _0x36fd30(_0x5129f6,_0x2f90d1,_0x2c7dee){const _0x59a6be=_0x52a3,_0x1cdcd3=Array[_0x59a6be(0x439)](_0x2c7dee)?_0x2c7dee:Array[_0x59a6be(0x48d)](_0x2c7dee??[]);let _0x1465d6=_0x32d62b['get'](_0x5129f6);if(!_0x1465d6)_0x32d62b['set'](_0x5129f6,_0x1465d6=new Map());const _0x1dd40d=Date[_0x59a6be(0x8cc)]();for(const [_0x4f7801,_0x4e0f86]of _0x1465d6)if(_0x4e0f86['req']['state']!==_0x59a6be(0x321)&&_0x1dd40d-_0x4e0f86['req']['at']>_0x1da67e)_0x1465d6[_0x59a6be(0x2cb)](_0x4f7801);const _0x52f18d=_0x1cdcd3['map'](_0x301198=>JSON['stringify'](_0x301198));let _0x126b59=![];const _0x317994=[],_0x2534c7=new Set();for(let _0x537128=0x0;_0x537128<_0x52f18d[_0x59a6be(0x68a)];_0x537128++){const _0x3f4d86=_0x1465d6['get'](_0x52f18d[_0x537128]);if(!_0x3f4d86)!_0x2534c7['has'](_0x52f18d[_0x537128])&&(_0x2534c7[_0x59a6be(0x280)](_0x52f18d[_0x537128]),_0x317994['push'](_0x537128));else{if(_0x3f4d86['req']['state']===_0x59a6be(0x321))_0x126b59=!![];else{if(_0x3f4d86[_0x59a6be(0x71a)][_0x59a6be(0x74f)]==='err'){const _0x58e81b=_0x3f4d86[_0x59a6be(0x71a)][_0x59a6be(0x2ef)];for(const [_0x382d2f,_0x31e26d]of _0x1465d6)if(_0x31e26d['req']===_0x3f4d86[_0x59a6be(0x71a)])_0x1465d6[_0x59a6be(0x2cb)](_0x382d2f);throw _0x58e81b;}}}}if(_0x126b59)throw _0x369c84();if(_0x317994[_0x59a6be(0x68a)]){const _0x3ac5c0=_0x317994[_0x59a6be(0x35e)](_0x4b6fcb=>_0x1cdcd3[_0x4b6fcb]),_0x55fe45=_0x2f90d1[_0x59a6be(0x515)](_0x3ac5c0),_0x5755c5={'state':_0x59a6be(0x321),'value':undefined,'at':0x0},_0x26f3b7=(_0x1f2fe2,_0x1658a0)=>{const _0x340039=_0x59a6be;_0x5755c5[_0x340039(0x74f)]=_0x1f2fe2,_0x5755c5['value']=_0x1658a0,_0x5755c5['at']=Date[_0x340039(0x8cc)]();};if(!_0x55fe45||typeof _0x55fe45[_0x59a6be(0x801)]!=='function')_0x26f3b7('ok',_0x55fe45);else{let _0x3d3005=!![];_0x55fe45[_0x59a6be(0x801)](_0x275ce4=>{_0x26f3b7('ok',_0x275ce4);if(!_0x3d3005)_0x36d13e(_0x2f90d1);},_0x1a122f=>{_0x26f3b7('err',_0x1a122f);if(!_0x3d3005)_0x36d13e(_0x2f90d1);});for(let _0x27a702=0x0;_0x27a702<0x64&&_0x5755c5[_0x59a6be(0x74f)]==='pending';_0x27a702++)process[_0x59a6be(0x33e)]();_0x3d3005=![];}for(let _0x3d5ae6=0x0;_0x3d5ae6<_0x317994[_0x59a6be(0x68a)];_0x3d5ae6++)_0x1465d6['set'](_0x52f18d[_0x317994[_0x3d5ae6]],{'req':_0x5755c5,'index':_0x3d5ae6});if(_0x5755c5['state']===_0x59a6be(0x2d0)){for(const _0x487a4c of _0x317994)_0x1465d6[_0x59a6be(0x2cb)](_0x52f18d[_0x487a4c]);throw _0x5755c5[_0x59a6be(0x2ef)];}if(_0x5755c5['state']===_0x59a6be(0x321))throw _0x369c84();}const _0xa66b40=_0x52f18d[_0x59a6be(0x35e)](_0xd6cad3=>{const _0xcd1f32=_0x59a6be,_0x5d5512=_0x1465d6[_0xcd1f32(0x309)](_0xd6cad3),_0x469360=_0x5d5512[_0xcd1f32(0x71a)][_0xcd1f32(0x2ef)];return _0x469360?_0x469360[_0x5d5512[_0xcd1f32(0x1da)]]:undefined;});for(const _0x5168e7 of _0x52f18d)_0x1465d6[_0x59a6be(0x2cb)](_0x5168e7);if(!_0x1465d6[_0x59a6be(0x8d2)])_0x32d62b[_0x59a6be(0x2cb)](_0x5129f6);return _0xa66b40;}function _0x369c84(){const _0xb39ad8=_0x52a3;return Object[_0xb39ad8(0x4cc)](new Error(_0xb39ad8(0x29d)),{'code':_0xb39ad8(0x379)});}function _0x36d13e(_0x59c748){const _0x257513=_0x52a3;_0x59e042();try{const _0x8cc77a=_0x59c748['__okdb']||_0x44f29d;if(_0x8cc77a&&_0x8cc77a[_0x257513(0x663)])_0x8cc77a[_0x257513(0x210)]('events',null,_0x257513(0x5a2),[_0x257513(0x8be),{}],!![]);}catch{}}function _0x51a86c(_0x569514,_0x3e003f,_0x1fc084){const _0x146f21=_0x52a3,_0x41755d=_0xbffe1a[_0x146f21(0x309)](_0x569514);if(!_0x41755d||typeof _0x41755d[_0x3e003f]!=='function')return{'__absent':!![]};let _0x2b1afe=_0x41755d[_0x3e003f](...Array[_0x146f21(0x439)](_0x1fc084)?_0x1fc084:[]);if(_0x2b1afe&&typeof _0x2b1afe[_0x146f21(0x801)]===_0x146f21(0x640))_0x2b1afe=_0x10f279(_0x2b1afe);return{'value':_0x2b1afe===undefined?null:_0x2b1afe};}const _0x5ee29c=new Map();let _0x226ccb=0x1;const _0x3cac00=new Map(),_0x499e88=new Map();function _0x39fb42(_0x223fae,_0x1e5566=null){const _0x4bc5d8=_0x52a3,_0x4e3edf=_0x226ccb++;_0x5ee29c['set'](_0x4e3edf,_0x223fae);if(_0x1e5566)_0x499e88[_0x4bc5d8(0x63f)](_0x4e3edf,_0x1e5566);return _0x4e3edf;}function _0x27dfa5(_0x5de23f){const _0x8d704=_0x52a3;for(const [_0x1a9b22,_0x43b95f]of _0x3cac00)if(_0x43b95f&&_0x43b95f[_0x8d704(0x61e)]===_0x5de23f)_0x3cac00[_0x8d704(0x2cb)](_0x1a9b22);for(const [_0x160a27,_0x1e041f]of _0x4c3988)if(_0x1e041f===_0x5de23f)_0x4c3988[_0x8d704(0x2cb)](_0x160a27);for(const [_0x2c1d39,_0x6805b3]of _0x499e88)_0x6805b3===_0x5de23f&&(_0x499e88[_0x8d704(0x2cb)](_0x2c1d39),_0x5ee29c[_0x8d704(0x2cb)](_0x2c1d39));if(_0x44f29d===_0x5de23f)_0x44f29d=null;}function _0x3d8b34(_0x349f34,_0x5d37a0){_0x3cac00['set'](_0x349f34,_0x5d37a0);}function _0x569527(_0x1ed98f){const _0x55bd1a=_0x52a3;if(_0x1ed98f&&typeof _0x1ed98f===_0x55bd1a(0x559)&&Object['keys'](_0x1ed98f)[_0x55bd1a(0x68a)]===0x1&&_0x1ed98f['$payload']!==undefined)return _0x5ee29c[_0x55bd1a(0x309)](_0x1ed98f['$payload']);return _0x1ed98f;}function _0x10f279(_0x342f41){const _0x108220=_0x52a3;let _0x512275=![],_0x18bc47=![],_0x41aa0;_0x342f41['then'](_0x1a2763=>{_0x512275=!![],_0x41aa0=_0x1a2763;},_0x5e5cb7=>{_0x512275=!![],_0x18bc47=!![],_0x41aa0=_0x5e5cb7;});for(let _0x380c58=0x0;_0x380c58<0x2710&&!_0x512275;_0x380c58++)process[_0x108220(0x33e)]();if(!_0x512275)return _0x342f41[_0x108220(0x801)](undefined,_0x6e4f6b=>{const _0x340253=_0x108220;try{process[_0x340253(0x442)](_0x340253(0x445)+(_0x6e4f6b&&_0x6e4f6b['message']?_0x6e4f6b[_0x340253(0x211)]:_0x6e4f6b));}catch{}}),undefined;if(_0x18bc47)throw _0x41aa0;return _0x41aa0;}function _0x485091(_0x19cc77,_0x2575ba,_0x3d6172){const _0x3e7c73=_0x52a3,_0x2b8cd2=_0x147e3a(_0x19cc77),_0x378b88=_0x3cac00[_0x3e7c73(0x309)](_0x2575ba);try{const _0x29adf7=_0x2b8cd2(_0x3d6172,{'okdb':_0x378b88&&_0x378b88[_0x3e7c73(0x61e)],'env':_0x378b88});if(_0x29adf7&&typeof _0x29adf7[_0x3e7c73(0x801)]===_0x3e7c73(0x640))_0x10f279(_0x29adf7);}catch(_0xcce421){if(_0xcce421&&_0xcce421[_0x3e7c73(0x61c)]===!![]&&_0xcce421[_0x3e7c73(0x50e)]!==_0x3e7c73(0x5b9)){const _0x3c4241=new Error(_0xcce421[_0x3e7c73(0x211)]);_0x3c4241[_0x3e7c73(0x50e)]='__HOLD__';throw _0x3c4241;}throw _0xcce421;}}const _0x1a4759=new Map();function _0x1bad10(_0x2937f9,_0x1e2574,_0x451b81,_0x3f9db3,_0xdad7e5,_0x59550f){const _0x12651e=_0x52a3,_0x17e9ad=_0x147e3a(_0x2937f9),_0x17d66b=(_0x3cac00['get'](_0x59550f)||{})['okdb']||_0x44f29d,_0xcbcd9f=new AbortController(),_0x262df6=(_0x22b45e,..._0x208e2e)=>_0x17d66b[_0x12651e(0x210)](_0x12651e(0x622),_0x12651e(0x2a6),_0x22b45e,_0x208e2e,![]),_0x4daa4={'okdb':_0x17d66b,'env':_0x3cac00[_0x12651e(0x309)](_0x59550f)||null,'job':_0x3f9db3,'jobId':_0xdad7e5,'signal':_0xcbcd9f[_0x12651e(0x411)],'heartbeat':()=>_0x262df6(_0x12651e(0x50b),_0x451b81),'markProgress':_0x2cf8cb=>_0x262df6(_0x12651e(0x2ca),_0x451b81,_0x2cf8cb),'log':(_0x459f3f,_0x107279)=>_0x262df6(_0x12651e(0x3d5),_0x451b81,_0x459f3f,_0x107279)};_0x1a4759[_0x12651e(0x63f)](_0x451b81,{'ctrl':_0xcbcd9f,'call':_0x262df6});const _0x91faae=()=>{const _0x4d1184=_0x12651e;_0x1a4759['delete'](_0x451b81);try{_0x262df6(_0x4d1184(0x8a9),_0x451b81);}catch{}};let _0xf1630e;try{_0xf1630e=_0x17e9ad(_0x1e2574,_0x4daa4);}catch(_0x3d742f){_0x91faae();throw _0x3d742f;}if(_0xf1630e&&typeof _0xf1630e[_0x12651e(0x801)]===_0x12651e(0x640)){const _0x517084=_0x3c5b12(_0xf1630e);return _0xf1630e[_0x12651e(0x801)](_0x91faae,_0x91faae),{'$token':_0x517084};}return _0x91faae(),_0xf1630e;}function _0x321e77(){const _0x2a71e1=_0x52a3;for(const [_0x1318ca,_0xfe26ab]of _0x1a4759){if(_0xfe26ab['ctrl']['signal'][_0x2a71e1(0x1ed)])continue;let _0x3f4333;try{_0x3f4333=_0xfe26ab[_0x2a71e1(0x4d1)](_0x2a71e1(0x219),_0x1318ca);}catch{continue;}if(_0x3f4333&&_0x3f4333[_0x2a71e1(0x1ed)]){const {OKDBError:_0x4e8a10}=requireErrors();_0xfe26ab['ctrl'][_0x2a71e1(0x333)](new _0x4e8a10(_0x3f4333[_0x2a71e1(0x211)],_0x3f4333['code']));}}}let _0x44f29d=null;function _0x8997af(_0x1e5ccf){_0x44f29d=_0x1e5ccf;}function _0x1264c5(_0x58ac37,_0x38804f,_0x34999d,_0x352a6e,_0x3ebb66,_0x323b7a,_0x1d2e22){const _0x23a28e=_0x52a3,_0x2dc568=_0x147e3a(_0x58ac37),_0x5abed6=_0x3cac00['get'](_0x34999d);try{const _0x28ddcf=_0x38804f?_0x2dc568(_0x3ebb66,_0x323b7a):_0x2dc568({'env':_0x5abed6,'okdb':_0x5abed6&&_0x5abed6['okdb'],'payload':_0x569527(_0x352a6e)},_0x3ebb66,_0x323b7a);if(_0x28ddcf&&typeof _0x28ddcf['then']===_0x23a28e(0x640)){if(_0x323b7a&&_0x323b7a[_0x23a28e(0x5a9)]==='inline')_0x28ddcf[_0x23a28e(0x801)](undefined,()=>{});else{if(_0x1d2e22){const _0x6379f7=_0x2f8a63(_0x28ddcf);if(_0x6379f7===0x0)return null;return{'$token':_0x6379f7};}else _0x10f279(_0x28ddcf);}}}catch(_0x4cbd86){if(_0x4cbd86&&_0x4cbd86[_0x23a28e(0x61c)]===!![]&&_0x4cbd86[_0x23a28e(0x50e)]!==_0x23a28e(0x5b9)){const _0x415021=new Error(_0x4cbd86[_0x23a28e(0x211)]);_0x415021[_0x23a28e(0x50e)]=_0x23a28e(0x5b9);throw _0x415021;}throw _0x4cbd86;}return null;}function _0x2f8a63(_0x1966f7){const _0x41f9fa=_0x52a3;let _0x5c56df=_0x41f9fa(0x321),_0x3963f3;_0x1966f7[_0x41f9fa(0x801)](_0x2300c9=>{_0x5c56df='ok',_0x3963f3=_0x2300c9;},_0x33e8d7=>{_0x5c56df='err',_0x3963f3=_0x33e8d7;});for(let _0x2d9604=0x0;_0x2d9604<0x64&&_0x5c56df==='pending';_0x2d9604++)process[_0x41f9fa(0x33e)]();if(_0x5c56df==='ok')return 0x0;const _0x4aad26=_0x39dd51++,_0x23bdba={'state':_0x5c56df,'value':_0x3963f3};_0x17221a['set'](_0x4aad26,_0x23bdba);if(_0x5c56df===_0x41f9fa(0x321))_0x1966f7[_0x41f9fa(0x801)](_0x77cfba=>{const _0x18cbcd=_0x41f9fa;_0x23bdba[_0x18cbcd(0x74f)]='ok',_0x23bdba[_0x18cbcd(0x2ef)]=_0x77cfba,_0x59e042();},_0x4aad39=>{const _0x5d6e1e=_0x41f9fa;_0x23bdba[_0x5d6e1e(0x74f)]=_0x5d6e1e(0x2d0),_0x23bdba[_0x5d6e1e(0x2ef)]=_0x4aad39,_0x59e042();});return _0x4aad26;}function _0x16db42(_0x228f77){const _0x521d67=_0x52a3;let _0x524312=_0x10cd79[_0x521d67(0x309)](_0x228f77);return _0x524312===undefined&&(_0x524312=_0x4b814a++,_0x10cd79[_0x521d67(0x63f)](_0x228f77,_0x524312),_0x20df6c[_0x521d67(0x63f)](_0x524312,{'fn':_0x228f77,'refs':0x0})),_0x20df6c[_0x521d67(0x309)](_0x524312)['refs']++,_0x524312;}function _0x163c9a(_0x85722b){const _0x1eab9c=_0x52a3,_0x5bdca9=_0x20df6c['get'](_0x85722b);if(!_0x5bdca9)return;--_0x5bdca9['refs']<=0x0&&(_0x20df6c['delete'](_0x85722b),_0x10cd79[_0x1eab9c(0x2cb)](_0x5bdca9['fn']));}function _0x147e3a(_0x24289b){const _0x332582=_0x52a3,_0x1c995f=_0x20df6c['get'](_0x24289b);if(!_0x1c995f)throw new Error(_0x332582(0x76b)+_0x24289b);return _0x1c995f['fn'];}function _0x3c5b12(_0x418c6d){const _0x2302fd=_0x52a3;if(_0x418c6d&&typeof _0x418c6d['then']==='function'){const _0x46ab21=_0x39dd51++,_0x263776={'state':_0x2302fd(0x321),'value':undefined};return _0x17221a[_0x2302fd(0x63f)](_0x46ab21,_0x263776),_0x418c6d[_0x2302fd(0x801)](_0x1a7f73=>{const _0x3c62dc=_0x2302fd;_0x263776['state']='ok',_0x263776[_0x3c62dc(0x2ef)]=_0x1a7f73,_0x59e042();},_0x331163=>{const _0x4d3904=_0x2302fd;_0x263776[_0x4d3904(0x74f)]=_0x4d3904(0x2d0),_0x263776[_0x4d3904(0x2ef)]=_0x331163,_0x59e042();}),_0x46ab21;}return 0x0;}let _0x5e357f=()=>{},_0x57d464=null;function _0x3d64de(_0x1fa769,_0x40eb73=null){_0x5e357f=_0x1fa769,_0x57d464=_0x40eb73;}function _0x5263b9(_0x51f35f){return _0x57d464===_0x51f35f;}function _0x59e042(){_0x5e357f();}function _0x4f13f2(_0x1a89f5){const _0x862388=_0x52a3,_0xbcad26=_0x17221a[_0x862388(0x309)](_0x1a89f5);if(!_0xbcad26)return{'state':_0x862388(0x2d0),'error':{'message':'unknown\x20promise\x20token'}};if(_0xbcad26[_0x862388(0x74f)]===_0x862388(0x321))return{'state':_0x862388(0x321)};_0x17221a[_0x862388(0x2cb)](_0x1a89f5);if(_0xbcad26['state']==='ok')return{'state':'ok','value':_0xbcad26[_0x862388(0x2ef)]};const _0x504300=_0xbcad26[_0x862388(0x2ef)];return{'state':'err','error':{'message':_0x504300&&_0x504300[_0x862388(0x211)]!=null?String(_0x504300[_0x862388(0x211)]):String(_0x504300),'stack':_0x504300&&_0x504300[_0x862388(0x221)],'code':_0x504300&&_0x504300[_0x862388(0x50e)],'status':_0x504300&&typeof _0x504300['status']==='number'?_0x504300[_0x862388(0x717)]:undefined,'hold':!!(_0x504300&&_0x504300[_0x862388(0x61c)]===!![])}};}function _0x1558f7(_0x2e5a06,_0x568e37){_0x310966['set'](_0x2e5a06,_0x568e37);}function _0x302501(_0x288f27){_0x310966['delete'](_0x288f27);}let _0x8d81f7=0x0;function _0x50e8a8(){return _0x8d81f7>0x0;}function _0x35baae(){const _0x48c8a8=_0x52a3;_0x8d81f7++;try{return _0x160dc5[_0x48c8a8(0x32a)](undefined,arguments);}finally{_0x8d81f7--;}}function _0x160dc5(_0x385b19,_0x2d30de,_0x41c5fb,_0x3b8ce9,_0x17d20d,_0x216d50){const _0x178f95=_0x52a3;switch(_0x385b19){case _0x178f95(0x737):return _0x16db42(_0x2d30de);case _0x178f95(0x7a9):return _0x163c9a(_0x2d30de);case _0x178f95(0x4d1):{const _0x28ee28=Array['prototype'][_0x178f95(0x1f7)][_0x178f95(0x4d1)](arguments,0x2),_0x318583=_0x147e3a(_0x2d30de)[_0x178f95(0x32a)](undefined,_0x28ee28);return _0x318583&&typeof _0x318583[_0x178f95(0x801)]===_0x178f95(0x640)?_0x10f279(_0x318583):_0x318583;}case _0x178f95(0x75f):{const _0x4e5c00=Array[_0x178f95(0x511)]['slice']['call'](arguments,0x2),_0x135759=_0x147e3a(_0x2d30de)[_0x178f95(0x32a)](undefined,_0x4e5c00);if(_0x135759&&typeof _0x135759['then']==='function')return{'$token':_0x3c5b12(_0x135759)};return{'$value':_0x135759===undefined?null:_0x135759,'$undef':_0x135759===undefined};}case _0x178f95(0x226):{const _0xe01f64=_0x310966[_0x178f95(0x309)](_0x2d30de);if(_0xe01f64)_0xe01f64['_deliver'](_0x41c5fb,_0x3b8ce9);return undefined;}case _0x178f95(0x58d):{const _0x1572fe=_0x310966[_0x178f95(0x309)](_0x2d30de);if(_0x1572fe)_0x1572fe[_0x178f95(0x8ae)](_0x41c5fb);return undefined;}case _0x178f95(0x3ea):return _0x1264c5(_0x2d30de,_0x41c5fb,_0x3b8ce9,_0x17d20d,_0x216d50,arguments[0x6],arguments[0x7]);case _0x178f95(0x484):return _0x485091(_0x2d30de,_0x41c5fb,_0x3b8ce9);case _0x178f95(0x6c7):return _0x1bad10(_0x2d30de,_0x41c5fb,_0x3b8ce9,_0x17d20d,_0x216d50,arguments[0x6]);case _0x178f95(0x61f):return _0x2a450d['apply'](null,Array[_0x178f95(0x511)][_0x178f95(0x1f7)]['call'](arguments,0x1));case _0x178f95(0x7a5):return _0x51a86c(_0x2d30de,_0x41c5fb,_0x3b8ce9);case _0x178f95(0x22e):return _0x4f13f2(_0x2d30de);case _0x178f95(0x2bf):{const _0x176111=((async()=>{const _0x2ac2c6=_0x178f95,_0x28d84e=await globalThis[_0x2ac2c6(0x1e2)](_0x2d30de);if(!_0x28d84e['ok']){const _0x2c0156=new Error('HTTP\x20'+_0x28d84e[_0x2ac2c6(0x717)]);_0x2c0156[_0x2ac2c6(0x50e)]='HTTP_ERROR';throw _0x2c0156;}return _0x28d84e[_0x2ac2c6(0x810)]();})());return _0x10f279(_0x176111)??null;}case _0x178f95(0x55c):return _0x51fd91(_0x2d30de,_0x41c5fb,_0x3b8ce9);case _0x178f95(0x459):return _0xb5504(_0x2d30de,_0x41c5fb,_0x3b8ce9);case _0x178f95(0x23c):return _0x59c69b(_0x2d30de,_0x41c5fb,_0x3b8ce9);default:throw new Error('okdb-node:\x20unknown\x20bridge\x20op\x20'+_0x385b19);}}return bridge_1={'inNativeCall':_0x50e8a8,'regObject':_0x2dd26b,'checkSignals':_0x321e77,'setCurrentDb':_0x8997af,'forgetDb':_0x27dfa5,'storePayload':_0x39fb42,'registerEnv':_0x3d8b34,'resolvePayload':_0x569527,'bridge':_0x35baae,'reg':_0x16db42,'unreg':_0x163c9a,'fnOf':_0x147e3a,'track':_0x3c5b12,'resolve':_0x4f13f2,'registerTarget':_0x1558f7,'unregisterTarget':_0x302501,'setKick':_0x3d64de,'kickOwnedBy':_0x5263b9},bridge_1;}var writebatch,hasRequiredWritebatch;function requireWritebatch(){const _0x41abd8=_0x5c70f8;if(hasRequiredWritebatch)return writebatch;hasRequiredWritebatch=0x1;const {reclass:_0x238459}=requireErrors(),_0x1b2728=requireBridge(),_0x54f131=new Map();let _0x184311=null;function _0x540c84(_0x35d5ca){const _0x487c3c=_0x52a3;if(_0x184311)return;_0x184311=_0x35d5ca,_0x35d5ca[_0x487c3c(0x607)](_0x4ba1b3);}function _0x4ba1b3(){const _0x148739=_0x52a3,_0x3e9dd5=_0x184311[_0x148739(0x878)]();for(const _0x4d6531 of _0x3e9dd5){const _0x3b9b17=_0x54f131[_0x148739(0x309)](_0x4d6531);_0x3b9b17&&(_0x54f131[_0x148739(0x2cb)](_0x4d6531),_0x3b9b17());}}function _0x163b68(_0x5b456e,_0x272e9c){const _0x11ebdd=_0x52a3;_0x54f131[_0x11ebdd(0x63f)](_0x5b456e,_0x272e9c);}class _0x14309f{constructor(_0x3d9b30){const _0x537c08=_0x52a3;this['db']=_0x3d9b30,this['queue']=[],this[_0x537c08(0x783)]=![],this[_0x537c08(0x4f2)]=![],this[_0x537c08(0x85d)]=new Set();}['enqueue'](_0x339c0a,_0x12ae87,_0x2bd4,_0x31991b){const _0x598861=_0x52a3;if(_0x1b2728['inNativeCall']())try{return Promise[_0x598861(0x22e)](this['db'][_0x598861(0x210)](_0x339c0a,_0x12ae87,_0x2bd4,_0x31991b));}catch(_0x3a6824){return Promise[_0x598861(0x4b2)](_0x3a6824);}const _0x2142ee=new Promise((_0x19c9ca,_0x54cd4f)=>{const _0x3fae9a=_0x598861;this[_0x3fae9a(0x622)]['push']({'item':[_0x339c0a,_0x12ae87,_0x2bd4,_0x31991b],'resolve':_0x19c9ca,'reject':_0x54cd4f});});this['inflight']['add'](_0x2142ee);const _0x3ac6fd=()=>this[_0x598861(0x85d)][_0x598861(0x2cb)](_0x2142ee);return _0x2142ee['then'](_0x3ac6fd,_0x3ac6fd),!this[_0x598861(0x783)]&&(this[_0x598861(0x783)]=!![],setImmediate(()=>{const _0x3578d3=_0x598861;this[_0x3578d3(0x783)]=![],this[_0x3578d3(0x8e6)]();})),_0x2142ee;}[_0x41abd8(0x8e6)](){const _0x5f2d9e=_0x41abd8;if(!this['queue']['length'])return;if(this[_0x5f2d9e(0x4f2)]){!this[_0x5f2d9e(0x783)]&&(this[_0x5f2d9e(0x783)]=!![],setImmediate(()=>{const _0x1ee681=_0x5f2d9e;this[_0x1ee681(0x783)]=![],this[_0x1ee681(0x8e6)]();}));return;}const _0x5b3a7a=this['queue'];this[_0x5f2d9e(0x622)]=[],this['_run'](_0x5b3a7a);}[_0x41abd8(0x6d8)](_0x4ec4ad){const _0x4255e8=_0x41abd8;let _0x104b4f;this[_0x4255e8(0x4f2)]=!![];try{_0x104b4f=this['db'][_0x4255e8(0x858)][_0x4255e8(0x603)](_0x4ec4ad[_0x4255e8(0x35e)](_0x3776a2=>_0x3776a2[_0x4255e8(0x20b)]));}catch(_0x34ae0d){this[_0x4255e8(0x4f2)]=![];if(_0x4ec4ad[_0x4255e8(0x68a)]>0x1){for(const _0x34aca3 of _0x4ec4ad)this[_0x4255e8(0x6d8)]([_0x34aca3]);return;}const _0x242e82=_0x238459(_0x34ae0d);for(const _0x5b130a of _0x4ec4ad)_0x5b130a[_0x4255e8(0x4b2)](_0x242e82);return;}finally{this[_0x4255e8(0x4f2)]=![];}try{this['db'][_0x4255e8(0x5fd)][_0x4255e8(0x2c2)]();}catch{}const [_0x4fbf4c,_0x3881f1]=_0x104b4f;_0x163b68(_0x3881f1,()=>{const _0xece9a0=_0x4255e8;for(let _0x4ded5f=0x0;_0x4ded5f<_0x4ec4ad[_0xece9a0(0x68a)];_0x4ded5f++){const _0x43376b=_0x4fbf4c[_0x4ded5f];if(_0x43376b&&_0x43376b[0x0])_0x4ec4ad[_0x4ded5f]['resolve'](_0x43376b[0x1]);else _0x4ec4ad[_0x4ded5f]['reject'](_0x238459(_0x43376b?_0x43376b[0x1]:new Error('write\x20batch:\x20missing\x20result')));}});}async[_0x41abd8(0x3ec)](){const _0x346db7=_0x41abd8;this[_0x346db7(0x8e6)]();while(this['inflight'][_0x346db7(0x8d2)]){await Promise[_0x346db7(0x30e)]([...this['inflight']]),this[_0x346db7(0x8e6)]();}let _0x544cc4;try{_0x544cc4=this['db'][_0x346db7(0x858)]['flushTicket']();}catch{return;}await new Promise(_0x4de784=>_0x163b68(_0x544cc4,_0x4de784));}}return writebatch={'install':_0x540c84,'WriteBatch':_0x14309f,'whenSettled':_0x163b68},writebatch;}var pump,hasRequiredPump;function requirePump(){const _0x5250f4=_0x5c70f8;if(hasRequiredPump)return pump;hasRequiredPump=0x1;const _0x110b44=Number(process.env.OKDB_NATIVE_IDLE_MS)||0xfa;class _0xbc7a65{constructor(_0xde2522){const _0x23a735=_0x52a3;this['native']=_0xde2522,this[_0x23a735(0x39b)]=null,this[_0x23a735(0x71f)]=null,this[_0x23a735(0x4c2)]=![],this['stopped']=![],this['pumping']=![],this[_0x23a735(0x32e)]=![],this['turns']=0x0,this[_0x23a735(0x22d)]=[],this[_0x23a735(0x771)]=[];}[_0x5250f4(0x6c4)](_0xde2cce){return new Promise(_0xe64e7c=>{const _0x2d9c36=_0x52a3,_0x32bda1=setTimeout(_0x28b86a,_0xde2cce);function _0x28b86a(){clearTimeout(_0x32bda1),_0xe64e7c();}this[_0x2d9c36(0x771)][_0x2d9c36(0x28d)](_0x28b86a);});}[_0x5250f4(0x793)](){const _0x33663d=_0x5250f4;if(this[_0x33663d(0x771)]['length']===0x0)return;const _0x338716=this[_0x33663d(0x771)];this['turnWaiters']=[];for(const _0x22c9a7 of _0x338716)_0x22c9a7();}[_0x5250f4(0x45c)](){const _0x26aa3f=_0x5250f4;this[_0x26aa3f(0x5a6)]=![],this[_0x26aa3f(0x2c2)]();}[_0x5250f4(0x1f1)](){const _0x18cb76=_0x5250f4;this['stopped']=!![];if(this[_0x18cb76(0x39b)])clearTimeout(this[_0x18cb76(0x39b)]);if(this[_0x18cb76(0x71f)])clearImmediate(this[_0x18cb76(0x71f)]);this[_0x18cb76(0x39b)]=this['immediate']=null,this[_0x18cb76(0x793)]();}['wake'](){const _0x1de803=_0x5250f4;if(this[_0x1de803(0x5a6)]||this[_0x1de803(0x71f)])return;this[_0x1de803(0x39b)]&&(clearTimeout(this[_0x1de803(0x39b)]),this[_0x1de803(0x39b)]=null),this[_0x1de803(0x71f)]=setImmediate(()=>{const _0x56ea93=_0x1de803;this[_0x56ea93(0x71f)]=null,this[_0x56ea93(0x3e5)]();});}['turn'](){const _0x4490e7=_0x5250f4;if(this[_0x4490e7(0x5a6)]||this[_0x4490e7(0x8a3)]){this['dirty']=!![];return;}this[_0x4490e7(0x8a3)]=!![];let _0xfd2f4d;try{this[_0x4490e7(0x683)]++,_0xfd2f4d=this[_0x4490e7(0x8d5)]['pump']();if(this[_0x4490e7(0x7b3)])this[_0x4490e7(0x7b3)]();}catch(_0x469ba7){_0xfd2f4d=_0x110b44,process[_0x4490e7(0x407)](()=>{throw _0x469ba7;});}finally{this[_0x4490e7(0x8a3)]=![],this[_0x4490e7(0x793)]();}if(this[_0x4490e7(0x5a6)]||_0xfd2f4d===-0x2)return;if(this[_0x4490e7(0x32e)])return this[_0x4490e7(0x32e)]=![],this[_0x4490e7(0x2c2)]();const _0x20c595=_0xfd2f4d<0x0?_0x110b44:Math[_0x4490e7(0x4a0)](0x0,Math[_0x4490e7(0x597)](_0xfd2f4d,_0x110b44));if(_0x20c595<=0x0)return this[_0x4490e7(0x2c2)]();this[_0x4490e7(0x39b)]=setTimeout(()=>{const _0x1558ef=_0x4490e7;this[_0x1558ef(0x39b)]=null,this[_0x1558ef(0x3e5)]();},Math[_0x4490e7(0x3c1)](_0x20c595));if(this[_0x4490e7(0x39b)][_0x4490e7(0x32c)])this['timer'][_0x4490e7(0x32c)]();}}return pump={'Pumper':_0xbc7a65},pump;}var dist$1={},hasRequiredDist$1;function requireDist$1(){const _0x4a7415=_0x5c70f8;if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=0x1;const _0x31f270=Symbol[_0x4a7415(0x708)](_0x4a7415(0x8c2)),_0x645945={'value':null,'done':!![]},_0x21a137={'value':null,'done':!![]};!Symbol[_0x4a7415(0x262)]&&(Symbol[_0x4a7415(0x262)]=Symbol[_0x4a7415(0x708)](_0x4a7415(0x848)));const _0xf5ec66={};class _0x3e22ed{constructor(_0x4705ac){const _0x52bb6a=_0x4a7415;_0x4705ac&&(this['iterate']=_0x4705ac[Symbol[_0x52bb6a(0x344)]][_0x52bb6a(0x78f)](_0x4705ac));}['map'](_0x1e9371){let _0x59fe90=this,_0x5bddcf=new _0x3e22ed();return _0x5bddcf['iterate']=(_0x3135f1=_0xf5ec66)=>{const _0x13e69c=_0x52a3,{async:_0x434733}=_0x3135f1;let _0x1c7b80=_0x59fe90[_0x434733?Symbol['asyncIterator']:Symbol[_0x13e69c(0x344)]](_0x3135f1);if(!_0x434733)_0x59fe90[_0x13e69c(0x4a5)]=!![];let _0x56671e=-0x1;return{'next'(_0x40f846){const _0x594ba5=_0x13e69c;let _0x25217c;do{let _0x12e981;try{if(_0x40f846)_0x12e981=_0x40f846,_0x40f846=null;else{_0x56671e++,_0x12e981=_0x1c7b80[_0x594ba5(0x48f)]();if(_0x12e981['then'])return!_0x434733&&this[_0x594ba5(0x724)](new Error(_0x594ba5(0x7b2))),_0x12e981[_0x594ba5(0x801)](_0x16e363=>this[_0x594ba5(0x48f)](_0x16e363),_0x2da1a9=>{const _0x19abdf=_0x594ba5;return this[_0x19abdf(0x724)](_0x2da1a9);});}if(_0x12e981[_0x594ba5(0x588)]===!![]){this[_0x594ba5(0x588)]=!![];if(_0x5bddcf[_0x594ba5(0x875)])_0x5bddcf[_0x594ba5(0x875)]();return _0x12e981;}try{_0x25217c=_0x1e9371[_0x594ba5(0x4d1)](_0x59fe90,_0x12e981[_0x594ba5(0x2ef)],_0x56671e);if(_0x25217c&&_0x25217c[_0x594ba5(0x801)]&&_0x434733)return _0x25217c[_0x594ba5(0x801)](_0x260310=>_0x260310===_0x31f270?this[_0x594ba5(0x48f)]():{'value':_0x260310},_0x13e514=>{const _0x43da0f=_0x594ba5;if(_0x3135f1[_0x43da0f(0x338)])_0x13e514[_0x43da0f(0x4be)]=!![];return this[_0x43da0f(0x724)](_0x13e514);});}catch(_0xeb0d75){if(_0x3135f1[_0x594ba5(0x338)])_0xeb0d75[_0x594ba5(0x4be)]=!![];throw _0xeb0d75;}}catch(_0x9de154){if(_0x5bddcf['handleError'])try{_0x25217c=_0x5bddcf[_0x594ba5(0x42f)](_0x9de154,_0x56671e);}catch(_0x342cce){return this['throw'](_0x342cce);}else return this[_0x594ba5(0x724)](_0x9de154);}}while(_0x25217c===_0x31f270);if(_0x25217c===_0x645945)return this[_0x594ba5(0x67c)]();return{'value':_0x25217c};},'return'(_0x458246){const _0x4207b8=_0x13e69c;if(!this[_0x4207b8(0x588)]){_0x21a137[_0x4207b8(0x2ef)]=_0x458246,this[_0x4207b8(0x588)]=!![];if(_0x5bddcf[_0x4207b8(0x875)])_0x5bddcf[_0x4207b8(0x875)]();_0x1c7b80[_0x4207b8(0x67c)]?.();}return _0x21a137;},'throw'(_0x5bd538){const _0x59d251=_0x13e69c;if(_0x5bd538[_0x59d251(0x4be)]){if(_0x5bddcf[_0x59d251(0x51b)])try{return{'value':_0x5bddcf[_0x59d251(0x51b)](_0x5bd538)};}catch(_0x3934af){this[_0x59d251(0x67c)]();throw _0x3934af;}if(_0x3135f1[_0x59d251(0x338)])throw _0x5bd538;}this[_0x59d251(0x67c)]();throw _0x5bd538;}};},_0x5bddcf;}[Symbol[_0x4a7415(0x262)]](_0x5de168){const _0x4f5c06=_0x4a7415;if(_0x5de168)_0x5de168={..._0x5de168,'async':!![]};else _0x5de168={'async':!![]};return this['iterator']=this[_0x4f5c06(0x626)](_0x5de168);}[Symbol[_0x4a7415(0x344)]](_0x234dbe){const _0x21997d=_0x4a7415;return this[_0x21997d(0x344)]=this[_0x21997d(0x626)](_0x234dbe);}[_0x4a7415(0x4e1)](_0x28b917){const _0x161fca=_0x4a7415;let _0x3ac479=this[_0x161fca(0x35e)](_0x218538=>{const _0x3b2610=_0x161fca;let _0xbd02a4=_0x28b917(_0x218538);if(_0xbd02a4?.[_0x3b2610(0x801)])return _0xbd02a4[_0x3b2610(0x801)](_0x2042f9=>_0x2042f9?_0x218538:_0x31f270);else return _0xbd02a4?_0x218538:_0x31f270;}),_0x573f05=_0x3ac479[_0x161fca(0x626)];return _0x3ac479[_0x161fca(0x626)]=(_0x3c8b11=_0xf5ec66)=>{const _0x5f0182=_0x161fca;if(_0x3c8b11[_0x5f0182(0x338)])_0x3c8b11={..._0x3c8b11,'continueOnRecoverableError':![]};return _0x573f05(_0x3c8b11);},_0x3ac479;}[_0x4a7415(0x5ff)](_0x509252){const _0x2493b2=_0x4a7415;let _0x195c52=this[_0x2493b2(0x344)]=this[_0x2493b2(0x626)](),_0x4e6299;while((_0x4e6299=_0x195c52[_0x2493b2(0x48f)]())[_0x2493b2(0x588)]!==!![]){_0x509252(_0x4e6299[_0x2493b2(0x2ef)]);}}[_0x4a7415(0x6cf)](_0x8b6ed3){let _0x4644ee=new _0x3e22ed();return _0x4644ee['iterate']=(_0x4039d1=_0xf5ec66)=>{const _0x3d77f9=_0x52a3;let _0x5b6ab0=this[_0x3d77f9(0x344)]=this['iterate'](_0x4039d1),_0xd7abb0=!![];function _0x1830fa(_0x5373df){const _0x212335=_0x3d77f9;if(_0xd7abb0)try{_0xd7abb0=![],_0x5b6ab0=_0x8b6ed3[_0x4039d1[_0x212335(0x56f)]?Symbol['asyncIterator']:Symbol[_0x212335(0x344)]](),_0x5373df=_0x5b6ab0['next']();if(_0x4644ee[_0x212335(0x875)]){if(_0x5373df[_0x212335(0x801)]){if(!_0x4039d1[_0x212335(0x56f)])throw new Error(_0x212335(0x7b2));_0x5373df[_0x212335(0x801)](_0x20415c=>{const _0x28b53d=_0x212335;if(_0x20415c[_0x28b53d(0x588)]())_0x4644ee[_0x28b53d(0x875)]();},_0xc641f=>{const _0x46d567=_0x212335;this[_0x46d567(0x67c)]();throw _0xc641f;});}else{if(_0x5373df[_0x212335(0x588)])_0x4644ee['onDone']();}}}catch(_0x327023){this[_0x212335(0x724)](_0x327023);}else{if(_0x4644ee[_0x212335(0x875)])_0x4644ee[_0x212335(0x875)]();}return _0x5373df;}return{'next'(){const _0x26d06c=_0x3d77f9;try{let _0x11495e=_0x5b6ab0[_0x26d06c(0x48f)]();if(_0x11495e['then']){if(!_0x4039d1[_0x26d06c(0x56f)])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');return _0x11495e[_0x26d06c(0x801)](_0x162a80=>{if(_0x162a80['done'])return _0x1830fa(_0x162a80);return _0x162a80;});}if(_0x11495e[_0x26d06c(0x588)])return _0x1830fa(_0x11495e);return _0x11495e;}catch(_0x415756){this[_0x26d06c(0x724)](_0x415756);}},'return'(_0xdc5a22){const _0x649756=_0x3d77f9;if(!this[_0x649756(0x588)]){_0x21a137[_0x649756(0x2ef)]=_0xdc5a22,this[_0x649756(0x588)]=!![];if(_0x4644ee[_0x649756(0x875)])_0x4644ee[_0x649756(0x875)]();_0x5b6ab0[_0x649756(0x67c)]();}return _0x21a137;},'throw'(_0x45e44c){const _0x47b151=_0x3d77f9;if(_0x4039d1['continueOnRecoverableError'])throw _0x45e44c;this[_0x47b151(0x67c)]();throw _0x45e44c;}};},_0x4644ee;}[_0x4a7415(0x846)](_0xa229f8){const _0x785bca=_0x4a7415;let _0x5c1d75=new _0x3e22ed();return _0x5c1d75[_0x785bca(0x626)]=(_0x5ea4da=_0xf5ec66)=>{const _0x5c7e1e=_0x785bca;let _0x469084=this[_0x5c7e1e(0x344)]=this[_0x5c7e1e(0x626)](_0x5ea4da),_0x3189de;return{'next'(_0x409955){const _0x4a900a=_0x5c7e1e;try{do{if(_0x3189de){let _0x49e6e1;if(_0x409955)_0x49e6e1=_0x409955,_0x409955=undefined;else _0x49e6e1=_0x3189de[_0x4a900a(0x48f)]();if(_0x49e6e1[_0x4a900a(0x801)]){if(!_0x5ea4da[_0x4a900a(0x56f)])throw new Error(_0x4a900a(0x7b2));return _0x49e6e1['then'](_0x1381bc=>this['next'](_0x1381bc));}if(!_0x49e6e1[_0x4a900a(0x588)])return _0x49e6e1;}let _0x34839c;if(_0x409955!=undefined)_0x34839c=_0x409955,_0x409955=undefined;else _0x34839c=_0x469084['next']();if(_0x34839c[_0x4a900a(0x801)]){if(!_0x5ea4da['async'])throw new Error(_0x4a900a(0x7b2));return _0x3189de=undefined,_0x34839c[_0x4a900a(0x801)](_0x4a5ce1=>this[_0x4a900a(0x48f)](_0x4a5ce1));}if(_0x34839c[_0x4a900a(0x588)]){if(_0x5c1d75[_0x4a900a(0x875)])_0x5c1d75[_0x4a900a(0x875)]();return _0x34839c;}try{let _0x29f1d5=_0xa229f8(_0x34839c['value']);if(_0x29f1d5?.['then']){if(!_0x5ea4da[_0x4a900a(0x56f)])throw new Error(_0x4a900a(0x7b2));return _0x29f1d5[_0x4a900a(0x801)](_0xa7892b=>{const _0x4dbadc=_0x4a900a;return Array['isArray'](_0xa7892b)||_0xa7892b instanceof _0x3e22ed?(_0x3189de=_0xa7892b[Symbol[_0x4dbadc(0x344)]](),this[_0x4dbadc(0x48f)]()):(_0x3189de=null,{'value':_0xa7892b});},_0x40a01d=>{const _0x1df560=_0x4a900a;if(_0x5ea4da[_0x1df560(0x338)])_0x40a01d[_0x1df560(0x4be)]=!![];this[_0x1df560(0x724)](_0x40a01d);});}if(Array[_0x4a900a(0x439)](_0x29f1d5)||_0x29f1d5 instanceof _0x3e22ed)_0x3189de=_0x29f1d5[Symbol[_0x4a900a(0x344)]]();else return _0x3189de=null,{'value':_0x29f1d5};}catch(_0xdfa85f){if(_0x5ea4da[_0x4a900a(0x338)])_0xdfa85f[_0x4a900a(0x4be)]=!![];throw _0xdfa85f;}}while(!![]);}catch(_0x10ba10){this[_0x4a900a(0x724)](_0x10ba10);}},'return'(){const _0x5bb8b0=_0x5c7e1e;if(_0x5c1d75['onDone'])_0x5c1d75['onDone']();if(_0x3189de)_0x3189de[_0x5bb8b0(0x67c)]();return _0x469084['return']();},'throw'(_0x38a93e){const _0x557624=_0x5c7e1e;if(_0x5ea4da[_0x557624(0x338)])throw _0x38a93e;if(_0x5c1d75[_0x557624(0x875)])_0x5c1d75['onDone']();if(_0x3189de)_0x3189de['return']();this[_0x557624(0x67c)]();throw _0x38a93e;}};},_0x5c1d75;}[_0x4a7415(0x1f7)](_0x5df581,_0x45e272){const _0x10a814=_0x4a7415;let _0xda35b0=this[_0x10a814(0x35e)]((_0x34e132,_0x19f954)=>{const _0x24a8e4=_0x10a814;if(_0x19f954<_0x5df581)return _0x31f270;if(_0x19f954>=_0x45e272)return _0x645945[_0x24a8e4(0x2ef)]=_0x34e132,_0x645945;return _0x34e132;});return _0xda35b0[_0x10a814(0x42f)]=(_0x24ae97,_0x5c71ad)=>{if(_0x5c71ad<_0x5df581)return _0x31f270;if(_0x5c71ad>=_0x45e272)return _0x645945;throw _0x24ae97;},_0xda35b0;}[_0x4a7415(0x1e3)](_0x10493b){const _0x1c9df8=_0x4a7415;if(typeof _0x10493b!==_0x1c9df8(0x640))throw new TypeError('Expected\x20catch\x20callback\x20to\x20be\x20a\x20function');let _0x265bdf=this[_0x1c9df8(0x35e)](_0x16393a=>{return _0x16393a;}),_0x28293a=_0x265bdf['iterate'];return _0x265bdf['iterate']=(_0x23a298=_0xf5ec66)=>{return _0x28293a({..._0x23a298,'continueOnRecoverableError':!![]});},_0x265bdf[_0x1c9df8(0x51b)]=_0x10493b,_0x265bdf;}['next'](){const _0x2bb434=_0x4a7415;if(!this['iterator'])this[_0x2bb434(0x344)]=this[_0x2bb434(0x626)]();return this['iterator'][_0x2bb434(0x48f)]();}[_0x4a7415(0x861)](){const _0x4e9db4=_0x4a7415;if(this[_0x4e9db4(0x2cd)]&&this[_0x4e9db4(0x2cd)][_0x4e9db4(0x5ff)])return this[_0x4e9db4(0x2cd)];const _0x4fa4f8=new Error(_0x4e9db4(0x883));_0x4fa4f8[_0x4e9db4(0x57d)]=this['asArray'];throw _0x4fa4f8;}get[_0x4a7415(0x2cd)](){const _0x5b7b49=_0x4a7415;if(this[_0x5b7b49(0x47f)])return this['_asArray'];let _0x27c1e1=new Promise((_0x183710,_0x238e7c)=>{const _0x1d99ec=_0x5b7b49;let _0x41af02=this[_0x1d99ec(0x626)](!![]),_0x3ac44f=[],_0x38e94f=this;Object[_0x1d99ec(0x1fd)](_0x3ac44f,'iterable',{'value':_0x38e94f});function _0x2d4845(_0x57a1f0){const _0x96c5d9=_0x1d99ec;while(_0x57a1f0[_0x96c5d9(0x588)]!==!![]){if(_0x57a1f0[_0x96c5d9(0x801)])return _0x57a1f0[_0x96c5d9(0x801)](_0x2d4845);else _0x3ac44f[_0x96c5d9(0x28d)](_0x57a1f0[_0x96c5d9(0x2ef)]);_0x57a1f0=_0x41af02[_0x96c5d9(0x48f)]();}_0x183710(_0x38e94f[_0x96c5d9(0x47f)]=_0x3ac44f);}_0x2d4845(_0x41af02[_0x1d99ec(0x48f)]());});return _0x27c1e1[_0x5b7b49(0x554)]=this,this[_0x5b7b49(0x47f)]||(this[_0x5b7b49(0x47f)]=_0x27c1e1);}[_0x4a7415(0x272)](){const _0x278122=_0x4a7415;return this[_0x278122(0x2cd)];}['at'](_0x333b87){for(let _0x32fd08 of this){if(_0x333b87--===0x0)return _0x32fd08;}}}return _0x3e22ed[_0x4a7415(0x511)][_0x4a7415(0x538)]=_0x645945,dist$1[_0x4a7415(0x7a4)]=_0x3e22ed,dist$1[_0x4a7415(0x6e8)]=_0x31f270,dist$1;}var iterable,hasRequiredIterable;function requireIterable(){const _0x4d870d=_0x5c70f8;if(hasRequiredIterable)return iterable;hasRequiredIterable=0x1;const {ExtendedIterable:_0x31fd07}=requireDist$1(),_0x2e09ca=Number(process.env.OKDB_NATIVE_RANGE_CHUNK)||0x3e8,_0x53b41d=Math[_0x4d870d(0x597)](_0x2e09ca,Number(process.env.OKDB_NATIVE_ROW_CHUNK)||0x100),_0x5dd4fa=new Set([_0x4d870d(0x3ee),'byIndex','query','getChanges']),_0x3dcc0c=Math[_0x4d870d(0x597)](_0x53b41d,Number(process.env.OKDB_NATIVE_RANGE_FIRST)||0x1),_0x47b88f=0x4,_0x30301d=(_0x5b4c3b,_0x3b2180=_0x2e09ca)=>Math['min'](_0x3b2180,_0x5b4c3b*_0x47b88f),_0x25a670={'value':undefined,'done':!![]};function _0x41eebc(_0x4c4ad6){const _0x4ead4c=_0x4d870d,_0x291203=new _0x31fd07();return _0x291203[_0x4ead4c(0x626)]=()=>{let _0x4a599a=0x0;return{'next'(){const _0x34dec5=_0x52a3;return _0x4a599a<_0x4c4ad6[_0x34dec5(0x68a)]?{'value':_0x4c4ad6[_0x4a599a++],'done':![]}:{'value':undefined,'done':!![]};},'return'(){const _0x1c2565=_0x52a3;return _0x4a599a=_0x4c4ad6[_0x1c2565(0x68a)],{'value':undefined,'done':!![]};},'throw'(){const _0x232b81=_0x52a3;return _0x4a599a=_0x4c4ad6[_0x232b81(0x68a)],{'value':undefined,'done':!![]};}};},_0x291203;}const _0x3368da=_0x289346=>typeof _0x289346==='number'&&!Number[_0x4d870d(0x468)](_0x289346)?Math[_0x4d870d(0x4a0)](0x0,Math[_0x4d870d(0x3c1)](_0x289346)):Infinity,_0xefec48=_0x36caa3=>typeof _0x36caa3==='number'?Math[_0x4d870d(0x4a0)](0x0,Math[_0x4d870d(0x2fe)](_0x36caa3))||0x0:0x0;function _0x19f48c(_0x12b4be,_0x19d773,_0x445264,_0x3390cf={}){const _0x548841=_0x4d870d,_0x2b9e6d=new _0x31fd07(),_0x3a8b78=(_0x3390cf['limitOf']||_0x3368da)(_0x19d773[_0x548841(0x582)]),_0x1ca555=_0x3390cf['rows']?_0x53b41d:_0x2e09ca,_0x397782=_0x3390cf[_0x548841(0x835)]||((_0x609574,_0x12c792)=>{const _0x1ae898=_0x548841;_0x609574[_0x1ae898(0x45c)]=_0x12c792,_0x609574[_0x1ae898(0x757)]=!![],delete _0x609574[_0x1ae898(0x353)];});let _0x2be7ad=null;if(_0x3390cf[_0x548841(0x54d)]){const _0x3ada56={..._0x19d773,'limit':Math[_0x548841(0x597)](_0x3dcc0c,_0x3a8b78)};_0x2be7ad={'rows':_0x12b4be(_0x3ada56),'limit':_0x3ada56['limit']};const _0x1198b2=_0x2be7ad;queueMicrotask(()=>{_0x1198b2['dropped']=!![];});}return _0x2b9e6d[_0x548841(0x626)]=()=>{const _0x3188b3=_0x548841;let _0x3a7e97=[],_0x3b515c=0x0,_0x228496=0x0,_0x54e954,_0x3bcb8a=![],_0x415157=![],_0x55090e=_0x3dcc0c;if(_0x2be7ad&&!_0x2be7ad[_0x3188b3(0x5a5)]&&!_0x2be7ad[_0x3188b3(0x7af)]){_0x2be7ad[_0x3188b3(0x7af)]=!![],_0x3a7e97=_0x2be7ad[_0x3188b3(0x659)],_0x3bcb8a=!![],_0x55090e=_0x30301d(_0x55090e,_0x1ca555);if(_0x3a7e97['length']<_0x2be7ad[_0x3188b3(0x582)])_0x415157=!![];if(_0x3a7e97['length'])_0x54e954=_0x445264(_0x3a7e97[_0x3a7e97['length']-0x1]);}const _0x288c97=()=>{const _0x361070=_0x3188b3;if(_0x415157)return;const _0x5c707e=_0x3a8b78-_0x228496;if(_0x5c707e<=0x0){_0x415157=!![],_0x3a7e97=[];return;}const _0x59e67d={..._0x19d773,'limit':Math[_0x361070(0x597)](_0x55090e,_0x5c707e)};if(_0x3bcb8a)_0x397782(_0x59e67d,_0x54e954);_0x3bcb8a=!![],_0x55090e=_0x30301d(_0x55090e,_0x1ca555),_0x3a7e97=_0x12b4be(_0x59e67d),_0x3b515c=0x0;if(_0x3a7e97['length']<_0x59e67d[_0x361070(0x582)])_0x415157=!![];if(_0x3a7e97['length'])_0x54e954=_0x445264(_0x3a7e97[_0x3a7e97[_0x361070(0x68a)]-0x1]);};return{'next'(){const _0x2633ff=_0x3188b3;if(_0x3b515c>=_0x3a7e97[_0x2633ff(0x68a)])_0x288c97();if(_0x3b515c>=_0x3a7e97[_0x2633ff(0x68a)])return{'value':undefined,'done':!![]};return _0x228496++,{'value':_0x3a7e97[_0x3b515c++],'done':![]};},'return'(){return _0x415157=!![],_0x3a7e97=[],{'value':undefined,'done':!![]};},'throw'(){return _0x415157=!![],_0x3a7e97=[],{'value':undefined,'done':!![]};}};},_0x2b9e6d;}function _0x5168af(_0x100f45,_0x3ab982,_0x569693,_0x5748a3,_0x68d121={}){const _0x31b29e=_0x4d870d,_0x196bf8=(_0x68d121[_0x31b29e(0x601)]||_0x3368da)(_0x5748a3&&_0x5748a3['limit']),_0xfcc576=_0x5dd4fa[_0x31b29e(0x571)](_0x3ab982)?_0x53b41d:_0x2e09ca,_0x1f4907=(_0x68d121[_0x31b29e(0x6e6)]||_0xefec48)(_0x5748a3&&_0x5748a3[_0x31b29e(0x353)]),_0x17a0a6=(_0x5f452d,_0xda3b4b,_0x596a96)=>{const _0x529c29=_0x31b29e,_0x4e5cb5=_0x196bf8-_0xda3b4b,_0x12724a=Math['min'](_0x596a96,_0x4e5cb5),_0x5122b2={'limit':_0x12724a,'offset':_0x1f4907+_0xda3b4b},_0x365d92=_0x100f45(_0x529c29(0x6a1),[_0x5f452d,_0x3ab982,_0x12724a===_0x4e5cb5?Infinity:_0x12724a,..._0x569693(_0x5122b2)]);if(_0x365d92[0x0]===-0x1){const _0x261ffe={'offset':_0x1f4907+_0xda3b4b};if(_0x4e5cb5!==Infinity)_0x261ffe['limit']=_0x4e5cb5;return{'pin':0x0,'rows':_0x100f45(_0x3ab982,_0x569693(_0x261ffe)),'raw':Infinity,'eager':!![]};}return{'pin':_0x365d92[0x0],'rows':_0x365d92[0x1],'raw':_0x365d92[0x2]};},_0x2d3e21=_0x22d503=>{const _0x2dd21a=_0x31b29e;if(_0x22d503)_0x100f45(_0x2dd21a(0x7e7),[_0x22d503]);};function _0x3266f9(_0x47f896,_0x256c21,_0x28fb7c){const _0x437c4e=_0x31b29e;let _0x3b5108=0x0,_0x2fd567=[],_0x1394a6=0x0,_0x58f1f8=_0x47f896,_0x2fbcfd=_0x3dcc0c,_0x5798ec=_0x196bf8-_0x47f896<=0x0;if(_0x28fb7c)({buf:_0x2fd567,pos:_0x1394a6,consumed:_0x58f1f8,size:_0x2fbcfd,exhausted:_0x5798ec}=_0x28fb7c);const _0x46e3be=_0x135bd1=>{const _0x44232b=_0x52a3;_0x3b5108=_0x135bd1['pin'],_0x2fd567=_0x135bd1[_0x44232b(0x659)],_0x1394a6=0x0,_0x58f1f8+=_0x135bd1['raw'],_0x2fbcfd=_0x30301d(_0x2fbcfd,_0xfcc576);if(!_0x3b5108)_0x5798ec=!![];};if(_0x256c21)_0x46e3be(_0x256c21);const _0x147028=()=>{const _0x1b58e9=_0x3b5108;_0x3b5108=0x0,_0x2d3e21(_0x1b58e9);},_0x1b69d9={'next'(){const _0x4dee1c=_0x52a3;while(_0x1394a6>=_0x2fd567[_0x4dee1c(0x68a)]){if(_0x5798ec||_0x196bf8-_0x58f1f8<=0x0)return _0x5798ec=!![],_0x147028(),_0x25a670;try{_0x46e3be(_0x17a0a6(_0x3b5108,_0x58f1f8,_0x2fbcfd));}catch(_0x5344c1){_0x3b5108=0x0,_0x5798ec=!![],_0x2fd567=[];throw _0x5344c1;}}return{'value':_0x2fd567[_0x1394a6++],'done':![]};},'return'(){return _0x147028(),_0x25a670;},'throw'(){return _0x147028(),_0x25a670;},'resumed'(){return _0x3266f9(0x0,null,{'buf':_0x2fd567,'pos':_0x1394a6,'consumed':_0x58f1f8,'size':_0x2fbcfd,'exhausted':_0x5798ec});},[Symbol[_0x437c4e(0x344)]](){return this;}};return _0x1b69d9;}function _0x34c425(){if(_0x196bf8<=0x0)return null;const _0x10bd97=_0x17a0a6(0x0,0x0,_0x3dcc0c);return queueMicrotask(()=>{const _0x3ac8ec=_0x52a3;!_0x10bd97[_0x3ac8ec(0x7af)]&&(_0x10bd97[_0x3ac8ec(0x5a5)]=!![],_0x2d3e21(_0x10bd97[_0x3ac8ec(0x2a5)]));}),_0x10bd97;}return{'source':_0x3266f9,'prefetch':_0x34c425};}function _0x50b0a7(_0x5acb9f){const _0x1cbbf8=_0x4d870d;if(!_0x5acb9f||_0x5acb9f[_0x1cbbf8(0x7af)]||_0x5acb9f[_0x1cbbf8(0x5a5)])return null;return _0x5acb9f[_0x1cbbf8(0x7af)]=!![],_0x5acb9f;}return iterable={'fromArray':_0x41eebc,'chunkedRange':_0x19f48c,'pinnedChunks':_0x5168af,'claimPrefetch':_0x50b0a7,'lmdbLimit':_0x3368da,'lmdbOffset':_0xefec48,'CHUNK':_0x2e09ca,'ROW_CHUNK':_0x53b41d,'FIRST':_0x3dcc0c},iterable;}var rawdb,hasRequiredRawdb;function requireRawdb(){const _0x15560f=_0x5c70f8;if(hasRequiredRawdb)return rawdb;hasRequiredRawdb=0x1;const {fromArray:_0x36a56c}=requireIterable();class _0x43aa10{constructor(_0x231839,_0x277439='',_0x45a802={},_0x5571dc=null){const _0x6f4fb2=_0x52a3;this['_env']=_0x231839,this[_0x6f4fb2(0x54b)]=_0x277439,this[_0x6f4fb2(0x2a8)]=!!(_0x45a802&&_0x45a802[_0x6f4fb2(0x2a8)]),this['useVersions']=!!(_0x45a802&&_0x45a802['useVersions']),this['_root']=_0x5571dc||this,this['_buf']=null;}get['_dupArg'](){const _0x13d3bd=_0x52a3;return this[_0x13d3bd(0x2a8)]?!![]:this[_0x13d3bd(0x877)]?'v':![];}['_n'](_0x62f795,_0x48a401){const _0x381fba=_0x52a3;return this[_0x381fba(0x4dd)][_0x381fba(0x61e)]['_call'](_0x381fba(0x415),this['_env'][_0x381fba(0x54b)],_0x62f795,[this[_0x381fba(0x54b)],this[_0x381fba(0x6f9)],..._0x48a401],!![]);}[_0x15560f(0x5d3)](_0x33bc43,_0x5457cd){const _0x2c701b=_0x15560f;return this[_0x2c701b(0x4dd)]['okdb']['_call']('raw',this[_0x2c701b(0x4dd)][_0x2c701b(0x54b)],_0x33bc43,[this[_0x2c701b(0x54b)],this['_dupArg'],..._0x5457cd],![]);}[_0x15560f(0x77c)](_0x1bebb2){const _0x1dc94c=_0x15560f,_0x99f25f=this['_env'][_0x1dc94c(0x386)];if(_0x99f25f)_0x99f25f[_0x1dc94c(0x28d)]({'sub':this['name'],'dup':this[_0x1dc94c(0x6f9)],..._0x1bebb2});else this['_env'][_0x1dc94c(0x61e)][_0x1dc94c(0x210)](_0x1dc94c(0x415),this[_0x1dc94c(0x4dd)][_0x1dc94c(0x54b)],_0x1dc94c(0x50f),[[{'sub':this['name'],'dup':this['_dupArg'],..._0x1bebb2}]],!![]);}[_0x15560f(0x309)](_0x323c57){const _0x4a0a01=_0x15560f;return this['_read'](_0x4a0a01(0x309),[_0x323c57]);}[_0x15560f(0x3a0)](_0x142e44){const _0x270d6c=_0x15560f;if(this[_0x270d6c(0x877)])return this[_0x270d6c(0x5d3)]('getEntry',[_0x142e44]);const _0x1f8640=this[_0x270d6c(0x309)](_0x142e44);return _0x1f8640===undefined?undefined:{'value':_0x1f8640};}[_0x15560f(0x3a6)](_0x1310d3){const _0x577e7b=_0x15560f;return this['_read'](_0x577e7b(0x84e),[_0x1310d3]);}[_0x15560f(0x292)](_0x400821){const _0x486c56=_0x15560f;return this[_0x486c56(0x309)](_0x400821);}[_0x15560f(0x3ee)](_0x56b126={}){const _0x4fbf79=_0x15560f,_0x11841e=this[_0x4fbf79(0x5d3)](_0x4fbf79(0x3ee),[_0x56b126]),_0x266732=_0x56b126[_0x4fbf79(0x5d0)]===![],_0x2ac13b=_0x56b126[_0x4fbf79(0x4ac)]===![];return _0x36a56c(_0x11841e[_0x4fbf79(0x35e)](([_0x23557e,_0x19380b,_0x4a5d88])=>{if(_0x266732)return _0x23557e;if(_0x2ac13b)return _0x19380b;return _0x4a5d88===undefined?{'key':_0x23557e,'value':_0x19380b}:{'key':_0x23557e,'value':_0x19380b,'version':_0x4a5d88};}));}[_0x15560f(0x300)](_0x322981={}){const _0x170e2c=_0x15560f;return _0x36a56c(this['_read']('getRange',[_0x322981])[_0x170e2c(0x35e)](([_0x439daf])=>_0x439daf));}[_0x15560f(0x88a)](_0x3d8138,_0x2a92fa={}){const _0x49ace2=_0x15560f,_0x5d732b=this[_0x49ace2(0x5d3)]('getRange',[{..._0x2a92fa,'start':_0x3d8138,'end':_0x3d8138,'inclusiveEnd':!![]}]);return _0x36a56c(_0x5d732b[_0x49ace2(0x35e)](([,_0x35cc88])=>_0x35cc88));}[_0x15560f(0x8ce)](_0x34409b={}){const _0x5c8d74=_0x15560f;return this[_0x5c8d74(0x5d3)](_0x5c8d74(0x400),[_0x34409b]);}[_0x15560f(0x65c)](){return{'entryCount':this['getCount']()};}[_0x15560f(0x253)](_0xd41358,_0x21e428,_0x580aed){const _0x811f27=_0x15560f;return this['_write']({'op':_0x811f27(0x253),'key':_0xd41358,'value':_0x21e428,'version':_0x580aed}),Promise[_0x811f27(0x22e)](!![]);}[_0x15560f(0x512)](_0x34a9f2,_0x231280,_0x491f94){return this['_write']({'op':'put','key':_0x34a9f2,'value':_0x231280,'version':_0x491f94}),!![];}[_0x15560f(0x504)](_0x3a1c0a,_0x5ee9a4){const _0x518f5b=_0x15560f;return this[_0x518f5b(0x77c)]({'op':'remove','key':_0x3a1c0a,'value':_0x5ee9a4}),Promise['resolve'](!![]);}['removeSync'](_0x191000,_0xe682){const _0x1e5a03=_0x15560f;return this['_write']({'op':_0x1e5a03(0x504),'key':_0x191000,'value':_0xe682}),!![];}[_0x15560f(0x2d8)](){const _0x2be3bc=_0x15560f;this[_0x2be3bc(0x77c)]({'op':_0x2be3bc(0x734)});}[_0x15560f(0x63e)](){const _0x465a7b=_0x15560f;return this[_0x465a7b(0x77c)]({'op':'clear'}),Promise[_0x465a7b(0x22e)]();}[_0x15560f(0x4fa)](){this['clearSync']();}['openDB'](_0x5058cf,_0x1042f9={}){const _0x4b1087=_0x15560f,_0x4d65a3=typeof _0x5058cf===_0x4b1087(0x559)?_0x5058cf:_0x1042f9,_0x433f57=typeof _0x5058cf===_0x4b1087(0x559)?_0x5058cf[_0x4b1087(0x54b)]:_0x5058cf,_0x451561=new _0x43aa10(this[_0x4b1087(0x4dd)],_0x433f57,_0x4d65a3);return _0x451561['_write']({'op':'ensure'}),_0x451561;}[_0x15560f(0x5df)](){}[_0x15560f(0x2f2)](_0x5cee24){const _0x5affcd=_0x15560f;return this[_0x5affcd(0x430)](_0x5cee24);}async['transaction'](_0x377aa9){return this['_tx'](_0x377aa9);}[_0x15560f(0x3b6)](_0x50ee01){const _0x2b1f60=_0x15560f;return this[_0x2b1f60(0x430)](_0x50ee01);}[_0x15560f(0x430)](_0x336231){const _0x22803e=_0x15560f,_0x44feae=this['_env'];if(_0x44feae[_0x22803e(0x386)])return _0x336231();_0x44feae[_0x22803e(0x386)]=[];let _0x869b11;try{_0x869b11=_0x336231();}catch(_0x3d8b6e){_0x44feae[_0x22803e(0x386)]=null;throw _0x3d8b6e;}const _0x499bd2=_0x44feae[_0x22803e(0x386)];_0x44feae[_0x22803e(0x386)]=null;if(_0x499bd2[_0x22803e(0x68a)])_0x44feae['okdb'][_0x22803e(0x210)]('raw',_0x44feae[_0x22803e(0x54b)],_0x22803e(0x50f),[_0x499bd2],!![]);return _0x869b11;}[_0x15560f(0x62f)](){return{'done'(){}};}['resetReadTxn'](){}}return rawdb={'RawDb':_0x43aa10},rawdb;}var views,hasRequiredViews;function requireViews(){const _0x323c7d=_0x5c70f8;if(hasRequiredViews)return views;hasRequiredViews=0x1;const {RawDb:_0x9dceea}=requireRawdb();class _0x29aca4{constructor(_0x53cc62){const _0x47ed6a=_0x52a3;this[_0x47ed6a(0x609)]=_0x53cc62,this['_n']=(_0x3ac10f,_0x10b0d2,_0x454d5f=!![])=>_0x53cc62[_0x47ed6a(0x61e)]['_call'](_0x47ed6a(0x876),_0x53cc62['name'],_0x3ac10f,_0x10b0d2,_0x454d5f);}get[_0x323c7d(0x62a)](){const _0x52bf7f=_0x323c7d,_0x6556bd=this,_0x4f35bc=this[_0x52bf7f(0x609)],_0x470fbb=_0x2dcd55=>_0x2dcd55?new _0x9dceea(_0x4f35bc,_0x2dcd55[_0x52bf7f(0x54b)],{'dupSort':_0x2dcd55[_0x52bf7f(0x668)]}):undefined,_0x187cdb=_0x4dee6e=>{const _0x53e339=_0x52bf7f,_0x266589=_0x6556bd['_n'](_0x53e339(0x802),[_0x4dee6e],![]);if(!_0x266589)return undefined;const _0x237b27=_0x266589[_0x53e339(0x646)],_0x1cc9e7=new Map(Object[_0x53e339(0x719)](_0x237b27['refs'])),_0x11658b=new Map(Object[_0x53e339(0x719)](_0x266589[_0x53e339(0x6a4)])[_0x53e339(0x35e)](([_0x24a33e,_0x1888f9])=>[_0x24a33e,_0x470fbb(_0x1888f9)]));return{'name':_0x4dee6e,'compiled':{'T':_0x237b27['T'],'reducers':_0x237b27[_0x53e339(0x843)],'refs':_0x1cc9e7,'granId':_0x237b27[_0x53e339(0x2b3)],'type':_0x237b27['type'],'_nidFor':_0x2f7134=>_0x6556bd['_n'](_0x53e339(0x5c2),[_0x4dee6e,_0x2f7134],![])},'viewDb':_0x470fbb(_0x266589[_0x53e339(0x85f)][_0x53e339(0x1bc)]),'metaDb':_0x470fbb(_0x266589['dbs'][_0x53e339(0x64e)]),'itemsDb':_0x470fbb(_0x266589['dbs'][_0x53e339(0x682)]),'bucketsDb':_0x470fbb(_0x266589[_0x53e339(0x85f)]['bucketsDb']),'sortedDb':_0x470fbb(_0x266589['dbs']['sortedDb']),'groupsDb':_0x470fbb(_0x266589[_0x53e339(0x85f)][_0x53e339(0x265)]),'prevDb':_0x470fbb(_0x266589['dbs'][_0x53e339(0x3db)]),'refItemsDbs':_0x11658b,'refTrackingDbs':new Map(Object['entries'](_0x266589[_0x53e339(0x89a)]||{})['map'](([_0xdef704,_0x5383ed])=>[_0xdef704,_0x470fbb(_0x5383ed)])),'stopFn':_0x266589['hasStopFn']?async()=>_0x6556bd['_n'](_0x53e339(0x7e0),[_0x4dee6e]):null,'bootstrapWorker':null};};return{'get':_0x5f3b30=>_0x187cdb(_0x5f3b30),'has':_0x569aed=>_0x6556bd['_n'](_0x52bf7f(0x4dc),[],![])[_0x52bf7f(0x495)](_0x569aed),'keys':()=>_0x6556bd['_n'](_0x52bf7f(0x4dc),[],![])[Symbol['iterator']](),get 'size'(){const _0x42247e=_0x52bf7f;return _0x6556bd['_n'](_0x42247e(0x4dc),[],![])[_0x42247e(0x68a)];},[Symbol[_0x52bf7f(0x344)]]:()=>_0x6556bd['_n'](_0x52bf7f(0x4dc),[],![])['map'](_0x53a6cb=>[_0x53a6cb,_0x187cdb(_0x53a6cb)])[Symbol['iterator']]()};}get['_customReducers'](){const _0x42d5ce=_0x323c7d,_0x52578a=this;return{'has':_0x44e22c=>_0x52578a['_n']('customReducerNames',[],![])[_0x42d5ce(0x495)](_0x44e22c),get 'size'(){const _0x24f30f=_0x42d5ce;return _0x52578a['_n'](_0x24f30f(0x81a),[],![])['length'];},'keys':()=>_0x52578a['_n']('customReducerNames',[],![])[Symbol[_0x42d5ce(0x344)]]()};}async['bootSyncedViewsInline'](){const _0x4205af=_0x323c7d;return this['_n'](_0x4205af(0x395),[]);}async[_0x323c7d(0x4b3)](_0x3e5d88={}){const _0x170ef4=_0x323c7d;return this['_n'](_0x170ef4(0x4b3),[_0x3e5d88]);}async[_0x323c7d(0x67b)](_0x50ff37,_0x5781da){const _0x69cc1f=_0x323c7d;return this['_n'](_0x69cc1f(0x67b),[_0x50ff37,_0x5781da]),{'name':_0x50ff37};}[_0x323c7d(0x309)](_0x28be02,_0x53c716={}){const _0x4d4514=_0x323c7d,_0xca36a5=this['_n'](_0x4d4514(0x309),[_0x28be02,{'preview':_0x53c716?.[_0x4d4514(0x295)]??{}}],![]);if(_0xca36a5==null)return null;const _0x433824=this['_n'](_0x4d4514(0x608),[_0x28be02],![]);if(!_0x433824)return _0xca36a5;const _0x2b3b7a=_0x75564f=>(_0x30324f={})=>this['_n'](_0x4d4514(0x3fb),[_0x28be02,_0x75564f,_0x30324f],![]);if(_0x433824[_0x4d4514(0x53d)]){_0xca36a5[_0x4d4514(0x3fb)]=_0x2b3b7a({'kind':_0x4d4514(0x53d)});for(const _0x15264f of _0x433824[_0x4d4514(0x843)]){if(!_0x15264f[_0x4d4514(0x3fb)])continue;if(_0x15264f[_0x4d4514(0x1d2)]){const _0x1ef2ee=_0xca36a5[_0x15264f[_0x4d4514(0x54b)]];if(_0x1ef2ee?.[_0x4d4514(0x295)]&&Array['isArray'](_0x1ef2ee[_0x4d4514(0x295)])){for(const _0x202cd4 of _0x1ef2ee['preview'])_0x202cd4['items']=_0x2b3b7a({'kind':_0x4d4514(0x279),'reducer':_0x15264f[_0x4d4514(0x54b)],'key':_0x202cd4[_0x4d4514(0x82f)]});}}else _0xca36a5[_0x15264f[_0x4d4514(0x54b)]]&&(_0xca36a5[_0x15264f[_0x4d4514(0x54b)]][_0x4d4514(0x3fb)]=_0x2b3b7a({'kind':'reducer','reducer':_0x15264f[_0x4d4514(0x54b)]}));}}for(const _0x33eec2 of _0x433824[_0x4d4514(0x498)]){if(!_0x33eec2[_0x4d4514(0x53d)])continue;const _0x1f0f67=_0xca36a5[_0x33eec2[_0x4d4514(0x54b)]];if(!_0x1f0f67||typeof _0x1f0f67!==_0x4d4514(0x559))continue;_0x1f0f67[_0x4d4514(0x3fb)]=_0x2b3b7a({'kind':_0x4d4514(0x53d),'ref':_0x33eec2['name']});for(const _0x170d41 of _0x33eec2[_0x4d4514(0x843)]){if(!_0x170d41['items'])continue;if(_0x170d41['grouped']){const _0xba725=_0x1f0f67[_0x170d41['name']];if(_0xba725?.[_0x4d4514(0x295)]&&Array['isArray'](_0xba725[_0x4d4514(0x295)])){for(const _0x668050 of _0xba725[_0x4d4514(0x295)])_0x668050['items']=_0x2b3b7a({'kind':_0x4d4514(0x279),'ref':_0x33eec2['name'],'reducer':_0x170d41[_0x4d4514(0x54b)],'key':_0x668050['key']});}}else _0x1f0f67[_0x170d41[_0x4d4514(0x54b)]]&&(_0x1f0f67[_0x170d41[_0x4d4514(0x54b)]][_0x4d4514(0x3fb)]=_0x2b3b7a({'kind':_0x4d4514(0x762),'ref':_0x33eec2[_0x4d4514(0x54b)],'reducer':_0x170d41[_0x4d4514(0x54b)]}));}}return _0xca36a5;}[_0x323c7d(0x5e5)](_0x2719b8){const _0x3f0032=_0x323c7d;return this['_n'](_0x3f0032(0x5e5),[_0x2719b8],![]);}[_0x323c7d(0x47a)](_0x24e0db,_0x4e37d9={}){const _0xd4767d=_0x323c7d;return this['_n'](_0xd4767d(0x47a),[_0x24e0db,_0x4e37d9],![]);}[_0x323c7d(0x41e)](_0x22baf4,_0x872553={}){const _0x7a254c=_0x323c7d;return this['_n'](_0x7a254c(0x41e),[_0x22baf4,_0x872553],![]);}[_0x323c7d(0x34f)](_0x2ced24,_0x63f2e1={}){const _0x2d595a=_0x323c7d;return this['_n'](_0x2d595a(0x34f),[_0x2ced24,_0x63f2e1],![]);}async[_0x323c7d(0x47e)](){const _0x5a61c2=_0x323c7d;return this['_n'](_0x5a61c2(0x47e),[],![]);}async[_0x323c7d(0x437)](_0x2b0b34){const _0x3e8e56=_0x323c7d;return this['_n'](_0x3e8e56(0x437),[_0x2b0b34],![])??null;}async[_0x323c7d(0x504)](_0x4bf9b0,_0x4d3811={}){const _0x136b6e=_0x323c7d;return this['_n'](_0x136b6e(0x504),[_0x4bf9b0,_0x4d3811]);}async[_0x323c7d(0x1f1)](_0x52e3b4){const _0x2e89d3=_0x323c7d;return this['_n'](_0x2e89d3(0x1f1),[_0x52e3b4]);}async[_0x323c7d(0x45c)](_0x400cf2){const _0x4f1f76=_0x323c7d;return this['_n'](_0x4f1f76(0x45c),[_0x400cf2]);}async[_0x323c7d(0x8da)](_0x2a717b){const _0x381a4d=_0x323c7d;return this['_n'](_0x381a4d(0x8da),[_0x2a717b]);}async[_0x323c7d(0x494)](_0x4c59ac){const _0xaebab=_0x323c7d;return this['_n'](_0xaebab(0x494),[_0x4c59ac]);}[_0x323c7d(0x676)](_0x491978,_0x2ee85b={}){const _0x47bea6=_0x323c7d;return this['_n']('registerReducer',[_0x491978,{'apply':_0x2ee85b&&_0x2ee85b[_0x47bea6(0x32a)]}]);}}return views={'OKDBViews':_0x29aca4},views;}var queue,hasRequiredQueue;function requireQueue(){const _0x19afca=_0x5c70f8;if(hasRequiredQueue)return queue;hasRequiredQueue=0x1;const {OKDBError:_0x3b10df}=requireErrors(),_0x3aba9c=requireBridge();class _0x122935{constructor(_0x556a78){const _0x37ed23=_0x52a3;this[_0x37ed23(0x609)]=_0x556a78,this[_0x37ed23(0x61e)]=_0x556a78[_0x37ed23(0x61e)],this[_0x37ed23(0x58d)]=_0x556a78[_0x37ed23(0x61e)][_0x37ed23(0x58d)][_0x37ed23(0x651)]({'feature':'queue'}),this[_0x37ed23(0x1d5)]=new Set();}['_n'](_0x52e8d4,_0x195e36,_0x1a9be7=!![]){const _0x7cb05e=_0x52a3;return this[_0x7cb05e(0x61e)][_0x7cb05e(0x210)](_0x7cb05e(0x622),this[_0x7cb05e(0x609)][_0x7cb05e(0x54b)],_0x52e8d4,_0x195e36,_0x1a9be7);}['_w'](_0x571c2e,_0x30b30a){const _0x85e28f=_0x52a3;return this[_0x85e28f(0x61e)][_0x85e28f(0x7aa)](this['_n'](_0x571c2e,_0x30b30a));}async[_0x19afca(0x692)](){const _0x1e0c27=_0x19afca;return this['_n'](_0x1e0c27(0x2ea),[]);}async['list'](_0x107575={}){const _0x507992=_0x19afca;return this['_n'](_0x507992(0x47e),[_0x107575],![]);}get['_logsDb'](){const _0x12b65e=_0x19afca,{RawDb:_0x2c211d}=requireRawdb();return this['__logsDb']||(this[_0x12b65e(0x257)]=new _0x2c211d(this[_0x12b65e(0x609)],_0x12b65e(0x287)));}async['_sweepOrphanLogs'](){const _0x1747ea=_0x19afca;return this['_w'](_0x1747ea(0x5db),[]);}async[_0x19afca(0x26b)](_0x9aca0f,_0x15dfbb,_0x52453e={}){const _0x379d58=_0x19afca,{txn:_0x215127,..._0x4b1bc2}=_0x52453e||{};if(_0x215127)return this[_0x379d58(0x88c)](_0x215127,_0x9aca0f,_0x15dfbb,_0x4b1bc2);const _0x26d0f6=this[_0x379d58(0x61e)][_0x379d58(0x2d7)];if(_0x26d0f6&&_0x26d0f6[_0x379d58(0x622)]['length'])_0x26d0f6[_0x379d58(0x8e6)]();const _0x233515=this['_n']('enqueueClaim',[_0x9aca0f,_0x15dfbb,_0x4b1bc2],![]);return this[_0x379d58(0x61e)][_0x379d58(0x7aa)](_0x233515['id'])[_0x379d58(0x801)](_0x2f427a=>{const _0x1c95cb=_0x379d58;if(_0x233515['claimed'])this['_startClaimedSoon'](_0x9aca0f);else try{this['okdb'][_0x1c95cb(0x5fd)][_0x1c95cb(0x2c2)]();}catch{}return _0x2f427a;});}['_startClaimedSoon'](_0x592ff8){queueMicrotask(()=>{const _0x39d61a=_0x52a3;try{this['_n'](_0x39d61a(0x790),[_0x592ff8]);}catch{}});}[_0x19afca(0x88c)](_0x369c25,_0x2aab3b,_0x205e06,_0x296d69){const _0x534fcd=_0x19afca,_0x5c34eb=_0x369c25['raw']??_0x369c25;if(_0x5c34eb[_0x534fcd(0x417)])throw new _0x3b10df('Transaction\x20already\x20closed',_0x534fcd(0x679));if(_0x5c34eb['okdb']&&_0x5c34eb['okdb']!==this[_0x534fcd(0x609)]&&_0x5c34eb[_0x534fcd(0x61e)]['name']!==this['env'][_0x534fcd(0x54b)])throw new _0x3b10df('enqueue\x20txn\x20belongs\x20to\x20a\x20different\x20environment',_0x534fcd(0x630),{'txnEnv':_0x5c34eb[_0x534fcd(0x61e)][_0x534fcd(0x54b)],'queueEnv':this['env'][_0x534fcd(0x54b)]});const _0x5f5876=this['_n'](_0x534fcd(0x38e),[_0x2aab3b,_0x205e06,_0x296d69],![]);if(_0x5f5876[_0x534fcd(0x26a)])return _0x5f5876['id'];if(_0x5f5876[_0x534fcd(0x49e)])_0x369c25['update'](_0x534fcd(0x6ab),_0x5f5876[_0x534fcd(0x49e)][_0x534fcd(0x82f)],_0x5f5876[_0x534fcd(0x49e)][_0x534fcd(0x2ef)],{'ifVersion':_0x5f5876[_0x534fcd(0x49e)]['version']});if(_0x205e06!==undefined)_0x369c25[_0x534fcd(0x253)](_0x534fcd(0x610),_0x5f5876['id'],_0x205e06);_0x369c25[_0x534fcd(0x253)]('~queue_jobs',_0x5f5876['id'],_0x5f5876[_0x534fcd(0x6c7)]);if(typeof _0x5c34eb['onDo']===_0x534fcd(0x640))_0x5c34eb[_0x534fcd(0x6bc)](()=>{const _0x405b93=_0x534fcd;if(this['_n'](_0x405b93(0x842),[_0x5f5876['id'],_0x2aab3b,_0x5f5876['when'],_0x5f5876[_0x405b93(0x3d4)]]))this['_startClaimedSoon'](_0x2aab3b);});return _0x5f5876['id'];}async[_0x19afca(0x1fe)](_0xdd9a5f,_0x47a23a={}){const _0x19bb4c=_0x19afca;if(typeof _0xdd9a5f!==_0x19bb4c(0x2b1)||!_0xdd9a5f)throw new _0x3b10df('claim\x20requires\x20non-empty\x20type',_0x19bb4c(0x5cb));return this['_w'](_0x19bb4c(0x1fe),[_0xdd9a5f,_0x47a23a]);}async[_0x19afca(0x824)](_0x1b1e2c,_0x1d3ba5,_0x4bd00a=null){const _0x46415e=_0x19afca;return this['_w'](_0x46415e(0x824),[_0x1b1e2c,_0x1d3ba5,_0x4bd00a]);}async['heartbeat'](_0x1dfc5f,_0x5b5feb,_0x22ff41=null){const _0x5602df=_0x19afca;return this[_0x5602df(0x824)](_0x1dfc5f,_0x5b5feb,_0x22ff41);}async[_0x19afca(0x429)](_0x232d5f,_0x383512,_0x485f81){const _0x349861=_0x19afca;return this['_w'](_0x349861(0x429),[_0x232d5f,_0x383512,_0x485f81]);}async[_0x19afca(0x248)](_0x49a95a,_0x537e47,_0xdb18df){const _0x144037=_0x19afca;return this['_w'](_0x144037(0x248),[_0x49a95a,_0x537e47,_0xdb18df]);}async[_0x19afca(0x709)](_0x391198,_0x363357,_0x390c4c){const _0x2981f3=_0x19afca;return this[_0x2981f3(0x248)](_0x391198,_0x363357,_0x390c4c);}async[_0x19afca(0x1c2)](_0x1a64ea,_0x2ebb78,_0x471851,_0x2266d0){const _0x4d07de=_0x19afca,_0x333274=_0x471851 instanceof Error?{'message':_0x471851[_0x4d07de(0x211)],'stack':_0x471851['stack']}:_0x471851;return this['_w'](_0x4d07de(0x1c2),[_0x1a64ea,_0x2ebb78,_0x333274,_0x2266d0]);}async[_0x19afca(0x7a7)](_0x572d32,_0x2dff7c,_0x5a3c9b,_0x33f07e){return this['markJobFail'](_0x572d32,_0x2dff7c,_0x5a3c9b,_0x33f07e);}async['releaseClaim'](_0x371156,_0x281a50,_0x4bf53f={}){const _0x489284=_0x19afca;return this['_w'](_0x489284(0x69c),[_0x371156,_0x281a50,_0x4bf53f]);}async[_0x19afca(0x37b)](_0x3abfc8){const _0x64d6fc=_0x19afca;return this['_n'](_0x64d6fc(0x37b),[_0x3abfc8],![]);}async[_0x19afca(0x350)](_0x3439b0,_0x5c5862={},_0x377063={}){const _0x40fbcb=_0x19afca,_0x1bcfde=_0x377063&&_0x377063[_0x40fbcb(0x4b8)];if(!_0x1bcfde)return this['_w'](_0x40fbcb(0x350),[_0x3439b0,_0x5c5862]);const {next:_0x3ce289,version:_0x4dc8c5}=this['_n'](_0x40fbcb(0x4f6),[_0x3439b0,_0x5c5862],![]);_0x1bcfde[_0x40fbcb(0x5b4)]('~queue_jobs',_0x3439b0,_0x3ce289,{'ifVersion':_0x4dc8c5});let _0x4f61e0;if(_0x40fbcb(0x690)in _0x5c5862){if(_0x5c5862[_0x40fbcb(0x690)]===undefined){if(this[_0x40fbcb(0x609)]['getEntry'](_0x40fbcb(0x610),_0x3439b0))_0x1bcfde['remove'](_0x40fbcb(0x610),_0x3439b0);}else _0x1bcfde['put'](_0x40fbcb(0x610),_0x3439b0,_0x5c5862[_0x40fbcb(0x690)]);_0x4f61e0=_0x5c5862['payload'];}else _0x4f61e0=this['env'][_0x40fbcb(0x309)](_0x40fbcb(0x610),_0x3439b0);return{..._0x3ce289,'payload':_0x4f61e0};}async[_0x19afca(0x4ef)](_0x446265,_0x514f04={}){const _0x4b5d3e=_0x19afca,_0xb45fd0=_0x514f04&&_0x514f04['txn'];if(!_0xb45fd0)return this['_w'](_0x4b5d3e(0x4ef),[_0x446265]);if(!_0x446265)throw new _0x3b10df('job\x20id\x20required','BAD_PARAM');if(!this[_0x4b5d3e(0x609)][_0x4b5d3e(0x3a0)](_0x4b5d3e(0x6ab),_0x446265))return![];_0xb45fd0[_0x4b5d3e(0x504)](_0x4b5d3e(0x6ab),_0x446265);if(this['env']['getEntry']('~queue_payloads',_0x446265))_0xb45fd0['remove']('~queue_payloads',_0x446265);if(typeof _0xb45fd0[_0x4b5d3e(0x6bc)]===_0x4b5d3e(0x640))_0xb45fd0['onDo'](()=>this['_n']('removeJobLogsAfterCommit',[_0x446265]));return!![];}async[_0x19afca(0x6be)](_0x4b15ae){return this['_w']('cancelJob',[_0x4b15ae]);}async[_0x19afca(0x2df)](_0x21364a){const _0x34d39f=_0x19afca;return this['_w'](_0x34d39f(0x2df),[_0x21364a]);}async[_0x19afca(0x503)](_0x6e4162,_0x138696,_0x8d7c42){const _0x42672e=_0x19afca,_0xf7b254=this['_n'](_0x42672e(0x38c),[_0x138696??null,_0x8d7c42??0x0,_0x6e4162]),_0x4082fa=0x1f4;for(let _0x57d2d5=0x0;_0x57d2d5<_0xf7b254[_0x42672e(0x68a)];_0x57d2d5+=_0x4082fa){this['_n']('bulkRemoveChunk',[_0xf7b254['slice'](_0x57d2d5,_0x57d2d5+_0x4082fa),_0x57d2d5,_0xf7b254[_0x42672e(0x68a)],_0x138696??null]);if(_0x57d2d5+_0x4082fa<_0xf7b254[_0x42672e(0x68a)])await new Promise(_0xc04f9a=>setImmediate(_0xc04f9a));}return this['_n']('emitClearDone',[_0xf7b254[_0x42672e(0x68a)],_0x138696??null]),await new Promise(_0x75069d=>setImmediate(_0x75069d)),_0xf7b254['length'];}async[_0x19afca(0x729)](_0x1ed70c,_0x5216cf){return this['_clearChunked']('done',_0x1ed70c,_0x5216cf);}async[_0x19afca(0x24b)](_0x136200,_0x2b3233){const _0x1997ef=_0x19afca;return this[_0x1997ef(0x503)]('failed',_0x136200,_0x2b3233);}async[_0x19afca(0x633)](_0x2ce04f,_0x155997){const _0x2b38ca=_0x19afca;return this['_w'](_0x2b38ca(0x633),[_0x2ce04f??null,_0x155997??0x0]);}async[_0x19afca(0x4cf)](_0x544e10,_0x250494){const _0x510068=_0x19afca;return this['_w'](_0x510068(0x4cf),[_0x544e10??null,_0x250494??0x0]);}async[_0x19afca(0x558)](_0x33a954,_0x526c17,_0x3cf30e){const _0x3c50a6=_0x19afca;return this['_w'](_0x3c50a6(0x558),[_0x33a954,_0x526c17,_0x3cf30e]);}async[_0x19afca(0x44b)](_0x48aef6,_0x3c59a1={}){const _0x415448=_0x19afca;return this['_n'](_0x415448(0x44b),[_0x48aef6,_0x3c59a1],![]);}async[_0x19afca(0x7df)](_0x2be363,_0x316763={}){const _0x16f83c=_0x19afca,{txn:_0xfe674c,..._0x4e17c9}=_0x316763||{};if(!_0xfe674c)return this['_w'](_0x16f83c(0x7df),[_0x2be363,_0x4e17c9]);const _0x5cbf57=(_0x4342be,_0x4b146d,_0x473229,_0x1e7d10)=>{const _0x236213=_0x16f83c,_0x22ff37=Math[_0x236213(0x2fe)](Number(_0x4342be));return Number[_0x236213(0x85e)](_0x22ff37)?Math['min'](_0x1e7d10,Math[_0x236213(0x4a0)](_0x473229,_0x22ff37)):_0x4b146d;},_0x1dc8c8=typeof _0x2be363===_0x16f83c(0x2b1)?_0x2be363[_0x16f83c(0x7a8)]():'';if(!_0x1dc8c8)throw new Error(_0x16f83c(0x56c));const _0x539512=_0x5cbf57(_0x4e17c9[_0x16f83c(0x52a)],0x0,0x0,0x3b9aca00);_0xfe674c[_0x16f83c(0x253)](_0x16f83c(0x5da),_0x1dc8c8,{'id':_0x1dc8c8,'tokens':_0x5cbf57(_0x4e17c9['tokens'],_0x539512,0x0,_0x539512),'capacity':_0x539512,'refill_amount':_0x5cbf57(_0x4e17c9[_0x16f83c(0x3fe)],0x0,0x0,0x3b9aca00),'refill_every':_0x5cbf57(_0x4e17c9[_0x16f83c(0x4bf)],0x0,0x0,0x16d*0x18*0x36ee80),'updated':Date[_0x16f83c(0x8cc)]()});}async[_0x19afca(0x71b)](_0x4a266a,_0x40f69a){const _0x3a0d48=_0x19afca;return this['_w'](_0x3a0d48(0x71b),[_0x4a266a,_0x40f69a]);}async[_0x19afca(0x5fe)](_0x443916){const _0x4d8fbd=_0x19afca;return this['_w'](_0x4d8fbd(0x5fe),[_0x443916]);}[_0x19afca(0x545)](_0x5a6989){const _0x581239=_0x19afca,_0x2f3850=this['_n'](_0x581239(0x545),[_0x5a6989],![]);return _0x2f3850===null&&typeof _0x5a6989===_0x581239(0x2b1)&&_0x5a6989[_0x581239(0x7a8)]()?undefined:_0x2f3850;}async[_0x19afca(0x898)](_0xa5162a,_0x1bf5c7){return this['_w']('tryClaimTokens',[_0xa5162a,_0x1bf5c7]);}async['addJobType'](_0x4795e5,_0x4df669={}){const _0x2c74dd=_0x19afca;return this['_w'](_0x2c74dd(0x4e8),[_0x4795e5,_0x4df669]);}async[_0x19afca(0x369)](_0x34246f){const _0x46967a=_0x19afca;return this['_n'](_0x46967a(0x369),[_0x34246f],![]);}async['listJobTypes'](){const _0x5a3b85=_0x19afca;return this['_n'](_0x5a3b85(0x45a),[],![]);}async[_0x19afca(0x2c5)](_0x4212e0){return this['_w']('removeJobType',[_0x4212e0]);}[_0x19afca(0x660)](_0x2ef5df){const _0x722c10=_0x19afca;return this['_n'](_0x722c10(0x660),[_0x2ef5df]);}[_0x19afca(0x86f)](_0x58fba0){return this['_n']('resumeJobType',[_0x58fba0]);}[_0x19afca(0x785)](_0x1ab677){const _0x39444f=_0x19afca;return this['_n'](_0x39444f(0x785),[_0x1ab677]);}async['setJobTypeSchema'](_0x525033,_0x1c4ddd,_0xbaa249=![]){return this['_w']('setJobTypeSchema',[_0x525033,_0x1c4ddd,_0xbaa249]);}async['removeJobTypeSchema'](_0x19d9cb){return this['_w']('removeJobTypeSchema',[_0x19d9cb]);}async[_0x19afca(0x277)](_0x5a23cb,_0x8c5155=0x5){const _0x44f6fe=_0x19afca;return this['_n'](_0x44f6fe(0x277),[_0x5a23cb,_0x8c5155],![]);}async['_reconcile'](_0x46c136){return this['_n']('reconcile',[_0x46c136]);}async[_0x19afca(0x560)](_0xe2a41d=0x7530){const _0x4099f6=_0x19afca;await Promise[_0x4099f6(0x30e)]([...this[_0x4099f6(0x1d5)]][_0x4099f6(0x35e)](_0x5b4199=>_0x5b4199[_0x4099f6(0x1f1)](_0xe2a41d)));const _0x441533=this['_n'](_0x4099f6(0x560),[0x0]);return this[_0x4099f6(0x1d5)][_0x4099f6(0x734)](),_0x441533;}async[_0x19afca(0x1dd)](){const _0x7b3aa0=_0x19afca,_0x4b94c8=this['_n'](_0x7b3aa0(0x1dd),[]);return this[_0x7b3aa0(0x1d5)][_0x7b3aa0(0x734)](),_0x4b94c8;}[_0x19afca(0x781)](_0x42d2ad,_0x307b2a,_0x1741b3){const _0x503607=_0x19afca;let _0x3a16db,_0x41488f;if(Array[_0x503607(0x439)](_0x42d2ad)){if(typeof _0x307b2a==='function')throw new _0x3b10df(_0x503607(0x1bd),'BAD_PARAM');_0x41488f=_0x307b2a??{};if(_0x41488f[_0x503607(0x6f2)]!=null&&typeof _0x41488f['admission']!=='function')throw new _0x3b10df(_0x503607(0x753),'BAD_PARAM');if(_0x42d2ad['length']===0x0)throw new _0x3b10df(_0x503607(0x5f1),'BAD_PARAM');_0x3a16db=_0x42d2ad[_0x503607(0x35e)](_0x555db7=>{const _0xf94544=_0x503607;if(!_0x555db7||typeof _0x555db7[_0xf94544(0x45d)]!==_0xf94544(0x2b1)||!_0x555db7[_0xf94544(0x45d)])throw new _0x3b10df(_0xf94544(0x1c6),_0xf94544(0x5cb));if(typeof _0x555db7[_0xf94544(0x3ea)]!=='function')throw new _0x3b10df(_0xf94544(0x1bf)+_0x555db7['type']+_0xf94544(0x74a),_0xf94544(0x5cb));return{..._0x555db7};});}else{_0x41488f=_0x1741b3??{};if(typeof _0x307b2a!==_0x503607(0x640))throw new _0x3b10df(_0x503607(0x1bf)+_0x42d2ad+'\x22\x20requires\x20a\x20`handler`\x20function',_0x503607(0x5cb));_0x3a16db=[{'type':_0x42d2ad,'handler':_0x307b2a,..._0x1741b3??{}}];}const _0x1b7480=this['okdb'];for(const _0x4a1db7 of _0x3a16db){const _0x48b314=_0x4a1db7[_0x503607(0x3ea)];_0x4a1db7['handler']=function(..._0x2cda73){const _0x28cfd5=_0x503607;return _0x1b7480[_0x28cfd5(0x4e0)]()[_0x28cfd5(0x801)](()=>_0x48b314['apply'](this,_0x2cda73));};}const _0x3909ec=this['_n'](_0x503607(0x781),[_0x3a16db,_0x41488f]),_0x3b14e2=this,_0x1c5dc4={'id':_0x3909ec['id'],'type':_0x3909ec[_0x503607(0x45d)],get 'running'(){const _0x40a788=_0x503607;return _0x3b14e2['_n']('workerState',[_0x3909ec['id']],![])[_0x40a788(0x4c2)];},'isRunning'(){const _0x497320=_0x503607;return _0x3b14e2['_n'](_0x497320(0x8a5),[_0x3909ec['id']],![])[_0x497320(0x4c2)];},async 'stop'(_0x5be162=0x7530){const _0x402814=_0x503607;_0x3b14e2['_n'](_0x402814(0x8b6),[_0x3909ec['id']]);const _0x2f3c63=Date[_0x402814(0x8cc)]()+_0x5be162;while(_0x3b14e2['_n'](_0x402814(0x8a5),[_0x3909ec['id']],![])[_0x402814(0x3e1)]>0x0&&Date['now']()<_0x2f3c63)await new Promise(_0x2a4ac7=>setTimeout(_0x2a4ac7,0x2));_0x3b14e2['_n'](_0x402814(0x2b0),[_0x3909ec['id']]),_0x3aba9c[_0x402814(0x2f7)](),_0x3b14e2[_0x402814(0x1d5)][_0x402814(0x2cb)](_0x1c5dc4);},async 'kill'(){const _0x12b021=_0x503607;_0x3b14e2['_n'](_0x12b021(0x59e),[_0x3909ec['id']]),_0x3b14e2['_workers'][_0x12b021(0x2cb)](_0x1c5dc4);}};return this[_0x503607(0x1d5)]['add'](_0x1c5dc4),_0x1c5dc4;}['worker'](_0x1b2da5){const _0x3c1630=_0x19afca;throw new _0x3b10df(_0x3c1630(0x822)+_0x1b2da5+_0x3c1630(0x644)+_0x1b2da5+_0x3c1630(0x384),'QUEUE_WORKER_REMOVED');}[_0x19afca(0x519)](_0x397326){const _0x5113d9=_0x19afca;return this[_0x5113d9(0x36a)](_0x397326);}}return queue={'OKDBQueue':_0x122935},queue;}var timemachine,hasRequiredTimemachine;function requireTimemachine(){const _0x4f3bc9=_0x5c70f8;if(hasRequiredTimemachine)return timemachine;hasRequiredTimemachine=0x1;const {fromArray:_0x30b292}=requireIterable();class _0x2aed11{constructor(_0x105c3e){const _0x42f844=_0x52a3;this[_0x42f844(0x609)]=_0x105c3e,this['okdb']=_0x105c3e[_0x42f844(0x61e)];const _0x16ac0d=(_0x2bdc6c,_0x8dc876)=>this['_n'](_0x2bdc6c,_0x8dc876,![]);this[_0x42f844(0x4d7)]={'getDiffs':(_0xc5c9b9,_0x5eb316,_0x29d7ca)=>_0x16ac0d('storeGetDiffs',[_0xc5c9b9,_0x5eb316,_0x29d7ca||{}]),'hasDiff':(_0x1ef4ef,_0x4482be,_0x1962c0)=>_0x16ac0d('storeHasDiff',[_0x1ef4ef,_0x4482be,_0x1962c0]),'getHead':(_0x420be9,_0x2dd0f7)=>_0x16ac0d(_0x42f844(0x5dc),[_0x420be9,_0x2dd0f7])??null,'getHeadCount':_0x13f0f4=>_0x16ac0d(_0x42f844(0x6f6),[_0x13f0f4]),'getTotalHeadCount':()=>_0x16ac0d(_0x42f844(0x2c8),[]),'getDiffsInRange':(_0x5ea41c,_0x3f4611,_0x379e14)=>_0x16ac0d('storeGetDiffsInRange',[_0x5ea41c??null,_0x3f4611,_0x379e14]),'getConfig':()=>_0x16ac0d('storeGetConfig',[])??null,'getCursor':()=>this['_n']('getLegacyCursor',[],![])??null,get 'db'(){const _0x366e20=_0x42f844;try{return _0x16ac0d(_0x366e20(0x2c8),[]),{};}catch{return null;}}};}get[_0x4f3bc9(0x710)](){const _0x381e86=_0x4f3bc9,_0x517c2f=(this[_0x381e86(0x609)][_0x381e86(0x5fa)]?.[_0x381e86(0x47e)]?.()||[])[_0x381e86(0x4e1)](_0x38f09a=>String(_0x38f09a[_0x381e86(0x324)]||'')[_0x381e86(0x38a)](_0x381e86(0x261)))[_0x381e86(0x68a)];return{'size':_0x517c2f};}['_n'](_0x108c84,_0x256676,_0xfd4ba2=!![]){const _0x469c3f=_0x4f3bc9;return this['okdb'][_0x469c3f(0x210)]('tm',this[_0x469c3f(0x609)][_0x469c3f(0x54b)],_0x108c84,_0x256676,_0xfd4ba2);}async[_0x4f3bc9(0x54c)](_0x57e99b){const _0x34c3eb=_0x4f3bc9;return this['_n'](_0x34c3eb(0x54c),[_0x57e99b??null]);}async[_0x4f3bc9(0x2e6)](_0x5cbd68){const _0x2390c7=_0x4f3bc9;return this['_n'](_0x2390c7(0x2e6),[_0x5cbd68??null]);}async[_0x4f3bc9(0x550)](){return this['_n']('enableAll',[]);}async[_0x4f3bc9(0x795)](){const _0x394bf1=_0x4f3bc9;return this['_n'](_0x394bf1(0x795),[]);}async['drop'](_0x164bea){const _0x7ff745=_0x4f3bc9;return this['_n'](_0x7ff745(0x4fa),[_0x164bea??null]);}async['dropAll'](){const _0x4211f4=_0x4f3bc9;return this['_n'](_0x4211f4(0x604),[]);}['isEnabled'](_0x4d590a){const _0x451e4f=_0x4f3bc9;return this['_n'](_0x451e4f(0x24f),[_0x4d590a??null],![]);}['list'](){const _0x9d1e5f=_0x4f3bc9;return this['_n'](_0x9d1e5f(0x47e),[],![]);}[_0x4f3bc9(0x717)](_0x4e4e64){const _0x36c78a=_0x4f3bc9;return this['_n'](_0x36c78a(0x717),[_0x4e4e64??null],![]);}['getCursor'](_0xe244c3){const _0x54a170=_0x4f3bc9;if(!_0xe244c3)return this['_n'](_0x54a170(0x383),[],![]);return this['_n'](_0x54a170(0x2e8),[_0xe244c3],![]);}[_0x4f3bc9(0x383)](){const _0x579196=_0x4f3bc9;return this['_n'](_0x579196(0x383),[],![]);}[_0x4f3bc9(0x5bf)](_0x48647e,_0x405261,_0x138469){return this['_n']('getStateAt',[_0x48647e,_0x405261,_0x138469],![]);}[_0x4f3bc9(0x89f)](_0x122797,_0x33deeb,_0x42e1f4){return this['_n']('getHistory',[_0x122797,_0x33deeb,_0x42e1f4||{}],![]);}[_0x4f3bc9(0x4d6)](_0x19068d,_0x53dcad,_0x5728b9){const _0x48f71d=_0x4f3bc9;return this['_n'](_0x48f71d(0x4d6),[_0x19068d??null,_0x53dcad,_0x5728b9],![])[Symbol[_0x48f71d(0x344)]]();}async['flush'](_0x14ce0c){const _0xbd322c=_0x4f3bc9;return this['_n'](_0xbd322c(0x889),[_0x14ce0c??null]);}}return timemachine={'OKDBTimeMachine':_0x2aed11},timemachine;}function _0x273d(){const _0x1cd3bc=['listRoutes','deleted','registerQuantum','_isReader','job.priority\x20must\x20be\x20int','_emit','bus:proc','encryptionKeys','a\x20Buffer\x20or\x20readable\x20stream','removed','readerCheckIntervalMs','Index\x20\x27','regObject','queue:rescheduled','Engine\x20template\x20must\x20be\x20a\x20plain\x20object','Native','_lazyPinned','_keyFns','normalizeOAuthAuthResult','_macro','_sync','ERROR','setPosition(p)\x20{\x20position\x20=\x20p\x20},','getUniqueViolations','committed','\x20>=\x200x80)\x20','newListener','_connections','addBucket','stopView','_commitSessionMutation','info','quarantined','docEntry','patchDeclaration','_closeEnvLocally','unpin','Unknown\x20OKDB\x20transaction\x20error','__syncOverride','Cannot\x20delete\x20','durableCursorFloor','listBlobStatus','admin','done_ttl','notes','auth','embeddings','features','bridge','\x27\x20conflicts\x20with\x20existing\x20OKDB\x20property','job_type.payload_schema\x20must\x20be\x20object|null','lookupByTokenHash','\x22\x20to\x20enable\x20it.','readField','$gte','_ttlByExpiry','~file:blob_status','removeTxn','CHANGEFEED_QUANTUM','$pending','standalone','clock','then','stateInfo','_features','_undoHooks','hasEnv','_detachConsole','_ensurePeerState','encryption:key-changed','randomUUID','_peerDb','_hlc','OKDBForeignKeyError','_emitProc','connectionCount','type:registered','json','register','shift','clearDefaultTTL','createAndStartEngine','_ttlTimerAt','sourceType','isSnapshotComplete','_report','resolvedFields','customReducerNames','_ttlByKey','_openAckDb','bucket.id\x20must\x20be\x20non-empty\x20string','routes','vec:','_listening','view:progress','queue.worker(\x27','isBuffer','markJobHeartbeat','index:ready','dirname','stopHandle','a\x20non-empty\x20string','_modeApplied','getInt32','ctxUpdateStatus','hasNativeBatch','kickOwnedBy','charCodeAt','key','\x27\x20at\x20','issueToken','getNodeRecord','processor:ready','bucket.capacity\x20must\x20be\x20int\x20>=\x200','resumeOpts','vectorStoreStats','setTtl','finished','resolveField','OKDBNotFoundError','null','resetIndexFinish','job_type.defaults.retry_delay\x20must\x20be\x20int\x20>=\x200\x20or\x20null','INDEX_ALREADY_REGISTERED','durableRetryFailed','Invalid\x20primary\x20key\x20type:\x20','before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.','announceEnqueued','reducers','typeStats','namespace','flatMap','ENGINE_INVALID_DRIVER','Symbol.asyncIterator','embeddings:indexer:doc:queued','isFeatureEnabled','makeOkdb','run','addSSE','exists','\x27:\x20','OKDBError','job.cron\x20must\x20be\x20string|null','effective','geoQuery','INVALID_TYPE_NAME','clocks','sparse','relay:error','_native','assertStartAllowed','bootSyncedEngines','primaryOkdb','regInfo','inflight','isFinite','dbs','origin','toJSON','match','openDB','indexReady','describeTypeDetailed','snapshotScan','_running','session','authorization','previewTemplate','\x20documents\x20fail\x20validation','setDeltaLimit','instanceTimerArmed','job.max_tries\x20must\x20be\x20int\x20>=\x201,\x20null\x20(unlimited)\x20or\x20Infinity','resumeJobType','INVALID_SCHEMA','FOREIGN_KEY_VIOLATION','_hybridQuery','viewOp','onWindow','onDone','views','useVersions','settledTickets','setInt32','files','uploadTxn','job_type.defaults.backoff_multiplier\x20must\x20be\x20number\x20>=\x201\x20or\x20null','__notImplementedNative','getEngine','_txnIdAtSnapshot','rollback','registerHandler:\x20name\x20must\x20be\x20a\x20non-empty\x20string','module','Can\x20not\x20serialize\x20async\x20iterables\x20without\x20first\x20calling\x20resolving\x20asArray','catalog','localViewStats','port','registerPreparer','bus:env_release','flush','getValues','_cancelTTLTimeout','_enqueueInTxn','lastError','setMaxListeners','\x27\x20on\x20type\x20\x27','CREATED','useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20','\x27\x20did\x20not\x20return\x20a\x20valid\x20instance','calculateDelta','RELAY_FULL','feature','listIndexes','_getOidcDiscovery','tryClaimTokens','runDrop','refTrackingDbs','runtimeDeclarations','./native-loader.js','idempotency_key','processor:\x20rebuild\x20must\x20be\x20a\x20function','getHistory','REMOVE','tick','durability','pumping','isSetupMode','workerState','_shouldApplyChange','dropSchema','removeLink','ctxRelease','setToken','destroy','\x20===\x204)\x0a\x09\x09\x09\x09','$lt','_log','reconcileDesired','listTTL','Date','INVALID_INDEX_KEY','runGc','finish','Cannot\x20set\x20enforce\x20schema\x20on\x20','stopWorkerBegin','type:','retryable','_ensureTypeEnv','durableRebuild','Engine\x20driver\x20type\x20must\x20be\x20a\x20non-empty\x20string','job_type.defaults.ttl\x20must\x20be\x20int\x20>=\x200\x20or\x20null','fingerprint','embeddings:embed:settled','awaitIdle','tolerant','refreshThresholdMs','@harperdb/extended-iterable:skip','_buffer','_ttlCompositeKey','REF_VIOLATION_RESOLVED','paused','_ensureTokensType','registerModel','_localViewApi','node','registerIndex','now','config','getCount','Foreign\x20key\x20violation:\x20','durableWorkerStats',':useReadTransaction','size','summary','listPath','native','_assertFiles','validate','__cmd','compare','rebuild','STOPPED','tags\x20must\x20be\x20array\x20or\x20string','authenticateToken','nodeKeys','gen','_pokeHandler','SCHEMA_VALIDATION_FAILED','_blobStatusTxn','dropIndex','dir','hasApi','commit','isHeld','_doHooks','~ref_violations','system:env-sync','processor:paused','resolveField:\x20field\x20required','removeListener','indexer','hasChangelog','failed_ttl','compactStorage','viewDb','process(entries,\x20options):\x20with\x20an\x20entries\x20array\x20the\x20handler\x20lives\x20in\x20each\x20entry\x20({\x20type,\x20handler,\x20…\x20});\x20the\x20second\x20argument\x20is\x20the\x20pool\x20options\x20object.','ensureType','process()\x20entry\x20\x22','job.bucket_tokens\x20must\x20be\x20int\x20>=1','item:','markJobFail','unique:violation','createEngine','exportEnvsToStream','each\x20process()\x20entry\x20requires\x20a\x20non-empty\x20`type`','NativeLock','createSearch','off','TYPE_NOT_REGISTERED','_path','_nodePublicKey','closeEnvLocally','_rbuf','_warnUnknownOptions','version','node:perf_hooks','grouped','processor:\x20module.path\x20is\x20required','node:http','_workers','lookupAllByName','startAutoCompactCheck','_sinks','envsWithFiles','index','system:proc','Storage\x20resolver\x20must\x20be\x20a\x20function','killAll','http.listen({workers/makeOkdb/primaryOkdb})\x20is\x20no\x20longer\x20supported\x20in\x20the\x20','Schema\x20validation\x20failed\x20for\x20','getAuthOptions','_localViews','fetch','mapError','job_type.defaults.max_tries\x20must\x20be\x20int\x20>=\x201\x20or\x20null','describeType','maxMs','subscriptions-store:\x20addInterest\x20on\x20unknown\x20session\x20','\x27\x20export\x20\x27','durableStats','syncLock','flushTimeoutError','whenSettled','aborted','markSnapshotComplete','_envIndexDb','5181815GNCwDP','stop','cleanup','envPath','statusOpen','onUndo','drainDeadlineMs','slice','job.tag\x20must\x20be\x20string|null','plugins','license:removed','busState','tag\x20too\x20long','defineProperty','claim','processes','_viewCache','mcp','freeze','assertCreateAllowed','byteOffset','fromCharCode','\x22\x20must\x20return\x20{\x20embed(input):\x20Promise<Float32Array>\x20}','SYSTEM_POKE','handlerName','changeEncryptionKey:\x20to','$nin','item','repairBlobRefs','reset','import','flushPoll','_call','message','getUniqueViolation','_reconcileDesired','~ttl:expiry','_wrap','durableDocs','/([^/]+)','ALREADY_EXISTS','ctxSignal','write','index:progress','_formerOrigins','job.type\x20must\x20be\x20non-empty\x20string','unique','family','jsonrpcCode','stack','_advanceHlcOnRecv','socket','some','abs','event','setAutoCompact','read','buildStep','readFieldMany','__sync:acks','_baselines','errors','resolve','sort','HTTP\x20server\x20already\x20running','OKDBSchemaValidationError','bucket\x20too\x20long','getMany','pipeline','_isBootstrap','queue:clear-progress','ready','position','\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer','registerViewReducer','getGcHorizon','stor','/?$','modeApplied','ensureTokensType','_pendingOps','setSchema','_refCache','(worst\x20','_rebuilding','job.status_code\x20must\x20be\x20string|null','setTTL','storage\x20adapter\x20is\x20gone','markJobComplete','publicKey','fromEntries','clearFailed','envNames','_flushDebounce','vector','isEnabled','embeddings:pipeline:ready','puts','READER_HELD_ACROSS_AWAIT','put','_isFar','\x22\x20tokens\x20too\x20large','(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20','__logsDb','created','_cursors','guard','body','searchDocs','302786Zlrszi','subscriptions','status_code','open','time-machine:','asyncIterator','__okdb','system:bus_state_change','groupsDb','_ttlState','TXN_INVALID_ACTION','OKDBIndexAlreadyRegisteredError','actionCount','existing','enqueue','\x20dropped\x20(buffer\x20full)','_timerObjs','tries','Map','~emb:models','readTransaction','resolveData','_cmd','listening','boolean','\x27\x20already\x20registered','samplePayloads','stopping','group','__blobStatusDb','\x22\x20must\x20have\x20a\x20start()\x20method','registerDriver','_scheduleTTLSweep','envs','embeddings:doc:status_change','add','queue:done','processorsStatus','selfKey','queue:removed','chunks','bumpVersion','~queue_logs','setProcessingConfig','_stream','processor:\x20cannot\x20combine\x20a\x20closure\x20handler\x20with\x20module:{path,export}.\x20','setPrototypeOf','_key','push','exports','getSchema','\x22\x20is\x20not\x20registered','materializer','getBinary','createEmbedder','ttl:set','preview','ttlState','delta_limit','unresolveField','flushed','attach','setNative','Buffer','embedder\x20request\x20still\x20pending','staticCall','index:reset','upsertLink','equal','system:clock_change','authenticated','dropType','pin','default','kind','dupSort','sweepExpiredTTL','workers','Algorithm\x20factory\x20must\x20return\x20an\x20object\x20with\x20','clone','tokens','9jzHemC','RangeError','stopWorkerAbort','string','license:invalid','granId','starting','kick','test','Algorithm\x20factory\x20must\x20be\x20a\x20function','findOwner','MAX_SAFE_INTEGER','resume','indexOf','\x20of\x20env\x20\x22','OKDBInvalidIndexKeyError','OKDBInvalidPrimaryKeyError','fetchJson','isBootstrap','_OPTION_HINTS','wake','setStorageResolver','onLicenseExpired','removeJobType','MCP_ERROR','queue:retry','storeGetTotalHeadCount','~processes','ctxProgress','delete','_build','asArray','cron','busEmit','err','defaults','createdBy','initialize','setLastClock','noteListenAddr','INVALID_ARGUMENT','_wb','clearSync','authOpen','reidentify','system:ready','links','getIndex','geoConfig','retryJob','description','_handleInProcess','_ringSize','startIndex','processRest()','endsWith','disable',':\x20not\x20implemented\x20in\x20the\x20native\x20build\x20yet','getCursor','sessionsForKey','ensure','recordPeerAck','spki','setAddress','toMs','value','REBUILD_IN_PROGRESS','warn','transactionSync','job_type.','fts:','created_at','_deliverEvent','checkSignals','durableTierLag','cascade','areIndexesReady','index:','setHostPlugins','isType','trunc','INDEXER_DOC_QUEUED','getKeys','invalid\x20job.status:\x20','_retryPending','__esModule','record','versions','replace','embedderCall','stats','get','_wsettle','getAll','reconcile','removeEnvironment','allSettled','_handlerName','hash','restrict','isWanted','maxConnections','getTemplate','_licenseInterval','inputSchema','log\x20entry\x20fields\x20too\x20large\x20(>2KB\x20serialized)','removeResolver','processorsStart','_handlePending','_blobsDir','invalid\x20job_type.status:\x20','.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20','ttl','recommended','_bootLog','pending','_pending','job.bucket\x20must\x20be\x20string|null','cursorKey','license','_busFacade','instance','$all','vector-search\x20engine\x20not\x20running:\x20\x22','apply','encryptionKey','unref','ITEM_UPDATE','dirty','once','txn:end','lastIndexOf','BAD_PLUGIN','abort','quarantinedEnvs','isIndex','_jsSchemas','use','continueOnRecoverableError','OKDBNotImplementedNativeError','formerIds','\x20=\x20finishUtf8(','getLoginConfig','_low','_tickCallback','keyFor','$within','getPosition()\x20{\x20return\x20position\x20},','_searchWithScores','registerType','iterator','OKDBProcessor','ms\x20busy=','_timerHandle','wait','handle','stderr','creating','flushTicket','_systemEnv','_statusEnv','listBuckets','updateJob','Server','Referenced\x20type\x20\x27','offset','durableClock','detach','_pendingLocal','ENGINE_INVALID_TEMPLATE','_blobStream','_setPeerState','stringify','fetchRemoteDelta','_admissionStarted','resumed','map','remote','__ttlByKey','getUint32','_update','uninstalled','ensureTypeEnv','changeToClockDb','setCursor','explainIndex','isReader','getJobType','worker','addInterest','process(filter)','ies','getFast','_onStop','setPeerState','sweepExpired','written','$regex','isRunning','TypeError','fields','isCoordinator','_enableChangelog','EMBED_PENDING','fts:registered','getJob','setEncryptionKey','runtimeState','details','_dedupeKey','rowKey','$options','createPipeline','getLegacyCursor','\x27,\x20fn)\x20for\x20an\x20in-process\x20consumer,\x20or\x20run\x20a\x20consumer\x20on\x20another\x20node/host\x20you\x20launch\x20—\x20all\x20claim\x20the\x20same\x20durable\x20jobs\x20exactly\x20once\x20(CAS).\x20See\x20docs/upgrade-2.0.md.','_adminRelay','_rawTxnBuf','_durableIndexerDocs','restart','_resolveKeys','startsWith','getIndexStatus','clearScan','a\x20string','prepareTxnEnqueue','_pressure','scopedName','\x22\x20is\x20not\x20allowed\x20(it\x20evaluates\x20code);\x20use\x20declarative\x20operators\x20instead','describeAllTypesDetailed','no_action','typesDb','bootSyncedViewsInline','listProviders','der','TXN_ERROR','_envSyncStop','pressure','timer','Database\x20not\x20started','error_stack','$nor','Query\x20operator\x20\x22','getEntry','pendingResponses','NOT_FOUND','level','index:drop','importBlobs','doesExist','listFtsEnvs','_readViewExpired','oauth','txnDone','vecPut','removeSync','_ts','_flushTimer','peers','pause','setKeyBuffer','FTS_BUILD_CONTINUE','getClock','localViewNames','\x0a\x09\x09let\x20','childTransaction',':data','job.error_stack\x20must\x20be\x20string|null','removes','types','label','Plugin\x20name\x20\x27','\x20must\x20be\x20number','let\x20position;\x20let\x20readString\x20=\x20','load','dropping','ceil','engine\x20api\x20has\x20no\x20method\x20\x27','records','started','setLogger','docs','bucket\x20must\x20be\x20object','_getType','engineStop','claim_id',':\x20expected\x20','readerCheck','callStatic','_scheduleFlush','~sub','createEnvironment','_info','listen','EMBEDDER','priority','ctxLog','LICENSE_LIMIT_EXCEEDED','_onPending','engineUninstall','registerExtractor','Blob\x20missing\x20for\x20file:\x20','prevDb','status_message','durableEmbedderInfo','node:path','bucket.tokens\x20must\x20be\x20int\x20>=\x200','field\x20resolver\x20request\x20still\x20pending','inFlight','inline','processor:\x20specify\x20exactly\x20one\x20of\x20handler:\x27<name>\x27\x20or\x20module:{path,export},\x20not\x20both','role','turn','_db','fail','updated','_refIndexDb','handler','hasOwnProperty','drain','Engine\x20template\x20build()\x20is\x20required:\x20','getRange','hook','_defaultEnv','registerIndexDeferred','setMaxBodyBytes','resolveModelDims','bucket','compactLock','node:util','pauseAllAndDrain','payload_schema','reencrypt','_ttlBackoffUntil','items','_facade','meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20','refill_amount','__adminRelay','count','ITEM_CREATE','compaction','loop-lag\x20','runRecord','SCHEMA_COLLECTION_INVALID','_rootDb','nextTick','bucket_tokens','dataView','msgpackr','getTTL','search','registerBucketProjection','embeddings:indexer:ready','assertQueryOptions','ensure:\x20fts\x20entry\x20missing\x20name\x20or\x20fields','signal','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','searchWithScores','hasType','raw','countByIndex','_closed','_id','shouldApplyChange','__absent','isWorker','snapshot','buckets\x20must\x20be\x20array\x20or\x20string','range','License\x20limit\x20exceeded:\x20','$defs','_lookupAllByName','durableEngineDoc','backup','addRaw','patchSelf','registerAlgorithmFactory','fetchPeer','fromBufferKey','markJobProgress',';return\x20{','160JemiWs','vectorSpace','job.claim_id\x20must\x20be\x20string|null','nodeKey','handleError','_tx','_lock','_makeLazyVectorAdapter','isBun','_durableEmbedderInfo','embedder\x20is\x20gone','job.id\x20must\x20be\x20string','getDefinition','locks','isArray','subscribe','true','_stateDb','byteLength','claimGated','tierList','files.upload:\x20stream','Too\x20many\x20concurrent\x20connections','emitWarning','__ref_index','autoCompact','okdb-node:\x20a\x20background\x20async\x20handler\x20rejected:\x20','Version\x20mismatch\x20for\x20','meta','\x27,\x20cannot\x20map\x20to\x20\x27','headers','INDEX_HAS_CONSUMERS','getJobLogs','208470ZPirdC','_np','setClaiming','non-empty\x20string','readHashRange','bigint','$not','_drainOne','_writeBlob','validateOidcAccessToken','getDefaultTTL','_getPeerState','_timer','alg','listJobTypes','registerFts','start','type','node:cluster','_drain','OKDBTypeAlreadyRegisteredError','encryption\x20key\x20function','tryAcquire','_compactLock','syncBlobs','startNewEnginesFromSync','\x22\x20tokens\x20must\x20be\x20>=\x201',')\x20+\x20readString(source)}','isNaN','targetType','applyChange','durableMarkFail','_durableEngineDoc','_remove','setBridge','_subscribeEvent','WORKER','\x22\x20on\x20\x22','_changefeed','listRuns','getPeerState','_closedHandle','ms\x20p99=','_plugins','TXN_START','unpack','itemsGroups','authenticateRequest','WriteBatch','okdb._openEnvLazy:\x20env\x20\x22','list','_asArray','toBufferKey','floor','_put','readString\x20}','quantum','OKDBUniqueConstraintError','$ref','job_type.defaults.buckets\x20must\x20be\x20array|null','recomputeFields','listPeers','exportBlobs','$eq','registerQuantum:\x20load\x20must\x20be\x20a\x20function','from','loginSelect','next','symbol','4799752QXgJco','_closeReadTransaction','blobPath','resetView','includes','_sub','dropFts','refs','_push','retry_delay','_isOpenForIp','getIndexMeta','isLoopbackIp','release','expiresAt','max','job.idempotency_key\x20must\x20be\x20string|null','isActive','storeEnv','__after','isSync','flushQuantum','drivers','TYPE_ALREADY_REGISTERED','\x27\x20doesn\x27t\x20exist',':clockToChange','pid','keys','_registerType','_attached','reconcilePeer','buffer','field:resolver_registered','reject','bootSyncedViews','job.retry_delay\x20must\x20be\x20int\x20>=\x200','_indexBuild','ensureDesired','INDEXER','txn','existsSync','ensure:\x20type\x20is\x20required','ref','context','_isClosedEnvError','continueIteration','refill_every','describeIndex','embedder','running','listTypes','bucket\x20\x22','node:crypto','_txnBuf','_stopFor','lastClock','_quantum','addrs','events','assign','_reconcilePeer','$size','clearStuck','_typesDb','call','autoCompactTimerArmed','schema:set','\x20must\x20be\x20','attachConsole','getChanges','_store','system:stopped','must\x20be\x20an\x20object;\x20got\x20null','getSecurityNotices',',\x20got\x20','stateNames','_env','TXN_INVALID_OP','storeEnvPath','_afterDurable','filter','hasEmbedderFactory','_nodePrivateKey','\x22\x20is\x20used\x20by:\x20','OKDBIndexNotRegisteredError','IPv4','3.1.3','addJobType','intervalTimer','isInteger','envName','inspect','$or','_subscribed','removeJob','shutdownTimeout','resetFts','inBatch','job.finished\x20must\x20be\x20number|null','queue-worker','DOC_STATUS_CHANGE','planUpdateJob','digest','job_type.payload_schema.definition\x20must\x20be\x20object','extend','drop','connected','getSelfNode','(?:/(.*))?','hlc','listRecords','path','~fts:envs','compact','_clearChunked','remove','setReadBuffer','_changeToClockDb','.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20','$mod','_ensureDbs','outgoing','ctxHeartbeat','doc','indexStats','code','batch','resumeAllAfterDrain','prototype','putSync','isTypeEmpty','Engine\x20template\x20id\x20must\x20be\x20a\x20non-empty\x20string','embedBatch','migrate','_blobStatusDb','INVALID_OPTIONS','spawn','$elemMatch','returnRecoverableErrors','Index\x20\x22','_listPeers','max_concurrency','listVectorStores','note','prefix','forceAfterMs','KNOWN_OPTIONS','mean','hex','near','removeEventListener','SYSTEM_STOPPED','resetIndexBegin','capacity','OKDBTypeNotRegisteredError','_nm','_logChange','_onPoke','ttl:expired','MAXIMUM_KEY','unique:violation_resolved','processEverything()','lmdb','refreshTtl','getVector','_handles','active','DONE','isWellFormed','repair','\x22\x20not\x20found','_blobPath','view','_meta','files.registerExtractor:\x20extractor\x20must\x20be\x20a\x20function','\x20=\x20source[position++]\x0a\x09\x09if\x20(','job_type.defaults.','listIndexKeys','waiting','system:env_release','getBucket','setUint32','item:create','definition','blobsDir','new','name','enable','prefetch','files\x20feature\x20not\x20available','enforced','enableAll','_indexBuilds','[log-sink]\x20','PLUGIN_DEPENDENCY_MISSING','iterable','lock','advanceHlcOnRecv','validateRouteInput','appendJobLog','object','QUERY_OPERATOR_FORBIDDEN','_setKey','emb','defaultTTL','buckets','lastTxnId','stopAll','pokeHandler','processors','lockHeld','\x27\x20does\x20not\x20exist\x20in\x20type\x20\x27','importFromFile','__ttlCancelledGen','String\x20does\x20not\x20fit\x20in\x20target\x20buffer','OKDBSchemaCollectionError','fts:reset','_startAdmission','INDEXER_DOC_DONE','bucket\x20id\x20required','head','processor:progress','async','6dRbJyM','has','system:drain','maxBodyBytes','send','getStatus','sessionId','createLoginState','setClaimGated','Unknown\x20transaction\x20action:\x20','__peers','timerArmed','.\x20Valid:\x20','resolution','getRaw','job\x20type\x20must\x20be\x20object','(source)\x20=>\x20{','setMode','limit','resetting','parseBearer','log\x20entry\x20must\x20be\x20a\x20string\x20or\x20object','~fts:','UNIQUE_CONSTRAINT','done','reason','_getNodeRecord','getMaxBodyBytes','_ackDb','log','INVALID_STATE','timeMachine','embed-worker','resetIndex','embeddings:indexer:doc:done','FTS_FLUSH_TIMEOUT','PLUGIN_ALREADY_REGISTERED','embed','join','min','log\x20entry\x20message\x20required','clearTTL','_admissionTimer','ENGINE_DRIVER_MISSING_START','sync','_buckets','killWorker','properties','ctxEmit','_pdb','emit','_onItem','backoffUntil','dropped','stopped','_validateOidcAccessToken','getFloat64','mode','job.claim_expires\x20must\x20be\x20number|null','createIndexer','writeKey','set_null','_getRaw','toLowerCase','_tids','_okdbAdminAttached','INDEXER_DOC_FAILED','Cannot\x20register\x20plugins\x20after\x20start','update','~system','listLinks','logChange','limits','__HOLD__','attachFeed','__stateDb','sha256','txn:rollback','_markSeen','getStateAt','toISOString','listViolations','nidFor','actions','byIndex','getEmbedderFactory','subarray','dataEnv','BAD_HOST','\x20>\x204)\x20{\x0a\x09\x09\x09if\x20(','envSize','BAD_PARAM','inactive','OKDBIndexHasConsumersError','\x22)\x20before\x20open()','Engine\x20driver\x20already\x20registered:\x20\x22','values','enforce','getOidcDiscovery','_read','registerEmbedderFactory','pop','chunk\x20strategy\x20must\x20be\x20a\x20function','_locks','\x20does\x20not\x20exist','allowUnsafe','~queue_buckets','sweepOrphanLogs','storeGetHead','signalWant','UNKNOWN_RANGE_OPTION','close','_status','getRun','getPeerAcks','PLUGIN_NAME_CONFLICT','split','getMeta','IPv6','fieldPath','job.',';\x20got\x20','opts','uninstallEngine','getSession','~log','FTS_READY_TIMEOUT','1317NZtTgq','diag','process(entries)\x20requires\x20at\x20least\x20one\x20entry','_clockListener','$in','patchConfig','bootRuntimeDeclarations','ensureFeed','targetKey','hasIndex','Invalid\x20onDelete\x20rule\x20\x27','processor','~log_entry','_readBuf','_pumper','removeBucket','forEach','createWorker','limitOf','_debounceTimer','callBatch','dropAll','_onFeedChange','ttlTimer','setFlushNotify','itemsPlan','env','ttlMs','consumeLoginState','backoff_multiplier','resetUnknownOptionsWarned','OKDB','_kbuf','~queue_payloads','bus','_envs','_setTTL','proc','INDEX_NOT_REGISTERED','listNodes','durableMarkDone','bucket.updated\x20must\x20be\x20number','setPeersFn','endIndex','select','processorHold','_http','okdb','driver','_started','callRows:\x20unexpected\x20row\x20stride\x20','queue','TXN_END','build','empty\x20string','iterate','_teardownNative','\x27\x20is\x20already\x20registered','acquiredAt','_viewState','filterSessionsForType','retry','cause','error','useReadTransaction','TXN_ENV_MISMATCH','cookies','_isWriter','retryFailed','_jsFactories','TXN_ROLLBACK','vector-search','a\x2032-character\x20key\x20or\x20a\x20function\x20returning\x20one','openEnv','OKDBForeignKeyDeleteError','_makePipelineApi','licenses','Type\x20\x22','enabled','clearAsync','set','function','reverse','total','_syncExpiresAtField','\x27,\x20module)\x20(the\x20auto-adopted\x20shared-pool\x20form)\x20was\x20removed\x20in\x20okdb\x202.0:\x20okdb\x20no\x20longer\x20auto-runs\x20queue\x20handlers\x20(trusted\x20user\x20code\x20it\x20can\x27t\x20place).\x20Use\x20queue.process(\x27','args','compiled','dims','_detachLog','debug','nativeCode','_assertRangeOptions','toFixed','_range','metaDb',')\x0a\x09\x09}\x0a\x09\x09','captureStackTrace','child','job.buckets\x20entries\x20must\x20be\x20objects','updated_at','indexer\x20engine\x20not\x20running:\x20\x22','engines','flushMaxWait','host','_writerWatchdogInterval','rows','algorithm\x20has\x20no\x20method\x20','patch','getStats','Embedder\x20factory\x20for\x20\x22','loop-lag','schema','pauseJobType','_callMacro','queue:enqueued','_isOpen','_setTTLEntry','~engines','ttl:clear','backupRoot','dup','login','setKick','_staticCall','registerTemplate','_listeners','Array.from)\x20before\x20any\x20await.','change','_durableWorkerStats','hasBody','pump','_keyListener','env:removed','isWriter','registerReducer','exportToFile','getBlobStatus','TXN_CLOSED','HIGH_SENTINEL','create','return','__ttlByExpiry','_readerCheckInterval','STOPPING','_stopAutoCompactCheck','_feed','itemsDb','turns','offWindow','utf8Write','setDefaultTTL','getViolation','options','__tokenSecret','length','2633106yiWHad','_ensureDesired','_ttlParseComposite','claim_expires','transaction','payload','Engine\x20template\x20kind\x20must\x20be\x20\x22engine\x22\x20or\x20\x22pipeline\x22:\x20','_ensure','createQueryTester','PUT','_typeKeys','ONLINE','failed','attachOKDB','invalid\x20log\x20level:\x20','getResolvedOptions','_resolveFilter','releaseClaim','STARTED','applyInterestDelta','query','hybridQuery','pinned','encodeInto','undefined','refItemsDbs','refreshReadTxn','sseSend','data','inNativeCall','INACTIVE','-----BEGIN\x20PUBLIC\x20KEY-----\x0aMCowBQYDK2VwAyEAacrkExPrhxNVHyeQBLDwg8xfm1OwyxDAPNdGXABYS2s=\x0a-----END\x20PUBLIC\x20KEY-----','~queue_jobs','balanced','OKDBAlreadyExistsError','utf8','_detachLogSink','token','fts',':emb:','node:stream','isDeepStrictEqual','_clearTTL','free','_maxConnections','inclusiveEnd','valuesForKey','registerHandler','job.status_message\x20must\x20be\x20string|null','onDo','_syncLock','cancelJob','http.listen:\x20host\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20a\x20non-empty\x20array\x20of\x20non-empty\x20strings','ENGINE_INVALID_TYPE','remoteAddress','debounceTimer','_waitNative','nextTurn','before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20','materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.','job','loadedPath','_openEnvLazy','job\x20must\x20be\x20object','HIGH_FREQ_EVENTS','boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20','Cannot\x20openEnv(\x22','engineType','concat','action','tag','mkdirSync','forceResync','6169527RdRYht','-worker','replaceMember','catch','_run','_logEnv','_processorStops','ftsQuery','processor:\x20module\x20\x27','header','~processes:cmd','_ensureEnv','handleDurableClock','$streamId','registerHandler:\x20fn\x20must\x20be\x20a\x20function','Missing\x20plugin:\x20','Environment\x20\x22','getRunningEngine','offsetOf','number','SKIP','$exists','txn\x20ops\x20must\x20be\x20an\x20array','servers','_clockToChangeDb',':txnRange','_root','upload','nativeBinaryPath','holder','admission','__lock','library\x20(okdb\x20node-model\x202.0).\x20For\x20multi-process\x20HTTP\x20serving\x20use\x20the\x20okdb\x20','indexContent','storeGetHeadCount','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','maxExtra','_dupArg','~ttl:key','allocUnsafeSlow','_callRows','exportJSON','FIELD_RESOLVER_PENDING','includeViolations','onDelete','_autoCompactTimer','item:pending','getOpenWarning','changeEncryptionKey','subscriptions-store:\x20open()\x20not\x20called','system','_seen','for','completeJob','spec','processorsParticipating','OKDBInvalidValueError','detachFeed','preparer\x20must\x20be\x20a\x20function','Unique\x20constraint\x20violated\x20on\x20','_registrations','_durableIndexerStats','feed:','sourceKey','pumpEnvSync','_subsV2','_defaultEnvObj','status','byLabel','entries','req','updateBucket','buildOwnRow','Error','system:type_drop','immediate','_listenAddr','VERSION_MISMATCH','ttlStats','pipelines','throw','ITEM_PENDING','_release','export','.\x20Add\x20a\x20license\x20that\x20includes\x20\x22','clearDone','STARTING','Transaction\x20already\x20closed','encoder','_settleRead','apiCall','nextExpiry','_makeIterator','tools','compact/repair\x20already\x20in\x20progress\x20for\x20this\x20environment','SYSTEM_CLOCK_CHANGE','clear','end','processorsStop','reg','return\x20fromCharCode(','durableMarkDelete','\x20=\x20source[position++]\x0a\x09\x09\x09else\x0a\x09\x09\x09\x09return\x20fromCharCode(','job.tags\x20must\x20be\x20array','fts:drop','find','max_tries','evict','writeBlob','_uid','REVERSE_INDEX','ms\x20mean=','listModels','queue:failed','_noChangelog','bus:drain','_rebuild','durableRetryDoc','\x22\x20requires\x20a\x20`handler`\x20function','_sweepInProgress','registerEnv','_isLoopbackIp','ITEM_REMOVE','state','ENGINE_DRIVER_ALREADY_REGISTERED','logCap','uninstall','process\x20options.admission\x20must\x20be\x20a\x20function','streamRead','http','failures','exclusiveStart','job_type.max_concurrency\x20must\x20be\x20int\x20>=\x201\x20or\x20null','cursor','__warned','_dedupeMax','SUB_ENV','writerStatus','setWake','callAsync','typeSubDbs','acquired','reducer','_subsV2Obj','getByPrefix','listTemplates','Feature\x20not\x20available\x20on\x20free\x20tier:\x20','_writer','_handlePoke','engine','_callPacked','okdb-node:\x20unknown\x20callback\x20id\x20','percentile',':index:','createWriteFacade','bucket.tokens\x20cannot\x20exceed\x20capacity','resetCursor','turnWaiters','.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22','\x22\x20must\x20be\x20a\x20plain\x20object','sseClose','bootSyncedPipelines','loaded','there\x20is\x20no\x20`http`\x20option\x20—\x20the\x20HTTP\x20server\x20exists\x20only\x20when\x20db.http.listen(port)\x20is\x20called','logCap\x20must\x20be\x20null\x20or\x20integer\x20in\x20[','references','$where','~processes:desired','_write','_keepAlive','validateBlobIntegrity','job_type.payload_schema.enforce\x20must\x20be\x20boolean','pageSize','process','_license','scheduled','address','drainJobType','Use\x20module:{path,export}\x20alone,\x20or\x20handler:\x27<name>\x27\x20for\x20a\x20built-in.','storageStats','isOrchestrator','processor:resumed','sync:apply','_quantumGate','applyOps','runPoll','parse','bind','startClaimed','install','isOAuthEmailAllowed','_settleWaiters','_fail','disableAll','\x20log\x20entr','_handle','152xApOEm','ensure:\x20view\x20entry\x20missing\x20name\x20or\x20definition','_claimGated','importJSON','FOREIGN_KEY_DELETE_RESTRICTED','okdb-','_draining','listRefViolations','Type\x20\x27','OKDBVersionMismatchError','_assertOpen','~lock','ExtendedIterable','api','unregisterTarget','failJob','trim','unreg','_settleWrite','target','resolveField:\x20type\x20required','describeChunk','drives','taken','_settled','getEmbedderSchema','Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results','afterTurn','describeIndexes','functions','$near','_windowCbs','\x20(required\x20by\x20','storeEnvName','\x20│\x20','last','exportToStream','Embedder\x20factory\x20must\x20be\x20a\x20function','bucket.refill_every\x20must\x20be\x20int\x20>=\x200','type:drop','resolveField:\x20options.batch\x20must\x20be\x20a\x20function','engineStart','_envWide'];_0x273d=function(){return _0x1cd3bc;};return _0x273d();}var files,hasRequiredFiles;function requireFiles(){const _0x49f0ca=_0x5c70f8;if(hasRequiredFiles)return files;hasRequiredFiles=0x1;const _0x293589=require$$0,{Readable:_0x1f0080}=require$$1,{OKDBError:_0x1359b6,optionsArg:_0x1df2f5,invalidArgument:_0x399824}=requireErrors(),{RawDb:_0x3c4c24}=requireRawdb();async function _0x4be563(_0x3ae78c){const _0x44da65=_0x52a3;if(Buffer[_0x44da65(0x823)](_0x3ae78c))return _0x3ae78c;if(_0x3ae78c instanceof Uint8Array)return Buffer[_0x44da65(0x48d)](_0x3ae78c);if(typeof _0x3ae78c===_0x44da65(0x2b1))return Buffer[_0x44da65(0x48d)](_0x3ae78c);const _0x1727ee=[];for await(const _0x444867 of _0x3ae78c)_0x1727ee[_0x44da65(0x28d)](Buffer[_0x44da65(0x823)](_0x444867)?_0x444867:Buffer[_0x44da65(0x48d)](_0x444867));return Buffer[_0x44da65(0x6cf)](_0x1727ee);}class _0x6955f6{constructor(_0x2c62dc){const _0x1dac82=_0x52a3;this['env']=_0x2c62dc,this[_0x1dac82(0x61e)]=_0x2c62dc[_0x1dac82(0x61e)];}['_n'](_0x42a875,_0x1469fc,_0x5188eb=!![]){const _0x198f17=_0x52a3;return this[_0x198f17(0x61e)][_0x198f17(0x210)](_0x198f17(0x87a),this[_0x198f17(0x609)][_0x198f17(0x54b)],_0x42a875,_0x1469fc,_0x5188eb);}[_0x49f0ca(0x45c)](){return!![];}[_0x49f0ca(0x1f1)](){}async[_0x49f0ca(0x692)](){this['_n']('ensure',[]);}async[_0x49f0ca(0x454)](_0x37d807,_0x10bbdf){const _0x159ed1=_0x49f0ca;return this[_0x159ed1(0x61e)][_0x159ed1(0x7aa)](this['_n'](_0x159ed1(0x740),[_0x37d807,await _0x4be563(_0x10bbdf)]));}get[_0x49f0ca(0x517)](){const _0xcd154a=_0x49f0ca;return this['__blobStatusDb']||(this[_0xcd154a(0x27a)]=new _0x3c4c24(this[_0xcd154a(0x609)],_0xcd154a(0x7fb)));}async[_0x49f0ca(0x8e2)](_0xa0359e){const _0x220a58=_0x49f0ca;return this[_0x220a58(0x517)][_0x220a58(0x430)](_0xa0359e);}async[_0x49f0ca(0x6ef)](_0x26b744){const _0x2dec0e=_0x49f0ca,{id:_0x47e57a,stream:_0x2cfa47,mime:mime='application/octet-stream',path:_0x423b9d='',txn:txn=null}=_0x1df2f5(_0x26b744);if(!_0x47e57a)throw _0x399824('files.upload:\x20id',_0x2dec0e(0x828),_0x47e57a);if(!_0x2cfa47)throw _0x399824(_0x2dec0e(0x440),_0x2dec0e(0x7cb),_0x2cfa47);const _0x4c8153=await _0x4be563(_0x2cfa47);if(txn){const _0x20c31f=this['_n'](_0x2dec0e(0x87b),[_0x47e57a,_0x4c8153,{'mime':mime,'path':_0x423b9d}]);return txn['put']('~files',_0x47e57a,_0x20c31f[_0x2dec0e(0x304)]),txn[_0x2dec0e(0x6bc)](()=>this['_n'](_0x2dec0e(0x3aa),[_0x20c31f[_0x2dec0e(0x3ef)]])),txn[_0x2dec0e(0x1f5)](()=>this['_n']('txnUndone',[_0x20c31f['hook']])),_0x20c31f[_0x2dec0e(0x304)];}return this[_0x2dec0e(0x61e)][_0x2dec0e(0x7aa)](this['_n'](_0x2dec0e(0x6ef),[_0x47e57a,_0x4c8153,{'mime':mime,'path':_0x423b9d}]));}[_0x49f0ca(0x309)](_0x2e7cda){return this['_n']('get',[_0x2e7cda],![])??null;}['streamByHash'](_0x2d34a9){const _0x13dc92=_0x49f0ca,_0x4fe3ce=this[_0x13dc92(0x53c)](_0x2d34a9);if(!_0x293589[_0x13dc92(0x4b9)](_0x4fe3ce))throw Object[_0x13dc92(0x4cc)](new Error('Blob\x20not\x20found:\x20'+_0x2d34a9),{'status':0x194});return this[_0x13dc92(0x358)](_0x2d34a9);}['_blobStream'](_0x4fb7cc){const _0x276b4b=0x100*0x400,_0x17b07f=this;let _0x16e163=0x0;return new _0x1f0080({'highWaterMark':_0x276b4b,'read'(){const _0x28e7d3=_0x52a3;let _0x256a07;try{const _0x54c8d3=_0x17b07f['_n'](_0x28e7d3(0x450),[_0x4fb7cc,_0x16e163,_0x276b4b],![]);_0x256a07=Buffer['isBuffer'](_0x54c8d3)?_0x54c8d3:Buffer['from'](_0x54c8d3);}catch(_0x19bd49){this['destroy'](_0x19bd49);return;}_0x16e163+=_0x256a07[_0x28e7d3(0x68a)];if(_0x256a07[_0x28e7d3(0x68a)])this[_0x28e7d3(0x28d)](_0x256a07);if(_0x256a07[_0x28e7d3(0x68a)]<_0x276b4b)this[_0x28e7d3(0x28d)](null);}});}async[_0x49f0ca(0x228)](_0x48a8a1){const _0x54a49a=_0x49f0ca;return this[_0x54a49a(0x61e)][_0x54a49a(0x72d)](this['_n'](_0x54a49a(0x228),[_0x48a8a1],![]));}async['stream'](_0x357803){const _0x75c91c=_0x49f0ca,_0x483756=this[_0x75c91c(0x309)](_0x357803);if(!_0x483756)throw Object['assign'](new Error('File\x20not\x20found:\x20'+_0x357803),{'status':0x194});const _0x447fde=this[_0x75c91c(0x53c)](_0x483756[_0x75c91c(0x310)]);if(!_0x293589['existsSync'](_0x447fde))throw Object[_0x75c91c(0x4cc)](new Error(_0x75c91c(0x3da)+_0x357803),{'status':0x194});return{'stream':this['_blobStream'](_0x483756[_0x75c91c(0x310)]),'record':_0x483756};}async[_0x49f0ca(0x504)](_0x41ac13,_0x26e769){const _0x51e16b=_0x49f0ca,{txn:txn=null}=_0x1df2f5(_0x26e769);if(txn){const _0x2ed099=this['_n'](_0x51e16b(0x7fc),[_0x41ac13]);txn['remove']('~files',_0x41ac13),txn[_0x51e16b(0x6bc)](()=>this['_n'](_0x51e16b(0x3aa),[_0x2ed099[_0x51e16b(0x3ef)]])),txn[_0x51e16b(0x1f5)](()=>this['_n']('txnUndone',[_0x2ed099[_0x51e16b(0x3ef)]]));return;}return this['okdb'][_0x51e16b(0x7aa)](this['_n'](_0x51e16b(0x504),[_0x41ac13]));}async[_0x49f0ca(0x8d4)](_0xab8f5d,_0x5a662e={}){const _0x51989c=_0x49f0ca;return this['_n'](_0x51989c(0x8d4),[_0xab8f5d,_0x5a662e],![]);}[_0x49f0ca(0x678)](_0x35be34){const _0x212734=_0x49f0ca;return this['_n'](_0x212734(0x678),[_0x35be34],![]);}[_0x49f0ca(0x7ec)](){const _0x2d4599=_0x49f0ca;return this['_n'](_0x2d4599(0x7ec),[],![]);}['gcOrphanedBlobs'](_0x1d4c42){const {minAgeMs:_0x4ebb76}=_0x1df2f5(_0x1d4c42);return this['_n']('gcOrphanedBlobs',[_0x4ebb76??null]);}[_0x49f0ca(0x3d9)](_0x12da4c,_0x3a1faf){const _0x4ce43b=_0x49f0ca;if(typeof _0x3a1faf!==_0x4ce43b(0x640))throw new _0x1359b6(_0x4ce43b(0x53f),_0x4ce43b(0x5cb));const _0x567086=this['_n'](_0x4ce43b(0x3d9),[_0x12da4c,_0x3a1faf]);return()=>this['_n']('unregisterExtractor',[_0x567086]);}async[_0x49f0ca(0x6f5)](_0x14bc43){return _0x14bc43=_0x1df2f5(_0x14bc43),this['_n']('indexContent',[_0x14bc43]);}async[_0x49f0ca(0x464)](_0x10bdc2){const _0x32a0d2=_0x49f0ca,{peerIds:_0x182e87}=_0x1df2f5(_0x10bdc2);return this['_n'](_0x32a0d2(0x464),[_0x182e87??null]);}['_blobPath'](_0x2ca0a0){const _0x51b58e=_0x49f0ca;if(typeof _0x2ca0a0!==_0x51b58e(0x2b1))return require$$4['join'](this[_0x51b58e(0x31b)],_0x2ca0a0[_0x51b58e(0x1f7)](0x0,0x2),_0x2ca0a0[_0x51b58e(0x1f7)](0x2));return this['_n'](_0x51b58e(0x493),[_0x2ca0a0],![]);}get[_0x49f0ca(0x31b)](){const _0x28aaa9=_0x49f0ca;return this['_n'](_0x28aaa9(0x549),[],![]);}}return files={'OKDBFiles':_0x6955f6},files;}var engines,hasRequiredEngines;function requireEngines(){const _0x48b371=_0x5c70f8;if(hasRequiredEngines)return engines;hasRequiredEngines=0x1;const {OKDBError:_0x503949}=requireErrors(),_0x44bedd=requireBridge(),_0x8a0f9c=new Set([_0x48b371(0x4c1),_0x48b371(0x8ee),'vector-search',_0x48b371(0x590)]),_0x44df1c=new Set(['count','info',_0x48b371(0x647)]),_0x44dbf8=[_0x48b371(0x8d7),'patchConfig',_0x48b371(0x203),_0x48b371(0x859),_0x48b371(0x791),'stop',_0x48b371(0x752)],_0x35dc60={'embedder':new Set([_0x48b371(0x647),_0x48b371(0x8bd)])},_0x3b4f27=new Set([_0x48b371(0x291),_0x48b371(0x5fa),_0x48b371(0x4f4)]);class _0x5867cf{constructor(_0x3b30dc,_0x3a29b3,_0x30fe55,_0x45d552){const _0xc8d35a=_0x48b371;this[_0xc8d35a(0x3fc)]=_0x3b30dc,this[_0xc8d35a(0x82f)]=_0x3a29b3,this[_0xc8d35a(0x45d)]=_0x30fe55,this[_0xc8d35a(0x54b)]=_0x45d552,this['engineType']=_0x30fe55;}[_0x48b371(0x3d1)](){const _0x4a0fd6=_0x48b371;return this[_0x4a0fd6(0x3fc)]['_n'](_0x4a0fd6(0x7e2),[this[_0x4a0fd6(0x45d)],this[_0x4a0fd6(0x54b)]],![]);}get['doc'](){const _0x31b1fd=_0x48b371;return this[_0x31b1fd(0x3d1)]()[_0x31b1fd(0x50c)];}get[_0x48b371(0x4d7)](){const _0x442673=_0x48b371,_0x2e5bff=this[_0x442673(0x3d1)]()[_0x442673(0x4a3)];return _0x2e5bff?this[_0x442673(0x3fc)][_0x442673(0x61e)]['_envs'][_0x442673(0x309)](_0x2e5bff):undefined;}get[_0x48b371(0x7e4)](){const _0x37ee11=_0x48b371;return this[_0x37ee11(0x3d1)]()[_0x37ee11(0x7e4)];}get['enabled'](){const _0x2a4d7d=_0x48b371;return this[_0x2a4d7d(0x3d1)]()[_0x2a4d7d(0x63d)];}get[_0x48b371(0x374)](){const _0x5921c5=_0x48b371;return this[_0x5921c5(0x3d1)]()['isRunning'];}get[_0x48b371(0x717)](){const _0x51141c=_0x48b371;return this[_0x51141c(0x3d1)]()[_0x51141c(0x717)];}get['reason'](){const _0x747379=_0x48b371;return this[_0x747379(0x3d1)]()[_0x747379(0x589)];}get[_0x48b371(0x88d)](){const _0x1d7f95=_0x48b371,_0x532c7e=this[_0x1d7f95(0x3d1)]()[_0x1d7f95(0x88d)];return _0x532c7e?Object[_0x1d7f95(0x4cc)](new Error(_0x532c7e['message']),{'code':_0x532c7e[_0x1d7f95(0x50e)]}):null;}get['runtimeState'](){const _0x3232a2=_0x48b371;return this[_0x3232a2(0x3d1)]()[_0x3232a2(0x37d)];}get[_0x48b371(0x61f)](){const _0x45581d=_0x48b371;return this['_facade'][_0x45581d(0x4a7)][_0x45581d(0x309)](this[_0x45581d(0x45d)])??null;}get['api'](){const _0x34108f=_0x48b371;if(!this[_0x34108f(0x3d1)]()[_0x34108f(0x8e5)])return null;const _0x51f822=this;return new Proxy({},{'get'(_0x3f2764,_0x35f64b){const _0x5c4a9f=_0x34108f;if(typeof _0x35f64b===_0x5c4a9f(0x490)||_0x35f64b===_0x5c4a9f(0x801))return undefined;if(_0x35dc60[_0x51f822[_0x5c4a9f(0x45d)]]&&_0x35dc60[_0x51f822[_0x5c4a9f(0x45d)]][_0x5c4a9f(0x571)](_0x35f64b))return _0x51f822[_0x5c4a9f(0x3fc)]['_n']('apiCall',[_0x51f822[_0x5c4a9f(0x45d)],_0x51f822['name'],_0x35f64b,[]],![])[_0x5c4a9f(0x2ef)];if(_0x51f822['type']===_0x5c4a9f(0x8ee)&&_0x35f64b==='flush')return async(_0x4fb1ea={})=>{const _0x1eacd2=_0x5c4a9f,_0x1ec828=(_0x1933c1,..._0x589161)=>_0x51f822[_0x1eacd2(0x3fc)]['_n'](_0x1eacd2(0x72e),[_0x51f822[_0x1eacd2(0x45d)],_0x51f822[_0x1eacd2(0x54b)],_0x1933c1,_0x589161],!![])[_0x1eacd2(0x2ef)],_0x468188=_0x1ec828(_0x1eacd2(0x656),_0x4fb1ea??{}),_0x3276c6=Date[_0x1eacd2(0x8cc)]();for(;;){const _0xd21dbc=await _0x51f822[_0x1eacd2(0x3fc)][_0x1eacd2(0x61e)][_0x1eacd2(0x7d6)](()=>_0x1ec828(_0x1eacd2(0x20f)));if(_0xd21dbc[_0x1eacd2(0x759)]>=_0xd21dbc[_0x1eacd2(0x56d)])return;Date[_0x1eacd2(0x8cc)]()-_0x3276c6>=_0x468188&&_0x1ec828(_0x1eacd2(0x1eb),_0x4fb1ea??{},_0xd21dbc),await new Promise(_0x374c18=>setTimeout(_0x374c18,0x3));}};return(..._0x440783)=>{const _0x3d7728=_0x5c4a9f,_0x1cc378=()=>_0x51f822[_0x3d7728(0x3fc)]['_n']('apiCall',[_0x51f822[_0x3d7728(0x45d)],_0x51f822[_0x3d7728(0x54b)],_0x35f64b,_0x440783],!![]),_0x42ee6f=_0x4dd522=>{const _0x2274a4=_0x3d7728;if(_0x4dd522&&_0x4dd522[_0x2274a4(0x41a)])throw new TypeError(_0x2274a4(0x3c2)+_0x35f64b+'\x27');return _0x4dd522[_0x2274a4(0x2ef)];};if(_0x8a0f9c['has'](_0x51f822[_0x3d7728(0x45d)])&&!_0x44df1c[_0x3d7728(0x571)](_0x35f64b)){const _0x2336e6=_0x51f822[_0x3d7728(0x3fc)][_0x3d7728(0x61e)];return _0x2336e6[_0x3d7728(0x302)](()=>_0x2336e6[_0x3d7728(0x7d6)](_0x1cc378))[_0x3d7728(0x801)](_0x42ee6f);}if(_0x3b4f27[_0x3d7728(0x571)](_0x51f822[_0x3d7728(0x45d)]))try{return Promise['resolve'](_0x42ee6f(_0x1cc378()));}catch(_0xc06978){return Promise[_0x3d7728(0x4b2)](_0xc06978);}return _0x42ee6f(_0x1cc378());};}});}async[_0x48b371(0x3bf)](_0x543076={}){const _0x1cf537=_0x48b371;return await this[_0x1cf537(0x3fc)]['_nm'](_0x1cf537(0x3bf),[this[_0x1cf537(0x45d)],this[_0x1cf537(0x54b)],_0x543076]),this;}async[_0x48b371(0x45c)](){const _0x5572ed=_0x48b371;await this[_0x5572ed(0x3fc)][_0x5572ed(0x52c)](_0x5572ed(0x7c1),[this[_0x5572ed(0x45d)],this['name']]);}async['stop'](_0x5d46da={}){const _0x4bbdca=_0x48b371;await this[_0x4bbdca(0x3fc)][_0x4bbdca(0x52c)](_0x4bbdca(0x3c9),[this[_0x4bbdca(0x45d)],this[_0x4bbdca(0x54b)],_0x5d46da]);}async[_0x48b371(0x7e5)](_0x2d153d={}){const _0x1dc25a=_0x48b371;return await this[_0x1dc25a(0x3fc)][_0x1dc25a(0x52c)]('patchDeclaration',[this['type'],this[_0x1dc25a(0x54b)],_0x2d153d]),this;}async[_0x48b371(0x752)](){const _0x53d8a9=_0x48b371;await this[_0x53d8a9(0x3fc)][_0x53d8a9(0x52c)](_0x53d8a9(0x3d8),[this[_0x53d8a9(0x45d)],this[_0x53d8a9(0x54b)]]);}}class _0x51587e{constructor(_0x3c8449,_0x435fb9=null,_0x379ba4=null){const _0x5ab28f=_0x48b371;this[_0x5ab28f(0x61e)]=_0x3c8449,this[_0x5ab28f(0x4eb)]=_0x435fb9,this[_0x5ab28f(0x788)]=_0x435fb9===null,this[_0x5ab28f(0x6ee)]=_0x379ba4||this,this[_0x5ab28f(0x4a7)]=this[_0x5ab28f(0x6ee)]===this?_0x2e72b2(this):this['_root'][_0x5ab28f(0x4a7)],this[_0x5ab28f(0x536)]=new Map();}['_n'](_0x36f394,_0x5b4bb0,_0x496dac=!![]){const _0x7584a6=_0x48b371;return this[_0x7584a6(0x61e)][_0x7584a6(0x210)](_0x7584a6(0x655),this['envName'],_0x36f394,_0x5b4bb0,_0x496dac);}['_nm'](_0x51698c,_0x4e9d83){const _0x27ec6d=_0x48b371;return this['okdb']['_callMacro'](_0x27ec6d(0x655),this[_0x27ec6d(0x4eb)],_0x51698c,_0x4e9d83,!![]);}get[_0x48b371(0x609)](){const _0x286d5b=_0x48b371;return this[_0x286d5b(0x4eb)]?this[_0x286d5b(0x61e)][_0x286d5b(0x609)](this[_0x286d5b(0x4eb)]):null;}['_wrap'](_0x5b933c){const _0x276aa0=_0x48b371;if(!_0x5b933c)return null;let _0x1047b4=this[_0x276aa0(0x536)]['get'](_0x5b933c[_0x276aa0(0x82f)]);return!_0x1047b4&&(_0x1047b4=new _0x5867cf(this,_0x5b933c['key'],_0x5b933c[_0x276aa0(0x45d)],_0x5b933c[_0x276aa0(0x54b)]),this['_handles'][_0x276aa0(0x63f)](_0x5b933c[_0x276aa0(0x82f)],_0x1047b4)),_0x1047b4;}[_0x48b371(0x27c)](_0x30cf4d,_0x22c965){const _0x15ab14=_0x48b371;if(!_0x30cf4d||typeof _0x30cf4d!=='string')throw new _0x503949(_0x15ab14(0x8bb),_0x15ab14(0x6c0),{'type':_0x30cf4d});if(!_0x22c965||typeof _0x22c965!==_0x15ab14(0x559))throw new _0x503949('Engine\x20driver\x20for\x20\x22'+_0x30cf4d+_0x15ab14(0x773),_0x15ab14(0x847),{'type':_0x30cf4d});if(typeof _0x22c965[_0x15ab14(0x45c)]!==_0x15ab14(0x640))throw new _0x503949('Engine\x20driver\x20for\x20\x22'+_0x30cf4d+_0x15ab14(0x27b),_0x15ab14(0x59b),{'type':_0x30cf4d});const _0xfee335=this[_0x15ab14(0x6ee)];if(_0xfee335[_0x15ab14(0x4a7)]['has'](_0x30cf4d))throw new _0x503949(_0x15ab14(0x5cf)+_0x30cf4d+'\x22',_0x15ab14(0x750),{'type':_0x30cf4d});const _0x352c9a=_0x44bedd[_0x15ab14(0x7cf)](_0x22c965,this[_0x15ab14(0x61e)]),_0x372264=_0x44dbf8[_0x15ab14(0x4e1)](_0xc401e9=>typeof _0x22c965[_0xc401e9]===_0x15ab14(0x640)),_0x43e328=_0x22c965['docs']&&typeof _0x22c965[_0x15ab14(0x3c6)]===_0x15ab14(0x559)?_0x22c965['docs']:{};this['okdb']['_call'](_0x15ab14(0x655),null,_0x15ab14(0x27c),[_0x30cf4d,{'$id':_0x352c9a,'has':_0x372264,'docs':_0x43e328}]),_0xfee335[_0x15ab14(0x4a7)]['_set'](_0x30cf4d,_0x22c965);}get[_0x48b371(0x620)](){const _0x760154=_0x48b371;return this['okdb'][_0x760154(0x210)]('engines',null,'orchestratorStarted',[],![]);}get['orchestrator'](){const _0x51c8e7=this;return{get '_started'(){const _0x10e46a=_0x52a3;return _0x51c8e7[_0x10e46a(0x620)];}};}[_0x48b371(0x66c)](_0x47629e){const _0x3651ed=_0x48b371;if(!_0x47629e||typeof _0x47629e!==_0x3651ed(0x559))throw new _0x503949(_0x3651ed(0x7d1),_0x3651ed(0x357));if(!_0x47629e['id']||typeof _0x47629e['id']!==_0x3651ed(0x2b1))throw new _0x503949(_0x3651ed(0x514),'ENGINE_INVALID_TEMPLATE');if(![_0x3651ed(0x769),_0x3651ed(0x234)][_0x3651ed(0x495)](_0x47629e['kind']))throw new _0x503949(_0x3651ed(0x691)+_0x47629e['id'],_0x3651ed(0x357));if(typeof _0x47629e[_0x3651ed(0x624)]!==_0x3651ed(0x640))throw new _0x503949(_0x3651ed(0x3ed)+_0x47629e['id'],'ENGINE_INVALID_TEMPLATE');const _0x3037ae=this['okdb'],_0x336770=typeof _0x47629e['inputSchema']==='function';return this['_n'](_0x3651ed(0x66c),[{'id':_0x47629e['id'],'kind':_0x47629e[_0x3651ed(0x2a7)],'family':_0x47629e[_0x3651ed(0x21f)]??null,'engineType':_0x47629e[_0x3651ed(0x6ce)]??null,'pipelineFamily':_0x47629e['pipelineFamily']??null,'recommended':_0x47629e[_0x3651ed(0x31f)]===!![],'summary':_0x47629e[_0x3651ed(0x8d3)]??null,'description':_0x47629e[_0x3651ed(0x2e0)]??null,'inputSchema':_0x336770?null:_0x47629e[_0x3651ed(0x316)]??null,'inputSchemaFn':_0x336770?()=>_0x47629e[_0x3651ed(0x316)](_0x3037ae):null,'defaults':_0x47629e[_0x3651ed(0x2d1)]??null,'notes':Array[_0x3651ed(0x439)](_0x47629e['notes'])?_0x47629e[_0x3651ed(0x7ef)]:[],'links':Array[_0x3651ed(0x439)](_0x47629e[_0x3651ed(0x2dc)])?_0x47629e['links']:[],'build':(_0x3ee612,_0x4d89cb)=>_0x47629e[_0x3651ed(0x624)](_0x3ee612??{},{'okdb':_0x3037ae,'envName':_0x4d89cb??null})}],![]);}[_0x48b371(0x765)](_0x1ba1de){const _0x442d22=_0x48b371;return this['_n'](_0x442d22(0x765),[_0x1ba1de??null],![]);}[_0x48b371(0x314)](_0x4dc3c4){const _0x39d265=_0x48b371;return this['_n'](_0x39d265(0x314),[_0x4dc3c4],![]);}['previewTemplate'](_0x58cde5,_0x399e3a,_0x59d058){const _0xf7f2ae=_0x48b371;return this['_n'](_0xf7f2ae(0x86a),[_0x58cde5,_0x399e3a,_0x59d058??this[_0xf7f2ae(0x4eb)]],![]);}[_0x48b371(0x884)](){const _0x4b15cc=_0x48b371;return this['_n'](_0x4b15cc(0x884),[],![]);}async[_0x48b371(0x45c)](){const _0x4e2905=_0x48b371;return this[_0x4e2905(0x52c)](_0x4e2905(0x45c),[]);}async[_0x48b371(0x1f1)](){const _0x51403b=_0x48b371;return this[_0x51403b(0x52c)](_0x51403b(0x1f1),[]);}async['createEngine'](_0xa742c5,_0x536314,_0x16a5d1={},_0x2956c5={},_0x3955a3={}){const _0x4ffe9a=_0x48b371;return this['_wrap'](await this[_0x4ffe9a(0x52c)](_0x4ffe9a(0x1c4),[_0xa742c5,_0x536314,_0x16a5d1,_0x2956c5,_0x3955a3]));}async[_0x48b371(0x814)](_0x3ba833,_0x1aadf1,_0x4cbc0f={},_0x1c8c54={},_0x3fa865={}){const _0x3b43d1=_0x48b371;return this['_wrap'](await this[_0x3b43d1(0x52c)]('createAndStartEngine',[_0x3ba833,_0x1aadf1,_0x4cbc0f,_0x1c8c54,_0x3fa865]));}[_0x48b371(0x87e)](_0x141b37,_0x2a33b2){const _0x2109eb=_0x48b371;return this[_0x2109eb(0x215)](this['_n'](_0x2109eb(0x87e),[_0x141b37,_0x2a33b2],![]));}[_0x48b371(0x6e5)](_0x5ed788,_0x4f8d4b){const _0x89648a=_0x48b371;return this[_0x89648a(0x215)](this['_n']('getRunningEngine',[_0x5ed788,_0x4f8d4b],![]));}[_0x48b371(0x47e)](_0x29dc2c){const _0x427157=_0x48b371;return this['_n']('list',[_0x29dc2c??null],![])['map'](_0x51fdd8=>this[_0x427157(0x215)](_0x51fdd8));}async[_0x48b371(0x388)](_0x391e9c,_0x1df6ac){const _0x165a99=_0x48b371;return this[_0x165a99(0x215)](await this[_0x165a99(0x52c)](_0x165a99(0x388),[_0x391e9c,_0x1df6ac]));}async[_0x48b371(0x5eb)](_0x21a2e6,_0x20a5ee){const _0x11fd62=_0x48b371;return this[_0x11fd62(0x536)][_0x11fd62(0x2cb)](_0x21a2e6+':'+_0x20a5ee),this[_0x11fd62(0x52c)]('uninstallEngine',[_0x21a2e6,_0x20a5ee]);}async[_0x48b371(0x465)](_0x12b753){const _0x311da3=_0x48b371;return this[_0x311da3(0x52c)](_0x311da3(0x465),[_0x12b753]);}async[_0x48b371(0x85a)](){const _0x47a36e=_0x48b371;return this['_nm'](_0x47a36e(0x85a),[]);}}function _0x2e72b2(_0x3fc1aa){const _0x2c7e68=_0x48b371,_0x3f7f2d=new Map();return{'has':_0x7d32a9=>_0x3f7f2d[_0x2c7e68(0x571)](_0x7d32a9)||_0x3fc1aa['okdb']['_call'](_0x2c7e68(0x655),null,'hasDriver',[_0x7d32a9],![]),'get':_0x5ea1af=>_0x3f7f2d[_0x2c7e68(0x309)](_0x5ea1af),'set':()=>{const _0x49ee15=_0x2c7e68;throw new _0x503949('use\x20engines.registerDriver()',_0x49ee15(0x5cb));},'_set':(_0x321616,_0x236f08)=>_0x3f7f2d[_0x2c7e68(0x63f)](_0x321616,_0x236f08),'keys':()=>_0x3f7f2d[_0x2c7e68(0x4ac)](),'entries':()=>_0x3f7f2d['entries'](),'values':()=>_0x3f7f2d[_0x2c7e68(0x5d0)](),get 'size'(){const _0x227949=_0x2c7e68;return _0x3f7f2d[_0x227949(0x8d2)];},[Symbol['iterator']]:()=>_0x3f7f2d[Symbol[_0x2c7e68(0x344)]]()};}class _0x163d0d{constructor(_0x49db17,_0x5c7012=null){const _0x4910ae=_0x48b371;this[_0x4910ae(0x61e)]=_0x49db17,this[_0x4910ae(0x4eb)]=_0x5c7012;}['_n'](_0x310d7d,_0x4151b4,_0x134664=!![]){const _0x46ce68=_0x48b371;return this['okdb'][_0x46ce68(0x210)](_0x46ce68(0x723),this['envName'],_0x310d7d,_0x4151b4,_0x134664);}[_0x48b371(0x52c)](_0x383c05,_0x5df928){const _0x3a77b0=_0x48b371;return this['okdb']['_callMacro'](_0x3a77b0(0x723),this[_0x3a77b0(0x4eb)],_0x383c05,_0x5df928,!![]);}get[_0x48b371(0x377)](){const _0x16d2df=_0x48b371;return this[_0x16d2df(0x4eb)]===null;}async[_0x48b371(0x2ea)](_0xd9328a){const _0x378a29=_0x48b371;return this['_n'](_0x378a29(0x2ea),[_0xd9328a]);}async['get'](_0x3471d9,_0x3e9ef5){const _0x23f2ba=_0x48b371;return this['_n'](_0x23f2ba(0x309),[_0x3471d9,_0x3e9ef5??null],![]);}async['getRecord'](_0x5054f1,_0x26ed95){return this['_n']('getRecord',[_0x5054f1,_0x26ed95??null],![]);}async[_0x48b371(0x47e)](_0x3f0626){const _0xfa8a5c=_0x48b371;return this['_n'](_0xfa8a5c(0x47e),[_0x3f0626??null],![]);}async[_0x48b371(0x4ff)](_0x32107e={}){const _0x1b61f2=_0x48b371;return this['_n']('listRecords',[_0x32107e?.[_0x1b61f2(0x4eb)]??null],![]);}[_0x48b371(0x8d7)](_0x4a4d42,_0x3ee6ba){return this['_n']('validate',[_0x4a4d42,_0x3ee6ba??null],![]);}async[_0x48b371(0x67b)](_0x56c937){const _0x180ac1=_0x48b371;return this[_0x180ac1(0x52c)](_0x180ac1(0x67b),[_0x56c937]);}async[_0x48b371(0x5b4)](_0x5a19c2,_0x4fee67){const _0x4b3ecb=_0x48b371;return this[_0x4b3ecb(0x52c)](_0x4b3ecb(0x5b4),[_0x5a19c2,_0x4fee67]);}async[_0x48b371(0x1f1)](_0x282766){const _0x2e1a8d=_0x48b371;return this[_0x2e1a8d(0x52c)](_0x2e1a8d(0x1f1),[_0x282766]);}async[_0x48b371(0x7b0)](_0x2c4060){const _0x2d01db=_0x48b371;if(!_0x2c4060||typeof _0x2c4060!==_0x2d01db(0x559)||!_0x2c4060[_0x2d01db(0x54b)]||!_0x2c4060['engines'])return _0x2c4060;for(let _0x5ad0d6=0x0;_0x5ad0d6<0x3;_0x5ad0d6++)await new Promise(_0xfc174d=>setImmediate(_0xfc174d));try{const _0x2d799b=this[_0x2d01db(0x4eb)]!==null?await this[_0x2d01db(0x309)](_0x2c4060[_0x2d01db(0x54b)]):_0x2c4060[_0x2d01db(0x609)]?await this[_0x2d01db(0x309)](_0x2c4060[_0x2d01db(0x609)],_0x2c4060['name']):null;return _0x2d799b||_0x2c4060;}catch{return _0x2c4060;}}async[_0x48b371(0x45c)](_0x1e350e){const _0x44d997=_0x48b371;return this['_settled'](await this[_0x44d997(0x52c)](_0x44d997(0x45c),[_0x1e350e]));}async[_0x48b371(0x388)](_0x53b094){const _0x5eb1e4=_0x48b371;return this[_0x5eb1e4(0x7b0)](await this[_0x5eb1e4(0x52c)](_0x5eb1e4(0x388),[_0x53b094]));}async[_0x48b371(0x8da)](_0x1484ab){const _0x43ca9e=_0x48b371;return this[_0x43ca9e(0x52c)](_0x43ca9e(0x8da),[_0x1484ab]);}async[_0x48b371(0x6d6)](_0x2bafdf,_0x2bca1f,_0x235d10){const _0x3c6c5c=_0x48b371;return this['_nm'](_0x3c6c5c(0x6d6),[_0x2bafdf,_0x2bca1f,_0x235d10]);}async[_0x48b371(0x504)](_0xa4cc7){const _0x1b256a=_0x48b371;return this[_0x1b256a(0x52c)](_0x1b256a(0x504),[_0xa4cc7]);}async['stopAll'](){const _0x24311e=_0x48b371;return this[_0x24311e(0x52c)](_0x24311e(0x560),[]);}async[_0x48b371(0x775)](){const _0x472d1f=_0x48b371;return this['_nm'](_0x472d1f(0x775),[]);}[_0x48b371(0x2b8)](_0x3403ad,_0x31763d){const _0xb1b092=_0x48b371;return this['_n'](_0xb1b092(0x2b8),[_0x3403ad,_0x31763d],![]);}}return engines={'OKDBEngines':_0x51587e,'OKDBPipelines':_0x163d0d,'OKDBEngineHandle':_0x5867cf},engines;}var functions,hasRequiredFunctions;function requireFunctions(){const _0x26722c=_0x5c70f8;if(hasRequiredFunctions)return functions;hasRequiredFunctions=0x1;const {optionsArg:_0x208b79}=requireErrors(),_0x1e0275=Number(process.env.OKDB_FN_POLL_MS)||0x14;class _0x35cf84{constructor(_0x18aef5,_0x19e6ff=null){const _0x25c171=_0x52a3;this[_0x25c171(0x61e)]=_0x18aef5,this['envName']=_0x19e6ff??_0x25c171(0x5b5);}get[_0x26722c(0x609)](){const _0xe55d04=_0x26722c;return this['okdb'][_0xe55d04(0x612)][_0xe55d04(0x309)](this[_0xe55d04(0x4eb)])??null;}['_n'](_0x2c9b72,_0xada4b5=[],_0x69c0ba=!![]){const _0x388d01=_0x26722c;try{return this[_0x388d01(0x61e)][_0x388d01(0x210)](_0x388d01(0x7b5),this['envName'],_0x2c9b72,_0xada4b5,_0x69c0ba);}catch(_0x4c0558){throw _0x5d79c8(_0x4c0558);}}async[_0x26722c(0x52c)](_0x2af5b8,_0x540aae=[]){const _0x1ffad8=_0x26722c;try{return await this[_0x1ffad8(0x61e)][_0x1ffad8(0x661)](_0x1ffad8(0x7b5),this['envName'],_0x2af5b8,_0x540aae,!![]);}catch(_0x4c9246){throw _0x5d79c8(_0x4c9246);}}async[_0x26722c(0x47e)](){const _0x221d75=_0x26722c;return this['_n'](_0x221d75(0x47e),[],![]);}async['get'](_0x3b4ddd){const _0x55c322=_0x26722c;return this['_n'](_0x55c322(0x309),[_0x3b4ddd],![]);}async[_0x26722c(0x67b)](_0x1da80c){const _0x3e0804=_0x26722c;return this['_n'](_0x3e0804(0x67b),[_0x1da80c]);}async['update'](_0x1aded9,_0x10e9e0={}){const _0x3f26b0=_0x26722c;return this['_n'](_0x3f26b0(0x5b4),[_0x1aded9,_0x10e9e0]);}async[_0x26722c(0x504)](_0x3b3ed1){const _0x1bfcc0=_0x26722c;return this['_n'](_0x1bfcc0(0x504),[_0x3b3ed1]);}async[_0x26722c(0x473)](_0x2d9c4a){const _0x1114eb=_0x26722c,{functionName:functionName=null}=_0x208b79(_0x2d9c4a);return this['_n'](_0x1114eb(0x473),[{'functionName':functionName}],![]);}async[_0x26722c(0x5e1)](_0x2356bd){const _0x3ec345=_0x26722c;return this['_n'](_0x3ec345(0x5e1),[_0x2356bd],![]);}async['recordRun'](_0x16caf0){const _0x198f2d=_0x26722c;return _0x16caf0=_0x208b79(_0x16caf0,_0x198f2d(0x84c)),this['_n']('recordRun',[_0x16caf0]);}async['run'](_0x219549,_0x4a00ae=null,_0x4492c5={}){const _0x4507a1=_0x26722c,_0x273be0={..._0x4492c5},_0x41869f=_0x273be0[_0x4507a1(0x411)];if(_0x41869f)_0x273be0['aborted']=!!_0x41869f['aborted'];delete _0x273be0[_0x4507a1(0x411)];const _0x512f36=await this[_0x4507a1(0x52c)]('runStart',[_0x219549,_0x4a00ae,_0x273be0]),_0x467479=this['okdb'],_0x2aced4=()=>_0x467479[_0x4507a1(0x5fd)][_0x4507a1(0x2c2)]();if(_0x41869f&&typeof _0x41869f['addEventListener']===_0x4507a1(0x640))_0x41869f['addEventListener']('abort',_0x2aced4,{'once':!![]});let _0x5cef06=![];try{for(;;){const _0x456973=_0x467479[_0x4507a1(0x5fd)][_0x4507a1(0x6c4)](_0x1e0275);let _0xacb18d;try{_0xacb18d=await _0x467479[_0x4507a1(0x661)]('functions',this[_0x4507a1(0x4eb)],_0x4507a1(0x78d),[_0x512f36,!!_0x41869f?.['aborted']],![],![]);}catch(_0x41d4b7){_0x5cef06=!![];throw _0x5d79c8(_0x41d4b7);}if(!_0xacb18d||_0xacb18d[_0x4507a1(0x7fe)]!==!![])return _0x5cef06=!![],_0x467479['_pumper'][_0x4507a1(0x2c2)](),_0xacb18d;if(_0xacb18d['progressed'])_0x467479[_0x4507a1(0x5fd)]['wake']();await _0x456973;}}finally{if(_0x41869f&&typeof _0x41869f[_0x4507a1(0x527)]===_0x4507a1(0x640))_0x41869f[_0x4507a1(0x527)]('abort',_0x2aced4);if(!_0x5cef06)try{_0x467479[_0x4507a1(0x210)](_0x4507a1(0x7b5),this[_0x4507a1(0x4eb)],_0x4507a1(0x899),[_0x512f36],![]);}catch{}}}async[_0x26722c(0x295)](_0x41affd={},_0x58203b=null,_0x292d74={}){const _0x5af68c=_0x26722c;return this[_0x5af68c(0x52c)](_0x5af68c(0x295),[_0x41affd,_0x58203b,_0x292d74]);}async[_0x26722c(0x1f1)](){}}function _0x5d79c8(_0x3fb22c){const _0x5c4e48=_0x26722c;if(_0x3fb22c&&_0x3fb22c['details']&&_0x3fb22c[_0x5c4e48(0x37e)][_0x5c4e48(0x404)])_0x3fb22c['_runRecord']=_0x3fb22c[_0x5c4e48(0x37e)][_0x5c4e48(0x404)];return _0x3fb22c;}return functions={'OKDBFunctions':_0x35cf84},functions;}var processor={'exports':{}},lock,hasRequiredLock;function requireLock(){const _0x7d7104=_0x5c70f8;if(hasRequiredLock)return lock;hasRequiredLock=0x1;const {optionsArg:_0xb024cc}=requireErrors();class _0x21d276{constructor(_0x49916c,_0x6e3383){const _0x14a601=_0x52a3;this[_0x14a601(0x431)]=_0x49916c,this[_0x14a601(0x418)]=_0x6e3383;}['_n'](_0x5ad877,_0x25e076=[]){const _0x3e4c79=_0x52a3;return this['_lock']['_n'](_0x5ad877,[this[_0x3e4c79(0x418)],..._0x25e076]);}[_0x7d7104(0x8e7)](){const _0x180b23=_0x7d7104;return this['_n'](_0x180b23(0x8e7));}get['acquiredAt'](){const _0x228351=_0x7d7104;return this['_n'](_0x228351(0x629));}[_0x7d7104(0x6f1)](){const _0x5de5e5=_0x7d7104;return this['_n'](_0x5de5e5(0x6f1));}['extend'](_0xf859f2){const _0x34ebb5=_0x7d7104;return this['_n'](_0x34ebb5(0x4f9),[_0xf859f2]);}async['release'](){const _0x26e8c3=_0x7d7104;return this['_n'](_0x26e8c3(0x49e));}}class _0x2c7dde{constructor(_0x162962,_0x29fbea,_0x4119a1,_0x1cfc6e){const _0x35057c=_0x7d7104,{ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}=_0xb024cc(_0x1cfc6e);this['okdb']=_0x162962,this[_0x35057c(0x845)]=_0x4119a1,this[_0x35057c(0x418)]=_0x162962[_0x35057c(0x210)](_0x35057c(0x555),_0x29fbea,_0x35057c(0x260),[_0x4119a1,ttlMs,heartbeatMs],![]),this[_0x35057c(0x4dd)]=_0x29fbea;}['_n'](_0x2570be,_0x27d58f=[]){const _0x5e0915=_0x7d7104;return this[_0x5e0915(0x61e)]['_call'](_0x5e0915(0x555),this[_0x5e0915(0x4dd)],_0x2570be,_0x27d58f,![]);}[_0x7d7104(0x28c)](_0x2f3d36){const _0xcddb7b=_0x7d7104;return this['_n']('key',[this[_0xcddb7b(0x418)],_0x2f3d36]);}async[_0x7d7104(0x462)](_0x1961c0,_0x25cabd={},_0x46dd98={}){const _0x222b5d=_0x7d7104,_0x49808e=this['_n'](_0x222b5d(0x462),[this[_0x222b5d(0x418)],_0x1961c0,_0x25cabd,_0x46dd98]);return{'acquired':_0x49808e[_0x222b5d(0x761)],'handle':_0x49808e[_0x222b5d(0x349)]==null?null:new _0x21d276(this,_0x49808e[_0x222b5d(0x349)]),'current':_0x49808e['current']};}[_0x7d7104(0x4ec)](_0x5d5857){const _0x5eb4b8=_0x7d7104;return this['_n'](_0x5eb4b8(0x4ec),[this[_0x5eb4b8(0x418)],_0x5d5857]);}[_0x7d7104(0x47e)](){const _0x5ead18=_0x7d7104;return this['_n']('list',[this[_0x5ead18(0x418)]]);}[_0x7d7104(0x5dd)](_0x88c300){const _0x34ac4b=_0x7d7104;return this['_n']('signalWant',[this[_0x34ac4b(0x418)],_0x88c300]);}[_0x7d7104(0x312)](_0x2b0e5a,_0x2c25d2=0x3e8){const _0x1a33d9=_0x7d7104;return this['_n']('isWanted',[this[_0x1a33d9(0x418)],_0x2b0e5a,_0x2c25d2]);}}return lock={'NativeLock':_0x2c7dde,'NativeLockHandle':_0x21d276},lock;}var hasRequiredProcessor;function requireProcessor(){const _0x3839e7=_0x5c70f8;if(hasRequiredProcessor)return processor[_0x3839e7(0x28e)];hasRequiredProcessor=0x1;const _0x1b63ef=requireBridge(),{RawDb:_0x3e7f70}=requireRawdb(),{NativeLock:_0x3d7e68}=requireLock();function _0x106cc7(_0x4ccb20){}class _0x552d4e{constructor(_0x2e5d3b){const _0x232cc1=_0x3839e7;this[_0x232cc1(0x609)]=_0x2e5d3b,this[_0x232cc1(0x61e)]=_0x2e5d3b;try{this['_n']('setLogSink',[(_0x48af38,_0x19336a)=>{const _0x2ae776=_0x232cc1,_0x8fc2e6=this[_0x2ae776(0x61e)]['log'],_0x55fa89=_0x8fc2e6?.[_0x48af38]??_0x8fc2e6?.['info'];if(typeof _0x55fa89===_0x2ae776(0x640))_0x55fa89[_0x2ae776(0x4d1)](_0x8fc2e6,_0x19336a);}],![]);}catch{}}['_n'](_0x25428e,_0x4c1733,_0x7e51bf=!![]){const _0x53d446=_0x3839e7;return this[_0x53d446(0x609)][_0x53d446(0x61e)][_0x53d446(0x210)](_0x53d446(0x614),this[_0x53d446(0x609)][_0x53d446(0x54b)],_0x25428e,_0x4c1733,_0x7e51bf);}['register'](_0x34c69e,_0x3a26de={}){const _0x36e964=_0x3839e7,_0x12d584={..._0x3a26de};if(typeof _0x12d584[_0x36e964(0x3ea)]==='function'&&_0x12d584[_0x36e964(0x882)]!=null)throw new Error(_0x36e964(0x28a)+_0x36e964(0x786));if(typeof _0x12d584[_0x36e964(0x3ea)]==='string'&&_0x12d584[_0x36e964(0x882)]!=null)throw new Error(_0x36e964(0x3e3));if(_0x12d584[_0x36e964(0x882)]!=null){if(!_0x12d584[_0x36e964(0x882)]['path'])throw new Error(_0x36e964(0x1d3));const _0x3831ba=_0x12d584[_0x36e964(0x882)][_0x36e964(0x727)]??_0x12d584[_0x36e964(0x882)]['exportName']??_0x36e964(0x781),_0x1574c9=require[_0x36e964(0x22e)](_0x12d584[_0x36e964(0x882)][_0x36e964(0x500)]),_0x22d827=require(_0x1574c9),_0x1f5f13=_0x22d827[_0x3831ba]??_0x22d827[_0x36e964(0x2a6)]??_0x22d827;if(typeof _0x1f5f13!==_0x36e964(0x640))throw new Error(_0x36e964(0x6dc)+_0x12d584[_0x36e964(0x882)][_0x36e964(0x500)]+_0x36e964(0x1e8)+_0x3831ba+'\x27\x20is\x20not\x20a\x20function');this['env'][_0x36e964(0x61e)]['_staticCall'](_0x36e964(0x614),'registerModule',[_0x1574c9,_0x3831ba,_0x1f5f13]),_0x12d584[_0x36e964(0x882)]={'path':_0x1574c9,'export':_0x3831ba};}if(_0x12d584[_0x36e964(0x484)]!=null){if(typeof _0x12d584[_0x36e964(0x484)][_0x36e964(0x882)]!=='string')throw new Error('processor:\x20quantum.module\x20must\x20be\x20a\x20string');const _0x4ffe30=require[_0x36e964(0x22e)](_0x12d584[_0x36e964(0x484)][_0x36e964(0x882)]),_0x49f998=require(_0x4ffe30),_0x644c6e=_0x12d584[_0x36e964(0x484)]['exportName'],_0x259833=_0x644c6e?_0x49f998[_0x644c6e]:_0x49f998[_0x36e964(0x2a6)]??_0x49f998;if(typeof _0x259833===_0x36e964(0x640)){const _0x4faf45=_0x644c6e?_0x12d584[_0x36e964(0x484)][_0x36e964(0x882)]+'#'+_0x644c6e:_0x12d584[_0x36e964(0x484)][_0x36e964(0x882)];this[_0x36e964(0x609)][_0x36e964(0x61e)]['_staticCall'](_0x36e964(0x614),_0x36e964(0x7c5),[_0x4faf45,_0x259833]);}_0x12d584[_0x36e964(0x484)]={..._0x12d584[_0x36e964(0x484)]};}_0x12d584[_0x36e964(0x690)]!=null&&typeof _0x12d584[_0x36e964(0x690)]===_0x36e964(0x559)&&(_0x12d584['payload']={'$payload':_0x1b63ef['storePayload'](_0x12d584[_0x36e964(0x690)],this[_0x36e964(0x609)]['okdb'])});if(_0x12d584['rebuild']!=null&&typeof _0x12d584[_0x36e964(0x8da)]!==_0x36e964(0x640))throw new Error(_0x36e964(0x89e));const _0x10eaf1=this['_n'](_0x36e964(0x811),[_0x34c69e??null,_0x12d584]);return this[_0x36e964(0x4c7)](_0x10eaf1['id'],_0x10eaf1[_0x36e964(0x324)]);}[_0x3839e7(0x4c7)](_0x2bd549,_0x2781b3){const _0x30bc30=_0x3839e7,_0x591846=this,_0x1d6f53=async()=>{const _0x390102=_0x52a3;_0x591846['_n'](_0x390102(0x827),[_0x2bd549]);};return _0x1d6f53['id']=_0x2bd549,_0x1d6f53[_0x30bc30(0x324)]=_0x2781b3,_0x1d6f53[_0x30bc30(0x354)]=()=>_0x2781b3?_0x591846['_n'](_0x30bc30(0x6e0),[_0x2bd549],![]):0x0,_0x1d6f53[_0x30bc30(0x717)]=()=>_0x591846[_0x30bc30(0x309)](_0x2bd549),_0x1d6f53[_0x30bc30(0x575)]=_0x1d6f53[_0x30bc30(0x717)],_0x1d6f53[_0x30bc30(0x3b0)]=()=>_0x591846[_0x30bc30(0x3b0)](_0x2bd549),_0x1d6f53[_0x30bc30(0x2ba)]=()=>_0x591846[_0x30bc30(0x2ba)](_0x2bd549),_0x1d6f53[_0x30bc30(0x2b5)]=()=>_0x591846[_0x30bc30(0x2b5)](_0x2bd549),_0x1d6f53['retry']=()=>_0x591846['retry'](_0x2bd549),_0x1d6f53['awaitIdle']=_0x2b0a6f=>_0x591846[_0x30bc30(0x8bf)](_0x2bd549,_0x2b0a6f),_0x1d6f53;}get['_stops'](){const _0x352018=_0x3839e7;try{return this['_n'](_0x352018(0x47e),[],![])[_0x352018(0x35e)](_0x53adb2=>({'id':_0x53adb2['id']}));}catch{return[];}}async[_0x3839e7(0x3f7)](_0x111ed4){const _0x3485f0=_0x3839e7;return new Set(this['_n'](_0x3485f0(0x3f7),[]));}[_0x3839e7(0x510)](_0x4f455d){const _0x1b1d5f=_0x3839e7;return this['_n'](_0x1b1d5f(0x510),[[..._0x4f455d??[]]]);}get[_0x3839e7(0x7c2)](){const _0x16305a=_0x3839e7;return new Set(this['_n']('list',[],![])['filter'](_0xb03e9a=>_0xb03e9a['type']==null)[_0x16305a(0x35e)](_0x401609=>_0x401609['id']));}['_ensureDbs'](){}get[_0x3839e7(0x431)](){const _0x102cd1=_0x3839e7;if(!this[_0x102cd1(0x6f3)]){const _0x570459=new _0x3d7e68(this['env']['okdb'],this[_0x102cd1(0x609)][_0x102cd1(0x54b)],_0x102cd1(0x614)),_0x4bd148=this['env'];_0x570459[_0x102cd1(0x3e6)]=()=>new _0x3e7f70(_0x4bd148,_0x102cd1(0x7a3)),this[_0x102cd1(0x6f3)]=_0x570459;}return this[_0x102cd1(0x6f3)];}[_0x3839e7(0x794)](_0x3a1309,_0x27e606){const _0x4f6d0d=_0x3839e7;return this['_n'](_0x4f6d0d(0x3e7),[typeof _0x3a1309===_0x4f6d0d(0x2b1)?_0x3a1309:_0x3a1309['id'],_0x27e606?.[_0x4f6d0d(0x211)]??String(_0x27e606??'')]);}get[_0x3839e7(0x43c)](){const _0x569c17=_0x3839e7;return this[_0x569c17(0x5bb)]||(this[_0x569c17(0x5bb)]=new _0x3e7f70(this['env'],'~proc:state'));}get[_0x3839e7(0x710)](){const _0x25ac58=_0x3839e7,_0x19baac=this,_0x4fce48=_0x255375=>{const _0xda6ae8=_0x52a3,_0x215036=()=>_0x19baac['_n'](_0xda6ae8(0x85c),[_0x255375],![]);if(!_0x215036())return undefined;const _0x51c857=_0x269bd5=>()=>_0x215036()?.[_0x269bd5],_0xfdd5a2={'id':_0x255375},_0x8203ce=(_0x445359,_0x9a8f08,_0x142302)=>Object[_0xda6ae8(0x1fd)](_0xfdd5a2,_0x445359,{'get':_0x9a8f08,'set':_0x142302,'enumerable':!![],'configurable':!![]});return _0x8203ce('state',_0x51c857(_0xda6ae8(0x74f))),_0x8203ce(_0xda6ae8(0x5a9),_0x51c857('mode')),_0x8203ce(_0xda6ae8(0x8c6),_0x51c857(_0xda6ae8(0x8c6))),_0x8203ce(_0xda6ae8(0x4c8),_0x51c857(_0xda6ae8(0x4c8)),_0xd88cd6=>_0x19baac['_n'](_0xda6ae8(0x2d4),[_0x255375,_0xd88cd6])),_0x8203ce(_0xda6ae8(0x324),_0x51c857('cursorKey')),_0x8203ce(_0xda6ae8(0x79a),_0x51c857(_0xda6ae8(0x43e)),_0x616456=>_0x19baac['_n'](_0xda6ae8(0x578),[_0x255375,!!_0x616456])),_0x8203ce(_0xda6ae8(0x30f),_0x51c857(_0xda6ae8(0x208))),_0x8203ce('flushQuantum',_0x51c857(_0xda6ae8(0x4a6))),_0x8203ce(_0xda6ae8(0x1f6),_0x51c857(_0xda6ae8(0x1f6))),_0x8203ce(_0xda6ae8(0x829),_0x51c857(_0xda6ae8(0x23e)),_0x1767d3=>_0x19baac['_n']('setModeApplied',[_0x255375,_0x1767d3])),_0x8203ce(_0xda6ae8(0x447),()=>_0x19baac[_0xda6ae8(0x309)](_0x255375)?.['meta']),_0x8203ce('_lockHandle',()=>_0x215036()?.[_0xda6ae8(0x563)]?{'isHeld':()=>!!_0x215036()?.[_0xda6ae8(0x563)]}:null),_0x8203ce(_0xda6ae8(0x8e0),()=>_0x215036()?.[_0xda6ae8(0x561)]?()=>{}:null),_0x8203ce('_flushIntervalTimer',()=>_0x215036()?.[_0xda6ae8(0x4e9)]?{}:null),_0x8203ce(_0xda6ae8(0x602),()=>_0x215036()?.[_0xda6ae8(0x6c2)]?{}:null),_0xfdd5a2;},_0x4d247c=()=>_0x19baac['_n'](_0x25ac58(0x47e),[],![])[_0x25ac58(0x35e)](_0x4978c3=>_0x4978c3['id']);return{'get':_0x358b07=>_0x4fce48(_0x358b07),'has':_0x249be9=>_0x4d247c()['includes'](_0x249be9),get 'size'(){const _0x5e3110=_0x25ac58;return _0x4d247c()[_0x5e3110(0x68a)];},'keys':()=>_0x4d247c()[Symbol[_0x25ac58(0x344)]](),'values':()=>_0x4d247c()[_0x25ac58(0x35e)](_0x4fce48)[Symbol[_0x25ac58(0x344)]](),'entries':()=>_0x4d247c()[_0x25ac58(0x35e)](_0x968c14=>[_0x968c14,_0x4fce48(_0x968c14)])[Symbol['iterator']](),[Symbol[_0x25ac58(0x344)]]:()=>_0x4d247c()[_0x25ac58(0x35e)](_0x21d73b=>[_0x21d73b,_0x4fce48(_0x21d73b)])[Symbol[_0x25ac58(0x344)]](),'forEach':_0x206f7f=>_0x4d247c()['forEach'](_0x4b8872=>_0x206f7f(_0x4fce48(_0x4b8872),_0x4b8872))};}async[_0x3839e7(0x560)](){return this['_n']('stopAll',[]);}[_0x3839e7(0x47e)](){const _0x314f02=_0x3839e7,_0x547357=this['_n']('list',[],![]);if(!this[_0x314f02(0x609)][_0x314f02(0x54b)][_0x314f02(0x38a)]('~'))try{const _0x3060ba=this['env'][_0x314f02(0x61e)][_0x314f02(0x447)];for(const _0x70efc7 of _0x3060ba[_0x314f02(0x4c3)](this[_0x314f02(0x609)]['name'])){for(const _0x4c629e of _0x3060ba['listIndexes'](_0x70efc7,this[_0x314f02(0x609)][_0x314f02(0x54b)])){const _0x582841=_0x314f02(0x2fb)+_0x70efc7+':'+_0x4c629e;_0x547357[_0x314f02(0x28d)]({'id':_0x582841,'type':_0x70efc7,'mode':_0x314f02(0x3e2),'state':'online','paused':![],'lag':0x0,'cursorKey':_0x582841,'meta':{'name':_0x582841}});}}}catch{}return _0x547357;}[_0x3839e7(0x43f)](){return this['_n']('tierList',[],![]);}[_0x3839e7(0x2f8)](){const _0x16409b=_0x3839e7;return this['_n'](_0x16409b(0x2f8),[],![]);}['durableCursorFloor'](){const _0x1297d5=_0x3839e7;return this['_n'](_0x1297d5(0x7eb),[],![]);}[_0x3839e7(0x309)](_0xd33e88){return this['_n']('get',[_0xd33e88],![]);}[_0x3839e7(0x5e0)](_0x209070){const _0x2ef5ab=_0x3839e7;return this['get'](typeof _0x209070===_0x2ef5ab(0x2b1)?_0x209070:_0x209070['id']);}[_0x3839e7(0x2e8)](_0x69bcfd){const _0x4d70e4=_0x3839e7;return this['_n'](_0x4d70e4(0x2e8),[_0x69bcfd],![]);}[_0x3839e7(0x770)](_0x45ec8b){const _0x51f1f4=_0x3839e7;return this['_n'](_0x51f1f4(0x770),[_0x45ec8b]);}['markSnapshotComplete'](_0x27d849){const _0x1cf9da=_0x3839e7;return this['_n'](_0x1cf9da(0x1ee),[_0x27d849]);}[_0x3839e7(0x817)](_0x25b8c0){return this['_n']('isSnapshotComplete',[_0x25b8c0],![]);}[_0x3839e7(0x366)](_0xdb1ec6,_0x4f72d9){const _0x1946ac=_0x3839e7;return this['_n'](_0x1946ac(0x366),[_0xdb1ec6,_0x4f72d9]);}async[_0x3839e7(0x8bf)](_0x1bb3e9,_0x2ced04){const _0x1a0394=_0x3839e7;return this['_n'](_0x1a0394(0x8bf),[_0x1bb3e9,_0x2ced04??0x7530]);}[_0x3839e7(0x3b0)](_0x5da56e){return this['_n']('pause',[_0x5da56e]);}[_0x3839e7(0x2ba)](_0x4dd3d5){const _0x4f7ad3=_0x3839e7;return this['_n'](_0x4f7ad3(0x2ba),[_0x4dd3d5]);}async[_0x3839e7(0x44e)](_0x1d25da){return this['_n']('setClaiming',[_0x1d25da]);}[_0x3839e7(0x2b5)](_0xec99b2){const _0x4ef333=_0x3839e7;return this['_n'](_0x4ef333(0x2b5),[_0xec99b2]);}[_0x3839e7(0x62c)](_0x47c271){const _0xe1c254=_0x3839e7;return this['_n'](_0xe1c254(0x62c),[_0x47c271]);}[_0x3839e7(0x388)](_0x1083d8,_0x3b95fe={}){const _0x1c4f0e=_0x3839e7;return this['_n'](_0x1c4f0e(0x388),[_0x1083d8,_0x3b95fe]);}async[_0x3839e7(0x581)](_0x3a0cfd,_0x32c736,_0x49810a){const _0xc76c5e=_0x3839e7,[_0x2cbe55,_0x43373c]=this['_n'](_0xc76c5e(0x581),[_0x3a0cfd,_0x32c736,_0x49810a]);return{'version':_0x2cbe55,'flipClock':_0x43373c};}async[_0x3839e7(0x866)](_0x3a1a32,_0x2623a0,_0x566cfd={}){const _0x2adbe8=_0x3839e7;return this['_n'](_0x2adbe8(0x866),[_0x3a1a32,_0x2623a0,_0x566cfd]);}}_0x552d4e[_0x3839e7(0x6ba)]=function _0x396742(_0x3ba68a,_0x377d62){const _0x46ebb9=_0x3839e7;if(typeof _0x3ba68a!==_0x46ebb9(0x2b1)||!_0x3ba68a)throw new Error(_0x46ebb9(0x881));if(typeof _0x377d62!==_0x46ebb9(0x640))throw new Error(_0x46ebb9(0x6e2));_0x1aa34a(_0x46ebb9(0x614),_0x46ebb9(0x6ba),[_0x3ba68a,_0x377d62]);},_0x552d4e['registerQuantum']=function _0x192c47(_0x52d598,_0x2371d3){const _0x6ea195=_0x3839e7;if(typeof _0x52d598!==_0x6ea195(0x2b1)||!_0x52d598)throw new Error('registerQuantum:\x20name\x20must\x20be\x20a\x20non-empty\x20string');if(typeof _0x2371d3!=='function')throw new Error(_0x6ea195(0x48c));let _0x3b2474=null;_0x1aa34a('proc','registerQuantum',[_0x52d598,(_0x451397,_0x37170c)=>{if(!_0x3b2474)_0x3b2474=_0x2371d3();return _0x3b2474(_0x451397,_0x37170c);}]);},_0x552d4e[_0x3839e7(0x4bd)]=_0x3aa76e=>/closed|not open|released/i[_0x3839e7(0x2b6)](String(_0x3aa76e)),_0x552d4e['_inlineClosureWarned']=![];function _0x1aa34a(_0x5405e,_0x1c9b45,_0x53264e){const {staticCall:_0x207490}=requireLib();return _0x207490(_0x5405e,_0x1c9b45,_0x53264e);}return processor[_0x3839e7(0x28e)]=_0x552d4e,processor[_0x3839e7(0x28e)][_0x3839e7(0x345)]=_0x552d4e,processor[_0x3839e7(0x28e)][_0x3839e7(0x29b)]=_0x106cc7,processor[_0x3839e7(0x28e)];}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x4cd95a=_0x5c70f8;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x4710ae={'PUT':_0x4cd95a(0x253),'REMOVE':_0x4cd95a(0x504),'INDEX_DROP':_0x4cd95a(0x8e3),'INDEX_REGISTER':_0x4cd95a(0x8cb),'INDEX_RESET':_0x4cd95a(0x591),'TYPE_REGISTER':_0x4cd95a(0x343),'TYPE_DROP':_0x4cd95a(0x2a4),'FTS_REGISTER':_0x4cd95a(0x45b),'FTS_DROP':_0x4cd95a(0x497),'FTS_RESET':_0x4cd95a(0x4f1),'SCHEMA_SET':_0x4cd95a(0x241),'SCHEMA_DROP':_0x4cd95a(0x8a7),'TTL_SET':_0x4cd95a(0x837),'TTL_CLEAR':'clearTtl'},_0x31943c={'SYSTEM_READY':_0x4cd95a(0x2db),'FIELD_RESOLVER_REGISTERED':_0x4cd95a(0x4b1),'SYSTEM_STOPPED':_0x4cd95a(0x4d8),'SYSTEM_CLOCK_CHANGE':_0x4cd95a(0x2a2),'SYSTEM_POKE':'system:poke','SYSTEM_DRAIN':_0x4cd95a(0x572),'SYSTEM_TYPE_DROP':_0x4cd95a(0x71e),'SYSTEM_PROC':_0x4cd95a(0x1db),'SYSTEM_BUS_STATE_CHANGE':_0x4cd95a(0x264),'ITEM_CREATE':_0x4cd95a(0x547),'ITEM_UPDATE':'item:update','ITEM_REMOVE':'item:remove','ITEM_PENDING':_0x4cd95a(0x702),'INDEX_RESET':_0x4cd95a(0x29f),'INDEX_READY':_0x4cd95a(0x825),'INDEX_PROGRESS':_0x4cd95a(0x21b),'VIEW_PROGRESS':_0x4cd95a(0x821),'INDEX_DROP':_0x4cd95a(0x3a4),'INDEX_REGISTERED':'index:registered','FTS_REGISTERED':_0x4cd95a(0x37a),'FTS_DROP':_0x4cd95a(0x73c),'FTS_RESET':_0x4cd95a(0x569),'SCHEMA_SET':_0x4cd95a(0x4d3),'SCHEMA_DROP':'schema:drop','UNIQUE_VIOLATION':_0x4cd95a(0x1c3),'UNIQUE_VIOLATION_RESOLVED':_0x4cd95a(0x531),'REF_VIOLATION':'ref:violation','REF_VIOLATION_RESOLVED':'ref:violation_resolved','SYNC_APPLY':_0x4cd95a(0x78a),'TXN_START':'txn:start','TXN_END':_0x4cd95a(0x330),'TXN_ROLLBACK':_0x4cd95a(0x5bd),'TYPE_REGISTERED':_0x4cd95a(0x80f),'TYPE_DROP':_0x4cd95a(0x7bf),'ENV_OPENED':'env:opened','ENV_REMOVED':_0x4cd95a(0x674),'SYSTEM_ENV_RELEASE':_0x4cd95a(0x544),'TTL_EXPIRED':_0x4cd95a(0x52f),'TTL_SET':_0x4cd95a(0x294),'TTL_CLEAR':_0x4cd95a(0x666),'LICENSE_INVALID':_0x4cd95a(0x2b2),'LICENSE_ADDED':'license:added','LICENSE_ACTIVATED':'license:activated','LICENSE_REMOVED':_0x4cd95a(0x1fa)},_0x3ba0dd={'CREATING':'creating','RESETTING':_0x4cd95a(0x583),'READY':_0x4cd95a(0x237),'DROPPING':_0x4cd95a(0x3c0),'WAITING':_0x4cd95a(0x543),'ERROR':'error'},_0x4e5d55={'CREATED':_0x4cd95a(0x258),'STARTING':_0x4cd95a(0x2b4),'STARTED':_0x4cd95a(0x3c4),'STOPPING':_0x4cd95a(0x278),'STOPPED':_0x4cd95a(0x5a6)},_0x2082b8={'CREATING':_0x4cd95a(0x34b),'READY':_0x4cd95a(0x237),'HALTED':'halted','STOPPED':'stopped','RESETTING':_0x4cd95a(0x583)},_0x44237e=Object[_0x4cd95a(0x202)]({'POKE':'bus:poke','DRAIN':_0x4cd95a(0x747),'TYPE_DROP':'bus:type_drop','PROC':'bus:proc','ENV_RELEASE':_0x4cd95a(0x888)});return okdbEnums={'BUS_EVENTS':_0x44237e,'CHANGE_ACTIONS':_0x4710ae,'EVENTS':_0x31943c,'INDEX_STATE':_0x3ba0dd,'OKDB_STATE':_0x4e5d55,'VIEW_STATE':_0x2082b8},okdbEnums;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x38150c=_0x5c70f8;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0x2fec93={'SKIP':Symbol[_0x38150c(0x708)](_0x38150c(0x8c2))},{OKDBError:_0x4713b1}=requireOkdbError(),_0x182ad2={'value':null,'done':!![]};class _0x1d4a0b{constructor(_0x2573b9){const _0x2f1582=_0x38150c;this[_0x2f1582(0x730)]=_0x2573b9;}get[_0x38150c(0x538)](){return _0x182ad2;}[Symbol['iterator']](){const _0x12ed24=_0x38150c;return this[_0x12ed24(0x730)]();}[_0x38150c(0x35e)](_0x1d7356){const _0x839eef=this;return new _0x1d4a0b(()=>{const _0x4ef44f=_0x52a3,_0x468695=_0x839eef[Symbol['iterator']]();return{'next'(){const _0xbb94bc=_0x52a3;for(;;){const _0x96b395=_0x468695[_0xbb94bc(0x48f)]();if(_0x96b395['done'])return{'done':!![],'value':undefined};const _0x5396e1=_0x1d7356(_0x96b395[_0xbb94bc(0x2ef)]);if(_0x5396e1===_0x2fec93[_0xbb94bc(0x6e8)])continue;if(_0x5396e1===_0x182ad2)return _0x468695[_0xbb94bc(0x67c)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x5396e1};}},'return'(){const _0x14b0b7=_0x52a3;return _0x468695[_0x14b0b7(0x67c)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x4ef44f(0x344)]](){return this;}};});}[_0x38150c(0x4e1)](_0x212988){const _0x5cb980=_0x38150c;return this[_0x5cb980(0x35e)](_0xde9293=>_0x212988(_0xde9293)?_0xde9293:_0x2fec93[_0x5cb980(0x6e8)]);}[_0x38150c(0x5ff)](_0x4332f2){for(const _0xe519eb of this)_0x4332f2(_0xe519eb);}[_0x38150c(0x1f7)](_0x343ded=0x0,_0x416001=Infinity){const _0x39fcc4=this;return new _0x1d4a0b(()=>{const _0x2c94e2=_0x52a3,_0x28cbcc=_0x39fcc4[Symbol[_0x2c94e2(0x344)]]();let _0x2b64bc=0x0;return{'next'(){const _0x2b985f=_0x2c94e2;for(;;){const _0x357474=_0x28cbcc['next']();if(_0x357474['done'])return{'done':!![],'value':undefined};const _0x49c030=_0x2b64bc++;if(_0x49c030<_0x343ded)continue;if(_0x49c030>=_0x416001)return _0x28cbcc[_0x2b985f(0x67c)]?.(),{'done':!![],'value':undefined};return _0x357474;}},'return'(){const _0x146eb2=_0x2c94e2;return _0x28cbcc[_0x146eb2(0x67c)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}['at'](_0x5d054c){let _0x2db2b8=0x0;for(const _0x3dd86d of this)if(_0x2db2b8++===_0x5d054c)return _0x3dd86d;return undefined;}[_0x38150c(0x846)](_0x3a0a03){const _0x3ab356=this;return new _0x1d4a0b(()=>{const _0x51dfd0=_0x52a3,_0x2e2ff7=_0x3ab356[Symbol[_0x51dfd0(0x344)]]();let _0x560582=[];return{'next'(){const _0x149eb4=_0x51dfd0;for(;;){if(_0x560582['length'])return{'done':![],'value':_0x560582['shift']()};const _0x159327=_0x2e2ff7[_0x149eb4(0x48f)]();if(_0x159327[_0x149eb4(0x588)])return{'done':!![],'value':undefined};const _0x15870c=_0x3a0a03(_0x159327['value']);if(Array[_0x149eb4(0x439)](_0x15870c))_0x560582=_0x560582[_0x149eb4(0x6cf)](_0x15870c);else{if(_0x15870c!=null&&(_0x15870c instanceof _0x1d4a0b||typeof _0x15870c[Symbol[_0x149eb4(0x344)]]===_0x149eb4(0x640)&&'asArray'in _0x15870c))_0x560582=_0x560582[_0x149eb4(0x6cf)](Array[_0x149eb4(0x48d)](_0x15870c));else{if(_0x15870c!==_0x2fec93[_0x149eb4(0x6e8)])return{'done':![],'value':_0x15870c};}}}},'return'(){const _0x5e99ac=_0x51dfd0;return _0x2e2ff7[_0x5e99ac(0x67c)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}['concat'](_0x497739){const _0x2c7584=this;return new _0x1d4a0b(()=>{const _0x2dafce=_0x52a3;let _0x1c9dab=_0x2c7584[Symbol[_0x2dafce(0x344)]](),_0x97dd77=![];return{'next'(){const _0x37c4d4=_0x2dafce;for(;;){const _0x1282b9=_0x1c9dab[_0x37c4d4(0x48f)]();if(!_0x1282b9['done'])return _0x1282b9;if(_0x97dd77)return{'done':!![],'value':undefined};_0x97dd77=!![],_0x1c9dab=_0x497739[Symbol[_0x37c4d4(0x344)]]();}},'return'(){const _0x178bd8=_0x2dafce;return _0x1c9dab[_0x178bd8(0x67c)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0x38150c(0x1e3)](_0x5db1e0){const _0x53135a=this;return new _0x1d4a0b(()=>{const _0x3b6501=_0x52a3,_0x5e4b9a=_0x53135a[Symbol['iterator']]();return{'next'(){const _0x19f3d0=_0x52a3;for(;;){try{return _0x5e4b9a[_0x19f3d0(0x48f)]();}catch(_0x17e048){const _0xfdffee=_0x5db1e0(_0x17e048);if(_0xfdffee===_0x2fec93[_0x19f3d0(0x6e8)]||_0xfdffee===undefined)continue;return{'done':![],'value':_0xfdffee};}}},'return'(){const _0x320d7d=_0x52a3;return _0x5e4b9a[_0x320d7d(0x67c)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x3b6501(0x344)]](){return this;}};});}['toJSON'](){const _0x293469=_0x38150c;return Array[_0x293469(0x48d)](this);}get[_0x38150c(0x2cd)](){const _0x4406b9=_0x38150c;return Array[_0x4406b9(0x48d)](this);}}const _0x5968bf={'total':0x0,'byLabel':{},'last':null};function _0x41cd4b(_0x324f83){const _0x215e26=_0x38150c;_0x5968bf[_0x215e26(0x642)]++;if(_0x324f83)_0x5968bf[_0x215e26(0x718)][_0x324f83]=(_0x5968bf['byLabel'][_0x324f83]??0x0)+0x1;_0x5968bf[_0x215e26(0x7bb)]={'label':_0x324f83??null,'at':Date[_0x215e26(0x8cc)]()};}function _0x39bcb1(){const _0x519da3=_0x38150c;return{'total':_0x5968bf[_0x519da3(0x642)],'byLabel':{..._0x5968bf[_0x519da3(0x718)]},'last':_0x5968bf[_0x519da3(0x7bb)]};}function _0x2c0698(_0x51ef75,_0x343da5={}){const {getTxnId:_0xf48697,resume:_0x695583,label:_0x58be81,baseline:_0x40584}=_0x343da5;return new _0x1d4a0b(()=>{let _0x338ccd=null,_0x15c38a=![],_0x9a22f7=![],_0x4aa863=![],_0x5e006c,_0x1db324=0x0,_0x3eda56;return{'next'(){const _0x6a2273=_0x52a3;if(_0x4aa863)return{'done':!![],'value':undefined};if(_0x9a22f7){let _0x4ad547=![];if(_0x695583&&_0xf48697)try{_0x4ad547=_0xf48697()===_0x3eda56;}catch{}if(!_0x4ad547){_0x4aa863=!![],_0x41cd4b(_0x58be81);throw new _0x4713b1(_0x695583?'pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20'+_0x6a2273(0x3fd)+_0x6a2273(0x841):'pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20'+_0x6a2273(0x256)+_0x6a2273(0x66e),'READER_HELD_ACROSS_AWAIT');}_0x338ccd=_0x695583(_0x5e006c,_0x1db324)[Symbol[_0x6a2273(0x344)]](),_0x9a22f7=![];}if(!_0x338ccd){if(_0x40584!==undefined)_0x3eda56=_0x40584;else try{_0x3eda56=_0xf48697?_0xf48697():undefined;}catch{_0x3eda56=undefined;}try{_0x338ccd=_0x51ef75()[Symbol[_0x6a2273(0x344)]]();}catch(_0x5a0dbe){_0x4aa863=!![];throw _0x5a0dbe;}}!_0x15c38a&&(_0x15c38a=!![],queueMicrotask(()=>{const _0x431045=_0x6a2273;_0x15c38a=![];if(_0x4aa863||_0x9a22f7)return;try{_0x338ccd?.[_0x431045(0x67c)]?.();}catch{}_0x338ccd=null,_0x9a22f7=!![];}));const _0x513d32=_0x338ccd[_0x6a2273(0x48f)]();if(_0x513d32[_0x6a2273(0x588)])return _0x4aa863=!![],{'done':!![],'value':undefined};return _0x5e006c=_0x513d32['value'],_0x1db324++,_0x513d32;},'return'(){const _0x4cd3f1=_0x52a3;_0x4aa863=!![];try{_0x338ccd?.[_0x4cd3f1(0x67c)]?.();}catch{}return{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x2c0698,'OKDBGuardedRange':_0x1d4a0b,'recordGuardTrip':_0x41cd4b,'getGuardTripStats':_0x39bcb1},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x1d1927=_0x5c70f8;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x5ca839,performance:_0x16099a}=require$$0$1,_0x38eea6=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x1d1927(0x43b),_0x3e9ba2=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x53c94d=process.env.OKDB_LOOP_LAG_ALL==='1',_0x2bead4=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0xc90f33{constructor(){const _0x43e337=_0x1d1927;this[_0x43e337(0x63d)]=_0x38eea6,this['_buckets']=new Map(),this['_h']=null,this['_timer']=null,this['_started']=![],this['_log']=(_0x188a42,_0x2b7703)=>process[_0x43e337(0x34a)][_0x43e337(0x21a)](_0x188a42+(_0x2b7703?'\x20'+JSON[_0x43e337(0x35a)](_0x2b7703):'')+'\x0a');}[_0x1d1927(0x8cc)](){return _0x16099a['now']();}[_0x1d1927(0x3c5)](_0x3c5fc6){const _0x39595b=_0x1d1927;if(typeof _0x3c5fc6==='function')this[_0x39595b(0x8ae)]=_0x3c5fc6;}['note'](_0x2554cc,_0xe7a870,_0xc114b7){const _0x2e45ab=_0x1d1927;if(!this[_0x2e45ab(0x63d)])return;let _0x32038e=this['_buckets']['get'](_0x2554cc);!_0x32038e&&(_0x32038e={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x2e45ab(0x59d)][_0x2e45ab(0x63f)](_0x2554cc,_0x32038e)),_0x32038e['ms']+=_0xe7a870,_0x32038e['count']+=0x1,_0xe7a870>_0x32038e['maxMs']&&(_0x32038e[_0x2e45ab(0x1e6)]=_0xe7a870,_0x32038e['maxExtra']=_0xc114b7||'');}[_0x1d1927(0x45c)](_0x34d3f9){const _0x1d633e=_0x1d1927;if(!this['enabled']||this[_0x1d633e(0x620)])return;this[_0x1d633e(0x620)]=!![];if(_0x34d3f9)this[_0x1d633e(0x8ae)]=_0x34d3f9;this['_h']=_0x5ca839({'resolution':0xa}),this['_h'][_0x1d633e(0x54c)](),this['_timer']=setInterval(()=>this[_0x1d633e(0x818)](),_0x3e9ba2);if(this[_0x1d633e(0x458)][_0x1d633e(0x32c)])this['_timer'][_0x1d633e(0x32c)]();}[_0x1d1927(0x874)](_0x52e465){const _0xb20985=_0x1d1927;if(!this[_0xb20985(0x7b7)])this[_0xb20985(0x7b7)]=new Set();this[_0xb20985(0x7b7)][_0xb20985(0x280)](_0x52e465);if(!this[_0xb20985(0x620)])this[_0xb20985(0x56a)]();}[_0x1d1927(0x684)](_0x500a56){const _0x128e3c=_0x1d1927;this[_0x128e3c(0x7b7)]?.[_0x128e3c(0x2cb)](_0x500a56);}['_startAdmission'](){const _0x59a2ca=_0x1d1927;if(this[_0x59a2ca(0x35c)])return;this['_admissionStarted']=!![];!this['_h']&&(this['_h']=_0x5ca839({'resolution':0xa}),this['_h'][_0x59a2ca(0x54c)]());const _0x4961c3=_0x3e9ba2;this[_0x59a2ca(0x59a)]=setInterval(()=>{const _0x1a9876=_0x59a2ca,_0x1cfd54=this['_h'];if(!_0x1cfd54)return;const _0x4fa3f5=_0x1cfd54[_0x1a9876(0x76c)](0x63)/0xf4240,_0x196a3e=_0x1cfd54[_0x1a9876(0x4a0)]/0xf4240,_0x40588b=_0x1cfd54[_0x1a9876(0x524)]/0xf4240;_0x1cfd54[_0x1a9876(0x20d)]();if(this[_0x1a9876(0x7b7)])for(const _0x530431 of this[_0x1a9876(0x7b7)]){try{_0x530431({'p99Ms':_0x4fa3f5,'maxMs':_0x196a3e,'meanMs':_0x40588b,'reportMs':_0x4961c3});}catch{}}},_0x4961c3);if(this[_0x59a2ca(0x59a)][_0x59a2ca(0x32c)])this[_0x59a2ca(0x59a)]['unref']();}[_0x1d1927(0x818)](){const _0x1376ed=_0x1d1927,_0x1f1a1b=this['_h'],_0x533179=_0x1f1a1b[_0x1376ed(0x4a0)]/0xf4240,_0x8fea59=_0x1f1a1b[_0x1376ed(0x76c)](0x63)/0xf4240,_0x430311=_0x1f1a1b[_0x1376ed(0x524)]/0xf4240;_0x1f1a1b[_0x1376ed(0x20d)]();const _0x1a45cf=[...this[_0x1376ed(0x59d)]['entries']()][_0x1376ed(0x35e)](([_0x55fd3c,_0x5cd36e])=>({'label':_0x55fd3c,..._0x5cd36e}))[_0x1376ed(0x22f)]((_0x48b2de,_0x35503b)=>_0x35503b['ms']-_0x48b2de['ms'])[_0x1376ed(0x1f7)](0x0,0x8);this['_buckets']['clear']();const _0x24ca5c=_0x1a45cf['reduce']((_0x5ea04e,_0x32bce4)=>_0x5ea04e+_0x32bce4['ms'],0x0),_0x4c8ad1=_0x1a45cf[_0x1376ed(0x35e)](_0x38c173=>_0x38c173[_0x1376ed(0x3bb)]+'='+_0x38c173['ms'][_0x1376ed(0x64c)](0x0)+'ms/'+_0x38c173[_0x1376ed(0x400)]+(_0x38c173[_0x1376ed(0x1e6)]>0x5?_0x1376ed(0x243)+_0x38c173[_0x1376ed(0x1e6)][_0x1376ed(0x64c)](0x0)+'ms'+(_0x38c173[_0x1376ed(0x6f8)]?'\x20'+_0x38c173['maxExtra']:'')+')':''));(_0x53c94d||_0x533179>=_0x2bead4)&&this[_0x1376ed(0x8ae)](_0x1376ed(0x403)+_0x3e9ba2+'ms\x20max='+_0x533179[_0x1376ed(0x64c)](0x0)+_0x1376ed(0x476)+_0x8fea59['toFixed'](0x0)+_0x1376ed(0x743)+_0x430311['toFixed'](0x0)+_0x1376ed(0x346)+_0x24ca5c[_0x1376ed(0x64c)](0x0)+'ms'+(_0x4c8ad1['length']?_0x1376ed(0x7ba)+_0x4c8ad1['join']('\x20\x20'):''),{'feature':_0x1376ed(0x65e)});if(this[_0x1376ed(0x7b7)])for(const _0x392be7 of this[_0x1376ed(0x7b7)]){try{_0x392be7({'p99Ms':_0x8fea59,'maxMs':_0x533179,'meanMs':_0x430311,'reportMs':_0x3e9ba2});}catch{}}}['stop'](){const _0x51f855=_0x1d1927;if(this['_timer'])clearInterval(this[_0x51f855(0x458)]);if(this['_h'])this['_h'][_0x51f855(0x2e6)]();this[_0x51f855(0x458)]=null,this['_h']=null,this['_started']=![];}}const _0x1182bc=new _0xc90f33();if(_0x1182bc[_0x1d1927(0x63d)])_0x1182bc[_0x1d1927(0x45c)]();return okdbLoopMonitor={'LOOP':_0x1182bc},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0xa32521=_0x5c70f8;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0x575f6c={'v4':()=>require$$0$2[_0xa32521(0x809)]()},{EVENTS:_0x23b2a1}=requireOkdbEnums(),{OKDBError:_0x2712f3}=requireOkdbError(),{recordGuardTrip:_0x1f7900,guardSnapshotIterable:_0x30bfaa}=requireOkdbGuardedRange(),{LOOP:_0x2969a5}=requireOkdbLoopMonitor();function _0x288682(_0x3d93fc){const _0x2dca4e=_0xa32521;return _0x3d93fc[_0x2dca4e(0x35e)](_0x5eb3d2=>{const _0x19e839=_0x2dca4e,[_0x450aea,_0x1fda7c]=_0x5eb3d2['args']||[];return{'action':_0x5eb3d2[_0x19e839(0x6d0)],'type':_0x450aea,'key':_0x1fda7c};});}class _0x5a45b2{[_0xa32521(0x61e)];['actions']=[];[_0xa32521(0x8e8)]=[];[_0xa32521(0x804)]=[];constructor(_0x3f8dbb,_0x125477={'useReadTransaction':![]}){const _0x26c2ee=_0xa32521;this[_0x26c2ee(0x61e)]=_0x3f8dbb,this[_0x26c2ee(0x688)]=_0x125477,this['id']=_0x575f6c['v4']();if(this[_0x26c2ee(0x688)][_0x26c2ee(0x62f)])try{this[_0x26c2ee(0x87f)]=this[_0x26c2ee(0x61e)]['db'][_0x26c2ee(0x65c)]()[_0x26c2ee(0x55f)];}catch{this['_txnIdAtSnapshot']=undefined;}this[_0x26c2ee(0x271)]=this[_0x26c2ee(0x688)][_0x26c2ee(0x62f)]?this[_0x26c2ee(0x61e)]['db'][_0x26c2ee(0x62f)]():null,this[_0x26c2ee(0x417)]=![],this[_0x26c2ee(0x3a8)]=![],this['readTransaction']&&queueMicrotask(()=>{const _0x15fd77=_0x26c2ee;this[_0x15fd77(0x271)]&&(this[_0x15fd77(0x492)](),this['_readViewExpired']=!![]);});}[_0xa32521(0x6bc)](_0x2ef14f){const _0x3a626f=_0xa32521;this['_doHooks'][_0x3a626f(0x28d)](_0x2ef14f);}[_0xa32521(0x1f5)](_0x2eeb59){const _0x1c4bba=_0xa32521;this['_undoHooks'][_0x1c4bba(0x28d)](_0x2eeb59);}['_closeReadTransaction'](){const _0x69df10=_0xa32521;if(!this[_0x69df10(0x271)])return;try{this[_0x69df10(0x271)][_0x69df10(0x588)]();}catch(_0x22cb04){}this[_0x69df10(0x271)]=null;}[_0xa32521(0x7a2)](){const _0x52bf0d=_0xa32521;if(this[_0x52bf0d(0x417)])throw new _0x2712f3(_0x52bf0d(0x72b),_0x52bf0d(0x679));if(this['_readViewExpired']){let _0x3bb6c7=![];if(this[_0x52bf0d(0x688)]['useReadTransaction']===_0x52bf0d(0x8c0)&&this[_0x52bf0d(0x87f)]!==undefined)try{_0x3bb6c7=this[_0x52bf0d(0x61e)]['db'][_0x52bf0d(0x65c)]()[_0x52bf0d(0x55f)]===this[_0x52bf0d(0x87f)];}catch{}if(!_0x3bb6c7){_0x1f7900((this[_0x52bf0d(0x61e)]?.[_0x52bf0d(0x54b)]??'?')+_0x52bf0d(0x8d1));throw new _0x2712f3(_0x52bf0d(0x891)+_0x52bf0d(0x6cc)+_0x52bf0d(0x6c5)+_0x52bf0d(0x6f7),'READER_HELD_ACROSS_AWAIT');}}}[_0xa32521(0x309)](_0x26eeba,_0x7c77cd){const _0x39aa64=_0xa32521;return this[_0x39aa64(0x7a2)](),this[_0x39aa64(0x61e)]['get'](_0x26eeba,_0x7c77cd,{'transaction':this[_0x39aa64(0x271)]});}[_0xa32521(0x3a0)](_0x1e4ede,_0x4a17f7){const _0x100a22=_0xa32521;return this[_0x100a22(0x7a2)](),this[_0x100a22(0x61e)]['getEntry'](_0x1e4ede,_0x4a17f7,{'transaction':this['readTransaction']});}[_0xa32521(0x233)](_0x1493e7,_0x161d04){const _0x482b9f=_0xa32521;return this['_assertOpen'](),this[_0x482b9f(0x61e)]['getMany'](_0x1493e7,_0x161d04,{'transaction':this[_0x482b9f(0x271)]});}[_0xa32521(0x64d)](_0x43c4cb){const _0x1b1005=_0xa32521;if(!this[_0x1b1005(0x688)][_0x1b1005(0x62f)])return _0x43c4cb;if(_0x43c4cb&&typeof _0x43c4cb[_0x1b1005(0x801)]===_0x1b1005(0x640))return _0x43c4cb;if(Array[_0x1b1005(0x439)](_0x43c4cb))return _0x43c4cb;const _0x1e339f=this,_0x26f6bf=_0x1e339f[_0x1b1005(0x688)][_0x1b1005(0x62f)]===_0x1b1005(0x8c0),_0x9c5800=()=>{const _0x42719e=_0x1b1005;if(!_0x1e339f[_0x42719e(0x3a8)])return![];if(!_0x26f6bf)return!![];if(_0x1e339f[_0x42719e(0x87f)]===undefined)return!![];try{return _0x1e339f[_0x42719e(0x61e)]['db']['getStats']()['lastTxnId']!==_0x1e339f[_0x42719e(0x87f)];}catch{return!![];}};return _0x30bfaa(()=>{const _0x4a4c85=_0x1b1005;if(_0x1e339f[_0x4a4c85(0x417)])throw new _0x2712f3(_0x4a4c85(0x72b),_0x4a4c85(0x679));if(_0x9c5800()){_0x1f7900((_0x1e339f['okdb']?.[_0x4a4c85(0x54b)]??'?')+':txnRange');throw new _0x2712f3('useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20'+_0x4a4c85(0x412)+_0x4a4c85(0x6c6),_0x4a4c85(0x252));}return _0x43c4cb;},{'label':(_0x1e339f['okdb']?.[_0x1b1005(0x54b)]??'?')+_0x1b1005(0x6ed),..._0x26f6bf?{'baseline':_0x1e339f['_txnIdAtSnapshot'],'getTxnId':()=>_0x1e339f[_0x1b1005(0x61e)]['db'][_0x1b1005(0x65c)]()[_0x1b1005(0x55f)],'resume':(_0x2807c6,_0x1f8722)=>_0x43c4cb['slice'](_0x1f8722)}:{}});}['getRange'](_0x4696a1,_0xce5507={}){const _0x498924=_0xa32521;return this[_0x498924(0x7a2)](),this[_0x498924(0x64d)](this[_0x498924(0x61e)][_0x498924(0x3ee)](_0x4696a1,{'transaction':this[_0x498924(0x271)],..._0xce5507}));}['getValues'](_0x6d21fb,_0x39c175={}){const _0x420d4a=_0xa32521;return this[_0x420d4a(0x7a2)](),this[_0x420d4a(0x64d)](this['okdb'][_0x420d4a(0x88a)](_0x6d21fb,{'transaction':this['readTransaction'],..._0x39c175}));}[_0xa32521(0x300)](_0x4c2b83,_0x555d45={}){const _0x48e36e=_0xa32521;return this[_0x48e36e(0x7a2)](),this['_range'](this[_0x48e36e(0x61e)][_0x48e36e(0x300)](_0x4c2b83,{'transaction':this[_0x48e36e(0x271)],..._0x555d45}));}[_0xa32521(0x5c4)](_0x46b122,_0x4e0134,_0x2b3d82={}){const _0x1ed779=_0xa32521;return this[_0x1ed779(0x7a2)](),this[_0x1ed779(0x64d)](this[_0x1ed779(0x61e)][_0x1ed779(0x5c4)](_0x46b122,_0x4e0134,{'transaction':this['readTransaction'],..._0x2b3d82}));}[_0xa32521(0x69f)](_0x5c8c96,_0x181ce5,_0x1cd7a3={}){const _0x5c291c=_0xa32521;return this[_0x5c291c(0x7a2)](),this[_0x5c291c(0x64d)](this[_0x5c291c(0x61e)]['query'](_0x5c8c96,_0x181ce5,{'transaction':this[_0x5c291c(0x271)],..._0x1cd7a3}));}[_0xa32521(0x3b3)](_0x1edee0=null){const _0x32c9cf=_0xa32521;return this['_assertOpen'](),this[_0x32c9cf(0x61e)][_0x32c9cf(0x3b3)](_0x1edee0,{'transaction':this[_0x32c9cf(0x271)]});}[_0xa32521(0x8ce)](_0x1510e8){const _0x21267c=_0xa32521;return this[_0x21267c(0x7a2)](),this[_0x21267c(0x61e)][_0x21267c(0x8ce)](_0x1510e8,{'transaction':this[_0x21267c(0x271)]});}[_0xa32521(0x253)](_0x19df10,_0x471ecc,_0x409e8c,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x207ab6=_0xa32521;this[_0x207ab6(0x5c3)][_0x207ab6(0x28d)]({'action':_0x207ab6(0x253),'args':[_0x19df10,_0x471ecc,_0x409e8c,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xa32521(0x5b4)](_0x458020,_0x101b7c,_0x3c3af9,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x2cd47e=_0xa32521;this[_0x2cd47e(0x5c3)]['push']({'action':_0x2cd47e(0x5b4),'args':[_0x458020,_0x101b7c,_0x3c3af9,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xa32521(0x65b)](_0x48fdcb,_0x378686,_0x4f9f34,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0xa32521(0x8cc)](),origin:origin=null,ttl:ttl=null}={}){const _0x59a906=_0xa32521;this[_0x59a906(0x5c3)][_0x59a906(0x28d)]({'action':_0x59a906(0x65b),'args':[_0x48fdcb,_0x378686,_0x4f9f34,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xa32521(0x67b)](_0x2e704e,_0x2b11fd,_0x4570cf,{version:version=null,timestamp:timestamp=Date[_0xa32521(0x8cc)](),origin:origin=null,ttl:ttl=null}={}){const _0x38bf7e=_0xa32521;this[_0x38bf7e(0x5c3)][_0x38bf7e(0x28d)]({'action':_0x38bf7e(0x67b),'args':[_0x2e704e,_0x2b11fd,_0x4570cf,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xa32521(0x504)](_0x18aae9,_0xf940fa,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0xa32521(0x8cc)](),origin:origin=null}={}){const _0x2c6087=_0xa32521;this[_0x2c6087(0x5c3)][_0x2c6087(0x28d)]({'action':_0x2c6087(0x504),'args':[_0x18aae9,_0xf940fa,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}[_0xa32521(0x246)](_0x155fe3,_0x5ad707,_0x55cffd){const _0x20927d=_0xa32521;this[_0x20927d(0x5c3)]['push']({'action':_0x20927d(0x246),'args':[_0x155fe3,_0x5ad707,_0x55cffd]});}['clearTTL'](_0x9cf5dc,_0x1aad65){const _0x9a49ba=_0xa32521;this[_0x9a49ba(0x5c3)]['push']({'action':'clearTTL','args':[_0x9cf5dc,_0x1aad65]});}[_0xa32521(0x880)](){const _0x1b8975=_0xa32521;if(this[_0x1b8975(0x417)])return;for(const _0x32b08f of this['_undoHooks']){try{_0x32b08f();}catch{}}this[_0x1b8975(0x61e)]['events']['emit'](_0x23b2a1[_0x1b8975(0x635)],{'id':this['id']}),this[_0x1b8975(0x5c3)]=[],this[_0x1b8975(0x492)](),this[_0x1b8975(0x417)]=!![];}async['commit'](){const _0xf31513=_0xa32521;if(this[_0xf31513(0x417)])throw new Error(_0xf31513(0x72b));const _0x5c7ed6={'id':this['id'],'timestamp':Date['now'](),'actions':this['actions']};this['okdb'][_0xf31513(0x4cb)][_0xf31513(0x5a2)](_0x23b2a1['TXN_START'],_0x5c7ed6);try{const _0x37e0e9=_0x2969a5[_0xf31513(0x63d)]?_0x2969a5['now']():0x0;await this['okdb'][_0xf31513(0x767)]['transaction'](()=>{const _0x288c6c=_0xf31513;for(const _0x2a0266 of this['actions']){const _0x1dec19=this[_0x288c6c(0x61e)]['_'+_0x2a0266[_0x288c6c(0x6d0)]];if(typeof _0x1dec19!==_0x288c6c(0x640))throw new Error(_0x288c6c(0x579)+_0x2a0266['action']);_0x1dec19[_0x288c6c(0x4d1)](this['okdb'],this,..._0x2a0266[_0x288c6c(0x645)]);}}),_0x2969a5[_0xf31513(0x63d)]&&_0x2969a5[_0xf31513(0x520)]('txn-commit',_0x2969a5[_0xf31513(0x8cc)]()-_0x37e0e9,(this[_0xf31513(0x61e)]['name']??'?')+'\x20actions='+this['actions'][_0xf31513(0x68a)]);}catch(_0x175fb4){for(const _0x193c33 of this['_undoHooks']){try{_0x193c33();}catch{}}this[_0xf31513(0x492)](),this[_0xf31513(0x417)]=!![];if(_0x175fb4 instanceof _0x2712f3)throw _0x175fb4;const _0x3e16ed={'cause':_0x175fb4,'env':this[_0xf31513(0x61e)]?.['name'],'envPath':this[_0xf31513(0x61e)]?.[_0xf31513(0x500)],'pid':process['pid'],'txnId':this['id'],'actionCount':this[_0xf31513(0x5c3)][_0xf31513(0x68a)],'actions':_0x288682(this[_0xf31513(0x5c3)]),'nativeCode':_0x175fb4?.[_0xf31513(0x50e)],'nativeName':_0x175fb4?.[_0xf31513(0x54b)]};try{this[_0xf31513(0x61e)]?.[_0xf31513(0x58d)]?.['error']?.('transaction\x20commit\x20failed',{'env':_0x3e16ed[_0xf31513(0x609)],'envPath':_0x3e16ed[_0xf31513(0x1f3)],'pid':_0x3e16ed[_0xf31513(0x4ab)],'txnId':_0x3e16ed['txnId'],'actionCount':_0x3e16ed[_0xf31513(0x269)],'actions':_0x3e16ed['actions'],'nativeCode':_0x3e16ed[_0xf31513(0x64a)],'error':_0x175fb4?.[_0xf31513(0x211)],'stack':_0x175fb4?.[_0xf31513(0x221)]});}catch{}throw new _0x2712f3(_0x175fb4?.[_0xf31513(0x211)]||_0xf31513(0x7e8),_0xf31513(0x398),_0x3e16ed);}this[_0xf31513(0x61e)][_0xf31513(0x4cb)]['emit'](_0x23b2a1[_0xf31513(0x623)],_0x5c7ed6);for(const _0x4a7eff of this[_0xf31513(0x8e8)]){try{await _0x4a7eff();}catch{}}this['actions']=[],this[_0xf31513(0x492)](),this[_0xf31513(0x417)]=!![];}static[_0xa32521(0x76e)](_0x5b593c){const _0x997473=_0xa32521;return Object[_0x997473(0x202)]({'id':_0x5b593c['id'],'put':_0x5b593c['put'][_0x997473(0x78f)](_0x5b593c),'update':_0x5b593c[_0x997473(0x5b4)][_0x997473(0x78f)](_0x5b593c),'patch':_0x5b593c[_0x997473(0x65b)][_0x997473(0x78f)](_0x5b593c),'create':_0x5b593c[_0x997473(0x67b)][_0x997473(0x78f)](_0x5b593c),'remove':_0x5b593c[_0x997473(0x504)][_0x997473(0x78f)](_0x5b593c),'setTTL':_0x5b593c['setTTL']['bind'](_0x5b593c),'clearTTL':_0x5b593c[_0x997473(0x599)][_0x997473(0x78f)](_0x5b593c),'commit':_0x5b593c[_0x997473(0x8e6)][_0x997473(0x78f)](_0x5b593c),'rollback':_0x5b593c[_0x997473(0x880)][_0x997473(0x78f)](_0x5b593c),'get':_0x5b593c['get'][_0x997473(0x78f)](_0x5b593c),'getEntry':_0x5b593c['getEntry'][_0x997473(0x78f)](_0x5b593c),'getMany':_0x5b593c[_0x997473(0x233)][_0x997473(0x78f)](_0x5b593c),'getRange':_0x5b593c[_0x997473(0x3ee)][_0x997473(0x78f)](_0x5b593c),'getValues':_0x5b593c[_0x997473(0x88a)][_0x997473(0x78f)](_0x5b593c),'getKeys':_0x5b593c[_0x997473(0x300)][_0x997473(0x78f)](_0x5b593c),'byIndex':_0x5b593c[_0x997473(0x5c4)][_0x997473(0x78f)](_0x5b593c),'query':_0x5b593c[_0x997473(0x69f)][_0x997473(0x78f)](_0x5b593c),'getClock':_0x5b593c[_0x997473(0x3b3)]['bind'](_0x5b593c),'getCount':_0x5b593c[_0x997473(0x8ce)][_0x997473(0x78f)](_0x5b593c),'read':_0x5b593c,'raw':_0x5b593c});}static[_0xa32521(0x78c)](_0x3c786b,_0x24e8fc=[]){const _0x3e0584=_0xa32521;if(!Array[_0x3e0584(0x439)](_0x24e8fc))throw new _0x2712f3(_0x3e0584(0x6ea),'TXN_INVALID_OPS');for(const _0x4d08a0 of _0x24e8fc){if(Array[_0x3e0584(0x439)](_0x4d08a0)){const [_0x42c0c6,..._0x1d1a48]=_0x4d08a0;if(typeof _0x3c786b[_0x42c0c6]!==_0x3e0584(0x640))throw new _0x2712f3(_0x3e0584(0x579)+_0x42c0c6,_0x3e0584(0x267),{'action':_0x42c0c6});_0x3c786b[_0x42c0c6](..._0x1d1a48);continue;}if(!_0x4d08a0||typeof _0x4d08a0!==_0x3e0584(0x559))throw new _0x2712f3('txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple',_0x3e0584(0x4de));const {action:_0x46c1f6}=_0x4d08a0;if(typeof _0x46c1f6!==_0x3e0584(0x2b1)||typeof _0x3c786b[_0x46c1f6]!==_0x3e0584(0x640))throw new _0x2712f3(_0x3e0584(0x579)+_0x46c1f6,_0x3e0584(0x267),{'action':_0x46c1f6});switch(_0x46c1f6){case _0x3e0584(0x253):case'update':case'create':_0x3c786b[_0x46c1f6](_0x4d08a0[_0x3e0584(0x45d)],_0x4d08a0[_0x3e0584(0x82f)],_0x4d08a0[_0x3e0584(0x2ef)],{..._0x4d08a0[_0x3e0584(0x688)],'ttl':_0x4d08a0['ttl']??_0x4d08a0['options']?.[_0x3e0584(0x31e)]??null});break;case'patch':_0x3c786b[_0x3e0584(0x65b)](_0x4d08a0[_0x3e0584(0x45d)],_0x4d08a0[_0x3e0584(0x82f)],_0x4d08a0[_0x3e0584(0x65b)],{..._0x4d08a0[_0x3e0584(0x688)],'ttl':_0x4d08a0[_0x3e0584(0x31e)]??_0x4d08a0[_0x3e0584(0x688)]?.['ttl']??null});break;case _0x3e0584(0x504):_0x3c786b[_0x3e0584(0x504)](_0x4d08a0[_0x3e0584(0x45d)],_0x4d08a0['key'],_0x4d08a0['options']||{});break;case _0x3e0584(0x246):_0x3c786b[_0x3e0584(0x246)](_0x4d08a0[_0x3e0584(0x45d)],_0x4d08a0['key'],_0x4d08a0[_0x3e0584(0x31e)]);break;case _0x3e0584(0x599):_0x3c786b['clearTTL'](_0x4d08a0[_0x3e0584(0x45d)],_0x4d08a0[_0x3e0584(0x82f)]);break;default:throw new _0x2712f3('Unsupported\x20transaction\x20action:\x20'+_0x46c1f6,_0x3e0584(0x267),{'action':_0x46c1f6});}}}static async[_0xa32521(0x84c)](_0x3e974e,_0x37ca4e,_0x3eb5b4={}){const _0x472929=_0xa32521,_0x2e8cb9=new _0x5a45b2(_0x3e974e,_0x3eb5b4),_0x4cc33b=_0x5a45b2[_0x472929(0x76e)](_0x2e8cb9);try{typeof _0x37ca4e===_0x472929(0x640)?await _0x37ca4e(_0x4cc33b):_0x5a45b2[_0x472929(0x78c)](_0x2e8cb9,_0x37ca4e||[]);const _0x9c8c5b=_0x2e8cb9[_0x472929(0x5c3)][_0x472929(0x68a)];return await _0x2e8cb9[_0x472929(0x8e6)](),{'id':_0x2e8cb9['id'],'actions':_0x9c8c5b};}catch(_0x3cd5da){try{_0x2e8cb9[_0x472929(0x880)]();}catch(_0x282f81){}throw _0x3cd5da;}}}return okdbTransaction=_0x5a45b2,okdbTransaction;}var dist={},hasRequiredDist;function requireDist(){const _0x33c963=_0x5c70f8;if(hasRequiredDist)return dist;hasRequiredDist=0x1,Object[_0x33c963(0x1fd)](dist,_0x33c963(0x303),{'value':!![]});const _0x3adf8f=new Float64Array(0x2),_0x33af14=new Int32Array(_0x3adf8f[_0x33c963(0x4b0)],0x0,0x4),{lowIdx:_0x545a83,highIdx:_0x12756d}=((()=>{const _0x4be03f=_0x33c963;if(new Uint8Array(new Uint32Array([0xffee1100])[_0x4be03f(0x4b0)])[0x0]===0xff)return{'lowIdx':0x1,'highIdx':0x0};return{'lowIdx':0x0,'highIdx':0x1};})());let _0x1d20d8=![],_0xa12111;try{_0xa12111=new TextEncoder();}catch(_0x360dc5){}function _0x596a51(_0xfc5ea7,_0x2f5d37,_0xfd27d5,_0x31073f){const _0x1b1f28=_0x33c963;let _0x4bbbbf=_0x2f5d37[_0x1b1f28(0x409)];if(!_0x4bbbbf)_0x4bbbbf=_0x2f5d37[_0x1b1f28(0x409)]=new DataView(_0x2f5d37[_0x1b1f28(0x4b0)],_0x2f5d37[_0x1b1f28(0x204)],_0x2f5d37[_0x1b1f28(0x43d)]+0x3>>0x2<<0x2);switch(typeof _0xfc5ea7){case _0x1b1f28(0x2b1):let _0x5f0eb1=_0xfc5ea7[_0x1b1f28(0x68a)],_0xad5f35=_0xfc5ea7[_0x1b1f28(0x82e)](0x0);if(!(_0xad5f35>=0x1c))_0x2f5d37[_0xfd27d5++]=0x1b;if(_0x5f0eb1<0x40){let _0x154829,_0x5e63a5;for(_0x154829=0x0;_0x154829<_0x5f0eb1;_0x154829++){_0xad5f35=_0xfc5ea7[_0x1b1f28(0x82e)](_0x154829);if(_0xad5f35<=0x4)_0x2f5d37[_0xfd27d5++]=0x4,_0x2f5d37[_0xfd27d5++]=_0xad5f35;else{if(_0xad5f35<0x80)_0x2f5d37[_0xfd27d5++]=_0xad5f35;else{if(_0xad5f35<0x800)_0x2f5d37[_0xfd27d5++]=_0xad5f35>>0x6|0xc0,_0x2f5d37[_0xfd27d5++]=_0xad5f35&0x3f|0x80;else(_0xad5f35&0xfc00)===0xd800&&((_0x5e63a5=_0xfc5ea7[_0x1b1f28(0x82e)](_0x154829+0x1))&0xfc00)===0xdc00?(_0xad5f35=0x10000+((_0xad5f35&0x3ff)<<0xa)+(_0x5e63a5&0x3ff),_0x154829++,_0x2f5d37[_0xfd27d5++]=_0xad5f35>>0x12|0xf0,_0x2f5d37[_0xfd27d5++]=_0xad5f35>>0xc&0x3f|0x80,_0x2f5d37[_0xfd27d5++]=_0xad5f35>>0x6&0x3f|0x80,_0x2f5d37[_0xfd27d5++]=_0xad5f35&0x3f|0x80):(_0x2f5d37[_0xfd27d5++]=_0xad5f35>>0xc|0xe0,_0x2f5d37[_0xfd27d5++]=_0xad5f35>>0x6&0x3f|0x80,_0x2f5d37[_0xfd27d5++]=_0xad5f35&0x3f|0x80);}}}}else{if(_0x2f5d37[_0x1b1f28(0x685)])_0xfd27d5+=_0x2f5d37['utf8Write'](_0xfc5ea7,_0xfd27d5,_0x2f5d37[_0x1b1f28(0x43d)]-_0xfd27d5);else _0xfd27d5+=_0xa12111[_0x1b1f28(0x6a2)](_0xfc5ea7,_0x2f5d37[_0x1b1f28(0x5c6)](_0xfd27d5))[_0x1b1f28(0x372)];if(_0xfd27d5>_0x2f5d37[_0x1b1f28(0x68a)]-0x4)throw new RangeError(_0x1b1f28(0x567));}break;case'number':_0x3adf8f[0x0]=_0xfc5ea7;let _0x3bc12d=_0x33af14[_0x545a83],_0x52b337=_0x33af14[_0x12756d],_0x3b8072;if(_0xfc5ea7<0x0)return _0x4bbbbf[_0x1b1f28(0x879)](_0xfd27d5+0x4,~(_0x3bc12d>>>0x4|_0x52b337<<0x1c)),_0x4bbbbf['setInt32'](_0xfd27d5+0x0,(_0x52b337^0x7fffffff)>>>0x4),_0x4bbbbf[_0x1b1f28(0x879)](_0xfd27d5+0x8,(_0x3bc12d&0xf^0xf)<<0x4,!![]),_0xfd27d5+0x9;else{if(_0x3bc12d&0xf||_0x31073f)_0x3b8072=0x9;else{if(_0x3bc12d&0xfffff)_0x3b8072=0x8;else{if(_0x3bc12d||_0x52b337&0xf)_0x3b8072=0x6;else _0x3b8072=0x4;}}}_0x4bbbbf[_0x1b1f28(0x879)](_0xfd27d5+0x0,_0x52b337>>>0x4|0x10000000),_0x4bbbbf['setInt32'](_0xfd27d5+0x4,_0x3bc12d>>>0x4|_0x52b337<<0x1c),_0x4bbbbf[_0x1b1f28(0x879)](_0xfd27d5+0x8,(_0x3bc12d&0xf)<<0x4,!![]);return _0xfd27d5+_0x3b8072;case _0x1b1f28(0x559):if(_0xfc5ea7){if(Array[_0x1b1f28(0x439)](_0xfc5ea7)){for(let _0x468521=0x0,_0x19afaf=_0xfc5ea7[_0x1b1f28(0x68a)];_0x468521<_0x19afaf;_0x468521++){if(_0x468521>0x0)_0x2f5d37[_0xfd27d5++]=0x0;_0xfd27d5=_0x596a51(_0xfc5ea7[_0x468521],_0x2f5d37,_0xfd27d5,!![]);}break;}else{if(_0xfc5ea7 instanceof Uint8Array){_0x2f5d37[_0x1b1f28(0x63f)](_0xfc5ea7,_0xfd27d5),_0xfd27d5+=_0xfc5ea7[_0x1b1f28(0x68a)];break;}else throw new Error('Unable\x20to\x20serialize\x20object\x20as\x20a\x20key:\x20'+JSON[_0x1b1f28(0x35a)](_0xfc5ea7));}}else _0x2f5d37[_0xfd27d5++]=0x0;break;case _0x1b1f28(0x275):_0x4bbbbf['setUint32'](_0xfd27d5++,_0xfc5ea7?0x7:0x6,!![]);return _0xfd27d5;case _0x1b1f28(0x451):let _0x42237c=Number(_0xfc5ea7);if(BigInt(_0x42237c)>_0xfc5ea7){_0x3adf8f[0x0]=_0x42237c;if(_0x42237c>0x0){if(_0x33af14[_0x545a83])_0x33af14[_0x545a83]--;else _0x33af14[_0x12756d]--,_0x33af14[_0x545a83]=0xffffffff;}else{if(_0x33af14[_0x545a83]<0xffffffff)_0x33af14[_0x545a83]++;else _0x33af14[_0x12756d]++,_0x33af14[_0x545a83]=0x0;}_0x42237c=_0x3adf8f[0x0];}let _0x5f194e=_0xfc5ea7-BigInt(_0x42237c);if(_0x5f194e===0x0n)return _0x596a51(_0x42237c,_0x2f5d37,_0xfd27d5,_0x31073f);_0x596a51(_0x42237c,_0x2f5d37,_0xfd27d5,_0x31073f),_0xfd27d5+=0x9;let _0x275dbd=BigInt((_0x33af14[_0x12756d]>>0x14&0x7ff)-0x437),_0x12dbf6=_0x5f194e>>_0x275dbd;_0x2f5d37[_0xfd27d5-0x1]|=Number(_0x12dbf6),_0x5f194e-=_0x12dbf6<<_0x275dbd;let _0x56fd95=!![];while(_0x5f194e||_0x56fd95){_0x56fd95=![],_0x275dbd-=0x7n;let _0x461c8a=_0x5f194e>>_0x275dbd;_0x2f5d37[_0xfd27d5++]=Number(_0x461c8a)|0x80,_0x5f194e-=_0x461c8a<<_0x275dbd;}return _0xfd27d5;case'undefined':return _0xfd27d5;case _0x1b1f28(0x490):_0x2f5d37[_0xfd27d5++]=0x2;return _0x596a51(_0xfc5ea7[_0x1b1f28(0x2e0)],_0x2f5d37,_0xfd27d5,_0x31073f);default:throw new Error('Can\x20not\x20serialize\x20key\x20of\x20type\x20'+typeof _0xfc5ea7);}if(_0x1d20d8&&!_0x31073f)_0x4bbbbf[_0x1b1f28(0x546)](_0xfd27d5,0x0);return _0xfd27d5;}let _0x90b608;function _0x29ba30(_0x27bdd7,_0x5576d3,_0x54fd97,_0x2064b0){const _0x2452f6=_0x33c963;_0x90b608=_0x5576d3;let _0x39ed09=_0x27bdd7[_0x90b608],_0x5f0509;if(_0x39ed09<0x18){if(_0x39ed09<0x8){_0x90b608++;if(_0x39ed09==0x6)_0x5f0509=![];else{if(_0x39ed09==0x7)_0x5f0509=!![];else{if(_0x39ed09==0x0)_0x5f0509=null;else{if(_0x39ed09==0x2)_0x5f0509=Symbol[_0x2452f6(0x708)](_0x5ebf02(_0x27bdd7,_0x54fd97));else return Uint8Array[_0x2452f6(0x511)]['slice'][_0x2452f6(0x4d1)](_0x27bdd7,_0x5576d3,_0x54fd97);}}}}else{let _0x3bdca4;try{_0x3bdca4=_0x27bdd7[_0x2452f6(0x409)]||(_0x27bdd7['dataView']=new DataView(_0x27bdd7[_0x2452f6(0x4b0)],_0x27bdd7[_0x2452f6(0x204)],_0x27bdd7['byteLength']+0x3>>0x2<<0x2));}catch(_0x1c714a){_0x3bdca4=_0x27bdd7[_0x2452f6(0x409)]||(_0x27bdd7[_0x2452f6(0x409)]=new DataView(_0x27bdd7[_0x2452f6(0x4b0)],_0x27bdd7[_0x2452f6(0x204)],_0x27bdd7[_0x2452f6(0x4b0)][_0x2452f6(0x43d)]-_0x27bdd7['byteOffset']));}let _0x35cc29=_0x3bdca4[_0x2452f6(0x82a)](_0x90b608)<<0x4,_0x4dc581=_0x54fd97-_0x90b608,_0x12b0c9;if(_0x4dc581>0x4)_0x12b0c9=_0x90b608+0x8<=_0x27bdd7[_0x2452f6(0x68a)]?_0x3bdca4[_0x2452f6(0x82a)](_0x90b608+0x4):_0x27bdd7[_0x90b608+0x4]<<0x18|_0x27bdd7[_0x90b608+0x5]<<0x10|_0x27bdd7[_0x90b608+0x6]<<0x8|_0x27bdd7[_0x90b608+0x7],_0x35cc29|=_0x12b0c9>>>0x1c,_0x4dc581<=0x6&&(_0x12b0c9&=-0x10000),_0x12b0c9=_0x12b0c9<<0x4,_0x4dc581>0x8&&(_0x12b0c9=_0x12b0c9|_0x27bdd7[_0x90b608+0x8]>>0x4);else _0x12b0c9=0x0;_0x39ed09<0x10&&(_0x35cc29=_0x35cc29^0x7fffffff,_0x12b0c9=~_0x12b0c9);_0x33af14[_0x12756d]=_0x35cc29,_0x33af14[_0x545a83]=_0x12b0c9,_0x5f0509=_0x3adf8f[0x0],_0x90b608+=0x9;if(_0x4dc581>0x9&&_0x27bdd7[_0x90b608]>0x0){_0x5f0509=BigInt(_0x5f0509);let _0x4121b3=_0x35cc29>>0x14&0x7ff,_0x17ff33=_0x27bdd7[_0x90b608-0x1]&0xf;_0x5f0509+=BigInt(_0x17ff33)<<BigInt(_0x4121b3-0x437);while((_0x17ff33=_0x27bdd7[_0x90b608])>0x0&&_0x90b608++<_0x54fd97){_0x5f0509+=BigInt(_0x17ff33&0x7f)<<BigInt((_0x5576d3-_0x90b608)*0x7+_0x4121b3-0x3f8);}}}}else{_0x39ed09==0x1b&&_0x90b608++;_0x5f0509=_0x5ebf02(_0x27bdd7,_0x54fd97);if(_0x90b608<_0x54fd97)_0x90b608--;}while(_0x90b608<_0x54fd97){if(_0x27bdd7[_0x90b608]===0x0)_0x90b608++;if(_0x2064b0)return _0x4e7344[_0x2452f6(0x238)]=_0x90b608,_0x5f0509;let _0x3393ee=_0x29ba30(_0x27bdd7,_0x90b608,_0x54fd97,!![]);if(_0x5f0509 instanceof Array)_0x5f0509[_0x2452f6(0x28d)](_0x3393ee);else _0x5f0509=[_0x5f0509,_0x3393ee];}return _0x5f0509;}const _0x43cfcf=()=>_0x1d20d8=!![],_0x4e7344={'writeKey':_0x596a51,'readKey':_0x29ba30,'enableNullTermination':_0x43cfcf};let _0x47c234=[],_0x2f635c=0x0;const _0x345e7f=typeof Buffer!==_0x33c963(0x6a3),_0x4669db=_0x345e7f?Buffer[_0x33c963(0x6fb)]:Uint8Array,_0x5ce7b9=_0x3b6a05=>{const _0x50abc6=_0x33c963;let _0x20f7b2;_0x2f635c+0x64>_0x47c234[_0x50abc6(0x68a)]&&(_0x47c234=new _0x4669db(0x2000),_0x2f635c=0x0,_0x20f7b2=!![]);try{let _0x22bcd3=_0x47c234['slice'](_0x2f635c,_0x2f635c=_0x596a51(_0x3b6a05,_0x47c234,_0x2f635c));if(_0x2f635c>_0x47c234[_0x50abc6(0x68a)]){if(_0x20f7b2)throw new Error('Key\x20is\x20too\x20large');return _0x5ce7b9(_0x3b6a05);}return _0x22bcd3;}catch(_0x1f7781){if(_0x20f7b2)throw _0x1f7781;return _0x2f635c=_0x47c234[_0x50abc6(0x68a)],_0x5ce7b9(_0x3b6a05);}},_0x517b2f=_0xdf0a53=>{const _0x208fbd=_0x33c963;return _0x29ba30(_0xdf0a53,0x0,_0xdf0a53[_0x208fbd(0x68a)]);},_0x2fbb51=String[_0x33c963(0x205)];function _0xc56f7a(){const _0x16c67b=_0x33c963;let _0x165821=_0x16c67b(0x580),_0x30b328=[];for(let _0x51721b=0x0;_0x51721b<0x30;_0x51721b++){let _0x5b6699=_0x2fbb51((_0x51721b&0xf)+0x61)+_0x2fbb51((_0x51721b>>0x4)+0x61);_0x165821+=_0x16c67b(0x3b5)+_0x5b6699+_0x16c67b(0x540)+_0x5b6699+_0x16c67b(0x5c9)+_0x5b6699+_0x16c67b(0x7dc)+_0x5b6699+_0x16c67b(0x33b)+_0x5b6699+',\x20source)\x0a\x09\x09}\x20else\x20{\x0a\x09\x09\x09if\x20('+_0x5b6699+_0x16c67b(0x8ac)+_0x5b6699+_0x16c67b(0x73a)+_0x30b328+_0x16c67b(0x64f),_0x30b328[_0x16c67b(0x28d)](_0x5b6699);}return _0x165821+=_0x16c67b(0x738)+_0x30b328+_0x16c67b(0x467),_0x165821;}const _0x1a65b3=typeof process!==_0x33c963(0x6a3)&&process[_0x33c963(0x433)]?function(_0x1a3851){let {setPosition:_0x1c8f45,getPosition:_0x27904c,readString:_0x41e771}=_0x1a3851;return _0x1f56ca=>{_0x1c8f45(_0x90b608);let _0x106657=_0x41e771(_0x1f56ca);return _0x90b608=_0x27904c(),_0x106657;};}(new Function('fromCharCode',_0x33c963(0x3be)+_0xc56f7a()+_0x33c963(0x42a)+_0x33c963(0x7d9)+_0x33c963(0x341)+_0x33c963(0x483))(_0x2fbb51)):eval(_0xc56f7a());function _0x5ebf02(_0x2d4b36,_0x36c84c){if(_0x2d4b36[_0x36c84c]>0x0){let _0x5ceb1c=_0x2d4b36[_0x36c84c];try{return _0x2d4b36[_0x36c84c]=0x0,_0x1a65b3(_0x2d4b36);}finally{_0x2d4b36[_0x36c84c]=_0x5ceb1c;}}else return _0x1a65b3(_0x2d4b36);}function _0xe107f8(_0x139655,_0x203269){const _0x393bb9=_0x33c963;if(typeof _0x139655==_0x393bb9(0x559)){if(!_0x139655)return _0x203269==null?0x0:-0x1;if(_0x139655[_0x393bb9(0x8d9)]){if(_0x203269==null)return 0x1;else return _0x203269[_0x393bb9(0x8d9)]?_0x139655[_0x393bb9(0x8d9)](_0x203269):-0x1;}let _0x1b432e;if(_0x203269 instanceof Array){let _0x11b13d=0x0;while((_0x1b432e=_0xe107f8(_0x139655[_0x11b13d],_0x203269[_0x11b13d]))==0x0&&_0x11b13d<=_0x139655[_0x393bb9(0x68a)]){_0x11b13d++;}return _0x1b432e;}_0x1b432e=_0xe107f8(_0x139655[0x0],_0x203269);if(_0x1b432e==0x0&&_0x139655['length']>0x1)return 0x1;return _0x1b432e;}else{if(typeof _0x139655==typeof _0x203269)return typeof _0x139655===_0x393bb9(0x490)&&(_0x139655=Symbol[_0x393bb9(0x33f)](_0x139655),_0x203269=Symbol[_0x393bb9(0x33f)](_0x203269)),_0x139655<_0x203269?-0x1:_0x139655===_0x203269?0x0:0x1;else{if(typeof _0x203269=='object'){if(_0x203269 instanceof Array)return-_0xe107f8(_0x203269,_0x139655);return 0x1;}else return _0x4d9158[typeof _0x139655]<_0x4d9158[typeof _0x203269]?-0x1:0x1;}}}const _0x4d9158={'symbol':0x0,'undefined':0x1,'boolean':0x2,'number':0x3,'string':0x4},_0x735fe1=null,_0x4ef7a3=new Uint8Array([0xff]);return dist[_0x33c963(0x530)]=_0x4ef7a3,dist['MINIMUM_KEY']=_0x735fe1,dist['compareKeys']=_0xe107f8,dist['enableNullTermination']=_0x43cfcf,dist[_0x33c963(0x72c)]=_0x4e7344,dist[_0x33c963(0x428)]=_0x517b2f,dist['readKey']=_0x29ba30,dist[_0x33c963(0x480)]=_0x5ce7b9,dist[_0x33c963(0x5ac)]=_0x596a51,dist;}var keyenc,hasRequiredKeyenc;function requireKeyenc(){if(hasRequiredKeyenc)return keyenc;hasRequiredKeyenc=0x1;const {writeKey:_0x3ed42c}=requireDist(),_0x5ec42a=0x7ba,_0x3dde7d=0x1000;function _0x3d4f43(_0xe95a6,_0x431ae3){const _0x3da936=_0x52a3;switch(typeof _0xe95a6){case _0x3da936(0x2b1):return _0xe95a6['length']<=_0x5ec42a&&_0xe95a6[_0x3da936(0x539)]();case'number':case _0x3da936(0x275):return!![];case _0x3da936(0x559):if(_0xe95a6===null)return!![];if(Array[_0x3da936(0x439)](_0xe95a6)){if(_0x431ae3>0x8||_0xe95a6[_0x3da936(0x68a)]>_0x5ec42a)return![];for(let _0xf297b0=0x0;_0xf297b0<_0xe95a6['length'];_0xf297b0++)if(!_0x3d4f43(_0xe95a6[_0xf297b0],_0x431ae3+0x1))return![];return!![];}return Buffer['isBuffer'](_0xe95a6)&&_0xe95a6[_0x3da936(0x68a)]<=_0x5ec42a;default:return![];}}function _0x29c999(_0x1ec8cc,_0x3f5ff0){const _0x3686ad=_0x52a3,_0x177c95=typeof _0x1ec8cc;if(_0x177c95===_0x3686ad(0x2b1)){if(_0x1ec8cc[_0x3686ad(0x68a)]>=0x40||!_0x1ec8cc['isWellFormed']()){if(!_0x3d4f43(_0x1ec8cc,0x0))return-0x1;}}else{if(_0x177c95!==_0x3686ad(0x6e7)){if(Array['isArray'](_0x1ec8cc)?_0x1ec8cc[_0x3686ad(0x68a)]===0x0||!_0x3d4f43(_0x1ec8cc,0x0):!_0x3d4f43(_0x1ec8cc,0x0))return-0x1;}}let _0x53e712;try{_0x53e712=_0x3ed42c(_0x1ec8cc,_0x3f5ff0,0x0);}catch{return-0x1;}return _0x53e712>0x0&&_0x53e712<=_0x5ec42a?_0x53e712:-0x1;}return keyenc={'encodeKey':_0x29c999,'KEY_BUF_SIZE':_0x3dde7d,'NO_FAST':Symbol('okdb.noFast')},keyenc;}var okdbHlc,hasRequiredOkdbHlc;function requireOkdbHlc(){const _0x41be86=_0x5c70f8;if(hasRequiredOkdbHlc)return okdbHlc;hasRequiredOkdbHlc=0x1;const _0x3ef3f0=0x400,_0x19a315=_0x3ef3f0-0x1,_0x2ad171=0xea60;function _0xd85f3b(_0x271516,_0x819ff5){const _0x58ea76=_0x52a3;return _0x271516*_0x3ef3f0+Math['max'](0x0,Math[_0x58ea76(0x597)](_0x819ff5,_0x19a315));}function _0x536028(_0x326e3a){const _0x77a3ac=Math['max'](0x0,Number(_0x326e3a)||0x0),_0x308e0b=_0x77a3ac%_0x3ef3f0,_0x4677f9=(_0x77a3ac-_0x308e0b)/_0x3ef3f0;return{'pt':_0x4677f9,'l':_0x308e0b};}function _0x20d7b4(_0x3fbaeb,_0x40f28b=Date[_0x41be86(0x8cc)]()){const _0x2138ce=_0x41be86,{pt:_0x43b640,l:_0x5dbd88}=_0x536028(_0x3fbaeb),_0x49d9f9=Math[_0x2138ce(0x4a0)](_0x43b640,_0x40f28b),_0x447aad=_0x49d9f9===_0x43b640?Math[_0x2138ce(0x597)](_0x5dbd88+0x1,_0x19a315):0x0;return _0xd85f3b(_0x49d9f9,_0x447aad);}function _0x37a475(_0x3a5f2b,_0x1fc873,_0x5e70b0=Date[_0x41be86(0x8cc)]()){const _0x2a015e=_0x41be86,{pt:_0x4c1426,l:_0x4b583c}=_0x536028(_0x3a5f2b),{pt:_0x260c58,l:_0x334b5c}=_0x536028(_0x1fc873),_0x39d4ec=Math[_0x2a015e(0x4a0)](_0x4c1426,_0x260c58,_0x5e70b0);let _0x197870;if(_0x39d4ec===_0x4c1426&&_0x39d4ec===_0x260c58)_0x197870=Math[_0x2a015e(0x597)](Math[_0x2a015e(0x4a0)](_0x4b583c,_0x334b5c)+0x1,_0x19a315);else{if(_0x39d4ec===_0x4c1426)_0x197870=Math['min'](_0x4b583c+0x1,_0x19a315);else _0x39d4ec===_0x260c58?_0x197870=Math['min'](_0x334b5c+0x1,_0x19a315):_0x197870=0x0;}return _0xd85f3b(_0x39d4ec,_0x197870);}function _0x41c557(_0x1f9f9a,_0x4a796c){const _0x122773=Number(_0x1f9f9a)||0x0,_0x3741c7=Number(_0x4a796c)||0x0;if(_0x122773<_0x3741c7)return-0x1;if(_0x122773>_0x3741c7)return 0x1;return 0x0;}function _0x4a4955(_0x31b3a0){return _0x536028(_0x31b3a0)['pt'];}return okdbHlc={'send':_0x20d7b4,'recv':_0x37a475,'compare':_0x41c557,'toMs':_0x4a4955,'encode':_0xd85f3b,'decode':_0x536028,'SCALE':_0x3ef3f0,'L_MAX':_0x19a315,'DRIFT_MAX':_0x2ad171},okdbHlc;}var env,hasRequiredEnv;function requireEnv(){const _0x586020=_0x5c70f8;if(hasRequiredEnv)return env;hasRequiredEnv=0x1;const {fromArray:_0x3c7583,chunkedRange:_0x4f271f,pinnedChunks:_0x53dd84,claimPrefetch:_0x3d67b0}=requireIterable(),{reclass:_0x45bc2b,NotImplementedNative:_0x8f8e5a,OKDBError:_0xe3992f,optionsArg:_0x324607}=requireErrors(),{OKDBViews:_0x5a1f78}=requireViews(),{OKDBQueue:_0x5ce0fa}=requireQueue(),{OKDBTimeMachine:_0x375fd3}=requireTimemachine(),_0x24ddb9=_0xa6c313=>{const _0x4f36b5=_0x52a3;try{return!_0xa6c313[_0x4f36b5(0x782)]||_0xa6c313[_0x4f36b5(0x782)][_0x4f36b5(0x84a)]('timeMachine');}catch{return!![];}},{OKDBFiles:_0x42f508}=requireFiles(),{OKDBEngines:_0x2a3d6d,OKDBPipelines:_0x5c7fe8}=requireEngines(),{OKDBFunctions:_0x454de4}=requireFunctions(),_0x364b78=requireProcessor(),{RawDb:_0x1394ec}=requireRawdb(),_0x34d646=requireBridge();let _0x211a9f=null;const _0x2313f8=()=>_0x211a9f||=requireOkdbTransaction(),_0x4a3096=(..._0x6eb7c7)=>requireOkdbGuardedRange()['guardSnapshotIterable'](..._0x6eb7c7),_0x18f365=Buffer[_0x586020(0x48d)]([0xff]),_0x17e2fa=process.env.OKDB_NATIVE_RAW_READS!=='0',_0x336128=_0x17e2fa&&process.env.OKDB_NATIVE_FAST_GET!=='0',{NO_FAST:_0x39d868}=requireKeyenc(),_0x2bf396=new Set(_0x17e2fa?[_0x586020(0x3ee),_0x586020(0x5c4),_0x586020(0x69f),_0x586020(0x4d6),_0x586020(0x300)]:[]),_0xd29834=new Set(['get','getEntry',_0x586020(0x233),'getRange',_0x586020(0x300),_0x586020(0x88a),_0x586020(0x8ce),_0x586020(0x764),_0x586020(0x2dd),'byIndex',_0x586020(0x416),_0x586020(0x69f),_0x586020(0x40f),_0x586020(0x853),_0x586020(0x3b3),_0x586020(0x4d6),_0x586020(0x400),_0x586020(0x8cc),_0x586020(0x414),_0x586020(0x4c3),_0x586020(0x5f8),_0x586020(0x38b),_0x586020(0x49c),'pinned',_0x586020(0x7e7),_0x586020(0x7da),'hasUniqueViolations',_0x586020(0x212),_0x586020(0x28f),_0x586020(0x687),_0x586020(0x5c1),'getRefViolation','listRefViolations',_0x586020(0x40b),'listTTL','ttlStats',_0x586020(0x456),'name',_0x586020(0x500),'id',_0x586020(0x55f),_0x586020(0x4fe),_0x586020(0x819),_0x586020(0x7f8),_0x586020(0x22a)]),_0x2a3c96=new Set([_0x586020(0x45c),_0x586020(0x735),'reverse',_0x586020(0x582),_0x586020(0x353),_0x586020(0x6b8),_0x586020(0x757),_0x586020(0x305),_0x586020(0x5d0),_0x586020(0x41c),'transaction',_0x586020(0x82f),_0x586020(0x6b9),'prefix']);function _0x104df6(_0x4b1aa7,_0x75efce,_0x4af3d4){const _0x46ce64=new Map();return(_0x6fc3f7,_0x484e68)=>{const _0x5295c4=_0x52a3,_0x264d7f=JSON[_0x5295c4(0x35a)](_0x484e68),_0x355f75=_0x46ce64[_0x5295c4(0x309)](_0x264d7f);if(_0x355f75){if(_0x355f75[_0x5295c4(0x74f)]===_0x5295c4(0x321))throw _0x38e7d2();_0x46ce64['delete'](_0x264d7f);if(_0x355f75['state']==='err')throw _0x355f75[_0x5295c4(0x2ef)];return _0x355f75[_0x5295c4(0x2ef)];}const _0x654c82=_0x6fc3f7(..._0x484e68);if(!_0x654c82||typeof _0x654c82[_0x5295c4(0x801)]!=='function')return _0x654c82;const _0x368b69={'state':_0x5295c4(0x321),'value':undefined},_0x2798b1=(_0x596a07,_0x314626)=>{const _0x5f5688=_0x5295c4;_0x368b69[_0x5f5688(0x74f)]=_0x596a07,_0x368b69[_0x5f5688(0x2ef)]=_0x314626;if(_0x46ce64[_0x5f5688(0x309)](_0x264d7f)!==_0x368b69)return;setTimeout(()=>_0x46ce64[_0x5f5688(0x309)](_0x264d7f)===_0x368b69&&_0x46ce64[_0x5f5688(0x2cb)](_0x264d7f),0x7530)['unref']();try{_0x4b1aa7['okdb'][_0x5f5688(0x210)](_0x5f5688(0x4cb),null,_0x5f5688(0x5a2),[_0x5f5688(0x4b1),{'env':_0x4b1aa7[_0x5f5688(0x54b)],'type':_0x75efce,'field':_0x4af3d4}],!![]);}catch{}};_0x654c82['then'](_0x44c7ce=>_0x2798b1('ok',_0x44c7ce),_0x45b7e=>_0x2798b1('err',_0x45b7e));for(let _0x56f4fb=0x0;_0x56f4fb<0x64&&_0x368b69[_0x5295c4(0x74f)]==='pending';_0x56f4fb++)process[_0x5295c4(0x33e)]();if(_0x368b69[_0x5295c4(0x74f)]==='ok')return _0x368b69[_0x5295c4(0x2ef)];if(_0x368b69['state']===_0x5295c4(0x2d0))throw _0x368b69[_0x5295c4(0x2ef)];_0x46ce64[_0x5295c4(0x63f)](_0x264d7f,_0x368b69);throw _0x38e7d2();};}function _0x38e7d2(){const _0xc5626d=_0x586020;return Object['assign'](new Error(_0xc5626d(0x3e0)),{'code':_0xc5626d(0x6fe)});}class _0x1107fb{constructor(_0x58e2f6,_0x28138b){const _0x41daa1=_0x586020;this['okdb']=_0x58e2f6,this[_0x41daa1(0x54b)]=_0x28138b,this[_0x41daa1(0x4cb)]=_0x58e2f6[_0x41daa1(0x4cb)],this['log']=_0x58e2f6[_0x41daa1(0x58d)],this[_0x41daa1(0x663)]=!![],this[_0x41daa1(0x4c6)]=null,this['views']=new _0x5a1f78(this),this['processor']=new _0x364b78(this);if(!_0x28138b[_0x41daa1(0x38a)]('~')||_0x28138b[_0x41daa1(0x495)](_0x41daa1(0x6b2)))this[_0x41daa1(0x622)]=new _0x5ce0fa(this);if(!_0x28138b['startsWith']('~'))this[_0x41daa1(0x87a)]=new _0x42f508(this);this[_0x41daa1(0x7b5)]=new _0x454de4(_0x58e2f6,_0x28138b),this[_0x41daa1(0x655)]=new _0x2a3d6d(_0x58e2f6,_0x28138b,_0x58e2f6[_0x41daa1(0x655)]),this[_0x41daa1(0x723)]=new _0x5c7fe8(_0x58e2f6,_0x28138b);if(!_0x28138b[_0x41daa1(0x38a)]('~')&&_0x58e2f6[_0x41daa1(0x688)][_0x41daa1(0x58f)]&&_0x24ddb9(_0x58e2f6))this[_0x41daa1(0x58f)]=new _0x375fd3(this);_0x34d646[_0x41daa1(0x74c)](this[_0x41daa1(0x500)],this);const _0x597cca=this;this[_0x41daa1(0x767)]={async 'transaction'(_0x34f865){const _0x408348=_0x41daa1,_0x212891=[];_0x597cca[_0x408348(0x4c6)]=_0x212891;try{_0x34f865();}finally{_0x597cca[_0x408348(0x4c6)]=null;}return _0x597cca[_0x408348(0x61e)]['_wb'][_0x408348(0x26b)](_0x408348(0x609),_0x597cca[_0x408348(0x54b)],_0x408348(0x8e6),[_0x212891]);},'drain'(){const _0x4e1c7f=_0x41daa1;return _0x597cca[_0x4e1c7f(0x61e)][_0x4e1c7f(0x2d7)][_0x4e1c7f(0x3ec)]();},'flushLmdb'(){const _0x17f58d=_0x41daa1;return _0x597cca['okdb']['_wb'][_0x17f58d(0x3ec)]();},'markClosed'(){}};const _0x42a310=new _0x1394ec(this,'');_0x42a310['getStats']=()=>({'lastTxnId':this['_n'](_0x41daa1(0x55f),[])}),Object[_0x41daa1(0x1fd)](_0x42a310,_0x41daa1(0x7db),{'get':()=>this[_0x41daa1(0x61e)][_0x41daa1(0x2d7)][_0x41daa1(0x3ec)](),'configurable':!![]}),Object['defineProperty'](_0x42a310,_0x41daa1(0x299),{'get':()=>this[_0x41daa1(0x61e)][_0x41daa1(0x2d7)]['drain'](),'configurable':!![]});const _0x39eee6=_0x42a310['get'][_0x41daa1(0x78f)](_0x42a310);_0x42a310[_0x41daa1(0x309)]=_0x40fb45=>_0x40fb45===_0x41daa1(0x800)?this['_n'](_0x41daa1(0x3b3),[null]):_0x39eee6(_0x40fb45),this['db']=_0x42a310;}async[_0x586020(0x5df)](){const _0x2c520d=_0x586020;this[_0x2c520d(0x475)]=!![];}get[_0x586020(0x21c)](){const _0x1fbcd0=_0x586020;return new Map(this[_0x1fbcd0(0x61e)][_0x1fbcd0(0x210)]('db',null,'formerOrigins',[this['name']],![]));}get[_0x586020(0x394)](){const _0x20d16e=_0x586020;return this[_0x20d16e(0x4d0)]||(this[_0x20d16e(0x4d0)]=new _0x1394ec(this,_0x20d16e(0x3ba)));}['_getType'](_0xb21975){const _0x2d5268=_0x586020,_0x122c21=this[_0x2d5268(0x394)][_0x2d5268(0x309)](_0xb21975);if(_0x122c21===undefined||String(_0xb21975)[_0x2d5268(0x38a)](_0x2d5268(0x586))||String(_0xb21975)[_0x2d5268(0x38a)]('__fts:')){const {OKDBError:_0x2c4980}=requireErrors();throw new _0x2c4980(_0x2d5268(0x63c)+_0xb21975+_0x2d5268(0x290),_0x2d5268(0x1ca),{'type':_0xb21975});}const _0x1941db=this,_0x12ed8f=new _0x1394ec(_0x1941db,_0x2d5268(0x8b7)+_0xb21975+':index'),_0x58a3d0=new Map();for(const _0x498e77 of _0x12ed8f[_0x2d5268(0x300)]()){const _0x5070a3=_0x12ed8f['get'](_0x498e77)||{},_0x39dbf4={'parts':_0x498e77[_0x2d5268(0x5e4)]('~'),'db':new _0x1394ec(_0x1941db,_0x2d5268(0x8b7)+_0xb21975+_0x2d5268(0x76d)+_0x498e77,{'dupSort':!![]})};if(_0x5070a3[_0x2d5268(0x2de)])_0x39dbf4[_0x2d5268(0x2de)]=_0x5070a3['geoConfig'];if(_0x5070a3['unique'])_0x39dbf4[_0x2d5268(0x21e)]=!![];if(_0x5070a3[_0x2d5268(0x856)])_0x39dbf4['sparse']=!![];if(_0x5070a3[_0x2d5268(0x2d2)])_0x39dbf4[_0x2d5268(0x2d2)]=_0x5070a3['createdBy'];_0x39dbf4['usedBy']=new Set((_0x5070a3['usedBy']??[])[_0x2d5268(0x35e)](_0x150cae=>_0x150cae[_0x2d5268(0x2a7)]+':'+_0x150cae[_0x2d5268(0x54b)])),_0x58a3d0[_0x2d5268(0x63f)](_0x498e77,_0x39dbf4);}return{'root':new _0x1394ec(_0x1941db,'type:'+_0xb21975),'data':new _0x1394ec(_0x1941db,_0x2d5268(0x8b7)+_0xb21975+_0x2d5268(0x3b7),{'useVersions':!![]}),'indexes':_0x12ed8f,'clockToChange':new _0x1394ec(_0x1941db,_0x2d5268(0x8b7)+_0xb21975+_0x2d5268(0x4aa)),'keyToChange':new _0x1394ec(_0x1941db,_0x2d5268(0x8b7)+_0xb21975+':keyToChange'),'fieldSchema':new Map(Object[_0x2d5268(0x719)](_0x122c21[_0x2d5268(0x376)]||{})[_0x2d5268(0x35e)](([_0x239bc3,_0x1e9b52])=>[_0x239bc3,new Set(Array[_0x2d5268(0x439)](_0x1e9b52)?_0x1e9b52:[_0x1e9b52])])),'indexToDb':_0x58a3d0,'ftsToDb':null,'schema':_0x122c21['schema']||null,'defaultTTL':_0x122c21[_0x2d5268(0x55d)]||null};}get[_0x586020(0x760)](){const _0x4d0b4e=_0x586020,_0x16b0a7=this,_0xc8771a=()=>_0x16b0a7[_0x4d0b4e(0x4c3)]();return{'get':_0x1addcd=>{const _0x2b8ed0=_0x4d0b4e;try{return _0x16b0a7[_0x2b8ed0(0x3c8)](_0x1addcd);}catch{return undefined;}},'has':_0x2196fb=>_0xc8771a()[_0x4d0b4e(0x495)](_0x2196fb),'keys':()=>_0xc8771a()[Symbol['iterator']](),get 'size'(){const _0x6f2374=_0x4d0b4e;return _0xc8771a()[_0x6f2374(0x68a)];}};}[_0x586020(0x695)](){const _0x4975ae=_0x586020;return this[_0x4975ae(0x4c3)]();}get[_0x586020(0x365)](){const _0x59731d=_0x586020;return this[_0x59731d(0x506)]||(this['_changeToClockDb']=new _0x1394ec(this,'changes'));}get['clockToChangeDb'](){const _0x67f1b4=_0x586020;return this[_0x67f1b4(0x6ec)]||(this[_0x67f1b4(0x6ec)]=new _0x1394ec(this,_0x67f1b4(0x855)));}[_0x586020(0x222)](_0x37b6c4){const _0x1f8cdf=_0x586020;return this['_n'](_0x1f8cdf(0x556),[_0x37b6c4]);}get[_0x586020(0x746)](){const _0xdf362e=_0x586020;return!this['_n'](_0xdf362e(0x8ef),[],![]);}get[_0x586020(0x7d7)](){const _0x11afac=_0x586020;return this['__syncOverride']!==undefined?this['__syncOverride']:this['_n'](_0x11afac(0x8ef),[],![]);}set[_0x586020(0x7d7)](_0x28aee3){const _0x24de56=_0x586020;this[_0x24de56(0x7e9)]=_0x28aee3;}get[_0x586020(0x3f5)](){const _0x43afad=_0x586020;return this['_compactLock']||(this[_0x43afad(0x463)]=new(requireLock())['NativeLock'](this[_0x43afad(0x61e)],_0x43afad(0x5b5),_0x43afad(0x502),{'ttlMs':0xea60}));}get[_0x586020(0x500)](){const _0x21d2ba=_0x586020;return this[_0x21d2ba(0x1cb)]??(this[_0x21d2ba(0x1cb)]=this['_n'](_0x21d2ba(0x500),[]));}get['id'](){return this['_n']('id',[]);}get[_0x586020(0x3e4)](){const _0x5b66e0=_0x586020;return this[_0x5b66e0(0x61e)][_0x5b66e0(0x3e4)];}['_n'](_0x4c93ce,_0x428cf2){const _0x585de4=_0x586020;return this[_0x585de4(0x61e)][_0x585de4(0x210)](_0x585de4(0x609),this[_0x585de4(0x54b)],_0x4c93ce,_0x428cf2,!_0xd29834['has'](_0x4c93ce));}[_0x586020(0x30a)](_0x5a644d){const _0x501f13=_0x586020;return this[_0x501f13(0x61e)][_0x501f13(0x7aa)](_0x5a644d);}[_0x586020(0x44d)](_0x1c5d51,_0x4c265c){const _0x4a53c8=_0x586020;if(_0x2bf396['has'](_0x1c5d51===_0x4a53c8(0x6a1)?_0x4c265c[0x1]:_0x1c5d51))return this['okdb'][_0x4a53c8(0x6fc)](this[_0x4a53c8(0x54b)],_0x1c5d51,_0x4c265c);return this[_0x4a53c8(0x61e)]['_callPacked'](_0x4a53c8(0x609),this[_0x4a53c8(0x54b)],_0x1c5d51,_0x4c265c);}[_0x586020(0x68f)](_0x376ec1={'useReadTransaction':![]}){return new(_0x2313f8())(this,_0x376ec1);}async['txn'](_0xa63819,_0x3d7a65){const _0x28c550=_0x586020;return _0x2313f8()[_0x28c550(0x84c)](this,_0xa63819,_0x3d7a65);}[_0x586020(0x33d)](_0x41e2c1,_0x33d47e){const _0x53ac96=_0x586020;if(this['_txnBuf'])this[_0x53ac96(0x4c6)]['push']({'action':_0x41e2c1,'args':_0x33d47e});else this['_n'](_0x41e2c1,_0x33d47e);}[_0x586020(0x482)](_0x410bd3,_0xb616cc,_0x3c164d,_0x537628,_0x4ea4e9){const _0x1dbf81=_0x586020;this[_0x1dbf81(0x33d)](_0x1dbf81(0x253),[_0xb616cc,_0x3c164d,_0x537628,_0x4ea4e9]);}[_0x586020(0x362)](_0x95de85,_0x461e62,_0x5addee,_0x185773,_0x20abc3){const _0x28cafe=_0x586020;this[_0x28cafe(0x33d)](_0x28cafe(0x5b4),[_0x461e62,_0x5addee,_0x185773,_0x20abc3]);}['_patch'](_0x5ab658,_0x2d8b08,_0x47c007,_0x1b5ff3,_0x39b658){const _0x1c6581=_0x586020;this[_0x1c6581(0x33d)](_0x1c6581(0x65b),[_0x2d8b08,_0x47c007,_0x1b5ff3,_0x39b658]);}['_create'](_0x45d0aa,_0xf2c9ac,_0x4d9b2f,_0x42ae46,_0x535e20){const _0x4dda83=_0x586020;this[_0x4dda83(0x33d)](_0x4dda83(0x67b),[_0xf2c9ac,_0x4d9b2f,_0x42ae46,_0x535e20]);}[_0x586020(0x46d)](_0x40c3b9,_0x4aa61f,_0x5d7488,_0x3ccd13){const _0x1ff749=_0x586020;this[_0x1ff749(0x33d)]('remove',[_0x4aa61f,_0x5d7488,_0x3ccd13]);}[_0x586020(0x613)](_0x16f272,_0x5bf653,_0x189579,_0x2e8ade){const _0x3a6c17=_0x586020;this['_low'](_0x3a6c17(0x246),[_0x5bf653,_0x189579,_0x2e8ade]);}[_0x586020(0x6b5)](_0x32b59b,_0x213302,_0x1ddbf4){const _0x19ec13=_0x586020;this['_low'](_0x19ec13(0x599),[_0x213302,_0x1ddbf4]);}['_w'](_0x57a0d7,_0x19be96){const _0x510e99=_0x586020;return this['okdb'][_0x510e99(0x2d7)][_0x510e99(0x26b)]('env',this[_0x510e99(0x54b)],_0x57a0d7,_0x19be96);}[_0x586020(0x253)](_0x2f22cd,_0x400809,_0xc86b27,_0x1b5c06={}){const _0x3f5da9=_0x586020;return this['_w'](_0x3f5da9(0x253),[_0x2f22cd,_0x400809,_0xc86b27,_0x1b5c06]);}[_0x586020(0x5b4)](_0x5e52a7,_0x174302,_0x1b7e8c,_0x519995={}){const _0x3a09b6=_0x586020;return this['_w'](_0x3a09b6(0x5b4),[_0x5e52a7,_0x174302,_0x1b7e8c,_0x519995]);}[_0x586020(0x65b)](_0x2c373f,_0x14cc4d,_0x231405,_0x4e7ccc={}){const _0x1dd2fa=_0x586020;return this['_w'](_0x1dd2fa(0x65b),[_0x2c373f,_0x14cc4d,_0x231405,_0x4e7ccc]);}[_0x586020(0x67b)](_0x46f46f,_0x53f803,_0x5436e0,_0x15928c={}){const _0x4b0155=_0x586020;return this['_w'](_0x4b0155(0x67b),[_0x46f46f,_0x53f803,_0x5436e0,_0x15928c]);}['remove'](_0x3536b8,_0x8d5b0d,_0x28fbd0={}){const _0xfa3f89=_0x586020;return this['_w'](_0xfa3f89(0x504),[_0x3536b8,_0x8d5b0d,_0x28fbd0]);}['get'](_0x2fa581,_0x294d62,_0x35ff01){const _0x1eefae=_0x586020;if(_0x336128&&typeof _0x2fa581==='string'){const _0x53bb84=this[_0x1eefae(0x61e)]['_getFast'](this[_0x1eefae(0x54b)],_0x2fa581,_0x294d62);if(_0x53bb84!==_0x39d868)return _0x53bb84===null?this['_n'](_0x1eefae(0x309),[_0x2fa581,_0x294d62]):_0x53bb84;}if(_0x17e2fa&&(typeof _0x294d62===_0x1eefae(0x2b1)||typeof _0x294d62===_0x1eefae(0x6e7))){const _0x2fd9fd=this['okdb']['_getRaw'](this['name'],_0x2fa581,_0x294d62);if(_0x2fd9fd!==null)return _0x2fd9fd;}return this['_n'](_0x1eefae(0x309),[_0x2fa581,typeof _0x294d62==='symbol'?null:_0x294d62]);}[_0x586020(0x233)](_0x15380d,_0xdfde9f,_0x151a86){const _0x5390d7=_0x586020,_0x7f91bb=[_0x15380d,Array[_0x5390d7(0x439)](_0xdfde9f)&&_0xdfde9f[_0x5390d7(0x224)](_0x43d442=>typeof _0x43d442===_0x5390d7(0x490))?_0xdfde9f[_0x5390d7(0x35e)](_0x1dabb6=>typeof _0x1dabb6===_0x5390d7(0x490)?null:_0x1dabb6):_0xdfde9f];return _0x17e2fa?this[_0x5390d7(0x61e)][_0x5390d7(0x6fc)](this[_0x5390d7(0x54b)],_0x5390d7(0x233),_0x7f91bb):this['_n']('getMany',_0x7f91bb);}[_0x586020(0x3a0)](_0x3a0054,_0x774334,_0x5f4e68){const _0x5a9589=_0x586020;return this['_n']('getEntry',[_0x3a0054,typeof _0x774334===_0x5a9589(0x490)?null:_0x774334]);}[_0x586020(0x8ce)](_0x49eed0,_0x22c432){const _0x17a300=_0x586020;return this[_0x17a300(0x64b)](_0x17a300(0x8ce),_0x22c432),this['_n']('getCount',[_0x49eed0,_0x43b959(_0x22c432)]);}[_0x586020(0x64b)](_0x221008,_0x5a8a5e,_0x1bafc2=[]){const _0x125f37=_0x586020;if(!_0x5a8a5e||typeof _0x5a8a5e!==_0x125f37(0x559))return;for(const _0x226bee of Object['keys'](_0x5a8a5e)){if(!_0x2a3c96['has'](_0x226bee)&&!_0x1bafc2[_0x125f37(0x495)](_0x226bee))throw new _0xe3992f(_0x221008+':\x20unknown\x20option\x20\x27'+_0x226bee+'\x27',_0x125f37(0x5de),{'option':_0x226bee});}}[_0x586020(0x64d)](_0x243b72,_0x814a6d,_0x2871b2,_0x40543e,_0x5c8900,_0x4c8356){const _0x414c1f=_0x586020;this['_assertRangeOptions'](_0x243b72,_0x40543e);const _0x4719f3=_0x40543e?.[_0x414c1f(0x41c)],_0x23c607=_0x43b959(_0x40543e);if(_0x4719f3===!![]||_0x4719f3==='tolerant'){const _0x47c5e0=this['_lazyPinned'](_0x243b72,_0x814a6d,_0x512241=>[_0x2871b2,{..._0x23c607,..._0x512241}],_0x40543e);return _0x4c8356?_0x47c5e0[_0x414c1f(0x35e)](_0x4c8356):_0x47c5e0;}const _0x775ebe=_0x4f271f(_0x49af09=>this['_np'](_0x814a6d,[_0x2871b2,_0x49af09]),_0x23c607,_0x5c8900,{'rows':_0x814a6d===_0x414c1f(0x3ee)});return _0x4c8356?_0x775ebe['map'](_0x4c8356):_0x775ebe;}[_0x586020(0x7d3)](_0x23b70c,_0x2ba5da,_0x59c7c6,_0x390e7d,_0x277c79,_0x3b12e8=![]){const _0x5b5c55=_0x586020,{source:_0x13f3e3,prefetch:_0x311cc4}=_0x53dd84((_0x49632a,_0x9890a5)=>_0x49632a==='unpin'?this['_n'](_0x49632a,_0x9890a5):this['_np'](_0x49632a,_0x9890a5),_0x2ba5da,_0x59c7c6,_0x390e7d||{},_0x277c79),_0x49ef80=_0x311cc4(),_0x5ca1f1=!_0x3b12e8&&_0x390e7d&&_0x390e7d[_0x5b5c55(0x41c)]==='tolerant';let _0x30fd11=null;return _0x4a3096(()=>({[Symbol[_0x5b5c55(0x344)]]:()=>_0x30fd11=_0x13f3e3(0x0,_0x3d67b0(_0x49ef80))}),{'label':this[_0x5b5c55(0x54b)]+':'+_0x23b70c,..._0x5ca1f1?{'getTxnId':()=>this['db'][_0x5b5c55(0x65c)]()[_0x5b5c55(0x55f)],'resume':()=>({[Symbol[_0x5b5c55(0x344)]]:()=>_0x30fd11=_0x30fd11[_0x5b5c55(0x35d)]()})}:{}});}[_0x586020(0x3ee)](_0xe0fcdb,_0x5a07fc){const _0x33349b=_0x586020;return this[_0x33349b(0x64d)](_0x33349b(0x3ee),_0x33349b(0x3ee),_0xe0fcdb,_0x5a07fc,_0x4eeeb1=>_0x4eeeb1['key']);}[_0x586020(0x300)](_0x111c76,_0x249b36){const _0x3d40d7=_0x586020;return this[_0x3d40d7(0x64d)]('getKeys',_0x3d40d7(0x300),_0x111c76,_0x249b36,_0x54e945=>_0x54e945);}[_0x586020(0x88a)](_0x3e0c03,_0x858ee4){const _0x1994c3=_0x586020;return this['_range']('getValues','getRange',_0x3e0c03,_0x858ee4,_0x46bf90=>_0x46bf90[_0x1994c3(0x82f)],_0x2b8624=>_0x2b8624[_0x1994c3(0x2ef)]);}[_0x586020(0x764)](_0x2a892f,_0x56a2d2,_0x153949={}){return this['getRange'](_0x2a892f,{'start':_0x56a2d2,'end':_0x56a2d2+'',..._0x153949});}['getIndex'](_0x54b0b8,_0x516c82,_0x5af55d={}){const _0x4219c2=_0x586020;this[_0x4219c2(0x64b)](_0x4219c2(0x2dd),_0x5af55d,[_0x4219c2(0x521)]);const _0x97383e=_0x43b959(_0x5af55d);if(_0x5af55d&&_0x5af55d[_0x4219c2(0x68f)])return _0x3c7583(this['_n'](_0x4219c2(0x2dd),[_0x54b0b8,_0x516c82,_0x97383e]));return this[_0x4219c2(0x7d3)](_0x4219c2(0x2dd),'getIndex',_0x44c307=>[_0x54b0b8,_0x516c82,{..._0x97383e,..._0x44c307}],_0x5af55d,undefined,!![]);}[_0x586020(0x5c4)](_0xfb7952,_0x3f6ea7,_0x28ecf4){const _0xbb86b5=_0x586020;this[_0xbb86b5(0x64b)](_0xbb86b5(0x5c4),_0x28ecf4,[_0xbb86b5(0x521),_0xbb86b5(0x6ff)]);const _0x3c5262=_0x43b959(_0x28ecf4);if(_0x28ecf4&&_0x28ecf4[_0xbb86b5(0x68f)])return _0x3c7583(this['_n'](_0xbb86b5(0x5c4),[_0xfb7952,_0x3f6ea7,_0x3c5262]));return this[_0xbb86b5(0x7d3)]('byIndex',_0xbb86b5(0x5c4),_0x46bca0=>[_0xfb7952,_0x3f6ea7,{..._0x3c5262,..._0x46bca0}],_0x28ecf4,undefined,!![]);}[_0x586020(0x416)](_0x4e4757,_0x31af08,_0x476741={}){const _0x30ef0f=_0x586020;return this['_n'](_0x30ef0f(0x416),[_0x4e4757,_0x31af08,_0x43b959(_0x476741)]);}['query'](_0x591c0e,_0xa09851={},_0x630e4d={}){const _0x5a19a5=_0x586020,_0x3de514=_0x4cfac7(_0x630e4d);if(_0x630e4d){for(const _0x2e7571 of Object[_0x5a19a5(0x4ac)](_0x630e4d))if(_0x2e7571!==_0x5a19a5(0x61b)&&typeof _0x630e4d[_0x2e7571]==='function')_0x3de514[_0x2e7571]=null;}if(_0x630e4d&&(_0x630e4d[_0x5a19a5(0x6b1)]||_0x630e4d[_0x5a19a5(0x24e)]))return this['_n'](_0x5a19a5(0x40f),[_0x3de514]),this[_0x5a19a5(0x872)](_0x591c0e,_0xa09851,_0x630e4d);const _0xbaaab4=typeof _0x630e4d[_0x5a19a5(0x61b)]===_0x5a19a5(0x640)?_0x630e4d[_0x5a19a5(0x61b)]:null;if(_0x630e4d[_0x5a19a5(0x526)]||_0x259252(_0xa09851)||_0x630e4d[_0x5a19a5(0x68f)]!==undefined){let _0x4ae52d=this['_n'](_0x5a19a5(0x69f),[_0x591c0e,_0xa09851,_0x3de514]);if(_0xbaaab4)_0x4ae52d=_0x4ae52d[_0x5a19a5(0x35e)](_0xbaaab4);if(_0x630e4d[_0x5a19a5(0x526)]||_0x259252(_0xa09851))return _0x4ae52d;return _0x3c7583(_0x4ae52d);}const _0x216b7b=_0x2cd07e=>typeof _0x2cd07e===_0x5a19a5(0x6e7)&&Number['isInteger'](_0x2cd07e)?Math[_0x5a19a5(0x4a0)](0x0,_0x2cd07e):Infinity;let _0x5712c8;if(_0x630e4d[_0x5a19a5(0x1da)]){const _0x2f2302=_0xa396fa=>typeof _0xa396fa===_0x5a19a5(0x6e7)&&_0xa396fa>0x0?Math[_0x5a19a5(0x3c1)](_0xa396fa):0x0;_0x5712c8=this[_0x5a19a5(0x7d3)]('query',_0x5a19a5(0x69f),_0x598251=>[_0x591c0e,_0xa09851,{..._0x3de514,..._0x598251}],null,{'limitOf':()=>_0x216b7b(_0x3de514['limit']),'offsetOf':()=>_0x2f2302(_0x3de514[_0x5a19a5(0x353)])});}else _0x5712c8=_0x4f271f(_0x51e7a8=>{const _0x1cc91f=_0x5a19a5,{__after:_0x288024,..._0x224219}=_0x51e7a8;return this[_0x1cc91f(0x44d)]('query',_0x288024===undefined?[_0x591c0e,_0xa09851,_0x224219]:[_0x591c0e,_0xa09851,_0x224219,_0x288024]);},_0x3de514,_0x4d6c3e=>_0x4d6c3e[_0x5a19a5(0x82f)],{'limitOf':_0x216b7b,'rows':!![],'prefetch':!![],'resumeOpts':(_0x2d2a57,_0x11626e)=>{const _0x4f54d1=_0x5a19a5;_0x2d2a57['offset']=0x0,_0x2d2a57[_0x4f54d1(0x4a4)]=_0x11626e;}});return _0xbaaab4?_0x5712c8[_0x5a19a5(0x35e)](_0xbaaab4):_0x5712c8;}async[_0x586020(0x872)](_0x127b6a,_0x3fc08e,_0x200e9e){const _0x57a95b=_0x586020,{select:_0x53b5cf,..._0x3bd4ad}=_0x4cfac7(_0x200e9e);let _0x56cf02={..._0x3bd4ad};const _0x253ab0=_0x56cf02['index'];if(_0x253ab0&&!Array['isArray'](_0x253ab0)&&typeof _0x253ab0===_0x57a95b(0x559)&&_0x253ab0[_0x57a95b(0x376)]){const {fields:_0xb4f383,prefix:_0x1796dd,start:_0x47a396,end:_0x3c6ded}=_0x253ab0;_0x56cf02={..._0x56cf02,'index':_0xb4f383,'prefix':_0x1796dd??_0x56cf02['prefix'],'startIndex':_0x47a396??_0x56cf02[_0x57a95b(0x2e3)],'endIndex':_0x3c6ded??_0x56cf02[_0x57a95b(0x61a)]};}const _0x27f174=await this[_0x57a95b(0x61e)]['_callMacro'](_0x57a95b(0x7f1),null,_0x57a95b(0x6a0),[this['name'],_0x127b6a,_0x3fc08e,_0x56cf02],![]),_0x3d6011=typeof _0x200e9e['select']===_0x57a95b(0x640)?_0x200e9e['select']:null;if(!_0x3d6011)return _0x27f174;return _0x27f174[_0x57a95b(0x35e)](_0x581978=>{const {score:_0x5c93d3,ftsScore:_0x48a916,numTerms:_0x36465a,maxScore:_0x79bce2,vectorScore:_0x411783,chunkHash:_0x18876a,chunk:_0x215d0f,..._0x2468c2}=_0x581978,_0x5d1bbe=_0x3d6011(_0x2468c2);for(const [_0x35d319,_0x46613e]of Object['entries']({'score':_0x5c93d3,'ftsScore':_0x48a916,'numTerms':_0x36465a,'maxScore':_0x79bce2,'vectorScore':_0x411783,'chunkHash':_0x18876a,'chunk':_0x215d0f}))if(_0x46613e!==undefined)_0x5d1bbe[_0x35d319]=_0x46613e;return _0x5d1bbe;});}[_0x586020(0x853)](_0x1ccc21,_0x12ff23,_0x2740d6={}){const _0x1b7d2d=_0x586020;let _0x3b734d=this['_n'](_0x1b7d2d(0x853),[_0x1ccc21,_0x12ff23,_0x4cfac7(_0x2740d6)]);if(typeof _0x2740d6[_0x1b7d2d(0x61b)]===_0x1b7d2d(0x640))_0x3b734d=_0x3b734d[_0x1b7d2d(0x35e)](_0x2740d6[_0x1b7d2d(0x61b)]);return _0x3b734d;}[_0x586020(0x3b3)](_0x1ef916=null,_0x48084a={}){const _0x2467d5=_0x586020;return this['_n'](_0x2467d5(0x3b3),[_0x1ef916]);}['getChanges'](_0x205629=null,_0x57f393=0x0,_0x1263b1=Number[_0x586020(0x2b9)],_0x5cbaf9={}){const _0x5f51bc=_0x586020,_0x313575=_0x43b959(_0x5cbaf9);if(_0x5cbaf9&&_0x5cbaf9[_0x5f51bc(0x68f)])return _0x3c7583(this['_n']('getChanges',[_0x205629,_0x57f393,_0x1263b1,_0x313575]));return this[_0x5f51bc(0x7d3)](_0x5f51bc(0x4d6),_0x5f51bc(0x4d6),_0x32e650=>[_0x205629,_0x57f393,_0x1263b1,{..._0x313575,..._0x32e650}],_0x5cbaf9);}['count'](_0x186c0b){const _0x45a733=_0x586020;if(Array['isArray'](_0x186c0b))return _0x186c0b[_0x45a733(0x68a)];let _0x3b4cda=0x0;for(const _0xbf3ec3 of _0x186c0b)_0x3b4cda++;return _0x3b4cda;}*[_0x586020(0x41e)](_0x356ed6){yield*_0x356ed6;}[_0x586020(0x8cc)](){const _0x20085e=_0x586020;return requireOkdbHlc()[_0x20085e(0x2ee)](this[_0x20085e(0x80b)]);}get['_ttlTimeout'](){const _0x1bbcbb=_0x586020,_0x4e9369=this['okdb'][_0x1bbcbb(0x663)]?this[_0x1bbcbb(0x61e)][_0x1bbcbb(0x210)]('db',null,'ttlTimer',[this[_0x1bbcbb(0x54b)]],![]):null;if(!_0x4e9369)return null;if(this['__ttlCancelledGen']===_0x4e9369[_0x1bbcbb(0x8df)])return null;this[_0x1bbcbb(0x26d)]=this[_0x1bbcbb(0x26d)]||new Map();let _0x461252=this['_timerObjs'][_0x1bbcbb(0x309)](_0x4e9369['gen']);if(!_0x461252){const _0x3869d5=this;_0x461252={'ref'(){},'unref'(){},'hasRef':()=>![],'gen':_0x4e9369['gen'],'at':_0x4e9369['at'],'target':_0x4e9369['target'],get '_destroyed'(){const _0x5216d4=_0x1bbcbb,_0x268b00=_0x3869d5['okdb']['_isOpen']?_0x3869d5[_0x5216d4(0x61e)][_0x5216d4(0x210)]('db',null,'ttlTimer',[_0x3869d5[_0x5216d4(0x54b)]],![]):null;return!_0x268b00||_0x268b00[_0x5216d4(0x8df)]!==this[_0x5216d4(0x8df)]||_0x3869d5[_0x5216d4(0x566)]===this[_0x5216d4(0x8df)];}},this[_0x1bbcbb(0x26d)][_0x1bbcbb(0x63f)](_0x4e9369[_0x1bbcbb(0x8df)],_0x461252);}return _0x461252;}[_0x586020(0x88b)](){const _0x328728=_0x586020,_0xa677e5=this[_0x328728(0x61e)][_0x328728(0x210)]('db',null,_0x328728(0x606),[this['name']],![]);if(_0xa677e5)this[_0x328728(0x566)]=_0xa677e5[_0x328728(0x8df)];}get[_0x586020(0x815)](){const _0x2d2ab2=_0x586020,_0x51ab39=this['okdb']['_call']('db',null,_0x2d2ab2(0x606),[this[_0x2d2ab2(0x54b)]],![]);return _0x51ab39?_0x51ab39[_0x2d2ab2(0x7ab)]:null;}get[_0x586020(0x701)](){const _0x1ce8a2=_0x586020;return this[_0x1ce8a2(0x61e)][_0x1ce8a2(0x210)]('db',null,_0x1ce8a2(0x4d2),[this[_0x1ce8a2(0x54b)]],![])?{'ref'(){},'unref'(){}}:null;}['_startAutoCompactCheck'](){const _0x10ff15=_0x586020;this[_0x10ff15(0x61e)][_0x10ff15(0x210)]('db',null,_0x10ff15(0x1d7),[this[_0x10ff15(0x54b)]],![]);}[_0x586020(0x680)](){const _0x53b56a=_0x586020;this[_0x53b56a(0x61e)][_0x53b56a(0x210)]('db',null,'stopAutoCompactCheck',[this[_0x53b56a(0x54b)]],![]);}get['_autoCompact'](){const _0x486da6=_0x586020,_0x11e497=(_0x21c992,_0x19fa3d)=>this[_0x486da6(0x61e)]['_call']('db',null,_0x21c992,[this[_0x486da6(0x54b)],..._0x19fa3d],![]),_0x2455fc=Object[_0x486da6(0x4ac)](_0x11e497('autoCompactState',[])||{}),_0x4a3a18={};for(const _0x2ba04f of _0x2455fc)Object[_0x486da6(0x1fd)](_0x4a3a18,_0x2ba04f,{'enumerable':!![],'get':()=>_0x11e497('autoCompactState',[])?.[_0x2ba04f],'set':_0x1cb015=>{const _0x42e83b=_0x486da6;_0x11e497(_0x42e83b(0x227),[_0x2ba04f,_0x1cb015]);}});return _0x4a3a18;}get[_0x586020(0x80b)](){return this['_n']('hlc',[]);}[_0x586020(0x2a1)](_0x1a8ad7,_0x35435d){const _0x2c1578=_0x586020;return require$$16[_0x2c1578(0x6b4)](_0x1a8ad7,_0x35435d);}async['registerType'](_0x936799,_0x1c875c){const _0x2788fb=_0x586020;return this[_0x2788fb(0x30a)](this['_n'](_0x2788fb(0x343),[_0x936799]));}[_0x586020(0x414)](_0x5cfaab){const _0x1beb31=_0x586020;return this['_n'](_0x1beb31(0x414),[_0x5cfaab]);}[_0x586020(0x4c3)](){const _0x3b2e6f=_0x586020;return this['_n'](_0x3b2e6f(0x4c3),[]);}async[_0x586020(0x2a4)](_0x4ec5c5,_0x360168){const _0xc1b6ff=_0x586020;return this[_0xc1b6ff(0x30a)](this['_n'](_0xc1b6ff(0x2a4),[_0x4ec5c5]));}async[_0x586020(0x1be)](_0x512f82,_0x37cf8b){const _0x3a584b=_0x586020,{timestamp:_0x2ad47b,indexes:indexes=[]}=_0x324607(_0x37cf8b);return this[_0x3a584b(0x30a)](this['_n'](_0x3a584b(0x1be),[_0x512f82,{'indexes':indexes}]));}async[_0x586020(0x2ea)](_0x330bc0){const _0x24d7b1=_0x586020,{type:_0x1e2fa6,indexes:indexes=[],fts:fts=[],views:views=[],schema:schema=null}=_0x324607(_0x330bc0,_0x24d7b1(0x70a));if(!_0x1e2fa6)throw new Error(_0x24d7b1(0x4ba));await this['ensureType'](_0x1e2fa6,{'indexes':indexes});for(const _0x5ada05 of fts){const {name:_0x36eaa5,fields:_0x34fdd0,..._0x164dbd}=_0x5ada05;if(!_0x36eaa5||!_0x34fdd0)throw new Error(_0x24d7b1(0x410));await this[_0x24d7b1(0x61e)][_0x24d7b1(0x6b1)][_0x24d7b1(0x2ea)](_0x1e2fa6,_0x36eaa5,{'fields':_0x34fdd0,..._0x164dbd},this);}for(const _0x201688 of views){const {name:_0x1eaec1,definition:_0x477742}=_0x201688;if(!_0x1eaec1||!_0x477742)throw new Error(_0x24d7b1(0x799));if(!await this[_0x24d7b1(0x876)][_0x24d7b1(0x437)](_0x1eaec1))await this[_0x24d7b1(0x876)][_0x24d7b1(0x67b)](_0x1eaec1,_0x477742);}if(schema)await this[_0x24d7b1(0x241)](_0x1e2fa6,schema);}async[_0x586020(0x8cb)](_0x2163d4,_0x4b1f71,_0x1ce4ae){const _0x69f9e3=_0x586020,_0x241127=this['_n'](_0x69f9e3(0x3f1),[_0x2163d4,_0x4b1f71,typeof _0x1ce4ae===_0x69f9e3(0x559)?_0x1ce4ae:{}]);if(!_0x241127)return this[_0x69f9e3(0x30a)](undefined);const _0x45e06d=this['_n'](_0x69f9e3(0x529),[_0x2163d4,_0x4b1f71,!![]]);if(_0x45e06d===undefined)return this[_0x69f9e3(0x30a)](undefined);return this[_0x69f9e3(0x30a)](await this[_0x69f9e3(0x4b5)](_0x2163d4,_0x4b1f71,_0x45e06d));}async[_0x586020(0x4b5)](_0x3b6063,_0x32bbf1,_0x1dca5d){const _0x355094=_0x586020,_0x1240ca=_0x3b6063+'@'+[][_0x355094(0x6cf)](_0x32bbf1)[_0x355094(0x596)]('~');if(!this[_0x355094(0x551)])this['_indexBuilds']=new Map();const _0x48c1af=this[_0x355094(0x551)][_0x355094(0x309)](_0x1240ca);if(_0x48c1af)return _0x48c1af;const _0x43ea54=((async()=>{const _0x1a9bf4=_0x355094;do await new Promise(_0x942eb8=>setImmediate(_0x942eb8));while(!this['_n'](_0x1a9bf4(0x83c),[_0x3b6063,_0x32bbf1,_0x1dca5d,!![]]));})());this[_0x355094(0x551)][_0x355094(0x63f)](_0x1240ca,_0x43ea54);try{return await _0x43ea54;}finally{this[_0x355094(0x551)][_0x355094(0x2cb)](_0x1240ca);}}async[_0x586020(0x8e3)](_0x5dd8af,_0x4f1630,_0x339cee){const _0x23c2c7=_0x586020;return this[_0x23c2c7(0x30a)](this['_n'](_0x23c2c7(0x8e3),[_0x5dd8af,_0x4f1630]));}async['resetIndex'](_0x58d4d9,_0x36ac20,_0x11f0fd){const _0xa47b14=_0x586020,_0x2c84a3=this[_0xa47b14(0x551)]&&this['_indexBuilds'][_0xa47b14(0x309)](_0x58d4d9+'@'+[][_0xa47b14(0x6cf)](_0x36ac20)[_0xa47b14(0x596)]('~'));if(_0x2c84a3)return _0x2c84a3;const _0x2ed8ed=this['_n'](_0xa47b14(0x529),[_0x58d4d9,_0x36ac20,_0x11f0fd]);if(_0x2ed8ed===undefined)return;return await new Promise(_0x4455b6=>setImmediate(_0x4455b6)),this[_0xa47b14(0x30a)](await this[_0xa47b14(0x4b5)](_0x58d4d9,_0x36ac20,_0x2ed8ed));}[_0x586020(0x5f8)](_0x1d2b77,_0x121098){const _0x4888ab=_0x586020;return this['_n'](_0x4888ab(0x5f8),[_0x1d2b77,_0x121098]);}[_0x586020(0x38b)](_0x1004a5,_0x2f84e4){const _0x50f268=_0x586020;return this['_n'](_0x50f268(0x38b),[_0x1004a5,_0x2f84e4]);}async[_0x586020(0x864)](_0x4e232e,_0xf7db8f){const _0x86e8c8=_0x586020;if(this['_n'](_0x86e8c8(0x38b),[_0x4e232e,_0xf7db8f])==='ready')return!![];let _0x108a13=0xa;for(;;){await new Promise(_0x39e6ae=>setTimeout(_0x39e6ae,_0x108a13));if(!this[_0x86e8c8(0x61e)][_0x86e8c8(0x663)]||this[_0x86e8c8(0x475)])return![];let _0x259834;try{_0x259834=this['_n'](_0x86e8c8(0x49c),[_0x4e232e,Array[_0x86e8c8(0x439)](_0xf7db8f)?_0xf7db8f[_0x86e8c8(0x596)]('~'):String(_0xf7db8f)[_0x86e8c8(0x5e4)](',')[_0x86e8c8(0x596)]('~')]);}catch{return![];}const _0x24f751=_0x259834&&_0x259834[_0x86e8c8(0x717)];if(_0x24f751===_0x86e8c8(0x237))return!![];if(_0x24f751===undefined)return![];_0x108a13=Math[_0x86e8c8(0x597)](_0x108a13*0x2,0xfa);}}[_0x586020(0x49c)](_0x10a434,_0x2382c6){const _0x1bca98=_0x586020;return this['_n'](_0x1bca98(0x49c),[_0x10a434,_0x2382c6])??null;}[_0x586020(0x7da)](_0x22afba,_0x5681e7){return this['_n']('getUniqueViolations',[_0x22afba,_0x5681e7]);}['hasUniqueViolations'](_0x5983ff,_0x3acc5c){return this['_n']('hasUniqueViolations',[_0x5983ff,_0x3acc5c]);}[_0x586020(0x212)](_0x59c4a5,_0x13fc0b,_0x3d5b75){const _0x572a78=_0x586020;return this['_n'](_0x572a78(0x212),[_0x59c4a5,_0x13fc0b,_0x3d5b75])??null;}[_0x586020(0x28f)](_0x3771b0){const _0x2f4088=_0x586020;return this['_n'](_0x2f4088(0x28f),[_0x3771b0])??null;}async['setSchema'](_0x4f3374,_0x3ccb46){const _0x2529cd=_0x586020;return this[_0x2529cd(0x30a)](this['_n'](_0x2529cd(0x241),[_0x4f3374,_0x3ccb46]));}async[_0x586020(0x8a7)](_0x48b912){const _0x3da2ea=_0x586020;return this['_wsettle'](this['_n'](_0x3da2ea(0x8a7),[_0x48b912]));}['getViolation'](_0x22cbfb,_0x3acf7f){const _0x2c5aca=_0x586020;return this['_n'](_0x2c5aca(0x687),[_0x22cbfb,_0x3acf7f])??null;}[_0x586020(0x5c1)](_0x3d7a2){const _0x5bde23=_0x586020;return this['_n'](_0x5bde23(0x5c1),[_0x3d7a2]);}['getRefViolation'](_0x15f15e,_0x52310b,_0x428a56){return this['_n']('getRefViolation',[_0x15f15e,_0x52310b,_0x428a56])??null;}['listRefViolations'](_0x4f8ae5){const _0x4ef0c5=_0x586020;return this['_n'](_0x4ef0c5(0x79f),[_0x4f8ae5]);}async[_0x586020(0x246)](_0x1959df,_0x31e6a2,_0x27774a){const _0x58fe2c=_0x586020;return this[_0x58fe2c(0x30a)](this['_n']('setTTL',[_0x1959df,_0x31e6a2,_0x27774a]));}[_0x586020(0x40b)](_0x52092e,_0x3a2185){const _0x160df5=_0x586020;return this['_n'](_0x160df5(0x40b),[_0x52092e,_0x3a2185]);}async[_0x586020(0x599)](_0x1ac2ec,_0x464811){const _0x270895=_0x586020;return this[_0x270895(0x30a)](this['_n'](_0x270895(0x599),[_0x1ac2ec,_0x464811]));}async[_0x586020(0x2a9)](_0x5d638d){const _0x49d781=_0x586020;return this['_n'](_0x49d781(0x2a9),[_0x5d638d]);}[_0x586020(0x8b0)](_0x15f082={}){const _0x2967c9=_0x586020;return this['_n'](_0x2967c9(0x8b0),[_0x15f082]);}[_0x586020(0x722)](_0x4aff95){const _0x47997e=_0x586020;return this['_n'](_0x47997e(0x722),[_0x4aff95]);}async['setDefaultTTL'](_0x2cf2a5,_0x4f8575){const _0x3a3a09=_0x586020;return this['_wsettle'](this['_n'](_0x3a3a09(0x686),[_0x2cf2a5,_0x4f8575]));}['getDefaultTTL'](_0x3d417b){return this['_n']('getDefaultTTL',[_0x3d417b]);}async[_0x586020(0x813)](_0x2391ff){const _0x281331=_0x586020;return this[_0x281331(0x30a)](this['_n'](_0x281331(0x813),[_0x2391ff]));}async['resolveField'](_0x1e236a,_0x48f1aa,_0x5a3324,_0x2b3116){const _0xbe7c0b=_0x586020,{batch:batch=null,batchSize:_0x23ce9d}=_0x324607(_0x2b3116);if(typeof _0x1e236a!=='string'||!_0x1e236a)throw new _0xe3992f(_0xbe7c0b(0x7ac),_0xbe7c0b(0x5cb));if(typeof _0x48f1aa!==_0xbe7c0b(0x2b1)||!_0x48f1aa)throw new _0xe3992f(_0xbe7c0b(0x8ec),'BAD_PARAM');if(_0x5a3324!=null&&typeof _0x5a3324!==_0xbe7c0b(0x640))throw new _0xe3992f('resolveField:\x20resolver\x20must\x20be\x20a\x20function','BAD_PARAM');if(batch!=null&&typeof batch!=='function')throw new _0xe3992f(_0xbe7c0b(0x7c0),_0xbe7c0b(0x5cb));if(!_0x5a3324&&!batch)throw new _0xe3992f('resolveField:\x20a\x20resolver\x20or\x20options.batch\x20is\x20required',_0xbe7c0b(0x5cb));if(_0x23ce9d!==undefined&&!(Number[_0xbe7c0b(0x4ea)](_0x23ce9d)&&_0x23ce9d>0x0))throw new _0xe3992f('resolveField:\x20options.batchSize\x20must\x20be\x20a\x20positive\x20integer','BAD_PARAM');const _0x5aa0d9=batch?async _0xf13bde=>(await batch(_0xf13bde))[_0xbe7c0b(0x35e)](_0x302804=>_0x302804 instanceof Error?{'__error':!![],'message':_0x302804[_0xbe7c0b(0x211)]}:_0x302804):null,_0x239af6=_0x104df6(this,_0x1e236a,_0x48f1aa),_0x5880e1=this['_n'](_0xbe7c0b(0x839),[_0x1e236a,_0x48f1aa,_0x5a3324?(_0x164c12,_0x5abb46)=>_0x239af6(_0x5a3324,[_0x164c12,_0x5abb46]):null,{'batch':_0x5aa0d9?_0x45c05a=>_0x239af6(_0x5aa0d9,[_0x45c05a]):null,'batchSize':_0x23ce9d}]);return()=>this['_n'](_0xbe7c0b(0x318),[_0x5880e1]);}async['unresolveField'](_0x25808b,_0x3be473){const _0x8e0f11=_0x586020;return this['_n'](_0x8e0f11(0x298),[_0x25808b,_0x3be473]);}[_0x586020(0x819)](_0x3dff23){const _0x456e5b=_0x586020;return this['_n'](_0x456e5b(0x819),[_0x3dff23]);}async['readField'](_0x3902a8,_0x474646,_0x4ba2b6,_0x55aff9){const _0x3ae6ae=_0x586020;return this['okdb']['_callMacro'](_0x3ae6ae(0x609),this[_0x3ae6ae(0x54b)],'readField',[_0x3902a8,_0x474646,_0x4ba2b6,_0x55aff9],![]);}async['readFieldMany'](_0x80f5fb,_0x4c22b1,_0x348be8){const _0x57cfd2=_0x586020;return this[_0x57cfd2(0x61e)][_0x57cfd2(0x661)](_0x57cfd2(0x609),this['name'],_0x57cfd2(0x22a),[_0x80f5fb,_0x4c22b1,_0x348be8],![]);}[_0x586020(0x378)](){}[_0x586020(0x6db)](_0x30d5e2,_0xebb4d5,_0x3ad474,_0x38096c={},_0xa1d180={}){const _0x2244a8=_0x586020;return this['okdb'][_0x2244a8(0x210)](_0x2244a8(0x6b1),null,_0x2244a8(0x6db),[_0x30d5e2,_0xebb4d5,_0x3ad474,_0x38096c,_0xa1d180,this[_0x2244a8(0x54b)]],![]);}get['fts'](){const _0x20e30c=_0x586020;return this[_0x20e30c(0x61e)][_0x20e30c(0x6b1)];}[_0x586020(0x69a)](){const _0x256a95=_0x586020;return this[_0x256a95(0x61e)]['_call'](_0x256a95(0x609),this[_0x256a95(0x54b)],'getResolvedOptions',[],![]);}[_0x586020(0x5f0)](){const _0x4a1969=_0x586020;return this[_0x4a1969(0x61e)][_0x4a1969(0x5f0)]();}[_0x586020(0x75d)](){const _0x3bd841=_0x586020;return this[_0x3bd841(0x61e)][_0x3bd841(0x210)](_0x3bd841(0x609),this['name'],'writerStatus',[],![]);}[_0x586020(0x6a5)](){}get['locks'](){const _0x3bada1=_0x586020;return this[_0x3bada1(0x5d7)]||(this['_locks']=new(requireLock())['NativeLock'](this[_0x3bada1(0x61e)],this[_0x3bada1(0x54b)],_0x3bada1(0x609)));}[_0x586020(0x787)](){const _0x1a1751=_0x586020;return this[_0x1a1751(0x61e)][_0x1a1751(0x210)](_0x1a1751(0x609),this[_0x1a1751(0x54b)],_0x1a1751(0x787),[],![]);}['_registerType'](_0xea1c60){const _0x32d3ad=_0x586020;this['_n'](_0x32d3ad(0x343),[_0xea1c60]);}['_logChange'](_0x14564d){const _0x5e133e=_0x586020;this['_n'](_0x5e133e(0x5b7),[_0x14564d]);}[_0x586020(0x266)](){const _0x247f62=_0x586020;return this['_n'](_0x247f62(0x296),[]);}[_0x586020(0x8c4)](_0x5d1e42,_0x187890){return _0x5d1e42+'\x09'+_0x187890;}[_0x586020(0x68d)](_0x598db4){const _0x2bea31=_0x586020,_0x284ffa=_0x598db4[_0x2bea31(0x2bb)]('\x09');return{'type':_0x598db4[_0x2bea31(0x1f7)](0x0,_0x284ffa),'key':_0x598db4['slice'](_0x284ffa+0x1)};}get[_0x586020(0x81b)](){const _0xbbeaee=_0x586020;if(!this[_0xbbeaee(0x266)]()[_0xbbeaee(0x63d)])return null;return this[_0xbbeaee(0x360)]||(this[_0xbbeaee(0x360)]=new _0x1394ec(this,_0xbbeaee(0x6fa)));}get[_0x586020(0x7fa)](){const _0x14f3d9=_0x586020;if(!this[_0x14f3d9(0x266)]()[_0x14f3d9(0x63d)])return null;return this[_0x14f3d9(0x67d)]||(this[_0x14f3d9(0x67d)]=new _0x1394ec(this,_0x14f3d9(0x214),{'dupSort':!![]}));}[_0x586020(0x664)](_0x47a7bb,_0x9a54be,_0x16102f){this['_n']('ttlSetEntry',[_0x47a7bb,_0x9a54be,_0x16102f]);}['_isExpired'](_0x4d6bc6,_0x1a2d18){const _0x44a595=_0x586020,_0x18febb=this['_ttlByKey']?.[_0x44a595(0x309)](this[_0x44a595(0x8c4)](_0x4d6bc6,_0x1a2d18));return _0x18febb!=null&&_0x18febb<=Date[_0x44a595(0x8cc)]();}get['_nextExpiry'](){const _0x3e758b=_0x586020;return this[_0x3e758b(0x266)]()[_0x3e758b(0x72f)]??null;}get[_0x586020(0x3fa)](){const _0x32b2e6=_0x586020;return this[_0x32b2e6(0x266)]()[_0x32b2e6(0x5a4)]||0x0;}get[_0x586020(0x74b)](){return![];}[_0x586020(0x27d)](){}async['_rebuild'](_0x44cdd5,_0x477be8){const _0x369bdb=_0x586020;if(this[_0x369bdb(0x244)]){const {OKDBError:_0x54f25d}=requireErrors();throw new _0x54f25d(_0x369bdb(0x732),_0x369bdb(0x2f0));}this[_0x369bdb(0x244)]=!![];try{return await this[_0x369bdb(0x61e)]['_callMacro'](_0x369bdb(0x609),this['name'],_0x44cdd5,[_0x477be8],!![]);}finally{this[_0x369bdb(0x244)]=![];}}async[_0x586020(0x502)](_0x43328a={}){const _0x210dbb=_0x586020;return this['_rebuild'](_0x210dbb(0x502),_0x43328a);}async[_0x586020(0x53a)](_0x153097={}){const _0x4b6c0e=_0x586020;return this[_0x4b6c0e(0x748)](_0x4b6c0e(0x53a),_0x153097);}}_0x1107fb[_0x586020(0x67a)]=_0x18f365;function _0x259252(_0x5894c0){const _0x55d334=_0x586020;if(!_0x5894c0||typeof _0x5894c0!==_0x55d334(0x559))return![];for(const _0x22b852 of Object[_0x55d334(0x4ac)](_0x5894c0)){const _0x364954=_0x5894c0[_0x22b852];if(_0x364954&&typeof _0x364954===_0x55d334(0x559)&&(_0x364954[_0x55d334(0x7b6)]||_0x364954[_0x55d334(0x340)]))return!![];}return![];}function _0x43b959(_0x10d7de){const _0x4f2599=_0x586020;if(!_0x10d7de||typeof _0x10d7de!=='object')return{};const _0x414e53={};for(const _0x4006e3 of Object[_0x4f2599(0x4ac)](_0x10d7de)){if(_0x4006e3===_0x4f2599(0x68f)||_0x4006e3===_0x4f2599(0x41c))continue;_0x414e53[_0x4006e3]=_0x10d7de[_0x4006e3];}return _0x414e53;}function _0x4cfac7(_0x45282d){const _0x420fb1=_0x586020;if(!_0x45282d||typeof _0x45282d!==_0x420fb1(0x559))return{};const _0x480e17={};for(const _0x1acefd of Object[_0x420fb1(0x4ac)](_0x45282d)){if(typeof _0x45282d[_0x1acefd]===_0x420fb1(0x640))continue;_0x480e17[_0x1acefd]=_0x45282d[_0x1acefd];}return _0x480e17;}return env={'OKDBEnv':_0x1107fb,'HIGH_SENTINEL':_0x18f365},env;}var unsupported,hasRequiredUnsupported;function requireUnsupported(){if(hasRequiredUnsupported)return unsupported;hasRequiredUnsupported=0x1;const {NotImplementedNative:_0x3ba2a0}=requireErrors();function _0xe0d572(_0x1cd47d){const _0x41356b=_0x2b8a57=>{throw new _0x3ba2a0(_0x1cd47d,_0x2b8a57);};return new Proxy(function(){},{'get'(_0x3230a8,_0x5a5db4){const _0x4e3763=_0x52a3;if(typeof _0x5a5db4===_0x4e3763(0x490)||_0x5a5db4===_0x4e3763(0x801)||_0x5a5db4===_0x4e3763(0x861)||_0x5a5db4===_0x4e3763(0x4ec))return undefined;if(_0x5a5db4===_0x4e3763(0x87d))return _0x1cd47d;return(..._0x315272)=>_0x41356b(_0x1cd47d+'.'+String(_0x5a5db4));},'apply'(){_0x41356b(_0x1cd47d);},'set'(){return!![];}});}return unsupported={'notImplemented':_0xe0d572},unsupported;}var http,hasRequiredHttp;function requireHttp(){const _0x52f0be=_0x5c70f8;if(hasRequiredHttp)return http;hasRequiredHttp=0x1;function _0x1a144b(_0x37ebea,_0x3f6747={}){const _0x5997b8=_0x52a3,_0x43653e=[];let _0x12f934=![];_0x37ebea[_0x5997b8(0x2e5)]('/*')&&(_0x12f934=!![],_0x37ebea=_0x37ebea[_0x5997b8(0x1f7)](0x0,-0x2),_0x43653e[_0x5997b8(0x28d)]('*'));let _0x119d87=_0x37ebea[_0x5997b8(0x306)](/\/+$/,'')[_0x5997b8(0x306)](/\[([^\]]*)\]/g,(_0x2c3a02,_0x53c5e6)=>{const _0x181829=_0x5997b8,_0x11b1b3=_0x53c5e6[_0x181829(0x306)](/\/:(\w+)(?:=([^/\]\s]*))?/g,(_0x369ec0,_0x1df625)=>{const _0x21ac61=_0x181829;return _0x43653e[_0x21ac61(0x28d)](_0x1df625),_0x21ac61(0x217);});return'(?:'+_0x11b1b3+')?';})[_0x5997b8(0x306)](/\/:(\w+)/g,(_0x22a139,_0x35d316)=>{const _0x4712cc=_0x5997b8;return _0x43653e[_0x4712cc(0x28d)](_0x35d316),_0x4712cc(0x217);});if(_0x119d87==='')_0x119d87='/';return{'keys':_0x43653e,'defaults':_0x3f6747||{},'wildcard':_0x12f934,'regex':new RegExp('^'+_0x119d87+(_0x12f934?_0x5997b8(0x4fd):'')+_0x5997b8(0x23d))};}const _0x25a1ff=require$$0$3,{PassThrough:_0x42b40c}=require$$1;function _0x4d641d(_0x18cc19){const _0x1a6ddf=_0x52a3,_0x50185a=_0x18cc19[_0x1a6ddf(0x331)](':'),_0x4a557e=_0x18cc19[_0x1a6ddf(0x1f7)](0x0,_0x50185a)['replace'](/^\[|\]$/g,'');return{'address':_0x4a557e,'family':_0x4a557e[_0x1a6ddf(0x495)](':')?_0x1a6ddf(0x5e6):_0x1a6ddf(0x4e6),'port':Number(_0x18cc19[_0x1a6ddf(0x1f7)](_0x50185a+0x1))};}class _0x5d3549 extends _0x25a1ff[_0x52f0be(0x351)]{constructor(_0xb38093,_0x40e4ce){const _0x2fb417=_0x52f0be;super(),this[_0x2fb417(0x61d)]=_0xb38093,this['_addr']=_0x4d641d(_0x40e4ce),this[_0x2fb417(0x274)]=!![],this['_keepAlive']=setInterval(()=>{},0x7fffffff);}get[_0x52f0be(0x274)](){const _0x2cdb50=_0x52f0be;return this[_0x2cdb50(0x820)];}set[_0x52f0be(0x274)](_0xfdba49){const _0x41efad=_0x52f0be;this[_0x41efad(0x820)]=_0xfdba49;}[_0x52f0be(0x784)](){const _0x3e9aa5=_0x52f0be;return this[_0x3e9aa5(0x274)]?{...this['_addr']}:null;}['_release'](){const _0x398345=_0x52f0be;if(this[_0x398345(0x77d)])clearInterval(this[_0x398345(0x77d)]);this[_0x398345(0x77d)]=null;}[_0x52f0be(0x5df)](_0x254d70){const _0x4c97f4=_0x52f0be;this[_0x4c97f4(0x726)]();const _0x15ffd2=this[_0x4c97f4(0x61d)][_0x4c97f4(0x5df)]();if(_0x254d70)_0x15ffd2[_0x4c97f4(0x801)](()=>_0x254d70(),_0x254d70);return this;}[_0x52f0be(0x4bb)](){const _0x271a3d=_0x52f0be;return this[_0x271a3d(0x77d)]?.['ref'](),this;}[_0x52f0be(0x32c)](){const _0x33175f=_0x52f0be;return this[_0x33175f(0x77d)]?.[_0x33175f(0x32c)](),this;}}class _0x2a5c5a{constructor(_0x53751d){const _0x1f51cf=_0x52f0be;this[_0x1f51cf(0x61e)]=_0x53751d,this[_0x1f51cf(0x6eb)]=[],this[_0x1f51cf(0x7f0)]={'cookieName':'okdb_session'};}get['server'](){const _0x596fa9=_0x52f0be;return this[_0x596fa9(0x6eb)][0x0]||null;}['_n'](_0x43755f,_0x4af59d=[]){const _0xcdb766=_0x52f0be;return this['okdb']['_callMacro'](_0xcdb766(0x755),null,_0x43755f,_0x4af59d,!![]);}async[_0x52f0be(0x349)](_0x406056,_0x42d4dc,_0x175f48={},_0xb377c4={}){const _0x54a34=_0x52f0be;let _0x5d6f2e=await this['_n'](_0x54a34(0x349),[_0x406056,_0x42d4dc,_0x175f48,_0xb377c4]),_0x407096=0x0;return _0x5d6f2e=await this['_settle'](_0x5d6f2e,_0x407096),_0x5d6f2e;}async['_settle'](_0x1e8f67,_0x4aa94){const _0x1a1b35=_0x52f0be;while(_0x1e8f67&&typeof _0x1e8f67===_0x1a1b35(0x559)&&_0x1e8f67[_0x1a1b35(0x7fe)]!==undefined){await new Promise(_0x2c4b18=>setTimeout(_0x2c4b18,_0x4aa94<0x5?0x1:0x5)),_0x4aa94++,_0x1e8f67=await this['_n']('handleResult',[_0x1e8f67['$pending']]);}if(_0x1e8f67&&_0x1e8f67[_0x1a1b35(0x25b)]&&typeof _0x1e8f67[_0x1a1b35(0x25b)]===_0x1a1b35(0x559)&&_0x1e8f67[_0x1a1b35(0x25b)][_0x1a1b35(0x6e1)]!==undefined)_0x1e8f67[_0x1a1b35(0x25b)]=this[_0x1a1b35(0x289)](_0x1e8f67['body'][_0x1a1b35(0x6e1)]);return _0x1e8f67;}['_stream'](_0x2a8f35){const _0x2c1c36=_0x52f0be,_0x46e3ed=new _0x42b40c();let _0x24a851=![];const _0x2c74ff=()=>{const _0x39d415=_0x52a3;if(_0x24a851)return;_0x24a851=!![],clearTimeout(_0x211af0),setImmediate(()=>this['okdb'][_0x39d415(0x663)]&&this[_0x39d415(0x61e)][_0x39d415(0x210)](_0x39d415(0x755),null,'streamClose',[_0x2a8f35],!![]));};let _0x211af0=null;const _0x1f0dc2=()=>{const _0x28f77e=_0x52a3;if(_0x24a851)return;let _0x520781;try{_0x520781=this[_0x28f77e(0x61e)][_0x28f77e(0x210)](_0x28f77e(0x755),null,_0x28f77e(0x754),[_0x2a8f35],!![]);}catch{_0x520781={'chunks':[],'end':!![]};}for(const _0x55cb56 of _0x520781[_0x28f77e(0x285)])_0x46e3ed[_0x28f77e(0x21a)](_0x55cb56);if(_0x520781['end']){_0x24a851=!![],_0x46e3ed[_0x28f77e(0x735)]();return;}_0x211af0=setTimeout(_0x1f0dc2,_0x520781[_0x28f77e(0x285)][_0x28f77e(0x68a)]?0x0:0xa);};_0x46e3ed['on'](_0x2c1c36(0x5df),_0x2c74ff),_0x1f0dc2();if(!_0x24a851)_0x1f0dc2();if(_0x24a851)_0x46e3ed[_0x2c1c36(0x8ab)]();else{if(!_0x211af0)_0x211af0=setTimeout(_0x1f0dc2,0x0);}return _0x46e3ed;}['add'](_0x487646,_0x2ec455,_0x342afb,_0x137895={}){const _0x16117a=_0x52f0be;return this[_0x16117a(0x61e)][_0x16117a(0x210)](_0x16117a(0x755),null,'add',[_0x487646,_0x2ec455,_0x342afb,_0x137895,![]],!![]),this;}[_0x52f0be(0x424)](_0x18ae7e,_0x39dc7e,_0x51a442,_0x450afb={}){const _0x213044=_0x52f0be;return this['okdb']['_call'](_0x213044(0x755),null,_0x213044(0x280),[_0x18ae7e,_0x39dc7e,_0x51a442,_0x450afb,!![]],!![]),this;}['guard'](_0x87509c,_0x279215){const _0x8f8a44=_0x52f0be,_0x24a760=async _0x4a280b=>{const _0x3c11c9=_0x52a3,_0x4aeeda={'status':undefined,'headers':[],'hasBody':![],'body':undefined},_0x4e1693={'status'(_0x11cbd1){const _0xbd0d6b=_0x52a3;return _0x4aeeda[_0xbd0d6b(0x717)]=_0x11cbd1,_0x4e1693;},'setHeader'(_0x51b295,_0x48cf34){const _0x3a7486=_0x52a3;_0x4aeeda[_0x3a7486(0x449)][_0x3a7486(0x28d)]([_0x51b295,_0x48cf34]);},'send'(_0x3196af){const _0x59e0c1=_0x52a3;_0x4aeeda[_0x59e0c1(0x671)]=!![],_0x4aeeda['body']=_0x3196af;}};_0x4a280b[_0x3c11c9(0x223)]={'remoteAddress':_0x4a280b['remoteAddress']??null};const _0x48dbc3=await _0x279215(_0x4a280b,_0x4e1693);return{'allowed':_0x48dbc3!==![],..._0x4aeeda};};this[_0x8f8a44(0x61e)]['_call'](_0x8f8a44(0x755),null,_0x8f8a44(0x25a),[_0x2c0b60=>!!_0x87509c(_0x2c0b60),_0x24a760],!![]);}[_0x52f0be(0x337)](_0x2e8e0d){const _0x456bd8=_0x52f0be,_0x1ab0e0=async _0x1b7f4e=>{const _0x414972=_0x52a3,_0x2ea14e={'status':undefined,'headers':[],'hasBody':![],'body':undefined};let _0x2515af=![];const _0x427588={'status'(_0x46f7ae){const _0x43ecc7=_0x52a3;return _0x2ea14e[_0x43ecc7(0x717)]=_0x46f7ae,_0x427588;},'setHeader'(_0x3d511a,_0x1e9dbe){const _0x597de3=_0x52a3;_0x2ea14e[_0x597de3(0x449)]['push']([_0x3d511a,_0x1e9dbe]);},'send'(_0x3e25ed){const _0x496c95=_0x52a3;_0x2ea14e[_0x496c95(0x671)]=!![],_0x2ea14e[_0x496c95(0x25b)]=_0x3e25ed;}};return _0x1b7f4e['socket']={'remoteAddress':_0x1b7f4e[_0x414972(0x6c1)]??null},await _0x2e8e0d(_0x1b7f4e,_0x427588,async()=>{_0x2515af=!![];}),{'allowed':_0x2515af,..._0x2ea14e};};return this[_0x456bd8(0x61e)][_0x456bd8(0x210)](_0x456bd8(0x755),null,'use',[_0x1ab0e0],!![]),this;}get['maxBodyBytes'](){const _0x49568e=_0x52f0be;return this['okdb'][_0x49568e(0x210)](_0x49568e(0x755),null,_0x49568e(0x58b),[],![]);}set[_0x52f0be(0x573)](_0x461759){const _0x452f6b=_0x52f0be;this[_0x452f6b(0x61e)]['_call'](_0x452f6b(0x755),null,_0x452f6b(0x3f2),[Number(_0x461759)],![]);}[_0x52f0be(0x84d)](_0x482d9f,_0x355481,_0x1a1460={}){const _0x7fe326=_0x52f0be,_0x4af232=new Map(),_0xb16808=(_0x3ac2bf,_0x40cb3f)=>this[_0x7fe326(0x61e)][_0x7fe326(0x210)]('http',null,_0x3ac2bf,_0x40cb3f,![]),_0x45a751=_0x547f5e=>{const _0x236da8=_0x7fe326,{connId:_0x380f24}=_0x547f5e;if(_0x547f5e[_0x236da8(0x1f2)]){const _0x13d8c2=_0x4af232[_0x236da8(0x309)](_0x380f24);_0x4af232[_0x236da8(0x2cb)](_0x380f24);if(typeof _0x13d8c2===_0x236da8(0x640))_0x13d8c2();return;}const _0x5a98fa=(_0x1f626e,_0x3a2286,_0x3d4ecd={})=>{const _0x40029b=_0x236da8;try{_0xb16808(_0x40029b(0x6a6),[_0x380f24,_0x1f626e,_0x3a2286,_0x3d4ecd]);}catch{}},_0x42126e=()=>{const _0x13e145=_0x236da8;try{_0xb16808(_0x13e145(0x774),[_0x380f24]);}catch{}},_0x1169d5=(_0x217603,_0x1d3d26)=>_0xb16808('sseSetHeader',[_0x380f24,String(_0x217603),String(_0x1d3d26)]),_0x23f037={'auth':{'open':_0x547f5e[_0x236da8(0x2d9)],'isAuthenticated':_0x547f5e[_0x236da8(0x2a3)]}},_0x407d6b=_0x355481({'send':_0x5a98fa,'close':_0x42126e,'params':_0x547f5e['params']??{},'query':_0x547f5e[_0x236da8(0x69f)]??{},'headers':_0x547f5e[_0x236da8(0x449)]??{},'context':_0x23f037,'setHeader':_0x1169d5});_0x4af232['set'](_0x380f24,_0x407d6b);};return this[_0x7fe326(0x61e)]['_call'](_0x7fe326(0x755),null,_0x7fe326(0x84d),[_0x482d9f,_0x45a751,_0x1a1460],!![]),this;}get[_0x52f0be(0x81e)](){const _0x3a7e10=_0x52f0be;return this[_0x3a7e10(0x7c3)]();}[_0x52f0be(0x7c3)](){const _0x126b5b=_0x52f0be;return this[_0x126b5b(0x61e)][_0x126b5b(0x210)](_0x126b5b(0x755),null,'listRoutes',[],![])['map'](_0x8fbac4=>({..._0x8fbac4,'matcher':_0x1a144b(_0x8fbac4[_0x126b5b(0x500)],_0x8fbac4[_0x126b5b(0x2d1)])}));}[_0x52f0be(0x557)](_0xa3f63d,_0x361f83){const _0x3f80c9=_0x52f0be;return this['okdb'][_0x3f80c9(0x210)](_0x3f80c9(0x755),null,_0x3f80c9(0x557),[_0xa3f63d,_0x361f83],![]);}[_0x52f0be(0x3d2)](_0x46116f,_0x527980={}){const _0x346431=_0x52f0be;if(typeof _0x527980==='string'||Array['isArray'](_0x527980))_0x527980={'host':_0x527980};_0x527980=_0x527980??{};if((Number(_0x527980[_0x346431(0x2aa)])||0x0)>=0x1||_0x527980[_0x346431(0x84b)]!=null||_0x527980[_0x346431(0x85b)]!=null){const _0x16e7a8=new Error(_0x346431(0x1de)+_0x346431(0x6f4)+'CLI\x20(`okdb\x20listen`),\x20or\x20use\x20Node\x27s\x20built-in\x20`cluster`\x20module\x20and\x20call\x20'+'okdb.http.listen(port)\x20in\x20each\x20worker.');_0x16e7a8[_0x346431(0x50e)]='HTTP_CLUSTER_REMOVED';throw _0x16e7a8;}if(this[_0x346431(0x6eb)][_0x346431(0x68a)])throw new Error(_0x346431(0x230));const _0x49336e=_0x527980[_0x346431(0x657)]==null?[undefined]:[]['concat'](_0x527980[_0x346431(0x657)]);if(!_0x49336e['length']||_0x49336e[_0x346431(0x224)](_0x2fe8b1=>_0x2fe8b1!==undefined&&(typeof _0x2fe8b1!==_0x346431(0x2b1)||!_0x2fe8b1))){const _0x39b130=new Error(_0x346431(0x6bf));_0x39b130[_0x346431(0x50e)]=_0x346431(0x5c8);throw _0x39b130;}const _0x3fb4b9=require$$2[_0x346431(0x41b)]?{..._0x527980,'reuseport':!![]}:_0x527980,_0x5c9854=this['okdb']['_call'](_0x346431(0x755),null,_0x346431(0x3d2),[_0x46116f,_0x3fb4b9],!![]),_0x2f95f1=_0x5c9854[_0x346431(0x886)]??_0x46116f,_0x5275b3=_0x527980[_0x346431(0x657)]==null?':'+_0x2f95f1:_0x49336e[_0x346431(0x35e)](_0x25926c=>(_0x25926c[_0x346431(0x495)](':')?'['+_0x25926c+']':_0x25926c)+':'+_0x2f95f1)[_0x346431(0x596)](',\x20');try{this[_0x346431(0x61e)][_0x346431(0x1ff)][_0x346431(0x2d5)](_0x5275b3);if(!require(_0x346431(0x45e))[_0x346431(0x41b)])this['okdb'][_0x346431(0x1ff)][_0x346431(0x811)]({'kind':_0x346431(0x7ff),'listenAddr':_0x5275b3});}catch{}this[_0x346431(0x6eb)]=_0x5c9854[_0x346431(0x4ca)]['map'](_0x4aacb6=>new _0x5d3549(this,_0x4aacb6));const _0xb18ae7=this['servers'][0x0];return process['nextTick'](()=>this['servers']['forEach'](_0xfa47dc=>_0xfa47dc['emit'](_0x346431(0x274)))),_0xb18ae7;}async['close'](_0x214a56={}){const _0x9f4820=_0x52f0be,_0x2c4c8f=this[_0x9f4820(0x6eb)];this[_0x9f4820(0x6eb)]=[];if(require$$2[_0x9f4820(0x41b)]&&!process[_0x9f4820(0x4fb)]&&_0x214a56[_0x9f4820(0x522)]==null)_0x214a56={..._0x214a56,'forceAfterMs':Infinity};if(_0x2c4c8f[_0x9f4820(0x68a)]){const _0xbc3595=_0x214a56['forceAfterMs']===Infinity?Infinity:Number[_0x9f4820(0x85e)](_0x214a56[_0x9f4820(0x522)])?Math[_0x9f4820(0x4a0)](0x0,_0x214a56[_0x9f4820(0x522)]):0x3e8,_0x1dcae9=Date['now']();while(this[_0x9f4820(0x61e)][_0x9f4820(0x210)]('http',null,_0x9f4820(0x3a1),[],!![])>0x0&&Date[_0x9f4820(0x8cc)]()-_0x1dcae9<_0xbc3595)await new Promise(_0xe89f2d=>setTimeout(_0xe89f2d,0x5));_0x214a56={..._0x214a56,'forceAfterMs':_0xbc3595===Infinity?0x3e8:Math[_0x9f4820(0x4a0)](0x0,_0xbc3595-(Date[_0x9f4820(0x8cc)]()-_0x1dcae9))};}await this['_n'](_0x9f4820(0x5df),[_0x214a56]);for(const _0x13c88c of _0x2c4c8f){_0x13c88c[_0x9f4820(0x726)](),_0x13c88c['listening']=![],_0x13c88c[_0x9f4820(0x5a2)]('close');}}}return http={'OKDBHttp':_0x2a5c5a},http;}var fts,hasRequiredFts;function requireFts(){const _0x314b3c=_0x5c70f8;if(hasRequiredFts)return fts;hasRequiredFts=0x1;const _0x52fe5d=_0x1cc4da=>(_0x1cc4da&&typeof _0x1cc4da===_0x314b3c(0x559)?_0x1cc4da['name']:_0x1cc4da)??_0x314b3c(0x2a6);class _0x212f1e{constructor(_0x20bed9){const _0x377eaf=_0x314b3c;this[_0x377eaf(0x61e)]=_0x20bed9;}['_n'](_0x51b380,_0xdf7d83,_0x1134ed=![]){const _0x36e999=_0x314b3c;return this[_0x36e999(0x61e)][_0x36e999(0x210)](_0x36e999(0x6b1),null,_0x51b380,_0xdf7d83,_0x1134ed);}[_0x314b3c(0x52c)](_0x43745a,_0x194354){const _0x4bbbba=_0x314b3c;return this[_0x4bbbba(0x61e)][_0x4bbbba(0x661)]('fts',null,_0x43745a,_0x194354,!![]);}get[_0x314b3c(0x6da)](){const _0x29cb7f=this,_0x29c507=_0x25e01d=>{const _0x467a32=_0x52a3,_0x388d6d=_0x25e01d[_0x467a32(0x2bb)](':'),_0x400137=_0x25e01d[_0x467a32(0x1f7)](0x0,_0x388d6d),_0x129114=_0x29cb7f[_0x467a32(0x61e)][_0x467a32(0x612)][_0x467a32(0x309)](_0x400137);if(!_0x129114)return undefined;const _0xaa3fda=_0x129114[_0x467a32(0x5fa)][_0x467a32(0x47e)]()[_0x467a32(0x73d)](_0xbbbb7e=>_0xbbbb7e[_0x467a32(0x324)]===_0x467a32(0x2f4)+_0x25e01d);if(!_0xaa3fda)return undefined;return _0x129114['processor'][_0x467a32(0x4c7)](_0xaa3fda['id'],_0xaa3fda[_0x467a32(0x324)]);};return{'get':_0x29c507,'has':_0x5de163=>!!_0x29c507(_0x5de163)};}get[_0x314b3c(0x240)](){return[];}[_0x314b3c(0x1ef)](){const _0x183822=_0x314b3c,{RawDb:_0x2c43fa}=requireRawdb();return new _0x2c43fa(this[_0x183822(0x61e)][_0x183822(0x34d)],_0x183822(0x501));}['has'](_0x4d4070,_0x186f8e,_0x290638){return this['_n']('has',[_0x4d4070,_0x186f8e,_0x52fe5d(_0x290638)]);}['status'](_0x4d6283,_0x51df64,_0x1c0b37){const _0x5e3610=_0x314b3c;return this['_n'](_0x5e3610(0x717),[_0x4d6283,_0x51df64,_0x52fe5d(_0x1c0b37)]);}[_0x314b3c(0x47e)](_0x533f4c,_0x4d68c7){const _0x511f4f=_0x314b3c;return this['_n'](_0x511f4f(0x47e),[_0x533f4c,_0x52fe5d(_0x4d68c7)]);}async['_build'](_0x4720ef,_0x320415,_0x13781a,_0x154710,_0x57e5c4){const _0x4eb428=_0x314b3c,_0x5ad0b9=(_0x50169c,_0x4d7651)=>this[_0x4eb428(0x61e)][_0x4eb428(0x661)](_0x4eb428(0x6b1),null,_0x50169c,_0x4d7651,!![],![]),_0x2c3aed=Date[_0x4eb428(0x8cc)]()+0x1d4c0;let _0x2cc2e9=_0x4720ef,_0x3dd2b3=_0x320415;for(;;){try{return await _0x5ad0b9(_0x2cc2e9,_0x3dd2b3);}catch(_0x3ec049){if(_0x3ec049[_0x4eb428(0x50e)]===_0x4eb428(0x3b2)){_0x2cc2e9=_0x4eb428(0x229),_0x3dd2b3=[_0x13781a,_0x154710,_0x52fe5d(_0x57e5c4)];if(_0x3ec049[_0x4eb428(0x37e)]&&_0x3ec049[_0x4eb428(0x37e)][_0x4eb428(0x348)])await new Promise(_0x58e27c=>setTimeout(_0x58e27c,0x2));continue;}if(_0x3ec049[_0x4eb428(0x50e)]!=='FIELD_RESOLVER_PENDING'||Date[_0x4eb428(0x8cc)]()>=_0x2c3aed)throw _0x3ec049;}await new Promise(_0x142720=>setTimeout(_0x142720,0x5)),_0x2cc2e9=_0x4eb428(0x20d),_0x3dd2b3=[_0x13781a,_0x154710,!![],_0x52fe5d(_0x57e5c4)];}}async['register'](_0x4c38e0,_0x5a5382,_0xf41bdb,_0x3d26ad,_0x383e87){const _0x4b2f9e=_0x314b3c;return this[_0x4b2f9e(0x2cc)](_0x4b2f9e(0x811),[_0x4c38e0,_0x5a5382,_0xf41bdb,_0x3d26ad,_0x52fe5d(_0x383e87)],_0x4c38e0,_0x5a5382,_0x383e87);}async[_0x314b3c(0x4fa)](_0x1e0357,_0x310ebc,_0x435887){const _0x5223f9=_0x314b3c;return this['_nm'](_0x5223f9(0x4fa),[_0x1e0357,_0x310ebc,_0x52fe5d(_0x435887)]);}async['ensure'](_0x47c438,_0x190b27,_0x4706b0,_0x5eb0f6){const _0x11d5a3=_0x314b3c;return this[_0x11d5a3(0x2cc)](_0x11d5a3(0x2ea),[_0x47c438,_0x190b27,_0x4706b0,_0x52fe5d(_0x5eb0f6)],_0x47c438,_0x190b27,_0x5eb0f6);}async['reset'](_0x44bacf,_0xec8e86,_0x45c4b3,_0x1ca057){const _0x41dd30=_0x314b3c;return this[_0x41dd30(0x2cc)](_0x41dd30(0x20d),[_0x44bacf,_0xec8e86,_0x45c4b3,_0x52fe5d(_0x1ca057)],_0x44bacf,_0xec8e86,_0x1ca057);}async[_0x314b3c(0x6c3)](_0x4223be,_0x32dcba,_0x39c83a,_0x482832=0x1d4c0){const _0x31eb64=_0x314b3c,_0x266840=Date[_0x31eb64(0x8cc)]()+_0x482832;for(;;){try{return await this['_nm'](_0x4223be,[..._0x32dcba,0x1]);}catch(_0x355176){if(_0x355176[_0x31eb64(0x50e)]!==_0x39c83a||Date['now']()>=_0x266840)throw _0x355176;}await new Promise(_0x4f4c5b=>setTimeout(_0x4f4c5b,0x2));}}async['ready'](_0x3bf3c8,_0x2bb207,_0x5235fb){const _0x40d46e=_0x314b3c;return this[_0x40d46e(0x6c3)](_0x40d46e(0x237),[_0x3bf3c8,null,_0x52fe5d(_0x5235fb)],_0x40d46e(0x5ee));}async[_0x314b3c(0x889)](_0x1ab5d4,_0x51c091){const _0x58f4e8=_0x314b3c;return this[_0x58f4e8(0x6c3)](_0x58f4e8(0x889),[_0x1ab5d4,_0x52fe5d(_0x51c091)],_0x58f4e8(0x593));}async[_0x314b3c(0x502)](_0x4f2131,_0x583267){const _0x29d425=_0x314b3c;return this[_0x29d425(0x52c)](_0x29d425(0x502),[_0x4f2131,_0x52fe5d(_0x583267)]);}async[_0x314b3c(0x781)](_0x1192d2={}){return this['_nm']('process',[_0x1192d2]);}async['compactStorage'](_0x2b42fd){const _0x1e17bc=_0x314b3c;return this[_0x1e17bc(0x52c)](_0x1e17bc(0x1bb),[_0x52fe5d(_0x2b42fd)]);}[_0x314b3c(0x5ca)](_0x7dc455){const _0x351e1b=_0x314b3c;return this['_n'](_0x351e1b(0x5ca),[_0x52fe5d(_0x7dc455)]);}['search'](_0x6cce50,_0x2b053c,_0x304d2c,_0x170ac1,_0x316efd){return this['_n']('search',[_0x6cce50,_0x2b053c,_0x304d2c,_0x170ac1||{},_0x52fe5d(_0x316efd)]);}['searchDocs'](_0x46a682,_0x561dcf,_0x50be15,_0xc82234,_0x203998,_0x5d5564){return this['_n']('searchDocs',[_0x46a682,_0x561dcf,_0x50be15,_0xc82234||{},_0x52fe5d(_0x203998),_0x5d5564]);}[_0x314b3c(0x342)](_0x1ff888,_0x36a58a,_0x34efb2,_0x33f6e2,_0x3d1ed5){const _0x3eed7e=_0x314b3c;return this['_n'](_0x3eed7e(0x413),[_0x1ff888,_0x36a58a,_0x34efb2,_0x33f6e2||{},_0x52fe5d(_0x3d1ed5)]);}[_0x314b3c(0x3a7)](){const _0x4c35c9=_0x314b3c;return this['_n'](_0x4c35c9(0x3a7),[]);}async[_0x314b3c(0x3ec)](){const _0x16feb6=_0x314b3c;return this[_0x16feb6(0x52c)](_0x16feb6(0x3ec),[]);}}return fts={'OKDBFts':_0x212f1e},fts;}var embeddings,hasRequiredEmbeddings;function requireEmbeddings(){const _0x185e76=_0x5c70f8;if(hasRequiredEmbeddings)return embeddings;hasRequiredEmbeddings=0x1;const {OKDBError:_0x378b3e,invalidArgument:_0x4a5e35}=requireErrors();requireBridge();const _0x31c494=Object[_0x185e76(0x202)]({'EMBEDDER':_0x185e76(0x4c1),'INDEXER':_0x185e76(0x8ee),'SEARCH':_0x185e76(0x636),'WORKER':_0x185e76(0x590)}),_0x39f473=_0x159c34=>typeof _0x159c34===_0x185e76(0x2b1)||_0x159c34==null?_0x159c34:Array[_0x185e76(0x48d)](_0x159c34);class _0x2a7a9a{constructor(_0x2992d9){const _0x1ae7ef=_0x185e76;this[_0x1ae7ef(0x61e)]=_0x2992d9,this[_0x1ae7ef(0x634)]=new Map(),this[_0x1ae7ef(0x336)]=new Map(),this[_0x1ae7ef(0x200)]=new Map();}['_n'](_0x58a297,_0x3792fd=[],_0x4b13fa=!![]){const _0x5c69c9=_0x185e76;return this[_0x5c69c9(0x61e)][_0x5c69c9(0x210)](_0x5c69c9(0x7f1),null,_0x58a297,_0x3792fd,_0x4b13fa);}[_0x185e76(0x52c)](_0x10051d,_0x586266=[]){const _0x47922e=_0x185e76;return this[_0x47922e(0x61e)][_0x47922e(0x661)](_0x47922e(0x7f1),null,_0x10051d,_0x586266,!![]);}['_wrap'](_0xa5fb64){const _0x10c23c=_0x185e76;return _0xa5fb64?this['okdb'][_0x10c23c(0x655)][_0x10c23c(0x215)](_0xa5fb64):null;}[_0x185e76(0x5d4)](_0x1ac816,_0x50feea,_0x5704f1={}){const _0x5b3e8e=_0x185e76;if(typeof _0x50feea!=='function')throw new _0x378b3e(_0x5b3e8e(0x7bd),_0x5b3e8e(0x5cb),{'name':_0x1ac816});this[_0x5b3e8e(0x634)]['set'](_0x1ac816,_0x50feea),this[_0x5b3e8e(0x336)]['set'](_0x1ac816,_0x5704f1);const _0xf2e714=this[_0x5b3e8e(0x61e)],_0x43ec8c=_0x54139a=>_0x50feea(_0x54139a,_0xf2e714);_0x43ec8c[_0x5b3e8e(0x263)]=_0xf2e714,this['_n'](_0x5b3e8e(0x5d4),[_0x1ac816,_0x43ec8c,_0x5704f1??{}],![]);}[_0x185e76(0x5c5)](_0x227d3f){const _0x5a4e6f=_0x185e76,_0x9d76cd=this[_0x5a4e6f(0x634)][_0x5a4e6f(0x309)](_0x227d3f);if(_0x9d76cd)return _0x9d76cd;if(!this['_n'](_0x5a4e6f(0x4e2),[_0x227d3f],![]))return null;const _0x7872db=this;return(_0x27252e={})=>{const _0x3700fc=_0x5a4e6f,_0x230dcc=_0x7872db['_n']('embedderNew',[_0x227d3f,_0x27252e],![]),_0x4126cc=_0x7872db['_n'](_0x3700fc(0x82c),[_0x230dcc],![]),_0x11dc4c=(_0x465ce5,_0x4a74e6)=>_0x7872db['_n'](_0x3700fc(0x307),[_0x230dcc,_0x465ce5,_0x4a74e6],![]),_0x2f3500={'embed':async _0x4f900a=>Float32Array[_0x3700fc(0x48d)](_0x11dc4c(_0x3700fc(0x595),_0x4f900a)),'start':async()=>_0x11dc4c(_0x3700fc(0x45c)),'stop':async()=>{const _0x1f2296=_0x3700fc;_0x11dc4c(_0x1f2296(0x1f1)),_0x11dc4c(_0x1f2296(0x6b6));}};if(_0x4126cc)_0x2f3500[_0x3700fc(0x515)]=async _0x586949=>_0x11dc4c('embedBatch',_0x586949)[_0x3700fc(0x35e)](_0x420bf9=>Float32Array[_0x3700fc(0x48d)](_0x420bf9));return _0x2f3500;};}[_0x185e76(0x7b1)](_0x3b292e){const _0x2549c9=_0x185e76;return this[_0x2549c9(0x336)]['get'](_0x3b292e)??this['_n'](_0x2549c9(0x7b1),[_0x3b292e],![])??undefined;}[_0x185e76(0x426)](_0x237141,_0x494298,_0x5c2653={}){const _0x4560de=_0x185e76;if(typeof _0x494298!==_0x4560de(0x640))throw new _0x378b3e(_0x4560de(0x2b7),_0x4560de(0x5cb),{'name':_0x237141});this['_n'](_0x4560de(0x426),[_0x237141,(_0x344896,_0x4053a5)=>_0x494298(_0x344896,_0x4053a5),_0x5c2653??{}],![]);}['listAlgorithms'](){return this['_n']('listAlgorithms',[],![]);}[_0x185e76(0x887)](_0x47ac70,_0x357fa9){const _0x2342d5=_0x185e76;if(typeof _0x357fa9!==_0x2342d5(0x640))throw new _0x378b3e(_0x2342d5(0x70e),_0x2342d5(0x5cb),{'name':_0x47ac70});this['_n'](_0x2342d5(0x887),[_0x47ac70,_0x357fa9]);}['registerChunkStrategy'](_0x1c25ef,_0x42e7fe){const _0x42fac3=_0x185e76;if(typeof _0x42e7fe!==_0x42fac3(0x640))throw new _0x378b3e(_0x42fac3(0x5d6),'BAD_PARAM',{'name':_0x1c25ef});this['_n']('registerChunkStrategy',[_0x1c25ef,_0x42e7fe]);}[_0x185e76(0x2c3)](_0x2cb083){const _0x39fbfb=_0x185e76;if(_0x2cb083==null)return this['_n'](_0x39fbfb(0x2c3),[null],![]);if(typeof _0x2cb083!==_0x39fbfb(0x640))throw new _0x378b3e(_0x39fbfb(0x1dc),_0x39fbfb(0x5cb));const _0x582331=this[_0x39fbfb(0x61e)];this['_n'](_0x39fbfb(0x2c3),[_0x3dcfc2=>_0x2cb083(_0x3dcfc2,_0x582331)],![]);}async[_0x185e76(0x293)](_0x41c903,_0x492d84={},_0x87ae28={},_0x2ca5d4=null){const _0x23af3a=_0x185e76;return this[_0x23af3a(0x215)](await this[_0x23af3a(0x52c)]('createEmbedder',[_0x41c903,_0x492d84,_0x87ae28,_0x2ca5d4]));}async[_0x185e76(0x5ab)](_0x59e142,_0xb0d9b9={},_0x2c6d81={}){const _0x2e2ac0=_0x185e76;return this[_0x2e2ac0(0x215)](await this[_0x2e2ac0(0x52c)](_0x2e2ac0(0x5ab),[_0x59e142,_0xb0d9b9,_0x2c6d81]));}async[_0x185e76(0x1c8)](_0x16a774,_0x545342={},_0x5dd9ba={}){const _0xf00b69=_0x185e76;return this[_0xf00b69(0x215)](await this[_0xf00b69(0x52c)](_0xf00b69(0x1c8),[_0x16a774,_0x545342,_0x5dd9ba]));}async[_0x185e76(0x600)](_0x191fd0,_0x20c15d={},_0x293850={}){const _0x1640df=_0x185e76;return this[_0x1640df(0x215)](await this[_0x1640df(0x52c)]('createWorker',[_0x191fd0,_0x20c15d,_0x293850]));}async[_0x185e76(0x382)](_0x1f571f,_0x137039={},_0x199418={}){const _0x101867=_0x185e76,_0x443d42=await this[_0x101867(0x52c)](_0x101867(0x382),[_0x1f571f,_0x137039,_0x199418]);return{'embedder':this[_0x101867(0x215)](_0x443d42[_0x101867(0x4c1)]),'indexer':this[_0x101867(0x215)](_0x443d42[_0x101867(0x8ee)]),'worker':this[_0x101867(0x215)](_0x443d42[_0x101867(0x36a)]),'search':this[_0x101867(0x215)](_0x443d42[_0x101867(0x40c)]),'api':this['_makePipelineApi'](_0x443d42[_0x101867(0x390)],_0x443d42[_0x101867(0x4c1)][_0x101867(0x54b)],_0x443d42[_0x101867(0x36a)]?_0x443d42[_0x101867(0x36a)][_0x101867(0x54b)]:_0x443d42[_0x101867(0x390)]+_0x101867(0x6d5))};}[_0x185e76(0x867)](_0x4d952b,_0x5ac98e){const _0x1632b2=_0x185e76;return this['okdb']['engines']['getRunningEngine'](_0x4d952b,_0x5ac98e)?.[_0x1632b2(0x7a5)]??null;}[_0x185e76(0x4c1)](_0xa5cfca){const _0xfe948b=_0x185e76,_0x42b223=this['_running'](_0x31c494[_0xfe948b(0x3d3)],_0xa5cfca);if(!_0x42b223)return null;const _0x263c29=this,_0x291c0b=_0x2f467b=>Array[_0xfe948b(0x439)](_0x2f467b)&&Array['isArray'](_0x2f467b[0x0])?_0x2f467b[_0xfe948b(0x35e)](_0x532dda=>Float32Array[_0xfe948b(0x48d)](_0x532dda)):Float32Array['from'](_0x2f467b);return new Proxy(_0x42b223,{'get'(_0x21636e,_0x464d76){const _0x107a35=_0xfe948b;if(_0x464d76===_0x107a35(0x647))return _0x263c29['okdb'][_0x107a35(0x210)]('engines',null,_0x107a35(0x72e),[_0x31c494[_0x107a35(0x3d3)],_0xa5cfca,_0x107a35(0x647),[]],![])['value'];if(_0x464d76==='embed')return async _0x2e8e34=>_0x291c0b(await _0x42b223[_0x107a35(0x595)](_0x2e8e34));if(_0x464d76===_0x107a35(0x515))return async _0x5ca5c6=>(await _0x42b223['embedBatch'](_0x5ca5c6))[_0x107a35(0x35e)](_0x3af970=>Float32Array[_0x107a35(0x48d)](_0x3af970));return _0x21636e[_0x464d76];}});}[_0x185e76(0x8ee)](_0x84870a){const _0x43ce23=_0x185e76;return this[_0x43ce23(0x867)](_0x31c494[_0x43ce23(0x4b7)],_0x84870a);}['worker'](_0x2a5097){const _0x2ba45b=_0x185e76;return this[_0x2ba45b(0x867)](_0x31c494[_0x2ba45b(0x470)],_0x2a5097);}['search'](_0xd4b4f7){const _0x44301b=_0x185e76,_0x2652f9=this[_0x44301b(0x867)](_0x31c494['SEARCH'],_0xd4b4f7);if(_0x2652f9)return _0x2652f9;return this[_0x44301b(0x8c9)](_0xd4b4f7);}[_0x185e76(0x8c9)](_0x546df9){const _0x32e18e=_0x185e76,_0x43b8f2=this;return{'search':(_0x5bfd96,_0x44ee89={})=>_0x43b8f2['okdb'][_0x32e18e(0x661)](_0x32e18e(0x7f1),null,_0x32e18e(0x40c),[_0x546df9,_0x39f473(_0x5bfd96),_0x44ee89],![]),'stats':async()=>_0x43b8f2['_n'](_0x32e18e(0x885),[_0x546df9],![]),'count':()=>_0x43b8f2['_n'](_0x32e18e(0x873),[_0x546df9,_0x32e18e(0x400)],![])};}async[_0x185e76(0x25c)](_0x4e4831,_0x12920c,_0x11555e={}){const _0x4988c4=_0x185e76,{limit:limit=0xa,..._0x8e28d7}=_0x11555e;return this['_nm'](_0x4988c4(0x25c),[_0x4e4831,_0x39f473(_0x12920c),{..._0x8e28d7,'limit':limit}]);}[_0x185e76(0x42c)](_0x53253d){return this['_n']('vectorSpace',[_0x53253d],![]);}[_0x185e76(0x46c)](_0x1c3c87,_0x2c2c26){const _0x2b1100=_0x185e76;return this['_n'](_0x2b1100(0x422),[_0x1c3c87,_0x2c2c26],![]);}[_0x185e76(0x434)](_0x8a4c86){const _0x4fc3a4=_0x185e76;return this['_n'](_0x4fc3a4(0x3dd),[_0x8a4c86],![]);}async[_0x185e76(0x711)](_0x2c8353){const _0x32bd24=_0x185e76;return this['_n'](_0x32bd24(0x1e9),[_0x2c8353],![]);}async[_0x185e76(0x387)](_0xce2399,_0x19b175={}){const _0x585e8d=_0x185e76;return this['_n'](_0x585e8d(0x216),[_0xce2399,_0x19b175],![]);}async['_durableIndexerDoc'](_0x2efdd4,_0x4937bc){return this['_n']('durableDoc',[_0x2efdd4,_0x4937bc],![]);}async[_0x185e76(0x7ad)](_0x3e6222,_0x4855a9,_0x23a818,_0x34f840){const _0x76fe73=_0x185e76;if(_0x3e6222!=null&&typeof _0x3e6222['includes']!==_0x76fe73(0x640))throw _0x4a5e35(_0x76fe73(0x54b),_0x76fe73(0x38d),_0x3e6222);if(!_0x3e6222||!_0x23a818)return null;return this['okdb'][_0x76fe73(0x661)](_0x76fe73(0x7f1),null,_0x76fe73(0x7ad),[_0x3e6222,_0x4855a9,_0x23a818,_0x34f840??null],![]);}async[_0x185e76(0x617)](_0x49e3e4,_0x1ab77c,_0x264423={}){const _0x3e80aa=_0x185e76,_0x505509={..._0x264423};if(_0x505509[_0x3e80aa(0x24e)])_0x505509[_0x3e80aa(0x24e)]=Array[_0x3e80aa(0x48d)](_0x505509[_0x3e80aa(0x24e)]);return this['_n'](_0x3e80aa(0x617),[_0x49e3e4,_0x1ab77c,_0x505509]);}async[_0x185e76(0x46b)](_0x50ffc9,_0xfe8866,_0x153c2e,_0x3bc338={}){const _0x3e6c49=_0x185e76;return this['_n'](_0x3e6c49(0x46b),[_0x50ffc9,_0xfe8866,_0x153c2e,_0x3bc338]);}async[_0x185e76(0x739)](_0x130aaa,_0x564df7){const _0x3db410=_0x185e76;return this['_n'](_0x3db410(0x739),[_0x130aaa,_0x564df7]);}async[_0x185e76(0x749)](_0x40f47d,_0x1b75d5){const _0x9d014e=_0x185e76;return this['_n'](_0x9d014e(0x749),[_0x40f47d,_0x1b75d5]);}async[_0x185e76(0x83f)](_0x3137e2,_0x3be0de={}){const _0x1bc629=_0x185e76;return this['_n'](_0x1bc629(0x83f),[_0x3137e2,_0x3be0de]);}async['durableRebuild'](_0x321892){const _0x4c8d25=_0x185e76;return this[_0x4c8d25(0x52c)](_0x4c8d25(0x8ba),[_0x321892]);}async[_0x185e76(0x670)](_0x54fdf6){const _0x151dfc=_0x185e76;return this['_n'](_0x151dfc(0x8d0),[_0x54fdf6],![]);}[_0x185e76(0x836)](_0x585ae6){const _0x4490e8=_0x185e76;return this['_n'](_0x4490e8(0x836),[_0x585ae6],![]);}[_0x185e76(0x51f)](){const _0x48d26a=_0x185e76;return this['_n'](_0x48d26a(0x51f),[],![]);}['getVector'](_0x50cf97,_0xf7c0bd){const _0x2348b8=_0x185e76,_0x2c08d0=this['_n'](_0x2348b8(0x535),[_0x50cf97,_0xf7c0bd],![]);return _0x2c08d0==null?null:Float32Array[_0x2348b8(0x48d)](_0x2c08d0);}[_0x185e76(0x3f3)](_0x33a492,_0x8d541a){return this['_n']('resolveModelDims',[_0x33a492,_0x8d541a??null],![])??undefined;}async[_0x185e76(0x8c8)](_0x217bff,_0x19569c,_0x5874d4,_0x1ebe7e=''){const _0x4dd04d=_0x185e76;return this['_n'](_0x4dd04d(0x8c8),[_0x217bff,_0x19569c,_0x5874d4,_0x1ebe7e]);}[_0x185e76(0x744)](_0xbd342d=null){const _0x472166=_0x185e76;return this['_n'](_0x472166(0x744),[_0xbd342d],![]);}[_0x185e76(0x396)](){const _0x4de539=_0x185e76;return this['_n'](_0x4de539(0x396),[],![]);}async['_ensureTypeEnv'](_0x4d6ff7,_0x24e1bd){const _0x6d357a=_0x185e76;return this['_n'](_0x6d357a(0x364),[_0x4d6ff7,_0x24e1bd],![]),this[_0x6d357a(0x61e)][_0x6d357a(0x6df)]('~'+_0x4d6ff7+':emb:'+_0x24e1bd);}async['_ensureVectorStore'](_0x100b3b,_0x3d307d){const _0x1a9efb=_0x185e76;return await this[_0x1a9efb(0x8b9)](_0x100b3b,_0x3d307d),{'adapter':_0x5c7020=>this['_makeLazyVectorAdapter'](_0x100b3b,_0x3d307d,_0x5c7020)};}[_0x185e76(0x432)](_0x44b35d,_0xdbb1b4,_0x140a90){const _0x4848eb=this;return{async 'put'(_0x50365e,_0x358067){const _0x53d613=_0x52a3;return _0x4848eb['_n'](_0x53d613(0x3ab),[_0x44b35d,_0xdbb1b4,_0x140a90,_0x50365e,Array[_0x53d613(0x48d)](_0x358067)]);},async 'remove'(_0x12832e){return _0x4848eb['_n']('vecRemove',[_0x44b35d,_0xdbb1b4,_0x140a90,_0x12832e]);}};}get[_0x185e76(0x1e1)](){const _0x3d413=_0x185e76,_0xe7e528=this,_0x579305=()=>_0xe7e528['_n'](_0x3d413(0x3b4),[],![]),_0x3d3df4=_0x49114b=>{const _0x3a9d8f=_0x3d413,_0x4f470d=_0x5941f4=>_0xe7e528['_n']('viewOp',[_0x49114b,_0x5941f4],![]);return{'name':_0x49114b,'_evict':async()=>_0x4f470d(_0x3a9d8f(0x73f)),'evict':async()=>_0x4f470d('evict'),'snapshot':async()=>_0x4f470d('snapshot'),'_snapshot':async()=>_0x4f470d(_0x3a9d8f(0x41c)),'rebuild':async()=>_0x4f470d(_0x3a9d8f(0x8da)),'stats':()=>_0x4f470d('stats'),get 'count'(){return _0x4f470d('count');},get 'loaded'(){const _0x2a2145=_0x3a9d8f;return _0x4f470d(_0x2a2145(0x776));}};};return{get 'size'(){const _0x408134=_0x3d413;return _0x579305()[_0x408134(0x68a)];},'has':_0x52f75d=>_0x579305()['includes'](_0x52f75d),'get':_0x48a570=>_0x579305()['includes'](_0x48a570)?_0x3d3df4(_0x48a570):undefined,'keys':()=>_0x579305()[Symbol['iterator']](),'values':()=>_0x579305()['map'](_0x3d3df4)[Symbol[_0x3d413(0x344)]](),[Symbol['iterator']]:()=>_0x579305()[_0x3d413(0x35e)](_0xd33126=>[_0xd33126,_0x3d3df4(_0xd33126)])[Symbol[_0x3d413(0x344)]]()};}async[_0x185e76(0x45c)](){}async[_0x185e76(0x1f1)](){this['_n']('stop',[]);}[_0x185e76(0x63a)](_0x1d01bf,_0x4619da,_0x2052f4){const _0x3b76c4=_0x185e76;return{'search':(_0x27d180,_0x1ccc1c={})=>{const _0x56bd39=_0x52a3,_0xa95f97=this[_0x56bd39(0x40c)](_0x1d01bf);if(!_0xa95f97)throw new Error(_0x56bd39(0x329)+_0x1d01bf+'\x22');return _0xa95f97[_0x56bd39(0x40c)](_0x27d180,_0x1ccc1c);},'searchDocs':(_0x54ffa4,_0x168959={})=>this[_0x3b76c4(0x25c)](_0x1d01bf,_0x54ffa4,_0x168959),'flush':_0x2c4b09=>{const _0x2e6ffa=_0x3b76c4,_0x470b1b=this[_0x2e6ffa(0x8ee)](_0x1d01bf);if(!_0x470b1b)throw new Error(_0x2e6ffa(0x654)+_0x1d01bf+'\x22');return _0x470b1b['flush'](_0x2c4b09);},'stats':async()=>({'embedder':await this['embedder'](_0x4619da)?.['health']?.(),'indexer':await this[_0x3b76c4(0x8ee)](_0x1d01bf)?.[_0x3b76c4(0x308)]?.(),'worker':await this['worker'](_0x2052f4)?.[_0x3b76c4(0x308)]?.(),'search':await this[_0x3b76c4(0x40c)](_0x1d01bf)?.[_0x3b76c4(0x308)]?.()})};}}return embeddings={'OKDBEmbeddings':_0x2a7a9a,'ENGINE_TYPES':_0x31c494},embeddings;}var auth,hasRequiredAuth;function requireAuth(){const _0xa5eee8=_0x5c70f8;if(hasRequiredAuth)return auth;hasRequiredAuth=0x1;const {invalidArgument:_0x14ed3d}=requireErrors();class _0x5fb568{constructor(_0x1ecebd){const _0x26fa2a=_0x52a3;this[_0x26fa2a(0x61e)]=_0x1ecebd;}['_n'](_0x4883b3,_0x138652=[],_0x10a39f=![]){const _0x989425=_0x52a3;return this[_0x989425(0x61e)][_0x989425(0x210)](_0x989425(0x7f0),null,_0x4883b3,_0x138652,_0x10a39f);}['_nm'](_0x56f6cd,_0x4c1a9a=[]){const _0xa81a95=_0x52a3;return this[_0xa81a95(0x61e)]['_callMacro']('auth',null,_0x56f6cd,_0x4c1a9a,![]);}get[_0xa5eee8(0x5a9)](){const _0x2124f9=_0xa5eee8;return this['_n'](_0x2124f9(0x5a9));}get[_0xa5eee8(0x8a4)](){const _0x4c19ad=_0xa5eee8;return this['_n'](_0x4c19ad(0x8a4));}get['_oauthConfig'](){const _0x3d37a7=_0xa5eee8;return this[_0x3d37a7(0x61e)][_0x3d37a7(0x688)]['auth']?.[_0x3d37a7(0x3a9)]||{};}['isOAuthEmailAllowed'](_0x1cbf70){const _0x435f94=_0xa5eee8;return this['_n'](_0x435f94(0x792),[_0x1cbf70??null]);}[_0xa5eee8(0x49b)](_0x554b76){return this['_n']('isOpenForIp',[_0x554b76??null]);}[_0xa5eee8(0x74d)](_0x391c1){const _0x383503=_0xa5eee8;return this['_n'](_0x383503(0x49d),[_0x391c1??null]);}[_0xa5eee8(0x235)](){const _0x2dffcc=_0xa5eee8;return this['_n'](_0x2dffcc(0x2c0));}[_0xa5eee8(0x703)](){const _0x11f3e9=_0xa5eee8;return this['_n'](_0x11f3e9(0x703));}[_0xa5eee8(0x1e0)](){const _0x3072af=_0xa5eee8;return this['_n'](_0x3072af(0x1e0));}[_0xa5eee8(0x831)](_0x2204cf){const _0x5bb5c2=_0xa5eee8;return this['_n'](_0x5bb5c2(0x831),[_0x2204cf]);}[_0xa5eee8(0x8dd)](_0x59828a){const _0x58f0d7=_0xa5eee8;return this['_n'](_0x58f0d7(0x8dd),[_0x59828a]);}[_0xa5eee8(0x584)](_0x2a0915){const _0x793a6=_0xa5eee8;if(_0x2a0915!=null&&typeof _0x2a0915!=='string')throw _0x14ed3d(_0x793a6(0x6dd),_0x793a6(0x38d),_0x2a0915);return this['_n'](_0x793a6(0x584),[_0x2a0915??null]);}async[_0xa5eee8(0x8c7)](){const _0x492c2c=_0xa5eee8;return this['_n'](_0x492c2c(0x23f),[],!![]);}async['_lookupByTokenHash'](_0x4424c2){const _0x80eb84=_0xa5eee8;return this['_n'](_0x80eb84(0x7f6),[_0x4424c2]);}async['_lookupByName'](_0x31dfff){return this['_n']('lookupByName',[_0x31dfff]);}async[_0xa5eee8(0x421)](_0x465dda){const _0xd84d6e=_0xa5eee8;return this['_n'](_0xd84d6e(0x1d6),[_0x465dda]);}async[_0xa5eee8(0x47b)](_0x4486c1){const _0x172d05=_0xa5eee8,_0x56d18f=_0x4486c1?.['headers']||{};return this['_n'](_0x172d05(0x47b),[{'remoteAddress':_0x4486c1[_0x172d05(0x223)]?.[_0x172d05(0x6c1)]??null,'internal':_0x4486c1?.['context']?.['internal']===!![],'authorization':_0x56d18f[_0x172d05(0x869)]??null,'cookies':_0x4486c1?.[_0x172d05(0x631)]??{}}]);}async[_0xa5eee8(0x669)](_0x352132,_0x493321){const _0x422494=_0xa5eee8;return this[_0x422494(0x52c)](_0x422494(0x669),[_0x352132??null,_0x493321??null]);}async[_0xa5eee8(0x48e)](_0x52a43e,_0x32dd54,_0x32bf96){const _0x437ac1=_0xa5eee8;return this[_0x437ac1(0x52c)](_0x437ac1(0x48e),[_0x52a43e??null,_0x32dd54??null,_0x32bf96??null]);}[_0xa5eee8(0x4da)](){const _0x179422=_0xa5eee8;return this['_n'](_0x179422(0x4da));}['getLoginConfig'](){const _0x1fb3c1=_0xa5eee8;return this['_n'](_0x1fb3c1(0x33c));}[_0xa5eee8(0x577)](_0x5492b9={},_0x1d2490=0x927c0){const _0x36ce21=_0xa5eee8;return this['_n'](_0x36ce21(0x577),[_0x5492b9,_0x1d2490]);}[_0xa5eee8(0x60b)](_0x21b05a){const _0x1fe086=_0xa5eee8;return this['_n'](_0x1fe086(0x60b),[_0x21b05a]);}async[_0xa5eee8(0x5a7)](_0x1b3c8e,_0x588498={}){const _0x3b2cbc=_0xa5eee8;return this['_nm'](_0x3b2cbc(0x455),[_0x1b3c8e,_0x588498]);}async[_0xa5eee8(0x897)](_0x1945eb={}){const _0x4a5767=_0xa5eee8;return this[_0x4a5767(0x52c)](_0x4a5767(0x5d2),[_0x1945eb]);}['_normalizeOAuthAuthResult'](_0x4c14a4){const _0x167f75=_0xa5eee8;return this['_n'](_0x167f75(0x7d5),[_0x4c14a4]);}}return auth={'OKDBAuth':_0x5fb568},auth;}var sync,hasRequiredSync;function requireSync(){const _0x1b0972=_0x5c70f8;if(hasRequiredSync)return sync;hasRequiredSync=0x1;const {RawDb:_0x5d11f7}=requireRawdb();class _0x1fd8d2{constructor(_0x5f9438){this['_s']=_0x5f9438;}get[_0x1b0972(0x58c)](){const _0x572103=_0x1b0972;return this['_ack']||(this['_ack']=new _0x5d11f7(this['_s'][_0x572103(0x61e)][_0x572103(0x34d)],_0x572103(0x22b)));}[_0x1b0972(0x81c)](){const _0x3cb0ec=_0x1b0972;return this[_0x3cb0ec(0x58c)];}[_0x1b0972(0x509)](){const _0x1750b2=_0x1b0972;return this[_0x1750b2(0x58c)];}['_n'](_0x2fb9fd,_0x5470d6=[]){return this['_s']['_n']('gc.'+_0x2fb9fd,_0x5470d6);}[_0x1b0972(0x2eb)](_0x1e57ff,_0x47b70a){const _0x39b528=_0x1b0972;return this['_n'](_0x39b528(0x2eb),[_0x1e57ff,_0x47b70a]);}async[_0x1b0972(0x6d3)](_0x17b5e3){const _0x576dbc=_0x1b0972;return this['_n'](_0x576dbc(0x6d3),[_0x17b5e3]);}[_0x1b0972(0x5e2)](){const _0x3c0e8f=_0x1b0972;return this['_n'](_0x3c0e8f(0x5e2));}['getGcHorizon'](_0x9d9e8){const _0x381c37=_0x1b0972;return this['_n'](_0x381c37(0x23b),[_0x9d9e8]);}async[_0x1b0972(0x8b3)](){const _0x485496=_0x1b0972;return this['_n'](_0x485496(0x8b3));}['getStatus'](){const _0x2c2440=_0x1b0972;return this['_n'](_0x2c2440(0x575));}[_0x1b0972(0x45c)](){const _0x394f43=_0x1b0972;return this['_n'](_0x394f43(0x45c));}[_0x1b0972(0x1f1)](){return this['_n']('stop');}get['_gcTimer'](){const _0x1a42a0=_0x1b0972;try{return this['_n'](_0x1a42a0(0x57b))?{}:null;}catch{return null;}}}class _0x364245{constructor(_0x59330b){const _0x57f69e=_0x1b0972;this[_0x57f69e(0x61e)]=_0x59330b,this['gc']=new _0x1fd8d2(this);const _0x2e0a2a=this;this['options']=new Proxy({},{'get':(_0x4e8345,_0x196062)=>typeof _0x196062===_0x57f69e(0x2b1)?_0x2e0a2a['_n'](_0x57f69e(0x688))[_0x196062]:undefined,'set':(_0x120b3b,_0xe0f0ce,_0x2e4b6f)=>{const _0x2a3eb6=_0x57f69e;if(_0xe0f0ce===_0x2a3eb6(0x784))_0x2e0a2a['_n'](_0x2a3eb6(0x2ed),[_0x2e4b6f??null]);else{if(_0xe0f0ce===_0x2a3eb6(0x6b0))_0x2e0a2a['_n'](_0x2a3eb6(0x8aa),[_0x2e4b6f??null]);else{if(_0xe0f0ce===_0x2a3eb6(0x297))_0x2e0a2a['_n'](_0x2a3eb6(0x86c),[_0x2e4b6f]);}}return!![];},'ownKeys':()=>Object[_0x57f69e(0x4ac)](_0x2e0a2a['_n'](_0x57f69e(0x688))),'getOwnPropertyDescriptor':(_0x10f0f4,_0x144c44)=>({'enumerable':!![],'configurable':!![],'value':_0x2e0a2a['_n'](_0x57f69e(0x688))[_0x144c44]}),'has':(_0x32e9fe,_0x45bf7b)=>_0x45bf7b in _0x2e0a2a['_n']('options')});}['_n'](_0xb385f3,_0x45aab4=[],_0x4a3eb2=![]){const _0x5b8063=_0x1b0972;return this[_0x5b8063(0x61e)]['_call'](_0x5b8063(0x59c),null,_0xb385f3,_0x45aab4,_0x4a3eb2);}['_nm'](_0x1700dc,_0x44a945=[]){const _0x3c288d=_0x1b0972;return this[_0x3c288d(0x61e)][_0x3c288d(0x661)](_0x3c288d(0x59c),null,_0x1700dc,_0x44a945,!![]);}get[_0x1b0972(0x80a)](){const _0x2314f6=_0x1b0972;return this[_0x2314f6(0x5a1)]||(this['_pdb']=new _0x5d11f7(this[_0x2314f6(0x61e)][_0x2314f6(0x34d)],'__sync:peer_state'));}['_openLocalPeerDb'](){return this['_peerDb'];}get[_0x1b0972(0x1ea)](){const _0x23eb6b=_0x1b0972;return this[_0x23eb6b(0x6bd)]||(this[_0x23eb6b(0x6bd)]=new(requireLock())[(_0x23eb6b(0x1c7))](this[_0x23eb6b(0x61e)],_0x23eb6b(0x5b5),_0x23eb6b(0x59c),{'ttlMs':0x7530}));}get[_0x1b0972(0x784)](){const _0xc83ae0=_0x1b0972;return this['_n']('options')[_0xc83ae0(0x784)];}get[_0x1b0972(0x5f2)](){const _0x56db22=_0x1b0972;return this[_0x56db22(0x61e)]['_isOpen']&&this['_n'](_0x56db22(0x7ae))?{}:null;}get['_pokeListener'](){const _0xdcea90=_0x1b0972;return this[_0xdcea90(0x5f2)];}get[_0x1b0972(0x4e3)](){const _0x229beb=_0x1b0972;return this['_n'](_0x229beb(0x8de))?.['privateKey'];}get[_0x1b0972(0x1cc)](){const _0x5ed1f0=_0x1b0972;return this['_n']('nodeKeys')?.[_0x5ed1f0(0x249)];}['info'](){const _0x3ae6c0=_0x1b0972;return this['_n'](_0x3ae6c0(0x7e2));}[_0x1b0972(0x4fc)](){const _0x333c05=_0x1b0972;return this['_n'](_0x333c05(0x4fc));}get[_0x1b0972(0x3af)](){const _0x16ecf9=_0x1b0972;return this[_0x16ecf9(0x57a)]||(()=>this['_n']('peers'));}set['peers'](_0x2a48be){const _0x11f51d=_0x1b0972;this[_0x11f51d(0x57a)]=typeof _0x2a48be===_0x11f51d(0x640)?_0x2a48be:null,this['_n'](_0x11f51d(0x619),[this[_0x11f51d(0x57a)]]);}[_0x1b0972(0x51d)](){const _0x1b5254=_0x1b0972;return this['_n'](_0x1b5254(0x489));}async[_0x1b0972(0x30c)](){const _0x47d6cd=_0x1b0972;return this['_nm'](_0x47d6cd(0x30c));}async[_0x1b0972(0x4af)](_0x2a4efa){const _0x185b7c=_0x1b0972;return this['_nm'](_0x185b7c(0x4af),[_0x2a4efa]);}async[_0x1b0972(0x4cd)](_0x119bbf,_0x2c6829={}){const _0x385de9=_0x1b0972;return this[_0x385de9(0x52c)]('reconcilePeerPull',[_0x119bbf,_0x2c6829]);}[_0x1b0972(0x1f1)](){const _0x512f00=_0x1b0972;return this['_n'](_0x512f00(0x1f1));}[_0x1b0972(0x5b6)](){const _0x2c56e0=_0x1b0972;return this['_n'](_0x2c56e0(0x5b6));}async[_0x1b0972(0x2a0)](_0x3beef4,_0x43b20f={}){const _0x3643c3=_0x1b0972;return this['_n'](_0x3643c3(0x2a0),[_0x3beef4,_0x43b20f],!![]);}async[_0x1b0972(0x8a8)](_0x328ae8){const _0x868047=_0x1b0972;return this['_n'](_0x868047(0x8a8),[_0x328ae8],!![]);}[_0x1b0972(0x58a)](_0x44d87c){const _0x23a096=_0x1b0972;return this['_n'](_0x23a096(0x832),[_0x44d87c]);}[_0x1b0972(0x457)](_0x4b5e25){const _0x3d8f6f=_0x1b0972;return this['_n'](_0x3d8f6f(0x474),[_0x4b5e25]);}async[_0x1b0972(0x359)](_0x516364,_0x12ed7a,_0x371a24={}){const _0x217134=_0x1b0972;return this['_n'](_0x217134(0x370),[_0x516364,_0x12ed7a,_0x371a24]);}async[_0x1b0972(0x807)](_0x3eb806){return this['_n']('ensurePeerState',[_0x3eb806]);}async['_ensure'](){const _0x42b3a3=_0x1b0972;return this['_n'](_0x42b3a3(0x2ea),[],!![]);}async[_0x1b0972(0x425)](_0x260080){return this['_n']('patchSelf',[_0x260080],!![]);}async['join'](_0x430d91,_0x5e06ac={}){const _0x59b03c=_0x1b0972;return this['_nm'](_0x59b03c(0x596),[_0x430d91,_0x5e06ac]);}async['calculateDelta'](_0x59b32e={},_0x3a6282={}){const _0x19e59c=_0x1b0972;return void _0x59b32e[_0x19e59c(0x5b5)],this['_n'](_0x19e59c(0x893),[_0x59b32e,_0x3a6282]);}async['fetchPeer'](_0x43c30b,_0xd6ae75,_0xf9c42d,_0x290c7f){const _0x32e9a0=_0x1b0972;return this['_nm'](_0x32e9a0(0x427),[_0x43c30b,_0xd6ae75,_0xf9c42d,_0x290c7f??null]);}async['fetchRemoteDelta'](_0x41ed0d,_0x372a23,_0x12e81e={}){const _0x385fc9=_0x1b0972;return this['_nm'](_0x385fc9(0x35b),[_0x41ed0d,_0x372a23,_0x12e81e]);}[_0x1b0972(0x8a6)](_0x412af3,_0x186d1b=null){const _0x307131=_0x1b0972;return this['_n'](_0x307131(0x419),[_0x412af3,_0x186d1b?_0x186d1b[_0x307131(0x54b)]:null]);}['applyChange'](_0x1f8273,_0x3349fc=null){const _0x47bb74=_0x1b0972;return this['_n'](_0x47bb74(0x46a),[_0x1f8273,_0x3349fc?_0x3349fc[_0x47bb74(0x54b)]:null],!![]);}}return sync={'OKDBSync':_0x364245},sync;}var migrate,hasRequiredMigrate;function requireMigrate(){const _0x174e64=_0x5c70f8;if(hasRequiredMigrate)return migrate;hasRequiredMigrate=0x1;const {optionsArg:_0x541b9e}=requireErrors(),_0x5cb6f3=require$$0,_0x3f048d=require$$4,_0x47ca7c=0x40*0x400;async function _0x3d28aa(_0x524bf1,_0x1cab55){const _0x1c4eba=_0x52a3;for(let _0x29815d=0x0;_0x29815d<_0x1cab55[_0x1c4eba(0x68a)];){let _0x58ff06=Math[_0x1c4eba(0x597)](_0x1cab55[_0x1c4eba(0x68a)],_0x29815d+_0x47ca7c);if(_0x58ff06<_0x1cab55[_0x1c4eba(0x68a)]){const _0x293f19=_0x1cab55[_0x1c4eba(0x2bb)](0xa,_0x58ff06-0x1);_0x58ff06=_0x293f19===-0x1?_0x1cab55[_0x1c4eba(0x68a)]:_0x293f19+0x1;}const _0x29bd04=_0x524bf1[_0x1c4eba(0x21a)](_0x1cab55[_0x1c4eba(0x5c6)](_0x29815d,_0x58ff06));_0x29815d=_0x58ff06;if(!_0x29bd04)await new Promise(_0x4c06e3=>_0x524bf1[_0x1c4eba(0x32f)](_0x1c4eba(0x3ec),_0x4c06e3));await new Promise(_0x444999=>setImmediate(_0x444999));}}async function _0x5ea34e(_0x383b4e){const _0x3c8120=_0x52a3,_0x55fef5=[];for await(const _0x102665 of _0x383b4e)_0x55fef5[_0x3c8120(0x28d)](Buffer[_0x3c8120(0x823)](_0x102665)?_0x102665:Buffer[_0x3c8120(0x48d)](_0x102665,_0x3c8120(0x6ae)));return Buffer['concat'](_0x55fef5);}class _0x53f99f{constructor(_0x244aa2){const _0x548eb8=_0x52a3;this[_0x548eb8(0x61e)]=_0x244aa2;}['_n'](_0x385846,_0x46f6de){const _0x58d2b3=_0x52a3;return this['okdb']['_call'](_0x58d2b3(0x516),null,_0x385846,_0x46f6de,!![]);}async[_0x174e64(0x7bc)](_0x37357b,_0x40df02={}){const _0xebaeda=_0x174e64,{data:_0xcd8577,stats:_0x5cd691}=this['_n']('exportBuf',[_0x40df02]);return await _0x3d28aa(_0x37357b,Buffer[_0xebaeda(0x48d)](_0xcd8577)),_0x5cd691;}async[_0x174e64(0x677)](_0x3d8a08,_0x5c63c2={}){const _0x496a2c=_0x174e64;_0x5cb6f3[_0x496a2c(0x6d2)](_0x3f048d[_0x496a2c(0x826)](_0x3d8a08),{'recursive':!![]});const _0x11e1eb=_0x5cb6f3['createWriteStream'](_0x3d8a08),_0x4aaaba=await this[_0x496a2c(0x7bc)](_0x11e1eb,_0x5c63c2);return await new Promise((_0x1b6b73,_0x3c7e2b)=>{const _0x227b26=_0x496a2c;_0x11e1eb['end'](),_0x11e1eb[_0x227b26(0x32f)](_0x227b26(0x8b4),_0x1b6b73),_0x11e1eb[_0x227b26(0x32f)](_0x227b26(0x62e),_0x3c7e2b);}),{..._0x4aaaba,'filePath':_0x3d8a08};}async[_0x174e64(0x1c5)](_0x5da128,_0x28fc96={}){const _0x52fc61=_0x174e64,{data:_0x284601,stats:_0x231cb3}=this['_n']('exportEnvsBuf',[_0x28fc96]);return await _0x3d28aa(_0x5da128,Buffer[_0x52fc61(0x48d)](_0x284601)),_0x231cb3;}async['importFromStream'](_0x2f706f,_0x3f2091={}){const _0x46270a=_0x174e64,_0x4da364=await _0x5ea34e(_0x2f706f),{onProgress:_0x76e9c1,..._0x235035}=_0x3f2091,_0x13208c=this['_n']('importBuf',[_0x4da364,_0x235035]);if(typeof _0x76e9c1==='function')_0x76e9c1({'type':null,'count':_0x13208c[_0x46270a(0x3c3)]});return _0x13208c;}async[_0x174e64(0x565)](_0x92b084,_0x35fd43={}){const _0x442944=_0x174e64;return this['importFromStream'](_0x5cb6f3['createReadStream'](_0x92b084,{'encoding':_0x442944(0x6ae)}),_0x35fd43);}async[_0x174e64(0x423)](_0x4ad1ed,_0x39b8a2={}){const _0x2c9c29=_0x174e64;return this['_n'](_0x2c9c29(0x423),[_0x4ad1ed,_0x39b8a2]);}['backupRoot'](){const _0xa3605c=_0x174e64;return this['_n'](_0xa3605c(0x667),[]);}['resolveBackupDest'](_0x93a0e6){return this['_n']('resolveBackupDest',[_0x93a0e6??null]);}async[_0x174e64(0x727)](_0x45db98={}){const _0x3f537c=_0x174e64;return this['_n'](_0x3f537c(0x727),[_0x45db98]);}async[_0x174e64(0x20e)](_0x267cf8,_0x30d30d={}){const _0x13b6aa=_0x174e64;return this['_n'](_0x13b6aa(0x20e),[_0x267cf8,_0x30d30d]);}async[_0x174e64(0x6fd)](_0x4564a3){const _0x558004=_0x174e64,{pretty:pretty=![]}=_0x541b9e(_0x4564a3);return JSON[_0x558004(0x35a)](await this[_0x558004(0x727)](),null,pretty?0x2:0x0);}async[_0x174e64(0x79b)](_0x60e333){const _0x51f963=_0x174e64;return this[_0x51f963(0x20e)](JSON[_0x51f963(0x78e)](_0x60e333));}['_assertFiles'](){const _0x4ae924=_0x174e64;if(!this['okdb'][_0x4ae924(0x612)][_0x4ae924(0x309)](_0x4ae924(0x2a6))?.[_0x4ae924(0x87a)])throw new Error(_0x4ae924(0x54e));}async['exportBlobs'](_0x3da4b8){const _0x4dfb0e=_0x174e64;return this[_0x4dfb0e(0x8d6)](),this['_n'](_0x4dfb0e(0x48a),[_0x3da4b8]);}async[_0x174e64(0x3a5)](_0x5ebd6a){const _0x5697ed=_0x174e64;return this[_0x5697ed(0x8d6)](),this['_n']('importBlobs',[_0x5ebd6a]);}['_allEnvsWithFiles'](){const _0xda89f9=_0x174e64;return this['_n'](_0xda89f9(0x1d9),[])['map'](_0x53279e=>this['okdb'][_0xda89f9(0x609)](_0x53279e));}async['validateBlobIntegrity'](){const _0x9278c5=_0x174e64;return this[_0x9278c5(0x8d6)](),this['_n'](_0x9278c5(0x77e),[]);}async[_0x174e64(0x20c)](){const _0x18332c=_0x174e64;return this[_0x18332c(0x8d6)](),this['_n'](_0x18332c(0x20c),[]);}}return migrate={'OKDBMigrate':_0x53f99f},migrate;}var mcp,hasRequiredMcp;function requireMcp(){const _0x53083e=_0x5c70f8;if(hasRequiredMcp)return mcp;hasRequiredMcp=0x1;class _0x84571{constructor(_0x508059){this['okdb']=_0x508059,this['clients']=new Map();}['_n'](_0x6cce36,_0x39f16a){const _0x247542=_0x52a3;try{return this[_0x247542(0x61e)][_0x247542(0x210)]('mcp',null,_0x6cce36,_0x39f16a,!![]);}catch(_0x5ad185){if(_0x5ad185&&_0x5ad185['code']===_0x247542(0x2c6)&&_0x5ad185['details']){if(_0x5ad185['details'][_0x247542(0x220)]!==undefined)_0x5ad185[_0x247542(0x220)]=_0x5ad185[_0x247542(0x37e)]['jsonrpcCode'];_0x5ad185[_0x247542(0x37e)]=_0x5ad185[_0x247542(0x37e)][_0x247542(0x37e)],_0x5ad185[_0x247542(0x50e)]=undefined;}throw _0x5ad185;}}['_tools'](){const _0x43d452=_0x52a3;return this['_n'](_0x43d452(0x731),[]);}async['_call'](_0x1ca9e8,_0x15b1e4={}){return this['_n']('call',[_0x1ca9e8??null,_0x15b1e4??{}]);}async[_0x53083e(0x797)](_0xdea90a,_0x5b5136={}){const _0x4e094a=_0x53083e;return this['_n'](_0x4e094a(0x349),[_0xdea90a,_0x5b5136??{}]);}['_initialize'](_0x287dd1){const _0x811d1d=_0x53083e;return this['_n'](_0x811d1d(0x2d3),[_0x287dd1??null]);}}return mcp={'OKDBMcp':_0x84571},mcp;}var sys,hasRequiredSys;function requireSys(){const _0x4e929c=_0x5c70f8;if(hasRequiredSys)return sys;hasRequiredSys=0x1;function _0x44ad24(_0x1b3fd0,_0x566616,_0x12c79f){const _0x17d4c6=_0x52a3,_0x387f52={};for(const [_0x30b94f,_0x30025f]of Object[_0x17d4c6(0x719)](_0x12c79f)){_0x387f52[_0x30b94f]=_0x30025f===_0x17d4c6(0x56f)?async(..._0x5ac73f)=>_0x1b3fd0[_0x17d4c6(0x210)](_0x566616,null,_0x30b94f,_0x5ac73f):(..._0x4704dd)=>_0x1b3fd0[_0x17d4c6(0x210)](_0x566616,null,_0x30b94f,_0x4704dd,![]);}return _0x387f52;}const _0x536bd5=[_0x4e929c(0x4c3),_0x4e929c(0x2fd),_0x4e929c(0x1e5),'describeAllTypes',_0x4e929c(0x896),_0x4e929c(0x335),_0x4e929c(0x38b),_0x4e929c(0x4c0),_0x4e929c(0x7b4),_0x4e929c(0x844),_0x4e929c(0x50d),_0x4e929c(0x865),_0x4e929c(0x392),_0x4e929c(0x447),'getTypeCount','getIndexCount',_0x4e929c(0x513),_0x4e929c(0x2fa),_0x4e929c(0x367),'recomputeFields',_0x4e929c(0x542)],_0xe73981={'add':_0x4e929c(0x56f),'activate':'async','remove':_0x4e929c(0x56f),'list':'sync','get':_0x4e929c(0x59c),'effective':_0x4e929c(0x59c)},_0x15f1a5={'open':_0x4e929c(0x56f),'register':_0x4e929c(0x56f),'buildOwnRow':_0x4e929c(0x59c),'_buildProcessingFacet':_0x4e929c(0x59c),'reportThreadStats':_0x4e929c(0x59c),'clearThreadStats':_0x4e929c(0x59c),'emitProc':_0x4e929c(0x59c),'addSupervisedChild':_0x4e929c(0x56f),'removeSupervisedChild':_0x4e929c(0x59c),'updateSupervisedChildStats':_0x4e929c(0x59c),'publishChildRow':_0x4e929c(0x56f),'putNode':_0x4e929c(0x56f),'removeNode':'async','nodeDead':_0x4e929c(0x59c),'listNodes':_0x4e929c(0x59c),'reap':_0x4e929c(0x56f),'publishOwnRow':'async','deregisterSelf':_0x4e929c(0x56f),'setOwnMeta':'sync','noteListenAddr':_0x4e929c(0x59c),'hasDesired':_0x4e929c(0x59c),'getDesired':_0x4e929c(0x59c),'setDesired':_0x4e929c(0x56f),'listDesired':_0x4e929c(0x59c),'getCmd':'sync','bumpCmd':'async','processingStatusView':_0x4e929c(0x59c),'processorsView':'sync','clusterStatusView':_0x4e929c(0x59c),'nodesView':_0x4e929c(0x59c),'treeView':_0x4e929c(0x59c),'getProcess':_0x4e929c(0x59c),'runtimeProcessesView':'sync'};function _0x4b63ed(_0x3a3e3a){const _0x55575c=_0x4e929c,_0x1cf138={},_0x2466b7=_0x559dfa=>_0x559dfa&&typeof _0x559dfa===_0x55575c(0x559)&&!Array[_0x55575c(0x439)](_0x559dfa)&&typeof _0x559dfa['name']===_0x55575c(0x2b1)?_0x559dfa['name']:_0x559dfa;for(const _0xac1eb7 of _0x536bd5)_0x1cf138[_0xac1eb7]=_0xac1eb7===_0x55575c(0x488)?async(..._0x11d876)=>_0x3a3e3a[_0x55575c(0x210)](_0x55575c(0x447),null,_0xac1eb7,_0x11d876[_0x55575c(0x35e)](_0x2466b7),!![]):(..._0xf1e822)=>_0x3a3e3a[_0x55575c(0x210)]('meta',null,_0xac1eb7,_0xf1e822['map'](_0x2466b7),![]);return _0x1cf138;}function _0x359e4b(_0xb3c732){const _0x2ae744=_0x4e929c,_0x2ada15=_0x44ad24(_0xb3c732,_0x2ae744(0x63b),_0xe73981);return _0x2ada15;}function _0xe16201(_0x3af4a3){const _0x483382=_0x4e929c,_0x110ec0=()=>_0x3af4a3[_0x483382(0x63b)][_0x483382(0x852)](),_0x1c7427=_0x18ccae=>_0x18ccae[_0x483382(0x6b6)]?{..._0x18ccae,'_isFree':!![]}:_0x18ccae;return{async 'addLicense'(_0x2e5cab){const _0x420946=_0x483382;return _0x3af4a3[_0x420946(0x63b)][_0x420946(0x280)](_0x2e5cab);},async 'reload'(){},async 'recheck'(){},get 'active'(){const _0x96ad97=_0x483382,_0x4d7419=_0x110ec0();return _0x4d7419[_0x96ad97(0x6b6)]?null:_0x4d7419;},get 'effective'(){return _0x1c7427(_0x110ec0());},'hasLimit'(_0xde4264){const _0x2910a5=_0x483382,_0x1941cb=_0x110ec0();if(!_0x1941cb[_0x2910a5(0x54f)])return![];const _0x52ae57=_0x1941cb[_0x2910a5(0x5b8)]?.[_0xde4264];return!(_0x52ae57===null||_0x52ae57===undefined||_0x52ae57===0x0);},'isFeatureEnabled'(_0x3a2f1d){const _0x42a55c=_0x483382,_0x7232bc=_0x110ec0();return!_0x7232bc[_0x42a55c(0x54f)]||!!_0x7232bc[_0x42a55c(0x7f2)]?.[_0x3a2f1d];},'assertFeature'(_0x37be32){const _0x45b5e6=_0x483382,_0xccce06=_0x110ec0();if(!_0xccce06[_0x45b5e6(0x54f)]||_0xccce06[_0x45b5e6(0x7f2)]?.[_0x37be32])return;const {OKDBError:_0x33d01b}=requireErrors(),_0x48b193=_0xccce06['free']?_0x45b5e6(0x766)+_0x37be32+_0x45b5e6(0x728)+_0x37be32+_0x45b5e6(0x7f7):'Feature\x20not\x20licensed:\x20'+_0x37be32+_0x45b5e6(0x772)+_0x37be32+'\x22.';throw new _0x33d01b(_0x48b193,'LICENSE_FEATURE_DISABLED',{'feature':_0x37be32});},'assertLimit'(_0x3397e7,_0x5a960d){const _0x539fe9=_0x483382,_0x4d0519=_0x110ec0();if(!_0x4d0519[_0x539fe9(0x54f)])return;const _0x497e84=_0x4d0519[_0x539fe9(0x5b8)]?.[_0x3397e7];if(_0x497e84===null||_0x497e84===undefined||_0x497e84===0x0)return;if(_0x5a960d>=_0x497e84){const {OKDBError:_0x33e944}=requireErrors();throw new _0x33e944(_0x539fe9(0x41f)+_0x3397e7+'\x20('+_0x5a960d+'/'+_0x497e84+')',_0x539fe9(0x3d6),{'limit':_0x3397e7,'current':_0x5a960d,'max':_0x497e84});}},'listLicenses'(){return _0x3af4a3['licenses']['list']();},'getPins'(){const _0x4b762a=_0x483382;return _0x3af4a3[_0x4b762a(0x63b)][_0x4b762a(0x47e)]()[_0x4b762a(0x35e)](_0x26cb5e=>({'licenseId':_0x26cb5e['id'],'pin':_0x26cb5e[_0x4b762a(0x45d)]==='open'?null:_0x26cb5e['pin']}));}};}function _0x9acef4(_0x152b8b){const _0x15227a=_0x4e929c,_0x396a4d=_0x44ad24(_0x152b8b,_0x15227a(0x1ff),_0x15f1a5);Object[_0x15227a(0x1fd)](_0x396a4d,_0x15227a(0x283),{'get':()=>_0x152b8b[_0x15227a(0x210)](_0x15227a(0x1ff),null,_0x15227a(0x283),[],![])}),Object[_0x15227a(0x1fd)](_0x396a4d,_0x15227a(0x380),{'get':()=>_0x152b8b[_0x15227a(0x210)](_0x15227a(0x1ff),null,_0x15227a(0x380),[],![])}),_0x396a4d[_0x15227a(0x720)]=null;const _0x5ee31e=_0x396a4d[_0x15227a(0x2d5)];_0x396a4d[_0x15227a(0x2d5)]=_0x33840f=>{const _0x12da0a=_0x15227a;return _0x396a4d[_0x12da0a(0x720)]=_0x33840f,_0x5ee31e(_0x33840f);};const _0x53150e=()=>_0x396a4d[_0x15227a(0x616)]()[_0x15227a(0x35e)](_0xc1437d=>({'key':_0xc1437d[_0x15227a(0x42e)],'value':_0xc1437d,'version':0x1})),_0x530955={'name':'~processes','_sync':![],'_isOpen':!![],'isProcessStore':!![],'hasType':_0xded6fa=>_0xded6fa===_0x15227a(0x8ca),'getRange':_0x2a4502=>_0x2a4502===_0x15227a(0x8ca)?_0x53150e()[Symbol[_0x15227a(0x344)]]():[][Symbol[_0x15227a(0x344)]](),'getKeys':_0x589633=>_0x589633==='node'?_0x53150e()['map'](_0x1c1e2c=>_0x1c1e2c[_0x15227a(0x82f)])[Symbol[_0x15227a(0x344)]]():[][Symbol[_0x15227a(0x344)]](),'getValues':_0x4fa6ad=>_0x4fa6ad==='node'?_0x53150e()[_0x15227a(0x35e)](_0x4e5c26=>_0x4e5c26['value'])[Symbol['iterator']]():[][Symbol[_0x15227a(0x344)]](),'get':(_0x58e5c8,_0x202925)=>_0x58e5c8==='node'?_0x53150e()[_0x15227a(0x73d)](_0xda3c07=>_0xda3c07[_0x15227a(0x82f)]===_0x202925)?.[_0x15227a(0x2ef)]:undefined,'getCount':_0x364db6=>_0x364db6===_0x15227a(0x8ca)?_0x53150e()[_0x15227a(0x68a)]:0x0};Object[_0x15227a(0x1fd)](_0x396a4d,_0x15227a(0x34e),{'get':()=>_0x152b8b[_0x15227a(0x210)](_0x15227a(0x1ff),null,_0x15227a(0x1f4),[],![])?_0x530955:null});const _0x11db37=_0x396a4d[_0x15227a(0x260)];_0x396a4d['open']=async _0x5bc92b=>{return await _0x11db37(_0x5bc92b),_0x396a4d['_statusEnv'];},_0x396a4d[_0x15227a(0x68c)]=()=>_0x152b8b[_0x15227a(0x210)](_0x15227a(0x1ff),null,_0x15227a(0x4b6),[],!![]);const {RawDb:_0x303445}=requireRawdb();return Object['defineProperty'](_0x396a4d,'_desired',{'get':()=>_0x152b8b[_0x15227a(0x34d)]?_0x396a4d['__desired']||=new _0x303445(_0x152b8b[_0x15227a(0x34d)],_0x15227a(0x77b)):undefined}),Object['defineProperty'](_0x396a4d,_0x15227a(0x273),{'get':()=>_0x152b8b['_systemEnv']?_0x396a4d[_0x15227a(0x8d8)]||=new _0x303445(_0x152b8b[_0x15227a(0x34d)],_0x15227a(0x6de)):undefined}),_0x396a4d[_0x15227a(0x4a2)]=()=>_0x152b8b[_0x15227a(0x210)](_0x15227a(0x1ff),null,_0x15227a(0x4a2),[],![]),Object[_0x15227a(0x1fd)](_0x396a4d,_0x15227a(0x632),{'get':()=>_0x152b8b[_0x15227a(0x210)]('processes',null,_0x15227a(0x675),[],![])}),Object[_0x15227a(0x1fd)](_0x396a4d,_0x15227a(0x7c6),{'get':()=>_0x152b8b[_0x15227a(0x210)](_0x15227a(0x1ff),null,_0x15227a(0x368),[],![])}),_0x396a4d['_buildOwnRow']=()=>_0x152b8b[_0x15227a(0x210)](_0x15227a(0x1ff),null,_0x15227a(0x71c),[],![]),_0x396a4d['_emitProc']=(_0x551b72,_0x3c5753)=>_0x152b8b['_call'](_0x15227a(0x1ff),null,'emitProc',[_0x551b72,_0x3c5753],![]),_0x396a4d;}return sys={'makeMeta':_0x4b63ed,'makeLicenses':_0x359e4b,'makeLicenseChecker':_0xe16201,'makeProcesses':_0x9acef4},sys;}var okdbLogger,hasRequiredOkdbLogger;function requireOkdbLogger(){const _0x4d6aed=_0x5c70f8;if(hasRequiredOkdbLogger)return okdbLogger;hasRequiredOkdbLogger=0x1;const _0x4e7c74={'debug':0xa,'info':0x14,'warn':0x1e,'error':0x28};class _0x137bdd{constructor(_0xcd03b5){const _0x3e336d=_0x52a3;this[_0x3e336d(0x61e)]=_0xcd03b5,this['_sinks']=new Set(),this['_meta']={};}[_0x4d6aed(0x651)](_0x5574a7){const _0x437d0b=_0x4d6aed,_0x96e3eb=new _0x137bdd(this[_0x437d0b(0x61e)]);return _0x96e3eb[_0x437d0b(0x1d8)]=this[_0x437d0b(0x1d8)],_0x96e3eb['_meta']={...this['_meta'],..._0x5574a7},_0x96e3eb;}['attach'](_0x150dce){const _0x638f2e=_0x4d6aed;return this['_sinks']['add'](_0x150dce),()=>this['_sinks'][_0x638f2e(0x2cb)](_0x150dce);}['attachConsole'](){const _0x508cf4=_0x4d6aed,_0x34cda7=_0x4e7c74[process.env.OKDB_LOG_LEVEL]??_0x4e7c74[_0x508cf4(0x7e2)];return this[_0x508cf4(0x806)]=this[_0x508cf4(0x29a)](({level:_0x1587f4,msg:_0xcfc8ed,meta:_0x158339,context:_0x3c766d,ts:_0x5aed93})=>{const _0x1f04af=_0x508cf4;if((_0x4e7c74[_0x1587f4]??_0x4e7c74['info'])<_0x34cda7)return;if(_0x158339?.[_0x1f04af(0x895)]===_0x1f04af(0x7b5)&&(_0x1587f4===_0x1f04af(0x7e2)||_0x1587f4===_0x1f04af(0x649)))return;const _0x26bc4c=_0x1587f4==='error'?console[_0x1f04af(0x62e)]:_0x1587f4===_0x1f04af(0x2f1)?console[_0x1f04af(0x2f1)]:_0x1587f4===_0x1f04af(0x7e2)?console[_0x1f04af(0x7e2)]:console[_0x1f04af(0x58d)],_0x50b432=_0x158339&&Object[_0x1f04af(0x4ac)](_0x158339)[_0x1f04af(0x68a)]>0x0;_0x50b432||_0x3c766d!==undefined?_0x26bc4c(new Date(_0x5aed93)[_0x1f04af(0x5c0)](),_0xcfc8ed,..._0x50b432?[_0x158339]:[],..._0x3c766d!==undefined?[_0x3c766d]:[]):_0x26bc4c(new Date(_0x5aed93)[_0x1f04af(0x5c0)](),_0xcfc8ed);}),this['_detachConsole'];}['detachConsole'](){const _0x5bc9c5=_0x4d6aed;this[_0x5bc9c5(0x806)]&&(this[_0x5bc9c5(0x806)](),this[_0x5bc9c5(0x806)]=null);}['attachOKDB'](_0xecba8,_0x5d79fe){const _0x340c82=_0x4d6aed,_0x1f06fc=require$$0$4,_0x2a7c30=0x1f4,_0x2998ef=Number(process.env.OKDB_LOG_FLUSH_MS)||0x3e8;let _0x4e6b39=[],_0x28e52f=0x0,_0x2542fb=null;const _0x4842ca=()=>{const _0x51aad3=_0x52a3;_0x2542fb=null;if(_0x4e6b39['length']===0x0)return;const _0x1d48c7=_0x4e6b39;_0x4e6b39=[],_0x28e52f>0x0&&(_0x1d48c7[_0x51aad3(0x28d)]({'ts':Date[_0x51aad3(0x8cc)](),'level':'warn','msg':_0x51aad3(0x552)+_0x28e52f+_0x51aad3(0x796)+(_0x28e52f===0x1?'y':_0x51aad3(0x36d))+_0x51aad3(0x26c),'feature':_0x51aad3(0x58d),'node':_0x5d79fe,'context':null}),_0x28e52f=0x0),_0xecba8['txn'](_0x25d605=>{const _0x42a6fb=_0x51aad3;for(const _0x57fb93 of _0x1d48c7)_0x25d605[_0x42a6fb(0x253)](_0x42a6fb(0x5fb),_0x1f06fc[_0x42a6fb(0x809)](),_0x57fb93);})[_0x51aad3(0x6d7)](()=>{});},_0x2402fd=this[_0x340c82(0x29a)](({level:_0x3c2392,msg:_0x37b7cc,meta:_0x462e99,context:_0x5f1b01,ts:_0x1e7367})=>{const _0x4a4c81=_0x340c82;if(_0x3c2392===_0x4a4c81(0x649))return;_0x4e6b39[_0x4a4c81(0x68a)]>=_0x2a7c30&&(_0x28e52f++,_0x4e6b39[_0x4a4c81(0x812)]()),_0x4e6b39['push']({'ts':_0x1e7367,'level':_0x3c2392,'msg':_0x37b7cc,'feature':_0x462e99?.[_0x4a4c81(0x895)]??_0x462e99?.['module']??null,'node':_0x5d79fe,'context':_0x5f1b01??null}),!_0x2542fb&&(_0x2542fb=setTimeout(_0x4842ca,_0x2998ef),_0x2542fb[_0x4a4c81(0x32c)]?.());});return()=>{_0x2402fd();if(_0x2542fb)clearTimeout(_0x2542fb);_0x4842ca();};}[_0x4d6aed(0x7c8)](_0x11f2b2,_0x169c59,_0x25f8f2){const _0xafd083=_0x4d6aed;_0x169c59 instanceof Error&&(_0x25f8f2={'message':_0x169c59[_0xafd083(0x211)],'stack':_0x169c59[_0xafd083(0x221)],..._0x25f8f2},_0x169c59=_0x169c59['message']);const _0x4691bc={'level':_0x11f2b2,'msg':_0x169c59,'meta':{...this[_0xafd083(0x53e)]},'context':_0x25f8f2,'ts':Date['now']()};try{this['okdb'][_0xafd083(0x4cb)]['emit'](_0xafd083(0x58d),_0x4691bc);}catch{}for(const _0xe57b3 of this[_0xafd083(0x1d8)]){try{_0xe57b3(_0x4691bc);}catch{}}}['ingest'](_0x13e03e){const _0x51571b=_0x4d6aed;try{this[_0x51571b(0x61e)]?.[_0x51571b(0x4cb)]?.[_0x51571b(0x5a2)](_0x51571b(0x58d),_0x13e03e);}catch{}for(const _0x4c2f88 of this[_0x51571b(0x1d8)]){try{_0x4c2f88(_0x13e03e);}catch{}}}[_0x4d6aed(0x7e2)](_0x1fe855,_0x4a28ee){const _0x9a7951=_0x4d6aed;this[_0x9a7951(0x7c8)]('info',_0x1fe855,_0x4a28ee);}[_0x4d6aed(0x2f1)](_0x46b51f,_0x16741d){const _0x15b1c0=_0x4d6aed;this['_emit'](_0x15b1c0(0x2f1),_0x46b51f,_0x16741d);}[_0x4d6aed(0x62e)](_0x3f7a66,_0x2ecc2e){const _0x26cb51=_0x4d6aed;this[_0x26cb51(0x7c8)](_0x26cb51(0x62e),_0x3f7a66,_0x2ecc2e);}[_0x4d6aed(0x649)](_0x573bc1,_0x4bb215){const _0x16eddd=_0x4d6aed;this[_0x16eddd(0x7c8)](_0x16eddd(0x649),_0x573bc1,_0x4bb215);}}return okdbLogger=_0x137bdd,okdbLogger;}var okdbPlugins,hasRequiredOkdbPlugins;function requireOkdbPlugins(){const _0x24c1ff=_0x5c70f8;if(hasRequiredOkdbPlugins)return okdbPlugins;hasRequiredOkdbPlugins=0x1;const {OKDB_STATE:_0x18f631}=requireOkdbEnums(),{OKDBError:_0x2563e6}=requireOkdbError();class _0x2ecbcf{constructor(_0x1ea180){const _0x52a747=_0x52a3;this[_0x52a747(0x61e)]=_0x1ea180,this[_0x52a747(0x477)]=[];}[_0x24c1ff(0x811)](_0x2e7fd9,_0x5281a0){const _0x2b046f=_0x24c1ff;if(this[_0x2b046f(0x61e)][_0x2b046f(0x74f)]!==_0x18f631[_0x2b046f(0x890)])throw new _0x2563e6(_0x2b046f(0x5b3),_0x2b046f(0x58e),{'state':this['okdb'][_0x2b046f(0x74f)]});if(!_0x2e7fd9[_0x2b046f(0x54b)])throw new _0x2563e6('Plugin\x20must\x20have\x20a\x20name',_0x2b046f(0x332),{'plugin':_0x2e7fd9[_0x2b046f(0x54b)]});const _0x2488c3=_0x2e7fd9['requires']??[];for(const _0x23ac27 of _0x2488c3){if(!this[_0x2b046f(0x477)][_0x2b046f(0x224)](_0x5c0d7b=>_0x5c0d7b[_0x2b046f(0x882)][_0x2b046f(0x54b)]===_0x23ac27))throw new _0x2563e6(_0x2b046f(0x6e3)+_0x23ac27+_0x2b046f(0x7b8)+_0x2e7fd9[_0x2b046f(0x54b)]+')',_0x2b046f(0x553),{'required':_0x23ac27});}if(this[_0x2b046f(0x477)][_0x2b046f(0x73d)](_0x3be180=>_0x3be180[_0x2b046f(0x882)][_0x2b046f(0x54b)]===_0x2e7fd9[_0x2b046f(0x54b)]))throw new _0x2563e6('Plugin\x20\x27'+_0x2e7fd9[_0x2b046f(0x54b)]+_0x2b046f(0x276),_0x2b046f(0x594),{'plugin':_0x2e7fd9['name']});if(_0x2e7fd9['name']in this[_0x2b046f(0x61e)])throw new _0x2563e6(_0x2b046f(0x3bc)+_0x2e7fd9['name']+_0x2b046f(0x7f4),_0x2b046f(0x5e3));const _0x5bb25d=_0x2e7fd9[_0x2b046f(0x811)](this[_0x2b046f(0x61e)],_0x5281a0);if(!_0x5bb25d||typeof _0x5bb25d!==_0x2b046f(0x559))throw new _0x2563e6('Plugin\x20\x27'+_0x2e7fd9['name']+_0x2b046f(0x892),_0x2b046f(0x332),{'plugin':_0x2e7fd9[_0x2b046f(0x54b)]});this[_0x2b046f(0x477)][_0x2b046f(0x28d)]({'module':_0x2e7fd9,'options':_0x5281a0,'instance':_0x5bb25d});}[_0x24c1ff(0x620)]=[];async[_0x24c1ff(0x45c)](){const _0x543fa3=_0x24c1ff;try{for(const _0x43bd0c of this[_0x543fa3(0x477)]){await _0x43bd0c['instance'][_0x543fa3(0x45c)]?.(this[_0x543fa3(0x61e)]),this[_0x543fa3(0x620)]['push'](_0x43bd0c);}}catch(_0x3d299d){await this['stop']()[_0x543fa3(0x6d7)](()=>{});throw _0x3d299d;}}async[_0x24c1ff(0x1f1)](){const _0x2543bf=_0x24c1ff,_0x391398=this[_0x2543bf(0x620)][_0x2543bf(0x641)]();this[_0x2543bf(0x620)]=[];let _0xd7d970=null;for(const _0x352556 of _0x391398){try{await _0x352556[_0x2543bf(0x327)]['stop']?.(this['okdb']);}catch(_0x4ffd52){_0xd7d970??=_0x4ffd52;}}if(_0xd7d970)throw _0xd7d970;}}return okdbPlugins=_0x2ecbcf,okdbPlugins;}var statics,hasRequiredStatics;function requireStatics(){const _0x1b4a05=_0x5c70f8;if(hasRequiredStatics)return statics;hasRequiredStatics=0x1;const _0x3cb465={'maxDbs':0x400,'pageSize':0x1000,'compression':!![],'encryptionKey':undefined,'mapSize':0x100000000,'durability':_0x1b4a05(0x6ac)},_0x1ce2e5=new Set(['maxDbs',_0x1b4a05(0x780),'compression',_0x1b4a05(0x32b),'encryptionKeys','mapSize',_0x1b4a05(0x8a2),_0x1b4a05(0x5d9),_0x1b4a05(0x533),_0x1b4a05(0x7f0),_0x1b4a05(0x59c),_0x1b4a05(0x622),_0x1b4a05(0x7b5),_0x1b4a05(0x58f),'mcp',_0x1b4a05(0x89b),_0x1b4a05(0x58d),_0x1b4a05(0x4f0),_0x1b4a05(0x7cd),_0x1b4a05(0x655),_0x1b4a05(0x562),_0x1b4a05(0x402),'processes',_0x1b4a05(0x444),_0x1b4a05(0x7a5),_0x1b4a05(0x7ed),_0x1b4a05(0x25e),_0x1b4a05(0x649),_0x1b4a05(0x2c4),_0x1b4a05(0x423)]),_0x5ea3eb={'http':_0x1b4a05(0x777)};return statics={'defaults':_0x3cb465,'KNOWN_OPTIONS':_0x1ce2e5,'_OPTION_HINTS':_0x5ea3eb},statics;}var licenseConfig,hasRequiredLicenseConfig;function requireLicenseConfig(){const _0x5e43f0=_0x5c70f8;if(hasRequiredLicenseConfig)return licenseConfig;hasRequiredLicenseConfig=0x1;const _0x5db1e3=require$$0$2,_0x4f0273=_0x5e43f0(0x6aa),_0x3e2aa3=_0x5db1e3['createHash'](_0x5e43f0(0x5bc))[_0x5e43f0(0x5b4)](_0x5db1e3['createPublicKey'](_0x4f0273)['export']({'type':_0x5e43f0(0x2ec),'format':_0x5e43f0(0x397)}))[_0x5e43f0(0x4f7)](_0x5e43f0(0x525))[_0x5e43f0(0x1f7)](0x0,0x10),_0x47456d={'LICENSED_BUILD':_0x5e43f0(0x43b),'PUBLIC_KEY_PEM':_0x4f0273,'PUB_FINGERPRINT':_0x3e2aa3,'LICENSE_EXPIRED_ACTION':_0x5e43f0(0x58d)};return licenseConfig={'_C':_0x47456d,'PUBLIC_KEY_PEM':_0x4f0273,'PUB_FINGERPRINT':_0x3e2aa3},licenseConfig;}var okdbSubscriptionsStore={'exports':{}},okdbQueryFilter,hasRequiredOkdbQueryFilter;function requireOkdbQueryFilter(){const _0x59d762=_0x5c70f8;if(hasRequiredOkdbQueryFilter)return okdbQueryFilter;hasRequiredOkdbQueryFilter=0x1;const _0x2b829c=require$$0$5,{OKDBError:_0x47b17a}=requireOkdbError(),_0x2d4227=[_0x59d762(0x48b),'$ne','$gt',_0x59d762(0x7f9),_0x59d762(0x8ad),'$lte',_0x59d762(0x5f3),_0x59d762(0x20a),_0x59d762(0x6e9),_0x59d762(0x373),_0x59d762(0x381),_0x59d762(0x508),_0x59d762(0x4ce),_0x59d762(0x328),'$type',_0x59d762(0x51a),_0x59d762(0x452),'$and',_0x59d762(0x4ed),_0x59d762(0x39e)],_0x23c536=[_0x59d762(0x77a)];function _0x310881(_0x3a9ea2){return()=>{const _0x1207c9=_0x52a3,_0x24cd0d=new _0x47b17a(_0x1207c9(0x39f)+_0x3a9ea2+_0x1207c9(0x391),_0x1207c9(0x55a),{'operator':_0x3a9ea2});_0x24cd0d[_0x1207c9(0x717)]=0x190;throw _0x24cd0d;};}const _0x3f734a=Object[_0x59d762(0x202)]({...Object[_0x59d762(0x24a)](_0x2d4227[_0x59d762(0x35e)](_0x48c387=>[_0x48c387,_0x2b829c[_0x48c387]])),...Object[_0x59d762(0x24a)](_0x23c536[_0x59d762(0x35e)](_0x5cf236=>[_0x5cf236,_0x310881(_0x5cf236)]))});function _0x2915e8(_0x11b4dd){const _0x21d358=_0x59d762;return _0x2b829c[_0x21d358(0x693)](_0x11b4dd,{'operations':_0x3f734a});}function _0x4a1536(_0x13a735){const _0x5a9b02=_0x59d762;if(_0x13a735==null)return;try{_0x2915e8(_0x13a735);}catch(_0x324c2e){if(_0x324c2e?.[_0x5a9b02(0x50e)]===_0x5a9b02(0x55a))throw _0x324c2e;}}return okdbQueryFilter={'compileFilter':_0x2915e8,'assertFilterAllowed':_0x4a1536,'ALLOWED_OPERATORS':_0x2d4227,'FORBIDDEN_OPERATORS':_0x23c536},okdbQueryFilter;}var okdbEnvRefs,hasRequiredOkdbEnvRefs;function requireOkdbEnvRefs(){const _0x1e0b59=_0x5c70f8;if(hasRequiredOkdbEnvRefs)return okdbEnvRefs;hasRequiredOkdbEnvRefs=0x1;const {CHANGE_ACTIONS:_0x128f32,EVENTS:_0x1a181a}=requireOkdbEnums(),{OKDBError:_0x41d8df,OKDBForeignKeyDeleteError:_0x151bb2}=requireOkdbError(),_0x23fc91=_0x1e0b59(0x8e9),_0x7f3f65=new Set([_0x1e0b59(0x393),_0x1e0b59(0x2f9),_0x1e0b59(0x5ad),'restrict']);function _0x50ce29(_0x49300d,_0x18508a){const _0x20d2f5=_0x1e0b59;if(_0x49300d==null||!_0x18508a)return undefined;const _0x213cac=_0x18508a[_0x20d2f5(0x5e4)]('.');let _0x343fbd=_0x49300d;for(const _0x49bb9f of _0x213cac){if(_0x343fbd==null||typeof _0x343fbd!=='object'||!(_0x49bb9f in _0x343fbd))return undefined;_0x343fbd=_0x343fbd[_0x49bb9f];}return _0x343fbd;}function _0x29690d(_0x23766d,_0xddc424,_0x457987){const _0x3dfdf7=_0x1e0b59,_0x57b4ee=_0xddc424[_0x3dfdf7(0x5e4)]('.'),_0x22e442={..._0x23766d};let _0x31626c=_0x22e442;for(let _0x5de999=0x0;_0x5de999<_0x57b4ee[_0x3dfdf7(0x68a)]-0x1;_0x5de999++){_0x31626c[_0x57b4ee[_0x5de999]]=_0x31626c[_0x57b4ee[_0x5de999]]!=null?{..._0x31626c[_0x57b4ee[_0x5de999]]}:{},_0x31626c=_0x31626c[_0x57b4ee[_0x5de999]];}return _0x31626c[_0x57b4ee[_0x57b4ee['length']-0x1]]=_0x457987,_0x22e442;}function _0x42491a(_0x46e2e2,_0x7d32c9,_0x3bccc9,_0x2e7fa6,_0x3c5173){return[_0x46e2e2,_0x7d32c9,_0x3bccc9,_0x2e7fa6,_0x3c5173];}function _0x252b25(_0x41aee1){const _0x1d2299=_0x1e0b59;return typeof _0x41aee1==='string'||typeof _0x41aee1===_0x1d2299(0x6e7);}function _0x477949(_0x3a856c,_0x42cbd3){const _0x556170=_0x1e0b59;return JSON[_0x556170(0x35a)]([_0x3a856c,_0x42cbd3]);}function*_0x37c6a2(_0x36c829,_0x29954d,_0x5a0d84){const _0x65c549=_0x1e0b59,_0xb6cc96=_0x5a0d84!==undefined;for(const {key:_0x4f3c7e}of _0x36c829[_0x65c549(0x3ee)]({'start':_0xb6cc96?[_0x29954d,_0x5a0d84]:[_0x29954d]})){if(!Array[_0x65c549(0x439)](_0x4f3c7e))continue;if(_0x4f3c7e[0x0]!==_0x29954d||_0xb6cc96&&_0x4f3c7e[0x1]!==_0x5a0d84)break;yield _0x4f3c7e;}}function _0x33d7ce(_0x4da01a,_0x891bca='',_0x16b434=null){const _0x4b24cb=_0x1e0b59,_0x339dc7=[];if(!_0x4da01a||typeof _0x4da01a!==_0x4b24cb(0x559))return _0x339dc7;if(!_0x16b434)_0x16b434=_0x4da01a;if(_0x4da01a[_0x4b24cb(0x486)]){const _0x362bcc=_0x4da01a[_0x4b24cb(0x486)][_0x4b24cb(0x862)](/^#\/\$defs\/(.+)$/);if(_0x362bcc&&_0x16b434?.[_0x4b24cb(0x420)]?.[_0x362bcc[0x1]])return _0x33d7ce(_0x16b434[_0x4b24cb(0x420)][_0x362bcc[0x1]],_0x891bca,_0x16b434);return _0x339dc7;}if(_0x4da01a[_0x4b24cb(0x4bb)]&&typeof _0x4da01a[_0x4b24cb(0x4bb)]===_0x4b24cb(0x559)&&_0x4da01a[_0x4b24cb(0x4bb)][_0x4b24cb(0x45d)]){const _0x5bff1d=_0x4da01a[_0x4b24cb(0x4bb)][_0x4b24cb(0x700)]||_0x4b24cb(0x393);if(!_0x7f3f65[_0x4b24cb(0x571)](_0x5bff1d))throw new _0x41d8df(_0x4b24cb(0x5f9)+_0x5bff1d+_0x4b24cb(0x830)+(_0x891bca||'root')+_0x4b24cb(0x57c)+[..._0x7f3f65]['join'](',\x20'),_0x4b24cb(0x870));_0x339dc7[_0x4b24cb(0x28d)]({'fieldPath':_0x891bca,'targetType':_0x4da01a[_0x4b24cb(0x4bb)]['type'],'onDelete':_0x5bff1d});}if(_0x4da01a['properties'])for(const [_0x1d0b5e,_0x272175]of Object[_0x4b24cb(0x719)](_0x4da01a[_0x4b24cb(0x59f)])){const _0x331ee7=_0x891bca?_0x891bca+'.'+_0x1d0b5e:_0x1d0b5e;_0x339dc7[_0x4b24cb(0x28d)](..._0x33d7ce(_0x272175,_0x331ee7,_0x16b434));}return _0x339dc7;}function _0x3b247b(_0x52ee2a){const _0x2ecf8f=_0x1e0b59,_0x10bc3e=new Map(),_0x1f1e05=new Map();for(const _0x507236 of _0x52ee2a[_0x2ecf8f(0x695)]()){if(_0x507236['startsWith']('~'))continue;const _0x5584fc=_0x52ee2a[_0x2ecf8f(0x394)][_0x2ecf8f(0x309)](_0x507236);if(!_0x5584fc?.[_0x2ecf8f(0x65f)]?.[_0x2ecf8f(0x548)])continue;let _0x2a9986;try{_0x2a9986=_0x33d7ce(_0x5584fc[_0x2ecf8f(0x65f)][_0x2ecf8f(0x548)]);}catch{continue;}if(_0x2a9986[_0x2ecf8f(0x68a)]>0x0){_0x10bc3e['set'](_0x507236,_0x2a9986);for(const _0x3a7fd3 of _0x2a9986){if(!_0x1f1e05[_0x2ecf8f(0x571)](_0x3a7fd3[_0x2ecf8f(0x469)]))_0x1f1e05[_0x2ecf8f(0x63f)](_0x3a7fd3[_0x2ecf8f(0x469)],[]);_0x1f1e05[_0x2ecf8f(0x309)](_0x3a7fd3[_0x2ecf8f(0x469)])[_0x2ecf8f(0x28d)]({'sourceType':_0x507236,'fieldPath':_0x3a7fd3[_0x2ecf8f(0x5e7)],'onDelete':_0x3a7fd3[_0x2ecf8f(0x700)]});}}}_0x52ee2a[_0x2ecf8f(0x242)]={'outgoing':_0x10bc3e,'incoming':_0x1f1e05};if(_0x10bc3e[_0x2ecf8f(0x8d2)]>0x0)_0x43c18a(_0x52ee2a);}function _0x2644e9(_0x58066c,_0x4b33ed){const _0x4bdb6b=_0x1e0b59;return _0x58066c[_0x4bdb6b(0x242)][_0x4bdb6b(0x50a)]['get'](_0x4b33ed)||[];}function _0x26fddb(_0x650dbe,_0x54feb1){const _0x56f459=_0x1e0b59;return _0x650dbe[_0x56f459(0x242)]['incoming'][_0x56f459(0x309)](_0x54feb1)||[];}function _0x43c18a(_0x25b871){const _0x400fd4=_0x1e0b59;if(_0x25b871[_0x400fd4(0x3e9)])return _0x25b871[_0x400fd4(0x3e9)];return _0x25b871[_0x400fd4(0x3e9)]=_0x25b871['db'][_0x400fd4(0x863)](_0x400fd4(0x443),{'dupSort':![]}),_0x25b871[_0x400fd4(0x3e9)];}function _0x45e764(_0x156b14,_0x1f2c73,_0x2c25ff,_0x4c4873,_0x16c58f){const _0x18e7a9=_0x1e0b59,_0x5252e4=_0x2644e9(_0x156b14,_0x1f2c73);if(_0x5252e4[_0x18e7a9(0x68a)]===0x0)return;const _0x482c46=_0x43c18a(_0x156b14);for(const _0x5a8044 of _0x5252e4){const _0x13c396=_0x16c58f!=null?_0x50ce29(_0x16c58f,_0x5a8044[_0x18e7a9(0x5e7)]):undefined,_0x4140d4=_0x4c4873!=null?_0x50ce29(_0x4c4873,_0x5a8044[_0x18e7a9(0x5e7)]):undefined;if(_0x13c396===_0x4140d4)continue;_0x252b25(_0x13c396)&&_0x482c46[_0x18e7a9(0x3ac)](_0x42491a(_0x5a8044[_0x18e7a9(0x469)],_0x13c396,_0x1f2c73,_0x2c25ff,_0x5a8044[_0x18e7a9(0x5e7)])),_0x252b25(_0x4140d4)&&_0x482c46['putSync'](_0x42491a(_0x5a8044[_0x18e7a9(0x469)],_0x4140d4,_0x1f2c73,_0x2c25ff,_0x5a8044[_0x18e7a9(0x5e7)]),0x1);}}function _0x455ad3(_0x4235fa,_0x424538,_0x5e990a,_0x144cc3){const _0x470ef1=_0x1e0b59,_0x32ad47=_0x2644e9(_0x4235fa,_0x424538);if(_0x32ad47[_0x470ef1(0x68a)]===0x0)return;const _0x44b4c0=_0x43c18a(_0x4235fa);for(const _0xb6db9f of _0x32ad47){const _0x19a723=_0x144cc3!=null?_0x50ce29(_0x144cc3,_0xb6db9f[_0x470ef1(0x5e7)]):undefined;_0x252b25(_0x19a723)&&_0x44b4c0['removeSync'](_0x42491a(_0xb6db9f[_0x470ef1(0x469)],_0x19a723,_0x424538,_0x5e990a,_0xb6db9f[_0x470ef1(0x5e7)]));}}function _0x408a31(_0x38364d,_0x4e69b6,_0x1732c2,_0x3eb8af){const _0x31220c=_0x1e0b59,_0xf960e2=_0x2644e9(_0x38364d,_0x4e69b6);if(_0xf960e2[_0x31220c(0x68a)]===0x0)return[];const _0xb3c0b1=[];for(const _0x126621 of _0xf960e2){const _0x4e9021=_0x50ce29(_0x3eb8af,_0x126621['fieldPath']);if(_0x4e9021==null)continue;if(!_0x38364d[_0x31220c(0x414)](_0x126621[_0x31220c(0x469)])){_0xb3c0b1[_0x31220c(0x28d)]({'fieldPath':_0x126621[_0x31220c(0x5e7)],'targetType':_0x126621[_0x31220c(0x469)],'targetKey':_0x4e9021,'message':_0x31220c(0x352)+_0x126621[_0x31220c(0x469)]+'\x27\x20does\x20not\x20exist'});continue;}const _0x4cf2e2=_0x38364d['_getType'](_0x126621[_0x31220c(0x469)])[_0x31220c(0x6a7)];!_0x4cf2e2[_0x31220c(0x3a6)](_0x4e9021)&&_0xb3c0b1['push']({'fieldPath':_0x126621['fieldPath'],'targetType':_0x126621[_0x31220c(0x469)],'targetKey':_0x4e9021,'message':'Referenced\x20key\x20\x27'+_0x4e9021+_0x31220c(0x564)+_0x126621[_0x31220c(0x469)]+'\x27'});}return _0xb3c0b1;}function _0x303b77(_0x54ba19,_0x117be3,_0x4984d7,_0x2a750,_0x1048dd,{timestamp:_0x390b1d,origin:_0x50dd5f,_cascadeVisited:_0x18cafd}){const _0x58f5d3=_0x1e0b59,_0xa6e4f=_0x26fddb(_0x54ba19,_0x4984d7);if(_0xa6e4f[_0x58f5d3(0x68a)]===0x0)return;const _0x414bab=_0x43c18a(_0x54ba19),_0x1d75fd=[];for(const [,,_0x2598b1,_0x16689b,_0x3a4c11]of _0x37c6a2(_0x414bab,_0x4984d7,_0x2a750)){_0x1d75fd[_0x58f5d3(0x28d)]({'sourceType':_0x2598b1,'sourceKey':_0x16689b,'fieldPath':_0x3a4c11});}if(_0x1d75fd[_0x58f5d3(0x68a)]===0x0)return;for(const _0x26561f of _0x1d75fd){const _0x42488a=_0xa6e4f[_0x58f5d3(0x73d)](_0x491708=>_0x491708['sourceType']===_0x26561f[_0x58f5d3(0x816)]&&_0x491708[_0x58f5d3(0x5e7)]===_0x26561f[_0x58f5d3(0x5e7)]),_0x3620df=_0x42488a?.[_0x58f5d3(0x700)]||_0x58f5d3(0x393);switch(_0x3620df){case _0x58f5d3(0x311):{if(_0x50dd5f===null)throw new _0x151bb2(_0x4984d7,_0x2a750,_0x1d75fd[_0x58f5d3(0x4e1)](_0x548639=>{const _0x5bd867=_0x58f5d3,_0x3303c4=_0xa6e4f[_0x5bd867(0x73d)](_0x398113=>_0x398113[_0x5bd867(0x816)]===_0x548639[_0x5bd867(0x816)]&&_0x398113[_0x5bd867(0x5e7)]===_0x548639['fieldPath']);return(_0x3303c4?.[_0x5bd867(0x700)]||_0x5bd867(0x393))===_0x5bd867(0x311);}));break;}case _0x58f5d3(0x2f9):{const _0x4f1f75=_0x477949(_0x26561f[_0x58f5d3(0x816)],_0x26561f[_0x58f5d3(0x713)]);if(_0x18cafd[_0x58f5d3(0x571)](_0x4f1f75))continue;_0x54ba19[_0x58f5d3(0x3c8)](_0x26561f[_0x58f5d3(0x816)])['data'][_0x58f5d3(0x3a6)](_0x26561f[_0x58f5d3(0x713)])&&_0x54ba19[_0x58f5d3(0x46d)](_0x117be3,_0x26561f[_0x58f5d3(0x816)],_0x26561f[_0x58f5d3(0x713)],{'timestamp':_0x390b1d,'origin':_0x50dd5f,'_cascadeVisited':_0x18cafd});break;}case _0x58f5d3(0x5ad):{const _0x4b0f05=_0x54ba19[_0x58f5d3(0x3c8)](_0x26561f[_0x58f5d3(0x816)])[_0x58f5d3(0x6a7)],_0x11b488=_0x4b0f05[_0x58f5d3(0x3a0)](_0x26561f[_0x58f5d3(0x713)]);if(_0x11b488){const _0x19aadc=_0x29690d(_0x11b488[_0x58f5d3(0x2ef)],_0x26561f[_0x58f5d3(0x5e7)],null);_0x54ba19[_0x58f5d3(0x77c)](_0x117be3,_0x58f5d3(0x253),_0x26561f['sourceType'],_0x26561f[_0x58f5d3(0x713)],_0x19aadc,{'timestamp':_0x390b1d,'origin':_0x50dd5f,'_cascading':!![]});}break;}}}}function _0xe0c25d(_0x5820f6){const _0x607da1=_0x1e0b59;!_0x5820f6[_0x607da1(0x414)](_0x23fc91)&&_0x5820f6[_0x607da1(0x4ad)](_0x23fc91);}function _0xa49407(_0x4ad5f7,_0x46477c,_0xd6c38f,_0x58d61f,_0x567bb0,_0x2b0945,_0x1beb8d,{timestamp:timestamp=Date[_0x1e0b59(0x8cc)](),origin:origin=null}={}){const _0x1e4fa3=_0x1e0b59;_0xe0c25d(_0x4ad5f7);const _0x397d7c=_0xd6c38f+'@'+_0x58d61f+'@'+_0x567bb0,_0x3d037f={'sourceType':_0xd6c38f,'sourceKey':_0x58d61f,'fieldPath':_0x567bb0,'targetType':_0x2b0945,'targetKey':_0x1beb8d,'timestamp':timestamp,'origin':origin},_0x42d59c=_0x4ad5f7[_0x1e4fa3(0x3c8)](_0x23fc91)[_0x1e4fa3(0x6a7)],_0x5b89e3=_0x42d59c[_0x1e4fa3(0x3a0)](_0x397d7c),_0x1e6e3f=_0x5b89e3?_0x5b89e3[_0x1e4fa3(0x1d0)]+0x1:0x1;_0x42d59c[_0x1e4fa3(0x512)](_0x397d7c,_0x3d037f,_0x1e6e3f),_0x4ad5f7[_0x1e4fa3(0x52d)]({'id':_0x1e4fa3(0x1c1)+_0x23fc91+'@'+_0x397d7c,'type':_0x23fc91,'key':_0x397d7c,'action':_0x128f32[_0x1e4fa3(0x694)],'timestamp':timestamp,'txnId':_0x46477c?.['id'],'origin':origin},_0x5b89e3?.[_0x1e4fa3(0x2ef)],_0x3d037f),_0x4ad5f7[_0x1e4fa3(0x4cb)]['emit'](_0x1a181a['REF_VIOLATION'],{'sourceType':_0xd6c38f,'sourceKey':_0x58d61f,'fieldPath':_0x567bb0,'targetType':_0x2b0945,'targetKey':_0x1beb8d,'env':_0x4ad5f7[_0x1e4fa3(0x54b)]});}function _0x3dd8b9(_0x45a98f,_0x1b0bbb,_0x53d45a,_0x54fa7a,_0x17af02,{timestamp:timestamp=Date[_0x1e0b59(0x8cc)](),origin:origin=null}={}){const _0x540944=_0x1e0b59;if(!_0x45a98f[_0x540944(0x414)](_0x23fc91))return;const _0x295951=_0x53d45a+'@'+_0x54fa7a+'@'+_0x17af02,_0x337d24=_0x45a98f['_getType'](_0x23fc91)[_0x540944(0x6a7)],_0x1433bb=_0x337d24[_0x540944(0x3a0)](_0x295951);if(!_0x1433bb)return;_0x337d24['removeSync'](_0x295951),_0x45a98f[_0x540944(0x52d)]({'id':_0x540944(0x1c1)+_0x23fc91+'@'+_0x295951,'type':_0x23fc91,'key':_0x295951,'action':_0x128f32[_0x540944(0x8a0)],'timestamp':timestamp,'txnId':_0x1b0bbb?.['id'],'origin':origin},_0x1433bb[_0x540944(0x2ef)],undefined),_0x45a98f[_0x540944(0x4cb)][_0x540944(0x5a2)](_0x1a181a[_0x540944(0x8c5)],{'sourceType':_0x53d45a,'sourceKey':_0x54fa7a,'fieldPath':_0x17af02,'env':_0x45a98f['name']});}function _0x564cf2(_0x3ae53e,_0x26af28,_0xb5083f,_0x29fa82,_0x364bd1={}){const _0x6ab484=_0x1e0b59;if(!_0x3ae53e[_0x6ab484(0x414)](_0x23fc91))return;const _0x3b132e=_0x3ae53e[_0x6ab484(0x3c8)](_0x23fc91)[_0x6ab484(0x6a7)],_0x2895dd=_0xb5083f+'@'+_0x29fa82+'@',_0x46c8f1=[];for(const {key:_0xf3e3b7,value:_0x5535be}of _0x3b132e['getRange']({'start':_0x2895dd,'end':_0x2895dd+'\uffff'})){if(_0x5535be?.[_0x6ab484(0x816)]===_0xb5083f&&_0x5535be?.[_0x6ab484(0x713)]===_0x29fa82)_0x46c8f1['push'](_0xf3e3b7);}for(const _0x6709e3 of _0x46c8f1){const _0x1e95c4=_0x3b132e[_0x6ab484(0x3a0)](_0x6709e3);if(!_0x1e95c4)continue;_0x3b132e[_0x6ab484(0x3ac)](_0x6709e3),_0x3ae53e[_0x6ab484(0x52d)]({'id':'item:'+_0x23fc91+'@'+_0x6709e3,'type':_0x23fc91,'key':_0x6709e3,'action':_0x128f32[_0x6ab484(0x8a0)],'timestamp':_0x364bd1['timestamp']||Date[_0x6ab484(0x8cc)](),'txnId':_0x26af28?.['id'],'origin':_0x364bd1[_0x6ab484(0x860)]},_0x1e95c4[_0x6ab484(0x2ef)],undefined);}}function _0x446b07(_0x212eda,_0x29c46b){const _0x515ccc=_0x1e0b59;if(!_0x212eda[_0x515ccc(0x414)](_0x23fc91))return;const _0x5c4eb7=_0x212eda['_getType'](_0x23fc91)[_0x515ccc(0x6a7)],_0xcde11c=_0x29c46b+'@',_0x4ad24a=[];for(const {key:_0x400c36,value:_0x57477b}of _0x5c4eb7[_0x515ccc(0x3ee)]({'start':_0xcde11c,'end':_0xcde11c+'\uffff'})){if(_0x57477b?.['sourceType']===_0x29c46b)_0x4ad24a[_0x515ccc(0x28d)](_0x400c36);}for(const _0x528187 of _0x4ad24a)_0x5c4eb7[_0x515ccc(0x3ac)](_0x528187);}async function _0x302daf(_0x57d930,_0x1cc115){const _0x41e0c2=_0x1e0b59,_0x5223c1=_0x2644e9(_0x57d930,_0x1cc115);if(_0x5223c1[_0x41e0c2(0x68a)]===0x0)return;await _0x57d930['_writer']['transaction'](()=>{for(const {key:_0x42fa80,value:_0x59362d}of _0x57d930['getRange'](_0x1cc115)){_0x45e764(_0x57d930,_0x1cc115,_0x42fa80,_0x59362d,null);const _0x4c3cfb=_0x408a31(_0x57d930,_0x1cc115,_0x42fa80,_0x59362d);for(const _0x3a0aa8 of _0x4c3cfb){_0xa49407(_0x57d930,null,_0x1cc115,_0x42fa80,_0x3a0aa8['fieldPath'],_0x3a0aa8['targetType'],_0x3a0aa8['targetKey']);}}});}const _0x558207=0x1388;async function _0x5b799e(_0x1a76e9){const _0x1420e7=_0x1e0b59,_0x420313=_0x1a76e9['_refCache']?.[_0x1420e7(0x50a)]?.[_0x1420e7(0x8d2)]>0x0;if(!_0x420313&&!_0x1a76e9['_refIndexDb'])return{'dropped':0x0,'written':0x0};const _0x507175=_0x43c18a(_0x1a76e9);let _0x5668cd=0x0;for(;;){const _0x36d520=Array[_0x1420e7(0x48d)](_0x507175[_0x1420e7(0x300)]({'limit':_0x558207}));if(_0x36d520['length']===0x0)break;let _0x25046a=0x0;await _0x1a76e9[_0x1420e7(0x767)][_0x1420e7(0x68f)](()=>{for(const _0x1f335c of _0x36d520)if(_0x507175['removeSync'](_0x1f335c))_0x25046a++;});if(_0x25046a===0x0)break;_0x5668cd+=_0x25046a;}let _0x3f89a4=0x0;for(const _0x5b5255 of _0x1a76e9[_0x1420e7(0x242)][_0x1420e7(0x50a)][_0x1420e7(0x4ac)]()){if(_0x5b5255[_0x1420e7(0x38a)]('~')||!_0x1a76e9['hasType'](_0x5b5255))continue;const _0x1cb61f=_0x2644e9(_0x1a76e9,_0x5b5255);await _0x1a76e9['_writer'][_0x1420e7(0x68f)](()=>{const _0x310859=_0x1420e7;for(const {key:_0x1977ca,value:_0x5000e6}of _0x1a76e9[_0x310859(0x3ee)](_0x5b5255)){for(const _0x491f3a of _0x1cb61f){const _0x1e290c=_0x50ce29(_0x5000e6,_0x491f3a[_0x310859(0x5e7)]);if(!_0x252b25(_0x1e290c))continue;_0x507175[_0x310859(0x512)](_0x42491a(_0x491f3a[_0x310859(0x469)],_0x1e290c,_0x5b5255,_0x1977ca,_0x491f3a[_0x310859(0x5e7)]),0x1),_0x3f89a4++;}}});}return{'dropped':_0x5668cd,'written':_0x3f89a4};}return okdbEnvRefs={'getFieldValue':_0x50ce29,'setFieldValue':_0x29690d,'refIndexKey':_0x42491a,'isRefTarget':_0x252b25,'cascadeVisitKey':_0x477949,'extractRefs':_0x33d7ce,'rebuildRefCache':_0x3b247b,'getTypeRefs':_0x2644e9,'getIncomingRefs':_0x26fddb,'getRefIndexDb':_0x43c18a,'updateRefIndex':_0x45e764,'removeRefIndexEntries':_0x455ad3,'refIndexRowsFor':_0x37c6a2,'rebuildRefIndex':_0x5b799e,'checkForeignKeys':_0x408a31,'processDeleteCascade':_0x303b77,'setRefViolation':_0xa49407,'clearRefViolation':_0x3dd8b9,'clearRefViolationsForKey':_0x564cf2,'clearRefViolationsForType':_0x446b07,'syncRefIndex':_0x302daf},okdbEnvRefs;}var hasRequiredOkdbSubscriptionsStore;function requireOkdbSubscriptionsStore(){const _0x2d5e1a=_0x5c70f8;if(hasRequiredOkdbSubscriptionsStore)return okdbSubscriptionsStore[_0x2d5e1a(0x28e)];hasRequiredOkdbSubscriptionsStore=0x1;const _0x498c60=require$$0$4,{assertFilterAllowed:_0x35e3ba}=requireOkdbQueryFilter(),{rebuildRefCache:_0x2564a4}=requireOkdbEnvRefs(),_0x445fa2=_0x2d5e1a(0x3cf),_0x4e5e55=_0x2d5e1a(0x868),_0x42eedb='interest',_0x473066=[_0x2d5e1a(0x5c7),'type',_0x2d5e1a(0x82f)],_0x35a0e3=[_0x2d5e1a(0x5c7),'type'],_0xc444dd=0x5a*0x3e8,_0x5637d=Math[_0x2d5e1a(0x481)](_0xc444dd/0x2);class _0x253fe7{constructor(_0x45dda1,_0x56a0c8={}){const _0x389b1b=_0x2d5e1a;this[_0x389b1b(0x61e)]=_0x45dda1,this[_0x389b1b(0x60a)]=Number[_0x389b1b(0x85e)](_0x56a0c8['ttlMs'])&&_0x56a0c8[_0x389b1b(0x60a)]>0x0?_0x56a0c8[_0x389b1b(0x60a)]:_0xc444dd,this[_0x389b1b(0x8c1)]=Number[_0x389b1b(0x85e)](_0x56a0c8['refreshThresholdMs'])?_0x56a0c8[_0x389b1b(0x8c1)]:_0x5637d,this[_0x389b1b(0x496)]=null;}async[_0x2d5e1a(0x260)](){const _0xc18a0a=_0x2d5e1a;if(this[_0xc18a0a(0x496)])return this[_0xc18a0a(0x496)];const _0x327e1d=await this[_0xc18a0a(0x61e)][_0xc18a0a(0x3d0)](_0x445fa2,{'sync':![]});return await _0x327e1d[_0xc18a0a(0x1be)](_0x4e5e55,{'indexes':[_0x35a0e3]}),await _0x327e1d['ensureType'](_0x42eedb),_0x327e1d[_0xc18a0a(0x28f)](_0x42eedb)?_0x2564a4(_0x327e1d):await _0x327e1d['setSchema'](_0x42eedb,{'definition':{'type':'object','properties':{'sessionId':{'type':_0xc18a0a(0x2b1),'ref':{'type':_0x4e5e55,'onDelete':_0xc18a0a(0x2f9)}},'dataEnv':{'type':'string'},'type':{'type':'string'},'key':{'type':'string'}},'required':[_0xc18a0a(0x576),_0xc18a0a(0x5c7),'type',_0xc18a0a(0x82f)]},'enforce':!![]}),await _0x327e1d[_0xc18a0a(0x1be)](_0x42eedb,{'indexes':[_0x473066]}),await _0x327e1d['indexReady'](_0x42eedb,_0x473066),await _0x327e1d[_0xc18a0a(0x864)](_0x4e5e55,_0x35a0e3),this[_0xc18a0a(0x496)]=_0x327e1d,_0x327e1d;}['_env'](){const _0xa350b6=_0x2d5e1a;if(!this['_sub'])throw new Error(_0xa350b6(0x705));return this['_sub'];}async['createSession']({sessionId:_0x32c17e,dataEnv:_0x52fabb,type:_0x2a4703,filter:filter=null,ttlMs:_0x2e0301}={}){const _0x3dce7a=_0x2d5e1a,_0x4bd5cb=this[_0x3dce7a(0x4dd)]();_0x35e3ba(filter);const _0x5640d6=_0x32c17e!=null&&String(_0x32c17e)['length']>0x0?String(_0x32c17e):_0x498c60['randomUUID'](),_0x134b42=Number[_0x3dce7a(0x85e)](_0x2e0301)&&_0x2e0301>0x0?_0x2e0301:this[_0x3dce7a(0x60a)],_0x5bdad7=Date['now'](),_0xfd213={'sessionId':_0x5640d6,'dataEnv':_0x52fabb,'type':_0x2a4703,'filter':filter??null,'version':0x0,'createdAt':_0x5bdad7,'expiresAt':_0x5bdad7+_0x134b42};return await _0x4bd5cb['put'](_0x4e5e55,_0x5640d6,_0xfd213,{'ttl':_0x134b42}),{'sessionId':_0x5640d6,'version':0x0};}[_0x2d5e1a(0x5ec)](_0x40df6b){if(!_0x40df6b)return null;return this['_env']()['get'](_0x4e5e55,String(_0x40df6b))??null;}async['closeSession'](_0x44ce6f){const _0x169b26=_0x2d5e1a,_0x320a1e=this[_0x169b26(0x4dd)](),_0xa4b40e=String(_0x44ce6f);if(!_0x320a1e[_0x169b26(0x309)](_0x4e5e55,_0xa4b40e))return![];return await _0x320a1e[_0x169b26(0x504)](_0x4e5e55,_0xa4b40e),!![];}async[_0x2d5e1a(0x286)](_0x206d63){const _0x3f84e0=_0x2d5e1a,_0xfca2da=this[_0x3f84e0(0x4dd)](),_0x32749d=String(_0x206d63),_0x247b8=_0xfca2da['get'](_0x4e5e55,_0x32749d);if(!_0x247b8)return null;const _0x407bf2=(Number['isFinite'](_0x247b8[_0x3f84e0(0x1d0)])?_0x247b8['version']:0x0)+0x1;return await _0xfca2da[_0x3f84e0(0x253)](_0x4e5e55,_0x32749d,{..._0x247b8,'version':_0x407bf2}),_0x407bf2;}async[_0x2d5e1a(0x534)](_0x6051b9,_0x5c42ee){const _0x3cc765=_0x2d5e1a,_0x2a0541=this['_env'](),_0x2c1ff8=String(_0x6051b9);if(!_0x2a0541['get'](_0x4e5e55,_0x2c1ff8))return![];const _0x3b9f7b=Number[_0x3cc765(0x85e)](_0x5c42ee)&&_0x5c42ee>0x0?_0x5c42ee:this['ttlMs'];if(this[_0x3cc765(0x254)](_0x2c1ff8))return![];return await _0x2a0541[_0x3cc765(0x246)](_0x4e5e55,_0x2c1ff8,_0x3b9f7b),await this['_syncExpiresAtField'](_0x2c1ff8,_0x3b9f7b),!![];}async['refreshTtlBatch'](_0x1f9348,_0x20e045){const _0x5a161e=_0x2d5e1a,_0x57b9bb=this[_0x5a161e(0x4dd)](),_0x1e6755=Number[_0x5a161e(0x85e)](_0x20e045)&&_0x20e045>0x0?_0x20e045:this[_0x5a161e(0x60a)],_0x298568=Date[_0x5a161e(0x8cc)](),_0xde9949=[];for(const _0x1f00d2 of _0x1f9348||[]){const _0x2df00e=String(_0x1f00d2),_0x3dfb8c=_0x57b9bb[_0x5a161e(0x309)](_0x4e5e55,_0x2df00e);if(!_0x3dfb8c)continue;if(this[_0x5a161e(0x254)](_0x2df00e,_0x298568))continue;_0xde9949[_0x5a161e(0x28d)]({'id':_0x2df00e,'cur':_0x3dfb8c});}if(_0xde9949[_0x5a161e(0x68a)]===0x0)return[];return await _0x57b9bb[_0x5a161e(0x4b8)](async _0x5e0501=>{const _0x1fc2a7=_0x5a161e;for(const {id:_0xe2e86c,cur:_0x7f027b}of _0xde9949){_0x5e0501[_0x1fc2a7(0x253)](_0x4e5e55,_0xe2e86c,{..._0x7f027b,'expiresAt':_0x298568+_0x1e6755}),_0x5e0501[_0x1fc2a7(0x246)](_0x4e5e55,_0xe2e86c,_0x1e6755);}}),_0xde9949[_0x5a161e(0x35e)](_0x2f9e20=>_0x2f9e20['id']);}['_isFar'](_0x27bd31,_0x33b3b2=Date[_0x2d5e1a(0x8cc)]()){const _0x4d880e=_0x2d5e1a,_0x5b9922=this['_env']()[_0x4d880e(0x40b)](_0x4e5e55,String(_0x27bd31));if(!_0x5b9922)return![];return _0x5b9922[_0x4d880e(0x49f)]-_0x33b3b2>this[_0x4d880e(0x8c1)];}async[_0x2d5e1a(0x643)](_0xb5a302,_0x19b4b0){const _0x2639a8=_0x2d5e1a,_0x4446f4=this['_env'](),_0x1b2461=_0x4446f4[_0x2639a8(0x309)](_0x4e5e55,_0xb5a302);if(!_0x1b2461)return;await _0x4446f4[_0x2639a8(0x253)](_0x4e5e55,_0xb5a302,{..._0x1b2461,'expiresAt':Date['now']()+_0x19b4b0});}async[_0x2d5e1a(0x36b)](_0x523a38,_0x22734e,_0x284438){const _0x3e9788=_0x2d5e1a,_0x5c6a23=this[_0x3e9788(0x4dd)](),_0x5a47f6=String(_0x523a38),_0x28d4a7=_0x5c6a23['get'](_0x4e5e55,_0x5a47f6);if(!_0x28d4a7)throw new Error(_0x3e9788(0x1e7)+_0x5a47f6);const _0xb5e54=_0x498c60[_0x3e9788(0x809)]();return await _0x5c6a23[_0x3e9788(0x253)](_0x42eedb,_0xb5e54,{'sessionId':_0x5a47f6,'dataEnv':String(_0x28d4a7[_0x3e9788(0x5c7)]),'type':String(_0x22734e),'key':String(_0x284438)}),_0xb5e54;}async[_0x2d5e1a(0x7e1)](_0x2389e2,_0x14a0ad,{retries:retries=0x8}={}){const _0x4d4689=_0x2d5e1a,_0x5b23a1=this[_0x4d4689(0x4dd)]();for(let _0x34f176=0x0;;_0x34f176++){const _0x2f86c9=_0x5b23a1['getEntry'](_0x4e5e55,_0x2389e2);if(!_0x2f86c9)return null;const _0x21c1ca=_0x2f86c9[_0x4d4689(0x2ef)],_0x36c15d=(Number[_0x4d4689(0x85e)](_0x21c1ca[_0x4d4689(0x1d0)])?_0x21c1ca[_0x4d4689(0x1d0)]:0x0)+0x1,{sessionPatch:sessionPatch={},applyInterests:applyInterests=null}=_0x14a0ad(_0x21c1ca,_0x5b23a1)||{};try{return await _0x5b23a1[_0x4d4689(0x4b8)](async _0x45545d=>{const _0x9ea8e6=_0x4d4689;applyInterests?.(_0x45545d),_0x45545d[_0x9ea8e6(0x253)](_0x4e5e55,_0x2389e2,{..._0x21c1ca,...sessionPatch,'version':_0x36c15d},{'ifVersion':_0x2f86c9[_0x9ea8e6(0x1d0)]});}),_0x36c15d;}catch(_0x140fd3){if(_0x140fd3?.['code']===_0x4d4689(0x721)&&_0x34f176<retries)continue;throw _0x140fd3;}}}async[_0x2d5e1a(0x69e)](_0x177c42,{add:add=[],remove:remove=[]}={}){const _0x421ebd=String(_0x177c42);return this['_commitSessionMutation'](_0x421ebd,(_0x2c71a2,_0x4ba5a6)=>{const _0x417eda=_0x52a3,_0x4ad655=String(_0x2c71a2[_0x417eda(0x5c7)]),_0x17e1fc=new Set((remove||[])[_0x417eda(0x35e)](_0x3e44d2=>String(_0x3e44d2[_0x417eda(0x45d)])+'\x00'+String(_0x3e44d2[_0x417eda(0x82f)]))),_0x35412c=[];if(_0x17e1fc[_0x417eda(0x8d2)]>0x0)for(const {key:_0x1e4d27,value:_0x34d2ae}of _0x4ba5a6[_0x417eda(0x3ee)](_0x42eedb,{})){if(!_0x34d2ae||_0x34d2ae[_0x417eda(0x576)]!==_0x421ebd)continue;if(_0x17e1fc[_0x417eda(0x571)](_0x34d2ae[_0x417eda(0x45d)]+'\x00'+_0x34d2ae['key']))_0x35412c['push'](_0x1e4d27);}const _0x4e1aac=(add||[])[_0x417eda(0x35e)](_0x27ab2f=>({'id':_0x498c60['randomUUID'](),'type':String(_0x27ab2f[_0x417eda(0x45d)]),'key':String(_0x27ab2f['key'])}));return{'applyInterests':_0x1460f1=>{const _0x315d64=_0x417eda;for(const _0x2a1f14 of _0x35412c)_0x1460f1[_0x315d64(0x504)](_0x42eedb,_0x2a1f14);for(const _0x41817e of _0x4e1aac)_0x1460f1[_0x315d64(0x253)](_0x42eedb,_0x41817e['id'],{'sessionId':_0x421ebd,'dataEnv':_0x4ad655,'type':_0x41817e['type'],'key':_0x41817e[_0x315d64(0x82f)]});}};});}async['setFilter'](_0x5343a0,_0x2d60eb){const _0x3d99ae=_0x2d5e1a;_0x35e3ba(_0x2d60eb);const _0x298a8f=String(_0x5343a0);return this[_0x3d99ae(0x7e1)](_0x298a8f,()=>({'sessionPatch':{'filter':_0x2d60eb??null}}));}async['removeInterest'](_0x5a497f,_0x43f932,_0x30e925){const _0x1c2eac=_0x2d5e1a,_0x7a3762=this[_0x1c2eac(0x4dd)](),_0x2f8bf1=String(_0x5a497f),_0x5432fe=String(_0x43f932),_0x5f46e5=String(_0x30e925),_0x1786df=[];for(const {key:_0x4d1e79,value:_0x14aba9}of _0x7a3762[_0x1c2eac(0x3ee)](_0x42eedb,{})){if(_0x14aba9&&_0x14aba9[_0x1c2eac(0x576)]===_0x2f8bf1&&_0x14aba9[_0x1c2eac(0x45d)]===_0x5432fe&&_0x14aba9[_0x1c2eac(0x82f)]===_0x5f46e5)_0x1786df[_0x1c2eac(0x28d)](_0x4d1e79);}for(const _0x1c9953 of _0x1786df)await _0x7a3762['remove'](_0x42eedb,_0x1c9953);return _0x1786df[_0x1c2eac(0x68a)];}async['replaceInterests'](_0x5dd80f,_0x4c85a3){const _0x51efc5=_0x2d5e1a,_0x556f55=String(_0x5dd80f);return this[_0x51efc5(0x7e1)](_0x556f55,(_0x9d320a,_0x3d79e2)=>{const _0x2dfbe7=_0x51efc5,_0x44a8fa=String(_0x9d320a[_0x2dfbe7(0x5c7)]),_0x2aa355=[];for(const {key:_0x437f15,value:_0x552bcf}of _0x3d79e2[_0x2dfbe7(0x3ee)](_0x42eedb,{})){if(_0x552bcf&&_0x552bcf[_0x2dfbe7(0x576)]===_0x556f55)_0x2aa355[_0x2dfbe7(0x28d)](_0x437f15);}const _0x38c27b=(_0x4c85a3||[])[_0x2dfbe7(0x35e)](_0x2fa8d9=>({'id':_0x498c60[_0x2dfbe7(0x809)](),'type':String(_0x2fa8d9[_0x2dfbe7(0x45d)]),'key':String(_0x2fa8d9[_0x2dfbe7(0x82f)])}));return{'applyInterests':_0x580831=>{const _0x2546a2=_0x2dfbe7;for(const _0xa98299 of _0x2aa355)_0x580831[_0x2546a2(0x504)](_0x42eedb,_0xa98299);for(const _0x466d8a of _0x38c27b)_0x580831['put'](_0x42eedb,_0x466d8a['id'],{'sessionId':_0x556f55,'dataEnv':_0x44a8fa,'type':_0x466d8a[_0x2546a2(0x45d)],'key':_0x466d8a[_0x2546a2(0x82f)]});}};});}[_0x2d5e1a(0x2e9)](_0x188417,_0x38bd32,_0x9b0a4c){const _0x16bfb4=_0x2d5e1a,_0x4dad43=this[_0x16bfb4(0x4dd)](),_0x5437e5=String(_0x188417),_0x1ec216=String(_0x38bd32),_0x589946=String(_0x9b0a4c),_0xed19a7=new Set();for(const {value:_0x4e5246}of _0x4dad43[_0x16bfb4(0x5c4)](_0x42eedb,_0x473066,{'start':[_0x5437e5,_0x1ec216,_0x589946],'end':[_0x5437e5,_0x1ec216,_0x589946,'']})){if(_0x4e5246&&_0x4e5246[_0x16bfb4(0x576)])_0xed19a7['add'](_0x4e5246[_0x16bfb4(0x576)]);}return[..._0xed19a7];}[_0x2d5e1a(0x62b)](_0xe2f96a,_0x131eda){const _0x25c351=_0x2d5e1a,_0x3ccec1=this[_0x25c351(0x4dd)](),_0xe6009d=String(_0xe2f96a),_0x37e498=String(_0x131eda),_0x533b9a=[];for(const {value:_0x5e09b3}of _0x3ccec1[_0x25c351(0x5c4)](_0x4e5e55,_0x35a0e3,{'start':[_0xe6009d,_0x37e498],'end':[_0xe6009d,_0x37e498,'\uffff']})){if(!_0x5e09b3||_0x5e09b3[_0x25c351(0x5c7)]!==_0xe6009d||_0x5e09b3[_0x25c351(0x45d)]!==_0x37e498)continue;if(_0x5e09b3[_0x25c351(0x4e1)]==null)continue;_0x533b9a[_0x25c351(0x28d)]({'sessionId':_0x5e09b3[_0x25c351(0x576)],'filter':_0x5e09b3[_0x25c351(0x4e1)],'version':Number[_0x25c351(0x85e)](_0x5e09b3[_0x25c351(0x1d0)])?_0x5e09b3[_0x25c351(0x1d0)]:0x0});}return _0x533b9a;}async[_0x2d5e1a(0x371)](){return this['_env']()['sweepExpiredTTL']();}}return okdbSubscriptionsStore['exports']=_0x253fe7,okdbSubscriptionsStore['exports'][_0x2d5e1a(0x75c)]=_0x445fa2,okdbSubscriptionsStore[_0x2d5e1a(0x28e)]['T_SESSION']=_0x4e5e55,okdbSubscriptionsStore['exports']['T_INTEREST']=_0x42eedb,okdbSubscriptionsStore[_0x2d5e1a(0x28e)][_0x2d5e1a(0x742)]=_0x473066,okdbSubscriptionsStore[_0x2d5e1a(0x28e)]['SESSION_TYPE_INDEX']=_0x35a0e3,okdbSubscriptionsStore[_0x2d5e1a(0x28e)]['DEFAULT_TTL_MS']=_0xc444dd,okdbSubscriptionsStore[_0x2d5e1a(0x28e)];}var version=_0x5c70f8(0x4e7),require$$29={'version':version},okdbEnginesEnums,hasRequiredOkdbEnginesEnums;function requireOkdbEnginesEnums(){const _0x14ed76=_0x5c70f8;if(hasRequiredOkdbEnginesEnums)return okdbEnginesEnums;hasRequiredOkdbEnginesEnums=0x1;const _0xa45269=_0x14ed76(0x665),_0x51954b=0xa,_0x4d5761=Object[_0x14ed76(0x202)]({'CREATED':'created','ONLINE':'online','STOPPED':_0x14ed76(0x5a6),'INACTIVE':_0x14ed76(0x5cc),'ERROR':_0x14ed76(0x62e),'REMOVED':_0x14ed76(0x7cc)}),_0x3b993b=Object[_0x14ed76(0x202)]({'STARTED':_0x14ed76(0x3c4),'STOPPED':_0x14ed76(0x5a6),'ERROR':_0x14ed76(0x62e),'INSTALLED':'installed','UNINSTALLED':_0x14ed76(0x363)}),_0xc993c4=Object[_0x14ed76(0x202)](new Set([_0x4d5761[_0x14ed76(0x696)],_0x4d5761['STOPPED'],_0x4d5761[_0x14ed76(0x6a9)],_0x4d5761[_0x14ed76(0x7d8)]]));function _0x2069b1(_0x40f8c3){const _0x673209=_0x14ed76;return _0x40f8c3?.['enabled']===![]?_0x4d5761[_0x673209(0x8db)]:_0x673209(0x35f);}return okdbEnginesEnums={'TYPE_ENGINES':_0xa45269,'MAX_UPDATE_RETRIES':_0x51954b,'ENGINE_STATUS':_0x4d5761,'ENGINE_EVENTS':_0x3b993b,'UPDATABLE_STATUSES':_0xc993c4,'durableOnlyEngineState':_0x2069b1},okdbEnginesEnums;}var enums,hasRequiredEnums;function requireEnums(){const _0x2ea3c4=_0x5c70f8;if(hasRequiredEnums)return enums;hasRequiredEnums=0x1;const _0x2676a7=Object['freeze']({'EMBEDDER':_0x2ea3c4(0x4c1),'INDEXER':'indexer','SEARCH':_0x2ea3c4(0x636),'WORKER':_0x2ea3c4(0x590)}),_0x38d79a=Object[_0x2ea3c4(0x202)]({'PENDING':_0x2ea3c4(0x321),'DONE':_0x2ea3c4(0x588),'FAILED':'failed','DELETED':_0x2ea3c4(0x7c4)}),_0x3014e4=Object[_0x2ea3c4(0x202)]({'INDEXER_READY':_0x2ea3c4(0x40e),'INDEXER_FLUSHED':'embeddings:indexer:flushed','INDEXER_DOC_DONE':_0x2ea3c4(0x592),'INDEXER_DOC_FAILED':'embeddings:indexer:doc:failed','INDEXER_DOC_QUEUED':_0x2ea3c4(0x849),'STRATEGY_REGISTERED':'embeddings:strategy:registered','DOC_STATUS_CHANGE':_0x2ea3c4(0x27f),'PIPELINE_READY':_0x2ea3c4(0x250)}),_0x452fe9=Object[_0x2ea3c4(0x202)]({'MODELS':_0x2ea3c4(0x270),'DOC_STATUS_PREFIX':'doc_status:','VEC_PREFIX':_0x2ea3c4(0x81f)});return enums={'ENGINE_TYPES':_0x2676a7,'INDEXER_DOC_STATUS':_0x38d79a,'EMBEDDINGS_EVENTS':_0x3014e4,'INTERNAL_TYPES':_0x452fe9},enums;}var okdbQueueValidate,hasRequiredOkdbQueueValidate;function requireOkdbQueueValidate(){const _0x1ab742=_0x5c70f8;if(hasRequiredOkdbQueueValidate)return okdbQueueValidate;hasRequiredOkdbQueueValidate=0x1;const _0x374427=Object[_0x1ab742(0x202)]({'PENDING':_0x1ab742(0x321),'RUNNING':'running','DONE':'done','FAILED':_0x1ab742(0x697)}),_0xded7c9=Object[_0x1ab742(0x202)]({'ACTIVE':_0x1ab742(0x537),'PAUSED':'paused','DRAINING':'draining'}),_0xb558ff=Object[_0x1ab742(0x202)]({'ENQUEUED':_0x1ab742(0x662),'DONE':_0x1ab742(0x281),'FAILED':_0x1ab742(0x745),'RETRY':_0x1ab742(0x2c7),'RESCHEDULED':_0x1ab742(0x7d0),'REMOVED':_0x1ab742(0x284),'RECONCILED':'queue:reconciled','CLEAR_PROGRESS':_0x1ab742(0x236),'CLEAR_DONE':'queue:clear-done','LOG':'queue:log'}),_0x28960a=Object['freeze'](['debug',_0x1ab742(0x7e2),_0x1ab742(0x2f1),_0x1ab742(0x62e)]),_0x5aff6c=0x1,_0x41e756=0xc350,_0x1b78e7=0x400,_0x118536=0x800;function _0x853f80(_0x28f957){const _0x23a5fb=_0x1ab742;return _0x28f957!=null&&typeof _0x28f957===_0x23a5fb(0x559)&&(_0x28f957['constructor']===Object||Object['getPrototypeOf'](_0x28f957)===null);}function _0xa6a2cf(_0x5f084b,_0xee725b,_0x4c76c8,_0x5db536){const _0x2bed12=_0x1ab742;if(_0x5f084b==null)return _0xee725b;const _0x32235c=Number(_0x5f084b);if(!Number[_0x2bed12(0x85e)](_0x32235c))return _0xee725b;const _0x2f969b=Math[_0x2bed12(0x2fe)](_0x32235c);if(_0x2f969b<_0x4c76c8)return _0x4c76c8;if(_0x2f969b>_0x5db536)return _0x5db536;return _0x2f969b;}function _0x58c13d(_0x3d6242){const _0xd37b2f=_0x1ab742;if(!_0x3d6242)return[];if(typeof _0x3d6242===_0xd37b2f(0x2b1))_0x3d6242=[_0x3d6242];if(!Array[_0xd37b2f(0x439)](_0x3d6242))throw new Error(_0xd37b2f(0x8dc));const _0x350975=[],_0x4b79f5=new Set();for(const _0x32b066 of _0x3d6242){if(_0x32b066==null)continue;const _0xf1968=String(_0x32b066)[_0xd37b2f(0x7a8)]();if(!_0xf1968)continue;if(_0xf1968['length']>0x80)throw new Error(_0xd37b2f(0x1fc));if(_0x4b79f5[_0xd37b2f(0x571)](_0xf1968))continue;_0x4b79f5[_0xd37b2f(0x280)](_0xf1968),_0x350975['push'](_0xf1968);if(_0x350975['length']>=0x20)break;}return _0x350975;}function _0x55c483(_0x17cf67){const _0x41de9b=_0x1ab742;if(_0x17cf67==null)return null;const _0x5b5d51=String(_0x17cf67)[_0x41de9b(0x7a8)]();if(!_0x5b5d51)return null;if(_0x5b5d51['length']>0x80)throw new Error(_0x41de9b(0x232));return _0x5b5d51;}function _0x3ba02a(_0x4fd3e5,_0x252483=0x1){const _0x4a2156=_0x1ab742;if(_0x4fd3e5==null)return[];if(typeof _0x4fd3e5===_0x4a2156(0x2b1)){const _0x372991=_0x55c483(_0x4fd3e5);if(!_0x372991)return[];return[{'id':_0x372991,'tokens':_0x252483}];}if(!Array['isArray'](_0x4fd3e5))throw new Error(_0x4a2156(0x41d));const _0x20a0f7=[],_0x4b02b2=new Set();for(const _0x539ecc of _0x4fd3e5){let _0x9c69b6,_0xe951b3;if(Array['isArray'](_0x539ecc))[_0x9c69b6,_0xe951b3]=_0x539ecc;else{if(_0x539ecc&&typeof _0x539ecc===_0x4a2156(0x559))({id:_0x9c69b6,tokens:_0xe951b3}=_0x539ecc);else{if(typeof _0x539ecc===_0x4a2156(0x2b1))_0x9c69b6=_0x539ecc,_0xe951b3=_0x252483;else continue;}}_0x9c69b6=_0x55c483(_0x9c69b6);if(!_0x9c69b6)continue;const _0x28ade2=_0xe951b3==null?_0x252483:Math['trunc'](Number(_0xe951b3));if(!Number[_0x4a2156(0x85e)](_0x28ade2)||_0x28ade2<0x1)throw new Error(_0x4a2156(0x4c4)+_0x9c69b6+_0x4a2156(0x466));if(_0x28ade2>0xf4240)throw new Error(_0x4a2156(0x4c4)+_0x9c69b6+_0x4a2156(0x255));if(_0x4b02b2[_0x4a2156(0x571)](_0x9c69b6))throw new Error('duplicate\x20bucket:\x20'+_0x9c69b6);_0x4b02b2[_0x4a2156(0x280)](_0x9c69b6),_0x20a0f7[_0x4a2156(0x28d)]({'id':_0x9c69b6,'tokens':_0x28ade2});}return _0x20a0f7;}function _0x4c701c(_0x59fe79,_0xe6f1f=0x400){const _0x54b019=_0x1ab742;if(_0x59fe79==null)return null;const _0x201215=String(_0x59fe79)[_0x54b019(0x1f7)](0x0,_0xe6f1f);return _0x201215||null;}function _0x44c41c(_0x498729){const _0x4c586d=_0x1ab742;if(_0x498729==null)return null;if(_0x498729[_0x4c586d(0x82f)]!==undefined&&_0x498729[_0x4c586d(0x2ef)]!==undefined)return _0x498729;return{'key':_0x498729['id']??null,'value':_0x498729};}function _0x5ef880(_0x64286e){const _0x2035cd=_0x1ab742;let _0x2d0842=_0x64286e;if(typeof _0x64286e===_0x2035cd(0x2b1))_0x2d0842={'message':_0x64286e};if(!_0x853f80(_0x2d0842))throw new Error(_0x2035cd(0x585));const _0x87294d=_0x2d0842[_0x2035cd(0x3a3)]==null?_0x2035cd(0x7e2):String(_0x2d0842[_0x2035cd(0x3a3)])[_0x2035cd(0x5af)]();if(!_0x28960a[_0x2035cd(0x495)](_0x87294d))throw new Error(_0x2035cd(0x699)+_0x87294d);if(_0x2d0842['message']==null)throw new Error(_0x2035cd(0x598));const _0x17f7fb=String(_0x2d0842[_0x2035cd(0x211)])['slice'](0x0,_0x1b78e7);let _0x48931a=null;if(_0x2d0842[_0x2035cd(0x376)]!=null){if(!_0x853f80(_0x2d0842[_0x2035cd(0x376)]))throw new Error('log\x20entry\x20fields\x20must\x20be\x20object|null');if(JSON[_0x2035cd(0x35a)](_0x2d0842[_0x2035cd(0x376)])[_0x2035cd(0x68a)]>_0x118536)throw new Error(_0x2035cd(0x317));_0x48931a=_0x2d0842['fields'];}return{'level':_0x87294d,'message':_0x17f7fb,'fields':_0x48931a,'ts':Date['now']()};}function _0x1c175f(_0x3ea50b){const _0x2d9138=_0x1ab742;if(_0x3ea50b==null)return;if(!Number[_0x2d9138(0x4ea)](_0x3ea50b)||_0x3ea50b<_0x5aff6c||_0x3ea50b>_0x41e756)throw new Error(_0x2d9138(0x778)+_0x5aff6c+',\x20'+_0x41e756+']');}function _0x2d1f6d(_0x127999){const _0x17b1d5=_0x1ab742;if(!_0x853f80(_0x127999))throw new Error(_0x17b1d5(0x6ca));if(typeof _0x127999['id']!==_0x17b1d5(0x2b1)||_0x127999['id'][_0x17b1d5(0x68a)]<0x8)throw new Error(_0x17b1d5(0x436));if(typeof _0x127999['type']!==_0x17b1d5(0x2b1)||!_0x127999[_0x17b1d5(0x45d)])throw new Error(_0x17b1d5(0x21d));if(!Object[_0x17b1d5(0x5d0)](_0x374427)[_0x17b1d5(0x495)](_0x127999[_0x17b1d5(0x717)]))throw new Error(_0x17b1d5(0x301)+_0x127999['status']);for(const _0x5b604e of['when',_0x17b1d5(0x258),_0x17b1d5(0x3e8)]){if(typeof _0x127999[_0x5b604e]!==_0x17b1d5(0x6e7)||!Number[_0x17b1d5(0x85e)](_0x127999[_0x5b604e]))throw new Error(_0x17b1d5(0x5e8)+_0x5b604e+_0x17b1d5(0x3bd));}if(_0x127999['finished']!=null&&(typeof _0x127999[_0x17b1d5(0x838)]!==_0x17b1d5(0x6e7)||!Number['isFinite'](_0x127999[_0x17b1d5(0x838)])))throw new Error(_0x17b1d5(0x4f3));if(!Number['isInteger'](_0x127999[_0x17b1d5(0x26e)])||_0x127999[_0x17b1d5(0x26e)]<0x0)throw new Error('job.tries\x20must\x20be\x20non-negative\x20int');if(!Number[_0x17b1d5(0x4ea)](_0x127999[_0x17b1d5(0x3d4)]))throw new Error(_0x17b1d5(0x7c7));if(_0x127999[_0x17b1d5(0x73e)]!==null&&_0x127999[_0x17b1d5(0x73e)]!==Infinity&&(!Number['isInteger'](_0x127999[_0x17b1d5(0x73e)])||_0x127999[_0x17b1d5(0x73e)]<0x1))throw new Error(_0x17b1d5(0x86e));if(_0x127999[_0x17b1d5(0x49a)]!=null&&(!Number['isInteger'](_0x127999[_0x17b1d5(0x49a)])||_0x127999[_0x17b1d5(0x49a)]<0x0))throw new Error(_0x17b1d5(0x4b4));if(_0x127999[_0x17b1d5(0x60c)]!=null&&(typeof _0x127999[_0x17b1d5(0x60c)]!==_0x17b1d5(0x6e7)||_0x127999[_0x17b1d5(0x60c)]<0x1))throw new Error('job.backoff_multiplier\x20must\x20be\x20number\x20>=\x201');if(_0x127999[_0x17b1d5(0x3ca)]!=null&&typeof _0x127999[_0x17b1d5(0x3ca)]!==_0x17b1d5(0x2b1))throw new Error(_0x17b1d5(0x42d));if(_0x127999[_0x17b1d5(0x68e)]!=null&&(typeof _0x127999[_0x17b1d5(0x68e)]!==_0x17b1d5(0x6e7)||!Number[_0x17b1d5(0x85e)](_0x127999[_0x17b1d5(0x68e)])))throw new Error(_0x17b1d5(0x5aa));if(_0x127999[_0x17b1d5(0x3f4)]!=null&&typeof _0x127999['bucket']!==_0x17b1d5(0x2b1))throw new Error(_0x17b1d5(0x323));if(_0x127999[_0x17b1d5(0x408)]!=null&&(!Number[_0x17b1d5(0x4ea)](_0x127999[_0x17b1d5(0x408)])||_0x127999[_0x17b1d5(0x408)]<0x1))throw new Error(_0x17b1d5(0x1c0));if(_0x127999[_0x17b1d5(0x55e)]!=null){if(!Array[_0x17b1d5(0x439)](_0x127999['buckets']))throw new Error('job.buckets\x20must\x20be\x20array|null');for(const _0x34765a of _0x127999[_0x17b1d5(0x55e)]){if(!_0x34765a||typeof _0x34765a!=='object')throw new Error(_0x17b1d5(0x652));if(typeof _0x34765a['id']!==_0x17b1d5(0x2b1)||!_0x34765a['id'][_0x17b1d5(0x7a8)]())throw new Error('job.buckets[].id\x20must\x20be\x20non-empty\x20string');if(!Number['isInteger'](_0x34765a[_0x17b1d5(0x2ad)])||_0x34765a[_0x17b1d5(0x2ad)]<0x1)throw new Error('job.buckets[].tokens\x20must\x20be\x20int\x20>=\x201');}}if(_0x127999[_0x17b1d5(0x2ce)]!=null&&typeof _0x127999[_0x17b1d5(0x2ce)]!=='string')throw new Error(_0x17b1d5(0x851));if(_0x127999[_0x17b1d5(0x89d)]!=null&&typeof _0x127999[_0x17b1d5(0x89d)]!==_0x17b1d5(0x2b1))throw new Error(_0x17b1d5(0x4a1));if(!Array['isArray'](_0x127999['tags']))throw new Error(_0x17b1d5(0x73b));if(_0x127999[_0x17b1d5(0x6d1)]!=null&&typeof _0x127999[_0x17b1d5(0x6d1)]!=='string')throw new Error(_0x17b1d5(0x1f8));if(_0x127999['status_code']!=null&&typeof _0x127999[_0x17b1d5(0x25f)]!==_0x17b1d5(0x2b1))throw new Error(_0x17b1d5(0x245));if(_0x127999[_0x17b1d5(0x3dc)]!=null&&typeof _0x127999[_0x17b1d5(0x3dc)]!=='string')throw new Error(_0x17b1d5(0x6bb));if(_0x127999['error_stack']!=null&&typeof _0x127999[_0x17b1d5(0x39d)]!=='string')throw new Error(_0x17b1d5(0x3b8));for(const _0x394913 of['done_ttl',_0x17b1d5(0x8f0)]){const _0x1c2c2f=_0x127999[_0x394913];if(_0x1c2c2f!=null&&(!Number[_0x17b1d5(0x4ea)](_0x1c2c2f)||_0x1c2c2f<0x0))throw new Error(_0x17b1d5(0x5e8)+_0x394913+_0x17b1d5(0x239));}_0x1c175f(_0x127999[_0x17b1d5(0x751)]);}function _0x966953(_0x375e62){const _0x473644=_0x1ab742;if(!_0x853f80(_0x375e62))throw new Error(_0x473644(0x57f));if(typeof _0x375e62['id']!=='string'||!_0x375e62['id']['trim']())throw new Error('job_type.id\x20must\x20be\x20non-empty\x20string');if(!Object[_0x473644(0x5d0)](_0xded7c9)[_0x473644(0x495)](_0x375e62[_0x473644(0x717)]))throw new Error(_0x473644(0x31c)+_0x375e62[_0x473644(0x717)]);if(_0x375e62[_0x473644(0x51e)]!=null&&(!Number[_0x473644(0x4ea)](_0x375e62[_0x473644(0x51e)])||_0x375e62['max_concurrency']<0x1))throw new Error(_0x473644(0x758));if(_0x375e62[_0x473644(0x2d1)]!=null){if(!_0x853f80(_0x375e62[_0x473644(0x2d1)]))throw new Error('job_type.defaults\x20must\x20be\x20object|null');const _0x1c7802=_0x375e62['defaults'];if(_0x1c7802[_0x473644(0x73e)]!=null&&(!Number[_0x473644(0x4ea)](_0x1c7802[_0x473644(0x73e)])||_0x1c7802['max_tries']<0x1))throw new Error(_0x473644(0x1e4));if(_0x1c7802[_0x473644(0x49a)]!=null&&(!Number[_0x473644(0x4ea)](_0x1c7802[_0x473644(0x49a)])||_0x1c7802[_0x473644(0x49a)]<0x0))throw new Error(_0x473644(0x83d));if(_0x1c7802['backoff_multiplier']!=null&&(typeof _0x1c7802[_0x473644(0x60c)]!=='number'||_0x1c7802['backoff_multiplier']<0x1))throw new Error(_0x473644(0x87c));if(_0x1c7802['priority']!=null&&!Number[_0x473644(0x4ea)](_0x1c7802[_0x473644(0x3d4)]))throw new Error('job_type.defaults.priority\x20must\x20be\x20int\x20or\x20null');if(_0x1c7802[_0x473644(0x31e)]!=null&&(!Number[_0x473644(0x4ea)](_0x1c7802[_0x473644(0x31e)])||_0x1c7802['ttl']<0x0))throw new Error(_0x473644(0x8bc));for(const _0x440d50 of[_0x473644(0x7ee),_0x473644(0x8f0)]){if(_0x1c7802[_0x440d50]!=null&&(!Number[_0x473644(0x4ea)](_0x1c7802[_0x440d50])||_0x1c7802[_0x440d50]<0x0))throw new Error(_0x473644(0x541)+_0x440d50+_0x473644(0x239));}if(_0x1c7802[_0x473644(0x55e)]!=null&&!Array['isArray'](_0x1c7802[_0x473644(0x55e)]))throw new Error(_0x473644(0x487));_0x1c175f(_0x1c7802['logCap']);}if(_0x375e62[_0x473644(0x3f8)]!=null){if(!_0x853f80(_0x375e62['payload_schema']))throw new Error(_0x473644(0x7f5));if(!_0x853f80(_0x375e62[_0x473644(0x3f8)][_0x473644(0x548)]))throw new Error(_0x473644(0x4f8));if(typeof _0x375e62[_0x473644(0x3f8)][_0x473644(0x5d1)]!=='boolean')throw new Error(_0x473644(0x77f));}for(const _0x197cd3 of[_0x473644(0x2f5),_0x473644(0x653)]){if(typeof _0x375e62[_0x197cd3]!==_0x473644(0x6e7)||!Number[_0x473644(0x85e)](_0x375e62[_0x197cd3]))throw new Error(_0x473644(0x2f3)+_0x197cd3+_0x473644(0x3bd));}}function _0x2653ee(_0x4b9b7a){const _0x10cf0a=_0x1ab742;if(!_0x853f80(_0x4b9b7a))throw new Error(_0x10cf0a(0x3c7));if(typeof _0x4b9b7a['id']!==_0x10cf0a(0x2b1)||!_0x4b9b7a['id']['trim']())throw new Error(_0x10cf0a(0x81d));if(!Number[_0x10cf0a(0x4ea)](_0x4b9b7a[_0x10cf0a(0x2ad)])||_0x4b9b7a[_0x10cf0a(0x2ad)]<0x0)throw new Error(_0x10cf0a(0x3df));if(!Number[_0x10cf0a(0x4ea)](_0x4b9b7a[_0x10cf0a(0x52a)])||_0x4b9b7a[_0x10cf0a(0x52a)]<0x0)throw new Error(_0x10cf0a(0x834));if(_0x4b9b7a[_0x10cf0a(0x2ad)]>_0x4b9b7a[_0x10cf0a(0x52a)])throw new Error(_0x10cf0a(0x76f));if(!Number['isInteger'](_0x4b9b7a['refill_amount'])||_0x4b9b7a[_0x10cf0a(0x3fe)]<0x0)throw new Error('bucket.refill_amount\x20must\x20be\x20int\x20>=\x200');if(!Number[_0x10cf0a(0x4ea)](_0x4b9b7a[_0x10cf0a(0x4bf)])||_0x4b9b7a['refill_every']<0x0)throw new Error(_0x10cf0a(0x7be));if(typeof _0x4b9b7a[_0x10cf0a(0x3e8)]!=='number'||!Number[_0x10cf0a(0x85e)](_0x4b9b7a['updated']))throw new Error(_0x10cf0a(0x618));}return okdbQueueValidate={'STATUS':_0x374427,'JOB_TYPE_STATUS':_0xded7c9,'QUEUE_EVENTS':_0xb558ff,'LOG_LEVELS':_0x28960a,'LOG_CAP_MIN':_0x5aff6c,'LOG_CAP_MAX':_0x41e756,'clampInt':_0xa6a2cf,'asNullableString':_0x4c701c,'normalizeResult':_0x44c41c,'normalizeTags':_0x58c13d,'normalizeBucket':_0x55c483,'normalizeBuckets':_0x3ba02a,'normalizeLogEntry':_0x5ef880,'validateJobShape':_0x2d1f6d,'validateJobTypeShape':_0x966953,'validateBucketShape':_0x2653ee},okdbQueueValidate;}var okdbTimers,hasRequiredOkdbTimers;function requireOkdbTimers(){if(hasRequiredOkdbTimers)return okdbTimers;hasRequiredOkdbTimers=0x1;const _0x39ac70=0x2**0x1f-0x1;function _0x425148(_0x5b2b43){if(!(_0x5b2b43>0x0))return 0x0;return _0x5b2b43>_0x39ac70?_0x39ac70:_0x5b2b43;}function _0x2cf8c8(_0xb683d5){return _0xb683d5===Infinity;}return okdbTimers={'MAX_TIMER_DELAY':_0x39ac70,'clampTimerDelay':_0x425148,'isNeverDelay':_0x2cf8c8},okdbTimers;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x11fa1c=_0x5c70f8;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x4a51d5=require$$0$6,{clampTimerDelay:_0x4c9247}=requireOkdbTimers(),{EVENTS:_0x1fbffc,CHANGE_ACTIONS:_0x1b739b}=requireOkdbEnums(),{LOOP:_0xa82aa2}=requireOkdbLoopMonitor(),_0x518365=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x1d4b72=0x5,_0x5b7351=0x2710;class _0x2ac925 extends _0x4a51d5{constructor(_0x4dfa70,_0x243a0e={}){const _0x2cb0b8=_0x52a3;super(),this[_0x2cb0b8(0x61e)]=_0x4dfa70,this[_0x2cb0b8(0x4c9)]=_0x243a0e[_0x2cb0b8(0x484)]??_0x518365,this[_0x2cb0b8(0x24d)]=_0x243a0e['flushDebounce']??_0x1d4b72,this['_dedupeMax']=_0x243a0e['dedupeMax']??_0x5b7351,this['_started']=![],this[_0x2cb0b8(0x259)]=new Map(),this[_0x2cb0b8(0x22c)]=new Map(),this[_0x2cb0b8(0x322)]=new Map(),this[_0x2cb0b8(0x3ae)]=null,this['_draining']=![],this[_0x2cb0b8(0x707)]=new Set(),this[_0x2cb0b8(0x356)]=new Set(),this[_0x2cb0b8(0x5a3)]=_0x39f08c=>this[_0x2cb0b8(0x2e1)](_0x39f08c),this[_0x2cb0b8(0x3d7)]=_0x4a7c75=>this[_0x2cb0b8(0x31a)](_0x4a7c75),this[_0x2cb0b8(0x52e)]=_0x31a505=>this[_0x2cb0b8(0x768)](_0x31a505),this['_onStop']=()=>this[_0x2cb0b8(0x1f1)]();}[_0x11fa1c(0x45c)](){const _0x38ee74=_0x11fa1c;if(this['_started'])return;this[_0x38ee74(0x620)]=!![];for(const [_0x5aa34a,_0x11f963]of this[_0x38ee74(0x61e)][_0x38ee74(0x612)]){if(_0x5aa34a[_0x38ee74(0x38a)]('~'))continue;try{_0x11f963[_0x38ee74(0x378)]();}catch{}}for(const [_0x56fd21,_0x56b9d3]of this[_0x38ee74(0x61e)][_0x38ee74(0x612)]){if(_0x56fd21[_0x38ee74(0x38a)]('~'))continue;try{this[_0x38ee74(0x22c)]['set'](_0x56fd21,_0x56b9d3['getClock']()||0x0);}catch{}}const {events:_0x32077c}=this[_0x38ee74(0x61e)];_0x32077c['on'](_0x1fbffc[_0x38ee74(0x725)],this['_onPending']),_0x32077c['on'](_0x1fbffc[_0x38ee74(0x401)],this[_0x38ee74(0x5a3)]),_0x32077c['on'](_0x1fbffc[_0x38ee74(0x32d)],this[_0x38ee74(0x5a3)]),_0x32077c['on'](_0x1fbffc[_0x38ee74(0x74e)],this['_onItem']),_0x32077c['on'](_0x1fbffc[_0x38ee74(0x207)],this[_0x38ee74(0x52e)]),_0x32077c['once'](_0x1fbffc['SYSTEM_STOPPED'],this[_0x38ee74(0x36f)]);}[_0x11fa1c(0x1f1)](){const _0x5d2001=_0x11fa1c;if(!this[_0x5d2001(0x620)])return;this['_started']=![];const {events:_0x31930e}=this[_0x5d2001(0x61e)];_0x31930e[_0x5d2001(0x1c9)](_0x1fbffc['ITEM_PENDING'],this[_0x5d2001(0x3d7)]),_0x31930e['off'](_0x1fbffc['ITEM_CREATE'],this['_onItem']),_0x31930e[_0x5d2001(0x1c9)](_0x1fbffc['ITEM_UPDATE'],this[_0x5d2001(0x5a3)]),_0x31930e[_0x5d2001(0x1c9)](_0x1fbffc[_0x5d2001(0x74e)],this[_0x5d2001(0x5a3)]),_0x31930e[_0x5d2001(0x1c9)](_0x1fbffc['SYSTEM_POKE'],this[_0x5d2001(0x52e)]);try{_0x31930e[_0x5d2001(0x1c9)](_0x1fbffc[_0x5d2001(0x528)],this[_0x5d2001(0x36f)]);}catch{}this[_0x5d2001(0x3ae)]&&(clearTimeout(this[_0x5d2001(0x3ae)]),this[_0x5d2001(0x3ae)]=null),this[_0x5d2001(0x322)]['clear'](),this[_0x5d2001(0x259)][_0x5d2001(0x734)](),this['_baselines'][_0x5d2001(0x734)](),this[_0x5d2001(0x707)][_0x5d2001(0x734)](),this['_pendingLocal'][_0x5d2001(0x734)]();}['_dedupeKey'](_0x2bda96,_0x4a9a17,_0xa10ee0,_0x4f2241){return _0x2bda96+'\x00'+_0x4a9a17+'\x00'+_0xa10ee0+'\x00'+_0x4f2241;}[_0x11fa1c(0x5be)](_0x5972e2,_0x533dce,_0xac90ce,_0x2d0f79){const _0x902627=_0x11fa1c,_0x2bb33a=this['_dedupeKey'](_0x5972e2,_0x533dce,_0xac90ce,_0x2d0f79);if(this[_0x902627(0x707)][_0x902627(0x571)](_0x2bb33a))return![];this['_seen'][_0x902627(0x280)](_0x2bb33a);if(this[_0x902627(0x707)][_0x902627(0x8d2)]>this[_0x902627(0x75b)]){const _0x2c0c36=this[_0x902627(0x707)]['values']()[_0x902627(0x48f)]()[_0x902627(0x2ef)];this[_0x902627(0x707)][_0x902627(0x2cb)](_0x2c0c36);}return!![];}[_0x11fa1c(0x31a)](_0x1dfbfd){const _0x437fa6=_0x11fa1c;if(!this[_0x437fa6(0x620)]||!_0x1dfbfd)return;const {env:_0x2c6f66,type:_0x44d621,key:_0x5accbe,clock:_0x53e76c}=_0x1dfbfd;if(_0x2c6f66==null||_0x44d621==null||_0x5accbe==null)return;if(typeof _0x2c6f66===_0x437fa6(0x2b1)&&_0x2c6f66[_0x437fa6(0x38a)]('~'))return;if(typeof _0x44d621===_0x437fa6(0x2b1)&&_0x44d621[_0x437fa6(0x38a)]('~'))return;this[_0x437fa6(0x356)][_0x437fa6(0x280)](this[_0x437fa6(0x37f)](_0x2c6f66,_0x44d621,_0x5accbe,_0x53e76c)),this[_0x437fa6(0x356)][_0x437fa6(0x8d2)]>this[_0x437fa6(0x75b)]&&this[_0x437fa6(0x356)][_0x437fa6(0x2cb)](this[_0x437fa6(0x356)][_0x437fa6(0x5d0)]()[_0x437fa6(0x48f)]()['value']);}[_0x11fa1c(0x2e1)](_0x592fb2){const _0x35ecd1=_0x11fa1c;if(!this['_started']||!_0x592fb2)return;const {env:_0x4628a2,type:_0x1786e4,key:_0x42c5c5,clock:_0x2ee517,origin:_0x56d0ca,action:_0x57134b,newValue:_0x52e531,oldValue:_0x1a13ef}=_0x592fb2;if(_0x4628a2==null||_0x1786e4==null||_0x42c5c5==null)return;if(typeof _0x4628a2===_0x35ecd1(0x2b1)&&_0x4628a2[_0x35ecd1(0x38a)]('~'))return;if(typeof _0x1786e4===_0x35ecd1(0x2b1)&&_0x1786e4[_0x35ecd1(0x38a)]('~'))return;this[_0x35ecd1(0x356)][_0x35ecd1(0x2cb)](this[_0x35ecd1(0x37f)](_0x4628a2,_0x1786e4,_0x42c5c5,_0x2ee517));if(!this[_0x35ecd1(0x5be)](_0x4628a2,_0x1786e4,_0x42c5c5,_0x2ee517))return;const _0x1ee2d8=_0x57134b===_0x1b739b['REMOVE']?_0x35ecd1(0x504):_0x35ecd1(0x253);this[_0x35ecd1(0x5a2)]('change',{'env':_0x4628a2,'type':_0x1786e4,'key':_0x42c5c5,'op':_0x1ee2d8,'clock':_0x2ee517,'origin':_0x56d0ca,'value':_0x1ee2d8===_0x35ecd1(0x504)?null:_0x52e531,'prevValue':_0x1a13ef});}[_0x11fa1c(0x768)](_0x45e487){const _0x506aa7=_0x11fa1c;if(!this[_0x506aa7(0x620)])return;if(!_0x45e487||typeof _0x45e487[_0x506aa7(0x609)]!=='string'||typeof _0x45e487['type']!=='string')return;const {env:_0x3f360c,type:_0x28b091}=_0x45e487;if(_0x3f360c[_0x506aa7(0x38a)]('~')||_0x28b091[_0x506aa7(0x38a)]('~'))return;this[_0x506aa7(0x322)][_0x506aa7(0x63f)](_0x3f360c+'\x00'+_0x28b091,{'env':_0x3f360c,'type':_0x28b091}),this['_scheduleFlush']();}['_scheduleFlush'](){const _0x3e0494=_0x11fa1c;if(this[_0x3e0494(0x3ae)])return;const _0x5ed9ce=()=>{const _0x2e1c17=_0x3e0494;this['_flushTimer']=null,this[_0x2e1c17(0x45f)]()[_0x2e1c17(0x6d7)](()=>{});};this[_0x3e0494(0x3ae)]=setTimeout(_0x5ed9ce,_0x4c9247(this[_0x3e0494(0x24d)]));}async['_drain'](){const _0x30c0f9=_0x11fa1c;if(this[_0x30c0f9(0x79e)]){this['_scheduleFlush']();return;}this['_draining']=!![];try{const _0x56639a=[...this[_0x30c0f9(0x322)][_0x30c0f9(0x5d0)]()];this['_pending'][_0x30c0f9(0x734)]();let _0x271575=![];for(const {env:_0x4c402a,type:_0x2035a1}of _0x56639a){try{const _0x2e3aaf=await this[_0x30c0f9(0x453)](_0x4c402a,_0x2035a1);if(_0x2e3aaf)_0x271575=!![];}catch{this[_0x30c0f9(0x322)][_0x30c0f9(0x63f)](_0x4c402a+'\x00'+_0x2035a1,{'env':_0x4c402a,'type':_0x2035a1}),_0x271575=!![];}}if(_0x271575||this[_0x30c0f9(0x322)][_0x30c0f9(0x8d2)]>0x0)this[_0x30c0f9(0x3ce)]();}finally{this['_draining']=![];}}async[_0x11fa1c(0x453)](_0x4f5667,_0x1dff89){const _0x2a99aa=_0x11fa1c,_0x2985e3=await this[_0x2a99aa(0x61e)]['_openEnvLazy'](_0x4f5667),_0x532529=_0x4f5667+'\x00'+_0x1dff89;!this['_cursors'][_0x2a99aa(0x571)](_0x532529)&&(!this[_0x2a99aa(0x22c)][_0x2a99aa(0x571)](_0x4f5667)&&(_0x2985e3[_0x2a99aa(0x378)](),this['_baselines'][_0x2a99aa(0x63f)](_0x4f5667,_0x2985e3[_0x2a99aa(0x3b3)]()||0x0)),this[_0x2a99aa(0x259)][_0x2a99aa(0x63f)](_0x532529,this[_0x2a99aa(0x22c)][_0x2a99aa(0x309)](_0x4f5667)));const _0x161bc7=this[_0x2a99aa(0x259)][_0x2a99aa(0x309)](_0x532529),_0x690572=_0x2985e3[_0x2a99aa(0x3b3)](_0x1dff89)||0x0;if(_0x690572<=_0x161bc7)return![];const _0x2501ff=_0x161bc7+this[_0x2a99aa(0x4c9)],_0x55d4bb=Math[_0x2a99aa(0x597)](_0x690572,_0x2501ff),_0x5383e7=_0xa82aa2['enabled']?_0xa82aa2[_0x2a99aa(0x8cc)]():0x0,_0x6af5e8=Array[_0x2a99aa(0x48d)](_0x2985e3['getChanges'](_0x1dff89,_0x161bc7+0x1,_0x55d4bb));let _0x5baeb8=_0x161bc7;for(const _0x2933bb of _0x6af5e8){const {clock:_0x2695df,key:_0x573718,action:_0x5c8fcd,origin:_0x3a4102}=_0x2933bb;if(_0x2695df>_0x5baeb8)_0x5baeb8=_0x2695df;if(_0x573718==null)continue;if(this[_0x2a99aa(0x356)][_0x2a99aa(0x571)](this[_0x2a99aa(0x37f)](_0x4f5667,_0x1dff89,_0x573718,_0x2695df)))continue;if(!this[_0x2a99aa(0x5be)](_0x4f5667,_0x1dff89,_0x573718,_0x2695df))continue;let _0x25d5e4,_0x247436;if(_0x5c8fcd===_0x1b739b[_0x2a99aa(0x8a0)])_0x25d5e4=_0x2a99aa(0x504),_0x247436=null;else{const _0x4da124=_0x2985e3[_0x2a99aa(0x309)](_0x1dff89,_0x573718);_0x4da124==null?(_0x25d5e4=_0x2a99aa(0x504),_0x247436=null):(_0x25d5e4=_0x2a99aa(0x253),_0x247436=_0x4da124);}this[_0x2a99aa(0x5a2)](_0x2a99aa(0x66f),{'env':_0x4f5667,'type':_0x1dff89,'key':_0x573718,'op':_0x25d5e4,'clock':_0x2695df,'origin':_0x3a4102,'value':_0x247436});}if(_0xa82aa2[_0x2a99aa(0x63d)])_0xa82aa2[_0x2a99aa(0x520)](_0x2a99aa(0x712)+_0x4f5667+':'+_0x1dff89,_0xa82aa2[_0x2a99aa(0x8cc)]()-_0x5383e7,'n='+_0x6af5e8[_0x2a99aa(0x68a)]);return this['_cursors'][_0x2a99aa(0x63f)](_0x532529,Math[_0x2a99aa(0x4a0)](_0x5baeb8,_0x55d4bb)),_0x2985e3[_0x2a99aa(0x3b3)](_0x1dff89)>_0x55d4bb;}[_0x11fa1c(0x717)](){const _0x57b3e2=_0x11fa1c;return{'started':this[_0x57b3e2(0x620)],'quantum':this[_0x57b3e2(0x4c9)],'flushDebounce':this[_0x57b3e2(0x24d)],'cursors':Object['fromEntries']([...this['_cursors'][_0x57b3e2(0x719)]()][_0x57b3e2(0x35e)](([_0x536928,_0x4f6207])=>[_0x536928[_0x57b3e2(0x306)]('\x00',':'),_0x4f6207])),'pending':this[_0x57b3e2(0x322)][_0x57b3e2(0x8d2)],'seen':this[_0x57b3e2(0x707)][_0x57b3e2(0x8d2)]};}}return _0x2ac925[_0x11fa1c(0x7fd)]=_0x518365,okdbChangefeed={'OKDBChangefeed':_0x2ac925},okdbChangefeed;}var okdbRelay,hasRequiredOkdbRelay;function requireOkdbRelay(){const _0x5de9d5=_0x5c70f8;if(hasRequiredOkdbRelay)return okdbRelay;hasRequiredOkdbRelay=0x1;const {EVENTS:_0x238cd7}=requireOkdbEnums(),_0x1d00a5=new Set([_0x238cd7[_0x5de9d5(0x401)],_0x238cd7[_0x5de9d5(0x32d)],_0x238cd7[_0x5de9d5(0x74e)]]),{ENGINE_EVENTS:_0x17fcfd}=requireOkdbEnginesEnums(),{EMBEDDINGS_EVENTS:_0x158334}=requireEnums(),{QUEUE_EVENTS:_0x1340a7}=requireOkdbQueueValidate(),_0x4522cf=Object[_0x5de9d5(0x5d0)](_0x238cd7),_0x591aa9=Object[_0x5de9d5(0x5d0)](_0x17fcfd)[_0x5de9d5(0x35e)](_0x3d7ec6=>'engine:'+_0x3d7ec6),_0x8a21d9=Object[_0x5de9d5(0x5d0)](_0x158334),_0x1c0676=Object[_0x5de9d5(0x5d0)](_0x1340a7),_0x5c9d57=[_0x5de9d5(0x833),_0x5de9d5(0x56e),'processor:error',_0x5de9d5(0x8eb),_0x5de9d5(0x789),'processor:retry'],_0x477482=[..._0x4522cf,..._0x591aa9,..._0x8a21d9,..._0x1c0676,..._0x5c9d57,_0x5de9d5(0x58d)],_0x4191b7=new Set(_0x477482),_0x1869d1=new Set([_0x238cd7[_0x5de9d5(0x401)],_0x238cd7['ITEM_UPDATE'],_0x238cd7[_0x5de9d5(0x74e)],_0x238cd7[_0x5de9d5(0x478)],_0x238cd7[_0x5de9d5(0x623)],_0x238cd7[_0x5de9d5(0x635)],_0x238cd7[_0x5de9d5(0x733)],_0x238cd7['INDEX_PROGRESS'],_0x158334[_0x5de9d5(0x56b)],_0x158334[_0x5de9d5(0x5b2)],_0x158334[_0x5de9d5(0x2ff)],_0x158334[_0x5de9d5(0x4f5)],_0x5de9d5(0x56e)]),_0x3787ea=_0x477482[_0x5de9d5(0x4e1)](_0x55a2bd=>_0x55a2bd===_0x5de9d5(0x58d)||!_0x1869d1['has'](_0x55a2bd)),_0x3c24bb=0x14,_0x32d8fe=0xc8;class _0xe03de8{constructor(_0x37f2f7,_0x1e4c9a={}){const _0xb5b86=_0x5de9d5;this['okdb']=_0x37f2f7,this[_0xb5b86(0x6b7)]=_0x1e4c9a[_0xb5b86(0x313)]??_0x3c24bb,this[_0xb5b86(0x2e2)]=_0x1e4c9a['ringSize']??_0x32d8fe,this[_0xb5b86(0x7de)]=new Set(),this[_0xb5b86(0x8c3)]=[],this['_listeners']=[],this[_0xb5b86(0x648)]=null,this[_0xb5b86(0x4ae)]=![],this[_0xb5b86(0x681)]=null,this[_0xb5b86(0x605)]=null;}[_0x5de9d5(0x29a)](){const _0x32d7a4=_0x5de9d5;if(this[_0x32d7a4(0x4ae)])return;this[_0x32d7a4(0x4ae)]=!![];const {okdb:_0x195df1}=this;this['_detachLog']=_0x195df1[_0x32d7a4(0x58d)][_0x32d7a4(0x29a)](_0x5e7a62=>this['_push'](_0x32d7a4(0x58d),_0x5e7a62));for(const _0x1bff69 of _0x477482){if(_0x1bff69===_0x32d7a4(0x58d))continue;const _0x580ffd=_0x1d00a5[_0x32d7a4(0x571)](_0x1bff69),_0x294312=_0x552df8=>{const _0xaa3f00=_0x32d7a4;if(_0x580ffd&&this[_0xaa3f00(0x681)])return;this[_0xaa3f00(0x499)](_0x1bff69,_0x552df8??{});};_0x195df1[_0x32d7a4(0x4cb)]['on'](_0x1bff69,_0x294312),this[_0x32d7a4(0x66d)][_0x32d7a4(0x28d)]({'event':_0x1bff69,'handler':_0x294312});}this[_0x32d7a4(0x36f)]=()=>this[_0x32d7a4(0x355)](),_0x195df1[_0x32d7a4(0x4cb)][_0x32d7a4(0x32f)](_0x238cd7[_0x32d7a4(0x528)],this[_0x32d7a4(0x36f)]);}[_0x5de9d5(0x355)](){const _0x111fbc=_0x5de9d5;if(!this[_0x111fbc(0x4ae)])return;if(this[_0x111fbc(0x36f)]){try{this['okdb'][_0x111fbc(0x4cb)][_0x111fbc(0x1c9)](_0x238cd7[_0x111fbc(0x528)],this[_0x111fbc(0x36f)]);}catch{}this[_0x111fbc(0x36f)]=null;}this['_detachLog']?.(),this['_detachLog']=null;for(const {event:_0x2d41a9,handler:_0x30adeb}of this[_0x111fbc(0x66d)]){try{this[_0x111fbc(0x61e)][_0x111fbc(0x4cb)][_0x111fbc(0x1c9)](_0x2d41a9,_0x30adeb);}catch{}}this[_0x111fbc(0x66d)]=[];for(const _0x254942 of this[_0x111fbc(0x7de)]){try{_0x254942['close']?.();}catch{}}this[_0x111fbc(0x7de)][_0x111fbc(0x734)](),this['detachFeed'](),this[_0x111fbc(0x4ae)]=![];}[_0x5de9d5(0x5ba)](_0x1b4ad1){const _0x5c7a5c=_0x5de9d5;if(!_0x1b4ad1||this['_feed']===_0x1b4ad1)return;this[_0x5c7a5c(0x70d)](),this[_0x5c7a5c(0x681)]=_0x1b4ad1,this[_0x5c7a5c(0x605)]=_0x4737bb=>{const _0x50f6c4=_0x5c7a5c;if(!_0x4737bb)return;const _0x59b50e=_0x4737bb['op']===_0x50f6c4(0x504)?_0x238cd7[_0x50f6c4(0x74e)]:_0x238cd7[_0x50f6c4(0x32d)];this[_0x50f6c4(0x499)](_0x59b50e,_0x4737bb);},_0x1b4ad1['on'](_0x5c7a5c(0x66f),this[_0x5c7a5c(0x605)]);}['detachFeed'](){const _0x128f2e=_0x5de9d5;if(this['_feed']&&this[_0x128f2e(0x605)])try{this['_feed']['off'](_0x128f2e(0x66f),this[_0x128f2e(0x605)]);}catch{}this[_0x128f2e(0x681)]=null,this[_0x128f2e(0x605)]=null;}['pushEphemeral'](_0x507b8c,_0x27c18e){const _0x44556b=_0x5de9d5;if(!_0x4191b7[_0x44556b(0x571)](_0x507b8c))return;this['_push'](_0x507b8c,_0x27c18e??{});}['subscribe'](_0x6f07bf,_0x557179,_0x2b3095){const _0xdcea63=_0x5de9d5;if(this[_0xdcea63(0x7de)]['size']>=this[_0xdcea63(0x6b7)])return _0x557179(_0xdcea63(0x857),{'message':_0xdcea63(0x441),'code':_0xdcea63(0x894)}),()=>{};const _0x5a0fe4=this['_resolveFilter'](_0x6f07bf),_0x5ba024={'send':_0x557179,'filter':_0x5a0fe4,'close':_0x2b3095??null};this['_connections'][_0xdcea63(0x280)](_0x5ba024);for(const {event:_0x5245a2,data:_0x2345fa}of this['_buffer']){if(_0x5a0fe4[_0xdcea63(0x571)](_0x5245a2))try{_0x557179(_0x5245a2,_0x2345fa);}catch{}}return()=>this[_0xdcea63(0x7de)][_0xdcea63(0x2cb)](_0x5ba024);}[_0x5de9d5(0x5f6)](){const _0x5c4018=_0x5de9d5;if(this['_feed'])return this[_0x5c4018(0x681)];const {OKDBChangefeed:_0x537b43}=requireOkdbChangefeed(),_0x4e112e=new _0x537b43(this[_0x5c4018(0x61e)]);_0x4e112e[_0x5c4018(0x45c)](),this[_0x5c4018(0x5ba)](_0x4e112e);if(this['okdb']&&!this[_0x5c4018(0x61e)][_0x5c4018(0x472)])this[_0x5c4018(0x61e)][_0x5c4018(0x472)]=_0x4e112e;return this[_0x5c4018(0x681)];}get[_0x5de9d5(0x80e)](){const _0x4953f8=_0x5de9d5;return this[_0x4953f8(0x7de)]['size'];}[_0x5de9d5(0x308)](){const _0x4101f7=_0x5de9d5;return{'connections':this['connectionCount'],'bufferSize':this[_0x4101f7(0x8c3)]['length'],'attached':this[_0x4101f7(0x4ae)],'allEvents':_0x477482[_0x4101f7(0x68a)],'defaultEvents':_0x3787ea[_0x4101f7(0x68a)]};}static get['ALL_EVENTS'](){return _0x477482;}static get['DEFAULT_EVENTS'](){return _0x3787ea;}static get[_0x5de9d5(0x6cb)](){return[..._0x1869d1];}[_0x5de9d5(0x69b)](_0x40ee1e){const _0x54b4e9=_0x5de9d5;if(!_0x40ee1e||!_0x40ee1e[_0x54b4e9(0x68a)])return new Set(_0x3787ea);const _0x2e11ba=_0x40ee1e[_0x54b4e9(0x4e1)](_0x5d4e2a=>_0x4191b7[_0x54b4e9(0x571)](_0x5d4e2a));return new Set(_0x2e11ba['length']?_0x2e11ba:_0x3787ea);}[_0x5de9d5(0x499)](_0x526b10,_0x1b821c){const _0xe970a2=_0x5de9d5,_0x4b77d8={..._0x1b821c,'_ts':_0x1b821c?.[_0xe970a2(0x3ad)]??_0x1b821c?.['ts']??Date['now']()};this[_0xe970a2(0x8c3)]['push']({'event':_0x526b10,'data':_0x4b77d8});if(this[_0xe970a2(0x8c3)][_0xe970a2(0x68a)]>this[_0xe970a2(0x2e2)])this[_0xe970a2(0x8c3)][_0xe970a2(0x812)]();for(const _0x5c2db2 of this[_0xe970a2(0x7de)]){if(_0x5c2db2['filter'][_0xe970a2(0x571)](_0x526b10))try{_0x5c2db2[_0xe970a2(0x574)](_0x526b10,_0x4b77d8);}catch{}}}}return okdbRelay=_0xe03de8,okdbRelay;}var hasRequiredLib;function requireLib(){const _0x39e754=_0x5c70f8;if(hasRequiredLib)return lib[_0x39e754(0x28e)];return hasRequiredLib=0x1,function(_0x3578a0){const _0xef20=_0x39e754,_0x4730b9=require$$0$6,{load:_0x300550}=require$$1$1,_0x261e57=requireBridge(),_0x40ef24=requireWritebatch(),{Pumper:_0xe941a1}=requirePump(),{OKDBEnv:_0x3c3dc3,HIGH_SENTINEL:_0x337090}=requireEnv(),{reclass:_0x4e6f50,NotImplementedNative:_0xe4ba3,OKDBError:_0x370fe4,optionsArg:_0x7906bb,invalidArgument:_0x54e14f}=requireErrors(),{notImplemented:_0x48613a}=requireUnsupported(),{OKDBHttp:_0x22cb9b}=requireHttp(),{OKDBFts:_0x346def}=requireFts(),{OKDBEmbeddings:_0x2e358d}=requireEmbeddings(),{OKDBAuth:_0x5ed8d7}=requireAuth(),{OKDBSync:_0x1e19e2}=requireSync(),{OKDBMigrate:_0x3b4d3b}=requireMigrate(),{OKDBFunctions:_0x3cb889}=requireFunctions(),{OKDBMcp:_0x2290a0}=requireMcp(),{OKDBEngines:_0x44dea6,OKDBPipelines:_0x449afb}=requireEngines(),{makeMeta:_0x2b15a1,makeLicenses:_0x24d2fd,makeLicenseChecker:_0x5459f6,makeProcesses:_0x9b35ce}=requireSys();let _0x12e8f8=null;function _0x198746(_0x4f3332){const _0x439698=_0x52a3;if(!_0x12e8f8){const {Unpackr:_0x4770be}=require$$18;_0x12e8f8=new _0x4770be({'useRecords':![],'mapsAsObjects':!![],'copyBuffers':!![]});}return _0x12e8f8[_0x439698(0x479)](_0x4f3332);}let _0x311c30=null;function _0x8cf03a(_0x2b8e87,_0x48e578){if(!_0x311c30){const {Unpackr:_0x20d435}=require$$18;_0x311c30=new _0x20d435({'copyBuffers':!![]});}return _0x311c30['unpack'](_0x2b8e87,_0x48e578);}const {encodeKey:_0x3f65b9,KEY_BUF_SIZE:_0x221984,NO_FAST:_0xab98d2}=requireKeyenc(),_0x287e1e=0x40*0x400,_0x4b7e32=0x4*0x400*0x400;function _0x6c51e7(_0x4f03fe,_0x28150d){const _0x371a21=_0x52a3,_0x1da5a3=_0x4f03fe[0x2],_0x17892d=_0x1da5a3?(_0x4f03fe['length']-0x3)/Math[_0x371a21(0x225)](_0x1da5a3):0x0,_0x5b8351=new Array(_0x17892d);let _0x3fc82f=0x3;if(_0x1da5a3===0x2){for(let _0x52e4fb=0x0;_0x52e4fb<_0x17892d;_0x52e4fb++,_0x3fc82f+=0x2)_0x5b8351[_0x52e4fb]={'key':_0x4f03fe[_0x3fc82f],'value':_0x4f03fe[_0x3fc82f+0x1]};}else{if(_0x1da5a3===0x3){for(let _0x472b95=0x0;_0x472b95<_0x17892d;_0x472b95++,_0x3fc82f+=0x3)_0x5b8351[_0x472b95]={'key':_0x4f03fe[_0x3fc82f],'value':_0x4f03fe[_0x3fc82f+0x1],'version':_0x4f03fe[_0x3fc82f+0x2]};}else{if(_0x1da5a3===-0x2){for(let _0x2bc815=0x0;_0x2bc815<_0x17892d;_0x2bc815++,_0x3fc82f+=0x2)_0x5b8351[_0x2bc815]={'clock':_0x4f03fe[_0x3fc82f],..._0x4f03fe[_0x3fc82f+0x1]};}else{if(_0x1da5a3===0x4){for(let _0x3d5672=0x0;_0x3d5672<_0x17892d;_0x3d5672++,_0x3fc82f+=0x4)_0x5b8351[_0x3d5672]={'key':_0x4f03fe[_0x3fc82f],'value':_0x4f03fe[_0x3fc82f+0x1],'version':_0x4f03fe[_0x3fc82f+0x2],'indexKey':_0x4f03fe[_0x3fc82f+0x3]};}else{if(_0x17892d)throw new Error(_0x371a21(0x621)+_0x1da5a3);}}}}return _0x28150d?[_0x4f03fe[0x0],_0x5b8351,_0x4f03fe[0x1]]:_0x5b8351;}let _0x495c22=null;function _0x109fb2(_0x5278f9,_0x18b841,_0x4ab269){const _0x2bc7d8=_0x52a3;if(!_0x495c22)_0x495c22=requireDist()['readKey'];const _0xc1e61f=new DataView(_0x5278f9[_0x2bc7d8(0x4b0)],_0x5278f9[_0x2bc7d8(0x204)],_0x18b841),_0x8b00ce=_0xc1e61f[_0x2bc7d8(0x361)](0x10,!![]),_0x4544e4=new Array(_0x8b00ce);let _0xd0f6f1=0x14;for(let _0xad83da=0x0;_0xad83da<_0x8b00ce;_0xad83da++){const _0x468c70=_0x5278f9[_0xd0f6f1]|_0x5278f9[_0xd0f6f1+0x1]<<0x8;_0xd0f6f1+=0x2,_0x4544e4[_0xad83da]=_0x495c22(_0x5278f9,_0xd0f6f1,_0xd0f6f1+_0x468c70),_0xd0f6f1+=_0x468c70;}return _0x4ab269?[_0xc1e61f[_0x2bc7d8(0x5a8)](0x0,!![]),_0x4544e4,_0xc1e61f['getFloat64'](0x8,!![])]:_0x4544e4;}const _0x48c4eb=requireOkdbLogger(),_0xa4ac97=requireOkdbPlugins(),{OKDB_STATE:_0x36d3a1,EVENTS:_0x5ae024}=requireOkdbEnums(),_0x16d1b5=requireStatics();let _0x4ddae5=null,_0x349d43=![],_0x15e341=0x1;const _0x686a76=new Map(),_0x4fb23f=new Set([_0xef20(0x6fe),'EMBED_PENDING']),_0x2a8b16=_0x2debe3=>!!_0x2debe3&&_0x4fb23f[_0xef20(0x571)](_0x2debe3[_0xef20(0x50e)]),_0x40a750=Number(process.env.OKDB_PENDING_RETRY_MS)>0x0?Number(process.env.OKDB_PENDING_RETRY_MS):0x1d4c0;function _0x53ab5b(){const _0x24dd13=_0xef20;!_0x349d43&&(_0x4d4498()[_0x24dd13(0x46e)](_0x261e57[_0x24dd13(0x7f3)]),_0x40ef24['install'](_0x4d4498()),_0x349d43=!![]);}function _0x4d4498(){if(!_0x4ddae5)_0x4ddae5=_0x300550();return _0x4ddae5;}class _0x4cc1bc extends Map{constructor(_0x40bbca){const _0x41ad19=_0xef20;super(),this[_0x41ad19(0x3e6)]=_0x40bbca;}['_sync'](){const _0x4f6525=_0xef20,_0x1dd257=this[_0x4f6525(0x3e6)];if(!_0x1dd257[_0x4f6525(0x663)])return;let _0x4adc35;try{_0x4adc35=_0x1dd257[_0x4f6525(0x210)]('db',null,'envNames',[],![]);}catch{return;}for(const _0x511c8b of _0x4adc35)if(!super['has'](_0x511c8b)&&_0x1dd257[_0x4f6525(0x210)]('db',null,_0x4f6525(0x805),[_0x511c8b],![]))_0x1dd257[_0x4f6525(0x6df)](_0x511c8b);}[_0xef20(0x309)](_0x153908){const _0x5afeb9=_0xef20,_0x54fff7=super[_0x5afeb9(0x309)](_0x153908);if(_0x54fff7!==undefined||typeof _0x153908!==_0x5afeb9(0x2b1))return _0x54fff7;const _0x21e8c8=this['_db'];if(_0x153908===_0x5afeb9(0x2c9))return _0x21e8c8['_isOpen']?_0x21e8c8['processes'][_0x5afeb9(0x34e)]??undefined:undefined;if(_0x21e8c8[_0x5afeb9(0x663)]&&_0x21e8c8[_0x5afeb9(0x210)]('db',null,_0x5afeb9(0x805),[_0x153908],![]))return _0x21e8c8[_0x5afeb9(0x6df)](_0x153908);if(_0x21e8c8[_0x5afeb9(0x663)]&&typeof _0x153908===_0x5afeb9(0x2b1)&&!_0x153908[_0x5afeb9(0x38a)]('~')){_0x21e8c8[_0x5afeb9(0x210)]('db',null,_0x5afeb9(0x714),[],![]);if(_0x21e8c8['_call']('db',null,'hasEnv',[_0x153908],![]))return _0x21e8c8[_0x5afeb9(0x6df)](_0x153908);}return undefined;}[_0xef20(0x571)](_0x2db831){const _0x22af46=_0xef20;return this[_0x22af46(0x309)](_0x2db831)!==undefined;}get[_0xef20(0x8d2)](){return this['_sync'](),super['size'];}[_0xef20(0x4ac)](){const _0x1b0cda=_0xef20;return this[_0x1b0cda(0x7d7)](),super[_0x1b0cda(0x4ac)]();}[_0xef20(0x5d0)](){const _0x14e31d=_0xef20;return this[_0x14e31d(0x7d7)](),super[_0x14e31d(0x5d0)]();}[_0xef20(0x719)](){const _0x23ff11=_0xef20;return this[_0x23ff11(0x7d7)](),super['entries']();}[_0xef20(0x5ff)](_0x33e9a9,_0x5314db){const _0x45981a=_0xef20;return this[_0x45981a(0x7d7)](),super[_0x45981a(0x5ff)](_0x33e9a9,_0x5314db);}[Symbol[_0xef20(0x344)]](){const _0x1f056e=_0xef20;return this[_0x1f056e(0x7d7)](),super[Symbol[_0x1f056e(0x344)]]();}}class _0x4514d2{constructor(_0x516bb3,_0xfd3e98={}){const _0x5cedbf=_0xef20,_0x28e1a5=_0x4d4498();this[_0x5cedbf(0x500)]=_0x516bb3,this[_0x5cedbf(0x741)]=_0x15e341++,this[_0x5cedbf(0x28c)]='db'+this[_0x5cedbf(0x741)],this[_0x5cedbf(0x688)]={..._0x16d1b5[_0x5cedbf(0x2d1)],..._0xfd3e98,'auth':_0xfd3e98[_0x5cedbf(0x7f0)]?{..._0xfd3e98[_0x5cedbf(0x7f0)]}:undefined,'lmdb':{..._0xfd3e98[_0x5cedbf(0x533)]||{}}},this['events']=new _0x4730b9(),this['events'][_0x5cedbf(0x88e)](0x0),this[_0x5cedbf(0x4ee)]=new Set(),this[_0x5cedbf(0x4cb)]['on'](_0x5cedbf(0x7dd),_0x5de324=>this[_0x5cedbf(0x46f)](_0x5de324)),this[_0x5cedbf(0x58d)]=new _0x48c4eb(this),this[_0x5cedbf(0x58d)][_0x5cedbf(0x4d5)](),_0x261e57['registerTarget'](this[_0x5cedbf(0x28c)],{'_deliver':(_0xd2ae26,_0x2ec189)=>this['_deliverEvent'](_0xd2ae26,_0x2ec189),'_log':_0x36e8f2=>{const _0x54ba6e=_0x5cedbf;if(this[_0x54ba6e(0x320)])this['_bootLog'][_0x54ba6e(0x28d)](_0x36e8f2);const _0x2f24bf=_0x36e8f2&&_0x36e8f2[_0x54ba6e(0x3a3)];if(_0x2f24bf&&Object[_0x54ba6e(0x511)][_0x54ba6e(0x3eb)][_0x54ba6e(0x4d1)](this[_0x54ba6e(0x58d)],_0x2f24bf)&&typeof this[_0x54ba6e(0x58d)][_0x2f24bf]===_0x54ba6e(0x640)){const _0x8d99aa=_0x36e8f2[_0x54ba6e(0x4bc)];return this[_0x54ba6e(0x58d)][_0x2f24bf](_0x36e8f2['msg'],{..._0x36e8f2[_0x54ba6e(0x447)]||{},..._0x8d99aa&&typeof _0x8d99aa==='object'?_0x8d99aa:{}});}return this['log']['ingest'](_0x36e8f2);}}),_0x53ab5b();try{const _0x55dec4={};if(typeof _0x5cedbf(0x43b)===_0x5cedbf(0x6a3)||_0x5cedbf(0x43b)!==_0x5cedbf(0x43b));const _0x54bc70={..._0xfd3e98,'_clusterWorker':require(_0x5cedbf(0x45e))[_0x5cedbf(0x41b)],..._0x55dec4};this[_0x5cedbf(0x7d4)]={'instance':null,'envs':new Map()};typeof _0xfd3e98['encryptionKey']===_0x5cedbf(0x640)&&(this[_0x5cedbf(0x7d4)]['instance']=_0xfd3e98[_0x5cedbf(0x32b)],delete _0x54bc70[_0x5cedbf(0x32b)]);if(_0xfd3e98[_0x5cedbf(0x7ca)]&&typeof _0xfd3e98[_0x5cedbf(0x7ca)]===_0x5cedbf(0x559)){for(const [_0xe3d2e3,_0x1df860]of Object['entries'](_0xfd3e98['encryptionKeys']))this['_keyFns'][_0x5cedbf(0x27e)][_0x5cedbf(0x63f)](_0xe3d2e3,_0x1df860);}delete _0x54bc70['encryptionKeys'],this[_0x5cedbf(0x858)]=new _0x28e1a5[(_0x5cedbf(0x7d2))](_0x516bb3,_0x54bc70,this[_0x5cedbf(0x28c)]);}catch(_0x216154){_0x261e57['unregisterTarget'](this[_0x5cedbf(0x28c)]);throw _0x4e6f50(_0x216154);}this[_0x5cedbf(0x74f)]=_0x36d3a1['CREATED'],this[_0x5cedbf(0x663)]=![],this[_0x5cedbf(0x612)]=new _0x4cc1bc(this),this[_0x5cedbf(0x5fd)]=new _0xe941a1({'pump':()=>this[_0x5cedbf(0x858)][_0x5cedbf(0x672)]()}),this[_0x5cedbf(0x2d7)]=new _0x40ef24[(_0x5cedbf(0x47c))](this),this[_0x5cedbf(0x5fd)]['afterTurn']=()=>_0x261e57[_0x5cedbf(0x2f7)](),_0x261e57['setKick'](()=>this[_0x5cedbf(0x5fd)]['wake'](),this),_0x686a76[_0x5cedbf(0x63f)](this[_0x5cedbf(0x741)],this),this[_0x5cedbf(0x803)]={},_0x261e57['setCurrentDb'](this),this['fts']=new _0x346def(this),this[_0x5cedbf(0x7f1)]=new _0x2e358d(this),this['engines']=new _0x44dea6(this,null,null),this[_0x5cedbf(0x723)]=new _0x449afb(this,null),this[_0x5cedbf(0x447)]=_0x2b15a1(this),this[_0x5cedbf(0x63b)]=_0x24d2fd(this),this['_license']=_0x5459f6(this),this[_0x5cedbf(0x1ff)]=_0x9b35ce(this),this[_0x5cedbf(0x562)]=_0x568e4a(this),this[_0x5cedbf(0x1f9)]=new _0xa4ac97(this),this[_0x5cedbf(0x755)]=new _0x22cb9b(this),this[_0x5cedbf(0x59c)]=new _0x1e19e2(this),this[_0x5cedbf(0x7f0)]=new _0x5ed8d7(this),this[_0x5cedbf(0x7b5)]=new _0x3cb889(this,null),this[_0x5cedbf(0x201)]=new _0x2290a0(this),this[_0x5cedbf(0x7ed)]=_0xfd3e98&&_0xfd3e98[_0x5cedbf(0x7ed)]===![]?null:_0x48613a(_0x5cedbf(0x7ed)),this[_0x5cedbf(0x7a5)]=_0x48613a(_0x5cedbf(0x7a5)),this[_0x5cedbf(0x516)]=new _0x3b4d3b(this);}[_0xef20(0x210)](_0x5773ce,_0x166a27,_0xd8dd34,_0x2cda4a,_0x55c876=!![]){const _0x2f8cd2=_0xef20;if(_0x55c876&&this[_0x2f8cd2(0x2d7)]&&this['_wb'][_0x2f8cd2(0x622)]['length'])this[_0x2f8cd2(0x2d7)][_0x2f8cd2(0x8e6)]();try{return this[_0x2f8cd2(0x858)]['call'](_0x5773ce,_0x166a27,_0xd8dd34,_0x2cda4a);}catch(_0x2e0a90){throw _0x4e6f50(_0x2e0a90);}finally{if(_0x55c876)this['_pumper']['wake']();}}[_0xef20(0x76a)](_0xa850e9,_0x2eb405,_0x4c14b0,_0x49c811){let _0x26828d;try{_0x26828d=this['_native']['callPacked'](_0xa850e9,_0x2eb405,_0x4c14b0,_0x49c811);}catch(_0x48714e){throw _0x4e6f50(_0x48714e);}return _0x26828d instanceof Uint8Array?_0x198746(_0x26828d):_0x26828d[0x0];}['_readBuf'](_0x4ba750){const _0xd70adf=_0xef20;let _0x2675e6=this[_0xd70adf(0x1ce)];if(_0x2675e6&&_0x4ba750<=_0x2675e6[_0xd70adf(0x68a)])return _0x2675e6;let _0x27818d=_0x2675e6?_0x2675e6[_0xd70adf(0x68a)]:_0x287e1e;while(_0x27818d<_0x4ba750)_0x27818d*=0x2;if(_0x27818d>_0x4b7e32)return _0x2675e6;return _0x2675e6=this[_0xd70adf(0x1ce)]=Buffer[_0xd70adf(0x6fb)](_0x27818d),this[_0xd70adf(0x858)][_0xd70adf(0x505)](_0x2675e6),_0x2675e6;}[_0xef20(0x5ae)](_0x38c4f4,_0x33592a,_0x3a6582){const _0x51bc79=_0xef20;if(!this[_0x51bc79(0x1ce)])this[_0x51bc79(0x5fc)](0x0);const _0x25c60d=this[_0x51bc79(0x858)][_0x51bc79(0x57e)](_0x38c4f4,_0x33592a,_0x3a6582);if(typeof _0x25c60d===_0x51bc79(0x6e7))return _0x8cf03a(this[_0x51bc79(0x1ce)],_0x25c60d);if(_0x25c60d===undefined||_0x25c60d===null)return _0x25c60d;return this[_0x51bc79(0x5fc)](_0x25c60d[_0x51bc79(0x68a)]),_0x8cf03a(_0x25c60d);}['_getFast'](_0x428f6a,_0x4fb814,_0x399258){const _0x2c32af=_0xef20;let _0x2c4a6b=this[_0x2c32af(0x60f)];if(!_0x2c4a6b){_0x2c4a6b=this[_0x2c32af(0x60f)]=Buffer['allocUnsafeSlow'](_0x221984),this[_0x2c32af(0x858)][_0x2c32af(0x3b1)](_0x2c4a6b),this['_tids']=new Map();if(!this[_0x2c32af(0x1ce)])this[_0x2c32af(0x5fc)](0x0);}const _0xcb926b=_0x3f65b9(_0x399258,_0x2c4a6b);if(_0xcb926b<0x0)return _0xab98d2;let _0x2fd3e7=this[_0x2c32af(0x5b0)]['get'](_0x428f6a);if(_0x2fd3e7===undefined)this[_0x2c32af(0x5b0)][_0x2c32af(0x63f)](_0x428f6a,_0x2fd3e7=new Map());let _0x4e159c=_0x2fd3e7[_0x2c32af(0x309)](_0x4fb814);if(_0x4e159c===undefined)_0x2fd3e7[_0x2c32af(0x63f)](_0x4fb814,_0x4e159c=this[_0x2c32af(0x858)]['typeId'](_0x428f6a,_0x4fb814));if(_0x4e159c<0x0)return _0xab98d2;const _0x175a7c=this['_native'][_0x2c32af(0x36e)](_0x4e159c,_0xcb926b);if(typeof _0x175a7c===_0x2c32af(0x6e7))return _0x8cf03a(this['_rbuf'],_0x175a7c);if(_0x175a7c===undefined||_0x175a7c===null)return _0x175a7c;return this[_0x2c32af(0x5fc)](_0x175a7c[_0x2c32af(0x68a)]),_0x8cf03a(_0x175a7c);}['_callRows'](_0x3879e3,_0x57efbe,_0x531f5b){const _0x5be6ea=_0xef20;if(!this[_0x5be6ea(0x1ce)])this[_0x5be6ea(0x5fc)](0x0);let _0x1312b8;try{_0x1312b8=this[_0x5be6ea(0x858)]['callRows'](_0x3879e3,_0x57efbe,_0x531f5b);}catch(_0x107248){throw _0x4e6f50(_0x107248);}const _0x2df419=_0x57efbe===_0x5be6ea(0x6a1),_0x4e9925=_0x2df419?_0x531f5b[0x1]:_0x57efbe;let _0x14add1=this[_0x5be6ea(0x1ce)],_0x238642=_0x1312b8;if(_0x1312b8 instanceof Uint8Array)this[_0x5be6ea(0x5fc)](_0x1312b8['length']),_0x14add1=_0x1312b8,_0x238642=_0x1312b8['length'];else{if(typeof _0x1312b8!==_0x5be6ea(0x6e7))return _0x1312b8[0x0];}if(_0x4e9925===_0x5be6ea(0x300))return _0x109fb2(_0x14add1,_0x238642,_0x2df419);if(_0x4e9925==='getMany')return _0x8cf03a(_0x14add1,_0x238642);return _0x6c51e7(_0x8cf03a(_0x14add1,_0x238642),_0x2df419);}[_0xef20(0x661)](_0x2e80b8,_0x46749a,_0x4b70b,_0x249bc4,_0x2b49fc=!![],_0x423219=!![]){const _0x37e7ae=_0xef20,_0x2f9653=()=>this[_0x37e7ae(0x7d6)](()=>this[_0x37e7ae(0x210)](_0x2e80b8,_0x46749a,_0x4b70b,_0x249bc4,_0x2b49fc));if(!_0x423219)return _0x2f9653();return this[_0x37e7ae(0x302)](_0x2f9653);}['_retryPending'](_0x381eae){const _0x1262c9=_0xef20;return _0x381eae()[_0x1262c9(0x6d7)](async _0x47e7c0=>{const _0x5cec3e=_0x1262c9;if(!_0x2a8b16(_0x47e7c0))throw _0x47e7c0;const _0x50939b=Date[_0x5cec3e(0x8cc)]()+_0x40a750;let _0x1d213f=0x1;while(_0x2a8b16(_0x47e7c0)&&Date[_0x5cec3e(0x8cc)]()<_0x50939b){await new Promise(_0x579cc3=>setTimeout(_0x579cc3,_0x1d213f)),_0x1d213f=Math[_0x5cec3e(0x597)](_0x1d213f*0x2,0x14);try{return await _0x381eae();}catch(_0x2a4d37){_0x47e7c0=_0x2a4d37;}}throw _0x47e7c0;});}['_settleRead'](_0x485a51){if(_0x261e57['inNativeCall']())return Promise['resolve'](_0x485a51);return new Promise(_0x408b64=>setImmediate(()=>_0x408b64(_0x485a51)));}[_0xef20(0x7aa)](_0x521a89){const _0x4c98b1=_0xef20;if(_0x261e57[_0x4c98b1(0x6a8)]())return Promise[_0x4c98b1(0x22e)](_0x521a89);return this['_afterDurable']()[_0x4c98b1(0x801)](()=>_0x521a89);}[_0xef20(0x4e0)](){return new Promise(_0x3779ee=>setImmediate(()=>{const _0x9535d3=_0x52a3;let _0x24d290;try{_0x24d290=this[_0x9535d3(0x858)][_0x9535d3(0x34c)]();}catch{return _0x3779ee();}_0x40ef24[_0x9535d3(0x1ec)](_0x24d290,_0x3779ee);}));}[_0xef20(0x7d6)](_0x5c1053){return new Promise((_0x4e7f86,_0x47defe)=>setImmediate(()=>{try{_0x4e7f86(_0x5c1053());}catch(_0x22f463){_0x47defe(_0x22f463);}}));}[_0xef20(0x66b)](_0x240505,_0x3132cb,_0x32c9ec){return _0x4cc447(_0x240505,_0x3132cb,_0x32c9ec);}[_0xef20(0x46f)](_0x49cd14){const _0x1510ea=_0xef20;if(typeof _0x49cd14!==_0x1510ea(0x2b1)||this[_0x1510ea(0x4ee)][_0x1510ea(0x571)](_0x49cd14)||_0x49cd14===_0x1510ea(0x7dd)||_0x49cd14===_0x1510ea(0x8ed))return;this[_0x1510ea(0x4ee)][_0x1510ea(0x280)](_0x49cd14);try{this['_native'][_0x1510ea(0x4d1)](_0x1510ea(0x4cb),null,_0x1510ea(0x43a),[this[_0x1510ea(0x28c)],_0x49cd14]);}catch{}}[_0xef20(0x2f6)](_0x53bb23,_0x560575){const _0x27ccb4=_0xef20;this[_0x27ccb4(0x4cb)][_0x27ccb4(0x5a2)](_0x53bb23,_0x560575);}async[_0xef20(0x389)](){const _0x547e4d=_0xef20,_0x4d21fc=this[_0x547e4d(0x7d4)];if(_0x4d21fc[_0x547e4d(0x327)])this[_0x547e4d(0x55b)](null,await _0x4d21fc[_0x547e4d(0x327)](null),!![]);for(const [_0x426381,_0x16760c]of _0x4d21fc[_0x547e4d(0x27e)])this[_0x547e4d(0x55b)](_0x426381,typeof _0x16760c===_0x547e4d(0x640)?await _0x16760c(_0x426381):_0x16760c,typeof _0x16760c===_0x547e4d(0x640));(_0x4d21fc['instance']||[..._0x4d21fc[_0x547e4d(0x27e)][_0x547e4d(0x5d0)]()]['some'](_0x5d7b24=>typeof _0x5d7b24==='function'))&&!this['_keyListener']&&(this['_keyListener']=_0x5d9996=>{const _0x5a584b=_0x547e4d,_0xa43a22=_0x5d9996&&_0x5d9996[_0x5a584b(0x609)]!=null?_0x5d9996[_0x5a584b(0x609)]:null,_0x5c09d5=_0xa43a22==null?_0x4d21fc[_0x5a584b(0x327)]:_0x4d21fc[_0x5a584b(0x27e)][_0x5a584b(0x309)](_0xa43a22);if(typeof _0x5c09d5!==_0x5a584b(0x640))return;Promise[_0x5a584b(0x22e)]()['then'](()=>_0x5c09d5(_0xa43a22))[_0x5a584b(0x801)](_0x41d210=>this['_setKey'](_0xa43a22,_0x41d210,!![]))['catch'](_0x4052ff=>this[_0x5a584b(0x58d)][_0x5a584b(0x62e)]('encryption\x20key\x20function\x20failed:\x20'+(_0x4052ff&&_0x4052ff['message']),{'env':_0xa43a22}));},this[_0x547e4d(0x4cb)]['on'](_0x547e4d(0x808),this[_0x547e4d(0x673)]));}[_0xef20(0x55b)](_0x27e4fd,_0x145e0a,_0x1f5e8d){const _0x3008cf=_0xef20;if(_0x145e0a==null)throw new _0x370fe4(_0x3008cf(0x461)+(_0x27e4fd?_0x3008cf(0x2bc)+_0x27e4fd+'\x22':'')+'\x20returned\x20no\x20key','ENCRYPTION_KEY_REQUIRED');this[_0x3008cf(0x858)][_0x3008cf(0x4d1)]('db',null,_0x3008cf(0x37c),[_0x27e4fd,_0x145e0a,!!_0x1f5e8d]);}async['changeEncryptionKey'](_0x7e2411){const _0x5719ca=_0xef20;this[_0x5719ca(0x7a2)]();const {env:env=null,to:_0x53b2bb}=_0x7906bb(_0x7e2411),_0x4447b5=typeof _0x53b2bb===_0x5719ca(0x640),_0x60ed69=_0x4447b5?await _0x53b2bb(env):_0x53b2bb;if(_0x60ed69==null)throw _0x54e14f(_0x5719ca(0x209),_0x5719ca(0x637),_0x60ed69);const _0x5ea1d6=this[_0x5719ca(0x210)]('db',null,_0x5719ca(0x704),[env,_0x60ed69,_0x4447b5]);if(_0x4447b5){if(env==null)this[_0x5719ca(0x7d4)]['instance']=_0x53b2bb;else this['_keyFns'][_0x5719ca(0x27e)][_0x5719ca(0x63f)](env,_0x53b2bb);}return _0x5ea1d6;}async[_0xef20(0x3f9)](_0x2d0811){const _0x992abc=_0xef20;this['_assertOpen']();const _0x191535=_0x7906bb(_0x2d0811);if(!_0x191535['env'])throw _0x54e14f('reencrypt:\x20env','an\x20environment\x20name',_0x191535[_0x992abc(0x609)]);let _0x4c6cbf=_0x191535['to'];const _0x300eaf=typeof _0x4c6cbf===_0x992abc(0x640);if(_0x300eaf)_0x4c6cbf=await _0x191535['to'](_0x191535['env']);const _0x54cf2f=await this[_0x992abc(0x7d6)](()=>this[_0x992abc(0x210)]('db',null,_0x992abc(0x3f9),[_0x191535[_0x992abc(0x609)],'to'in _0x191535?_0x4c6cbf:undefined,_0x300eaf]));if(_0x300eaf)this[_0x992abc(0x7d4)]['envs'][_0x992abc(0x63f)](_0x191535[_0x992abc(0x609)],_0x191535['to']);return _0x54cf2f;}async['open'](){const _0x2cdf5a=_0xef20;if(this['state']===_0x36d3a1[_0x2cdf5a(0x69d)])return;if(this[_0x2cdf5a(0x74f)]!==_0x36d3a1[_0x2cdf5a(0x890)])throw new _0x370fe4('Database\x20already\x20opened/closed',_0x2cdf5a(0x58e),{'state':this['state']});this[_0x2cdf5a(0x74f)]=_0x36d3a1[_0x2cdf5a(0x72a)],this['_bootLog']=[];try{try{await this[_0x2cdf5a(0x389)](),await this[_0x2cdf5a(0x7d6)](()=>this[_0x2cdf5a(0x858)][_0x2cdf5a(0x260)]());}catch(_0x4c4b9f){throw _0x4e6f50(_0x4c4b9f);}}catch(_0x4ccc6f){this[_0x2cdf5a(0x74f)]=_0x36d3a1[_0x2cdf5a(0x8db)],this[_0x2cdf5a(0x320)]=null,this['_teardownNative']();throw _0x4ccc6f;}this[_0x2cdf5a(0x663)]=!![],this[_0x2cdf5a(0x74f)]=_0x36d3a1[_0x2cdf5a(0x69d)];try{this[_0x2cdf5a(0x210)]('db',null,_0x2cdf5a(0x2fc),[this[_0x2cdf5a(0x1f9)][_0x2cdf5a(0x477)]['map'](_0x2679da=>_0x2679da[_0x2cdf5a(0x882)]?.[_0x2cdf5a(0x54b)])[_0x2cdf5a(0x4e1)](Boolean)],![]),await this[_0x2cdf5a(0x1f9)][_0x2cdf5a(0x45c)]();}catch(_0x1d6170){this[_0x2cdf5a(0x74f)]=_0x36d3a1[_0x2cdf5a(0x67f)];try{this[_0x2cdf5a(0x858)][_0x2cdf5a(0x5df)]();}catch{}this['state']=_0x36d3a1[_0x2cdf5a(0x8db)],this[_0x2cdf5a(0x663)]=![],this[_0x2cdf5a(0x627)]();throw _0x1d6170;}for(const _0x3166c1 of this['_call']('db',null,_0x2cdf5a(0x24c),[],![]))if(!_0x3166c1[_0x2cdf5a(0x38a)]('~'))this[_0x2cdf5a(0x6df)](_0x3166c1);try{if(this[_0x2cdf5a(0x210)]('db',null,_0x2cdf5a(0x805),[_0x2cdf5a(0x5ed)],![])){this[_0x2cdf5a(0x6d9)]=this[_0x2cdf5a(0x6df)]('~log');const _0x262fd1=new Set(this[_0x2cdf5a(0x58d)][_0x2cdf5a(0x1d8)]);this['_detachLogSink']=this[_0x2cdf5a(0x58d)][_0x2cdf5a(0x698)](this[_0x2cdf5a(0x6d9)],this['id']);const _0x6ffb40=[...this[_0x2cdf5a(0x58d)][_0x2cdf5a(0x1d8)]][_0x2cdf5a(0x73d)](_0x599461=>!_0x262fd1[_0x2cdf5a(0x571)](_0x599461)),_0x22c90c=this[_0x2cdf5a(0x210)]('db',null,'bootLogMark',[],![]);for(const _0x45de3d of(this['_bootLog']??[])['slice'](_0x22c90c))_0x6ffb40?.(_0x45de3d);}}catch{}this[_0x2cdf5a(0x320)]=null,this[_0x2cdf5a(0x858)][_0x2cdf5a(0x75e)](()=>this[_0x2cdf5a(0x5fd)]['wake']()),this[_0x2cdf5a(0x5fd)][_0x2cdf5a(0x45c)]();}async[_0xef20(0x5f5)](){const _0x19d8f9=_0xef20;return this[_0x19d8f9(0x661)]('db',null,'bootRuntime',[]);}async[_0xef20(0x5df)](){const _0x46ba9a=_0xef20;if(this[_0x46ba9a(0x74f)]===_0x36d3a1['STOPPED'])return;if(this['state']!==_0x36d3a1[_0x46ba9a(0x69d)])throw new _0x370fe4(_0x46ba9a(0x39c),'INVALID_STATE',{'state':this[_0x46ba9a(0x74f)]});this['state']=_0x36d3a1[_0x46ba9a(0x67f)],this[_0x46ba9a(0x663)]=![];let _0x46e551=null;if(this[_0x46ba9a(0x755)][_0x46ba9a(0x6eb)][_0x46ba9a(0x68a)])try{await this['http'][_0x46ba9a(0x5df)]();}catch(_0x7a83ae){_0x46e551=_0x7a83ae;}if(this['__adminRelay']){try{this['__adminRelay'][_0x46ba9a(0x70d)](),this[_0x46ba9a(0x3ff)][_0x46ba9a(0x355)]();}catch{}this['__adminRelay']=null;}try{this['_changefeed']?.['stop']?.();}catch{}try{await this[_0x46ba9a(0x1f9)][_0x46ba9a(0x1f1)]();}catch(_0x2487f9){_0x46e551=_0x2487f9;}for(const _0x3e08a9 of[...Map['prototype'][_0x46ba9a(0x5d0)][_0x46ba9a(0x4d1)](this['_envs'])]){try{await _0x3e08a9[_0x46ba9a(0x5fa)][_0x46ba9a(0x560)]();}catch{}try{await _0x3e08a9[_0x46ba9a(0x655)][_0x46ba9a(0x1f1)]();}catch{}}for(const _0x231483 of[()=>this[_0x46ba9a(0x59c)]['stop'](),()=>this[_0x46ba9a(0x7f1)][_0x46ba9a(0x1f1)](),()=>this['fts']&&this['fts']['stop']?.()]){try{await _0x231483();}catch{}}const _0x89629=this[_0x46ba9a(0x688)][_0x46ba9a(0x4f0)]??0x7530,_0x535bed=[];for(const _0x24f790 of[...Map['prototype'][_0x46ba9a(0x5d0)][_0x46ba9a(0x4d1)](this[_0x46ba9a(0x612)])]){if(_0x24f790[_0x46ba9a(0x622)]?.[_0x46ba9a(0x1d5)]?.[_0x46ba9a(0x8d2)]>0x0)_0x535bed['push'](_0x24f790[_0x46ba9a(0x622)][_0x46ba9a(0x560)](_0x89629));}if(_0x535bed['length']>0x0)await Promise[_0x46ba9a(0x30e)](_0x535bed);try{this[_0x46ba9a(0x6af)]?.();}catch{}this[_0x46ba9a(0x6af)]=null;try{await this[_0x46ba9a(0x2d7)][_0x46ba9a(0x3ec)]();}catch{}this[_0x46ba9a(0x5fd)][_0x46ba9a(0x1f1)]();try{await this[_0x46ba9a(0x7d6)](()=>this[_0x46ba9a(0x858)][_0x46ba9a(0x5df)]());}catch(_0xb07c14){_0x46e551=_0x46e551||_0x4e6f50(_0xb07c14);}this['state']=_0x36d3a1[_0x46ba9a(0x8db)],this[_0x46ba9a(0x627)](),Map[_0x46ba9a(0x511)][_0x46ba9a(0x734)][_0x46ba9a(0x4d1)](this[_0x46ba9a(0x612)]);if(_0x46e551)throw _0x46e551;}[_0xef20(0x627)](){const _0x11b20e=_0xef20;this[_0x11b20e(0x5fd)][_0x11b20e(0x1f1)]();try{this['_native'][_0x11b20e(0x75e)](null);}catch{}try{this[_0x11b20e(0x858)][_0x11b20e(0x49e)]();}catch{}this['_rbuf']=null,this[_0x11b20e(0x60f)]=null,this[_0x11b20e(0x5b0)]=null,_0x261e57[_0x11b20e(0x7a6)](this[_0x11b20e(0x28c)]),_0x261e57['forgetDb'](this),_0x686a76[_0x11b20e(0x2cb)](this[_0x11b20e(0x741)]);if(_0x261e57[_0x11b20e(0x82d)](this)){const _0x3e72b4=[..._0x686a76[_0x11b20e(0x5d0)]()][_0x11b20e(0x5d5)]();if(_0x3e72b4)_0x261e57[_0x11b20e(0x66a)](()=>_0x3e72b4['_pumper'][_0x11b20e(0x2c2)](),_0x3e72b4);else _0x261e57['setKick'](()=>{},null);}}get['id'](){const _0x27cef0=_0xef20;return this[_0x27cef0(0x210)]('db',null,'id',[],![]);}[_0xef20(0x222)](_0x3ca43b){const _0x66b7c5=_0xef20;return this['env'](_0x66b7c5(0x2a6))[_0x66b7c5(0x222)](_0x3ca43b);}get['_tokenSecret'](){const _0xa6dc66=_0xef20;return this['_rootDb'][_0xa6dc66(0x309)](_0xa6dc66(0x689));}get[_0xef20(0x4e3)](){const _0x302794=_0xef20;return this['sync'][_0x302794(0x4e3)];}get[_0xef20(0x1cc)](){const _0x534566=_0xef20;return this[_0x534566(0x59c)][_0x534566(0x1cc)];}get[_0xef20(0x715)](){const _0x456a24=_0xef20;if(!this[_0x456a24(0x663)]||!this[_0x456a24(0x210)]('db',null,'subsBuilt',[],![]))return undefined;if(!this[_0x456a24(0x763)]){const _0x4a698b=requireOkdbSubscriptionsStore(),_0x34db71=new _0x4a698b(this,this['options']&&this[_0x456a24(0x688)]['subscriptions']);_0x34db71['_sub']=this[_0x456a24(0x609)](_0x456a24(0x3cf));const {compileFilter:_0x2e488c}=requireOkdbQueryFilter(),_0x1f472f=(_0x202a13,_0x461afb)=>{if(_0x202a13==null)return![];try{return _0x2e488c(_0x202a13)(_0x461afb);}catch{return![];}};this[_0x456a24(0x763)]={'store':_0x34db71,'router':{'_matches':_0x1f472f}};}return this[_0x456a24(0x763)];}get['_role'](){return this['role'];}get[_0xef20(0x33a)](){const _0x14964f=_0xef20;return this['_call']('db',null,_0x14964f(0x33a),[],![]);}get[_0xef20(0x3e4)](){const _0x39831b=_0xef20;return{...this[_0x39831b(0x210)]('db',null,'role',[],![])};}get[_0xef20(0x1d0)](){return require$$29['version'];}get[_0xef20(0x334)](){const _0x22a97a=_0xef20;return this[_0x22a97a(0x210)]('db',null,_0x22a97a(0x7e3),[],![]);}get['info'](){const _0x431edd=_0xef20;return this[_0x431edd(0x210)]('db',null,'info',[],![]);}['getResolvedOptions'](){return this['_call']('db',null,'resolvedOptions',[],![]);}[_0xef20(0x5f0)](){const _0x228c10=_0xef20;return this['_call']('db',null,_0x228c10(0x5f0),[],![]);}async['setProcessingConfig'](_0x3cb14b){const _0x3060d7=_0xef20;this[_0x3060d7(0x7a2)](),this['_call']('db',null,_0x3060d7(0x288),[_0x3cb14b],![]);}[_0xef20(0x39a)](){const _0x25a5f1=_0xef20,_0x3b2f13=Date[_0x25a5f1(0x8cc)]();if(this['_pressure']&&_0x3b2f13-this['_pressure']['at']<0xfa)return this[_0x25a5f1(0x38f)][_0x25a5f1(0x2ef)];const _0xff3de0=this[_0x25a5f1(0x210)]('db',null,_0x25a5f1(0x39a),[],![]);return this['_pressure']={'at':_0x3b2f13,'value':_0xff3de0},_0xff3de0;}[_0xef20(0x7a2)](){const _0x13a40a=_0xef20;if(!this[_0x13a40a(0x663)])throw new _0x370fe4(_0x13a40a(0x39c),_0x13a40a(0x58e),{'state':this[_0x13a40a(0x74f)]});}get[_0xef20(0x611)](){const _0x5be729=_0xef20;if(this[_0x5be729(0x74f)]===_0x36d3a1['STOPPED']||!this[_0x5be729(0x663)])return null;if(this[_0x5be729(0x210)]('db',null,_0x5be729(0x1fb),[],![])==null)return null;if(!this[_0x5be729(0x326)]){const _0x56e20a=this;this[_0x5be729(0x326)]={get 'state'(){const _0x126334=_0x5be729;return _0x56e20a[_0x126334(0x210)]('db',null,_0x126334(0x1fb),[],![]);},get 'magic'(){const _0x2468ff=_0x5be729;return Buffer[_0x2468ff(0x48d)](_0x2468ff(0x79d)+_0x56e20a['id']);},get 'isRunning'(){const _0x583a9e=_0x5be729;return _0x56e20a[_0x583a9e(0x210)]('db',null,_0x583a9e(0x1fb),[],![])===_0x583a9e(0x3c4);},'emit'(_0x8c36fb,_0x576de2=''){const _0x255121=_0x5be729;_0x56e20a['_call']('db',null,_0x255121(0x2cf),[_0x8c36fb,String(_0x576de2)],![]);}};}return this[_0x5be729(0x326)];}[_0xef20(0x80d)](_0x3afedb,_0x3f6099){const _0x5c4cfa=_0xef20;this[_0x5c4cfa(0x611)]?.[_0x5c4cfa(0x5a2)](_0x5c4cfa(0x7c9),JSON[_0x5c4cfa(0x35a)]({'kind':_0x5c4cfa(0x30c),'scope':_0x3afedb,'key':_0x3f6099}));}get[_0xef20(0x438)](){const _0x3e3fdf=_0xef20;return this[_0x3e3fdf(0x5d7)]||(this[_0x3e3fdf(0x5d7)]=new(requireLock())['NativeLock'](this,_0x3e3fdf(0x5b5),_0x3e3fdf(0x706)));}get[_0xef20(0x406)](){const _0x12ff63=_0xef20;return this[_0x12ff63(0x34d)]?this[_0x12ff63(0x34d)]['db']:undefined;}get[_0xef20(0x399)](){const _0x29f47e=_0xef20,_0x5a719f=this[_0x29f47e(0x34d)]?.[_0x29f47e(0x5fa)];if(!_0x5a719f)return null;const _0x32b355=_0x5a719f[_0x29f47e(0x47e)]()[_0x29f47e(0x73d)](_0x158877=>_0x158877[_0x29f47e(0x447)]?.[_0x29f47e(0x54b)]===_0x29f47e(0x8ea));return _0x32b355?_0x5a719f[_0x29f47e(0x4c7)](_0x32b355['id'],_0x32b355[_0x29f47e(0x324)]):null;}get[_0xef20(0x34d)](){const _0x5ce7b0=_0xef20;return this[_0x5ce7b0(0x663)]?this[_0x5ce7b0(0x612)][_0x5ce7b0(0x309)](_0x5ce7b0(0x5b5)):undefined;}['_ensureEnv'](_0x5d2732){const _0x31035a=_0xef20;let _0x313c8e=Map[_0x31035a(0x511)][_0x31035a(0x309)][_0x31035a(0x4d1)](this[_0x31035a(0x612)],_0x5d2732);if(!_0x313c8e){_0x313c8e=new _0x3c3dc3(this,_0x5d2732),Map[_0x31035a(0x511)][_0x31035a(0x63f)][_0x31035a(0x4d1)](this[_0x31035a(0x612)],_0x5d2732,_0x313c8e);if(_0x5d2732==='default')this[_0x31035a(0x716)]=_0x313c8e;}return _0x313c8e;}[_0xef20(0x609)](_0x29f45d=_0xef20(0x2a6)){const _0x59f57d=_0xef20,_0x53dfb3=this[_0x59f57d(0x612)][_0x59f57d(0x309)](_0x29f45d);if(_0x53dfb3)return _0x53dfb3;if(this[_0x59f57d(0x663)]&&this[_0x59f57d(0x210)]('db',null,_0x59f57d(0x805),[_0x29f45d],![]))return this[_0x59f57d(0x6df)](_0x29f45d);throw new _0x370fe4(_0x59f57d(0x6e4)+_0x29f45d+_0x59f57d(0x53b),'ENV_NOT_FOUND');}get[_0xef20(0x2a6)](){const _0x1b2750=_0xef20;return this[_0x1b2750(0x609)](_0x1b2750(0x2a6));}get[_0xef20(0x3f0)](){const _0x40e0ed=_0xef20;return this['_envs']['get'](_0x40e0ed(0x2a6))??this['_defaultEnvObj'];}get[_0xef20(0x87a)](){const _0x3b7047=_0xef20;return this[_0x3b7047(0x3f0)][_0x3b7047(0x87a)];}get[_0xef20(0x622)](){return this['_defaultEnv']['queue'];}[_0xef20(0x347)](_0xb12fba){const _0xa2cc68=_0xef20;if(!this[_0xa2cc68(0x663)])return null;return this[_0xa2cc68(0x210)]('db',null,_0xa2cc68(0x86d),[_0xb12fba],![])?{'ref'(){},'unref'(){}}:null;}get[_0xef20(0x67e)](){const _0x1dd073=_0xef20;return this[_0x1dd073(0x347)](_0x1dd073(0x3cc));}[_0xef20(0x213)](){const _0x5d4da7=_0xef20;return this[_0x5d4da7(0x210)]('db',null,_0x5d4da7(0x8af),[],!![]);}get[_0xef20(0x315)](){const _0x2de80d=_0xef20;return this[_0x2de80d(0x347)](_0x2de80d(0x325));}get[_0xef20(0x658)](){return this['_timerHandle']('writerWatchdog');}get[_0xef20(0x80b)](){const _0x312542=_0xef20;return this[_0x312542(0x609)](_0x312542(0x2a6))[_0x312542(0x80b)];}get[_0xef20(0x2aa)](){throw new _0x370fe4('db.workers\x20was\x20removed.\x20okdb\x20does\x20not\x20manage\x20processes\x20—\x20run\x20more\x20okdb\x20processes\x20(processors:true)\x20via\x20your\x20orchestrator;\x20the\x201-of-N\x20processor\x20lease\x20load-balances\x20across\x20them.\x20See\x20docs/upgrade-2.0.md.','WORKERS_REMOVED');}get['processor'](){const _0x805bca=_0xef20;return this[_0x805bca(0x3f0)][_0x805bca(0x5fa)];}get[_0xef20(0x876)](){const _0x26c20b=_0xef20;return this[_0x26c20b(0x3f0)][_0x26c20b(0x876)];}async[_0xef20(0x3d0)](_0x4c95f0,_0x2cf21d={}){const _0x16b29d=_0xef20;this[_0x16b29d(0x7a2)]();if(_0x2cf21d&&typeof _0x2cf21d[_0x16b29d(0x32b)]==='function'){const _0x5b4179=_0x2cf21d[_0x16b29d(0x32b)];this[_0x16b29d(0x55b)](_0x4c95f0,await _0x5b4179(_0x4c95f0),!![]),this[_0x16b29d(0x7d4)]['envs'][_0x16b29d(0x63f)](_0x4c95f0,_0x5b4179),_0x2cf21d={..._0x2cf21d,'encryptionKey':!![]};}return this[_0x16b29d(0x210)]('db',null,_0x16b29d(0x3d0),[_0x4c95f0,_0x2cf21d]),this['_ensureEnv'](_0x4c95f0);}async[_0xef20(0x638)](_0x24afbd){const _0x4e90a1=_0xef20;if(!this[_0x4e90a1(0x663)])throw new _0x370fe4(_0x4e90a1(0x6cd)+_0x24afbd+_0x4e90a1(0x5ce),_0x4e90a1(0x58e));return this[_0x4e90a1(0x210)]('db',null,_0x4e90a1(0x638),[_0x24afbd]),this['_ensureEnv'](_0x24afbd);}get[_0xef20(0x385)](){const _0x240aa0=_0xef20;if(!this[_0x240aa0(0x3ff)]&&this[_0x240aa0(0x663)]){const _0x1e34d2=requireOkdbRelay(),_0x5b5e1c=new _0x1e34d2(this,this[_0x240aa0(0x688)]?.[_0x240aa0(0x7ed)]?.['relay']??{});_0x5b5e1c[_0x240aa0(0x29a)](),_0x5b5e1c[_0x240aa0(0x5b1)]=!![],this['__adminRelay']=_0x5b5e1c;}return this[_0x240aa0(0x3ff)]??null;}set[_0xef20(0x385)](_0x170d5e){const _0x1271f1=_0xef20;this[_0x1271f1(0x3ff)]=_0x170d5e;}get[_0xef20(0x78b)](){const _0x294c0a=_0xef20;let _0x4b7ee0=0x0;if(this['_isOpen'])for(const [_0x50bf8b]of Map[_0x294c0a(0x511)]['entries'][_0x294c0a(0x4d1)](this['_envs'])){try{_0x4b7ee0+=this['_call'](_0x294c0a(0x614),_0x50bf8b,'gateQuanta',[],![])||0x0;}catch{}}return{'total':_0x4b7ee0,'maxObserved':_0x4b7ee0>0x0?0x1:0x0,'inFlight':0x0};}async[_0xef20(0x6c9)](_0x357100){const _0x38bb00=_0xef20,_0x5ad0ff=this[_0x38bb00(0x612)][_0x38bb00(0x309)](_0x357100);if(_0x5ad0ff)return _0x5ad0ff;if(!this[_0x38bb00(0x210)]('db',null,_0x38bb00(0x805),[_0x357100],![]))throw new Error(_0x38bb00(0x47d)+_0x357100+'\x22\x20not\x20found\x20in\x20~envs');return this[_0x38bb00(0x638)](_0x357100);}async[_0xef20(0x7e6)](_0x492d85){const _0x584138=_0xef20,_0x1c586b=this[_0x584138(0x210)]('db',null,_0x584138(0x1cd),[_0x492d85]);return this[_0x584138(0x612)][_0x584138(0x2cb)](_0x492d85),_0x1c586b;}async[_0xef20(0x30d)](_0x3b066c,_0x254a70={}){const _0x44b46d=_0xef20;this['_assertOpen']();const _0x1a19f5=this[_0x44b46d(0x210)]('db',null,'removeEnvironment',[_0x3b066c,_0x254a70]);return this[_0x44b46d(0x612)][_0x44b46d(0x2cb)](_0x3b066c),_0x1a19f5;}static get[_0xef20(0x2d1)](){const _0x4f2873=_0xef20;return _0x16d1b5[_0x4f2873(0x2d1)];}static get[_0xef20(0x523)](){return _0x16d1b5['KNOWN_OPTIONS'];}static get[_0xef20(0x2c1)](){const _0x4b4df2=_0xef20;return _0x16d1b5[_0x4b4df2(0x2c1)];}static async[_0xef20(0x2ac)](_0x1b6859,_0x1a994d){const _0x521784=_0xef20;return _0x4cc447('db',_0x521784(0x2ac),[_0x1b6859,_0x1a994d]);}static['reidentify'](_0x39b8d0){const _0x38e108=_0xef20;return _0x4cc447('db',_0x38e108(0x2da),[_0x39b8d0]);}static[_0xef20(0x40d)](_0x568707,_0x1c6e73){const _0x32a066=_0xef20;_0x4cc447(_0x32a066(0x876),'registerBucketProjection',[_0x568707,_0x1c6e73]);}static[_0xef20(0x23a)](_0x206922,_0x351eb0){const _0x21ae70=_0xef20;_0x4cc447(_0x21ae70(0x876),_0x21ae70(0x23a),[_0x206922,_0x351eb0]);}static[_0xef20(0x1cf)](){}[_0xef20(0x2a1)](_0x3ced84,_0x356e8f){return require$$16['isDeepStrictEqual'](_0x3ced84,_0x356e8f);}}_0x4514d2[_0xef20(0x67a)]=_0x337090,Object['defineProperty'](_0x4514d2,'_unknownOptionsWarned',{'get'(){const _0x512146=_0xef20;return _0x4514d2['__warned']||(_0x4514d2[_0x512146(0x75a)]=new Set());},'set'(_0x380c2e){const _0x3faa75=_0xef20;_0x4514d2[_0x3faa75(0x75a)]=_0x380c2e;try{_0x4cc447('db',_0x3faa75(0x60d),[]);}catch{}},'configurable':!![]});for(const _0x3e7f7f of[_0xef20(0x68f),'txn',_0xef20(0x253),_0xef20(0x5b4),_0xef20(0x65b),'create',_0xef20(0x504),_0xef20(0x309),_0xef20(0x233),_0xef20(0x3a0),'getRange',_0xef20(0x88a),_0xef20(0x300),_0xef20(0x8ce),_0xef20(0x764),_0xef20(0x2dd),_0xef20(0x5c4),_0xef20(0x416),'query',_0xef20(0x853),_0xef20(0x6db),_0xef20(0x343),_0xef20(0x1be),'ensure',_0xef20(0x28f),_0xef20(0x414),_0xef20(0x2a4),'registerIndex',_0xef20(0x5f8),_0xef20(0x8e3),_0xef20(0x591),_0xef20(0x864),_0xef20(0x38b),_0xef20(0x7da),'hasUniqueViolations',_0xef20(0x212),_0xef20(0x3b3),_0xef20(0x4d6),_0xef20(0x246),'getTTL','clearTTL',_0xef20(0x2a9),_0xef20(0x8b0),_0xef20(0x722),_0xef20(0x686),_0xef20(0x456),'clearDefaultTTL',_0xef20(0x400),'range',_0xef20(0x8cc)]){_0x4514d2[_0xef20(0x511)][_0x3e7f7f]=function(..._0x41af07){const _0x2bd1c8=_0xef20,_0x4c8680=this[_0x2bd1c8(0x609)](_0x2bd1c8(0x2a6));return _0x4c8680[_0x3e7f7f](..._0x41af07);};}function _0x568e4a(_0x4a5954){const _0x1c695a=_0xef20,_0x33398a=_0x27837b=>()=>{throw new Error('db.processors.'+_0x27837b+'\x20was\x20removed\x20in\x20okdb\x202.0.\x20Use\x20processors:true\x20for\x20plain\x20lease\x20participation.\x20See\x20docs/upgrade-2.0.md.');};return{'process':_0x33398a(_0x1c695a(0x36c)),'processRest':_0x33398a(_0x1c695a(0x2e4)),'processEverything':_0x33398a(_0x1c695a(0x532)),async 'start'(){const _0x260248=_0x1c695a;return _0x4a5954[_0x260248(0x210)]('db',null,_0x260248(0x319),[]);},async 'stop'(){const _0xa5305e=_0x1c695a;return _0x4a5954[_0xa5305e(0x210)]('db',null,_0xa5305e(0x736),[]);},'status'(){const _0xdfcd6a=_0x1c695a;return _0x4a5954['_call']('db',null,_0xdfcd6a(0x282),[],![]);},get 'participating'(){const _0x3835d6=_0x1c695a;return _0x4a5954[_0x3835d6(0x210)]('db',null,_0x3835d6(0x70b),[],![]);},get '_participate'(){const _0x373296=_0x1c695a;return _0x4a5954[_0x373296(0x210)]('db',null,'processorsParticipating',[],![]);}};}function _0x4cc447(_0x40072a,_0x18a8af,_0x45b627){const _0x10db65=_0xef20;_0x53ab5b();try{return _0x4d4498()[_0x10db65(0x3cd)](_0x40072a,_0x18a8af,_0x45b627);}catch(_0x28aad6){throw _0x4e6f50(_0x28aad6);}}_0x3578a0[_0xef20(0x28e)]=_0x4514d2,_0x3578a0['exports'][_0xef20(0x29e)]=_0x4cc447,_0x3578a0[_0xef20(0x28e)]['OKDB']=_0x4514d2,_0x3578a0[_0xef20(0x28e)][_0xef20(0x67a)]=_0x337090,_0x3578a0['exports'][_0xef20(0x2a6)]=_0x4514d2,Object[_0xef20(0x1fd)](_0x3578a0[_0xef20(0x28e)],_0xef20(0x6f0),{'get':()=>require$$1$1[_0xef20(0x6c8)]?.()??null,'enumerable':![],'configurable':!![]});}(lib),lib[_0x39e754(0x28e)];}var libExports=requireLib(),index=getDefaultExportFromCjs(libExports);module[_0x5c70f8(0x28e)]=index;
|
|
1
|
+
'use strict';const _0xef081e=_0x2fc2;(function(_0x4220e2,_0x462493){const _0x3e900e=_0x2fc2,_0x1073e0=_0x4220e2();while(!![]){try{const _0x404346=parseInt(_0x3e900e(0x22f))/0x1+parseInt(_0x3e900e(0x720))/0x2*(-parseInt(_0x3e900e(0x7c9))/0x3)+parseInt(_0x3e900e(0x712))/0x4*(parseInt(_0x3e900e(0x245))/0x5)+-parseInt(_0x3e900e(0x499))/0x6*(-parseInt(_0x3e900e(0x310))/0x7)+-parseInt(_0x3e900e(0x60f))/0x8+-parseInt(_0x3e900e(0x629))/0x9+-parseInt(_0x3e900e(0x68b))/0xa;if(_0x404346===_0x462493)break;else _0x1073e0['push'](_0x1073e0['shift']());}catch(_0x4927d8){_0x1073e0['push'](_0x1073e0['shift']());}}}(_0x150e,0xcc736));var require$$0$6=require(_0xef081e(0x298)),require$$1$1=require('./native-loader.js'),require$$0=require(_0xef081e(0x52d)),require$$1=require(_0xef081e(0x216)),require$$4=require(_0xef081e(0x49a)),require$$0$2=require('node:crypto'),require$$0$1=require(_0xef081e(0x1ec)),require$$16=require('node:util'),require$$0$3=require(_0xef081e(0x876)),require$$2=require('node:cluster'),require$$18=require(_0xef081e(0x2f7)),require$$0$4=require(_0xef081e(0x21e)),require$$0$5=require('sift');function getDefaultExportFromCjs(_0x51ef25){const _0x44d23e=_0xef081e;return _0x51ef25&&_0x51ef25[_0x44d23e(0x677)]&&Object[_0x44d23e(0x7c6)][_0x44d23e(0x3ce)][_0x44d23e(0x62a)](_0x51ef25,_0x44d23e(0x6ab))?_0x51ef25[_0x44d23e(0x6ab)]:_0x51ef25;}var lib={'exports':{}},okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x3094d8 extends Error{constructor(_0x121829,_0x583d8a,_0x3ef567={}){const _0x587f66=_0x2fc2;super(_0x121829),this[_0x587f66(0x686)]='OKDBError',this[_0x587f66(0x1bd)]=_0x583d8a,this[_0x587f66(0x22a)]=_0x3ef567,_0x3ef567['cause']&&(this[_0x587f66(0x847)]=_0x3ef567[_0x587f66(0x847)]),Error[_0x587f66(0x89a)](this,this[_0x587f66(0x8c6)]);}}class _0x583584 extends _0x3094d8{constructor(_0x2bcf3b,_0x268f93,_0x56f9ec,_0x1e4e8e){const _0x1fe58d=_0x2fc2;super(_0x1fe58d(0x826)+_0x2bcf3b+'@'+_0x268f93+_0x1fe58d(0x61c)+_0x56f9ec+_0x1fe58d(0x868)+_0x1e4e8e,_0x1fe58d(0x3ea),{'type':_0x2bcf3b,'key':_0x268f93,'expectedVersion':_0x56f9ec,'actualVersion':_0x1e4e8e}),this[_0x1fe58d(0x686)]='OKDBVersionMismatchError';}}class _0x25f3e5 extends _0x3094d8{constructor(_0x3fc5c1,_0x1677b1){const _0x341c59=_0x2fc2;super(_0x3fc5c1+'@'+_0x1677b1+'\x20does\x20not\x20exist','NOT_FOUND',{'type':_0x3fc5c1,'key':_0x1677b1}),this[_0x341c59(0x686)]='OKDBNotFoundError';}}class _0x8293c0 extends _0x3094d8{constructor(_0x59fcbd,_0x56c14b){const _0x1a6492=_0x2fc2;super(_0x59fcbd+'@'+_0x56c14b+'\x20already\x20exists',_0x1a6492(0x8f2),{'type':_0x59fcbd,'key':_0x56c14b}),this[_0x1a6492(0x686)]=_0x1a6492(0x863);}}class _0xe8ca75 extends _0x3094d8{constructor(_0x387f29,_0x40b1b3){const _0x5e131f=_0x2fc2,_0x1bafcc=typeof _0x40b1b3;super(_0x5e131f(0x6f4)+_0x387f29+_0x5e131f(0x83a)+_0x1bafcc+'.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20'+_0x40b1b3,_0x5e131f(0x889),{'index':_0x387f29,'key':_0x40b1b3,'keyType':_0x1bafcc}),this[_0x5e131f(0x686)]='OKDBInvalidIndexKeyError';}}class _0x529e14 extends _0x3094d8{constructor(_0x4060bf){const _0x269b4b=_0x2fc2,_0x1895d2=typeof _0x4060bf;super('Invalid\x20primary\x20key\x20type:\x20'+_0x1895d2+_0x269b4b(0x3d7)+_0x4060bf,_0x269b4b(0x676),{'key':_0x4060bf,'keyType':_0x1895d2}),this[_0x269b4b(0x686)]=_0x269b4b(0x807);}}class _0x367944 extends _0x3094d8{constructor(_0x710a8a){const _0x341dc8=_0x2fc2;super(_0x341dc8(0x7ff)+_0x710a8a+_0x341dc8(0x34b),'TYPE_NOT_REGISTERED',{'type':_0x710a8a}),this[_0x341dc8(0x686)]=_0x341dc8(0x44d);}}class _0x8681b2 extends _0x3094d8{constructor(_0x107e12){const _0x3e8184=_0x2fc2;super(_0x3e8184(0x7ff)+_0x107e12+_0x3e8184(0x76d),_0x3e8184(0x75b),{'type':_0x107e12}),this[_0x3e8184(0x686)]=_0x3e8184(0x5cf);}}class _0x519411 extends _0x3094d8{constructor(_0x3c85ac,_0xf3d068){const _0x471ee7=_0x2fc2;super(_0x471ee7(0x72d)+_0xf3d068+_0x471ee7(0x5de)+_0x3c85ac+'\x27\x20doesn\x27t\x20exist',_0x471ee7(0x435),{'type':_0x3c85ac,'index':_0xf3d068}),this[_0x471ee7(0x686)]=_0x471ee7(0x3fa);}}class _0x16f171 extends _0x3094d8{constructor(_0x498b7c,_0x510e36){const _0x19922a=_0x2fc2;super(_0x19922a(0x72d)+_0x510e36+_0x19922a(0x5de)+_0x498b7c+'\x27\x20is\x20already\x20registered',_0x19922a(0x502),{'type':_0x498b7c,'index':_0x510e36}),this[_0x19922a(0x686)]='OKDBIndexAlreadyRegisteredError';}}class _0x534dfb extends _0x3094d8{constructor(_0x4738b1,_0x16b771={}){const _0x25b5f0=_0x2fc2;super(_0x4738b1,'INVALID_VALUE',_0x16b771),this[_0x25b5f0(0x686)]=_0x25b5f0(0x203);}}class _0x4f0ad7 extends _0x3094d8{constructor(_0x163167,_0x406dd7,_0x5d8037,_0x473627,_0x4806ac){const _0x2d2bf5=_0x2fc2;super(_0x2d2bf5(0x898)+_0x163167+'@'+_0x406dd7+':\x20key\x20['+_0x5d8037+_0x2d2bf5(0x263)+_0x473627+_0x2d2bf5(0x29b)+_0x4806ac+'\x27',_0x2d2bf5(0x56a),{'type':_0x163167,'index':_0x406dd7,'indexKey':_0x5d8037,'existingKey':_0x473627,'conflictingKey':_0x4806ac}),this['name']=_0x2d2bf5(0x4e8);}}class _0x41765b extends _0x3094d8{constructor(_0x311129,_0x18c004,_0x22d2b8){const _0x3fe32b=_0x2fc2;super('Schema\x20validation\x20failed\x20for\x20'+_0x311129+'@'+_0x18c004,_0x3fe32b(0x81d),{'type':_0x311129,'key':_0x18c004,'errors':_0x22d2b8}),this[_0x3fe32b(0x686)]='OKDBSchemaValidationError',this[_0x3fe32b(0x490)]=_0x311129,this[_0x3fe32b(0x59b)]=_0x18c004,this[_0x3fe32b(0x518)]=_0x22d2b8;}}class _0xfbd11d extends _0x3094d8{constructor(_0x51d91e,_0x3a8d73){const _0x5c69dc=_0x2fc2;super('Cannot\x20set\x20enforce\x20schema\x20on\x20'+_0x51d91e+':\x20'+_0x3a8d73[_0x5c69dc(0x788)]+_0x5c69dc(0x6a4),_0x5c69dc(0x287),{'type':_0x51d91e,'failures':_0x3a8d73}),this['name']='OKDBSchemaCollectionError',this[_0x5c69dc(0x490)]=_0x51d91e,this[_0x5c69dc(0x812)]=_0x3a8d73;}}class _0xa0ae6f extends _0x3094d8{constructor(_0x2f1f52,_0x57f7ee,_0x5e9cca,_0x2d6553,_0x233bfc){const _0x587d19=_0x2fc2;super(_0x587d19(0x1f7)+_0x2f1f52+'@'+_0x57f7ee+'.'+_0x5e9cca+_0x587d19(0x48d)+_0x2d6553+'@'+_0x233bfc+_0x587d19(0x3b3),_0x587d19(0x618),{'sourceType':_0x2f1f52,'sourceKey':_0x57f7ee,'fieldPath':_0x5e9cca,'targetType':_0x2d6553,'targetKey':_0x233bfc}),this['name']='OKDBForeignKeyError',this[_0x587d19(0x753)]=_0x2f1f52,this['sourceKey']=_0x57f7ee,this[_0x587d19(0x3e4)]=_0x5e9cca,this[_0x587d19(0x58c)]=_0x2d6553,this[_0x587d19(0x411)]=_0x233bfc;}}class _0x3d6c1e extends _0x3094d8{constructor(_0x37ab0f,_0x7025a,_0x3e904b){const _0x1c96e9=_0x2fc2;super('Cannot\x20delete\x20'+_0x37ab0f+'@'+_0x7025a+':\x20'+_0x3e904b[_0x1c96e9(0x788)]+_0x1c96e9(0x5b3),_0x1c96e9(0x361),{'targetType':_0x37ab0f,'targetKey':_0x7025a,'references':_0x3e904b}),this['name']=_0x1c96e9(0x224),this[_0x1c96e9(0x58c)]=_0x37ab0f,this[_0x1c96e9(0x411)]=_0x7025a,this[_0x1c96e9(0x29d)]=_0x3e904b;}}class _0x59ba5f extends _0x3094d8{constructor(_0x258fa9,_0x6c89a8,_0x50d7ab){const _0x28c6c7=_0x2fc2;super(_0x28c6c7(0x549)+_0x6c89a8+'\x22\x20on\x20\x22'+_0x258fa9+_0x28c6c7(0x54f)+_0x50d7ab[_0x28c6c7(0x642)](_0x28d975=>_0x28d975[_0x28c6c7(0x7af)]+':'+_0x28d975[_0x28c6c7(0x686)])[_0x28c6c7(0x8a0)](',\x20'),_0x28c6c7(0x48b),{'type':_0x258fa9,'index':_0x6c89a8,'usedBy':_0x50d7ab}),this[_0x28c6c7(0x686)]='OKDBIndexHasConsumersError';}}return okdbError={'OKDBError':_0x3094d8,'OKDBVersionMismatchError':_0x583584,'OKDBNotFoundError':_0x25f3e5,'OKDBAlreadyExistsError':_0x8293c0,'OKDBInvalidIndexKeyError':_0xe8ca75,'OKDBInvalidPrimaryKeyError':_0x529e14,'OKDBTypeNotRegisteredError':_0x367944,'OKDBTypeAlreadyRegisteredError':_0x8681b2,'OKDBIndexNotRegisteredError':_0x519411,'OKDBIndexAlreadyRegisteredError':_0x16f171,'OKDBInvalidValueError':_0x534dfb,'OKDBUniqueConstraintError':_0x4f0ad7,'OKDBSchemaValidationError':_0x41765b,'OKDBSchemaCollectionError':_0xfbd11d,'OKDBForeignKeyError':_0xa0ae6f,'OKDBForeignKeyDeleteError':_0x3d6c1e,'OKDBIndexHasConsumersError':_0x59ba5f},okdbError;}var errors,hasRequiredErrors;function requireErrors(){const _0x55de1b=_0xef081e;if(hasRequiredErrors)return errors;hasRequiredErrors=0x1;const _0x2e2ca8=requireOkdbError(),_0x1809e2={'VERSION_MISMATCH':_0x2e2ca8[_0x55de1b(0x2ae)],'NOT_FOUND':_0x2e2ca8['OKDBNotFoundError'],'ALREADY_EXISTS':_0x2e2ca8[_0x55de1b(0x863)],'INVALID_INDEX_KEY':_0x2e2ca8['OKDBInvalidIndexKeyError'],'INVALID_PRIMARY_KEY':_0x2e2ca8[_0x55de1b(0x807)],'TYPE_NOT_REGISTERED':_0x2e2ca8[_0x55de1b(0x44d)],'TYPE_ALREADY_REGISTERED':_0x2e2ca8[_0x55de1b(0x5cf)],'INDEX_NOT_REGISTERED':_0x2e2ca8[_0x55de1b(0x3fa)],'INDEX_ALREADY_REGISTERED':_0x2e2ca8[_0x55de1b(0x2f9)],'INVALID_VALUE':_0x2e2ca8[_0x55de1b(0x203)],'UNIQUE_CONSTRAINT':_0x2e2ca8[_0x55de1b(0x4e8)],'SCHEMA_VALIDATION_FAILED':_0x2e2ca8['OKDBSchemaValidationError'],'SCHEMA_COLLECTION_INVALID':_0x2e2ca8[_0x55de1b(0x835)],'FOREIGN_KEY_VIOLATION':_0x2e2ca8[_0x55de1b(0x5b9)],'FOREIGN_KEY_DELETE_RESTRICTED':_0x2e2ca8[_0x55de1b(0x224)],'INDEX_HAS_CONSUMERS':_0x2e2ca8['OKDBIndexHasConsumersError']};class _0x4dd05e extends _0x2e2ca8[_0x55de1b(0x27b)]{constructor(_0x1048cf,_0xd6a4d6){const _0x551de5=_0x55de1b;super(_0x1048cf+_0x551de5(0x666)+(_0xd6a4d6?'\x20('+_0xd6a4d6+')':''),_0x551de5(0x377),{'feature':_0x1048cf}),this[_0x551de5(0x686)]=_0x551de5(0x6b0);}}function _0x4aba37(_0x307d5f){const _0x32711f=_0x55de1b;if(!_0x307d5f||typeof _0x307d5f!==_0x32711f(0x7f6)||!_0x307d5f[_0x32711f(0x248)])return _0x307d5f;delete _0x307d5f[_0x32711f(0x248)];const _0x41c1ba=_0x307d5f[_0x32711f(0x1bd)];if(_0x41c1ba===_0x32711f(0x830)||_0x41c1ba==='TypeError'||_0x41c1ba===_0x32711f(0x80f)){const _0x558454=_0x41c1ba===_0x32711f(0x305)?TypeError[_0x32711f(0x7c6)]:_0x41c1ba==='RangeError'?RangeError['prototype']:Error[_0x32711f(0x7c6)];Object[_0x32711f(0x717)](_0x307d5f,_0x558454),_0x307d5f[_0x32711f(0x686)]=_0x41c1ba;if(_0x307d5f[_0x32711f(0x22a)]&&_0x307d5f[_0x32711f(0x22a)]['status']!==undefined)_0x307d5f['status']=_0x307d5f[_0x32711f(0x22a)][_0x32711f(0x442)];return delete _0x307d5f[_0x32711f(0x1bd)],delete _0x307d5f['details'],_0x307d5f;}const _0xb8f49a=_0x1809e2[_0x41c1ba];Object[_0x32711f(0x717)](_0x307d5f,(_0xb8f49a||_0x2e2ca8[_0x32711f(0x27b)])[_0x32711f(0x7c6)]),_0x307d5f[_0x32711f(0x686)]=_0xb8f49a?_0xb8f49a[_0x32711f(0x686)][_0x32711f(0x6fc)](/^OKDB/,_0x32711f(0x401)):_0x32711f(0x27b);const _0x4ada9e=_0x307d5f['details']||{};_0x41c1ba===_0x32711f(0x81d)&&(_0x307d5f[_0x32711f(0x490)]=_0x4ada9e[_0x32711f(0x490)],_0x307d5f['key']=_0x4ada9e['key'],_0x307d5f['errors']=_0x4ada9e['errors']);_0x41c1ba==='SCHEMA_COLLECTION_INVALID'&&(_0x307d5f['type']=_0x4ada9e[_0x32711f(0x490)],_0x307d5f[_0x32711f(0x812)]=_0x4ada9e[_0x32711f(0x812)]);if(_0x41c1ba===_0x32711f(0x618)){for(const _0x20e93c of['sourceType',_0x32711f(0x379),_0x32711f(0x3e4),'targetType',_0x32711f(0x411)])_0x307d5f[_0x20e93c]=_0x4ada9e[_0x20e93c];}if(_0x41c1ba===_0x32711f(0x361)){for(const _0x541c51 of['targetType',_0x32711f(0x411),_0x32711f(0x29d)])_0x307d5f[_0x541c51]=_0x4ada9e[_0x541c51];}if(_0x4ada9e['cause'])_0x307d5f[_0x32711f(0x847)]=_0x4ada9e[_0x32711f(0x847)];if(_0x4ada9e[_0x32711f(0x442)]!==undefined)_0x307d5f[_0x32711f(0x442)]=_0x4ada9e[_0x32711f(0x442)];if(_0x4ada9e[_0x32711f(0x4a3)]!==undefined)_0x307d5f[_0x32711f(0x4a3)]=_0x4ada9e[_0x32711f(0x4a3)];return _0x307d5f;}function _0x5a0897(_0x20d4c8){const _0x5aadea=_0x55de1b;if(_0x20d4c8===undefined)return _0x5aadea(0x312);if(_0x20d4c8===null)return _0x5aadea(0x7e6);if(typeof _0x20d4c8===_0x5aadea(0x43c))return _0x20d4c8?_0x5aadea(0x43c):'empty\x20string';if(typeof _0x20d4c8===_0x5aadea(0x484))return _0x5aadea(0x484);if(typeof _0x20d4c8!=='object')return typeof _0x20d4c8;if(Array['isArray'](_0x20d4c8))return _0x20d4c8[_0x5aadea(0x788)]?'array':_0x5aadea(0x6fe);if(_0x20d4c8 instanceof Date)return _0x5aadea(0x806);if(_0x20d4c8 instanceof Map)return _0x5aadea(0x83c);if(Buffer[_0x5aadea(0x605)](_0x20d4c8))return'Buffer';return _0x5aadea(0x7f6);}const _0x511397=(_0x2b33f0,_0x3b7da6,_0x65343a)=>new _0x2e2ca8['OKDBError'](_0x3b7da6,_0x2b33f0,_0x65343a),_0x5b3f8f=(_0x12b322,_0x20f313,_0x240942)=>_0x511397('INVALID_ARGUMENT',_0x12b322+_0x55de1b(0x6f0)+_0x20f313+_0x55de1b(0x694)+_0x5a0897(_0x240942),{'argument':_0x12b322,'expected':_0x20f313,'got':_0x5a0897(_0x240942)}),_0x165c29=(_0x4ca49c,_0x2b697c)=>_0x511397('INVALID_TYPE_NAME',_0x4ca49c+_0x55de1b(0x344)+_0x5a0897(_0x2b697c),{'argument':_0x4ca49c,'expected':'non-empty\x20string','got':_0x5a0897(_0x2b697c)}),_0x5a306a=(_0x29a9ce,_0x36519d)=>_0x511397(_0x55de1b(0x4f7),_0x29a9ce+':\x20'+_0x36519d,{'argument':_0x29a9ce,'problem':_0x36519d});function _0x25324b(_0x433ffe,_0x2156ca=_0x55de1b(0x1cc)){if(_0x433ffe===undefined)return{};if(_0x433ffe===null)throw _0x5a306a(_0x2156ca,'must\x20be\x20an\x20object;\x20got\x20null');return _0x433ffe;}return errors={'reclass':_0x4aba37,'NotImplementedNative':_0x4dd05e,'BY_CODE':_0x1809e2,'describe':_0x5a0897,'invalidArgument':_0x5b3f8f,'invalidTypeName':_0x165c29,'invalidOptions':_0x5a306a,'optionsArg':_0x25324b,..._0x2e2ca8},errors;}var bridge_1,hasRequiredBridge;function requireBridge(){if(hasRequiredBridge)return bridge_1;hasRequiredBridge=0x1;const _0x51b64a=new Map(),_0x25f50c=new Map();let _0x124d65=0x1;const _0x4a3e49=new Map(),_0xe751f=new Map();let _0x5a5dac=0x1;const _0x1799ba=new Map();let _0x55c989=0x1;const _0x1e9302=new Map();function _0x18848d(_0x28abf5,_0xeeb81c=null){const _0x24b67c=_0x2fc2,_0xc944a7=_0x55c989++;_0x1799ba[_0x24b67c(0x204)](_0xc944a7,_0x28abf5);if(_0xeeb81c)_0x1e9302[_0x24b67c(0x204)](_0xc944a7,_0xeeb81c);return _0xc944a7;}function _0x5ec267(_0x30a3f5,_0x29a82c){const _0x4cf871=_0x2fc2,_0x17891c=_0x1799ba[_0x4cf871(0x292)](_0x30a3f5),_0xa1d1b6=Array[_0x4cf871(0x7c6)][_0x4cf871(0x848)]['call'](arguments,0x2),_0x34b17a=_0x294dce=>_0x5d2776(_0x294dce,_0x1e9302[_0x4cf871(0x292)](_0x30a3f5));let _0x36d93b=_0xa1d1b6;if(_0x29a82c===_0x4cf871(0x77b)||_0x29a82c===_0x4cf871(0x6bf)||_0x29a82c==='uninstall'||_0x29a82c===_0x4cf871(0x210)||_0x29a82c===_0x4cf871(0x86e))_0x36d93b=[_0x34b17a(_0xa1d1b6[0x0])];else{if(_0x29a82c==='patchConfig')_0x36d93b=[_0xa1d1b6[0x0],_0xa1d1b6[0x1],_0x34b17a(_0xa1d1b6[0x2])];else{if(_0x29a82c===_0x4cf871(0x736))_0x36d93b=[_0x34b17a(_0xa1d1b6[0x0])];}}let _0x2f0b2a=_0x17891c[_0x29a82c](..._0x36d93b);if(_0x2f0b2a&&typeof _0x2f0b2a['then']===_0x4cf871(0x484))_0x2f0b2a=_0x5ca6ed(_0x2f0b2a);if(_0x29a82c===_0x4cf871(0x77b)){const _0x1081d4=_0x2f0b2a&&typeof _0x2f0b2a===_0x4cf871(0x7f6)?_0x18848d(_0x2f0b2a):_0x18848d({});return{'$api':_0x1081d4};}return _0x2f0b2a===undefined?null:_0x2f0b2a;}function _0x5d2776(_0x4988db,_0x42ab10){const _0x23460f=_0x2fc2;let _0x1a2bb4=_0x57c8e7[_0x23460f(0x292)](_0x4988db['storeEnvPath']);const _0x1562f4=_0x1a2bb4&&_0x1a2bb4[_0x23460f(0x82e)]||_0x42ab10||_0x459e01,_0x3086c5=(_0x2eb7b8,..._0x5cdbc9)=>_0x1562f4[_0x23460f(0x5a1)](_0x23460f(0x2af),null,_0x2eb7b8,[_0x4988db[_0x23460f(0x490)],_0x4988db[_0x23460f(0x686)],..._0x5cdbc9],!![]);return{'okdb':_0x1562f4,'key':_0x4988db[_0x23460f(0x59b)],'type':_0x4988db['type'],'name':_0x4988db[_0x23460f(0x686)],get 'storeEnv'(){const _0x344878=_0x23460f;if(!_0x1a2bb4&&_0x1562f4&&_0x1562f4[_0x344878(0x489)]&&_0x4988db[_0x344878(0x77c)])_0x1a2bb4=_0x1562f4[_0x344878(0x75a)][_0x344878(0x292)](_0x4988db[_0x344878(0x77c)]);return _0x1a2bb4;},'storeEnvName':_0x4988db['storeEnvName'],'config':_0x4988db[_0x23460f(0x684)],'meta':_0x4988db['meta'],'options':_0x4988db[_0x23460f(0x1cc)],'emit':(_0x5cef4c,_0xffb5f5)=>_0x3086c5(_0x23460f(0x5c4),_0x5cef4c,_0xffb5f5),'updateStatus':async(_0x223a1a,_0x518f25)=>_0x3086c5(_0x23460f(0x2b3),_0x223a1a,_0x518f25==null?null:String(_0x518f25&&_0x518f25[_0x23460f(0x485)]?_0x518f25[_0x23460f(0x485)]:_0x518f25)),'updateMeta':async _0x51bcc2=>_0x3086c5(_0x23460f(0x34a),{'meta':_0x51bcc2}),'updateConfig':async _0x3cb8ee=>_0x3086c5(_0x23460f(0x34a),{'config':_0x3cb8ee})};}function _0x360fa5(_0x4171e9,_0x2453a4,_0x39fbef){const _0xe5d598=_0x2fc2;if(_0x4171e9===_0xe5d598(0x2c2)){const _0x5a3626=_0x5eaa71(_0x2453a4);let _0x105285=_0x5a3626(_0x39fbef);if(_0x105285&&typeof _0x105285[_0xe5d598(0x458)]===_0xe5d598(0x484))_0x105285=_0x5ca6ed(_0x105285);if(!_0x105285||typeof _0x105285['embed']!=='function'){const {OKDBError:_0x1ce819}=requireErrors();throw new _0x1ce819(_0xe5d598(0x77f)+(_0x39fbef&&_0x39fbef[_0xe5d598(0x490)])+_0xe5d598(0x852),_0xe5d598(0x2eb));}return _0x105285[_0xe5d598(0x248)]=_0x5a3626[_0xe5d598(0x248)],{'$id':_0x18848d(_0x105285),'batch':typeof _0x105285[_0xe5d598(0x3b9)]===_0xe5d598(0x484)};}const _0x5503f3=_0x1799ba['get'](_0x2453a4);if(_0x4171e9==='free')return _0x1799ba[_0xe5d598(0x46b)](_0x2453a4),_0x34f4c0[_0xe5d598(0x46b)](_0x2453a4),null;if(!_0x5503f3)throw new Error(_0xe5d598(0x1d7));if(typeof _0x5503f3[_0x4171e9]!==_0xe5d598(0x484))return null;if(_0x4171e9===_0xe5d598(0x845)||_0x4171e9===_0xe5d598(0x3b9)){const _0xed55f2=_0x4171e9==='embedBatch'?_0xd339d9(_0x2453a4,_0x5503f3,_0x39fbef):_0x2efe09(_0x2453a4,_0x5503f3,_0x4171e9,_0x39fbef);return _0x4171e9===_0xe5d598(0x845)?Array[_0xe5d598(0x51b)](_0xed55f2):_0xed55f2['map'](_0xfb8f87=>Array[_0xe5d598(0x51b)](_0xfb8f87));}let _0x18384e=_0x5503f3[_0x4171e9]();if(_0x18384e&&typeof _0x18384e[_0xe5d598(0x458)]===_0xe5d598(0x484))_0x18384e=_0x5ca6ed(_0x18384e);return _0x18384e===undefined?null:_0x18384e;}function _0x15378a(_0x38167e,_0x21ca38,_0x1a6060){const _0x18ccb4=_0x2fc2;if(_0x38167e===_0x18ccb4(0x2c2)){const _0x3d8af0=_0x5eaa71(_0x21ca38);let _0xc3d3ca=_0x3d8af0(_0x1a6060[_0x18ccb4(0x684)]??{},{'dims':_0x1a6060[_0x18ccb4(0x3a7)],'dir':_0x1a6060[_0x18ccb4(0x37c)]});if(_0xc3d3ca&&typeof _0xc3d3ca[_0x18ccb4(0x458)]==='function')_0xc3d3ca=_0x5ca6ed(_0xc3d3ca);for(const _0x400a27 of[_0x18ccb4(0x64c),_0x18ccb4(0x77d),_0x18ccb4(0x28d),_0x18ccb4(0x5ad),_0x18ccb4(0x4c2)]){if(!_0xc3d3ca||typeof _0xc3d3ca[_0x400a27]!==_0x18ccb4(0x484)){const {OKDBError:_0x2e3740}=requireErrors();throw new _0x2e3740(_0x18ccb4(0x302)+_0x400a27+'()','BAD_ALGORITHM_FACTORY',{'method':_0x400a27});}}return{'$id':_0x18848d(_0xc3d3ca)};}const _0x51320c=_0x1799ba[_0x18ccb4(0x292)](_0x21ca38);if(_0x38167e===_0x18ccb4(0x66b))return _0x1799ba[_0x18ccb4(0x46b)](_0x21ca38),null;if(!_0x51320c)throw new Error(_0x18ccb4(0x4e2));const _0xb2253a=_0x3ce96c=>_0x3ce96c?_0x3ce96c[_0x18ccb4(0x642)](_0x4c59fd=>({'key':_0x4c59fd[_0x18ccb4(0x59b)],'vector':Float32Array[_0x18ccb4(0x51b)](_0x4c59fd[_0x18ccb4(0x314)])})):null;let _0x5d7540;switch(_0x38167e){case'load':case _0x18ccb4(0x774):{const _0x43ff70=_0xb2253a(_0x1a6060);_0x5d7540=_0x51320c[_0x38167e](_0x43ff70?async()=>_0x43ff70:undefined);break;}case _0x18ccb4(0x77d):_0x5d7540=_0x51320c['add'](_0x1a6060[0x0],Float32Array[_0x18ccb4(0x51b)](_0x1a6060[0x1]),_0x1a6060[0x2]??undefined);break;case _0x18ccb4(0x28d):_0x5d7540=_0x51320c[_0x18ccb4(0x28d)](_0x1a6060);break;case _0x18ccb4(0x5ad):_0x5d7540=_0x51320c[_0x18ccb4(0x5ad)](Float32Array[_0x18ccb4(0x51b)](_0x1a6060[_0x18ccb4(0x5e7)]),_0x1a6060[_0x18ccb4(0x5c9)]??{});break;case'snapshot':_0x5d7540=typeof _0x51320c[_0x18ccb4(0x5d0)]===_0x18ccb4(0x484)?_0x51320c['snapshot'](_0x1a6060??undefined):![];break;case _0x18ccb4(0x6bf):_0x5d7540=typeof _0x51320c[_0x18ccb4(0x6bf)]===_0x18ccb4(0x484)?_0x51320c[_0x18ccb4(0x6bf)]():undefined;break;case _0x18ccb4(0x813):_0x5d7540=typeof _0x51320c[_0x18ccb4(0x813)]===_0x18ccb4(0x484)?_0x51320c[_0x18ccb4(0x813)]():undefined;break;case'count':return Number(_0x51320c[_0x18ccb4(0x4c2)]());case _0x18ccb4(0x1f9):return(typeof _0x51320c[_0x18ccb4(0x1f9)]==='function'?_0x51320c['info']():null)??{};default:throw new Error('algorithm\x20has\x20no\x20method\x20'+_0x38167e);}if(_0x5d7540&&typeof _0x5d7540[_0x18ccb4(0x458)]===_0x18ccb4(0x484))_0x5d7540=_0x5ca6ed(_0x5d7540);return _0x5d7540===undefined?null:_0x5d7540;}function _0x206dd3(_0x27bb34,_0xb47cae,_0x5a0964){const _0x346e71=_0x2fc2;if(_0x27bb34===_0x346e71(0x2c2)){const _0x500a3d=_0x5eaa71(_0xb47cae);let _0x34a00f=_0x500a3d(_0x5a0964);if(_0x34a00f&&typeof _0x34a00f[_0x346e71(0x458)]===_0x346e71(0x484))_0x34a00f=_0x5ca6ed(_0x34a00f);if(!_0x34a00f)return null;const _0x4607a0=[_0x346e71(0x4bf),'keys',_0x346e71(0x292),'count','dropAll','stats'][_0x346e71(0x877)](_0x499711=>typeof _0x34a00f[_0x499711]==='function');return{'$id':_0x18848d(_0x34a00f),'has':_0x4607a0};}const _0x1c65f5=_0x1799ba[_0x346e71(0x292)](_0xb47cae);if(_0x27bb34===_0x346e71(0x66b))return _0x1799ba[_0x346e71(0x46b)](_0xb47cae),null;if(!_0x1c65f5)throw new Error(_0x346e71(0x6d3));const _0x3bdee0=_0x368e9b=>Float32Array[_0x346e71(0x51b)](_0x368e9b);let _0x561a96;switch(_0x27bb34){case _0x346e71(0x1dd):_0x561a96=_0x1c65f5[_0x346e71(0x1dd)](_0x5a0964[0x0],_0x3bdee0(_0x5a0964[0x1]));break;case'remove':_0x561a96=_0x1c65f5[_0x346e71(0x28d)](_0x5a0964);break;case _0x346e71(0x5f2):{_0x561a96=typeof _0x1c65f5['getAll']===_0x346e71(0x484)?_0x1c65f5[_0x346e71(0x5f2)]():[];if(_0x561a96&&typeof _0x561a96['then']===_0x346e71(0x484))_0x561a96=_0x5ca6ed(_0x561a96);return Array[_0x346e71(0x51b)](_0x561a96??[],_0x34758b=>({'key':_0x34758b['key'],'vector':Array[_0x346e71(0x51b)](_0x34758b['vector'])}));}case _0x346e71(0x4bf):_0x561a96=_0x1c65f5[_0x346e71(0x4bf)](_0x5a0964[_0x346e71(0x7f7)][_0x346e71(0x642)](_0x2a23df=>({'key':_0x2a23df[_0x346e71(0x59b)],'vector':_0x3bdee0(_0x2a23df[_0x346e71(0x314)])})),_0x5a0964[_0x346e71(0x23a)]);break;case _0x346e71(0x607):_0x561a96=_0x1c65f5[_0x346e71(0x607)](_0x5a0964??undefined);if(_0x561a96&&typeof _0x561a96[_0x346e71(0x458)]===_0x346e71(0x484))_0x561a96=_0x5ca6ed(_0x561a96);return Array['from'](_0x561a96??[]);case _0x346e71(0x292):{_0x561a96=_0x1c65f5['get'](_0x5a0964);if(_0x561a96&&typeof _0x561a96[_0x346e71(0x458)]===_0x346e71(0x484))_0x561a96=_0x5ca6ed(_0x561a96);return _0x561a96==null?null:Array[_0x346e71(0x51b)](_0x561a96);}case'count':return Number(_0x1c65f5[_0x346e71(0x4c2)]());case'dropAll':_0x561a96=_0x1c65f5[_0x346e71(0x4ca)]();break;case _0x346e71(0x70a):return _0x1c65f5[_0x346e71(0x70a)]()??null;default:throw new Error(_0x346e71(0x50c)+_0x27bb34);}if(_0x561a96&&typeof _0x561a96[_0x346e71(0x458)]==='function')_0x561a96=_0x5ca6ed(_0x561a96);return _0x561a96===undefined?null:_0x561a96;}const _0x204904=new Map();function _0x2efe09(_0x595460,_0x1b3dc2,_0x5c7f3c,_0xe91147){const _0x465e08=_0x2fc2,_0x2363cb=_0x595460+'\x00'+_0x5c7f3c+'\x00'+JSON[_0x465e08(0x754)](_0xe91147),_0x20580b=_0x204904[_0x465e08(0x292)](_0x2363cb);if(_0x20580b){if(_0x20580b[_0x465e08(0x480)]==='pending')throw _0x39c7b9();_0x204904['delete'](_0x2363cb);if(_0x20580b[_0x465e08(0x480)]===_0x465e08(0x527))throw _0x20580b[_0x465e08(0x744)];return _0x20580b[_0x465e08(0x744)];}const _0xaa5e8f=_0x1b3dc2[_0x5c7f3c](_0xe91147);if(!_0xaa5e8f||typeof _0xaa5e8f['then']!=='function')return _0xaa5e8f;const _0x312499={'state':_0x465e08(0x654),'value':undefined};_0xaa5e8f[_0x465e08(0x458)](_0x14ccb9=>{const _0x52479f=_0x465e08;_0x312499[_0x52479f(0x480)]='ok',_0x312499[_0x52479f(0x744)]=_0x14ccb9;if(_0x204904[_0x52479f(0x292)](_0x2363cb)===_0x312499)_0x3ccf03(_0x1b3dc2);},_0x3e74f9=>{const _0x6b88cb=_0x465e08;_0x312499[_0x6b88cb(0x480)]=_0x6b88cb(0x527),_0x312499[_0x6b88cb(0x744)]=_0x3e74f9;if(_0x204904[_0x6b88cb(0x292)](_0x2363cb)===_0x312499)_0x3ccf03(_0x1b3dc2);});for(let _0x233b2a=0x0;_0x233b2a<0x64&&_0x312499[_0x465e08(0x480)]===_0x465e08(0x654);_0x233b2a++)process[_0x465e08(0x81a)]();if(_0x312499['state']==='ok')return _0x312499[_0x465e08(0x744)];if(_0x312499[_0x465e08(0x480)]===_0x465e08(0x527))throw _0x312499[_0x465e08(0x744)];_0x204904[_0x465e08(0x204)](_0x2363cb,_0x312499);throw _0x39c7b9();}const _0x34f4c0=new Map(),_0x40a73c=0xa*0x3c*0x3e8;function _0xd339d9(_0x23a439,_0x37a143,_0xafc8f8){const _0x41d5e3=_0x2fc2,_0x7617b1=Array[_0x41d5e3(0x888)](_0xafc8f8)?_0xafc8f8:Array[_0x41d5e3(0x51b)](_0xafc8f8??[]);let _0x598253=_0x34f4c0['get'](_0x23a439);if(!_0x598253)_0x34f4c0[_0x41d5e3(0x204)](_0x23a439,_0x598253=new Map());const _0x3fa365=Date[_0x41d5e3(0x3d4)]();for(const [_0x1dd910,_0x36013e]of _0x598253)if(_0x36013e[_0x41d5e3(0x1c5)][_0x41d5e3(0x480)]!==_0x41d5e3(0x654)&&_0x3fa365-_0x36013e[_0x41d5e3(0x1c5)]['at']>_0x40a73c)_0x598253['delete'](_0x1dd910);const _0x50b325=_0x7617b1['map'](_0x455bc5=>JSON[_0x41d5e3(0x754)](_0x455bc5));let _0x2971ea=![];const _0x22a9ef=[],_0x2b9d1a=new Set();for(let _0xb4a951=0x0;_0xb4a951<_0x50b325[_0x41d5e3(0x788)];_0xb4a951++){const _0x45b87b=_0x598253[_0x41d5e3(0x292)](_0x50b325[_0xb4a951]);if(!_0x45b87b)!_0x2b9d1a[_0x41d5e3(0x396)](_0x50b325[_0xb4a951])&&(_0x2b9d1a[_0x41d5e3(0x77d)](_0x50b325[_0xb4a951]),_0x22a9ef[_0x41d5e3(0x27f)](_0xb4a951));else{if(_0x45b87b[_0x41d5e3(0x1c5)][_0x41d5e3(0x480)]==='pending')_0x2971ea=!![];else{if(_0x45b87b[_0x41d5e3(0x1c5)][_0x41d5e3(0x480)]==='err'){const _0x560ffb=_0x45b87b[_0x41d5e3(0x1c5)][_0x41d5e3(0x744)];for(const [_0x20075c,_0x3f495c]of _0x598253)if(_0x3f495c[_0x41d5e3(0x1c5)]===_0x45b87b[_0x41d5e3(0x1c5)])_0x598253[_0x41d5e3(0x46b)](_0x20075c);throw _0x560ffb;}}}}if(_0x2971ea)throw _0x39c7b9();if(_0x22a9ef['length']){const _0x5b46e1=_0x22a9ef['map'](_0xfad78f=>_0x7617b1[_0xfad78f]),_0x4f1425=_0x37a143[_0x41d5e3(0x3b9)](_0x5b46e1),_0x1125d9={'state':_0x41d5e3(0x654),'value':undefined,'at':0x0},_0x5c0222=(_0x397ec9,_0x1347df)=>{_0x1125d9['state']=_0x397ec9,_0x1125d9['value']=_0x1347df,_0x1125d9['at']=Date['now']();};if(!_0x4f1425||typeof _0x4f1425[_0x41d5e3(0x458)]!==_0x41d5e3(0x484))_0x5c0222('ok',_0x4f1425);else{let _0x2ee737=!![];_0x4f1425[_0x41d5e3(0x458)](_0x425732=>{_0x5c0222('ok',_0x425732);if(!_0x2ee737)_0x3ccf03(_0x37a143);},_0x597ce2=>{_0x5c0222('err',_0x597ce2);if(!_0x2ee737)_0x3ccf03(_0x37a143);});for(let _0x2decc7=0x0;_0x2decc7<0x64&&_0x1125d9[_0x41d5e3(0x480)]===_0x41d5e3(0x654);_0x2decc7++)process[_0x41d5e3(0x81a)]();_0x2ee737=![];}for(let _0x144f62=0x0;_0x144f62<_0x22a9ef[_0x41d5e3(0x788)];_0x144f62++)_0x598253[_0x41d5e3(0x204)](_0x50b325[_0x22a9ef[_0x144f62]],{'req':_0x1125d9,'index':_0x144f62});if(_0x1125d9['state']==='err'){for(const _0x533077 of _0x22a9ef)_0x598253[_0x41d5e3(0x46b)](_0x50b325[_0x533077]);throw _0x1125d9[_0x41d5e3(0x744)];}if(_0x1125d9['state']===_0x41d5e3(0x654))throw _0x39c7b9();}const _0x3aea46=_0x50b325[_0x41d5e3(0x642)](_0x271283=>{const _0x1f758a=_0x41d5e3,_0x21e16c=_0x598253[_0x1f758a(0x292)](_0x271283),_0x1a370d=_0x21e16c[_0x1f758a(0x1c5)][_0x1f758a(0x744)];return _0x1a370d?_0x1a370d[_0x21e16c[_0x1f758a(0x4bd)]]:undefined;});for(const _0x476a78 of _0x50b325)_0x598253[_0x41d5e3(0x46b)](_0x476a78);if(!_0x598253[_0x41d5e3(0x4ff)])_0x34f4c0[_0x41d5e3(0x46b)](_0x23a439);return _0x3aea46;}function _0x39c7b9(){const _0x4e4f06=_0x2fc2;return Object[_0x4e4f06(0x7ac)](new Error(_0x4e4f06(0x34d)),{'code':_0x4e4f06(0x6fb)});}function _0x3ccf03(_0x5812f3){const _0x56546d=_0x2fc2;_0x521edf();try{const _0x4e454c=_0x5812f3['__okdb']||_0x459e01;if(_0x4e454c&&_0x4e454c[_0x56546d(0x489)])_0x4e454c[_0x56546d(0x5a1)](_0x56546d(0x3d2),null,_0x56546d(0x599),[_0x56546d(0x1e7),{}],!![]);}catch{}}function _0x28824d(_0x11fa1d,_0x2555b7,_0x529c7b){const _0x23969e=_0x2fc2,_0x1465a5=_0x1799ba['get'](_0x11fa1d);if(!_0x1465a5||typeof _0x1465a5[_0x2555b7]!==_0x23969e(0x484))return{'__absent':!![]};let _0x1a9096=_0x1465a5[_0x2555b7](...Array[_0x23969e(0x888)](_0x529c7b)?_0x529c7b:[]);if(_0x1a9096&&typeof _0x1a9096[_0x23969e(0x458)]===_0x23969e(0x484))_0x1a9096=_0x5ca6ed(_0x1a9096);return{'value':_0x1a9096===undefined?null:_0x1a9096};}const _0xdffd39=new Map();let _0x177205=0x1;const _0x57c8e7=new Map(),_0x59b8de=new Map();function _0x5020c6(_0xaf5df8,_0x488b7c=null){const _0x5e80d6=_0x2fc2,_0xd82d49=_0x177205++;_0xdffd39[_0x5e80d6(0x204)](_0xd82d49,_0xaf5df8);if(_0x488b7c)_0x59b8de[_0x5e80d6(0x204)](_0xd82d49,_0x488b7c);return _0xd82d49;}function _0x4ecd75(_0x18eda0){const _0x2349e4=_0x2fc2;for(const [_0x2e8a11,_0x4ca7b8]of _0x57c8e7)if(_0x4ca7b8&&_0x4ca7b8[_0x2349e4(0x82e)]===_0x18eda0)_0x57c8e7['delete'](_0x2e8a11);for(const [_0x445893,_0x306dae]of _0x1e9302)if(_0x306dae===_0x18eda0)_0x1e9302['delete'](_0x445893);for(const [_0x378ad4,_0x5c4341]of _0x59b8de)_0x5c4341===_0x18eda0&&(_0x59b8de[_0x2349e4(0x46b)](_0x378ad4),_0xdffd39[_0x2349e4(0x46b)](_0x378ad4));if(_0x459e01===_0x18eda0)_0x459e01=null;}function _0xfb78d5(_0x328d16,_0x2b9565){_0x57c8e7['set'](_0x328d16,_0x2b9565);}function _0x5020db(_0xdf4b92){const _0x40152e=_0x2fc2;if(_0xdf4b92&&typeof _0xdf4b92==='object'&&Object[_0x40152e(0x607)](_0xdf4b92)[_0x40152e(0x788)]===0x1&&_0xdf4b92[_0x40152e(0x46e)]!==undefined)return _0xdffd39[_0x40152e(0x292)](_0xdf4b92[_0x40152e(0x46e)]);return _0xdf4b92;}function _0x5ca6ed(_0x4d20b3){const _0x5c236b=_0x2fc2;let _0x240ad9=![],_0x39f2b8=![],_0x2cf645;_0x4d20b3[_0x5c236b(0x458)](_0x1c566b=>{_0x240ad9=!![],_0x2cf645=_0x1c566b;},_0x1f01cb=>{_0x240ad9=!![],_0x39f2b8=!![],_0x2cf645=_0x1f01cb;});for(let _0x35c9cc=0x0;_0x35c9cc<0x2710&&!_0x240ad9;_0x35c9cc++)process['_tickCallback']();if(!_0x240ad9)return _0x4d20b3[_0x5c236b(0x458)](undefined,_0x3359fd=>{const _0x2c5be3=_0x5c236b;try{process[_0x2c5be3(0x7b6)](_0x2c5be3(0x3c3)+(_0x3359fd&&_0x3359fd[_0x2c5be3(0x485)]?_0x3359fd[_0x2c5be3(0x485)]:_0x3359fd));}catch{}}),undefined;if(_0x39f2b8)throw _0x2cf645;return _0x2cf645;}function _0x5c3de3(_0x2b728c,_0x3097e1,_0x35068f){const _0x2530ed=_0x2fc2,_0x3da54=_0x5eaa71(_0x2b728c),_0x1b686e=_0x57c8e7[_0x2530ed(0x292)](_0x3097e1);try{const _0x8c57d5=_0x3da54(_0x35068f,{'okdb':_0x1b686e&&_0x1b686e['okdb'],'env':_0x1b686e});if(_0x8c57d5&&typeof _0x8c57d5[_0x2530ed(0x458)]===_0x2530ed(0x484))_0x5ca6ed(_0x8c57d5);}catch(_0x450efc){if(_0x450efc&&_0x450efc[_0x2530ed(0x354)]===!![]&&_0x450efc['code']!==_0x2530ed(0x79d)){const _0x5b83f4=new Error(_0x450efc[_0x2530ed(0x485)]);_0x5b83f4[_0x2530ed(0x1bd)]=_0x2530ed(0x79d);throw _0x5b83f4;}throw _0x450efc;}}const _0x570225=new Map();function _0x4398df(_0x3ab521,_0xba5ebe,_0x5c9548,_0x12bf72,_0xac11a0,_0x3b2a3d){const _0x100433=_0x2fc2,_0x16ce58=_0x5eaa71(_0x3ab521),_0x5c06ac=(_0x57c8e7[_0x100433(0x292)](_0x3b2a3d)||{})[_0x100433(0x82e)]||_0x459e01,_0x8fece8=new AbortController(),_0x2b69e6=(_0x43d7cc,..._0x5873c6)=>_0x5c06ac['_call'](_0x100433(0x2c1),_0x100433(0x6ab),_0x43d7cc,_0x5873c6,![]),_0x3a34ce={'okdb':_0x5c06ac,'env':_0x57c8e7['get'](_0x3b2a3d)||null,'job':_0x12bf72,'jobId':_0xac11a0,'signal':_0x8fece8[_0x100433(0x79c)],'heartbeat':()=>_0x2b69e6('ctxHeartbeat',_0x5c9548),'markProgress':_0x559fc4=>_0x2b69e6(_0x100433(0x3b5),_0x5c9548,_0x559fc4),'log':(_0x2a4867,_0x1aa665)=>_0x2b69e6(_0x100433(0x271),_0x5c9548,_0x2a4867,_0x1aa665)};_0x570225[_0x100433(0x204)](_0x5c9548,{'ctrl':_0x8fece8,'call':_0x2b69e6});const _0x1fce4c=()=>{const _0x5b65f3=_0x100433;_0x570225[_0x5b65f3(0x46b)](_0x5c9548);try{_0x2b69e6(_0x5b65f3(0x2c9),_0x5c9548);}catch{}};let _0x143a18;try{_0x143a18=_0x16ce58(_0xba5ebe,_0x3a34ce);}catch(_0x256662){_0x1fce4c();throw _0x256662;}if(_0x143a18&&typeof _0x143a18[_0x100433(0x458)]===_0x100433(0x484)){const _0x2bd539=_0x336209(_0x143a18);return _0x143a18[_0x100433(0x458)](_0x1fce4c,_0x1fce4c),{'$token':_0x2bd539};}return _0x1fce4c(),_0x143a18;}function _0x2450cc(){const _0x3398c9=_0x2fc2;for(const [_0x2682bc,_0x241186]of _0x570225){if(_0x241186[_0x3398c9(0x67a)][_0x3398c9(0x79c)][_0x3398c9(0x3ad)])continue;let _0x306167;try{_0x306167=_0x241186[_0x3398c9(0x62a)](_0x3398c9(0x7f8),_0x2682bc);}catch{continue;}if(_0x306167&&_0x306167['aborted']){const {OKDBError:_0x2a8065}=requireErrors();_0x241186['ctrl'][_0x3398c9(0x29f)](new _0x2a8065(_0x306167['message'],_0x306167[_0x3398c9(0x1bd)]));}}}let _0x459e01=null;function _0x5081ff(_0x523a69){_0x459e01=_0x523a69;}function _0xada213(_0x40db64,_0x1caf78,_0x572ac2,_0x304da9,_0x14a130,_0x24f510,_0x2f5bcd){const _0x5253dd=_0x2fc2,_0x6c37a9=_0x5eaa71(_0x40db64),_0x25b452=_0x57c8e7[_0x5253dd(0x292)](_0x572ac2);try{const _0x4508c8=_0x1caf78?_0x6c37a9(_0x14a130,_0x24f510):_0x6c37a9({'env':_0x25b452,'okdb':_0x25b452&&_0x25b452[_0x5253dd(0x82e)],'payload':_0x5020db(_0x304da9)},_0x14a130,_0x24f510);if(_0x4508c8&&typeof _0x4508c8[_0x5253dd(0x458)]===_0x5253dd(0x484)){if(_0x24f510&&_0x24f510['mode']===_0x5253dd(0x8e9))_0x4508c8[_0x5253dd(0x458)](undefined,()=>{});else{if(_0x2f5bcd){const _0x41b4ef=_0x5c597c(_0x4508c8);if(_0x41b4ef===0x0)return null;return{'$token':_0x41b4ef};}else _0x5ca6ed(_0x4508c8);}}}catch(_0x343136){if(_0x343136&&_0x343136[_0x5253dd(0x354)]===!![]&&_0x343136[_0x5253dd(0x1bd)]!==_0x5253dd(0x79d)){const _0x43e8d1=new Error(_0x343136[_0x5253dd(0x485)]);_0x43e8d1[_0x5253dd(0x1bd)]=_0x5253dd(0x79d);throw _0x43e8d1;}throw _0x343136;}return null;}function _0x5c597c(_0x4b4af8){const _0x219adb=_0x2fc2;let _0x2dc44d=_0x219adb(0x654),_0x3bfc63;_0x4b4af8[_0x219adb(0x458)](_0x35e24c=>{_0x2dc44d='ok',_0x3bfc63=_0x35e24c;},_0x243358=>{const _0x3b0ec4=_0x219adb;_0x2dc44d=_0x3b0ec4(0x527),_0x3bfc63=_0x243358;});for(let _0x335f5b=0x0;_0x335f5b<0x64&&_0x2dc44d===_0x219adb(0x654);_0x335f5b++)process[_0x219adb(0x81a)]();if(_0x2dc44d==='ok')return 0x0;const _0x4f79f1=_0x5a5dac++,_0x2068cd={'state':_0x2dc44d,'value':_0x3bfc63};_0xe751f[_0x219adb(0x204)](_0x4f79f1,_0x2068cd);if(_0x2dc44d===_0x219adb(0x654))_0x4b4af8['then'](_0x5a8f24=>{const _0x2e3bcf=_0x219adb;_0x2068cd[_0x2e3bcf(0x480)]='ok',_0x2068cd['value']=_0x5a8f24,_0x521edf();},_0x1fdc91=>{const _0x550005=_0x219adb;_0x2068cd[_0x550005(0x480)]=_0x550005(0x527),_0x2068cd[_0x550005(0x744)]=_0x1fdc91,_0x521edf();});return _0x4f79f1;}function _0xbbed00(_0x32d213){const _0x39e315=_0x2fc2;let _0xa9f967=_0x25f50c[_0x39e315(0x292)](_0x32d213);return _0xa9f967===undefined&&(_0xa9f967=_0x124d65++,_0x25f50c[_0x39e315(0x204)](_0x32d213,_0xa9f967),_0x51b64a[_0x39e315(0x204)](_0xa9f967,{'fn':_0x32d213,'refs':0x0})),_0x51b64a[_0x39e315(0x292)](_0xa9f967)[_0x39e315(0x75c)]++,_0xa9f967;}function _0x384e40(_0x227cbb){const _0x559102=_0x2fc2,_0x42253d=_0x51b64a[_0x559102(0x292)](_0x227cbb);if(!_0x42253d)return;--_0x42253d[_0x559102(0x75c)]<=0x0&&(_0x51b64a[_0x559102(0x46b)](_0x227cbb),_0x25f50c['delete'](_0x42253d['fn']));}function _0x5eaa71(_0x3d49c8){const _0x57e70b=_0x2fc2,_0xa07655=_0x51b64a['get'](_0x3d49c8);if(!_0xa07655)throw new Error(_0x57e70b(0x765)+_0x3d49c8);return _0xa07655['fn'];}function _0x336209(_0x4aab32){const _0x4d4f92=_0x2fc2;if(_0x4aab32&&typeof _0x4aab32[_0x4d4f92(0x458)]===_0x4d4f92(0x484)){const _0x5698b2=_0x5a5dac++,_0x4dba08={'state':_0x4d4f92(0x654),'value':undefined};return _0xe751f[_0x4d4f92(0x204)](_0x5698b2,_0x4dba08),_0x4aab32['then'](_0x163c4d=>{const _0x3d1263=_0x4d4f92;_0x4dba08[_0x3d1263(0x480)]='ok',_0x4dba08['value']=_0x163c4d,_0x521edf();},_0x2f9ac7=>{const _0x3208be=_0x4d4f92;_0x4dba08[_0x3208be(0x480)]=_0x3208be(0x527),_0x4dba08[_0x3208be(0x744)]=_0x2f9ac7,_0x521edf();}),_0x5698b2;}return 0x0;}let _0x1cb831=()=>{},_0x923011=null;function _0x1e6a64(_0x3d4961,_0x2947ea=null){_0x1cb831=_0x3d4961,_0x923011=_0x2947ea;}function _0x1763c7(_0x5057e9){return _0x923011===_0x5057e9;}function _0x521edf(){_0x1cb831();}function _0x5681dd(_0x16ce51){const _0x354f11=_0x2fc2,_0x247f55=_0xe751f[_0x354f11(0x292)](_0x16ce51);if(!_0x247f55)return{'state':_0x354f11(0x527),'error':{'message':'unknown\x20promise\x20token'}};if(_0x247f55['state']===_0x354f11(0x654))return{'state':_0x354f11(0x654)};_0xe751f[_0x354f11(0x46b)](_0x16ce51);if(_0x247f55[_0x354f11(0x480)]==='ok')return{'state':'ok','value':_0x247f55[_0x354f11(0x744)]};const _0xa3df8f=_0x247f55['value'];return{'state':_0x354f11(0x527),'error':{'message':_0xa3df8f&&_0xa3df8f['message']!=null?String(_0xa3df8f[_0x354f11(0x485)]):String(_0xa3df8f),'stack':_0xa3df8f&&_0xa3df8f[_0x354f11(0x8a5)],'code':_0xa3df8f&&_0xa3df8f[_0x354f11(0x1bd)],'status':_0xa3df8f&&typeof _0xa3df8f[_0x354f11(0x442)]==='number'?_0xa3df8f['status']:undefined,'hold':!!(_0xa3df8f&&_0xa3df8f[_0x354f11(0x354)]===!![])}};}function _0x4380a5(_0x51d876,_0x174a6e){const _0x118c06=_0x2fc2;_0x4a3e49[_0x118c06(0x204)](_0x51d876,_0x174a6e);}function _0x3686f0(_0x3e934a){const _0x1c8ad8=_0x2fc2;_0x4a3e49[_0x1c8ad8(0x46b)](_0x3e934a);}let _0x52e924=0x0;function _0x5a61d7(){return _0x52e924>0x0;}function _0x59d26(){const _0x1ccdc6=_0x2fc2;_0x52e924++;try{return _0x21d312[_0x1ccdc6(0x4b8)](undefined,arguments);}finally{_0x52e924--;}}function _0x21d312(_0x1e2a0f,_0x3f7fa3,_0x1c7048,_0x35523e,_0x37d560,_0x4b8c48){const _0x265888=_0x2fc2;switch(_0x1e2a0f){case'reg':return _0xbbed00(_0x3f7fa3);case _0x265888(0x404):return _0x384e40(_0x3f7fa3);case _0x265888(0x62a):{const _0xa61446=Array['prototype'][_0x265888(0x848)]['call'](arguments,0x2),_0x30879b=_0x5eaa71(_0x3f7fa3)[_0x265888(0x4b8)](undefined,_0xa61446);return _0x30879b&&typeof _0x30879b[_0x265888(0x458)]==='function'?_0x5ca6ed(_0x30879b):_0x30879b;}case _0x265888(0x4b7):{const _0x245177=Array['prototype'][_0x265888(0x848)][_0x265888(0x62a)](arguments,0x2),_0xda1aac=_0x5eaa71(_0x3f7fa3)['apply'](undefined,_0x245177);if(_0xda1aac&&typeof _0xda1aac[_0x265888(0x458)]==='function')return{'$token':_0x336209(_0xda1aac)};return{'$value':_0xda1aac===undefined?null:_0xda1aac,'$undef':_0xda1aac===undefined};}case _0x265888(0x625):{const _0x20e198=_0x4a3e49[_0x265888(0x292)](_0x3f7fa3);if(_0x20e198)_0x20e198[_0x265888(0x5a3)](_0x1c7048,_0x35523e);return undefined;}case _0x265888(0x6d5):{const _0x2b163a=_0x4a3e49[_0x265888(0x292)](_0x3f7fa3);if(_0x2b163a)_0x2b163a[_0x265888(0x552)](_0x1c7048);return undefined;}case _0x265888(0x4cc):return _0xada213(_0x3f7fa3,_0x1c7048,_0x35523e,_0x37d560,_0x4b8c48,arguments[0x6],arguments[0x7]);case _0x265888(0x214):return _0x5c3de3(_0x3f7fa3,_0x1c7048,_0x35523e);case _0x265888(0x50a):return _0x4398df(_0x3f7fa3,_0x1c7048,_0x35523e,_0x37d560,_0x4b8c48,arguments[0x6]);case _0x265888(0x885):return _0x5ec267[_0x265888(0x4b8)](null,Array[_0x265888(0x7c6)]['slice'][_0x265888(0x62a)](arguments,0x1));case _0x265888(0x276):return _0x28824d(_0x3f7fa3,_0x1c7048,_0x35523e);case _0x265888(0x1f3):return _0x5681dd(_0x3f7fa3);case _0x265888(0x206):{const _0x5730a5=((async()=>{const _0x322a1b=_0x265888,_0x2ded07=await globalThis[_0x322a1b(0x6a2)](_0x3f7fa3);if(!_0x2ded07['ok']){const _0x228e0b=new Error(_0x322a1b(0x1d8)+_0x2ded07[_0x322a1b(0x442)]);_0x228e0b['code']=_0x322a1b(0x4c5);throw _0x228e0b;}return _0x2ded07['json']();})());return _0x5ca6ed(_0x5730a5)??null;}case _0x265888(0x4a6):return _0x360fa5(_0x3f7fa3,_0x1c7048,_0x35523e);case _0x265888(0x663):return _0x15378a(_0x3f7fa3,_0x1c7048,_0x35523e);case _0x265888(0x5ab):return _0x206dd3(_0x3f7fa3,_0x1c7048,_0x35523e);default:throw new Error(_0x265888(0x434)+_0x1e2a0f);}}return bridge_1={'inNativeCall':_0x5a61d7,'regObject':_0x18848d,'checkSignals':_0x2450cc,'setCurrentDb':_0x5081ff,'forgetDb':_0x4ecd75,'storePayload':_0x5020c6,'registerEnv':_0xfb78d5,'resolvePayload':_0x5020db,'bridge':_0x59d26,'reg':_0xbbed00,'unreg':_0x384e40,'fnOf':_0x5eaa71,'track':_0x336209,'resolve':_0x5681dd,'registerTarget':_0x4380a5,'unregisterTarget':_0x3686f0,'setKick':_0x1e6a64,'kickOwnedBy':_0x1763c7},bridge_1;}var writebatch,hasRequiredWritebatch;function _0x150e(){const _0x517d12=['prefetch','_ensureEnv','$pending','SESSION_TYPE_INDEX','setMaxListeners','processor:\x20quantum.module\x20must\x20be\x20a\x20string','_bootLog','commit','_sub','_wb','for','okdb.http.listen(port)\x20in\x20each\x20worker.','_startClaimedSoon','indexReady','txn:rollback','_clearTTL','getMeta','null','awaitIdle','_clearChunked','$type','\x27,\x20fn)\x20for\x20an\x20in-process\x20consumer,\x20or\x20run\x20a\x20consumer\x20on\x20another\x20node/host\x20you\x20launch\x20—\x20all\x20claim\x20the\x20same\x20durable\x20jobs\x20exactly\x20once\x20(CAS).\x20See\x20docs/upgrade-2.0.md.','nextTurn','Type\x20\x22','_ensure','(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20','selfKey','_ttlState','_root','getStats','_statusEnv','done_ttl','job.buckets[].id\x20must\x20be\x20non-empty\x20string','object','puts','ctxSignal','txn-commit','subscriptions-store:\x20addInterest\x20on\x20unknown\x20session\x20','writerWatchdog','nextExpiry','field\x20resolver\x20request\x20still\x20pending','recommended','Type\x20\x27','retry','sync','OKDBProcessor','compactLock','.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22','select','Date','OKDBInvalidPrimaryKeyError','system:env_release','registerTemplate','storeGetConfig','subscribe','loginSelect','[log-sink]\x20','enableNullTermination','RangeError','\x27,\x20module)\x20(the\x20auto-adopted\x20shared-pool\x20form)\x20was\x20removed\x20in\x20okdb\x202.0:\x20okdb\x20no\x20longer\x20auto-runs\x20queue\x20handlers\x20(trusted\x20user\x20code\x20it\x20can\x27t\x20place).\x20Use\x20queue.process(\x27','transaction\x20commit\x20failed','failures','tick','noteListenAddr','reducer','getTemplate','getMaxBodyBytes','a\x20string','hash','_tickCallback','useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20','_isFar','SCHEMA_VALIDATION_FAILED','PLUGIN_ALREADY_REGISTERED','_syncLock','_put','getRunningEngine','listPath','Unknown\x20transaction\x20action:\x20','maxConnections','claimed','Version\x20mismatch\x20for\x20','tolerant','_handles','reencrypt','tools','fts:registered','_pumper','_isBootstrap','okdb','getLegacyCursor','Error','acquired','registerModel','_facade','_okdbAdminAttached','OKDBSchemaCollectionError','processorsParticipating','lockHeld','\x20log\x20entr','setUint32','\x27:\x20','_ttlByExpiry','Map','hasEmbedderFactory','getGcHorizon','_nodePublicKey','SUB_ENV','docEntry','refill_amount','job_type.defaults.buckets\x20must\x20be\x20array|null','path','embed','addSSE','cause','slice','envName','entries','_read','transactionSync','preparer\x20must\x20be\x20a\x20function','sweepExpiredTTL','family','ensurePeerState','uninstallEngine','\x22\x20must\x20return\x20{\x20embed(input):\x20Promise<Float32Array>\x20}','actionCount','batch','schema:set','isSync','bucket\x20id\x20required','flushTicket','feature','recordPeerAck','releaseClaim','_systemEnv','registerHandler','lookupByName','_path','error','_fail','limitOf','OKDBAlreadyExistsError','db.processors.','DOC_STATUS_CHANGE','_waitNative','nativeBinaryPath',',\x20got\x20','reject','IPv4','_sweepInProgress','iterable','_makeLazyVectorAdapter','assertStartAllowed','markJobProgress','an\x20environment\x20name','getRefViolation','dirty','Blob\x20not\x20found:\x20','\x27\x20does\x20not\x20exist','actions','node:http','filter','dataEnv','lmdb','effective','validateOidcAccessToken','countByIndex','~system','listProviders','test','compactStorage','resolveData','processor','isWanted','cascade','driver','removeJobTypeSchema','_lock','isArray','INVALID_INDEX_KEY','stopWorkerAbort','\x22\x20to\x20enable\x20it.','_cancelTTLTimeout','refreshTtlBatch','resolveModelDims','system:clock_change','routes','definition','login','isActive','_localViewApi','\x22\x20is\x20not\x20allowed\x20(it\x20evaluates\x20code);\x20use\x20declarative\x20operators\x20instead','job_type.id\x20must\x20be\x20non-empty\x20string','bucket_tokens','Unique\x20constraint\x20violated\x20on\x20','\x22\x20tokens\x20too\x20large','captureStackTrace','setMode','job_type.max_concurrency\x20must\x20be\x20int\x20>=\x201\x20or\x20null','root','fromEntries','job_type.payload_schema\x20must\x20be\x20object|null','join','$not','ensure:\x20view\x20entry\x20missing\x20name\x20or\x20definition','recomputeFields','~fts:','stack','next','_makePipelineApi','proc','viewOp','INDEX_PROGRESS','isIndex','resetIndexBegin','job.bucket_tokens\x20must\x20be\x20int\x20>=1','_flushIntervalTimer','maxBodyBytes','CHANGEFEED_QUANTUM','Storage\x20resolver\x20must\x20be\x20a\x20function','_sinks','gc.','planUpdateJob','existsSync','_validateOidcAccessToken','busState','ttl:clear','license:removed','getResolvedOptions','_writeBlob','session','engineStop','before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.','onWindow','whenSettled','finish','bucketsDb','bucket\x20\x22','tierList','filterSessionsForType','constructor','unref','_handle','ready','_setKey','dropping','engineUninstall','listViolations','resetIndex','_license','\x22\x20tokens\x20must\x20be\x20>=\x201','isWorker','timestamp','$options','Unsupported\x20transaction\x20action:\x20','setPeersFn','mode','createHash','__stateDb','@harperdb/extended-iterable:skip','Too\x20many\x20concurrent\x20connections','library\x20(okdb\x20node-model\x202.0).\x20For\x20multi-process\x20HTTP\x20serving\x20use\x20the\x20okdb\x20','job.tries\x20must\x20be\x20non-negative\x20int','runRecord','forEach','_startAdmission','__ttlByExpiry','cursor','$mod','_stream','byteLength','embeddings:pipeline:ready','_detachLogSink','a\x20Buffer\x20or\x20readable\x20stream','durableMarkDelete','inline','enableAll','$gte','blobPath','admin','license:activated','process(filter)','enqueue','true','ALREADY_EXISTS','encodeInto','unique:violation_resolved','listen','prepareTxnEnqueue','\x20>\x204)\x20{\x0a\x09\x09\x09if\x20(','samplePayloads','registerType','sparse','_registerType','code','getSession','_settleRead','setEncryptionKey','_nodePrivateKey','create','files','~proc:state','req','_tids','loadedPath','patch','_unknownOptionsWarned','\x20===\x204)\x0a\x09\x09\x09\x09','_ensureTokensType','options','build','runGc','__after','ingest','throw','getStatus','_localViews','claim\x20requires\x20non-empty\x20type','txn\x20ops\x20must\x20be\x20an\x20array','_pdb','embedder\x20is\x20gone','HTTP\x20','removeTxn','repair','returnRecoverableErrors','Algorithm\x20factory\x20must\x20be\x20a\x20function','put','useReadTransaction','INVALID_STATE','_sync','sort','subscriptions-store:\x20open()\x20not\x20called','workers','bootRuntimeDeclarations','system:bus_state_change','setPosition(p)\x20{\x20position\x20=\x20p\x20},','embeddings:embed:settled','issueToken','hex','\x27\x20did\x20not\x20return\x20a\x20valid\x20instance','Server','node:perf_hooks','resolveBackupDest','TXN_INVALID_OP','HIGH_FREQ_EVENTS','createWriteFacade','functions','txnDone','resolve','bucket.tokens\x20cannot\x20exceed\x20capacity','_pendingLocal','bus:poke','Foreign\x20key\x20violation:\x20','_detachLog','info','types','isOAuthEmailAllowed','-worker','idempotency_key','_role','connected','_openAckDb','metaDb','_blobsDir','OKDBInvalidValueError','set','STARTED','fetchJson','stream','_advanceHlcOnRecv','role','_workers','ttl','job\x20type\x20must\x20be\x20object','log\x20entry\x20fields\x20must\x20be\x20object|null','busEmit','disableAll','install','closeEnvLocally','startsWith','$size','quantum','_autoCompact','node:stream','getJobLogs','Database\x20not\x20started','durableStats','queue:log','enqueue\x20txn\x20belongs\x20to\x20a\x20different\x20environment','BAD_PLUGIN','markJobComplete','crypto','isNaN','usedBy','granId','bucket.capacity\x20must\x20be\x20int\x20>=\x200','_readViewExpired','OKDBForeignKeyDeleteError','_seen','__notImplementedNative','_indexBuilds','_rebuilding','disable','details','gcOrphanedBlobs','setToken','_licenseInterval','_native','1482587abjsOq','removeBucket','inFlight','Engine\x20template\x20id\x20must\x20be\x20a\x20non-empty\x20string','toJSON','primaryOkdb','READER_HELD_ACROSS_AWAIT','_getRaw',',\x20source)\x0a\x09\x09}\x20else\x20{\x0a\x09\x09\x09if\x20(','files.upload:\x20id','level','removes','_settleWaiters','installed','NativeLock','write\x20batch:\x20missing\x20result','listAlgorithms','describeIndexes','_keyFns','orchestrator','SYSTEM_CLOCK_CHANGE','allowUnsafe','4630odbiDw','resumeJobType','percentile','__okdb','completeJob','job.finished\x20must\x20be\x20number|null','Invalid\x20onDelete\x20rule\x20\x27','find','job_type.defaults.retry_delay\x20must\x20be\x20int\x20>=\x200\x20or\x20null','refreshTtl','tags\x20must\x20be\x20array\x20or\x20string','_ttlBackoffUntil','log\x20entry\x20fields\x20too\x20large\x20(>2KB\x20serialized)','system:proc','_jsFactories','processRest()','streamClose','envPath','getChanges','\x20dropped\x20(buffer\x20full)','hasIndex','listTTL','removeEnvironment','removeLink','asyncIterator','hybridQuery','TXN_START','viewDb','stopAll','_onFeedChange',']\x20already\x20maps\x20to\x20\x27','features','toISOString','materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.','_kbuf','_debounceTimer','process()\x20entry\x20\x22','flush','_low','job.tag\x20must\x20be\x20string|null','__tokenSecret','enforced','consumeLoginState','starting','ctxLog','retryJob','sseSetHeader','enable','guardSnapshotIterable','api','__logsDb','geoQuery','bus','_writer','OKDBError','taken','logCap','ONLINE','push','index:reset','_ttlByKey','writeBlob','paused','schema','Unable\x20to\x20serialize\x20object\x20as\x20a\x20key:\x20','job.','SCHEMA_COLLECTION_INVALID','flushQuantum','authorization','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','_attached','rollback','remove','bucket.tokens\x20must\x20be\x20int\x20>=\x200','compare','BAD_PARAM','_commitSessionMutation','get','resolveField:\x20field\x20required','bumpVersion','Key\x20is\x20too\x20large','TYPE_NOT_REGISTERED','_enableChangelog','node:events','_np','cancelJob','\x27,\x20cannot\x20map\x20to\x20\x27','registerModule','references','registerReducer','abort','resumed','includes','doesExist','autoCompact','_settled','native','engine:','return','stopHandle','$defs','dataView','_openLocalPeerDb','pump','listBuckets','OKDBVersionMismatchError','engines','Engine\x20template\x20must\x20be\x20a\x20plain\x20object','meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20','outgoing','ctxUpdateStatus','_formerOrigins','oauth','isTypeEmpty','backupRoot','no_action','extend','shutdownTimeout','match','importBlobs','reconcileDesired','run','_update','Cannot\x20register\x20plugins\x20after\x20start','queue','new','clients','isSetupMode','position','buildOwnRow','fts:reset','createQueryTester','ctxRelease','wake','parse','engine','rows','fromBufferKey','mcp','_assertOpen','reason','getMany','_baselines','$near','WORKERS_REMOVED','_writerWatchdogInterval','listLinks','storePayload','feed:','~queue_jobs','msg','orchestratorStarted','$where','compact','_stopFor','getCount','startAutoCompactCheck','nextTick','_hybridQuery','getFloat64','lastIndexOf','sortedDb','pin','\x20returned\x20no\x20key',':emb:','diag','BAD_EMBEDDER_FACTORY','registerQuantum:\x20name\x20must\x20be\x20a\x20non-empty\x20string','\x22)\x20before\x20open()','__ttlByKey','setReadBuffer','useVersions','groupsDb','ttl:set','_pressure','_claimGated','encoder','pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20','msgpackr','job.claim_expires\x20must\x20be\x20number|null','OKDBIndexAlreadyRegisteredError','_emitProc','retry_delay','queue:done','_afterDurable','ALL_EVENTS','_range','_timerObjs','typeSubDbs','Algorithm\x20factory\x20must\x20return\x20an\x20object\x20with\x20','$ref','last','TypeError','_key','ttlTimer','once','iterate','~queue_buckets','getIndexMeta','streamRead','bus:type_drop','$nor','let\x20position;\x20let\x20readString\x20=\x20','811867LlEJsH','readField','undefined','_changefeed','vector','queue:removed','processor:\x20rebuild\x20must\x20be\x20a\x20function','_store','setHostPlugins','registerQuantum','(?:','_asArray','pageSize','getTTL','setWake','max','_teardownNative','job_type.defaults\x20must\x20be\x20object|null','envs','DEFAULT_TTL_MS','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','TXN_CLOSED','pressure','\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer','list','servers','_pokeHandler','unregisterTarget','isEnabled','getIndexStatus','item','UNKNOWN_RANGE_OPTION','MAXIMUM_KEY','forceResync','continueOnRecoverableError','closeSession','PLUGIN_DEPENDENCY_MISSING','envSize','handle','STOPPING','_ackDb','INDEXER_DOC_FAILED','byLabel','getRecord','_assertFiles','setInt32','bootSyncedViewsInline','_admissionTimer','REVERSE_INDEX','inflight',':keyToChange',')\x20+\x20readString(source)}','\x20must\x20be\x20a\x20non-empty\x20string;\x20got\x20','okdb_session','MAX_SAFE_INTEGER','_id','localViewStats','\x20must\x20be\x20number','patchDeclaration','\x27\x20doesn\x27t\x20exist','bootSyncedPipelines','embedder\x20request\x20still\x20pending','ref:violation_resolved','prevDb','getEmbedderFactory','timerArmed','processor:\x20specify\x20exactly\x20one\x20of\x20handler:\x27<name>\x27\x20or\x20module:{path,export},\x20not\x20both','ensureType','processorHold','\x20was\x20removed\x20in\x20okdb\x202.0.\x20Use\x20processors:true\x20for\x20plain\x20lease\x20participation.\x20See\x20docs/upgrade-2.0.md.','system:type_drop','_running','immediate','split','fts:','engineType','bootSyncedViews','_envWide','sweepOrphanLogs','bridge','_dupArg','FOREIGN_KEY_DELETE_RESTRICTED','embeddings:strategy:registered','setCurrentDb','log\x20entry\x20message\x20required','_quantumGate','lookupByTokenHash','job.priority\x20must\x20be\x20int','limits','_durableEngineDoc','status_code','_resolveKeys','normalizeOAuthAuthResult','onDelete','license:invalid','_settleWrite','ref:violation','clearSync','Database\x20already\x20opened/closed','type:','status_message','_rawTxnBuf','unpin','NOT_IMPLEMENTED_NATIVE','createLoginState','sourceKey','Blob\x20missing\x20for\x20file:\x20','backoff_multiplier','dir','bucket.updated\x20must\x20be\x20number','defaults','gateQuanta','describeChunk','validateRouteInput','_setPeerState','setTTL','_dedupeKey','durableMarkDone','registerBucketProjection','buckets','_tokenSecret','_subscribeEvent','_listenAddr','attachConsole','resolveField:\x20type\x20required','TXN_ENV_MISMATCH','lastTxnId','db.workers\x20was\x20removed.\x20okdb\x20does\x20not\x20manage\x20processes\x20—\x20run\x20more\x20okdb\x20processes\x20(processors:true)\x20via\x20your\x20orchestrator;\x20the\x201-of-N\x20processor\x20lease\x20load-balances\x20across\x20them.\x20See\x20docs/upgrade-2.0.md.','ceil','streamByHash','endIndex','materializer','tag\x20too\x20long','turnWaiters','has','\x20(required\x20by\x20','exportName','timer','getLoginConfig','~file:blob_status','resetting','trim','attachFeed','exportEnvsToStream','doc','vector-search\x20engine\x20not\x20running:\x20\x22','clockToChangeDb','exportBlobs','_clockToChangeDb','refItemsDbs','kickOwnedBy','dims','ITEM_PENDING','type:drop','_emit','getIndexCount','.\x20Add\x20a\x20license\x20that\x20includes\x20\x22','aborted','_peerDb',':txnRange','schema:drop','_env','registerQuantum:\x20load\x20must\x20be\x20a\x20function','\x20which\x20does\x20not\x20exist','$and','ctxProgress','readFieldMany','origin','tags','embedBatch','_meta','there\x20is\x20no\x20`http`\x20option\x20—\x20the\x20HTTP\x20server\x20exists\x20only\x20when\x20db.http.listen(port)\x20is\x20called','toFixed','REMOVE','remote','dropType','customReducerNames','bucket\x20must\x20be\x20object','PUT','okdb-node:\x20a\x20background\x20async\x20handler\x20rejected:\x20','_makeIterator','_onStop','ensure:\x20fts\x20entry\x20missing\x20name\x20or\x20fields','updated_at','record','~processes:cmd','started','cron','some','_flushTimer','hasOwnProperty','end','refreshThresholdMs','ms\x20max=','events','_macro','now','stateNames','inNativeCall','.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20','emitProc','listModels','changeToClockDb','_handlerName','_modeApplied','_markSeen','embeddings','preview','symbol','_settle','_compactLock','itemsGroups','fieldPath','engineStart','\x27\x20export\x20\x27','_ensurePeerState','setTtl','ttlStats','VERSION_MISMATCH','error_stack','Can\x20not\x20serialize\x20key\x20of\x20type\x20','_maxConnections','_defaultEnv','detachConsole','payload_schema','properties','resolution','T_INTEREST','connectionCount','vector-search','(source)\x20=>\x20{','Referenced\x20type\x20\x27','capacity','server','OKDBIndexNotRegisteredError','invalid\x20job_type.status:\x20','registerHandler:\x20name\x20must\x20be\x20a\x20non-empty\x20string','lastClock','unique:violation','_typesDb','_tx','OKDB','http.listen({workers/makeOkdb/primaryOkdb})\x20is\x20no\x20longer\x20supported\x20in\x20the\x20','_readBuf','unreg','records','okdb._openEnvLazy:\x20env\x20\x22','near','getEntry','_refCache','_tools','_registrations','runPoll','startIndex','backup','debounceTimer','defaultTTL','targetKey','pause','getBlobStatus','lastError','job.idempotency_key\x20must\x20be\x20string|null','listTypes','_normalizeOAuthAuthResult','embedder','limit','queue:retry','bus:drain','cleanup','maxDbs','createWorker','clearTTL','exportToStream','backoffUntil','afterTurn','processorsStart','openEnv','turn','hasChangelog','clearTtl','getOpenWarning','exclusiveStart','values','_stateDb','restrict','dropSchema','nodeKeys','checkSignals','isWriter','flushMaxWait','maxExtra','getRange','okdb-node:\x20unknown\x20bridge\x20op\x20','INDEX_NOT_REGISTERED','ENV_NOT_FOUND','encryption:key-changed','abs','min','defineProperty','__peers','string','PLUGIN_NAME_CONFLICT','_closed','drainDeadlineMs','inputSchema','handleResult','status','job.error_stack\x20must\x20be\x20string|null','_push','catalog','pop','Native','_ack','job_type.','importBuf','logChange','_blobStatusTxn','OKDBTypeNotRegisteredError','resetIndexFinish','job_type.defaults.max_tries\x20must\x20be\x20int\x20>=\x201\x20or\x20null','txnUndone','_durableEmbedderInfo','_drain','registerPreparer','raw','action','Engine\x20driver\x20for\x20\x22','off','then','storeHasDiff','Plugin\x20name\x20\x27','useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20','dupSort','_getOidcDiscovery','process(entries,\x20options):\x20with\x20an\x20entries\x20array\x20the\x20handler\x20lives\x20in\x20each\x20entry\x20({\x20type,\x20handler,\x20…\x20});\x20the\x20second\x20argument\x20is\x20the\x20pool\x20options\x20object.','clearStuck','trunc','mean','REF_VIOLATION','reconcilePeer','ms\x20busy=','_warnUnknownOptions','\x27\x20is\x20not\x20a\x20function','_timerHandle','hasBody','__cmd','_syncExpiresAtField','delete','processor:\x20module\x20\x27','sseSend','$payload','subarray','storeGetHeadCount','$lt','setMaxBodyBytes','params','job\x20must\x20be\x20object','online','_enqueueInTxn','fetchRemoteDelta','apiCall','onUndo','processorsStatus','_closeEnvLocally','job.status_code\x20must\x20be\x20string|null','replaceMember','lock','setFilter','state','_info','_busFacade','listRecords','function','message','heartbeat','worker','registerIndex','_isOpen','typesDb','INDEX_HAS_CONSUMERS','_buffer','\x20references\x20','drop','REF_VIOLATION_RESOLVED','type','release','killWorker','appendJobLog','Plugin\x20\x27','SYSTEM_STOPPED','listJobTypes','_db','job\x20id\x20required','72qRvUaA','node:path','notes','_indexBuild','readerCheck','Query\x20operator\x20\x22','okdb.noFast','_inlineClosureWarned','String\x20does\x20not\x20fit\x20in\x20target\x20buffer','system:ready','retryable','job_type.payload_schema.enforce\x20must\x20be\x20boolean','debug','emb','priority','_status','_txnIdAtSnapshot','ies','hasEnv','createAndStartEngine','inclusiveEnd','_blobPath','files.registerExtractor:\x20extractor\x20must\x20be\x20a\x20function','pumpEnvSync','_drainOne','_doHooks','enabled','listRuns','createdBy','isHeld','callAsync','apply','createEngine','txnId','getByPrefix','view','index','INDEXER','write','__adminRelay','_draining','count','job.cron\x20must\x20be\x20string|null','_assertRangeOptions','HTTP_ERROR','isOrchestrator','workerState','~sub','_connections','dropAll','markSnapshotComplete','handler','_pending','okdb-','addJobType','use\x20engines.registerDriver()','formerIds','pipelines','attach','args','_blobStream','body','ensureDesired','registerEmbedderFactory','IPv6','process','sessionsForKey','createEnvironment','INACTIVE','inBatch','searchDocs','invalid\x20job.status:\x20','spki','algorithm\x20is\x20gone','fromCharCode','SYSTEM_POKE','range','freeze','timeMachine','OKDBUniqueConstraintError','_ttlTimeout','getEngine','getBucket','clearDone','addEventListener','destroy','total','updateBucket','getDefaultTTL','processor:ready','calculateDelta','registerChunkStrategy','removeSync','stopWorkerBegin','INVALID_OPTIONS','env','getJobType','_sweepOrphanLogs','ttlMs','charCodeAt','_lookupByTokenHash','getPrototypeOf','size','_lazyPinned','~queue_payloads','INDEX_ALREADY_REGISTERED','send','drain','Referenced\x20key\x20\x27','setClaiming','_envSyncStop','max_concurrency','invalid\x20log\x20level:\x20','job','forgetDb','storage\x20adapter\x20has\x20no\x20method\x20','ensure','locks','change','_logChange','processor:progress','hasType','hook','storeEnv','txn:start','system:stopped','_callMacro','errors','_nm','clearAsync','from','signalWant','bootRuntime','applyOps','sweepExpired','reduce','turns','isBun','_openEnvLazy','queue:enqueued','WriteBatch','toBufferKey','err','repairBlobRefs','_closedHandle','holder','syncBlobs','patchSelf','node:fs','hlc','isFinite','created','INDEXER_DOC_DONE','tokens','describeIndex','_blobStatusDb','namespace','registerEnv','_hlc','items','resolveField:\x20resolver\x20must\x20be\x20a\x20function','getSelfNode','process\x20options.admission\x20must\x20be\x20a\x20function','bucket.refill_every\x20must\x20be\x20int\x20>=\x200','(worst\x20','reidentify','runDrop','__lock','getKeys','_processorStops','_isLoopbackIp','async','~lock','_subscribed','utf8','_pokeListener','Index\x20\x22','setDeltaLimit','getPeerAcks','CLI\x20(`okdb\x20listen`),\x20or\x20use\x20Node\x27s\x20built-in\x20`cluster`\x20module\x20and\x20call\x20','vecPut','sessionId','\x22\x20is\x20used\x20by:\x20','_wsettle','Engine\x20template\x20build()\x20is\x20required:\x20','_log','markJobHeartbeat','payload','BAD_HOST','set_null','_buildOwnRow','(?:/(.*))?','number','_patch','describeType','scopedName','doc_status:','SEARCH','_write','HTTP\x20server\x20already\x20running','dup','_callPacked','_pendingOps','bootSyncedEngines','removeListener','_runRecord','_buf','createEmbedder','fields','UNIQUE_CONSTRAINT','ENGINE_DRIVER_MISSING_START','isWellFormed','system:env-sync','storeGetDiffs','setJobTypeSchema','buffer','callPacked','readerCheckIntervalMs','license','_http','equal','getStateAt','done','exists','LICENSE_LIMIT_EXCEEDED','putSync','_listening','_listPeers','exports','_report','upsertLink','readKey','_closeReadTransaction','drivers','reducers','Feature\x20not\x20available\x20on\x20free\x20tier:\x20','getAuthOptions','clearScan','getFast','Embedder\x20factory\x20must\x20be\x20a\x20function','inactive','_readerCheckInterval','mapSize','targetType','_addr','envNames','_rebuild','toMs','listTemplates','txn','~processes','register','address','admission','_subsV2Obj','setAutoCompact','emit','views','key','setKick','vec:','listIndexes','pinned','validate','_call','staticCall','_deliver','_ringSize','_set','jsonrpcCode','_stopAutoCompactCheck','created_at','_dedupeMax','upload','stor','durableEmbedderInfo','search','callRows','shift','publicKey','setFlushNotify','getEmbedderSchema','\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict','isOpenForIp','STARTING','openDB','durableRetryDoc','_typeKeys','OKDBForeignKeyError','_keepAlive','_jsSchemas','pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20','~log','_cmd','_gcTimer','TXN_ROLLBACK','_plugins','setKeyBuffer','meta','ctxEmit','hasNativeBatch','importFromFile','_locks','listRefViolations','opts','close','env:removed','hasDriver','pipeline','valuesForKey','OKDBTypeAlreadyRegisteredError','snapshot','use','encryptionKey','durableDocs','indexStats','_remove','_ensureVectorStore','registerTarget','attachOKDB','-----BEGIN\x20PUBLIC\x20KEY-----\x0aMCowBQYDK2VwAyEAacrkExPrhxNVHyeQBLDwg8xfm1OwyxDAPNdGXABYS2s=\x0a-----END\x20PUBLIC\x20KEY-----','startNewEnginesFromSync','loop-lag','_logEnv','createSession','\x27\x20on\x20type\x20\x27','warn','job.status_message\x20must\x20be\x20string|null','_build','resume','_rbuf','$elemMatch','setClaimGated','modeApplied','query','dedupeMax','/([^/]+)','assertQueryOptions','areIndexesReady','plugins','~log_entry','_quantum','unique','~engines','detach','getAll','sha256','embeddings:indexer:doc:done','import','retryFailed','balanced','dropped','rowKey','getViolation','hasApi','allocUnsafeSlow','setBridge','digest','txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple','drainJobType','resolveField:\x20a\x20resolver\x20or\x20options.batch\x20is\x20required','INDEXER_DOC_QUEUED','catch','RELAY_FULL','isBuffer','removeInterest','keys','_flushDebounce','STOPPED','max_tries','boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20','migrate','envsWithFiles','_getType','5569872HBhBHO','getUniqueViolations','drives','_lookupByName','clearDefaultTTL','listRoutes','setProcessingConfig','processor:error','flushTimeoutError','FOREIGN_KEY_VIOLATION','inspect','unregisterExtractor','getRaw',':\x20expected\x20','_scheduleFlush','indexContent','__ttlCancelledGen','_handlePending','bigint','delta_limit','queue:reconciled','_handlePoke','event','refill_every','recordRun','claim','7052751Ebpqik','call','Engine\x20driver\x20already\x20registered:\x20\x22','scheduled','_refIndexDb','stopping','uploadTxn','encryptionKeys','createPipeline','getInt32','_onPending','getIndex','compression','setPeerState','context','autoCompactState','_isOpenForIp','DEFAULT_EVENTS','$streamId','interest','typeStats','setSchema','progressed','isFeatureEnabled',':useReadTransaction','map','when','embedderCall','guard','createReadStream','listPeers','_adminRelay','_setTTLEntry','pauseJobType','_getPeerState','load','listBlobStatus','\x20of\x20env\x20\x22','offset','mapError','job.buckets\x20must\x20be\x20array|null','snapshotScan','ms\x20mean=','pending','_buckets','T_SESSION','byIndex','fts','active','docs','getOidcDiscovery','auth','listening','resumeOpts','_handleInProcess','changeEncryptionKey:\x20to','continueIteration','storeGetDiffsInRange','alg','embeddings:indexer:doc:failed','_detachConsole',':\x20not\x20implemented\x20in\x20the\x20native\x20build\x20yet','failed_ttl','compaction','note','durableRebuild','free','gen','internal','_started','unresolveField','setStorageResolver','File\x20not\x20found:\x20','encryption\x20key\x20function\x20failed:\x20','$in','_retryPending','offWindow','INVALID_PRIMARY_KEY','__esModule','_txnBuf','embed-worker','ctrl','return\x20fromCharCode(','buckets\x20must\x20be\x20array\x20or\x20string','\x20actions=','getNodeRecord','unpack','_changeToClockDb','job.type\x20must\x20be\x20non-empty\x20string','\x27\x20at\x20','field:resolver_registered','config','requires','name','host','ITEM_REMOVE','removeEventListener','KNOWN_OPTIONS','2179860GgoYDw','flatMap','creating','group','failed','asArray','indexOf','getCursor','socket',';\x20got\x20','validateBlobIntegrity','durableTierLag','_uid','setCursor','boolean','importFromStream','emitClearDone','newListener','HIGH_SENTINEL','read','ExtendedIterable','processor:paused','allSettled','fetch','readString\x20}','\x20documents\x20fail\x20validation','$lte','ttl:expired','iterator',')\x0a\x09\x09}\x0a\x09\x09','http.listen:\x20host\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20a\x20non-empty\x20array\x20of\x20non-empty\x20strings','_defaultEnvObj','default','createIndexer','regInfo','isInteger','licenses','OKDBNotImplementedNativeError','TXN_INVALID_ACTION','ringSize','runtimeState','getUint32','ms\x20p99=','clearFailed','node:cluster','/?$','getVector','flushPoll','open','updated','_getNodeRecord','spawn','stop','tries','_OPTION_HINTS','enforce','evict','utf8Write','index:','_release','__warned','__sync:peer_state','getUniqueViolation','registerExtractor','FTS_BUILD_CONTINUE','finished','_keyListener','setLogSink','TXN_END','stopped','ENCRYPTION_KEY_REQUIRED','resetCursor','storage\x20adapter\x20is\x20gone','pid','log','registerIndexDeferred','bucket','resumeAllAfterDrain','Missing\x20plugin:\x20','_isReader','claim_expires','CREATED','createPublicKey','incoming','isDeepStrictEqual','_isClosedEnvError','replaceInterests','advanceHlcOnRecv','markJobFail','byteOffset','_nextExpiry','_clockListener','setDefaultTTL','item:','searchWithScores','links','removeJob','node','_admissionStarted','kick','\x22\x20must\x20be\x20a\x20plain\x20object','\x20must\x20be\x20','isCoordinator','concat','onDo','Invalid\x20index\x20key\x20type\x20for\x20\x27','removeResolver','makeOkdb','runtimeDeclarations','_ttlCompositeKey','processes','clear','EMBED_PENDING','replace','versions','empty\x20array','_isWriter','before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20','export','item:remove','ref','storeGetHead','_cursors','resolvedFields','deleted','_run','maxMs','stats','killAll','_listeners','fingerprint','readHashRange','~ref_violations','onDone','refreshReadTxn','3320zueXRO','resetView','processor:resumed','durableRetryFailed','expiresAt','setPrototypeOf','createSearch','grouped','_onItem','uninstall','stopView','ITEM_CREATE','hasUniqueViolations','_ensureDesired','20JEzvlO','ERROR','detachFeed','_ts','env:opened','INVALID_SCHEMA','ftsQuery','~processes:desired','Plugin\x20must\x20have\x20a\x20name','_onPoke','compiled','_staticCall','_feed','Index\x20\x27','reencrypt:\x20env','log\x20entry\x20must\x20be\x20a\x20string\x20or\x20object','engine\x20api\x20has\x20no\x20method\x20\x27','$ne','_lockHandle','dirname','_searchWithScores','time-machine:','assertCreateAllowed','job_type.defaults.backoff_multiplier\x20must\x20be\x20number\x20>=\x201\x20or\x20null','vectorStoreStats','update','index:progress','_durableIndexerStats','getClock','getValues','setNative','http','bus:env_release','isSnapshotComplete','__sync:acks','clone','value','_autoCompactTimer','durableMarkFail','_timer','Unknown\x20OKDB\x20transaction\x20error','onLicenseExpired','processor:\x20cannot\x20combine\x20a\x20closure\x20handler\x20with\x20module:{path,export}.\x20','forceAfterMs','_wrap','sync:apply','setAddress','view:progress','queue:clear-progress','syncLock','statusOpen','sourceType','stringify','changeEncryptionKey','$regex','chunks','subscriptions','registerDriver','_envs','TYPE_ALREADY_REGISTERED','refs','bulkRemoveChunk','pendingResponses','getRun','_rootDb','compact/repair\x20already\x20in\x20progress\x20for\x20this\x20environment','Cannot\x20openEnv(\x22','system','_callRows','okdb-node:\x20unknown\x20callback\x20id\x20','Transaction\x20already\x20closed','ITEM_UPDATE','listVectorStores','running','fail','keyFor','indexer','\x27\x20already\x20registered','updateJob','bind','_windowCbs','instanceTimerArmed','_undoHooks','encryption\x20key\x20function','rebuild','reconcile','current','vecRemove','dbs','prefix','Can\x20not\x20serialize\x20async\x20iterables\x20without\x20first\x20calling\x20resolving\x20asArray','start','storeEnvName','add','peers','Embedder\x20factory\x20for\x20\x22','authenticateToken','storeGetTotalHeadCount','version','_initialize','getSecurityNotices','$eq','stateInfo','\x20=\x20source[position++]\x0a\x09\x09if\x20(','length','QUEUE_WORKER_REMOVED','randomUUID','fetchPeer','getTypeCount','getSchema','EMBEDDER','registerFts','getDefinition','initialize','regObject','.\x20Valid:\x20','\x22\x20not\x20found','__absent','module','License\x20limit\x20exceeded:\x20','parseBearer','SKIP','acquiredAt','relay:error','signal','__HOLD__','processorsStop','embeddings:indexer:flushed','resolveField:\x20options.batchSize\x20must\x20be\x20a\x20positive\x20integer','data','target','addInterest','bucket.id\x20must\x20be\x20non-empty\x20string','failJob','ENGINE_INVALID_TEMPLATE','geoConfig','explainIndex','tryAcquire','isReader','FTS_READY_TIMEOUT','assign','child','instance','kind','bus:proc','stopAutoCompactCheck','restart','remoteAddress','FIELD_RESOLVER_PENDING','transaction','emitWarning','handleError','~files','pumping','headers','typeId','_ttlTimerAt','readTransaction','patchConfig','token','removeJobType','pauseAllAndDrain','\x22\x20requires\x20a\x20`handler`\x20function','registerAlgorithmFactory','bootLogMark','claim_id','prototype','Expected\x20catch\x20callback\x20to\x20be\x20a\x20function','cursorKey','332295cNKBlo','_resolveFilter','findOwner','describeAllTypes','_getFast','pipelineFamily','startClaimed','Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results','__syncOverride','Engine\x20driver\x20type\x20must\x20be\x20a\x20non-empty\x20string','tag','getJob'];_0x150e=function(){return _0x517d12;};return _0x150e();}function requireWritebatch(){const _0x2a6ca3=_0xef081e;if(hasRequiredWritebatch)return writebatch;hasRequiredWritebatch=0x1;const {reclass:_0x4b333b}=requireErrors(),_0x8b0a6c=requireBridge(),_0x452064=new Map();let _0x1e8242=null;function _0x5ddde0(_0x4174cc){const _0x555499=_0x2fc2;if(_0x1e8242)return;_0x1e8242=_0x4174cc,_0x4174cc[_0x555499(0x5b1)](_0x5797d6);}function _0x5797d6(){const _0x5ae6a1=_0x2fc2,_0x4f6fd0=_0x1e8242['settledTickets']();for(const _0x24a49d of _0x4f6fd0){const _0x389276=_0x452064[_0x5ae6a1(0x292)](_0x24a49d);_0x389276&&(_0x452064[_0x5ae6a1(0x46b)](_0x24a49d),_0x389276());}}function _0x493ec2(_0x2e4397,_0x405584){const _0x4e23c7=_0x2fc2;_0x452064[_0x4e23c7(0x204)](_0x2e4397,_0x405584);}class _0x492f3e{constructor(_0x30db12){const _0x556aa3=_0x2fc2;this['db']=_0x30db12,this[_0x556aa3(0x2c1)]=[],this[_0x556aa3(0x62c)]=![],this[_0x556aa3(0x4de)]=![],this['inflight']=new Set();}[_0x2a6ca3(0x8f0)](_0x22b59f,_0x1ffc45,_0x30d632,_0xc03ae0){const _0x344df1=_0x2a6ca3;if(_0x8b0a6c[_0x344df1(0x3d6)]())try{return Promise[_0x344df1(0x1f3)](this['db']['_call'](_0x22b59f,_0x1ffc45,_0x30d632,_0xc03ae0));}catch(_0x134404){return Promise['reject'](_0x134404);}const _0x4c2791=new Promise((_0xd6ba0b,_0x47bd25)=>{const _0x704721=_0x344df1;this[_0x704721(0x2c1)][_0x704721(0x27f)]({'item':[_0x22b59f,_0x1ffc45,_0x30d632,_0xc03ae0],'resolve':_0xd6ba0b,'reject':_0x47bd25});});this['inflight'][_0x344df1(0x77d)](_0x4c2791);const _0x1f2be0=()=>this[_0x344df1(0x341)][_0x344df1(0x46b)](_0x4c2791);return _0x4c2791[_0x344df1(0x458)](_0x1f2be0,_0x1f2be0),!this[_0x344df1(0x62c)]&&(this['scheduled']=!![],setImmediate(()=>{const _0x44e986=_0x344df1;this['scheduled']=![],this[_0x44e986(0x7dc)]();})),_0x4c2791;}[_0x2a6ca3(0x7dc)](){const _0x8526e9=_0x2a6ca3;if(!this[_0x8526e9(0x2c1)]['length'])return;if(this['inBatch']){!this[_0x8526e9(0x62c)]&&(this['scheduled']=!![],setImmediate(()=>{const _0x43f7c2=_0x8526e9;this[_0x43f7c2(0x62c)]=![],this[_0x43f7c2(0x7dc)]();}));return;}const _0x17c8cb=this[_0x8526e9(0x2c1)];this['queue']=[],this[_0x8526e9(0x708)](_0x17c8cb);}[_0x2a6ca3(0x708)](_0x132839){const _0x29f89d=_0x2a6ca3;let _0x566b6f;this[_0x29f89d(0x4de)]=!![];try{_0x566b6f=this['db'][_0x29f89d(0x22e)]['callBatch'](_0x132839[_0x29f89d(0x642)](_0x2ad9e7=>_0x2ad9e7[_0x29f89d(0x32e)]));}catch(_0x3279e1){this['inBatch']=![];if(_0x132839['length']>0x1){for(const _0x1d6adf of _0x132839)this['_run']([_0x1d6adf]);return;}const _0x1a9ee3=_0x4b333b(_0x3279e1);for(const _0x5d2d1f of _0x132839)_0x5d2d1f[_0x29f89d(0x869)](_0x1a9ee3);return;}finally{this[_0x29f89d(0x4de)]=![];}try{this['db'][_0x29f89d(0x82c)][_0x29f89d(0x2ca)]();}catch{}const [_0x480c15,_0x599c51]=_0x566b6f;_0x493ec2(_0x599c51,()=>{const _0x1113ad=_0x29f89d;for(let _0x491f65=0x0;_0x491f65<_0x132839['length'];_0x491f65++){const _0x5c78ab=_0x480c15[_0x491f65];if(_0x5c78ab&&_0x5c78ab[0x0])_0x132839[_0x491f65][_0x1113ad(0x1f3)](_0x5c78ab[0x1]);else _0x132839[_0x491f65][_0x1113ad(0x869)](_0x4b333b(_0x5c78ab?_0x5c78ab[0x1]:new Error(_0x1113ad(0x23e))));}});}async['drain'](){const _0x608164=_0x2a6ca3;this[_0x608164(0x7dc)]();while(this[_0x608164(0x341)][_0x608164(0x4ff)]){await Promise['allSettled']([...this['inflight']]),this[_0x608164(0x7dc)]();}let _0x2cb742;try{_0x2cb742=this['db'][_0x608164(0x22e)][_0x608164(0x858)]();}catch{return;}await new Promise(_0x342988=>_0x493ec2(_0x2cb742,_0x342988));}}return writebatch={'install':_0x5ddde0,'WriteBatch':_0x492f3e,'whenSettled':_0x493ec2},writebatch;}var pump,hasRequiredPump;function requirePump(){const _0x2f0918=_0xef081e;if(hasRequiredPump)return pump;hasRequiredPump=0x1;const _0x7b76b3=Number(process.env.OKDB_NATIVE_IDLE_MS)||0xfa;class _0x368a11{constructor(_0x40fb75){const _0x79a272=_0x2fc2;this['native']=_0x40fb75,this[_0x79a272(0x399)]=null,this[_0x79a272(0x358)]=null,this[_0x79a272(0x769)]=![],this[_0x79a272(0x6d0)]=![],this[_0x79a272(0x7b9)]=![],this[_0x79a272(0x872)]=![],this[_0x79a272(0x521)]=0x0,this[_0x79a272(0x518)]=[],this[_0x79a272(0x395)]=[];}[_0x2f0918(0x7eb)](_0x57f195){return new Promise(_0x1c16da=>{const _0x27f6bd=_0x2fc2,_0x133262=setTimeout(_0x218928,_0x57f195);function _0x218928(){clearTimeout(_0x133262),_0x1c16da();}this[_0x27f6bd(0x395)][_0x27f6bd(0x27f)](_0x218928);});}[_0x2f0918(0x23b)](){const _0x5826b7=_0x2f0918;if(this[_0x5826b7(0x395)]['length']===0x0)return;const _0xa54133=this['turnWaiters'];this[_0x5826b7(0x395)]=[];for(const _0x3c2c87 of _0xa54133)_0x3c2c87();}['start'](){const _0x56b192=_0x2f0918;this[_0x56b192(0x6d0)]=![],this[_0x56b192(0x2ca)]();}[_0x2f0918(0x6bf)](){const _0x1e4349=_0x2f0918;this[_0x1e4349(0x6d0)]=!![];if(this[_0x1e4349(0x399)])clearTimeout(this[_0x1e4349(0x399)]);if(this['immediate'])clearImmediate(this[_0x1e4349(0x358)]);this['timer']=this[_0x1e4349(0x358)]=null,this[_0x1e4349(0x23b)]();}[_0x2f0918(0x2ca)](){const _0x33ff22=_0x2f0918;if(this['stopped']||this[_0x33ff22(0x358)])return;this[_0x33ff22(0x399)]&&(clearTimeout(this[_0x33ff22(0x399)]),this[_0x33ff22(0x399)]=null),this[_0x33ff22(0x358)]=setImmediate(()=>{const _0x257157=_0x33ff22;this[_0x257157(0x358)]=null,this[_0x257157(0x425)]();});}[_0x2f0918(0x425)](){const _0x46c240=_0x2f0918;if(this[_0x46c240(0x6d0)]||this[_0x46c240(0x7b9)]){this['dirty']=!![];return;}this['pumping']=!![];let _0x4b8b37;try{this[_0x46c240(0x521)]++,_0x4b8b37=this[_0x46c240(0x2a5)]['pump']();if(this[_0x46c240(0x422)])this[_0x46c240(0x422)]();}catch(_0x5e1b27){_0x4b8b37=_0x7b76b3,process[_0x46c240(0x2e2)](()=>{throw _0x5e1b27;});}finally{this[_0x46c240(0x7b9)]=![],this[_0x46c240(0x23b)]();}if(this[_0x46c240(0x6d0)]||_0x4b8b37===-0x2)return;if(this['dirty'])return this[_0x46c240(0x872)]=![],this[_0x46c240(0x2ca)]();const _0x222c5d=_0x4b8b37<0x0?_0x7b76b3:Math[_0x46c240(0x31f)](0x0,Math['min'](_0x4b8b37,_0x7b76b3));if(_0x222c5d<=0x0)return this['wake']();this['timer']=setTimeout(()=>{const _0x1dfd1e=_0x46c240;this[_0x1dfd1e(0x399)]=null,this[_0x1dfd1e(0x425)]();},Math[_0x46c240(0x390)](_0x222c5d));if(this[_0x46c240(0x399)][_0x46c240(0x8c7)])this[_0x46c240(0x399)][_0x46c240(0x8c7)]();}}return pump={'Pumper':_0x368a11},pump;}var dist$1={},hasRequiredDist$1;function requireDist$1(){const _0x23b390=_0xef081e;if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=0x1;const _0x4e8a01=Symbol['for'](_0x23b390(0x8d9)),_0xeb064c={'value':null,'done':!![]},_0x450841={'value':null,'done':!![]};!Symbol[_0x23b390(0x25d)]&&(Symbol[_0x23b390(0x25d)]=Symbol[_0x23b390(0x7df)]('Symbol.asyncIterator'));const _0x4492ac={};class _0x576de6{constructor(_0x1265a1){const _0x557b98=_0x23b390;_0x1265a1&&(this[_0x557b98(0x309)]=_0x1265a1[Symbol[_0x557b98(0x6a7)]]['bind'](_0x1265a1));}[_0x23b390(0x642)](_0x5ec590){const _0x3186f2=_0x23b390;let _0xb29b9e=this,_0x3c9395=new _0x576de6();return _0x3c9395[_0x3186f2(0x309)]=(_0x3ed1e8=_0x4492ac)=>{const _0x3adf62=_0x3186f2,{async:_0x2f0d96}=_0x3ed1e8;let _0x334455=_0xb29b9e[_0x2f0d96?Symbol[_0x3adf62(0x25d)]:Symbol[_0x3adf62(0x6a7)]](_0x3ed1e8);if(!_0x2f0d96)_0xb29b9e[_0x3adf62(0x856)]=!![];let _0x75e294=-0x1;return{'next'(_0x1fbe7b){const _0x9dfd52=_0x3adf62;let _0x4ee343;do{let _0x6d827b;try{if(_0x1fbe7b)_0x6d827b=_0x1fbe7b,_0x1fbe7b=null;else{_0x75e294++,_0x6d827b=_0x334455[_0x9dfd52(0x8a6)]();if(_0x6d827b[_0x9dfd52(0x458)])return!_0x2f0d96&&this[_0x9dfd52(0x1d1)](new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results')),_0x6d827b[_0x9dfd52(0x458)](_0x11bce4=>this[_0x9dfd52(0x8a6)](_0x11bce4),_0x1b35e1=>{const _0x4b9dc6=_0x9dfd52;return this[_0x4b9dc6(0x1d1)](_0x1b35e1);});}if(_0x6d827b[_0x9dfd52(0x577)]===!![]){this[_0x9dfd52(0x577)]=!![];if(_0x3c9395[_0x9dfd52(0x710)])_0x3c9395[_0x9dfd52(0x710)]();return _0x6d827b;}try{_0x4ee343=_0x5ec590[_0x9dfd52(0x62a)](_0xb29b9e,_0x6d827b[_0x9dfd52(0x744)],_0x75e294);if(_0x4ee343&&_0x4ee343['then']&&_0x2f0d96)return _0x4ee343['then'](_0x4ef48f=>_0x4ef48f===_0x4e8a01?this[_0x9dfd52(0x8a6)]():{'value':_0x4ef48f},_0x2352cc=>{const _0x583596=_0x9dfd52;if(_0x3ed1e8[_0x583596(0x332)])_0x2352cc[_0x583596(0x661)]=!![];return this[_0x583596(0x1d1)](_0x2352cc);});}catch(_0x1618c9){if(_0x3ed1e8[_0x9dfd52(0x332)])_0x1618c9[_0x9dfd52(0x661)]=!![];throw _0x1618c9;}}catch(_0x10b382){if(_0x3c9395[_0x9dfd52(0x7b7)])try{_0x4ee343=_0x3c9395['handleError'](_0x10b382,_0x75e294);}catch(_0x34fced){return this['throw'](_0x34fced);}else return this[_0x9dfd52(0x1d1)](_0x10b382);}}while(_0x4ee343===_0x4e8a01);if(_0x4ee343===_0xeb064c)return this[_0x9dfd52(0x2a7)]();return{'value':_0x4ee343};},'return'(_0xfbec63){const _0x24c403=_0x3adf62;if(!this[_0x24c403(0x577)]){_0x450841[_0x24c403(0x744)]=_0xfbec63,this[_0x24c403(0x577)]=!![];if(_0x3c9395['onDone'])_0x3c9395[_0x24c403(0x710)]();_0x334455['return']?.();}return _0x450841;},'throw'(_0x571ca9){const _0x46f067=_0x3adf62;if(_0x571ca9[_0x46f067(0x661)]){if(_0x3c9395['returnRecoverableErrors'])try{return{'value':_0x3c9395[_0x46f067(0x1db)](_0x571ca9)};}catch(_0x19f0df){this[_0x46f067(0x2a7)]();throw _0x19f0df;}if(_0x3ed1e8[_0x46f067(0x332)])throw _0x571ca9;}this[_0x46f067(0x2a7)]();throw _0x571ca9;}};},_0x3c9395;}[Symbol[_0x23b390(0x25d)]](_0x58da97){const _0x275b0b=_0x23b390;if(_0x58da97)_0x58da97={..._0x58da97,'async':!![]};else _0x58da97={'async':!![]};return this[_0x275b0b(0x6a7)]=this['iterate'](_0x58da97);}[Symbol[_0x23b390(0x6a7)]](_0x4c6e68){const _0x593294=_0x23b390;return this[_0x593294(0x6a7)]=this[_0x593294(0x309)](_0x4c6e68);}[_0x23b390(0x877)](_0x3be26f){const _0x38bbe6=_0x23b390;let _0xfe8c62=this['map'](_0x3bf3db=>{const _0x419939=_0x2fc2;let _0x283bdf=_0x3be26f(_0x3bf3db);if(_0x283bdf?.[_0x419939(0x458)])return _0x283bdf[_0x419939(0x458)](_0x5ac3b4=>_0x5ac3b4?_0x3bf3db:_0x4e8a01);else return _0x283bdf?_0x3bf3db:_0x4e8a01;}),_0xb1d658=_0xfe8c62[_0x38bbe6(0x309)];return _0xfe8c62[_0x38bbe6(0x309)]=(_0x4ec531=_0x4492ac)=>{const _0x325327=_0x38bbe6;if(_0x4ec531[_0x325327(0x332)])_0x4ec531={..._0x4ec531,'continueOnRecoverableError':![]};return _0xb1d658(_0x4ec531);},_0xfe8c62;}[_0x23b390(0x8de)](_0x5e5f15){const _0x5a38c0=_0x23b390;let _0x186408=this[_0x5a38c0(0x6a7)]=this[_0x5a38c0(0x309)](),_0x1b4c30;while((_0x1b4c30=_0x186408[_0x5a38c0(0x8a6)]())['done']!==!![]){_0x5e5f15(_0x1b4c30['value']);}}['concat'](_0x525ac8){const _0x15f9fa=_0x23b390;let _0x1d02b2=new _0x576de6();return _0x1d02b2[_0x15f9fa(0x309)]=(_0x48317e=_0x4492ac)=>{let _0x814f80=this['iterator']=this['iterate'](_0x48317e),_0x2ada5e=!![];function _0xb563f(_0x5bf4ba){const _0x292db7=_0x2fc2;if(_0x2ada5e)try{_0x2ada5e=![],_0x814f80=_0x525ac8[_0x48317e[_0x292db7(0x544)]?Symbol['asyncIterator']:Symbol[_0x292db7(0x6a7)]](),_0x5bf4ba=_0x814f80[_0x292db7(0x8a6)]();if(_0x1d02b2[_0x292db7(0x710)]){if(_0x5bf4ba[_0x292db7(0x458)]){if(!_0x48317e['async'])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');_0x5bf4ba[_0x292db7(0x458)](_0x294177=>{const _0x23330e=_0x292db7;if(_0x294177[_0x23330e(0x577)]())_0x1d02b2['onDone']();},_0x423d5f=>{const _0x3ea274=_0x292db7;this[_0x3ea274(0x2a7)]();throw _0x423d5f;});}else{if(_0x5bf4ba[_0x292db7(0x577)])_0x1d02b2['onDone']();}}}catch(_0xe17207){this[_0x292db7(0x1d1)](_0xe17207);}else{if(_0x1d02b2[_0x292db7(0x710)])_0x1d02b2['onDone']();}return _0x5bf4ba;}return{'next'(){const _0x192a07=_0x2fc2;try{let _0x280853=_0x814f80[_0x192a07(0x8a6)]();if(_0x280853[_0x192a07(0x458)]){if(!_0x48317e[_0x192a07(0x544)])throw new Error(_0x192a07(0x7d0));return _0x280853['then'](_0x23070b=>{const _0x548742=_0x192a07;if(_0x23070b[_0x548742(0x577)])return _0xb563f(_0x23070b);return _0x23070b;});}if(_0x280853[_0x192a07(0x577)])return _0xb563f(_0x280853);return _0x280853;}catch(_0x1e80b1){this[_0x192a07(0x1d1)](_0x1e80b1);}},'return'(_0x52e514){const _0x53688f=_0x2fc2;if(!this[_0x53688f(0x577)]){_0x450841['value']=_0x52e514,this[_0x53688f(0x577)]=!![];if(_0x1d02b2[_0x53688f(0x710)])_0x1d02b2[_0x53688f(0x710)]();_0x814f80[_0x53688f(0x2a7)]();}return _0x450841;},'throw'(_0x291570){const _0x3e1475=_0x2fc2;if(_0x48317e[_0x3e1475(0x332)])throw _0x291570;this[_0x3e1475(0x2a7)]();throw _0x291570;}};},_0x1d02b2;}[_0x23b390(0x68c)](_0x3079de){const _0x3104d9=_0x23b390;let _0x4460ca=new _0x576de6();return _0x4460ca[_0x3104d9(0x309)]=(_0x4dab0e=_0x4492ac)=>{const _0x476fb3=_0x3104d9;let _0x2ba48c=this[_0x476fb3(0x6a7)]=this[_0x476fb3(0x309)](_0x4dab0e),_0x877b44;return{'next'(_0x15cb7d){const _0x172e45=_0x476fb3;try{do{if(_0x877b44){let _0x145d34;if(_0x15cb7d)_0x145d34=_0x15cb7d,_0x15cb7d=undefined;else _0x145d34=_0x877b44[_0x172e45(0x8a6)]();if(_0x145d34[_0x172e45(0x458)]){if(!_0x4dab0e[_0x172e45(0x544)])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');return _0x145d34[_0x172e45(0x458)](_0x279087=>this[_0x172e45(0x8a6)](_0x279087));}if(!_0x145d34[_0x172e45(0x577)])return _0x145d34;}let _0x1c3a54;if(_0x15cb7d!=undefined)_0x1c3a54=_0x15cb7d,_0x15cb7d=undefined;else _0x1c3a54=_0x2ba48c[_0x172e45(0x8a6)]();if(_0x1c3a54[_0x172e45(0x458)]){if(!_0x4dab0e['async'])throw new Error(_0x172e45(0x7d0));return _0x877b44=undefined,_0x1c3a54[_0x172e45(0x458)](_0x1dc728=>this[_0x172e45(0x8a6)](_0x1dc728));}if(_0x1c3a54[_0x172e45(0x577)]){if(_0x4460ca[_0x172e45(0x710)])_0x4460ca['onDone']();return _0x1c3a54;}try{let _0x6870f8=_0x3079de(_0x1c3a54['value']);if(_0x6870f8?.[_0x172e45(0x458)]){if(!_0x4dab0e[_0x172e45(0x544)])throw new Error(_0x172e45(0x7d0));return _0x6870f8[_0x172e45(0x458)](_0x5eaf37=>{const _0x22bfde=_0x172e45;return Array[_0x22bfde(0x888)](_0x5eaf37)||_0x5eaf37 instanceof _0x576de6?(_0x877b44=_0x5eaf37[Symbol[_0x22bfde(0x6a7)]](),this[_0x22bfde(0x8a6)]()):(_0x877b44=null,{'value':_0x5eaf37});},_0x51f592=>{const _0x4d4e82=_0x172e45;if(_0x4dab0e[_0x4d4e82(0x332)])_0x51f592[_0x4d4e82(0x661)]=!![];this[_0x4d4e82(0x1d1)](_0x51f592);});}if(Array[_0x172e45(0x888)](_0x6870f8)||_0x6870f8 instanceof _0x576de6)_0x877b44=_0x6870f8[Symbol[_0x172e45(0x6a7)]]();else return _0x877b44=null,{'value':_0x6870f8};}catch(_0x1ffa40){if(_0x4dab0e[_0x172e45(0x332)])_0x1ffa40[_0x172e45(0x661)]=!![];throw _0x1ffa40;}}while(!![]);}catch(_0x367a00){this[_0x172e45(0x1d1)](_0x367a00);}},'return'(){const _0x399030=_0x476fb3;if(_0x4460ca[_0x399030(0x710)])_0x4460ca[_0x399030(0x710)]();if(_0x877b44)_0x877b44[_0x399030(0x2a7)]();return _0x2ba48c[_0x399030(0x2a7)]();},'throw'(_0x439d6d){const _0x45278b=_0x476fb3;if(_0x4dab0e[_0x45278b(0x332)])throw _0x439d6d;if(_0x4460ca[_0x45278b(0x710)])_0x4460ca[_0x45278b(0x710)]();if(_0x877b44)_0x877b44['return']();this[_0x45278b(0x2a7)]();throw _0x439d6d;}};},_0x4460ca;}[_0x23b390(0x848)](_0x45c876,_0x472327){const _0x102a17=_0x23b390;let _0xbfee96=this['map']((_0x518b81,_0x280713)=>{if(_0x280713<_0x45c876)return _0x4e8a01;if(_0x280713>=_0x472327)return _0xeb064c['value']=_0x518b81,_0xeb064c;return _0x518b81;});return _0xbfee96[_0x102a17(0x7b7)]=(_0x554d44,_0xe630)=>{if(_0xe630<_0x45c876)return _0x4e8a01;if(_0xe630>=_0x472327)return _0xeb064c;throw _0x554d44;},_0xbfee96;}[_0x23b390(0x650)](_0x4d5704){const _0x43d905=_0x23b390;if(typeof _0x4d5704!=='function')throw new TypeError(_0x43d905(0x7c7));let _0xd023a1=this['map'](_0x49e5b1=>{return _0x49e5b1;}),_0x2bfef3=_0xd023a1[_0x43d905(0x309)];return _0xd023a1[_0x43d905(0x309)]=(_0x5f14b8=_0x4492ac)=>{return _0x2bfef3({..._0x5f14b8,'continueOnRecoverableError':!![]});},_0xd023a1['returnRecoverableErrors']=_0x4d5704,_0xd023a1;}[_0x23b390(0x8a6)](){const _0x421e9d=_0x23b390;if(!this[_0x421e9d(0x6a7)])this[_0x421e9d(0x6a7)]=this[_0x421e9d(0x309)]();return this[_0x421e9d(0x6a7)]['next']();}[_0x23b390(0x233)](){const _0x21774c=_0x23b390;if(this[_0x21774c(0x690)]&&this[_0x21774c(0x690)][_0x21774c(0x8de)])return this['asArray'];const _0x3b4bf5=new Error(_0x21774c(0x77a));_0x3b4bf5[_0x21774c(0x3f2)]=this['asArray'];throw _0x3b4bf5;}get[_0x23b390(0x690)](){const _0x47436b=_0x23b390;if(this['_asArray'])return this[_0x47436b(0x31b)];let _0x5e4730=new Promise((_0x5f5aa1,_0xcc707b)=>{const _0x45bcf2=_0x47436b;let _0x5eb330=this[_0x45bcf2(0x309)](!![]),_0x298186=[],_0x3dbf48=this;Object[_0x45bcf2(0x43a)](_0x298186,'iterable',{'value':_0x3dbf48});function _0x2630a0(_0x51f849){const _0x4049c3=_0x45bcf2;while(_0x51f849[_0x4049c3(0x577)]!==!![]){if(_0x51f849[_0x4049c3(0x458)])return _0x51f849['then'](_0x2630a0);else _0x298186['push'](_0x51f849[_0x4049c3(0x744)]);_0x51f849=_0x5eb330[_0x4049c3(0x8a6)]();}_0x5f5aa1(_0x3dbf48[_0x4049c3(0x31b)]=_0x298186);}_0x2630a0(_0x5eb330[_0x45bcf2(0x8a6)]());});return _0x5e4730[_0x47436b(0x86c)]=this,this[_0x47436b(0x31b)]||(this['_asArray']=_0x5e4730);}[_0x23b390(0x881)](){const _0x29ad51=_0x23b390;return this[_0x29ad51(0x690)];}['at'](_0x288d64){for(let _0x2327e5 of this){if(_0x288d64--===0x0)return _0x2327e5;}}}return _0x576de6['prototype']['DONE']=_0xeb064c,dist$1[_0x23b390(0x69f)]=_0x576de6,dist$1[_0x23b390(0x799)]=_0x4e8a01,dist$1;}var iterable,hasRequiredIterable;function requireIterable(){const _0x429755=_0xef081e;if(hasRequiredIterable)return iterable;hasRequiredIterable=0x1;const {ExtendedIterable:_0x3384b8}=requireDist$1(),_0x20947c=Number(process.env.OKDB_NATIVE_RANGE_CHUNK)||0x3e8,_0xc36c13=Math[_0x429755(0x439)](_0x20947c,Number(process.env.OKDB_NATIVE_ROW_CHUNK)||0x100),_0x449834=new Set(['getRange',_0x429755(0x657),_0x429755(0x5e7),_0x429755(0x257)]),_0x8318a6=Math[_0x429755(0x439)](_0xc36c13,Number(process.env.OKDB_NATIVE_RANGE_FIRST)||0x1),_0x296223=0x4,_0x496671=(_0x309866,_0x1ff651=_0x20947c)=>Math[_0x429755(0x439)](_0x1ff651,_0x309866*_0x296223),_0x55d80a={'value':undefined,'done':!![]};function _0xd0fe05(_0x210dc2){const _0x4bf4f0=_0x429755,_0x1fb8b3=new _0x3384b8();return _0x1fb8b3[_0x4bf4f0(0x309)]=()=>{let _0x286bf9=0x0;return{'next'(){const _0x277a54=_0x2fc2;return _0x286bf9<_0x210dc2[_0x277a54(0x788)]?{'value':_0x210dc2[_0x286bf9++],'done':![]}:{'value':undefined,'done':!![]};},'return'(){const _0x3db0e6=_0x2fc2;return _0x286bf9=_0x210dc2[_0x3db0e6(0x788)],{'value':undefined,'done':!![]};},'throw'(){return _0x286bf9=_0x210dc2['length'],{'value':undefined,'done':!![]};}};},_0x1fb8b3;}const _0x527c84=_0x26f86f=>typeof _0x26f86f===_0x429755(0x559)&&!Number[_0x429755(0x21f)](_0x26f86f)?Math['max'](0x0,Math['ceil'](_0x26f86f)):Infinity,_0x36ceda=_0x1941eb=>typeof _0x1941eb==='number'?Math[_0x429755(0x31f)](0x0,Math['trunc'](_0x1941eb))||0x0:0x0;function _0x73a5eb(_0x58da5f,_0x4cc738,_0x43b6c2,_0x117962={}){const _0x38bd89=_0x429755,_0x3d20eb=new _0x3384b8(),_0x32a13a=(_0x117962[_0x38bd89(0x862)]||_0x527c84)(_0x4cc738[_0x38bd89(0x419)]),_0x4f5740=_0x117962['rows']?_0xc36c13:_0x20947c,_0x1d81a4=_0x117962[_0x38bd89(0x65e)]||((_0x41d009,_0x27e79c)=>{const _0x5b88e4=_0x38bd89;_0x41d009[_0x5b88e4(0x77b)]=_0x27e79c,_0x41d009['exclusiveStart']=!![],delete _0x41d009[_0x5b88e4(0x64f)];});let _0x3daff3=null;if(_0x117962[_0x38bd89(0x7d5)]){const _0x15b0bf={..._0x4cc738,'limit':Math[_0x38bd89(0x439)](_0x8318a6,_0x32a13a)};_0x3daff3={'rows':_0x58da5f(_0x15b0bf),'limit':_0x15b0bf[_0x38bd89(0x419)]};const _0x4fa951=_0x3daff3;queueMicrotask(()=>{const _0x53dec4=_0x38bd89;_0x4fa951[_0x53dec4(0x5f8)]=!![];});}return _0x3d20eb[_0x38bd89(0x309)]=()=>{const _0x130625=_0x38bd89;let _0x1c079f=[],_0x58fca1=0x0,_0x53cd94=0x0,_0x526c37,_0x3c1ee4=![],_0x5dfa62=![],_0x1eed95=_0x8318a6;if(_0x3daff3&&!_0x3daff3[_0x130625(0x5f8)]&&!_0x3daff3[_0x130625(0x27c)]){_0x3daff3[_0x130625(0x27c)]=!![],_0x1c079f=_0x3daff3[_0x130625(0x2cd)],_0x3c1ee4=!![],_0x1eed95=_0x496671(_0x1eed95,_0x4f5740);if(_0x1c079f['length']<_0x3daff3[_0x130625(0x419)])_0x5dfa62=!![];if(_0x1c079f[_0x130625(0x788)])_0x526c37=_0x43b6c2(_0x1c079f[_0x1c079f[_0x130625(0x788)]-0x1]);}const _0x3e4b43=()=>{const _0xc28b53=_0x130625;if(_0x5dfa62)return;const _0x3ef02b=_0x32a13a-_0x53cd94;if(_0x3ef02b<=0x0){_0x5dfa62=!![],_0x1c079f=[];return;}const _0x19c02a={..._0x4cc738,'limit':Math[_0xc28b53(0x439)](_0x1eed95,_0x3ef02b)};if(_0x3c1ee4)_0x1d81a4(_0x19c02a,_0x526c37);_0x3c1ee4=!![],_0x1eed95=_0x496671(_0x1eed95,_0x4f5740),_0x1c079f=_0x58da5f(_0x19c02a),_0x58fca1=0x0;if(_0x1c079f['length']<_0x19c02a[_0xc28b53(0x419)])_0x5dfa62=!![];if(_0x1c079f[_0xc28b53(0x788)])_0x526c37=_0x43b6c2(_0x1c079f[_0x1c079f[_0xc28b53(0x788)]-0x1]);};return{'next'(){const _0x17cbfd=_0x130625;if(_0x58fca1>=_0x1c079f[_0x17cbfd(0x788)])_0x3e4b43();if(_0x58fca1>=_0x1c079f['length'])return{'value':undefined,'done':!![]};return _0x53cd94++,{'value':_0x1c079f[_0x58fca1++],'done':![]};},'return'(){return _0x5dfa62=!![],_0x1c079f=[],{'value':undefined,'done':!![]};},'throw'(){return _0x5dfa62=!![],_0x1c079f=[],{'value':undefined,'done':!![]};}};},_0x3d20eb;}function _0x180a45(_0x4404d7,_0x4f4792,_0x30df94,_0xd8465e,_0x5ecc2c={}){const _0x74421d=_0x429755,_0x1fe951=(_0x5ecc2c['limitOf']||_0x527c84)(_0xd8465e&&_0xd8465e[_0x74421d(0x419)]),_0x30e15e=_0x449834[_0x74421d(0x396)](_0x4f4792)?_0xc36c13:_0x20947c,_0x52c2ff=(_0x5ecc2c['offsetOf']||_0x36ceda)(_0xd8465e&&_0xd8465e['offset']),_0xa9e76=(_0x9004bc,_0x1b29aa,_0x542165)=>{const _0x59c211=_0x74421d,_0x2d6afd=_0x1fe951-_0x1b29aa,_0x37bbc4=Math['min'](_0x542165,_0x2d6afd),_0x408a43={'limit':_0x37bbc4,'offset':_0x52c2ff+_0x1b29aa},_0x4e1805=_0x4404d7(_0x59c211(0x59f),[_0x9004bc,_0x4f4792,_0x37bbc4===_0x2d6afd?Infinity:_0x37bbc4,..._0x30df94(_0x408a43)]);if(_0x4e1805[0x0]===-0x1){const _0x982481={'offset':_0x52c2ff+_0x1b29aa};if(_0x2d6afd!==Infinity)_0x982481[_0x59c211(0x419)]=_0x2d6afd;return{'pin':0x0,'rows':_0x4404d7(_0x4f4792,_0x30df94(_0x982481)),'raw':Infinity,'eager':!![]};}return{'pin':_0x4e1805[0x0],'rows':_0x4e1805[0x1],'raw':_0x4e1805[0x2]};},_0x12dc57=_0x1a7896=>{const _0x2650c9=_0x74421d;if(_0x1a7896)_0x4404d7(_0x2650c9(0x376),[_0x1a7896]);};function _0x11c0ba(_0x2c7de9,_0x130704,_0x1683b4){const _0x48ea8d=_0x74421d;let _0x1d43dd=0x0,_0xc3b8d8=[],_0x171b78=0x0,_0x4d576b=_0x2c7de9,_0x256c2d=_0x8318a6,_0x45fd9d=_0x1fe951-_0x2c7de9<=0x0;if(_0x1683b4)({buf:_0xc3b8d8,pos:_0x171b78,consumed:_0x4d576b,size:_0x256c2d,exhausted:_0x45fd9d}=_0x1683b4);const _0xdc956a=_0x3f8a03=>{const _0x2b3404=_0x2fc2;_0x1d43dd=_0x3f8a03[_0x2b3404(0x2e7)],_0xc3b8d8=_0x3f8a03[_0x2b3404(0x2cd)],_0x171b78=0x0,_0x4d576b+=_0x3f8a03[_0x2b3404(0x454)],_0x256c2d=_0x496671(_0x256c2d,_0x30e15e);if(!_0x1d43dd)_0x45fd9d=!![];};if(_0x130704)_0xdc956a(_0x130704);const _0x46a9d6=()=>{const _0x3a4709=_0x1d43dd;_0x1d43dd=0x0,_0x12dc57(_0x3a4709);},_0x23c3dd={'next'(){const _0x1ce6fb=_0x2fc2;while(_0x171b78>=_0xc3b8d8[_0x1ce6fb(0x788)]){if(_0x45fd9d||_0x1fe951-_0x4d576b<=0x0)return _0x45fd9d=!![],_0x46a9d6(),_0x55d80a;try{_0xdc956a(_0xa9e76(_0x1d43dd,_0x4d576b,_0x256c2d));}catch(_0x1e84fe){_0x1d43dd=0x0,_0x45fd9d=!![],_0xc3b8d8=[];throw _0x1e84fe;}}return{'value':_0xc3b8d8[_0x171b78++],'done':![]};},'return'(){return _0x46a9d6(),_0x55d80a;},'throw'(){return _0x46a9d6(),_0x55d80a;},'resumed'(){return _0x11c0ba(0x0,null,{'buf':_0xc3b8d8,'pos':_0x171b78,'consumed':_0x4d576b,'size':_0x256c2d,'exhausted':_0x45fd9d});},[Symbol[_0x48ea8d(0x6a7)]](){return this;}};return _0x23c3dd;}function _0x3a1de0(){if(_0x1fe951<=0x0)return null;const _0x43f996=_0xa9e76(0x0,0x0,_0x8318a6);return queueMicrotask(()=>{const _0x1cc2aa=_0x2fc2;!_0x43f996[_0x1cc2aa(0x27c)]&&(_0x43f996[_0x1cc2aa(0x5f8)]=!![],_0x12dc57(_0x43f996[_0x1cc2aa(0x2e7)]));}),_0x43f996;}return{'source':_0x11c0ba,'prefetch':_0x3a1de0};}function _0x59430(_0x1651e4){const _0x25a916=_0x429755;if(!_0x1651e4||_0x1651e4[_0x25a916(0x27c)]||_0x1651e4[_0x25a916(0x5f8)])return null;return _0x1651e4[_0x25a916(0x27c)]=!![],_0x1651e4;}return iterable={'fromArray':_0xd0fe05,'chunkedRange':_0x73a5eb,'pinnedChunks':_0x180a45,'claimPrefetch':_0x59430,'lmdbLimit':_0x527c84,'lmdbOffset':_0x36ceda,'CHUNK':_0x20947c,'ROW_CHUNK':_0xc36c13,'FIRST':_0x8318a6},iterable;}var rawdb,hasRequiredRawdb;function requireRawdb(){const _0x3011b3=_0xef081e;if(hasRequiredRawdb)return rawdb;hasRequiredRawdb=0x1;const {fromArray:_0x240449}=requireIterable();class _0x118e93{constructor(_0x2f1f50,_0x4de0b1='',_0x3ea34c={},_0x1969be=null){const _0x2a1b02=_0x2fc2;this[_0x2a1b02(0x3b1)]=_0x2f1f50,this[_0x2a1b02(0x686)]=_0x4de0b1,this[_0x2a1b02(0x45c)]=!!(_0x3ea34c&&_0x3ea34c[_0x2a1b02(0x45c)]),this[_0x2a1b02(0x2f0)]=!!(_0x3ea34c&&_0x3ea34c[_0x2a1b02(0x2f0)]),this[_0x2a1b02(0x7f1)]=_0x1969be||this,this[_0x2a1b02(0x567)]=null;}get[_0x3011b3(0x360)](){const _0x3b55e9=_0x3011b3;return this['dupSort']?!![]:this[_0x3b55e9(0x2f0)]?'v':![];}['_n'](_0x3d240d,_0x95d9c8){const _0x26d590=_0x3011b3;return this['_env'][_0x26d590(0x82e)][_0x26d590(0x5a1)](_0x26d590(0x454),this['_env']['name'],_0x3d240d,[this[_0x26d590(0x686)],this[_0x26d590(0x360)],..._0x95d9c8],!![]);}[_0x3011b3(0x84b)](_0x32dfb5,_0x134931){const _0x5bfa0a=_0x3011b3;return this['_env'][_0x5bfa0a(0x82e)][_0x5bfa0a(0x5a1)](_0x5bfa0a(0x454),this[_0x5bfa0a(0x3b1)][_0x5bfa0a(0x686)],_0x32dfb5,[this['name'],this[_0x5bfa0a(0x360)],..._0x134931],![]);}['_write'](_0x70d875){const _0x244891=_0x3011b3,_0x10b375=this[_0x244891(0x3b1)][_0x244891(0x375)];if(_0x10b375)_0x10b375[_0x244891(0x27f)]({'sub':this[_0x244891(0x686)],'dup':this['_dupArg'],..._0x70d875});else this[_0x244891(0x3b1)][_0x244891(0x82e)][_0x244891(0x5a1)](_0x244891(0x454),this['_env'][_0x244891(0x686)],_0x244891(0x854),[[{'sub':this[_0x244891(0x686)],'dup':this[_0x244891(0x360)],..._0x70d875}]],!![]);}['get'](_0x50582d){const _0x4f5c54=_0x3011b3;return this[_0x4f5c54(0x84b)]('get',[_0x50582d]);}['getEntry'](_0x4c815e){const _0x2b686b=_0x3011b3;if(this[_0x2b686b(0x2f0)])return this[_0x2b686b(0x84b)](_0x2b686b(0x408),[_0x4c815e]);const _0x3d6930=this['get'](_0x4c815e);return _0x3d6930===undefined?undefined:{'value':_0x3d6930};}[_0x3011b3(0x2a2)](_0x142f67){const _0x1465b=_0x3011b3;return this[_0x1465b(0x84b)](_0x1465b(0x578),[_0x142f67]);}['getBinary'](_0x456bf8){const _0x3742cf=_0x3011b3;return this[_0x3742cf(0x292)](_0x456bf8);}[_0x3011b3(0x433)](_0x3fbe62={}){const _0x47e24b=_0x3011b3,_0x197127=this[_0x47e24b(0x84b)](_0x47e24b(0x433),[_0x3fbe62]),_0x3babf0=_0x3fbe62[_0x47e24b(0x42a)]===![],_0x4e0921=_0x3fbe62[_0x47e24b(0x607)]===![];return _0x240449(_0x197127[_0x47e24b(0x642)](([_0x21f50b,_0x12f5c1,_0x2a1d91])=>{if(_0x3babf0)return _0x21f50b;if(_0x4e0921)return _0x12f5c1;return _0x2a1d91===undefined?{'key':_0x21f50b,'value':_0x12f5c1}:{'key':_0x21f50b,'value':_0x12f5c1,'version':_0x2a1d91};}));}['getKeys'](_0x1acdfa={}){const _0x2e6311=_0x3011b3;return _0x240449(this[_0x2e6311(0x84b)](_0x2e6311(0x433),[_0x1acdfa])[_0x2e6311(0x642)](([_0x57b070])=>_0x57b070));}['getValues'](_0x3a0583,_0x514048={}){const _0x279d82=_0x3011b3,_0x13caa0=this[_0x279d82(0x84b)](_0x279d82(0x433),[{..._0x514048,'start':_0x3a0583,'end':_0x3a0583,'inclusiveEnd':!![]}]);return _0x240449(_0x13caa0['map'](([,_0x4bbe54])=>_0x4bbe54));}[_0x3011b3(0x2e0)](_0x70b154={}){const _0x312177=_0x3011b3;return this[_0x312177(0x84b)](_0x312177(0x4c2),[_0x70b154]);}[_0x3011b3(0x7f2)](){const _0x419938=_0x3011b3;return{'entryCount':this[_0x419938(0x2e0)]()};}['put'](_0x3a9544,_0x1abb56,_0x2fa7e5){const _0x7d5778=_0x3011b3;return this[_0x7d5778(0x55f)]({'op':_0x7d5778(0x1dd),'key':_0x3a9544,'value':_0x1abb56,'version':_0x2fa7e5}),Promise[_0x7d5778(0x1f3)](!![]);}[_0x3011b3(0x57a)](_0x4ae758,_0x2ce50f,_0x15bc67){const _0x1744c9=_0x3011b3;return this['_write']({'op':_0x1744c9(0x1dd),'key':_0x4ae758,'value':_0x2ce50f,'version':_0x15bc67}),!![];}['remove'](_0x548192,_0x3336f0){const _0x258ad2=_0x3011b3;return this[_0x258ad2(0x55f)]({'op':'remove','key':_0x548192,'value':_0x3336f0}),Promise[_0x258ad2(0x1f3)](!![]);}[_0x3011b3(0x4f5)](_0x3d6e16,_0x43ce67){const _0x2d4b4c=_0x3011b3;return this['_write']({'op':_0x2d4b4c(0x28d),'key':_0x3d6e16,'value':_0x43ce67}),!![];}[_0x3011b3(0x371)](){const _0x31b1ba=_0x3011b3;this[_0x31b1ba(0x55f)]({'op':_0x31b1ba(0x6fa)});}[_0x3011b3(0x51a)](){const _0x36844a=_0x3011b3;return this[_0x36844a(0x55f)]({'op':'clear'}),Promise['resolve']();}['drop'](){const _0xc40a6b=_0x3011b3;this[_0xc40a6b(0x371)]();}[_0x3011b3(0x5b6)](_0x29a0b3,_0x16b9fb={}){const _0x4925eb=_0x3011b3,_0x3607bc=typeof _0x29a0b3===_0x4925eb(0x7f6)?_0x29a0b3:_0x16b9fb,_0x35d368=typeof _0x29a0b3===_0x4925eb(0x7f6)?_0x29a0b3[_0x4925eb(0x686)]:_0x29a0b3,_0x5aa743=new _0x118e93(this['_env'],_0x35d368,_0x3607bc);return _0x5aa743['_write']({'op':_0x4925eb(0x50d)}),_0x5aa743;}[_0x3011b3(0x5ca)](){}[_0x3011b3(0x84c)](_0x55bafd){return this['_tx'](_0x55bafd);}async[_0x3011b3(0x7b5)](_0x31fcd8){const _0x487136=_0x3011b3;return this[_0x487136(0x400)](_0x31fcd8);}['childTransaction'](_0x1c2f67){const _0x2b772d=_0x3011b3;return this[_0x2b772d(0x400)](_0x1c2f67);}[_0x3011b3(0x400)](_0x5ead91){const _0x496f10=_0x3011b3,_0x5d0a43=this[_0x496f10(0x3b1)];if(_0x5d0a43[_0x496f10(0x375)])return _0x5ead91();_0x5d0a43[_0x496f10(0x375)]=[];let _0x599826;try{_0x599826=_0x5ead91();}catch(_0x2d969f){_0x5d0a43[_0x496f10(0x375)]=null;throw _0x2d969f;}const _0x4a6068=_0x5d0a43[_0x496f10(0x375)];_0x5d0a43['_rawTxnBuf']=null;if(_0x4a6068[_0x496f10(0x788)])_0x5d0a43[_0x496f10(0x82e)]['_call'](_0x496f10(0x454),_0x5d0a43[_0x496f10(0x686)],_0x496f10(0x854),[_0x4a6068],!![]);return _0x599826;}['useReadTransaction'](){return{'done'(){}};}['resetReadTxn'](){}}return rawdb={'RawDb':_0x118e93},rawdb;}var views,hasRequiredViews;function requireViews(){const _0x10f5f6=_0xef081e;if(hasRequiredViews)return views;hasRequiredViews=0x1;const {RawDb:_0x41e7b4}=requireRawdb();class _0x3c6597{constructor(_0x413aa5){const _0x3d3518=_0x2fc2;this[_0x3d3518(0x4f8)]=_0x413aa5,this['_n']=(_0x2c6878,_0x13013a,_0x4a433d=!![])=>_0x413aa5[_0x3d3518(0x82e)][_0x3d3518(0x5a1)](_0x3d3518(0x59a),_0x413aa5[_0x3d3518(0x686)],_0x2c6878,_0x13013a,_0x4a433d);}get['_viewState'](){const _0x580edb=_0x2fc2,_0x3bf530=this,_0xb6c95e=this['env'],_0x3cffe0=_0x3bfa4d=>_0x3bfa4d?new _0x41e7b4(_0xb6c95e,_0x3bfa4d[_0x580edb(0x686)],{'dupSort':_0x3bfa4d[_0x580edb(0x561)]}):undefined,_0x4961bd=_0x508ce3=>{const _0x19da11=_0x580edb,_0x503c76=_0x3bf530['_n'](_0x19da11(0x786),[_0x508ce3],![]);if(!_0x503c76)return undefined;const _0x3e0dc7=_0x503c76[_0x19da11(0x72a)],_0x19dc8e=new Map(Object[_0x19da11(0x84a)](_0x3e0dc7[_0x19da11(0x75c)])),_0x32386f=new Map(Object[_0x19da11(0x84a)](_0x503c76[_0x19da11(0x3a5)])[_0x19da11(0x642)](([_0x1eb6aa,_0x572cb6])=>[_0x1eb6aa,_0x3cffe0(_0x572cb6)]));return{'name':_0x508ce3,'compiled':{'T':_0x3e0dc7['T'],'reducers':_0x3e0dc7['reducers'],'refs':_0x19dc8e,'granId':_0x3e0dc7[_0x19da11(0x221)],'type':_0x3e0dc7[_0x19da11(0x490)],'_nidFor':_0x582ec2=>_0x3bf530['_n']('nidFor',[_0x508ce3,_0x582ec2],![])},'viewDb':_0x3cffe0(_0x503c76[_0x19da11(0x778)][_0x19da11(0x260)]),'metaDb':_0x3cffe0(_0x503c76[_0x19da11(0x778)][_0x19da11(0x201)]),'itemsDb':_0x3cffe0(_0x503c76[_0x19da11(0x778)]['itemsDb']),'bucketsDb':_0x3cffe0(_0x503c76['dbs'][_0x19da11(0x8c2)]),'sortedDb':_0x3cffe0(_0x503c76['dbs'][_0x19da11(0x2e6)]),'groupsDb':_0x3cffe0(_0x503c76[_0x19da11(0x778)][_0x19da11(0x2f1)]),'prevDb':_0x3cffe0(_0x503c76[_0x19da11(0x778)][_0x19da11(0x34f)]),'refItemsDbs':_0x32386f,'refTrackingDbs':new Map(Object[_0x19da11(0x84a)](_0x503c76['refTrackingDbs']||{})[_0x19da11(0x642)](([_0x525917,_0x3883ff])=>[_0x525917,_0x3cffe0(_0x3883ff)])),'stopFn':_0x503c76['hasStopFn']?async()=>_0x3bf530['_n'](_0x19da11(0x71c),[_0x508ce3]):null,'bootstrapWorker':null};};return{'get':_0x492081=>_0x4961bd(_0x492081),'has':_0x5f73c7=>_0x3bf530['_n'](_0x580edb(0x3d5),[],![])['includes'](_0x5f73c7),'keys':()=>_0x3bf530['_n'](_0x580edb(0x3d5),[],![])[Symbol[_0x580edb(0x6a7)]](),get 'size'(){const _0x3169aa=_0x580edb;return _0x3bf530['_n']('stateNames',[],![])[_0x3169aa(0x788)];},[Symbol['iterator']]:()=>_0x3bf530['_n'](_0x580edb(0x3d5),[],![])['map'](_0x495417=>[_0x495417,_0x4961bd(_0x495417)])[Symbol[_0x580edb(0x6a7)]]()};}get['_customReducers'](){const _0x147555=_0x2fc2,_0x1e31bd=this;return{'has':_0x3d0d88=>_0x1e31bd['_n'](_0x147555(0x3c0),[],![])[_0x147555(0x2a1)](_0x3d0d88),get 'size'(){const _0x3b5514=_0x147555;return _0x1e31bd['_n'](_0x3b5514(0x3c0),[],![])[_0x3b5514(0x788)];},'keys':()=>_0x1e31bd['_n'](_0x147555(0x3c0),[],![])[Symbol['iterator']]()};}async[_0x10f5f6(0x33e)](){return this['_n']('bootSyncedViewsInline',[]);}async[_0x10f5f6(0x35c)](_0x57a045={}){return this['_n']('bootSyncedViews',[_0x57a045]);}async[_0x10f5f6(0x1c2)](_0x33db8c,_0x17daac){return this['_n']('create',[_0x33db8c,_0x17daac]),{'name':_0x33db8c};}[_0x10f5f6(0x292)](_0x1793bd,_0x5ee75c={}){const _0x19f370=_0x10f5f6,_0x1d9aae=this['_n'](_0x19f370(0x292),[_0x1793bd,{'preview':_0x5ee75c?.[_0x19f370(0x3df)]??{}}],![]);if(_0x1d9aae==null)return null;const _0x2d7d6b=this['_n']('itemsPlan',[_0x1793bd],![]);if(!_0x2d7d6b)return _0x1d9aae;const _0x40fedd=_0x363a86=>(_0x1a74ae={})=>this['_n'](_0x19f370(0x538),[_0x1793bd,_0x363a86,_0x1a74ae],![]);if(_0x2d7d6b[_0x19f370(0x4bc)]){_0x1d9aae['items']=_0x40fedd({'kind':_0x19f370(0x4bc)});for(const _0x1e0c4a of _0x2d7d6b[_0x19f370(0x583)]){if(!_0x1e0c4a[_0x19f370(0x538)])continue;if(_0x1e0c4a[_0x19f370(0x719)]){const _0x3ee6d0=_0x1d9aae[_0x1e0c4a[_0x19f370(0x686)]];if(_0x3ee6d0?.['preview']&&Array[_0x19f370(0x888)](_0x3ee6d0[_0x19f370(0x3df)])){for(const _0x2b0a23 of _0x3ee6d0[_0x19f370(0x3df)])_0x2b0a23[_0x19f370(0x538)]=_0x40fedd({'kind':_0x19f370(0x68e),'reducer':_0x1e0c4a[_0x19f370(0x686)],'key':_0x2b0a23[_0x19f370(0x59b)]});}}else _0x1d9aae[_0x1e0c4a['name']]&&(_0x1d9aae[_0x1e0c4a[_0x19f370(0x686)]][_0x19f370(0x538)]=_0x40fedd({'kind':_0x19f370(0x815),'reducer':_0x1e0c4a[_0x19f370(0x686)]}));}}for(const _0x2adff9 of _0x2d7d6b[_0x19f370(0x75c)]){if(!_0x2adff9[_0x19f370(0x4bc)])continue;const _0x383b83=_0x1d9aae[_0x2adff9[_0x19f370(0x686)]];if(!_0x383b83||typeof _0x383b83!==_0x19f370(0x7f6))continue;_0x383b83[_0x19f370(0x538)]=_0x40fedd({'kind':_0x19f370(0x4bc),'ref':_0x2adff9[_0x19f370(0x686)]});for(const _0x21f83f of _0x2adff9['reducers']){if(!_0x21f83f[_0x19f370(0x538)])continue;if(_0x21f83f['grouped']){const _0x31ecd3=_0x383b83[_0x21f83f[_0x19f370(0x686)]];if(_0x31ecd3?.[_0x19f370(0x3df)]&&Array[_0x19f370(0x888)](_0x31ecd3[_0x19f370(0x3df)])){for(const _0xfeed73 of _0x31ecd3['preview'])_0xfeed73[_0x19f370(0x538)]=_0x40fedd({'kind':_0x19f370(0x68e),'ref':_0x2adff9[_0x19f370(0x686)],'reducer':_0x21f83f['name'],'key':_0xfeed73[_0x19f370(0x59b)]});}}else _0x383b83[_0x21f83f[_0x19f370(0x686)]]&&(_0x383b83[_0x21f83f[_0x19f370(0x686)]][_0x19f370(0x538)]=_0x40fedd({'kind':_0x19f370(0x815),'ref':_0x2adff9[_0x19f370(0x686)],'reducer':_0x21f83f[_0x19f370(0x686)]}));}}return _0x1d9aae;}[_0x10f5f6(0x7e5)](_0x34e292){const _0x1ce696=_0x10f5f6;return this['_n'](_0x1ce696(0x7e5),[_0x34e292],![]);}['itemsGroups'](_0x5db2e2,_0x2545e0={}){const _0xb0ff33=_0x10f5f6;return this['_n'](_0xb0ff33(0x3e3),[_0x5db2e2,_0x2545e0],![]);}[_0x10f5f6(0x4e5)](_0x5d05ca,_0x4e9956={}){const _0x59d089=_0x10f5f6;return this['_n'](_0x59d089(0x4e5),[_0x5d05ca,_0x4e9956],![]);}[_0x10f5f6(0x2ad)](_0x33c0a2,_0x520c36={}){const _0x30fe24=_0x10f5f6;return this['_n'](_0x30fe24(0x2ad),[_0x33c0a2,_0x520c36],![]);}async[_0x10f5f6(0x328)](){const _0xfc5fc0=_0x10f5f6;return this['_n'](_0xfc5fc0(0x328),[],![]);}async[_0x10f5f6(0x790)](_0x1abc90){return this['_n']('getDefinition',[_0x1abc90],![])??null;}async[_0x10f5f6(0x28d)](_0x2a3656,_0x32d90e={}){const _0x329cca=_0x10f5f6;return this['_n'](_0x329cca(0x28d),[_0x2a3656,_0x32d90e]);}async[_0x10f5f6(0x6bf)](_0x49b79e){return this['_n']('stop',[_0x49b79e]);}async[_0x10f5f6(0x77b)](_0x41927){return this['_n']('start',[_0x41927]);}async[_0x10f5f6(0x774)](_0x1496f0){const _0x4e8d93=_0x10f5f6;return this['_n'](_0x4e8d93(0x774),[_0x1496f0]);}async[_0x10f5f6(0x713)](_0x4d58f2){return this['_n']('resetView',[_0x4d58f2]);}['registerReducer'](_0x118e7e,_0x629780={}){const _0xa3cb85=_0x10f5f6;return this['_n'](_0xa3cb85(0x29e),[_0x118e7e,{'apply':_0x629780&&_0x629780[_0xa3cb85(0x4b8)]}]);}}return views={'OKDBViews':_0x3c6597},views;}var queue,hasRequiredQueue;function requireQueue(){const _0x44a44b=_0xef081e;if(hasRequiredQueue)return queue;hasRequiredQueue=0x1;const {OKDBError:_0x1f0fa2}=requireErrors(),_0x226e41=requireBridge();class _0x1f3e59{constructor(_0x385247){const _0x148caa=_0x2fc2;this[_0x148caa(0x4f8)]=_0x385247,this[_0x148caa(0x82e)]=_0x385247[_0x148caa(0x82e)],this[_0x148caa(0x6d5)]=_0x385247[_0x148caa(0x82e)][_0x148caa(0x6d5)][_0x148caa(0x7ad)]({'feature':_0x148caa(0x2c1)}),this[_0x148caa(0x20a)]=new Set();}['_n'](_0x33cd90,_0x15d362,_0x1be8a4=!![]){const _0x24e2b9=_0x2fc2;return this[_0x24e2b9(0x82e)]['_call'](_0x24e2b9(0x2c1),this[_0x24e2b9(0x4f8)][_0x24e2b9(0x686)],_0x33cd90,_0x15d362,_0x1be8a4);}['_w'](_0x8b1362,_0x1f481b){const _0x4f3149=_0x2fc2;return this[_0x4f3149(0x82e)][_0x4f3149(0x36f)](this['_n'](_0x8b1362,_0x1f481b));}async['_ensure'](){const _0x18b278=_0x2fc2;return this['_n'](_0x18b278(0x50d),[]);}async[_0x44a44b(0x328)](_0x184a53={}){const _0x263ebe=_0x44a44b;return this['_n'](_0x263ebe(0x328),[_0x184a53],![]);}get['_logsDb'](){const _0x2fe405=_0x44a44b,{RawDb:_0x2bcc8e}=requireRawdb();return this[_0x2fe405(0x277)]||(this[_0x2fe405(0x277)]=new _0x2bcc8e(this['env'],'~queue_logs'));}async[_0x44a44b(0x4fa)](){const _0x37e1a7=_0x44a44b;return this['_w'](_0x37e1a7(0x35e),[]);}async['enqueue'](_0x5e775d,_0x4611f5,_0x3d5b1c={}){const _0x1c434d=_0x44a44b,{txn:_0x1b1297,..._0xed5c7f}=_0x3d5b1c||{};if(_0x1b1297)return this['_enqueueInTxn'](_0x1b1297,_0x5e775d,_0x4611f5,_0xed5c7f);const _0x45983c=this[_0x1c434d(0x82e)][_0x1c434d(0x7de)];if(_0x45983c&&_0x45983c[_0x1c434d(0x2c1)][_0x1c434d(0x788)])_0x45983c['commit']();const _0x3415b3=this['_n']('enqueueClaim',[_0x5e775d,_0x4611f5,_0xed5c7f],![]);return this[_0x1c434d(0x82e)][_0x1c434d(0x36f)](_0x3415b3['id'])[_0x1c434d(0x458)](_0x2dfbf4=>{const _0x3361ca=_0x1c434d;if(_0x3415b3[_0x3361ca(0x825)])this['_startClaimedSoon'](_0x5e775d);else try{this[_0x3361ca(0x82e)][_0x3361ca(0x82c)]['wake']();}catch{}return _0x2dfbf4;});}[_0x44a44b(0x7e1)](_0x6c4777){queueMicrotask(()=>{const _0x1f439f=_0x2fc2;try{this['_n'](_0x1f439f(0x7cf),[_0x6c4777]);}catch{}});}[_0x44a44b(0x476)](_0x117a71,_0x5aa8d2,_0x2dffa4,_0x54ae0f){const _0x2b6076=_0x44a44b,_0x1aea37=_0x117a71[_0x2b6076(0x454)]??_0x117a71;if(_0x1aea37['_closed'])throw new _0x1f0fa2(_0x2b6076(0x766),_0x2b6076(0x325));if(_0x1aea37['okdb']&&_0x1aea37[_0x2b6076(0x82e)]!==this['env']&&_0x1aea37[_0x2b6076(0x82e)][_0x2b6076(0x686)]!==this['env'][_0x2b6076(0x686)])throw new _0x1f0fa2(_0x2b6076(0x21b),_0x2b6076(0x38d),{'txnEnv':_0x1aea37[_0x2b6076(0x82e)]['name'],'queueEnv':this[_0x2b6076(0x4f8)]['name']});const _0x30bac0=this['_n'](_0x2b6076(0x8f6),[_0x5aa8d2,_0x2dffa4,_0x54ae0f],![]);if(_0x30bac0['existing'])return _0x30bac0['id'];if(_0x30bac0[_0x2b6076(0x491)])_0x117a71['update'](_0x2b6076(0x2da),_0x30bac0[_0x2b6076(0x491)][_0x2b6076(0x59b)],_0x30bac0[_0x2b6076(0x491)][_0x2b6076(0x744)],{'ifVersion':_0x30bac0['release'][_0x2b6076(0x782)]});if(_0x2dffa4!==undefined)_0x117a71[_0x2b6076(0x1dd)](_0x2b6076(0x501),_0x30bac0['id'],_0x2dffa4);_0x117a71[_0x2b6076(0x1dd)](_0x2b6076(0x2da),_0x30bac0['id'],_0x30bac0['job']);if(typeof _0x1aea37[_0x2b6076(0x6f3)]==='function')_0x1aea37[_0x2b6076(0x6f3)](()=>{if(this['_n']('announceEnqueued',[_0x30bac0['id'],_0x5aa8d2,_0x30bac0['when'],_0x30bac0['priority']]))this['_startClaimedSoon'](_0x5aa8d2);});return _0x30bac0['id'];}async['claim'](_0x3bb2f7,_0x517e8f={}){const _0x3a7d2a=_0x44a44b;if(typeof _0x3bb2f7!==_0x3a7d2a(0x43c)||!_0x3bb2f7)throw new _0x1f0fa2(_0x3a7d2a(0x1d4),_0x3a7d2a(0x290));return this['_w'](_0x3a7d2a(0x628),[_0x3bb2f7,_0x517e8f]);}async[_0x44a44b(0x553)](_0x3cd274,_0x53da33,_0x2c8498=null){const _0x40fed4=_0x44a44b;return this['_w'](_0x40fed4(0x553),[_0x3cd274,_0x53da33,_0x2c8498]);}async[_0x44a44b(0x486)](_0x50667d,_0x5f1bae,_0x2f4145=null){const _0x44b056=_0x44a44b;return this[_0x44b056(0x553)](_0x50667d,_0x5f1bae,_0x2f4145);}async[_0x44a44b(0x86f)](_0x526af7,_0x209ee7,_0x568719){const _0xee086e=_0x44a44b;return this['_w'](_0xee086e(0x86f),[_0x526af7,_0x209ee7,_0x568719]);}async[_0x44a44b(0x21d)](_0x11509c,_0x340168,_0x59e55b){const _0xd5a7a7=_0x44a44b;return this['_w'](_0xd5a7a7(0x21d),[_0x11509c,_0x340168,_0x59e55b]);}async[_0x44a44b(0x249)](_0x3f8817,_0x2ded48,_0x2be72a){const _0x4faf9d=_0x44a44b;return this[_0x4faf9d(0x21d)](_0x3f8817,_0x2ded48,_0x2be72a);}async['markJobFail'](_0x12f61f,_0x39472f,_0x246da6,_0x14fd00){const _0x16e187=_0x44a44b,_0x4ab7d1=_0x246da6 instanceof Error?{'message':_0x246da6[_0x16e187(0x485)],'stack':_0x246da6[_0x16e187(0x8a5)]}:_0x246da6;return this['_w'](_0x16e187(0x6e3),[_0x12f61f,_0x39472f,_0x4ab7d1,_0x14fd00]);}async[_0x44a44b(0x7a5)](_0x56a79b,_0x3b9398,_0x539599,_0x420395){return this['markJobFail'](_0x56a79b,_0x3b9398,_0x539599,_0x420395);}async[_0x44a44b(0x85b)](_0x1d8b59,_0x151e5b,_0x4ed687={}){const _0x461294=_0x44a44b;return this['_w'](_0x461294(0x85b),[_0x1d8b59,_0x151e5b,_0x4ed687]);}async['getJob'](_0x5a3f35){const _0x3990e7=_0x44a44b;return this['_n'](_0x3990e7(0x7d4),[_0x5a3f35],![]);}async[_0x44a44b(0x76e)](_0x534b0a,_0x33943e={},_0x4984ad={}){const _0x17db39=_0x44a44b,_0x5bf71e=_0x4984ad&&_0x4984ad[_0x17db39(0x592)];if(!_0x5bf71e)return this['_w'](_0x17db39(0x76e),[_0x534b0a,_0x33943e]);const {next:_0x38ac92,version:_0x2b9199}=this['_n'](_0x17db39(0x8b4),[_0x534b0a,_0x33943e],![]);_0x5bf71e[_0x17db39(0x739)](_0x17db39(0x2da),_0x534b0a,_0x38ac92,{'ifVersion':_0x2b9199});let _0x54ad34;if(_0x17db39(0x554)in _0x33943e){if(_0x33943e[_0x17db39(0x554)]===undefined){if(this['env'][_0x17db39(0x408)](_0x17db39(0x501),_0x534b0a))_0x5bf71e['remove']('~queue_payloads',_0x534b0a);}else _0x5bf71e['put']('~queue_payloads',_0x534b0a,_0x33943e[_0x17db39(0x554)]);_0x54ad34=_0x33943e[_0x17db39(0x554)];}else _0x54ad34=this['env']['get'](_0x17db39(0x501),_0x534b0a);return{..._0x38ac92,'payload':_0x54ad34};}async[_0x44a44b(0x6eb)](_0x1fa490,_0x40635a={}){const _0x212dc2=_0x44a44b,_0x584df1=_0x40635a&&_0x40635a[_0x212dc2(0x592)];if(!_0x584df1)return this['_w']('removeJob',[_0x1fa490]);if(!_0x1fa490)throw new _0x1f0fa2(_0x212dc2(0x498),_0x212dc2(0x290));if(!this['env']['getEntry']('~queue_jobs',_0x1fa490))return![];_0x584df1[_0x212dc2(0x28d)](_0x212dc2(0x2da),_0x1fa490);if(this[_0x212dc2(0x4f8)]['getEntry'](_0x212dc2(0x501),_0x1fa490))_0x584df1[_0x212dc2(0x28d)]('~queue_payloads',_0x1fa490);if(typeof _0x584df1[_0x212dc2(0x6f3)]==='function')_0x584df1[_0x212dc2(0x6f3)](()=>this['_n']('removeJobLogsAfterCommit',[_0x1fa490]));return!![];}async[_0x44a44b(0x29a)](_0x21091a){const _0x32a1ef=_0x44a44b;return this['_w'](_0x32a1ef(0x29a),[_0x21091a]);}async['retryJob'](_0x2af6a2){const _0x2eb373=_0x44a44b;return this['_w'](_0x2eb373(0x272),[_0x2af6a2]);}async[_0x44a44b(0x7e8)](_0x1b830b,_0x2085be,_0x3ba7e8){const _0x5e73bd=_0x44a44b,_0x413828=this['_n'](_0x5e73bd(0x586),[_0x2085be??null,_0x3ba7e8??0x0,_0x1b830b]),_0x5e23dc=0x1f4;for(let _0x4596c0=0x0;_0x4596c0<_0x413828[_0x5e73bd(0x788)];_0x4596c0+=_0x5e23dc){this['_n'](_0x5e73bd(0x75d),[_0x413828[_0x5e73bd(0x848)](_0x4596c0,_0x4596c0+_0x5e23dc),_0x4596c0,_0x413828['length'],_0x2085be??null]);if(_0x4596c0+_0x5e23dc<_0x413828[_0x5e73bd(0x788)])await new Promise(_0x2577f6=>setImmediate(_0x2577f6));}return this['_n'](_0x5e73bd(0x69b),[_0x413828[_0x5e73bd(0x788)],_0x2085be??null]),await new Promise(_0xb1c05d=>setImmediate(_0xb1c05d)),_0x413828['length'];}async[_0x44a44b(0x4ec)](_0x19d88a,_0x225fd2){const _0x468aea=_0x44a44b;return this['_clearChunked'](_0x468aea(0x577),_0x19d88a,_0x225fd2);}async[_0x44a44b(0x6b6)](_0x3ae26c,_0x5ba56b){const _0xd8a1a=_0x44a44b;return this[_0xd8a1a(0x7e8)](_0xd8a1a(0x68f),_0x3ae26c,_0x5ba56b);}async[_0x44a44b(0x5f6)](_0x2b00bd,_0x4c53f8){return this['_w']('retryFailed',[_0x2b00bd??null,_0x4c53f8??0x0]);}async[_0x44a44b(0x45f)](_0x32bd02,_0xe0bc36){const _0x22928a=_0x44a44b;return this['_w'](_0x22928a(0x45f),[_0x32bd02??null,_0xe0bc36??0x0]);}async[_0x44a44b(0x493)](_0x5d54b0,_0x28f0e7,_0x1a220d){const _0x3ee70b=_0x44a44b;return this['_w'](_0x3ee70b(0x493),[_0x5d54b0,_0x28f0e7,_0x1a220d]);}async[_0x44a44b(0x217)](_0x3cc7b5,_0x580653={}){return this['_n']('getJobLogs',[_0x3cc7b5,_0x580653],![]);}async['addBucket'](_0x32b30f,_0x4929c8={}){const _0x403709=_0x44a44b,{txn:_0x27cb4f,..._0x5193ae}=_0x4929c8||{};if(!_0x27cb4f)return this['_w']('addBucket',[_0x32b30f,_0x5193ae]);const _0x102080=(_0x2acae4,_0x793708,_0x7ba3ad,_0x269ea6)=>{const _0x50bed0=_0x2fc2,_0x5c334c=Math[_0x50bed0(0x460)](Number(_0x2acae4));return Number[_0x50bed0(0x52f)](_0x5c334c)?Math['min'](_0x269ea6,Math['max'](_0x7ba3ad,_0x5c334c)):_0x793708;},_0xbb9870=typeof _0x32b30f==='string'?_0x32b30f[_0x403709(0x39d)]():'';if(!_0xbb9870)throw new Error(_0x403709(0x857));const _0x4d7bf1=_0x102080(_0x5193ae[_0x403709(0x3f8)],0x0,0x0,0x3b9aca00);_0x27cb4f[_0x403709(0x1dd)](_0x403709(0x30a),_0xbb9870,{'id':_0xbb9870,'tokens':_0x102080(_0x5193ae[_0x403709(0x532)],_0x4d7bf1,0x0,_0x4d7bf1),'capacity':_0x4d7bf1,'refill_amount':_0x102080(_0x5193ae['refill_amount'],0x0,0x0,0x3b9aca00),'refill_every':_0x102080(_0x5193ae['refill_every'],0x0,0x0,0x16d*0x18*0x36ee80),'updated':Date['now']()});}async['updateBucket'](_0x170a13,_0x2243d3){const _0x31620f=_0x44a44b;return this['_w'](_0x31620f(0x4f0),[_0x170a13,_0x2243d3]);}async['removeBucket'](_0x425e74){const _0x3febc5=_0x44a44b;return this['_w'](_0x3febc5(0x230),[_0x425e74]);}[_0x44a44b(0x4eb)](_0x461580){const _0xdef1ad=_0x44a44b,_0x33fcec=this['_n'](_0xdef1ad(0x4eb),[_0x461580],![]);return _0x33fcec===null&&typeof _0x461580==='string'&&_0x461580['trim']()?undefined:_0x33fcec;}async['tryClaimTokens'](_0x4b5d94,_0x3ab1b6){return this['_w']('tryClaimTokens',[_0x4b5d94,_0x3ab1b6]);}async[_0x44a44b(0x4cf)](_0x288220,_0x373249={}){return this['_w']('addJobType',[_0x288220,_0x373249]);}async['getJobType'](_0x3e2a35){const _0x3e3cf9=_0x44a44b;return this['_n'](_0x3e3cf9(0x4f9),[_0x3e2a35],![]);}async[_0x44a44b(0x496)](){const _0x46afc0=_0x44a44b;return this['_n'](_0x46afc0(0x496),[],![]);}async[_0x44a44b(0x7c0)](_0x7d2f5d){const _0x28701a=_0x44a44b;return this['_w'](_0x28701a(0x7c0),[_0x7d2f5d]);}[_0x44a44b(0x64a)](_0x5641b7){const _0x32465c=_0x44a44b;return this['_n'](_0x32465c(0x64a),[_0x5641b7]);}[_0x44a44b(0x246)](_0x103ef9){const _0x390761=_0x44a44b;return this['_n'](_0x390761(0x246),[_0x103ef9]);}[_0x44a44b(0x600)](_0x3a0f44){const _0x476548=_0x44a44b;return this['_n'](_0x476548(0x600),[_0x3a0f44]);}async[_0x44a44b(0x56f)](_0x1bc494,_0x19d3d0,_0x1a9f81=![]){const _0x263449=_0x44a44b;return this['_w'](_0x263449(0x56f),[_0x1bc494,_0x19d3d0,_0x1a9f81]);}async[_0x44a44b(0x886)](_0x54b1af){const _0x119361=_0x44a44b;return this['_w'](_0x119361(0x886),[_0x54b1af]);}async[_0x44a44b(0x8f8)](_0xafb964,_0x44b635=0x5){const _0x29910e=_0x44a44b;return this['_n'](_0x29910e(0x8f8),[_0xafb964,_0x44b635],![]);}async['_reconcile'](_0x2e22d5){const _0x16a3c7=_0x44a44b;return this['_n'](_0x16a3c7(0x775),[_0x2e22d5]);}async[_0x44a44b(0x261)](_0x4c7e6c=0x7530){const _0x2987cf=_0x44a44b;await Promise[_0x2987cf(0x6a1)]([...this[_0x2987cf(0x20a)]][_0x2987cf(0x642)](_0x543277=>_0x543277[_0x2987cf(0x6bf)](_0x4c7e6c)));const _0x716ab7=this['_n'](_0x2987cf(0x261),[0x0]);return this[_0x2987cf(0x20a)][_0x2987cf(0x6fa)](),_0x716ab7;}async[_0x44a44b(0x70b)](){const _0xa2ef8=_0x44a44b,_0x103e16=this['_n'](_0xa2ef8(0x70b),[]);return this[_0xa2ef8(0x20a)][_0xa2ef8(0x6fa)](),_0x103e16;}[_0x44a44b(0x4da)](_0x1d5da9,_0x441adc,_0x574fd9){const _0x55df28=_0x44a44b;let _0x3ee66d,_0x2dc1a2;if(Array['isArray'](_0x1d5da9)){if(typeof _0x441adc==='function')throw new _0x1f0fa2(_0x55df28(0x45e),'BAD_PARAM');_0x2dc1a2=_0x441adc??{};if(_0x2dc1a2[_0x55df28(0x596)]!=null&&typeof _0x2dc1a2['admission']!=='function')throw new _0x1f0fa2(_0x55df28(0x53b),'BAD_PARAM');if(_0x1d5da9[_0x55df28(0x788)]===0x0)throw new _0x1f0fa2('process(entries)\x20requires\x20at\x20least\x20one\x20entry',_0x55df28(0x290));_0x3ee66d=_0x1d5da9[_0x55df28(0x642)](_0x3ccce3=>{const _0x5c8ae7=_0x55df28;if(!_0x3ccce3||typeof _0x3ccce3[_0x5c8ae7(0x490)]!==_0x5c8ae7(0x43c)||!_0x3ccce3[_0x5c8ae7(0x490)])throw new _0x1f0fa2('each\x20process()\x20entry\x20requires\x20a\x20non-empty\x20`type`',_0x5c8ae7(0x290));if(typeof _0x3ccce3[_0x5c8ae7(0x4cc)]!==_0x5c8ae7(0x484))throw new _0x1f0fa2(_0x5c8ae7(0x269)+_0x3ccce3[_0x5c8ae7(0x490)]+'\x22\x20requires\x20a\x20`handler`\x20function',_0x5c8ae7(0x290));return{..._0x3ccce3};});}else{_0x2dc1a2=_0x574fd9??{};if(typeof _0x441adc!==_0x55df28(0x484))throw new _0x1f0fa2(_0x55df28(0x269)+_0x1d5da9+_0x55df28(0x7c2),_0x55df28(0x290));_0x3ee66d=[{'type':_0x1d5da9,'handler':_0x441adc,..._0x574fd9??{}}];}const _0x46f1f2=this[_0x55df28(0x82e)];for(const _0x4acb80 of _0x3ee66d){const _0x574575=_0x4acb80[_0x55df28(0x4cc)];_0x4acb80[_0x55df28(0x4cc)]=function(..._0x4b078a){const _0x341f09=_0x55df28;return _0x46f1f2[_0x341f09(0x2fd)]()[_0x341f09(0x458)](()=>_0x574575['apply'](this,_0x4b078a));};}const _0x2442be=this['_n'](_0x55df28(0x4da),[_0x3ee66d,_0x2dc1a2]),_0x40612d=this,_0x25ae4e={'id':_0x2442be['id'],'type':_0x2442be[_0x55df28(0x490)],get 'running'(){const _0x37b05b=_0x55df28;return _0x40612d['_n'](_0x37b05b(0x4c7),[_0x2442be['id']],![])[_0x37b05b(0x769)];},'isRunning'(){const _0x4163fd=_0x55df28;return _0x40612d['_n'](_0x4163fd(0x4c7),[_0x2442be['id']],![])['running'];},async 'stop'(_0x180821=0x7530){const _0x41bad8=_0x55df28;_0x40612d['_n'](_0x41bad8(0x4f6),[_0x2442be['id']]);const _0x5586e4=Date[_0x41bad8(0x3d4)]()+_0x180821;while(_0x40612d['_n'](_0x41bad8(0x4c7),[_0x2442be['id']],![])[_0x41bad8(0x231)]>0x0&&Date['now']()<_0x5586e4)await new Promise(_0x1df78d=>setTimeout(_0x1df78d,0x2));_0x40612d['_n'](_0x41bad8(0x88a),[_0x2442be['id']]),_0x226e41[_0x41bad8(0x42f)](),_0x40612d['_workers'][_0x41bad8(0x46b)](_0x25ae4e);},async 'kill'(){const _0x2aa31f=_0x55df28;_0x40612d['_n'](_0x2aa31f(0x492),[_0x2442be['id']]),_0x40612d[_0x2aa31f(0x20a)][_0x2aa31f(0x46b)](_0x25ae4e);}};return this['_workers'][_0x55df28(0x77d)](_0x25ae4e),_0x25ae4e;}[_0x44a44b(0x487)](_0x54b3fd){const _0x229b6e=_0x44a44b;throw new _0x1f0fa2('queue.worker(\x27'+_0x54b3fd+_0x229b6e(0x810)+_0x54b3fd+_0x229b6e(0x7ea),_0x229b6e(0x789));}[_0x44a44b(0x6be)](_0x285941){return this['worker'](_0x285941);}}return queue={'OKDBQueue':_0x1f3e59},queue;}var timemachine,hasRequiredTimemachine;function requireTimemachine(){const _0x1df95d=_0xef081e;if(hasRequiredTimemachine)return timemachine;hasRequiredTimemachine=0x1;const {fromArray:_0x32b858}=requireIterable();class _0x1891d4{constructor(_0x4197e3){const _0x459cf1=_0x2fc2;this['env']=_0x4197e3,this['okdb']=_0x4197e3['okdb'];const _0x768074=(_0xa18dab,_0x8bac97)=>this['_n'](_0xa18dab,_0x8bac97,![]);this[_0x459cf1(0x317)]={'getDiffs':(_0x2d983f,_0x5b97f7,_0xbe9111)=>_0x768074(_0x459cf1(0x56e),[_0x2d983f,_0x5b97f7,_0xbe9111||{}]),'hasDiff':(_0x4f832c,_0x4bb2bf,_0x1c6f2)=>_0x768074(_0x459cf1(0x459),[_0x4f832c,_0x4bb2bf,_0x1c6f2]),'getHead':(_0x30763e,_0x37a754)=>_0x768074(_0x459cf1(0x704),[_0x30763e,_0x37a754])??null,'getHeadCount':_0x354193=>_0x768074(_0x459cf1(0x470),[_0x354193]),'getTotalHeadCount':()=>_0x768074(_0x459cf1(0x781),[]),'getDiffsInRange':(_0x589778,_0x2e13c9,_0x383e9b)=>_0x768074(_0x459cf1(0x662),[_0x589778??null,_0x2e13c9,_0x383e9b]),'getConfig':()=>_0x768074(_0x459cf1(0x80a),[])??null,'getCursor':()=>this['_n']('getLegacyCursor',[],![])??null,get 'db'(){const _0x491dbe=_0x459cf1;try{return _0x768074(_0x491dbe(0x781),[]),{};}catch{return null;}}};}get['_registrations'](){const _0x1090bc=_0x2fc2,_0x8950a7=(this[_0x1090bc(0x4f8)][_0x1090bc(0x882)]?.[_0x1090bc(0x328)]?.()||[])[_0x1090bc(0x877)](_0x52c9b7=>String(_0x52c9b7[_0x1090bc(0x7c8)]||'')['startsWith'](_0x1090bc(0x735)))[_0x1090bc(0x788)];return{'size':_0x8950a7};}['_n'](_0x1f8ce2,_0x5d3d97,_0x13e757=!![]){const _0x45e733=_0x2fc2;return this[_0x45e733(0x82e)][_0x45e733(0x5a1)]('tm',this[_0x45e733(0x4f8)]['name'],_0x1f8ce2,_0x5d3d97,_0x13e757);}async[_0x1df95d(0x274)](_0x97c549){const _0x9fc61c=_0x1df95d;return this['_n'](_0x9fc61c(0x274),[_0x97c549??null]);}async[_0x1df95d(0x229)](_0x5db34b){const _0x34d629=_0x1df95d;return this['_n'](_0x34d629(0x229),[_0x5db34b??null]);}async['enableAll'](){const _0x4b93ab=_0x1df95d;return this['_n'](_0x4b93ab(0x8ea),[]);}async[_0x1df95d(0x20f)](){const _0x4ce014=_0x1df95d;return this['_n'](_0x4ce014(0x20f),[]);}async[_0x1df95d(0x48e)](_0xbd6432){const _0x325b65=_0x1df95d;return this['_n'](_0x325b65(0x48e),[_0xbd6432??null]);}async[_0x1df95d(0x4ca)](){const _0x45e447=_0x1df95d;return this['_n'](_0x45e447(0x4ca),[]);}[_0x1df95d(0x32c)](_0x5ae983){const _0x2d40dd=_0x1df95d;return this['_n'](_0x2d40dd(0x32c),[_0x5ae983??null],![]);}['list'](){const _0x350e30=_0x1df95d;return this['_n'](_0x350e30(0x328),[],![]);}[_0x1df95d(0x442)](_0x3d1d53){const _0x476e40=_0x1df95d;return this['_n'](_0x476e40(0x442),[_0x3d1d53??null],![]);}['getCursor'](_0x476a0b){const _0x10985e=_0x1df95d;if(!_0x476a0b)return this['_n'](_0x10985e(0x82f),[],![]);return this['_n'](_0x10985e(0x692),[_0x476a0b],![]);}[_0x1df95d(0x82f)](){const _0xb9b70f=_0x1df95d;return this['_n'](_0xb9b70f(0x82f),[],![]);}['getStateAt'](_0x1f1cf3,_0x5b45cc,_0x28fd24){const _0x56215b=_0x1df95d;return this['_n'](_0x56215b(0x576),[_0x1f1cf3,_0x5b45cc,_0x28fd24],![]);}['getHistory'](_0x1e51e8,_0x446361,_0x43c9bb){return this['_n']('getHistory',[_0x1e51e8,_0x446361,_0x43c9bb||{}],![]);}[_0x1df95d(0x257)](_0x226bdc,_0x58cdf2,_0x1d4536){const _0x2e102a=_0x1df95d;return this['_n'](_0x2e102a(0x257),[_0x226bdc??null,_0x58cdf2,_0x1d4536],![])[Symbol['iterator']]();}async[_0x1df95d(0x26a)](_0x31adc1){return this['_n']('flush',[_0x31adc1??null]);}}return timemachine={'OKDBTimeMachine':_0x1891d4},timemachine;}var files,hasRequiredFiles;function requireFiles(){const _0x7a4a52=_0xef081e;if(hasRequiredFiles)return files;hasRequiredFiles=0x1;const _0xba7299=require$$0,{Readable:_0x164efe}=require$$1,{OKDBError:_0xb56b3f,optionsArg:_0x10534b,invalidArgument:_0x1dded5}=requireErrors(),{RawDb:_0x2a04d5}=requireRawdb();async function _0x51c744(_0x31b8bd){const _0x6384a3=_0x2fc2;if(Buffer[_0x6384a3(0x605)](_0x31b8bd))return _0x31b8bd;if(_0x31b8bd instanceof Uint8Array)return Buffer[_0x6384a3(0x51b)](_0x31b8bd);if(typeof _0x31b8bd===_0x6384a3(0x43c))return Buffer[_0x6384a3(0x51b)](_0x31b8bd);const _0xf660a1=[];for await(const _0xa12ea6 of _0x31b8bd)_0xf660a1[_0x6384a3(0x27f)](Buffer[_0x6384a3(0x605)](_0xa12ea6)?_0xa12ea6:Buffer[_0x6384a3(0x51b)](_0xa12ea6));return Buffer['concat'](_0xf660a1);}class _0x50e40c{constructor(_0x49be8d){const _0x598dac=_0x2fc2;this[_0x598dac(0x4f8)]=_0x49be8d,this[_0x598dac(0x82e)]=_0x49be8d[_0x598dac(0x82e)];}['_n'](_0x242292,_0x3afd2a,_0x1b75e1=!![]){const _0x39a451=_0x2fc2;return this['okdb']['_call'](_0x39a451(0x1c3),this[_0x39a451(0x4f8)][_0x39a451(0x686)],_0x242292,_0x3afd2a,_0x1b75e1);}[_0x7a4a52(0x77b)](){return!![];}[_0x7a4a52(0x6bf)](){}async[_0x7a4a52(0x7ed)](){const _0x3a39cc=_0x7a4a52;this['_n'](_0x3a39cc(0x50d),[]);}async[_0x7a4a52(0x8bb)](_0x5de86f,_0x5524dc){const _0x374c6d=_0x7a4a52;return this[_0x374c6d(0x82e)][_0x374c6d(0x36f)](this['_n'](_0x374c6d(0x282),[_0x5de86f,await _0x51c744(_0x5524dc)]));}get[_0x7a4a52(0x534)](){const _0x5be755=_0x7a4a52;return this['__blobStatusDb']||(this['__blobStatusDb']=new _0x2a04d5(this[_0x5be755(0x4f8)],_0x5be755(0x39b)));}async[_0x7a4a52(0x44c)](_0x38b64b){const _0x18610d=_0x7a4a52;return this[_0x18610d(0x534)][_0x18610d(0x400)](_0x38b64b);}async[_0x7a4a52(0x5aa)](_0x298a5c){const _0x57fd53=_0x7a4a52,{id:_0x2eec03,stream:_0x357b87,mime:mime='application/octet-stream',path:_0x41e0fa='',txn:txn=null}=_0x10534b(_0x298a5c);if(!_0x2eec03)throw _0x1dded5(_0x57fd53(0x238),'a\x20non-empty\x20string',_0x2eec03);if(!_0x357b87)throw _0x1dded5('files.upload:\x20stream',_0x57fd53(0x8e7),_0x357b87);const _0x38ae74=await _0x51c744(_0x357b87);if(txn){const _0xca365c=this['_n'](_0x57fd53(0x62f),[_0x2eec03,_0x38ae74,{'mime':mime,'path':_0x41e0fa}]);return txn[_0x57fd53(0x1dd)](_0x57fd53(0x7b8),_0x2eec03,_0xca365c['record']),txn[_0x57fd53(0x6f3)](()=>this['_n'](_0x57fd53(0x1f2),[_0xca365c[_0x57fd53(0x513)]])),txn[_0x57fd53(0x479)](()=>this['_n'](_0x57fd53(0x450),[_0xca365c[_0x57fd53(0x513)]])),_0xca365c[_0x57fd53(0x3c8)];}return this[_0x57fd53(0x82e)]['_settleWrite'](this['_n']('upload',[_0x2eec03,_0x38ae74,{'mime':mime,'path':_0x41e0fa}]));}[_0x7a4a52(0x292)](_0xbce992){const _0x2317c2=_0x7a4a52;return this['_n'](_0x2317c2(0x292),[_0xbce992],![])??null;}[_0x7a4a52(0x391)](_0x5f5338){const _0xd52e78=_0x7a4a52,_0x3fcf6e=this[_0xd52e78(0x4ae)](_0x5f5338);if(!_0xba7299[_0xd52e78(0x8b5)](_0x3fcf6e))throw Object['assign'](new Error(_0xd52e78(0x873)+_0x5f5338),{'status':0x194});return this['_blobStream'](_0x5f5338);}[_0x7a4a52(0x4d5)](_0x17ad4d){const _0x2a8795=0x100*0x400,_0x1e3879=this;let _0x469a22=0x0;return new _0x164efe({'highWaterMark':_0x2a8795,'read'(){const _0x14d616=_0x2fc2;let _0x27230c;try{const _0x1fee0=_0x1e3879['_n'](_0x14d616(0x70e),[_0x17ad4d,_0x469a22,_0x2a8795],![]);_0x27230c=Buffer[_0x14d616(0x605)](_0x1fee0)?_0x1fee0:Buffer['from'](_0x1fee0);}catch(_0x3dce12){this[_0x14d616(0x4ee)](_0x3dce12);return;}_0x469a22+=_0x27230c[_0x14d616(0x788)];if(_0x27230c[_0x14d616(0x788)])this[_0x14d616(0x27f)](_0x27230c);if(_0x27230c[_0x14d616(0x788)]<_0x2a8795)this[_0x14d616(0x27f)](null);}});}async[_0x7a4a52(0x69e)](_0x5d1757){const _0x16b0a2=_0x7a4a52;return this[_0x16b0a2(0x82e)][_0x16b0a2(0x1bf)](this['_n'](_0x16b0a2(0x69e),[_0x5d1757],![]));}async[_0x7a4a52(0x207)](_0x3964a1){const _0xe6acbc=_0x7a4a52,_0x4deb4d=this['get'](_0x3964a1);if(!_0x4deb4d)throw Object['assign'](new Error(_0xe6acbc(0x671)+_0x3964a1),{'status':0x194});const _0x5c46f=this['_blobPath'](_0x4deb4d[_0xe6acbc(0x819)]);if(!_0xba7299[_0xe6acbc(0x8b5)](_0x5c46f))throw Object[_0xe6acbc(0x7ac)](new Error(_0xe6acbc(0x37a)+_0x3964a1),{'status':0x194});return{'stream':this[_0xe6acbc(0x4d5)](_0x4deb4d['hash']),'record':_0x4deb4d};}async[_0x7a4a52(0x28d)](_0x3296ea,_0x410b42){const _0x80b919=_0x7a4a52,{txn:txn=null}=_0x10534b(_0x410b42);if(txn){const _0x1eac0c=this['_n'](_0x80b919(0x1d9),[_0x3296ea]);txn[_0x80b919(0x28d)]('~files',_0x3296ea),txn[_0x80b919(0x6f3)](()=>this['_n'](_0x80b919(0x1f2),[_0x1eac0c[_0x80b919(0x513)]])),txn[_0x80b919(0x479)](()=>this['_n'](_0x80b919(0x450),[_0x1eac0c[_0x80b919(0x513)]]));return;}return this['okdb'][_0x80b919(0x36f)](this['_n'](_0x80b919(0x28d),[_0x3296ea]));}async[_0x7a4a52(0x822)](_0x4d891b,_0x24e6aa={}){const _0x110840=_0x7a4a52;return this['_n'](_0x110840(0x822),[_0x4d891b,_0x24e6aa],![]);}[_0x7a4a52(0x413)](_0x20dbf9){const _0x5d2114=_0x7a4a52;return this['_n'](_0x5d2114(0x413),[_0x20dbf9],![]);}[_0x7a4a52(0x64d)](){const _0x25c04c=_0x7a4a52;return this['_n'](_0x25c04c(0x64d),[],![]);}[_0x7a4a52(0x22b)](_0x23ec8b){const _0x597fa5=_0x7a4a52,{minAgeMs:_0x5ea61c}=_0x10534b(_0x23ec8b);return this['_n'](_0x597fa5(0x22b),[_0x5ea61c??null]);}[_0x7a4a52(0x6ca)](_0x3cc0d2,_0x585e67){const _0x54c396=_0x7a4a52;if(typeof _0x585e67!==_0x54c396(0x484))throw new _0xb56b3f(_0x54c396(0x4af),'BAD_PARAM');const _0x7430d4=this['_n'](_0x54c396(0x6ca),[_0x3cc0d2,_0x585e67]);return()=>this['_n'](_0x54c396(0x61a),[_0x7430d4]);}async[_0x7a4a52(0x61e)](_0x3872e6){const _0x1119fa=_0x7a4a52;return _0x3872e6=_0x10534b(_0x3872e6),this['_n'](_0x1119fa(0x61e),[_0x3872e6]);}async['syncBlobs'](_0x320366){const _0x2dc436=_0x7a4a52,{peerIds:_0x2025eb}=_0x10534b(_0x320366);return this['_n'](_0x2dc436(0x52b),[_0x2025eb??null]);}[_0x7a4a52(0x4ae)](_0x20761d){const _0x164c09=_0x7a4a52;if(typeof _0x20761d!==_0x164c09(0x43c))return require$$4['join'](this[_0x164c09(0x202)],_0x20761d['slice'](0x0,0x2),_0x20761d['slice'](0x2));return this['_n'](_0x164c09(0x8ec),[_0x20761d],![]);}get[_0x7a4a52(0x202)](){return this['_n']('blobsDir',[],![]);}}return files={'OKDBFiles':_0x50e40c},files;}var engines,hasRequiredEngines;function requireEngines(){const _0x5ecc04=_0xef081e;if(hasRequiredEngines)return engines;hasRequiredEngines=0x1;const {OKDBError:_0x379114}=requireErrors(),_0xe9c821=requireBridge(),_0x335fc5=new Set([_0x5ecc04(0x418),'indexer',_0x5ecc04(0x3f5),_0x5ecc04(0x679)]),_0x4a651f=new Set([_0x5ecc04(0x4c2),_0x5ecc04(0x1f9),_0x5ecc04(0x3a7)]),_0x4321ce=['validate',_0x5ecc04(0x7be),_0x5ecc04(0x736),_0x5ecc04(0x86e),_0x5ecc04(0x210),_0x5ecc04(0x6bf),'uninstall'],_0x4e1c03={'embedder':new Set([_0x5ecc04(0x3a7),_0x5ecc04(0x70d)])},_0x180c37=new Set([_0x5ecc04(0x393),'processor','queue-worker']);class _0x368378{constructor(_0x3fb1c6,_0x55ae87,_0x2e4197,_0x334400){const _0x5a9b64=_0x5ecc04;this[_0x5a9b64(0x833)]=_0x3fb1c6,this[_0x5a9b64(0x59b)]=_0x55ae87,this['type']=_0x2e4197,this[_0x5a9b64(0x686)]=_0x334400,this[_0x5a9b64(0x35b)]=_0x2e4197;}[_0x5ecc04(0x481)](){const _0x25cf11=_0x5ecc04;return this['_facade']['_n'](_0x25cf11(0x1f9),[this[_0x25cf11(0x490)],this['name']],![]);}get['doc'](){const _0x2d0682=_0x5ecc04;return this[_0x2d0682(0x481)]()[_0x2d0682(0x3a0)];}get[_0x5ecc04(0x317)](){const _0x1a3a62=_0x5ecc04,_0x11ec96=this['_info']()[_0x1a3a62(0x514)];return _0x11ec96?this[_0x1a3a62(0x833)][_0x1a3a62(0x82e)][_0x1a3a62(0x75a)][_0x1a3a62(0x292)](_0x11ec96):undefined;}get[_0x5ecc04(0x841)](){const _0x2b7fb0=_0x5ecc04;return this[_0x2b7fb0(0x481)]()[_0x2b7fb0(0x841)];}get['enabled'](){return this['_info']()['enabled'];}get['isRunning'](){const _0x3bc9bb=_0x5ecc04;return this[_0x3bc9bb(0x481)]()['isRunning'];}get[_0x5ecc04(0x442)](){const _0x377f63=_0x5ecc04;return this[_0x377f63(0x481)]()[_0x377f63(0x442)];}get['reason'](){const _0x163f2b=_0x5ecc04;return this[_0x163f2b(0x481)]()[_0x163f2b(0x2d1)];}get['lastError'](){const _0x4be6d=_0x5ecc04,_0x280829=this['_info']()[_0x4be6d(0x414)];return _0x280829?Object[_0x4be6d(0x7ac)](new Error(_0x280829[_0x4be6d(0x485)]),{'code':_0x280829['code']}):null;}get[_0x5ecc04(0x6b3)](){const _0x49dd04=_0x5ecc04;return this[_0x49dd04(0x481)]()['runtimeState'];}get[_0x5ecc04(0x885)](){const _0x4a045f=_0x5ecc04;return this[_0x4a045f(0x833)][_0x4a045f(0x582)]['get'](this['type'])??null;}get[_0x5ecc04(0x276)](){const _0x3279d0=_0x5ecc04;if(!this[_0x3279d0(0x481)]()[_0x3279d0(0x5fb)])return null;const _0x4a16cd=this;return new Proxy({},{'get'(_0x12bbe7,_0x16a67a){const _0x339820=_0x3279d0;if(typeof _0x16a67a===_0x339820(0x3e0)||_0x16a67a===_0x339820(0x458))return undefined;if(_0x4e1c03[_0x4a16cd['type']]&&_0x4e1c03[_0x4a16cd[_0x339820(0x490)]][_0x339820(0x396)](_0x16a67a))return _0x4a16cd['_facade']['_n'](_0x339820(0x478),[_0x4a16cd[_0x339820(0x490)],_0x4a16cd[_0x339820(0x686)],_0x16a67a,[]],![])[_0x339820(0x744)];if(_0x4a16cd[_0x339820(0x490)]===_0x339820(0x76c)&&_0x16a67a===_0x339820(0x26a))return async(_0x10c622={})=>{const _0x30ee17=_0x339820,_0x495250=(_0x533e4c,..._0x4afc21)=>_0x4a16cd[_0x30ee17(0x833)]['_n'](_0x30ee17(0x478),[_0x4a16cd[_0x30ee17(0x490)],_0x4a16cd[_0x30ee17(0x686)],_0x533e4c,_0x4afc21],!![])[_0x30ee17(0x744)],_0x356558=_0x495250(_0x30ee17(0x431),_0x10c622??{}),_0x209d7d=Date[_0x30ee17(0x3d4)]();for(;;){const _0x825cb3=await _0x4a16cd[_0x30ee17(0x833)][_0x30ee17(0x82e)][_0x30ee17(0x3d3)](()=>_0x495250(_0x30ee17(0x6ba)));if(_0x825cb3[_0x30ee17(0x8e1)]>=_0x825cb3['head'])return;Date[_0x30ee17(0x3d4)]()-_0x209d7d>=_0x356558&&_0x495250(_0x30ee17(0x617),_0x10c622??{},_0x825cb3),await new Promise(_0x1822ca=>setTimeout(_0x1822ca,0x3));}};return(..._0xf2ee10)=>{const _0x207187=_0x339820,_0x44d141=()=>_0x4a16cd[_0x207187(0x833)]['_n']('apiCall',[_0x4a16cd[_0x207187(0x490)],_0x4a16cd[_0x207187(0x686)],_0x16a67a,_0xf2ee10],!![]),_0x3f3109=_0xe91c7f=>{const _0x295e95=_0x207187;if(_0xe91c7f&&_0xe91c7f[_0x295e95(0x795)])throw new TypeError(_0x295e95(0x730)+_0x16a67a+'\x27');return _0xe91c7f['value'];};if(_0x335fc5[_0x207187(0x396)](_0x4a16cd[_0x207187(0x490)])&&!_0x4a651f[_0x207187(0x396)](_0x16a67a)){const _0x82bfc3=_0x4a16cd[_0x207187(0x833)]['okdb'];return _0x82bfc3[_0x207187(0x674)](()=>_0x82bfc3[_0x207187(0x3d3)](_0x44d141))[_0x207187(0x458)](_0x3f3109);}if(_0x180c37[_0x207187(0x396)](_0x4a16cd[_0x207187(0x490)]))try{return Promise[_0x207187(0x1f3)](_0x3f3109(_0x44d141()));}catch(_0x47449c){return Promise[_0x207187(0x869)](_0x47449c);}return _0x3f3109(_0x44d141());};}});}async['load'](_0x150c70={}){const _0x4d3aa0=_0x5ecc04;return await this[_0x4d3aa0(0x833)][_0x4d3aa0(0x519)](_0x4d3aa0(0x64c),[this['type'],this[_0x4d3aa0(0x686)],_0x150c70]),this;}async['start'](){const _0x5084b2=_0x5ecc04;await this['_facade'][_0x5084b2(0x519)](_0x5084b2(0x3e5),[this[_0x5084b2(0x490)],this[_0x5084b2(0x686)]]);}async[_0x5ecc04(0x6bf)](_0x42b379={}){const _0x42cb08=_0x5ecc04;await this['_facade']['_nm'](_0x42cb08(0x8bd),[this[_0x42cb08(0x490)],this['name'],_0x42b379]);}async[_0x5ecc04(0x34a)](_0x287124={}){const _0x232114=_0x5ecc04;return await this[_0x232114(0x833)][_0x232114(0x519)]('patchDeclaration',[this[_0x232114(0x490)],this[_0x232114(0x686)],_0x287124]),this;}async[_0x5ecc04(0x71b)](){const _0x334631=_0x5ecc04;await this[_0x334631(0x833)]['_nm'](_0x334631(0x8cc),[this[_0x334631(0x490)],this['name']]);}}class _0x42c456{constructor(_0x1faa91,_0x19bd67=null,_0x1dff74=null){const _0x26adac=_0x5ecc04;this['okdb']=_0x1faa91,this[_0x26adac(0x849)]=_0x19bd67,this[_0x26adac(0x4c6)]=_0x19bd67===null,this[_0x26adac(0x7f1)]=_0x1dff74||this,this[_0x26adac(0x582)]=this[_0x26adac(0x7f1)]===this?_0x5f48bf(this):this[_0x26adac(0x7f1)]['drivers'],this[_0x26adac(0x828)]=new Map();}['_n'](_0x5c0f8b,_0x3b7cfd,_0x10b2d9=!![]){const _0x4f8da6=_0x5ecc04;return this['okdb'][_0x4f8da6(0x5a1)](_0x4f8da6(0x2af),this[_0x4f8da6(0x849)],_0x5c0f8b,_0x3b7cfd,_0x10b2d9);}[_0x5ecc04(0x519)](_0x483248,_0x4604a8){const _0x2a157e=_0x5ecc04;return this['okdb'][_0x2a157e(0x517)](_0x2a157e(0x2af),this[_0x2a157e(0x849)],_0x483248,_0x4604a8,!![]);}get[_0x5ecc04(0x4f8)](){const _0x4d8af6=_0x5ecc04;return this[_0x4d8af6(0x849)]?this[_0x4d8af6(0x82e)][_0x4d8af6(0x4f8)](this['envName']):null;}[_0x5ecc04(0x74c)](_0x252f38){const _0xa91f54=_0x5ecc04;if(!_0x252f38)return null;let _0x4c3880=this[_0xa91f54(0x828)][_0xa91f54(0x292)](_0x252f38[_0xa91f54(0x59b)]);return!_0x4c3880&&(_0x4c3880=new _0x368378(this,_0x252f38[_0xa91f54(0x59b)],_0x252f38[_0xa91f54(0x490)],_0x252f38[_0xa91f54(0x686)]),this[_0xa91f54(0x828)]['set'](_0x252f38[_0xa91f54(0x59b)],_0x4c3880)),_0x4c3880;}[_0x5ecc04(0x759)](_0x17bdcc,_0x27796e){const _0x341f85=_0x5ecc04;if(!_0x17bdcc||typeof _0x17bdcc!=='string')throw new _0x379114(_0x341f85(0x7d2),'ENGINE_INVALID_TYPE',{'type':_0x17bdcc});if(!_0x27796e||typeof _0x27796e!=='object')throw new _0x379114(_0x341f85(0x456)+_0x17bdcc+_0x341f85(0x6ef),'ENGINE_INVALID_DRIVER',{'type':_0x17bdcc});if(typeof _0x27796e[_0x341f85(0x77b)]!==_0x341f85(0x484))throw new _0x379114(_0x341f85(0x456)+_0x17bdcc+'\x22\x20must\x20have\x20a\x20start()\x20method',_0x341f85(0x56b),{'type':_0x17bdcc});const _0x1ef6a3=this[_0x341f85(0x7f1)];if(_0x1ef6a3[_0x341f85(0x582)][_0x341f85(0x396)](_0x17bdcc))throw new _0x379114(_0x341f85(0x62b)+_0x17bdcc+'\x22','ENGINE_DRIVER_ALREADY_REGISTERED',{'type':_0x17bdcc});const _0x5f0221=_0xe9c821[_0x341f85(0x792)](_0x27796e,this[_0x341f85(0x82e)]),_0x242445=_0x4321ce[_0x341f85(0x877)](_0x8afc8d=>typeof _0x27796e[_0x8afc8d]===_0x341f85(0x484)),_0x273c3a=_0x27796e[_0x341f85(0x65a)]&&typeof _0x27796e[_0x341f85(0x65a)]===_0x341f85(0x7f6)?_0x27796e[_0x341f85(0x65a)]:{};this[_0x341f85(0x82e)][_0x341f85(0x5a1)]('engines',null,'registerDriver',[_0x17bdcc,{'$id':_0x5f0221,'has':_0x242445,'docs':_0x273c3a}]),_0x1ef6a3['drivers'][_0x341f85(0x5a5)](_0x17bdcc,_0x27796e);}get[_0x5ecc04(0x66e)](){const _0x4f1367=_0x5ecc04;return this['okdb']['_call'](_0x4f1367(0x2af),null,_0x4f1367(0x2dc),[],![]);}get[_0x5ecc04(0x242)](){const _0x3d0718=this;return{get '_started'(){return _0x3d0718['_started'];}};}[_0x5ecc04(0x809)](_0x87abdc){const _0x572a3f=_0x5ecc04;if(!_0x87abdc||typeof _0x87abdc!==_0x572a3f(0x7f6))throw new _0x379114(_0x572a3f(0x2b0),_0x572a3f(0x7a6));if(!_0x87abdc['id']||typeof _0x87abdc['id']!==_0x572a3f(0x43c))throw new _0x379114(_0x572a3f(0x232),_0x572a3f(0x7a6));if(![_0x572a3f(0x2cc),_0x572a3f(0x5cd)][_0x572a3f(0x2a1)](_0x87abdc[_0x572a3f(0x7af)]))throw new _0x379114('Engine\x20template\x20kind\x20must\x20be\x20\x22engine\x22\x20or\x20\x22pipeline\x22:\x20'+_0x87abdc['id'],_0x572a3f(0x7a6));if(typeof _0x87abdc['build']!==_0x572a3f(0x484))throw new _0x379114(_0x572a3f(0x551)+_0x87abdc['id'],_0x572a3f(0x7a6));const _0x19cf1e=this[_0x572a3f(0x82e)],_0x1eb1bd=typeof _0x87abdc[_0x572a3f(0x440)]==='function';return this['_n'](_0x572a3f(0x809),[{'id':_0x87abdc['id'],'kind':_0x87abdc[_0x572a3f(0x7af)],'family':_0x87abdc[_0x572a3f(0x84f)]??null,'engineType':_0x87abdc[_0x572a3f(0x35b)]??null,'pipelineFamily':_0x87abdc[_0x572a3f(0x7ce)]??null,'recommended':_0x87abdc[_0x572a3f(0x7fe)]===!![],'summary':_0x87abdc['summary']??null,'description':_0x87abdc['description']??null,'inputSchema':_0x1eb1bd?null:_0x87abdc['inputSchema']??null,'inputSchemaFn':_0x1eb1bd?()=>_0x87abdc[_0x572a3f(0x440)](_0x19cf1e):null,'defaults':_0x87abdc[_0x572a3f(0x37e)]??null,'notes':Array[_0x572a3f(0x888)](_0x87abdc['notes'])?_0x87abdc[_0x572a3f(0x49b)]:[],'links':Array[_0x572a3f(0x888)](_0x87abdc[_0x572a3f(0x6ea)])?_0x87abdc[_0x572a3f(0x6ea)]:[],'build':(_0x62542f,_0x1e094b)=>_0x87abdc[_0x572a3f(0x1cd)](_0x62542f??{},{'okdb':_0x19cf1e,'envName':_0x1e094b??null})}],![]);}['listTemplates'](_0x38df8c){const _0x46fac4=_0x5ecc04;return this['_n'](_0x46fac4(0x591),[_0x38df8c??null],![]);}['getTemplate'](_0x63cca){const _0x2121c3=_0x5ecc04;return this['_n'](_0x2121c3(0x816),[_0x63cca],![]);}['previewTemplate'](_0x2150e2,_0x1d953a,_0x3f18b9){const _0x489a50=_0x5ecc04;return this['_n']('previewTemplate',[_0x2150e2,_0x1d953a,_0x3f18b9??this[_0x489a50(0x849)]],![]);}[_0x5ecc04(0x445)](){const _0x15a8cb=_0x5ecc04;return this['_n'](_0x15a8cb(0x445),[],![]);}async[_0x5ecc04(0x77b)](){const _0x2f388a=_0x5ecc04;return this[_0x2f388a(0x519)](_0x2f388a(0x77b),[]);}async[_0x5ecc04(0x6bf)](){const _0x43fdab=_0x5ecc04;return this['_nm'](_0x43fdab(0x6bf),[]);}async['createEngine'](_0x466bdd,_0x3d4d95,_0x38fa5b={},_0x3ee13c={},_0x2f3836={}){const _0x487dfe=_0x5ecc04;return this[_0x487dfe(0x74c)](await this[_0x487dfe(0x519)](_0x487dfe(0x4b9),[_0x466bdd,_0x3d4d95,_0x38fa5b,_0x3ee13c,_0x2f3836]));}async[_0x5ecc04(0x4ac)](_0x19d50a,_0x3d9031,_0x568977={},_0x2e54f6={},_0x174323={}){const _0x277211=_0x5ecc04;return this[_0x277211(0x74c)](await this[_0x277211(0x519)](_0x277211(0x4ac),[_0x19d50a,_0x3d9031,_0x568977,_0x2e54f6,_0x174323]));}['getEngine'](_0xdc7817,_0x11579d){const _0x470ece=_0x5ecc04;return this[_0x470ece(0x74c)](this['_n'](_0x470ece(0x4ea),[_0xdc7817,_0x11579d],![]));}['getRunningEngine'](_0x44c08c,_0x184d0e){const _0x23dd04=_0x5ecc04;return this[_0x23dd04(0x74c)](this['_n'](_0x23dd04(0x821),[_0x44c08c,_0x184d0e],![]));}['list'](_0x626cd1){const _0x2d845a=_0x5ecc04;return this['_n'](_0x2d845a(0x328),[_0x626cd1??null],![])[_0x2d845a(0x642)](_0x1cde67=>this[_0x2d845a(0x74c)](_0x1cde67));}async['restart'](_0x3dccd5,_0x4b7672){const _0x1245cd=_0x5ecc04;return this[_0x1245cd(0x74c)](await this['_nm'](_0x1245cd(0x7b2),[_0x3dccd5,_0x4b7672]));}async['uninstallEngine'](_0x41cd07,_0x8bb2b3){const _0x5bd468=_0x5ecc04;return this['_handles'][_0x5bd468(0x46b)](_0x41cd07+':'+_0x8bb2b3),this['_nm'](_0x5bd468(0x851),[_0x41cd07,_0x8bb2b3]);}async[_0x5ecc04(0x5da)](_0x148501){const _0x40c2f0=_0x5ecc04;return this[_0x40c2f0(0x519)]('startNewEnginesFromSync',[_0x148501]);}async[_0x5ecc04(0x564)](){const _0x2cbd04=_0x5ecc04;return this[_0x2cbd04(0x519)](_0x2cbd04(0x564),[]);}}function _0x5f48bf(_0x4f84f2){const _0x3a4900=_0x5ecc04,_0x41cbef=new Map();return{'has':_0x540dde=>_0x41cbef[_0x3a4900(0x396)](_0x540dde)||_0x4f84f2[_0x3a4900(0x82e)][_0x3a4900(0x5a1)](_0x3a4900(0x2af),null,_0x3a4900(0x5cc),[_0x540dde],![]),'get':_0x1fcad5=>_0x41cbef[_0x3a4900(0x292)](_0x1fcad5),'set':()=>{const _0x5f1b28=_0x3a4900;throw new _0x379114(_0x5f1b28(0x4d0),_0x5f1b28(0x290));},'_set':(_0x340029,_0x106635)=>_0x41cbef[_0x3a4900(0x204)](_0x340029,_0x106635),'keys':()=>_0x41cbef[_0x3a4900(0x607)](),'entries':()=>_0x41cbef['entries'](),'values':()=>_0x41cbef[_0x3a4900(0x42a)](),get 'size'(){const _0x28d9fd=_0x3a4900;return _0x41cbef[_0x28d9fd(0x4ff)];},[Symbol[_0x3a4900(0x6a7)]]:()=>_0x41cbef[Symbol[_0x3a4900(0x6a7)]]()};}class _0x202e57{constructor(_0x414fad,_0x37aec6=null){this['okdb']=_0x414fad,this['envName']=_0x37aec6;}['_n'](_0x4a08b4,_0x1ffd6d,_0x29dca1=!![]){const _0x237e84=_0x5ecc04;return this['okdb'][_0x237e84(0x5a1)](_0x237e84(0x4d2),this['envName'],_0x4a08b4,_0x1ffd6d,_0x29dca1);}[_0x5ecc04(0x519)](_0x40a95e,_0x2a3440){const _0x3b90b1=_0x5ecc04;return this[_0x3b90b1(0x82e)][_0x3b90b1(0x517)](_0x3b90b1(0x4d2),this[_0x3b90b1(0x849)],_0x40a95e,_0x2a3440,!![]);}get[_0x5ecc04(0x6f1)](){const _0x1a25cf=_0x5ecc04;return this[_0x1a25cf(0x849)]===null;}async[_0x5ecc04(0x50d)](_0x5af2d4){const _0x93e6=_0x5ecc04;return this['_n'](_0x93e6(0x50d),[_0x5af2d4]);}async['get'](_0x5c05dd,_0x2f746f){const _0x5457bc=_0x5ecc04;return this['_n'](_0x5457bc(0x292),[_0x5c05dd,_0x2f746f??null],![]);}async[_0x5ecc04(0x33b)](_0x3a42f9,_0xcbd2b6){const _0x5c8f9d=_0x5ecc04;return this['_n'](_0x5c8f9d(0x33b),[_0x3a42f9,_0xcbd2b6??null],![]);}async['list'](_0x12c570){const _0x35051f=_0x5ecc04;return this['_n'](_0x35051f(0x328),[_0x12c570??null],![]);}async[_0x5ecc04(0x483)](_0x1586b8={}){const _0xe057=_0x5ecc04;return this['_n'](_0xe057(0x483),[_0x1586b8?.[_0xe057(0x849)]??null],![]);}['validate'](_0x130493,_0x5b5129){const _0x55106c=_0x5ecc04;return this['_n'](_0x55106c(0x5a0),[_0x130493,_0x5b5129??null],![]);}async[_0x5ecc04(0x1c2)](_0x3d3392){const _0x215013=_0x5ecc04;return this[_0x215013(0x519)](_0x215013(0x1c2),[_0x3d3392]);}async[_0x5ecc04(0x739)](_0x27d081,_0x27b356){const _0x322510=_0x5ecc04;return this[_0x322510(0x519)](_0x322510(0x739),[_0x27d081,_0x27b356]);}async[_0x5ecc04(0x6bf)](_0x180b03){return this['_nm']('stop',[_0x180b03]);}async[_0x5ecc04(0x2a4)](_0xd19311){const _0x3a6436=_0x5ecc04;if(!_0xd19311||typeof _0xd19311!==_0x3a6436(0x7f6)||!_0xd19311[_0x3a6436(0x686)]||!_0xd19311[_0x3a6436(0x2af)])return _0xd19311;for(let _0xe6bb2f=0x0;_0xe6bb2f<0x3;_0xe6bb2f++)await new Promise(_0x5e89ed=>setImmediate(_0x5e89ed));try{const _0x5828c4=this[_0x3a6436(0x849)]!==null?await this['get'](_0xd19311[_0x3a6436(0x686)]):_0xd19311['env']?await this['get'](_0xd19311[_0x3a6436(0x4f8)],_0xd19311[_0x3a6436(0x686)]):null;return _0x5828c4||_0xd19311;}catch{return _0xd19311;}}async[_0x5ecc04(0x77b)](_0x50ba35){const _0x44a08f=_0x5ecc04;return this['_settled'](await this[_0x44a08f(0x519)](_0x44a08f(0x77b),[_0x50ba35]));}async['restart'](_0x5039c8){const _0x3184f0=_0x5ecc04;return this[_0x3184f0(0x2a4)](await this[_0x3184f0(0x519)]('restart',[_0x5039c8]));}async[_0x5ecc04(0x774)](_0xde665c){const _0x2feb11=_0x5ecc04;return this[_0x2feb11(0x519)](_0x2feb11(0x774),[_0xde665c]);}async[_0x5ecc04(0x47d)](_0x322416,_0x1e41ba,_0x2e9ac2){const _0x1555c2=_0x5ecc04;return this[_0x1555c2(0x519)](_0x1555c2(0x47d),[_0x322416,_0x1e41ba,_0x2e9ac2]);}async['remove'](_0x2e168c){const _0x3dbe4d=_0x5ecc04;return this[_0x3dbe4d(0x519)](_0x3dbe4d(0x28d),[_0x2e168c]);}async[_0x5ecc04(0x261)](){const _0x467a52=_0x5ecc04;return this['_nm'](_0x467a52(0x261),[]);}async['bootSyncedPipelines'](){const _0x37ae6b=_0x5ecc04;return this[_0x37ae6b(0x519)](_0x37ae6b(0x34c),[]);}[_0x5ecc04(0x7cb)](_0x1d6875,_0x569b35){return this['_n']('findOwner',[_0x1d6875,_0x569b35],![]);}}return engines={'OKDBEngines':_0x42c456,'OKDBPipelines':_0x202e57,'OKDBEngineHandle':_0x368378},engines;}var functions,hasRequiredFunctions;function requireFunctions(){const _0x3f97d1=_0xef081e;if(hasRequiredFunctions)return functions;hasRequiredFunctions=0x1;const {optionsArg:_0x5a4d92}=requireErrors(),_0x17a078=Number(process.env.OKDB_FN_POLL_MS)||0x14;class _0x516fa5{constructor(_0x30827f,_0x4ff8dc=null){const _0x2a89fe=_0x2fc2;this[_0x2a89fe(0x82e)]=_0x30827f,this[_0x2a89fe(0x849)]=_0x4ff8dc??'~system';}get[_0x3f97d1(0x4f8)](){const _0x337b82=_0x3f97d1;return this[_0x337b82(0x82e)][_0x337b82(0x75a)][_0x337b82(0x292)](this[_0x337b82(0x849)])??null;}['_n'](_0x590801,_0xe9d420=[],_0x39244f=!![]){const _0x2b4886=_0x3f97d1;try{return this[_0x2b4886(0x82e)][_0x2b4886(0x5a1)](_0x2b4886(0x1f1),this['envName'],_0x590801,_0xe9d420,_0x39244f);}catch(_0x1fd4dc){throw _0x2515a4(_0x1fd4dc);}}async[_0x3f97d1(0x519)](_0x27aa5e,_0x1b4ccd=[]){const _0xc673d3=_0x3f97d1;try{return await this[_0xc673d3(0x82e)][_0xc673d3(0x517)](_0xc673d3(0x1f1),this['envName'],_0x27aa5e,_0x1b4ccd,!![]);}catch(_0x3f4b65){throw _0x2515a4(_0x3f4b65);}}async[_0x3f97d1(0x328)](){return this['_n']('list',[],![]);}async[_0x3f97d1(0x292)](_0x51959c){const _0x51764a=_0x3f97d1;return this['_n'](_0x51764a(0x292),[_0x51959c],![]);}async['create'](_0x6986a7){return this['_n']('create',[_0x6986a7]);}async[_0x3f97d1(0x739)](_0x46942a,_0xe8c451={}){const _0x5f0fb6=_0x3f97d1;return this['_n'](_0x5f0fb6(0x739),[_0x46942a,_0xe8c451]);}async[_0x3f97d1(0x28d)](_0x11e20a){return this['_n']('remove',[_0x11e20a]);}async[_0x3f97d1(0x4b4)](_0x259df2){const {functionName:functionName=null}=_0x5a4d92(_0x259df2);return this['_n']('listRuns',[{'functionName':functionName}],![]);}async[_0x3f97d1(0x75f)](_0x5e4e52){const _0x2f3713=_0x3f97d1;return this['_n'](_0x2f3713(0x75f),[_0x5e4e52],![]);}async[_0x3f97d1(0x627)](_0x2c036c){const _0x145f87=_0x3f97d1;return _0x2c036c=_0x5a4d92(_0x2c036c,_0x145f87(0x2be)),this['_n']('recordRun',[_0x2c036c]);}async[_0x3f97d1(0x2be)](_0x4b5ee1,_0x4261cf=null,_0x5377c1={}){const _0x486135=_0x3f97d1,_0x35e6c7={..._0x5377c1},_0x5400bb=_0x35e6c7['signal'];if(_0x5400bb)_0x35e6c7[_0x486135(0x3ad)]=!!_0x5400bb[_0x486135(0x3ad)];delete _0x35e6c7[_0x486135(0x79c)];const _0xf4b1ca=await this[_0x486135(0x519)]('runStart',[_0x4b5ee1,_0x4261cf,_0x35e6c7]),_0x1a53a5=this[_0x486135(0x82e)],_0x40932e=()=>_0x1a53a5['_pumper']['wake']();if(_0x5400bb&&typeof _0x5400bb[_0x486135(0x4ed)]===_0x486135(0x484))_0x5400bb[_0x486135(0x4ed)](_0x486135(0x29f),_0x40932e,{'once':!![]});let _0x1365d2=![];try{for(;;){const _0x5a2929=_0x1a53a5[_0x486135(0x82c)][_0x486135(0x7eb)](_0x17a078);let _0x565bd5;try{_0x565bd5=await _0x1a53a5['_callMacro']('functions',this[_0x486135(0x849)],_0x486135(0x40c),[_0xf4b1ca,!!_0x5400bb?.[_0x486135(0x3ad)]],![],![]);}catch(_0x3bb83d){_0x1365d2=!![];throw _0x2515a4(_0x3bb83d);}if(!_0x565bd5||_0x565bd5['$pending']!==!![])return _0x1365d2=!![],_0x1a53a5[_0x486135(0x82c)]['wake'](),_0x565bd5;if(_0x565bd5[_0x486135(0x63f)])_0x1a53a5[_0x486135(0x82c)][_0x486135(0x2ca)]();await _0x5a2929;}}finally{if(_0x5400bb&&typeof _0x5400bb[_0x486135(0x689)]===_0x486135(0x484))_0x5400bb[_0x486135(0x689)]('abort',_0x40932e);if(!_0x1365d2)try{_0x1a53a5[_0x486135(0x5a1)](_0x486135(0x1f1),this[_0x486135(0x849)],_0x486135(0x53f),[_0xf4b1ca],![]);}catch{}}}async[_0x3f97d1(0x3df)](_0x80a5dd={},_0x55bef9=null,_0x314dc2={}){const _0x469cc4=_0x3f97d1;return this['_nm'](_0x469cc4(0x3df),[_0x80a5dd,_0x55bef9,_0x314dc2]);}async[_0x3f97d1(0x6bf)](){}}function _0x2515a4(_0x1a2af5){const _0x4cfeb2=_0x3f97d1;if(_0x1a2af5&&_0x1a2af5['details']&&_0x1a2af5['details'][_0x4cfeb2(0x8dd)])_0x1a2af5[_0x4cfeb2(0x566)]=_0x1a2af5['details']['runRecord'];return _0x1a2af5;}return functions={'OKDBFunctions':_0x516fa5},functions;}var processor={'exports':{}},lock,hasRequiredLock;function requireLock(){const _0x45d8b7=_0xef081e;if(hasRequiredLock)return lock;hasRequiredLock=0x1;const {optionsArg:_0x4123ab}=requireErrors();class _0x37ccf9{constructor(_0x2168a4,_0x54d2d4){const _0x5f11f4=_0x2fc2;this[_0x5f11f4(0x887)]=_0x2168a4,this[_0x5f11f4(0x347)]=_0x54d2d4;}['_n'](_0x24bba1,_0x34839f=[]){const _0x278408=_0x2fc2;return this['_lock']['_n'](_0x24bba1,[this[_0x278408(0x347)],..._0x34839f]);}[_0x45d8b7(0x4b6)](){return this['_n']('isHeld');}get[_0x45d8b7(0x79a)](){return this['_n']('acquiredAt');}[_0x45d8b7(0x52a)](){return this['_n']('holder');}['extend'](_0x188e21){const _0x2abe55=_0x45d8b7;return this['_n'](_0x2abe55(0x2b9),[_0x188e21]);}async[_0x45d8b7(0x491)](){return this['_n']('release');}}class _0x231c76{constructor(_0x4be248,_0x5005c4,_0x5dfef7,_0x105678){const _0x59d525=_0x45d8b7,{ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}=_0x4123ab(_0x105678);this[_0x59d525(0x82e)]=_0x4be248,this[_0x59d525(0x535)]=_0x5dfef7,this[_0x59d525(0x347)]=_0x4be248[_0x59d525(0x5a1)](_0x59d525(0x47e),_0x5005c4,_0x59d525(0x6bb),[_0x5dfef7,ttlMs,heartbeatMs],![]),this[_0x59d525(0x3b1)]=_0x5005c4;}['_n'](_0x4e1e64,_0x1b5da8=[]){const _0x1cb13a=_0x45d8b7;return this[_0x1cb13a(0x82e)][_0x1cb13a(0x5a1)](_0x1cb13a(0x47e),this['_env'],_0x4e1e64,_0x1b5da8,![]);}[_0x45d8b7(0x306)](_0x1091fb){return this['_n']('key',[this['_id'],_0x1091fb]);}async[_0x45d8b7(0x7a9)](_0x264a9b,_0x2fa74e={},_0x5a8ddb={}){const _0x1ca7e0=_0x45d8b7,_0x4fa006=this['_n']('tryAcquire',[this['_id'],_0x264a9b,_0x2fa74e,_0x5a8ddb]);return{'acquired':_0x4fa006[_0x1ca7e0(0x831)],'handle':_0x4fa006['handle']==null?null:new _0x37ccf9(this,_0x4fa006[_0x1ca7e0(0x336)]),'current':_0x4fa006[_0x1ca7e0(0x776)]};}[_0x45d8b7(0x619)](_0x346523){const _0x432fc8=_0x45d8b7;return this['_n'](_0x432fc8(0x619),[this[_0x432fc8(0x347)],_0x346523]);}[_0x45d8b7(0x328)](){const _0x279dd4=_0x45d8b7;return this['_n'](_0x279dd4(0x328),[this['_id']]);}[_0x45d8b7(0x51c)](_0x109807){const _0x66446=_0x45d8b7;return this['_n']('signalWant',[this[_0x66446(0x347)],_0x109807]);}[_0x45d8b7(0x883)](_0xd7481b,_0x192fe8=0x3e8){const _0x497f1d=_0x45d8b7;return this['_n'](_0x497f1d(0x883),[this[_0x497f1d(0x347)],_0xd7481b,_0x192fe8]);}}return lock={'NativeLock':_0x231c76,'NativeLockHandle':_0x37ccf9},lock;}var hasRequiredProcessor;function requireProcessor(){const _0xa30e61=_0xef081e;if(hasRequiredProcessor)return processor[_0xa30e61(0x57d)];hasRequiredProcessor=0x1;const _0x22650c=requireBridge(),{RawDb:_0x7cc5d0}=requireRawdb(),{NativeLock:_0x5091f2}=requireLock();function _0x39cef6(_0x19f7bc){}class _0x3f5dc3{constructor(_0x45926e){const _0xa51375=_0xa30e61;this[_0xa51375(0x4f8)]=_0x45926e,this[_0xa51375(0x82e)]=_0x45926e;try{this['_n'](_0xa51375(0x6ce),[(_0x4f2ac6,_0x56221f)=>{const _0x12887e=_0xa51375,_0x4e6eb1=this[_0x12887e(0x82e)]['log'],_0x3656d5=_0x4e6eb1?.[_0x4f2ac6]??_0x4e6eb1?.[_0x12887e(0x1f9)];if(typeof _0x3656d5===_0x12887e(0x484))_0x3656d5[_0x12887e(0x62a)](_0x4e6eb1,_0x56221f);}],![]);}catch{}}['_n'](_0x1d1ec3,_0x454c05,_0x89d018=!![]){const _0x1bc951=_0xa30e61;return this['env'][_0x1bc951(0x82e)]['_call'](_0x1bc951(0x8a8),this[_0x1bc951(0x4f8)][_0x1bc951(0x686)],_0x1d1ec3,_0x454c05,_0x89d018);}['register'](_0x562dd3,_0x143bce={}){const _0x1fe3c0=_0xa30e61,_0x5750e7={..._0x143bce};if(typeof _0x5750e7[_0x1fe3c0(0x4cc)]==='function'&&_0x5750e7[_0x1fe3c0(0x796)]!=null)throw new Error(_0x1fe3c0(0x74a)+'Use\x20module:{path,export}\x20alone,\x20or\x20handler:\x27<name>\x27\x20for\x20a\x20built-in.');if(typeof _0x5750e7['handler']==='string'&&_0x5750e7[_0x1fe3c0(0x796)]!=null)throw new Error(_0x1fe3c0(0x352));if(_0x5750e7[_0x1fe3c0(0x796)]!=null){if(!_0x5750e7['module'][_0x1fe3c0(0x844)])throw new Error('processor:\x20module.path\x20is\x20required');const _0x491cca=_0x5750e7[_0x1fe3c0(0x796)][_0x1fe3c0(0x701)]??_0x5750e7[_0x1fe3c0(0x796)][_0x1fe3c0(0x398)]??_0x1fe3c0(0x4da),_0x3afc79=require['resolve'](_0x5750e7[_0x1fe3c0(0x796)][_0x1fe3c0(0x844)]),_0x168f6a=require(_0x3afc79),_0x395b1c=_0x168f6a[_0x491cca]??_0x168f6a['default']??_0x168f6a;if(typeof _0x395b1c!==_0x1fe3c0(0x484))throw new Error(_0x1fe3c0(0x46c)+_0x5750e7[_0x1fe3c0(0x796)][_0x1fe3c0(0x844)]+_0x1fe3c0(0x3e6)+_0x491cca+_0x1fe3c0(0x466));this[_0x1fe3c0(0x4f8)][_0x1fe3c0(0x82e)][_0x1fe3c0(0x72b)](_0x1fe3c0(0x8a8),_0x1fe3c0(0x29c),[_0x3afc79,_0x491cca,_0x395b1c]),_0x5750e7[_0x1fe3c0(0x796)]={'path':_0x3afc79,'export':_0x491cca};}if(_0x5750e7[_0x1fe3c0(0x214)]!=null){if(typeof _0x5750e7[_0x1fe3c0(0x214)]['module']!=='string')throw new Error(_0x1fe3c0(0x7da));const _0x32657a=require[_0x1fe3c0(0x1f3)](_0x5750e7[_0x1fe3c0(0x214)]['module']),_0x5d7494=require(_0x32657a),_0x135217=_0x5750e7[_0x1fe3c0(0x214)][_0x1fe3c0(0x398)],_0x365a30=_0x135217?_0x5d7494[_0x135217]:_0x5d7494[_0x1fe3c0(0x6ab)]??_0x5d7494;if(typeof _0x365a30===_0x1fe3c0(0x484)){const _0x116e54=_0x135217?_0x5750e7[_0x1fe3c0(0x214)][_0x1fe3c0(0x796)]+'#'+_0x135217:_0x5750e7[_0x1fe3c0(0x214)][_0x1fe3c0(0x796)];this[_0x1fe3c0(0x4f8)][_0x1fe3c0(0x82e)]['_staticCall'](_0x1fe3c0(0x8a8),'registerQuantum',[_0x116e54,_0x365a30]);}_0x5750e7[_0x1fe3c0(0x214)]={..._0x5750e7[_0x1fe3c0(0x214)]};}_0x5750e7[_0x1fe3c0(0x554)]!=null&&typeof _0x5750e7[_0x1fe3c0(0x554)]===_0x1fe3c0(0x7f6)&&(_0x5750e7[_0x1fe3c0(0x554)]={'$payload':_0x22650c[_0x1fe3c0(0x2d8)](_0x5750e7[_0x1fe3c0(0x554)],this[_0x1fe3c0(0x4f8)][_0x1fe3c0(0x82e)])});if(_0x5750e7[_0x1fe3c0(0x774)]!=null&&typeof _0x5750e7['rebuild']!==_0x1fe3c0(0x484))throw new Error(_0x1fe3c0(0x316));const _0x59879e=this['_n'](_0x1fe3c0(0x594),[_0x562dd3??null,_0x5750e7]);return this['_stopFor'](_0x59879e['id'],_0x59879e[_0x1fe3c0(0x7c8)]);}[_0xa30e61(0x2df)](_0x4ce03b,_0x5dd7fa){const _0x1417a4=_0xa30e61,_0x36fb63=this,_0x332efb=async()=>{const _0x1b4254=_0x2fc2;_0x36fb63['_n'](_0x1b4254(0x2a8),[_0x4ce03b]);};return _0x332efb['id']=_0x4ce03b,_0x332efb['cursorKey']=_0x5dd7fa,_0x332efb['durableClock']=()=>_0x5dd7fa?_0x36fb63['_n']('handleDurableClock',[_0x4ce03b],![]):0x0,_0x332efb[_0x1417a4(0x442)]=()=>_0x36fb63[_0x1417a4(0x292)](_0x4ce03b),_0x332efb[_0x1417a4(0x1d2)]=_0x332efb[_0x1417a4(0x442)],_0x332efb[_0x1417a4(0x412)]=()=>_0x36fb63[_0x1417a4(0x412)](_0x4ce03b),_0x332efb[_0x1417a4(0x5e2)]=()=>_0x36fb63[_0x1417a4(0x5e2)](_0x4ce03b),_0x332efb[_0x1417a4(0x6ee)]=()=>_0x36fb63[_0x1417a4(0x6ee)](_0x4ce03b),_0x332efb[_0x1417a4(0x800)]=()=>_0x36fb63[_0x1417a4(0x800)](_0x4ce03b),_0x332efb['awaitIdle']=_0x39e7ae=>_0x36fb63[_0x1417a4(0x7e7)](_0x4ce03b,_0x39e7ae),_0x332efb;}get['_stops'](){const _0x293054=_0xa30e61;try{return this['_n'](_0x293054(0x328),[],![])[_0x293054(0x642)](_0x2adae6=>({'id':_0x2adae6['id']}));}catch{return[];}}async['pauseAllAndDrain'](_0x4535f2){const _0x466f7c=_0xa30e61;return new Set(this['_n'](_0x466f7c(0x7c1),[]));}[_0xa30e61(0x6d8)](_0x2646d4){const _0x36eef5=_0xa30e61;return this['_n'](_0x36eef5(0x6d8),[[..._0x2646d4??[]]]);}get[_0xa30e61(0x35d)](){const _0x343aae=_0xa30e61;return new Set(this['_n'](_0x343aae(0x328),[],![])[_0x343aae(0x877)](_0x18df30=>_0x18df30[_0x343aae(0x490)]==null)['map'](_0x353f87=>_0x353f87['id']));}['_ensureDbs'](){}get['_lock'](){const _0x496265=_0xa30e61;if(!this[_0x496265(0x540)]){const _0x1571f3=new _0x5091f2(this[_0x496265(0x4f8)][_0x496265(0x82e)],this[_0x496265(0x4f8)][_0x496265(0x686)],'proc'),_0x2f635e=this['env'];_0x1571f3['_db']=()=>new _0x7cc5d0(_0x2f635e,_0x496265(0x545)),this[_0x496265(0x540)]=_0x1571f3;}return this[_0x496265(0x540)];}[_0xa30e61(0x861)](_0x383c04,_0xa54e23){const _0x77f141=_0xa30e61;return this['_n'](_0x77f141(0x76a),[typeof _0x383c04===_0x77f141(0x43c)?_0x383c04:_0x383c04['id'],_0xa54e23?.['message']??String(_0xa54e23??'')]);}get[_0xa30e61(0x42b)](){const _0x15a6b5=_0xa30e61;return this[_0x15a6b5(0x8d8)]||(this['__stateDb']=new _0x7cc5d0(this[_0x15a6b5(0x4f8)],_0x15a6b5(0x1c4)));}get[_0xa30e61(0x40b)](){const _0x3e02b0=_0xa30e61,_0x367c8d=this,_0x483e0d=_0xfd2d9a=>{const _0x552048=_0x2fc2,_0x7c9245=()=>_0x367c8d['_n'](_0x552048(0x6ad),[_0xfd2d9a],![]);if(!_0x7c9245())return undefined;const _0x31a060=_0xb9022=>()=>_0x7c9245()?.[_0xb9022],_0x5f1a52={'id':_0xfd2d9a},_0x4b6b0a=(_0x1c3730,_0x849b2,_0x2a232a)=>Object[_0x552048(0x43a)](_0x5f1a52,_0x1c3730,{'get':_0x849b2,'set':_0x2a232a,'enumerable':!![],'configurable':!![]});return _0x4b6b0a(_0x552048(0x480),_0x31a060(_0x552048(0x480))),_0x4b6b0a(_0x552048(0x8d6),_0x31a060(_0x552048(0x8d6))),_0x4b6b0a('paused',_0x31a060(_0x552048(0x283))),_0x4b6b0a(_0x552048(0x3fd),_0x31a060(_0x552048(0x3fd)),_0x2c289c=>_0x367c8d['_n']('setLastClock',[_0xfd2d9a,_0x2c289c])),_0x4b6b0a(_0x552048(0x7c8),_0x31a060(_0x552048(0x7c8))),_0x4b6b0a(_0x552048(0x2f4),_0x31a060('claimGated'),_0x34192e=>_0x367c8d['_n'](_0x552048(0x5e5),[_0xfd2d9a,!!_0x34192e])),_0x4b6b0a(_0x552048(0x3db),_0x31a060('handlerName')),_0x4b6b0a('flushQuantum',_0x31a060(_0x552048(0x288))),_0x4b6b0a(_0x552048(0x43f),_0x31a060(_0x552048(0x43f))),_0x4b6b0a(_0x552048(0x3dc),_0x31a060(_0x552048(0x5e6)),_0x474306=>_0x367c8d['_n']('setModeApplied',[_0xfd2d9a,_0x474306])),_0x4b6b0a(_0x552048(0x5c3),()=>_0x367c8d[_0x552048(0x292)](_0xfd2d9a)?.['meta']),_0x4b6b0a(_0x552048(0x732),()=>_0x7c9245()?.['lockHeld']?{'isHeld':()=>!!_0x7c9245()?.[_0x552048(0x837)]}:null),_0x4b6b0a(_0x552048(0x32a),()=>_0x7c9245()?.['pokeHandler']?()=>{}:null),_0x4b6b0a(_0x552048(0x8ae),()=>_0x7c9245()?.['intervalTimer']?{}:null),_0x4b6b0a(_0x552048(0x268),()=>_0x7c9245()?.[_0x552048(0x40f)]?{}:null),_0x5f1a52;},_0x510fd2=()=>_0x367c8d['_n'](_0x3e02b0(0x328),[],![])[_0x3e02b0(0x642)](_0x27586b=>_0x27586b['id']);return{'get':_0x57be42=>_0x483e0d(_0x57be42),'has':_0x59ff4a=>_0x510fd2()['includes'](_0x59ff4a),get 'size'(){return _0x510fd2()['length'];},'keys':()=>_0x510fd2()[Symbol[_0x3e02b0(0x6a7)]](),'values':()=>_0x510fd2()[_0x3e02b0(0x642)](_0x483e0d)[Symbol[_0x3e02b0(0x6a7)]](),'entries':()=>_0x510fd2()[_0x3e02b0(0x642)](_0x29364d=>[_0x29364d,_0x483e0d(_0x29364d)])[Symbol[_0x3e02b0(0x6a7)]](),[Symbol[_0x3e02b0(0x6a7)]]:()=>_0x510fd2()[_0x3e02b0(0x642)](_0x1d6c0b=>[_0x1d6c0b,_0x483e0d(_0x1d6c0b)])[Symbol['iterator']](),'forEach':_0x13f5da=>_0x510fd2()[_0x3e02b0(0x8de)](_0x508db7=>_0x13f5da(_0x483e0d(_0x508db7),_0x508db7))};}async[_0xa30e61(0x261)](){const _0xcd4b48=_0xa30e61;return this['_n'](_0xcd4b48(0x261),[]);}['list'](){const _0xcd4c7e=_0xa30e61,_0x4825ae=this['_n'](_0xcd4c7e(0x328),[],![]);if(!this[_0xcd4c7e(0x4f8)]['name']['startsWith']('~'))try{const _0x5d5010=this[_0xcd4c7e(0x4f8)][_0xcd4c7e(0x82e)][_0xcd4c7e(0x5c3)];for(const _0x1e349c of _0x5d5010[_0xcd4c7e(0x416)](this[_0xcd4c7e(0x4f8)]['name'])){for(const _0x40a78f of _0x5d5010[_0xcd4c7e(0x59e)](_0x1e349c,this['env'][_0xcd4c7e(0x686)])){const _0x25ddcf=_0xcd4c7e(0x6c5)+_0x1e349c+':'+_0x40a78f;_0x4825ae[_0xcd4c7e(0x27f)]({'id':_0x25ddcf,'type':_0x1e349c,'mode':_0xcd4c7e(0x8e9),'state':_0xcd4c7e(0x475),'paused':![],'lag':0x0,'cursorKey':_0x25ddcf,'meta':{'name':_0x25ddcf}});}}}catch{}return _0x4825ae;}[_0xa30e61(0x8c4)](){return this['_n']('tierList',[],![]);}[_0xa30e61(0x696)](){const _0x182950=_0xa30e61;return this['_n'](_0x182950(0x696),[],![]);}['durableCursorFloor'](){return this['_n']('durableCursorFloor',[],![]);}[_0xa30e61(0x292)](_0x559b49){const _0x5bdfba=_0xa30e61;return this['_n'](_0x5bdfba(0x292),[_0x559b49],![]);}[_0xa30e61(0x4a8)](_0xdab1a5){return this['get'](typeof _0xdab1a5==='string'?_0xdab1a5:_0xdab1a5['id']);}['getCursor'](_0x1e06d7){const _0x2483e3=_0xa30e61;return this['_n'](_0x2483e3(0x692),[_0x1e06d7],![]);}[_0xa30e61(0x6d2)](_0x19ffdc){const _0x28fb3b=_0xa30e61;return this['_n'](_0x28fb3b(0x6d2),[_0x19ffdc]);}[_0xa30e61(0x4cb)](_0x24ea0e){const _0x52003d=_0xa30e61;return this['_n'](_0x52003d(0x4cb),[_0x24ea0e]);}[_0xa30e61(0x741)](_0x2b34ad){const _0x1a7590=_0xa30e61;return this['_n'](_0x1a7590(0x741),[_0x2b34ad],![]);}['setCursor'](_0x53e0ff,_0x19a91a){const _0x45afda=_0xa30e61;return this['_n'](_0x45afda(0x698),[_0x53e0ff,_0x19a91a]);}async['awaitIdle'](_0x2e0912,_0x4567b1){const _0x38f34c=_0xa30e61;return this['_n'](_0x38f34c(0x7e7),[_0x2e0912,_0x4567b1??0x7530]);}['pause'](_0x460ffe){return this['_n']('pause',[_0x460ffe]);}['resume'](_0x2a6ad0){const _0x2755d8=_0xa30e61;return this['_n'](_0x2755d8(0x5e2),[_0x2a6ad0]);}async[_0xa30e61(0x506)](_0x46da1d){const _0x8d2cfa=_0xa30e61;return this['_n'](_0x8d2cfa(0x506),[_0x46da1d]);}[_0xa30e61(0x6ee)](_0x5f1e0a){return this['_n']('kick',[_0x5f1e0a]);}[_0xa30e61(0x800)](_0x2d7e70){const _0x351488=_0xa30e61;return this['_n'](_0x351488(0x800),[_0x2d7e70]);}['restart'](_0x4dc5ed,_0x45b19d={}){const _0x2c6fbd=_0xa30e61;return this['_n'](_0x2c6fbd(0x7b2),[_0x4dc5ed,_0x45b19d]);}async[_0xa30e61(0x89b)](_0x19daaf,_0x5d33c0,_0x480122){const _0x5f050b=_0xa30e61,[_0x3b17c,_0x2022a8]=this['_n'](_0x5f050b(0x89b),[_0x19daaf,_0x5d33c0,_0x480122]);return{'version':_0x3b17c,'flipClock':_0x2022a8};}async['snapshotScan'](_0x1fed34,_0xa34d30,_0x28d5ef={}){const _0x5ddca2=_0xa30e61;return this['_n'](_0x5ddca2(0x652),[_0x1fed34,_0xa34d30,_0x28d5ef]);}}_0x3f5dc3[_0xa30e61(0x85d)]=function _0x568d19(_0x5f3d27,_0x3abe2b){const _0x68b28b=_0xa30e61;if(typeof _0x5f3d27!==_0x68b28b(0x43c)||!_0x5f3d27)throw new Error(_0x68b28b(0x3fc));if(typeof _0x3abe2b!=='function')throw new Error('registerHandler:\x20fn\x20must\x20be\x20a\x20function');_0x1df4f8(_0x68b28b(0x8a8),_0x68b28b(0x85d),[_0x5f3d27,_0x3abe2b]);},_0x3f5dc3[_0xa30e61(0x319)]=function _0x38139f(_0x358047,_0x398033){const _0x38717b=_0xa30e61;if(typeof _0x358047!=='string'||!_0x358047)throw new Error(_0x38717b(0x2ec));if(typeof _0x398033!==_0x38717b(0x484))throw new Error(_0x38717b(0x3b2));let _0x12134f=null;_0x1df4f8(_0x38717b(0x8a8),_0x38717b(0x319),[_0x358047,(_0x16b8e7,_0x534f18)=>{if(!_0x12134f)_0x12134f=_0x398033();return _0x12134f(_0x16b8e7,_0x534f18);}]);},_0x3f5dc3[_0xa30e61(0x6e0)]=_0x5456e0=>/closed|not open|released/i[_0xa30e61(0x87f)](String(_0x5456e0)),_0x3f5dc3[_0xa30e61(0x4a0)]=![];function _0x1df4f8(_0xf48dc4,_0x118677,_0xd69a1b){const {staticCall:_0x2783fa}=requireLib();return _0x2783fa(_0xf48dc4,_0x118677,_0xd69a1b);}return processor[_0xa30e61(0x57d)]=_0x3f5dc3,processor[_0xa30e61(0x57d)][_0xa30e61(0x802)]=_0x3f5dc3,processor['exports'][_0xa30e61(0x73e)]=_0x39cef6,processor['exports'];}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x7617b4=_0xef081e;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x46037e={'PUT':_0x7617b4(0x1dd),'REMOVE':'remove','INDEX_DROP':'dropIndex','INDEX_REGISTER':_0x7617b4(0x488),'INDEX_RESET':_0x7617b4(0x8ce),'TYPE_REGISTER':_0x7617b4(0x1ba),'TYPE_DROP':_0x7617b4(0x3bf),'FTS_REGISTER':_0x7617b4(0x78f),'FTS_DROP':'dropFts','FTS_RESET':'resetFts','SCHEMA_SET':_0x7617b4(0x63e),'SCHEMA_DROP':_0x7617b4(0x42d),'TTL_SET':_0x7617b4(0x3e8),'TTL_CLEAR':_0x7617b4(0x427)},_0x1cfaef={'SYSTEM_READY':_0x7617b4(0x4a2),'FIELD_RESOLVER_REGISTERED':_0x7617b4(0x683),'SYSTEM_STOPPED':_0x7617b4(0x516),'SYSTEM_CLOCK_CHANGE':_0x7617b4(0x88f),'SYSTEM_POKE':'system:poke','SYSTEM_DRAIN':'system:drain','SYSTEM_TYPE_DROP':_0x7617b4(0x356),'SYSTEM_PROC':_0x7617b4(0x252),'SYSTEM_BUS_STATE_CHANGE':_0x7617b4(0x1e5),'ITEM_CREATE':'item:create','ITEM_UPDATE':'item:update','ITEM_REMOVE':_0x7617b4(0x702),'ITEM_PENDING':'item:pending','INDEX_RESET':_0x7617b4(0x280),'INDEX_READY':'index:ready','INDEX_PROGRESS':_0x7617b4(0x73a),'VIEW_PROGRESS':_0x7617b4(0x74f),'INDEX_DROP':'index:drop','INDEX_REGISTERED':'index:registered','FTS_REGISTERED':_0x7617b4(0x82b),'FTS_DROP':'fts:drop','FTS_RESET':_0x7617b4(0x2c7),'SCHEMA_SET':_0x7617b4(0x855),'SCHEMA_DROP':_0x7617b4(0x3b0),'UNIQUE_VIOLATION':_0x7617b4(0x3fe),'UNIQUE_VIOLATION_RESOLVED':_0x7617b4(0x8f4),'REF_VIOLATION':_0x7617b4(0x370),'REF_VIOLATION_RESOLVED':_0x7617b4(0x34e),'SYNC_APPLY':_0x7617b4(0x74d),'TXN_START':_0x7617b4(0x515),'TXN_END':'txn:end','TXN_ROLLBACK':_0x7617b4(0x7e3),'TYPE_REGISTERED':'type:registered','TYPE_DROP':_0x7617b4(0x3a9),'ENV_OPENED':_0x7617b4(0x724),'ENV_REMOVED':_0x7617b4(0x5cb),'SYSTEM_ENV_RELEASE':_0x7617b4(0x808),'TTL_EXPIRED':_0x7617b4(0x6a6),'TTL_SET':_0x7617b4(0x2f2),'TTL_CLEAR':_0x7617b4(0x8b8),'LICENSE_INVALID':_0x7617b4(0x36e),'LICENSE_ADDED':'license:added','LICENSE_ACTIVATED':_0x7617b4(0x8ee),'LICENSE_REMOVED':_0x7617b4(0x8b9)},_0x3a9cae={'CREATING':_0x7617b4(0x68d),'RESETTING':'resetting','READY':_0x7617b4(0x8c9),'DROPPING':_0x7617b4(0x8cb),'WAITING':'waiting','ERROR':_0x7617b4(0x860)},_0x329c90={'CREATED':'created','STARTING':_0x7617b4(0x270),'STARTED':_0x7617b4(0x3ca),'STOPPING':_0x7617b4(0x62e),'STOPPED':_0x7617b4(0x6d0)},_0x6bb6a1={'CREATING':'creating','READY':'ready','HALTED':'halted','STOPPED':_0x7617b4(0x6d0),'RESETTING':_0x7617b4(0x39c)},_0x1895b4=Object[_0x7617b4(0x4e6)]({'POKE':_0x7617b4(0x1f6),'DRAIN':_0x7617b4(0x41b),'TYPE_DROP':_0x7617b4(0x30d),'PROC':_0x7617b4(0x7b0),'ENV_RELEASE':_0x7617b4(0x740)});return okdbEnums={'BUS_EVENTS':_0x1895b4,'CHANGE_ACTIONS':_0x46037e,'EVENTS':_0x1cfaef,'INDEX_STATE':_0x3a9cae,'OKDB_STATE':_0x329c90,'VIEW_STATE':_0x6bb6a1},okdbEnums;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x1791e1=_0xef081e;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0xe53f59={'SKIP':Symbol[_0x1791e1(0x7df)](_0x1791e1(0x8d9))},{OKDBError:_0xa0b63a}=requireOkdbError(),_0xf2fc92={'value':null,'done':!![]};class _0x208c11{constructor(_0x1e4296){const _0x1bd5c7=_0x1791e1;this[_0x1bd5c7(0x3c4)]=_0x1e4296;}get['DONE'](){return _0xf2fc92;}[Symbol[_0x1791e1(0x6a7)]](){const _0x536265=_0x1791e1;return this[_0x536265(0x3c4)]();}[_0x1791e1(0x642)](_0x465ce5){const _0x24f443=this;return new _0x208c11(()=>{const _0x342a5c=_0x2fc2,_0x5f1793=_0x24f443[Symbol[_0x342a5c(0x6a7)]]();return{'next'(){const _0xcd1709=_0x342a5c;for(;;){const _0x171893=_0x5f1793[_0xcd1709(0x8a6)]();if(_0x171893[_0xcd1709(0x577)])return{'done':!![],'value':undefined};const _0x3aae84=_0x465ce5(_0x171893[_0xcd1709(0x744)]);if(_0x3aae84===_0xe53f59[_0xcd1709(0x799)])continue;if(_0x3aae84===_0xf2fc92)return _0x5f1793[_0xcd1709(0x2a7)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x3aae84};}},'return'(){const _0x1c0e07=_0x342a5c;return _0x5f1793[_0x1c0e07(0x2a7)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x342a5c(0x6a7)]](){return this;}};});}[_0x1791e1(0x877)](_0x59232b){const _0x298554=_0x1791e1;return this[_0x298554(0x642)](_0x1c6d86=>_0x59232b(_0x1c6d86)?_0x1c6d86:_0xe53f59[_0x298554(0x799)]);}[_0x1791e1(0x8de)](_0xcafab7){for(const _0x13f5a1 of this)_0xcafab7(_0x13f5a1);}['slice'](_0x2688b8=0x0,_0x12ae95=Infinity){const _0x155b72=this;return new _0x208c11(()=>{const _0x741984=_0x2fc2,_0x359b08=_0x155b72[Symbol[_0x741984(0x6a7)]]();let _0x589759=0x0;return{'next'(){const _0x4a96bd=_0x741984;for(;;){const _0x548727=_0x359b08[_0x4a96bd(0x8a6)]();if(_0x548727[_0x4a96bd(0x577)])return{'done':!![],'value':undefined};const _0x4b3ff5=_0x589759++;if(_0x4b3ff5<_0x2688b8)continue;if(_0x4b3ff5>=_0x12ae95)return _0x359b08[_0x4a96bd(0x2a7)]?.(),{'done':!![],'value':undefined};return _0x548727;}},'return'(){const _0x364d53=_0x741984;return _0x359b08[_0x364d53(0x2a7)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}['at'](_0x30d986){let _0x2bca21=0x0;for(const _0x1b332e of this)if(_0x2bca21++===_0x30d986)return _0x1b332e;return undefined;}[_0x1791e1(0x68c)](_0x1f1404){const _0x209d08=this;return new _0x208c11(()=>{const _0x5d2176=_0x2fc2,_0x1657c7=_0x209d08[Symbol[_0x5d2176(0x6a7)]]();let _0x156448=[];return{'next'(){const _0x43d7c6=_0x5d2176;for(;;){if(_0x156448[_0x43d7c6(0x788)])return{'done':![],'value':_0x156448[_0x43d7c6(0x5af)]()};const _0x408a62=_0x1657c7['next']();if(_0x408a62[_0x43d7c6(0x577)])return{'done':!![],'value':undefined};const _0x43e8ce=_0x1f1404(_0x408a62[_0x43d7c6(0x744)]);if(Array[_0x43d7c6(0x888)](_0x43e8ce))_0x156448=_0x156448[_0x43d7c6(0x6f2)](_0x43e8ce);else{if(_0x43e8ce!=null&&(_0x43e8ce instanceof _0x208c11||typeof _0x43e8ce[Symbol['iterator']]==='function'&&_0x43d7c6(0x690)in _0x43e8ce))_0x156448=_0x156448[_0x43d7c6(0x6f2)](Array[_0x43d7c6(0x51b)](_0x43e8ce));else{if(_0x43e8ce!==_0xe53f59[_0x43d7c6(0x799)])return{'done':![],'value':_0x43e8ce};}}}},'return'(){return _0x1657c7['return']?.(),{'done':!![],'value':undefined};},[Symbol[_0x5d2176(0x6a7)]](){return this;}};});}[_0x1791e1(0x6f2)](_0xbf352c){const _0x32915f=this;return new _0x208c11(()=>{const _0x41a5aa=_0x2fc2;let _0x5f4c1f=_0x32915f[Symbol[_0x41a5aa(0x6a7)]](),_0x4c4211=![];return{'next'(){const _0x3058d6=_0x41a5aa;for(;;){const _0x22cc69=_0x5f4c1f[_0x3058d6(0x8a6)]();if(!_0x22cc69['done'])return _0x22cc69;if(_0x4c4211)return{'done':!![],'value':undefined};_0x4c4211=!![],_0x5f4c1f=_0xbf352c[Symbol[_0x3058d6(0x6a7)]]();}},'return'(){const _0x28fa5d=_0x41a5aa;return _0x5f4c1f[_0x28fa5d(0x2a7)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x41a5aa(0x6a7)]](){return this;}};});}[_0x1791e1(0x650)](_0x10ed3a){const _0x1311bf=this;return new _0x208c11(()=>{const _0xe053d0=_0x2fc2,_0x42f1d8=_0x1311bf[Symbol[_0xe053d0(0x6a7)]]();return{'next'(){const _0xbd4dbf=_0xe053d0;for(;;){try{return _0x42f1d8[_0xbd4dbf(0x8a6)]();}catch(_0x5b79d8){const _0x580b88=_0x10ed3a(_0x5b79d8);if(_0x580b88===_0xe53f59[_0xbd4dbf(0x799)]||_0x580b88===undefined)continue;return{'done':![],'value':_0x580b88};}}},'return'(){const _0x761d37=_0xe053d0;return _0x42f1d8[_0x761d37(0x2a7)]?.(),{'done':!![],'value':undefined};},[Symbol[_0xe053d0(0x6a7)]](){return this;}};});}[_0x1791e1(0x233)](){const _0xb6aad5=_0x1791e1;return Array[_0xb6aad5(0x51b)](this);}get['asArray'](){return Array['from'](this);}}const _0x5a5ed2={'total':0x0,'byLabel':{},'last':null};function _0x44864e(_0x6670e){const _0x51bb7b=_0x1791e1;_0x5a5ed2[_0x51bb7b(0x4ef)]++;if(_0x6670e)_0x5a5ed2['byLabel'][_0x6670e]=(_0x5a5ed2['byLabel'][_0x6670e]??0x0)+0x1;_0x5a5ed2[_0x51bb7b(0x304)]={'label':_0x6670e??null,'at':Date['now']()};}function _0x33af45(){const _0x101bae=_0x1791e1;return{'total':_0x5a5ed2[_0x101bae(0x4ef)],'byLabel':{..._0x5a5ed2[_0x101bae(0x33a)]},'last':_0x5a5ed2[_0x101bae(0x304)]};}function _0x814e5a(_0x39b70d,_0x1f854a={}){const {getTxnId:_0x2e664c,resume:_0x45049b,label:_0x496d33,baseline:_0x1307ee}=_0x1f854a;return new _0x208c11(()=>{const _0x2075bd=_0x2fc2;let _0x5a2350=null,_0x3f6f16=![],_0x37996f=![],_0x1e402f=![],_0x35490a,_0x4082f7=0x0,_0x419ca2;return{'next'(){const _0x3e813b=_0x2fc2;if(_0x1e402f)return{'done':!![],'value':undefined};if(_0x37996f){let _0x138d1a=![];if(_0x45049b&&_0x2e664c)try{_0x138d1a=_0x2e664c()===_0x419ca2;}catch{}if(!_0x138d1a){_0x1e402f=!![],_0x44864e(_0x496d33);throw new _0xa0b63a(_0x45049b?_0x3e813b(0x2f6)+_0x3e813b(0x2b1)+_0x3e813b(0x8be):_0x3e813b(0x5bc)+_0x3e813b(0x7ee)+'Array.from)\x20before\x20any\x20await.',_0x3e813b(0x235));}_0x5a2350=_0x45049b(_0x35490a,_0x4082f7)[Symbol[_0x3e813b(0x6a7)]](),_0x37996f=![];}if(!_0x5a2350){if(_0x1307ee!==undefined)_0x419ca2=_0x1307ee;else try{_0x419ca2=_0x2e664c?_0x2e664c():undefined;}catch{_0x419ca2=undefined;}try{_0x5a2350=_0x39b70d()[Symbol[_0x3e813b(0x6a7)]]();}catch(_0x3e3c9d){_0x1e402f=!![];throw _0x3e3c9d;}}!_0x3f6f16&&(_0x3f6f16=!![],queueMicrotask(()=>{const _0x1907c0=_0x3e813b;_0x3f6f16=![];if(_0x1e402f||_0x37996f)return;try{_0x5a2350?.[_0x1907c0(0x2a7)]?.();}catch{}_0x5a2350=null,_0x37996f=!![];}));const _0xf3b608=_0x5a2350[_0x3e813b(0x8a6)]();if(_0xf3b608[_0x3e813b(0x577)])return _0x1e402f=!![],{'done':!![],'value':undefined};return _0x35490a=_0xf3b608[_0x3e813b(0x744)],_0x4082f7++,_0xf3b608;},'return'(){const _0xcb956b=_0x2fc2;_0x1e402f=!![];try{_0x5a2350?.[_0xcb956b(0x2a7)]?.();}catch{}return{'done':!![],'value':undefined};},[Symbol[_0x2075bd(0x6a7)]](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x814e5a,'OKDBGuardedRange':_0x208c11,'recordGuardTrip':_0x44864e,'getGuardTripStats':_0x33af45},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x3cc85d=_0xef081e;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x1e15af,performance:_0x5b0d4f}=require$$0$1,_0x3c9f4c=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x3cc85d(0x8f1),_0x3e881a=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x266a55=process.env.OKDB_LOOP_LAG_ALL==='1',_0x20a917=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x8253cc{constructor(){const _0x8ece29=_0x3cc85d;this['enabled']=_0x3c9f4c,this[_0x8ece29(0x655)]=new Map(),this['_h']=null,this[_0x8ece29(0x747)]=null,this['_started']=![],this[_0x8ece29(0x552)]=(_0x4c4da6,_0x53db2f)=>process['stderr'][_0x8ece29(0x4bf)](_0x4c4da6+(_0x53db2f?'\x20'+JSON[_0x8ece29(0x754)](_0x53db2f):'')+'\x0a');}[_0x3cc85d(0x3d4)](){const _0x150e31=_0x3cc85d;return _0x5b0d4f[_0x150e31(0x3d4)]();}['setLogger'](_0x586e4d){const _0x1872d1=_0x3cc85d;if(typeof _0x586e4d===_0x1872d1(0x484))this['_log']=_0x586e4d;}[_0x3cc85d(0x669)](_0x24b765,_0x399b09,_0x50cb07){const _0x120954=_0x3cc85d;if(!this[_0x120954(0x4b3)])return;let _0x5acca3=this[_0x120954(0x655)]['get'](_0x24b765);!_0x5acca3&&(_0x5acca3={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x120954(0x655)]['set'](_0x24b765,_0x5acca3)),_0x5acca3['ms']+=_0x399b09,_0x5acca3[_0x120954(0x4c2)]+=0x1,_0x399b09>_0x5acca3[_0x120954(0x709)]&&(_0x5acca3[_0x120954(0x709)]=_0x399b09,_0x5acca3[_0x120954(0x432)]=_0x50cb07||'');}['start'](_0x10e355){const _0x26f560=_0x3cc85d;if(!this['enabled']||this[_0x26f560(0x66e)])return;this[_0x26f560(0x66e)]=!![];if(_0x10e355)this['_log']=_0x10e355;this['_h']=_0x1e15af({'resolution':0xa}),this['_h'][_0x26f560(0x274)](),this[_0x26f560(0x747)]=setInterval(()=>this[_0x26f560(0x57e)](),_0x3e881a);if(this[_0x26f560(0x747)]['unref'])this[_0x26f560(0x747)][_0x26f560(0x8c7)]();}[_0x3cc85d(0x8bf)](_0x50beb0){const _0x5e4a43=_0x3cc85d;if(!this[_0x5e4a43(0x770)])this[_0x5e4a43(0x770)]=new Set();this[_0x5e4a43(0x770)][_0x5e4a43(0x77d)](_0x50beb0);if(!this[_0x5e4a43(0x66e)])this[_0x5e4a43(0x8df)]();}[_0x3cc85d(0x675)](_0x17d525){const _0x366edb=_0x3cc85d;this['_windowCbs']?.[_0x366edb(0x46b)](_0x17d525);}[_0x3cc85d(0x8df)](){const _0x204ac1=_0x3cc85d;if(this['_admissionStarted'])return;this[_0x204ac1(0x6ed)]=!![];!this['_h']&&(this['_h']=_0x1e15af({'resolution':0xa}),this['_h'][_0x204ac1(0x274)]());const _0x88375f=_0x3e881a;this[_0x204ac1(0x33f)]=setInterval(()=>{const _0x1744f7=_0x204ac1,_0x4e802f=this['_h'];if(!_0x4e802f)return;const _0x2842db=_0x4e802f['percentile'](0x63)/0xf4240,_0x2e8b37=_0x4e802f['max']/0xf4240,_0x55f263=_0x4e802f[_0x1744f7(0x461)]/0xf4240;_0x4e802f['reset']();if(this[_0x1744f7(0x770)])for(const _0x5b347d of this[_0x1744f7(0x770)]){try{_0x5b347d({'p99Ms':_0x2842db,'maxMs':_0x2e8b37,'meanMs':_0x55f263,'reportMs':_0x88375f});}catch{}}},_0x88375f);if(this[_0x204ac1(0x33f)][_0x204ac1(0x8c7)])this[_0x204ac1(0x33f)][_0x204ac1(0x8c7)]();}[_0x3cc85d(0x57e)](){const _0x5b7c5c=_0x3cc85d,_0x38a32f=this['_h'],_0x199c5f=_0x38a32f[_0x5b7c5c(0x31f)]/0xf4240,_0xb7a2a9=_0x38a32f[_0x5b7c5c(0x247)](0x63)/0xf4240,_0x2c7f5f=_0x38a32f['mean']/0xf4240;_0x38a32f['reset']();const _0x3c21e9=[...this[_0x5b7c5c(0x655)][_0x5b7c5c(0x84a)]()]['map'](([_0x515d86,_0xb33dc])=>({'label':_0x515d86,..._0xb33dc}))[_0x5b7c5c(0x1e1)]((_0x46824a,_0x482600)=>_0x482600['ms']-_0x46824a['ms'])[_0x5b7c5c(0x848)](0x0,0x8);this[_0x5b7c5c(0x655)]['clear']();const _0x30e72f=_0x3c21e9[_0x5b7c5c(0x520)]((_0x468add,_0x7ed876)=>_0x468add+_0x7ed876['ms'],0x0),_0x158d1d=_0x3c21e9[_0x5b7c5c(0x642)](_0x1da064=>_0x1da064['label']+'='+_0x1da064['ms'][_0x5b7c5c(0x3bc)](0x0)+'ms/'+_0x1da064[_0x5b7c5c(0x4c2)]+(_0x1da064['maxMs']>0x5?_0x5b7c5c(0x53d)+_0x1da064['maxMs'][_0x5b7c5c(0x3bc)](0x0)+'ms'+(_0x1da064[_0x5b7c5c(0x432)]?'\x20'+_0x1da064['maxExtra']:'')+')':''));(_0x266a55||_0x199c5f>=_0x20a917)&&this[_0x5b7c5c(0x552)]('loop-lag\x20'+_0x3e881a+_0x5b7c5c(0x3d1)+_0x199c5f[_0x5b7c5c(0x3bc)](0x0)+_0x5b7c5c(0x6b5)+_0xb7a2a9[_0x5b7c5c(0x3bc)](0x0)+_0x5b7c5c(0x653)+_0x2c7f5f[_0x5b7c5c(0x3bc)](0x0)+_0x5b7c5c(0x464)+_0x30e72f['toFixed'](0x0)+'ms'+(_0x158d1d[_0x5b7c5c(0x788)]?'\x20│\x20'+_0x158d1d[_0x5b7c5c(0x8a0)]('\x20\x20'):''),{'feature':_0x5b7c5c(0x5db)});if(this[_0x5b7c5c(0x770)])for(const _0x22248b of this[_0x5b7c5c(0x770)]){try{_0x22248b({'p99Ms':_0xb7a2a9,'maxMs':_0x199c5f,'meanMs':_0x2c7f5f,'reportMs':_0x3e881a});}catch{}}}[_0x3cc85d(0x6bf)](){const _0x54fcfd=_0x3cc85d;if(this['_timer'])clearInterval(this['_timer']);if(this['_h'])this['_h'][_0x54fcfd(0x229)]();this[_0x54fcfd(0x747)]=null,this['_h']=null,this[_0x54fcfd(0x66e)]=![];}}const _0x491896=new _0x8253cc();if(_0x491896[_0x3cc85d(0x4b3)])_0x491896[_0x3cc85d(0x77b)]();return okdbLoopMonitor={'LOOP':_0x491896},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0x414b1c=_0xef081e;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0x5eb46e={'v4':()=>require$$0$2[_0x414b1c(0x78a)]()},{EVENTS:_0x3b494b}=requireOkdbEnums(),{OKDBError:_0x102c29}=requireOkdbError(),{recordGuardTrip:_0x5f3e7a,guardSnapshotIterable:_0x5d519e}=requireOkdbGuardedRange(),{LOOP:_0xe63a4b}=requireOkdbLoopMonitor();function _0x555b40(_0x25670a){const _0x581c45=_0x414b1c;return _0x25670a[_0x581c45(0x642)](_0x414668=>{const _0x483129=_0x581c45,[_0x18c2e6,_0x4e7f32]=_0x414668[_0x483129(0x4d4)]||[];return{'action':_0x414668[_0x483129(0x455)],'type':_0x18c2e6,'key':_0x4e7f32};});}class _0x10646f{['okdb'];[_0x414b1c(0x875)]=[];[_0x414b1c(0x4b2)]=[];[_0x414b1c(0x772)]=[];constructor(_0x42219d,_0x2c4b06={'useReadTransaction':![]}){const _0x5dcba3=_0x414b1c;this[_0x5dcba3(0x82e)]=_0x42219d,this['options']=_0x2c4b06,this['id']=_0x5eb46e['v4']();if(this[_0x5dcba3(0x1cc)][_0x5dcba3(0x1de)])try{this[_0x5dcba3(0x4a9)]=this[_0x5dcba3(0x82e)]['db'][_0x5dcba3(0x7f2)]()[_0x5dcba3(0x38e)];}catch{this[_0x5dcba3(0x4a9)]=undefined;}this[_0x5dcba3(0x7bd)]=this[_0x5dcba3(0x1cc)][_0x5dcba3(0x1de)]?this['okdb']['db']['useReadTransaction']():null,this[_0x5dcba3(0x43e)]=![],this['_readViewExpired']=![],this[_0x5dcba3(0x7bd)]&&queueMicrotask(()=>{const _0x5908d0=_0x5dcba3;this[_0x5908d0(0x7bd)]&&(this[_0x5908d0(0x581)](),this[_0x5908d0(0x223)]=!![]);});}['onDo'](_0x2e8587){const _0x38381d=_0x414b1c;this[_0x38381d(0x4b2)][_0x38381d(0x27f)](_0x2e8587);}['onUndo'](_0x21f73e){const _0xe70a2d=_0x414b1c;this['_undoHooks'][_0xe70a2d(0x27f)](_0x21f73e);}['_closeReadTransaction'](){const _0x30787e=_0x414b1c;if(!this[_0x30787e(0x7bd)])return;try{this['readTransaction']['done']();}catch(_0x104b58){}this[_0x30787e(0x7bd)]=null;}['_assertOpen'](){const _0x56a618=_0x414b1c;if(this[_0x56a618(0x43e)])throw new _0x102c29(_0x56a618(0x766),'TXN_CLOSED');if(this['_readViewExpired']){let _0x56deee=![];if(this[_0x56a618(0x1cc)][_0x56a618(0x1de)]===_0x56a618(0x827)&&this[_0x56a618(0x4a9)]!==undefined)try{_0x56deee=this[_0x56a618(0x82e)]['db'][_0x56a618(0x7f2)]()[_0x56a618(0x38e)]===this[_0x56a618(0x4a9)];}catch{}if(!_0x56deee){_0x5f3e7a((this['okdb']?.[_0x56a618(0x686)]??'?')+_0x56a618(0x641));throw new _0x102c29(_0x56a618(0x45b)+_0x56a618(0x60b)+_0x56a618(0x700)+_0x56a618(0x28a),_0x56a618(0x235));}}}['get'](_0x354f28,_0x2ca586){const _0x181969=_0x414b1c;return this['_assertOpen'](),this[_0x181969(0x82e)][_0x181969(0x292)](_0x354f28,_0x2ca586,{'transaction':this['readTransaction']});}[_0x414b1c(0x408)](_0x3337b2,_0x248df4){const _0x188e28=_0x414b1c;return this['_assertOpen'](),this[_0x188e28(0x82e)][_0x188e28(0x408)](_0x3337b2,_0x248df4,{'transaction':this['readTransaction']});}[_0x414b1c(0x2d2)](_0x426ef7,_0x30abf8){const _0x58cf9c=_0x414b1c;return this['_assertOpen'](),this[_0x58cf9c(0x82e)]['getMany'](_0x426ef7,_0x30abf8,{'transaction':this['readTransaction']});}[_0x414b1c(0x2ff)](_0x3f82b1){const _0x1f157b=_0x414b1c;if(!this[_0x1f157b(0x1cc)][_0x1f157b(0x1de)])return _0x3f82b1;if(_0x3f82b1&&typeof _0x3f82b1[_0x1f157b(0x458)]===_0x1f157b(0x484))return _0x3f82b1;if(Array[_0x1f157b(0x888)](_0x3f82b1))return _0x3f82b1;const _0x1c3d08=this,_0xe3a59c=_0x1c3d08[_0x1f157b(0x1cc)]['useReadTransaction']===_0x1f157b(0x827),_0x28fe03=()=>{const _0x85acf1=_0x1f157b;if(!_0x1c3d08[_0x85acf1(0x223)])return![];if(!_0xe3a59c)return!![];if(_0x1c3d08[_0x85acf1(0x4a9)]===undefined)return!![];try{return _0x1c3d08[_0x85acf1(0x82e)]['db']['getStats']()[_0x85acf1(0x38e)]!==_0x1c3d08[_0x85acf1(0x4a9)];}catch{return!![];}};return _0x5d519e(()=>{const _0x428c5a=_0x1f157b;if(_0x1c3d08[_0x428c5a(0x43e)])throw new _0x102c29('Transaction\x20already\x20closed',_0x428c5a(0x325));if(_0x28fe03()){_0x5f3e7a((_0x1c3d08['okdb']?.[_0x428c5a(0x686)]??'?')+_0x428c5a(0x3af));throw new _0x102c29(_0x428c5a(0x81b)+_0x428c5a(0x324)+_0x428c5a(0x266),_0x428c5a(0x235));}return _0x3f82b1;},{'label':(_0x1c3d08['okdb']?.['name']??'?')+_0x1f157b(0x3af),..._0xe3a59c?{'baseline':_0x1c3d08[_0x1f157b(0x4a9)],'getTxnId':()=>_0x1c3d08[_0x1f157b(0x82e)]['db'][_0x1f157b(0x7f2)]()[_0x1f157b(0x38e)],'resume':(_0x19f83a,_0xa022a0)=>_0x3f82b1[_0x1f157b(0x848)](_0xa022a0)}:{}});}[_0x414b1c(0x433)](_0x4f8e6,_0x1ad721={}){const _0x56b058=_0x414b1c;return this[_0x56b058(0x2d0)](),this[_0x56b058(0x2ff)](this['okdb'][_0x56b058(0x433)](_0x4f8e6,{'transaction':this[_0x56b058(0x7bd)],..._0x1ad721}));}['getValues'](_0x4c4ed1,_0x2036b8={}){const _0x544e20=_0x414b1c;return this[_0x544e20(0x2d0)](),this[_0x544e20(0x2ff)](this[_0x544e20(0x82e)]['getValues'](_0x4c4ed1,{'transaction':this[_0x544e20(0x7bd)],..._0x2036b8}));}[_0x414b1c(0x541)](_0x54fddb,_0x945e60={}){const _0x30ed48=_0x414b1c;return this[_0x30ed48(0x2d0)](),this[_0x30ed48(0x2ff)](this['okdb'][_0x30ed48(0x541)](_0x54fddb,{'transaction':this[_0x30ed48(0x7bd)],..._0x945e60}));}['byIndex'](_0x43d86d,_0x538d85,_0x1bc223={}){const _0x228737=_0x414b1c;return this[_0x228737(0x2d0)](),this[_0x228737(0x2ff)](this[_0x228737(0x82e)][_0x228737(0x657)](_0x43d86d,_0x538d85,{'transaction':this['readTransaction'],..._0x1bc223}));}[_0x414b1c(0x5e7)](_0x32d917,_0x55e4e8,_0x531adb={}){const _0x4c31a3=_0x414b1c;return this[_0x4c31a3(0x2d0)](),this['_range'](this['okdb']['query'](_0x32d917,_0x55e4e8,{'transaction':this['readTransaction'],..._0x531adb}));}[_0x414b1c(0x73c)](_0x28c145=null){const _0x2237c0=_0x414b1c;return this[_0x2237c0(0x2d0)](),this[_0x2237c0(0x82e)]['getClock'](_0x28c145,{'transaction':this[_0x2237c0(0x7bd)]});}['getCount'](_0x1e39fb){const _0x5c2415=_0x414b1c;return this[_0x5c2415(0x2d0)](),this['okdb'][_0x5c2415(0x2e0)](_0x1e39fb,{'transaction':this[_0x5c2415(0x7bd)]});}['put'](_0x5304f7,_0x2c85d4,_0x4a74b9,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x5e73f0=_0x414b1c;this[_0x5e73f0(0x875)][_0x5e73f0(0x27f)]({'action':_0x5e73f0(0x1dd),'args':[_0x5304f7,_0x2c85d4,_0x4a74b9,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x414b1c(0x739)](_0x5c2348,_0x15d7ea,_0x4e706a,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x414b1c(0x3d4)](),origin:origin=null,ttl:ttl=null}={}){const _0x46f4fd=_0x414b1c;this['actions']['push']({'action':_0x46f4fd(0x739),'args':[_0x5c2348,_0x15d7ea,_0x4e706a,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x414b1c(0x1c8)](_0x59a517,_0x6b61cf,_0x2d8ea3,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0x414b1c(0x3d4)](),origin:origin=null,ttl:ttl=null}={}){const _0x575cbe=_0x414b1c;this['actions'][_0x575cbe(0x27f)]({'action':_0x575cbe(0x1c8),'args':[_0x59a517,_0x6b61cf,_0x2d8ea3,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x414b1c(0x1c2)](_0x27b58b,_0x3931d8,_0x239ac9,{version:version=null,timestamp:timestamp=Date[_0x414b1c(0x3d4)](),origin:origin=null,ttl:ttl=null}={}){const _0x3c3c22=_0x414b1c;this[_0x3c3c22(0x875)][_0x3c3c22(0x27f)]({'action':_0x3c3c22(0x1c2),'args':[_0x27b58b,_0x3931d8,_0x239ac9,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x414b1c(0x28d)](_0x450181,_0x7f0a6e,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0x414b1c(0x3d4)](),origin:origin=null}={}){const _0x34f769=_0x414b1c;this[_0x34f769(0x875)]['push']({'action':_0x34f769(0x28d),'args':[_0x450181,_0x7f0a6e,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}[_0x414b1c(0x383)](_0x1dab98,_0xc448d9,_0x5c338d){const _0x2f5a3a=_0x414b1c;this['actions'][_0x2f5a3a(0x27f)]({'action':'setTTL','args':[_0x1dab98,_0xc448d9,_0x5c338d]});}['clearTTL'](_0x5533a8,_0x565f00){const _0x502184=_0x414b1c;this[_0x502184(0x875)][_0x502184(0x27f)]({'action':_0x502184(0x41f),'args':[_0x5533a8,_0x565f00]});}[_0x414b1c(0x28c)](){const _0x1d3f48=_0x414b1c;if(this[_0x1d3f48(0x43e)])return;for(const _0x516347 of this[_0x1d3f48(0x772)]){try{_0x516347();}catch{}}this[_0x1d3f48(0x82e)][_0x1d3f48(0x3d2)][_0x1d3f48(0x599)](_0x3b494b[_0x1d3f48(0x5c0)],{'id':this['id']}),this[_0x1d3f48(0x875)]=[],this[_0x1d3f48(0x581)](),this[_0x1d3f48(0x43e)]=!![];}async[_0x414b1c(0x7dc)](){const _0x379324=_0x414b1c;if(this[_0x379324(0x43e)])throw new Error(_0x379324(0x766));const _0xd277b3={'id':this['id'],'timestamp':Date[_0x379324(0x3d4)](),'actions':this[_0x379324(0x875)]};this['okdb']['events'][_0x379324(0x599)](_0x3b494b[_0x379324(0x25f)],_0xd277b3);try{const _0x545854=_0xe63a4b['enabled']?_0xe63a4b[_0x379324(0x3d4)]():0x0;await this['okdb'][_0x379324(0x27a)][_0x379324(0x7b5)](()=>{const _0x270609=_0x379324;for(const _0xc87396 of this['actions']){const _0x4859b6=this[_0x270609(0x82e)]['_'+_0xc87396[_0x270609(0x455)]];if(typeof _0x4859b6!==_0x270609(0x484))throw new Error(_0x270609(0x823)+_0xc87396[_0x270609(0x455)]);_0x4859b6['call'](this[_0x270609(0x82e)],this,..._0xc87396[_0x270609(0x4d4)]);}}),_0xe63a4b[_0x379324(0x4b3)]&&_0xe63a4b[_0x379324(0x669)](_0x379324(0x7f9),_0xe63a4b[_0x379324(0x3d4)]()-_0x545854,(this[_0x379324(0x82e)][_0x379324(0x686)]??'?')+_0x379324(0x67d)+this[_0x379324(0x875)][_0x379324(0x788)]);}catch(_0x47aadc){for(const _0x33a16d of this['_undoHooks']){try{_0x33a16d();}catch{}}this[_0x379324(0x581)](),this[_0x379324(0x43e)]=!![];if(_0x47aadc instanceof _0x102c29)throw _0x47aadc;const _0x3d262c={'cause':_0x47aadc,'env':this['okdb']?.[_0x379324(0x686)],'envPath':this[_0x379324(0x82e)]?.[_0x379324(0x844)],'pid':process[_0x379324(0x6d4)],'txnId':this['id'],'actionCount':this[_0x379324(0x875)]['length'],'actions':_0x555b40(this['actions']),'nativeCode':_0x47aadc?.[_0x379324(0x1bd)],'nativeName':_0x47aadc?.[_0x379324(0x686)]};try{this[_0x379324(0x82e)]?.['log']?.[_0x379324(0x860)]?.(_0x379324(0x811),{'env':_0x3d262c[_0x379324(0x4f8)],'envPath':_0x3d262c[_0x379324(0x256)],'pid':_0x3d262c[_0x379324(0x6d4)],'txnId':_0x3d262c[_0x379324(0x4ba)],'actionCount':_0x3d262c[_0x379324(0x853)],'actions':_0x3d262c[_0x379324(0x875)],'nativeCode':_0x3d262c['nativeCode'],'error':_0x47aadc?.['message'],'stack':_0x47aadc?.[_0x379324(0x8a5)]});}catch{}throw new _0x102c29(_0x47aadc?.[_0x379324(0x485)]||_0x379324(0x748),'TXN_ERROR',_0x3d262c);}this[_0x379324(0x82e)][_0x379324(0x3d2)]['emit'](_0x3b494b[_0x379324(0x6cf)],_0xd277b3);for(const _0x2fbd8b of this[_0x379324(0x4b2)]){try{await _0x2fbd8b();}catch{}}this[_0x379324(0x875)]=[],this[_0x379324(0x581)](),this[_0x379324(0x43e)]=!![];}static[_0x414b1c(0x1f0)](_0x16e834){const _0x227a3d=_0x414b1c;return Object['freeze']({'id':_0x16e834['id'],'put':_0x16e834[_0x227a3d(0x1dd)][_0x227a3d(0x76f)](_0x16e834),'update':_0x16e834[_0x227a3d(0x739)][_0x227a3d(0x76f)](_0x16e834),'patch':_0x16e834[_0x227a3d(0x1c8)][_0x227a3d(0x76f)](_0x16e834),'create':_0x16e834[_0x227a3d(0x1c2)][_0x227a3d(0x76f)](_0x16e834),'remove':_0x16e834[_0x227a3d(0x28d)]['bind'](_0x16e834),'setTTL':_0x16e834[_0x227a3d(0x383)][_0x227a3d(0x76f)](_0x16e834),'clearTTL':_0x16e834[_0x227a3d(0x41f)]['bind'](_0x16e834),'commit':_0x16e834[_0x227a3d(0x7dc)][_0x227a3d(0x76f)](_0x16e834),'rollback':_0x16e834[_0x227a3d(0x28c)][_0x227a3d(0x76f)](_0x16e834),'get':_0x16e834[_0x227a3d(0x292)][_0x227a3d(0x76f)](_0x16e834),'getEntry':_0x16e834[_0x227a3d(0x408)][_0x227a3d(0x76f)](_0x16e834),'getMany':_0x16e834[_0x227a3d(0x2d2)]['bind'](_0x16e834),'getRange':_0x16e834[_0x227a3d(0x433)]['bind'](_0x16e834),'getValues':_0x16e834[_0x227a3d(0x73d)][_0x227a3d(0x76f)](_0x16e834),'getKeys':_0x16e834['getKeys'][_0x227a3d(0x76f)](_0x16e834),'byIndex':_0x16e834[_0x227a3d(0x657)]['bind'](_0x16e834),'query':_0x16e834[_0x227a3d(0x5e7)][_0x227a3d(0x76f)](_0x16e834),'getClock':_0x16e834[_0x227a3d(0x73c)]['bind'](_0x16e834),'getCount':_0x16e834[_0x227a3d(0x2e0)][_0x227a3d(0x76f)](_0x16e834),'read':_0x16e834,'raw':_0x16e834});}static[_0x414b1c(0x51e)](_0x14ea42,_0x1a47ae=[]){const _0x287541=_0x414b1c;if(!Array['isArray'](_0x1a47ae))throw new _0x102c29(_0x287541(0x1d5),'TXN_INVALID_OPS');for(const _0x1a8995 of _0x1a47ae){if(Array[_0x287541(0x888)](_0x1a8995)){const [_0x2b7f3a,..._0xbaecc0]=_0x1a8995;if(typeof _0x14ea42[_0x2b7f3a]!==_0x287541(0x484))throw new _0x102c29('Unknown\x20transaction\x20action:\x20'+_0x2b7f3a,'TXN_INVALID_ACTION',{'action':_0x2b7f3a});_0x14ea42[_0x2b7f3a](..._0xbaecc0);continue;}if(!_0x1a8995||typeof _0x1a8995!=='object')throw new _0x102c29(_0x287541(0x5ff),_0x287541(0x1ee));const {action:_0x49dc5e}=_0x1a8995;if(typeof _0x49dc5e!==_0x287541(0x43c)||typeof _0x14ea42[_0x49dc5e]!=='function')throw new _0x102c29(_0x287541(0x823)+_0x49dc5e,_0x287541(0x6b1),{'action':_0x49dc5e});switch(_0x49dc5e){case _0x287541(0x1dd):case _0x287541(0x739):case'create':_0x14ea42[_0x49dc5e](_0x1a8995[_0x287541(0x490)],_0x1a8995[_0x287541(0x59b)],_0x1a8995[_0x287541(0x744)],{..._0x1a8995[_0x287541(0x1cc)],'ttl':_0x1a8995[_0x287541(0x20b)]??_0x1a8995[_0x287541(0x1cc)]?.[_0x287541(0x20b)]??null});break;case _0x287541(0x1c8):_0x14ea42['patch'](_0x1a8995[_0x287541(0x490)],_0x1a8995[_0x287541(0x59b)],_0x1a8995[_0x287541(0x1c8)],{..._0x1a8995['options'],'ttl':_0x1a8995[_0x287541(0x20b)]??_0x1a8995[_0x287541(0x1cc)]?.[_0x287541(0x20b)]??null});break;case _0x287541(0x28d):_0x14ea42[_0x287541(0x28d)](_0x1a8995[_0x287541(0x490)],_0x1a8995[_0x287541(0x59b)],_0x1a8995[_0x287541(0x1cc)]||{});break;case _0x287541(0x383):_0x14ea42[_0x287541(0x383)](_0x1a8995[_0x287541(0x490)],_0x1a8995[_0x287541(0x59b)],_0x1a8995[_0x287541(0x20b)]);break;case'clearTTL':_0x14ea42[_0x287541(0x41f)](_0x1a8995[_0x287541(0x490)],_0x1a8995['key']);break;default:throw new _0x102c29(_0x287541(0x8d4)+_0x49dc5e,_0x287541(0x6b1),{'action':_0x49dc5e});}}}static async[_0x414b1c(0x2be)](_0x64a50f,_0x5ae161,_0x279bcc={}){const _0x368da5=_0x414b1c,_0x86428c=new _0x10646f(_0x64a50f,_0x279bcc),_0xde397c=_0x10646f[_0x368da5(0x1f0)](_0x86428c);try{typeof _0x5ae161==='function'?await _0x5ae161(_0xde397c):_0x10646f[_0x368da5(0x51e)](_0x86428c,_0x5ae161||[]);const _0x571ed6=_0x86428c[_0x368da5(0x875)]['length'];return await _0x86428c[_0x368da5(0x7dc)](),{'id':_0x86428c['id'],'actions':_0x571ed6};}catch(_0xe6e28){try{_0x86428c[_0x368da5(0x28c)]();}catch(_0x3e9fa1){}throw _0xe6e28;}}}return okdbTransaction=_0x10646f,okdbTransaction;}var dist={},hasRequiredDist;function requireDist(){const _0x24ac46=_0xef081e;if(hasRequiredDist)return dist;hasRequiredDist=0x1,Object['defineProperty'](dist,_0x24ac46(0x677),{'value':!![]});const _0x37dc68=new Float64Array(0x2),_0x14e5cc=new Int32Array(_0x37dc68[_0x24ac46(0x570)],0x0,0x4),{lowIdx:_0xa08e68,highIdx:_0x50930f}=((()=>{const _0x39857c=_0x24ac46;if(new Uint8Array(new Uint32Array([0xffee1100])[_0x39857c(0x570)])[0x0]===0xff)return{'lowIdx':0x1,'highIdx':0x0};return{'lowIdx':0x0,'highIdx':0x1};})());let _0x495dc9=![],_0x1858a9;try{_0x1858a9=new TextEncoder();}catch(_0xf103a2){}function _0x3cf6e4(_0x154591,_0x237cad,position,_0xb2b8f6){const _0x2d73b4=_0x24ac46;let _0x397c67=_0x237cad[_0x2d73b4(0x2aa)];if(!_0x397c67)_0x397c67=_0x237cad[_0x2d73b4(0x2aa)]=new DataView(_0x237cad[_0x2d73b4(0x570)],_0x237cad[_0x2d73b4(0x6e4)],_0x237cad['byteLength']+0x3>>0x2<<0x2);switch(typeof _0x154591){case'string':let _0x2a7f42=_0x154591[_0x2d73b4(0x788)],_0x42df81=_0x154591[_0x2d73b4(0x4fc)](0x0);if(!(_0x42df81>=0x1c))_0x237cad[position++]=0x1b;if(_0x2a7f42<0x40){let _0x2d8acd,_0x5b2626;for(_0x2d8acd=0x0;_0x2d8acd<_0x2a7f42;_0x2d8acd++){_0x42df81=_0x154591[_0x2d73b4(0x4fc)](_0x2d8acd);if(_0x42df81<=0x4)_0x237cad[position++]=0x4,_0x237cad[position++]=_0x42df81;else{if(_0x42df81<0x80)_0x237cad[position++]=_0x42df81;else{if(_0x42df81<0x800)_0x237cad[position++]=_0x42df81>>0x6|0xc0,_0x237cad[position++]=_0x42df81&0x3f|0x80;else(_0x42df81&0xfc00)===0xd800&&((_0x5b2626=_0x154591[_0x2d73b4(0x4fc)](_0x2d8acd+0x1))&0xfc00)===0xdc00?(_0x42df81=0x10000+((_0x42df81&0x3ff)<<0xa)+(_0x5b2626&0x3ff),_0x2d8acd++,_0x237cad[position++]=_0x42df81>>0x12|0xf0,_0x237cad[position++]=_0x42df81>>0xc&0x3f|0x80,_0x237cad[position++]=_0x42df81>>0x6&0x3f|0x80,_0x237cad[position++]=_0x42df81&0x3f|0x80):(_0x237cad[position++]=_0x42df81>>0xc|0xe0,_0x237cad[position++]=_0x42df81>>0x6&0x3f|0x80,_0x237cad[position++]=_0x42df81&0x3f|0x80);}}}}else{if(_0x237cad[_0x2d73b4(0x6c4)])position+=_0x237cad[_0x2d73b4(0x6c4)](_0x154591,position,_0x237cad[_0x2d73b4(0x8e4)]-position);else position+=_0x1858a9[_0x2d73b4(0x8f3)](_0x154591,_0x237cad[_0x2d73b4(0x46f)](position))['written'];if(position>_0x237cad[_0x2d73b4(0x788)]-0x4)throw new RangeError(_0x2d73b4(0x4a1));}break;case _0x2d73b4(0x559):_0x37dc68[0x0]=_0x154591;let _0x326b41=_0x14e5cc[_0xa08e68],_0x713122=_0x14e5cc[_0x50930f],_0x476853;if(_0x154591<0x0)return _0x397c67[_0x2d73b4(0x33d)](position+0x4,~(_0x326b41>>>0x4|_0x713122<<0x1c)),_0x397c67[_0x2d73b4(0x33d)](position+0x0,(_0x713122^0x7fffffff)>>>0x4),_0x397c67[_0x2d73b4(0x33d)](position+0x8,(_0x326b41&0xf^0xf)<<0x4,!![]),position+0x9;else{if(_0x326b41&0xf||_0xb2b8f6)_0x476853=0x9;else{if(_0x326b41&0xfffff)_0x476853=0x8;else{if(_0x326b41||_0x713122&0xf)_0x476853=0x6;else _0x476853=0x4;}}}_0x397c67['setInt32'](position+0x0,_0x713122>>>0x4|0x10000000),_0x397c67[_0x2d73b4(0x33d)](position+0x4,_0x326b41>>>0x4|_0x713122<<0x1c),_0x397c67[_0x2d73b4(0x33d)](position+0x8,(_0x326b41&0xf)<<0x4,!![]);return position+_0x476853;case _0x2d73b4(0x7f6):if(_0x154591){if(Array[_0x2d73b4(0x888)](_0x154591)){for(let _0x16fa85=0x0,_0x3fbb2c=_0x154591[_0x2d73b4(0x788)];_0x16fa85<_0x3fbb2c;_0x16fa85++){if(_0x16fa85>0x0)_0x237cad[position++]=0x0;position=_0x3cf6e4(_0x154591[_0x16fa85],_0x237cad,position,!![]);}break;}else{if(_0x154591 instanceof Uint8Array){_0x237cad[_0x2d73b4(0x204)](_0x154591,position),position+=_0x154591['length'];break;}else throw new Error(_0x2d73b4(0x285)+JSON[_0x2d73b4(0x754)](_0x154591));}}else _0x237cad[position++]=0x0;break;case _0x2d73b4(0x699):_0x397c67[_0x2d73b4(0x839)](position++,_0x154591?0x7:0x6,!![]);return position;case _0x2d73b4(0x621):let _0x2a946c=Number(_0x154591);if(BigInt(_0x2a946c)>_0x154591){_0x37dc68[0x0]=_0x2a946c;if(_0x2a946c>0x0){if(_0x14e5cc[_0xa08e68])_0x14e5cc[_0xa08e68]--;else _0x14e5cc[_0x50930f]--,_0x14e5cc[_0xa08e68]=0xffffffff;}else{if(_0x14e5cc[_0xa08e68]<0xffffffff)_0x14e5cc[_0xa08e68]++;else _0x14e5cc[_0x50930f]++,_0x14e5cc[_0xa08e68]=0x0;}_0x2a946c=_0x37dc68[0x0];}let _0x31c34a=_0x154591-BigInt(_0x2a946c);if(_0x31c34a===0x0n)return _0x3cf6e4(_0x2a946c,_0x237cad,position,_0xb2b8f6);_0x3cf6e4(_0x2a946c,_0x237cad,position,_0xb2b8f6),position+=0x9;let _0x1220d5=BigInt((_0x14e5cc[_0x50930f]>>0x14&0x7ff)-0x437),_0x1eb5e1=_0x31c34a>>_0x1220d5;_0x237cad[position-0x1]|=Number(_0x1eb5e1),_0x31c34a-=_0x1eb5e1<<_0x1220d5;let _0x1c9f46=!![];while(_0x31c34a||_0x1c9f46){_0x1c9f46=![],_0x1220d5-=0x7n;let _0x37fe52=_0x31c34a>>_0x1220d5;_0x237cad[position++]=Number(_0x37fe52)|0x80,_0x31c34a-=_0x37fe52<<_0x1220d5;}return position;case _0x2d73b4(0x312):return position;case _0x2d73b4(0x3e0):_0x237cad[position++]=0x2;return _0x3cf6e4(_0x154591['description'],_0x237cad,position,_0xb2b8f6);default:throw new Error(_0x2d73b4(0x3ec)+typeof _0x154591);}if(_0x495dc9&&!_0xb2b8f6)_0x397c67[_0x2d73b4(0x839)](position,0x0);return position;}let position;function _0x5a3157(_0x26ce91,_0x3cc28f,_0x2a6fc9,_0x48b983){const _0x3ef455=_0x24ac46;position=_0x3cc28f;let _0x1abf8c=_0x26ce91[position],_0x1e6bf6;if(_0x1abf8c<0x18){if(_0x1abf8c<0x8){position++;if(_0x1abf8c==0x6)_0x1e6bf6=![];else{if(_0x1abf8c==0x7)_0x1e6bf6=!![];else{if(_0x1abf8c==0x0)_0x1e6bf6=null;else{if(_0x1abf8c==0x2)_0x1e6bf6=Symbol[_0x3ef455(0x7df)](_0x26c130(_0x26ce91,_0x2a6fc9));else return Uint8Array['prototype']['slice'][_0x3ef455(0x62a)](_0x26ce91,_0x3cc28f,_0x2a6fc9);}}}}else{let _0x323478;try{_0x323478=_0x26ce91['dataView']||(_0x26ce91[_0x3ef455(0x2aa)]=new DataView(_0x26ce91[_0x3ef455(0x570)],_0x26ce91['byteOffset'],_0x26ce91[_0x3ef455(0x8e4)]+0x3>>0x2<<0x2));}catch(_0x38a182){_0x323478=_0x26ce91[_0x3ef455(0x2aa)]||(_0x26ce91[_0x3ef455(0x2aa)]=new DataView(_0x26ce91['buffer'],_0x26ce91[_0x3ef455(0x6e4)],_0x26ce91['buffer'][_0x3ef455(0x8e4)]-_0x26ce91[_0x3ef455(0x6e4)]));}let _0x45b11b=_0x323478['getInt32'](position)<<0x4,_0x4c7bd0=_0x2a6fc9-position,_0xf4db66;if(_0x4c7bd0>0x4)_0xf4db66=position+0x8<=_0x26ce91['length']?_0x323478[_0x3ef455(0x632)](position+0x4):_0x26ce91[position+0x4]<<0x18|_0x26ce91[position+0x5]<<0x10|_0x26ce91[position+0x6]<<0x8|_0x26ce91[position+0x7],_0x45b11b|=_0xf4db66>>>0x1c,_0x4c7bd0<=0x6&&(_0xf4db66&=-0x10000),_0xf4db66=_0xf4db66<<0x4,_0x4c7bd0>0x8&&(_0xf4db66=_0xf4db66|_0x26ce91[position+0x8]>>0x4);else _0xf4db66=0x0;_0x1abf8c<0x10&&(_0x45b11b=_0x45b11b^0x7fffffff,_0xf4db66=~_0xf4db66);_0x14e5cc[_0x50930f]=_0x45b11b,_0x14e5cc[_0xa08e68]=_0xf4db66,_0x1e6bf6=_0x37dc68[0x0],position+=0x9;if(_0x4c7bd0>0x9&&_0x26ce91[position]>0x0){_0x1e6bf6=BigInt(_0x1e6bf6);let _0x441bc7=_0x45b11b>>0x14&0x7ff,_0x47bc65=_0x26ce91[position-0x1]&0xf;_0x1e6bf6+=BigInt(_0x47bc65)<<BigInt(_0x441bc7-0x437);while((_0x47bc65=_0x26ce91[position])>0x0&&position++<_0x2a6fc9){_0x1e6bf6+=BigInt(_0x47bc65&0x7f)<<BigInt((_0x3cc28f-position)*0x7+_0x441bc7-0x3f8);}}}}else{_0x1abf8c==0x1b&&position++;_0x1e6bf6=_0x26c130(_0x26ce91,_0x2a6fc9);if(position<_0x2a6fc9)position--;}while(position<_0x2a6fc9){if(_0x26ce91[position]===0x0)position++;if(_0x48b983)return _0xe9d65[_0x3ef455(0x2c5)]=position,_0x1e6bf6;let _0x55b929=_0x5a3157(_0x26ce91,position,_0x2a6fc9,!![]);if(_0x1e6bf6 instanceof Array)_0x1e6bf6[_0x3ef455(0x27f)](_0x55b929);else _0x1e6bf6=[_0x1e6bf6,_0x55b929];}return _0x1e6bf6;}const _0x4b16bb=()=>_0x495dc9=!![],_0xe9d65={'writeKey':_0x3cf6e4,'readKey':_0x5a3157,'enableNullTermination':_0x4b16bb};let _0x478014=[],_0xaa4464=0x0;const _0x5e44b8=typeof Buffer!=='undefined',_0x2f4cda=_0x5e44b8?Buffer[_0x24ac46(0x5fc)]:Uint8Array,_0x59b0e9=_0x520509=>{const _0x523e92=_0x24ac46;let _0x164e64;_0xaa4464+0x64>_0x478014[_0x523e92(0x788)]&&(_0x478014=new _0x2f4cda(0x2000),_0xaa4464=0x0,_0x164e64=!![]);try{let _0x3a9879=_0x478014[_0x523e92(0x848)](_0xaa4464,_0xaa4464=_0x3cf6e4(_0x520509,_0x478014,_0xaa4464));if(_0xaa4464>_0x478014[_0x523e92(0x788)]){if(_0x164e64)throw new Error(_0x523e92(0x295));return _0x59b0e9(_0x520509);}return _0x3a9879;}catch(_0x597b80){if(_0x164e64)throw _0x597b80;return _0xaa4464=_0x478014['length'],_0x59b0e9(_0x520509);}},_0x37d272=_0xeee60=>{return _0x5a3157(_0xeee60,0x0,_0xeee60['length']);},fromCharCode=String[_0x24ac46(0x4e3)];function _0x2f4c62(){const _0x294432=_0x24ac46;let _0x506d53=_0x294432(0x3f6),_0x185990=[];for(let _0x5359f2=0x0;_0x5359f2<0x30;_0x5359f2++){let _0x1623e0=fromCharCode((_0x5359f2&0xf)+0x61)+fromCharCode((_0x5359f2>>0x4)+0x61);_0x506d53+='\x0a\x09\x09let\x20'+_0x1623e0+_0x294432(0x787)+_0x1623e0+_0x294432(0x8f7)+_0x1623e0+'\x20>=\x200x80)\x20'+_0x1623e0+'\x20=\x20finishUtf8('+_0x1623e0+_0x294432(0x237)+_0x1623e0+_0x294432(0x1ca)+_0x1623e0+'\x20=\x20source[position++]\x0a\x09\x09\x09else\x0a\x09\x09\x09\x09return\x20fromCharCode('+_0x185990+_0x294432(0x6a8),_0x185990[_0x294432(0x27f)](_0x1623e0);}return _0x506d53+=_0x294432(0x67b)+_0x185990+_0x294432(0x343),_0x506d53;}const readString=typeof process!==_0x24ac46(0x312)&&process[_0x24ac46(0x522)]?function(_0x270f2a){let {setPosition:_0x214328,getPosition:_0x3b7926,readString:readString}=_0x270f2a;return _0x3b8d9e=>{_0x214328(position);let _0x18737c=readString(_0x3b8d9e);return position=_0x3b7926(),_0x18737c;};}(new Function(_0x24ac46(0x4e3),_0x24ac46(0x30f)+_0x2f4c62()+';return\x20{'+_0x24ac46(0x1e6)+'getPosition()\x20{\x20return\x20position\x20},'+_0x24ac46(0x6a3))(fromCharCode)):eval(_0x2f4c62());function _0x26c130(_0x4c13de,_0x2c86fa){if(_0x4c13de[_0x2c86fa]>0x0){let _0x1549b5=_0x4c13de[_0x2c86fa];try{return _0x4c13de[_0x2c86fa]=0x0,readString(_0x4c13de);}finally{_0x4c13de[_0x2c86fa]=_0x1549b5;}}else return readString(_0x4c13de);}function _0x5b7fa0(_0x4dcbbe,_0x4c5b48){const _0x1cf21c=_0x24ac46;if(typeof _0x4dcbbe==_0x1cf21c(0x7f6)){if(!_0x4dcbbe)return _0x4c5b48==null?0x0:-0x1;if(_0x4dcbbe[_0x1cf21c(0x28f)]){if(_0x4c5b48==null)return 0x1;else return _0x4c5b48[_0x1cf21c(0x28f)]?_0x4dcbbe[_0x1cf21c(0x28f)](_0x4c5b48):-0x1;}let _0x1b6162;if(_0x4c5b48 instanceof Array){let _0x1a8b94=0x0;while((_0x1b6162=_0x5b7fa0(_0x4dcbbe[_0x1a8b94],_0x4c5b48[_0x1a8b94]))==0x0&&_0x1a8b94<=_0x4dcbbe[_0x1cf21c(0x788)]){_0x1a8b94++;}return _0x1b6162;}_0x1b6162=_0x5b7fa0(_0x4dcbbe[0x0],_0x4c5b48);if(_0x1b6162==0x0&&_0x4dcbbe[_0x1cf21c(0x788)]>0x1)return 0x1;return _0x1b6162;}else{if(typeof _0x4dcbbe==typeof _0x4c5b48)return typeof _0x4dcbbe==='symbol'&&(_0x4dcbbe=Symbol[_0x1cf21c(0x76b)](_0x4dcbbe),_0x4c5b48=Symbol[_0x1cf21c(0x76b)](_0x4c5b48)),_0x4dcbbe<_0x4c5b48?-0x1:_0x4dcbbe===_0x4c5b48?0x0:0x1;else{if(typeof _0x4c5b48==_0x1cf21c(0x7f6)){if(_0x4c5b48 instanceof Array)return-_0x5b7fa0(_0x4c5b48,_0x4dcbbe);return 0x1;}else return _0xfc3919[typeof _0x4dcbbe]<_0xfc3919[typeof _0x4c5b48]?-0x1:0x1;}}}const _0xfc3919={'symbol':0x0,'undefined':0x1,'boolean':0x2,'number':0x3,'string':0x4},_0x57d039=null,_0x5ae76d=new Uint8Array([0xff]);return dist[_0x24ac46(0x330)]=_0x5ae76d,dist['MINIMUM_KEY']=_0x57d039,dist['compareKeys']=_0x5b7fa0,dist[_0x24ac46(0x80e)]=_0x4b16bb,dist[_0x24ac46(0x2f5)]=_0xe9d65,dist[_0x24ac46(0x2ce)]=_0x37d272,dist[_0x24ac46(0x580)]=_0x5a3157,dist[_0x24ac46(0x526)]=_0x59b0e9,dist['writeKey']=_0x3cf6e4,dist;}var keyenc,hasRequiredKeyenc;function requireKeyenc(){const _0x297021=_0xef081e;if(hasRequiredKeyenc)return keyenc;hasRequiredKeyenc=0x1;const {writeKey:_0xba1017}=requireDist(),_0x131d12=0x7ba,_0x41c5ae=0x1000;function _0x923947(_0x789517,_0x52ca47){const _0x7ff32a=_0x2fc2;switch(typeof _0x789517){case _0x7ff32a(0x43c):return _0x789517['length']<=_0x131d12&&_0x789517[_0x7ff32a(0x56c)]();case _0x7ff32a(0x559):case _0x7ff32a(0x699):return!![];case'object':if(_0x789517===null)return!![];if(Array[_0x7ff32a(0x888)](_0x789517)){if(_0x52ca47>0x8||_0x789517[_0x7ff32a(0x788)]>_0x131d12)return![];for(let _0x49a166=0x0;_0x49a166<_0x789517[_0x7ff32a(0x788)];_0x49a166++)if(!_0x923947(_0x789517[_0x49a166],_0x52ca47+0x1))return![];return!![];}return Buffer[_0x7ff32a(0x605)](_0x789517)&&_0x789517[_0x7ff32a(0x788)]<=_0x131d12;default:return![];}}function _0x519887(_0x2a048e,_0x5cfeca){const _0x56cd29=_0x2fc2,_0x37eb10=typeof _0x2a048e;if(_0x37eb10===_0x56cd29(0x43c)){if(_0x2a048e[_0x56cd29(0x788)]>=0x40||!_0x2a048e[_0x56cd29(0x56c)]()){if(!_0x923947(_0x2a048e,0x0))return-0x1;}}else{if(_0x37eb10!==_0x56cd29(0x559)){if(Array[_0x56cd29(0x888)](_0x2a048e)?_0x2a048e['length']===0x0||!_0x923947(_0x2a048e,0x0):!_0x923947(_0x2a048e,0x0))return-0x1;}}let _0x21cf5b;try{_0x21cf5b=_0xba1017(_0x2a048e,_0x5cfeca,0x0);}catch{return-0x1;}return _0x21cf5b>0x0&&_0x21cf5b<=_0x131d12?_0x21cf5b:-0x1;}return keyenc={'encodeKey':_0x519887,'KEY_BUF_SIZE':_0x41c5ae,'NO_FAST':Symbol(_0x297021(0x49f))},keyenc;}var okdbHlc,hasRequiredOkdbHlc;function requireOkdbHlc(){const _0x45c024=_0xef081e;if(hasRequiredOkdbHlc)return okdbHlc;hasRequiredOkdbHlc=0x1;const _0x2bb317=0x400,_0x94b9f1=_0x2bb317-0x1,_0x159c42=0xea60;function _0x1d6d8c(_0x44ea67,_0x2e8e73){const _0x202369=_0x2fc2;return _0x44ea67*_0x2bb317+Math[_0x202369(0x31f)](0x0,Math[_0x202369(0x439)](_0x2e8e73,_0x94b9f1));}function _0x41eab8(_0x4e3711){const _0x53ebfd=_0x2fc2,_0x2177b3=Math[_0x53ebfd(0x31f)](0x0,Number(_0x4e3711)||0x0),_0x4464a9=_0x2177b3%_0x2bb317,_0x55bb8c=(_0x2177b3-_0x4464a9)/_0x2bb317;return{'pt':_0x55bb8c,'l':_0x4464a9};}function _0x5e5cb9(_0x9554fe,_0x21841f=Date[_0x45c024(0x3d4)]()){const _0x2863ca=_0x45c024,{pt:_0x5b10a3,l:_0x38dc17}=_0x41eab8(_0x9554fe),_0x2fd9c7=Math[_0x2863ca(0x31f)](_0x5b10a3,_0x21841f),_0x5b1e34=_0x2fd9c7===_0x5b10a3?Math[_0x2863ca(0x439)](_0x38dc17+0x1,_0x94b9f1):0x0;return _0x1d6d8c(_0x2fd9c7,_0x5b1e34);}function _0x1892ed(_0x7dd50e,_0xb47afe,_0x4fa5a4=Date[_0x45c024(0x3d4)]()){const _0x4a11ae=_0x45c024,{pt:_0x37115c,l:_0x343ec4}=_0x41eab8(_0x7dd50e),{pt:_0x133bb1,l:_0x157f35}=_0x41eab8(_0xb47afe),_0x5b93df=Math[_0x4a11ae(0x31f)](_0x37115c,_0x133bb1,_0x4fa5a4);let _0x997070;if(_0x5b93df===_0x37115c&&_0x5b93df===_0x133bb1)_0x997070=Math['min'](Math[_0x4a11ae(0x31f)](_0x343ec4,_0x157f35)+0x1,_0x94b9f1);else{if(_0x5b93df===_0x37115c)_0x997070=Math[_0x4a11ae(0x439)](_0x343ec4+0x1,_0x94b9f1);else _0x5b93df===_0x133bb1?_0x997070=Math[_0x4a11ae(0x439)](_0x157f35+0x1,_0x94b9f1):_0x997070=0x0;}return _0x1d6d8c(_0x5b93df,_0x997070);}function _0x4fe8b7(_0x47f633,_0x28e6d){const _0x1e1d50=Number(_0x47f633)||0x0,_0x5348dc=Number(_0x28e6d)||0x0;if(_0x1e1d50<_0x5348dc)return-0x1;if(_0x1e1d50>_0x5348dc)return 0x1;return 0x0;}function _0x42d147(_0x433f7d){return _0x41eab8(_0x433f7d)['pt'];}return okdbHlc={'send':_0x5e5cb9,'recv':_0x1892ed,'compare':_0x4fe8b7,'toMs':_0x42d147,'encode':_0x1d6d8c,'decode':_0x41eab8,'SCALE':_0x2bb317,'L_MAX':_0x94b9f1,'DRIFT_MAX':_0x159c42},okdbHlc;}var env,hasRequiredEnv;function requireEnv(){const _0x374ff4=_0xef081e;if(hasRequiredEnv)return env;hasRequiredEnv=0x1;const {fromArray:_0x17cb10,chunkedRange:_0x2c13c5,pinnedChunks:_0x1fc9bd,claimPrefetch:_0x28d7d0}=requireIterable(),{reclass:_0xea790,NotImplementedNative:_0x15b955,OKDBError:_0x52ad52,optionsArg:_0x27406c}=requireErrors(),{OKDBViews:_0x3a53e7}=requireViews(),{OKDBQueue:_0x2b739c}=requireQueue(),{OKDBTimeMachine:_0x13ff99}=requireTimemachine(),_0x23178b=_0x3a1325=>{const _0x333ff3=_0x2fc2;try{return!_0x3a1325[_0x333ff3(0x8cf)]||_0x3a1325[_0x333ff3(0x8cf)][_0x333ff3(0x640)](_0x333ff3(0x4e7));}catch{return!![];}},{OKDBFiles:_0x540c13}=requireFiles(),{OKDBEngines:_0x59f20a,OKDBPipelines:_0x3f3ebb}=requireEngines(),{OKDBFunctions:_0x3d95bf}=requireFunctions(),_0x58b6f6=requireProcessor(),{RawDb:_0x29ee88}=requireRawdb(),_0x5de863=requireBridge();let _0x4ad9ba=null;const _0x1eb3db=()=>_0x4ad9ba||=requireOkdbTransaction(),_0x3eb6e3=(..._0x5d26a2)=>requireOkdbGuardedRange()[_0x374ff4(0x275)](..._0x5d26a2),_0x57b4e0=Buffer['from']([0xff]),_0x45dd4a=process.env.OKDB_NATIVE_RAW_READS!=='0',_0x5385f6=_0x45dd4a&&process.env.OKDB_NATIVE_FAST_GET!=='0',{NO_FAST:_0x4fc446}=requireKeyenc(),_0xdd3cc9=new Set(_0x45dd4a?[_0x374ff4(0x433),_0x374ff4(0x657),_0x374ff4(0x5e7),'getChanges','getKeys']:[]),_0x4559cc=new Set([_0x374ff4(0x292),'getEntry',_0x374ff4(0x2d2),_0x374ff4(0x433),_0x374ff4(0x541),_0x374ff4(0x73d),_0x374ff4(0x2e0),_0x374ff4(0x4bb),_0x374ff4(0x634),_0x374ff4(0x657),_0x374ff4(0x87c),_0x374ff4(0x5e7),_0x374ff4(0x5ea),_0x374ff4(0x278),'getClock',_0x374ff4(0x257),_0x374ff4(0x4c2),'now',_0x374ff4(0x512),_0x374ff4(0x416),_0x374ff4(0x259),_0x374ff4(0x32d),_0x374ff4(0x30b),_0x374ff4(0x59f),_0x374ff4(0x376),_0x374ff4(0x610),_0x374ff4(0x71e),_0x374ff4(0x6c9),'getSchema',_0x374ff4(0x5fa),_0x374ff4(0x8cd),_0x374ff4(0x871),_0x374ff4(0x5c8),_0x374ff4(0x31d),_0x374ff4(0x25a),_0x374ff4(0x3e9),_0x374ff4(0x4f1),_0x374ff4(0x686),'path','id',_0x374ff4(0x38e),_0x374ff4(0x52e),_0x374ff4(0x706),_0x374ff4(0x311),_0x374ff4(0x3b6)]),_0x4e96aa=new Set([_0x374ff4(0x77b),_0x374ff4(0x3cf),'reverse',_0x374ff4(0x419),_0x374ff4(0x64f),_0x374ff4(0x4ad),_0x374ff4(0x429),_0x374ff4(0x6fd),_0x374ff4(0x42a),_0x374ff4(0x5d0),'transaction',_0x374ff4(0x59b),_0x374ff4(0x5ce),_0x374ff4(0x779)]);function _0x56b7b1(_0x49d8da,_0x1d6f6b,_0x5c25ca){const _0x476d48=new Map();return(_0x5117ea,_0x7e0f82)=>{const _0x26ae10=_0x2fc2,_0x4c3365=JSON[_0x26ae10(0x754)](_0x7e0f82),_0x3a2e7c=_0x476d48[_0x26ae10(0x292)](_0x4c3365);if(_0x3a2e7c){if(_0x3a2e7c['state']==='pending')throw _0x200a25();_0x476d48[_0x26ae10(0x46b)](_0x4c3365);if(_0x3a2e7c[_0x26ae10(0x480)]==='err')throw _0x3a2e7c['value'];return _0x3a2e7c[_0x26ae10(0x744)];}const _0x492512=_0x5117ea(..._0x7e0f82);if(!_0x492512||typeof _0x492512['then']!==_0x26ae10(0x484))return _0x492512;const _0x49b822={'state':_0x26ae10(0x654),'value':undefined},_0x2b957f=(_0x3d0a9e,_0x27ad95)=>{const _0x4eebbd=_0x26ae10;_0x49b822['state']=_0x3d0a9e,_0x49b822['value']=_0x27ad95;if(_0x476d48[_0x4eebbd(0x292)](_0x4c3365)!==_0x49b822)return;setTimeout(()=>_0x476d48[_0x4eebbd(0x292)](_0x4c3365)===_0x49b822&&_0x476d48[_0x4eebbd(0x46b)](_0x4c3365),0x7530)[_0x4eebbd(0x8c7)]();try{_0x49d8da[_0x4eebbd(0x82e)][_0x4eebbd(0x5a1)](_0x4eebbd(0x3d2),null,_0x4eebbd(0x599),[_0x4eebbd(0x683),{'env':_0x49d8da['name'],'type':_0x1d6f6b,'field':_0x5c25ca}],!![]);}catch{}};_0x492512[_0x26ae10(0x458)](_0x590bad=>_0x2b957f('ok',_0x590bad),_0x274d36=>_0x2b957f(_0x26ae10(0x527),_0x274d36));for(let _0x446ad8=0x0;_0x446ad8<0x64&&_0x49b822['state']===_0x26ae10(0x654);_0x446ad8++)process[_0x26ae10(0x81a)]();if(_0x49b822['state']==='ok')return _0x49b822['value'];if(_0x49b822[_0x26ae10(0x480)]===_0x26ae10(0x527))throw _0x49b822[_0x26ae10(0x744)];_0x476d48[_0x26ae10(0x204)](_0x4c3365,_0x49b822);throw _0x200a25();};}function _0x200a25(){const _0x1d21dc=_0x374ff4;return Object[_0x1d21dc(0x7ac)](new Error(_0x1d21dc(0x7fd)),{'code':_0x1d21dc(0x7b4)});}class _0x38177b{constructor(_0x392b03,_0x6b63fa){const _0x3b6c61=_0x374ff4;this['okdb']=_0x392b03,this[_0x3b6c61(0x686)]=_0x6b63fa,this[_0x3b6c61(0x3d2)]=_0x392b03[_0x3b6c61(0x3d2)],this['log']=_0x392b03[_0x3b6c61(0x6d5)],this[_0x3b6c61(0x489)]=!![],this[_0x3b6c61(0x678)]=null,this[_0x3b6c61(0x59a)]=new _0x3a53e7(this),this[_0x3b6c61(0x882)]=new _0x58b6f6(this);if(!_0x6b63fa[_0x3b6c61(0x212)]('~')||_0x6b63fa[_0x3b6c61(0x2a1)](_0x3b6c61(0x2e9)))this['queue']=new _0x2b739c(this);if(!_0x6b63fa[_0x3b6c61(0x212)]('~'))this[_0x3b6c61(0x1c3)]=new _0x540c13(this);this[_0x3b6c61(0x1f1)]=new _0x3d95bf(_0x392b03,_0x6b63fa),this['engines']=new _0x59f20a(_0x392b03,_0x6b63fa,_0x392b03[_0x3b6c61(0x2af)]),this[_0x3b6c61(0x4d2)]=new _0x3f3ebb(_0x392b03,_0x6b63fa);if(!_0x6b63fa[_0x3b6c61(0x212)]('~')&&_0x392b03[_0x3b6c61(0x1cc)][_0x3b6c61(0x4e7)]&&_0x23178b(_0x392b03))this['timeMachine']=new _0x13ff99(this);_0x5de863[_0x3b6c61(0x536)](this[_0x3b6c61(0x844)],this);const _0x12705f=this;this[_0x3b6c61(0x27a)]={async 'transaction'(_0x395f62){const _0x53c114=_0x3b6c61,_0x13ba1b=[];_0x12705f[_0x53c114(0x678)]=_0x13ba1b;try{_0x395f62();}finally{_0x12705f['_txnBuf']=null;}return _0x12705f['okdb']['_wb']['enqueue'](_0x53c114(0x4f8),_0x12705f[_0x53c114(0x686)],_0x53c114(0x7dc),[_0x13ba1b]);},'drain'(){const _0x55a7ed=_0x3b6c61;return _0x12705f[_0x55a7ed(0x82e)][_0x55a7ed(0x7de)]['drain']();},'flushLmdb'(){const _0x23e68c=_0x3b6c61;return _0x12705f[_0x23e68c(0x82e)][_0x23e68c(0x7de)][_0x23e68c(0x504)]();},'markClosed'(){}};const _0x5cf9e3=new _0x29ee88(this,'');_0x5cf9e3[_0x3b6c61(0x7f2)]=()=>({'lastTxnId':this['_n'](_0x3b6c61(0x38e),[])}),Object[_0x3b6c61(0x43a)](_0x5cf9e3,'committed',{'get':()=>this[_0x3b6c61(0x82e)][_0x3b6c61(0x7de)]['drain'](),'configurable':!![]}),Object[_0x3b6c61(0x43a)](_0x5cf9e3,'flushed',{'get':()=>this[_0x3b6c61(0x82e)][_0x3b6c61(0x7de)]['drain'](),'configurable':!![]});const _0x95c3b6=_0x5cf9e3['get'][_0x3b6c61(0x76f)](_0x5cf9e3);_0x5cf9e3[_0x3b6c61(0x292)]=_0x1f4302=>_0x1f4302==='clock'?this['_n']('getClock',[null]):_0x95c3b6(_0x1f4302),this['db']=_0x5cf9e3;}async[_0x374ff4(0x5ca)](){const _0x2d0ef9=_0x374ff4;this[_0x2d0ef9(0x529)]=!![];}get[_0x374ff4(0x2b4)](){const _0x57dbd2=_0x374ff4;return new Map(this[_0x57dbd2(0x82e)][_0x57dbd2(0x5a1)]('db',null,'formerOrigins',[this[_0x57dbd2(0x686)]],![]));}get[_0x374ff4(0x48a)](){const _0x4f3445=_0x374ff4;return this['_typesDb']||(this[_0x4f3445(0x3ff)]=new _0x29ee88(this,_0x4f3445(0x1fa)));}[_0x374ff4(0x60e)](_0x8aaa0f){const _0x400870=_0x374ff4,_0xbeaf2d=this['typesDb'][_0x400870(0x292)](_0x8aaa0f);if(_0xbeaf2d===undefined||String(_0x8aaa0f)[_0x400870(0x212)](_0x400870(0x8a4))||String(_0x8aaa0f)[_0x400870(0x212)]('__fts:')){const {OKDBError:_0x122e05}=requireErrors();throw new _0x122e05(_0x400870(0x7ec)+_0x8aaa0f+'\x22\x20is\x20not\x20registered',_0x400870(0x296),{'type':_0x8aaa0f});}const _0x5d5e72=this,_0x3d4e89=new _0x29ee88(_0x5d5e72,_0x400870(0x373)+_0x8aaa0f+':index'),_0x3a0ab7=new Map();for(const _0x50e165 of _0x3d4e89[_0x400870(0x541)]()){const _0x3eaba4=_0x3d4e89['get'](_0x50e165)||{},_0x28c293={'parts':_0x50e165['split']('~'),'db':new _0x29ee88(_0x5d5e72,_0x400870(0x373)+_0x8aaa0f+':index:'+_0x50e165,{'dupSort':!![]})};if(_0x3eaba4['geoConfig'])_0x28c293[_0x400870(0x7a7)]=_0x3eaba4[_0x400870(0x7a7)];if(_0x3eaba4[_0x400870(0x5ef)])_0x28c293[_0x400870(0x5ef)]=!![];if(_0x3eaba4[_0x400870(0x1bb)])_0x28c293[_0x400870(0x1bb)]=!![];if(_0x3eaba4[_0x400870(0x4b5)])_0x28c293['createdBy']=_0x3eaba4[_0x400870(0x4b5)];_0x28c293['usedBy']=new Set((_0x3eaba4[_0x400870(0x220)]??[])[_0x400870(0x642)](_0x4a9079=>_0x4a9079[_0x400870(0x7af)]+':'+_0x4a9079[_0x400870(0x686)])),_0x3a0ab7[_0x400870(0x204)](_0x50e165,_0x28c293);}return{'root':new _0x29ee88(_0x5d5e72,_0x400870(0x373)+_0x8aaa0f),'data':new _0x29ee88(_0x5d5e72,_0x400870(0x373)+_0x8aaa0f+':data',{'useVersions':!![]}),'indexes':_0x3d4e89,'clockToChange':new _0x29ee88(_0x5d5e72,'type:'+_0x8aaa0f+':clockToChange'),'keyToChange':new _0x29ee88(_0x5d5e72,_0x400870(0x373)+_0x8aaa0f+_0x400870(0x342)),'fieldSchema':new Map(Object[_0x400870(0x84a)](_0xbeaf2d[_0x400870(0x569)]||{})['map'](([_0xf445ef,_0x6c29f9])=>[_0xf445ef,new Set(Array[_0x400870(0x888)](_0x6c29f9)?_0x6c29f9:[_0x6c29f9])])),'indexToDb':_0x3a0ab7,'ftsToDb':null,'schema':_0xbeaf2d[_0x400870(0x284)]||null,'defaultTTL':_0xbeaf2d[_0x400870(0x410)]||null};}get[_0x374ff4(0x301)](){const _0x33f3d3=_0x374ff4,_0x9a5cf8=this,_0x2ec630=()=>_0x9a5cf8[_0x33f3d3(0x416)]();return{'get':_0x173775=>{try{return _0x9a5cf8['_getType'](_0x173775);}catch{return undefined;}},'has':_0x154c67=>_0x2ec630()[_0x33f3d3(0x2a1)](_0x154c67),'keys':()=>_0x2ec630()[Symbol['iterator']](),get 'size'(){const _0x5870b4=_0x33f3d3;return _0x2ec630()[_0x5870b4(0x788)];}};}[_0x374ff4(0x5b8)](){return this['listTypes']();}get[_0x374ff4(0x3da)](){const _0x46356c=_0x374ff4;return this['_changeToClockDb']||(this[_0x46356c(0x680)]=new _0x29ee88(this,'changes'));}get[_0x374ff4(0x3a2)](){const _0xd574f6=_0x374ff4;return this[_0xd574f6(0x3a4)]||(this[_0xd574f6(0x3a4)]=new _0x29ee88(this,'clocks'));}[_0x374ff4(0x208)](_0x662e26){const _0x47f549=_0x374ff4;return this['_n'](_0x47f549(0x6e2),[_0x662e26]);}get['_noChangelog'](){const _0x183347=_0x374ff4;return!this['_n'](_0x183347(0x426),[],![]);}get[_0x374ff4(0x1e0)](){const _0x50bacb=_0x374ff4;return this['__syncOverride']!==undefined?this[_0x50bacb(0x7d1)]:this['_n'](_0x50bacb(0x426),[],![]);}set[_0x374ff4(0x1e0)](_0x58bb99){const _0x2b5439=_0x374ff4;this[_0x2b5439(0x7d1)]=_0x58bb99;}get[_0x374ff4(0x803)](){const _0x1e3a98=_0x374ff4;return this[_0x1e3a98(0x3e2)]||(this[_0x1e3a98(0x3e2)]=new(requireLock())[(_0x1e3a98(0x23d))](this['okdb'],'~system','compact',{'ttlMs':0xea60}));}get[_0x374ff4(0x844)](){const _0x396b90=_0x374ff4;return this[_0x396b90(0x85f)]??(this[_0x396b90(0x85f)]=this['_n'](_0x396b90(0x844),[]));}get['id'](){return this['_n']('id',[]);}get[_0x374ff4(0x209)](){const _0x1d0e99=_0x374ff4;return this[_0x1d0e99(0x82e)][_0x1d0e99(0x209)];}['_n'](_0x561b56,_0x2c9b7e){const _0x3820fa=_0x374ff4;return this[_0x3820fa(0x82e)][_0x3820fa(0x5a1)](_0x3820fa(0x4f8),this[_0x3820fa(0x686)],_0x561b56,_0x2c9b7e,!_0x4559cc['has'](_0x561b56));}[_0x374ff4(0x550)](_0x8169d0){const _0x2f9485=_0x374ff4;return this[_0x2f9485(0x82e)][_0x2f9485(0x36f)](_0x8169d0);}[_0x374ff4(0x299)](_0x44c9c3,_0xe7d514){const _0x476480=_0x374ff4;if(_0xdd3cc9['has'](_0x44c9c3===_0x476480(0x59f)?_0xe7d514[0x1]:_0x44c9c3))return this['okdb']['_callRows'](this[_0x476480(0x686)],_0x44c9c3,_0xe7d514);return this[_0x476480(0x82e)]['_callPacked'](_0x476480(0x4f8),this[_0x476480(0x686)],_0x44c9c3,_0xe7d514);}[_0x374ff4(0x7b5)](_0x3a0772={'useReadTransaction':![]}){return new(_0x1eb3db())(this,_0x3a0772);}async[_0x374ff4(0x592)](_0x4e5e80,_0x3523b9){const _0x96713c=_0x374ff4;return _0x1eb3db()[_0x96713c(0x2be)](this,_0x4e5e80,_0x3523b9);}[_0x374ff4(0x26b)](_0x1f41d1,_0x31601e){const _0x41b4a5=_0x374ff4;if(this['_txnBuf'])this[_0x41b4a5(0x678)]['push']({'action':_0x1f41d1,'args':_0x31601e});else this['_n'](_0x1f41d1,_0x31601e);}[_0x374ff4(0x820)](_0x374772,_0x4e81e1,_0x5d8840,_0x3063e4,_0x24fd42){const _0x4b2aa2=_0x374ff4;this['_low'](_0x4b2aa2(0x1dd),[_0x4e81e1,_0x5d8840,_0x3063e4,_0x24fd42]);}[_0x374ff4(0x2bf)](_0x73235,_0x5cf873,_0x264e7e,_0x14b899,_0x4e9ad8){const _0x26626c=_0x374ff4;this[_0x26626c(0x26b)]('update',[_0x5cf873,_0x264e7e,_0x14b899,_0x4e9ad8]);}[_0x374ff4(0x55a)](_0x537293,_0x4ddef3,_0x333483,_0x5b6922,_0x4778b5){const _0xfc5779=_0x374ff4;this['_low'](_0xfc5779(0x1c8),[_0x4ddef3,_0x333483,_0x5b6922,_0x4778b5]);}['_create'](_0x112bd9,_0x4f9afa,_0xf786d0,_0x5a9d4f,_0x5aae7d){const _0x2ba24d=_0x374ff4;this[_0x2ba24d(0x26b)](_0x2ba24d(0x1c2),[_0x4f9afa,_0xf786d0,_0x5a9d4f,_0x5aae7d]);}[_0x374ff4(0x5d5)](_0x366c7b,_0x4c83f9,_0x3a5282,_0x4fb986){const _0x20295b=_0x374ff4;this[_0x20295b(0x26b)](_0x20295b(0x28d),[_0x4c83f9,_0x3a5282,_0x4fb986]);}['_setTTL'](_0x426616,_0x4c1b23,_0x2d2f4d,_0x473f42){const _0x4673fd=_0x374ff4;this[_0x4673fd(0x26b)](_0x4673fd(0x383),[_0x4c1b23,_0x2d2f4d,_0x473f42]);}[_0x374ff4(0x7e4)](_0x4f1148,_0x3aa7d8,_0x196e2c){const _0x1521d4=_0x374ff4;this['_low'](_0x1521d4(0x41f),[_0x3aa7d8,_0x196e2c]);}['_w'](_0x4b2dc0,_0x2a477b){const _0x5693c9=_0x374ff4;return this[_0x5693c9(0x82e)][_0x5693c9(0x7de)]['enqueue'](_0x5693c9(0x4f8),this['name'],_0x4b2dc0,_0x2a477b);}['put'](_0x5c9442,_0x1c4ddd,_0xeec4c2,_0x415884={}){const _0x239fb7=_0x374ff4;return this['_w'](_0x239fb7(0x1dd),[_0x5c9442,_0x1c4ddd,_0xeec4c2,_0x415884]);}['update'](_0x2a6d5e,_0x10e4ff,_0x2a786c,_0x359547={}){const _0x21a6ef=_0x374ff4;return this['_w'](_0x21a6ef(0x739),[_0x2a6d5e,_0x10e4ff,_0x2a786c,_0x359547]);}['patch'](_0x14bb4c,_0x3d38ec,_0x69c5a7,_0x88cef3={}){return this['_w']('patch',[_0x14bb4c,_0x3d38ec,_0x69c5a7,_0x88cef3]);}[_0x374ff4(0x1c2)](_0x1d2b9e,_0x107814,_0x5f2bee,_0x38ce8b={}){const _0x3c4bcb=_0x374ff4;return this['_w'](_0x3c4bcb(0x1c2),[_0x1d2b9e,_0x107814,_0x5f2bee,_0x38ce8b]);}[_0x374ff4(0x28d)](_0x5d059f,_0x24f0ac,_0xbafc15={}){return this['_w']('remove',[_0x5d059f,_0x24f0ac,_0xbafc15]);}['get'](_0x14cf44,_0x3cc395,_0x26e21a){const _0x1d1290=_0x374ff4;if(_0x5385f6&&typeof _0x14cf44===_0x1d1290(0x43c)){const _0x2ee753=this[_0x1d1290(0x82e)][_0x1d1290(0x7cd)](this['name'],_0x14cf44,_0x3cc395);if(_0x2ee753!==_0x4fc446)return _0x2ee753===null?this['_n'](_0x1d1290(0x292),[_0x14cf44,_0x3cc395]):_0x2ee753;}if(_0x45dd4a&&(typeof _0x3cc395==='string'||typeof _0x3cc395===_0x1d1290(0x559))){const _0xf52438=this[_0x1d1290(0x82e)]['_getRaw'](this[_0x1d1290(0x686)],_0x14cf44,_0x3cc395);if(_0xf52438!==null)return _0xf52438;}return this['_n'](_0x1d1290(0x292),[_0x14cf44,typeof _0x3cc395===_0x1d1290(0x3e0)?null:_0x3cc395]);}['getMany'](_0xab06e5,_0x54429e,_0x3394f1){const _0x265b03=_0x374ff4,_0x2be00f=[_0xab06e5,Array[_0x265b03(0x888)](_0x54429e)&&_0x54429e[_0x265b03(0x3cc)](_0x18523d=>typeof _0x18523d===_0x265b03(0x3e0))?_0x54429e[_0x265b03(0x642)](_0x8530ed=>typeof _0x8530ed===_0x265b03(0x3e0)?null:_0x8530ed):_0x54429e];return _0x45dd4a?this['okdb'][_0x265b03(0x764)](this[_0x265b03(0x686)],_0x265b03(0x2d2),_0x2be00f):this['_n'](_0x265b03(0x2d2),_0x2be00f);}['getEntry'](_0xc5c9ce,_0xc658ed,_0x405733){const _0x53746c=_0x374ff4;return this['_n'](_0x53746c(0x408),[_0xc5c9ce,typeof _0xc658ed===_0x53746c(0x3e0)?null:_0xc658ed]);}['getCount'](_0x13ac49,_0x512999){const _0x2a0c84=_0x374ff4;return this['_assertRangeOptions'](_0x2a0c84(0x2e0),_0x512999),this['_n'](_0x2a0c84(0x2e0),[_0x13ac49,_0x300663(_0x512999)]);}[_0x374ff4(0x4c4)](_0x12e142,_0x20770b,_0x4f918f=[]){const _0xe4c2fe=_0x374ff4;if(!_0x20770b||typeof _0x20770b!==_0xe4c2fe(0x7f6))return;for(const _0x151f76 of Object[_0xe4c2fe(0x607)](_0x20770b)){if(!_0x4e96aa['has'](_0x151f76)&&!_0x4f918f[_0xe4c2fe(0x2a1)](_0x151f76))throw new _0x52ad52(_0x12e142+':\x20unknown\x20option\x20\x27'+_0x151f76+'\x27',_0xe4c2fe(0x32f),{'option':_0x151f76});}}['_range'](_0x4d63d7,_0x32f268,_0x5bf3dc,_0x4831fe,_0x11aaf2,_0x4226ae){const _0x56aa90=_0x374ff4;this[_0x56aa90(0x4c4)](_0x4d63d7,_0x4831fe);const _0x5f1f0a=_0x4831fe?.[_0x56aa90(0x5d0)],_0x41f4ab=_0x300663(_0x4831fe);if(_0x5f1f0a===!![]||_0x5f1f0a===_0x56aa90(0x827)){const _0x2069a1=this[_0x56aa90(0x500)](_0x4d63d7,_0x32f268,_0x1ea961=>[_0x5bf3dc,{..._0x41f4ab,..._0x1ea961}],_0x4831fe);return _0x4226ae?_0x2069a1[_0x56aa90(0x642)](_0x4226ae):_0x2069a1;}const _0x5af66d=_0x2c13c5(_0x5bfbcc=>this[_0x56aa90(0x299)](_0x32f268,[_0x5bf3dc,_0x5bfbcc]),_0x41f4ab,_0x11aaf2,{'rows':_0x32f268===_0x56aa90(0x433)});return _0x4226ae?_0x5af66d[_0x56aa90(0x642)](_0x4226ae):_0x5af66d;}[_0x374ff4(0x500)](_0x19dc96,_0x5df9c5,_0x30b8f7,_0x5b371d,_0x3b9ce5,_0x32b84d=![]){const _0x5a2ded=_0x374ff4,{source:_0x3d7695,prefetch:_0x5ea03f}=_0x1fc9bd((_0x4b615e,_0x41a765)=>_0x4b615e==='unpin'?this['_n'](_0x4b615e,_0x41a765):this[_0x5a2ded(0x299)](_0x4b615e,_0x41a765),_0x5df9c5,_0x30b8f7,_0x5b371d||{},_0x3b9ce5),_0x2fb5a7=_0x5ea03f(),_0x36397c=!_0x32b84d&&_0x5b371d&&_0x5b371d['snapshot']===_0x5a2ded(0x827);let _0x86bf4c=null;return _0x3eb6e3(()=>({[Symbol[_0x5a2ded(0x6a7)]]:()=>_0x86bf4c=_0x3d7695(0x0,_0x28d7d0(_0x2fb5a7))}),{'label':this[_0x5a2ded(0x686)]+':'+_0x19dc96,..._0x36397c?{'getTxnId':()=>this['db']['getStats']()[_0x5a2ded(0x38e)],'resume':()=>({[Symbol[_0x5a2ded(0x6a7)]]:()=>_0x86bf4c=_0x86bf4c[_0x5a2ded(0x2a0)]()})}:{}});}['getRange'](_0x24e140,_0x2179bf){const _0x44b5f7=_0x374ff4;return this[_0x44b5f7(0x2ff)]('getRange',_0x44b5f7(0x433),_0x24e140,_0x2179bf,_0x2eac15=>_0x2eac15[_0x44b5f7(0x59b)]);}['getKeys'](_0xbec68b,_0x561d64){const _0x3903f3=_0x374ff4;return this[_0x3903f3(0x2ff)](_0x3903f3(0x541),_0x3903f3(0x541),_0xbec68b,_0x561d64,_0x457ee0=>_0x457ee0);}[_0x374ff4(0x73d)](_0x2ccb6f,_0x37b153){const _0x5818c0=_0x374ff4;return this['_range'](_0x5818c0(0x73d),_0x5818c0(0x433),_0x2ccb6f,_0x37b153,_0x491002=>_0x491002[_0x5818c0(0x59b)],_0x41cec7=>_0x41cec7[_0x5818c0(0x744)]);}[_0x374ff4(0x4bb)](_0x33dd5c,_0x584330,_0x1628d8={}){const _0x30016a=_0x374ff4;return this[_0x30016a(0x433)](_0x33dd5c,{'start':_0x584330,'end':_0x584330+'',..._0x1628d8});}[_0x374ff4(0x634)](_0x2df3cb,_0x26f5fb,_0x387f16={}){const _0x12a778=_0x374ff4;this[_0x12a778(0x4c4)](_0x12a778(0x634),_0x387f16,['prefix']);const _0xbafa67=_0x300663(_0x387f16);if(_0x387f16&&_0x387f16['transaction'])return _0x17cb10(this['_n'](_0x12a778(0x634),[_0x2df3cb,_0x26f5fb,_0xbafa67]));return this[_0x12a778(0x500)](_0x12a778(0x634),_0x12a778(0x634),_0x4a2361=>[_0x2df3cb,_0x26f5fb,{..._0xbafa67,..._0x4a2361}],_0x387f16,undefined,!![]);}[_0x374ff4(0x657)](_0x30fb1d,_0x675053,_0x249bef){const _0x41f7a0=_0x374ff4;this[_0x41f7a0(0x4c4)]('byIndex',_0x249bef,['prefix','includeViolations']);const _0x4daeec=_0x300663(_0x249bef);if(_0x249bef&&_0x249bef[_0x41f7a0(0x7b5)])return _0x17cb10(this['_n'](_0x41f7a0(0x657),[_0x30fb1d,_0x675053,_0x4daeec]));return this['_lazyPinned'](_0x41f7a0(0x657),_0x41f7a0(0x657),_0x20a81d=>[_0x30fb1d,_0x675053,{..._0x4daeec,..._0x20a81d}],_0x249bef,undefined,!![]);}['countByIndex'](_0x4cf156,_0x7049b6,_0x12c66c={}){const _0xcc748a=_0x374ff4;return this['_n'](_0xcc748a(0x87c),[_0x4cf156,_0x7049b6,_0x300663(_0x12c66c)]);}[_0x374ff4(0x5e7)](_0x380ec2,_0x487121={},_0x4f35a9={}){const _0x19d960=_0x374ff4,_0x282c61=_0x1e72bf(_0x4f35a9);if(_0x4f35a9){for(const _0x5f4933 of Object[_0x19d960(0x607)](_0x4f35a9))if(_0x5f4933!==_0x19d960(0x805)&&typeof _0x4f35a9[_0x5f4933]===_0x19d960(0x484))_0x282c61[_0x5f4933]=null;}if(_0x4f35a9&&(_0x4f35a9['fts']||_0x4f35a9[_0x19d960(0x314)]))return this['_n'](_0x19d960(0x5ea),[_0x282c61]),this[_0x19d960(0x2e3)](_0x380ec2,_0x487121,_0x4f35a9);const _0x59b1ae=typeof _0x4f35a9[_0x19d960(0x805)]==='function'?_0x4f35a9['select']:null;if(_0x4f35a9[_0x19d960(0x407)]||_0x5f3d46(_0x487121)||_0x4f35a9[_0x19d960(0x7b5)]!==undefined){let _0x1b2779=this['_n'](_0x19d960(0x5e7),[_0x380ec2,_0x487121,_0x282c61]);if(_0x59b1ae)_0x1b2779=_0x1b2779['map'](_0x59b1ae);if(_0x4f35a9[_0x19d960(0x407)]||_0x5f3d46(_0x487121))return _0x1b2779;return _0x17cb10(_0x1b2779);}const _0x38f577=_0x110967=>typeof _0x110967===_0x19d960(0x559)&&Number[_0x19d960(0x6ae)](_0x110967)?Math[_0x19d960(0x31f)](0x0,_0x110967):Infinity;let _0x8db12e;if(_0x4f35a9['index']){const _0x24d82e=_0xabf6f2=>typeof _0xabf6f2===_0x19d960(0x559)&&_0xabf6f2>0x0?Math[_0x19d960(0x390)](_0xabf6f2):0x0;_0x8db12e=this[_0x19d960(0x500)](_0x19d960(0x5e7),'query',_0x5c5366=>[_0x380ec2,_0x487121,{..._0x282c61,..._0x5c5366}],null,{'limitOf':()=>_0x38f577(_0x282c61[_0x19d960(0x419)]),'offsetOf':()=>_0x24d82e(_0x282c61[_0x19d960(0x64f)])});}else _0x8db12e=_0x2c13c5(_0x53fd13=>{const _0x2d7187=_0x19d960,{__after:_0x50e61f,..._0x324940}=_0x53fd13;return this[_0x2d7187(0x299)]('query',_0x50e61f===undefined?[_0x380ec2,_0x487121,_0x324940]:[_0x380ec2,_0x487121,_0x324940,_0x50e61f]);},_0x282c61,_0x311412=>_0x311412[_0x19d960(0x59b)],{'limitOf':_0x38f577,'rows':!![],'prefetch':!![],'resumeOpts':(_0x29965e,_0x5eb903)=>{const _0x2dc46b=_0x19d960;_0x29965e[_0x2dc46b(0x64f)]=0x0,_0x29965e[_0x2dc46b(0x1cf)]=_0x5eb903;}});return _0x59b1ae?_0x8db12e[_0x19d960(0x642)](_0x59b1ae):_0x8db12e;}async[_0x374ff4(0x2e3)](_0x138a06,_0x161d09,_0x144bfc){const _0x727aa5=_0x374ff4,{select:_0x455459,..._0x46fed1}=_0x1e72bf(_0x144bfc);let _0x18d927={..._0x46fed1};const _0x3c040b=_0x18d927[_0x727aa5(0x4bd)];if(_0x3c040b&&!Array[_0x727aa5(0x888)](_0x3c040b)&&typeof _0x3c040b===_0x727aa5(0x7f6)&&_0x3c040b[_0x727aa5(0x569)]){const {fields:_0x320e3a,prefix:_0xf6ee0a,start:_0x412f0d,end:_0x27ae99}=_0x3c040b;_0x18d927={..._0x18d927,'index':_0x320e3a,'prefix':_0xf6ee0a??_0x18d927[_0x727aa5(0x779)],'startIndex':_0x412f0d??_0x18d927[_0x727aa5(0x40d)],'endIndex':_0x27ae99??_0x18d927[_0x727aa5(0x392)]};}const _0x34b5e4=await this[_0x727aa5(0x82e)]['_callMacro']('embeddings',null,_0x727aa5(0x25e),[this[_0x727aa5(0x686)],_0x138a06,_0x161d09,_0x18d927],![]),_0x4e1542=typeof _0x144bfc['select']===_0x727aa5(0x484)?_0x144bfc[_0x727aa5(0x805)]:null;if(!_0x4e1542)return _0x34b5e4;return _0x34b5e4[_0x727aa5(0x642)](_0x3cf1ea=>{const _0x125e2e=_0x727aa5,{score:_0x5465b5,ftsScore:_0x3d8573,numTerms:_0x567d75,maxScore:_0x308a61,vectorScore:_0x248abf,chunkHash:_0x4f2379,chunk:_0x45c3d6,..._0x595443}=_0x3cf1ea,_0x101272=_0x4e1542(_0x595443);for(const [_0x58e9c5,_0x17a82a]of Object[_0x125e2e(0x84a)]({'score':_0x5465b5,'ftsScore':_0x3d8573,'numTerms':_0x567d75,'maxScore':_0x308a61,'vectorScore':_0x248abf,'chunkHash':_0x4f2379,'chunk':_0x45c3d6}))if(_0x17a82a!==undefined)_0x101272[_0x58e9c5]=_0x17a82a;return _0x101272;});}[_0x374ff4(0x278)](_0x4aadc1,_0x1ad220,_0x4193b0={}){const _0x37b7aa=_0x374ff4;let _0x3dcd1f=this['_n']('geoQuery',[_0x4aadc1,_0x1ad220,_0x1e72bf(_0x4193b0)]);if(typeof _0x4193b0[_0x37b7aa(0x805)]===_0x37b7aa(0x484))_0x3dcd1f=_0x3dcd1f[_0x37b7aa(0x642)](_0x4193b0[_0x37b7aa(0x805)]);return _0x3dcd1f;}[_0x374ff4(0x73c)](_0x307683=null,_0x305125={}){const _0x326358=_0x374ff4;return this['_n'](_0x326358(0x73c),[_0x307683]);}[_0x374ff4(0x257)](_0xbeaf85=null,_0x453fda=0x0,_0x6bdb93=Number[_0x374ff4(0x346)],_0x27245e={}){const _0x3fd5fe=_0x374ff4,_0x17f4b1=_0x300663(_0x27245e);if(_0x27245e&&_0x27245e['transaction'])return _0x17cb10(this['_n'](_0x3fd5fe(0x257),[_0xbeaf85,_0x453fda,_0x6bdb93,_0x17f4b1]));return this[_0x3fd5fe(0x500)](_0x3fd5fe(0x257),_0x3fd5fe(0x257),_0x24322d=>[_0xbeaf85,_0x453fda,_0x6bdb93,{..._0x17f4b1,..._0x24322d}],_0x27245e);}['count'](_0x41eb1d){const _0x3fe65c=_0x374ff4;if(Array[_0x3fe65c(0x888)](_0x41eb1d))return _0x41eb1d[_0x3fe65c(0x788)];let _0x36e215=0x0;for(const _0x2e0308 of _0x41eb1d)_0x36e215++;return _0x36e215;}*[_0x374ff4(0x4e5)](_0xd057cf){yield*_0xd057cf;}[_0x374ff4(0x3d4)](){const _0x2045f6=_0x374ff4;return requireOkdbHlc()[_0x2045f6(0x590)](this[_0x2045f6(0x537)]);}get[_0x374ff4(0x4e9)](){const _0x39a87b=_0x374ff4,_0x1359ae=this[_0x39a87b(0x82e)][_0x39a87b(0x489)]?this['okdb']['_call']('db',null,'ttlTimer',[this[_0x39a87b(0x686)]],![]):null;if(!_0x1359ae)return null;if(this['__ttlCancelledGen']===_0x1359ae[_0x39a87b(0x66c)])return null;this[_0x39a87b(0x300)]=this['_timerObjs']||new Map();let _0x58587f=this['_timerObjs'][_0x39a87b(0x292)](_0x1359ae[_0x39a87b(0x66c)]);if(!_0x58587f){const _0xf7fe=this;_0x58587f={'ref'(){},'unref'(){},'hasRef':()=>![],'gen':_0x1359ae[_0x39a87b(0x66c)],'at':_0x1359ae['at'],'target':_0x1359ae[_0x39a87b(0x7a2)],get '_destroyed'(){const _0x43b95b=_0x39a87b,_0x5aabaa=_0xf7fe[_0x43b95b(0x82e)]['_isOpen']?_0xf7fe[_0x43b95b(0x82e)][_0x43b95b(0x5a1)]('db',null,_0x43b95b(0x307),[_0xf7fe[_0x43b95b(0x686)]],![]):null;return!_0x5aabaa||_0x5aabaa[_0x43b95b(0x66c)]!==this['gen']||_0xf7fe[_0x43b95b(0x61f)]===this[_0x43b95b(0x66c)];}},this[_0x39a87b(0x300)][_0x39a87b(0x204)](_0x1359ae['gen'],_0x58587f);}return _0x58587f;}[_0x374ff4(0x88c)](){const _0x1275d6=_0x374ff4,_0x1d3088=this[_0x1275d6(0x82e)][_0x1275d6(0x5a1)]('db',null,_0x1275d6(0x307),[this[_0x1275d6(0x686)]],![]);if(_0x1d3088)this['__ttlCancelledGen']=_0x1d3088[_0x1275d6(0x66c)];}get[_0x374ff4(0x7bc)](){const _0x487c55=_0x374ff4,_0x27cb71=this[_0x487c55(0x82e)][_0x487c55(0x5a1)]('db',null,_0x487c55(0x307),[this[_0x487c55(0x686)]],![]);return _0x27cb71?_0x27cb71['target']:null;}get[_0x374ff4(0x745)](){const _0x55d711=_0x374ff4;return this['okdb'][_0x55d711(0x5a1)]('db',null,'autoCompactTimerArmed',[this[_0x55d711(0x686)]],![])?{'ref'(){},'unref'(){}}:null;}['_startAutoCompactCheck'](){const _0x2a9a09=_0x374ff4;this['okdb'][_0x2a9a09(0x5a1)]('db',null,_0x2a9a09(0x2e1),[this[_0x2a9a09(0x686)]],![]);}[_0x374ff4(0x5a7)](){const _0x3eb8f4=_0x374ff4;this[_0x3eb8f4(0x82e)]['_call']('db',null,_0x3eb8f4(0x7b1),[this['name']],![]);}get[_0x374ff4(0x215)](){const _0x5a7bae=_0x374ff4,_0xabbf1b=(_0x232ad,_0x397527)=>this['okdb']['_call']('db',null,_0x232ad,[this[_0x5a7bae(0x686)],..._0x397527],![]),_0x277bd5=Object['keys'](_0xabbf1b(_0x5a7bae(0x638),[])||{}),_0x2331c0={};for(const _0x4a81c1 of _0x277bd5)Object['defineProperty'](_0x2331c0,_0x4a81c1,{'enumerable':!![],'get':()=>_0xabbf1b('autoCompactState',[])?.[_0x4a81c1],'set':_0x3b1c8f=>{const _0x2bfbe4=_0x5a7bae;_0xabbf1b(_0x2bfbe4(0x598),[_0x4a81c1,_0x3b1c8f]);}});return _0x2331c0;}get[_0x374ff4(0x537)](){const _0x3649d5=_0x374ff4;return this['_n'](_0x3649d5(0x52e),[]);}['equal'](_0x583798,_0x36f460){const _0x4545bf=_0x374ff4;return require$$16[_0x4545bf(0x6df)](_0x583798,_0x36f460);}async[_0x374ff4(0x1ba)](_0xc13ae1,_0x2d8d51){const _0x436c6f=_0x374ff4;return this[_0x436c6f(0x550)](this['_n'](_0x436c6f(0x1ba),[_0xc13ae1]));}[_0x374ff4(0x512)](_0xb02c4c){const _0xe64308=_0x374ff4;return this['_n'](_0xe64308(0x512),[_0xb02c4c]);}[_0x374ff4(0x416)](){const _0x5c6002=_0x374ff4;return this['_n'](_0x5c6002(0x416),[]);}async[_0x374ff4(0x3bf)](_0x1a3bae,_0x53e23b){const _0x2562db=_0x374ff4;return this[_0x2562db(0x550)](this['_n'](_0x2562db(0x3bf),[_0x1a3bae]));}async[_0x374ff4(0x353)](_0xcc2046,_0x3df1c2){const _0x448e69=_0x374ff4,{timestamp:_0x2ffdc3,indexes:indexes=[]}=_0x27406c(_0x3df1c2);return this['_wsettle'](this['_n'](_0x448e69(0x353),[_0xcc2046,{'indexes':indexes}]));}async['ensure'](_0x3622a9){const _0x49f0cc=_0x374ff4,{type:_0x3898f7,indexes:indexes=[],fts:fts=[],views:views=[],schema:schema=null}=_0x27406c(_0x3622a9,'spec');if(!_0x3898f7)throw new Error('ensure:\x20type\x20is\x20required');await this[_0x49f0cc(0x353)](_0x3898f7,{'indexes':indexes});for(const _0x398149 of fts){const {name:_0x19582c,fields:_0x36a452,..._0x48a19b}=_0x398149;if(!_0x19582c||!_0x36a452)throw new Error(_0x49f0cc(0x3c6));await this[_0x49f0cc(0x82e)]['fts'][_0x49f0cc(0x50d)](_0x3898f7,_0x19582c,{'fields':_0x36a452,..._0x48a19b},this);}for(const _0x250834 of views){const {name:_0x82610b,definition:_0x3e1a10}=_0x250834;if(!_0x82610b||!_0x3e1a10)throw new Error(_0x49f0cc(0x8a2));if(!await this[_0x49f0cc(0x59a)][_0x49f0cc(0x790)](_0x82610b))await this[_0x49f0cc(0x59a)][_0x49f0cc(0x1c2)](_0x82610b,_0x3e1a10);}if(schema)await this[_0x49f0cc(0x63e)](_0x3898f7,schema);}async[_0x374ff4(0x488)](_0x364c3f,_0x3a77e5,_0xd5872f){const _0x113e79=_0x374ff4,_0x1f5da1=this['_n'](_0x113e79(0x6d6),[_0x364c3f,_0x3a77e5,typeof _0xd5872f==='object'?_0xd5872f:{}]);if(!_0x1f5da1)return this[_0x113e79(0x550)](undefined);const _0x259828=this['_n'](_0x113e79(0x8ac),[_0x364c3f,_0x3a77e5,!![]]);if(_0x259828===undefined)return this[_0x113e79(0x550)](undefined);return this['_wsettle'](await this[_0x113e79(0x49c)](_0x364c3f,_0x3a77e5,_0x259828));}async[_0x374ff4(0x49c)](_0x467c39,_0x4b2b69,_0x1db422){const _0x19d391=_0x374ff4,_0x1b22e9=_0x467c39+'@'+[][_0x19d391(0x6f2)](_0x4b2b69)[_0x19d391(0x8a0)]('~');if(!this['_indexBuilds'])this['_indexBuilds']=new Map();const _0x1b847d=this[_0x19d391(0x227)][_0x19d391(0x292)](_0x1b22e9);if(_0x1b847d)return _0x1b847d;const _0x550fd8=((async()=>{const _0x2bdd67=_0x19d391;do await new Promise(_0x53739b=>setImmediate(_0x53739b));while(!this['_n'](_0x2bdd67(0x44e),[_0x467c39,_0x4b2b69,_0x1db422,!![]]));})());this['_indexBuilds'][_0x19d391(0x204)](_0x1b22e9,_0x550fd8);try{return await _0x550fd8;}finally{this['_indexBuilds'][_0x19d391(0x46b)](_0x1b22e9);}}async['dropIndex'](_0x312222,_0x11f144,_0x1e2261){const _0x291152=_0x374ff4;return this[_0x291152(0x550)](this['_n']('dropIndex',[_0x312222,_0x11f144]));}async[_0x374ff4(0x8ce)](_0x24397b,_0x5f334e,_0x74e32d){const _0x4c9831=_0x374ff4,_0x2d63f3=this[_0x4c9831(0x227)]&&this[_0x4c9831(0x227)][_0x4c9831(0x292)](_0x24397b+'@'+[][_0x4c9831(0x6f2)](_0x5f334e)[_0x4c9831(0x8a0)]('~'));if(_0x2d63f3)return _0x2d63f3;const _0x342080=this['_n'](_0x4c9831(0x8ac),[_0x24397b,_0x5f334e,_0x74e32d]);if(_0x342080===undefined)return;return await new Promise(_0x112896=>setImmediate(_0x112896)),this[_0x4c9831(0x550)](await this[_0x4c9831(0x49c)](_0x24397b,_0x5f334e,_0x342080));}['hasIndex'](_0x58d9ce,_0x1c6d7d){const _0x1e6dc1=_0x374ff4;return this['_n'](_0x1e6dc1(0x259),[_0x58d9ce,_0x1c6d7d]);}[_0x374ff4(0x32d)](_0x1ee933,_0x21d0b0){const _0x33085a=_0x374ff4;return this['_n'](_0x33085a(0x32d),[_0x1ee933,_0x21d0b0]);}async[_0x374ff4(0x7e2)](_0x20a6fe,_0x5113bf){const _0x2af500=_0x374ff4;if(this['_n'](_0x2af500(0x32d),[_0x20a6fe,_0x5113bf])===_0x2af500(0x8c9))return!![];let _0x4bc8e4=0xa;for(;;){await new Promise(_0x4997fe=>setTimeout(_0x4997fe,_0x4bc8e4));if(!this[_0x2af500(0x82e)][_0x2af500(0x489)]||this['_closedHandle'])return![];let _0x438bbc;try{_0x438bbc=this['_n']('getIndexMeta',[_0x20a6fe,Array[_0x2af500(0x888)](_0x5113bf)?_0x5113bf['join']('~'):String(_0x5113bf)[_0x2af500(0x359)](',')[_0x2af500(0x8a0)]('~')]);}catch{return![];}const _0x388fe8=_0x438bbc&&_0x438bbc['status'];if(_0x388fe8===_0x2af500(0x8c9))return!![];if(_0x388fe8===undefined)return![];_0x4bc8e4=Math[_0x2af500(0x439)](_0x4bc8e4*0x2,0xfa);}}['getIndexMeta'](_0x22c724,_0x3c7c30){return this['_n']('getIndexMeta',[_0x22c724,_0x3c7c30])??null;}[_0x374ff4(0x610)](_0x485798,_0x303dec){const _0x5e01d1=_0x374ff4;return this['_n'](_0x5e01d1(0x610),[_0x485798,_0x303dec]);}[_0x374ff4(0x71e)](_0x2a8eb3,_0x1c5d53){const _0x125a9a=_0x374ff4;return this['_n'](_0x125a9a(0x71e),[_0x2a8eb3,_0x1c5d53]);}[_0x374ff4(0x6c9)](_0x57c269,_0x379b57,_0x94b300){return this['_n']('getUniqueViolation',[_0x57c269,_0x379b57,_0x94b300])??null;}[_0x374ff4(0x78d)](_0x57c917){return this['_n']('getSchema',[_0x57c917])??null;}async['setSchema'](_0xa73919,_0x46f985){const _0x4f557c=_0x374ff4;return this[_0x4f557c(0x550)](this['_n'](_0x4f557c(0x63e),[_0xa73919,_0x46f985]));}async[_0x374ff4(0x42d)](_0x44eff8){const _0x4c3086=_0x374ff4;return this[_0x4c3086(0x550)](this['_n']('dropSchema',[_0x44eff8]));}[_0x374ff4(0x5fa)](_0x37637c,_0x82f44a){return this['_n']('getViolation',[_0x37637c,_0x82f44a])??null;}[_0x374ff4(0x8cd)](_0x45665e){return this['_n']('listViolations',[_0x45665e]);}[_0x374ff4(0x871)](_0xa403af,_0x5559b3,_0xdd3bc6){return this['_n']('getRefViolation',[_0xa403af,_0x5559b3,_0xdd3bc6])??null;}[_0x374ff4(0x5c8)](_0x3bad4f){const _0x58d1dd=_0x374ff4;return this['_n'](_0x58d1dd(0x5c8),[_0x3bad4f]);}async['setTTL'](_0x5b7525,_0x52d03a,_0x15ee8f){const _0x1aa155=_0x374ff4;return this[_0x1aa155(0x550)](this['_n'](_0x1aa155(0x383),[_0x5b7525,_0x52d03a,_0x15ee8f]));}[_0x374ff4(0x31d)](_0x234321,_0x3af5c4){const _0x243da7=_0x374ff4;return this['_n'](_0x243da7(0x31d),[_0x234321,_0x3af5c4]);}async[_0x374ff4(0x41f)](_0x220ceb,_0x1a4330){return this['_wsettle'](this['_n']('clearTTL',[_0x220ceb,_0x1a4330]));}async[_0x374ff4(0x84e)](_0x427326){const _0x211f11=_0x374ff4;return this['_n'](_0x211f11(0x84e),[_0x427326]);}[_0x374ff4(0x25a)](_0x3a6843={}){const _0x1c8886=_0x374ff4;return this['_n'](_0x1c8886(0x25a),[_0x3a6843]);}[_0x374ff4(0x3e9)](_0x5764ec){const _0x1d85dd=_0x374ff4;return this['_n'](_0x1d85dd(0x3e9),[_0x5764ec]);}async[_0x374ff4(0x6e7)](_0x406be2,_0x3ed4d9){const _0x91458a=_0x374ff4;return this[_0x91458a(0x550)](this['_n'](_0x91458a(0x6e7),[_0x406be2,_0x3ed4d9]));}[_0x374ff4(0x4f1)](_0x21d775){const _0x21c474=_0x374ff4;return this['_n'](_0x21c474(0x4f1),[_0x21d775]);}async[_0x374ff4(0x613)](_0x182d8f){const _0x34d95c=_0x374ff4;return this[_0x34d95c(0x550)](this['_n'](_0x34d95c(0x613),[_0x182d8f]));}async['resolveField'](_0x53c9f4,_0x1c667e,_0x4f8a48,_0x8b9af4){const _0x399ec5=_0x374ff4,{batch:batch=null,batchSize:_0xf6b6dc}=_0x27406c(_0x8b9af4);if(typeof _0x53c9f4!==_0x399ec5(0x43c)||!_0x53c9f4)throw new _0x52ad52(_0x399ec5(0x38c),_0x399ec5(0x290));if(typeof _0x1c667e!==_0x399ec5(0x43c)||!_0x1c667e)throw new _0x52ad52(_0x399ec5(0x293),_0x399ec5(0x290));if(_0x4f8a48!=null&&typeof _0x4f8a48!=='function')throw new _0x52ad52(_0x399ec5(0x539),_0x399ec5(0x290));if(batch!=null&&typeof batch!==_0x399ec5(0x484))throw new _0x52ad52('resolveField:\x20options.batch\x20must\x20be\x20a\x20function','BAD_PARAM');if(!_0x4f8a48&&!batch)throw new _0x52ad52(_0x399ec5(0x601),_0x399ec5(0x290));if(_0xf6b6dc!==undefined&&!(Number[_0x399ec5(0x6ae)](_0xf6b6dc)&&_0xf6b6dc>0x0))throw new _0x52ad52(_0x399ec5(0x7a0),_0x399ec5(0x290));const _0x273240=batch?async _0x248e8e=>(await batch(_0x248e8e))[_0x399ec5(0x642)](_0x142763=>_0x142763 instanceof Error?{'__error':!![],'message':_0x142763['message']}:_0x142763):null,_0x33629b=_0x56b7b1(this,_0x53c9f4,_0x1c667e),_0x1b9177=this['_n']('resolveField',[_0x53c9f4,_0x1c667e,_0x4f8a48?(_0xc57987,_0x47b1e1)=>_0x33629b(_0x4f8a48,[_0xc57987,_0x47b1e1]):null,{'batch':_0x273240?_0x34dfa1=>_0x33629b(_0x273240,[_0x34dfa1]):null,'batchSize':_0xf6b6dc}]);return()=>this['_n'](_0x399ec5(0x6f5),[_0x1b9177]);}async[_0x374ff4(0x66f)](_0x51bf03,_0x49aeee){const _0x32d9c8=_0x374ff4;return this['_n'](_0x32d9c8(0x66f),[_0x51bf03,_0x49aeee]);}[_0x374ff4(0x706)](_0x4fe970){const _0x30713d=_0x374ff4;return this['_n'](_0x30713d(0x706),[_0x4fe970]);}async[_0x374ff4(0x311)](_0x45e237,_0x54e933,_0x56559a,_0x147a70){const _0x312d10=_0x374ff4;return this['okdb'][_0x312d10(0x517)]('env',this[_0x312d10(0x686)],_0x312d10(0x311),[_0x45e237,_0x54e933,_0x56559a,_0x147a70],![]);}async[_0x374ff4(0x3b6)](_0x253d57,_0x13a2f8,_0x33d235){const _0x2787d2=_0x374ff4;return this[_0x2787d2(0x82e)][_0x2787d2(0x517)](_0x2787d2(0x4f8),this[_0x2787d2(0x686)],_0x2787d2(0x3b6),[_0x253d57,_0x13a2f8,_0x33d235],![]);}[_0x374ff4(0x297)](){}[_0x374ff4(0x726)](_0x2d5b38,_0x4d80a5,_0x5646f6,_0x3fee24={},_0x1d9b82={}){const _0x466db1=_0x374ff4;return this['okdb'][_0x466db1(0x5a1)](_0x466db1(0x658),null,_0x466db1(0x726),[_0x2d5b38,_0x4d80a5,_0x5646f6,_0x3fee24,_0x1d9b82,this[_0x466db1(0x686)]],![]);}get['fts'](){const _0x24a5fd=_0x374ff4;return this[_0x24a5fd(0x82e)][_0x24a5fd(0x658)];}[_0x374ff4(0x8ba)](){const _0x17cc73=_0x374ff4;return this[_0x17cc73(0x82e)]['_call'](_0x17cc73(0x4f8),this[_0x17cc73(0x686)],'getResolvedOptions',[],![]);}[_0x374ff4(0x2ea)](){const _0xb75361=_0x374ff4;return this[_0xb75361(0x82e)][_0xb75361(0x2ea)]();}['writerStatus'](){const _0x3ae944=_0x374ff4;return this[_0x3ae944(0x82e)]['_call'](_0x3ae944(0x4f8),this[_0x3ae944(0x686)],'writerStatus',[],![]);}[_0x374ff4(0x711)](){}get['locks'](){const _0x1fe819=_0x374ff4;return this[_0x1fe819(0x5c7)]||(this[_0x1fe819(0x5c7)]=new(requireLock())[(_0x1fe819(0x23d))](this['okdb'],this[_0x1fe819(0x686)],_0x1fe819(0x4f8)));}['storageStats'](){const _0x16ab37=_0x374ff4;return this[_0x16ab37(0x82e)][_0x16ab37(0x5a1)]('env',this[_0x16ab37(0x686)],'storageStats',[],![]);}[_0x374ff4(0x1bc)](_0x30f9a8){const _0x2c9b1f=_0x374ff4;this['_n'](_0x2c9b1f(0x1ba),[_0x30f9a8]);}[_0x374ff4(0x510)](_0x515eed){const _0x7edeb6=_0x374ff4;this['_n'](_0x7edeb6(0x44b),[_0x515eed]);}['_ttlState'](){return this['_n']('ttlState',[]);}[_0x374ff4(0x6f8)](_0x925394,_0x480e24){return _0x925394+'\x09'+_0x480e24;}['_ttlParseComposite'](_0x4aa189){const _0x3b887b=_0x374ff4,_0x2487b0=_0x4aa189[_0x3b887b(0x691)]('\x09');return{'type':_0x4aa189[_0x3b887b(0x848)](0x0,_0x2487b0),'key':_0x4aa189['slice'](_0x2487b0+0x1)};}get[_0x374ff4(0x281)](){const _0x21ff32=_0x374ff4;if(!this[_0x21ff32(0x7f0)]()[_0x21ff32(0x4b3)])return null;return this['__ttlByKey']||(this[_0x21ff32(0x2ee)]=new _0x29ee88(this,'~ttl:key'));}get[_0x374ff4(0x83b)](){const _0x57a9db=_0x374ff4;if(!this[_0x57a9db(0x7f0)]()[_0x57a9db(0x4b3)])return null;return this['__ttlByExpiry']||(this[_0x57a9db(0x8e0)]=new _0x29ee88(this,'~ttl:expiry',{'dupSort':!![]}));}[_0x374ff4(0x649)](_0xb3e157,_0x868614,_0xee674f){this['_n']('ttlSetEntry',[_0xb3e157,_0x868614,_0xee674f]);}['_isExpired'](_0xaba0be,_0x2657f5){const _0x13430b=_0x374ff4,_0x1a539a=this['_ttlByKey']?.[_0x13430b(0x292)](this[_0x13430b(0x6f8)](_0xaba0be,_0x2657f5));return _0x1a539a!=null&&_0x1a539a<=Date[_0x13430b(0x3d4)]();}get[_0x374ff4(0x6e5)](){const _0x2681f7=_0x374ff4;return this[_0x2681f7(0x7f0)]()[_0x2681f7(0x7fc)]??null;}get[_0x374ff4(0x250)](){const _0xb78fb9=_0x374ff4;return this[_0xb78fb9(0x7f0)]()[_0xb78fb9(0x421)]||0x0;}get[_0x374ff4(0x86b)](){return![];}['_scheduleTTLSweep'](){}async[_0x374ff4(0x58f)](_0x1e30a2,_0x59688d){const _0x1622b7=_0x374ff4;if(this[_0x1622b7(0x228)]){const {OKDBError:_0x1abe47}=requireErrors();throw new _0x1abe47(_0x1622b7(0x761),'REBUILD_IN_PROGRESS');}this[_0x1622b7(0x228)]=!![];try{return await this[_0x1622b7(0x82e)][_0x1622b7(0x517)](_0x1622b7(0x4f8),this['name'],_0x1e30a2,[_0x59688d],!![]);}finally{this['_rebuilding']=![];}}async['compact'](_0x4401d2={}){const _0x3a542c=_0x374ff4;return this[_0x3a542c(0x58f)](_0x3a542c(0x2de),_0x4401d2);}async[_0x374ff4(0x1da)](_0x565cb6={}){const _0x5b26ff=_0x374ff4;return this[_0x5b26ff(0x58f)](_0x5b26ff(0x1da),_0x565cb6);}}_0x38177b['HIGH_SENTINEL']=_0x57b4e0;function _0x5f3d46(_0x5e0df8){const _0x3fd953=_0x374ff4;if(!_0x5e0df8||typeof _0x5e0df8!==_0x3fd953(0x7f6))return![];for(const _0x44b149 of Object['keys'](_0x5e0df8)){const _0x5b6987=_0x5e0df8[_0x44b149];if(_0x5b6987&&typeof _0x5b6987===_0x3fd953(0x7f6)&&(_0x5b6987[_0x3fd953(0x2d4)]||_0x5b6987['$within']))return!![];}return![];}function _0x300663(_0x2b7050){const _0x3e7d90=_0x374ff4;if(!_0x2b7050||typeof _0x2b7050!==_0x3e7d90(0x7f6))return{};const _0x51b120={};for(const _0x370d9c of Object[_0x3e7d90(0x607)](_0x2b7050)){if(_0x370d9c==='transaction'||_0x370d9c==='snapshot')continue;_0x51b120[_0x370d9c]=_0x2b7050[_0x370d9c];}return _0x51b120;}function _0x1e72bf(_0x5187f9){const _0x5c84f4=_0x374ff4;if(!_0x5187f9||typeof _0x5187f9!=='object')return{};const _0x2d3584={};for(const _0x4e6afa of Object[_0x5c84f4(0x607)](_0x5187f9)){if(typeof _0x5187f9[_0x4e6afa]===_0x5c84f4(0x484))continue;_0x2d3584[_0x4e6afa]=_0x5187f9[_0x4e6afa];}return _0x2d3584;}return env={'OKDBEnv':_0x38177b,'HIGH_SENTINEL':_0x57b4e0},env;}var unsupported,hasRequiredUnsupported;function requireUnsupported(){if(hasRequiredUnsupported)return unsupported;hasRequiredUnsupported=0x1;const {NotImplementedNative:_0x3514b1}=requireErrors();function _0x3685fb(_0x5020b4){const _0x5afb18=_0x1f7680=>{throw new _0x3514b1(_0x5020b4,_0x1f7680);};return new Proxy(function(){},{'get'(_0x37bd21,_0x242d86){const _0x2c406e=_0x2fc2;if(typeof _0x242d86===_0x2c406e(0x3e0)||_0x242d86==='then'||_0x242d86===_0x2c406e(0x233)||_0x242d86===_0x2c406e(0x619))return undefined;if(_0x242d86===_0x2c406e(0x226))return _0x5020b4;return(..._0x32a474)=>_0x5afb18(_0x5020b4+'.'+String(_0x242d86));},'apply'(){_0x5afb18(_0x5020b4);},'set'(){return!![];}});}return unsupported={'notImplemented':_0x3685fb},unsupported;}var http,hasRequiredHttp;function requireHttp(){const _0x3af161=_0xef081e;if(hasRequiredHttp)return http;hasRequiredHttp=0x1;function _0x5dd2b9(_0x5bb7c9,_0x3d31e8={}){const _0x5afc64=_0x2fc2,_0x363648=[];let _0x52b5e3=![];_0x5bb7c9['endsWith']('/*')&&(_0x52b5e3=!![],_0x5bb7c9=_0x5bb7c9[_0x5afc64(0x848)](0x0,-0x2),_0x363648[_0x5afc64(0x27f)]('*'));let _0x2f952d=_0x5bb7c9[_0x5afc64(0x6fc)](/\/+$/,'')[_0x5afc64(0x6fc)](/\[([^\]]*)\]/g,(_0x5e68d5,_0x90fb94)=>{const _0x1dab0e=_0x5afc64,_0x33a19f=_0x90fb94[_0x1dab0e(0x6fc)](/\/:(\w+)(?:=([^/\]\s]*))?/g,(_0xf725c9,_0x577a21)=>{const _0x22ec1b=_0x1dab0e;return _0x363648[_0x22ec1b(0x27f)](_0x577a21),_0x22ec1b(0x5e9);});return _0x1dab0e(0x31a)+_0x33a19f+')?';})[_0x5afc64(0x6fc)](/\/:(\w+)/g,(_0x2c78f7,_0x27b1f9)=>{const _0x1081b9=_0x5afc64;return _0x363648[_0x1081b9(0x27f)](_0x27b1f9),_0x1081b9(0x5e9);});if(_0x2f952d==='')_0x2f952d='/';return{'keys':_0x363648,'defaults':_0x3d31e8||{},'wildcard':_0x52b5e3,'regex':new RegExp('^'+_0x2f952d+(_0x52b5e3?_0x5afc64(0x558):'')+_0x5afc64(0x6b8))};}const _0x1e2795=require$$0$3,{PassThrough:_0x431520}=require$$1;function _0x27f9af(_0x21019c){const _0x53ce50=_0x2fc2,_0x475d58=_0x21019c[_0x53ce50(0x2e5)](':'),_0x3f5c13=_0x21019c['slice'](0x0,_0x475d58)[_0x53ce50(0x6fc)](/^\[|\]$/g,'');return{'address':_0x3f5c13,'family':_0x3f5c13[_0x53ce50(0x2a1)](':')?_0x53ce50(0x4d9):_0x53ce50(0x86a),'port':Number(_0x21019c['slice'](_0x475d58+0x1))};}class _0x13cfe2 extends _0x1e2795[_0x3af161(0x1eb)]{constructor(_0x16b129,_0x2429b1){const _0x1cb9fd=_0x3af161;super(),this['_http']=_0x16b129,this[_0x1cb9fd(0x58d)]=_0x27f9af(_0x2429b1),this[_0x1cb9fd(0x65d)]=!![],this[_0x1cb9fd(0x5ba)]=setInterval(()=>{},0x7fffffff);}get[_0x3af161(0x65d)](){const _0x16a870=_0x3af161;return this[_0x16a870(0x57b)];}set[_0x3af161(0x65d)](_0x49137b){const _0x4587a9=_0x3af161;this[_0x4587a9(0x57b)]=_0x49137b;}[_0x3af161(0x595)](){const _0x57e335=_0x3af161;return this[_0x57e335(0x65d)]?{...this[_0x57e335(0x58d)]}:null;}[_0x3af161(0x6c6)](){const _0x2b7103=_0x3af161;if(this[_0x2b7103(0x5ba)])clearInterval(this[_0x2b7103(0x5ba)]);this[_0x2b7103(0x5ba)]=null;}[_0x3af161(0x5ca)](_0x4e7ef4){const _0x41d984=_0x3af161;this[_0x41d984(0x6c6)]();const _0x5927e9=this[_0x41d984(0x574)][_0x41d984(0x5ca)]();if(_0x4e7ef4)_0x5927e9[_0x41d984(0x458)](()=>_0x4e7ef4(),_0x4e7ef4);return this;}['ref'](){const _0x3ff3ec=_0x3af161;return this[_0x3ff3ec(0x5ba)]?.['ref'](),this;}['unref'](){const _0x144bc2=_0x3af161;return this[_0x144bc2(0x5ba)]?.['unref'](),this;}}class _0xa044e4{constructor(_0x49dcbd){const _0x340556=_0x3af161;this[_0x340556(0x82e)]=_0x49dcbd,this['servers']=[],this[_0x340556(0x65c)]={'cookieName':_0x340556(0x345)};}get[_0x3af161(0x3f9)](){const _0x68a04e=_0x3af161;return this[_0x68a04e(0x329)][0x0]||null;}['_n'](_0x21611e,_0x2a86ff=[]){const _0x3dd9fa=_0x3af161;return this['okdb'][_0x3dd9fa(0x517)]('http',null,_0x21611e,_0x2a86ff,!![]);}async[_0x3af161(0x336)](_0x222fc3,_0x55e88d,_0x1454ed={},_0x563e5e={}){const _0x45faed=_0x3af161;let _0x5f0f94=await this['_n'](_0x45faed(0x336),[_0x222fc3,_0x55e88d,_0x1454ed,_0x563e5e]),_0x5dbc6c=0x0;return _0x5f0f94=await this['_settle'](_0x5f0f94,_0x5dbc6c),_0x5f0f94;}async[_0x3af161(0x3e1)](_0x3c9fdf,_0x3c9d6d){const _0xff1ab1=_0x3af161;while(_0x3c9fdf&&typeof _0x3c9fdf===_0xff1ab1(0x7f6)&&_0x3c9fdf[_0xff1ab1(0x7d7)]!==undefined){await new Promise(_0x3860dc=>setTimeout(_0x3860dc,_0x3c9d6d<0x5?0x1:0x5)),_0x3c9d6d++,_0x3c9fdf=await this['_n'](_0xff1ab1(0x441),[_0x3c9fdf['$pending']]);}if(_0x3c9fdf&&_0x3c9fdf[_0xff1ab1(0x4d6)]&&typeof _0x3c9fdf[_0xff1ab1(0x4d6)]===_0xff1ab1(0x7f6)&&_0x3c9fdf['body']['$streamId']!==undefined)_0x3c9fdf['body']=this[_0xff1ab1(0x8e3)](_0x3c9fdf[_0xff1ab1(0x4d6)][_0xff1ab1(0x63b)]);return _0x3c9fdf;}[_0x3af161(0x8e3)](_0x48b4f5){const _0x35339f=_0x3af161,_0x1e241a=new _0x431520();let _0x3955bc=![];const _0x37286d=()=>{const _0x37912e=_0x2fc2;if(_0x3955bc)return;_0x3955bc=!![],clearTimeout(_0x25537d),setImmediate(()=>this[_0x37912e(0x82e)][_0x37912e(0x489)]&&this[_0x37912e(0x82e)][_0x37912e(0x5a1)](_0x37912e(0x73f),null,_0x37912e(0x255),[_0x48b4f5],!![]));};let _0x25537d=null;const _0x1794b2=()=>{const _0x43909a=_0x2fc2;if(_0x3955bc)return;let _0x18a865;try{_0x18a865=this[_0x43909a(0x82e)][_0x43909a(0x5a1)](_0x43909a(0x73f),null,_0x43909a(0x30c),[_0x48b4f5],!![]);}catch{_0x18a865={'chunks':[],'end':!![]};}for(const _0x421d8f of _0x18a865[_0x43909a(0x757)])_0x1e241a['write'](_0x421d8f);if(_0x18a865[_0x43909a(0x3cf)]){_0x3955bc=!![],_0x1e241a[_0x43909a(0x3cf)]();return;}_0x25537d=setTimeout(_0x1794b2,_0x18a865[_0x43909a(0x757)][_0x43909a(0x788)]?0x0:0xa);};_0x1e241a['on'](_0x35339f(0x5ca),_0x37286d),_0x1794b2();if(!_0x3955bc)_0x1794b2();if(_0x3955bc)_0x1e241a[_0x35339f(0x4ee)]();else{if(!_0x25537d)_0x25537d=setTimeout(_0x1794b2,0x0);}return _0x1e241a;}[_0x3af161(0x77d)](_0x3e9605,_0x256ecf,_0x185456,_0x180bee={}){const _0x14d6b9=_0x3af161;return this[_0x14d6b9(0x82e)]['_call'](_0x14d6b9(0x73f),null,'add',[_0x3e9605,_0x256ecf,_0x185456,_0x180bee,![]],!![]),this;}['addRaw'](_0x15d1b8,_0x2d1954,_0x51574e,_0x4ecc36={}){const _0x52496c=_0x3af161;return this[_0x52496c(0x82e)]['_call'](_0x52496c(0x73f),null,_0x52496c(0x77d),[_0x15d1b8,_0x2d1954,_0x51574e,_0x4ecc36,!![]],!![]),this;}[_0x3af161(0x645)](_0xa5c3f7,_0x597cd4){const _0x2979f7=_0x3af161,_0x1229be=async _0x11df19=>{const _0x2f239b=_0x2fc2,_0x412758={'status':undefined,'headers':[],'hasBody':![],'body':undefined},_0x412709={'status'(_0x26e893){const _0x453083=_0x2fc2;return _0x412758[_0x453083(0x442)]=_0x26e893,_0x412709;},'setHeader'(_0x2c41fa,_0x4d0212){const _0x507ccf=_0x2fc2;_0x412758['headers'][_0x507ccf(0x27f)]([_0x2c41fa,_0x4d0212]);},'send'(_0x3ff9c5){const _0x3b256d=_0x2fc2;_0x412758[_0x3b256d(0x468)]=!![],_0x412758[_0x3b256d(0x4d6)]=_0x3ff9c5;}};_0x11df19[_0x2f239b(0x693)]={'remoteAddress':_0x11df19[_0x2f239b(0x7b3)]??null};const _0x5eb21e=await _0x597cd4(_0x11df19,_0x412709);return{'allowed':_0x5eb21e!==![],..._0x412758};};this[_0x2979f7(0x82e)][_0x2979f7(0x5a1)]('http',null,'guard',[_0xd207a=>!!_0xa5c3f7(_0xd207a),_0x1229be],!![]);}['use'](_0x5a9202){const _0x5c25fc=_0x3af161,_0x3f70db=async _0x5a43eb=>{const _0x4fdcba=_0x2fc2,_0xd6a2d9={'status':undefined,'headers':[],'hasBody':![],'body':undefined};let _0x3de6fb=![];const _0x1c5faa={'status'(_0x15e871){const _0xeb0752=_0x2fc2;return _0xd6a2d9[_0xeb0752(0x442)]=_0x15e871,_0x1c5faa;},'setHeader'(_0x47169e,_0x364e61){const _0x4f25a7=_0x2fc2;_0xd6a2d9['headers'][_0x4f25a7(0x27f)]([_0x47169e,_0x364e61]);},'send'(_0x3ac1f5){const _0x145c14=_0x2fc2;_0xd6a2d9[_0x145c14(0x468)]=!![],_0xd6a2d9['body']=_0x3ac1f5;}};return _0x5a43eb['socket']={'remoteAddress':_0x5a43eb[_0x4fdcba(0x7b3)]??null},await _0x5a9202(_0x5a43eb,_0x1c5faa,async()=>{_0x3de6fb=!![];}),{'allowed':_0x3de6fb,..._0xd6a2d9};};return this['okdb']['_call'](_0x5c25fc(0x73f),null,_0x5c25fc(0x5d1),[_0x3f70db],!![]),this;}get['maxBodyBytes'](){const _0x3e65aa=_0x3af161;return this['okdb']['_call'](_0x3e65aa(0x73f),null,_0x3e65aa(0x817),[],![]);}set[_0x3af161(0x8af)](_0x2b214d){const _0x32f9f1=_0x3af161;this[_0x32f9f1(0x82e)][_0x32f9f1(0x5a1)](_0x32f9f1(0x73f),null,_0x32f9f1(0x472),[Number(_0x2b214d)],![]);}[_0x3af161(0x846)](_0x419cfa,_0x15ab97,_0x5293f4={}){const _0x4c782b=_0x3af161,_0x52ee71=new Map(),_0x3de090=(_0x2da19d,_0x10778f)=>this[_0x4c782b(0x82e)][_0x4c782b(0x5a1)]('http',null,_0x2da19d,_0x10778f,![]),_0x13ecb1=_0x59e004=>{const _0x18a3e9=_0x4c782b,{connId:_0x5dd525}=_0x59e004;if(_0x59e004[_0x18a3e9(0x41c)]){const _0x3990ff=_0x52ee71['get'](_0x5dd525);_0x52ee71['delete'](_0x5dd525);if(typeof _0x3990ff===_0x18a3e9(0x484))_0x3990ff();return;}const _0x1b7187=(_0x10c140,_0x18946d,_0x1dfe14={})=>{const _0x44570e=_0x18a3e9;try{_0x3de090(_0x44570e(0x46d),[_0x5dd525,_0x10c140,_0x18946d,_0x1dfe14]);}catch{}},_0x36d87d=()=>{try{_0x3de090('sseClose',[_0x5dd525]);}catch{}},_0x5418d3=(_0x34e06a,_0xf4c9)=>_0x3de090(_0x18a3e9(0x273),[_0x5dd525,String(_0x34e06a),String(_0xf4c9)]),_0x35f66b={'auth':{'open':_0x59e004['authOpen'],'isAuthenticated':_0x59e004['authenticated']}},_0xe21ace=_0x15ab97({'send':_0x1b7187,'close':_0x36d87d,'params':_0x59e004[_0x18a3e9(0x473)]??{},'query':_0x59e004[_0x18a3e9(0x5e7)]??{},'headers':_0x59e004['headers']??{},'context':_0x35f66b,'setHeader':_0x5418d3});_0x52ee71[_0x18a3e9(0x204)](_0x5dd525,_0xe21ace);};return this[_0x4c782b(0x82e)][_0x4c782b(0x5a1)](_0x4c782b(0x73f),null,_0x4c782b(0x846),[_0x419cfa,_0x13ecb1,_0x5293f4],!![]),this;}get[_0x3af161(0x890)](){return this['listRoutes']();}[_0x3af161(0x614)](){const _0x35a58f=_0x3af161;return this['okdb'][_0x35a58f(0x5a1)](_0x35a58f(0x73f),null,'listRoutes',[],![])[_0x35a58f(0x642)](_0xa49411=>({..._0xa49411,'matcher':_0x5dd2b9(_0xa49411[_0x35a58f(0x844)],_0xa49411[_0x35a58f(0x37e)])}));}[_0x3af161(0x381)](_0x269c33,_0x28fb7e){const _0x1d4ea7=_0x3af161;return this[_0x1d4ea7(0x82e)][_0x1d4ea7(0x5a1)](_0x1d4ea7(0x73f),null,_0x1d4ea7(0x381),[_0x269c33,_0x28fb7e],![]);}[_0x3af161(0x8f5)](_0x218e27,_0x448af2={}){const _0x540804=_0x3af161;if(typeof _0x448af2===_0x540804(0x43c)||Array[_0x540804(0x888)](_0x448af2))_0x448af2={'host':_0x448af2};_0x448af2=_0x448af2??{};if((Number(_0x448af2['workers'])||0x0)>=0x1||_0x448af2[_0x540804(0x6f6)]!=null||_0x448af2[_0x540804(0x234)]!=null){const _0x301ed5=new Error(_0x540804(0x402)+_0x540804(0x8db)+_0x540804(0x54c)+_0x540804(0x7e0));_0x301ed5[_0x540804(0x1bd)]='HTTP_CLUSTER_REMOVED';throw _0x301ed5;}if(this[_0x540804(0x329)][_0x540804(0x788)])throw new Error(_0x540804(0x560));const _0x561388=_0x448af2[_0x540804(0x687)]==null?[undefined]:[][_0x540804(0x6f2)](_0x448af2[_0x540804(0x687)]);if(!_0x561388[_0x540804(0x788)]||_0x561388[_0x540804(0x3cc)](_0x2df50f=>_0x2df50f!==undefined&&(typeof _0x2df50f!==_0x540804(0x43c)||!_0x2df50f))){const _0x1a3714=new Error(_0x540804(0x6a9));_0x1a3714[_0x540804(0x1bd)]=_0x540804(0x555);throw _0x1a3714;}const _0x30bd18=require$$2[_0x540804(0x8d1)]?{..._0x448af2,'reuseport':!![]}:_0x448af2,_0x24f9c3=this['okdb'][_0x540804(0x5a1)](_0x540804(0x73f),null,_0x540804(0x8f5),[_0x218e27,_0x30bd18],!![]),_0x42768c=_0x24f9c3['port']??_0x218e27,_0x1975cb=_0x448af2[_0x540804(0x687)]==null?':'+_0x42768c:_0x561388[_0x540804(0x642)](_0x5eab50=>(_0x5eab50[_0x540804(0x2a1)](':')?'['+_0x5eab50+']':_0x5eab50)+':'+_0x42768c)[_0x540804(0x8a0)](',\x20');try{this[_0x540804(0x82e)][_0x540804(0x6f9)][_0x540804(0x814)](_0x1975cb);if(!require(_0x540804(0x6b7))[_0x540804(0x8d1)])this[_0x540804(0x82e)][_0x540804(0x6f9)][_0x540804(0x594)]({'kind':'standalone','listenAddr':_0x1975cb});}catch{}this['servers']=_0x24f9c3['addrs'][_0x540804(0x642)](_0x50ce2c=>new _0x13cfe2(this,_0x50ce2c));const _0x44595d=this[_0x540804(0x329)][0x0];return process[_0x540804(0x2e2)](()=>this[_0x540804(0x329)][_0x540804(0x8de)](_0x884100=>_0x884100[_0x540804(0x599)](_0x540804(0x65d)))),_0x44595d;}async[_0x3af161(0x5ca)](_0x2b8611={}){const _0x19ed1a=_0x3af161,_0x57db7d=this[_0x19ed1a(0x329)];this[_0x19ed1a(0x329)]=[];if(require$$2[_0x19ed1a(0x8d1)]&&!process[_0x19ed1a(0x1ff)]&&_0x2b8611['forceAfterMs']==null)_0x2b8611={..._0x2b8611,'forceAfterMs':Infinity};if(_0x57db7d['length']){const _0x1a244a=_0x2b8611[_0x19ed1a(0x74b)]===Infinity?Infinity:Number[_0x19ed1a(0x52f)](_0x2b8611[_0x19ed1a(0x74b)])?Math[_0x19ed1a(0x31f)](0x0,_0x2b8611['forceAfterMs']):0x3e8,_0x3785e8=Date[_0x19ed1a(0x3d4)]();while(this[_0x19ed1a(0x82e)]['_call'](_0x19ed1a(0x73f),null,_0x19ed1a(0x75e),[],!![])>0x0&&Date[_0x19ed1a(0x3d4)]()-_0x3785e8<_0x1a244a)await new Promise(_0x4c95e2=>setTimeout(_0x4c95e2,0x5));_0x2b8611={..._0x2b8611,'forceAfterMs':_0x1a244a===Infinity?0x3e8:Math[_0x19ed1a(0x31f)](0x0,_0x1a244a-(Date[_0x19ed1a(0x3d4)]()-_0x3785e8))};}await this['_n'](_0x19ed1a(0x5ca),[_0x2b8611]);for(const _0x187917 of _0x57db7d){_0x187917[_0x19ed1a(0x6c6)](),_0x187917[_0x19ed1a(0x65d)]=![],_0x187917[_0x19ed1a(0x599)](_0x19ed1a(0x5ca));}}}return http={'OKDBHttp':_0xa044e4},http;}var fts,hasRequiredFts;function requireFts(){const _0x205568=_0xef081e;if(hasRequiredFts)return fts;hasRequiredFts=0x1;const _0x42eaf9=_0x2d16d5=>(_0x2d16d5&&typeof _0x2d16d5===_0x205568(0x7f6)?_0x2d16d5[_0x205568(0x686)]:_0x2d16d5)??'default';class _0x2b1588{constructor(_0x3b8974){const _0x49bec4=_0x205568;this[_0x49bec4(0x82e)]=_0x3b8974;}['_n'](_0x49366a,_0xf30220,_0x3424ea=![]){const _0x6a96a7=_0x205568;return this[_0x6a96a7(0x82e)][_0x6a96a7(0x5a1)](_0x6a96a7(0x658),null,_0x49366a,_0xf30220,_0x3424ea);}['_nm'](_0x3ed2a4,_0x45cd3f){const _0x3aacb8=_0x205568;return this[_0x3aacb8(0x82e)][_0x3aacb8(0x517)](_0x3aacb8(0x658),null,_0x3ed2a4,_0x45cd3f,!![]);}get[_0x205568(0x542)](){const _0x2d8335=this,_0x300632=_0x25dc98=>{const _0x5c718c=_0x2fc2,_0x5c8b03=_0x25dc98[_0x5c718c(0x691)](':'),_0x1093ee=_0x25dc98[_0x5c718c(0x848)](0x0,_0x5c8b03),_0x36fd67=_0x2d8335[_0x5c718c(0x82e)][_0x5c718c(0x75a)][_0x5c718c(0x292)](_0x1093ee);if(!_0x36fd67)return undefined;const _0x24e264=_0x36fd67[_0x5c718c(0x882)][_0x5c718c(0x328)]()[_0x5c718c(0x24c)](_0x44f590=>_0x44f590['cursorKey']===_0x5c718c(0x35a)+_0x25dc98);if(!_0x24e264)return undefined;return _0x36fd67[_0x5c718c(0x882)][_0x5c718c(0x2df)](_0x24e264['id'],_0x24e264[_0x5c718c(0x7c8)]);};return{'get':_0x300632,'has':_0xcce0e=>!!_0x300632(_0xcce0e)};}get[_0x205568(0x563)](){return[];}['_envIndexDb'](){const _0x5ca376=_0x205568,{RawDb:_0x53abac}=requireRawdb();return new _0x53abac(this[_0x5ca376(0x82e)]['_systemEnv'],'~fts:envs');}[_0x205568(0x396)](_0x15a6a3,_0x1a9f6c,_0x1471d7){const _0x1c2302=_0x205568;return this['_n'](_0x1c2302(0x396),[_0x15a6a3,_0x1a9f6c,_0x42eaf9(_0x1471d7)]);}['status'](_0x56f655,_0x21db11,_0x10387d){return this['_n']('status',[_0x56f655,_0x21db11,_0x42eaf9(_0x10387d)]);}['list'](_0x3f3654,_0x5cb2a3){return this['_n']('list',[_0x3f3654,_0x42eaf9(_0x5cb2a3)]);}async[_0x205568(0x5e1)](_0x5e1498,_0x278bae,_0x37846c,_0x5a52a8,_0x4cc523){const _0x5484e0=_0x205568,_0x1558c8=(_0xc6450c,_0xdcb204)=>this['okdb'][_0x5484e0(0x517)]('fts',null,_0xc6450c,_0xdcb204,!![],![]),_0x11617e=Date[_0x5484e0(0x3d4)]()+0x1d4c0;let _0x242463=_0x5e1498,_0x136dac=_0x278bae;for(;;){try{return await _0x1558c8(_0x242463,_0x136dac);}catch(_0xce9f4f){if(_0xce9f4f[_0x5484e0(0x1bd)]===_0x5484e0(0x6cb)){_0x242463='buildStep',_0x136dac=[_0x37846c,_0x5a52a8,_0x42eaf9(_0x4cc523)];if(_0xce9f4f['details']&&_0xce9f4f['details']['wait'])await new Promise(_0x256189=>setTimeout(_0x256189,0x2));continue;}if(_0xce9f4f[_0x5484e0(0x1bd)]!=='FIELD_RESOLVER_PENDING'||Date[_0x5484e0(0x3d4)]()>=_0x11617e)throw _0xce9f4f;}await new Promise(_0x55889e=>setTimeout(_0x55889e,0x5)),_0x242463='reset',_0x136dac=[_0x37846c,_0x5a52a8,!![],_0x42eaf9(_0x4cc523)];}}async['register'](_0x4fa195,_0x4177f0,_0x1ebeae,_0x8cf114,_0x810ee5){const _0x59a1bd=_0x205568;return this[_0x59a1bd(0x5e1)](_0x59a1bd(0x594),[_0x4fa195,_0x4177f0,_0x1ebeae,_0x8cf114,_0x42eaf9(_0x810ee5)],_0x4fa195,_0x4177f0,_0x810ee5);}async[_0x205568(0x48e)](_0x14e5a0,_0x22afa,_0x34a281){return this['_nm']('drop',[_0x14e5a0,_0x22afa,_0x42eaf9(_0x34a281)]);}async[_0x205568(0x50d)](_0x59fd72,_0x442885,_0x5c9d8f,_0x273a43){const _0x3086d5=_0x205568;return this[_0x3086d5(0x5e1)](_0x3086d5(0x50d),[_0x59fd72,_0x442885,_0x5c9d8f,_0x42eaf9(_0x273a43)],_0x59fd72,_0x442885,_0x273a43);}async['reset'](_0x4e2c87,_0x3ce7e9,_0x3fefa2,_0x55424e){const _0x16b9d0=_0x205568;return this[_0x16b9d0(0x5e1)]('reset',[_0x4e2c87,_0x3ce7e9,_0x3fefa2,_0x42eaf9(_0x55424e)],_0x4e2c87,_0x3ce7e9,_0x55424e);}async[_0x205568(0x866)](_0x14885c,_0x1b8b2b,_0x2f0352,_0x34de29=0x1d4c0){const _0x253522=_0x205568,_0x4bbf74=Date[_0x253522(0x3d4)]()+_0x34de29;for(;;){try{return await this[_0x253522(0x519)](_0x14885c,[..._0x1b8b2b,0x1]);}catch(_0x3dd8d7){if(_0x3dd8d7[_0x253522(0x1bd)]!==_0x2f0352||Date['now']()>=_0x4bbf74)throw _0x3dd8d7;}await new Promise(_0x16661e=>setTimeout(_0x16661e,0x2));}}async['ready'](_0x23ccdb,_0x2f58a1,_0x3aacb1){const _0x17fa87=_0x205568;return this[_0x17fa87(0x866)](_0x17fa87(0x8c9),[_0x23ccdb,null,_0x42eaf9(_0x3aacb1)],_0x17fa87(0x7ab));}async['flush'](_0x5e24aa,_0x44b583){const _0x45ede8=_0x205568;return this[_0x45ede8(0x866)](_0x45ede8(0x26a),[_0x5e24aa,_0x42eaf9(_0x44b583)],'FTS_FLUSH_TIMEOUT');}async['compact'](_0x150095,_0xf6c3b8){const _0x3ffd94=_0x205568;return this[_0x3ffd94(0x519)](_0x3ffd94(0x2de),[_0x150095,_0x42eaf9(_0xf6c3b8)]);}async['process'](_0x4fca87={}){const _0x2831ef=_0x205568;return this[_0x2831ef(0x519)](_0x2831ef(0x4da),[_0x4fca87]);}async[_0x205568(0x880)](_0x5ef58a){const _0x3ccfcd=_0x205568;return this[_0x3ccfcd(0x519)](_0x3ccfcd(0x880),[_0x42eaf9(_0x5ef58a)]);}[_0x205568(0x335)](_0x1a8aec){const _0x300732=_0x205568;return this['_n'](_0x300732(0x335),[_0x42eaf9(_0x1a8aec)]);}[_0x205568(0x5ad)](_0x3d7590,_0x52fd52,_0x2c9209,_0x28cf77,_0x4613ec){const _0xbec863=_0x205568;return this['_n'](_0xbec863(0x5ad),[_0x3d7590,_0x52fd52,_0x2c9209,_0x28cf77||{},_0x42eaf9(_0x4613ec)]);}[_0x205568(0x4df)](_0x4efcfb,_0x1f4986,_0x2d5384,_0x263761,_0x4796e9,_0x1d1a7d){const _0x28a56a=_0x205568;return this['_n'](_0x28a56a(0x4df),[_0x4efcfb,_0x1f4986,_0x2d5384,_0x263761||{},_0x42eaf9(_0x4796e9),_0x1d1a7d]);}[_0x205568(0x734)](_0x28d6d0,_0x2d1fbe,_0x48e8b9,_0x44c3df,_0x234a67){const _0x2fed83=_0x205568;return this['_n'](_0x2fed83(0x6e9),[_0x28d6d0,_0x2d1fbe,_0x48e8b9,_0x44c3df||{},_0x42eaf9(_0x234a67)]);}['listFtsEnvs'](){return this['_n']('listFtsEnvs',[]);}async['drain'](){const _0x2aaa8c=_0x205568;return this['_nm'](_0x2aaa8c(0x504),[]);}}return fts={'OKDBFts':_0x2b1588},fts;}var embeddings,hasRequiredEmbeddings;function requireEmbeddings(){const _0xf18c97=_0xef081e;if(hasRequiredEmbeddings)return embeddings;hasRequiredEmbeddings=0x1;const {OKDBError:_0x554a64,invalidArgument:_0x24cf17}=requireErrors();requireBridge();const _0x17625a=Object['freeze']({'EMBEDDER':'embedder','INDEXER':_0xf18c97(0x76c),'SEARCH':_0xf18c97(0x3f5),'WORKER':_0xf18c97(0x679)}),_0x13f28f=_0x1ec179=>typeof _0x1ec179===_0xf18c97(0x43c)||_0x1ec179==null?_0x1ec179:Array[_0xf18c97(0x51b)](_0x1ec179);class _0x509ac3{constructor(_0x1dfa07){const _0x56a799=_0xf18c97;this[_0x56a799(0x82e)]=_0x1dfa07,this[_0x56a799(0x253)]=new Map(),this[_0x56a799(0x5bb)]=new Map(),this['_viewCache']=new Map();}['_n'](_0x1412fc,_0xc16709=[],_0x233cb6=!![]){return this['okdb']['_call']('embeddings',null,_0x1412fc,_0xc16709,_0x233cb6);}[_0xf18c97(0x519)](_0xf42168,_0x41e9e7=[]){const _0xd6efaf=_0xf18c97;return this['okdb'][_0xd6efaf(0x517)](_0xd6efaf(0x3de),null,_0xf42168,_0x41e9e7,!![]);}[_0xf18c97(0x74c)](_0x1618d3){const _0x26c0cd=_0xf18c97;return _0x1618d3?this[_0x26c0cd(0x82e)][_0x26c0cd(0x2af)][_0x26c0cd(0x74c)](_0x1618d3):null;}[_0xf18c97(0x4d8)](_0x384c30,_0x5e5d80,_0x577afd={}){const _0xc4aabe=_0xf18c97;if(typeof _0x5e5d80!==_0xc4aabe(0x484))throw new _0x554a64(_0xc4aabe(0x588),_0xc4aabe(0x290),{'name':_0x384c30});this[_0xc4aabe(0x253)][_0xc4aabe(0x204)](_0x384c30,_0x5e5d80),this['_jsSchemas'][_0xc4aabe(0x204)](_0x384c30,_0x577afd);const _0x53efd2=this[_0xc4aabe(0x82e)],_0x4dd5c8=_0x1a3a10=>_0x5e5d80(_0x1a3a10,_0x53efd2);_0x4dd5c8['__okdb']=_0x53efd2,this['_n']('registerEmbedderFactory',[_0x384c30,_0x4dd5c8,_0x577afd??{}],![]);}[_0xf18c97(0x350)](_0x4fd32e){const _0x51c7c8=_0xf18c97,_0x48f049=this[_0x51c7c8(0x253)][_0x51c7c8(0x292)](_0x4fd32e);if(_0x48f049)return _0x48f049;if(!this['_n'](_0x51c7c8(0x83d),[_0x4fd32e],![]))return null;const _0x100002=this;return(_0x41b592={})=>{const _0xa0c5b5=_0x51c7c8,_0x2369b7=_0x100002['_n']('embedderNew',[_0x4fd32e,_0x41b592],![]),_0x4aa124=_0x100002['_n'](_0xa0c5b5(0x5c5),[_0x2369b7],![]),_0x17bbe5=(_0x44b05b,_0x2f0bff)=>_0x100002['_n'](_0xa0c5b5(0x644),[_0x2369b7,_0x44b05b,_0x2f0bff],![]),_0x38ee1a={'embed':async _0x5461f1=>Float32Array[_0xa0c5b5(0x51b)](_0x17bbe5(_0xa0c5b5(0x845),_0x5461f1)),'start':async()=>_0x17bbe5(_0xa0c5b5(0x77b)),'stop':async()=>{const _0x1b3934=_0xa0c5b5;_0x17bbe5('stop'),_0x17bbe5(_0x1b3934(0x66b));}};if(_0x4aa124)_0x38ee1a[_0xa0c5b5(0x3b9)]=async _0x4d6345=>_0x17bbe5('embedBatch',_0x4d6345)[_0xa0c5b5(0x642)](_0x54b074=>Float32Array[_0xa0c5b5(0x51b)](_0x54b074));return _0x38ee1a;};}[_0xf18c97(0x5b2)](_0x319cce){const _0x4870a3=_0xf18c97;return this[_0x4870a3(0x5bb)][_0x4870a3(0x292)](_0x319cce)??this['_n'](_0x4870a3(0x5b2),[_0x319cce],![])??undefined;}[_0xf18c97(0x7c3)](_0x4a3dfe,_0x28ffd5,_0x43d224={}){const _0xfe4237=_0xf18c97;if(typeof _0x28ffd5!=='function')throw new _0x554a64(_0xfe4237(0x1dc),_0xfe4237(0x290),{'name':_0x4a3dfe});this['_n']('registerAlgorithmFactory',[_0x4a3dfe,(_0x55a3e9,_0x297471)=>_0x28ffd5(_0x55a3e9,_0x297471),_0x43d224??{}],![]);}[_0xf18c97(0x23f)](){const _0x11c2da=_0xf18c97;return this['_n'](_0x11c2da(0x23f),[],![]);}[_0xf18c97(0x453)](_0x553a47,_0x49e238){const _0x4e5484=_0xf18c97;if(typeof _0x49e238!==_0x4e5484(0x484))throw new _0x554a64(_0x4e5484(0x84d),_0x4e5484(0x290),{'name':_0x553a47});this['_n']('registerPreparer',[_0x553a47,_0x49e238]);}[_0xf18c97(0x4f4)](_0x636af0,_0x5f3d63){const _0x2adaba=_0xf18c97;if(typeof _0x5f3d63!==_0x2adaba(0x484))throw new _0x554a64('chunk\x20strategy\x20must\x20be\x20a\x20function',_0x2adaba(0x290),{'name':_0x636af0});this['_n'](_0x2adaba(0x4f4),[_0x636af0,_0x5f3d63]);}[_0xf18c97(0x670)](_0x58a7ad){const _0xdc6d0c=_0xf18c97;if(_0x58a7ad==null)return this['_n']('setStorageResolver',[null],![]);if(typeof _0x58a7ad!==_0xdc6d0c(0x484))throw new _0x554a64(_0xdc6d0c(0x8b1),_0xdc6d0c(0x290));const _0x4b5345=this[_0xdc6d0c(0x82e)];this['_n'](_0xdc6d0c(0x670),[_0x5c6823=>_0x58a7ad(_0x5c6823,_0x4b5345)],![]);}async[_0xf18c97(0x568)](_0x571381,_0x412916={},_0x56f712={},_0x52dd37=null){const _0xdefa9=_0xf18c97;return this['_wrap'](await this[_0xdefa9(0x519)](_0xdefa9(0x568),[_0x571381,_0x412916,_0x56f712,_0x52dd37]));}async[_0xf18c97(0x6ac)](_0x45979a,_0x785b96={},_0x415a14={}){const _0x396c09=_0xf18c97;return this['_wrap'](await this[_0x396c09(0x519)]('createIndexer',[_0x45979a,_0x785b96,_0x415a14]));}async[_0xf18c97(0x718)](_0xd5eb9f,_0x4a5e41={},_0x6ba8d1={}){const _0x2b71cf=_0xf18c97;return this[_0x2b71cf(0x74c)](await this[_0x2b71cf(0x519)](_0x2b71cf(0x718),[_0xd5eb9f,_0x4a5e41,_0x6ba8d1]));}async[_0xf18c97(0x41e)](_0x55ba3f,_0x4a370a={},_0x29c9f5={}){return this['_wrap'](await this['_nm']('createWorker',[_0x55ba3f,_0x4a370a,_0x29c9f5]));}async[_0xf18c97(0x631)](_0x3f7de5,_0x56836a={},_0x3320aa={}){const _0xbd3561=_0xf18c97,_0x2b6535=await this[_0xbd3561(0x519)](_0xbd3561(0x631),[_0x3f7de5,_0x56836a,_0x3320aa]);return{'embedder':this[_0xbd3561(0x74c)](_0x2b6535[_0xbd3561(0x418)]),'indexer':this['_wrap'](_0x2b6535[_0xbd3561(0x76c)]),'worker':this[_0xbd3561(0x74c)](_0x2b6535[_0xbd3561(0x487)]),'search':this[_0xbd3561(0x74c)](_0x2b6535[_0xbd3561(0x5ad)]),'api':this[_0xbd3561(0x8a7)](_0x2b6535[_0xbd3561(0x55c)],_0x2b6535[_0xbd3561(0x418)][_0xbd3561(0x686)],_0x2b6535[_0xbd3561(0x487)]?_0x2b6535[_0xbd3561(0x487)][_0xbd3561(0x686)]:_0x2b6535[_0xbd3561(0x55c)]+_0xbd3561(0x1fc))};}['_running'](_0x5b71b5,_0xf44494){const _0x313c28=_0xf18c97;return this['okdb'][_0x313c28(0x2af)][_0x313c28(0x821)](_0x5b71b5,_0xf44494)?.[_0x313c28(0x276)]??null;}[_0xf18c97(0x418)](_0x20cd68){const _0x4cb8bf=_0xf18c97,_0x202198=this[_0x4cb8bf(0x357)](_0x17625a[_0x4cb8bf(0x78e)],_0x20cd68);if(!_0x202198)return null;const _0x25db96=this,_0x284a6d=_0x4da982=>Array[_0x4cb8bf(0x888)](_0x4da982)&&Array['isArray'](_0x4da982[0x0])?_0x4da982['map'](_0x19e96e=>Float32Array['from'](_0x19e96e)):Float32Array[_0x4cb8bf(0x51b)](_0x4da982);return new Proxy(_0x202198,{'get'(_0x5c51e4,_0x854d2d){const _0x483a49=_0x4cb8bf;if(_0x854d2d==='dims')return _0x25db96[_0x483a49(0x82e)][_0x483a49(0x5a1)](_0x483a49(0x2af),null,_0x483a49(0x478),[_0x17625a[_0x483a49(0x78e)],_0x20cd68,_0x483a49(0x3a7),[]],![])[_0x483a49(0x744)];if(_0x854d2d===_0x483a49(0x845))return async _0xeaf89d=>_0x284a6d(await _0x202198['embed'](_0xeaf89d));if(_0x854d2d===_0x483a49(0x3b9))return async _0x24105a=>(await _0x202198[_0x483a49(0x3b9)](_0x24105a))[_0x483a49(0x642)](_0x35740f=>Float32Array[_0x483a49(0x51b)](_0x35740f));return _0x5c51e4[_0x854d2d];}});}['indexer'](_0x4fbcb0){const _0x57a73f=_0xf18c97;return this[_0x57a73f(0x357)](_0x17625a[_0x57a73f(0x4be)],_0x4fbcb0);}[_0xf18c97(0x487)](_0x42f1fb){const _0x53d9e4=_0xf18c97;return this[_0x53d9e4(0x357)](_0x17625a['WORKER'],_0x42f1fb);}['search'](_0xa46b7a){const _0x43e344=_0xf18c97,_0x5913fd=this[_0x43e344(0x357)](_0x17625a[_0x43e344(0x55e)],_0xa46b7a);if(_0x5913fd)return _0x5913fd;return this[_0x43e344(0x894)](_0xa46b7a);}['_localViewApi'](_0xe350e1){const _0x205bbb=_0xf18c97,_0x35d41c=this;return{'search':(_0x2090b1,_0x138ecd={})=>_0x35d41c[_0x205bbb(0x82e)]['_callMacro'](_0x205bbb(0x3de),null,'search',[_0xe350e1,_0x13f28f(_0x2090b1),_0x138ecd],![]),'stats':async()=>_0x35d41c['_n'](_0x205bbb(0x348),[_0xe350e1],![]),'count':()=>_0x35d41c['_n']('viewOp',[_0xe350e1,'count'],![])};}async[_0xf18c97(0x4df)](_0x133f89,_0x26ac39,_0xe503a7={}){const _0x429e17=_0xf18c97,{limit:limit=0xa,..._0x3fcdc3}=_0xe503a7;return this[_0x429e17(0x519)](_0x429e17(0x4df),[_0x133f89,_0x13f28f(_0x26ac39),{..._0x3fcdc3,'limit':limit}]);}['vectorSpace'](_0xfb1108){return this['_n']('vectorSpace',[_0xfb1108],![]);}[_0xf18c97(0x369)](_0x2acec8,_0x3e7c4e){return this['_n']('durableEngineDoc',[_0x2acec8,_0x3e7c4e],![]);}[_0xf18c97(0x451)](_0x73fe0e){const _0x5c5365=_0xf18c97;return this['_n'](_0x5c5365(0x5ac),[_0x73fe0e],![]);}async[_0xf18c97(0x73b)](_0x224c61){const _0x43680a=_0xf18c97;return this['_n'](_0x43680a(0x219),[_0x224c61],![]);}async['_durableIndexerDocs'](_0x1236af,_0x35c10d={}){const _0x44a3fb=_0xf18c97;return this['_n'](_0x44a3fb(0x5d3),[_0x1236af,_0x35c10d],![]);}async['_durableIndexerDoc'](_0x6cb64c,_0x53f992){return this['_n']('durableDoc',[_0x6cb64c,_0x53f992],![]);}async[_0xf18c97(0x380)](_0x684c61,_0x459087,_0x5dd92b,_0x2bc7fe){const _0x5f201f=_0xf18c97;if(_0x684c61!=null&&typeof _0x684c61[_0x5f201f(0x2a1)]!==_0x5f201f(0x484))throw _0x24cf17(_0x5f201f(0x686),_0x5f201f(0x818),_0x684c61);if(!_0x684c61||!_0x5dd92b)return null;return this['okdb']['_callMacro'](_0x5f201f(0x3de),null,_0x5f201f(0x380),[_0x684c61,_0x459087,_0x5dd92b,_0x2bc7fe??null],![]);}async[_0xf18c97(0x385)](_0x297c5c,_0x2fb605,_0x23d9a2={}){const _0x52392c=_0xf18c97,_0x12e920={..._0x23d9a2};if(_0x12e920['vector'])_0x12e920['vector']=Array[_0x52392c(0x51b)](_0x12e920['vector']);return this['_n'](_0x52392c(0x385),[_0x297c5c,_0x2fb605,_0x12e920]);}async[_0xf18c97(0x746)](_0x913063,_0x1f8149,_0x1283d2,_0x1d0594={}){const _0x44f4b2=_0xf18c97;return this['_n'](_0x44f4b2(0x746),[_0x913063,_0x1f8149,_0x1283d2,_0x1d0594]);}async['durableMarkDelete'](_0x3f8573,_0x160b09){const _0x2c4503=_0xf18c97;return this['_n'](_0x2c4503(0x8e8),[_0x3f8573,_0x160b09]);}async[_0xf18c97(0x5b7)](_0x4f7138,_0x255125){const _0x1f5f01=_0xf18c97;return this['_n'](_0x1f5f01(0x5b7),[_0x4f7138,_0x255125]);}async[_0xf18c97(0x715)](_0x475294,_0x126b3b={}){return this['_n']('durableRetryFailed',[_0x475294,_0x126b3b]);}async[_0xf18c97(0x66a)](_0x127ddc){const _0x46d5a2=_0xf18c97;return this[_0x46d5a2(0x519)]('durableRebuild',[_0x127ddc]);}async['_durableWorkerStats'](_0x5e2e27){return this['_n']('durableWorkerStats',[_0x5e2e27],![]);}[_0xf18c97(0x738)](_0x3574bf){const _0x3aff38=_0xf18c97;return this['_n'](_0x3aff38(0x738),[_0x3574bf],![]);}['listVectorStores'](){const _0x574e3c=_0xf18c97;return this['_n'](_0x574e3c(0x768),[],![]);}[_0xf18c97(0x6b9)](_0x19a5a8,_0x19efad){const _0x5791ad=_0xf18c97,_0x3714b6=this['_n'](_0x5791ad(0x6b9),[_0x19a5a8,_0x19efad],![]);return _0x3714b6==null?null:Float32Array[_0x5791ad(0x51b)](_0x3714b6);}[_0xf18c97(0x88e)](_0x229fa5,_0x336828){const _0x3a48ab=_0xf18c97;return this['_n'](_0x3a48ab(0x88e),[_0x229fa5,_0x336828??null],![])??undefined;}async['registerModel'](_0x5bbec6,_0x418de7,_0x3d92a0,_0x1a1cb7=''){const _0x4823a1=_0xf18c97;return this['_n'](_0x4823a1(0x832),[_0x5bbec6,_0x418de7,_0x3d92a0,_0x1a1cb7]);}[_0xf18c97(0x3d9)](_0x533f56=null){const _0x555420=_0xf18c97;return this['_n'](_0x555420(0x3d9),[_0x533f56],![]);}['listProviders'](){const _0x36a5c3=_0xf18c97;return this['_n'](_0x36a5c3(0x87e),[],![]);}async['_ensureTypeEnv'](_0x5e6bf4,_0x4431bf){const _0x26b731=_0xf18c97;return this['_n']('ensureTypeEnv',[_0x5e6bf4,_0x4431bf],![]),this[_0x26b731(0x82e)]['_ensureEnv']('~'+_0x5e6bf4+_0x26b731(0x2e9)+_0x4431bf);}async[_0xf18c97(0x5d6)](_0x4ebb4d,_0x3d7385){const _0x179cad=_0xf18c97;return await this['_ensureTypeEnv'](_0x4ebb4d,_0x3d7385),{'adapter':_0x1cf368=>this[_0x179cad(0x86d)](_0x4ebb4d,_0x3d7385,_0x1cf368)};}[_0xf18c97(0x86d)](_0x2b9297,_0x43561e,_0xd16c62){const _0x150011=this;return{async 'put'(_0x377b63,_0x1bd6fa){const _0x379b6a=_0x2fc2;return _0x150011['_n'](_0x379b6a(0x54d),[_0x2b9297,_0x43561e,_0xd16c62,_0x377b63,Array[_0x379b6a(0x51b)](_0x1bd6fa)]);},async 'remove'(_0x478a90){const _0x52d100=_0x2fc2;return _0x150011['_n'](_0x52d100(0x777),[_0x2b9297,_0x43561e,_0xd16c62,_0x478a90]);}};}get[_0xf18c97(0x1d3)](){const _0x334c53=_0xf18c97,_0x5076e0=this,_0x475031=()=>_0x5076e0['_n']('localViewNames',[],![]),_0x40b8b8=_0x2f38b4=>{const _0x3ca3c7=_0x2fc2,_0x1a92f1=_0x24526b=>_0x5076e0['_n'](_0x3ca3c7(0x8a9),[_0x2f38b4,_0x24526b],![]);return{'name':_0x2f38b4,'_evict':async()=>_0x1a92f1(_0x3ca3c7(0x6c3)),'evict':async()=>_0x1a92f1(_0x3ca3c7(0x6c3)),'snapshot':async()=>_0x1a92f1(_0x3ca3c7(0x5d0)),'_snapshot':async()=>_0x1a92f1(_0x3ca3c7(0x5d0)),'rebuild':async()=>_0x1a92f1(_0x3ca3c7(0x774)),'stats':()=>_0x1a92f1(_0x3ca3c7(0x70a)),get 'count'(){const _0x4c81d1=_0x3ca3c7;return _0x1a92f1(_0x4c81d1(0x4c2));},get 'loaded'(){return _0x1a92f1('loaded');}};};return{get 'size'(){const _0x2c7271=_0x2fc2;return _0x475031()[_0x2c7271(0x788)];},'has':_0x318f37=>_0x475031()[_0x334c53(0x2a1)](_0x318f37),'get':_0x4785fb=>_0x475031()[_0x334c53(0x2a1)](_0x4785fb)?_0x40b8b8(_0x4785fb):undefined,'keys':()=>_0x475031()[Symbol[_0x334c53(0x6a7)]](),'values':()=>_0x475031()['map'](_0x40b8b8)[Symbol[_0x334c53(0x6a7)]](),[Symbol[_0x334c53(0x6a7)]]:()=>_0x475031()[_0x334c53(0x642)](_0x50f480=>[_0x50f480,_0x40b8b8(_0x50f480)])[Symbol[_0x334c53(0x6a7)]]()};}async[_0xf18c97(0x77b)](){}async[_0xf18c97(0x6bf)](){const _0x29ebbe=_0xf18c97;this['_n'](_0x29ebbe(0x6bf),[]);}[_0xf18c97(0x8a7)](_0x39f613,_0x8e5a7f,_0x35361b){const _0x547f9c=_0xf18c97;return{'search':(_0x307c95,_0x6d42b3={})=>{const _0x33ce41=_0x2fc2,_0x25316b=this[_0x33ce41(0x5ad)](_0x39f613);if(!_0x25316b)throw new Error(_0x33ce41(0x3a1)+_0x39f613+'\x22');return _0x25316b[_0x33ce41(0x5ad)](_0x307c95,_0x6d42b3);},'searchDocs':(_0x420c0d,_0x435f11={})=>this[_0x547f9c(0x4df)](_0x39f613,_0x420c0d,_0x435f11),'flush':_0x5aa2fd=>{const _0x444bbc=_0x547f9c,_0x3a8c0b=this[_0x444bbc(0x76c)](_0x39f613);if(!_0x3a8c0b)throw new Error('indexer\x20engine\x20not\x20running:\x20\x22'+_0x39f613+'\x22');return _0x3a8c0b[_0x444bbc(0x26a)](_0x5aa2fd);},'stats':async()=>({'embedder':await this[_0x547f9c(0x418)](_0x8e5a7f)?.['health']?.(),'indexer':await this['indexer'](_0x39f613)?.['stats']?.(),'worker':await this['worker'](_0x35361b)?.[_0x547f9c(0x70a)]?.(),'search':await this[_0x547f9c(0x5ad)](_0x39f613)?.[_0x547f9c(0x70a)]?.()})};}}return embeddings={'OKDBEmbeddings':_0x509ac3,'ENGINE_TYPES':_0x17625a},embeddings;}var auth,hasRequiredAuth;function requireAuth(){const _0x5c8c5d=_0xef081e;if(hasRequiredAuth)return auth;hasRequiredAuth=0x1;const {invalidArgument:_0x10e2f2}=requireErrors();class _0x4b8dab{constructor(_0x46758a){this['okdb']=_0x46758a;}['_n'](_0x2e0bf0,_0x5e148a=[],_0x52c9d4=![]){const _0x126f35=_0x2fc2;return this[_0x126f35(0x82e)][_0x126f35(0x5a1)]('auth',null,_0x2e0bf0,_0x5e148a,_0x52c9d4);}[_0x5c8c5d(0x519)](_0x2497e0,_0x472988=[]){const _0x589128=_0x5c8c5d;return this[_0x589128(0x82e)][_0x589128(0x517)](_0x589128(0x65c),null,_0x2497e0,_0x472988,![]);}get[_0x5c8c5d(0x8d6)](){const _0x50a0ac=_0x5c8c5d;return this['_n'](_0x50a0ac(0x8d6));}get[_0x5c8c5d(0x2c4)](){const _0x509c9b=_0x5c8c5d;return this['_n'](_0x509c9b(0x2c4));}get['_oauthConfig'](){const _0x2bdb02=_0x5c8c5d;return this[_0x2bdb02(0x82e)][_0x2bdb02(0x1cc)][_0x2bdb02(0x65c)]?.[_0x2bdb02(0x2b5)]||{};}[_0x5c8c5d(0x1fb)](_0x3e5f68){const _0x353502=_0x5c8c5d;return this['_n'](_0x353502(0x1fb),[_0x3e5f68??null]);}[_0x5c8c5d(0x639)](_0x21c553){const _0x5150e3=_0x5c8c5d;return this['_n'](_0x5150e3(0x5b4),[_0x21c553??null]);}[_0x5c8c5d(0x543)](_0x4d0418){return this['_n']('isLoopbackIp',[_0x4d0418??null]);}[_0x5c8c5d(0x82d)](){return this['_n']('isBootstrap');}[_0x5c8c5d(0x428)](){const _0x166340=_0x5c8c5d;return this['_n'](_0x166340(0x428));}[_0x5c8c5d(0x585)](){const _0xa04e51=_0x5c8c5d;return this['_n'](_0xa04e51(0x585));}[_0x5c8c5d(0x1e8)](_0x5e0efc){const _0x2ae19d=_0x5c8c5d;return this['_n'](_0x2ae19d(0x1e8),[_0x5e0efc]);}[_0x5c8c5d(0x780)](_0x23ebc3){const _0x91db2c=_0x5c8c5d;return this['_n'](_0x91db2c(0x780),[_0x23ebc3]);}[_0x5c8c5d(0x798)](_0xdab08){const _0x425d20=_0x5c8c5d;if(_0xdab08!=null&&typeof _0xdab08!=='string')throw _0x10e2f2('header',_0x425d20(0x818),_0xdab08);return this['_n'](_0x425d20(0x798),[_0xdab08??null]);}async[_0x5c8c5d(0x1cb)](){return this['_n']('ensureTokensType',[],!![]);}async[_0x5c8c5d(0x4fd)](_0x2462e1){const _0x16e223=_0x5c8c5d;return this['_n'](_0x16e223(0x366),[_0x2462e1]);}async[_0x5c8c5d(0x612)](_0x950437){const _0x382cef=_0x5c8c5d;return this['_n'](_0x382cef(0x85e),[_0x950437]);}async['_lookupAllByName'](_0x481644){return this['_n']('lookupAllByName',[_0x481644]);}async['authenticateRequest'](_0xbe7cbd){const _0x48ab7e=_0x5c8c5d,_0xe71791=_0xbe7cbd?.[_0x48ab7e(0x7ba)]||{};return this['_n']('authenticateRequest',[{'remoteAddress':_0xbe7cbd[_0x48ab7e(0x693)]?.[_0x48ab7e(0x7b3)]??null,'internal':_0xbe7cbd?.[_0x48ab7e(0x637)]?.[_0x48ab7e(0x66d)]===!![],'authorization':_0xe71791[_0x48ab7e(0x289)]??null,'cookies':_0xbe7cbd?.['cookies']??{}}]);}async[_0x5c8c5d(0x892)](_0x219457,_0x318054){const _0x487acc=_0x5c8c5d;return this['_nm'](_0x487acc(0x892),[_0x219457??null,_0x318054??null]);}async[_0x5c8c5d(0x80c)](_0x57b9d6,_0x96b12,_0x2252ae){const _0x20e172=_0x5c8c5d;return this[_0x20e172(0x519)](_0x20e172(0x80c),[_0x57b9d6??null,_0x96b12??null,_0x2252ae??null]);}[_0x5c8c5d(0x784)](){const _0x3c6b2a=_0x5c8c5d;return this['_n'](_0x3c6b2a(0x784));}[_0x5c8c5d(0x39a)](){const _0x75852d=_0x5c8c5d;return this['_n'](_0x75852d(0x39a));}['createLoginState'](_0x47f7d6={},_0x4a1dda=0x927c0){const _0x3dc0bb=_0x5c8c5d;return this['_n'](_0x3dc0bb(0x378),[_0x47f7d6,_0x4a1dda]);}[_0x5c8c5d(0x26f)](_0x1b62c6){return this['_n']('consumeLoginState',[_0x1b62c6]);}async[_0x5c8c5d(0x8b6)](_0x3ea174,_0xcb3a1={}){const _0x170249=_0x5c8c5d;return this[_0x170249(0x519)](_0x170249(0x87b),[_0x3ea174,_0xcb3a1]);}async[_0x5c8c5d(0x45d)](_0x3b1d60={}){const _0x15d031=_0x5c8c5d;return this[_0x15d031(0x519)](_0x15d031(0x65b),[_0x3b1d60]);}[_0x5c8c5d(0x417)](_0x5ec726){const _0x29cd54=_0x5c8c5d;return this['_n'](_0x29cd54(0x36c),[_0x5ec726]);}}return auth={'OKDBAuth':_0x4b8dab},auth;}var sync,hasRequiredSync;function requireSync(){const _0x34286e=_0xef081e;if(hasRequiredSync)return sync;hasRequiredSync=0x1;const {RawDb:_0x4ffe85}=requireRawdb();class _0x47b3d1{constructor(_0x4e5fb2){this['_s']=_0x4e5fb2;}get['_ackDb'](){const _0x51dc6f=_0x2fc2;return this['_ack']||(this[_0x51dc6f(0x448)]=new _0x4ffe85(this['_s'][_0x51dc6f(0x82e)][_0x51dc6f(0x85c)],_0x51dc6f(0x742)));}[_0x34286e(0x200)](){return this['_ackDb'];}['_ensureDbs'](){const _0x498c9a=_0x34286e;return this[_0x498c9a(0x338)];}['_n'](_0x204d6a,_0x26d5e1=[]){const _0x4b4717=_0x34286e;return this['_s']['_n'](_0x4b4717(0x8b3)+_0x204d6a,_0x26d5e1);}[_0x34286e(0x85a)](_0x49c30c,_0x171f41){const _0x6489b3=_0x34286e;return this['_n'](_0x6489b3(0x85a),[_0x49c30c,_0x171f41]);}async['forceResync'](_0x504561){const _0x8c039b=_0x34286e;return this['_n'](_0x8c039b(0x331),[_0x504561]);}[_0x34286e(0x54b)](){const _0x3fd3af=_0x34286e;return this['_n'](_0x3fd3af(0x54b));}[_0x34286e(0x83e)](_0x1de75d){const _0xd8738d=_0x34286e;return this['_n'](_0xd8738d(0x83e),[_0x1de75d]);}async[_0x34286e(0x1ce)](){const _0x36ec0f=_0x34286e;return this['_n'](_0x36ec0f(0x1ce));}[_0x34286e(0x1d2)](){const _0x26e7e0=_0x34286e;return this['_n'](_0x26e7e0(0x1d2));}['start'](){const _0x4c28e8=_0x34286e;return this['_n'](_0x4c28e8(0x77b));}[_0x34286e(0x6bf)](){const _0x32d92f=_0x34286e;return this['_n'](_0x32d92f(0x6bf));}get[_0x34286e(0x5bf)](){const _0x102a23=_0x34286e;try{return this['_n'](_0x102a23(0x351))?{}:null;}catch{return null;}}}class _0x2bc445{constructor(_0x5e4139){const _0x190d97=_0x34286e;this['okdb']=_0x5e4139,this['gc']=new _0x47b3d1(this);const _0x4cdc8a=this;this[_0x190d97(0x1cc)]=new Proxy({},{'get':(_0x37f698,_0x33c0aa)=>typeof _0x33c0aa===_0x190d97(0x43c)?_0x4cdc8a['_n'](_0x190d97(0x1cc))[_0x33c0aa]:undefined,'set':(_0xff1f36,_0x48b7d5,_0x134287)=>{const _0x114c37=_0x190d97;if(_0x48b7d5===_0x114c37(0x595))_0x4cdc8a['_n'](_0x114c37(0x74e),[_0x134287??null]);else{if(_0x48b7d5===_0x114c37(0x7bf))_0x4cdc8a['_n'](_0x114c37(0x22c),[_0x134287??null]);else{if(_0x48b7d5===_0x114c37(0x622))_0x4cdc8a['_n'](_0x114c37(0x54a),[_0x134287]);}}return!![];},'ownKeys':()=>Object[_0x190d97(0x607)](_0x4cdc8a['_n'](_0x190d97(0x1cc))),'getOwnPropertyDescriptor':(_0x101cdd,_0x5c0614)=>({'enumerable':!![],'configurable':!![],'value':_0x4cdc8a['_n']('options')[_0x5c0614]}),'has':(_0x3bd18d,_0x220f39)=>_0x220f39 in _0x4cdc8a['_n']('options')});}['_n'](_0x1571d0,_0x163834=[],_0x1aa3ea=![]){const _0x9e8ac9=_0x34286e;return this[_0x9e8ac9(0x82e)][_0x9e8ac9(0x5a1)](_0x9e8ac9(0x801),null,_0x1571d0,_0x163834,_0x1aa3ea);}['_nm'](_0x3ef82a,_0x1e0773=[]){const _0x2b1dc9=_0x34286e;return this[_0x2b1dc9(0x82e)]['_callMacro'](_0x2b1dc9(0x801),null,_0x3ef82a,_0x1e0773,!![]);}get[_0x34286e(0x3ae)](){const _0x4ba40b=_0x34286e;return this[_0x4ba40b(0x1d6)]||(this[_0x4ba40b(0x1d6)]=new _0x4ffe85(this[_0x4ba40b(0x82e)]['_systemEnv'],_0x4ba40b(0x6c8)));}[_0x34286e(0x2ab)](){const _0x162354=_0x34286e;return this[_0x162354(0x3ae)];}get[_0x34286e(0x751)](){const _0x25495b=_0x34286e;return this[_0x25495b(0x81f)]||(this[_0x25495b(0x81f)]=new(requireLock())[(_0x25495b(0x23d))](this[_0x25495b(0x82e)],_0x25495b(0x87d),'sync',{'ttlMs':0x7530}));}get[_0x34286e(0x595)](){const _0x22c248=_0x34286e;return this['_n']('options')[_0x22c248(0x595)];}get[_0x34286e(0x6e6)](){const _0x33a5ee=_0x34286e;return this['okdb'][_0x33a5ee(0x489)]&&this['_n'](_0x33a5ee(0x611))?{}:null;}get[_0x34286e(0x548)](){const _0x42b7da=_0x34286e;return this[_0x42b7da(0x6e6)];}get['_nodePrivateKey'](){const _0x2d847d=_0x34286e;return this['_n'](_0x2d847d(0x42e))?.['privateKey'];}get[_0x34286e(0x83f)](){const _0x3c2a73=_0x34286e;return this['_n'](_0x3c2a73(0x42e))?.[_0x3c2a73(0x5b0)];}[_0x34286e(0x1f9)](){const _0x146534=_0x34286e;return this['_n'](_0x146534(0x1f9));}['getSelfNode'](){const _0x59bab7=_0x34286e;return this['_n'](_0x59bab7(0x53a));}get['peers'](){const _0x12a069=_0x34286e;return this[_0x12a069(0x43b)]||(()=>this['_n'](_0x12a069(0x77e)));}set[_0x34286e(0x77e)](_0x237198){const _0x3aa67c=_0x34286e;this[_0x3aa67c(0x43b)]=typeof _0x237198===_0x3aa67c(0x484)?_0x237198:null,this['_n'](_0x3aa67c(0x8d5),[this['__peers']]);}[_0x34286e(0x57c)](){const _0x2c742a=_0x34286e;return this['_n'](_0x2c742a(0x647));}async[_0x34286e(0x775)](){const _0xa6bb1c=_0x34286e;return this[_0xa6bb1c(0x519)](_0xa6bb1c(0x775));}async[_0x34286e(0x463)](_0x1b3f13){const _0x3b45cf=_0x34286e;return this[_0x3b45cf(0x519)](_0x3b45cf(0x463),[_0x1b3f13]);}async['_reconcilePeer'](_0x4bd8d0,_0x4831e4={}){const _0x364d71=_0x34286e;return this[_0x364d71(0x519)]('reconcilePeerPull',[_0x4bd8d0,_0x4831e4]);}[_0x34286e(0x6bf)](){const _0x2d8e3b=_0x34286e;return this['_n'](_0x2d8e3b(0x6bf));}[_0x34286e(0x2d7)](){const _0x5f4a2f=_0x34286e;return this['_n'](_0x5f4a2f(0x2d7));}async['upsertLink'](_0x782060,_0x416d11={}){const _0x1528a9=_0x34286e;return this['_n'](_0x1528a9(0x57f),[_0x782060,_0x416d11],!![]);}async[_0x34286e(0x25c)](_0x1c2d4d){const _0x54bd09=_0x34286e;return this['_n'](_0x54bd09(0x25c),[_0x1c2d4d],!![]);}[_0x34286e(0x6bd)](_0x24f445){const _0x276620=_0x34286e;return this['_n'](_0x276620(0x67e),[_0x24f445]);}[_0x34286e(0x64b)](_0x5d43c9){return this['_n']('getPeerState',[_0x5d43c9]);}async[_0x34286e(0x382)](_0xcb29dc,_0x3f3382,_0x206c6e={}){const _0x40c7ca=_0x34286e;return this['_n'](_0x40c7ca(0x636),[_0xcb29dc,_0x3f3382,_0x206c6e]);}async[_0x34286e(0x3e7)](_0x12fa98){const _0x336361=_0x34286e;return this['_n'](_0x336361(0x850),[_0x12fa98]);}async[_0x34286e(0x7ed)](){const _0x32a939=_0x34286e;return this['_n'](_0x32a939(0x50d),[],!![]);}async['patchSelf'](_0x488dc6){const _0x2a2f24=_0x34286e;return this['_n'](_0x2a2f24(0x52c),[_0x488dc6],!![]);}async[_0x34286e(0x8a0)](_0x575fc4,_0x2a3a69={}){const _0x1fc63f=_0x34286e;return this['_nm'](_0x1fc63f(0x8a0),[_0x575fc4,_0x2a3a69]);}async[_0x34286e(0x4f3)](_0x570647={},_0x124181={}){const _0x4cdcea=_0x34286e;return void _0x570647[_0x4cdcea(0x87d)],this['_n']('calculateDelta',[_0x570647,_0x124181]);}async[_0x34286e(0x78b)](_0x593092,_0x53a904,_0x16a9d5,_0x13b9c9){const _0x60bc00=_0x34286e;return this[_0x60bc00(0x519)](_0x60bc00(0x78b),[_0x593092,_0x53a904,_0x16a9d5,_0x13b9c9??null]);}async[_0x34286e(0x477)](_0x64fdab,_0x183c25,_0x1ae91f={}){const _0x2b7b22=_0x34286e;return this[_0x2b7b22(0x519)](_0x2b7b22(0x477),[_0x64fdab,_0x183c25,_0x1ae91f]);}['_shouldApplyChange'](_0x41f7df,_0x21d85b=null){return this['_n']('shouldApplyChange',[_0x41f7df,_0x21d85b?_0x21d85b['name']:null]);}['applyChange'](_0x41ae16,_0x228c0e=null){const _0x4de864=_0x34286e;return this['_n']('applyChange',[_0x41ae16,_0x228c0e?_0x228c0e[_0x4de864(0x686)]:null],!![]);}}return sync={'OKDBSync':_0x2bc445},sync;}var migrate,hasRequiredMigrate;function requireMigrate(){const _0x6e525a=_0xef081e;if(hasRequiredMigrate)return migrate;hasRequiredMigrate=0x1;const {optionsArg:_0x3569b7}=requireErrors(),_0x402107=require$$0,_0x28eadf=require$$4,_0x41bd3c=0x40*0x400;async function _0x5be326(_0x31a5ab,_0x4be33e){const _0x450876=_0x2fc2;for(let _0x149221=0x0;_0x149221<_0x4be33e[_0x450876(0x788)];){let _0x319ca3=Math[_0x450876(0x439)](_0x4be33e[_0x450876(0x788)],_0x149221+_0x41bd3c);if(_0x319ca3<_0x4be33e[_0x450876(0x788)]){const _0x376860=_0x4be33e[_0x450876(0x691)](0xa,_0x319ca3-0x1);_0x319ca3=_0x376860===-0x1?_0x4be33e[_0x450876(0x788)]:_0x376860+0x1;}const _0x3d7b7f=_0x31a5ab[_0x450876(0x4bf)](_0x4be33e[_0x450876(0x46f)](_0x149221,_0x319ca3));_0x149221=_0x319ca3;if(!_0x3d7b7f)await new Promise(_0xc4ba73=>_0x31a5ab[_0x450876(0x308)](_0x450876(0x504),_0xc4ba73));await new Promise(_0x1009c6=>setImmediate(_0x1009c6));}}async function _0xebb4ac(_0x4bd6e8){const _0x5de5af=_0x2fc2,_0x7fafb6=[];for await(const _0x240b11 of _0x4bd6e8)_0x7fafb6[_0x5de5af(0x27f)](Buffer[_0x5de5af(0x605)](_0x240b11)?_0x240b11:Buffer[_0x5de5af(0x51b)](_0x240b11,'utf8'));return Buffer['concat'](_0x7fafb6);}class _0xacdfb7{constructor(_0x52447b){const _0x27513a=_0x2fc2;this[_0x27513a(0x82e)]=_0x52447b;}['_n'](_0xfeaed8,_0x1474eb){const _0x1b5a9e=_0x2fc2;return this[_0x1b5a9e(0x82e)]['_call'](_0x1b5a9e(0x60c),null,_0xfeaed8,_0x1474eb,!![]);}async[_0x6e525a(0x420)](_0x3210af,_0xb8f83d={}){const _0x1b99dc=_0x6e525a,{data:_0x59ea18,stats:_0x2ed2e9}=this['_n']('exportBuf',[_0xb8f83d]);return await _0x5be326(_0x3210af,Buffer[_0x1b99dc(0x51b)](_0x59ea18)),_0x2ed2e9;}async['exportToFile'](_0x1246d2,_0x3dccab={}){const _0x174e31=_0x6e525a;_0x402107['mkdirSync'](_0x28eadf[_0x174e31(0x733)](_0x1246d2),{'recursive':!![]});const _0x377981=_0x402107['createWriteStream'](_0x1246d2),_0x180df3=await this[_0x174e31(0x420)](_0x377981,_0x3dccab);return await new Promise((_0x4904ce,_0x4602bc)=>{const _0x4ed2f9=_0x174e31;_0x377981[_0x4ed2f9(0x3cf)](),_0x377981['once'](_0x4ed2f9(0x8c1),_0x4904ce),_0x377981['once'](_0x4ed2f9(0x860),_0x4602bc);}),{..._0x180df3,'filePath':_0x1246d2};}async[_0x6e525a(0x39f)](_0x59f826,_0x1c03d0={}){const _0x3d2433=_0x6e525a,{data:_0x5bf18f,stats:_0xad14a7}=this['_n']('exportEnvsBuf',[_0x1c03d0]);return await _0x5be326(_0x59f826,Buffer[_0x3d2433(0x51b)](_0x5bf18f)),_0xad14a7;}async[_0x6e525a(0x69a)](_0x25fa18,_0x337298={}){const _0x36d327=_0x6e525a,_0x34fd9d=await _0xebb4ac(_0x25fa18),{onProgress:_0x406cde,..._0x3ecf3c}=_0x337298,_0x3dc66d=this['_n'](_0x36d327(0x44a),[_0x34fd9d,_0x3ecf3c]);if(typeof _0x406cde===_0x36d327(0x484))_0x406cde({'type':null,'count':_0x3dc66d[_0x36d327(0x405)]});return _0x3dc66d;}async[_0x6e525a(0x5c6)](_0x250d74,_0x8df145={}){const _0x145438=_0x6e525a;return this['importFromStream'](_0x402107[_0x145438(0x646)](_0x250d74,{'encoding':_0x145438(0x547)}),_0x8df145);}async[_0x6e525a(0x40e)](_0x3d76f5,_0x5e88cb={}){return this['_n']('backup',[_0x3d76f5,_0x5e88cb]);}['backupRoot'](){const _0x479e19=_0x6e525a;return this['_n'](_0x479e19(0x2b7),[]);}['resolveBackupDest'](_0x1f2f6a){const _0x3fd1a9=_0x6e525a;return this['_n'](_0x3fd1a9(0x1ed),[_0x1f2f6a??null]);}async[_0x6e525a(0x701)](_0x4d1fbf={}){return this['_n']('export',[_0x4d1fbf]);}async[_0x6e525a(0x5f5)](_0x35e4dc,_0x4a9774={}){const _0x2f1d2c=_0x6e525a;return this['_n'](_0x2f1d2c(0x5f5),[_0x35e4dc,_0x4a9774]);}async['exportJSON'](_0x30a28e){const _0x507fac=_0x6e525a,{pretty:pretty=![]}=_0x3569b7(_0x30a28e);return JSON[_0x507fac(0x754)](await this[_0x507fac(0x701)](),null,pretty?0x2:0x0);}async['importJSON'](_0x22d00b){const _0x322d4e=_0x6e525a;return this[_0x322d4e(0x5f5)](JSON[_0x322d4e(0x2cb)](_0x22d00b));}['_assertFiles'](){const _0x2c92c9=_0x6e525a;if(!this[_0x2c92c9(0x82e)]['_envs'][_0x2c92c9(0x292)]('default')?.[_0x2c92c9(0x1c3)])throw new Error('files\x20feature\x20not\x20available');}async[_0x6e525a(0x3a3)](_0x93c460){const _0x24d178=_0x6e525a;return this[_0x24d178(0x33c)](),this['_n'](_0x24d178(0x3a3),[_0x93c460]);}async[_0x6e525a(0x2bc)](_0x55b0ef){const _0x27e64f=_0x6e525a;return this[_0x27e64f(0x33c)](),this['_n'](_0x27e64f(0x2bc),[_0x55b0ef]);}['_allEnvsWithFiles'](){const _0x1cb59b=_0x6e525a;return this['_n'](_0x1cb59b(0x60d),[])['map'](_0x509393=>this[_0x1cb59b(0x82e)][_0x1cb59b(0x4f8)](_0x509393));}async['validateBlobIntegrity'](){const _0x486171=_0x6e525a;return this['_assertFiles'](),this['_n'](_0x486171(0x695),[]);}async[_0x6e525a(0x528)](){const _0x29daa3=_0x6e525a;return this['_assertFiles'](),this['_n'](_0x29daa3(0x528),[]);}}return migrate={'OKDBMigrate':_0xacdfb7},migrate;}var mcp,hasRequiredMcp;function requireMcp(){const _0xbe932d=_0xef081e;if(hasRequiredMcp)return mcp;hasRequiredMcp=0x1;class _0x1d5f8a{constructor(_0xce58bc){const _0x38d8c0=_0x2fc2;this[_0x38d8c0(0x82e)]=_0xce58bc,this[_0x38d8c0(0x2c3)]=new Map();}['_n'](_0x52a4e9,_0x462425){const _0x3fd9cf=_0x2fc2;try{return this['okdb']['_call']('mcp',null,_0x52a4e9,_0x462425,!![]);}catch(_0x21e771){if(_0x21e771&&_0x21e771[_0x3fd9cf(0x1bd)]==='MCP_ERROR'&&_0x21e771['details']){if(_0x21e771[_0x3fd9cf(0x22a)]['jsonrpcCode']!==undefined)_0x21e771['jsonrpcCode']=_0x21e771[_0x3fd9cf(0x22a)][_0x3fd9cf(0x5a6)];_0x21e771[_0x3fd9cf(0x22a)]=_0x21e771[_0x3fd9cf(0x22a)]['details'],_0x21e771[_0x3fd9cf(0x1bd)]=undefined;}throw _0x21e771;}}[_0xbe932d(0x40a)](){const _0x4a0676=_0xbe932d;return this['_n'](_0x4a0676(0x82a),[]);}async['_call'](_0x13b1d9,_0x1f0b6c={}){return this['_n']('call',[_0x13b1d9??null,_0x1f0b6c??{}]);}async[_0xbe932d(0x8c8)](_0x1805bf,_0x314a08={}){const _0x2b8ca1=_0xbe932d;return this['_n'](_0x2b8ca1(0x336),[_0x1805bf,_0x314a08??{}]);}[_0xbe932d(0x783)](_0x40c110){const _0x1f0718=_0xbe932d;return this['_n'](_0x1f0718(0x791),[_0x40c110??null]);}}return mcp={'OKDBMcp':_0x1d5f8a},mcp;}var sys,hasRequiredSys;function requireSys(){const _0x3252c5=_0xef081e;if(hasRequiredSys)return sys;hasRequiredSys=0x1;function _0x11d5fb(_0x4bf4f2,_0x525aec,_0x39362d){const _0x555520=_0x2fc2,_0x510cab={};for(const [_0x5e8c4a,_0x6ca66a]of Object[_0x555520(0x84a)](_0x39362d)){_0x510cab[_0x5e8c4a]=_0x6ca66a===_0x555520(0x544)?async(..._0x146164)=>_0x4bf4f2['_call'](_0x525aec,null,_0x5e8c4a,_0x146164):(..._0x45c5af)=>_0x4bf4f2[_0x555520(0x5a1)](_0x525aec,null,_0x5e8c4a,_0x45c5af,![]);}return _0x510cab;}const _0x2cd749=['listTypes','isType',_0x3252c5(0x55b),_0x3252c5(0x7cc),'listIndexes',_0x3252c5(0x8ab),_0x3252c5(0x32d),_0x3252c5(0x533),_0x3252c5(0x240),_0x3252c5(0x63d),_0x3252c5(0x5d4),'describeTypeDetailed','describeAllTypesDetailed','meta',_0x3252c5(0x78c),_0x3252c5(0x3ab),_0x3252c5(0x2b6),_0x3252c5(0x5eb),_0x3252c5(0x7a8),_0x3252c5(0x8a3),'listIndexKeys'],_0x4cf504={'add':_0x3252c5(0x544),'activate':_0x3252c5(0x544),'remove':'async','list':_0x3252c5(0x801),'get':_0x3252c5(0x801),'effective':'sync'},_0x35c786={'open':_0x3252c5(0x544),'register':'async','buildOwnRow':_0x3252c5(0x801),'_buildProcessingFacet':_0x3252c5(0x801),'reportThreadStats':_0x3252c5(0x801),'clearThreadStats':_0x3252c5(0x801),'emitProc':_0x3252c5(0x801),'addSupervisedChild':'async','removeSupervisedChild':_0x3252c5(0x801),'updateSupervisedChildStats':_0x3252c5(0x801),'publishChildRow':_0x3252c5(0x544),'putNode':'async','removeNode':_0x3252c5(0x544),'nodeDead':'sync','listNodes':'sync','reap':_0x3252c5(0x544),'publishOwnRow':'async','deregisterSelf':'async','setOwnMeta':_0x3252c5(0x801),'noteListenAddr':_0x3252c5(0x801),'hasDesired':'sync','getDesired':_0x3252c5(0x801),'setDesired':'async','listDesired':_0x3252c5(0x801),'getCmd':_0x3252c5(0x801),'bumpCmd':_0x3252c5(0x544),'processingStatusView':'sync','processorsView':'sync','clusterStatusView':_0x3252c5(0x801),'nodesView':_0x3252c5(0x801),'treeView':_0x3252c5(0x801),'getProcess':_0x3252c5(0x801),'runtimeProcessesView':_0x3252c5(0x801)};function _0x4d8158(_0x146850){const _0x1a3cb6=_0x3252c5,_0x3fc695={},_0x56f9e8=_0x39b168=>_0x39b168&&typeof _0x39b168==='object'&&!Array[_0x1a3cb6(0x888)](_0x39b168)&&typeof _0x39b168[_0x1a3cb6(0x686)]===_0x1a3cb6(0x43c)?_0x39b168['name']:_0x39b168;for(const _0x5d5bcd of _0x2cd749)_0x3fc695[_0x5d5bcd]=_0x5d5bcd===_0x1a3cb6(0x8a3)?async(..._0x18a915)=>_0x146850[_0x1a3cb6(0x5a1)](_0x1a3cb6(0x5c3),null,_0x5d5bcd,_0x18a915['map'](_0x56f9e8),!![]):(..._0x4a9a2d)=>_0x146850[_0x1a3cb6(0x5a1)]('meta',null,_0x5d5bcd,_0x4a9a2d[_0x1a3cb6(0x642)](_0x56f9e8),![]);return _0x3fc695;}function _0x31bbd0(_0x28e615){const _0x4efbe6=_0x11d5fb(_0x28e615,'licenses',_0x4cf504);return _0x4efbe6;}function _0x505a04(_0x1ba906){const _0x1953b1=_0x3252c5,_0x4d320d=()=>_0x1ba906[_0x1953b1(0x6af)][_0x1953b1(0x87a)](),_0x167002=_0x1c5b72=>_0x1c5b72[_0x1953b1(0x66b)]?{..._0x1c5b72,'_isFree':!![]}:_0x1c5b72;return{async 'addLicense'(_0xbb6e90){const _0x1584c1=_0x1953b1;return _0x1ba906[_0x1584c1(0x6af)][_0x1584c1(0x77d)](_0xbb6e90);},async 'reload'(){},async 'recheck'(){},get 'active'(){const _0x51086e=_0x4d320d();return _0x51086e['free']?null:_0x51086e;},get 'effective'(){return _0x167002(_0x4d320d());},'hasLimit'(_0x4e5999){const _0x55895a=_0x1953b1,_0x2c0e71=_0x4d320d();if(!_0x2c0e71[_0x55895a(0x26e)])return![];const _0x24a34e=_0x2c0e71[_0x55895a(0x368)]?.[_0x4e5999];return!(_0x24a34e===null||_0x24a34e===undefined||_0x24a34e===0x0);},'isFeatureEnabled'(_0x25a73e){const _0x4a9984=_0x1953b1,_0x493bc2=_0x4d320d();return!_0x493bc2['enforced']||!!_0x493bc2[_0x4a9984(0x264)]?.[_0x25a73e];},'assertFeature'(_0x3b1797){const _0x52dee7=_0x1953b1,_0x4af8b7=_0x4d320d();if(!_0x4af8b7[_0x52dee7(0x26e)]||_0x4af8b7['features']?.[_0x3b1797])return;const {OKDBError:_0x5a581f}=requireErrors(),_0x298c38=_0x4af8b7['free']?_0x52dee7(0x584)+_0x3b1797+_0x52dee7(0x3ac)+_0x3b1797+_0x52dee7(0x88b):'Feature\x20not\x20licensed:\x20'+_0x3b1797+_0x52dee7(0x804)+_0x3b1797+'\x22.';throw new _0x5a581f(_0x298c38,'LICENSE_FEATURE_DISABLED',{'feature':_0x3b1797});},'assertLimit'(_0x4b963a,_0x40c845){const _0xb1b970=_0x1953b1,_0x16b0ce=_0x4d320d();if(!_0x16b0ce['enforced'])return;const _0x2932c1=_0x16b0ce[_0xb1b970(0x368)]?.[_0x4b963a];if(_0x2932c1===null||_0x2932c1===undefined||_0x2932c1===0x0)return;if(_0x40c845>=_0x2932c1){const {OKDBError:_0x2d4e6e}=requireErrors();throw new _0x2d4e6e(_0xb1b970(0x797)+_0x4b963a+'\x20('+_0x40c845+'/'+_0x2932c1+')',_0xb1b970(0x579),{'limit':_0x4b963a,'current':_0x40c845,'max':_0x2932c1});}},'listLicenses'(){const _0x19edb9=_0x1953b1;return _0x1ba906[_0x19edb9(0x6af)][_0x19edb9(0x328)]();},'getPins'(){const _0x5f122a=_0x1953b1;return _0x1ba906[_0x5f122a(0x6af)][_0x5f122a(0x328)]()[_0x5f122a(0x642)](_0x10bb27=>({'licenseId':_0x10bb27['id'],'pin':_0x10bb27['type']===_0x5f122a(0x6bb)?null:_0x10bb27[_0x5f122a(0x2e7)]}));}};}function _0x29a0da(_0xc260f9){const _0x496186=_0x3252c5,_0x4a6bed=_0x11d5fb(_0xc260f9,'processes',_0x35c786);Object[_0x496186(0x43a)](_0x4a6bed,_0x496186(0x7ef),{'get':()=>_0xc260f9[_0x496186(0x5a1)](_0x496186(0x6f9),null,_0x496186(0x7ef),[],![])}),Object[_0x496186(0x43a)](_0x4a6bed,_0x496186(0x5f9),{'get':()=>_0xc260f9['_call'](_0x496186(0x6f9),null,'rowKey',[],![])}),_0x4a6bed['_listenAddr']=null;const _0x4bd58c=_0x4a6bed[_0x496186(0x814)];_0x4a6bed[_0x496186(0x814)]=_0x3eeffe=>{const _0x47a24e=_0x496186;return _0x4a6bed[_0x47a24e(0x38a)]=_0x3eeffe,_0x4bd58c(_0x3eeffe);};const _0x5f5dd5=()=>_0x4a6bed['listNodes']()['map'](_0x4bc0c6=>({'key':_0x4bc0c6['nodeKey'],'value':_0x4bc0c6,'version':0x1})),_0x26c12c={'name':_0x496186(0x593),'_sync':![],'_isOpen':!![],'isProcessStore':!![],'hasType':_0x358659=>_0x358659===_0x496186(0x6ec),'getRange':_0x552bbd=>_0x552bbd===_0x496186(0x6ec)?_0x5f5dd5()[Symbol[_0x496186(0x6a7)]]():[][Symbol[_0x496186(0x6a7)]](),'getKeys':_0xd073d9=>_0xd073d9===_0x496186(0x6ec)?_0x5f5dd5()[_0x496186(0x642)](_0x36be53=>_0x36be53[_0x496186(0x59b)])[Symbol[_0x496186(0x6a7)]]():[][Symbol[_0x496186(0x6a7)]](),'getValues':_0x5d420c=>_0x5d420c==='node'?_0x5f5dd5()[_0x496186(0x642)](_0x89ef15=>_0x89ef15[_0x496186(0x744)])[Symbol[_0x496186(0x6a7)]]():[][Symbol[_0x496186(0x6a7)]](),'get':(_0x3ff1bb,_0x3c305c)=>_0x3ff1bb===_0x496186(0x6ec)?_0x5f5dd5()[_0x496186(0x24c)](_0x3753bd=>_0x3753bd['key']===_0x3c305c)?.[_0x496186(0x744)]:undefined,'getCount':_0xe7482=>_0xe7482==='node'?_0x5f5dd5()[_0x496186(0x788)]:0x0};Object['defineProperty'](_0x4a6bed,_0x496186(0x7f3),{'get':()=>_0xc260f9[_0x496186(0x5a1)](_0x496186(0x6f9),null,_0x496186(0x752),[],![])?_0x26c12c:null});const _0x1ce768=_0x4a6bed[_0x496186(0x6bb)];_0x4a6bed[_0x496186(0x6bb)]=async _0x562365=>{const _0xdbff50=_0x496186;return await _0x1ce768(_0x562365),_0x4a6bed[_0xdbff50(0x7f3)];},_0x4a6bed[_0x496186(0x71f)]=()=>_0xc260f9[_0x496186(0x5a1)](_0x496186(0x6f9),null,_0x496186(0x4d7),[],!![]);const {RawDb:_0x3b687a}=requireRawdb();return Object[_0x496186(0x43a)](_0x4a6bed,'_desired',{'get':()=>_0xc260f9[_0x496186(0x85c)]?_0x4a6bed['__desired']||=new _0x3b687a(_0xc260f9[_0x496186(0x85c)],_0x496186(0x727)):undefined}),Object[_0x496186(0x43a)](_0x4a6bed,_0x496186(0x5be),{'get':()=>_0xc260f9[_0x496186(0x85c)]?_0x4a6bed[_0x496186(0x469)]||=new _0x3b687a(_0xc260f9[_0x496186(0x85c)],_0x496186(0x3c9)):undefined}),_0x4a6bed[_0x496186(0x893)]=()=>_0xc260f9[_0x496186(0x5a1)]('processes',null,'isActive',[],![]),Object[_0x496186(0x43a)](_0x4a6bed,_0x496186(0x6ff),{'get':()=>_0xc260f9['_call'](_0x496186(0x6f9),null,_0x496186(0x430),[],![])}),Object[_0x496186(0x43a)](_0x4a6bed,_0x496186(0x6da),{'get':()=>_0xc260f9[_0x496186(0x5a1)](_0x496186(0x6f9),null,_0x496186(0x7aa),[],![])}),_0x4a6bed[_0x496186(0x557)]=()=>_0xc260f9[_0x496186(0x5a1)](_0x496186(0x6f9),null,_0x496186(0x2c6),[],![]),_0x4a6bed['_emitProc']=(_0x1a16d9,_0x442c85)=>_0xc260f9[_0x496186(0x5a1)](_0x496186(0x6f9),null,_0x496186(0x3d8),[_0x1a16d9,_0x442c85],![]),_0x4a6bed;}return sys={'makeMeta':_0x4d8158,'makeLicenses':_0x31bbd0,'makeLicenseChecker':_0x505a04,'makeProcesses':_0x29a0da},sys;}var okdbLogger,hasRequiredOkdbLogger;function requireOkdbLogger(){const _0x2b7c79=_0xef081e;if(hasRequiredOkdbLogger)return okdbLogger;hasRequiredOkdbLogger=0x1;const _0x4238cd={'debug':0xa,'info':0x14,'warn':0x1e,'error':0x28};class _0x48ded4{constructor(_0x37a21b){const _0x19dea1=_0x2fc2;this['okdb']=_0x37a21b,this[_0x19dea1(0x8b2)]=new Set(),this[_0x19dea1(0x3ba)]={};}[_0x2b7c79(0x7ad)](_0x5ed058){const _0x1fe8e3=_0x2b7c79,_0x4e3e80=new _0x48ded4(this[_0x1fe8e3(0x82e)]);return _0x4e3e80[_0x1fe8e3(0x8b2)]=this[_0x1fe8e3(0x8b2)],_0x4e3e80[_0x1fe8e3(0x3ba)]={...this['_meta'],..._0x5ed058},_0x4e3e80;}['attach'](_0x52e28a){const _0x503dfd=_0x2b7c79;return this[_0x503dfd(0x8b2)][_0x503dfd(0x77d)](_0x52e28a),()=>this[_0x503dfd(0x8b2)][_0x503dfd(0x46b)](_0x52e28a);}[_0x2b7c79(0x38b)](){const _0x493106=_0x2b7c79,_0x48e4db=_0x4238cd[process.env.OKDB_LOG_LEVEL]??_0x4238cd['info'];return this[_0x493106(0x665)]=this[_0x493106(0x4d3)](({level:_0x51196b,msg:_0x549b13,meta:_0x14a083,context:_0x2e6f68,ts:_0x5afddb})=>{const _0x33a022=_0x493106;if((_0x4238cd[_0x51196b]??_0x4238cd[_0x33a022(0x1f9)])<_0x48e4db)return;if(_0x14a083?.[_0x33a022(0x859)]===_0x33a022(0x1f1)&&(_0x51196b===_0x33a022(0x1f9)||_0x51196b===_0x33a022(0x4a5)))return;const _0x248ca7=_0x51196b===_0x33a022(0x860)?console[_0x33a022(0x860)]:_0x51196b===_0x33a022(0x5df)?console['warn']:_0x51196b==='info'?console[_0x33a022(0x1f9)]:console[_0x33a022(0x6d5)],_0x483c00=_0x14a083&&Object[_0x33a022(0x607)](_0x14a083)[_0x33a022(0x788)]>0x0;_0x483c00||_0x2e6f68!==undefined?_0x248ca7(new Date(_0x5afddb)['toISOString'](),_0x549b13,..._0x483c00?[_0x14a083]:[],..._0x2e6f68!==undefined?[_0x2e6f68]:[]):_0x248ca7(new Date(_0x5afddb)[_0x33a022(0x265)](),_0x549b13);}),this[_0x493106(0x665)];}[_0x2b7c79(0x3ef)](){const _0x2ede5b=_0x2b7c79;this['_detachConsole']&&(this[_0x2ede5b(0x665)](),this[_0x2ede5b(0x665)]=null);}[_0x2b7c79(0x5d8)](_0x162ae0,_0x57fb89){const _0x374bad=_0x2b7c79,_0x1d6433=require$$0$4,_0x2cf129=0x1f4,_0x16eb80=Number(process.env.OKDB_LOG_FLUSH_MS)||0x3e8;let _0x16e18d=[],_0x29f84a=0x0,_0x4fa2c8=null;const _0x4f4193=()=>{const _0x104d57=_0x2fc2;_0x4fa2c8=null;if(_0x16e18d['length']===0x0)return;const _0x2bb325=_0x16e18d;_0x16e18d=[],_0x29f84a>0x0&&(_0x2bb325['push']({'ts':Date['now'](),'level':'warn','msg':_0x104d57(0x80d)+_0x29f84a+_0x104d57(0x838)+(_0x29f84a===0x1?'y':_0x104d57(0x4aa))+_0x104d57(0x258),'feature':_0x104d57(0x6d5),'node':_0x57fb89,'context':null}),_0x29f84a=0x0),_0x162ae0[_0x104d57(0x592)](_0x2136bf=>{const _0x98d72b=_0x104d57;for(const _0x114248 of _0x2bb325)_0x2136bf['put'](_0x98d72b(0x5ed),_0x1d6433[_0x98d72b(0x78a)](),_0x114248);})[_0x104d57(0x603)](()=>{});},_0xe1dd8=this[_0x374bad(0x4d3)](({level:_0x5139f7,msg:_0x560be9,meta:_0x2f010c,context:_0x2da8e4,ts:_0x55667d})=>{const _0x46009c=_0x374bad;if(_0x5139f7===_0x46009c(0x4a5))return;_0x16e18d[_0x46009c(0x788)]>=_0x2cf129&&(_0x29f84a++,_0x16e18d['shift']()),_0x16e18d[_0x46009c(0x27f)]({'ts':_0x55667d,'level':_0x5139f7,'msg':_0x560be9,'feature':_0x2f010c?.[_0x46009c(0x859)]??_0x2f010c?.[_0x46009c(0x796)]??null,'node':_0x57fb89,'context':_0x2da8e4??null}),!_0x4fa2c8&&(_0x4fa2c8=setTimeout(_0x4f4193,_0x16eb80),_0x4fa2c8[_0x46009c(0x8c7)]?.());});return()=>{_0xe1dd8();if(_0x4fa2c8)clearTimeout(_0x4fa2c8);_0x4f4193();};}[_0x2b7c79(0x3aa)](_0x3f5739,_0x2b3575,_0x57ef9f){const _0x30c441=_0x2b7c79;_0x2b3575 instanceof Error&&(_0x57ef9f={'message':_0x2b3575[_0x30c441(0x485)],'stack':_0x2b3575['stack'],..._0x57ef9f},_0x2b3575=_0x2b3575[_0x30c441(0x485)]);const _0x51541d={'level':_0x3f5739,'msg':_0x2b3575,'meta':{...this['_meta']},'context':_0x57ef9f,'ts':Date['now']()};try{this[_0x30c441(0x82e)][_0x30c441(0x3d2)][_0x30c441(0x599)](_0x30c441(0x6d5),_0x51541d);}catch{}for(const _0x688466 of this[_0x30c441(0x8b2)]){try{_0x688466(_0x51541d);}catch{}}}[_0x2b7c79(0x1d0)](_0x2120ce){const _0x532800=_0x2b7c79;try{this[_0x532800(0x82e)]?.[_0x532800(0x3d2)]?.[_0x532800(0x599)]('log',_0x2120ce);}catch{}for(const _0xd0c163 of this['_sinks']){try{_0xd0c163(_0x2120ce);}catch{}}}['info'](_0x449668,_0x1d676f){const _0x2d001d=_0x2b7c79;this[_0x2d001d(0x3aa)](_0x2d001d(0x1f9),_0x449668,_0x1d676f);}['warn'](_0x189018,_0x33855c){const _0x58734d=_0x2b7c79;this['_emit'](_0x58734d(0x5df),_0x189018,_0x33855c);}[_0x2b7c79(0x860)](_0x30e288,_0xb55cab){const _0x3a81c6=_0x2b7c79;this[_0x3a81c6(0x3aa)](_0x3a81c6(0x860),_0x30e288,_0xb55cab);}[_0x2b7c79(0x4a5)](_0x3e1b44,_0x4f1fa4){const _0x1ed32a=_0x2b7c79;this[_0x1ed32a(0x3aa)](_0x1ed32a(0x4a5),_0x3e1b44,_0x4f1fa4);}}return okdbLogger=_0x48ded4,okdbLogger;}var okdbPlugins,hasRequiredOkdbPlugins;function _0x2fc2(_0x23d753,_0x2afa2b){_0x23d753=_0x23d753-0x1ba;const _0x150ede=_0x150e();let _0x2fc277=_0x150ede[_0x23d753];return _0x2fc277;}function requireOkdbPlugins(){const _0x10ccc2=_0xef081e;if(hasRequiredOkdbPlugins)return okdbPlugins;hasRequiredOkdbPlugins=0x1;const {OKDB_STATE:_0x3c9ca5}=requireOkdbEnums(),{OKDBError:_0x488640}=requireOkdbError();class _0x389502{constructor(_0x1519ae){const _0x328f9c=_0x2fc2;this[_0x328f9c(0x82e)]=_0x1519ae,this[_0x328f9c(0x5c1)]=[];}[_0x10ccc2(0x594)](_0x339f68,_0x47ef05){const _0x2a6dea=_0x10ccc2;if(this[_0x2a6dea(0x82e)][_0x2a6dea(0x480)]!==_0x3c9ca5[_0x2a6dea(0x6dc)])throw new _0x488640(_0x2a6dea(0x2c0),_0x2a6dea(0x1df),{'state':this[_0x2a6dea(0x82e)][_0x2a6dea(0x480)]});if(!_0x339f68[_0x2a6dea(0x686)])throw new _0x488640(_0x2a6dea(0x728),_0x2a6dea(0x21c),{'plugin':_0x339f68[_0x2a6dea(0x686)]});const _0x3deafe=_0x339f68[_0x2a6dea(0x685)]??[];for(const _0x1ec8e1 of _0x3deafe){if(!this[_0x2a6dea(0x5c1)][_0x2a6dea(0x3cc)](_0x3a2289=>_0x3a2289[_0x2a6dea(0x796)][_0x2a6dea(0x686)]===_0x1ec8e1))throw new _0x488640(_0x2a6dea(0x6d9)+_0x1ec8e1+_0x2a6dea(0x397)+_0x339f68['name']+')',_0x2a6dea(0x334),{'required':_0x1ec8e1});}if(this[_0x2a6dea(0x5c1)][_0x2a6dea(0x24c)](_0x3ed81d=>_0x3ed81d[_0x2a6dea(0x796)][_0x2a6dea(0x686)]===_0x339f68[_0x2a6dea(0x686)]))throw new _0x488640(_0x2a6dea(0x494)+_0x339f68[_0x2a6dea(0x686)]+_0x2a6dea(0x76d),_0x2a6dea(0x81e),{'plugin':_0x339f68[_0x2a6dea(0x686)]});if(_0x339f68[_0x2a6dea(0x686)]in this['okdb'])throw new _0x488640(_0x2a6dea(0x45a)+_0x339f68[_0x2a6dea(0x686)]+'\x27\x20conflicts\x20with\x20existing\x20OKDB\x20property',_0x2a6dea(0x43d));const _0x2c8594=_0x339f68['register'](this[_0x2a6dea(0x82e)],_0x47ef05);if(!_0x2c8594||typeof _0x2c8594!=='object')throw new _0x488640('Plugin\x20\x27'+_0x339f68[_0x2a6dea(0x686)]+_0x2a6dea(0x1ea),'BAD_PLUGIN',{'plugin':_0x339f68[_0x2a6dea(0x686)]});this[_0x2a6dea(0x5c1)]['push']({'module':_0x339f68,'options':_0x47ef05,'instance':_0x2c8594});}[_0x10ccc2(0x66e)]=[];async['start'](){const _0x4fc2a8=_0x10ccc2;try{for(const _0x187fce of this[_0x4fc2a8(0x5c1)]){await _0x187fce[_0x4fc2a8(0x7ae)][_0x4fc2a8(0x77b)]?.(this[_0x4fc2a8(0x82e)]),this[_0x4fc2a8(0x66e)][_0x4fc2a8(0x27f)](_0x187fce);}}catch(_0x4cd914){await this[_0x4fc2a8(0x6bf)]()[_0x4fc2a8(0x603)](()=>{});throw _0x4cd914;}}async[_0x10ccc2(0x6bf)](){const _0x28a170=_0x10ccc2,_0x1d0937=this[_0x28a170(0x66e)]['reverse']();this[_0x28a170(0x66e)]=[];let _0x507271=null;for(const _0x5611cf of _0x1d0937){try{await _0x5611cf[_0x28a170(0x7ae)][_0x28a170(0x6bf)]?.(this[_0x28a170(0x82e)]);}catch(_0x26694e){_0x507271??=_0x26694e;}}if(_0x507271)throw _0x507271;}}return okdbPlugins=_0x389502,okdbPlugins;}var statics,hasRequiredStatics;function requireStatics(){const _0x8b4700=_0xef081e;if(hasRequiredStatics)return statics;hasRequiredStatics=0x1;const _0x5ea146={'maxDbs':0x400,'pageSize':0x1000,'compression':!![],'encryptionKey':undefined,'mapSize':0x100000000,'durability':_0x8b4700(0x5f7)},_0xc8aee0=new Set([_0x8b4700(0x41d),_0x8b4700(0x31c),_0x8b4700(0x635),'encryptionKey','encryptionKeys',_0x8b4700(0x58b),'durability',_0x8b4700(0x244),_0x8b4700(0x879),_0x8b4700(0x65c),_0x8b4700(0x801),_0x8b4700(0x2c1),_0x8b4700(0x1f1),_0x8b4700(0x4e7),_0x8b4700(0x2cf),_0x8b4700(0x6f7),_0x8b4700(0x6d5),_0x8b4700(0x2ba),_0x8b4700(0x572),'engines','processors',_0x8b4700(0x668),_0x8b4700(0x6f9),_0x8b4700(0x2a3),_0x8b4700(0x276),'admin',_0x8b4700(0x758),'debug',_0x8b4700(0x749),_0x8b4700(0x40e)]),_0xba0c70={'http':_0x8b4700(0x3bb)};return statics={'defaults':_0x5ea146,'KNOWN_OPTIONS':_0xc8aee0,'_OPTION_HINTS':_0xba0c70},statics;}var licenseConfig,hasRequiredLicenseConfig;function requireLicenseConfig(){const _0x2731d7=_0xef081e;if(hasRequiredLicenseConfig)return licenseConfig;hasRequiredLicenseConfig=0x1;const _0x512d0c=require$$0$2,_0x4fa9f0=_0x2731d7(0x5d9),_0x35cbde=_0x512d0c[_0x2731d7(0x8d7)](_0x2731d7(0x5f3))['update'](_0x512d0c[_0x2731d7(0x6dd)](_0x4fa9f0)[_0x2731d7(0x701)]({'type':_0x2731d7(0x4e1),'format':'der'}))[_0x2731d7(0x5fe)](_0x2731d7(0x1e9))['slice'](0x0,0x10),_0x40a2b4={'LICENSED_BUILD':_0x2731d7(0x8f1),'PUBLIC_KEY_PEM':_0x4fa9f0,'PUB_FINGERPRINT':_0x35cbde,'LICENSE_EXPIRED_ACTION':_0x2731d7(0x6d5)};return licenseConfig={'_C':_0x40a2b4,'PUBLIC_KEY_PEM':_0x4fa9f0,'PUB_FINGERPRINT':_0x35cbde},licenseConfig;}var okdbSubscriptionsStore={'exports':{}},okdbQueryFilter,hasRequiredOkdbQueryFilter;function requireOkdbQueryFilter(){const _0x23d142=_0xef081e;if(hasRequiredOkdbQueryFilter)return okdbQueryFilter;hasRequiredOkdbQueryFilter=0x1;const _0x140906=require$$0$5,{OKDBError:_0x4d7d73}=requireOkdbError(),_0x2dfc1c=[_0x23d142(0x785),_0x23d142(0x731),'$gt',_0x23d142(0x8eb),_0x23d142(0x471),_0x23d142(0x6a5),_0x23d142(0x673),'$nin','$exists',_0x23d142(0x756),_0x23d142(0x8d3),_0x23d142(0x8e2),_0x23d142(0x213),'$all',_0x23d142(0x7e9),_0x23d142(0x5e4),_0x23d142(0x8a1),_0x23d142(0x3b4),'$or',_0x23d142(0x30e)],_0x3a6596=[_0x23d142(0x2dd)];function _0x22498f(_0x23bc30){return()=>{const _0x2bf1c8=_0x2fc2,_0x4ec6c9=new _0x4d7d73(_0x2bf1c8(0x49e)+_0x23bc30+_0x2bf1c8(0x895),'QUERY_OPERATOR_FORBIDDEN',{'operator':_0x23bc30});_0x4ec6c9[_0x2bf1c8(0x442)]=0x190;throw _0x4ec6c9;};}const _0x45f65f=Object[_0x23d142(0x4e6)]({...Object[_0x23d142(0x89e)](_0x2dfc1c['map'](_0x5e1cc9=>[_0x5e1cc9,_0x140906[_0x5e1cc9]])),...Object[_0x23d142(0x89e)](_0x3a6596[_0x23d142(0x642)](_0x1f105e=>[_0x1f105e,_0x22498f(_0x1f105e)]))});function _0x21f71(_0x3e3e19){const _0x45a79a=_0x23d142;return _0x140906[_0x45a79a(0x2c8)](_0x3e3e19,{'operations':_0x45f65f});}function _0x3a711e(_0x34a591){const _0x1156dd=_0x23d142;if(_0x34a591==null)return;try{_0x21f71(_0x34a591);}catch(_0x3bf58f){if(_0x3bf58f?.[_0x1156dd(0x1bd)]==='QUERY_OPERATOR_FORBIDDEN')throw _0x3bf58f;}}return okdbQueryFilter={'compileFilter':_0x21f71,'assertFilterAllowed':_0x3a711e,'ALLOWED_OPERATORS':_0x2dfc1c,'FORBIDDEN_OPERATORS':_0x3a6596},okdbQueryFilter;}var okdbEnvRefs,hasRequiredOkdbEnvRefs;function requireOkdbEnvRefs(){const _0x59666e=_0xef081e;if(hasRequiredOkdbEnvRefs)return okdbEnvRefs;hasRequiredOkdbEnvRefs=0x1;const {CHANGE_ACTIONS:_0x3fe616,EVENTS:_0x9a5596}=requireOkdbEnums(),{OKDBError:_0x1b6351,OKDBForeignKeyDeleteError:_0x172a66}=requireOkdbError(),_0x236e83=_0x59666e(0x70f),_0x39f41f=new Set(['no_action',_0x59666e(0x884),_0x59666e(0x556),_0x59666e(0x42c)]);function _0x4008ad(_0x4c033e,_0x6b510d){const _0x369376=_0x59666e;if(_0x4c033e==null||!_0x6b510d)return undefined;const _0x307412=_0x6b510d[_0x369376(0x359)]('.');let _0x8e2428=_0x4c033e;for(const _0x23a663 of _0x307412){if(_0x8e2428==null||typeof _0x8e2428!==_0x369376(0x7f6)||!(_0x23a663 in _0x8e2428))return undefined;_0x8e2428=_0x8e2428[_0x23a663];}return _0x8e2428;}function _0x1006b9(_0x354a51,_0x39b769,_0x2c5706){const _0x4dc5bd=_0x59666e,_0x59b754=_0x39b769[_0x4dc5bd(0x359)]('.'),_0x40355a={..._0x354a51};let _0x418cc0=_0x40355a;for(let _0x366843=0x0;_0x366843<_0x59b754['length']-0x1;_0x366843++){_0x418cc0[_0x59b754[_0x366843]]=_0x418cc0[_0x59b754[_0x366843]]!=null?{..._0x418cc0[_0x59b754[_0x366843]]}:{},_0x418cc0=_0x418cc0[_0x59b754[_0x366843]];}return _0x418cc0[_0x59b754[_0x59b754[_0x4dc5bd(0x788)]-0x1]]=_0x2c5706,_0x40355a;}function _0xdfc3c9(_0x1f15db,_0x16d97c,_0x42f1de,_0x59f2a7,_0x935495){return[_0x1f15db,_0x16d97c,_0x42f1de,_0x59f2a7,_0x935495];}function _0x3f08da(_0x5c9f62){const _0x36f1ad=_0x59666e;return typeof _0x5c9f62===_0x36f1ad(0x43c)||typeof _0x5c9f62===_0x36f1ad(0x559);}function _0x35a239(_0x18f2fa,_0x46edae){const _0x11d1c8=_0x59666e;return JSON[_0x11d1c8(0x754)]([_0x18f2fa,_0x46edae]);}function*_0x561206(_0x314489,_0x4e0591,_0x5dae48){const _0x204daf=_0x59666e,_0x38fda6=_0x5dae48!==undefined;for(const {key:_0x221994}of _0x314489[_0x204daf(0x433)]({'start':_0x38fda6?[_0x4e0591,_0x5dae48]:[_0x4e0591]})){if(!Array['isArray'](_0x221994))continue;if(_0x221994[0x0]!==_0x4e0591||_0x38fda6&&_0x221994[0x1]!==_0x5dae48)break;yield _0x221994;}}function _0x5d5546(_0x30d789,_0x55ffbb='',_0x64c4de=null){const _0x486101=_0x59666e,_0x17181b=[];if(!_0x30d789||typeof _0x30d789!==_0x486101(0x7f6))return _0x17181b;if(!_0x64c4de)_0x64c4de=_0x30d789;if(_0x30d789[_0x486101(0x303)]){const _0x50a878=_0x30d789['$ref'][_0x486101(0x2bb)](/^#\/\$defs\/(.+)$/);if(_0x50a878&&_0x64c4de?.[_0x486101(0x2a9)]?.[_0x50a878[0x1]])return _0x5d5546(_0x64c4de['$defs'][_0x50a878[0x1]],_0x55ffbb,_0x64c4de);return _0x17181b;}if(_0x30d789[_0x486101(0x703)]&&typeof _0x30d789[_0x486101(0x703)]===_0x486101(0x7f6)&&_0x30d789[_0x486101(0x703)]['type']){const _0x14f682=_0x30d789[_0x486101(0x703)]['onDelete']||_0x486101(0x2b8);if(!_0x39f41f['has'](_0x14f682))throw new _0x1b6351(_0x486101(0x24b)+_0x14f682+_0x486101(0x682)+(_0x55ffbb||_0x486101(0x89d))+_0x486101(0x793)+[..._0x39f41f][_0x486101(0x8a0)](',\x20'),_0x486101(0x725));_0x17181b[_0x486101(0x27f)]({'fieldPath':_0x55ffbb,'targetType':_0x30d789['ref'][_0x486101(0x490)],'onDelete':_0x14f682});}if(_0x30d789[_0x486101(0x3f1)])for(const [_0x4938ae,_0x16d67d]of Object[_0x486101(0x84a)](_0x30d789['properties'])){const _0x520ff7=_0x55ffbb?_0x55ffbb+'.'+_0x4938ae:_0x4938ae;_0x17181b[_0x486101(0x27f)](..._0x5d5546(_0x16d67d,_0x520ff7,_0x64c4de));}return _0x17181b;}function _0x3d903e(_0x59d057){const _0x3176e9=_0x59666e,_0x1a0cf4=new Map(),_0xa86ba1=new Map();for(const _0x52fac2 of _0x59d057[_0x3176e9(0x5b8)]()){if(_0x52fac2['startsWith']('~'))continue;const _0x3e11ff=_0x59d057[_0x3176e9(0x48a)][_0x3176e9(0x292)](_0x52fac2);if(!_0x3e11ff?.[_0x3176e9(0x284)]?.[_0x3176e9(0x891)])continue;let _0x320e83;try{_0x320e83=_0x5d5546(_0x3e11ff[_0x3176e9(0x284)]['definition']);}catch{continue;}if(_0x320e83[_0x3176e9(0x788)]>0x0){_0x1a0cf4[_0x3176e9(0x204)](_0x52fac2,_0x320e83);for(const _0x5ca9a2 of _0x320e83){if(!_0xa86ba1[_0x3176e9(0x396)](_0x5ca9a2['targetType']))_0xa86ba1[_0x3176e9(0x204)](_0x5ca9a2[_0x3176e9(0x58c)],[]);_0xa86ba1['get'](_0x5ca9a2['targetType'])['push']({'sourceType':_0x52fac2,'fieldPath':_0x5ca9a2[_0x3176e9(0x3e4)],'onDelete':_0x5ca9a2[_0x3176e9(0x36d)]});}}}_0x59d057[_0x3176e9(0x409)]={'outgoing':_0x1a0cf4,'incoming':_0xa86ba1};if(_0x1a0cf4[_0x3176e9(0x4ff)]>0x0)_0x2dcf6b(_0x59d057);}function _0x2dfcd6(_0x4860f3,_0x1959c1){const _0x735664=_0x59666e;return _0x4860f3[_0x735664(0x409)][_0x735664(0x2b2)][_0x735664(0x292)](_0x1959c1)||[];}function _0x53d515(_0x540c26,_0x30ee2e){const _0x4b7fde=_0x59666e;return _0x540c26['_refCache'][_0x4b7fde(0x6de)]['get'](_0x30ee2e)||[];}function _0x2dcf6b(_0x50209f){const _0x2c4d08=_0x59666e;if(_0x50209f[_0x2c4d08(0x62d)])return _0x50209f[_0x2c4d08(0x62d)];return _0x50209f[_0x2c4d08(0x62d)]=_0x50209f['db'][_0x2c4d08(0x5b6)]('__ref_index',{'dupSort':![]}),_0x50209f[_0x2c4d08(0x62d)];}function _0x5b5943(_0x17b8e8,_0x1fc60e,_0x84b56e,_0x96e651,_0x27c0ba){const _0x517f52=_0x59666e,_0x5aac42=_0x2dfcd6(_0x17b8e8,_0x1fc60e);if(_0x5aac42[_0x517f52(0x788)]===0x0)return;const _0x561580=_0x2dcf6b(_0x17b8e8);for(const _0x21e8e5 of _0x5aac42){const _0x5c01a5=_0x27c0ba!=null?_0x4008ad(_0x27c0ba,_0x21e8e5[_0x517f52(0x3e4)]):undefined,_0x5420be=_0x96e651!=null?_0x4008ad(_0x96e651,_0x21e8e5[_0x517f52(0x3e4)]):undefined;if(_0x5c01a5===_0x5420be)continue;_0x3f08da(_0x5c01a5)&&_0x561580[_0x517f52(0x4f5)](_0xdfc3c9(_0x21e8e5[_0x517f52(0x58c)],_0x5c01a5,_0x1fc60e,_0x84b56e,_0x21e8e5[_0x517f52(0x3e4)])),_0x3f08da(_0x5420be)&&_0x561580[_0x517f52(0x57a)](_0xdfc3c9(_0x21e8e5[_0x517f52(0x58c)],_0x5420be,_0x1fc60e,_0x84b56e,_0x21e8e5[_0x517f52(0x3e4)]),0x1);}}function _0x49c2f1(_0x417506,_0x337bb0,_0x2d7b20,_0x1945df){const _0xe01c10=_0x59666e,_0x23d7a8=_0x2dfcd6(_0x417506,_0x337bb0);if(_0x23d7a8[_0xe01c10(0x788)]===0x0)return;const _0x395768=_0x2dcf6b(_0x417506);for(const _0x2140c6 of _0x23d7a8){const _0x504bfd=_0x1945df!=null?_0x4008ad(_0x1945df,_0x2140c6[_0xe01c10(0x3e4)]):undefined;_0x3f08da(_0x504bfd)&&_0x395768[_0xe01c10(0x4f5)](_0xdfc3c9(_0x2140c6[_0xe01c10(0x58c)],_0x504bfd,_0x337bb0,_0x2d7b20,_0x2140c6[_0xe01c10(0x3e4)]));}}function _0x3ee529(_0x701aca,_0x15ad46,_0x523443,_0x24b20f){const _0x42da6c=_0x59666e,_0x3dcbaa=_0x2dfcd6(_0x701aca,_0x15ad46);if(_0x3dcbaa[_0x42da6c(0x788)]===0x0)return[];const _0x48a687=[];for(const _0x3e92d4 of _0x3dcbaa){const _0x1b8c70=_0x4008ad(_0x24b20f,_0x3e92d4[_0x42da6c(0x3e4)]);if(_0x1b8c70==null)continue;if(!_0x701aca['hasType'](_0x3e92d4['targetType'])){_0x48a687[_0x42da6c(0x27f)]({'fieldPath':_0x3e92d4[_0x42da6c(0x3e4)],'targetType':_0x3e92d4[_0x42da6c(0x58c)],'targetKey':_0x1b8c70,'message':_0x42da6c(0x3f7)+_0x3e92d4[_0x42da6c(0x58c)]+_0x42da6c(0x874)});continue;}const _0x46263a=_0x701aca[_0x42da6c(0x60e)](_0x3e92d4[_0x42da6c(0x58c)])[_0x42da6c(0x7a1)];!_0x46263a[_0x42da6c(0x2a2)](_0x1b8c70)&&_0x48a687['push']({'fieldPath':_0x3e92d4['fieldPath'],'targetType':_0x3e92d4['targetType'],'targetKey':_0x1b8c70,'message':_0x42da6c(0x505)+_0x1b8c70+'\x27\x20does\x20not\x20exist\x20in\x20type\x20\x27'+_0x3e92d4['targetType']+'\x27'});}return _0x48a687;}function _0xe0f8cc(_0xf9e94d,_0xc02748,_0x5cea7d,_0x4b6ad4,_0x1b070b,{timestamp:_0x158785,origin:_0x4d3d9d,_cascadeVisited:_0x526759}){const _0x3fab0d=_0x59666e,_0x5730dd=_0x53d515(_0xf9e94d,_0x5cea7d);if(_0x5730dd[_0x3fab0d(0x788)]===0x0)return;const _0x29d385=_0x2dcf6b(_0xf9e94d),_0x242632=[];for(const [,,_0x3ab6c1,_0x41392b,_0x244394]of _0x561206(_0x29d385,_0x5cea7d,_0x4b6ad4)){_0x242632[_0x3fab0d(0x27f)]({'sourceType':_0x3ab6c1,'sourceKey':_0x41392b,'fieldPath':_0x244394});}if(_0x242632[_0x3fab0d(0x788)]===0x0)return;for(const _0x4d7621 of _0x242632){const _0x4687ca=_0x5730dd[_0x3fab0d(0x24c)](_0x28d47c=>_0x28d47c[_0x3fab0d(0x753)]===_0x4d7621[_0x3fab0d(0x753)]&&_0x28d47c[_0x3fab0d(0x3e4)]===_0x4d7621[_0x3fab0d(0x3e4)]),_0x27e612=_0x4687ca?.[_0x3fab0d(0x36d)]||_0x3fab0d(0x2b8);switch(_0x27e612){case _0x3fab0d(0x42c):{if(_0x4d3d9d===null)throw new _0x172a66(_0x5cea7d,_0x4b6ad4,_0x242632[_0x3fab0d(0x877)](_0x49c990=>{const _0x1d1c14=_0x3fab0d,_0x2357eb=_0x5730dd[_0x1d1c14(0x24c)](_0x55c682=>_0x55c682[_0x1d1c14(0x753)]===_0x49c990[_0x1d1c14(0x753)]&&_0x55c682[_0x1d1c14(0x3e4)]===_0x49c990['fieldPath']);return(_0x2357eb?.['onDelete']||_0x1d1c14(0x2b8))===_0x1d1c14(0x42c);}));break;}case _0x3fab0d(0x884):{const _0x538deb=_0x35a239(_0x4d7621[_0x3fab0d(0x753)],_0x4d7621[_0x3fab0d(0x379)]);if(_0x526759[_0x3fab0d(0x396)](_0x538deb))continue;_0xf9e94d[_0x3fab0d(0x60e)](_0x4d7621['sourceType'])['data'][_0x3fab0d(0x2a2)](_0x4d7621[_0x3fab0d(0x379)])&&_0xf9e94d[_0x3fab0d(0x5d5)](_0xc02748,_0x4d7621['sourceType'],_0x4d7621[_0x3fab0d(0x379)],{'timestamp':_0x158785,'origin':_0x4d3d9d,'_cascadeVisited':_0x526759});break;}case _0x3fab0d(0x556):{const _0x2f8aa8=_0xf9e94d[_0x3fab0d(0x60e)](_0x4d7621[_0x3fab0d(0x753)])[_0x3fab0d(0x7a1)],_0x16fb86=_0x2f8aa8[_0x3fab0d(0x408)](_0x4d7621[_0x3fab0d(0x379)]);if(_0x16fb86){const _0x53484c=_0x1006b9(_0x16fb86[_0x3fab0d(0x744)],_0x4d7621['fieldPath'],null);_0xf9e94d[_0x3fab0d(0x55f)](_0xc02748,_0x3fab0d(0x1dd),_0x4d7621[_0x3fab0d(0x753)],_0x4d7621[_0x3fab0d(0x379)],_0x53484c,{'timestamp':_0x158785,'origin':_0x4d3d9d,'_cascading':!![]});}break;}}}}function _0x1268c1(_0x2a83f9){const _0x261811=_0x59666e;!_0x2a83f9[_0x261811(0x512)](_0x236e83)&&_0x2a83f9[_0x261811(0x1bc)](_0x236e83);}function _0x40fea7(_0x1b99c2,_0x403239,_0xaba51,_0x128d21,_0x2f5f49,_0xf86dcd,_0x454227,{timestamp:timestamp=Date[_0x59666e(0x3d4)](),origin:origin=null}={}){const _0x5f09d3=_0x59666e;_0x1268c1(_0x1b99c2);const _0x46099b=_0xaba51+'@'+_0x128d21+'@'+_0x2f5f49,_0x157346={'sourceType':_0xaba51,'sourceKey':_0x128d21,'fieldPath':_0x2f5f49,'targetType':_0xf86dcd,'targetKey':_0x454227,'timestamp':timestamp,'origin':origin},_0x3369c8=_0x1b99c2[_0x5f09d3(0x60e)](_0x236e83)[_0x5f09d3(0x7a1)],_0x1b5d76=_0x3369c8['getEntry'](_0x46099b),_0xedc61=_0x1b5d76?_0x1b5d76['version']+0x1:0x1;_0x3369c8[_0x5f09d3(0x57a)](_0x46099b,_0x157346,_0xedc61),_0x1b99c2[_0x5f09d3(0x510)]({'id':_0x5f09d3(0x6e8)+_0x236e83+'@'+_0x46099b,'type':_0x236e83,'key':_0x46099b,'action':_0x3fe616[_0x5f09d3(0x3c2)],'timestamp':timestamp,'txnId':_0x403239?.['id'],'origin':origin},_0x1b5d76?.[_0x5f09d3(0x744)],_0x157346),_0x1b99c2[_0x5f09d3(0x3d2)][_0x5f09d3(0x599)](_0x9a5596[_0x5f09d3(0x462)],{'sourceType':_0xaba51,'sourceKey':_0x128d21,'fieldPath':_0x2f5f49,'targetType':_0xf86dcd,'targetKey':_0x454227,'env':_0x1b99c2[_0x5f09d3(0x686)]});}function _0x345253(_0x3c3a47,_0x56cf27,_0x39aa19,_0x49631f,_0x539ae9,{timestamp:timestamp=Date[_0x59666e(0x3d4)](),origin:origin=null}={}){const _0x3371c6=_0x59666e;if(!_0x3c3a47['hasType'](_0x236e83))return;const _0x50b1a7=_0x39aa19+'@'+_0x49631f+'@'+_0x539ae9,_0x2b2312=_0x3c3a47[_0x3371c6(0x60e)](_0x236e83)[_0x3371c6(0x7a1)],_0x2190c4=_0x2b2312[_0x3371c6(0x408)](_0x50b1a7);if(!_0x2190c4)return;_0x2b2312['removeSync'](_0x50b1a7),_0x3c3a47[_0x3371c6(0x510)]({'id':_0x3371c6(0x6e8)+_0x236e83+'@'+_0x50b1a7,'type':_0x236e83,'key':_0x50b1a7,'action':_0x3fe616[_0x3371c6(0x3bd)],'timestamp':timestamp,'txnId':_0x56cf27?.['id'],'origin':origin},_0x2190c4[_0x3371c6(0x744)],undefined),_0x3c3a47[_0x3371c6(0x3d2)][_0x3371c6(0x599)](_0x9a5596[_0x3371c6(0x48f)],{'sourceType':_0x39aa19,'sourceKey':_0x49631f,'fieldPath':_0x539ae9,'env':_0x3c3a47['name']});}function _0x42a0ed(_0x4d6c5b,_0x514056,_0x44d5d4,_0x486b69,_0x1f8221={}){const _0x256bc1=_0x59666e;if(!_0x4d6c5b[_0x256bc1(0x512)](_0x236e83))return;const _0x32a02b=_0x4d6c5b[_0x256bc1(0x60e)](_0x236e83)[_0x256bc1(0x7a1)],_0x388a25=_0x44d5d4+'@'+_0x486b69+'@',_0x160534=[];for(const {key:_0x4ec3b1,value:_0x1d9d07}of _0x32a02b[_0x256bc1(0x433)]({'start':_0x388a25,'end':_0x388a25+'\uffff'})){if(_0x1d9d07?.[_0x256bc1(0x753)]===_0x44d5d4&&_0x1d9d07?.[_0x256bc1(0x379)]===_0x486b69)_0x160534[_0x256bc1(0x27f)](_0x4ec3b1);}for(const _0x18a3f0 of _0x160534){const _0x3f8e3b=_0x32a02b[_0x256bc1(0x408)](_0x18a3f0);if(!_0x3f8e3b)continue;_0x32a02b[_0x256bc1(0x4f5)](_0x18a3f0),_0x4d6c5b['_logChange']({'id':_0x256bc1(0x6e8)+_0x236e83+'@'+_0x18a3f0,'type':_0x236e83,'key':_0x18a3f0,'action':_0x3fe616[_0x256bc1(0x3bd)],'timestamp':_0x1f8221[_0x256bc1(0x8d2)]||Date[_0x256bc1(0x3d4)](),'txnId':_0x514056?.['id'],'origin':_0x1f8221[_0x256bc1(0x3b7)]},_0x3f8e3b['value'],undefined);}}function _0x424aab(_0x20f874,_0x37b69c){const _0x4896f4=_0x59666e;if(!_0x20f874[_0x4896f4(0x512)](_0x236e83))return;const _0x32b1fb=_0x20f874[_0x4896f4(0x60e)](_0x236e83)[_0x4896f4(0x7a1)],_0x44ebf5=_0x37b69c+'@',_0x33497b=[];for(const {key:_0x19d51e,value:_0x54c9cb}of _0x32b1fb['getRange']({'start':_0x44ebf5,'end':_0x44ebf5+'\uffff'})){if(_0x54c9cb?.['sourceType']===_0x37b69c)_0x33497b['push'](_0x19d51e);}for(const _0x5b112a of _0x33497b)_0x32b1fb[_0x4896f4(0x4f5)](_0x5b112a);}async function _0x2943cc(_0x2be0fe,_0x46820a){const _0x3a4373=_0x59666e,_0x2489e9=_0x2dfcd6(_0x2be0fe,_0x46820a);if(_0x2489e9[_0x3a4373(0x788)]===0x0)return;await _0x2be0fe[_0x3a4373(0x27a)][_0x3a4373(0x7b5)](()=>{const _0x13b63c=_0x3a4373;for(const {key:_0x275c19,value:_0x38387c}of _0x2be0fe[_0x13b63c(0x433)](_0x46820a)){_0x5b5943(_0x2be0fe,_0x46820a,_0x275c19,_0x38387c,null);const _0x531059=_0x3ee529(_0x2be0fe,_0x46820a,_0x275c19,_0x38387c);for(const _0x4c4a69 of _0x531059){_0x40fea7(_0x2be0fe,null,_0x46820a,_0x275c19,_0x4c4a69[_0x13b63c(0x3e4)],_0x4c4a69[_0x13b63c(0x58c)],_0x4c4a69[_0x13b63c(0x411)]);}}});}const _0x29130c=0x1388;async function _0x317c8d(_0x14b109){const _0x27121b=_0x59666e,_0x921747=_0x14b109[_0x27121b(0x409)]?.[_0x27121b(0x2b2)]?.[_0x27121b(0x4ff)]>0x0;if(!_0x921747&&!_0x14b109[_0x27121b(0x62d)])return{'dropped':0x0,'written':0x0};const _0x4da0e3=_0x2dcf6b(_0x14b109);let _0x4d47a1=0x0;for(;;){const _0x10447a=Array['from'](_0x4da0e3['getKeys']({'limit':_0x29130c}));if(_0x10447a[_0x27121b(0x788)]===0x0)break;let _0x574a5f=0x0;await _0x14b109[_0x27121b(0x27a)][_0x27121b(0x7b5)](()=>{const _0x566eaa=_0x27121b;for(const _0x461bd1 of _0x10447a)if(_0x4da0e3[_0x566eaa(0x4f5)](_0x461bd1))_0x574a5f++;});if(_0x574a5f===0x0)break;_0x4d47a1+=_0x574a5f;}let _0x1a4bfb=0x0;for(const _0x142975 of _0x14b109[_0x27121b(0x409)]['outgoing'][_0x27121b(0x607)]()){if(_0x142975[_0x27121b(0x212)]('~')||!_0x14b109[_0x27121b(0x512)](_0x142975))continue;const _0xf2ffb8=_0x2dfcd6(_0x14b109,_0x142975);await _0x14b109['_writer']['transaction'](()=>{const _0x3ff209=_0x27121b;for(const {key:_0x5ed282,value:_0x2bbde9}of _0x14b109[_0x3ff209(0x433)](_0x142975)){for(const _0x41e3b3 of _0xf2ffb8){const _0x597147=_0x4008ad(_0x2bbde9,_0x41e3b3[_0x3ff209(0x3e4)]);if(!_0x3f08da(_0x597147))continue;_0x4da0e3[_0x3ff209(0x57a)](_0xdfc3c9(_0x41e3b3['targetType'],_0x597147,_0x142975,_0x5ed282,_0x41e3b3[_0x3ff209(0x3e4)]),0x1),_0x1a4bfb++;}}});}return{'dropped':_0x4d47a1,'written':_0x1a4bfb};}return okdbEnvRefs={'getFieldValue':_0x4008ad,'setFieldValue':_0x1006b9,'refIndexKey':_0xdfc3c9,'isRefTarget':_0x3f08da,'cascadeVisitKey':_0x35a239,'extractRefs':_0x5d5546,'rebuildRefCache':_0x3d903e,'getTypeRefs':_0x2dfcd6,'getIncomingRefs':_0x53d515,'getRefIndexDb':_0x2dcf6b,'updateRefIndex':_0x5b5943,'removeRefIndexEntries':_0x49c2f1,'refIndexRowsFor':_0x561206,'rebuildRefIndex':_0x317c8d,'checkForeignKeys':_0x3ee529,'processDeleteCascade':_0xe0f8cc,'setRefViolation':_0x40fea7,'clearRefViolation':_0x345253,'clearRefViolationsForKey':_0x42a0ed,'clearRefViolationsForType':_0x424aab,'syncRefIndex':_0x2943cc},okdbEnvRefs;}var hasRequiredOkdbSubscriptionsStore;function requireOkdbSubscriptionsStore(){const _0x3d53ad=_0xef081e;if(hasRequiredOkdbSubscriptionsStore)return okdbSubscriptionsStore[_0x3d53ad(0x57d)];hasRequiredOkdbSubscriptionsStore=0x1;const _0x277aa6=require$$0$4,{assertFilterAllowed:_0x1beb88}=requireOkdbQueryFilter(),{rebuildRefCache:_0x169192}=requireOkdbEnvRefs(),_0x3bdf68='~sub',_0x57ff40=_0x3d53ad(0x8bc),_0x1cdfb5=_0x3d53ad(0x63c),_0x28f13b=[_0x3d53ad(0x878),_0x3d53ad(0x490),_0x3d53ad(0x59b)],_0x53791b=[_0x3d53ad(0x878),_0x3d53ad(0x490)],_0x568a2d=0x5a*0x3e8,_0xab02eb=Math['floor'](_0x568a2d/0x2);class _0x2cbd61{constructor(_0xa2a32a,_0x14bc7f={}){const _0x3c1e49=_0x3d53ad;this[_0x3c1e49(0x82e)]=_0xa2a32a,this[_0x3c1e49(0x4fb)]=Number['isFinite'](_0x14bc7f[_0x3c1e49(0x4fb)])&&_0x14bc7f[_0x3c1e49(0x4fb)]>0x0?_0x14bc7f['ttlMs']:_0x568a2d,this['refreshThresholdMs']=Number[_0x3c1e49(0x52f)](_0x14bc7f[_0x3c1e49(0x3d0)])?_0x14bc7f[_0x3c1e49(0x3d0)]:_0xab02eb,this[_0x3c1e49(0x7dd)]=null;}async['open'](){const _0x5738d2=_0x3d53ad;if(this[_0x5738d2(0x7dd)])return this['_sub'];const _0x3be177=await this['okdb']['createEnvironment'](_0x3bdf68,{'sync':![]});return await _0x3be177[_0x5738d2(0x353)](_0x57ff40,{'indexes':[_0x53791b]}),await _0x3be177['ensureType'](_0x1cdfb5),_0x3be177[_0x5738d2(0x78d)](_0x1cdfb5)?_0x169192(_0x3be177):await _0x3be177[_0x5738d2(0x63e)](_0x1cdfb5,{'definition':{'type':_0x5738d2(0x7f6),'properties':{'sessionId':{'type':_0x5738d2(0x43c),'ref':{'type':_0x57ff40,'onDelete':_0x5738d2(0x884)}},'dataEnv':{'type':'string'},'type':{'type':'string'},'key':{'type':_0x5738d2(0x43c)}},'required':[_0x5738d2(0x54e),'dataEnv',_0x5738d2(0x490),_0x5738d2(0x59b)]},'enforce':!![]}),await _0x3be177[_0x5738d2(0x353)](_0x1cdfb5,{'indexes':[_0x28f13b]}),await _0x3be177['indexReady'](_0x1cdfb5,_0x28f13b),await _0x3be177[_0x5738d2(0x7e2)](_0x57ff40,_0x53791b),this[_0x5738d2(0x7dd)]=_0x3be177,_0x3be177;}[_0x3d53ad(0x3b1)](){const _0xa9074c=_0x3d53ad;if(!this[_0xa9074c(0x7dd)])throw new Error(_0xa9074c(0x1e2));return this[_0xa9074c(0x7dd)];}async[_0x3d53ad(0x5dd)]({sessionId:_0x44e2dd,dataEnv:_0xd71df8,type:_0x5aa18e,filter:filter=null,ttlMs:_0x329895}={}){const _0x4b4a0e=_0x3d53ad,_0x45131e=this[_0x4b4a0e(0x3b1)]();_0x1beb88(filter);const _0x2351a5=_0x44e2dd!=null&&String(_0x44e2dd)[_0x4b4a0e(0x788)]>0x0?String(_0x44e2dd):_0x277aa6[_0x4b4a0e(0x78a)](),_0x476e12=Number['isFinite'](_0x329895)&&_0x329895>0x0?_0x329895:this['ttlMs'],_0x205c5d=Date['now'](),_0x57f7a8={'sessionId':_0x2351a5,'dataEnv':_0xd71df8,'type':_0x5aa18e,'filter':filter??null,'version':0x0,'createdAt':_0x205c5d,'expiresAt':_0x205c5d+_0x476e12};return await _0x45131e[_0x4b4a0e(0x1dd)](_0x57ff40,_0x2351a5,_0x57f7a8,{'ttl':_0x476e12}),{'sessionId':_0x2351a5,'version':0x0};}[_0x3d53ad(0x1be)](_0x37aad5){const _0x1703bf=_0x3d53ad;if(!_0x37aad5)return null;return this[_0x1703bf(0x3b1)]()[_0x1703bf(0x292)](_0x57ff40,String(_0x37aad5))??null;}async[_0x3d53ad(0x333)](_0x3df71f){const _0x32d8d6=_0x3d53ad,_0x544ddf=this[_0x32d8d6(0x3b1)](),_0x45cdd9=String(_0x3df71f);if(!_0x544ddf['get'](_0x57ff40,_0x45cdd9))return![];return await _0x544ddf[_0x32d8d6(0x28d)](_0x57ff40,_0x45cdd9),!![];}async[_0x3d53ad(0x294)](_0x29ab14){const _0x23bd96=_0x3d53ad,_0x40c195=this[_0x23bd96(0x3b1)](),_0x1339d3=String(_0x29ab14),_0x293499=_0x40c195[_0x23bd96(0x292)](_0x57ff40,_0x1339d3);if(!_0x293499)return null;const _0x4a33cb=(Number[_0x23bd96(0x52f)](_0x293499[_0x23bd96(0x782)])?_0x293499['version']:0x0)+0x1;return await _0x40c195[_0x23bd96(0x1dd)](_0x57ff40,_0x1339d3,{..._0x293499,'version':_0x4a33cb}),_0x4a33cb;}async[_0x3d53ad(0x24e)](_0x5156ae,_0x595715){const _0x5d237e=_0x3d53ad,_0xb73307=this[_0x5d237e(0x3b1)](),_0x15c8e9=String(_0x5156ae);if(!_0xb73307['get'](_0x57ff40,_0x15c8e9))return![];const _0x2d274e=Number['isFinite'](_0x595715)&&_0x595715>0x0?_0x595715:this['ttlMs'];if(this['_isFar'](_0x15c8e9))return![];return await _0xb73307[_0x5d237e(0x383)](_0x57ff40,_0x15c8e9,_0x2d274e),await this[_0x5d237e(0x46a)](_0x15c8e9,_0x2d274e),!![];}async[_0x3d53ad(0x88d)](_0x346854,_0x9159b5){const _0x24998e=_0x3d53ad,_0x2dabf3=this[_0x24998e(0x3b1)](),_0x506587=Number[_0x24998e(0x52f)](_0x9159b5)&&_0x9159b5>0x0?_0x9159b5:this[_0x24998e(0x4fb)],_0x49dfa6=Date[_0x24998e(0x3d4)](),_0x2424ee=[];for(const _0xa7c89c of _0x346854||[]){const _0x244511=String(_0xa7c89c),_0x2c1d9f=_0x2dabf3[_0x24998e(0x292)](_0x57ff40,_0x244511);if(!_0x2c1d9f)continue;if(this[_0x24998e(0x81c)](_0x244511,_0x49dfa6))continue;_0x2424ee['push']({'id':_0x244511,'cur':_0x2c1d9f});}if(_0x2424ee[_0x24998e(0x788)]===0x0)return[];return await _0x2dabf3['txn'](async _0x289578=>{const _0x55f809=_0x24998e;for(const {id:_0x4684cd,cur:_0x4276e7}of _0x2424ee){_0x289578[_0x55f809(0x1dd)](_0x57ff40,_0x4684cd,{..._0x4276e7,'expiresAt':_0x49dfa6+_0x506587}),_0x289578[_0x55f809(0x383)](_0x57ff40,_0x4684cd,_0x506587);}}),_0x2424ee[_0x24998e(0x642)](_0x584ba4=>_0x584ba4['id']);}['_isFar'](_0x3c433c,_0xaaccbf=Date['now']()){const _0x484ef4=_0x3d53ad,_0x4f772d=this['_env']()['getTTL'](_0x57ff40,String(_0x3c433c));if(!_0x4f772d)return![];return _0x4f772d[_0x484ef4(0x716)]-_0xaaccbf>this['refreshThresholdMs'];}async[_0x3d53ad(0x46a)](_0x45a4a7,_0x46ea7a){const _0x3db5af=_0x3d53ad,_0x42cfff=this[_0x3db5af(0x3b1)](),_0x33957a=_0x42cfff[_0x3db5af(0x292)](_0x57ff40,_0x45a4a7);if(!_0x33957a)return;await _0x42cfff[_0x3db5af(0x1dd)](_0x57ff40,_0x45a4a7,{..._0x33957a,'expiresAt':Date[_0x3db5af(0x3d4)]()+_0x46ea7a});}async[_0x3d53ad(0x7a3)](_0x58e9b2,_0x347e4b,_0x19d32b){const _0x5fcc70=_0x3d53ad,_0x2ab946=this[_0x5fcc70(0x3b1)](),_0x500208=String(_0x58e9b2),_0x1f3715=_0x2ab946['get'](_0x57ff40,_0x500208);if(!_0x1f3715)throw new Error(_0x5fcc70(0x7fa)+_0x500208);const _0x2c02a7=_0x277aa6[_0x5fcc70(0x78a)]();return await _0x2ab946['put'](_0x1cdfb5,_0x2c02a7,{'sessionId':_0x500208,'dataEnv':String(_0x1f3715[_0x5fcc70(0x878)]),'type':String(_0x347e4b),'key':String(_0x19d32b)}),_0x2c02a7;}async['_commitSessionMutation'](_0x1ce300,_0x5db84d,{retries:retries=0x8}={}){const _0x3062dc=_0x3d53ad,_0x562cc9=this[_0x3062dc(0x3b1)]();for(let _0x495c1e=0x0;;_0x495c1e++){const _0x36498c=_0x562cc9[_0x3062dc(0x408)](_0x57ff40,_0x1ce300);if(!_0x36498c)return null;const _0x141fc7=_0x36498c[_0x3062dc(0x744)],_0x513a29=(Number[_0x3062dc(0x52f)](_0x141fc7[_0x3062dc(0x782)])?_0x141fc7[_0x3062dc(0x782)]:0x0)+0x1,{sessionPatch:sessionPatch={},applyInterests:applyInterests=null}=_0x5db84d(_0x141fc7,_0x562cc9)||{};try{return await _0x562cc9[_0x3062dc(0x592)](async _0x58f54a=>{const _0x18b7b3=_0x3062dc;applyInterests?.(_0x58f54a),_0x58f54a[_0x18b7b3(0x1dd)](_0x57ff40,_0x1ce300,{..._0x141fc7,...sessionPatch,'version':_0x513a29},{'ifVersion':_0x36498c[_0x18b7b3(0x782)]});}),_0x513a29;}catch(_0x3483d0){if(_0x3483d0?.[_0x3062dc(0x1bd)]===_0x3062dc(0x3ea)&&_0x495c1e<retries)continue;throw _0x3483d0;}}}async['applyInterestDelta'](_0x2c96b4,{add:add=[],remove:remove=[]}={}){const _0x288047=_0x3d53ad,_0x1bc318=String(_0x2c96b4);return this[_0x288047(0x291)](_0x1bc318,(_0x522535,_0x41149f)=>{const _0x396d97=_0x288047,_0x4b53c3=String(_0x522535[_0x396d97(0x878)]),_0x5228f9=new Set((remove||[])[_0x396d97(0x642)](_0xc4413e=>String(_0xc4413e[_0x396d97(0x490)])+'\x00'+String(_0xc4413e[_0x396d97(0x59b)]))),_0x5060b8=[];if(_0x5228f9[_0x396d97(0x4ff)]>0x0)for(const {key:_0x3186e2,value:_0x27d3f9}of _0x41149f[_0x396d97(0x433)](_0x1cdfb5,{})){if(!_0x27d3f9||_0x27d3f9[_0x396d97(0x54e)]!==_0x1bc318)continue;if(_0x5228f9['has'](_0x27d3f9[_0x396d97(0x490)]+'\x00'+_0x27d3f9[_0x396d97(0x59b)]))_0x5060b8[_0x396d97(0x27f)](_0x3186e2);}const _0xc18912=(add||[])[_0x396d97(0x642)](_0x3187a6=>({'id':_0x277aa6[_0x396d97(0x78a)](),'type':String(_0x3187a6[_0x396d97(0x490)]),'key':String(_0x3187a6[_0x396d97(0x59b)])}));return{'applyInterests':_0x14edde=>{const _0x1a421c=_0x396d97;for(const _0x3d1de2 of _0x5060b8)_0x14edde[_0x1a421c(0x28d)](_0x1cdfb5,_0x3d1de2);for(const _0x33e17a of _0xc18912)_0x14edde[_0x1a421c(0x1dd)](_0x1cdfb5,_0x33e17a['id'],{'sessionId':_0x1bc318,'dataEnv':_0x4b53c3,'type':_0x33e17a[_0x1a421c(0x490)],'key':_0x33e17a[_0x1a421c(0x59b)]});}};});}async[_0x3d53ad(0x47f)](_0x1c15ac,_0xb4a3d8){const _0x4bd498=_0x3d53ad;_0x1beb88(_0xb4a3d8);const _0x2a73cd=String(_0x1c15ac);return this[_0x4bd498(0x291)](_0x2a73cd,()=>({'sessionPatch':{'filter':_0xb4a3d8??null}}));}async[_0x3d53ad(0x606)](_0x11f0ab,_0x5df745,_0x492821){const _0x5effa3=_0x3d53ad,_0x16ca6a=this[_0x5effa3(0x3b1)](),_0x4d866b=String(_0x11f0ab),_0x17b7c9=String(_0x5df745),_0x5e3c23=String(_0x492821),_0x450d97=[];for(const {key:_0x304bd9,value:_0x5d0e88}of _0x16ca6a['getRange'](_0x1cdfb5,{})){if(_0x5d0e88&&_0x5d0e88[_0x5effa3(0x54e)]===_0x4d866b&&_0x5d0e88[_0x5effa3(0x490)]===_0x17b7c9&&_0x5d0e88[_0x5effa3(0x59b)]===_0x5e3c23)_0x450d97[_0x5effa3(0x27f)](_0x304bd9);}for(const _0x3a1ad5 of _0x450d97)await _0x16ca6a[_0x5effa3(0x28d)](_0x1cdfb5,_0x3a1ad5);return _0x450d97['length'];}async[_0x3d53ad(0x6e1)](_0x509b48,_0x4eb48a){const _0x2fd84e=_0x3d53ad,_0x17e425=String(_0x509b48);return this[_0x2fd84e(0x291)](_0x17e425,(_0xd50915,_0x3cd663)=>{const _0x2e3fa6=_0x2fd84e,_0x35a79f=String(_0xd50915[_0x2e3fa6(0x878)]),_0xdc35b0=[];for(const {key:_0x4a7244,value:_0x467ee6}of _0x3cd663['getRange'](_0x1cdfb5,{})){if(_0x467ee6&&_0x467ee6[_0x2e3fa6(0x54e)]===_0x17e425)_0xdc35b0[_0x2e3fa6(0x27f)](_0x4a7244);}const _0x217a16=(_0x4eb48a||[])[_0x2e3fa6(0x642)](_0x417485=>({'id':_0x277aa6[_0x2e3fa6(0x78a)](),'type':String(_0x417485[_0x2e3fa6(0x490)]),'key':String(_0x417485[_0x2e3fa6(0x59b)])}));return{'applyInterests':_0x2cffd2=>{const _0xa898fd=_0x2e3fa6;for(const _0x145911 of _0xdc35b0)_0x2cffd2['remove'](_0x1cdfb5,_0x145911);for(const _0x1e90e8 of _0x217a16)_0x2cffd2[_0xa898fd(0x1dd)](_0x1cdfb5,_0x1e90e8['id'],{'sessionId':_0x17e425,'dataEnv':_0x35a79f,'type':_0x1e90e8[_0xa898fd(0x490)],'key':_0x1e90e8[_0xa898fd(0x59b)]});}};});}[_0x3d53ad(0x4db)](_0x4d5702,_0x33b69b,_0x3712db){const _0x2c726c=_0x3d53ad,_0x673ee=this['_env'](),_0x523cd3=String(_0x4d5702),_0x1f199d=String(_0x33b69b),_0xf5d8ff=String(_0x3712db),_0x9f8ca4=new Set();for(const {value:_0x27eeac}of _0x673ee[_0x2c726c(0x657)](_0x1cdfb5,_0x28f13b,{'start':[_0x523cd3,_0x1f199d,_0xf5d8ff],'end':[_0x523cd3,_0x1f199d,_0xf5d8ff,'']})){if(_0x27eeac&&_0x27eeac['sessionId'])_0x9f8ca4[_0x2c726c(0x77d)](_0x27eeac[_0x2c726c(0x54e)]);}return[..._0x9f8ca4];}[_0x3d53ad(0x8c5)](_0x1ebb6b,_0x2cb3db){const _0x235d6b=_0x3d53ad,_0x3174bc=this[_0x235d6b(0x3b1)](),_0x441a26=String(_0x1ebb6b),_0x5e36e6=String(_0x2cb3db),_0x3ebcfc=[];for(const {value:_0x3bb544}of _0x3174bc[_0x235d6b(0x657)](_0x57ff40,_0x53791b,{'start':[_0x441a26,_0x5e36e6],'end':[_0x441a26,_0x5e36e6,'\uffff']})){if(!_0x3bb544||_0x3bb544[_0x235d6b(0x878)]!==_0x441a26||_0x3bb544[_0x235d6b(0x490)]!==_0x5e36e6)continue;if(_0x3bb544[_0x235d6b(0x877)]==null)continue;_0x3ebcfc[_0x235d6b(0x27f)]({'sessionId':_0x3bb544[_0x235d6b(0x54e)],'filter':_0x3bb544[_0x235d6b(0x877)],'version':Number[_0x235d6b(0x52f)](_0x3bb544[_0x235d6b(0x782)])?_0x3bb544[_0x235d6b(0x782)]:0x0});}return _0x3ebcfc;}async[_0x3d53ad(0x51f)](){return this['_env']()['sweepExpiredTTL']();}}return okdbSubscriptionsStore['exports']=_0x2cbd61,okdbSubscriptionsStore[_0x3d53ad(0x57d)][_0x3d53ad(0x840)]=_0x3bdf68,okdbSubscriptionsStore[_0x3d53ad(0x57d)][_0x3d53ad(0x656)]=_0x57ff40,okdbSubscriptionsStore[_0x3d53ad(0x57d)][_0x3d53ad(0x3f3)]=_0x1cdfb5,okdbSubscriptionsStore['exports'][_0x3d53ad(0x340)]=_0x28f13b,okdbSubscriptionsStore[_0x3d53ad(0x57d)][_0x3d53ad(0x7d8)]=_0x53791b,okdbSubscriptionsStore[_0x3d53ad(0x57d)][_0x3d53ad(0x323)]=_0x568a2d,okdbSubscriptionsStore[_0x3d53ad(0x57d)];}var version='3.1.5',require$$29={'version':version},okdbEnginesEnums,hasRequiredOkdbEnginesEnums;function requireOkdbEnginesEnums(){const _0x198871=_0xef081e;if(hasRequiredOkdbEnginesEnums)return okdbEnginesEnums;hasRequiredOkdbEnginesEnums=0x1;const _0x30e2f7=_0x198871(0x5f0),_0x506ce0=0xa,_0x59ce20=Object[_0x198871(0x4e6)]({'CREATED':_0x198871(0x530),'ONLINE':'online','STOPPED':_0x198871(0x6d0),'INACTIVE':_0x198871(0x589),'ERROR':_0x198871(0x860),'REMOVED':'removed'}),_0x5f224c=Object[_0x198871(0x4e6)]({'STARTED':_0x198871(0x3ca),'STOPPED':_0x198871(0x6d0),'ERROR':_0x198871(0x860),'INSTALLED':_0x198871(0x23c),'UNINSTALLED':'uninstalled'}),_0x39ba9e=Object[_0x198871(0x4e6)](new Set([_0x59ce20[_0x198871(0x27e)],_0x59ce20[_0x198871(0x609)],_0x59ce20[_0x198871(0x4dd)],_0x59ce20[_0x198871(0x721)]]));function _0x1d3e18(_0xe79cac){const _0x1978e3=_0x198871;return _0xe79cac?.[_0x1978e3(0x4b3)]===![]?_0x59ce20[_0x1978e3(0x609)]:_0x1978e3(0x3be);}return okdbEnginesEnums={'TYPE_ENGINES':_0x30e2f7,'MAX_UPDATE_RETRIES':_0x506ce0,'ENGINE_STATUS':_0x59ce20,'ENGINE_EVENTS':_0x5f224c,'UPDATABLE_STATUSES':_0x39ba9e,'durableOnlyEngineState':_0x1d3e18},okdbEnginesEnums;}var enums,hasRequiredEnums;function requireEnums(){const _0x598dd6=_0xef081e;if(hasRequiredEnums)return enums;hasRequiredEnums=0x1;const _0x14474d=Object['freeze']({'EMBEDDER':_0x598dd6(0x418),'INDEXER':_0x598dd6(0x76c),'SEARCH':_0x598dd6(0x3f5),'WORKER':_0x598dd6(0x679)}),_0x1d5daf=Object[_0x598dd6(0x4e6)]({'PENDING':_0x598dd6(0x654),'DONE':_0x598dd6(0x577),'FAILED':_0x598dd6(0x68f),'DELETED':_0x598dd6(0x707)}),_0x4cb152=Object['freeze']({'INDEXER_READY':'embeddings:indexer:ready','INDEXER_FLUSHED':_0x598dd6(0x79f),'INDEXER_DOC_DONE':_0x598dd6(0x5f4),'INDEXER_DOC_FAILED':_0x598dd6(0x664),'INDEXER_DOC_QUEUED':'embeddings:indexer:doc:queued','STRATEGY_REGISTERED':_0x598dd6(0x362),'DOC_STATUS_CHANGE':'embeddings:doc:status_change','PIPELINE_READY':_0x598dd6(0x8e5)}),_0x5201fa=Object[_0x598dd6(0x4e6)]({'MODELS':'~emb:models','DOC_STATUS_PREFIX':_0x598dd6(0x55d),'VEC_PREFIX':_0x598dd6(0x59d)});return enums={'ENGINE_TYPES':_0x14474d,'INDEXER_DOC_STATUS':_0x1d5daf,'EMBEDDINGS_EVENTS':_0x4cb152,'INTERNAL_TYPES':_0x5201fa},enums;}var okdbQueueValidate,hasRequiredOkdbQueueValidate;function requireOkdbQueueValidate(){const _0x55009b=_0xef081e;if(hasRequiredOkdbQueueValidate)return okdbQueueValidate;hasRequiredOkdbQueueValidate=0x1;const _0x51e5e1=Object[_0x55009b(0x4e6)]({'PENDING':_0x55009b(0x654),'RUNNING':_0x55009b(0x769),'DONE':'done','FAILED':_0x55009b(0x68f)}),_0x5111d8=Object[_0x55009b(0x4e6)]({'ACTIVE':_0x55009b(0x659),'PAUSED':_0x55009b(0x283),'DRAINING':'draining'}),_0xaf498f=Object[_0x55009b(0x4e6)]({'ENQUEUED':_0x55009b(0x524),'DONE':_0x55009b(0x2fc),'FAILED':'queue:failed','RETRY':_0x55009b(0x41a),'RESCHEDULED':'queue:rescheduled','REMOVED':_0x55009b(0x315),'RECONCILED':_0x55009b(0x623),'CLEAR_PROGRESS':_0x55009b(0x750),'CLEAR_DONE':'queue:clear-done','LOG':_0x55009b(0x21a)}),_0x24b0d9=Object[_0x55009b(0x4e6)]([_0x55009b(0x4a5),_0x55009b(0x1f9),_0x55009b(0x5df),_0x55009b(0x860)]),_0x38becc=0x1,_0x1e7f5a=0xc350,_0x1b5ff0=0x400,_0x57705e=0x800;function _0x33f656(_0x591448){const _0x2559c2=_0x55009b;return _0x591448!=null&&typeof _0x591448==='object'&&(_0x591448['constructor']===Object||Object[_0x2559c2(0x4fe)](_0x591448)===null);}function _0x3deb63(_0x50ace4,_0x491dfe,_0xb2fb3,_0x3907d9){const _0x258fa7=_0x55009b;if(_0x50ace4==null)return _0x491dfe;const _0x4c5059=Number(_0x50ace4);if(!Number[_0x258fa7(0x52f)](_0x4c5059))return _0x491dfe;const _0x43adc9=Math[_0x258fa7(0x460)](_0x4c5059);if(_0x43adc9<_0xb2fb3)return _0xb2fb3;if(_0x43adc9>_0x3907d9)return _0x3907d9;return _0x43adc9;}function _0x2aeff2(_0x2d4c3d){const _0x218496=_0x55009b;if(!_0x2d4c3d)return[];if(typeof _0x2d4c3d===_0x218496(0x43c))_0x2d4c3d=[_0x2d4c3d];if(!Array[_0x218496(0x888)](_0x2d4c3d))throw new Error(_0x218496(0x24f));const _0x393563=[],_0x18ee0f=new Set();for(const _0xb80c7a of _0x2d4c3d){if(_0xb80c7a==null)continue;const _0xd73fc8=String(_0xb80c7a)[_0x218496(0x39d)]();if(!_0xd73fc8)continue;if(_0xd73fc8['length']>0x80)throw new Error(_0x218496(0x394));if(_0x18ee0f[_0x218496(0x396)](_0xd73fc8))continue;_0x18ee0f['add'](_0xd73fc8),_0x393563['push'](_0xd73fc8);if(_0x393563['length']>=0x20)break;}return _0x393563;}function _0x230daa(_0x2cc405){const _0x4eeb50=_0x55009b;if(_0x2cc405==null)return null;const _0x13fb1e=String(_0x2cc405)['trim']();if(!_0x13fb1e)return null;if(_0x13fb1e[_0x4eeb50(0x788)]>0x80)throw new Error('bucket\x20too\x20long');return _0x13fb1e;}function _0x3e9194(_0x1933ec,_0x1ecbc8=0x1){const _0x83103b=_0x55009b;if(_0x1933ec==null)return[];if(typeof _0x1933ec===_0x83103b(0x43c)){const _0x4a9b5e=_0x230daa(_0x1933ec);if(!_0x4a9b5e)return[];return[{'id':_0x4a9b5e,'tokens':_0x1ecbc8}];}if(!Array['isArray'](_0x1933ec))throw new Error(_0x83103b(0x67c));const _0x33ded5=[],_0x902fcc=new Set();for(const _0x1aa9cd of _0x1933ec){let _0x305717,_0x231f98;if(Array[_0x83103b(0x888)](_0x1aa9cd))[_0x305717,_0x231f98]=_0x1aa9cd;else{if(_0x1aa9cd&&typeof _0x1aa9cd===_0x83103b(0x7f6))({id:_0x305717,tokens:_0x231f98}=_0x1aa9cd);else{if(typeof _0x1aa9cd===_0x83103b(0x43c))_0x305717=_0x1aa9cd,_0x231f98=_0x1ecbc8;else continue;}}_0x305717=_0x230daa(_0x305717);if(!_0x305717)continue;const _0x3933c7=_0x231f98==null?_0x1ecbc8:Math[_0x83103b(0x460)](Number(_0x231f98));if(!Number['isFinite'](_0x3933c7)||_0x3933c7<0x1)throw new Error(_0x83103b(0x8c3)+_0x305717+_0x83103b(0x8d0));if(_0x3933c7>0xf4240)throw new Error(_0x83103b(0x8c3)+_0x305717+_0x83103b(0x899));if(_0x902fcc[_0x83103b(0x396)](_0x305717))throw new Error('duplicate\x20bucket:\x20'+_0x305717);_0x902fcc[_0x83103b(0x77d)](_0x305717),_0x33ded5[_0x83103b(0x27f)]({'id':_0x305717,'tokens':_0x3933c7});}return _0x33ded5;}function _0x4e7390(_0x4210e9,_0x2c107d=0x400){const _0x401fc7=_0x55009b;if(_0x4210e9==null)return null;const _0x401d45=String(_0x4210e9)[_0x401fc7(0x848)](0x0,_0x2c107d);return _0x401d45||null;}function _0x385487(_0x2c5536){if(_0x2c5536==null)return null;if(_0x2c5536['key']!==undefined&&_0x2c5536['value']!==undefined)return _0x2c5536;return{'key':_0x2c5536['id']??null,'value':_0x2c5536};}function _0x28875a(_0x4473ad){const _0x4e8578=_0x55009b;let _0x6020f4=_0x4473ad;if(typeof _0x4473ad===_0x4e8578(0x43c))_0x6020f4={'message':_0x4473ad};if(!_0x33f656(_0x6020f4))throw new Error(_0x4e8578(0x72f));const _0x2404a7=_0x6020f4[_0x4e8578(0x239)]==null?_0x4e8578(0x1f9):String(_0x6020f4['level'])['toLowerCase']();if(!_0x24b0d9[_0x4e8578(0x2a1)](_0x2404a7))throw new Error(_0x4e8578(0x509)+_0x2404a7);if(_0x6020f4[_0x4e8578(0x485)]==null)throw new Error(_0x4e8578(0x364));const _0xc2a904=String(_0x6020f4[_0x4e8578(0x485)])[_0x4e8578(0x848)](0x0,_0x1b5ff0);let _0x4214f8=null;if(_0x6020f4['fields']!=null){if(!_0x33f656(_0x6020f4[_0x4e8578(0x569)]))throw new Error(_0x4e8578(0x20d));if(JSON[_0x4e8578(0x754)](_0x6020f4[_0x4e8578(0x569)])[_0x4e8578(0x788)]>_0x57705e)throw new Error(_0x4e8578(0x251));_0x4214f8=_0x6020f4[_0x4e8578(0x569)];}return{'level':_0x2404a7,'message':_0xc2a904,'fields':_0x4214f8,'ts':Date['now']()};}function _0x4de8b4(_0x1760fd){const _0x454195=_0x55009b;if(_0x1760fd==null)return;if(!Number[_0x454195(0x6ae)](_0x1760fd)||_0x1760fd<_0x38becc||_0x1760fd>_0x1e7f5a)throw new Error('logCap\x20must\x20be\x20null\x20or\x20integer\x20in\x20['+_0x38becc+',\x20'+_0x1e7f5a+']');}function _0x49ebfb(_0x1417aa){const _0x23a331=_0x55009b;if(!_0x33f656(_0x1417aa))throw new Error(_0x23a331(0x474));if(typeof _0x1417aa['id']!=='string'||_0x1417aa['id']['length']<0x8)throw new Error('job.id\x20must\x20be\x20string');if(typeof _0x1417aa[_0x23a331(0x490)]!==_0x23a331(0x43c)||!_0x1417aa[_0x23a331(0x490)])throw new Error(_0x23a331(0x681));if(!Object[_0x23a331(0x42a)](_0x51e5e1)[_0x23a331(0x2a1)](_0x1417aa[_0x23a331(0x442)]))throw new Error(_0x23a331(0x4e0)+_0x1417aa[_0x23a331(0x442)]);for(const _0x5aaf2b of[_0x23a331(0x643),_0x23a331(0x530),'updated']){if(typeof _0x1417aa[_0x5aaf2b]!==_0x23a331(0x559)||!Number[_0x23a331(0x52f)](_0x1417aa[_0x5aaf2b]))throw new Error(_0x23a331(0x286)+_0x5aaf2b+_0x23a331(0x349));}if(_0x1417aa['finished']!=null&&(typeof _0x1417aa[_0x23a331(0x6cc)]!=='number'||!Number[_0x23a331(0x52f)](_0x1417aa[_0x23a331(0x6cc)])))throw new Error(_0x23a331(0x24a));if(!Number[_0x23a331(0x6ae)](_0x1417aa[_0x23a331(0x6c0)])||_0x1417aa[_0x23a331(0x6c0)]<0x0)throw new Error(_0x23a331(0x8dc));if(!Number[_0x23a331(0x6ae)](_0x1417aa['priority']))throw new Error(_0x23a331(0x367));if(_0x1417aa[_0x23a331(0x60a)]!==null&&_0x1417aa[_0x23a331(0x60a)]!==Infinity&&(!Number[_0x23a331(0x6ae)](_0x1417aa[_0x23a331(0x60a)])||_0x1417aa[_0x23a331(0x60a)]<0x1))throw new Error('job.max_tries\x20must\x20be\x20int\x20>=\x201,\x20null\x20(unlimited)\x20or\x20Infinity');if(_0x1417aa['retry_delay']!=null&&(!Number[_0x23a331(0x6ae)](_0x1417aa[_0x23a331(0x2fb)])||_0x1417aa[_0x23a331(0x2fb)]<0x0))throw new Error('job.retry_delay\x20must\x20be\x20int\x20>=\x200');if(_0x1417aa[_0x23a331(0x37b)]!=null&&(typeof _0x1417aa[_0x23a331(0x37b)]!==_0x23a331(0x559)||_0x1417aa[_0x23a331(0x37b)]<0x1))throw new Error('job.backoff_multiplier\x20must\x20be\x20number\x20>=\x201');if(_0x1417aa['claim_id']!=null&&typeof _0x1417aa[_0x23a331(0x7c5)]!==_0x23a331(0x43c))throw new Error('job.claim_id\x20must\x20be\x20string|null');if(_0x1417aa[_0x23a331(0x6db)]!=null&&(typeof _0x1417aa[_0x23a331(0x6db)]!==_0x23a331(0x559)||!Number[_0x23a331(0x52f)](_0x1417aa['claim_expires'])))throw new Error(_0x23a331(0x2f8));if(_0x1417aa[_0x23a331(0x6d7)]!=null&&typeof _0x1417aa[_0x23a331(0x6d7)]!==_0x23a331(0x43c))throw new Error('job.bucket\x20must\x20be\x20string|null');if(_0x1417aa[_0x23a331(0x897)]!=null&&(!Number[_0x23a331(0x6ae)](_0x1417aa[_0x23a331(0x897)])||_0x1417aa[_0x23a331(0x897)]<0x1))throw new Error(_0x23a331(0x8ad));if(_0x1417aa['buckets']!=null){if(!Array[_0x23a331(0x888)](_0x1417aa[_0x23a331(0x387)]))throw new Error(_0x23a331(0x651));for(const _0x15e07f of _0x1417aa[_0x23a331(0x387)]){if(!_0x15e07f||typeof _0x15e07f!=='object')throw new Error('job.buckets\x20entries\x20must\x20be\x20objects');if(typeof _0x15e07f['id']!==_0x23a331(0x43c)||!_0x15e07f['id']['trim']())throw new Error(_0x23a331(0x7f5));if(!Number[_0x23a331(0x6ae)](_0x15e07f[_0x23a331(0x532)])||_0x15e07f[_0x23a331(0x532)]<0x1)throw new Error('job.buckets[].tokens\x20must\x20be\x20int\x20>=\x201');}}if(_0x1417aa[_0x23a331(0x3cb)]!=null&&typeof _0x1417aa['cron']!==_0x23a331(0x43c))throw new Error(_0x23a331(0x4c3));if(_0x1417aa[_0x23a331(0x1fd)]!=null&&typeof _0x1417aa[_0x23a331(0x1fd)]!==_0x23a331(0x43c))throw new Error(_0x23a331(0x415));if(!Array[_0x23a331(0x888)](_0x1417aa[_0x23a331(0x3b8)]))throw new Error('job.tags\x20must\x20be\x20array');if(_0x1417aa[_0x23a331(0x7d3)]!=null&&typeof _0x1417aa[_0x23a331(0x7d3)]!=='string')throw new Error(_0x23a331(0x26c));if(_0x1417aa['status_code']!=null&&typeof _0x1417aa[_0x23a331(0x36a)]!==_0x23a331(0x43c))throw new Error(_0x23a331(0x47c));if(_0x1417aa[_0x23a331(0x374)]!=null&&typeof _0x1417aa[_0x23a331(0x374)]!==_0x23a331(0x43c))throw new Error(_0x23a331(0x5e0));if(_0x1417aa[_0x23a331(0x3eb)]!=null&&typeof _0x1417aa[_0x23a331(0x3eb)]!==_0x23a331(0x43c))throw new Error(_0x23a331(0x443));for(const _0x2f45cf of[_0x23a331(0x7f4),_0x23a331(0x667)]){const _0x3de302=_0x1417aa[_0x2f45cf];if(_0x3de302!=null&&(!Number['isInteger'](_0x3de302)||_0x3de302<0x0))throw new Error(_0x23a331(0x286)+_0x2f45cf+_0x23a331(0x327));}_0x4de8b4(_0x1417aa[_0x23a331(0x27d)]);}function _0x239943(_0x4ed153){const _0x39f5c1=_0x55009b;if(!_0x33f656(_0x4ed153))throw new Error(_0x39f5c1(0x20c));if(typeof _0x4ed153['id']!=='string'||!_0x4ed153['id'][_0x39f5c1(0x39d)]())throw new Error(_0x39f5c1(0x896));if(!Object[_0x39f5c1(0x42a)](_0x5111d8)[_0x39f5c1(0x2a1)](_0x4ed153['status']))throw new Error(_0x39f5c1(0x3fb)+_0x4ed153[_0x39f5c1(0x442)]);if(_0x4ed153[_0x39f5c1(0x508)]!=null&&(!Number[_0x39f5c1(0x6ae)](_0x4ed153[_0x39f5c1(0x508)])||_0x4ed153[_0x39f5c1(0x508)]<0x1))throw new Error(_0x39f5c1(0x89c));if(_0x4ed153[_0x39f5c1(0x37e)]!=null){if(!_0x33f656(_0x4ed153['defaults']))throw new Error(_0x39f5c1(0x321));const _0x57f1ab=_0x4ed153[_0x39f5c1(0x37e)];if(_0x57f1ab[_0x39f5c1(0x60a)]!=null&&(!Number[_0x39f5c1(0x6ae)](_0x57f1ab[_0x39f5c1(0x60a)])||_0x57f1ab[_0x39f5c1(0x60a)]<0x1))throw new Error(_0x39f5c1(0x44f));if(_0x57f1ab[_0x39f5c1(0x2fb)]!=null&&(!Number[_0x39f5c1(0x6ae)](_0x57f1ab[_0x39f5c1(0x2fb)])||_0x57f1ab['retry_delay']<0x0))throw new Error(_0x39f5c1(0x24d));if(_0x57f1ab[_0x39f5c1(0x37b)]!=null&&(typeof _0x57f1ab[_0x39f5c1(0x37b)]!==_0x39f5c1(0x559)||_0x57f1ab[_0x39f5c1(0x37b)]<0x1))throw new Error(_0x39f5c1(0x737));if(_0x57f1ab[_0x39f5c1(0x4a7)]!=null&&!Number[_0x39f5c1(0x6ae)](_0x57f1ab[_0x39f5c1(0x4a7)]))throw new Error('job_type.defaults.priority\x20must\x20be\x20int\x20or\x20null');if(_0x57f1ab['ttl']!=null&&(!Number[_0x39f5c1(0x6ae)](_0x57f1ab[_0x39f5c1(0x20b)])||_0x57f1ab[_0x39f5c1(0x20b)]<0x0))throw new Error('job_type.defaults.ttl\x20must\x20be\x20int\x20>=\x200\x20or\x20null');for(const _0x3afd21 of[_0x39f5c1(0x7f4),_0x39f5c1(0x667)]){if(_0x57f1ab[_0x3afd21]!=null&&(!Number['isInteger'](_0x57f1ab[_0x3afd21])||_0x57f1ab[_0x3afd21]<0x0))throw new Error('job_type.defaults.'+_0x3afd21+'\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer');}if(_0x57f1ab[_0x39f5c1(0x387)]!=null&&!Array[_0x39f5c1(0x888)](_0x57f1ab[_0x39f5c1(0x387)]))throw new Error(_0x39f5c1(0x843));_0x4de8b4(_0x57f1ab['logCap']);}if(_0x4ed153[_0x39f5c1(0x3f0)]!=null){if(!_0x33f656(_0x4ed153[_0x39f5c1(0x3f0)]))throw new Error(_0x39f5c1(0x89f));if(!_0x33f656(_0x4ed153[_0x39f5c1(0x3f0)]['definition']))throw new Error('job_type.payload_schema.definition\x20must\x20be\x20object');if(typeof _0x4ed153['payload_schema'][_0x39f5c1(0x6c2)]!==_0x39f5c1(0x699))throw new Error(_0x39f5c1(0x4a4));}for(const _0x5303af of[_0x39f5c1(0x5a8),_0x39f5c1(0x3c7)]){if(typeof _0x4ed153[_0x5303af]!==_0x39f5c1(0x559)||!Number[_0x39f5c1(0x52f)](_0x4ed153[_0x5303af]))throw new Error(_0x39f5c1(0x449)+_0x5303af+_0x39f5c1(0x349));}}function _0x48b316(_0x1d419d){const _0x551639=_0x55009b;if(!_0x33f656(_0x1d419d))throw new Error(_0x551639(0x3c1));if(typeof _0x1d419d['id']!==_0x551639(0x43c)||!_0x1d419d['id'][_0x551639(0x39d)]())throw new Error(_0x551639(0x7a4));if(!Number[_0x551639(0x6ae)](_0x1d419d[_0x551639(0x532)])||_0x1d419d[_0x551639(0x532)]<0x0)throw new Error(_0x551639(0x28e));if(!Number[_0x551639(0x6ae)](_0x1d419d[_0x551639(0x3f8)])||_0x1d419d[_0x551639(0x3f8)]<0x0)throw new Error(_0x551639(0x222));if(_0x1d419d[_0x551639(0x532)]>_0x1d419d[_0x551639(0x3f8)])throw new Error(_0x551639(0x1f4));if(!Number[_0x551639(0x6ae)](_0x1d419d[_0x551639(0x842)])||_0x1d419d[_0x551639(0x842)]<0x0)throw new Error('bucket.refill_amount\x20must\x20be\x20int\x20>=\x200');if(!Number['isInteger'](_0x1d419d[_0x551639(0x626)])||_0x1d419d[_0x551639(0x626)]<0x0)throw new Error(_0x551639(0x53c));if(typeof _0x1d419d[_0x551639(0x6bc)]!==_0x551639(0x559)||!Number[_0x551639(0x52f)](_0x1d419d[_0x551639(0x6bc)]))throw new Error(_0x551639(0x37d));}return okdbQueueValidate={'STATUS':_0x51e5e1,'JOB_TYPE_STATUS':_0x5111d8,'QUEUE_EVENTS':_0xaf498f,'LOG_LEVELS':_0x24b0d9,'LOG_CAP_MIN':_0x38becc,'LOG_CAP_MAX':_0x1e7f5a,'clampInt':_0x3deb63,'asNullableString':_0x4e7390,'normalizeResult':_0x385487,'normalizeTags':_0x2aeff2,'normalizeBucket':_0x230daa,'normalizeBuckets':_0x3e9194,'normalizeLogEntry':_0x28875a,'validateJobShape':_0x49ebfb,'validateJobTypeShape':_0x239943,'validateBucketShape':_0x48b316},okdbQueueValidate;}var okdbTimers,hasRequiredOkdbTimers;function requireOkdbTimers(){if(hasRequiredOkdbTimers)return okdbTimers;hasRequiredOkdbTimers=0x1;const _0x43dd1f=0x2**0x1f-0x1;function _0x21fb16(_0x379565){if(!(_0x379565>0x0))return 0x0;return _0x379565>_0x43dd1f?_0x43dd1f:_0x379565;}function _0x58a7d1(_0x19f913){return _0x19f913===Infinity;}return okdbTimers={'MAX_TIMER_DELAY':_0x43dd1f,'clampTimerDelay':_0x21fb16,'isNeverDelay':_0x58a7d1},okdbTimers;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x12f36a=_0xef081e;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x2a10f2=require$$0$6,{clampTimerDelay:_0x164409}=requireOkdbTimers(),{EVENTS:_0x5258df,CHANGE_ACTIONS:_0x10ebd7}=requireOkdbEnums(),{LOOP:_0xd561c7}=requireOkdbLoopMonitor(),_0x109632=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x51d980=0x5,_0x2c44a8=0x2710;class _0x25db73 extends _0x2a10f2{constructor(_0x244623,_0x4d48c1={}){const _0x533fa1=_0x2fc2;super(),this[_0x533fa1(0x82e)]=_0x244623,this[_0x533fa1(0x5ee)]=_0x4d48c1['quantum']??_0x109632,this[_0x533fa1(0x608)]=_0x4d48c1['flushDebounce']??_0x51d980,this[_0x533fa1(0x5a9)]=_0x4d48c1[_0x533fa1(0x5e8)]??_0x2c44a8,this[_0x533fa1(0x66e)]=![],this[_0x533fa1(0x705)]=new Map(),this[_0x533fa1(0x2d3)]=new Map(),this[_0x533fa1(0x4cd)]=new Map(),this['_flushTimer']=null,this[_0x533fa1(0x4c1)]=![],this[_0x533fa1(0x225)]=new Set(),this[_0x533fa1(0x1f5)]=new Set(),this['_onItem']=_0x2a7650=>this[_0x533fa1(0x65f)](_0x2a7650),this[_0x533fa1(0x633)]=_0x4217e6=>this[_0x533fa1(0x620)](_0x4217e6),this[_0x533fa1(0x729)]=_0x322caa=>this[_0x533fa1(0x624)](_0x322caa),this[_0x533fa1(0x3c5)]=()=>this['stop']();}[_0x12f36a(0x77b)](){const _0x4c923f=_0x12f36a;if(this['_started'])return;this['_started']=!![];for(const [_0x5cd84c,_0x175e73]of this[_0x4c923f(0x82e)][_0x4c923f(0x75a)]){if(_0x5cd84c[_0x4c923f(0x212)]('~'))continue;try{_0x175e73['_enableChangelog']();}catch{}}for(const [_0x5ab299,_0x3e6882]of this[_0x4c923f(0x82e)][_0x4c923f(0x75a)]){if(_0x5ab299[_0x4c923f(0x212)]('~'))continue;try{this[_0x4c923f(0x2d3)][_0x4c923f(0x204)](_0x5ab299,_0x3e6882[_0x4c923f(0x73c)]()||0x0);}catch{}}const {events:_0x275582}=this[_0x4c923f(0x82e)];_0x275582['on'](_0x5258df[_0x4c923f(0x3a8)],this[_0x4c923f(0x633)]),_0x275582['on'](_0x5258df[_0x4c923f(0x71d)],this['_onItem']),_0x275582['on'](_0x5258df[_0x4c923f(0x767)],this[_0x4c923f(0x71a)]),_0x275582['on'](_0x5258df['ITEM_REMOVE'],this[_0x4c923f(0x71a)]),_0x275582['on'](_0x5258df[_0x4c923f(0x4e4)],this[_0x4c923f(0x729)]),_0x275582[_0x4c923f(0x308)](_0x5258df['SYSTEM_STOPPED'],this[_0x4c923f(0x3c5)]);}['stop'](){const _0x28543d=_0x12f36a;if(!this[_0x28543d(0x66e)])return;this[_0x28543d(0x66e)]=![];const {events:_0x50de84}=this[_0x28543d(0x82e)];_0x50de84[_0x28543d(0x457)](_0x5258df[_0x28543d(0x3a8)],this[_0x28543d(0x633)]),_0x50de84[_0x28543d(0x457)](_0x5258df[_0x28543d(0x71d)],this['_onItem']),_0x50de84[_0x28543d(0x457)](_0x5258df['ITEM_UPDATE'],this[_0x28543d(0x71a)]),_0x50de84[_0x28543d(0x457)](_0x5258df[_0x28543d(0x688)],this[_0x28543d(0x71a)]),_0x50de84[_0x28543d(0x457)](_0x5258df[_0x28543d(0x4e4)],this[_0x28543d(0x729)]);try{_0x50de84[_0x28543d(0x457)](_0x5258df[_0x28543d(0x495)],this['_onStop']);}catch{}this[_0x28543d(0x3cd)]&&(clearTimeout(this[_0x28543d(0x3cd)]),this['_flushTimer']=null),this[_0x28543d(0x4cd)][_0x28543d(0x6fa)](),this[_0x28543d(0x705)]['clear'](),this[_0x28543d(0x2d3)][_0x28543d(0x6fa)](),this['_seen'][_0x28543d(0x6fa)](),this[_0x28543d(0x1f5)]['clear']();}[_0x12f36a(0x384)](_0x563bba,_0xa7c1e7,_0x400c5d,_0x484e7e){return _0x563bba+'\x00'+_0xa7c1e7+'\x00'+_0x400c5d+'\x00'+_0x484e7e;}[_0x12f36a(0x3dd)](_0x176ee5,_0x1540a8,_0x367aef,_0x5a9636){const _0x2b1150=_0x12f36a,_0x4537a9=this[_0x2b1150(0x384)](_0x176ee5,_0x1540a8,_0x367aef,_0x5a9636);if(this[_0x2b1150(0x225)][_0x2b1150(0x396)](_0x4537a9))return![];this['_seen'][_0x2b1150(0x77d)](_0x4537a9);if(this[_0x2b1150(0x225)]['size']>this[_0x2b1150(0x5a9)]){const _0x15d892=this[_0x2b1150(0x225)][_0x2b1150(0x42a)]()[_0x2b1150(0x8a6)]()[_0x2b1150(0x744)];this[_0x2b1150(0x225)]['delete'](_0x15d892);}return!![];}[_0x12f36a(0x620)](_0x2e96fc){const _0x13e31a=_0x12f36a;if(!this['_started']||!_0x2e96fc)return;const {env:_0x51220d,type:_0x2f8474,key:_0x124161,clock:_0x512fc6}=_0x2e96fc;if(_0x51220d==null||_0x2f8474==null||_0x124161==null)return;if(typeof _0x51220d===_0x13e31a(0x43c)&&_0x51220d[_0x13e31a(0x212)]('~'))return;if(typeof _0x2f8474===_0x13e31a(0x43c)&&_0x2f8474[_0x13e31a(0x212)]('~'))return;this[_0x13e31a(0x1f5)][_0x13e31a(0x77d)](this[_0x13e31a(0x384)](_0x51220d,_0x2f8474,_0x124161,_0x512fc6)),this[_0x13e31a(0x1f5)][_0x13e31a(0x4ff)]>this['_dedupeMax']&&this[_0x13e31a(0x1f5)][_0x13e31a(0x46b)](this[_0x13e31a(0x1f5)][_0x13e31a(0x42a)]()[_0x13e31a(0x8a6)]()['value']);}[_0x12f36a(0x65f)](_0x1a9038){const _0xa1253e=_0x12f36a;if(!this[_0xa1253e(0x66e)]||!_0x1a9038)return;const {env:_0x5562dd,type:_0x53d5a3,key:_0x2061c1,clock:_0x1749f7,origin:_0x1d5f6a,action:_0x442005,newValue:_0x1f4363,oldValue:_0x24d8fb}=_0x1a9038;if(_0x5562dd==null||_0x53d5a3==null||_0x2061c1==null)return;if(typeof _0x5562dd===_0xa1253e(0x43c)&&_0x5562dd[_0xa1253e(0x212)]('~'))return;if(typeof _0x53d5a3===_0xa1253e(0x43c)&&_0x53d5a3['startsWith']('~'))return;this[_0xa1253e(0x1f5)][_0xa1253e(0x46b)](this[_0xa1253e(0x384)](_0x5562dd,_0x53d5a3,_0x2061c1,_0x1749f7));if(!this[_0xa1253e(0x3dd)](_0x5562dd,_0x53d5a3,_0x2061c1,_0x1749f7))return;const _0xf27b5f=_0x442005===_0x10ebd7[_0xa1253e(0x3bd)]?_0xa1253e(0x28d):_0xa1253e(0x1dd);this[_0xa1253e(0x599)](_0xa1253e(0x50f),{'env':_0x5562dd,'type':_0x53d5a3,'key':_0x2061c1,'op':_0xf27b5f,'clock':_0x1749f7,'origin':_0x1d5f6a,'value':_0xf27b5f===_0xa1253e(0x28d)?null:_0x1f4363,'prevValue':_0x24d8fb});}['_handlePoke'](_0xbe1e3c){const _0x4963e1=_0x12f36a;if(!this[_0x4963e1(0x66e)])return;if(!_0xbe1e3c||typeof _0xbe1e3c[_0x4963e1(0x4f8)]!=='string'||typeof _0xbe1e3c[_0x4963e1(0x490)]!=='string')return;const {env:_0x57c4fb,type:_0x15c5a3}=_0xbe1e3c;if(_0x57c4fb['startsWith']('~')||_0x15c5a3[_0x4963e1(0x212)]('~'))return;this[_0x4963e1(0x4cd)][_0x4963e1(0x204)](_0x57c4fb+'\x00'+_0x15c5a3,{'env':_0x57c4fb,'type':_0x15c5a3}),this[_0x4963e1(0x61d)]();}[_0x12f36a(0x61d)](){const _0x2bef31=_0x12f36a;if(this[_0x2bef31(0x3cd)])return;const _0x50e0dc=()=>{const _0x397c65=_0x2bef31;this[_0x397c65(0x3cd)]=null,this[_0x397c65(0x452)]()[_0x397c65(0x603)](()=>{});};this['_flushTimer']=setTimeout(_0x50e0dc,_0x164409(this[_0x2bef31(0x608)]));}async[_0x12f36a(0x452)](){const _0x218dbd=_0x12f36a;if(this[_0x218dbd(0x4c1)]){this[_0x218dbd(0x61d)]();return;}this['_draining']=!![];try{const _0x44c91f=[...this[_0x218dbd(0x4cd)][_0x218dbd(0x42a)]()];this[_0x218dbd(0x4cd)][_0x218dbd(0x6fa)]();let _0x1796e4=![];for(const {env:_0x3ca5f5,type:_0x2561cb}of _0x44c91f){try{const _0x3ede66=await this[_0x218dbd(0x4b1)](_0x3ca5f5,_0x2561cb);if(_0x3ede66)_0x1796e4=!![];}catch{this[_0x218dbd(0x4cd)]['set'](_0x3ca5f5+'\x00'+_0x2561cb,{'env':_0x3ca5f5,'type':_0x2561cb}),_0x1796e4=!![];}}if(_0x1796e4||this[_0x218dbd(0x4cd)][_0x218dbd(0x4ff)]>0x0)this['_scheduleFlush']();}finally{this[_0x218dbd(0x4c1)]=![];}}async[_0x12f36a(0x4b1)](_0x22d498,_0x332a82){const _0x4d2c01=_0x12f36a,_0x232858=await this['okdb'][_0x4d2c01(0x523)](_0x22d498),_0x51d7c4=_0x22d498+'\x00'+_0x332a82;!this[_0x4d2c01(0x705)][_0x4d2c01(0x396)](_0x51d7c4)&&(!this[_0x4d2c01(0x2d3)]['has'](_0x22d498)&&(_0x232858['_enableChangelog'](),this[_0x4d2c01(0x2d3)]['set'](_0x22d498,_0x232858[_0x4d2c01(0x73c)]()||0x0)),this['_cursors'][_0x4d2c01(0x204)](_0x51d7c4,this[_0x4d2c01(0x2d3)][_0x4d2c01(0x292)](_0x22d498)));const _0x4d7e69=this[_0x4d2c01(0x705)][_0x4d2c01(0x292)](_0x51d7c4),_0x5da1c4=_0x232858[_0x4d2c01(0x73c)](_0x332a82)||0x0;if(_0x5da1c4<=_0x4d7e69)return![];const _0x36e603=_0x4d7e69+this[_0x4d2c01(0x5ee)],_0x1763e1=Math[_0x4d2c01(0x439)](_0x5da1c4,_0x36e603),_0x26c3ca=_0xd561c7[_0x4d2c01(0x4b3)]?_0xd561c7[_0x4d2c01(0x3d4)]():0x0,_0x3e0b44=Array[_0x4d2c01(0x51b)](_0x232858[_0x4d2c01(0x257)](_0x332a82,_0x4d7e69+0x1,_0x1763e1));let _0x10d613=_0x4d7e69;for(const _0x3c5260 of _0x3e0b44){const {clock:_0x121569,key:_0x7ccb80,action:_0x3e9ae1,origin:_0x5538b2}=_0x3c5260;if(_0x121569>_0x10d613)_0x10d613=_0x121569;if(_0x7ccb80==null)continue;if(this['_pendingLocal']['has'](this[_0x4d2c01(0x384)](_0x22d498,_0x332a82,_0x7ccb80,_0x121569)))continue;if(!this[_0x4d2c01(0x3dd)](_0x22d498,_0x332a82,_0x7ccb80,_0x121569))continue;let _0x15a8d6,_0xb04345;if(_0x3e9ae1===_0x10ebd7[_0x4d2c01(0x3bd)])_0x15a8d6=_0x4d2c01(0x28d),_0xb04345=null;else{const _0x2a683b=_0x232858[_0x4d2c01(0x292)](_0x332a82,_0x7ccb80);_0x2a683b==null?(_0x15a8d6=_0x4d2c01(0x28d),_0xb04345=null):(_0x15a8d6=_0x4d2c01(0x1dd),_0xb04345=_0x2a683b);}this[_0x4d2c01(0x599)](_0x4d2c01(0x50f),{'env':_0x22d498,'type':_0x332a82,'key':_0x7ccb80,'op':_0x15a8d6,'clock':_0x121569,'origin':_0x5538b2,'value':_0xb04345});}if(_0xd561c7[_0x4d2c01(0x4b3)])_0xd561c7['note'](_0x4d2c01(0x2d9)+_0x22d498+':'+_0x332a82,_0xd561c7['now']()-_0x26c3ca,'n='+_0x3e0b44[_0x4d2c01(0x788)]);return this['_cursors'][_0x4d2c01(0x204)](_0x51d7c4,Math[_0x4d2c01(0x31f)](_0x10d613,_0x1763e1)),_0x232858[_0x4d2c01(0x73c)](_0x332a82)>_0x1763e1;}[_0x12f36a(0x442)](){const _0x2f096e=_0x12f36a;return{'started':this[_0x2f096e(0x66e)],'quantum':this[_0x2f096e(0x5ee)],'flushDebounce':this[_0x2f096e(0x608)],'cursors':Object[_0x2f096e(0x89e)]([...this[_0x2f096e(0x705)][_0x2f096e(0x84a)]()][_0x2f096e(0x642)](([_0x492b3d,_0x5b0b3a])=>[_0x492b3d['replace']('\x00',':'),_0x5b0b3a])),'pending':this[_0x2f096e(0x4cd)]['size'],'seen':this[_0x2f096e(0x225)][_0x2f096e(0x4ff)]};}}return _0x25db73[_0x12f36a(0x8b0)]=_0x109632,okdbChangefeed={'OKDBChangefeed':_0x25db73},okdbChangefeed;}var okdbRelay,hasRequiredOkdbRelay;function requireOkdbRelay(){const _0x2d554a=_0xef081e;if(hasRequiredOkdbRelay)return okdbRelay;hasRequiredOkdbRelay=0x1;const {EVENTS:_0x2acf34}=requireOkdbEnums(),_0x54949a=new Set([_0x2acf34[_0x2d554a(0x71d)],_0x2acf34[_0x2d554a(0x767)],_0x2acf34['ITEM_REMOVE']]),{ENGINE_EVENTS:_0xade4c4}=requireOkdbEnginesEnums(),{EMBEDDINGS_EVENTS:_0x4a0e3e}=requireEnums(),{QUEUE_EVENTS:_0x3f323a}=requireOkdbQueueValidate(),_0x56ddbd=Object[_0x2d554a(0x42a)](_0x2acf34),_0x4e829b=Object[_0x2d554a(0x42a)](_0xade4c4)[_0x2d554a(0x642)](_0x4504bc=>_0x2d554a(0x2a6)+_0x4504bc),_0x6029f3=Object[_0x2d554a(0x42a)](_0x4a0e3e),_0x2dce76=Object['values'](_0x3f323a),_0x172745=[_0x2d554a(0x4f2),'processor:progress',_0x2d554a(0x616),_0x2d554a(0x6a0),_0x2d554a(0x714),'processor:retry'],_0x16437b=[..._0x56ddbd,..._0x4e829b,..._0x6029f3,..._0x2dce76,..._0x172745,_0x2d554a(0x6d5)],_0x587994=new Set(_0x16437b),_0xc7a9f5=new Set([_0x2acf34['ITEM_CREATE'],_0x2acf34[_0x2d554a(0x767)],_0x2acf34[_0x2d554a(0x688)],_0x2acf34[_0x2d554a(0x25f)],_0x2acf34[_0x2d554a(0x6cf)],_0x2acf34[_0x2d554a(0x5c0)],_0x2acf34[_0x2d554a(0x243)],_0x2acf34[_0x2d554a(0x8aa)],_0x4a0e3e[_0x2d554a(0x531)],_0x4a0e3e[_0x2d554a(0x339)],_0x4a0e3e[_0x2d554a(0x602)],_0x4a0e3e[_0x2d554a(0x865)],_0x2d554a(0x511)]),_0x2cca1e=_0x16437b[_0x2d554a(0x877)](_0xe80557=>_0xe80557==='log'||!_0xc7a9f5[_0x2d554a(0x396)](_0xe80557)),_0x5bb4a4=0x14,_0x58509f=0xc8;class _0x4349ed{constructor(_0x2de1cf,_0x3a2ab7={}){const _0x55e438=_0x2d554a;this[_0x55e438(0x82e)]=_0x2de1cf,this[_0x55e438(0x3ed)]=_0x3a2ab7[_0x55e438(0x824)]??_0x5bb4a4,this[_0x55e438(0x5a4)]=_0x3a2ab7[_0x55e438(0x6b2)]??_0x58509f,this[_0x55e438(0x4c9)]=new Set(),this[_0x55e438(0x48c)]=[],this[_0x55e438(0x70c)]=[],this['_detachLog']=null,this[_0x55e438(0x28b)]=![],this[_0x55e438(0x72c)]=null,this[_0x55e438(0x262)]=null;}[_0x2d554a(0x4d3)](){const _0x45aefe=_0x2d554a;if(this[_0x45aefe(0x28b)])return;this[_0x45aefe(0x28b)]=!![];const {okdb:_0x97a441}=this;this[_0x45aefe(0x1f8)]=_0x97a441[_0x45aefe(0x6d5)][_0x45aefe(0x4d3)](_0x45214d=>this['_push'](_0x45aefe(0x6d5),_0x45214d));for(const _0x133854 of _0x16437b){if(_0x133854===_0x45aefe(0x6d5))continue;const _0x8ff9d3=_0x54949a[_0x45aefe(0x396)](_0x133854),_0x31a3d9=_0x36d9aa=>{const _0x14c654=_0x45aefe;if(_0x8ff9d3&&this[_0x14c654(0x72c)])return;this['_push'](_0x133854,_0x36d9aa??{});};_0x97a441[_0x45aefe(0x3d2)]['on'](_0x133854,_0x31a3d9),this['_listeners'][_0x45aefe(0x27f)]({'event':_0x133854,'handler':_0x31a3d9});}this['_onStop']=()=>this[_0x45aefe(0x5f1)](),_0x97a441[_0x45aefe(0x3d2)][_0x45aefe(0x308)](_0x2acf34[_0x45aefe(0x495)],this[_0x45aefe(0x3c5)]);}[_0x2d554a(0x5f1)](){const _0x50ace5=_0x2d554a;if(!this[_0x50ace5(0x28b)])return;if(this['_onStop']){try{this[_0x50ace5(0x82e)][_0x50ace5(0x3d2)][_0x50ace5(0x457)](_0x2acf34[_0x50ace5(0x495)],this['_onStop']);}catch{}this[_0x50ace5(0x3c5)]=null;}this[_0x50ace5(0x1f8)]?.(),this['_detachLog']=null;for(const {event:_0x2ad570,handler:_0xbac446}of this['_listeners']){try{this[_0x50ace5(0x82e)][_0x50ace5(0x3d2)][_0x50ace5(0x457)](_0x2ad570,_0xbac446);}catch{}}this[_0x50ace5(0x70c)]=[];for(const _0x396b24 of this[_0x50ace5(0x4c9)]){try{_0x396b24['close']?.();}catch{}}this[_0x50ace5(0x4c9)][_0x50ace5(0x6fa)](),this['detachFeed'](),this[_0x50ace5(0x28b)]=![];}[_0x2d554a(0x39e)](_0x3f7759){const _0x31ed0e=_0x2d554a;if(!_0x3f7759||this[_0x31ed0e(0x72c)]===_0x3f7759)return;this['detachFeed'](),this[_0x31ed0e(0x72c)]=_0x3f7759,this[_0x31ed0e(0x262)]=_0x16b437=>{const _0x12ce99=_0x31ed0e;if(!_0x16b437)return;const _0x144749=_0x16b437['op']===_0x12ce99(0x28d)?_0x2acf34[_0x12ce99(0x688)]:_0x2acf34[_0x12ce99(0x767)];this['_push'](_0x144749,_0x16b437);},_0x3f7759['on'](_0x31ed0e(0x50f),this[_0x31ed0e(0x262)]);}[_0x2d554a(0x722)](){const _0x45c70f=_0x2d554a;if(this[_0x45c70f(0x72c)]&&this[_0x45c70f(0x262)])try{this['_feed'][_0x45c70f(0x457)](_0x45c70f(0x50f),this[_0x45c70f(0x262)]);}catch{}this[_0x45c70f(0x72c)]=null,this[_0x45c70f(0x262)]=null;}['pushEphemeral'](_0x1388a5,_0x53fc44){const _0x5e94c5=_0x2d554a;if(!_0x587994['has'](_0x1388a5))return;this[_0x5e94c5(0x444)](_0x1388a5,_0x53fc44??{});}[_0x2d554a(0x80b)](_0x1f2ada,_0x2b290a,_0x4be7a6){const _0x5c5ef3=_0x2d554a;if(this[_0x5c5ef3(0x4c9)][_0x5c5ef3(0x4ff)]>=this[_0x5c5ef3(0x3ed)])return _0x2b290a(_0x5c5ef3(0x79b),{'message':_0x5c5ef3(0x8da),'code':_0x5c5ef3(0x604)}),()=>{};const _0x3aaf96=this[_0x5c5ef3(0x7ca)](_0x1f2ada),_0xfee831={'send':_0x2b290a,'filter':_0x3aaf96,'close':_0x4be7a6??null};this['_connections'][_0x5c5ef3(0x77d)](_0xfee831);for(const {event:_0x2789d2,data:_0x30ef53}of this[_0x5c5ef3(0x48c)]){if(_0x3aaf96[_0x5c5ef3(0x396)](_0x2789d2))try{_0x2b290a(_0x2789d2,_0x30ef53);}catch{}}return()=>this[_0x5c5ef3(0x4c9)]['delete'](_0xfee831);}['ensureFeed'](){const _0x78b1ee=_0x2d554a;if(this[_0x78b1ee(0x72c)])return this['_feed'];const {OKDBChangefeed:_0x1c1998}=requireOkdbChangefeed(),_0x224171=new _0x1c1998(this['okdb']);_0x224171[_0x78b1ee(0x77b)](),this[_0x78b1ee(0x39e)](_0x224171);if(this[_0x78b1ee(0x82e)]&&!this['okdb'][_0x78b1ee(0x313)])this[_0x78b1ee(0x82e)][_0x78b1ee(0x313)]=_0x224171;return this[_0x78b1ee(0x72c)];}get[_0x2d554a(0x3f4)](){const _0x119339=_0x2d554a;return this[_0x119339(0x4c9)][_0x119339(0x4ff)];}[_0x2d554a(0x70a)](){const _0x1875ca=_0x2d554a;return{'connections':this[_0x1875ca(0x3f4)],'bufferSize':this[_0x1875ca(0x48c)]['length'],'attached':this[_0x1875ca(0x28b)],'allEvents':_0x16437b['length'],'defaultEvents':_0x2cca1e[_0x1875ca(0x788)]};}static get[_0x2d554a(0x2fe)](){return _0x16437b;}static get[_0x2d554a(0x63a)](){return _0x2cca1e;}static get[_0x2d554a(0x1ef)](){return[..._0xc7a9f5];}[_0x2d554a(0x7ca)](_0x44bddb){const _0x3cc58a=_0x2d554a;if(!_0x44bddb||!_0x44bddb['length'])return new Set(_0x2cca1e);const _0x447bb1=_0x44bddb[_0x3cc58a(0x877)](_0x340257=>_0x587994[_0x3cc58a(0x396)](_0x340257));return new Set(_0x447bb1[_0x3cc58a(0x788)]?_0x447bb1:_0x2cca1e);}['_push'](_0x69d952,_0x324d93){const _0x45c8f4=_0x2d554a,_0x91d904={..._0x324d93,'_ts':_0x324d93?.[_0x45c8f4(0x723)]??_0x324d93?.['ts']??Date['now']()};this[_0x45c8f4(0x48c)][_0x45c8f4(0x27f)]({'event':_0x69d952,'data':_0x91d904});if(this[_0x45c8f4(0x48c)][_0x45c8f4(0x788)]>this[_0x45c8f4(0x5a4)])this[_0x45c8f4(0x48c)][_0x45c8f4(0x5af)]();for(const _0x24017f of this[_0x45c8f4(0x4c9)]){if(_0x24017f['filter'][_0x45c8f4(0x396)](_0x69d952))try{_0x24017f[_0x45c8f4(0x503)](_0x69d952,_0x91d904);}catch{}}}}return okdbRelay=_0x4349ed,okdbRelay;}var hasRequiredLib;function requireLib(){const _0x3d64fc=_0xef081e;if(hasRequiredLib)return lib[_0x3d64fc(0x57d)];return hasRequiredLib=0x1,function(_0x52e65e){const _0x17e567=_0x3d64fc,_0x1d0267=require$$0$6,{load:_0x4f4e1b}=require$$1$1,_0x568cd6=requireBridge(),_0x2b716d=requireWritebatch(),{Pumper:_0x59139d}=requirePump(),{OKDBEnv:_0x14b26f,HIGH_SENTINEL:_0x50578d}=requireEnv(),{reclass:_0x4240b8,NotImplementedNative:_0x20aefe,OKDBError:_0x126a32,optionsArg:_0x28968,invalidArgument:_0x5bf794}=requireErrors(),{notImplemented:_0x5b693a}=requireUnsupported(),{OKDBHttp:_0x1b07e3}=requireHttp(),{OKDBFts:_0xa33a4a}=requireFts(),{OKDBEmbeddings:_0x2dd880}=requireEmbeddings(),{OKDBAuth:_0x5751c1}=requireAuth(),{OKDBSync:_0x2dfbd5}=requireSync(),{OKDBMigrate:_0xe4455d}=requireMigrate(),{OKDBFunctions:_0x4f4574}=requireFunctions(),{OKDBMcp:_0x30e46d}=requireMcp(),{OKDBEngines:_0x1592f6,OKDBPipelines:_0x4eb356}=requireEngines(),{makeMeta:_0x2e7ed7,makeLicenses:_0x238a14,makeLicenseChecker:_0x5ac861,makeProcesses:_0x129caa}=requireSys();let _0x531deb=null;function _0x3b5a3e(_0x1975d4){const _0x362ada=_0x2fc2;if(!_0x531deb){const {Unpackr:_0xeae4b4}=require$$18;_0x531deb=new _0xeae4b4({'useRecords':![],'mapsAsObjects':!![],'copyBuffers':!![]});}return _0x531deb[_0x362ada(0x67f)](_0x1975d4);}let _0x120fcd=null;function _0x4dc5e5(_0x240b37,_0x399776){const _0x465bb7=_0x2fc2;if(!_0x120fcd){const {Unpackr:_0x58fd04}=require$$18;_0x120fcd=new _0x58fd04({'copyBuffers':!![]});}return _0x120fcd[_0x465bb7(0x67f)](_0x240b37,_0x399776);}const {encodeKey:_0x4f8ae1,KEY_BUF_SIZE:_0x16ebaa,NO_FAST:_0x57fbb4}=requireKeyenc(),_0x1c3024=0x40*0x400,_0x1d8eb8=0x4*0x400*0x400;function _0x31c380(_0x35841f,_0x63458b){const _0x4d8c60=_0x2fc2,_0x23b77b=_0x35841f[0x2],_0x2c2632=_0x23b77b?(_0x35841f[_0x4d8c60(0x788)]-0x3)/Math[_0x4d8c60(0x438)](_0x23b77b):0x0,_0x4aece3=new Array(_0x2c2632);let _0x1b658f=0x3;if(_0x23b77b===0x2){for(let _0x577dac=0x0;_0x577dac<_0x2c2632;_0x577dac++,_0x1b658f+=0x2)_0x4aece3[_0x577dac]={'key':_0x35841f[_0x1b658f],'value':_0x35841f[_0x1b658f+0x1]};}else{if(_0x23b77b===0x3){for(let _0x384bfe=0x0;_0x384bfe<_0x2c2632;_0x384bfe++,_0x1b658f+=0x3)_0x4aece3[_0x384bfe]={'key':_0x35841f[_0x1b658f],'value':_0x35841f[_0x1b658f+0x1],'version':_0x35841f[_0x1b658f+0x2]};}else{if(_0x23b77b===-0x2){for(let _0x184acf=0x0;_0x184acf<_0x2c2632;_0x184acf++,_0x1b658f+=0x2)_0x4aece3[_0x184acf]={'clock':_0x35841f[_0x1b658f],..._0x35841f[_0x1b658f+0x1]};}else{if(_0x23b77b===0x4){for(let _0x176b3a=0x0;_0x176b3a<_0x2c2632;_0x176b3a++,_0x1b658f+=0x4)_0x4aece3[_0x176b3a]={'key':_0x35841f[_0x1b658f],'value':_0x35841f[_0x1b658f+0x1],'version':_0x35841f[_0x1b658f+0x2],'indexKey':_0x35841f[_0x1b658f+0x3]};}else{if(_0x2c2632)throw new Error('callRows:\x20unexpected\x20row\x20stride\x20'+_0x23b77b);}}}}return _0x63458b?[_0x35841f[0x0],_0x4aece3,_0x35841f[0x1]]:_0x4aece3;}let _0x2a9a69=null;function _0x2a5a57(_0x54278b,_0x42543b,_0x58d01e){const _0x4336c8=_0x2fc2;if(!_0x2a9a69)_0x2a9a69=requireDist()['readKey'];const _0x1cf50e=new DataView(_0x54278b[_0x4336c8(0x570)],_0x54278b[_0x4336c8(0x6e4)],_0x42543b),_0x4320ef=_0x1cf50e[_0x4336c8(0x6b4)](0x10,!![]),_0x1fa3c1=new Array(_0x4320ef);let _0x26da51=0x14;for(let _0x40774a=0x0;_0x40774a<_0x4320ef;_0x40774a++){const _0x387999=_0x54278b[_0x26da51]|_0x54278b[_0x26da51+0x1]<<0x8;_0x26da51+=0x2,_0x1fa3c1[_0x40774a]=_0x2a9a69(_0x54278b,_0x26da51,_0x26da51+_0x387999),_0x26da51+=_0x387999;}return _0x58d01e?[_0x1cf50e['getFloat64'](0x0,!![]),_0x1fa3c1,_0x1cf50e[_0x4336c8(0x2e4)](0x8,!![])]:_0x1fa3c1;}const _0x5a3049=requireOkdbLogger(),_0x523727=requireOkdbPlugins(),{OKDB_STATE:_0x44716b,EVENTS:_0x1d4066}=requireOkdbEnums(),_0x4d0ba0=requireStatics();let _0x1e5dda=null,_0x446c93=![],_0x2c6966=0x1;const _0x272b0c=new Map(),_0x5ef515=new Set([_0x17e567(0x7b4),_0x17e567(0x6fb)]),_0x3b7f3b=_0x251212=>!!_0x251212&&_0x5ef515[_0x17e567(0x396)](_0x251212[_0x17e567(0x1bd)]),_0x318993=Number(process.env.OKDB_PENDING_RETRY_MS)>0x0?Number(process.env.OKDB_PENDING_RETRY_MS):0x1d4c0;function _0x19fcce(){const _0x42b562=_0x17e567;!_0x446c93&&(_0x3c775f()[_0x42b562(0x5fd)](_0x568cd6[_0x42b562(0x35f)]),_0x2b716d[_0x42b562(0x210)](_0x3c775f()),_0x446c93=!![]);}function _0x3c775f(){if(!_0x1e5dda)_0x1e5dda=_0x4f4e1b();return _0x1e5dda;}class _0x205421 extends Map{constructor(_0x462246){super(),this['_db']=_0x462246;}['_sync'](){const _0x4c6e44=_0x17e567,_0xdc4b94=this['_db'];if(!_0xdc4b94[_0x4c6e44(0x489)])return;let _0x3adbba;try{_0x3adbba=_0xdc4b94['_call']('db',null,'envNames',[],![]);}catch{return;}for(const _0x562242 of _0x3adbba)if(!super[_0x4c6e44(0x396)](_0x562242)&&_0xdc4b94[_0x4c6e44(0x5a1)]('db',null,_0x4c6e44(0x4ab),[_0x562242],![]))_0xdc4b94[_0x4c6e44(0x7d6)](_0x562242);}[_0x17e567(0x292)](_0x38da9c){const _0x1a35f5=_0x17e567,_0x305111=super['get'](_0x38da9c);if(_0x305111!==undefined||typeof _0x38da9c!==_0x1a35f5(0x43c))return _0x305111;const _0x4374fe=this[_0x1a35f5(0x497)];if(_0x38da9c===_0x1a35f5(0x593))return _0x4374fe[_0x1a35f5(0x489)]?_0x4374fe['processes'][_0x1a35f5(0x7f3)]??undefined:undefined;if(_0x4374fe[_0x1a35f5(0x489)]&&_0x4374fe[_0x1a35f5(0x5a1)]('db',null,_0x1a35f5(0x4ab),[_0x38da9c],![]))return _0x4374fe[_0x1a35f5(0x7d6)](_0x38da9c);if(_0x4374fe['_isOpen']&&typeof _0x38da9c===_0x1a35f5(0x43c)&&!_0x38da9c['startsWith']('~')){_0x4374fe['_call']('db',null,_0x1a35f5(0x4b0),[],![]);if(_0x4374fe[_0x1a35f5(0x5a1)]('db',null,_0x1a35f5(0x4ab),[_0x38da9c],![]))return _0x4374fe[_0x1a35f5(0x7d6)](_0x38da9c);}return undefined;}[_0x17e567(0x396)](_0x56dcf5){const _0x1e31c5=_0x17e567;return this[_0x1e31c5(0x292)](_0x56dcf5)!==undefined;}get[_0x17e567(0x4ff)](){const _0x3b2ba9=_0x17e567;return this[_0x3b2ba9(0x1e0)](),super[_0x3b2ba9(0x4ff)];}['keys'](){const _0x531649=_0x17e567;return this['_sync'](),super[_0x531649(0x607)]();}[_0x17e567(0x42a)](){const _0x548425=_0x17e567;return this['_sync'](),super[_0x548425(0x42a)]();}[_0x17e567(0x84a)](){const _0x3d0e4e=_0x17e567;return this[_0x3d0e4e(0x1e0)](),super[_0x3d0e4e(0x84a)]();}[_0x17e567(0x8de)](_0x2d3b83,_0x418b9f){const _0x4ce01e=_0x17e567;return this[_0x4ce01e(0x1e0)](),super[_0x4ce01e(0x8de)](_0x2d3b83,_0x418b9f);}[Symbol[_0x17e567(0x6a7)]](){const _0x5f5a6f=_0x17e567;return this['_sync'](),super[Symbol[_0x5f5a6f(0x6a7)]]();}}class _0x7646a2{constructor(_0xaa967e,_0x4a2716={}){const _0x35f0f3=_0x17e567,_0x50b46a=_0x3c775f();this[_0x35f0f3(0x844)]=_0xaa967e,this[_0x35f0f3(0x697)]=_0x2c6966++,this[_0x35f0f3(0x306)]='db'+this[_0x35f0f3(0x697)],this[_0x35f0f3(0x1cc)]={..._0x4d0ba0['defaults'],..._0x4a2716,'auth':_0x4a2716[_0x35f0f3(0x65c)]?{..._0x4a2716[_0x35f0f3(0x65c)]}:undefined,'lmdb':{..._0x4a2716[_0x35f0f3(0x879)]||{}}},this['events']=new _0x1d0267(),this[_0x35f0f3(0x3d2)][_0x35f0f3(0x7d9)](0x0),this[_0x35f0f3(0x546)]=new Set(),this[_0x35f0f3(0x3d2)]['on'](_0x35f0f3(0x69c),_0x1847c3=>this[_0x35f0f3(0x389)](_0x1847c3)),this[_0x35f0f3(0x6d5)]=new _0x5a3049(this),this[_0x35f0f3(0x6d5)]['attachConsole'](),_0x568cd6[_0x35f0f3(0x5d7)](this['_key'],{'_deliver':(_0x213525,_0x49ad57)=>this['_deliverEvent'](_0x213525,_0x49ad57),'_log':_0x182b18=>{const _0x4a1642=_0x35f0f3;if(this[_0x4a1642(0x7db)])this[_0x4a1642(0x7db)][_0x4a1642(0x27f)](_0x182b18);const _0x362238=_0x182b18&&_0x182b18[_0x4a1642(0x239)];if(_0x362238&&Object['prototype'][_0x4a1642(0x3ce)][_0x4a1642(0x62a)](this[_0x4a1642(0x6d5)],_0x362238)&&typeof this[_0x4a1642(0x6d5)][_0x362238]===_0x4a1642(0x484)){const _0x13421b=_0x182b18['context'];return this['log'][_0x362238](_0x182b18[_0x4a1642(0x2db)],{..._0x182b18['meta']||{},..._0x13421b&&typeof _0x13421b==='object'?_0x13421b:{}});}return this[_0x4a1642(0x6d5)][_0x4a1642(0x1d0)](_0x182b18);}}),_0x19fcce();try{const _0x48d89d={};if(typeof _0x35f0f3(0x8f1)===_0x35f0f3(0x312)||_0x35f0f3(0x8f1)!==_0x35f0f3(0x8f1));const _0xe23c1d={..._0x4a2716,'_clusterWorker':require(_0x35f0f3(0x6b7))[_0x35f0f3(0x8d1)],..._0x48d89d};this[_0x35f0f3(0x241)]={'instance':null,'envs':new Map()};typeof _0x4a2716[_0x35f0f3(0x5d2)]===_0x35f0f3(0x484)&&(this[_0x35f0f3(0x241)][_0x35f0f3(0x7ae)]=_0x4a2716['encryptionKey'],delete _0xe23c1d['encryptionKey']);if(_0x4a2716[_0x35f0f3(0x630)]&&typeof _0x4a2716[_0x35f0f3(0x630)]===_0x35f0f3(0x7f6)){for(const [_0x542b88,_0x38a2af]of Object['entries'](_0x4a2716[_0x35f0f3(0x630)]))this['_keyFns'][_0x35f0f3(0x322)]['set'](_0x542b88,_0x38a2af);}delete _0xe23c1d['encryptionKeys'],this[_0x35f0f3(0x22e)]=new _0x50b46a[(_0x35f0f3(0x447))](_0xaa967e,_0xe23c1d,this[_0x35f0f3(0x306)]);}catch(_0x459c77){_0x568cd6[_0x35f0f3(0x32b)](this[_0x35f0f3(0x306)]);throw _0x4240b8(_0x459c77);}this['state']=_0x44716b[_0x35f0f3(0x6dc)],this['_isOpen']=![],this[_0x35f0f3(0x75a)]=new _0x205421(this),this[_0x35f0f3(0x82c)]=new _0x59139d({'pump':()=>this[_0x35f0f3(0x22e)][_0x35f0f3(0x2ac)]()}),this[_0x35f0f3(0x7de)]=new _0x2b716d[(_0x35f0f3(0x525))](this),this[_0x35f0f3(0x82c)][_0x35f0f3(0x422)]=()=>_0x568cd6['checkSignals'](),_0x568cd6['setKick'](()=>this[_0x35f0f3(0x82c)][_0x35f0f3(0x2ca)](),this),_0x272b0c['set'](this[_0x35f0f3(0x697)],this),this['_features']={},_0x568cd6[_0x35f0f3(0x363)](this),this[_0x35f0f3(0x658)]=new _0xa33a4a(this),this[_0x35f0f3(0x3de)]=new _0x2dd880(this),this[_0x35f0f3(0x2af)]=new _0x1592f6(this,null,null),this['pipelines']=new _0x4eb356(this,null),this[_0x35f0f3(0x5c3)]=_0x2e7ed7(this),this['licenses']=_0x238a14(this),this['_license']=_0x5ac861(this),this[_0x35f0f3(0x6f9)]=_0x129caa(this),this['processors']=_0x5e3230(this),this[_0x35f0f3(0x5ec)]=new _0x523727(this),this[_0x35f0f3(0x73f)]=new _0x1b07e3(this),this['sync']=new _0x2dfbd5(this),this['auth']=new _0x5751c1(this),this[_0x35f0f3(0x1f1)]=new _0x4f4574(this,null),this[_0x35f0f3(0x2cf)]=new _0x30e46d(this),this[_0x35f0f3(0x8ed)]=_0x4a2716&&_0x4a2716[_0x35f0f3(0x8ed)]===![]?null:_0x5b693a(_0x35f0f3(0x8ed)),this['api']=_0x5b693a(_0x35f0f3(0x276)),this[_0x35f0f3(0x60c)]=new _0xe4455d(this);}['_call'](_0x4a8318,_0x247616,_0x149ce2,_0xc69d69,_0x5427f0=!![]){const _0x1d9e46=_0x17e567;if(_0x5427f0&&this['_wb']&&this[_0x1d9e46(0x7de)][_0x1d9e46(0x2c1)][_0x1d9e46(0x788)])this[_0x1d9e46(0x7de)][_0x1d9e46(0x7dc)]();try{return this[_0x1d9e46(0x22e)]['call'](_0x4a8318,_0x247616,_0x149ce2,_0xc69d69);}catch(_0x2e76da){throw _0x4240b8(_0x2e76da);}finally{if(_0x5427f0)this[_0x1d9e46(0x82c)]['wake']();}}[_0x17e567(0x562)](_0x5843e4,_0x486e9d,_0x27e865,_0x5b95d5){const _0x26f975=_0x17e567;let _0x294652;try{_0x294652=this[_0x26f975(0x22e)][_0x26f975(0x571)](_0x5843e4,_0x486e9d,_0x27e865,_0x5b95d5);}catch(_0x572ff4){throw _0x4240b8(_0x572ff4);}return _0x294652 instanceof Uint8Array?_0x3b5a3e(_0x294652):_0x294652[0x0];}[_0x17e567(0x403)](_0x1e26a2){const _0x56fb1a=_0x17e567;let _0x2ccc82=this[_0x56fb1a(0x5e3)];if(_0x2ccc82&&_0x1e26a2<=_0x2ccc82[_0x56fb1a(0x788)])return _0x2ccc82;let _0xd27350=_0x2ccc82?_0x2ccc82['length']:_0x1c3024;while(_0xd27350<_0x1e26a2)_0xd27350*=0x2;if(_0xd27350>_0x1d8eb8)return _0x2ccc82;return _0x2ccc82=this['_rbuf']=Buffer[_0x56fb1a(0x5fc)](_0xd27350),this['_native'][_0x56fb1a(0x2ef)](_0x2ccc82),_0x2ccc82;}[_0x17e567(0x236)](_0x5cb3d2,_0x119544,_0x2b2ec6){const _0x14b6ea=_0x17e567;if(!this[_0x14b6ea(0x5e3)])this[_0x14b6ea(0x403)](0x0);const _0x2505fe=this[_0x14b6ea(0x22e)][_0x14b6ea(0x61b)](_0x5cb3d2,_0x119544,_0x2b2ec6);if(typeof _0x2505fe===_0x14b6ea(0x559))return _0x4dc5e5(this[_0x14b6ea(0x5e3)],_0x2505fe);if(_0x2505fe===undefined||_0x2505fe===null)return _0x2505fe;return this[_0x14b6ea(0x403)](_0x2505fe[_0x14b6ea(0x788)]),_0x4dc5e5(_0x2505fe);}[_0x17e567(0x7cd)](_0x55eec5,_0x319dc9,_0x1858a4){const _0x59a11e=_0x17e567;let _0x2b3157=this[_0x59a11e(0x267)];if(!_0x2b3157){_0x2b3157=this[_0x59a11e(0x267)]=Buffer[_0x59a11e(0x5fc)](_0x16ebaa),this['_native'][_0x59a11e(0x5c2)](_0x2b3157),this[_0x59a11e(0x1c6)]=new Map();if(!this[_0x59a11e(0x5e3)])this[_0x59a11e(0x403)](0x0);}const _0x1f8192=_0x4f8ae1(_0x1858a4,_0x2b3157);if(_0x1f8192<0x0)return _0x57fbb4;let _0x88ad95=this[_0x59a11e(0x1c6)][_0x59a11e(0x292)](_0x55eec5);if(_0x88ad95===undefined)this[_0x59a11e(0x1c6)]['set'](_0x55eec5,_0x88ad95=new Map());let _0x554da1=_0x88ad95[_0x59a11e(0x292)](_0x319dc9);if(_0x554da1===undefined)_0x88ad95[_0x59a11e(0x204)](_0x319dc9,_0x554da1=this['_native'][_0x59a11e(0x7bb)](_0x55eec5,_0x319dc9));if(_0x554da1<0x0)return _0x57fbb4;const _0x39ea96=this[_0x59a11e(0x22e)][_0x59a11e(0x587)](_0x554da1,_0x1f8192);if(typeof _0x39ea96===_0x59a11e(0x559))return _0x4dc5e5(this[_0x59a11e(0x5e3)],_0x39ea96);if(_0x39ea96===undefined||_0x39ea96===null)return _0x39ea96;return this[_0x59a11e(0x403)](_0x39ea96[_0x59a11e(0x788)]),_0x4dc5e5(_0x39ea96);}[_0x17e567(0x764)](_0x5aa440,_0x254331,_0x541d97){const _0x2aafcf=_0x17e567;if(!this[_0x2aafcf(0x5e3)])this[_0x2aafcf(0x403)](0x0);let _0x26036f;try{_0x26036f=this[_0x2aafcf(0x22e)][_0x2aafcf(0x5ae)](_0x5aa440,_0x254331,_0x541d97);}catch(_0x551547){throw _0x4240b8(_0x551547);}const _0x5c252e=_0x254331===_0x2aafcf(0x59f),_0x2db354=_0x5c252e?_0x541d97[0x1]:_0x254331;let _0x19ecd7=this[_0x2aafcf(0x5e3)],_0x5a4e3f=_0x26036f;if(_0x26036f instanceof Uint8Array)this['_readBuf'](_0x26036f[_0x2aafcf(0x788)]),_0x19ecd7=_0x26036f,_0x5a4e3f=_0x26036f['length'];else{if(typeof _0x26036f!==_0x2aafcf(0x559))return _0x26036f[0x0];}if(_0x2db354===_0x2aafcf(0x541))return _0x2a5a57(_0x19ecd7,_0x5a4e3f,_0x5c252e);if(_0x2db354===_0x2aafcf(0x2d2))return _0x4dc5e5(_0x19ecd7,_0x5a4e3f);return _0x31c380(_0x4dc5e5(_0x19ecd7,_0x5a4e3f),_0x5c252e);}[_0x17e567(0x517)](_0x2c7ee5,_0x392ea9,_0x6ac366,_0x468244,_0x55a6ca=!![],_0x3bd17e=!![]){const _0x3834db=_0x17e567,_0x40d5e8=()=>this[_0x3834db(0x3d3)](()=>this[_0x3834db(0x5a1)](_0x2c7ee5,_0x392ea9,_0x6ac366,_0x468244,_0x55a6ca));if(!_0x3bd17e)return _0x40d5e8();return this[_0x3834db(0x674)](_0x40d5e8);}['_retryPending'](_0x584692){const _0x4eec76=_0x17e567;return _0x584692()[_0x4eec76(0x603)](async _0x53aa30=>{const _0x126ed7=_0x4eec76;if(!_0x3b7f3b(_0x53aa30))throw _0x53aa30;const _0x536041=Date['now']()+_0x318993;let _0x21e80d=0x1;while(_0x3b7f3b(_0x53aa30)&&Date[_0x126ed7(0x3d4)]()<_0x536041){await new Promise(_0x758008=>setTimeout(_0x758008,_0x21e80d)),_0x21e80d=Math['min'](_0x21e80d*0x2,0x14);try{return await _0x584692();}catch(_0x1bf15d){_0x53aa30=_0x1bf15d;}}throw _0x53aa30;});}[_0x17e567(0x1bf)](_0x2392f0){const _0x1d1f0f=_0x17e567;if(_0x568cd6[_0x1d1f0f(0x3d6)]())return Promise[_0x1d1f0f(0x1f3)](_0x2392f0);return new Promise(_0x41614a=>setImmediate(()=>_0x41614a(_0x2392f0)));}[_0x17e567(0x36f)](_0x2586b8){const _0x2e37cb=_0x17e567;if(_0x568cd6[_0x2e37cb(0x3d6)]())return Promise[_0x2e37cb(0x1f3)](_0x2586b8);return this[_0x2e37cb(0x2fd)]()[_0x2e37cb(0x458)](()=>_0x2586b8);}[_0x17e567(0x2fd)](){return new Promise(_0x4343ba=>setImmediate(()=>{const _0x2346b2=_0x2fc2;let _0xb1e68b;try{_0xb1e68b=this[_0x2346b2(0x22e)][_0x2346b2(0x858)]();}catch{return _0x4343ba();}_0x2b716d[_0x2346b2(0x8c0)](_0xb1e68b,_0x4343ba);}));}[_0x17e567(0x3d3)](_0x347561){return new Promise((_0x3d4b85,_0x289511)=>setImmediate(()=>{try{_0x3d4b85(_0x347561());}catch(_0x5215b4){_0x289511(_0x5215b4);}}));}[_0x17e567(0x72b)](_0x2767eb,_0x4bee47,_0x482692){return _0x1eb782(_0x2767eb,_0x4bee47,_0x482692);}[_0x17e567(0x389)](_0x53d9ec){const _0x5a54ec=_0x17e567;if(typeof _0x53d9ec!==_0x5a54ec(0x43c)||this[_0x5a54ec(0x546)][_0x5a54ec(0x396)](_0x53d9ec)||_0x53d9ec===_0x5a54ec(0x69c)||_0x53d9ec===_0x5a54ec(0x565))return;this[_0x5a54ec(0x546)]['add'](_0x53d9ec);try{this[_0x5a54ec(0x22e)]['call']('events',null,_0x5a54ec(0x80b),[this[_0x5a54ec(0x306)],_0x53d9ec]);}catch{}}['_deliverEvent'](_0x48dd7a,_0x565769){const _0x3f5674=_0x17e567;this['events'][_0x3f5674(0x599)](_0x48dd7a,_0x565769);}async[_0x17e567(0x36b)](){const _0xfd7467=_0x17e567,_0x44be9d=this['_keyFns'];if(_0x44be9d[_0xfd7467(0x7ae)])this[_0xfd7467(0x8ca)](null,await _0x44be9d['instance'](null),!![]);for(const [_0x25700b,_0x8b71bd]of _0x44be9d[_0xfd7467(0x322)])this[_0xfd7467(0x8ca)](_0x25700b,typeof _0x8b71bd==='function'?await _0x8b71bd(_0x25700b):_0x8b71bd,typeof _0x8b71bd===_0xfd7467(0x484));(_0x44be9d['instance']||[..._0x44be9d[_0xfd7467(0x322)]['values']()][_0xfd7467(0x3cc)](_0x25fa0f=>typeof _0x25fa0f==='function'))&&!this[_0xfd7467(0x6cd)]&&(this['_keyListener']=_0x56d57a=>{const _0x342961=_0xfd7467,_0x58dc56=_0x56d57a&&_0x56d57a['env']!=null?_0x56d57a[_0x342961(0x4f8)]:null,_0x10ba1c=_0x58dc56==null?_0x44be9d[_0x342961(0x7ae)]:_0x44be9d['envs'][_0x342961(0x292)](_0x58dc56);if(typeof _0x10ba1c!==_0x342961(0x484))return;Promise['resolve']()[_0x342961(0x458)](()=>_0x10ba1c(_0x58dc56))[_0x342961(0x458)](_0x5ad5ca=>this[_0x342961(0x8ca)](_0x58dc56,_0x5ad5ca,!![]))[_0x342961(0x603)](_0x4b2259=>this[_0x342961(0x6d5)][_0x342961(0x860)](_0x342961(0x672)+(_0x4b2259&&_0x4b2259[_0x342961(0x485)]),{'env':_0x58dc56}));},this[_0xfd7467(0x3d2)]['on'](_0xfd7467(0x437),this[_0xfd7467(0x6cd)]));}[_0x17e567(0x8ca)](_0x4ccd68,_0x549e4a,_0x3c2750){const _0x2a7d28=_0x17e567;if(_0x549e4a==null)throw new _0x126a32(_0x2a7d28(0x773)+(_0x4ccd68?_0x2a7d28(0x64e)+_0x4ccd68+'\x22':'')+_0x2a7d28(0x2e8),_0x2a7d28(0x6d1));this[_0x2a7d28(0x22e)][_0x2a7d28(0x62a)]('db',null,_0x2a7d28(0x1c0),[_0x4ccd68,_0x549e4a,!!_0x3c2750]);}async[_0x17e567(0x755)](_0x3f04a9){const _0x352e33=_0x17e567;this[_0x352e33(0x2d0)]();const {env:env=null,to:_0x2e89ba}=_0x28968(_0x3f04a9),_0x4bdbf5=typeof _0x2e89ba===_0x352e33(0x484),_0xa19f9f=_0x4bdbf5?await _0x2e89ba(env):_0x2e89ba;if(_0xa19f9f==null)throw _0x5bf794(_0x352e33(0x660),'a\x2032-character\x20key\x20or\x20a\x20function\x20returning\x20one',_0xa19f9f);const _0x55e8bc=this[_0x352e33(0x5a1)]('db',null,_0x352e33(0x755),[env,_0xa19f9f,_0x4bdbf5]);if(_0x4bdbf5){if(env==null)this[_0x352e33(0x241)][_0x352e33(0x7ae)]=_0x2e89ba;else this[_0x352e33(0x241)][_0x352e33(0x322)][_0x352e33(0x204)](env,_0x2e89ba);}return _0x55e8bc;}async[_0x17e567(0x829)](_0x5a2fd3){const _0x1cb5fe=_0x17e567;this['_assertOpen']();const _0x2ab157=_0x28968(_0x5a2fd3);if(!_0x2ab157[_0x1cb5fe(0x4f8)])throw _0x5bf794(_0x1cb5fe(0x72e),_0x1cb5fe(0x870),_0x2ab157['env']);let _0x630b3e=_0x2ab157['to'];const _0x29bd13=typeof _0x630b3e===_0x1cb5fe(0x484);if(_0x29bd13)_0x630b3e=await _0x2ab157['to'](_0x2ab157['env']);const _0x16310e=await this['_macro'](()=>this[_0x1cb5fe(0x5a1)]('db',null,'reencrypt',[_0x2ab157[_0x1cb5fe(0x4f8)],'to'in _0x2ab157?_0x630b3e:undefined,_0x29bd13]));if(_0x29bd13)this[_0x1cb5fe(0x241)][_0x1cb5fe(0x322)][_0x1cb5fe(0x204)](_0x2ab157['env'],_0x2ab157['to']);return _0x16310e;}async['open'](){const _0x31a8ca=_0x17e567;if(this[_0x31a8ca(0x480)]===_0x44716b[_0x31a8ca(0x205)])return;if(this[_0x31a8ca(0x480)]!==_0x44716b[_0x31a8ca(0x6dc)])throw new _0x126a32(_0x31a8ca(0x372),'INVALID_STATE',{'state':this['state']});this[_0x31a8ca(0x480)]=_0x44716b[_0x31a8ca(0x5b5)],this['_bootLog']=[];try{try{await this[_0x31a8ca(0x36b)](),await this[_0x31a8ca(0x3d3)](()=>this[_0x31a8ca(0x22e)][_0x31a8ca(0x6bb)]());}catch(_0x583fdb){throw _0x4240b8(_0x583fdb);}}catch(_0x307cd1){this[_0x31a8ca(0x480)]=_0x44716b[_0x31a8ca(0x609)],this['_bootLog']=null,this['_teardownNative']();throw _0x307cd1;}this[_0x31a8ca(0x489)]=!![],this[_0x31a8ca(0x480)]=_0x44716b['STARTED'];try{this[_0x31a8ca(0x5a1)]('db',null,_0x31a8ca(0x318),[this['plugins'][_0x31a8ca(0x5c1)][_0x31a8ca(0x642)](_0x283309=>_0x283309[_0x31a8ca(0x796)]?.[_0x31a8ca(0x686)])['filter'](Boolean)],![]),await this[_0x31a8ca(0x5ec)]['start']();}catch(_0x104f64){this[_0x31a8ca(0x480)]=_0x44716b[_0x31a8ca(0x337)];try{this[_0x31a8ca(0x22e)][_0x31a8ca(0x5ca)]();}catch{}this[_0x31a8ca(0x480)]=_0x44716b[_0x31a8ca(0x609)],this[_0x31a8ca(0x489)]=![],this['_teardownNative']();throw _0x104f64;}for(const _0x1901b2 of this[_0x31a8ca(0x5a1)]('db',null,_0x31a8ca(0x58e),[],![]))if(!_0x1901b2[_0x31a8ca(0x212)]('~'))this['_ensureEnv'](_0x1901b2);try{if(this[_0x31a8ca(0x5a1)]('db',null,_0x31a8ca(0x4ab),['~log'],![])){this['_logEnv']=this[_0x31a8ca(0x7d6)](_0x31a8ca(0x5bd));const _0x38080b=new Set(this[_0x31a8ca(0x6d5)][_0x31a8ca(0x8b2)]);this[_0x31a8ca(0x8e6)]=this[_0x31a8ca(0x6d5)][_0x31a8ca(0x5d8)](this[_0x31a8ca(0x5dc)],this['id']);const _0x24fd85=[...this['log']['_sinks']]['find'](_0x28f5e6=>!_0x38080b[_0x31a8ca(0x396)](_0x28f5e6)),_0x7e543e=this[_0x31a8ca(0x5a1)]('db',null,_0x31a8ca(0x7c4),[],![]);for(const _0x53d0d0 of(this[_0x31a8ca(0x7db)]??[])[_0x31a8ca(0x848)](_0x7e543e))_0x24fd85?.(_0x53d0d0);}}catch{}this[_0x31a8ca(0x7db)]=null,this['_native']['setWake'](()=>this[_0x31a8ca(0x82c)][_0x31a8ca(0x2ca)]()),this[_0x31a8ca(0x82c)][_0x31a8ca(0x77b)]();}async[_0x17e567(0x1e4)](){const _0x4bc6e6=_0x17e567;return this[_0x4bc6e6(0x517)]('db',null,_0x4bc6e6(0x51d),[]);}async[_0x17e567(0x5ca)](){const _0x349fc1=_0x17e567;if(this[_0x349fc1(0x480)]===_0x44716b[_0x349fc1(0x609)])return;if(this[_0x349fc1(0x480)]!==_0x44716b['STARTED'])throw new _0x126a32(_0x349fc1(0x218),_0x349fc1(0x1df),{'state':this['state']});this[_0x349fc1(0x480)]=_0x44716b[_0x349fc1(0x337)],this['_isOpen']=![];let _0x3de4d2=null;if(this['http'][_0x349fc1(0x329)][_0x349fc1(0x788)])try{await this['http'][_0x349fc1(0x5ca)]();}catch(_0x29bca1){_0x3de4d2=_0x29bca1;}if(this[_0x349fc1(0x4c0)]){try{this[_0x349fc1(0x4c0)][_0x349fc1(0x722)](),this[_0x349fc1(0x4c0)][_0x349fc1(0x5f1)]();}catch{}this[_0x349fc1(0x4c0)]=null;}try{this[_0x349fc1(0x313)]?.[_0x349fc1(0x6bf)]?.();}catch{}try{await this['plugins']['stop']();}catch(_0x143ed3){_0x3de4d2=_0x143ed3;}for(const _0x1ca3ed of[...Map[_0x349fc1(0x7c6)][_0x349fc1(0x42a)][_0x349fc1(0x62a)](this[_0x349fc1(0x75a)])]){try{await _0x1ca3ed[_0x349fc1(0x882)][_0x349fc1(0x261)]();}catch{}try{await _0x1ca3ed['engines'][_0x349fc1(0x6bf)]();}catch{}}for(const _0x1b6bf4 of[()=>this[_0x349fc1(0x801)][_0x349fc1(0x6bf)](),()=>this[_0x349fc1(0x3de)][_0x349fc1(0x6bf)](),()=>this[_0x349fc1(0x658)]&&this[_0x349fc1(0x658)][_0x349fc1(0x6bf)]?.()]){try{await _0x1b6bf4();}catch{}}const _0x2745c6=this[_0x349fc1(0x1cc)]['shutdownTimeout']??0x7530,_0x2adfe4=[];for(const _0x5f32fa of[...Map['prototype'][_0x349fc1(0x42a)]['call'](this[_0x349fc1(0x75a)])]){if(_0x5f32fa['queue']?.[_0x349fc1(0x20a)]?.[_0x349fc1(0x4ff)]>0x0)_0x2adfe4[_0x349fc1(0x27f)](_0x5f32fa[_0x349fc1(0x2c1)][_0x349fc1(0x261)](_0x2745c6));}if(_0x2adfe4['length']>0x0)await Promise[_0x349fc1(0x6a1)](_0x2adfe4);try{this['_detachLogSink']?.();}catch{}this[_0x349fc1(0x8e6)]=null;try{await this[_0x349fc1(0x7de)]['drain']();}catch{}this[_0x349fc1(0x82c)][_0x349fc1(0x6bf)]();try{await this[_0x349fc1(0x3d3)](()=>this[_0x349fc1(0x22e)][_0x349fc1(0x5ca)]());}catch(_0x2511b0){_0x3de4d2=_0x3de4d2||_0x4240b8(_0x2511b0);}this[_0x349fc1(0x480)]=_0x44716b[_0x349fc1(0x609)],this['_teardownNative'](),Map[_0x349fc1(0x7c6)][_0x349fc1(0x6fa)][_0x349fc1(0x62a)](this['_envs']);if(_0x3de4d2)throw _0x3de4d2;}[_0x17e567(0x320)](){const _0x323075=_0x17e567;this[_0x323075(0x82c)][_0x323075(0x6bf)]();try{this[_0x323075(0x22e)][_0x323075(0x31e)](null);}catch{}try{this[_0x323075(0x22e)][_0x323075(0x491)]();}catch{}this[_0x323075(0x5e3)]=null,this[_0x323075(0x267)]=null,this['_tids']=null,_0x568cd6[_0x323075(0x32b)](this[_0x323075(0x306)]),_0x568cd6[_0x323075(0x50b)](this),_0x272b0c[_0x323075(0x46b)](this[_0x323075(0x697)]);if(_0x568cd6[_0x323075(0x3a6)](this)){const _0x51c646=[..._0x272b0c['values']()][_0x323075(0x446)]();if(_0x51c646)_0x568cd6[_0x323075(0x59c)](()=>_0x51c646[_0x323075(0x82c)][_0x323075(0x2ca)](),_0x51c646);else _0x568cd6[_0x323075(0x59c)](()=>{},null);}}get['id'](){return this['_call']('db',null,'id',[],![]);}[_0x17e567(0x208)](_0x46d92a){const _0x3d843e=_0x17e567;return this[_0x3d843e(0x4f8)](_0x3d843e(0x6ab))[_0x3d843e(0x208)](_0x46d92a);}get[_0x17e567(0x388)](){const _0x58a9e9=_0x17e567;return this[_0x58a9e9(0x760)]['get'](_0x58a9e9(0x26d));}get['_nodePrivateKey'](){const _0x44116c=_0x17e567;return this[_0x44116c(0x801)][_0x44116c(0x1c1)];}get['_nodePublicKey'](){const _0x3c241e=_0x17e567;return this[_0x3c241e(0x801)][_0x3c241e(0x83f)];}get['_subsV2'](){const _0x3833ac=_0x17e567;if(!this[_0x3833ac(0x489)]||!this['_call']('db',null,'subsBuilt',[],![]))return undefined;if(!this['_subsV2Obj']){const _0x3fd59a=requireOkdbSubscriptionsStore(),_0xcaec6c=new _0x3fd59a(this,this[_0x3833ac(0x1cc)]&&this[_0x3833ac(0x1cc)][_0x3833ac(0x758)]);_0xcaec6c[_0x3833ac(0x7dd)]=this['env'](_0x3833ac(0x4c8));const {compileFilter:_0x210177}=requireOkdbQueryFilter(),_0x2e1f23=(_0x1cfcb4,_0x8e697d)=>{if(_0x1cfcb4==null)return![];try{return _0x210177(_0x1cfcb4)(_0x8e697d);}catch{return![];}};this['_subsV2Obj']={'store':_0xcaec6c,'router':{'_matches':_0x2e1f23}};}return this[_0x3833ac(0x597)];}get[_0x17e567(0x1fe)](){const _0x20e332=_0x17e567;return this[_0x20e332(0x209)];}get[_0x17e567(0x4d1)](){const _0x19c60f=_0x17e567;return this['_call']('db',null,_0x19c60f(0x4d1),[],![]);}get[_0x17e567(0x209)](){const _0x297906=_0x17e567;return{...this[_0x297906(0x5a1)]('db',null,_0x297906(0x209),[],![])};}get['version'](){const _0x57fd5d=_0x17e567;return require$$29[_0x57fd5d(0x782)];}get['quarantinedEnvs'](){const _0x19d2b0=_0x17e567;return this[_0x19d2b0(0x5a1)]('db',null,'quarantined',[],![]);}get[_0x17e567(0x1f9)](){const _0x488fd4=_0x17e567;return this[_0x488fd4(0x5a1)]('db',null,_0x488fd4(0x1f9),[],![]);}[_0x17e567(0x8ba)](){const _0x1c9911=_0x17e567;return this[_0x1c9911(0x5a1)]('db',null,'resolvedOptions',[],![]);}[_0x17e567(0x2ea)](){const _0x2fd072=_0x17e567;return this[_0x2fd072(0x5a1)]('db',null,_0x2fd072(0x2ea),[],![]);}async['setProcessingConfig'](_0x38dd2a){const _0x40a21d=_0x17e567;this[_0x40a21d(0x2d0)](),this[_0x40a21d(0x5a1)]('db',null,_0x40a21d(0x615),[_0x38dd2a],![]);}[_0x17e567(0x326)](){const _0x282e9a=_0x17e567,_0x4b9ad5=Date[_0x282e9a(0x3d4)]();if(this['_pressure']&&_0x4b9ad5-this[_0x282e9a(0x2f3)]['at']<0xfa)return this[_0x282e9a(0x2f3)]['value'];const _0x24eb57=this[_0x282e9a(0x5a1)]('db',null,_0x282e9a(0x326),[],![]);return this[_0x282e9a(0x2f3)]={'at':_0x4b9ad5,'value':_0x24eb57},_0x24eb57;}[_0x17e567(0x2d0)](){const _0x46396f=_0x17e567;if(!this[_0x46396f(0x489)])throw new _0x126a32(_0x46396f(0x218),_0x46396f(0x1df),{'state':this[_0x46396f(0x480)]});}get[_0x17e567(0x279)](){const _0x111425=_0x17e567;if(this[_0x111425(0x480)]===_0x44716b[_0x111425(0x609)]||!this[_0x111425(0x489)])return null;if(this[_0x111425(0x5a1)]('db',null,'busState',[],![])==null)return null;if(!this[_0x111425(0x482)]){const _0x49efea=this;this[_0x111425(0x482)]={get 'state'(){const _0x321af7=_0x111425;return _0x49efea[_0x321af7(0x5a1)]('db',null,_0x321af7(0x8b7),[],![]);},get 'magic'(){const _0x1b930d=_0x111425;return Buffer[_0x1b930d(0x51b)](_0x1b930d(0x4ce)+_0x49efea['id']);},get 'isRunning'(){const _0x49ee95=_0x111425;return _0x49efea['_call']('db',null,_0x49ee95(0x8b7),[],![])==='started';},'emit'(_0xdc8276,_0x4422fc=''){const _0x2ad176=_0x111425;_0x49efea['_call']('db',null,_0x2ad176(0x20e),[_0xdc8276,String(_0x4422fc)],![]);}};}return this[_0x111425(0x482)];}[_0x17e567(0x2fa)](_0xe68967,_0x533d2e){const _0x29957b=_0x17e567;this[_0x29957b(0x279)]?.[_0x29957b(0x599)](_0x29957b(0x7b0),JSON[_0x29957b(0x754)]({'kind':_0x29957b(0x775),'scope':_0xe68967,'key':_0x533d2e}));}get[_0x17e567(0x50e)](){const _0x1ef6c6=_0x17e567;return this[_0x1ef6c6(0x5c7)]||(this['_locks']=new(requireLock())[(_0x1ef6c6(0x23d))](this,_0x1ef6c6(0x87d),_0x1ef6c6(0x763)));}get['_rootDb'](){const _0x40b100=_0x17e567;return this[_0x40b100(0x85c)]?this['_systemEnv']['db']:undefined;}get[_0x17e567(0x507)](){const _0x4ff10d=_0x17e567,_0x1f092e=this[_0x4ff10d(0x85c)]?.['processor'];if(!_0x1f092e)return null;const _0x1388df=_0x1f092e[_0x4ff10d(0x328)]()[_0x4ff10d(0x24c)](_0x4176f6=>_0x4176f6[_0x4ff10d(0x5c3)]?.[_0x4ff10d(0x686)]===_0x4ff10d(0x56d));return _0x1388df?_0x1f092e[_0x4ff10d(0x2df)](_0x1388df['id'],_0x1388df['cursorKey']):null;}get[_0x17e567(0x85c)](){const _0x22246a=_0x17e567;return this['_isOpen']?this[_0x22246a(0x75a)][_0x22246a(0x292)]('~system'):undefined;}[_0x17e567(0x7d6)](_0x5bdc48){const _0x3f0d1b=_0x17e567;let _0x2e1e74=Map[_0x3f0d1b(0x7c6)][_0x3f0d1b(0x292)][_0x3f0d1b(0x62a)](this['_envs'],_0x5bdc48);if(!_0x2e1e74){_0x2e1e74=new _0x14b26f(this,_0x5bdc48),Map[_0x3f0d1b(0x7c6)]['set'][_0x3f0d1b(0x62a)](this[_0x3f0d1b(0x75a)],_0x5bdc48,_0x2e1e74);if(_0x5bdc48===_0x3f0d1b(0x6ab))this[_0x3f0d1b(0x6aa)]=_0x2e1e74;}return _0x2e1e74;}[_0x17e567(0x4f8)](_0x3afa5d='default'){const _0x4818c1=_0x17e567,_0x1def23=this[_0x4818c1(0x75a)][_0x4818c1(0x292)](_0x3afa5d);if(_0x1def23)return _0x1def23;if(this['_isOpen']&&this[_0x4818c1(0x5a1)]('db',null,'hasEnv',[_0x3afa5d],![]))return this['_ensureEnv'](_0x3afa5d);throw new _0x126a32('Environment\x20\x22'+_0x3afa5d+_0x4818c1(0x794),_0x4818c1(0x436));}get[_0x17e567(0x6ab)](){const _0x2f321b=_0x17e567;return this[_0x2f321b(0x4f8)](_0x2f321b(0x6ab));}get['_defaultEnv'](){const _0x5d01ee=_0x17e567;return this[_0x5d01ee(0x75a)][_0x5d01ee(0x292)](_0x5d01ee(0x6ab))??this[_0x5d01ee(0x6aa)];}get['files'](){const _0x143202=_0x17e567;return this[_0x143202(0x3ee)][_0x143202(0x1c3)];}get[_0x17e567(0x2c1)](){const _0x1a7c4b=_0x17e567;return this[_0x1a7c4b(0x3ee)][_0x1a7c4b(0x2c1)];}[_0x17e567(0x467)](_0x102216){const _0x6957a0=_0x17e567;if(!this[_0x6957a0(0x489)])return null;return this[_0x6957a0(0x5a1)]('db',null,_0x6957a0(0x771),[_0x102216],![])?{'ref'(){},'unref'(){}}:null;}get[_0x17e567(0x58a)](){const _0x2c44bc=_0x17e567;return this[_0x2c44bc(0x467)](_0x2c44bc(0x49d));}['_reconcileDesired'](){const _0x41271f=_0x17e567;return this[_0x41271f(0x5a1)]('db',null,_0x41271f(0x2bd),[],!![]);}get[_0x17e567(0x22d)](){const _0x9b5b85=_0x17e567;return this[_0x9b5b85(0x467)](_0x9b5b85(0x573));}get[_0x17e567(0x2d6)](){const _0x18f0b7=_0x17e567;return this[_0x18f0b7(0x467)](_0x18f0b7(0x7fb));}get[_0x17e567(0x537)](){const _0x8b1c56=_0x17e567;return this['env']('default')[_0x8b1c56(0x537)];}get[_0x17e567(0x1e3)](){const _0xba0932=_0x17e567;throw new _0x126a32(_0xba0932(0x38f),_0xba0932(0x2d5));}get[_0x17e567(0x882)](){const _0x1415ef=_0x17e567;return this[_0x1415ef(0x3ee)]['processor'];}get['views'](){const _0x1d2efd=_0x17e567;return this[_0x1d2efd(0x3ee)][_0x1d2efd(0x59a)];}async[_0x17e567(0x4dc)](_0x3c6b3e,_0x182f9e={}){const _0x1060ba=_0x17e567;this[_0x1060ba(0x2d0)]();if(_0x182f9e&&typeof _0x182f9e[_0x1060ba(0x5d2)]===_0x1060ba(0x484)){const _0x221e30=_0x182f9e[_0x1060ba(0x5d2)];this[_0x1060ba(0x8ca)](_0x3c6b3e,await _0x221e30(_0x3c6b3e),!![]),this[_0x1060ba(0x241)]['envs'][_0x1060ba(0x204)](_0x3c6b3e,_0x221e30),_0x182f9e={..._0x182f9e,'encryptionKey':!![]};}return this[_0x1060ba(0x5a1)]('db',null,_0x1060ba(0x4dc),[_0x3c6b3e,_0x182f9e]),this[_0x1060ba(0x7d6)](_0x3c6b3e);}async[_0x17e567(0x424)](_0x3f10d7){const _0x37025a=_0x17e567;if(!this[_0x37025a(0x489)])throw new _0x126a32(_0x37025a(0x762)+_0x3f10d7+_0x37025a(0x2ed),_0x37025a(0x1df));return this[_0x37025a(0x5a1)]('db',null,_0x37025a(0x424),[_0x3f10d7]),this[_0x37025a(0x7d6)](_0x3f10d7);}get[_0x17e567(0x648)](){const _0x3a2253=_0x17e567;if(!this[_0x3a2253(0x4c0)]&&this[_0x3a2253(0x489)]){const _0x383289=requireOkdbRelay(),_0x194384=new _0x383289(this,this[_0x3a2253(0x1cc)]?.[_0x3a2253(0x8ed)]?.['relay']??{});_0x194384[_0x3a2253(0x4d3)](),_0x194384[_0x3a2253(0x834)]=!![],this[_0x3a2253(0x4c0)]=_0x194384;}return this[_0x3a2253(0x4c0)]??null;}set[_0x17e567(0x648)](_0x405325){const _0x148c62=_0x17e567;this[_0x148c62(0x4c0)]=_0x405325;}get[_0x17e567(0x365)](){const _0x3a3479=_0x17e567;let _0x506cd9=0x0;if(this[_0x3a3479(0x489)])for(const [_0x405d2e]of Map[_0x3a3479(0x7c6)]['entries']['call'](this[_0x3a3479(0x75a)])){try{_0x506cd9+=this[_0x3a3479(0x5a1)](_0x3a3479(0x8a8),_0x405d2e,_0x3a3479(0x37f),[],![])||0x0;}catch{}}return{'total':_0x506cd9,'maxObserved':_0x506cd9>0x0?0x1:0x0,'inFlight':0x0};}async[_0x17e567(0x523)](_0x4f09b7){const _0x1dd5a7=_0x17e567,_0x4ad946=this[_0x1dd5a7(0x75a)][_0x1dd5a7(0x292)](_0x4f09b7);if(_0x4ad946)return _0x4ad946;if(!this['_call']('db',null,_0x1dd5a7(0x4ab),[_0x4f09b7],![]))throw new Error(_0x1dd5a7(0x406)+_0x4f09b7+'\x22\x20not\x20found\x20in\x20~envs');return this[_0x1dd5a7(0x424)](_0x4f09b7);}async[_0x17e567(0x47b)](_0x4f5d21){const _0x51bca1=_0x17e567,_0x688a98=this[_0x51bca1(0x5a1)]('db',null,_0x51bca1(0x211),[_0x4f5d21]);return this['_envs'][_0x51bca1(0x46b)](_0x4f5d21),_0x688a98;}async[_0x17e567(0x25b)](_0x1e1e52,_0xd6717b={}){const _0x58357a=_0x17e567;this[_0x58357a(0x2d0)]();const _0x390735=this[_0x58357a(0x5a1)]('db',null,_0x58357a(0x25b),[_0x1e1e52,_0xd6717b]);return this[_0x58357a(0x75a)][_0x58357a(0x46b)](_0x1e1e52),_0x390735;}static get[_0x17e567(0x37e)](){const _0x301b3c=_0x17e567;return _0x4d0ba0[_0x301b3c(0x37e)];}static get[_0x17e567(0x68a)](){const _0x1b8df8=_0x17e567;return _0x4d0ba0[_0x1b8df8(0x68a)];}static get['_OPTION_HINTS'](){const _0x949dcc=_0x17e567;return _0x4d0ba0[_0x949dcc(0x6c1)];}static async[_0x17e567(0x743)](_0x19a9e5,_0x184c28){return _0x1eb782('db','clone',[_0x19a9e5,_0x184c28]);}static[_0x17e567(0x53e)](_0x5865cb){return _0x1eb782('db','reidentify',[_0x5865cb]);}static['registerBucketProjection'](_0x1376d2,_0x3c1b8f){const _0x15429c=_0x17e567;_0x1eb782(_0x15429c(0x59a),_0x15429c(0x386),[_0x1376d2,_0x3c1b8f]);}static['registerViewReducer'](_0xee8af9,_0x547221){const _0xf46f7d=_0x17e567;_0x1eb782(_0xf46f7d(0x59a),'registerViewReducer',[_0xee8af9,_0x547221]);}static[_0x17e567(0x465)](){}[_0x17e567(0x575)](_0x1bf4da,_0x23ad9c){const _0x3b3ea5=_0x17e567;return require$$16[_0x3b3ea5(0x6df)](_0x1bf4da,_0x23ad9c);}}_0x7646a2['HIGH_SENTINEL']=_0x50578d,Object[_0x17e567(0x43a)](_0x7646a2,_0x17e567(0x1c9),{'get'(){const _0x165c24=_0x17e567;return _0x7646a2[_0x165c24(0x6c7)]||(_0x7646a2[_0x165c24(0x6c7)]=new Set());},'set'(_0x14ee8d){const _0x411db1=_0x17e567;_0x7646a2[_0x411db1(0x6c7)]=_0x14ee8d;try{_0x1eb782('db','resetUnknownOptionsWarned',[]);}catch{}},'configurable':!![]});for(const _0x2a7ff3 of[_0x17e567(0x7b5),_0x17e567(0x592),_0x17e567(0x1dd),_0x17e567(0x739),_0x17e567(0x1c8),'create','remove',_0x17e567(0x292),_0x17e567(0x2d2),_0x17e567(0x408),_0x17e567(0x433),_0x17e567(0x73d),_0x17e567(0x541),'getCount',_0x17e567(0x4bb),_0x17e567(0x634),_0x17e567(0x657),_0x17e567(0x87c),_0x17e567(0x5e7),'geoQuery',_0x17e567(0x726),_0x17e567(0x1ba),_0x17e567(0x353),_0x17e567(0x50d),_0x17e567(0x78d),_0x17e567(0x512),_0x17e567(0x3bf),_0x17e567(0x488),_0x17e567(0x259),'dropIndex',_0x17e567(0x8ce),_0x17e567(0x7e2),_0x17e567(0x32d),_0x17e567(0x610),'hasUniqueViolations',_0x17e567(0x6c9),_0x17e567(0x73c),'getChanges','setTTL',_0x17e567(0x31d),'clearTTL','sweepExpiredTTL',_0x17e567(0x25a),'ttlStats',_0x17e567(0x6e7),_0x17e567(0x4f1),_0x17e567(0x613),'count','range','now']){_0x7646a2[_0x17e567(0x7c6)][_0x2a7ff3]=function(..._0x3e239f){const _0x32d95d=_0x17e567,_0x2cf846=this['env'](_0x32d95d(0x6ab));return _0x2cf846[_0x2a7ff3](..._0x3e239f);};}function _0x5e3230(_0x3b062c){const _0x35ed52=_0x17e567,_0x17bf01=_0x4f8782=>()=>{const _0x1c6d73=_0x2fc2;throw new Error(_0x1c6d73(0x864)+_0x4f8782+_0x1c6d73(0x355));};return{'process':_0x17bf01(_0x35ed52(0x8ef)),'processRest':_0x17bf01(_0x35ed52(0x254)),'processEverything':_0x17bf01('processEverything()'),async 'start'(){const _0x21e1b4=_0x35ed52;return _0x3b062c[_0x21e1b4(0x5a1)]('db',null,_0x21e1b4(0x423),[]);},async 'stop'(){const _0x4fb462=_0x35ed52;return _0x3b062c['_call']('db',null,_0x4fb462(0x79e),[]);},'status'(){const _0x2ad6ce=_0x35ed52;return _0x3b062c[_0x2ad6ce(0x5a1)]('db',null,_0x2ad6ce(0x47a),[],![]);},get 'participating'(){const _0x2f6b99=_0x35ed52;return _0x3b062c[_0x2f6b99(0x5a1)]('db',null,_0x2f6b99(0x836),[],![]);},get '_participate'(){const _0x548f34=_0x35ed52;return _0x3b062c[_0x548f34(0x5a1)]('db',null,_0x548f34(0x836),[],![]);}};}function _0x1eb782(_0x469f4e,_0x752668,_0x1eab78){_0x19fcce();try{return _0x3c775f()['callStatic'](_0x469f4e,_0x752668,_0x1eab78);}catch(_0x41c275){throw _0x4240b8(_0x41c275);}}_0x52e65e[_0x17e567(0x57d)]=_0x7646a2,_0x52e65e[_0x17e567(0x57d)][_0x17e567(0x5a2)]=_0x1eb782,_0x52e65e['exports'][_0x17e567(0x401)]=_0x7646a2,_0x52e65e[_0x17e567(0x57d)][_0x17e567(0x69d)]=_0x50578d,_0x52e65e[_0x17e567(0x57d)][_0x17e567(0x6ab)]=_0x7646a2,Object[_0x17e567(0x43a)](_0x52e65e[_0x17e567(0x57d)],_0x17e567(0x867),{'get':()=>require$$1$1[_0x17e567(0x1c7)]?.()??null,'enumerable':![],'configurable':!![]});}(lib),lib[_0x3d64fc(0x57d)];}var libExports=requireLib(),index=getDefaultExportFromCjs(libExports);module['exports']=index;
|